Unnamed: 0
int64
0
0
repo_id
stringlengths
5
186
file_path
stringlengths
15
223
content
stringlengths
1
32.8M
0
repos/capy/vendor/zigwin32/win32
repos/capy/vendor/zigwin32/win32/system/mmc.zig
//! NOTE: this file is autogenerated, DO NOT MODIFY //-------------------------------------------------------------------------------- // Section: Constants (88) //-------------------------------------------------------------------------------- pub const MMC_VER = @as(u32, 512); pub const MMC_PROP_CHANGEAFFECTSUI = @as(u32, 1); pub const MMC_PROP_MODIFIABLE = @as(u32, 2); pub const MMC_PROP_REMOVABLE = @as(u32, 4); pub const MMC_PROP_PERSIST = @as(u32, 8); pub const MMCLV_AUTO = @as(i32, -1); pub const MMCLV_NOPARAM = @as(i32, -2); pub const MMCLV_NOICON = @as(i32, -1); pub const MMCLV_VIEWSTYLE_ICON = @as(u32, 0); pub const MMCLV_VIEWSTYLE_SMALLICON = @as(u32, 2); pub const MMCLV_VIEWSTYLE_LIST = @as(u32, 3); pub const MMCLV_VIEWSTYLE_REPORT = @as(u32, 1); pub const MMCLV_VIEWSTYLE_FILTERED = @as(u32, 4); pub const MMCLV_NOPTR = @as(u32, 0); pub const MMCLV_UPDATE_NOINVALIDATEALL = @as(u32, 1); pub const MMCLV_UPDATE_NOSCROLL = @as(u32, 2); pub const MMC_IMAGECALLBACK = @as(i32, -1); pub const RDI_STR = @as(u32, 2); pub const RDI_IMAGE = @as(u32, 4); pub const RDI_STATE = @as(u32, 8); pub const RDI_PARAM = @as(u32, 16); pub const RDI_INDEX = @as(u32, 32); pub const RDI_INDENT = @as(u32, 64); pub const MMC_VIEW_OPTIONS_NONE = @as(u32, 0); pub const MMC_VIEW_OPTIONS_NOLISTVIEWS = @as(u32, 1); pub const MMC_VIEW_OPTIONS_MULTISELECT = @as(u32, 2); pub const MMC_VIEW_OPTIONS_OWNERDATALIST = @as(u32, 4); pub const MMC_VIEW_OPTIONS_FILTERED = @as(u32, 8); pub const MMC_VIEW_OPTIONS_CREATENEW = @as(u32, 16); pub const MMC_VIEW_OPTIONS_USEFONTLINKING = @as(u32, 32); pub const MMC_VIEW_OPTIONS_EXCLUDE_SCOPE_ITEMS_FROM_LIST = @as(u32, 64); pub const MMC_VIEW_OPTIONS_LEXICAL_SORT = @as(u32, 128); pub const MMC_PSO_NOAPPLYNOW = @as(u32, 1); pub const MMC_PSO_HASHELP = @as(u32, 2); pub const MMC_PSO_NEWWIZARDTYPE = @as(u32, 4); pub const MMC_PSO_NO_PROPTITLE = @as(u32, 8); pub const RFI_PARTIAL = @as(u32, 1); pub const RFI_WRAP = @as(u32, 2); pub const RSI_DESCENDING = @as(u32, 1); pub const RSI_NOSORTICON = @as(u32, 2); pub const SDI_STR = @as(u32, 2); pub const SDI_IMAGE = @as(u32, 4); pub const SDI_OPENIMAGE = @as(u32, 8); pub const SDI_STATE = @as(u32, 16); pub const SDI_PARAM = @as(u32, 32); pub const SDI_CHILDREN = @as(u32, 64); pub const SDI_PARENT = @as(u32, 0); pub const SDI_PREVIOUS = @as(u32, 268435456); pub const SDI_NEXT = @as(u32, 536870912); pub const SDI_FIRST = @as(u32, 134217728); pub const MMC_MULTI_SELECT_COOKIE = @as(i32, -2); pub const MMC_WINDOW_COOKIE = @as(i32, -3); pub const SPECIAL_COOKIE_MIN = @as(i32, -10); pub const SPECIAL_COOKIE_MAX = @as(i32, -1); pub const MMC_NW_OPTION_NONE = @as(u32, 0); pub const MMC_NW_OPTION_NOSCOPEPANE = @as(u32, 1); pub const MMC_NW_OPTION_NOTOOLBARS = @as(u32, 2); pub const MMC_NW_OPTION_SHORTTITLE = @as(u32, 4); pub const MMC_NW_OPTION_CUSTOMTITLE = @as(u32, 8); pub const MMC_NW_OPTION_NOPERSIST = @as(u32, 16); pub const MMC_NW_OPTION_NOACTIONPANE = @as(u32, 32); pub const MMC_NODEID_SLOW_RETRIEVAL = @as(u32, 1); pub const SPECIAL_DOBJ_MIN = @as(i32, -10); pub const SPECIAL_DOBJ_MAX = @as(u32, 0); pub const AUTO_WIDTH = @as(i32, -1); pub const HIDE_COLUMN = @as(i32, -4); pub const ILSIF_LEAVE_LARGE_ICON = @as(u32, 1073741824); pub const ILSIF_LEAVE_SMALL_ICON = @as(u32, 536870912); pub const HDI_HIDDEN = @as(u32, 1); pub const RDCI_ScopeItem = @as(u32, 2147483648); pub const RVTI_MISC_OPTIONS_NOLISTVIEWS = @as(u32, 1); pub const RVTI_LIST_OPTIONS_NONE = @as(u32, 0); pub const RVTI_LIST_OPTIONS_OWNERDATALIST = @as(u32, 2); pub const RVTI_LIST_OPTIONS_MULTISELECT = @as(u32, 4); pub const RVTI_LIST_OPTIONS_FILTERED = @as(u32, 8); pub const RVTI_LIST_OPTIONS_USEFONTLINKING = @as(u32, 32); pub const RVTI_LIST_OPTIONS_EXCLUDE_SCOPE_ITEMS_FROM_LIST = @as(u32, 64); pub const RVTI_LIST_OPTIONS_LEXICAL_SORT = @as(u32, 128); pub const RVTI_LIST_OPTIONS_ALLOWPASTE = @as(u32, 256); pub const RVTI_HTML_OPTIONS_NONE = @as(u32, 0); pub const RVTI_HTML_OPTIONS_NOLISTVIEW = @as(u32, 1); pub const RVTI_OCX_OPTIONS_NONE = @as(u32, 0); pub const RVTI_OCX_OPTIONS_NOLISTVIEW = @as(u32, 1); pub const RVTI_OCX_OPTIONS_CACHE_OCX = @as(u32, 2); pub const MMC_DEFAULT_OPERATION_COPY = @as(u32, 1); pub const MMC_ITEM_OVERLAY_STATE_MASK = @as(u32, 3840); pub const MMC_ITEM_OVERLAY_STATE_SHIFT = @as(u32, 8); pub const MMC_ITEM_STATE_MASK = @as(u32, 255); //-------------------------------------------------------------------------------- // Section: Types (127) //-------------------------------------------------------------------------------- const CLSID_Application_Value = Guid.initString("49b2791a-b1ae-4c90-9b8e-e860ba07f889"); pub const CLSID_Application = &CLSID_Application_Value; const CLSID_AppEventsDHTMLConnector_Value = Guid.initString("ade6444b-c91f-4e37-92a4-5bb430a33340"); pub const CLSID_AppEventsDHTMLConnector = &CLSID_AppEventsDHTMLConnector_Value; pub const MMC_PROPERTY_ACTION = enum(i32) { DELETING = 1, CHANGING = 2, INITIALIZED = 3, }; pub const MMC_PROPACT_DELETING = MMC_PROPERTY_ACTION.DELETING; pub const MMC_PROPACT_CHANGING = MMC_PROPERTY_ACTION.CHANGING; pub const MMC_PROPACT_INITIALIZED = MMC_PROPERTY_ACTION.INITIALIZED; pub const MMC_SNAPIN_PROPERTY = extern struct { pszPropName: ?[*:0]const u16, varValue: VARIANT, eAction: MMC_PROPERTY_ACTION, }; // TODO: this type is limited to platform 'windows6.0.6000' const IID_ISnapinProperties_Value = Guid.initString("f7889da9-4a02-4837-bf89-1a6f2a021010"); pub const IID_ISnapinProperties = &IID_ISnapinProperties_Value; pub const ISnapinProperties = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, Initialize: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ISnapinProperties, pProperties: ?*Properties, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ISnapinProperties, pProperties: ?*Properties, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, QueryPropertyNames: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ISnapinProperties, pCallback: ?*ISnapinPropertiesCallback, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ISnapinProperties, pCallback: ?*ISnapinPropertiesCallback, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, PropertiesChanged: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ISnapinProperties, cProperties: i32, pProperties: [*]MMC_SNAPIN_PROPERTY, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ISnapinProperties, cProperties: i32, pProperties: [*]MMC_SNAPIN_PROPERTY, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISnapinProperties_Initialize(self: *const T, pProperties: ?*Properties) HRESULT { return @as(*const ISnapinProperties.VTable, @ptrCast(self.vtable)).Initialize(@as(*const ISnapinProperties, @ptrCast(self)), pProperties); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISnapinProperties_QueryPropertyNames(self: *const T, pCallback: ?*ISnapinPropertiesCallback) HRESULT { return @as(*const ISnapinProperties.VTable, @ptrCast(self.vtable)).QueryPropertyNames(@as(*const ISnapinProperties, @ptrCast(self)), pCallback); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISnapinProperties_PropertiesChanged(self: *const T, cProperties: i32, pProperties: [*]MMC_SNAPIN_PROPERTY) HRESULT { return @as(*const ISnapinProperties.VTable, @ptrCast(self.vtable)).PropertiesChanged(@as(*const ISnapinProperties, @ptrCast(self)), cProperties, pProperties); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows6.0.6000' const IID_ISnapinPropertiesCallback_Value = Guid.initString("a50fa2e5-7e61-45eb-a8d4-9a07b3e851a8"); pub const IID_ISnapinPropertiesCallback = &IID_ISnapinPropertiesCallback_Value; pub const ISnapinPropertiesCallback = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, AddPropertyName: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ISnapinPropertiesCallback, pszPropName: ?[*:0]const u16, dwFlags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ISnapinPropertiesCallback, pszPropName: ?[*:0]const u16, dwFlags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISnapinPropertiesCallback_AddPropertyName(self: *const T, pszPropName: ?[*:0]const u16, dwFlags: u32) HRESULT { return @as(*const ISnapinPropertiesCallback.VTable, @ptrCast(self.vtable)).AddPropertyName(@as(*const ISnapinPropertiesCallback, @ptrCast(self)), pszPropName, dwFlags); } }; } pub usingnamespace MethodMixin(@This()); }; pub const _DocumentMode = enum(i32) { Author = 0, User = 1, User_MDI = 2, User_SDI = 3, }; pub const DocumentMode_Author = _DocumentMode.Author; pub const DocumentMode_User = _DocumentMode.User; pub const DocumentMode_User_MDI = _DocumentMode.User_MDI; pub const DocumentMode_User_SDI = _DocumentMode.User_SDI; pub const _ListViewMode = enum(i32) { Small_Icons = 0, Large_Icons = 1, List = 2, Detail = 3, Filtered = 4, }; pub const ListMode_Small_Icons = _ListViewMode.Small_Icons; pub const ListMode_Large_Icons = _ListViewMode.Large_Icons; pub const ListMode_List = _ListViewMode.List; pub const ListMode_Detail = _ListViewMode.Detail; pub const ListMode_Filtered = _ListViewMode.Filtered; pub const _ViewOptions = enum(i32) { Default = 0, ScopeTreeHidden = 1, NoToolBars = 2, NotPersistable = 4, ActionPaneHidden = 8, }; pub const ViewOption_Default = _ViewOptions.Default; pub const ViewOption_ScopeTreeHidden = _ViewOptions.ScopeTreeHidden; pub const ViewOption_NoToolBars = _ViewOptions.NoToolBars; pub const ViewOption_NotPersistable = _ViewOptions.NotPersistable; pub const ViewOption_ActionPaneHidden = _ViewOptions.ActionPaneHidden; pub const _ExportListOptions = enum(i32) { Default = 0, Unicode = 1, TabDelimited = 2, SelectedItemsOnly = 4, }; pub const ExportListOptions_Default = _ExportListOptions.Default; pub const ExportListOptions_Unicode = _ExportListOptions.Unicode; pub const ExportListOptions_TabDelimited = _ExportListOptions.TabDelimited; pub const ExportListOptions_SelectedItemsOnly = _ExportListOptions.SelectedItemsOnly; const IID__Application_Value = Guid.initString("a3afb9cc-b653-4741-86ab-f0470ec1384c"); pub const IID__Application = &IID__Application_Value; pub const _Application = extern struct { pub const VTable = extern struct { base: IDispatch.VTable, Help: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const _Application, ) callconv(@import("std").os.windows.WINAPI) void, else => *const fn ( self: *const _Application, ) callconv(@import("std").os.windows.WINAPI) void, }, Quit: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const _Application, ) callconv(@import("std").os.windows.WINAPI) void, else => *const fn ( self: *const _Application, ) callconv(@import("std").os.windows.WINAPI) void, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Document: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const _Application, Document: ?*?*Document, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const _Application, Document: ?*?*Document, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Load: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const _Application, Filename: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const _Application, Filename: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Frame: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const _Application, Frame: ?*?*Frame, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const _Application, Frame: ?*?*Frame, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Visible: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const _Application, Visible: ?*BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const _Application, Visible: ?*BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Show: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const _Application, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const _Application, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Hide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const _Application, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const _Application, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_UserControl: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const _Application, UserControl: ?*BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const _Application, UserControl: ?*BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_UserControl: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const _Application, UserControl: BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const _Application, UserControl: BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_VersionMajor: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const _Application, VersionMajor: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const _Application, VersionMajor: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_VersionMinor: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const _Application, VersionMinor: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const _Application, VersionMinor: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IDispatch.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn _Application_Help(self: *const T) void { return @as(*const _Application.VTable, @ptrCast(self.vtable)).Help(@as(*const _Application, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn _Application_Quit(self: *const T) void { return @as(*const _Application.VTable, @ptrCast(self.vtable)).Quit(@as(*const _Application, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn _Application_get_Document(self: *const T, _param_Document: ?*?*Document) HRESULT { return @as(*const _Application.VTable, @ptrCast(self.vtable)).get_Document(@as(*const _Application, @ptrCast(self)), _param_Document); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn _Application_Load(self: *const T, Filename: ?BSTR) HRESULT { return @as(*const _Application.VTable, @ptrCast(self.vtable)).Load(@as(*const _Application, @ptrCast(self)), Filename); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn _Application_get_Frame(self: *const T, _param_Frame: ?*?*Frame) HRESULT { return @as(*const _Application.VTable, @ptrCast(self.vtable)).get_Frame(@as(*const _Application, @ptrCast(self)), _param_Frame); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn _Application_get_Visible(self: *const T, Visible: ?*BOOL) HRESULT { return @as(*const _Application.VTable, @ptrCast(self.vtable)).get_Visible(@as(*const _Application, @ptrCast(self)), Visible); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn _Application_Show(self: *const T) HRESULT { return @as(*const _Application.VTable, @ptrCast(self.vtable)).Show(@as(*const _Application, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn _Application_Hide(self: *const T) HRESULT { return @as(*const _Application.VTable, @ptrCast(self.vtable)).Hide(@as(*const _Application, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn _Application_get_UserControl(self: *const T, UserControl: ?*BOOL) HRESULT { return @as(*const _Application.VTable, @ptrCast(self.vtable)).get_UserControl(@as(*const _Application, @ptrCast(self)), UserControl); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn _Application_put_UserControl(self: *const T, UserControl: BOOL) HRESULT { return @as(*const _Application.VTable, @ptrCast(self.vtable)).put_UserControl(@as(*const _Application, @ptrCast(self)), UserControl); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn _Application_get_VersionMajor(self: *const T, VersionMajor: ?*i32) HRESULT { return @as(*const _Application.VTable, @ptrCast(self.vtable)).get_VersionMajor(@as(*const _Application, @ptrCast(self)), VersionMajor); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn _Application_get_VersionMinor(self: *const T, VersionMinor: ?*i32) HRESULT { return @as(*const _Application.VTable, @ptrCast(self.vtable)).get_VersionMinor(@as(*const _Application, @ptrCast(self)), VersionMinor); } }; } pub usingnamespace MethodMixin(@This()); }; const IID__AppEvents_Value = Guid.initString("de46cbdd-53f5-4635-af54-4fe71e923d3f"); pub const IID__AppEvents = &IID__AppEvents_Value; pub const _AppEvents = extern struct { pub const VTable = extern struct { base: IDispatch.VTable, OnQuit: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const _AppEvents, Application: ?*_Application, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const _AppEvents, Application: ?*_Application, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, OnDocumentOpen: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const _AppEvents, Document: ?*Document, New: BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const _AppEvents, Document: ?*Document, New: BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, OnDocumentClose: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const _AppEvents, Document: ?*Document, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const _AppEvents, Document: ?*Document, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, OnSnapInAdded: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const _AppEvents, Document: ?*Document, SnapIn: ?*SnapIn, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const _AppEvents, Document: ?*Document, SnapIn: ?*SnapIn, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, OnSnapInRemoved: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const _AppEvents, Document: ?*Document, SnapIn: ?*SnapIn, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const _AppEvents, Document: ?*Document, SnapIn: ?*SnapIn, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, OnNewView: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const _AppEvents, View: ?*View, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const _AppEvents, View: ?*View, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, OnViewClose: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const _AppEvents, View: ?*View, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const _AppEvents, View: ?*View, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, OnViewChange: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const _AppEvents, View: ?*View, NewOwnerNode: ?*Node, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const _AppEvents, View: ?*View, NewOwnerNode: ?*Node, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, OnSelectionChange: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const _AppEvents, View: ?*View, NewNodes: ?*Nodes, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const _AppEvents, View: ?*View, NewNodes: ?*Nodes, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, OnContextMenuExecuted: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const _AppEvents, MenuItem: ?*MenuItem, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const _AppEvents, MenuItem: ?*MenuItem, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, OnToolbarButtonClicked: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const _AppEvents, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const _AppEvents, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, OnListUpdated: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const _AppEvents, View: ?*View, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const _AppEvents, View: ?*View, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IDispatch.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn _AppEvents_OnQuit(self: *const T, Application: ?*_Application) HRESULT { return @as(*const _AppEvents.VTable, @ptrCast(self.vtable)).OnQuit(@as(*const _AppEvents, @ptrCast(self)), Application); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn _AppEvents_OnDocumentOpen(self: *const T, _param_Document: ?*Document, New: BOOL) HRESULT { return @as(*const _AppEvents.VTable, @ptrCast(self.vtable)).OnDocumentOpen(@as(*const _AppEvents, @ptrCast(self)), _param_Document, New); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn _AppEvents_OnDocumentClose(self: *const T, _param_Document: ?*Document) HRESULT { return @as(*const _AppEvents.VTable, @ptrCast(self.vtable)).OnDocumentClose(@as(*const _AppEvents, @ptrCast(self)), _param_Document); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn _AppEvents_OnSnapInAdded(self: *const T, _param_Document: ?*Document, _param_SnapIn: ?*SnapIn) HRESULT { return @as(*const _AppEvents.VTable, @ptrCast(self.vtable)).OnSnapInAdded(@as(*const _AppEvents, @ptrCast(self)), _param_Document, _param_SnapIn); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn _AppEvents_OnSnapInRemoved(self: *const T, _param_Document: ?*Document, _param_SnapIn: ?*SnapIn) HRESULT { return @as(*const _AppEvents.VTable, @ptrCast(self.vtable)).OnSnapInRemoved(@as(*const _AppEvents, @ptrCast(self)), _param_Document, _param_SnapIn); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn _AppEvents_OnNewView(self: *const T, _param_View: ?*View) HRESULT { return @as(*const _AppEvents.VTable, @ptrCast(self.vtable)).OnNewView(@as(*const _AppEvents, @ptrCast(self)), _param_View); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn _AppEvents_OnViewClose(self: *const T, _param_View: ?*View) HRESULT { return @as(*const _AppEvents.VTable, @ptrCast(self.vtable)).OnViewClose(@as(*const _AppEvents, @ptrCast(self)), _param_View); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn _AppEvents_OnViewChange(self: *const T, _param_View: ?*View, NewOwnerNode: ?*Node) HRESULT { return @as(*const _AppEvents.VTable, @ptrCast(self.vtable)).OnViewChange(@as(*const _AppEvents, @ptrCast(self)), _param_View, NewOwnerNode); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn _AppEvents_OnSelectionChange(self: *const T, _param_View: ?*View, NewNodes: ?*Nodes) HRESULT { return @as(*const _AppEvents.VTable, @ptrCast(self.vtable)).OnSelectionChange(@as(*const _AppEvents, @ptrCast(self)), _param_View, NewNodes); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn _AppEvents_OnContextMenuExecuted(self: *const T, _param_MenuItem: ?*MenuItem) HRESULT { return @as(*const _AppEvents.VTable, @ptrCast(self.vtable)).OnContextMenuExecuted(@as(*const _AppEvents, @ptrCast(self)), _param_MenuItem); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn _AppEvents_OnToolbarButtonClicked(self: *const T) HRESULT { return @as(*const _AppEvents.VTable, @ptrCast(self.vtable)).OnToolbarButtonClicked(@as(*const _AppEvents, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn _AppEvents_OnListUpdated(self: *const T, _param_View: ?*View) HRESULT { return @as(*const _AppEvents.VTable, @ptrCast(self.vtable)).OnListUpdated(@as(*const _AppEvents, @ptrCast(self)), _param_View); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_AppEvents_Value = Guid.initString("fc7a4252-78ac-4532-8c5a-563cfe138863"); pub const IID_AppEvents = &IID_AppEvents_Value; pub const AppEvents = extern struct { pub const VTable = extern struct { base: IDispatch.VTable, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IDispatch.MethodMixin(T); }; } pub usingnamespace MethodMixin(@This()); }; const IID__EventConnector_Value = Guid.initString("c0bccd30-de44-4528-8403-a05a6a1cc8ea"); pub const IID__EventConnector = &IID__EventConnector_Value; pub const _EventConnector = extern struct { pub const VTable = extern struct { base: IDispatch.VTable, ConnectTo: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const _EventConnector, Application: ?*_Application, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const _EventConnector, Application: ?*_Application, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Disconnect: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const _EventConnector, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const _EventConnector, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IDispatch.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn _EventConnector_ConnectTo(self: *const T, Application: ?*_Application) HRESULT { return @as(*const _EventConnector.VTable, @ptrCast(self.vtable)).ConnectTo(@as(*const _EventConnector, @ptrCast(self)), Application); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn _EventConnector_Disconnect(self: *const T) HRESULT { return @as(*const _EventConnector.VTable, @ptrCast(self.vtable)).Disconnect(@as(*const _EventConnector, @ptrCast(self))); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_Frame_Value = Guid.initString("e5e2d970-5bb3-4306-8804-b0968a31c8e6"); pub const IID_Frame = &IID_Frame_Value; pub const Frame = extern struct { pub const VTable = extern struct { base: IDispatch.VTable, Maximize: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const Frame, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const Frame, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Minimize: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const Frame, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const Frame, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Restore: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const Frame, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const Frame, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Top: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const Frame, Top: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const Frame, Top: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_Top: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const Frame, top: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const Frame, top: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Bottom: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const Frame, Bottom: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const Frame, Bottom: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_Bottom: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const Frame, bottom: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const Frame, bottom: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Left: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const Frame, Left: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const Frame, Left: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_Left: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const Frame, left: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const Frame, left: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Right: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const Frame, Right: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const Frame, Right: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_Right: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const Frame, right: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const Frame, right: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IDispatch.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn Frame_Maximize(self: *const T) HRESULT { return @as(*const Frame.VTable, @ptrCast(self.vtable)).Maximize(@as(*const Frame, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn Frame_Minimize(self: *const T) HRESULT { return @as(*const Frame.VTable, @ptrCast(self.vtable)).Minimize(@as(*const Frame, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn Frame_Restore(self: *const T) HRESULT { return @as(*const Frame.VTable, @ptrCast(self.vtable)).Restore(@as(*const Frame, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn Frame_get_Top(self: *const T, Top: ?*i32) HRESULT { return @as(*const Frame.VTable, @ptrCast(self.vtable)).get_Top(@as(*const Frame, @ptrCast(self)), Top); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn Frame_put_Top(self: *const T, top: i32) HRESULT { return @as(*const Frame.VTable, @ptrCast(self.vtable)).put_Top(@as(*const Frame, @ptrCast(self)), top); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn Frame_get_Bottom(self: *const T, Bottom: ?*i32) HRESULT { return @as(*const Frame.VTable, @ptrCast(self.vtable)).get_Bottom(@as(*const Frame, @ptrCast(self)), Bottom); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn Frame_put_Bottom(self: *const T, bottom: i32) HRESULT { return @as(*const Frame.VTable, @ptrCast(self.vtable)).put_Bottom(@as(*const Frame, @ptrCast(self)), bottom); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn Frame_get_Left(self: *const T, Left: ?*i32) HRESULT { return @as(*const Frame.VTable, @ptrCast(self.vtable)).get_Left(@as(*const Frame, @ptrCast(self)), Left); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn Frame_put_Left(self: *const T, left: i32) HRESULT { return @as(*const Frame.VTable, @ptrCast(self.vtable)).put_Left(@as(*const Frame, @ptrCast(self)), left); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn Frame_get_Right(self: *const T, Right: ?*i32) HRESULT { return @as(*const Frame.VTable, @ptrCast(self.vtable)).get_Right(@as(*const Frame, @ptrCast(self)), Right); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn Frame_put_Right(self: *const T, right: i32) HRESULT { return @as(*const Frame.VTable, @ptrCast(self.vtable)).put_Right(@as(*const Frame, @ptrCast(self)), right); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_Node_Value = Guid.initString("f81ed800-7839-4447-945d-8e15da59ca55"); pub const IID_Node = &IID_Node_Value; pub const Node = extern struct { pub const VTable = extern struct { base: IDispatch.VTable, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Name: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const Node, Name: ?*?*u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const Node, Name: ?*?*u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Property: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const Node, PropertyName: ?BSTR, PropertyValue: ?*?*u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const Node, PropertyName: ?BSTR, PropertyValue: ?*?*u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Bookmark: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const Node, Bookmark: ?*?*u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const Node, Bookmark: ?*?*u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, IsScopeNode: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const Node, IsScopeNode: ?*BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const Node, IsScopeNode: ?*BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Nodetype: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const Node, Nodetype: ?*?*u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const Node, Nodetype: ?*?*u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IDispatch.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn Node_get_Name(self: *const T, Name: ?*?*u16) HRESULT { return @as(*const Node.VTable, @ptrCast(self.vtable)).get_Name(@as(*const Node, @ptrCast(self)), Name); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn Node_get_Property(self: *const T, PropertyName: ?BSTR, PropertyValue: ?*?*u16) HRESULT { return @as(*const Node.VTable, @ptrCast(self.vtable)).get_Property(@as(*const Node, @ptrCast(self)), PropertyName, PropertyValue); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn Node_get_Bookmark(self: *const T, Bookmark: ?*?*u16) HRESULT { return @as(*const Node.VTable, @ptrCast(self.vtable)).get_Bookmark(@as(*const Node, @ptrCast(self)), Bookmark); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn Node_IsScopeNode(self: *const T, IsScopeNode: ?*BOOL) HRESULT { return @as(*const Node.VTable, @ptrCast(self.vtable)).IsScopeNode(@as(*const Node, @ptrCast(self)), IsScopeNode); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn Node_get_Nodetype(self: *const T, Nodetype: ?*?*u16) HRESULT { return @as(*const Node.VTable, @ptrCast(self.vtable)).get_Nodetype(@as(*const Node, @ptrCast(self)), Nodetype); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_ScopeNamespace_Value = Guid.initString("ebbb48dc-1a3b-4d86-b786-c21b28389012"); pub const IID_ScopeNamespace = &IID_ScopeNamespace_Value; pub const ScopeNamespace = extern struct { pub const VTable = extern struct { base: IDispatch.VTable, GetParent: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ScopeNamespace, Node: ?*Node, Parent: ?*?*Node, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ScopeNamespace, Node: ?*Node, Parent: ?*?*Node, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetChild: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ScopeNamespace, Node: ?*Node, Child: ?*?*Node, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ScopeNamespace, Node: ?*Node, Child: ?*?*Node, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetNext: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ScopeNamespace, Node: ?*Node, Next: ?*?*Node, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ScopeNamespace, Node: ?*Node, Next: ?*?*Node, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetRoot: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ScopeNamespace, Root: ?*?*Node, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ScopeNamespace, Root: ?*?*Node, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Expand: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ScopeNamespace, Node: ?*Node, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ScopeNamespace, Node: ?*Node, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IDispatch.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ScopeNamespace_GetParent(self: *const T, _param_Node: ?*Node, Parent: ?*?*Node) HRESULT { return @as(*const ScopeNamespace.VTable, @ptrCast(self.vtable)).GetParent(@as(*const ScopeNamespace, @ptrCast(self)), _param_Node, Parent); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ScopeNamespace_GetChild(self: *const T, _param_Node: ?*Node, Child: ?*?*Node) HRESULT { return @as(*const ScopeNamespace.VTable, @ptrCast(self.vtable)).GetChild(@as(*const ScopeNamespace, @ptrCast(self)), _param_Node, Child); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ScopeNamespace_GetNext(self: *const T, _param_Node: ?*Node, Next: ?*?*Node) HRESULT { return @as(*const ScopeNamespace.VTable, @ptrCast(self.vtable)).GetNext(@as(*const ScopeNamespace, @ptrCast(self)), _param_Node, Next); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ScopeNamespace_GetRoot(self: *const T, Root: ?*?*Node) HRESULT { return @as(*const ScopeNamespace.VTable, @ptrCast(self.vtable)).GetRoot(@as(*const ScopeNamespace, @ptrCast(self)), Root); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ScopeNamespace_Expand(self: *const T, _param_Node: ?*Node) HRESULT { return @as(*const ScopeNamespace.VTable, @ptrCast(self.vtable)).Expand(@as(*const ScopeNamespace, @ptrCast(self)), _param_Node); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_Document_Value = Guid.initString("225120d6-1e0f-40a3-93fe-1079e6a8017b"); pub const IID_Document = &IID_Document_Value; pub const Document = extern struct { pub const VTable = extern struct { base: IDispatch.VTable, Save: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const Document, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const Document, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SaveAs: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const Document, Filename: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const Document, Filename: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Close: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const Document, SaveChanges: BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const Document, SaveChanges: BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Views: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const Document, Views: ?*?*Views, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const Document, Views: ?*?*Views, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_SnapIns: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const Document, SnapIns: ?*?*SnapIns, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const Document, SnapIns: ?*?*SnapIns, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_ActiveView: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const Document, View: ?*?*View, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const Document, View: ?*?*View, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Name: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const Document, Name: ?*?*u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const Document, Name: ?*?*u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_Name: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const Document, Name: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const Document, Name: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Location: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const Document, Location: ?*?*u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const Document, Location: ?*?*u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_IsSaved: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const Document, IsSaved: ?*BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const Document, IsSaved: ?*BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Mode: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const Document, Mode: ?*_DocumentMode, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const Document, Mode: ?*_DocumentMode, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_Mode: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const Document, Mode: _DocumentMode, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const Document, Mode: _DocumentMode, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_RootNode: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const Document, Node: ?*?*Node, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const Document, Node: ?*?*Node, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_ScopeNamespace: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const Document, ScopeNamespace: ?*?*ScopeNamespace, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const Document, ScopeNamespace: ?*?*ScopeNamespace, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, CreateProperties: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const Document, Properties: ?*?*Properties, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const Document, Properties: ?*?*Properties, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Application: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const Document, Application: ?*?*_Application, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const Document, Application: ?*?*_Application, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IDispatch.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn Document_Save(self: *const T) HRESULT { return @as(*const Document.VTable, @ptrCast(self.vtable)).Save(@as(*const Document, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn Document_SaveAs(self: *const T, Filename: ?BSTR) HRESULT { return @as(*const Document.VTable, @ptrCast(self.vtable)).SaveAs(@as(*const Document, @ptrCast(self)), Filename); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn Document_Close(self: *const T, SaveChanges: BOOL) HRESULT { return @as(*const Document.VTable, @ptrCast(self.vtable)).Close(@as(*const Document, @ptrCast(self)), SaveChanges); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn Document_get_Views(self: *const T, _param_Views: ?*?*Views) HRESULT { return @as(*const Document.VTable, @ptrCast(self.vtable)).get_Views(@as(*const Document, @ptrCast(self)), _param_Views); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn Document_get_SnapIns(self: *const T, _param_SnapIns: ?*?*SnapIns) HRESULT { return @as(*const Document.VTable, @ptrCast(self.vtable)).get_SnapIns(@as(*const Document, @ptrCast(self)), _param_SnapIns); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn Document_get_ActiveView(self: *const T, _param_View: ?*?*View) HRESULT { return @as(*const Document.VTable, @ptrCast(self.vtable)).get_ActiveView(@as(*const Document, @ptrCast(self)), _param_View); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn Document_get_Name(self: *const T, Name: ?*?*u16) HRESULT { return @as(*const Document.VTable, @ptrCast(self.vtable)).get_Name(@as(*const Document, @ptrCast(self)), Name); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn Document_put_Name(self: *const T, Name: ?BSTR) HRESULT { return @as(*const Document.VTable, @ptrCast(self.vtable)).put_Name(@as(*const Document, @ptrCast(self)), Name); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn Document_get_Location(self: *const T, Location: ?*?*u16) HRESULT { return @as(*const Document.VTable, @ptrCast(self.vtable)).get_Location(@as(*const Document, @ptrCast(self)), Location); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn Document_get_IsSaved(self: *const T, IsSaved: ?*BOOL) HRESULT { return @as(*const Document.VTable, @ptrCast(self.vtable)).get_IsSaved(@as(*const Document, @ptrCast(self)), IsSaved); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn Document_get_Mode(self: *const T, Mode: ?*_DocumentMode) HRESULT { return @as(*const Document.VTable, @ptrCast(self.vtable)).get_Mode(@as(*const Document, @ptrCast(self)), Mode); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn Document_put_Mode(self: *const T, Mode: _DocumentMode) HRESULT { return @as(*const Document.VTable, @ptrCast(self.vtable)).put_Mode(@as(*const Document, @ptrCast(self)), Mode); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn Document_get_RootNode(self: *const T, _param_Node: ?*?*Node) HRESULT { return @as(*const Document.VTable, @ptrCast(self.vtable)).get_RootNode(@as(*const Document, @ptrCast(self)), _param_Node); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn Document_get_ScopeNamespace(self: *const T, _param_ScopeNamespace: ?*?*ScopeNamespace) HRESULT { return @as(*const Document.VTable, @ptrCast(self.vtable)).get_ScopeNamespace(@as(*const Document, @ptrCast(self)), _param_ScopeNamespace); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn Document_CreateProperties(self: *const T, _param_Properties: ?*?*Properties) HRESULT { return @as(*const Document.VTable, @ptrCast(self.vtable)).CreateProperties(@as(*const Document, @ptrCast(self)), _param_Properties); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn Document_get_Application(self: *const T, Application: ?*?*_Application) HRESULT { return @as(*const Document.VTable, @ptrCast(self.vtable)).get_Application(@as(*const Document, @ptrCast(self)), Application); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_SnapIn_Value = Guid.initString("3be910f6-3459-49c6-a1bb-41e6be9df3ea"); pub const IID_SnapIn = &IID_SnapIn_Value; pub const SnapIn = extern struct { pub const VTable = extern struct { base: IDispatch.VTable, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Name: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const SnapIn, Name: ?*?*u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const SnapIn, Name: ?*?*u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Vendor: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const SnapIn, Vendor: ?*?*u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const SnapIn, Vendor: ?*?*u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Version: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const SnapIn, Version: ?*?*u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const SnapIn, Version: ?*?*u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Extensions: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const SnapIn, Extensions: ?*?*Extensions, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const SnapIn, Extensions: ?*?*Extensions, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_SnapinCLSID: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const SnapIn, SnapinCLSID: ?*?*u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const SnapIn, SnapinCLSID: ?*?*u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Properties: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const SnapIn, Properties: ?*?*Properties, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const SnapIn, Properties: ?*?*Properties, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, EnableAllExtensions: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const SnapIn, Enable: BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const SnapIn, Enable: BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IDispatch.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn SnapIn_get_Name(self: *const T, Name: ?*?*u16) HRESULT { return @as(*const SnapIn.VTable, @ptrCast(self.vtable)).get_Name(@as(*const SnapIn, @ptrCast(self)), Name); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn SnapIn_get_Vendor(self: *const T, Vendor: ?*?*u16) HRESULT { return @as(*const SnapIn.VTable, @ptrCast(self.vtable)).get_Vendor(@as(*const SnapIn, @ptrCast(self)), Vendor); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn SnapIn_get_Version(self: *const T, Version: ?*?*u16) HRESULT { return @as(*const SnapIn.VTable, @ptrCast(self.vtable)).get_Version(@as(*const SnapIn, @ptrCast(self)), Version); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn SnapIn_get_Extensions(self: *const T, _param_Extensions: ?*?*Extensions) HRESULT { return @as(*const SnapIn.VTable, @ptrCast(self.vtable)).get_Extensions(@as(*const SnapIn, @ptrCast(self)), _param_Extensions); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn SnapIn_get_SnapinCLSID(self: *const T, SnapinCLSID: ?*?*u16) HRESULT { return @as(*const SnapIn.VTable, @ptrCast(self.vtable)).get_SnapinCLSID(@as(*const SnapIn, @ptrCast(self)), SnapinCLSID); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn SnapIn_get_Properties(self: *const T, _param_Properties: ?*?*Properties) HRESULT { return @as(*const SnapIn.VTable, @ptrCast(self.vtable)).get_Properties(@as(*const SnapIn, @ptrCast(self)), _param_Properties); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn SnapIn_EnableAllExtensions(self: *const T, Enable: BOOL) HRESULT { return @as(*const SnapIn.VTable, @ptrCast(self.vtable)).EnableAllExtensions(@as(*const SnapIn, @ptrCast(self)), Enable); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_SnapIns_Value = Guid.initString("2ef3de1d-b12a-49d1-92c5-0b00798768f1"); pub const IID_SnapIns = &IID_SnapIns_Value; pub const SnapIns = extern struct { pub const VTable = extern struct { base: IDispatch.VTable, // TODO: this function has a "SpecialName", should Zig do anything with this? get__NewEnum: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const SnapIns, retval: ?*?*IUnknown, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const SnapIns, retval: ?*?*IUnknown, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Item: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const SnapIns, Index: i32, SnapIn: ?*?*SnapIn, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const SnapIns, Index: i32, SnapIn: ?*?*SnapIn, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Count: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const SnapIns, Count: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const SnapIns, Count: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Add: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const SnapIns, SnapinNameOrCLSID: ?BSTR, ParentSnapin: VARIANT, Properties: VARIANT, SnapIn: ?*?*SnapIn, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const SnapIns, SnapinNameOrCLSID: ?BSTR, ParentSnapin: VARIANT, Properties: VARIANT, SnapIn: ?*?*SnapIn, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Remove: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const SnapIns, SnapIn: ?*SnapIn, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const SnapIns, SnapIn: ?*SnapIn, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IDispatch.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn SnapIns_get__NewEnum(self: *const T, retval: ?*?*IUnknown) HRESULT { return @as(*const SnapIns.VTable, @ptrCast(self.vtable)).get__NewEnum(@as(*const SnapIns, @ptrCast(self)), retval); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn SnapIns_Item(self: *const T, Index: i32, _param_SnapIn: ?*?*SnapIn) HRESULT { return @as(*const SnapIns.VTable, @ptrCast(self.vtable)).Item(@as(*const SnapIns, @ptrCast(self)), Index, _param_SnapIn); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn SnapIns_get_Count(self: *const T, Count: ?*i32) HRESULT { return @as(*const SnapIns.VTable, @ptrCast(self.vtable)).get_Count(@as(*const SnapIns, @ptrCast(self)), Count); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn SnapIns_Add(self: *const T, SnapinNameOrCLSID: ?BSTR, ParentSnapin: VARIANT, _param_Properties: VARIANT, _param_SnapIn: ?*?*SnapIn) HRESULT { return @as(*const SnapIns.VTable, @ptrCast(self.vtable)).Add(@as(*const SnapIns, @ptrCast(self)), SnapinNameOrCLSID, ParentSnapin, _param_Properties, _param_SnapIn); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn SnapIns_Remove(self: *const T, _param_SnapIn: ?*SnapIn) HRESULT { return @as(*const SnapIns.VTable, @ptrCast(self.vtable)).Remove(@as(*const SnapIns, @ptrCast(self)), _param_SnapIn); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_Extension_Value = Guid.initString("ad4d6ca6-912f-409b-a26e-7fd234aef542"); pub const IID_Extension = &IID_Extension_Value; pub const Extension = extern struct { pub const VTable = extern struct { base: IDispatch.VTable, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Name: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const Extension, Name: ?*?*u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const Extension, Name: ?*?*u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Vendor: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const Extension, Vendor: ?*?*u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const Extension, Vendor: ?*?*u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Version: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const Extension, Version: ?*?*u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const Extension, Version: ?*?*u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Extensions: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const Extension, Extensions: ?*?*Extensions, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const Extension, Extensions: ?*?*Extensions, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_SnapinCLSID: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const Extension, SnapinCLSID: ?*?*u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const Extension, SnapinCLSID: ?*?*u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, EnableAllExtensions: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const Extension, Enable: BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const Extension, Enable: BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Enable: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const Extension, Enable: BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const Extension, Enable: BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IDispatch.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn Extension_get_Name(self: *const T, Name: ?*?*u16) HRESULT { return @as(*const Extension.VTable, @ptrCast(self.vtable)).get_Name(@as(*const Extension, @ptrCast(self)), Name); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn Extension_get_Vendor(self: *const T, Vendor: ?*?*u16) HRESULT { return @as(*const Extension.VTable, @ptrCast(self.vtable)).get_Vendor(@as(*const Extension, @ptrCast(self)), Vendor); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn Extension_get_Version(self: *const T, Version: ?*?*u16) HRESULT { return @as(*const Extension.VTable, @ptrCast(self.vtable)).get_Version(@as(*const Extension, @ptrCast(self)), Version); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn Extension_get_Extensions(self: *const T, _param_Extensions: ?*?*Extensions) HRESULT { return @as(*const Extension.VTable, @ptrCast(self.vtable)).get_Extensions(@as(*const Extension, @ptrCast(self)), _param_Extensions); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn Extension_get_SnapinCLSID(self: *const T, SnapinCLSID: ?*?*u16) HRESULT { return @as(*const Extension.VTable, @ptrCast(self.vtable)).get_SnapinCLSID(@as(*const Extension, @ptrCast(self)), SnapinCLSID); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn Extension_EnableAllExtensions(self: *const T, Enable: BOOL) HRESULT { return @as(*const Extension.VTable, @ptrCast(self.vtable)).EnableAllExtensions(@as(*const Extension, @ptrCast(self)), Enable); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn Extension_Enable(self: *const T, Enable: BOOL) HRESULT { return @as(*const Extension.VTable, @ptrCast(self.vtable)).Enable(@as(*const Extension, @ptrCast(self)), Enable); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_Extensions_Value = Guid.initString("82dbea43-8ca4-44bc-a2ca-d18741059ec8"); pub const IID_Extensions = &IID_Extensions_Value; pub const Extensions = extern struct { pub const VTable = extern struct { base: IDispatch.VTable, // TODO: this function has a "SpecialName", should Zig do anything with this? get__NewEnum: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const Extensions, retval: ?*?*IUnknown, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const Extensions, retval: ?*?*IUnknown, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Item: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const Extensions, Index: i32, Extension: ?*?*Extension, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const Extensions, Index: i32, Extension: ?*?*Extension, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Count: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const Extensions, Count: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const Extensions, Count: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IDispatch.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn Extensions_get__NewEnum(self: *const T, retval: ?*?*IUnknown) HRESULT { return @as(*const Extensions.VTable, @ptrCast(self.vtable)).get__NewEnum(@as(*const Extensions, @ptrCast(self)), retval); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn Extensions_Item(self: *const T, Index: i32, _param_Extension: ?*?*Extension) HRESULT { return @as(*const Extensions.VTable, @ptrCast(self.vtable)).Item(@as(*const Extensions, @ptrCast(self)), Index, _param_Extension); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn Extensions_get_Count(self: *const T, Count: ?*i32) HRESULT { return @as(*const Extensions.VTable, @ptrCast(self.vtable)).get_Count(@as(*const Extensions, @ptrCast(self)), Count); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_Columns_Value = Guid.initString("383d4d97-fc44-478b-b139-6323dc48611c"); pub const IID_Columns = &IID_Columns_Value; pub const Columns = extern struct { pub const VTable = extern struct { base: IDispatch.VTable, Item: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const Columns, Index: i32, Column: ?*?*Column, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const Columns, Index: i32, Column: ?*?*Column, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Count: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const Columns, Count: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const Columns, Count: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get__NewEnum: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const Columns, retval: ?*?*IUnknown, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const Columns, retval: ?*?*IUnknown, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IDispatch.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn Columns_Item(self: *const T, Index: i32, _param_Column: ?*?*Column) HRESULT { return @as(*const Columns.VTable, @ptrCast(self.vtable)).Item(@as(*const Columns, @ptrCast(self)), Index, _param_Column); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn Columns_get_Count(self: *const T, Count: ?*i32) HRESULT { return @as(*const Columns.VTable, @ptrCast(self.vtable)).get_Count(@as(*const Columns, @ptrCast(self)), Count); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn Columns_get__NewEnum(self: *const T, retval: ?*?*IUnknown) HRESULT { return @as(*const Columns.VTable, @ptrCast(self.vtable)).get__NewEnum(@as(*const Columns, @ptrCast(self)), retval); } }; } pub usingnamespace MethodMixin(@This()); }; pub const _ColumnSortOrder = enum(i32) { Ascending = 0, Descending = 1, }; pub const SortOrder_Ascending = _ColumnSortOrder.Ascending; pub const SortOrder_Descending = _ColumnSortOrder.Descending; const IID_Column_Value = Guid.initString("fd1c5f63-2b16-4d06-9ab3-f45350b940ab"); pub const IID_Column = &IID_Column_Value; pub const Column = extern struct { pub const VTable = extern struct { base: IDispatch.VTable, Name: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const Column, Name: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const Column, Name: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Width: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const Column, Width: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const Column, Width: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_Width: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const Column, Width: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const Column, Width: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_DisplayPosition: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const Column, DisplayPosition: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const Column, DisplayPosition: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_DisplayPosition: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const Column, Index: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const Column, Index: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Hidden: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const Column, Hidden: ?*BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const Column, Hidden: ?*BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_Hidden: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const Column, Hidden: BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const Column, Hidden: BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetAsSortColumn: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const Column, SortOrder: _ColumnSortOrder, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const Column, SortOrder: _ColumnSortOrder, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, IsSortColumn: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const Column, IsSortColumn: ?*BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const Column, IsSortColumn: ?*BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IDispatch.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn Column_Name(self: *const T, Name: ?*?BSTR) HRESULT { return @as(*const Column.VTable, @ptrCast(self.vtable)).Name(@as(*const Column, @ptrCast(self)), Name); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn Column_get_Width(self: *const T, Width: ?*i32) HRESULT { return @as(*const Column.VTable, @ptrCast(self.vtable)).get_Width(@as(*const Column, @ptrCast(self)), Width); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn Column_put_Width(self: *const T, Width: i32) HRESULT { return @as(*const Column.VTable, @ptrCast(self.vtable)).put_Width(@as(*const Column, @ptrCast(self)), Width); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn Column_get_DisplayPosition(self: *const T, DisplayPosition: ?*i32) HRESULT { return @as(*const Column.VTable, @ptrCast(self.vtable)).get_DisplayPosition(@as(*const Column, @ptrCast(self)), DisplayPosition); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn Column_put_DisplayPosition(self: *const T, Index: i32) HRESULT { return @as(*const Column.VTable, @ptrCast(self.vtable)).put_DisplayPosition(@as(*const Column, @ptrCast(self)), Index); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn Column_get_Hidden(self: *const T, Hidden: ?*BOOL) HRESULT { return @as(*const Column.VTable, @ptrCast(self.vtable)).get_Hidden(@as(*const Column, @ptrCast(self)), Hidden); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn Column_put_Hidden(self: *const T, Hidden: BOOL) HRESULT { return @as(*const Column.VTable, @ptrCast(self.vtable)).put_Hidden(@as(*const Column, @ptrCast(self)), Hidden); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn Column_SetAsSortColumn(self: *const T, SortOrder: _ColumnSortOrder) HRESULT { return @as(*const Column.VTable, @ptrCast(self.vtable)).SetAsSortColumn(@as(*const Column, @ptrCast(self)), SortOrder); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn Column_IsSortColumn(self: *const T, IsSortColumn: ?*BOOL) HRESULT { return @as(*const Column.VTable, @ptrCast(self.vtable)).IsSortColumn(@as(*const Column, @ptrCast(self)), IsSortColumn); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_Views_Value = Guid.initString("d6b8c29d-a1ff-4d72-aab0-e381e9b9338d"); pub const IID_Views = &IID_Views_Value; pub const Views = extern struct { pub const VTable = extern struct { base: IDispatch.VTable, Item: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const Views, Index: i32, View: ?*?*View, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const Views, Index: i32, View: ?*?*View, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Count: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const Views, Count: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const Views, Count: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Add: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const Views, Node: ?*Node, viewOptions: _ViewOptions, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const Views, Node: ?*Node, viewOptions: _ViewOptions, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get__NewEnum: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const Views, retval: ?*?*IUnknown, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const Views, retval: ?*?*IUnknown, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IDispatch.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn Views_Item(self: *const T, Index: i32, _param_View: ?*?*View) HRESULT { return @as(*const Views.VTable, @ptrCast(self.vtable)).Item(@as(*const Views, @ptrCast(self)), Index, _param_View); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn Views_get_Count(self: *const T, Count: ?*i32) HRESULT { return @as(*const Views.VTable, @ptrCast(self.vtable)).get_Count(@as(*const Views, @ptrCast(self)), Count); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn Views_Add(self: *const T, _param_Node: ?*Node, viewOptions: _ViewOptions) HRESULT { return @as(*const Views.VTable, @ptrCast(self.vtable)).Add(@as(*const Views, @ptrCast(self)), _param_Node, viewOptions); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn Views_get__NewEnum(self: *const T, retval: ?*?*IUnknown) HRESULT { return @as(*const Views.VTable, @ptrCast(self.vtable)).get__NewEnum(@as(*const Views, @ptrCast(self)), retval); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_View_Value = Guid.initString("6efc2da2-b38c-457e-9abb-ed2d189b8c38"); pub const IID_View = &IID_View_Value; pub const View = extern struct { pub const VTable = extern struct { base: IDispatch.VTable, // TODO: this function has a "SpecialName", should Zig do anything with this? get_ActiveScopeNode: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const View, Node: ?*?*Node, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const View, Node: ?*?*Node, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_ActiveScopeNode: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const View, Node: ?*Node, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const View, Node: ?*Node, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Selection: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const View, Nodes: ?*?*Nodes, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const View, Nodes: ?*?*Nodes, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_ListItems: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const View, Nodes: ?*?*Nodes, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const View, Nodes: ?*?*Nodes, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SnapinScopeObject: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const View, ScopeNode: VARIANT, ScopeNodeObject: ?*?*IDispatch, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const View, ScopeNode: VARIANT, ScopeNodeObject: ?*?*IDispatch, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SnapinSelectionObject: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const View, SelectionObject: ?*?*IDispatch, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const View, SelectionObject: ?*?*IDispatch, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Is: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const View, View: ?*View, TheSame: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const View, View: ?*View, TheSame: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Document: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const View, Document: ?*?*Document, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const View, Document: ?*?*Document, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SelectAll: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const View, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const View, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Select: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const View, Node: ?*Node, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const View, Node: ?*Node, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Deselect: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const View, Node: ?*Node, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const View, Node: ?*Node, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, IsSelected: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const View, Node: ?*Node, IsSelected: ?*BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const View, Node: ?*Node, IsSelected: ?*BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, DisplayScopeNodePropertySheet: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const View, ScopeNode: VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const View, ScopeNode: VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, DisplaySelectionPropertySheet: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const View, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const View, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, CopyScopeNode: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const View, ScopeNode: VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const View, ScopeNode: VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, CopySelection: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const View, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const View, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, DeleteScopeNode: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const View, ScopeNode: VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const View, ScopeNode: VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, DeleteSelection: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const View, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const View, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, RenameScopeNode: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const View, NewName: ?BSTR, ScopeNode: VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const View, NewName: ?BSTR, ScopeNode: VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, RenameSelectedItem: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const View, NewName: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const View, NewName: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_ScopeNodeContextMenu: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const View, ScopeNode: VARIANT, ContextMenu: ?*?*ContextMenu, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const View, ScopeNode: VARIANT, ContextMenu: ?*?*ContextMenu, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_SelectionContextMenu: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const View, ContextMenu: ?*?*ContextMenu, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const View, ContextMenu: ?*?*ContextMenu, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, RefreshScopeNode: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const View, ScopeNode: VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const View, ScopeNode: VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, RefreshSelection: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const View, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const View, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, ExecuteSelectionMenuItem: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const View, MenuItemPath: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const View, MenuItemPath: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, ExecuteScopeNodeMenuItem: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const View, MenuItemPath: ?BSTR, ScopeNode: VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const View, MenuItemPath: ?BSTR, ScopeNode: VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, ExecuteShellCommand: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const View, Command: ?BSTR, Directory: ?BSTR, Parameters: ?BSTR, WindowState: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const View, Command: ?BSTR, Directory: ?BSTR, Parameters: ?BSTR, WindowState: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Frame: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const View, Frame: ?*?*Frame, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const View, Frame: ?*?*Frame, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Close: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const View, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const View, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_ScopeTreeVisible: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const View, Visible: ?*BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const View, Visible: ?*BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_ScopeTreeVisible: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const View, Visible: BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const View, Visible: BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Back: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const View, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const View, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Forward: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const View, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const View, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_StatusBarText: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const View, StatusBarText: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const View, StatusBarText: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Memento: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const View, Memento: ?*?*u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const View, Memento: ?*?*u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, ViewMemento: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const View, Memento: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const View, Memento: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Columns: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const View, Columns: ?*?*Columns, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const View, Columns: ?*?*Columns, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_CellContents: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const View, Node: ?*Node, Column: i32, CellContents: ?*?*u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const View, Node: ?*Node, Column: i32, CellContents: ?*?*u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, ExportList: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const View, File: ?BSTR, exportoptions: _ExportListOptions, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const View, File: ?BSTR, exportoptions: _ExportListOptions, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_ListViewMode: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const View, Mode: ?*_ListViewMode, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const View, Mode: ?*_ListViewMode, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_ListViewMode: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const View, mode: _ListViewMode, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const View, mode: _ListViewMode, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_ControlObject: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const View, Control: ?*?*IDispatch, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const View, Control: ?*?*IDispatch, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IDispatch.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn View_get_ActiveScopeNode(self: *const T, _param_Node: ?*?*Node) HRESULT { return @as(*const View.VTable, @ptrCast(self.vtable)).get_ActiveScopeNode(@as(*const View, @ptrCast(self)), _param_Node); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn View_put_ActiveScopeNode(self: *const T, _param_Node: ?*Node) HRESULT { return @as(*const View.VTable, @ptrCast(self.vtable)).put_ActiveScopeNode(@as(*const View, @ptrCast(self)), _param_Node); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn View_get_Selection(self: *const T, _param_Nodes: ?*?*Nodes) HRESULT { return @as(*const View.VTable, @ptrCast(self.vtable)).get_Selection(@as(*const View, @ptrCast(self)), _param_Nodes); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn View_get_ListItems(self: *const T, _param_Nodes: ?*?*Nodes) HRESULT { return @as(*const View.VTable, @ptrCast(self.vtable)).get_ListItems(@as(*const View, @ptrCast(self)), _param_Nodes); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn View_SnapinScopeObject(self: *const T, ScopeNode: VARIANT, ScopeNodeObject: ?*?*IDispatch) HRESULT { return @as(*const View.VTable, @ptrCast(self.vtable)).SnapinScopeObject(@as(*const View, @ptrCast(self)), ScopeNode, ScopeNodeObject); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn View_SnapinSelectionObject(self: *const T, SelectionObject: ?*?*IDispatch) HRESULT { return @as(*const View.VTable, @ptrCast(self.vtable)).SnapinSelectionObject(@as(*const View, @ptrCast(self)), SelectionObject); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn View_Is(self: *const T, _param_View: ?*View, TheSame: ?*i16) HRESULT { return @as(*const View.VTable, @ptrCast(self.vtable)).Is(@as(*const View, @ptrCast(self)), _param_View, TheSame); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn View_get_Document(self: *const T, _param_Document: ?*?*Document) HRESULT { return @as(*const View.VTable, @ptrCast(self.vtable)).get_Document(@as(*const View, @ptrCast(self)), _param_Document); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn View_SelectAll(self: *const T) HRESULT { return @as(*const View.VTable, @ptrCast(self.vtable)).SelectAll(@as(*const View, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn View_Select(self: *const T, _param_Node: ?*Node) HRESULT { return @as(*const View.VTable, @ptrCast(self.vtable)).Select(@as(*const View, @ptrCast(self)), _param_Node); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn View_Deselect(self: *const T, _param_Node: ?*Node) HRESULT { return @as(*const View.VTable, @ptrCast(self.vtable)).Deselect(@as(*const View, @ptrCast(self)), _param_Node); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn View_IsSelected(self: *const T, _param_Node: ?*Node, IsSelected: ?*BOOL) HRESULT { return @as(*const View.VTable, @ptrCast(self.vtable)).IsSelected(@as(*const View, @ptrCast(self)), _param_Node, IsSelected); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn View_DisplayScopeNodePropertySheet(self: *const T, ScopeNode: VARIANT) HRESULT { return @as(*const View.VTable, @ptrCast(self.vtable)).DisplayScopeNodePropertySheet(@as(*const View, @ptrCast(self)), ScopeNode); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn View_DisplaySelectionPropertySheet(self: *const T) HRESULT { return @as(*const View.VTable, @ptrCast(self.vtable)).DisplaySelectionPropertySheet(@as(*const View, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn View_CopyScopeNode(self: *const T, ScopeNode: VARIANT) HRESULT { return @as(*const View.VTable, @ptrCast(self.vtable)).CopyScopeNode(@as(*const View, @ptrCast(self)), ScopeNode); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn View_CopySelection(self: *const T) HRESULT { return @as(*const View.VTable, @ptrCast(self.vtable)).CopySelection(@as(*const View, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn View_DeleteScopeNode(self: *const T, ScopeNode: VARIANT) HRESULT { return @as(*const View.VTable, @ptrCast(self.vtable)).DeleteScopeNode(@as(*const View, @ptrCast(self)), ScopeNode); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn View_DeleteSelection(self: *const T) HRESULT { return @as(*const View.VTable, @ptrCast(self.vtable)).DeleteSelection(@as(*const View, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn View_RenameScopeNode(self: *const T, NewName: ?BSTR, ScopeNode: VARIANT) HRESULT { return @as(*const View.VTable, @ptrCast(self.vtable)).RenameScopeNode(@as(*const View, @ptrCast(self)), NewName, ScopeNode); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn View_RenameSelectedItem(self: *const T, NewName: ?BSTR) HRESULT { return @as(*const View.VTable, @ptrCast(self.vtable)).RenameSelectedItem(@as(*const View, @ptrCast(self)), NewName); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn View_get_ScopeNodeContextMenu(self: *const T, ScopeNode: VARIANT, _param_ContextMenu: ?*?*ContextMenu) HRESULT { return @as(*const View.VTable, @ptrCast(self.vtable)).get_ScopeNodeContextMenu(@as(*const View, @ptrCast(self)), ScopeNode, _param_ContextMenu); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn View_get_SelectionContextMenu(self: *const T, _param_ContextMenu: ?*?*ContextMenu) HRESULT { return @as(*const View.VTable, @ptrCast(self.vtable)).get_SelectionContextMenu(@as(*const View, @ptrCast(self)), _param_ContextMenu); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn View_RefreshScopeNode(self: *const T, ScopeNode: VARIANT) HRESULT { return @as(*const View.VTable, @ptrCast(self.vtable)).RefreshScopeNode(@as(*const View, @ptrCast(self)), ScopeNode); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn View_RefreshSelection(self: *const T) HRESULT { return @as(*const View.VTable, @ptrCast(self.vtable)).RefreshSelection(@as(*const View, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn View_ExecuteSelectionMenuItem(self: *const T, MenuItemPath: ?BSTR) HRESULT { return @as(*const View.VTable, @ptrCast(self.vtable)).ExecuteSelectionMenuItem(@as(*const View, @ptrCast(self)), MenuItemPath); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn View_ExecuteScopeNodeMenuItem(self: *const T, MenuItemPath: ?BSTR, ScopeNode: VARIANT) HRESULT { return @as(*const View.VTable, @ptrCast(self.vtable)).ExecuteScopeNodeMenuItem(@as(*const View, @ptrCast(self)), MenuItemPath, ScopeNode); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn View_ExecuteShellCommand(self: *const T, Command: ?BSTR, Directory: ?BSTR, Parameters: ?BSTR, WindowState: ?BSTR) HRESULT { return @as(*const View.VTable, @ptrCast(self.vtable)).ExecuteShellCommand(@as(*const View, @ptrCast(self)), Command, Directory, Parameters, WindowState); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn View_get_Frame(self: *const T, _param_Frame: ?*?*Frame) HRESULT { return @as(*const View.VTable, @ptrCast(self.vtable)).get_Frame(@as(*const View, @ptrCast(self)), _param_Frame); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn View_Close(self: *const T) HRESULT { return @as(*const View.VTable, @ptrCast(self.vtable)).Close(@as(*const View, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn View_get_ScopeTreeVisible(self: *const T, Visible: ?*BOOL) HRESULT { return @as(*const View.VTable, @ptrCast(self.vtable)).get_ScopeTreeVisible(@as(*const View, @ptrCast(self)), Visible); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn View_put_ScopeTreeVisible(self: *const T, Visible: BOOL) HRESULT { return @as(*const View.VTable, @ptrCast(self.vtable)).put_ScopeTreeVisible(@as(*const View, @ptrCast(self)), Visible); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn View_Back(self: *const T) HRESULT { return @as(*const View.VTable, @ptrCast(self.vtable)).Back(@as(*const View, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn View_Forward(self: *const T) HRESULT { return @as(*const View.VTable, @ptrCast(self.vtable)).Forward(@as(*const View, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn View_put_StatusBarText(self: *const T, StatusBarText: ?BSTR) HRESULT { return @as(*const View.VTable, @ptrCast(self.vtable)).put_StatusBarText(@as(*const View, @ptrCast(self)), StatusBarText); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn View_get_Memento(self: *const T, Memento: ?*?*u16) HRESULT { return @as(*const View.VTable, @ptrCast(self.vtable)).get_Memento(@as(*const View, @ptrCast(self)), Memento); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn View_ViewMemento(self: *const T, Memento: ?BSTR) HRESULT { return @as(*const View.VTable, @ptrCast(self.vtable)).ViewMemento(@as(*const View, @ptrCast(self)), Memento); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn View_get_Columns(self: *const T, _param_Columns: ?*?*Columns) HRESULT { return @as(*const View.VTable, @ptrCast(self.vtable)).get_Columns(@as(*const View, @ptrCast(self)), _param_Columns); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn View_get_CellContents(self: *const T, _param_Node: ?*Node, _param_Column: i32, CellContents: ?*?*u16) HRESULT { return @as(*const View.VTable, @ptrCast(self.vtable)).get_CellContents(@as(*const View, @ptrCast(self)), _param_Node, _param_Column, CellContents); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn View_ExportList(self: *const T, File: ?BSTR, exportoptions: _ExportListOptions) HRESULT { return @as(*const View.VTable, @ptrCast(self.vtable)).ExportList(@as(*const View, @ptrCast(self)), File, exportoptions); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn View_get_ListViewMode(self: *const T, Mode: ?*_ListViewMode) HRESULT { return @as(*const View.VTable, @ptrCast(self.vtable)).get_ListViewMode(@as(*const View, @ptrCast(self)), Mode); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn View_put_ListViewMode(self: *const T, mode: _ListViewMode) HRESULT { return @as(*const View.VTable, @ptrCast(self.vtable)).put_ListViewMode(@as(*const View, @ptrCast(self)), mode); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn View_get_ControlObject(self: *const T, Control: ?*?*IDispatch) HRESULT { return @as(*const View.VTable, @ptrCast(self.vtable)).get_ControlObject(@as(*const View, @ptrCast(self)), Control); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_Nodes_Value = Guid.initString("313b01df-b22f-4d42-b1b8-483cdcf51d35"); pub const IID_Nodes = &IID_Nodes_Value; pub const Nodes = extern struct { pub const VTable = extern struct { base: IDispatch.VTable, // TODO: this function has a "SpecialName", should Zig do anything with this? get__NewEnum: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const Nodes, retval: ?*?*IUnknown, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const Nodes, retval: ?*?*IUnknown, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Item: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const Nodes, Index: i32, Node: ?*?*Node, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const Nodes, Index: i32, Node: ?*?*Node, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Count: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const Nodes, Count: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const Nodes, Count: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IDispatch.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn Nodes_get__NewEnum(self: *const T, retval: ?*?*IUnknown) HRESULT { return @as(*const Nodes.VTable, @ptrCast(self.vtable)).get__NewEnum(@as(*const Nodes, @ptrCast(self)), retval); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn Nodes_Item(self: *const T, Index: i32, _param_Node: ?*?*Node) HRESULT { return @as(*const Nodes.VTable, @ptrCast(self.vtable)).Item(@as(*const Nodes, @ptrCast(self)), Index, _param_Node); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn Nodes_get_Count(self: *const T, Count: ?*i32) HRESULT { return @as(*const Nodes.VTable, @ptrCast(self.vtable)).get_Count(@as(*const Nodes, @ptrCast(self)), Count); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_ContextMenu_Value = Guid.initString("dab39ce0-25e6-4e07-8362-ba9c95706545"); pub const IID_ContextMenu = &IID_ContextMenu_Value; pub const ContextMenu = extern struct { pub const VTable = extern struct { base: IDispatch.VTable, // TODO: this function has a "SpecialName", should Zig do anything with this? get__NewEnum: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ContextMenu, retval: ?*?*IUnknown, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ContextMenu, retval: ?*?*IUnknown, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Item: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ContextMenu, IndexOrPath: VARIANT, MenuItem: ?*?*MenuItem, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ContextMenu, IndexOrPath: VARIANT, MenuItem: ?*?*MenuItem, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Count: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ContextMenu, Count: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ContextMenu, Count: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IDispatch.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ContextMenu_get__NewEnum(self: *const T, retval: ?*?*IUnknown) HRESULT { return @as(*const ContextMenu.VTable, @ptrCast(self.vtable)).get__NewEnum(@as(*const ContextMenu, @ptrCast(self)), retval); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ContextMenu_get_Item(self: *const T, IndexOrPath: VARIANT, _param_MenuItem: ?*?*MenuItem) HRESULT { return @as(*const ContextMenu.VTable, @ptrCast(self.vtable)).get_Item(@as(*const ContextMenu, @ptrCast(self)), IndexOrPath, _param_MenuItem); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ContextMenu_get_Count(self: *const T, Count: ?*i32) HRESULT { return @as(*const ContextMenu.VTable, @ptrCast(self.vtable)).get_Count(@as(*const ContextMenu, @ptrCast(self)), Count); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_MenuItem_Value = Guid.initString("0178fad1-b361-4b27-96ad-67c57ebf2e1d"); pub const IID_MenuItem = &IID_MenuItem_Value; pub const MenuItem = extern struct { pub const VTable = extern struct { base: IDispatch.VTable, // TODO: this function has a "SpecialName", should Zig do anything with this? get_DisplayName: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const MenuItem, DisplayName: ?*?*u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const MenuItem, DisplayName: ?*?*u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_LanguageIndependentName: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const MenuItem, LanguageIndependentName: ?*?*u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const MenuItem, LanguageIndependentName: ?*?*u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Path: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const MenuItem, Path: ?*?*u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const MenuItem, Path: ?*?*u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_LanguageIndependentPath: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const MenuItem, LanguageIndependentPath: ?*?*u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const MenuItem, LanguageIndependentPath: ?*?*u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Execute: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const MenuItem, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const MenuItem, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Enabled: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const MenuItem, Enabled: ?*BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const MenuItem, Enabled: ?*BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IDispatch.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn MenuItem_get_DisplayName(self: *const T, DisplayName: ?*?*u16) HRESULT { return @as(*const MenuItem.VTable, @ptrCast(self.vtable)).get_DisplayName(@as(*const MenuItem, @ptrCast(self)), DisplayName); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn MenuItem_get_LanguageIndependentName(self: *const T, LanguageIndependentName: ?*?*u16) HRESULT { return @as(*const MenuItem.VTable, @ptrCast(self.vtable)).get_LanguageIndependentName(@as(*const MenuItem, @ptrCast(self)), LanguageIndependentName); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn MenuItem_get_Path(self: *const T, Path: ?*?*u16) HRESULT { return @as(*const MenuItem.VTable, @ptrCast(self.vtable)).get_Path(@as(*const MenuItem, @ptrCast(self)), Path); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn MenuItem_get_LanguageIndependentPath(self: *const T, LanguageIndependentPath: ?*?*u16) HRESULT { return @as(*const MenuItem.VTable, @ptrCast(self.vtable)).get_LanguageIndependentPath(@as(*const MenuItem, @ptrCast(self)), LanguageIndependentPath); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn MenuItem_Execute(self: *const T) HRESULT { return @as(*const MenuItem.VTable, @ptrCast(self.vtable)).Execute(@as(*const MenuItem, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn MenuItem_get_Enabled(self: *const T, Enabled: ?*BOOL) HRESULT { return @as(*const MenuItem.VTable, @ptrCast(self.vtable)).get_Enabled(@as(*const MenuItem, @ptrCast(self)), Enabled); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_Properties_Value = Guid.initString("2886abc2-a425-42b2-91c6-e25c0e04581c"); pub const IID_Properties = &IID_Properties_Value; pub const Properties = extern struct { pub const VTable = extern struct { base: IDispatch.VTable, // TODO: this function has a "SpecialName", should Zig do anything with this? get__NewEnum: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const Properties, retval: ?*?*IUnknown, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const Properties, retval: ?*?*IUnknown, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Item: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const Properties, Name: ?BSTR, Property: ?*?*Property, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const Properties, Name: ?BSTR, Property: ?*?*Property, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Count: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const Properties, Count: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const Properties, Count: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Remove: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const Properties, Name: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const Properties, Name: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IDispatch.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn Properties_get__NewEnum(self: *const T, retval: ?*?*IUnknown) HRESULT { return @as(*const Properties.VTable, @ptrCast(self.vtable)).get__NewEnum(@as(*const Properties, @ptrCast(self)), retval); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn Properties_Item(self: *const T, Name: ?BSTR, _param_Property: ?*?*Property) HRESULT { return @as(*const Properties.VTable, @ptrCast(self.vtable)).Item(@as(*const Properties, @ptrCast(self)), Name, _param_Property); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn Properties_get_Count(self: *const T, Count: ?*i32) HRESULT { return @as(*const Properties.VTable, @ptrCast(self.vtable)).get_Count(@as(*const Properties, @ptrCast(self)), Count); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn Properties_Remove(self: *const T, Name: ?BSTR) HRESULT { return @as(*const Properties.VTable, @ptrCast(self.vtable)).Remove(@as(*const Properties, @ptrCast(self)), Name); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_Property_Value = Guid.initString("4600c3a5-e301-41d8-b6d0-ef2e4212e0ca"); pub const IID_Property = &IID_Property_Value; pub const Property = extern struct { pub const VTable = extern struct { base: IDispatch.VTable, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Value: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const Property, Value: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const Property, Value: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_Value: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const Property, Value: VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const Property, Value: VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Name: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const Property, Name: ?*?*u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const Property, Name: ?*?*u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IDispatch.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn Property_get_Value(self: *const T, Value: ?*VARIANT) HRESULT { return @as(*const Property.VTable, @ptrCast(self.vtable)).get_Value(@as(*const Property, @ptrCast(self)), Value); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn Property_put_Value(self: *const T, Value: VARIANT) HRESULT { return @as(*const Property.VTable, @ptrCast(self.vtable)).put_Value(@as(*const Property, @ptrCast(self)), Value); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn Property_get_Name(self: *const T, Name: ?*?*u16) HRESULT { return @as(*const Property.VTable, @ptrCast(self.vtable)).get_Name(@as(*const Property, @ptrCast(self)), Name); } }; } pub usingnamespace MethodMixin(@This()); }; const CLSID_MMCVersionInfo_Value = Guid.initString("d6fedb1d-cf21-4bd9-af3b-c5468e9c6684"); pub const CLSID_MMCVersionInfo = &CLSID_MMCVersionInfo_Value; const CLSID_ConsolePower_Value = Guid.initString("f0285374-dff1-11d3-b433-00c04f8ecd78"); pub const CLSID_ConsolePower = &CLSID_ConsolePower_Value; pub const MMC_RESULT_VIEW_STYLE = enum(i32) { SINGLESEL = 1, SHOWSELALWAYS = 2, NOSORTHEADER = 4, ENSUREFOCUSVISIBLE = 8, }; pub const MMC_SINGLESEL = MMC_RESULT_VIEW_STYLE.SINGLESEL; pub const MMC_SHOWSELALWAYS = MMC_RESULT_VIEW_STYLE.SHOWSELALWAYS; pub const MMC_NOSORTHEADER = MMC_RESULT_VIEW_STYLE.NOSORTHEADER; pub const MMC_ENSUREFOCUSVISIBLE = MMC_RESULT_VIEW_STYLE.ENSUREFOCUSVISIBLE; pub const MMC_CONTROL_TYPE = enum(i32) { TOOLBAR = 0, MENUBUTTON = 1, COMBOBOXBAR = 2, }; pub const TOOLBAR = MMC_CONTROL_TYPE.TOOLBAR; pub const MENUBUTTON = MMC_CONTROL_TYPE.MENUBUTTON; pub const COMBOBOXBAR = MMC_CONTROL_TYPE.COMBOBOXBAR; pub const MMC_CONSOLE_VERB = enum(i32) { NONE = 0, OPEN = 32768, COPY = 32769, PASTE = 32770, DELETE = 32771, PROPERTIES = 32772, RENAME = 32773, REFRESH = 32774, PRINT = 32775, CUT = 32776, MAX = 32777, // FIRST = 32768, this enum value conflicts with OPEN // LAST = 32776, this enum value conflicts with CUT }; pub const MMC_VERB_NONE = MMC_CONSOLE_VERB.NONE; pub const MMC_VERB_OPEN = MMC_CONSOLE_VERB.OPEN; pub const MMC_VERB_COPY = MMC_CONSOLE_VERB.COPY; pub const MMC_VERB_PASTE = MMC_CONSOLE_VERB.PASTE; pub const MMC_VERB_DELETE = MMC_CONSOLE_VERB.DELETE; pub const MMC_VERB_PROPERTIES = MMC_CONSOLE_VERB.PROPERTIES; pub const MMC_VERB_RENAME = MMC_CONSOLE_VERB.RENAME; pub const MMC_VERB_REFRESH = MMC_CONSOLE_VERB.REFRESH; pub const MMC_VERB_PRINT = MMC_CONSOLE_VERB.PRINT; pub const MMC_VERB_CUT = MMC_CONSOLE_VERB.CUT; pub const MMC_VERB_MAX = MMC_CONSOLE_VERB.MAX; pub const MMC_VERB_FIRST = MMC_CONSOLE_VERB.OPEN; pub const MMC_VERB_LAST = MMC_CONSOLE_VERB.CUT; pub const MMCBUTTON = extern struct { nBitmap: i32, idCommand: i32, fsState: u8, fsType: u8, lpButtonText: ?PWSTR, lpTooltipText: ?PWSTR, }; pub const MMC_BUTTON_STATE = enum(i32) { ENABLED = 1, CHECKED = 2, HIDDEN = 4, INDETERMINATE = 8, BUTTONPRESSED = 16, }; pub const ENABLED = MMC_BUTTON_STATE.ENABLED; pub const CHECKED = MMC_BUTTON_STATE.CHECKED; pub const HIDDEN = MMC_BUTTON_STATE.HIDDEN; pub const INDETERMINATE = MMC_BUTTON_STATE.INDETERMINATE; pub const BUTTONPRESSED = MMC_BUTTON_STATE.BUTTONPRESSED; pub const RESULTDATAITEM = extern struct { mask: u32, bScopeItem: BOOL, itemID: isize, nIndex: i32, nCol: i32, str: ?PWSTR, nImage: i32, nState: u32, lParam: LPARAM, iIndent: i32, }; pub const RESULTFINDINFO = extern struct { psz: ?PWSTR, nStart: i32, dwOptions: u32, }; pub const SCOPEDATAITEM = extern struct { mask: u32, displayname: ?PWSTR, nImage: i32, nOpenImage: i32, nState: u32, cChildren: i32, lParam: LPARAM, relativeID: isize, ID: isize, }; pub const MMC_SCOPE_ITEM_STATE = enum(i32) { NORMAL = 1, BOLD = 2, EXPANDEDONCE = 3, }; pub const MMC_SCOPE_ITEM_STATE_NORMAL = MMC_SCOPE_ITEM_STATE.NORMAL; pub const MMC_SCOPE_ITEM_STATE_BOLD = MMC_SCOPE_ITEM_STATE.BOLD; pub const MMC_SCOPE_ITEM_STATE_EXPANDEDONCE = MMC_SCOPE_ITEM_STATE.EXPANDEDONCE; pub const CONTEXTMENUITEM = extern struct { strName: ?PWSTR, strStatusBarText: ?PWSTR, lCommandID: i32, lInsertionPointID: i32, fFlags: i32, fSpecialFlags: i32, }; pub const MMC_MENU_COMMAND_IDS = enum(i32) { T = -1, }; pub const MMCC_STANDARD_VIEW_SELECT = MMC_MENU_COMMAND_IDS.T; pub const MENUBUTTONDATA = extern struct { idCommand: i32, x: i32, y: i32, }; pub const MMC_FILTER_TYPE = enum(i32) { STRING_FILTER = 0, INT_FILTER = 1, FILTER_NOVALUE = 32768, }; pub const MMC_STRING_FILTER = MMC_FILTER_TYPE.STRING_FILTER; pub const MMC_INT_FILTER = MMC_FILTER_TYPE.INT_FILTER; pub const MMC_FILTER_NOVALUE = MMC_FILTER_TYPE.FILTER_NOVALUE; pub const MMC_FILTERDATA = extern struct { pszText: ?PWSTR, cchTextMax: i32, lValue: i32, }; pub const MMC_FILTER_CHANGE_CODE = enum(i32) { DISABLE = 0, ENABLE = 1, VALUE_CHANGE = 2, }; pub const MFCC_DISABLE = MMC_FILTER_CHANGE_CODE.DISABLE; pub const MFCC_ENABLE = MMC_FILTER_CHANGE_CODE.ENABLE; pub const MFCC_VALUE_CHANGE = MMC_FILTER_CHANGE_CODE.VALUE_CHANGE; pub const MMC_RESTORE_VIEW = extern struct { dwSize: u32, cookie: isize, pViewType: ?PWSTR, lViewOptions: i32, }; pub const MMC_EXPANDSYNC_STRUCT = extern struct { bHandled: BOOL, bExpanding: BOOL, hItem: isize, }; pub const MMC_VISIBLE_COLUMNS = extern struct { nVisibleColumns: i32, rgVisibleCols: [1]i32, }; pub const MMC_NOTIFY_TYPE = enum(i32) { ACTIVATE = 32769, ADD_IMAGES = 32770, BTN_CLICK = 32771, CLICK = 32772, COLUMN_CLICK = 32773, CONTEXTMENU = 32774, CUTORMOVE = 32775, DBLCLICK = 32776, DELETE = 32777, DESELECT_ALL = 32778, EXPAND = 32779, HELP = 32780, MENU_BTNCLICK = 32781, MINIMIZED = 32782, PASTE = 32783, PROPERTY_CHANGE = 32784, QUERY_PASTE = 32785, REFRESH = 32786, REMOVE_CHILDREN = 32787, RENAME = 32788, SELECT = 32789, SHOW = 32790, VIEW_CHANGE = 32791, SNAPINHELP = 32792, CONTEXTHELP = 32793, INITOCX = 32794, FILTER_CHANGE = 32795, FILTERBTN_CLICK = 32796, RESTORE_VIEW = 32797, PRINT = 32798, PRELOAD = 32799, LISTPAD = 32800, EXPANDSYNC = 32801, COLUMNS_CHANGED = 32802, CANPASTE_OUTOFPROC = 32803, }; pub const MMCN_ACTIVATE = MMC_NOTIFY_TYPE.ACTIVATE; pub const MMCN_ADD_IMAGES = MMC_NOTIFY_TYPE.ADD_IMAGES; pub const MMCN_BTN_CLICK = MMC_NOTIFY_TYPE.BTN_CLICK; pub const MMCN_CLICK = MMC_NOTIFY_TYPE.CLICK; pub const MMCN_COLUMN_CLICK = MMC_NOTIFY_TYPE.COLUMN_CLICK; pub const MMCN_CONTEXTMENU = MMC_NOTIFY_TYPE.CONTEXTMENU; pub const MMCN_CUTORMOVE = MMC_NOTIFY_TYPE.CUTORMOVE; pub const MMCN_DBLCLICK = MMC_NOTIFY_TYPE.DBLCLICK; pub const MMCN_DELETE = MMC_NOTIFY_TYPE.DELETE; pub const MMCN_DESELECT_ALL = MMC_NOTIFY_TYPE.DESELECT_ALL; pub const MMCN_EXPAND = MMC_NOTIFY_TYPE.EXPAND; pub const MMCN_HELP = MMC_NOTIFY_TYPE.HELP; pub const MMCN_MENU_BTNCLICK = MMC_NOTIFY_TYPE.MENU_BTNCLICK; pub const MMCN_MINIMIZED = MMC_NOTIFY_TYPE.MINIMIZED; pub const MMCN_PASTE = MMC_NOTIFY_TYPE.PASTE; pub const MMCN_PROPERTY_CHANGE = MMC_NOTIFY_TYPE.PROPERTY_CHANGE; pub const MMCN_QUERY_PASTE = MMC_NOTIFY_TYPE.QUERY_PASTE; pub const MMCN_REFRESH = MMC_NOTIFY_TYPE.REFRESH; pub const MMCN_REMOVE_CHILDREN = MMC_NOTIFY_TYPE.REMOVE_CHILDREN; pub const MMCN_RENAME = MMC_NOTIFY_TYPE.RENAME; pub const MMCN_SELECT = MMC_NOTIFY_TYPE.SELECT; pub const MMCN_SHOW = MMC_NOTIFY_TYPE.SHOW; pub const MMCN_VIEW_CHANGE = MMC_NOTIFY_TYPE.VIEW_CHANGE; pub const MMCN_SNAPINHELP = MMC_NOTIFY_TYPE.SNAPINHELP; pub const MMCN_CONTEXTHELP = MMC_NOTIFY_TYPE.CONTEXTHELP; pub const MMCN_INITOCX = MMC_NOTIFY_TYPE.INITOCX; pub const MMCN_FILTER_CHANGE = MMC_NOTIFY_TYPE.FILTER_CHANGE; pub const MMCN_FILTERBTN_CLICK = MMC_NOTIFY_TYPE.FILTERBTN_CLICK; pub const MMCN_RESTORE_VIEW = MMC_NOTIFY_TYPE.RESTORE_VIEW; pub const MMCN_PRINT = MMC_NOTIFY_TYPE.PRINT; pub const MMCN_PRELOAD = MMC_NOTIFY_TYPE.PRELOAD; pub const MMCN_LISTPAD = MMC_NOTIFY_TYPE.LISTPAD; pub const MMCN_EXPANDSYNC = MMC_NOTIFY_TYPE.EXPANDSYNC; pub const MMCN_COLUMNS_CHANGED = MMC_NOTIFY_TYPE.COLUMNS_CHANGED; pub const MMCN_CANPASTE_OUTOFPROC = MMC_NOTIFY_TYPE.CANPASTE_OUTOFPROC; pub const DATA_OBJECT_TYPES = enum(i32) { SCOPE = 32768, RESULT = 32769, SNAPIN_MANAGER = 32770, UNINITIALIZED = 65535, }; pub const CCT_SCOPE = DATA_OBJECT_TYPES.SCOPE; pub const CCT_RESULT = DATA_OBJECT_TYPES.RESULT; pub const CCT_SNAPIN_MANAGER = DATA_OBJECT_TYPES.SNAPIN_MANAGER; pub const CCT_UNINITIALIZED = DATA_OBJECT_TYPES.UNINITIALIZED; pub const SMMCDataObjects = extern struct { count: u32, lpDataObject: [1]?*IDataObject, }; pub const SMMCObjectTypes = extern struct { count: u32, guid: [1]Guid, }; pub const SNodeID = extern struct { cBytes: u32, id: [1]u8, }; pub const SNodeID2 = extern struct { dwFlags: u32, cBytes: u32, id: [1]u8, }; pub const SColumnSetID = extern struct { dwFlags: u32, cBytes: u32, id: [1]u8, }; // TODO: this type is limited to platform 'windows6.0.6000' const IID_IComponentData_Value = Guid.initString("955ab28a-5218-11d0-a985-00c04fd8d565"); pub const IID_IComponentData = &IID_IComponentData_Value; pub const IComponentData = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, Initialize: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IComponentData, pUnknown: ?*IUnknown, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IComponentData, pUnknown: ?*IUnknown, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, CreateComponent: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IComponentData, ppComponent: ?*?*IComponent, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IComponentData, ppComponent: ?*?*IComponent, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Notify: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IComponentData, lpDataObject: ?*IDataObject, event: MMC_NOTIFY_TYPE, arg: LPARAM, param3: LPARAM, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IComponentData, lpDataObject: ?*IDataObject, event: MMC_NOTIFY_TYPE, arg: LPARAM, param3: LPARAM, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Destroy: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IComponentData, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IComponentData, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, QueryDataObject: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IComponentData, cookie: isize, type: DATA_OBJECT_TYPES, ppDataObject: ?*?*IDataObject, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IComponentData, cookie: isize, type: DATA_OBJECT_TYPES, ppDataObject: ?*?*IDataObject, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetDisplayInfo: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IComponentData, pScopeDataItem: ?*SCOPEDATAITEM, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IComponentData, pScopeDataItem: ?*SCOPEDATAITEM, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, CompareObjects: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IComponentData, lpDataObjectA: ?*IDataObject, lpDataObjectB: ?*IDataObject, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IComponentData, lpDataObjectA: ?*IDataObject, lpDataObjectB: ?*IDataObject, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IComponentData_Initialize(self: *const T, pUnknown: ?*IUnknown) HRESULT { return @as(*const IComponentData.VTable, @ptrCast(self.vtable)).Initialize(@as(*const IComponentData, @ptrCast(self)), pUnknown); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IComponentData_CreateComponent(self: *const T, ppComponent: ?*?*IComponent) HRESULT { return @as(*const IComponentData.VTable, @ptrCast(self.vtable)).CreateComponent(@as(*const IComponentData, @ptrCast(self)), ppComponent); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IComponentData_Notify(self: *const T, lpDataObject: ?*IDataObject, event: MMC_NOTIFY_TYPE, arg: LPARAM, param3: LPARAM) HRESULT { return @as(*const IComponentData.VTable, @ptrCast(self.vtable)).Notify(@as(*const IComponentData, @ptrCast(self)), lpDataObject, event, arg, param3); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IComponentData_Destroy(self: *const T) HRESULT { return @as(*const IComponentData.VTable, @ptrCast(self.vtable)).Destroy(@as(*const IComponentData, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IComponentData_QueryDataObject(self: *const T, cookie: isize, type_: DATA_OBJECT_TYPES, ppDataObject: ?*?*IDataObject) HRESULT { return @as(*const IComponentData.VTable, @ptrCast(self.vtable)).QueryDataObject(@as(*const IComponentData, @ptrCast(self)), cookie, type_, ppDataObject); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IComponentData_GetDisplayInfo(self: *const T, pScopeDataItem: ?*SCOPEDATAITEM) HRESULT { return @as(*const IComponentData.VTable, @ptrCast(self.vtable)).GetDisplayInfo(@as(*const IComponentData, @ptrCast(self)), pScopeDataItem); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IComponentData_CompareObjects(self: *const T, lpDataObjectA: ?*IDataObject, lpDataObjectB: ?*IDataObject) HRESULT { return @as(*const IComponentData.VTable, @ptrCast(self.vtable)).CompareObjects(@as(*const IComponentData, @ptrCast(self)), lpDataObjectA, lpDataObjectB); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows6.0.6000' const IID_IComponent_Value = Guid.initString("43136eb2-d36c-11cf-adbc-00aa00a80033"); pub const IID_IComponent = &IID_IComponent_Value; pub const IComponent = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, Initialize: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IComponent, lpConsole: ?*IConsole, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IComponent, lpConsole: ?*IConsole, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Notify: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IComponent, lpDataObject: ?*IDataObject, event: MMC_NOTIFY_TYPE, arg: LPARAM, param3: LPARAM, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IComponent, lpDataObject: ?*IDataObject, event: MMC_NOTIFY_TYPE, arg: LPARAM, param3: LPARAM, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Destroy: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IComponent, cookie: isize, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IComponent, cookie: isize, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, QueryDataObject: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IComponent, cookie: isize, type: DATA_OBJECT_TYPES, ppDataObject: ?*?*IDataObject, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IComponent, cookie: isize, type: DATA_OBJECT_TYPES, ppDataObject: ?*?*IDataObject, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetResultViewType: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IComponent, cookie: isize, ppViewType: ?*?PWSTR, pViewOptions: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IComponent, cookie: isize, ppViewType: ?*?PWSTR, pViewOptions: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetDisplayInfo: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IComponent, pResultDataItem: ?*RESULTDATAITEM, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IComponent, pResultDataItem: ?*RESULTDATAITEM, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, CompareObjects: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IComponent, lpDataObjectA: ?*IDataObject, lpDataObjectB: ?*IDataObject, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IComponent, lpDataObjectA: ?*IDataObject, lpDataObjectB: ?*IDataObject, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IComponent_Initialize(self: *const T, lpConsole: ?*IConsole) HRESULT { return @as(*const IComponent.VTable, @ptrCast(self.vtable)).Initialize(@as(*const IComponent, @ptrCast(self)), lpConsole); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IComponent_Notify(self: *const T, lpDataObject: ?*IDataObject, event: MMC_NOTIFY_TYPE, arg: LPARAM, param3: LPARAM) HRESULT { return @as(*const IComponent.VTable, @ptrCast(self.vtable)).Notify(@as(*const IComponent, @ptrCast(self)), lpDataObject, event, arg, param3); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IComponent_Destroy(self: *const T, cookie: isize) HRESULT { return @as(*const IComponent.VTable, @ptrCast(self.vtable)).Destroy(@as(*const IComponent, @ptrCast(self)), cookie); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IComponent_QueryDataObject(self: *const T, cookie: isize, type_: DATA_OBJECT_TYPES, ppDataObject: ?*?*IDataObject) HRESULT { return @as(*const IComponent.VTable, @ptrCast(self.vtable)).QueryDataObject(@as(*const IComponent, @ptrCast(self)), cookie, type_, ppDataObject); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IComponent_GetResultViewType(self: *const T, cookie: isize, ppViewType: ?*?PWSTR, pViewOptions: ?*i32) HRESULT { return @as(*const IComponent.VTable, @ptrCast(self.vtable)).GetResultViewType(@as(*const IComponent, @ptrCast(self)), cookie, ppViewType, pViewOptions); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IComponent_GetDisplayInfo(self: *const T, pResultDataItem: ?*RESULTDATAITEM) HRESULT { return @as(*const IComponent.VTable, @ptrCast(self.vtable)).GetDisplayInfo(@as(*const IComponent, @ptrCast(self)), pResultDataItem); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IComponent_CompareObjects(self: *const T, lpDataObjectA: ?*IDataObject, lpDataObjectB: ?*IDataObject) HRESULT { return @as(*const IComponent.VTable, @ptrCast(self.vtable)).CompareObjects(@as(*const IComponent, @ptrCast(self)), lpDataObjectA, lpDataObjectB); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows6.0.6000' const IID_IResultDataCompare_Value = Guid.initString("e8315a52-7a1a-11d0-a2d2-00c04fd909dd"); pub const IID_IResultDataCompare = &IID_IResultDataCompare_Value; pub const IResultDataCompare = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, Compare: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IResultDataCompare, lUserParam: LPARAM, cookieA: isize, cookieB: isize, pnResult: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IResultDataCompare, lUserParam: LPARAM, cookieA: isize, cookieB: isize, pnResult: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IResultDataCompare_Compare(self: *const T, lUserParam: LPARAM, cookieA: isize, cookieB: isize, pnResult: ?*i32) HRESULT { return @as(*const IResultDataCompare.VTable, @ptrCast(self.vtable)).Compare(@as(*const IResultDataCompare, @ptrCast(self)), lUserParam, cookieA, cookieB, pnResult); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows6.0.6000' const IID_IResultOwnerData_Value = Guid.initString("9cb396d8-ea83-11d0-aef1-00c04fb6dd2c"); pub const IID_IResultOwnerData = &IID_IResultOwnerData_Value; pub const IResultOwnerData = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, FindItem: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IResultOwnerData, pFindInfo: ?*RESULTFINDINFO, pnFoundIndex: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IResultOwnerData, pFindInfo: ?*RESULTFINDINFO, pnFoundIndex: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, CacheHint: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IResultOwnerData, nStartIndex: i32, nEndIndex: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IResultOwnerData, nStartIndex: i32, nEndIndex: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SortItems: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IResultOwnerData, nColumn: i32, dwSortOptions: u32, lUserParam: LPARAM, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IResultOwnerData, nColumn: i32, dwSortOptions: u32, lUserParam: LPARAM, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IResultOwnerData_FindItem(self: *const T, pFindInfo: ?*RESULTFINDINFO, pnFoundIndex: ?*i32) HRESULT { return @as(*const IResultOwnerData.VTable, @ptrCast(self.vtable)).FindItem(@as(*const IResultOwnerData, @ptrCast(self)), pFindInfo, pnFoundIndex); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IResultOwnerData_CacheHint(self: *const T, nStartIndex: i32, nEndIndex: i32) HRESULT { return @as(*const IResultOwnerData.VTable, @ptrCast(self.vtable)).CacheHint(@as(*const IResultOwnerData, @ptrCast(self)), nStartIndex, nEndIndex); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IResultOwnerData_SortItems(self: *const T, nColumn: i32, dwSortOptions: u32, lUserParam: LPARAM) HRESULT { return @as(*const IResultOwnerData.VTable, @ptrCast(self.vtable)).SortItems(@as(*const IResultOwnerData, @ptrCast(self)), nColumn, dwSortOptions, lUserParam); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows6.0.6000' const IID_IConsole_Value = Guid.initString("43136eb1-d36c-11cf-adbc-00aa00a80033"); pub const IID_IConsole = &IID_IConsole_Value; pub const IConsole = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, SetHeader: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IConsole, pHeader: ?*IHeaderCtrl, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IConsole, pHeader: ?*IHeaderCtrl, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetToolbar: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IConsole, pToolbar: ?*IToolbar, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IConsole, pToolbar: ?*IToolbar, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, QueryResultView: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IConsole, pUnknown: ?*?*IUnknown, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IConsole, pUnknown: ?*?*IUnknown, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, QueryScopeImageList: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IConsole, ppImageList: ?*?*IImageList, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IConsole, ppImageList: ?*?*IImageList, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, QueryResultImageList: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IConsole, ppImageList: ?*?*IImageList, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IConsole, ppImageList: ?*?*IImageList, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, UpdateAllViews: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IConsole, lpDataObject: ?*IDataObject, data: LPARAM, hint: isize, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IConsole, lpDataObject: ?*IDataObject, data: LPARAM, hint: isize, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, MessageBox: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IConsole, lpszText: ?[*:0]const u16, lpszTitle: ?[*:0]const u16, fuStyle: u32, piRetval: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IConsole, lpszText: ?[*:0]const u16, lpszTitle: ?[*:0]const u16, fuStyle: u32, piRetval: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, QueryConsoleVerb: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IConsole, ppConsoleVerb: ?*?*IConsoleVerb, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IConsole, ppConsoleVerb: ?*?*IConsoleVerb, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SelectScopeItem: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IConsole, hScopeItem: isize, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IConsole, hScopeItem: isize, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetMainWindow: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IConsole, phwnd: ?*?HWND, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IConsole, phwnd: ?*?HWND, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, NewWindow: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IConsole, hScopeItem: isize, lOptions: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IConsole, hScopeItem: isize, lOptions: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IConsole_SetHeader(self: *const T, pHeader: ?*IHeaderCtrl) HRESULT { return @as(*const IConsole.VTable, @ptrCast(self.vtable)).SetHeader(@as(*const IConsole, @ptrCast(self)), pHeader); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IConsole_SetToolbar(self: *const T, pToolbar: ?*IToolbar) HRESULT { return @as(*const IConsole.VTable, @ptrCast(self.vtable)).SetToolbar(@as(*const IConsole, @ptrCast(self)), pToolbar); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IConsole_QueryResultView(self: *const T, pUnknown: ?*?*IUnknown) HRESULT { return @as(*const IConsole.VTable, @ptrCast(self.vtable)).QueryResultView(@as(*const IConsole, @ptrCast(self)), pUnknown); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IConsole_QueryScopeImageList(self: *const T, ppImageList: ?*?*IImageList) HRESULT { return @as(*const IConsole.VTable, @ptrCast(self.vtable)).QueryScopeImageList(@as(*const IConsole, @ptrCast(self)), ppImageList); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IConsole_QueryResultImageList(self: *const T, ppImageList: ?*?*IImageList) HRESULT { return @as(*const IConsole.VTable, @ptrCast(self.vtable)).QueryResultImageList(@as(*const IConsole, @ptrCast(self)), ppImageList); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IConsole_UpdateAllViews(self: *const T, lpDataObject: ?*IDataObject, data: LPARAM, hint: isize) HRESULT { return @as(*const IConsole.VTable, @ptrCast(self.vtable)).UpdateAllViews(@as(*const IConsole, @ptrCast(self)), lpDataObject, data, hint); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IConsole_MessageBox(self: *const T, lpszText: ?[*:0]const u16, lpszTitle: ?[*:0]const u16, fuStyle: u32, piRetval: ?*i32) HRESULT { return @as(*const IConsole.VTable, @ptrCast(self.vtable)).MessageBox(@as(*const IConsole, @ptrCast(self)), lpszText, lpszTitle, fuStyle, piRetval); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IConsole_QueryConsoleVerb(self: *const T, ppConsoleVerb: ?*?*IConsoleVerb) HRESULT { return @as(*const IConsole.VTable, @ptrCast(self.vtable)).QueryConsoleVerb(@as(*const IConsole, @ptrCast(self)), ppConsoleVerb); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IConsole_SelectScopeItem(self: *const T, hScopeItem: isize) HRESULT { return @as(*const IConsole.VTable, @ptrCast(self.vtable)).SelectScopeItem(@as(*const IConsole, @ptrCast(self)), hScopeItem); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IConsole_GetMainWindow(self: *const T, phwnd: ?*?HWND) HRESULT { return @as(*const IConsole.VTable, @ptrCast(self.vtable)).GetMainWindow(@as(*const IConsole, @ptrCast(self)), phwnd); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IConsole_NewWindow(self: *const T, hScopeItem: isize, lOptions: u32) HRESULT { return @as(*const IConsole.VTable, @ptrCast(self.vtable)).NewWindow(@as(*const IConsole, @ptrCast(self)), hScopeItem, lOptions); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows6.0.6000' const IID_IHeaderCtrl_Value = Guid.initString("43136eb3-d36c-11cf-adbc-00aa00a80033"); pub const IID_IHeaderCtrl = &IID_IHeaderCtrl_Value; pub const IHeaderCtrl = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, InsertColumn: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IHeaderCtrl, nCol: i32, title: ?[*:0]const u16, nFormat: i32, nWidth: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IHeaderCtrl, nCol: i32, title: ?[*:0]const u16, nFormat: i32, nWidth: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, DeleteColumn: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IHeaderCtrl, nCol: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IHeaderCtrl, nCol: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetColumnText: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IHeaderCtrl, nCol: i32, title: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IHeaderCtrl, nCol: i32, title: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetColumnText: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IHeaderCtrl, nCol: i32, pText: ?*?PWSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IHeaderCtrl, nCol: i32, pText: ?*?PWSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetColumnWidth: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IHeaderCtrl, nCol: i32, nWidth: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IHeaderCtrl, nCol: i32, nWidth: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetColumnWidth: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IHeaderCtrl, nCol: i32, pWidth: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IHeaderCtrl, nCol: i32, pWidth: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IHeaderCtrl_InsertColumn(self: *const T, nCol: i32, title: ?[*:0]const u16, nFormat: i32, nWidth: i32) HRESULT { return @as(*const IHeaderCtrl.VTable, @ptrCast(self.vtable)).InsertColumn(@as(*const IHeaderCtrl, @ptrCast(self)), nCol, title, nFormat, nWidth); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IHeaderCtrl_DeleteColumn(self: *const T, nCol: i32) HRESULT { return @as(*const IHeaderCtrl.VTable, @ptrCast(self.vtable)).DeleteColumn(@as(*const IHeaderCtrl, @ptrCast(self)), nCol); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IHeaderCtrl_SetColumnText(self: *const T, nCol: i32, title: ?[*:0]const u16) HRESULT { return @as(*const IHeaderCtrl.VTable, @ptrCast(self.vtable)).SetColumnText(@as(*const IHeaderCtrl, @ptrCast(self)), nCol, title); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IHeaderCtrl_GetColumnText(self: *const T, nCol: i32, pText: ?*?PWSTR) HRESULT { return @as(*const IHeaderCtrl.VTable, @ptrCast(self.vtable)).GetColumnText(@as(*const IHeaderCtrl, @ptrCast(self)), nCol, pText); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IHeaderCtrl_SetColumnWidth(self: *const T, nCol: i32, nWidth: i32) HRESULT { return @as(*const IHeaderCtrl.VTable, @ptrCast(self.vtable)).SetColumnWidth(@as(*const IHeaderCtrl, @ptrCast(self)), nCol, nWidth); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IHeaderCtrl_GetColumnWidth(self: *const T, nCol: i32, pWidth: ?*i32) HRESULT { return @as(*const IHeaderCtrl.VTable, @ptrCast(self.vtable)).GetColumnWidth(@as(*const IHeaderCtrl, @ptrCast(self)), nCol, pWidth); } }; } pub usingnamespace MethodMixin(@This()); }; pub const CCM_INSERTIONPOINTID = enum(i32) { MASK_SPECIAL = -65536, MASK_SHARED = -2147483648, MASK_CREATE_PRIMARY = 1073741824, MASK_ADD_PRIMARY = 536870912, MASK_ADD_3RDPARTY = 268435456, MASK_RESERVED = 268369920, MASK_FLAGINDEX = 31, PRIMARY_TOP = -1610612736, PRIMARY_NEW = -1610612735, PRIMARY_TASK = -1610612734, PRIMARY_VIEW = -1610612733, PRIMARY_HELP = -1610612732, @"3RDPARTY_NEW" = -1879048191, @"3RDPARTY_TASK" = -1879048190, // ROOT_MENU = -2147483648, this enum value conflicts with MASK_SHARED }; pub const CCM_INSERTIONPOINTID_MASK_SPECIAL = CCM_INSERTIONPOINTID.MASK_SPECIAL; pub const CCM_INSERTIONPOINTID_MASK_SHARED = CCM_INSERTIONPOINTID.MASK_SHARED; pub const CCM_INSERTIONPOINTID_MASK_CREATE_PRIMARY = CCM_INSERTIONPOINTID.MASK_CREATE_PRIMARY; pub const CCM_INSERTIONPOINTID_MASK_ADD_PRIMARY = CCM_INSERTIONPOINTID.MASK_ADD_PRIMARY; pub const CCM_INSERTIONPOINTID_MASK_ADD_3RDPARTY = CCM_INSERTIONPOINTID.MASK_ADD_3RDPARTY; pub const CCM_INSERTIONPOINTID_MASK_RESERVED = CCM_INSERTIONPOINTID.MASK_RESERVED; pub const CCM_INSERTIONPOINTID_MASK_FLAGINDEX = CCM_INSERTIONPOINTID.MASK_FLAGINDEX; pub const CCM_INSERTIONPOINTID_PRIMARY_TOP = CCM_INSERTIONPOINTID.PRIMARY_TOP; pub const CCM_INSERTIONPOINTID_PRIMARY_NEW = CCM_INSERTIONPOINTID.PRIMARY_NEW; pub const CCM_INSERTIONPOINTID_PRIMARY_TASK = CCM_INSERTIONPOINTID.PRIMARY_TASK; pub const CCM_INSERTIONPOINTID_PRIMARY_VIEW = CCM_INSERTIONPOINTID.PRIMARY_VIEW; pub const CCM_INSERTIONPOINTID_PRIMARY_HELP = CCM_INSERTIONPOINTID.PRIMARY_HELP; pub const CCM_INSERTIONPOINTID_3RDPARTY_NEW = CCM_INSERTIONPOINTID.@"3RDPARTY_NEW"; pub const CCM_INSERTIONPOINTID_3RDPARTY_TASK = CCM_INSERTIONPOINTID.@"3RDPARTY_TASK"; pub const CCM_INSERTIONPOINTID_ROOT_MENU = CCM_INSERTIONPOINTID.MASK_SHARED; pub const CCM_INSERTIONALLOWED = enum(i32) { TOP = 1, NEW = 2, TASK = 4, VIEW = 8, }; pub const CCM_INSERTIONALLOWED_TOP = CCM_INSERTIONALLOWED.TOP; pub const CCM_INSERTIONALLOWED_NEW = CCM_INSERTIONALLOWED.NEW; pub const CCM_INSERTIONALLOWED_TASK = CCM_INSERTIONALLOWED.TASK; pub const CCM_INSERTIONALLOWED_VIEW = CCM_INSERTIONALLOWED.VIEW; pub const CCM_COMMANDID_MASK_CONSTANTS = enum(u32) { D = 4294901760, }; pub const CCM_COMMANDID_MASK_RESERVED = CCM_COMMANDID_MASK_CONSTANTS.D; pub const CCM_SPECIAL = enum(i32) { SEPARATOR = 1, SUBMENU = 2, DEFAULT_ITEM = 4, INSERTION_POINT = 8, TESTONLY = 16, }; pub const CCM_SPECIAL_SEPARATOR = CCM_SPECIAL.SEPARATOR; pub const CCM_SPECIAL_SUBMENU = CCM_SPECIAL.SUBMENU; pub const CCM_SPECIAL_DEFAULT_ITEM = CCM_SPECIAL.DEFAULT_ITEM; pub const CCM_SPECIAL_INSERTION_POINT = CCM_SPECIAL.INSERTION_POINT; pub const CCM_SPECIAL_TESTONLY = CCM_SPECIAL.TESTONLY; // TODO: this type is limited to platform 'windows6.0.6000' const IID_IContextMenuCallback_Value = Guid.initString("43136eb7-d36c-11cf-adbc-00aa00a80033"); pub const IID_IContextMenuCallback = &IID_IContextMenuCallback_Value; pub const IContextMenuCallback = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, AddItem: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IContextMenuCallback, pItem: ?*CONTEXTMENUITEM, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IContextMenuCallback, pItem: ?*CONTEXTMENUITEM, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IContextMenuCallback_AddItem(self: *const T, pItem: ?*CONTEXTMENUITEM) HRESULT { return @as(*const IContextMenuCallback.VTable, @ptrCast(self.vtable)).AddItem(@as(*const IContextMenuCallback, @ptrCast(self)), pItem); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows6.0.6000' const IID_IContextMenuProvider_Value = Guid.initString("43136eb6-d36c-11cf-adbc-00aa00a80033"); pub const IID_IContextMenuProvider = &IID_IContextMenuProvider_Value; pub const IContextMenuProvider = extern struct { pub const VTable = extern struct { base: IContextMenuCallback.VTable, EmptyMenuList: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IContextMenuProvider, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IContextMenuProvider, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, AddPrimaryExtensionItems: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IContextMenuProvider, piExtension: ?*IUnknown, piDataObject: ?*IDataObject, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IContextMenuProvider, piExtension: ?*IUnknown, piDataObject: ?*IDataObject, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, AddThirdPartyExtensionItems: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IContextMenuProvider, piDataObject: ?*IDataObject, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IContextMenuProvider, piDataObject: ?*IDataObject, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, ShowContextMenu: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IContextMenuProvider, hwndParent: ?HWND, xPos: i32, yPos: i32, plSelected: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IContextMenuProvider, hwndParent: ?HWND, xPos: i32, yPos: i32, plSelected: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IContextMenuCallback.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IContextMenuProvider_EmptyMenuList(self: *const T) HRESULT { return @as(*const IContextMenuProvider.VTable, @ptrCast(self.vtable)).EmptyMenuList(@as(*const IContextMenuProvider, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IContextMenuProvider_AddPrimaryExtensionItems(self: *const T, piExtension: ?*IUnknown, piDataObject: ?*IDataObject) HRESULT { return @as(*const IContextMenuProvider.VTable, @ptrCast(self.vtable)).AddPrimaryExtensionItems(@as(*const IContextMenuProvider, @ptrCast(self)), piExtension, piDataObject); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IContextMenuProvider_AddThirdPartyExtensionItems(self: *const T, piDataObject: ?*IDataObject) HRESULT { return @as(*const IContextMenuProvider.VTable, @ptrCast(self.vtable)).AddThirdPartyExtensionItems(@as(*const IContextMenuProvider, @ptrCast(self)), piDataObject); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IContextMenuProvider_ShowContextMenu(self: *const T, hwndParent: ?HWND, xPos: i32, yPos: i32, plSelected: ?*i32) HRESULT { return @as(*const IContextMenuProvider.VTable, @ptrCast(self.vtable)).ShowContextMenu(@as(*const IContextMenuProvider, @ptrCast(self)), hwndParent, xPos, yPos, plSelected); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows6.0.6000' const IID_IExtendContextMenu_Value = Guid.initString("4f3b7a4f-cfac-11cf-b8e3-00c04fd8d5b0"); pub const IID_IExtendContextMenu = &IID_IExtendContextMenu_Value; pub const IExtendContextMenu = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, AddMenuItems: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IExtendContextMenu, piDataObject: ?*IDataObject, piCallback: ?*IContextMenuCallback, pInsertionAllowed: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IExtendContextMenu, piDataObject: ?*IDataObject, piCallback: ?*IContextMenuCallback, pInsertionAllowed: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Command: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IExtendContextMenu, lCommandID: i32, piDataObject: ?*IDataObject, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IExtendContextMenu, lCommandID: i32, piDataObject: ?*IDataObject, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IExtendContextMenu_AddMenuItems(self: *const T, piDataObject: ?*IDataObject, piCallback: ?*IContextMenuCallback, pInsertionAllowed: ?*i32) HRESULT { return @as(*const IExtendContextMenu.VTable, @ptrCast(self.vtable)).AddMenuItems(@as(*const IExtendContextMenu, @ptrCast(self)), piDataObject, piCallback, pInsertionAllowed); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IExtendContextMenu_Command(self: *const T, lCommandID: i32, piDataObject: ?*IDataObject) HRESULT { return @as(*const IExtendContextMenu.VTable, @ptrCast(self.vtable)).Command(@as(*const IExtendContextMenu, @ptrCast(self)), lCommandID, piDataObject); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows6.0.6000' const IID_IImageList_Value = Guid.initString("43136eb8-d36c-11cf-adbc-00aa00a80033"); pub const IID_IImageList = &IID_IImageList_Value; pub const IImageList = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, ImageListSetIcon: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IImageList, pIcon: ?*isize, nLoc: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IImageList, pIcon: ?*isize, nLoc: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, ImageListSetStrip: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IImageList, pBMapSm: ?*isize, pBMapLg: ?*isize, nStartLoc: i32, cMask: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IImageList, pBMapSm: ?*isize, pBMapLg: ?*isize, nStartLoc: i32, cMask: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IImageList_ImageListSetIcon(self: *const T, pIcon: ?*isize, nLoc: i32) HRESULT { return @as(*const IImageList.VTable, @ptrCast(self.vtable)).ImageListSetIcon(@as(*const IImageList, @ptrCast(self)), pIcon, nLoc); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IImageList_ImageListSetStrip(self: *const T, pBMapSm: ?*isize, pBMapLg: ?*isize, nStartLoc: i32, cMask: u32) HRESULT { return @as(*const IImageList.VTable, @ptrCast(self.vtable)).ImageListSetStrip(@as(*const IImageList, @ptrCast(self)), pBMapSm, pBMapLg, nStartLoc, cMask); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows6.0.6000' const IID_IResultData_Value = Guid.initString("31da5fa0-e0eb-11cf-9f21-00aa003ca9f6"); pub const IID_IResultData = &IID_IResultData_Value; pub const IResultData = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, InsertItem: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IResultData, item: ?*RESULTDATAITEM, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IResultData, item: ?*RESULTDATAITEM, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, DeleteItem: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IResultData, itemID: isize, nCol: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IResultData, itemID: isize, nCol: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, FindItemByLParam: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IResultData, lParam: LPARAM, pItemID: ?*isize, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IResultData, lParam: LPARAM, pItemID: ?*isize, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, DeleteAllRsltItems: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IResultData, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IResultData, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetItem: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IResultData, item: ?*RESULTDATAITEM, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IResultData, item: ?*RESULTDATAITEM, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetItem: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IResultData, item: ?*RESULTDATAITEM, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IResultData, item: ?*RESULTDATAITEM, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetNextItem: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IResultData, item: ?*RESULTDATAITEM, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IResultData, item: ?*RESULTDATAITEM, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, ModifyItemState: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IResultData, nIndex: i32, itemID: isize, uAdd: u32, uRemove: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IResultData, nIndex: i32, itemID: isize, uAdd: u32, uRemove: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, ModifyViewStyle: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IResultData, add: MMC_RESULT_VIEW_STYLE, remove: MMC_RESULT_VIEW_STYLE, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IResultData, add: MMC_RESULT_VIEW_STYLE, remove: MMC_RESULT_VIEW_STYLE, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetViewMode: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IResultData, lViewMode: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IResultData, lViewMode: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetViewMode: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IResultData, lViewMode: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IResultData, lViewMode: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, UpdateItem: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IResultData, itemID: isize, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IResultData, itemID: isize, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Sort: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IResultData, nColumn: i32, dwSortOptions: u32, lUserParam: LPARAM, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IResultData, nColumn: i32, dwSortOptions: u32, lUserParam: LPARAM, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetDescBarText: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IResultData, DescText: ?PWSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IResultData, DescText: ?PWSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetItemCount: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IResultData, nItemCount: i32, dwOptions: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IResultData, nItemCount: i32, dwOptions: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IResultData_InsertItem(self: *const T, item: ?*RESULTDATAITEM) HRESULT { return @as(*const IResultData.VTable, @ptrCast(self.vtable)).InsertItem(@as(*const IResultData, @ptrCast(self)), item); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IResultData_DeleteItem(self: *const T, itemID: isize, nCol: i32) HRESULT { return @as(*const IResultData.VTable, @ptrCast(self.vtable)).DeleteItem(@as(*const IResultData, @ptrCast(self)), itemID, nCol); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IResultData_FindItemByLParam(self: *const T, lParam: LPARAM, pItemID: ?*isize) HRESULT { return @as(*const IResultData.VTable, @ptrCast(self.vtable)).FindItemByLParam(@as(*const IResultData, @ptrCast(self)), lParam, pItemID); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IResultData_DeleteAllRsltItems(self: *const T) HRESULT { return @as(*const IResultData.VTable, @ptrCast(self.vtable)).DeleteAllRsltItems(@as(*const IResultData, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IResultData_SetItem(self: *const T, item: ?*RESULTDATAITEM) HRESULT { return @as(*const IResultData.VTable, @ptrCast(self.vtable)).SetItem(@as(*const IResultData, @ptrCast(self)), item); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IResultData_GetItem(self: *const T, item: ?*RESULTDATAITEM) HRESULT { return @as(*const IResultData.VTable, @ptrCast(self.vtable)).GetItem(@as(*const IResultData, @ptrCast(self)), item); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IResultData_GetNextItem(self: *const T, item: ?*RESULTDATAITEM) HRESULT { return @as(*const IResultData.VTable, @ptrCast(self.vtable)).GetNextItem(@as(*const IResultData, @ptrCast(self)), item); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IResultData_ModifyItemState(self: *const T, nIndex: i32, itemID: isize, uAdd: u32, uRemove: u32) HRESULT { return @as(*const IResultData.VTable, @ptrCast(self.vtable)).ModifyItemState(@as(*const IResultData, @ptrCast(self)), nIndex, itemID, uAdd, uRemove); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IResultData_ModifyViewStyle(self: *const T, add: MMC_RESULT_VIEW_STYLE, remove: MMC_RESULT_VIEW_STYLE) HRESULT { return @as(*const IResultData.VTable, @ptrCast(self.vtable)).ModifyViewStyle(@as(*const IResultData, @ptrCast(self)), add, remove); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IResultData_SetViewMode(self: *const T, lViewMode: i32) HRESULT { return @as(*const IResultData.VTable, @ptrCast(self.vtable)).SetViewMode(@as(*const IResultData, @ptrCast(self)), lViewMode); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IResultData_GetViewMode(self: *const T, lViewMode: ?*i32) HRESULT { return @as(*const IResultData.VTable, @ptrCast(self.vtable)).GetViewMode(@as(*const IResultData, @ptrCast(self)), lViewMode); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IResultData_UpdateItem(self: *const T, itemID: isize) HRESULT { return @as(*const IResultData.VTable, @ptrCast(self.vtable)).UpdateItem(@as(*const IResultData, @ptrCast(self)), itemID); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IResultData_Sort(self: *const T, nColumn: i32, dwSortOptions: u32, lUserParam: LPARAM) HRESULT { return @as(*const IResultData.VTable, @ptrCast(self.vtable)).Sort(@as(*const IResultData, @ptrCast(self)), nColumn, dwSortOptions, lUserParam); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IResultData_SetDescBarText(self: *const T, DescText: ?PWSTR) HRESULT { return @as(*const IResultData.VTable, @ptrCast(self.vtable)).SetDescBarText(@as(*const IResultData, @ptrCast(self)), DescText); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IResultData_SetItemCount(self: *const T, nItemCount: i32, dwOptions: u32) HRESULT { return @as(*const IResultData.VTable, @ptrCast(self.vtable)).SetItemCount(@as(*const IResultData, @ptrCast(self)), nItemCount, dwOptions); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows6.0.6000' const IID_IConsoleNameSpace_Value = Guid.initString("bedeb620-f24d-11cf-8afc-00aa003ca9f6"); pub const IID_IConsoleNameSpace = &IID_IConsoleNameSpace_Value; pub const IConsoleNameSpace = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, InsertItem: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IConsoleNameSpace, item: ?*SCOPEDATAITEM, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IConsoleNameSpace, item: ?*SCOPEDATAITEM, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, DeleteItem: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IConsoleNameSpace, hItem: isize, fDeleteThis: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IConsoleNameSpace, hItem: isize, fDeleteThis: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetItem: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IConsoleNameSpace, item: ?*SCOPEDATAITEM, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IConsoleNameSpace, item: ?*SCOPEDATAITEM, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetItem: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IConsoleNameSpace, item: ?*SCOPEDATAITEM, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IConsoleNameSpace, item: ?*SCOPEDATAITEM, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetChildItem: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IConsoleNameSpace, item: isize, pItemChild: ?*isize, pCookie: ?*isize, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IConsoleNameSpace, item: isize, pItemChild: ?*isize, pCookie: ?*isize, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetNextItem: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IConsoleNameSpace, item: isize, pItemNext: ?*isize, pCookie: ?*isize, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IConsoleNameSpace, item: isize, pItemNext: ?*isize, pCookie: ?*isize, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetParentItem: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IConsoleNameSpace, item: isize, pItemParent: ?*isize, pCookie: ?*isize, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IConsoleNameSpace, item: isize, pItemParent: ?*isize, pCookie: ?*isize, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IConsoleNameSpace_InsertItem(self: *const T, item: ?*SCOPEDATAITEM) HRESULT { return @as(*const IConsoleNameSpace.VTable, @ptrCast(self.vtable)).InsertItem(@as(*const IConsoleNameSpace, @ptrCast(self)), item); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IConsoleNameSpace_DeleteItem(self: *const T, hItem: isize, fDeleteThis: i32) HRESULT { return @as(*const IConsoleNameSpace.VTable, @ptrCast(self.vtable)).DeleteItem(@as(*const IConsoleNameSpace, @ptrCast(self)), hItem, fDeleteThis); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IConsoleNameSpace_SetItem(self: *const T, item: ?*SCOPEDATAITEM) HRESULT { return @as(*const IConsoleNameSpace.VTable, @ptrCast(self.vtable)).SetItem(@as(*const IConsoleNameSpace, @ptrCast(self)), item); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IConsoleNameSpace_GetItem(self: *const T, item: ?*SCOPEDATAITEM) HRESULT { return @as(*const IConsoleNameSpace.VTable, @ptrCast(self.vtable)).GetItem(@as(*const IConsoleNameSpace, @ptrCast(self)), item); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IConsoleNameSpace_GetChildItem(self: *const T, item: isize, pItemChild: ?*isize, pCookie: ?*isize) HRESULT { return @as(*const IConsoleNameSpace.VTable, @ptrCast(self.vtable)).GetChildItem(@as(*const IConsoleNameSpace, @ptrCast(self)), item, pItemChild, pCookie); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IConsoleNameSpace_GetNextItem(self: *const T, item: isize, pItemNext: ?*isize, pCookie: ?*isize) HRESULT { return @as(*const IConsoleNameSpace.VTable, @ptrCast(self.vtable)).GetNextItem(@as(*const IConsoleNameSpace, @ptrCast(self)), item, pItemNext, pCookie); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IConsoleNameSpace_GetParentItem(self: *const T, item: isize, pItemParent: ?*isize, pCookie: ?*isize) HRESULT { return @as(*const IConsoleNameSpace.VTable, @ptrCast(self.vtable)).GetParentItem(@as(*const IConsoleNameSpace, @ptrCast(self)), item, pItemParent, pCookie); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows6.0.6000' const IID_IConsoleNameSpace2_Value = Guid.initString("255f18cc-65db-11d1-a7dc-00c04fd8d565"); pub const IID_IConsoleNameSpace2 = &IID_IConsoleNameSpace2_Value; pub const IConsoleNameSpace2 = extern struct { pub const VTable = extern struct { base: IConsoleNameSpace.VTable, Expand: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IConsoleNameSpace2, hItem: isize, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IConsoleNameSpace2, hItem: isize, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, AddExtension: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IConsoleNameSpace2, hItem: isize, lpClsid: ?*Guid, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IConsoleNameSpace2, hItem: isize, lpClsid: ?*Guid, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IConsoleNameSpace.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IConsoleNameSpace2_Expand(self: *const T, hItem: isize) HRESULT { return @as(*const IConsoleNameSpace2.VTable, @ptrCast(self.vtable)).Expand(@as(*const IConsoleNameSpace2, @ptrCast(self)), hItem); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IConsoleNameSpace2_AddExtension(self: *const T, hItem: isize, lpClsid: ?*Guid) HRESULT { return @as(*const IConsoleNameSpace2.VTable, @ptrCast(self.vtable)).AddExtension(@as(*const IConsoleNameSpace2, @ptrCast(self)), hItem, lpClsid); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows6.0.6000' const IID_IPropertySheetCallback_Value = Guid.initString("85de64dd-ef21-11cf-a285-00c04fd8dbe6"); pub const IID_IPropertySheetCallback = &IID_IPropertySheetCallback_Value; pub const IPropertySheetCallback = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, AddPage: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IPropertySheetCallback, hPage: ?HPROPSHEETPAGE, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IPropertySheetCallback, hPage: ?HPROPSHEETPAGE, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, RemovePage: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IPropertySheetCallback, hPage: ?HPROPSHEETPAGE, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IPropertySheetCallback, hPage: ?HPROPSHEETPAGE, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPropertySheetCallback_AddPage(self: *const T, hPage: ?HPROPSHEETPAGE) HRESULT { return @as(*const IPropertySheetCallback.VTable, @ptrCast(self.vtable)).AddPage(@as(*const IPropertySheetCallback, @ptrCast(self)), hPage); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPropertySheetCallback_RemovePage(self: *const T, hPage: ?HPROPSHEETPAGE) HRESULT { return @as(*const IPropertySheetCallback.VTable, @ptrCast(self.vtable)).RemovePage(@as(*const IPropertySheetCallback, @ptrCast(self)), hPage); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows6.0.6000' const IID_IPropertySheetProvider_Value = Guid.initString("85de64de-ef21-11cf-a285-00c04fd8dbe6"); pub const IID_IPropertySheetProvider = &IID_IPropertySheetProvider_Value; pub const IPropertySheetProvider = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, CreatePropertySheet: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IPropertySheetProvider, title: ?[*:0]const u16, type: u8, cookie: isize, pIDataObjectm: ?*IDataObject, dwOptions: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IPropertySheetProvider, title: ?[*:0]const u16, type: u8, cookie: isize, pIDataObjectm: ?*IDataObject, dwOptions: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, FindPropertySheet: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IPropertySheetProvider, hItem: isize, lpComponent: ?*IComponent, lpDataObject: ?*IDataObject, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IPropertySheetProvider, hItem: isize, lpComponent: ?*IComponent, lpDataObject: ?*IDataObject, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, AddPrimaryPages: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IPropertySheetProvider, lpUnknown: ?*IUnknown, bCreateHandle: BOOL, hNotifyWindow: ?HWND, bScopePane: BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IPropertySheetProvider, lpUnknown: ?*IUnknown, bCreateHandle: BOOL, hNotifyWindow: ?HWND, bScopePane: BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, AddExtensionPages: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IPropertySheetProvider, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IPropertySheetProvider, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Show: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IPropertySheetProvider, window: isize, page: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IPropertySheetProvider, window: isize, page: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPropertySheetProvider_CreatePropertySheet(self: *const T, title: ?[*:0]const u16, type_: u8, cookie: isize, pIDataObjectm: ?*IDataObject, dwOptions: u32) HRESULT { return @as(*const IPropertySheetProvider.VTable, @ptrCast(self.vtable)).CreatePropertySheet(@as(*const IPropertySheetProvider, @ptrCast(self)), title, type_, cookie, pIDataObjectm, dwOptions); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPropertySheetProvider_FindPropertySheet(self: *const T, hItem: isize, lpComponent: ?*IComponent, lpDataObject: ?*IDataObject) HRESULT { return @as(*const IPropertySheetProvider.VTable, @ptrCast(self.vtable)).FindPropertySheet(@as(*const IPropertySheetProvider, @ptrCast(self)), hItem, lpComponent, lpDataObject); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPropertySheetProvider_AddPrimaryPages(self: *const T, lpUnknown: ?*IUnknown, bCreateHandle: BOOL, hNotifyWindow: ?HWND, bScopePane: BOOL) HRESULT { return @as(*const IPropertySheetProvider.VTable, @ptrCast(self.vtable)).AddPrimaryPages(@as(*const IPropertySheetProvider, @ptrCast(self)), lpUnknown, bCreateHandle, hNotifyWindow, bScopePane); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPropertySheetProvider_AddExtensionPages(self: *const T) HRESULT { return @as(*const IPropertySheetProvider.VTable, @ptrCast(self.vtable)).AddExtensionPages(@as(*const IPropertySheetProvider, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPropertySheetProvider_Show(self: *const T, window: isize, page: i32) HRESULT { return @as(*const IPropertySheetProvider.VTable, @ptrCast(self.vtable)).Show(@as(*const IPropertySheetProvider, @ptrCast(self)), window, page); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows6.0.6000' const IID_IExtendPropertySheet_Value = Guid.initString("85de64dc-ef21-11cf-a285-00c04fd8dbe6"); pub const IID_IExtendPropertySheet = &IID_IExtendPropertySheet_Value; pub const IExtendPropertySheet = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, CreatePropertyPages: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IExtendPropertySheet, lpProvider: ?*IPropertySheetCallback, handle: isize, lpIDataObject: ?*IDataObject, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IExtendPropertySheet, lpProvider: ?*IPropertySheetCallback, handle: isize, lpIDataObject: ?*IDataObject, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, QueryPagesFor: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IExtendPropertySheet, lpDataObject: ?*IDataObject, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IExtendPropertySheet, lpDataObject: ?*IDataObject, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IExtendPropertySheet_CreatePropertyPages(self: *const T, lpProvider: ?*IPropertySheetCallback, handle: isize, lpIDataObject: ?*IDataObject) HRESULT { return @as(*const IExtendPropertySheet.VTable, @ptrCast(self.vtable)).CreatePropertyPages(@as(*const IExtendPropertySheet, @ptrCast(self)), lpProvider, handle, lpIDataObject); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IExtendPropertySheet_QueryPagesFor(self: *const T, lpDataObject: ?*IDataObject) HRESULT { return @as(*const IExtendPropertySheet.VTable, @ptrCast(self.vtable)).QueryPagesFor(@as(*const IExtendPropertySheet, @ptrCast(self)), lpDataObject); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows6.0.6000' const IID_IControlbar_Value = Guid.initString("69fb811e-6c1c-11d0-a2cb-00c04fd909dd"); pub const IID_IControlbar = &IID_IControlbar_Value; pub const IControlbar = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, Create: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IControlbar, nType: MMC_CONTROL_TYPE, pExtendControlbar: ?*IExtendControlbar, ppUnknown: ?*?*IUnknown, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IControlbar, nType: MMC_CONTROL_TYPE, pExtendControlbar: ?*IExtendControlbar, ppUnknown: ?*?*IUnknown, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Attach: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IControlbar, nType: MMC_CONTROL_TYPE, lpUnknown: ?*IUnknown, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IControlbar, nType: MMC_CONTROL_TYPE, lpUnknown: ?*IUnknown, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Detach: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IControlbar, lpUnknown: ?*IUnknown, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IControlbar, lpUnknown: ?*IUnknown, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IControlbar_Create(self: *const T, nType: MMC_CONTROL_TYPE, pExtendControlbar: ?*IExtendControlbar, ppUnknown: ?*?*IUnknown) HRESULT { return @as(*const IControlbar.VTable, @ptrCast(self.vtable)).Create(@as(*const IControlbar, @ptrCast(self)), nType, pExtendControlbar, ppUnknown); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IControlbar_Attach(self: *const T, nType: MMC_CONTROL_TYPE, lpUnknown: ?*IUnknown) HRESULT { return @as(*const IControlbar.VTable, @ptrCast(self.vtable)).Attach(@as(*const IControlbar, @ptrCast(self)), nType, lpUnknown); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IControlbar_Detach(self: *const T, lpUnknown: ?*IUnknown) HRESULT { return @as(*const IControlbar.VTable, @ptrCast(self.vtable)).Detach(@as(*const IControlbar, @ptrCast(self)), lpUnknown); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows6.0.6000' const IID_IExtendControlbar_Value = Guid.initString("49506520-6f40-11d0-a98b-00c04fd8d565"); pub const IID_IExtendControlbar = &IID_IExtendControlbar_Value; pub const IExtendControlbar = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, SetControlbar: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IExtendControlbar, pControlbar: ?*IControlbar, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IExtendControlbar, pControlbar: ?*IControlbar, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, ControlbarNotify: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IExtendControlbar, event: MMC_NOTIFY_TYPE, arg: LPARAM, param2: LPARAM, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IExtendControlbar, event: MMC_NOTIFY_TYPE, arg: LPARAM, param2: LPARAM, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IExtendControlbar_SetControlbar(self: *const T, pControlbar: ?*IControlbar) HRESULT { return @as(*const IExtendControlbar.VTable, @ptrCast(self.vtable)).SetControlbar(@as(*const IExtendControlbar, @ptrCast(self)), pControlbar); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IExtendControlbar_ControlbarNotify(self: *const T, event: MMC_NOTIFY_TYPE, arg: LPARAM, param2: LPARAM) HRESULT { return @as(*const IExtendControlbar.VTable, @ptrCast(self.vtable)).ControlbarNotify(@as(*const IExtendControlbar, @ptrCast(self)), event, arg, param2); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows6.0.6000' const IID_IToolbar_Value = Guid.initString("43136eb9-d36c-11cf-adbc-00aa00a80033"); pub const IID_IToolbar = &IID_IToolbar_Value; pub const IToolbar = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, AddBitmap: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IToolbar, nImages: i32, hbmp: ?HBITMAP, cxSize: i32, cySize: i32, crMask: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IToolbar, nImages: i32, hbmp: ?HBITMAP, cxSize: i32, cySize: i32, crMask: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, AddButtons: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IToolbar, nButtons: i32, lpButtons: ?*MMCBUTTON, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IToolbar, nButtons: i32, lpButtons: ?*MMCBUTTON, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, InsertButton: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IToolbar, nIndex: i32, lpButton: ?*MMCBUTTON, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IToolbar, nIndex: i32, lpButton: ?*MMCBUTTON, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, DeleteButton: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IToolbar, nIndex: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IToolbar, nIndex: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetButtonState: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IToolbar, idCommand: i32, nState: MMC_BUTTON_STATE, pState: ?*BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IToolbar, idCommand: i32, nState: MMC_BUTTON_STATE, pState: ?*BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetButtonState: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IToolbar, idCommand: i32, nState: MMC_BUTTON_STATE, bState: BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IToolbar, idCommand: i32, nState: MMC_BUTTON_STATE, bState: BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IToolbar_AddBitmap(self: *const T, nImages: i32, hbmp: ?HBITMAP, cxSize: i32, cySize: i32, crMask: u32) HRESULT { return @as(*const IToolbar.VTable, @ptrCast(self.vtable)).AddBitmap(@as(*const IToolbar, @ptrCast(self)), nImages, hbmp, cxSize, cySize, crMask); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IToolbar_AddButtons(self: *const T, nButtons: i32, lpButtons: ?*MMCBUTTON) HRESULT { return @as(*const IToolbar.VTable, @ptrCast(self.vtable)).AddButtons(@as(*const IToolbar, @ptrCast(self)), nButtons, lpButtons); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IToolbar_InsertButton(self: *const T, nIndex: i32, lpButton: ?*MMCBUTTON) HRESULT { return @as(*const IToolbar.VTable, @ptrCast(self.vtable)).InsertButton(@as(*const IToolbar, @ptrCast(self)), nIndex, lpButton); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IToolbar_DeleteButton(self: *const T, nIndex: i32) HRESULT { return @as(*const IToolbar.VTable, @ptrCast(self.vtable)).DeleteButton(@as(*const IToolbar, @ptrCast(self)), nIndex); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IToolbar_GetButtonState(self: *const T, idCommand: i32, nState: MMC_BUTTON_STATE, pState: ?*BOOL) HRESULT { return @as(*const IToolbar.VTable, @ptrCast(self.vtable)).GetButtonState(@as(*const IToolbar, @ptrCast(self)), idCommand, nState, pState); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IToolbar_SetButtonState(self: *const T, idCommand: i32, nState: MMC_BUTTON_STATE, bState: BOOL) HRESULT { return @as(*const IToolbar.VTable, @ptrCast(self.vtable)).SetButtonState(@as(*const IToolbar, @ptrCast(self)), idCommand, nState, bState); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows6.0.6000' const IID_IConsoleVerb_Value = Guid.initString("e49f7a60-74af-11d0-a286-00c04fd8fe93"); pub const IID_IConsoleVerb = &IID_IConsoleVerb_Value; pub const IConsoleVerb = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, GetVerbState: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IConsoleVerb, eCmdID: MMC_CONSOLE_VERB, nState: MMC_BUTTON_STATE, pState: ?*BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IConsoleVerb, eCmdID: MMC_CONSOLE_VERB, nState: MMC_BUTTON_STATE, pState: ?*BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetVerbState: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IConsoleVerb, eCmdID: MMC_CONSOLE_VERB, nState: MMC_BUTTON_STATE, bState: BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IConsoleVerb, eCmdID: MMC_CONSOLE_VERB, nState: MMC_BUTTON_STATE, bState: BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetDefaultVerb: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IConsoleVerb, eCmdID: MMC_CONSOLE_VERB, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IConsoleVerb, eCmdID: MMC_CONSOLE_VERB, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetDefaultVerb: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IConsoleVerb, peCmdID: ?*MMC_CONSOLE_VERB, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IConsoleVerb, peCmdID: ?*MMC_CONSOLE_VERB, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IConsoleVerb_GetVerbState(self: *const T, eCmdID: MMC_CONSOLE_VERB, nState: MMC_BUTTON_STATE, pState: ?*BOOL) HRESULT { return @as(*const IConsoleVerb.VTable, @ptrCast(self.vtable)).GetVerbState(@as(*const IConsoleVerb, @ptrCast(self)), eCmdID, nState, pState); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IConsoleVerb_SetVerbState(self: *const T, eCmdID: MMC_CONSOLE_VERB, nState: MMC_BUTTON_STATE, bState: BOOL) HRESULT { return @as(*const IConsoleVerb.VTable, @ptrCast(self.vtable)).SetVerbState(@as(*const IConsoleVerb, @ptrCast(self)), eCmdID, nState, bState); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IConsoleVerb_SetDefaultVerb(self: *const T, eCmdID: MMC_CONSOLE_VERB) HRESULT { return @as(*const IConsoleVerb.VTable, @ptrCast(self.vtable)).SetDefaultVerb(@as(*const IConsoleVerb, @ptrCast(self)), eCmdID); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IConsoleVerb_GetDefaultVerb(self: *const T, peCmdID: ?*MMC_CONSOLE_VERB) HRESULT { return @as(*const IConsoleVerb.VTable, @ptrCast(self.vtable)).GetDefaultVerb(@as(*const IConsoleVerb, @ptrCast(self)), peCmdID); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows6.0.6000' const IID_ISnapinAbout_Value = Guid.initString("1245208c-a151-11d0-a7d7-00c04fd909dd"); pub const IID_ISnapinAbout = &IID_ISnapinAbout_Value; pub const ISnapinAbout = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, GetSnapinDescription: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ISnapinAbout, lpDescription: ?*?PWSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ISnapinAbout, lpDescription: ?*?PWSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetProvider: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ISnapinAbout, lpName: ?*?PWSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ISnapinAbout, lpName: ?*?PWSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetSnapinVersion: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ISnapinAbout, lpVersion: ?*?PWSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ISnapinAbout, lpVersion: ?*?PWSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetSnapinImage: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ISnapinAbout, hAppIcon: ?*?HICON, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ISnapinAbout, hAppIcon: ?*?HICON, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetStaticFolderImage: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ISnapinAbout, hSmallImage: ?*?HBITMAP, hSmallImageOpen: ?*?HBITMAP, hLargeImage: ?*?HBITMAP, cMask: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ISnapinAbout, hSmallImage: ?*?HBITMAP, hSmallImageOpen: ?*?HBITMAP, hLargeImage: ?*?HBITMAP, cMask: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISnapinAbout_GetSnapinDescription(self: *const T, lpDescription: ?*?PWSTR) HRESULT { return @as(*const ISnapinAbout.VTable, @ptrCast(self.vtable)).GetSnapinDescription(@as(*const ISnapinAbout, @ptrCast(self)), lpDescription); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISnapinAbout_GetProvider(self: *const T, lpName: ?*?PWSTR) HRESULT { return @as(*const ISnapinAbout.VTable, @ptrCast(self.vtable)).GetProvider(@as(*const ISnapinAbout, @ptrCast(self)), lpName); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISnapinAbout_GetSnapinVersion(self: *const T, lpVersion: ?*?PWSTR) HRESULT { return @as(*const ISnapinAbout.VTable, @ptrCast(self.vtable)).GetSnapinVersion(@as(*const ISnapinAbout, @ptrCast(self)), lpVersion); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISnapinAbout_GetSnapinImage(self: *const T, hAppIcon: ?*?HICON) HRESULT { return @as(*const ISnapinAbout.VTable, @ptrCast(self.vtable)).GetSnapinImage(@as(*const ISnapinAbout, @ptrCast(self)), hAppIcon); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISnapinAbout_GetStaticFolderImage(self: *const T, hSmallImage: ?*?HBITMAP, hSmallImageOpen: ?*?HBITMAP, hLargeImage: ?*?HBITMAP, cMask: ?*u32) HRESULT { return @as(*const ISnapinAbout.VTable, @ptrCast(self.vtable)).GetStaticFolderImage(@as(*const ISnapinAbout, @ptrCast(self)), hSmallImage, hSmallImageOpen, hLargeImage, cMask); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows6.0.6000' const IID_IMenuButton_Value = Guid.initString("951ed750-d080-11d0-b197-000000000000"); pub const IID_IMenuButton = &IID_IMenuButton_Value; pub const IMenuButton = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, AddButton: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IMenuButton, idCommand: i32, lpButtonText: ?PWSTR, lpTooltipText: ?PWSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IMenuButton, idCommand: i32, lpButtonText: ?PWSTR, lpTooltipText: ?PWSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetButton: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IMenuButton, idCommand: i32, lpButtonText: ?PWSTR, lpTooltipText: ?PWSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IMenuButton, idCommand: i32, lpButtonText: ?PWSTR, lpTooltipText: ?PWSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetButtonState: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IMenuButton, idCommand: i32, nState: MMC_BUTTON_STATE, bState: BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IMenuButton, idCommand: i32, nState: MMC_BUTTON_STATE, bState: BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMenuButton_AddButton(self: *const T, idCommand: i32, lpButtonText: ?PWSTR, lpTooltipText: ?PWSTR) HRESULT { return @as(*const IMenuButton.VTable, @ptrCast(self.vtable)).AddButton(@as(*const IMenuButton, @ptrCast(self)), idCommand, lpButtonText, lpTooltipText); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMenuButton_SetButton(self: *const T, idCommand: i32, lpButtonText: ?PWSTR, lpTooltipText: ?PWSTR) HRESULT { return @as(*const IMenuButton.VTable, @ptrCast(self.vtable)).SetButton(@as(*const IMenuButton, @ptrCast(self)), idCommand, lpButtonText, lpTooltipText); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMenuButton_SetButtonState(self: *const T, idCommand: i32, nState: MMC_BUTTON_STATE, bState: BOOL) HRESULT { return @as(*const IMenuButton.VTable, @ptrCast(self.vtable)).SetButtonState(@as(*const IMenuButton, @ptrCast(self)), idCommand, nState, bState); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows6.0.6000' const IID_ISnapinHelp_Value = Guid.initString("a6b15ace-df59-11d0-a7dd-00c04fd909dd"); pub const IID_ISnapinHelp = &IID_ISnapinHelp_Value; pub const ISnapinHelp = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, GetHelpTopic: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ISnapinHelp, lpCompiledHelpFile: ?*?PWSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ISnapinHelp, lpCompiledHelpFile: ?*?PWSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISnapinHelp_GetHelpTopic(self: *const T, lpCompiledHelpFile: ?*?PWSTR) HRESULT { return @as(*const ISnapinHelp.VTable, @ptrCast(self.vtable)).GetHelpTopic(@as(*const ISnapinHelp, @ptrCast(self)), lpCompiledHelpFile); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows6.0.6000' const IID_IExtendPropertySheet2_Value = Guid.initString("b7a87232-4a51-11d1-a7ea-00c04fd909dd"); pub const IID_IExtendPropertySheet2 = &IID_IExtendPropertySheet2_Value; pub const IExtendPropertySheet2 = extern struct { pub const VTable = extern struct { base: IExtendPropertySheet.VTable, GetWatermarks: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IExtendPropertySheet2, lpIDataObject: ?*IDataObject, lphWatermark: ?*?HBITMAP, lphHeader: ?*?HBITMAP, lphPalette: ?*?HPALETTE, bStretch: ?*BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IExtendPropertySheet2, lpIDataObject: ?*IDataObject, lphWatermark: ?*?HBITMAP, lphHeader: ?*?HBITMAP, lphPalette: ?*?HPALETTE, bStretch: ?*BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IExtendPropertySheet.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IExtendPropertySheet2_GetWatermarks(self: *const T, lpIDataObject: ?*IDataObject, lphWatermark: ?*?HBITMAP, lphHeader: ?*?HBITMAP, lphPalette: ?*?HPALETTE, bStretch: ?*BOOL) HRESULT { return @as(*const IExtendPropertySheet2.VTable, @ptrCast(self.vtable)).GetWatermarks(@as(*const IExtendPropertySheet2, @ptrCast(self)), lpIDataObject, lphWatermark, lphHeader, lphPalette, bStretch); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows6.0.6000' const IID_IHeaderCtrl2_Value = Guid.initString("9757abb8-1b32-11d1-a7ce-00c04fd8d565"); pub const IID_IHeaderCtrl2 = &IID_IHeaderCtrl2_Value; pub const IHeaderCtrl2 = extern struct { pub const VTable = extern struct { base: IHeaderCtrl.VTable, SetChangeTimeOut: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IHeaderCtrl2, uTimeout: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IHeaderCtrl2, uTimeout: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetColumnFilter: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IHeaderCtrl2, nColumn: u32, dwType: u32, pFilterData: ?*MMC_FILTERDATA, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IHeaderCtrl2, nColumn: u32, dwType: u32, pFilterData: ?*MMC_FILTERDATA, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetColumnFilter: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IHeaderCtrl2, nColumn: u32, pdwType: ?*u32, pFilterData: ?*MMC_FILTERDATA, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IHeaderCtrl2, nColumn: u32, pdwType: ?*u32, pFilterData: ?*MMC_FILTERDATA, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IHeaderCtrl.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IHeaderCtrl2_SetChangeTimeOut(self: *const T, uTimeout: u32) HRESULT { return @as(*const IHeaderCtrl2.VTable, @ptrCast(self.vtable)).SetChangeTimeOut(@as(*const IHeaderCtrl2, @ptrCast(self)), uTimeout); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IHeaderCtrl2_SetColumnFilter(self: *const T, nColumn: u32, dwType: u32, pFilterData: ?*MMC_FILTERDATA) HRESULT { return @as(*const IHeaderCtrl2.VTable, @ptrCast(self.vtable)).SetColumnFilter(@as(*const IHeaderCtrl2, @ptrCast(self)), nColumn, dwType, pFilterData); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IHeaderCtrl2_GetColumnFilter(self: *const T, nColumn: u32, pdwType: ?*u32, pFilterData: ?*MMC_FILTERDATA) HRESULT { return @as(*const IHeaderCtrl2.VTable, @ptrCast(self.vtable)).GetColumnFilter(@as(*const IHeaderCtrl2, @ptrCast(self)), nColumn, pdwType, pFilterData); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows6.0.6000' const IID_ISnapinHelp2_Value = Guid.initString("4861a010-20f9-11d2-a510-00c04fb6dd2c"); pub const IID_ISnapinHelp2 = &IID_ISnapinHelp2_Value; pub const ISnapinHelp2 = extern struct { pub const VTable = extern struct { base: ISnapinHelp.VTable, GetLinkedTopics: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ISnapinHelp2, lpCompiledHelpFiles: ?*?PWSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ISnapinHelp2, lpCompiledHelpFiles: ?*?PWSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace ISnapinHelp.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISnapinHelp2_GetLinkedTopics(self: *const T, lpCompiledHelpFiles: ?*?PWSTR) HRESULT { return @as(*const ISnapinHelp2.VTable, @ptrCast(self.vtable)).GetLinkedTopics(@as(*const ISnapinHelp2, @ptrCast(self)), lpCompiledHelpFiles); } }; } pub usingnamespace MethodMixin(@This()); }; pub const MMC_TASK_DISPLAY_TYPE = enum(i32) { UNINITIALIZED = 0, TYPE_SYMBOL = 1, TYPE_VANILLA_GIF = 2, TYPE_CHOCOLATE_GIF = 3, TYPE_BITMAP = 4, }; pub const MMC_TASK_DISPLAY_UNINITIALIZED = MMC_TASK_DISPLAY_TYPE.UNINITIALIZED; pub const MMC_TASK_DISPLAY_TYPE_SYMBOL = MMC_TASK_DISPLAY_TYPE.TYPE_SYMBOL; pub const MMC_TASK_DISPLAY_TYPE_VANILLA_GIF = MMC_TASK_DISPLAY_TYPE.TYPE_VANILLA_GIF; pub const MMC_TASK_DISPLAY_TYPE_CHOCOLATE_GIF = MMC_TASK_DISPLAY_TYPE.TYPE_CHOCOLATE_GIF; pub const MMC_TASK_DISPLAY_TYPE_BITMAP = MMC_TASK_DISPLAY_TYPE.TYPE_BITMAP; pub const MMC_TASK_DISPLAY_SYMBOL = extern struct { szFontFamilyName: ?PWSTR, szURLtoEOT: ?PWSTR, szSymbolString: ?PWSTR, }; pub const MMC_TASK_DISPLAY_BITMAP = extern struct { szMouseOverBitmap: ?PWSTR, szMouseOffBitmap: ?PWSTR, }; pub const MMC_TASK_DISPLAY_OBJECT = extern struct { eDisplayType: MMC_TASK_DISPLAY_TYPE, Anonymous: extern union { uBitmap: MMC_TASK_DISPLAY_BITMAP, uSymbol: MMC_TASK_DISPLAY_SYMBOL, }, }; pub const MMC_ACTION_TYPE = enum(i32) { UNINITIALIZED = -1, ID = 0, LINK = 1, SCRIPT = 2, }; pub const MMC_ACTION_UNINITIALIZED = MMC_ACTION_TYPE.UNINITIALIZED; pub const MMC_ACTION_ID = MMC_ACTION_TYPE.ID; pub const MMC_ACTION_LINK = MMC_ACTION_TYPE.LINK; pub const MMC_ACTION_SCRIPT = MMC_ACTION_TYPE.SCRIPT; pub const MMC_TASK = extern struct { sDisplayObject: MMC_TASK_DISPLAY_OBJECT, szText: ?PWSTR, szHelpString: ?PWSTR, eActionType: MMC_ACTION_TYPE, Anonymous: extern union { nCommandID: isize, szActionURL: ?PWSTR, szScript: ?PWSTR, }, }; pub const MMC_LISTPAD_INFO = extern struct { szTitle: ?PWSTR, szButtonText: ?PWSTR, nCommandID: isize, }; // TODO: this type is limited to platform 'windows6.0.6000' const IID_IEnumTASK_Value = Guid.initString("338698b1-5a02-11d1-9fec-00600832db4a"); pub const IID_IEnumTASK = &IID_IEnumTASK_Value; pub const IEnumTASK = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, Next: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IEnumTASK, celt: u32, rgelt: [*]MMC_TASK, pceltFetched: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IEnumTASK, celt: u32, rgelt: [*]MMC_TASK, pceltFetched: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Skip: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IEnumTASK, celt: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IEnumTASK, celt: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Reset: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IEnumTASK, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IEnumTASK, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Clone: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IEnumTASK, ppenum: ?*?*IEnumTASK, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IEnumTASK, ppenum: ?*?*IEnumTASK, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IEnumTASK_Next(self: *const T, celt: u32, rgelt: [*]MMC_TASK, pceltFetched: ?*u32) HRESULT { return @as(*const IEnumTASK.VTable, @ptrCast(self.vtable)).Next(@as(*const IEnumTASK, @ptrCast(self)), celt, rgelt, pceltFetched); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IEnumTASK_Skip(self: *const T, celt: u32) HRESULT { return @as(*const IEnumTASK.VTable, @ptrCast(self.vtable)).Skip(@as(*const IEnumTASK, @ptrCast(self)), celt); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IEnumTASK_Reset(self: *const T) HRESULT { return @as(*const IEnumTASK.VTable, @ptrCast(self.vtable)).Reset(@as(*const IEnumTASK, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IEnumTASK_Clone(self: *const T, ppenum: ?*?*IEnumTASK) HRESULT { return @as(*const IEnumTASK.VTable, @ptrCast(self.vtable)).Clone(@as(*const IEnumTASK, @ptrCast(self)), ppenum); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows6.0.6000' const IID_IExtendTaskPad_Value = Guid.initString("8dee6511-554d-11d1-9fea-00600832db4a"); pub const IID_IExtendTaskPad = &IID_IExtendTaskPad_Value; pub const IExtendTaskPad = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, TaskNotify: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IExtendTaskPad, pdo: ?*IDataObject, arg: ?*VARIANT, param2: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IExtendTaskPad, pdo: ?*IDataObject, arg: ?*VARIANT, param2: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, EnumTasks: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IExtendTaskPad, pdo: ?*IDataObject, szTaskGroup: ?PWSTR, ppEnumTASK: ?*?*IEnumTASK, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IExtendTaskPad, pdo: ?*IDataObject, szTaskGroup: ?PWSTR, ppEnumTASK: ?*?*IEnumTASK, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetTitle: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IExtendTaskPad, pszGroup: ?PWSTR, pszTitle: ?*?PWSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IExtendTaskPad, pszGroup: ?PWSTR, pszTitle: ?*?PWSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetDescriptiveText: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IExtendTaskPad, pszGroup: ?PWSTR, pszDescriptiveText: ?*?PWSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IExtendTaskPad, pszGroup: ?PWSTR, pszDescriptiveText: ?*?PWSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetBackground: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IExtendTaskPad, pszGroup: ?PWSTR, pTDO: ?*MMC_TASK_DISPLAY_OBJECT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IExtendTaskPad, pszGroup: ?PWSTR, pTDO: ?*MMC_TASK_DISPLAY_OBJECT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetListPadInfo: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IExtendTaskPad, pszGroup: ?PWSTR, lpListPadInfo: ?*MMC_LISTPAD_INFO, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IExtendTaskPad, pszGroup: ?PWSTR, lpListPadInfo: ?*MMC_LISTPAD_INFO, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IExtendTaskPad_TaskNotify(self: *const T, pdo: ?*IDataObject, arg: ?*VARIANT, param2: ?*VARIANT) HRESULT { return @as(*const IExtendTaskPad.VTable, @ptrCast(self.vtable)).TaskNotify(@as(*const IExtendTaskPad, @ptrCast(self)), pdo, arg, param2); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IExtendTaskPad_EnumTasks(self: *const T, pdo: ?*IDataObject, szTaskGroup: ?PWSTR, ppEnumTASK: ?*?*IEnumTASK) HRESULT { return @as(*const IExtendTaskPad.VTable, @ptrCast(self.vtable)).EnumTasks(@as(*const IExtendTaskPad, @ptrCast(self)), pdo, szTaskGroup, ppEnumTASK); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IExtendTaskPad_GetTitle(self: *const T, pszGroup: ?PWSTR, pszTitle: ?*?PWSTR) HRESULT { return @as(*const IExtendTaskPad.VTable, @ptrCast(self.vtable)).GetTitle(@as(*const IExtendTaskPad, @ptrCast(self)), pszGroup, pszTitle); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IExtendTaskPad_GetDescriptiveText(self: *const T, pszGroup: ?PWSTR, pszDescriptiveText: ?*?PWSTR) HRESULT { return @as(*const IExtendTaskPad.VTable, @ptrCast(self.vtable)).GetDescriptiveText(@as(*const IExtendTaskPad, @ptrCast(self)), pszGroup, pszDescriptiveText); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IExtendTaskPad_GetBackground(self: *const T, pszGroup: ?PWSTR, pTDO: ?*MMC_TASK_DISPLAY_OBJECT) HRESULT { return @as(*const IExtendTaskPad.VTable, @ptrCast(self.vtable)).GetBackground(@as(*const IExtendTaskPad, @ptrCast(self)), pszGroup, pTDO); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IExtendTaskPad_GetListPadInfo(self: *const T, pszGroup: ?PWSTR, lpListPadInfo: ?*MMC_LISTPAD_INFO) HRESULT { return @as(*const IExtendTaskPad.VTable, @ptrCast(self.vtable)).GetListPadInfo(@as(*const IExtendTaskPad, @ptrCast(self)), pszGroup, lpListPadInfo); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows6.0.6000' const IID_IConsole2_Value = Guid.initString("103d842a-aa63-11d1-a7e1-00c04fd8d565"); pub const IID_IConsole2 = &IID_IConsole2_Value; pub const IConsole2 = extern struct { pub const VTable = extern struct { base: IConsole.VTable, Expand: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IConsole2, hItem: isize, bExpand: BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IConsole2, hItem: isize, bExpand: BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, IsTaskpadViewPreferred: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IConsole2, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IConsole2, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetStatusText: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IConsole2, pszStatusText: ?PWSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IConsole2, pszStatusText: ?PWSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IConsole.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IConsole2_Expand(self: *const T, hItem: isize, bExpand: BOOL) HRESULT { return @as(*const IConsole2.VTable, @ptrCast(self.vtable)).Expand(@as(*const IConsole2, @ptrCast(self)), hItem, bExpand); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IConsole2_IsTaskpadViewPreferred(self: *const T) HRESULT { return @as(*const IConsole2.VTable, @ptrCast(self.vtable)).IsTaskpadViewPreferred(@as(*const IConsole2, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IConsole2_SetStatusText(self: *const T, pszStatusText: ?PWSTR) HRESULT { return @as(*const IConsole2.VTable, @ptrCast(self.vtable)).SetStatusText(@as(*const IConsole2, @ptrCast(self)), pszStatusText); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows6.0.6000' const IID_IDisplayHelp_Value = Guid.initString("cc593830-b926-11d1-8063-0000f875a9ce"); pub const IID_IDisplayHelp = &IID_IDisplayHelp_Value; pub const IDisplayHelp = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, ShowTopic: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDisplayHelp, pszHelpTopic: ?PWSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDisplayHelp, pszHelpTopic: ?PWSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDisplayHelp_ShowTopic(self: *const T, pszHelpTopic: ?PWSTR) HRESULT { return @as(*const IDisplayHelp.VTable, @ptrCast(self.vtable)).ShowTopic(@as(*const IDisplayHelp, @ptrCast(self)), pszHelpTopic); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows6.0.6000' const IID_IRequiredExtensions_Value = Guid.initString("72782d7a-a4a0-11d1-af0f-00c04fb6dd2c"); pub const IID_IRequiredExtensions = &IID_IRequiredExtensions_Value; pub const IRequiredExtensions = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, EnableAllExtensions: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IRequiredExtensions, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IRequiredExtensions, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetFirstExtension: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IRequiredExtensions, pExtCLSID: ?*Guid, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IRequiredExtensions, pExtCLSID: ?*Guid, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetNextExtension: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IRequiredExtensions, pExtCLSID: ?*Guid, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IRequiredExtensions, pExtCLSID: ?*Guid, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRequiredExtensions_EnableAllExtensions(self: *const T) HRESULT { return @as(*const IRequiredExtensions.VTable, @ptrCast(self.vtable)).EnableAllExtensions(@as(*const IRequiredExtensions, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRequiredExtensions_GetFirstExtension(self: *const T, pExtCLSID: ?*Guid) HRESULT { return @as(*const IRequiredExtensions.VTable, @ptrCast(self.vtable)).GetFirstExtension(@as(*const IRequiredExtensions, @ptrCast(self)), pExtCLSID); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRequiredExtensions_GetNextExtension(self: *const T, pExtCLSID: ?*Guid) HRESULT { return @as(*const IRequiredExtensions.VTable, @ptrCast(self.vtable)).GetNextExtension(@as(*const IRequiredExtensions, @ptrCast(self)), pExtCLSID); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows6.0.6000' const IID_IStringTable_Value = Guid.initString("de40b7a4-0f65-11d2-8e25-00c04f8ecd78"); pub const IID_IStringTable = &IID_IStringTable_Value; pub const IStringTable = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, AddString: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IStringTable, pszAdd: ?[*:0]const u16, pStringID: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IStringTable, pszAdd: ?[*:0]const u16, pStringID: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetString: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IStringTable, StringID: u32, cchBuffer: u32, lpBuffer: [*:0]u16, pcchOut: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IStringTable, StringID: u32, cchBuffer: u32, lpBuffer: [*:0]u16, pcchOut: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetStringLength: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IStringTable, StringID: u32, pcchString: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IStringTable, StringID: u32, pcchString: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, DeleteString: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IStringTable, StringID: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IStringTable, StringID: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, DeleteAllStrings: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IStringTable, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IStringTable, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, FindString: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IStringTable, pszFind: ?[*:0]const u16, pStringID: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IStringTable, pszFind: ?[*:0]const u16, pStringID: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Enumerate: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IStringTable, ppEnum: ?*?*IEnumString, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IStringTable, ppEnum: ?*?*IEnumString, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IStringTable_AddString(self: *const T, pszAdd: ?[*:0]const u16, pStringID: ?*u32) HRESULT { return @as(*const IStringTable.VTable, @ptrCast(self.vtable)).AddString(@as(*const IStringTable, @ptrCast(self)), pszAdd, pStringID); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IStringTable_GetString(self: *const T, StringID: u32, cchBuffer: u32, lpBuffer: [*:0]u16, pcchOut: ?*u32) HRESULT { return @as(*const IStringTable.VTable, @ptrCast(self.vtable)).GetString(@as(*const IStringTable, @ptrCast(self)), StringID, cchBuffer, lpBuffer, pcchOut); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IStringTable_GetStringLength(self: *const T, StringID: u32, pcchString: ?*u32) HRESULT { return @as(*const IStringTable.VTable, @ptrCast(self.vtable)).GetStringLength(@as(*const IStringTable, @ptrCast(self)), StringID, pcchString); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IStringTable_DeleteString(self: *const T, StringID: u32) HRESULT { return @as(*const IStringTable.VTable, @ptrCast(self.vtable)).DeleteString(@as(*const IStringTable, @ptrCast(self)), StringID); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IStringTable_DeleteAllStrings(self: *const T) HRESULT { return @as(*const IStringTable.VTable, @ptrCast(self.vtable)).DeleteAllStrings(@as(*const IStringTable, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IStringTable_FindString(self: *const T, pszFind: ?[*:0]const u16, pStringID: ?*u32) HRESULT { return @as(*const IStringTable.VTable, @ptrCast(self.vtable)).FindString(@as(*const IStringTable, @ptrCast(self)), pszFind, pStringID); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IStringTable_Enumerate(self: *const T, ppEnum: ?*?*IEnumString) HRESULT { return @as(*const IStringTable.VTable, @ptrCast(self.vtable)).Enumerate(@as(*const IStringTable, @ptrCast(self)), ppEnum); } }; } pub usingnamespace MethodMixin(@This()); }; pub const MMC_COLUMN_DATA = extern struct { nColIndex: i32, dwFlags: u32, nWidth: i32, ulReserved: usize, }; pub const MMC_COLUMN_SET_DATA = extern struct { cbSize: i32, nNumCols: i32, pColData: ?*MMC_COLUMN_DATA, }; pub const MMC_SORT_DATA = extern struct { nColIndex: i32, dwSortOptions: u32, ulReserved: usize, }; pub const MMC_SORT_SET_DATA = extern struct { cbSize: i32, nNumItems: i32, pSortData: ?*MMC_SORT_DATA, }; // TODO: this type is limited to platform 'windows6.0.6000' const IID_IColumnData_Value = Guid.initString("547c1354-024d-11d3-a707-00c04f8ef4cb"); pub const IID_IColumnData = &IID_IColumnData_Value; pub const IColumnData = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, SetColumnConfigData: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IColumnData, pColID: ?*SColumnSetID, pColSetData: ?*MMC_COLUMN_SET_DATA, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IColumnData, pColID: ?*SColumnSetID, pColSetData: ?*MMC_COLUMN_SET_DATA, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetColumnConfigData: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IColumnData, pColID: ?*SColumnSetID, ppColSetData: ?*?*MMC_COLUMN_SET_DATA, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IColumnData, pColID: ?*SColumnSetID, ppColSetData: ?*?*MMC_COLUMN_SET_DATA, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetColumnSortData: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IColumnData, pColID: ?*SColumnSetID, pColSortData: ?*MMC_SORT_SET_DATA, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IColumnData, pColID: ?*SColumnSetID, pColSortData: ?*MMC_SORT_SET_DATA, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetColumnSortData: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IColumnData, pColID: ?*SColumnSetID, ppColSortData: ?*?*MMC_SORT_SET_DATA, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IColumnData, pColID: ?*SColumnSetID, ppColSortData: ?*?*MMC_SORT_SET_DATA, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IColumnData_SetColumnConfigData(self: *const T, pColID: ?*SColumnSetID, pColSetData: ?*MMC_COLUMN_SET_DATA) HRESULT { return @as(*const IColumnData.VTable, @ptrCast(self.vtable)).SetColumnConfigData(@as(*const IColumnData, @ptrCast(self)), pColID, pColSetData); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IColumnData_GetColumnConfigData(self: *const T, pColID: ?*SColumnSetID, ppColSetData: ?*?*MMC_COLUMN_SET_DATA) HRESULT { return @as(*const IColumnData.VTable, @ptrCast(self.vtable)).GetColumnConfigData(@as(*const IColumnData, @ptrCast(self)), pColID, ppColSetData); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IColumnData_SetColumnSortData(self: *const T, pColID: ?*SColumnSetID, pColSortData: ?*MMC_SORT_SET_DATA) HRESULT { return @as(*const IColumnData.VTable, @ptrCast(self.vtable)).SetColumnSortData(@as(*const IColumnData, @ptrCast(self)), pColID, pColSortData); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IColumnData_GetColumnSortData(self: *const T, pColID: ?*SColumnSetID, ppColSortData: ?*?*MMC_SORT_SET_DATA) HRESULT { return @as(*const IColumnData.VTable, @ptrCast(self.vtable)).GetColumnSortData(@as(*const IColumnData, @ptrCast(self)), pColID, ppColSortData); } }; } pub usingnamespace MethodMixin(@This()); }; pub const IconIdentifier = enum(i32) { None = 0, Error = 32513, Question = 32514, Warning = 32515, Information = 32516, // First = 32513, this enum value conflicts with Error // Last = 32516, this enum value conflicts with Information }; pub const Icon_None = IconIdentifier.None; pub const Icon_Error = IconIdentifier.Error; pub const Icon_Question = IconIdentifier.Question; pub const Icon_Warning = IconIdentifier.Warning; pub const Icon_Information = IconIdentifier.Information; pub const Icon_First = IconIdentifier.Error; pub const Icon_Last = IconIdentifier.Information; // TODO: this type is limited to platform 'windows6.0.6000' const IID_IMessageView_Value = Guid.initString("80f94174-fccc-11d2-b991-00c04f8ecd78"); pub const IID_IMessageView = &IID_IMessageView_Value; pub const IMessageView = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, SetTitleText: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IMessageView, pszTitleText: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IMessageView, pszTitleText: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetBodyText: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IMessageView, pszBodyText: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IMessageView, pszBodyText: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetIcon: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IMessageView, id: IconIdentifier, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IMessageView, id: IconIdentifier, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Clear: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IMessageView, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IMessageView, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMessageView_SetTitleText(self: *const T, pszTitleText: ?[*:0]const u16) HRESULT { return @as(*const IMessageView.VTable, @ptrCast(self.vtable)).SetTitleText(@as(*const IMessageView, @ptrCast(self)), pszTitleText); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMessageView_SetBodyText(self: *const T, pszBodyText: ?[*:0]const u16) HRESULT { return @as(*const IMessageView.VTable, @ptrCast(self.vtable)).SetBodyText(@as(*const IMessageView, @ptrCast(self)), pszBodyText); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMessageView_SetIcon(self: *const T, id: IconIdentifier) HRESULT { return @as(*const IMessageView.VTable, @ptrCast(self.vtable)).SetIcon(@as(*const IMessageView, @ptrCast(self)), id); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMessageView_Clear(self: *const T) HRESULT { return @as(*const IMessageView.VTable, @ptrCast(self.vtable)).Clear(@as(*const IMessageView, @ptrCast(self))); } }; } pub usingnamespace MethodMixin(@This()); }; pub const RDITEMHDR = extern struct { dwFlags: u32, cookie: isize, lpReserved: LPARAM, }; pub const RDCOMPARE = extern struct { cbSize: u32, dwFlags: u32, nColumn: i32, lUserParam: LPARAM, prdch1: ?*RDITEMHDR, prdch2: ?*RDITEMHDR, }; // TODO: this type is limited to platform 'windows6.0.6000' const IID_IResultDataCompareEx_Value = Guid.initString("96933476-0251-11d3-aeb0-00c04f8ecd78"); pub const IID_IResultDataCompareEx = &IID_IResultDataCompareEx_Value; pub const IResultDataCompareEx = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, Compare: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IResultDataCompareEx, prdc: ?*RDCOMPARE, pnResult: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IResultDataCompareEx, prdc: ?*RDCOMPARE, pnResult: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IResultDataCompareEx_Compare(self: *const T, prdc: ?*RDCOMPARE, pnResult: ?*i32) HRESULT { return @as(*const IResultDataCompareEx.VTable, @ptrCast(self.vtable)).Compare(@as(*const IResultDataCompareEx, @ptrCast(self)), prdc, pnResult); } }; } pub usingnamespace MethodMixin(@This()); }; pub const MMC_VIEW_TYPE = enum(i32) { LIST = 0, HTML = 1, OCX = 2, }; pub const MMC_VIEW_TYPE_LIST = MMC_VIEW_TYPE.LIST; pub const MMC_VIEW_TYPE_HTML = MMC_VIEW_TYPE.HTML; pub const MMC_VIEW_TYPE_OCX = MMC_VIEW_TYPE.OCX; pub const RESULT_VIEW_TYPE_INFO = extern struct { pstrPersistableViewDescription: ?PWSTR, eViewType: MMC_VIEW_TYPE, dwMiscOptions: u32, Anonymous: extern union { dwListOptions: u32, Anonymous1: extern struct { dwHTMLOptions: u32, pstrURL: ?PWSTR, }, Anonymous2: extern struct { dwOCXOptions: u32, pUnkControl: ?*IUnknown, }, }, }; pub const CONTEXTMENUITEM2 = extern struct { strName: ?PWSTR, strStatusBarText: ?PWSTR, lCommandID: i32, lInsertionPointID: i32, fFlags: i32, fSpecialFlags: i32, strLanguageIndependentName: ?PWSTR, }; pub const MMC_EXT_VIEW_DATA = extern struct { viewID: Guid, pszURL: ?[*:0]const u16, pszViewTitle: ?[*:0]const u16, pszTooltipText: ?[*:0]const u16, bReplacesDefaultView: BOOL, }; // TODO: this type is limited to platform 'windows6.0.6000' const IID_IComponentData2_Value = Guid.initString("cca0f2d2-82de-41b5-bf47-3b2076273d5c"); pub const IID_IComponentData2 = &IID_IComponentData2_Value; pub const IComponentData2 = extern struct { pub const VTable = extern struct { base: IComponentData.VTable, QueryDispatch: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IComponentData2, cookie: isize, type: DATA_OBJECT_TYPES, ppDispatch: ?*?*IDispatch, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IComponentData2, cookie: isize, type: DATA_OBJECT_TYPES, ppDispatch: ?*?*IDispatch, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IComponentData.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IComponentData2_QueryDispatch(self: *const T, cookie: isize, type_: DATA_OBJECT_TYPES, ppDispatch: ?*?*IDispatch) HRESULT { return @as(*const IComponentData2.VTable, @ptrCast(self.vtable)).QueryDispatch(@as(*const IComponentData2, @ptrCast(self)), cookie, type_, ppDispatch); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows6.0.6000' const IID_IComponent2_Value = Guid.initString("79a2d615-4a10-4ed4-8c65-8633f9335095"); pub const IID_IComponent2 = &IID_IComponent2_Value; pub const IComponent2 = extern struct { pub const VTable = extern struct { base: IComponent.VTable, QueryDispatch: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IComponent2, cookie: isize, type: DATA_OBJECT_TYPES, ppDispatch: ?*?*IDispatch, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IComponent2, cookie: isize, type: DATA_OBJECT_TYPES, ppDispatch: ?*?*IDispatch, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetResultViewType2: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IComponent2, cookie: isize, pResultViewType: ?*RESULT_VIEW_TYPE_INFO, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IComponent2, cookie: isize, pResultViewType: ?*RESULT_VIEW_TYPE_INFO, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, RestoreResultView: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IComponent2, cookie: isize, pResultViewType: ?*RESULT_VIEW_TYPE_INFO, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IComponent2, cookie: isize, pResultViewType: ?*RESULT_VIEW_TYPE_INFO, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IComponent.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IComponent2_QueryDispatch(self: *const T, cookie: isize, type_: DATA_OBJECT_TYPES, ppDispatch: ?*?*IDispatch) HRESULT { return @as(*const IComponent2.VTable, @ptrCast(self.vtable)).QueryDispatch(@as(*const IComponent2, @ptrCast(self)), cookie, type_, ppDispatch); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IComponent2_GetResultViewType2(self: *const T, cookie: isize, pResultViewType: ?*RESULT_VIEW_TYPE_INFO) HRESULT { return @as(*const IComponent2.VTable, @ptrCast(self.vtable)).GetResultViewType2(@as(*const IComponent2, @ptrCast(self)), cookie, pResultViewType); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IComponent2_RestoreResultView(self: *const T, cookie: isize, pResultViewType: ?*RESULT_VIEW_TYPE_INFO) HRESULT { return @as(*const IComponent2.VTable, @ptrCast(self.vtable)).RestoreResultView(@as(*const IComponent2, @ptrCast(self)), cookie, pResultViewType); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows6.0.6000' const IID_IContextMenuCallback2_Value = Guid.initString("e178bc0e-2ed0-4b5e-8097-42c9087e8b33"); pub const IID_IContextMenuCallback2 = &IID_IContextMenuCallback2_Value; pub const IContextMenuCallback2 = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, AddItem: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IContextMenuCallback2, pItem: ?*CONTEXTMENUITEM2, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IContextMenuCallback2, pItem: ?*CONTEXTMENUITEM2, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IContextMenuCallback2_AddItem(self: *const T, pItem: ?*CONTEXTMENUITEM2) HRESULT { return @as(*const IContextMenuCallback2.VTable, @ptrCast(self.vtable)).AddItem(@as(*const IContextMenuCallback2, @ptrCast(self)), pItem); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows6.0.6000' const IID_IMMCVersionInfo_Value = Guid.initString("a8d2c5fe-cdcb-4b9d-bde5-a27343ff54bc"); pub const IID_IMMCVersionInfo = &IID_IMMCVersionInfo_Value; pub const IMMCVersionInfo = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, GetMMCVersion: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IMMCVersionInfo, pVersionMajor: ?*i32, pVersionMinor: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IMMCVersionInfo, pVersionMajor: ?*i32, pVersionMinor: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMMCVersionInfo_GetMMCVersion(self: *const T, pVersionMajor: ?*i32, pVersionMinor: ?*i32) HRESULT { return @as(*const IMMCVersionInfo.VTable, @ptrCast(self.vtable)).GetMMCVersion(@as(*const IMMCVersionInfo, @ptrCast(self)), pVersionMajor, pVersionMinor); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows6.0.6000' const IID_IExtendView_Value = Guid.initString("89995cee-d2ed-4c0e-ae5e-df7e76f3fa53"); pub const IID_IExtendView = &IID_IExtendView_Value; pub const IExtendView = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, GetViews: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IExtendView, pDataObject: ?*IDataObject, pViewExtensionCallback: ?*IViewExtensionCallback, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IExtendView, pDataObject: ?*IDataObject, pViewExtensionCallback: ?*IViewExtensionCallback, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IExtendView_GetViews(self: *const T, pDataObject: ?*IDataObject, pViewExtensionCallback: ?*IViewExtensionCallback) HRESULT { return @as(*const IExtendView.VTable, @ptrCast(self.vtable)).GetViews(@as(*const IExtendView, @ptrCast(self)), pDataObject, pViewExtensionCallback); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows6.0.6000' const IID_IViewExtensionCallback_Value = Guid.initString("34dd928a-7599-41e5-9f5e-d6bc3062c2da"); pub const IID_IViewExtensionCallback = &IID_IViewExtensionCallback_Value; pub const IViewExtensionCallback = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, AddView: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IViewExtensionCallback, pExtViewData: ?*MMC_EXT_VIEW_DATA, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IViewExtensionCallback, pExtViewData: ?*MMC_EXT_VIEW_DATA, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IViewExtensionCallback_AddView(self: *const T, pExtViewData: ?*MMC_EXT_VIEW_DATA) HRESULT { return @as(*const IViewExtensionCallback.VTable, @ptrCast(self.vtable)).AddView(@as(*const IViewExtensionCallback, @ptrCast(self)), pExtViewData); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows6.0.6000' const IID_IConsolePower_Value = Guid.initString("1cfbdd0e-62ca-49ce-a3af-dbb2de61b068"); pub const IID_IConsolePower = &IID_IConsolePower_Value; pub const IConsolePower = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, SetExecutionState: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IConsolePower, dwAdd: u32, dwRemove: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IConsolePower, dwAdd: u32, dwRemove: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, ResetIdleTimer: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IConsolePower, dwFlags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IConsolePower, dwFlags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IConsolePower_SetExecutionState(self: *const T, dwAdd: u32, dwRemove: u32) HRESULT { return @as(*const IConsolePower.VTable, @ptrCast(self.vtable)).SetExecutionState(@as(*const IConsolePower, @ptrCast(self)), dwAdd, dwRemove); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IConsolePower_ResetIdleTimer(self: *const T, dwFlags: u32) HRESULT { return @as(*const IConsolePower.VTable, @ptrCast(self.vtable)).ResetIdleTimer(@as(*const IConsolePower, @ptrCast(self)), dwFlags); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows6.0.6000' const IID_IConsolePowerSink_Value = Guid.initString("3333759f-fe4f-4975-b143-fec0a5dd6d65"); pub const IID_IConsolePowerSink = &IID_IConsolePowerSink_Value; pub const IConsolePowerSink = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, OnPowerBroadcast: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IConsolePowerSink, nEvent: u32, lParam: LPARAM, plReturn: ?*LRESULT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IConsolePowerSink, nEvent: u32, lParam: LPARAM, plReturn: ?*LRESULT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IConsolePowerSink_OnPowerBroadcast(self: *const T, nEvent: u32, lParam: LPARAM, plReturn: ?*LRESULT) HRESULT { return @as(*const IConsolePowerSink.VTable, @ptrCast(self.vtable)).OnPowerBroadcast(@as(*const IConsolePowerSink, @ptrCast(self)), nEvent, lParam, plReturn); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows6.0.6000' const IID_INodeProperties_Value = Guid.initString("15bc4d24-a522-4406-aa55-0749537a6865"); pub const IID_INodeProperties = &IID_INodeProperties_Value; pub const INodeProperties = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, GetProperty: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const INodeProperties, pDataObject: ?*IDataObject, szPropertyName: ?BSTR, pbstrProperty: ?*?*u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const INodeProperties, pDataObject: ?*IDataObject, szPropertyName: ?BSTR, pbstrProperty: ?*?*u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn INodeProperties_GetProperty(self: *const T, pDataObject: ?*IDataObject, szPropertyName: ?BSTR, pbstrProperty: ?*?*u16) HRESULT { return @as(*const INodeProperties.VTable, @ptrCast(self.vtable)).GetProperty(@as(*const INodeProperties, @ptrCast(self)), pDataObject, szPropertyName, pbstrProperty); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows6.0.6000' const IID_IConsole3_Value = Guid.initString("4f85efdb-d0e1-498c-8d4a-d010dfdd404f"); pub const IID_IConsole3 = &IID_IConsole3_Value; pub const IConsole3 = extern struct { pub const VTable = extern struct { base: IConsole2.VTable, RenameScopeItem: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IConsole3, hScopeItem: isize, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IConsole3, hScopeItem: isize, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IConsole2.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IConsole3_RenameScopeItem(self: *const T, hScopeItem: isize) HRESULT { return @as(*const IConsole3.VTable, @ptrCast(self.vtable)).RenameScopeItem(@as(*const IConsole3, @ptrCast(self)), hScopeItem); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows6.0.6000' const IID_IResultData2_Value = Guid.initString("0f36e0eb-a7f1-4a81-be5a-9247f7de4b1b"); pub const IID_IResultData2 = &IID_IResultData2_Value; pub const IResultData2 = extern struct { pub const VTable = extern struct { base: IResultData.VTable, RenameResultItem: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IResultData2, itemID: isize, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IResultData2, itemID: isize, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IResultData.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IResultData2_RenameResultItem(self: *const T, itemID: isize) HRESULT { return @as(*const IResultData2.VTable, @ptrCast(self.vtable)).RenameResultItem(@as(*const IResultData2, @ptrCast(self)), itemID); } }; } pub usingnamespace MethodMixin(@This()); }; //-------------------------------------------------------------------------------- // Section: Functions (0) //-------------------------------------------------------------------------------- //-------------------------------------------------------------------------------- // Section: Unicode Aliases (0) //-------------------------------------------------------------------------------- const thismodule = @This(); pub usingnamespace switch (@import("../zig.zig").unicode_mode) { .ansi => struct {}, .wide => struct {}, .unspecified => if (@import("builtin").is_test) struct {} else struct {}, }; //-------------------------------------------------------------------------------- // Section: Imports (17) //-------------------------------------------------------------------------------- const Guid = @import("../zig.zig").Guid; const BOOL = @import("../foundation.zig").BOOL; const BSTR = @import("../foundation.zig").BSTR; const HBITMAP = @import("../graphics/gdi.zig").HBITMAP; const HICON = @import("../ui/windows_and_messaging.zig").HICON; const HPALETTE = @import("../graphics/gdi.zig").HPALETTE; const HPROPSHEETPAGE = @import("../ui/controls.zig").HPROPSHEETPAGE; const HRESULT = @import("../foundation.zig").HRESULT; const HWND = @import("../foundation.zig").HWND; const IDataObject = @import("../system/com.zig").IDataObject; const IDispatch = @import("../system/com.zig").IDispatch; const IEnumString = @import("../system/com.zig").IEnumString; const IUnknown = @import("../system/com.zig").IUnknown; const LPARAM = @import("../foundation.zig").LPARAM; const LRESULT = @import("../foundation.zig").LRESULT; const PWSTR = @import("../foundation.zig").PWSTR; const VARIANT = @import("../system/com.zig").VARIANT; test { @setEvalBranchQuota(comptime @import("std").meta.declarations(@This()).len * 3); // reference all the pub declarations if (!@import("builtin").is_test) return; inline for (comptime @import("std").meta.declarations(@This())) |decl| { if (decl.is_pub) { _ = @field(@This(), decl.name); } } }
0
repos/capy/vendor/zigwin32/win32
repos/capy/vendor/zigwin32/win32/system/deployment_services.zig
//! NOTE: this file is autogenerated, DO NOT MODIFY //-------------------------------------------------------------------------------- // Section: Constants (197) //-------------------------------------------------------------------------------- pub const WDS_CLI_TRANSFER_ASYNCHRONOUS = @as(u32, 1); pub const WDS_CLI_NO_SPARSE_FILE = @as(u32, 2); pub const PXE_DHCP_SERVER_PORT = @as(u32, 67); pub const PXE_DHCP_CLIENT_PORT = @as(u32, 68); pub const PXE_SERVER_PORT = @as(u32, 4011); pub const PXE_DHCPV6_SERVER_PORT = @as(u32, 547); pub const PXE_DHCPV6_CLIENT_PORT = @as(u32, 546); pub const PXE_DHCP_FILE_SIZE = @as(u32, 128); pub const PXE_DHCP_SERVER_SIZE = @as(u32, 64); pub const PXE_DHCP_HWAADR_SIZE = @as(u32, 16); pub const PXE_DHCP_MAGIC_COOKIE_SIZE = @as(u32, 4); pub const PXE_REG_INDEX_TOP = @as(u32, 0); pub const PXE_REG_INDEX_BOTTOM = @as(u32, 4294967295); pub const PXE_CALLBACK_RECV_REQUEST = @as(u32, 0); pub const PXE_CALLBACK_SHUTDOWN = @as(u32, 1); pub const PXE_CALLBACK_SERVICE_CONTROL = @as(u32, 2); pub const PXE_CALLBACK_MAX = @as(u32, 3); pub const PXE_GSI_TRACE_ENABLED = @as(u32, 1); pub const PXE_GSI_SERVER_DUID = @as(u32, 2); pub const PXE_MAX_ADDRESS = @as(u32, 16); pub const PXE_ADDR_BROADCAST = @as(u32, 1); pub const PXE_ADDR_USE_PORT = @as(u32, 2); pub const PXE_ADDR_USE_ADDR = @as(u32, 4); pub const PXE_ADDR_USE_DHCP_RULES = @as(u32, 8); pub const PXE_DHCPV6_RELAY_HOP_COUNT_LIMIT = @as(u32, 32); pub const PXE_BA_NBP = @as(u32, 1); pub const PXE_BA_CUSTOM = @as(u32, 2); pub const PXE_BA_IGNORE = @as(u32, 3); pub const PXE_BA_REJECTED = @as(u32, 4); pub const PXE_TRACE_VERBOSE = @as(u32, 65536); pub const PXE_TRACE_INFO = @as(u32, 131072); pub const PXE_TRACE_WARNING = @as(u32, 262144); pub const PXE_TRACE_ERROR = @as(u32, 524288); pub const PXE_TRACE_FATAL = @as(u32, 1048576); pub const PXE_PROV_ATTR_FILTER = @as(u32, 0); pub const PXE_PROV_ATTR_FILTER_IPV6 = @as(u32, 1); pub const PXE_PROV_ATTR_IPV6_CAPABLE = @as(u32, 2); pub const PXE_PROV_FILTER_ALL = @as(u32, 0); pub const PXE_PROV_FILTER_DHCP_ONLY = @as(u32, 1); pub const PXE_PROV_FILTER_PXE_ONLY = @as(u32, 2); pub const MC_SERVER_CURRENT_VERSION = @as(u32, 1); pub const TRANSPORTPROVIDER_CURRENT_VERSION = @as(u32, 1); pub const WDS_MC_TRACE_VERBOSE = @as(u32, 65536); pub const WDS_MC_TRACE_INFO = @as(u32, 131072); pub const WDS_MC_TRACE_WARNING = @as(u32, 262144); pub const WDS_MC_TRACE_ERROR = @as(u32, 524288); pub const WDS_MC_TRACE_FATAL = @as(u32, 1048576); pub const WDS_TRANSPORTCLIENT_CURRENT_API_VERSION = @as(u32, 1); pub const WDS_TRANSPORTCLIENT_PROTOCOL_MULTICAST = @as(u32, 1); pub const WDS_TRANSPORTCLIENT_NO_CACHE = @as(u32, 0); pub const WDS_TRANSPORTCLIENT_STATUS_IN_PROGRESS = @as(u32, 1); pub const WDS_TRANSPORTCLIENT_STATUS_SUCCESS = @as(u32, 2); pub const WDS_TRANSPORTCLIENT_STATUS_FAILURE = @as(u32, 3); pub const WDSTRANSPORT_RESOURCE_UTILIZATION_UNKNOWN = @as(u32, 255); pub const WDSBP_PK_TYPE_DHCP = @as(u32, 1); pub const WDSBP_PK_TYPE_WDSNBP = @as(u32, 2); pub const WDSBP_PK_TYPE_BCD = @as(u32, 4); pub const WDSBP_PK_TYPE_DHCPV6 = @as(u32, 8); pub const WDSBP_OPT_TYPE_NONE = @as(u32, 0); pub const WDSBP_OPT_TYPE_BYTE = @as(u32, 1); pub const WDSBP_OPT_TYPE_USHORT = @as(u32, 2); pub const WDSBP_OPT_TYPE_ULONG = @as(u32, 3); pub const WDSBP_OPT_TYPE_WSTR = @as(u32, 4); pub const WDSBP_OPT_TYPE_STR = @as(u32, 5); pub const WDSBP_OPT_TYPE_IP4 = @as(u32, 6); pub const WDSBP_OPT_TYPE_IP6 = @as(u32, 7); pub const WDSBP_OPTVAL_ACTION_APPROVAL = @as(u32, 1); pub const WDSBP_OPTVAL_ACTION_REFERRAL = @as(u32, 3); pub const WDSBP_OPTVAL_ACTION_ABORT = @as(u32, 5); pub const WDSBP_OPTVAL_PXE_PROMPT_OPTIN = @as(u32, 1); pub const WDSBP_OPTVAL_PXE_PROMPT_NOPROMPT = @as(u32, 2); pub const WDSBP_OPTVAL_PXE_PROMPT_OPTOUT = @as(u32, 3); pub const WDSBP_OPTVAL_NBP_VER_7 = @as(u32, 1792); pub const WDSBP_OPTVAL_NBP_VER_8 = @as(u32, 2048); pub const FACILITY_WDSMCSERVER = @as(u32, 289); pub const FACILITY_WDSMCCLIENT = @as(u32, 290); pub const WDSMCSERVER_CATEGORY = @import("../zig.zig").typedConst(HRESULT, @as(i32, 1)); pub const WDSMCCLIENT_CATEGORY = @import("../zig.zig").typedConst(HRESULT, @as(i32, 2)); pub const WDSMCS_E_SESSION_SHUTDOWN_IN_PROGRESS = @import("../zig.zig").typedConst(HRESULT, @as(i32, -1054801664)); pub const WDSMCS_E_REQCALLBACKS_NOT_REG = @import("../zig.zig").typedConst(HRESULT, @as(i32, -1054801663)); pub const WDSMCS_E_INCOMPATIBLE_VERSION = @import("../zig.zig").typedConst(HRESULT, @as(i32, -1054801662)); pub const WDSMCS_E_CONTENT_NOT_FOUND = @import("../zig.zig").typedConst(HRESULT, @as(i32, -1054801661)); pub const WDSMCS_E_CLIENT_NOT_FOUND = @import("../zig.zig").typedConst(HRESULT, @as(i32, -1054801660)); pub const WDSMCS_E_NAMESPACE_NOT_FOUND = @import("../zig.zig").typedConst(HRESULT, @as(i32, -1054801659)); pub const WDSMCS_E_CONTENT_PROVIDER_NOT_FOUND = @import("../zig.zig").typedConst(HRESULT, @as(i32, -1054801658)); pub const WDSMCS_E_NAMESPACE_ALREADY_EXISTS = @import("../zig.zig").typedConst(HRESULT, @as(i32, -1054801657)); pub const WDSMCS_E_NAMESPACE_SHUTDOWN_IN_PROGRESS = @import("../zig.zig").typedConst(HRESULT, @as(i32, -1054801656)); pub const WDSMCS_E_NAMESPACE_ALREADY_STARTED = @import("../zig.zig").typedConst(HRESULT, @as(i32, -1054801655)); pub const WDSMCS_E_NS_START_FAILED_NO_CLIENTS = @import("../zig.zig").typedConst(HRESULT, @as(i32, -1054801654)); pub const WDSMCS_E_START_TIME_IN_PAST = @import("../zig.zig").typedConst(HRESULT, @as(i32, -1054801653)); pub const WDSMCS_E_PACKET_NOT_HASHED = @import("../zig.zig").typedConst(HRESULT, @as(i32, -1054801652)); pub const WDSMCS_E_PACKET_NOT_SIGNED = @import("../zig.zig").typedConst(HRESULT, @as(i32, -1054801651)); pub const WDSMCS_E_PACKET_HAS_SECURITY = @import("../zig.zig").typedConst(HRESULT, @as(i32, -1054801650)); pub const WDSMCS_E_PACKET_NOT_CHECKSUMED = @import("../zig.zig").typedConst(HRESULT, @as(i32, -1054801649)); pub const WDSMCS_E_CLIENT_DOESNOT_SUPPORT_SECURITY_MODE = @import("../zig.zig").typedConst(HRESULT, @as(i32, -1054801648)); pub const EVT_WDSMCS_S_PARAMETERS_READ = @import("../zig.zig").typedConst(HRESULT, @as(i32, 1092682240)); pub const EVT_WDSMCS_E_PARAMETERS_READ_FAILED = @import("../zig.zig").typedConst(HRESULT, @as(i32, -1054801407)); pub const EVT_WDSMCS_E_DUPLICATE_MULTICAST_ADDR = @import("../zig.zig").typedConst(HRESULT, @as(i32, -1054801406)); pub const EVT_WDSMCS_E_NON_WDS_DUPLICATE_MULTICAST_ADDR = @import("../zig.zig").typedConst(HRESULT, @as(i32, -1054801405)); pub const EVT_WDSMCS_E_CP_DLL_LOAD_FAILED = @import("../zig.zig").typedConst(HRESULT, @as(i32, -1054801328)); pub const EVT_WDSMCS_E_CP_INIT_FUNC_MISSING = @import("../zig.zig").typedConst(HRESULT, @as(i32, -1054801327)); pub const EVT_WDSMCS_E_CP_INIT_FUNC_FAILED = @import("../zig.zig").typedConst(HRESULT, @as(i32, -1054801326)); pub const EVT_WDSMCS_E_CP_INCOMPATIBLE_SERVER_VERSION = @import("../zig.zig").typedConst(HRESULT, @as(i32, -1054801325)); pub const EVT_WDSMCS_E_CP_CALLBACKS_NOT_REG = @import("../zig.zig").typedConst(HRESULT, @as(i32, -1054801324)); pub const EVT_WDSMCS_E_CP_SHUTDOWN_FUNC_FAILED = @import("../zig.zig").typedConst(HRESULT, @as(i32, -1054801323)); pub const EVT_WDSMCS_E_CP_MEMORY_LEAK = @import("../zig.zig").typedConst(HRESULT, @as(i32, -1054801322)); pub const EVT_WDSMCS_E_CP_OPEN_INSTANCE_FAILED = @import("../zig.zig").typedConst(HRESULT, @as(i32, -1054801321)); pub const EVT_WDSMCS_E_CP_CLOSE_INSTANCE_FAILED = @import("../zig.zig").typedConst(HRESULT, @as(i32, -1054801320)); pub const EVT_WDSMCS_E_CP_OPEN_CONTENT_FAILED = @import("../zig.zig").typedConst(HRESULT, @as(i32, -1054801319)); pub const EVT_WDSMCS_W_CP_DLL_LOAD_FAILED_NOT_CRITICAL = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2128543142)); pub const EVT_WDSMCS_E_CP_DLL_LOAD_FAILED_CRITICAL = @import("../zig.zig").typedConst(HRESULT, @as(i32, -1054801317)); pub const EVT_WDSMCS_E_NSREG_START_TIME_IN_PAST = @import("../zig.zig").typedConst(HRESULT, @as(i32, -1054801152)); pub const EVT_WDSMCS_E_NSREG_CONTENT_PROVIDER_NOT_REG = @import("../zig.zig").typedConst(HRESULT, @as(i32, -1054801151)); pub const EVT_WDSMCS_E_NSREG_NAMESPACE_EXISTS = @import("../zig.zig").typedConst(HRESULT, @as(i32, -1054801150)); pub const EVT_WDSMCS_E_NSREG_FAILURE = @import("../zig.zig").typedConst(HRESULT, @as(i32, -1054801149)); pub const WDSTPC_E_CALLBACKS_NOT_REG = @import("../zig.zig").typedConst(HRESULT, @as(i32, -1054735616)); pub const WDSTPC_E_ALREADY_COMPLETED = @import("../zig.zig").typedConst(HRESULT, @as(i32, -1054735615)); pub const WDSTPC_E_ALREADY_IN_PROGRESS = @import("../zig.zig").typedConst(HRESULT, @as(i32, -1054735614)); pub const WDSTPC_E_UNKNOWN_ERROR = @import("../zig.zig").typedConst(HRESULT, @as(i32, -1054735613)); pub const WDSTPC_E_NOT_INITIALIZED = @import("../zig.zig").typedConst(HRESULT, @as(i32, -1054735612)); pub const WDSTPC_E_KICKED_POLICY_NOT_MET = @import("../zig.zig").typedConst(HRESULT, @as(i32, -1054735611)); pub const WDSTPC_E_KICKED_FALLBACK = @import("../zig.zig").typedConst(HRESULT, @as(i32, -1054735610)); pub const WDSTPC_E_KICKED_FAIL = @import("../zig.zig").typedConst(HRESULT, @as(i32, -1054735609)); pub const WDSTPC_E_KICKED_UNKNOWN = @import("../zig.zig").typedConst(HRESULT, @as(i32, -1054735608)); pub const WDSTPC_E_MULTISTREAM_NOT_ENABLED = @import("../zig.zig").typedConst(HRESULT, @as(i32, -1054735607)); pub const WDSTPC_E_ALREADY_IN_LOWEST_SESSION = @import("../zig.zig").typedConst(HRESULT, @as(i32, -1054735606)); pub const WDSTPC_E_CLIENT_DEMOTE_NOT_SUPPORTED = @import("../zig.zig").typedConst(HRESULT, @as(i32, -1054735605)); pub const WDSTPC_E_NO_IP4_INTERFACE = @import("../zig.zig").typedConst(HRESULT, @as(i32, -1054735604)); pub const WDSTPTC_E_WIM_APPLY_REQUIRES_REFERENCE_IMAGE = @import("../zig.zig").typedConst(HRESULT, @as(i32, -1054735603)); pub const FACILITY_WDSTPTMGMT = @as(u32, 272); pub const WDSTPTMGMT_CATEGORY = @import("../zig.zig").typedConst(HRESULT, @as(i32, 1)); pub const WDSTPTMGMT_E_INVALID_PROPERTY = @import("../zig.zig").typedConst(HRESULT, @as(i32, -1055915776)); pub const WDSTPTMGMT_E_INVALID_OPERATION = @import("../zig.zig").typedConst(HRESULT, @as(i32, -1055915775)); pub const WDSTPTMGMT_E_INVALID_CLASS = @import("../zig.zig").typedConst(HRESULT, @as(i32, -1055915774)); pub const WDSTPTMGMT_E_CONTENT_PROVIDER_ALREADY_REGISTERED = @import("../zig.zig").typedConst(HRESULT, @as(i32, -1055915773)); pub const WDSTPTMGMT_E_CONTENT_PROVIDER_NOT_REGISTERED = @import("../zig.zig").typedConst(HRESULT, @as(i32, -1055915772)); pub const WDSTPTMGMT_E_INVALID_CONTENT_PROVIDER_NAME = @import("../zig.zig").typedConst(HRESULT, @as(i32, -1055915771)); pub const WDSTPTMGMT_E_TRANSPORT_SERVER_ROLE_NOT_CONFIGURED = @import("../zig.zig").typedConst(HRESULT, @as(i32, -1055915770)); pub const WDSTPTMGMT_E_NAMESPACE_ALREADY_REGISTERED = @import("../zig.zig").typedConst(HRESULT, @as(i32, -1055915769)); pub const WDSTPTMGMT_E_NAMESPACE_NOT_REGISTERED = @import("../zig.zig").typedConst(HRESULT, @as(i32, -1055915768)); pub const WDSTPTMGMT_E_CANNOT_REINITIALIZE_OBJECT = @import("../zig.zig").typedConst(HRESULT, @as(i32, -1055915767)); pub const WDSTPTMGMT_E_INVALID_NAMESPACE_NAME = @import("../zig.zig").typedConst(HRESULT, @as(i32, -1055915766)); pub const WDSTPTMGMT_E_INVALID_NAMESPACE_DATA = @import("../zig.zig").typedConst(HRESULT, @as(i32, -1055915765)); pub const WDSTPTMGMT_E_NAMESPACE_READ_ONLY = @import("../zig.zig").typedConst(HRESULT, @as(i32, -1055915764)); pub const WDSTPTMGMT_E_INVALID_NAMESPACE_START_TIME = @import("../zig.zig").typedConst(HRESULT, @as(i32, -1055915763)); pub const WDSTPTMGMT_E_INVALID_DIAGNOSTICS_COMPONENTS = @import("../zig.zig").typedConst(HRESULT, @as(i32, -1055915762)); pub const WDSTPTMGMT_E_CANNOT_REFRESH_DIRTY_OBJECT = @import("../zig.zig").typedConst(HRESULT, @as(i32, -1055915761)); pub const WDSTPTMGMT_E_INVALID_SERVICE_IP_ADDRESS_RANGE = @import("../zig.zig").typedConst(HRESULT, @as(i32, -1055915760)); pub const WDSTPTMGMT_E_INVALID_SERVICE_PORT_RANGE = @import("../zig.zig").typedConst(HRESULT, @as(i32, -1055915759)); pub const WDSTPTMGMT_E_INVALID_NAMESPACE_START_PARAMETERS = @import("../zig.zig").typedConst(HRESULT, @as(i32, -1055915758)); pub const WDSTPTMGMT_E_TRANSPORT_SERVER_UNAVAILABLE = @import("../zig.zig").typedConst(HRESULT, @as(i32, -1055915757)); pub const WDSTPTMGMT_E_NAMESPACE_NOT_ON_SERVER = @import("../zig.zig").typedConst(HRESULT, @as(i32, -1055915756)); pub const WDSTPTMGMT_E_NAMESPACE_REMOVED_FROM_SERVER = @import("../zig.zig").typedConst(HRESULT, @as(i32, -1055915755)); pub const WDSTPTMGMT_E_INVALID_IP_ADDRESS = @import("../zig.zig").typedConst(HRESULT, @as(i32, -1055915754)); pub const WDSTPTMGMT_E_INVALID_IPV4_MULTICAST_ADDRESS = @import("../zig.zig").typedConst(HRESULT, @as(i32, -1055915753)); pub const WDSTPTMGMT_E_INVALID_IPV6_MULTICAST_ADDRESS = @import("../zig.zig").typedConst(HRESULT, @as(i32, -1055915752)); pub const WDSTPTMGMT_E_IPV6_NOT_SUPPORTED = @import("../zig.zig").typedConst(HRESULT, @as(i32, -1055915751)); pub const WDSTPTMGMT_E_INVALID_IPV6_MULTICAST_ADDRESS_SOURCE = @import("../zig.zig").typedConst(HRESULT, @as(i32, -1055915750)); pub const WDSTPTMGMT_E_INVALID_MULTISTREAM_STREAM_COUNT = @import("../zig.zig").typedConst(HRESULT, @as(i32, -1055915749)); pub const WDSTPTMGMT_E_INVALID_AUTO_DISCONNECT_THRESHOLD = @import("../zig.zig").typedConst(HRESULT, @as(i32, -1055915748)); pub const WDSTPTMGMT_E_MULTICAST_SESSION_POLICY_NOT_SUPPORTED = @import("../zig.zig").typedConst(HRESULT, @as(i32, -1055915747)); pub const WDSTPTMGMT_E_INVALID_SLOW_CLIENT_HANDLING_TYPE = @import("../zig.zig").typedConst(HRESULT, @as(i32, -1055915746)); pub const WDSTPTMGMT_E_NETWORK_PROFILES_NOT_SUPPORTED = @import("../zig.zig").typedConst(HRESULT, @as(i32, -1055915745)); pub const WDSTPTMGMT_E_UDP_PORT_POLICY_NOT_SUPPORTED = @import("../zig.zig").typedConst(HRESULT, @as(i32, -1055915744)); pub const WDSTPTMGMT_E_TFTP_MAX_BLOCKSIZE_NOT_SUPPORTED = @import("../zig.zig").typedConst(HRESULT, @as(i32, -1055915743)); pub const WDSTPTMGMT_E_TFTP_VAR_WINDOW_NOT_SUPPORTED = @import("../zig.zig").typedConst(HRESULT, @as(i32, -1055915742)); pub const WDSTPTMGMT_E_INVALID_TFTP_MAX_BLOCKSIZE = @import("../zig.zig").typedConst(HRESULT, @as(i32, -1055915741)); pub const WdsCliFlagEnumFilterVersion = @as(i32, 1); pub const WdsCliFlagEnumFilterFirmware = @as(i32, 2); pub const WDS_LOG_TYPE_CLIENT_ERROR = @as(i32, 1); pub const WDS_LOG_TYPE_CLIENT_STARTED = @as(i32, 2); pub const WDS_LOG_TYPE_CLIENT_FINISHED = @as(i32, 3); pub const WDS_LOG_TYPE_CLIENT_IMAGE_SELECTED = @as(i32, 4); pub const WDS_LOG_TYPE_CLIENT_APPLY_STARTED = @as(i32, 5); pub const WDS_LOG_TYPE_CLIENT_APPLY_FINISHED = @as(i32, 6); pub const WDS_LOG_TYPE_CLIENT_GENERIC_MESSAGE = @as(i32, 7); pub const WDS_LOG_TYPE_CLIENT_UNATTEND_MODE = @as(i32, 8); pub const WDS_LOG_TYPE_CLIENT_TRANSFER_START = @as(i32, 9); pub const WDS_LOG_TYPE_CLIENT_TRANSFER_END = @as(i32, 10); pub const WDS_LOG_TYPE_CLIENT_TRANSFER_DOWNGRADE = @as(i32, 11); pub const WDS_LOG_TYPE_CLIENT_DOMAINJOINERROR = @as(i32, 12); pub const WDS_LOG_TYPE_CLIENT_POST_ACTIONS_START = @as(i32, 13); pub const WDS_LOG_TYPE_CLIENT_POST_ACTIONS_END = @as(i32, 14); pub const WDS_LOG_TYPE_CLIENT_APPLY_STARTED_2 = @as(i32, 15); pub const WDS_LOG_TYPE_CLIENT_APPLY_FINISHED_2 = @as(i32, 16); pub const WDS_LOG_TYPE_CLIENT_DOMAINJOINERROR_2 = @as(i32, 17); pub const WDS_LOG_TYPE_CLIENT_DRIVER_PACKAGE_NOT_ACCESSIBLE = @as(i32, 18); pub const WDS_LOG_TYPE_CLIENT_OFFLINE_DRIVER_INJECTION_START = @as(i32, 19); pub const WDS_LOG_TYPE_CLIENT_OFFLINE_DRIVER_INJECTION_END = @as(i32, 20); pub const WDS_LOG_TYPE_CLIENT_OFFLINE_DRIVER_INJECTION_FAILURE = @as(i32, 21); pub const WDS_LOG_TYPE_CLIENT_IMAGE_SELECTED2 = @as(i32, 22); pub const WDS_LOG_TYPE_CLIENT_IMAGE_SELECTED3 = @as(i32, 23); pub const WDS_LOG_TYPE_CLIENT_MAX_CODE = @as(i32, 24); pub const WDS_LOG_LEVEL_DISABLED = @as(i32, 0); pub const WDS_LOG_LEVEL_ERROR = @as(i32, 1); pub const WDS_LOG_LEVEL_WARNING = @as(i32, 2); pub const WDS_LOG_LEVEL_INFO = @as(i32, 3); //-------------------------------------------------------------------------------- // Section: Types (89) //-------------------------------------------------------------------------------- pub const CPU_ARCHITECTURE = enum(u32) { AMD64 = 9, IA64 = 6, INTEL = 0, }; pub const CPU_ARCHITECTURE_AMD64 = CPU_ARCHITECTURE.AMD64; pub const CPU_ARCHITECTURE_IA64 = CPU_ARCHITECTURE.IA64; pub const CPU_ARCHITECTURE_INTEL = CPU_ARCHITECTURE.INTEL; pub const PFN_WDS_CLI_CALLBACK_MESSAGE_ID = enum(u32) { START = 0, COMPLETE = 1, PROGRESS = 2, TEXT = 3, }; // TODO: enum 'PFN_WDS_CLI_CALLBACK_MESSAGE_ID' has known issues with its value aliases pub const WDS_TRANSPORTCLIENT_REQUEST_AUTH_LEVEL = enum(u32) { AUTH = 1, NO_AUTH = 2, }; pub const WDS_TRANSPORTCLIENT_AUTH = WDS_TRANSPORTCLIENT_REQUEST_AUTH_LEVEL.AUTH; pub const WDS_TRANSPORTCLIENT_NO_AUTH = WDS_TRANSPORTCLIENT_REQUEST_AUTH_LEVEL.NO_AUTH; pub const WDS_CLI_CRED = extern struct { pwszUserName: ?[*:0]const u16, pwszDomain: ?[*:0]const u16, pwszPassword: ?[*:0]const u16, }; pub const PFN_WdsCliTraceFunction = switch (@import("builtin").zig_backend) { .stage1 => fn ( pwszFormat: ?[*:0]const u16, Params: ?*i8, ) callconv(@import("std").os.windows.WINAPI) void, else => *const fn ( pwszFormat: ?[*:0]const u16, Params: ?*i8, ) callconv(@import("std").os.windows.WINAPI) void, }; pub const WDS_CLI_IMAGE_TYPE = enum(i32) { UNKNOWN = 0, WIM = 1, VHD = 2, VHDX = 3, }; pub const WDS_CLI_IMAGE_TYPE_UNKNOWN = WDS_CLI_IMAGE_TYPE.UNKNOWN; pub const WDS_CLI_IMAGE_TYPE_WIM = WDS_CLI_IMAGE_TYPE.WIM; pub const WDS_CLI_IMAGE_TYPE_VHD = WDS_CLI_IMAGE_TYPE.VHD; pub const WDS_CLI_IMAGE_TYPE_VHDX = WDS_CLI_IMAGE_TYPE.VHDX; pub const WDS_CLI_FIRMWARE_TYPE = enum(i32) { UNKNOWN = 0, BIOS = 1, EFI = 2, }; pub const WDS_CLI_FIRMWARE_UNKNOWN = WDS_CLI_FIRMWARE_TYPE.UNKNOWN; pub const WDS_CLI_FIRMWARE_BIOS = WDS_CLI_FIRMWARE_TYPE.BIOS; pub const WDS_CLI_FIRMWARE_EFI = WDS_CLI_FIRMWARE_TYPE.EFI; pub const WDS_CLI_IMAGE_PARAM_TYPE = enum(i32) { UNKNOWN = 0, SPARSE_FILE = 1, SUPPORTED_FIRMWARES = 2, }; pub const WDS_CLI_IMAGE_PARAM_UNKNOWN = WDS_CLI_IMAGE_PARAM_TYPE.UNKNOWN; pub const WDS_CLI_IMAGE_PARAM_SPARSE_FILE = WDS_CLI_IMAGE_PARAM_TYPE.SPARSE_FILE; pub const WDS_CLI_IMAGE_PARAM_SUPPORTED_FIRMWARES = WDS_CLI_IMAGE_PARAM_TYPE.SUPPORTED_FIRMWARES; pub const PFN_WdsCliCallback = switch (@import("builtin").zig_backend) { .stage1 => fn ( dwMessageId: PFN_WDS_CLI_CALLBACK_MESSAGE_ID, wParam: WPARAM, lParam: LPARAM, pvUserData: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) void, else => *const fn ( dwMessageId: PFN_WDS_CLI_CALLBACK_MESSAGE_ID, wParam: WPARAM, lParam: LPARAM, pvUserData: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) void, }; pub const PXE_DHCP_OPTION = extern struct { OptionType: u8, OptionLength: u8, OptionValue: [1]u8, }; pub const PXE_DHCP_MESSAGE = extern struct { Operation: u8 align(1), HardwareAddressType: u8 align(1), HardwareAddressLength: u8 align(1), HopCount: u8 align(1), TransactionID: u32 align(1), SecondsSinceBoot: u16 align(1), Reserved: u16 align(1), ClientIpAddress: u32 align(1), YourIpAddress: u32 align(1), BootstrapServerAddress: u32 align(1), RelayAgentIpAddress: u32 align(1), HardwareAddress: [16]u8 align(1), HostName: [64]u8 align(1), BootFileName: [128]u8 align(1), Anonymous: extern union { bMagicCookie: [4]u8 align(1), uMagicCookie: u32 align(1), } align(1), Option: PXE_DHCP_OPTION align(1), }; pub const PXE_DHCPV6_OPTION = extern struct { OptionCode: u16 align(1), DataLength: u16 align(1), Data: [1]u8 align(1), }; pub const PXE_DHCPV6_MESSAGE_HEADER = extern struct { MessageType: u8, Message: [1]u8, }; pub const PXE_DHCPV6_MESSAGE = extern struct { MessageType: u8, TransactionIDByte1: u8, TransactionIDByte2: u8, TransactionIDByte3: u8, Options: [1]PXE_DHCPV6_OPTION, }; pub const PXE_DHCPV6_RELAY_MESSAGE = extern struct { MessageType: u8, HopCount: u8, LinkAddress: [16]u8, PeerAddress: [16]u8, Options: [1]PXE_DHCPV6_OPTION, }; pub const PXE_PROVIDER = extern struct { uSizeOfStruct: u32, pwszName: ?PWSTR, pwszFilePath: ?PWSTR, bIsCritical: BOOL, uIndex: u32, }; pub const PXE_ADDRESS = extern struct { uFlags: u32, Anonymous: extern union { bAddress: [16]u8, uIpAddress: u32, }, uAddrLen: u32, uPort: u16, }; pub const PXE_DHCPV6_NESTED_RELAY_MESSAGE = extern struct { pRelayMessage: ?*PXE_DHCPV6_RELAY_MESSAGE, cbRelayMessage: u32, pInterfaceIdOption: ?*anyopaque, cbInterfaceIdOption: u16, }; pub const TRANSPORTPROVIDER_CALLBACK_ID = enum(i32) { CREATE_INSTANCE = 0, COMPARE_CONTENT = 1, OPEN_CONTENT = 2, USER_ACCESS_CHECK = 3, GET_CONTENT_SIZE = 4, READ_CONTENT = 5, CLOSE_CONTENT = 6, CLOSE_INSTANCE = 7, SHUTDOWN = 8, DUMP_STATE = 9, REFRESH_SETTINGS = 10, GET_CONTENT_METADATA = 11, MAX_CALLBACKS = 12, }; pub const WDS_TRANSPORTPROVIDER_CREATE_INSTANCE = TRANSPORTPROVIDER_CALLBACK_ID.CREATE_INSTANCE; pub const WDS_TRANSPORTPROVIDER_COMPARE_CONTENT = TRANSPORTPROVIDER_CALLBACK_ID.COMPARE_CONTENT; pub const WDS_TRANSPORTPROVIDER_OPEN_CONTENT = TRANSPORTPROVIDER_CALLBACK_ID.OPEN_CONTENT; pub const WDS_TRANSPORTPROVIDER_USER_ACCESS_CHECK = TRANSPORTPROVIDER_CALLBACK_ID.USER_ACCESS_CHECK; pub const WDS_TRANSPORTPROVIDER_GET_CONTENT_SIZE = TRANSPORTPROVIDER_CALLBACK_ID.GET_CONTENT_SIZE; pub const WDS_TRANSPORTPROVIDER_READ_CONTENT = TRANSPORTPROVIDER_CALLBACK_ID.READ_CONTENT; pub const WDS_TRANSPORTPROVIDER_CLOSE_CONTENT = TRANSPORTPROVIDER_CALLBACK_ID.CLOSE_CONTENT; pub const WDS_TRANSPORTPROVIDER_CLOSE_INSTANCE = TRANSPORTPROVIDER_CALLBACK_ID.CLOSE_INSTANCE; pub const WDS_TRANSPORTPROVIDER_SHUTDOWN = TRANSPORTPROVIDER_CALLBACK_ID.SHUTDOWN; pub const WDS_TRANSPORTPROVIDER_DUMP_STATE = TRANSPORTPROVIDER_CALLBACK_ID.DUMP_STATE; pub const WDS_TRANSPORTPROVIDER_REFRESH_SETTINGS = TRANSPORTPROVIDER_CALLBACK_ID.REFRESH_SETTINGS; pub const WDS_TRANSPORTPROVIDER_GET_CONTENT_METADATA = TRANSPORTPROVIDER_CALLBACK_ID.GET_CONTENT_METADATA; pub const WDS_TRANSPORTPROVIDER_MAX_CALLBACKS = TRANSPORTPROVIDER_CALLBACK_ID.MAX_CALLBACKS; pub const WDS_TRANSPORTPROVIDER_INIT_PARAMS = extern struct { ulLength: u32, ulMcServerVersion: u32, hRegistryKey: ?HKEY, hProvider: ?HANDLE, }; pub const WDS_TRANSPORTPROVIDER_SETTINGS = extern struct { ulLength: u32, ulProviderVersion: u32, }; pub const TRANSPORTCLIENT_CALLBACK_ID = enum(i32) { SESSION_START = 0, RECEIVE_CONTENTS = 1, SESSION_COMPLETE = 2, RECEIVE_METADATA = 3, SESSION_STARTEX = 4, SESSION_NEGOTIATE = 5, MAX_CALLBACKS = 6, }; pub const WDS_TRANSPORTCLIENT_SESSION_START = TRANSPORTCLIENT_CALLBACK_ID.SESSION_START; pub const WDS_TRANSPORTCLIENT_RECEIVE_CONTENTS = TRANSPORTCLIENT_CALLBACK_ID.RECEIVE_CONTENTS; pub const WDS_TRANSPORTCLIENT_SESSION_COMPLETE = TRANSPORTCLIENT_CALLBACK_ID.SESSION_COMPLETE; pub const WDS_TRANSPORTCLIENT_RECEIVE_METADATA = TRANSPORTCLIENT_CALLBACK_ID.RECEIVE_METADATA; pub const WDS_TRANSPORTCLIENT_SESSION_STARTEX = TRANSPORTCLIENT_CALLBACK_ID.SESSION_STARTEX; pub const WDS_TRANSPORTCLIENT_SESSION_NEGOTIATE = TRANSPORTCLIENT_CALLBACK_ID.SESSION_NEGOTIATE; pub const WDS_TRANSPORTCLIENT_MAX_CALLBACKS = TRANSPORTCLIENT_CALLBACK_ID.MAX_CALLBACKS; pub const TRANSPORTCLIENT_SESSION_INFO = extern struct { ulStructureLength: u32, ullFileSize: ULARGE_INTEGER, ulBlockSize: u32, }; pub const PFN_WdsTransportClientSessionStart = switch (@import("builtin").zig_backend) { .stage1 => fn ( hSessionKey: ?HANDLE, pCallerData: ?*anyopaque, ullFileSize: ?*ULARGE_INTEGER, ) callconv(@import("std").os.windows.WINAPI) void, else => *const fn ( hSessionKey: ?HANDLE, pCallerData: ?*anyopaque, ullFileSize: ?*ULARGE_INTEGER, ) callconv(@import("std").os.windows.WINAPI) void, }; pub const PFN_WdsTransportClientSessionStartEx = switch (@import("builtin").zig_backend) { .stage1 => fn ( hSessionKey: ?HANDLE, pCallerData: ?*anyopaque, Info: ?*TRANSPORTCLIENT_SESSION_INFO, ) callconv(@import("std").os.windows.WINAPI) void, else => *const fn ( hSessionKey: ?HANDLE, pCallerData: ?*anyopaque, Info: ?*TRANSPORTCLIENT_SESSION_INFO, ) callconv(@import("std").os.windows.WINAPI) void, }; pub const PFN_WdsTransportClientReceiveMetadata = switch (@import("builtin").zig_backend) { .stage1 => fn ( hSessionKey: ?HANDLE, pCallerData: ?*anyopaque, // TODO: what to do with BytesParamIndex 3? pMetadata: ?*anyopaque, ulSize: u32, ) callconv(@import("std").os.windows.WINAPI) void, else => *const fn ( hSessionKey: ?HANDLE, pCallerData: ?*anyopaque, // TODO: what to do with BytesParamIndex 3? pMetadata: ?*anyopaque, ulSize: u32, ) callconv(@import("std").os.windows.WINAPI) void, }; pub const PFN_WdsTransportClientReceiveContents = switch (@import("builtin").zig_backend) { .stage1 => fn ( hSessionKey: ?HANDLE, pCallerData: ?*anyopaque, // TODO: what to do with BytesParamIndex 3? pContents: ?*anyopaque, ulSize: u32, pullContentOffset: ?*ULARGE_INTEGER, ) callconv(@import("std").os.windows.WINAPI) void, else => *const fn ( hSessionKey: ?HANDLE, pCallerData: ?*anyopaque, // TODO: what to do with BytesParamIndex 3? pContents: ?*anyopaque, ulSize: u32, pullContentOffset: ?*ULARGE_INTEGER, ) callconv(@import("std").os.windows.WINAPI) void, }; pub const PFN_WdsTransportClientSessionComplete = switch (@import("builtin").zig_backend) { .stage1 => fn ( hSessionKey: ?HANDLE, pCallerData: ?*anyopaque, dwError: u32, ) callconv(@import("std").os.windows.WINAPI) void, else => *const fn ( hSessionKey: ?HANDLE, pCallerData: ?*anyopaque, dwError: u32, ) callconv(@import("std").os.windows.WINAPI) void, }; pub const PFN_WdsTransportClientSessionNegotiate = switch (@import("builtin").zig_backend) { .stage1 => fn ( hSessionKey: ?HANDLE, pCallerData: ?*anyopaque, pInfo: ?*TRANSPORTCLIENT_SESSION_INFO, hNegotiateKey: ?HANDLE, ) callconv(@import("std").os.windows.WINAPI) void, else => *const fn ( hSessionKey: ?HANDLE, pCallerData: ?*anyopaque, pInfo: ?*TRANSPORTCLIENT_SESSION_INFO, hNegotiateKey: ?HANDLE, ) callconv(@import("std").os.windows.WINAPI) void, }; pub const WDS_TRANSPORTCLIENT_REQUEST = extern struct { ulLength: u32, ulApiVersion: u32, ulAuthLevel: WDS_TRANSPORTCLIENT_REQUEST_AUTH_LEVEL, pwszServer: ?[*:0]const u16, pwszNamespace: ?[*:0]const u16, pwszObjectName: ?[*:0]const u16, ulCacheSize: u32, ulProtocol: u32, pvProtocolData: ?*anyopaque, ulProtocolDataLength: u32, }; pub const WDS_TRANSPORTCLIENT_CALLBACKS = extern struct { SessionStart: ?PFN_WdsTransportClientSessionStart, SessionStartEx: ?PFN_WdsTransportClientSessionStartEx, ReceiveContents: ?PFN_WdsTransportClientReceiveContents, ReceiveMetadata: ?PFN_WdsTransportClientReceiveMetadata, SessionComplete: ?PFN_WdsTransportClientSessionComplete, SessionNegotiate: ?PFN_WdsTransportClientSessionNegotiate, }; const CLSID_WdsTransportCacheable_Value = Guid.initString("70590b16-f146-46bd-bd9d-4aaa90084bf5"); pub const CLSID_WdsTransportCacheable = &CLSID_WdsTransportCacheable_Value; const CLSID_WdsTransportCollection_Value = Guid.initString("c7f18b09-391e-436e-b10b-c3ef46f2c34f"); pub const CLSID_WdsTransportCollection = &CLSID_WdsTransportCollection_Value; const CLSID_WdsTransportManager_Value = Guid.initString("f21523f6-837c-4a58-af99-8a7e27f8ff59"); pub const CLSID_WdsTransportManager = &CLSID_WdsTransportManager_Value; const CLSID_WdsTransportServer_Value = Guid.initString("ea19b643-4adf-4413-942c-14f379118760"); pub const CLSID_WdsTransportServer = &CLSID_WdsTransportServer_Value; const CLSID_WdsTransportSetupManager_Value = Guid.initString("c7beeaad-9f04-4923-9f0c-fbf52bc7590f"); pub const CLSID_WdsTransportSetupManager = &CLSID_WdsTransportSetupManager_Value; const CLSID_WdsTransportConfigurationManager_Value = Guid.initString("8743f674-904c-47ca-8512-35fe98f6b0ac"); pub const CLSID_WdsTransportConfigurationManager = &CLSID_WdsTransportConfigurationManager_Value; const CLSID_WdsTransportNamespaceManager_Value = Guid.initString("f08cdb63-85de-4a28-a1a9-5ca3e7efda73"); pub const CLSID_WdsTransportNamespaceManager = &CLSID_WdsTransportNamespaceManager_Value; const CLSID_WdsTransportServicePolicy_Value = Guid.initString("65aceadc-2f0b-4f43-9f4d-811865d8cead"); pub const CLSID_WdsTransportServicePolicy = &CLSID_WdsTransportServicePolicy_Value; const CLSID_WdsTransportDiagnosticsPolicy_Value = Guid.initString("eb3333e1-a7ad-46f5-80d6-6b740204e509"); pub const CLSID_WdsTransportDiagnosticsPolicy = &CLSID_WdsTransportDiagnosticsPolicy_Value; const CLSID_WdsTransportMulticastSessionPolicy_Value = Guid.initString("3c6bc3f4-6418-472a-b6f1-52d457195437"); pub const CLSID_WdsTransportMulticastSessionPolicy = &CLSID_WdsTransportMulticastSessionPolicy_Value; const CLSID_WdsTransportNamespace_Value = Guid.initString("d8385768-0732-4ec1-95ea-16da581908a1"); pub const CLSID_WdsTransportNamespace = &CLSID_WdsTransportNamespace_Value; const CLSID_WdsTransportNamespaceAutoCast_Value = Guid.initString("b091f5a8-6a99-478d-b23b-09e8fee04574"); pub const CLSID_WdsTransportNamespaceAutoCast = &CLSID_WdsTransportNamespaceAutoCast_Value; const CLSID_WdsTransportNamespaceScheduledCast_Value = Guid.initString("badc1897-7025-44eb-9108-fb61c4055792"); pub const CLSID_WdsTransportNamespaceScheduledCast = &CLSID_WdsTransportNamespaceScheduledCast_Value; const CLSID_WdsTransportNamespaceScheduledCastManualStart_Value = Guid.initString("d3e1a2aa-caac-460e-b98a-47f9f318a1fa"); pub const CLSID_WdsTransportNamespaceScheduledCastManualStart = &CLSID_WdsTransportNamespaceScheduledCastManualStart_Value; const CLSID_WdsTransportNamespaceScheduledCastAutoStart_Value = Guid.initString("a1107052-122c-4b81-9b7c-386e6855383f"); pub const CLSID_WdsTransportNamespaceScheduledCastAutoStart = &CLSID_WdsTransportNamespaceScheduledCastAutoStart_Value; const CLSID_WdsTransportContent_Value = Guid.initString("0a891fe7-4a3f-4c65-b6f2-1467619679ea"); pub const CLSID_WdsTransportContent = &CLSID_WdsTransportContent_Value; const CLSID_WdsTransportSession_Value = Guid.initString("749ac4e0-67bc-4743-bfe5-cacb1f26f57f"); pub const CLSID_WdsTransportSession = &CLSID_WdsTransportSession_Value; const CLSID_WdsTransportClient_Value = Guid.initString("66d2c5e9-0ff6-49ec-9733-dafb1e01df1c"); pub const CLSID_WdsTransportClient = &CLSID_WdsTransportClient_Value; const CLSID_WdsTransportTftpClient_Value = Guid.initString("50343925-7c5c-4c8c-96c4-ad9fa5005fba"); pub const CLSID_WdsTransportTftpClient = &CLSID_WdsTransportTftpClient_Value; const CLSID_WdsTransportTftpManager_Value = Guid.initString("c8e9dca2-3241-4e4d-b806-bc74019dfeda"); pub const CLSID_WdsTransportTftpManager = &CLSID_WdsTransportTftpManager_Value; const CLSID_WdsTransportContentProvider_Value = Guid.initString("e0be741f-5a75-4eb9-8a2d-5e189b45f327"); pub const CLSID_WdsTransportContentProvider = &CLSID_WdsTransportContentProvider_Value; pub const WDSTRANSPORT_FEATURE_FLAGS = enum(i32) { AdminPack = 1, TransportServer = 2, DeploymentServer = 4, }; pub const WdsTptFeatureAdminPack = WDSTRANSPORT_FEATURE_FLAGS.AdminPack; pub const WdsTptFeatureTransportServer = WDSTRANSPORT_FEATURE_FLAGS.TransportServer; pub const WdsTptFeatureDeploymentServer = WDSTRANSPORT_FEATURE_FLAGS.DeploymentServer; pub const WDSTRANSPORT_PROTOCOL_FLAGS = enum(i32) { Unicast = 1, Multicast = 2, }; pub const WdsTptProtocolUnicast = WDSTRANSPORT_PROTOCOL_FLAGS.Unicast; pub const WdsTptProtocolMulticast = WDSTRANSPORT_PROTOCOL_FLAGS.Multicast; pub const WDSTRANSPORT_NAMESPACE_TYPE = enum(i32) { Unknown = 0, AutoCast = 1, ScheduledCastManualStart = 2, ScheduledCastAutoStart = 3, }; pub const WdsTptNamespaceTypeUnknown = WDSTRANSPORT_NAMESPACE_TYPE.Unknown; pub const WdsTptNamespaceTypeAutoCast = WDSTRANSPORT_NAMESPACE_TYPE.AutoCast; pub const WdsTptNamespaceTypeScheduledCastManualStart = WDSTRANSPORT_NAMESPACE_TYPE.ScheduledCastManualStart; pub const WdsTptNamespaceTypeScheduledCastAutoStart = WDSTRANSPORT_NAMESPACE_TYPE.ScheduledCastAutoStart; pub const WDSTRANSPORT_DISCONNECT_TYPE = enum(i32) { Unknown = 0, Fallback = 1, Abort = 2, }; pub const WdsTptDisconnectUnknown = WDSTRANSPORT_DISCONNECT_TYPE.Unknown; pub const WdsTptDisconnectFallback = WDSTRANSPORT_DISCONNECT_TYPE.Fallback; pub const WdsTptDisconnectAbort = WDSTRANSPORT_DISCONNECT_TYPE.Abort; pub const WDSTRANSPORT_SERVICE_NOTIFICATION = enum(i32) { Unknown = 0, ReadSettings = 1, }; pub const WdsTptServiceNotifyUnknown = WDSTRANSPORT_SERVICE_NOTIFICATION.Unknown; pub const WdsTptServiceNotifyReadSettings = WDSTRANSPORT_SERVICE_NOTIFICATION.ReadSettings; pub const WDSTRANSPORT_IP_ADDRESS_TYPE = enum(i32) { Unknown = 0, Ipv4 = 1, Ipv6 = 2, }; pub const WdsTptIpAddressUnknown = WDSTRANSPORT_IP_ADDRESS_TYPE.Unknown; pub const WdsTptIpAddressIpv4 = WDSTRANSPORT_IP_ADDRESS_TYPE.Ipv4; pub const WdsTptIpAddressIpv6 = WDSTRANSPORT_IP_ADDRESS_TYPE.Ipv6; pub const WDSTRANSPORT_IP_ADDRESS_SOURCE_TYPE = enum(i32) { Unknown = 0, Dhcp = 1, Range = 2, }; pub const WdsTptIpAddressSourceUnknown = WDSTRANSPORT_IP_ADDRESS_SOURCE_TYPE.Unknown; pub const WdsTptIpAddressSourceDhcp = WDSTRANSPORT_IP_ADDRESS_SOURCE_TYPE.Dhcp; pub const WdsTptIpAddressSourceRange = WDSTRANSPORT_IP_ADDRESS_SOURCE_TYPE.Range; pub const WDSTRANSPORT_NETWORK_PROFILE_TYPE = enum(i32) { Unknown = 0, Custom = 1, @"10Mbps" = 2, @"100Mbps" = 3, @"1Gbps" = 4, }; pub const WdsTptNetworkProfileUnknown = WDSTRANSPORT_NETWORK_PROFILE_TYPE.Unknown; pub const WdsTptNetworkProfileCustom = WDSTRANSPORT_NETWORK_PROFILE_TYPE.Custom; pub const WdsTptNetworkProfile10Mbps = WDSTRANSPORT_NETWORK_PROFILE_TYPE.@"10Mbps"; pub const WdsTptNetworkProfile100Mbps = WDSTRANSPORT_NETWORK_PROFILE_TYPE.@"100Mbps"; pub const WdsTptNetworkProfile1Gbps = WDSTRANSPORT_NETWORK_PROFILE_TYPE.@"1Gbps"; pub const WDSTRANSPORT_DIAGNOSTICS_COMPONENT_FLAGS = enum(i32) { Pxe = 1, Tftp = 2, ImageServer = 4, Multicast = 8, }; pub const WdsTptDiagnosticsComponentPxe = WDSTRANSPORT_DIAGNOSTICS_COMPONENT_FLAGS.Pxe; pub const WdsTptDiagnosticsComponentTftp = WDSTRANSPORT_DIAGNOSTICS_COMPONENT_FLAGS.Tftp; pub const WdsTptDiagnosticsComponentImageServer = WDSTRANSPORT_DIAGNOSTICS_COMPONENT_FLAGS.ImageServer; pub const WdsTptDiagnosticsComponentMulticast = WDSTRANSPORT_DIAGNOSTICS_COMPONENT_FLAGS.Multicast; pub const WDSTRANSPORT_SLOW_CLIENT_HANDLING_TYPE = enum(i32) { Unknown = 0, None = 1, AutoDisconnect = 2, Multistream = 3, }; pub const WdsTptSlowClientHandlingUnknown = WDSTRANSPORT_SLOW_CLIENT_HANDLING_TYPE.Unknown; pub const WdsTptSlowClientHandlingNone = WDSTRANSPORT_SLOW_CLIENT_HANDLING_TYPE.None; pub const WdsTptSlowClientHandlingAutoDisconnect = WDSTRANSPORT_SLOW_CLIENT_HANDLING_TYPE.AutoDisconnect; pub const WdsTptSlowClientHandlingMultistream = WDSTRANSPORT_SLOW_CLIENT_HANDLING_TYPE.Multistream; pub const WDSTRANSPORT_UDP_PORT_POLICY = enum(i32) { Dynamic = 0, Fixed = 1, }; pub const WdsTptUdpPortPolicyDynamic = WDSTRANSPORT_UDP_PORT_POLICY.Dynamic; pub const WdsTptUdpPortPolicyFixed = WDSTRANSPORT_UDP_PORT_POLICY.Fixed; pub const WDSTRANSPORT_TFTP_CAPABILITY = enum(i32) { MaximumBlockSize = 1, VariableWindow = 2, }; pub const WdsTptTftpCapMaximumBlockSize = WDSTRANSPORT_TFTP_CAPABILITY.MaximumBlockSize; pub const WdsTptTftpCapVariableWindow = WDSTRANSPORT_TFTP_CAPABILITY.VariableWindow; // TODO: this type is limited to platform 'windowsServer2008' const IID_IWdsTransportCacheable_Value = Guid.initString("46ad894b-0bab-47dc-84b2-7b553f1d8f80"); pub const IID_IWdsTransportCacheable = &IID_IWdsTransportCacheable_Value; pub const IWdsTransportCacheable = extern struct { pub const VTable = extern struct { base: IDispatch.VTable, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Dirty: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IWdsTransportCacheable, pbDirty: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IWdsTransportCacheable, pbDirty: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Discard: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IWdsTransportCacheable, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IWdsTransportCacheable, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Refresh: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IWdsTransportCacheable, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IWdsTransportCacheable, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Commit: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IWdsTransportCacheable, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IWdsTransportCacheable, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IDispatch.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWdsTransportCacheable_get_Dirty(self: *const T, pbDirty: ?*i16) HRESULT { return @as(*const IWdsTransportCacheable.VTable, @ptrCast(self.vtable)).get_Dirty(@as(*const IWdsTransportCacheable, @ptrCast(self)), pbDirty); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWdsTransportCacheable_Discard(self: *const T) HRESULT { return @as(*const IWdsTransportCacheable.VTable, @ptrCast(self.vtable)).Discard(@as(*const IWdsTransportCacheable, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWdsTransportCacheable_Refresh(self: *const T) HRESULT { return @as(*const IWdsTransportCacheable.VTable, @ptrCast(self.vtable)).Refresh(@as(*const IWdsTransportCacheable, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWdsTransportCacheable_Commit(self: *const T) HRESULT { return @as(*const IWdsTransportCacheable.VTable, @ptrCast(self.vtable)).Commit(@as(*const IWdsTransportCacheable, @ptrCast(self))); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windowsServer2008' const IID_IWdsTransportCollection_Value = Guid.initString("b8ba4b1a-2ff4-43ab-996c-b2b10a91a6eb"); pub const IID_IWdsTransportCollection = &IID_IWdsTransportCollection_Value; pub const IWdsTransportCollection = extern struct { pub const VTable = extern struct { base: IDispatch.VTable, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Count: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IWdsTransportCollection, pulCount: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IWdsTransportCollection, pulCount: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Item: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IWdsTransportCollection, ulIndex: u32, ppVal: ?*?*IDispatch, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IWdsTransportCollection, ulIndex: u32, ppVal: ?*?*IDispatch, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get__NewEnum: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IWdsTransportCollection, ppVal: ?*?*IUnknown, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IWdsTransportCollection, ppVal: ?*?*IUnknown, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IDispatch.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWdsTransportCollection_get_Count(self: *const T, pulCount: ?*u32) HRESULT { return @as(*const IWdsTransportCollection.VTable, @ptrCast(self.vtable)).get_Count(@as(*const IWdsTransportCollection, @ptrCast(self)), pulCount); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWdsTransportCollection_get_Item(self: *const T, ulIndex: u32, ppVal: ?*?*IDispatch) HRESULT { return @as(*const IWdsTransportCollection.VTable, @ptrCast(self.vtable)).get_Item(@as(*const IWdsTransportCollection, @ptrCast(self)), ulIndex, ppVal); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWdsTransportCollection_get__NewEnum(self: *const T, ppVal: ?*?*IUnknown) HRESULT { return @as(*const IWdsTransportCollection.VTable, @ptrCast(self.vtable)).get__NewEnum(@as(*const IWdsTransportCollection, @ptrCast(self)), ppVal); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windowsServer2008' const IID_IWdsTransportManager_Value = Guid.initString("5b0d35f5-1b13-4afd-b878-6526dc340b5d"); pub const IID_IWdsTransportManager = &IID_IWdsTransportManager_Value; pub const IWdsTransportManager = extern struct { pub const VTable = extern struct { base: IDispatch.VTable, GetWdsTransportServer: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IWdsTransportManager, bszServerName: ?BSTR, ppWdsTransportServer: ?*?*IWdsTransportServer, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IWdsTransportManager, bszServerName: ?BSTR, ppWdsTransportServer: ?*?*IWdsTransportServer, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IDispatch.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWdsTransportManager_GetWdsTransportServer(self: *const T, bszServerName: ?BSTR, ppWdsTransportServer: ?*?*IWdsTransportServer) HRESULT { return @as(*const IWdsTransportManager.VTable, @ptrCast(self.vtable)).GetWdsTransportServer(@as(*const IWdsTransportManager, @ptrCast(self)), bszServerName, ppWdsTransportServer); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windowsServer2008' const IID_IWdsTransportServer_Value = Guid.initString("09ccd093-830d-4344-a30a-73ae8e8fca90"); pub const IID_IWdsTransportServer = &IID_IWdsTransportServer_Value; pub const IWdsTransportServer = extern struct { pub const VTable = extern struct { base: IDispatch.VTable, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Name: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IWdsTransportServer, pbszName: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IWdsTransportServer, pbszName: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_SetupManager: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IWdsTransportServer, ppWdsTransportSetupManager: ?*?*IWdsTransportSetupManager, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IWdsTransportServer, ppWdsTransportSetupManager: ?*?*IWdsTransportSetupManager, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_ConfigurationManager: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IWdsTransportServer, ppWdsTransportConfigurationManager: ?*?*IWdsTransportConfigurationManager, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IWdsTransportServer, ppWdsTransportConfigurationManager: ?*?*IWdsTransportConfigurationManager, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_NamespaceManager: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IWdsTransportServer, ppWdsTransportNamespaceManager: ?*?*IWdsTransportNamespaceManager, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IWdsTransportServer, ppWdsTransportNamespaceManager: ?*?*IWdsTransportNamespaceManager, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, DisconnectClient: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IWdsTransportServer, ulClientId: u32, DisconnectionType: WDSTRANSPORT_DISCONNECT_TYPE, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IWdsTransportServer, ulClientId: u32, DisconnectionType: WDSTRANSPORT_DISCONNECT_TYPE, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IDispatch.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWdsTransportServer_get_Name(self: *const T, pbszName: ?*?BSTR) HRESULT { return @as(*const IWdsTransportServer.VTable, @ptrCast(self.vtable)).get_Name(@as(*const IWdsTransportServer, @ptrCast(self)), pbszName); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWdsTransportServer_get_SetupManager(self: *const T, ppWdsTransportSetupManager: ?*?*IWdsTransportSetupManager) HRESULT { return @as(*const IWdsTransportServer.VTable, @ptrCast(self.vtable)).get_SetupManager(@as(*const IWdsTransportServer, @ptrCast(self)), ppWdsTransportSetupManager); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWdsTransportServer_get_ConfigurationManager(self: *const T, ppWdsTransportConfigurationManager: ?*?*IWdsTransportConfigurationManager) HRESULT { return @as(*const IWdsTransportServer.VTable, @ptrCast(self.vtable)).get_ConfigurationManager(@as(*const IWdsTransportServer, @ptrCast(self)), ppWdsTransportConfigurationManager); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWdsTransportServer_get_NamespaceManager(self: *const T, ppWdsTransportNamespaceManager: ?*?*IWdsTransportNamespaceManager) HRESULT { return @as(*const IWdsTransportServer.VTable, @ptrCast(self.vtable)).get_NamespaceManager(@as(*const IWdsTransportServer, @ptrCast(self)), ppWdsTransportNamespaceManager); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWdsTransportServer_DisconnectClient(self: *const T, ulClientId: u32, DisconnectionType: WDSTRANSPORT_DISCONNECT_TYPE) HRESULT { return @as(*const IWdsTransportServer.VTable, @ptrCast(self.vtable)).DisconnectClient(@as(*const IWdsTransportServer, @ptrCast(self)), ulClientId, DisconnectionType); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windowsServer2012' const IID_IWdsTransportServer2_Value = Guid.initString("256e999f-6df4-4538-81b9-857b9ab8fb47"); pub const IID_IWdsTransportServer2 = &IID_IWdsTransportServer2_Value; pub const IWdsTransportServer2 = extern struct { pub const VTable = extern struct { base: IWdsTransportServer.VTable, // TODO: this function has a "SpecialName", should Zig do anything with this? get_TftpManager: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IWdsTransportServer2, ppWdsTransportTftpManager: ?*?*IWdsTransportTftpManager, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IWdsTransportServer2, ppWdsTransportTftpManager: ?*?*IWdsTransportTftpManager, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IWdsTransportServer.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWdsTransportServer2_get_TftpManager(self: *const T, ppWdsTransportTftpManager: ?*?*IWdsTransportTftpManager) HRESULT { return @as(*const IWdsTransportServer2.VTable, @ptrCast(self.vtable)).get_TftpManager(@as(*const IWdsTransportServer2, @ptrCast(self)), ppWdsTransportTftpManager); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windowsServer2008' const IID_IWdsTransportSetupManager_Value = Guid.initString("f7238425-efa8-40a4-aef9-c98d969c0b75"); pub const IID_IWdsTransportSetupManager = &IID_IWdsTransportSetupManager_Value; pub const IWdsTransportSetupManager = extern struct { pub const VTable = extern struct { base: IDispatch.VTable, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Version: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IWdsTransportSetupManager, pullVersion: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IWdsTransportSetupManager, pullVersion: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_InstalledFeatures: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IWdsTransportSetupManager, pulInstalledFeatures: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IWdsTransportSetupManager, pulInstalledFeatures: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Protocols: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IWdsTransportSetupManager, pulProtocols: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IWdsTransportSetupManager, pulProtocols: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, RegisterContentProvider: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IWdsTransportSetupManager, bszName: ?BSTR, bszDescription: ?BSTR, bszFilePath: ?BSTR, bszInitializationRoutine: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IWdsTransportSetupManager, bszName: ?BSTR, bszDescription: ?BSTR, bszFilePath: ?BSTR, bszInitializationRoutine: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, DeregisterContentProvider: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IWdsTransportSetupManager, bszName: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IWdsTransportSetupManager, bszName: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IDispatch.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWdsTransportSetupManager_get_Version(self: *const T, pullVersion: ?*u64) HRESULT { return @as(*const IWdsTransportSetupManager.VTable, @ptrCast(self.vtable)).get_Version(@as(*const IWdsTransportSetupManager, @ptrCast(self)), pullVersion); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWdsTransportSetupManager_get_InstalledFeatures(self: *const T, pulInstalledFeatures: ?*u32) HRESULT { return @as(*const IWdsTransportSetupManager.VTable, @ptrCast(self.vtable)).get_InstalledFeatures(@as(*const IWdsTransportSetupManager, @ptrCast(self)), pulInstalledFeatures); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWdsTransportSetupManager_get_Protocols(self: *const T, pulProtocols: ?*u32) HRESULT { return @as(*const IWdsTransportSetupManager.VTable, @ptrCast(self.vtable)).get_Protocols(@as(*const IWdsTransportSetupManager, @ptrCast(self)), pulProtocols); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWdsTransportSetupManager_RegisterContentProvider(self: *const T, bszName: ?BSTR, bszDescription: ?BSTR, bszFilePath: ?BSTR, bszInitializationRoutine: ?BSTR) HRESULT { return @as(*const IWdsTransportSetupManager.VTable, @ptrCast(self.vtable)).RegisterContentProvider(@as(*const IWdsTransportSetupManager, @ptrCast(self)), bszName, bszDescription, bszFilePath, bszInitializationRoutine); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWdsTransportSetupManager_DeregisterContentProvider(self: *const T, bszName: ?BSTR) HRESULT { return @as(*const IWdsTransportSetupManager.VTable, @ptrCast(self.vtable)).DeregisterContentProvider(@as(*const IWdsTransportSetupManager, @ptrCast(self)), bszName); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windowsServer2012' const IID_IWdsTransportSetupManager2_Value = Guid.initString("02be79da-7e9e-4366-8b6e-2aa9a91be47f"); pub const IID_IWdsTransportSetupManager2 = &IID_IWdsTransportSetupManager2_Value; pub const IWdsTransportSetupManager2 = extern struct { pub const VTable = extern struct { base: IWdsTransportSetupManager.VTable, // TODO: this function has a "SpecialName", should Zig do anything with this? get_TftpCapabilities: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IWdsTransportSetupManager2, pulTftpCapabilities: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IWdsTransportSetupManager2, pulTftpCapabilities: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_ContentProviders: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IWdsTransportSetupManager2, ppProviderCollection: ?*?*IWdsTransportCollection, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IWdsTransportSetupManager2, ppProviderCollection: ?*?*IWdsTransportCollection, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IWdsTransportSetupManager.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWdsTransportSetupManager2_get_TftpCapabilities(self: *const T, pulTftpCapabilities: ?*u32) HRESULT { return @as(*const IWdsTransportSetupManager2.VTable, @ptrCast(self.vtable)).get_TftpCapabilities(@as(*const IWdsTransportSetupManager2, @ptrCast(self)), pulTftpCapabilities); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWdsTransportSetupManager2_get_ContentProviders(self: *const T, ppProviderCollection: ?*?*IWdsTransportCollection) HRESULT { return @as(*const IWdsTransportSetupManager2.VTable, @ptrCast(self.vtable)).get_ContentProviders(@as(*const IWdsTransportSetupManager2, @ptrCast(self)), ppProviderCollection); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windowsServer2008' const IID_IWdsTransportConfigurationManager_Value = Guid.initString("84cc4779-42dd-4792-891e-1321d6d74b44"); pub const IID_IWdsTransportConfigurationManager = &IID_IWdsTransportConfigurationManager_Value; pub const IWdsTransportConfigurationManager = extern struct { pub const VTable = extern struct { base: IDispatch.VTable, // TODO: this function has a "SpecialName", should Zig do anything with this? get_ServicePolicy: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IWdsTransportConfigurationManager, ppWdsTransportServicePolicy: ?*?*IWdsTransportServicePolicy, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IWdsTransportConfigurationManager, ppWdsTransportServicePolicy: ?*?*IWdsTransportServicePolicy, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_DiagnosticsPolicy: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IWdsTransportConfigurationManager, ppWdsTransportDiagnosticsPolicy: ?*?*IWdsTransportDiagnosticsPolicy, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IWdsTransportConfigurationManager, ppWdsTransportDiagnosticsPolicy: ?*?*IWdsTransportDiagnosticsPolicy, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_WdsTransportServicesRunning: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IWdsTransportConfigurationManager, bRealtimeStatus: i16, pbServicesRunning: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IWdsTransportConfigurationManager, bRealtimeStatus: i16, pbServicesRunning: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, EnableWdsTransportServices: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IWdsTransportConfigurationManager, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IWdsTransportConfigurationManager, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, DisableWdsTransportServices: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IWdsTransportConfigurationManager, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IWdsTransportConfigurationManager, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, StartWdsTransportServices: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IWdsTransportConfigurationManager, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IWdsTransportConfigurationManager, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, StopWdsTransportServices: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IWdsTransportConfigurationManager, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IWdsTransportConfigurationManager, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, RestartWdsTransportServices: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IWdsTransportConfigurationManager, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IWdsTransportConfigurationManager, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, NotifyWdsTransportServices: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IWdsTransportConfigurationManager, ServiceNotification: WDSTRANSPORT_SERVICE_NOTIFICATION, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IWdsTransportConfigurationManager, ServiceNotification: WDSTRANSPORT_SERVICE_NOTIFICATION, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IDispatch.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWdsTransportConfigurationManager_get_ServicePolicy(self: *const T, ppWdsTransportServicePolicy: ?*?*IWdsTransportServicePolicy) HRESULT { return @as(*const IWdsTransportConfigurationManager.VTable, @ptrCast(self.vtable)).get_ServicePolicy(@as(*const IWdsTransportConfigurationManager, @ptrCast(self)), ppWdsTransportServicePolicy); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWdsTransportConfigurationManager_get_DiagnosticsPolicy(self: *const T, ppWdsTransportDiagnosticsPolicy: ?*?*IWdsTransportDiagnosticsPolicy) HRESULT { return @as(*const IWdsTransportConfigurationManager.VTable, @ptrCast(self.vtable)).get_DiagnosticsPolicy(@as(*const IWdsTransportConfigurationManager, @ptrCast(self)), ppWdsTransportDiagnosticsPolicy); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWdsTransportConfigurationManager_get_WdsTransportServicesRunning(self: *const T, bRealtimeStatus: i16, pbServicesRunning: ?*i16) HRESULT { return @as(*const IWdsTransportConfigurationManager.VTable, @ptrCast(self.vtable)).get_WdsTransportServicesRunning(@as(*const IWdsTransportConfigurationManager, @ptrCast(self)), bRealtimeStatus, pbServicesRunning); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWdsTransportConfigurationManager_EnableWdsTransportServices(self: *const T) HRESULT { return @as(*const IWdsTransportConfigurationManager.VTable, @ptrCast(self.vtable)).EnableWdsTransportServices(@as(*const IWdsTransportConfigurationManager, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWdsTransportConfigurationManager_DisableWdsTransportServices(self: *const T) HRESULT { return @as(*const IWdsTransportConfigurationManager.VTable, @ptrCast(self.vtable)).DisableWdsTransportServices(@as(*const IWdsTransportConfigurationManager, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWdsTransportConfigurationManager_StartWdsTransportServices(self: *const T) HRESULT { return @as(*const IWdsTransportConfigurationManager.VTable, @ptrCast(self.vtable)).StartWdsTransportServices(@as(*const IWdsTransportConfigurationManager, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWdsTransportConfigurationManager_StopWdsTransportServices(self: *const T) HRESULT { return @as(*const IWdsTransportConfigurationManager.VTable, @ptrCast(self.vtable)).StopWdsTransportServices(@as(*const IWdsTransportConfigurationManager, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWdsTransportConfigurationManager_RestartWdsTransportServices(self: *const T) HRESULT { return @as(*const IWdsTransportConfigurationManager.VTable, @ptrCast(self.vtable)).RestartWdsTransportServices(@as(*const IWdsTransportConfigurationManager, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWdsTransportConfigurationManager_NotifyWdsTransportServices(self: *const T, ServiceNotification: WDSTRANSPORT_SERVICE_NOTIFICATION) HRESULT { return @as(*const IWdsTransportConfigurationManager.VTable, @ptrCast(self.vtable)).NotifyWdsTransportServices(@as(*const IWdsTransportConfigurationManager, @ptrCast(self)), ServiceNotification); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windowsServer2008' const IID_IWdsTransportConfigurationManager2_Value = Guid.initString("d0d85caf-a153-4f1d-a9dd-96f431c50717"); pub const IID_IWdsTransportConfigurationManager2 = &IID_IWdsTransportConfigurationManager2_Value; pub const IWdsTransportConfigurationManager2 = extern struct { pub const VTable = extern struct { base: IWdsTransportConfigurationManager.VTable, // TODO: this function has a "SpecialName", should Zig do anything with this? get_MulticastSessionPolicy: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IWdsTransportConfigurationManager2, ppWdsTransportMulticastSessionPolicy: ?*?*IWdsTransportMulticastSessionPolicy, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IWdsTransportConfigurationManager2, ppWdsTransportMulticastSessionPolicy: ?*?*IWdsTransportMulticastSessionPolicy, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IWdsTransportConfigurationManager.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWdsTransportConfigurationManager2_get_MulticastSessionPolicy(self: *const T, ppWdsTransportMulticastSessionPolicy: ?*?*IWdsTransportMulticastSessionPolicy) HRESULT { return @as(*const IWdsTransportConfigurationManager2.VTable, @ptrCast(self.vtable)).get_MulticastSessionPolicy(@as(*const IWdsTransportConfigurationManager2, @ptrCast(self)), ppWdsTransportMulticastSessionPolicy); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windowsServer2008' const IID_IWdsTransportNamespaceManager_Value = Guid.initString("3e22d9f6-3777-4d98-83e1-f98696717ba3"); pub const IID_IWdsTransportNamespaceManager = &IID_IWdsTransportNamespaceManager_Value; pub const IWdsTransportNamespaceManager = extern struct { pub const VTable = extern struct { base: IDispatch.VTable, CreateNamespace: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IWdsTransportNamespaceManager, NamespaceType: WDSTRANSPORT_NAMESPACE_TYPE, bszNamespaceName: ?BSTR, bszContentProvider: ?BSTR, bszConfiguration: ?BSTR, ppWdsTransportNamespace: ?*?*IWdsTransportNamespace, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IWdsTransportNamespaceManager, NamespaceType: WDSTRANSPORT_NAMESPACE_TYPE, bszNamespaceName: ?BSTR, bszContentProvider: ?BSTR, bszConfiguration: ?BSTR, ppWdsTransportNamespace: ?*?*IWdsTransportNamespace, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, RetrieveNamespace: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IWdsTransportNamespaceManager, bszNamespaceName: ?BSTR, ppWdsTransportNamespace: ?*?*IWdsTransportNamespace, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IWdsTransportNamespaceManager, bszNamespaceName: ?BSTR, ppWdsTransportNamespace: ?*?*IWdsTransportNamespace, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, RetrieveNamespaces: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IWdsTransportNamespaceManager, bszContentProvider: ?BSTR, bszNamespaceName: ?BSTR, bIncludeTombstones: i16, ppWdsTransportNamespaces: ?*?*IWdsTransportCollection, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IWdsTransportNamespaceManager, bszContentProvider: ?BSTR, bszNamespaceName: ?BSTR, bIncludeTombstones: i16, ppWdsTransportNamespaces: ?*?*IWdsTransportCollection, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IDispatch.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWdsTransportNamespaceManager_CreateNamespace(self: *const T, NamespaceType: WDSTRANSPORT_NAMESPACE_TYPE, bszNamespaceName: ?BSTR, bszContentProvider: ?BSTR, bszConfiguration: ?BSTR, ppWdsTransportNamespace: ?*?*IWdsTransportNamespace) HRESULT { return @as(*const IWdsTransportNamespaceManager.VTable, @ptrCast(self.vtable)).CreateNamespace(@as(*const IWdsTransportNamespaceManager, @ptrCast(self)), NamespaceType, bszNamespaceName, bszContentProvider, bszConfiguration, ppWdsTransportNamespace); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWdsTransportNamespaceManager_RetrieveNamespace(self: *const T, bszNamespaceName: ?BSTR, ppWdsTransportNamespace: ?*?*IWdsTransportNamespace) HRESULT { return @as(*const IWdsTransportNamespaceManager.VTable, @ptrCast(self.vtable)).RetrieveNamespace(@as(*const IWdsTransportNamespaceManager, @ptrCast(self)), bszNamespaceName, ppWdsTransportNamespace); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWdsTransportNamespaceManager_RetrieveNamespaces(self: *const T, bszContentProvider: ?BSTR, bszNamespaceName: ?BSTR, bIncludeTombstones: i16, ppWdsTransportNamespaces: ?*?*IWdsTransportCollection) HRESULT { return @as(*const IWdsTransportNamespaceManager.VTable, @ptrCast(self.vtable)).RetrieveNamespaces(@as(*const IWdsTransportNamespaceManager, @ptrCast(self)), bszContentProvider, bszNamespaceName, bIncludeTombstones, ppWdsTransportNamespaces); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windowsServer2012' const IID_IWdsTransportTftpManager_Value = Guid.initString("1327a7c8-ae8a-4fb3-8150-136227c37e9a"); pub const IID_IWdsTransportTftpManager = &IID_IWdsTransportTftpManager_Value; pub const IWdsTransportTftpManager = extern struct { pub const VTable = extern struct { base: IDispatch.VTable, RetrieveTftpClients: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IWdsTransportTftpManager, ppWdsTransportTftpClients: ?*?*IWdsTransportCollection, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IWdsTransportTftpManager, ppWdsTransportTftpClients: ?*?*IWdsTransportCollection, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IDispatch.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWdsTransportTftpManager_RetrieveTftpClients(self: *const T, ppWdsTransportTftpClients: ?*?*IWdsTransportCollection) HRESULT { return @as(*const IWdsTransportTftpManager.VTable, @ptrCast(self.vtable)).RetrieveTftpClients(@as(*const IWdsTransportTftpManager, @ptrCast(self)), ppWdsTransportTftpClients); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windowsServer2008' const IID_IWdsTransportServicePolicy_Value = Guid.initString("b9468578-9f2b-48cc-b27a-a60799c2750c"); pub const IID_IWdsTransportServicePolicy = &IID_IWdsTransportServicePolicy_Value; pub const IWdsTransportServicePolicy = extern struct { pub const VTable = extern struct { base: IWdsTransportCacheable.VTable, // TODO: this function has a "SpecialName", should Zig do anything with this? get_IpAddressSource: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IWdsTransportServicePolicy, AddressType: WDSTRANSPORT_IP_ADDRESS_TYPE, pSourceType: ?*WDSTRANSPORT_IP_ADDRESS_SOURCE_TYPE, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IWdsTransportServicePolicy, AddressType: WDSTRANSPORT_IP_ADDRESS_TYPE, pSourceType: ?*WDSTRANSPORT_IP_ADDRESS_SOURCE_TYPE, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_IpAddressSource: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IWdsTransportServicePolicy, AddressType: WDSTRANSPORT_IP_ADDRESS_TYPE, SourceType: WDSTRANSPORT_IP_ADDRESS_SOURCE_TYPE, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IWdsTransportServicePolicy, AddressType: WDSTRANSPORT_IP_ADDRESS_TYPE, SourceType: WDSTRANSPORT_IP_ADDRESS_SOURCE_TYPE, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_StartIpAddress: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IWdsTransportServicePolicy, AddressType: WDSTRANSPORT_IP_ADDRESS_TYPE, pbszStartIpAddress: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IWdsTransportServicePolicy, AddressType: WDSTRANSPORT_IP_ADDRESS_TYPE, pbszStartIpAddress: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_StartIpAddress: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IWdsTransportServicePolicy, AddressType: WDSTRANSPORT_IP_ADDRESS_TYPE, bszStartIpAddress: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IWdsTransportServicePolicy, AddressType: WDSTRANSPORT_IP_ADDRESS_TYPE, bszStartIpAddress: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_EndIpAddress: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IWdsTransportServicePolicy, AddressType: WDSTRANSPORT_IP_ADDRESS_TYPE, pbszEndIpAddress: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IWdsTransportServicePolicy, AddressType: WDSTRANSPORT_IP_ADDRESS_TYPE, pbszEndIpAddress: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_EndIpAddress: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IWdsTransportServicePolicy, AddressType: WDSTRANSPORT_IP_ADDRESS_TYPE, bszEndIpAddress: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IWdsTransportServicePolicy, AddressType: WDSTRANSPORT_IP_ADDRESS_TYPE, bszEndIpAddress: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_StartPort: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IWdsTransportServicePolicy, pulStartPort: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IWdsTransportServicePolicy, pulStartPort: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_StartPort: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IWdsTransportServicePolicy, ulStartPort: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IWdsTransportServicePolicy, ulStartPort: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_EndPort: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IWdsTransportServicePolicy, pulEndPort: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IWdsTransportServicePolicy, pulEndPort: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_EndPort: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IWdsTransportServicePolicy, ulEndPort: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IWdsTransportServicePolicy, ulEndPort: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_NetworkProfile: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IWdsTransportServicePolicy, pProfileType: ?*WDSTRANSPORT_NETWORK_PROFILE_TYPE, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IWdsTransportServicePolicy, pProfileType: ?*WDSTRANSPORT_NETWORK_PROFILE_TYPE, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_NetworkProfile: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IWdsTransportServicePolicy, ProfileType: WDSTRANSPORT_NETWORK_PROFILE_TYPE, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IWdsTransportServicePolicy, ProfileType: WDSTRANSPORT_NETWORK_PROFILE_TYPE, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IWdsTransportCacheable.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWdsTransportServicePolicy_get_IpAddressSource(self: *const T, AddressType: WDSTRANSPORT_IP_ADDRESS_TYPE, pSourceType: ?*WDSTRANSPORT_IP_ADDRESS_SOURCE_TYPE) HRESULT { return @as(*const IWdsTransportServicePolicy.VTable, @ptrCast(self.vtable)).get_IpAddressSource(@as(*const IWdsTransportServicePolicy, @ptrCast(self)), AddressType, pSourceType); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWdsTransportServicePolicy_put_IpAddressSource(self: *const T, AddressType: WDSTRANSPORT_IP_ADDRESS_TYPE, SourceType: WDSTRANSPORT_IP_ADDRESS_SOURCE_TYPE) HRESULT { return @as(*const IWdsTransportServicePolicy.VTable, @ptrCast(self.vtable)).put_IpAddressSource(@as(*const IWdsTransportServicePolicy, @ptrCast(self)), AddressType, SourceType); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWdsTransportServicePolicy_get_StartIpAddress(self: *const T, AddressType: WDSTRANSPORT_IP_ADDRESS_TYPE, pbszStartIpAddress: ?*?BSTR) HRESULT { return @as(*const IWdsTransportServicePolicy.VTable, @ptrCast(self.vtable)).get_StartIpAddress(@as(*const IWdsTransportServicePolicy, @ptrCast(self)), AddressType, pbszStartIpAddress); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWdsTransportServicePolicy_put_StartIpAddress(self: *const T, AddressType: WDSTRANSPORT_IP_ADDRESS_TYPE, bszStartIpAddress: ?BSTR) HRESULT { return @as(*const IWdsTransportServicePolicy.VTable, @ptrCast(self.vtable)).put_StartIpAddress(@as(*const IWdsTransportServicePolicy, @ptrCast(self)), AddressType, bszStartIpAddress); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWdsTransportServicePolicy_get_EndIpAddress(self: *const T, AddressType: WDSTRANSPORT_IP_ADDRESS_TYPE, pbszEndIpAddress: ?*?BSTR) HRESULT { return @as(*const IWdsTransportServicePolicy.VTable, @ptrCast(self.vtable)).get_EndIpAddress(@as(*const IWdsTransportServicePolicy, @ptrCast(self)), AddressType, pbszEndIpAddress); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWdsTransportServicePolicy_put_EndIpAddress(self: *const T, AddressType: WDSTRANSPORT_IP_ADDRESS_TYPE, bszEndIpAddress: ?BSTR) HRESULT { return @as(*const IWdsTransportServicePolicy.VTable, @ptrCast(self.vtable)).put_EndIpAddress(@as(*const IWdsTransportServicePolicy, @ptrCast(self)), AddressType, bszEndIpAddress); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWdsTransportServicePolicy_get_StartPort(self: *const T, pulStartPort: ?*u32) HRESULT { return @as(*const IWdsTransportServicePolicy.VTable, @ptrCast(self.vtable)).get_StartPort(@as(*const IWdsTransportServicePolicy, @ptrCast(self)), pulStartPort); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWdsTransportServicePolicy_put_StartPort(self: *const T, ulStartPort: u32) HRESULT { return @as(*const IWdsTransportServicePolicy.VTable, @ptrCast(self.vtable)).put_StartPort(@as(*const IWdsTransportServicePolicy, @ptrCast(self)), ulStartPort); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWdsTransportServicePolicy_get_EndPort(self: *const T, pulEndPort: ?*u32) HRESULT { return @as(*const IWdsTransportServicePolicy.VTable, @ptrCast(self.vtable)).get_EndPort(@as(*const IWdsTransportServicePolicy, @ptrCast(self)), pulEndPort); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWdsTransportServicePolicy_put_EndPort(self: *const T, ulEndPort: u32) HRESULT { return @as(*const IWdsTransportServicePolicy.VTable, @ptrCast(self.vtable)).put_EndPort(@as(*const IWdsTransportServicePolicy, @ptrCast(self)), ulEndPort); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWdsTransportServicePolicy_get_NetworkProfile(self: *const T, pProfileType: ?*WDSTRANSPORT_NETWORK_PROFILE_TYPE) HRESULT { return @as(*const IWdsTransportServicePolicy.VTable, @ptrCast(self.vtable)).get_NetworkProfile(@as(*const IWdsTransportServicePolicy, @ptrCast(self)), pProfileType); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWdsTransportServicePolicy_put_NetworkProfile(self: *const T, ProfileType: WDSTRANSPORT_NETWORK_PROFILE_TYPE) HRESULT { return @as(*const IWdsTransportServicePolicy.VTable, @ptrCast(self.vtable)).put_NetworkProfile(@as(*const IWdsTransportServicePolicy, @ptrCast(self)), ProfileType); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windowsServer2012' const IID_IWdsTransportServicePolicy2_Value = Guid.initString("65c19e5c-aa7e-4b91-8944-91e0e5572797"); pub const IID_IWdsTransportServicePolicy2 = &IID_IWdsTransportServicePolicy2_Value; pub const IWdsTransportServicePolicy2 = extern struct { pub const VTable = extern struct { base: IWdsTransportServicePolicy.VTable, // TODO: this function has a "SpecialName", should Zig do anything with this? get_UdpPortPolicy: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IWdsTransportServicePolicy2, pUdpPortPolicy: ?*WDSTRANSPORT_UDP_PORT_POLICY, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IWdsTransportServicePolicy2, pUdpPortPolicy: ?*WDSTRANSPORT_UDP_PORT_POLICY, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_UdpPortPolicy: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IWdsTransportServicePolicy2, UdpPortPolicy: WDSTRANSPORT_UDP_PORT_POLICY, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IWdsTransportServicePolicy2, UdpPortPolicy: WDSTRANSPORT_UDP_PORT_POLICY, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_TftpMaximumBlockSize: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IWdsTransportServicePolicy2, pulTftpMaximumBlockSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IWdsTransportServicePolicy2, pulTftpMaximumBlockSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_TftpMaximumBlockSize: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IWdsTransportServicePolicy2, ulTftpMaximumBlockSize: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IWdsTransportServicePolicy2, ulTftpMaximumBlockSize: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_EnableTftpVariableWindowExtension: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IWdsTransportServicePolicy2, pbEnableTftpVariableWindowExtension: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IWdsTransportServicePolicy2, pbEnableTftpVariableWindowExtension: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_EnableTftpVariableWindowExtension: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IWdsTransportServicePolicy2, bEnableTftpVariableWindowExtension: i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IWdsTransportServicePolicy2, bEnableTftpVariableWindowExtension: i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IWdsTransportServicePolicy.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWdsTransportServicePolicy2_get_UdpPortPolicy(self: *const T, pUdpPortPolicy: ?*WDSTRANSPORT_UDP_PORT_POLICY) HRESULT { return @as(*const IWdsTransportServicePolicy2.VTable, @ptrCast(self.vtable)).get_UdpPortPolicy(@as(*const IWdsTransportServicePolicy2, @ptrCast(self)), pUdpPortPolicy); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWdsTransportServicePolicy2_put_UdpPortPolicy(self: *const T, UdpPortPolicy: WDSTRANSPORT_UDP_PORT_POLICY) HRESULT { return @as(*const IWdsTransportServicePolicy2.VTable, @ptrCast(self.vtable)).put_UdpPortPolicy(@as(*const IWdsTransportServicePolicy2, @ptrCast(self)), UdpPortPolicy); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWdsTransportServicePolicy2_get_TftpMaximumBlockSize(self: *const T, pulTftpMaximumBlockSize: ?*u32) HRESULT { return @as(*const IWdsTransportServicePolicy2.VTable, @ptrCast(self.vtable)).get_TftpMaximumBlockSize(@as(*const IWdsTransportServicePolicy2, @ptrCast(self)), pulTftpMaximumBlockSize); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWdsTransportServicePolicy2_put_TftpMaximumBlockSize(self: *const T, ulTftpMaximumBlockSize: u32) HRESULT { return @as(*const IWdsTransportServicePolicy2.VTable, @ptrCast(self.vtable)).put_TftpMaximumBlockSize(@as(*const IWdsTransportServicePolicy2, @ptrCast(self)), ulTftpMaximumBlockSize); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWdsTransportServicePolicy2_get_EnableTftpVariableWindowExtension(self: *const T, pbEnableTftpVariableWindowExtension: ?*i16) HRESULT { return @as(*const IWdsTransportServicePolicy2.VTable, @ptrCast(self.vtable)).get_EnableTftpVariableWindowExtension(@as(*const IWdsTransportServicePolicy2, @ptrCast(self)), pbEnableTftpVariableWindowExtension); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWdsTransportServicePolicy2_put_EnableTftpVariableWindowExtension(self: *const T, bEnableTftpVariableWindowExtension: i16) HRESULT { return @as(*const IWdsTransportServicePolicy2.VTable, @ptrCast(self.vtable)).put_EnableTftpVariableWindowExtension(@as(*const IWdsTransportServicePolicy2, @ptrCast(self)), bEnableTftpVariableWindowExtension); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windowsServer2008' const IID_IWdsTransportDiagnosticsPolicy_Value = Guid.initString("13b33efc-7856-4f61-9a59-8de67b6b87b6"); pub const IID_IWdsTransportDiagnosticsPolicy = &IID_IWdsTransportDiagnosticsPolicy_Value; pub const IWdsTransportDiagnosticsPolicy = extern struct { pub const VTable = extern struct { base: IWdsTransportCacheable.VTable, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Enabled: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IWdsTransportDiagnosticsPolicy, pbEnabled: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IWdsTransportDiagnosticsPolicy, pbEnabled: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_Enabled: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IWdsTransportDiagnosticsPolicy, bEnabled: i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IWdsTransportDiagnosticsPolicy, bEnabled: i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Components: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IWdsTransportDiagnosticsPolicy, pulComponents: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IWdsTransportDiagnosticsPolicy, pulComponents: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_Components: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IWdsTransportDiagnosticsPolicy, ulComponents: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IWdsTransportDiagnosticsPolicy, ulComponents: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IWdsTransportCacheable.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWdsTransportDiagnosticsPolicy_get_Enabled(self: *const T, pbEnabled: ?*i16) HRESULT { return @as(*const IWdsTransportDiagnosticsPolicy.VTable, @ptrCast(self.vtable)).get_Enabled(@as(*const IWdsTransportDiagnosticsPolicy, @ptrCast(self)), pbEnabled); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWdsTransportDiagnosticsPolicy_put_Enabled(self: *const T, bEnabled: i16) HRESULT { return @as(*const IWdsTransportDiagnosticsPolicy.VTable, @ptrCast(self.vtable)).put_Enabled(@as(*const IWdsTransportDiagnosticsPolicy, @ptrCast(self)), bEnabled); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWdsTransportDiagnosticsPolicy_get_Components(self: *const T, pulComponents: ?*u32) HRESULT { return @as(*const IWdsTransportDiagnosticsPolicy.VTable, @ptrCast(self.vtable)).get_Components(@as(*const IWdsTransportDiagnosticsPolicy, @ptrCast(self)), pulComponents); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWdsTransportDiagnosticsPolicy_put_Components(self: *const T, ulComponents: u32) HRESULT { return @as(*const IWdsTransportDiagnosticsPolicy.VTable, @ptrCast(self.vtable)).put_Components(@as(*const IWdsTransportDiagnosticsPolicy, @ptrCast(self)), ulComponents); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windowsServer2008' const IID_IWdsTransportMulticastSessionPolicy_Value = Guid.initString("4e5753cf-68ec-4504-a951-4a003266606b"); pub const IID_IWdsTransportMulticastSessionPolicy = &IID_IWdsTransportMulticastSessionPolicy_Value; pub const IWdsTransportMulticastSessionPolicy = extern struct { pub const VTable = extern struct { base: IWdsTransportCacheable.VTable, // TODO: this function has a "SpecialName", should Zig do anything with this? get_SlowClientHandling: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IWdsTransportMulticastSessionPolicy, pSlowClientHandling: ?*WDSTRANSPORT_SLOW_CLIENT_HANDLING_TYPE, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IWdsTransportMulticastSessionPolicy, pSlowClientHandling: ?*WDSTRANSPORT_SLOW_CLIENT_HANDLING_TYPE, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_SlowClientHandling: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IWdsTransportMulticastSessionPolicy, SlowClientHandling: WDSTRANSPORT_SLOW_CLIENT_HANDLING_TYPE, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IWdsTransportMulticastSessionPolicy, SlowClientHandling: WDSTRANSPORT_SLOW_CLIENT_HANDLING_TYPE, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_AutoDisconnectThreshold: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IWdsTransportMulticastSessionPolicy, pulThreshold: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IWdsTransportMulticastSessionPolicy, pulThreshold: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_AutoDisconnectThreshold: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IWdsTransportMulticastSessionPolicy, ulThreshold: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IWdsTransportMulticastSessionPolicy, ulThreshold: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_MultistreamStreamCount: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IWdsTransportMulticastSessionPolicy, pulStreamCount: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IWdsTransportMulticastSessionPolicy, pulStreamCount: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_MultistreamStreamCount: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IWdsTransportMulticastSessionPolicy, ulStreamCount: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IWdsTransportMulticastSessionPolicy, ulStreamCount: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_SlowClientFallback: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IWdsTransportMulticastSessionPolicy, pbClientFallback: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IWdsTransportMulticastSessionPolicy, pbClientFallback: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_SlowClientFallback: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IWdsTransportMulticastSessionPolicy, bClientFallback: i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IWdsTransportMulticastSessionPolicy, bClientFallback: i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IWdsTransportCacheable.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWdsTransportMulticastSessionPolicy_get_SlowClientHandling(self: *const T, pSlowClientHandling: ?*WDSTRANSPORT_SLOW_CLIENT_HANDLING_TYPE) HRESULT { return @as(*const IWdsTransportMulticastSessionPolicy.VTable, @ptrCast(self.vtable)).get_SlowClientHandling(@as(*const IWdsTransportMulticastSessionPolicy, @ptrCast(self)), pSlowClientHandling); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWdsTransportMulticastSessionPolicy_put_SlowClientHandling(self: *const T, SlowClientHandling: WDSTRANSPORT_SLOW_CLIENT_HANDLING_TYPE) HRESULT { return @as(*const IWdsTransportMulticastSessionPolicy.VTable, @ptrCast(self.vtable)).put_SlowClientHandling(@as(*const IWdsTransportMulticastSessionPolicy, @ptrCast(self)), SlowClientHandling); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWdsTransportMulticastSessionPolicy_get_AutoDisconnectThreshold(self: *const T, pulThreshold: ?*u32) HRESULT { return @as(*const IWdsTransportMulticastSessionPolicy.VTable, @ptrCast(self.vtable)).get_AutoDisconnectThreshold(@as(*const IWdsTransportMulticastSessionPolicy, @ptrCast(self)), pulThreshold); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWdsTransportMulticastSessionPolicy_put_AutoDisconnectThreshold(self: *const T, ulThreshold: u32) HRESULT { return @as(*const IWdsTransportMulticastSessionPolicy.VTable, @ptrCast(self.vtable)).put_AutoDisconnectThreshold(@as(*const IWdsTransportMulticastSessionPolicy, @ptrCast(self)), ulThreshold); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWdsTransportMulticastSessionPolicy_get_MultistreamStreamCount(self: *const T, pulStreamCount: ?*u32) HRESULT { return @as(*const IWdsTransportMulticastSessionPolicy.VTable, @ptrCast(self.vtable)).get_MultistreamStreamCount(@as(*const IWdsTransportMulticastSessionPolicy, @ptrCast(self)), pulStreamCount); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWdsTransportMulticastSessionPolicy_put_MultistreamStreamCount(self: *const T, ulStreamCount: u32) HRESULT { return @as(*const IWdsTransportMulticastSessionPolicy.VTable, @ptrCast(self.vtable)).put_MultistreamStreamCount(@as(*const IWdsTransportMulticastSessionPolicy, @ptrCast(self)), ulStreamCount); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWdsTransportMulticastSessionPolicy_get_SlowClientFallback(self: *const T, pbClientFallback: ?*i16) HRESULT { return @as(*const IWdsTransportMulticastSessionPolicy.VTable, @ptrCast(self.vtable)).get_SlowClientFallback(@as(*const IWdsTransportMulticastSessionPolicy, @ptrCast(self)), pbClientFallback); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWdsTransportMulticastSessionPolicy_put_SlowClientFallback(self: *const T, bClientFallback: i16) HRESULT { return @as(*const IWdsTransportMulticastSessionPolicy.VTable, @ptrCast(self.vtable)).put_SlowClientFallback(@as(*const IWdsTransportMulticastSessionPolicy, @ptrCast(self)), bClientFallback); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windowsServer2008' const IID_IWdsTransportNamespace_Value = Guid.initString("fa561f57-fbef-4ed3-b056-127cb1b33b84"); pub const IID_IWdsTransportNamespace = &IID_IWdsTransportNamespace_Value; pub const IWdsTransportNamespace = extern struct { pub const VTable = extern struct { base: IDispatch.VTable, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Type: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IWdsTransportNamespace, pType: ?*WDSTRANSPORT_NAMESPACE_TYPE, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IWdsTransportNamespace, pType: ?*WDSTRANSPORT_NAMESPACE_TYPE, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Id: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IWdsTransportNamespace, pulId: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IWdsTransportNamespace, pulId: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Name: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IWdsTransportNamespace, pbszName: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IWdsTransportNamespace, pbszName: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_Name: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IWdsTransportNamespace, bszName: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IWdsTransportNamespace, bszName: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_FriendlyName: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IWdsTransportNamespace, pbszFriendlyName: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IWdsTransportNamespace, pbszFriendlyName: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_FriendlyName: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IWdsTransportNamespace, bszFriendlyName: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IWdsTransportNamespace, bszFriendlyName: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Description: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IWdsTransportNamespace, pbszDescription: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IWdsTransportNamespace, pbszDescription: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_Description: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IWdsTransportNamespace, bszDescription: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IWdsTransportNamespace, bszDescription: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_ContentProvider: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IWdsTransportNamespace, pbszContentProvider: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IWdsTransportNamespace, pbszContentProvider: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_ContentProvider: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IWdsTransportNamespace, bszContentProvider: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IWdsTransportNamespace, bszContentProvider: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Configuration: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IWdsTransportNamespace, pbszConfiguration: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IWdsTransportNamespace, pbszConfiguration: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_Configuration: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IWdsTransportNamespace, bszConfiguration: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IWdsTransportNamespace, bszConfiguration: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Registered: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IWdsTransportNamespace, pbRegistered: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IWdsTransportNamespace, pbRegistered: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Tombstoned: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IWdsTransportNamespace, pbTombstoned: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IWdsTransportNamespace, pbTombstoned: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_TombstoneTime: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IWdsTransportNamespace, pTombstoneTime: ?*f64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IWdsTransportNamespace, pTombstoneTime: ?*f64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_TransmissionStarted: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IWdsTransportNamespace, pbTransmissionStarted: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IWdsTransportNamespace, pbTransmissionStarted: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Register: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IWdsTransportNamespace, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IWdsTransportNamespace, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Deregister: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IWdsTransportNamespace, bTerminateSessions: i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IWdsTransportNamespace, bTerminateSessions: i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Clone: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IWdsTransportNamespace, ppWdsTransportNamespaceClone: ?*?*IWdsTransportNamespace, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IWdsTransportNamespace, ppWdsTransportNamespaceClone: ?*?*IWdsTransportNamespace, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Refresh: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IWdsTransportNamespace, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IWdsTransportNamespace, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, RetrieveContents: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IWdsTransportNamespace, ppWdsTransportContents: ?*?*IWdsTransportCollection, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IWdsTransportNamespace, ppWdsTransportContents: ?*?*IWdsTransportCollection, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IDispatch.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWdsTransportNamespace_get_Type(self: *const T, pType: ?*WDSTRANSPORT_NAMESPACE_TYPE) HRESULT { return @as(*const IWdsTransportNamespace.VTable, @ptrCast(self.vtable)).get_Type(@as(*const IWdsTransportNamespace, @ptrCast(self)), pType); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWdsTransportNamespace_get_Id(self: *const T, pulId: ?*u32) HRESULT { return @as(*const IWdsTransportNamespace.VTable, @ptrCast(self.vtable)).get_Id(@as(*const IWdsTransportNamespace, @ptrCast(self)), pulId); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWdsTransportNamespace_get_Name(self: *const T, pbszName: ?*?BSTR) HRESULT { return @as(*const IWdsTransportNamespace.VTable, @ptrCast(self.vtable)).get_Name(@as(*const IWdsTransportNamespace, @ptrCast(self)), pbszName); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWdsTransportNamespace_put_Name(self: *const T, bszName: ?BSTR) HRESULT { return @as(*const IWdsTransportNamespace.VTable, @ptrCast(self.vtable)).put_Name(@as(*const IWdsTransportNamespace, @ptrCast(self)), bszName); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWdsTransportNamespace_get_FriendlyName(self: *const T, pbszFriendlyName: ?*?BSTR) HRESULT { return @as(*const IWdsTransportNamespace.VTable, @ptrCast(self.vtable)).get_FriendlyName(@as(*const IWdsTransportNamespace, @ptrCast(self)), pbszFriendlyName); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWdsTransportNamespace_put_FriendlyName(self: *const T, bszFriendlyName: ?BSTR) HRESULT { return @as(*const IWdsTransportNamespace.VTable, @ptrCast(self.vtable)).put_FriendlyName(@as(*const IWdsTransportNamespace, @ptrCast(self)), bszFriendlyName); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWdsTransportNamespace_get_Description(self: *const T, pbszDescription: ?*?BSTR) HRESULT { return @as(*const IWdsTransportNamespace.VTable, @ptrCast(self.vtable)).get_Description(@as(*const IWdsTransportNamespace, @ptrCast(self)), pbszDescription); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWdsTransportNamespace_put_Description(self: *const T, bszDescription: ?BSTR) HRESULT { return @as(*const IWdsTransportNamespace.VTable, @ptrCast(self.vtable)).put_Description(@as(*const IWdsTransportNamespace, @ptrCast(self)), bszDescription); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWdsTransportNamespace_get_ContentProvider(self: *const T, pbszContentProvider: ?*?BSTR) HRESULT { return @as(*const IWdsTransportNamespace.VTable, @ptrCast(self.vtable)).get_ContentProvider(@as(*const IWdsTransportNamespace, @ptrCast(self)), pbszContentProvider); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWdsTransportNamespace_put_ContentProvider(self: *const T, bszContentProvider: ?BSTR) HRESULT { return @as(*const IWdsTransportNamespace.VTable, @ptrCast(self.vtable)).put_ContentProvider(@as(*const IWdsTransportNamespace, @ptrCast(self)), bszContentProvider); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWdsTransportNamespace_get_Configuration(self: *const T, pbszConfiguration: ?*?BSTR) HRESULT { return @as(*const IWdsTransportNamespace.VTable, @ptrCast(self.vtable)).get_Configuration(@as(*const IWdsTransportNamespace, @ptrCast(self)), pbszConfiguration); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWdsTransportNamespace_put_Configuration(self: *const T, bszConfiguration: ?BSTR) HRESULT { return @as(*const IWdsTransportNamespace.VTable, @ptrCast(self.vtable)).put_Configuration(@as(*const IWdsTransportNamespace, @ptrCast(self)), bszConfiguration); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWdsTransportNamespace_get_Registered(self: *const T, pbRegistered: ?*i16) HRESULT { return @as(*const IWdsTransportNamespace.VTable, @ptrCast(self.vtable)).get_Registered(@as(*const IWdsTransportNamespace, @ptrCast(self)), pbRegistered); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWdsTransportNamespace_get_Tombstoned(self: *const T, pbTombstoned: ?*i16) HRESULT { return @as(*const IWdsTransportNamespace.VTable, @ptrCast(self.vtable)).get_Tombstoned(@as(*const IWdsTransportNamespace, @ptrCast(self)), pbTombstoned); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWdsTransportNamespace_get_TombstoneTime(self: *const T, pTombstoneTime: ?*f64) HRESULT { return @as(*const IWdsTransportNamespace.VTable, @ptrCast(self.vtable)).get_TombstoneTime(@as(*const IWdsTransportNamespace, @ptrCast(self)), pTombstoneTime); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWdsTransportNamespace_get_TransmissionStarted(self: *const T, pbTransmissionStarted: ?*i16) HRESULT { return @as(*const IWdsTransportNamespace.VTable, @ptrCast(self.vtable)).get_TransmissionStarted(@as(*const IWdsTransportNamespace, @ptrCast(self)), pbTransmissionStarted); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWdsTransportNamespace_Register(self: *const T) HRESULT { return @as(*const IWdsTransportNamespace.VTable, @ptrCast(self.vtable)).Register(@as(*const IWdsTransportNamespace, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWdsTransportNamespace_Deregister(self: *const T, bTerminateSessions: i16) HRESULT { return @as(*const IWdsTransportNamespace.VTable, @ptrCast(self.vtable)).Deregister(@as(*const IWdsTransportNamespace, @ptrCast(self)), bTerminateSessions); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWdsTransportNamespace_Clone(self: *const T, ppWdsTransportNamespaceClone: ?*?*IWdsTransportNamespace) HRESULT { return @as(*const IWdsTransportNamespace.VTable, @ptrCast(self.vtable)).Clone(@as(*const IWdsTransportNamespace, @ptrCast(self)), ppWdsTransportNamespaceClone); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWdsTransportNamespace_Refresh(self: *const T) HRESULT { return @as(*const IWdsTransportNamespace.VTable, @ptrCast(self.vtable)).Refresh(@as(*const IWdsTransportNamespace, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWdsTransportNamespace_RetrieveContents(self: *const T, ppWdsTransportContents: ?*?*IWdsTransportCollection) HRESULT { return @as(*const IWdsTransportNamespace.VTable, @ptrCast(self.vtable)).RetrieveContents(@as(*const IWdsTransportNamespace, @ptrCast(self)), ppWdsTransportContents); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windowsServer2008' const IID_IWdsTransportNamespaceAutoCast_Value = Guid.initString("ad931a72-c4bd-4c41-8fbc-59c9c748df9e"); pub const IID_IWdsTransportNamespaceAutoCast = &IID_IWdsTransportNamespaceAutoCast_Value; pub const IWdsTransportNamespaceAutoCast = extern struct { pub const VTable = extern struct { base: IWdsTransportNamespace.VTable, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IWdsTransportNamespace.MethodMixin(T); }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windowsServer2008' const IID_IWdsTransportNamespaceScheduledCast_Value = Guid.initString("3840cecf-d76c-416e-a4cc-31c741d2874b"); pub const IID_IWdsTransportNamespaceScheduledCast = &IID_IWdsTransportNamespaceScheduledCast_Value; pub const IWdsTransportNamespaceScheduledCast = extern struct { pub const VTable = extern struct { base: IWdsTransportNamespace.VTable, StartTransmission: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IWdsTransportNamespaceScheduledCast, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IWdsTransportNamespaceScheduledCast, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IWdsTransportNamespace.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWdsTransportNamespaceScheduledCast_StartTransmission(self: *const T) HRESULT { return @as(*const IWdsTransportNamespaceScheduledCast.VTable, @ptrCast(self.vtable)).StartTransmission(@as(*const IWdsTransportNamespaceScheduledCast, @ptrCast(self))); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windowsServer2008' const IID_IWdsTransportNamespaceScheduledCastManualStart_Value = Guid.initString("013e6e4c-e6a7-4fb5-b7ff-d9f5da805c31"); pub const IID_IWdsTransportNamespaceScheduledCastManualStart = &IID_IWdsTransportNamespaceScheduledCastManualStart_Value; pub const IWdsTransportNamespaceScheduledCastManualStart = extern struct { pub const VTable = extern struct { base: IWdsTransportNamespaceScheduledCast.VTable, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IWdsTransportNamespaceScheduledCast.MethodMixin(T); }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windowsServer2008' const IID_IWdsTransportNamespaceScheduledCastAutoStart_Value = Guid.initString("d606af3d-ea9c-4219-961e-7491d618d9b9"); pub const IID_IWdsTransportNamespaceScheduledCastAutoStart = &IID_IWdsTransportNamespaceScheduledCastAutoStart_Value; pub const IWdsTransportNamespaceScheduledCastAutoStart = extern struct { pub const VTable = extern struct { base: IWdsTransportNamespaceScheduledCast.VTable, // TODO: this function has a "SpecialName", should Zig do anything with this? get_MinimumClients: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IWdsTransportNamespaceScheduledCastAutoStart, pulMinimumClients: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IWdsTransportNamespaceScheduledCastAutoStart, pulMinimumClients: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_MinimumClients: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IWdsTransportNamespaceScheduledCastAutoStart, ulMinimumClients: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IWdsTransportNamespaceScheduledCastAutoStart, ulMinimumClients: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_StartTime: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IWdsTransportNamespaceScheduledCastAutoStart, pStartTime: ?*f64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IWdsTransportNamespaceScheduledCastAutoStart, pStartTime: ?*f64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_StartTime: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IWdsTransportNamespaceScheduledCastAutoStart, StartTime: f64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IWdsTransportNamespaceScheduledCastAutoStart, StartTime: f64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IWdsTransportNamespaceScheduledCast.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWdsTransportNamespaceScheduledCastAutoStart_get_MinimumClients(self: *const T, pulMinimumClients: ?*u32) HRESULT { return @as(*const IWdsTransportNamespaceScheduledCastAutoStart.VTable, @ptrCast(self.vtable)).get_MinimumClients(@as(*const IWdsTransportNamespaceScheduledCastAutoStart, @ptrCast(self)), pulMinimumClients); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWdsTransportNamespaceScheduledCastAutoStart_put_MinimumClients(self: *const T, ulMinimumClients: u32) HRESULT { return @as(*const IWdsTransportNamespaceScheduledCastAutoStart.VTable, @ptrCast(self.vtable)).put_MinimumClients(@as(*const IWdsTransportNamespaceScheduledCastAutoStart, @ptrCast(self)), ulMinimumClients); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWdsTransportNamespaceScheduledCastAutoStart_get_StartTime(self: *const T, pStartTime: ?*f64) HRESULT { return @as(*const IWdsTransportNamespaceScheduledCastAutoStart.VTable, @ptrCast(self.vtable)).get_StartTime(@as(*const IWdsTransportNamespaceScheduledCastAutoStart, @ptrCast(self)), pStartTime); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWdsTransportNamespaceScheduledCastAutoStart_put_StartTime(self: *const T, StartTime: f64) HRESULT { return @as(*const IWdsTransportNamespaceScheduledCastAutoStart.VTable, @ptrCast(self.vtable)).put_StartTime(@as(*const IWdsTransportNamespaceScheduledCastAutoStart, @ptrCast(self)), StartTime); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windowsServer2008' const IID_IWdsTransportContent_Value = Guid.initString("d405d711-0296-4ab4-a860-ac7d32e65798"); pub const IID_IWdsTransportContent = &IID_IWdsTransportContent_Value; pub const IWdsTransportContent = extern struct { pub const VTable = extern struct { base: IDispatch.VTable, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Namespace: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IWdsTransportContent, ppWdsTransportNamespace: ?*?*IWdsTransportNamespace, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IWdsTransportContent, ppWdsTransportNamespace: ?*?*IWdsTransportNamespace, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Id: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IWdsTransportContent, pulId: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IWdsTransportContent, pulId: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Name: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IWdsTransportContent, pbszName: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IWdsTransportContent, pbszName: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, RetrieveSessions: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IWdsTransportContent, ppWdsTransportSessions: ?*?*IWdsTransportCollection, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IWdsTransportContent, ppWdsTransportSessions: ?*?*IWdsTransportCollection, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Terminate: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IWdsTransportContent, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IWdsTransportContent, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IDispatch.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWdsTransportContent_get_Namespace(self: *const T, ppWdsTransportNamespace: ?*?*IWdsTransportNamespace) HRESULT { return @as(*const IWdsTransportContent.VTable, @ptrCast(self.vtable)).get_Namespace(@as(*const IWdsTransportContent, @ptrCast(self)), ppWdsTransportNamespace); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWdsTransportContent_get_Id(self: *const T, pulId: ?*u32) HRESULT { return @as(*const IWdsTransportContent.VTable, @ptrCast(self.vtable)).get_Id(@as(*const IWdsTransportContent, @ptrCast(self)), pulId); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWdsTransportContent_get_Name(self: *const T, pbszName: ?*?BSTR) HRESULT { return @as(*const IWdsTransportContent.VTable, @ptrCast(self.vtable)).get_Name(@as(*const IWdsTransportContent, @ptrCast(self)), pbszName); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWdsTransportContent_RetrieveSessions(self: *const T, ppWdsTransportSessions: ?*?*IWdsTransportCollection) HRESULT { return @as(*const IWdsTransportContent.VTable, @ptrCast(self.vtable)).RetrieveSessions(@as(*const IWdsTransportContent, @ptrCast(self)), ppWdsTransportSessions); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWdsTransportContent_Terminate(self: *const T) HRESULT { return @as(*const IWdsTransportContent.VTable, @ptrCast(self.vtable)).Terminate(@as(*const IWdsTransportContent, @ptrCast(self))); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windowsServer2008' const IID_IWdsTransportSession_Value = Guid.initString("f4efea88-65b1-4f30-a4b9-2793987796fb"); pub const IID_IWdsTransportSession = &IID_IWdsTransportSession_Value; pub const IWdsTransportSession = extern struct { pub const VTable = extern struct { base: IDispatch.VTable, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Content: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IWdsTransportSession, ppWdsTransportContent: ?*?*IWdsTransportContent, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IWdsTransportSession, ppWdsTransportContent: ?*?*IWdsTransportContent, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Id: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IWdsTransportSession, pulId: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IWdsTransportSession, pulId: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_NetworkInterfaceName: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IWdsTransportSession, pbszNetworkInterfaceName: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IWdsTransportSession, pbszNetworkInterfaceName: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_NetworkInterfaceAddress: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IWdsTransportSession, pbszNetworkInterfaceAddress: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IWdsTransportSession, pbszNetworkInterfaceAddress: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_TransferRate: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IWdsTransportSession, pulTransferRate: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IWdsTransportSession, pulTransferRate: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_MasterClientId: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IWdsTransportSession, pulMasterClientId: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IWdsTransportSession, pulMasterClientId: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, RetrieveClients: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IWdsTransportSession, ppWdsTransportClients: ?*?*IWdsTransportCollection, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IWdsTransportSession, ppWdsTransportClients: ?*?*IWdsTransportCollection, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Terminate: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IWdsTransportSession, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IWdsTransportSession, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IDispatch.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWdsTransportSession_get_Content(self: *const T, ppWdsTransportContent: ?*?*IWdsTransportContent) HRESULT { return @as(*const IWdsTransportSession.VTable, @ptrCast(self.vtable)).get_Content(@as(*const IWdsTransportSession, @ptrCast(self)), ppWdsTransportContent); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWdsTransportSession_get_Id(self: *const T, pulId: ?*u32) HRESULT { return @as(*const IWdsTransportSession.VTable, @ptrCast(self.vtable)).get_Id(@as(*const IWdsTransportSession, @ptrCast(self)), pulId); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWdsTransportSession_get_NetworkInterfaceName(self: *const T, pbszNetworkInterfaceName: ?*?BSTR) HRESULT { return @as(*const IWdsTransportSession.VTable, @ptrCast(self.vtable)).get_NetworkInterfaceName(@as(*const IWdsTransportSession, @ptrCast(self)), pbszNetworkInterfaceName); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWdsTransportSession_get_NetworkInterfaceAddress(self: *const T, pbszNetworkInterfaceAddress: ?*?BSTR) HRESULT { return @as(*const IWdsTransportSession.VTable, @ptrCast(self.vtable)).get_NetworkInterfaceAddress(@as(*const IWdsTransportSession, @ptrCast(self)), pbszNetworkInterfaceAddress); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWdsTransportSession_get_TransferRate(self: *const T, pulTransferRate: ?*u32) HRESULT { return @as(*const IWdsTransportSession.VTable, @ptrCast(self.vtable)).get_TransferRate(@as(*const IWdsTransportSession, @ptrCast(self)), pulTransferRate); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWdsTransportSession_get_MasterClientId(self: *const T, pulMasterClientId: ?*u32) HRESULT { return @as(*const IWdsTransportSession.VTable, @ptrCast(self.vtable)).get_MasterClientId(@as(*const IWdsTransportSession, @ptrCast(self)), pulMasterClientId); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWdsTransportSession_RetrieveClients(self: *const T, ppWdsTransportClients: ?*?*IWdsTransportCollection) HRESULT { return @as(*const IWdsTransportSession.VTable, @ptrCast(self.vtable)).RetrieveClients(@as(*const IWdsTransportSession, @ptrCast(self)), ppWdsTransportClients); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWdsTransportSession_Terminate(self: *const T) HRESULT { return @as(*const IWdsTransportSession.VTable, @ptrCast(self.vtable)).Terminate(@as(*const IWdsTransportSession, @ptrCast(self))); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windowsServer2008' const IID_IWdsTransportClient_Value = Guid.initString("b5dbc93a-cabe-46ca-837f-3e44e93c6545"); pub const IID_IWdsTransportClient = &IID_IWdsTransportClient_Value; pub const IWdsTransportClient = extern struct { pub const VTable = extern struct { base: IDispatch.VTable, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Session: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IWdsTransportClient, ppWdsTransportSession: ?*?*IWdsTransportSession, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IWdsTransportClient, ppWdsTransportSession: ?*?*IWdsTransportSession, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Id: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IWdsTransportClient, pulId: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IWdsTransportClient, pulId: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Name: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IWdsTransportClient, pbszName: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IWdsTransportClient, pbszName: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_MacAddress: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IWdsTransportClient, pbszMacAddress: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IWdsTransportClient, pbszMacAddress: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_IpAddress: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IWdsTransportClient, pbszIpAddress: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IWdsTransportClient, pbszIpAddress: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_PercentCompletion: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IWdsTransportClient, pulPercentCompletion: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IWdsTransportClient, pulPercentCompletion: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_JoinDuration: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IWdsTransportClient, pulJoinDuration: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IWdsTransportClient, pulJoinDuration: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_CpuUtilization: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IWdsTransportClient, pulCpuUtilization: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IWdsTransportClient, pulCpuUtilization: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_MemoryUtilization: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IWdsTransportClient, pulMemoryUtilization: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IWdsTransportClient, pulMemoryUtilization: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_NetworkUtilization: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IWdsTransportClient, pulNetworkUtilization: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IWdsTransportClient, pulNetworkUtilization: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_UserIdentity: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IWdsTransportClient, pbszUserIdentity: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IWdsTransportClient, pbszUserIdentity: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Disconnect: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IWdsTransportClient, DisconnectionType: WDSTRANSPORT_DISCONNECT_TYPE, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IWdsTransportClient, DisconnectionType: WDSTRANSPORT_DISCONNECT_TYPE, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IDispatch.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWdsTransportClient_get_Session(self: *const T, ppWdsTransportSession: ?*?*IWdsTransportSession) HRESULT { return @as(*const IWdsTransportClient.VTable, @ptrCast(self.vtable)).get_Session(@as(*const IWdsTransportClient, @ptrCast(self)), ppWdsTransportSession); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWdsTransportClient_get_Id(self: *const T, pulId: ?*u32) HRESULT { return @as(*const IWdsTransportClient.VTable, @ptrCast(self.vtable)).get_Id(@as(*const IWdsTransportClient, @ptrCast(self)), pulId); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWdsTransportClient_get_Name(self: *const T, pbszName: ?*?BSTR) HRESULT { return @as(*const IWdsTransportClient.VTable, @ptrCast(self.vtable)).get_Name(@as(*const IWdsTransportClient, @ptrCast(self)), pbszName); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWdsTransportClient_get_MacAddress(self: *const T, pbszMacAddress: ?*?BSTR) HRESULT { return @as(*const IWdsTransportClient.VTable, @ptrCast(self.vtable)).get_MacAddress(@as(*const IWdsTransportClient, @ptrCast(self)), pbszMacAddress); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWdsTransportClient_get_IpAddress(self: *const T, pbszIpAddress: ?*?BSTR) HRESULT { return @as(*const IWdsTransportClient.VTable, @ptrCast(self.vtable)).get_IpAddress(@as(*const IWdsTransportClient, @ptrCast(self)), pbszIpAddress); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWdsTransportClient_get_PercentCompletion(self: *const T, pulPercentCompletion: ?*u32) HRESULT { return @as(*const IWdsTransportClient.VTable, @ptrCast(self.vtable)).get_PercentCompletion(@as(*const IWdsTransportClient, @ptrCast(self)), pulPercentCompletion); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWdsTransportClient_get_JoinDuration(self: *const T, pulJoinDuration: ?*u32) HRESULT { return @as(*const IWdsTransportClient.VTable, @ptrCast(self.vtable)).get_JoinDuration(@as(*const IWdsTransportClient, @ptrCast(self)), pulJoinDuration); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWdsTransportClient_get_CpuUtilization(self: *const T, pulCpuUtilization: ?*u32) HRESULT { return @as(*const IWdsTransportClient.VTable, @ptrCast(self.vtable)).get_CpuUtilization(@as(*const IWdsTransportClient, @ptrCast(self)), pulCpuUtilization); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWdsTransportClient_get_MemoryUtilization(self: *const T, pulMemoryUtilization: ?*u32) HRESULT { return @as(*const IWdsTransportClient.VTable, @ptrCast(self.vtable)).get_MemoryUtilization(@as(*const IWdsTransportClient, @ptrCast(self)), pulMemoryUtilization); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWdsTransportClient_get_NetworkUtilization(self: *const T, pulNetworkUtilization: ?*u32) HRESULT { return @as(*const IWdsTransportClient.VTable, @ptrCast(self.vtable)).get_NetworkUtilization(@as(*const IWdsTransportClient, @ptrCast(self)), pulNetworkUtilization); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWdsTransportClient_get_UserIdentity(self: *const T, pbszUserIdentity: ?*?BSTR) HRESULT { return @as(*const IWdsTransportClient.VTable, @ptrCast(self.vtable)).get_UserIdentity(@as(*const IWdsTransportClient, @ptrCast(self)), pbszUserIdentity); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWdsTransportClient_Disconnect(self: *const T, DisconnectionType: WDSTRANSPORT_DISCONNECT_TYPE) HRESULT { return @as(*const IWdsTransportClient.VTable, @ptrCast(self.vtable)).Disconnect(@as(*const IWdsTransportClient, @ptrCast(self)), DisconnectionType); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windowsServer2012' const IID_IWdsTransportTftpClient_Value = Guid.initString("b022d3ae-884d-4d85-b146-53320e76ef62"); pub const IID_IWdsTransportTftpClient = &IID_IWdsTransportTftpClient_Value; pub const IWdsTransportTftpClient = extern struct { pub const VTable = extern struct { base: IDispatch.VTable, // TODO: this function has a "SpecialName", should Zig do anything with this? get_FileName: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IWdsTransportTftpClient, pbszFileName: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IWdsTransportTftpClient, pbszFileName: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_IpAddress: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IWdsTransportTftpClient, pbszIpAddress: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IWdsTransportTftpClient, pbszIpAddress: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Timeout: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IWdsTransportTftpClient, pulTimeout: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IWdsTransportTftpClient, pulTimeout: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_CurrentFileOffset: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IWdsTransportTftpClient, pul64CurrentOffset: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IWdsTransportTftpClient, pul64CurrentOffset: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_FileSize: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IWdsTransportTftpClient, pul64FileSize: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IWdsTransportTftpClient, pul64FileSize: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_BlockSize: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IWdsTransportTftpClient, pulBlockSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IWdsTransportTftpClient, pulBlockSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_WindowSize: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IWdsTransportTftpClient, pulWindowSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IWdsTransportTftpClient, pulWindowSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IDispatch.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWdsTransportTftpClient_get_FileName(self: *const T, pbszFileName: ?*?BSTR) HRESULT { return @as(*const IWdsTransportTftpClient.VTable, @ptrCast(self.vtable)).get_FileName(@as(*const IWdsTransportTftpClient, @ptrCast(self)), pbszFileName); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWdsTransportTftpClient_get_IpAddress(self: *const T, pbszIpAddress: ?*?BSTR) HRESULT { return @as(*const IWdsTransportTftpClient.VTable, @ptrCast(self.vtable)).get_IpAddress(@as(*const IWdsTransportTftpClient, @ptrCast(self)), pbszIpAddress); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWdsTransportTftpClient_get_Timeout(self: *const T, pulTimeout: ?*u32) HRESULT { return @as(*const IWdsTransportTftpClient.VTable, @ptrCast(self.vtable)).get_Timeout(@as(*const IWdsTransportTftpClient, @ptrCast(self)), pulTimeout); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWdsTransportTftpClient_get_CurrentFileOffset(self: *const T, pul64CurrentOffset: ?*u64) HRESULT { return @as(*const IWdsTransportTftpClient.VTable, @ptrCast(self.vtable)).get_CurrentFileOffset(@as(*const IWdsTransportTftpClient, @ptrCast(self)), pul64CurrentOffset); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWdsTransportTftpClient_get_FileSize(self: *const T, pul64FileSize: ?*u64) HRESULT { return @as(*const IWdsTransportTftpClient.VTable, @ptrCast(self.vtable)).get_FileSize(@as(*const IWdsTransportTftpClient, @ptrCast(self)), pul64FileSize); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWdsTransportTftpClient_get_BlockSize(self: *const T, pulBlockSize: ?*u32) HRESULT { return @as(*const IWdsTransportTftpClient.VTable, @ptrCast(self.vtable)).get_BlockSize(@as(*const IWdsTransportTftpClient, @ptrCast(self)), pulBlockSize); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWdsTransportTftpClient_get_WindowSize(self: *const T, pulWindowSize: ?*u32) HRESULT { return @as(*const IWdsTransportTftpClient.VTable, @ptrCast(self.vtable)).get_WindowSize(@as(*const IWdsTransportTftpClient, @ptrCast(self)), pulWindowSize); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windowsServer2012' const IID_IWdsTransportContentProvider_Value = Guid.initString("b9489f24-f219-4acf-aad7-265c7c08a6ae"); pub const IID_IWdsTransportContentProvider = &IID_IWdsTransportContentProvider_Value; pub const IWdsTransportContentProvider = extern struct { pub const VTable = extern struct { base: IDispatch.VTable, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Name: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IWdsTransportContentProvider, pbszName: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IWdsTransportContentProvider, pbszName: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Description: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IWdsTransportContentProvider, pbszDescription: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IWdsTransportContentProvider, pbszDescription: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_FilePath: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IWdsTransportContentProvider, pbszFilePath: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IWdsTransportContentProvider, pbszFilePath: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_InitializationRoutine: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IWdsTransportContentProvider, pbszInitializationRoutine: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IWdsTransportContentProvider, pbszInitializationRoutine: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IDispatch.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWdsTransportContentProvider_get_Name(self: *const T, pbszName: ?*?BSTR) HRESULT { return @as(*const IWdsTransportContentProvider.VTable, @ptrCast(self.vtable)).get_Name(@as(*const IWdsTransportContentProvider, @ptrCast(self)), pbszName); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWdsTransportContentProvider_get_Description(self: *const T, pbszDescription: ?*?BSTR) HRESULT { return @as(*const IWdsTransportContentProvider.VTable, @ptrCast(self.vtable)).get_Description(@as(*const IWdsTransportContentProvider, @ptrCast(self)), pbszDescription); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWdsTransportContentProvider_get_FilePath(self: *const T, pbszFilePath: ?*?BSTR) HRESULT { return @as(*const IWdsTransportContentProvider.VTable, @ptrCast(self.vtable)).get_FilePath(@as(*const IWdsTransportContentProvider, @ptrCast(self)), pbszFilePath); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWdsTransportContentProvider_get_InitializationRoutine(self: *const T, pbszInitializationRoutine: ?*?BSTR) HRESULT { return @as(*const IWdsTransportContentProvider.VTable, @ptrCast(self.vtable)).get_InitializationRoutine(@as(*const IWdsTransportContentProvider, @ptrCast(self)), pbszInitializationRoutine); } }; } pub usingnamespace MethodMixin(@This()); }; //-------------------------------------------------------------------------------- // Section: Functions (94) //-------------------------------------------------------------------------------- // TODO: this type is limited to platform 'windows6.0.6000' pub extern "wdsclientapi" fn WdsCliClose( Handle: ?HANDLE, ) callconv(@import("std").os.windows.WINAPI) HRESULT; // TODO: this type is limited to platform 'windows6.0.6000' pub extern "wdsclientapi" fn WdsCliRegisterTrace( pfn: ?PFN_WdsCliTraceFunction, ) callconv(@import("std").os.windows.WINAPI) HRESULT; // TODO: this type is limited to platform 'windows6.1' pub extern "wdsclientapi" fn WdsCliFreeStringArray( ppwszArray: ?[*]?PWSTR, ulCount: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT; // TODO: this type is limited to platform 'windows6.0.6000' pub extern "wdsclientapi" fn WdsCliFindFirstImage( hSession: ?HANDLE, phFindHandle: ?*?HANDLE, ) callconv(@import("std").os.windows.WINAPI) HRESULT; // TODO: this type is limited to platform 'windows6.0.6000' pub extern "wdsclientapi" fn WdsCliFindNextImage( Handle: ?HANDLE, ) callconv(@import("std").os.windows.WINAPI) HRESULT; // TODO: this type is limited to platform 'windows6.0.6000' pub extern "wdsclientapi" fn WdsCliGetEnumerationFlags( Handle: ?HANDLE, pdwFlags: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT; // TODO: this type is limited to platform 'windows6.0.6000' pub extern "wdsclientapi" fn WdsCliGetImageHandleFromFindHandle( FindHandle: ?HANDLE, phImageHandle: ?*?HANDLE, ) callconv(@import("std").os.windows.WINAPI) HRESULT; // TODO: this type is limited to platform 'windows6.0.6000' pub extern "wdsclientapi" fn WdsCliGetImageHandleFromTransferHandle( hTransfer: ?HANDLE, phImageHandle: ?*?HANDLE, ) callconv(@import("std").os.windows.WINAPI) HRESULT; // TODO: this type is limited to platform 'windows6.0.6000' pub extern "wdsclientapi" fn WdsCliCreateSession( pwszServer: ?PWSTR, pCred: ?*WDS_CLI_CRED, phSession: ?*?HANDLE, ) callconv(@import("std").os.windows.WINAPI) HRESULT; // TODO: this type is limited to platform 'windows6.0.6000' pub extern "wdsclientapi" fn WdsCliAuthorizeSession( hSession: ?HANDLE, pCred: ?*WDS_CLI_CRED, ) callconv(@import("std").os.windows.WINAPI) HRESULT; // TODO: this type is limited to platform 'windows6.0.6000' pub extern "wdsclientapi" fn WdsCliInitializeLog( hSession: ?HANDLE, ulClientArchitecture: CPU_ARCHITECTURE, pwszClientId: ?PWSTR, pwszClientAddress: ?PWSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT; // TODO: this type is limited to platform 'windows6.0.6000' pub extern "wdsclientapi" fn WdsCliLog( hSession: ?HANDLE, ulLogLevel: u32, ulMessageCode: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT; // TODO: this type is limited to platform 'windows6.0.6000' pub extern "wdsclientapi" fn WdsCliGetImageName( hIfh: ?HANDLE, ppwszValue: ?*?PWSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT; // TODO: this type is limited to platform 'windows6.0.6000' pub extern "wdsclientapi" fn WdsCliGetImageDescription( hIfh: ?HANDLE, ppwszValue: ?*?PWSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT; pub extern "wdsclientapi" fn WdsCliGetImageType( hIfh: ?HANDLE, pImageType: ?*WDS_CLI_IMAGE_TYPE, ) callconv(@import("std").os.windows.WINAPI) HRESULT; pub extern "wdsclientapi" fn WdsCliGetImageFiles( hIfh: ?HANDLE, pppwszFiles: ?*?*?PWSTR, pdwCount: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT; // TODO: this type is limited to platform 'windows6.0.6000' pub extern "wdsclientapi" fn WdsCliGetImageLanguage( hIfh: ?HANDLE, ppwszValue: ?*?PWSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT; // TODO: this type is limited to platform 'windows6.0.6000' pub extern "wdsclientapi" fn WdsCliGetImageLanguages( hIfh: ?HANDLE, pppszValues: ?*?*?*i8, pdwNumValues: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT; // TODO: this type is limited to platform 'windows6.0.6000' pub extern "wdsclientapi" fn WdsCliGetImageVersion( hIfh: ?HANDLE, ppwszValue: ?*?PWSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT; // TODO: this type is limited to platform 'windows6.0.6000' pub extern "wdsclientapi" fn WdsCliGetImagePath( hIfh: ?HANDLE, ppwszValue: ?*?PWSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT; // TODO: this type is limited to platform 'windows6.0.6000' pub extern "wdsclientapi" fn WdsCliGetImageIndex( hIfh: ?HANDLE, pdwValue: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT; // TODO: this type is limited to platform 'windows6.0.6000' pub extern "wdsclientapi" fn WdsCliGetImageArchitecture( hIfh: ?HANDLE, pdwValue: ?*CPU_ARCHITECTURE, ) callconv(@import("std").os.windows.WINAPI) HRESULT; // TODO: this type is limited to platform 'windows6.0.6000' pub extern "wdsclientapi" fn WdsCliGetImageLastModifiedTime( hIfh: ?HANDLE, ppSysTimeValue: ?*?*SYSTEMTIME, ) callconv(@import("std").os.windows.WINAPI) HRESULT; // TODO: this type is limited to platform 'windows6.0.6000' pub extern "wdsclientapi" fn WdsCliGetImageSize( hIfh: ?HANDLE, pullValue: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT; // TODO: this type is limited to platform 'windows6.0.6000' pub extern "wdsclientapi" fn WdsCliGetImageHalName( hIfh: ?HANDLE, ppwszValue: ?*?PWSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT; // TODO: this type is limited to platform 'windows6.0.6000' pub extern "wdsclientapi" fn WdsCliGetImageGroup( hIfh: ?HANDLE, ppwszValue: ?*?PWSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT; // TODO: this type is limited to platform 'windows6.0.6000' pub extern "wdsclientapi" fn WdsCliGetImageNamespace( hIfh: ?HANDLE, ppwszValue: ?*?PWSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT; pub extern "wdsclientapi" fn WdsCliGetImageParameter( hIfh: ?HANDLE, ParamType: WDS_CLI_IMAGE_PARAM_TYPE, // TODO: what to do with BytesParamIndex 3? pResponse: ?*anyopaque, uResponseLen: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT; // TODO: this type is limited to platform 'windows6.0.6000' pub extern "wdsclientapi" fn WdsCliGetTransferSize( hIfh: ?HANDLE, pullValue: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT; pub extern "wdsclientapi" fn WdsCliSetTransferBufferSize( ulSizeInBytes: u32, ) callconv(@import("std").os.windows.WINAPI) void; // TODO: this type is limited to platform 'windows6.0.6000' pub extern "wdsclientapi" fn WdsCliTransferImage( hImage: ?HANDLE, pwszLocalPath: ?PWSTR, dwFlags: u32, dwReserved: u32, pfnWdsCliCallback: ?PFN_WdsCliCallback, pvUserData: ?*anyopaque, phTransfer: ?*?HANDLE, ) callconv(@import("std").os.windows.WINAPI) HRESULT; // TODO: this type is limited to platform 'windows6.0.6000' pub extern "wdsclientapi" fn WdsCliTransferFile( pwszServer: ?[*:0]const u16, pwszNamespace: ?[*:0]const u16, pwszRemoteFilePath: ?[*:0]const u16, pwszLocalFilePath: ?[*:0]const u16, dwFlags: u32, dwReserved: u32, pfnWdsCliCallback: ?PFN_WdsCliCallback, pvUserData: ?*anyopaque, phTransfer: ?*?HANDLE, ) callconv(@import("std").os.windows.WINAPI) HRESULT; // TODO: this type is limited to platform 'windows6.0.6000' pub extern "wdsclientapi" fn WdsCliCancelTransfer( hTransfer: ?HANDLE, ) callconv(@import("std").os.windows.WINAPI) HRESULT; // TODO: this type is limited to platform 'windows6.0.6000' pub extern "wdsclientapi" fn WdsCliWaitForTransfer( hTransfer: ?HANDLE, ) callconv(@import("std").os.windows.WINAPI) HRESULT; // TODO: this type is limited to platform 'windows6.1' pub extern "wdsclientapi" fn WdsCliObtainDriverPackages( hImage: ?HANDLE, ppwszServerName: ?*?PWSTR, pppwszDriverPackages: ?*?*?PWSTR, pulCount: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT; // TODO: this type is limited to platform 'windows8.0' pub extern "wdsclientapi" fn WdsCliObtainDriverPackagesEx( hSession: ?HANDLE, pwszMachineInfo: ?PWSTR, ppwszServerName: ?*?PWSTR, pppwszDriverPackages: ?*?*?PWSTR, pulCount: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT; // TODO: this type is limited to platform 'windows8.0' pub extern "wdsclientapi" fn WdsCliGetDriverQueryXml( pwszWinDirPath: ?PWSTR, ppwszDriverQuery: ?*?PWSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT; // TODO: this type is limited to platform 'windowsServer2008' pub extern "wdspxe" fn PxeProviderRegister( pszProviderName: ?[*:0]const u16, pszModulePath: ?[*:0]const u16, Index: u32, bIsCritical: BOOL, phProviderKey: ?*?HKEY, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'windowsServer2008' pub extern "wdspxe" fn PxeProviderUnRegister( pszProviderName: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'windowsServer2008' pub extern "wdspxe" fn PxeProviderQueryIndex( pszProviderName: ?[*:0]const u16, puIndex: ?*u32, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'windowsServer2008' pub extern "wdspxe" fn PxeProviderEnumFirst( phEnum: ?*?HANDLE, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'windowsServer2008' pub extern "wdspxe" fn PxeProviderEnumNext( hEnum: ?HANDLE, ppProvider: ?*?*PXE_PROVIDER, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'windowsServer2008' pub extern "wdspxe" fn PxeProviderEnumClose( hEnum: ?HANDLE, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'windowsServer2008' pub extern "wdspxe" fn PxeProviderFreeInfo( pProvider: ?*PXE_PROVIDER, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'windowsServer2008' pub extern "wdspxe" fn PxeRegisterCallback( hProvider: ?HANDLE, CallbackType: u32, pCallbackFunction: ?*anyopaque, pContext: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'windowsServer2008' pub extern "wdspxe" fn PxeSendReply( hClientRequest: ?HANDLE, // TODO: what to do with BytesParamIndex 2? pPacket: ?*anyopaque, uPacketLen: u32, pAddress: ?*PXE_ADDRESS, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'windowsServer2008' pub extern "wdspxe" fn PxeAsyncRecvDone( hClientRequest: ?HANDLE, Action: u32, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'windowsServer2008' pub extern "wdspxe" fn PxeTrace( hProvider: ?HANDLE, Severity: u32, pszFormat: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) u32; pub extern "wdspxe" fn PxeTraceV( hProvider: ?HANDLE, Severity: u32, pszFormat: ?[*:0]const u16, Params: ?*i8, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'windowsServer2008' pub extern "wdspxe" fn PxePacketAllocate( hProvider: ?HANDLE, hClientRequest: ?HANDLE, uSize: u32, ) callconv(@import("std").os.windows.WINAPI) ?*anyopaque; // TODO: this type is limited to platform 'windowsServer2008' pub extern "wdspxe" fn PxePacketFree( hProvider: ?HANDLE, hClientRequest: ?HANDLE, pPacket: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'windowsServer2008' pub extern "wdspxe" fn PxeProviderSetAttribute( hProvider: ?HANDLE, Attribute: u32, // TODO: what to do with BytesParamIndex 3? pParameterBuffer: ?*anyopaque, uParamLen: u32, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'windowsServer2008' pub extern "wdspxe" fn PxeDhcpInitialize( // TODO: what to do with BytesParamIndex 1? pRecvPacket: ?*anyopaque, uRecvPacketLen: u32, // TODO: what to do with BytesParamIndex 3? pReplyPacket: ?*anyopaque, uMaxReplyPacketLen: u32, puReplyPacketLen: ?*u32, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'windows8.0' pub extern "wdspxe" fn PxeDhcpv6Initialize( // TODO: what to do with BytesParamIndex 1? pRequest: ?*anyopaque, cbRequest: u32, // TODO: what to do with BytesParamIndex 3? pReply: ?*anyopaque, cbReply: u32, pcbReplyUsed: ?*u32, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'windowsServer2008' pub extern "wdspxe" fn PxeDhcpAppendOption( // TODO: what to do with BytesParamIndex 1? pReplyPacket: ?*anyopaque, uMaxReplyPacketLen: u32, puReplyPacketLen: ?*u32, bOption: u8, bOptionLen: u8, // TODO: what to do with BytesParamIndex 4? pValue: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'windows8.0' pub extern "wdspxe" fn PxeDhcpv6AppendOption( // TODO: what to do with BytesParamIndex 1? pReply: ?*anyopaque, cbReply: u32, pcbReplyUsed: ?*u32, wOptionType: u16, cbOption: u16, // TODO: what to do with BytesParamIndex 4? pOption: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'windowsServer2008' pub extern "wdspxe" fn PxeDhcpAppendOptionRaw( // TODO: what to do with BytesParamIndex 1? pReplyPacket: ?*anyopaque, uMaxReplyPacketLen: u32, puReplyPacketLen: ?*u32, uBufferLen: u16, // TODO: what to do with BytesParamIndex 3? pBuffer: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'windows8.0' pub extern "wdspxe" fn PxeDhcpv6AppendOptionRaw( // TODO: what to do with BytesParamIndex 1? pReply: ?*anyopaque, cbReply: u32, pcbReplyUsed: ?*u32, cbBuffer: u16, // TODO: what to do with BytesParamIndex 3? pBuffer: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'windowsServer2008' pub extern "wdspxe" fn PxeDhcpIsValid( // TODO: what to do with BytesParamIndex 1? pPacket: ?*anyopaque, uPacketLen: u32, bRequestPacket: BOOL, pbPxeOptionPresent: ?*BOOL, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'windows8.0' pub extern "wdspxe" fn PxeDhcpv6IsValid( // TODO: what to do with BytesParamIndex 1? pPacket: ?*anyopaque, uPacketLen: u32, bRequestPacket: BOOL, pbPxeOptionPresent: ?*BOOL, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'windowsServer2008' pub extern "wdspxe" fn PxeDhcpGetOptionValue( // TODO: what to do with BytesParamIndex 1? pPacket: ?*anyopaque, uPacketLen: u32, uInstance: u32, bOption: u8, pbOptionLen: ?*u8, ppOptionValue: ?*?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'windows8.0' pub extern "wdspxe" fn PxeDhcpv6GetOptionValue( // TODO: what to do with BytesParamIndex 1? pPacket: ?*anyopaque, uPacketLen: u32, uInstance: u32, wOption: u16, pwOptionLen: ?*u16, ppOptionValue: ?*?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'windowsServer2008' pub extern "wdspxe" fn PxeDhcpGetVendorOptionValue( // TODO: what to do with BytesParamIndex 1? pPacket: ?*anyopaque, uPacketLen: u32, bOption: u8, uInstance: u32, pbOptionLen: ?*u8, ppOptionValue: ?*?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'windows8.0' pub extern "wdspxe" fn PxeDhcpv6GetVendorOptionValue( // TODO: what to do with BytesParamIndex 1? pPacket: ?*anyopaque, uPacketLen: u32, dwEnterpriseNumber: u32, wOption: u16, uInstance: u32, pwOptionLen: ?*u16, ppOptionValue: ?*?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'windows8.0' pub extern "wdspxe" fn PxeDhcpv6ParseRelayForw( // TODO: what to do with BytesParamIndex 1? pRelayForwPacket: ?*anyopaque, uRelayForwPacketLen: u32, pRelayMessages: [*]PXE_DHCPV6_NESTED_RELAY_MESSAGE, nRelayMessages: u32, pnRelayMessages: ?*u32, ppInnerPacket: ?*?*u8, pcbInnerPacket: ?*u32, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'windows8.0' pub extern "wdspxe" fn PxeDhcpv6CreateRelayRepl( pRelayMessages: [*]PXE_DHCPV6_NESTED_RELAY_MESSAGE, nRelayMessages: u32, // TODO: what to do with BytesParamIndex 3? pInnerPacket: ?*u8, cbInnerPacket: u32, // TODO: what to do with BytesParamIndex 5? pReplyBuffer: ?*anyopaque, cbReplyBuffer: u32, pcbReplyBuffer: ?*u32, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'windowsServer2008' pub extern "wdspxe" fn PxeGetServerInfo( uInfoType: u32, // TODO: what to do with BytesParamIndex 2? pBuffer: ?*anyopaque, uBufferLen: u32, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'windows8.0' pub extern "wdspxe" fn PxeGetServerInfoEx( uInfoType: u32, // TODO: what to do with BytesParamIndex 2? pBuffer: ?*anyopaque, uBufferLen: u32, puBufferUsed: ?*u32, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'windowsServer2008' pub extern "wdsmc" fn WdsTransportServerRegisterCallback( hProvider: ?HANDLE, CallbackId: TRANSPORTPROVIDER_CALLBACK_ID, pfnCallback: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) HRESULT; // TODO: this type is limited to platform 'windowsServer2008' pub extern "wdsmc" fn WdsTransportServerCompleteRead( hProvider: ?HANDLE, ulBytesRead: u32, pvUserData: ?*anyopaque, hReadResult: HRESULT, ) callconv(@import("std").os.windows.WINAPI) HRESULT; // TODO: this type is limited to platform 'windowsServer2008' pub extern "wdsmc" fn WdsTransportServerTrace( hProvider: ?HANDLE, Severity: u32, pwszFormat: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT; // TODO: this type is limited to platform 'windowsServer2008' pub extern "wdsmc" fn WdsTransportServerTraceV( hProvider: ?HANDLE, Severity: u32, pwszFormat: ?[*:0]const u16, Params: ?*i8, ) callconv(@import("std").os.windows.WINAPI) HRESULT; // TODO: this type is limited to platform 'windowsServer2008' pub extern "wdsmc" fn WdsTransportServerAllocateBuffer( hProvider: ?HANDLE, ulBufferSize: u32, ) callconv(@import("std").os.windows.WINAPI) ?*anyopaque; // TODO: this type is limited to platform 'windowsServer2008' pub extern "wdsmc" fn WdsTransportServerFreeBuffer( hProvider: ?HANDLE, pvBuffer: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) HRESULT; // TODO: this type is limited to platform 'windows6.0.6000' pub extern "wdstptc" fn WdsTransportClientInitialize() callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'windows6.0.6000' pub extern "wdstptc" fn WdsTransportClientInitializeSession( pSessionRequest: ?*WDS_TRANSPORTCLIENT_REQUEST, pCallerData: ?*anyopaque, hSessionKey: ?*?HANDLE, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'windows6.0.6000' pub extern "wdstptc" fn WdsTransportClientRegisterCallback( hSessionKey: ?HANDLE, CallbackId: TRANSPORTCLIENT_CALLBACK_ID, pfnCallback: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'windows6.0.6000' pub extern "wdstptc" fn WdsTransportClientStartSession( hSessionKey: ?HANDLE, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'windows6.0.6000' pub extern "wdstptc" fn WdsTransportClientCompleteReceive( hSessionKey: ?HANDLE, ulSize: u32, pullOffset: ?*ULARGE_INTEGER, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'windows6.0.6000' pub extern "wdstptc" fn WdsTransportClientCancelSession( hSessionKey: ?HANDLE, ) callconv(@import("std").os.windows.WINAPI) u32; pub extern "wdstptc" fn WdsTransportClientCancelSessionEx( hSessionKey: ?HANDLE, dwErrorCode: u32, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'windows6.0.6000' pub extern "wdstptc" fn WdsTransportClientWaitForCompletion( hSessionKey: ?HANDLE, uTimeout: u32, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'windows6.0.6000' pub extern "wdstptc" fn WdsTransportClientQueryStatus( hSessionKey: ?HANDLE, puStatus: ?*u32, puErrorCode: ?*u32, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'windows6.0.6000' pub extern "wdstptc" fn WdsTransportClientCloseSession( hSessionKey: ?HANDLE, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'windows6.0.6000' pub extern "wdstptc" fn WdsTransportClientAddRefBuffer( pvBuffer: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'windows6.0.6000' pub extern "wdstptc" fn WdsTransportClientReleaseBuffer( pvBuffer: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'windows6.0.6000' pub extern "wdstptc" fn WdsTransportClientShutdown() callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'windows6.0.6000' pub extern "wdsbp" fn WdsBpParseInitialize( // TODO: what to do with BytesParamIndex 1? pPacket: ?*anyopaque, uPacketLen: u32, pbPacketType: ?*u8, phHandle: ?*?HANDLE, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'windows8.0' pub extern "wdsbp" fn WdsBpParseInitializev6( // TODO: what to do with BytesParamIndex 1? pPacket: ?*anyopaque, uPacketLen: u32, pbPacketType: ?*u8, phHandle: ?*?HANDLE, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'windows6.0.6000' pub extern "wdsbp" fn WdsBpInitialize( bPacketType: u8, phHandle: ?*?HANDLE, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'windows6.0.6000' pub extern "wdsbp" fn WdsBpCloseHandle( hHandle: ?HANDLE, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'windows6.0.6000' pub extern "wdsbp" fn WdsBpQueryOption( hHandle: ?HANDLE, uOption: u32, uValueLen: u32, // TODO: what to do with BytesParamIndex 2? pValue: ?*anyopaque, puBytes: ?*u32, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'windows6.0.6000' pub extern "wdsbp" fn WdsBpAddOption( hHandle: ?HANDLE, uOption: u32, uValueLen: u32, // TODO: what to do with BytesParamIndex 2? pValue: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'windows6.0.6000' pub extern "wdsbp" fn WdsBpGetOptionBuffer( hHandle: ?HANDLE, uBufferLen: u32, // TODO: what to do with BytesParamIndex 1? pBuffer: ?*anyopaque, puBytes: ?*u32, ) callconv(@import("std").os.windows.WINAPI) u32; //-------------------------------------------------------------------------------- // Section: Unicode Aliases (0) //-------------------------------------------------------------------------------- const thismodule = @This(); pub usingnamespace switch (@import("../zig.zig").unicode_mode) { .ansi => struct {}, .wide => struct {}, .unspecified => if (@import("builtin").is_test) struct {} else struct {}, }; //-------------------------------------------------------------------------------- // Section: Imports (13) //-------------------------------------------------------------------------------- const Guid = @import("../zig.zig").Guid; const BOOL = @import("../foundation.zig").BOOL; const BSTR = @import("../foundation.zig").BSTR; const HANDLE = @import("../foundation.zig").HANDLE; const HKEY = @import("../system/registry.zig").HKEY; const HRESULT = @import("../foundation.zig").HRESULT; const IDispatch = @import("../system/com.zig").IDispatch; const IUnknown = @import("../system/com.zig").IUnknown; const LPARAM = @import("../foundation.zig").LPARAM; const PWSTR = @import("../foundation.zig").PWSTR; const SYSTEMTIME = @import("../foundation.zig").SYSTEMTIME; const ULARGE_INTEGER = @import("../foundation.zig").ULARGE_INTEGER; const WPARAM = @import("../foundation.zig").WPARAM; test { // The following '_ = <FuncPtrType>' lines are a workaround for https://github.com/ziglang/zig/issues/4476 if (@hasDecl(@This(), "PFN_WdsCliTraceFunction")) { _ = PFN_WdsCliTraceFunction; } if (@hasDecl(@This(), "PFN_WdsCliCallback")) { _ = PFN_WdsCliCallback; } if (@hasDecl(@This(), "PFN_WdsTransportClientSessionStart")) { _ = PFN_WdsTransportClientSessionStart; } if (@hasDecl(@This(), "PFN_WdsTransportClientSessionStartEx")) { _ = PFN_WdsTransportClientSessionStartEx; } if (@hasDecl(@This(), "PFN_WdsTransportClientReceiveMetadata")) { _ = PFN_WdsTransportClientReceiveMetadata; } if (@hasDecl(@This(), "PFN_WdsTransportClientReceiveContents")) { _ = PFN_WdsTransportClientReceiveContents; } if (@hasDecl(@This(), "PFN_WdsTransportClientSessionComplete")) { _ = PFN_WdsTransportClientSessionComplete; } if (@hasDecl(@This(), "PFN_WdsTransportClientSessionNegotiate")) { _ = PFN_WdsTransportClientSessionNegotiate; } @setEvalBranchQuota(comptime @import("std").meta.declarations(@This()).len * 3); // reference all the pub declarations if (!@import("builtin").is_test) return; inline for (comptime @import("std").meta.declarations(@This())) |decl| { if (decl.is_pub) { _ = @field(@This(), decl.name); } } }
0
repos/capy/vendor/zigwin32/win32
repos/capy/vendor/zigwin32/win32/system/remote_management.zig
//! NOTE: this file is autogenerated, DO NOT MODIFY //-------------------------------------------------------------------------------- // Section: Constants (538) //-------------------------------------------------------------------------------- pub const WSMAN_FLAG_REQUESTED_API_VERSION_1_0 = @as(u32, 0); pub const WSMAN_FLAG_REQUESTED_API_VERSION_1_1 = @as(u32, 1); pub const WSMAN_OPERATION_INFOV1 = @as(u32, 0); pub const WSMAN_OPERATION_INFOV2 = @as(u32, 2864434397); pub const WSMAN_DEFAULT_TIMEOUT_MS = @as(u32, 60000); pub const WSMAN_FLAG_RECEIVE_RESULT_NO_MORE_DATA = @as(u32, 1); pub const WSMAN_FLAG_RECEIVE_FLUSH = @as(u32, 2); pub const WSMAN_FLAG_RECEIVE_RESULT_DATA_BOUNDARY = @as(u32, 4); pub const WSMAN_PLUGIN_PARAMS_MAX_ENVELOPE_SIZE = @as(u32, 1); pub const WSMAN_PLUGIN_PARAMS_TIMEOUT = @as(u32, 2); pub const WSMAN_PLUGIN_PARAMS_REMAINING_RESULT_SIZE = @as(u32, 3); pub const WSMAN_PLUGIN_PARAMS_LARGEST_RESULT_SIZE = @as(u32, 4); pub const WSMAN_PLUGIN_PARAMS_GET_REQUESTED_LOCALE = @as(u32, 5); pub const WSMAN_PLUGIN_PARAMS_GET_REQUESTED_DATA_LOCALE = @as(u32, 6); pub const WSMAN_PLUGIN_PARAMS_SHAREDHOST = @as(u32, 1); pub const WSMAN_PLUGIN_PARAMS_RUNAS_USER = @as(u32, 2); pub const WSMAN_PLUGIN_PARAMS_AUTORESTART = @as(u32, 3); pub const WSMAN_PLUGIN_PARAMS_HOSTIDLETIMEOUTSECONDS = @as(u32, 4); pub const WSMAN_PLUGIN_PARAMS_NAME = @as(u32, 5); pub const WSMAN_PLUGIN_STARTUP_REQUEST_RECEIVED = @as(u32, 0); pub const WSMAN_PLUGIN_STARTUP_AUTORESTARTED_REBOOT = @as(u32, 1); pub const WSMAN_PLUGIN_STARTUP_AUTORESTARTED_CRASH = @as(u32, 2); pub const WSMAN_PLUGIN_SHUTDOWN_SYSTEM = @as(u32, 1); pub const WSMAN_PLUGIN_SHUTDOWN_SERVICE = @as(u32, 2); pub const WSMAN_PLUGIN_SHUTDOWN_IISHOST = @as(u32, 3); pub const WSMAN_PLUGIN_SHUTDOWN_IDLETIMEOUT_ELAPSED = @as(u32, 4); pub const WSMAN_FLAG_SEND_NO_MORE_DATA = @as(u32, 1); pub const ERROR_WSMAN_RESOURCE_NOT_FOUND = @as(u32, 2150858752); pub const ERROR_WSMAN_INVALID_ACTIONURI = @as(u32, 2150858753); pub const ERROR_WSMAN_INVALID_URI = @as(u32, 2150858754); pub const ERROR_WSMAN_PROVIDER_FAILURE = @as(u32, 2150858755); pub const ERROR_WSMAN_BATCH_COMPLETE = @as(u32, 2150858756); pub const ERROR_WSMAN_CONFIG_CORRUPTED = @as(u32, 2150858757); pub const ERROR_WSMAN_PULL_IN_PROGRESS = @as(u32, 2150858758); pub const ERROR_WSMAN_ENUMERATION_CLOSED = @as(u32, 2150858759); pub const ERROR_WSMAN_SUBSCRIPTION_CLOSED = @as(u32, 2150858760); pub const ERROR_WSMAN_SUBSCRIPTION_CLOSE_IN_PROGRESS = @as(u32, 2150858761); pub const ERROR_WSMAN_SUBSCRIPTION_CLIENT_DID_NOT_CALL_WITHIN_HEARTBEAT = @as(u32, 2150858762); pub const ERROR_WSMAN_SUBSCRIPTION_NO_HEARTBEAT = @as(u32, 2150858763); pub const ERROR_WSMAN_UNSUPPORTED_TIMEOUT = @as(u32, 2150858764); pub const ERROR_WSMAN_SOAP_VERSION_MISMATCH = @as(u32, 2150858765); pub const ERROR_WSMAN_SOAP_DATA_ENCODING_UNKNOWN = @as(u32, 2150858766); pub const ERROR_WSMAN_INVALID_MESSAGE_INFORMATION_HEADER = @as(u32, 2150858767); pub const ERROR_WSMAN_SOAP_FAULT_MUST_UNDERSTAND = @as(u32, 2150858768); pub const ERROR_WSMAN_MESSAGE_INFORMATION_HEADER_REQUIRED = @as(u32, 2150858769); pub const ERROR_WSMAN_DESTINATION_UNREACHABLE = @as(u32, 2150858770); pub const ERROR_WSMAN_ACTION_NOT_SUPPORTED = @as(u32, 2150858771); pub const ERROR_WSMAN_ENDPOINT_UNAVAILABLE = @as(u32, 2150858772); pub const ERROR_WSMAN_INVALID_REPRESENTATION = @as(u32, 2150858773); pub const ERROR_WSMAN_ENUMERATE_INVALID_EXPIRATION_TIME = @as(u32, 2150858774); pub const ERROR_WSMAN_ENUMERATE_UNSUPPORTED_EXPIRATION_TIME = @as(u32, 2150858775); pub const ERROR_WSMAN_ENUMERATE_FILTERING_NOT_SUPPORTED = @as(u32, 2150858776); pub const ERROR_WSMAN_ENUMERATE_FILTER_DIALECT_REQUESTED_UNAVAILABLE = @as(u32, 2150858777); pub const ERROR_WSMAN_ENUMERATE_CANNOT_PROCESS_FILTER = @as(u32, 2150858778); pub const ERROR_WSMAN_ENUMERATE_INVALID_ENUMERATION_CONTEXT = @as(u32, 2150858779); pub const ERROR_WSMAN_ENUMERATE_TIMED_OUT = @as(u32, 2150858780); pub const ERROR_WSMAN_ENUMERATE_UNABLE_TO_RENEW = @as(u32, 2150858781); pub const ERROR_WSMAN_EVENTING_DELIVERY_MODE_REQUESTED_UNAVAILABLE = @as(u32, 2150858782); pub const ERROR_WSMAN_EVENTING_INVALID_EXPIRATION_TIME = @as(u32, 2150858783); pub const ERROR_WSMAN_EVENTING_UNSUPPORTED_EXPIRATION_TYPE = @as(u32, 2150858784); pub const ERROR_WSMAN_EVENTING_FILTERING_NOT_SUPPORTED = @as(u32, 2150858785); pub const ERROR_WSMAN_EVENTING_FILTERING_REQUESTED_UNAVAILABLE = @as(u32, 2150858786); pub const ERROR_WSMAN_EVENTING_SOURCE_UNABLE_TO_PROCESS = @as(u32, 2150858787); pub const ERROR_WSMAN_EVENTING_UNABLE_TO_RENEW = @as(u32, 2150858788); pub const ERROR_WSMAN_EVENTING_INVALID_MESSAGE = @as(u32, 2150858789); pub const ERROR_WSMAN_ENVELOPE_TOO_LARGE = @as(u32, 2150858790); pub const ERROR_WSMAN_INVALID_SOAP_BODY = @as(u32, 2150858791); pub const ERROR_WSMAN_INVALID_RESUMPTION_CONTEXT = @as(u32, 2150858792); pub const ERROR_WSMAN_OPERATION_TIMEDOUT = @as(u32, 2150858793); pub const ERROR_WSMAN_RESUMPTION_NOT_SUPPORTED = @as(u32, 2150858794); pub const ERROR_WSMAN_RESUMPTION_TYPE_NOT_SUPPORTED = @as(u32, 2150858795); pub const ERROR_WSMAN_UNSUPPORTED_ENCODING = @as(u32, 2150858796); pub const ERROR_WSMAN_URI_LIMIT = @as(u32, 2150858797); pub const ERROR_WSMAN_INVALID_PROPOSED_ID = @as(u32, 2150858798); pub const ERROR_WSMAN_INVALID_BATCH_PARAMETER = @as(u32, 2150858799); pub const ERROR_WSMAN_NO_ACK = @as(u32, 2150858800); pub const ERROR_WSMAN_ACTION_MISMATCH = @as(u32, 2150858801); pub const ERROR_WSMAN_CONCURRENCY = @as(u32, 2150858802); pub const ERROR_WSMAN_ALREADY_EXISTS = @as(u32, 2150858803); pub const ERROR_WSMAN_DELIVERY_REFUSED = @as(u32, 2150858804); pub const ERROR_WSMAN_ENCODING_LIMIT = @as(u32, 2150858805); pub const ERROR_WSMAN_FAILED_AUTHENTICATION = @as(u32, 2150858806); pub const ERROR_WSMAN_INCOMPATIBLE_EPR = @as(u32, 2150858807); pub const ERROR_WSMAN_INVALID_BOOKMARK = @as(u32, 2150858808); pub const ERROR_WSMAN_INVALID_OPTIONS = @as(u32, 2150858809); pub const ERROR_WSMAN_INVALID_PARAMETER = @as(u32, 2150858810); pub const ERROR_WSMAN_INVALID_RESOURCE_URI = @as(u32, 2150858811); pub const ERROR_WSMAN_INVALID_SYSTEM = @as(u32, 2150858812); pub const ERROR_WSMAN_INVALID_SELECTORS = @as(u32, 2150858813); pub const ERROR_WSMAN_METADATA_REDIRECT = @as(u32, 2150858814); pub const ERROR_WSMAN_QUOTA_LIMIT = @as(u32, 2150858815); pub const ERROR_WSMAN_RENAME_FAILURE = @as(u32, 2150858816); pub const ERROR_WSMAN_SCHEMA_VALIDATION_ERROR = @as(u32, 2150858817); pub const ERROR_WSMAN_UNSUPPORTED_FEATURE = @as(u32, 2150858818); pub const ERROR_WSMAN_INVALID_XML = @as(u32, 2150858819); pub const ERROR_WSMAN_INVALID_KEY = @as(u32, 2150858820); pub const ERROR_WSMAN_DELIVER_IN_PROGRESS = @as(u32, 2150858821); pub const ERROR_WSMAN_SYSTEM_NOT_FOUND = @as(u32, 2150858822); pub const ERROR_WSMAN_MAX_ENVELOPE_SIZE = @as(u32, 2150858823); pub const ERROR_WSMAN_MAX_ENVELOPE_SIZE_EXCEEDED = @as(u32, 2150858824); pub const ERROR_WSMAN_SERVER_ENVELOPE_LIMIT = @as(u32, 2150858825); pub const ERROR_WSMAN_SELECTOR_LIMIT = @as(u32, 2150858826); pub const ERROR_WSMAN_OPTION_LIMIT = @as(u32, 2150858827); pub const ERROR_WSMAN_CHARACTER_SET = @as(u32, 2150858828); pub const ERROR_WSMAN_UNREPORTABLE_SUCCESS = @as(u32, 2150858829); pub const ERROR_WSMAN_WHITESPACE = @as(u32, 2150858830); pub const ERROR_WSMAN_FILTERING_REQUIRED = @as(u32, 2150858831); pub const ERROR_WSMAN_BOOKMARK_EXPIRED = @as(u32, 2150858832); pub const ERROR_WSMAN_OPTIONS_NOT_SUPPORTED = @as(u32, 2150858833); pub const ERROR_WSMAN_OPTIONS_INVALID_NAME = @as(u32, 2150858834); pub const ERROR_WSMAN_OPTIONS_INVALID_VALUE = @as(u32, 2150858835); pub const ERROR_WSMAN_PARAMETER_TYPE_MISMATCH = @as(u32, 2150858836); pub const ERROR_WSMAN_INVALID_PARAMETER_NAME = @as(u32, 2150858837); pub const ERROR_WSMAN_INVALID_XML_VALUES = @as(u32, 2150858838); pub const ERROR_WSMAN_INVALID_XML_MISSING_VALUES = @as(u32, 2150858839); pub const ERROR_WSMAN_INVALID_XML_NAMESPACE = @as(u32, 2150858840); pub const ERROR_WSMAN_INVALID_XML_FRAGMENT = @as(u32, 2150858841); pub const ERROR_WSMAN_INSUFFCIENT_SELECTORS = @as(u32, 2150858842); pub const ERROR_WSMAN_UNEXPECTED_SELECTORS = @as(u32, 2150858843); pub const ERROR_WSMAN_SELECTOR_TYPEMISMATCH = @as(u32, 2150858844); pub const ERROR_WSMAN_INVALID_SELECTOR_VALUE = @as(u32, 2150858845); pub const ERROR_WSMAN_AMBIGUOUS_SELECTORS = @as(u32, 2150858846); pub const ERROR_WSMAN_DUPLICATE_SELECTORS = @as(u32, 2150858847); pub const ERROR_WSMAN_INVALID_TARGET_SELECTORS = @as(u32, 2150858848); pub const ERROR_WSMAN_INVALID_TARGET_RESOURCEURI = @as(u32, 2150858849); pub const ERROR_WSMAN_INVALID_TARGET_SYSTEM = @as(u32, 2150858850); pub const ERROR_WSMAN_TARGET_ALREADY_EXISTS = @as(u32, 2150858851); pub const ERROR_WSMAN_AUTHORIZATION_MODE_NOT_SUPPORTED = @as(u32, 2150858852); pub const ERROR_WSMAN_ACK_NOT_SUPPORTED = @as(u32, 2150858853); pub const ERROR_WSMAN_OPERATION_TIMEOUT_NOT_SUPPORTED = @as(u32, 2150858854); pub const ERROR_WSMAN_LOCALE_NOT_SUPPORTED = @as(u32, 2150858855); pub const ERROR_WSMAN_EXPIRATION_TIME_NOT_SUPPORTED = @as(u32, 2150858856); pub const ERROR_WSMAN_DELIVERY_RETRIES_NOT_SUPPORTED = @as(u32, 2150858857); pub const ERROR_WSMAN_HEARTBEATS_NOT_SUPPORTED = @as(u32, 2150858858); pub const ERROR_WSMAN_BOOKMARKS_NOT_SUPPORTED = @as(u32, 2150858859); pub const ERROR_WSMAN_MAXITEMS_NOT_SUPPORTED = @as(u32, 2150858860); pub const ERROR_WSMAN_MAXTIME_NOT_SUPPORTED = @as(u32, 2150858861); pub const ERROR_WSMAN_MAXENVELOPE_SIZE_NOT_SUPPORTED = @as(u32, 2150858862); pub const ERROR_WSMAN_MAXENVELOPE_POLICY_NOT_SUPPORTED = @as(u32, 2150858863); pub const ERROR_WSMAN_FILTERING_REQUIRED_NOT_SUPPORTED = @as(u32, 2150858864); pub const ERROR_WSMAN_INSECURE_ADDRESS_NOT_SUPPORTED = @as(u32, 2150858865); pub const ERROR_WSMAN_FORMAT_MISMATCH_NOT_SUPPORTED = @as(u32, 2150858866); pub const ERROR_WSMAN_FORMAT_SECURITY_TOKEN_NOT_SUPPORTED = @as(u32, 2150858867); pub const ERROR_WSMAN_BAD_METHOD = @as(u32, 2150858868); pub const ERROR_WSMAN_UNSUPPORTED_MEDIA = @as(u32, 2150858869); pub const ERROR_WSMAN_UNSUPPORTED_ADDRESSING_MODE = @as(u32, 2150858870); pub const ERROR_WSMAN_FRAGMENT_TRANSFER_NOT_SUPPORTED = @as(u32, 2150858871); pub const ERROR_WSMAN_ENUMERATION_INITIALIZING = @as(u32, 2150858872); pub const ERROR_WSMAN_CONNECTOR_GET = @as(u32, 2150858873); pub const ERROR_WSMAN_URI_QUERY_STRING_SYNTAX_ERROR = @as(u32, 2150858874); pub const ERROR_WSMAN_INEXISTENT_MAC_ADDRESS = @as(u32, 2150858875); pub const ERROR_WSMAN_NO_UNICAST_ADDRESSES = @as(u32, 2150858876); pub const ERROR_WSMAN_NO_DHCP_ADDRESSES = @as(u32, 2150858877); pub const ERROR_WSMAN_MIN_ENVELOPE_SIZE = @as(u32, 2150858878); pub const ERROR_WSMAN_EPR_NESTING_EXCEEDED = @as(u32, 2150858879); pub const ERROR_WSMAN_REQUEST_INIT_ERROR = @as(u32, 2150858880); pub const ERROR_WSMAN_INVALID_TIMEOUT_HEADER = @as(u32, 2150858881); pub const ERROR_WSMAN_CERT_NOT_FOUND = @as(u32, 2150858882); pub const ERROR_WSMAN_PLUGIN_FAILED = @as(u32, 2150858883); pub const ERROR_WSMAN_ENUMERATION_INVALID = @as(u32, 2150858884); pub const ERROR_WSMAN_CONFIG_CANNOT_CHANGE_MUTUAL = @as(u32, 2150858885); pub const ERROR_WSMAN_ENUMERATION_MODE_UNSUPPORTED = @as(u32, 2150858886); pub const ERROR_WSMAN_MUSTUNDERSTAND_ON_LOCALE_UNSUPPORTED = @as(u32, 2150858887); pub const ERROR_WSMAN_POLICY_CORRUPTED = @as(u32, 2150858888); pub const ERROR_WSMAN_LISTENER_ADDRESS_INVALID = @as(u32, 2150858889); pub const ERROR_WSMAN_CONFIG_CANNOT_CHANGE_GPO_CONTROLLED_SETTING = @as(u32, 2150858890); pub const ERROR_WSMAN_EVENTING_CONCURRENT_CLIENT_RECEIVE = @as(u32, 2150858891); pub const ERROR_WSMAN_EVENTING_FAST_SENDER = @as(u32, 2150858892); pub const ERROR_WSMAN_EVENTING_INSECURE_PUSHSUBSCRIPTION_CONNECTION = @as(u32, 2150858893); pub const ERROR_WSMAN_EVENTING_INVALID_EVENTSOURCE = @as(u32, 2150858894); pub const ERROR_WSMAN_EVENTING_NOMATCHING_LISTENER = @as(u32, 2150858895); pub const ERROR_WSMAN_FRAGMENT_DIALECT_REQUESTED_UNAVAILABLE = @as(u32, 2150858896); pub const ERROR_WSMAN_MISSING_FRAGMENT_PATH = @as(u32, 2150858897); pub const ERROR_WSMAN_INVALID_FRAGMENT_DIALECT = @as(u32, 2150858898); pub const ERROR_WSMAN_INVALID_FRAGMENT_PATH = @as(u32, 2150858899); pub const ERROR_WSMAN_EVENTING_INCOMPATIBLE_BATCHPARAMS_AND_DELIVERYMODE = @as(u32, 2150858900); pub const ERROR_WSMAN_EVENTING_LOOPBACK_TESTFAILED = @as(u32, 2150858901); pub const ERROR_WSMAN_EVENTING_INVALID_ENDTO_ADDRESSS = @as(u32, 2150858902); pub const ERROR_WSMAN_EVENTING_INVALID_INCOMING_EVENT_PACKET_HEADER = @as(u32, 2150858903); pub const ERROR_WSMAN_SESSION_ALREADY_CLOSED = @as(u32, 2150858904); pub const ERROR_WSMAN_SUBSCRIPTION_LISTENER_NOLONGERVALID = @as(u32, 2150858905); pub const ERROR_WSMAN_PROVIDER_LOAD_FAILED = @as(u32, 2150858906); pub const ERROR_WSMAN_EVENTING_SUBSCRIPTIONCLOSED_BYREMOTESERVICE = @as(u32, 2150858907); pub const ERROR_WSMAN_EVENTING_DELIVERYFAILED_FROMSOURCE = @as(u32, 2150858908); pub const ERROR_WSMAN_SECURITY_UNMAPPED = @as(u32, 2150858909); pub const ERROR_WSMAN_EVENTING_SUBSCRIPTION_CANCELLED_BYSOURCE = @as(u32, 2150858910); pub const ERROR_WSMAN_INVALID_HOSTNAME_PATTERN = @as(u32, 2150858911); pub const ERROR_WSMAN_EVENTING_MISSING_NOTIFYTO = @as(u32, 2150858912); pub const ERROR_WSMAN_EVENTING_MISSING_NOTIFYTO_ADDRESSS = @as(u32, 2150858913); pub const ERROR_WSMAN_EVENTING_INVALID_NOTIFYTO_ADDRESSS = @as(u32, 2150858914); pub const ERROR_WSMAN_EVENTING_INVALID_LOCALE_IN_DELIVERY = @as(u32, 2150858915); pub const ERROR_WSMAN_EVENTING_INVALID_HEARTBEAT = @as(u32, 2150858916); pub const ERROR_WSMAN_MACHINE_OPTION_REQUIRED = @as(u32, 2150858917); pub const ERROR_WSMAN_UNSUPPORTED_FEATURE_OPTIONS = @as(u32, 2150858918); pub const ERROR_WSMAN_BATCHSIZE_TOO_SMALL = @as(u32, 2150858919); pub const ERROR_WSMAN_EVENTING_DELIVERY_MODE_REQUESTED_INVALID = @as(u32, 2150858920); pub const ERROR_WSMAN_PROVSYS_NOT_SUPPORTED = @as(u32, 2150858921); pub const ERROR_WSMAN_PUSH_SUBSCRIPTION_CONFIG_INVALID = @as(u32, 2150858922); pub const ERROR_WSMAN_CREDS_PASSED_WITH_NO_AUTH_FLAG = @as(u32, 2150858923); pub const ERROR_WSMAN_CLIENT_INVALID_FLAG = @as(u32, 2150858924); pub const ERROR_WSMAN_CLIENT_MULTIPLE_AUTH_FLAGS = @as(u32, 2150858925); pub const ERROR_WSMAN_CLIENT_SPN_WRONG_AUTH = @as(u32, 2150858926); pub const ERROR_WSMAN_CLIENT_CERT_UNNEEDED_CREDS = @as(u32, 2150858927); pub const ERROR_WSMAN_CLIENT_USERNAME_PASSWORD_NEEDED = @as(u32, 2150858928); pub const ERROR_WSMAN_CLIENT_CERT_UNNEEDED_USERNAME = @as(u32, 2150858929); pub const ERROR_WSMAN_CLIENT_CREDENTIALS_NEEDED = @as(u32, 2150858930); pub const ERROR_WSMAN_CLIENT_CREDENTIALS_FLAG_NEEDED = @as(u32, 2150858931); pub const ERROR_WSMAN_CLIENT_CERT_NEEDED = @as(u32, 2150858932); pub const ERROR_WSMAN_CLIENT_CERT_UNKNOWN_TYPE = @as(u32, 2150858933); pub const ERROR_WSMAN_CLIENT_CERT_UNKNOWN_LOCATION = @as(u32, 2150858934); pub const ERROR_WSMAN_CLIENT_INVALID_CERT = @as(u32, 2150858935); pub const ERROR_WSMAN_CLIENT_LOCAL_INVALID_CREDS = @as(u32, 2150858936); pub const ERROR_WSMAN_CLIENT_LOCAL_INVALID_CONNECTION_OPTIONS = @as(u32, 2150858937); pub const ERROR_WSMAN_CLIENT_CREATESESSION_NULL_PARAM = @as(u32, 2150858938); pub const ERROR_WSMAN_CLIENT_ENUMERATE_NULL_PARAM = @as(u32, 2150858939); pub const ERROR_WSMAN_CLIENT_SUBSCRIBE_NULL_PARAM = @as(u32, 2150858940); pub const ERROR_WSMAN_CLIENT_NULL_RESULT_PARAM = @as(u32, 2150858941); pub const ERROR_WSMAN_CLIENT_NO_HANDLE = @as(u32, 2150858942); pub const ERROR_WSMAN_CLIENT_BLANK_URI = @as(u32, 2150858943); pub const ERROR_WSMAN_CLIENT_INVALID_RESOURCE_LOCATOR = @as(u32, 2150858944); pub const ERROR_WSMAN_CLIENT_BLANK_INPUT_XML = @as(u32, 2150858945); pub const ERROR_WSMAN_CLIENT_BATCH_ITEMS_TOO_SMALL = @as(u32, 2150858946); pub const ERROR_WSMAN_CLIENT_MAX_CHARS_TOO_SMALL = @as(u32, 2150858947); pub const ERROR_WSMAN_CLIENT_BLANK_ACTION_URI = @as(u32, 2150858948); pub const ERROR_WSMAN_CLIENT_ZERO_HEARTBEAT = @as(u32, 2150858949); pub const ERROR_WSMAN_CLIENT_MULTIPLE_DELIVERY_MODES = @as(u32, 2150858950); pub const ERROR_WSMAN_CLIENT_MULTIPLE_ENVELOPE_POLICIES = @as(u32, 2150858951); pub const ERROR_WSMAN_CLIENT_UNKNOWN_EXPIRATION_TYPE = @as(u32, 2150858952); pub const ERROR_WSMAN_CLIENT_MISSING_EXPIRATION = @as(u32, 2150858953); pub const ERROR_WSMAN_CLIENT_PULL_INVALID_FLAGS = @as(u32, 2150858954); pub const ERROR_WSMAN_CLIENT_PUSH_UNSUPPORTED_TRANSPORT = @as(u32, 2150858955); pub const ERROR_WSMAN_CLIENT_PUSH_HOST_TOO_LONG = @as(u32, 2150858956); pub const ERROR_WSMAN_CLIENT_COMPRESSION_INVALID_OPTION = @as(u32, 2150858957); pub const ERROR_WSMAN_CLIENT_DELIVERENDSUBSCRIPTION_NULL_PARAM = @as(u32, 2150858958); pub const ERROR_WSMAN_CLIENT_DELIVEREVENTS_NULL_PARAM = @as(u32, 2150858959); pub const ERROR_WSMAN_CLIENT_GETBOOKMARK_NULL_PARAM = @as(u32, 2150858960); pub const ERROR_WSMAN_CLIENT_DECODEOBJECT_NULL_PARAM = @as(u32, 2150858961); pub const ERROR_WSMAN_CLIENT_ENCODEOBJECT_NULL_PARAM = @as(u32, 2150858962); pub const ERROR_WSMAN_CLIENT_ENUMERATORADDOBJECT_NULL_PARAM = @as(u32, 2150858963); pub const ERROR_WSMAN_CLIENT_ENUMERATORNEXTOBJECT_NULL_PARAM = @as(u32, 2150858964); pub const ERROR_WSMAN_CLIENT_CONSTRUCTERROR_NULL_PARAM = @as(u32, 2150858965); pub const ERROR_WSMAN_SERVER_NONPULLSUBSCRIBE_NULL_PARAM = @as(u32, 2150858966); pub const ERROR_WSMAN_CLIENT_UNENCRYPTED_HTTP_ONLY = @as(u32, 2150858967); pub const ERROR_WSMAN_CANNOT_USE_CERTIFICATES_FOR_HTTP = @as(u32, 2150858968); pub const ERROR_WSMAN_CONNECTIONSTR_INVALID = @as(u32, 2150858969); pub const ERROR_WSMAN_TRANSPORT_NOT_SUPPORTED = @as(u32, 2150858970); pub const ERROR_WSMAN_PORT_INVALID = @as(u32, 2150858971); pub const ERROR_WSMAN_CONFIG_PORT_INVALID = @as(u32, 2150858972); pub const ERROR_WSMAN_SENDHEARBEAT_EMPTY_ENUMERATOR = @as(u32, 2150858973); pub const ERROR_WSMAN_CLIENT_UNENCRYPTED_DISABLED = @as(u32, 2150858974); pub const ERROR_WSMAN_CLIENT_BASIC_AUTHENTICATION_DISABLED = @as(u32, 2150858975); pub const ERROR_WSMAN_CLIENT_DIGEST_AUTHENTICATION_DISABLED = @as(u32, 2150858976); pub const ERROR_WSMAN_CLIENT_NEGOTIATE_AUTHENTICATION_DISABLED = @as(u32, 2150858977); pub const ERROR_WSMAN_CLIENT_KERBEROS_AUTHENTICATION_DISABLED = @as(u32, 2150858978); pub const ERROR_WSMAN_CLIENT_CERTIFICATES_AUTHENTICATION_DISABLED = @as(u32, 2150858979); pub const ERROR_WSMAN_SERVER_NOT_TRUSTED = @as(u32, 2150858980); pub const ERROR_WSMAN_EXPLICIT_CREDENTIALS_REQUIRED = @as(u32, 2150858981); pub const ERROR_WSMAN_CERT_THUMBPRINT_NOT_BLANK = @as(u32, 2150858982); pub const ERROR_WSMAN_CERT_THUMBPRINT_BLANK = @as(u32, 2150858983); pub const ERROR_WSMAN_CONFIG_CANNOT_SHARE_SSL_CONFIG = @as(u32, 2150858984); pub const ERROR_WSMAN_CONFIG_CERT_CN_DOES_NOT_MATCH_HOSTNAME = @as(u32, 2150858985); pub const ERROR_WSMAN_CONFIG_HOSTNAME_CHANGE_WITHOUT_CERT = @as(u32, 2150858986); pub const ERROR_WSMAN_CONFIG_THUMBPRINT_SHOULD_BE_EMPTY = @as(u32, 2150858987); pub const ERROR_WSMAN_INVALID_IPFILTER = @as(u32, 2150858988); pub const ERROR_WSMAN_CANNOT_CHANGE_KEYS = @as(u32, 2150858989); pub const ERROR_WSMAN_CERT_INVALID_USAGE = @as(u32, 2150858990); pub const ERROR_WSMAN_RESPONSE_NO_RESULTS = @as(u32, 2150858991); pub const ERROR_WSMAN_CREATE_RESPONSE_NO_EPR = @as(u32, 2150858992); pub const ERROR_WSMAN_RESPONSE_INVALID_ENUMERATION_CONTEXT = @as(u32, 2150858993); pub const ERROR_WSMAN_RESPONSE_NO_XML_FRAGMENT_WRAPPER = @as(u32, 2150858994); pub const ERROR_WSMAN_RESPONSE_INVALID_MESSAGE_INFORMATION_HEADER = @as(u32, 2150858995); pub const ERROR_WSMAN_RESPONSE_NO_SOAP_HEADER_BODY = @as(u32, 2150858996); pub const ERROR_WSMAN_HTTP_NO_RESPONSE_DATA = @as(u32, 2150858997); pub const ERROR_WSMAN_RESPONSE_INVALID_SOAP_FAULT = @as(u32, 2150858998); pub const ERROR_WSMAN_HTTP_INVALID_CONTENT_TYPE_IN_RESPONSE_DATA = @as(u32, 2150858999); pub const ERROR_WSMAN_HTTP_CONTENT_TYPE_MISSMATCH_RESPONSE_DATA = @as(u32, 2150859000); pub const ERROR_WSMAN_CANNOT_DECRYPT = @as(u32, 2150859001); pub const ERROR_WSMAN_INVALID_URI_WMI_SINGLETON = @as(u32, 2150859002); pub const ERROR_WSMAN_INVALID_URI_WMI_ENUM_WQL = @as(u32, 2150859003); pub const ERROR_WSMAN_NO_IDENTIFY_FOR_LOCAL_SESSION = @as(u32, 2150859004); pub const ERROR_WSMAN_NO_PUSH_SUBSCRIPTION_FOR_LOCAL_SESSION = @as(u32, 2150859005); pub const ERROR_WSMAN_INVALID_SUBSCRIPTION_MANAGER = @as(u32, 2150859006); pub const ERROR_WSMAN_NON_PULL_SUBSCRIPTION_NOT_SUPPORTED = @as(u32, 2150859007); pub const ERROR_WSMAN_WMI_MAX_NESTED = @as(u32, 2150859008); pub const ERROR_WSMAN_REMOTE_CIMPATH_NOT_SUPPORTED = @as(u32, 2150859009); pub const ERROR_WSMAN_WMI_PROVIDER_NOT_CAPABLE = @as(u32, 2150859010); pub const ERROR_WSMAN_WMI_INVALID_VALUE = @as(u32, 2150859011); pub const ERROR_WSMAN_WMI_SVC_ACCESS_DENIED = @as(u32, 2150859012); pub const ERROR_WSMAN_WMI_PROVIDER_ACCESS_DENIED = @as(u32, 2150859013); pub const ERROR_WSMAN_WMI_CANNOT_CONNECT_ACCESS_DENIED = @as(u32, 2150859014); pub const ERROR_WSMAN_INVALID_FILTER_XML = @as(u32, 2150859015); pub const ERROR_WSMAN_ENUMERATE_WMI_INVALID_KEY = @as(u32, 2150859016); pub const ERROR_WSMAN_INVALID_FRAGMENT_PATH_BLANK = @as(u32, 2150859017); pub const ERROR_WSMAN_INVALID_CHARACTERS_IN_RESPONSE = @as(u32, 2150859018); pub const ERROR_WSMAN_KERBEROS_IPADDRESS = @as(u32, 2150859019); pub const ERROR_WSMAN_CLIENT_WORKGROUP_NO_KERBEROS = @as(u32, 2150859020); pub const ERROR_WSMAN_INVALID_BATCH_SETTINGS_PARAMETER = @as(u32, 2150859021); pub const ERROR_WSMAN_SERVER_DESTINATION_LOCALHOST = @as(u32, 2150859022); pub const ERROR_WSMAN_UNKNOWN_HTTP_STATUS_RETURNED = @as(u32, 2150859023); pub const ERROR_WSMAN_UNSUPPORTED_HTTP_STATUS_REDIRECT = @as(u32, 2150859024); pub const ERROR_WSMAN_HTTP_REQUEST_TOO_LARGE_STATUS = @as(u32, 2150859025); pub const ERROR_WSMAN_HTTP_SERVICE_UNAVAILABLE_STATUS = @as(u32, 2150859026); pub const ERROR_WSMAN_HTTP_NOT_FOUND_STATUS = @as(u32, 2150859027); pub const ERROR_WSMAN_EVENTING_MISSING_LOCALE_IN_DELIVERY = @as(u32, 2150859028); pub const ERROR_WSMAN_QUICK_CONFIG_FAILED_CERT_REQUIRED = @as(u32, 2150859029); pub const ERROR_WSMAN_QUICK_CONFIG_FIREWALL_EXCEPTIONS_DISALLOWED = @as(u32, 2150859030); pub const ERROR_WSMAN_QUICK_CONFIG_LOCAL_POLICY_CHANGE_DISALLOWED = @as(u32, 2150859031); pub const ERROR_WSMAN_INVALID_SELECTOR_NAME = @as(u32, 2150859032); pub const ERROR_WSMAN_ENCODING_TYPE = @as(u32, 2150859033); pub const ERROR_WSMAN_ENDPOINT_UNAVAILABLE_INVALID_VALUE = @as(u32, 2150859034); pub const ERROR_WSMAN_INVALID_HEADER = @as(u32, 2150859035); pub const ERROR_WSMAN_ENUMERATE_UNSUPPORTED_EXPIRATION_TYPE = @as(u32, 2150859036); pub const ERROR_WSMAN_MAX_ELEMENTS_NOT_SUPPORTED = @as(u32, 2150859037); pub const ERROR_WSMAN_WMI_PROVIDER_INVALID_PARAMETER = @as(u32, 2150859038); pub const ERROR_WSMAN_CLIENT_MULTIPLE_ENUM_MODE_FLAGS = @as(u32, 2150859039); pub const ERROR_WINRS_CLIENT_INVALID_FLAG = @as(u32, 2150859040); pub const ERROR_WINRS_CLIENT_NULL_PARAM = @as(u32, 2150859041); pub const ERROR_WSMAN_CANNOT_PROCESS_FILTER = @as(u32, 2150859042); pub const ERROR_WSMAN_CLIENT_ENUMERATORADDEVENT_NULL_PARAM = @as(u32, 2150859043); pub const ERROR_WSMAN_ADDOBJECT_MISSING_OBJECT = @as(u32, 2150859044); pub const ERROR_WSMAN_ADDOBJECT_MISSING_EPR = @as(u32, 2150859045); pub const ERROR_WSMAN_NETWORK_TIMEDOUT = @as(u32, 2150859046); pub const ERROR_WINRS_RECEIVE_IN_PROGRESS = @as(u32, 2150859047); pub const ERROR_WINRS_RECEIVE_NO_RESPONSE_DATA = @as(u32, 2150859048); pub const ERROR_WINRS_CLIENT_CREATESHELL_NULL_PARAM = @as(u32, 2150859049); pub const ERROR_WINRS_CLIENT_CLOSESHELL_NULL_PARAM = @as(u32, 2150859050); pub const ERROR_WINRS_CLIENT_FREECREATESHELLRESULT_NULL_PARAM = @as(u32, 2150859051); pub const ERROR_WINRS_CLIENT_RUNCOMMAND_NULL_PARAM = @as(u32, 2150859052); pub const ERROR_WINRS_CLIENT_FREERUNCOMMANDRESULT_NULL_PARAM = @as(u32, 2150859053); pub const ERROR_WINRS_CLIENT_SIGNAL_NULL_PARAM = @as(u32, 2150859054); pub const ERROR_WINRS_CLIENT_RECEIVE_NULL_PARAM = @as(u32, 2150859055); pub const ERROR_WINRS_CLIENT_FREEPULLRESULT_NULL_PARAM = @as(u32, 2150859056); pub const ERROR_WINRS_CLIENT_PULL_NULL_PARAM = @as(u32, 2150859057); pub const ERROR_WINRS_CLIENT_CLOSERECEIVEHANDLE_NULL_PARAM = @as(u32, 2150859058); pub const ERROR_WINRS_CLIENT_SEND_NULL_PARAM = @as(u32, 2150859059); pub const ERROR_WINRS_CLIENT_PUSH_NULL_PARAM = @as(u32, 2150859060); pub const ERROR_WINRS_CLIENT_CLOSESENDHANDLE_NULL_PARAM = @as(u32, 2150859061); pub const ERROR_WINRS_CLIENT_GET_NULL_PARAM = @as(u32, 2150859062); pub const ERROR_WSMAN_POLYMORPHISM_MODE_UNSUPPORTED = @as(u32, 2150859063); pub const ERROR_WSMAN_REQUEST_NOT_SUPPORTED_AT_SERVICE = @as(u32, 2150859064); pub const ERROR_WSMAN_URI_NON_DMTF_CLASS = @as(u32, 2150859065); pub const ERROR_WSMAN_URI_WRONG_DMTF_VERSION = @as(u32, 2150859066); pub const ERROR_WSMAN_DIFFERENT_CIM_SELECTOR = @as(u32, 2150859067); pub const ERROR_WSMAN_PUSHSUBSCRIPTION_INVALIDUSERACCOUNT = @as(u32, 2150859068); pub const ERROR_WSMAN_EVENTING_NONDOMAINJOINED_PUBLISHER = @as(u32, 2150859069); pub const ERROR_WSMAN_EVENTING_NONDOMAINJOINED_COLLECTOR = @as(u32, 2150859070); pub const ERROR_WSMAN_CONFIG_READONLY_PROPERTY = @as(u32, 2150859071); pub const ERROR_WINRS_CODE_PAGE_NOT_SUPPORTED = @as(u32, 2150859072); pub const ERROR_WSMAN_CLIENT_DISABLE_LOOPBACK_WITH_EXPLICIT_CREDENTIALS = @as(u32, 2150859073); pub const ERROR_WSMAN_CLIENT_INVALID_DISABLE_LOOPBACK = @as(u32, 2150859074); pub const ERROR_WSMAN_CLIENT_ENUM_RECEIVED_TOO_MANY_ITEMS = @as(u32, 2150859075); pub const ERROR_WSMAN_MULTIPLE_CREDENTIALS = @as(u32, 2150859076); pub const ERROR_WSMAN_AUTHENTICATION_INVALID_FLAG = @as(u32, 2150859077); pub const ERROR_WSMAN_CLIENT_CREDENTIALS_FOR_DEFAULT_AUTHENTICATION = @as(u32, 2150859078); pub const ERROR_WSMAN_CLIENT_USERNAME_AND_PASSWORD_NEEDED = @as(u32, 2150859079); pub const ERROR_WSMAN_CLIENT_INVALID_CERT_DNS_OR_UPN = @as(u32, 2150859080); pub const ERROR_WSMAN_CREATESHELL_NULL_ENVIRONMENT_VARIABLE_NAME = @as(u32, 2150859081); pub const ERROR_WSMAN_SHELL_ALREADY_CLOSED = @as(u32, 2150859082); pub const ERROR_WSMAN_CREATESHELL_NULL_STREAMID = @as(u32, 2150859083); pub const ERROR_WSMAN_SHELL_INVALID_SHELL_HANDLE = @as(u32, 2150859084); pub const ERROR_WSMAN_SHELL_INVALID_COMMAND_HANDLE = @as(u32, 2150859085); pub const ERROR_WSMAN_RUNSHELLCOMMAND_NULL_ARGUMENT = @as(u32, 2150859086); pub const ERROR_WSMAN_COMMAND_ALREADY_CLOSED = @as(u32, 2150859087); pub const ERROR_WSMAN_SENDSHELLINPUT_INVALID_STREAMID_INDEX = @as(u32, 2150859088); pub const ERROR_WSMAN_SHELL_SYNCHRONOUS_NOT_SUPPORTED = @as(u32, 2150859089); pub const ERROR_WSMAN_NO_CERTMAPPING_OPERATION_FOR_LOCAL_SESSION = @as(u32, 2150859090); pub const ERROR_WSMAN_CERTMAPPING_CONFIGLIMIT_EXCEEDED = @as(u32, 2150859091); pub const ERROR_WSMAN_CERTMAPPING_INVALIDUSERCREDENTIALS = @as(u32, 2150859092); pub const ERROR_WSMAN_CERT_INVALID_USAGE_CLIENT = @as(u32, 2150859093); pub const ERROR_WSMAN_CERT_MISSING_AUTH_FLAG = @as(u32, 2150859094); pub const ERROR_WSMAN_CERT_MULTIPLE_CREDENTIALS_FLAG = @as(u32, 2150859095); pub const ERROR_WSMAN_CONFIG_SHELL_URI_INVALID = @as(u32, 2150859096); pub const ERROR_WSMAN_CONFIG_SHELL_URI_CMDSHELLURI_NOTPERMITTED = @as(u32, 2150859097); pub const ERROR_WSMAN_CONFIG_SHELLURI_INVALID_PROCESSPATH = @as(u32, 2150859098); pub const ERROR_WINRS_SHELL_URI_INVALID = @as(u32, 2150859099); pub const ERROR_WSMAN_INVALID_SECURITY_DESCRIPTOR = @as(u32, 2150859100); pub const ERROR_WSMAN_POLICY_TOO_COMPLEX = @as(u32, 2150859101); pub const ERROR_WSMAN_POLICY_CANNOT_COMPLY = @as(u32, 2150859102); pub const ERROR_WSMAN_INVALID_CONNECTIONRETRY = @as(u32, 2150859103); pub const ERROR_WSMAN_URISECURITY_INVALIDURIKEY = @as(u32, 2150859104); pub const ERROR_WSMAN_CERTMAPPING_INVALIDSUBJECTKEY = @as(u32, 2150859105); pub const ERROR_WSMAN_CERTMAPPING_INVALIDISSUERKEY = @as(u32, 2150859106); pub const ERROR_WSMAN_INVALID_PUBLISHERS_TYPE = @as(u32, 2150859107); pub const ERROR_WSMAN_CLIENT_INVALID_DELIVERY_RETRY = @as(u32, 2150859108); pub const ERROR_WSMAN_CLIENT_NULL_PUBLISHERS = @as(u32, 2150859109); pub const ERROR_WSMAN_CLIENT_NULL_ISSUERS = @as(u32, 2150859110); pub const ERROR_WSMAN_CLIENT_NO_SOURCES = @as(u32, 2150859111); pub const ERROR_WSMAN_INVALID_SUBSCRIBE_OBJECT = @as(u32, 2150859112); pub const ERROR_WSMAN_PUBLIC_FIREWALL_PROFILE_ACTIVE = @as(u32, 2150859113); pub const ERROR_WSMAN_CERTMAPPING_PASSWORDTOOLONG = @as(u32, 2150859114); pub const ERROR_WSMAN_CERTMAPPING_PASSWORDBLANK = @as(u32, 2150859115); pub const ERROR_WSMAN_CERTMAPPING_PASSWORDUSERTUPLE = @as(u32, 2150859116); pub const ERROR_WSMAN_INVALID_PROVIDER_RESPONSE = @as(u32, 2150859117); pub const ERROR_WSMAN_SHELL_NOT_INITIALIZED = @as(u32, 2150859118); pub const ERROR_WSMAN_CONFIG_SHELLURI_INVALID_OPERATION_ON_KEY = @as(u32, 2150859119); pub const ERROR_WSMAN_HTTP_STATUS_SERVER_ERROR = @as(u32, 2150859120); pub const ERROR_WSMAN_HTTP_STATUS_BAD_REQUEST = @as(u32, 2150859121); pub const ERROR_WSMAN_CONFIG_CANNOT_CHANGE_CERTMAPPING_KEYS = @as(u32, 2150859122); pub const ERROR_WSMAN_HTML_ERROR = @as(u32, 2150859123); pub const ERROR_WSMAN_CLIENT_INITIALIZE_NULL_PARAM = @as(u32, 2150859124); pub const ERROR_WSMAN_CLIENT_INVALID_INIT_APPLICATION_FLAG = @as(u32, 2150859125); pub const ERROR_WSMAN_CLIENT_INVALID_DEINIT_APPLICATION_FLAG = @as(u32, 2150859126); pub const ERROR_WSMAN_CLIENT_SETSESSIONOPTION_NULL_PARAM = @as(u32, 2150859127); pub const ERROR_WSMAN_CLIENT_SETSESSIONOPTION_INVALID_PARAM = @as(u32, 2150859128); pub const ERROR_WSMAN_CLIENT_GETSESSIONOPTION_INVALID_PARAM = @as(u32, 2150859129); pub const ERROR_WSMAN_CLIENT_CREATESHELL_NULL_PARAM = @as(u32, 2150859130); pub const ERROR_WSMAN_CLIENT_INVALID_CREATE_SHELL_FLAG = @as(u32, 2150859131); pub const ERROR_WSMAN_CLIENT_INVALID_CLOSE_SHELL_FLAG = @as(u32, 2150859132); pub const ERROR_WSMAN_CLIENT_INVALID_CLOSE_COMMAND_FLAG = @as(u32, 2150859133); pub const ERROR_WSMAN_CLIENT_CLOSESHELL_NULL_PARAM = @as(u32, 2150859134); pub const ERROR_WSMAN_CLIENT_CLOSECOMMAND_NULL_PARAM = @as(u32, 2150859135); pub const ERROR_WSMAN_CLIENT_RUNCOMMAND_NULL_PARAM = @as(u32, 2150859136); pub const ERROR_WSMAN_CLIENT_INVALID_RUNCOMMAND_FLAG = @as(u32, 2150859137); pub const ERROR_WSMAN_CLIENT_RUNCOMMAND_NOTCOMPLETED = @as(u32, 2150859138); pub const ERROR_WSMAN_NO_COMMAND_RESPONSE = @as(u32, 2150859139); pub const ERROR_WSMAN_INVALID_OPTIONSET = @as(u32, 2150859140); pub const ERROR_WSMAN_NO_COMMANDID = @as(u32, 2150859141); pub const ERROR_WSMAN_CLIENT_SIGNAL_NULL_PARAM = @as(u32, 2150859142); pub const ERROR_WSMAN_CLIENT_INVALID_SIGNAL_SHELL_FLAG = @as(u32, 2150859143); pub const ERROR_WSMAN_CLIENT_SEND_NULL_PARAM = @as(u32, 2150859144); pub const ERROR_WSMAN_CLIENT_INVALID_SEND_SHELL_FLAG = @as(u32, 2150859145); pub const ERROR_WSMAN_CLIENT_INVALID_SEND_SHELL_PARAMETER = @as(u32, 2150859146); pub const ERROR_WSMAN_SHELL_INVALID_INPUT_STREAM = @as(u32, 2150859147); pub const ERROR_WSMAN_CLIENT_RECEIVE_NULL_PARAM = @as(u32, 2150859148); pub const ERROR_WSMAN_SHELL_INVALID_DESIRED_STREAMS = @as(u32, 2150859149); pub const ERROR_WSMAN_CLIENT_INVALID_RECEIVE_SHELL_FLAG = @as(u32, 2150859150); pub const ERROR_WSMAN_NO_RECEIVE_RESPONSE = @as(u32, 2150859151); pub const ERROR_WSMAN_PLUGIN_CONFIGURATION_CORRUPTED = @as(u32, 2150859152); pub const ERROR_WSMAN_INVALID_FILEPATH = @as(u32, 2150859153); pub const ERROR_WSMAN_FILE_NOT_PRESENT = @as(u32, 2150859154); pub const ERROR_WSMAN_IISCONFIGURATION_READ_FAILED = @as(u32, 2150859155); pub const ERROR_WSMAN_CLIENT_INVALID_LOCALE = @as(u32, 2150859156); pub const ERROR_WSMAN_CLIENT_INVALID_UI_LANGUAGE = @as(u32, 2150859157); pub const ERROR_WSMAN_CLIENT_GETERRORMESSAGE_NULL_PARAM = @as(u32, 2150859158); pub const ERROR_WSMAN_CLIENT_INVALID_LANGUAGE_CODE = @as(u32, 2150859159); pub const ERROR_WSMAN_CLIENT_INVALID_GETERRORMESSAGE_FLAG = @as(u32, 2150859160); pub const ERROR_WSMAN_REDIRECT_REQUESTED = @as(u32, 2150859161); pub const ERROR_WSMAN_PROXY_AUTHENTICATION_INVALID_FLAG = @as(u32, 2150859162); pub const ERROR_WSMAN_CLIENT_CREDENTIALS_FOR_PROXY_AUTHENTICATION = @as(u32, 2150859163); pub const ERROR_WSMAN_PROXY_ACCESS_TYPE = @as(u32, 2150859164); pub const ERROR_WSMAN_INVALID_OPTION_NO_PROXY_SERVER = @as(u32, 2150859165); pub const ERROR_WSMAN_CLIENT_GETSESSIONOPTION_DWORD_NULL_PARAM = @as(u32, 2150859166); pub const ERROR_WSMAN_CLIENT_GETSESSIONOPTION_DWORD_INVALID_PARAM = @as(u32, 2150859167); pub const ERROR_WSMAN_CLIENT_GETSESSIONOPTION_STRING_INVALID_PARAM = @as(u32, 2150859168); pub const ERROR_WSMAN_CREDSSP_USERNAME_PASSWORD_NEEDED = @as(u32, 2150859169); pub const ERROR_WSMAN_CLIENT_CREDSSP_AUTHENTICATION_DISABLED = @as(u32, 2150859170); pub const ERROR_WSMAN_CLIENT_ALLOWFRESHCREDENTIALS = @as(u32, 2150859171); pub const ERROR_WSMAN_CLIENT_ALLOWFRESHCREDENTIALS_NTLMONLY = @as(u32, 2150859172); pub const ERROR_WSMAN_QUOTA_MAX_SHELLS = @as(u32, 2150859173); pub const ERROR_WSMAN_QUOTA_MAX_OPERATIONS = @as(u32, 2150859174); pub const ERROR_WSMAN_QUOTA_USER = @as(u32, 2150859175); pub const ERROR_WSMAN_QUOTA_SYSTEM = @as(u32, 2150859176); pub const ERROR_WSMAN_DIFFERENT_AUTHZ_TOKEN = @as(u32, 2150859177); pub const ERROR_WSMAN_REDIRECT_LOCATION_NOT_AVAILABLE = @as(u32, 2150859178); pub const ERROR_WSMAN_QUOTA_MAX_SHELLUSERS = @as(u32, 2150859179); pub const ERROR_WSMAN_REMOTESHELLS_NOT_ALLOWED = @as(u32, 2150859180); pub const ERROR_WSMAN_PULL_PARAMS_NOT_SAME_AS_ENUM = @as(u32, 2150859181); pub const ERROR_WSMAN_DEPRECATED_CONFIG_SETTING = @as(u32, 2150859182); pub const ERROR_WSMAN_URI_SECURITY_URI = @as(u32, 2150859183); pub const ERROR_WSMAN_CANNOT_USE_ALLOW_NEGOTIATE_IMPLICIT_CREDENTIALS_FOR_HTTP = @as(u32, 2150859184); pub const ERROR_WSMAN_CANNOT_USE_PROXY_SETTINGS_FOR_HTTP = @as(u32, 2150859185); pub const ERROR_WSMAN_CANNOT_USE_PROXY_SETTINGS_FOR_KERBEROS = @as(u32, 2150859186); pub const ERROR_WSMAN_CANNOT_USE_PROXY_SETTINGS_FOR_CREDSSP = @as(u32, 2150859187); pub const ERROR_WSMAN_CLIENT_MULTIPLE_PROXY_AUTH_FLAGS = @as(u32, 2150859188); pub const ERROR_WSMAN_INVALID_REDIRECT_ERROR = @as(u32, 2150859189); pub const ERROR_REDIRECT_LOCATION_TOO_LONG = @as(u32, 2150859190); pub const ERROR_REDIRECT_LOCATION_INVALID = @as(u32, 2150859191); pub const ERROR_SERVICE_CBT_HARDENING_INVALID = @as(u32, 2150859192); pub const ERROR_WSMAN_NAME_NOT_RESOLVED = @as(u32, 2150859193); pub const ERROR_WSMAN_SSL_CONNECTION_ABORTED = @as(u32, 2150859194); pub const ERROR_WSMAN_DEFAULTAUTH_IPADDRESS = @as(u32, 2150859195); pub const ERROR_WSMAN_CUSTOMREMOTESHELL_DEPRECATED = @as(u32, 2150859196); pub const ERROR_WSMAN_FEATURE_DEPRECATED = @as(u32, 2150859197); pub const ERROR_WSMAN_INVALID_USESSL_PARAM = @as(u32, 2150859198); pub const ERROR_WSMAN_INVALID_CONFIGSDDL_URL = @as(u32, 2150859199); pub const ERROR_WSMAN_ENUMERATE_SHELLCOMAMNDS_FILTER_EXPECTED = @as(u32, 2150859200); pub const ERROR_WSMAN_ENUMERATE_SHELLCOMMANDS_EPRS_NOTSUPPORTED = @as(u32, 2150859201); pub const ERROR_WSMAN_CLIENT_CREATESHELL_NAME_INVALID = @as(u32, 2150859202); pub const ERROR_WSMAN_RUNAS_INVALIDUSERCREDENTIALS = @as(u32, 2150859203); pub const ERROR_WINRS_SHELL_DISCONNECTED = @as(u32, 2150859204); pub const ERROR_WINRS_SHELL_DISCONNECT_NOT_SUPPORTED = @as(u32, 2150859205); pub const ERROR_WINRS_SHELL_CLIENTSESSIONID_MISMATCH = @as(u32, 2150859206); pub const ERROR_WSMAN_CLIENT_DISCONNECTSHELL_NULL_PARAM = @as(u32, 2150859207); pub const ERROR_WSMAN_CLIENT_RECONNECTSHELL_NULL_PARAM = @as(u32, 2150859208); pub const ERROR_WSMAN_CLIENT_CONNECTSHELL_NULL_PARAM = @as(u32, 2150859209); pub const ERROR_WSMAN_CLIENT_CONNECTCOMMAND_NULL_PARAM = @as(u32, 2150859210); pub const ERROR_WINRS_CONNECT_RESPONSE_BAD_BODY = @as(u32, 2150859211); pub const ERROR_WSMAN_COMMAND_TERMINATED = @as(u32, 2150859212); pub const ERROR_WINRS_SHELL_CONNECTED_TO_DIFFERENT_CLIENT = @as(u32, 2150859213); pub const ERROR_WINRS_SHELL_DISCONNECT_OPERATION_NOT_GRACEFUL = @as(u32, 2150859214); pub const ERROR_WINRS_SHELL_DISCONNECT_OPERATION_NOT_VALID = @as(u32, 2150859215); pub const ERROR_WINRS_SHELL_RECONNECT_OPERATION_NOT_VALID = @as(u32, 2150859216); pub const ERROR_WSMAN_CONFIG_GROUP_POLICY_CHANGE_NOTIFICATION_SUBSCRIPTION_FAILED = @as(u32, 2150859217); pub const ERROR_WSMAN_CLIENT_RECONNECTSHELLCOMMAND_NULL_PARAM = @as(u32, 2150859218); pub const ERROR_WINRS_SHELLCOMMAND_RECONNECT_OPERATION_NOT_VALID = @as(u32, 2150859219); pub const ERROR_WINRS_SHELLCOMMAND_CLIENTID_NOT_VALID = @as(u32, 2150859220); pub const ERROR_WINRS_SHELL_CLIENTID_NOT_VALID = @as(u32, 2150859221); pub const ERROR_WINRS_SHELLCOMMAND_CLIENTID_RESOURCE_CONFLICT = @as(u32, 2150859222); pub const ERROR_WINRS_SHELL_CLIENTID_RESOURCE_CONFLICT = @as(u32, 2150859223); pub const ERROR_WINRS_SHELLCOMMAND_DISCONNECT_OPERATION_NOT_VALID = @as(u32, 2150859224); pub const ERROR_WSMAN_SUBSCRIBE_WMI_INVALID_KEY = @as(u32, 2150859225); pub const ERROR_WSMAN_CLIENT_INVALID_DISCONNECT_SHELL_FLAG = @as(u32, 2150859226); pub const ERROR_WSMAN_CLIENT_INVALID_SHELL_COMMAND_PAIR = @as(u32, 2150859227); pub const ERROR_WSMAN_SEMANTICCALLBACK_TIMEDOUT = @as(u32, 2150859228); pub const ERROR_WSMAN_SERVICE_REMOTE_ACCESS_DISABLED = @as(u32, 2150859229); pub const ERROR_WSMAN_SERVICE_STREAM_DISCONNECTED = @as(u32, 2150859230); pub const ERROR_WSMAN_CREATESHELL_RUNAS_FAILED = @as(u32, 2150859231); pub const ERROR_WSMAN_INVALID_XML_RUNAS_DISABLED = @as(u32, 2150859232); pub const ERROR_WSMAN_WRONG_METADATA = @as(u32, 2150859233); pub const ERROR_WSMAN_UNSUPPORTED_TYPE = @as(u32, 2150859234); pub const ERROR_WSMAN_REMOTE_CONNECTION_NOT_ALLOWED = @as(u32, 2150859235); pub const ERROR_WSMAN_QUOTA_MAX_SHELLS_PPQ = @as(u32, 2150859236); pub const ERROR_WSMAN_QUOTA_MAX_USERS_PPQ = @as(u32, 2150859237); pub const ERROR_WSMAN_QUOTA_MAX_PLUGINSHELLS_PPQ = @as(u32, 2150859238); pub const ERROR_WSMAN_QUOTA_MAX_PLUGINOPERATIONS_PPQ = @as(u32, 2150859239); pub const ERROR_WSMAN_QUOTA_MAX_OPERATIONS_USER_PPQ = @as(u32, 2150859240); pub const ERROR_WSMAN_QUOTA_MAX_COMMANDS_PER_SHELL_PPQ = @as(u32, 2150859241); pub const ERROR_WSMAN_QUOTA_MIN_REQUIREMENT_NOT_AVAILABLE_PPQ = @as(u32, 2150859242); pub const ERROR_WSMAN_NEW_DESERIALIZER = @as(u32, 2150859243); pub const ERROR_WSMAN_DESERIALIZE_CLASS = @as(u32, 2150859244); pub const ERROR_WSMAN_GETCLASS = @as(u32, 2150859245); pub const ERROR_WSMAN_NEW_SESSION = @as(u32, 2150859246); pub const ERROR_WSMAN_NULL_KEY = @as(u32, 2150859247); pub const ERROR_WSMAN_MUTUAL_AUTH_FAILED = @as(u32, 2150859248); pub const ERROR_WSMAN_UNSUPPORTED_OCTETTYPE = @as(u32, 2150859249); pub const ERROR_WINRS_IDLETIMEOUT_OUTOFBOUNDS = @as(u32, 2150859250); pub const ERROR_WSMAN_INSUFFICIENT_METADATA_FOR_BASIC = @as(u32, 2150859251); pub const ERROR_WSMAN_INVALID_LITERAL_URI = @as(u32, 2150859252); pub const ERROR_WSMAN_OBJECTONLY_INVALID = @as(u32, 2150859253); pub const ERROR_WSMAN_MISSING_CLASSNAME = @as(u32, 2150859254); pub const ERROR_WSMAN_EVENTING_INVALID_ENCODING_IN_DELIVERY = @as(u32, 2150859255); pub const ERROR_WSMAN_DESTINATION_INVALID = @as(u32, 2150859256); pub const ERROR_WSMAN_UNSUPPORTED_FEATURE_IDENTIFY = @as(u32, 2150859257); pub const ERROR_WSMAN_CLIENT_SESSION_UNUSABLE = @as(u32, 2150859258); pub const ERROR_WSMAN_VIRTUALACCOUNT_NOTSUPPORTED = @as(u32, 2150859259); pub const ERROR_WSMAN_VIRTUALACCOUNT_NOTSUPPORTED_DOWNLEVEL = @as(u32, 2150859260); pub const ERROR_WSMAN_RUNASUSER_MANAGEDACCOUNT_LOGON_FAILED = @as(u32, 2150859261); pub const ERROR_WSMAN_CERTMAPPING_CREDENTIAL_MANAGEMENT_FAILIED = @as(u32, 2150859262); //-------------------------------------------------------------------------------- // Section: Types (76) //-------------------------------------------------------------------------------- pub const WSMAN_DATA_TEXT = extern struct { bufferLength: u32, buffer: ?[*:0]const u16, }; pub const WSMAN_DATA_BINARY = extern struct { dataLength: u32, data: ?*u8, }; pub const WSManDataType = enum(i32) { NONE = 0, TYPE_TEXT = 1, TYPE_BINARY = 2, TYPE_DWORD = 4, }; pub const WSMAN_DATA_NONE = WSManDataType.NONE; pub const WSMAN_DATA_TYPE_TEXT = WSManDataType.TYPE_TEXT; pub const WSMAN_DATA_TYPE_BINARY = WSManDataType.TYPE_BINARY; pub const WSMAN_DATA_TYPE_DWORD = WSManDataType.TYPE_DWORD; pub const WSMAN_DATA = extern struct { type: WSManDataType, Anonymous: extern union { text: WSMAN_DATA_TEXT, binaryData: WSMAN_DATA_BINARY, number: u32, }, }; pub const WSMAN_ERROR = extern struct { code: u32, errorDetail: ?[*:0]const u16, language: ?[*:0]const u16, machineName: ?[*:0]const u16, pluginName: ?[*:0]const u16, }; pub const WSMAN_USERNAME_PASSWORD_CREDS = extern struct { username: ?[*:0]const u16, password: ?[*:0]const u16, }; pub const WSManAuthenticationFlags = enum(i32) { DEFAULT_AUTHENTICATION = 0, NO_AUTHENTICATION = 1, AUTH_DIGEST = 2, AUTH_NEGOTIATE = 4, AUTH_BASIC = 8, AUTH_KERBEROS = 16, AUTH_CREDSSP = 128, AUTH_CLIENT_CERTIFICATE = 32, }; pub const WSMAN_FLAG_DEFAULT_AUTHENTICATION = WSManAuthenticationFlags.DEFAULT_AUTHENTICATION; pub const WSMAN_FLAG_NO_AUTHENTICATION = WSManAuthenticationFlags.NO_AUTHENTICATION; pub const WSMAN_FLAG_AUTH_DIGEST = WSManAuthenticationFlags.AUTH_DIGEST; pub const WSMAN_FLAG_AUTH_NEGOTIATE = WSManAuthenticationFlags.AUTH_NEGOTIATE; pub const WSMAN_FLAG_AUTH_BASIC = WSManAuthenticationFlags.AUTH_BASIC; pub const WSMAN_FLAG_AUTH_KERBEROS = WSManAuthenticationFlags.AUTH_KERBEROS; pub const WSMAN_FLAG_AUTH_CREDSSP = WSManAuthenticationFlags.AUTH_CREDSSP; pub const WSMAN_FLAG_AUTH_CLIENT_CERTIFICATE = WSManAuthenticationFlags.AUTH_CLIENT_CERTIFICATE; pub const WSMAN_AUTHENTICATION_CREDENTIALS = extern struct { authenticationMechanism: u32, Anonymous: extern union { userAccount: WSMAN_USERNAME_PASSWORD_CREDS, certificateThumbprint: ?[*:0]const u16, }, }; pub const WSMAN_OPTION = extern struct { name: ?[*:0]const u16, value: ?[*:0]const u16, mustComply: BOOL, }; pub const WSMAN_OPTION_SET = extern struct { optionsCount: u32, options: ?*WSMAN_OPTION, optionsMustUnderstand: BOOL, }; pub const WSMAN_OPTION_SETEX = extern struct { optionsCount: u32, options: ?*WSMAN_OPTION, optionsMustUnderstand: BOOL, optionTypes: ?*?PWSTR, }; pub const WSMAN_KEY = extern struct { key: ?[*:0]const u16, value: ?[*:0]const u16, }; pub const WSMAN_SELECTOR_SET = extern struct { numberKeys: u32, keys: ?*WSMAN_KEY, }; pub const WSMAN_FRAGMENT = extern struct { path: ?[*:0]const u16, dialect: ?[*:0]const u16, }; pub const WSMAN_FILTER = extern struct { filter: ?[*:0]const u16, dialect: ?[*:0]const u16, }; pub const WSMAN_OPERATION_INFO = extern struct { fragment: WSMAN_FRAGMENT, filter: WSMAN_FILTER, selectorSet: WSMAN_SELECTOR_SET, optionSet: WSMAN_OPTION_SET, reserved: ?*anyopaque, version: u32, }; pub const WSMAN_OPERATION_INFOEX = extern struct { fragment: WSMAN_FRAGMENT, filter: WSMAN_FILTER, selectorSet: WSMAN_SELECTOR_SET, optionSet: WSMAN_OPTION_SETEX, version: u32, uiLocale: ?[*:0]const u16, dataLocale: ?[*:0]const u16, }; pub const WSMAN_API = extern struct { placeholder: usize, // TODO: why is this type empty? }; pub const WSManProxyAccessType = enum(i32) { IE_PROXY_CONFIG = 1, WINHTTP_PROXY_CONFIG = 2, AUTO_DETECT = 4, NO_PROXY_SERVER = 8, }; pub const WSMAN_OPTION_PROXY_IE_PROXY_CONFIG = WSManProxyAccessType.IE_PROXY_CONFIG; pub const WSMAN_OPTION_PROXY_WINHTTP_PROXY_CONFIG = WSManProxyAccessType.WINHTTP_PROXY_CONFIG; pub const WSMAN_OPTION_PROXY_AUTO_DETECT = WSManProxyAccessType.AUTO_DETECT; pub const WSMAN_OPTION_PROXY_NO_PROXY_SERVER = WSManProxyAccessType.NO_PROXY_SERVER; pub const WSMAN_PROXY_INFO = extern struct { accessType: u32, authenticationCredentials: WSMAN_AUTHENTICATION_CREDENTIALS, }; pub const WSMAN_SESSION = extern struct { placeholder: usize, // TODO: why is this type empty? }; pub const WSManSessionOption = enum(i32) { DEFAULT_OPERATION_TIMEOUTMS = 1, MAX_RETRY_TIME = 11, TIMEOUTMS_CREATE_SHELL = 12, TIMEOUTMS_RUN_SHELL_COMMAND = 13, TIMEOUTMS_RECEIVE_SHELL_OUTPUT = 14, TIMEOUTMS_SEND_SHELL_INPUT = 15, TIMEOUTMS_SIGNAL_SHELL = 16, TIMEOUTMS_CLOSE_SHELL = 17, SKIP_CA_CHECK = 18, SKIP_CN_CHECK = 19, UNENCRYPTED_MESSAGES = 20, UTF16 = 21, ENABLE_SPN_SERVER_PORT = 22, MACHINE_ID = 23, LOCALE = 25, UI_LANGUAGE = 26, MAX_ENVELOPE_SIZE_KB = 28, SHELL_MAX_DATA_SIZE_PER_MESSAGE_KB = 29, REDIRECT_LOCATION = 30, SKIP_REVOCATION_CHECK = 31, ALLOW_NEGOTIATE_IMPLICIT_CREDENTIALS = 32, USE_SSL = 33, USE_INTEARACTIVE_TOKEN = 34, }; pub const WSMAN_OPTION_DEFAULT_OPERATION_TIMEOUTMS = WSManSessionOption.DEFAULT_OPERATION_TIMEOUTMS; pub const WSMAN_OPTION_MAX_RETRY_TIME = WSManSessionOption.MAX_RETRY_TIME; pub const WSMAN_OPTION_TIMEOUTMS_CREATE_SHELL = WSManSessionOption.TIMEOUTMS_CREATE_SHELL; pub const WSMAN_OPTION_TIMEOUTMS_RUN_SHELL_COMMAND = WSManSessionOption.TIMEOUTMS_RUN_SHELL_COMMAND; pub const WSMAN_OPTION_TIMEOUTMS_RECEIVE_SHELL_OUTPUT = WSManSessionOption.TIMEOUTMS_RECEIVE_SHELL_OUTPUT; pub const WSMAN_OPTION_TIMEOUTMS_SEND_SHELL_INPUT = WSManSessionOption.TIMEOUTMS_SEND_SHELL_INPUT; pub const WSMAN_OPTION_TIMEOUTMS_SIGNAL_SHELL = WSManSessionOption.TIMEOUTMS_SIGNAL_SHELL; pub const WSMAN_OPTION_TIMEOUTMS_CLOSE_SHELL = WSManSessionOption.TIMEOUTMS_CLOSE_SHELL; pub const WSMAN_OPTION_SKIP_CA_CHECK = WSManSessionOption.SKIP_CA_CHECK; pub const WSMAN_OPTION_SKIP_CN_CHECK = WSManSessionOption.SKIP_CN_CHECK; pub const WSMAN_OPTION_UNENCRYPTED_MESSAGES = WSManSessionOption.UNENCRYPTED_MESSAGES; pub const WSMAN_OPTION_UTF16 = WSManSessionOption.UTF16; pub const WSMAN_OPTION_ENABLE_SPN_SERVER_PORT = WSManSessionOption.ENABLE_SPN_SERVER_PORT; pub const WSMAN_OPTION_MACHINE_ID = WSManSessionOption.MACHINE_ID; pub const WSMAN_OPTION_LOCALE = WSManSessionOption.LOCALE; pub const WSMAN_OPTION_UI_LANGUAGE = WSManSessionOption.UI_LANGUAGE; pub const WSMAN_OPTION_MAX_ENVELOPE_SIZE_KB = WSManSessionOption.MAX_ENVELOPE_SIZE_KB; pub const WSMAN_OPTION_SHELL_MAX_DATA_SIZE_PER_MESSAGE_KB = WSManSessionOption.SHELL_MAX_DATA_SIZE_PER_MESSAGE_KB; pub const WSMAN_OPTION_REDIRECT_LOCATION = WSManSessionOption.REDIRECT_LOCATION; pub const WSMAN_OPTION_SKIP_REVOCATION_CHECK = WSManSessionOption.SKIP_REVOCATION_CHECK; pub const WSMAN_OPTION_ALLOW_NEGOTIATE_IMPLICIT_CREDENTIALS = WSManSessionOption.ALLOW_NEGOTIATE_IMPLICIT_CREDENTIALS; pub const WSMAN_OPTION_USE_SSL = WSManSessionOption.USE_SSL; pub const WSMAN_OPTION_USE_INTEARACTIVE_TOKEN = WSManSessionOption.USE_INTEARACTIVE_TOKEN; pub const WSMAN_OPERATION = extern struct { placeholder: usize, // TODO: why is this type empty? }; pub const WSManCallbackFlags = enum(i32) { END_OF_OPERATION = 1, END_OF_STREAM = 8, SHELL_SUPPORTS_DISCONNECT = 32, SHELL_AUTODISCONNECTED = 64, NETWORK_FAILURE_DETECTED = 256, RETRYING_AFTER_NETWORK_FAILURE = 512, RECONNECTED_AFTER_NETWORK_FAILURE = 1024, SHELL_AUTODISCONNECTING = 2048, RETRY_ABORTED_DUE_TO_INTERNAL_ERROR = 4096, RECEIVE_DELAY_STREAM_REQUEST_PROCESSED = 8192, }; pub const WSMAN_FLAG_CALLBACK_END_OF_OPERATION = WSManCallbackFlags.END_OF_OPERATION; pub const WSMAN_FLAG_CALLBACK_END_OF_STREAM = WSManCallbackFlags.END_OF_STREAM; pub const WSMAN_FLAG_CALLBACK_SHELL_SUPPORTS_DISCONNECT = WSManCallbackFlags.SHELL_SUPPORTS_DISCONNECT; pub const WSMAN_FLAG_CALLBACK_SHELL_AUTODISCONNECTED = WSManCallbackFlags.SHELL_AUTODISCONNECTED; pub const WSMAN_FLAG_CALLBACK_NETWORK_FAILURE_DETECTED = WSManCallbackFlags.NETWORK_FAILURE_DETECTED; pub const WSMAN_FLAG_CALLBACK_RETRYING_AFTER_NETWORK_FAILURE = WSManCallbackFlags.RETRYING_AFTER_NETWORK_FAILURE; pub const WSMAN_FLAG_CALLBACK_RECONNECTED_AFTER_NETWORK_FAILURE = WSManCallbackFlags.RECONNECTED_AFTER_NETWORK_FAILURE; pub const WSMAN_FLAG_CALLBACK_SHELL_AUTODISCONNECTING = WSManCallbackFlags.SHELL_AUTODISCONNECTING; pub const WSMAN_FLAG_CALLBACK_RETRY_ABORTED_DUE_TO_INTERNAL_ERROR = WSManCallbackFlags.RETRY_ABORTED_DUE_TO_INTERNAL_ERROR; pub const WSMAN_FLAG_CALLBACK_RECEIVE_DELAY_STREAM_REQUEST_PROCESSED = WSManCallbackFlags.RECEIVE_DELAY_STREAM_REQUEST_PROCESSED; pub const WSMAN_SHELL = extern struct { placeholder: usize, // TODO: why is this type empty? }; pub const WSMAN_COMMAND = extern struct { placeholder: usize, // TODO: why is this type empty? }; pub const WSMAN_STREAM_ID_SET = extern struct { streamIDsCount: u32, streamIDs: ?*?PWSTR, }; pub const WSMAN_ENVIRONMENT_VARIABLE = extern struct { name: ?[*:0]const u16, value: ?[*:0]const u16, }; pub const WSMAN_ENVIRONMENT_VARIABLE_SET = extern struct { varsCount: u32, vars: ?*WSMAN_ENVIRONMENT_VARIABLE, }; pub const WSMAN_SHELL_STARTUP_INFO_V10 = extern struct { inputStreamSet: ?*WSMAN_STREAM_ID_SET, outputStreamSet: ?*WSMAN_STREAM_ID_SET, idleTimeoutMs: u32, workingDirectory: ?[*:0]const u16, variableSet: ?*WSMAN_ENVIRONMENT_VARIABLE_SET, }; pub const WSMAN_SHELL_STARTUP_INFO_V11 = extern struct { __AnonymousBase_wsman_L665_C48: WSMAN_SHELL_STARTUP_INFO_V10, name: ?[*:0]const u16, }; pub const WSMAN_SHELL_DISCONNECT_INFO = extern struct { idleTimeoutMs: u32, }; pub const WSManShellFlag = enum(i32) { NO_COMPRESSION = 1, DELETE_SERVER_SESSION = 2, SERVER_BUFFERING_MODE_DROP = 4, SERVER_BUFFERING_MODE_BLOCK = 8, RECEIVE_DELAY_OUTPUT_STREAM = 16, }; pub const WSMAN_FLAG_NO_COMPRESSION = WSManShellFlag.NO_COMPRESSION; pub const WSMAN_FLAG_DELETE_SERVER_SESSION = WSManShellFlag.DELETE_SERVER_SESSION; pub const WSMAN_FLAG_SERVER_BUFFERING_MODE_DROP = WSManShellFlag.SERVER_BUFFERING_MODE_DROP; pub const WSMAN_FLAG_SERVER_BUFFERING_MODE_BLOCK = WSManShellFlag.SERVER_BUFFERING_MODE_BLOCK; pub const WSMAN_FLAG_RECEIVE_DELAY_OUTPUT_STREAM = WSManShellFlag.RECEIVE_DELAY_OUTPUT_STREAM; pub const WSMAN_RECEIVE_DATA_RESULT = extern struct { streamId: ?[*:0]const u16, streamData: WSMAN_DATA, commandState: ?[*:0]const u16, exitCode: u32, }; pub const WSMAN_CONNECT_DATA = extern struct { data: WSMAN_DATA, }; pub const WSMAN_CREATE_SHELL_DATA = extern struct { data: WSMAN_DATA, }; pub const WSMAN_RESPONSE_DATA = extern union { receiveData: WSMAN_RECEIVE_DATA_RESULT, connectData: WSMAN_CONNECT_DATA, createData: WSMAN_CREATE_SHELL_DATA, }; pub const WSMAN_SHELL_COMPLETION_FUNCTION = switch (@import("builtin").zig_backend) { .stage1 => fn ( operationContext: ?*anyopaque, flags: u32, @"error": ?*WSMAN_ERROR, shell: ?*WSMAN_SHELL, command: ?*WSMAN_COMMAND, operationHandle: ?*WSMAN_OPERATION, data: ?*WSMAN_RESPONSE_DATA, ) callconv(@import("std").os.windows.WINAPI) void, else => *const fn ( operationContext: ?*anyopaque, flags: u32, @"error": ?*WSMAN_ERROR, shell: ?*WSMAN_SHELL, command: ?*WSMAN_COMMAND, operationHandle: ?*WSMAN_OPERATION, data: ?*WSMAN_RESPONSE_DATA, ) callconv(@import("std").os.windows.WINAPI) void, }; pub const WSMAN_SHELL_ASYNC = extern struct { operationContext: ?*anyopaque, completionFunction: ?WSMAN_SHELL_COMPLETION_FUNCTION, }; pub const WSMAN_COMMAND_ARG_SET = extern struct { argsCount: u32, args: ?*?PWSTR, }; pub const WSMAN_CERTIFICATE_DETAILS = extern struct { subject: ?[*:0]const u16, issuerName: ?[*:0]const u16, issuerThumbprint: ?[*:0]const u16, subjectName: ?[*:0]const u16, }; pub const WSMAN_SENDER_DETAILS = extern struct { senderName: ?[*:0]const u16, authenticationMechanism: ?[*:0]const u16, certificateDetails: ?*WSMAN_CERTIFICATE_DETAILS, clientToken: ?HANDLE, httpURL: ?[*:0]const u16, }; pub const WSMAN_PLUGIN_REQUEST = extern struct { senderDetails: ?*WSMAN_SENDER_DETAILS, locale: ?[*:0]const u16, resourceUri: ?[*:0]const u16, operationInfo: ?*WSMAN_OPERATION_INFO, shutdownNotification: i32, shutdownNotificationHandle: ?HANDLE, dataLocale: ?[*:0]const u16, }; pub const WSMAN_PLUGIN_RELEASE_SHELL_CONTEXT = switch (@import("builtin").zig_backend) { .stage1 => fn ( shellContext: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) void, else => *const fn ( shellContext: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) void, }; pub const WSMAN_PLUGIN_RELEASE_COMMAND_CONTEXT = switch (@import("builtin").zig_backend) { .stage1 => fn ( shellContext: ?*anyopaque, commandContext: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) void, else => *const fn ( shellContext: ?*anyopaque, commandContext: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) void, }; pub const WSMAN_PLUGIN_STARTUP = switch (@import("builtin").zig_backend) { .stage1 => fn ( flags: u32, applicationIdentification: ?[*:0]const u16, extraInfo: ?[*:0]const u16, pluginContext: ?*?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) u32, else => *const fn ( flags: u32, applicationIdentification: ?[*:0]const u16, extraInfo: ?[*:0]const u16, pluginContext: ?*?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) u32, }; pub const WSMAN_PLUGIN_SHUTDOWN = switch (@import("builtin").zig_backend) { .stage1 => fn ( pluginContext: ?*anyopaque, flags: u32, reason: u32, ) callconv(@import("std").os.windows.WINAPI) u32, else => *const fn ( pluginContext: ?*anyopaque, flags: u32, reason: u32, ) callconv(@import("std").os.windows.WINAPI) u32, }; pub const WSMAN_PLUGIN_SHELL = switch (@import("builtin").zig_backend) { .stage1 => fn ( pluginContext: ?*anyopaque, requestDetails: ?*WSMAN_PLUGIN_REQUEST, flags: u32, startupInfo: ?*WSMAN_SHELL_STARTUP_INFO_V11, inboundShellInformation: ?*WSMAN_DATA, ) callconv(@import("std").os.windows.WINAPI) void, else => *const fn ( pluginContext: ?*anyopaque, requestDetails: ?*WSMAN_PLUGIN_REQUEST, flags: u32, startupInfo: ?*WSMAN_SHELL_STARTUP_INFO_V11, inboundShellInformation: ?*WSMAN_DATA, ) callconv(@import("std").os.windows.WINAPI) void, }; pub const WSMAN_PLUGIN_COMMAND = switch (@import("builtin").zig_backend) { .stage1 => fn ( requestDetails: ?*WSMAN_PLUGIN_REQUEST, flags: u32, shellContext: ?*anyopaque, commandLine: ?[*:0]const u16, arguments: ?*WSMAN_COMMAND_ARG_SET, ) callconv(@import("std").os.windows.WINAPI) void, else => *const fn ( requestDetails: ?*WSMAN_PLUGIN_REQUEST, flags: u32, shellContext: ?*anyopaque, commandLine: ?[*:0]const u16, arguments: ?*WSMAN_COMMAND_ARG_SET, ) callconv(@import("std").os.windows.WINAPI) void, }; pub const WSMAN_PLUGIN_SEND = switch (@import("builtin").zig_backend) { .stage1 => fn ( requestDetails: ?*WSMAN_PLUGIN_REQUEST, flags: u32, shellContext: ?*anyopaque, commandContext: ?*anyopaque, stream: ?[*:0]const u16, inboundData: ?*WSMAN_DATA, ) callconv(@import("std").os.windows.WINAPI) void, else => *const fn ( requestDetails: ?*WSMAN_PLUGIN_REQUEST, flags: u32, shellContext: ?*anyopaque, commandContext: ?*anyopaque, stream: ?[*:0]const u16, inboundData: ?*WSMAN_DATA, ) callconv(@import("std").os.windows.WINAPI) void, }; pub const WSMAN_PLUGIN_RECEIVE = switch (@import("builtin").zig_backend) { .stage1 => fn ( requestDetails: ?*WSMAN_PLUGIN_REQUEST, flags: u32, shellContext: ?*anyopaque, commandContext: ?*anyopaque, streamSet: ?*WSMAN_STREAM_ID_SET, ) callconv(@import("std").os.windows.WINAPI) void, else => *const fn ( requestDetails: ?*WSMAN_PLUGIN_REQUEST, flags: u32, shellContext: ?*anyopaque, commandContext: ?*anyopaque, streamSet: ?*WSMAN_STREAM_ID_SET, ) callconv(@import("std").os.windows.WINAPI) void, }; pub const WSMAN_PLUGIN_SIGNAL = switch (@import("builtin").zig_backend) { .stage1 => fn ( requestDetails: ?*WSMAN_PLUGIN_REQUEST, flags: u32, shellContext: ?*anyopaque, commandContext: ?*anyopaque, code: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) void, else => *const fn ( requestDetails: ?*WSMAN_PLUGIN_REQUEST, flags: u32, shellContext: ?*anyopaque, commandContext: ?*anyopaque, code: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) void, }; pub const WSMAN_PLUGIN_CONNECT = switch (@import("builtin").zig_backend) { .stage1 => fn ( requestDetails: ?*WSMAN_PLUGIN_REQUEST, flags: u32, shellContext: ?*anyopaque, commandContext: ?*anyopaque, inboundConnectInformation: ?*WSMAN_DATA, ) callconv(@import("std").os.windows.WINAPI) void, else => *const fn ( requestDetails: ?*WSMAN_PLUGIN_REQUEST, flags: u32, shellContext: ?*anyopaque, commandContext: ?*anyopaque, inboundConnectInformation: ?*WSMAN_DATA, ) callconv(@import("std").os.windows.WINAPI) void, }; pub const WSMAN_AUTHZ_QUOTA = extern struct { maxAllowedConcurrentShells: u32, maxAllowedConcurrentOperations: u32, timeslotSize: u32, maxAllowedOperationsPerTimeslot: u32, }; pub const WSMAN_PLUGIN_AUTHORIZE_USER = switch (@import("builtin").zig_backend) { .stage1 => fn ( pluginContext: ?*anyopaque, senderDetails: ?*WSMAN_SENDER_DETAILS, flags: u32, ) callconv(@import("std").os.windows.WINAPI) void, else => *const fn ( pluginContext: ?*anyopaque, senderDetails: ?*WSMAN_SENDER_DETAILS, flags: u32, ) callconv(@import("std").os.windows.WINAPI) void, }; pub const WSMAN_PLUGIN_AUTHORIZE_OPERATION = switch (@import("builtin").zig_backend) { .stage1 => fn ( pluginContext: ?*anyopaque, senderDetails: ?*WSMAN_SENDER_DETAILS, flags: u32, operation: u32, action: ?[*:0]const u16, resourceUri: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) void, else => *const fn ( pluginContext: ?*anyopaque, senderDetails: ?*WSMAN_SENDER_DETAILS, flags: u32, operation: u32, action: ?[*:0]const u16, resourceUri: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) void, }; pub const WSMAN_PLUGIN_AUTHORIZE_QUERY_QUOTA = switch (@import("builtin").zig_backend) { .stage1 => fn ( pluginContext: ?*anyopaque, senderDetails: ?*WSMAN_SENDER_DETAILS, flags: u32, ) callconv(@import("std").os.windows.WINAPI) void, else => *const fn ( pluginContext: ?*anyopaque, senderDetails: ?*WSMAN_SENDER_DETAILS, flags: u32, ) callconv(@import("std").os.windows.WINAPI) void, }; pub const WSMAN_PLUGIN_AUTHORIZE_RELEASE_CONTEXT = switch (@import("builtin").zig_backend) { .stage1 => fn ( userAuthorizationContext: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) void, else => *const fn ( userAuthorizationContext: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) void, }; const CLSID_WSMan_Value = Guid.initString("bced617b-ec03-420b-8508-977dc7a686bd"); pub const CLSID_WSMan = &CLSID_WSMan_Value; const CLSID_WSManInternal_Value = Guid.initString("7de087a5-5dcb-4df7-bb12-0924ad8fbd9a"); pub const CLSID_WSManInternal = &CLSID_WSManInternal_Value; pub const WSManSessionFlags = enum(i32) { UTF8 = 1, CredUsernamePassword = 4096, SkipCACheck = 8192, SkipCNCheck = 16384, UseNoAuthentication = 32768, UseDigest = 65536, UseNegotiate = 131072, UseBasic = 262144, UseKerberos = 524288, NoEncryption = 1048576, UseClientCertificate = 2097152, EnableSPNServerPort = 4194304, UTF16 = 8388608, UseCredSsp = 16777216, SkipRevocationCheck = 33554432, AllowNegotiateImplicitCredentials = 67108864, UseSsl = 134217728, }; pub const WSManFlagUTF8 = WSManSessionFlags.UTF8; pub const WSManFlagCredUsernamePassword = WSManSessionFlags.CredUsernamePassword; pub const WSManFlagSkipCACheck = WSManSessionFlags.SkipCACheck; pub const WSManFlagSkipCNCheck = WSManSessionFlags.SkipCNCheck; pub const WSManFlagUseNoAuthentication = WSManSessionFlags.UseNoAuthentication; pub const WSManFlagUseDigest = WSManSessionFlags.UseDigest; pub const WSManFlagUseNegotiate = WSManSessionFlags.UseNegotiate; pub const WSManFlagUseBasic = WSManSessionFlags.UseBasic; pub const WSManFlagUseKerberos = WSManSessionFlags.UseKerberos; pub const WSManFlagNoEncryption = WSManSessionFlags.NoEncryption; pub const WSManFlagUseClientCertificate = WSManSessionFlags.UseClientCertificate; pub const WSManFlagEnableSPNServerPort = WSManSessionFlags.EnableSPNServerPort; pub const WSManFlagUTF16 = WSManSessionFlags.UTF16; pub const WSManFlagUseCredSsp = WSManSessionFlags.UseCredSsp; pub const WSManFlagSkipRevocationCheck = WSManSessionFlags.SkipRevocationCheck; pub const WSManFlagAllowNegotiateImplicitCredentials = WSManSessionFlags.AllowNegotiateImplicitCredentials; pub const WSManFlagUseSsl = WSManSessionFlags.UseSsl; pub const WSManEnumFlags = enum(i32) { NonXmlText = 1, ReturnObject = 0, ReturnEPR = 2, ReturnObjectAndEPR = 4, // HierarchyDeep = 0, this enum value conflicts with ReturnObject HierarchyShallow = 32, HierarchyDeepBasePropsOnly = 64, // AssociatedInstance = 0, this enum value conflicts with ReturnObject AssociationInstance = 128, }; pub const WSManFlagNonXmlText = WSManEnumFlags.NonXmlText; pub const WSManFlagReturnObject = WSManEnumFlags.ReturnObject; pub const WSManFlagReturnEPR = WSManEnumFlags.ReturnEPR; pub const WSManFlagReturnObjectAndEPR = WSManEnumFlags.ReturnObjectAndEPR; pub const WSManFlagHierarchyDeep = WSManEnumFlags.ReturnObject; pub const WSManFlagHierarchyShallow = WSManEnumFlags.HierarchyShallow; pub const WSManFlagHierarchyDeepBasePropsOnly = WSManEnumFlags.HierarchyDeepBasePropsOnly; pub const WSManFlagAssociatedInstance = WSManEnumFlags.ReturnObject; pub const WSManFlagAssociationInstance = WSManEnumFlags.AssociationInstance; pub const WSManProxyAccessTypeFlags = enum(i32) { IEConfig = 1, WinHttpConfig = 2, AutoDetect = 4, NoProxyServer = 8, }; pub const WSManProxyIEConfig = WSManProxyAccessTypeFlags.IEConfig; pub const WSManProxyWinHttpConfig = WSManProxyAccessTypeFlags.WinHttpConfig; pub const WSManProxyAutoDetect = WSManProxyAccessTypeFlags.AutoDetect; pub const WSManProxyNoProxyServer = WSManProxyAccessTypeFlags.NoProxyServer; pub const WSManProxyAuthenticationFlags = enum(i32) { Negotiate = 1, Basic = 2, Digest = 4, }; pub const WSManFlagProxyAuthenticationUseNegotiate = WSManProxyAuthenticationFlags.Negotiate; pub const WSManFlagProxyAuthenticationUseBasic = WSManProxyAuthenticationFlags.Basic; pub const WSManFlagProxyAuthenticationUseDigest = WSManProxyAuthenticationFlags.Digest; // TODO: this type is limited to platform 'windows6.0.6000' const IID_IWSMan_Value = Guid.initString("190d8637-5cd3-496d-ad24-69636bb5a3b5"); pub const IID_IWSMan = &IID_IWSMan_Value; pub const IWSMan = extern struct { pub const VTable = extern struct { base: IDispatch.VTable, CreateSession: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IWSMan, connection: ?BSTR, flags: i32, connectionOptions: ?*IDispatch, session: ?*?*IDispatch, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IWSMan, connection: ?BSTR, flags: i32, connectionOptions: ?*IDispatch, session: ?*?*IDispatch, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, CreateConnectionOptions: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IWSMan, connectionOptions: ?*?*IDispatch, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IWSMan, connectionOptions: ?*?*IDispatch, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_CommandLine: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IWSMan, value: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IWSMan, value: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Error: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IWSMan, value: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IWSMan, value: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IDispatch.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWSMan_CreateSession(self: *const T, connection: ?BSTR, flags: i32, connectionOptions: ?*IDispatch, session: ?*?*IDispatch) HRESULT { return @as(*const IWSMan.VTable, @ptrCast(self.vtable)).CreateSession(@as(*const IWSMan, @ptrCast(self)), connection, flags, connectionOptions, session); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWSMan_CreateConnectionOptions(self: *const T, connectionOptions: ?*?*IDispatch) HRESULT { return @as(*const IWSMan.VTable, @ptrCast(self.vtable)).CreateConnectionOptions(@as(*const IWSMan, @ptrCast(self)), connectionOptions); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWSMan_get_CommandLine(self: *const T, value: ?*?BSTR) HRESULT { return @as(*const IWSMan.VTable, @ptrCast(self.vtable)).get_CommandLine(@as(*const IWSMan, @ptrCast(self)), value); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWSMan_get_Error(self: *const T, value: ?*?BSTR) HRESULT { return @as(*const IWSMan.VTable, @ptrCast(self.vtable)).get_Error(@as(*const IWSMan, @ptrCast(self)), value); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows6.0.6000' const IID_IWSManEx_Value = Guid.initString("2d53bdaa-798e-49e6-a1aa-74d01256f411"); pub const IID_IWSManEx = &IID_IWSManEx_Value; pub const IWSManEx = extern struct { pub const VTable = extern struct { base: IWSMan.VTable, CreateResourceLocator: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IWSManEx, strResourceLocator: ?BSTR, newResourceLocator: ?*?*IDispatch, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IWSManEx, strResourceLocator: ?BSTR, newResourceLocator: ?*?*IDispatch, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SessionFlagUTF8: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IWSManEx, flags: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IWSManEx, flags: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SessionFlagCredUsernamePassword: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IWSManEx, flags: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IWSManEx, flags: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SessionFlagSkipCACheck: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IWSManEx, flags: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IWSManEx, flags: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SessionFlagSkipCNCheck: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IWSManEx, flags: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IWSManEx, flags: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SessionFlagUseDigest: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IWSManEx, flags: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IWSManEx, flags: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SessionFlagUseNegotiate: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IWSManEx, flags: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IWSManEx, flags: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SessionFlagUseBasic: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IWSManEx, flags: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IWSManEx, flags: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SessionFlagUseKerberos: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IWSManEx, flags: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IWSManEx, flags: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SessionFlagNoEncryption: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IWSManEx, flags: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IWSManEx, flags: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SessionFlagEnableSPNServerPort: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IWSManEx, flags: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IWSManEx, flags: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SessionFlagUseNoAuthentication: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IWSManEx, flags: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IWSManEx, flags: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, EnumerationFlagNonXmlText: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IWSManEx, flags: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IWSManEx, flags: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, EnumerationFlagReturnEPR: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IWSManEx, flags: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IWSManEx, flags: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, EnumerationFlagReturnObjectAndEPR: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IWSManEx, flags: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IWSManEx, flags: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetErrorMessage: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IWSManEx, errorNumber: u32, errorMessage: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IWSManEx, errorNumber: u32, errorMessage: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, EnumerationFlagHierarchyDeep: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IWSManEx, flags: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IWSManEx, flags: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, EnumerationFlagHierarchyShallow: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IWSManEx, flags: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IWSManEx, flags: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, EnumerationFlagHierarchyDeepBasePropsOnly: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IWSManEx, flags: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IWSManEx, flags: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, EnumerationFlagReturnObject: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IWSManEx, flags: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IWSManEx, flags: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IWSMan.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWSManEx_CreateResourceLocator(self: *const T, strResourceLocator: ?BSTR, newResourceLocator: ?*?*IDispatch) HRESULT { return @as(*const IWSManEx.VTable, @ptrCast(self.vtable)).CreateResourceLocator(@as(*const IWSManEx, @ptrCast(self)), strResourceLocator, newResourceLocator); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWSManEx_SessionFlagUTF8(self: *const T, flags: ?*i32) HRESULT { return @as(*const IWSManEx.VTable, @ptrCast(self.vtable)).SessionFlagUTF8(@as(*const IWSManEx, @ptrCast(self)), flags); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWSManEx_SessionFlagCredUsernamePassword(self: *const T, flags: ?*i32) HRESULT { return @as(*const IWSManEx.VTable, @ptrCast(self.vtable)).SessionFlagCredUsernamePassword(@as(*const IWSManEx, @ptrCast(self)), flags); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWSManEx_SessionFlagSkipCACheck(self: *const T, flags: ?*i32) HRESULT { return @as(*const IWSManEx.VTable, @ptrCast(self.vtable)).SessionFlagSkipCACheck(@as(*const IWSManEx, @ptrCast(self)), flags); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWSManEx_SessionFlagSkipCNCheck(self: *const T, flags: ?*i32) HRESULT { return @as(*const IWSManEx.VTable, @ptrCast(self.vtable)).SessionFlagSkipCNCheck(@as(*const IWSManEx, @ptrCast(self)), flags); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWSManEx_SessionFlagUseDigest(self: *const T, flags: ?*i32) HRESULT { return @as(*const IWSManEx.VTable, @ptrCast(self.vtable)).SessionFlagUseDigest(@as(*const IWSManEx, @ptrCast(self)), flags); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWSManEx_SessionFlagUseNegotiate(self: *const T, flags: ?*i32) HRESULT { return @as(*const IWSManEx.VTable, @ptrCast(self.vtable)).SessionFlagUseNegotiate(@as(*const IWSManEx, @ptrCast(self)), flags); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWSManEx_SessionFlagUseBasic(self: *const T, flags: ?*i32) HRESULT { return @as(*const IWSManEx.VTable, @ptrCast(self.vtable)).SessionFlagUseBasic(@as(*const IWSManEx, @ptrCast(self)), flags); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWSManEx_SessionFlagUseKerberos(self: *const T, flags: ?*i32) HRESULT { return @as(*const IWSManEx.VTable, @ptrCast(self.vtable)).SessionFlagUseKerberos(@as(*const IWSManEx, @ptrCast(self)), flags); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWSManEx_SessionFlagNoEncryption(self: *const T, flags: ?*i32) HRESULT { return @as(*const IWSManEx.VTable, @ptrCast(self.vtable)).SessionFlagNoEncryption(@as(*const IWSManEx, @ptrCast(self)), flags); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWSManEx_SessionFlagEnableSPNServerPort(self: *const T, flags: ?*i32) HRESULT { return @as(*const IWSManEx.VTable, @ptrCast(self.vtable)).SessionFlagEnableSPNServerPort(@as(*const IWSManEx, @ptrCast(self)), flags); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWSManEx_SessionFlagUseNoAuthentication(self: *const T, flags: ?*i32) HRESULT { return @as(*const IWSManEx.VTable, @ptrCast(self.vtable)).SessionFlagUseNoAuthentication(@as(*const IWSManEx, @ptrCast(self)), flags); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWSManEx_EnumerationFlagNonXmlText(self: *const T, flags: ?*i32) HRESULT { return @as(*const IWSManEx.VTable, @ptrCast(self.vtable)).EnumerationFlagNonXmlText(@as(*const IWSManEx, @ptrCast(self)), flags); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWSManEx_EnumerationFlagReturnEPR(self: *const T, flags: ?*i32) HRESULT { return @as(*const IWSManEx.VTable, @ptrCast(self.vtable)).EnumerationFlagReturnEPR(@as(*const IWSManEx, @ptrCast(self)), flags); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWSManEx_EnumerationFlagReturnObjectAndEPR(self: *const T, flags: ?*i32) HRESULT { return @as(*const IWSManEx.VTable, @ptrCast(self.vtable)).EnumerationFlagReturnObjectAndEPR(@as(*const IWSManEx, @ptrCast(self)), flags); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWSManEx_GetErrorMessage(self: *const T, errorNumber: u32, errorMessage: ?*?BSTR) HRESULT { return @as(*const IWSManEx.VTable, @ptrCast(self.vtable)).GetErrorMessage(@as(*const IWSManEx, @ptrCast(self)), errorNumber, errorMessage); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWSManEx_EnumerationFlagHierarchyDeep(self: *const T, flags: ?*i32) HRESULT { return @as(*const IWSManEx.VTable, @ptrCast(self.vtable)).EnumerationFlagHierarchyDeep(@as(*const IWSManEx, @ptrCast(self)), flags); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWSManEx_EnumerationFlagHierarchyShallow(self: *const T, flags: ?*i32) HRESULT { return @as(*const IWSManEx.VTable, @ptrCast(self.vtable)).EnumerationFlagHierarchyShallow(@as(*const IWSManEx, @ptrCast(self)), flags); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWSManEx_EnumerationFlagHierarchyDeepBasePropsOnly(self: *const T, flags: ?*i32) HRESULT { return @as(*const IWSManEx.VTable, @ptrCast(self.vtable)).EnumerationFlagHierarchyDeepBasePropsOnly(@as(*const IWSManEx, @ptrCast(self)), flags); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWSManEx_EnumerationFlagReturnObject(self: *const T, flags: ?*i32) HRESULT { return @as(*const IWSManEx.VTable, @ptrCast(self.vtable)).EnumerationFlagReturnObject(@as(*const IWSManEx, @ptrCast(self)), flags); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows6.0.6000' const IID_IWSManEx2_Value = Guid.initString("1d1b5ae0-42d9-4021-8261-3987619512e9"); pub const IID_IWSManEx2 = &IID_IWSManEx2_Value; pub const IWSManEx2 = extern struct { pub const VTable = extern struct { base: IWSManEx.VTable, SessionFlagUseClientCertificate: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IWSManEx2, flags: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IWSManEx2, flags: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IWSManEx.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWSManEx2_SessionFlagUseClientCertificate(self: *const T, flags: ?*i32) HRESULT { return @as(*const IWSManEx2.VTable, @ptrCast(self.vtable)).SessionFlagUseClientCertificate(@as(*const IWSManEx2, @ptrCast(self)), flags); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows6.1' const IID_IWSManEx3_Value = Guid.initString("6400e966-011d-4eac-8474-049e0848afad"); pub const IID_IWSManEx3 = &IID_IWSManEx3_Value; pub const IWSManEx3 = extern struct { pub const VTable = extern struct { base: IWSManEx2.VTable, SessionFlagUTF16: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IWSManEx3, flags: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IWSManEx3, flags: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SessionFlagUseCredSsp: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IWSManEx3, flags: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IWSManEx3, flags: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, EnumerationFlagAssociationInstance: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IWSManEx3, flags: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IWSManEx3, flags: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, EnumerationFlagAssociatedInstance: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IWSManEx3, flags: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IWSManEx3, flags: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SessionFlagSkipRevocationCheck: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IWSManEx3, flags: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IWSManEx3, flags: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SessionFlagAllowNegotiateImplicitCredentials: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IWSManEx3, flags: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IWSManEx3, flags: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SessionFlagUseSsl: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IWSManEx3, flags: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IWSManEx3, flags: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IWSManEx2.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWSManEx3_SessionFlagUTF16(self: *const T, flags: ?*i32) HRESULT { return @as(*const IWSManEx3.VTable, @ptrCast(self.vtable)).SessionFlagUTF16(@as(*const IWSManEx3, @ptrCast(self)), flags); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWSManEx3_SessionFlagUseCredSsp(self: *const T, flags: ?*i32) HRESULT { return @as(*const IWSManEx3.VTable, @ptrCast(self.vtable)).SessionFlagUseCredSsp(@as(*const IWSManEx3, @ptrCast(self)), flags); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWSManEx3_EnumerationFlagAssociationInstance(self: *const T, flags: ?*i32) HRESULT { return @as(*const IWSManEx3.VTable, @ptrCast(self.vtable)).EnumerationFlagAssociationInstance(@as(*const IWSManEx3, @ptrCast(self)), flags); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWSManEx3_EnumerationFlagAssociatedInstance(self: *const T, flags: ?*i32) HRESULT { return @as(*const IWSManEx3.VTable, @ptrCast(self.vtable)).EnumerationFlagAssociatedInstance(@as(*const IWSManEx3, @ptrCast(self)), flags); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWSManEx3_SessionFlagSkipRevocationCheck(self: *const T, flags: ?*i32) HRESULT { return @as(*const IWSManEx3.VTable, @ptrCast(self.vtable)).SessionFlagSkipRevocationCheck(@as(*const IWSManEx3, @ptrCast(self)), flags); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWSManEx3_SessionFlagAllowNegotiateImplicitCredentials(self: *const T, flags: ?*i32) HRESULT { return @as(*const IWSManEx3.VTable, @ptrCast(self.vtable)).SessionFlagAllowNegotiateImplicitCredentials(@as(*const IWSManEx3, @ptrCast(self)), flags); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWSManEx3_SessionFlagUseSsl(self: *const T, flags: ?*i32) HRESULT { return @as(*const IWSManEx3.VTable, @ptrCast(self.vtable)).SessionFlagUseSsl(@as(*const IWSManEx3, @ptrCast(self)), flags); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows6.0.6000' const IID_IWSManConnectionOptions_Value = Guid.initString("f704e861-9e52-464f-b786-da5eb2320fdd"); pub const IID_IWSManConnectionOptions = &IID_IWSManConnectionOptions_Value; pub const IWSManConnectionOptions = extern struct { pub const VTable = extern struct { base: IDispatch.VTable, // TODO: this function has a "SpecialName", should Zig do anything with this? get_UserName: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IWSManConnectionOptions, name: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IWSManConnectionOptions, name: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_UserName: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IWSManConnectionOptions, name: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IWSManConnectionOptions, name: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_Password: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IWSManConnectionOptions, password: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IWSManConnectionOptions, password: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IDispatch.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWSManConnectionOptions_get_UserName(self: *const T, name: ?*?BSTR) HRESULT { return @as(*const IWSManConnectionOptions.VTable, @ptrCast(self.vtable)).get_UserName(@as(*const IWSManConnectionOptions, @ptrCast(self)), name); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWSManConnectionOptions_put_UserName(self: *const T, name: ?BSTR) HRESULT { return @as(*const IWSManConnectionOptions.VTable, @ptrCast(self.vtable)).put_UserName(@as(*const IWSManConnectionOptions, @ptrCast(self)), name); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWSManConnectionOptions_put_Password(self: *const T, password: ?BSTR) HRESULT { return @as(*const IWSManConnectionOptions.VTable, @ptrCast(self.vtable)).put_Password(@as(*const IWSManConnectionOptions, @ptrCast(self)), password); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows6.0.6000' const IID_IWSManConnectionOptionsEx_Value = Guid.initString("ef43edf7-2a48-4d93-9526-8bd6ab6d4a6b"); pub const IID_IWSManConnectionOptionsEx = &IID_IWSManConnectionOptionsEx_Value; pub const IWSManConnectionOptionsEx = extern struct { pub const VTable = extern struct { base: IWSManConnectionOptions.VTable, // TODO: this function has a "SpecialName", should Zig do anything with this? get_CertificateThumbprint: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IWSManConnectionOptionsEx, thumbprint: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IWSManConnectionOptionsEx, thumbprint: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_CertificateThumbprint: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IWSManConnectionOptionsEx, thumbprint: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IWSManConnectionOptionsEx, thumbprint: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IWSManConnectionOptions.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWSManConnectionOptionsEx_get_CertificateThumbprint(self: *const T, thumbprint: ?*?BSTR) HRESULT { return @as(*const IWSManConnectionOptionsEx.VTable, @ptrCast(self.vtable)).get_CertificateThumbprint(@as(*const IWSManConnectionOptionsEx, @ptrCast(self)), thumbprint); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWSManConnectionOptionsEx_put_CertificateThumbprint(self: *const T, thumbprint: ?BSTR) HRESULT { return @as(*const IWSManConnectionOptionsEx.VTable, @ptrCast(self.vtable)).put_CertificateThumbprint(@as(*const IWSManConnectionOptionsEx, @ptrCast(self)), thumbprint); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows6.1' const IID_IWSManConnectionOptionsEx2_Value = Guid.initString("f500c9ec-24ee-48ab-b38d-fc9a164c658e"); pub const IID_IWSManConnectionOptionsEx2 = &IID_IWSManConnectionOptionsEx2_Value; pub const IWSManConnectionOptionsEx2 = extern struct { pub const VTable = extern struct { base: IWSManConnectionOptionsEx.VTable, SetProxy: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IWSManConnectionOptionsEx2, accessType: i32, authenticationMechanism: i32, userName: ?BSTR, password: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IWSManConnectionOptionsEx2, accessType: i32, authenticationMechanism: i32, userName: ?BSTR, password: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, ProxyIEConfig: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IWSManConnectionOptionsEx2, value: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IWSManConnectionOptionsEx2, value: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, ProxyWinHttpConfig: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IWSManConnectionOptionsEx2, value: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IWSManConnectionOptionsEx2, value: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, ProxyAutoDetect: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IWSManConnectionOptionsEx2, value: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IWSManConnectionOptionsEx2, value: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, ProxyNoProxyServer: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IWSManConnectionOptionsEx2, value: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IWSManConnectionOptionsEx2, value: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, ProxyAuthenticationUseNegotiate: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IWSManConnectionOptionsEx2, value: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IWSManConnectionOptionsEx2, value: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, ProxyAuthenticationUseBasic: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IWSManConnectionOptionsEx2, value: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IWSManConnectionOptionsEx2, value: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, ProxyAuthenticationUseDigest: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IWSManConnectionOptionsEx2, value: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IWSManConnectionOptionsEx2, value: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IWSManConnectionOptionsEx.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWSManConnectionOptionsEx2_SetProxy(self: *const T, accessType: i32, authenticationMechanism: i32, userName: ?BSTR, password: ?BSTR) HRESULT { return @as(*const IWSManConnectionOptionsEx2.VTable, @ptrCast(self.vtable)).SetProxy(@as(*const IWSManConnectionOptionsEx2, @ptrCast(self)), accessType, authenticationMechanism, userName, password); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWSManConnectionOptionsEx2_ProxyIEConfig(self: *const T, value: ?*i32) HRESULT { return @as(*const IWSManConnectionOptionsEx2.VTable, @ptrCast(self.vtable)).ProxyIEConfig(@as(*const IWSManConnectionOptionsEx2, @ptrCast(self)), value); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWSManConnectionOptionsEx2_ProxyWinHttpConfig(self: *const T, value: ?*i32) HRESULT { return @as(*const IWSManConnectionOptionsEx2.VTable, @ptrCast(self.vtable)).ProxyWinHttpConfig(@as(*const IWSManConnectionOptionsEx2, @ptrCast(self)), value); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWSManConnectionOptionsEx2_ProxyAutoDetect(self: *const T, value: ?*i32) HRESULT { return @as(*const IWSManConnectionOptionsEx2.VTable, @ptrCast(self.vtable)).ProxyAutoDetect(@as(*const IWSManConnectionOptionsEx2, @ptrCast(self)), value); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWSManConnectionOptionsEx2_ProxyNoProxyServer(self: *const T, value: ?*i32) HRESULT { return @as(*const IWSManConnectionOptionsEx2.VTable, @ptrCast(self.vtable)).ProxyNoProxyServer(@as(*const IWSManConnectionOptionsEx2, @ptrCast(self)), value); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWSManConnectionOptionsEx2_ProxyAuthenticationUseNegotiate(self: *const T, value: ?*i32) HRESULT { return @as(*const IWSManConnectionOptionsEx2.VTable, @ptrCast(self.vtable)).ProxyAuthenticationUseNegotiate(@as(*const IWSManConnectionOptionsEx2, @ptrCast(self)), value); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWSManConnectionOptionsEx2_ProxyAuthenticationUseBasic(self: *const T, value: ?*i32) HRESULT { return @as(*const IWSManConnectionOptionsEx2.VTable, @ptrCast(self.vtable)).ProxyAuthenticationUseBasic(@as(*const IWSManConnectionOptionsEx2, @ptrCast(self)), value); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWSManConnectionOptionsEx2_ProxyAuthenticationUseDigest(self: *const T, value: ?*i32) HRESULT { return @as(*const IWSManConnectionOptionsEx2.VTable, @ptrCast(self.vtable)).ProxyAuthenticationUseDigest(@as(*const IWSManConnectionOptionsEx2, @ptrCast(self)), value); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows6.0.6000' const IID_IWSManSession_Value = Guid.initString("fc84fc58-1286-40c4-9da0-c8ef6ec241e0"); pub const IID_IWSManSession = &IID_IWSManSession_Value; pub const IWSManSession = extern struct { pub const VTable = extern struct { base: IDispatch.VTable, Get: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IWSManSession, resourceUri: VARIANT, flags: i32, resource: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IWSManSession, resourceUri: VARIANT, flags: i32, resource: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Put: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IWSManSession, resourceUri: VARIANT, resource: ?BSTR, flags: i32, resultResource: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IWSManSession, resourceUri: VARIANT, resource: ?BSTR, flags: i32, resultResource: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Create: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IWSManSession, resourceUri: VARIANT, resource: ?BSTR, flags: i32, newUri: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IWSManSession, resourceUri: VARIANT, resource: ?BSTR, flags: i32, newUri: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Delete: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IWSManSession, resourceUri: VARIANT, flags: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IWSManSession, resourceUri: VARIANT, flags: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Invoke: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IWSManSession, actionUri: ?BSTR, resourceUri: VARIANT, parameters: ?BSTR, flags: i32, result: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IWSManSession, actionUri: ?BSTR, resourceUri: VARIANT, parameters: ?BSTR, flags: i32, result: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Enumerate: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IWSManSession, resourceUri: VARIANT, filter: ?BSTR, dialect: ?BSTR, flags: i32, resultSet: ?*?*IDispatch, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IWSManSession, resourceUri: VARIANT, filter: ?BSTR, dialect: ?BSTR, flags: i32, resultSet: ?*?*IDispatch, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Identify: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IWSManSession, flags: i32, result: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IWSManSession, flags: i32, result: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Error: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IWSManSession, value: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IWSManSession, value: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_BatchItems: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IWSManSession, value: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IWSManSession, value: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_BatchItems: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IWSManSession, value: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IWSManSession, value: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Timeout: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IWSManSession, value: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IWSManSession, value: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_Timeout: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IWSManSession, value: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IWSManSession, value: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IDispatch.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWSManSession_Get(self: *const T, resourceUri: VARIANT, flags: i32, resource: ?*?BSTR) HRESULT { return @as(*const IWSManSession.VTable, @ptrCast(self.vtable)).Get(@as(*const IWSManSession, @ptrCast(self)), resourceUri, flags, resource); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWSManSession_Put(self: *const T, resourceUri: VARIANT, resource: ?BSTR, flags: i32, resultResource: ?*?BSTR) HRESULT { return @as(*const IWSManSession.VTable, @ptrCast(self.vtable)).Put(@as(*const IWSManSession, @ptrCast(self)), resourceUri, resource, flags, resultResource); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWSManSession_Create(self: *const T, resourceUri: VARIANT, resource: ?BSTR, flags: i32, newUri: ?*?BSTR) HRESULT { return @as(*const IWSManSession.VTable, @ptrCast(self.vtable)).Create(@as(*const IWSManSession, @ptrCast(self)), resourceUri, resource, flags, newUri); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWSManSession_Delete(self: *const T, resourceUri: VARIANT, flags: i32) HRESULT { return @as(*const IWSManSession.VTable, @ptrCast(self.vtable)).Delete(@as(*const IWSManSession, @ptrCast(self)), resourceUri, flags); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWSManSession_Invoke(self: *const T, actionUri: ?BSTR, resourceUri: VARIANT, parameters: ?BSTR, flags: i32, result: ?*?BSTR) HRESULT { return @as(*const IWSManSession.VTable, @ptrCast(self.vtable)).Invoke(@as(*const IWSManSession, @ptrCast(self)), actionUri, resourceUri, parameters, flags, result); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWSManSession_Enumerate(self: *const T, resourceUri: VARIANT, filter: ?BSTR, dialect: ?BSTR, flags: i32, resultSet: ?*?*IDispatch) HRESULT { return @as(*const IWSManSession.VTable, @ptrCast(self.vtable)).Enumerate(@as(*const IWSManSession, @ptrCast(self)), resourceUri, filter, dialect, flags, resultSet); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWSManSession_Identify(self: *const T, flags: i32, result: ?*?BSTR) HRESULT { return @as(*const IWSManSession.VTable, @ptrCast(self.vtable)).Identify(@as(*const IWSManSession, @ptrCast(self)), flags, result); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWSManSession_get_Error(self: *const T, value: ?*?BSTR) HRESULT { return @as(*const IWSManSession.VTable, @ptrCast(self.vtable)).get_Error(@as(*const IWSManSession, @ptrCast(self)), value); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWSManSession_get_BatchItems(self: *const T, value: ?*i32) HRESULT { return @as(*const IWSManSession.VTable, @ptrCast(self.vtable)).get_BatchItems(@as(*const IWSManSession, @ptrCast(self)), value); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWSManSession_put_BatchItems(self: *const T, value: i32) HRESULT { return @as(*const IWSManSession.VTable, @ptrCast(self.vtable)).put_BatchItems(@as(*const IWSManSession, @ptrCast(self)), value); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWSManSession_get_Timeout(self: *const T, value: ?*i32) HRESULT { return @as(*const IWSManSession.VTable, @ptrCast(self.vtable)).get_Timeout(@as(*const IWSManSession, @ptrCast(self)), value); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWSManSession_put_Timeout(self: *const T, value: i32) HRESULT { return @as(*const IWSManSession.VTable, @ptrCast(self.vtable)).put_Timeout(@as(*const IWSManSession, @ptrCast(self)), value); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows6.0.6000' const IID_IWSManEnumerator_Value = Guid.initString("f3457ca9-abb9-4fa5-b850-90e8ca300e7f"); pub const IID_IWSManEnumerator = &IID_IWSManEnumerator_Value; pub const IWSManEnumerator = extern struct { pub const VTable = extern struct { base: IDispatch.VTable, ReadItem: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IWSManEnumerator, resource: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IWSManEnumerator, resource: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_AtEndOfStream: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IWSManEnumerator, eos: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IWSManEnumerator, eos: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Error: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IWSManEnumerator, value: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IWSManEnumerator, value: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IDispatch.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWSManEnumerator_ReadItem(self: *const T, resource: ?*?BSTR) HRESULT { return @as(*const IWSManEnumerator.VTable, @ptrCast(self.vtable)).ReadItem(@as(*const IWSManEnumerator, @ptrCast(self)), resource); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWSManEnumerator_get_AtEndOfStream(self: *const T, eos: ?*i16) HRESULT { return @as(*const IWSManEnumerator.VTable, @ptrCast(self.vtable)).get_AtEndOfStream(@as(*const IWSManEnumerator, @ptrCast(self)), eos); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWSManEnumerator_get_Error(self: *const T, value: ?*?BSTR) HRESULT { return @as(*const IWSManEnumerator.VTable, @ptrCast(self.vtable)).get_Error(@as(*const IWSManEnumerator, @ptrCast(self)), value); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows6.0.6000' const IID_IWSManResourceLocator_Value = Guid.initString("a7a1ba28-de41-466a-ad0a-c4059ead7428"); pub const IID_IWSManResourceLocator = &IID_IWSManResourceLocator_Value; pub const IWSManResourceLocator = extern struct { pub const VTable = extern struct { base: IDispatch.VTable, // TODO: this function has a "SpecialName", should Zig do anything with this? put_ResourceURI: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IWSManResourceLocator, uri: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IWSManResourceLocator, uri: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_ResourceURI: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IWSManResourceLocator, uri: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IWSManResourceLocator, uri: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, AddSelector: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IWSManResourceLocator, resourceSelName: ?BSTR, selValue: VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IWSManResourceLocator, resourceSelName: ?BSTR, selValue: VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, ClearSelectors: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IWSManResourceLocator, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IWSManResourceLocator, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_FragmentPath: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IWSManResourceLocator, text: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IWSManResourceLocator, text: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_FragmentPath: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IWSManResourceLocator, text: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IWSManResourceLocator, text: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_FragmentDialect: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IWSManResourceLocator, text: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IWSManResourceLocator, text: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_FragmentDialect: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IWSManResourceLocator, text: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IWSManResourceLocator, text: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, AddOption: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IWSManResourceLocator, OptionName: ?BSTR, OptionValue: VARIANT, mustComply: BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IWSManResourceLocator, OptionName: ?BSTR, OptionValue: VARIANT, mustComply: BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_MustUnderstandOptions: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IWSManResourceLocator, mustUnderstand: BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IWSManResourceLocator, mustUnderstand: BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_MustUnderstandOptions: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IWSManResourceLocator, mustUnderstand: ?*BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IWSManResourceLocator, mustUnderstand: ?*BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, ClearOptions: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IWSManResourceLocator, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IWSManResourceLocator, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Error: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IWSManResourceLocator, value: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IWSManResourceLocator, value: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IDispatch.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWSManResourceLocator_put_ResourceURI(self: *const T, uri: ?BSTR) HRESULT { return @as(*const IWSManResourceLocator.VTable, @ptrCast(self.vtable)).put_ResourceURI(@as(*const IWSManResourceLocator, @ptrCast(self)), uri); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWSManResourceLocator_get_ResourceURI(self: *const T, uri: ?*?BSTR) HRESULT { return @as(*const IWSManResourceLocator.VTable, @ptrCast(self.vtable)).get_ResourceURI(@as(*const IWSManResourceLocator, @ptrCast(self)), uri); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWSManResourceLocator_AddSelector(self: *const T, resourceSelName: ?BSTR, selValue: VARIANT) HRESULT { return @as(*const IWSManResourceLocator.VTable, @ptrCast(self.vtable)).AddSelector(@as(*const IWSManResourceLocator, @ptrCast(self)), resourceSelName, selValue); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWSManResourceLocator_ClearSelectors(self: *const T) HRESULT { return @as(*const IWSManResourceLocator.VTable, @ptrCast(self.vtable)).ClearSelectors(@as(*const IWSManResourceLocator, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWSManResourceLocator_get_FragmentPath(self: *const T, text: ?*?BSTR) HRESULT { return @as(*const IWSManResourceLocator.VTable, @ptrCast(self.vtable)).get_FragmentPath(@as(*const IWSManResourceLocator, @ptrCast(self)), text); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWSManResourceLocator_put_FragmentPath(self: *const T, text: ?BSTR) HRESULT { return @as(*const IWSManResourceLocator.VTable, @ptrCast(self.vtable)).put_FragmentPath(@as(*const IWSManResourceLocator, @ptrCast(self)), text); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWSManResourceLocator_get_FragmentDialect(self: *const T, text: ?*?BSTR) HRESULT { return @as(*const IWSManResourceLocator.VTable, @ptrCast(self.vtable)).get_FragmentDialect(@as(*const IWSManResourceLocator, @ptrCast(self)), text); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWSManResourceLocator_put_FragmentDialect(self: *const T, text: ?BSTR) HRESULT { return @as(*const IWSManResourceLocator.VTable, @ptrCast(self.vtable)).put_FragmentDialect(@as(*const IWSManResourceLocator, @ptrCast(self)), text); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWSManResourceLocator_AddOption(self: *const T, OptionName: ?BSTR, OptionValue: VARIANT, mustComply: BOOL) HRESULT { return @as(*const IWSManResourceLocator.VTable, @ptrCast(self.vtable)).AddOption(@as(*const IWSManResourceLocator, @ptrCast(self)), OptionName, OptionValue, mustComply); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWSManResourceLocator_put_MustUnderstandOptions(self: *const T, mustUnderstand: BOOL) HRESULT { return @as(*const IWSManResourceLocator.VTable, @ptrCast(self.vtable)).put_MustUnderstandOptions(@as(*const IWSManResourceLocator, @ptrCast(self)), mustUnderstand); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWSManResourceLocator_get_MustUnderstandOptions(self: *const T, mustUnderstand: ?*BOOL) HRESULT { return @as(*const IWSManResourceLocator.VTable, @ptrCast(self.vtable)).get_MustUnderstandOptions(@as(*const IWSManResourceLocator, @ptrCast(self)), mustUnderstand); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWSManResourceLocator_ClearOptions(self: *const T) HRESULT { return @as(*const IWSManResourceLocator.VTable, @ptrCast(self.vtable)).ClearOptions(@as(*const IWSManResourceLocator, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWSManResourceLocator_get_Error(self: *const T, value: ?*?BSTR) HRESULT { return @as(*const IWSManResourceLocator.VTable, @ptrCast(self.vtable)).get_Error(@as(*const IWSManResourceLocator, @ptrCast(self)), value); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IWSManResourceLocatorInternal_Value = Guid.initString("effaead7-7ec8-4716-b9be-f2e7e9fb4adb"); pub const IID_IWSManResourceLocatorInternal = &IID_IWSManResourceLocatorInternal_Value; pub const IWSManResourceLocatorInternal = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); }; } pub usingnamespace MethodMixin(@This()); }; const IID_IWSManInternal_Value = Guid.initString("04ae2b1d-9954-4d99-94a9-a961e72c3a13"); pub const IID_IWSManInternal = &IID_IWSManInternal_Value; pub const IWSManInternal = extern struct { pub const VTable = extern struct { base: IDispatch.VTable, ConfigSDDL: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IWSManInternal, session: ?*IDispatch, resourceUri: VARIANT, flags: i32, resource: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IWSManInternal, session: ?*IDispatch, resourceUri: VARIANT, flags: i32, resource: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IDispatch.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWSManInternal_ConfigSDDL(self: *const T, session: ?*IDispatch, resourceUri: VARIANT, flags: i32, resource: ?*?BSTR) HRESULT { return @as(*const IWSManInternal.VTable, @ptrCast(self.vtable)).ConfigSDDL(@as(*const IWSManInternal, @ptrCast(self)), session, resourceUri, flags, resource); } }; } pub usingnamespace MethodMixin(@This()); }; //-------------------------------------------------------------------------------- // Section: Functions (33) //-------------------------------------------------------------------------------- // TODO: this type is limited to platform 'windows8.0' pub extern "wsmsvc" fn WSManInitialize( flags: u32, apiHandle: ?*?*WSMAN_API, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'windows6.1' pub extern "wsmsvc" fn WSManDeinitialize( apiHandle: ?*WSMAN_API, flags: u32, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'windows6.1' pub extern "wsmsvc" fn WSManGetErrorMessage( apiHandle: ?*WSMAN_API, flags: u32, languageCode: ?[*:0]const u16, errorCode: u32, messageLength: u32, message: ?[*:0]u16, messageLengthUsed: ?*u32, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'windows6.1' pub extern "wsmsvc" fn WSManCreateSession( apiHandle: ?*WSMAN_API, connection: ?[*:0]const u16, flags: u32, serverAuthenticationCredentials: ?*WSMAN_AUTHENTICATION_CREDENTIALS, proxyInfo: ?*WSMAN_PROXY_INFO, session: ?*?*WSMAN_SESSION, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'windows6.1' pub extern "wsmsvc" fn WSManCloseSession( session: ?*WSMAN_SESSION, flags: u32, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'windows6.1' pub extern "wsmsvc" fn WSManSetSessionOption( session: ?*WSMAN_SESSION, option: WSManSessionOption, data: ?*WSMAN_DATA, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'windows6.1' pub extern "wsmsvc" fn WSManGetSessionOptionAsDword( session: ?*WSMAN_SESSION, option: WSManSessionOption, value: ?*u32, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'windows6.1' pub extern "wsmsvc" fn WSManGetSessionOptionAsString( session: ?*WSMAN_SESSION, option: WSManSessionOption, stringLength: u32, string: ?[*:0]u16, stringLengthUsed: ?*u32, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'windows6.1' pub extern "wsmsvc" fn WSManCloseOperation( operationHandle: ?*WSMAN_OPERATION, flags: u32, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'windows6.1' pub extern "wsmsvc" fn WSManCreateShell( session: ?*WSMAN_SESSION, flags: u32, resourceUri: ?[*:0]const u16, startupInfo: ?*WSMAN_SHELL_STARTUP_INFO_V11, options: ?*WSMAN_OPTION_SET, createXml: ?*WSMAN_DATA, @"async": ?*WSMAN_SHELL_ASYNC, shell: ?*?*WSMAN_SHELL, ) callconv(@import("std").os.windows.WINAPI) void; // TODO: this type is limited to platform 'windows6.1' pub extern "wsmsvc" fn WSManRunShellCommand( shell: ?*WSMAN_SHELL, flags: u32, commandLine: ?[*:0]const u16, args: ?*WSMAN_COMMAND_ARG_SET, options: ?*WSMAN_OPTION_SET, @"async": ?*WSMAN_SHELL_ASYNC, command: ?*?*WSMAN_COMMAND, ) callconv(@import("std").os.windows.WINAPI) void; // TODO: this type is limited to platform 'windows6.1' pub extern "wsmsvc" fn WSManSignalShell( shell: ?*WSMAN_SHELL, command: ?*WSMAN_COMMAND, flags: u32, code: ?[*:0]const u16, @"async": ?*WSMAN_SHELL_ASYNC, signalOperation: ?*?*WSMAN_OPERATION, ) callconv(@import("std").os.windows.WINAPI) void; // TODO: this type is limited to platform 'windows6.1' pub extern "wsmsvc" fn WSManReceiveShellOutput( shell: ?*WSMAN_SHELL, command: ?*WSMAN_COMMAND, flags: u32, desiredStreamSet: ?*WSMAN_STREAM_ID_SET, @"async": ?*WSMAN_SHELL_ASYNC, receiveOperation: ?*?*WSMAN_OPERATION, ) callconv(@import("std").os.windows.WINAPI) void; // TODO: this type is limited to platform 'windows6.1' pub extern "wsmsvc" fn WSManSendShellInput( shell: ?*WSMAN_SHELL, command: ?*WSMAN_COMMAND, flags: u32, streamId: ?[*:0]const u16, streamData: ?*WSMAN_DATA, endOfStream: BOOL, @"async": ?*WSMAN_SHELL_ASYNC, sendOperation: ?*?*WSMAN_OPERATION, ) callconv(@import("std").os.windows.WINAPI) void; // TODO: this type is limited to platform 'windows6.1' pub extern "wsmsvc" fn WSManCloseCommand( commandHandle: ?*WSMAN_COMMAND, flags: u32, @"async": ?*WSMAN_SHELL_ASYNC, ) callconv(@import("std").os.windows.WINAPI) void; // TODO: this type is limited to platform 'windows6.1' pub extern "wsmsvc" fn WSManCloseShell( shellHandle: ?*WSMAN_SHELL, flags: u32, @"async": ?*WSMAN_SHELL_ASYNC, ) callconv(@import("std").os.windows.WINAPI) void; // TODO: this type is limited to platform 'windows8.0' pub extern "wsmsvc" fn WSManCreateShellEx( session: ?*WSMAN_SESSION, flags: u32, resourceUri: ?[*:0]const u16, shellId: ?[*:0]const u16, startupInfo: ?*WSMAN_SHELL_STARTUP_INFO_V11, options: ?*WSMAN_OPTION_SET, createXml: ?*WSMAN_DATA, @"async": ?*WSMAN_SHELL_ASYNC, shell: ?*?*WSMAN_SHELL, ) callconv(@import("std").os.windows.WINAPI) void; // TODO: this type is limited to platform 'windows8.0' pub extern "wsmsvc" fn WSManRunShellCommandEx( shell: ?*WSMAN_SHELL, flags: u32, commandId: ?[*:0]const u16, commandLine: ?[*:0]const u16, args: ?*WSMAN_COMMAND_ARG_SET, options: ?*WSMAN_OPTION_SET, @"async": ?*WSMAN_SHELL_ASYNC, command: ?*?*WSMAN_COMMAND, ) callconv(@import("std").os.windows.WINAPI) void; // TODO: this type is limited to platform 'windows8.0' pub extern "wsmsvc" fn WSManDisconnectShell( shell: ?*WSMAN_SHELL, flags: u32, disconnectInfo: ?*WSMAN_SHELL_DISCONNECT_INFO, @"async": ?*WSMAN_SHELL_ASYNC, ) callconv(@import("std").os.windows.WINAPI) void; // TODO: this type is limited to platform 'windows8.0' pub extern "wsmsvc" fn WSManReconnectShell( shell: ?*WSMAN_SHELL, flags: u32, @"async": ?*WSMAN_SHELL_ASYNC, ) callconv(@import("std").os.windows.WINAPI) void; // TODO: this type is limited to platform 'windows8.0' pub extern "wsmsvc" fn WSManReconnectShellCommand( commandHandle: ?*WSMAN_COMMAND, flags: u32, @"async": ?*WSMAN_SHELL_ASYNC, ) callconv(@import("std").os.windows.WINAPI) void; // TODO: this type is limited to platform 'windows8.0' pub extern "wsmsvc" fn WSManConnectShell( session: ?*WSMAN_SESSION, flags: u32, resourceUri: ?[*:0]const u16, shellID: ?[*:0]const u16, options: ?*WSMAN_OPTION_SET, connectXml: ?*WSMAN_DATA, @"async": ?*WSMAN_SHELL_ASYNC, shell: ?*?*WSMAN_SHELL, ) callconv(@import("std").os.windows.WINAPI) void; // TODO: this type is limited to platform 'windows8.0' pub extern "wsmsvc" fn WSManConnectShellCommand( shell: ?*WSMAN_SHELL, flags: u32, commandID: ?[*:0]const u16, options: ?*WSMAN_OPTION_SET, connectXml: ?*WSMAN_DATA, @"async": ?*WSMAN_SHELL_ASYNC, command: ?*?*WSMAN_COMMAND, ) callconv(@import("std").os.windows.WINAPI) void; // TODO: this type is limited to platform 'windows6.1' pub extern "wsmsvc" fn WSManPluginReportContext( requestDetails: ?*WSMAN_PLUGIN_REQUEST, flags: u32, context: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'windows6.1' pub extern "wsmsvc" fn WSManPluginReceiveResult( requestDetails: ?*WSMAN_PLUGIN_REQUEST, flags: u32, stream: ?[*:0]const u16, streamResult: ?*WSMAN_DATA, commandState: ?[*:0]const u16, exitCode: u32, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'windows6.1' pub extern "wsmsvc" fn WSManPluginOperationComplete( requestDetails: ?*WSMAN_PLUGIN_REQUEST, flags: u32, errorCode: u32, extendedInformation: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'windows6.1' pub extern "wsmsvc" fn WSManPluginGetOperationParameters( requestDetails: ?*WSMAN_PLUGIN_REQUEST, flags: u32, data: ?*WSMAN_DATA, ) callconv(@import("std").os.windows.WINAPI) u32; pub extern "wsmsvc" fn WSManPluginGetConfiguration( pluginContext: ?*anyopaque, flags: u32, data: ?*WSMAN_DATA, ) callconv(@import("std").os.windows.WINAPI) u32; pub extern "wsmsvc" fn WSManPluginReportCompletion( pluginContext: ?*anyopaque, flags: u32, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'windows6.1' pub extern "wsmsvc" fn WSManPluginFreeRequestDetails( requestDetails: ?*WSMAN_PLUGIN_REQUEST, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'windows6.1' pub extern "wsmsvc" fn WSManPluginAuthzUserComplete( senderDetails: ?*WSMAN_SENDER_DETAILS, flags: u32, userAuthorizationContext: ?*anyopaque, impersonationToken: ?HANDLE, userIsAdministrator: BOOL, errorCode: u32, extendedErrorInformation: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'windows6.1' pub extern "wsmsvc" fn WSManPluginAuthzOperationComplete( senderDetails: ?*WSMAN_SENDER_DETAILS, flags: u32, userAuthorizationContext: ?*anyopaque, errorCode: u32, extendedErrorInformation: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'windows6.1' pub extern "wsmsvc" fn WSManPluginAuthzQueryQuotaComplete( senderDetails: ?*WSMAN_SENDER_DETAILS, flags: u32, quota: ?*WSMAN_AUTHZ_QUOTA, errorCode: u32, extendedErrorInformation: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) u32; //-------------------------------------------------------------------------------- // Section: Unicode Aliases (0) //-------------------------------------------------------------------------------- const thismodule = @This(); pub usingnamespace switch (@import("../zig.zig").unicode_mode) { .ansi => struct {}, .wide => struct {}, .unspecified => if (@import("builtin").is_test) struct {} else struct {}, }; //-------------------------------------------------------------------------------- // Section: Imports (9) //-------------------------------------------------------------------------------- const Guid = @import("../zig.zig").Guid; const BOOL = @import("../foundation.zig").BOOL; const BSTR = @import("../foundation.zig").BSTR; const HANDLE = @import("../foundation.zig").HANDLE; const HRESULT = @import("../foundation.zig").HRESULT; const IDispatch = @import("../system/com.zig").IDispatch; const IUnknown = @import("../system/com.zig").IUnknown; const PWSTR = @import("../foundation.zig").PWSTR; const VARIANT = @import("../system/com.zig").VARIANT; test { // The following '_ = <FuncPtrType>' lines are a workaround for https://github.com/ziglang/zig/issues/4476 if (@hasDecl(@This(), "WSMAN_SHELL_COMPLETION_FUNCTION")) { _ = WSMAN_SHELL_COMPLETION_FUNCTION; } if (@hasDecl(@This(), "WSMAN_PLUGIN_RELEASE_SHELL_CONTEXT")) { _ = WSMAN_PLUGIN_RELEASE_SHELL_CONTEXT; } if (@hasDecl(@This(), "WSMAN_PLUGIN_RELEASE_COMMAND_CONTEXT")) { _ = WSMAN_PLUGIN_RELEASE_COMMAND_CONTEXT; } if (@hasDecl(@This(), "WSMAN_PLUGIN_STARTUP")) { _ = WSMAN_PLUGIN_STARTUP; } if (@hasDecl(@This(), "WSMAN_PLUGIN_SHUTDOWN")) { _ = WSMAN_PLUGIN_SHUTDOWN; } if (@hasDecl(@This(), "WSMAN_PLUGIN_SHELL")) { _ = WSMAN_PLUGIN_SHELL; } if (@hasDecl(@This(), "WSMAN_PLUGIN_COMMAND")) { _ = WSMAN_PLUGIN_COMMAND; } if (@hasDecl(@This(), "WSMAN_PLUGIN_SEND")) { _ = WSMAN_PLUGIN_SEND; } if (@hasDecl(@This(), "WSMAN_PLUGIN_RECEIVE")) { _ = WSMAN_PLUGIN_RECEIVE; } if (@hasDecl(@This(), "WSMAN_PLUGIN_SIGNAL")) { _ = WSMAN_PLUGIN_SIGNAL; } if (@hasDecl(@This(), "WSMAN_PLUGIN_CONNECT")) { _ = WSMAN_PLUGIN_CONNECT; } if (@hasDecl(@This(), "WSMAN_PLUGIN_AUTHORIZE_USER")) { _ = WSMAN_PLUGIN_AUTHORIZE_USER; } if (@hasDecl(@This(), "WSMAN_PLUGIN_AUTHORIZE_OPERATION")) { _ = WSMAN_PLUGIN_AUTHORIZE_OPERATION; } if (@hasDecl(@This(), "WSMAN_PLUGIN_AUTHORIZE_QUERY_QUOTA")) { _ = WSMAN_PLUGIN_AUTHORIZE_QUERY_QUOTA; } if (@hasDecl(@This(), "WSMAN_PLUGIN_AUTHORIZE_RELEASE_CONTEXT")) { _ = WSMAN_PLUGIN_AUTHORIZE_RELEASE_CONTEXT; } @setEvalBranchQuota(comptime @import("std").meta.declarations(@This()).len * 3); // reference all the pub declarations if (!@import("builtin").is_test) return; inline for (comptime @import("std").meta.declarations(@This())) |decl| { if (decl.is_pub) { _ = @field(@This(), decl.name); } } }
0
repos/capy/vendor/zigwin32/win32
repos/capy/vendor/zigwin32/win32/system/message_queuing.zig
//! NOTE: this file is autogenerated, DO NOT MODIFY //-------------------------------------------------------------------------------- // Section: Constants (185) //-------------------------------------------------------------------------------- pub const PRLT = @as(u32, 0); pub const PRLE = @as(u32, 1); pub const PRGT = @as(u32, 2); pub const PRGE = @as(u32, 3); pub const PREQ = @as(u32, 4); pub const PRNE = @as(u32, 5); pub const QUERY_SORTASCEND = @as(u32, 0); pub const QUERY_SORTDESCEND = @as(u32, 1); pub const MQ_MOVE_ACCESS = @as(u32, 4); pub const MQ_ACTION_RECEIVE = @as(u32, 0); pub const MQ_ACTION_PEEK_CURRENT = @as(u32, 2147483648); pub const MQ_ACTION_PEEK_NEXT = @as(u32, 2147483649); pub const MQ_LOOKUP_PEEK_CURRENT = @as(u32, 1073741840); pub const MQ_LOOKUP_PEEK_NEXT = @as(u32, 1073741841); pub const MQ_LOOKUP_PEEK_PREV = @as(u32, 1073741842); pub const MQ_LOOKUP_PEEK_FIRST = @as(u32, 1073741844); pub const MQ_LOOKUP_PEEK_LAST = @as(u32, 1073741848); pub const MQ_LOOKUP_RECEIVE_CURRENT = @as(u32, 1073741856); pub const MQ_LOOKUP_RECEIVE_NEXT = @as(u32, 1073741857); pub const MQ_LOOKUP_RECEIVE_PREV = @as(u32, 1073741858); pub const MQ_LOOKUP_RECEIVE_FIRST = @as(u32, 1073741860); pub const MQ_LOOKUP_RECEIVE_LAST = @as(u32, 1073741864); pub const MQ_LOOKUP_RECEIVE_ALLOW_PEEK = @as(u32, 1073742112); pub const PROPID_M_BASE = @as(u32, 0); pub const PROPID_M_CLASS = @as(u32, 1); pub const PROPID_M_MSGID = @as(u32, 2); pub const PROPID_M_CORRELATIONID = @as(u32, 3); pub const PROPID_M_PRIORITY = @as(u32, 4); pub const PROPID_M_DELIVERY = @as(u32, 5); pub const PROPID_M_ACKNOWLEDGE = @as(u32, 6); pub const PROPID_M_JOURNAL = @as(u32, 7); pub const PROPID_M_APPSPECIFIC = @as(u32, 8); pub const PROPID_M_BODY = @as(u32, 9); pub const PROPID_M_BODY_SIZE = @as(u32, 10); pub const PROPID_M_LABEL = @as(u32, 11); pub const PROPID_M_LABEL_LEN = @as(u32, 12); pub const PROPID_M_TIME_TO_REACH_QUEUE = @as(u32, 13); pub const PROPID_M_TIME_TO_BE_RECEIVED = @as(u32, 14); pub const PROPID_M_RESP_QUEUE = @as(u32, 15); pub const PROPID_M_RESP_QUEUE_LEN = @as(u32, 16); pub const PROPID_M_ADMIN_QUEUE = @as(u32, 17); pub const PROPID_M_ADMIN_QUEUE_LEN = @as(u32, 18); pub const PROPID_M_VERSION = @as(u32, 19); pub const PROPID_M_SENDERID = @as(u32, 20); pub const PROPID_M_SENDERID_LEN = @as(u32, 21); pub const PROPID_M_SENDERID_TYPE = @as(u32, 22); pub const PROPID_M_PRIV_LEVEL = @as(u32, 23); pub const PROPID_M_AUTH_LEVEL = @as(u32, 24); pub const PROPID_M_AUTHENTICATED = @as(u32, 25); pub const PROPID_M_HASH_ALG = @as(u32, 26); pub const PROPID_M_ENCRYPTION_ALG = @as(u32, 27); pub const PROPID_M_SENDER_CERT = @as(u32, 28); pub const PROPID_M_SENDER_CERT_LEN = @as(u32, 29); pub const PROPID_M_SRC_MACHINE_ID = @as(u32, 30); pub const PROPID_M_SENTTIME = @as(u32, 31); pub const PROPID_M_ARRIVEDTIME = @as(u32, 32); pub const PROPID_M_DEST_QUEUE = @as(u32, 33); pub const PROPID_M_DEST_QUEUE_LEN = @as(u32, 34); pub const PROPID_M_EXTENSION = @as(u32, 35); pub const PROPID_M_EXTENSION_LEN = @as(u32, 36); pub const PROPID_M_SECURITY_CONTEXT = @as(u32, 37); pub const PROPID_M_CONNECTOR_TYPE = @as(u32, 38); pub const PROPID_M_XACT_STATUS_QUEUE = @as(u32, 39); pub const PROPID_M_XACT_STATUS_QUEUE_LEN = @as(u32, 40); pub const PROPID_M_TRACE = @as(u32, 41); pub const PROPID_M_BODY_TYPE = @as(u32, 42); pub const PROPID_M_DEST_SYMM_KEY = @as(u32, 43); pub const PROPID_M_DEST_SYMM_KEY_LEN = @as(u32, 44); pub const PROPID_M_SIGNATURE = @as(u32, 45); pub const PROPID_M_SIGNATURE_LEN = @as(u32, 46); pub const PROPID_M_PROV_TYPE = @as(u32, 47); pub const PROPID_M_PROV_NAME = @as(u32, 48); pub const PROPID_M_PROV_NAME_LEN = @as(u32, 49); pub const PROPID_M_FIRST_IN_XACT = @as(u32, 50); pub const PROPID_M_LAST_IN_XACT = @as(u32, 51); pub const PROPID_M_XACTID = @as(u32, 52); pub const PROPID_M_AUTHENTICATED_EX = @as(u32, 53); pub const PROPID_M_RESP_FORMAT_NAME = @as(u32, 54); pub const PROPID_M_RESP_FORMAT_NAME_LEN = @as(u32, 55); pub const PROPID_M_DEST_FORMAT_NAME = @as(u32, 58); pub const PROPID_M_DEST_FORMAT_NAME_LEN = @as(u32, 59); pub const PROPID_M_LOOKUPID = @as(u32, 60); pub const PROPID_M_SOAP_ENVELOPE = @as(u32, 61); pub const PROPID_M_SOAP_ENVELOPE_LEN = @as(u32, 62); pub const PROPID_M_COMPOUND_MESSAGE = @as(u32, 63); pub const PROPID_M_COMPOUND_MESSAGE_SIZE = @as(u32, 64); pub const PROPID_M_SOAP_HEADER = @as(u32, 65); pub const PROPID_M_SOAP_BODY = @as(u32, 66); pub const PROPID_M_DEADLETTER_QUEUE = @as(u32, 67); pub const PROPID_M_DEADLETTER_QUEUE_LEN = @as(u32, 68); pub const PROPID_M_ABORT_COUNT = @as(u32, 69); pub const PROPID_M_MOVE_COUNT = @as(u32, 70); pub const PROPID_M_LAST_MOVE_TIME = @as(u32, 75); pub const PROPID_M_MSGID_SIZE = @as(u32, 20); pub const PROPID_M_CORRELATIONID_SIZE = @as(u32, 20); pub const PROPID_M_XACTID_SIZE = @as(u32, 20); pub const MQMSG_PRIV_LEVEL_BODY_AES = @as(u32, 5); pub const MQMSG_AUTHENTICATED_QM_MESSAGE = @as(u32, 11); pub const MQMSG_NOT_FIRST_IN_XACT = @as(u32, 0); pub const MQMSG_FIRST_IN_XACT = @as(u32, 1); pub const MQMSG_NOT_LAST_IN_XACT = @as(u32, 0); pub const MQMSG_LAST_IN_XACT = @as(u32, 1); pub const PROPID_Q_BASE = @as(u32, 100); pub const PROPID_Q_INSTANCE = @as(u32, 101); pub const PROPID_Q_TYPE = @as(u32, 102); pub const PROPID_Q_PATHNAME = @as(u32, 103); pub const PROPID_Q_JOURNAL = @as(u32, 104); pub const PROPID_Q_QUOTA = @as(u32, 105); pub const PROPID_Q_BASEPRIORITY = @as(u32, 106); pub const PROPID_Q_JOURNAL_QUOTA = @as(u32, 107); pub const PROPID_Q_LABEL = @as(u32, 108); pub const PROPID_Q_CREATE_TIME = @as(u32, 109); pub const PROPID_Q_MODIFY_TIME = @as(u32, 110); pub const PROPID_Q_AUTHENTICATE = @as(u32, 111); pub const PROPID_Q_PRIV_LEVEL = @as(u32, 112); pub const PROPID_Q_TRANSACTION = @as(u32, 113); pub const PROPID_Q_PATHNAME_DNS = @as(u32, 124); pub const PROPID_Q_MULTICAST_ADDRESS = @as(u32, 125); pub const PROPID_Q_ADS_PATH = @as(u32, 126); pub const PROPID_QM_BASE = @as(u32, 200); pub const PROPID_QM_SITE_ID = @as(u32, 201); pub const PROPID_QM_MACHINE_ID = @as(u32, 202); pub const PROPID_QM_PATHNAME = @as(u32, 203); pub const PROPID_QM_CONNECTION = @as(u32, 204); pub const PROPID_QM_ENCRYPTION_PK = @as(u32, 205); pub const PROPID_QM_ENCRYPTION_PK_BASE = @as(u32, 231); pub const PROPID_QM_ENCRYPTION_PK_ENHANCED = @as(u32, 232); pub const PROPID_QM_PATHNAME_DNS = @as(u32, 233); pub const PROPID_QM_ENCRYPTION_PK_AES = @as(u32, 244); pub const PROPID_PC_BASE = @as(u32, 5800); pub const PROPID_PC_VERSION = @as(u32, 5801); pub const PROPID_PC_DS_ENABLED = @as(u32, 5802); pub const PROPID_MGMT_MSMQ_BASE = @as(u32, 0); pub const PROPID_MGMT_MSMQ_ACTIVEQUEUES = @as(u32, 1); pub const PROPID_MGMT_MSMQ_PRIVATEQ = @as(u32, 2); pub const PROPID_MGMT_MSMQ_DSSERVER = @as(u32, 3); pub const PROPID_MGMT_MSMQ_CONNECTED = @as(u32, 4); pub const PROPID_MGMT_MSMQ_TYPE = @as(u32, 5); pub const PROPID_MGMT_MSMQ_BYTES_IN_ALL_QUEUES = @as(u32, 6); pub const PROPID_MGMT_QUEUE_BASE = @as(u32, 0); pub const PROPID_MGMT_QUEUE_PATHNAME = @as(u32, 1); pub const PROPID_MGMT_QUEUE_FORMATNAME = @as(u32, 2); pub const PROPID_MGMT_QUEUE_TYPE = @as(u32, 3); pub const PROPID_MGMT_QUEUE_LOCATION = @as(u32, 4); pub const PROPID_MGMT_QUEUE_XACT = @as(u32, 5); pub const PROPID_MGMT_QUEUE_FOREIGN = @as(u32, 6); pub const PROPID_MGMT_QUEUE_MESSAGE_COUNT = @as(u32, 7); pub const PROPID_MGMT_QUEUE_BYTES_IN_QUEUE = @as(u32, 8); pub const PROPID_MGMT_QUEUE_JOURNAL_MESSAGE_COUNT = @as(u32, 9); pub const PROPID_MGMT_QUEUE_BYTES_IN_JOURNAL = @as(u32, 10); pub const PROPID_MGMT_QUEUE_STATE = @as(u32, 11); pub const PROPID_MGMT_QUEUE_NEXTHOPS = @as(u32, 12); pub const PROPID_MGMT_QUEUE_EOD_LAST_ACK = @as(u32, 13); pub const PROPID_MGMT_QUEUE_EOD_LAST_ACK_TIME = @as(u32, 14); pub const PROPID_MGMT_QUEUE_EOD_LAST_ACK_COUNT = @as(u32, 15); pub const PROPID_MGMT_QUEUE_EOD_FIRST_NON_ACK = @as(u32, 16); pub const PROPID_MGMT_QUEUE_EOD_LAST_NON_ACK = @as(u32, 17); pub const PROPID_MGMT_QUEUE_EOD_NEXT_SEQ = @as(u32, 18); pub const PROPID_MGMT_QUEUE_EOD_NO_READ_COUNT = @as(u32, 19); pub const PROPID_MGMT_QUEUE_EOD_NO_ACK_COUNT = @as(u32, 20); pub const PROPID_MGMT_QUEUE_EOD_RESEND_TIME = @as(u32, 21); pub const PROPID_MGMT_QUEUE_EOD_RESEND_INTERVAL = @as(u32, 22); pub const PROPID_MGMT_QUEUE_EOD_RESEND_COUNT = @as(u32, 23); pub const PROPID_MGMT_QUEUE_EOD_SOURCE_INFO = @as(u32, 24); pub const PROPID_MGMT_QUEUE_CONNECTION_HISTORY = @as(u32, 25); pub const PROPID_MGMT_QUEUE_SUBQUEUE_COUNT = @as(u32, 26); pub const PROPID_MGMT_QUEUE_SUBQUEUE_NAMES = @as(u32, 27); pub const PROPID_MGMT_QUEUE_USED_QUOTA = @as(u32, 8); pub const PROPID_MGMT_QUEUE_JOURNAL_USED_QUOTA = @as(u32, 10); pub const LONG_LIVED = @as(u32, 4294967294); pub const MQSEC_DELETE_MESSAGE = @as(u32, 1); pub const MQSEC_PEEK_MESSAGE = @as(u32, 2); pub const MQSEC_WRITE_MESSAGE = @as(u32, 4); pub const MQSEC_DELETE_JOURNAL_MESSAGE = @as(u32, 8); pub const MQSEC_SET_QUEUE_PROPERTIES = @as(u32, 16); pub const MQSEC_GET_QUEUE_PROPERTIES = @as(u32, 32); pub const MQSEC_DELETE_QUEUE = @as(u32, 65536); pub const MQSEC_CHANGE_QUEUE_PERMISSIONS = @as(u32, 262144); pub const MQSEC_TAKE_QUEUE_OWNERSHIP = @as(u32, 524288); pub const MQSEC_QUEUE_GENERIC_EXECUTE = @as(u32, 0); pub const MQ_OK = @import("../zig.zig").typedConst(HRESULT, @as(i32, 0)); pub const MQ_ERROR_RESOLVE_ADDRESS = @import("../zig.zig").typedConst(HRESULT, @as(i32, -1072824167)); pub const MQ_ERROR_TOO_MANY_PROPERTIES = @import("../zig.zig").typedConst(HRESULT, @as(i32, -1072824166)); pub const MQ_ERROR_MESSAGE_NOT_AUTHENTICATED = @import("../zig.zig").typedConst(HRESULT, @as(i32, -1072824165)); pub const MQ_ERROR_MESSAGE_LOCKED_UNDER_TRANSACTION = @import("../zig.zig").typedConst(HRESULT, @as(i32, -1072824164)); //-------------------------------------------------------------------------------- // Section: Types (89) //-------------------------------------------------------------------------------- const CLSID_MSMQQuery_Value = Guid.initString("d7d6e073-dccd-11d0-aa4b-0060970debae"); pub const CLSID_MSMQQuery = &CLSID_MSMQQuery_Value; const CLSID_MSMQMessage_Value = Guid.initString("d7d6e075-dccd-11d0-aa4b-0060970debae"); pub const CLSID_MSMQMessage = &CLSID_MSMQMessage_Value; const CLSID_MSMQQueue_Value = Guid.initString("d7d6e079-dccd-11d0-aa4b-0060970debae"); pub const CLSID_MSMQQueue = &CLSID_MSMQQueue_Value; const CLSID_MSMQEvent_Value = Guid.initString("d7d6e07a-dccd-11d0-aa4b-0060970debae"); pub const CLSID_MSMQEvent = &CLSID_MSMQEvent_Value; const CLSID_MSMQQueueInfo_Value = Guid.initString("d7d6e07c-dccd-11d0-aa4b-0060970debae"); pub const CLSID_MSMQQueueInfo = &CLSID_MSMQQueueInfo_Value; const CLSID_MSMQQueueInfos_Value = Guid.initString("d7d6e07e-dccd-11d0-aa4b-0060970debae"); pub const CLSID_MSMQQueueInfos = &CLSID_MSMQQueueInfos_Value; const CLSID_MSMQTransaction_Value = Guid.initString("d7d6e080-dccd-11d0-aa4b-0060970debae"); pub const CLSID_MSMQTransaction = &CLSID_MSMQTransaction_Value; const CLSID_MSMQCoordinatedTransactionDispenser_Value = Guid.initString("d7d6e082-dccd-11d0-aa4b-0060970debae"); pub const CLSID_MSMQCoordinatedTransactionDispenser = &CLSID_MSMQCoordinatedTransactionDispenser_Value; const CLSID_MSMQTransactionDispenser_Value = Guid.initString("d7d6e084-dccd-11d0-aa4b-0060970debae"); pub const CLSID_MSMQTransactionDispenser = &CLSID_MSMQTransactionDispenser_Value; const CLSID_MSMQApplication_Value = Guid.initString("d7d6e086-dccd-11d0-aa4b-0060970debae"); pub const CLSID_MSMQApplication = &CLSID_MSMQApplication_Value; const CLSID_MSMQDestination_Value = Guid.initString("eba96b18-2168-11d3-898c-00e02c074f6b"); pub const CLSID_MSMQDestination = &CLSID_MSMQDestination_Value; const CLSID_MSMQCollection_Value = Guid.initString("f72b9031-2f0c-43e8-924e-e6052cdc493f"); pub const CLSID_MSMQCollection = &CLSID_MSMQCollection_Value; const CLSID_MSMQManagement_Value = Guid.initString("39ce96fe-f4c5-4484-a143-4c2d5d324229"); pub const CLSID_MSMQManagement = &CLSID_MSMQManagement_Value; const CLSID_MSMQOutgoingQueueManagement_Value = Guid.initString("0188401c-247a-4fed-99c6-bf14119d7055"); pub const CLSID_MSMQOutgoingQueueManagement = &CLSID_MSMQOutgoingQueueManagement_Value; const CLSID_MSMQQueueManagement_Value = Guid.initString("33b6d07e-f27d-42fa-b2d7-bf82e11e9374"); pub const CLSID_MSMQQueueManagement = &CLSID_MSMQQueueManagement_Value; pub const MQCALG = enum(i32) { MD2 = 32769, MD4 = 32770, MD5 = 32771, SHA = 32772, // SHA1 = 32772, this enum value conflicts with SHA MAC = 32773, RSA_SIGN = 9216, DSS_SIGN = 8704, RSA_KEYX = 41984, DES = 26113, RC2 = 26114, RC4 = 26625, SEAL = 26626, }; pub const MQMSG_CALG_MD2 = MQCALG.MD2; pub const MQMSG_CALG_MD4 = MQCALG.MD4; pub const MQMSG_CALG_MD5 = MQCALG.MD5; pub const MQMSG_CALG_SHA = MQCALG.SHA; pub const MQMSG_CALG_SHA1 = MQCALG.SHA; pub const MQMSG_CALG_MAC = MQCALG.MAC; pub const MQMSG_CALG_RSA_SIGN = MQCALG.RSA_SIGN; pub const MQMSG_CALG_DSS_SIGN = MQCALG.DSS_SIGN; pub const MQMSG_CALG_RSA_KEYX = MQCALG.RSA_KEYX; pub const MQMSG_CALG_DES = MQCALG.DES; pub const MQMSG_CALG_RC2 = MQCALG.RC2; pub const MQMSG_CALG_RC4 = MQCALG.RC4; pub const MQMSG_CALG_SEAL = MQCALG.SEAL; pub const MQTRANSACTION = enum(i32) { NO_TRANSACTION = 0, MTS_TRANSACTION = 1, XA_TRANSACTION = 2, SINGLE_MESSAGE = 3, }; pub const MQ_NO_TRANSACTION = MQTRANSACTION.NO_TRANSACTION; pub const MQ_MTS_TRANSACTION = MQTRANSACTION.MTS_TRANSACTION; pub const MQ_XA_TRANSACTION = MQTRANSACTION.XA_TRANSACTION; pub const MQ_SINGLE_MESSAGE = MQTRANSACTION.SINGLE_MESSAGE; pub const RELOPS = enum(i32) { NOP = 0, EQ = 1, NEQ = 2, LT = 3, GT = 4, LE = 5, GE = 6, }; pub const REL_NOP = RELOPS.NOP; pub const REL_EQ = RELOPS.EQ; pub const REL_NEQ = RELOPS.NEQ; pub const REL_LT = RELOPS.LT; pub const REL_GT = RELOPS.GT; pub const REL_LE = RELOPS.LE; pub const REL_GE = RELOPS.GE; pub const MQCERT_REGISTER = enum(i32) { ALWAYS = 1, IF_NOT_EXIST = 2, }; pub const MQCERT_REGISTER_ALWAYS = MQCERT_REGISTER.ALWAYS; pub const MQCERT_REGISTER_IF_NOT_EXIST = MQCERT_REGISTER.IF_NOT_EXIST; pub const MQMSGCURSOR = enum(i32) { FIRST = 0, CURRENT = 1, NEXT = 2, }; pub const MQMSG_FIRST = MQMSGCURSOR.FIRST; pub const MQMSG_CURRENT = MQMSGCURSOR.CURRENT; pub const MQMSG_NEXT = MQMSGCURSOR.NEXT; pub const MQMSGCLASS = enum(i32) { NORMAL = 0, REPORT = 1, ACK_REACH_QUEUE = 2, ACK_RECEIVE = 16384, NACK_BAD_DST_Q = 32768, NACK_PURGED = 32769, NACK_REACH_QUEUE_TIMEOUT = 32770, NACK_Q_EXCEED_QUOTA = 32771, NACK_ACCESS_DENIED = 32772, NACK_HOP_COUNT_EXCEEDED = 32773, NACK_BAD_SIGNATURE = 32774, NACK_BAD_ENCRYPTION = 32775, NACK_COULD_NOT_ENCRYPT = 32776, NACK_NOT_TRANSACTIONAL_Q = 32777, NACK_NOT_TRANSACTIONAL_MSG = 32778, NACK_UNSUPPORTED_CRYPTO_PROVIDER = 32779, NACK_SOURCE_COMPUTER_GUID_CHANGED = 32780, NACK_Q_DELETED = 49152, NACK_Q_PURGED = 49153, NACK_RECEIVE_TIMEOUT = 49154, NACK_RECEIVE_TIMEOUT_AT_SENDER = 49155, }; pub const MQMSG_CLASS_NORMAL = MQMSGCLASS.NORMAL; pub const MQMSG_CLASS_REPORT = MQMSGCLASS.REPORT; pub const MQMSG_CLASS_ACK_REACH_QUEUE = MQMSGCLASS.ACK_REACH_QUEUE; pub const MQMSG_CLASS_ACK_RECEIVE = MQMSGCLASS.ACK_RECEIVE; pub const MQMSG_CLASS_NACK_BAD_DST_Q = MQMSGCLASS.NACK_BAD_DST_Q; pub const MQMSG_CLASS_NACK_PURGED = MQMSGCLASS.NACK_PURGED; pub const MQMSG_CLASS_NACK_REACH_QUEUE_TIMEOUT = MQMSGCLASS.NACK_REACH_QUEUE_TIMEOUT; pub const MQMSG_CLASS_NACK_Q_EXCEED_QUOTA = MQMSGCLASS.NACK_Q_EXCEED_QUOTA; pub const MQMSG_CLASS_NACK_ACCESS_DENIED = MQMSGCLASS.NACK_ACCESS_DENIED; pub const MQMSG_CLASS_NACK_HOP_COUNT_EXCEEDED = MQMSGCLASS.NACK_HOP_COUNT_EXCEEDED; pub const MQMSG_CLASS_NACK_BAD_SIGNATURE = MQMSGCLASS.NACK_BAD_SIGNATURE; pub const MQMSG_CLASS_NACK_BAD_ENCRYPTION = MQMSGCLASS.NACK_BAD_ENCRYPTION; pub const MQMSG_CLASS_NACK_COULD_NOT_ENCRYPT = MQMSGCLASS.NACK_COULD_NOT_ENCRYPT; pub const MQMSG_CLASS_NACK_NOT_TRANSACTIONAL_Q = MQMSGCLASS.NACK_NOT_TRANSACTIONAL_Q; pub const MQMSG_CLASS_NACK_NOT_TRANSACTIONAL_MSG = MQMSGCLASS.NACK_NOT_TRANSACTIONAL_MSG; pub const MQMSG_CLASS_NACK_UNSUPPORTED_CRYPTO_PROVIDER = MQMSGCLASS.NACK_UNSUPPORTED_CRYPTO_PROVIDER; pub const MQMSG_CLASS_NACK_SOURCE_COMPUTER_GUID_CHANGED = MQMSGCLASS.NACK_SOURCE_COMPUTER_GUID_CHANGED; pub const MQMSG_CLASS_NACK_Q_DELETED = MQMSGCLASS.NACK_Q_DELETED; pub const MQMSG_CLASS_NACK_Q_PURGED = MQMSGCLASS.NACK_Q_PURGED; pub const MQMSG_CLASS_NACK_RECEIVE_TIMEOUT = MQMSGCLASS.NACK_RECEIVE_TIMEOUT; pub const MQMSG_CLASS_NACK_RECEIVE_TIMEOUT_AT_SENDER = MQMSGCLASS.NACK_RECEIVE_TIMEOUT_AT_SENDER; pub const MQMSGDELIVERY = enum(i32) { EXPRESS = 0, RECOVERABLE = 1, }; pub const MQMSG_DELIVERY_EXPRESS = MQMSGDELIVERY.EXPRESS; pub const MQMSG_DELIVERY_RECOVERABLE = MQMSGDELIVERY.RECOVERABLE; pub const MQMSGACKNOWLEDGEMENT = enum(i32) { NONE = 0, POS_ARRIVAL = 1, POS_RECEIVE = 2, NEG_ARRIVAL = 4, NEG_RECEIVE = 8, // NACK_REACH_QUEUE = 4, this enum value conflicts with NEG_ARRIVAL FULL_REACH_QUEUE = 5, NACK_RECEIVE = 12, FULL_RECEIVE = 14, }; pub const MQMSG_ACKNOWLEDGMENT_NONE = MQMSGACKNOWLEDGEMENT.NONE; pub const MQMSG_ACKNOWLEDGMENT_POS_ARRIVAL = MQMSGACKNOWLEDGEMENT.POS_ARRIVAL; pub const MQMSG_ACKNOWLEDGMENT_POS_RECEIVE = MQMSGACKNOWLEDGEMENT.POS_RECEIVE; pub const MQMSG_ACKNOWLEDGMENT_NEG_ARRIVAL = MQMSGACKNOWLEDGEMENT.NEG_ARRIVAL; pub const MQMSG_ACKNOWLEDGMENT_NEG_RECEIVE = MQMSGACKNOWLEDGEMENT.NEG_RECEIVE; pub const MQMSG_ACKNOWLEDGMENT_NACK_REACH_QUEUE = MQMSGACKNOWLEDGEMENT.NEG_ARRIVAL; pub const MQMSG_ACKNOWLEDGMENT_FULL_REACH_QUEUE = MQMSGACKNOWLEDGEMENT.FULL_REACH_QUEUE; pub const MQMSG_ACKNOWLEDGMENT_NACK_RECEIVE = MQMSGACKNOWLEDGEMENT.NACK_RECEIVE; pub const MQMSG_ACKNOWLEDGMENT_FULL_RECEIVE = MQMSGACKNOWLEDGEMENT.FULL_RECEIVE; pub const MQMSGJOURNAL = enum(i32) { JOURNAL_NONE = 0, DEADLETTER = 1, JOURNAL = 2, }; pub const MQMSG_JOURNAL_NONE = MQMSGJOURNAL.JOURNAL_NONE; pub const MQMSG_DEADLETTER = MQMSGJOURNAL.DEADLETTER; pub const MQMSG_JOURNAL = MQMSGJOURNAL.JOURNAL; pub const MQMSGTRACE = enum(i32) { TRACE_NONE = 0, SEND_ROUTE_TO_REPORT_QUEUE = 1, }; pub const MQMSG_TRACE_NONE = MQMSGTRACE.TRACE_NONE; pub const MQMSG_SEND_ROUTE_TO_REPORT_QUEUE = MQMSGTRACE.SEND_ROUTE_TO_REPORT_QUEUE; pub const MQMSGSENDERIDTYPE = enum(i32) { NONE = 0, SID = 1, }; pub const MQMSG_SENDERID_TYPE_NONE = MQMSGSENDERIDTYPE.NONE; pub const MQMSG_SENDERID_TYPE_SID = MQMSGSENDERIDTYPE.SID; pub const MQMSGPRIVLEVEL = enum(i32) { NONE = 0, BODY_BASE = 1, BODY_ENHANCED = 3, }; pub const MQMSG_PRIV_LEVEL_NONE = MQMSGPRIVLEVEL.NONE; pub const MQMSG_PRIV_LEVEL_BODY_BASE = MQMSGPRIVLEVEL.BODY_BASE; pub const MQMSG_PRIV_LEVEL_BODY_ENHANCED = MQMSGPRIVLEVEL.BODY_ENHANCED; pub const MQMSGAUTHLEVEL = enum(i32) { NONE = 0, ALWAYS = 1, MSMQ10 = 2, // SIG10 = 2, this enum value conflicts with MSMQ10 MSMQ20 = 4, // SIG20 = 4, this enum value conflicts with MSMQ20 SIG30 = 8, }; pub const MQMSG_AUTH_LEVEL_NONE = MQMSGAUTHLEVEL.NONE; pub const MQMSG_AUTH_LEVEL_ALWAYS = MQMSGAUTHLEVEL.ALWAYS; pub const MQMSG_AUTH_LEVEL_MSMQ10 = MQMSGAUTHLEVEL.MSMQ10; pub const MQMSG_AUTH_LEVEL_SIG10 = MQMSGAUTHLEVEL.MSMQ10; pub const MQMSG_AUTH_LEVEL_MSMQ20 = MQMSGAUTHLEVEL.MSMQ20; pub const MQMSG_AUTH_LEVEL_SIG20 = MQMSGAUTHLEVEL.MSMQ20; pub const MQMSG_AUTH_LEVEL_SIG30 = MQMSGAUTHLEVEL.SIG30; pub const MQMSGIDSIZE = enum(i32) { MSGID_SIZE = 20, // CORRELATIONID_SIZE = 20, this enum value conflicts with MSGID_SIZE // XACTID_SIZE = 20, this enum value conflicts with MSGID_SIZE }; pub const MQMSG_MSGID_SIZE = MQMSGIDSIZE.MSGID_SIZE; pub const MQMSG_CORRELATIONID_SIZE = MQMSGIDSIZE.MSGID_SIZE; pub const MQMSG_XACTID_SIZE = MQMSGIDSIZE.MSGID_SIZE; pub const MQMSGMAX = enum(i32) { N = 249, }; pub const MQ_MAX_MSG_LABEL_LEN = MQMSGMAX.N; pub const MQMSGAUTHENTICATION = enum(i32) { ION_NOT_REQUESTED = 0, ION_REQUESTED = 1, // ED_SIG10 = 1, this enum value conflicts with ION_REQUESTED ION_REQUESTED_EX = 3, // ED_SIG20 = 3, this enum value conflicts with ION_REQUESTED_EX ED_SIG30 = 5, ED_SIGXML = 9, }; pub const MQMSG_AUTHENTICATION_NOT_REQUESTED = MQMSGAUTHENTICATION.ION_NOT_REQUESTED; pub const MQMSG_AUTHENTICATION_REQUESTED = MQMSGAUTHENTICATION.ION_REQUESTED; pub const MQMSG_AUTHENTICATED_SIG10 = MQMSGAUTHENTICATION.ION_REQUESTED; pub const MQMSG_AUTHENTICATION_REQUESTED_EX = MQMSGAUTHENTICATION.ION_REQUESTED_EX; pub const MQMSG_AUTHENTICATED_SIG20 = MQMSGAUTHENTICATION.ION_REQUESTED_EX; pub const MQMSG_AUTHENTICATED_SIG30 = MQMSGAUTHENTICATION.ED_SIG30; pub const MQMSG_AUTHENTICATED_SIGXML = MQMSGAUTHENTICATION.ED_SIGXML; pub const MQSHARE = enum(i32) { NONE = 0, RECEIVE_SHARE = 1, }; pub const MQ_DENY_NONE = MQSHARE.NONE; pub const MQ_DENY_RECEIVE_SHARE = MQSHARE.RECEIVE_SHARE; pub const MQACCESS = enum(i32) { RECEIVE_ACCESS = 1, SEND_ACCESS = 2, PEEK_ACCESS = 32, ADMIN_ACCESS = 128, }; pub const MQ_RECEIVE_ACCESS = MQACCESS.RECEIVE_ACCESS; pub const MQ_SEND_ACCESS = MQACCESS.SEND_ACCESS; pub const MQ_PEEK_ACCESS = MQACCESS.PEEK_ACCESS; pub const MQ_ADMIN_ACCESS = MQACCESS.ADMIN_ACCESS; pub const MQJOURNAL = enum(i32) { _NONE = 0, L = 1, }; pub const MQ_JOURNAL_NONE = MQJOURNAL._NONE; pub const MQ_JOURNAL = MQJOURNAL.L; pub const MQTRANSACTIONAL = enum(i32) { _NONE = 0, L = 1, }; pub const MQ_TRANSACTIONAL_NONE = MQTRANSACTIONAL._NONE; pub const MQ_TRANSACTIONAL = MQTRANSACTIONAL.L; pub const MQAUTHENTICATE = enum(i32) { _NONE = 0, E = 1, }; pub const MQ_AUTHENTICATE_NONE = MQAUTHENTICATE._NONE; pub const MQ_AUTHENTICATE = MQAUTHENTICATE.E; pub const MQPRIVLEVEL = enum(i32) { NONE = 0, OPTIONAL = 1, BODY = 2, }; pub const MQ_PRIV_LEVEL_NONE = MQPRIVLEVEL.NONE; pub const MQ_PRIV_LEVEL_OPTIONAL = MQPRIVLEVEL.OPTIONAL; pub const MQ_PRIV_LEVEL_BODY = MQPRIVLEVEL.BODY; pub const MQPRIORITY = enum(i32) { IN_PRIORITY = 0, AX_PRIORITY = 7, }; pub const MQ_MIN_PRIORITY = MQPRIORITY.IN_PRIORITY; pub const MQ_MAX_PRIORITY = MQPRIORITY.AX_PRIORITY; pub const MQMAX = enum(i32) { NAME_LEN = 124, // LABEL_LEN = 124, this enum value conflicts with NAME_LEN }; pub const MQ_MAX_Q_NAME_LEN = MQMAX.NAME_LEN; pub const MQ_MAX_Q_LABEL_LEN = MQMAX.NAME_LEN; pub const QUEUE_TYPE = enum(i32) { PUBLIC = 0, PRIVATE = 1, MACHINE = 2, CONNECTOR = 3, MULTICAST = 4, }; pub const MQ_TYPE_PUBLIC = QUEUE_TYPE.PUBLIC; pub const MQ_TYPE_PRIVATE = QUEUE_TYPE.PRIVATE; pub const MQ_TYPE_MACHINE = QUEUE_TYPE.MACHINE; pub const MQ_TYPE_CONNECTOR = QUEUE_TYPE.CONNECTOR; pub const MQ_TYPE_MULTICAST = QUEUE_TYPE.MULTICAST; pub const FOREIGN_STATUS = enum(i32) { FOREIGN = 0, NOT_FOREIGN = 1, UNKNOWN = 2, }; pub const MQ_STATUS_FOREIGN = FOREIGN_STATUS.FOREIGN; pub const MQ_STATUS_NOT_FOREIGN = FOREIGN_STATUS.NOT_FOREIGN; pub const MQ_STATUS_UNKNOWN = FOREIGN_STATUS.UNKNOWN; pub const XACT_STATUS = enum(i32) { XACT = 0, NOT_XACT = 1, UNKNOWN = 2, }; pub const MQ_XACT_STATUS_XACT = XACT_STATUS.XACT; pub const MQ_XACT_STATUS_NOT_XACT = XACT_STATUS.NOT_XACT; pub const MQ_XACT_STATUS_UNKNOWN = XACT_STATUS.UNKNOWN; pub const QUEUE_STATE = enum(i32) { LOCAL_CONNECTION = 0, DISCONNECTED = 1, WAITING = 2, NEEDVALIDATE = 3, ONHOLD = 4, NONACTIVE = 5, CONNECTED = 6, DISCONNECTING = 7, LOCKED = 8, }; pub const MQ_QUEUE_STATE_LOCAL_CONNECTION = QUEUE_STATE.LOCAL_CONNECTION; pub const MQ_QUEUE_STATE_DISCONNECTED = QUEUE_STATE.DISCONNECTED; pub const MQ_QUEUE_STATE_WAITING = QUEUE_STATE.WAITING; pub const MQ_QUEUE_STATE_NEEDVALIDATE = QUEUE_STATE.NEEDVALIDATE; pub const MQ_QUEUE_STATE_ONHOLD = QUEUE_STATE.ONHOLD; pub const MQ_QUEUE_STATE_NONACTIVE = QUEUE_STATE.NONACTIVE; pub const MQ_QUEUE_STATE_CONNECTED = QUEUE_STATE.CONNECTED; pub const MQ_QUEUE_STATE_DISCONNECTING = QUEUE_STATE.DISCONNECTING; pub const MQ_QUEUE_STATE_LOCKED = QUEUE_STATE.LOCKED; pub const MQDEFAULT = enum(i32) { M_PRIORITY = 3, M_DELIVERY = 0, // M_ACKNOWLEDGE = 0, this enum value conflicts with M_DELIVERY // M_JOURNAL = 0, this enum value conflicts with M_DELIVERY // M_APPSPECIFIC = 0, this enum value conflicts with M_DELIVERY // M_PRIV_LEVEL = 0, this enum value conflicts with M_DELIVERY // M_AUTH_LEVEL = 0, this enum value conflicts with M_DELIVERY M_SENDERID_TYPE = 1, // Q_JOURNAL = 0, this enum value conflicts with M_DELIVERY // Q_BASEPRIORITY = 0, this enum value conflicts with M_DELIVERY Q_QUOTA = -1, // Q_JOURNAL_QUOTA = -1, this enum value conflicts with Q_QUOTA // Q_TRANSACTION = 0, this enum value conflicts with M_DELIVERY // Q_AUTHENTICATE = 0, this enum value conflicts with M_DELIVERY // Q_PRIV_LEVEL = 1, this enum value conflicts with M_SENDERID_TYPE // M_LOOKUPID = 0, this enum value conflicts with M_DELIVERY }; pub const DEFAULT_M_PRIORITY = MQDEFAULT.M_PRIORITY; pub const DEFAULT_M_DELIVERY = MQDEFAULT.M_DELIVERY; pub const DEFAULT_M_ACKNOWLEDGE = MQDEFAULT.M_DELIVERY; pub const DEFAULT_M_JOURNAL = MQDEFAULT.M_DELIVERY; pub const DEFAULT_M_APPSPECIFIC = MQDEFAULT.M_DELIVERY; pub const DEFAULT_M_PRIV_LEVEL = MQDEFAULT.M_DELIVERY; pub const DEFAULT_M_AUTH_LEVEL = MQDEFAULT.M_DELIVERY; pub const DEFAULT_M_SENDERID_TYPE = MQDEFAULT.M_SENDERID_TYPE; pub const DEFAULT_Q_JOURNAL = MQDEFAULT.M_DELIVERY; pub const DEFAULT_Q_BASEPRIORITY = MQDEFAULT.M_DELIVERY; pub const DEFAULT_Q_QUOTA = MQDEFAULT.Q_QUOTA; pub const DEFAULT_Q_JOURNAL_QUOTA = MQDEFAULT.Q_QUOTA; pub const DEFAULT_Q_TRANSACTION = MQDEFAULT.M_DELIVERY; pub const DEFAULT_Q_AUTHENTICATE = MQDEFAULT.M_DELIVERY; pub const DEFAULT_Q_PRIV_LEVEL = MQDEFAULT.M_SENDERID_TYPE; pub const DEFAULT_M_LOOKUPID = MQDEFAULT.M_DELIVERY; pub const MQERROR = enum(i32) { ERROR = -1072824319, ERROR_PROPERTY = -1072824318, ERROR_QUEUE_NOT_FOUND = -1072824317, ERROR_QUEUE_NOT_ACTIVE = -1072824316, ERROR_QUEUE_EXISTS = -1072824315, ERROR_INVALID_PARAMETER = -1072824314, ERROR_INVALID_HANDLE = -1072824313, ERROR_OPERATION_CANCELLED = -1072824312, ERROR_SHARING_VIOLATION = -1072824311, ERROR_SERVICE_NOT_AVAILABLE = -1072824309, ERROR_MACHINE_NOT_FOUND = -1072824307, ERROR_ILLEGAL_SORT = -1072824304, ERROR_ILLEGAL_USER = -1072824303, ERROR_NO_DS = -1072824301, ERROR_ILLEGAL_QUEUE_PATHNAME = -1072824300, ERROR_ILLEGAL_PROPERTY_VALUE = -1072824296, ERROR_ILLEGAL_PROPERTY_VT = -1072824295, ERROR_BUFFER_OVERFLOW = -1072824294, ERROR_IO_TIMEOUT = -1072824293, ERROR_ILLEGAL_CURSOR_ACTION = -1072824292, ERROR_MESSAGE_ALREADY_RECEIVED = -1072824291, ERROR_ILLEGAL_FORMATNAME = -1072824290, ERROR_FORMATNAME_BUFFER_TOO_SMALL = -1072824289, ERROR_UNSUPPORTED_FORMATNAME_OPERATION = -1072824288, ERROR_ILLEGAL_SECURITY_DESCRIPTOR = -1072824287, ERROR_SENDERID_BUFFER_TOO_SMALL = -1072824286, ERROR_SECURITY_DESCRIPTOR_TOO_SMALL = -1072824285, ERROR_CANNOT_IMPERSONATE_CLIENT = -1072824284, ERROR_ACCESS_DENIED = -1072824283, ERROR_PRIVILEGE_NOT_HELD = -1072824282, ERROR_INSUFFICIENT_RESOURCES = -1072824281, ERROR_USER_BUFFER_TOO_SMALL = -1072824280, ERROR_MESSAGE_STORAGE_FAILED = -1072824278, ERROR_SENDER_CERT_BUFFER_TOO_SMALL = -1072824277, ERROR_INVALID_CERTIFICATE = -1072824276, ERROR_CORRUPTED_INTERNAL_CERTIFICATE = -1072824275, ERROR_INTERNAL_USER_CERT_EXIST = -1072824274, ERROR_NO_INTERNAL_USER_CERT = -1072824273, ERROR_CORRUPTED_SECURITY_DATA = -1072824272, ERROR_CORRUPTED_PERSONAL_CERT_STORE = -1072824271, ERROR_COMPUTER_DOES_NOT_SUPPORT_ENCRYPTION = -1072824269, ERROR_BAD_SECURITY_CONTEXT = -1072824267, ERROR_COULD_NOT_GET_USER_SID = -1072824266, ERROR_COULD_NOT_GET_ACCOUNT_INFO = -1072824265, ERROR_ILLEGAL_MQCOLUMNS = -1072824264, ERROR_ILLEGAL_PROPID = -1072824263, ERROR_ILLEGAL_RELATION = -1072824262, ERROR_ILLEGAL_PROPERTY_SIZE = -1072824261, ERROR_ILLEGAL_RESTRICTION_PROPID = -1072824260, ERROR_ILLEGAL_MQQUEUEPROPS = -1072824259, ERROR_PROPERTY_NOTALLOWED = -1072824258, ERROR_INSUFFICIENT_PROPERTIES = -1072824257, ERROR_MACHINE_EXISTS = -1072824256, ERROR_ILLEGAL_MQQMPROPS = -1072824255, ERROR_DS_IS_FULL = -1072824254, ERROR_DS_ERROR = -1072824253, ERROR_INVALID_OWNER = -1072824252, ERROR_UNSUPPORTED_ACCESS_MODE = -1072824251, ERROR_RESULT_BUFFER_TOO_SMALL = -1072824250, ERROR_DELETE_CN_IN_USE = -1072824248, ERROR_NO_RESPONSE_FROM_OBJECT_SERVER = -1072824247, ERROR_OBJECT_SERVER_NOT_AVAILABLE = -1072824246, ERROR_QUEUE_NOT_AVAILABLE = -1072824245, ERROR_DTC_CONNECT = -1072824244, ERROR_TRANSACTION_IMPORT = -1072824242, ERROR_TRANSACTION_USAGE = -1072824240, ERROR_TRANSACTION_SEQUENCE = -1072824239, ERROR_MISSING_CONNECTOR_TYPE = -1072824235, ERROR_STALE_HANDLE = -1072824234, ERROR_TRANSACTION_ENLIST = -1072824232, ERROR_QUEUE_DELETED = -1072824230, ERROR_ILLEGAL_CONTEXT = -1072824229, ERROR_ILLEGAL_SORT_PROPID = -1072824228, ERROR_LABEL_TOO_LONG = -1072824227, ERROR_LABEL_BUFFER_TOO_SMALL = -1072824226, ERROR_MQIS_SERVER_EMPTY = -1072824225, ERROR_MQIS_READONLY_MODE = -1072824224, ERROR_SYMM_KEY_BUFFER_TOO_SMALL = -1072824223, ERROR_SIGNATURE_BUFFER_TOO_SMALL = -1072824222, ERROR_PROV_NAME_BUFFER_TOO_SMALL = -1072824221, ERROR_ILLEGAL_OPERATION = -1072824220, ERROR_WRITE_NOT_ALLOWED = -1072824219, ERROR_WKS_CANT_SERVE_CLIENT = -1072824218, ERROR_DEPEND_WKS_LICENSE_OVERFLOW = -1072824217, CORRUPTED_QUEUE_WAS_DELETED = -1072824216, ERROR_REMOTE_MACHINE_NOT_AVAILABLE = -1072824215, ERROR_UNSUPPORTED_OPERATION = -1072824214, ERROR_ENCRYPTION_PROVIDER_NOT_SUPPORTED = -1072824213, ERROR_CANNOT_SET_CRYPTO_SEC_DESCR = -1072824212, ERROR_CERTIFICATE_NOT_PROVIDED = -1072824211, ERROR_Q_DNS_PROPERTY_NOT_SUPPORTED = -1072824210, ERROR_CANT_CREATE_CERT_STORE = -1072824209, // ERROR_CANNOT_CREATE_CERT_STORE = -1072824209, this enum value conflicts with ERROR_CANT_CREATE_CERT_STORE ERROR_CANT_OPEN_CERT_STORE = -1072824208, // ERROR_CANNOT_OPEN_CERT_STORE = -1072824208, this enum value conflicts with ERROR_CANT_OPEN_CERT_STORE ERROR_ILLEGAL_ENTERPRISE_OPERATION = -1072824207, ERROR_CANNOT_GRANT_ADD_GUID = -1072824206, ERROR_CANNOT_LOAD_MSMQOCM = -1072824205, ERROR_NO_ENTRY_POINT_MSMQOCM = -1072824204, ERROR_NO_MSMQ_SERVERS_ON_DC = -1072824203, ERROR_CANNOT_JOIN_DOMAIN = -1072824202, ERROR_CANNOT_CREATE_ON_GC = -1072824201, ERROR_GUID_NOT_MATCHING = -1072824200, ERROR_PUBLIC_KEY_NOT_FOUND = -1072824199, ERROR_PUBLIC_KEY_DOES_NOT_EXIST = -1072824198, ERROR_ILLEGAL_MQPRIVATEPROPS = -1072824197, ERROR_NO_GC_IN_DOMAIN = -1072824196, ERROR_NO_MSMQ_SERVERS_ON_GC = -1072824195, ERROR_CANNOT_GET_DN = -1072824194, ERROR_CANNOT_HASH_DATA_EX = -1072824193, ERROR_CANNOT_SIGN_DATA_EX = -1072824192, ERROR_CANNOT_CREATE_HASH_EX = -1072824191, ERROR_FAIL_VERIFY_SIGNATURE_EX = -1072824190, ERROR_CANNOT_DELETE_PSC_OBJECTS = -1072824189, ERROR_NO_MQUSER_OU = -1072824188, ERROR_CANNOT_LOAD_MQAD = -1072824187, ERROR_CANNOT_LOAD_MQDSSRV = -1072824186, ERROR_PROPERTIES_CONFLICT = -1072824185, ERROR_MESSAGE_NOT_FOUND = -1072824184, ERROR_CANT_RESOLVE_SITES = -1072824183, ERROR_NOT_SUPPORTED_BY_DEPENDENT_CLIENTS = -1072824182, ERROR_OPERATION_NOT_SUPPORTED_BY_REMOTE_COMPUTER = -1072824181, ERROR_NOT_A_CORRECT_OBJECT_CLASS = -1072824180, ERROR_MULTI_SORT_KEYS = -1072824179, ERROR_GC_NEEDED = -1072824178, ERROR_DS_BIND_ROOT_FOREST = -1072824177, ERROR_DS_LOCAL_USER = -1072824176, ERROR_Q_ADS_PROPERTY_NOT_SUPPORTED = -1072824175, ERROR_BAD_XML_FORMAT = -1072824174, ERROR_UNSUPPORTED_CLASS = -1072824173, ERROR_UNINITIALIZED_OBJECT = -1072824172, ERROR_CANNOT_CREATE_PSC_OBJECTS = -1072824171, ERROR_CANNOT_UPDATE_PSC_OBJECTS = -1072824170, }; pub const MQ_ERROR = MQERROR.ERROR; pub const MQ_ERROR_PROPERTY = MQERROR.ERROR_PROPERTY; pub const MQ_ERROR_QUEUE_NOT_FOUND = MQERROR.ERROR_QUEUE_NOT_FOUND; pub const MQ_ERROR_QUEUE_NOT_ACTIVE = MQERROR.ERROR_QUEUE_NOT_ACTIVE; pub const MQ_ERROR_QUEUE_EXISTS = MQERROR.ERROR_QUEUE_EXISTS; pub const MQ_ERROR_INVALID_PARAMETER = MQERROR.ERROR_INVALID_PARAMETER; pub const MQ_ERROR_INVALID_HANDLE = MQERROR.ERROR_INVALID_HANDLE; pub const MQ_ERROR_OPERATION_CANCELLED = MQERROR.ERROR_OPERATION_CANCELLED; pub const MQ_ERROR_SHARING_VIOLATION = MQERROR.ERROR_SHARING_VIOLATION; pub const MQ_ERROR_SERVICE_NOT_AVAILABLE = MQERROR.ERROR_SERVICE_NOT_AVAILABLE; pub const MQ_ERROR_MACHINE_NOT_FOUND = MQERROR.ERROR_MACHINE_NOT_FOUND; pub const MQ_ERROR_ILLEGAL_SORT = MQERROR.ERROR_ILLEGAL_SORT; pub const MQ_ERROR_ILLEGAL_USER = MQERROR.ERROR_ILLEGAL_USER; pub const MQ_ERROR_NO_DS = MQERROR.ERROR_NO_DS; pub const MQ_ERROR_ILLEGAL_QUEUE_PATHNAME = MQERROR.ERROR_ILLEGAL_QUEUE_PATHNAME; pub const MQ_ERROR_ILLEGAL_PROPERTY_VALUE = MQERROR.ERROR_ILLEGAL_PROPERTY_VALUE; pub const MQ_ERROR_ILLEGAL_PROPERTY_VT = MQERROR.ERROR_ILLEGAL_PROPERTY_VT; pub const MQ_ERROR_BUFFER_OVERFLOW = MQERROR.ERROR_BUFFER_OVERFLOW; pub const MQ_ERROR_IO_TIMEOUT = MQERROR.ERROR_IO_TIMEOUT; pub const MQ_ERROR_ILLEGAL_CURSOR_ACTION = MQERROR.ERROR_ILLEGAL_CURSOR_ACTION; pub const MQ_ERROR_MESSAGE_ALREADY_RECEIVED = MQERROR.ERROR_MESSAGE_ALREADY_RECEIVED; pub const MQ_ERROR_ILLEGAL_FORMATNAME = MQERROR.ERROR_ILLEGAL_FORMATNAME; pub const MQ_ERROR_FORMATNAME_BUFFER_TOO_SMALL = MQERROR.ERROR_FORMATNAME_BUFFER_TOO_SMALL; pub const MQ_ERROR_UNSUPPORTED_FORMATNAME_OPERATION = MQERROR.ERROR_UNSUPPORTED_FORMATNAME_OPERATION; pub const MQ_ERROR_ILLEGAL_SECURITY_DESCRIPTOR = MQERROR.ERROR_ILLEGAL_SECURITY_DESCRIPTOR; pub const MQ_ERROR_SENDERID_BUFFER_TOO_SMALL = MQERROR.ERROR_SENDERID_BUFFER_TOO_SMALL; pub const MQ_ERROR_SECURITY_DESCRIPTOR_TOO_SMALL = MQERROR.ERROR_SECURITY_DESCRIPTOR_TOO_SMALL; pub const MQ_ERROR_CANNOT_IMPERSONATE_CLIENT = MQERROR.ERROR_CANNOT_IMPERSONATE_CLIENT; pub const MQ_ERROR_ACCESS_DENIED = MQERROR.ERROR_ACCESS_DENIED; pub const MQ_ERROR_PRIVILEGE_NOT_HELD = MQERROR.ERROR_PRIVILEGE_NOT_HELD; pub const MQ_ERROR_INSUFFICIENT_RESOURCES = MQERROR.ERROR_INSUFFICIENT_RESOURCES; pub const MQ_ERROR_USER_BUFFER_TOO_SMALL = MQERROR.ERROR_USER_BUFFER_TOO_SMALL; pub const MQ_ERROR_MESSAGE_STORAGE_FAILED = MQERROR.ERROR_MESSAGE_STORAGE_FAILED; pub const MQ_ERROR_SENDER_CERT_BUFFER_TOO_SMALL = MQERROR.ERROR_SENDER_CERT_BUFFER_TOO_SMALL; pub const MQ_ERROR_INVALID_CERTIFICATE = MQERROR.ERROR_INVALID_CERTIFICATE; pub const MQ_ERROR_CORRUPTED_INTERNAL_CERTIFICATE = MQERROR.ERROR_CORRUPTED_INTERNAL_CERTIFICATE; pub const MQ_ERROR_INTERNAL_USER_CERT_EXIST = MQERROR.ERROR_INTERNAL_USER_CERT_EXIST; pub const MQ_ERROR_NO_INTERNAL_USER_CERT = MQERROR.ERROR_NO_INTERNAL_USER_CERT; pub const MQ_ERROR_CORRUPTED_SECURITY_DATA = MQERROR.ERROR_CORRUPTED_SECURITY_DATA; pub const MQ_ERROR_CORRUPTED_PERSONAL_CERT_STORE = MQERROR.ERROR_CORRUPTED_PERSONAL_CERT_STORE; pub const MQ_ERROR_COMPUTER_DOES_NOT_SUPPORT_ENCRYPTION = MQERROR.ERROR_COMPUTER_DOES_NOT_SUPPORT_ENCRYPTION; pub const MQ_ERROR_BAD_SECURITY_CONTEXT = MQERROR.ERROR_BAD_SECURITY_CONTEXT; pub const MQ_ERROR_COULD_NOT_GET_USER_SID = MQERROR.ERROR_COULD_NOT_GET_USER_SID; pub const MQ_ERROR_COULD_NOT_GET_ACCOUNT_INFO = MQERROR.ERROR_COULD_NOT_GET_ACCOUNT_INFO; pub const MQ_ERROR_ILLEGAL_MQCOLUMNS = MQERROR.ERROR_ILLEGAL_MQCOLUMNS; pub const MQ_ERROR_ILLEGAL_PROPID = MQERROR.ERROR_ILLEGAL_PROPID; pub const MQ_ERROR_ILLEGAL_RELATION = MQERROR.ERROR_ILLEGAL_RELATION; pub const MQ_ERROR_ILLEGAL_PROPERTY_SIZE = MQERROR.ERROR_ILLEGAL_PROPERTY_SIZE; pub const MQ_ERROR_ILLEGAL_RESTRICTION_PROPID = MQERROR.ERROR_ILLEGAL_RESTRICTION_PROPID; pub const MQ_ERROR_ILLEGAL_MQQUEUEPROPS = MQERROR.ERROR_ILLEGAL_MQQUEUEPROPS; pub const MQ_ERROR_PROPERTY_NOTALLOWED = MQERROR.ERROR_PROPERTY_NOTALLOWED; pub const MQ_ERROR_INSUFFICIENT_PROPERTIES = MQERROR.ERROR_INSUFFICIENT_PROPERTIES; pub const MQ_ERROR_MACHINE_EXISTS = MQERROR.ERROR_MACHINE_EXISTS; pub const MQ_ERROR_ILLEGAL_MQQMPROPS = MQERROR.ERROR_ILLEGAL_MQQMPROPS; pub const MQ_ERROR_DS_IS_FULL = MQERROR.ERROR_DS_IS_FULL; pub const MQ_ERROR_DS_ERROR = MQERROR.ERROR_DS_ERROR; pub const MQ_ERROR_INVALID_OWNER = MQERROR.ERROR_INVALID_OWNER; pub const MQ_ERROR_UNSUPPORTED_ACCESS_MODE = MQERROR.ERROR_UNSUPPORTED_ACCESS_MODE; pub const MQ_ERROR_RESULT_BUFFER_TOO_SMALL = MQERROR.ERROR_RESULT_BUFFER_TOO_SMALL; pub const MQ_ERROR_DELETE_CN_IN_USE = MQERROR.ERROR_DELETE_CN_IN_USE; pub const MQ_ERROR_NO_RESPONSE_FROM_OBJECT_SERVER = MQERROR.ERROR_NO_RESPONSE_FROM_OBJECT_SERVER; pub const MQ_ERROR_OBJECT_SERVER_NOT_AVAILABLE = MQERROR.ERROR_OBJECT_SERVER_NOT_AVAILABLE; pub const MQ_ERROR_QUEUE_NOT_AVAILABLE = MQERROR.ERROR_QUEUE_NOT_AVAILABLE; pub const MQ_ERROR_DTC_CONNECT = MQERROR.ERROR_DTC_CONNECT; pub const MQ_ERROR_TRANSACTION_IMPORT = MQERROR.ERROR_TRANSACTION_IMPORT; pub const MQ_ERROR_TRANSACTION_USAGE = MQERROR.ERROR_TRANSACTION_USAGE; pub const MQ_ERROR_TRANSACTION_SEQUENCE = MQERROR.ERROR_TRANSACTION_SEQUENCE; pub const MQ_ERROR_MISSING_CONNECTOR_TYPE = MQERROR.ERROR_MISSING_CONNECTOR_TYPE; pub const MQ_ERROR_STALE_HANDLE = MQERROR.ERROR_STALE_HANDLE; pub const MQ_ERROR_TRANSACTION_ENLIST = MQERROR.ERROR_TRANSACTION_ENLIST; pub const MQ_ERROR_QUEUE_DELETED = MQERROR.ERROR_QUEUE_DELETED; pub const MQ_ERROR_ILLEGAL_CONTEXT = MQERROR.ERROR_ILLEGAL_CONTEXT; pub const MQ_ERROR_ILLEGAL_SORT_PROPID = MQERROR.ERROR_ILLEGAL_SORT_PROPID; pub const MQ_ERROR_LABEL_TOO_LONG = MQERROR.ERROR_LABEL_TOO_LONG; pub const MQ_ERROR_LABEL_BUFFER_TOO_SMALL = MQERROR.ERROR_LABEL_BUFFER_TOO_SMALL; pub const MQ_ERROR_MQIS_SERVER_EMPTY = MQERROR.ERROR_MQIS_SERVER_EMPTY; pub const MQ_ERROR_MQIS_READONLY_MODE = MQERROR.ERROR_MQIS_READONLY_MODE; pub const MQ_ERROR_SYMM_KEY_BUFFER_TOO_SMALL = MQERROR.ERROR_SYMM_KEY_BUFFER_TOO_SMALL; pub const MQ_ERROR_SIGNATURE_BUFFER_TOO_SMALL = MQERROR.ERROR_SIGNATURE_BUFFER_TOO_SMALL; pub const MQ_ERROR_PROV_NAME_BUFFER_TOO_SMALL = MQERROR.ERROR_PROV_NAME_BUFFER_TOO_SMALL; pub const MQ_ERROR_ILLEGAL_OPERATION = MQERROR.ERROR_ILLEGAL_OPERATION; pub const MQ_ERROR_WRITE_NOT_ALLOWED = MQERROR.ERROR_WRITE_NOT_ALLOWED; pub const MQ_ERROR_WKS_CANT_SERVE_CLIENT = MQERROR.ERROR_WKS_CANT_SERVE_CLIENT; pub const MQ_ERROR_DEPEND_WKS_LICENSE_OVERFLOW = MQERROR.ERROR_DEPEND_WKS_LICENSE_OVERFLOW; pub const MQ_CORRUPTED_QUEUE_WAS_DELETED = MQERROR.CORRUPTED_QUEUE_WAS_DELETED; pub const MQ_ERROR_REMOTE_MACHINE_NOT_AVAILABLE = MQERROR.ERROR_REMOTE_MACHINE_NOT_AVAILABLE; pub const MQ_ERROR_UNSUPPORTED_OPERATION = MQERROR.ERROR_UNSUPPORTED_OPERATION; pub const MQ_ERROR_ENCRYPTION_PROVIDER_NOT_SUPPORTED = MQERROR.ERROR_ENCRYPTION_PROVIDER_NOT_SUPPORTED; pub const MQ_ERROR_CANNOT_SET_CRYPTO_SEC_DESCR = MQERROR.ERROR_CANNOT_SET_CRYPTO_SEC_DESCR; pub const MQ_ERROR_CERTIFICATE_NOT_PROVIDED = MQERROR.ERROR_CERTIFICATE_NOT_PROVIDED; pub const MQ_ERROR_Q_DNS_PROPERTY_NOT_SUPPORTED = MQERROR.ERROR_Q_DNS_PROPERTY_NOT_SUPPORTED; pub const MQ_ERROR_CANT_CREATE_CERT_STORE = MQERROR.ERROR_CANT_CREATE_CERT_STORE; pub const MQ_ERROR_CANNOT_CREATE_CERT_STORE = MQERROR.ERROR_CANT_CREATE_CERT_STORE; pub const MQ_ERROR_CANT_OPEN_CERT_STORE = MQERROR.ERROR_CANT_OPEN_CERT_STORE; pub const MQ_ERROR_CANNOT_OPEN_CERT_STORE = MQERROR.ERROR_CANT_OPEN_CERT_STORE; pub const MQ_ERROR_ILLEGAL_ENTERPRISE_OPERATION = MQERROR.ERROR_ILLEGAL_ENTERPRISE_OPERATION; pub const MQ_ERROR_CANNOT_GRANT_ADD_GUID = MQERROR.ERROR_CANNOT_GRANT_ADD_GUID; pub const MQ_ERROR_CANNOT_LOAD_MSMQOCM = MQERROR.ERROR_CANNOT_LOAD_MSMQOCM; pub const MQ_ERROR_NO_ENTRY_POINT_MSMQOCM = MQERROR.ERROR_NO_ENTRY_POINT_MSMQOCM; pub const MQ_ERROR_NO_MSMQ_SERVERS_ON_DC = MQERROR.ERROR_NO_MSMQ_SERVERS_ON_DC; pub const MQ_ERROR_CANNOT_JOIN_DOMAIN = MQERROR.ERROR_CANNOT_JOIN_DOMAIN; pub const MQ_ERROR_CANNOT_CREATE_ON_GC = MQERROR.ERROR_CANNOT_CREATE_ON_GC; pub const MQ_ERROR_GUID_NOT_MATCHING = MQERROR.ERROR_GUID_NOT_MATCHING; pub const MQ_ERROR_PUBLIC_KEY_NOT_FOUND = MQERROR.ERROR_PUBLIC_KEY_NOT_FOUND; pub const MQ_ERROR_PUBLIC_KEY_DOES_NOT_EXIST = MQERROR.ERROR_PUBLIC_KEY_DOES_NOT_EXIST; pub const MQ_ERROR_ILLEGAL_MQPRIVATEPROPS = MQERROR.ERROR_ILLEGAL_MQPRIVATEPROPS; pub const MQ_ERROR_NO_GC_IN_DOMAIN = MQERROR.ERROR_NO_GC_IN_DOMAIN; pub const MQ_ERROR_NO_MSMQ_SERVERS_ON_GC = MQERROR.ERROR_NO_MSMQ_SERVERS_ON_GC; pub const MQ_ERROR_CANNOT_GET_DN = MQERROR.ERROR_CANNOT_GET_DN; pub const MQ_ERROR_CANNOT_HASH_DATA_EX = MQERROR.ERROR_CANNOT_HASH_DATA_EX; pub const MQ_ERROR_CANNOT_SIGN_DATA_EX = MQERROR.ERROR_CANNOT_SIGN_DATA_EX; pub const MQ_ERROR_CANNOT_CREATE_HASH_EX = MQERROR.ERROR_CANNOT_CREATE_HASH_EX; pub const MQ_ERROR_FAIL_VERIFY_SIGNATURE_EX = MQERROR.ERROR_FAIL_VERIFY_SIGNATURE_EX; pub const MQ_ERROR_CANNOT_DELETE_PSC_OBJECTS = MQERROR.ERROR_CANNOT_DELETE_PSC_OBJECTS; pub const MQ_ERROR_NO_MQUSER_OU = MQERROR.ERROR_NO_MQUSER_OU; pub const MQ_ERROR_CANNOT_LOAD_MQAD = MQERROR.ERROR_CANNOT_LOAD_MQAD; pub const MQ_ERROR_CANNOT_LOAD_MQDSSRV = MQERROR.ERROR_CANNOT_LOAD_MQDSSRV; pub const MQ_ERROR_PROPERTIES_CONFLICT = MQERROR.ERROR_PROPERTIES_CONFLICT; pub const MQ_ERROR_MESSAGE_NOT_FOUND = MQERROR.ERROR_MESSAGE_NOT_FOUND; pub const MQ_ERROR_CANT_RESOLVE_SITES = MQERROR.ERROR_CANT_RESOLVE_SITES; pub const MQ_ERROR_NOT_SUPPORTED_BY_DEPENDENT_CLIENTS = MQERROR.ERROR_NOT_SUPPORTED_BY_DEPENDENT_CLIENTS; pub const MQ_ERROR_OPERATION_NOT_SUPPORTED_BY_REMOTE_COMPUTER = MQERROR.ERROR_OPERATION_NOT_SUPPORTED_BY_REMOTE_COMPUTER; pub const MQ_ERROR_NOT_A_CORRECT_OBJECT_CLASS = MQERROR.ERROR_NOT_A_CORRECT_OBJECT_CLASS; pub const MQ_ERROR_MULTI_SORT_KEYS = MQERROR.ERROR_MULTI_SORT_KEYS; pub const MQ_ERROR_GC_NEEDED = MQERROR.ERROR_GC_NEEDED; pub const MQ_ERROR_DS_BIND_ROOT_FOREST = MQERROR.ERROR_DS_BIND_ROOT_FOREST; pub const MQ_ERROR_DS_LOCAL_USER = MQERROR.ERROR_DS_LOCAL_USER; pub const MQ_ERROR_Q_ADS_PROPERTY_NOT_SUPPORTED = MQERROR.ERROR_Q_ADS_PROPERTY_NOT_SUPPORTED; pub const MQ_ERROR_BAD_XML_FORMAT = MQERROR.ERROR_BAD_XML_FORMAT; pub const MQ_ERROR_UNSUPPORTED_CLASS = MQERROR.ERROR_UNSUPPORTED_CLASS; pub const MQ_ERROR_UNINITIALIZED_OBJECT = MQERROR.ERROR_UNINITIALIZED_OBJECT; pub const MQ_ERROR_CANNOT_CREATE_PSC_OBJECTS = MQERROR.ERROR_CANNOT_CREATE_PSC_OBJECTS; pub const MQ_ERROR_CANNOT_UPDATE_PSC_OBJECTS = MQERROR.ERROR_CANNOT_UPDATE_PSC_OBJECTS; pub const MQWARNING = enum(i32) { PROPERTY = 1074659329, ILLEGAL_PROPERTY = 1074659330, PROPERTY_IGNORED = 1074659331, UNSUPPORTED_PROPERTY = 1074659332, DUPLICATE_PROPERTY = 1074659333, OPERATION_PENDING = 1074659334, FORMATNAME_BUFFER_TOO_SMALL = 1074659337, INTERNAL_USER_CERT_EXIST = 1074659338, OWNER_IGNORED = 1074659339, }; pub const MQ_INFORMATION_PROPERTY = MQWARNING.PROPERTY; pub const MQ_INFORMATION_ILLEGAL_PROPERTY = MQWARNING.ILLEGAL_PROPERTY; pub const MQ_INFORMATION_PROPERTY_IGNORED = MQWARNING.PROPERTY_IGNORED; pub const MQ_INFORMATION_UNSUPPORTED_PROPERTY = MQWARNING.UNSUPPORTED_PROPERTY; pub const MQ_INFORMATION_DUPLICATE_PROPERTY = MQWARNING.DUPLICATE_PROPERTY; pub const MQ_INFORMATION_OPERATION_PENDING = MQWARNING.OPERATION_PENDING; pub const MQ_INFORMATION_FORMATNAME_BUFFER_TOO_SMALL = MQWARNING.FORMATNAME_BUFFER_TOO_SMALL; pub const MQ_INFORMATION_INTERNAL_USER_CERT_EXIST = MQWARNING.INTERNAL_USER_CERT_EXIST; pub const MQ_INFORMATION_OWNER_IGNORED = MQWARNING.OWNER_IGNORED; const IID_IMSMQQuery_Value = Guid.initString("d7d6e072-dccd-11d0-aa4b-0060970debae"); pub const IID_IMSMQQuery = &IID_IMSMQQuery_Value; pub const IMSMQQuery = extern struct { pub const VTable = extern struct { base: IDispatch.VTable, LookupQueue: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IMSMQQuery, QueueGuid: ?*VARIANT, ServiceTypeGuid: ?*VARIANT, Label: ?*VARIANT, CreateTime: ?*VARIANT, ModifyTime: ?*VARIANT, RelServiceType: ?*VARIANT, RelLabel: ?*VARIANT, RelCreateTime: ?*VARIANT, RelModifyTime: ?*VARIANT, ppqinfos: ?*?*IMSMQQueueInfos, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IMSMQQuery, QueueGuid: ?*VARIANT, ServiceTypeGuid: ?*VARIANT, Label: ?*VARIANT, CreateTime: ?*VARIANT, ModifyTime: ?*VARIANT, RelServiceType: ?*VARIANT, RelLabel: ?*VARIANT, RelCreateTime: ?*VARIANT, RelModifyTime: ?*VARIANT, ppqinfos: ?*?*IMSMQQueueInfos, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IDispatch.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQQuery_LookupQueue(self: *const T, QueueGuid: ?*VARIANT, ServiceTypeGuid: ?*VARIANT, Label: ?*VARIANT, CreateTime: ?*VARIANT, ModifyTime: ?*VARIANT, RelServiceType: ?*VARIANT, RelLabel: ?*VARIANT, RelCreateTime: ?*VARIANT, RelModifyTime: ?*VARIANT, ppqinfos: ?*?*IMSMQQueueInfos) HRESULT { return @as(*const IMSMQQuery.VTable, @ptrCast(self.vtable)).LookupQueue(@as(*const IMSMQQuery, @ptrCast(self)), QueueGuid, ServiceTypeGuid, Label, CreateTime, ModifyTime, RelServiceType, RelLabel, RelCreateTime, RelModifyTime, ppqinfos); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IMSMQQueueInfo_Value = Guid.initString("d7d6e07b-dccd-11d0-aa4b-0060970debae"); pub const IID_IMSMQQueueInfo = &IID_IMSMQQueueInfo_Value; pub const IMSMQQueueInfo = extern struct { pub const VTable = extern struct { base: IDispatch.VTable, // TODO: this function has a "SpecialName", should Zig do anything with this? get_QueueGuid: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQQueueInfo, pbstrGuidQueue: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQQueueInfo, pbstrGuidQueue: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_ServiceTypeGuid: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQQueueInfo, pbstrGuidServiceType: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQQueueInfo, pbstrGuidServiceType: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_ServiceTypeGuid: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQQueueInfo, bstrGuidServiceType: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQQueueInfo, bstrGuidServiceType: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Label: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQQueueInfo, pbstrLabel: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQQueueInfo, pbstrLabel: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_Label: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQQueueInfo, bstrLabel: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQQueueInfo, bstrLabel: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_PathName: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQQueueInfo, pbstrPathName: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQQueueInfo, pbstrPathName: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_PathName: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQQueueInfo, bstrPathName: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQQueueInfo, bstrPathName: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_FormatName: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQQueueInfo, pbstrFormatName: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQQueueInfo, pbstrFormatName: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_FormatName: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQQueueInfo, bstrFormatName: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQQueueInfo, bstrFormatName: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_IsTransactional: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQQueueInfo, pisTransactional: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQQueueInfo, pisTransactional: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_PrivLevel: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQQueueInfo, plPrivLevel: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQQueueInfo, plPrivLevel: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_PrivLevel: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQQueueInfo, lPrivLevel: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQQueueInfo, lPrivLevel: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Journal: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQQueueInfo, plJournal: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQQueueInfo, plJournal: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_Journal: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQQueueInfo, lJournal: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQQueueInfo, lJournal: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Quota: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQQueueInfo, plQuota: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQQueueInfo, plQuota: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_Quota: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQQueueInfo, lQuota: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQQueueInfo, lQuota: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_BasePriority: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQQueueInfo, plBasePriority: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQQueueInfo, plBasePriority: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_BasePriority: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQQueueInfo, lBasePriority: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQQueueInfo, lBasePriority: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_CreateTime: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQQueueInfo, pvarCreateTime: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQQueueInfo, pvarCreateTime: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_ModifyTime: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQQueueInfo, pvarModifyTime: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQQueueInfo, pvarModifyTime: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Authenticate: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQQueueInfo, plAuthenticate: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQQueueInfo, plAuthenticate: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_Authenticate: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQQueueInfo, lAuthenticate: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQQueueInfo, lAuthenticate: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_JournalQuota: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQQueueInfo, plJournalQuota: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQQueueInfo, plJournalQuota: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_JournalQuota: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQQueueInfo, lJournalQuota: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQQueueInfo, lJournalQuota: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_IsWorldReadable: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQQueueInfo, pisWorldReadable: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQQueueInfo, pisWorldReadable: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Create: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IMSMQQueueInfo, IsTransactional: ?*VARIANT, IsWorldReadable: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IMSMQQueueInfo, IsTransactional: ?*VARIANT, IsWorldReadable: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Delete: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IMSMQQueueInfo, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IMSMQQueueInfo, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Open: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IMSMQQueueInfo, Access: i32, ShareMode: i32, ppq: ?*?*IMSMQQueue, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IMSMQQueueInfo, Access: i32, ShareMode: i32, ppq: ?*?*IMSMQQueue, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Refresh: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IMSMQQueueInfo, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IMSMQQueueInfo, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Update: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IMSMQQueueInfo, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IMSMQQueueInfo, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IDispatch.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQQueueInfo_get_QueueGuid(self: *const T, pbstrGuidQueue: ?*?BSTR) HRESULT { return @as(*const IMSMQQueueInfo.VTable, @ptrCast(self.vtable)).get_QueueGuid(@as(*const IMSMQQueueInfo, @ptrCast(self)), pbstrGuidQueue); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQQueueInfo_get_ServiceTypeGuid(self: *const T, pbstrGuidServiceType: ?*?BSTR) HRESULT { return @as(*const IMSMQQueueInfo.VTable, @ptrCast(self.vtable)).get_ServiceTypeGuid(@as(*const IMSMQQueueInfo, @ptrCast(self)), pbstrGuidServiceType); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQQueueInfo_put_ServiceTypeGuid(self: *const T, bstrGuidServiceType: ?BSTR) HRESULT { return @as(*const IMSMQQueueInfo.VTable, @ptrCast(self.vtable)).put_ServiceTypeGuid(@as(*const IMSMQQueueInfo, @ptrCast(self)), bstrGuidServiceType); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQQueueInfo_get_Label(self: *const T, pbstrLabel: ?*?BSTR) HRESULT { return @as(*const IMSMQQueueInfo.VTable, @ptrCast(self.vtable)).get_Label(@as(*const IMSMQQueueInfo, @ptrCast(self)), pbstrLabel); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQQueueInfo_put_Label(self: *const T, bstrLabel: ?BSTR) HRESULT { return @as(*const IMSMQQueueInfo.VTable, @ptrCast(self.vtable)).put_Label(@as(*const IMSMQQueueInfo, @ptrCast(self)), bstrLabel); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQQueueInfo_get_PathName(self: *const T, pbstrPathName: ?*?BSTR) HRESULT { return @as(*const IMSMQQueueInfo.VTable, @ptrCast(self.vtable)).get_PathName(@as(*const IMSMQQueueInfo, @ptrCast(self)), pbstrPathName); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQQueueInfo_put_PathName(self: *const T, bstrPathName: ?BSTR) HRESULT { return @as(*const IMSMQQueueInfo.VTable, @ptrCast(self.vtable)).put_PathName(@as(*const IMSMQQueueInfo, @ptrCast(self)), bstrPathName); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQQueueInfo_get_FormatName(self: *const T, pbstrFormatName: ?*?BSTR) HRESULT { return @as(*const IMSMQQueueInfo.VTable, @ptrCast(self.vtable)).get_FormatName(@as(*const IMSMQQueueInfo, @ptrCast(self)), pbstrFormatName); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQQueueInfo_put_FormatName(self: *const T, bstrFormatName: ?BSTR) HRESULT { return @as(*const IMSMQQueueInfo.VTable, @ptrCast(self.vtable)).put_FormatName(@as(*const IMSMQQueueInfo, @ptrCast(self)), bstrFormatName); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQQueueInfo_get_IsTransactional(self: *const T, pisTransactional: ?*i16) HRESULT { return @as(*const IMSMQQueueInfo.VTable, @ptrCast(self.vtable)).get_IsTransactional(@as(*const IMSMQQueueInfo, @ptrCast(self)), pisTransactional); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQQueueInfo_get_PrivLevel(self: *const T, plPrivLevel: ?*i32) HRESULT { return @as(*const IMSMQQueueInfo.VTable, @ptrCast(self.vtable)).get_PrivLevel(@as(*const IMSMQQueueInfo, @ptrCast(self)), plPrivLevel); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQQueueInfo_put_PrivLevel(self: *const T, lPrivLevel: i32) HRESULT { return @as(*const IMSMQQueueInfo.VTable, @ptrCast(self.vtable)).put_PrivLevel(@as(*const IMSMQQueueInfo, @ptrCast(self)), lPrivLevel); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQQueueInfo_get_Journal(self: *const T, plJournal: ?*i32) HRESULT { return @as(*const IMSMQQueueInfo.VTable, @ptrCast(self.vtable)).get_Journal(@as(*const IMSMQQueueInfo, @ptrCast(self)), plJournal); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQQueueInfo_put_Journal(self: *const T, lJournal: i32) HRESULT { return @as(*const IMSMQQueueInfo.VTable, @ptrCast(self.vtable)).put_Journal(@as(*const IMSMQQueueInfo, @ptrCast(self)), lJournal); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQQueueInfo_get_Quota(self: *const T, plQuota: ?*i32) HRESULT { return @as(*const IMSMQQueueInfo.VTable, @ptrCast(self.vtable)).get_Quota(@as(*const IMSMQQueueInfo, @ptrCast(self)), plQuota); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQQueueInfo_put_Quota(self: *const T, lQuota: i32) HRESULT { return @as(*const IMSMQQueueInfo.VTable, @ptrCast(self.vtable)).put_Quota(@as(*const IMSMQQueueInfo, @ptrCast(self)), lQuota); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQQueueInfo_get_BasePriority(self: *const T, plBasePriority: ?*i32) HRESULT { return @as(*const IMSMQQueueInfo.VTable, @ptrCast(self.vtable)).get_BasePriority(@as(*const IMSMQQueueInfo, @ptrCast(self)), plBasePriority); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQQueueInfo_put_BasePriority(self: *const T, lBasePriority: i32) HRESULT { return @as(*const IMSMQQueueInfo.VTable, @ptrCast(self.vtable)).put_BasePriority(@as(*const IMSMQQueueInfo, @ptrCast(self)), lBasePriority); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQQueueInfo_get_CreateTime(self: *const T, pvarCreateTime: ?*VARIANT) HRESULT { return @as(*const IMSMQQueueInfo.VTable, @ptrCast(self.vtable)).get_CreateTime(@as(*const IMSMQQueueInfo, @ptrCast(self)), pvarCreateTime); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQQueueInfo_get_ModifyTime(self: *const T, pvarModifyTime: ?*VARIANT) HRESULT { return @as(*const IMSMQQueueInfo.VTable, @ptrCast(self.vtable)).get_ModifyTime(@as(*const IMSMQQueueInfo, @ptrCast(self)), pvarModifyTime); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQQueueInfo_get_Authenticate(self: *const T, plAuthenticate: ?*i32) HRESULT { return @as(*const IMSMQQueueInfo.VTable, @ptrCast(self.vtable)).get_Authenticate(@as(*const IMSMQQueueInfo, @ptrCast(self)), plAuthenticate); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQQueueInfo_put_Authenticate(self: *const T, lAuthenticate: i32) HRESULT { return @as(*const IMSMQQueueInfo.VTable, @ptrCast(self.vtable)).put_Authenticate(@as(*const IMSMQQueueInfo, @ptrCast(self)), lAuthenticate); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQQueueInfo_get_JournalQuota(self: *const T, plJournalQuota: ?*i32) HRESULT { return @as(*const IMSMQQueueInfo.VTable, @ptrCast(self.vtable)).get_JournalQuota(@as(*const IMSMQQueueInfo, @ptrCast(self)), plJournalQuota); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQQueueInfo_put_JournalQuota(self: *const T, lJournalQuota: i32) HRESULT { return @as(*const IMSMQQueueInfo.VTable, @ptrCast(self.vtable)).put_JournalQuota(@as(*const IMSMQQueueInfo, @ptrCast(self)), lJournalQuota); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQQueueInfo_get_IsWorldReadable(self: *const T, pisWorldReadable: ?*i16) HRESULT { return @as(*const IMSMQQueueInfo.VTable, @ptrCast(self.vtable)).get_IsWorldReadable(@as(*const IMSMQQueueInfo, @ptrCast(self)), pisWorldReadable); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQQueueInfo_Create(self: *const T, IsTransactional: ?*VARIANT, IsWorldReadable: ?*VARIANT) HRESULT { return @as(*const IMSMQQueueInfo.VTable, @ptrCast(self.vtable)).Create(@as(*const IMSMQQueueInfo, @ptrCast(self)), IsTransactional, IsWorldReadable); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQQueueInfo_Delete(self: *const T) HRESULT { return @as(*const IMSMQQueueInfo.VTable, @ptrCast(self.vtable)).Delete(@as(*const IMSMQQueueInfo, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQQueueInfo_Open(self: *const T, Access: i32, ShareMode: i32, ppq: ?*?*IMSMQQueue) HRESULT { return @as(*const IMSMQQueueInfo.VTable, @ptrCast(self.vtable)).Open(@as(*const IMSMQQueueInfo, @ptrCast(self)), Access, ShareMode, ppq); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQQueueInfo_Refresh(self: *const T) HRESULT { return @as(*const IMSMQQueueInfo.VTable, @ptrCast(self.vtable)).Refresh(@as(*const IMSMQQueueInfo, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQQueueInfo_Update(self: *const T) HRESULT { return @as(*const IMSMQQueueInfo.VTable, @ptrCast(self.vtable)).Update(@as(*const IMSMQQueueInfo, @ptrCast(self))); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IMSMQQueueInfo2_Value = Guid.initString("fd174a80-89cf-11d2-b0f2-00e02c074f6b"); pub const IID_IMSMQQueueInfo2 = &IID_IMSMQQueueInfo2_Value; pub const IMSMQQueueInfo2 = extern struct { pub const VTable = extern struct { base: IDispatch.VTable, // TODO: this function has a "SpecialName", should Zig do anything with this? get_QueueGuid: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQQueueInfo2, pbstrGuidQueue: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQQueueInfo2, pbstrGuidQueue: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_ServiceTypeGuid: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQQueueInfo2, pbstrGuidServiceType: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQQueueInfo2, pbstrGuidServiceType: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_ServiceTypeGuid: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQQueueInfo2, bstrGuidServiceType: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQQueueInfo2, bstrGuidServiceType: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Label: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQQueueInfo2, pbstrLabel: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQQueueInfo2, pbstrLabel: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_Label: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQQueueInfo2, bstrLabel: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQQueueInfo2, bstrLabel: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_PathName: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQQueueInfo2, pbstrPathName: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQQueueInfo2, pbstrPathName: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_PathName: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQQueueInfo2, bstrPathName: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQQueueInfo2, bstrPathName: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_FormatName: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQQueueInfo2, pbstrFormatName: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQQueueInfo2, pbstrFormatName: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_FormatName: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQQueueInfo2, bstrFormatName: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQQueueInfo2, bstrFormatName: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_IsTransactional: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQQueueInfo2, pisTransactional: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQQueueInfo2, pisTransactional: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_PrivLevel: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQQueueInfo2, plPrivLevel: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQQueueInfo2, plPrivLevel: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_PrivLevel: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQQueueInfo2, lPrivLevel: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQQueueInfo2, lPrivLevel: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Journal: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQQueueInfo2, plJournal: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQQueueInfo2, plJournal: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_Journal: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQQueueInfo2, lJournal: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQQueueInfo2, lJournal: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Quota: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQQueueInfo2, plQuota: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQQueueInfo2, plQuota: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_Quota: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQQueueInfo2, lQuota: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQQueueInfo2, lQuota: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_BasePriority: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQQueueInfo2, plBasePriority: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQQueueInfo2, plBasePriority: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_BasePriority: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQQueueInfo2, lBasePriority: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQQueueInfo2, lBasePriority: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_CreateTime: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQQueueInfo2, pvarCreateTime: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQQueueInfo2, pvarCreateTime: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_ModifyTime: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQQueueInfo2, pvarModifyTime: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQQueueInfo2, pvarModifyTime: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Authenticate: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQQueueInfo2, plAuthenticate: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQQueueInfo2, plAuthenticate: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_Authenticate: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQQueueInfo2, lAuthenticate: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQQueueInfo2, lAuthenticate: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_JournalQuota: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQQueueInfo2, plJournalQuota: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQQueueInfo2, plJournalQuota: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_JournalQuota: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQQueueInfo2, lJournalQuota: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQQueueInfo2, lJournalQuota: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_IsWorldReadable: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQQueueInfo2, pisWorldReadable: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQQueueInfo2, pisWorldReadable: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Create: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IMSMQQueueInfo2, IsTransactional: ?*VARIANT, IsWorldReadable: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IMSMQQueueInfo2, IsTransactional: ?*VARIANT, IsWorldReadable: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Delete: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IMSMQQueueInfo2, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IMSMQQueueInfo2, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Open: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IMSMQQueueInfo2, Access: i32, ShareMode: i32, ppq: ?*?*IMSMQQueue2, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IMSMQQueueInfo2, Access: i32, ShareMode: i32, ppq: ?*?*IMSMQQueue2, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Refresh: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IMSMQQueueInfo2, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IMSMQQueueInfo2, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Update: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IMSMQQueueInfo2, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IMSMQQueueInfo2, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_PathNameDNS: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQQueueInfo2, pbstrPathNameDNS: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQQueueInfo2, pbstrPathNameDNS: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Properties: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQQueueInfo2, ppcolProperties: ?*?*IDispatch, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQQueueInfo2, ppcolProperties: ?*?*IDispatch, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Security: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQQueueInfo2, pvarSecurity: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQQueueInfo2, pvarSecurity: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_Security: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQQueueInfo2, varSecurity: VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQQueueInfo2, varSecurity: VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IDispatch.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQQueueInfo2_get_QueueGuid(self: *const T, pbstrGuidQueue: ?*?BSTR) HRESULT { return @as(*const IMSMQQueueInfo2.VTable, @ptrCast(self.vtable)).get_QueueGuid(@as(*const IMSMQQueueInfo2, @ptrCast(self)), pbstrGuidQueue); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQQueueInfo2_get_ServiceTypeGuid(self: *const T, pbstrGuidServiceType: ?*?BSTR) HRESULT { return @as(*const IMSMQQueueInfo2.VTable, @ptrCast(self.vtable)).get_ServiceTypeGuid(@as(*const IMSMQQueueInfo2, @ptrCast(self)), pbstrGuidServiceType); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQQueueInfo2_put_ServiceTypeGuid(self: *const T, bstrGuidServiceType: ?BSTR) HRESULT { return @as(*const IMSMQQueueInfo2.VTable, @ptrCast(self.vtable)).put_ServiceTypeGuid(@as(*const IMSMQQueueInfo2, @ptrCast(self)), bstrGuidServiceType); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQQueueInfo2_get_Label(self: *const T, pbstrLabel: ?*?BSTR) HRESULT { return @as(*const IMSMQQueueInfo2.VTable, @ptrCast(self.vtable)).get_Label(@as(*const IMSMQQueueInfo2, @ptrCast(self)), pbstrLabel); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQQueueInfo2_put_Label(self: *const T, bstrLabel: ?BSTR) HRESULT { return @as(*const IMSMQQueueInfo2.VTable, @ptrCast(self.vtable)).put_Label(@as(*const IMSMQQueueInfo2, @ptrCast(self)), bstrLabel); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQQueueInfo2_get_PathName(self: *const T, pbstrPathName: ?*?BSTR) HRESULT { return @as(*const IMSMQQueueInfo2.VTable, @ptrCast(self.vtable)).get_PathName(@as(*const IMSMQQueueInfo2, @ptrCast(self)), pbstrPathName); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQQueueInfo2_put_PathName(self: *const T, bstrPathName: ?BSTR) HRESULT { return @as(*const IMSMQQueueInfo2.VTable, @ptrCast(self.vtable)).put_PathName(@as(*const IMSMQQueueInfo2, @ptrCast(self)), bstrPathName); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQQueueInfo2_get_FormatName(self: *const T, pbstrFormatName: ?*?BSTR) HRESULT { return @as(*const IMSMQQueueInfo2.VTable, @ptrCast(self.vtable)).get_FormatName(@as(*const IMSMQQueueInfo2, @ptrCast(self)), pbstrFormatName); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQQueueInfo2_put_FormatName(self: *const T, bstrFormatName: ?BSTR) HRESULT { return @as(*const IMSMQQueueInfo2.VTable, @ptrCast(self.vtable)).put_FormatName(@as(*const IMSMQQueueInfo2, @ptrCast(self)), bstrFormatName); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQQueueInfo2_get_IsTransactional(self: *const T, pisTransactional: ?*i16) HRESULT { return @as(*const IMSMQQueueInfo2.VTable, @ptrCast(self.vtable)).get_IsTransactional(@as(*const IMSMQQueueInfo2, @ptrCast(self)), pisTransactional); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQQueueInfo2_get_PrivLevel(self: *const T, plPrivLevel: ?*i32) HRESULT { return @as(*const IMSMQQueueInfo2.VTable, @ptrCast(self.vtable)).get_PrivLevel(@as(*const IMSMQQueueInfo2, @ptrCast(self)), plPrivLevel); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQQueueInfo2_put_PrivLevel(self: *const T, lPrivLevel: i32) HRESULT { return @as(*const IMSMQQueueInfo2.VTable, @ptrCast(self.vtable)).put_PrivLevel(@as(*const IMSMQQueueInfo2, @ptrCast(self)), lPrivLevel); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQQueueInfo2_get_Journal(self: *const T, plJournal: ?*i32) HRESULT { return @as(*const IMSMQQueueInfo2.VTable, @ptrCast(self.vtable)).get_Journal(@as(*const IMSMQQueueInfo2, @ptrCast(self)), plJournal); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQQueueInfo2_put_Journal(self: *const T, lJournal: i32) HRESULT { return @as(*const IMSMQQueueInfo2.VTable, @ptrCast(self.vtable)).put_Journal(@as(*const IMSMQQueueInfo2, @ptrCast(self)), lJournal); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQQueueInfo2_get_Quota(self: *const T, plQuota: ?*i32) HRESULT { return @as(*const IMSMQQueueInfo2.VTable, @ptrCast(self.vtable)).get_Quota(@as(*const IMSMQQueueInfo2, @ptrCast(self)), plQuota); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQQueueInfo2_put_Quota(self: *const T, lQuota: i32) HRESULT { return @as(*const IMSMQQueueInfo2.VTable, @ptrCast(self.vtable)).put_Quota(@as(*const IMSMQQueueInfo2, @ptrCast(self)), lQuota); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQQueueInfo2_get_BasePriority(self: *const T, plBasePriority: ?*i32) HRESULT { return @as(*const IMSMQQueueInfo2.VTable, @ptrCast(self.vtable)).get_BasePriority(@as(*const IMSMQQueueInfo2, @ptrCast(self)), plBasePriority); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQQueueInfo2_put_BasePriority(self: *const T, lBasePriority: i32) HRESULT { return @as(*const IMSMQQueueInfo2.VTable, @ptrCast(self.vtable)).put_BasePriority(@as(*const IMSMQQueueInfo2, @ptrCast(self)), lBasePriority); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQQueueInfo2_get_CreateTime(self: *const T, pvarCreateTime: ?*VARIANT) HRESULT { return @as(*const IMSMQQueueInfo2.VTable, @ptrCast(self.vtable)).get_CreateTime(@as(*const IMSMQQueueInfo2, @ptrCast(self)), pvarCreateTime); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQQueueInfo2_get_ModifyTime(self: *const T, pvarModifyTime: ?*VARIANT) HRESULT { return @as(*const IMSMQQueueInfo2.VTable, @ptrCast(self.vtable)).get_ModifyTime(@as(*const IMSMQQueueInfo2, @ptrCast(self)), pvarModifyTime); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQQueueInfo2_get_Authenticate(self: *const T, plAuthenticate: ?*i32) HRESULT { return @as(*const IMSMQQueueInfo2.VTable, @ptrCast(self.vtable)).get_Authenticate(@as(*const IMSMQQueueInfo2, @ptrCast(self)), plAuthenticate); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQQueueInfo2_put_Authenticate(self: *const T, lAuthenticate: i32) HRESULT { return @as(*const IMSMQQueueInfo2.VTable, @ptrCast(self.vtable)).put_Authenticate(@as(*const IMSMQQueueInfo2, @ptrCast(self)), lAuthenticate); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQQueueInfo2_get_JournalQuota(self: *const T, plJournalQuota: ?*i32) HRESULT { return @as(*const IMSMQQueueInfo2.VTable, @ptrCast(self.vtable)).get_JournalQuota(@as(*const IMSMQQueueInfo2, @ptrCast(self)), plJournalQuota); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQQueueInfo2_put_JournalQuota(self: *const T, lJournalQuota: i32) HRESULT { return @as(*const IMSMQQueueInfo2.VTable, @ptrCast(self.vtable)).put_JournalQuota(@as(*const IMSMQQueueInfo2, @ptrCast(self)), lJournalQuota); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQQueueInfo2_get_IsWorldReadable(self: *const T, pisWorldReadable: ?*i16) HRESULT { return @as(*const IMSMQQueueInfo2.VTable, @ptrCast(self.vtable)).get_IsWorldReadable(@as(*const IMSMQQueueInfo2, @ptrCast(self)), pisWorldReadable); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQQueueInfo2_Create(self: *const T, IsTransactional: ?*VARIANT, IsWorldReadable: ?*VARIANT) HRESULT { return @as(*const IMSMQQueueInfo2.VTable, @ptrCast(self.vtable)).Create(@as(*const IMSMQQueueInfo2, @ptrCast(self)), IsTransactional, IsWorldReadable); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQQueueInfo2_Delete(self: *const T) HRESULT { return @as(*const IMSMQQueueInfo2.VTable, @ptrCast(self.vtable)).Delete(@as(*const IMSMQQueueInfo2, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQQueueInfo2_Open(self: *const T, Access: i32, ShareMode: i32, ppq: ?*?*IMSMQQueue2) HRESULT { return @as(*const IMSMQQueueInfo2.VTable, @ptrCast(self.vtable)).Open(@as(*const IMSMQQueueInfo2, @ptrCast(self)), Access, ShareMode, ppq); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQQueueInfo2_Refresh(self: *const T) HRESULT { return @as(*const IMSMQQueueInfo2.VTable, @ptrCast(self.vtable)).Refresh(@as(*const IMSMQQueueInfo2, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQQueueInfo2_Update(self: *const T) HRESULT { return @as(*const IMSMQQueueInfo2.VTable, @ptrCast(self.vtable)).Update(@as(*const IMSMQQueueInfo2, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQQueueInfo2_get_PathNameDNS(self: *const T, pbstrPathNameDNS: ?*?BSTR) HRESULT { return @as(*const IMSMQQueueInfo2.VTable, @ptrCast(self.vtable)).get_PathNameDNS(@as(*const IMSMQQueueInfo2, @ptrCast(self)), pbstrPathNameDNS); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQQueueInfo2_get_Properties(self: *const T, ppcolProperties: ?*?*IDispatch) HRESULT { return @as(*const IMSMQQueueInfo2.VTable, @ptrCast(self.vtable)).get_Properties(@as(*const IMSMQQueueInfo2, @ptrCast(self)), ppcolProperties); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQQueueInfo2_get_Security(self: *const T, pvarSecurity: ?*VARIANT) HRESULT { return @as(*const IMSMQQueueInfo2.VTable, @ptrCast(self.vtable)).get_Security(@as(*const IMSMQQueueInfo2, @ptrCast(self)), pvarSecurity); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQQueueInfo2_put_Security(self: *const T, varSecurity: VARIANT) HRESULT { return @as(*const IMSMQQueueInfo2.VTable, @ptrCast(self.vtable)).put_Security(@as(*const IMSMQQueueInfo2, @ptrCast(self)), varSecurity); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IMSMQQueueInfo3_Value = Guid.initString("eba96b1d-2168-11d3-898c-00e02c074f6b"); pub const IID_IMSMQQueueInfo3 = &IID_IMSMQQueueInfo3_Value; pub const IMSMQQueueInfo3 = extern struct { pub const VTable = extern struct { base: IDispatch.VTable, // TODO: this function has a "SpecialName", should Zig do anything with this? get_QueueGuid: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQQueueInfo3, pbstrGuidQueue: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQQueueInfo3, pbstrGuidQueue: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_ServiceTypeGuid: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQQueueInfo3, pbstrGuidServiceType: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQQueueInfo3, pbstrGuidServiceType: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_ServiceTypeGuid: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQQueueInfo3, bstrGuidServiceType: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQQueueInfo3, bstrGuidServiceType: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Label: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQQueueInfo3, pbstrLabel: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQQueueInfo3, pbstrLabel: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_Label: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQQueueInfo3, bstrLabel: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQQueueInfo3, bstrLabel: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_PathName: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQQueueInfo3, pbstrPathName: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQQueueInfo3, pbstrPathName: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_PathName: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQQueueInfo3, bstrPathName: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQQueueInfo3, bstrPathName: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_FormatName: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQQueueInfo3, pbstrFormatName: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQQueueInfo3, pbstrFormatName: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_FormatName: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQQueueInfo3, bstrFormatName: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQQueueInfo3, bstrFormatName: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_IsTransactional: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQQueueInfo3, pisTransactional: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQQueueInfo3, pisTransactional: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_PrivLevel: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQQueueInfo3, plPrivLevel: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQQueueInfo3, plPrivLevel: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_PrivLevel: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQQueueInfo3, lPrivLevel: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQQueueInfo3, lPrivLevel: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Journal: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQQueueInfo3, plJournal: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQQueueInfo3, plJournal: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_Journal: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQQueueInfo3, lJournal: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQQueueInfo3, lJournal: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Quota: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQQueueInfo3, plQuota: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQQueueInfo3, plQuota: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_Quota: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQQueueInfo3, lQuota: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQQueueInfo3, lQuota: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_BasePriority: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQQueueInfo3, plBasePriority: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQQueueInfo3, plBasePriority: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_BasePriority: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQQueueInfo3, lBasePriority: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQQueueInfo3, lBasePriority: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_CreateTime: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQQueueInfo3, pvarCreateTime: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQQueueInfo3, pvarCreateTime: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_ModifyTime: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQQueueInfo3, pvarModifyTime: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQQueueInfo3, pvarModifyTime: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Authenticate: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQQueueInfo3, plAuthenticate: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQQueueInfo3, plAuthenticate: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_Authenticate: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQQueueInfo3, lAuthenticate: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQQueueInfo3, lAuthenticate: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_JournalQuota: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQQueueInfo3, plJournalQuota: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQQueueInfo3, plJournalQuota: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_JournalQuota: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQQueueInfo3, lJournalQuota: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQQueueInfo3, lJournalQuota: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_IsWorldReadable: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQQueueInfo3, pisWorldReadable: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQQueueInfo3, pisWorldReadable: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Create: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IMSMQQueueInfo3, IsTransactional: ?*VARIANT, IsWorldReadable: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IMSMQQueueInfo3, IsTransactional: ?*VARIANT, IsWorldReadable: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Delete: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IMSMQQueueInfo3, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IMSMQQueueInfo3, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Open: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IMSMQQueueInfo3, Access: i32, ShareMode: i32, ppq: ?*?*IMSMQQueue3, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IMSMQQueueInfo3, Access: i32, ShareMode: i32, ppq: ?*?*IMSMQQueue3, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Refresh: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IMSMQQueueInfo3, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IMSMQQueueInfo3, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Update: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IMSMQQueueInfo3, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IMSMQQueueInfo3, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_PathNameDNS: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQQueueInfo3, pbstrPathNameDNS: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQQueueInfo3, pbstrPathNameDNS: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Properties: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQQueueInfo3, ppcolProperties: ?*?*IDispatch, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQQueueInfo3, ppcolProperties: ?*?*IDispatch, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Security: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQQueueInfo3, pvarSecurity: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQQueueInfo3, pvarSecurity: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_Security: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQQueueInfo3, varSecurity: VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQQueueInfo3, varSecurity: VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_IsTransactional2: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQQueueInfo3, pisTransactional: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQQueueInfo3, pisTransactional: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_IsWorldReadable2: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQQueueInfo3, pisWorldReadable: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQQueueInfo3, pisWorldReadable: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_MulticastAddress: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQQueueInfo3, pbstrMulticastAddress: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQQueueInfo3, pbstrMulticastAddress: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_MulticastAddress: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQQueueInfo3, bstrMulticastAddress: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQQueueInfo3, bstrMulticastAddress: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_ADsPath: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQQueueInfo3, pbstrADsPath: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQQueueInfo3, pbstrADsPath: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IDispatch.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQQueueInfo3_get_QueueGuid(self: *const T, pbstrGuidQueue: ?*?BSTR) HRESULT { return @as(*const IMSMQQueueInfo3.VTable, @ptrCast(self.vtable)).get_QueueGuid(@as(*const IMSMQQueueInfo3, @ptrCast(self)), pbstrGuidQueue); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQQueueInfo3_get_ServiceTypeGuid(self: *const T, pbstrGuidServiceType: ?*?BSTR) HRESULT { return @as(*const IMSMQQueueInfo3.VTable, @ptrCast(self.vtable)).get_ServiceTypeGuid(@as(*const IMSMQQueueInfo3, @ptrCast(self)), pbstrGuidServiceType); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQQueueInfo3_put_ServiceTypeGuid(self: *const T, bstrGuidServiceType: ?BSTR) HRESULT { return @as(*const IMSMQQueueInfo3.VTable, @ptrCast(self.vtable)).put_ServiceTypeGuid(@as(*const IMSMQQueueInfo3, @ptrCast(self)), bstrGuidServiceType); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQQueueInfo3_get_Label(self: *const T, pbstrLabel: ?*?BSTR) HRESULT { return @as(*const IMSMQQueueInfo3.VTable, @ptrCast(self.vtable)).get_Label(@as(*const IMSMQQueueInfo3, @ptrCast(self)), pbstrLabel); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQQueueInfo3_put_Label(self: *const T, bstrLabel: ?BSTR) HRESULT { return @as(*const IMSMQQueueInfo3.VTable, @ptrCast(self.vtable)).put_Label(@as(*const IMSMQQueueInfo3, @ptrCast(self)), bstrLabel); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQQueueInfo3_get_PathName(self: *const T, pbstrPathName: ?*?BSTR) HRESULT { return @as(*const IMSMQQueueInfo3.VTable, @ptrCast(self.vtable)).get_PathName(@as(*const IMSMQQueueInfo3, @ptrCast(self)), pbstrPathName); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQQueueInfo3_put_PathName(self: *const T, bstrPathName: ?BSTR) HRESULT { return @as(*const IMSMQQueueInfo3.VTable, @ptrCast(self.vtable)).put_PathName(@as(*const IMSMQQueueInfo3, @ptrCast(self)), bstrPathName); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQQueueInfo3_get_FormatName(self: *const T, pbstrFormatName: ?*?BSTR) HRESULT { return @as(*const IMSMQQueueInfo3.VTable, @ptrCast(self.vtable)).get_FormatName(@as(*const IMSMQQueueInfo3, @ptrCast(self)), pbstrFormatName); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQQueueInfo3_put_FormatName(self: *const T, bstrFormatName: ?BSTR) HRESULT { return @as(*const IMSMQQueueInfo3.VTable, @ptrCast(self.vtable)).put_FormatName(@as(*const IMSMQQueueInfo3, @ptrCast(self)), bstrFormatName); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQQueueInfo3_get_IsTransactional(self: *const T, pisTransactional: ?*i16) HRESULT { return @as(*const IMSMQQueueInfo3.VTable, @ptrCast(self.vtable)).get_IsTransactional(@as(*const IMSMQQueueInfo3, @ptrCast(self)), pisTransactional); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQQueueInfo3_get_PrivLevel(self: *const T, plPrivLevel: ?*i32) HRESULT { return @as(*const IMSMQQueueInfo3.VTable, @ptrCast(self.vtable)).get_PrivLevel(@as(*const IMSMQQueueInfo3, @ptrCast(self)), plPrivLevel); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQQueueInfo3_put_PrivLevel(self: *const T, lPrivLevel: i32) HRESULT { return @as(*const IMSMQQueueInfo3.VTable, @ptrCast(self.vtable)).put_PrivLevel(@as(*const IMSMQQueueInfo3, @ptrCast(self)), lPrivLevel); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQQueueInfo3_get_Journal(self: *const T, plJournal: ?*i32) HRESULT { return @as(*const IMSMQQueueInfo3.VTable, @ptrCast(self.vtable)).get_Journal(@as(*const IMSMQQueueInfo3, @ptrCast(self)), plJournal); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQQueueInfo3_put_Journal(self: *const T, lJournal: i32) HRESULT { return @as(*const IMSMQQueueInfo3.VTable, @ptrCast(self.vtable)).put_Journal(@as(*const IMSMQQueueInfo3, @ptrCast(self)), lJournal); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQQueueInfo3_get_Quota(self: *const T, plQuota: ?*i32) HRESULT { return @as(*const IMSMQQueueInfo3.VTable, @ptrCast(self.vtable)).get_Quota(@as(*const IMSMQQueueInfo3, @ptrCast(self)), plQuota); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQQueueInfo3_put_Quota(self: *const T, lQuota: i32) HRESULT { return @as(*const IMSMQQueueInfo3.VTable, @ptrCast(self.vtable)).put_Quota(@as(*const IMSMQQueueInfo3, @ptrCast(self)), lQuota); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQQueueInfo3_get_BasePriority(self: *const T, plBasePriority: ?*i32) HRESULT { return @as(*const IMSMQQueueInfo3.VTable, @ptrCast(self.vtable)).get_BasePriority(@as(*const IMSMQQueueInfo3, @ptrCast(self)), plBasePriority); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQQueueInfo3_put_BasePriority(self: *const T, lBasePriority: i32) HRESULT { return @as(*const IMSMQQueueInfo3.VTable, @ptrCast(self.vtable)).put_BasePriority(@as(*const IMSMQQueueInfo3, @ptrCast(self)), lBasePriority); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQQueueInfo3_get_CreateTime(self: *const T, pvarCreateTime: ?*VARIANT) HRESULT { return @as(*const IMSMQQueueInfo3.VTable, @ptrCast(self.vtable)).get_CreateTime(@as(*const IMSMQQueueInfo3, @ptrCast(self)), pvarCreateTime); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQQueueInfo3_get_ModifyTime(self: *const T, pvarModifyTime: ?*VARIANT) HRESULT { return @as(*const IMSMQQueueInfo3.VTable, @ptrCast(self.vtable)).get_ModifyTime(@as(*const IMSMQQueueInfo3, @ptrCast(self)), pvarModifyTime); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQQueueInfo3_get_Authenticate(self: *const T, plAuthenticate: ?*i32) HRESULT { return @as(*const IMSMQQueueInfo3.VTable, @ptrCast(self.vtable)).get_Authenticate(@as(*const IMSMQQueueInfo3, @ptrCast(self)), plAuthenticate); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQQueueInfo3_put_Authenticate(self: *const T, lAuthenticate: i32) HRESULT { return @as(*const IMSMQQueueInfo3.VTable, @ptrCast(self.vtable)).put_Authenticate(@as(*const IMSMQQueueInfo3, @ptrCast(self)), lAuthenticate); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQQueueInfo3_get_JournalQuota(self: *const T, plJournalQuota: ?*i32) HRESULT { return @as(*const IMSMQQueueInfo3.VTable, @ptrCast(self.vtable)).get_JournalQuota(@as(*const IMSMQQueueInfo3, @ptrCast(self)), plJournalQuota); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQQueueInfo3_put_JournalQuota(self: *const T, lJournalQuota: i32) HRESULT { return @as(*const IMSMQQueueInfo3.VTable, @ptrCast(self.vtable)).put_JournalQuota(@as(*const IMSMQQueueInfo3, @ptrCast(self)), lJournalQuota); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQQueueInfo3_get_IsWorldReadable(self: *const T, pisWorldReadable: ?*i16) HRESULT { return @as(*const IMSMQQueueInfo3.VTable, @ptrCast(self.vtable)).get_IsWorldReadable(@as(*const IMSMQQueueInfo3, @ptrCast(self)), pisWorldReadable); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQQueueInfo3_Create(self: *const T, IsTransactional: ?*VARIANT, IsWorldReadable: ?*VARIANT) HRESULT { return @as(*const IMSMQQueueInfo3.VTable, @ptrCast(self.vtable)).Create(@as(*const IMSMQQueueInfo3, @ptrCast(self)), IsTransactional, IsWorldReadable); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQQueueInfo3_Delete(self: *const T) HRESULT { return @as(*const IMSMQQueueInfo3.VTable, @ptrCast(self.vtable)).Delete(@as(*const IMSMQQueueInfo3, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQQueueInfo3_Open(self: *const T, Access: i32, ShareMode: i32, ppq: ?*?*IMSMQQueue3) HRESULT { return @as(*const IMSMQQueueInfo3.VTable, @ptrCast(self.vtable)).Open(@as(*const IMSMQQueueInfo3, @ptrCast(self)), Access, ShareMode, ppq); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQQueueInfo3_Refresh(self: *const T) HRESULT { return @as(*const IMSMQQueueInfo3.VTable, @ptrCast(self.vtable)).Refresh(@as(*const IMSMQQueueInfo3, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQQueueInfo3_Update(self: *const T) HRESULT { return @as(*const IMSMQQueueInfo3.VTable, @ptrCast(self.vtable)).Update(@as(*const IMSMQQueueInfo3, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQQueueInfo3_get_PathNameDNS(self: *const T, pbstrPathNameDNS: ?*?BSTR) HRESULT { return @as(*const IMSMQQueueInfo3.VTable, @ptrCast(self.vtable)).get_PathNameDNS(@as(*const IMSMQQueueInfo3, @ptrCast(self)), pbstrPathNameDNS); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQQueueInfo3_get_Properties(self: *const T, ppcolProperties: ?*?*IDispatch) HRESULT { return @as(*const IMSMQQueueInfo3.VTable, @ptrCast(self.vtable)).get_Properties(@as(*const IMSMQQueueInfo3, @ptrCast(self)), ppcolProperties); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQQueueInfo3_get_Security(self: *const T, pvarSecurity: ?*VARIANT) HRESULT { return @as(*const IMSMQQueueInfo3.VTable, @ptrCast(self.vtable)).get_Security(@as(*const IMSMQQueueInfo3, @ptrCast(self)), pvarSecurity); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQQueueInfo3_put_Security(self: *const T, varSecurity: VARIANT) HRESULT { return @as(*const IMSMQQueueInfo3.VTable, @ptrCast(self.vtable)).put_Security(@as(*const IMSMQQueueInfo3, @ptrCast(self)), varSecurity); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQQueueInfo3_get_IsTransactional2(self: *const T, pisTransactional: ?*i16) HRESULT { return @as(*const IMSMQQueueInfo3.VTable, @ptrCast(self.vtable)).get_IsTransactional2(@as(*const IMSMQQueueInfo3, @ptrCast(self)), pisTransactional); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQQueueInfo3_get_IsWorldReadable2(self: *const T, pisWorldReadable: ?*i16) HRESULT { return @as(*const IMSMQQueueInfo3.VTable, @ptrCast(self.vtable)).get_IsWorldReadable2(@as(*const IMSMQQueueInfo3, @ptrCast(self)), pisWorldReadable); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQQueueInfo3_get_MulticastAddress(self: *const T, pbstrMulticastAddress: ?*?BSTR) HRESULT { return @as(*const IMSMQQueueInfo3.VTable, @ptrCast(self.vtable)).get_MulticastAddress(@as(*const IMSMQQueueInfo3, @ptrCast(self)), pbstrMulticastAddress); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQQueueInfo3_put_MulticastAddress(self: *const T, bstrMulticastAddress: ?BSTR) HRESULT { return @as(*const IMSMQQueueInfo3.VTable, @ptrCast(self.vtable)).put_MulticastAddress(@as(*const IMSMQQueueInfo3, @ptrCast(self)), bstrMulticastAddress); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQQueueInfo3_get_ADsPath(self: *const T, pbstrADsPath: ?*?BSTR) HRESULT { return @as(*const IMSMQQueueInfo3.VTable, @ptrCast(self.vtable)).get_ADsPath(@as(*const IMSMQQueueInfo3, @ptrCast(self)), pbstrADsPath); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IMSMQQueueInfo4_Value = Guid.initString("eba96b21-2168-11d3-898c-00e02c074f6b"); pub const IID_IMSMQQueueInfo4 = &IID_IMSMQQueueInfo4_Value; pub const IMSMQQueueInfo4 = extern struct { pub const VTable = extern struct { base: IDispatch.VTable, // TODO: this function has a "SpecialName", should Zig do anything with this? get_QueueGuid: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQQueueInfo4, pbstrGuidQueue: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQQueueInfo4, pbstrGuidQueue: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_ServiceTypeGuid: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQQueueInfo4, pbstrGuidServiceType: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQQueueInfo4, pbstrGuidServiceType: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_ServiceTypeGuid: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQQueueInfo4, bstrGuidServiceType: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQQueueInfo4, bstrGuidServiceType: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Label: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQQueueInfo4, pbstrLabel: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQQueueInfo4, pbstrLabel: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_Label: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQQueueInfo4, bstrLabel: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQQueueInfo4, bstrLabel: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_PathName: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQQueueInfo4, pbstrPathName: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQQueueInfo4, pbstrPathName: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_PathName: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQQueueInfo4, bstrPathName: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQQueueInfo4, bstrPathName: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_FormatName: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQQueueInfo4, pbstrFormatName: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQQueueInfo4, pbstrFormatName: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_FormatName: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQQueueInfo4, bstrFormatName: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQQueueInfo4, bstrFormatName: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_IsTransactional: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQQueueInfo4, pisTransactional: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQQueueInfo4, pisTransactional: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_PrivLevel: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQQueueInfo4, plPrivLevel: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQQueueInfo4, plPrivLevel: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_PrivLevel: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQQueueInfo4, lPrivLevel: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQQueueInfo4, lPrivLevel: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Journal: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQQueueInfo4, plJournal: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQQueueInfo4, plJournal: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_Journal: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQQueueInfo4, lJournal: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQQueueInfo4, lJournal: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Quota: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQQueueInfo4, plQuota: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQQueueInfo4, plQuota: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_Quota: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQQueueInfo4, lQuota: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQQueueInfo4, lQuota: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_BasePriority: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQQueueInfo4, plBasePriority: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQQueueInfo4, plBasePriority: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_BasePriority: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQQueueInfo4, lBasePriority: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQQueueInfo4, lBasePriority: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_CreateTime: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQQueueInfo4, pvarCreateTime: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQQueueInfo4, pvarCreateTime: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_ModifyTime: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQQueueInfo4, pvarModifyTime: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQQueueInfo4, pvarModifyTime: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Authenticate: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQQueueInfo4, plAuthenticate: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQQueueInfo4, plAuthenticate: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_Authenticate: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQQueueInfo4, lAuthenticate: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQQueueInfo4, lAuthenticate: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_JournalQuota: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQQueueInfo4, plJournalQuota: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQQueueInfo4, plJournalQuota: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_JournalQuota: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQQueueInfo4, lJournalQuota: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQQueueInfo4, lJournalQuota: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_IsWorldReadable: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQQueueInfo4, pisWorldReadable: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQQueueInfo4, pisWorldReadable: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Create: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IMSMQQueueInfo4, IsTransactional: ?*VARIANT, IsWorldReadable: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IMSMQQueueInfo4, IsTransactional: ?*VARIANT, IsWorldReadable: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Delete: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IMSMQQueueInfo4, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IMSMQQueueInfo4, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Open: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IMSMQQueueInfo4, Access: i32, ShareMode: i32, ppq: ?*?*IMSMQQueue4, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IMSMQQueueInfo4, Access: i32, ShareMode: i32, ppq: ?*?*IMSMQQueue4, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Refresh: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IMSMQQueueInfo4, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IMSMQQueueInfo4, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Update: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IMSMQQueueInfo4, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IMSMQQueueInfo4, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_PathNameDNS: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQQueueInfo4, pbstrPathNameDNS: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQQueueInfo4, pbstrPathNameDNS: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Properties: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQQueueInfo4, ppcolProperties: ?*?*IDispatch, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQQueueInfo4, ppcolProperties: ?*?*IDispatch, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Security: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQQueueInfo4, pvarSecurity: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQQueueInfo4, pvarSecurity: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_Security: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQQueueInfo4, varSecurity: VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQQueueInfo4, varSecurity: VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_IsTransactional2: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQQueueInfo4, pisTransactional: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQQueueInfo4, pisTransactional: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_IsWorldReadable2: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQQueueInfo4, pisWorldReadable: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQQueueInfo4, pisWorldReadable: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_MulticastAddress: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQQueueInfo4, pbstrMulticastAddress: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQQueueInfo4, pbstrMulticastAddress: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_MulticastAddress: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQQueueInfo4, bstrMulticastAddress: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQQueueInfo4, bstrMulticastAddress: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_ADsPath: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQQueueInfo4, pbstrADsPath: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQQueueInfo4, pbstrADsPath: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IDispatch.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQQueueInfo4_get_QueueGuid(self: *const T, pbstrGuidQueue: ?*?BSTR) HRESULT { return @as(*const IMSMQQueueInfo4.VTable, @ptrCast(self.vtable)).get_QueueGuid(@as(*const IMSMQQueueInfo4, @ptrCast(self)), pbstrGuidQueue); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQQueueInfo4_get_ServiceTypeGuid(self: *const T, pbstrGuidServiceType: ?*?BSTR) HRESULT { return @as(*const IMSMQQueueInfo4.VTable, @ptrCast(self.vtable)).get_ServiceTypeGuid(@as(*const IMSMQQueueInfo4, @ptrCast(self)), pbstrGuidServiceType); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQQueueInfo4_put_ServiceTypeGuid(self: *const T, bstrGuidServiceType: ?BSTR) HRESULT { return @as(*const IMSMQQueueInfo4.VTable, @ptrCast(self.vtable)).put_ServiceTypeGuid(@as(*const IMSMQQueueInfo4, @ptrCast(self)), bstrGuidServiceType); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQQueueInfo4_get_Label(self: *const T, pbstrLabel: ?*?BSTR) HRESULT { return @as(*const IMSMQQueueInfo4.VTable, @ptrCast(self.vtable)).get_Label(@as(*const IMSMQQueueInfo4, @ptrCast(self)), pbstrLabel); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQQueueInfo4_put_Label(self: *const T, bstrLabel: ?BSTR) HRESULT { return @as(*const IMSMQQueueInfo4.VTable, @ptrCast(self.vtable)).put_Label(@as(*const IMSMQQueueInfo4, @ptrCast(self)), bstrLabel); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQQueueInfo4_get_PathName(self: *const T, pbstrPathName: ?*?BSTR) HRESULT { return @as(*const IMSMQQueueInfo4.VTable, @ptrCast(self.vtable)).get_PathName(@as(*const IMSMQQueueInfo4, @ptrCast(self)), pbstrPathName); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQQueueInfo4_put_PathName(self: *const T, bstrPathName: ?BSTR) HRESULT { return @as(*const IMSMQQueueInfo4.VTable, @ptrCast(self.vtable)).put_PathName(@as(*const IMSMQQueueInfo4, @ptrCast(self)), bstrPathName); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQQueueInfo4_get_FormatName(self: *const T, pbstrFormatName: ?*?BSTR) HRESULT { return @as(*const IMSMQQueueInfo4.VTable, @ptrCast(self.vtable)).get_FormatName(@as(*const IMSMQQueueInfo4, @ptrCast(self)), pbstrFormatName); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQQueueInfo4_put_FormatName(self: *const T, bstrFormatName: ?BSTR) HRESULT { return @as(*const IMSMQQueueInfo4.VTable, @ptrCast(self.vtable)).put_FormatName(@as(*const IMSMQQueueInfo4, @ptrCast(self)), bstrFormatName); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQQueueInfo4_get_IsTransactional(self: *const T, pisTransactional: ?*i16) HRESULT { return @as(*const IMSMQQueueInfo4.VTable, @ptrCast(self.vtable)).get_IsTransactional(@as(*const IMSMQQueueInfo4, @ptrCast(self)), pisTransactional); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQQueueInfo4_get_PrivLevel(self: *const T, plPrivLevel: ?*i32) HRESULT { return @as(*const IMSMQQueueInfo4.VTable, @ptrCast(self.vtable)).get_PrivLevel(@as(*const IMSMQQueueInfo4, @ptrCast(self)), plPrivLevel); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQQueueInfo4_put_PrivLevel(self: *const T, lPrivLevel: i32) HRESULT { return @as(*const IMSMQQueueInfo4.VTable, @ptrCast(self.vtable)).put_PrivLevel(@as(*const IMSMQQueueInfo4, @ptrCast(self)), lPrivLevel); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQQueueInfo4_get_Journal(self: *const T, plJournal: ?*i32) HRESULT { return @as(*const IMSMQQueueInfo4.VTable, @ptrCast(self.vtable)).get_Journal(@as(*const IMSMQQueueInfo4, @ptrCast(self)), plJournal); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQQueueInfo4_put_Journal(self: *const T, lJournal: i32) HRESULT { return @as(*const IMSMQQueueInfo4.VTable, @ptrCast(self.vtable)).put_Journal(@as(*const IMSMQQueueInfo4, @ptrCast(self)), lJournal); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQQueueInfo4_get_Quota(self: *const T, plQuota: ?*i32) HRESULT { return @as(*const IMSMQQueueInfo4.VTable, @ptrCast(self.vtable)).get_Quota(@as(*const IMSMQQueueInfo4, @ptrCast(self)), plQuota); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQQueueInfo4_put_Quota(self: *const T, lQuota: i32) HRESULT { return @as(*const IMSMQQueueInfo4.VTable, @ptrCast(self.vtable)).put_Quota(@as(*const IMSMQQueueInfo4, @ptrCast(self)), lQuota); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQQueueInfo4_get_BasePriority(self: *const T, plBasePriority: ?*i32) HRESULT { return @as(*const IMSMQQueueInfo4.VTable, @ptrCast(self.vtable)).get_BasePriority(@as(*const IMSMQQueueInfo4, @ptrCast(self)), plBasePriority); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQQueueInfo4_put_BasePriority(self: *const T, lBasePriority: i32) HRESULT { return @as(*const IMSMQQueueInfo4.VTable, @ptrCast(self.vtable)).put_BasePriority(@as(*const IMSMQQueueInfo4, @ptrCast(self)), lBasePriority); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQQueueInfo4_get_CreateTime(self: *const T, pvarCreateTime: ?*VARIANT) HRESULT { return @as(*const IMSMQQueueInfo4.VTable, @ptrCast(self.vtable)).get_CreateTime(@as(*const IMSMQQueueInfo4, @ptrCast(self)), pvarCreateTime); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQQueueInfo4_get_ModifyTime(self: *const T, pvarModifyTime: ?*VARIANT) HRESULT { return @as(*const IMSMQQueueInfo4.VTable, @ptrCast(self.vtable)).get_ModifyTime(@as(*const IMSMQQueueInfo4, @ptrCast(self)), pvarModifyTime); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQQueueInfo4_get_Authenticate(self: *const T, plAuthenticate: ?*i32) HRESULT { return @as(*const IMSMQQueueInfo4.VTable, @ptrCast(self.vtable)).get_Authenticate(@as(*const IMSMQQueueInfo4, @ptrCast(self)), plAuthenticate); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQQueueInfo4_put_Authenticate(self: *const T, lAuthenticate: i32) HRESULT { return @as(*const IMSMQQueueInfo4.VTable, @ptrCast(self.vtable)).put_Authenticate(@as(*const IMSMQQueueInfo4, @ptrCast(self)), lAuthenticate); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQQueueInfo4_get_JournalQuota(self: *const T, plJournalQuota: ?*i32) HRESULT { return @as(*const IMSMQQueueInfo4.VTable, @ptrCast(self.vtable)).get_JournalQuota(@as(*const IMSMQQueueInfo4, @ptrCast(self)), plJournalQuota); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQQueueInfo4_put_JournalQuota(self: *const T, lJournalQuota: i32) HRESULT { return @as(*const IMSMQQueueInfo4.VTable, @ptrCast(self.vtable)).put_JournalQuota(@as(*const IMSMQQueueInfo4, @ptrCast(self)), lJournalQuota); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQQueueInfo4_get_IsWorldReadable(self: *const T, pisWorldReadable: ?*i16) HRESULT { return @as(*const IMSMQQueueInfo4.VTable, @ptrCast(self.vtable)).get_IsWorldReadable(@as(*const IMSMQQueueInfo4, @ptrCast(self)), pisWorldReadable); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQQueueInfo4_Create(self: *const T, IsTransactional: ?*VARIANT, IsWorldReadable: ?*VARIANT) HRESULT { return @as(*const IMSMQQueueInfo4.VTable, @ptrCast(self.vtable)).Create(@as(*const IMSMQQueueInfo4, @ptrCast(self)), IsTransactional, IsWorldReadable); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQQueueInfo4_Delete(self: *const T) HRESULT { return @as(*const IMSMQQueueInfo4.VTable, @ptrCast(self.vtable)).Delete(@as(*const IMSMQQueueInfo4, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQQueueInfo4_Open(self: *const T, Access: i32, ShareMode: i32, ppq: ?*?*IMSMQQueue4) HRESULT { return @as(*const IMSMQQueueInfo4.VTable, @ptrCast(self.vtable)).Open(@as(*const IMSMQQueueInfo4, @ptrCast(self)), Access, ShareMode, ppq); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQQueueInfo4_Refresh(self: *const T) HRESULT { return @as(*const IMSMQQueueInfo4.VTable, @ptrCast(self.vtable)).Refresh(@as(*const IMSMQQueueInfo4, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQQueueInfo4_Update(self: *const T) HRESULT { return @as(*const IMSMQQueueInfo4.VTable, @ptrCast(self.vtable)).Update(@as(*const IMSMQQueueInfo4, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQQueueInfo4_get_PathNameDNS(self: *const T, pbstrPathNameDNS: ?*?BSTR) HRESULT { return @as(*const IMSMQQueueInfo4.VTable, @ptrCast(self.vtable)).get_PathNameDNS(@as(*const IMSMQQueueInfo4, @ptrCast(self)), pbstrPathNameDNS); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQQueueInfo4_get_Properties(self: *const T, ppcolProperties: ?*?*IDispatch) HRESULT { return @as(*const IMSMQQueueInfo4.VTable, @ptrCast(self.vtable)).get_Properties(@as(*const IMSMQQueueInfo4, @ptrCast(self)), ppcolProperties); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQQueueInfo4_get_Security(self: *const T, pvarSecurity: ?*VARIANT) HRESULT { return @as(*const IMSMQQueueInfo4.VTable, @ptrCast(self.vtable)).get_Security(@as(*const IMSMQQueueInfo4, @ptrCast(self)), pvarSecurity); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQQueueInfo4_put_Security(self: *const T, varSecurity: VARIANT) HRESULT { return @as(*const IMSMQQueueInfo4.VTable, @ptrCast(self.vtable)).put_Security(@as(*const IMSMQQueueInfo4, @ptrCast(self)), varSecurity); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQQueueInfo4_get_IsTransactional2(self: *const T, pisTransactional: ?*i16) HRESULT { return @as(*const IMSMQQueueInfo4.VTable, @ptrCast(self.vtable)).get_IsTransactional2(@as(*const IMSMQQueueInfo4, @ptrCast(self)), pisTransactional); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQQueueInfo4_get_IsWorldReadable2(self: *const T, pisWorldReadable: ?*i16) HRESULT { return @as(*const IMSMQQueueInfo4.VTable, @ptrCast(self.vtable)).get_IsWorldReadable2(@as(*const IMSMQQueueInfo4, @ptrCast(self)), pisWorldReadable); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQQueueInfo4_get_MulticastAddress(self: *const T, pbstrMulticastAddress: ?*?BSTR) HRESULT { return @as(*const IMSMQQueueInfo4.VTable, @ptrCast(self.vtable)).get_MulticastAddress(@as(*const IMSMQQueueInfo4, @ptrCast(self)), pbstrMulticastAddress); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQQueueInfo4_put_MulticastAddress(self: *const T, bstrMulticastAddress: ?BSTR) HRESULT { return @as(*const IMSMQQueueInfo4.VTable, @ptrCast(self.vtable)).put_MulticastAddress(@as(*const IMSMQQueueInfo4, @ptrCast(self)), bstrMulticastAddress); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQQueueInfo4_get_ADsPath(self: *const T, pbstrADsPath: ?*?BSTR) HRESULT { return @as(*const IMSMQQueueInfo4.VTable, @ptrCast(self.vtable)).get_ADsPath(@as(*const IMSMQQueueInfo4, @ptrCast(self)), pbstrADsPath); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IMSMQQueue_Value = Guid.initString("d7d6e076-dccd-11d0-aa4b-0060970debae"); pub const IID_IMSMQQueue = &IID_IMSMQQueue_Value; pub const IMSMQQueue = extern struct { pub const VTable = extern struct { base: IDispatch.VTable, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Access: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQQueue, plAccess: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQQueue, plAccess: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_ShareMode: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQQueue, plShareMode: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQQueue, plShareMode: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_QueueInfo: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQQueue, ppqinfo: ?*?*IMSMQQueueInfo, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQQueue, ppqinfo: ?*?*IMSMQQueueInfo, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Handle: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQQueue, plHandle: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQQueue, plHandle: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_IsOpen: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQQueue, pisOpen: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQQueue, pisOpen: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Close: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IMSMQQueue, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IMSMQQueue, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Receive: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IMSMQQueue, Transaction: ?*VARIANT, WantDestinationQueue: ?*VARIANT, WantBody: ?*VARIANT, ReceiveTimeout: ?*VARIANT, ppmsg: ?*?*IMSMQMessage, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IMSMQQueue, Transaction: ?*VARIANT, WantDestinationQueue: ?*VARIANT, WantBody: ?*VARIANT, ReceiveTimeout: ?*VARIANT, ppmsg: ?*?*IMSMQMessage, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Peek: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IMSMQQueue, WantDestinationQueue: ?*VARIANT, WantBody: ?*VARIANT, ReceiveTimeout: ?*VARIANT, ppmsg: ?*?*IMSMQMessage, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IMSMQQueue, WantDestinationQueue: ?*VARIANT, WantBody: ?*VARIANT, ReceiveTimeout: ?*VARIANT, ppmsg: ?*?*IMSMQMessage, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, EnableNotification: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IMSMQQueue, Event: ?*IMSMQEvent, Cursor: ?*VARIANT, ReceiveTimeout: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IMSMQQueue, Event: ?*IMSMQEvent, Cursor: ?*VARIANT, ReceiveTimeout: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Reset: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IMSMQQueue, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IMSMQQueue, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, ReceiveCurrent: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IMSMQQueue, Transaction: ?*VARIANT, WantDestinationQueue: ?*VARIANT, WantBody: ?*VARIANT, ReceiveTimeout: ?*VARIANT, ppmsg: ?*?*IMSMQMessage, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IMSMQQueue, Transaction: ?*VARIANT, WantDestinationQueue: ?*VARIANT, WantBody: ?*VARIANT, ReceiveTimeout: ?*VARIANT, ppmsg: ?*?*IMSMQMessage, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, PeekNext: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IMSMQQueue, WantDestinationQueue: ?*VARIANT, WantBody: ?*VARIANT, ReceiveTimeout: ?*VARIANT, ppmsg: ?*?*IMSMQMessage, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IMSMQQueue, WantDestinationQueue: ?*VARIANT, WantBody: ?*VARIANT, ReceiveTimeout: ?*VARIANT, ppmsg: ?*?*IMSMQMessage, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, PeekCurrent: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IMSMQQueue, WantDestinationQueue: ?*VARIANT, WantBody: ?*VARIANT, ReceiveTimeout: ?*VARIANT, ppmsg: ?*?*IMSMQMessage, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IMSMQQueue, WantDestinationQueue: ?*VARIANT, WantBody: ?*VARIANT, ReceiveTimeout: ?*VARIANT, ppmsg: ?*?*IMSMQMessage, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IDispatch.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQQueue_get_Access(self: *const T, plAccess: ?*i32) HRESULT { return @as(*const IMSMQQueue.VTable, @ptrCast(self.vtable)).get_Access(@as(*const IMSMQQueue, @ptrCast(self)), plAccess); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQQueue_get_ShareMode(self: *const T, plShareMode: ?*i32) HRESULT { return @as(*const IMSMQQueue.VTable, @ptrCast(self.vtable)).get_ShareMode(@as(*const IMSMQQueue, @ptrCast(self)), plShareMode); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQQueue_get_QueueInfo(self: *const T, ppqinfo: ?*?*IMSMQQueueInfo) HRESULT { return @as(*const IMSMQQueue.VTable, @ptrCast(self.vtable)).get_QueueInfo(@as(*const IMSMQQueue, @ptrCast(self)), ppqinfo); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQQueue_get_Handle(self: *const T, plHandle: ?*i32) HRESULT { return @as(*const IMSMQQueue.VTable, @ptrCast(self.vtable)).get_Handle(@as(*const IMSMQQueue, @ptrCast(self)), plHandle); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQQueue_get_IsOpen(self: *const T, pisOpen: ?*i16) HRESULT { return @as(*const IMSMQQueue.VTable, @ptrCast(self.vtable)).get_IsOpen(@as(*const IMSMQQueue, @ptrCast(self)), pisOpen); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQQueue_Close(self: *const T) HRESULT { return @as(*const IMSMQQueue.VTable, @ptrCast(self.vtable)).Close(@as(*const IMSMQQueue, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQQueue_Receive(self: *const T, Transaction: ?*VARIANT, WantDestinationQueue: ?*VARIANT, WantBody: ?*VARIANT, ReceiveTimeout: ?*VARIANT, ppmsg: ?*?*IMSMQMessage) HRESULT { return @as(*const IMSMQQueue.VTable, @ptrCast(self.vtable)).Receive(@as(*const IMSMQQueue, @ptrCast(self)), Transaction, WantDestinationQueue, WantBody, ReceiveTimeout, ppmsg); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQQueue_Peek(self: *const T, WantDestinationQueue: ?*VARIANT, WantBody: ?*VARIANT, ReceiveTimeout: ?*VARIANT, ppmsg: ?*?*IMSMQMessage) HRESULT { return @as(*const IMSMQQueue.VTable, @ptrCast(self.vtable)).Peek(@as(*const IMSMQQueue, @ptrCast(self)), WantDestinationQueue, WantBody, ReceiveTimeout, ppmsg); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQQueue_EnableNotification(self: *const T, Event: ?*IMSMQEvent, Cursor: ?*VARIANT, ReceiveTimeout: ?*VARIANT) HRESULT { return @as(*const IMSMQQueue.VTable, @ptrCast(self.vtable)).EnableNotification(@as(*const IMSMQQueue, @ptrCast(self)), Event, Cursor, ReceiveTimeout); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQQueue_Reset(self: *const T) HRESULT { return @as(*const IMSMQQueue.VTable, @ptrCast(self.vtable)).Reset(@as(*const IMSMQQueue, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQQueue_ReceiveCurrent(self: *const T, Transaction: ?*VARIANT, WantDestinationQueue: ?*VARIANT, WantBody: ?*VARIANT, ReceiveTimeout: ?*VARIANT, ppmsg: ?*?*IMSMQMessage) HRESULT { return @as(*const IMSMQQueue.VTable, @ptrCast(self.vtable)).ReceiveCurrent(@as(*const IMSMQQueue, @ptrCast(self)), Transaction, WantDestinationQueue, WantBody, ReceiveTimeout, ppmsg); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQQueue_PeekNext(self: *const T, WantDestinationQueue: ?*VARIANT, WantBody: ?*VARIANT, ReceiveTimeout: ?*VARIANT, ppmsg: ?*?*IMSMQMessage) HRESULT { return @as(*const IMSMQQueue.VTable, @ptrCast(self.vtable)).PeekNext(@as(*const IMSMQQueue, @ptrCast(self)), WantDestinationQueue, WantBody, ReceiveTimeout, ppmsg); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQQueue_PeekCurrent(self: *const T, WantDestinationQueue: ?*VARIANT, WantBody: ?*VARIANT, ReceiveTimeout: ?*VARIANT, ppmsg: ?*?*IMSMQMessage) HRESULT { return @as(*const IMSMQQueue.VTable, @ptrCast(self.vtable)).PeekCurrent(@as(*const IMSMQQueue, @ptrCast(self)), WantDestinationQueue, WantBody, ReceiveTimeout, ppmsg); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IMSMQQueue2_Value = Guid.initString("ef0574e0-06d8-11d3-b100-00e02c074f6b"); pub const IID_IMSMQQueue2 = &IID_IMSMQQueue2_Value; pub const IMSMQQueue2 = extern struct { pub const VTable = extern struct { base: IDispatch.VTable, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Access: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQQueue2, plAccess: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQQueue2, plAccess: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_ShareMode: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQQueue2, plShareMode: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQQueue2, plShareMode: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_QueueInfo: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQQueue2, ppqinfo: ?*?*IMSMQQueueInfo2, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQQueue2, ppqinfo: ?*?*IMSMQQueueInfo2, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Handle: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQQueue2, plHandle: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQQueue2, plHandle: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_IsOpen: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQQueue2, pisOpen: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQQueue2, pisOpen: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Close: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IMSMQQueue2, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IMSMQQueue2, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Receive_v1: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IMSMQQueue2, Transaction: ?*VARIANT, WantDestinationQueue: ?*VARIANT, WantBody: ?*VARIANT, ReceiveTimeout: ?*VARIANT, ppmsg: ?*?*IMSMQMessage, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IMSMQQueue2, Transaction: ?*VARIANT, WantDestinationQueue: ?*VARIANT, WantBody: ?*VARIANT, ReceiveTimeout: ?*VARIANT, ppmsg: ?*?*IMSMQMessage, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Peek_v1: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IMSMQQueue2, WantDestinationQueue: ?*VARIANT, WantBody: ?*VARIANT, ReceiveTimeout: ?*VARIANT, ppmsg: ?*?*IMSMQMessage, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IMSMQQueue2, WantDestinationQueue: ?*VARIANT, WantBody: ?*VARIANT, ReceiveTimeout: ?*VARIANT, ppmsg: ?*?*IMSMQMessage, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, EnableNotification: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IMSMQQueue2, Event: ?*IMSMQEvent2, Cursor: ?*VARIANT, ReceiveTimeout: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IMSMQQueue2, Event: ?*IMSMQEvent2, Cursor: ?*VARIANT, ReceiveTimeout: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Reset: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IMSMQQueue2, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IMSMQQueue2, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, ReceiveCurrent_v1: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IMSMQQueue2, Transaction: ?*VARIANT, WantDestinationQueue: ?*VARIANT, WantBody: ?*VARIANT, ReceiveTimeout: ?*VARIANT, ppmsg: ?*?*IMSMQMessage, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IMSMQQueue2, Transaction: ?*VARIANT, WantDestinationQueue: ?*VARIANT, WantBody: ?*VARIANT, ReceiveTimeout: ?*VARIANT, ppmsg: ?*?*IMSMQMessage, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, PeekNext_v1: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IMSMQQueue2, WantDestinationQueue: ?*VARIANT, WantBody: ?*VARIANT, ReceiveTimeout: ?*VARIANT, ppmsg: ?*?*IMSMQMessage, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IMSMQQueue2, WantDestinationQueue: ?*VARIANT, WantBody: ?*VARIANT, ReceiveTimeout: ?*VARIANT, ppmsg: ?*?*IMSMQMessage, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, PeekCurrent_v1: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IMSMQQueue2, WantDestinationQueue: ?*VARIANT, WantBody: ?*VARIANT, ReceiveTimeout: ?*VARIANT, ppmsg: ?*?*IMSMQMessage, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IMSMQQueue2, WantDestinationQueue: ?*VARIANT, WantBody: ?*VARIANT, ReceiveTimeout: ?*VARIANT, ppmsg: ?*?*IMSMQMessage, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Receive: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IMSMQQueue2, Transaction: ?*VARIANT, WantDestinationQueue: ?*VARIANT, WantBody: ?*VARIANT, ReceiveTimeout: ?*VARIANT, WantConnectorType: ?*VARIANT, ppmsg: ?*?*IMSMQMessage2, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IMSMQQueue2, Transaction: ?*VARIANT, WantDestinationQueue: ?*VARIANT, WantBody: ?*VARIANT, ReceiveTimeout: ?*VARIANT, WantConnectorType: ?*VARIANT, ppmsg: ?*?*IMSMQMessage2, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Peek: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IMSMQQueue2, WantDestinationQueue: ?*VARIANT, WantBody: ?*VARIANT, ReceiveTimeout: ?*VARIANT, WantConnectorType: ?*VARIANT, ppmsg: ?*?*IMSMQMessage2, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IMSMQQueue2, WantDestinationQueue: ?*VARIANT, WantBody: ?*VARIANT, ReceiveTimeout: ?*VARIANT, WantConnectorType: ?*VARIANT, ppmsg: ?*?*IMSMQMessage2, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, ReceiveCurrent: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IMSMQQueue2, Transaction: ?*VARIANT, WantDestinationQueue: ?*VARIANT, WantBody: ?*VARIANT, ReceiveTimeout: ?*VARIANT, WantConnectorType: ?*VARIANT, ppmsg: ?*?*IMSMQMessage2, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IMSMQQueue2, Transaction: ?*VARIANT, WantDestinationQueue: ?*VARIANT, WantBody: ?*VARIANT, ReceiveTimeout: ?*VARIANT, WantConnectorType: ?*VARIANT, ppmsg: ?*?*IMSMQMessage2, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, PeekNext: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IMSMQQueue2, WantDestinationQueue: ?*VARIANT, WantBody: ?*VARIANT, ReceiveTimeout: ?*VARIANT, WantConnectorType: ?*VARIANT, ppmsg: ?*?*IMSMQMessage2, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IMSMQQueue2, WantDestinationQueue: ?*VARIANT, WantBody: ?*VARIANT, ReceiveTimeout: ?*VARIANT, WantConnectorType: ?*VARIANT, ppmsg: ?*?*IMSMQMessage2, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, PeekCurrent: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IMSMQQueue2, WantDestinationQueue: ?*VARIANT, WantBody: ?*VARIANT, ReceiveTimeout: ?*VARIANT, WantConnectorType: ?*VARIANT, ppmsg: ?*?*IMSMQMessage2, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IMSMQQueue2, WantDestinationQueue: ?*VARIANT, WantBody: ?*VARIANT, ReceiveTimeout: ?*VARIANT, WantConnectorType: ?*VARIANT, ppmsg: ?*?*IMSMQMessage2, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Properties: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQQueue2, ppcolProperties: ?*?*IDispatch, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQQueue2, ppcolProperties: ?*?*IDispatch, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IDispatch.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQQueue2_get_Access(self: *const T, plAccess: ?*i32) HRESULT { return @as(*const IMSMQQueue2.VTable, @ptrCast(self.vtable)).get_Access(@as(*const IMSMQQueue2, @ptrCast(self)), plAccess); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQQueue2_get_ShareMode(self: *const T, plShareMode: ?*i32) HRESULT { return @as(*const IMSMQQueue2.VTable, @ptrCast(self.vtable)).get_ShareMode(@as(*const IMSMQQueue2, @ptrCast(self)), plShareMode); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQQueue2_get_QueueInfo(self: *const T, ppqinfo: ?*?*IMSMQQueueInfo2) HRESULT { return @as(*const IMSMQQueue2.VTable, @ptrCast(self.vtable)).get_QueueInfo(@as(*const IMSMQQueue2, @ptrCast(self)), ppqinfo); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQQueue2_get_Handle(self: *const T, plHandle: ?*i32) HRESULT { return @as(*const IMSMQQueue2.VTable, @ptrCast(self.vtable)).get_Handle(@as(*const IMSMQQueue2, @ptrCast(self)), plHandle); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQQueue2_get_IsOpen(self: *const T, pisOpen: ?*i16) HRESULT { return @as(*const IMSMQQueue2.VTable, @ptrCast(self.vtable)).get_IsOpen(@as(*const IMSMQQueue2, @ptrCast(self)), pisOpen); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQQueue2_Close(self: *const T) HRESULT { return @as(*const IMSMQQueue2.VTable, @ptrCast(self.vtable)).Close(@as(*const IMSMQQueue2, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQQueue2_Receive_v1(self: *const T, Transaction: ?*VARIANT, WantDestinationQueue: ?*VARIANT, WantBody: ?*VARIANT, ReceiveTimeout: ?*VARIANT, ppmsg: ?*?*IMSMQMessage) HRESULT { return @as(*const IMSMQQueue2.VTable, @ptrCast(self.vtable)).Receive_v1(@as(*const IMSMQQueue2, @ptrCast(self)), Transaction, WantDestinationQueue, WantBody, ReceiveTimeout, ppmsg); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQQueue2_Peek_v1(self: *const T, WantDestinationQueue: ?*VARIANT, WantBody: ?*VARIANT, ReceiveTimeout: ?*VARIANT, ppmsg: ?*?*IMSMQMessage) HRESULT { return @as(*const IMSMQQueue2.VTable, @ptrCast(self.vtable)).Peek_v1(@as(*const IMSMQQueue2, @ptrCast(self)), WantDestinationQueue, WantBody, ReceiveTimeout, ppmsg); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQQueue2_EnableNotification(self: *const T, Event: ?*IMSMQEvent2, Cursor: ?*VARIANT, ReceiveTimeout: ?*VARIANT) HRESULT { return @as(*const IMSMQQueue2.VTable, @ptrCast(self.vtable)).EnableNotification(@as(*const IMSMQQueue2, @ptrCast(self)), Event, Cursor, ReceiveTimeout); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQQueue2_Reset(self: *const T) HRESULT { return @as(*const IMSMQQueue2.VTable, @ptrCast(self.vtable)).Reset(@as(*const IMSMQQueue2, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQQueue2_ReceiveCurrent_v1(self: *const T, Transaction: ?*VARIANT, WantDestinationQueue: ?*VARIANT, WantBody: ?*VARIANT, ReceiveTimeout: ?*VARIANT, ppmsg: ?*?*IMSMQMessage) HRESULT { return @as(*const IMSMQQueue2.VTable, @ptrCast(self.vtable)).ReceiveCurrent_v1(@as(*const IMSMQQueue2, @ptrCast(self)), Transaction, WantDestinationQueue, WantBody, ReceiveTimeout, ppmsg); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQQueue2_PeekNext_v1(self: *const T, WantDestinationQueue: ?*VARIANT, WantBody: ?*VARIANT, ReceiveTimeout: ?*VARIANT, ppmsg: ?*?*IMSMQMessage) HRESULT { return @as(*const IMSMQQueue2.VTable, @ptrCast(self.vtable)).PeekNext_v1(@as(*const IMSMQQueue2, @ptrCast(self)), WantDestinationQueue, WantBody, ReceiveTimeout, ppmsg); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQQueue2_PeekCurrent_v1(self: *const T, WantDestinationQueue: ?*VARIANT, WantBody: ?*VARIANT, ReceiveTimeout: ?*VARIANT, ppmsg: ?*?*IMSMQMessage) HRESULT { return @as(*const IMSMQQueue2.VTable, @ptrCast(self.vtable)).PeekCurrent_v1(@as(*const IMSMQQueue2, @ptrCast(self)), WantDestinationQueue, WantBody, ReceiveTimeout, ppmsg); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQQueue2_Receive(self: *const T, Transaction: ?*VARIANT, WantDestinationQueue: ?*VARIANT, WantBody: ?*VARIANT, ReceiveTimeout: ?*VARIANT, WantConnectorType: ?*VARIANT, ppmsg: ?*?*IMSMQMessage2) HRESULT { return @as(*const IMSMQQueue2.VTable, @ptrCast(self.vtable)).Receive(@as(*const IMSMQQueue2, @ptrCast(self)), Transaction, WantDestinationQueue, WantBody, ReceiveTimeout, WantConnectorType, ppmsg); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQQueue2_Peek(self: *const T, WantDestinationQueue: ?*VARIANT, WantBody: ?*VARIANT, ReceiveTimeout: ?*VARIANT, WantConnectorType: ?*VARIANT, ppmsg: ?*?*IMSMQMessage2) HRESULT { return @as(*const IMSMQQueue2.VTable, @ptrCast(self.vtable)).Peek(@as(*const IMSMQQueue2, @ptrCast(self)), WantDestinationQueue, WantBody, ReceiveTimeout, WantConnectorType, ppmsg); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQQueue2_ReceiveCurrent(self: *const T, Transaction: ?*VARIANT, WantDestinationQueue: ?*VARIANT, WantBody: ?*VARIANT, ReceiveTimeout: ?*VARIANT, WantConnectorType: ?*VARIANT, ppmsg: ?*?*IMSMQMessage2) HRESULT { return @as(*const IMSMQQueue2.VTable, @ptrCast(self.vtable)).ReceiveCurrent(@as(*const IMSMQQueue2, @ptrCast(self)), Transaction, WantDestinationQueue, WantBody, ReceiveTimeout, WantConnectorType, ppmsg); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQQueue2_PeekNext(self: *const T, WantDestinationQueue: ?*VARIANT, WantBody: ?*VARIANT, ReceiveTimeout: ?*VARIANT, WantConnectorType: ?*VARIANT, ppmsg: ?*?*IMSMQMessage2) HRESULT { return @as(*const IMSMQQueue2.VTable, @ptrCast(self.vtable)).PeekNext(@as(*const IMSMQQueue2, @ptrCast(self)), WantDestinationQueue, WantBody, ReceiveTimeout, WantConnectorType, ppmsg); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQQueue2_PeekCurrent(self: *const T, WantDestinationQueue: ?*VARIANT, WantBody: ?*VARIANT, ReceiveTimeout: ?*VARIANT, WantConnectorType: ?*VARIANT, ppmsg: ?*?*IMSMQMessage2) HRESULT { return @as(*const IMSMQQueue2.VTable, @ptrCast(self.vtable)).PeekCurrent(@as(*const IMSMQQueue2, @ptrCast(self)), WantDestinationQueue, WantBody, ReceiveTimeout, WantConnectorType, ppmsg); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQQueue2_get_Properties(self: *const T, ppcolProperties: ?*?*IDispatch) HRESULT { return @as(*const IMSMQQueue2.VTable, @ptrCast(self.vtable)).get_Properties(@as(*const IMSMQQueue2, @ptrCast(self)), ppcolProperties); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IMSMQQueue3_Value = Guid.initString("eba96b1b-2168-11d3-898c-00e02c074f6b"); pub const IID_IMSMQQueue3 = &IID_IMSMQQueue3_Value; pub const IMSMQQueue3 = extern struct { pub const VTable = extern struct { base: IDispatch.VTable, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Access: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQQueue3, plAccess: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQQueue3, plAccess: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_ShareMode: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQQueue3, plShareMode: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQQueue3, plShareMode: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_QueueInfo: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQQueue3, ppqinfo: ?*?*IMSMQQueueInfo3, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQQueue3, ppqinfo: ?*?*IMSMQQueueInfo3, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Handle: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQQueue3, plHandle: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQQueue3, plHandle: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_IsOpen: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQQueue3, pisOpen: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQQueue3, pisOpen: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Close: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IMSMQQueue3, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IMSMQQueue3, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Receive_v1: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IMSMQQueue3, Transaction: ?*VARIANT, WantDestinationQueue: ?*VARIANT, WantBody: ?*VARIANT, ReceiveTimeout: ?*VARIANT, ppmsg: ?*?*IMSMQMessage, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IMSMQQueue3, Transaction: ?*VARIANT, WantDestinationQueue: ?*VARIANT, WantBody: ?*VARIANT, ReceiveTimeout: ?*VARIANT, ppmsg: ?*?*IMSMQMessage, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Peek_v1: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IMSMQQueue3, WantDestinationQueue: ?*VARIANT, WantBody: ?*VARIANT, ReceiveTimeout: ?*VARIANT, ppmsg: ?*?*IMSMQMessage, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IMSMQQueue3, WantDestinationQueue: ?*VARIANT, WantBody: ?*VARIANT, ReceiveTimeout: ?*VARIANT, ppmsg: ?*?*IMSMQMessage, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, EnableNotification: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IMSMQQueue3, Event: ?*IMSMQEvent3, Cursor: ?*VARIANT, ReceiveTimeout: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IMSMQQueue3, Event: ?*IMSMQEvent3, Cursor: ?*VARIANT, ReceiveTimeout: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Reset: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IMSMQQueue3, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IMSMQQueue3, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, ReceiveCurrent_v1: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IMSMQQueue3, Transaction: ?*VARIANT, WantDestinationQueue: ?*VARIANT, WantBody: ?*VARIANT, ReceiveTimeout: ?*VARIANT, ppmsg: ?*?*IMSMQMessage, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IMSMQQueue3, Transaction: ?*VARIANT, WantDestinationQueue: ?*VARIANT, WantBody: ?*VARIANT, ReceiveTimeout: ?*VARIANT, ppmsg: ?*?*IMSMQMessage, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, PeekNext_v1: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IMSMQQueue3, WantDestinationQueue: ?*VARIANT, WantBody: ?*VARIANT, ReceiveTimeout: ?*VARIANT, ppmsg: ?*?*IMSMQMessage, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IMSMQQueue3, WantDestinationQueue: ?*VARIANT, WantBody: ?*VARIANT, ReceiveTimeout: ?*VARIANT, ppmsg: ?*?*IMSMQMessage, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, PeekCurrent_v1: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IMSMQQueue3, WantDestinationQueue: ?*VARIANT, WantBody: ?*VARIANT, ReceiveTimeout: ?*VARIANT, ppmsg: ?*?*IMSMQMessage, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IMSMQQueue3, WantDestinationQueue: ?*VARIANT, WantBody: ?*VARIANT, ReceiveTimeout: ?*VARIANT, ppmsg: ?*?*IMSMQMessage, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Receive: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IMSMQQueue3, Transaction: ?*VARIANT, WantDestinationQueue: ?*VARIANT, WantBody: ?*VARIANT, ReceiveTimeout: ?*VARIANT, WantConnectorType: ?*VARIANT, ppmsg: ?*?*IMSMQMessage3, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IMSMQQueue3, Transaction: ?*VARIANT, WantDestinationQueue: ?*VARIANT, WantBody: ?*VARIANT, ReceiveTimeout: ?*VARIANT, WantConnectorType: ?*VARIANT, ppmsg: ?*?*IMSMQMessage3, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Peek: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IMSMQQueue3, WantDestinationQueue: ?*VARIANT, WantBody: ?*VARIANT, ReceiveTimeout: ?*VARIANT, WantConnectorType: ?*VARIANT, ppmsg: ?*?*IMSMQMessage3, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IMSMQQueue3, WantDestinationQueue: ?*VARIANT, WantBody: ?*VARIANT, ReceiveTimeout: ?*VARIANT, WantConnectorType: ?*VARIANT, ppmsg: ?*?*IMSMQMessage3, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, ReceiveCurrent: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IMSMQQueue3, Transaction: ?*VARIANT, WantDestinationQueue: ?*VARIANT, WantBody: ?*VARIANT, ReceiveTimeout: ?*VARIANT, WantConnectorType: ?*VARIANT, ppmsg: ?*?*IMSMQMessage3, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IMSMQQueue3, Transaction: ?*VARIANT, WantDestinationQueue: ?*VARIANT, WantBody: ?*VARIANT, ReceiveTimeout: ?*VARIANT, WantConnectorType: ?*VARIANT, ppmsg: ?*?*IMSMQMessage3, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, PeekNext: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IMSMQQueue3, WantDestinationQueue: ?*VARIANT, WantBody: ?*VARIANT, ReceiveTimeout: ?*VARIANT, WantConnectorType: ?*VARIANT, ppmsg: ?*?*IMSMQMessage3, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IMSMQQueue3, WantDestinationQueue: ?*VARIANT, WantBody: ?*VARIANT, ReceiveTimeout: ?*VARIANT, WantConnectorType: ?*VARIANT, ppmsg: ?*?*IMSMQMessage3, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, PeekCurrent: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IMSMQQueue3, WantDestinationQueue: ?*VARIANT, WantBody: ?*VARIANT, ReceiveTimeout: ?*VARIANT, WantConnectorType: ?*VARIANT, ppmsg: ?*?*IMSMQMessage3, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IMSMQQueue3, WantDestinationQueue: ?*VARIANT, WantBody: ?*VARIANT, ReceiveTimeout: ?*VARIANT, WantConnectorType: ?*VARIANT, ppmsg: ?*?*IMSMQMessage3, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Properties: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQQueue3, ppcolProperties: ?*?*IDispatch, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQQueue3, ppcolProperties: ?*?*IDispatch, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Handle2: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQQueue3, pvarHandle: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQQueue3, pvarHandle: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, ReceiveByLookupId: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IMSMQQueue3, LookupId: VARIANT, Transaction: ?*VARIANT, WantDestinationQueue: ?*VARIANT, WantBody: ?*VARIANT, WantConnectorType: ?*VARIANT, ppmsg: ?*?*IMSMQMessage3, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IMSMQQueue3, LookupId: VARIANT, Transaction: ?*VARIANT, WantDestinationQueue: ?*VARIANT, WantBody: ?*VARIANT, WantConnectorType: ?*VARIANT, ppmsg: ?*?*IMSMQMessage3, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, ReceiveNextByLookupId: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IMSMQQueue3, LookupId: VARIANT, Transaction: ?*VARIANT, WantDestinationQueue: ?*VARIANT, WantBody: ?*VARIANT, WantConnectorType: ?*VARIANT, ppmsg: ?*?*IMSMQMessage3, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IMSMQQueue3, LookupId: VARIANT, Transaction: ?*VARIANT, WantDestinationQueue: ?*VARIANT, WantBody: ?*VARIANT, WantConnectorType: ?*VARIANT, ppmsg: ?*?*IMSMQMessage3, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, ReceivePreviousByLookupId: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IMSMQQueue3, LookupId: VARIANT, Transaction: ?*VARIANT, WantDestinationQueue: ?*VARIANT, WantBody: ?*VARIANT, WantConnectorType: ?*VARIANT, ppmsg: ?*?*IMSMQMessage3, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IMSMQQueue3, LookupId: VARIANT, Transaction: ?*VARIANT, WantDestinationQueue: ?*VARIANT, WantBody: ?*VARIANT, WantConnectorType: ?*VARIANT, ppmsg: ?*?*IMSMQMessage3, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, ReceiveFirstByLookupId: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IMSMQQueue3, Transaction: ?*VARIANT, WantDestinationQueue: ?*VARIANT, WantBody: ?*VARIANT, WantConnectorType: ?*VARIANT, ppmsg: ?*?*IMSMQMessage3, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IMSMQQueue3, Transaction: ?*VARIANT, WantDestinationQueue: ?*VARIANT, WantBody: ?*VARIANT, WantConnectorType: ?*VARIANT, ppmsg: ?*?*IMSMQMessage3, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, ReceiveLastByLookupId: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IMSMQQueue3, Transaction: ?*VARIANT, WantDestinationQueue: ?*VARIANT, WantBody: ?*VARIANT, WantConnectorType: ?*VARIANT, ppmsg: ?*?*IMSMQMessage3, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IMSMQQueue3, Transaction: ?*VARIANT, WantDestinationQueue: ?*VARIANT, WantBody: ?*VARIANT, WantConnectorType: ?*VARIANT, ppmsg: ?*?*IMSMQMessage3, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, PeekByLookupId: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IMSMQQueue3, LookupId: VARIANT, WantDestinationQueue: ?*VARIANT, WantBody: ?*VARIANT, WantConnectorType: ?*VARIANT, ppmsg: ?*?*IMSMQMessage3, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IMSMQQueue3, LookupId: VARIANT, WantDestinationQueue: ?*VARIANT, WantBody: ?*VARIANT, WantConnectorType: ?*VARIANT, ppmsg: ?*?*IMSMQMessage3, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, PeekNextByLookupId: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IMSMQQueue3, LookupId: VARIANT, WantDestinationQueue: ?*VARIANT, WantBody: ?*VARIANT, WantConnectorType: ?*VARIANT, ppmsg: ?*?*IMSMQMessage3, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IMSMQQueue3, LookupId: VARIANT, WantDestinationQueue: ?*VARIANT, WantBody: ?*VARIANT, WantConnectorType: ?*VARIANT, ppmsg: ?*?*IMSMQMessage3, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, PeekPreviousByLookupId: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IMSMQQueue3, LookupId: VARIANT, WantDestinationQueue: ?*VARIANT, WantBody: ?*VARIANT, WantConnectorType: ?*VARIANT, ppmsg: ?*?*IMSMQMessage3, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IMSMQQueue3, LookupId: VARIANT, WantDestinationQueue: ?*VARIANT, WantBody: ?*VARIANT, WantConnectorType: ?*VARIANT, ppmsg: ?*?*IMSMQMessage3, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, PeekFirstByLookupId: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IMSMQQueue3, WantDestinationQueue: ?*VARIANT, WantBody: ?*VARIANT, WantConnectorType: ?*VARIANT, ppmsg: ?*?*IMSMQMessage3, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IMSMQQueue3, WantDestinationQueue: ?*VARIANT, WantBody: ?*VARIANT, WantConnectorType: ?*VARIANT, ppmsg: ?*?*IMSMQMessage3, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, PeekLastByLookupId: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IMSMQQueue3, WantDestinationQueue: ?*VARIANT, WantBody: ?*VARIANT, WantConnectorType: ?*VARIANT, ppmsg: ?*?*IMSMQMessage3, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IMSMQQueue3, WantDestinationQueue: ?*VARIANT, WantBody: ?*VARIANT, WantConnectorType: ?*VARIANT, ppmsg: ?*?*IMSMQMessage3, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Purge: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IMSMQQueue3, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IMSMQQueue3, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_IsOpen2: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQQueue3, pisOpen: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQQueue3, pisOpen: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IDispatch.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQQueue3_get_Access(self: *const T, plAccess: ?*i32) HRESULT { return @as(*const IMSMQQueue3.VTable, @ptrCast(self.vtable)).get_Access(@as(*const IMSMQQueue3, @ptrCast(self)), plAccess); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQQueue3_get_ShareMode(self: *const T, plShareMode: ?*i32) HRESULT { return @as(*const IMSMQQueue3.VTable, @ptrCast(self.vtable)).get_ShareMode(@as(*const IMSMQQueue3, @ptrCast(self)), plShareMode); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQQueue3_get_QueueInfo(self: *const T, ppqinfo: ?*?*IMSMQQueueInfo3) HRESULT { return @as(*const IMSMQQueue3.VTable, @ptrCast(self.vtable)).get_QueueInfo(@as(*const IMSMQQueue3, @ptrCast(self)), ppqinfo); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQQueue3_get_Handle(self: *const T, plHandle: ?*i32) HRESULT { return @as(*const IMSMQQueue3.VTable, @ptrCast(self.vtable)).get_Handle(@as(*const IMSMQQueue3, @ptrCast(self)), plHandle); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQQueue3_get_IsOpen(self: *const T, pisOpen: ?*i16) HRESULT { return @as(*const IMSMQQueue3.VTable, @ptrCast(self.vtable)).get_IsOpen(@as(*const IMSMQQueue3, @ptrCast(self)), pisOpen); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQQueue3_Close(self: *const T) HRESULT { return @as(*const IMSMQQueue3.VTable, @ptrCast(self.vtable)).Close(@as(*const IMSMQQueue3, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQQueue3_Receive_v1(self: *const T, Transaction: ?*VARIANT, WantDestinationQueue: ?*VARIANT, WantBody: ?*VARIANT, ReceiveTimeout: ?*VARIANT, ppmsg: ?*?*IMSMQMessage) HRESULT { return @as(*const IMSMQQueue3.VTable, @ptrCast(self.vtable)).Receive_v1(@as(*const IMSMQQueue3, @ptrCast(self)), Transaction, WantDestinationQueue, WantBody, ReceiveTimeout, ppmsg); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQQueue3_Peek_v1(self: *const T, WantDestinationQueue: ?*VARIANT, WantBody: ?*VARIANT, ReceiveTimeout: ?*VARIANT, ppmsg: ?*?*IMSMQMessage) HRESULT { return @as(*const IMSMQQueue3.VTable, @ptrCast(self.vtable)).Peek_v1(@as(*const IMSMQQueue3, @ptrCast(self)), WantDestinationQueue, WantBody, ReceiveTimeout, ppmsg); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQQueue3_EnableNotification(self: *const T, Event: ?*IMSMQEvent3, Cursor: ?*VARIANT, ReceiveTimeout: ?*VARIANT) HRESULT { return @as(*const IMSMQQueue3.VTable, @ptrCast(self.vtable)).EnableNotification(@as(*const IMSMQQueue3, @ptrCast(self)), Event, Cursor, ReceiveTimeout); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQQueue3_Reset(self: *const T) HRESULT { return @as(*const IMSMQQueue3.VTable, @ptrCast(self.vtable)).Reset(@as(*const IMSMQQueue3, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQQueue3_ReceiveCurrent_v1(self: *const T, Transaction: ?*VARIANT, WantDestinationQueue: ?*VARIANT, WantBody: ?*VARIANT, ReceiveTimeout: ?*VARIANT, ppmsg: ?*?*IMSMQMessage) HRESULT { return @as(*const IMSMQQueue3.VTable, @ptrCast(self.vtable)).ReceiveCurrent_v1(@as(*const IMSMQQueue3, @ptrCast(self)), Transaction, WantDestinationQueue, WantBody, ReceiveTimeout, ppmsg); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQQueue3_PeekNext_v1(self: *const T, WantDestinationQueue: ?*VARIANT, WantBody: ?*VARIANT, ReceiveTimeout: ?*VARIANT, ppmsg: ?*?*IMSMQMessage) HRESULT { return @as(*const IMSMQQueue3.VTable, @ptrCast(self.vtable)).PeekNext_v1(@as(*const IMSMQQueue3, @ptrCast(self)), WantDestinationQueue, WantBody, ReceiveTimeout, ppmsg); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQQueue3_PeekCurrent_v1(self: *const T, WantDestinationQueue: ?*VARIANT, WantBody: ?*VARIANT, ReceiveTimeout: ?*VARIANT, ppmsg: ?*?*IMSMQMessage) HRESULT { return @as(*const IMSMQQueue3.VTable, @ptrCast(self.vtable)).PeekCurrent_v1(@as(*const IMSMQQueue3, @ptrCast(self)), WantDestinationQueue, WantBody, ReceiveTimeout, ppmsg); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQQueue3_Receive(self: *const T, Transaction: ?*VARIANT, WantDestinationQueue: ?*VARIANT, WantBody: ?*VARIANT, ReceiveTimeout: ?*VARIANT, WantConnectorType: ?*VARIANT, ppmsg: ?*?*IMSMQMessage3) HRESULT { return @as(*const IMSMQQueue3.VTable, @ptrCast(self.vtable)).Receive(@as(*const IMSMQQueue3, @ptrCast(self)), Transaction, WantDestinationQueue, WantBody, ReceiveTimeout, WantConnectorType, ppmsg); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQQueue3_Peek(self: *const T, WantDestinationQueue: ?*VARIANT, WantBody: ?*VARIANT, ReceiveTimeout: ?*VARIANT, WantConnectorType: ?*VARIANT, ppmsg: ?*?*IMSMQMessage3) HRESULT { return @as(*const IMSMQQueue3.VTable, @ptrCast(self.vtable)).Peek(@as(*const IMSMQQueue3, @ptrCast(self)), WantDestinationQueue, WantBody, ReceiveTimeout, WantConnectorType, ppmsg); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQQueue3_ReceiveCurrent(self: *const T, Transaction: ?*VARIANT, WantDestinationQueue: ?*VARIANT, WantBody: ?*VARIANT, ReceiveTimeout: ?*VARIANT, WantConnectorType: ?*VARIANT, ppmsg: ?*?*IMSMQMessage3) HRESULT { return @as(*const IMSMQQueue3.VTable, @ptrCast(self.vtable)).ReceiveCurrent(@as(*const IMSMQQueue3, @ptrCast(self)), Transaction, WantDestinationQueue, WantBody, ReceiveTimeout, WantConnectorType, ppmsg); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQQueue3_PeekNext(self: *const T, WantDestinationQueue: ?*VARIANT, WantBody: ?*VARIANT, ReceiveTimeout: ?*VARIANT, WantConnectorType: ?*VARIANT, ppmsg: ?*?*IMSMQMessage3) HRESULT { return @as(*const IMSMQQueue3.VTable, @ptrCast(self.vtable)).PeekNext(@as(*const IMSMQQueue3, @ptrCast(self)), WantDestinationQueue, WantBody, ReceiveTimeout, WantConnectorType, ppmsg); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQQueue3_PeekCurrent(self: *const T, WantDestinationQueue: ?*VARIANT, WantBody: ?*VARIANT, ReceiveTimeout: ?*VARIANT, WantConnectorType: ?*VARIANT, ppmsg: ?*?*IMSMQMessage3) HRESULT { return @as(*const IMSMQQueue3.VTable, @ptrCast(self.vtable)).PeekCurrent(@as(*const IMSMQQueue3, @ptrCast(self)), WantDestinationQueue, WantBody, ReceiveTimeout, WantConnectorType, ppmsg); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQQueue3_get_Properties(self: *const T, ppcolProperties: ?*?*IDispatch) HRESULT { return @as(*const IMSMQQueue3.VTable, @ptrCast(self.vtable)).get_Properties(@as(*const IMSMQQueue3, @ptrCast(self)), ppcolProperties); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQQueue3_get_Handle2(self: *const T, pvarHandle: ?*VARIANT) HRESULT { return @as(*const IMSMQQueue3.VTable, @ptrCast(self.vtable)).get_Handle2(@as(*const IMSMQQueue3, @ptrCast(self)), pvarHandle); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQQueue3_ReceiveByLookupId(self: *const T, LookupId: VARIANT, Transaction: ?*VARIANT, WantDestinationQueue: ?*VARIANT, WantBody: ?*VARIANT, WantConnectorType: ?*VARIANT, ppmsg: ?*?*IMSMQMessage3) HRESULT { return @as(*const IMSMQQueue3.VTable, @ptrCast(self.vtable)).ReceiveByLookupId(@as(*const IMSMQQueue3, @ptrCast(self)), LookupId, Transaction, WantDestinationQueue, WantBody, WantConnectorType, ppmsg); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQQueue3_ReceiveNextByLookupId(self: *const T, LookupId: VARIANT, Transaction: ?*VARIANT, WantDestinationQueue: ?*VARIANT, WantBody: ?*VARIANT, WantConnectorType: ?*VARIANT, ppmsg: ?*?*IMSMQMessage3) HRESULT { return @as(*const IMSMQQueue3.VTable, @ptrCast(self.vtable)).ReceiveNextByLookupId(@as(*const IMSMQQueue3, @ptrCast(self)), LookupId, Transaction, WantDestinationQueue, WantBody, WantConnectorType, ppmsg); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQQueue3_ReceivePreviousByLookupId(self: *const T, LookupId: VARIANT, Transaction: ?*VARIANT, WantDestinationQueue: ?*VARIANT, WantBody: ?*VARIANT, WantConnectorType: ?*VARIANT, ppmsg: ?*?*IMSMQMessage3) HRESULT { return @as(*const IMSMQQueue3.VTable, @ptrCast(self.vtable)).ReceivePreviousByLookupId(@as(*const IMSMQQueue3, @ptrCast(self)), LookupId, Transaction, WantDestinationQueue, WantBody, WantConnectorType, ppmsg); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQQueue3_ReceiveFirstByLookupId(self: *const T, Transaction: ?*VARIANT, WantDestinationQueue: ?*VARIANT, WantBody: ?*VARIANT, WantConnectorType: ?*VARIANT, ppmsg: ?*?*IMSMQMessage3) HRESULT { return @as(*const IMSMQQueue3.VTable, @ptrCast(self.vtable)).ReceiveFirstByLookupId(@as(*const IMSMQQueue3, @ptrCast(self)), Transaction, WantDestinationQueue, WantBody, WantConnectorType, ppmsg); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQQueue3_ReceiveLastByLookupId(self: *const T, Transaction: ?*VARIANT, WantDestinationQueue: ?*VARIANT, WantBody: ?*VARIANT, WantConnectorType: ?*VARIANT, ppmsg: ?*?*IMSMQMessage3) HRESULT { return @as(*const IMSMQQueue3.VTable, @ptrCast(self.vtable)).ReceiveLastByLookupId(@as(*const IMSMQQueue3, @ptrCast(self)), Transaction, WantDestinationQueue, WantBody, WantConnectorType, ppmsg); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQQueue3_PeekByLookupId(self: *const T, LookupId: VARIANT, WantDestinationQueue: ?*VARIANT, WantBody: ?*VARIANT, WantConnectorType: ?*VARIANT, ppmsg: ?*?*IMSMQMessage3) HRESULT { return @as(*const IMSMQQueue3.VTable, @ptrCast(self.vtable)).PeekByLookupId(@as(*const IMSMQQueue3, @ptrCast(self)), LookupId, WantDestinationQueue, WantBody, WantConnectorType, ppmsg); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQQueue3_PeekNextByLookupId(self: *const T, LookupId: VARIANT, WantDestinationQueue: ?*VARIANT, WantBody: ?*VARIANT, WantConnectorType: ?*VARIANT, ppmsg: ?*?*IMSMQMessage3) HRESULT { return @as(*const IMSMQQueue3.VTable, @ptrCast(self.vtable)).PeekNextByLookupId(@as(*const IMSMQQueue3, @ptrCast(self)), LookupId, WantDestinationQueue, WantBody, WantConnectorType, ppmsg); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQQueue3_PeekPreviousByLookupId(self: *const T, LookupId: VARIANT, WantDestinationQueue: ?*VARIANT, WantBody: ?*VARIANT, WantConnectorType: ?*VARIANT, ppmsg: ?*?*IMSMQMessage3) HRESULT { return @as(*const IMSMQQueue3.VTable, @ptrCast(self.vtable)).PeekPreviousByLookupId(@as(*const IMSMQQueue3, @ptrCast(self)), LookupId, WantDestinationQueue, WantBody, WantConnectorType, ppmsg); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQQueue3_PeekFirstByLookupId(self: *const T, WantDestinationQueue: ?*VARIANT, WantBody: ?*VARIANT, WantConnectorType: ?*VARIANT, ppmsg: ?*?*IMSMQMessage3) HRESULT { return @as(*const IMSMQQueue3.VTable, @ptrCast(self.vtable)).PeekFirstByLookupId(@as(*const IMSMQQueue3, @ptrCast(self)), WantDestinationQueue, WantBody, WantConnectorType, ppmsg); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQQueue3_PeekLastByLookupId(self: *const T, WantDestinationQueue: ?*VARIANT, WantBody: ?*VARIANT, WantConnectorType: ?*VARIANT, ppmsg: ?*?*IMSMQMessage3) HRESULT { return @as(*const IMSMQQueue3.VTable, @ptrCast(self.vtable)).PeekLastByLookupId(@as(*const IMSMQQueue3, @ptrCast(self)), WantDestinationQueue, WantBody, WantConnectorType, ppmsg); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQQueue3_Purge(self: *const T) HRESULT { return @as(*const IMSMQQueue3.VTable, @ptrCast(self.vtable)).Purge(@as(*const IMSMQQueue3, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQQueue3_get_IsOpen2(self: *const T, pisOpen: ?*i16) HRESULT { return @as(*const IMSMQQueue3.VTable, @ptrCast(self.vtable)).get_IsOpen2(@as(*const IMSMQQueue3, @ptrCast(self)), pisOpen); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IMSMQQueue4_Value = Guid.initString("eba96b20-2168-11d3-898c-00e02c074f6b"); pub const IID_IMSMQQueue4 = &IID_IMSMQQueue4_Value; pub const IMSMQQueue4 = extern struct { pub const VTable = extern struct { base: IDispatch.VTable, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Access: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQQueue4, plAccess: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQQueue4, plAccess: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_ShareMode: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQQueue4, plShareMode: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQQueue4, plShareMode: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_QueueInfo: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQQueue4, ppqinfo: ?*?*IMSMQQueueInfo4, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQQueue4, ppqinfo: ?*?*IMSMQQueueInfo4, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Handle: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQQueue4, plHandle: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQQueue4, plHandle: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_IsOpen: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQQueue4, pisOpen: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQQueue4, pisOpen: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Close: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IMSMQQueue4, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IMSMQQueue4, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Receive_v1: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IMSMQQueue4, Transaction: ?*VARIANT, WantDestinationQueue: ?*VARIANT, WantBody: ?*VARIANT, ReceiveTimeout: ?*VARIANT, ppmsg: ?*?*IMSMQMessage, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IMSMQQueue4, Transaction: ?*VARIANT, WantDestinationQueue: ?*VARIANT, WantBody: ?*VARIANT, ReceiveTimeout: ?*VARIANT, ppmsg: ?*?*IMSMQMessage, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Peek_v1: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IMSMQQueue4, WantDestinationQueue: ?*VARIANT, WantBody: ?*VARIANT, ReceiveTimeout: ?*VARIANT, ppmsg: ?*?*IMSMQMessage, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IMSMQQueue4, WantDestinationQueue: ?*VARIANT, WantBody: ?*VARIANT, ReceiveTimeout: ?*VARIANT, ppmsg: ?*?*IMSMQMessage, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, EnableNotification: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IMSMQQueue4, Event: ?*IMSMQEvent3, Cursor: ?*VARIANT, ReceiveTimeout: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IMSMQQueue4, Event: ?*IMSMQEvent3, Cursor: ?*VARIANT, ReceiveTimeout: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Reset: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IMSMQQueue4, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IMSMQQueue4, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, ReceiveCurrent_v1: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IMSMQQueue4, Transaction: ?*VARIANT, WantDestinationQueue: ?*VARIANT, WantBody: ?*VARIANT, ReceiveTimeout: ?*VARIANT, ppmsg: ?*?*IMSMQMessage, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IMSMQQueue4, Transaction: ?*VARIANT, WantDestinationQueue: ?*VARIANT, WantBody: ?*VARIANT, ReceiveTimeout: ?*VARIANT, ppmsg: ?*?*IMSMQMessage, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, PeekNext_v1: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IMSMQQueue4, WantDestinationQueue: ?*VARIANT, WantBody: ?*VARIANT, ReceiveTimeout: ?*VARIANT, ppmsg: ?*?*IMSMQMessage, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IMSMQQueue4, WantDestinationQueue: ?*VARIANT, WantBody: ?*VARIANT, ReceiveTimeout: ?*VARIANT, ppmsg: ?*?*IMSMQMessage, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, PeekCurrent_v1: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IMSMQQueue4, WantDestinationQueue: ?*VARIANT, WantBody: ?*VARIANT, ReceiveTimeout: ?*VARIANT, ppmsg: ?*?*IMSMQMessage, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IMSMQQueue4, WantDestinationQueue: ?*VARIANT, WantBody: ?*VARIANT, ReceiveTimeout: ?*VARIANT, ppmsg: ?*?*IMSMQMessage, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Receive: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IMSMQQueue4, Transaction: ?*VARIANT, WantDestinationQueue: ?*VARIANT, WantBody: ?*VARIANT, ReceiveTimeout: ?*VARIANT, WantConnectorType: ?*VARIANT, ppmsg: ?*?*IMSMQMessage4, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IMSMQQueue4, Transaction: ?*VARIANT, WantDestinationQueue: ?*VARIANT, WantBody: ?*VARIANT, ReceiveTimeout: ?*VARIANT, WantConnectorType: ?*VARIANT, ppmsg: ?*?*IMSMQMessage4, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Peek: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IMSMQQueue4, WantDestinationQueue: ?*VARIANT, WantBody: ?*VARIANT, ReceiveTimeout: ?*VARIANT, WantConnectorType: ?*VARIANT, ppmsg: ?*?*IMSMQMessage4, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IMSMQQueue4, WantDestinationQueue: ?*VARIANT, WantBody: ?*VARIANT, ReceiveTimeout: ?*VARIANT, WantConnectorType: ?*VARIANT, ppmsg: ?*?*IMSMQMessage4, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, ReceiveCurrent: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IMSMQQueue4, Transaction: ?*VARIANT, WantDestinationQueue: ?*VARIANT, WantBody: ?*VARIANT, ReceiveTimeout: ?*VARIANT, WantConnectorType: ?*VARIANT, ppmsg: ?*?*IMSMQMessage4, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IMSMQQueue4, Transaction: ?*VARIANT, WantDestinationQueue: ?*VARIANT, WantBody: ?*VARIANT, ReceiveTimeout: ?*VARIANT, WantConnectorType: ?*VARIANT, ppmsg: ?*?*IMSMQMessage4, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, PeekNext: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IMSMQQueue4, WantDestinationQueue: ?*VARIANT, WantBody: ?*VARIANT, ReceiveTimeout: ?*VARIANT, WantConnectorType: ?*VARIANT, ppmsg: ?*?*IMSMQMessage4, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IMSMQQueue4, WantDestinationQueue: ?*VARIANT, WantBody: ?*VARIANT, ReceiveTimeout: ?*VARIANT, WantConnectorType: ?*VARIANT, ppmsg: ?*?*IMSMQMessage4, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, PeekCurrent: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IMSMQQueue4, WantDestinationQueue: ?*VARIANT, WantBody: ?*VARIANT, ReceiveTimeout: ?*VARIANT, WantConnectorType: ?*VARIANT, ppmsg: ?*?*IMSMQMessage4, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IMSMQQueue4, WantDestinationQueue: ?*VARIANT, WantBody: ?*VARIANT, ReceiveTimeout: ?*VARIANT, WantConnectorType: ?*VARIANT, ppmsg: ?*?*IMSMQMessage4, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Properties: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQQueue4, ppcolProperties: ?*?*IDispatch, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQQueue4, ppcolProperties: ?*?*IDispatch, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Handle2: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQQueue4, pvarHandle: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQQueue4, pvarHandle: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, ReceiveByLookupId: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IMSMQQueue4, LookupId: VARIANT, Transaction: ?*VARIANT, WantDestinationQueue: ?*VARIANT, WantBody: ?*VARIANT, WantConnectorType: ?*VARIANT, ppmsg: ?*?*IMSMQMessage4, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IMSMQQueue4, LookupId: VARIANT, Transaction: ?*VARIANT, WantDestinationQueue: ?*VARIANT, WantBody: ?*VARIANT, WantConnectorType: ?*VARIANT, ppmsg: ?*?*IMSMQMessage4, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, ReceiveNextByLookupId: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IMSMQQueue4, LookupId: VARIANT, Transaction: ?*VARIANT, WantDestinationQueue: ?*VARIANT, WantBody: ?*VARIANT, WantConnectorType: ?*VARIANT, ppmsg: ?*?*IMSMQMessage4, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IMSMQQueue4, LookupId: VARIANT, Transaction: ?*VARIANT, WantDestinationQueue: ?*VARIANT, WantBody: ?*VARIANT, WantConnectorType: ?*VARIANT, ppmsg: ?*?*IMSMQMessage4, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, ReceivePreviousByLookupId: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IMSMQQueue4, LookupId: VARIANT, Transaction: ?*VARIANT, WantDestinationQueue: ?*VARIANT, WantBody: ?*VARIANT, WantConnectorType: ?*VARIANT, ppmsg: ?*?*IMSMQMessage4, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IMSMQQueue4, LookupId: VARIANT, Transaction: ?*VARIANT, WantDestinationQueue: ?*VARIANT, WantBody: ?*VARIANT, WantConnectorType: ?*VARIANT, ppmsg: ?*?*IMSMQMessage4, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, ReceiveFirstByLookupId: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IMSMQQueue4, Transaction: ?*VARIANT, WantDestinationQueue: ?*VARIANT, WantBody: ?*VARIANT, WantConnectorType: ?*VARIANT, ppmsg: ?*?*IMSMQMessage4, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IMSMQQueue4, Transaction: ?*VARIANT, WantDestinationQueue: ?*VARIANT, WantBody: ?*VARIANT, WantConnectorType: ?*VARIANT, ppmsg: ?*?*IMSMQMessage4, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, ReceiveLastByLookupId: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IMSMQQueue4, Transaction: ?*VARIANT, WantDestinationQueue: ?*VARIANT, WantBody: ?*VARIANT, WantConnectorType: ?*VARIANT, ppmsg: ?*?*IMSMQMessage4, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IMSMQQueue4, Transaction: ?*VARIANT, WantDestinationQueue: ?*VARIANT, WantBody: ?*VARIANT, WantConnectorType: ?*VARIANT, ppmsg: ?*?*IMSMQMessage4, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, PeekByLookupId: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IMSMQQueue4, LookupId: VARIANT, WantDestinationQueue: ?*VARIANT, WantBody: ?*VARIANT, WantConnectorType: ?*VARIANT, ppmsg: ?*?*IMSMQMessage4, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IMSMQQueue4, LookupId: VARIANT, WantDestinationQueue: ?*VARIANT, WantBody: ?*VARIANT, WantConnectorType: ?*VARIANT, ppmsg: ?*?*IMSMQMessage4, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, PeekNextByLookupId: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IMSMQQueue4, LookupId: VARIANT, WantDestinationQueue: ?*VARIANT, WantBody: ?*VARIANT, WantConnectorType: ?*VARIANT, ppmsg: ?*?*IMSMQMessage4, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IMSMQQueue4, LookupId: VARIANT, WantDestinationQueue: ?*VARIANT, WantBody: ?*VARIANT, WantConnectorType: ?*VARIANT, ppmsg: ?*?*IMSMQMessage4, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, PeekPreviousByLookupId: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IMSMQQueue4, LookupId: VARIANT, WantDestinationQueue: ?*VARIANT, WantBody: ?*VARIANT, WantConnectorType: ?*VARIANT, ppmsg: ?*?*IMSMQMessage4, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IMSMQQueue4, LookupId: VARIANT, WantDestinationQueue: ?*VARIANT, WantBody: ?*VARIANT, WantConnectorType: ?*VARIANT, ppmsg: ?*?*IMSMQMessage4, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, PeekFirstByLookupId: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IMSMQQueue4, WantDestinationQueue: ?*VARIANT, WantBody: ?*VARIANT, WantConnectorType: ?*VARIANT, ppmsg: ?*?*IMSMQMessage4, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IMSMQQueue4, WantDestinationQueue: ?*VARIANT, WantBody: ?*VARIANT, WantConnectorType: ?*VARIANT, ppmsg: ?*?*IMSMQMessage4, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, PeekLastByLookupId: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IMSMQQueue4, WantDestinationQueue: ?*VARIANT, WantBody: ?*VARIANT, WantConnectorType: ?*VARIANT, ppmsg: ?*?*IMSMQMessage4, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IMSMQQueue4, WantDestinationQueue: ?*VARIANT, WantBody: ?*VARIANT, WantConnectorType: ?*VARIANT, ppmsg: ?*?*IMSMQMessage4, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Purge: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IMSMQQueue4, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IMSMQQueue4, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_IsOpen2: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQQueue4, pisOpen: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQQueue4, pisOpen: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, ReceiveByLookupIdAllowPeek: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IMSMQQueue4, LookupId: VARIANT, Transaction: ?*VARIANT, WantDestinationQueue: ?*VARIANT, WantBody: ?*VARIANT, WantConnectorType: ?*VARIANT, ppmsg: ?*?*IMSMQMessage4, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IMSMQQueue4, LookupId: VARIANT, Transaction: ?*VARIANT, WantDestinationQueue: ?*VARIANT, WantBody: ?*VARIANT, WantConnectorType: ?*VARIANT, ppmsg: ?*?*IMSMQMessage4, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IDispatch.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQQueue4_get_Access(self: *const T, plAccess: ?*i32) HRESULT { return @as(*const IMSMQQueue4.VTable, @ptrCast(self.vtable)).get_Access(@as(*const IMSMQQueue4, @ptrCast(self)), plAccess); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQQueue4_get_ShareMode(self: *const T, plShareMode: ?*i32) HRESULT { return @as(*const IMSMQQueue4.VTable, @ptrCast(self.vtable)).get_ShareMode(@as(*const IMSMQQueue4, @ptrCast(self)), plShareMode); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQQueue4_get_QueueInfo(self: *const T, ppqinfo: ?*?*IMSMQQueueInfo4) HRESULT { return @as(*const IMSMQQueue4.VTable, @ptrCast(self.vtable)).get_QueueInfo(@as(*const IMSMQQueue4, @ptrCast(self)), ppqinfo); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQQueue4_get_Handle(self: *const T, plHandle: ?*i32) HRESULT { return @as(*const IMSMQQueue4.VTable, @ptrCast(self.vtable)).get_Handle(@as(*const IMSMQQueue4, @ptrCast(self)), plHandle); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQQueue4_get_IsOpen(self: *const T, pisOpen: ?*i16) HRESULT { return @as(*const IMSMQQueue4.VTable, @ptrCast(self.vtable)).get_IsOpen(@as(*const IMSMQQueue4, @ptrCast(self)), pisOpen); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQQueue4_Close(self: *const T) HRESULT { return @as(*const IMSMQQueue4.VTable, @ptrCast(self.vtable)).Close(@as(*const IMSMQQueue4, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQQueue4_Receive_v1(self: *const T, Transaction: ?*VARIANT, WantDestinationQueue: ?*VARIANT, WantBody: ?*VARIANT, ReceiveTimeout: ?*VARIANT, ppmsg: ?*?*IMSMQMessage) HRESULT { return @as(*const IMSMQQueue4.VTable, @ptrCast(self.vtable)).Receive_v1(@as(*const IMSMQQueue4, @ptrCast(self)), Transaction, WantDestinationQueue, WantBody, ReceiveTimeout, ppmsg); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQQueue4_Peek_v1(self: *const T, WantDestinationQueue: ?*VARIANT, WantBody: ?*VARIANT, ReceiveTimeout: ?*VARIANT, ppmsg: ?*?*IMSMQMessage) HRESULT { return @as(*const IMSMQQueue4.VTable, @ptrCast(self.vtable)).Peek_v1(@as(*const IMSMQQueue4, @ptrCast(self)), WantDestinationQueue, WantBody, ReceiveTimeout, ppmsg); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQQueue4_EnableNotification(self: *const T, Event: ?*IMSMQEvent3, Cursor: ?*VARIANT, ReceiveTimeout: ?*VARIANT) HRESULT { return @as(*const IMSMQQueue4.VTable, @ptrCast(self.vtable)).EnableNotification(@as(*const IMSMQQueue4, @ptrCast(self)), Event, Cursor, ReceiveTimeout); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQQueue4_Reset(self: *const T) HRESULT { return @as(*const IMSMQQueue4.VTable, @ptrCast(self.vtable)).Reset(@as(*const IMSMQQueue4, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQQueue4_ReceiveCurrent_v1(self: *const T, Transaction: ?*VARIANT, WantDestinationQueue: ?*VARIANT, WantBody: ?*VARIANT, ReceiveTimeout: ?*VARIANT, ppmsg: ?*?*IMSMQMessage) HRESULT { return @as(*const IMSMQQueue4.VTable, @ptrCast(self.vtable)).ReceiveCurrent_v1(@as(*const IMSMQQueue4, @ptrCast(self)), Transaction, WantDestinationQueue, WantBody, ReceiveTimeout, ppmsg); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQQueue4_PeekNext_v1(self: *const T, WantDestinationQueue: ?*VARIANT, WantBody: ?*VARIANT, ReceiveTimeout: ?*VARIANT, ppmsg: ?*?*IMSMQMessage) HRESULT { return @as(*const IMSMQQueue4.VTable, @ptrCast(self.vtable)).PeekNext_v1(@as(*const IMSMQQueue4, @ptrCast(self)), WantDestinationQueue, WantBody, ReceiveTimeout, ppmsg); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQQueue4_PeekCurrent_v1(self: *const T, WantDestinationQueue: ?*VARIANT, WantBody: ?*VARIANT, ReceiveTimeout: ?*VARIANT, ppmsg: ?*?*IMSMQMessage) HRESULT { return @as(*const IMSMQQueue4.VTable, @ptrCast(self.vtable)).PeekCurrent_v1(@as(*const IMSMQQueue4, @ptrCast(self)), WantDestinationQueue, WantBody, ReceiveTimeout, ppmsg); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQQueue4_Receive(self: *const T, Transaction: ?*VARIANT, WantDestinationQueue: ?*VARIANT, WantBody: ?*VARIANT, ReceiveTimeout: ?*VARIANT, WantConnectorType: ?*VARIANT, ppmsg: ?*?*IMSMQMessage4) HRESULT { return @as(*const IMSMQQueue4.VTable, @ptrCast(self.vtable)).Receive(@as(*const IMSMQQueue4, @ptrCast(self)), Transaction, WantDestinationQueue, WantBody, ReceiveTimeout, WantConnectorType, ppmsg); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQQueue4_Peek(self: *const T, WantDestinationQueue: ?*VARIANT, WantBody: ?*VARIANT, ReceiveTimeout: ?*VARIANT, WantConnectorType: ?*VARIANT, ppmsg: ?*?*IMSMQMessage4) HRESULT { return @as(*const IMSMQQueue4.VTable, @ptrCast(self.vtable)).Peek(@as(*const IMSMQQueue4, @ptrCast(self)), WantDestinationQueue, WantBody, ReceiveTimeout, WantConnectorType, ppmsg); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQQueue4_ReceiveCurrent(self: *const T, Transaction: ?*VARIANT, WantDestinationQueue: ?*VARIANT, WantBody: ?*VARIANT, ReceiveTimeout: ?*VARIANT, WantConnectorType: ?*VARIANT, ppmsg: ?*?*IMSMQMessage4) HRESULT { return @as(*const IMSMQQueue4.VTable, @ptrCast(self.vtable)).ReceiveCurrent(@as(*const IMSMQQueue4, @ptrCast(self)), Transaction, WantDestinationQueue, WantBody, ReceiveTimeout, WantConnectorType, ppmsg); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQQueue4_PeekNext(self: *const T, WantDestinationQueue: ?*VARIANT, WantBody: ?*VARIANT, ReceiveTimeout: ?*VARIANT, WantConnectorType: ?*VARIANT, ppmsg: ?*?*IMSMQMessage4) HRESULT { return @as(*const IMSMQQueue4.VTable, @ptrCast(self.vtable)).PeekNext(@as(*const IMSMQQueue4, @ptrCast(self)), WantDestinationQueue, WantBody, ReceiveTimeout, WantConnectorType, ppmsg); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQQueue4_PeekCurrent(self: *const T, WantDestinationQueue: ?*VARIANT, WantBody: ?*VARIANT, ReceiveTimeout: ?*VARIANT, WantConnectorType: ?*VARIANT, ppmsg: ?*?*IMSMQMessage4) HRESULT { return @as(*const IMSMQQueue4.VTable, @ptrCast(self.vtable)).PeekCurrent(@as(*const IMSMQQueue4, @ptrCast(self)), WantDestinationQueue, WantBody, ReceiveTimeout, WantConnectorType, ppmsg); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQQueue4_get_Properties(self: *const T, ppcolProperties: ?*?*IDispatch) HRESULT { return @as(*const IMSMQQueue4.VTable, @ptrCast(self.vtable)).get_Properties(@as(*const IMSMQQueue4, @ptrCast(self)), ppcolProperties); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQQueue4_get_Handle2(self: *const T, pvarHandle: ?*VARIANT) HRESULT { return @as(*const IMSMQQueue4.VTable, @ptrCast(self.vtable)).get_Handle2(@as(*const IMSMQQueue4, @ptrCast(self)), pvarHandle); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQQueue4_ReceiveByLookupId(self: *const T, LookupId: VARIANT, Transaction: ?*VARIANT, WantDestinationQueue: ?*VARIANT, WantBody: ?*VARIANT, WantConnectorType: ?*VARIANT, ppmsg: ?*?*IMSMQMessage4) HRESULT { return @as(*const IMSMQQueue4.VTable, @ptrCast(self.vtable)).ReceiveByLookupId(@as(*const IMSMQQueue4, @ptrCast(self)), LookupId, Transaction, WantDestinationQueue, WantBody, WantConnectorType, ppmsg); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQQueue4_ReceiveNextByLookupId(self: *const T, LookupId: VARIANT, Transaction: ?*VARIANT, WantDestinationQueue: ?*VARIANT, WantBody: ?*VARIANT, WantConnectorType: ?*VARIANT, ppmsg: ?*?*IMSMQMessage4) HRESULT { return @as(*const IMSMQQueue4.VTable, @ptrCast(self.vtable)).ReceiveNextByLookupId(@as(*const IMSMQQueue4, @ptrCast(self)), LookupId, Transaction, WantDestinationQueue, WantBody, WantConnectorType, ppmsg); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQQueue4_ReceivePreviousByLookupId(self: *const T, LookupId: VARIANT, Transaction: ?*VARIANT, WantDestinationQueue: ?*VARIANT, WantBody: ?*VARIANT, WantConnectorType: ?*VARIANT, ppmsg: ?*?*IMSMQMessage4) HRESULT { return @as(*const IMSMQQueue4.VTable, @ptrCast(self.vtable)).ReceivePreviousByLookupId(@as(*const IMSMQQueue4, @ptrCast(self)), LookupId, Transaction, WantDestinationQueue, WantBody, WantConnectorType, ppmsg); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQQueue4_ReceiveFirstByLookupId(self: *const T, Transaction: ?*VARIANT, WantDestinationQueue: ?*VARIANT, WantBody: ?*VARIANT, WantConnectorType: ?*VARIANT, ppmsg: ?*?*IMSMQMessage4) HRESULT { return @as(*const IMSMQQueue4.VTable, @ptrCast(self.vtable)).ReceiveFirstByLookupId(@as(*const IMSMQQueue4, @ptrCast(self)), Transaction, WantDestinationQueue, WantBody, WantConnectorType, ppmsg); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQQueue4_ReceiveLastByLookupId(self: *const T, Transaction: ?*VARIANT, WantDestinationQueue: ?*VARIANT, WantBody: ?*VARIANT, WantConnectorType: ?*VARIANT, ppmsg: ?*?*IMSMQMessage4) HRESULT { return @as(*const IMSMQQueue4.VTable, @ptrCast(self.vtable)).ReceiveLastByLookupId(@as(*const IMSMQQueue4, @ptrCast(self)), Transaction, WantDestinationQueue, WantBody, WantConnectorType, ppmsg); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQQueue4_PeekByLookupId(self: *const T, LookupId: VARIANT, WantDestinationQueue: ?*VARIANT, WantBody: ?*VARIANT, WantConnectorType: ?*VARIANT, ppmsg: ?*?*IMSMQMessage4) HRESULT { return @as(*const IMSMQQueue4.VTable, @ptrCast(self.vtable)).PeekByLookupId(@as(*const IMSMQQueue4, @ptrCast(self)), LookupId, WantDestinationQueue, WantBody, WantConnectorType, ppmsg); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQQueue4_PeekNextByLookupId(self: *const T, LookupId: VARIANT, WantDestinationQueue: ?*VARIANT, WantBody: ?*VARIANT, WantConnectorType: ?*VARIANT, ppmsg: ?*?*IMSMQMessage4) HRESULT { return @as(*const IMSMQQueue4.VTable, @ptrCast(self.vtable)).PeekNextByLookupId(@as(*const IMSMQQueue4, @ptrCast(self)), LookupId, WantDestinationQueue, WantBody, WantConnectorType, ppmsg); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQQueue4_PeekPreviousByLookupId(self: *const T, LookupId: VARIANT, WantDestinationQueue: ?*VARIANT, WantBody: ?*VARIANT, WantConnectorType: ?*VARIANT, ppmsg: ?*?*IMSMQMessage4) HRESULT { return @as(*const IMSMQQueue4.VTable, @ptrCast(self.vtable)).PeekPreviousByLookupId(@as(*const IMSMQQueue4, @ptrCast(self)), LookupId, WantDestinationQueue, WantBody, WantConnectorType, ppmsg); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQQueue4_PeekFirstByLookupId(self: *const T, WantDestinationQueue: ?*VARIANT, WantBody: ?*VARIANT, WantConnectorType: ?*VARIANT, ppmsg: ?*?*IMSMQMessage4) HRESULT { return @as(*const IMSMQQueue4.VTable, @ptrCast(self.vtable)).PeekFirstByLookupId(@as(*const IMSMQQueue4, @ptrCast(self)), WantDestinationQueue, WantBody, WantConnectorType, ppmsg); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQQueue4_PeekLastByLookupId(self: *const T, WantDestinationQueue: ?*VARIANT, WantBody: ?*VARIANT, WantConnectorType: ?*VARIANT, ppmsg: ?*?*IMSMQMessage4) HRESULT { return @as(*const IMSMQQueue4.VTable, @ptrCast(self.vtable)).PeekLastByLookupId(@as(*const IMSMQQueue4, @ptrCast(self)), WantDestinationQueue, WantBody, WantConnectorType, ppmsg); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQQueue4_Purge(self: *const T) HRESULT { return @as(*const IMSMQQueue4.VTable, @ptrCast(self.vtable)).Purge(@as(*const IMSMQQueue4, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQQueue4_get_IsOpen2(self: *const T, pisOpen: ?*i16) HRESULT { return @as(*const IMSMQQueue4.VTable, @ptrCast(self.vtable)).get_IsOpen2(@as(*const IMSMQQueue4, @ptrCast(self)), pisOpen); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQQueue4_ReceiveByLookupIdAllowPeek(self: *const T, LookupId: VARIANT, Transaction: ?*VARIANT, WantDestinationQueue: ?*VARIANT, WantBody: ?*VARIANT, WantConnectorType: ?*VARIANT, ppmsg: ?*?*IMSMQMessage4) HRESULT { return @as(*const IMSMQQueue4.VTable, @ptrCast(self.vtable)).ReceiveByLookupIdAllowPeek(@as(*const IMSMQQueue4, @ptrCast(self)), LookupId, Transaction, WantDestinationQueue, WantBody, WantConnectorType, ppmsg); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IMSMQMessage_Value = Guid.initString("d7d6e074-dccd-11d0-aa4b-0060970debae"); pub const IID_IMSMQMessage = &IID_IMSMQMessage_Value; pub const IMSMQMessage = extern struct { pub const VTable = extern struct { base: IDispatch.VTable, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Class: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQMessage, plClass: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQMessage, plClass: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_PrivLevel: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQMessage, plPrivLevel: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQMessage, plPrivLevel: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_PrivLevel: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQMessage, lPrivLevel: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQMessage, lPrivLevel: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_AuthLevel: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQMessage, plAuthLevel: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQMessage, plAuthLevel: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_AuthLevel: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQMessage, lAuthLevel: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQMessage, lAuthLevel: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_IsAuthenticated: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQMessage, pisAuthenticated: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQMessage, pisAuthenticated: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Delivery: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQMessage, plDelivery: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQMessage, plDelivery: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_Delivery: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQMessage, lDelivery: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQMessage, lDelivery: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Trace: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQMessage, plTrace: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQMessage, plTrace: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_Trace: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQMessage, lTrace: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQMessage, lTrace: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Priority: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQMessage, plPriority: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQMessage, plPriority: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_Priority: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQMessage, lPriority: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQMessage, lPriority: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Journal: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQMessage, plJournal: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQMessage, plJournal: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_Journal: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQMessage, lJournal: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQMessage, lJournal: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_ResponseQueueInfo: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQMessage, ppqinfoResponse: ?*?*IMSMQQueueInfo, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQMessage, ppqinfoResponse: ?*?*IMSMQQueueInfo, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, putref_ResponseQueueInfo: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IMSMQMessage, pqinfoResponse: ?*IMSMQQueueInfo, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IMSMQMessage, pqinfoResponse: ?*IMSMQQueueInfo, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_AppSpecific: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQMessage, plAppSpecific: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQMessage, plAppSpecific: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_AppSpecific: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQMessage, lAppSpecific: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQMessage, lAppSpecific: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_SourceMachineGuid: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQMessage, pbstrGuidSrcMachine: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQMessage, pbstrGuidSrcMachine: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_BodyLength: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQMessage, pcbBody: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQMessage, pcbBody: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Body: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQMessage, pvarBody: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQMessage, pvarBody: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_Body: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQMessage, varBody: VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQMessage, varBody: VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_AdminQueueInfo: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQMessage, ppqinfoAdmin: ?*?*IMSMQQueueInfo, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQMessage, ppqinfoAdmin: ?*?*IMSMQQueueInfo, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, putref_AdminQueueInfo: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IMSMQMessage, pqinfoAdmin: ?*IMSMQQueueInfo, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IMSMQMessage, pqinfoAdmin: ?*IMSMQQueueInfo, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Id: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQMessage, pvarMsgId: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQMessage, pvarMsgId: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_CorrelationId: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQMessage, pvarMsgId: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQMessage, pvarMsgId: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_CorrelationId: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQMessage, varMsgId: VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQMessage, varMsgId: VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Ack: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQMessage, plAck: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQMessage, plAck: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_Ack: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQMessage, lAck: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQMessage, lAck: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Label: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQMessage, pbstrLabel: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQMessage, pbstrLabel: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_Label: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQMessage, bstrLabel: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQMessage, bstrLabel: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_MaxTimeToReachQueue: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQMessage, plMaxTimeToReachQueue: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQMessage, plMaxTimeToReachQueue: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_MaxTimeToReachQueue: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQMessage, lMaxTimeToReachQueue: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQMessage, lMaxTimeToReachQueue: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_MaxTimeToReceive: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQMessage, plMaxTimeToReceive: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQMessage, plMaxTimeToReceive: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_MaxTimeToReceive: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQMessage, lMaxTimeToReceive: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQMessage, lMaxTimeToReceive: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_HashAlgorithm: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQMessage, plHashAlg: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQMessage, plHashAlg: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_HashAlgorithm: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQMessage, lHashAlg: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQMessage, lHashAlg: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_EncryptAlgorithm: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQMessage, plEncryptAlg: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQMessage, plEncryptAlg: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_EncryptAlgorithm: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQMessage, lEncryptAlg: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQMessage, lEncryptAlg: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_SentTime: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQMessage, pvarSentTime: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQMessage, pvarSentTime: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_ArrivedTime: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQMessage, plArrivedTime: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQMessage, plArrivedTime: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_DestinationQueueInfo: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQMessage, ppqinfoDest: ?*?*IMSMQQueueInfo, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQMessage, ppqinfoDest: ?*?*IMSMQQueueInfo, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_SenderCertificate: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQMessage, pvarSenderCert: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQMessage, pvarSenderCert: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_SenderCertificate: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQMessage, varSenderCert: VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQMessage, varSenderCert: VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_SenderId: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQMessage, pvarSenderId: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQMessage, pvarSenderId: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_SenderIdType: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQMessage, plSenderIdType: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQMessage, plSenderIdType: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_SenderIdType: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQMessage, lSenderIdType: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQMessage, lSenderIdType: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Send: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IMSMQMessage, DestinationQueue: ?*IMSMQQueue, Transaction: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IMSMQMessage, DestinationQueue: ?*IMSMQQueue, Transaction: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, AttachCurrentSecurityContext: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IMSMQMessage, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IMSMQMessage, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IDispatch.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQMessage_get_Class(self: *const T, plClass: ?*i32) HRESULT { return @as(*const IMSMQMessage.VTable, @ptrCast(self.vtable)).get_Class(@as(*const IMSMQMessage, @ptrCast(self)), plClass); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQMessage_get_PrivLevel(self: *const T, plPrivLevel: ?*i32) HRESULT { return @as(*const IMSMQMessage.VTable, @ptrCast(self.vtable)).get_PrivLevel(@as(*const IMSMQMessage, @ptrCast(self)), plPrivLevel); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQMessage_put_PrivLevel(self: *const T, lPrivLevel: i32) HRESULT { return @as(*const IMSMQMessage.VTable, @ptrCast(self.vtable)).put_PrivLevel(@as(*const IMSMQMessage, @ptrCast(self)), lPrivLevel); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQMessage_get_AuthLevel(self: *const T, plAuthLevel: ?*i32) HRESULT { return @as(*const IMSMQMessage.VTable, @ptrCast(self.vtable)).get_AuthLevel(@as(*const IMSMQMessage, @ptrCast(self)), plAuthLevel); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQMessage_put_AuthLevel(self: *const T, lAuthLevel: i32) HRESULT { return @as(*const IMSMQMessage.VTable, @ptrCast(self.vtable)).put_AuthLevel(@as(*const IMSMQMessage, @ptrCast(self)), lAuthLevel); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQMessage_get_IsAuthenticated(self: *const T, pisAuthenticated: ?*i16) HRESULT { return @as(*const IMSMQMessage.VTable, @ptrCast(self.vtable)).get_IsAuthenticated(@as(*const IMSMQMessage, @ptrCast(self)), pisAuthenticated); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQMessage_get_Delivery(self: *const T, plDelivery: ?*i32) HRESULT { return @as(*const IMSMQMessage.VTable, @ptrCast(self.vtable)).get_Delivery(@as(*const IMSMQMessage, @ptrCast(self)), plDelivery); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQMessage_put_Delivery(self: *const T, lDelivery: i32) HRESULT { return @as(*const IMSMQMessage.VTable, @ptrCast(self.vtable)).put_Delivery(@as(*const IMSMQMessage, @ptrCast(self)), lDelivery); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQMessage_get_Trace(self: *const T, plTrace: ?*i32) HRESULT { return @as(*const IMSMQMessage.VTable, @ptrCast(self.vtable)).get_Trace(@as(*const IMSMQMessage, @ptrCast(self)), plTrace); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQMessage_put_Trace(self: *const T, lTrace: i32) HRESULT { return @as(*const IMSMQMessage.VTable, @ptrCast(self.vtable)).put_Trace(@as(*const IMSMQMessage, @ptrCast(self)), lTrace); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQMessage_get_Priority(self: *const T, plPriority: ?*i32) HRESULT { return @as(*const IMSMQMessage.VTable, @ptrCast(self.vtable)).get_Priority(@as(*const IMSMQMessage, @ptrCast(self)), plPriority); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQMessage_put_Priority(self: *const T, lPriority: i32) HRESULT { return @as(*const IMSMQMessage.VTable, @ptrCast(self.vtable)).put_Priority(@as(*const IMSMQMessage, @ptrCast(self)), lPriority); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQMessage_get_Journal(self: *const T, plJournal: ?*i32) HRESULT { return @as(*const IMSMQMessage.VTable, @ptrCast(self.vtable)).get_Journal(@as(*const IMSMQMessage, @ptrCast(self)), plJournal); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQMessage_put_Journal(self: *const T, lJournal: i32) HRESULT { return @as(*const IMSMQMessage.VTable, @ptrCast(self.vtable)).put_Journal(@as(*const IMSMQMessage, @ptrCast(self)), lJournal); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQMessage_get_ResponseQueueInfo(self: *const T, ppqinfoResponse: ?*?*IMSMQQueueInfo) HRESULT { return @as(*const IMSMQMessage.VTable, @ptrCast(self.vtable)).get_ResponseQueueInfo(@as(*const IMSMQMessage, @ptrCast(self)), ppqinfoResponse); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQMessage_putref_ResponseQueueInfo(self: *const T, pqinfoResponse: ?*IMSMQQueueInfo) HRESULT { return @as(*const IMSMQMessage.VTable, @ptrCast(self.vtable)).putref_ResponseQueueInfo(@as(*const IMSMQMessage, @ptrCast(self)), pqinfoResponse); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQMessage_get_AppSpecific(self: *const T, plAppSpecific: ?*i32) HRESULT { return @as(*const IMSMQMessage.VTable, @ptrCast(self.vtable)).get_AppSpecific(@as(*const IMSMQMessage, @ptrCast(self)), plAppSpecific); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQMessage_put_AppSpecific(self: *const T, lAppSpecific: i32) HRESULT { return @as(*const IMSMQMessage.VTable, @ptrCast(self.vtable)).put_AppSpecific(@as(*const IMSMQMessage, @ptrCast(self)), lAppSpecific); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQMessage_get_SourceMachineGuid(self: *const T, pbstrGuidSrcMachine: ?*?BSTR) HRESULT { return @as(*const IMSMQMessage.VTable, @ptrCast(self.vtable)).get_SourceMachineGuid(@as(*const IMSMQMessage, @ptrCast(self)), pbstrGuidSrcMachine); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQMessage_get_BodyLength(self: *const T, pcbBody: ?*i32) HRESULT { return @as(*const IMSMQMessage.VTable, @ptrCast(self.vtable)).get_BodyLength(@as(*const IMSMQMessage, @ptrCast(self)), pcbBody); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQMessage_get_Body(self: *const T, pvarBody: ?*VARIANT) HRESULT { return @as(*const IMSMQMessage.VTable, @ptrCast(self.vtable)).get_Body(@as(*const IMSMQMessage, @ptrCast(self)), pvarBody); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQMessage_put_Body(self: *const T, varBody: VARIANT) HRESULT { return @as(*const IMSMQMessage.VTable, @ptrCast(self.vtable)).put_Body(@as(*const IMSMQMessage, @ptrCast(self)), varBody); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQMessage_get_AdminQueueInfo(self: *const T, ppqinfoAdmin: ?*?*IMSMQQueueInfo) HRESULT { return @as(*const IMSMQMessage.VTable, @ptrCast(self.vtable)).get_AdminQueueInfo(@as(*const IMSMQMessage, @ptrCast(self)), ppqinfoAdmin); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQMessage_putref_AdminQueueInfo(self: *const T, pqinfoAdmin: ?*IMSMQQueueInfo) HRESULT { return @as(*const IMSMQMessage.VTable, @ptrCast(self.vtable)).putref_AdminQueueInfo(@as(*const IMSMQMessage, @ptrCast(self)), pqinfoAdmin); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQMessage_get_Id(self: *const T, pvarMsgId: ?*VARIANT) HRESULT { return @as(*const IMSMQMessage.VTable, @ptrCast(self.vtable)).get_Id(@as(*const IMSMQMessage, @ptrCast(self)), pvarMsgId); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQMessage_get_CorrelationId(self: *const T, pvarMsgId: ?*VARIANT) HRESULT { return @as(*const IMSMQMessage.VTable, @ptrCast(self.vtable)).get_CorrelationId(@as(*const IMSMQMessage, @ptrCast(self)), pvarMsgId); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQMessage_put_CorrelationId(self: *const T, varMsgId: VARIANT) HRESULT { return @as(*const IMSMQMessage.VTable, @ptrCast(self.vtable)).put_CorrelationId(@as(*const IMSMQMessage, @ptrCast(self)), varMsgId); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQMessage_get_Ack(self: *const T, plAck: ?*i32) HRESULT { return @as(*const IMSMQMessage.VTable, @ptrCast(self.vtable)).get_Ack(@as(*const IMSMQMessage, @ptrCast(self)), plAck); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQMessage_put_Ack(self: *const T, lAck: i32) HRESULT { return @as(*const IMSMQMessage.VTable, @ptrCast(self.vtable)).put_Ack(@as(*const IMSMQMessage, @ptrCast(self)), lAck); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQMessage_get_Label(self: *const T, pbstrLabel: ?*?BSTR) HRESULT { return @as(*const IMSMQMessage.VTable, @ptrCast(self.vtable)).get_Label(@as(*const IMSMQMessage, @ptrCast(self)), pbstrLabel); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQMessage_put_Label(self: *const T, bstrLabel: ?BSTR) HRESULT { return @as(*const IMSMQMessage.VTable, @ptrCast(self.vtable)).put_Label(@as(*const IMSMQMessage, @ptrCast(self)), bstrLabel); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQMessage_get_MaxTimeToReachQueue(self: *const T, plMaxTimeToReachQueue: ?*i32) HRESULT { return @as(*const IMSMQMessage.VTable, @ptrCast(self.vtable)).get_MaxTimeToReachQueue(@as(*const IMSMQMessage, @ptrCast(self)), plMaxTimeToReachQueue); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQMessage_put_MaxTimeToReachQueue(self: *const T, lMaxTimeToReachQueue: i32) HRESULT { return @as(*const IMSMQMessage.VTable, @ptrCast(self.vtable)).put_MaxTimeToReachQueue(@as(*const IMSMQMessage, @ptrCast(self)), lMaxTimeToReachQueue); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQMessage_get_MaxTimeToReceive(self: *const T, plMaxTimeToReceive: ?*i32) HRESULT { return @as(*const IMSMQMessage.VTable, @ptrCast(self.vtable)).get_MaxTimeToReceive(@as(*const IMSMQMessage, @ptrCast(self)), plMaxTimeToReceive); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQMessage_put_MaxTimeToReceive(self: *const T, lMaxTimeToReceive: i32) HRESULT { return @as(*const IMSMQMessage.VTable, @ptrCast(self.vtable)).put_MaxTimeToReceive(@as(*const IMSMQMessage, @ptrCast(self)), lMaxTimeToReceive); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQMessage_get_HashAlgorithm(self: *const T, plHashAlg: ?*i32) HRESULT { return @as(*const IMSMQMessage.VTable, @ptrCast(self.vtable)).get_HashAlgorithm(@as(*const IMSMQMessage, @ptrCast(self)), plHashAlg); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQMessage_put_HashAlgorithm(self: *const T, lHashAlg: i32) HRESULT { return @as(*const IMSMQMessage.VTable, @ptrCast(self.vtable)).put_HashAlgorithm(@as(*const IMSMQMessage, @ptrCast(self)), lHashAlg); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQMessage_get_EncryptAlgorithm(self: *const T, plEncryptAlg: ?*i32) HRESULT { return @as(*const IMSMQMessage.VTable, @ptrCast(self.vtable)).get_EncryptAlgorithm(@as(*const IMSMQMessage, @ptrCast(self)), plEncryptAlg); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQMessage_put_EncryptAlgorithm(self: *const T, lEncryptAlg: i32) HRESULT { return @as(*const IMSMQMessage.VTable, @ptrCast(self.vtable)).put_EncryptAlgorithm(@as(*const IMSMQMessage, @ptrCast(self)), lEncryptAlg); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQMessage_get_SentTime(self: *const T, pvarSentTime: ?*VARIANT) HRESULT { return @as(*const IMSMQMessage.VTable, @ptrCast(self.vtable)).get_SentTime(@as(*const IMSMQMessage, @ptrCast(self)), pvarSentTime); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQMessage_get_ArrivedTime(self: *const T, plArrivedTime: ?*VARIANT) HRESULT { return @as(*const IMSMQMessage.VTable, @ptrCast(self.vtable)).get_ArrivedTime(@as(*const IMSMQMessage, @ptrCast(self)), plArrivedTime); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQMessage_get_DestinationQueueInfo(self: *const T, ppqinfoDest: ?*?*IMSMQQueueInfo) HRESULT { return @as(*const IMSMQMessage.VTable, @ptrCast(self.vtable)).get_DestinationQueueInfo(@as(*const IMSMQMessage, @ptrCast(self)), ppqinfoDest); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQMessage_get_SenderCertificate(self: *const T, pvarSenderCert: ?*VARIANT) HRESULT { return @as(*const IMSMQMessage.VTable, @ptrCast(self.vtable)).get_SenderCertificate(@as(*const IMSMQMessage, @ptrCast(self)), pvarSenderCert); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQMessage_put_SenderCertificate(self: *const T, varSenderCert: VARIANT) HRESULT { return @as(*const IMSMQMessage.VTable, @ptrCast(self.vtable)).put_SenderCertificate(@as(*const IMSMQMessage, @ptrCast(self)), varSenderCert); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQMessage_get_SenderId(self: *const T, pvarSenderId: ?*VARIANT) HRESULT { return @as(*const IMSMQMessage.VTable, @ptrCast(self.vtable)).get_SenderId(@as(*const IMSMQMessage, @ptrCast(self)), pvarSenderId); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQMessage_get_SenderIdType(self: *const T, plSenderIdType: ?*i32) HRESULT { return @as(*const IMSMQMessage.VTable, @ptrCast(self.vtable)).get_SenderIdType(@as(*const IMSMQMessage, @ptrCast(self)), plSenderIdType); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQMessage_put_SenderIdType(self: *const T, lSenderIdType: i32) HRESULT { return @as(*const IMSMQMessage.VTable, @ptrCast(self.vtable)).put_SenderIdType(@as(*const IMSMQMessage, @ptrCast(self)), lSenderIdType); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQMessage_Send(self: *const T, DestinationQueue: ?*IMSMQQueue, Transaction: ?*VARIANT) HRESULT { return @as(*const IMSMQMessage.VTable, @ptrCast(self.vtable)).Send(@as(*const IMSMQMessage, @ptrCast(self)), DestinationQueue, Transaction); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQMessage_AttachCurrentSecurityContext(self: *const T) HRESULT { return @as(*const IMSMQMessage.VTable, @ptrCast(self.vtable)).AttachCurrentSecurityContext(@as(*const IMSMQMessage, @ptrCast(self))); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IMSMQQueueInfos_Value = Guid.initString("d7d6e07d-dccd-11d0-aa4b-0060970debae"); pub const IID_IMSMQQueueInfos = &IID_IMSMQQueueInfos_Value; pub const IMSMQQueueInfos = extern struct { pub const VTable = extern struct { base: IDispatch.VTable, Reset: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IMSMQQueueInfos, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IMSMQQueueInfos, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Next: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IMSMQQueueInfos, ppqinfoNext: ?*?*IMSMQQueueInfo, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IMSMQQueueInfos, ppqinfoNext: ?*?*IMSMQQueueInfo, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IDispatch.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQQueueInfos_Reset(self: *const T) HRESULT { return @as(*const IMSMQQueueInfos.VTable, @ptrCast(self.vtable)).Reset(@as(*const IMSMQQueueInfos, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQQueueInfos_Next(self: *const T, ppqinfoNext: ?*?*IMSMQQueueInfo) HRESULT { return @as(*const IMSMQQueueInfos.VTable, @ptrCast(self.vtable)).Next(@as(*const IMSMQQueueInfos, @ptrCast(self)), ppqinfoNext); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IMSMQQueueInfos2_Value = Guid.initString("eba96b0f-2168-11d3-898c-00e02c074f6b"); pub const IID_IMSMQQueueInfos2 = &IID_IMSMQQueueInfos2_Value; pub const IMSMQQueueInfos2 = extern struct { pub const VTable = extern struct { base: IDispatch.VTable, Reset: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IMSMQQueueInfos2, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IMSMQQueueInfos2, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Next: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IMSMQQueueInfos2, ppqinfoNext: ?*?*IMSMQQueueInfo2, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IMSMQQueueInfos2, ppqinfoNext: ?*?*IMSMQQueueInfo2, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Properties: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQQueueInfos2, ppcolProperties: ?*?*IDispatch, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQQueueInfos2, ppcolProperties: ?*?*IDispatch, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IDispatch.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQQueueInfos2_Reset(self: *const T) HRESULT { return @as(*const IMSMQQueueInfos2.VTable, @ptrCast(self.vtable)).Reset(@as(*const IMSMQQueueInfos2, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQQueueInfos2_Next(self: *const T, ppqinfoNext: ?*?*IMSMQQueueInfo2) HRESULT { return @as(*const IMSMQQueueInfos2.VTable, @ptrCast(self.vtable)).Next(@as(*const IMSMQQueueInfos2, @ptrCast(self)), ppqinfoNext); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQQueueInfos2_get_Properties(self: *const T, ppcolProperties: ?*?*IDispatch) HRESULT { return @as(*const IMSMQQueueInfos2.VTable, @ptrCast(self.vtable)).get_Properties(@as(*const IMSMQQueueInfos2, @ptrCast(self)), ppcolProperties); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IMSMQQueueInfos3_Value = Guid.initString("eba96b1e-2168-11d3-898c-00e02c074f6b"); pub const IID_IMSMQQueueInfos3 = &IID_IMSMQQueueInfos3_Value; pub const IMSMQQueueInfos3 = extern struct { pub const VTable = extern struct { base: IDispatch.VTable, Reset: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IMSMQQueueInfos3, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IMSMQQueueInfos3, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Next: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IMSMQQueueInfos3, ppqinfoNext: ?*?*IMSMQQueueInfo3, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IMSMQQueueInfos3, ppqinfoNext: ?*?*IMSMQQueueInfo3, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Properties: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQQueueInfos3, ppcolProperties: ?*?*IDispatch, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQQueueInfos3, ppcolProperties: ?*?*IDispatch, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IDispatch.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQQueueInfos3_Reset(self: *const T) HRESULT { return @as(*const IMSMQQueueInfos3.VTable, @ptrCast(self.vtable)).Reset(@as(*const IMSMQQueueInfos3, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQQueueInfos3_Next(self: *const T, ppqinfoNext: ?*?*IMSMQQueueInfo3) HRESULT { return @as(*const IMSMQQueueInfos3.VTable, @ptrCast(self.vtable)).Next(@as(*const IMSMQQueueInfos3, @ptrCast(self)), ppqinfoNext); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQQueueInfos3_get_Properties(self: *const T, ppcolProperties: ?*?*IDispatch) HRESULT { return @as(*const IMSMQQueueInfos3.VTable, @ptrCast(self.vtable)).get_Properties(@as(*const IMSMQQueueInfos3, @ptrCast(self)), ppcolProperties); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IMSMQQueueInfos4_Value = Guid.initString("eba96b22-2168-11d3-898c-00e02c074f6b"); pub const IID_IMSMQQueueInfos4 = &IID_IMSMQQueueInfos4_Value; pub const IMSMQQueueInfos4 = extern struct { pub const VTable = extern struct { base: IDispatch.VTable, Reset: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IMSMQQueueInfos4, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IMSMQQueueInfos4, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Next: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IMSMQQueueInfos4, ppqinfoNext: ?*?*IMSMQQueueInfo4, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IMSMQQueueInfos4, ppqinfoNext: ?*?*IMSMQQueueInfo4, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Properties: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQQueueInfos4, ppcolProperties: ?*?*IDispatch, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQQueueInfos4, ppcolProperties: ?*?*IDispatch, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IDispatch.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQQueueInfos4_Reset(self: *const T) HRESULT { return @as(*const IMSMQQueueInfos4.VTable, @ptrCast(self.vtable)).Reset(@as(*const IMSMQQueueInfos4, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQQueueInfos4_Next(self: *const T, ppqinfoNext: ?*?*IMSMQQueueInfo4) HRESULT { return @as(*const IMSMQQueueInfos4.VTable, @ptrCast(self.vtable)).Next(@as(*const IMSMQQueueInfos4, @ptrCast(self)), ppqinfoNext); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQQueueInfos4_get_Properties(self: *const T, ppcolProperties: ?*?*IDispatch) HRESULT { return @as(*const IMSMQQueueInfos4.VTable, @ptrCast(self.vtable)).get_Properties(@as(*const IMSMQQueueInfos4, @ptrCast(self)), ppcolProperties); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IMSMQEvent_Value = Guid.initString("d7d6e077-dccd-11d0-aa4b-0060970debae"); pub const IID_IMSMQEvent = &IID_IMSMQEvent_Value; pub const IMSMQEvent = extern struct { pub const VTable = extern struct { base: IDispatch.VTable, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IDispatch.MethodMixin(T); }; } pub usingnamespace MethodMixin(@This()); }; const IID_IMSMQEvent2_Value = Guid.initString("eba96b12-2168-11d3-898c-00e02c074f6b"); pub const IID_IMSMQEvent2 = &IID_IMSMQEvent2_Value; pub const IMSMQEvent2 = extern struct { pub const VTable = extern struct { base: IMSMQEvent.VTable, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Properties: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQEvent2, ppcolProperties: ?*?*IDispatch, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQEvent2, ppcolProperties: ?*?*IDispatch, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IMSMQEvent.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQEvent2_get_Properties(self: *const T, ppcolProperties: ?*?*IDispatch) HRESULT { return @as(*const IMSMQEvent2.VTable, @ptrCast(self.vtable)).get_Properties(@as(*const IMSMQEvent2, @ptrCast(self)), ppcolProperties); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IMSMQEvent3_Value = Guid.initString("eba96b1c-2168-11d3-898c-00e02c074f6b"); pub const IID_IMSMQEvent3 = &IID_IMSMQEvent3_Value; pub const IMSMQEvent3 = extern struct { pub const VTable = extern struct { base: IMSMQEvent2.VTable, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IMSMQEvent2.MethodMixin(T); }; } pub usingnamespace MethodMixin(@This()); }; const IID_IMSMQTransaction_Value = Guid.initString("d7d6e07f-dccd-11d0-aa4b-0060970debae"); pub const IID_IMSMQTransaction = &IID_IMSMQTransaction_Value; pub const IMSMQTransaction = extern struct { pub const VTable = extern struct { base: IDispatch.VTable, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Transaction: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQTransaction, plTransaction: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQTransaction, plTransaction: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Commit: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IMSMQTransaction, fRetaining: ?*VARIANT, grfTC: ?*VARIANT, grfRM: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IMSMQTransaction, fRetaining: ?*VARIANT, grfTC: ?*VARIANT, grfRM: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Abort: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IMSMQTransaction, fRetaining: ?*VARIANT, fAsync: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IMSMQTransaction, fRetaining: ?*VARIANT, fAsync: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IDispatch.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQTransaction_get_Transaction(self: *const T, plTransaction: ?*i32) HRESULT { return @as(*const IMSMQTransaction.VTable, @ptrCast(self.vtable)).get_Transaction(@as(*const IMSMQTransaction, @ptrCast(self)), plTransaction); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQTransaction_Commit(self: *const T, fRetaining: ?*VARIANT, grfTC: ?*VARIANT, grfRM: ?*VARIANT) HRESULT { return @as(*const IMSMQTransaction.VTable, @ptrCast(self.vtable)).Commit(@as(*const IMSMQTransaction, @ptrCast(self)), fRetaining, grfTC, grfRM); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQTransaction_Abort(self: *const T, fRetaining: ?*VARIANT, fAsync: ?*VARIANT) HRESULT { return @as(*const IMSMQTransaction.VTable, @ptrCast(self.vtable)).Abort(@as(*const IMSMQTransaction, @ptrCast(self)), fRetaining, fAsync); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IMSMQCoordinatedTransactionDispenser_Value = Guid.initString("d7d6e081-dccd-11d0-aa4b-0060970debae"); pub const IID_IMSMQCoordinatedTransactionDispenser = &IID_IMSMQCoordinatedTransactionDispenser_Value; pub const IMSMQCoordinatedTransactionDispenser = extern struct { pub const VTable = extern struct { base: IDispatch.VTable, BeginTransaction: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IMSMQCoordinatedTransactionDispenser, ptransaction: ?*?*IMSMQTransaction, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IMSMQCoordinatedTransactionDispenser, ptransaction: ?*?*IMSMQTransaction, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IDispatch.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQCoordinatedTransactionDispenser_BeginTransaction(self: *const T, ptransaction: ?*?*IMSMQTransaction) HRESULT { return @as(*const IMSMQCoordinatedTransactionDispenser.VTable, @ptrCast(self.vtable)).BeginTransaction(@as(*const IMSMQCoordinatedTransactionDispenser, @ptrCast(self)), ptransaction); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IMSMQTransactionDispenser_Value = Guid.initString("d7d6e083-dccd-11d0-aa4b-0060970debae"); pub const IID_IMSMQTransactionDispenser = &IID_IMSMQTransactionDispenser_Value; pub const IMSMQTransactionDispenser = extern struct { pub const VTable = extern struct { base: IDispatch.VTable, BeginTransaction: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IMSMQTransactionDispenser, ptransaction: ?*?*IMSMQTransaction, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IMSMQTransactionDispenser, ptransaction: ?*?*IMSMQTransaction, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IDispatch.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQTransactionDispenser_BeginTransaction(self: *const T, ptransaction: ?*?*IMSMQTransaction) HRESULT { return @as(*const IMSMQTransactionDispenser.VTable, @ptrCast(self.vtable)).BeginTransaction(@as(*const IMSMQTransactionDispenser, @ptrCast(self)), ptransaction); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IMSMQQuery2_Value = Guid.initString("eba96b0e-2168-11d3-898c-00e02c074f6b"); pub const IID_IMSMQQuery2 = &IID_IMSMQQuery2_Value; pub const IMSMQQuery2 = extern struct { pub const VTable = extern struct { base: IDispatch.VTable, LookupQueue: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IMSMQQuery2, QueueGuid: ?*VARIANT, ServiceTypeGuid: ?*VARIANT, Label: ?*VARIANT, CreateTime: ?*VARIANT, ModifyTime: ?*VARIANT, RelServiceType: ?*VARIANT, RelLabel: ?*VARIANT, RelCreateTime: ?*VARIANT, RelModifyTime: ?*VARIANT, ppqinfos: ?*?*IMSMQQueueInfos2, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IMSMQQuery2, QueueGuid: ?*VARIANT, ServiceTypeGuid: ?*VARIANT, Label: ?*VARIANT, CreateTime: ?*VARIANT, ModifyTime: ?*VARIANT, RelServiceType: ?*VARIANT, RelLabel: ?*VARIANT, RelCreateTime: ?*VARIANT, RelModifyTime: ?*VARIANT, ppqinfos: ?*?*IMSMQQueueInfos2, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Properties: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQQuery2, ppcolProperties: ?*?*IDispatch, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQQuery2, ppcolProperties: ?*?*IDispatch, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IDispatch.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQQuery2_LookupQueue(self: *const T, QueueGuid: ?*VARIANT, ServiceTypeGuid: ?*VARIANT, Label: ?*VARIANT, CreateTime: ?*VARIANT, ModifyTime: ?*VARIANT, RelServiceType: ?*VARIANT, RelLabel: ?*VARIANT, RelCreateTime: ?*VARIANT, RelModifyTime: ?*VARIANT, ppqinfos: ?*?*IMSMQQueueInfos2) HRESULT { return @as(*const IMSMQQuery2.VTable, @ptrCast(self.vtable)).LookupQueue(@as(*const IMSMQQuery2, @ptrCast(self)), QueueGuid, ServiceTypeGuid, Label, CreateTime, ModifyTime, RelServiceType, RelLabel, RelCreateTime, RelModifyTime, ppqinfos); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQQuery2_get_Properties(self: *const T, ppcolProperties: ?*?*IDispatch) HRESULT { return @as(*const IMSMQQuery2.VTable, @ptrCast(self.vtable)).get_Properties(@as(*const IMSMQQuery2, @ptrCast(self)), ppcolProperties); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IMSMQQuery3_Value = Guid.initString("eba96b19-2168-11d3-898c-00e02c074f6b"); pub const IID_IMSMQQuery3 = &IID_IMSMQQuery3_Value; pub const IMSMQQuery3 = extern struct { pub const VTable = extern struct { base: IDispatch.VTable, LookupQueue_v2: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IMSMQQuery3, QueueGuid: ?*VARIANT, ServiceTypeGuid: ?*VARIANT, Label: ?*VARIANT, CreateTime: ?*VARIANT, ModifyTime: ?*VARIANT, RelServiceType: ?*VARIANT, RelLabel: ?*VARIANT, RelCreateTime: ?*VARIANT, RelModifyTime: ?*VARIANT, ppqinfos: ?*?*IMSMQQueueInfos3, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IMSMQQuery3, QueueGuid: ?*VARIANT, ServiceTypeGuid: ?*VARIANT, Label: ?*VARIANT, CreateTime: ?*VARIANT, ModifyTime: ?*VARIANT, RelServiceType: ?*VARIANT, RelLabel: ?*VARIANT, RelCreateTime: ?*VARIANT, RelModifyTime: ?*VARIANT, ppqinfos: ?*?*IMSMQQueueInfos3, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Properties: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQQuery3, ppcolProperties: ?*?*IDispatch, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQQuery3, ppcolProperties: ?*?*IDispatch, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, LookupQueue: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IMSMQQuery3, QueueGuid: ?*VARIANT, ServiceTypeGuid: ?*VARIANT, Label: ?*VARIANT, CreateTime: ?*VARIANT, ModifyTime: ?*VARIANT, RelServiceType: ?*VARIANT, RelLabel: ?*VARIANT, RelCreateTime: ?*VARIANT, RelModifyTime: ?*VARIANT, MulticastAddress: ?*VARIANT, RelMulticastAddress: ?*VARIANT, ppqinfos: ?*?*IMSMQQueueInfos3, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IMSMQQuery3, QueueGuid: ?*VARIANT, ServiceTypeGuid: ?*VARIANT, Label: ?*VARIANT, CreateTime: ?*VARIANT, ModifyTime: ?*VARIANT, RelServiceType: ?*VARIANT, RelLabel: ?*VARIANT, RelCreateTime: ?*VARIANT, RelModifyTime: ?*VARIANT, MulticastAddress: ?*VARIANT, RelMulticastAddress: ?*VARIANT, ppqinfos: ?*?*IMSMQQueueInfos3, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IDispatch.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQQuery3_LookupQueue_v2(self: *const T, QueueGuid: ?*VARIANT, ServiceTypeGuid: ?*VARIANT, Label: ?*VARIANT, CreateTime: ?*VARIANT, ModifyTime: ?*VARIANT, RelServiceType: ?*VARIANT, RelLabel: ?*VARIANT, RelCreateTime: ?*VARIANT, RelModifyTime: ?*VARIANT, ppqinfos: ?*?*IMSMQQueueInfos3) HRESULT { return @as(*const IMSMQQuery3.VTable, @ptrCast(self.vtable)).LookupQueue_v2(@as(*const IMSMQQuery3, @ptrCast(self)), QueueGuid, ServiceTypeGuid, Label, CreateTime, ModifyTime, RelServiceType, RelLabel, RelCreateTime, RelModifyTime, ppqinfos); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQQuery3_get_Properties(self: *const T, ppcolProperties: ?*?*IDispatch) HRESULT { return @as(*const IMSMQQuery3.VTable, @ptrCast(self.vtable)).get_Properties(@as(*const IMSMQQuery3, @ptrCast(self)), ppcolProperties); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQQuery3_LookupQueue(self: *const T, QueueGuid: ?*VARIANT, ServiceTypeGuid: ?*VARIANT, Label: ?*VARIANT, CreateTime: ?*VARIANT, ModifyTime: ?*VARIANT, RelServiceType: ?*VARIANT, RelLabel: ?*VARIANT, RelCreateTime: ?*VARIANT, RelModifyTime: ?*VARIANT, MulticastAddress: ?*VARIANT, RelMulticastAddress: ?*VARIANT, ppqinfos: ?*?*IMSMQQueueInfos3) HRESULT { return @as(*const IMSMQQuery3.VTable, @ptrCast(self.vtable)).LookupQueue(@as(*const IMSMQQuery3, @ptrCast(self)), QueueGuid, ServiceTypeGuid, Label, CreateTime, ModifyTime, RelServiceType, RelLabel, RelCreateTime, RelModifyTime, MulticastAddress, RelMulticastAddress, ppqinfos); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IMSMQQuery4_Value = Guid.initString("eba96b24-2168-11d3-898c-00e02c074f6b"); pub const IID_IMSMQQuery4 = &IID_IMSMQQuery4_Value; pub const IMSMQQuery4 = extern struct { pub const VTable = extern struct { base: IDispatch.VTable, LookupQueue_v2: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IMSMQQuery4, QueueGuid: ?*VARIANT, ServiceTypeGuid: ?*VARIANT, Label: ?*VARIANT, CreateTime: ?*VARIANT, ModifyTime: ?*VARIANT, RelServiceType: ?*VARIANT, RelLabel: ?*VARIANT, RelCreateTime: ?*VARIANT, RelModifyTime: ?*VARIANT, ppqinfos: ?*?*IMSMQQueueInfos4, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IMSMQQuery4, QueueGuid: ?*VARIANT, ServiceTypeGuid: ?*VARIANT, Label: ?*VARIANT, CreateTime: ?*VARIANT, ModifyTime: ?*VARIANT, RelServiceType: ?*VARIANT, RelLabel: ?*VARIANT, RelCreateTime: ?*VARIANT, RelModifyTime: ?*VARIANT, ppqinfos: ?*?*IMSMQQueueInfos4, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Properties: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQQuery4, ppcolProperties: ?*?*IDispatch, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQQuery4, ppcolProperties: ?*?*IDispatch, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, LookupQueue: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IMSMQQuery4, QueueGuid: ?*VARIANT, ServiceTypeGuid: ?*VARIANT, Label: ?*VARIANT, CreateTime: ?*VARIANT, ModifyTime: ?*VARIANT, RelServiceType: ?*VARIANT, RelLabel: ?*VARIANT, RelCreateTime: ?*VARIANT, RelModifyTime: ?*VARIANT, MulticastAddress: ?*VARIANT, RelMulticastAddress: ?*VARIANT, ppqinfos: ?*?*IMSMQQueueInfos4, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IMSMQQuery4, QueueGuid: ?*VARIANT, ServiceTypeGuid: ?*VARIANT, Label: ?*VARIANT, CreateTime: ?*VARIANT, ModifyTime: ?*VARIANT, RelServiceType: ?*VARIANT, RelLabel: ?*VARIANT, RelCreateTime: ?*VARIANT, RelModifyTime: ?*VARIANT, MulticastAddress: ?*VARIANT, RelMulticastAddress: ?*VARIANT, ppqinfos: ?*?*IMSMQQueueInfos4, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IDispatch.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQQuery4_LookupQueue_v2(self: *const T, QueueGuid: ?*VARIANT, ServiceTypeGuid: ?*VARIANT, Label: ?*VARIANT, CreateTime: ?*VARIANT, ModifyTime: ?*VARIANT, RelServiceType: ?*VARIANT, RelLabel: ?*VARIANT, RelCreateTime: ?*VARIANT, RelModifyTime: ?*VARIANT, ppqinfos: ?*?*IMSMQQueueInfos4) HRESULT { return @as(*const IMSMQQuery4.VTable, @ptrCast(self.vtable)).LookupQueue_v2(@as(*const IMSMQQuery4, @ptrCast(self)), QueueGuid, ServiceTypeGuid, Label, CreateTime, ModifyTime, RelServiceType, RelLabel, RelCreateTime, RelModifyTime, ppqinfos); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQQuery4_get_Properties(self: *const T, ppcolProperties: ?*?*IDispatch) HRESULT { return @as(*const IMSMQQuery4.VTable, @ptrCast(self.vtable)).get_Properties(@as(*const IMSMQQuery4, @ptrCast(self)), ppcolProperties); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQQuery4_LookupQueue(self: *const T, QueueGuid: ?*VARIANT, ServiceTypeGuid: ?*VARIANT, Label: ?*VARIANT, CreateTime: ?*VARIANT, ModifyTime: ?*VARIANT, RelServiceType: ?*VARIANT, RelLabel: ?*VARIANT, RelCreateTime: ?*VARIANT, RelModifyTime: ?*VARIANT, MulticastAddress: ?*VARIANT, RelMulticastAddress: ?*VARIANT, ppqinfos: ?*?*IMSMQQueueInfos4) HRESULT { return @as(*const IMSMQQuery4.VTable, @ptrCast(self.vtable)).LookupQueue(@as(*const IMSMQQuery4, @ptrCast(self)), QueueGuid, ServiceTypeGuid, Label, CreateTime, ModifyTime, RelServiceType, RelLabel, RelCreateTime, RelModifyTime, MulticastAddress, RelMulticastAddress, ppqinfos); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IMSMQMessage2_Value = Guid.initString("d9933be0-a567-11d2-b0f3-00e02c074f6b"); pub const IID_IMSMQMessage2 = &IID_IMSMQMessage2_Value; pub const IMSMQMessage2 = extern struct { pub const VTable = extern struct { base: IDispatch.VTable, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Class: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQMessage2, plClass: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQMessage2, plClass: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_PrivLevel: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQMessage2, plPrivLevel: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQMessage2, plPrivLevel: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_PrivLevel: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQMessage2, lPrivLevel: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQMessage2, lPrivLevel: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_AuthLevel: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQMessage2, plAuthLevel: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQMessage2, plAuthLevel: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_AuthLevel: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQMessage2, lAuthLevel: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQMessage2, lAuthLevel: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_IsAuthenticated: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQMessage2, pisAuthenticated: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQMessage2, pisAuthenticated: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Delivery: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQMessage2, plDelivery: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQMessage2, plDelivery: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_Delivery: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQMessage2, lDelivery: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQMessage2, lDelivery: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Trace: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQMessage2, plTrace: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQMessage2, plTrace: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_Trace: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQMessage2, lTrace: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQMessage2, lTrace: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Priority: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQMessage2, plPriority: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQMessage2, plPriority: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_Priority: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQMessage2, lPriority: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQMessage2, lPriority: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Journal: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQMessage2, plJournal: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQMessage2, plJournal: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_Journal: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQMessage2, lJournal: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQMessage2, lJournal: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_ResponseQueueInfo_v1: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQMessage2, ppqinfoResponse: ?*?*IMSMQQueueInfo, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQMessage2, ppqinfoResponse: ?*?*IMSMQQueueInfo, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, putref_ResponseQueueInfo_v1: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IMSMQMessage2, pqinfoResponse: ?*IMSMQQueueInfo, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IMSMQMessage2, pqinfoResponse: ?*IMSMQQueueInfo, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_AppSpecific: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQMessage2, plAppSpecific: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQMessage2, plAppSpecific: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_AppSpecific: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQMessage2, lAppSpecific: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQMessage2, lAppSpecific: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_SourceMachineGuid: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQMessage2, pbstrGuidSrcMachine: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQMessage2, pbstrGuidSrcMachine: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_BodyLength: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQMessage2, pcbBody: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQMessage2, pcbBody: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Body: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQMessage2, pvarBody: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQMessage2, pvarBody: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_Body: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQMessage2, varBody: VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQMessage2, varBody: VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_AdminQueueInfo_v1: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQMessage2, ppqinfoAdmin: ?*?*IMSMQQueueInfo, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQMessage2, ppqinfoAdmin: ?*?*IMSMQQueueInfo, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, putref_AdminQueueInfo_v1: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IMSMQMessage2, pqinfoAdmin: ?*IMSMQQueueInfo, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IMSMQMessage2, pqinfoAdmin: ?*IMSMQQueueInfo, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Id: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQMessage2, pvarMsgId: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQMessage2, pvarMsgId: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_CorrelationId: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQMessage2, pvarMsgId: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQMessage2, pvarMsgId: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_CorrelationId: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQMessage2, varMsgId: VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQMessage2, varMsgId: VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Ack: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQMessage2, plAck: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQMessage2, plAck: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_Ack: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQMessage2, lAck: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQMessage2, lAck: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Label: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQMessage2, pbstrLabel: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQMessage2, pbstrLabel: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_Label: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQMessage2, bstrLabel: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQMessage2, bstrLabel: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_MaxTimeToReachQueue: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQMessage2, plMaxTimeToReachQueue: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQMessage2, plMaxTimeToReachQueue: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_MaxTimeToReachQueue: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQMessage2, lMaxTimeToReachQueue: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQMessage2, lMaxTimeToReachQueue: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_MaxTimeToReceive: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQMessage2, plMaxTimeToReceive: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQMessage2, plMaxTimeToReceive: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_MaxTimeToReceive: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQMessage2, lMaxTimeToReceive: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQMessage2, lMaxTimeToReceive: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_HashAlgorithm: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQMessage2, plHashAlg: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQMessage2, plHashAlg: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_HashAlgorithm: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQMessage2, lHashAlg: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQMessage2, lHashAlg: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_EncryptAlgorithm: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQMessage2, plEncryptAlg: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQMessage2, plEncryptAlg: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_EncryptAlgorithm: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQMessage2, lEncryptAlg: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQMessage2, lEncryptAlg: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_SentTime: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQMessage2, pvarSentTime: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQMessage2, pvarSentTime: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_ArrivedTime: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQMessage2, plArrivedTime: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQMessage2, plArrivedTime: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_DestinationQueueInfo: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQMessage2, ppqinfoDest: ?*?*IMSMQQueueInfo2, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQMessage2, ppqinfoDest: ?*?*IMSMQQueueInfo2, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_SenderCertificate: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQMessage2, pvarSenderCert: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQMessage2, pvarSenderCert: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_SenderCertificate: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQMessage2, varSenderCert: VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQMessage2, varSenderCert: VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_SenderId: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQMessage2, pvarSenderId: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQMessage2, pvarSenderId: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_SenderIdType: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQMessage2, plSenderIdType: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQMessage2, plSenderIdType: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_SenderIdType: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQMessage2, lSenderIdType: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQMessage2, lSenderIdType: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Send: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IMSMQMessage2, DestinationQueue: ?*IMSMQQueue2, Transaction: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IMSMQMessage2, DestinationQueue: ?*IMSMQQueue2, Transaction: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, AttachCurrentSecurityContext: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IMSMQMessage2, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IMSMQMessage2, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_SenderVersion: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQMessage2, plSenderVersion: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQMessage2, plSenderVersion: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Extension: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQMessage2, pvarExtension: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQMessage2, pvarExtension: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_Extension: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQMessage2, varExtension: VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQMessage2, varExtension: VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_ConnectorTypeGuid: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQMessage2, pbstrGuidConnectorType: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQMessage2, pbstrGuidConnectorType: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_ConnectorTypeGuid: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQMessage2, bstrGuidConnectorType: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQMessage2, bstrGuidConnectorType: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_TransactionStatusQueueInfo: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQMessage2, ppqinfoXactStatus: ?*?*IMSMQQueueInfo2, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQMessage2, ppqinfoXactStatus: ?*?*IMSMQQueueInfo2, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_DestinationSymmetricKey: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQMessage2, pvarDestSymmKey: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQMessage2, pvarDestSymmKey: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_DestinationSymmetricKey: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQMessage2, varDestSymmKey: VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQMessage2, varDestSymmKey: VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Signature: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQMessage2, pvarSignature: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQMessage2, pvarSignature: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_Signature: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQMessage2, varSignature: VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQMessage2, varSignature: VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_AuthenticationProviderType: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQMessage2, plAuthProvType: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQMessage2, plAuthProvType: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_AuthenticationProviderType: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQMessage2, lAuthProvType: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQMessage2, lAuthProvType: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_AuthenticationProviderName: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQMessage2, pbstrAuthProvName: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQMessage2, pbstrAuthProvName: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_AuthenticationProviderName: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQMessage2, bstrAuthProvName: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQMessage2, bstrAuthProvName: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_SenderId: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQMessage2, varSenderId: VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQMessage2, varSenderId: VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_MsgClass: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQMessage2, plMsgClass: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQMessage2, plMsgClass: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_MsgClass: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQMessage2, lMsgClass: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQMessage2, lMsgClass: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Properties: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQMessage2, ppcolProperties: ?*?*IDispatch, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQMessage2, ppcolProperties: ?*?*IDispatch, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_TransactionId: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQMessage2, pvarXactId: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQMessage2, pvarXactId: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_IsFirstInTransaction: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQMessage2, pisFirstInXact: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQMessage2, pisFirstInXact: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_IsLastInTransaction: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQMessage2, pisLastInXact: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQMessage2, pisLastInXact: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_ResponseQueueInfo: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQMessage2, ppqinfoResponse: ?*?*IMSMQQueueInfo2, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQMessage2, ppqinfoResponse: ?*?*IMSMQQueueInfo2, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, putref_ResponseQueueInfo: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IMSMQMessage2, pqinfoResponse: ?*IMSMQQueueInfo2, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IMSMQMessage2, pqinfoResponse: ?*IMSMQQueueInfo2, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_AdminQueueInfo: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQMessage2, ppqinfoAdmin: ?*?*IMSMQQueueInfo2, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQMessage2, ppqinfoAdmin: ?*?*IMSMQQueueInfo2, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, putref_AdminQueueInfo: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IMSMQMessage2, pqinfoAdmin: ?*IMSMQQueueInfo2, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IMSMQMessage2, pqinfoAdmin: ?*IMSMQQueueInfo2, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_ReceivedAuthenticationLevel: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQMessage2, psReceivedAuthenticationLevel: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQMessage2, psReceivedAuthenticationLevel: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IDispatch.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQMessage2_get_Class(self: *const T, plClass: ?*i32) HRESULT { return @as(*const IMSMQMessage2.VTable, @ptrCast(self.vtable)).get_Class(@as(*const IMSMQMessage2, @ptrCast(self)), plClass); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQMessage2_get_PrivLevel(self: *const T, plPrivLevel: ?*i32) HRESULT { return @as(*const IMSMQMessage2.VTable, @ptrCast(self.vtable)).get_PrivLevel(@as(*const IMSMQMessage2, @ptrCast(self)), plPrivLevel); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQMessage2_put_PrivLevel(self: *const T, lPrivLevel: i32) HRESULT { return @as(*const IMSMQMessage2.VTable, @ptrCast(self.vtable)).put_PrivLevel(@as(*const IMSMQMessage2, @ptrCast(self)), lPrivLevel); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQMessage2_get_AuthLevel(self: *const T, plAuthLevel: ?*i32) HRESULT { return @as(*const IMSMQMessage2.VTable, @ptrCast(self.vtable)).get_AuthLevel(@as(*const IMSMQMessage2, @ptrCast(self)), plAuthLevel); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQMessage2_put_AuthLevel(self: *const T, lAuthLevel: i32) HRESULT { return @as(*const IMSMQMessage2.VTable, @ptrCast(self.vtable)).put_AuthLevel(@as(*const IMSMQMessage2, @ptrCast(self)), lAuthLevel); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQMessage2_get_IsAuthenticated(self: *const T, pisAuthenticated: ?*i16) HRESULT { return @as(*const IMSMQMessage2.VTable, @ptrCast(self.vtable)).get_IsAuthenticated(@as(*const IMSMQMessage2, @ptrCast(self)), pisAuthenticated); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQMessage2_get_Delivery(self: *const T, plDelivery: ?*i32) HRESULT { return @as(*const IMSMQMessage2.VTable, @ptrCast(self.vtable)).get_Delivery(@as(*const IMSMQMessage2, @ptrCast(self)), plDelivery); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQMessage2_put_Delivery(self: *const T, lDelivery: i32) HRESULT { return @as(*const IMSMQMessage2.VTable, @ptrCast(self.vtable)).put_Delivery(@as(*const IMSMQMessage2, @ptrCast(self)), lDelivery); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQMessage2_get_Trace(self: *const T, plTrace: ?*i32) HRESULT { return @as(*const IMSMQMessage2.VTable, @ptrCast(self.vtable)).get_Trace(@as(*const IMSMQMessage2, @ptrCast(self)), plTrace); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQMessage2_put_Trace(self: *const T, lTrace: i32) HRESULT { return @as(*const IMSMQMessage2.VTable, @ptrCast(self.vtable)).put_Trace(@as(*const IMSMQMessage2, @ptrCast(self)), lTrace); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQMessage2_get_Priority(self: *const T, plPriority: ?*i32) HRESULT { return @as(*const IMSMQMessage2.VTable, @ptrCast(self.vtable)).get_Priority(@as(*const IMSMQMessage2, @ptrCast(self)), plPriority); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQMessage2_put_Priority(self: *const T, lPriority: i32) HRESULT { return @as(*const IMSMQMessage2.VTable, @ptrCast(self.vtable)).put_Priority(@as(*const IMSMQMessage2, @ptrCast(self)), lPriority); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQMessage2_get_Journal(self: *const T, plJournal: ?*i32) HRESULT { return @as(*const IMSMQMessage2.VTable, @ptrCast(self.vtable)).get_Journal(@as(*const IMSMQMessage2, @ptrCast(self)), plJournal); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQMessage2_put_Journal(self: *const T, lJournal: i32) HRESULT { return @as(*const IMSMQMessage2.VTable, @ptrCast(self.vtable)).put_Journal(@as(*const IMSMQMessage2, @ptrCast(self)), lJournal); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQMessage2_get_ResponseQueueInfo_v1(self: *const T, ppqinfoResponse: ?*?*IMSMQQueueInfo) HRESULT { return @as(*const IMSMQMessage2.VTable, @ptrCast(self.vtable)).get_ResponseQueueInfo_v1(@as(*const IMSMQMessage2, @ptrCast(self)), ppqinfoResponse); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQMessage2_putref_ResponseQueueInfo_v1(self: *const T, pqinfoResponse: ?*IMSMQQueueInfo) HRESULT { return @as(*const IMSMQMessage2.VTable, @ptrCast(self.vtable)).putref_ResponseQueueInfo_v1(@as(*const IMSMQMessage2, @ptrCast(self)), pqinfoResponse); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQMessage2_get_AppSpecific(self: *const T, plAppSpecific: ?*i32) HRESULT { return @as(*const IMSMQMessage2.VTable, @ptrCast(self.vtable)).get_AppSpecific(@as(*const IMSMQMessage2, @ptrCast(self)), plAppSpecific); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQMessage2_put_AppSpecific(self: *const T, lAppSpecific: i32) HRESULT { return @as(*const IMSMQMessage2.VTable, @ptrCast(self.vtable)).put_AppSpecific(@as(*const IMSMQMessage2, @ptrCast(self)), lAppSpecific); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQMessage2_get_SourceMachineGuid(self: *const T, pbstrGuidSrcMachine: ?*?BSTR) HRESULT { return @as(*const IMSMQMessage2.VTable, @ptrCast(self.vtable)).get_SourceMachineGuid(@as(*const IMSMQMessage2, @ptrCast(self)), pbstrGuidSrcMachine); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQMessage2_get_BodyLength(self: *const T, pcbBody: ?*i32) HRESULT { return @as(*const IMSMQMessage2.VTable, @ptrCast(self.vtable)).get_BodyLength(@as(*const IMSMQMessage2, @ptrCast(self)), pcbBody); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQMessage2_get_Body(self: *const T, pvarBody: ?*VARIANT) HRESULT { return @as(*const IMSMQMessage2.VTable, @ptrCast(self.vtable)).get_Body(@as(*const IMSMQMessage2, @ptrCast(self)), pvarBody); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQMessage2_put_Body(self: *const T, varBody: VARIANT) HRESULT { return @as(*const IMSMQMessage2.VTable, @ptrCast(self.vtable)).put_Body(@as(*const IMSMQMessage2, @ptrCast(self)), varBody); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQMessage2_get_AdminQueueInfo_v1(self: *const T, ppqinfoAdmin: ?*?*IMSMQQueueInfo) HRESULT { return @as(*const IMSMQMessage2.VTable, @ptrCast(self.vtable)).get_AdminQueueInfo_v1(@as(*const IMSMQMessage2, @ptrCast(self)), ppqinfoAdmin); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQMessage2_putref_AdminQueueInfo_v1(self: *const T, pqinfoAdmin: ?*IMSMQQueueInfo) HRESULT { return @as(*const IMSMQMessage2.VTable, @ptrCast(self.vtable)).putref_AdminQueueInfo_v1(@as(*const IMSMQMessage2, @ptrCast(self)), pqinfoAdmin); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQMessage2_get_Id(self: *const T, pvarMsgId: ?*VARIANT) HRESULT { return @as(*const IMSMQMessage2.VTable, @ptrCast(self.vtable)).get_Id(@as(*const IMSMQMessage2, @ptrCast(self)), pvarMsgId); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQMessage2_get_CorrelationId(self: *const T, pvarMsgId: ?*VARIANT) HRESULT { return @as(*const IMSMQMessage2.VTable, @ptrCast(self.vtable)).get_CorrelationId(@as(*const IMSMQMessage2, @ptrCast(self)), pvarMsgId); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQMessage2_put_CorrelationId(self: *const T, varMsgId: VARIANT) HRESULT { return @as(*const IMSMQMessage2.VTable, @ptrCast(self.vtable)).put_CorrelationId(@as(*const IMSMQMessage2, @ptrCast(self)), varMsgId); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQMessage2_get_Ack(self: *const T, plAck: ?*i32) HRESULT { return @as(*const IMSMQMessage2.VTable, @ptrCast(self.vtable)).get_Ack(@as(*const IMSMQMessage2, @ptrCast(self)), plAck); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQMessage2_put_Ack(self: *const T, lAck: i32) HRESULT { return @as(*const IMSMQMessage2.VTable, @ptrCast(self.vtable)).put_Ack(@as(*const IMSMQMessage2, @ptrCast(self)), lAck); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQMessage2_get_Label(self: *const T, pbstrLabel: ?*?BSTR) HRESULT { return @as(*const IMSMQMessage2.VTable, @ptrCast(self.vtable)).get_Label(@as(*const IMSMQMessage2, @ptrCast(self)), pbstrLabel); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQMessage2_put_Label(self: *const T, bstrLabel: ?BSTR) HRESULT { return @as(*const IMSMQMessage2.VTable, @ptrCast(self.vtable)).put_Label(@as(*const IMSMQMessage2, @ptrCast(self)), bstrLabel); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQMessage2_get_MaxTimeToReachQueue(self: *const T, plMaxTimeToReachQueue: ?*i32) HRESULT { return @as(*const IMSMQMessage2.VTable, @ptrCast(self.vtable)).get_MaxTimeToReachQueue(@as(*const IMSMQMessage2, @ptrCast(self)), plMaxTimeToReachQueue); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQMessage2_put_MaxTimeToReachQueue(self: *const T, lMaxTimeToReachQueue: i32) HRESULT { return @as(*const IMSMQMessage2.VTable, @ptrCast(self.vtable)).put_MaxTimeToReachQueue(@as(*const IMSMQMessage2, @ptrCast(self)), lMaxTimeToReachQueue); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQMessage2_get_MaxTimeToReceive(self: *const T, plMaxTimeToReceive: ?*i32) HRESULT { return @as(*const IMSMQMessage2.VTable, @ptrCast(self.vtable)).get_MaxTimeToReceive(@as(*const IMSMQMessage2, @ptrCast(self)), plMaxTimeToReceive); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQMessage2_put_MaxTimeToReceive(self: *const T, lMaxTimeToReceive: i32) HRESULT { return @as(*const IMSMQMessage2.VTable, @ptrCast(self.vtable)).put_MaxTimeToReceive(@as(*const IMSMQMessage2, @ptrCast(self)), lMaxTimeToReceive); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQMessage2_get_HashAlgorithm(self: *const T, plHashAlg: ?*i32) HRESULT { return @as(*const IMSMQMessage2.VTable, @ptrCast(self.vtable)).get_HashAlgorithm(@as(*const IMSMQMessage2, @ptrCast(self)), plHashAlg); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQMessage2_put_HashAlgorithm(self: *const T, lHashAlg: i32) HRESULT { return @as(*const IMSMQMessage2.VTable, @ptrCast(self.vtable)).put_HashAlgorithm(@as(*const IMSMQMessage2, @ptrCast(self)), lHashAlg); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQMessage2_get_EncryptAlgorithm(self: *const T, plEncryptAlg: ?*i32) HRESULT { return @as(*const IMSMQMessage2.VTable, @ptrCast(self.vtable)).get_EncryptAlgorithm(@as(*const IMSMQMessage2, @ptrCast(self)), plEncryptAlg); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQMessage2_put_EncryptAlgorithm(self: *const T, lEncryptAlg: i32) HRESULT { return @as(*const IMSMQMessage2.VTable, @ptrCast(self.vtable)).put_EncryptAlgorithm(@as(*const IMSMQMessage2, @ptrCast(self)), lEncryptAlg); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQMessage2_get_SentTime(self: *const T, pvarSentTime: ?*VARIANT) HRESULT { return @as(*const IMSMQMessage2.VTable, @ptrCast(self.vtable)).get_SentTime(@as(*const IMSMQMessage2, @ptrCast(self)), pvarSentTime); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQMessage2_get_ArrivedTime(self: *const T, plArrivedTime: ?*VARIANT) HRESULT { return @as(*const IMSMQMessage2.VTable, @ptrCast(self.vtable)).get_ArrivedTime(@as(*const IMSMQMessage2, @ptrCast(self)), plArrivedTime); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQMessage2_get_DestinationQueueInfo(self: *const T, ppqinfoDest: ?*?*IMSMQQueueInfo2) HRESULT { return @as(*const IMSMQMessage2.VTable, @ptrCast(self.vtable)).get_DestinationQueueInfo(@as(*const IMSMQMessage2, @ptrCast(self)), ppqinfoDest); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQMessage2_get_SenderCertificate(self: *const T, pvarSenderCert: ?*VARIANT) HRESULT { return @as(*const IMSMQMessage2.VTable, @ptrCast(self.vtable)).get_SenderCertificate(@as(*const IMSMQMessage2, @ptrCast(self)), pvarSenderCert); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQMessage2_put_SenderCertificate(self: *const T, varSenderCert: VARIANT) HRESULT { return @as(*const IMSMQMessage2.VTable, @ptrCast(self.vtable)).put_SenderCertificate(@as(*const IMSMQMessage2, @ptrCast(self)), varSenderCert); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQMessage2_get_SenderId(self: *const T, pvarSenderId: ?*VARIANT) HRESULT { return @as(*const IMSMQMessage2.VTable, @ptrCast(self.vtable)).get_SenderId(@as(*const IMSMQMessage2, @ptrCast(self)), pvarSenderId); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQMessage2_get_SenderIdType(self: *const T, plSenderIdType: ?*i32) HRESULT { return @as(*const IMSMQMessage2.VTable, @ptrCast(self.vtable)).get_SenderIdType(@as(*const IMSMQMessage2, @ptrCast(self)), plSenderIdType); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQMessage2_put_SenderIdType(self: *const T, lSenderIdType: i32) HRESULT { return @as(*const IMSMQMessage2.VTable, @ptrCast(self.vtable)).put_SenderIdType(@as(*const IMSMQMessage2, @ptrCast(self)), lSenderIdType); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQMessage2_Send(self: *const T, DestinationQueue: ?*IMSMQQueue2, Transaction: ?*VARIANT) HRESULT { return @as(*const IMSMQMessage2.VTable, @ptrCast(self.vtable)).Send(@as(*const IMSMQMessage2, @ptrCast(self)), DestinationQueue, Transaction); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQMessage2_AttachCurrentSecurityContext(self: *const T) HRESULT { return @as(*const IMSMQMessage2.VTable, @ptrCast(self.vtable)).AttachCurrentSecurityContext(@as(*const IMSMQMessage2, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQMessage2_get_SenderVersion(self: *const T, plSenderVersion: ?*i32) HRESULT { return @as(*const IMSMQMessage2.VTable, @ptrCast(self.vtable)).get_SenderVersion(@as(*const IMSMQMessage2, @ptrCast(self)), plSenderVersion); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQMessage2_get_Extension(self: *const T, pvarExtension: ?*VARIANT) HRESULT { return @as(*const IMSMQMessage2.VTable, @ptrCast(self.vtable)).get_Extension(@as(*const IMSMQMessage2, @ptrCast(self)), pvarExtension); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQMessage2_put_Extension(self: *const T, varExtension: VARIANT) HRESULT { return @as(*const IMSMQMessage2.VTable, @ptrCast(self.vtable)).put_Extension(@as(*const IMSMQMessage2, @ptrCast(self)), varExtension); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQMessage2_get_ConnectorTypeGuid(self: *const T, pbstrGuidConnectorType: ?*?BSTR) HRESULT { return @as(*const IMSMQMessage2.VTable, @ptrCast(self.vtable)).get_ConnectorTypeGuid(@as(*const IMSMQMessage2, @ptrCast(self)), pbstrGuidConnectorType); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQMessage2_put_ConnectorTypeGuid(self: *const T, bstrGuidConnectorType: ?BSTR) HRESULT { return @as(*const IMSMQMessage2.VTable, @ptrCast(self.vtable)).put_ConnectorTypeGuid(@as(*const IMSMQMessage2, @ptrCast(self)), bstrGuidConnectorType); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQMessage2_get_TransactionStatusQueueInfo(self: *const T, ppqinfoXactStatus: ?*?*IMSMQQueueInfo2) HRESULT { return @as(*const IMSMQMessage2.VTable, @ptrCast(self.vtable)).get_TransactionStatusQueueInfo(@as(*const IMSMQMessage2, @ptrCast(self)), ppqinfoXactStatus); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQMessage2_get_DestinationSymmetricKey(self: *const T, pvarDestSymmKey: ?*VARIANT) HRESULT { return @as(*const IMSMQMessage2.VTable, @ptrCast(self.vtable)).get_DestinationSymmetricKey(@as(*const IMSMQMessage2, @ptrCast(self)), pvarDestSymmKey); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQMessage2_put_DestinationSymmetricKey(self: *const T, varDestSymmKey: VARIANT) HRESULT { return @as(*const IMSMQMessage2.VTable, @ptrCast(self.vtable)).put_DestinationSymmetricKey(@as(*const IMSMQMessage2, @ptrCast(self)), varDestSymmKey); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQMessage2_get_Signature(self: *const T, pvarSignature: ?*VARIANT) HRESULT { return @as(*const IMSMQMessage2.VTable, @ptrCast(self.vtable)).get_Signature(@as(*const IMSMQMessage2, @ptrCast(self)), pvarSignature); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQMessage2_put_Signature(self: *const T, varSignature: VARIANT) HRESULT { return @as(*const IMSMQMessage2.VTable, @ptrCast(self.vtable)).put_Signature(@as(*const IMSMQMessage2, @ptrCast(self)), varSignature); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQMessage2_get_AuthenticationProviderType(self: *const T, plAuthProvType: ?*i32) HRESULT { return @as(*const IMSMQMessage2.VTable, @ptrCast(self.vtable)).get_AuthenticationProviderType(@as(*const IMSMQMessage2, @ptrCast(self)), plAuthProvType); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQMessage2_put_AuthenticationProviderType(self: *const T, lAuthProvType: i32) HRESULT { return @as(*const IMSMQMessage2.VTable, @ptrCast(self.vtable)).put_AuthenticationProviderType(@as(*const IMSMQMessage2, @ptrCast(self)), lAuthProvType); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQMessage2_get_AuthenticationProviderName(self: *const T, pbstrAuthProvName: ?*?BSTR) HRESULT { return @as(*const IMSMQMessage2.VTable, @ptrCast(self.vtable)).get_AuthenticationProviderName(@as(*const IMSMQMessage2, @ptrCast(self)), pbstrAuthProvName); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQMessage2_put_AuthenticationProviderName(self: *const T, bstrAuthProvName: ?BSTR) HRESULT { return @as(*const IMSMQMessage2.VTable, @ptrCast(self.vtable)).put_AuthenticationProviderName(@as(*const IMSMQMessage2, @ptrCast(self)), bstrAuthProvName); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQMessage2_put_SenderId(self: *const T, varSenderId: VARIANT) HRESULT { return @as(*const IMSMQMessage2.VTable, @ptrCast(self.vtable)).put_SenderId(@as(*const IMSMQMessage2, @ptrCast(self)), varSenderId); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQMessage2_get_MsgClass(self: *const T, plMsgClass: ?*i32) HRESULT { return @as(*const IMSMQMessage2.VTable, @ptrCast(self.vtable)).get_MsgClass(@as(*const IMSMQMessage2, @ptrCast(self)), plMsgClass); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQMessage2_put_MsgClass(self: *const T, lMsgClass: i32) HRESULT { return @as(*const IMSMQMessage2.VTable, @ptrCast(self.vtable)).put_MsgClass(@as(*const IMSMQMessage2, @ptrCast(self)), lMsgClass); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQMessage2_get_Properties(self: *const T, ppcolProperties: ?*?*IDispatch) HRESULT { return @as(*const IMSMQMessage2.VTable, @ptrCast(self.vtable)).get_Properties(@as(*const IMSMQMessage2, @ptrCast(self)), ppcolProperties); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQMessage2_get_TransactionId(self: *const T, pvarXactId: ?*VARIANT) HRESULT { return @as(*const IMSMQMessage2.VTable, @ptrCast(self.vtable)).get_TransactionId(@as(*const IMSMQMessage2, @ptrCast(self)), pvarXactId); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQMessage2_get_IsFirstInTransaction(self: *const T, pisFirstInXact: ?*i16) HRESULT { return @as(*const IMSMQMessage2.VTable, @ptrCast(self.vtable)).get_IsFirstInTransaction(@as(*const IMSMQMessage2, @ptrCast(self)), pisFirstInXact); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQMessage2_get_IsLastInTransaction(self: *const T, pisLastInXact: ?*i16) HRESULT { return @as(*const IMSMQMessage2.VTable, @ptrCast(self.vtable)).get_IsLastInTransaction(@as(*const IMSMQMessage2, @ptrCast(self)), pisLastInXact); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQMessage2_get_ResponseQueueInfo(self: *const T, ppqinfoResponse: ?*?*IMSMQQueueInfo2) HRESULT { return @as(*const IMSMQMessage2.VTable, @ptrCast(self.vtable)).get_ResponseQueueInfo(@as(*const IMSMQMessage2, @ptrCast(self)), ppqinfoResponse); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQMessage2_putref_ResponseQueueInfo(self: *const T, pqinfoResponse: ?*IMSMQQueueInfo2) HRESULT { return @as(*const IMSMQMessage2.VTable, @ptrCast(self.vtable)).putref_ResponseQueueInfo(@as(*const IMSMQMessage2, @ptrCast(self)), pqinfoResponse); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQMessage2_get_AdminQueueInfo(self: *const T, ppqinfoAdmin: ?*?*IMSMQQueueInfo2) HRESULT { return @as(*const IMSMQMessage2.VTable, @ptrCast(self.vtable)).get_AdminQueueInfo(@as(*const IMSMQMessage2, @ptrCast(self)), ppqinfoAdmin); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQMessage2_putref_AdminQueueInfo(self: *const T, pqinfoAdmin: ?*IMSMQQueueInfo2) HRESULT { return @as(*const IMSMQMessage2.VTable, @ptrCast(self.vtable)).putref_AdminQueueInfo(@as(*const IMSMQMessage2, @ptrCast(self)), pqinfoAdmin); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQMessage2_get_ReceivedAuthenticationLevel(self: *const T, psReceivedAuthenticationLevel: ?*i16) HRESULT { return @as(*const IMSMQMessage2.VTable, @ptrCast(self.vtable)).get_ReceivedAuthenticationLevel(@as(*const IMSMQMessage2, @ptrCast(self)), psReceivedAuthenticationLevel); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IMSMQMessage3_Value = Guid.initString("eba96b1a-2168-11d3-898c-00e02c074f6b"); pub const IID_IMSMQMessage3 = &IID_IMSMQMessage3_Value; pub const IMSMQMessage3 = extern struct { pub const VTable = extern struct { base: IDispatch.VTable, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Class: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQMessage3, plClass: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQMessage3, plClass: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_PrivLevel: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQMessage3, plPrivLevel: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQMessage3, plPrivLevel: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_PrivLevel: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQMessage3, lPrivLevel: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQMessage3, lPrivLevel: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_AuthLevel: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQMessage3, plAuthLevel: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQMessage3, plAuthLevel: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_AuthLevel: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQMessage3, lAuthLevel: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQMessage3, lAuthLevel: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_IsAuthenticated: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQMessage3, pisAuthenticated: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQMessage3, pisAuthenticated: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Delivery: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQMessage3, plDelivery: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQMessage3, plDelivery: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_Delivery: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQMessage3, lDelivery: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQMessage3, lDelivery: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Trace: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQMessage3, plTrace: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQMessage3, plTrace: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_Trace: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQMessage3, lTrace: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQMessage3, lTrace: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Priority: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQMessage3, plPriority: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQMessage3, plPriority: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_Priority: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQMessage3, lPriority: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQMessage3, lPriority: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Journal: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQMessage3, plJournal: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQMessage3, plJournal: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_Journal: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQMessage3, lJournal: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQMessage3, lJournal: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_ResponseQueueInfo_v1: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQMessage3, ppqinfoResponse: ?*?*IMSMQQueueInfo, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQMessage3, ppqinfoResponse: ?*?*IMSMQQueueInfo, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, putref_ResponseQueueInfo_v1: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IMSMQMessage3, pqinfoResponse: ?*IMSMQQueueInfo, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IMSMQMessage3, pqinfoResponse: ?*IMSMQQueueInfo, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_AppSpecific: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQMessage3, plAppSpecific: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQMessage3, plAppSpecific: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_AppSpecific: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQMessage3, lAppSpecific: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQMessage3, lAppSpecific: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_SourceMachineGuid: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQMessage3, pbstrGuidSrcMachine: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQMessage3, pbstrGuidSrcMachine: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_BodyLength: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQMessage3, pcbBody: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQMessage3, pcbBody: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Body: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQMessage3, pvarBody: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQMessage3, pvarBody: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_Body: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQMessage3, varBody: VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQMessage3, varBody: VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_AdminQueueInfo_v1: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQMessage3, ppqinfoAdmin: ?*?*IMSMQQueueInfo, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQMessage3, ppqinfoAdmin: ?*?*IMSMQQueueInfo, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, putref_AdminQueueInfo_v1: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IMSMQMessage3, pqinfoAdmin: ?*IMSMQQueueInfo, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IMSMQMessage3, pqinfoAdmin: ?*IMSMQQueueInfo, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Id: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQMessage3, pvarMsgId: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQMessage3, pvarMsgId: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_CorrelationId: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQMessage3, pvarMsgId: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQMessage3, pvarMsgId: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_CorrelationId: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQMessage3, varMsgId: VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQMessage3, varMsgId: VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Ack: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQMessage3, plAck: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQMessage3, plAck: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_Ack: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQMessage3, lAck: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQMessage3, lAck: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Label: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQMessage3, pbstrLabel: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQMessage3, pbstrLabel: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_Label: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQMessage3, bstrLabel: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQMessage3, bstrLabel: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_MaxTimeToReachQueue: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQMessage3, plMaxTimeToReachQueue: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQMessage3, plMaxTimeToReachQueue: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_MaxTimeToReachQueue: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQMessage3, lMaxTimeToReachQueue: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQMessage3, lMaxTimeToReachQueue: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_MaxTimeToReceive: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQMessage3, plMaxTimeToReceive: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQMessage3, plMaxTimeToReceive: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_MaxTimeToReceive: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQMessage3, lMaxTimeToReceive: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQMessage3, lMaxTimeToReceive: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_HashAlgorithm: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQMessage3, plHashAlg: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQMessage3, plHashAlg: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_HashAlgorithm: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQMessage3, lHashAlg: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQMessage3, lHashAlg: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_EncryptAlgorithm: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQMessage3, plEncryptAlg: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQMessage3, plEncryptAlg: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_EncryptAlgorithm: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQMessage3, lEncryptAlg: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQMessage3, lEncryptAlg: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_SentTime: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQMessage3, pvarSentTime: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQMessage3, pvarSentTime: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_ArrivedTime: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQMessage3, plArrivedTime: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQMessage3, plArrivedTime: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_DestinationQueueInfo: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQMessage3, ppqinfoDest: ?*?*IMSMQQueueInfo3, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQMessage3, ppqinfoDest: ?*?*IMSMQQueueInfo3, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_SenderCertificate: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQMessage3, pvarSenderCert: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQMessage3, pvarSenderCert: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_SenderCertificate: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQMessage3, varSenderCert: VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQMessage3, varSenderCert: VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_SenderId: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQMessage3, pvarSenderId: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQMessage3, pvarSenderId: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_SenderIdType: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQMessage3, plSenderIdType: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQMessage3, plSenderIdType: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_SenderIdType: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQMessage3, lSenderIdType: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQMessage3, lSenderIdType: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Send: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IMSMQMessage3, DestinationQueue: ?*IDispatch, Transaction: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IMSMQMessage3, DestinationQueue: ?*IDispatch, Transaction: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, AttachCurrentSecurityContext: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IMSMQMessage3, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IMSMQMessage3, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_SenderVersion: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQMessage3, plSenderVersion: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQMessage3, plSenderVersion: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Extension: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQMessage3, pvarExtension: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQMessage3, pvarExtension: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_Extension: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQMessage3, varExtension: VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQMessage3, varExtension: VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_ConnectorTypeGuid: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQMessage3, pbstrGuidConnectorType: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQMessage3, pbstrGuidConnectorType: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_ConnectorTypeGuid: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQMessage3, bstrGuidConnectorType: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQMessage3, bstrGuidConnectorType: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_TransactionStatusQueueInfo: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQMessage3, ppqinfoXactStatus: ?*?*IMSMQQueueInfo3, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQMessage3, ppqinfoXactStatus: ?*?*IMSMQQueueInfo3, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_DestinationSymmetricKey: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQMessage3, pvarDestSymmKey: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQMessage3, pvarDestSymmKey: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_DestinationSymmetricKey: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQMessage3, varDestSymmKey: VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQMessage3, varDestSymmKey: VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Signature: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQMessage3, pvarSignature: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQMessage3, pvarSignature: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_Signature: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQMessage3, varSignature: VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQMessage3, varSignature: VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_AuthenticationProviderType: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQMessage3, plAuthProvType: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQMessage3, plAuthProvType: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_AuthenticationProviderType: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQMessage3, lAuthProvType: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQMessage3, lAuthProvType: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_AuthenticationProviderName: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQMessage3, pbstrAuthProvName: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQMessage3, pbstrAuthProvName: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_AuthenticationProviderName: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQMessage3, bstrAuthProvName: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQMessage3, bstrAuthProvName: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_SenderId: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQMessage3, varSenderId: VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQMessage3, varSenderId: VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_MsgClass: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQMessage3, plMsgClass: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQMessage3, plMsgClass: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_MsgClass: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQMessage3, lMsgClass: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQMessage3, lMsgClass: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Properties: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQMessage3, ppcolProperties: ?*?*IDispatch, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQMessage3, ppcolProperties: ?*?*IDispatch, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_TransactionId: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQMessage3, pvarXactId: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQMessage3, pvarXactId: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_IsFirstInTransaction: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQMessage3, pisFirstInXact: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQMessage3, pisFirstInXact: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_IsLastInTransaction: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQMessage3, pisLastInXact: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQMessage3, pisLastInXact: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_ResponseQueueInfo_v2: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQMessage3, ppqinfoResponse: ?*?*IMSMQQueueInfo2, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQMessage3, ppqinfoResponse: ?*?*IMSMQQueueInfo2, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, putref_ResponseQueueInfo_v2: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IMSMQMessage3, pqinfoResponse: ?*IMSMQQueueInfo2, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IMSMQMessage3, pqinfoResponse: ?*IMSMQQueueInfo2, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_AdminQueueInfo_v2: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQMessage3, ppqinfoAdmin: ?*?*IMSMQQueueInfo2, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQMessage3, ppqinfoAdmin: ?*?*IMSMQQueueInfo2, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, putref_AdminQueueInfo_v2: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IMSMQMessage3, pqinfoAdmin: ?*IMSMQQueueInfo2, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IMSMQMessage3, pqinfoAdmin: ?*IMSMQQueueInfo2, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_ReceivedAuthenticationLevel: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQMessage3, psReceivedAuthenticationLevel: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQMessage3, psReceivedAuthenticationLevel: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_ResponseQueueInfo: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQMessage3, ppqinfoResponse: ?*?*IMSMQQueueInfo3, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQMessage3, ppqinfoResponse: ?*?*IMSMQQueueInfo3, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, putref_ResponseQueueInfo: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IMSMQMessage3, pqinfoResponse: ?*IMSMQQueueInfo3, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IMSMQMessage3, pqinfoResponse: ?*IMSMQQueueInfo3, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_AdminQueueInfo: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQMessage3, ppqinfoAdmin: ?*?*IMSMQQueueInfo3, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQMessage3, ppqinfoAdmin: ?*?*IMSMQQueueInfo3, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, putref_AdminQueueInfo: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IMSMQMessage3, pqinfoAdmin: ?*IMSMQQueueInfo3, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IMSMQMessage3, pqinfoAdmin: ?*IMSMQQueueInfo3, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_ResponseDestination: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQMessage3, ppdestResponse: ?*?*IDispatch, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQMessage3, ppdestResponse: ?*?*IDispatch, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, putref_ResponseDestination: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IMSMQMessage3, pdestResponse: ?*IDispatch, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IMSMQMessage3, pdestResponse: ?*IDispatch, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Destination: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQMessage3, ppdestDestination: ?*?*IDispatch, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQMessage3, ppdestDestination: ?*?*IDispatch, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_LookupId: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQMessage3, pvarLookupId: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQMessage3, pvarLookupId: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_IsAuthenticated2: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQMessage3, pisAuthenticated: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQMessage3, pisAuthenticated: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_IsFirstInTransaction2: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQMessage3, pisFirstInXact: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQMessage3, pisFirstInXact: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_IsLastInTransaction2: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQMessage3, pisLastInXact: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQMessage3, pisLastInXact: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, AttachCurrentSecurityContext2: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IMSMQMessage3, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IMSMQMessage3, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_SoapEnvelope: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQMessage3, pbstrSoapEnvelope: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQMessage3, pbstrSoapEnvelope: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_CompoundMessage: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQMessage3, pvarCompoundMessage: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQMessage3, pvarCompoundMessage: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_SoapHeader: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQMessage3, bstrSoapHeader: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQMessage3, bstrSoapHeader: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_SoapBody: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQMessage3, bstrSoapBody: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQMessage3, bstrSoapBody: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IDispatch.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQMessage3_get_Class(self: *const T, plClass: ?*i32) HRESULT { return @as(*const IMSMQMessage3.VTable, @ptrCast(self.vtable)).get_Class(@as(*const IMSMQMessage3, @ptrCast(self)), plClass); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQMessage3_get_PrivLevel(self: *const T, plPrivLevel: ?*i32) HRESULT { return @as(*const IMSMQMessage3.VTable, @ptrCast(self.vtable)).get_PrivLevel(@as(*const IMSMQMessage3, @ptrCast(self)), plPrivLevel); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQMessage3_put_PrivLevel(self: *const T, lPrivLevel: i32) HRESULT { return @as(*const IMSMQMessage3.VTable, @ptrCast(self.vtable)).put_PrivLevel(@as(*const IMSMQMessage3, @ptrCast(self)), lPrivLevel); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQMessage3_get_AuthLevel(self: *const T, plAuthLevel: ?*i32) HRESULT { return @as(*const IMSMQMessage3.VTable, @ptrCast(self.vtable)).get_AuthLevel(@as(*const IMSMQMessage3, @ptrCast(self)), plAuthLevel); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQMessage3_put_AuthLevel(self: *const T, lAuthLevel: i32) HRESULT { return @as(*const IMSMQMessage3.VTable, @ptrCast(self.vtable)).put_AuthLevel(@as(*const IMSMQMessage3, @ptrCast(self)), lAuthLevel); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQMessage3_get_IsAuthenticated(self: *const T, pisAuthenticated: ?*i16) HRESULT { return @as(*const IMSMQMessage3.VTable, @ptrCast(self.vtable)).get_IsAuthenticated(@as(*const IMSMQMessage3, @ptrCast(self)), pisAuthenticated); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQMessage3_get_Delivery(self: *const T, plDelivery: ?*i32) HRESULT { return @as(*const IMSMQMessage3.VTable, @ptrCast(self.vtable)).get_Delivery(@as(*const IMSMQMessage3, @ptrCast(self)), plDelivery); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQMessage3_put_Delivery(self: *const T, lDelivery: i32) HRESULT { return @as(*const IMSMQMessage3.VTable, @ptrCast(self.vtable)).put_Delivery(@as(*const IMSMQMessage3, @ptrCast(self)), lDelivery); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQMessage3_get_Trace(self: *const T, plTrace: ?*i32) HRESULT { return @as(*const IMSMQMessage3.VTable, @ptrCast(self.vtable)).get_Trace(@as(*const IMSMQMessage3, @ptrCast(self)), plTrace); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQMessage3_put_Trace(self: *const T, lTrace: i32) HRESULT { return @as(*const IMSMQMessage3.VTable, @ptrCast(self.vtable)).put_Trace(@as(*const IMSMQMessage3, @ptrCast(self)), lTrace); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQMessage3_get_Priority(self: *const T, plPriority: ?*i32) HRESULT { return @as(*const IMSMQMessage3.VTable, @ptrCast(self.vtable)).get_Priority(@as(*const IMSMQMessage3, @ptrCast(self)), plPriority); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQMessage3_put_Priority(self: *const T, lPriority: i32) HRESULT { return @as(*const IMSMQMessage3.VTable, @ptrCast(self.vtable)).put_Priority(@as(*const IMSMQMessage3, @ptrCast(self)), lPriority); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQMessage3_get_Journal(self: *const T, plJournal: ?*i32) HRESULT { return @as(*const IMSMQMessage3.VTable, @ptrCast(self.vtable)).get_Journal(@as(*const IMSMQMessage3, @ptrCast(self)), plJournal); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQMessage3_put_Journal(self: *const T, lJournal: i32) HRESULT { return @as(*const IMSMQMessage3.VTable, @ptrCast(self.vtable)).put_Journal(@as(*const IMSMQMessage3, @ptrCast(self)), lJournal); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQMessage3_get_ResponseQueueInfo_v1(self: *const T, ppqinfoResponse: ?*?*IMSMQQueueInfo) HRESULT { return @as(*const IMSMQMessage3.VTable, @ptrCast(self.vtable)).get_ResponseQueueInfo_v1(@as(*const IMSMQMessage3, @ptrCast(self)), ppqinfoResponse); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQMessage3_putref_ResponseQueueInfo_v1(self: *const T, pqinfoResponse: ?*IMSMQQueueInfo) HRESULT { return @as(*const IMSMQMessage3.VTable, @ptrCast(self.vtable)).putref_ResponseQueueInfo_v1(@as(*const IMSMQMessage3, @ptrCast(self)), pqinfoResponse); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQMessage3_get_AppSpecific(self: *const T, plAppSpecific: ?*i32) HRESULT { return @as(*const IMSMQMessage3.VTable, @ptrCast(self.vtable)).get_AppSpecific(@as(*const IMSMQMessage3, @ptrCast(self)), plAppSpecific); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQMessage3_put_AppSpecific(self: *const T, lAppSpecific: i32) HRESULT { return @as(*const IMSMQMessage3.VTable, @ptrCast(self.vtable)).put_AppSpecific(@as(*const IMSMQMessage3, @ptrCast(self)), lAppSpecific); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQMessage3_get_SourceMachineGuid(self: *const T, pbstrGuidSrcMachine: ?*?BSTR) HRESULT { return @as(*const IMSMQMessage3.VTable, @ptrCast(self.vtable)).get_SourceMachineGuid(@as(*const IMSMQMessage3, @ptrCast(self)), pbstrGuidSrcMachine); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQMessage3_get_BodyLength(self: *const T, pcbBody: ?*i32) HRESULT { return @as(*const IMSMQMessage3.VTable, @ptrCast(self.vtable)).get_BodyLength(@as(*const IMSMQMessage3, @ptrCast(self)), pcbBody); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQMessage3_get_Body(self: *const T, pvarBody: ?*VARIANT) HRESULT { return @as(*const IMSMQMessage3.VTable, @ptrCast(self.vtable)).get_Body(@as(*const IMSMQMessage3, @ptrCast(self)), pvarBody); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQMessage3_put_Body(self: *const T, varBody: VARIANT) HRESULT { return @as(*const IMSMQMessage3.VTable, @ptrCast(self.vtable)).put_Body(@as(*const IMSMQMessage3, @ptrCast(self)), varBody); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQMessage3_get_AdminQueueInfo_v1(self: *const T, ppqinfoAdmin: ?*?*IMSMQQueueInfo) HRESULT { return @as(*const IMSMQMessage3.VTable, @ptrCast(self.vtable)).get_AdminQueueInfo_v1(@as(*const IMSMQMessage3, @ptrCast(self)), ppqinfoAdmin); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQMessage3_putref_AdminQueueInfo_v1(self: *const T, pqinfoAdmin: ?*IMSMQQueueInfo) HRESULT { return @as(*const IMSMQMessage3.VTable, @ptrCast(self.vtable)).putref_AdminQueueInfo_v1(@as(*const IMSMQMessage3, @ptrCast(self)), pqinfoAdmin); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQMessage3_get_Id(self: *const T, pvarMsgId: ?*VARIANT) HRESULT { return @as(*const IMSMQMessage3.VTable, @ptrCast(self.vtable)).get_Id(@as(*const IMSMQMessage3, @ptrCast(self)), pvarMsgId); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQMessage3_get_CorrelationId(self: *const T, pvarMsgId: ?*VARIANT) HRESULT { return @as(*const IMSMQMessage3.VTable, @ptrCast(self.vtable)).get_CorrelationId(@as(*const IMSMQMessage3, @ptrCast(self)), pvarMsgId); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQMessage3_put_CorrelationId(self: *const T, varMsgId: VARIANT) HRESULT { return @as(*const IMSMQMessage3.VTable, @ptrCast(self.vtable)).put_CorrelationId(@as(*const IMSMQMessage3, @ptrCast(self)), varMsgId); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQMessage3_get_Ack(self: *const T, plAck: ?*i32) HRESULT { return @as(*const IMSMQMessage3.VTable, @ptrCast(self.vtable)).get_Ack(@as(*const IMSMQMessage3, @ptrCast(self)), plAck); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQMessage3_put_Ack(self: *const T, lAck: i32) HRESULT { return @as(*const IMSMQMessage3.VTable, @ptrCast(self.vtable)).put_Ack(@as(*const IMSMQMessage3, @ptrCast(self)), lAck); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQMessage3_get_Label(self: *const T, pbstrLabel: ?*?BSTR) HRESULT { return @as(*const IMSMQMessage3.VTable, @ptrCast(self.vtable)).get_Label(@as(*const IMSMQMessage3, @ptrCast(self)), pbstrLabel); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQMessage3_put_Label(self: *const T, bstrLabel: ?BSTR) HRESULT { return @as(*const IMSMQMessage3.VTable, @ptrCast(self.vtable)).put_Label(@as(*const IMSMQMessage3, @ptrCast(self)), bstrLabel); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQMessage3_get_MaxTimeToReachQueue(self: *const T, plMaxTimeToReachQueue: ?*i32) HRESULT { return @as(*const IMSMQMessage3.VTable, @ptrCast(self.vtable)).get_MaxTimeToReachQueue(@as(*const IMSMQMessage3, @ptrCast(self)), plMaxTimeToReachQueue); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQMessage3_put_MaxTimeToReachQueue(self: *const T, lMaxTimeToReachQueue: i32) HRESULT { return @as(*const IMSMQMessage3.VTable, @ptrCast(self.vtable)).put_MaxTimeToReachQueue(@as(*const IMSMQMessage3, @ptrCast(self)), lMaxTimeToReachQueue); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQMessage3_get_MaxTimeToReceive(self: *const T, plMaxTimeToReceive: ?*i32) HRESULT { return @as(*const IMSMQMessage3.VTable, @ptrCast(self.vtable)).get_MaxTimeToReceive(@as(*const IMSMQMessage3, @ptrCast(self)), plMaxTimeToReceive); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQMessage3_put_MaxTimeToReceive(self: *const T, lMaxTimeToReceive: i32) HRESULT { return @as(*const IMSMQMessage3.VTable, @ptrCast(self.vtable)).put_MaxTimeToReceive(@as(*const IMSMQMessage3, @ptrCast(self)), lMaxTimeToReceive); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQMessage3_get_HashAlgorithm(self: *const T, plHashAlg: ?*i32) HRESULT { return @as(*const IMSMQMessage3.VTable, @ptrCast(self.vtable)).get_HashAlgorithm(@as(*const IMSMQMessage3, @ptrCast(self)), plHashAlg); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQMessage3_put_HashAlgorithm(self: *const T, lHashAlg: i32) HRESULT { return @as(*const IMSMQMessage3.VTable, @ptrCast(self.vtable)).put_HashAlgorithm(@as(*const IMSMQMessage3, @ptrCast(self)), lHashAlg); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQMessage3_get_EncryptAlgorithm(self: *const T, plEncryptAlg: ?*i32) HRESULT { return @as(*const IMSMQMessage3.VTable, @ptrCast(self.vtable)).get_EncryptAlgorithm(@as(*const IMSMQMessage3, @ptrCast(self)), plEncryptAlg); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQMessage3_put_EncryptAlgorithm(self: *const T, lEncryptAlg: i32) HRESULT { return @as(*const IMSMQMessage3.VTable, @ptrCast(self.vtable)).put_EncryptAlgorithm(@as(*const IMSMQMessage3, @ptrCast(self)), lEncryptAlg); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQMessage3_get_SentTime(self: *const T, pvarSentTime: ?*VARIANT) HRESULT { return @as(*const IMSMQMessage3.VTable, @ptrCast(self.vtable)).get_SentTime(@as(*const IMSMQMessage3, @ptrCast(self)), pvarSentTime); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQMessage3_get_ArrivedTime(self: *const T, plArrivedTime: ?*VARIANT) HRESULT { return @as(*const IMSMQMessage3.VTable, @ptrCast(self.vtable)).get_ArrivedTime(@as(*const IMSMQMessage3, @ptrCast(self)), plArrivedTime); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQMessage3_get_DestinationQueueInfo(self: *const T, ppqinfoDest: ?*?*IMSMQQueueInfo3) HRESULT { return @as(*const IMSMQMessage3.VTable, @ptrCast(self.vtable)).get_DestinationQueueInfo(@as(*const IMSMQMessage3, @ptrCast(self)), ppqinfoDest); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQMessage3_get_SenderCertificate(self: *const T, pvarSenderCert: ?*VARIANT) HRESULT { return @as(*const IMSMQMessage3.VTable, @ptrCast(self.vtable)).get_SenderCertificate(@as(*const IMSMQMessage3, @ptrCast(self)), pvarSenderCert); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQMessage3_put_SenderCertificate(self: *const T, varSenderCert: VARIANT) HRESULT { return @as(*const IMSMQMessage3.VTable, @ptrCast(self.vtable)).put_SenderCertificate(@as(*const IMSMQMessage3, @ptrCast(self)), varSenderCert); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQMessage3_get_SenderId(self: *const T, pvarSenderId: ?*VARIANT) HRESULT { return @as(*const IMSMQMessage3.VTable, @ptrCast(self.vtable)).get_SenderId(@as(*const IMSMQMessage3, @ptrCast(self)), pvarSenderId); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQMessage3_get_SenderIdType(self: *const T, plSenderIdType: ?*i32) HRESULT { return @as(*const IMSMQMessage3.VTable, @ptrCast(self.vtable)).get_SenderIdType(@as(*const IMSMQMessage3, @ptrCast(self)), plSenderIdType); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQMessage3_put_SenderIdType(self: *const T, lSenderIdType: i32) HRESULT { return @as(*const IMSMQMessage3.VTable, @ptrCast(self.vtable)).put_SenderIdType(@as(*const IMSMQMessage3, @ptrCast(self)), lSenderIdType); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQMessage3_Send(self: *const T, DestinationQueue: ?*IDispatch, Transaction: ?*VARIANT) HRESULT { return @as(*const IMSMQMessage3.VTable, @ptrCast(self.vtable)).Send(@as(*const IMSMQMessage3, @ptrCast(self)), DestinationQueue, Transaction); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQMessage3_AttachCurrentSecurityContext(self: *const T) HRESULT { return @as(*const IMSMQMessage3.VTable, @ptrCast(self.vtable)).AttachCurrentSecurityContext(@as(*const IMSMQMessage3, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQMessage3_get_SenderVersion(self: *const T, plSenderVersion: ?*i32) HRESULT { return @as(*const IMSMQMessage3.VTable, @ptrCast(self.vtable)).get_SenderVersion(@as(*const IMSMQMessage3, @ptrCast(self)), plSenderVersion); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQMessage3_get_Extension(self: *const T, pvarExtension: ?*VARIANT) HRESULT { return @as(*const IMSMQMessage3.VTable, @ptrCast(self.vtable)).get_Extension(@as(*const IMSMQMessage3, @ptrCast(self)), pvarExtension); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQMessage3_put_Extension(self: *const T, varExtension: VARIANT) HRESULT { return @as(*const IMSMQMessage3.VTable, @ptrCast(self.vtable)).put_Extension(@as(*const IMSMQMessage3, @ptrCast(self)), varExtension); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQMessage3_get_ConnectorTypeGuid(self: *const T, pbstrGuidConnectorType: ?*?BSTR) HRESULT { return @as(*const IMSMQMessage3.VTable, @ptrCast(self.vtable)).get_ConnectorTypeGuid(@as(*const IMSMQMessage3, @ptrCast(self)), pbstrGuidConnectorType); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQMessage3_put_ConnectorTypeGuid(self: *const T, bstrGuidConnectorType: ?BSTR) HRESULT { return @as(*const IMSMQMessage3.VTable, @ptrCast(self.vtable)).put_ConnectorTypeGuid(@as(*const IMSMQMessage3, @ptrCast(self)), bstrGuidConnectorType); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQMessage3_get_TransactionStatusQueueInfo(self: *const T, ppqinfoXactStatus: ?*?*IMSMQQueueInfo3) HRESULT { return @as(*const IMSMQMessage3.VTable, @ptrCast(self.vtable)).get_TransactionStatusQueueInfo(@as(*const IMSMQMessage3, @ptrCast(self)), ppqinfoXactStatus); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQMessage3_get_DestinationSymmetricKey(self: *const T, pvarDestSymmKey: ?*VARIANT) HRESULT { return @as(*const IMSMQMessage3.VTable, @ptrCast(self.vtable)).get_DestinationSymmetricKey(@as(*const IMSMQMessage3, @ptrCast(self)), pvarDestSymmKey); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQMessage3_put_DestinationSymmetricKey(self: *const T, varDestSymmKey: VARIANT) HRESULT { return @as(*const IMSMQMessage3.VTable, @ptrCast(self.vtable)).put_DestinationSymmetricKey(@as(*const IMSMQMessage3, @ptrCast(self)), varDestSymmKey); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQMessage3_get_Signature(self: *const T, pvarSignature: ?*VARIANT) HRESULT { return @as(*const IMSMQMessage3.VTable, @ptrCast(self.vtable)).get_Signature(@as(*const IMSMQMessage3, @ptrCast(self)), pvarSignature); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQMessage3_put_Signature(self: *const T, varSignature: VARIANT) HRESULT { return @as(*const IMSMQMessage3.VTable, @ptrCast(self.vtable)).put_Signature(@as(*const IMSMQMessage3, @ptrCast(self)), varSignature); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQMessage3_get_AuthenticationProviderType(self: *const T, plAuthProvType: ?*i32) HRESULT { return @as(*const IMSMQMessage3.VTable, @ptrCast(self.vtable)).get_AuthenticationProviderType(@as(*const IMSMQMessage3, @ptrCast(self)), plAuthProvType); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQMessage3_put_AuthenticationProviderType(self: *const T, lAuthProvType: i32) HRESULT { return @as(*const IMSMQMessage3.VTable, @ptrCast(self.vtable)).put_AuthenticationProviderType(@as(*const IMSMQMessage3, @ptrCast(self)), lAuthProvType); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQMessage3_get_AuthenticationProviderName(self: *const T, pbstrAuthProvName: ?*?BSTR) HRESULT { return @as(*const IMSMQMessage3.VTable, @ptrCast(self.vtable)).get_AuthenticationProviderName(@as(*const IMSMQMessage3, @ptrCast(self)), pbstrAuthProvName); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQMessage3_put_AuthenticationProviderName(self: *const T, bstrAuthProvName: ?BSTR) HRESULT { return @as(*const IMSMQMessage3.VTable, @ptrCast(self.vtable)).put_AuthenticationProviderName(@as(*const IMSMQMessage3, @ptrCast(self)), bstrAuthProvName); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQMessage3_put_SenderId(self: *const T, varSenderId: VARIANT) HRESULT { return @as(*const IMSMQMessage3.VTable, @ptrCast(self.vtable)).put_SenderId(@as(*const IMSMQMessage3, @ptrCast(self)), varSenderId); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQMessage3_get_MsgClass(self: *const T, plMsgClass: ?*i32) HRESULT { return @as(*const IMSMQMessage3.VTable, @ptrCast(self.vtable)).get_MsgClass(@as(*const IMSMQMessage3, @ptrCast(self)), plMsgClass); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQMessage3_put_MsgClass(self: *const T, lMsgClass: i32) HRESULT { return @as(*const IMSMQMessage3.VTable, @ptrCast(self.vtable)).put_MsgClass(@as(*const IMSMQMessage3, @ptrCast(self)), lMsgClass); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQMessage3_get_Properties(self: *const T, ppcolProperties: ?*?*IDispatch) HRESULT { return @as(*const IMSMQMessage3.VTable, @ptrCast(self.vtable)).get_Properties(@as(*const IMSMQMessage3, @ptrCast(self)), ppcolProperties); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQMessage3_get_TransactionId(self: *const T, pvarXactId: ?*VARIANT) HRESULT { return @as(*const IMSMQMessage3.VTable, @ptrCast(self.vtable)).get_TransactionId(@as(*const IMSMQMessage3, @ptrCast(self)), pvarXactId); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQMessage3_get_IsFirstInTransaction(self: *const T, pisFirstInXact: ?*i16) HRESULT { return @as(*const IMSMQMessage3.VTable, @ptrCast(self.vtable)).get_IsFirstInTransaction(@as(*const IMSMQMessage3, @ptrCast(self)), pisFirstInXact); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQMessage3_get_IsLastInTransaction(self: *const T, pisLastInXact: ?*i16) HRESULT { return @as(*const IMSMQMessage3.VTable, @ptrCast(self.vtable)).get_IsLastInTransaction(@as(*const IMSMQMessage3, @ptrCast(self)), pisLastInXact); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQMessage3_get_ResponseQueueInfo_v2(self: *const T, ppqinfoResponse: ?*?*IMSMQQueueInfo2) HRESULT { return @as(*const IMSMQMessage3.VTable, @ptrCast(self.vtable)).get_ResponseQueueInfo_v2(@as(*const IMSMQMessage3, @ptrCast(self)), ppqinfoResponse); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQMessage3_putref_ResponseQueueInfo_v2(self: *const T, pqinfoResponse: ?*IMSMQQueueInfo2) HRESULT { return @as(*const IMSMQMessage3.VTable, @ptrCast(self.vtable)).putref_ResponseQueueInfo_v2(@as(*const IMSMQMessage3, @ptrCast(self)), pqinfoResponse); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQMessage3_get_AdminQueueInfo_v2(self: *const T, ppqinfoAdmin: ?*?*IMSMQQueueInfo2) HRESULT { return @as(*const IMSMQMessage3.VTable, @ptrCast(self.vtable)).get_AdminQueueInfo_v2(@as(*const IMSMQMessage3, @ptrCast(self)), ppqinfoAdmin); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQMessage3_putref_AdminQueueInfo_v2(self: *const T, pqinfoAdmin: ?*IMSMQQueueInfo2) HRESULT { return @as(*const IMSMQMessage3.VTable, @ptrCast(self.vtable)).putref_AdminQueueInfo_v2(@as(*const IMSMQMessage3, @ptrCast(self)), pqinfoAdmin); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQMessage3_get_ReceivedAuthenticationLevel(self: *const T, psReceivedAuthenticationLevel: ?*i16) HRESULT { return @as(*const IMSMQMessage3.VTable, @ptrCast(self.vtable)).get_ReceivedAuthenticationLevel(@as(*const IMSMQMessage3, @ptrCast(self)), psReceivedAuthenticationLevel); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQMessage3_get_ResponseQueueInfo(self: *const T, ppqinfoResponse: ?*?*IMSMQQueueInfo3) HRESULT { return @as(*const IMSMQMessage3.VTable, @ptrCast(self.vtable)).get_ResponseQueueInfo(@as(*const IMSMQMessage3, @ptrCast(self)), ppqinfoResponse); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQMessage3_putref_ResponseQueueInfo(self: *const T, pqinfoResponse: ?*IMSMQQueueInfo3) HRESULT { return @as(*const IMSMQMessage3.VTable, @ptrCast(self.vtable)).putref_ResponseQueueInfo(@as(*const IMSMQMessage3, @ptrCast(self)), pqinfoResponse); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQMessage3_get_AdminQueueInfo(self: *const T, ppqinfoAdmin: ?*?*IMSMQQueueInfo3) HRESULT { return @as(*const IMSMQMessage3.VTable, @ptrCast(self.vtable)).get_AdminQueueInfo(@as(*const IMSMQMessage3, @ptrCast(self)), ppqinfoAdmin); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQMessage3_putref_AdminQueueInfo(self: *const T, pqinfoAdmin: ?*IMSMQQueueInfo3) HRESULT { return @as(*const IMSMQMessage3.VTable, @ptrCast(self.vtable)).putref_AdminQueueInfo(@as(*const IMSMQMessage3, @ptrCast(self)), pqinfoAdmin); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQMessage3_get_ResponseDestination(self: *const T, ppdestResponse: ?*?*IDispatch) HRESULT { return @as(*const IMSMQMessage3.VTable, @ptrCast(self.vtable)).get_ResponseDestination(@as(*const IMSMQMessage3, @ptrCast(self)), ppdestResponse); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQMessage3_putref_ResponseDestination(self: *const T, pdestResponse: ?*IDispatch) HRESULT { return @as(*const IMSMQMessage3.VTable, @ptrCast(self.vtable)).putref_ResponseDestination(@as(*const IMSMQMessage3, @ptrCast(self)), pdestResponse); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQMessage3_get_Destination(self: *const T, ppdestDestination: ?*?*IDispatch) HRESULT { return @as(*const IMSMQMessage3.VTable, @ptrCast(self.vtable)).get_Destination(@as(*const IMSMQMessage3, @ptrCast(self)), ppdestDestination); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQMessage3_get_LookupId(self: *const T, pvarLookupId: ?*VARIANT) HRESULT { return @as(*const IMSMQMessage3.VTable, @ptrCast(self.vtable)).get_LookupId(@as(*const IMSMQMessage3, @ptrCast(self)), pvarLookupId); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQMessage3_get_IsAuthenticated2(self: *const T, pisAuthenticated: ?*i16) HRESULT { return @as(*const IMSMQMessage3.VTable, @ptrCast(self.vtable)).get_IsAuthenticated2(@as(*const IMSMQMessage3, @ptrCast(self)), pisAuthenticated); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQMessage3_get_IsFirstInTransaction2(self: *const T, pisFirstInXact: ?*i16) HRESULT { return @as(*const IMSMQMessage3.VTable, @ptrCast(self.vtable)).get_IsFirstInTransaction2(@as(*const IMSMQMessage3, @ptrCast(self)), pisFirstInXact); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQMessage3_get_IsLastInTransaction2(self: *const T, pisLastInXact: ?*i16) HRESULT { return @as(*const IMSMQMessage3.VTable, @ptrCast(self.vtable)).get_IsLastInTransaction2(@as(*const IMSMQMessage3, @ptrCast(self)), pisLastInXact); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQMessage3_AttachCurrentSecurityContext2(self: *const T) HRESULT { return @as(*const IMSMQMessage3.VTable, @ptrCast(self.vtable)).AttachCurrentSecurityContext2(@as(*const IMSMQMessage3, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQMessage3_get_SoapEnvelope(self: *const T, pbstrSoapEnvelope: ?*?BSTR) HRESULT { return @as(*const IMSMQMessage3.VTable, @ptrCast(self.vtable)).get_SoapEnvelope(@as(*const IMSMQMessage3, @ptrCast(self)), pbstrSoapEnvelope); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQMessage3_get_CompoundMessage(self: *const T, pvarCompoundMessage: ?*VARIANT) HRESULT { return @as(*const IMSMQMessage3.VTable, @ptrCast(self.vtable)).get_CompoundMessage(@as(*const IMSMQMessage3, @ptrCast(self)), pvarCompoundMessage); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQMessage3_put_SoapHeader(self: *const T, bstrSoapHeader: ?BSTR) HRESULT { return @as(*const IMSMQMessage3.VTable, @ptrCast(self.vtable)).put_SoapHeader(@as(*const IMSMQMessage3, @ptrCast(self)), bstrSoapHeader); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQMessage3_put_SoapBody(self: *const T, bstrSoapBody: ?BSTR) HRESULT { return @as(*const IMSMQMessage3.VTable, @ptrCast(self.vtable)).put_SoapBody(@as(*const IMSMQMessage3, @ptrCast(self)), bstrSoapBody); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IMSMQMessage4_Value = Guid.initString("eba96b23-2168-11d3-898c-00e02c074f6b"); pub const IID_IMSMQMessage4 = &IID_IMSMQMessage4_Value; pub const IMSMQMessage4 = extern struct { pub const VTable = extern struct { base: IDispatch.VTable, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Class: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQMessage4, plClass: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQMessage4, plClass: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_PrivLevel: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQMessage4, plPrivLevel: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQMessage4, plPrivLevel: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_PrivLevel: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQMessage4, lPrivLevel: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQMessage4, lPrivLevel: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_AuthLevel: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQMessage4, plAuthLevel: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQMessage4, plAuthLevel: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_AuthLevel: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQMessage4, lAuthLevel: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQMessage4, lAuthLevel: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_IsAuthenticated: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQMessage4, pisAuthenticated: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQMessage4, pisAuthenticated: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Delivery: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQMessage4, plDelivery: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQMessage4, plDelivery: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_Delivery: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQMessage4, lDelivery: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQMessage4, lDelivery: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Trace: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQMessage4, plTrace: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQMessage4, plTrace: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_Trace: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQMessage4, lTrace: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQMessage4, lTrace: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Priority: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQMessage4, plPriority: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQMessage4, plPriority: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_Priority: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQMessage4, lPriority: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQMessage4, lPriority: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Journal: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQMessage4, plJournal: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQMessage4, plJournal: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_Journal: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQMessage4, lJournal: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQMessage4, lJournal: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_ResponseQueueInfo_v1: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQMessage4, ppqinfoResponse: ?*?*IMSMQQueueInfo, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQMessage4, ppqinfoResponse: ?*?*IMSMQQueueInfo, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, putref_ResponseQueueInfo_v1: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IMSMQMessage4, pqinfoResponse: ?*IMSMQQueueInfo, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IMSMQMessage4, pqinfoResponse: ?*IMSMQQueueInfo, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_AppSpecific: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQMessage4, plAppSpecific: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQMessage4, plAppSpecific: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_AppSpecific: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQMessage4, lAppSpecific: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQMessage4, lAppSpecific: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_SourceMachineGuid: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQMessage4, pbstrGuidSrcMachine: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQMessage4, pbstrGuidSrcMachine: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_BodyLength: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQMessage4, pcbBody: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQMessage4, pcbBody: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Body: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQMessage4, pvarBody: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQMessage4, pvarBody: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_Body: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQMessage4, varBody: VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQMessage4, varBody: VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_AdminQueueInfo_v1: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQMessage4, ppqinfoAdmin: ?*?*IMSMQQueueInfo, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQMessage4, ppqinfoAdmin: ?*?*IMSMQQueueInfo, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, putref_AdminQueueInfo_v1: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IMSMQMessage4, pqinfoAdmin: ?*IMSMQQueueInfo, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IMSMQMessage4, pqinfoAdmin: ?*IMSMQQueueInfo, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Id: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQMessage4, pvarMsgId: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQMessage4, pvarMsgId: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_CorrelationId: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQMessage4, pvarMsgId: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQMessage4, pvarMsgId: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_CorrelationId: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQMessage4, varMsgId: VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQMessage4, varMsgId: VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Ack: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQMessage4, plAck: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQMessage4, plAck: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_Ack: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQMessage4, lAck: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQMessage4, lAck: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Label: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQMessage4, pbstrLabel: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQMessage4, pbstrLabel: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_Label: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQMessage4, bstrLabel: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQMessage4, bstrLabel: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_MaxTimeToReachQueue: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQMessage4, plMaxTimeToReachQueue: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQMessage4, plMaxTimeToReachQueue: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_MaxTimeToReachQueue: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQMessage4, lMaxTimeToReachQueue: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQMessage4, lMaxTimeToReachQueue: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_MaxTimeToReceive: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQMessage4, plMaxTimeToReceive: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQMessage4, plMaxTimeToReceive: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_MaxTimeToReceive: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQMessage4, lMaxTimeToReceive: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQMessage4, lMaxTimeToReceive: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_HashAlgorithm: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQMessage4, plHashAlg: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQMessage4, plHashAlg: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_HashAlgorithm: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQMessage4, lHashAlg: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQMessage4, lHashAlg: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_EncryptAlgorithm: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQMessage4, plEncryptAlg: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQMessage4, plEncryptAlg: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_EncryptAlgorithm: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQMessage4, lEncryptAlg: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQMessage4, lEncryptAlg: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_SentTime: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQMessage4, pvarSentTime: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQMessage4, pvarSentTime: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_ArrivedTime: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQMessage4, plArrivedTime: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQMessage4, plArrivedTime: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_DestinationQueueInfo: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQMessage4, ppqinfoDest: ?*?*IMSMQQueueInfo4, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQMessage4, ppqinfoDest: ?*?*IMSMQQueueInfo4, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_SenderCertificate: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQMessage4, pvarSenderCert: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQMessage4, pvarSenderCert: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_SenderCertificate: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQMessage4, varSenderCert: VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQMessage4, varSenderCert: VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_SenderId: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQMessage4, pvarSenderId: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQMessage4, pvarSenderId: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_SenderIdType: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQMessage4, plSenderIdType: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQMessage4, plSenderIdType: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_SenderIdType: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQMessage4, lSenderIdType: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQMessage4, lSenderIdType: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Send: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IMSMQMessage4, DestinationQueue: ?*IDispatch, Transaction: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IMSMQMessage4, DestinationQueue: ?*IDispatch, Transaction: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, AttachCurrentSecurityContext: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IMSMQMessage4, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IMSMQMessage4, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_SenderVersion: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQMessage4, plSenderVersion: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQMessage4, plSenderVersion: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Extension: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQMessage4, pvarExtension: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQMessage4, pvarExtension: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_Extension: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQMessage4, varExtension: VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQMessage4, varExtension: VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_ConnectorTypeGuid: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQMessage4, pbstrGuidConnectorType: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQMessage4, pbstrGuidConnectorType: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_ConnectorTypeGuid: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQMessage4, bstrGuidConnectorType: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQMessage4, bstrGuidConnectorType: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_TransactionStatusQueueInfo: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQMessage4, ppqinfoXactStatus: ?*?*IMSMQQueueInfo4, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQMessage4, ppqinfoXactStatus: ?*?*IMSMQQueueInfo4, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_DestinationSymmetricKey: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQMessage4, pvarDestSymmKey: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQMessage4, pvarDestSymmKey: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_DestinationSymmetricKey: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQMessage4, varDestSymmKey: VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQMessage4, varDestSymmKey: VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Signature: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQMessage4, pvarSignature: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQMessage4, pvarSignature: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_Signature: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQMessage4, varSignature: VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQMessage4, varSignature: VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_AuthenticationProviderType: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQMessage4, plAuthProvType: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQMessage4, plAuthProvType: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_AuthenticationProviderType: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQMessage4, lAuthProvType: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQMessage4, lAuthProvType: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_AuthenticationProviderName: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQMessage4, pbstrAuthProvName: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQMessage4, pbstrAuthProvName: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_AuthenticationProviderName: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQMessage4, bstrAuthProvName: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQMessage4, bstrAuthProvName: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_SenderId: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQMessage4, varSenderId: VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQMessage4, varSenderId: VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_MsgClass: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQMessage4, plMsgClass: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQMessage4, plMsgClass: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_MsgClass: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQMessage4, lMsgClass: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQMessage4, lMsgClass: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Properties: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQMessage4, ppcolProperties: ?*?*IDispatch, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQMessage4, ppcolProperties: ?*?*IDispatch, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_TransactionId: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQMessage4, pvarXactId: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQMessage4, pvarXactId: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_IsFirstInTransaction: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQMessage4, pisFirstInXact: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQMessage4, pisFirstInXact: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_IsLastInTransaction: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQMessage4, pisLastInXact: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQMessage4, pisLastInXact: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_ResponseQueueInfo_v2: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQMessage4, ppqinfoResponse: ?*?*IMSMQQueueInfo2, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQMessage4, ppqinfoResponse: ?*?*IMSMQQueueInfo2, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, putref_ResponseQueueInfo_v2: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IMSMQMessage4, pqinfoResponse: ?*IMSMQQueueInfo2, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IMSMQMessage4, pqinfoResponse: ?*IMSMQQueueInfo2, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_AdminQueueInfo_v2: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQMessage4, ppqinfoAdmin: ?*?*IMSMQQueueInfo2, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQMessage4, ppqinfoAdmin: ?*?*IMSMQQueueInfo2, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, putref_AdminQueueInfo_v2: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IMSMQMessage4, pqinfoAdmin: ?*IMSMQQueueInfo2, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IMSMQMessage4, pqinfoAdmin: ?*IMSMQQueueInfo2, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_ReceivedAuthenticationLevel: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQMessage4, psReceivedAuthenticationLevel: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQMessage4, psReceivedAuthenticationLevel: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_ResponseQueueInfo: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQMessage4, ppqinfoResponse: ?*?*IMSMQQueueInfo4, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQMessage4, ppqinfoResponse: ?*?*IMSMQQueueInfo4, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, putref_ResponseQueueInfo: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IMSMQMessage4, pqinfoResponse: ?*IMSMQQueueInfo4, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IMSMQMessage4, pqinfoResponse: ?*IMSMQQueueInfo4, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_AdminQueueInfo: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQMessage4, ppqinfoAdmin: ?*?*IMSMQQueueInfo4, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQMessage4, ppqinfoAdmin: ?*?*IMSMQQueueInfo4, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, putref_AdminQueueInfo: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IMSMQMessage4, pqinfoAdmin: ?*IMSMQQueueInfo4, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IMSMQMessage4, pqinfoAdmin: ?*IMSMQQueueInfo4, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_ResponseDestination: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQMessage4, ppdestResponse: ?*?*IDispatch, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQMessage4, ppdestResponse: ?*?*IDispatch, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, putref_ResponseDestination: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IMSMQMessage4, pdestResponse: ?*IDispatch, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IMSMQMessage4, pdestResponse: ?*IDispatch, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Destination: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQMessage4, ppdestDestination: ?*?*IDispatch, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQMessage4, ppdestDestination: ?*?*IDispatch, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_LookupId: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQMessage4, pvarLookupId: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQMessage4, pvarLookupId: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_IsAuthenticated2: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQMessage4, pisAuthenticated: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQMessage4, pisAuthenticated: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_IsFirstInTransaction2: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQMessage4, pisFirstInXact: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQMessage4, pisFirstInXact: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_IsLastInTransaction2: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQMessage4, pisLastInXact: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQMessage4, pisLastInXact: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, AttachCurrentSecurityContext2: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IMSMQMessage4, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IMSMQMessage4, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_SoapEnvelope: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQMessage4, pbstrSoapEnvelope: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQMessage4, pbstrSoapEnvelope: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_CompoundMessage: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQMessage4, pvarCompoundMessage: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQMessage4, pvarCompoundMessage: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_SoapHeader: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQMessage4, bstrSoapHeader: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQMessage4, bstrSoapHeader: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_SoapBody: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQMessage4, bstrSoapBody: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQMessage4, bstrSoapBody: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IDispatch.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQMessage4_get_Class(self: *const T, plClass: ?*i32) HRESULT { return @as(*const IMSMQMessage4.VTable, @ptrCast(self.vtable)).get_Class(@as(*const IMSMQMessage4, @ptrCast(self)), plClass); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQMessage4_get_PrivLevel(self: *const T, plPrivLevel: ?*i32) HRESULT { return @as(*const IMSMQMessage4.VTable, @ptrCast(self.vtable)).get_PrivLevel(@as(*const IMSMQMessage4, @ptrCast(self)), plPrivLevel); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQMessage4_put_PrivLevel(self: *const T, lPrivLevel: i32) HRESULT { return @as(*const IMSMQMessage4.VTable, @ptrCast(self.vtable)).put_PrivLevel(@as(*const IMSMQMessage4, @ptrCast(self)), lPrivLevel); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQMessage4_get_AuthLevel(self: *const T, plAuthLevel: ?*i32) HRESULT { return @as(*const IMSMQMessage4.VTable, @ptrCast(self.vtable)).get_AuthLevel(@as(*const IMSMQMessage4, @ptrCast(self)), plAuthLevel); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQMessage4_put_AuthLevel(self: *const T, lAuthLevel: i32) HRESULT { return @as(*const IMSMQMessage4.VTable, @ptrCast(self.vtable)).put_AuthLevel(@as(*const IMSMQMessage4, @ptrCast(self)), lAuthLevel); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQMessage4_get_IsAuthenticated(self: *const T, pisAuthenticated: ?*i16) HRESULT { return @as(*const IMSMQMessage4.VTable, @ptrCast(self.vtable)).get_IsAuthenticated(@as(*const IMSMQMessage4, @ptrCast(self)), pisAuthenticated); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQMessage4_get_Delivery(self: *const T, plDelivery: ?*i32) HRESULT { return @as(*const IMSMQMessage4.VTable, @ptrCast(self.vtable)).get_Delivery(@as(*const IMSMQMessage4, @ptrCast(self)), plDelivery); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQMessage4_put_Delivery(self: *const T, lDelivery: i32) HRESULT { return @as(*const IMSMQMessage4.VTable, @ptrCast(self.vtable)).put_Delivery(@as(*const IMSMQMessage4, @ptrCast(self)), lDelivery); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQMessage4_get_Trace(self: *const T, plTrace: ?*i32) HRESULT { return @as(*const IMSMQMessage4.VTable, @ptrCast(self.vtable)).get_Trace(@as(*const IMSMQMessage4, @ptrCast(self)), plTrace); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQMessage4_put_Trace(self: *const T, lTrace: i32) HRESULT { return @as(*const IMSMQMessage4.VTable, @ptrCast(self.vtable)).put_Trace(@as(*const IMSMQMessage4, @ptrCast(self)), lTrace); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQMessage4_get_Priority(self: *const T, plPriority: ?*i32) HRESULT { return @as(*const IMSMQMessage4.VTable, @ptrCast(self.vtable)).get_Priority(@as(*const IMSMQMessage4, @ptrCast(self)), plPriority); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQMessage4_put_Priority(self: *const T, lPriority: i32) HRESULT { return @as(*const IMSMQMessage4.VTable, @ptrCast(self.vtable)).put_Priority(@as(*const IMSMQMessage4, @ptrCast(self)), lPriority); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQMessage4_get_Journal(self: *const T, plJournal: ?*i32) HRESULT { return @as(*const IMSMQMessage4.VTable, @ptrCast(self.vtable)).get_Journal(@as(*const IMSMQMessage4, @ptrCast(self)), plJournal); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQMessage4_put_Journal(self: *const T, lJournal: i32) HRESULT { return @as(*const IMSMQMessage4.VTable, @ptrCast(self.vtable)).put_Journal(@as(*const IMSMQMessage4, @ptrCast(self)), lJournal); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQMessage4_get_ResponseQueueInfo_v1(self: *const T, ppqinfoResponse: ?*?*IMSMQQueueInfo) HRESULT { return @as(*const IMSMQMessage4.VTable, @ptrCast(self.vtable)).get_ResponseQueueInfo_v1(@as(*const IMSMQMessage4, @ptrCast(self)), ppqinfoResponse); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQMessage4_putref_ResponseQueueInfo_v1(self: *const T, pqinfoResponse: ?*IMSMQQueueInfo) HRESULT { return @as(*const IMSMQMessage4.VTable, @ptrCast(self.vtable)).putref_ResponseQueueInfo_v1(@as(*const IMSMQMessage4, @ptrCast(self)), pqinfoResponse); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQMessage4_get_AppSpecific(self: *const T, plAppSpecific: ?*i32) HRESULT { return @as(*const IMSMQMessage4.VTable, @ptrCast(self.vtable)).get_AppSpecific(@as(*const IMSMQMessage4, @ptrCast(self)), plAppSpecific); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQMessage4_put_AppSpecific(self: *const T, lAppSpecific: i32) HRESULT { return @as(*const IMSMQMessage4.VTable, @ptrCast(self.vtable)).put_AppSpecific(@as(*const IMSMQMessage4, @ptrCast(self)), lAppSpecific); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQMessage4_get_SourceMachineGuid(self: *const T, pbstrGuidSrcMachine: ?*?BSTR) HRESULT { return @as(*const IMSMQMessage4.VTable, @ptrCast(self.vtable)).get_SourceMachineGuid(@as(*const IMSMQMessage4, @ptrCast(self)), pbstrGuidSrcMachine); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQMessage4_get_BodyLength(self: *const T, pcbBody: ?*i32) HRESULT { return @as(*const IMSMQMessage4.VTable, @ptrCast(self.vtable)).get_BodyLength(@as(*const IMSMQMessage4, @ptrCast(self)), pcbBody); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQMessage4_get_Body(self: *const T, pvarBody: ?*VARIANT) HRESULT { return @as(*const IMSMQMessage4.VTable, @ptrCast(self.vtable)).get_Body(@as(*const IMSMQMessage4, @ptrCast(self)), pvarBody); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQMessage4_put_Body(self: *const T, varBody: VARIANT) HRESULT { return @as(*const IMSMQMessage4.VTable, @ptrCast(self.vtable)).put_Body(@as(*const IMSMQMessage4, @ptrCast(self)), varBody); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQMessage4_get_AdminQueueInfo_v1(self: *const T, ppqinfoAdmin: ?*?*IMSMQQueueInfo) HRESULT { return @as(*const IMSMQMessage4.VTable, @ptrCast(self.vtable)).get_AdminQueueInfo_v1(@as(*const IMSMQMessage4, @ptrCast(self)), ppqinfoAdmin); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQMessage4_putref_AdminQueueInfo_v1(self: *const T, pqinfoAdmin: ?*IMSMQQueueInfo) HRESULT { return @as(*const IMSMQMessage4.VTable, @ptrCast(self.vtable)).putref_AdminQueueInfo_v1(@as(*const IMSMQMessage4, @ptrCast(self)), pqinfoAdmin); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQMessage4_get_Id(self: *const T, pvarMsgId: ?*VARIANT) HRESULT { return @as(*const IMSMQMessage4.VTable, @ptrCast(self.vtable)).get_Id(@as(*const IMSMQMessage4, @ptrCast(self)), pvarMsgId); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQMessage4_get_CorrelationId(self: *const T, pvarMsgId: ?*VARIANT) HRESULT { return @as(*const IMSMQMessage4.VTable, @ptrCast(self.vtable)).get_CorrelationId(@as(*const IMSMQMessage4, @ptrCast(self)), pvarMsgId); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQMessage4_put_CorrelationId(self: *const T, varMsgId: VARIANT) HRESULT { return @as(*const IMSMQMessage4.VTable, @ptrCast(self.vtable)).put_CorrelationId(@as(*const IMSMQMessage4, @ptrCast(self)), varMsgId); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQMessage4_get_Ack(self: *const T, plAck: ?*i32) HRESULT { return @as(*const IMSMQMessage4.VTable, @ptrCast(self.vtable)).get_Ack(@as(*const IMSMQMessage4, @ptrCast(self)), plAck); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQMessage4_put_Ack(self: *const T, lAck: i32) HRESULT { return @as(*const IMSMQMessage4.VTable, @ptrCast(self.vtable)).put_Ack(@as(*const IMSMQMessage4, @ptrCast(self)), lAck); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQMessage4_get_Label(self: *const T, pbstrLabel: ?*?BSTR) HRESULT { return @as(*const IMSMQMessage4.VTable, @ptrCast(self.vtable)).get_Label(@as(*const IMSMQMessage4, @ptrCast(self)), pbstrLabel); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQMessage4_put_Label(self: *const T, bstrLabel: ?BSTR) HRESULT { return @as(*const IMSMQMessage4.VTable, @ptrCast(self.vtable)).put_Label(@as(*const IMSMQMessage4, @ptrCast(self)), bstrLabel); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQMessage4_get_MaxTimeToReachQueue(self: *const T, plMaxTimeToReachQueue: ?*i32) HRESULT { return @as(*const IMSMQMessage4.VTable, @ptrCast(self.vtable)).get_MaxTimeToReachQueue(@as(*const IMSMQMessage4, @ptrCast(self)), plMaxTimeToReachQueue); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQMessage4_put_MaxTimeToReachQueue(self: *const T, lMaxTimeToReachQueue: i32) HRESULT { return @as(*const IMSMQMessage4.VTable, @ptrCast(self.vtable)).put_MaxTimeToReachQueue(@as(*const IMSMQMessage4, @ptrCast(self)), lMaxTimeToReachQueue); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQMessage4_get_MaxTimeToReceive(self: *const T, plMaxTimeToReceive: ?*i32) HRESULT { return @as(*const IMSMQMessage4.VTable, @ptrCast(self.vtable)).get_MaxTimeToReceive(@as(*const IMSMQMessage4, @ptrCast(self)), plMaxTimeToReceive); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQMessage4_put_MaxTimeToReceive(self: *const T, lMaxTimeToReceive: i32) HRESULT { return @as(*const IMSMQMessage4.VTable, @ptrCast(self.vtable)).put_MaxTimeToReceive(@as(*const IMSMQMessage4, @ptrCast(self)), lMaxTimeToReceive); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQMessage4_get_HashAlgorithm(self: *const T, plHashAlg: ?*i32) HRESULT { return @as(*const IMSMQMessage4.VTable, @ptrCast(self.vtable)).get_HashAlgorithm(@as(*const IMSMQMessage4, @ptrCast(self)), plHashAlg); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQMessage4_put_HashAlgorithm(self: *const T, lHashAlg: i32) HRESULT { return @as(*const IMSMQMessage4.VTable, @ptrCast(self.vtable)).put_HashAlgorithm(@as(*const IMSMQMessage4, @ptrCast(self)), lHashAlg); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQMessage4_get_EncryptAlgorithm(self: *const T, plEncryptAlg: ?*i32) HRESULT { return @as(*const IMSMQMessage4.VTable, @ptrCast(self.vtable)).get_EncryptAlgorithm(@as(*const IMSMQMessage4, @ptrCast(self)), plEncryptAlg); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQMessage4_put_EncryptAlgorithm(self: *const T, lEncryptAlg: i32) HRESULT { return @as(*const IMSMQMessage4.VTable, @ptrCast(self.vtable)).put_EncryptAlgorithm(@as(*const IMSMQMessage4, @ptrCast(self)), lEncryptAlg); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQMessage4_get_SentTime(self: *const T, pvarSentTime: ?*VARIANT) HRESULT { return @as(*const IMSMQMessage4.VTable, @ptrCast(self.vtable)).get_SentTime(@as(*const IMSMQMessage4, @ptrCast(self)), pvarSentTime); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQMessage4_get_ArrivedTime(self: *const T, plArrivedTime: ?*VARIANT) HRESULT { return @as(*const IMSMQMessage4.VTable, @ptrCast(self.vtable)).get_ArrivedTime(@as(*const IMSMQMessage4, @ptrCast(self)), plArrivedTime); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQMessage4_get_DestinationQueueInfo(self: *const T, ppqinfoDest: ?*?*IMSMQQueueInfo4) HRESULT { return @as(*const IMSMQMessage4.VTable, @ptrCast(self.vtable)).get_DestinationQueueInfo(@as(*const IMSMQMessage4, @ptrCast(self)), ppqinfoDest); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQMessage4_get_SenderCertificate(self: *const T, pvarSenderCert: ?*VARIANT) HRESULT { return @as(*const IMSMQMessage4.VTable, @ptrCast(self.vtable)).get_SenderCertificate(@as(*const IMSMQMessage4, @ptrCast(self)), pvarSenderCert); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQMessage4_put_SenderCertificate(self: *const T, varSenderCert: VARIANT) HRESULT { return @as(*const IMSMQMessage4.VTable, @ptrCast(self.vtable)).put_SenderCertificate(@as(*const IMSMQMessage4, @ptrCast(self)), varSenderCert); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQMessage4_get_SenderId(self: *const T, pvarSenderId: ?*VARIANT) HRESULT { return @as(*const IMSMQMessage4.VTable, @ptrCast(self.vtable)).get_SenderId(@as(*const IMSMQMessage4, @ptrCast(self)), pvarSenderId); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQMessage4_get_SenderIdType(self: *const T, plSenderIdType: ?*i32) HRESULT { return @as(*const IMSMQMessage4.VTable, @ptrCast(self.vtable)).get_SenderIdType(@as(*const IMSMQMessage4, @ptrCast(self)), plSenderIdType); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQMessage4_put_SenderIdType(self: *const T, lSenderIdType: i32) HRESULT { return @as(*const IMSMQMessage4.VTable, @ptrCast(self.vtable)).put_SenderIdType(@as(*const IMSMQMessage4, @ptrCast(self)), lSenderIdType); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQMessage4_Send(self: *const T, DestinationQueue: ?*IDispatch, Transaction: ?*VARIANT) HRESULT { return @as(*const IMSMQMessage4.VTable, @ptrCast(self.vtable)).Send(@as(*const IMSMQMessage4, @ptrCast(self)), DestinationQueue, Transaction); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQMessage4_AttachCurrentSecurityContext(self: *const T) HRESULT { return @as(*const IMSMQMessage4.VTable, @ptrCast(self.vtable)).AttachCurrentSecurityContext(@as(*const IMSMQMessage4, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQMessage4_get_SenderVersion(self: *const T, plSenderVersion: ?*i32) HRESULT { return @as(*const IMSMQMessage4.VTable, @ptrCast(self.vtable)).get_SenderVersion(@as(*const IMSMQMessage4, @ptrCast(self)), plSenderVersion); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQMessage4_get_Extension(self: *const T, pvarExtension: ?*VARIANT) HRESULT { return @as(*const IMSMQMessage4.VTable, @ptrCast(self.vtable)).get_Extension(@as(*const IMSMQMessage4, @ptrCast(self)), pvarExtension); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQMessage4_put_Extension(self: *const T, varExtension: VARIANT) HRESULT { return @as(*const IMSMQMessage4.VTable, @ptrCast(self.vtable)).put_Extension(@as(*const IMSMQMessage4, @ptrCast(self)), varExtension); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQMessage4_get_ConnectorTypeGuid(self: *const T, pbstrGuidConnectorType: ?*?BSTR) HRESULT { return @as(*const IMSMQMessage4.VTable, @ptrCast(self.vtable)).get_ConnectorTypeGuid(@as(*const IMSMQMessage4, @ptrCast(self)), pbstrGuidConnectorType); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQMessage4_put_ConnectorTypeGuid(self: *const T, bstrGuidConnectorType: ?BSTR) HRESULT { return @as(*const IMSMQMessage4.VTable, @ptrCast(self.vtable)).put_ConnectorTypeGuid(@as(*const IMSMQMessage4, @ptrCast(self)), bstrGuidConnectorType); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQMessage4_get_TransactionStatusQueueInfo(self: *const T, ppqinfoXactStatus: ?*?*IMSMQQueueInfo4) HRESULT { return @as(*const IMSMQMessage4.VTable, @ptrCast(self.vtable)).get_TransactionStatusQueueInfo(@as(*const IMSMQMessage4, @ptrCast(self)), ppqinfoXactStatus); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQMessage4_get_DestinationSymmetricKey(self: *const T, pvarDestSymmKey: ?*VARIANT) HRESULT { return @as(*const IMSMQMessage4.VTable, @ptrCast(self.vtable)).get_DestinationSymmetricKey(@as(*const IMSMQMessage4, @ptrCast(self)), pvarDestSymmKey); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQMessage4_put_DestinationSymmetricKey(self: *const T, varDestSymmKey: VARIANT) HRESULT { return @as(*const IMSMQMessage4.VTable, @ptrCast(self.vtable)).put_DestinationSymmetricKey(@as(*const IMSMQMessage4, @ptrCast(self)), varDestSymmKey); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQMessage4_get_Signature(self: *const T, pvarSignature: ?*VARIANT) HRESULT { return @as(*const IMSMQMessage4.VTable, @ptrCast(self.vtable)).get_Signature(@as(*const IMSMQMessage4, @ptrCast(self)), pvarSignature); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQMessage4_put_Signature(self: *const T, varSignature: VARIANT) HRESULT { return @as(*const IMSMQMessage4.VTable, @ptrCast(self.vtable)).put_Signature(@as(*const IMSMQMessage4, @ptrCast(self)), varSignature); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQMessage4_get_AuthenticationProviderType(self: *const T, plAuthProvType: ?*i32) HRESULT { return @as(*const IMSMQMessage4.VTable, @ptrCast(self.vtable)).get_AuthenticationProviderType(@as(*const IMSMQMessage4, @ptrCast(self)), plAuthProvType); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQMessage4_put_AuthenticationProviderType(self: *const T, lAuthProvType: i32) HRESULT { return @as(*const IMSMQMessage4.VTable, @ptrCast(self.vtable)).put_AuthenticationProviderType(@as(*const IMSMQMessage4, @ptrCast(self)), lAuthProvType); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQMessage4_get_AuthenticationProviderName(self: *const T, pbstrAuthProvName: ?*?BSTR) HRESULT { return @as(*const IMSMQMessage4.VTable, @ptrCast(self.vtable)).get_AuthenticationProviderName(@as(*const IMSMQMessage4, @ptrCast(self)), pbstrAuthProvName); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQMessage4_put_AuthenticationProviderName(self: *const T, bstrAuthProvName: ?BSTR) HRESULT { return @as(*const IMSMQMessage4.VTable, @ptrCast(self.vtable)).put_AuthenticationProviderName(@as(*const IMSMQMessage4, @ptrCast(self)), bstrAuthProvName); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQMessage4_put_SenderId(self: *const T, varSenderId: VARIANT) HRESULT { return @as(*const IMSMQMessage4.VTable, @ptrCast(self.vtable)).put_SenderId(@as(*const IMSMQMessage4, @ptrCast(self)), varSenderId); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQMessage4_get_MsgClass(self: *const T, plMsgClass: ?*i32) HRESULT { return @as(*const IMSMQMessage4.VTable, @ptrCast(self.vtable)).get_MsgClass(@as(*const IMSMQMessage4, @ptrCast(self)), plMsgClass); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQMessage4_put_MsgClass(self: *const T, lMsgClass: i32) HRESULT { return @as(*const IMSMQMessage4.VTable, @ptrCast(self.vtable)).put_MsgClass(@as(*const IMSMQMessage4, @ptrCast(self)), lMsgClass); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQMessage4_get_Properties(self: *const T, ppcolProperties: ?*?*IDispatch) HRESULT { return @as(*const IMSMQMessage4.VTable, @ptrCast(self.vtable)).get_Properties(@as(*const IMSMQMessage4, @ptrCast(self)), ppcolProperties); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQMessage4_get_TransactionId(self: *const T, pvarXactId: ?*VARIANT) HRESULT { return @as(*const IMSMQMessage4.VTable, @ptrCast(self.vtable)).get_TransactionId(@as(*const IMSMQMessage4, @ptrCast(self)), pvarXactId); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQMessage4_get_IsFirstInTransaction(self: *const T, pisFirstInXact: ?*i16) HRESULT { return @as(*const IMSMQMessage4.VTable, @ptrCast(self.vtable)).get_IsFirstInTransaction(@as(*const IMSMQMessage4, @ptrCast(self)), pisFirstInXact); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQMessage4_get_IsLastInTransaction(self: *const T, pisLastInXact: ?*i16) HRESULT { return @as(*const IMSMQMessage4.VTable, @ptrCast(self.vtable)).get_IsLastInTransaction(@as(*const IMSMQMessage4, @ptrCast(self)), pisLastInXact); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQMessage4_get_ResponseQueueInfo_v2(self: *const T, ppqinfoResponse: ?*?*IMSMQQueueInfo2) HRESULT { return @as(*const IMSMQMessage4.VTable, @ptrCast(self.vtable)).get_ResponseQueueInfo_v2(@as(*const IMSMQMessage4, @ptrCast(self)), ppqinfoResponse); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQMessage4_putref_ResponseQueueInfo_v2(self: *const T, pqinfoResponse: ?*IMSMQQueueInfo2) HRESULT { return @as(*const IMSMQMessage4.VTable, @ptrCast(self.vtable)).putref_ResponseQueueInfo_v2(@as(*const IMSMQMessage4, @ptrCast(self)), pqinfoResponse); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQMessage4_get_AdminQueueInfo_v2(self: *const T, ppqinfoAdmin: ?*?*IMSMQQueueInfo2) HRESULT { return @as(*const IMSMQMessage4.VTable, @ptrCast(self.vtable)).get_AdminQueueInfo_v2(@as(*const IMSMQMessage4, @ptrCast(self)), ppqinfoAdmin); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQMessage4_putref_AdminQueueInfo_v2(self: *const T, pqinfoAdmin: ?*IMSMQQueueInfo2) HRESULT { return @as(*const IMSMQMessage4.VTable, @ptrCast(self.vtable)).putref_AdminQueueInfo_v2(@as(*const IMSMQMessage4, @ptrCast(self)), pqinfoAdmin); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQMessage4_get_ReceivedAuthenticationLevel(self: *const T, psReceivedAuthenticationLevel: ?*i16) HRESULT { return @as(*const IMSMQMessage4.VTable, @ptrCast(self.vtable)).get_ReceivedAuthenticationLevel(@as(*const IMSMQMessage4, @ptrCast(self)), psReceivedAuthenticationLevel); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQMessage4_get_ResponseQueueInfo(self: *const T, ppqinfoResponse: ?*?*IMSMQQueueInfo4) HRESULT { return @as(*const IMSMQMessage4.VTable, @ptrCast(self.vtable)).get_ResponseQueueInfo(@as(*const IMSMQMessage4, @ptrCast(self)), ppqinfoResponse); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQMessage4_putref_ResponseQueueInfo(self: *const T, pqinfoResponse: ?*IMSMQQueueInfo4) HRESULT { return @as(*const IMSMQMessage4.VTable, @ptrCast(self.vtable)).putref_ResponseQueueInfo(@as(*const IMSMQMessage4, @ptrCast(self)), pqinfoResponse); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQMessage4_get_AdminQueueInfo(self: *const T, ppqinfoAdmin: ?*?*IMSMQQueueInfo4) HRESULT { return @as(*const IMSMQMessage4.VTable, @ptrCast(self.vtable)).get_AdminQueueInfo(@as(*const IMSMQMessage4, @ptrCast(self)), ppqinfoAdmin); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQMessage4_putref_AdminQueueInfo(self: *const T, pqinfoAdmin: ?*IMSMQQueueInfo4) HRESULT { return @as(*const IMSMQMessage4.VTable, @ptrCast(self.vtable)).putref_AdminQueueInfo(@as(*const IMSMQMessage4, @ptrCast(self)), pqinfoAdmin); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQMessage4_get_ResponseDestination(self: *const T, ppdestResponse: ?*?*IDispatch) HRESULT { return @as(*const IMSMQMessage4.VTable, @ptrCast(self.vtable)).get_ResponseDestination(@as(*const IMSMQMessage4, @ptrCast(self)), ppdestResponse); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQMessage4_putref_ResponseDestination(self: *const T, pdestResponse: ?*IDispatch) HRESULT { return @as(*const IMSMQMessage4.VTable, @ptrCast(self.vtable)).putref_ResponseDestination(@as(*const IMSMQMessage4, @ptrCast(self)), pdestResponse); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQMessage4_get_Destination(self: *const T, ppdestDestination: ?*?*IDispatch) HRESULT { return @as(*const IMSMQMessage4.VTable, @ptrCast(self.vtable)).get_Destination(@as(*const IMSMQMessage4, @ptrCast(self)), ppdestDestination); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQMessage4_get_LookupId(self: *const T, pvarLookupId: ?*VARIANT) HRESULT { return @as(*const IMSMQMessage4.VTable, @ptrCast(self.vtable)).get_LookupId(@as(*const IMSMQMessage4, @ptrCast(self)), pvarLookupId); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQMessage4_get_IsAuthenticated2(self: *const T, pisAuthenticated: ?*i16) HRESULT { return @as(*const IMSMQMessage4.VTable, @ptrCast(self.vtable)).get_IsAuthenticated2(@as(*const IMSMQMessage4, @ptrCast(self)), pisAuthenticated); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQMessage4_get_IsFirstInTransaction2(self: *const T, pisFirstInXact: ?*i16) HRESULT { return @as(*const IMSMQMessage4.VTable, @ptrCast(self.vtable)).get_IsFirstInTransaction2(@as(*const IMSMQMessage4, @ptrCast(self)), pisFirstInXact); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQMessage4_get_IsLastInTransaction2(self: *const T, pisLastInXact: ?*i16) HRESULT { return @as(*const IMSMQMessage4.VTable, @ptrCast(self.vtable)).get_IsLastInTransaction2(@as(*const IMSMQMessage4, @ptrCast(self)), pisLastInXact); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQMessage4_AttachCurrentSecurityContext2(self: *const T) HRESULT { return @as(*const IMSMQMessage4.VTable, @ptrCast(self.vtable)).AttachCurrentSecurityContext2(@as(*const IMSMQMessage4, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQMessage4_get_SoapEnvelope(self: *const T, pbstrSoapEnvelope: ?*?BSTR) HRESULT { return @as(*const IMSMQMessage4.VTable, @ptrCast(self.vtable)).get_SoapEnvelope(@as(*const IMSMQMessage4, @ptrCast(self)), pbstrSoapEnvelope); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQMessage4_get_CompoundMessage(self: *const T, pvarCompoundMessage: ?*VARIANT) HRESULT { return @as(*const IMSMQMessage4.VTable, @ptrCast(self.vtable)).get_CompoundMessage(@as(*const IMSMQMessage4, @ptrCast(self)), pvarCompoundMessage); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQMessage4_put_SoapHeader(self: *const T, bstrSoapHeader: ?BSTR) HRESULT { return @as(*const IMSMQMessage4.VTable, @ptrCast(self.vtable)).put_SoapHeader(@as(*const IMSMQMessage4, @ptrCast(self)), bstrSoapHeader); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQMessage4_put_SoapBody(self: *const T, bstrSoapBody: ?BSTR) HRESULT { return @as(*const IMSMQMessage4.VTable, @ptrCast(self.vtable)).put_SoapBody(@as(*const IMSMQMessage4, @ptrCast(self)), bstrSoapBody); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IMSMQPrivateEvent_Value = Guid.initString("d7ab3341-c9d3-11d1-bb47-0080c7c5a2c0"); pub const IID_IMSMQPrivateEvent = &IID_IMSMQPrivateEvent_Value; pub const IMSMQPrivateEvent = extern struct { pub const VTable = extern struct { base: IDispatch.VTable, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Hwnd: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQPrivateEvent, phwnd: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQPrivateEvent, phwnd: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, FireArrivedEvent: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IMSMQPrivateEvent, pq: ?*IMSMQQueue, msgcursor: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IMSMQPrivateEvent, pq: ?*IMSMQQueue, msgcursor: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, FireArrivedErrorEvent: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IMSMQPrivateEvent, pq: ?*IMSMQQueue, hrStatus: HRESULT, msgcursor: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IMSMQPrivateEvent, pq: ?*IMSMQQueue, hrStatus: HRESULT, msgcursor: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IDispatch.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQPrivateEvent_get_Hwnd(self: *const T, phwnd: ?*i32) HRESULT { return @as(*const IMSMQPrivateEvent.VTable, @ptrCast(self.vtable)).get_Hwnd(@as(*const IMSMQPrivateEvent, @ptrCast(self)), phwnd); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQPrivateEvent_FireArrivedEvent(self: *const T, pq: ?*IMSMQQueue, msgcursor: i32) HRESULT { return @as(*const IMSMQPrivateEvent.VTable, @ptrCast(self.vtable)).FireArrivedEvent(@as(*const IMSMQPrivateEvent, @ptrCast(self)), pq, msgcursor); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQPrivateEvent_FireArrivedErrorEvent(self: *const T, pq: ?*IMSMQQueue, hrStatus: HRESULT, msgcursor: i32) HRESULT { return @as(*const IMSMQPrivateEvent.VTable, @ptrCast(self.vtable)).FireArrivedErrorEvent(@as(*const IMSMQPrivateEvent, @ptrCast(self)), pq, hrStatus, msgcursor); } }; } pub usingnamespace MethodMixin(@This()); }; const IID__DMSMQEventEvents_Value = Guid.initString("d7d6e078-dccd-11d0-aa4b-0060970debae"); pub const IID__DMSMQEventEvents = &IID__DMSMQEventEvents_Value; pub const _DMSMQEventEvents = extern struct { pub const VTable = extern struct { base: IDispatch.VTable, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IDispatch.MethodMixin(T); }; } pub usingnamespace MethodMixin(@This()); }; const IID_IMSMQTransaction2_Value = Guid.initString("2ce0c5b0-6e67-11d2-b0e6-00e02c074f6b"); pub const IID_IMSMQTransaction2 = &IID_IMSMQTransaction2_Value; pub const IMSMQTransaction2 = extern struct { pub const VTable = extern struct { base: IMSMQTransaction.VTable, InitNew: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IMSMQTransaction2, varTransaction: VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IMSMQTransaction2, varTransaction: VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Properties: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQTransaction2, ppcolProperties: ?*?*IDispatch, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQTransaction2, ppcolProperties: ?*?*IDispatch, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IMSMQTransaction.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQTransaction2_InitNew(self: *const T, varTransaction: VARIANT) HRESULT { return @as(*const IMSMQTransaction2.VTable, @ptrCast(self.vtable)).InitNew(@as(*const IMSMQTransaction2, @ptrCast(self)), varTransaction); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQTransaction2_get_Properties(self: *const T, ppcolProperties: ?*?*IDispatch) HRESULT { return @as(*const IMSMQTransaction2.VTable, @ptrCast(self.vtable)).get_Properties(@as(*const IMSMQTransaction2, @ptrCast(self)), ppcolProperties); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IMSMQTransaction3_Value = Guid.initString("eba96b13-2168-11d3-898c-00e02c074f6b"); pub const IID_IMSMQTransaction3 = &IID_IMSMQTransaction3_Value; pub const IMSMQTransaction3 = extern struct { pub const VTable = extern struct { base: IMSMQTransaction2.VTable, // TODO: this function has a "SpecialName", should Zig do anything with this? get_ITransaction: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQTransaction3, pvarITransaction: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQTransaction3, pvarITransaction: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IMSMQTransaction2.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQTransaction3_get_ITransaction(self: *const T, pvarITransaction: ?*VARIANT) HRESULT { return @as(*const IMSMQTransaction3.VTable, @ptrCast(self.vtable)).get_ITransaction(@as(*const IMSMQTransaction3, @ptrCast(self)), pvarITransaction); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IMSMQCoordinatedTransactionDispenser2_Value = Guid.initString("eba96b10-2168-11d3-898c-00e02c074f6b"); pub const IID_IMSMQCoordinatedTransactionDispenser2 = &IID_IMSMQCoordinatedTransactionDispenser2_Value; pub const IMSMQCoordinatedTransactionDispenser2 = extern struct { pub const VTable = extern struct { base: IDispatch.VTable, BeginTransaction: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IMSMQCoordinatedTransactionDispenser2, ptransaction: ?*?*IMSMQTransaction2, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IMSMQCoordinatedTransactionDispenser2, ptransaction: ?*?*IMSMQTransaction2, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Properties: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQCoordinatedTransactionDispenser2, ppcolProperties: ?*?*IDispatch, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQCoordinatedTransactionDispenser2, ppcolProperties: ?*?*IDispatch, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IDispatch.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQCoordinatedTransactionDispenser2_BeginTransaction(self: *const T, ptransaction: ?*?*IMSMQTransaction2) HRESULT { return @as(*const IMSMQCoordinatedTransactionDispenser2.VTable, @ptrCast(self.vtable)).BeginTransaction(@as(*const IMSMQCoordinatedTransactionDispenser2, @ptrCast(self)), ptransaction); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQCoordinatedTransactionDispenser2_get_Properties(self: *const T, ppcolProperties: ?*?*IDispatch) HRESULT { return @as(*const IMSMQCoordinatedTransactionDispenser2.VTable, @ptrCast(self.vtable)).get_Properties(@as(*const IMSMQCoordinatedTransactionDispenser2, @ptrCast(self)), ppcolProperties); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IMSMQCoordinatedTransactionDispenser3_Value = Guid.initString("eba96b14-2168-11d3-898c-00e02c074f6b"); pub const IID_IMSMQCoordinatedTransactionDispenser3 = &IID_IMSMQCoordinatedTransactionDispenser3_Value; pub const IMSMQCoordinatedTransactionDispenser3 = extern struct { pub const VTable = extern struct { base: IDispatch.VTable, BeginTransaction: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IMSMQCoordinatedTransactionDispenser3, ptransaction: ?*?*IMSMQTransaction3, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IMSMQCoordinatedTransactionDispenser3, ptransaction: ?*?*IMSMQTransaction3, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Properties: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQCoordinatedTransactionDispenser3, ppcolProperties: ?*?*IDispatch, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQCoordinatedTransactionDispenser3, ppcolProperties: ?*?*IDispatch, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IDispatch.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQCoordinatedTransactionDispenser3_BeginTransaction(self: *const T, ptransaction: ?*?*IMSMQTransaction3) HRESULT { return @as(*const IMSMQCoordinatedTransactionDispenser3.VTable, @ptrCast(self.vtable)).BeginTransaction(@as(*const IMSMQCoordinatedTransactionDispenser3, @ptrCast(self)), ptransaction); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQCoordinatedTransactionDispenser3_get_Properties(self: *const T, ppcolProperties: ?*?*IDispatch) HRESULT { return @as(*const IMSMQCoordinatedTransactionDispenser3.VTable, @ptrCast(self.vtable)).get_Properties(@as(*const IMSMQCoordinatedTransactionDispenser3, @ptrCast(self)), ppcolProperties); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IMSMQTransactionDispenser2_Value = Guid.initString("eba96b11-2168-11d3-898c-00e02c074f6b"); pub const IID_IMSMQTransactionDispenser2 = &IID_IMSMQTransactionDispenser2_Value; pub const IMSMQTransactionDispenser2 = extern struct { pub const VTable = extern struct { base: IDispatch.VTable, BeginTransaction: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IMSMQTransactionDispenser2, ptransaction: ?*?*IMSMQTransaction2, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IMSMQTransactionDispenser2, ptransaction: ?*?*IMSMQTransaction2, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Properties: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQTransactionDispenser2, ppcolProperties: ?*?*IDispatch, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQTransactionDispenser2, ppcolProperties: ?*?*IDispatch, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IDispatch.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQTransactionDispenser2_BeginTransaction(self: *const T, ptransaction: ?*?*IMSMQTransaction2) HRESULT { return @as(*const IMSMQTransactionDispenser2.VTable, @ptrCast(self.vtable)).BeginTransaction(@as(*const IMSMQTransactionDispenser2, @ptrCast(self)), ptransaction); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQTransactionDispenser2_get_Properties(self: *const T, ppcolProperties: ?*?*IDispatch) HRESULT { return @as(*const IMSMQTransactionDispenser2.VTable, @ptrCast(self.vtable)).get_Properties(@as(*const IMSMQTransactionDispenser2, @ptrCast(self)), ppcolProperties); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IMSMQTransactionDispenser3_Value = Guid.initString("eba96b15-2168-11d3-898c-00e02c074f6b"); pub const IID_IMSMQTransactionDispenser3 = &IID_IMSMQTransactionDispenser3_Value; pub const IMSMQTransactionDispenser3 = extern struct { pub const VTable = extern struct { base: IDispatch.VTable, BeginTransaction: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IMSMQTransactionDispenser3, ptransaction: ?*?*IMSMQTransaction3, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IMSMQTransactionDispenser3, ptransaction: ?*?*IMSMQTransaction3, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Properties: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQTransactionDispenser3, ppcolProperties: ?*?*IDispatch, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQTransactionDispenser3, ppcolProperties: ?*?*IDispatch, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IDispatch.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQTransactionDispenser3_BeginTransaction(self: *const T, ptransaction: ?*?*IMSMQTransaction3) HRESULT { return @as(*const IMSMQTransactionDispenser3.VTable, @ptrCast(self.vtable)).BeginTransaction(@as(*const IMSMQTransactionDispenser3, @ptrCast(self)), ptransaction); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQTransactionDispenser3_get_Properties(self: *const T, ppcolProperties: ?*?*IDispatch) HRESULT { return @as(*const IMSMQTransactionDispenser3.VTable, @ptrCast(self.vtable)).get_Properties(@as(*const IMSMQTransactionDispenser3, @ptrCast(self)), ppcolProperties); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IMSMQApplication_Value = Guid.initString("d7d6e085-dccd-11d0-aa4b-0060970debae"); pub const IID_IMSMQApplication = &IID_IMSMQApplication_Value; pub const IMSMQApplication = extern struct { pub const VTable = extern struct { base: IDispatch.VTable, MachineIdOfMachineName: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IMSMQApplication, MachineName: ?BSTR, pbstrGuid: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IMSMQApplication, MachineName: ?BSTR, pbstrGuid: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IDispatch.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQApplication_MachineIdOfMachineName(self: *const T, MachineName: ?BSTR, pbstrGuid: ?*?BSTR) HRESULT { return @as(*const IMSMQApplication.VTable, @ptrCast(self.vtable)).MachineIdOfMachineName(@as(*const IMSMQApplication, @ptrCast(self)), MachineName, pbstrGuid); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IMSMQApplication2_Value = Guid.initString("12a30900-7300-11d2-b0e6-00e02c074f6b"); pub const IID_IMSMQApplication2 = &IID_IMSMQApplication2_Value; pub const IMSMQApplication2 = extern struct { pub const VTable = extern struct { base: IMSMQApplication.VTable, RegisterCertificate: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IMSMQApplication2, Flags: ?*VARIANT, ExternalCertificate: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IMSMQApplication2, Flags: ?*VARIANT, ExternalCertificate: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, MachineNameOfMachineId: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IMSMQApplication2, bstrGuid: ?BSTR, pbstrMachineName: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IMSMQApplication2, bstrGuid: ?BSTR, pbstrMachineName: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_MSMQVersionMajor: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQApplication2, psMSMQVersionMajor: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQApplication2, psMSMQVersionMajor: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_MSMQVersionMinor: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQApplication2, psMSMQVersionMinor: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQApplication2, psMSMQVersionMinor: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_MSMQVersionBuild: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQApplication2, psMSMQVersionBuild: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQApplication2, psMSMQVersionBuild: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_IsDsEnabled: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQApplication2, pfIsDsEnabled: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQApplication2, pfIsDsEnabled: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Properties: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQApplication2, ppcolProperties: ?*?*IDispatch, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQApplication2, ppcolProperties: ?*?*IDispatch, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IMSMQApplication.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQApplication2_RegisterCertificate(self: *const T, Flags: ?*VARIANT, ExternalCertificate: ?*VARIANT) HRESULT { return @as(*const IMSMQApplication2.VTable, @ptrCast(self.vtable)).RegisterCertificate(@as(*const IMSMQApplication2, @ptrCast(self)), Flags, ExternalCertificate); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQApplication2_MachineNameOfMachineId(self: *const T, bstrGuid: ?BSTR, pbstrMachineName: ?*?BSTR) HRESULT { return @as(*const IMSMQApplication2.VTable, @ptrCast(self.vtable)).MachineNameOfMachineId(@as(*const IMSMQApplication2, @ptrCast(self)), bstrGuid, pbstrMachineName); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQApplication2_get_MSMQVersionMajor(self: *const T, psMSMQVersionMajor: ?*i16) HRESULT { return @as(*const IMSMQApplication2.VTable, @ptrCast(self.vtable)).get_MSMQVersionMajor(@as(*const IMSMQApplication2, @ptrCast(self)), psMSMQVersionMajor); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQApplication2_get_MSMQVersionMinor(self: *const T, psMSMQVersionMinor: ?*i16) HRESULT { return @as(*const IMSMQApplication2.VTable, @ptrCast(self.vtable)).get_MSMQVersionMinor(@as(*const IMSMQApplication2, @ptrCast(self)), psMSMQVersionMinor); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQApplication2_get_MSMQVersionBuild(self: *const T, psMSMQVersionBuild: ?*i16) HRESULT { return @as(*const IMSMQApplication2.VTable, @ptrCast(self.vtable)).get_MSMQVersionBuild(@as(*const IMSMQApplication2, @ptrCast(self)), psMSMQVersionBuild); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQApplication2_get_IsDsEnabled(self: *const T, pfIsDsEnabled: ?*i16) HRESULT { return @as(*const IMSMQApplication2.VTable, @ptrCast(self.vtable)).get_IsDsEnabled(@as(*const IMSMQApplication2, @ptrCast(self)), pfIsDsEnabled); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQApplication2_get_Properties(self: *const T, ppcolProperties: ?*?*IDispatch) HRESULT { return @as(*const IMSMQApplication2.VTable, @ptrCast(self.vtable)).get_Properties(@as(*const IMSMQApplication2, @ptrCast(self)), ppcolProperties); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IMSMQApplication3_Value = Guid.initString("eba96b1f-2168-11d3-898c-00e02c074f6b"); pub const IID_IMSMQApplication3 = &IID_IMSMQApplication3_Value; pub const IMSMQApplication3 = extern struct { pub const VTable = extern struct { base: IMSMQApplication2.VTable, // TODO: this function has a "SpecialName", should Zig do anything with this? get_ActiveQueues: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQApplication3, pvActiveQueues: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQApplication3, pvActiveQueues: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_PrivateQueues: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQApplication3, pvPrivateQueues: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQApplication3, pvPrivateQueues: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_DirectoryServiceServer: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQApplication3, pbstrDirectoryServiceServer: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQApplication3, pbstrDirectoryServiceServer: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_IsConnected: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQApplication3, pfIsConnected: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQApplication3, pfIsConnected: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_BytesInAllQueues: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQApplication3, pvBytesInAllQueues: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQApplication3, pvBytesInAllQueues: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_Machine: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQApplication3, bstrMachine: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQApplication3, bstrMachine: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Machine: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQApplication3, pbstrMachine: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQApplication3, pbstrMachine: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Connect: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IMSMQApplication3, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IMSMQApplication3, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Disconnect: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IMSMQApplication3, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IMSMQApplication3, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Tidy: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IMSMQApplication3, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IMSMQApplication3, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IMSMQApplication2.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQApplication3_get_ActiveQueues(self: *const T, pvActiveQueues: ?*VARIANT) HRESULT { return @as(*const IMSMQApplication3.VTable, @ptrCast(self.vtable)).get_ActiveQueues(@as(*const IMSMQApplication3, @ptrCast(self)), pvActiveQueues); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQApplication3_get_PrivateQueues(self: *const T, pvPrivateQueues: ?*VARIANT) HRESULT { return @as(*const IMSMQApplication3.VTable, @ptrCast(self.vtable)).get_PrivateQueues(@as(*const IMSMQApplication3, @ptrCast(self)), pvPrivateQueues); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQApplication3_get_DirectoryServiceServer(self: *const T, pbstrDirectoryServiceServer: ?*?BSTR) HRESULT { return @as(*const IMSMQApplication3.VTable, @ptrCast(self.vtable)).get_DirectoryServiceServer(@as(*const IMSMQApplication3, @ptrCast(self)), pbstrDirectoryServiceServer); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQApplication3_get_IsConnected(self: *const T, pfIsConnected: ?*i16) HRESULT { return @as(*const IMSMQApplication3.VTable, @ptrCast(self.vtable)).get_IsConnected(@as(*const IMSMQApplication3, @ptrCast(self)), pfIsConnected); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQApplication3_get_BytesInAllQueues(self: *const T, pvBytesInAllQueues: ?*VARIANT) HRESULT { return @as(*const IMSMQApplication3.VTable, @ptrCast(self.vtable)).get_BytesInAllQueues(@as(*const IMSMQApplication3, @ptrCast(self)), pvBytesInAllQueues); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQApplication3_put_Machine(self: *const T, bstrMachine: ?BSTR) HRESULT { return @as(*const IMSMQApplication3.VTable, @ptrCast(self.vtable)).put_Machine(@as(*const IMSMQApplication3, @ptrCast(self)), bstrMachine); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQApplication3_get_Machine(self: *const T, pbstrMachine: ?*?BSTR) HRESULT { return @as(*const IMSMQApplication3.VTable, @ptrCast(self.vtable)).get_Machine(@as(*const IMSMQApplication3, @ptrCast(self)), pbstrMachine); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQApplication3_Connect(self: *const T) HRESULT { return @as(*const IMSMQApplication3.VTable, @ptrCast(self.vtable)).Connect(@as(*const IMSMQApplication3, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQApplication3_Disconnect(self: *const T) HRESULT { return @as(*const IMSMQApplication3.VTable, @ptrCast(self.vtable)).Disconnect(@as(*const IMSMQApplication3, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQApplication3_Tidy(self: *const T) HRESULT { return @as(*const IMSMQApplication3.VTable, @ptrCast(self.vtable)).Tidy(@as(*const IMSMQApplication3, @ptrCast(self))); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IMSMQDestination_Value = Guid.initString("eba96b16-2168-11d3-898c-00e02c074f6b"); pub const IID_IMSMQDestination = &IID_IMSMQDestination_Value; pub const IMSMQDestination = extern struct { pub const VTable = extern struct { base: IDispatch.VTable, Open: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IMSMQDestination, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IMSMQDestination, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Close: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IMSMQDestination, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IMSMQDestination, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_IsOpen: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQDestination, pfIsOpen: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQDestination, pfIsOpen: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_IADs: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQDestination, ppIADs: ?*?*IDispatch, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQDestination, ppIADs: ?*?*IDispatch, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, putref_IADs: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IMSMQDestination, pIADs: ?*IDispatch, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IMSMQDestination, pIADs: ?*IDispatch, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_ADsPath: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQDestination, pbstrADsPath: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQDestination, pbstrADsPath: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_ADsPath: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQDestination, bstrADsPath: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQDestination, bstrADsPath: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_PathName: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQDestination, pbstrPathName: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQDestination, pbstrPathName: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_PathName: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQDestination, bstrPathName: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQDestination, bstrPathName: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_FormatName: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQDestination, pbstrFormatName: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQDestination, pbstrFormatName: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_FormatName: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQDestination, bstrFormatName: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQDestination, bstrFormatName: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Destinations: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQDestination, ppDestinations: ?*?*IDispatch, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQDestination, ppDestinations: ?*?*IDispatch, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, putref_Destinations: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IMSMQDestination, pDestinations: ?*IDispatch, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IMSMQDestination, pDestinations: ?*IDispatch, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Properties: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQDestination, ppcolProperties: ?*?*IDispatch, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQDestination, ppcolProperties: ?*?*IDispatch, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IDispatch.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQDestination_Open(self: *const T) HRESULT { return @as(*const IMSMQDestination.VTable, @ptrCast(self.vtable)).Open(@as(*const IMSMQDestination, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQDestination_Close(self: *const T) HRESULT { return @as(*const IMSMQDestination.VTable, @ptrCast(self.vtable)).Close(@as(*const IMSMQDestination, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQDestination_get_IsOpen(self: *const T, pfIsOpen: ?*i16) HRESULT { return @as(*const IMSMQDestination.VTable, @ptrCast(self.vtable)).get_IsOpen(@as(*const IMSMQDestination, @ptrCast(self)), pfIsOpen); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQDestination_get_IADs(self: *const T, ppIADs: ?*?*IDispatch) HRESULT { return @as(*const IMSMQDestination.VTable, @ptrCast(self.vtable)).get_IADs(@as(*const IMSMQDestination, @ptrCast(self)), ppIADs); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQDestination_putref_IADs(self: *const T, pIADs: ?*IDispatch) HRESULT { return @as(*const IMSMQDestination.VTable, @ptrCast(self.vtable)).putref_IADs(@as(*const IMSMQDestination, @ptrCast(self)), pIADs); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQDestination_get_ADsPath(self: *const T, pbstrADsPath: ?*?BSTR) HRESULT { return @as(*const IMSMQDestination.VTable, @ptrCast(self.vtable)).get_ADsPath(@as(*const IMSMQDestination, @ptrCast(self)), pbstrADsPath); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQDestination_put_ADsPath(self: *const T, bstrADsPath: ?BSTR) HRESULT { return @as(*const IMSMQDestination.VTable, @ptrCast(self.vtable)).put_ADsPath(@as(*const IMSMQDestination, @ptrCast(self)), bstrADsPath); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQDestination_get_PathName(self: *const T, pbstrPathName: ?*?BSTR) HRESULT { return @as(*const IMSMQDestination.VTable, @ptrCast(self.vtable)).get_PathName(@as(*const IMSMQDestination, @ptrCast(self)), pbstrPathName); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQDestination_put_PathName(self: *const T, bstrPathName: ?BSTR) HRESULT { return @as(*const IMSMQDestination.VTable, @ptrCast(self.vtable)).put_PathName(@as(*const IMSMQDestination, @ptrCast(self)), bstrPathName); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQDestination_get_FormatName(self: *const T, pbstrFormatName: ?*?BSTR) HRESULT { return @as(*const IMSMQDestination.VTable, @ptrCast(self.vtable)).get_FormatName(@as(*const IMSMQDestination, @ptrCast(self)), pbstrFormatName); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQDestination_put_FormatName(self: *const T, bstrFormatName: ?BSTR) HRESULT { return @as(*const IMSMQDestination.VTable, @ptrCast(self.vtable)).put_FormatName(@as(*const IMSMQDestination, @ptrCast(self)), bstrFormatName); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQDestination_get_Destinations(self: *const T, ppDestinations: ?*?*IDispatch) HRESULT { return @as(*const IMSMQDestination.VTable, @ptrCast(self.vtable)).get_Destinations(@as(*const IMSMQDestination, @ptrCast(self)), ppDestinations); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQDestination_putref_Destinations(self: *const T, pDestinations: ?*IDispatch) HRESULT { return @as(*const IMSMQDestination.VTable, @ptrCast(self.vtable)).putref_Destinations(@as(*const IMSMQDestination, @ptrCast(self)), pDestinations); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQDestination_get_Properties(self: *const T, ppcolProperties: ?*?*IDispatch) HRESULT { return @as(*const IMSMQDestination.VTable, @ptrCast(self.vtable)).get_Properties(@as(*const IMSMQDestination, @ptrCast(self)), ppcolProperties); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IMSMQPrivateDestination_Value = Guid.initString("eba96b17-2168-11d3-898c-00e02c074f6b"); pub const IID_IMSMQPrivateDestination = &IID_IMSMQPrivateDestination_Value; pub const IMSMQPrivateDestination = extern struct { pub const VTable = extern struct { base: IDispatch.VTable, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Handle: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQPrivateDestination, pvarHandle: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQPrivateDestination, pvarHandle: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_Handle: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQPrivateDestination, varHandle: VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQPrivateDestination, varHandle: VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IDispatch.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQPrivateDestination_get_Handle(self: *const T, pvarHandle: ?*VARIANT) HRESULT { return @as(*const IMSMQPrivateDestination.VTable, @ptrCast(self.vtable)).get_Handle(@as(*const IMSMQPrivateDestination, @ptrCast(self)), pvarHandle); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQPrivateDestination_put_Handle(self: *const T, varHandle: VARIANT) HRESULT { return @as(*const IMSMQPrivateDestination.VTable, @ptrCast(self.vtable)).put_Handle(@as(*const IMSMQPrivateDestination, @ptrCast(self)), varHandle); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IMSMQCollection_Value = Guid.initString("0188ac2f-ecb3-4173-9779-635ca2039c72"); pub const IID_IMSMQCollection = &IID_IMSMQCollection_Value; pub const IMSMQCollection = extern struct { pub const VTable = extern struct { base: IDispatch.VTable, Item: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IMSMQCollection, Index: ?*VARIANT, pvarRet: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IMSMQCollection, Index: ?*VARIANT, pvarRet: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Count: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQCollection, pCount: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQCollection, pCount: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, _NewEnum: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IMSMQCollection, ppunk: ?*?*IUnknown, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IMSMQCollection, ppunk: ?*?*IUnknown, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IDispatch.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQCollection_Item(self: *const T, Index: ?*VARIANT, pvarRet: ?*VARIANT) HRESULT { return @as(*const IMSMQCollection.VTable, @ptrCast(self.vtable)).Item(@as(*const IMSMQCollection, @ptrCast(self)), Index, pvarRet); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQCollection_get_Count(self: *const T, pCount: ?*i32) HRESULT { return @as(*const IMSMQCollection.VTable, @ptrCast(self.vtable)).get_Count(@as(*const IMSMQCollection, @ptrCast(self)), pCount); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQCollection__NewEnum(self: *const T, ppunk: ?*?*IUnknown) HRESULT { return @as(*const IMSMQCollection.VTable, @ptrCast(self.vtable))._NewEnum(@as(*const IMSMQCollection, @ptrCast(self)), ppunk); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IMSMQManagement_Value = Guid.initString("be5f0241-e489-4957-8cc4-a452fcf3e23e"); pub const IID_IMSMQManagement = &IID_IMSMQManagement_Value; pub const IMSMQManagement = extern struct { pub const VTable = extern struct { base: IDispatch.VTable, Init: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IMSMQManagement, Machine: ?*VARIANT, Pathname: ?*VARIANT, FormatName: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IMSMQManagement, Machine: ?*VARIANT, Pathname: ?*VARIANT, FormatName: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_FormatName: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQManagement, pbstrFormatName: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQManagement, pbstrFormatName: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Machine: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQManagement, pbstrMachine: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQManagement, pbstrMachine: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_MessageCount: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQManagement, plMessageCount: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQManagement, plMessageCount: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_ForeignStatus: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQManagement, plForeignStatus: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQManagement, plForeignStatus: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_QueueType: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQManagement, plQueueType: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQManagement, plQueueType: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_IsLocal: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQManagement, pfIsLocal: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQManagement, pfIsLocal: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_TransactionalStatus: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQManagement, plTransactionalStatus: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQManagement, plTransactionalStatus: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_BytesInQueue: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQManagement, pvBytesInQueue: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQManagement, pvBytesInQueue: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IDispatch.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQManagement_Init(self: *const T, Machine: ?*VARIANT, Pathname: ?*VARIANT, FormatName: ?*VARIANT) HRESULT { return @as(*const IMSMQManagement.VTable, @ptrCast(self.vtable)).Init(@as(*const IMSMQManagement, @ptrCast(self)), Machine, Pathname, FormatName); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQManagement_get_FormatName(self: *const T, pbstrFormatName: ?*?BSTR) HRESULT { return @as(*const IMSMQManagement.VTable, @ptrCast(self.vtable)).get_FormatName(@as(*const IMSMQManagement, @ptrCast(self)), pbstrFormatName); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQManagement_get_Machine(self: *const T, pbstrMachine: ?*?BSTR) HRESULT { return @as(*const IMSMQManagement.VTable, @ptrCast(self.vtable)).get_Machine(@as(*const IMSMQManagement, @ptrCast(self)), pbstrMachine); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQManagement_get_MessageCount(self: *const T, plMessageCount: ?*i32) HRESULT { return @as(*const IMSMQManagement.VTable, @ptrCast(self.vtable)).get_MessageCount(@as(*const IMSMQManagement, @ptrCast(self)), plMessageCount); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQManagement_get_ForeignStatus(self: *const T, plForeignStatus: ?*i32) HRESULT { return @as(*const IMSMQManagement.VTable, @ptrCast(self.vtable)).get_ForeignStatus(@as(*const IMSMQManagement, @ptrCast(self)), plForeignStatus); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQManagement_get_QueueType(self: *const T, plQueueType: ?*i32) HRESULT { return @as(*const IMSMQManagement.VTable, @ptrCast(self.vtable)).get_QueueType(@as(*const IMSMQManagement, @ptrCast(self)), plQueueType); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQManagement_get_IsLocal(self: *const T, pfIsLocal: ?*i16) HRESULT { return @as(*const IMSMQManagement.VTable, @ptrCast(self.vtable)).get_IsLocal(@as(*const IMSMQManagement, @ptrCast(self)), pfIsLocal); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQManagement_get_TransactionalStatus(self: *const T, plTransactionalStatus: ?*i32) HRESULT { return @as(*const IMSMQManagement.VTable, @ptrCast(self.vtable)).get_TransactionalStatus(@as(*const IMSMQManagement, @ptrCast(self)), plTransactionalStatus); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQManagement_get_BytesInQueue(self: *const T, pvBytesInQueue: ?*VARIANT) HRESULT { return @as(*const IMSMQManagement.VTable, @ptrCast(self.vtable)).get_BytesInQueue(@as(*const IMSMQManagement, @ptrCast(self)), pvBytesInQueue); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IMSMQOutgoingQueueManagement_Value = Guid.initString("64c478fb-f9b0-4695-8a7f-439ac94326d3"); pub const IID_IMSMQOutgoingQueueManagement = &IID_IMSMQOutgoingQueueManagement_Value; pub const IMSMQOutgoingQueueManagement = extern struct { pub const VTable = extern struct { base: IMSMQManagement.VTable, // TODO: this function has a "SpecialName", should Zig do anything with this? get_State: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQOutgoingQueueManagement, plState: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQOutgoingQueueManagement, plState: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_NextHops: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQOutgoingQueueManagement, pvNextHops: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQOutgoingQueueManagement, pvNextHops: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, EodGetSendInfo: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IMSMQOutgoingQueueManagement, ppCollection: ?*?*IMSMQCollection, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IMSMQOutgoingQueueManagement, ppCollection: ?*?*IMSMQCollection, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Resume: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IMSMQOutgoingQueueManagement, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IMSMQOutgoingQueueManagement, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Pause: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IMSMQOutgoingQueueManagement, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IMSMQOutgoingQueueManagement, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, EodResend: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IMSMQOutgoingQueueManagement, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IMSMQOutgoingQueueManagement, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IMSMQManagement.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQOutgoingQueueManagement_get_State(self: *const T, plState: ?*i32) HRESULT { return @as(*const IMSMQOutgoingQueueManagement.VTable, @ptrCast(self.vtable)).get_State(@as(*const IMSMQOutgoingQueueManagement, @ptrCast(self)), plState); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQOutgoingQueueManagement_get_NextHops(self: *const T, pvNextHops: ?*VARIANT) HRESULT { return @as(*const IMSMQOutgoingQueueManagement.VTable, @ptrCast(self.vtable)).get_NextHops(@as(*const IMSMQOutgoingQueueManagement, @ptrCast(self)), pvNextHops); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQOutgoingQueueManagement_EodGetSendInfo(self: *const T, ppCollection: ?*?*IMSMQCollection) HRESULT { return @as(*const IMSMQOutgoingQueueManagement.VTable, @ptrCast(self.vtable)).EodGetSendInfo(@as(*const IMSMQOutgoingQueueManagement, @ptrCast(self)), ppCollection); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQOutgoingQueueManagement_Resume(self: *const T) HRESULT { return @as(*const IMSMQOutgoingQueueManagement.VTable, @ptrCast(self.vtable)).Resume(@as(*const IMSMQOutgoingQueueManagement, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQOutgoingQueueManagement_Pause(self: *const T) HRESULT { return @as(*const IMSMQOutgoingQueueManagement.VTable, @ptrCast(self.vtable)).Pause(@as(*const IMSMQOutgoingQueueManagement, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQOutgoingQueueManagement_EodResend(self: *const T) HRESULT { return @as(*const IMSMQOutgoingQueueManagement.VTable, @ptrCast(self.vtable)).EodResend(@as(*const IMSMQOutgoingQueueManagement, @ptrCast(self))); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IMSMQQueueManagement_Value = Guid.initString("7fbe7759-5760-444d-b8a5-5e7ab9a84cce"); pub const IID_IMSMQQueueManagement = &IID_IMSMQQueueManagement_Value; pub const IMSMQQueueManagement = extern struct { pub const VTable = extern struct { base: IMSMQManagement.VTable, // TODO: this function has a "SpecialName", should Zig do anything with this? get_JournalMessageCount: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQQueueManagement, plJournalMessageCount: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQQueueManagement, plJournalMessageCount: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_BytesInJournal: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMSMQQueueManagement, pvBytesInJournal: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMSMQQueueManagement, pvBytesInJournal: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, EodGetReceiveInfo: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IMSMQQueueManagement, pvCollection: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IMSMQQueueManagement, pvCollection: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IMSMQManagement.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQQueueManagement_get_JournalMessageCount(self: *const T, plJournalMessageCount: ?*i32) HRESULT { return @as(*const IMSMQQueueManagement.VTable, @ptrCast(self.vtable)).get_JournalMessageCount(@as(*const IMSMQQueueManagement, @ptrCast(self)), plJournalMessageCount); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQQueueManagement_get_BytesInJournal(self: *const T, pvBytesInJournal: ?*VARIANT) HRESULT { return @as(*const IMSMQQueueManagement.VTable, @ptrCast(self.vtable)).get_BytesInJournal(@as(*const IMSMQQueueManagement, @ptrCast(self)), pvBytesInJournal); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSMQQueueManagement_EodGetReceiveInfo(self: *const T, pvCollection: ?*VARIANT) HRESULT { return @as(*const IMSMQQueueManagement.VTable, @ptrCast(self.vtable)).EodGetReceiveInfo(@as(*const IMSMQQueueManagement, @ptrCast(self)), pvCollection); } }; } pub usingnamespace MethodMixin(@This()); }; //-------------------------------------------------------------------------------- // Section: Functions (0) //-------------------------------------------------------------------------------- //-------------------------------------------------------------------------------- // Section: Unicode Aliases (0) //-------------------------------------------------------------------------------- const thismodule = @This(); pub usingnamespace switch (@import("../zig.zig").unicode_mode) { .ansi => struct {}, .wide => struct {}, .unspecified => if (@import("builtin").is_test) struct {} else struct {}, }; //-------------------------------------------------------------------------------- // Section: Imports (6) //-------------------------------------------------------------------------------- const Guid = @import("../zig.zig").Guid; const BSTR = @import("../foundation.zig").BSTR; const HRESULT = @import("../foundation.zig").HRESULT; const IDispatch = @import("../system/com.zig").IDispatch; const IUnknown = @import("../system/com.zig").IUnknown; const VARIANT = @import("../system/com.zig").VARIANT; test { @setEvalBranchQuota(comptime @import("std").meta.declarations(@This()).len * 3); // reference all the pub declarations if (!@import("builtin").is_test) return; inline for (comptime @import("std").meta.declarations(@This())) |decl| { if (decl.is_pub) { _ = @field(@This(), decl.name); } } }
0
repos/capy/vendor/zigwin32/win32
repos/capy/vendor/zigwin32/win32/system/mixed_reality.zig
//! NOTE: this file is autogenerated, DO NOT MODIFY //-------------------------------------------------------------------------------- // Section: Constants (1) //-------------------------------------------------------------------------------- pub const PERCEPTIONFIELD_StateStream_TimeStamps = Guid.initString("aa886119-f32f-49bf-92ca-f9ddf784d297"); //-------------------------------------------------------------------------------- // Section: Types (2) //-------------------------------------------------------------------------------- pub const PERCEPTION_PAYLOAD_FIELD = extern struct { FieldId: Guid, OffsetInBytes: u32, SizeInBytes: u32, }; pub const PERCEPTION_STATE_STREAM_TIMESTAMPS = extern struct { InputTimestampInQpcCounts: i64, AvailableTimestampInQpcCounts: i64, }; //-------------------------------------------------------------------------------- // Section: Functions (0) //-------------------------------------------------------------------------------- //-------------------------------------------------------------------------------- // Section: Unicode Aliases (0) //-------------------------------------------------------------------------------- const thismodule = @This(); pub usingnamespace switch (@import("../zig.zig").unicode_mode) { .ansi => struct {}, .wide => struct {}, .unspecified => if (@import("builtin").is_test) struct {} else struct {}, }; //-------------------------------------------------------------------------------- // Section: Imports (1) //-------------------------------------------------------------------------------- const Guid = @import("../zig.zig").Guid; test { @setEvalBranchQuota(comptime @import("std").meta.declarations(@This()).len * 3); // reference all the pub declarations if (!@import("builtin").is_test) return; inline for (comptime @import("std").meta.declarations(@This())) |decl| { if (decl.is_pub) { _ = @field(@This(), decl.name); } } }
0
repos/capy/vendor/zigwin32/win32
repos/capy/vendor/zigwin32/win32/system/library_loader.zig
//! NOTE: this file is autogenerated, DO NOT MODIFY //-------------------------------------------------------------------------------- // Section: Constants (14) //-------------------------------------------------------------------------------- pub const FIND_RESOURCE_DIRECTORY_TYPES = @as(u32, 256); pub const FIND_RESOURCE_DIRECTORY_NAMES = @as(u32, 512); pub const FIND_RESOURCE_DIRECTORY_LANGUAGES = @as(u32, 1024); pub const RESOURCE_ENUM_LN = @as(u32, 1); pub const RESOURCE_ENUM_MUI = @as(u32, 2); pub const RESOURCE_ENUM_MUI_SYSTEM = @as(u32, 4); pub const RESOURCE_ENUM_VALIDATE = @as(u32, 8); pub const RESOURCE_ENUM_MODULE_EXACT = @as(u32, 16); pub const SUPPORT_LANG_NUMBER = @as(u32, 32); pub const GET_MODULE_HANDLE_EX_FLAG_PIN = @as(u32, 1); pub const GET_MODULE_HANDLE_EX_FLAG_UNCHANGED_REFCOUNT = @as(u32, 2); pub const GET_MODULE_HANDLE_EX_FLAG_FROM_ADDRESS = @as(u32, 4); pub const CURRENT_IMPORT_REDIRECTION_VERSION = @as(u32, 1); pub const LOAD_LIBRARY_OS_INTEGRITY_CONTINUITY = @as(u32, 32768); //-------------------------------------------------------------------------------- // Section: Types (12) //-------------------------------------------------------------------------------- pub const LOAD_LIBRARY_FLAGS = enum(u32) { DONT_RESOLVE_DLL_REFERENCES = 1, LOAD_LIBRARY_AS_DATAFILE = 2, LOAD_WITH_ALTERED_SEARCH_PATH = 8, LOAD_IGNORE_CODE_AUTHZ_LEVEL = 16, LOAD_LIBRARY_AS_IMAGE_RESOURCE = 32, LOAD_LIBRARY_AS_DATAFILE_EXCLUSIVE = 64, LOAD_LIBRARY_REQUIRE_SIGNED_TARGET = 128, LOAD_LIBRARY_SEARCH_DLL_LOAD_DIR = 256, LOAD_LIBRARY_SEARCH_APPLICATION_DIR = 512, LOAD_LIBRARY_SEARCH_USER_DIRS = 1024, LOAD_LIBRARY_SEARCH_SYSTEM32 = 2048, LOAD_LIBRARY_SEARCH_DEFAULT_DIRS = 4096, LOAD_LIBRARY_SAFE_CURRENT_DIRS = 8192, LOAD_LIBRARY_SEARCH_SYSTEM32_NO_FORWARDER = 16384, _, pub fn initFlags(o: struct { DONT_RESOLVE_DLL_REFERENCES: u1 = 0, LOAD_LIBRARY_AS_DATAFILE: u1 = 0, LOAD_WITH_ALTERED_SEARCH_PATH: u1 = 0, LOAD_IGNORE_CODE_AUTHZ_LEVEL: u1 = 0, LOAD_LIBRARY_AS_IMAGE_RESOURCE: u1 = 0, LOAD_LIBRARY_AS_DATAFILE_EXCLUSIVE: u1 = 0, LOAD_LIBRARY_REQUIRE_SIGNED_TARGET: u1 = 0, LOAD_LIBRARY_SEARCH_DLL_LOAD_DIR: u1 = 0, LOAD_LIBRARY_SEARCH_APPLICATION_DIR: u1 = 0, LOAD_LIBRARY_SEARCH_USER_DIRS: u1 = 0, LOAD_LIBRARY_SEARCH_SYSTEM32: u1 = 0, LOAD_LIBRARY_SEARCH_DEFAULT_DIRS: u1 = 0, LOAD_LIBRARY_SAFE_CURRENT_DIRS: u1 = 0, LOAD_LIBRARY_SEARCH_SYSTEM32_NO_FORWARDER: u1 = 0, }) LOAD_LIBRARY_FLAGS { return @as(LOAD_LIBRARY_FLAGS, @enumFromInt((if (o.DONT_RESOLVE_DLL_REFERENCES == 1) @intFromEnum(LOAD_LIBRARY_FLAGS.DONT_RESOLVE_DLL_REFERENCES) else 0) | (if (o.LOAD_LIBRARY_AS_DATAFILE == 1) @intFromEnum(LOAD_LIBRARY_FLAGS.LOAD_LIBRARY_AS_DATAFILE) else 0) | (if (o.LOAD_WITH_ALTERED_SEARCH_PATH == 1) @intFromEnum(LOAD_LIBRARY_FLAGS.LOAD_WITH_ALTERED_SEARCH_PATH) else 0) | (if (o.LOAD_IGNORE_CODE_AUTHZ_LEVEL == 1) @intFromEnum(LOAD_LIBRARY_FLAGS.LOAD_IGNORE_CODE_AUTHZ_LEVEL) else 0) | (if (o.LOAD_LIBRARY_AS_IMAGE_RESOURCE == 1) @intFromEnum(LOAD_LIBRARY_FLAGS.LOAD_LIBRARY_AS_IMAGE_RESOURCE) else 0) | (if (o.LOAD_LIBRARY_AS_DATAFILE_EXCLUSIVE == 1) @intFromEnum(LOAD_LIBRARY_FLAGS.LOAD_LIBRARY_AS_DATAFILE_EXCLUSIVE) else 0) | (if (o.LOAD_LIBRARY_REQUIRE_SIGNED_TARGET == 1) @intFromEnum(LOAD_LIBRARY_FLAGS.LOAD_LIBRARY_REQUIRE_SIGNED_TARGET) else 0) | (if (o.LOAD_LIBRARY_SEARCH_DLL_LOAD_DIR == 1) @intFromEnum(LOAD_LIBRARY_FLAGS.LOAD_LIBRARY_SEARCH_DLL_LOAD_DIR) else 0) | (if (o.LOAD_LIBRARY_SEARCH_APPLICATION_DIR == 1) @intFromEnum(LOAD_LIBRARY_FLAGS.LOAD_LIBRARY_SEARCH_APPLICATION_DIR) else 0) | (if (o.LOAD_LIBRARY_SEARCH_USER_DIRS == 1) @intFromEnum(LOAD_LIBRARY_FLAGS.LOAD_LIBRARY_SEARCH_USER_DIRS) else 0) | (if (o.LOAD_LIBRARY_SEARCH_SYSTEM32 == 1) @intFromEnum(LOAD_LIBRARY_FLAGS.LOAD_LIBRARY_SEARCH_SYSTEM32) else 0) | (if (o.LOAD_LIBRARY_SEARCH_DEFAULT_DIRS == 1) @intFromEnum(LOAD_LIBRARY_FLAGS.LOAD_LIBRARY_SEARCH_DEFAULT_DIRS) else 0) | (if (o.LOAD_LIBRARY_SAFE_CURRENT_DIRS == 1) @intFromEnum(LOAD_LIBRARY_FLAGS.LOAD_LIBRARY_SAFE_CURRENT_DIRS) else 0) | (if (o.LOAD_LIBRARY_SEARCH_SYSTEM32_NO_FORWARDER == 1) @intFromEnum(LOAD_LIBRARY_FLAGS.LOAD_LIBRARY_SEARCH_SYSTEM32_NO_FORWARDER) else 0))); } }; pub const DONT_RESOLVE_DLL_REFERENCES = LOAD_LIBRARY_FLAGS.DONT_RESOLVE_DLL_REFERENCES; pub const LOAD_LIBRARY_AS_DATAFILE = LOAD_LIBRARY_FLAGS.LOAD_LIBRARY_AS_DATAFILE; pub const LOAD_WITH_ALTERED_SEARCH_PATH = LOAD_LIBRARY_FLAGS.LOAD_WITH_ALTERED_SEARCH_PATH; pub const LOAD_IGNORE_CODE_AUTHZ_LEVEL = LOAD_LIBRARY_FLAGS.LOAD_IGNORE_CODE_AUTHZ_LEVEL; pub const LOAD_LIBRARY_AS_IMAGE_RESOURCE = LOAD_LIBRARY_FLAGS.LOAD_LIBRARY_AS_IMAGE_RESOURCE; pub const LOAD_LIBRARY_AS_DATAFILE_EXCLUSIVE = LOAD_LIBRARY_FLAGS.LOAD_LIBRARY_AS_DATAFILE_EXCLUSIVE; pub const LOAD_LIBRARY_REQUIRE_SIGNED_TARGET = LOAD_LIBRARY_FLAGS.LOAD_LIBRARY_REQUIRE_SIGNED_TARGET; pub const LOAD_LIBRARY_SEARCH_DLL_LOAD_DIR = LOAD_LIBRARY_FLAGS.LOAD_LIBRARY_SEARCH_DLL_LOAD_DIR; pub const LOAD_LIBRARY_SEARCH_APPLICATION_DIR = LOAD_LIBRARY_FLAGS.LOAD_LIBRARY_SEARCH_APPLICATION_DIR; pub const LOAD_LIBRARY_SEARCH_USER_DIRS = LOAD_LIBRARY_FLAGS.LOAD_LIBRARY_SEARCH_USER_DIRS; pub const LOAD_LIBRARY_SEARCH_SYSTEM32 = LOAD_LIBRARY_FLAGS.LOAD_LIBRARY_SEARCH_SYSTEM32; pub const LOAD_LIBRARY_SEARCH_DEFAULT_DIRS = LOAD_LIBRARY_FLAGS.LOAD_LIBRARY_SEARCH_DEFAULT_DIRS; pub const LOAD_LIBRARY_SAFE_CURRENT_DIRS = LOAD_LIBRARY_FLAGS.LOAD_LIBRARY_SAFE_CURRENT_DIRS; pub const LOAD_LIBRARY_SEARCH_SYSTEM32_NO_FORWARDER = LOAD_LIBRARY_FLAGS.LOAD_LIBRARY_SEARCH_SYSTEM32_NO_FORWARDER; pub const ENUMUILANG = extern struct { NumOfEnumUILang: u32, SizeOfEnumUIBuffer: u32, pEnumUIBuffer: ?*u16, }; pub const ENUMRESLANGPROCA = switch (@import("builtin").zig_backend) { .stage1 => fn ( hModule: ?HINSTANCE, lpType: ?[*:0]const u8, lpName: ?[*:0]const u8, wLanguage: u16, lParam: isize, ) callconv(@import("std").os.windows.WINAPI) BOOL, else => *const fn ( hModule: ?HINSTANCE, lpType: ?[*:0]const u8, lpName: ?[*:0]const u8, wLanguage: u16, lParam: isize, ) callconv(@import("std").os.windows.WINAPI) BOOL, }; pub const ENUMRESLANGPROCW = switch (@import("builtin").zig_backend) { .stage1 => fn ( hModule: ?HINSTANCE, lpType: ?[*:0]const u16, lpName: ?[*:0]const u16, wLanguage: u16, lParam: isize, ) callconv(@import("std").os.windows.WINAPI) BOOL, else => *const fn ( hModule: ?HINSTANCE, lpType: ?[*:0]const u16, lpName: ?[*:0]const u16, wLanguage: u16, lParam: isize, ) callconv(@import("std").os.windows.WINAPI) BOOL, }; pub const ENUMRESNAMEPROCA = switch (@import("builtin").zig_backend) { .stage1 => fn ( hModule: ?HINSTANCE, lpType: ?[*:0]const u8, lpName: ?PSTR, lParam: isize, ) callconv(@import("std").os.windows.WINAPI) BOOL, else => *const fn ( hModule: ?HINSTANCE, lpType: ?[*:0]const u8, lpName: ?PSTR, lParam: isize, ) callconv(@import("std").os.windows.WINAPI) BOOL, }; pub const ENUMRESNAMEPROCW = switch (@import("builtin").zig_backend) { .stage1 => fn ( hModule: ?HINSTANCE, lpType: ?[*:0]const u16, lpName: ?PWSTR, lParam: isize, ) callconv(@import("std").os.windows.WINAPI) BOOL, else => *const fn ( hModule: ?HINSTANCE, lpType: ?[*:0]const u16, lpName: ?PWSTR, lParam: isize, ) callconv(@import("std").os.windows.WINAPI) BOOL, }; pub const ENUMRESTYPEPROCA = switch (@import("builtin").zig_backend) { .stage1 => fn ( hModule: ?HINSTANCE, lpType: ?PSTR, lParam: isize, ) callconv(@import("std").os.windows.WINAPI) BOOL, else => *const fn ( hModule: ?HINSTANCE, lpType: ?PSTR, lParam: isize, ) callconv(@import("std").os.windows.WINAPI) BOOL, }; pub const ENUMRESTYPEPROCW = switch (@import("builtin").zig_backend) { .stage1 => fn ( hModule: ?HINSTANCE, lpType: ?PWSTR, lParam: isize, ) callconv(@import("std").os.windows.WINAPI) BOOL, else => *const fn ( hModule: ?HINSTANCE, lpType: ?PWSTR, lParam: isize, ) callconv(@import("std").os.windows.WINAPI) BOOL, }; pub const PGET_MODULE_HANDLE_EXA = switch (@import("builtin").zig_backend) { .stage1 => fn ( dwFlags: u32, lpModuleName: ?[*:0]const u8, phModule: ?*?HINSTANCE, ) callconv(@import("std").os.windows.WINAPI) BOOL, else => *const fn ( dwFlags: u32, lpModuleName: ?[*:0]const u8, phModule: ?*?HINSTANCE, ) callconv(@import("std").os.windows.WINAPI) BOOL, }; pub const PGET_MODULE_HANDLE_EXW = switch (@import("builtin").zig_backend) { .stage1 => fn ( dwFlags: u32, lpModuleName: ?[*:0]const u16, phModule: ?*?HINSTANCE, ) callconv(@import("std").os.windows.WINAPI) BOOL, else => *const fn ( dwFlags: u32, lpModuleName: ?[*:0]const u16, phModule: ?*?HINSTANCE, ) callconv(@import("std").os.windows.WINAPI) BOOL, }; pub const REDIRECTION_FUNCTION_DESCRIPTOR = extern struct { DllName: ?[*:0]const u8, FunctionName: ?[*:0]const u8, RedirectionTarget: ?*anyopaque, }; pub const REDIRECTION_DESCRIPTOR = extern struct { Version: u32, FunctionCount: u32, Redirections: ?*REDIRECTION_FUNCTION_DESCRIPTOR, }; //-------------------------------------------------------------------------------- // Section: Functions (49) //-------------------------------------------------------------------------------- // TODO: this type is limited to platform 'windows5.1.2600' pub extern "kernel32" fn DisableThreadLibraryCalls( hLibModule: ?HINSTANCE, ) callconv(@import("std").os.windows.WINAPI) BOOL; pub extern "kernel32" fn FindResourceExW( hModule: ?HINSTANCE, lpType: ?[*:0]const u16, lpName: ?[*:0]const u16, wLanguage: u16, ) callconv(@import("std").os.windows.WINAPI) ?HRSRC; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "kernel32" fn FreeLibrary( hLibModule: ?HINSTANCE, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "kernel32" fn FreeLibraryAndExitThread( hLibModule: ?HINSTANCE, dwExitCode: u32, ) callconv(@import("std").os.windows.WINAPI) void; // TODO: this type is limited to platform 'windows5.0' pub extern "kernel32" fn FreeResource( hResData: isize, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "kernel32" fn GetModuleFileNameA( hModule: ?HINSTANCE, lpFilename: [*:0]u8, nSize: u32, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "kernel32" fn GetModuleFileNameW( hModule: ?HINSTANCE, lpFilename: [*:0]u16, nSize: u32, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "kernel32" fn GetModuleHandleA( lpModuleName: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) ?HINSTANCE; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "kernel32" fn GetModuleHandleW( lpModuleName: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) ?HINSTANCE; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "kernel32" fn GetModuleHandleExA( dwFlags: u32, lpModuleName: ?[*:0]const u8, phModule: ?*?HINSTANCE, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "kernel32" fn GetModuleHandleExW( dwFlags: u32, lpModuleName: ?[*:0]const u16, phModule: ?*?HINSTANCE, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "kernel32" fn GetProcAddress( hModule: ?HINSTANCE, lpProcName: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) ?FARPROC; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "kernel32" fn LoadLibraryExA( lpLibFileName: ?[*:0]const u8, hFile: ?HANDLE, dwFlags: LOAD_LIBRARY_FLAGS, ) callconv(@import("std").os.windows.WINAPI) ?HINSTANCE; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "kernel32" fn LoadLibraryExW( lpLibFileName: ?[*:0]const u16, hFile: ?HANDLE, dwFlags: LOAD_LIBRARY_FLAGS, ) callconv(@import("std").os.windows.WINAPI) ?HINSTANCE; // TODO: this type is limited to platform 'windows5.0' pub extern "kernel32" fn LoadResource( hModule: ?HINSTANCE, hResInfo: ?HRSRC, ) callconv(@import("std").os.windows.WINAPI) isize; // TODO: this type is limited to platform 'windows5.0' pub extern "kernel32" fn LockResource( hResData: isize, ) callconv(@import("std").os.windows.WINAPI) ?*anyopaque; // TODO: this type is limited to platform 'windows5.0' pub extern "kernel32" fn SizeofResource( hModule: ?HINSTANCE, hResInfo: ?HRSRC, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'windows8.0' pub extern "kernel32" fn AddDllDirectory( NewDirectory: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) ?*anyopaque; // TODO: this type is limited to platform 'windows8.0' pub extern "kernel32" fn RemoveDllDirectory( Cookie: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows8.0' pub extern "kernel32" fn SetDefaultDllDirectories( DirectoryFlags: LOAD_LIBRARY_FLAGS, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows6.0.6000' pub extern "kernel32" fn EnumResourceLanguagesExA( hModule: ?HINSTANCE, lpType: ?[*:0]const u8, lpName: ?[*:0]const u8, lpEnumFunc: ?ENUMRESLANGPROCA, lParam: isize, dwFlags: u32, LangId: u16, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows6.0.6000' pub extern "kernel32" fn EnumResourceLanguagesExW( hModule: ?HINSTANCE, lpType: ?[*:0]const u16, lpName: ?[*:0]const u16, lpEnumFunc: ?ENUMRESLANGPROCW, lParam: isize, dwFlags: u32, LangId: u16, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows6.0.6000' pub extern "kernel32" fn EnumResourceNamesExA( hModule: ?HINSTANCE, lpType: ?[*:0]const u8, lpEnumFunc: ?ENUMRESNAMEPROCA, lParam: isize, dwFlags: u32, LangId: u16, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows6.0.6000' pub extern "kernel32" fn EnumResourceNamesExW( hModule: ?HINSTANCE, lpType: ?[*:0]const u16, lpEnumFunc: ?ENUMRESNAMEPROCW, lParam: isize, dwFlags: u32, LangId: u16, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows6.0.6000' pub extern "kernel32" fn EnumResourceTypesExA( hModule: ?HINSTANCE, lpEnumFunc: ?ENUMRESTYPEPROCA, lParam: isize, dwFlags: u32, LangId: u16, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows6.0.6000' pub extern "kernel32" fn EnumResourceTypesExW( hModule: ?HINSTANCE, lpEnumFunc: ?ENUMRESTYPEPROCW, lParam: isize, dwFlags: u32, LangId: u16, ) callconv(@import("std").os.windows.WINAPI) BOOL; pub extern "kernel32" fn FindResourceW( hModule: ?HINSTANCE, lpName: ?[*:0]const u16, lpType: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) ?HRSRC; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "kernel32" fn LoadLibraryA( lpLibFileName: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) ?HINSTANCE; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "kernel32" fn LoadLibraryW( lpLibFileName: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) ?HINSTANCE; pub extern "kernel32" fn EnumResourceNamesW( hModule: ?HINSTANCE, lpType: ?[*:0]const u16, lpEnumFunc: ?ENUMRESNAMEPROCW, lParam: isize, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows5.0' pub extern "kernel32" fn EnumResourceNamesA( hModule: ?HINSTANCE, lpType: ?[*:0]const u8, lpEnumFunc: ?ENUMRESNAMEPROCA, lParam: isize, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "kernel32" fn LoadModule( lpModuleName: ?[*:0]const u8, lpParameterBlock: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'windows8.0' pub extern "kernel32" fn LoadPackagedLibrary( lpwLibFileName: ?[*:0]const u16, Reserved: u32, ) callconv(@import("std").os.windows.WINAPI) ?HINSTANCE; // TODO: this type is limited to platform 'windows5.0' pub extern "kernel32" fn FindResourceA( hModule: ?HINSTANCE, lpName: ?[*:0]const u8, lpType: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) ?HRSRC; // TODO: this type is limited to platform 'windows5.0' pub extern "kernel32" fn FindResourceExA( hModule: ?HINSTANCE, lpType: ?[*:0]const u8, lpName: ?[*:0]const u8, wLanguage: u16, ) callconv(@import("std").os.windows.WINAPI) ?HRSRC; // TODO: this type is limited to platform 'windows5.0' pub extern "kernel32" fn EnumResourceTypesA( hModule: ?HINSTANCE, lpEnumFunc: ?ENUMRESTYPEPROCA, lParam: isize, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows5.0' pub extern "kernel32" fn EnumResourceTypesW( hModule: ?HINSTANCE, lpEnumFunc: ?ENUMRESTYPEPROCW, lParam: isize, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows5.0' pub extern "kernel32" fn EnumResourceLanguagesA( hModule: ?HINSTANCE, lpType: ?[*:0]const u8, lpName: ?[*:0]const u8, lpEnumFunc: ?ENUMRESLANGPROCA, lParam: isize, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows5.0' pub extern "kernel32" fn EnumResourceLanguagesW( hModule: ?HINSTANCE, lpType: ?[*:0]const u16, lpName: ?[*:0]const u16, lpEnumFunc: ?ENUMRESLANGPROCW, lParam: isize, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows5.0' pub extern "kernel32" fn BeginUpdateResourceA( pFileName: ?[*:0]const u8, bDeleteExistingResources: BOOL, ) callconv(@import("std").os.windows.WINAPI) ?HANDLE; // TODO: this type is limited to platform 'windows5.0' pub extern "kernel32" fn BeginUpdateResourceW( pFileName: ?[*:0]const u16, bDeleteExistingResources: BOOL, ) callconv(@import("std").os.windows.WINAPI) ?HANDLE; // TODO: this type is limited to platform 'windows5.0' pub extern "kernel32" fn UpdateResourceA( hUpdate: ?HANDLE, lpType: ?[*:0]const u8, lpName: ?[*:0]const u8, wLanguage: u16, // TODO: what to do with BytesParamIndex 5? lpData: ?*anyopaque, cb: u32, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows5.0' pub extern "kernel32" fn UpdateResourceW( hUpdate: ?HANDLE, lpType: ?[*:0]const u16, lpName: ?[*:0]const u16, wLanguage: u16, // TODO: what to do with BytesParamIndex 5? lpData: ?*anyopaque, cb: u32, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows5.0' pub extern "kernel32" fn EndUpdateResourceA( hUpdate: ?HANDLE, fDiscard: BOOL, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows5.0' pub extern "kernel32" fn EndUpdateResourceW( hUpdate: ?HANDLE, fDiscard: BOOL, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows6.0.6000' pub extern "kernel32" fn SetDllDirectoryA( lpPathName: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows6.0.6000' pub extern "kernel32" fn SetDllDirectoryW( lpPathName: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows6.0.6000' pub extern "kernel32" fn GetDllDirectoryA( nBufferLength: u32, lpBuffer: ?[*:0]u8, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'windows6.0.6000' pub extern "kernel32" fn GetDllDirectoryW( nBufferLength: u32, lpBuffer: ?[*:0]u16, ) callconv(@import("std").os.windows.WINAPI) u32; //-------------------------------------------------------------------------------- // Section: Unicode Aliases (22) //-------------------------------------------------------------------------------- const thismodule = @This(); pub usingnamespace switch (@import("../zig.zig").unicode_mode) { .ansi => struct { pub const ENUMRESLANGPROC = thismodule.ENUMRESLANGPROCA; pub const ENUMRESNAMEPROC = thismodule.ENUMRESNAMEPROCA; pub const ENUMRESTYPEPROC = thismodule.ENUMRESTYPEPROCA; pub const PGET_MODULE_HANDLE_EX = thismodule.PGET_MODULE_HANDLE_EXA; pub const FindResourceEx = thismodule.FindResourceExA; pub const GetModuleFileName = thismodule.GetModuleFileNameA; pub const GetModuleHandle = thismodule.GetModuleHandleA; pub const GetModuleHandleEx = thismodule.GetModuleHandleExA; pub const LoadLibraryEx = thismodule.LoadLibraryExA; pub const EnumResourceLanguagesEx = thismodule.EnumResourceLanguagesExA; pub const EnumResourceNamesEx = thismodule.EnumResourceNamesExA; pub const EnumResourceTypesEx = thismodule.EnumResourceTypesExA; pub const FindResource = thismodule.FindResourceA; pub const LoadLibrary = thismodule.LoadLibraryA; pub const EnumResourceNames = thismodule.EnumResourceNamesA; pub const EnumResourceTypes = thismodule.EnumResourceTypesA; pub const EnumResourceLanguages = thismodule.EnumResourceLanguagesA; pub const BeginUpdateResource = thismodule.BeginUpdateResourceA; pub const UpdateResource = thismodule.UpdateResourceA; pub const EndUpdateResource = thismodule.EndUpdateResourceA; pub const SetDllDirectory = thismodule.SetDllDirectoryA; pub const GetDllDirectory = thismodule.GetDllDirectoryA; }, .wide => struct { pub const ENUMRESLANGPROC = thismodule.ENUMRESLANGPROCW; pub const ENUMRESNAMEPROC = thismodule.ENUMRESNAMEPROCW; pub const ENUMRESTYPEPROC = thismodule.ENUMRESTYPEPROCW; pub const PGET_MODULE_HANDLE_EX = thismodule.PGET_MODULE_HANDLE_EXW; pub const FindResourceEx = thismodule.FindResourceExW; pub const GetModuleFileName = thismodule.GetModuleFileNameW; pub const GetModuleHandle = thismodule.GetModuleHandleW; pub const GetModuleHandleEx = thismodule.GetModuleHandleExW; pub const LoadLibraryEx = thismodule.LoadLibraryExW; pub const EnumResourceLanguagesEx = thismodule.EnumResourceLanguagesExW; pub const EnumResourceNamesEx = thismodule.EnumResourceNamesExW; pub const EnumResourceTypesEx = thismodule.EnumResourceTypesExW; pub const FindResource = thismodule.FindResourceW; pub const LoadLibrary = thismodule.LoadLibraryW; pub const EnumResourceNames = thismodule.EnumResourceNamesW; pub const EnumResourceTypes = thismodule.EnumResourceTypesW; pub const EnumResourceLanguages = thismodule.EnumResourceLanguagesW; pub const BeginUpdateResource = thismodule.BeginUpdateResourceW; pub const UpdateResource = thismodule.UpdateResourceW; pub const EndUpdateResource = thismodule.EndUpdateResourceW; pub const SetDllDirectory = thismodule.SetDllDirectoryW; pub const GetDllDirectory = thismodule.GetDllDirectoryW; }, .unspecified => if (@import("builtin").is_test) struct { pub const ENUMRESLANGPROC = *opaque {}; pub const ENUMRESNAMEPROC = *opaque {}; pub const ENUMRESTYPEPROC = *opaque {}; pub const PGET_MODULE_HANDLE_EX = *opaque {}; pub const FindResourceEx = *opaque {}; pub const GetModuleFileName = *opaque {}; pub const GetModuleHandle = *opaque {}; pub const GetModuleHandleEx = *opaque {}; pub const LoadLibraryEx = *opaque {}; pub const EnumResourceLanguagesEx = *opaque {}; pub const EnumResourceNamesEx = *opaque {}; pub const EnumResourceTypesEx = *opaque {}; pub const FindResource = *opaque {}; pub const LoadLibrary = *opaque {}; pub const EnumResourceNames = *opaque {}; pub const EnumResourceTypes = *opaque {}; pub const EnumResourceLanguages = *opaque {}; pub const BeginUpdateResource = *opaque {}; pub const UpdateResource = *opaque {}; pub const EndUpdateResource = *opaque {}; pub const SetDllDirectory = *opaque {}; pub const GetDllDirectory = *opaque {}; } else struct { pub const ENUMRESLANGPROC = @compileError("'ENUMRESLANGPROC' requires that UNICODE be set to true or false in the root module"); pub const ENUMRESNAMEPROC = @compileError("'ENUMRESNAMEPROC' requires that UNICODE be set to true or false in the root module"); pub const ENUMRESTYPEPROC = @compileError("'ENUMRESTYPEPROC' requires that UNICODE be set to true or false in the root module"); pub const PGET_MODULE_HANDLE_EX = @compileError("'PGET_MODULE_HANDLE_EX' requires that UNICODE be set to true or false in the root module"); pub const FindResourceEx = @compileError("'FindResourceEx' requires that UNICODE be set to true or false in the root module"); pub const GetModuleFileName = @compileError("'GetModuleFileName' requires that UNICODE be set to true or false in the root module"); pub const GetModuleHandle = @compileError("'GetModuleHandle' requires that UNICODE be set to true or false in the root module"); pub const GetModuleHandleEx = @compileError("'GetModuleHandleEx' requires that UNICODE be set to true or false in the root module"); pub const LoadLibraryEx = @compileError("'LoadLibraryEx' requires that UNICODE be set to true or false in the root module"); pub const EnumResourceLanguagesEx = @compileError("'EnumResourceLanguagesEx' requires that UNICODE be set to true or false in the root module"); pub const EnumResourceNamesEx = @compileError("'EnumResourceNamesEx' requires that UNICODE be set to true or false in the root module"); pub const EnumResourceTypesEx = @compileError("'EnumResourceTypesEx' requires that UNICODE be set to true or false in the root module"); pub const FindResource = @compileError("'FindResource' requires that UNICODE be set to true or false in the root module"); pub const LoadLibrary = @compileError("'LoadLibrary' requires that UNICODE be set to true or false in the root module"); pub const EnumResourceNames = @compileError("'EnumResourceNames' requires that UNICODE be set to true or false in the root module"); pub const EnumResourceTypes = @compileError("'EnumResourceTypes' requires that UNICODE be set to true or false in the root module"); pub const EnumResourceLanguages = @compileError("'EnumResourceLanguages' requires that UNICODE be set to true or false in the root module"); pub const BeginUpdateResource = @compileError("'BeginUpdateResource' requires that UNICODE be set to true or false in the root module"); pub const UpdateResource = @compileError("'UpdateResource' requires that UNICODE be set to true or false in the root module"); pub const EndUpdateResource = @compileError("'EndUpdateResource' requires that UNICODE be set to true or false in the root module"); pub const SetDllDirectory = @compileError("'SetDllDirectory' requires that UNICODE be set to true or false in the root module"); pub const GetDllDirectory = @compileError("'GetDllDirectory' requires that UNICODE be set to true or false in the root module"); }, }; //-------------------------------------------------------------------------------- // Section: Imports (7) //-------------------------------------------------------------------------------- const BOOL = @import("../foundation.zig").BOOL; const FARPROC = @import("../foundation.zig").FARPROC; const HANDLE = @import("../foundation.zig").HANDLE; const HINSTANCE = @import("../foundation.zig").HINSTANCE; const HRSRC = @import("../foundation.zig").HRSRC; const PSTR = @import("../foundation.zig").PSTR; const PWSTR = @import("../foundation.zig").PWSTR; test { // The following '_ = <FuncPtrType>' lines are a workaround for https://github.com/ziglang/zig/issues/4476 if (@hasDecl(@This(), "ENUMRESLANGPROCA")) { _ = ENUMRESLANGPROCA; } if (@hasDecl(@This(), "ENUMRESLANGPROCW")) { _ = ENUMRESLANGPROCW; } if (@hasDecl(@This(), "ENUMRESNAMEPROCA")) { _ = ENUMRESNAMEPROCA; } if (@hasDecl(@This(), "ENUMRESNAMEPROCW")) { _ = ENUMRESNAMEPROCW; } if (@hasDecl(@This(), "ENUMRESTYPEPROCA")) { _ = ENUMRESTYPEPROCA; } if (@hasDecl(@This(), "ENUMRESTYPEPROCW")) { _ = ENUMRESTYPEPROCW; } if (@hasDecl(@This(), "PGET_MODULE_HANDLE_EXA")) { _ = PGET_MODULE_HANDLE_EXA; } if (@hasDecl(@This(), "PGET_MODULE_HANDLE_EXW")) { _ = PGET_MODULE_HANDLE_EXW; } @setEvalBranchQuota(comptime @import("std").meta.declarations(@This()).len * 3); // reference all the pub declarations if (!@import("builtin").is_test) return; inline for (comptime @import("std").meta.declarations(@This())) |decl| { if (decl.is_pub) { _ = @field(@This(), decl.name); } } }
0
repos/capy/vendor/zigwin32/win32
repos/capy/vendor/zigwin32/win32/system/side_show.zig
//! NOTE: this file is autogenerated, DO NOT MODIFY //-------------------------------------------------------------------------------- // Section: Constants (26) //-------------------------------------------------------------------------------- pub const SIDESHOW_ENDPOINT_SIMPLE_CONTENT_FORMAT = Guid.initString("a9a5353f-2d4b-47ce-93ee-759f3a7dda4f"); pub const SIDESHOW_ENDPOINT_ICAL = Guid.initString("4dff36b5-9dde-4f76-9a2a-96435047063d"); pub const SIDESHOW_CAPABILITY_DEVICE_PROPERTIES = Guid.initString("8abc88a8-857b-4ad7-a35a-b5942f492b99"); pub const SIDESHOW_CAPABILITY_DEVICE_ID = PROPERTYKEY{ .fmtid = Guid.initString("8abc88a8-857b-4ad7-a35a-b5942f492b99"), .pid = 1 }; pub const SIDESHOW_CAPABILITY_SCREEN_TYPE = PROPERTYKEY{ .fmtid = Guid.initString("8abc88a8-857b-4ad7-a35a-b5942f492b99"), .pid = 2 }; pub const SIDESHOW_CAPABILITY_SCREEN_WIDTH = PROPERTYKEY{ .fmtid = Guid.initString("8abc88a8-857b-4ad7-a35a-b5942f492b99"), .pid = 3 }; pub const SIDESHOW_CAPABILITY_SCREEN_HEIGHT = PROPERTYKEY{ .fmtid = Guid.initString("8abc88a8-857b-4ad7-a35a-b5942f492b99"), .pid = 4 }; pub const SIDESHOW_CAPABILITY_COLOR_DEPTH = PROPERTYKEY{ .fmtid = Guid.initString("8abc88a8-857b-4ad7-a35a-b5942f492b99"), .pid = 5 }; pub const SIDESHOW_CAPABILITY_COLOR_TYPE = PROPERTYKEY{ .fmtid = Guid.initString("8abc88a8-857b-4ad7-a35a-b5942f492b99"), .pid = 6 }; pub const SIDESHOW_CAPABILITY_DATA_CACHE = PROPERTYKEY{ .fmtid = Guid.initString("8abc88a8-857b-4ad7-a35a-b5942f492b99"), .pid = 7 }; pub const SIDESHOW_CAPABILITY_SUPPORTED_LANGUAGES = PROPERTYKEY{ .fmtid = Guid.initString("8abc88a8-857b-4ad7-a35a-b5942f492b99"), .pid = 8 }; pub const SIDESHOW_CAPABILITY_CURRENT_LANGUAGE = PROPERTYKEY{ .fmtid = Guid.initString("8abc88a8-857b-4ad7-a35a-b5942f492b99"), .pid = 9 }; pub const SIDESHOW_CAPABILITY_SUPPORTED_THEMES = PROPERTYKEY{ .fmtid = Guid.initString("8abc88a8-857b-4ad7-a35a-b5942f492b99"), .pid = 10 }; pub const SIDESHOW_CAPABILITY_SUPPORTED_IMAGE_FORMATS = PROPERTYKEY{ .fmtid = Guid.initString("8abc88a8-857b-4ad7-a35a-b5942f492b99"), .pid = 14 }; pub const SIDESHOW_CAPABILITY_CLIENT_AREA_WIDTH = PROPERTYKEY{ .fmtid = Guid.initString("8abc88a8-857b-4ad7-a35a-b5942f492b99"), .pid = 15 }; pub const SIDESHOW_CAPABILITY_CLIENT_AREA_HEIGHT = PROPERTYKEY{ .fmtid = Guid.initString("8abc88a8-857b-4ad7-a35a-b5942f492b99"), .pid = 16 }; pub const GUID_DEVINTERFACE_SIDESHOW = Guid.initString("152e5811-feb9-4b00-90f4-d32947ae1681"); pub const SIDESHOW_CONTENT_MISSING_EVENT = Guid.initString("5007fba8-d313-439f-bea2-a50201d3e9a8"); pub const SIDESHOW_APPLICATION_EVENT = Guid.initString("4cb572fa-1d3b-49b3-a17a-2e6bff052854"); pub const SIDESHOW_USER_CHANGE_REQUEST_EVENT = Guid.initString("5009673c-3f7d-4c7e-9971-eaa2e91f1575"); pub const SIDESHOW_NEW_EVENT_DATA_AVAILABLE = Guid.initString("57813854-2fc1-411c-a59f-f24927608804"); pub const CONTENT_ID_GLANCE = @as(u32, 0); pub const SIDESHOW_EVENTID_APPLICATION_ENTER = @as(u32, 4294901760); pub const SIDESHOW_EVENTID_APPLICATION_EXIT = @as(u32, 4294901761); pub const CONTENT_ID_HOME = @as(u32, 1); pub const VERSION_1_WINDOWS_7 = @as(u32, 0); //-------------------------------------------------------------------------------- // Section: Types (28) //-------------------------------------------------------------------------------- const CLSID_SideShowSession_Value = Guid.initString("e20543b9-f785-4ea2-981e-c4ffa76bbc7c"); pub const CLSID_SideShowSession = &CLSID_SideShowSession_Value; const CLSID_SideShowNotification_Value = Guid.initString("0ce3e86f-d5cd-4525-a766-1abab1a752f5"); pub const CLSID_SideShowNotification = &CLSID_SideShowNotification_Value; const CLSID_SideShowKeyCollection_Value = Guid.initString("dfbbdbf8-18de-49b8-83dc-ebc727c62d94"); pub const CLSID_SideShowKeyCollection = &CLSID_SideShowKeyCollection_Value; const CLSID_SideShowPropVariantCollection_Value = Guid.initString("e640f415-539e-4923-96cd-5f093bc250cd"); pub const CLSID_SideShowPropVariantCollection = &CLSID_SideShowPropVariantCollection_Value; const IID_ISideShowSession_Value = Guid.initString("e22331ee-9e7d-4922-9fc2-ab7aa41ce491"); pub const IID_ISideShowSession = &IID_ISideShowSession_Value; pub const ISideShowSession = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, RegisterContent: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ISideShowSession, in_applicationId: ?*Guid, in_endpointId: ?*Guid, out_ppIContent: ?*?*ISideShowContentManager, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ISideShowSession, in_applicationId: ?*Guid, in_endpointId: ?*Guid, out_ppIContent: ?*?*ISideShowContentManager, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, RegisterNotifications: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ISideShowSession, in_applicationId: ?*Guid, out_ppINotification: ?*?*ISideShowNotificationManager, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ISideShowSession, in_applicationId: ?*Guid, out_ppINotification: ?*?*ISideShowNotificationManager, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISideShowSession_RegisterContent(self: *const T, in_applicationId: ?*Guid, in_endpointId: ?*Guid, out_ppIContent: ?*?*ISideShowContentManager) HRESULT { return @as(*const ISideShowSession.VTable, @ptrCast(self.vtable)).RegisterContent(@as(*const ISideShowSession, @ptrCast(self)), in_applicationId, in_endpointId, out_ppIContent); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISideShowSession_RegisterNotifications(self: *const T, in_applicationId: ?*Guid, out_ppINotification: ?*?*ISideShowNotificationManager) HRESULT { return @as(*const ISideShowSession.VTable, @ptrCast(self.vtable)).RegisterNotifications(@as(*const ISideShowSession, @ptrCast(self)), in_applicationId, out_ppINotification); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_ISideShowNotificationManager_Value = Guid.initString("63cea909-f2b9-4302-b5e1-c68e6d9ab833"); pub const IID_ISideShowNotificationManager = &IID_ISideShowNotificationManager_Value; pub const ISideShowNotificationManager = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, Show: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ISideShowNotificationManager, in_pINotification: ?*ISideShowNotification, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ISideShowNotificationManager, in_pINotification: ?*ISideShowNotification, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Revoke: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ISideShowNotificationManager, in_notificationId: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ISideShowNotificationManager, in_notificationId: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, RevokeAll: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ISideShowNotificationManager, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ISideShowNotificationManager, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISideShowNotificationManager_Show(self: *const T, in_pINotification: ?*ISideShowNotification) HRESULT { return @as(*const ISideShowNotificationManager.VTable, @ptrCast(self.vtable)).Show(@as(*const ISideShowNotificationManager, @ptrCast(self)), in_pINotification); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISideShowNotificationManager_Revoke(self: *const T, in_notificationId: u32) HRESULT { return @as(*const ISideShowNotificationManager.VTable, @ptrCast(self.vtable)).Revoke(@as(*const ISideShowNotificationManager, @ptrCast(self)), in_notificationId); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISideShowNotificationManager_RevokeAll(self: *const T) HRESULT { return @as(*const ISideShowNotificationManager.VTable, @ptrCast(self.vtable)).RevokeAll(@as(*const ISideShowNotificationManager, @ptrCast(self))); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_ISideShowNotification_Value = Guid.initString("03c93300-8ab2-41c5-9b79-46127a30e148"); pub const IID_ISideShowNotification = &IID_ISideShowNotification_Value; pub const ISideShowNotification = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, // TODO: this function has a "SpecialName", should Zig do anything with this? get_NotificationId: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ISideShowNotification, out_pNotificationId: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ISideShowNotification, out_pNotificationId: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_NotificationId: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ISideShowNotification, in_notificationId: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ISideShowNotification, in_notificationId: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Title: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ISideShowNotification, out_ppwszTitle: ?*?PWSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ISideShowNotification, out_ppwszTitle: ?*?PWSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_Title: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ISideShowNotification, in_pwszTitle: ?PWSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ISideShowNotification, in_pwszTitle: ?PWSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Message: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ISideShowNotification, out_ppwszMessage: ?*?PWSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ISideShowNotification, out_ppwszMessage: ?*?PWSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_Message: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ISideShowNotification, in_pwszMessage: ?PWSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ISideShowNotification, in_pwszMessage: ?PWSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Image: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ISideShowNotification, out_phIcon: ?*?HICON, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ISideShowNotification, out_phIcon: ?*?HICON, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_Image: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ISideShowNotification, in_hIcon: ?HICON, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ISideShowNotification, in_hIcon: ?HICON, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_ExpirationTime: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ISideShowNotification, out_pTime: ?*SYSTEMTIME, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ISideShowNotification, out_pTime: ?*SYSTEMTIME, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_ExpirationTime: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ISideShowNotification, in_pTime: ?*SYSTEMTIME, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ISideShowNotification, in_pTime: ?*SYSTEMTIME, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISideShowNotification_get_NotificationId(self: *const T, out_pNotificationId: ?*u32) HRESULT { return @as(*const ISideShowNotification.VTable, @ptrCast(self.vtable)).get_NotificationId(@as(*const ISideShowNotification, @ptrCast(self)), out_pNotificationId); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISideShowNotification_put_NotificationId(self: *const T, in_notificationId: u32) HRESULT { return @as(*const ISideShowNotification.VTable, @ptrCast(self.vtable)).put_NotificationId(@as(*const ISideShowNotification, @ptrCast(self)), in_notificationId); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISideShowNotification_get_Title(self: *const T, out_ppwszTitle: ?*?PWSTR) HRESULT { return @as(*const ISideShowNotification.VTable, @ptrCast(self.vtable)).get_Title(@as(*const ISideShowNotification, @ptrCast(self)), out_ppwszTitle); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISideShowNotification_put_Title(self: *const T, in_pwszTitle: ?PWSTR) HRESULT { return @as(*const ISideShowNotification.VTable, @ptrCast(self.vtable)).put_Title(@as(*const ISideShowNotification, @ptrCast(self)), in_pwszTitle); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISideShowNotification_get_Message(self: *const T, out_ppwszMessage: ?*?PWSTR) HRESULT { return @as(*const ISideShowNotification.VTable, @ptrCast(self.vtable)).get_Message(@as(*const ISideShowNotification, @ptrCast(self)), out_ppwszMessage); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISideShowNotification_put_Message(self: *const T, in_pwszMessage: ?PWSTR) HRESULT { return @as(*const ISideShowNotification.VTable, @ptrCast(self.vtable)).put_Message(@as(*const ISideShowNotification, @ptrCast(self)), in_pwszMessage); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISideShowNotification_get_Image(self: *const T, out_phIcon: ?*?HICON) HRESULT { return @as(*const ISideShowNotification.VTable, @ptrCast(self.vtable)).get_Image(@as(*const ISideShowNotification, @ptrCast(self)), out_phIcon); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISideShowNotification_put_Image(self: *const T, in_hIcon: ?HICON) HRESULT { return @as(*const ISideShowNotification.VTable, @ptrCast(self.vtable)).put_Image(@as(*const ISideShowNotification, @ptrCast(self)), in_hIcon); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISideShowNotification_get_ExpirationTime(self: *const T, out_pTime: ?*SYSTEMTIME) HRESULT { return @as(*const ISideShowNotification.VTable, @ptrCast(self.vtable)).get_ExpirationTime(@as(*const ISideShowNotification, @ptrCast(self)), out_pTime); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISideShowNotification_put_ExpirationTime(self: *const T, in_pTime: ?*SYSTEMTIME) HRESULT { return @as(*const ISideShowNotification.VTable, @ptrCast(self.vtable)).put_ExpirationTime(@as(*const ISideShowNotification, @ptrCast(self)), in_pTime); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_ISideShowContentManager_Value = Guid.initString("a5d5b66b-eef9-41db-8d7e-e17c33ab10b0"); pub const IID_ISideShowContentManager = &IID_ISideShowContentManager_Value; pub const ISideShowContentManager = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, Add: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ISideShowContentManager, in_pIContent: ?*ISideShowContent, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ISideShowContentManager, in_pIContent: ?*ISideShowContent, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Remove: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ISideShowContentManager, in_contentId: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ISideShowContentManager, in_contentId: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, RemoveAll: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ISideShowContentManager, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ISideShowContentManager, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetEventSink: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ISideShowContentManager, in_pIEvents: ?*ISideShowEvents, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ISideShowContentManager, in_pIEvents: ?*ISideShowEvents, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetDeviceCapabilities: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ISideShowContentManager, out_ppCollection: ?*?*ISideShowCapabilitiesCollection, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ISideShowContentManager, out_ppCollection: ?*?*ISideShowCapabilitiesCollection, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISideShowContentManager_Add(self: *const T, in_pIContent: ?*ISideShowContent) HRESULT { return @as(*const ISideShowContentManager.VTable, @ptrCast(self.vtable)).Add(@as(*const ISideShowContentManager, @ptrCast(self)), in_pIContent); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISideShowContentManager_Remove(self: *const T, in_contentId: u32) HRESULT { return @as(*const ISideShowContentManager.VTable, @ptrCast(self.vtable)).Remove(@as(*const ISideShowContentManager, @ptrCast(self)), in_contentId); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISideShowContentManager_RemoveAll(self: *const T) HRESULT { return @as(*const ISideShowContentManager.VTable, @ptrCast(self.vtable)).RemoveAll(@as(*const ISideShowContentManager, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISideShowContentManager_SetEventSink(self: *const T, in_pIEvents: ?*ISideShowEvents) HRESULT { return @as(*const ISideShowContentManager.VTable, @ptrCast(self.vtable)).SetEventSink(@as(*const ISideShowContentManager, @ptrCast(self)), in_pIEvents); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISideShowContentManager_GetDeviceCapabilities(self: *const T, out_ppCollection: ?*?*ISideShowCapabilitiesCollection) HRESULT { return @as(*const ISideShowContentManager.VTable, @ptrCast(self.vtable)).GetDeviceCapabilities(@as(*const ISideShowContentManager, @ptrCast(self)), out_ppCollection); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_ISideShowContent_Value = Guid.initString("c18552ed-74ff-4fec-be07-4cfed29d4887"); pub const IID_ISideShowContent = &IID_ISideShowContent_Value; pub const ISideShowContent = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, GetContent: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ISideShowContent, in_pICapabilities: ?*ISideShowCapabilities, out_pdwSize: ?*u32, out_ppbData: ?[*]?*u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ISideShowContent, in_pICapabilities: ?*ISideShowCapabilities, out_pdwSize: ?*u32, out_ppbData: ?[*]?*u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_ContentId: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ISideShowContent, out_pcontentId: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ISideShowContent, out_pcontentId: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_DifferentiateContent: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ISideShowContent, out_pfDifferentiateContent: ?*BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ISideShowContent, out_pfDifferentiateContent: ?*BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISideShowContent_GetContent(self: *const T, in_pICapabilities: ?*ISideShowCapabilities, out_pdwSize: ?*u32, out_ppbData: ?[*]?*u8) HRESULT { return @as(*const ISideShowContent.VTable, @ptrCast(self.vtable)).GetContent(@as(*const ISideShowContent, @ptrCast(self)), in_pICapabilities, out_pdwSize, out_ppbData); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISideShowContent_get_ContentId(self: *const T, out_pcontentId: ?*u32) HRESULT { return @as(*const ISideShowContent.VTable, @ptrCast(self.vtable)).get_ContentId(@as(*const ISideShowContent, @ptrCast(self)), out_pcontentId); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISideShowContent_get_DifferentiateContent(self: *const T, out_pfDifferentiateContent: ?*BOOL) HRESULT { return @as(*const ISideShowContent.VTable, @ptrCast(self.vtable)).get_DifferentiateContent(@as(*const ISideShowContent, @ptrCast(self)), out_pfDifferentiateContent); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_ISideShowEvents_Value = Guid.initString("61feca4c-deb4-4a7e-8d75-51f1132d615b"); pub const IID_ISideShowEvents = &IID_ISideShowEvents_Value; pub const ISideShowEvents = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, ContentMissing: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ISideShowEvents, in_contentId: u32, out_ppIContent: ?*?*ISideShowContent, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ISideShowEvents, in_contentId: u32, out_ppIContent: ?*?*ISideShowContent, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, ApplicationEvent: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ISideShowEvents, in_pICapabilities: ?*ISideShowCapabilities, in_dwEventId: u32, in_dwEventSize: u32, in_pbEventData: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ISideShowEvents, in_pICapabilities: ?*ISideShowCapabilities, in_dwEventId: u32, in_dwEventSize: u32, in_pbEventData: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, DeviceAdded: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ISideShowEvents, in_pIDevice: ?*ISideShowCapabilities, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ISideShowEvents, in_pIDevice: ?*ISideShowCapabilities, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, DeviceRemoved: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ISideShowEvents, in_pIDevice: ?*ISideShowCapabilities, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ISideShowEvents, in_pIDevice: ?*ISideShowCapabilities, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISideShowEvents_ContentMissing(self: *const T, in_contentId: u32, out_ppIContent: ?*?*ISideShowContent) HRESULT { return @as(*const ISideShowEvents.VTable, @ptrCast(self.vtable)).ContentMissing(@as(*const ISideShowEvents, @ptrCast(self)), in_contentId, out_ppIContent); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISideShowEvents_ApplicationEvent(self: *const T, in_pICapabilities: ?*ISideShowCapabilities, in_dwEventId: u32, in_dwEventSize: u32, in_pbEventData: ?[*:0]const u8) HRESULT { return @as(*const ISideShowEvents.VTable, @ptrCast(self.vtable)).ApplicationEvent(@as(*const ISideShowEvents, @ptrCast(self)), in_pICapabilities, in_dwEventId, in_dwEventSize, in_pbEventData); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISideShowEvents_DeviceAdded(self: *const T, in_pIDevice: ?*ISideShowCapabilities) HRESULT { return @as(*const ISideShowEvents.VTable, @ptrCast(self.vtable)).DeviceAdded(@as(*const ISideShowEvents, @ptrCast(self)), in_pIDevice); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISideShowEvents_DeviceRemoved(self: *const T, in_pIDevice: ?*ISideShowCapabilities) HRESULT { return @as(*const ISideShowEvents.VTable, @ptrCast(self.vtable)).DeviceRemoved(@as(*const ISideShowEvents, @ptrCast(self)), in_pIDevice); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_ISideShowCapabilities_Value = Guid.initString("535e1379-c09e-4a54-a511-597bab3a72b8"); pub const IID_ISideShowCapabilities = &IID_ISideShowCapabilities_Value; pub const ISideShowCapabilities = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, GetCapability: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ISideShowCapabilities, in_keyCapability: ?*const PROPERTYKEY, inout_pValue: ?*PROPVARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ISideShowCapabilities, in_keyCapability: ?*const PROPERTYKEY, inout_pValue: ?*PROPVARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISideShowCapabilities_GetCapability(self: *const T, in_keyCapability: ?*const PROPERTYKEY, inout_pValue: ?*PROPVARIANT) HRESULT { return @as(*const ISideShowCapabilities.VTable, @ptrCast(self.vtable)).GetCapability(@as(*const ISideShowCapabilities, @ptrCast(self)), in_keyCapability, inout_pValue); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_ISideShowCapabilitiesCollection_Value = Guid.initString("50305597-5e0d-4ff7-b3af-33d0d9bd52dd"); pub const IID_ISideShowCapabilitiesCollection = &IID_ISideShowCapabilitiesCollection_Value; pub const ISideShowCapabilitiesCollection = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, GetCount: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ISideShowCapabilitiesCollection, out_pdwCount: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ISideShowCapabilitiesCollection, out_pdwCount: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetAt: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ISideShowCapabilitiesCollection, in_dwIndex: u32, out_ppCapabilities: ?*?*ISideShowCapabilities, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ISideShowCapabilitiesCollection, in_dwIndex: u32, out_ppCapabilities: ?*?*ISideShowCapabilities, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISideShowCapabilitiesCollection_GetCount(self: *const T, out_pdwCount: ?*u32) HRESULT { return @as(*const ISideShowCapabilitiesCollection.VTable, @ptrCast(self.vtable)).GetCount(@as(*const ISideShowCapabilitiesCollection, @ptrCast(self)), out_pdwCount); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISideShowCapabilitiesCollection_GetAt(self: *const T, in_dwIndex: u32, out_ppCapabilities: ?*?*ISideShowCapabilities) HRESULT { return @as(*const ISideShowCapabilitiesCollection.VTable, @ptrCast(self.vtable)).GetAt(@as(*const ISideShowCapabilitiesCollection, @ptrCast(self)), in_dwIndex, out_ppCapabilities); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_ISideShowBulkCapabilities_Value = Guid.initString("3a2b7fbc-3ad5-48bd-bbf1-0e6cfbd10807"); pub const IID_ISideShowBulkCapabilities = &IID_ISideShowBulkCapabilities_Value; pub const ISideShowBulkCapabilities = extern struct { pub const VTable = extern struct { base: ISideShowCapabilities.VTable, GetCapabilities: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ISideShowBulkCapabilities, in_keyCollection: ?*ISideShowKeyCollection, inout_pValues: ?*?*ISideShowPropVariantCollection, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ISideShowBulkCapabilities, in_keyCollection: ?*ISideShowKeyCollection, inout_pValues: ?*?*ISideShowPropVariantCollection, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace ISideShowCapabilities.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISideShowBulkCapabilities_GetCapabilities(self: *const T, in_keyCollection: ?*ISideShowKeyCollection, inout_pValues: ?*?*ISideShowPropVariantCollection) HRESULT { return @as(*const ISideShowBulkCapabilities.VTable, @ptrCast(self.vtable)).GetCapabilities(@as(*const ISideShowBulkCapabilities, @ptrCast(self)), in_keyCollection, inout_pValues); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_ISideShowKeyCollection_Value = Guid.initString("045473bc-a37b-4957-b144-68105411ed8e"); pub const IID_ISideShowKeyCollection = &IID_ISideShowKeyCollection_Value; pub const ISideShowKeyCollection = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, Add: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ISideShowKeyCollection, Key: ?*const PROPERTYKEY, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ISideShowKeyCollection, Key: ?*const PROPERTYKEY, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Clear: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ISideShowKeyCollection, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ISideShowKeyCollection, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetAt: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ISideShowKeyCollection, dwIndex: u32, pKey: ?*PROPERTYKEY, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ISideShowKeyCollection, dwIndex: u32, pKey: ?*PROPERTYKEY, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetCount: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ISideShowKeyCollection, pcElems: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ISideShowKeyCollection, pcElems: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, RemoveAt: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ISideShowKeyCollection, dwIndex: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ISideShowKeyCollection, dwIndex: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISideShowKeyCollection_Add(self: *const T, Key: ?*const PROPERTYKEY) HRESULT { return @as(*const ISideShowKeyCollection.VTable, @ptrCast(self.vtable)).Add(@as(*const ISideShowKeyCollection, @ptrCast(self)), Key); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISideShowKeyCollection_Clear(self: *const T) HRESULT { return @as(*const ISideShowKeyCollection.VTable, @ptrCast(self.vtable)).Clear(@as(*const ISideShowKeyCollection, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISideShowKeyCollection_GetAt(self: *const T, dwIndex: u32, pKey: ?*PROPERTYKEY) HRESULT { return @as(*const ISideShowKeyCollection.VTable, @ptrCast(self.vtable)).GetAt(@as(*const ISideShowKeyCollection, @ptrCast(self)), dwIndex, pKey); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISideShowKeyCollection_GetCount(self: *const T, pcElems: ?*u32) HRESULT { return @as(*const ISideShowKeyCollection.VTable, @ptrCast(self.vtable)).GetCount(@as(*const ISideShowKeyCollection, @ptrCast(self)), pcElems); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISideShowKeyCollection_RemoveAt(self: *const T, dwIndex: u32) HRESULT { return @as(*const ISideShowKeyCollection.VTable, @ptrCast(self.vtable)).RemoveAt(@as(*const ISideShowKeyCollection, @ptrCast(self)), dwIndex); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_ISideShowPropVariantCollection_Value = Guid.initString("2ea7a549-7bff-4aae-bab0-22d43111de49"); pub const IID_ISideShowPropVariantCollection = &IID_ISideShowPropVariantCollection_Value; pub const ISideShowPropVariantCollection = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, Add: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ISideShowPropVariantCollection, pValue: ?*const PROPVARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ISideShowPropVariantCollection, pValue: ?*const PROPVARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Clear: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ISideShowPropVariantCollection, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ISideShowPropVariantCollection, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetAt: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ISideShowPropVariantCollection, dwIndex: u32, pValue: ?*PROPVARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ISideShowPropVariantCollection, dwIndex: u32, pValue: ?*PROPVARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetCount: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ISideShowPropVariantCollection, pcElems: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ISideShowPropVariantCollection, pcElems: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, RemoveAt: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ISideShowPropVariantCollection, dwIndex: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ISideShowPropVariantCollection, dwIndex: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISideShowPropVariantCollection_Add(self: *const T, pValue: ?*const PROPVARIANT) HRESULT { return @as(*const ISideShowPropVariantCollection.VTable, @ptrCast(self.vtable)).Add(@as(*const ISideShowPropVariantCollection, @ptrCast(self)), pValue); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISideShowPropVariantCollection_Clear(self: *const T) HRESULT { return @as(*const ISideShowPropVariantCollection.VTable, @ptrCast(self.vtable)).Clear(@as(*const ISideShowPropVariantCollection, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISideShowPropVariantCollection_GetAt(self: *const T, dwIndex: u32, pValue: ?*PROPVARIANT) HRESULT { return @as(*const ISideShowPropVariantCollection.VTable, @ptrCast(self.vtable)).GetAt(@as(*const ISideShowPropVariantCollection, @ptrCast(self)), dwIndex, pValue); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISideShowPropVariantCollection_GetCount(self: *const T, pcElems: ?*u32) HRESULT { return @as(*const ISideShowPropVariantCollection.VTable, @ptrCast(self.vtable)).GetCount(@as(*const ISideShowPropVariantCollection, @ptrCast(self)), pcElems); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISideShowPropVariantCollection_RemoveAt(self: *const T, dwIndex: u32) HRESULT { return @as(*const ISideShowPropVariantCollection.VTable, @ptrCast(self.vtable)).RemoveAt(@as(*const ISideShowPropVariantCollection, @ptrCast(self)), dwIndex); } }; } pub usingnamespace MethodMixin(@This()); }; pub const SIDESHOW_SCREEN_TYPE = enum(i32) { BITMAP = 0, TEXT = 1, }; pub const SIDESHOW_SCREEN_TYPE_BITMAP = SIDESHOW_SCREEN_TYPE.BITMAP; pub const SIDESHOW_SCREEN_TYPE_TEXT = SIDESHOW_SCREEN_TYPE.TEXT; pub const SIDESHOW_COLOR_TYPE = enum(i32) { COLOR = 0, GREYSCALE = 1, BLACK_AND_WHITE = 2, }; pub const SIDESHOW_COLOR_TYPE_COLOR = SIDESHOW_COLOR_TYPE.COLOR; pub const SIDESHOW_COLOR_TYPE_GREYSCALE = SIDESHOW_COLOR_TYPE.GREYSCALE; pub const SIDESHOW_COLOR_TYPE_BLACK_AND_WHITE = SIDESHOW_COLOR_TYPE.BLACK_AND_WHITE; pub const SCF_EVENT_IDS = enum(i32) { NAVIGATION = 1, MENUACTION = 2, CONTEXTMENU = 3, }; pub const SCF_EVENT_NAVIGATION = SCF_EVENT_IDS.NAVIGATION; pub const SCF_EVENT_MENUACTION = SCF_EVENT_IDS.MENUACTION; pub const SCF_EVENT_CONTEXTMENU = SCF_EVENT_IDS.CONTEXTMENU; pub const SCF_BUTTON_IDS = enum(i32) { MENU = 1, SELECT = 2, UP = 3, DOWN = 4, LEFT = 5, RIGHT = 6, PLAY = 7, PAUSE = 8, FASTFORWARD = 9, REWIND = 10, STOP = 11, BACK = 65280, }; pub const SCF_BUTTON_MENU = SCF_BUTTON_IDS.MENU; pub const SCF_BUTTON_SELECT = SCF_BUTTON_IDS.SELECT; pub const SCF_BUTTON_UP = SCF_BUTTON_IDS.UP; pub const SCF_BUTTON_DOWN = SCF_BUTTON_IDS.DOWN; pub const SCF_BUTTON_LEFT = SCF_BUTTON_IDS.LEFT; pub const SCF_BUTTON_RIGHT = SCF_BUTTON_IDS.RIGHT; pub const SCF_BUTTON_PLAY = SCF_BUTTON_IDS.PLAY; pub const SCF_BUTTON_PAUSE = SCF_BUTTON_IDS.PAUSE; pub const SCF_BUTTON_FASTFORWARD = SCF_BUTTON_IDS.FASTFORWARD; pub const SCF_BUTTON_REWIND = SCF_BUTTON_IDS.REWIND; pub const SCF_BUTTON_STOP = SCF_BUTTON_IDS.STOP; pub const SCF_BUTTON_BACK = SCF_BUTTON_IDS.BACK; pub const SCF_EVENT_HEADER = extern struct { PreviousPage: u32, TargetPage: u32, }; pub const SCF_NAVIGATION_EVENT = extern struct { PreviousPage: u32, TargetPage: u32, Button: u32, }; pub const SCF_MENUACTION_EVENT = extern struct { PreviousPage: u32, TargetPage: u32, Button: u32, ItemId: u32, }; pub const SCF_CONTEXTMENU_EVENT = extern struct { PreviousPage: u32, TargetPage: u32, PreviousItemId: u32, MenuPage: u32, MenuItemId: u32, }; pub const CONTENT_MISSING_EVENT_DATA = extern struct { cbContentMissingEventData: u32 align(1), ApplicationId: Guid align(1), EndpointId: Guid align(1), ContentId: u32 align(1), }; pub const APPLICATION_EVENT_DATA = extern struct { cbApplicationEventData: u32 align(1), ApplicationId: Guid align(1), EndpointId: Guid align(1), dwEventId: u32 align(1), cbEventData: u32 align(1), bEventData: [1]u8 align(1), }; pub const DEVICE_USER_CHANGE_EVENT_DATA = extern struct { cbDeviceUserChangeEventData: u32 align(1), wszUser: u16 align(1), }; pub const NEW_EVENT_DATA_AVAILABLE = extern struct { cbNewEventDataAvailable: u32 align(1), dwVersion: u32 align(1), }; pub const EVENT_DATA_HEADER = extern struct { cbEventDataHeader: u32 align(1), guidEventType: Guid align(1), dwVersion: u32 align(1), cbEventDataSid: u32 align(1), }; //-------------------------------------------------------------------------------- // Section: Functions (0) //-------------------------------------------------------------------------------- //-------------------------------------------------------------------------------- // Section: Unicode Aliases (0) //-------------------------------------------------------------------------------- const thismodule = @This(); pub usingnamespace switch (@import("../zig.zig").unicode_mode) { .ansi => struct {}, .wide => struct {}, .unspecified => if (@import("builtin").is_test) struct {} else struct {}, }; //-------------------------------------------------------------------------------- // Section: Imports (9) //-------------------------------------------------------------------------------- const Guid = @import("../zig.zig").Guid; const BOOL = @import("../foundation.zig").BOOL; const HICON = @import("../ui/windows_and_messaging.zig").HICON; const HRESULT = @import("../foundation.zig").HRESULT; const IUnknown = @import("../system/com.zig").IUnknown; const PROPERTYKEY = @import("../ui/shell/properties_system.zig").PROPERTYKEY; const PROPVARIANT = @import("../system/com/structured_storage.zig").PROPVARIANT; const PWSTR = @import("../foundation.zig").PWSTR; const SYSTEMTIME = @import("../foundation.zig").SYSTEMTIME; test { @setEvalBranchQuota(comptime @import("std").meta.declarations(@This()).len * 3); // reference all the pub declarations if (!@import("builtin").is_test) return; inline for (comptime @import("std").meta.declarations(@This())) |decl| { if (decl.is_pub) { _ = @field(@This(), decl.name); } } }
0
repos/capy/vendor/zigwin32/win32
repos/capy/vendor/zigwin32/win32/system/event_log.zig
//! NOTE: this file is autogenerated, DO NOT MODIFY //-------------------------------------------------------------------------------- // Section: Constants (6) //-------------------------------------------------------------------------------- pub const EVT_VARIANT_TYPE_MASK = @as(u32, 127); pub const EVT_VARIANT_TYPE_ARRAY = @as(u32, 128); pub const EVT_READ_ACCESS = @as(u32, 1); pub const EVT_WRITE_ACCESS = @as(u32, 2); pub const EVT_CLEAR_ACCESS = @as(u32, 4); pub const EVT_ALL_ACCESS = @as(u32, 7); //-------------------------------------------------------------------------------- // Section: Types (34) //-------------------------------------------------------------------------------- pub const REPORT_EVENT_TYPE = enum(u16) { SUCCESS = 0, AUDIT_FAILURE = 16, AUDIT_SUCCESS = 8, ERROR_TYPE = 1, INFORMATION_TYPE = 4, WARNING_TYPE = 2, }; pub const EVENTLOG_SUCCESS = REPORT_EVENT_TYPE.SUCCESS; pub const EVENTLOG_AUDIT_FAILURE = REPORT_EVENT_TYPE.AUDIT_FAILURE; pub const EVENTLOG_AUDIT_SUCCESS = REPORT_EVENT_TYPE.AUDIT_SUCCESS; pub const EVENTLOG_ERROR_TYPE = REPORT_EVENT_TYPE.ERROR_TYPE; pub const EVENTLOG_INFORMATION_TYPE = REPORT_EVENT_TYPE.INFORMATION_TYPE; pub const EVENTLOG_WARNING_TYPE = REPORT_EVENT_TYPE.WARNING_TYPE; pub const READ_EVENT_LOG_READ_FLAGS = enum(u32) { EK_READ = 2, QUENTIAL_READ = 1, }; pub const EVENTLOG_SEEK_READ = READ_EVENT_LOG_READ_FLAGS.EK_READ; pub const EVENTLOG_SEQUENTIAL_READ = READ_EVENT_LOG_READ_FLAGS.QUENTIAL_READ; // TODO: this type has a FreeFunc 'CloseEventLog', what can Zig do with this information? pub const EventLogHandle = isize; // TODO: this type has a FreeFunc 'DeregisterEventSource', what can Zig do with this information? pub const EventSourceHandle = isize; pub const EVT_VARIANT_TYPE = enum(i32) { Null = 0, String = 1, AnsiString = 2, SByte = 3, Byte = 4, Int16 = 5, UInt16 = 6, Int32 = 7, UInt32 = 8, Int64 = 9, UInt64 = 10, Single = 11, Double = 12, Boolean = 13, Binary = 14, Guid = 15, SizeT = 16, FileTime = 17, SysTime = 18, Sid = 19, HexInt32 = 20, HexInt64 = 21, EvtHandle = 32, EvtXml = 35, }; pub const EvtVarTypeNull = EVT_VARIANT_TYPE.Null; pub const EvtVarTypeString = EVT_VARIANT_TYPE.String; pub const EvtVarTypeAnsiString = EVT_VARIANT_TYPE.AnsiString; pub const EvtVarTypeSByte = EVT_VARIANT_TYPE.SByte; pub const EvtVarTypeByte = EVT_VARIANT_TYPE.Byte; pub const EvtVarTypeInt16 = EVT_VARIANT_TYPE.Int16; pub const EvtVarTypeUInt16 = EVT_VARIANT_TYPE.UInt16; pub const EvtVarTypeInt32 = EVT_VARIANT_TYPE.Int32; pub const EvtVarTypeUInt32 = EVT_VARIANT_TYPE.UInt32; pub const EvtVarTypeInt64 = EVT_VARIANT_TYPE.Int64; pub const EvtVarTypeUInt64 = EVT_VARIANT_TYPE.UInt64; pub const EvtVarTypeSingle = EVT_VARIANT_TYPE.Single; pub const EvtVarTypeDouble = EVT_VARIANT_TYPE.Double; pub const EvtVarTypeBoolean = EVT_VARIANT_TYPE.Boolean; pub const EvtVarTypeBinary = EVT_VARIANT_TYPE.Binary; pub const EvtVarTypeGuid = EVT_VARIANT_TYPE.Guid; pub const EvtVarTypeSizeT = EVT_VARIANT_TYPE.SizeT; pub const EvtVarTypeFileTime = EVT_VARIANT_TYPE.FileTime; pub const EvtVarTypeSysTime = EVT_VARIANT_TYPE.SysTime; pub const EvtVarTypeSid = EVT_VARIANT_TYPE.Sid; pub const EvtVarTypeHexInt32 = EVT_VARIANT_TYPE.HexInt32; pub const EvtVarTypeHexInt64 = EVT_VARIANT_TYPE.HexInt64; pub const EvtVarTypeEvtHandle = EVT_VARIANT_TYPE.EvtHandle; pub const EvtVarTypeEvtXml = EVT_VARIANT_TYPE.EvtXml; pub const EVT_VARIANT = extern struct { Anonymous: extern union { BooleanVal: BOOL, SByteVal: i8, Int16Val: i16, Int32Val: i32, Int64Val: i64, ByteVal: u8, UInt16Val: u16, UInt32Val: u32, UInt64Val: u64, SingleVal: f32, DoubleVal: f64, FileTimeVal: u64, SysTimeVal: ?*SYSTEMTIME, GuidVal: ?*Guid, StringVal: ?[*:0]const u16, AnsiStringVal: ?[*:0]const u8, BinaryVal: ?*u8, SidVal: ?PSID, SizeTVal: usize, BooleanArr: ?*BOOL, SByteArr: ?*i8, Int16Arr: ?*i16, Int32Arr: ?*i32, Int64Arr: ?*i64, ByteArr: ?*u8, UInt16Arr: ?*u16, UInt32Arr: ?*u32, UInt64Arr: ?*u64, SingleArr: ?*f32, DoubleArr: ?*f64, FileTimeArr: ?*FILETIME, SysTimeArr: ?*SYSTEMTIME, GuidArr: ?*Guid, StringArr: ?*?PWSTR, AnsiStringArr: ?*?PSTR, SidArr: ?*?PSID, SizeTArr: ?*usize, EvtHandleVal: isize, XmlVal: ?[*:0]const u16, XmlValArr: ?*?PWSTR, }, Count: u32, Type: u32, }; pub const EVT_LOGIN_CLASS = enum(i32) { n = 1, }; pub const EvtRpcLogin = EVT_LOGIN_CLASS.n; pub const EVT_RPC_LOGIN_FLAGS = enum(i32) { Default = 0, Negotiate = 1, Kerberos = 2, NTLM = 3, }; pub const EvtRpcLoginAuthDefault = EVT_RPC_LOGIN_FLAGS.Default; pub const EvtRpcLoginAuthNegotiate = EVT_RPC_LOGIN_FLAGS.Negotiate; pub const EvtRpcLoginAuthKerberos = EVT_RPC_LOGIN_FLAGS.Kerberos; pub const EvtRpcLoginAuthNTLM = EVT_RPC_LOGIN_FLAGS.NTLM; pub const EVT_RPC_LOGIN = extern struct { Server: ?PWSTR, User: ?PWSTR, Domain: ?PWSTR, Password: ?PWSTR, Flags: u32, }; pub const EVT_QUERY_FLAGS = enum(i32) { ChannelPath = 1, FilePath = 2, ForwardDirection = 256, ReverseDirection = 512, TolerateQueryErrors = 4096, }; pub const EvtQueryChannelPath = EVT_QUERY_FLAGS.ChannelPath; pub const EvtQueryFilePath = EVT_QUERY_FLAGS.FilePath; pub const EvtQueryForwardDirection = EVT_QUERY_FLAGS.ForwardDirection; pub const EvtQueryReverseDirection = EVT_QUERY_FLAGS.ReverseDirection; pub const EvtQueryTolerateQueryErrors = EVT_QUERY_FLAGS.TolerateQueryErrors; pub const EVT_SEEK_FLAGS = enum(i32) { RelativeToFirst = 1, RelativeToLast = 2, RelativeToCurrent = 3, RelativeToBookmark = 4, OriginMask = 7, Strict = 65536, }; pub const EvtSeekRelativeToFirst = EVT_SEEK_FLAGS.RelativeToFirst; pub const EvtSeekRelativeToLast = EVT_SEEK_FLAGS.RelativeToLast; pub const EvtSeekRelativeToCurrent = EVT_SEEK_FLAGS.RelativeToCurrent; pub const EvtSeekRelativeToBookmark = EVT_SEEK_FLAGS.RelativeToBookmark; pub const EvtSeekOriginMask = EVT_SEEK_FLAGS.OriginMask; pub const EvtSeekStrict = EVT_SEEK_FLAGS.Strict; pub const EVT_SUBSCRIBE_FLAGS = enum(i32) { ToFutureEvents = 1, StartAtOldestRecord = 2, StartAfterBookmark = 3, // OriginMask = 3, this enum value conflicts with StartAfterBookmark TolerateQueryErrors = 4096, Strict = 65536, }; pub const EvtSubscribeToFutureEvents = EVT_SUBSCRIBE_FLAGS.ToFutureEvents; pub const EvtSubscribeStartAtOldestRecord = EVT_SUBSCRIBE_FLAGS.StartAtOldestRecord; pub const EvtSubscribeStartAfterBookmark = EVT_SUBSCRIBE_FLAGS.StartAfterBookmark; pub const EvtSubscribeOriginMask = EVT_SUBSCRIBE_FLAGS.StartAfterBookmark; pub const EvtSubscribeTolerateQueryErrors = EVT_SUBSCRIBE_FLAGS.TolerateQueryErrors; pub const EvtSubscribeStrict = EVT_SUBSCRIBE_FLAGS.Strict; pub const EVT_SUBSCRIBE_NOTIFY_ACTION = enum(i32) { Error = 0, Deliver = 1, }; pub const EvtSubscribeActionError = EVT_SUBSCRIBE_NOTIFY_ACTION.Error; pub const EvtSubscribeActionDeliver = EVT_SUBSCRIBE_NOTIFY_ACTION.Deliver; pub const EVT_SUBSCRIBE_CALLBACK = switch (@import("builtin").zig_backend) { .stage1 => fn ( Action: EVT_SUBSCRIBE_NOTIFY_ACTION, UserContext: ?*anyopaque, Event: isize, ) callconv(@import("std").os.windows.WINAPI) u32, else => *const fn ( Action: EVT_SUBSCRIBE_NOTIFY_ACTION, UserContext: ?*anyopaque, Event: isize, ) callconv(@import("std").os.windows.WINAPI) u32, }; pub const EVT_SYSTEM_PROPERTY_ID = enum(i32) { ProviderName = 0, ProviderGuid = 1, EventID = 2, Qualifiers = 3, Level = 4, Task = 5, Opcode = 6, Keywords = 7, TimeCreated = 8, EventRecordId = 9, ActivityID = 10, RelatedActivityID = 11, ProcessID = 12, ThreadID = 13, Channel = 14, Computer = 15, UserID = 16, Version = 17, PropertyIdEND = 18, }; pub const EvtSystemProviderName = EVT_SYSTEM_PROPERTY_ID.ProviderName; pub const EvtSystemProviderGuid = EVT_SYSTEM_PROPERTY_ID.ProviderGuid; pub const EvtSystemEventID = EVT_SYSTEM_PROPERTY_ID.EventID; pub const EvtSystemQualifiers = EVT_SYSTEM_PROPERTY_ID.Qualifiers; pub const EvtSystemLevel = EVT_SYSTEM_PROPERTY_ID.Level; pub const EvtSystemTask = EVT_SYSTEM_PROPERTY_ID.Task; pub const EvtSystemOpcode = EVT_SYSTEM_PROPERTY_ID.Opcode; pub const EvtSystemKeywords = EVT_SYSTEM_PROPERTY_ID.Keywords; pub const EvtSystemTimeCreated = EVT_SYSTEM_PROPERTY_ID.TimeCreated; pub const EvtSystemEventRecordId = EVT_SYSTEM_PROPERTY_ID.EventRecordId; pub const EvtSystemActivityID = EVT_SYSTEM_PROPERTY_ID.ActivityID; pub const EvtSystemRelatedActivityID = EVT_SYSTEM_PROPERTY_ID.RelatedActivityID; pub const EvtSystemProcessID = EVT_SYSTEM_PROPERTY_ID.ProcessID; pub const EvtSystemThreadID = EVT_SYSTEM_PROPERTY_ID.ThreadID; pub const EvtSystemChannel = EVT_SYSTEM_PROPERTY_ID.Channel; pub const EvtSystemComputer = EVT_SYSTEM_PROPERTY_ID.Computer; pub const EvtSystemUserID = EVT_SYSTEM_PROPERTY_ID.UserID; pub const EvtSystemVersion = EVT_SYSTEM_PROPERTY_ID.Version; pub const EvtSystemPropertyIdEND = EVT_SYSTEM_PROPERTY_ID.PropertyIdEND; pub const EVT_RENDER_CONTEXT_FLAGS = enum(i32) { Values = 0, System = 1, User = 2, }; pub const EvtRenderContextValues = EVT_RENDER_CONTEXT_FLAGS.Values; pub const EvtRenderContextSystem = EVT_RENDER_CONTEXT_FLAGS.System; pub const EvtRenderContextUser = EVT_RENDER_CONTEXT_FLAGS.User; pub const EVT_RENDER_FLAGS = enum(i32) { EventValues = 0, EventXml = 1, Bookmark = 2, }; pub const EvtRenderEventValues = EVT_RENDER_FLAGS.EventValues; pub const EvtRenderEventXml = EVT_RENDER_FLAGS.EventXml; pub const EvtRenderBookmark = EVT_RENDER_FLAGS.Bookmark; pub const EVT_FORMAT_MESSAGE_FLAGS = enum(i32) { Event = 1, Level = 2, Task = 3, Opcode = 4, Keyword = 5, Channel = 6, Provider = 7, Id = 8, Xml = 9, }; pub const EvtFormatMessageEvent = EVT_FORMAT_MESSAGE_FLAGS.Event; pub const EvtFormatMessageLevel = EVT_FORMAT_MESSAGE_FLAGS.Level; pub const EvtFormatMessageTask = EVT_FORMAT_MESSAGE_FLAGS.Task; pub const EvtFormatMessageOpcode = EVT_FORMAT_MESSAGE_FLAGS.Opcode; pub const EvtFormatMessageKeyword = EVT_FORMAT_MESSAGE_FLAGS.Keyword; pub const EvtFormatMessageChannel = EVT_FORMAT_MESSAGE_FLAGS.Channel; pub const EvtFormatMessageProvider = EVT_FORMAT_MESSAGE_FLAGS.Provider; pub const EvtFormatMessageId = EVT_FORMAT_MESSAGE_FLAGS.Id; pub const EvtFormatMessageXml = EVT_FORMAT_MESSAGE_FLAGS.Xml; pub const EVT_OPEN_LOG_FLAGS = enum(i32) { ChannelPath = 1, FilePath = 2, }; pub const EvtOpenChannelPath = EVT_OPEN_LOG_FLAGS.ChannelPath; pub const EvtOpenFilePath = EVT_OPEN_LOG_FLAGS.FilePath; pub const EVT_LOG_PROPERTY_ID = enum(i32) { CreationTime = 0, LastAccessTime = 1, LastWriteTime = 2, FileSize = 3, Attributes = 4, NumberOfLogRecords = 5, OldestRecordNumber = 6, Full = 7, }; pub const EvtLogCreationTime = EVT_LOG_PROPERTY_ID.CreationTime; pub const EvtLogLastAccessTime = EVT_LOG_PROPERTY_ID.LastAccessTime; pub const EvtLogLastWriteTime = EVT_LOG_PROPERTY_ID.LastWriteTime; pub const EvtLogFileSize = EVT_LOG_PROPERTY_ID.FileSize; pub const EvtLogAttributes = EVT_LOG_PROPERTY_ID.Attributes; pub const EvtLogNumberOfLogRecords = EVT_LOG_PROPERTY_ID.NumberOfLogRecords; pub const EvtLogOldestRecordNumber = EVT_LOG_PROPERTY_ID.OldestRecordNumber; pub const EvtLogFull = EVT_LOG_PROPERTY_ID.Full; pub const EVT_EXPORTLOG_FLAGS = enum(i32) { ChannelPath = 1, FilePath = 2, TolerateQueryErrors = 4096, Overwrite = 8192, }; pub const EvtExportLogChannelPath = EVT_EXPORTLOG_FLAGS.ChannelPath; pub const EvtExportLogFilePath = EVT_EXPORTLOG_FLAGS.FilePath; pub const EvtExportLogTolerateQueryErrors = EVT_EXPORTLOG_FLAGS.TolerateQueryErrors; pub const EvtExportLogOverwrite = EVT_EXPORTLOG_FLAGS.Overwrite; pub const EVT_CHANNEL_CONFIG_PROPERTY_ID = enum(i32) { ConfigEnabled = 0, ConfigIsolation = 1, ConfigType = 2, ConfigOwningPublisher = 3, ConfigClassicEventlog = 4, ConfigAccess = 5, LoggingConfigRetention = 6, LoggingConfigAutoBackup = 7, LoggingConfigMaxSize = 8, LoggingConfigLogFilePath = 9, PublishingConfigLevel = 10, PublishingConfigKeywords = 11, PublishingConfigControlGuid = 12, PublishingConfigBufferSize = 13, PublishingConfigMinBuffers = 14, PublishingConfigMaxBuffers = 15, PublishingConfigLatency = 16, PublishingConfigClockType = 17, PublishingConfigSidType = 18, PublisherList = 19, PublishingConfigFileMax = 20, ConfigPropertyIdEND = 21, }; pub const EvtChannelConfigEnabled = EVT_CHANNEL_CONFIG_PROPERTY_ID.ConfigEnabled; pub const EvtChannelConfigIsolation = EVT_CHANNEL_CONFIG_PROPERTY_ID.ConfigIsolation; pub const EvtChannelConfigType = EVT_CHANNEL_CONFIG_PROPERTY_ID.ConfigType; pub const EvtChannelConfigOwningPublisher = EVT_CHANNEL_CONFIG_PROPERTY_ID.ConfigOwningPublisher; pub const EvtChannelConfigClassicEventlog = EVT_CHANNEL_CONFIG_PROPERTY_ID.ConfigClassicEventlog; pub const EvtChannelConfigAccess = EVT_CHANNEL_CONFIG_PROPERTY_ID.ConfigAccess; pub const EvtChannelLoggingConfigRetention = EVT_CHANNEL_CONFIG_PROPERTY_ID.LoggingConfigRetention; pub const EvtChannelLoggingConfigAutoBackup = EVT_CHANNEL_CONFIG_PROPERTY_ID.LoggingConfigAutoBackup; pub const EvtChannelLoggingConfigMaxSize = EVT_CHANNEL_CONFIG_PROPERTY_ID.LoggingConfigMaxSize; pub const EvtChannelLoggingConfigLogFilePath = EVT_CHANNEL_CONFIG_PROPERTY_ID.LoggingConfigLogFilePath; pub const EvtChannelPublishingConfigLevel = EVT_CHANNEL_CONFIG_PROPERTY_ID.PublishingConfigLevel; pub const EvtChannelPublishingConfigKeywords = EVT_CHANNEL_CONFIG_PROPERTY_ID.PublishingConfigKeywords; pub const EvtChannelPublishingConfigControlGuid = EVT_CHANNEL_CONFIG_PROPERTY_ID.PublishingConfigControlGuid; pub const EvtChannelPublishingConfigBufferSize = EVT_CHANNEL_CONFIG_PROPERTY_ID.PublishingConfigBufferSize; pub const EvtChannelPublishingConfigMinBuffers = EVT_CHANNEL_CONFIG_PROPERTY_ID.PublishingConfigMinBuffers; pub const EvtChannelPublishingConfigMaxBuffers = EVT_CHANNEL_CONFIG_PROPERTY_ID.PublishingConfigMaxBuffers; pub const EvtChannelPublishingConfigLatency = EVT_CHANNEL_CONFIG_PROPERTY_ID.PublishingConfigLatency; pub const EvtChannelPublishingConfigClockType = EVT_CHANNEL_CONFIG_PROPERTY_ID.PublishingConfigClockType; pub const EvtChannelPublishingConfigSidType = EVT_CHANNEL_CONFIG_PROPERTY_ID.PublishingConfigSidType; pub const EvtChannelPublisherList = EVT_CHANNEL_CONFIG_PROPERTY_ID.PublisherList; pub const EvtChannelPublishingConfigFileMax = EVT_CHANNEL_CONFIG_PROPERTY_ID.PublishingConfigFileMax; pub const EvtChannelConfigPropertyIdEND = EVT_CHANNEL_CONFIG_PROPERTY_ID.ConfigPropertyIdEND; pub const EVT_CHANNEL_TYPE = enum(i32) { Admin = 0, Operational = 1, Analytic = 2, Debug = 3, }; pub const EvtChannelTypeAdmin = EVT_CHANNEL_TYPE.Admin; pub const EvtChannelTypeOperational = EVT_CHANNEL_TYPE.Operational; pub const EvtChannelTypeAnalytic = EVT_CHANNEL_TYPE.Analytic; pub const EvtChannelTypeDebug = EVT_CHANNEL_TYPE.Debug; pub const EVT_CHANNEL_ISOLATION_TYPE = enum(i32) { Application = 0, System = 1, Custom = 2, }; pub const EvtChannelIsolationTypeApplication = EVT_CHANNEL_ISOLATION_TYPE.Application; pub const EvtChannelIsolationTypeSystem = EVT_CHANNEL_ISOLATION_TYPE.System; pub const EvtChannelIsolationTypeCustom = EVT_CHANNEL_ISOLATION_TYPE.Custom; pub const EVT_CHANNEL_CLOCK_TYPE = enum(i32) { SystemTime = 0, QPC = 1, }; pub const EvtChannelClockTypeSystemTime = EVT_CHANNEL_CLOCK_TYPE.SystemTime; pub const EvtChannelClockTypeQPC = EVT_CHANNEL_CLOCK_TYPE.QPC; pub const EVT_CHANNEL_SID_TYPE = enum(i32) { None = 0, Publishing = 1, }; pub const EvtChannelSidTypeNone = EVT_CHANNEL_SID_TYPE.None; pub const EvtChannelSidTypePublishing = EVT_CHANNEL_SID_TYPE.Publishing; pub const EVT_CHANNEL_REFERENCE_FLAGS = enum(i32) { d = 1, }; pub const EvtChannelReferenceImported = EVT_CHANNEL_REFERENCE_FLAGS.d; pub const EVT_PUBLISHER_METADATA_PROPERTY_ID = enum(i32) { PublisherGuid = 0, ResourceFilePath = 1, ParameterFilePath = 2, MessageFilePath = 3, HelpLink = 4, PublisherMessageID = 5, ChannelReferences = 6, ChannelReferencePath = 7, ChannelReferenceIndex = 8, ChannelReferenceID = 9, ChannelReferenceFlags = 10, ChannelReferenceMessageID = 11, Levels = 12, LevelName = 13, LevelValue = 14, LevelMessageID = 15, Tasks = 16, TaskName = 17, TaskEventGuid = 18, TaskValue = 19, TaskMessageID = 20, Opcodes = 21, OpcodeName = 22, OpcodeValue = 23, OpcodeMessageID = 24, Keywords = 25, KeywordName = 26, KeywordValue = 27, KeywordMessageID = 28, PropertyIdEND = 29, }; pub const EvtPublisherMetadataPublisherGuid = EVT_PUBLISHER_METADATA_PROPERTY_ID.PublisherGuid; pub const EvtPublisherMetadataResourceFilePath = EVT_PUBLISHER_METADATA_PROPERTY_ID.ResourceFilePath; pub const EvtPublisherMetadataParameterFilePath = EVT_PUBLISHER_METADATA_PROPERTY_ID.ParameterFilePath; pub const EvtPublisherMetadataMessageFilePath = EVT_PUBLISHER_METADATA_PROPERTY_ID.MessageFilePath; pub const EvtPublisherMetadataHelpLink = EVT_PUBLISHER_METADATA_PROPERTY_ID.HelpLink; pub const EvtPublisherMetadataPublisherMessageID = EVT_PUBLISHER_METADATA_PROPERTY_ID.PublisherMessageID; pub const EvtPublisherMetadataChannelReferences = EVT_PUBLISHER_METADATA_PROPERTY_ID.ChannelReferences; pub const EvtPublisherMetadataChannelReferencePath = EVT_PUBLISHER_METADATA_PROPERTY_ID.ChannelReferencePath; pub const EvtPublisherMetadataChannelReferenceIndex = EVT_PUBLISHER_METADATA_PROPERTY_ID.ChannelReferenceIndex; pub const EvtPublisherMetadataChannelReferenceID = EVT_PUBLISHER_METADATA_PROPERTY_ID.ChannelReferenceID; pub const EvtPublisherMetadataChannelReferenceFlags = EVT_PUBLISHER_METADATA_PROPERTY_ID.ChannelReferenceFlags; pub const EvtPublisherMetadataChannelReferenceMessageID = EVT_PUBLISHER_METADATA_PROPERTY_ID.ChannelReferenceMessageID; pub const EvtPublisherMetadataLevels = EVT_PUBLISHER_METADATA_PROPERTY_ID.Levels; pub const EvtPublisherMetadataLevelName = EVT_PUBLISHER_METADATA_PROPERTY_ID.LevelName; pub const EvtPublisherMetadataLevelValue = EVT_PUBLISHER_METADATA_PROPERTY_ID.LevelValue; pub const EvtPublisherMetadataLevelMessageID = EVT_PUBLISHER_METADATA_PROPERTY_ID.LevelMessageID; pub const EvtPublisherMetadataTasks = EVT_PUBLISHER_METADATA_PROPERTY_ID.Tasks; pub const EvtPublisherMetadataTaskName = EVT_PUBLISHER_METADATA_PROPERTY_ID.TaskName; pub const EvtPublisherMetadataTaskEventGuid = EVT_PUBLISHER_METADATA_PROPERTY_ID.TaskEventGuid; pub const EvtPublisherMetadataTaskValue = EVT_PUBLISHER_METADATA_PROPERTY_ID.TaskValue; pub const EvtPublisherMetadataTaskMessageID = EVT_PUBLISHER_METADATA_PROPERTY_ID.TaskMessageID; pub const EvtPublisherMetadataOpcodes = EVT_PUBLISHER_METADATA_PROPERTY_ID.Opcodes; pub const EvtPublisherMetadataOpcodeName = EVT_PUBLISHER_METADATA_PROPERTY_ID.OpcodeName; pub const EvtPublisherMetadataOpcodeValue = EVT_PUBLISHER_METADATA_PROPERTY_ID.OpcodeValue; pub const EvtPublisherMetadataOpcodeMessageID = EVT_PUBLISHER_METADATA_PROPERTY_ID.OpcodeMessageID; pub const EvtPublisherMetadataKeywords = EVT_PUBLISHER_METADATA_PROPERTY_ID.Keywords; pub const EvtPublisherMetadataKeywordName = EVT_PUBLISHER_METADATA_PROPERTY_ID.KeywordName; pub const EvtPublisherMetadataKeywordValue = EVT_PUBLISHER_METADATA_PROPERTY_ID.KeywordValue; pub const EvtPublisherMetadataKeywordMessageID = EVT_PUBLISHER_METADATA_PROPERTY_ID.KeywordMessageID; pub const EvtPublisherMetadataPropertyIdEND = EVT_PUBLISHER_METADATA_PROPERTY_ID.PropertyIdEND; pub const EVT_EVENT_METADATA_PROPERTY_ID = enum(i32) { entMetadataEventID = 0, entMetadataEventVersion = 1, entMetadataEventChannel = 2, entMetadataEventLevel = 3, entMetadataEventOpcode = 4, entMetadataEventTask = 5, entMetadataEventKeyword = 6, entMetadataEventMessageID = 7, entMetadataEventTemplate = 8, tEventMetadataPropertyIdEND = 9, }; pub const EventMetadataEventID = EVT_EVENT_METADATA_PROPERTY_ID.entMetadataEventID; pub const EventMetadataEventVersion = EVT_EVENT_METADATA_PROPERTY_ID.entMetadataEventVersion; pub const EventMetadataEventChannel = EVT_EVENT_METADATA_PROPERTY_ID.entMetadataEventChannel; pub const EventMetadataEventLevel = EVT_EVENT_METADATA_PROPERTY_ID.entMetadataEventLevel; pub const EventMetadataEventOpcode = EVT_EVENT_METADATA_PROPERTY_ID.entMetadataEventOpcode; pub const EventMetadataEventTask = EVT_EVENT_METADATA_PROPERTY_ID.entMetadataEventTask; pub const EventMetadataEventKeyword = EVT_EVENT_METADATA_PROPERTY_ID.entMetadataEventKeyword; pub const EventMetadataEventMessageID = EVT_EVENT_METADATA_PROPERTY_ID.entMetadataEventMessageID; pub const EventMetadataEventTemplate = EVT_EVENT_METADATA_PROPERTY_ID.entMetadataEventTemplate; pub const EvtEventMetadataPropertyIdEND = EVT_EVENT_METADATA_PROPERTY_ID.tEventMetadataPropertyIdEND; pub const EVT_QUERY_PROPERTY_ID = enum(i32) { Names = 0, Statuses = 1, PropertyIdEND = 2, }; pub const EvtQueryNames = EVT_QUERY_PROPERTY_ID.Names; pub const EvtQueryStatuses = EVT_QUERY_PROPERTY_ID.Statuses; pub const EvtQueryPropertyIdEND = EVT_QUERY_PROPERTY_ID.PropertyIdEND; pub const EVT_EVENT_PROPERTY_ID = enum(i32) { QueryIDs = 0, Path = 1, PropertyIdEND = 2, }; pub const EvtEventQueryIDs = EVT_EVENT_PROPERTY_ID.QueryIDs; pub const EvtEventPath = EVT_EVENT_PROPERTY_ID.Path; pub const EvtEventPropertyIdEND = EVT_EVENT_PROPERTY_ID.PropertyIdEND; pub const EVENTLOGRECORD = extern struct { Length: u32, Reserved: u32, RecordNumber: u32, TimeGenerated: u32, TimeWritten: u32, EventID: u32, EventType: REPORT_EVENT_TYPE, NumStrings: u16, EventCategory: u16, ReservedFlags: u16, ClosingRecordNumber: u32, StringOffset: u32, UserSidLength: u32, UserSidOffset: u32, DataLength: u32, DataOffset: u32, }; pub const EVENTSFORLOGFILE = extern struct { ulSize: u32, szLogicalLogFile: [256]u16, ulNumRecords: u32, pEventLogRecords: [1]EVENTLOGRECORD, }; pub const EVENTLOG_FULL_INFORMATION = extern struct { dwFull: u32, }; //-------------------------------------------------------------------------------- // Section: Functions (55) //-------------------------------------------------------------------------------- // TODO: this type is limited to platform 'windows6.0.6000' pub extern "wevtapi" fn EvtOpenSession( LoginClass: EVT_LOGIN_CLASS, Login: ?*anyopaque, Timeout: u32, Flags: u32, ) callconv(@import("std").os.windows.WINAPI) isize; // TODO: this type is limited to platform 'windows6.0.6000' pub extern "wevtapi" fn EvtClose( Object: isize, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows6.0.6000' pub extern "wevtapi" fn EvtCancel( Object: isize, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows6.0.6000' pub extern "wevtapi" fn EvtGetExtendedStatus( BufferSize: u32, Buffer: ?[*:0]u16, BufferUsed: ?*u32, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'windows6.0.6000' pub extern "wevtapi" fn EvtQuery( Session: isize, Path: ?[*:0]const u16, Query: ?[*:0]const u16, Flags: u32, ) callconv(@import("std").os.windows.WINAPI) isize; // TODO: this type is limited to platform 'windows6.0.6000' pub extern "wevtapi" fn EvtNext( ResultSet: isize, EventsSize: u32, Events: [*]isize, Timeout: u32, Flags: u32, Returned: ?*u32, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows6.0.6000' pub extern "wevtapi" fn EvtSeek( ResultSet: isize, Position: i64, Bookmark: isize, Timeout: u32, Flags: u32, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows6.0.6000' pub extern "wevtapi" fn EvtSubscribe( Session: isize, SignalEvent: ?HANDLE, ChannelPath: ?[*:0]const u16, Query: ?[*:0]const u16, Bookmark: isize, Context: ?*anyopaque, Callback: ?EVT_SUBSCRIBE_CALLBACK, Flags: u32, ) callconv(@import("std").os.windows.WINAPI) isize; // TODO: this type is limited to platform 'windows6.0.6000' pub extern "wevtapi" fn EvtCreateRenderContext( ValuePathsCount: u32, ValuePaths: ?[*]?PWSTR, Flags: u32, ) callconv(@import("std").os.windows.WINAPI) isize; // TODO: this type is limited to platform 'windows6.0.6000' pub extern "wevtapi" fn EvtRender( Context: isize, Fragment: isize, Flags: u32, BufferSize: u32, // TODO: what to do with BytesParamIndex 3? Buffer: ?*anyopaque, BufferUsed: ?*u32, PropertyCount: ?*u32, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows6.0.6000' pub extern "wevtapi" fn EvtFormatMessage( PublisherMetadata: isize, Event: isize, MessageId: u32, ValueCount: u32, Values: ?[*]EVT_VARIANT, Flags: u32, BufferSize: u32, Buffer: ?[*:0]u16, BufferUsed: ?*u32, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows6.0.6000' pub extern "wevtapi" fn EvtOpenLog( Session: isize, Path: ?[*:0]const u16, Flags: u32, ) callconv(@import("std").os.windows.WINAPI) isize; // TODO: this type is limited to platform 'windows6.0.6000' pub extern "wevtapi" fn EvtGetLogInfo( Log: isize, PropertyId: EVT_LOG_PROPERTY_ID, PropertyValueBufferSize: u32, // TODO: what to do with BytesParamIndex 2? PropertyValueBuffer: ?*EVT_VARIANT, PropertyValueBufferUsed: ?*u32, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows6.0.6000' pub extern "wevtapi" fn EvtClearLog( Session: isize, ChannelPath: ?[*:0]const u16, TargetFilePath: ?[*:0]const u16, Flags: u32, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows6.0.6000' pub extern "wevtapi" fn EvtExportLog( Session: isize, Path: ?[*:0]const u16, Query: ?[*:0]const u16, TargetFilePath: ?[*:0]const u16, Flags: u32, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows6.0.6000' pub extern "wevtapi" fn EvtArchiveExportedLog( Session: isize, LogFilePath: ?[*:0]const u16, Locale: u32, Flags: u32, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows6.0.6000' pub extern "wevtapi" fn EvtOpenChannelEnum( Session: isize, Flags: u32, ) callconv(@import("std").os.windows.WINAPI) isize; // TODO: this type is limited to platform 'windows6.0.6000' pub extern "wevtapi" fn EvtNextChannelPath( ChannelEnum: isize, ChannelPathBufferSize: u32, ChannelPathBuffer: ?[*:0]u16, ChannelPathBufferUsed: ?*u32, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows6.0.6000' pub extern "wevtapi" fn EvtOpenChannelConfig( Session: isize, ChannelPath: ?[*:0]const u16, Flags: u32, ) callconv(@import("std").os.windows.WINAPI) isize; // TODO: this type is limited to platform 'windows6.0.6000' pub extern "wevtapi" fn EvtSaveChannelConfig( ChannelConfig: isize, Flags: u32, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows6.0.6000' pub extern "wevtapi" fn EvtSetChannelConfigProperty( ChannelConfig: isize, PropertyId: EVT_CHANNEL_CONFIG_PROPERTY_ID, Flags: u32, PropertyValue: ?*EVT_VARIANT, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows6.0.6000' pub extern "wevtapi" fn EvtGetChannelConfigProperty( ChannelConfig: isize, PropertyId: EVT_CHANNEL_CONFIG_PROPERTY_ID, Flags: u32, PropertyValueBufferSize: u32, // TODO: what to do with BytesParamIndex 3? PropertyValueBuffer: ?*EVT_VARIANT, PropertyValueBufferUsed: ?*u32, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows6.0.6000' pub extern "wevtapi" fn EvtOpenPublisherEnum( Session: isize, Flags: u32, ) callconv(@import("std").os.windows.WINAPI) isize; // TODO: this type is limited to platform 'windows6.0.6000' pub extern "wevtapi" fn EvtNextPublisherId( PublisherEnum: isize, PublisherIdBufferSize: u32, PublisherIdBuffer: ?[*:0]u16, PublisherIdBufferUsed: ?*u32, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows6.0.6000' pub extern "wevtapi" fn EvtOpenPublisherMetadata( Session: isize, PublisherId: ?[*:0]const u16, LogFilePath: ?[*:0]const u16, Locale: u32, Flags: u32, ) callconv(@import("std").os.windows.WINAPI) isize; // TODO: this type is limited to platform 'windows6.0.6000' pub extern "wevtapi" fn EvtGetPublisherMetadataProperty( PublisherMetadata: isize, PropertyId: EVT_PUBLISHER_METADATA_PROPERTY_ID, Flags: u32, PublisherMetadataPropertyBufferSize: u32, // TODO: what to do with BytesParamIndex 3? PublisherMetadataPropertyBuffer: ?*EVT_VARIANT, PublisherMetadataPropertyBufferUsed: ?*u32, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows6.0.6000' pub extern "wevtapi" fn EvtOpenEventMetadataEnum( PublisherMetadata: isize, Flags: u32, ) callconv(@import("std").os.windows.WINAPI) isize; // TODO: this type is limited to platform 'windows6.0.6000' pub extern "wevtapi" fn EvtNextEventMetadata( EventMetadataEnum: isize, Flags: u32, ) callconv(@import("std").os.windows.WINAPI) isize; // TODO: this type is limited to platform 'windows6.0.6000' pub extern "wevtapi" fn EvtGetEventMetadataProperty( EventMetadata: isize, PropertyId: EVT_EVENT_METADATA_PROPERTY_ID, Flags: u32, EventMetadataPropertyBufferSize: u32, // TODO: what to do with BytesParamIndex 3? EventMetadataPropertyBuffer: ?*EVT_VARIANT, EventMetadataPropertyBufferUsed: ?*u32, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows6.0.6000' pub extern "wevtapi" fn EvtGetObjectArraySize( ObjectArray: isize, ObjectArraySize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows6.0.6000' pub extern "wevtapi" fn EvtGetObjectArrayProperty( ObjectArray: isize, PropertyId: u32, ArrayIndex: u32, Flags: u32, PropertyValueBufferSize: u32, // TODO: what to do with BytesParamIndex 4? PropertyValueBuffer: ?*EVT_VARIANT, PropertyValueBufferUsed: ?*u32, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows6.0.6000' pub extern "wevtapi" fn EvtGetQueryInfo( QueryOrSubscription: isize, PropertyId: EVT_QUERY_PROPERTY_ID, PropertyValueBufferSize: u32, // TODO: what to do with BytesParamIndex 2? PropertyValueBuffer: ?*EVT_VARIANT, PropertyValueBufferUsed: ?*u32, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows6.0.6000' pub extern "wevtapi" fn EvtCreateBookmark( BookmarkXml: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) isize; // TODO: this type is limited to platform 'windows6.0.6000' pub extern "wevtapi" fn EvtUpdateBookmark( Bookmark: isize, Event: isize, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows6.0.6000' pub extern "wevtapi" fn EvtGetEventInfo( Event: isize, PropertyId: EVT_EVENT_PROPERTY_ID, PropertyValueBufferSize: u32, // TODO: what to do with BytesParamIndex 2? PropertyValueBuffer: ?*EVT_VARIANT, PropertyValueBufferUsed: ?*u32, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows5.0' pub extern "advapi32" fn ClearEventLogA( hEventLog: ?HANDLE, lpBackupFileName: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows5.0' pub extern "advapi32" fn ClearEventLogW( hEventLog: ?HANDLE, lpBackupFileName: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows5.0' pub extern "advapi32" fn BackupEventLogA( hEventLog: ?HANDLE, lpBackupFileName: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows5.0' pub extern "advapi32" fn BackupEventLogW( hEventLog: ?HANDLE, lpBackupFileName: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows5.0' pub extern "advapi32" fn CloseEventLog( hEventLog: EventLogHandle, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows5.0' pub extern "advapi32" fn DeregisterEventSource( hEventLog: EventSourceHandle, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows5.0' pub extern "advapi32" fn NotifyChangeEventLog( hEventLog: ?HANDLE, hEvent: ?HANDLE, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows5.0' pub extern "advapi32" fn GetNumberOfEventLogRecords( hEventLog: ?HANDLE, NumberOfRecords: ?*u32, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows5.0' pub extern "advapi32" fn GetOldestEventLogRecord( hEventLog: ?HANDLE, OldestRecord: ?*u32, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows5.0' pub extern "advapi32" fn OpenEventLogA( lpUNCServerName: ?[*:0]const u8, lpSourceName: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) EventLogHandle; // TODO: this type is limited to platform 'windows5.0' pub extern "advapi32" fn OpenEventLogW( lpUNCServerName: ?[*:0]const u16, lpSourceName: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) EventLogHandle; // TODO: this type is limited to platform 'windows5.0' pub extern "advapi32" fn RegisterEventSourceA( lpUNCServerName: ?[*:0]const u8, lpSourceName: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) EventSourceHandle; // TODO: this type is limited to platform 'windows5.0' pub extern "advapi32" fn RegisterEventSourceW( lpUNCServerName: ?[*:0]const u16, lpSourceName: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) EventSourceHandle; // TODO: this type is limited to platform 'windows5.0' pub extern "advapi32" fn OpenBackupEventLogA( lpUNCServerName: ?[*:0]const u8, lpFileName: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) EventLogHandle; // TODO: this type is limited to platform 'windows5.0' pub extern "advapi32" fn OpenBackupEventLogW( lpUNCServerName: ?[*:0]const u16, lpFileName: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) EventLogHandle; // TODO: this type is limited to platform 'windows5.0' pub extern "advapi32" fn ReadEventLogA( hEventLog: ?HANDLE, dwReadFlags: READ_EVENT_LOG_READ_FLAGS, dwRecordOffset: u32, // TODO: what to do with BytesParamIndex 4? lpBuffer: ?*anyopaque, nNumberOfBytesToRead: u32, pnBytesRead: ?*u32, pnMinNumberOfBytesNeeded: ?*u32, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows5.0' pub extern "advapi32" fn ReadEventLogW( hEventLog: ?HANDLE, dwReadFlags: READ_EVENT_LOG_READ_FLAGS, dwRecordOffset: u32, // TODO: what to do with BytesParamIndex 4? lpBuffer: ?*anyopaque, nNumberOfBytesToRead: u32, pnBytesRead: ?*u32, pnMinNumberOfBytesNeeded: ?*u32, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows5.0' pub extern "advapi32" fn ReportEventA( hEventLog: ?HANDLE, wType: REPORT_EVENT_TYPE, wCategory: u16, dwEventID: u32, lpUserSid: ?PSID, wNumStrings: u16, dwDataSize: u32, lpStrings: ?[*]?PSTR, // TODO: what to do with BytesParamIndex 6? lpRawData: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows5.0' pub extern "advapi32" fn ReportEventW( hEventLog: ?HANDLE, wType: REPORT_EVENT_TYPE, wCategory: u16, dwEventID: u32, lpUserSid: ?PSID, wNumStrings: u16, dwDataSize: u32, lpStrings: ?[*]?PWSTR, // TODO: what to do with BytesParamIndex 6? lpRawData: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows5.0' pub extern "advapi32" fn GetEventLogInformation( hEventLog: ?HANDLE, dwInfoLevel: u32, // TODO: what to do with BytesParamIndex 3? lpBuffer: ?*anyopaque, cbBufSize: u32, pcbBytesNeeded: ?*u32, ) callconv(@import("std").os.windows.WINAPI) BOOL; //-------------------------------------------------------------------------------- // Section: Unicode Aliases (7) //-------------------------------------------------------------------------------- const thismodule = @This(); pub usingnamespace switch (@import("../zig.zig").unicode_mode) { .ansi => struct { pub const ClearEventLog = thismodule.ClearEventLogA; pub const BackupEventLog = thismodule.BackupEventLogA; pub const OpenEventLog = thismodule.OpenEventLogA; pub const RegisterEventSource = thismodule.RegisterEventSourceA; pub const OpenBackupEventLog = thismodule.OpenBackupEventLogA; pub const ReadEventLog = thismodule.ReadEventLogA; pub const ReportEvent = thismodule.ReportEventA; }, .wide => struct { pub const ClearEventLog = thismodule.ClearEventLogW; pub const BackupEventLog = thismodule.BackupEventLogW; pub const OpenEventLog = thismodule.OpenEventLogW; pub const RegisterEventSource = thismodule.RegisterEventSourceW; pub const OpenBackupEventLog = thismodule.OpenBackupEventLogW; pub const ReadEventLog = thismodule.ReadEventLogW; pub const ReportEvent = thismodule.ReportEventW; }, .unspecified => if (@import("builtin").is_test) struct { pub const ClearEventLog = *opaque {}; pub const BackupEventLog = *opaque {}; pub const OpenEventLog = *opaque {}; pub const RegisterEventSource = *opaque {}; pub const OpenBackupEventLog = *opaque {}; pub const ReadEventLog = *opaque {}; pub const ReportEvent = *opaque {}; } else struct { pub const ClearEventLog = @compileError("'ClearEventLog' requires that UNICODE be set to true or false in the root module"); pub const BackupEventLog = @compileError("'BackupEventLog' requires that UNICODE be set to true or false in the root module"); pub const OpenEventLog = @compileError("'OpenEventLog' requires that UNICODE be set to true or false in the root module"); pub const RegisterEventSource = @compileError("'RegisterEventSource' requires that UNICODE be set to true or false in the root module"); pub const OpenBackupEventLog = @compileError("'OpenBackupEventLog' requires that UNICODE be set to true or false in the root module"); pub const ReadEventLog = @compileError("'ReadEventLog' requires that UNICODE be set to true or false in the root module"); pub const ReportEvent = @compileError("'ReportEvent' requires that UNICODE be set to true or false in the root module"); }, }; //-------------------------------------------------------------------------------- // Section: Imports (8) //-------------------------------------------------------------------------------- const Guid = @import("../zig.zig").Guid; const BOOL = @import("../foundation.zig").BOOL; const FILETIME = @import("../foundation.zig").FILETIME; const HANDLE = @import("../foundation.zig").HANDLE; const PSID = @import("../foundation.zig").PSID; const PSTR = @import("../foundation.zig").PSTR; const PWSTR = @import("../foundation.zig").PWSTR; const SYSTEMTIME = @import("../foundation.zig").SYSTEMTIME; test { // The following '_ = <FuncPtrType>' lines are a workaround for https://github.com/ziglang/zig/issues/4476 if (@hasDecl(@This(), "EVT_SUBSCRIBE_CALLBACK")) { _ = EVT_SUBSCRIBE_CALLBACK; } @setEvalBranchQuota(comptime @import("std").meta.declarations(@This()).len * 3); // reference all the pub declarations if (!@import("builtin").is_test) return; inline for (comptime @import("std").meta.declarations(@This())) |decl| { if (decl.is_pub) { _ = @field(@This(), decl.name); } } }
0
repos/capy/vendor/zigwin32/win32
repos/capy/vendor/zigwin32/win32/system/restart_manager.zig
//! NOTE: this file is autogenerated, DO NOT MODIFY //-------------------------------------------------------------------------------- // Section: Constants (5) //-------------------------------------------------------------------------------- pub const CCH_RM_SESSION_KEY = @as(u32, 32); pub const CCH_RM_MAX_APP_NAME = @as(u32, 255); pub const CCH_RM_MAX_SVC_NAME = @as(u32, 63); pub const RM_INVALID_TS_SESSION = @as(i32, -1); pub const RM_INVALID_PROCESS = @as(i32, -1); //-------------------------------------------------------------------------------- // Section: Types (10) //-------------------------------------------------------------------------------- pub const RM_APP_TYPE = enum(i32) { UnknownApp = 0, MainWindow = 1, OtherWindow = 2, Service = 3, Explorer = 4, Console = 5, Critical = 1000, }; pub const RmUnknownApp = RM_APP_TYPE.UnknownApp; pub const RmMainWindow = RM_APP_TYPE.MainWindow; pub const RmOtherWindow = RM_APP_TYPE.OtherWindow; pub const RmService = RM_APP_TYPE.Service; pub const RmExplorer = RM_APP_TYPE.Explorer; pub const RmConsole = RM_APP_TYPE.Console; pub const RmCritical = RM_APP_TYPE.Critical; pub const RM_SHUTDOWN_TYPE = enum(i32) { ForceShutdown = 1, ShutdownOnlyRegistered = 16, }; pub const RmForceShutdown = RM_SHUTDOWN_TYPE.ForceShutdown; pub const RmShutdownOnlyRegistered = RM_SHUTDOWN_TYPE.ShutdownOnlyRegistered; pub const RM_APP_STATUS = enum(i32) { Unknown = 0, Running = 1, Stopped = 2, StoppedOther = 4, Restarted = 8, ErrorOnStop = 16, ErrorOnRestart = 32, ShutdownMasked = 64, RestartMasked = 128, }; pub const RmStatusUnknown = RM_APP_STATUS.Unknown; pub const RmStatusRunning = RM_APP_STATUS.Running; pub const RmStatusStopped = RM_APP_STATUS.Stopped; pub const RmStatusStoppedOther = RM_APP_STATUS.StoppedOther; pub const RmStatusRestarted = RM_APP_STATUS.Restarted; pub const RmStatusErrorOnStop = RM_APP_STATUS.ErrorOnStop; pub const RmStatusErrorOnRestart = RM_APP_STATUS.ErrorOnRestart; pub const RmStatusShutdownMasked = RM_APP_STATUS.ShutdownMasked; pub const RmStatusRestartMasked = RM_APP_STATUS.RestartMasked; pub const RM_REBOOT_REASON = enum(i32) { None = 0, PermissionDenied = 1, SessionMismatch = 2, CriticalProcess = 4, CriticalService = 8, DetectedSelf = 16, }; pub const RmRebootReasonNone = RM_REBOOT_REASON.None; pub const RmRebootReasonPermissionDenied = RM_REBOOT_REASON.PermissionDenied; pub const RmRebootReasonSessionMismatch = RM_REBOOT_REASON.SessionMismatch; pub const RmRebootReasonCriticalProcess = RM_REBOOT_REASON.CriticalProcess; pub const RmRebootReasonCriticalService = RM_REBOOT_REASON.CriticalService; pub const RmRebootReasonDetectedSelf = RM_REBOOT_REASON.DetectedSelf; pub const RM_UNIQUE_PROCESS = extern struct { dwProcessId: u32, ProcessStartTime: FILETIME, }; pub const RM_PROCESS_INFO = extern struct { Process: RM_UNIQUE_PROCESS, strAppName: [256]u16, strServiceShortName: [64]u16, ApplicationType: RM_APP_TYPE, AppStatus: u32, TSSessionId: u32, bRestartable: BOOL, }; pub const RM_FILTER_TRIGGER = enum(i32) { Invalid = 0, File = 1, Process = 2, Service = 3, }; pub const RmFilterTriggerInvalid = RM_FILTER_TRIGGER.Invalid; pub const RmFilterTriggerFile = RM_FILTER_TRIGGER.File; pub const RmFilterTriggerProcess = RM_FILTER_TRIGGER.Process; pub const RmFilterTriggerService = RM_FILTER_TRIGGER.Service; pub const RM_FILTER_ACTION = enum(i32) { InvalidFilterAction = 0, NoRestart = 1, NoShutdown = 2, }; pub const RmInvalidFilterAction = RM_FILTER_ACTION.InvalidFilterAction; pub const RmNoRestart = RM_FILTER_ACTION.NoRestart; pub const RmNoShutdown = RM_FILTER_ACTION.NoShutdown; pub const RM_FILTER_INFO = extern struct { FilterAction: RM_FILTER_ACTION, FilterTrigger: RM_FILTER_TRIGGER, cbNextOffset: u32, Anonymous: extern union { strFilename: ?PWSTR, Process: RM_UNIQUE_PROCESS, strServiceShortName: ?PWSTR, }, }; pub const RM_WRITE_STATUS_CALLBACK = switch (@import("builtin").zig_backend) { .stage1 => fn ( nPercentComplete: u32, ) callconv(@import("std").os.windows.WINAPI) void, else => *const fn ( nPercentComplete: u32, ) callconv(@import("std").os.windows.WINAPI) void, }; //-------------------------------------------------------------------------------- // Section: Functions (11) //-------------------------------------------------------------------------------- // TODO: this type is limited to platform 'windows6.0.6000' pub extern "rstrtmgr" fn RmStartSession( pSessionHandle: ?*u32, dwSessionFlags: u32, strSessionKey: ?PWSTR, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'windows6.0.6000' pub extern "rstrtmgr" fn RmJoinSession( pSessionHandle: ?*u32, strSessionKey: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'windows6.0.6000' pub extern "rstrtmgr" fn RmEndSession( dwSessionHandle: u32, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'windows6.0.6000' pub extern "rstrtmgr" fn RmRegisterResources( dwSessionHandle: u32, nFiles: u32, rgsFileNames: ?[*]?PWSTR, nApplications: u32, rgApplications: ?[*]RM_UNIQUE_PROCESS, nServices: u32, rgsServiceNames: ?[*]?PWSTR, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'windows6.0.6000' pub extern "rstrtmgr" fn RmGetList( dwSessionHandle: u32, pnProcInfoNeeded: ?*u32, pnProcInfo: ?*u32, rgAffectedApps: ?[*]RM_PROCESS_INFO, lpdwRebootReasons: ?*u32, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'windows6.0.6000' pub extern "rstrtmgr" fn RmShutdown( dwSessionHandle: u32, lActionFlags: u32, fnStatus: ?RM_WRITE_STATUS_CALLBACK, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'windows6.0.6000' pub extern "rstrtmgr" fn RmRestart( dwSessionHandle: u32, dwRestartFlags: u32, fnStatus: ?RM_WRITE_STATUS_CALLBACK, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'windows6.0.6000' pub extern "rstrtmgr" fn RmCancelCurrentTask( dwSessionHandle: u32, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'windows6.0.6000' pub extern "rstrtmgr" fn RmAddFilter( dwSessionHandle: u32, strModuleName: ?[*:0]const u16, pProcess: ?*RM_UNIQUE_PROCESS, strServiceShortName: ?[*:0]const u16, FilterAction: RM_FILTER_ACTION, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'windows6.0.6000' pub extern "rstrtmgr" fn RmRemoveFilter( dwSessionHandle: u32, strModuleName: ?[*:0]const u16, pProcess: ?*RM_UNIQUE_PROCESS, strServiceShortName: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'windows6.0.6000' pub extern "rstrtmgr" fn RmGetFilterList( dwSessionHandle: u32, // TODO: what to do with BytesParamIndex 2? pbFilterBuf: ?*u8, cbFilterBuf: u32, cbFilterBufNeeded: ?*u32, ) callconv(@import("std").os.windows.WINAPI) u32; //-------------------------------------------------------------------------------- // Section: Unicode Aliases (0) //-------------------------------------------------------------------------------- const thismodule = @This(); pub usingnamespace switch (@import("../zig.zig").unicode_mode) { .ansi => struct {}, .wide => struct {}, .unspecified => if (@import("builtin").is_test) struct {} else struct {}, }; //-------------------------------------------------------------------------------- // Section: Imports (3) //-------------------------------------------------------------------------------- const BOOL = @import("../foundation.zig").BOOL; const FILETIME = @import("../foundation.zig").FILETIME; const PWSTR = @import("../foundation.zig").PWSTR; test { // The following '_ = <FuncPtrType>' lines are a workaround for https://github.com/ziglang/zig/issues/4476 if (@hasDecl(@This(), "RM_WRITE_STATUS_CALLBACK")) { _ = RM_WRITE_STATUS_CALLBACK; } @setEvalBranchQuota(comptime @import("std").meta.declarations(@This()).len * 3); // reference all the pub declarations if (!@import("builtin").is_test) return; inline for (comptime @import("std").meta.declarations(@This())) |decl| { if (decl.is_pub) { _ = @field(@This(), decl.name); } } }
0
repos/capy/vendor/zigwin32/win32
repos/capy/vendor/zigwin32/win32/system/component_services.zig
//! NOTE: this file is autogenerated, DO NOT MODIFY //-------------------------------------------------------------------------------- // Section: Constants (9) //-------------------------------------------------------------------------------- pub const GUID_STRING_SIZE = @as(u32, 40); pub const DATA_NOT_AVAILABLE = @as(u32, 4294967295); pub const MTXDM_E_ENLISTRESOURCEFAILED = @as(u32, 2147803392); pub const CRR_NO_REASON_SUPPLIED = @as(u32, 0); pub const CRR_LIFETIME_LIMIT = @as(u32, 4294967295); pub const CRR_ACTIVATION_LIMIT = @as(u32, 4294967294); pub const CRR_CALL_LIMIT = @as(u32, 4294967293); pub const CRR_MEMORY_LIMIT = @as(u32, 4294967292); pub const CRR_RECYCLED_FROM_UI = @as(u32, 4294967291); //-------------------------------------------------------------------------------- // Section: Types (211) //-------------------------------------------------------------------------------- const CLSID_SecurityIdentity_Value = Guid.initString("ecabb0a5-7f19-11d2-978e-0000f8757e2a"); pub const CLSID_SecurityIdentity = &CLSID_SecurityIdentity_Value; const CLSID_SecurityCallers_Value = Guid.initString("ecabb0a6-7f19-11d2-978e-0000f8757e2a"); pub const CLSID_SecurityCallers = &CLSID_SecurityCallers_Value; const CLSID_SecurityCallContext_Value = Guid.initString("ecabb0a7-7f19-11d2-978e-0000f8757e2a"); pub const CLSID_SecurityCallContext = &CLSID_SecurityCallContext_Value; const CLSID_GetSecurityCallContextAppObject_Value = Guid.initString("ecabb0a8-7f19-11d2-978e-0000f8757e2a"); pub const CLSID_GetSecurityCallContextAppObject = &CLSID_GetSecurityCallContextAppObject_Value; const CLSID_Dummy30040732_Value = Guid.initString("ecabb0a9-7f19-11d2-978e-0000f8757e2a"); pub const CLSID_Dummy30040732 = &CLSID_Dummy30040732_Value; const CLSID_TransactionContext_Value = Guid.initString("7999fc25-d3c6-11cf-acab-00a024a55aef"); pub const CLSID_TransactionContext = &CLSID_TransactionContext_Value; const CLSID_TransactionContextEx_Value = Guid.initString("5cb66670-d3d4-11cf-acab-00a024a55aef"); pub const CLSID_TransactionContextEx = &CLSID_TransactionContextEx_Value; const CLSID_ByotServerEx_Value = Guid.initString("ecabb0aa-7f19-11d2-978e-0000f8757e2a"); pub const CLSID_ByotServerEx = &CLSID_ByotServerEx_Value; const CLSID_CServiceConfig_Value = Guid.initString("ecabb0c8-7f19-11d2-978e-0000f8757e2a"); pub const CLSID_CServiceConfig = &CLSID_CServiceConfig_Value; const CLSID_ServicePool_Value = Guid.initString("ecabb0c9-7f19-11d2-978e-0000f8757e2a"); pub const CLSID_ServicePool = &CLSID_ServicePool_Value; const CLSID_ServicePoolConfig_Value = Guid.initString("ecabb0ca-7f19-11d2-978e-0000f8757e2a"); pub const CLSID_ServicePoolConfig = &CLSID_ServicePoolConfig_Value; const CLSID_SharedProperty_Value = Guid.initString("2a005c05-a5de-11cf-9e66-00aa00a3f464"); pub const CLSID_SharedProperty = &CLSID_SharedProperty_Value; const CLSID_SharedPropertyGroup_Value = Guid.initString("2a005c0b-a5de-11cf-9e66-00aa00a3f464"); pub const CLSID_SharedPropertyGroup = &CLSID_SharedPropertyGroup_Value; const CLSID_SharedPropertyGroupManager_Value = Guid.initString("2a005c11-a5de-11cf-9e66-00aa00a3f464"); pub const CLSID_SharedPropertyGroupManager = &CLSID_SharedPropertyGroupManager_Value; const CLSID_COMEvents_Value = Guid.initString("ecabb0ab-7f19-11d2-978e-0000f8757e2a"); pub const CLSID_COMEvents = &CLSID_COMEvents_Value; const CLSID_CoMTSLocator_Value = Guid.initString("ecabb0ac-7f19-11d2-978e-0000f8757e2a"); pub const CLSID_CoMTSLocator = &CLSID_CoMTSLocator_Value; const CLSID_MtsGrp_Value = Guid.initString("4b2e958d-0393-11d1-b1ab-00aa00ba3258"); pub const CLSID_MtsGrp = &CLSID_MtsGrp_Value; const CLSID_ComServiceEvents_Value = Guid.initString("ecabb0c3-7f19-11d2-978e-0000f8757e2a"); pub const CLSID_ComServiceEvents = &CLSID_ComServiceEvents_Value; const CLSID_ComSystemAppEventData_Value = Guid.initString("ecabb0c6-7f19-11d2-978e-0000f8757e2a"); pub const CLSID_ComSystemAppEventData = &CLSID_ComSystemAppEventData_Value; const CLSID_CRMClerk_Value = Guid.initString("ecabb0bd-7f19-11d2-978e-0000f8757e2a"); pub const CLSID_CRMClerk = &CLSID_CRMClerk_Value; const CLSID_CRMRecoveryClerk_Value = Guid.initString("ecabb0be-7f19-11d2-978e-0000f8757e2a"); pub const CLSID_CRMRecoveryClerk = &CLSID_CRMRecoveryClerk_Value; const CLSID_LBEvents_Value = Guid.initString("ecabb0c1-7f19-11d2-978e-0000f8757e2a"); pub const CLSID_LBEvents = &CLSID_LBEvents_Value; const CLSID_MessageMover_Value = Guid.initString("ecabb0bf-7f19-11d2-978e-0000f8757e2a"); pub const CLSID_MessageMover = &CLSID_MessageMover_Value; const CLSID_DispenserManager_Value = Guid.initString("ecabb0c0-7f19-11d2-978e-0000f8757e2a"); pub const CLSID_DispenserManager = &CLSID_DispenserManager_Value; const CLSID_PoolMgr_Value = Guid.initString("ecabafb5-7f19-11d2-978e-0000f8757e2a"); pub const CLSID_PoolMgr = &CLSID_PoolMgr_Value; const CLSID_EventServer_Value = Guid.initString("ecabafbc-7f19-11d2-978e-0000f8757e2a"); pub const CLSID_EventServer = &CLSID_EventServer_Value; const CLSID_TrackerServer_Value = Guid.initString("ecabafb9-7f19-11d2-978e-0000f8757e2a"); pub const CLSID_TrackerServer = &CLSID_TrackerServer_Value; const CLSID_AppDomainHelper_Value = Guid.initString("ef24f689-14f8-4d92-b4af-d7b1f0e70fd4"); pub const CLSID_AppDomainHelper = &CLSID_AppDomainHelper_Value; const CLSID_ClrAssemblyLocator_Value = Guid.initString("458aa3b5-265a-4b75-bc05-9bea4630cf18"); pub const CLSID_ClrAssemblyLocator = &CLSID_ClrAssemblyLocator_Value; const CLSID_COMAdminCatalog_Value = Guid.initString("f618c514-dfb8-11d1-a2cf-00805fc79235"); pub const CLSID_COMAdminCatalog = &CLSID_COMAdminCatalog_Value; const CLSID_COMAdminCatalogObject_Value = Guid.initString("f618c515-dfb8-11d1-a2cf-00805fc79235"); pub const CLSID_COMAdminCatalogObject = &CLSID_COMAdminCatalogObject_Value; const CLSID_COMAdminCatalogCollection_Value = Guid.initString("f618c516-dfb8-11d1-a2cf-00805fc79235"); pub const CLSID_COMAdminCatalogCollection = &CLSID_COMAdminCatalogCollection_Value; // TODO: this type is limited to platform 'windows5.0' const IID_ICOMAdminCatalog_Value = Guid.initString("dd662187-dfc2-11d1-a2cf-00805fc79235"); pub const IID_ICOMAdminCatalog = &IID_ICOMAdminCatalog_Value; pub const ICOMAdminCatalog = extern struct { pub const VTable = extern struct { base: IDispatch.VTable, GetCollection: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ICOMAdminCatalog, bstrCollName: ?BSTR, ppCatalogCollection: ?*?*IDispatch, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ICOMAdminCatalog, bstrCollName: ?BSTR, ppCatalogCollection: ?*?*IDispatch, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Connect: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ICOMAdminCatalog, bstrCatalogServerName: ?BSTR, ppCatalogCollection: ?*?*IDispatch, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ICOMAdminCatalog, bstrCatalogServerName: ?BSTR, ppCatalogCollection: ?*?*IDispatch, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_MajorVersion: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ICOMAdminCatalog, plMajorVersion: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ICOMAdminCatalog, plMajorVersion: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_MinorVersion: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ICOMAdminCatalog, plMinorVersion: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ICOMAdminCatalog, plMinorVersion: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetCollectionByQuery: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ICOMAdminCatalog, bstrCollName: ?BSTR, ppsaVarQuery: ?*?*SAFEARRAY, ppCatalogCollection: ?*?*IDispatch, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ICOMAdminCatalog, bstrCollName: ?BSTR, ppsaVarQuery: ?*?*SAFEARRAY, ppCatalogCollection: ?*?*IDispatch, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, ImportComponent: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ICOMAdminCatalog, bstrApplIDOrName: ?BSTR, bstrCLSIDOrProgID: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ICOMAdminCatalog, bstrApplIDOrName: ?BSTR, bstrCLSIDOrProgID: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, InstallComponent: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ICOMAdminCatalog, bstrApplIDOrName: ?BSTR, bstrDLL: ?BSTR, bstrTLB: ?BSTR, bstrPSDLL: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ICOMAdminCatalog, bstrApplIDOrName: ?BSTR, bstrDLL: ?BSTR, bstrTLB: ?BSTR, bstrPSDLL: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, ShutdownApplication: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ICOMAdminCatalog, bstrApplIDOrName: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ICOMAdminCatalog, bstrApplIDOrName: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, ExportApplication: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ICOMAdminCatalog, bstrApplIDOrName: ?BSTR, bstrApplicationFile: ?BSTR, lOptions: COMAdminApplicationExportOptions, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ICOMAdminCatalog, bstrApplIDOrName: ?BSTR, bstrApplicationFile: ?BSTR, lOptions: COMAdminApplicationExportOptions, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, InstallApplication: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ICOMAdminCatalog, bstrApplicationFile: ?BSTR, bstrDestinationDirectory: ?BSTR, lOptions: COMAdminApplicationInstallOptions, bstrUserId: ?BSTR, bstrPassword: ?BSTR, bstrRSN: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ICOMAdminCatalog, bstrApplicationFile: ?BSTR, bstrDestinationDirectory: ?BSTR, lOptions: COMAdminApplicationInstallOptions, bstrUserId: ?BSTR, bstrPassword: ?BSTR, bstrRSN: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, StopRouter: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ICOMAdminCatalog, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ICOMAdminCatalog, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, RefreshRouter: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ICOMAdminCatalog, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ICOMAdminCatalog, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, StartRouter: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ICOMAdminCatalog, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ICOMAdminCatalog, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Reserved1: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ICOMAdminCatalog, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ICOMAdminCatalog, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Reserved2: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ICOMAdminCatalog, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ICOMAdminCatalog, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, InstallMultipleComponents: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ICOMAdminCatalog, bstrApplIDOrName: ?BSTR, ppsaVarFileNames: ?*?*SAFEARRAY, ppsaVarCLSIDs: ?*?*SAFEARRAY, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ICOMAdminCatalog, bstrApplIDOrName: ?BSTR, ppsaVarFileNames: ?*?*SAFEARRAY, ppsaVarCLSIDs: ?*?*SAFEARRAY, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetMultipleComponentsInfo: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ICOMAdminCatalog, bstrApplIdOrName: ?BSTR, ppsaVarFileNames: ?*?*SAFEARRAY, ppsaVarCLSIDs: ?*?*SAFEARRAY, ppsaVarClassNames: ?*?*SAFEARRAY, ppsaVarFileFlags: ?*?*SAFEARRAY, ppsaVarComponentFlags: ?*?*SAFEARRAY, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ICOMAdminCatalog, bstrApplIdOrName: ?BSTR, ppsaVarFileNames: ?*?*SAFEARRAY, ppsaVarCLSIDs: ?*?*SAFEARRAY, ppsaVarClassNames: ?*?*SAFEARRAY, ppsaVarFileFlags: ?*?*SAFEARRAY, ppsaVarComponentFlags: ?*?*SAFEARRAY, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, RefreshComponents: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ICOMAdminCatalog, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ICOMAdminCatalog, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, BackupREGDB: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ICOMAdminCatalog, bstrBackupFilePath: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ICOMAdminCatalog, bstrBackupFilePath: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, RestoreREGDB: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ICOMAdminCatalog, bstrBackupFilePath: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ICOMAdminCatalog, bstrBackupFilePath: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, QueryApplicationFile: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ICOMAdminCatalog, bstrApplicationFile: ?BSTR, pbstrApplicationName: ?*?BSTR, pbstrApplicationDescription: ?*?BSTR, pbHasUsers: ?*i16, pbIsProxy: ?*i16, ppsaVarFileNames: ?*?*SAFEARRAY, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ICOMAdminCatalog, bstrApplicationFile: ?BSTR, pbstrApplicationName: ?*?BSTR, pbstrApplicationDescription: ?*?BSTR, pbHasUsers: ?*i16, pbIsProxy: ?*i16, ppsaVarFileNames: ?*?*SAFEARRAY, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, StartApplication: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ICOMAdminCatalog, bstrApplIdOrName: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ICOMAdminCatalog, bstrApplIdOrName: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, ServiceCheck: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ICOMAdminCatalog, lService: i32, plStatus: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ICOMAdminCatalog, lService: i32, plStatus: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, InstallMultipleEventClasses: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ICOMAdminCatalog, bstrApplIdOrName: ?BSTR, ppsaVarFileNames: ?*?*SAFEARRAY, ppsaVarCLSIDS: ?*?*SAFEARRAY, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ICOMAdminCatalog, bstrApplIdOrName: ?BSTR, ppsaVarFileNames: ?*?*SAFEARRAY, ppsaVarCLSIDS: ?*?*SAFEARRAY, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, InstallEventClass: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ICOMAdminCatalog, bstrApplIdOrName: ?BSTR, bstrDLL: ?BSTR, bstrTLB: ?BSTR, bstrPSDLL: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ICOMAdminCatalog, bstrApplIdOrName: ?BSTR, bstrDLL: ?BSTR, bstrTLB: ?BSTR, bstrPSDLL: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetEventClassesForIID: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ICOMAdminCatalog, bstrIID: ?BSTR, ppsaVarCLSIDs: ?*?*SAFEARRAY, ppsaVarProgIDs: ?*?*SAFEARRAY, ppsaVarDescriptions: ?*?*SAFEARRAY, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ICOMAdminCatalog, bstrIID: ?BSTR, ppsaVarCLSIDs: ?*?*SAFEARRAY, ppsaVarProgIDs: ?*?*SAFEARRAY, ppsaVarDescriptions: ?*?*SAFEARRAY, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IDispatch.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ICOMAdminCatalog_GetCollection(self: *const T, bstrCollName: ?BSTR, ppCatalogCollection: ?*?*IDispatch) HRESULT { return @as(*const ICOMAdminCatalog.VTable, @ptrCast(self.vtable)).GetCollection(@as(*const ICOMAdminCatalog, @ptrCast(self)), bstrCollName, ppCatalogCollection); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ICOMAdminCatalog_Connect(self: *const T, bstrCatalogServerName: ?BSTR, ppCatalogCollection: ?*?*IDispatch) HRESULT { return @as(*const ICOMAdminCatalog.VTable, @ptrCast(self.vtable)).Connect(@as(*const ICOMAdminCatalog, @ptrCast(self)), bstrCatalogServerName, ppCatalogCollection); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ICOMAdminCatalog_get_MajorVersion(self: *const T, plMajorVersion: ?*i32) HRESULT { return @as(*const ICOMAdminCatalog.VTable, @ptrCast(self.vtable)).get_MajorVersion(@as(*const ICOMAdminCatalog, @ptrCast(self)), plMajorVersion); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ICOMAdminCatalog_get_MinorVersion(self: *const T, plMinorVersion: ?*i32) HRESULT { return @as(*const ICOMAdminCatalog.VTable, @ptrCast(self.vtable)).get_MinorVersion(@as(*const ICOMAdminCatalog, @ptrCast(self)), plMinorVersion); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ICOMAdminCatalog_GetCollectionByQuery(self: *const T, bstrCollName: ?BSTR, ppsaVarQuery: ?*?*SAFEARRAY, ppCatalogCollection: ?*?*IDispatch) HRESULT { return @as(*const ICOMAdminCatalog.VTable, @ptrCast(self.vtable)).GetCollectionByQuery(@as(*const ICOMAdminCatalog, @ptrCast(self)), bstrCollName, ppsaVarQuery, ppCatalogCollection); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ICOMAdminCatalog_ImportComponent(self: *const T, bstrApplIDOrName: ?BSTR, bstrCLSIDOrProgID: ?BSTR) HRESULT { return @as(*const ICOMAdminCatalog.VTable, @ptrCast(self.vtable)).ImportComponent(@as(*const ICOMAdminCatalog, @ptrCast(self)), bstrApplIDOrName, bstrCLSIDOrProgID); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ICOMAdminCatalog_InstallComponent(self: *const T, bstrApplIDOrName: ?BSTR, bstrDLL: ?BSTR, bstrTLB: ?BSTR, bstrPSDLL: ?BSTR) HRESULT { return @as(*const ICOMAdminCatalog.VTable, @ptrCast(self.vtable)).InstallComponent(@as(*const ICOMAdminCatalog, @ptrCast(self)), bstrApplIDOrName, bstrDLL, bstrTLB, bstrPSDLL); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ICOMAdminCatalog_ShutdownApplication(self: *const T, bstrApplIDOrName: ?BSTR) HRESULT { return @as(*const ICOMAdminCatalog.VTable, @ptrCast(self.vtable)).ShutdownApplication(@as(*const ICOMAdminCatalog, @ptrCast(self)), bstrApplIDOrName); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ICOMAdminCatalog_ExportApplication(self: *const T, bstrApplIDOrName: ?BSTR, bstrApplicationFile: ?BSTR, lOptions: COMAdminApplicationExportOptions) HRESULT { return @as(*const ICOMAdminCatalog.VTable, @ptrCast(self.vtable)).ExportApplication(@as(*const ICOMAdminCatalog, @ptrCast(self)), bstrApplIDOrName, bstrApplicationFile, lOptions); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ICOMAdminCatalog_InstallApplication(self: *const T, bstrApplicationFile: ?BSTR, bstrDestinationDirectory: ?BSTR, lOptions: COMAdminApplicationInstallOptions, bstrUserId: ?BSTR, bstrPassword: ?BSTR, bstrRSN: ?BSTR) HRESULT { return @as(*const ICOMAdminCatalog.VTable, @ptrCast(self.vtable)).InstallApplication(@as(*const ICOMAdminCatalog, @ptrCast(self)), bstrApplicationFile, bstrDestinationDirectory, lOptions, bstrUserId, bstrPassword, bstrRSN); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ICOMAdminCatalog_StopRouter(self: *const T) HRESULT { return @as(*const ICOMAdminCatalog.VTable, @ptrCast(self.vtable)).StopRouter(@as(*const ICOMAdminCatalog, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ICOMAdminCatalog_RefreshRouter(self: *const T) HRESULT { return @as(*const ICOMAdminCatalog.VTable, @ptrCast(self.vtable)).RefreshRouter(@as(*const ICOMAdminCatalog, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ICOMAdminCatalog_StartRouter(self: *const T) HRESULT { return @as(*const ICOMAdminCatalog.VTable, @ptrCast(self.vtable)).StartRouter(@as(*const ICOMAdminCatalog, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ICOMAdminCatalog_Reserved1(self: *const T) HRESULT { return @as(*const ICOMAdminCatalog.VTable, @ptrCast(self.vtable)).Reserved1(@as(*const ICOMAdminCatalog, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ICOMAdminCatalog_Reserved2(self: *const T) HRESULT { return @as(*const ICOMAdminCatalog.VTable, @ptrCast(self.vtable)).Reserved2(@as(*const ICOMAdminCatalog, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ICOMAdminCatalog_InstallMultipleComponents(self: *const T, bstrApplIDOrName: ?BSTR, ppsaVarFileNames: ?*?*SAFEARRAY, ppsaVarCLSIDs: ?*?*SAFEARRAY) HRESULT { return @as(*const ICOMAdminCatalog.VTable, @ptrCast(self.vtable)).InstallMultipleComponents(@as(*const ICOMAdminCatalog, @ptrCast(self)), bstrApplIDOrName, ppsaVarFileNames, ppsaVarCLSIDs); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ICOMAdminCatalog_GetMultipleComponentsInfo(self: *const T, bstrApplIdOrName: ?BSTR, ppsaVarFileNames: ?*?*SAFEARRAY, ppsaVarCLSIDs: ?*?*SAFEARRAY, ppsaVarClassNames: ?*?*SAFEARRAY, ppsaVarFileFlags: ?*?*SAFEARRAY, ppsaVarComponentFlags: ?*?*SAFEARRAY) HRESULT { return @as(*const ICOMAdminCatalog.VTable, @ptrCast(self.vtable)).GetMultipleComponentsInfo(@as(*const ICOMAdminCatalog, @ptrCast(self)), bstrApplIdOrName, ppsaVarFileNames, ppsaVarCLSIDs, ppsaVarClassNames, ppsaVarFileFlags, ppsaVarComponentFlags); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ICOMAdminCatalog_RefreshComponents(self: *const T) HRESULT { return @as(*const ICOMAdminCatalog.VTable, @ptrCast(self.vtable)).RefreshComponents(@as(*const ICOMAdminCatalog, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ICOMAdminCatalog_BackupREGDB(self: *const T, bstrBackupFilePath: ?BSTR) HRESULT { return @as(*const ICOMAdminCatalog.VTable, @ptrCast(self.vtable)).BackupREGDB(@as(*const ICOMAdminCatalog, @ptrCast(self)), bstrBackupFilePath); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ICOMAdminCatalog_RestoreREGDB(self: *const T, bstrBackupFilePath: ?BSTR) HRESULT { return @as(*const ICOMAdminCatalog.VTable, @ptrCast(self.vtable)).RestoreREGDB(@as(*const ICOMAdminCatalog, @ptrCast(self)), bstrBackupFilePath); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ICOMAdminCatalog_QueryApplicationFile(self: *const T, bstrApplicationFile: ?BSTR, pbstrApplicationName: ?*?BSTR, pbstrApplicationDescription: ?*?BSTR, pbHasUsers: ?*i16, pbIsProxy: ?*i16, ppsaVarFileNames: ?*?*SAFEARRAY) HRESULT { return @as(*const ICOMAdminCatalog.VTable, @ptrCast(self.vtable)).QueryApplicationFile(@as(*const ICOMAdminCatalog, @ptrCast(self)), bstrApplicationFile, pbstrApplicationName, pbstrApplicationDescription, pbHasUsers, pbIsProxy, ppsaVarFileNames); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ICOMAdminCatalog_StartApplication(self: *const T, bstrApplIdOrName: ?BSTR) HRESULT { return @as(*const ICOMAdminCatalog.VTable, @ptrCast(self.vtable)).StartApplication(@as(*const ICOMAdminCatalog, @ptrCast(self)), bstrApplIdOrName); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ICOMAdminCatalog_ServiceCheck(self: *const T, lService: i32, plStatus: ?*i32) HRESULT { return @as(*const ICOMAdminCatalog.VTable, @ptrCast(self.vtable)).ServiceCheck(@as(*const ICOMAdminCatalog, @ptrCast(self)), lService, plStatus); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ICOMAdminCatalog_InstallMultipleEventClasses(self: *const T, bstrApplIdOrName: ?BSTR, ppsaVarFileNames: ?*?*SAFEARRAY, ppsaVarCLSIDS: ?*?*SAFEARRAY) HRESULT { return @as(*const ICOMAdminCatalog.VTable, @ptrCast(self.vtable)).InstallMultipleEventClasses(@as(*const ICOMAdminCatalog, @ptrCast(self)), bstrApplIdOrName, ppsaVarFileNames, ppsaVarCLSIDS); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ICOMAdminCatalog_InstallEventClass(self: *const T, bstrApplIdOrName: ?BSTR, bstrDLL: ?BSTR, bstrTLB: ?BSTR, bstrPSDLL: ?BSTR) HRESULT { return @as(*const ICOMAdminCatalog.VTable, @ptrCast(self.vtable)).InstallEventClass(@as(*const ICOMAdminCatalog, @ptrCast(self)), bstrApplIdOrName, bstrDLL, bstrTLB, bstrPSDLL); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ICOMAdminCatalog_GetEventClassesForIID(self: *const T, bstrIID: ?BSTR, ppsaVarCLSIDs: ?*?*SAFEARRAY, ppsaVarProgIDs: ?*?*SAFEARRAY, ppsaVarDescriptions: ?*?*SAFEARRAY) HRESULT { return @as(*const ICOMAdminCatalog.VTable, @ptrCast(self.vtable)).GetEventClassesForIID(@as(*const ICOMAdminCatalog, @ptrCast(self)), bstrIID, ppsaVarCLSIDs, ppsaVarProgIDs, ppsaVarDescriptions); } }; } pub usingnamespace MethodMixin(@This()); }; pub const COMAdminInUse = enum(i32) { NotInUse = 0, InUseByCatalog = 1, InUseByRegistryUnknown = 2, InUseByRegistryProxyStub = 3, InUseByRegistryTypeLib = 4, InUseByRegistryClsid = 5, }; pub const COMAdminNotInUse = COMAdminInUse.NotInUse; pub const COMAdminInUseByCatalog = COMAdminInUse.InUseByCatalog; pub const COMAdminInUseByRegistryUnknown = COMAdminInUse.InUseByRegistryUnknown; pub const COMAdminInUseByRegistryProxyStub = COMAdminInUse.InUseByRegistryProxyStub; pub const COMAdminInUseByRegistryTypeLib = COMAdminInUse.InUseByRegistryTypeLib; pub const COMAdminInUseByRegistryClsid = COMAdminInUse.InUseByRegistryClsid; // TODO: this type is limited to platform 'windows5.1.2600' const IID_ICOMAdminCatalog2_Value = Guid.initString("790c6e0b-9194-4cc9-9426-a48a63185696"); pub const IID_ICOMAdminCatalog2 = &IID_ICOMAdminCatalog2_Value; pub const ICOMAdminCatalog2 = extern struct { pub const VTable = extern struct { base: ICOMAdminCatalog.VTable, GetCollectionByQuery2: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ICOMAdminCatalog2, bstrCollectionName: ?BSTR, pVarQueryStrings: ?*VARIANT, ppCatalogCollection: ?*?*IDispatch, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ICOMAdminCatalog2, bstrCollectionName: ?BSTR, pVarQueryStrings: ?*VARIANT, ppCatalogCollection: ?*?*IDispatch, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetApplicationInstanceIDFromProcessID: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ICOMAdminCatalog2, lProcessID: i32, pbstrApplicationInstanceID: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ICOMAdminCatalog2, lProcessID: i32, pbstrApplicationInstanceID: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, ShutdownApplicationInstances: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ICOMAdminCatalog2, pVarApplicationInstanceID: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ICOMAdminCatalog2, pVarApplicationInstanceID: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, PauseApplicationInstances: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ICOMAdminCatalog2, pVarApplicationInstanceID: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ICOMAdminCatalog2, pVarApplicationInstanceID: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, ResumeApplicationInstances: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ICOMAdminCatalog2, pVarApplicationInstanceID: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ICOMAdminCatalog2, pVarApplicationInstanceID: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, RecycleApplicationInstances: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ICOMAdminCatalog2, pVarApplicationInstanceID: ?*VARIANT, lReasonCode: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ICOMAdminCatalog2, pVarApplicationInstanceID: ?*VARIANT, lReasonCode: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, AreApplicationInstancesPaused: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ICOMAdminCatalog2, pVarApplicationInstanceID: ?*VARIANT, pVarBoolPaused: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ICOMAdminCatalog2, pVarApplicationInstanceID: ?*VARIANT, pVarBoolPaused: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, DumpApplicationInstance: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ICOMAdminCatalog2, bstrApplicationInstanceID: ?BSTR, bstrDirectory: ?BSTR, lMaxImages: i32, pbstrDumpFile: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ICOMAdminCatalog2, bstrApplicationInstanceID: ?BSTR, bstrDirectory: ?BSTR, lMaxImages: i32, pbstrDumpFile: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_IsApplicationInstanceDumpSupported: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ICOMAdminCatalog2, pVarBoolDumpSupported: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ICOMAdminCatalog2, pVarBoolDumpSupported: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, CreateServiceForApplication: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ICOMAdminCatalog2, bstrApplicationIDOrName: ?BSTR, bstrServiceName: ?BSTR, bstrStartType: ?BSTR, bstrErrorControl: ?BSTR, bstrDependencies: ?BSTR, bstrRunAs: ?BSTR, bstrPassword: ?BSTR, bDesktopOk: i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ICOMAdminCatalog2, bstrApplicationIDOrName: ?BSTR, bstrServiceName: ?BSTR, bstrStartType: ?BSTR, bstrErrorControl: ?BSTR, bstrDependencies: ?BSTR, bstrRunAs: ?BSTR, bstrPassword: ?BSTR, bDesktopOk: i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, DeleteServiceForApplication: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ICOMAdminCatalog2, bstrApplicationIDOrName: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ICOMAdminCatalog2, bstrApplicationIDOrName: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetPartitionID: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ICOMAdminCatalog2, bstrApplicationIDOrName: ?BSTR, pbstrPartitionID: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ICOMAdminCatalog2, bstrApplicationIDOrName: ?BSTR, pbstrPartitionID: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetPartitionName: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ICOMAdminCatalog2, bstrApplicationIDOrName: ?BSTR, pbstrPartitionName: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ICOMAdminCatalog2, bstrApplicationIDOrName: ?BSTR, pbstrPartitionName: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_CurrentPartition: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ICOMAdminCatalog2, bstrPartitionIDOrName: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ICOMAdminCatalog2, bstrPartitionIDOrName: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_CurrentPartitionID: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ICOMAdminCatalog2, pbstrPartitionID: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ICOMAdminCatalog2, pbstrPartitionID: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_CurrentPartitionName: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ICOMAdminCatalog2, pbstrPartitionName: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ICOMAdminCatalog2, pbstrPartitionName: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_GlobalPartitionID: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ICOMAdminCatalog2, pbstrGlobalPartitionID: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ICOMAdminCatalog2, pbstrGlobalPartitionID: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, FlushPartitionCache: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ICOMAdminCatalog2, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ICOMAdminCatalog2, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, CopyApplications: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ICOMAdminCatalog2, bstrSourcePartitionIDOrName: ?BSTR, pVarApplicationID: ?*VARIANT, bstrDestinationPartitionIDOrName: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ICOMAdminCatalog2, bstrSourcePartitionIDOrName: ?BSTR, pVarApplicationID: ?*VARIANT, bstrDestinationPartitionIDOrName: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, CopyComponents: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ICOMAdminCatalog2, bstrSourceApplicationIDOrName: ?BSTR, pVarCLSIDOrProgID: ?*VARIANT, bstrDestinationApplicationIDOrName: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ICOMAdminCatalog2, bstrSourceApplicationIDOrName: ?BSTR, pVarCLSIDOrProgID: ?*VARIANT, bstrDestinationApplicationIDOrName: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, MoveComponents: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ICOMAdminCatalog2, bstrSourceApplicationIDOrName: ?BSTR, pVarCLSIDOrProgID: ?*VARIANT, bstrDestinationApplicationIDOrName: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ICOMAdminCatalog2, bstrSourceApplicationIDOrName: ?BSTR, pVarCLSIDOrProgID: ?*VARIANT, bstrDestinationApplicationIDOrName: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, AliasComponent: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ICOMAdminCatalog2, bstrSrcApplicationIDOrName: ?BSTR, bstrCLSIDOrProgID: ?BSTR, bstrDestApplicationIDOrName: ?BSTR, bstrNewProgId: ?BSTR, bstrNewClsid: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ICOMAdminCatalog2, bstrSrcApplicationIDOrName: ?BSTR, bstrCLSIDOrProgID: ?BSTR, bstrDestApplicationIDOrName: ?BSTR, bstrNewProgId: ?BSTR, bstrNewClsid: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, IsSafeToDelete: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ICOMAdminCatalog2, bstrDllName: ?BSTR, pCOMAdminInUse: ?*COMAdminInUse, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ICOMAdminCatalog2, bstrDllName: ?BSTR, pCOMAdminInUse: ?*COMAdminInUse, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, ImportUnconfiguredComponents: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ICOMAdminCatalog2, bstrApplicationIDOrName: ?BSTR, pVarCLSIDOrProgID: ?*VARIANT, pVarComponentType: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ICOMAdminCatalog2, bstrApplicationIDOrName: ?BSTR, pVarCLSIDOrProgID: ?*VARIANT, pVarComponentType: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, PromoteUnconfiguredComponents: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ICOMAdminCatalog2, bstrApplicationIDOrName: ?BSTR, pVarCLSIDOrProgID: ?*VARIANT, pVarComponentType: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ICOMAdminCatalog2, bstrApplicationIDOrName: ?BSTR, pVarCLSIDOrProgID: ?*VARIANT, pVarComponentType: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, ImportComponents: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ICOMAdminCatalog2, bstrApplicationIDOrName: ?BSTR, pVarCLSIDOrProgID: ?*VARIANT, pVarComponentType: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ICOMAdminCatalog2, bstrApplicationIDOrName: ?BSTR, pVarCLSIDOrProgID: ?*VARIANT, pVarComponentType: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Is64BitCatalogServer: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ICOMAdminCatalog2, pbIs64Bit: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ICOMAdminCatalog2, pbIs64Bit: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, ExportPartition: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ICOMAdminCatalog2, bstrPartitionIDOrName: ?BSTR, bstrPartitionFileName: ?BSTR, lOptions: COMAdminApplicationExportOptions, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ICOMAdminCatalog2, bstrPartitionIDOrName: ?BSTR, bstrPartitionFileName: ?BSTR, lOptions: COMAdminApplicationExportOptions, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, InstallPartition: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ICOMAdminCatalog2, bstrFileName: ?BSTR, bstrDestDirectory: ?BSTR, lOptions: COMAdminApplicationInstallOptions, bstrUserID: ?BSTR, bstrPassword: ?BSTR, bstrRSN: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ICOMAdminCatalog2, bstrFileName: ?BSTR, bstrDestDirectory: ?BSTR, lOptions: COMAdminApplicationInstallOptions, bstrUserID: ?BSTR, bstrPassword: ?BSTR, bstrRSN: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, QueryApplicationFile2: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ICOMAdminCatalog2, bstrApplicationFile: ?BSTR, ppFilesForImport: ?*?*IDispatch, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ICOMAdminCatalog2, bstrApplicationFile: ?BSTR, ppFilesForImport: ?*?*IDispatch, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetComponentVersionCount: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ICOMAdminCatalog2, bstrCLSIDOrProgID: ?BSTR, plVersionCount: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ICOMAdminCatalog2, bstrCLSIDOrProgID: ?BSTR, plVersionCount: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace ICOMAdminCatalog.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ICOMAdminCatalog2_GetCollectionByQuery2(self: *const T, bstrCollectionName: ?BSTR, pVarQueryStrings: ?*VARIANT, ppCatalogCollection: ?*?*IDispatch) HRESULT { return @as(*const ICOMAdminCatalog2.VTable, @ptrCast(self.vtable)).GetCollectionByQuery2(@as(*const ICOMAdminCatalog2, @ptrCast(self)), bstrCollectionName, pVarQueryStrings, ppCatalogCollection); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ICOMAdminCatalog2_GetApplicationInstanceIDFromProcessID(self: *const T, lProcessID: i32, pbstrApplicationInstanceID: ?*?BSTR) HRESULT { return @as(*const ICOMAdminCatalog2.VTable, @ptrCast(self.vtable)).GetApplicationInstanceIDFromProcessID(@as(*const ICOMAdminCatalog2, @ptrCast(self)), lProcessID, pbstrApplicationInstanceID); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ICOMAdminCatalog2_ShutdownApplicationInstances(self: *const T, pVarApplicationInstanceID: ?*VARIANT) HRESULT { return @as(*const ICOMAdminCatalog2.VTable, @ptrCast(self.vtable)).ShutdownApplicationInstances(@as(*const ICOMAdminCatalog2, @ptrCast(self)), pVarApplicationInstanceID); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ICOMAdminCatalog2_PauseApplicationInstances(self: *const T, pVarApplicationInstanceID: ?*VARIANT) HRESULT { return @as(*const ICOMAdminCatalog2.VTable, @ptrCast(self.vtable)).PauseApplicationInstances(@as(*const ICOMAdminCatalog2, @ptrCast(self)), pVarApplicationInstanceID); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ICOMAdminCatalog2_ResumeApplicationInstances(self: *const T, pVarApplicationInstanceID: ?*VARIANT) HRESULT { return @as(*const ICOMAdminCatalog2.VTable, @ptrCast(self.vtable)).ResumeApplicationInstances(@as(*const ICOMAdminCatalog2, @ptrCast(self)), pVarApplicationInstanceID); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ICOMAdminCatalog2_RecycleApplicationInstances(self: *const T, pVarApplicationInstanceID: ?*VARIANT, lReasonCode: i32) HRESULT { return @as(*const ICOMAdminCatalog2.VTable, @ptrCast(self.vtable)).RecycleApplicationInstances(@as(*const ICOMAdminCatalog2, @ptrCast(self)), pVarApplicationInstanceID, lReasonCode); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ICOMAdminCatalog2_AreApplicationInstancesPaused(self: *const T, pVarApplicationInstanceID: ?*VARIANT, pVarBoolPaused: ?*i16) HRESULT { return @as(*const ICOMAdminCatalog2.VTable, @ptrCast(self.vtable)).AreApplicationInstancesPaused(@as(*const ICOMAdminCatalog2, @ptrCast(self)), pVarApplicationInstanceID, pVarBoolPaused); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ICOMAdminCatalog2_DumpApplicationInstance(self: *const T, bstrApplicationInstanceID: ?BSTR, bstrDirectory: ?BSTR, lMaxImages: i32, pbstrDumpFile: ?*?BSTR) HRESULT { return @as(*const ICOMAdminCatalog2.VTable, @ptrCast(self.vtable)).DumpApplicationInstance(@as(*const ICOMAdminCatalog2, @ptrCast(self)), bstrApplicationInstanceID, bstrDirectory, lMaxImages, pbstrDumpFile); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ICOMAdminCatalog2_get_IsApplicationInstanceDumpSupported(self: *const T, pVarBoolDumpSupported: ?*i16) HRESULT { return @as(*const ICOMAdminCatalog2.VTable, @ptrCast(self.vtable)).get_IsApplicationInstanceDumpSupported(@as(*const ICOMAdminCatalog2, @ptrCast(self)), pVarBoolDumpSupported); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ICOMAdminCatalog2_CreateServiceForApplication(self: *const T, bstrApplicationIDOrName: ?BSTR, bstrServiceName: ?BSTR, bstrStartType: ?BSTR, bstrErrorControl: ?BSTR, bstrDependencies: ?BSTR, bstrRunAs: ?BSTR, bstrPassword: ?BSTR, bDesktopOk: i16) HRESULT { return @as(*const ICOMAdminCatalog2.VTable, @ptrCast(self.vtable)).CreateServiceForApplication(@as(*const ICOMAdminCatalog2, @ptrCast(self)), bstrApplicationIDOrName, bstrServiceName, bstrStartType, bstrErrorControl, bstrDependencies, bstrRunAs, bstrPassword, bDesktopOk); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ICOMAdminCatalog2_DeleteServiceForApplication(self: *const T, bstrApplicationIDOrName: ?BSTR) HRESULT { return @as(*const ICOMAdminCatalog2.VTable, @ptrCast(self.vtable)).DeleteServiceForApplication(@as(*const ICOMAdminCatalog2, @ptrCast(self)), bstrApplicationIDOrName); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ICOMAdminCatalog2_GetPartitionID(self: *const T, bstrApplicationIDOrName: ?BSTR, pbstrPartitionID: ?*?BSTR) HRESULT { return @as(*const ICOMAdminCatalog2.VTable, @ptrCast(self.vtable)).GetPartitionID(@as(*const ICOMAdminCatalog2, @ptrCast(self)), bstrApplicationIDOrName, pbstrPartitionID); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ICOMAdminCatalog2_GetPartitionName(self: *const T, bstrApplicationIDOrName: ?BSTR, pbstrPartitionName: ?*?BSTR) HRESULT { return @as(*const ICOMAdminCatalog2.VTable, @ptrCast(self.vtable)).GetPartitionName(@as(*const ICOMAdminCatalog2, @ptrCast(self)), bstrApplicationIDOrName, pbstrPartitionName); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ICOMAdminCatalog2_put_CurrentPartition(self: *const T, bstrPartitionIDOrName: ?BSTR) HRESULT { return @as(*const ICOMAdminCatalog2.VTable, @ptrCast(self.vtable)).put_CurrentPartition(@as(*const ICOMAdminCatalog2, @ptrCast(self)), bstrPartitionIDOrName); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ICOMAdminCatalog2_get_CurrentPartitionID(self: *const T, pbstrPartitionID: ?*?BSTR) HRESULT { return @as(*const ICOMAdminCatalog2.VTable, @ptrCast(self.vtable)).get_CurrentPartitionID(@as(*const ICOMAdminCatalog2, @ptrCast(self)), pbstrPartitionID); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ICOMAdminCatalog2_get_CurrentPartitionName(self: *const T, pbstrPartitionName: ?*?BSTR) HRESULT { return @as(*const ICOMAdminCatalog2.VTable, @ptrCast(self.vtable)).get_CurrentPartitionName(@as(*const ICOMAdminCatalog2, @ptrCast(self)), pbstrPartitionName); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ICOMAdminCatalog2_get_GlobalPartitionID(self: *const T, pbstrGlobalPartitionID: ?*?BSTR) HRESULT { return @as(*const ICOMAdminCatalog2.VTable, @ptrCast(self.vtable)).get_GlobalPartitionID(@as(*const ICOMAdminCatalog2, @ptrCast(self)), pbstrGlobalPartitionID); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ICOMAdminCatalog2_FlushPartitionCache(self: *const T) HRESULT { return @as(*const ICOMAdminCatalog2.VTable, @ptrCast(self.vtable)).FlushPartitionCache(@as(*const ICOMAdminCatalog2, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ICOMAdminCatalog2_CopyApplications(self: *const T, bstrSourcePartitionIDOrName: ?BSTR, pVarApplicationID: ?*VARIANT, bstrDestinationPartitionIDOrName: ?BSTR) HRESULT { return @as(*const ICOMAdminCatalog2.VTable, @ptrCast(self.vtable)).CopyApplications(@as(*const ICOMAdminCatalog2, @ptrCast(self)), bstrSourcePartitionIDOrName, pVarApplicationID, bstrDestinationPartitionIDOrName); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ICOMAdminCatalog2_CopyComponents(self: *const T, bstrSourceApplicationIDOrName: ?BSTR, pVarCLSIDOrProgID: ?*VARIANT, bstrDestinationApplicationIDOrName: ?BSTR) HRESULT { return @as(*const ICOMAdminCatalog2.VTable, @ptrCast(self.vtable)).CopyComponents(@as(*const ICOMAdminCatalog2, @ptrCast(self)), bstrSourceApplicationIDOrName, pVarCLSIDOrProgID, bstrDestinationApplicationIDOrName); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ICOMAdminCatalog2_MoveComponents(self: *const T, bstrSourceApplicationIDOrName: ?BSTR, pVarCLSIDOrProgID: ?*VARIANT, bstrDestinationApplicationIDOrName: ?BSTR) HRESULT { return @as(*const ICOMAdminCatalog2.VTable, @ptrCast(self.vtable)).MoveComponents(@as(*const ICOMAdminCatalog2, @ptrCast(self)), bstrSourceApplicationIDOrName, pVarCLSIDOrProgID, bstrDestinationApplicationIDOrName); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ICOMAdminCatalog2_AliasComponent(self: *const T, bstrSrcApplicationIDOrName: ?BSTR, bstrCLSIDOrProgID: ?BSTR, bstrDestApplicationIDOrName: ?BSTR, bstrNewProgId: ?BSTR, bstrNewClsid: ?BSTR) HRESULT { return @as(*const ICOMAdminCatalog2.VTable, @ptrCast(self.vtable)).AliasComponent(@as(*const ICOMAdminCatalog2, @ptrCast(self)), bstrSrcApplicationIDOrName, bstrCLSIDOrProgID, bstrDestApplicationIDOrName, bstrNewProgId, bstrNewClsid); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ICOMAdminCatalog2_IsSafeToDelete(self: *const T, bstrDllName: ?BSTR, pCOMAdminInUse: ?*COMAdminInUse) HRESULT { return @as(*const ICOMAdminCatalog2.VTable, @ptrCast(self.vtable)).IsSafeToDelete(@as(*const ICOMAdminCatalog2, @ptrCast(self)), bstrDllName, pCOMAdminInUse); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ICOMAdminCatalog2_ImportUnconfiguredComponents(self: *const T, bstrApplicationIDOrName: ?BSTR, pVarCLSIDOrProgID: ?*VARIANT, pVarComponentType: ?*VARIANT) HRESULT { return @as(*const ICOMAdminCatalog2.VTable, @ptrCast(self.vtable)).ImportUnconfiguredComponents(@as(*const ICOMAdminCatalog2, @ptrCast(self)), bstrApplicationIDOrName, pVarCLSIDOrProgID, pVarComponentType); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ICOMAdminCatalog2_PromoteUnconfiguredComponents(self: *const T, bstrApplicationIDOrName: ?BSTR, pVarCLSIDOrProgID: ?*VARIANT, pVarComponentType: ?*VARIANT) HRESULT { return @as(*const ICOMAdminCatalog2.VTable, @ptrCast(self.vtable)).PromoteUnconfiguredComponents(@as(*const ICOMAdminCatalog2, @ptrCast(self)), bstrApplicationIDOrName, pVarCLSIDOrProgID, pVarComponentType); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ICOMAdminCatalog2_ImportComponents(self: *const T, bstrApplicationIDOrName: ?BSTR, pVarCLSIDOrProgID: ?*VARIANT, pVarComponentType: ?*VARIANT) HRESULT { return @as(*const ICOMAdminCatalog2.VTable, @ptrCast(self.vtable)).ImportComponents(@as(*const ICOMAdminCatalog2, @ptrCast(self)), bstrApplicationIDOrName, pVarCLSIDOrProgID, pVarComponentType); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ICOMAdminCatalog2_get_Is64BitCatalogServer(self: *const T, pbIs64Bit: ?*i16) HRESULT { return @as(*const ICOMAdminCatalog2.VTable, @ptrCast(self.vtable)).get_Is64BitCatalogServer(@as(*const ICOMAdminCatalog2, @ptrCast(self)), pbIs64Bit); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ICOMAdminCatalog2_ExportPartition(self: *const T, bstrPartitionIDOrName: ?BSTR, bstrPartitionFileName: ?BSTR, lOptions: COMAdminApplicationExportOptions) HRESULT { return @as(*const ICOMAdminCatalog2.VTable, @ptrCast(self.vtable)).ExportPartition(@as(*const ICOMAdminCatalog2, @ptrCast(self)), bstrPartitionIDOrName, bstrPartitionFileName, lOptions); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ICOMAdminCatalog2_InstallPartition(self: *const T, bstrFileName: ?BSTR, bstrDestDirectory: ?BSTR, lOptions: COMAdminApplicationInstallOptions, bstrUserID: ?BSTR, bstrPassword: ?BSTR, bstrRSN: ?BSTR) HRESULT { return @as(*const ICOMAdminCatalog2.VTable, @ptrCast(self.vtable)).InstallPartition(@as(*const ICOMAdminCatalog2, @ptrCast(self)), bstrFileName, bstrDestDirectory, lOptions, bstrUserID, bstrPassword, bstrRSN); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ICOMAdminCatalog2_QueryApplicationFile2(self: *const T, bstrApplicationFile: ?BSTR, ppFilesForImport: ?*?*IDispatch) HRESULT { return @as(*const ICOMAdminCatalog2.VTable, @ptrCast(self.vtable)).QueryApplicationFile2(@as(*const ICOMAdminCatalog2, @ptrCast(self)), bstrApplicationFile, ppFilesForImport); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ICOMAdminCatalog2_GetComponentVersionCount(self: *const T, bstrCLSIDOrProgID: ?BSTR, plVersionCount: ?*i32) HRESULT { return @as(*const ICOMAdminCatalog2.VTable, @ptrCast(self.vtable)).GetComponentVersionCount(@as(*const ICOMAdminCatalog2, @ptrCast(self)), bstrCLSIDOrProgID, plVersionCount); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows5.0' const IID_ICatalogObject_Value = Guid.initString("6eb22871-8a19-11d0-81b6-00a0c9231c29"); pub const IID_ICatalogObject = &IID_ICatalogObject_Value; pub const ICatalogObject = extern struct { pub const VTable = extern struct { base: IDispatch.VTable, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Value: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ICatalogObject, bstrPropName: ?BSTR, pvarRetVal: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ICatalogObject, bstrPropName: ?BSTR, pvarRetVal: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_Value: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ICatalogObject, bstrPropName: ?BSTR, val: VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ICatalogObject, bstrPropName: ?BSTR, val: VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Key: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ICatalogObject, pvarRetVal: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ICatalogObject, pvarRetVal: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Name: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ICatalogObject, pvarRetVal: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ICatalogObject, pvarRetVal: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, IsPropertyReadOnly: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ICatalogObject, bstrPropName: ?BSTR, pbRetVal: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ICatalogObject, bstrPropName: ?BSTR, pbRetVal: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Valid: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ICatalogObject, pbRetVal: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ICatalogObject, pbRetVal: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, IsPropertyWriteOnly: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ICatalogObject, bstrPropName: ?BSTR, pbRetVal: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ICatalogObject, bstrPropName: ?BSTR, pbRetVal: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IDispatch.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ICatalogObject_get_Value(self: *const T, bstrPropName: ?BSTR, pvarRetVal: ?*VARIANT) HRESULT { return @as(*const ICatalogObject.VTable, @ptrCast(self.vtable)).get_Value(@as(*const ICatalogObject, @ptrCast(self)), bstrPropName, pvarRetVal); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ICatalogObject_put_Value(self: *const T, bstrPropName: ?BSTR, val: VARIANT) HRESULT { return @as(*const ICatalogObject.VTable, @ptrCast(self.vtable)).put_Value(@as(*const ICatalogObject, @ptrCast(self)), bstrPropName, val); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ICatalogObject_get_Key(self: *const T, pvarRetVal: ?*VARIANT) HRESULT { return @as(*const ICatalogObject.VTable, @ptrCast(self.vtable)).get_Key(@as(*const ICatalogObject, @ptrCast(self)), pvarRetVal); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ICatalogObject_get_Name(self: *const T, pvarRetVal: ?*VARIANT) HRESULT { return @as(*const ICatalogObject.VTable, @ptrCast(self.vtable)).get_Name(@as(*const ICatalogObject, @ptrCast(self)), pvarRetVal); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ICatalogObject_IsPropertyReadOnly(self: *const T, bstrPropName: ?BSTR, pbRetVal: ?*i16) HRESULT { return @as(*const ICatalogObject.VTable, @ptrCast(self.vtable)).IsPropertyReadOnly(@as(*const ICatalogObject, @ptrCast(self)), bstrPropName, pbRetVal); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ICatalogObject_get_Valid(self: *const T, pbRetVal: ?*i16) HRESULT { return @as(*const ICatalogObject.VTable, @ptrCast(self.vtable)).get_Valid(@as(*const ICatalogObject, @ptrCast(self)), pbRetVal); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ICatalogObject_IsPropertyWriteOnly(self: *const T, bstrPropName: ?BSTR, pbRetVal: ?*i16) HRESULT { return @as(*const ICatalogObject.VTable, @ptrCast(self.vtable)).IsPropertyWriteOnly(@as(*const ICatalogObject, @ptrCast(self)), bstrPropName, pbRetVal); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows5.0' const IID_ICatalogCollection_Value = Guid.initString("6eb22872-8a19-11d0-81b6-00a0c9231c29"); pub const IID_ICatalogCollection = &IID_ICatalogCollection_Value; pub const ICatalogCollection = extern struct { pub const VTable = extern struct { base: IDispatch.VTable, // TODO: this function has a "SpecialName", should Zig do anything with this? get__NewEnum: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ICatalogCollection, ppEnumVariant: ?*?*IUnknown, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ICatalogCollection, ppEnumVariant: ?*?*IUnknown, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Item: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ICatalogCollection, lIndex: i32, ppCatalogObject: ?*?*IDispatch, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ICatalogCollection, lIndex: i32, ppCatalogObject: ?*?*IDispatch, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Count: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ICatalogCollection, plObjectCount: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ICatalogCollection, plObjectCount: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Remove: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ICatalogCollection, lIndex: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ICatalogCollection, lIndex: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Add: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ICatalogCollection, ppCatalogObject: ?*?*IDispatch, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ICatalogCollection, ppCatalogObject: ?*?*IDispatch, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Populate: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ICatalogCollection, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ICatalogCollection, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SaveChanges: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ICatalogCollection, pcChanges: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ICatalogCollection, pcChanges: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetCollection: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ICatalogCollection, bstrCollName: ?BSTR, varObjectKey: VARIANT, ppCatalogCollection: ?*?*IDispatch, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ICatalogCollection, bstrCollName: ?BSTR, varObjectKey: VARIANT, ppCatalogCollection: ?*?*IDispatch, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Name: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ICatalogCollection, pVarNamel: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ICatalogCollection, pVarNamel: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_AddEnabled: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ICatalogCollection, pVarBool: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ICatalogCollection, pVarBool: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_RemoveEnabled: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ICatalogCollection, pVarBool: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ICatalogCollection, pVarBool: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetUtilInterface: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ICatalogCollection, ppIDispatch: ?*?*IDispatch, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ICatalogCollection, ppIDispatch: ?*?*IDispatch, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_DataStoreMajorVersion: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ICatalogCollection, plMajorVersion: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ICatalogCollection, plMajorVersion: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_DataStoreMinorVersion: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ICatalogCollection, plMinorVersionl: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ICatalogCollection, plMinorVersionl: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, PopulateByKey: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ICatalogCollection, psaKeys: ?*SAFEARRAY, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ICatalogCollection, psaKeys: ?*SAFEARRAY, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, PopulateByQuery: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ICatalogCollection, bstrQueryString: ?BSTR, lQueryType: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ICatalogCollection, bstrQueryString: ?BSTR, lQueryType: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IDispatch.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ICatalogCollection_get__NewEnum(self: *const T, ppEnumVariant: ?*?*IUnknown) HRESULT { return @as(*const ICatalogCollection.VTable, @ptrCast(self.vtable)).get__NewEnum(@as(*const ICatalogCollection, @ptrCast(self)), ppEnumVariant); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ICatalogCollection_get_Item(self: *const T, lIndex: i32, ppCatalogObject: ?*?*IDispatch) HRESULT { return @as(*const ICatalogCollection.VTable, @ptrCast(self.vtable)).get_Item(@as(*const ICatalogCollection, @ptrCast(self)), lIndex, ppCatalogObject); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ICatalogCollection_get_Count(self: *const T, plObjectCount: ?*i32) HRESULT { return @as(*const ICatalogCollection.VTable, @ptrCast(self.vtable)).get_Count(@as(*const ICatalogCollection, @ptrCast(self)), plObjectCount); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ICatalogCollection_Remove(self: *const T, lIndex: i32) HRESULT { return @as(*const ICatalogCollection.VTable, @ptrCast(self.vtable)).Remove(@as(*const ICatalogCollection, @ptrCast(self)), lIndex); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ICatalogCollection_Add(self: *const T, ppCatalogObject: ?*?*IDispatch) HRESULT { return @as(*const ICatalogCollection.VTable, @ptrCast(self.vtable)).Add(@as(*const ICatalogCollection, @ptrCast(self)), ppCatalogObject); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ICatalogCollection_Populate(self: *const T) HRESULT { return @as(*const ICatalogCollection.VTable, @ptrCast(self.vtable)).Populate(@as(*const ICatalogCollection, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ICatalogCollection_SaveChanges(self: *const T, pcChanges: ?*i32) HRESULT { return @as(*const ICatalogCollection.VTable, @ptrCast(self.vtable)).SaveChanges(@as(*const ICatalogCollection, @ptrCast(self)), pcChanges); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ICatalogCollection_GetCollection(self: *const T, bstrCollName: ?BSTR, varObjectKey: VARIANT, ppCatalogCollection: ?*?*IDispatch) HRESULT { return @as(*const ICatalogCollection.VTable, @ptrCast(self.vtable)).GetCollection(@as(*const ICatalogCollection, @ptrCast(self)), bstrCollName, varObjectKey, ppCatalogCollection); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ICatalogCollection_get_Name(self: *const T, pVarNamel: ?*VARIANT) HRESULT { return @as(*const ICatalogCollection.VTable, @ptrCast(self.vtable)).get_Name(@as(*const ICatalogCollection, @ptrCast(self)), pVarNamel); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ICatalogCollection_get_AddEnabled(self: *const T, pVarBool: ?*i16) HRESULT { return @as(*const ICatalogCollection.VTable, @ptrCast(self.vtable)).get_AddEnabled(@as(*const ICatalogCollection, @ptrCast(self)), pVarBool); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ICatalogCollection_get_RemoveEnabled(self: *const T, pVarBool: ?*i16) HRESULT { return @as(*const ICatalogCollection.VTable, @ptrCast(self.vtable)).get_RemoveEnabled(@as(*const ICatalogCollection, @ptrCast(self)), pVarBool); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ICatalogCollection_GetUtilInterface(self: *const T, ppIDispatch: ?*?*IDispatch) HRESULT { return @as(*const ICatalogCollection.VTable, @ptrCast(self.vtable)).GetUtilInterface(@as(*const ICatalogCollection, @ptrCast(self)), ppIDispatch); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ICatalogCollection_get_DataStoreMajorVersion(self: *const T, plMajorVersion: ?*i32) HRESULT { return @as(*const ICatalogCollection.VTable, @ptrCast(self.vtable)).get_DataStoreMajorVersion(@as(*const ICatalogCollection, @ptrCast(self)), plMajorVersion); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ICatalogCollection_get_DataStoreMinorVersion(self: *const T, plMinorVersionl: ?*i32) HRESULT { return @as(*const ICatalogCollection.VTable, @ptrCast(self.vtable)).get_DataStoreMinorVersion(@as(*const ICatalogCollection, @ptrCast(self)), plMinorVersionl); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ICatalogCollection_PopulateByKey(self: *const T, psaKeys: ?*SAFEARRAY) HRESULT { return @as(*const ICatalogCollection.VTable, @ptrCast(self.vtable)).PopulateByKey(@as(*const ICatalogCollection, @ptrCast(self)), psaKeys); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ICatalogCollection_PopulateByQuery(self: *const T, bstrQueryString: ?BSTR, lQueryType: i32) HRESULT { return @as(*const ICatalogCollection.VTable, @ptrCast(self.vtable)).PopulateByQuery(@as(*const ICatalogCollection, @ptrCast(self)), bstrQueryString, lQueryType); } }; } pub usingnamespace MethodMixin(@This()); }; pub const COMAdminComponentType = enum(i32) { @"32BitComponent" = 1, @"64BitComponent" = 2, }; pub const COMAdmin32BitComponent = COMAdminComponentType.@"32BitComponent"; pub const COMAdmin64BitComponent = COMAdminComponentType.@"64BitComponent"; pub const COMAdminApplicationInstallOptions = enum(i32) { NoUsers = 0, Users = 1, ForceOverwriteOfFiles = 2, }; pub const COMAdminInstallNoUsers = COMAdminApplicationInstallOptions.NoUsers; pub const COMAdminInstallUsers = COMAdminApplicationInstallOptions.Users; pub const COMAdminInstallForceOverwriteOfFiles = COMAdminApplicationInstallOptions.ForceOverwriteOfFiles; pub const COMAdminApplicationExportOptions = enum(i32) { NoUsers = 0, Users = 1, ApplicationProxy = 2, ForceOverwriteOfFiles = 4, In10Format = 16, }; pub const COMAdminExportNoUsers = COMAdminApplicationExportOptions.NoUsers; pub const COMAdminExportUsers = COMAdminApplicationExportOptions.Users; pub const COMAdminExportApplicationProxy = COMAdminApplicationExportOptions.ApplicationProxy; pub const COMAdminExportForceOverwriteOfFiles = COMAdminApplicationExportOptions.ForceOverwriteOfFiles; pub const COMAdminExportIn10Format = COMAdminApplicationExportOptions.In10Format; pub const COMAdminThreadingModels = enum(i32) { Apartment = 0, Free = 1, Main = 2, Both = 3, Neutral = 4, NotSpecified = 5, }; pub const COMAdminThreadingModelApartment = COMAdminThreadingModels.Apartment; pub const COMAdminThreadingModelFree = COMAdminThreadingModels.Free; pub const COMAdminThreadingModelMain = COMAdminThreadingModels.Main; pub const COMAdminThreadingModelBoth = COMAdminThreadingModels.Both; pub const COMAdminThreadingModelNeutral = COMAdminThreadingModels.Neutral; pub const COMAdminThreadingModelNotSpecified = COMAdminThreadingModels.NotSpecified; pub const COMAdminTransactionOptions = enum(i32) { Ignored = 0, None = 1, Supported = 2, Required = 3, RequiresNew = 4, }; pub const COMAdminTransactionIgnored = COMAdminTransactionOptions.Ignored; pub const COMAdminTransactionNone = COMAdminTransactionOptions.None; pub const COMAdminTransactionSupported = COMAdminTransactionOptions.Supported; pub const COMAdminTransactionRequired = COMAdminTransactionOptions.Required; pub const COMAdminTransactionRequiresNew = COMAdminTransactionOptions.RequiresNew; pub const COMAdminTxIsolationLevelOptions = enum(i32) { Any = 0, ReadUnCommitted = 1, ReadCommitted = 2, RepeatableRead = 3, Serializable = 4, }; pub const COMAdminTxIsolationLevelAny = COMAdminTxIsolationLevelOptions.Any; pub const COMAdminTxIsolationLevelReadUnCommitted = COMAdminTxIsolationLevelOptions.ReadUnCommitted; pub const COMAdminTxIsolationLevelReadCommitted = COMAdminTxIsolationLevelOptions.ReadCommitted; pub const COMAdminTxIsolationLevelRepeatableRead = COMAdminTxIsolationLevelOptions.RepeatableRead; pub const COMAdminTxIsolationLevelSerializable = COMAdminTxIsolationLevelOptions.Serializable; pub const COMAdminSynchronizationOptions = enum(i32) { Ignored = 0, None = 1, Supported = 2, Required = 3, RequiresNew = 4, }; pub const COMAdminSynchronizationIgnored = COMAdminSynchronizationOptions.Ignored; pub const COMAdminSynchronizationNone = COMAdminSynchronizationOptions.None; pub const COMAdminSynchronizationSupported = COMAdminSynchronizationOptions.Supported; pub const COMAdminSynchronizationRequired = COMAdminSynchronizationOptions.Required; pub const COMAdminSynchronizationRequiresNew = COMAdminSynchronizationOptions.RequiresNew; pub const COMAdminActivationOptions = enum(i32) { Inproc = 0, Local = 1, }; pub const COMAdminActivationInproc = COMAdminActivationOptions.Inproc; pub const COMAdminActivationLocal = COMAdminActivationOptions.Local; pub const COMAdminAccessChecksLevelOptions = enum(i32) { Level = 0, ComponentLevel = 1, }; pub const COMAdminAccessChecksApplicationLevel = COMAdminAccessChecksLevelOptions.Level; pub const COMAdminAccessChecksApplicationComponentLevel = COMAdminAccessChecksLevelOptions.ComponentLevel; pub const COMAdminAuthenticationLevelOptions = enum(i32) { Default = 0, None = 1, Connect = 2, Call = 3, Packet = 4, Integrity = 5, Privacy = 6, }; pub const COMAdminAuthenticationDefault = COMAdminAuthenticationLevelOptions.Default; pub const COMAdminAuthenticationNone = COMAdminAuthenticationLevelOptions.None; pub const COMAdminAuthenticationConnect = COMAdminAuthenticationLevelOptions.Connect; pub const COMAdminAuthenticationCall = COMAdminAuthenticationLevelOptions.Call; pub const COMAdminAuthenticationPacket = COMAdminAuthenticationLevelOptions.Packet; pub const COMAdminAuthenticationIntegrity = COMAdminAuthenticationLevelOptions.Integrity; pub const COMAdminAuthenticationPrivacy = COMAdminAuthenticationLevelOptions.Privacy; pub const COMAdminImpersonationLevelOptions = enum(i32) { Anonymous = 1, Identify = 2, Impersonate = 3, Delegate = 4, }; pub const COMAdminImpersonationAnonymous = COMAdminImpersonationLevelOptions.Anonymous; pub const COMAdminImpersonationIdentify = COMAdminImpersonationLevelOptions.Identify; pub const COMAdminImpersonationImpersonate = COMAdminImpersonationLevelOptions.Impersonate; pub const COMAdminImpersonationDelegate = COMAdminImpersonationLevelOptions.Delegate; pub const COMAdminAuthenticationCapabilitiesOptions = enum(i32) { None = 0, SecureReference = 2, StaticCloaking = 32, DynamicCloaking = 64, }; pub const COMAdminAuthenticationCapabilitiesNone = COMAdminAuthenticationCapabilitiesOptions.None; pub const COMAdminAuthenticationCapabilitiesSecureReference = COMAdminAuthenticationCapabilitiesOptions.SecureReference; pub const COMAdminAuthenticationCapabilitiesStaticCloaking = COMAdminAuthenticationCapabilitiesOptions.StaticCloaking; pub const COMAdminAuthenticationCapabilitiesDynamicCloaking = COMAdminAuthenticationCapabilitiesOptions.DynamicCloaking; pub const COMAdminOS = enum(i32) { NotInitialized = 0, Windows3_1 = 1, Windows9x = 2, Windows2000 = 3, Windows2000AdvancedServer = 4, Windows2000Unknown = 5, Unknown = 6, WindowsXPPersonal = 11, WindowsXPProfessional = 12, WindowsNETStandardServer = 13, WindowsNETEnterpriseServer = 14, WindowsNETDatacenterServer = 15, WindowsNETWebServer = 16, WindowsLonghornPersonal = 17, WindowsLonghornProfessional = 18, WindowsLonghornStandardServer = 19, WindowsLonghornEnterpriseServer = 20, WindowsLonghornDatacenterServer = 21, WindowsLonghornWebServer = 22, Windows7Personal = 23, Windows7Professional = 24, Windows7StandardServer = 25, Windows7EnterpriseServer = 26, Windows7DatacenterServer = 27, Windows7WebServer = 28, Windows8Personal = 29, Windows8Professional = 30, Windows8StandardServer = 31, Windows8EnterpriseServer = 32, Windows8DatacenterServer = 33, Windows8WebServer = 34, WindowsBluePersonal = 35, WindowsBlueProfessional = 36, WindowsBlueStandardServer = 37, WindowsBlueEnterpriseServer = 38, WindowsBlueDatacenterServer = 39, WindowsBlueWebServer = 40, }; pub const COMAdminOSNotInitialized = COMAdminOS.NotInitialized; pub const COMAdminOSWindows3_1 = COMAdminOS.Windows3_1; pub const COMAdminOSWindows9x = COMAdminOS.Windows9x; pub const COMAdminOSWindows2000 = COMAdminOS.Windows2000; pub const COMAdminOSWindows2000AdvancedServer = COMAdminOS.Windows2000AdvancedServer; pub const COMAdminOSWindows2000Unknown = COMAdminOS.Windows2000Unknown; pub const COMAdminOSUnknown = COMAdminOS.Unknown; pub const COMAdminOSWindowsXPPersonal = COMAdminOS.WindowsXPPersonal; pub const COMAdminOSWindowsXPProfessional = COMAdminOS.WindowsXPProfessional; pub const COMAdminOSWindowsNETStandardServer = COMAdminOS.WindowsNETStandardServer; pub const COMAdminOSWindowsNETEnterpriseServer = COMAdminOS.WindowsNETEnterpriseServer; pub const COMAdminOSWindowsNETDatacenterServer = COMAdminOS.WindowsNETDatacenterServer; pub const COMAdminOSWindowsNETWebServer = COMAdminOS.WindowsNETWebServer; pub const COMAdminOSWindowsLonghornPersonal = COMAdminOS.WindowsLonghornPersonal; pub const COMAdminOSWindowsLonghornProfessional = COMAdminOS.WindowsLonghornProfessional; pub const COMAdminOSWindowsLonghornStandardServer = COMAdminOS.WindowsLonghornStandardServer; pub const COMAdminOSWindowsLonghornEnterpriseServer = COMAdminOS.WindowsLonghornEnterpriseServer; pub const COMAdminOSWindowsLonghornDatacenterServer = COMAdminOS.WindowsLonghornDatacenterServer; pub const COMAdminOSWindowsLonghornWebServer = COMAdminOS.WindowsLonghornWebServer; pub const COMAdminOSWindows7Personal = COMAdminOS.Windows7Personal; pub const COMAdminOSWindows7Professional = COMAdminOS.Windows7Professional; pub const COMAdminOSWindows7StandardServer = COMAdminOS.Windows7StandardServer; pub const COMAdminOSWindows7EnterpriseServer = COMAdminOS.Windows7EnterpriseServer; pub const COMAdminOSWindows7DatacenterServer = COMAdminOS.Windows7DatacenterServer; pub const COMAdminOSWindows7WebServer = COMAdminOS.Windows7WebServer; pub const COMAdminOSWindows8Personal = COMAdminOS.Windows8Personal; pub const COMAdminOSWindows8Professional = COMAdminOS.Windows8Professional; pub const COMAdminOSWindows8StandardServer = COMAdminOS.Windows8StandardServer; pub const COMAdminOSWindows8EnterpriseServer = COMAdminOS.Windows8EnterpriseServer; pub const COMAdminOSWindows8DatacenterServer = COMAdminOS.Windows8DatacenterServer; pub const COMAdminOSWindows8WebServer = COMAdminOS.Windows8WebServer; pub const COMAdminOSWindowsBluePersonal = COMAdminOS.WindowsBluePersonal; pub const COMAdminOSWindowsBlueProfessional = COMAdminOS.WindowsBlueProfessional; pub const COMAdminOSWindowsBlueStandardServer = COMAdminOS.WindowsBlueStandardServer; pub const COMAdminOSWindowsBlueEnterpriseServer = COMAdminOS.WindowsBlueEnterpriseServer; pub const COMAdminOSWindowsBlueDatacenterServer = COMAdminOS.WindowsBlueDatacenterServer; pub const COMAdminOSWindowsBlueWebServer = COMAdminOS.WindowsBlueWebServer; pub const COMAdminServiceOptions = enum(i32) { r = 1, }; pub const COMAdminServiceLoadBalanceRouter = COMAdminServiceOptions.r; pub const COMAdminServiceStatusOptions = enum(i32) { Stopped = 0, StartPending = 1, StopPending = 2, Running = 3, ContinuePending = 4, PausePending = 5, Paused = 6, UnknownState = 7, }; pub const COMAdminServiceStopped = COMAdminServiceStatusOptions.Stopped; pub const COMAdminServiceStartPending = COMAdminServiceStatusOptions.StartPending; pub const COMAdminServiceStopPending = COMAdminServiceStatusOptions.StopPending; pub const COMAdminServiceRunning = COMAdminServiceStatusOptions.Running; pub const COMAdminServiceContinuePending = COMAdminServiceStatusOptions.ContinuePending; pub const COMAdminServicePausePending = COMAdminServiceStatusOptions.PausePending; pub const COMAdminServicePaused = COMAdminServiceStatusOptions.Paused; pub const COMAdminServiceUnknownState = COMAdminServiceStatusOptions.UnknownState; pub const COMAdminQCMessageAuthenticateOptions = enum(i32) { SecureApps = 0, Off = 1, On = 2, }; pub const COMAdminQCMessageAuthenticateSecureApps = COMAdminQCMessageAuthenticateOptions.SecureApps; pub const COMAdminQCMessageAuthenticateOff = COMAdminQCMessageAuthenticateOptions.Off; pub const COMAdminQCMessageAuthenticateOn = COMAdminQCMessageAuthenticateOptions.On; pub const COMAdminFileFlags = enum(i32) { Loadable = 1, COM = 2, ContainsPS = 4, ContainsComp = 8, ContainsTLB = 16, SelfReg = 32, SelfUnReg = 64, UnloadableDLL = 128, DoesNotExist = 256, AlreadyInstalled = 512, BadTLB = 1024, GetClassObjFailed = 2048, ClassNotAvailable = 4096, Registrar = 8192, NoRegistrar = 16384, DLLRegsvrFailed = 32768, RegTLBFailed = 65536, RegistrarFailed = 131072, Error = 262144, }; pub const COMAdminFileFlagLoadable = COMAdminFileFlags.Loadable; pub const COMAdminFileFlagCOM = COMAdminFileFlags.COM; pub const COMAdminFileFlagContainsPS = COMAdminFileFlags.ContainsPS; pub const COMAdminFileFlagContainsComp = COMAdminFileFlags.ContainsComp; pub const COMAdminFileFlagContainsTLB = COMAdminFileFlags.ContainsTLB; pub const COMAdminFileFlagSelfReg = COMAdminFileFlags.SelfReg; pub const COMAdminFileFlagSelfUnReg = COMAdminFileFlags.SelfUnReg; pub const COMAdminFileFlagUnloadableDLL = COMAdminFileFlags.UnloadableDLL; pub const COMAdminFileFlagDoesNotExist = COMAdminFileFlags.DoesNotExist; pub const COMAdminFileFlagAlreadyInstalled = COMAdminFileFlags.AlreadyInstalled; pub const COMAdminFileFlagBadTLB = COMAdminFileFlags.BadTLB; pub const COMAdminFileFlagGetClassObjFailed = COMAdminFileFlags.GetClassObjFailed; pub const COMAdminFileFlagClassNotAvailable = COMAdminFileFlags.ClassNotAvailable; pub const COMAdminFileFlagRegistrar = COMAdminFileFlags.Registrar; pub const COMAdminFileFlagNoRegistrar = COMAdminFileFlags.NoRegistrar; pub const COMAdminFileFlagDLLRegsvrFailed = COMAdminFileFlags.DLLRegsvrFailed; pub const COMAdminFileFlagRegTLBFailed = COMAdminFileFlags.RegTLBFailed; pub const COMAdminFileFlagRegistrarFailed = COMAdminFileFlags.RegistrarFailed; pub const COMAdminFileFlagError = COMAdminFileFlags.Error; pub const COMAdminComponentFlags = enum(i32) { TypeInfoFound = 1, COMPlusPropertiesFound = 2, ProxyFound = 4, InterfacesFound = 8, AlreadyInstalled = 16, NotInApplication = 32, }; pub const COMAdminCompFlagTypeInfoFound = COMAdminComponentFlags.TypeInfoFound; pub const COMAdminCompFlagCOMPlusPropertiesFound = COMAdminComponentFlags.COMPlusPropertiesFound; pub const COMAdminCompFlagProxyFound = COMAdminComponentFlags.ProxyFound; pub const COMAdminCompFlagInterfacesFound = COMAdminComponentFlags.InterfacesFound; pub const COMAdminCompFlagAlreadyInstalled = COMAdminComponentFlags.AlreadyInstalled; pub const COMAdminCompFlagNotInApplication = COMAdminComponentFlags.NotInApplication; pub const COMAdminErrorCodes = enum(i32) { ObjectErrors = -2146368511, ObjectInvalid = -2146368510, KeyMissing = -2146368509, AlreadyInstalled = -2146368508, AppFileWriteFail = -2146368505, AppFileReadFail = -2146368504, AppFileVersion = -2146368503, BadPath = -2146368502, ApplicationExists = -2146368501, RoleExists = -2146368500, CantCopyFile = -2146368499, NoUser = -2146368497, InvalidUserids = -2146368496, NoRegistryCLSID = -2146368495, BadRegistryProgID = -2146368494, AuthenticationLevel = -2146368493, UserPasswdNotValid = -2146368492, CLSIDOrIIDMismatch = -2146368488, RemoteInterface = -2146368487, DllRegisterServer = -2146368486, NoServerShare = -2146368485, DllLoadFailed = -2146368483, BadRegistryLibID = -2146368482, AppDirNotFound = -2146368481, RegistrarFailed = -2146368477, CompFileDoesNotExist = -2146368476, CompFileLoadDLLFail = -2146368475, CompFileGetClassObj = -2146368474, CompFileClassNotAvail = -2146368473, CompFileBadTLB = -2146368472, CompFileNotInstallable = -2146368471, NotChangeable = -2146368470, NotDeletable = -2146368469, Session = -2146368468, CompMoveLocked = -2146368467, CompMoveBadDest = -2146368466, RegisterTLB = -2146368464, SystemApp = -2146368461, CompFileNoRegistrar = -2146368460, CoReqCompInstalled = -2146368459, ServiceNotInstalled = -2146368458, PropertySaveFailed = -2146368457, ObjectExists = -2146368456, ComponentExists = -2146368455, RegFileCorrupt = -2146368453, PropertyOverflow = -2146368452, NotInRegistry = -2146368450, ObjectNotPoolable = -2146368449, ApplidMatchesClsid = -2146368442, RoleDoesNotExist = -2146368441, StartAppNeedsComponents = -2146368440, RequiresDifferentPlatform = -2146368439, QueuingServiceNotAvailable = -2146367998, ObjectParentMissing = -2146367480, ObjectDoesNotExist = -2146367479, CanNotExportAppProxy = -2146368438, CanNotStartApp = -2146368437, CanNotExportSystemApp = -2146368436, CanNotSubscribeToComponent = -2146368435, AppNotRunning = -2146367478, EventClassCannotBeSubscriber = -2146368434, LibAppProxyIncompatible = -2146368433, BasePartitionOnly = -2146368432, DuplicatePartitionName = -2146368425, PartitionInUse = -2146368423, ImportedComponentsNotAllowed = -2146368421, RegdbNotInitialized = -2146368398, RegdbNotOpen = -2146368397, RegdbSystemErr = -2146368396, RegdbAlreadyRunning = -2146368395, MigVersionNotSupported = -2146368384, MigSchemaNotFound = -2146368383, CatBitnessMismatch = -2146368382, CatUnacceptableBitness = -2146368381, CatWrongAppBitnessBitness = -2146368380, CatPauseResumeNotSupported = -2146368379, CatServerFault = -2146368378, CantRecycleLibraryApps = -2146367473, CantRecycleServiceApps = -2146367471, ProcessAlreadyRecycled = -2146367470, PausedProcessMayNotBeRecycled = -2146367469, InvalidPartition = -2146367477, PartitionMsiOnly = -2146367463, StartAppDisabled = -2146368431, CompMoveSource = -2146367460, CompMoveDest = -2146367459, CompMovePrivate = -2146367458, CannotCopyEventClass = -2146367456, }; pub const COMAdminErrObjectErrors = COMAdminErrorCodes.ObjectErrors; pub const COMAdminErrObjectInvalid = COMAdminErrorCodes.ObjectInvalid; pub const COMAdminErrKeyMissing = COMAdminErrorCodes.KeyMissing; pub const COMAdminErrAlreadyInstalled = COMAdminErrorCodes.AlreadyInstalled; pub const COMAdminErrAppFileWriteFail = COMAdminErrorCodes.AppFileWriteFail; pub const COMAdminErrAppFileReadFail = COMAdminErrorCodes.AppFileReadFail; pub const COMAdminErrAppFileVersion = COMAdminErrorCodes.AppFileVersion; pub const COMAdminErrBadPath = COMAdminErrorCodes.BadPath; pub const COMAdminErrApplicationExists = COMAdminErrorCodes.ApplicationExists; pub const COMAdminErrRoleExists = COMAdminErrorCodes.RoleExists; pub const COMAdminErrCantCopyFile = COMAdminErrorCodes.CantCopyFile; pub const COMAdminErrNoUser = COMAdminErrorCodes.NoUser; pub const COMAdminErrInvalidUserids = COMAdminErrorCodes.InvalidUserids; pub const COMAdminErrNoRegistryCLSID = COMAdminErrorCodes.NoRegistryCLSID; pub const COMAdminErrBadRegistryProgID = COMAdminErrorCodes.BadRegistryProgID; pub const COMAdminErrAuthenticationLevel = COMAdminErrorCodes.AuthenticationLevel; pub const COMAdminErrUserPasswdNotValid = COMAdminErrorCodes.UserPasswdNotValid; pub const COMAdminErrCLSIDOrIIDMismatch = COMAdminErrorCodes.CLSIDOrIIDMismatch; pub const COMAdminErrRemoteInterface = COMAdminErrorCodes.RemoteInterface; pub const COMAdminErrDllRegisterServer = COMAdminErrorCodes.DllRegisterServer; pub const COMAdminErrNoServerShare = COMAdminErrorCodes.NoServerShare; pub const COMAdminErrDllLoadFailed = COMAdminErrorCodes.DllLoadFailed; pub const COMAdminErrBadRegistryLibID = COMAdminErrorCodes.BadRegistryLibID; pub const COMAdminErrAppDirNotFound = COMAdminErrorCodes.AppDirNotFound; pub const COMAdminErrRegistrarFailed = COMAdminErrorCodes.RegistrarFailed; pub const COMAdminErrCompFileDoesNotExist = COMAdminErrorCodes.CompFileDoesNotExist; pub const COMAdminErrCompFileLoadDLLFail = COMAdminErrorCodes.CompFileLoadDLLFail; pub const COMAdminErrCompFileGetClassObj = COMAdminErrorCodes.CompFileGetClassObj; pub const COMAdminErrCompFileClassNotAvail = COMAdminErrorCodes.CompFileClassNotAvail; pub const COMAdminErrCompFileBadTLB = COMAdminErrorCodes.CompFileBadTLB; pub const COMAdminErrCompFileNotInstallable = COMAdminErrorCodes.CompFileNotInstallable; pub const COMAdminErrNotChangeable = COMAdminErrorCodes.NotChangeable; pub const COMAdminErrNotDeletable = COMAdminErrorCodes.NotDeletable; pub const COMAdminErrSession = COMAdminErrorCodes.Session; pub const COMAdminErrCompMoveLocked = COMAdminErrorCodes.CompMoveLocked; pub const COMAdminErrCompMoveBadDest = COMAdminErrorCodes.CompMoveBadDest; pub const COMAdminErrRegisterTLB = COMAdminErrorCodes.RegisterTLB; pub const COMAdminErrSystemApp = COMAdminErrorCodes.SystemApp; pub const COMAdminErrCompFileNoRegistrar = COMAdminErrorCodes.CompFileNoRegistrar; pub const COMAdminErrCoReqCompInstalled = COMAdminErrorCodes.CoReqCompInstalled; pub const COMAdminErrServiceNotInstalled = COMAdminErrorCodes.ServiceNotInstalled; pub const COMAdminErrPropertySaveFailed = COMAdminErrorCodes.PropertySaveFailed; pub const COMAdminErrObjectExists = COMAdminErrorCodes.ObjectExists; pub const COMAdminErrComponentExists = COMAdminErrorCodes.ComponentExists; pub const COMAdminErrRegFileCorrupt = COMAdminErrorCodes.RegFileCorrupt; pub const COMAdminErrPropertyOverflow = COMAdminErrorCodes.PropertyOverflow; pub const COMAdminErrNotInRegistry = COMAdminErrorCodes.NotInRegistry; pub const COMAdminErrObjectNotPoolable = COMAdminErrorCodes.ObjectNotPoolable; pub const COMAdminErrApplidMatchesClsid = COMAdminErrorCodes.ApplidMatchesClsid; pub const COMAdminErrRoleDoesNotExist = COMAdminErrorCodes.RoleDoesNotExist; pub const COMAdminErrStartAppNeedsComponents = COMAdminErrorCodes.StartAppNeedsComponents; pub const COMAdminErrRequiresDifferentPlatform = COMAdminErrorCodes.RequiresDifferentPlatform; pub const COMAdminErrQueuingServiceNotAvailable = COMAdminErrorCodes.QueuingServiceNotAvailable; pub const COMAdminErrObjectParentMissing = COMAdminErrorCodes.ObjectParentMissing; pub const COMAdminErrObjectDoesNotExist = COMAdminErrorCodes.ObjectDoesNotExist; pub const COMAdminErrCanNotExportAppProxy = COMAdminErrorCodes.CanNotExportAppProxy; pub const COMAdminErrCanNotStartApp = COMAdminErrorCodes.CanNotStartApp; pub const COMAdminErrCanNotExportSystemApp = COMAdminErrorCodes.CanNotExportSystemApp; pub const COMAdminErrCanNotSubscribeToComponent = COMAdminErrorCodes.CanNotSubscribeToComponent; pub const COMAdminErrAppNotRunning = COMAdminErrorCodes.AppNotRunning; pub const COMAdminErrEventClassCannotBeSubscriber = COMAdminErrorCodes.EventClassCannotBeSubscriber; pub const COMAdminErrLibAppProxyIncompatible = COMAdminErrorCodes.LibAppProxyIncompatible; pub const COMAdminErrBasePartitionOnly = COMAdminErrorCodes.BasePartitionOnly; pub const COMAdminErrDuplicatePartitionName = COMAdminErrorCodes.DuplicatePartitionName; pub const COMAdminErrPartitionInUse = COMAdminErrorCodes.PartitionInUse; pub const COMAdminErrImportedComponentsNotAllowed = COMAdminErrorCodes.ImportedComponentsNotAllowed; pub const COMAdminErrRegdbNotInitialized = COMAdminErrorCodes.RegdbNotInitialized; pub const COMAdminErrRegdbNotOpen = COMAdminErrorCodes.RegdbNotOpen; pub const COMAdminErrRegdbSystemErr = COMAdminErrorCodes.RegdbSystemErr; pub const COMAdminErrRegdbAlreadyRunning = COMAdminErrorCodes.RegdbAlreadyRunning; pub const COMAdminErrMigVersionNotSupported = COMAdminErrorCodes.MigVersionNotSupported; pub const COMAdminErrMigSchemaNotFound = COMAdminErrorCodes.MigSchemaNotFound; pub const COMAdminErrCatBitnessMismatch = COMAdminErrorCodes.CatBitnessMismatch; pub const COMAdminErrCatUnacceptableBitness = COMAdminErrorCodes.CatUnacceptableBitness; pub const COMAdminErrCatWrongAppBitnessBitness = COMAdminErrorCodes.CatWrongAppBitnessBitness; pub const COMAdminErrCatPauseResumeNotSupported = COMAdminErrorCodes.CatPauseResumeNotSupported; pub const COMAdminErrCatServerFault = COMAdminErrorCodes.CatServerFault; pub const COMAdminErrCantRecycleLibraryApps = COMAdminErrorCodes.CantRecycleLibraryApps; pub const COMAdminErrCantRecycleServiceApps = COMAdminErrorCodes.CantRecycleServiceApps; pub const COMAdminErrProcessAlreadyRecycled = COMAdminErrorCodes.ProcessAlreadyRecycled; pub const COMAdminErrPausedProcessMayNotBeRecycled = COMAdminErrorCodes.PausedProcessMayNotBeRecycled; pub const COMAdminErrInvalidPartition = COMAdminErrorCodes.InvalidPartition; pub const COMAdminErrPartitionMsiOnly = COMAdminErrorCodes.PartitionMsiOnly; pub const COMAdminErrStartAppDisabled = COMAdminErrorCodes.StartAppDisabled; pub const COMAdminErrCompMoveSource = COMAdminErrorCodes.CompMoveSource; pub const COMAdminErrCompMoveDest = COMAdminErrorCodes.CompMoveDest; pub const COMAdminErrCompMovePrivate = COMAdminErrorCodes.CompMovePrivate; pub const COMAdminErrCannotCopyEventClass = COMAdminErrorCodes.CannotCopyEventClass; // TODO: this type is limited to platform 'windows5.0' const IID_ISecurityIdentityColl_Value = Guid.initString("cafc823c-b441-11d1-b82b-0000f8757e2a"); pub const IID_ISecurityIdentityColl = &IID_ISecurityIdentityColl_Value; pub const ISecurityIdentityColl = extern struct { pub const VTable = extern struct { base: IDispatch.VTable, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Count: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ISecurityIdentityColl, plCount: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ISecurityIdentityColl, plCount: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Item: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ISecurityIdentityColl, name: ?BSTR, pItem: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ISecurityIdentityColl, name: ?BSTR, pItem: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get__NewEnum: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ISecurityIdentityColl, ppEnum: ?*?*IUnknown, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ISecurityIdentityColl, ppEnum: ?*?*IUnknown, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IDispatch.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISecurityIdentityColl_get_Count(self: *const T, plCount: ?*i32) HRESULT { return @as(*const ISecurityIdentityColl.VTable, @ptrCast(self.vtable)).get_Count(@as(*const ISecurityIdentityColl, @ptrCast(self)), plCount); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISecurityIdentityColl_get_Item(self: *const T, name: ?BSTR, pItem: ?*VARIANT) HRESULT { return @as(*const ISecurityIdentityColl.VTable, @ptrCast(self.vtable)).get_Item(@as(*const ISecurityIdentityColl, @ptrCast(self)), name, pItem); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISecurityIdentityColl_get__NewEnum(self: *const T, ppEnum: ?*?*IUnknown) HRESULT { return @as(*const ISecurityIdentityColl.VTable, @ptrCast(self.vtable)).get__NewEnum(@as(*const ISecurityIdentityColl, @ptrCast(self)), ppEnum); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows5.0' const IID_ISecurityCallersColl_Value = Guid.initString("cafc823d-b441-11d1-b82b-0000f8757e2a"); pub const IID_ISecurityCallersColl = &IID_ISecurityCallersColl_Value; pub const ISecurityCallersColl = extern struct { pub const VTable = extern struct { base: IDispatch.VTable, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Count: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ISecurityCallersColl, plCount: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ISecurityCallersColl, plCount: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Item: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ISecurityCallersColl, lIndex: i32, pObj: ?*?*ISecurityIdentityColl, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ISecurityCallersColl, lIndex: i32, pObj: ?*?*ISecurityIdentityColl, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get__NewEnum: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ISecurityCallersColl, ppEnum: ?*?*IUnknown, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ISecurityCallersColl, ppEnum: ?*?*IUnknown, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IDispatch.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISecurityCallersColl_get_Count(self: *const T, plCount: ?*i32) HRESULT { return @as(*const ISecurityCallersColl.VTable, @ptrCast(self.vtable)).get_Count(@as(*const ISecurityCallersColl, @ptrCast(self)), plCount); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISecurityCallersColl_get_Item(self: *const T, lIndex: i32, pObj: ?*?*ISecurityIdentityColl) HRESULT { return @as(*const ISecurityCallersColl.VTable, @ptrCast(self.vtable)).get_Item(@as(*const ISecurityCallersColl, @ptrCast(self)), lIndex, pObj); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISecurityCallersColl_get__NewEnum(self: *const T, ppEnum: ?*?*IUnknown) HRESULT { return @as(*const ISecurityCallersColl.VTable, @ptrCast(self.vtable)).get__NewEnum(@as(*const ISecurityCallersColl, @ptrCast(self)), ppEnum); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows5.0' const IID_ISecurityCallContext_Value = Guid.initString("cafc823e-b441-11d1-b82b-0000f8757e2a"); pub const IID_ISecurityCallContext = &IID_ISecurityCallContext_Value; pub const ISecurityCallContext = extern struct { pub const VTable = extern struct { base: IDispatch.VTable, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Count: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ISecurityCallContext, plCount: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ISecurityCallContext, plCount: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Item: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ISecurityCallContext, name: ?BSTR, pItem: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ISecurityCallContext, name: ?BSTR, pItem: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get__NewEnum: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ISecurityCallContext, ppEnum: ?*?*IUnknown, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ISecurityCallContext, ppEnum: ?*?*IUnknown, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, IsCallerInRole: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ISecurityCallContext, bstrRole: ?BSTR, pfInRole: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ISecurityCallContext, bstrRole: ?BSTR, pfInRole: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, IsSecurityEnabled: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ISecurityCallContext, pfIsEnabled: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ISecurityCallContext, pfIsEnabled: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, IsUserInRole: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ISecurityCallContext, pUser: ?*VARIANT, bstrRole: ?BSTR, pfInRole: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ISecurityCallContext, pUser: ?*VARIANT, bstrRole: ?BSTR, pfInRole: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IDispatch.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISecurityCallContext_get_Count(self: *const T, plCount: ?*i32) HRESULT { return @as(*const ISecurityCallContext.VTable, @ptrCast(self.vtable)).get_Count(@as(*const ISecurityCallContext, @ptrCast(self)), plCount); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISecurityCallContext_get_Item(self: *const T, name: ?BSTR, pItem: ?*VARIANT) HRESULT { return @as(*const ISecurityCallContext.VTable, @ptrCast(self.vtable)).get_Item(@as(*const ISecurityCallContext, @ptrCast(self)), name, pItem); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISecurityCallContext_get__NewEnum(self: *const T, ppEnum: ?*?*IUnknown) HRESULT { return @as(*const ISecurityCallContext.VTable, @ptrCast(self.vtable)).get__NewEnum(@as(*const ISecurityCallContext, @ptrCast(self)), ppEnum); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISecurityCallContext_IsCallerInRole(self: *const T, bstrRole: ?BSTR, pfInRole: ?*i16) HRESULT { return @as(*const ISecurityCallContext.VTable, @ptrCast(self.vtable)).IsCallerInRole(@as(*const ISecurityCallContext, @ptrCast(self)), bstrRole, pfInRole); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISecurityCallContext_IsSecurityEnabled(self: *const T, pfIsEnabled: ?*i16) HRESULT { return @as(*const ISecurityCallContext.VTable, @ptrCast(self.vtable)).IsSecurityEnabled(@as(*const ISecurityCallContext, @ptrCast(self)), pfIsEnabled); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISecurityCallContext_IsUserInRole(self: *const T, pUser: ?*VARIANT, bstrRole: ?BSTR, pfInRole: ?*i16) HRESULT { return @as(*const ISecurityCallContext.VTable, @ptrCast(self.vtable)).IsUserInRole(@as(*const ISecurityCallContext, @ptrCast(self)), pUser, bstrRole, pfInRole); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows5.0' const IID_IGetSecurityCallContext_Value = Guid.initString("cafc823f-b441-11d1-b82b-0000f8757e2a"); pub const IID_IGetSecurityCallContext = &IID_IGetSecurityCallContext_Value; pub const IGetSecurityCallContext = extern struct { pub const VTable = extern struct { base: IDispatch.VTable, GetSecurityCallContext: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IGetSecurityCallContext, ppObject: ?*?*ISecurityCallContext, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IGetSecurityCallContext, ppObject: ?*?*ISecurityCallContext, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IDispatch.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IGetSecurityCallContext_GetSecurityCallContext(self: *const T, ppObject: ?*?*ISecurityCallContext) HRESULT { return @as(*const IGetSecurityCallContext.VTable, @ptrCast(self.vtable)).GetSecurityCallContext(@as(*const IGetSecurityCallContext, @ptrCast(self)), ppObject); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows5.0' const IID_SecurityProperty_Value = Guid.initString("e74a7215-014d-11d1-a63c-00a0c911b4e0"); pub const IID_SecurityProperty = &IID_SecurityProperty_Value; pub const SecurityProperty = extern struct { pub const VTable = extern struct { base: IDispatch.VTable, GetDirectCallerName: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const SecurityProperty, bstrUserName: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const SecurityProperty, bstrUserName: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetDirectCreatorName: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const SecurityProperty, bstrUserName: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const SecurityProperty, bstrUserName: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetOriginalCallerName: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const SecurityProperty, bstrUserName: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const SecurityProperty, bstrUserName: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetOriginalCreatorName: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const SecurityProperty, bstrUserName: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const SecurityProperty, bstrUserName: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IDispatch.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn SecurityProperty_GetDirectCallerName(self: *const T, bstrUserName: ?*?BSTR) HRESULT { return @as(*const SecurityProperty.VTable, @ptrCast(self.vtable)).GetDirectCallerName(@as(*const SecurityProperty, @ptrCast(self)), bstrUserName); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn SecurityProperty_GetDirectCreatorName(self: *const T, bstrUserName: ?*?BSTR) HRESULT { return @as(*const SecurityProperty.VTable, @ptrCast(self.vtable)).GetDirectCreatorName(@as(*const SecurityProperty, @ptrCast(self)), bstrUserName); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn SecurityProperty_GetOriginalCallerName(self: *const T, bstrUserName: ?*?BSTR) HRESULT { return @as(*const SecurityProperty.VTable, @ptrCast(self.vtable)).GetOriginalCallerName(@as(*const SecurityProperty, @ptrCast(self)), bstrUserName); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn SecurityProperty_GetOriginalCreatorName(self: *const T, bstrUserName: ?*?BSTR) HRESULT { return @as(*const SecurityProperty.VTable, @ptrCast(self.vtable)).GetOriginalCreatorName(@as(*const SecurityProperty, @ptrCast(self)), bstrUserName); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows5.0' const IID_ContextInfo_Value = Guid.initString("19a5a02c-0ac8-11d2-b286-00c04f8ef934"); pub const IID_ContextInfo = &IID_ContextInfo_Value; pub const ContextInfo = extern struct { pub const VTable = extern struct { base: IDispatch.VTable, IsInTransaction: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ContextInfo, pbIsInTx: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ContextInfo, pbIsInTx: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetTransaction: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ContextInfo, ppTx: ?*?*IUnknown, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ContextInfo, ppTx: ?*?*IUnknown, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetTransactionId: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ContextInfo, pbstrTxId: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ContextInfo, pbstrTxId: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetActivityId: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ContextInfo, pbstrActivityId: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ContextInfo, pbstrActivityId: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetContextId: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ContextInfo, pbstrCtxId: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ContextInfo, pbstrCtxId: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IDispatch.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ContextInfo_IsInTransaction(self: *const T, pbIsInTx: ?*i16) HRESULT { return @as(*const ContextInfo.VTable, @ptrCast(self.vtable)).IsInTransaction(@as(*const ContextInfo, @ptrCast(self)), pbIsInTx); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ContextInfo_GetTransaction(self: *const T, ppTx: ?*?*IUnknown) HRESULT { return @as(*const ContextInfo.VTable, @ptrCast(self.vtable)).GetTransaction(@as(*const ContextInfo, @ptrCast(self)), ppTx); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ContextInfo_GetTransactionId(self: *const T, pbstrTxId: ?*?BSTR) HRESULT { return @as(*const ContextInfo.VTable, @ptrCast(self.vtable)).GetTransactionId(@as(*const ContextInfo, @ptrCast(self)), pbstrTxId); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ContextInfo_GetActivityId(self: *const T, pbstrActivityId: ?*?BSTR) HRESULT { return @as(*const ContextInfo.VTable, @ptrCast(self.vtable)).GetActivityId(@as(*const ContextInfo, @ptrCast(self)), pbstrActivityId); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ContextInfo_GetContextId(self: *const T, pbstrCtxId: ?*?BSTR) HRESULT { return @as(*const ContextInfo.VTable, @ptrCast(self.vtable)).GetContextId(@as(*const ContextInfo, @ptrCast(self)), pbstrCtxId); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows5.1.2600' const IID_ContextInfo2_Value = Guid.initString("c99d6e75-2375-11d4-8331-00c04f605588"); pub const IID_ContextInfo2 = &IID_ContextInfo2_Value; pub const ContextInfo2 = extern struct { pub const VTable = extern struct { base: ContextInfo.VTable, GetPartitionId: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ContextInfo2, __MIDL__ContextInfo20000: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ContextInfo2, __MIDL__ContextInfo20000: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetApplicationId: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ContextInfo2, __MIDL__ContextInfo20001: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ContextInfo2, __MIDL__ContextInfo20001: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetApplicationInstanceId: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ContextInfo2, __MIDL__ContextInfo20002: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ContextInfo2, __MIDL__ContextInfo20002: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace ContextInfo.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ContextInfo2_GetPartitionId(self: *const T, __MIDL__ContextInfo20000: ?*?BSTR) HRESULT { return @as(*const ContextInfo2.VTable, @ptrCast(self.vtable)).GetPartitionId(@as(*const ContextInfo2, @ptrCast(self)), __MIDL__ContextInfo20000); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ContextInfo2_GetApplicationId(self: *const T, __MIDL__ContextInfo20001: ?*?BSTR) HRESULT { return @as(*const ContextInfo2.VTable, @ptrCast(self.vtable)).GetApplicationId(@as(*const ContextInfo2, @ptrCast(self)), __MIDL__ContextInfo20001); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ContextInfo2_GetApplicationInstanceId(self: *const T, __MIDL__ContextInfo20002: ?*?BSTR) HRESULT { return @as(*const ContextInfo2.VTable, @ptrCast(self.vtable)).GetApplicationInstanceId(@as(*const ContextInfo2, @ptrCast(self)), __MIDL__ContextInfo20002); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows5.0' const IID_ObjectContext_Value = Guid.initString("74c08646-cedb-11cf-8b49-00aa00b8a790"); pub const IID_ObjectContext = &IID_ObjectContext_Value; pub const ObjectContext = extern struct { pub const VTable = extern struct { base: IDispatch.VTable, CreateInstance: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ObjectContext, bstrProgID: ?BSTR, pObject: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ObjectContext, bstrProgID: ?BSTR, pObject: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetComplete: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ObjectContext, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ObjectContext, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetAbort: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ObjectContext, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ObjectContext, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, EnableCommit: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ObjectContext, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ObjectContext, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, DisableCommit: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ObjectContext, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ObjectContext, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, IsInTransaction: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ObjectContext, pbIsInTx: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ObjectContext, pbIsInTx: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, IsSecurityEnabled: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ObjectContext, pbIsEnabled: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ObjectContext, pbIsEnabled: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, IsCallerInRole: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ObjectContext, bstrRole: ?BSTR, pbInRole: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ObjectContext, bstrRole: ?BSTR, pbInRole: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Count: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ObjectContext, plCount: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ObjectContext, plCount: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Item: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ObjectContext, name: ?BSTR, pItem: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ObjectContext, name: ?BSTR, pItem: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get__NewEnum: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ObjectContext, ppEnum: ?*?*IUnknown, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ObjectContext, ppEnum: ?*?*IUnknown, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Security: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ObjectContext, ppSecurityProperty: ?*?*SecurityProperty, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ObjectContext, ppSecurityProperty: ?*?*SecurityProperty, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_ContextInfo: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ObjectContext, ppContextInfo: ?*?*ContextInfo, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ObjectContext, ppContextInfo: ?*?*ContextInfo, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IDispatch.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ObjectContext_CreateInstance(self: *const T, bstrProgID: ?BSTR, pObject: ?*VARIANT) HRESULT { return @as(*const ObjectContext.VTable, @ptrCast(self.vtable)).CreateInstance(@as(*const ObjectContext, @ptrCast(self)), bstrProgID, pObject); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ObjectContext_SetComplete(self: *const T) HRESULT { return @as(*const ObjectContext.VTable, @ptrCast(self.vtable)).SetComplete(@as(*const ObjectContext, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ObjectContext_SetAbort(self: *const T) HRESULT { return @as(*const ObjectContext.VTable, @ptrCast(self.vtable)).SetAbort(@as(*const ObjectContext, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ObjectContext_EnableCommit(self: *const T) HRESULT { return @as(*const ObjectContext.VTable, @ptrCast(self.vtable)).EnableCommit(@as(*const ObjectContext, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ObjectContext_DisableCommit(self: *const T) HRESULT { return @as(*const ObjectContext.VTable, @ptrCast(self.vtable)).DisableCommit(@as(*const ObjectContext, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ObjectContext_IsInTransaction(self: *const T, pbIsInTx: ?*i16) HRESULT { return @as(*const ObjectContext.VTable, @ptrCast(self.vtable)).IsInTransaction(@as(*const ObjectContext, @ptrCast(self)), pbIsInTx); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ObjectContext_IsSecurityEnabled(self: *const T, pbIsEnabled: ?*i16) HRESULT { return @as(*const ObjectContext.VTable, @ptrCast(self.vtable)).IsSecurityEnabled(@as(*const ObjectContext, @ptrCast(self)), pbIsEnabled); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ObjectContext_IsCallerInRole(self: *const T, bstrRole: ?BSTR, pbInRole: ?*i16) HRESULT { return @as(*const ObjectContext.VTable, @ptrCast(self.vtable)).IsCallerInRole(@as(*const ObjectContext, @ptrCast(self)), bstrRole, pbInRole); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ObjectContext_get_Count(self: *const T, plCount: ?*i32) HRESULT { return @as(*const ObjectContext.VTable, @ptrCast(self.vtable)).get_Count(@as(*const ObjectContext, @ptrCast(self)), plCount); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ObjectContext_get_Item(self: *const T, name: ?BSTR, pItem: ?*VARIANT) HRESULT { return @as(*const ObjectContext.VTable, @ptrCast(self.vtable)).get_Item(@as(*const ObjectContext, @ptrCast(self)), name, pItem); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ObjectContext_get__NewEnum(self: *const T, ppEnum: ?*?*IUnknown) HRESULT { return @as(*const ObjectContext.VTable, @ptrCast(self.vtable)).get__NewEnum(@as(*const ObjectContext, @ptrCast(self)), ppEnum); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ObjectContext_get_Security(self: *const T, ppSecurityProperty: ?*?*SecurityProperty) HRESULT { return @as(*const ObjectContext.VTable, @ptrCast(self.vtable)).get_Security(@as(*const ObjectContext, @ptrCast(self)), ppSecurityProperty); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ObjectContext_get_ContextInfo(self: *const T, ppContextInfo: ?*?*ContextInfo) HRESULT { return @as(*const ObjectContext.VTable, @ptrCast(self.vtable)).get_ContextInfo(@as(*const ObjectContext, @ptrCast(self)), ppContextInfo); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows5.0' const IID_ITransactionContextEx_Value = Guid.initString("7999fc22-d3c6-11cf-acab-00a024a55aef"); pub const IID_ITransactionContextEx = &IID_ITransactionContextEx_Value; pub const ITransactionContextEx = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, CreateInstance: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ITransactionContextEx, rclsid: ?*const Guid, riid: ?*const Guid, pObject: ?*?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ITransactionContextEx, rclsid: ?*const Guid, riid: ?*const Guid, pObject: ?*?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Commit: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ITransactionContextEx, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ITransactionContextEx, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Abort: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ITransactionContextEx, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ITransactionContextEx, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITransactionContextEx_CreateInstance(self: *const T, rclsid: ?*const Guid, riid: ?*const Guid, pObject: ?*?*anyopaque) HRESULT { return @as(*const ITransactionContextEx.VTable, @ptrCast(self.vtable)).CreateInstance(@as(*const ITransactionContextEx, @ptrCast(self)), rclsid, riid, pObject); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITransactionContextEx_Commit(self: *const T) HRESULT { return @as(*const ITransactionContextEx.VTable, @ptrCast(self.vtable)).Commit(@as(*const ITransactionContextEx, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITransactionContextEx_Abort(self: *const T) HRESULT { return @as(*const ITransactionContextEx.VTable, @ptrCast(self.vtable)).Abort(@as(*const ITransactionContextEx, @ptrCast(self))); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows5.0' const IID_ITransactionContext_Value = Guid.initString("7999fc21-d3c6-11cf-acab-00a024a55aef"); pub const IID_ITransactionContext = &IID_ITransactionContext_Value; pub const ITransactionContext = extern struct { pub const VTable = extern struct { base: IDispatch.VTable, CreateInstance: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ITransactionContext, pszProgId: ?BSTR, pObject: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ITransactionContext, pszProgId: ?BSTR, pObject: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Commit: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ITransactionContext, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ITransactionContext, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Abort: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ITransactionContext, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ITransactionContext, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IDispatch.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITransactionContext_CreateInstance(self: *const T, pszProgId: ?BSTR, pObject: ?*VARIANT) HRESULT { return @as(*const ITransactionContext.VTable, @ptrCast(self.vtable)).CreateInstance(@as(*const ITransactionContext, @ptrCast(self)), pszProgId, pObject); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITransactionContext_Commit(self: *const T) HRESULT { return @as(*const ITransactionContext.VTable, @ptrCast(self.vtable)).Commit(@as(*const ITransactionContext, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITransactionContext_Abort(self: *const T) HRESULT { return @as(*const ITransactionContext.VTable, @ptrCast(self.vtable)).Abort(@as(*const ITransactionContext, @ptrCast(self))); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows5.0' const IID_ICreateWithTransactionEx_Value = Guid.initString("455acf57-5345-11d2-99cf-00c04f797bc9"); pub const IID_ICreateWithTransactionEx = &IID_ICreateWithTransactionEx_Value; pub const ICreateWithTransactionEx = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, CreateInstance: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ICreateWithTransactionEx, pTransaction: ?*ITransaction, rclsid: ?*const Guid, riid: ?*const Guid, pObject: ?*?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ICreateWithTransactionEx, pTransaction: ?*ITransaction, rclsid: ?*const Guid, riid: ?*const Guid, pObject: ?*?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ICreateWithTransactionEx_CreateInstance(self: *const T, pTransaction: ?*ITransaction, rclsid: ?*const Guid, riid: ?*const Guid, pObject: ?*?*anyopaque) HRESULT { return @as(*const ICreateWithTransactionEx.VTable, @ptrCast(self.vtable)).CreateInstance(@as(*const ICreateWithTransactionEx, @ptrCast(self)), pTransaction, rclsid, riid, pObject); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows5.1.2600' const IID_ICreateWithLocalTransaction_Value = Guid.initString("227ac7a8-8423-42ce-b7cf-03061ec9aaa3"); pub const IID_ICreateWithLocalTransaction = &IID_ICreateWithLocalTransaction_Value; pub const ICreateWithLocalTransaction = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, CreateInstanceWithSysTx: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ICreateWithLocalTransaction, pTransaction: ?*IUnknown, rclsid: ?*const Guid, riid: ?*const Guid, pObject: ?*?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ICreateWithLocalTransaction, pTransaction: ?*IUnknown, rclsid: ?*const Guid, riid: ?*const Guid, pObject: ?*?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ICreateWithLocalTransaction_CreateInstanceWithSysTx(self: *const T, pTransaction: ?*IUnknown, rclsid: ?*const Guid, riid: ?*const Guid, pObject: ?*?*anyopaque) HRESULT { return @as(*const ICreateWithLocalTransaction.VTable, @ptrCast(self.vtable)).CreateInstanceWithSysTx(@as(*const ICreateWithLocalTransaction, @ptrCast(self)), pTransaction, rclsid, riid, pObject); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows5.0' const IID_ICreateWithTipTransactionEx_Value = Guid.initString("455acf59-5345-11d2-99cf-00c04f797bc9"); pub const IID_ICreateWithTipTransactionEx = &IID_ICreateWithTipTransactionEx_Value; pub const ICreateWithTipTransactionEx = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, CreateInstance: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ICreateWithTipTransactionEx, bstrTipUrl: ?BSTR, rclsid: ?*const Guid, riid: ?*const Guid, pObject: ?*?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ICreateWithTipTransactionEx, bstrTipUrl: ?BSTR, rclsid: ?*const Guid, riid: ?*const Guid, pObject: ?*?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ICreateWithTipTransactionEx_CreateInstance(self: *const T, bstrTipUrl: ?BSTR, rclsid: ?*const Guid, riid: ?*const Guid, pObject: ?*?*anyopaque) HRESULT { return @as(*const ICreateWithTipTransactionEx.VTable, @ptrCast(self.vtable)).CreateInstance(@as(*const ICreateWithTipTransactionEx, @ptrCast(self)), bstrTipUrl, rclsid, riid, pObject); } }; } pub usingnamespace MethodMixin(@This()); }; pub const COMSVCSEVENTINFO = extern struct { cbSize: u32, dwPid: u32, lTime: i64, lMicroTime: i32, perfCount: i64, guidApp: Guid, sMachineName: ?PWSTR, }; // TODO: this type is limited to platform 'windows5.1.2600' const IID_IComLTxEvents_Value = Guid.initString("605cf82c-578e-4298-975d-82babcd9e053"); pub const IID_IComLTxEvents = &IID_IComLTxEvents_Value; pub const IComLTxEvents = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, OnLtxTransactionStart: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IComLTxEvents, pInfo: ?*COMSVCSEVENTINFO, guidLtx: Guid, tsid: Guid, fRoot: BOOL, nIsolationLevel: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IComLTxEvents, pInfo: ?*COMSVCSEVENTINFO, guidLtx: Guid, tsid: Guid, fRoot: BOOL, nIsolationLevel: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, OnLtxTransactionPrepare: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IComLTxEvents, pInfo: ?*COMSVCSEVENTINFO, guidLtx: Guid, fVote: BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IComLTxEvents, pInfo: ?*COMSVCSEVENTINFO, guidLtx: Guid, fVote: BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, OnLtxTransactionAbort: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IComLTxEvents, pInfo: ?*COMSVCSEVENTINFO, guidLtx: Guid, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IComLTxEvents, pInfo: ?*COMSVCSEVENTINFO, guidLtx: Guid, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, OnLtxTransactionCommit: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IComLTxEvents, pInfo: ?*COMSVCSEVENTINFO, guidLtx: Guid, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IComLTxEvents, pInfo: ?*COMSVCSEVENTINFO, guidLtx: Guid, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, OnLtxTransactionPromote: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IComLTxEvents, pInfo: ?*COMSVCSEVENTINFO, guidLtx: Guid, txnId: Guid, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IComLTxEvents, pInfo: ?*COMSVCSEVENTINFO, guidLtx: Guid, txnId: Guid, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IComLTxEvents_OnLtxTransactionStart(self: *const T, pInfo: ?*COMSVCSEVENTINFO, guidLtx: Guid, tsid: Guid, fRoot: BOOL, nIsolationLevel: i32) HRESULT { return @as(*const IComLTxEvents.VTable, @ptrCast(self.vtable)).OnLtxTransactionStart(@as(*const IComLTxEvents, @ptrCast(self)), pInfo, guidLtx, tsid, fRoot, nIsolationLevel); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IComLTxEvents_OnLtxTransactionPrepare(self: *const T, pInfo: ?*COMSVCSEVENTINFO, guidLtx: Guid, fVote: BOOL) HRESULT { return @as(*const IComLTxEvents.VTable, @ptrCast(self.vtable)).OnLtxTransactionPrepare(@as(*const IComLTxEvents, @ptrCast(self)), pInfo, guidLtx, fVote); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IComLTxEvents_OnLtxTransactionAbort(self: *const T, pInfo: ?*COMSVCSEVENTINFO, guidLtx: Guid) HRESULT { return @as(*const IComLTxEvents.VTable, @ptrCast(self.vtable)).OnLtxTransactionAbort(@as(*const IComLTxEvents, @ptrCast(self)), pInfo, guidLtx); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IComLTxEvents_OnLtxTransactionCommit(self: *const T, pInfo: ?*COMSVCSEVENTINFO, guidLtx: Guid) HRESULT { return @as(*const IComLTxEvents.VTable, @ptrCast(self.vtable)).OnLtxTransactionCommit(@as(*const IComLTxEvents, @ptrCast(self)), pInfo, guidLtx); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IComLTxEvents_OnLtxTransactionPromote(self: *const T, pInfo: ?*COMSVCSEVENTINFO, guidLtx: Guid, txnId: Guid) HRESULT { return @as(*const IComLTxEvents.VTable, @ptrCast(self.vtable)).OnLtxTransactionPromote(@as(*const IComLTxEvents, @ptrCast(self)), pInfo, guidLtx, txnId); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows5.0' const IID_IComUserEvent_Value = Guid.initString("683130a4-2e50-11d2-98a5-00c04f8ee1c4"); pub const IID_IComUserEvent = &IID_IComUserEvent_Value; pub const IComUserEvent = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, OnUserEvent: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IComUserEvent, pInfo: ?*COMSVCSEVENTINFO, pvarEvent: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IComUserEvent, pInfo: ?*COMSVCSEVENTINFO, pvarEvent: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IComUserEvent_OnUserEvent(self: *const T, pInfo: ?*COMSVCSEVENTINFO, pvarEvent: ?*VARIANT) HRESULT { return @as(*const IComUserEvent.VTable, @ptrCast(self.vtable)).OnUserEvent(@as(*const IComUserEvent, @ptrCast(self)), pInfo, pvarEvent); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows5.0' const IID_IComThreadEvents_Value = Guid.initString("683130a5-2e50-11d2-98a5-00c04f8ee1c4"); pub const IID_IComThreadEvents = &IID_IComThreadEvents_Value; pub const IComThreadEvents = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, OnThreadStart: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IComThreadEvents, pInfo: ?*COMSVCSEVENTINFO, ThreadID: u64, dwThread: u32, dwTheadCnt: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IComThreadEvents, pInfo: ?*COMSVCSEVENTINFO, ThreadID: u64, dwThread: u32, dwTheadCnt: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, OnThreadTerminate: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IComThreadEvents, pInfo: ?*COMSVCSEVENTINFO, ThreadID: u64, dwThread: u32, dwTheadCnt: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IComThreadEvents, pInfo: ?*COMSVCSEVENTINFO, ThreadID: u64, dwThread: u32, dwTheadCnt: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, OnThreadBindToApartment: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IComThreadEvents, pInfo: ?*COMSVCSEVENTINFO, ThreadID: u64, AptID: u64, dwActCnt: u32, dwLowCnt: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IComThreadEvents, pInfo: ?*COMSVCSEVENTINFO, ThreadID: u64, AptID: u64, dwActCnt: u32, dwLowCnt: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, OnThreadUnBind: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IComThreadEvents, pInfo: ?*COMSVCSEVENTINFO, ThreadID: u64, AptID: u64, dwActCnt: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IComThreadEvents, pInfo: ?*COMSVCSEVENTINFO, ThreadID: u64, AptID: u64, dwActCnt: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, OnThreadWorkEnque: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IComThreadEvents, pInfo: ?*COMSVCSEVENTINFO, ThreadID: u64, MsgWorkID: u64, QueueLen: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IComThreadEvents, pInfo: ?*COMSVCSEVENTINFO, ThreadID: u64, MsgWorkID: u64, QueueLen: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, OnThreadWorkPrivate: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IComThreadEvents, pInfo: ?*COMSVCSEVENTINFO, ThreadID: u64, MsgWorkID: u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IComThreadEvents, pInfo: ?*COMSVCSEVENTINFO, ThreadID: u64, MsgWorkID: u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, OnThreadWorkPublic: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IComThreadEvents, pInfo: ?*COMSVCSEVENTINFO, ThreadID: u64, MsgWorkID: u64, QueueLen: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IComThreadEvents, pInfo: ?*COMSVCSEVENTINFO, ThreadID: u64, MsgWorkID: u64, QueueLen: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, OnThreadWorkRedirect: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IComThreadEvents, pInfo: ?*COMSVCSEVENTINFO, ThreadID: u64, MsgWorkID: u64, QueueLen: u32, ThreadNum: u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IComThreadEvents, pInfo: ?*COMSVCSEVENTINFO, ThreadID: u64, MsgWorkID: u64, QueueLen: u32, ThreadNum: u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, OnThreadWorkReject: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IComThreadEvents, pInfo: ?*COMSVCSEVENTINFO, ThreadID: u64, MsgWorkID: u64, QueueLen: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IComThreadEvents, pInfo: ?*COMSVCSEVENTINFO, ThreadID: u64, MsgWorkID: u64, QueueLen: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, OnThreadAssignApartment: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IComThreadEvents, pInfo: ?*COMSVCSEVENTINFO, guidActivity: ?*const Guid, AptID: u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IComThreadEvents, pInfo: ?*COMSVCSEVENTINFO, guidActivity: ?*const Guid, AptID: u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, OnThreadUnassignApartment: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IComThreadEvents, pInfo: ?*COMSVCSEVENTINFO, AptID: u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IComThreadEvents, pInfo: ?*COMSVCSEVENTINFO, AptID: u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IComThreadEvents_OnThreadStart(self: *const T, pInfo: ?*COMSVCSEVENTINFO, ThreadID: u64, dwThread: u32, dwTheadCnt: u32) HRESULT { return @as(*const IComThreadEvents.VTable, @ptrCast(self.vtable)).OnThreadStart(@as(*const IComThreadEvents, @ptrCast(self)), pInfo, ThreadID, dwThread, dwTheadCnt); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IComThreadEvents_OnThreadTerminate(self: *const T, pInfo: ?*COMSVCSEVENTINFO, ThreadID: u64, dwThread: u32, dwTheadCnt: u32) HRESULT { return @as(*const IComThreadEvents.VTable, @ptrCast(self.vtable)).OnThreadTerminate(@as(*const IComThreadEvents, @ptrCast(self)), pInfo, ThreadID, dwThread, dwTheadCnt); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IComThreadEvents_OnThreadBindToApartment(self: *const T, pInfo: ?*COMSVCSEVENTINFO, ThreadID: u64, AptID: u64, dwActCnt: u32, dwLowCnt: u32) HRESULT { return @as(*const IComThreadEvents.VTable, @ptrCast(self.vtable)).OnThreadBindToApartment(@as(*const IComThreadEvents, @ptrCast(self)), pInfo, ThreadID, AptID, dwActCnt, dwLowCnt); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IComThreadEvents_OnThreadUnBind(self: *const T, pInfo: ?*COMSVCSEVENTINFO, ThreadID: u64, AptID: u64, dwActCnt: u32) HRESULT { return @as(*const IComThreadEvents.VTable, @ptrCast(self.vtable)).OnThreadUnBind(@as(*const IComThreadEvents, @ptrCast(self)), pInfo, ThreadID, AptID, dwActCnt); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IComThreadEvents_OnThreadWorkEnque(self: *const T, pInfo: ?*COMSVCSEVENTINFO, ThreadID: u64, MsgWorkID: u64, QueueLen: u32) HRESULT { return @as(*const IComThreadEvents.VTable, @ptrCast(self.vtable)).OnThreadWorkEnque(@as(*const IComThreadEvents, @ptrCast(self)), pInfo, ThreadID, MsgWorkID, QueueLen); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IComThreadEvents_OnThreadWorkPrivate(self: *const T, pInfo: ?*COMSVCSEVENTINFO, ThreadID: u64, MsgWorkID: u64) HRESULT { return @as(*const IComThreadEvents.VTable, @ptrCast(self.vtable)).OnThreadWorkPrivate(@as(*const IComThreadEvents, @ptrCast(self)), pInfo, ThreadID, MsgWorkID); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IComThreadEvents_OnThreadWorkPublic(self: *const T, pInfo: ?*COMSVCSEVENTINFO, ThreadID: u64, MsgWorkID: u64, QueueLen: u32) HRESULT { return @as(*const IComThreadEvents.VTable, @ptrCast(self.vtable)).OnThreadWorkPublic(@as(*const IComThreadEvents, @ptrCast(self)), pInfo, ThreadID, MsgWorkID, QueueLen); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IComThreadEvents_OnThreadWorkRedirect(self: *const T, pInfo: ?*COMSVCSEVENTINFO, ThreadID: u64, MsgWorkID: u64, QueueLen: u32, ThreadNum: u64) HRESULT { return @as(*const IComThreadEvents.VTable, @ptrCast(self.vtable)).OnThreadWorkRedirect(@as(*const IComThreadEvents, @ptrCast(self)), pInfo, ThreadID, MsgWorkID, QueueLen, ThreadNum); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IComThreadEvents_OnThreadWorkReject(self: *const T, pInfo: ?*COMSVCSEVENTINFO, ThreadID: u64, MsgWorkID: u64, QueueLen: u32) HRESULT { return @as(*const IComThreadEvents.VTable, @ptrCast(self.vtable)).OnThreadWorkReject(@as(*const IComThreadEvents, @ptrCast(self)), pInfo, ThreadID, MsgWorkID, QueueLen); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IComThreadEvents_OnThreadAssignApartment(self: *const T, pInfo: ?*COMSVCSEVENTINFO, guidActivity: ?*const Guid, AptID: u64) HRESULT { return @as(*const IComThreadEvents.VTable, @ptrCast(self.vtable)).OnThreadAssignApartment(@as(*const IComThreadEvents, @ptrCast(self)), pInfo, guidActivity, AptID); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IComThreadEvents_OnThreadUnassignApartment(self: *const T, pInfo: ?*COMSVCSEVENTINFO, AptID: u64) HRESULT { return @as(*const IComThreadEvents.VTable, @ptrCast(self.vtable)).OnThreadUnassignApartment(@as(*const IComThreadEvents, @ptrCast(self)), pInfo, AptID); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows5.0' const IID_IComAppEvents_Value = Guid.initString("683130a6-2e50-11d2-98a5-00c04f8ee1c4"); pub const IID_IComAppEvents = &IID_IComAppEvents_Value; pub const IComAppEvents = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, OnAppActivation: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IComAppEvents, pInfo: ?*COMSVCSEVENTINFO, guidApp: Guid, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IComAppEvents, pInfo: ?*COMSVCSEVENTINFO, guidApp: Guid, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, OnAppShutdown: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IComAppEvents, pInfo: ?*COMSVCSEVENTINFO, guidApp: Guid, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IComAppEvents, pInfo: ?*COMSVCSEVENTINFO, guidApp: Guid, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, OnAppForceShutdown: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IComAppEvents, pInfo: ?*COMSVCSEVENTINFO, guidApp: Guid, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IComAppEvents, pInfo: ?*COMSVCSEVENTINFO, guidApp: Guid, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IComAppEvents_OnAppActivation(self: *const T, pInfo: ?*COMSVCSEVENTINFO, guidApp: Guid) HRESULT { return @as(*const IComAppEvents.VTable, @ptrCast(self.vtable)).OnAppActivation(@as(*const IComAppEvents, @ptrCast(self)), pInfo, guidApp); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IComAppEvents_OnAppShutdown(self: *const T, pInfo: ?*COMSVCSEVENTINFO, guidApp: Guid) HRESULT { return @as(*const IComAppEvents.VTable, @ptrCast(self.vtable)).OnAppShutdown(@as(*const IComAppEvents, @ptrCast(self)), pInfo, guidApp); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IComAppEvents_OnAppForceShutdown(self: *const T, pInfo: ?*COMSVCSEVENTINFO, guidApp: Guid) HRESULT { return @as(*const IComAppEvents.VTable, @ptrCast(self.vtable)).OnAppForceShutdown(@as(*const IComAppEvents, @ptrCast(self)), pInfo, guidApp); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows5.0' const IID_IComInstanceEvents_Value = Guid.initString("683130a7-2e50-11d2-98a5-00c04f8ee1c4"); pub const IID_IComInstanceEvents = &IID_IComInstanceEvents_Value; pub const IComInstanceEvents = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, OnObjectCreate: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IComInstanceEvents, pInfo: ?*COMSVCSEVENTINFO, guidActivity: ?*const Guid, clsid: ?*const Guid, tsid: ?*const Guid, CtxtID: u64, ObjectID: u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IComInstanceEvents, pInfo: ?*COMSVCSEVENTINFO, guidActivity: ?*const Guid, clsid: ?*const Guid, tsid: ?*const Guid, CtxtID: u64, ObjectID: u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, OnObjectDestroy: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IComInstanceEvents, pInfo: ?*COMSVCSEVENTINFO, CtxtID: u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IComInstanceEvents, pInfo: ?*COMSVCSEVENTINFO, CtxtID: u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IComInstanceEvents_OnObjectCreate(self: *const T, pInfo: ?*COMSVCSEVENTINFO, guidActivity: ?*const Guid, clsid: ?*const Guid, tsid: ?*const Guid, CtxtID: u64, ObjectID: u64) HRESULT { return @as(*const IComInstanceEvents.VTable, @ptrCast(self.vtable)).OnObjectCreate(@as(*const IComInstanceEvents, @ptrCast(self)), pInfo, guidActivity, clsid, tsid, CtxtID, ObjectID); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IComInstanceEvents_OnObjectDestroy(self: *const T, pInfo: ?*COMSVCSEVENTINFO, CtxtID: u64) HRESULT { return @as(*const IComInstanceEvents.VTable, @ptrCast(self.vtable)).OnObjectDestroy(@as(*const IComInstanceEvents, @ptrCast(self)), pInfo, CtxtID); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows5.0' const IID_IComTransactionEvents_Value = Guid.initString("683130a8-2e50-11d2-98a5-00c04f8ee1c4"); pub const IID_IComTransactionEvents = &IID_IComTransactionEvents_Value; pub const IComTransactionEvents = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, OnTransactionStart: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IComTransactionEvents, pInfo: ?*COMSVCSEVENTINFO, guidTx: ?*const Guid, tsid: ?*const Guid, fRoot: BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IComTransactionEvents, pInfo: ?*COMSVCSEVENTINFO, guidTx: ?*const Guid, tsid: ?*const Guid, fRoot: BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, OnTransactionPrepare: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IComTransactionEvents, pInfo: ?*COMSVCSEVENTINFO, guidTx: ?*const Guid, fVoteYes: BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IComTransactionEvents, pInfo: ?*COMSVCSEVENTINFO, guidTx: ?*const Guid, fVoteYes: BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, OnTransactionAbort: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IComTransactionEvents, pInfo: ?*COMSVCSEVENTINFO, guidTx: ?*const Guid, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IComTransactionEvents, pInfo: ?*COMSVCSEVENTINFO, guidTx: ?*const Guid, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, OnTransactionCommit: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IComTransactionEvents, pInfo: ?*COMSVCSEVENTINFO, guidTx: ?*const Guid, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IComTransactionEvents, pInfo: ?*COMSVCSEVENTINFO, guidTx: ?*const Guid, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IComTransactionEvents_OnTransactionStart(self: *const T, pInfo: ?*COMSVCSEVENTINFO, guidTx: ?*const Guid, tsid: ?*const Guid, fRoot: BOOL) HRESULT { return @as(*const IComTransactionEvents.VTable, @ptrCast(self.vtable)).OnTransactionStart(@as(*const IComTransactionEvents, @ptrCast(self)), pInfo, guidTx, tsid, fRoot); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IComTransactionEvents_OnTransactionPrepare(self: *const T, pInfo: ?*COMSVCSEVENTINFO, guidTx: ?*const Guid, fVoteYes: BOOL) HRESULT { return @as(*const IComTransactionEvents.VTable, @ptrCast(self.vtable)).OnTransactionPrepare(@as(*const IComTransactionEvents, @ptrCast(self)), pInfo, guidTx, fVoteYes); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IComTransactionEvents_OnTransactionAbort(self: *const T, pInfo: ?*COMSVCSEVENTINFO, guidTx: ?*const Guid) HRESULT { return @as(*const IComTransactionEvents.VTable, @ptrCast(self.vtable)).OnTransactionAbort(@as(*const IComTransactionEvents, @ptrCast(self)), pInfo, guidTx); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IComTransactionEvents_OnTransactionCommit(self: *const T, pInfo: ?*COMSVCSEVENTINFO, guidTx: ?*const Guid) HRESULT { return @as(*const IComTransactionEvents.VTable, @ptrCast(self.vtable)).OnTransactionCommit(@as(*const IComTransactionEvents, @ptrCast(self)), pInfo, guidTx); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows5.0' const IID_IComMethodEvents_Value = Guid.initString("683130a9-2e50-11d2-98a5-00c04f8ee1c4"); pub const IID_IComMethodEvents = &IID_IComMethodEvents_Value; pub const IComMethodEvents = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, OnMethodCall: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IComMethodEvents, pInfo: ?*COMSVCSEVENTINFO, oid: u64, guidCid: ?*const Guid, guidRid: ?*const Guid, iMeth: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IComMethodEvents, pInfo: ?*COMSVCSEVENTINFO, oid: u64, guidCid: ?*const Guid, guidRid: ?*const Guid, iMeth: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, OnMethodReturn: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IComMethodEvents, pInfo: ?*COMSVCSEVENTINFO, oid: u64, guidCid: ?*const Guid, guidRid: ?*const Guid, iMeth: u32, hresult: HRESULT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IComMethodEvents, pInfo: ?*COMSVCSEVENTINFO, oid: u64, guidCid: ?*const Guid, guidRid: ?*const Guid, iMeth: u32, hresult: HRESULT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, OnMethodException: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IComMethodEvents, pInfo: ?*COMSVCSEVENTINFO, oid: u64, guidCid: ?*const Guid, guidRid: ?*const Guid, iMeth: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IComMethodEvents, pInfo: ?*COMSVCSEVENTINFO, oid: u64, guidCid: ?*const Guid, guidRid: ?*const Guid, iMeth: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IComMethodEvents_OnMethodCall(self: *const T, pInfo: ?*COMSVCSEVENTINFO, oid: u64, guidCid: ?*const Guid, guidRid: ?*const Guid, iMeth: u32) HRESULT { return @as(*const IComMethodEvents.VTable, @ptrCast(self.vtable)).OnMethodCall(@as(*const IComMethodEvents, @ptrCast(self)), pInfo, oid, guidCid, guidRid, iMeth); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IComMethodEvents_OnMethodReturn(self: *const T, pInfo: ?*COMSVCSEVENTINFO, oid: u64, guidCid: ?*const Guid, guidRid: ?*const Guid, iMeth: u32, hresult: HRESULT) HRESULT { return @as(*const IComMethodEvents.VTable, @ptrCast(self.vtable)).OnMethodReturn(@as(*const IComMethodEvents, @ptrCast(self)), pInfo, oid, guidCid, guidRid, iMeth, hresult); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IComMethodEvents_OnMethodException(self: *const T, pInfo: ?*COMSVCSEVENTINFO, oid: u64, guidCid: ?*const Guid, guidRid: ?*const Guid, iMeth: u32) HRESULT { return @as(*const IComMethodEvents.VTable, @ptrCast(self.vtable)).OnMethodException(@as(*const IComMethodEvents, @ptrCast(self)), pInfo, oid, guidCid, guidRid, iMeth); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows5.0' const IID_IComObjectEvents_Value = Guid.initString("683130aa-2e50-11d2-98a5-00c04f8ee1c4"); pub const IID_IComObjectEvents = &IID_IComObjectEvents_Value; pub const IComObjectEvents = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, OnObjectActivate: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IComObjectEvents, pInfo: ?*COMSVCSEVENTINFO, CtxtID: u64, ObjectID: u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IComObjectEvents, pInfo: ?*COMSVCSEVENTINFO, CtxtID: u64, ObjectID: u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, OnObjectDeactivate: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IComObjectEvents, pInfo: ?*COMSVCSEVENTINFO, CtxtID: u64, ObjectID: u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IComObjectEvents, pInfo: ?*COMSVCSEVENTINFO, CtxtID: u64, ObjectID: u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, OnDisableCommit: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IComObjectEvents, pInfo: ?*COMSVCSEVENTINFO, CtxtID: u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IComObjectEvents, pInfo: ?*COMSVCSEVENTINFO, CtxtID: u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, OnEnableCommit: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IComObjectEvents, pInfo: ?*COMSVCSEVENTINFO, CtxtID: u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IComObjectEvents, pInfo: ?*COMSVCSEVENTINFO, CtxtID: u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, OnSetComplete: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IComObjectEvents, pInfo: ?*COMSVCSEVENTINFO, CtxtID: u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IComObjectEvents, pInfo: ?*COMSVCSEVENTINFO, CtxtID: u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, OnSetAbort: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IComObjectEvents, pInfo: ?*COMSVCSEVENTINFO, CtxtID: u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IComObjectEvents, pInfo: ?*COMSVCSEVENTINFO, CtxtID: u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IComObjectEvents_OnObjectActivate(self: *const T, pInfo: ?*COMSVCSEVENTINFO, CtxtID: u64, ObjectID: u64) HRESULT { return @as(*const IComObjectEvents.VTable, @ptrCast(self.vtable)).OnObjectActivate(@as(*const IComObjectEvents, @ptrCast(self)), pInfo, CtxtID, ObjectID); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IComObjectEvents_OnObjectDeactivate(self: *const T, pInfo: ?*COMSVCSEVENTINFO, CtxtID: u64, ObjectID: u64) HRESULT { return @as(*const IComObjectEvents.VTable, @ptrCast(self.vtable)).OnObjectDeactivate(@as(*const IComObjectEvents, @ptrCast(self)), pInfo, CtxtID, ObjectID); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IComObjectEvents_OnDisableCommit(self: *const T, pInfo: ?*COMSVCSEVENTINFO, CtxtID: u64) HRESULT { return @as(*const IComObjectEvents.VTable, @ptrCast(self.vtable)).OnDisableCommit(@as(*const IComObjectEvents, @ptrCast(self)), pInfo, CtxtID); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IComObjectEvents_OnEnableCommit(self: *const T, pInfo: ?*COMSVCSEVENTINFO, CtxtID: u64) HRESULT { return @as(*const IComObjectEvents.VTable, @ptrCast(self.vtable)).OnEnableCommit(@as(*const IComObjectEvents, @ptrCast(self)), pInfo, CtxtID); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IComObjectEvents_OnSetComplete(self: *const T, pInfo: ?*COMSVCSEVENTINFO, CtxtID: u64) HRESULT { return @as(*const IComObjectEvents.VTable, @ptrCast(self.vtable)).OnSetComplete(@as(*const IComObjectEvents, @ptrCast(self)), pInfo, CtxtID); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IComObjectEvents_OnSetAbort(self: *const T, pInfo: ?*COMSVCSEVENTINFO, CtxtID: u64) HRESULT { return @as(*const IComObjectEvents.VTable, @ptrCast(self.vtable)).OnSetAbort(@as(*const IComObjectEvents, @ptrCast(self)), pInfo, CtxtID); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows5.0' const IID_IComResourceEvents_Value = Guid.initString("683130ab-2e50-11d2-98a5-00c04f8ee1c4"); pub const IID_IComResourceEvents = &IID_IComResourceEvents_Value; pub const IComResourceEvents = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, OnResourceCreate: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IComResourceEvents, pInfo: ?*COMSVCSEVENTINFO, ObjectID: u64, pszType: ?[*:0]const u16, resId: u64, enlisted: BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IComResourceEvents, pInfo: ?*COMSVCSEVENTINFO, ObjectID: u64, pszType: ?[*:0]const u16, resId: u64, enlisted: BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, OnResourceAllocate: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IComResourceEvents, pInfo: ?*COMSVCSEVENTINFO, ObjectID: u64, pszType: ?[*:0]const u16, resId: u64, enlisted: BOOL, NumRated: u32, Rating: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IComResourceEvents, pInfo: ?*COMSVCSEVENTINFO, ObjectID: u64, pszType: ?[*:0]const u16, resId: u64, enlisted: BOOL, NumRated: u32, Rating: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, OnResourceRecycle: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IComResourceEvents, pInfo: ?*COMSVCSEVENTINFO, ObjectID: u64, pszType: ?[*:0]const u16, resId: u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IComResourceEvents, pInfo: ?*COMSVCSEVENTINFO, ObjectID: u64, pszType: ?[*:0]const u16, resId: u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, OnResourceDestroy: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IComResourceEvents, pInfo: ?*COMSVCSEVENTINFO, ObjectID: u64, hr: HRESULT, pszType: ?[*:0]const u16, resId: u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IComResourceEvents, pInfo: ?*COMSVCSEVENTINFO, ObjectID: u64, hr: HRESULT, pszType: ?[*:0]const u16, resId: u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, OnResourceTrack: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IComResourceEvents, pInfo: ?*COMSVCSEVENTINFO, ObjectID: u64, pszType: ?[*:0]const u16, resId: u64, enlisted: BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IComResourceEvents, pInfo: ?*COMSVCSEVENTINFO, ObjectID: u64, pszType: ?[*:0]const u16, resId: u64, enlisted: BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IComResourceEvents_OnResourceCreate(self: *const T, pInfo: ?*COMSVCSEVENTINFO, ObjectID: u64, pszType: ?[*:0]const u16, resId: u64, enlisted: BOOL) HRESULT { return @as(*const IComResourceEvents.VTable, @ptrCast(self.vtable)).OnResourceCreate(@as(*const IComResourceEvents, @ptrCast(self)), pInfo, ObjectID, pszType, resId, enlisted); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IComResourceEvents_OnResourceAllocate(self: *const T, pInfo: ?*COMSVCSEVENTINFO, ObjectID: u64, pszType: ?[*:0]const u16, resId: u64, enlisted: BOOL, NumRated: u32, Rating: u32) HRESULT { return @as(*const IComResourceEvents.VTable, @ptrCast(self.vtable)).OnResourceAllocate(@as(*const IComResourceEvents, @ptrCast(self)), pInfo, ObjectID, pszType, resId, enlisted, NumRated, Rating); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IComResourceEvents_OnResourceRecycle(self: *const T, pInfo: ?*COMSVCSEVENTINFO, ObjectID: u64, pszType: ?[*:0]const u16, resId: u64) HRESULT { return @as(*const IComResourceEvents.VTable, @ptrCast(self.vtable)).OnResourceRecycle(@as(*const IComResourceEvents, @ptrCast(self)), pInfo, ObjectID, pszType, resId); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IComResourceEvents_OnResourceDestroy(self: *const T, pInfo: ?*COMSVCSEVENTINFO, ObjectID: u64, hr: HRESULT, pszType: ?[*:0]const u16, resId: u64) HRESULT { return @as(*const IComResourceEvents.VTable, @ptrCast(self.vtable)).OnResourceDestroy(@as(*const IComResourceEvents, @ptrCast(self)), pInfo, ObjectID, hr, pszType, resId); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IComResourceEvents_OnResourceTrack(self: *const T, pInfo: ?*COMSVCSEVENTINFO, ObjectID: u64, pszType: ?[*:0]const u16, resId: u64, enlisted: BOOL) HRESULT { return @as(*const IComResourceEvents.VTable, @ptrCast(self.vtable)).OnResourceTrack(@as(*const IComResourceEvents, @ptrCast(self)), pInfo, ObjectID, pszType, resId, enlisted); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows5.0' const IID_IComSecurityEvents_Value = Guid.initString("683130ac-2e50-11d2-98a5-00c04f8ee1c4"); pub const IID_IComSecurityEvents = &IID_IComSecurityEvents_Value; pub const IComSecurityEvents = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, OnAuthenticate: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IComSecurityEvents, pInfo: ?*COMSVCSEVENTINFO, guidActivity: ?*const Guid, ObjectID: u64, guidIID: ?*const Guid, iMeth: u32, cbByteOrig: u32, pSidOriginalUser: [*:0]u8, cbByteCur: u32, pSidCurrentUser: [*:0]u8, bCurrentUserInpersonatingInProc: BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IComSecurityEvents, pInfo: ?*COMSVCSEVENTINFO, guidActivity: ?*const Guid, ObjectID: u64, guidIID: ?*const Guid, iMeth: u32, cbByteOrig: u32, pSidOriginalUser: [*:0]u8, cbByteCur: u32, pSidCurrentUser: [*:0]u8, bCurrentUserInpersonatingInProc: BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, OnAuthenticateFail: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IComSecurityEvents, pInfo: ?*COMSVCSEVENTINFO, guidActivity: ?*const Guid, ObjectID: u64, guidIID: ?*const Guid, iMeth: u32, cbByteOrig: u32, pSidOriginalUser: [*:0]u8, cbByteCur: u32, pSidCurrentUser: [*:0]u8, bCurrentUserInpersonatingInProc: BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IComSecurityEvents, pInfo: ?*COMSVCSEVENTINFO, guidActivity: ?*const Guid, ObjectID: u64, guidIID: ?*const Guid, iMeth: u32, cbByteOrig: u32, pSidOriginalUser: [*:0]u8, cbByteCur: u32, pSidCurrentUser: [*:0]u8, bCurrentUserInpersonatingInProc: BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IComSecurityEvents_OnAuthenticate(self: *const T, pInfo: ?*COMSVCSEVENTINFO, guidActivity: ?*const Guid, ObjectID: u64, guidIID: ?*const Guid, iMeth: u32, cbByteOrig: u32, pSidOriginalUser: [*:0]u8, cbByteCur: u32, pSidCurrentUser: [*:0]u8, bCurrentUserInpersonatingInProc: BOOL) HRESULT { return @as(*const IComSecurityEvents.VTable, @ptrCast(self.vtable)).OnAuthenticate(@as(*const IComSecurityEvents, @ptrCast(self)), pInfo, guidActivity, ObjectID, guidIID, iMeth, cbByteOrig, pSidOriginalUser, cbByteCur, pSidCurrentUser, bCurrentUserInpersonatingInProc); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IComSecurityEvents_OnAuthenticateFail(self: *const T, pInfo: ?*COMSVCSEVENTINFO, guidActivity: ?*const Guid, ObjectID: u64, guidIID: ?*const Guid, iMeth: u32, cbByteOrig: u32, pSidOriginalUser: [*:0]u8, cbByteCur: u32, pSidCurrentUser: [*:0]u8, bCurrentUserInpersonatingInProc: BOOL) HRESULT { return @as(*const IComSecurityEvents.VTable, @ptrCast(self.vtable)).OnAuthenticateFail(@as(*const IComSecurityEvents, @ptrCast(self)), pInfo, guidActivity, ObjectID, guidIID, iMeth, cbByteOrig, pSidOriginalUser, cbByteCur, pSidCurrentUser, bCurrentUserInpersonatingInProc); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows5.0' const IID_IComObjectPoolEvents_Value = Guid.initString("683130ad-2e50-11d2-98a5-00c04f8ee1c4"); pub const IID_IComObjectPoolEvents = &IID_IComObjectPoolEvents_Value; pub const IComObjectPoolEvents = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, OnObjPoolPutObject: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IComObjectPoolEvents, pInfo: ?*COMSVCSEVENTINFO, guidObject: ?*const Guid, nReason: i32, dwAvailable: u32, oid: u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IComObjectPoolEvents, pInfo: ?*COMSVCSEVENTINFO, guidObject: ?*const Guid, nReason: i32, dwAvailable: u32, oid: u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, OnObjPoolGetObject: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IComObjectPoolEvents, pInfo: ?*COMSVCSEVENTINFO, guidActivity: ?*const Guid, guidObject: ?*const Guid, dwAvailable: u32, oid: u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IComObjectPoolEvents, pInfo: ?*COMSVCSEVENTINFO, guidActivity: ?*const Guid, guidObject: ?*const Guid, dwAvailable: u32, oid: u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, OnObjPoolRecycleToTx: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IComObjectPoolEvents, pInfo: ?*COMSVCSEVENTINFO, guidActivity: ?*const Guid, guidObject: ?*const Guid, guidTx: ?*const Guid, objid: u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IComObjectPoolEvents, pInfo: ?*COMSVCSEVENTINFO, guidActivity: ?*const Guid, guidObject: ?*const Guid, guidTx: ?*const Guid, objid: u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, OnObjPoolGetFromTx: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IComObjectPoolEvents, pInfo: ?*COMSVCSEVENTINFO, guidActivity: ?*const Guid, guidObject: ?*const Guid, guidTx: ?*const Guid, objid: u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IComObjectPoolEvents, pInfo: ?*COMSVCSEVENTINFO, guidActivity: ?*const Guid, guidObject: ?*const Guid, guidTx: ?*const Guid, objid: u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IComObjectPoolEvents_OnObjPoolPutObject(self: *const T, pInfo: ?*COMSVCSEVENTINFO, guidObject: ?*const Guid, nReason: i32, dwAvailable: u32, oid: u64) HRESULT { return @as(*const IComObjectPoolEvents.VTable, @ptrCast(self.vtable)).OnObjPoolPutObject(@as(*const IComObjectPoolEvents, @ptrCast(self)), pInfo, guidObject, nReason, dwAvailable, oid); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IComObjectPoolEvents_OnObjPoolGetObject(self: *const T, pInfo: ?*COMSVCSEVENTINFO, guidActivity: ?*const Guid, guidObject: ?*const Guid, dwAvailable: u32, oid: u64) HRESULT { return @as(*const IComObjectPoolEvents.VTable, @ptrCast(self.vtable)).OnObjPoolGetObject(@as(*const IComObjectPoolEvents, @ptrCast(self)), pInfo, guidActivity, guidObject, dwAvailable, oid); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IComObjectPoolEvents_OnObjPoolRecycleToTx(self: *const T, pInfo: ?*COMSVCSEVENTINFO, guidActivity: ?*const Guid, guidObject: ?*const Guid, guidTx: ?*const Guid, objid: u64) HRESULT { return @as(*const IComObjectPoolEvents.VTable, @ptrCast(self.vtable)).OnObjPoolRecycleToTx(@as(*const IComObjectPoolEvents, @ptrCast(self)), pInfo, guidActivity, guidObject, guidTx, objid); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IComObjectPoolEvents_OnObjPoolGetFromTx(self: *const T, pInfo: ?*COMSVCSEVENTINFO, guidActivity: ?*const Guid, guidObject: ?*const Guid, guidTx: ?*const Guid, objid: u64) HRESULT { return @as(*const IComObjectPoolEvents.VTable, @ptrCast(self.vtable)).OnObjPoolGetFromTx(@as(*const IComObjectPoolEvents, @ptrCast(self)), pInfo, guidActivity, guidObject, guidTx, objid); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows5.0' const IID_IComObjectPoolEvents2_Value = Guid.initString("683130ae-2e50-11d2-98a5-00c04f8ee1c4"); pub const IID_IComObjectPoolEvents2 = &IID_IComObjectPoolEvents2_Value; pub const IComObjectPoolEvents2 = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, OnObjPoolCreateObject: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IComObjectPoolEvents2, pInfo: ?*COMSVCSEVENTINFO, guidObject: ?*const Guid, dwObjsCreated: u32, oid: u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IComObjectPoolEvents2, pInfo: ?*COMSVCSEVENTINFO, guidObject: ?*const Guid, dwObjsCreated: u32, oid: u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, OnObjPoolDestroyObject: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IComObjectPoolEvents2, pInfo: ?*COMSVCSEVENTINFO, guidObject: ?*const Guid, dwObjsCreated: u32, oid: u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IComObjectPoolEvents2, pInfo: ?*COMSVCSEVENTINFO, guidObject: ?*const Guid, dwObjsCreated: u32, oid: u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, OnObjPoolCreateDecision: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IComObjectPoolEvents2, pInfo: ?*COMSVCSEVENTINFO, dwThreadsWaiting: u32, dwAvail: u32, dwCreated: u32, dwMin: u32, dwMax: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IComObjectPoolEvents2, pInfo: ?*COMSVCSEVENTINFO, dwThreadsWaiting: u32, dwAvail: u32, dwCreated: u32, dwMin: u32, dwMax: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, OnObjPoolTimeout: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IComObjectPoolEvents2, pInfo: ?*COMSVCSEVENTINFO, guidObject: ?*const Guid, guidActivity: ?*const Guid, dwTimeout: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IComObjectPoolEvents2, pInfo: ?*COMSVCSEVENTINFO, guidObject: ?*const Guid, guidActivity: ?*const Guid, dwTimeout: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, OnObjPoolCreatePool: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IComObjectPoolEvents2, pInfo: ?*COMSVCSEVENTINFO, guidObject: ?*const Guid, dwMin: u32, dwMax: u32, dwTimeout: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IComObjectPoolEvents2, pInfo: ?*COMSVCSEVENTINFO, guidObject: ?*const Guid, dwMin: u32, dwMax: u32, dwTimeout: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IComObjectPoolEvents2_OnObjPoolCreateObject(self: *const T, pInfo: ?*COMSVCSEVENTINFO, guidObject: ?*const Guid, dwObjsCreated: u32, oid: u64) HRESULT { return @as(*const IComObjectPoolEvents2.VTable, @ptrCast(self.vtable)).OnObjPoolCreateObject(@as(*const IComObjectPoolEvents2, @ptrCast(self)), pInfo, guidObject, dwObjsCreated, oid); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IComObjectPoolEvents2_OnObjPoolDestroyObject(self: *const T, pInfo: ?*COMSVCSEVENTINFO, guidObject: ?*const Guid, dwObjsCreated: u32, oid: u64) HRESULT { return @as(*const IComObjectPoolEvents2.VTable, @ptrCast(self.vtable)).OnObjPoolDestroyObject(@as(*const IComObjectPoolEvents2, @ptrCast(self)), pInfo, guidObject, dwObjsCreated, oid); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IComObjectPoolEvents2_OnObjPoolCreateDecision(self: *const T, pInfo: ?*COMSVCSEVENTINFO, dwThreadsWaiting: u32, dwAvail: u32, dwCreated: u32, dwMin: u32, dwMax: u32) HRESULT { return @as(*const IComObjectPoolEvents2.VTable, @ptrCast(self.vtable)).OnObjPoolCreateDecision(@as(*const IComObjectPoolEvents2, @ptrCast(self)), pInfo, dwThreadsWaiting, dwAvail, dwCreated, dwMin, dwMax); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IComObjectPoolEvents2_OnObjPoolTimeout(self: *const T, pInfo: ?*COMSVCSEVENTINFO, guidObject: ?*const Guid, guidActivity: ?*const Guid, dwTimeout: u32) HRESULT { return @as(*const IComObjectPoolEvents2.VTable, @ptrCast(self.vtable)).OnObjPoolTimeout(@as(*const IComObjectPoolEvents2, @ptrCast(self)), pInfo, guidObject, guidActivity, dwTimeout); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IComObjectPoolEvents2_OnObjPoolCreatePool(self: *const T, pInfo: ?*COMSVCSEVENTINFO, guidObject: ?*const Guid, dwMin: u32, dwMax: u32, dwTimeout: u32) HRESULT { return @as(*const IComObjectPoolEvents2.VTable, @ptrCast(self.vtable)).OnObjPoolCreatePool(@as(*const IComObjectPoolEvents2, @ptrCast(self)), pInfo, guidObject, dwMin, dwMax, dwTimeout); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows5.0' const IID_IComObjectConstructionEvents_Value = Guid.initString("683130af-2e50-11d2-98a5-00c04f8ee1c4"); pub const IID_IComObjectConstructionEvents = &IID_IComObjectConstructionEvents_Value; pub const IComObjectConstructionEvents = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, OnObjectConstruct: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IComObjectConstructionEvents, pInfo: ?*COMSVCSEVENTINFO, guidObject: ?*const Guid, sConstructString: ?[*:0]const u16, oid: u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IComObjectConstructionEvents, pInfo: ?*COMSVCSEVENTINFO, guidObject: ?*const Guid, sConstructString: ?[*:0]const u16, oid: u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IComObjectConstructionEvents_OnObjectConstruct(self: *const T, pInfo: ?*COMSVCSEVENTINFO, guidObject: ?*const Guid, sConstructString: ?[*:0]const u16, oid: u64) HRESULT { return @as(*const IComObjectConstructionEvents.VTable, @ptrCast(self.vtable)).OnObjectConstruct(@as(*const IComObjectConstructionEvents, @ptrCast(self)), pInfo, guidObject, sConstructString, oid); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows5.0' const IID_IComActivityEvents_Value = Guid.initString("683130b0-2e50-11d2-98a5-00c04f8ee1c4"); pub const IID_IComActivityEvents = &IID_IComActivityEvents_Value; pub const IComActivityEvents = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, OnActivityCreate: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IComActivityEvents, pInfo: ?*COMSVCSEVENTINFO, guidActivity: ?*const Guid, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IComActivityEvents, pInfo: ?*COMSVCSEVENTINFO, guidActivity: ?*const Guid, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, OnActivityDestroy: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IComActivityEvents, pInfo: ?*COMSVCSEVENTINFO, guidActivity: ?*const Guid, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IComActivityEvents, pInfo: ?*COMSVCSEVENTINFO, guidActivity: ?*const Guid, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, OnActivityEnter: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IComActivityEvents, pInfo: ?*COMSVCSEVENTINFO, guidCurrent: ?*const Guid, guidEntered: ?*const Guid, dwThread: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IComActivityEvents, pInfo: ?*COMSVCSEVENTINFO, guidCurrent: ?*const Guid, guidEntered: ?*const Guid, dwThread: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, OnActivityTimeout: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IComActivityEvents, pInfo: ?*COMSVCSEVENTINFO, guidCurrent: ?*const Guid, guidEntered: ?*const Guid, dwThread: u32, dwTimeout: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IComActivityEvents, pInfo: ?*COMSVCSEVENTINFO, guidCurrent: ?*const Guid, guidEntered: ?*const Guid, dwThread: u32, dwTimeout: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, OnActivityReenter: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IComActivityEvents, pInfo: ?*COMSVCSEVENTINFO, guidCurrent: ?*const Guid, dwThread: u32, dwCallDepth: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IComActivityEvents, pInfo: ?*COMSVCSEVENTINFO, guidCurrent: ?*const Guid, dwThread: u32, dwCallDepth: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, OnActivityLeave: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IComActivityEvents, pInfo: ?*COMSVCSEVENTINFO, guidCurrent: ?*const Guid, guidLeft: ?*const Guid, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IComActivityEvents, pInfo: ?*COMSVCSEVENTINFO, guidCurrent: ?*const Guid, guidLeft: ?*const Guid, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, OnActivityLeaveSame: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IComActivityEvents, pInfo: ?*COMSVCSEVENTINFO, guidCurrent: ?*const Guid, dwCallDepth: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IComActivityEvents, pInfo: ?*COMSVCSEVENTINFO, guidCurrent: ?*const Guid, dwCallDepth: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IComActivityEvents_OnActivityCreate(self: *const T, pInfo: ?*COMSVCSEVENTINFO, guidActivity: ?*const Guid) HRESULT { return @as(*const IComActivityEvents.VTable, @ptrCast(self.vtable)).OnActivityCreate(@as(*const IComActivityEvents, @ptrCast(self)), pInfo, guidActivity); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IComActivityEvents_OnActivityDestroy(self: *const T, pInfo: ?*COMSVCSEVENTINFO, guidActivity: ?*const Guid) HRESULT { return @as(*const IComActivityEvents.VTable, @ptrCast(self.vtable)).OnActivityDestroy(@as(*const IComActivityEvents, @ptrCast(self)), pInfo, guidActivity); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IComActivityEvents_OnActivityEnter(self: *const T, pInfo: ?*COMSVCSEVENTINFO, guidCurrent: ?*const Guid, guidEntered: ?*const Guid, dwThread: u32) HRESULT { return @as(*const IComActivityEvents.VTable, @ptrCast(self.vtable)).OnActivityEnter(@as(*const IComActivityEvents, @ptrCast(self)), pInfo, guidCurrent, guidEntered, dwThread); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IComActivityEvents_OnActivityTimeout(self: *const T, pInfo: ?*COMSVCSEVENTINFO, guidCurrent: ?*const Guid, guidEntered: ?*const Guid, dwThread: u32, dwTimeout: u32) HRESULT { return @as(*const IComActivityEvents.VTable, @ptrCast(self.vtable)).OnActivityTimeout(@as(*const IComActivityEvents, @ptrCast(self)), pInfo, guidCurrent, guidEntered, dwThread, dwTimeout); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IComActivityEvents_OnActivityReenter(self: *const T, pInfo: ?*COMSVCSEVENTINFO, guidCurrent: ?*const Guid, dwThread: u32, dwCallDepth: u32) HRESULT { return @as(*const IComActivityEvents.VTable, @ptrCast(self.vtable)).OnActivityReenter(@as(*const IComActivityEvents, @ptrCast(self)), pInfo, guidCurrent, dwThread, dwCallDepth); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IComActivityEvents_OnActivityLeave(self: *const T, pInfo: ?*COMSVCSEVENTINFO, guidCurrent: ?*const Guid, guidLeft: ?*const Guid) HRESULT { return @as(*const IComActivityEvents.VTable, @ptrCast(self.vtable)).OnActivityLeave(@as(*const IComActivityEvents, @ptrCast(self)), pInfo, guidCurrent, guidLeft); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IComActivityEvents_OnActivityLeaveSame(self: *const T, pInfo: ?*COMSVCSEVENTINFO, guidCurrent: ?*const Guid, dwCallDepth: u32) HRESULT { return @as(*const IComActivityEvents.VTable, @ptrCast(self.vtable)).OnActivityLeaveSame(@as(*const IComActivityEvents, @ptrCast(self)), pInfo, guidCurrent, dwCallDepth); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows5.0' const IID_IComIdentityEvents_Value = Guid.initString("683130b1-2e50-11d2-98a5-00c04f8ee1c4"); pub const IID_IComIdentityEvents = &IID_IComIdentityEvents_Value; pub const IComIdentityEvents = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, OnIISRequestInfo: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IComIdentityEvents, pInfo: ?*COMSVCSEVENTINFO, ObjId: u64, pszClientIP: ?[*:0]const u16, pszServerIP: ?[*:0]const u16, pszURL: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IComIdentityEvents, pInfo: ?*COMSVCSEVENTINFO, ObjId: u64, pszClientIP: ?[*:0]const u16, pszServerIP: ?[*:0]const u16, pszURL: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IComIdentityEvents_OnIISRequestInfo(self: *const T, pInfo: ?*COMSVCSEVENTINFO, ObjId: u64, pszClientIP: ?[*:0]const u16, pszServerIP: ?[*:0]const u16, pszURL: ?[*:0]const u16) HRESULT { return @as(*const IComIdentityEvents.VTable, @ptrCast(self.vtable)).OnIISRequestInfo(@as(*const IComIdentityEvents, @ptrCast(self)), pInfo, ObjId, pszClientIP, pszServerIP, pszURL); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows5.0' const IID_IComQCEvents_Value = Guid.initString("683130b2-2e50-11d2-98a5-00c04f8ee1c4"); pub const IID_IComQCEvents = &IID_IComQCEvents_Value; pub const IComQCEvents = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, OnQCRecord: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IComQCEvents, pInfo: ?*COMSVCSEVENTINFO, objid: u64, szQueue: *[60]u16, guidMsgId: ?*const Guid, guidWorkFlowId: ?*const Guid, msmqhr: HRESULT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IComQCEvents, pInfo: ?*COMSVCSEVENTINFO, objid: u64, szQueue: *[60]u16, guidMsgId: ?*const Guid, guidWorkFlowId: ?*const Guid, msmqhr: HRESULT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, OnQCQueueOpen: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IComQCEvents, pInfo: ?*COMSVCSEVENTINFO, szQueue: *[60]u16, QueueID: u64, hr: HRESULT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IComQCEvents, pInfo: ?*COMSVCSEVENTINFO, szQueue: *[60]u16, QueueID: u64, hr: HRESULT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, OnQCReceive: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IComQCEvents, pInfo: ?*COMSVCSEVENTINFO, QueueID: u64, guidMsgId: ?*const Guid, guidWorkFlowId: ?*const Guid, hr: HRESULT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IComQCEvents, pInfo: ?*COMSVCSEVENTINFO, QueueID: u64, guidMsgId: ?*const Guid, guidWorkFlowId: ?*const Guid, hr: HRESULT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, OnQCReceiveFail: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IComQCEvents, pInfo: ?*COMSVCSEVENTINFO, QueueID: u64, msmqhr: HRESULT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IComQCEvents, pInfo: ?*COMSVCSEVENTINFO, QueueID: u64, msmqhr: HRESULT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, OnQCMoveToReTryQueue: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IComQCEvents, pInfo: ?*COMSVCSEVENTINFO, guidMsgId: ?*const Guid, guidWorkFlowId: ?*const Guid, RetryIndex: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IComQCEvents, pInfo: ?*COMSVCSEVENTINFO, guidMsgId: ?*const Guid, guidWorkFlowId: ?*const Guid, RetryIndex: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, OnQCMoveToDeadQueue: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IComQCEvents, pInfo: ?*COMSVCSEVENTINFO, guidMsgId: ?*const Guid, guidWorkFlowId: ?*const Guid, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IComQCEvents, pInfo: ?*COMSVCSEVENTINFO, guidMsgId: ?*const Guid, guidWorkFlowId: ?*const Guid, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, OnQCPlayback: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IComQCEvents, pInfo: ?*COMSVCSEVENTINFO, objid: u64, guidMsgId: ?*const Guid, guidWorkFlowId: ?*const Guid, hr: HRESULT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IComQCEvents, pInfo: ?*COMSVCSEVENTINFO, objid: u64, guidMsgId: ?*const Guid, guidWorkFlowId: ?*const Guid, hr: HRESULT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IComQCEvents_OnQCRecord(self: *const T, pInfo: ?*COMSVCSEVENTINFO, objid: u64, szQueue: *[60]u16, guidMsgId: ?*const Guid, guidWorkFlowId: ?*const Guid, msmqhr: HRESULT) HRESULT { return @as(*const IComQCEvents.VTable, @ptrCast(self.vtable)).OnQCRecord(@as(*const IComQCEvents, @ptrCast(self)), pInfo, objid, szQueue, guidMsgId, guidWorkFlowId, msmqhr); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IComQCEvents_OnQCQueueOpen(self: *const T, pInfo: ?*COMSVCSEVENTINFO, szQueue: *[60]u16, QueueID: u64, hr: HRESULT) HRESULT { return @as(*const IComQCEvents.VTable, @ptrCast(self.vtable)).OnQCQueueOpen(@as(*const IComQCEvents, @ptrCast(self)), pInfo, szQueue, QueueID, hr); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IComQCEvents_OnQCReceive(self: *const T, pInfo: ?*COMSVCSEVENTINFO, QueueID: u64, guidMsgId: ?*const Guid, guidWorkFlowId: ?*const Guid, hr: HRESULT) HRESULT { return @as(*const IComQCEvents.VTable, @ptrCast(self.vtable)).OnQCReceive(@as(*const IComQCEvents, @ptrCast(self)), pInfo, QueueID, guidMsgId, guidWorkFlowId, hr); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IComQCEvents_OnQCReceiveFail(self: *const T, pInfo: ?*COMSVCSEVENTINFO, QueueID: u64, msmqhr: HRESULT) HRESULT { return @as(*const IComQCEvents.VTable, @ptrCast(self.vtable)).OnQCReceiveFail(@as(*const IComQCEvents, @ptrCast(self)), pInfo, QueueID, msmqhr); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IComQCEvents_OnQCMoveToReTryQueue(self: *const T, pInfo: ?*COMSVCSEVENTINFO, guidMsgId: ?*const Guid, guidWorkFlowId: ?*const Guid, RetryIndex: u32) HRESULT { return @as(*const IComQCEvents.VTable, @ptrCast(self.vtable)).OnQCMoveToReTryQueue(@as(*const IComQCEvents, @ptrCast(self)), pInfo, guidMsgId, guidWorkFlowId, RetryIndex); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IComQCEvents_OnQCMoveToDeadQueue(self: *const T, pInfo: ?*COMSVCSEVENTINFO, guidMsgId: ?*const Guid, guidWorkFlowId: ?*const Guid) HRESULT { return @as(*const IComQCEvents.VTable, @ptrCast(self.vtable)).OnQCMoveToDeadQueue(@as(*const IComQCEvents, @ptrCast(self)), pInfo, guidMsgId, guidWorkFlowId); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IComQCEvents_OnQCPlayback(self: *const T, pInfo: ?*COMSVCSEVENTINFO, objid: u64, guidMsgId: ?*const Guid, guidWorkFlowId: ?*const Guid, hr: HRESULT) HRESULT { return @as(*const IComQCEvents.VTable, @ptrCast(self.vtable)).OnQCPlayback(@as(*const IComQCEvents, @ptrCast(self)), pInfo, objid, guidMsgId, guidWorkFlowId, hr); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows5.0' const IID_IComExceptionEvents_Value = Guid.initString("683130b3-2e50-11d2-98a5-00c04f8ee1c4"); pub const IID_IComExceptionEvents = &IID_IComExceptionEvents_Value; pub const IComExceptionEvents = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, OnExceptionUser: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IComExceptionEvents, pInfo: ?*COMSVCSEVENTINFO, code: u32, address: u64, pszStackTrace: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IComExceptionEvents, pInfo: ?*COMSVCSEVENTINFO, code: u32, address: u64, pszStackTrace: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IComExceptionEvents_OnExceptionUser(self: *const T, pInfo: ?*COMSVCSEVENTINFO, code: u32, address: u64, pszStackTrace: ?[*:0]const u16) HRESULT { return @as(*const IComExceptionEvents.VTable, @ptrCast(self.vtable)).OnExceptionUser(@as(*const IComExceptionEvents, @ptrCast(self)), pInfo, code, address, pszStackTrace); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_ILBEvents_Value = Guid.initString("683130b4-2e50-11d2-98a5-00c04f8ee1c4"); pub const IID_ILBEvents = &IID_ILBEvents_Value; pub const ILBEvents = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, TargetUp: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ILBEvents, bstrServerName: ?BSTR, bstrClsidEng: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ILBEvents, bstrServerName: ?BSTR, bstrClsidEng: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, TargetDown: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ILBEvents, bstrServerName: ?BSTR, bstrClsidEng: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ILBEvents, bstrServerName: ?BSTR, bstrClsidEng: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, EngineDefined: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ILBEvents, bstrPropName: ?BSTR, varPropValue: ?*VARIANT, bstrClsidEng: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ILBEvents, bstrPropName: ?BSTR, varPropValue: ?*VARIANT, bstrClsidEng: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ILBEvents_TargetUp(self: *const T, bstrServerName: ?BSTR, bstrClsidEng: ?BSTR) HRESULT { return @as(*const ILBEvents.VTable, @ptrCast(self.vtable)).TargetUp(@as(*const ILBEvents, @ptrCast(self)), bstrServerName, bstrClsidEng); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ILBEvents_TargetDown(self: *const T, bstrServerName: ?BSTR, bstrClsidEng: ?BSTR) HRESULT { return @as(*const ILBEvents.VTable, @ptrCast(self.vtable)).TargetDown(@as(*const ILBEvents, @ptrCast(self)), bstrServerName, bstrClsidEng); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ILBEvents_EngineDefined(self: *const T, bstrPropName: ?BSTR, varPropValue: ?*VARIANT, bstrClsidEng: ?BSTR) HRESULT { return @as(*const ILBEvents.VTable, @ptrCast(self.vtable)).EngineDefined(@as(*const ILBEvents, @ptrCast(self)), bstrPropName, varPropValue, bstrClsidEng); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows5.0' const IID_IComCRMEvents_Value = Guid.initString("683130b5-2e50-11d2-98a5-00c04f8ee1c4"); pub const IID_IComCRMEvents = &IID_IComCRMEvents_Value; pub const IComCRMEvents = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, OnCRMRecoveryStart: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IComCRMEvents, pInfo: ?*COMSVCSEVENTINFO, guidApp: Guid, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IComCRMEvents, pInfo: ?*COMSVCSEVENTINFO, guidApp: Guid, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, OnCRMRecoveryDone: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IComCRMEvents, pInfo: ?*COMSVCSEVENTINFO, guidApp: Guid, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IComCRMEvents, pInfo: ?*COMSVCSEVENTINFO, guidApp: Guid, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, OnCRMCheckpoint: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IComCRMEvents, pInfo: ?*COMSVCSEVENTINFO, guidApp: Guid, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IComCRMEvents, pInfo: ?*COMSVCSEVENTINFO, guidApp: Guid, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, OnCRMBegin: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IComCRMEvents, pInfo: ?*COMSVCSEVENTINFO, guidClerkCLSID: Guid, guidActivity: Guid, guidTx: Guid, szProgIdCompensator: *[64]u16, szDescription: *[64]u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IComCRMEvents, pInfo: ?*COMSVCSEVENTINFO, guidClerkCLSID: Guid, guidActivity: Guid, guidTx: Guid, szProgIdCompensator: *[64]u16, szDescription: *[64]u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, OnCRMPrepare: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IComCRMEvents, pInfo: ?*COMSVCSEVENTINFO, guidClerkCLSID: Guid, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IComCRMEvents, pInfo: ?*COMSVCSEVENTINFO, guidClerkCLSID: Guid, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, OnCRMCommit: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IComCRMEvents, pInfo: ?*COMSVCSEVENTINFO, guidClerkCLSID: Guid, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IComCRMEvents, pInfo: ?*COMSVCSEVENTINFO, guidClerkCLSID: Guid, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, OnCRMAbort: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IComCRMEvents, pInfo: ?*COMSVCSEVENTINFO, guidClerkCLSID: Guid, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IComCRMEvents, pInfo: ?*COMSVCSEVENTINFO, guidClerkCLSID: Guid, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, OnCRMIndoubt: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IComCRMEvents, pInfo: ?*COMSVCSEVENTINFO, guidClerkCLSID: Guid, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IComCRMEvents, pInfo: ?*COMSVCSEVENTINFO, guidClerkCLSID: Guid, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, OnCRMDone: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IComCRMEvents, pInfo: ?*COMSVCSEVENTINFO, guidClerkCLSID: Guid, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IComCRMEvents, pInfo: ?*COMSVCSEVENTINFO, guidClerkCLSID: Guid, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, OnCRMRelease: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IComCRMEvents, pInfo: ?*COMSVCSEVENTINFO, guidClerkCLSID: Guid, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IComCRMEvents, pInfo: ?*COMSVCSEVENTINFO, guidClerkCLSID: Guid, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, OnCRMAnalyze: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IComCRMEvents, pInfo: ?*COMSVCSEVENTINFO, guidClerkCLSID: Guid, dwCrmRecordType: u32, dwRecordSize: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IComCRMEvents, pInfo: ?*COMSVCSEVENTINFO, guidClerkCLSID: Guid, dwCrmRecordType: u32, dwRecordSize: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, OnCRMWrite: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IComCRMEvents, pInfo: ?*COMSVCSEVENTINFO, guidClerkCLSID: Guid, fVariants: BOOL, dwRecordSize: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IComCRMEvents, pInfo: ?*COMSVCSEVENTINFO, guidClerkCLSID: Guid, fVariants: BOOL, dwRecordSize: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, OnCRMForget: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IComCRMEvents, pInfo: ?*COMSVCSEVENTINFO, guidClerkCLSID: Guid, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IComCRMEvents, pInfo: ?*COMSVCSEVENTINFO, guidClerkCLSID: Guid, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, OnCRMForce: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IComCRMEvents, pInfo: ?*COMSVCSEVENTINFO, guidClerkCLSID: Guid, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IComCRMEvents, pInfo: ?*COMSVCSEVENTINFO, guidClerkCLSID: Guid, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, OnCRMDeliver: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IComCRMEvents, pInfo: ?*COMSVCSEVENTINFO, guidClerkCLSID: Guid, fVariants: BOOL, dwRecordSize: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IComCRMEvents, pInfo: ?*COMSVCSEVENTINFO, guidClerkCLSID: Guid, fVariants: BOOL, dwRecordSize: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IComCRMEvents_OnCRMRecoveryStart(self: *const T, pInfo: ?*COMSVCSEVENTINFO, guidApp: Guid) HRESULT { return @as(*const IComCRMEvents.VTable, @ptrCast(self.vtable)).OnCRMRecoveryStart(@as(*const IComCRMEvents, @ptrCast(self)), pInfo, guidApp); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IComCRMEvents_OnCRMRecoveryDone(self: *const T, pInfo: ?*COMSVCSEVENTINFO, guidApp: Guid) HRESULT { return @as(*const IComCRMEvents.VTable, @ptrCast(self.vtable)).OnCRMRecoveryDone(@as(*const IComCRMEvents, @ptrCast(self)), pInfo, guidApp); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IComCRMEvents_OnCRMCheckpoint(self: *const T, pInfo: ?*COMSVCSEVENTINFO, guidApp: Guid) HRESULT { return @as(*const IComCRMEvents.VTable, @ptrCast(self.vtable)).OnCRMCheckpoint(@as(*const IComCRMEvents, @ptrCast(self)), pInfo, guidApp); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IComCRMEvents_OnCRMBegin(self: *const T, pInfo: ?*COMSVCSEVENTINFO, guidClerkCLSID: Guid, guidActivity: Guid, guidTx: Guid, szProgIdCompensator: *[64]u16, szDescription: *[64]u16) HRESULT { return @as(*const IComCRMEvents.VTable, @ptrCast(self.vtable)).OnCRMBegin(@as(*const IComCRMEvents, @ptrCast(self)), pInfo, guidClerkCLSID, guidActivity, guidTx, szProgIdCompensator, szDescription); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IComCRMEvents_OnCRMPrepare(self: *const T, pInfo: ?*COMSVCSEVENTINFO, guidClerkCLSID: Guid) HRESULT { return @as(*const IComCRMEvents.VTable, @ptrCast(self.vtable)).OnCRMPrepare(@as(*const IComCRMEvents, @ptrCast(self)), pInfo, guidClerkCLSID); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IComCRMEvents_OnCRMCommit(self: *const T, pInfo: ?*COMSVCSEVENTINFO, guidClerkCLSID: Guid) HRESULT { return @as(*const IComCRMEvents.VTable, @ptrCast(self.vtable)).OnCRMCommit(@as(*const IComCRMEvents, @ptrCast(self)), pInfo, guidClerkCLSID); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IComCRMEvents_OnCRMAbort(self: *const T, pInfo: ?*COMSVCSEVENTINFO, guidClerkCLSID: Guid) HRESULT { return @as(*const IComCRMEvents.VTable, @ptrCast(self.vtable)).OnCRMAbort(@as(*const IComCRMEvents, @ptrCast(self)), pInfo, guidClerkCLSID); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IComCRMEvents_OnCRMIndoubt(self: *const T, pInfo: ?*COMSVCSEVENTINFO, guidClerkCLSID: Guid) HRESULT { return @as(*const IComCRMEvents.VTable, @ptrCast(self.vtable)).OnCRMIndoubt(@as(*const IComCRMEvents, @ptrCast(self)), pInfo, guidClerkCLSID); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IComCRMEvents_OnCRMDone(self: *const T, pInfo: ?*COMSVCSEVENTINFO, guidClerkCLSID: Guid) HRESULT { return @as(*const IComCRMEvents.VTable, @ptrCast(self.vtable)).OnCRMDone(@as(*const IComCRMEvents, @ptrCast(self)), pInfo, guidClerkCLSID); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IComCRMEvents_OnCRMRelease(self: *const T, pInfo: ?*COMSVCSEVENTINFO, guidClerkCLSID: Guid) HRESULT { return @as(*const IComCRMEvents.VTable, @ptrCast(self.vtable)).OnCRMRelease(@as(*const IComCRMEvents, @ptrCast(self)), pInfo, guidClerkCLSID); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IComCRMEvents_OnCRMAnalyze(self: *const T, pInfo: ?*COMSVCSEVENTINFO, guidClerkCLSID: Guid, dwCrmRecordType: u32, dwRecordSize: u32) HRESULT { return @as(*const IComCRMEvents.VTable, @ptrCast(self.vtable)).OnCRMAnalyze(@as(*const IComCRMEvents, @ptrCast(self)), pInfo, guidClerkCLSID, dwCrmRecordType, dwRecordSize); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IComCRMEvents_OnCRMWrite(self: *const T, pInfo: ?*COMSVCSEVENTINFO, guidClerkCLSID: Guid, fVariants: BOOL, dwRecordSize: u32) HRESULT { return @as(*const IComCRMEvents.VTable, @ptrCast(self.vtable)).OnCRMWrite(@as(*const IComCRMEvents, @ptrCast(self)), pInfo, guidClerkCLSID, fVariants, dwRecordSize); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IComCRMEvents_OnCRMForget(self: *const T, pInfo: ?*COMSVCSEVENTINFO, guidClerkCLSID: Guid) HRESULT { return @as(*const IComCRMEvents.VTable, @ptrCast(self.vtable)).OnCRMForget(@as(*const IComCRMEvents, @ptrCast(self)), pInfo, guidClerkCLSID); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IComCRMEvents_OnCRMForce(self: *const T, pInfo: ?*COMSVCSEVENTINFO, guidClerkCLSID: Guid) HRESULT { return @as(*const IComCRMEvents.VTable, @ptrCast(self.vtable)).OnCRMForce(@as(*const IComCRMEvents, @ptrCast(self)), pInfo, guidClerkCLSID); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IComCRMEvents_OnCRMDeliver(self: *const T, pInfo: ?*COMSVCSEVENTINFO, guidClerkCLSID: Guid, fVariants: BOOL, dwRecordSize: u32) HRESULT { return @as(*const IComCRMEvents.VTable, @ptrCast(self.vtable)).OnCRMDeliver(@as(*const IComCRMEvents, @ptrCast(self)), pInfo, guidClerkCLSID, fVariants, dwRecordSize); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows5.0' const IID_IComMethod2Events_Value = Guid.initString("fb388aaa-567d-4024-af8e-6e93ee748573"); pub const IID_IComMethod2Events = &IID_IComMethod2Events_Value; pub const IComMethod2Events = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, OnMethodCall2: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IComMethod2Events, pInfo: ?*COMSVCSEVENTINFO, oid: u64, guidCid: ?*const Guid, guidRid: ?*const Guid, dwThread: u32, iMeth: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IComMethod2Events, pInfo: ?*COMSVCSEVENTINFO, oid: u64, guidCid: ?*const Guid, guidRid: ?*const Guid, dwThread: u32, iMeth: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, OnMethodReturn2: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IComMethod2Events, pInfo: ?*COMSVCSEVENTINFO, oid: u64, guidCid: ?*const Guid, guidRid: ?*const Guid, dwThread: u32, iMeth: u32, hresult: HRESULT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IComMethod2Events, pInfo: ?*COMSVCSEVENTINFO, oid: u64, guidCid: ?*const Guid, guidRid: ?*const Guid, dwThread: u32, iMeth: u32, hresult: HRESULT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, OnMethodException2: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IComMethod2Events, pInfo: ?*COMSVCSEVENTINFO, oid: u64, guidCid: ?*const Guid, guidRid: ?*const Guid, dwThread: u32, iMeth: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IComMethod2Events, pInfo: ?*COMSVCSEVENTINFO, oid: u64, guidCid: ?*const Guid, guidRid: ?*const Guid, dwThread: u32, iMeth: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IComMethod2Events_OnMethodCall2(self: *const T, pInfo: ?*COMSVCSEVENTINFO, oid: u64, guidCid: ?*const Guid, guidRid: ?*const Guid, dwThread: u32, iMeth: u32) HRESULT { return @as(*const IComMethod2Events.VTable, @ptrCast(self.vtable)).OnMethodCall2(@as(*const IComMethod2Events, @ptrCast(self)), pInfo, oid, guidCid, guidRid, dwThread, iMeth); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IComMethod2Events_OnMethodReturn2(self: *const T, pInfo: ?*COMSVCSEVENTINFO, oid: u64, guidCid: ?*const Guid, guidRid: ?*const Guid, dwThread: u32, iMeth: u32, hresult: HRESULT) HRESULT { return @as(*const IComMethod2Events.VTable, @ptrCast(self.vtable)).OnMethodReturn2(@as(*const IComMethod2Events, @ptrCast(self)), pInfo, oid, guidCid, guidRid, dwThread, iMeth, hresult); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IComMethod2Events_OnMethodException2(self: *const T, pInfo: ?*COMSVCSEVENTINFO, oid: u64, guidCid: ?*const Guid, guidRid: ?*const Guid, dwThread: u32, iMeth: u32) HRESULT { return @as(*const IComMethod2Events.VTable, @ptrCast(self.vtable)).OnMethodException2(@as(*const IComMethod2Events, @ptrCast(self)), pInfo, oid, guidCid, guidRid, dwThread, iMeth); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows5.1.2600' const IID_IComTrackingInfoEvents_Value = Guid.initString("4e6cdcc9-fb25-4fd5-9cc5-c9f4b6559cec"); pub const IID_IComTrackingInfoEvents = &IID_IComTrackingInfoEvents_Value; pub const IComTrackingInfoEvents = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, OnNewTrackingInfo: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IComTrackingInfoEvents, pToplevelCollection: ?*IUnknown, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IComTrackingInfoEvents, pToplevelCollection: ?*IUnknown, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IComTrackingInfoEvents_OnNewTrackingInfo(self: *const T, pToplevelCollection: ?*IUnknown) HRESULT { return @as(*const IComTrackingInfoEvents.VTable, @ptrCast(self.vtable)).OnNewTrackingInfo(@as(*const IComTrackingInfoEvents, @ptrCast(self)), pToplevelCollection); } }; } pub usingnamespace MethodMixin(@This()); }; pub const TRACKING_COLL_TYPE = enum(i32) { PROCESSES = 0, APPLICATIONS = 1, COMPONENTS = 2, }; pub const TRKCOLL_PROCESSES = TRACKING_COLL_TYPE.PROCESSES; pub const TRKCOLL_APPLICATIONS = TRACKING_COLL_TYPE.APPLICATIONS; pub const TRKCOLL_COMPONENTS = TRACKING_COLL_TYPE.COMPONENTS; // TODO: this type is limited to platform 'windows5.1.2600' const IID_IComTrackingInfoCollection_Value = Guid.initString("c266c677-c9ad-49ab-9fd9-d9661078588a"); pub const IID_IComTrackingInfoCollection = &IID_IComTrackingInfoCollection_Value; pub const IComTrackingInfoCollection = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, Type: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IComTrackingInfoCollection, pType: ?*TRACKING_COLL_TYPE, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IComTrackingInfoCollection, pType: ?*TRACKING_COLL_TYPE, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Count: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IComTrackingInfoCollection, pCount: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IComTrackingInfoCollection, pCount: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Item: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IComTrackingInfoCollection, ulIndex: u32, riid: ?*const Guid, ppv: ?*?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IComTrackingInfoCollection, ulIndex: u32, riid: ?*const Guid, ppv: ?*?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IComTrackingInfoCollection_Type(self: *const T, pType: ?*TRACKING_COLL_TYPE) HRESULT { return @as(*const IComTrackingInfoCollection.VTable, @ptrCast(self.vtable)).Type(@as(*const IComTrackingInfoCollection, @ptrCast(self)), pType); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IComTrackingInfoCollection_Count(self: *const T, pCount: ?*u32) HRESULT { return @as(*const IComTrackingInfoCollection.VTable, @ptrCast(self.vtable)).Count(@as(*const IComTrackingInfoCollection, @ptrCast(self)), pCount); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IComTrackingInfoCollection_Item(self: *const T, ulIndex: u32, riid: ?*const Guid, ppv: ?*?*anyopaque) HRESULT { return @as(*const IComTrackingInfoCollection.VTable, @ptrCast(self.vtable)).Item(@as(*const IComTrackingInfoCollection, @ptrCast(self)), ulIndex, riid, ppv); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows5.1.2600' const IID_IComTrackingInfoObject_Value = Guid.initString("116e42c5-d8b1-47bf-ab1e-c895ed3e2372"); pub const IID_IComTrackingInfoObject = &IID_IComTrackingInfoObject_Value; pub const IComTrackingInfoObject = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, GetValue: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IComTrackingInfoObject, szPropertyName: ?PWSTR, pvarOut: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IComTrackingInfoObject, szPropertyName: ?PWSTR, pvarOut: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IComTrackingInfoObject_GetValue(self: *const T, szPropertyName: ?PWSTR, pvarOut: ?*VARIANT) HRESULT { return @as(*const IComTrackingInfoObject.VTable, @ptrCast(self.vtable)).GetValue(@as(*const IComTrackingInfoObject, @ptrCast(self)), szPropertyName, pvarOut); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows5.1.2600' const IID_IComTrackingInfoProperties_Value = Guid.initString("789b42be-6f6b-443a-898e-67abf390aa14"); pub const IID_IComTrackingInfoProperties = &IID_IComTrackingInfoProperties_Value; pub const IComTrackingInfoProperties = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, PropCount: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IComTrackingInfoProperties, pCount: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IComTrackingInfoProperties, pCount: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetPropName: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IComTrackingInfoProperties, ulIndex: u32, ppszPropName: ?*?PWSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IComTrackingInfoProperties, ulIndex: u32, ppszPropName: ?*?PWSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IComTrackingInfoProperties_PropCount(self: *const T, pCount: ?*u32) HRESULT { return @as(*const IComTrackingInfoProperties.VTable, @ptrCast(self.vtable)).PropCount(@as(*const IComTrackingInfoProperties, @ptrCast(self)), pCount); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IComTrackingInfoProperties_GetPropName(self: *const T, ulIndex: u32, ppszPropName: ?*?PWSTR) HRESULT { return @as(*const IComTrackingInfoProperties.VTable, @ptrCast(self.vtable)).GetPropName(@as(*const IComTrackingInfoProperties, @ptrCast(self)), ulIndex, ppszPropName); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows5.1.2600' const IID_IComApp2Events_Value = Guid.initString("1290bc1a-b219-418d-b078-5934ded08242"); pub const IID_IComApp2Events = &IID_IComApp2Events_Value; pub const IComApp2Events = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, OnAppActivation2: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IComApp2Events, pInfo: ?*COMSVCSEVENTINFO, guidApp: Guid, guidProcess: Guid, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IComApp2Events, pInfo: ?*COMSVCSEVENTINFO, guidApp: Guid, guidProcess: Guid, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, OnAppShutdown2: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IComApp2Events, pInfo: ?*COMSVCSEVENTINFO, guidApp: Guid, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IComApp2Events, pInfo: ?*COMSVCSEVENTINFO, guidApp: Guid, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, OnAppForceShutdown2: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IComApp2Events, pInfo: ?*COMSVCSEVENTINFO, guidApp: Guid, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IComApp2Events, pInfo: ?*COMSVCSEVENTINFO, guidApp: Guid, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, OnAppPaused2: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IComApp2Events, pInfo: ?*COMSVCSEVENTINFO, guidApp: Guid, bPaused: BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IComApp2Events, pInfo: ?*COMSVCSEVENTINFO, guidApp: Guid, bPaused: BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, OnAppRecycle2: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IComApp2Events, pInfo: ?*COMSVCSEVENTINFO, guidApp: Guid, guidProcess: Guid, lReason: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IComApp2Events, pInfo: ?*COMSVCSEVENTINFO, guidApp: Guid, guidProcess: Guid, lReason: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IComApp2Events_OnAppActivation2(self: *const T, pInfo: ?*COMSVCSEVENTINFO, guidApp: Guid, guidProcess: Guid) HRESULT { return @as(*const IComApp2Events.VTable, @ptrCast(self.vtable)).OnAppActivation2(@as(*const IComApp2Events, @ptrCast(self)), pInfo, guidApp, guidProcess); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IComApp2Events_OnAppShutdown2(self: *const T, pInfo: ?*COMSVCSEVENTINFO, guidApp: Guid) HRESULT { return @as(*const IComApp2Events.VTable, @ptrCast(self.vtable)).OnAppShutdown2(@as(*const IComApp2Events, @ptrCast(self)), pInfo, guidApp); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IComApp2Events_OnAppForceShutdown2(self: *const T, pInfo: ?*COMSVCSEVENTINFO, guidApp: Guid) HRESULT { return @as(*const IComApp2Events.VTable, @ptrCast(self.vtable)).OnAppForceShutdown2(@as(*const IComApp2Events, @ptrCast(self)), pInfo, guidApp); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IComApp2Events_OnAppPaused2(self: *const T, pInfo: ?*COMSVCSEVENTINFO, guidApp: Guid, bPaused: BOOL) HRESULT { return @as(*const IComApp2Events.VTable, @ptrCast(self.vtable)).OnAppPaused2(@as(*const IComApp2Events, @ptrCast(self)), pInfo, guidApp, bPaused); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IComApp2Events_OnAppRecycle2(self: *const T, pInfo: ?*COMSVCSEVENTINFO, guidApp: Guid, guidProcess: Guid, lReason: i32) HRESULT { return @as(*const IComApp2Events.VTable, @ptrCast(self.vtable)).OnAppRecycle2(@as(*const IComApp2Events, @ptrCast(self)), pInfo, guidApp, guidProcess, lReason); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows5.0' const IID_IComTransaction2Events_Value = Guid.initString("a136f62a-2f94-4288-86e0-d8a1fa4c0299"); pub const IID_IComTransaction2Events = &IID_IComTransaction2Events_Value; pub const IComTransaction2Events = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, OnTransactionStart2: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IComTransaction2Events, pInfo: ?*COMSVCSEVENTINFO, guidTx: ?*const Guid, tsid: ?*const Guid, fRoot: BOOL, nIsolationLevel: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IComTransaction2Events, pInfo: ?*COMSVCSEVENTINFO, guidTx: ?*const Guid, tsid: ?*const Guid, fRoot: BOOL, nIsolationLevel: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, OnTransactionPrepare2: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IComTransaction2Events, pInfo: ?*COMSVCSEVENTINFO, guidTx: ?*const Guid, fVoteYes: BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IComTransaction2Events, pInfo: ?*COMSVCSEVENTINFO, guidTx: ?*const Guid, fVoteYes: BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, OnTransactionAbort2: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IComTransaction2Events, pInfo: ?*COMSVCSEVENTINFO, guidTx: ?*const Guid, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IComTransaction2Events, pInfo: ?*COMSVCSEVENTINFO, guidTx: ?*const Guid, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, OnTransactionCommit2: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IComTransaction2Events, pInfo: ?*COMSVCSEVENTINFO, guidTx: ?*const Guid, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IComTransaction2Events, pInfo: ?*COMSVCSEVENTINFO, guidTx: ?*const Guid, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IComTransaction2Events_OnTransactionStart2(self: *const T, pInfo: ?*COMSVCSEVENTINFO, guidTx: ?*const Guid, tsid: ?*const Guid, fRoot: BOOL, nIsolationLevel: i32) HRESULT { return @as(*const IComTransaction2Events.VTable, @ptrCast(self.vtable)).OnTransactionStart2(@as(*const IComTransaction2Events, @ptrCast(self)), pInfo, guidTx, tsid, fRoot, nIsolationLevel); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IComTransaction2Events_OnTransactionPrepare2(self: *const T, pInfo: ?*COMSVCSEVENTINFO, guidTx: ?*const Guid, fVoteYes: BOOL) HRESULT { return @as(*const IComTransaction2Events.VTable, @ptrCast(self.vtable)).OnTransactionPrepare2(@as(*const IComTransaction2Events, @ptrCast(self)), pInfo, guidTx, fVoteYes); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IComTransaction2Events_OnTransactionAbort2(self: *const T, pInfo: ?*COMSVCSEVENTINFO, guidTx: ?*const Guid) HRESULT { return @as(*const IComTransaction2Events.VTable, @ptrCast(self.vtable)).OnTransactionAbort2(@as(*const IComTransaction2Events, @ptrCast(self)), pInfo, guidTx); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IComTransaction2Events_OnTransactionCommit2(self: *const T, pInfo: ?*COMSVCSEVENTINFO, guidTx: ?*const Guid) HRESULT { return @as(*const IComTransaction2Events.VTable, @ptrCast(self.vtable)).OnTransactionCommit2(@as(*const IComTransaction2Events, @ptrCast(self)), pInfo, guidTx); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows5.0' const IID_IComInstance2Events_Value = Guid.initString("20e3bf07-b506-4ad5-a50c-d2ca5b9c158e"); pub const IID_IComInstance2Events = &IID_IComInstance2Events_Value; pub const IComInstance2Events = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, OnObjectCreate2: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IComInstance2Events, pInfo: ?*COMSVCSEVENTINFO, guidActivity: ?*const Guid, clsid: ?*const Guid, tsid: ?*const Guid, CtxtID: u64, ObjectID: u64, guidPartition: ?*const Guid, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IComInstance2Events, pInfo: ?*COMSVCSEVENTINFO, guidActivity: ?*const Guid, clsid: ?*const Guid, tsid: ?*const Guid, CtxtID: u64, ObjectID: u64, guidPartition: ?*const Guid, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, OnObjectDestroy2: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IComInstance2Events, pInfo: ?*COMSVCSEVENTINFO, CtxtID: u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IComInstance2Events, pInfo: ?*COMSVCSEVENTINFO, CtxtID: u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IComInstance2Events_OnObjectCreate2(self: *const T, pInfo: ?*COMSVCSEVENTINFO, guidActivity: ?*const Guid, clsid: ?*const Guid, tsid: ?*const Guid, CtxtID: u64, ObjectID: u64, guidPartition: ?*const Guid) HRESULT { return @as(*const IComInstance2Events.VTable, @ptrCast(self.vtable)).OnObjectCreate2(@as(*const IComInstance2Events, @ptrCast(self)), pInfo, guidActivity, clsid, tsid, CtxtID, ObjectID, guidPartition); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IComInstance2Events_OnObjectDestroy2(self: *const T, pInfo: ?*COMSVCSEVENTINFO, CtxtID: u64) HRESULT { return @as(*const IComInstance2Events.VTable, @ptrCast(self.vtable)).OnObjectDestroy2(@as(*const IComInstance2Events, @ptrCast(self)), pInfo, CtxtID); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows5.0' const IID_IComObjectPool2Events_Value = Guid.initString("65bf6534-85ea-4f64-8cf4-3d974b2ab1cf"); pub const IID_IComObjectPool2Events = &IID_IComObjectPool2Events_Value; pub const IComObjectPool2Events = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, OnObjPoolPutObject2: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IComObjectPool2Events, pInfo: ?*COMSVCSEVENTINFO, guidObject: ?*const Guid, nReason: i32, dwAvailable: u32, oid: u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IComObjectPool2Events, pInfo: ?*COMSVCSEVENTINFO, guidObject: ?*const Guid, nReason: i32, dwAvailable: u32, oid: u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, OnObjPoolGetObject2: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IComObjectPool2Events, pInfo: ?*COMSVCSEVENTINFO, guidActivity: ?*const Guid, guidObject: ?*const Guid, dwAvailable: u32, oid: u64, guidPartition: ?*const Guid, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IComObjectPool2Events, pInfo: ?*COMSVCSEVENTINFO, guidActivity: ?*const Guid, guidObject: ?*const Guid, dwAvailable: u32, oid: u64, guidPartition: ?*const Guid, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, OnObjPoolRecycleToTx2: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IComObjectPool2Events, pInfo: ?*COMSVCSEVENTINFO, guidActivity: ?*const Guid, guidObject: ?*const Guid, guidTx: ?*const Guid, objid: u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IComObjectPool2Events, pInfo: ?*COMSVCSEVENTINFO, guidActivity: ?*const Guid, guidObject: ?*const Guid, guidTx: ?*const Guid, objid: u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, OnObjPoolGetFromTx2: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IComObjectPool2Events, pInfo: ?*COMSVCSEVENTINFO, guidActivity: ?*const Guid, guidObject: ?*const Guid, guidTx: ?*const Guid, objid: u64, guidPartition: ?*const Guid, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IComObjectPool2Events, pInfo: ?*COMSVCSEVENTINFO, guidActivity: ?*const Guid, guidObject: ?*const Guid, guidTx: ?*const Guid, objid: u64, guidPartition: ?*const Guid, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IComObjectPool2Events_OnObjPoolPutObject2(self: *const T, pInfo: ?*COMSVCSEVENTINFO, guidObject: ?*const Guid, nReason: i32, dwAvailable: u32, oid: u64) HRESULT { return @as(*const IComObjectPool2Events.VTable, @ptrCast(self.vtable)).OnObjPoolPutObject2(@as(*const IComObjectPool2Events, @ptrCast(self)), pInfo, guidObject, nReason, dwAvailable, oid); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IComObjectPool2Events_OnObjPoolGetObject2(self: *const T, pInfo: ?*COMSVCSEVENTINFO, guidActivity: ?*const Guid, guidObject: ?*const Guid, dwAvailable: u32, oid: u64, guidPartition: ?*const Guid) HRESULT { return @as(*const IComObjectPool2Events.VTable, @ptrCast(self.vtable)).OnObjPoolGetObject2(@as(*const IComObjectPool2Events, @ptrCast(self)), pInfo, guidActivity, guidObject, dwAvailable, oid, guidPartition); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IComObjectPool2Events_OnObjPoolRecycleToTx2(self: *const T, pInfo: ?*COMSVCSEVENTINFO, guidActivity: ?*const Guid, guidObject: ?*const Guid, guidTx: ?*const Guid, objid: u64) HRESULT { return @as(*const IComObjectPool2Events.VTable, @ptrCast(self.vtable)).OnObjPoolRecycleToTx2(@as(*const IComObjectPool2Events, @ptrCast(self)), pInfo, guidActivity, guidObject, guidTx, objid); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IComObjectPool2Events_OnObjPoolGetFromTx2(self: *const T, pInfo: ?*COMSVCSEVENTINFO, guidActivity: ?*const Guid, guidObject: ?*const Guid, guidTx: ?*const Guid, objid: u64, guidPartition: ?*const Guid) HRESULT { return @as(*const IComObjectPool2Events.VTable, @ptrCast(self.vtable)).OnObjPoolGetFromTx2(@as(*const IComObjectPool2Events, @ptrCast(self)), pInfo, guidActivity, guidObject, guidTx, objid, guidPartition); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows5.0' const IID_IComObjectConstruction2Events_Value = Guid.initString("4b5a7827-8df2-45c0-8f6f-57ea1f856a9f"); pub const IID_IComObjectConstruction2Events = &IID_IComObjectConstruction2Events_Value; pub const IComObjectConstruction2Events = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, OnObjectConstruct2: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IComObjectConstruction2Events, pInfo: ?*COMSVCSEVENTINFO, guidObject: ?*const Guid, sConstructString: ?[*:0]const u16, oid: u64, guidPartition: ?*const Guid, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IComObjectConstruction2Events, pInfo: ?*COMSVCSEVENTINFO, guidObject: ?*const Guid, sConstructString: ?[*:0]const u16, oid: u64, guidPartition: ?*const Guid, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IComObjectConstruction2Events_OnObjectConstruct2(self: *const T, pInfo: ?*COMSVCSEVENTINFO, guidObject: ?*const Guid, sConstructString: ?[*:0]const u16, oid: u64, guidPartition: ?*const Guid) HRESULT { return @as(*const IComObjectConstruction2Events.VTable, @ptrCast(self.vtable)).OnObjectConstruct2(@as(*const IComObjectConstruction2Events, @ptrCast(self)), pInfo, guidObject, sConstructString, oid, guidPartition); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows5.0' const IID_ISystemAppEventData_Value = Guid.initString("d6d48a3c-d5c5-49e7-8c74-99e4889ed52f"); pub const IID_ISystemAppEventData = &IID_ISystemAppEventData_Value; pub const ISystemAppEventData = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, Startup: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ISystemAppEventData, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ISystemAppEventData, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, OnDataChanged: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ISystemAppEventData, dwPID: u32, dwMask: u32, dwNumberSinks: u32, bstrDwMethodMask: ?BSTR, dwReason: u32, u64TraceHandle: u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ISystemAppEventData, dwPID: u32, dwMask: u32, dwNumberSinks: u32, bstrDwMethodMask: ?BSTR, dwReason: u32, u64TraceHandle: u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISystemAppEventData_Startup(self: *const T) HRESULT { return @as(*const ISystemAppEventData.VTable, @ptrCast(self.vtable)).Startup(@as(*const ISystemAppEventData, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISystemAppEventData_OnDataChanged(self: *const T, dwPID: u32, dwMask: u32, dwNumberSinks: u32, bstrDwMethodMask: ?BSTR, dwReason: u32, u64TraceHandle: u64) HRESULT { return @as(*const ISystemAppEventData.VTable, @ptrCast(self.vtable)).OnDataChanged(@as(*const ISystemAppEventData, @ptrCast(self)), dwPID, dwMask, dwNumberSinks, bstrDwMethodMask, dwReason, u64TraceHandle); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows5.0' const IID_IMtsEvents_Value = Guid.initString("bacedf4d-74ab-11d0-b162-00aa00ba3258"); pub const IID_IMtsEvents = &IID_IMtsEvents_Value; pub const IMtsEvents = extern struct { pub const VTable = extern struct { base: IDispatch.VTable, // TODO: this function has a "SpecialName", should Zig do anything with this? get_PackageName: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMtsEvents, pVal: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMtsEvents, pVal: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_PackageGuid: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMtsEvents, pVal: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMtsEvents, pVal: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, PostEvent: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IMtsEvents, vEvent: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IMtsEvents, vEvent: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_FireEvents: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMtsEvents, pVal: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMtsEvents, pVal: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetProcessID: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IMtsEvents, id: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IMtsEvents, id: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IDispatch.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMtsEvents_get_PackageName(self: *const T, pVal: ?*?BSTR) HRESULT { return @as(*const IMtsEvents.VTable, @ptrCast(self.vtable)).get_PackageName(@as(*const IMtsEvents, @ptrCast(self)), pVal); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMtsEvents_get_PackageGuid(self: *const T, pVal: ?*?BSTR) HRESULT { return @as(*const IMtsEvents.VTable, @ptrCast(self.vtable)).get_PackageGuid(@as(*const IMtsEvents, @ptrCast(self)), pVal); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMtsEvents_PostEvent(self: *const T, vEvent: ?*VARIANT) HRESULT { return @as(*const IMtsEvents.VTable, @ptrCast(self.vtable)).PostEvent(@as(*const IMtsEvents, @ptrCast(self)), vEvent); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMtsEvents_get_FireEvents(self: *const T, pVal: ?*i16) HRESULT { return @as(*const IMtsEvents.VTable, @ptrCast(self.vtable)).get_FireEvents(@as(*const IMtsEvents, @ptrCast(self)), pVal); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMtsEvents_GetProcessID(self: *const T, id: ?*i32) HRESULT { return @as(*const IMtsEvents.VTable, @ptrCast(self.vtable)).GetProcessID(@as(*const IMtsEvents, @ptrCast(self)), id); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows5.0' const IID_IMtsEventInfo_Value = Guid.initString("d56c3dc1-8482-11d0-b170-00aa00ba3258"); pub const IID_IMtsEventInfo = &IID_IMtsEventInfo_Value; pub const IMtsEventInfo = extern struct { pub const VTable = extern struct { base: IDispatch.VTable, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Names: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMtsEventInfo, pUnk: ?*?*IUnknown, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMtsEventInfo, pUnk: ?*?*IUnknown, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_DisplayName: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMtsEventInfo, sDisplayName: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMtsEventInfo, sDisplayName: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_EventID: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMtsEventInfo, sGuidEventID: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMtsEventInfo, sGuidEventID: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Count: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMtsEventInfo, lCount: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMtsEventInfo, lCount: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Value: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMtsEventInfo, sKey: ?BSTR, pVal: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMtsEventInfo, sKey: ?BSTR, pVal: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IDispatch.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMtsEventInfo_get_Names(self: *const T, pUnk: ?*?*IUnknown) HRESULT { return @as(*const IMtsEventInfo.VTable, @ptrCast(self.vtable)).get_Names(@as(*const IMtsEventInfo, @ptrCast(self)), pUnk); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMtsEventInfo_get_DisplayName(self: *const T, sDisplayName: ?*?BSTR) HRESULT { return @as(*const IMtsEventInfo.VTable, @ptrCast(self.vtable)).get_DisplayName(@as(*const IMtsEventInfo, @ptrCast(self)), sDisplayName); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMtsEventInfo_get_EventID(self: *const T, sGuidEventID: ?*?BSTR) HRESULT { return @as(*const IMtsEventInfo.VTable, @ptrCast(self.vtable)).get_EventID(@as(*const IMtsEventInfo, @ptrCast(self)), sGuidEventID); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMtsEventInfo_get_Count(self: *const T, lCount: ?*i32) HRESULT { return @as(*const IMtsEventInfo.VTable, @ptrCast(self.vtable)).get_Count(@as(*const IMtsEventInfo, @ptrCast(self)), lCount); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMtsEventInfo_get_Value(self: *const T, sKey: ?BSTR, pVal: ?*VARIANT) HRESULT { return @as(*const IMtsEventInfo.VTable, @ptrCast(self.vtable)).get_Value(@as(*const IMtsEventInfo, @ptrCast(self)), sKey, pVal); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows5.0' const IID_IMTSLocator_Value = Guid.initString("d19b8bfd-7f88-11d0-b16e-00aa00ba3258"); pub const IID_IMTSLocator = &IID_IMTSLocator_Value; pub const IMTSLocator = extern struct { pub const VTable = extern struct { base: IDispatch.VTable, GetEventDispatcher: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IMTSLocator, pUnk: ?*?*IUnknown, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IMTSLocator, pUnk: ?*?*IUnknown, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IDispatch.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMTSLocator_GetEventDispatcher(self: *const T, pUnk: ?*?*IUnknown) HRESULT { return @as(*const IMTSLocator.VTable, @ptrCast(self.vtable)).GetEventDispatcher(@as(*const IMTSLocator, @ptrCast(self)), pUnk); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows5.0' const IID_IMtsGrp_Value = Guid.initString("4b2e958c-0393-11d1-b1ab-00aa00ba3258"); pub const IID_IMtsGrp = &IID_IMtsGrp_Value; pub const IMtsGrp = extern struct { pub const VTable = extern struct { base: IDispatch.VTable, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Count: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMtsGrp, pVal: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMtsGrp, pVal: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Item: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IMtsGrp, lIndex: i32, ppUnkDispatcher: ?*?*IUnknown, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IMtsGrp, lIndex: i32, ppUnkDispatcher: ?*?*IUnknown, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Refresh: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IMtsGrp, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IMtsGrp, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IDispatch.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMtsGrp_get_Count(self: *const T, pVal: ?*i32) HRESULT { return @as(*const IMtsGrp.VTable, @ptrCast(self.vtable)).get_Count(@as(*const IMtsGrp, @ptrCast(self)), pVal); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMtsGrp_Item(self: *const T, lIndex: i32, ppUnkDispatcher: ?*?*IUnknown) HRESULT { return @as(*const IMtsGrp.VTable, @ptrCast(self.vtable)).Item(@as(*const IMtsGrp, @ptrCast(self)), lIndex, ppUnkDispatcher); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMtsGrp_Refresh(self: *const T) HRESULT { return @as(*const IMtsGrp.VTable, @ptrCast(self.vtable)).Refresh(@as(*const IMtsGrp, @ptrCast(self))); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows5.0' const IID_IMessageMover_Value = Guid.initString("588a085a-b795-11d1-8054-00c04fc340ee"); pub const IID_IMessageMover = &IID_IMessageMover_Value; pub const IMessageMover = extern struct { pub const VTable = extern struct { base: IDispatch.VTable, // TODO: this function has a "SpecialName", should Zig do anything with this? get_SourcePath: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMessageMover, pVal: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMessageMover, pVal: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_SourcePath: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMessageMover, newVal: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMessageMover, newVal: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_DestPath: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMessageMover, pVal: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMessageMover, pVal: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_DestPath: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMessageMover, newVal: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMessageMover, newVal: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_CommitBatchSize: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMessageMover, pVal: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMessageMover, pVal: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_CommitBatchSize: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMessageMover, newVal: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMessageMover, newVal: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, MoveMessages: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IMessageMover, plMessagesMoved: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IMessageMover, plMessagesMoved: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IDispatch.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMessageMover_get_SourcePath(self: *const T, pVal: ?*?BSTR) HRESULT { return @as(*const IMessageMover.VTable, @ptrCast(self.vtable)).get_SourcePath(@as(*const IMessageMover, @ptrCast(self)), pVal); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMessageMover_put_SourcePath(self: *const T, newVal: ?BSTR) HRESULT { return @as(*const IMessageMover.VTable, @ptrCast(self.vtable)).put_SourcePath(@as(*const IMessageMover, @ptrCast(self)), newVal); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMessageMover_get_DestPath(self: *const T, pVal: ?*?BSTR) HRESULT { return @as(*const IMessageMover.VTable, @ptrCast(self.vtable)).get_DestPath(@as(*const IMessageMover, @ptrCast(self)), pVal); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMessageMover_put_DestPath(self: *const T, newVal: ?BSTR) HRESULT { return @as(*const IMessageMover.VTable, @ptrCast(self.vtable)).put_DestPath(@as(*const IMessageMover, @ptrCast(self)), newVal); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMessageMover_get_CommitBatchSize(self: *const T, pVal: ?*i32) HRESULT { return @as(*const IMessageMover.VTable, @ptrCast(self.vtable)).get_CommitBatchSize(@as(*const IMessageMover, @ptrCast(self)), pVal); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMessageMover_put_CommitBatchSize(self: *const T, newVal: i32) HRESULT { return @as(*const IMessageMover.VTable, @ptrCast(self.vtable)).put_CommitBatchSize(@as(*const IMessageMover, @ptrCast(self)), newVal); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMessageMover_MoveMessages(self: *const T, plMessagesMoved: ?*i32) HRESULT { return @as(*const IMessageMover.VTable, @ptrCast(self.vtable)).MoveMessages(@as(*const IMessageMover, @ptrCast(self)), plMessagesMoved); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IEventServerTrace_Value = Guid.initString("9a9f12b8-80af-47ab-a579-35ea57725370"); pub const IID_IEventServerTrace = &IID_IEventServerTrace_Value; pub const IEventServerTrace = extern struct { pub const VTable = extern struct { base: IDispatch.VTable, StartTraceGuid: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IEventServerTrace, bstrguidEvent: ?BSTR, bstrguidFilter: ?BSTR, lPidFilter: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IEventServerTrace, bstrguidEvent: ?BSTR, bstrguidFilter: ?BSTR, lPidFilter: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, StopTraceGuid: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IEventServerTrace, bstrguidEvent: ?BSTR, bstrguidFilter: ?BSTR, lPidFilter: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IEventServerTrace, bstrguidEvent: ?BSTR, bstrguidFilter: ?BSTR, lPidFilter: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, EnumTraceGuid: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IEventServerTrace, plCntGuids: ?*i32, pbstrGuidList: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IEventServerTrace, plCntGuids: ?*i32, pbstrGuidList: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IDispatch.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IEventServerTrace_StartTraceGuid(self: *const T, bstrguidEvent: ?BSTR, bstrguidFilter: ?BSTR, lPidFilter: i32) HRESULT { return @as(*const IEventServerTrace.VTable, @ptrCast(self.vtable)).StartTraceGuid(@as(*const IEventServerTrace, @ptrCast(self)), bstrguidEvent, bstrguidFilter, lPidFilter); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IEventServerTrace_StopTraceGuid(self: *const T, bstrguidEvent: ?BSTR, bstrguidFilter: ?BSTR, lPidFilter: i32) HRESULT { return @as(*const IEventServerTrace.VTable, @ptrCast(self.vtable)).StopTraceGuid(@as(*const IEventServerTrace, @ptrCast(self)), bstrguidEvent, bstrguidFilter, lPidFilter); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IEventServerTrace_EnumTraceGuid(self: *const T, plCntGuids: ?*i32, pbstrGuidList: ?*?BSTR) HRESULT { return @as(*const IEventServerTrace.VTable, @ptrCast(self.vtable)).EnumTraceGuid(@as(*const IEventServerTrace, @ptrCast(self)), plCntGuids, pbstrGuidList); } }; } pub usingnamespace MethodMixin(@This()); }; pub const RECYCLE_INFO = extern struct { guidCombaseProcessIdentifier: Guid, ProcessStartTime: i64, dwRecycleLifetimeLimit: u32, dwRecycleMemoryLimit: u32, dwRecycleExpirationTimeout: u32, }; pub const DUMPTYPE = enum(i32) { FULL = 0, MINI = 1, NONE = 2, }; pub const DUMPTYPE_FULL = DUMPTYPE.FULL; pub const DUMPTYPE_MINI = DUMPTYPE.MINI; pub const DUMPTYPE_NONE = DUMPTYPE.NONE; pub const HANG_INFO = extern struct { fAppHangMonitorEnabled: BOOL, fTerminateOnHang: BOOL, DumpType: DUMPTYPE, dwHangTimeout: u32, dwDumpCount: u32, dwInfoMsgCount: u32, }; pub const COMPLUS_APPTYPE = enum(i32) { UNKNOWN = -1, SERVER = 1, LIBRARY = 0, SWC = 2, }; pub const APPTYPE_UNKNOWN = COMPLUS_APPTYPE.UNKNOWN; pub const APPTYPE_SERVER = COMPLUS_APPTYPE.SERVER; pub const APPTYPE_LIBRARY = COMPLUS_APPTYPE.LIBRARY; pub const APPTYPE_SWC = COMPLUS_APPTYPE.SWC; pub const CAppStatistics = extern struct { m_cTotalCalls: u32, m_cTotalInstances: u32, m_cTotalClasses: u32, m_cCallsPerSecond: u32, }; pub const CAppData = extern struct { m_idApp: u32, m_szAppGuid: [40]u16, m_dwAppProcessId: u32, m_AppStatistics: CAppStatistics, }; pub const CCLSIDData = extern struct { m_clsid: Guid, m_cReferences: u32, m_cBound: u32, m_cPooled: u32, m_cInCall: u32, m_dwRespTime: u32, m_cCallsCompleted: u32, m_cCallsFailed: u32, }; pub const CCLSIDData2 = extern struct { m_clsid: Guid, m_appid: Guid, m_partid: Guid, m_pwszAppName: ?PWSTR, m_pwszCtxName: ?PWSTR, m_eAppType: COMPLUS_APPTYPE, m_cReferences: u32, m_cBound: u32, m_cPooled: u32, m_cInCall: u32, m_dwRespTime: u32, m_cCallsCompleted: u32, m_cCallsFailed: u32, }; pub const GetAppTrackerDataFlags = enum(i32) { PROCESS_EXE_NAME = 1, LIBRARY_APPS = 2, SWC = 4, CLASS_NAME = 8, APPLICATION_NAME = 16, }; pub const GATD_INCLUDE_PROCESS_EXE_NAME = GetAppTrackerDataFlags.PROCESS_EXE_NAME; pub const GATD_INCLUDE_LIBRARY_APPS = GetAppTrackerDataFlags.LIBRARY_APPS; pub const GATD_INCLUDE_SWC = GetAppTrackerDataFlags.SWC; pub const GATD_INCLUDE_CLASS_NAME = GetAppTrackerDataFlags.CLASS_NAME; pub const GATD_INCLUDE_APPLICATION_NAME = GetAppTrackerDataFlags.APPLICATION_NAME; pub const ApplicationProcessSummary = extern struct { PartitionIdPrimaryApplication: Guid, ApplicationIdPrimaryApplication: Guid, ApplicationInstanceId: Guid, ProcessId: u32, Type: COMPLUS_APPTYPE, ProcessExeName: ?PWSTR, IsService: BOOL, IsPaused: BOOL, IsRecycled: BOOL, }; pub const ApplicationProcessStatistics = extern struct { NumCallsOutstanding: u32, NumTrackedComponents: u32, NumComponentInstances: u32, AvgCallsPerSecond: u32, Reserved1: u32, Reserved2: u32, Reserved3: u32, Reserved4: u32, }; pub const ApplicationProcessRecycleInfo = extern struct { IsRecyclable: BOOL, IsRecycled: BOOL, TimeRecycled: FILETIME, TimeToTerminate: FILETIME, RecycleReasonCode: i32, IsPendingRecycle: BOOL, HasAutomaticLifetimeRecycling: BOOL, TimeForAutomaticRecycling: FILETIME, MemoryLimitInKB: u32, MemoryUsageInKBLastCheck: u32, ActivationLimit: u32, NumActivationsLastReported: u32, CallLimit: u32, NumCallsLastReported: u32, }; pub const ApplicationSummary = extern struct { ApplicationInstanceId: Guid, PartitionId: Guid, ApplicationId: Guid, Type: COMPLUS_APPTYPE, ApplicationName: ?PWSTR, NumTrackedComponents: u32, NumComponentInstances: u32, }; pub const ComponentSummary = extern struct { ApplicationInstanceId: Guid, PartitionId: Guid, ApplicationId: Guid, Clsid: Guid, ClassName: ?PWSTR, ApplicationName: ?PWSTR, }; pub const ComponentStatistics = extern struct { NumInstances: u32, NumBoundReferences: u32, NumPooledObjects: u32, NumObjectsInCall: u32, AvgResponseTimeInMs: u32, NumCallsCompletedRecent: u32, NumCallsFailedRecent: u32, NumCallsCompletedTotal: u32, NumCallsFailedTotal: u32, Reserved1: u32, Reserved2: u32, Reserved3: u32, Reserved4: u32, }; pub const ComponentHangMonitorInfo = extern struct { IsMonitored: BOOL, TerminateOnHang: BOOL, AvgCallThresholdInMs: u32, }; // TODO: this type is limited to platform 'windows5.1.2600' const IID_IGetAppTrackerData_Value = Guid.initString("507c3ac8-3e12-4cb0-9366-653d3e050638"); pub const IID_IGetAppTrackerData = &IID_IGetAppTrackerData_Value; pub const IGetAppTrackerData = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, GetApplicationProcesses: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IGetAppTrackerData, PartitionId: ?*const Guid, ApplicationId: ?*const Guid, Flags: u32, NumApplicationProcesses: ?*u32, ApplicationProcesses: ?[*]?*ApplicationProcessSummary, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IGetAppTrackerData, PartitionId: ?*const Guid, ApplicationId: ?*const Guid, Flags: u32, NumApplicationProcesses: ?*u32, ApplicationProcesses: ?[*]?*ApplicationProcessSummary, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetApplicationProcessDetails: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IGetAppTrackerData, ApplicationInstanceId: ?*const Guid, ProcessId: u32, Flags: u32, Summary: ?*ApplicationProcessSummary, Statistics: ?*ApplicationProcessStatistics, RecycleInfo: ?*ApplicationProcessRecycleInfo, AnyComponentsHangMonitored: ?*BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IGetAppTrackerData, ApplicationInstanceId: ?*const Guid, ProcessId: u32, Flags: u32, Summary: ?*ApplicationProcessSummary, Statistics: ?*ApplicationProcessStatistics, RecycleInfo: ?*ApplicationProcessRecycleInfo, AnyComponentsHangMonitored: ?*BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetApplicationsInProcess: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IGetAppTrackerData, ApplicationInstanceId: ?*const Guid, ProcessId: u32, PartitionId: ?*const Guid, Flags: u32, NumApplicationsInProcess: ?*u32, Applications: ?[*]?*ApplicationSummary, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IGetAppTrackerData, ApplicationInstanceId: ?*const Guid, ProcessId: u32, PartitionId: ?*const Guid, Flags: u32, NumApplicationsInProcess: ?*u32, Applications: ?[*]?*ApplicationSummary, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetComponentsInProcess: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IGetAppTrackerData, ApplicationInstanceId: ?*const Guid, ProcessId: u32, PartitionId: ?*const Guid, ApplicationId: ?*const Guid, Flags: u32, NumComponentsInProcess: ?*u32, Components: ?[*]?*ComponentSummary, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IGetAppTrackerData, ApplicationInstanceId: ?*const Guid, ProcessId: u32, PartitionId: ?*const Guid, ApplicationId: ?*const Guid, Flags: u32, NumComponentsInProcess: ?*u32, Components: ?[*]?*ComponentSummary, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetComponentDetails: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IGetAppTrackerData, ApplicationInstanceId: ?*const Guid, ProcessId: u32, Clsid: ?*const Guid, Flags: u32, Summary: ?*ComponentSummary, Statistics: ?*ComponentStatistics, HangMonitorInfo: ?*ComponentHangMonitorInfo, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IGetAppTrackerData, ApplicationInstanceId: ?*const Guid, ProcessId: u32, Clsid: ?*const Guid, Flags: u32, Summary: ?*ComponentSummary, Statistics: ?*ComponentStatistics, HangMonitorInfo: ?*ComponentHangMonitorInfo, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetTrackerDataAsCollectionObject: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IGetAppTrackerData, TopLevelCollection: ?*?*IUnknown, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IGetAppTrackerData, TopLevelCollection: ?*?*IUnknown, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetSuggestedPollingInterval: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IGetAppTrackerData, PollingIntervalInSeconds: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IGetAppTrackerData, PollingIntervalInSeconds: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IGetAppTrackerData_GetApplicationProcesses(self: *const T, PartitionId: ?*const Guid, ApplicationId: ?*const Guid, Flags: u32, NumApplicationProcesses: ?*u32, ApplicationProcesses: ?[*]?*ApplicationProcessSummary) HRESULT { return @as(*const IGetAppTrackerData.VTable, @ptrCast(self.vtable)).GetApplicationProcesses(@as(*const IGetAppTrackerData, @ptrCast(self)), PartitionId, ApplicationId, Flags, NumApplicationProcesses, ApplicationProcesses); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IGetAppTrackerData_GetApplicationProcessDetails(self: *const T, ApplicationInstanceId: ?*const Guid, ProcessId: u32, Flags: u32, Summary: ?*ApplicationProcessSummary, Statistics: ?*ApplicationProcessStatistics, RecycleInfo: ?*ApplicationProcessRecycleInfo, AnyComponentsHangMonitored: ?*BOOL) HRESULT { return @as(*const IGetAppTrackerData.VTable, @ptrCast(self.vtable)).GetApplicationProcessDetails(@as(*const IGetAppTrackerData, @ptrCast(self)), ApplicationInstanceId, ProcessId, Flags, Summary, Statistics, RecycleInfo, AnyComponentsHangMonitored); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IGetAppTrackerData_GetApplicationsInProcess(self: *const T, ApplicationInstanceId: ?*const Guid, ProcessId: u32, PartitionId: ?*const Guid, Flags: u32, NumApplicationsInProcess: ?*u32, Applications: ?[*]?*ApplicationSummary) HRESULT { return @as(*const IGetAppTrackerData.VTable, @ptrCast(self.vtable)).GetApplicationsInProcess(@as(*const IGetAppTrackerData, @ptrCast(self)), ApplicationInstanceId, ProcessId, PartitionId, Flags, NumApplicationsInProcess, Applications); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IGetAppTrackerData_GetComponentsInProcess(self: *const T, ApplicationInstanceId: ?*const Guid, ProcessId: u32, PartitionId: ?*const Guid, ApplicationId: ?*const Guid, Flags: u32, NumComponentsInProcess: ?*u32, Components: ?[*]?*ComponentSummary) HRESULT { return @as(*const IGetAppTrackerData.VTable, @ptrCast(self.vtable)).GetComponentsInProcess(@as(*const IGetAppTrackerData, @ptrCast(self)), ApplicationInstanceId, ProcessId, PartitionId, ApplicationId, Flags, NumComponentsInProcess, Components); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IGetAppTrackerData_GetComponentDetails(self: *const T, ApplicationInstanceId: ?*const Guid, ProcessId: u32, Clsid: ?*const Guid, Flags: u32, Summary: ?*ComponentSummary, Statistics: ?*ComponentStatistics, HangMonitorInfo: ?*ComponentHangMonitorInfo) HRESULT { return @as(*const IGetAppTrackerData.VTable, @ptrCast(self.vtable)).GetComponentDetails(@as(*const IGetAppTrackerData, @ptrCast(self)), ApplicationInstanceId, ProcessId, Clsid, Flags, Summary, Statistics, HangMonitorInfo); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IGetAppTrackerData_GetTrackerDataAsCollectionObject(self: *const T, TopLevelCollection: ?*?*IUnknown) HRESULT { return @as(*const IGetAppTrackerData.VTable, @ptrCast(self.vtable)).GetTrackerDataAsCollectionObject(@as(*const IGetAppTrackerData, @ptrCast(self)), TopLevelCollection); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IGetAppTrackerData_GetSuggestedPollingInterval(self: *const T, PollingIntervalInSeconds: ?*u32) HRESULT { return @as(*const IGetAppTrackerData.VTable, @ptrCast(self.vtable)).GetSuggestedPollingInterval(@as(*const IGetAppTrackerData, @ptrCast(self)), PollingIntervalInSeconds); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows5.0' const IID_IDispenserManager_Value = Guid.initString("5cb31e10-2b5f-11cf-be10-00aa00a2fa25"); pub const IID_IDispenserManager = &IID_IDispenserManager_Value; pub const IDispenserManager = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, RegisterDispenser: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDispenserManager, __MIDL__IDispenserManager0000: ?*IDispenserDriver, szDispenserName: ?[*:0]const u16, __MIDL__IDispenserManager0001: ?*?*IHolder, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDispenserManager, __MIDL__IDispenserManager0000: ?*IDispenserDriver, szDispenserName: ?[*:0]const u16, __MIDL__IDispenserManager0001: ?*?*IHolder, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetContext: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDispenserManager, __MIDL__IDispenserManager0002: ?*usize, __MIDL__IDispenserManager0003: ?*usize, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDispenserManager, __MIDL__IDispenserManager0002: ?*usize, __MIDL__IDispenserManager0003: ?*usize, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDispenserManager_RegisterDispenser(self: *const T, __MIDL__IDispenserManager0000: ?*IDispenserDriver, szDispenserName: ?[*:0]const u16, __MIDL__IDispenserManager0001: ?*?*IHolder) HRESULT { return @as(*const IDispenserManager.VTable, @ptrCast(self.vtable)).RegisterDispenser(@as(*const IDispenserManager, @ptrCast(self)), __MIDL__IDispenserManager0000, szDispenserName, __MIDL__IDispenserManager0001); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDispenserManager_GetContext(self: *const T, __MIDL__IDispenserManager0002: ?*usize, __MIDL__IDispenserManager0003: ?*usize) HRESULT { return @as(*const IDispenserManager.VTable, @ptrCast(self.vtable)).GetContext(@as(*const IDispenserManager, @ptrCast(self)), __MIDL__IDispenserManager0002, __MIDL__IDispenserManager0003); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows5.0' const IID_IHolder_Value = Guid.initString("bf6a1850-2b45-11cf-be10-00aa00a2fa25"); pub const IID_IHolder = &IID_IHolder_Value; pub const IHolder = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, AllocResource: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IHolder, __MIDL__IHolder0000: usize, __MIDL__IHolder0001: ?*usize, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IHolder, __MIDL__IHolder0000: usize, __MIDL__IHolder0001: ?*usize, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, FreeResource: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IHolder, __MIDL__IHolder0002: usize, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IHolder, __MIDL__IHolder0002: usize, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, TrackResource: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IHolder, __MIDL__IHolder0003: usize, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IHolder, __MIDL__IHolder0003: usize, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, TrackResourceS: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IHolder, __MIDL__IHolder0004: ?*u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IHolder, __MIDL__IHolder0004: ?*u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, UntrackResource: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IHolder, __MIDL__IHolder0005: usize, __MIDL__IHolder0006: BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IHolder, __MIDL__IHolder0005: usize, __MIDL__IHolder0006: BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, UntrackResourceS: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IHolder, __MIDL__IHolder0007: ?*u16, __MIDL__IHolder0008: BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IHolder, __MIDL__IHolder0007: ?*u16, __MIDL__IHolder0008: BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Close: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IHolder, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IHolder, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, RequestDestroyResource: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IHolder, __MIDL__IHolder0009: usize, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IHolder, __MIDL__IHolder0009: usize, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IHolder_AllocResource(self: *const T, __MIDL__IHolder0000: usize, __MIDL__IHolder0001: ?*usize) HRESULT { return @as(*const IHolder.VTable, @ptrCast(self.vtable)).AllocResource(@as(*const IHolder, @ptrCast(self)), __MIDL__IHolder0000, __MIDL__IHolder0001); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IHolder_FreeResource(self: *const T, __MIDL__IHolder0002: usize) HRESULT { return @as(*const IHolder.VTable, @ptrCast(self.vtable)).FreeResource(@as(*const IHolder, @ptrCast(self)), __MIDL__IHolder0002); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IHolder_TrackResource(self: *const T, __MIDL__IHolder0003: usize) HRESULT { return @as(*const IHolder.VTable, @ptrCast(self.vtable)).TrackResource(@as(*const IHolder, @ptrCast(self)), __MIDL__IHolder0003); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IHolder_TrackResourceS(self: *const T, __MIDL__IHolder0004: ?*u16) HRESULT { return @as(*const IHolder.VTable, @ptrCast(self.vtable)).TrackResourceS(@as(*const IHolder, @ptrCast(self)), __MIDL__IHolder0004); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IHolder_UntrackResource(self: *const T, __MIDL__IHolder0005: usize, __MIDL__IHolder0006: BOOL) HRESULT { return @as(*const IHolder.VTable, @ptrCast(self.vtable)).UntrackResource(@as(*const IHolder, @ptrCast(self)), __MIDL__IHolder0005, __MIDL__IHolder0006); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IHolder_UntrackResourceS(self: *const T, __MIDL__IHolder0007: ?*u16, __MIDL__IHolder0008: BOOL) HRESULT { return @as(*const IHolder.VTable, @ptrCast(self.vtable)).UntrackResourceS(@as(*const IHolder, @ptrCast(self)), __MIDL__IHolder0007, __MIDL__IHolder0008); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IHolder_Close(self: *const T) HRESULT { return @as(*const IHolder.VTable, @ptrCast(self.vtable)).Close(@as(*const IHolder, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IHolder_RequestDestroyResource(self: *const T, __MIDL__IHolder0009: usize) HRESULT { return @as(*const IHolder.VTable, @ptrCast(self.vtable)).RequestDestroyResource(@as(*const IHolder, @ptrCast(self)), __MIDL__IHolder0009); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows5.0' const IID_IDispenserDriver_Value = Guid.initString("208b3651-2b48-11cf-be10-00aa00a2fa25"); pub const IID_IDispenserDriver = &IID_IDispenserDriver_Value; pub const IDispenserDriver = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, CreateResource: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDispenserDriver, ResTypId: usize, pResId: ?*usize, pSecsFreeBeforeDestroy: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDispenserDriver, ResTypId: usize, pResId: ?*usize, pSecsFreeBeforeDestroy: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, RateResource: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDispenserDriver, ResTypId: usize, ResId: usize, fRequiresTransactionEnlistment: BOOL, pRating: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDispenserDriver, ResTypId: usize, ResId: usize, fRequiresTransactionEnlistment: BOOL, pRating: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, EnlistResource: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDispenserDriver, ResId: usize, TransId: usize, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDispenserDriver, ResId: usize, TransId: usize, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, ResetResource: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDispenserDriver, ResId: usize, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDispenserDriver, ResId: usize, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, DestroyResource: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDispenserDriver, ResId: usize, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDispenserDriver, ResId: usize, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, DestroyResourceS: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDispenserDriver, ResId: ?*u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDispenserDriver, ResId: ?*u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDispenserDriver_CreateResource(self: *const T, ResTypId: usize, pResId: ?*usize, pSecsFreeBeforeDestroy: ?*i32) HRESULT { return @as(*const IDispenserDriver.VTable, @ptrCast(self.vtable)).CreateResource(@as(*const IDispenserDriver, @ptrCast(self)), ResTypId, pResId, pSecsFreeBeforeDestroy); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDispenserDriver_RateResource(self: *const T, ResTypId: usize, ResId: usize, fRequiresTransactionEnlistment: BOOL, pRating: ?*u32) HRESULT { return @as(*const IDispenserDriver.VTable, @ptrCast(self.vtable)).RateResource(@as(*const IDispenserDriver, @ptrCast(self)), ResTypId, ResId, fRequiresTransactionEnlistment, pRating); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDispenserDriver_EnlistResource(self: *const T, ResId: usize, TransId: usize) HRESULT { return @as(*const IDispenserDriver.VTable, @ptrCast(self.vtable)).EnlistResource(@as(*const IDispenserDriver, @ptrCast(self)), ResId, TransId); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDispenserDriver_ResetResource(self: *const T, ResId: usize) HRESULT { return @as(*const IDispenserDriver.VTable, @ptrCast(self.vtable)).ResetResource(@as(*const IDispenserDriver, @ptrCast(self)), ResId); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDispenserDriver_DestroyResource(self: *const T, ResId: usize) HRESULT { return @as(*const IDispenserDriver.VTable, @ptrCast(self.vtable)).DestroyResource(@as(*const IDispenserDriver, @ptrCast(self)), ResId); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDispenserDriver_DestroyResourceS(self: *const T, ResId: ?*u16) HRESULT { return @as(*const IDispenserDriver.VTable, @ptrCast(self.vtable)).DestroyResourceS(@as(*const IDispenserDriver, @ptrCast(self)), ResId); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows5.1.2600' const IID_ITransactionProxy_Value = Guid.initString("02558374-df2e-4dae-bd6b-1d5c994f9bdc"); pub const IID_ITransactionProxy = &IID_ITransactionProxy_Value; pub const ITransactionProxy = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, Commit: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ITransactionProxy, guid: Guid, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ITransactionProxy, guid: Guid, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Abort: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ITransactionProxy, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ITransactionProxy, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Promote: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ITransactionProxy, pTransaction: ?*?*ITransaction, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ITransactionProxy, pTransaction: ?*?*ITransaction, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, CreateVoter: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ITransactionProxy, pTxAsync: ?*ITransactionVoterNotifyAsync2, ppBallot: ?*?*ITransactionVoterBallotAsync2, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ITransactionProxy, pTxAsync: ?*ITransactionVoterNotifyAsync2, ppBallot: ?*?*ITransactionVoterBallotAsync2, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetIsolationLevel: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ITransactionProxy, __MIDL__ITransactionProxy0000: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ITransactionProxy, __MIDL__ITransactionProxy0000: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetIdentifier: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ITransactionProxy, pbstrIdentifier: ?*Guid, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ITransactionProxy, pbstrIdentifier: ?*Guid, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, IsReusable: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ITransactionProxy, pfIsReusable: ?*BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ITransactionProxy, pfIsReusable: ?*BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITransactionProxy_Commit(self: *const T, guid: Guid) HRESULT { return @as(*const ITransactionProxy.VTable, @ptrCast(self.vtable)).Commit(@as(*const ITransactionProxy, @ptrCast(self)), guid); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITransactionProxy_Abort(self: *const T) HRESULT { return @as(*const ITransactionProxy.VTable, @ptrCast(self.vtable)).Abort(@as(*const ITransactionProxy, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITransactionProxy_Promote(self: *const T, pTransaction: ?*?*ITransaction) HRESULT { return @as(*const ITransactionProxy.VTable, @ptrCast(self.vtable)).Promote(@as(*const ITransactionProxy, @ptrCast(self)), pTransaction); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITransactionProxy_CreateVoter(self: *const T, pTxAsync: ?*ITransactionVoterNotifyAsync2, ppBallot: ?*?*ITransactionVoterBallotAsync2) HRESULT { return @as(*const ITransactionProxy.VTable, @ptrCast(self.vtable)).CreateVoter(@as(*const ITransactionProxy, @ptrCast(self)), pTxAsync, ppBallot); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITransactionProxy_GetIsolationLevel(self: *const T, __MIDL__ITransactionProxy0000: ?*i32) HRESULT { return @as(*const ITransactionProxy.VTable, @ptrCast(self.vtable)).GetIsolationLevel(@as(*const ITransactionProxy, @ptrCast(self)), __MIDL__ITransactionProxy0000); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITransactionProxy_GetIdentifier(self: *const T, pbstrIdentifier: ?*Guid) HRESULT { return @as(*const ITransactionProxy.VTable, @ptrCast(self.vtable)).GetIdentifier(@as(*const ITransactionProxy, @ptrCast(self)), pbstrIdentifier); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITransactionProxy_IsReusable(self: *const T, pfIsReusable: ?*BOOL) HRESULT { return @as(*const ITransactionProxy.VTable, @ptrCast(self.vtable)).IsReusable(@as(*const ITransactionProxy, @ptrCast(self)), pfIsReusable); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IContextSecurityPerimeter_Value = Guid.initString("a7549a29-a7c4-42e1-8dc1-7e3d748dc24a"); pub const IID_IContextSecurityPerimeter = &IID_IContextSecurityPerimeter_Value; pub const IContextSecurityPerimeter = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, GetPerimeterFlag: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IContextSecurityPerimeter, pFlag: ?*BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IContextSecurityPerimeter, pFlag: ?*BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetPerimeterFlag: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IContextSecurityPerimeter, fFlag: BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IContextSecurityPerimeter, fFlag: BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IContextSecurityPerimeter_GetPerimeterFlag(self: *const T, pFlag: ?*BOOL) HRESULT { return @as(*const IContextSecurityPerimeter.VTable, @ptrCast(self.vtable)).GetPerimeterFlag(@as(*const IContextSecurityPerimeter, @ptrCast(self)), pFlag); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IContextSecurityPerimeter_SetPerimeterFlag(self: *const T, fFlag: BOOL) HRESULT { return @as(*const IContextSecurityPerimeter.VTable, @ptrCast(self.vtable)).SetPerimeterFlag(@as(*const IContextSecurityPerimeter, @ptrCast(self)), fFlag); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_ITxProxyHolder_Value = Guid.initString("13d86f31-0139-41af-bcad-c7d50435fe9f"); pub const IID_ITxProxyHolder = &IID_ITxProxyHolder_Value; pub const ITxProxyHolder = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, GetIdentifier: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ITxProxyHolder, pGuidLtx: ?*Guid, ) callconv(@import("std").os.windows.WINAPI) void, else => *const fn ( self: *const ITxProxyHolder, pGuidLtx: ?*Guid, ) callconv(@import("std").os.windows.WINAPI) void, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITxProxyHolder_GetIdentifier(self: *const T, pGuidLtx: ?*Guid) void { return @as(*const ITxProxyHolder.VTable, @ptrCast(self.vtable)).GetIdentifier(@as(*const ITxProxyHolder, @ptrCast(self)), pGuidLtx); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows5.0' const IID_IObjectContext_Value = Guid.initString("51372ae0-cae7-11cf-be81-00aa00a2fa25"); pub const IID_IObjectContext = &IID_IObjectContext_Value; pub const IObjectContext = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, CreateInstance: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IObjectContext, rclsid: ?*const Guid, riid: ?*const Guid, ppv: ?*?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IObjectContext, rclsid: ?*const Guid, riid: ?*const Guid, ppv: ?*?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetComplete: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IObjectContext, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IObjectContext, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetAbort: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IObjectContext, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IObjectContext, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, EnableCommit: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IObjectContext, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IObjectContext, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, DisableCommit: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IObjectContext, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IObjectContext, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, IsInTransaction: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IObjectContext, ) callconv(@import("std").os.windows.WINAPI) BOOL, else => *const fn ( self: *const IObjectContext, ) callconv(@import("std").os.windows.WINAPI) BOOL, }, IsSecurityEnabled: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IObjectContext, ) callconv(@import("std").os.windows.WINAPI) BOOL, else => *const fn ( self: *const IObjectContext, ) callconv(@import("std").os.windows.WINAPI) BOOL, }, IsCallerInRole: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IObjectContext, bstrRole: ?BSTR, pfIsInRole: ?*BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IObjectContext, bstrRole: ?BSTR, pfIsInRole: ?*BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IObjectContext_CreateInstance(self: *const T, rclsid: ?*const Guid, riid: ?*const Guid, ppv: ?*?*anyopaque) HRESULT { return @as(*const IObjectContext.VTable, @ptrCast(self.vtable)).CreateInstance(@as(*const IObjectContext, @ptrCast(self)), rclsid, riid, ppv); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IObjectContext_SetComplete(self: *const T) HRESULT { return @as(*const IObjectContext.VTable, @ptrCast(self.vtable)).SetComplete(@as(*const IObjectContext, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IObjectContext_SetAbort(self: *const T) HRESULT { return @as(*const IObjectContext.VTable, @ptrCast(self.vtable)).SetAbort(@as(*const IObjectContext, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IObjectContext_EnableCommit(self: *const T) HRESULT { return @as(*const IObjectContext.VTable, @ptrCast(self.vtable)).EnableCommit(@as(*const IObjectContext, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IObjectContext_DisableCommit(self: *const T) HRESULT { return @as(*const IObjectContext.VTable, @ptrCast(self.vtable)).DisableCommit(@as(*const IObjectContext, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IObjectContext_IsInTransaction(self: *const T) BOOL { return @as(*const IObjectContext.VTable, @ptrCast(self.vtable)).IsInTransaction(@as(*const IObjectContext, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IObjectContext_IsSecurityEnabled(self: *const T) BOOL { return @as(*const IObjectContext.VTable, @ptrCast(self.vtable)).IsSecurityEnabled(@as(*const IObjectContext, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IObjectContext_IsCallerInRole(self: *const T, bstrRole: ?BSTR, pfIsInRole: ?*BOOL) HRESULT { return @as(*const IObjectContext.VTable, @ptrCast(self.vtable)).IsCallerInRole(@as(*const IObjectContext, @ptrCast(self)), bstrRole, pfIsInRole); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows5.0' const IID_IObjectControl_Value = Guid.initString("51372aec-cae7-11cf-be81-00aa00a2fa25"); pub const IID_IObjectControl = &IID_IObjectControl_Value; pub const IObjectControl = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, Activate: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IObjectControl, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IObjectControl, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Deactivate: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IObjectControl, ) callconv(@import("std").os.windows.WINAPI) void, else => *const fn ( self: *const IObjectControl, ) callconv(@import("std").os.windows.WINAPI) void, }, CanBePooled: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IObjectControl, ) callconv(@import("std").os.windows.WINAPI) BOOL, else => *const fn ( self: *const IObjectControl, ) callconv(@import("std").os.windows.WINAPI) BOOL, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IObjectControl_Activate(self: *const T) HRESULT { return @as(*const IObjectControl.VTable, @ptrCast(self.vtable)).Activate(@as(*const IObjectControl, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IObjectControl_Deactivate(self: *const T) void { return @as(*const IObjectControl.VTable, @ptrCast(self.vtable)).Deactivate(@as(*const IObjectControl, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IObjectControl_CanBePooled(self: *const T) BOOL { return @as(*const IObjectControl.VTable, @ptrCast(self.vtable)).CanBePooled(@as(*const IObjectControl, @ptrCast(self))); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows5.0' const IID_IEnumNames_Value = Guid.initString("51372af2-cae7-11cf-be81-00aa00a2fa25"); pub const IID_IEnumNames = &IID_IEnumNames_Value; pub const IEnumNames = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, Next: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IEnumNames, celt: u32, rgname: ?*?BSTR, pceltFetched: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IEnumNames, celt: u32, rgname: ?*?BSTR, pceltFetched: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Skip: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IEnumNames, celt: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IEnumNames, celt: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Reset: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IEnumNames, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IEnumNames, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Clone: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IEnumNames, ppenum: ?*?*IEnumNames, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IEnumNames, ppenum: ?*?*IEnumNames, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IEnumNames_Next(self: *const T, celt: u32, rgname: ?*?BSTR, pceltFetched: ?*u32) HRESULT { return @as(*const IEnumNames.VTable, @ptrCast(self.vtable)).Next(@as(*const IEnumNames, @ptrCast(self)), celt, rgname, pceltFetched); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IEnumNames_Skip(self: *const T, celt: u32) HRESULT { return @as(*const IEnumNames.VTable, @ptrCast(self.vtable)).Skip(@as(*const IEnumNames, @ptrCast(self)), celt); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IEnumNames_Reset(self: *const T) HRESULT { return @as(*const IEnumNames.VTable, @ptrCast(self.vtable)).Reset(@as(*const IEnumNames, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IEnumNames_Clone(self: *const T, ppenum: ?*?*IEnumNames) HRESULT { return @as(*const IEnumNames.VTable, @ptrCast(self.vtable)).Clone(@as(*const IEnumNames, @ptrCast(self)), ppenum); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows5.0' const IID_ISecurityProperty_Value = Guid.initString("51372aea-cae7-11cf-be81-00aa00a2fa25"); pub const IID_ISecurityProperty = &IID_ISecurityProperty_Value; pub const ISecurityProperty = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, GetDirectCreatorSID: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ISecurityProperty, pSID: ?*?PSID, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ISecurityProperty, pSID: ?*?PSID, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetOriginalCreatorSID: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ISecurityProperty, pSID: ?*?PSID, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ISecurityProperty, pSID: ?*?PSID, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetDirectCallerSID: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ISecurityProperty, pSID: ?*?PSID, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ISecurityProperty, pSID: ?*?PSID, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetOriginalCallerSID: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ISecurityProperty, pSID: ?*?PSID, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ISecurityProperty, pSID: ?*?PSID, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, ReleaseSID: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ISecurityProperty, pSID: ?PSID, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ISecurityProperty, pSID: ?PSID, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISecurityProperty_GetDirectCreatorSID(self: *const T, pSID: ?*?PSID) HRESULT { return @as(*const ISecurityProperty.VTable, @ptrCast(self.vtable)).GetDirectCreatorSID(@as(*const ISecurityProperty, @ptrCast(self)), pSID); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISecurityProperty_GetOriginalCreatorSID(self: *const T, pSID: ?*?PSID) HRESULT { return @as(*const ISecurityProperty.VTable, @ptrCast(self.vtable)).GetOriginalCreatorSID(@as(*const ISecurityProperty, @ptrCast(self)), pSID); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISecurityProperty_GetDirectCallerSID(self: *const T, pSID: ?*?PSID) HRESULT { return @as(*const ISecurityProperty.VTable, @ptrCast(self.vtable)).GetDirectCallerSID(@as(*const ISecurityProperty, @ptrCast(self)), pSID); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISecurityProperty_GetOriginalCallerSID(self: *const T, pSID: ?*?PSID) HRESULT { return @as(*const ISecurityProperty.VTable, @ptrCast(self.vtable)).GetOriginalCallerSID(@as(*const ISecurityProperty, @ptrCast(self)), pSID); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISecurityProperty_ReleaseSID(self: *const T, pSID: ?PSID) HRESULT { return @as(*const ISecurityProperty.VTable, @ptrCast(self.vtable)).ReleaseSID(@as(*const ISecurityProperty, @ptrCast(self)), pSID); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows5.0' const IID_ObjectControl_Value = Guid.initString("7dc41850-0c31-11d0-8b79-00aa00b8a790"); pub const IID_ObjectControl = &IID_ObjectControl_Value; pub const ObjectControl = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, Activate: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ObjectControl, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ObjectControl, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Deactivate: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ObjectControl, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ObjectControl, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, CanBePooled: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ObjectControl, pbPoolable: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ObjectControl, pbPoolable: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ObjectControl_Activate(self: *const T) HRESULT { return @as(*const ObjectControl.VTable, @ptrCast(self.vtable)).Activate(@as(*const ObjectControl, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ObjectControl_Deactivate(self: *const T) HRESULT { return @as(*const ObjectControl.VTable, @ptrCast(self.vtable)).Deactivate(@as(*const ObjectControl, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ObjectControl_CanBePooled(self: *const T, pbPoolable: ?*i16) HRESULT { return @as(*const ObjectControl.VTable, @ptrCast(self.vtable)).CanBePooled(@as(*const ObjectControl, @ptrCast(self)), pbPoolable); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows5.0' const IID_ISharedProperty_Value = Guid.initString("2a005c01-a5de-11cf-9e66-00aa00a3f464"); pub const IID_ISharedProperty = &IID_ISharedProperty_Value; pub const ISharedProperty = extern struct { pub const VTable = extern struct { base: IDispatch.VTable, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Value: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ISharedProperty, pVal: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ISharedProperty, pVal: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_Value: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ISharedProperty, val: VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ISharedProperty, val: VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IDispatch.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISharedProperty_get_Value(self: *const T, pVal: ?*VARIANT) HRESULT { return @as(*const ISharedProperty.VTable, @ptrCast(self.vtable)).get_Value(@as(*const ISharedProperty, @ptrCast(self)), pVal); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISharedProperty_put_Value(self: *const T, val: VARIANT) HRESULT { return @as(*const ISharedProperty.VTable, @ptrCast(self.vtable)).put_Value(@as(*const ISharedProperty, @ptrCast(self)), val); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows5.0' const IID_ISharedPropertyGroup_Value = Guid.initString("2a005c07-a5de-11cf-9e66-00aa00a3f464"); pub const IID_ISharedPropertyGroup = &IID_ISharedPropertyGroup_Value; pub const ISharedPropertyGroup = extern struct { pub const VTable = extern struct { base: IDispatch.VTable, CreatePropertyByPosition: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ISharedPropertyGroup, Index: i32, fExists: ?*i16, ppProp: ?*?*ISharedProperty, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ISharedPropertyGroup, Index: i32, fExists: ?*i16, ppProp: ?*?*ISharedProperty, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_PropertyByPosition: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ISharedPropertyGroup, Index: i32, ppProperty: ?*?*ISharedProperty, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ISharedPropertyGroup, Index: i32, ppProperty: ?*?*ISharedProperty, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, CreateProperty: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ISharedPropertyGroup, Name: ?BSTR, fExists: ?*i16, ppProp: ?*?*ISharedProperty, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ISharedPropertyGroup, Name: ?BSTR, fExists: ?*i16, ppProp: ?*?*ISharedProperty, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Property: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ISharedPropertyGroup, Name: ?BSTR, ppProperty: ?*?*ISharedProperty, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ISharedPropertyGroup, Name: ?BSTR, ppProperty: ?*?*ISharedProperty, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IDispatch.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISharedPropertyGroup_CreatePropertyByPosition(self: *const T, Index: i32, fExists: ?*i16, ppProp: ?*?*ISharedProperty) HRESULT { return @as(*const ISharedPropertyGroup.VTable, @ptrCast(self.vtable)).CreatePropertyByPosition(@as(*const ISharedPropertyGroup, @ptrCast(self)), Index, fExists, ppProp); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISharedPropertyGroup_get_PropertyByPosition(self: *const T, Index: i32, ppProperty: ?*?*ISharedProperty) HRESULT { return @as(*const ISharedPropertyGroup.VTable, @ptrCast(self.vtable)).get_PropertyByPosition(@as(*const ISharedPropertyGroup, @ptrCast(self)), Index, ppProperty); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISharedPropertyGroup_CreateProperty(self: *const T, Name: ?BSTR, fExists: ?*i16, ppProp: ?*?*ISharedProperty) HRESULT { return @as(*const ISharedPropertyGroup.VTable, @ptrCast(self.vtable)).CreateProperty(@as(*const ISharedPropertyGroup, @ptrCast(self)), Name, fExists, ppProp); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISharedPropertyGroup_get_Property(self: *const T, Name: ?BSTR, ppProperty: ?*?*ISharedProperty) HRESULT { return @as(*const ISharedPropertyGroup.VTable, @ptrCast(self.vtable)).get_Property(@as(*const ISharedPropertyGroup, @ptrCast(self)), Name, ppProperty); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows5.0' const IID_ISharedPropertyGroupManager_Value = Guid.initString("2a005c0d-a5de-11cf-9e66-00aa00a3f464"); pub const IID_ISharedPropertyGroupManager = &IID_ISharedPropertyGroupManager_Value; pub const ISharedPropertyGroupManager = extern struct { pub const VTable = extern struct { base: IDispatch.VTable, CreatePropertyGroup: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ISharedPropertyGroupManager, Name: ?BSTR, dwIsoMode: ?*i32, dwRelMode: ?*i32, fExists: ?*i16, ppGroup: ?*?*ISharedPropertyGroup, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ISharedPropertyGroupManager, Name: ?BSTR, dwIsoMode: ?*i32, dwRelMode: ?*i32, fExists: ?*i16, ppGroup: ?*?*ISharedPropertyGroup, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Group: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ISharedPropertyGroupManager, Name: ?BSTR, ppGroup: ?*?*ISharedPropertyGroup, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ISharedPropertyGroupManager, Name: ?BSTR, ppGroup: ?*?*ISharedPropertyGroup, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get__NewEnum: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ISharedPropertyGroupManager, retval: ?*?*IUnknown, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ISharedPropertyGroupManager, retval: ?*?*IUnknown, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IDispatch.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISharedPropertyGroupManager_CreatePropertyGroup(self: *const T, Name: ?BSTR, dwIsoMode: ?*i32, dwRelMode: ?*i32, fExists: ?*i16, ppGroup: ?*?*ISharedPropertyGroup) HRESULT { return @as(*const ISharedPropertyGroupManager.VTable, @ptrCast(self.vtable)).CreatePropertyGroup(@as(*const ISharedPropertyGroupManager, @ptrCast(self)), Name, dwIsoMode, dwRelMode, fExists, ppGroup); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISharedPropertyGroupManager_get_Group(self: *const T, Name: ?BSTR, ppGroup: ?*?*ISharedPropertyGroup) HRESULT { return @as(*const ISharedPropertyGroupManager.VTable, @ptrCast(self.vtable)).get_Group(@as(*const ISharedPropertyGroupManager, @ptrCast(self)), Name, ppGroup); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISharedPropertyGroupManager_get__NewEnum(self: *const T, retval: ?*?*IUnknown) HRESULT { return @as(*const ISharedPropertyGroupManager.VTable, @ptrCast(self.vtable)).get__NewEnum(@as(*const ISharedPropertyGroupManager, @ptrCast(self)), retval); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows5.0' const IID_IObjectConstruct_Value = Guid.initString("41c4f8b3-7439-11d2-98cb-00c04f8ee1c4"); pub const IID_IObjectConstruct = &IID_IObjectConstruct_Value; pub const IObjectConstruct = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, Construct: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IObjectConstruct, pCtorObj: ?*IDispatch, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IObjectConstruct, pCtorObj: ?*IDispatch, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IObjectConstruct_Construct(self: *const T, pCtorObj: ?*IDispatch) HRESULT { return @as(*const IObjectConstruct.VTable, @ptrCast(self.vtable)).Construct(@as(*const IObjectConstruct, @ptrCast(self)), pCtorObj); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows5.0' const IID_IObjectConstructString_Value = Guid.initString("41c4f8b2-7439-11d2-98cb-00c04f8ee1c4"); pub const IID_IObjectConstructString = &IID_IObjectConstructString_Value; pub const IObjectConstructString = extern struct { pub const VTable = extern struct { base: IDispatch.VTable, // TODO: this function has a "SpecialName", should Zig do anything with this? get_ConstructString: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IObjectConstructString, pVal: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IObjectConstructString, pVal: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IDispatch.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IObjectConstructString_get_ConstructString(self: *const T, pVal: ?*?BSTR) HRESULT { return @as(*const IObjectConstructString.VTable, @ptrCast(self.vtable)).get_ConstructString(@as(*const IObjectConstructString, @ptrCast(self)), pVal); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows5.0' const IID_IObjectContextActivity_Value = Guid.initString("51372afc-cae7-11cf-be81-00aa00a2fa25"); pub const IID_IObjectContextActivity = &IID_IObjectContextActivity_Value; pub const IObjectContextActivity = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, GetActivityId: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IObjectContextActivity, pGUID: ?*Guid, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IObjectContextActivity, pGUID: ?*Guid, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IObjectContextActivity_GetActivityId(self: *const T, pGUID: ?*Guid) HRESULT { return @as(*const IObjectContextActivity.VTable, @ptrCast(self.vtable)).GetActivityId(@as(*const IObjectContextActivity, @ptrCast(self)), pGUID); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows5.0' const IID_IObjectContextInfo_Value = Guid.initString("75b52ddb-e8ed-11d1-93ad-00aa00ba3258"); pub const IID_IObjectContextInfo = &IID_IObjectContextInfo_Value; pub const IObjectContextInfo = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, IsInTransaction: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IObjectContextInfo, ) callconv(@import("std").os.windows.WINAPI) BOOL, else => *const fn ( self: *const IObjectContextInfo, ) callconv(@import("std").os.windows.WINAPI) BOOL, }, GetTransaction: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IObjectContextInfo, pptrans: ?*?*IUnknown, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IObjectContextInfo, pptrans: ?*?*IUnknown, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetTransactionId: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IObjectContextInfo, pGuid: ?*Guid, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IObjectContextInfo, pGuid: ?*Guid, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetActivityId: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IObjectContextInfo, pGUID: ?*Guid, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IObjectContextInfo, pGUID: ?*Guid, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetContextId: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IObjectContextInfo, pGuid: ?*Guid, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IObjectContextInfo, pGuid: ?*Guid, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IObjectContextInfo_IsInTransaction(self: *const T) BOOL { return @as(*const IObjectContextInfo.VTable, @ptrCast(self.vtable)).IsInTransaction(@as(*const IObjectContextInfo, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IObjectContextInfo_GetTransaction(self: *const T, pptrans: ?*?*IUnknown) HRESULT { return @as(*const IObjectContextInfo.VTable, @ptrCast(self.vtable)).GetTransaction(@as(*const IObjectContextInfo, @ptrCast(self)), pptrans); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IObjectContextInfo_GetTransactionId(self: *const T, pGuid: ?*Guid) HRESULT { return @as(*const IObjectContextInfo.VTable, @ptrCast(self.vtable)).GetTransactionId(@as(*const IObjectContextInfo, @ptrCast(self)), pGuid); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IObjectContextInfo_GetActivityId(self: *const T, pGUID: ?*Guid) HRESULT { return @as(*const IObjectContextInfo.VTable, @ptrCast(self.vtable)).GetActivityId(@as(*const IObjectContextInfo, @ptrCast(self)), pGUID); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IObjectContextInfo_GetContextId(self: *const T, pGuid: ?*Guid) HRESULT { return @as(*const IObjectContextInfo.VTable, @ptrCast(self.vtable)).GetContextId(@as(*const IObjectContextInfo, @ptrCast(self)), pGuid); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows5.1.2600' const IID_IObjectContextInfo2_Value = Guid.initString("594be71a-4bc4-438b-9197-cfd176248b09"); pub const IID_IObjectContextInfo2 = &IID_IObjectContextInfo2_Value; pub const IObjectContextInfo2 = extern struct { pub const VTable = extern struct { base: IObjectContextInfo.VTable, GetPartitionId: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IObjectContextInfo2, pGuid: ?*Guid, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IObjectContextInfo2, pGuid: ?*Guid, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetApplicationId: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IObjectContextInfo2, pGuid: ?*Guid, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IObjectContextInfo2, pGuid: ?*Guid, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetApplicationInstanceId: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IObjectContextInfo2, pGuid: ?*Guid, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IObjectContextInfo2, pGuid: ?*Guid, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IObjectContextInfo.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IObjectContextInfo2_GetPartitionId(self: *const T, pGuid: ?*Guid) HRESULT { return @as(*const IObjectContextInfo2.VTable, @ptrCast(self.vtable)).GetPartitionId(@as(*const IObjectContextInfo2, @ptrCast(self)), pGuid); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IObjectContextInfo2_GetApplicationId(self: *const T, pGuid: ?*Guid) HRESULT { return @as(*const IObjectContextInfo2.VTable, @ptrCast(self.vtable)).GetApplicationId(@as(*const IObjectContextInfo2, @ptrCast(self)), pGuid); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IObjectContextInfo2_GetApplicationInstanceId(self: *const T, pGuid: ?*Guid) HRESULT { return @as(*const IObjectContextInfo2.VTable, @ptrCast(self.vtable)).GetApplicationInstanceId(@as(*const IObjectContextInfo2, @ptrCast(self)), pGuid); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows5.1.2600' const IID_ITransactionStatus_Value = Guid.initString("61f589e8-3724-4898-a0a4-664ae9e1d1b4"); pub const IID_ITransactionStatus = &IID_ITransactionStatus_Value; pub const ITransactionStatus = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, SetTransactionStatus: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ITransactionStatus, hrStatus: HRESULT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ITransactionStatus, hrStatus: HRESULT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetTransactionStatus: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ITransactionStatus, pHrStatus: ?*HRESULT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ITransactionStatus, pHrStatus: ?*HRESULT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITransactionStatus_SetTransactionStatus(self: *const T, hrStatus: HRESULT) HRESULT { return @as(*const ITransactionStatus.VTable, @ptrCast(self.vtable)).SetTransactionStatus(@as(*const ITransactionStatus, @ptrCast(self)), hrStatus); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITransactionStatus_GetTransactionStatus(self: *const T, pHrStatus: ?*HRESULT) HRESULT { return @as(*const ITransactionStatus.VTable, @ptrCast(self.vtable)).GetTransactionStatus(@as(*const ITransactionStatus, @ptrCast(self)), pHrStatus); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows5.0' const IID_IObjectContextTip_Value = Guid.initString("92fd41ca-bad9-11d2-9a2d-00c04f797bc9"); pub const IID_IObjectContextTip = &IID_IObjectContextTip_Value; pub const IObjectContextTip = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, GetTipUrl: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IObjectContextTip, pTipUrl: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IObjectContextTip, pTipUrl: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IObjectContextTip_GetTipUrl(self: *const T, pTipUrl: ?*?BSTR) HRESULT { return @as(*const IObjectContextTip.VTable, @ptrCast(self.vtable)).GetTipUrl(@as(*const IObjectContextTip, @ptrCast(self)), pTipUrl); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows5.0' const IID_IPlaybackControl_Value = Guid.initString("51372afd-cae7-11cf-be81-00aa00a2fa25"); pub const IID_IPlaybackControl = &IID_IPlaybackControl_Value; pub const IPlaybackControl = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, FinalClientRetry: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IPlaybackControl, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IPlaybackControl, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, FinalServerRetry: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IPlaybackControl, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IPlaybackControl, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPlaybackControl_FinalClientRetry(self: *const T) HRESULT { return @as(*const IPlaybackControl.VTable, @ptrCast(self.vtable)).FinalClientRetry(@as(*const IPlaybackControl, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPlaybackControl_FinalServerRetry(self: *const T) HRESULT { return @as(*const IPlaybackControl.VTable, @ptrCast(self.vtable)).FinalServerRetry(@as(*const IPlaybackControl, @ptrCast(self))); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows5.0' const IID_IGetContextProperties_Value = Guid.initString("51372af4-cae7-11cf-be81-00aa00a2fa25"); pub const IID_IGetContextProperties = &IID_IGetContextProperties_Value; pub const IGetContextProperties = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, Count: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IGetContextProperties, plCount: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IGetContextProperties, plCount: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetProperty: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IGetContextProperties, name: ?BSTR, pProperty: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IGetContextProperties, name: ?BSTR, pProperty: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, EnumNames: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IGetContextProperties, ppenum: ?*?*IEnumNames, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IGetContextProperties, ppenum: ?*?*IEnumNames, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IGetContextProperties_Count(self: *const T, plCount: ?*i32) HRESULT { return @as(*const IGetContextProperties.VTable, @ptrCast(self.vtable)).Count(@as(*const IGetContextProperties, @ptrCast(self)), plCount); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IGetContextProperties_GetProperty(self: *const T, name: ?BSTR, pProperty: ?*VARIANT) HRESULT { return @as(*const IGetContextProperties.VTable, @ptrCast(self.vtable)).GetProperty(@as(*const IGetContextProperties, @ptrCast(self)), name, pProperty); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IGetContextProperties_EnumNames(self: *const T, ppenum: ?*?*IEnumNames) HRESULT { return @as(*const IGetContextProperties.VTable, @ptrCast(self.vtable)).EnumNames(@as(*const IGetContextProperties, @ptrCast(self)), ppenum); } }; } pub usingnamespace MethodMixin(@This()); }; pub const TransactionVote = enum(i32) { Commit = 0, Abort = 1, }; pub const TxCommit = TransactionVote.Commit; pub const TxAbort = TransactionVote.Abort; // TODO: this type is limited to platform 'windows5.0' const IID_IContextState_Value = Guid.initString("3c05e54b-a42a-11d2-afc4-00c04f8ee1c4"); pub const IID_IContextState = &IID_IContextState_Value; pub const IContextState = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, SetDeactivateOnReturn: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IContextState, bDeactivate: i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IContextState, bDeactivate: i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetDeactivateOnReturn: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IContextState, pbDeactivate: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IContextState, pbDeactivate: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetMyTransactionVote: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IContextState, txVote: TransactionVote, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IContextState, txVote: TransactionVote, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetMyTransactionVote: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IContextState, ptxVote: ?*TransactionVote, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IContextState, ptxVote: ?*TransactionVote, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IContextState_SetDeactivateOnReturn(self: *const T, bDeactivate: i16) HRESULT { return @as(*const IContextState.VTable, @ptrCast(self.vtable)).SetDeactivateOnReturn(@as(*const IContextState, @ptrCast(self)), bDeactivate); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IContextState_GetDeactivateOnReturn(self: *const T, pbDeactivate: ?*i16) HRESULT { return @as(*const IContextState.VTable, @ptrCast(self.vtable)).GetDeactivateOnReturn(@as(*const IContextState, @ptrCast(self)), pbDeactivate); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IContextState_SetMyTransactionVote(self: *const T, txVote: TransactionVote) HRESULT { return @as(*const IContextState.VTable, @ptrCast(self.vtable)).SetMyTransactionVote(@as(*const IContextState, @ptrCast(self)), txVote); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IContextState_GetMyTransactionVote(self: *const T, ptxVote: ?*TransactionVote) HRESULT { return @as(*const IContextState.VTable, @ptrCast(self.vtable)).GetMyTransactionVote(@as(*const IContextState, @ptrCast(self)), ptxVote); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows5.0' const IID_IPoolManager_Value = Guid.initString("0a469861-5a91-43a0-99b6-d5e179bb0631"); pub const IID_IPoolManager = &IID_IPoolManager_Value; pub const IPoolManager = extern struct { pub const VTable = extern struct { base: IDispatch.VTable, ShutdownPool: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IPoolManager, CLSIDOrProgID: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IPoolManager, CLSIDOrProgID: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IDispatch.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPoolManager_ShutdownPool(self: *const T, CLSIDOrProgID: ?BSTR) HRESULT { return @as(*const IPoolManager.VTable, @ptrCast(self.vtable)).ShutdownPool(@as(*const IPoolManager, @ptrCast(self)), CLSIDOrProgID); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows5.0' const IID_ISelectCOMLBServer_Value = Guid.initString("dcf443f4-3f8a-4872-b9f0-369a796d12d6"); pub const IID_ISelectCOMLBServer = &IID_ISelectCOMLBServer_Value; pub const ISelectCOMLBServer = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, Init: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ISelectCOMLBServer, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ISelectCOMLBServer, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetLBServer: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ISelectCOMLBServer, pUnk: ?*IUnknown, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ISelectCOMLBServer, pUnk: ?*IUnknown, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISelectCOMLBServer_Init(self: *const T) HRESULT { return @as(*const ISelectCOMLBServer.VTable, @ptrCast(self.vtable)).Init(@as(*const ISelectCOMLBServer, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISelectCOMLBServer_GetLBServer(self: *const T, pUnk: ?*IUnknown) HRESULT { return @as(*const ISelectCOMLBServer.VTable, @ptrCast(self.vtable)).GetLBServer(@as(*const ISelectCOMLBServer, @ptrCast(self)), pUnk); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows5.0' const IID_ICOMLBArguments_Value = Guid.initString("3a0f150f-8ee5-4b94-b40e-aef2f9e42ed2"); pub const IID_ICOMLBArguments = &IID_ICOMLBArguments_Value; pub const ICOMLBArguments = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, GetCLSID: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ICOMLBArguments, pCLSID: ?*Guid, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ICOMLBArguments, pCLSID: ?*Guid, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetCLSID: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ICOMLBArguments, pCLSID: ?*Guid, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ICOMLBArguments, pCLSID: ?*Guid, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetMachineName: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ICOMLBArguments, cchSvr: u32, szServerName: [*:0]u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ICOMLBArguments, cchSvr: u32, szServerName: [*:0]u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetMachineName: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ICOMLBArguments, cchSvr: u32, szServerName: [*:0]u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ICOMLBArguments, cchSvr: u32, szServerName: [*:0]u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ICOMLBArguments_GetCLSID(self: *const T, pCLSID: ?*Guid) HRESULT { return @as(*const ICOMLBArguments.VTable, @ptrCast(self.vtable)).GetCLSID(@as(*const ICOMLBArguments, @ptrCast(self)), pCLSID); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ICOMLBArguments_SetCLSID(self: *const T, pCLSID: ?*Guid) HRESULT { return @as(*const ICOMLBArguments.VTable, @ptrCast(self.vtable)).SetCLSID(@as(*const ICOMLBArguments, @ptrCast(self)), pCLSID); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ICOMLBArguments_GetMachineName(self: *const T, cchSvr: u32, szServerName: [*:0]u16) HRESULT { return @as(*const ICOMLBArguments.VTable, @ptrCast(self.vtable)).GetMachineName(@as(*const ICOMLBArguments, @ptrCast(self)), cchSvr, szServerName); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ICOMLBArguments_SetMachineName(self: *const T, cchSvr: u32, szServerName: [*:0]u16) HRESULT { return @as(*const ICOMLBArguments.VTable, @ptrCast(self.vtable)).SetMachineName(@as(*const ICOMLBArguments, @ptrCast(self)), cchSvr, szServerName); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows5.0' const IID_ICrmLogControl_Value = Guid.initString("a0e174b3-d26e-11d2-8f84-00805fc7bcd9"); pub const IID_ICrmLogControl = &IID_ICrmLogControl_Value; pub const ICrmLogControl = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, // TODO: this function has a "SpecialName", should Zig do anything with this? get_TransactionUOW: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ICrmLogControl, pVal: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ICrmLogControl, pVal: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, RegisterCompensator: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ICrmLogControl, lpcwstrProgIdCompensator: ?[*:0]const u16, lpcwstrDescription: ?[*:0]const u16, lCrmRegFlags: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ICrmLogControl, lpcwstrProgIdCompensator: ?[*:0]const u16, lpcwstrDescription: ?[*:0]const u16, lCrmRegFlags: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, WriteLogRecordVariants: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ICrmLogControl, pLogRecord: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ICrmLogControl, pLogRecord: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, ForceLog: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ICrmLogControl, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ICrmLogControl, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, ForgetLogRecord: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ICrmLogControl, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ICrmLogControl, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, ForceTransactionToAbort: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ICrmLogControl, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ICrmLogControl, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, WriteLogRecord: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ICrmLogControl, rgBlob: [*]BLOB, cBlob: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ICrmLogControl, rgBlob: [*]BLOB, cBlob: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ICrmLogControl_get_TransactionUOW(self: *const T, pVal: ?*?BSTR) HRESULT { return @as(*const ICrmLogControl.VTable, @ptrCast(self.vtable)).get_TransactionUOW(@as(*const ICrmLogControl, @ptrCast(self)), pVal); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ICrmLogControl_RegisterCompensator(self: *const T, lpcwstrProgIdCompensator: ?[*:0]const u16, lpcwstrDescription: ?[*:0]const u16, lCrmRegFlags: i32) HRESULT { return @as(*const ICrmLogControl.VTable, @ptrCast(self.vtable)).RegisterCompensator(@as(*const ICrmLogControl, @ptrCast(self)), lpcwstrProgIdCompensator, lpcwstrDescription, lCrmRegFlags); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ICrmLogControl_WriteLogRecordVariants(self: *const T, pLogRecord: ?*VARIANT) HRESULT { return @as(*const ICrmLogControl.VTable, @ptrCast(self.vtable)).WriteLogRecordVariants(@as(*const ICrmLogControl, @ptrCast(self)), pLogRecord); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ICrmLogControl_ForceLog(self: *const T) HRESULT { return @as(*const ICrmLogControl.VTable, @ptrCast(self.vtable)).ForceLog(@as(*const ICrmLogControl, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ICrmLogControl_ForgetLogRecord(self: *const T) HRESULT { return @as(*const ICrmLogControl.VTable, @ptrCast(self.vtable)).ForgetLogRecord(@as(*const ICrmLogControl, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ICrmLogControl_ForceTransactionToAbort(self: *const T) HRESULT { return @as(*const ICrmLogControl.VTable, @ptrCast(self.vtable)).ForceTransactionToAbort(@as(*const ICrmLogControl, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ICrmLogControl_WriteLogRecord(self: *const T, rgBlob: [*]BLOB, cBlob: u32) HRESULT { return @as(*const ICrmLogControl.VTable, @ptrCast(self.vtable)).WriteLogRecord(@as(*const ICrmLogControl, @ptrCast(self)), rgBlob, cBlob); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows5.0' const IID_ICrmCompensatorVariants_Value = Guid.initString("f0baf8e4-7804-11d1-82e9-00a0c91eede9"); pub const IID_ICrmCompensatorVariants = &IID_ICrmCompensatorVariants_Value; pub const ICrmCompensatorVariants = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, SetLogControlVariants: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ICrmCompensatorVariants, pLogControl: ?*ICrmLogControl, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ICrmCompensatorVariants, pLogControl: ?*ICrmLogControl, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, BeginPrepareVariants: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ICrmCompensatorVariants, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ICrmCompensatorVariants, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, PrepareRecordVariants: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ICrmCompensatorVariants, pLogRecord: ?*VARIANT, pbForget: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ICrmCompensatorVariants, pLogRecord: ?*VARIANT, pbForget: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, EndPrepareVariants: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ICrmCompensatorVariants, pbOkToPrepare: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ICrmCompensatorVariants, pbOkToPrepare: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, BeginCommitVariants: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ICrmCompensatorVariants, bRecovery: i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ICrmCompensatorVariants, bRecovery: i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, CommitRecordVariants: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ICrmCompensatorVariants, pLogRecord: ?*VARIANT, pbForget: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ICrmCompensatorVariants, pLogRecord: ?*VARIANT, pbForget: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, EndCommitVariants: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ICrmCompensatorVariants, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ICrmCompensatorVariants, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, BeginAbortVariants: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ICrmCompensatorVariants, bRecovery: i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ICrmCompensatorVariants, bRecovery: i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, AbortRecordVariants: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ICrmCompensatorVariants, pLogRecord: ?*VARIANT, pbForget: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ICrmCompensatorVariants, pLogRecord: ?*VARIANT, pbForget: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, EndAbortVariants: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ICrmCompensatorVariants, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ICrmCompensatorVariants, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ICrmCompensatorVariants_SetLogControlVariants(self: *const T, pLogControl: ?*ICrmLogControl) HRESULT { return @as(*const ICrmCompensatorVariants.VTable, @ptrCast(self.vtable)).SetLogControlVariants(@as(*const ICrmCompensatorVariants, @ptrCast(self)), pLogControl); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ICrmCompensatorVariants_BeginPrepareVariants(self: *const T) HRESULT { return @as(*const ICrmCompensatorVariants.VTable, @ptrCast(self.vtable)).BeginPrepareVariants(@as(*const ICrmCompensatorVariants, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ICrmCompensatorVariants_PrepareRecordVariants(self: *const T, pLogRecord: ?*VARIANT, pbForget: ?*i16) HRESULT { return @as(*const ICrmCompensatorVariants.VTable, @ptrCast(self.vtable)).PrepareRecordVariants(@as(*const ICrmCompensatorVariants, @ptrCast(self)), pLogRecord, pbForget); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ICrmCompensatorVariants_EndPrepareVariants(self: *const T, pbOkToPrepare: ?*i16) HRESULT { return @as(*const ICrmCompensatorVariants.VTable, @ptrCast(self.vtable)).EndPrepareVariants(@as(*const ICrmCompensatorVariants, @ptrCast(self)), pbOkToPrepare); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ICrmCompensatorVariants_BeginCommitVariants(self: *const T, bRecovery: i16) HRESULT { return @as(*const ICrmCompensatorVariants.VTable, @ptrCast(self.vtable)).BeginCommitVariants(@as(*const ICrmCompensatorVariants, @ptrCast(self)), bRecovery); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ICrmCompensatorVariants_CommitRecordVariants(self: *const T, pLogRecord: ?*VARIANT, pbForget: ?*i16) HRESULT { return @as(*const ICrmCompensatorVariants.VTable, @ptrCast(self.vtable)).CommitRecordVariants(@as(*const ICrmCompensatorVariants, @ptrCast(self)), pLogRecord, pbForget); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ICrmCompensatorVariants_EndCommitVariants(self: *const T) HRESULT { return @as(*const ICrmCompensatorVariants.VTable, @ptrCast(self.vtable)).EndCommitVariants(@as(*const ICrmCompensatorVariants, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ICrmCompensatorVariants_BeginAbortVariants(self: *const T, bRecovery: i16) HRESULT { return @as(*const ICrmCompensatorVariants.VTable, @ptrCast(self.vtable)).BeginAbortVariants(@as(*const ICrmCompensatorVariants, @ptrCast(self)), bRecovery); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ICrmCompensatorVariants_AbortRecordVariants(self: *const T, pLogRecord: ?*VARIANT, pbForget: ?*i16) HRESULT { return @as(*const ICrmCompensatorVariants.VTable, @ptrCast(self.vtable)).AbortRecordVariants(@as(*const ICrmCompensatorVariants, @ptrCast(self)), pLogRecord, pbForget); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ICrmCompensatorVariants_EndAbortVariants(self: *const T) HRESULT { return @as(*const ICrmCompensatorVariants.VTable, @ptrCast(self.vtable)).EndAbortVariants(@as(*const ICrmCompensatorVariants, @ptrCast(self))); } }; } pub usingnamespace MethodMixin(@This()); }; pub const CrmLogRecordRead = extern struct { dwCrmFlags: u32, dwSequenceNumber: u32, blobUserData: BLOB, }; // TODO: this type is limited to platform 'windows5.0' const IID_ICrmCompensator_Value = Guid.initString("bbc01830-8d3b-11d1-82ec-00a0c91eede9"); pub const IID_ICrmCompensator = &IID_ICrmCompensator_Value; pub const ICrmCompensator = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, SetLogControl: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ICrmCompensator, pLogControl: ?*ICrmLogControl, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ICrmCompensator, pLogControl: ?*ICrmLogControl, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, BeginPrepare: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ICrmCompensator, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ICrmCompensator, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, PrepareRecord: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ICrmCompensator, crmLogRec: CrmLogRecordRead, pfForget: ?*BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ICrmCompensator, crmLogRec: CrmLogRecordRead, pfForget: ?*BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, EndPrepare: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ICrmCompensator, pfOkToPrepare: ?*BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ICrmCompensator, pfOkToPrepare: ?*BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, BeginCommit: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ICrmCompensator, fRecovery: BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ICrmCompensator, fRecovery: BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, CommitRecord: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ICrmCompensator, crmLogRec: CrmLogRecordRead, pfForget: ?*BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ICrmCompensator, crmLogRec: CrmLogRecordRead, pfForget: ?*BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, EndCommit: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ICrmCompensator, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ICrmCompensator, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, BeginAbort: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ICrmCompensator, fRecovery: BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ICrmCompensator, fRecovery: BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, AbortRecord: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ICrmCompensator, crmLogRec: CrmLogRecordRead, pfForget: ?*BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ICrmCompensator, crmLogRec: CrmLogRecordRead, pfForget: ?*BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, EndAbort: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ICrmCompensator, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ICrmCompensator, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ICrmCompensator_SetLogControl(self: *const T, pLogControl: ?*ICrmLogControl) HRESULT { return @as(*const ICrmCompensator.VTable, @ptrCast(self.vtable)).SetLogControl(@as(*const ICrmCompensator, @ptrCast(self)), pLogControl); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ICrmCompensator_BeginPrepare(self: *const T) HRESULT { return @as(*const ICrmCompensator.VTable, @ptrCast(self.vtable)).BeginPrepare(@as(*const ICrmCompensator, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ICrmCompensator_PrepareRecord(self: *const T, crmLogRec: CrmLogRecordRead, pfForget: ?*BOOL) HRESULT { return @as(*const ICrmCompensator.VTable, @ptrCast(self.vtable)).PrepareRecord(@as(*const ICrmCompensator, @ptrCast(self)), crmLogRec, pfForget); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ICrmCompensator_EndPrepare(self: *const T, pfOkToPrepare: ?*BOOL) HRESULT { return @as(*const ICrmCompensator.VTable, @ptrCast(self.vtable)).EndPrepare(@as(*const ICrmCompensator, @ptrCast(self)), pfOkToPrepare); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ICrmCompensator_BeginCommit(self: *const T, fRecovery: BOOL) HRESULT { return @as(*const ICrmCompensator.VTable, @ptrCast(self.vtable)).BeginCommit(@as(*const ICrmCompensator, @ptrCast(self)), fRecovery); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ICrmCompensator_CommitRecord(self: *const T, crmLogRec: CrmLogRecordRead, pfForget: ?*BOOL) HRESULT { return @as(*const ICrmCompensator.VTable, @ptrCast(self.vtable)).CommitRecord(@as(*const ICrmCompensator, @ptrCast(self)), crmLogRec, pfForget); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ICrmCompensator_EndCommit(self: *const T) HRESULT { return @as(*const ICrmCompensator.VTable, @ptrCast(self.vtable)).EndCommit(@as(*const ICrmCompensator, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ICrmCompensator_BeginAbort(self: *const T, fRecovery: BOOL) HRESULT { return @as(*const ICrmCompensator.VTable, @ptrCast(self.vtable)).BeginAbort(@as(*const ICrmCompensator, @ptrCast(self)), fRecovery); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ICrmCompensator_AbortRecord(self: *const T, crmLogRec: CrmLogRecordRead, pfForget: ?*BOOL) HRESULT { return @as(*const ICrmCompensator.VTable, @ptrCast(self.vtable)).AbortRecord(@as(*const ICrmCompensator, @ptrCast(self)), crmLogRec, pfForget); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ICrmCompensator_EndAbort(self: *const T) HRESULT { return @as(*const ICrmCompensator.VTable, @ptrCast(self.vtable)).EndAbort(@as(*const ICrmCompensator, @ptrCast(self))); } }; } pub usingnamespace MethodMixin(@This()); }; pub const CrmTransactionState = enum(i32) { Active = 0, Committed = 1, Aborted = 2, Indoubt = 3, }; pub const TxState_Active = CrmTransactionState.Active; pub const TxState_Committed = CrmTransactionState.Committed; pub const TxState_Aborted = CrmTransactionState.Aborted; pub const TxState_Indoubt = CrmTransactionState.Indoubt; // TODO: this type is limited to platform 'windows5.0' const IID_ICrmMonitorLogRecords_Value = Guid.initString("70c8e441-c7ed-11d1-82fb-00a0c91eede9"); pub const IID_ICrmMonitorLogRecords = &IID_ICrmMonitorLogRecords_Value; pub const ICrmMonitorLogRecords = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Count: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ICrmMonitorLogRecords, pVal: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ICrmMonitorLogRecords, pVal: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_TransactionState: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ICrmMonitorLogRecords, pVal: ?*CrmTransactionState, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ICrmMonitorLogRecords, pVal: ?*CrmTransactionState, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_StructuredRecords: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ICrmMonitorLogRecords, pVal: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ICrmMonitorLogRecords, pVal: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetLogRecord: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ICrmMonitorLogRecords, dwIndex: u32, pCrmLogRec: ?*CrmLogRecordRead, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ICrmMonitorLogRecords, dwIndex: u32, pCrmLogRec: ?*CrmLogRecordRead, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetLogRecordVariants: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ICrmMonitorLogRecords, IndexNumber: VARIANT, pLogRecord: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ICrmMonitorLogRecords, IndexNumber: VARIANT, pLogRecord: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ICrmMonitorLogRecords_get_Count(self: *const T, pVal: ?*i32) HRESULT { return @as(*const ICrmMonitorLogRecords.VTable, @ptrCast(self.vtable)).get_Count(@as(*const ICrmMonitorLogRecords, @ptrCast(self)), pVal); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ICrmMonitorLogRecords_get_TransactionState(self: *const T, pVal: ?*CrmTransactionState) HRESULT { return @as(*const ICrmMonitorLogRecords.VTable, @ptrCast(self.vtable)).get_TransactionState(@as(*const ICrmMonitorLogRecords, @ptrCast(self)), pVal); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ICrmMonitorLogRecords_get_StructuredRecords(self: *const T, pVal: ?*i16) HRESULT { return @as(*const ICrmMonitorLogRecords.VTable, @ptrCast(self.vtable)).get_StructuredRecords(@as(*const ICrmMonitorLogRecords, @ptrCast(self)), pVal); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ICrmMonitorLogRecords_GetLogRecord(self: *const T, dwIndex: u32, pCrmLogRec: ?*CrmLogRecordRead) HRESULT { return @as(*const ICrmMonitorLogRecords.VTable, @ptrCast(self.vtable)).GetLogRecord(@as(*const ICrmMonitorLogRecords, @ptrCast(self)), dwIndex, pCrmLogRec); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ICrmMonitorLogRecords_GetLogRecordVariants(self: *const T, IndexNumber: VARIANT, pLogRecord: ?*VARIANT) HRESULT { return @as(*const ICrmMonitorLogRecords.VTable, @ptrCast(self.vtable)).GetLogRecordVariants(@as(*const ICrmMonitorLogRecords, @ptrCast(self)), IndexNumber, pLogRecord); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows5.0' const IID_ICrmMonitorClerks_Value = Guid.initString("70c8e442-c7ed-11d1-82fb-00a0c91eede9"); pub const IID_ICrmMonitorClerks = &IID_ICrmMonitorClerks_Value; pub const ICrmMonitorClerks = extern struct { pub const VTable = extern struct { base: IDispatch.VTable, Item: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ICrmMonitorClerks, Index: VARIANT, pItem: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ICrmMonitorClerks, Index: VARIANT, pItem: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get__NewEnum: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ICrmMonitorClerks, pVal: ?*?*IUnknown, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ICrmMonitorClerks, pVal: ?*?*IUnknown, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Count: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ICrmMonitorClerks, pVal: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ICrmMonitorClerks, pVal: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, ProgIdCompensator: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ICrmMonitorClerks, Index: VARIANT, pItem: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ICrmMonitorClerks, Index: VARIANT, pItem: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Description: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ICrmMonitorClerks, Index: VARIANT, pItem: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ICrmMonitorClerks, Index: VARIANT, pItem: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, TransactionUOW: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ICrmMonitorClerks, Index: VARIANT, pItem: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ICrmMonitorClerks, Index: VARIANT, pItem: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, ActivityId: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ICrmMonitorClerks, Index: VARIANT, pItem: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ICrmMonitorClerks, Index: VARIANT, pItem: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IDispatch.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ICrmMonitorClerks_Item(self: *const T, Index: VARIANT, pItem: ?*VARIANT) HRESULT { return @as(*const ICrmMonitorClerks.VTable, @ptrCast(self.vtable)).Item(@as(*const ICrmMonitorClerks, @ptrCast(self)), Index, pItem); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ICrmMonitorClerks_get__NewEnum(self: *const T, pVal: ?*?*IUnknown) HRESULT { return @as(*const ICrmMonitorClerks.VTable, @ptrCast(self.vtable)).get__NewEnum(@as(*const ICrmMonitorClerks, @ptrCast(self)), pVal); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ICrmMonitorClerks_get_Count(self: *const T, pVal: ?*i32) HRESULT { return @as(*const ICrmMonitorClerks.VTable, @ptrCast(self.vtable)).get_Count(@as(*const ICrmMonitorClerks, @ptrCast(self)), pVal); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ICrmMonitorClerks_ProgIdCompensator(self: *const T, Index: VARIANT, pItem: ?*VARIANT) HRESULT { return @as(*const ICrmMonitorClerks.VTable, @ptrCast(self.vtable)).ProgIdCompensator(@as(*const ICrmMonitorClerks, @ptrCast(self)), Index, pItem); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ICrmMonitorClerks_Description(self: *const T, Index: VARIANT, pItem: ?*VARIANT) HRESULT { return @as(*const ICrmMonitorClerks.VTable, @ptrCast(self.vtable)).Description(@as(*const ICrmMonitorClerks, @ptrCast(self)), Index, pItem); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ICrmMonitorClerks_TransactionUOW(self: *const T, Index: VARIANT, pItem: ?*VARIANT) HRESULT { return @as(*const ICrmMonitorClerks.VTable, @ptrCast(self.vtable)).TransactionUOW(@as(*const ICrmMonitorClerks, @ptrCast(self)), Index, pItem); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ICrmMonitorClerks_ActivityId(self: *const T, Index: VARIANT, pItem: ?*VARIANT) HRESULT { return @as(*const ICrmMonitorClerks.VTable, @ptrCast(self.vtable)).ActivityId(@as(*const ICrmMonitorClerks, @ptrCast(self)), Index, pItem); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows5.0' const IID_ICrmMonitor_Value = Guid.initString("70c8e443-c7ed-11d1-82fb-00a0c91eede9"); pub const IID_ICrmMonitor = &IID_ICrmMonitor_Value; pub const ICrmMonitor = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, GetClerks: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ICrmMonitor, pClerks: ?*?*ICrmMonitorClerks, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ICrmMonitor, pClerks: ?*?*ICrmMonitorClerks, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, HoldClerk: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ICrmMonitor, Index: VARIANT, pItem: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ICrmMonitor, Index: VARIANT, pItem: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ICrmMonitor_GetClerks(self: *const T, pClerks: ?*?*ICrmMonitorClerks) HRESULT { return @as(*const ICrmMonitor.VTable, @ptrCast(self.vtable)).GetClerks(@as(*const ICrmMonitor, @ptrCast(self)), pClerks); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ICrmMonitor_HoldClerk(self: *const T, Index: VARIANT, pItem: ?*VARIANT) HRESULT { return @as(*const ICrmMonitor.VTable, @ptrCast(self.vtable)).HoldClerk(@as(*const ICrmMonitor, @ptrCast(self)), Index, pItem); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows5.0' const IID_ICrmFormatLogRecords_Value = Guid.initString("9c51d821-c98b-11d1-82fb-00a0c91eede9"); pub const IID_ICrmFormatLogRecords = &IID_ICrmFormatLogRecords_Value; pub const ICrmFormatLogRecords = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, GetColumnCount: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ICrmFormatLogRecords, plColumnCount: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ICrmFormatLogRecords, plColumnCount: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetColumnHeaders: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ICrmFormatLogRecords, pHeaders: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ICrmFormatLogRecords, pHeaders: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetColumn: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ICrmFormatLogRecords, CrmLogRec: CrmLogRecordRead, pFormattedLogRecord: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ICrmFormatLogRecords, CrmLogRec: CrmLogRecordRead, pFormattedLogRecord: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetColumnVariants: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ICrmFormatLogRecords, LogRecord: VARIANT, pFormattedLogRecord: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ICrmFormatLogRecords, LogRecord: VARIANT, pFormattedLogRecord: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ICrmFormatLogRecords_GetColumnCount(self: *const T, plColumnCount: ?*i32) HRESULT { return @as(*const ICrmFormatLogRecords.VTable, @ptrCast(self.vtable)).GetColumnCount(@as(*const ICrmFormatLogRecords, @ptrCast(self)), plColumnCount); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ICrmFormatLogRecords_GetColumnHeaders(self: *const T, pHeaders: ?*VARIANT) HRESULT { return @as(*const ICrmFormatLogRecords.VTable, @ptrCast(self.vtable)).GetColumnHeaders(@as(*const ICrmFormatLogRecords, @ptrCast(self)), pHeaders); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ICrmFormatLogRecords_GetColumn(self: *const T, CrmLogRec: CrmLogRecordRead, pFormattedLogRecord: ?*VARIANT) HRESULT { return @as(*const ICrmFormatLogRecords.VTable, @ptrCast(self.vtable)).GetColumn(@as(*const ICrmFormatLogRecords, @ptrCast(self)), CrmLogRec, pFormattedLogRecord); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ICrmFormatLogRecords_GetColumnVariants(self: *const T, LogRecord: VARIANT, pFormattedLogRecord: ?*VARIANT) HRESULT { return @as(*const ICrmFormatLogRecords.VTable, @ptrCast(self.vtable)).GetColumnVariants(@as(*const ICrmFormatLogRecords, @ptrCast(self)), LogRecord, pFormattedLogRecord); } }; } pub usingnamespace MethodMixin(@This()); }; pub const CSC_InheritanceConfig = enum(i32) { nherit = 0, gnore = 1, }; pub const CSC_Inherit = CSC_InheritanceConfig.nherit; pub const CSC_Ignore = CSC_InheritanceConfig.gnore; pub const CSC_ThreadPool = enum(i32) { ThreadPoolNone = 0, ThreadPoolInherit = 1, STAThreadPool = 2, MTAThreadPool = 3, }; pub const CSC_ThreadPoolNone = CSC_ThreadPool.ThreadPoolNone; pub const CSC_ThreadPoolInherit = CSC_ThreadPool.ThreadPoolInherit; pub const CSC_STAThreadPool = CSC_ThreadPool.STAThreadPool; pub const CSC_MTAThreadPool = CSC_ThreadPool.MTAThreadPool; pub const CSC_Binding = enum(i32) { NoBinding = 0, BindToPoolThread = 1, }; pub const CSC_NoBinding = CSC_Binding.NoBinding; pub const CSC_BindToPoolThread = CSC_Binding.BindToPoolThread; pub const CSC_TransactionConfig = enum(i32) { NoTransaction = 0, IfContainerIsTransactional = 1, CreateTransactionIfNecessary = 2, NewTransaction = 3, }; pub const CSC_NoTransaction = CSC_TransactionConfig.NoTransaction; pub const CSC_IfContainerIsTransactional = CSC_TransactionConfig.IfContainerIsTransactional; pub const CSC_CreateTransactionIfNecessary = CSC_TransactionConfig.CreateTransactionIfNecessary; pub const CSC_NewTransaction = CSC_TransactionConfig.NewTransaction; pub const CSC_SynchronizationConfig = enum(i32) { NoSynchronization = 0, IfContainerIsSynchronized = 1, NewSynchronizationIfNecessary = 2, NewSynchronization = 3, }; pub const CSC_NoSynchronization = CSC_SynchronizationConfig.NoSynchronization; pub const CSC_IfContainerIsSynchronized = CSC_SynchronizationConfig.IfContainerIsSynchronized; pub const CSC_NewSynchronizationIfNecessary = CSC_SynchronizationConfig.NewSynchronizationIfNecessary; pub const CSC_NewSynchronization = CSC_SynchronizationConfig.NewSynchronization; pub const CSC_TrackerConfig = enum(i32) { DontUseTracker = 0, UseTracker = 1, }; pub const CSC_DontUseTracker = CSC_TrackerConfig.DontUseTracker; pub const CSC_UseTracker = CSC_TrackerConfig.UseTracker; pub const CSC_PartitionConfig = enum(i32) { NoPartition = 0, InheritPartition = 1, NewPartition = 2, }; pub const CSC_NoPartition = CSC_PartitionConfig.NoPartition; pub const CSC_InheritPartition = CSC_PartitionConfig.InheritPartition; pub const CSC_NewPartition = CSC_PartitionConfig.NewPartition; pub const CSC_IISIntrinsicsConfig = enum(i32) { NoIISIntrinsics = 0, InheritIISIntrinsics = 1, }; pub const CSC_NoIISIntrinsics = CSC_IISIntrinsicsConfig.NoIISIntrinsics; pub const CSC_InheritIISIntrinsics = CSC_IISIntrinsicsConfig.InheritIISIntrinsics; pub const CSC_COMTIIntrinsicsConfig = enum(i32) { NoCOMTIIntrinsics = 0, InheritCOMTIIntrinsics = 1, }; pub const CSC_NoCOMTIIntrinsics = CSC_COMTIIntrinsicsConfig.NoCOMTIIntrinsics; pub const CSC_InheritCOMTIIntrinsics = CSC_COMTIIntrinsicsConfig.InheritCOMTIIntrinsics; pub const CSC_SxsConfig = enum(i32) { NoSxs = 0, InheritSxs = 1, NewSxs = 2, }; pub const CSC_NoSxs = CSC_SxsConfig.NoSxs; pub const CSC_InheritSxs = CSC_SxsConfig.InheritSxs; pub const CSC_NewSxs = CSC_SxsConfig.NewSxs; // TODO: this type is limited to platform 'windows5.1.2600' const IID_IServiceIISIntrinsicsConfig_Value = Guid.initString("1a0cf920-d452-46f4-bc36-48118d54ea52"); pub const IID_IServiceIISIntrinsicsConfig = &IID_IServiceIISIntrinsicsConfig_Value; pub const IServiceIISIntrinsicsConfig = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, IISIntrinsicsConfig: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IServiceIISIntrinsicsConfig, iisIntrinsicsConfig: CSC_IISIntrinsicsConfig, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IServiceIISIntrinsicsConfig, iisIntrinsicsConfig: CSC_IISIntrinsicsConfig, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IServiceIISIntrinsicsConfig_IISIntrinsicsConfig(self: *const T, iisIntrinsicsConfig: CSC_IISIntrinsicsConfig) HRESULT { return @as(*const IServiceIISIntrinsicsConfig.VTable, @ptrCast(self.vtable)).IISIntrinsicsConfig(@as(*const IServiceIISIntrinsicsConfig, @ptrCast(self)), iisIntrinsicsConfig); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows5.1.2600' const IID_IServiceComTIIntrinsicsConfig_Value = Guid.initString("09e6831e-04e1-4ed4-9d0f-e8b168bafeaf"); pub const IID_IServiceComTIIntrinsicsConfig = &IID_IServiceComTIIntrinsicsConfig_Value; pub const IServiceComTIIntrinsicsConfig = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, ComTIIntrinsicsConfig: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IServiceComTIIntrinsicsConfig, comtiIntrinsicsConfig: CSC_COMTIIntrinsicsConfig, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IServiceComTIIntrinsicsConfig, comtiIntrinsicsConfig: CSC_COMTIIntrinsicsConfig, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IServiceComTIIntrinsicsConfig_ComTIIntrinsicsConfig(self: *const T, comtiIntrinsicsConfig: CSC_COMTIIntrinsicsConfig) HRESULT { return @as(*const IServiceComTIIntrinsicsConfig.VTable, @ptrCast(self.vtable)).ComTIIntrinsicsConfig(@as(*const IServiceComTIIntrinsicsConfig, @ptrCast(self)), comtiIntrinsicsConfig); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows5.1.2600' const IID_IServiceSxsConfig_Value = Guid.initString("c7cd7379-f3f2-4634-811b-703281d73e08"); pub const IID_IServiceSxsConfig = &IID_IServiceSxsConfig_Value; pub const IServiceSxsConfig = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, SxsConfig: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IServiceSxsConfig, scsConfig: CSC_SxsConfig, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IServiceSxsConfig, scsConfig: CSC_SxsConfig, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SxsName: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IServiceSxsConfig, szSxsName: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IServiceSxsConfig, szSxsName: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SxsDirectory: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IServiceSxsConfig, szSxsDirectory: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IServiceSxsConfig, szSxsDirectory: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IServiceSxsConfig_SxsConfig(self: *const T, scsConfig: CSC_SxsConfig) HRESULT { return @as(*const IServiceSxsConfig.VTable, @ptrCast(self.vtable)).SxsConfig(@as(*const IServiceSxsConfig, @ptrCast(self)), scsConfig); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IServiceSxsConfig_SxsName(self: *const T, szSxsName: ?[*:0]const u16) HRESULT { return @as(*const IServiceSxsConfig.VTable, @ptrCast(self.vtable)).SxsName(@as(*const IServiceSxsConfig, @ptrCast(self)), szSxsName); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IServiceSxsConfig_SxsDirectory(self: *const T, szSxsDirectory: ?[*:0]const u16) HRESULT { return @as(*const IServiceSxsConfig.VTable, @ptrCast(self.vtable)).SxsDirectory(@as(*const IServiceSxsConfig, @ptrCast(self)), szSxsDirectory); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows5.1.2600' const IID_ICheckSxsConfig_Value = Guid.initString("0ff5a96f-11fc-47d1-baa6-25dd347e7242"); pub const IID_ICheckSxsConfig = &IID_ICheckSxsConfig_Value; pub const ICheckSxsConfig = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, IsSameSxsConfig: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ICheckSxsConfig, wszSxsName: ?[*:0]const u16, wszSxsDirectory: ?[*:0]const u16, wszSxsAppName: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ICheckSxsConfig, wszSxsName: ?[*:0]const u16, wszSxsDirectory: ?[*:0]const u16, wszSxsAppName: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ICheckSxsConfig_IsSameSxsConfig(self: *const T, wszSxsName: ?[*:0]const u16, wszSxsDirectory: ?[*:0]const u16, wszSxsAppName: ?[*:0]const u16) HRESULT { return @as(*const ICheckSxsConfig.VTable, @ptrCast(self.vtable)).IsSameSxsConfig(@as(*const ICheckSxsConfig, @ptrCast(self)), wszSxsName, wszSxsDirectory, wszSxsAppName); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows5.1.2600' const IID_IServiceInheritanceConfig_Value = Guid.initString("92186771-d3b4-4d77-a8ea-ee842d586f35"); pub const IID_IServiceInheritanceConfig = &IID_IServiceInheritanceConfig_Value; pub const IServiceInheritanceConfig = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, ContainingContextTreatment: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IServiceInheritanceConfig, inheritanceConfig: CSC_InheritanceConfig, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IServiceInheritanceConfig, inheritanceConfig: CSC_InheritanceConfig, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IServiceInheritanceConfig_ContainingContextTreatment(self: *const T, inheritanceConfig: CSC_InheritanceConfig) HRESULT { return @as(*const IServiceInheritanceConfig.VTable, @ptrCast(self.vtable)).ContainingContextTreatment(@as(*const IServiceInheritanceConfig, @ptrCast(self)), inheritanceConfig); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows5.1.2600' const IID_IServiceThreadPoolConfig_Value = Guid.initString("186d89bc-f277-4bcc-80d5-4df7b836ef4a"); pub const IID_IServiceThreadPoolConfig = &IID_IServiceThreadPoolConfig_Value; pub const IServiceThreadPoolConfig = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, SelectThreadPool: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IServiceThreadPoolConfig, threadPool: CSC_ThreadPool, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IServiceThreadPoolConfig, threadPool: CSC_ThreadPool, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetBindingInfo: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IServiceThreadPoolConfig, binding: CSC_Binding, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IServiceThreadPoolConfig, binding: CSC_Binding, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IServiceThreadPoolConfig_SelectThreadPool(self: *const T, threadPool: CSC_ThreadPool) HRESULT { return @as(*const IServiceThreadPoolConfig.VTable, @ptrCast(self.vtable)).SelectThreadPool(@as(*const IServiceThreadPoolConfig, @ptrCast(self)), threadPool); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IServiceThreadPoolConfig_SetBindingInfo(self: *const T, binding: CSC_Binding) HRESULT { return @as(*const IServiceThreadPoolConfig.VTable, @ptrCast(self.vtable)).SetBindingInfo(@as(*const IServiceThreadPoolConfig, @ptrCast(self)), binding); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows5.1.2600' const IID_IServiceTransactionConfigBase_Value = Guid.initString("772b3fbe-6ffd-42fb-b5f8-8f9b260f3810"); pub const IID_IServiceTransactionConfigBase = &IID_IServiceTransactionConfigBase_Value; pub const IServiceTransactionConfigBase = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, ConfigureTransaction: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IServiceTransactionConfigBase, transactionConfig: CSC_TransactionConfig, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IServiceTransactionConfigBase, transactionConfig: CSC_TransactionConfig, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, IsolationLevel: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IServiceTransactionConfigBase, option: COMAdminTxIsolationLevelOptions, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IServiceTransactionConfigBase, option: COMAdminTxIsolationLevelOptions, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, TransactionTimeout: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IServiceTransactionConfigBase, ulTimeoutSec: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IServiceTransactionConfigBase, ulTimeoutSec: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, BringYourOwnTransaction: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IServiceTransactionConfigBase, szTipURL: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IServiceTransactionConfigBase, szTipURL: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, NewTransactionDescription: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IServiceTransactionConfigBase, szTxDesc: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IServiceTransactionConfigBase, szTxDesc: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IServiceTransactionConfigBase_ConfigureTransaction(self: *const T, transactionConfig: CSC_TransactionConfig) HRESULT { return @as(*const IServiceTransactionConfigBase.VTable, @ptrCast(self.vtable)).ConfigureTransaction(@as(*const IServiceTransactionConfigBase, @ptrCast(self)), transactionConfig); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IServiceTransactionConfigBase_IsolationLevel(self: *const T, option: COMAdminTxIsolationLevelOptions) HRESULT { return @as(*const IServiceTransactionConfigBase.VTable, @ptrCast(self.vtable)).IsolationLevel(@as(*const IServiceTransactionConfigBase, @ptrCast(self)), option); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IServiceTransactionConfigBase_TransactionTimeout(self: *const T, ulTimeoutSec: u32) HRESULT { return @as(*const IServiceTransactionConfigBase.VTable, @ptrCast(self.vtable)).TransactionTimeout(@as(*const IServiceTransactionConfigBase, @ptrCast(self)), ulTimeoutSec); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IServiceTransactionConfigBase_BringYourOwnTransaction(self: *const T, szTipURL: ?[*:0]const u16) HRESULT { return @as(*const IServiceTransactionConfigBase.VTable, @ptrCast(self.vtable)).BringYourOwnTransaction(@as(*const IServiceTransactionConfigBase, @ptrCast(self)), szTipURL); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IServiceTransactionConfigBase_NewTransactionDescription(self: *const T, szTxDesc: ?[*:0]const u16) HRESULT { return @as(*const IServiceTransactionConfigBase.VTable, @ptrCast(self.vtable)).NewTransactionDescription(@as(*const IServiceTransactionConfigBase, @ptrCast(self)), szTxDesc); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows5.1.2600' const IID_IServiceTransactionConfig_Value = Guid.initString("59f4c2a3-d3d7-4a31-b6e4-6ab3177c50b9"); pub const IID_IServiceTransactionConfig = &IID_IServiceTransactionConfig_Value; pub const IServiceTransactionConfig = extern struct { pub const VTable = extern struct { base: IServiceTransactionConfigBase.VTable, ConfigureBYOT: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IServiceTransactionConfig, pITxByot: ?*ITransaction, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IServiceTransactionConfig, pITxByot: ?*ITransaction, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IServiceTransactionConfigBase.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IServiceTransactionConfig_ConfigureBYOT(self: *const T, pITxByot: ?*ITransaction) HRESULT { return @as(*const IServiceTransactionConfig.VTable, @ptrCast(self.vtable)).ConfigureBYOT(@as(*const IServiceTransactionConfig, @ptrCast(self)), pITxByot); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows5.1.2600' const IID_IServiceSysTxnConfig_Value = Guid.initString("33caf1a1-fcb8-472b-b45e-967448ded6d8"); pub const IID_IServiceSysTxnConfig = &IID_IServiceSysTxnConfig_Value; pub const IServiceSysTxnConfig = extern struct { pub const VTable = extern struct { base: IServiceTransactionConfig.VTable, ConfigureBYOTSysTxn: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IServiceSysTxnConfig, pTxProxy: ?*ITransactionProxy, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IServiceSysTxnConfig, pTxProxy: ?*ITransactionProxy, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IServiceTransactionConfig.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IServiceSysTxnConfig_ConfigureBYOTSysTxn(self: *const T, pTxProxy: ?*ITransactionProxy) HRESULT { return @as(*const IServiceSysTxnConfig.VTable, @ptrCast(self.vtable)).ConfigureBYOTSysTxn(@as(*const IServiceSysTxnConfig, @ptrCast(self)), pTxProxy); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows5.1.2600' const IID_IServiceSynchronizationConfig_Value = Guid.initString("fd880e81-6dce-4c58-af83-a208846c0030"); pub const IID_IServiceSynchronizationConfig = &IID_IServiceSynchronizationConfig_Value; pub const IServiceSynchronizationConfig = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, ConfigureSynchronization: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IServiceSynchronizationConfig, synchConfig: CSC_SynchronizationConfig, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IServiceSynchronizationConfig, synchConfig: CSC_SynchronizationConfig, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IServiceSynchronizationConfig_ConfigureSynchronization(self: *const T, synchConfig: CSC_SynchronizationConfig) HRESULT { return @as(*const IServiceSynchronizationConfig.VTable, @ptrCast(self.vtable)).ConfigureSynchronization(@as(*const IServiceSynchronizationConfig, @ptrCast(self)), synchConfig); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows5.1.2600' const IID_IServiceTrackerConfig_Value = Guid.initString("6c3a3e1d-0ba6-4036-b76f-d0404db816c9"); pub const IID_IServiceTrackerConfig = &IID_IServiceTrackerConfig_Value; pub const IServiceTrackerConfig = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, TrackerConfig: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IServiceTrackerConfig, trackerConfig: CSC_TrackerConfig, szTrackerAppName: ?[*:0]const u16, szTrackerCtxName: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IServiceTrackerConfig, trackerConfig: CSC_TrackerConfig, szTrackerAppName: ?[*:0]const u16, szTrackerCtxName: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IServiceTrackerConfig_TrackerConfig(self: *const T, trackerConfig: CSC_TrackerConfig, szTrackerAppName: ?[*:0]const u16, szTrackerCtxName: ?[*:0]const u16) HRESULT { return @as(*const IServiceTrackerConfig.VTable, @ptrCast(self.vtable)).TrackerConfig(@as(*const IServiceTrackerConfig, @ptrCast(self)), trackerConfig, szTrackerAppName, szTrackerCtxName); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows5.1.2600' const IID_IServicePartitionConfig_Value = Guid.initString("80182d03-5ea4-4831-ae97-55beffc2e590"); pub const IID_IServicePartitionConfig = &IID_IServicePartitionConfig_Value; pub const IServicePartitionConfig = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, PartitionConfig: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IServicePartitionConfig, partitionConfig: CSC_PartitionConfig, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IServicePartitionConfig, partitionConfig: CSC_PartitionConfig, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, PartitionID: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IServicePartitionConfig, guidPartitionID: ?*const Guid, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IServicePartitionConfig, guidPartitionID: ?*const Guid, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IServicePartitionConfig_PartitionConfig(self: *const T, partitionConfig: CSC_PartitionConfig) HRESULT { return @as(*const IServicePartitionConfig.VTable, @ptrCast(self.vtable)).PartitionConfig(@as(*const IServicePartitionConfig, @ptrCast(self)), partitionConfig); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IServicePartitionConfig_PartitionID(self: *const T, guidPartitionID: ?*const Guid) HRESULT { return @as(*const IServicePartitionConfig.VTable, @ptrCast(self.vtable)).PartitionID(@as(*const IServicePartitionConfig, @ptrCast(self)), guidPartitionID); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows5.1.2600' const IID_IServiceCall_Value = Guid.initString("bd3e2e12-42dd-40f4-a09a-95a50c58304b"); pub const IID_IServiceCall = &IID_IServiceCall_Value; pub const IServiceCall = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, OnCall: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IServiceCall, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IServiceCall, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IServiceCall_OnCall(self: *const T) HRESULT { return @as(*const IServiceCall.VTable, @ptrCast(self.vtable)).OnCall(@as(*const IServiceCall, @ptrCast(self))); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows5.1.2600' const IID_IAsyncErrorNotify_Value = Guid.initString("fe6777fb-a674-4177-8f32-6d707e113484"); pub const IID_IAsyncErrorNotify = &IID_IAsyncErrorNotify_Value; pub const IAsyncErrorNotify = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, OnError: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IAsyncErrorNotify, hr: HRESULT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IAsyncErrorNotify, hr: HRESULT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IAsyncErrorNotify_OnError(self: *const T, hr: HRESULT) HRESULT { return @as(*const IAsyncErrorNotify.VTable, @ptrCast(self.vtable)).OnError(@as(*const IAsyncErrorNotify, @ptrCast(self)), hr); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows5.1.2600' const IID_IServiceActivity_Value = Guid.initString("67532e0c-9e2f-4450-a354-035633944e17"); pub const IID_IServiceActivity = &IID_IServiceActivity_Value; pub const IServiceActivity = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, SynchronousCall: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IServiceActivity, pIServiceCall: ?*IServiceCall, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IServiceActivity, pIServiceCall: ?*IServiceCall, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, AsynchronousCall: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IServiceActivity, pIServiceCall: ?*IServiceCall, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IServiceActivity, pIServiceCall: ?*IServiceCall, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, BindToCurrentThread: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IServiceActivity, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IServiceActivity, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, UnbindFromThread: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IServiceActivity, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IServiceActivity, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IServiceActivity_SynchronousCall(self: *const T, pIServiceCall: ?*IServiceCall) HRESULT { return @as(*const IServiceActivity.VTable, @ptrCast(self.vtable)).SynchronousCall(@as(*const IServiceActivity, @ptrCast(self)), pIServiceCall); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IServiceActivity_AsynchronousCall(self: *const T, pIServiceCall: ?*IServiceCall) HRESULT { return @as(*const IServiceActivity.VTable, @ptrCast(self.vtable)).AsynchronousCall(@as(*const IServiceActivity, @ptrCast(self)), pIServiceCall); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IServiceActivity_BindToCurrentThread(self: *const T) HRESULT { return @as(*const IServiceActivity.VTable, @ptrCast(self.vtable)).BindToCurrentThread(@as(*const IServiceActivity, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IServiceActivity_UnbindFromThread(self: *const T) HRESULT { return @as(*const IServiceActivity.VTable, @ptrCast(self.vtable)).UnbindFromThread(@as(*const IServiceActivity, @ptrCast(self))); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows5.0' const IID_IThreadPoolKnobs_Value = Guid.initString("51372af7-cae7-11cf-be81-00aa00a2fa25"); pub const IID_IThreadPoolKnobs = &IID_IThreadPoolKnobs_Value; pub const IThreadPoolKnobs = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, GetMaxThreads: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IThreadPoolKnobs, plcMaxThreads: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IThreadPoolKnobs, plcMaxThreads: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetCurrentThreads: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IThreadPoolKnobs, plcCurrentThreads: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IThreadPoolKnobs, plcCurrentThreads: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetMaxThreads: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IThreadPoolKnobs, lcMaxThreads: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IThreadPoolKnobs, lcMaxThreads: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetDeleteDelay: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IThreadPoolKnobs, pmsecDeleteDelay: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IThreadPoolKnobs, pmsecDeleteDelay: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetDeleteDelay: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IThreadPoolKnobs, msecDeleteDelay: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IThreadPoolKnobs, msecDeleteDelay: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetMaxQueuedRequests: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IThreadPoolKnobs, plcMaxQueuedRequests: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IThreadPoolKnobs, plcMaxQueuedRequests: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetCurrentQueuedRequests: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IThreadPoolKnobs, plcCurrentQueuedRequests: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IThreadPoolKnobs, plcCurrentQueuedRequests: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetMaxQueuedRequests: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IThreadPoolKnobs, lcMaxQueuedRequests: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IThreadPoolKnobs, lcMaxQueuedRequests: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetMinThreads: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IThreadPoolKnobs, lcMinThreads: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IThreadPoolKnobs, lcMinThreads: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetQueueDepth: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IThreadPoolKnobs, lcQueueDepth: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IThreadPoolKnobs, lcQueueDepth: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IThreadPoolKnobs_GetMaxThreads(self: *const T, plcMaxThreads: ?*i32) HRESULT { return @as(*const IThreadPoolKnobs.VTable, @ptrCast(self.vtable)).GetMaxThreads(@as(*const IThreadPoolKnobs, @ptrCast(self)), plcMaxThreads); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IThreadPoolKnobs_GetCurrentThreads(self: *const T, plcCurrentThreads: ?*i32) HRESULT { return @as(*const IThreadPoolKnobs.VTable, @ptrCast(self.vtable)).GetCurrentThreads(@as(*const IThreadPoolKnobs, @ptrCast(self)), plcCurrentThreads); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IThreadPoolKnobs_SetMaxThreads(self: *const T, lcMaxThreads: i32) HRESULT { return @as(*const IThreadPoolKnobs.VTable, @ptrCast(self.vtable)).SetMaxThreads(@as(*const IThreadPoolKnobs, @ptrCast(self)), lcMaxThreads); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IThreadPoolKnobs_GetDeleteDelay(self: *const T, pmsecDeleteDelay: ?*i32) HRESULT { return @as(*const IThreadPoolKnobs.VTable, @ptrCast(self.vtable)).GetDeleteDelay(@as(*const IThreadPoolKnobs, @ptrCast(self)), pmsecDeleteDelay); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IThreadPoolKnobs_SetDeleteDelay(self: *const T, msecDeleteDelay: i32) HRESULT { return @as(*const IThreadPoolKnobs.VTable, @ptrCast(self.vtable)).SetDeleteDelay(@as(*const IThreadPoolKnobs, @ptrCast(self)), msecDeleteDelay); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IThreadPoolKnobs_GetMaxQueuedRequests(self: *const T, plcMaxQueuedRequests: ?*i32) HRESULT { return @as(*const IThreadPoolKnobs.VTable, @ptrCast(self.vtable)).GetMaxQueuedRequests(@as(*const IThreadPoolKnobs, @ptrCast(self)), plcMaxQueuedRequests); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IThreadPoolKnobs_GetCurrentQueuedRequests(self: *const T, plcCurrentQueuedRequests: ?*i32) HRESULT { return @as(*const IThreadPoolKnobs.VTable, @ptrCast(self.vtable)).GetCurrentQueuedRequests(@as(*const IThreadPoolKnobs, @ptrCast(self)), plcCurrentQueuedRequests); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IThreadPoolKnobs_SetMaxQueuedRequests(self: *const T, lcMaxQueuedRequests: i32) HRESULT { return @as(*const IThreadPoolKnobs.VTable, @ptrCast(self.vtable)).SetMaxQueuedRequests(@as(*const IThreadPoolKnobs, @ptrCast(self)), lcMaxQueuedRequests); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IThreadPoolKnobs_SetMinThreads(self: *const T, lcMinThreads: i32) HRESULT { return @as(*const IThreadPoolKnobs.VTable, @ptrCast(self.vtable)).SetMinThreads(@as(*const IThreadPoolKnobs, @ptrCast(self)), lcMinThreads); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IThreadPoolKnobs_SetQueueDepth(self: *const T, lcQueueDepth: i32) HRESULT { return @as(*const IThreadPoolKnobs.VTable, @ptrCast(self.vtable)).SetQueueDepth(@as(*const IThreadPoolKnobs, @ptrCast(self)), lcQueueDepth); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IComStaThreadPoolKnobs_Value = Guid.initString("324b64fa-33b6-11d2-98b7-00c04f8ee1c4"); pub const IID_IComStaThreadPoolKnobs = &IID_IComStaThreadPoolKnobs_Value; pub const IComStaThreadPoolKnobs = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, SetMinThreadCount: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IComStaThreadPoolKnobs, minThreads: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IComStaThreadPoolKnobs, minThreads: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetMinThreadCount: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IComStaThreadPoolKnobs, minThreads: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IComStaThreadPoolKnobs, minThreads: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetMaxThreadCount: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IComStaThreadPoolKnobs, maxThreads: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IComStaThreadPoolKnobs, maxThreads: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetMaxThreadCount: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IComStaThreadPoolKnobs, maxThreads: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IComStaThreadPoolKnobs, maxThreads: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetActivityPerThread: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IComStaThreadPoolKnobs, activitiesPerThread: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IComStaThreadPoolKnobs, activitiesPerThread: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetActivityPerThread: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IComStaThreadPoolKnobs, activitiesPerThread: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IComStaThreadPoolKnobs, activitiesPerThread: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetActivityRatio: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IComStaThreadPoolKnobs, activityRatio: f64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IComStaThreadPoolKnobs, activityRatio: f64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetActivityRatio: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IComStaThreadPoolKnobs, activityRatio: ?*f64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IComStaThreadPoolKnobs, activityRatio: ?*f64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetThreadCount: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IComStaThreadPoolKnobs, pdwThreads: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IComStaThreadPoolKnobs, pdwThreads: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetQueueDepth: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IComStaThreadPoolKnobs, pdwQDepth: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IComStaThreadPoolKnobs, pdwQDepth: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetQueueDepth: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IComStaThreadPoolKnobs, dwQDepth: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IComStaThreadPoolKnobs, dwQDepth: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IComStaThreadPoolKnobs_SetMinThreadCount(self: *const T, minThreads: u32) HRESULT { return @as(*const IComStaThreadPoolKnobs.VTable, @ptrCast(self.vtable)).SetMinThreadCount(@as(*const IComStaThreadPoolKnobs, @ptrCast(self)), minThreads); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IComStaThreadPoolKnobs_GetMinThreadCount(self: *const T, minThreads: ?*u32) HRESULT { return @as(*const IComStaThreadPoolKnobs.VTable, @ptrCast(self.vtable)).GetMinThreadCount(@as(*const IComStaThreadPoolKnobs, @ptrCast(self)), minThreads); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IComStaThreadPoolKnobs_SetMaxThreadCount(self: *const T, maxThreads: u32) HRESULT { return @as(*const IComStaThreadPoolKnobs.VTable, @ptrCast(self.vtable)).SetMaxThreadCount(@as(*const IComStaThreadPoolKnobs, @ptrCast(self)), maxThreads); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IComStaThreadPoolKnobs_GetMaxThreadCount(self: *const T, maxThreads: ?*u32) HRESULT { return @as(*const IComStaThreadPoolKnobs.VTable, @ptrCast(self.vtable)).GetMaxThreadCount(@as(*const IComStaThreadPoolKnobs, @ptrCast(self)), maxThreads); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IComStaThreadPoolKnobs_SetActivityPerThread(self: *const T, activitiesPerThread: u32) HRESULT { return @as(*const IComStaThreadPoolKnobs.VTable, @ptrCast(self.vtable)).SetActivityPerThread(@as(*const IComStaThreadPoolKnobs, @ptrCast(self)), activitiesPerThread); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IComStaThreadPoolKnobs_GetActivityPerThread(self: *const T, activitiesPerThread: ?*u32) HRESULT { return @as(*const IComStaThreadPoolKnobs.VTable, @ptrCast(self.vtable)).GetActivityPerThread(@as(*const IComStaThreadPoolKnobs, @ptrCast(self)), activitiesPerThread); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IComStaThreadPoolKnobs_SetActivityRatio(self: *const T, activityRatio: f64) HRESULT { return @as(*const IComStaThreadPoolKnobs.VTable, @ptrCast(self.vtable)).SetActivityRatio(@as(*const IComStaThreadPoolKnobs, @ptrCast(self)), activityRatio); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IComStaThreadPoolKnobs_GetActivityRatio(self: *const T, activityRatio: ?*f64) HRESULT { return @as(*const IComStaThreadPoolKnobs.VTable, @ptrCast(self.vtable)).GetActivityRatio(@as(*const IComStaThreadPoolKnobs, @ptrCast(self)), activityRatio); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IComStaThreadPoolKnobs_GetThreadCount(self: *const T, pdwThreads: ?*u32) HRESULT { return @as(*const IComStaThreadPoolKnobs.VTable, @ptrCast(self.vtable)).GetThreadCount(@as(*const IComStaThreadPoolKnobs, @ptrCast(self)), pdwThreads); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IComStaThreadPoolKnobs_GetQueueDepth(self: *const T, pdwQDepth: ?*u32) HRESULT { return @as(*const IComStaThreadPoolKnobs.VTable, @ptrCast(self.vtable)).GetQueueDepth(@as(*const IComStaThreadPoolKnobs, @ptrCast(self)), pdwQDepth); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IComStaThreadPoolKnobs_SetQueueDepth(self: *const T, dwQDepth: i32) HRESULT { return @as(*const IComStaThreadPoolKnobs.VTable, @ptrCast(self.vtable)).SetQueueDepth(@as(*const IComStaThreadPoolKnobs, @ptrCast(self)), dwQDepth); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IComMtaThreadPoolKnobs_Value = Guid.initString("f9a76d2e-76a5-43eb-a0c4-49bec8e48480"); pub const IID_IComMtaThreadPoolKnobs = &IID_IComMtaThreadPoolKnobs_Value; pub const IComMtaThreadPoolKnobs = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, MTASetMaxThreadCount: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IComMtaThreadPoolKnobs, dwMaxThreads: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IComMtaThreadPoolKnobs, dwMaxThreads: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, MTAGetMaxThreadCount: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IComMtaThreadPoolKnobs, pdwMaxThreads: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IComMtaThreadPoolKnobs, pdwMaxThreads: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, MTASetThrottleValue: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IComMtaThreadPoolKnobs, dwThrottle: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IComMtaThreadPoolKnobs, dwThrottle: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, MTAGetThrottleValue: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IComMtaThreadPoolKnobs, pdwThrottle: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IComMtaThreadPoolKnobs, pdwThrottle: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IComMtaThreadPoolKnobs_MTASetMaxThreadCount(self: *const T, dwMaxThreads: u32) HRESULT { return @as(*const IComMtaThreadPoolKnobs.VTable, @ptrCast(self.vtable)).MTASetMaxThreadCount(@as(*const IComMtaThreadPoolKnobs, @ptrCast(self)), dwMaxThreads); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IComMtaThreadPoolKnobs_MTAGetMaxThreadCount(self: *const T, pdwMaxThreads: ?*u32) HRESULT { return @as(*const IComMtaThreadPoolKnobs.VTable, @ptrCast(self.vtable)).MTAGetMaxThreadCount(@as(*const IComMtaThreadPoolKnobs, @ptrCast(self)), pdwMaxThreads); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IComMtaThreadPoolKnobs_MTASetThrottleValue(self: *const T, dwThrottle: u32) HRESULT { return @as(*const IComMtaThreadPoolKnobs.VTable, @ptrCast(self.vtable)).MTASetThrottleValue(@as(*const IComMtaThreadPoolKnobs, @ptrCast(self)), dwThrottle); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IComMtaThreadPoolKnobs_MTAGetThrottleValue(self: *const T, pdwThrottle: ?*u32) HRESULT { return @as(*const IComMtaThreadPoolKnobs.VTable, @ptrCast(self.vtable)).MTAGetThrottleValue(@as(*const IComMtaThreadPoolKnobs, @ptrCast(self)), pdwThrottle); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IComStaThreadPoolKnobs2_Value = Guid.initString("73707523-ff9a-4974-bf84-2108dc213740"); pub const IID_IComStaThreadPoolKnobs2 = &IID_IComStaThreadPoolKnobs2_Value; pub const IComStaThreadPoolKnobs2 = extern struct { pub const VTable = extern struct { base: IComStaThreadPoolKnobs.VTable, GetMaxCPULoad: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IComStaThreadPoolKnobs2, pdwLoad: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IComStaThreadPoolKnobs2, pdwLoad: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetMaxCPULoad: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IComStaThreadPoolKnobs2, pdwLoad: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IComStaThreadPoolKnobs2, pdwLoad: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetCPUMetricEnabled: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IComStaThreadPoolKnobs2, pbMetricEnabled: ?*BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IComStaThreadPoolKnobs2, pbMetricEnabled: ?*BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetCPUMetricEnabled: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IComStaThreadPoolKnobs2, bMetricEnabled: BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IComStaThreadPoolKnobs2, bMetricEnabled: BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetCreateThreadsAggressively: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IComStaThreadPoolKnobs2, pbMetricEnabled: ?*BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IComStaThreadPoolKnobs2, pbMetricEnabled: ?*BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetCreateThreadsAggressively: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IComStaThreadPoolKnobs2, bMetricEnabled: BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IComStaThreadPoolKnobs2, bMetricEnabled: BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetMaxCSR: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IComStaThreadPoolKnobs2, pdwCSR: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IComStaThreadPoolKnobs2, pdwCSR: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetMaxCSR: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IComStaThreadPoolKnobs2, dwCSR: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IComStaThreadPoolKnobs2, dwCSR: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetWaitTimeForThreadCleanup: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IComStaThreadPoolKnobs2, pdwThreadCleanupWaitTime: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IComStaThreadPoolKnobs2, pdwThreadCleanupWaitTime: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetWaitTimeForThreadCleanup: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IComStaThreadPoolKnobs2, dwThreadCleanupWaitTime: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IComStaThreadPoolKnobs2, dwThreadCleanupWaitTime: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IComStaThreadPoolKnobs.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IComStaThreadPoolKnobs2_GetMaxCPULoad(self: *const T, pdwLoad: ?*u32) HRESULT { return @as(*const IComStaThreadPoolKnobs2.VTable, @ptrCast(self.vtable)).GetMaxCPULoad(@as(*const IComStaThreadPoolKnobs2, @ptrCast(self)), pdwLoad); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IComStaThreadPoolKnobs2_SetMaxCPULoad(self: *const T, pdwLoad: i32) HRESULT { return @as(*const IComStaThreadPoolKnobs2.VTable, @ptrCast(self.vtable)).SetMaxCPULoad(@as(*const IComStaThreadPoolKnobs2, @ptrCast(self)), pdwLoad); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IComStaThreadPoolKnobs2_GetCPUMetricEnabled(self: *const T, pbMetricEnabled: ?*BOOL) HRESULT { return @as(*const IComStaThreadPoolKnobs2.VTable, @ptrCast(self.vtable)).GetCPUMetricEnabled(@as(*const IComStaThreadPoolKnobs2, @ptrCast(self)), pbMetricEnabled); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IComStaThreadPoolKnobs2_SetCPUMetricEnabled(self: *const T, bMetricEnabled: BOOL) HRESULT { return @as(*const IComStaThreadPoolKnobs2.VTable, @ptrCast(self.vtable)).SetCPUMetricEnabled(@as(*const IComStaThreadPoolKnobs2, @ptrCast(self)), bMetricEnabled); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IComStaThreadPoolKnobs2_GetCreateThreadsAggressively(self: *const T, pbMetricEnabled: ?*BOOL) HRESULT { return @as(*const IComStaThreadPoolKnobs2.VTable, @ptrCast(self.vtable)).GetCreateThreadsAggressively(@as(*const IComStaThreadPoolKnobs2, @ptrCast(self)), pbMetricEnabled); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IComStaThreadPoolKnobs2_SetCreateThreadsAggressively(self: *const T, bMetricEnabled: BOOL) HRESULT { return @as(*const IComStaThreadPoolKnobs2.VTable, @ptrCast(self.vtable)).SetCreateThreadsAggressively(@as(*const IComStaThreadPoolKnobs2, @ptrCast(self)), bMetricEnabled); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IComStaThreadPoolKnobs2_GetMaxCSR(self: *const T, pdwCSR: ?*u32) HRESULT { return @as(*const IComStaThreadPoolKnobs2.VTable, @ptrCast(self.vtable)).GetMaxCSR(@as(*const IComStaThreadPoolKnobs2, @ptrCast(self)), pdwCSR); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IComStaThreadPoolKnobs2_SetMaxCSR(self: *const T, dwCSR: i32) HRESULT { return @as(*const IComStaThreadPoolKnobs2.VTable, @ptrCast(self.vtable)).SetMaxCSR(@as(*const IComStaThreadPoolKnobs2, @ptrCast(self)), dwCSR); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IComStaThreadPoolKnobs2_GetWaitTimeForThreadCleanup(self: *const T, pdwThreadCleanupWaitTime: ?*u32) HRESULT { return @as(*const IComStaThreadPoolKnobs2.VTable, @ptrCast(self.vtable)).GetWaitTimeForThreadCleanup(@as(*const IComStaThreadPoolKnobs2, @ptrCast(self)), pdwThreadCleanupWaitTime); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IComStaThreadPoolKnobs2_SetWaitTimeForThreadCleanup(self: *const T, dwThreadCleanupWaitTime: i32) HRESULT { return @as(*const IComStaThreadPoolKnobs2.VTable, @ptrCast(self.vtable)).SetWaitTimeForThreadCleanup(@as(*const IComStaThreadPoolKnobs2, @ptrCast(self)), dwThreadCleanupWaitTime); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows5.0' const IID_IProcessInitializer_Value = Guid.initString("1113f52d-dc7f-4943-aed6-88d04027e32a"); pub const IID_IProcessInitializer = &IID_IProcessInitializer_Value; pub const IProcessInitializer = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, Startup: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IProcessInitializer, punkProcessControl: ?*IUnknown, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IProcessInitializer, punkProcessControl: ?*IUnknown, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Shutdown: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IProcessInitializer, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IProcessInitializer, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IProcessInitializer_Startup(self: *const T, punkProcessControl: ?*IUnknown) HRESULT { return @as(*const IProcessInitializer.VTable, @ptrCast(self.vtable)).Startup(@as(*const IProcessInitializer, @ptrCast(self)), punkProcessControl); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IProcessInitializer_Shutdown(self: *const T) HRESULT { return @as(*const IProcessInitializer.VTable, @ptrCast(self.vtable)).Shutdown(@as(*const IProcessInitializer, @ptrCast(self))); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows5.1.2600' const IID_IServicePoolConfig_Value = Guid.initString("a9690656-5bca-470c-8451-250c1f43a33e"); pub const IID_IServicePoolConfig = &IID_IServicePoolConfig_Value; pub const IServicePoolConfig = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, // TODO: this function has a "SpecialName", should Zig do anything with this? put_MaxPoolSize: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IServicePoolConfig, dwMaxPool: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IServicePoolConfig, dwMaxPool: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_MaxPoolSize: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IServicePoolConfig, pdwMaxPool: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IServicePoolConfig, pdwMaxPool: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_MinPoolSize: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IServicePoolConfig, dwMinPool: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IServicePoolConfig, dwMinPool: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_MinPoolSize: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IServicePoolConfig, pdwMinPool: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IServicePoolConfig, pdwMinPool: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_CreationTimeout: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IServicePoolConfig, dwCreationTimeout: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IServicePoolConfig, dwCreationTimeout: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_CreationTimeout: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IServicePoolConfig, pdwCreationTimeout: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IServicePoolConfig, pdwCreationTimeout: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_TransactionAffinity: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IServicePoolConfig, fTxAffinity: BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IServicePoolConfig, fTxAffinity: BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_TransactionAffinity: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IServicePoolConfig, pfTxAffinity: ?*BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IServicePoolConfig, pfTxAffinity: ?*BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_ClassFactory: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IServicePoolConfig, pFactory: ?*IClassFactory, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IServicePoolConfig, pFactory: ?*IClassFactory, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_ClassFactory: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IServicePoolConfig, pFactory: ?*?*IClassFactory, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IServicePoolConfig, pFactory: ?*?*IClassFactory, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IServicePoolConfig_put_MaxPoolSize(self: *const T, dwMaxPool: u32) HRESULT { return @as(*const IServicePoolConfig.VTable, @ptrCast(self.vtable)).put_MaxPoolSize(@as(*const IServicePoolConfig, @ptrCast(self)), dwMaxPool); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IServicePoolConfig_get_MaxPoolSize(self: *const T, pdwMaxPool: ?*u32) HRESULT { return @as(*const IServicePoolConfig.VTable, @ptrCast(self.vtable)).get_MaxPoolSize(@as(*const IServicePoolConfig, @ptrCast(self)), pdwMaxPool); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IServicePoolConfig_put_MinPoolSize(self: *const T, dwMinPool: u32) HRESULT { return @as(*const IServicePoolConfig.VTable, @ptrCast(self.vtable)).put_MinPoolSize(@as(*const IServicePoolConfig, @ptrCast(self)), dwMinPool); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IServicePoolConfig_get_MinPoolSize(self: *const T, pdwMinPool: ?*u32) HRESULT { return @as(*const IServicePoolConfig.VTable, @ptrCast(self.vtable)).get_MinPoolSize(@as(*const IServicePoolConfig, @ptrCast(self)), pdwMinPool); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IServicePoolConfig_put_CreationTimeout(self: *const T, dwCreationTimeout: u32) HRESULT { return @as(*const IServicePoolConfig.VTable, @ptrCast(self.vtable)).put_CreationTimeout(@as(*const IServicePoolConfig, @ptrCast(self)), dwCreationTimeout); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IServicePoolConfig_get_CreationTimeout(self: *const T, pdwCreationTimeout: ?*u32) HRESULT { return @as(*const IServicePoolConfig.VTable, @ptrCast(self.vtable)).get_CreationTimeout(@as(*const IServicePoolConfig, @ptrCast(self)), pdwCreationTimeout); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IServicePoolConfig_put_TransactionAffinity(self: *const T, fTxAffinity: BOOL) HRESULT { return @as(*const IServicePoolConfig.VTable, @ptrCast(self.vtable)).put_TransactionAffinity(@as(*const IServicePoolConfig, @ptrCast(self)), fTxAffinity); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IServicePoolConfig_get_TransactionAffinity(self: *const T, pfTxAffinity: ?*BOOL) HRESULT { return @as(*const IServicePoolConfig.VTable, @ptrCast(self.vtable)).get_TransactionAffinity(@as(*const IServicePoolConfig, @ptrCast(self)), pfTxAffinity); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IServicePoolConfig_put_ClassFactory(self: *const T, pFactory: ?*IClassFactory) HRESULT { return @as(*const IServicePoolConfig.VTable, @ptrCast(self.vtable)).put_ClassFactory(@as(*const IServicePoolConfig, @ptrCast(self)), pFactory); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IServicePoolConfig_get_ClassFactory(self: *const T, pFactory: ?*?*IClassFactory) HRESULT { return @as(*const IServicePoolConfig.VTable, @ptrCast(self.vtable)).get_ClassFactory(@as(*const IServicePoolConfig, @ptrCast(self)), pFactory); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows5.0' const IID_IServicePool_Value = Guid.initString("b302df81-ea45-451e-99a2-09f9fd1b1e13"); pub const IID_IServicePool = &IID_IServicePool_Value; pub const IServicePool = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, Initialize: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IServicePool, pPoolConfig: ?*IUnknown, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IServicePool, pPoolConfig: ?*IUnknown, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetObject: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IServicePool, riid: ?*const Guid, ppv: ?*?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IServicePool, riid: ?*const Guid, ppv: ?*?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Shutdown: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IServicePool, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IServicePool, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IServicePool_Initialize(self: *const T, pPoolConfig: ?*IUnknown) HRESULT { return @as(*const IServicePool.VTable, @ptrCast(self.vtable)).Initialize(@as(*const IServicePool, @ptrCast(self)), pPoolConfig); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IServicePool_GetObject(self: *const T, riid: ?*const Guid, ppv: ?*?*anyopaque) HRESULT { return @as(*const IServicePool.VTable, @ptrCast(self.vtable)).GetObject(@as(*const IServicePool, @ptrCast(self)), riid, ppv); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IServicePool_Shutdown(self: *const T) HRESULT { return @as(*const IServicePool.VTable, @ptrCast(self.vtable)).Shutdown(@as(*const IServicePool, @ptrCast(self))); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows5.1.2600' const IID_IManagedPooledObj_Value = Guid.initString("c5da4bea-1b42-4437-8926-b6a38860a770"); pub const IID_IManagedPooledObj = &IID_IManagedPooledObj_Value; pub const IManagedPooledObj = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, SetHeld: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IManagedPooledObj, m_bHeld: BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IManagedPooledObj, m_bHeld: BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IManagedPooledObj_SetHeld(self: *const T, m_bHeld: BOOL) HRESULT { return @as(*const IManagedPooledObj.VTable, @ptrCast(self.vtable)).SetHeld(@as(*const IManagedPooledObj, @ptrCast(self)), m_bHeld); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows5.0' const IID_IManagedPoolAction_Value = Guid.initString("da91b74e-5388-4783-949d-c1cd5fb00506"); pub const IID_IManagedPoolAction = &IID_IManagedPoolAction_Value; pub const IManagedPoolAction = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, LastRelease: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IManagedPoolAction, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IManagedPoolAction, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IManagedPoolAction_LastRelease(self: *const T) HRESULT { return @as(*const IManagedPoolAction.VTable, @ptrCast(self.vtable)).LastRelease(@as(*const IManagedPoolAction, @ptrCast(self))); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows5.1.2600' const IID_IManagedObjectInfo_Value = Guid.initString("1427c51a-4584-49d8-90a0-c50d8086cbe9"); pub const IID_IManagedObjectInfo = &IID_IManagedObjectInfo_Value; pub const IManagedObjectInfo = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, GetIUnknown: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IManagedObjectInfo, pUnk: ?*?*IUnknown, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IManagedObjectInfo, pUnk: ?*?*IUnknown, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetIObjectControl: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IManagedObjectInfo, pCtrl: ?*?*IObjectControl, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IManagedObjectInfo, pCtrl: ?*?*IObjectControl, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetInPool: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IManagedObjectInfo, bInPool: BOOL, pPooledObj: ?*IManagedPooledObj, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IManagedObjectInfo, bInPool: BOOL, pPooledObj: ?*IManagedPooledObj, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetWrapperStrength: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IManagedObjectInfo, bStrong: BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IManagedObjectInfo, bStrong: BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IManagedObjectInfo_GetIUnknown(self: *const T, pUnk: ?*?*IUnknown) HRESULT { return @as(*const IManagedObjectInfo.VTable, @ptrCast(self.vtable)).GetIUnknown(@as(*const IManagedObjectInfo, @ptrCast(self)), pUnk); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IManagedObjectInfo_GetIObjectControl(self: *const T, pCtrl: ?*?*IObjectControl) HRESULT { return @as(*const IManagedObjectInfo.VTable, @ptrCast(self.vtable)).GetIObjectControl(@as(*const IManagedObjectInfo, @ptrCast(self)), pCtrl); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IManagedObjectInfo_SetInPool(self: *const T, bInPool: BOOL, pPooledObj: ?*IManagedPooledObj) HRESULT { return @as(*const IManagedObjectInfo.VTable, @ptrCast(self.vtable)).SetInPool(@as(*const IManagedObjectInfo, @ptrCast(self)), bInPool, pPooledObj); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IManagedObjectInfo_SetWrapperStrength(self: *const T, bStrong: BOOL) HRESULT { return @as(*const IManagedObjectInfo.VTable, @ptrCast(self.vtable)).SetWrapperStrength(@as(*const IManagedObjectInfo, @ptrCast(self)), bStrong); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows5.1.2600' const IID_IAppDomainHelper_Value = Guid.initString("c7b67079-8255-42c6-9ec0-6994a3548780"); pub const IID_IAppDomainHelper = &IID_IAppDomainHelper_Value; pub const IAppDomainHelper = extern struct { pub const VTable = extern struct { base: IDispatch.VTable, Initialize: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IAppDomainHelper, pUnkAD: ?*IUnknown, __MIDL__IAppDomainHelper0000: isize, pPool: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IAppDomainHelper, pUnkAD: ?*IUnknown, __MIDL__IAppDomainHelper0000: isize, pPool: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, DoCallback: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IAppDomainHelper, pUnkAD: ?*IUnknown, __MIDL__IAppDomainHelper0001: isize, pPool: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IAppDomainHelper, pUnkAD: ?*IUnknown, __MIDL__IAppDomainHelper0001: isize, pPool: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IDispatch.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IAppDomainHelper_Initialize(self: *const T, pUnkAD: ?*IUnknown, __MIDL__IAppDomainHelper0000: isize, pPool: ?*anyopaque) HRESULT { return @as(*const IAppDomainHelper.VTable, @ptrCast(self.vtable)).Initialize(@as(*const IAppDomainHelper, @ptrCast(self)), pUnkAD, __MIDL__IAppDomainHelper0000, pPool); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IAppDomainHelper_DoCallback(self: *const T, pUnkAD: ?*IUnknown, __MIDL__IAppDomainHelper0001: isize, pPool: ?*anyopaque) HRESULT { return @as(*const IAppDomainHelper.VTable, @ptrCast(self.vtable)).DoCallback(@as(*const IAppDomainHelper, @ptrCast(self)), pUnkAD, __MIDL__IAppDomainHelper0001, pPool); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows5.1.2600' const IID_IAssemblyLocator_Value = Guid.initString("391ffbb9-a8ee-432a-abc8-baa238dab90f"); pub const IID_IAssemblyLocator = &IID_IAssemblyLocator_Value; pub const IAssemblyLocator = extern struct { pub const VTable = extern struct { base: IDispatch.VTable, GetModules: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IAssemblyLocator, applicationDir: ?BSTR, applicationName: ?BSTR, assemblyName: ?BSTR, pModules: ?*?*SAFEARRAY, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IAssemblyLocator, applicationDir: ?BSTR, applicationName: ?BSTR, assemblyName: ?BSTR, pModules: ?*?*SAFEARRAY, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IDispatch.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IAssemblyLocator_GetModules(self: *const T, applicationDir: ?BSTR, applicationName: ?BSTR, assemblyName: ?BSTR, pModules: ?*?*SAFEARRAY) HRESULT { return @as(*const IAssemblyLocator.VTable, @ptrCast(self.vtable)).GetModules(@as(*const IAssemblyLocator, @ptrCast(self)), applicationDir, applicationName, assemblyName, pModules); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows5.1.2600' const IID_IManagedActivationEvents_Value = Guid.initString("a5f325af-572f-46da-b8ab-827c3d95d99e"); pub const IID_IManagedActivationEvents = &IID_IManagedActivationEvents_Value; pub const IManagedActivationEvents = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, CreateManagedStub: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IManagedActivationEvents, pInfo: ?*IManagedObjectInfo, fDist: BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IManagedActivationEvents, pInfo: ?*IManagedObjectInfo, fDist: BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, DestroyManagedStub: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IManagedActivationEvents, pInfo: ?*IManagedObjectInfo, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IManagedActivationEvents, pInfo: ?*IManagedObjectInfo, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IManagedActivationEvents_CreateManagedStub(self: *const T, pInfo: ?*IManagedObjectInfo, fDist: BOOL) HRESULT { return @as(*const IManagedActivationEvents.VTable, @ptrCast(self.vtable)).CreateManagedStub(@as(*const IManagedActivationEvents, @ptrCast(self)), pInfo, fDist); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IManagedActivationEvents_DestroyManagedStub(self: *const T, pInfo: ?*IManagedObjectInfo) HRESULT { return @as(*const IManagedActivationEvents.VTable, @ptrCast(self.vtable)).DestroyManagedStub(@as(*const IManagedActivationEvents, @ptrCast(self)), pInfo); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows5.0' const IID_ISendMethodEvents_Value = Guid.initString("2732fd59-b2b4-4d44-878c-8b8f09626008"); pub const IID_ISendMethodEvents = &IID_ISendMethodEvents_Value; pub const ISendMethodEvents = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, SendMethodCall: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ISendMethodEvents, pIdentity: ?*const anyopaque, riid: ?*const Guid, dwMeth: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ISendMethodEvents, pIdentity: ?*const anyopaque, riid: ?*const Guid, dwMeth: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SendMethodReturn: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ISendMethodEvents, pIdentity: ?*const anyopaque, riid: ?*const Guid, dwMeth: u32, hrCall: HRESULT, hrServer: HRESULT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ISendMethodEvents, pIdentity: ?*const anyopaque, riid: ?*const Guid, dwMeth: u32, hrCall: HRESULT, hrServer: HRESULT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISendMethodEvents_SendMethodCall(self: *const T, pIdentity: ?*const anyopaque, riid: ?*const Guid, dwMeth: u32) HRESULT { return @as(*const ISendMethodEvents.VTable, @ptrCast(self.vtable)).SendMethodCall(@as(*const ISendMethodEvents, @ptrCast(self)), pIdentity, riid, dwMeth); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISendMethodEvents_SendMethodReturn(self: *const T, pIdentity: ?*const anyopaque, riid: ?*const Guid, dwMeth: u32, hrCall: HRESULT, hrServer: HRESULT) HRESULT { return @as(*const ISendMethodEvents.VTable, @ptrCast(self.vtable)).SendMethodReturn(@as(*const ISendMethodEvents, @ptrCast(self)), pIdentity, riid, dwMeth, hrCall, hrServer); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows5.1.2600' const IID_ITransactionResourcePool_Value = Guid.initString("c5feb7c1-346a-11d1-b1cc-00aa00ba3258"); pub const IID_ITransactionResourcePool = &IID_ITransactionResourcePool_Value; pub const ITransactionResourcePool = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, PutResource: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ITransactionResourcePool, pPool: ?*IObjPool, pUnk: ?*IUnknown, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ITransactionResourcePool, pPool: ?*IObjPool, pUnk: ?*IUnknown, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetResource: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ITransactionResourcePool, pPool: ?*IObjPool, ppUnk: ?*?*IUnknown, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ITransactionResourcePool, pPool: ?*IObjPool, ppUnk: ?*?*IUnknown, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITransactionResourcePool_PutResource(self: *const T, pPool: ?*IObjPool, pUnk: ?*IUnknown) HRESULT { return @as(*const ITransactionResourcePool.VTable, @ptrCast(self.vtable)).PutResource(@as(*const ITransactionResourcePool, @ptrCast(self)), pPool, pUnk); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITransactionResourcePool_GetResource(self: *const T, pPool: ?*IObjPool, ppUnk: ?*?*IUnknown) HRESULT { return @as(*const ITransactionResourcePool.VTable, @ptrCast(self.vtable)).GetResource(@as(*const ITransactionResourcePool, @ptrCast(self)), pPool, ppUnk); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows5.0' const IID_IMTSCall_Value = Guid.initString("51372aef-cae7-11cf-be81-00aa00a2fa25"); pub const IID_IMTSCall = &IID_IMTSCall_Value; pub const IMTSCall = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, OnCall: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IMTSCall, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IMTSCall, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMTSCall_OnCall(self: *const T) HRESULT { return @as(*const IMTSCall.VTable, @ptrCast(self.vtable)).OnCall(@as(*const IMTSCall, @ptrCast(self))); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows5.0' const IID_IContextProperties_Value = Guid.initString("d396da85-bf8f-11d1-bbae-00c04fc2fa5f"); pub const IID_IContextProperties = &IID_IContextProperties_Value; pub const IContextProperties = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, Count: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IContextProperties, plCount: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IContextProperties, plCount: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetProperty: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IContextProperties, name: ?BSTR, pProperty: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IContextProperties, name: ?BSTR, pProperty: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, EnumNames: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IContextProperties, ppenum: ?*?*IEnumNames, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IContextProperties, ppenum: ?*?*IEnumNames, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetProperty: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IContextProperties, name: ?BSTR, property: VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IContextProperties, name: ?BSTR, property: VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, RemoveProperty: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IContextProperties, name: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IContextProperties, name: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IContextProperties_Count(self: *const T, plCount: ?*i32) HRESULT { return @as(*const IContextProperties.VTable, @ptrCast(self.vtable)).Count(@as(*const IContextProperties, @ptrCast(self)), plCount); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IContextProperties_GetProperty(self: *const T, name: ?BSTR, pProperty: ?*VARIANT) HRESULT { return @as(*const IContextProperties.VTable, @ptrCast(self.vtable)).GetProperty(@as(*const IContextProperties, @ptrCast(self)), name, pProperty); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IContextProperties_EnumNames(self: *const T, ppenum: ?*?*IEnumNames) HRESULT { return @as(*const IContextProperties.VTable, @ptrCast(self.vtable)).EnumNames(@as(*const IContextProperties, @ptrCast(self)), ppenum); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IContextProperties_SetProperty(self: *const T, name: ?BSTR, property: VARIANT) HRESULT { return @as(*const IContextProperties.VTable, @ptrCast(self.vtable)).SetProperty(@as(*const IContextProperties, @ptrCast(self)), name, property); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IContextProperties_RemoveProperty(self: *const T, name: ?BSTR) HRESULT { return @as(*const IContextProperties.VTable, @ptrCast(self.vtable)).RemoveProperty(@as(*const IContextProperties, @ptrCast(self)), name); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows5.1.2600' const IID_IObjPool_Value = Guid.initString("7d8805a0-2ea7-11d1-b1cc-00aa00ba3258"); pub const IID_IObjPool = &IID_IObjPool_Value; pub const IObjPool = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, Reserved1: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IObjPool, ) callconv(@import("std").os.windows.WINAPI) void, else => *const fn ( self: *const IObjPool, ) callconv(@import("std").os.windows.WINAPI) void, }, Reserved2: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IObjPool, ) callconv(@import("std").os.windows.WINAPI) void, else => *const fn ( self: *const IObjPool, ) callconv(@import("std").os.windows.WINAPI) void, }, Reserved3: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IObjPool, ) callconv(@import("std").os.windows.WINAPI) void, else => *const fn ( self: *const IObjPool, ) callconv(@import("std").os.windows.WINAPI) void, }, Reserved4: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IObjPool, ) callconv(@import("std").os.windows.WINAPI) void, else => *const fn ( self: *const IObjPool, ) callconv(@import("std").os.windows.WINAPI) void, }, PutEndTx: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IObjPool, pObj: ?*IUnknown, ) callconv(@import("std").os.windows.WINAPI) void, else => *const fn ( self: *const IObjPool, pObj: ?*IUnknown, ) callconv(@import("std").os.windows.WINAPI) void, }, Reserved5: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IObjPool, ) callconv(@import("std").os.windows.WINAPI) void, else => *const fn ( self: *const IObjPool, ) callconv(@import("std").os.windows.WINAPI) void, }, Reserved6: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IObjPool, ) callconv(@import("std").os.windows.WINAPI) void, else => *const fn ( self: *const IObjPool, ) callconv(@import("std").os.windows.WINAPI) void, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IObjPool_Reserved1(self: *const T) void { return @as(*const IObjPool.VTable, @ptrCast(self.vtable)).Reserved1(@as(*const IObjPool, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IObjPool_Reserved2(self: *const T) void { return @as(*const IObjPool.VTable, @ptrCast(self.vtable)).Reserved2(@as(*const IObjPool, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IObjPool_Reserved3(self: *const T) void { return @as(*const IObjPool.VTable, @ptrCast(self.vtable)).Reserved3(@as(*const IObjPool, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IObjPool_Reserved4(self: *const T) void { return @as(*const IObjPool.VTable, @ptrCast(self.vtable)).Reserved4(@as(*const IObjPool, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IObjPool_PutEndTx(self: *const T, pObj: ?*IUnknown) void { return @as(*const IObjPool.VTable, @ptrCast(self.vtable)).PutEndTx(@as(*const IObjPool, @ptrCast(self)), pObj); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IObjPool_Reserved5(self: *const T) void { return @as(*const IObjPool.VTable, @ptrCast(self.vtable)).Reserved5(@as(*const IObjPool, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IObjPool_Reserved6(self: *const T) void { return @as(*const IObjPool.VTable, @ptrCast(self.vtable)).Reserved6(@as(*const IObjPool, @ptrCast(self))); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows5.1.2600' const IID_ITransactionProperty_Value = Guid.initString("788ea814-87b1-11d1-bba6-00c04fc2fa5f"); pub const IID_ITransactionProperty = &IID_ITransactionProperty_Value; pub const ITransactionProperty = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, Reserved1: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ITransactionProperty, ) callconv(@import("std").os.windows.WINAPI) void, else => *const fn ( self: *const ITransactionProperty, ) callconv(@import("std").os.windows.WINAPI) void, }, Reserved2: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ITransactionProperty, ) callconv(@import("std").os.windows.WINAPI) void, else => *const fn ( self: *const ITransactionProperty, ) callconv(@import("std").os.windows.WINAPI) void, }, Reserved3: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ITransactionProperty, ) callconv(@import("std").os.windows.WINAPI) void, else => *const fn ( self: *const ITransactionProperty, ) callconv(@import("std").os.windows.WINAPI) void, }, Reserved4: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ITransactionProperty, ) callconv(@import("std").os.windows.WINAPI) void, else => *const fn ( self: *const ITransactionProperty, ) callconv(@import("std").os.windows.WINAPI) void, }, Reserved5: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ITransactionProperty, ) callconv(@import("std").os.windows.WINAPI) void, else => *const fn ( self: *const ITransactionProperty, ) callconv(@import("std").os.windows.WINAPI) void, }, Reserved6: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ITransactionProperty, ) callconv(@import("std").os.windows.WINAPI) void, else => *const fn ( self: *const ITransactionProperty, ) callconv(@import("std").os.windows.WINAPI) void, }, Reserved7: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ITransactionProperty, ) callconv(@import("std").os.windows.WINAPI) void, else => *const fn ( self: *const ITransactionProperty, ) callconv(@import("std").os.windows.WINAPI) void, }, Reserved8: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ITransactionProperty, ) callconv(@import("std").os.windows.WINAPI) void, else => *const fn ( self: *const ITransactionProperty, ) callconv(@import("std").os.windows.WINAPI) void, }, Reserved9: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ITransactionProperty, ) callconv(@import("std").os.windows.WINAPI) void, else => *const fn ( self: *const ITransactionProperty, ) callconv(@import("std").os.windows.WINAPI) void, }, GetTransactionResourcePool: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ITransactionProperty, ppTxPool: ?*?*ITransactionResourcePool, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ITransactionProperty, ppTxPool: ?*?*ITransactionResourcePool, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Reserved10: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ITransactionProperty, ) callconv(@import("std").os.windows.WINAPI) void, else => *const fn ( self: *const ITransactionProperty, ) callconv(@import("std").os.windows.WINAPI) void, }, Reserved11: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ITransactionProperty, ) callconv(@import("std").os.windows.WINAPI) void, else => *const fn ( self: *const ITransactionProperty, ) callconv(@import("std").os.windows.WINAPI) void, }, Reserved12: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ITransactionProperty, ) callconv(@import("std").os.windows.WINAPI) void, else => *const fn ( self: *const ITransactionProperty, ) callconv(@import("std").os.windows.WINAPI) void, }, Reserved13: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ITransactionProperty, ) callconv(@import("std").os.windows.WINAPI) void, else => *const fn ( self: *const ITransactionProperty, ) callconv(@import("std").os.windows.WINAPI) void, }, Reserved14: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ITransactionProperty, ) callconv(@import("std").os.windows.WINAPI) void, else => *const fn ( self: *const ITransactionProperty, ) callconv(@import("std").os.windows.WINAPI) void, }, Reserved15: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ITransactionProperty, ) callconv(@import("std").os.windows.WINAPI) void, else => *const fn ( self: *const ITransactionProperty, ) callconv(@import("std").os.windows.WINAPI) void, }, Reserved16: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ITransactionProperty, ) callconv(@import("std").os.windows.WINAPI) void, else => *const fn ( self: *const ITransactionProperty, ) callconv(@import("std").os.windows.WINAPI) void, }, Reserved17: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ITransactionProperty, ) callconv(@import("std").os.windows.WINAPI) void, else => *const fn ( self: *const ITransactionProperty, ) callconv(@import("std").os.windows.WINAPI) void, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITransactionProperty_Reserved1(self: *const T) void { return @as(*const ITransactionProperty.VTable, @ptrCast(self.vtable)).Reserved1(@as(*const ITransactionProperty, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITransactionProperty_Reserved2(self: *const T) void { return @as(*const ITransactionProperty.VTable, @ptrCast(self.vtable)).Reserved2(@as(*const ITransactionProperty, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITransactionProperty_Reserved3(self: *const T) void { return @as(*const ITransactionProperty.VTable, @ptrCast(self.vtable)).Reserved3(@as(*const ITransactionProperty, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITransactionProperty_Reserved4(self: *const T) void { return @as(*const ITransactionProperty.VTable, @ptrCast(self.vtable)).Reserved4(@as(*const ITransactionProperty, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITransactionProperty_Reserved5(self: *const T) void { return @as(*const ITransactionProperty.VTable, @ptrCast(self.vtable)).Reserved5(@as(*const ITransactionProperty, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITransactionProperty_Reserved6(self: *const T) void { return @as(*const ITransactionProperty.VTable, @ptrCast(self.vtable)).Reserved6(@as(*const ITransactionProperty, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITransactionProperty_Reserved7(self: *const T) void { return @as(*const ITransactionProperty.VTable, @ptrCast(self.vtable)).Reserved7(@as(*const ITransactionProperty, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITransactionProperty_Reserved8(self: *const T) void { return @as(*const ITransactionProperty.VTable, @ptrCast(self.vtable)).Reserved8(@as(*const ITransactionProperty, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITransactionProperty_Reserved9(self: *const T) void { return @as(*const ITransactionProperty.VTable, @ptrCast(self.vtable)).Reserved9(@as(*const ITransactionProperty, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITransactionProperty_GetTransactionResourcePool(self: *const T, ppTxPool: ?*?*ITransactionResourcePool) HRESULT { return @as(*const ITransactionProperty.VTable, @ptrCast(self.vtable)).GetTransactionResourcePool(@as(*const ITransactionProperty, @ptrCast(self)), ppTxPool); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITransactionProperty_Reserved10(self: *const T) void { return @as(*const ITransactionProperty.VTable, @ptrCast(self.vtable)).Reserved10(@as(*const ITransactionProperty, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITransactionProperty_Reserved11(self: *const T) void { return @as(*const ITransactionProperty.VTable, @ptrCast(self.vtable)).Reserved11(@as(*const ITransactionProperty, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITransactionProperty_Reserved12(self: *const T) void { return @as(*const ITransactionProperty.VTable, @ptrCast(self.vtable)).Reserved12(@as(*const ITransactionProperty, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITransactionProperty_Reserved13(self: *const T) void { return @as(*const ITransactionProperty.VTable, @ptrCast(self.vtable)).Reserved13(@as(*const ITransactionProperty, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITransactionProperty_Reserved14(self: *const T) void { return @as(*const ITransactionProperty.VTable, @ptrCast(self.vtable)).Reserved14(@as(*const ITransactionProperty, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITransactionProperty_Reserved15(self: *const T) void { return @as(*const ITransactionProperty.VTable, @ptrCast(self.vtable)).Reserved15(@as(*const ITransactionProperty, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITransactionProperty_Reserved16(self: *const T) void { return @as(*const ITransactionProperty.VTable, @ptrCast(self.vtable)).Reserved16(@as(*const ITransactionProperty, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITransactionProperty_Reserved17(self: *const T) void { return @as(*const ITransactionProperty.VTable, @ptrCast(self.vtable)).Reserved17(@as(*const ITransactionProperty, @ptrCast(self))); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows5.0' const IID_IMTSActivity_Value = Guid.initString("51372af0-cae7-11cf-be81-00aa00a2fa25"); pub const IID_IMTSActivity = &IID_IMTSActivity_Value; pub const IMTSActivity = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, SynchronousCall: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IMTSActivity, pCall: ?*IMTSCall, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IMTSActivity, pCall: ?*IMTSCall, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, AsyncCall: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IMTSActivity, pCall: ?*IMTSCall, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IMTSActivity, pCall: ?*IMTSCall, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Reserved1: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IMTSActivity, ) callconv(@import("std").os.windows.WINAPI) void, else => *const fn ( self: *const IMTSActivity, ) callconv(@import("std").os.windows.WINAPI) void, }, BindToCurrentThread: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IMTSActivity, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IMTSActivity, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, UnbindFromThread: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IMTSActivity, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IMTSActivity, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMTSActivity_SynchronousCall(self: *const T, pCall: ?*IMTSCall) HRESULT { return @as(*const IMTSActivity.VTable, @ptrCast(self.vtable)).SynchronousCall(@as(*const IMTSActivity, @ptrCast(self)), pCall); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMTSActivity_AsyncCall(self: *const T, pCall: ?*IMTSCall) HRESULT { return @as(*const IMTSActivity.VTable, @ptrCast(self.vtable)).AsyncCall(@as(*const IMTSActivity, @ptrCast(self)), pCall); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMTSActivity_Reserved1(self: *const T) void { return @as(*const IMTSActivity.VTable, @ptrCast(self.vtable)).Reserved1(@as(*const IMTSActivity, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMTSActivity_BindToCurrentThread(self: *const T) HRESULT { return @as(*const IMTSActivity.VTable, @ptrCast(self.vtable)).BindToCurrentThread(@as(*const IMTSActivity, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMTSActivity_UnbindFromThread(self: *const T) HRESULT { return @as(*const IMTSActivity.VTable, @ptrCast(self.vtable)).UnbindFromThread(@as(*const IMTSActivity, @ptrCast(self))); } }; } pub usingnamespace MethodMixin(@This()); }; pub const AutoSvcs_Error_Constants = enum(u32) { mtsErrCtxAborted = 2147803138, mtsErrCtxAborting = 2147803139, mtsErrCtxNoContext = 2147803140, mtsErrCtxNotRegistered = 2147803141, mtsErrCtxSynchTimeout = 2147803142, mtsErrCtxOldReference = 2147803143, mtsErrCtxRoleNotFound = 2147803148, mtsErrCtxNoSecurity = 2147803149, mtsErrCtxWrongThread = 2147803150, mtsErrCtxTMNotAvailable = 2147803151, comQCErrApplicationNotQueued = 2148599296, comQCErrNoQueueableInterfaces = 2148599297, comQCErrQueuingServiceNotAvailable = 2148599298, comQCErrQueueTransactMismatch = 2148599299, comqcErrRecorderMarshalled = 2148599300, comqcErrOutParam = 2148599301, comqcErrRecorderNotTrusted = 2148599302, comqcErrPSLoad = 2148599303, comqcErrMarshaledObjSameTxn = 2148599304, comqcErrInvalidMessage = 2148599376, comqcErrMsmqSidUnavailable = 2148599377, comqcErrWrongMsgExtension = 2148599378, comqcErrMsmqServiceUnavailable = 2148599379, comqcErrMsgNotAuthenticated = 2148599380, comqcErrMsmqConnectorUsed = 2148599381, comqcErrBadMarshaledObject = 2148599382, }; pub const mtsErrCtxAborted = AutoSvcs_Error_Constants.mtsErrCtxAborted; pub const mtsErrCtxAborting = AutoSvcs_Error_Constants.mtsErrCtxAborting; pub const mtsErrCtxNoContext = AutoSvcs_Error_Constants.mtsErrCtxNoContext; pub const mtsErrCtxNotRegistered = AutoSvcs_Error_Constants.mtsErrCtxNotRegistered; pub const mtsErrCtxSynchTimeout = AutoSvcs_Error_Constants.mtsErrCtxSynchTimeout; pub const mtsErrCtxOldReference = AutoSvcs_Error_Constants.mtsErrCtxOldReference; pub const mtsErrCtxRoleNotFound = AutoSvcs_Error_Constants.mtsErrCtxRoleNotFound; pub const mtsErrCtxNoSecurity = AutoSvcs_Error_Constants.mtsErrCtxNoSecurity; pub const mtsErrCtxWrongThread = AutoSvcs_Error_Constants.mtsErrCtxWrongThread; pub const mtsErrCtxTMNotAvailable = AutoSvcs_Error_Constants.mtsErrCtxTMNotAvailable; pub const comQCErrApplicationNotQueued = AutoSvcs_Error_Constants.comQCErrApplicationNotQueued; pub const comQCErrNoQueueableInterfaces = AutoSvcs_Error_Constants.comQCErrNoQueueableInterfaces; pub const comQCErrQueuingServiceNotAvailable = AutoSvcs_Error_Constants.comQCErrQueuingServiceNotAvailable; pub const comQCErrQueueTransactMismatch = AutoSvcs_Error_Constants.comQCErrQueueTransactMismatch; pub const comqcErrRecorderMarshalled = AutoSvcs_Error_Constants.comqcErrRecorderMarshalled; pub const comqcErrOutParam = AutoSvcs_Error_Constants.comqcErrOutParam; pub const comqcErrRecorderNotTrusted = AutoSvcs_Error_Constants.comqcErrRecorderNotTrusted; pub const comqcErrPSLoad = AutoSvcs_Error_Constants.comqcErrPSLoad; pub const comqcErrMarshaledObjSameTxn = AutoSvcs_Error_Constants.comqcErrMarshaledObjSameTxn; pub const comqcErrInvalidMessage = AutoSvcs_Error_Constants.comqcErrInvalidMessage; pub const comqcErrMsmqSidUnavailable = AutoSvcs_Error_Constants.comqcErrMsmqSidUnavailable; pub const comqcErrWrongMsgExtension = AutoSvcs_Error_Constants.comqcErrWrongMsgExtension; pub const comqcErrMsmqServiceUnavailable = AutoSvcs_Error_Constants.comqcErrMsmqServiceUnavailable; pub const comqcErrMsgNotAuthenticated = AutoSvcs_Error_Constants.comqcErrMsgNotAuthenticated; pub const comqcErrMsmqConnectorUsed = AutoSvcs_Error_Constants.comqcErrMsmqConnectorUsed; pub const comqcErrBadMarshaledObject = AutoSvcs_Error_Constants.comqcErrBadMarshaledObject; pub const LockModes = enum(i32) { SetGet = 0, Method = 1, }; pub const LockSetGet = LockModes.SetGet; pub const LockMethod = LockModes.Method; pub const ReleaseModes = enum(i32) { Standard = 0, Process = 1, }; pub const Standard = ReleaseModes.Standard; pub const Process = ReleaseModes.Process; pub const CRMFLAGS = enum(i32) { FORGETTARGET = 1, WRITTENDURINGPREPARE = 2, WRITTENDURINGCOMMIT = 4, WRITTENDURINGABORT = 8, WRITTENDURINGRECOVERY = 16, WRITTENDURINGREPLAY = 32, REPLAYINPROGRESS = 64, }; pub const CRMFLAG_FORGETTARGET = CRMFLAGS.FORGETTARGET; pub const CRMFLAG_WRITTENDURINGPREPARE = CRMFLAGS.WRITTENDURINGPREPARE; pub const CRMFLAG_WRITTENDURINGCOMMIT = CRMFLAGS.WRITTENDURINGCOMMIT; pub const CRMFLAG_WRITTENDURINGABORT = CRMFLAGS.WRITTENDURINGABORT; pub const CRMFLAG_WRITTENDURINGRECOVERY = CRMFLAGS.WRITTENDURINGRECOVERY; pub const CRMFLAG_WRITTENDURINGREPLAY = CRMFLAGS.WRITTENDURINGREPLAY; pub const CRMFLAG_REPLAYINPROGRESS = CRMFLAGS.REPLAYINPROGRESS; pub const CRMREGFLAGS = enum(i32) { PREPAREPHASE = 1, COMMITPHASE = 2, ABORTPHASE = 4, ALLPHASES = 7, FAILIFINDOUBTSREMAIN = 16, }; pub const CRMREGFLAG_PREPAREPHASE = CRMREGFLAGS.PREPAREPHASE; pub const CRMREGFLAG_COMMITPHASE = CRMREGFLAGS.COMMITPHASE; pub const CRMREGFLAG_ABORTPHASE = CRMREGFLAGS.ABORTPHASE; pub const CRMREGFLAG_ALLPHASES = CRMREGFLAGS.ALLPHASES; pub const CRMREGFLAG_FAILIFINDOUBTSREMAIN = CRMREGFLAGS.FAILIFINDOUBTSREMAIN; //-------------------------------------------------------------------------------- // Section: Functions (9) //-------------------------------------------------------------------------------- // TODO: this type is limited to platform 'windows5.1.2600' pub extern "ole32" fn CoGetDefaultContext( aptType: APTTYPE, riid: ?*const Guid, ppv: ?*?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) HRESULT; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "comsvcs" fn CoCreateActivity( pIUnknown: ?*IUnknown, riid: ?*const Guid, ppObj: ?*?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) HRESULT; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "comsvcs" fn CoEnterServiceDomain( pConfigObject: ?*IUnknown, ) callconv(@import("std").os.windows.WINAPI) HRESULT; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "comsvcs" fn CoLeaveServiceDomain( pUnkStatus: ?*IUnknown, ) callconv(@import("std").os.windows.WINAPI) void; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "comsvcs" fn GetManagedExtensions( dwExts: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT; // TODO: this type is limited to platform 'windows5.0' pub extern "comsvcs" fn SafeRef( rid: ?*const Guid, pUnk: ?*IUnknown, ) callconv(@import("std").os.windows.WINAPI) ?*anyopaque; // TODO: this type is limited to platform 'windows5.0' pub extern "comsvcs" fn RecycleSurrogate( lReasonCode: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT; // TODO: this type is limited to platform 'windows5.0' pub extern "comsvcs" fn MTSCreateActivity( riid: ?*const Guid, ppobj: ?*?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) HRESULT; // TODO: this type is limited to platform 'windows5.0' pub extern "mtxdm" fn GetDispenserManager( param0: ?*?*IDispenserManager, ) callconv(@import("std").os.windows.WINAPI) HRESULT; //-------------------------------------------------------------------------------- // Section: Unicode Aliases (0) //-------------------------------------------------------------------------------- const thismodule = @This(); pub usingnamespace switch (@import("../zig.zig").unicode_mode) { .ansi => struct {}, .wide => struct {}, .unspecified => if (@import("builtin").is_test) struct {} else struct {}, }; //-------------------------------------------------------------------------------- // Section: Imports (17) //-------------------------------------------------------------------------------- const Guid = @import("../zig.zig").Guid; const APTTYPE = @import("../system/com.zig").APTTYPE; const BLOB = @import("../system/com.zig").BLOB; const BOOL = @import("../foundation.zig").BOOL; const BSTR = @import("../foundation.zig").BSTR; const FILETIME = @import("../foundation.zig").FILETIME; const HRESULT = @import("../foundation.zig").HRESULT; const IClassFactory = @import("../system/com.zig").IClassFactory; const IDispatch = @import("../system/com.zig").IDispatch; const ITransaction = @import("../system/distributed_transaction_coordinator.zig").ITransaction; const ITransactionVoterBallotAsync2 = @import("../system/distributed_transaction_coordinator.zig").ITransactionVoterBallotAsync2; const ITransactionVoterNotifyAsync2 = @import("../system/distributed_transaction_coordinator.zig").ITransactionVoterNotifyAsync2; const IUnknown = @import("../system/com.zig").IUnknown; const PSID = @import("../foundation.zig").PSID; const PWSTR = @import("../foundation.zig").PWSTR; const SAFEARRAY = @import("../system/com.zig").SAFEARRAY; const VARIANT = @import("../system/com.zig").VARIANT; test { @setEvalBranchQuota(comptime @import("std").meta.declarations(@This()).len * 3); // reference all the pub declarations if (!@import("builtin").is_test) return; inline for (comptime @import("std").meta.declarations(@This())) |decl| { if (decl.is_pub) { _ = @field(@This(), decl.name); } } }
0
repos/capy/vendor/zigwin32/win32
repos/capy/vendor/zigwin32/win32/system/desktop_sharing.zig
//! NOTE: this file is autogenerated, DO NOT MODIFY //-------------------------------------------------------------------------------- // Section: Constants (124) //-------------------------------------------------------------------------------- pub const DISPID_RDPSRAPI_METHOD_OPEN = @as(u32, 100); pub const DISPID_RDPSRAPI_METHOD_CLOSE = @as(u32, 101); pub const DISPID_RDPSRAPI_METHOD_SETSHAREDRECT = @as(u32, 102); pub const DISPID_RDPSRAPI_METHOD_GETSHAREDRECT = @as(u32, 103); pub const DISPID_RDPSRAPI_METHOD_VIEWERCONNECT = @as(u32, 104); pub const DISPID_RDPSRAPI_METHOD_VIEWERDISCONNECT = @as(u32, 105); pub const DISPID_RDPSRAPI_METHOD_TERMINATE_CONNECTION = @as(u32, 106); pub const DISPID_RDPSRAPI_METHOD_CREATE_INVITATION = @as(u32, 107); pub const DISPID_RDPSRAPI_METHOD_REQUEST_CONTROL = @as(u32, 108); pub const DISPID_RDPSRAPI_METHOD_VIRTUAL_CHANNEL_CREATE = @as(u32, 109); pub const DISPID_RDPSRAPI_METHOD_VIRTUAL_CHANNEL_SEND_DATA = @as(u32, 110); pub const DISPID_RDPSRAPI_METHOD_VIRTUAL_CHANNEL_SET_ACCESS = @as(u32, 111); pub const DISPID_RDPSRAPI_METHOD_PAUSE = @as(u32, 112); pub const DISPID_RDPSRAPI_METHOD_RESUME = @as(u32, 113); pub const DISPID_RDPSRAPI_METHOD_SHOW_WINDOW = @as(u32, 114); pub const DISPID_RDPSRAPI_METHOD_REQUEST_COLOR_DEPTH_CHANGE = @as(u32, 115); pub const DISPID_RDPSRAPI_METHOD_STARTREVCONNECTLISTENER = @as(u32, 116); pub const DISPID_RDPSRAPI_METHOD_CONNECTTOCLIENT = @as(u32, 117); pub const DISPID_RDPSRAPI_METHOD_SET_RENDERING_SURFACE = @as(u32, 118); pub const DISPID_RDPSRAPI_METHOD_SEND_MOUSE_BUTTON_EVENT = @as(u32, 119); pub const DISPID_RDPSRAPI_METHOD_SEND_MOUSE_MOVE_EVENT = @as(u32, 120); pub const DISPID_RDPSRAPI_METHOD_SEND_MOUSE_WHEEL_EVENT = @as(u32, 121); pub const DISPID_RDPSRAPI_METHOD_SEND_KEYBOARD_EVENT = @as(u32, 122); pub const DISPID_RDPSRAPI_METHOD_SEND_SYNC_EVENT = @as(u32, 123); pub const DISPID_RDPSRAPI_METHOD_BEGIN_TOUCH_FRAME = @as(u32, 124); pub const DISPID_RDPSRAPI_METHOD_ADD_TOUCH_INPUT = @as(u32, 125); pub const DISPID_RDPSRAPI_METHOD_END_TOUCH_FRAME = @as(u32, 126); pub const DISPID_RDPSRAPI_METHOD_CONNECTUSINGTRANSPORTSTREAM = @as(u32, 127); pub const DISPID_RDPSRAPI_METHOD_SENDCONTROLLEVELCHANGERESPONSE = @as(u32, 148); pub const DISPID_RDPSRAPI_METHOD_GETFRAMEBUFFERBITS = @as(u32, 149); pub const DISPID_RDPSRAPI_PROP_DISPIDVALUE = @as(u32, 200); pub const DISPID_RDPSRAPI_PROP_ID = @as(u32, 201); pub const DISPID_RDPSRAPI_PROP_SESSION_PROPERTIES = @as(u32, 202); pub const DISPID_RDPSRAPI_PROP_ATTENDEES = @as(u32, 203); pub const DISPID_RDPSRAPI_PROP_INVITATIONS = @as(u32, 204); pub const DISPID_RDPSRAPI_PROP_INVITATION = @as(u32, 205); pub const DISPID_RDPSRAPI_PROP_CHANNELMANAGER = @as(u32, 206); pub const DISPID_RDPSRAPI_PROP_VIRTUAL_CHANNEL_GETNAME = @as(u32, 207); pub const DISPID_RDPSRAPI_PROP_VIRTUAL_CHANNEL_GETFLAGS = @as(u32, 208); pub const DISPID_RDPSRAPI_PROP_VIRTUAL_CHANNEL_GETPRIORITY = @as(u32, 209); pub const DISPID_RDPSRAPI_PROP_WINDOWID = @as(u32, 210); pub const DISPID_RDPSRAPI_PROP_APPLICATION = @as(u32, 211); pub const DISPID_RDPSRAPI_PROP_WINDOWSHARED = @as(u32, 212); pub const DISPID_RDPSRAPI_PROP_WINDOWNAME = @as(u32, 213); pub const DISPID_RDPSRAPI_PROP_APPNAME = @as(u32, 214); pub const DISPID_RDPSRAPI_PROP_APPLICATION_FILTER = @as(u32, 215); pub const DISPID_RDPSRAPI_PROP_WINDOW_LIST = @as(u32, 216); pub const DISPID_RDPSRAPI_PROP_APPLICATION_LIST = @as(u32, 217); pub const DISPID_RDPSRAPI_PROP_APPFILTER_ENABLED = @as(u32, 218); pub const DISPID_RDPSRAPI_PROP_APPFILTERENABLED = @as(u32, 219); pub const DISPID_RDPSRAPI_PROP_SHARED = @as(u32, 220); pub const DISPID_RDPSRAPI_PROP_INVITATIONITEM = @as(u32, 221); pub const DISPID_RDPSRAPI_PROP_DBG_CLX_CMDLINE = @as(u32, 222); pub const DISPID_RDPSRAPI_PROP_APPFLAGS = @as(u32, 223); pub const DISPID_RDPSRAPI_PROP_WNDFLAGS = @as(u32, 224); pub const DISPID_RDPSRAPI_PROP_PROTOCOL_TYPE = @as(u32, 225); pub const DISPID_RDPSRAPI_PROP_LOCAL_PORT = @as(u32, 226); pub const DISPID_RDPSRAPI_PROP_LOCAL_IP = @as(u32, 227); pub const DISPID_RDPSRAPI_PROP_PEER_PORT = @as(u32, 228); pub const DISPID_RDPSRAPI_PROP_PEER_IP = @as(u32, 229); pub const DISPID_RDPSRAPI_PROP_ATTENDEE_FLAGS = @as(u32, 230); pub const DISPID_RDPSRAPI_PROP_CONINFO = @as(u32, 231); pub const DISPID_RDPSRAPI_PROP_CONNECTION_STRING = @as(u32, 232); pub const DISPID_RDPSRAPI_PROP_GROUP_NAME = @as(u32, 233); pub const DISPID_RDPSRAPI_PROP_PASSWORD = @as(u32, 234); pub const DISPID_RDPSRAPI_PROP_ATTENDEELIMIT = @as(u32, 235); pub const DISPID_RDPSRAPI_PROP_REVOKED = @as(u32, 236); pub const DISPID_RDPSRAPI_PROP_DISCONNECTED_STRING = @as(u32, 237); pub const DISPID_RDPSRAPI_PROP_USESMARTSIZING = @as(u32, 238); pub const DISPID_RDPSRAPI_PROP_SESSION_COLORDEPTH = @as(u32, 239); pub const DISPID_RDPSRAPI_PROP_REASON = @as(u32, 240); pub const DISPID_RDPSRAPI_PROP_CODE = @as(u32, 241); pub const DISPID_RDPSRAPI_PROP_CTRL_LEVEL = @as(u32, 242); pub const DISPID_RDPSRAPI_PROP_REMOTENAME = @as(u32, 243); pub const DISPID_RDPSRAPI_PROP_COUNT = @as(u32, 244); pub const DISPID_RDPSRAPI_PROP_FRAMEBUFFER_HEIGHT = @as(u32, 251); pub const DISPID_RDPSRAPI_PROP_FRAMEBUFFER_WIDTH = @as(u32, 252); pub const DISPID_RDPSRAPI_PROP_FRAMEBUFFER_BPP = @as(u32, 253); pub const DISPID_RDPSRAPI_PROP_FRAMEBUFFER = @as(u32, 254); pub const DISPID_RDPSRAPI_EVENT_ON_ATTENDEE_CONNECTED = @as(u32, 301); pub const DISPID_RDPSRAPI_EVENT_ON_ATTENDEE_DISCONNECTED = @as(u32, 302); pub const DISPID_RDPSRAPI_EVENT_ON_ATTENDEE_UPDATE = @as(u32, 303); pub const DISPID_RDPSRAPI_EVENT_ON_ERROR = @as(u32, 304); pub const DISPID_RDPSRAPI_EVENT_ON_VIEWER_CONNECTED = @as(u32, 305); pub const DISPID_RDPSRAPI_EVENT_ON_VIEWER_DISCONNECTED = @as(u32, 306); pub const DISPID_RDPSRAPI_EVENT_ON_VIEWER_AUTHENTICATED = @as(u32, 307); pub const DISPID_RDPSRAPI_EVENT_ON_VIEWER_CONNECTFAILED = @as(u32, 308); pub const DISPID_RDPSRAPI_EVENT_ON_CTRLLEVEL_CHANGE_REQUEST = @as(u32, 309); pub const DISPID_RDPSRAPI_EVENT_ON_GRAPHICS_STREAM_PAUSED = @as(u32, 310); pub const DISPID_RDPSRAPI_EVENT_ON_GRAPHICS_STREAM_RESUMED = @as(u32, 311); pub const DISPID_RDPSRAPI_EVENT_ON_VIRTUAL_CHANNEL_JOIN = @as(u32, 312); pub const DISPID_RDPSRAPI_EVENT_ON_VIRTUAL_CHANNEL_LEAVE = @as(u32, 313); pub const DISPID_RDPSRAPI_EVENT_ON_VIRTUAL_CHANNEL_DATARECEIVED = @as(u32, 314); pub const DISPID_RDPSRAPI_EVENT_ON_VIRTUAL_CHANNEL_SENDCOMPLETED = @as(u32, 315); pub const DISPID_RDPSRAPI_EVENT_ON_APPLICATION_OPEN = @as(u32, 316); pub const DISPID_RDPSRAPI_EVENT_ON_APPLICATION_CLOSE = @as(u32, 317); pub const DISPID_RDPSRAPI_EVENT_ON_APPLICATION_UPDATE = @as(u32, 318); pub const DISPID_RDPSRAPI_EVENT_ON_WINDOW_OPEN = @as(u32, 319); pub const DISPID_RDPSRAPI_EVENT_ON_WINDOW_CLOSE = @as(u32, 320); pub const DISPID_RDPSRAPI_EVENT_ON_WINDOW_UPDATE = @as(u32, 321); pub const DISPID_RDPSRAPI_EVENT_ON_APPFILTER_UPDATE = @as(u32, 322); pub const DISPID_RDPSRAPI_EVENT_ON_SHARED_RECT_CHANGED = @as(u32, 323); pub const DISPID_RDPSRAPI_EVENT_ON_FOCUSRELEASED = @as(u32, 324); pub const DISPID_RDPSRAPI_EVENT_ON_SHARED_DESKTOP_SETTINGS_CHANGED = @as(u32, 325); pub const DISPID_RDPSRAPI_EVENT_ON_CTRLLEVEL_CHANGE_RESPONSE = @as(u32, 338); pub const DISPID_RDPAPI_EVENT_ON_BOUNDING_RECT_CHANGED = @as(u32, 340); pub const DISPID_RDPSRAPI_METHOD_STREAM_ALLOCBUFFER = @as(u32, 421); pub const DISPID_RDPSRAPI_METHOD_STREAM_FREEBUFFER = @as(u32, 422); pub const DISPID_RDPSRAPI_METHOD_STREAMSENDDATA = @as(u32, 423); pub const DISPID_RDPSRAPI_METHOD_STREAMREADDATA = @as(u32, 424); pub const DISPID_RDPSRAPI_METHOD_STREAMOPEN = @as(u32, 425); pub const DISPID_RDPSRAPI_METHOD_STREAMCLOSE = @as(u32, 426); pub const DISPID_RDPSRAPI_PROP_STREAMBUFFER_STORAGE = @as(u32, 555); pub const DISPID_RDPSRAPI_PROP_STREAMBUFFER_PAYLOADSIZE = @as(u32, 558); pub const DISPID_RDPSRAPI_PROP_STREAMBUFFER_PAYLOADOFFSET = @as(u32, 559); pub const DISPID_RDPSRAPI_PROP_STREAMBUFFER_CONTEXT = @as(u32, 560); pub const DISPID_RDPSRAPI_PROP_STREAMBUFFER_FLAGS = @as(u32, 561); pub const DISPID_RDPSRAPI_PROP_STREAMBUFFER_STORESIZE = @as(u32, 562); pub const DISPID_RDPSRAPI_EVENT_ON_STREAM_SENDCOMPLETED = @as(u32, 632); pub const DISPID_RDPSRAPI_EVENT_ON_STREAM_DATARECEIVED = @as(u32, 633); pub const DISPID_RDPSRAPI_EVENT_ON_STREAM_CLOSED = @as(u32, 634); pub const DISPID_RDPSRAPI_EVENT_VIEW_MOUSE_BUTTON_RECEIVED = @as(u32, 700); pub const DISPID_RDPSRAPI_EVENT_VIEW_MOUSE_MOVE_RECEIVED = @as(u32, 701); pub const DISPID_RDPSRAPI_EVENT_VIEW_MOUSE_WHEEL_RECEIVED = @as(u32, 702); //-------------------------------------------------------------------------------- // Section: Types (58) //-------------------------------------------------------------------------------- const CLSID_RDPViewer_Value = Guid.initString("32be5ed2-5c86-480f-a914-0ff8885a1b3f"); pub const CLSID_RDPViewer = &CLSID_RDPViewer_Value; const CLSID_RDPSRAPISessionProperties_Value = Guid.initString("dd7594ff-ea2a-4c06-8fdf-132de48b6510"); pub const CLSID_RDPSRAPISessionProperties = &CLSID_RDPSRAPISessionProperties_Value; const CLSID_RDPSRAPIInvitationManager_Value = Guid.initString("53d9c9db-75ab-4271-948a-4c4eb36a8f2b"); pub const CLSID_RDPSRAPIInvitationManager = &CLSID_RDPSRAPIInvitationManager_Value; const CLSID_RDPSRAPIInvitation_Value = Guid.initString("49174dc6-0731-4b5e-8ee1-83a63d3868fa"); pub const CLSID_RDPSRAPIInvitation = &CLSID_RDPSRAPIInvitation_Value; const CLSID_RDPSRAPIAttendeeManager_Value = Guid.initString("d7b13a01-f7d4-42a6-8595-12fc8c24e851"); pub const CLSID_RDPSRAPIAttendeeManager = &CLSID_RDPSRAPIAttendeeManager_Value; const CLSID_RDPSRAPIAttendee_Value = Guid.initString("74f93bb5-755f-488e-8a29-2390108aef55"); pub const CLSID_RDPSRAPIAttendee = &CLSID_RDPSRAPIAttendee_Value; const CLSID_RDPSRAPIAttendeeDisconnectInfo_Value = Guid.initString("b47d7250-5bdb-405d-b487-caad9c56f4f8"); pub const CLSID_RDPSRAPIAttendeeDisconnectInfo = &CLSID_RDPSRAPIAttendeeDisconnectInfo_Value; const CLSID_RDPSRAPIApplicationFilter_Value = Guid.initString("e35ace89-c7e8-427e-a4f9-b9da072826bd"); pub const CLSID_RDPSRAPIApplicationFilter = &CLSID_RDPSRAPIApplicationFilter_Value; const CLSID_RDPSRAPIApplicationList_Value = Guid.initString("9e31c815-7433-4876-97fb-ed59fe2baa22"); pub const CLSID_RDPSRAPIApplicationList = &CLSID_RDPSRAPIApplicationList_Value; const CLSID_RDPSRAPIApplication_Value = Guid.initString("c116a484-4b25-4b9f-8a54-b934b06e57fa"); pub const CLSID_RDPSRAPIApplication = &CLSID_RDPSRAPIApplication_Value; const CLSID_RDPSRAPIWindowList_Value = Guid.initString("9c21e2b8-5dd4-42cc-81ba-1c099852e6fa"); pub const CLSID_RDPSRAPIWindowList = &CLSID_RDPSRAPIWindowList_Value; const CLSID_RDPSRAPIWindow_Value = Guid.initString("03cf46db-ce45-4d36-86ed-ed28b74398bf"); pub const CLSID_RDPSRAPIWindow = &CLSID_RDPSRAPIWindow_Value; const CLSID_RDPSRAPITcpConnectionInfo_Value = Guid.initString("be49db3f-ebb6-4278-8ce0-d5455833eaee"); pub const CLSID_RDPSRAPITcpConnectionInfo = &CLSID_RDPSRAPITcpConnectionInfo_Value; const CLSID_RDPSession_Value = Guid.initString("9b78f0e6-3e05-4a5b-b2e8-e743a8956b65"); pub const CLSID_RDPSession = &CLSID_RDPSession_Value; const CLSID_RDPSRAPIFrameBuffer_Value = Guid.initString("a4f66bcc-538e-4101-951d-30847adb5101"); pub const CLSID_RDPSRAPIFrameBuffer = &CLSID_RDPSRAPIFrameBuffer_Value; const CLSID_RDPTransportStreamBuffer_Value = Guid.initString("8d4a1c69-f17f-4549-a699-761c6e6b5c0a"); pub const CLSID_RDPTransportStreamBuffer = &CLSID_RDPTransportStreamBuffer_Value; const CLSID_RDPTransportStreamEvents_Value = Guid.initString("31e3ab20-5350-483f-9dc6-6748665efdeb"); pub const CLSID_RDPTransportStreamEvents = &CLSID_RDPTransportStreamEvents_Value; pub const CTRL_LEVEL = enum(i32) { MIN = 0, // INVALID = 0, this enum value conflicts with MIN NONE = 1, VIEW = 2, INTERACTIVE = 3, REQCTRL_VIEW = 4, REQCTRL_INTERACTIVE = 5, // MAX = 5, this enum value conflicts with REQCTRL_INTERACTIVE }; pub const CTRL_LEVEL_MIN = CTRL_LEVEL.MIN; pub const CTRL_LEVEL_INVALID = CTRL_LEVEL.MIN; pub const CTRL_LEVEL_NONE = CTRL_LEVEL.NONE; pub const CTRL_LEVEL_VIEW = CTRL_LEVEL.VIEW; pub const CTRL_LEVEL_INTERACTIVE = CTRL_LEVEL.INTERACTIVE; pub const CTRL_LEVEL_REQCTRL_VIEW = CTRL_LEVEL.REQCTRL_VIEW; pub const CTRL_LEVEL_REQCTRL_INTERACTIVE = CTRL_LEVEL.REQCTRL_INTERACTIVE; pub const CTRL_LEVEL_MAX = CTRL_LEVEL.REQCTRL_INTERACTIVE; pub const ATTENDEE_DISCONNECT_REASON = enum(i32) { MIN = 0, // APP = 0, this enum value conflicts with MIN ERR = 1, CLI = 2, // MAX = 2, this enum value conflicts with CLI }; pub const ATTENDEE_DISCONNECT_REASON_MIN = ATTENDEE_DISCONNECT_REASON.MIN; pub const ATTENDEE_DISCONNECT_REASON_APP = ATTENDEE_DISCONNECT_REASON.MIN; pub const ATTENDEE_DISCONNECT_REASON_ERR = ATTENDEE_DISCONNECT_REASON.ERR; pub const ATTENDEE_DISCONNECT_REASON_CLI = ATTENDEE_DISCONNECT_REASON.CLI; pub const ATTENDEE_DISCONNECT_REASON_MAX = ATTENDEE_DISCONNECT_REASON.CLI; pub const CHANNEL_PRIORITY = enum(i32) { LO = 0, MED = 1, HI = 2, }; pub const CHANNEL_PRIORITY_LO = CHANNEL_PRIORITY.LO; pub const CHANNEL_PRIORITY_MED = CHANNEL_PRIORITY.MED; pub const CHANNEL_PRIORITY_HI = CHANNEL_PRIORITY.HI; pub const CHANNEL_FLAGS = enum(i32) { LEGACY = 1, UNCOMPRESSED = 2, DYNAMIC = 4, }; pub const CHANNEL_FLAGS_LEGACY = CHANNEL_FLAGS.LEGACY; pub const CHANNEL_FLAGS_UNCOMPRESSED = CHANNEL_FLAGS.UNCOMPRESSED; pub const CHANNEL_FLAGS_DYNAMIC = CHANNEL_FLAGS.DYNAMIC; pub const CHANNEL_ACCESS_ENUM = enum(i32) { NONE = 0, SENDRECEIVE = 1, }; pub const CHANNEL_ACCESS_ENUM_NONE = CHANNEL_ACCESS_ENUM.NONE; pub const CHANNEL_ACCESS_ENUM_SENDRECEIVE = CHANNEL_ACCESS_ENUM.SENDRECEIVE; pub const RDPENCOMAPI_ATTENDEE_FLAGS = enum(i32) { L = 1, }; pub const ATTENDEE_FLAGS_LOCAL = RDPENCOMAPI_ATTENDEE_FLAGS.L; pub const RDPSRAPI_WND_FLAGS = enum(i32) { D = 1, }; pub const WND_FLAG_PRIVILEGED = RDPSRAPI_WND_FLAGS.D; pub const RDPSRAPI_APP_FLAGS = enum(i32) { D = 1, }; pub const APP_FLAG_PRIVILEGED = RDPSRAPI_APP_FLAGS.D; pub const RDPSRAPI_MOUSE_BUTTON_TYPE = enum(i32) { BUTTON1 = 0, BUTTON2 = 1, BUTTON3 = 2, XBUTTON1 = 3, XBUTTON2 = 4, XBUTTON3 = 5, }; pub const RDPSRAPI_MOUSE_BUTTON_BUTTON1 = RDPSRAPI_MOUSE_BUTTON_TYPE.BUTTON1; pub const RDPSRAPI_MOUSE_BUTTON_BUTTON2 = RDPSRAPI_MOUSE_BUTTON_TYPE.BUTTON2; pub const RDPSRAPI_MOUSE_BUTTON_BUTTON3 = RDPSRAPI_MOUSE_BUTTON_TYPE.BUTTON3; pub const RDPSRAPI_MOUSE_BUTTON_XBUTTON1 = RDPSRAPI_MOUSE_BUTTON_TYPE.XBUTTON1; pub const RDPSRAPI_MOUSE_BUTTON_XBUTTON2 = RDPSRAPI_MOUSE_BUTTON_TYPE.XBUTTON2; pub const RDPSRAPI_MOUSE_BUTTON_XBUTTON3 = RDPSRAPI_MOUSE_BUTTON_TYPE.XBUTTON3; pub const RDPSRAPI_KBD_CODE_TYPE = enum(i32) { SCANCODE = 0, UNICODE = 1, }; pub const RDPSRAPI_KBD_CODE_SCANCODE = RDPSRAPI_KBD_CODE_TYPE.SCANCODE; pub const RDPSRAPI_KBD_CODE_UNICODE = RDPSRAPI_KBD_CODE_TYPE.UNICODE; pub const RDPSRAPI_KBD_SYNC_FLAG = enum(i32) { SCROLL_LOCK = 1, NUM_LOCK = 2, CAPS_LOCK = 4, KANA_LOCK = 8, }; pub const RDPSRAPI_KBD_SYNC_FLAG_SCROLL_LOCK = RDPSRAPI_KBD_SYNC_FLAG.SCROLL_LOCK; pub const RDPSRAPI_KBD_SYNC_FLAG_NUM_LOCK = RDPSRAPI_KBD_SYNC_FLAG.NUM_LOCK; pub const RDPSRAPI_KBD_SYNC_FLAG_CAPS_LOCK = RDPSRAPI_KBD_SYNC_FLAG.CAPS_LOCK; pub const RDPSRAPI_KBD_SYNC_FLAG_KANA_LOCK = RDPSRAPI_KBD_SYNC_FLAG.KANA_LOCK; const IID_IRDPSRAPIDebug_Value = Guid.initString("aa1e42b5-496d-4ca4-a690-348dcb2ec4ad"); pub const IID_IRDPSRAPIDebug = &IID_IRDPSRAPIDebug_Value; pub const IRDPSRAPIDebug = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, // TODO: this function has a "SpecialName", should Zig do anything with this? put_CLXCmdLine: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IRDPSRAPIDebug, CLXCmdLine: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IRDPSRAPIDebug, CLXCmdLine: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_CLXCmdLine: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IRDPSRAPIDebug, pCLXCmdLine: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IRDPSRAPIDebug, pCLXCmdLine: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRDPSRAPIDebug_put_CLXCmdLine(self: *const T, CLXCmdLine: ?BSTR) HRESULT { return @as(*const IRDPSRAPIDebug.VTable, @ptrCast(self.vtable)).put_CLXCmdLine(@as(*const IRDPSRAPIDebug, @ptrCast(self)), CLXCmdLine); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRDPSRAPIDebug_get_CLXCmdLine(self: *const T, pCLXCmdLine: ?*?BSTR) HRESULT { return @as(*const IRDPSRAPIDebug.VTable, @ptrCast(self.vtable)).get_CLXCmdLine(@as(*const IRDPSRAPIDebug, @ptrCast(self)), pCLXCmdLine); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows8.1' const IID_IRDPSRAPIPerfCounterLogger_Value = Guid.initString("071c2533-0fa4-4e8f-ae83-9c10b4305ab5"); pub const IID_IRDPSRAPIPerfCounterLogger = &IID_IRDPSRAPIPerfCounterLogger_Value; pub const IRDPSRAPIPerfCounterLogger = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, LogValue: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IRDPSRAPIPerfCounterLogger, lValue: i64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IRDPSRAPIPerfCounterLogger, lValue: i64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRDPSRAPIPerfCounterLogger_LogValue(self: *const T, lValue: i64) HRESULT { return @as(*const IRDPSRAPIPerfCounterLogger.VTable, @ptrCast(self.vtable)).LogValue(@as(*const IRDPSRAPIPerfCounterLogger, @ptrCast(self)), lValue); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows8.1' const IID_IRDPSRAPIPerfCounterLoggingManager_Value = Guid.initString("9a512c86-ac6e-4a8e-b1a4-fcef363f6e64"); pub const IID_IRDPSRAPIPerfCounterLoggingManager = &IID_IRDPSRAPIPerfCounterLoggingManager_Value; pub const IRDPSRAPIPerfCounterLoggingManager = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, CreateLogger: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IRDPSRAPIPerfCounterLoggingManager, bstrCounterName: ?BSTR, ppLogger: ?*?*IRDPSRAPIPerfCounterLogger, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IRDPSRAPIPerfCounterLoggingManager, bstrCounterName: ?BSTR, ppLogger: ?*?*IRDPSRAPIPerfCounterLogger, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRDPSRAPIPerfCounterLoggingManager_CreateLogger(self: *const T, bstrCounterName: ?BSTR, ppLogger: ?*?*IRDPSRAPIPerfCounterLogger) HRESULT { return @as(*const IRDPSRAPIPerfCounterLoggingManager.VTable, @ptrCast(self.vtable)).CreateLogger(@as(*const IRDPSRAPIPerfCounterLoggingManager, @ptrCast(self)), bstrCounterName, ppLogger); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows8.1' const IID_IRDPSRAPIAudioStream_Value = Guid.initString("e3e30ef9-89c6-4541-ba3b-19336ac6d31c"); pub const IID_IRDPSRAPIAudioStream = &IID_IRDPSRAPIAudioStream_Value; pub const IRDPSRAPIAudioStream = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, Initialize: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IRDPSRAPIAudioStream, pnPeriodInHundredNsIntervals: ?*i64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IRDPSRAPIAudioStream, pnPeriodInHundredNsIntervals: ?*i64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Start: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IRDPSRAPIAudioStream, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IRDPSRAPIAudioStream, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Stop: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IRDPSRAPIAudioStream, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IRDPSRAPIAudioStream, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetBuffer: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IRDPSRAPIAudioStream, ppbData: [*]?*u8, pcbData: ?*u32, pTimestamp: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IRDPSRAPIAudioStream, ppbData: [*]?*u8, pcbData: ?*u32, pTimestamp: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, FreeBuffer: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IRDPSRAPIAudioStream, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IRDPSRAPIAudioStream, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRDPSRAPIAudioStream_Initialize(self: *const T, pnPeriodInHundredNsIntervals: ?*i64) HRESULT { return @as(*const IRDPSRAPIAudioStream.VTable, @ptrCast(self.vtable)).Initialize(@as(*const IRDPSRAPIAudioStream, @ptrCast(self)), pnPeriodInHundredNsIntervals); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRDPSRAPIAudioStream_Start(self: *const T) HRESULT { return @as(*const IRDPSRAPIAudioStream.VTable, @ptrCast(self.vtable)).Start(@as(*const IRDPSRAPIAudioStream, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRDPSRAPIAudioStream_Stop(self: *const T) HRESULT { return @as(*const IRDPSRAPIAudioStream.VTable, @ptrCast(self.vtable)).Stop(@as(*const IRDPSRAPIAudioStream, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRDPSRAPIAudioStream_GetBuffer(self: *const T, ppbData: [*]?*u8, pcbData: ?*u32, pTimestamp: ?*u64) HRESULT { return @as(*const IRDPSRAPIAudioStream.VTable, @ptrCast(self.vtable)).GetBuffer(@as(*const IRDPSRAPIAudioStream, @ptrCast(self)), ppbData, pcbData, pTimestamp); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRDPSRAPIAudioStream_FreeBuffer(self: *const T) HRESULT { return @as(*const IRDPSRAPIAudioStream.VTable, @ptrCast(self.vtable)).FreeBuffer(@as(*const IRDPSRAPIAudioStream, @ptrCast(self))); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows10.0.10240' const IID_IRDPSRAPIClipboardUseEvents_Value = Guid.initString("d559f59a-7a27-4138-8763-247ce5f659a8"); pub const IID_IRDPSRAPIClipboardUseEvents = &IID_IRDPSRAPIClipboardUseEvents_Value; pub const IRDPSRAPIClipboardUseEvents = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, OnPasteFromClipboard: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IRDPSRAPIClipboardUseEvents, clipboardFormat: u32, pAttendee: ?*IDispatch, pRetVal: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IRDPSRAPIClipboardUseEvents, clipboardFormat: u32, pAttendee: ?*IDispatch, pRetVal: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRDPSRAPIClipboardUseEvents_OnPasteFromClipboard(self: *const T, clipboardFormat: u32, pAttendee: ?*IDispatch, pRetVal: ?*i16) HRESULT { return @as(*const IRDPSRAPIClipboardUseEvents.VTable, @ptrCast(self.vtable)).OnPasteFromClipboard(@as(*const IRDPSRAPIClipboardUseEvents, @ptrCast(self)), clipboardFormat, pAttendee, pRetVal); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows6.0.6000' const IID_IRDPSRAPIWindow_Value = Guid.initString("beafe0f9-c77b-4933-ba9f-a24cddcc27cf"); pub const IID_IRDPSRAPIWindow = &IID_IRDPSRAPIWindow_Value; pub const IRDPSRAPIWindow = extern struct { pub const VTable = extern struct { base: IDispatch.VTable, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Id: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IRDPSRAPIWindow, pRetVal: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IRDPSRAPIWindow, pRetVal: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Application: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IRDPSRAPIWindow, pApplication: ?*?*IRDPSRAPIApplication, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IRDPSRAPIWindow, pApplication: ?*?*IRDPSRAPIApplication, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Shared: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IRDPSRAPIWindow, pRetVal: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IRDPSRAPIWindow, pRetVal: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_Shared: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IRDPSRAPIWindow, NewVal: i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IRDPSRAPIWindow, NewVal: i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Name: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IRDPSRAPIWindow, pRetVal: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IRDPSRAPIWindow, pRetVal: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Show: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IRDPSRAPIWindow, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IRDPSRAPIWindow, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Flags: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IRDPSRAPIWindow, pdwFlags: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IRDPSRAPIWindow, pdwFlags: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IDispatch.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRDPSRAPIWindow_get_Id(self: *const T, pRetVal: ?*i32) HRESULT { return @as(*const IRDPSRAPIWindow.VTable, @ptrCast(self.vtable)).get_Id(@as(*const IRDPSRAPIWindow, @ptrCast(self)), pRetVal); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRDPSRAPIWindow_get_Application(self: *const T, pApplication: ?*?*IRDPSRAPIApplication) HRESULT { return @as(*const IRDPSRAPIWindow.VTable, @ptrCast(self.vtable)).get_Application(@as(*const IRDPSRAPIWindow, @ptrCast(self)), pApplication); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRDPSRAPIWindow_get_Shared(self: *const T, pRetVal: ?*i16) HRESULT { return @as(*const IRDPSRAPIWindow.VTable, @ptrCast(self.vtable)).get_Shared(@as(*const IRDPSRAPIWindow, @ptrCast(self)), pRetVal); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRDPSRAPIWindow_put_Shared(self: *const T, NewVal: i16) HRESULT { return @as(*const IRDPSRAPIWindow.VTable, @ptrCast(self.vtable)).put_Shared(@as(*const IRDPSRAPIWindow, @ptrCast(self)), NewVal); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRDPSRAPIWindow_get_Name(self: *const T, pRetVal: ?*?BSTR) HRESULT { return @as(*const IRDPSRAPIWindow.VTable, @ptrCast(self.vtable)).get_Name(@as(*const IRDPSRAPIWindow, @ptrCast(self)), pRetVal); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRDPSRAPIWindow_Show(self: *const T) HRESULT { return @as(*const IRDPSRAPIWindow.VTable, @ptrCast(self.vtable)).Show(@as(*const IRDPSRAPIWindow, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRDPSRAPIWindow_get_Flags(self: *const T, pdwFlags: ?*u32) HRESULT { return @as(*const IRDPSRAPIWindow.VTable, @ptrCast(self.vtable)).get_Flags(@as(*const IRDPSRAPIWindow, @ptrCast(self)), pdwFlags); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows6.0.6000' const IID_IRDPSRAPIWindowList_Value = Guid.initString("8a05ce44-715a-4116-a189-a118f30a07bd"); pub const IID_IRDPSRAPIWindowList = &IID_IRDPSRAPIWindowList_Value; pub const IRDPSRAPIWindowList = extern struct { pub const VTable = extern struct { base: IDispatch.VTable, // TODO: this function has a "SpecialName", should Zig do anything with this? get__NewEnum: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IRDPSRAPIWindowList, retval: ?*?*IUnknown, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IRDPSRAPIWindowList, retval: ?*?*IUnknown, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Item: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IRDPSRAPIWindowList, item: i32, pWindow: ?*?*IRDPSRAPIWindow, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IRDPSRAPIWindowList, item: i32, pWindow: ?*?*IRDPSRAPIWindow, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IDispatch.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRDPSRAPIWindowList_get__NewEnum(self: *const T, retval: ?*?*IUnknown) HRESULT { return @as(*const IRDPSRAPIWindowList.VTable, @ptrCast(self.vtable)).get__NewEnum(@as(*const IRDPSRAPIWindowList, @ptrCast(self)), retval); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRDPSRAPIWindowList_get_Item(self: *const T, item: i32, pWindow: ?*?*IRDPSRAPIWindow) HRESULT { return @as(*const IRDPSRAPIWindowList.VTable, @ptrCast(self.vtable)).get_Item(@as(*const IRDPSRAPIWindowList, @ptrCast(self)), item, pWindow); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows6.0.6000' const IID_IRDPSRAPIApplication_Value = Guid.initString("41e7a09d-eb7a-436e-935d-780ca2628324"); pub const IID_IRDPSRAPIApplication = &IID_IRDPSRAPIApplication_Value; pub const IRDPSRAPIApplication = extern struct { pub const VTable = extern struct { base: IDispatch.VTable, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Windows: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IRDPSRAPIApplication, pWindowList: ?*?*IRDPSRAPIWindowList, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IRDPSRAPIApplication, pWindowList: ?*?*IRDPSRAPIWindowList, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Id: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IRDPSRAPIApplication, pRetVal: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IRDPSRAPIApplication, pRetVal: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Shared: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IRDPSRAPIApplication, pRetVal: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IRDPSRAPIApplication, pRetVal: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_Shared: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IRDPSRAPIApplication, NewVal: i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IRDPSRAPIApplication, NewVal: i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Name: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IRDPSRAPIApplication, pRetVal: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IRDPSRAPIApplication, pRetVal: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Flags: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IRDPSRAPIApplication, pdwFlags: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IRDPSRAPIApplication, pdwFlags: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IDispatch.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRDPSRAPIApplication_get_Windows(self: *const T, pWindowList: ?*?*IRDPSRAPIWindowList) HRESULT { return @as(*const IRDPSRAPIApplication.VTable, @ptrCast(self.vtable)).get_Windows(@as(*const IRDPSRAPIApplication, @ptrCast(self)), pWindowList); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRDPSRAPIApplication_get_Id(self: *const T, pRetVal: ?*i32) HRESULT { return @as(*const IRDPSRAPIApplication.VTable, @ptrCast(self.vtable)).get_Id(@as(*const IRDPSRAPIApplication, @ptrCast(self)), pRetVal); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRDPSRAPIApplication_get_Shared(self: *const T, pRetVal: ?*i16) HRESULT { return @as(*const IRDPSRAPIApplication.VTable, @ptrCast(self.vtable)).get_Shared(@as(*const IRDPSRAPIApplication, @ptrCast(self)), pRetVal); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRDPSRAPIApplication_put_Shared(self: *const T, NewVal: i16) HRESULT { return @as(*const IRDPSRAPIApplication.VTable, @ptrCast(self.vtable)).put_Shared(@as(*const IRDPSRAPIApplication, @ptrCast(self)), NewVal); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRDPSRAPIApplication_get_Name(self: *const T, pRetVal: ?*?BSTR) HRESULT { return @as(*const IRDPSRAPIApplication.VTable, @ptrCast(self.vtable)).get_Name(@as(*const IRDPSRAPIApplication, @ptrCast(self)), pRetVal); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRDPSRAPIApplication_get_Flags(self: *const T, pdwFlags: ?*u32) HRESULT { return @as(*const IRDPSRAPIApplication.VTable, @ptrCast(self.vtable)).get_Flags(@as(*const IRDPSRAPIApplication, @ptrCast(self)), pdwFlags); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows6.0.6000' const IID_IRDPSRAPIApplicationList_Value = Guid.initString("d4b4aeb3-22dc-4837-b3b6-42ea2517849a"); pub const IID_IRDPSRAPIApplicationList = &IID_IRDPSRAPIApplicationList_Value; pub const IRDPSRAPIApplicationList = extern struct { pub const VTable = extern struct { base: IDispatch.VTable, // TODO: this function has a "SpecialName", should Zig do anything with this? get__NewEnum: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IRDPSRAPIApplicationList, retval: ?*?*IUnknown, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IRDPSRAPIApplicationList, retval: ?*?*IUnknown, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Item: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IRDPSRAPIApplicationList, item: i32, pApplication: ?*?*IRDPSRAPIApplication, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IRDPSRAPIApplicationList, item: i32, pApplication: ?*?*IRDPSRAPIApplication, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IDispatch.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRDPSRAPIApplicationList_get__NewEnum(self: *const T, retval: ?*?*IUnknown) HRESULT { return @as(*const IRDPSRAPIApplicationList.VTable, @ptrCast(self.vtable)).get__NewEnum(@as(*const IRDPSRAPIApplicationList, @ptrCast(self)), retval); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRDPSRAPIApplicationList_get_Item(self: *const T, item: i32, pApplication: ?*?*IRDPSRAPIApplication) HRESULT { return @as(*const IRDPSRAPIApplicationList.VTable, @ptrCast(self.vtable)).get_Item(@as(*const IRDPSRAPIApplicationList, @ptrCast(self)), item, pApplication); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows6.0.6000' const IID_IRDPSRAPIApplicationFilter_Value = Guid.initString("d20f10ca-6637-4f06-b1d5-277ea7e5160d"); pub const IID_IRDPSRAPIApplicationFilter = &IID_IRDPSRAPIApplicationFilter_Value; pub const IRDPSRAPIApplicationFilter = extern struct { pub const VTable = extern struct { base: IDispatch.VTable, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Applications: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IRDPSRAPIApplicationFilter, pApplications: ?*?*IRDPSRAPIApplicationList, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IRDPSRAPIApplicationFilter, pApplications: ?*?*IRDPSRAPIApplicationList, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Windows: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IRDPSRAPIApplicationFilter, pWindows: ?*?*IRDPSRAPIWindowList, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IRDPSRAPIApplicationFilter, pWindows: ?*?*IRDPSRAPIWindowList, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Enabled: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IRDPSRAPIApplicationFilter, pRetVal: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IRDPSRAPIApplicationFilter, pRetVal: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_Enabled: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IRDPSRAPIApplicationFilter, NewVal: i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IRDPSRAPIApplicationFilter, NewVal: i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IDispatch.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRDPSRAPIApplicationFilter_get_Applications(self: *const T, pApplications: ?*?*IRDPSRAPIApplicationList) HRESULT { return @as(*const IRDPSRAPIApplicationFilter.VTable, @ptrCast(self.vtable)).get_Applications(@as(*const IRDPSRAPIApplicationFilter, @ptrCast(self)), pApplications); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRDPSRAPIApplicationFilter_get_Windows(self: *const T, pWindows: ?*?*IRDPSRAPIWindowList) HRESULT { return @as(*const IRDPSRAPIApplicationFilter.VTable, @ptrCast(self.vtable)).get_Windows(@as(*const IRDPSRAPIApplicationFilter, @ptrCast(self)), pWindows); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRDPSRAPIApplicationFilter_get_Enabled(self: *const T, pRetVal: ?*i16) HRESULT { return @as(*const IRDPSRAPIApplicationFilter.VTable, @ptrCast(self.vtable)).get_Enabled(@as(*const IRDPSRAPIApplicationFilter, @ptrCast(self)), pRetVal); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRDPSRAPIApplicationFilter_put_Enabled(self: *const T, NewVal: i16) HRESULT { return @as(*const IRDPSRAPIApplicationFilter.VTable, @ptrCast(self.vtable)).put_Enabled(@as(*const IRDPSRAPIApplicationFilter, @ptrCast(self)), NewVal); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows6.0.6000' const IID_IRDPSRAPISessionProperties_Value = Guid.initString("339b24f2-9bc0-4f16-9aac-f165433d13d4"); pub const IID_IRDPSRAPISessionProperties = &IID_IRDPSRAPISessionProperties_Value; pub const IRDPSRAPISessionProperties = extern struct { pub const VTable = extern struct { base: IDispatch.VTable, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Property: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IRDPSRAPISessionProperties, PropertyName: ?BSTR, pVal: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IRDPSRAPISessionProperties, PropertyName: ?BSTR, pVal: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_Property: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IRDPSRAPISessionProperties, PropertyName: ?BSTR, newVal: VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IRDPSRAPISessionProperties, PropertyName: ?BSTR, newVal: VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IDispatch.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRDPSRAPISessionProperties_get_Property(self: *const T, PropertyName: ?BSTR, pVal: ?*VARIANT) HRESULT { return @as(*const IRDPSRAPISessionProperties.VTable, @ptrCast(self.vtable)).get_Property(@as(*const IRDPSRAPISessionProperties, @ptrCast(self)), PropertyName, pVal); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRDPSRAPISessionProperties_put_Property(self: *const T, PropertyName: ?BSTR, newVal: VARIANT) HRESULT { return @as(*const IRDPSRAPISessionProperties.VTable, @ptrCast(self.vtable)).put_Property(@as(*const IRDPSRAPISessionProperties, @ptrCast(self)), PropertyName, newVal); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows6.0.6000' const IID_IRDPSRAPIInvitation_Value = Guid.initString("4fac1d43-fc51-45bb-b1b4-2b53aa562fa3"); pub const IID_IRDPSRAPIInvitation = &IID_IRDPSRAPIInvitation_Value; pub const IRDPSRAPIInvitation = extern struct { pub const VTable = extern struct { base: IDispatch.VTable, // TODO: this function has a "SpecialName", should Zig do anything with this? get_ConnectionString: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IRDPSRAPIInvitation, pbstrVal: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IRDPSRAPIInvitation, pbstrVal: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_GroupName: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IRDPSRAPIInvitation, pbstrVal: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IRDPSRAPIInvitation, pbstrVal: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Password: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IRDPSRAPIInvitation, pbstrVal: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IRDPSRAPIInvitation, pbstrVal: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_AttendeeLimit: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IRDPSRAPIInvitation, pRetVal: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IRDPSRAPIInvitation, pRetVal: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_AttendeeLimit: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IRDPSRAPIInvitation, NewVal: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IRDPSRAPIInvitation, NewVal: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Revoked: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IRDPSRAPIInvitation, pRetVal: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IRDPSRAPIInvitation, pRetVal: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_Revoked: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IRDPSRAPIInvitation, NewVal: i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IRDPSRAPIInvitation, NewVal: i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IDispatch.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRDPSRAPIInvitation_get_ConnectionString(self: *const T, pbstrVal: ?*?BSTR) HRESULT { return @as(*const IRDPSRAPIInvitation.VTable, @ptrCast(self.vtable)).get_ConnectionString(@as(*const IRDPSRAPIInvitation, @ptrCast(self)), pbstrVal); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRDPSRAPIInvitation_get_GroupName(self: *const T, pbstrVal: ?*?BSTR) HRESULT { return @as(*const IRDPSRAPIInvitation.VTable, @ptrCast(self.vtable)).get_GroupName(@as(*const IRDPSRAPIInvitation, @ptrCast(self)), pbstrVal); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRDPSRAPIInvitation_get_Password(self: *const T, pbstrVal: ?*?BSTR) HRESULT { return @as(*const IRDPSRAPIInvitation.VTable, @ptrCast(self.vtable)).get_Password(@as(*const IRDPSRAPIInvitation, @ptrCast(self)), pbstrVal); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRDPSRAPIInvitation_get_AttendeeLimit(self: *const T, pRetVal: ?*i32) HRESULT { return @as(*const IRDPSRAPIInvitation.VTable, @ptrCast(self.vtable)).get_AttendeeLimit(@as(*const IRDPSRAPIInvitation, @ptrCast(self)), pRetVal); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRDPSRAPIInvitation_put_AttendeeLimit(self: *const T, NewVal: i32) HRESULT { return @as(*const IRDPSRAPIInvitation.VTable, @ptrCast(self.vtable)).put_AttendeeLimit(@as(*const IRDPSRAPIInvitation, @ptrCast(self)), NewVal); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRDPSRAPIInvitation_get_Revoked(self: *const T, pRetVal: ?*i16) HRESULT { return @as(*const IRDPSRAPIInvitation.VTable, @ptrCast(self.vtable)).get_Revoked(@as(*const IRDPSRAPIInvitation, @ptrCast(self)), pRetVal); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRDPSRAPIInvitation_put_Revoked(self: *const T, NewVal: i16) HRESULT { return @as(*const IRDPSRAPIInvitation.VTable, @ptrCast(self.vtable)).put_Revoked(@as(*const IRDPSRAPIInvitation, @ptrCast(self)), NewVal); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows6.0.6000' const IID_IRDPSRAPIInvitationManager_Value = Guid.initString("4722b049-92c3-4c2d-8a65-f7348f644dcf"); pub const IID_IRDPSRAPIInvitationManager = &IID_IRDPSRAPIInvitationManager_Value; pub const IRDPSRAPIInvitationManager = extern struct { pub const VTable = extern struct { base: IDispatch.VTable, // TODO: this function has a "SpecialName", should Zig do anything with this? get__NewEnum: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IRDPSRAPIInvitationManager, retval: ?*?*IUnknown, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IRDPSRAPIInvitationManager, retval: ?*?*IUnknown, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Item: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IRDPSRAPIInvitationManager, item: VARIANT, ppInvitation: ?*?*IRDPSRAPIInvitation, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IRDPSRAPIInvitationManager, item: VARIANT, ppInvitation: ?*?*IRDPSRAPIInvitation, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Count: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IRDPSRAPIInvitationManager, pRetVal: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IRDPSRAPIInvitationManager, pRetVal: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, CreateInvitation: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IRDPSRAPIInvitationManager, bstrAuthString: ?BSTR, bstrGroupName: ?BSTR, bstrPassword: ?BSTR, AttendeeLimit: i32, ppInvitation: ?*?*IRDPSRAPIInvitation, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IRDPSRAPIInvitationManager, bstrAuthString: ?BSTR, bstrGroupName: ?BSTR, bstrPassword: ?BSTR, AttendeeLimit: i32, ppInvitation: ?*?*IRDPSRAPIInvitation, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IDispatch.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRDPSRAPIInvitationManager_get__NewEnum(self: *const T, retval: ?*?*IUnknown) HRESULT { return @as(*const IRDPSRAPIInvitationManager.VTable, @ptrCast(self.vtable)).get__NewEnum(@as(*const IRDPSRAPIInvitationManager, @ptrCast(self)), retval); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRDPSRAPIInvitationManager_get_Item(self: *const T, item: VARIANT, ppInvitation: ?*?*IRDPSRAPIInvitation) HRESULT { return @as(*const IRDPSRAPIInvitationManager.VTable, @ptrCast(self.vtable)).get_Item(@as(*const IRDPSRAPIInvitationManager, @ptrCast(self)), item, ppInvitation); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRDPSRAPIInvitationManager_get_Count(self: *const T, pRetVal: ?*i32) HRESULT { return @as(*const IRDPSRAPIInvitationManager.VTable, @ptrCast(self.vtable)).get_Count(@as(*const IRDPSRAPIInvitationManager, @ptrCast(self)), pRetVal); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRDPSRAPIInvitationManager_CreateInvitation(self: *const T, bstrAuthString: ?BSTR, bstrGroupName: ?BSTR, bstrPassword: ?BSTR, AttendeeLimit: i32, ppInvitation: ?*?*IRDPSRAPIInvitation) HRESULT { return @as(*const IRDPSRAPIInvitationManager.VTable, @ptrCast(self.vtable)).CreateInvitation(@as(*const IRDPSRAPIInvitationManager, @ptrCast(self)), bstrAuthString, bstrGroupName, bstrPassword, AttendeeLimit, ppInvitation); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows6.0.6000' const IID_IRDPSRAPITcpConnectionInfo_Value = Guid.initString("f74049a4-3d06-4028-8193-0a8c29bc2452"); pub const IID_IRDPSRAPITcpConnectionInfo = &IID_IRDPSRAPITcpConnectionInfo_Value; pub const IRDPSRAPITcpConnectionInfo = extern struct { pub const VTable = extern struct { base: IDispatch.VTable, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Protocol: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IRDPSRAPITcpConnectionInfo, plProtocol: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IRDPSRAPITcpConnectionInfo, plProtocol: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_LocalPort: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IRDPSRAPITcpConnectionInfo, plPort: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IRDPSRAPITcpConnectionInfo, plPort: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_LocalIP: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IRDPSRAPITcpConnectionInfo, pbsrLocalIP: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IRDPSRAPITcpConnectionInfo, pbsrLocalIP: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_PeerPort: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IRDPSRAPITcpConnectionInfo, plPort: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IRDPSRAPITcpConnectionInfo, plPort: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_PeerIP: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IRDPSRAPITcpConnectionInfo, pbstrIP: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IRDPSRAPITcpConnectionInfo, pbstrIP: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IDispatch.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRDPSRAPITcpConnectionInfo_get_Protocol(self: *const T, plProtocol: ?*i32) HRESULT { return @as(*const IRDPSRAPITcpConnectionInfo.VTable, @ptrCast(self.vtable)).get_Protocol(@as(*const IRDPSRAPITcpConnectionInfo, @ptrCast(self)), plProtocol); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRDPSRAPITcpConnectionInfo_get_LocalPort(self: *const T, plPort: ?*i32) HRESULT { return @as(*const IRDPSRAPITcpConnectionInfo.VTable, @ptrCast(self.vtable)).get_LocalPort(@as(*const IRDPSRAPITcpConnectionInfo, @ptrCast(self)), plPort); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRDPSRAPITcpConnectionInfo_get_LocalIP(self: *const T, pbsrLocalIP: ?*?BSTR) HRESULT { return @as(*const IRDPSRAPITcpConnectionInfo.VTable, @ptrCast(self.vtable)).get_LocalIP(@as(*const IRDPSRAPITcpConnectionInfo, @ptrCast(self)), pbsrLocalIP); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRDPSRAPITcpConnectionInfo_get_PeerPort(self: *const T, plPort: ?*i32) HRESULT { return @as(*const IRDPSRAPITcpConnectionInfo.VTable, @ptrCast(self.vtable)).get_PeerPort(@as(*const IRDPSRAPITcpConnectionInfo, @ptrCast(self)), plPort); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRDPSRAPITcpConnectionInfo_get_PeerIP(self: *const T, pbstrIP: ?*?BSTR) HRESULT { return @as(*const IRDPSRAPITcpConnectionInfo.VTable, @ptrCast(self.vtable)).get_PeerIP(@as(*const IRDPSRAPITcpConnectionInfo, @ptrCast(self)), pbstrIP); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows6.0.6000' const IID_IRDPSRAPIAttendee_Value = Guid.initString("ec0671b3-1b78-4b80-a464-9132247543e3"); pub const IID_IRDPSRAPIAttendee = &IID_IRDPSRAPIAttendee_Value; pub const IRDPSRAPIAttendee = extern struct { pub const VTable = extern struct { base: IDispatch.VTable, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Id: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IRDPSRAPIAttendee, pId: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IRDPSRAPIAttendee, pId: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_RemoteName: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IRDPSRAPIAttendee, pVal: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IRDPSRAPIAttendee, pVal: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_ControlLevel: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IRDPSRAPIAttendee, pVal: ?*CTRL_LEVEL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IRDPSRAPIAttendee, pVal: ?*CTRL_LEVEL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_ControlLevel: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IRDPSRAPIAttendee, pNewVal: CTRL_LEVEL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IRDPSRAPIAttendee, pNewVal: CTRL_LEVEL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Invitation: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IRDPSRAPIAttendee, ppVal: ?*?*IRDPSRAPIInvitation, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IRDPSRAPIAttendee, ppVal: ?*?*IRDPSRAPIInvitation, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, TerminateConnection: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IRDPSRAPIAttendee, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IRDPSRAPIAttendee, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Flags: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IRDPSRAPIAttendee, plFlags: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IRDPSRAPIAttendee, plFlags: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_ConnectivityInfo: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IRDPSRAPIAttendee, ppVal: ?*?*IUnknown, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IRDPSRAPIAttendee, ppVal: ?*?*IUnknown, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IDispatch.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRDPSRAPIAttendee_get_Id(self: *const T, pId: ?*i32) HRESULT { return @as(*const IRDPSRAPIAttendee.VTable, @ptrCast(self.vtable)).get_Id(@as(*const IRDPSRAPIAttendee, @ptrCast(self)), pId); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRDPSRAPIAttendee_get_RemoteName(self: *const T, pVal: ?*?BSTR) HRESULT { return @as(*const IRDPSRAPIAttendee.VTable, @ptrCast(self.vtable)).get_RemoteName(@as(*const IRDPSRAPIAttendee, @ptrCast(self)), pVal); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRDPSRAPIAttendee_get_ControlLevel(self: *const T, pVal: ?*CTRL_LEVEL) HRESULT { return @as(*const IRDPSRAPIAttendee.VTable, @ptrCast(self.vtable)).get_ControlLevel(@as(*const IRDPSRAPIAttendee, @ptrCast(self)), pVal); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRDPSRAPIAttendee_put_ControlLevel(self: *const T, pNewVal: CTRL_LEVEL) HRESULT { return @as(*const IRDPSRAPIAttendee.VTable, @ptrCast(self.vtable)).put_ControlLevel(@as(*const IRDPSRAPIAttendee, @ptrCast(self)), pNewVal); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRDPSRAPIAttendee_get_Invitation(self: *const T, ppVal: ?*?*IRDPSRAPIInvitation) HRESULT { return @as(*const IRDPSRAPIAttendee.VTable, @ptrCast(self.vtable)).get_Invitation(@as(*const IRDPSRAPIAttendee, @ptrCast(self)), ppVal); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRDPSRAPIAttendee_TerminateConnection(self: *const T) HRESULT { return @as(*const IRDPSRAPIAttendee.VTable, @ptrCast(self.vtable)).TerminateConnection(@as(*const IRDPSRAPIAttendee, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRDPSRAPIAttendee_get_Flags(self: *const T, plFlags: ?*i32) HRESULT { return @as(*const IRDPSRAPIAttendee.VTable, @ptrCast(self.vtable)).get_Flags(@as(*const IRDPSRAPIAttendee, @ptrCast(self)), plFlags); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRDPSRAPIAttendee_get_ConnectivityInfo(self: *const T, ppVal: ?*?*IUnknown) HRESULT { return @as(*const IRDPSRAPIAttendee.VTable, @ptrCast(self.vtable)).get_ConnectivityInfo(@as(*const IRDPSRAPIAttendee, @ptrCast(self)), ppVal); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows6.0.6000' const IID_IRDPSRAPIAttendeeManager_Value = Guid.initString("ba3a37e8-33da-4749-8da0-07fa34da7944"); pub const IID_IRDPSRAPIAttendeeManager = &IID_IRDPSRAPIAttendeeManager_Value; pub const IRDPSRAPIAttendeeManager = extern struct { pub const VTable = extern struct { base: IDispatch.VTable, // TODO: this function has a "SpecialName", should Zig do anything with this? get__NewEnum: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IRDPSRAPIAttendeeManager, retval: ?*?*IUnknown, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IRDPSRAPIAttendeeManager, retval: ?*?*IUnknown, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Item: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IRDPSRAPIAttendeeManager, id: i32, ppItem: ?*?*IRDPSRAPIAttendee, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IRDPSRAPIAttendeeManager, id: i32, ppItem: ?*?*IRDPSRAPIAttendee, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IDispatch.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRDPSRAPIAttendeeManager_get__NewEnum(self: *const T, retval: ?*?*IUnknown) HRESULT { return @as(*const IRDPSRAPIAttendeeManager.VTable, @ptrCast(self.vtable)).get__NewEnum(@as(*const IRDPSRAPIAttendeeManager, @ptrCast(self)), retval); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRDPSRAPIAttendeeManager_get_Item(self: *const T, id: i32, ppItem: ?*?*IRDPSRAPIAttendee) HRESULT { return @as(*const IRDPSRAPIAttendeeManager.VTable, @ptrCast(self.vtable)).get_Item(@as(*const IRDPSRAPIAttendeeManager, @ptrCast(self)), id, ppItem); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows6.0.6000' const IID_IRDPSRAPIAttendeeDisconnectInfo_Value = Guid.initString("c187689f-447c-44a1-9c14-fffbb3b7ec17"); pub const IID_IRDPSRAPIAttendeeDisconnectInfo = &IID_IRDPSRAPIAttendeeDisconnectInfo_Value; pub const IRDPSRAPIAttendeeDisconnectInfo = extern struct { pub const VTable = extern struct { base: IDispatch.VTable, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Attendee: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IRDPSRAPIAttendeeDisconnectInfo, retval: ?*?*IRDPSRAPIAttendee, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IRDPSRAPIAttendeeDisconnectInfo, retval: ?*?*IRDPSRAPIAttendee, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Reason: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IRDPSRAPIAttendeeDisconnectInfo, pReason: ?*ATTENDEE_DISCONNECT_REASON, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IRDPSRAPIAttendeeDisconnectInfo, pReason: ?*ATTENDEE_DISCONNECT_REASON, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Code: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IRDPSRAPIAttendeeDisconnectInfo, pVal: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IRDPSRAPIAttendeeDisconnectInfo, pVal: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IDispatch.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRDPSRAPIAttendeeDisconnectInfo_get_Attendee(self: *const T, retval: ?*?*IRDPSRAPIAttendee) HRESULT { return @as(*const IRDPSRAPIAttendeeDisconnectInfo.VTable, @ptrCast(self.vtable)).get_Attendee(@as(*const IRDPSRAPIAttendeeDisconnectInfo, @ptrCast(self)), retval); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRDPSRAPIAttendeeDisconnectInfo_get_Reason(self: *const T, pReason: ?*ATTENDEE_DISCONNECT_REASON) HRESULT { return @as(*const IRDPSRAPIAttendeeDisconnectInfo.VTable, @ptrCast(self.vtable)).get_Reason(@as(*const IRDPSRAPIAttendeeDisconnectInfo, @ptrCast(self)), pReason); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRDPSRAPIAttendeeDisconnectInfo_get_Code(self: *const T, pVal: ?*i32) HRESULT { return @as(*const IRDPSRAPIAttendeeDisconnectInfo.VTable, @ptrCast(self.vtable)).get_Code(@as(*const IRDPSRAPIAttendeeDisconnectInfo, @ptrCast(self)), pVal); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows6.0.6000' const IID_IRDPSRAPIVirtualChannel_Value = Guid.initString("05e12f95-28b3-4c9a-8780-d0248574a1e0"); pub const IID_IRDPSRAPIVirtualChannel = &IID_IRDPSRAPIVirtualChannel_Value; pub const IRDPSRAPIVirtualChannel = extern struct { pub const VTable = extern struct { base: IDispatch.VTable, SendData: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IRDPSRAPIVirtualChannel, bstrData: ?BSTR, lAttendeeId: i32, ChannelSendFlags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IRDPSRAPIVirtualChannel, bstrData: ?BSTR, lAttendeeId: i32, ChannelSendFlags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetAccess: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IRDPSRAPIVirtualChannel, lAttendeeId: i32, AccessType: CHANNEL_ACCESS_ENUM, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IRDPSRAPIVirtualChannel, lAttendeeId: i32, AccessType: CHANNEL_ACCESS_ENUM, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Name: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IRDPSRAPIVirtualChannel, pbstrName: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IRDPSRAPIVirtualChannel, pbstrName: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Flags: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IRDPSRAPIVirtualChannel, plFlags: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IRDPSRAPIVirtualChannel, plFlags: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Priority: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IRDPSRAPIVirtualChannel, pPriority: ?*CHANNEL_PRIORITY, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IRDPSRAPIVirtualChannel, pPriority: ?*CHANNEL_PRIORITY, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IDispatch.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRDPSRAPIVirtualChannel_SendData(self: *const T, bstrData: ?BSTR, lAttendeeId: i32, ChannelSendFlags: u32) HRESULT { return @as(*const IRDPSRAPIVirtualChannel.VTable, @ptrCast(self.vtable)).SendData(@as(*const IRDPSRAPIVirtualChannel, @ptrCast(self)), bstrData, lAttendeeId, ChannelSendFlags); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRDPSRAPIVirtualChannel_SetAccess(self: *const T, lAttendeeId: i32, AccessType: CHANNEL_ACCESS_ENUM) HRESULT { return @as(*const IRDPSRAPIVirtualChannel.VTable, @ptrCast(self.vtable)).SetAccess(@as(*const IRDPSRAPIVirtualChannel, @ptrCast(self)), lAttendeeId, AccessType); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRDPSRAPIVirtualChannel_get_Name(self: *const T, pbstrName: ?*?BSTR) HRESULT { return @as(*const IRDPSRAPIVirtualChannel.VTable, @ptrCast(self.vtable)).get_Name(@as(*const IRDPSRAPIVirtualChannel, @ptrCast(self)), pbstrName); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRDPSRAPIVirtualChannel_get_Flags(self: *const T, plFlags: ?*i32) HRESULT { return @as(*const IRDPSRAPIVirtualChannel.VTable, @ptrCast(self.vtable)).get_Flags(@as(*const IRDPSRAPIVirtualChannel, @ptrCast(self)), plFlags); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRDPSRAPIVirtualChannel_get_Priority(self: *const T, pPriority: ?*CHANNEL_PRIORITY) HRESULT { return @as(*const IRDPSRAPIVirtualChannel.VTable, @ptrCast(self.vtable)).get_Priority(@as(*const IRDPSRAPIVirtualChannel, @ptrCast(self)), pPriority); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows6.0.6000' const IID_IRDPSRAPIVirtualChannelManager_Value = Guid.initString("0d11c661-5d0d-4ee4-89df-2166ae1fdfed"); pub const IID_IRDPSRAPIVirtualChannelManager = &IID_IRDPSRAPIVirtualChannelManager_Value; pub const IRDPSRAPIVirtualChannelManager = extern struct { pub const VTable = extern struct { base: IDispatch.VTable, // TODO: this function has a "SpecialName", should Zig do anything with this? get__NewEnum: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IRDPSRAPIVirtualChannelManager, retval: ?*?*IUnknown, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IRDPSRAPIVirtualChannelManager, retval: ?*?*IUnknown, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Item: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IRDPSRAPIVirtualChannelManager, item: VARIANT, pChannel: ?*?*IRDPSRAPIVirtualChannel, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IRDPSRAPIVirtualChannelManager, item: VARIANT, pChannel: ?*?*IRDPSRAPIVirtualChannel, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, CreateVirtualChannel: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IRDPSRAPIVirtualChannelManager, bstrChannelName: ?BSTR, Priority: CHANNEL_PRIORITY, ChannelFlags: u32, ppChannel: ?*?*IRDPSRAPIVirtualChannel, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IRDPSRAPIVirtualChannelManager, bstrChannelName: ?BSTR, Priority: CHANNEL_PRIORITY, ChannelFlags: u32, ppChannel: ?*?*IRDPSRAPIVirtualChannel, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IDispatch.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRDPSRAPIVirtualChannelManager_get__NewEnum(self: *const T, retval: ?*?*IUnknown) HRESULT { return @as(*const IRDPSRAPIVirtualChannelManager.VTable, @ptrCast(self.vtable)).get__NewEnum(@as(*const IRDPSRAPIVirtualChannelManager, @ptrCast(self)), retval); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRDPSRAPIVirtualChannelManager_get_Item(self: *const T, item: VARIANT, pChannel: ?*?*IRDPSRAPIVirtualChannel) HRESULT { return @as(*const IRDPSRAPIVirtualChannelManager.VTable, @ptrCast(self.vtable)).get_Item(@as(*const IRDPSRAPIVirtualChannelManager, @ptrCast(self)), item, pChannel); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRDPSRAPIVirtualChannelManager_CreateVirtualChannel(self: *const T, bstrChannelName: ?BSTR, Priority: CHANNEL_PRIORITY, ChannelFlags: u32, ppChannel: ?*?*IRDPSRAPIVirtualChannel) HRESULT { return @as(*const IRDPSRAPIVirtualChannelManager.VTable, @ptrCast(self.vtable)).CreateVirtualChannel(@as(*const IRDPSRAPIVirtualChannelManager, @ptrCast(self)), bstrChannelName, Priority, ChannelFlags, ppChannel); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows6.0.6000' const IID_IRDPSRAPIViewer_Value = Guid.initString("c6bfcd38-8ce9-404d-8ae8-f31d00c65cb5"); pub const IID_IRDPSRAPIViewer = &IID_IRDPSRAPIViewer_Value; pub const IRDPSRAPIViewer = extern struct { pub const VTable = extern struct { base: IDispatch.VTable, Connect: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IRDPSRAPIViewer, bstrConnectionString: ?BSTR, bstrName: ?BSTR, bstrPassword: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IRDPSRAPIViewer, bstrConnectionString: ?BSTR, bstrName: ?BSTR, bstrPassword: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Disconnect: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IRDPSRAPIViewer, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IRDPSRAPIViewer, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Attendees: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IRDPSRAPIViewer, ppVal: ?*?*IRDPSRAPIAttendeeManager, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IRDPSRAPIViewer, ppVal: ?*?*IRDPSRAPIAttendeeManager, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Invitations: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IRDPSRAPIViewer, ppVal: ?*?*IRDPSRAPIInvitationManager, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IRDPSRAPIViewer, ppVal: ?*?*IRDPSRAPIInvitationManager, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_ApplicationFilter: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IRDPSRAPIViewer, ppVal: ?*?*IRDPSRAPIApplicationFilter, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IRDPSRAPIViewer, ppVal: ?*?*IRDPSRAPIApplicationFilter, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_VirtualChannelManager: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IRDPSRAPIViewer, ppVal: ?*?*IRDPSRAPIVirtualChannelManager, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IRDPSRAPIViewer, ppVal: ?*?*IRDPSRAPIVirtualChannelManager, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_SmartSizing: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IRDPSRAPIViewer, vbSmartSizing: i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IRDPSRAPIViewer, vbSmartSizing: i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_SmartSizing: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IRDPSRAPIViewer, pvbSmartSizing: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IRDPSRAPIViewer, pvbSmartSizing: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, RequestControl: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IRDPSRAPIViewer, CtrlLevel: CTRL_LEVEL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IRDPSRAPIViewer, CtrlLevel: CTRL_LEVEL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_DisconnectedText: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IRDPSRAPIViewer, bstrDisconnectedText: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IRDPSRAPIViewer, bstrDisconnectedText: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_DisconnectedText: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IRDPSRAPIViewer, pbstrDisconnectedText: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IRDPSRAPIViewer, pbstrDisconnectedText: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, RequestColorDepthChange: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IRDPSRAPIViewer, Bpp: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IRDPSRAPIViewer, Bpp: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Properties: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IRDPSRAPIViewer, ppVal: ?*?*IRDPSRAPISessionProperties, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IRDPSRAPIViewer, ppVal: ?*?*IRDPSRAPISessionProperties, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, StartReverseConnectListener: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IRDPSRAPIViewer, bstrConnectionString: ?BSTR, bstrUserName: ?BSTR, bstrPassword: ?BSTR, pbstrReverseConnectString: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IRDPSRAPIViewer, bstrConnectionString: ?BSTR, bstrUserName: ?BSTR, bstrPassword: ?BSTR, pbstrReverseConnectString: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IDispatch.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRDPSRAPIViewer_Connect(self: *const T, bstrConnectionString: ?BSTR, bstrName: ?BSTR, bstrPassword: ?BSTR) HRESULT { return @as(*const IRDPSRAPIViewer.VTable, @ptrCast(self.vtable)).Connect(@as(*const IRDPSRAPIViewer, @ptrCast(self)), bstrConnectionString, bstrName, bstrPassword); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRDPSRAPIViewer_Disconnect(self: *const T) HRESULT { return @as(*const IRDPSRAPIViewer.VTable, @ptrCast(self.vtable)).Disconnect(@as(*const IRDPSRAPIViewer, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRDPSRAPIViewer_get_Attendees(self: *const T, ppVal: ?*?*IRDPSRAPIAttendeeManager) HRESULT { return @as(*const IRDPSRAPIViewer.VTable, @ptrCast(self.vtable)).get_Attendees(@as(*const IRDPSRAPIViewer, @ptrCast(self)), ppVal); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRDPSRAPIViewer_get_Invitations(self: *const T, ppVal: ?*?*IRDPSRAPIInvitationManager) HRESULT { return @as(*const IRDPSRAPIViewer.VTable, @ptrCast(self.vtable)).get_Invitations(@as(*const IRDPSRAPIViewer, @ptrCast(self)), ppVal); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRDPSRAPIViewer_get_ApplicationFilter(self: *const T, ppVal: ?*?*IRDPSRAPIApplicationFilter) HRESULT { return @as(*const IRDPSRAPIViewer.VTable, @ptrCast(self.vtable)).get_ApplicationFilter(@as(*const IRDPSRAPIViewer, @ptrCast(self)), ppVal); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRDPSRAPIViewer_get_VirtualChannelManager(self: *const T, ppVal: ?*?*IRDPSRAPIVirtualChannelManager) HRESULT { return @as(*const IRDPSRAPIViewer.VTable, @ptrCast(self.vtable)).get_VirtualChannelManager(@as(*const IRDPSRAPIViewer, @ptrCast(self)), ppVal); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRDPSRAPIViewer_put_SmartSizing(self: *const T, vbSmartSizing: i16) HRESULT { return @as(*const IRDPSRAPIViewer.VTable, @ptrCast(self.vtable)).put_SmartSizing(@as(*const IRDPSRAPIViewer, @ptrCast(self)), vbSmartSizing); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRDPSRAPIViewer_get_SmartSizing(self: *const T, pvbSmartSizing: ?*i16) HRESULT { return @as(*const IRDPSRAPIViewer.VTable, @ptrCast(self.vtable)).get_SmartSizing(@as(*const IRDPSRAPIViewer, @ptrCast(self)), pvbSmartSizing); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRDPSRAPIViewer_RequestControl(self: *const T, CtrlLevel: CTRL_LEVEL) HRESULT { return @as(*const IRDPSRAPIViewer.VTable, @ptrCast(self.vtable)).RequestControl(@as(*const IRDPSRAPIViewer, @ptrCast(self)), CtrlLevel); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRDPSRAPIViewer_put_DisconnectedText(self: *const T, bstrDisconnectedText: ?BSTR) HRESULT { return @as(*const IRDPSRAPIViewer.VTable, @ptrCast(self.vtable)).put_DisconnectedText(@as(*const IRDPSRAPIViewer, @ptrCast(self)), bstrDisconnectedText); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRDPSRAPIViewer_get_DisconnectedText(self: *const T, pbstrDisconnectedText: ?*?BSTR) HRESULT { return @as(*const IRDPSRAPIViewer.VTable, @ptrCast(self.vtable)).get_DisconnectedText(@as(*const IRDPSRAPIViewer, @ptrCast(self)), pbstrDisconnectedText); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRDPSRAPIViewer_RequestColorDepthChange(self: *const T, Bpp: i32) HRESULT { return @as(*const IRDPSRAPIViewer.VTable, @ptrCast(self.vtable)).RequestColorDepthChange(@as(*const IRDPSRAPIViewer, @ptrCast(self)), Bpp); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRDPSRAPIViewer_get_Properties(self: *const T, ppVal: ?*?*IRDPSRAPISessionProperties) HRESULT { return @as(*const IRDPSRAPIViewer.VTable, @ptrCast(self.vtable)).get_Properties(@as(*const IRDPSRAPIViewer, @ptrCast(self)), ppVal); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRDPSRAPIViewer_StartReverseConnectListener(self: *const T, bstrConnectionString: ?BSTR, bstrUserName: ?BSTR, bstrPassword: ?BSTR, pbstrReverseConnectString: ?*?BSTR) HRESULT { return @as(*const IRDPSRAPIViewer.VTable, @ptrCast(self.vtable)).StartReverseConnectListener(@as(*const IRDPSRAPIViewer, @ptrCast(self)), bstrConnectionString, bstrUserName, bstrPassword, pbstrReverseConnectString); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows8.1' const IID_IRDPViewerInputSink_Value = Guid.initString("bb590853-a6c5-4a7b-8dd4-76b69eea12d5"); pub const IID_IRDPViewerInputSink = &IID_IRDPViewerInputSink_Value; pub const IRDPViewerInputSink = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, SendMouseButtonEvent: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IRDPViewerInputSink, buttonType: RDPSRAPI_MOUSE_BUTTON_TYPE, vbButtonDown: i16, xPos: u32, yPos: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IRDPViewerInputSink, buttonType: RDPSRAPI_MOUSE_BUTTON_TYPE, vbButtonDown: i16, xPos: u32, yPos: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SendMouseMoveEvent: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IRDPViewerInputSink, xPos: u32, yPos: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IRDPViewerInputSink, xPos: u32, yPos: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SendMouseWheelEvent: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IRDPViewerInputSink, wheelRotation: u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IRDPViewerInputSink, wheelRotation: u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SendKeyboardEvent: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IRDPViewerInputSink, codeType: RDPSRAPI_KBD_CODE_TYPE, keycode: u16, vbKeyUp: i16, vbRepeat: i16, vbExtended: i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IRDPViewerInputSink, codeType: RDPSRAPI_KBD_CODE_TYPE, keycode: u16, vbKeyUp: i16, vbRepeat: i16, vbExtended: i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SendSyncEvent: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IRDPViewerInputSink, syncFlags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IRDPViewerInputSink, syncFlags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, BeginTouchFrame: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IRDPViewerInputSink, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IRDPViewerInputSink, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, AddTouchInput: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IRDPViewerInputSink, contactId: u32, event: u32, x: i32, y: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IRDPViewerInputSink, contactId: u32, event: u32, x: i32, y: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, EndTouchFrame: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IRDPViewerInputSink, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IRDPViewerInputSink, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRDPViewerInputSink_SendMouseButtonEvent(self: *const T, buttonType: RDPSRAPI_MOUSE_BUTTON_TYPE, vbButtonDown: i16, xPos: u32, yPos: u32) HRESULT { return @as(*const IRDPViewerInputSink.VTable, @ptrCast(self.vtable)).SendMouseButtonEvent(@as(*const IRDPViewerInputSink, @ptrCast(self)), buttonType, vbButtonDown, xPos, yPos); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRDPViewerInputSink_SendMouseMoveEvent(self: *const T, xPos: u32, yPos: u32) HRESULT { return @as(*const IRDPViewerInputSink.VTable, @ptrCast(self.vtable)).SendMouseMoveEvent(@as(*const IRDPViewerInputSink, @ptrCast(self)), xPos, yPos); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRDPViewerInputSink_SendMouseWheelEvent(self: *const T, wheelRotation: u16) HRESULT { return @as(*const IRDPViewerInputSink.VTable, @ptrCast(self.vtable)).SendMouseWheelEvent(@as(*const IRDPViewerInputSink, @ptrCast(self)), wheelRotation); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRDPViewerInputSink_SendKeyboardEvent(self: *const T, codeType: RDPSRAPI_KBD_CODE_TYPE, keycode: u16, vbKeyUp: i16, vbRepeat: i16, vbExtended: i16) HRESULT { return @as(*const IRDPViewerInputSink.VTable, @ptrCast(self.vtable)).SendKeyboardEvent(@as(*const IRDPViewerInputSink, @ptrCast(self)), codeType, keycode, vbKeyUp, vbRepeat, vbExtended); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRDPViewerInputSink_SendSyncEvent(self: *const T, syncFlags: u32) HRESULT { return @as(*const IRDPViewerInputSink.VTable, @ptrCast(self.vtable)).SendSyncEvent(@as(*const IRDPViewerInputSink, @ptrCast(self)), syncFlags); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRDPViewerInputSink_BeginTouchFrame(self: *const T) HRESULT { return @as(*const IRDPViewerInputSink.VTable, @ptrCast(self.vtable)).BeginTouchFrame(@as(*const IRDPViewerInputSink, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRDPViewerInputSink_AddTouchInput(self: *const T, contactId: u32, event: u32, x: i32, y: i32) HRESULT { return @as(*const IRDPViewerInputSink.VTable, @ptrCast(self.vtable)).AddTouchInput(@as(*const IRDPViewerInputSink, @ptrCast(self)), contactId, event, x, y); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRDPViewerInputSink_EndTouchFrame(self: *const T) HRESULT { return @as(*const IRDPViewerInputSink.VTable, @ptrCast(self.vtable)).EndTouchFrame(@as(*const IRDPViewerInputSink, @ptrCast(self))); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows10.0.10240' const IID_IRDPSRAPIFrameBuffer_Value = Guid.initString("3d67e7d2-b27b-448e-81b3-c6110ed8b4be"); pub const IID_IRDPSRAPIFrameBuffer = &IID_IRDPSRAPIFrameBuffer_Value; pub const IRDPSRAPIFrameBuffer = extern struct { pub const VTable = extern struct { base: IDispatch.VTable, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Width: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IRDPSRAPIFrameBuffer, plWidth: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IRDPSRAPIFrameBuffer, plWidth: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Height: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IRDPSRAPIFrameBuffer, plHeight: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IRDPSRAPIFrameBuffer, plHeight: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Bpp: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IRDPSRAPIFrameBuffer, plBpp: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IRDPSRAPIFrameBuffer, plBpp: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetFrameBufferBits: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IRDPSRAPIFrameBuffer, x: i32, y: i32, Width: i32, Heigth: i32, ppBits: ?*?*SAFEARRAY, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IRDPSRAPIFrameBuffer, x: i32, y: i32, Width: i32, Heigth: i32, ppBits: ?*?*SAFEARRAY, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IDispatch.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRDPSRAPIFrameBuffer_get_Width(self: *const T, plWidth: ?*i32) HRESULT { return @as(*const IRDPSRAPIFrameBuffer.VTable, @ptrCast(self.vtable)).get_Width(@as(*const IRDPSRAPIFrameBuffer, @ptrCast(self)), plWidth); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRDPSRAPIFrameBuffer_get_Height(self: *const T, plHeight: ?*i32) HRESULT { return @as(*const IRDPSRAPIFrameBuffer.VTable, @ptrCast(self.vtable)).get_Height(@as(*const IRDPSRAPIFrameBuffer, @ptrCast(self)), plHeight); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRDPSRAPIFrameBuffer_get_Bpp(self: *const T, plBpp: ?*i32) HRESULT { return @as(*const IRDPSRAPIFrameBuffer.VTable, @ptrCast(self.vtable)).get_Bpp(@as(*const IRDPSRAPIFrameBuffer, @ptrCast(self)), plBpp); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRDPSRAPIFrameBuffer_GetFrameBufferBits(self: *const T, x: i32, y: i32, Width: i32, Heigth: i32, ppBits: ?*?*SAFEARRAY) HRESULT { return @as(*const IRDPSRAPIFrameBuffer.VTable, @ptrCast(self.vtable)).GetFrameBufferBits(@as(*const IRDPSRAPIFrameBuffer, @ptrCast(self)), x, y, Width, Heigth, ppBits); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows6.1' const IID_IRDPSRAPITransportStreamBuffer_Value = Guid.initString("81c80290-5085-44b0-b460-f865c39cb4a9"); pub const IID_IRDPSRAPITransportStreamBuffer = &IID_IRDPSRAPITransportStreamBuffer_Value; pub const IRDPSRAPITransportStreamBuffer = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Storage: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IRDPSRAPITransportStreamBuffer, ppbStorage: ?*?*u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IRDPSRAPITransportStreamBuffer, ppbStorage: ?*?*u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_StorageSize: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IRDPSRAPITransportStreamBuffer, plMaxStore: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IRDPSRAPITransportStreamBuffer, plMaxStore: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_PayloadSize: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IRDPSRAPITransportStreamBuffer, plRetVal: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IRDPSRAPITransportStreamBuffer, plRetVal: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_PayloadSize: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IRDPSRAPITransportStreamBuffer, lVal: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IRDPSRAPITransportStreamBuffer, lVal: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_PayloadOffset: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IRDPSRAPITransportStreamBuffer, plRetVal: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IRDPSRAPITransportStreamBuffer, plRetVal: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_PayloadOffset: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IRDPSRAPITransportStreamBuffer, lRetVal: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IRDPSRAPITransportStreamBuffer, lRetVal: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Flags: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IRDPSRAPITransportStreamBuffer, plFlags: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IRDPSRAPITransportStreamBuffer, plFlags: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_Flags: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IRDPSRAPITransportStreamBuffer, lFlags: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IRDPSRAPITransportStreamBuffer, lFlags: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Context: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IRDPSRAPITransportStreamBuffer, ppContext: ?*?*IUnknown, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IRDPSRAPITransportStreamBuffer, ppContext: ?*?*IUnknown, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_Context: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IRDPSRAPITransportStreamBuffer, pContext: ?*IUnknown, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IRDPSRAPITransportStreamBuffer, pContext: ?*IUnknown, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRDPSRAPITransportStreamBuffer_get_Storage(self: *const T, ppbStorage: ?*?*u8) HRESULT { return @as(*const IRDPSRAPITransportStreamBuffer.VTable, @ptrCast(self.vtable)).get_Storage(@as(*const IRDPSRAPITransportStreamBuffer, @ptrCast(self)), ppbStorage); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRDPSRAPITransportStreamBuffer_get_StorageSize(self: *const T, plMaxStore: ?*i32) HRESULT { return @as(*const IRDPSRAPITransportStreamBuffer.VTable, @ptrCast(self.vtable)).get_StorageSize(@as(*const IRDPSRAPITransportStreamBuffer, @ptrCast(self)), plMaxStore); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRDPSRAPITransportStreamBuffer_get_PayloadSize(self: *const T, plRetVal: ?*i32) HRESULT { return @as(*const IRDPSRAPITransportStreamBuffer.VTable, @ptrCast(self.vtable)).get_PayloadSize(@as(*const IRDPSRAPITransportStreamBuffer, @ptrCast(self)), plRetVal); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRDPSRAPITransportStreamBuffer_put_PayloadSize(self: *const T, lVal: i32) HRESULT { return @as(*const IRDPSRAPITransportStreamBuffer.VTable, @ptrCast(self.vtable)).put_PayloadSize(@as(*const IRDPSRAPITransportStreamBuffer, @ptrCast(self)), lVal); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRDPSRAPITransportStreamBuffer_get_PayloadOffset(self: *const T, plRetVal: ?*i32) HRESULT { return @as(*const IRDPSRAPITransportStreamBuffer.VTable, @ptrCast(self.vtable)).get_PayloadOffset(@as(*const IRDPSRAPITransportStreamBuffer, @ptrCast(self)), plRetVal); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRDPSRAPITransportStreamBuffer_put_PayloadOffset(self: *const T, lRetVal: i32) HRESULT { return @as(*const IRDPSRAPITransportStreamBuffer.VTable, @ptrCast(self.vtable)).put_PayloadOffset(@as(*const IRDPSRAPITransportStreamBuffer, @ptrCast(self)), lRetVal); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRDPSRAPITransportStreamBuffer_get_Flags(self: *const T, plFlags: ?*i32) HRESULT { return @as(*const IRDPSRAPITransportStreamBuffer.VTable, @ptrCast(self.vtable)).get_Flags(@as(*const IRDPSRAPITransportStreamBuffer, @ptrCast(self)), plFlags); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRDPSRAPITransportStreamBuffer_put_Flags(self: *const T, lFlags: i32) HRESULT { return @as(*const IRDPSRAPITransportStreamBuffer.VTable, @ptrCast(self.vtable)).put_Flags(@as(*const IRDPSRAPITransportStreamBuffer, @ptrCast(self)), lFlags); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRDPSRAPITransportStreamBuffer_get_Context(self: *const T, ppContext: ?*?*IUnknown) HRESULT { return @as(*const IRDPSRAPITransportStreamBuffer.VTable, @ptrCast(self.vtable)).get_Context(@as(*const IRDPSRAPITransportStreamBuffer, @ptrCast(self)), ppContext); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRDPSRAPITransportStreamBuffer_put_Context(self: *const T, pContext: ?*IUnknown) HRESULT { return @as(*const IRDPSRAPITransportStreamBuffer.VTable, @ptrCast(self.vtable)).put_Context(@as(*const IRDPSRAPITransportStreamBuffer, @ptrCast(self)), pContext); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows6.1' const IID_IRDPSRAPITransportStreamEvents_Value = Guid.initString("ea81c254-f5af-4e40-982e-3e63bb595276"); pub const IID_IRDPSRAPITransportStreamEvents = &IID_IRDPSRAPITransportStreamEvents_Value; pub const IRDPSRAPITransportStreamEvents = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, OnWriteCompleted: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IRDPSRAPITransportStreamEvents, pBuffer: ?*IRDPSRAPITransportStreamBuffer, ) callconv(@import("std").os.windows.WINAPI) void, else => *const fn ( self: *const IRDPSRAPITransportStreamEvents, pBuffer: ?*IRDPSRAPITransportStreamBuffer, ) callconv(@import("std").os.windows.WINAPI) void, }, OnReadCompleted: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IRDPSRAPITransportStreamEvents, pBuffer: ?*IRDPSRAPITransportStreamBuffer, ) callconv(@import("std").os.windows.WINAPI) void, else => *const fn ( self: *const IRDPSRAPITransportStreamEvents, pBuffer: ?*IRDPSRAPITransportStreamBuffer, ) callconv(@import("std").os.windows.WINAPI) void, }, OnStreamClosed: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IRDPSRAPITransportStreamEvents, hrReason: HRESULT, ) callconv(@import("std").os.windows.WINAPI) void, else => *const fn ( self: *const IRDPSRAPITransportStreamEvents, hrReason: HRESULT, ) callconv(@import("std").os.windows.WINAPI) void, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRDPSRAPITransportStreamEvents_OnWriteCompleted(self: *const T, pBuffer: ?*IRDPSRAPITransportStreamBuffer) void { return @as(*const IRDPSRAPITransportStreamEvents.VTable, @ptrCast(self.vtable)).OnWriteCompleted(@as(*const IRDPSRAPITransportStreamEvents, @ptrCast(self)), pBuffer); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRDPSRAPITransportStreamEvents_OnReadCompleted(self: *const T, pBuffer: ?*IRDPSRAPITransportStreamBuffer) void { return @as(*const IRDPSRAPITransportStreamEvents.VTable, @ptrCast(self.vtable)).OnReadCompleted(@as(*const IRDPSRAPITransportStreamEvents, @ptrCast(self)), pBuffer); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRDPSRAPITransportStreamEvents_OnStreamClosed(self: *const T, hrReason: HRESULT) void { return @as(*const IRDPSRAPITransportStreamEvents.VTable, @ptrCast(self.vtable)).OnStreamClosed(@as(*const IRDPSRAPITransportStreamEvents, @ptrCast(self)), hrReason); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows6.1' const IID_IRDPSRAPITransportStream_Value = Guid.initString("36cfa065-43bb-4ef7-aed7-9b88a5053036"); pub const IID_IRDPSRAPITransportStream = &IID_IRDPSRAPITransportStream_Value; pub const IRDPSRAPITransportStream = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, AllocBuffer: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IRDPSRAPITransportStream, maxPayload: i32, ppBuffer: ?*?*IRDPSRAPITransportStreamBuffer, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IRDPSRAPITransportStream, maxPayload: i32, ppBuffer: ?*?*IRDPSRAPITransportStreamBuffer, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, FreeBuffer: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IRDPSRAPITransportStream, pBuffer: ?*IRDPSRAPITransportStreamBuffer, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IRDPSRAPITransportStream, pBuffer: ?*IRDPSRAPITransportStreamBuffer, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, WriteBuffer: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IRDPSRAPITransportStream, pBuffer: ?*IRDPSRAPITransportStreamBuffer, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IRDPSRAPITransportStream, pBuffer: ?*IRDPSRAPITransportStreamBuffer, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, ReadBuffer: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IRDPSRAPITransportStream, pBuffer: ?*IRDPSRAPITransportStreamBuffer, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IRDPSRAPITransportStream, pBuffer: ?*IRDPSRAPITransportStreamBuffer, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Open: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IRDPSRAPITransportStream, pCallbacks: ?*IRDPSRAPITransportStreamEvents, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IRDPSRAPITransportStream, pCallbacks: ?*IRDPSRAPITransportStreamEvents, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Close: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IRDPSRAPITransportStream, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IRDPSRAPITransportStream, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRDPSRAPITransportStream_AllocBuffer(self: *const T, maxPayload: i32, ppBuffer: ?*?*IRDPSRAPITransportStreamBuffer) HRESULT { return @as(*const IRDPSRAPITransportStream.VTable, @ptrCast(self.vtable)).AllocBuffer(@as(*const IRDPSRAPITransportStream, @ptrCast(self)), maxPayload, ppBuffer); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRDPSRAPITransportStream_FreeBuffer(self: *const T, pBuffer: ?*IRDPSRAPITransportStreamBuffer) HRESULT { return @as(*const IRDPSRAPITransportStream.VTable, @ptrCast(self.vtable)).FreeBuffer(@as(*const IRDPSRAPITransportStream, @ptrCast(self)), pBuffer); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRDPSRAPITransportStream_WriteBuffer(self: *const T, pBuffer: ?*IRDPSRAPITransportStreamBuffer) HRESULT { return @as(*const IRDPSRAPITransportStream.VTable, @ptrCast(self.vtable)).WriteBuffer(@as(*const IRDPSRAPITransportStream, @ptrCast(self)), pBuffer); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRDPSRAPITransportStream_ReadBuffer(self: *const T, pBuffer: ?*IRDPSRAPITransportStreamBuffer) HRESULT { return @as(*const IRDPSRAPITransportStream.VTable, @ptrCast(self.vtable)).ReadBuffer(@as(*const IRDPSRAPITransportStream, @ptrCast(self)), pBuffer); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRDPSRAPITransportStream_Open(self: *const T, pCallbacks: ?*IRDPSRAPITransportStreamEvents) HRESULT { return @as(*const IRDPSRAPITransportStream.VTable, @ptrCast(self.vtable)).Open(@as(*const IRDPSRAPITransportStream, @ptrCast(self)), pCallbacks); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRDPSRAPITransportStream_Close(self: *const T) HRESULT { return @as(*const IRDPSRAPITransportStream.VTable, @ptrCast(self.vtable)).Close(@as(*const IRDPSRAPITransportStream, @ptrCast(self))); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows6.0.6000' const IID_IRDPSRAPISharingSession_Value = Guid.initString("eeb20886-e470-4cf6-842b-2739c0ec5cfb"); pub const IID_IRDPSRAPISharingSession = &IID_IRDPSRAPISharingSession_Value; pub const IRDPSRAPISharingSession = extern struct { pub const VTable = extern struct { base: IDispatch.VTable, Open: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IRDPSRAPISharingSession, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IRDPSRAPISharingSession, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Close: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IRDPSRAPISharingSession, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IRDPSRAPISharingSession, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_ColorDepth: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IRDPSRAPISharingSession, colorDepth: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IRDPSRAPISharingSession, colorDepth: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_ColorDepth: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IRDPSRAPISharingSession, pColorDepth: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IRDPSRAPISharingSession, pColorDepth: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Properties: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IRDPSRAPISharingSession, ppVal: ?*?*IRDPSRAPISessionProperties, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IRDPSRAPISharingSession, ppVal: ?*?*IRDPSRAPISessionProperties, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Attendees: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IRDPSRAPISharingSession, ppVal: ?*?*IRDPSRAPIAttendeeManager, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IRDPSRAPISharingSession, ppVal: ?*?*IRDPSRAPIAttendeeManager, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Invitations: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IRDPSRAPISharingSession, ppVal: ?*?*IRDPSRAPIInvitationManager, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IRDPSRAPISharingSession, ppVal: ?*?*IRDPSRAPIInvitationManager, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_ApplicationFilter: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IRDPSRAPISharingSession, ppVal: ?*?*IRDPSRAPIApplicationFilter, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IRDPSRAPISharingSession, ppVal: ?*?*IRDPSRAPIApplicationFilter, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_VirtualChannelManager: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IRDPSRAPISharingSession, ppVal: ?*?*IRDPSRAPIVirtualChannelManager, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IRDPSRAPISharingSession, ppVal: ?*?*IRDPSRAPIVirtualChannelManager, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Pause: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IRDPSRAPISharingSession, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IRDPSRAPISharingSession, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Resume: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IRDPSRAPISharingSession, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IRDPSRAPISharingSession, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, ConnectToClient: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IRDPSRAPISharingSession, bstrConnectionString: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IRDPSRAPISharingSession, bstrConnectionString: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetDesktopSharedRect: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IRDPSRAPISharingSession, left: i32, top: i32, right: i32, bottom: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IRDPSRAPISharingSession, left: i32, top: i32, right: i32, bottom: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetDesktopSharedRect: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IRDPSRAPISharingSession, pleft: ?*i32, ptop: ?*i32, pright: ?*i32, pbottom: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IRDPSRAPISharingSession, pleft: ?*i32, ptop: ?*i32, pright: ?*i32, pbottom: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IDispatch.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRDPSRAPISharingSession_Open(self: *const T) HRESULT { return @as(*const IRDPSRAPISharingSession.VTable, @ptrCast(self.vtable)).Open(@as(*const IRDPSRAPISharingSession, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRDPSRAPISharingSession_Close(self: *const T) HRESULT { return @as(*const IRDPSRAPISharingSession.VTable, @ptrCast(self.vtable)).Close(@as(*const IRDPSRAPISharingSession, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRDPSRAPISharingSession_put_ColorDepth(self: *const T, colorDepth: i32) HRESULT { return @as(*const IRDPSRAPISharingSession.VTable, @ptrCast(self.vtable)).put_ColorDepth(@as(*const IRDPSRAPISharingSession, @ptrCast(self)), colorDepth); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRDPSRAPISharingSession_get_ColorDepth(self: *const T, pColorDepth: ?*i32) HRESULT { return @as(*const IRDPSRAPISharingSession.VTable, @ptrCast(self.vtable)).get_ColorDepth(@as(*const IRDPSRAPISharingSession, @ptrCast(self)), pColorDepth); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRDPSRAPISharingSession_get_Properties(self: *const T, ppVal: ?*?*IRDPSRAPISessionProperties) HRESULT { return @as(*const IRDPSRAPISharingSession.VTable, @ptrCast(self.vtable)).get_Properties(@as(*const IRDPSRAPISharingSession, @ptrCast(self)), ppVal); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRDPSRAPISharingSession_get_Attendees(self: *const T, ppVal: ?*?*IRDPSRAPIAttendeeManager) HRESULT { return @as(*const IRDPSRAPISharingSession.VTable, @ptrCast(self.vtable)).get_Attendees(@as(*const IRDPSRAPISharingSession, @ptrCast(self)), ppVal); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRDPSRAPISharingSession_get_Invitations(self: *const T, ppVal: ?*?*IRDPSRAPIInvitationManager) HRESULT { return @as(*const IRDPSRAPISharingSession.VTable, @ptrCast(self.vtable)).get_Invitations(@as(*const IRDPSRAPISharingSession, @ptrCast(self)), ppVal); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRDPSRAPISharingSession_get_ApplicationFilter(self: *const T, ppVal: ?*?*IRDPSRAPIApplicationFilter) HRESULT { return @as(*const IRDPSRAPISharingSession.VTable, @ptrCast(self.vtable)).get_ApplicationFilter(@as(*const IRDPSRAPISharingSession, @ptrCast(self)), ppVal); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRDPSRAPISharingSession_get_VirtualChannelManager(self: *const T, ppVal: ?*?*IRDPSRAPIVirtualChannelManager) HRESULT { return @as(*const IRDPSRAPISharingSession.VTable, @ptrCast(self.vtable)).get_VirtualChannelManager(@as(*const IRDPSRAPISharingSession, @ptrCast(self)), ppVal); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRDPSRAPISharingSession_Pause(self: *const T) HRESULT { return @as(*const IRDPSRAPISharingSession.VTable, @ptrCast(self.vtable)).Pause(@as(*const IRDPSRAPISharingSession, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRDPSRAPISharingSession_Resume(self: *const T) HRESULT { return @as(*const IRDPSRAPISharingSession.VTable, @ptrCast(self.vtable)).Resume(@as(*const IRDPSRAPISharingSession, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRDPSRAPISharingSession_ConnectToClient(self: *const T, bstrConnectionString: ?BSTR) HRESULT { return @as(*const IRDPSRAPISharingSession.VTable, @ptrCast(self.vtable)).ConnectToClient(@as(*const IRDPSRAPISharingSession, @ptrCast(self)), bstrConnectionString); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRDPSRAPISharingSession_SetDesktopSharedRect(self: *const T, left: i32, top: i32, right: i32, bottom: i32) HRESULT { return @as(*const IRDPSRAPISharingSession.VTable, @ptrCast(self.vtable)).SetDesktopSharedRect(@as(*const IRDPSRAPISharingSession, @ptrCast(self)), left, top, right, bottom); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRDPSRAPISharingSession_GetDesktopSharedRect(self: *const T, pleft: ?*i32, ptop: ?*i32, pright: ?*i32, pbottom: ?*i32) HRESULT { return @as(*const IRDPSRAPISharingSession.VTable, @ptrCast(self.vtable)).GetDesktopSharedRect(@as(*const IRDPSRAPISharingSession, @ptrCast(self)), pleft, ptop, pright, pbottom); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows10.0.10240' const IID_IRDPSRAPISharingSession2_Value = Guid.initString("fee4ee57-e3e8-4205-8fb0-8fd1d0675c21"); pub const IID_IRDPSRAPISharingSession2 = &IID_IRDPSRAPISharingSession2_Value; pub const IRDPSRAPISharingSession2 = extern struct { pub const VTable = extern struct { base: IRDPSRAPISharingSession.VTable, ConnectUsingTransportStream: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IRDPSRAPISharingSession2, pStream: ?*IRDPSRAPITransportStream, bstrGroup: ?BSTR, bstrAuthenticatedAttendeeName: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IRDPSRAPISharingSession2, pStream: ?*IRDPSRAPITransportStream, bstrGroup: ?BSTR, bstrAuthenticatedAttendeeName: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_FrameBuffer: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IRDPSRAPISharingSession2, ppVal: ?*?*IRDPSRAPIFrameBuffer, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IRDPSRAPISharingSession2, ppVal: ?*?*IRDPSRAPIFrameBuffer, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SendControlLevelChangeResponse: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IRDPSRAPISharingSession2, pAttendee: ?*IRDPSRAPIAttendee, RequestedLevel: CTRL_LEVEL, ReasonCode: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IRDPSRAPISharingSession2, pAttendee: ?*IRDPSRAPIAttendee, RequestedLevel: CTRL_LEVEL, ReasonCode: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IRDPSRAPISharingSession.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRDPSRAPISharingSession2_ConnectUsingTransportStream(self: *const T, pStream: ?*IRDPSRAPITransportStream, bstrGroup: ?BSTR, bstrAuthenticatedAttendeeName: ?BSTR) HRESULT { return @as(*const IRDPSRAPISharingSession2.VTable, @ptrCast(self.vtable)).ConnectUsingTransportStream(@as(*const IRDPSRAPISharingSession2, @ptrCast(self)), pStream, bstrGroup, bstrAuthenticatedAttendeeName); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRDPSRAPISharingSession2_get_FrameBuffer(self: *const T, ppVal: ?*?*IRDPSRAPIFrameBuffer) HRESULT { return @as(*const IRDPSRAPISharingSession2.VTable, @ptrCast(self.vtable)).get_FrameBuffer(@as(*const IRDPSRAPISharingSession2, @ptrCast(self)), ppVal); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRDPSRAPISharingSession2_SendControlLevelChangeResponse(self: *const T, pAttendee: ?*IRDPSRAPIAttendee, RequestedLevel: CTRL_LEVEL, ReasonCode: i32) HRESULT { return @as(*const IRDPSRAPISharingSession2.VTable, @ptrCast(self.vtable)).SendControlLevelChangeResponse(@as(*const IRDPSRAPISharingSession2, @ptrCast(self)), pAttendee, RequestedLevel, ReasonCode); } }; } pub usingnamespace MethodMixin(@This()); }; pub const __MIDL___MIDL_itf_rdpencomapi_0000_0027_0001 = enum(i32) { MAX_CHANNEL_MESSAGE_SIZE = 1024, MAX_CHANNEL_NAME_LEN = 8, MAX_LEGACY_CHANNEL_MESSAGE_SIZE = 409600, ATTENDEE_ID_EVERYONE = -1, ATTENDEE_ID_HOST = 0, CONN_INTERVAL = 50, // ATTENDEE_ID_DEFAULT = -1, this enum value conflicts with ATTENDEE_ID_EVERYONE }; pub const CONST_MAX_CHANNEL_MESSAGE_SIZE = __MIDL___MIDL_itf_rdpencomapi_0000_0027_0001.MAX_CHANNEL_MESSAGE_SIZE; pub const CONST_MAX_CHANNEL_NAME_LEN = __MIDL___MIDL_itf_rdpencomapi_0000_0027_0001.MAX_CHANNEL_NAME_LEN; pub const CONST_MAX_LEGACY_CHANNEL_MESSAGE_SIZE = __MIDL___MIDL_itf_rdpencomapi_0000_0027_0001.MAX_LEGACY_CHANNEL_MESSAGE_SIZE; pub const CONST_ATTENDEE_ID_EVERYONE = __MIDL___MIDL_itf_rdpencomapi_0000_0027_0001.ATTENDEE_ID_EVERYONE; pub const CONST_ATTENDEE_ID_HOST = __MIDL___MIDL_itf_rdpencomapi_0000_0027_0001.ATTENDEE_ID_HOST; pub const CONST_CONN_INTERVAL = __MIDL___MIDL_itf_rdpencomapi_0000_0027_0001.CONN_INTERVAL; pub const CONST_ATTENDEE_ID_DEFAULT = __MIDL___MIDL_itf_rdpencomapi_0000_0027_0001.ATTENDEE_ID_EVERYONE; pub const __ReferenceRemainingTypes__ = extern struct { __ctrlLevel__: CTRL_LEVEL, __attendeeDisconnectReason__: ATTENDEE_DISCONNECT_REASON, __channelPriority__: CHANNEL_PRIORITY, __channelFlags__: CHANNEL_FLAGS, __channelAccessEnum__: CHANNEL_ACCESS_ENUM, __rdpencomapiAttendeeFlags__: RDPENCOMAPI_ATTENDEE_FLAGS, __rdpsrapiWndFlags__: RDPSRAPI_WND_FLAGS, __rdpsrapiAppFlags__: RDPSRAPI_APP_FLAGS, }; // TODO: this type is limited to platform 'windows6.0.6000' const IID__IRDPSessionEvents_Value = Guid.initString("98a97042-6698-40e9-8efd-b3200990004b"); pub const IID__IRDPSessionEvents = &IID__IRDPSessionEvents_Value; pub const _IRDPSessionEvents = extern struct { pub const VTable = extern struct { base: IDispatch.VTable, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IDispatch.MethodMixin(T); }; } pub usingnamespace MethodMixin(@This()); }; //-------------------------------------------------------------------------------- // Section: Functions (0) //-------------------------------------------------------------------------------- //-------------------------------------------------------------------------------- // Section: Unicode Aliases (0) //-------------------------------------------------------------------------------- const thismodule = @This(); pub usingnamespace switch (@import("../zig.zig").unicode_mode) { .ansi => struct {}, .wide => struct {}, .unspecified => if (@import("builtin").is_test) struct {} else struct {}, }; //-------------------------------------------------------------------------------- // Section: Imports (7) //-------------------------------------------------------------------------------- const Guid = @import("../zig.zig").Guid; const BSTR = @import("../foundation.zig").BSTR; const HRESULT = @import("../foundation.zig").HRESULT; const IDispatch = @import("../system/com.zig").IDispatch; const IUnknown = @import("../system/com.zig").IUnknown; const SAFEARRAY = @import("../system/com.zig").SAFEARRAY; const VARIANT = @import("../system/com.zig").VARIANT; test { @setEvalBranchQuota(comptime @import("std").meta.declarations(@This()).len * 3); // reference all the pub declarations if (!@import("builtin").is_test) return; inline for (comptime @import("std").meta.declarations(@This())) |decl| { if (decl.is_pub) { _ = @field(@This(), decl.name); } } }
0
repos/capy/vendor/zigwin32/win32
repos/capy/vendor/zigwin32/win32/system/hypervisor.zig
//! NOTE: this file is autogenerated, DO NOT MODIFY //-------------------------------------------------------------------------------- // Section: Constants (24) //-------------------------------------------------------------------------------- pub const HVSOCKET_CONNECT_TIMEOUT = @as(u32, 1); pub const HVSOCKET_CONNECT_TIMEOUT_MAX = @as(u32, 300000); pub const HVSOCKET_CONTAINER_PASSTHRU = @as(u32, 2); pub const HVSOCKET_CONNECTED_SUSPEND = @as(u32, 4); pub const HV_PROTOCOL_RAW = @as(u32, 1); pub const HVSOCKET_ADDRESS_FLAG_PASSTHRU = @as(u32, 1); pub const WHV_PROCESSOR_FEATURES_BANKS_COUNT = @as(u32, 2); pub const WHV_SYNTHETIC_PROCESSOR_FEATURES_BANKS_COUNT = @as(u32, 1); pub const WHV_READ_WRITE_GPA_RANGE_MAX_SIZE = @as(u32, 16); pub const WHV_HYPERCALL_CONTEXT_MAX_XMM_REGISTERS = @as(u32, 6); pub const WHV_MAX_DEVICE_ID_SIZE_IN_CHARS = @as(u32, 200); pub const WHV_VPCI_TYPE0_BAR_COUNT = @as(u32, 6); pub const WHV_ANY_VP = @as(u32, 4294967295); pub const WHV_SYNIC_MESSAGE_SIZE = @as(u32, 256); pub const IOCTL_VMGENCOUNTER_READ = @as(u32, 3325956); pub const HDV_PCI_BAR_COUNT = @as(u32, 6); pub const HV_GUID_ZERO = Guid.initString("00000000-0000-0000-0000-000000000000"); pub const HV_GUID_BROADCAST = Guid.initString("ffffffff-ffff-ffff-ffff-ffffffffffff"); pub const HV_GUID_CHILDREN = Guid.initString("90db8b89-0d35-4f79-8ce9-49ea0ac8b7cd"); pub const HV_GUID_LOOPBACK = Guid.initString("e0e16197-dd56-4a10-9195-5ee7a155a838"); pub const HV_GUID_PARENT = Guid.initString("a42e7cda-d03f-480c-9cc2-a4de20abb878"); pub const HV_GUID_SILOHOST = Guid.initString("36bd0c5c-7276-4223-88ba-7d03b654c568"); pub const HV_GUID_VSOCK_TEMPLATE = Guid.initString("00000000-facb-11e6-bd58-64006a7986d3"); pub const GUID_DEVINTERFACE_VM_GENCOUNTER = Guid.initString("3ff2c92b-6598-4e60-8e1c-0ccf4927e319"); //-------------------------------------------------------------------------------- // Section: Types (162) //-------------------------------------------------------------------------------- // TODO: this type has a FreeFunc 'WHvDeletePartition', what can Zig do with this information? pub const WHV_PARTITION_HANDLE = isize; pub const WHV_CAPABILITY_CODE = enum(i32) { HypervisorPresent = 0, Features = 1, ExtendedVmExits = 2, ExceptionExitBitmap = 3, X64MsrExitBitmap = 4, GpaRangePopulateFlags = 5, SchedulerFeatures = 6, ProcessorVendor = 4096, ProcessorFeatures = 4097, ProcessorClFlushSize = 4098, ProcessorXsaveFeatures = 4099, ProcessorClockFrequency = 4100, InterruptClockFrequency = 4101, ProcessorFeaturesBanks = 4102, ProcessorFrequencyCap = 4103, SyntheticProcessorFeaturesBanks = 4104, ProcessorPerfmonFeatures = 4105, }; pub const WHvCapabilityCodeHypervisorPresent = WHV_CAPABILITY_CODE.HypervisorPresent; pub const WHvCapabilityCodeFeatures = WHV_CAPABILITY_CODE.Features; pub const WHvCapabilityCodeExtendedVmExits = WHV_CAPABILITY_CODE.ExtendedVmExits; pub const WHvCapabilityCodeExceptionExitBitmap = WHV_CAPABILITY_CODE.ExceptionExitBitmap; pub const WHvCapabilityCodeX64MsrExitBitmap = WHV_CAPABILITY_CODE.X64MsrExitBitmap; pub const WHvCapabilityCodeGpaRangePopulateFlags = WHV_CAPABILITY_CODE.GpaRangePopulateFlags; pub const WHvCapabilityCodeSchedulerFeatures = WHV_CAPABILITY_CODE.SchedulerFeatures; pub const WHvCapabilityCodeProcessorVendor = WHV_CAPABILITY_CODE.ProcessorVendor; pub const WHvCapabilityCodeProcessorFeatures = WHV_CAPABILITY_CODE.ProcessorFeatures; pub const WHvCapabilityCodeProcessorClFlushSize = WHV_CAPABILITY_CODE.ProcessorClFlushSize; pub const WHvCapabilityCodeProcessorXsaveFeatures = WHV_CAPABILITY_CODE.ProcessorXsaveFeatures; pub const WHvCapabilityCodeProcessorClockFrequency = WHV_CAPABILITY_CODE.ProcessorClockFrequency; pub const WHvCapabilityCodeInterruptClockFrequency = WHV_CAPABILITY_CODE.InterruptClockFrequency; pub const WHvCapabilityCodeProcessorFeaturesBanks = WHV_CAPABILITY_CODE.ProcessorFeaturesBanks; pub const WHvCapabilityCodeProcessorFrequencyCap = WHV_CAPABILITY_CODE.ProcessorFrequencyCap; pub const WHvCapabilityCodeSyntheticProcessorFeaturesBanks = WHV_CAPABILITY_CODE.SyntheticProcessorFeaturesBanks; pub const WHvCapabilityCodeProcessorPerfmonFeatures = WHV_CAPABILITY_CODE.ProcessorPerfmonFeatures; pub const WHV_CAPABILITY_FEATURES = extern union { Anonymous: extern struct { _bitfield: u64, }, AsUINT64: u64, }; pub const WHV_EXTENDED_VM_EXITS = extern union { Anonymous: extern struct { _bitfield: u64, }, AsUINT64: u64, }; pub const WHV_PROCESSOR_VENDOR = enum(i32) { Amd = 0, Intel = 1, Hygon = 2, }; pub const WHvProcessorVendorAmd = WHV_PROCESSOR_VENDOR.Amd; pub const WHvProcessorVendorIntel = WHV_PROCESSOR_VENDOR.Intel; pub const WHvProcessorVendorHygon = WHV_PROCESSOR_VENDOR.Hygon; pub const WHV_PROCESSOR_FEATURES = extern union { Anonymous: extern struct { _bitfield: u64, }, AsUINT64: u64, }; pub const WHV_PROCESSOR_FEATURES1 = extern union { Anonymous: extern struct { _bitfield: u64, }, AsUINT64: u64, }; pub const WHV_PROCESSOR_FEATURES_BANKS = extern struct { BanksCount: u32, Reserved0: u32, Anonymous: extern union { Anonymous: extern struct { Bank0: WHV_PROCESSOR_FEATURES, Bank1: WHV_PROCESSOR_FEATURES1, }, AsUINT64: [2]u64, }, }; pub const WHV_SYNTHETIC_PROCESSOR_FEATURES = extern union { Anonymous: extern struct { _bitfield: u64, }, AsUINT64: u64, }; pub const WHV_SYNTHETIC_PROCESSOR_FEATURES_BANKS = extern struct { BanksCount: u32, Reserved0: u32, Anonymous: extern union { Anonymous: extern struct { Bank0: WHV_SYNTHETIC_PROCESSOR_FEATURES, }, AsUINT64: [1]u64, }, }; pub const WHV_PARTITION_PROPERTY_CODE = enum(i32) { ExtendedVmExits = 1, ExceptionExitBitmap = 2, SeparateSecurityDomain = 3, NestedVirtualization = 4, X64MsrExitBitmap = 5, PrimaryNumaNode = 6, CpuReserve = 7, CpuCap = 8, CpuWeight = 9, CpuGroupId = 10, ProcessorFrequencyCap = 11, AllowDeviceAssignment = 12, DisableSmt = 13, ProcessorFeatures = 4097, ProcessorClFlushSize = 4098, CpuidExitList = 4099, CpuidResultList = 4100, LocalApicEmulationMode = 4101, ProcessorXsaveFeatures = 4102, ProcessorClockFrequency = 4103, InterruptClockFrequency = 4104, ApicRemoteReadSupport = 4105, ProcessorFeaturesBanks = 4106, ReferenceTime = 4107, SyntheticProcessorFeaturesBanks = 4108, CpuidResultList2 = 4109, ProcessorPerfmonFeatures = 4110, MsrActionList = 4111, UnimplementedMsrAction = 4112, ProcessorCount = 8191, }; pub const WHvPartitionPropertyCodeExtendedVmExits = WHV_PARTITION_PROPERTY_CODE.ExtendedVmExits; pub const WHvPartitionPropertyCodeExceptionExitBitmap = WHV_PARTITION_PROPERTY_CODE.ExceptionExitBitmap; pub const WHvPartitionPropertyCodeSeparateSecurityDomain = WHV_PARTITION_PROPERTY_CODE.SeparateSecurityDomain; pub const WHvPartitionPropertyCodeNestedVirtualization = WHV_PARTITION_PROPERTY_CODE.NestedVirtualization; pub const WHvPartitionPropertyCodeX64MsrExitBitmap = WHV_PARTITION_PROPERTY_CODE.X64MsrExitBitmap; pub const WHvPartitionPropertyCodePrimaryNumaNode = WHV_PARTITION_PROPERTY_CODE.PrimaryNumaNode; pub const WHvPartitionPropertyCodeCpuReserve = WHV_PARTITION_PROPERTY_CODE.CpuReserve; pub const WHvPartitionPropertyCodeCpuCap = WHV_PARTITION_PROPERTY_CODE.CpuCap; pub const WHvPartitionPropertyCodeCpuWeight = WHV_PARTITION_PROPERTY_CODE.CpuWeight; pub const WHvPartitionPropertyCodeCpuGroupId = WHV_PARTITION_PROPERTY_CODE.CpuGroupId; pub const WHvPartitionPropertyCodeProcessorFrequencyCap = WHV_PARTITION_PROPERTY_CODE.ProcessorFrequencyCap; pub const WHvPartitionPropertyCodeAllowDeviceAssignment = WHV_PARTITION_PROPERTY_CODE.AllowDeviceAssignment; pub const WHvPartitionPropertyCodeDisableSmt = WHV_PARTITION_PROPERTY_CODE.DisableSmt; pub const WHvPartitionPropertyCodeProcessorFeatures = WHV_PARTITION_PROPERTY_CODE.ProcessorFeatures; pub const WHvPartitionPropertyCodeProcessorClFlushSize = WHV_PARTITION_PROPERTY_CODE.ProcessorClFlushSize; pub const WHvPartitionPropertyCodeCpuidExitList = WHV_PARTITION_PROPERTY_CODE.CpuidExitList; pub const WHvPartitionPropertyCodeCpuidResultList = WHV_PARTITION_PROPERTY_CODE.CpuidResultList; pub const WHvPartitionPropertyCodeLocalApicEmulationMode = WHV_PARTITION_PROPERTY_CODE.LocalApicEmulationMode; pub const WHvPartitionPropertyCodeProcessorXsaveFeatures = WHV_PARTITION_PROPERTY_CODE.ProcessorXsaveFeatures; pub const WHvPartitionPropertyCodeProcessorClockFrequency = WHV_PARTITION_PROPERTY_CODE.ProcessorClockFrequency; pub const WHvPartitionPropertyCodeInterruptClockFrequency = WHV_PARTITION_PROPERTY_CODE.InterruptClockFrequency; pub const WHvPartitionPropertyCodeApicRemoteReadSupport = WHV_PARTITION_PROPERTY_CODE.ApicRemoteReadSupport; pub const WHvPartitionPropertyCodeProcessorFeaturesBanks = WHV_PARTITION_PROPERTY_CODE.ProcessorFeaturesBanks; pub const WHvPartitionPropertyCodeReferenceTime = WHV_PARTITION_PROPERTY_CODE.ReferenceTime; pub const WHvPartitionPropertyCodeSyntheticProcessorFeaturesBanks = WHV_PARTITION_PROPERTY_CODE.SyntheticProcessorFeaturesBanks; pub const WHvPartitionPropertyCodeCpuidResultList2 = WHV_PARTITION_PROPERTY_CODE.CpuidResultList2; pub const WHvPartitionPropertyCodeProcessorPerfmonFeatures = WHV_PARTITION_PROPERTY_CODE.ProcessorPerfmonFeatures; pub const WHvPartitionPropertyCodeMsrActionList = WHV_PARTITION_PROPERTY_CODE.MsrActionList; pub const WHvPartitionPropertyCodeUnimplementedMsrAction = WHV_PARTITION_PROPERTY_CODE.UnimplementedMsrAction; pub const WHvPartitionPropertyCodeProcessorCount = WHV_PARTITION_PROPERTY_CODE.ProcessorCount; pub const WHV_PROCESSOR_XSAVE_FEATURES = extern union { Anonymous: extern struct { _bitfield: u64, }, AsUINT64: u64, }; pub const WHV_PROCESSOR_PERFMON_FEATURES = extern union { Anonymous: extern struct { _bitfield: u64, }, AsUINT64: u64, }; pub const WHV_X64_MSR_EXIT_BITMAP = extern union { AsUINT64: u64, Anonymous: extern struct { _bitfield: u64, }, }; pub const WHV_MEMORY_RANGE_ENTRY = extern struct { GuestAddress: u64, SizeInBytes: u64, }; pub const WHV_ADVISE_GPA_RANGE_POPULATE_FLAGS = extern union { AsUINT32: u32, Anonymous: extern struct { _bitfield: u32, }, }; pub const WHV_MEMORY_ACCESS_TYPE = enum(i32) { Read = 0, Write = 1, Execute = 2, }; pub const WHvMemoryAccessRead = WHV_MEMORY_ACCESS_TYPE.Read; pub const WHvMemoryAccessWrite = WHV_MEMORY_ACCESS_TYPE.Write; pub const WHvMemoryAccessExecute = WHV_MEMORY_ACCESS_TYPE.Execute; pub const WHV_ADVISE_GPA_RANGE_POPULATE = extern struct { Flags: WHV_ADVISE_GPA_RANGE_POPULATE_FLAGS, AccessType: WHV_MEMORY_ACCESS_TYPE, }; pub const WHV_CAPABILITY_PROCESSOR_FREQUENCY_CAP = extern struct { _bitfield: u32, HighestFrequencyMhz: u32, NominalFrequencyMhz: u32, LowestFrequencyMhz: u32, FrequencyStepMhz: u32, }; pub const WHV_SCHEDULER_FEATURES = extern union { Anonymous: extern struct { _bitfield: u64, }, AsUINT64: u64, }; pub const WHV_CAPABILITY = extern union { HypervisorPresent: BOOL, Features: WHV_CAPABILITY_FEATURES, ExtendedVmExits: WHV_EXTENDED_VM_EXITS, ProcessorVendor: WHV_PROCESSOR_VENDOR, ProcessorFeatures: WHV_PROCESSOR_FEATURES, SyntheticProcessorFeaturesBanks: WHV_SYNTHETIC_PROCESSOR_FEATURES_BANKS, ProcessorXsaveFeatures: WHV_PROCESSOR_XSAVE_FEATURES, ProcessorClFlushSize: u8, ExceptionExitBitmap: u64, X64MsrExitBitmap: WHV_X64_MSR_EXIT_BITMAP, ProcessorClockFrequency: u64, InterruptClockFrequency: u64, ProcessorFeaturesBanks: WHV_PROCESSOR_FEATURES_BANKS, GpaRangePopulateFlags: WHV_ADVISE_GPA_RANGE_POPULATE_FLAGS, ProcessorFrequencyCap: WHV_CAPABILITY_PROCESSOR_FREQUENCY_CAP, ProcessorPerfmonFeatures: WHV_PROCESSOR_PERFMON_FEATURES, SchedulerFeatures: WHV_SCHEDULER_FEATURES, }; pub const WHV_X64_CPUID_RESULT = extern struct { Function: u32, Reserved: [3]u32, Eax: u32, Ebx: u32, Ecx: u32, Edx: u32, }; pub const WHV_X64_CPUID_RESULT2_FLAGS = enum(u32) { SubleafSpecific = 1, VpSpecific = 2, _, pub fn initFlags(o: struct { SubleafSpecific: u1 = 0, VpSpecific: u1 = 0, }) WHV_X64_CPUID_RESULT2_FLAGS { return @as(WHV_X64_CPUID_RESULT2_FLAGS, @enumFromInt((if (o.SubleafSpecific == 1) @intFromEnum(WHV_X64_CPUID_RESULT2_FLAGS.SubleafSpecific) else 0) | (if (o.VpSpecific == 1) @intFromEnum(WHV_X64_CPUID_RESULT2_FLAGS.VpSpecific) else 0))); } }; pub const WHvX64CpuidResult2FlagSubleafSpecific = WHV_X64_CPUID_RESULT2_FLAGS.SubleafSpecific; pub const WHvX64CpuidResult2FlagVpSpecific = WHV_X64_CPUID_RESULT2_FLAGS.VpSpecific; pub const WHV_CPUID_OUTPUT = extern struct { Eax: u32, Ebx: u32, Ecx: u32, Edx: u32, }; pub const WHV_X64_CPUID_RESULT2 = extern struct { Function: u32, Index: u32, VpIndex: u32, Flags: WHV_X64_CPUID_RESULT2_FLAGS, Output: WHV_CPUID_OUTPUT, Mask: WHV_CPUID_OUTPUT, }; pub const WHV_MSR_ACTION_ENTRY = extern struct { Index: u32, ReadAction: u8, WriteAction: u8, Reserved: u16, }; pub const WHV_MSR_ACTION = enum(i32) { ArchitectureDefault = 0, IgnoreWriteReadZero = 1, Exit = 2, }; pub const WHvMsrActionArchitectureDefault = WHV_MSR_ACTION.ArchitectureDefault; pub const WHvMsrActionIgnoreWriteReadZero = WHV_MSR_ACTION.IgnoreWriteReadZero; pub const WHvMsrActionExit = WHV_MSR_ACTION.Exit; pub const WHV_EXCEPTION_TYPE = enum(i32) { DivideErrorFault = 0, DebugTrapOrFault = 1, BreakpointTrap = 3, OverflowTrap = 4, BoundRangeFault = 5, InvalidOpcodeFault = 6, DeviceNotAvailableFault = 7, DoubleFaultAbort = 8, InvalidTaskStateSegmentFault = 10, SegmentNotPresentFault = 11, StackFault = 12, GeneralProtectionFault = 13, PageFault = 14, FloatingPointErrorFault = 16, AlignmentCheckFault = 17, MachineCheckAbort = 18, SimdFloatingPointFault = 19, }; pub const WHvX64ExceptionTypeDivideErrorFault = WHV_EXCEPTION_TYPE.DivideErrorFault; pub const WHvX64ExceptionTypeDebugTrapOrFault = WHV_EXCEPTION_TYPE.DebugTrapOrFault; pub const WHvX64ExceptionTypeBreakpointTrap = WHV_EXCEPTION_TYPE.BreakpointTrap; pub const WHvX64ExceptionTypeOverflowTrap = WHV_EXCEPTION_TYPE.OverflowTrap; pub const WHvX64ExceptionTypeBoundRangeFault = WHV_EXCEPTION_TYPE.BoundRangeFault; pub const WHvX64ExceptionTypeInvalidOpcodeFault = WHV_EXCEPTION_TYPE.InvalidOpcodeFault; pub const WHvX64ExceptionTypeDeviceNotAvailableFault = WHV_EXCEPTION_TYPE.DeviceNotAvailableFault; pub const WHvX64ExceptionTypeDoubleFaultAbort = WHV_EXCEPTION_TYPE.DoubleFaultAbort; pub const WHvX64ExceptionTypeInvalidTaskStateSegmentFault = WHV_EXCEPTION_TYPE.InvalidTaskStateSegmentFault; pub const WHvX64ExceptionTypeSegmentNotPresentFault = WHV_EXCEPTION_TYPE.SegmentNotPresentFault; pub const WHvX64ExceptionTypeStackFault = WHV_EXCEPTION_TYPE.StackFault; pub const WHvX64ExceptionTypeGeneralProtectionFault = WHV_EXCEPTION_TYPE.GeneralProtectionFault; pub const WHvX64ExceptionTypePageFault = WHV_EXCEPTION_TYPE.PageFault; pub const WHvX64ExceptionTypeFloatingPointErrorFault = WHV_EXCEPTION_TYPE.FloatingPointErrorFault; pub const WHvX64ExceptionTypeAlignmentCheckFault = WHV_EXCEPTION_TYPE.AlignmentCheckFault; pub const WHvX64ExceptionTypeMachineCheckAbort = WHV_EXCEPTION_TYPE.MachineCheckAbort; pub const WHvX64ExceptionTypeSimdFloatingPointFault = WHV_EXCEPTION_TYPE.SimdFloatingPointFault; pub const WHV_X64_LOCAL_APIC_EMULATION_MODE = enum(i32) { None = 0, XApic = 1, X2Apic = 2, }; pub const WHvX64LocalApicEmulationModeNone = WHV_X64_LOCAL_APIC_EMULATION_MODE.None; pub const WHvX64LocalApicEmulationModeXApic = WHV_X64_LOCAL_APIC_EMULATION_MODE.XApic; pub const WHvX64LocalApicEmulationModeX2Apic = WHV_X64_LOCAL_APIC_EMULATION_MODE.X2Apic; pub const WHV_PARTITION_PROPERTY = extern union { ExtendedVmExits: WHV_EXTENDED_VM_EXITS, ProcessorFeatures: WHV_PROCESSOR_FEATURES, SyntheticProcessorFeaturesBanks: WHV_SYNTHETIC_PROCESSOR_FEATURES_BANKS, ProcessorXsaveFeatures: WHV_PROCESSOR_XSAVE_FEATURES, ProcessorClFlushSize: u8, ProcessorCount: u32, CpuidExitList: [1]u32, CpuidResultList: [1]WHV_X64_CPUID_RESULT, CpuidResultList2: [1]WHV_X64_CPUID_RESULT2, MsrActionList: [1]WHV_MSR_ACTION_ENTRY, UnimplementedMsrAction: WHV_MSR_ACTION, ExceptionExitBitmap: u64, LocalApicEmulationMode: WHV_X64_LOCAL_APIC_EMULATION_MODE, SeparateSecurityDomain: BOOL, NestedVirtualization: BOOL, X64MsrExitBitmap: WHV_X64_MSR_EXIT_BITMAP, ProcessorClockFrequency: u64, InterruptClockFrequency: u64, ApicRemoteRead: BOOL, ProcessorFeaturesBanks: WHV_PROCESSOR_FEATURES_BANKS, ReferenceTime: u64, PrimaryNumaNode: u16, CpuReserve: u32, CpuCap: u32, CpuWeight: u32, CpuGroupId: u64, ProcessorFrequencyCap: u32, AllowDeviceAssignment: BOOL, ProcessorPerfmonFeatures: WHV_PROCESSOR_PERFMON_FEATURES, DisableSmt: BOOL, }; pub const WHV_MAP_GPA_RANGE_FLAGS = enum(u32) { None = 0, Read = 1, Write = 2, Execute = 4, TrackDirtyPages = 8, _, pub fn initFlags(o: struct { None: u1 = 0, Read: u1 = 0, Write: u1 = 0, Execute: u1 = 0, TrackDirtyPages: u1 = 0, }) WHV_MAP_GPA_RANGE_FLAGS { return @as(WHV_MAP_GPA_RANGE_FLAGS, @enumFromInt((if (o.None == 1) @intFromEnum(WHV_MAP_GPA_RANGE_FLAGS.None) else 0) | (if (o.Read == 1) @intFromEnum(WHV_MAP_GPA_RANGE_FLAGS.Read) else 0) | (if (o.Write == 1) @intFromEnum(WHV_MAP_GPA_RANGE_FLAGS.Write) else 0) | (if (o.Execute == 1) @intFromEnum(WHV_MAP_GPA_RANGE_FLAGS.Execute) else 0) | (if (o.TrackDirtyPages == 1) @intFromEnum(WHV_MAP_GPA_RANGE_FLAGS.TrackDirtyPages) else 0))); } }; pub const WHvMapGpaRangeFlagNone = WHV_MAP_GPA_RANGE_FLAGS.None; pub const WHvMapGpaRangeFlagRead = WHV_MAP_GPA_RANGE_FLAGS.Read; pub const WHvMapGpaRangeFlagWrite = WHV_MAP_GPA_RANGE_FLAGS.Write; pub const WHvMapGpaRangeFlagExecute = WHV_MAP_GPA_RANGE_FLAGS.Execute; pub const WHvMapGpaRangeFlagTrackDirtyPages = WHV_MAP_GPA_RANGE_FLAGS.TrackDirtyPages; pub const WHV_TRANSLATE_GVA_FLAGS = enum(u32) { None = 0, ValidateRead = 1, ValidateWrite = 2, ValidateExecute = 4, PrivilegeExempt = 8, SetPageTableBits = 16, EnforceSmap = 256, OverrideSmap = 512, _, pub fn initFlags(o: struct { None: u1 = 0, ValidateRead: u1 = 0, ValidateWrite: u1 = 0, ValidateExecute: u1 = 0, PrivilegeExempt: u1 = 0, SetPageTableBits: u1 = 0, EnforceSmap: u1 = 0, OverrideSmap: u1 = 0, }) WHV_TRANSLATE_GVA_FLAGS { return @as(WHV_TRANSLATE_GVA_FLAGS, @enumFromInt((if (o.None == 1) @intFromEnum(WHV_TRANSLATE_GVA_FLAGS.None) else 0) | (if (o.ValidateRead == 1) @intFromEnum(WHV_TRANSLATE_GVA_FLAGS.ValidateRead) else 0) | (if (o.ValidateWrite == 1) @intFromEnum(WHV_TRANSLATE_GVA_FLAGS.ValidateWrite) else 0) | (if (o.ValidateExecute == 1) @intFromEnum(WHV_TRANSLATE_GVA_FLAGS.ValidateExecute) else 0) | (if (o.PrivilegeExempt == 1) @intFromEnum(WHV_TRANSLATE_GVA_FLAGS.PrivilegeExempt) else 0) | (if (o.SetPageTableBits == 1) @intFromEnum(WHV_TRANSLATE_GVA_FLAGS.SetPageTableBits) else 0) | (if (o.EnforceSmap == 1) @intFromEnum(WHV_TRANSLATE_GVA_FLAGS.EnforceSmap) else 0) | (if (o.OverrideSmap == 1) @intFromEnum(WHV_TRANSLATE_GVA_FLAGS.OverrideSmap) else 0))); } }; pub const WHvTranslateGvaFlagNone = WHV_TRANSLATE_GVA_FLAGS.None; pub const WHvTranslateGvaFlagValidateRead = WHV_TRANSLATE_GVA_FLAGS.ValidateRead; pub const WHvTranslateGvaFlagValidateWrite = WHV_TRANSLATE_GVA_FLAGS.ValidateWrite; pub const WHvTranslateGvaFlagValidateExecute = WHV_TRANSLATE_GVA_FLAGS.ValidateExecute; pub const WHvTranslateGvaFlagPrivilegeExempt = WHV_TRANSLATE_GVA_FLAGS.PrivilegeExempt; pub const WHvTranslateGvaFlagSetPageTableBits = WHV_TRANSLATE_GVA_FLAGS.SetPageTableBits; pub const WHvTranslateGvaFlagEnforceSmap = WHV_TRANSLATE_GVA_FLAGS.EnforceSmap; pub const WHvTranslateGvaFlagOverrideSmap = WHV_TRANSLATE_GVA_FLAGS.OverrideSmap; pub const WHV_TRANSLATE_GVA_RESULT_CODE = enum(i32) { Success = 0, PageNotPresent = 1, PrivilegeViolation = 2, InvalidPageTableFlags = 3, GpaUnmapped = 4, GpaNoReadAccess = 5, GpaNoWriteAccess = 6, GpaIllegalOverlayAccess = 7, Intercept = 8, }; pub const WHvTranslateGvaResultSuccess = WHV_TRANSLATE_GVA_RESULT_CODE.Success; pub const WHvTranslateGvaResultPageNotPresent = WHV_TRANSLATE_GVA_RESULT_CODE.PageNotPresent; pub const WHvTranslateGvaResultPrivilegeViolation = WHV_TRANSLATE_GVA_RESULT_CODE.PrivilegeViolation; pub const WHvTranslateGvaResultInvalidPageTableFlags = WHV_TRANSLATE_GVA_RESULT_CODE.InvalidPageTableFlags; pub const WHvTranslateGvaResultGpaUnmapped = WHV_TRANSLATE_GVA_RESULT_CODE.GpaUnmapped; pub const WHvTranslateGvaResultGpaNoReadAccess = WHV_TRANSLATE_GVA_RESULT_CODE.GpaNoReadAccess; pub const WHvTranslateGvaResultGpaNoWriteAccess = WHV_TRANSLATE_GVA_RESULT_CODE.GpaNoWriteAccess; pub const WHvTranslateGvaResultGpaIllegalOverlayAccess = WHV_TRANSLATE_GVA_RESULT_CODE.GpaIllegalOverlayAccess; pub const WHvTranslateGvaResultIntercept = WHV_TRANSLATE_GVA_RESULT_CODE.Intercept; pub const WHV_TRANSLATE_GVA_RESULT = extern struct { ResultCode: WHV_TRANSLATE_GVA_RESULT_CODE, Reserved: u32, }; pub const WHV_ADVISE_GPA_RANGE = extern union { Populate: WHV_ADVISE_GPA_RANGE_POPULATE, }; pub const WHV_CACHE_TYPE = enum(i32) { Uncached = 0, WriteCombining = 1, WriteThrough = 4, WriteProtected = 5, WriteBack = 6, }; pub const WHvCacheTypeUncached = WHV_CACHE_TYPE.Uncached; pub const WHvCacheTypeWriteCombining = WHV_CACHE_TYPE.WriteCombining; pub const WHvCacheTypeWriteThrough = WHV_CACHE_TYPE.WriteThrough; pub const WHvCacheTypeWriteProtected = WHV_CACHE_TYPE.WriteProtected; pub const WHvCacheTypeWriteBack = WHV_CACHE_TYPE.WriteBack; pub const WHV_ACCESS_GPA_CONTROLS = extern union { AsUINT64: u64, Anonymous: extern struct { CacheType: WHV_CACHE_TYPE, Reserved: u32, }, }; pub const WHV_REGISTER_NAME = enum(i32) { X64RegisterRax = 0, X64RegisterRcx = 1, X64RegisterRdx = 2, X64RegisterRbx = 3, X64RegisterRsp = 4, X64RegisterRbp = 5, X64RegisterRsi = 6, X64RegisterRdi = 7, X64RegisterR8 = 8, X64RegisterR9 = 9, X64RegisterR10 = 10, X64RegisterR11 = 11, X64RegisterR12 = 12, X64RegisterR13 = 13, X64RegisterR14 = 14, X64RegisterR15 = 15, X64RegisterRip = 16, X64RegisterRflags = 17, X64RegisterEs = 18, X64RegisterCs = 19, X64RegisterSs = 20, X64RegisterDs = 21, X64RegisterFs = 22, X64RegisterGs = 23, X64RegisterLdtr = 24, X64RegisterTr = 25, X64RegisterIdtr = 26, X64RegisterGdtr = 27, X64RegisterCr0 = 28, X64RegisterCr2 = 29, X64RegisterCr3 = 30, X64RegisterCr4 = 31, X64RegisterCr8 = 32, X64RegisterDr0 = 33, X64RegisterDr1 = 34, X64RegisterDr2 = 35, X64RegisterDr3 = 36, X64RegisterDr6 = 37, X64RegisterDr7 = 38, X64RegisterXCr0 = 39, X64RegisterVirtualCr0 = 40, X64RegisterVirtualCr3 = 41, X64RegisterVirtualCr4 = 42, X64RegisterVirtualCr8 = 43, X64RegisterXmm0 = 4096, X64RegisterXmm1 = 4097, X64RegisterXmm2 = 4098, X64RegisterXmm3 = 4099, X64RegisterXmm4 = 4100, X64RegisterXmm5 = 4101, X64RegisterXmm6 = 4102, X64RegisterXmm7 = 4103, X64RegisterXmm8 = 4104, X64RegisterXmm9 = 4105, X64RegisterXmm10 = 4106, X64RegisterXmm11 = 4107, X64RegisterXmm12 = 4108, X64RegisterXmm13 = 4109, X64RegisterXmm14 = 4110, X64RegisterXmm15 = 4111, X64RegisterFpMmx0 = 4112, X64RegisterFpMmx1 = 4113, X64RegisterFpMmx2 = 4114, X64RegisterFpMmx3 = 4115, X64RegisterFpMmx4 = 4116, X64RegisterFpMmx5 = 4117, X64RegisterFpMmx6 = 4118, X64RegisterFpMmx7 = 4119, X64RegisterFpControlStatus = 4120, X64RegisterXmmControlStatus = 4121, X64RegisterTsc = 8192, X64RegisterEfer = 8193, X64RegisterKernelGsBase = 8194, X64RegisterApicBase = 8195, X64RegisterPat = 8196, X64RegisterSysenterCs = 8197, X64RegisterSysenterEip = 8198, X64RegisterSysenterEsp = 8199, X64RegisterStar = 8200, X64RegisterLstar = 8201, X64RegisterCstar = 8202, X64RegisterSfmask = 8203, X64RegisterInitialApicId = 8204, X64RegisterMsrMtrrCap = 8205, X64RegisterMsrMtrrDefType = 8206, X64RegisterMsrMtrrPhysBase0 = 8208, X64RegisterMsrMtrrPhysBase1 = 8209, X64RegisterMsrMtrrPhysBase2 = 8210, X64RegisterMsrMtrrPhysBase3 = 8211, X64RegisterMsrMtrrPhysBase4 = 8212, X64RegisterMsrMtrrPhysBase5 = 8213, X64RegisterMsrMtrrPhysBase6 = 8214, X64RegisterMsrMtrrPhysBase7 = 8215, X64RegisterMsrMtrrPhysBase8 = 8216, X64RegisterMsrMtrrPhysBase9 = 8217, X64RegisterMsrMtrrPhysBaseA = 8218, X64RegisterMsrMtrrPhysBaseB = 8219, X64RegisterMsrMtrrPhysBaseC = 8220, X64RegisterMsrMtrrPhysBaseD = 8221, X64RegisterMsrMtrrPhysBaseE = 8222, X64RegisterMsrMtrrPhysBaseF = 8223, X64RegisterMsrMtrrPhysMask0 = 8256, X64RegisterMsrMtrrPhysMask1 = 8257, X64RegisterMsrMtrrPhysMask2 = 8258, X64RegisterMsrMtrrPhysMask3 = 8259, X64RegisterMsrMtrrPhysMask4 = 8260, X64RegisterMsrMtrrPhysMask5 = 8261, X64RegisterMsrMtrrPhysMask6 = 8262, X64RegisterMsrMtrrPhysMask7 = 8263, X64RegisterMsrMtrrPhysMask8 = 8264, X64RegisterMsrMtrrPhysMask9 = 8265, X64RegisterMsrMtrrPhysMaskA = 8266, X64RegisterMsrMtrrPhysMaskB = 8267, X64RegisterMsrMtrrPhysMaskC = 8268, X64RegisterMsrMtrrPhysMaskD = 8269, X64RegisterMsrMtrrPhysMaskE = 8270, X64RegisterMsrMtrrPhysMaskF = 8271, X64RegisterMsrMtrrFix64k00000 = 8304, X64RegisterMsrMtrrFix16k80000 = 8305, X64RegisterMsrMtrrFix16kA0000 = 8306, X64RegisterMsrMtrrFix4kC0000 = 8307, X64RegisterMsrMtrrFix4kC8000 = 8308, X64RegisterMsrMtrrFix4kD0000 = 8309, X64RegisterMsrMtrrFix4kD8000 = 8310, X64RegisterMsrMtrrFix4kE0000 = 8311, X64RegisterMsrMtrrFix4kE8000 = 8312, X64RegisterMsrMtrrFix4kF0000 = 8313, X64RegisterMsrMtrrFix4kF8000 = 8314, X64RegisterTscAux = 8315, X64RegisterBndcfgs = 8316, X64RegisterMCount = 8318, X64RegisterACount = 8319, X64RegisterSpecCtrl = 8324, X64RegisterPredCmd = 8325, X64RegisterTscVirtualOffset = 8327, X64RegisterTsxCtrl = 8328, X64RegisterXss = 8331, X64RegisterUCet = 8332, X64RegisterSCet = 8333, X64RegisterSsp = 8334, X64RegisterPl0Ssp = 8335, X64RegisterPl1Ssp = 8336, X64RegisterPl2Ssp = 8337, X64RegisterPl3Ssp = 8338, X64RegisterInterruptSspTableAddr = 8339, X64RegisterTscDeadline = 8341, X64RegisterTscAdjust = 8342, X64RegisterUmwaitControl = 8344, X64RegisterXfd = 8345, X64RegisterXfdErr = 8346, X64RegisterApicId = 12290, X64RegisterApicVersion = 12291, X64RegisterApicTpr = 12296, X64RegisterApicPpr = 12298, X64RegisterApicEoi = 12299, X64RegisterApicLdr = 12301, X64RegisterApicSpurious = 12303, X64RegisterApicIsr0 = 12304, X64RegisterApicIsr1 = 12305, X64RegisterApicIsr2 = 12306, X64RegisterApicIsr3 = 12307, X64RegisterApicIsr4 = 12308, X64RegisterApicIsr5 = 12309, X64RegisterApicIsr6 = 12310, X64RegisterApicIsr7 = 12311, X64RegisterApicTmr0 = 12312, X64RegisterApicTmr1 = 12313, X64RegisterApicTmr2 = 12314, X64RegisterApicTmr3 = 12315, X64RegisterApicTmr4 = 12316, X64RegisterApicTmr5 = 12317, X64RegisterApicTmr6 = 12318, X64RegisterApicTmr7 = 12319, X64RegisterApicIrr0 = 12320, X64RegisterApicIrr1 = 12321, X64RegisterApicIrr2 = 12322, X64RegisterApicIrr3 = 12323, X64RegisterApicIrr4 = 12324, X64RegisterApicIrr5 = 12325, X64RegisterApicIrr6 = 12326, X64RegisterApicIrr7 = 12327, X64RegisterApicEse = 12328, X64RegisterApicIcr = 12336, X64RegisterApicLvtTimer = 12338, X64RegisterApicLvtThermal = 12339, X64RegisterApicLvtPerfmon = 12340, X64RegisterApicLvtLint0 = 12341, X64RegisterApicLvtLint1 = 12342, X64RegisterApicLvtError = 12343, X64RegisterApicInitCount = 12344, X64RegisterApicCurrentCount = 12345, X64RegisterApicDivide = 12350, X64RegisterApicSelfIpi = 12351, RegisterSint0 = 16384, RegisterSint1 = 16385, RegisterSint2 = 16386, RegisterSint3 = 16387, RegisterSint4 = 16388, RegisterSint5 = 16389, RegisterSint6 = 16390, RegisterSint7 = 16391, RegisterSint8 = 16392, RegisterSint9 = 16393, RegisterSint10 = 16394, RegisterSint11 = 16395, RegisterSint12 = 16396, RegisterSint13 = 16397, RegisterSint14 = 16398, RegisterSint15 = 16399, RegisterScontrol = 16400, RegisterSversion = 16401, RegisterSiefp = 16402, RegisterSimp = 16403, RegisterEom = 16404, RegisterVpRuntime = 20480, X64RegisterHypercall = 20481, RegisterGuestOsId = 20482, RegisterVpAssistPage = 20499, RegisterReferenceTsc = 20503, RegisterReferenceTscSequence = 20506, RegisterPendingInterruption = -2147483648, RegisterInterruptState = -2147483647, RegisterPendingEvent = -2147483646, X64RegisterDeliverabilityNotifications = -2147483644, RegisterInternalActivityState = -2147483643, X64RegisterPendingDebugException = -2147483642, }; pub const WHvX64RegisterRax = WHV_REGISTER_NAME.X64RegisterRax; pub const WHvX64RegisterRcx = WHV_REGISTER_NAME.X64RegisterRcx; pub const WHvX64RegisterRdx = WHV_REGISTER_NAME.X64RegisterRdx; pub const WHvX64RegisterRbx = WHV_REGISTER_NAME.X64RegisterRbx; pub const WHvX64RegisterRsp = WHV_REGISTER_NAME.X64RegisterRsp; pub const WHvX64RegisterRbp = WHV_REGISTER_NAME.X64RegisterRbp; pub const WHvX64RegisterRsi = WHV_REGISTER_NAME.X64RegisterRsi; pub const WHvX64RegisterRdi = WHV_REGISTER_NAME.X64RegisterRdi; pub const WHvX64RegisterR8 = WHV_REGISTER_NAME.X64RegisterR8; pub const WHvX64RegisterR9 = WHV_REGISTER_NAME.X64RegisterR9; pub const WHvX64RegisterR10 = WHV_REGISTER_NAME.X64RegisterR10; pub const WHvX64RegisterR11 = WHV_REGISTER_NAME.X64RegisterR11; pub const WHvX64RegisterR12 = WHV_REGISTER_NAME.X64RegisterR12; pub const WHvX64RegisterR13 = WHV_REGISTER_NAME.X64RegisterR13; pub const WHvX64RegisterR14 = WHV_REGISTER_NAME.X64RegisterR14; pub const WHvX64RegisterR15 = WHV_REGISTER_NAME.X64RegisterR15; pub const WHvX64RegisterRip = WHV_REGISTER_NAME.X64RegisterRip; pub const WHvX64RegisterRflags = WHV_REGISTER_NAME.X64RegisterRflags; pub const WHvX64RegisterEs = WHV_REGISTER_NAME.X64RegisterEs; pub const WHvX64RegisterCs = WHV_REGISTER_NAME.X64RegisterCs; pub const WHvX64RegisterSs = WHV_REGISTER_NAME.X64RegisterSs; pub const WHvX64RegisterDs = WHV_REGISTER_NAME.X64RegisterDs; pub const WHvX64RegisterFs = WHV_REGISTER_NAME.X64RegisterFs; pub const WHvX64RegisterGs = WHV_REGISTER_NAME.X64RegisterGs; pub const WHvX64RegisterLdtr = WHV_REGISTER_NAME.X64RegisterLdtr; pub const WHvX64RegisterTr = WHV_REGISTER_NAME.X64RegisterTr; pub const WHvX64RegisterIdtr = WHV_REGISTER_NAME.X64RegisterIdtr; pub const WHvX64RegisterGdtr = WHV_REGISTER_NAME.X64RegisterGdtr; pub const WHvX64RegisterCr0 = WHV_REGISTER_NAME.X64RegisterCr0; pub const WHvX64RegisterCr2 = WHV_REGISTER_NAME.X64RegisterCr2; pub const WHvX64RegisterCr3 = WHV_REGISTER_NAME.X64RegisterCr3; pub const WHvX64RegisterCr4 = WHV_REGISTER_NAME.X64RegisterCr4; pub const WHvX64RegisterCr8 = WHV_REGISTER_NAME.X64RegisterCr8; pub const WHvX64RegisterDr0 = WHV_REGISTER_NAME.X64RegisterDr0; pub const WHvX64RegisterDr1 = WHV_REGISTER_NAME.X64RegisterDr1; pub const WHvX64RegisterDr2 = WHV_REGISTER_NAME.X64RegisterDr2; pub const WHvX64RegisterDr3 = WHV_REGISTER_NAME.X64RegisterDr3; pub const WHvX64RegisterDr6 = WHV_REGISTER_NAME.X64RegisterDr6; pub const WHvX64RegisterDr7 = WHV_REGISTER_NAME.X64RegisterDr7; pub const WHvX64RegisterXCr0 = WHV_REGISTER_NAME.X64RegisterXCr0; pub const WHvX64RegisterVirtualCr0 = WHV_REGISTER_NAME.X64RegisterVirtualCr0; pub const WHvX64RegisterVirtualCr3 = WHV_REGISTER_NAME.X64RegisterVirtualCr3; pub const WHvX64RegisterVirtualCr4 = WHV_REGISTER_NAME.X64RegisterVirtualCr4; pub const WHvX64RegisterVirtualCr8 = WHV_REGISTER_NAME.X64RegisterVirtualCr8; pub const WHvX64RegisterXmm0 = WHV_REGISTER_NAME.X64RegisterXmm0; pub const WHvX64RegisterXmm1 = WHV_REGISTER_NAME.X64RegisterXmm1; pub const WHvX64RegisterXmm2 = WHV_REGISTER_NAME.X64RegisterXmm2; pub const WHvX64RegisterXmm3 = WHV_REGISTER_NAME.X64RegisterXmm3; pub const WHvX64RegisterXmm4 = WHV_REGISTER_NAME.X64RegisterXmm4; pub const WHvX64RegisterXmm5 = WHV_REGISTER_NAME.X64RegisterXmm5; pub const WHvX64RegisterXmm6 = WHV_REGISTER_NAME.X64RegisterXmm6; pub const WHvX64RegisterXmm7 = WHV_REGISTER_NAME.X64RegisterXmm7; pub const WHvX64RegisterXmm8 = WHV_REGISTER_NAME.X64RegisterXmm8; pub const WHvX64RegisterXmm9 = WHV_REGISTER_NAME.X64RegisterXmm9; pub const WHvX64RegisterXmm10 = WHV_REGISTER_NAME.X64RegisterXmm10; pub const WHvX64RegisterXmm11 = WHV_REGISTER_NAME.X64RegisterXmm11; pub const WHvX64RegisterXmm12 = WHV_REGISTER_NAME.X64RegisterXmm12; pub const WHvX64RegisterXmm13 = WHV_REGISTER_NAME.X64RegisterXmm13; pub const WHvX64RegisterXmm14 = WHV_REGISTER_NAME.X64RegisterXmm14; pub const WHvX64RegisterXmm15 = WHV_REGISTER_NAME.X64RegisterXmm15; pub const WHvX64RegisterFpMmx0 = WHV_REGISTER_NAME.X64RegisterFpMmx0; pub const WHvX64RegisterFpMmx1 = WHV_REGISTER_NAME.X64RegisterFpMmx1; pub const WHvX64RegisterFpMmx2 = WHV_REGISTER_NAME.X64RegisterFpMmx2; pub const WHvX64RegisterFpMmx3 = WHV_REGISTER_NAME.X64RegisterFpMmx3; pub const WHvX64RegisterFpMmx4 = WHV_REGISTER_NAME.X64RegisterFpMmx4; pub const WHvX64RegisterFpMmx5 = WHV_REGISTER_NAME.X64RegisterFpMmx5; pub const WHvX64RegisterFpMmx6 = WHV_REGISTER_NAME.X64RegisterFpMmx6; pub const WHvX64RegisterFpMmx7 = WHV_REGISTER_NAME.X64RegisterFpMmx7; pub const WHvX64RegisterFpControlStatus = WHV_REGISTER_NAME.X64RegisterFpControlStatus; pub const WHvX64RegisterXmmControlStatus = WHV_REGISTER_NAME.X64RegisterXmmControlStatus; pub const WHvX64RegisterTsc = WHV_REGISTER_NAME.X64RegisterTsc; pub const WHvX64RegisterEfer = WHV_REGISTER_NAME.X64RegisterEfer; pub const WHvX64RegisterKernelGsBase = WHV_REGISTER_NAME.X64RegisterKernelGsBase; pub const WHvX64RegisterApicBase = WHV_REGISTER_NAME.X64RegisterApicBase; pub const WHvX64RegisterPat = WHV_REGISTER_NAME.X64RegisterPat; pub const WHvX64RegisterSysenterCs = WHV_REGISTER_NAME.X64RegisterSysenterCs; pub const WHvX64RegisterSysenterEip = WHV_REGISTER_NAME.X64RegisterSysenterEip; pub const WHvX64RegisterSysenterEsp = WHV_REGISTER_NAME.X64RegisterSysenterEsp; pub const WHvX64RegisterStar = WHV_REGISTER_NAME.X64RegisterStar; pub const WHvX64RegisterLstar = WHV_REGISTER_NAME.X64RegisterLstar; pub const WHvX64RegisterCstar = WHV_REGISTER_NAME.X64RegisterCstar; pub const WHvX64RegisterSfmask = WHV_REGISTER_NAME.X64RegisterSfmask; pub const WHvX64RegisterInitialApicId = WHV_REGISTER_NAME.X64RegisterInitialApicId; pub const WHvX64RegisterMsrMtrrCap = WHV_REGISTER_NAME.X64RegisterMsrMtrrCap; pub const WHvX64RegisterMsrMtrrDefType = WHV_REGISTER_NAME.X64RegisterMsrMtrrDefType; pub const WHvX64RegisterMsrMtrrPhysBase0 = WHV_REGISTER_NAME.X64RegisterMsrMtrrPhysBase0; pub const WHvX64RegisterMsrMtrrPhysBase1 = WHV_REGISTER_NAME.X64RegisterMsrMtrrPhysBase1; pub const WHvX64RegisterMsrMtrrPhysBase2 = WHV_REGISTER_NAME.X64RegisterMsrMtrrPhysBase2; pub const WHvX64RegisterMsrMtrrPhysBase3 = WHV_REGISTER_NAME.X64RegisterMsrMtrrPhysBase3; pub const WHvX64RegisterMsrMtrrPhysBase4 = WHV_REGISTER_NAME.X64RegisterMsrMtrrPhysBase4; pub const WHvX64RegisterMsrMtrrPhysBase5 = WHV_REGISTER_NAME.X64RegisterMsrMtrrPhysBase5; pub const WHvX64RegisterMsrMtrrPhysBase6 = WHV_REGISTER_NAME.X64RegisterMsrMtrrPhysBase6; pub const WHvX64RegisterMsrMtrrPhysBase7 = WHV_REGISTER_NAME.X64RegisterMsrMtrrPhysBase7; pub const WHvX64RegisterMsrMtrrPhysBase8 = WHV_REGISTER_NAME.X64RegisterMsrMtrrPhysBase8; pub const WHvX64RegisterMsrMtrrPhysBase9 = WHV_REGISTER_NAME.X64RegisterMsrMtrrPhysBase9; pub const WHvX64RegisterMsrMtrrPhysBaseA = WHV_REGISTER_NAME.X64RegisterMsrMtrrPhysBaseA; pub const WHvX64RegisterMsrMtrrPhysBaseB = WHV_REGISTER_NAME.X64RegisterMsrMtrrPhysBaseB; pub const WHvX64RegisterMsrMtrrPhysBaseC = WHV_REGISTER_NAME.X64RegisterMsrMtrrPhysBaseC; pub const WHvX64RegisterMsrMtrrPhysBaseD = WHV_REGISTER_NAME.X64RegisterMsrMtrrPhysBaseD; pub const WHvX64RegisterMsrMtrrPhysBaseE = WHV_REGISTER_NAME.X64RegisterMsrMtrrPhysBaseE; pub const WHvX64RegisterMsrMtrrPhysBaseF = WHV_REGISTER_NAME.X64RegisterMsrMtrrPhysBaseF; pub const WHvX64RegisterMsrMtrrPhysMask0 = WHV_REGISTER_NAME.X64RegisterMsrMtrrPhysMask0; pub const WHvX64RegisterMsrMtrrPhysMask1 = WHV_REGISTER_NAME.X64RegisterMsrMtrrPhysMask1; pub const WHvX64RegisterMsrMtrrPhysMask2 = WHV_REGISTER_NAME.X64RegisterMsrMtrrPhysMask2; pub const WHvX64RegisterMsrMtrrPhysMask3 = WHV_REGISTER_NAME.X64RegisterMsrMtrrPhysMask3; pub const WHvX64RegisterMsrMtrrPhysMask4 = WHV_REGISTER_NAME.X64RegisterMsrMtrrPhysMask4; pub const WHvX64RegisterMsrMtrrPhysMask5 = WHV_REGISTER_NAME.X64RegisterMsrMtrrPhysMask5; pub const WHvX64RegisterMsrMtrrPhysMask6 = WHV_REGISTER_NAME.X64RegisterMsrMtrrPhysMask6; pub const WHvX64RegisterMsrMtrrPhysMask7 = WHV_REGISTER_NAME.X64RegisterMsrMtrrPhysMask7; pub const WHvX64RegisterMsrMtrrPhysMask8 = WHV_REGISTER_NAME.X64RegisterMsrMtrrPhysMask8; pub const WHvX64RegisterMsrMtrrPhysMask9 = WHV_REGISTER_NAME.X64RegisterMsrMtrrPhysMask9; pub const WHvX64RegisterMsrMtrrPhysMaskA = WHV_REGISTER_NAME.X64RegisterMsrMtrrPhysMaskA; pub const WHvX64RegisterMsrMtrrPhysMaskB = WHV_REGISTER_NAME.X64RegisterMsrMtrrPhysMaskB; pub const WHvX64RegisterMsrMtrrPhysMaskC = WHV_REGISTER_NAME.X64RegisterMsrMtrrPhysMaskC; pub const WHvX64RegisterMsrMtrrPhysMaskD = WHV_REGISTER_NAME.X64RegisterMsrMtrrPhysMaskD; pub const WHvX64RegisterMsrMtrrPhysMaskE = WHV_REGISTER_NAME.X64RegisterMsrMtrrPhysMaskE; pub const WHvX64RegisterMsrMtrrPhysMaskF = WHV_REGISTER_NAME.X64RegisterMsrMtrrPhysMaskF; pub const WHvX64RegisterMsrMtrrFix64k00000 = WHV_REGISTER_NAME.X64RegisterMsrMtrrFix64k00000; pub const WHvX64RegisterMsrMtrrFix16k80000 = WHV_REGISTER_NAME.X64RegisterMsrMtrrFix16k80000; pub const WHvX64RegisterMsrMtrrFix16kA0000 = WHV_REGISTER_NAME.X64RegisterMsrMtrrFix16kA0000; pub const WHvX64RegisterMsrMtrrFix4kC0000 = WHV_REGISTER_NAME.X64RegisterMsrMtrrFix4kC0000; pub const WHvX64RegisterMsrMtrrFix4kC8000 = WHV_REGISTER_NAME.X64RegisterMsrMtrrFix4kC8000; pub const WHvX64RegisterMsrMtrrFix4kD0000 = WHV_REGISTER_NAME.X64RegisterMsrMtrrFix4kD0000; pub const WHvX64RegisterMsrMtrrFix4kD8000 = WHV_REGISTER_NAME.X64RegisterMsrMtrrFix4kD8000; pub const WHvX64RegisterMsrMtrrFix4kE0000 = WHV_REGISTER_NAME.X64RegisterMsrMtrrFix4kE0000; pub const WHvX64RegisterMsrMtrrFix4kE8000 = WHV_REGISTER_NAME.X64RegisterMsrMtrrFix4kE8000; pub const WHvX64RegisterMsrMtrrFix4kF0000 = WHV_REGISTER_NAME.X64RegisterMsrMtrrFix4kF0000; pub const WHvX64RegisterMsrMtrrFix4kF8000 = WHV_REGISTER_NAME.X64RegisterMsrMtrrFix4kF8000; pub const WHvX64RegisterTscAux = WHV_REGISTER_NAME.X64RegisterTscAux; pub const WHvX64RegisterBndcfgs = WHV_REGISTER_NAME.X64RegisterBndcfgs; pub const WHvX64RegisterMCount = WHV_REGISTER_NAME.X64RegisterMCount; pub const WHvX64RegisterACount = WHV_REGISTER_NAME.X64RegisterACount; pub const WHvX64RegisterSpecCtrl = WHV_REGISTER_NAME.X64RegisterSpecCtrl; pub const WHvX64RegisterPredCmd = WHV_REGISTER_NAME.X64RegisterPredCmd; pub const WHvX64RegisterTscVirtualOffset = WHV_REGISTER_NAME.X64RegisterTscVirtualOffset; pub const WHvX64RegisterTsxCtrl = WHV_REGISTER_NAME.X64RegisterTsxCtrl; pub const WHvX64RegisterXss = WHV_REGISTER_NAME.X64RegisterXss; pub const WHvX64RegisterUCet = WHV_REGISTER_NAME.X64RegisterUCet; pub const WHvX64RegisterSCet = WHV_REGISTER_NAME.X64RegisterSCet; pub const WHvX64RegisterSsp = WHV_REGISTER_NAME.X64RegisterSsp; pub const WHvX64RegisterPl0Ssp = WHV_REGISTER_NAME.X64RegisterPl0Ssp; pub const WHvX64RegisterPl1Ssp = WHV_REGISTER_NAME.X64RegisterPl1Ssp; pub const WHvX64RegisterPl2Ssp = WHV_REGISTER_NAME.X64RegisterPl2Ssp; pub const WHvX64RegisterPl3Ssp = WHV_REGISTER_NAME.X64RegisterPl3Ssp; pub const WHvX64RegisterInterruptSspTableAddr = WHV_REGISTER_NAME.X64RegisterInterruptSspTableAddr; pub const WHvX64RegisterTscDeadline = WHV_REGISTER_NAME.X64RegisterTscDeadline; pub const WHvX64RegisterTscAdjust = WHV_REGISTER_NAME.X64RegisterTscAdjust; pub const WHvX64RegisterUmwaitControl = WHV_REGISTER_NAME.X64RegisterUmwaitControl; pub const WHvX64RegisterXfd = WHV_REGISTER_NAME.X64RegisterXfd; pub const WHvX64RegisterXfdErr = WHV_REGISTER_NAME.X64RegisterXfdErr; pub const WHvX64RegisterApicId = WHV_REGISTER_NAME.X64RegisterApicId; pub const WHvX64RegisterApicVersion = WHV_REGISTER_NAME.X64RegisterApicVersion; pub const WHvX64RegisterApicTpr = WHV_REGISTER_NAME.X64RegisterApicTpr; pub const WHvX64RegisterApicPpr = WHV_REGISTER_NAME.X64RegisterApicPpr; pub const WHvX64RegisterApicEoi = WHV_REGISTER_NAME.X64RegisterApicEoi; pub const WHvX64RegisterApicLdr = WHV_REGISTER_NAME.X64RegisterApicLdr; pub const WHvX64RegisterApicSpurious = WHV_REGISTER_NAME.X64RegisterApicSpurious; pub const WHvX64RegisterApicIsr0 = WHV_REGISTER_NAME.X64RegisterApicIsr0; pub const WHvX64RegisterApicIsr1 = WHV_REGISTER_NAME.X64RegisterApicIsr1; pub const WHvX64RegisterApicIsr2 = WHV_REGISTER_NAME.X64RegisterApicIsr2; pub const WHvX64RegisterApicIsr3 = WHV_REGISTER_NAME.X64RegisterApicIsr3; pub const WHvX64RegisterApicIsr4 = WHV_REGISTER_NAME.X64RegisterApicIsr4; pub const WHvX64RegisterApicIsr5 = WHV_REGISTER_NAME.X64RegisterApicIsr5; pub const WHvX64RegisterApicIsr6 = WHV_REGISTER_NAME.X64RegisterApicIsr6; pub const WHvX64RegisterApicIsr7 = WHV_REGISTER_NAME.X64RegisterApicIsr7; pub const WHvX64RegisterApicTmr0 = WHV_REGISTER_NAME.X64RegisterApicTmr0; pub const WHvX64RegisterApicTmr1 = WHV_REGISTER_NAME.X64RegisterApicTmr1; pub const WHvX64RegisterApicTmr2 = WHV_REGISTER_NAME.X64RegisterApicTmr2; pub const WHvX64RegisterApicTmr3 = WHV_REGISTER_NAME.X64RegisterApicTmr3; pub const WHvX64RegisterApicTmr4 = WHV_REGISTER_NAME.X64RegisterApicTmr4; pub const WHvX64RegisterApicTmr5 = WHV_REGISTER_NAME.X64RegisterApicTmr5; pub const WHvX64RegisterApicTmr6 = WHV_REGISTER_NAME.X64RegisterApicTmr6; pub const WHvX64RegisterApicTmr7 = WHV_REGISTER_NAME.X64RegisterApicTmr7; pub const WHvX64RegisterApicIrr0 = WHV_REGISTER_NAME.X64RegisterApicIrr0; pub const WHvX64RegisterApicIrr1 = WHV_REGISTER_NAME.X64RegisterApicIrr1; pub const WHvX64RegisterApicIrr2 = WHV_REGISTER_NAME.X64RegisterApicIrr2; pub const WHvX64RegisterApicIrr3 = WHV_REGISTER_NAME.X64RegisterApicIrr3; pub const WHvX64RegisterApicIrr4 = WHV_REGISTER_NAME.X64RegisterApicIrr4; pub const WHvX64RegisterApicIrr5 = WHV_REGISTER_NAME.X64RegisterApicIrr5; pub const WHvX64RegisterApicIrr6 = WHV_REGISTER_NAME.X64RegisterApicIrr6; pub const WHvX64RegisterApicIrr7 = WHV_REGISTER_NAME.X64RegisterApicIrr7; pub const WHvX64RegisterApicEse = WHV_REGISTER_NAME.X64RegisterApicEse; pub const WHvX64RegisterApicIcr = WHV_REGISTER_NAME.X64RegisterApicIcr; pub const WHvX64RegisterApicLvtTimer = WHV_REGISTER_NAME.X64RegisterApicLvtTimer; pub const WHvX64RegisterApicLvtThermal = WHV_REGISTER_NAME.X64RegisterApicLvtThermal; pub const WHvX64RegisterApicLvtPerfmon = WHV_REGISTER_NAME.X64RegisterApicLvtPerfmon; pub const WHvX64RegisterApicLvtLint0 = WHV_REGISTER_NAME.X64RegisterApicLvtLint0; pub const WHvX64RegisterApicLvtLint1 = WHV_REGISTER_NAME.X64RegisterApicLvtLint1; pub const WHvX64RegisterApicLvtError = WHV_REGISTER_NAME.X64RegisterApicLvtError; pub const WHvX64RegisterApicInitCount = WHV_REGISTER_NAME.X64RegisterApicInitCount; pub const WHvX64RegisterApicCurrentCount = WHV_REGISTER_NAME.X64RegisterApicCurrentCount; pub const WHvX64RegisterApicDivide = WHV_REGISTER_NAME.X64RegisterApicDivide; pub const WHvX64RegisterApicSelfIpi = WHV_REGISTER_NAME.X64RegisterApicSelfIpi; pub const WHvRegisterSint0 = WHV_REGISTER_NAME.RegisterSint0; pub const WHvRegisterSint1 = WHV_REGISTER_NAME.RegisterSint1; pub const WHvRegisterSint2 = WHV_REGISTER_NAME.RegisterSint2; pub const WHvRegisterSint3 = WHV_REGISTER_NAME.RegisterSint3; pub const WHvRegisterSint4 = WHV_REGISTER_NAME.RegisterSint4; pub const WHvRegisterSint5 = WHV_REGISTER_NAME.RegisterSint5; pub const WHvRegisterSint6 = WHV_REGISTER_NAME.RegisterSint6; pub const WHvRegisterSint7 = WHV_REGISTER_NAME.RegisterSint7; pub const WHvRegisterSint8 = WHV_REGISTER_NAME.RegisterSint8; pub const WHvRegisterSint9 = WHV_REGISTER_NAME.RegisterSint9; pub const WHvRegisterSint10 = WHV_REGISTER_NAME.RegisterSint10; pub const WHvRegisterSint11 = WHV_REGISTER_NAME.RegisterSint11; pub const WHvRegisterSint12 = WHV_REGISTER_NAME.RegisterSint12; pub const WHvRegisterSint13 = WHV_REGISTER_NAME.RegisterSint13; pub const WHvRegisterSint14 = WHV_REGISTER_NAME.RegisterSint14; pub const WHvRegisterSint15 = WHV_REGISTER_NAME.RegisterSint15; pub const WHvRegisterScontrol = WHV_REGISTER_NAME.RegisterScontrol; pub const WHvRegisterSversion = WHV_REGISTER_NAME.RegisterSversion; pub const WHvRegisterSiefp = WHV_REGISTER_NAME.RegisterSiefp; pub const WHvRegisterSimp = WHV_REGISTER_NAME.RegisterSimp; pub const WHvRegisterEom = WHV_REGISTER_NAME.RegisterEom; pub const WHvRegisterVpRuntime = WHV_REGISTER_NAME.RegisterVpRuntime; pub const WHvX64RegisterHypercall = WHV_REGISTER_NAME.X64RegisterHypercall; pub const WHvRegisterGuestOsId = WHV_REGISTER_NAME.RegisterGuestOsId; pub const WHvRegisterVpAssistPage = WHV_REGISTER_NAME.RegisterVpAssistPage; pub const WHvRegisterReferenceTsc = WHV_REGISTER_NAME.RegisterReferenceTsc; pub const WHvRegisterReferenceTscSequence = WHV_REGISTER_NAME.RegisterReferenceTscSequence; pub const WHvRegisterPendingInterruption = WHV_REGISTER_NAME.RegisterPendingInterruption; pub const WHvRegisterInterruptState = WHV_REGISTER_NAME.RegisterInterruptState; pub const WHvRegisterPendingEvent = WHV_REGISTER_NAME.RegisterPendingEvent; pub const WHvX64RegisterDeliverabilityNotifications = WHV_REGISTER_NAME.X64RegisterDeliverabilityNotifications; pub const WHvRegisterInternalActivityState = WHV_REGISTER_NAME.RegisterInternalActivityState; pub const WHvX64RegisterPendingDebugException = WHV_REGISTER_NAME.X64RegisterPendingDebugException; pub const WHV_UINT128 = extern union { Anonymous: extern struct { Low64: u64, High64: u64, }, Dword: [4]u32, }; pub const WHV_X64_FP_REGISTER = extern union { Anonymous: extern struct { Mantissa: u64, _bitfield: u64, }, AsUINT128: WHV_UINT128, }; pub const WHV_X64_FP_CONTROL_STATUS_REGISTER = extern union { Anonymous: extern struct { FpControl: u16, FpStatus: u16, FpTag: u8, Reserved: u8, LastFpOp: u16, Anonymous: extern union { LastFpRip: u64, Anonymous: extern struct { LastFpEip: u32, LastFpCs: u16, Reserved2: u16, }, }, }, AsUINT128: WHV_UINT128, }; pub const WHV_X64_XMM_CONTROL_STATUS_REGISTER = extern union { Anonymous: extern struct { Anonymous: extern union { LastFpRdp: u64, Anonymous: extern struct { LastFpDp: u32, LastFpDs: u16, Reserved: u16, }, }, XmmStatusControl: u32, XmmStatusControlMask: u32, }, AsUINT128: WHV_UINT128, }; pub const WHV_X64_SEGMENT_REGISTER = extern struct { Base: u64, Limit: u32, Selector: u16, Anonymous: extern union { Anonymous: extern struct { _bitfield: u16, }, Attributes: u16, }, }; pub const WHV_X64_TABLE_REGISTER = extern struct { Pad: [3]u16, Limit: u16, Base: u64, }; pub const WHV_X64_INTERRUPT_STATE_REGISTER = extern union { Anonymous: extern struct { _bitfield: u64, }, AsUINT64: u64, }; pub const WHV_X64_PENDING_INTERRUPTION_REGISTER = extern union { Anonymous: extern struct { _bitfield: u32, ErrorCode: u32, }, AsUINT64: u64, }; pub const WHV_X64_DELIVERABILITY_NOTIFICATIONS_REGISTER = extern union { Anonymous: extern struct { _bitfield: u64, }, AsUINT64: u64, }; pub const WHV_X64_PENDING_EVENT_TYPE = enum(i32) { ception = 0, tInt = 5, }; pub const WHvX64PendingEventException = WHV_X64_PENDING_EVENT_TYPE.ception; pub const WHvX64PendingEventExtInt = WHV_X64_PENDING_EVENT_TYPE.tInt; pub const WHV_X64_PENDING_EXCEPTION_EVENT = extern union { Anonymous: extern struct { _bitfield: u32, ErrorCode: u32, ExceptionParameter: u64, }, AsUINT128: WHV_UINT128, }; pub const WHV_X64_PENDING_EXT_INT_EVENT = extern union { Anonymous: extern struct { _bitfield: u64, Reserved2: u64, }, AsUINT128: WHV_UINT128, }; pub const WHV_INTERNAL_ACTIVITY_REGISTER = extern union { Anonymous: extern struct { _bitfield: u64, }, AsUINT64: u64, }; pub const WHV_X64_PENDING_DEBUG_EXCEPTION = extern union { AsUINT64: u64, Anonymous: extern struct { _bitfield: u64, }, }; pub const WHV_SYNIC_SINT_DELIVERABLE_CONTEXT = extern struct { DeliverableSints: u16, Reserved1: u16, Reserved2: u32, }; pub const WHV_REGISTER_VALUE = extern union { Reg128: WHV_UINT128, Reg64: u64, Reg32: u32, Reg16: u16, Reg8: u8, Fp: WHV_X64_FP_REGISTER, FpControlStatus: WHV_X64_FP_CONTROL_STATUS_REGISTER, XmmControlStatus: WHV_X64_XMM_CONTROL_STATUS_REGISTER, Segment: WHV_X64_SEGMENT_REGISTER, Table: WHV_X64_TABLE_REGISTER, InterruptState: WHV_X64_INTERRUPT_STATE_REGISTER, PendingInterruption: WHV_X64_PENDING_INTERRUPTION_REGISTER, DeliverabilityNotifications: WHV_X64_DELIVERABILITY_NOTIFICATIONS_REGISTER, ExceptionEvent: WHV_X64_PENDING_EXCEPTION_EVENT, ExtIntEvent: WHV_X64_PENDING_EXT_INT_EVENT, InternalActivity: WHV_INTERNAL_ACTIVITY_REGISTER, PendingDebugException: WHV_X64_PENDING_DEBUG_EXCEPTION, }; pub const WHV_RUN_VP_EXIT_REASON = enum(i32) { None = 0, MemoryAccess = 1, X64IoPortAccess = 2, UnrecoverableException = 4, InvalidVpRegisterValue = 5, UnsupportedFeature = 6, X64InterruptWindow = 7, X64Halt = 8, X64ApicEoi = 9, SynicSintDeliverable = 10, X64MsrAccess = 4096, X64Cpuid = 4097, Exception = 4098, X64Rdtsc = 4099, X64ApicSmiTrap = 4100, Hypercall = 4101, X64ApicInitSipiTrap = 4102, X64ApicWriteTrap = 4103, Canceled = 8193, }; pub const WHvRunVpExitReasonNone = WHV_RUN_VP_EXIT_REASON.None; pub const WHvRunVpExitReasonMemoryAccess = WHV_RUN_VP_EXIT_REASON.MemoryAccess; pub const WHvRunVpExitReasonX64IoPortAccess = WHV_RUN_VP_EXIT_REASON.X64IoPortAccess; pub const WHvRunVpExitReasonUnrecoverableException = WHV_RUN_VP_EXIT_REASON.UnrecoverableException; pub const WHvRunVpExitReasonInvalidVpRegisterValue = WHV_RUN_VP_EXIT_REASON.InvalidVpRegisterValue; pub const WHvRunVpExitReasonUnsupportedFeature = WHV_RUN_VP_EXIT_REASON.UnsupportedFeature; pub const WHvRunVpExitReasonX64InterruptWindow = WHV_RUN_VP_EXIT_REASON.X64InterruptWindow; pub const WHvRunVpExitReasonX64Halt = WHV_RUN_VP_EXIT_REASON.X64Halt; pub const WHvRunVpExitReasonX64ApicEoi = WHV_RUN_VP_EXIT_REASON.X64ApicEoi; pub const WHvRunVpExitReasonSynicSintDeliverable = WHV_RUN_VP_EXIT_REASON.SynicSintDeliverable; pub const WHvRunVpExitReasonX64MsrAccess = WHV_RUN_VP_EXIT_REASON.X64MsrAccess; pub const WHvRunVpExitReasonX64Cpuid = WHV_RUN_VP_EXIT_REASON.X64Cpuid; pub const WHvRunVpExitReasonException = WHV_RUN_VP_EXIT_REASON.Exception; pub const WHvRunVpExitReasonX64Rdtsc = WHV_RUN_VP_EXIT_REASON.X64Rdtsc; pub const WHvRunVpExitReasonX64ApicSmiTrap = WHV_RUN_VP_EXIT_REASON.X64ApicSmiTrap; pub const WHvRunVpExitReasonHypercall = WHV_RUN_VP_EXIT_REASON.Hypercall; pub const WHvRunVpExitReasonX64ApicInitSipiTrap = WHV_RUN_VP_EXIT_REASON.X64ApicInitSipiTrap; pub const WHvRunVpExitReasonX64ApicWriteTrap = WHV_RUN_VP_EXIT_REASON.X64ApicWriteTrap; pub const WHvRunVpExitReasonCanceled = WHV_RUN_VP_EXIT_REASON.Canceled; pub const WHV_X64_VP_EXECUTION_STATE = extern union { Anonymous: extern struct { _bitfield: u16, }, AsUINT16: u16, }; pub const WHV_VP_EXIT_CONTEXT = extern struct { ExecutionState: WHV_X64_VP_EXECUTION_STATE, _bitfield: u8, Reserved: u8, Reserved2: u32, Cs: WHV_X64_SEGMENT_REGISTER, Rip: u64, Rflags: u64, }; pub const WHV_MEMORY_ACCESS_INFO = extern union { Anonymous: extern struct { _bitfield: u32, }, AsUINT32: u32, }; pub const WHV_MEMORY_ACCESS_CONTEXT = extern struct { InstructionByteCount: u8, Reserved: [3]u8, InstructionBytes: [16]u8, AccessInfo: WHV_MEMORY_ACCESS_INFO, Gpa: u64, Gva: u64, }; pub const WHV_X64_IO_PORT_ACCESS_INFO = extern union { Anonymous: extern struct { _bitfield: u32, }, AsUINT32: u32, }; pub const WHV_X64_IO_PORT_ACCESS_CONTEXT = extern struct { InstructionByteCount: u8, Reserved: [3]u8, InstructionBytes: [16]u8, AccessInfo: WHV_X64_IO_PORT_ACCESS_INFO, PortNumber: u16, Reserved2: [3]u16, Rax: u64, Rcx: u64, Rsi: u64, Rdi: u64, Ds: WHV_X64_SEGMENT_REGISTER, Es: WHV_X64_SEGMENT_REGISTER, }; pub const WHV_X64_MSR_ACCESS_INFO = extern union { Anonymous: extern struct { _bitfield: u32, }, AsUINT32: u32, }; pub const WHV_X64_MSR_ACCESS_CONTEXT = extern struct { AccessInfo: WHV_X64_MSR_ACCESS_INFO, MsrNumber: u32, Rax: u64, Rdx: u64, }; pub const WHV_X64_CPUID_ACCESS_CONTEXT = extern struct { Rax: u64, Rcx: u64, Rdx: u64, Rbx: u64, DefaultResultRax: u64, DefaultResultRcx: u64, DefaultResultRdx: u64, DefaultResultRbx: u64, }; pub const WHV_VP_EXCEPTION_INFO = extern union { Anonymous: extern struct { _bitfield: u32, }, AsUINT32: u32, }; pub const WHV_VP_EXCEPTION_CONTEXT = extern struct { InstructionByteCount: u8, Reserved: [3]u8, InstructionBytes: [16]u8, ExceptionInfo: WHV_VP_EXCEPTION_INFO, ExceptionType: u8, Reserved2: [3]u8, ErrorCode: u32, ExceptionParameter: u64, }; pub const WHV_X64_UNSUPPORTED_FEATURE_CODE = enum(i32) { Intercept = 1, TaskSwitchTss = 2, }; pub const WHvUnsupportedFeatureIntercept = WHV_X64_UNSUPPORTED_FEATURE_CODE.Intercept; pub const WHvUnsupportedFeatureTaskSwitchTss = WHV_X64_UNSUPPORTED_FEATURE_CODE.TaskSwitchTss; pub const WHV_X64_UNSUPPORTED_FEATURE_CONTEXT = extern struct { FeatureCode: WHV_X64_UNSUPPORTED_FEATURE_CODE, Reserved: u32, FeatureParameter: u64, }; pub const WHV_RUN_VP_CANCEL_REASON = enum(i32) { r = 0, }; pub const WHvRunVpCancelReasonUser = WHV_RUN_VP_CANCEL_REASON.r; pub const WHV_RUN_VP_CANCELED_CONTEXT = extern struct { CancelReason: WHV_RUN_VP_CANCEL_REASON, }; pub const WHV_X64_PENDING_INTERRUPTION_TYPE = enum(i32) { Interrupt = 0, Nmi = 2, Exception = 3, }; pub const WHvX64PendingInterrupt = WHV_X64_PENDING_INTERRUPTION_TYPE.Interrupt; pub const WHvX64PendingNmi = WHV_X64_PENDING_INTERRUPTION_TYPE.Nmi; pub const WHvX64PendingException = WHV_X64_PENDING_INTERRUPTION_TYPE.Exception; pub const WHV_X64_INTERRUPTION_DELIVERABLE_CONTEXT = extern struct { DeliverableType: WHV_X64_PENDING_INTERRUPTION_TYPE, }; pub const WHV_X64_APIC_EOI_CONTEXT = extern struct { InterruptVector: u32, }; pub const WHV_X64_RDTSC_INFO = extern union { Anonymous: extern struct { _bitfield: u64, }, AsUINT64: u64, }; pub const WHV_X64_RDTSC_CONTEXT = extern struct { TscAux: u64, VirtualOffset: u64, Tsc: u64, ReferenceTime: u64, RdtscInfo: WHV_X64_RDTSC_INFO, }; pub const WHV_X64_APIC_SMI_CONTEXT = extern struct { ApicIcr: u64, }; pub const WHV_HYPERCALL_CONTEXT = extern struct { Rax: u64, Rbx: u64, Rcx: u64, Rdx: u64, R8: u64, Rsi: u64, Rdi: u64, Reserved0: u64, XmmRegisters: [6]WHV_UINT128, Reserved1: [2]u64, }; pub const WHV_X64_APIC_INIT_SIPI_CONTEXT = extern struct { ApicIcr: u64, }; pub const WHV_X64_APIC_WRITE_TYPE = enum(i32) { Ldr = 208, Dfr = 224, Svr = 240, Lint0 = 848, Lint1 = 864, }; pub const WHvX64ApicWriteTypeLdr = WHV_X64_APIC_WRITE_TYPE.Ldr; pub const WHvX64ApicWriteTypeDfr = WHV_X64_APIC_WRITE_TYPE.Dfr; pub const WHvX64ApicWriteTypeSvr = WHV_X64_APIC_WRITE_TYPE.Svr; pub const WHvX64ApicWriteTypeLint0 = WHV_X64_APIC_WRITE_TYPE.Lint0; pub const WHvX64ApicWriteTypeLint1 = WHV_X64_APIC_WRITE_TYPE.Lint1; pub const WHV_X64_APIC_WRITE_CONTEXT = extern struct { Type: WHV_X64_APIC_WRITE_TYPE, Reserved: u32, WriteValue: u64, }; pub const WHV_RUN_VP_EXIT_CONTEXT = extern struct { ExitReason: WHV_RUN_VP_EXIT_REASON, Reserved: u32, VpContext: WHV_VP_EXIT_CONTEXT, Anonymous: extern union { MemoryAccess: WHV_MEMORY_ACCESS_CONTEXT, IoPortAccess: WHV_X64_IO_PORT_ACCESS_CONTEXT, MsrAccess: WHV_X64_MSR_ACCESS_CONTEXT, CpuidAccess: WHV_X64_CPUID_ACCESS_CONTEXT, VpException: WHV_VP_EXCEPTION_CONTEXT, InterruptWindow: WHV_X64_INTERRUPTION_DELIVERABLE_CONTEXT, UnsupportedFeature: WHV_X64_UNSUPPORTED_FEATURE_CONTEXT, CancelReason: WHV_RUN_VP_CANCELED_CONTEXT, ApicEoi: WHV_X64_APIC_EOI_CONTEXT, ReadTsc: WHV_X64_RDTSC_CONTEXT, ApicSmi: WHV_X64_APIC_SMI_CONTEXT, Hypercall: WHV_HYPERCALL_CONTEXT, ApicInitSipi: WHV_X64_APIC_INIT_SIPI_CONTEXT, ApicWrite: WHV_X64_APIC_WRITE_CONTEXT, SynicSintDeliverable: WHV_SYNIC_SINT_DELIVERABLE_CONTEXT, }, }; pub const WHV_INTERRUPT_TYPE = enum(i32) { Fixed = 0, LowestPriority = 1, Nmi = 4, Init = 5, Sipi = 6, LocalInt1 = 9, }; pub const WHvX64InterruptTypeFixed = WHV_INTERRUPT_TYPE.Fixed; pub const WHvX64InterruptTypeLowestPriority = WHV_INTERRUPT_TYPE.LowestPriority; pub const WHvX64InterruptTypeNmi = WHV_INTERRUPT_TYPE.Nmi; pub const WHvX64InterruptTypeInit = WHV_INTERRUPT_TYPE.Init; pub const WHvX64InterruptTypeSipi = WHV_INTERRUPT_TYPE.Sipi; pub const WHvX64InterruptTypeLocalInt1 = WHV_INTERRUPT_TYPE.LocalInt1; pub const WHV_INTERRUPT_DESTINATION_MODE = enum(i32) { Physical = 0, Logical = 1, }; pub const WHvX64InterruptDestinationModePhysical = WHV_INTERRUPT_DESTINATION_MODE.Physical; pub const WHvX64InterruptDestinationModeLogical = WHV_INTERRUPT_DESTINATION_MODE.Logical; pub const WHV_INTERRUPT_TRIGGER_MODE = enum(i32) { Edge = 0, Level = 1, }; pub const WHvX64InterruptTriggerModeEdge = WHV_INTERRUPT_TRIGGER_MODE.Edge; pub const WHvX64InterruptTriggerModeLevel = WHV_INTERRUPT_TRIGGER_MODE.Level; pub const WHV_INTERRUPT_CONTROL = extern struct { _bitfield: u64, Destination: u32, Vector: u32, }; pub const WHV_DOORBELL_MATCH_DATA = extern struct { GuestAddress: u64, Value: u64, Length: u32, _bitfield: u32, }; pub const WHV_PARTITION_COUNTER_SET = enum(i32) { y = 0, }; pub const WHvPartitionCounterSetMemory = WHV_PARTITION_COUNTER_SET.y; pub const WHV_PARTITION_MEMORY_COUNTERS = extern struct { Mapped4KPageCount: u64, Mapped2MPageCount: u64, Mapped1GPageCount: u64, }; pub const WHV_PROCESSOR_COUNTER_SET = enum(i32) { Runtime = 0, Intercepts = 1, Events = 2, Apic = 3, SyntheticFeatures = 4, }; pub const WHvProcessorCounterSetRuntime = WHV_PROCESSOR_COUNTER_SET.Runtime; pub const WHvProcessorCounterSetIntercepts = WHV_PROCESSOR_COUNTER_SET.Intercepts; pub const WHvProcessorCounterSetEvents = WHV_PROCESSOR_COUNTER_SET.Events; pub const WHvProcessorCounterSetApic = WHV_PROCESSOR_COUNTER_SET.Apic; pub const WHvProcessorCounterSetSyntheticFeatures = WHV_PROCESSOR_COUNTER_SET.SyntheticFeatures; pub const WHV_PROCESSOR_RUNTIME_COUNTERS = extern struct { TotalRuntime100ns: u64, HypervisorRuntime100ns: u64, }; pub const WHV_PROCESSOR_INTERCEPT_COUNTER = extern struct { Count: u64, Time100ns: u64, }; pub const WHV_PROCESSOR_INTERCEPT_COUNTERS = extern struct { PageInvalidations: WHV_PROCESSOR_INTERCEPT_COUNTER, ControlRegisterAccesses: WHV_PROCESSOR_INTERCEPT_COUNTER, IoInstructions: WHV_PROCESSOR_INTERCEPT_COUNTER, HaltInstructions: WHV_PROCESSOR_INTERCEPT_COUNTER, CpuidInstructions: WHV_PROCESSOR_INTERCEPT_COUNTER, MsrAccesses: WHV_PROCESSOR_INTERCEPT_COUNTER, OtherIntercepts: WHV_PROCESSOR_INTERCEPT_COUNTER, PendingInterrupts: WHV_PROCESSOR_INTERCEPT_COUNTER, EmulatedInstructions: WHV_PROCESSOR_INTERCEPT_COUNTER, DebugRegisterAccesses: WHV_PROCESSOR_INTERCEPT_COUNTER, PageFaultIntercepts: WHV_PROCESSOR_INTERCEPT_COUNTER, NestedPageFaultIntercepts: WHV_PROCESSOR_INTERCEPT_COUNTER, Hypercalls: WHV_PROCESSOR_INTERCEPT_COUNTER, RdpmcInstructions: WHV_PROCESSOR_INTERCEPT_COUNTER, }; pub const WHV_PROCESSOR_EVENT_COUNTERS = extern struct { PageFaultCount: u64, ExceptionCount: u64, InterruptCount: u64, }; pub const WHV_PROCESSOR_APIC_COUNTERS = extern struct { MmioAccessCount: u64, EoiAccessCount: u64, TprAccessCount: u64, SentIpiCount: u64, SelfIpiCount: u64, }; pub const WHV_PROCESSOR_SYNTHETIC_FEATURES_COUNTERS = extern struct { SyntheticInterruptsCount: u64, LongSpinWaitHypercallsCount: u64, OtherHypercallsCount: u64, SyntheticInterruptHypercallsCount: u64, VirtualInterruptHypercallsCount: u64, VirtualMmuHypercallsCount: u64, }; pub const WHV_ADVISE_GPA_RANGE_CODE = enum(i32) { Populate = 0, Pin = 1, Unpin = 2, }; pub const WHvAdviseGpaRangeCodePopulate = WHV_ADVISE_GPA_RANGE_CODE.Populate; pub const WHvAdviseGpaRangeCodePin = WHV_ADVISE_GPA_RANGE_CODE.Pin; pub const WHvAdviseGpaRangeCodeUnpin = WHV_ADVISE_GPA_RANGE_CODE.Unpin; pub const WHV_VIRTUAL_PROCESSOR_STATE_TYPE = enum(i32) { SynicMessagePage = 0, SynicEventFlagPage = 1, SynicTimerState = 2, InterruptControllerState2 = 4096, XsaveState = 4097, }; pub const WHvVirtualProcessorStateTypeSynicMessagePage = WHV_VIRTUAL_PROCESSOR_STATE_TYPE.SynicMessagePage; pub const WHvVirtualProcessorStateTypeSynicEventFlagPage = WHV_VIRTUAL_PROCESSOR_STATE_TYPE.SynicEventFlagPage; pub const WHvVirtualProcessorStateTypeSynicTimerState = WHV_VIRTUAL_PROCESSOR_STATE_TYPE.SynicTimerState; pub const WHvVirtualProcessorStateTypeInterruptControllerState2 = WHV_VIRTUAL_PROCESSOR_STATE_TYPE.InterruptControllerState2; pub const WHvVirtualProcessorStateTypeXsaveState = WHV_VIRTUAL_PROCESSOR_STATE_TYPE.XsaveState; pub const WHV_SYNIC_EVENT_PARAMETERS = extern struct { VpIndex: u32, TargetSint: u8, Reserved: u8, FlagNumber: u16, }; pub const WHV_ALLOCATE_VPCI_RESOURCE_FLAGS = enum(u32) { None = 0, AllowDirectP2P = 1, _, pub fn initFlags(o: struct { None: u1 = 0, AllowDirectP2P: u1 = 0, }) WHV_ALLOCATE_VPCI_RESOURCE_FLAGS { return @as(WHV_ALLOCATE_VPCI_RESOURCE_FLAGS, @enumFromInt((if (o.None == 1) @intFromEnum(WHV_ALLOCATE_VPCI_RESOURCE_FLAGS.None) else 0) | (if (o.AllowDirectP2P == 1) @intFromEnum(WHV_ALLOCATE_VPCI_RESOURCE_FLAGS.AllowDirectP2P) else 0))); } }; pub const WHvAllocateVpciResourceFlagNone = WHV_ALLOCATE_VPCI_RESOURCE_FLAGS.None; pub const WHvAllocateVpciResourceFlagAllowDirectP2P = WHV_ALLOCATE_VPCI_RESOURCE_FLAGS.AllowDirectP2P; pub const WHV_SRIOV_RESOURCE_DESCRIPTOR = extern struct { PnpInstanceId: [200]u16, VirtualFunctionId: LUID, VirtualFunctionIndex: u16, Reserved: u16, }; pub const WHV_VPCI_DEVICE_NOTIFICATION_TYPE = enum(i32) { Undefined = 0, MmioRemapping = 1, SurpriseRemoval = 2, }; pub const WHvVpciDeviceNotificationUndefined = WHV_VPCI_DEVICE_NOTIFICATION_TYPE.Undefined; pub const WHvVpciDeviceNotificationMmioRemapping = WHV_VPCI_DEVICE_NOTIFICATION_TYPE.MmioRemapping; pub const WHvVpciDeviceNotificationSurpriseRemoval = WHV_VPCI_DEVICE_NOTIFICATION_TYPE.SurpriseRemoval; pub const WHV_VPCI_DEVICE_NOTIFICATION = extern struct { NotificationType: WHV_VPCI_DEVICE_NOTIFICATION_TYPE, Reserved1: u32, Anonymous: extern union { Reserved2: u64, }, }; pub const WHV_CREATE_VPCI_DEVICE_FLAGS = enum(u32) { None = 0, PhysicallyBacked = 1, UseLogicalInterrupts = 2, _, pub fn initFlags(o: struct { None: u1 = 0, PhysicallyBacked: u1 = 0, UseLogicalInterrupts: u1 = 0, }) WHV_CREATE_VPCI_DEVICE_FLAGS { return @as(WHV_CREATE_VPCI_DEVICE_FLAGS, @enumFromInt((if (o.None == 1) @intFromEnum(WHV_CREATE_VPCI_DEVICE_FLAGS.None) else 0) | (if (o.PhysicallyBacked == 1) @intFromEnum(WHV_CREATE_VPCI_DEVICE_FLAGS.PhysicallyBacked) else 0) | (if (o.UseLogicalInterrupts == 1) @intFromEnum(WHV_CREATE_VPCI_DEVICE_FLAGS.UseLogicalInterrupts) else 0))); } }; pub const WHvCreateVpciDeviceFlagNone = WHV_CREATE_VPCI_DEVICE_FLAGS.None; pub const WHvCreateVpciDeviceFlagPhysicallyBacked = WHV_CREATE_VPCI_DEVICE_FLAGS.PhysicallyBacked; pub const WHvCreateVpciDeviceFlagUseLogicalInterrupts = WHV_CREATE_VPCI_DEVICE_FLAGS.UseLogicalInterrupts; pub const WHV_VPCI_DEVICE_PROPERTY_CODE = enum(i32) { Undefined = 0, HardwareIDs = 1, ProbedBARs = 2, }; pub const WHvVpciDevicePropertyCodeUndefined = WHV_VPCI_DEVICE_PROPERTY_CODE.Undefined; pub const WHvVpciDevicePropertyCodeHardwareIDs = WHV_VPCI_DEVICE_PROPERTY_CODE.HardwareIDs; pub const WHvVpciDevicePropertyCodeProbedBARs = WHV_VPCI_DEVICE_PROPERTY_CODE.ProbedBARs; pub const WHV_VPCI_HARDWARE_IDS = extern struct { VendorID: u16, DeviceID: u16, RevisionID: u8, ProgIf: u8, SubClass: u8, BaseClass: u8, SubVendorID: u16, SubSystemID: u16, }; pub const WHV_VPCI_PROBED_BARS = extern struct { Value: [6]u32, }; pub const WHV_VPCI_MMIO_RANGE_FLAGS = enum(u32) { ReadAccess = 1, WriteAccess = 2, _, pub fn initFlags(o: struct { ReadAccess: u1 = 0, WriteAccess: u1 = 0, }) WHV_VPCI_MMIO_RANGE_FLAGS { return @as(WHV_VPCI_MMIO_RANGE_FLAGS, @enumFromInt((if (o.ReadAccess == 1) @intFromEnum(WHV_VPCI_MMIO_RANGE_FLAGS.ReadAccess) else 0) | (if (o.WriteAccess == 1) @intFromEnum(WHV_VPCI_MMIO_RANGE_FLAGS.WriteAccess) else 0))); } }; pub const WHvVpciMmioRangeFlagReadAccess = WHV_VPCI_MMIO_RANGE_FLAGS.ReadAccess; pub const WHvVpciMmioRangeFlagWriteAccess = WHV_VPCI_MMIO_RANGE_FLAGS.WriteAccess; pub const WHV_VPCI_DEVICE_REGISTER_SPACE = enum(i32) { ConfigSpace = -1, Bar0 = 0, Bar1 = 1, Bar2 = 2, Bar3 = 3, Bar4 = 4, Bar5 = 5, }; pub const WHvVpciConfigSpace = WHV_VPCI_DEVICE_REGISTER_SPACE.ConfigSpace; pub const WHvVpciBar0 = WHV_VPCI_DEVICE_REGISTER_SPACE.Bar0; pub const WHvVpciBar1 = WHV_VPCI_DEVICE_REGISTER_SPACE.Bar1; pub const WHvVpciBar2 = WHV_VPCI_DEVICE_REGISTER_SPACE.Bar2; pub const WHvVpciBar3 = WHV_VPCI_DEVICE_REGISTER_SPACE.Bar3; pub const WHvVpciBar4 = WHV_VPCI_DEVICE_REGISTER_SPACE.Bar4; pub const WHvVpciBar5 = WHV_VPCI_DEVICE_REGISTER_SPACE.Bar5; pub const WHV_VPCI_MMIO_MAPPING = extern struct { Location: WHV_VPCI_DEVICE_REGISTER_SPACE, Flags: WHV_VPCI_MMIO_RANGE_FLAGS, SizeInBytes: u64, OffsetInBytes: u64, VirtualAddress: ?*anyopaque, }; pub const WHV_VPCI_DEVICE_REGISTER = extern struct { Location: WHV_VPCI_DEVICE_REGISTER_SPACE, SizeInBytes: u32, OffsetInBytes: u64, }; pub const WHV_VPCI_INTERRUPT_TARGET_FLAGS = enum(u32) { None = 0, Multicast = 1, _, pub fn initFlags(o: struct { None: u1 = 0, Multicast: u1 = 0, }) WHV_VPCI_INTERRUPT_TARGET_FLAGS { return @as(WHV_VPCI_INTERRUPT_TARGET_FLAGS, @enumFromInt((if (o.None == 1) @intFromEnum(WHV_VPCI_INTERRUPT_TARGET_FLAGS.None) else 0) | (if (o.Multicast == 1) @intFromEnum(WHV_VPCI_INTERRUPT_TARGET_FLAGS.Multicast) else 0))); } }; pub const WHvVpciInterruptTargetFlagNone = WHV_VPCI_INTERRUPT_TARGET_FLAGS.None; pub const WHvVpciInterruptTargetFlagMulticast = WHV_VPCI_INTERRUPT_TARGET_FLAGS.Multicast; pub const WHV_VPCI_INTERRUPT_TARGET = extern struct { Vector: u32, Flags: WHV_VPCI_INTERRUPT_TARGET_FLAGS, ProcessorCount: u32, Processors: [1]u32, }; pub const WHV_TRIGGER_TYPE = enum(i32) { Interrupt = 0, SynicEvent = 1, DeviceInterrupt = 2, }; pub const WHvTriggerTypeInterrupt = WHV_TRIGGER_TYPE.Interrupt; pub const WHvTriggerTypeSynicEvent = WHV_TRIGGER_TYPE.SynicEvent; pub const WHvTriggerTypeDeviceInterrupt = WHV_TRIGGER_TYPE.DeviceInterrupt; pub const WHV_TRIGGER_PARAMETERS = extern struct { TriggerType: WHV_TRIGGER_TYPE, Reserved: u32, Anonymous: extern union { Interrupt: WHV_INTERRUPT_CONTROL, SynicEvent: WHV_SYNIC_EVENT_PARAMETERS, DeviceInterrupt: extern struct { LogicalDeviceId: u64, MsiAddress: u64, MsiData: u32, Reserved: u32, }, }, }; pub const WHV_VIRTUAL_PROCESSOR_PROPERTY_CODE = enum(i32) { e = 0, }; pub const WHvVirtualProcessorPropertyCodeNumaNode = WHV_VIRTUAL_PROCESSOR_PROPERTY_CODE.e; pub const WHV_VIRTUAL_PROCESSOR_PROPERTY = extern struct { PropertyCode: WHV_VIRTUAL_PROCESSOR_PROPERTY_CODE, Reserved: u32, Anonymous: extern union { NumaNode: u16, Padding: u64, }, }; pub const WHV_NOTIFICATION_PORT_TYPE = enum(i32) { Event = 2, Doorbell = 4, }; pub const WHvNotificationPortTypeEvent = WHV_NOTIFICATION_PORT_TYPE.Event; pub const WHvNotificationPortTypeDoorbell = WHV_NOTIFICATION_PORT_TYPE.Doorbell; pub const WHV_NOTIFICATION_PORT_PARAMETERS = extern struct { NotificationPortType: WHV_NOTIFICATION_PORT_TYPE, Reserved: u32, Anonymous: extern union { Doorbell: WHV_DOORBELL_MATCH_DATA, Event: extern struct { ConnectionId: u32, }, }, }; pub const WHV_NOTIFICATION_PORT_PROPERTY_CODE = enum(i32) { Vp = 1, Duration = 5, }; pub const WHvNotificationPortPropertyPreferredTargetVp = WHV_NOTIFICATION_PORT_PROPERTY_CODE.Vp; pub const WHvNotificationPortPropertyPreferredTargetDuration = WHV_NOTIFICATION_PORT_PROPERTY_CODE.Duration; pub const WHV_EMULATOR_STATUS = extern union { Anonymous: extern struct { _bitfield: u32, }, AsUINT32: u32, }; pub const WHV_EMULATOR_MEMORY_ACCESS_INFO = extern struct { GpaAddress: u64, Direction: u8, AccessSize: u8, Data: [8]u8, }; pub const WHV_EMULATOR_IO_ACCESS_INFO = extern struct { Direction: u8, Port: u16, AccessSize: u16, Data: u32, }; pub const WHV_EMULATOR_IO_PORT_CALLBACK = switch (@import("builtin").zig_backend) { .stage1 => fn ( Context: ?*anyopaque, IoAccess: ?*WHV_EMULATOR_IO_ACCESS_INFO, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( Context: ?*anyopaque, IoAccess: ?*WHV_EMULATOR_IO_ACCESS_INFO, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }; pub const WHV_EMULATOR_MEMORY_CALLBACK = switch (@import("builtin").zig_backend) { .stage1 => fn ( Context: ?*anyopaque, MemoryAccess: ?*WHV_EMULATOR_MEMORY_ACCESS_INFO, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( Context: ?*anyopaque, MemoryAccess: ?*WHV_EMULATOR_MEMORY_ACCESS_INFO, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }; pub const WHV_EMULATOR_GET_VIRTUAL_PROCESSOR_REGISTERS_CALLBACK = switch (@import("builtin").zig_backend) { .stage1 => fn ( Context: ?*anyopaque, RegisterNames: [*]const WHV_REGISTER_NAME, RegisterCount: u32, RegisterValues: [*]WHV_REGISTER_VALUE, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( Context: ?*anyopaque, RegisterNames: [*]const WHV_REGISTER_NAME, RegisterCount: u32, RegisterValues: [*]WHV_REGISTER_VALUE, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }; pub const WHV_EMULATOR_SET_VIRTUAL_PROCESSOR_REGISTERS_CALLBACK = switch (@import("builtin").zig_backend) { .stage1 => fn ( Context: ?*anyopaque, RegisterNames: [*]const WHV_REGISTER_NAME, RegisterCount: u32, RegisterValues: [*]const WHV_REGISTER_VALUE, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( Context: ?*anyopaque, RegisterNames: [*]const WHV_REGISTER_NAME, RegisterCount: u32, RegisterValues: [*]const WHV_REGISTER_VALUE, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }; pub const WHV_EMULATOR_TRANSLATE_GVA_PAGE_CALLBACK = switch (@import("builtin").zig_backend) { .stage1 => fn ( Context: ?*anyopaque, Gva: u64, TranslateFlags: WHV_TRANSLATE_GVA_FLAGS, TranslationResult: ?*WHV_TRANSLATE_GVA_RESULT_CODE, Gpa: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( Context: ?*anyopaque, Gva: u64, TranslateFlags: WHV_TRANSLATE_GVA_FLAGS, TranslationResult: ?*WHV_TRANSLATE_GVA_RESULT_CODE, Gpa: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }; pub const WHV_EMULATOR_CALLBACKS = extern struct { Size: u32, Reserved: u32, WHvEmulatorIoPortCallback: ?WHV_EMULATOR_IO_PORT_CALLBACK, WHvEmulatorMemoryCallback: ?WHV_EMULATOR_MEMORY_CALLBACK, WHvEmulatorGetVirtualProcessorRegisters: ?WHV_EMULATOR_GET_VIRTUAL_PROCESSOR_REGISTERS_CALLBACK, WHvEmulatorSetVirtualProcessorRegisters: ?WHV_EMULATOR_SET_VIRTUAL_PROCESSOR_REGISTERS_CALLBACK, WHvEmulatorTranslateGvaPage: ?WHV_EMULATOR_TRANSLATE_GVA_PAGE_CALLBACK, }; pub const SOCKADDR_HV = extern struct { Family: u16, Reserved: u16, VmId: Guid, ServiceId: Guid, }; pub const HVSOCKET_ADDRESS_INFO = extern struct { SystemId: Guid, VirtualMachineId: Guid, SiloId: Guid, Flags: u32, }; pub const VM_GENCOUNTER = extern struct { GenerationCount: u64, GenerationCountHigh: u64, }; pub const HDV_DEVICE_TYPE = enum(i32) { Undefined = 0, PCI = 1, }; pub const HdvDeviceTypeUndefined = HDV_DEVICE_TYPE.Undefined; pub const HdvDeviceTypePCI = HDV_DEVICE_TYPE.PCI; pub const HDV_PCI_PNP_ID = extern struct { VendorID: u16, DeviceID: u16, RevisionID: u8, ProgIf: u8, SubClass: u8, BaseClass: u8, SubVendorID: u16, SubSystemID: u16, }; pub const HDV_PCI_BAR_SELECTOR = enum(i32) { @"0" = 0, @"1" = 1, @"2" = 2, @"3" = 3, @"4" = 4, @"5" = 5, }; pub const HDV_PCI_BAR0 = HDV_PCI_BAR_SELECTOR.@"0"; pub const HDV_PCI_BAR1 = HDV_PCI_BAR_SELECTOR.@"1"; pub const HDV_PCI_BAR2 = HDV_PCI_BAR_SELECTOR.@"2"; pub const HDV_PCI_BAR3 = HDV_PCI_BAR_SELECTOR.@"3"; pub const HDV_PCI_BAR4 = HDV_PCI_BAR_SELECTOR.@"4"; pub const HDV_PCI_BAR5 = HDV_PCI_BAR_SELECTOR.@"5"; pub const HDV_DOORBELL_FLAGS = enum(i32) { SIZE_ANY = 0, SIZE_BYTE = 1, SIZE_WORD = 2, SIZE_DWORD = 3, SIZE_QWORD = 4, ANY_VALUE = -2147483648, }; pub const HDV_DOORBELL_FLAG_TRIGGER_SIZE_ANY = HDV_DOORBELL_FLAGS.SIZE_ANY; pub const HDV_DOORBELL_FLAG_TRIGGER_SIZE_BYTE = HDV_DOORBELL_FLAGS.SIZE_BYTE; pub const HDV_DOORBELL_FLAG_TRIGGER_SIZE_WORD = HDV_DOORBELL_FLAGS.SIZE_WORD; pub const HDV_DOORBELL_FLAG_TRIGGER_SIZE_DWORD = HDV_DOORBELL_FLAGS.SIZE_DWORD; pub const HDV_DOORBELL_FLAG_TRIGGER_SIZE_QWORD = HDV_DOORBELL_FLAGS.SIZE_QWORD; pub const HDV_DOORBELL_FLAG_TRIGGER_ANY_VALUE = HDV_DOORBELL_FLAGS.ANY_VALUE; pub const HDV_MMIO_MAPPING_FLAGS = enum(u32) { None = 0, Writeable = 1, Executable = 2, _, pub fn initFlags(o: struct { None: u1 = 0, Writeable: u1 = 0, Executable: u1 = 0, }) HDV_MMIO_MAPPING_FLAGS { return @as(HDV_MMIO_MAPPING_FLAGS, @enumFromInt((if (o.None == 1) @intFromEnum(HDV_MMIO_MAPPING_FLAGS.None) else 0) | (if (o.Writeable == 1) @intFromEnum(HDV_MMIO_MAPPING_FLAGS.Writeable) else 0) | (if (o.Executable == 1) @intFromEnum(HDV_MMIO_MAPPING_FLAGS.Executable) else 0))); } }; pub const HdvMmioMappingFlagNone = HDV_MMIO_MAPPING_FLAGS.None; pub const HdvMmioMappingFlagWriteable = HDV_MMIO_MAPPING_FLAGS.Writeable; pub const HdvMmioMappingFlagExecutable = HDV_MMIO_MAPPING_FLAGS.Executable; pub const HDV_PCI_DEVICE_INITIALIZE = switch (@import("builtin").zig_backend) { .stage1 => fn ( deviceContext: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( deviceContext: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }; pub const HDV_PCI_DEVICE_TEARDOWN = switch (@import("builtin").zig_backend) { .stage1 => fn ( deviceContext: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) void, else => *const fn ( deviceContext: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) void, }; pub const HDV_PCI_DEVICE_SET_CONFIGURATION = switch (@import("builtin").zig_backend) { .stage1 => fn ( deviceContext: ?*anyopaque, configurationValueCount: u32, configurationValues: [*]const ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( deviceContext: ?*anyopaque, configurationValueCount: u32, configurationValues: [*]const ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }; pub const HDV_PCI_DEVICE_GET_DETAILS = switch (@import("builtin").zig_backend) { .stage1 => fn ( deviceContext: ?*anyopaque, pnpId: ?*HDV_PCI_PNP_ID, probedBarsCount: u32, probedBars: [*]u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( deviceContext: ?*anyopaque, pnpId: ?*HDV_PCI_PNP_ID, probedBarsCount: u32, probedBars: [*]u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }; pub const HDV_PCI_DEVICE_START = switch (@import("builtin").zig_backend) { .stage1 => fn ( deviceContext: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( deviceContext: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }; pub const HDV_PCI_DEVICE_STOP = switch (@import("builtin").zig_backend) { .stage1 => fn ( deviceContext: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) void, else => *const fn ( deviceContext: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) void, }; pub const HDV_PCI_READ_CONFIG_SPACE = switch (@import("builtin").zig_backend) { .stage1 => fn ( deviceContext: ?*anyopaque, offset: u32, value: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( deviceContext: ?*anyopaque, offset: u32, value: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }; pub const HDV_PCI_WRITE_CONFIG_SPACE = switch (@import("builtin").zig_backend) { .stage1 => fn ( deviceContext: ?*anyopaque, offset: u32, value: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( deviceContext: ?*anyopaque, offset: u32, value: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }; pub const HDV_PCI_READ_INTERCEPTED_MEMORY = switch (@import("builtin").zig_backend) { .stage1 => fn ( deviceContext: ?*anyopaque, barIndex: HDV_PCI_BAR_SELECTOR, offset: u64, length: u64, value: [*:0]u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( deviceContext: ?*anyopaque, barIndex: HDV_PCI_BAR_SELECTOR, offset: u64, length: u64, value: [*:0]u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }; pub const HDV_PCI_WRITE_INTERCEPTED_MEMORY = switch (@import("builtin").zig_backend) { .stage1 => fn ( deviceContext: ?*anyopaque, barIndex: HDV_PCI_BAR_SELECTOR, offset: u64, length: u64, value: [*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( deviceContext: ?*anyopaque, barIndex: HDV_PCI_BAR_SELECTOR, offset: u64, length: u64, value: [*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }; pub const HDV_PCI_INTERFACE_VERSION = enum(i32) { Invalid = 0, @"1" = 1, }; pub const HdvPciDeviceInterfaceVersionInvalid = HDV_PCI_INTERFACE_VERSION.Invalid; pub const HdvPciDeviceInterfaceVersion1 = HDV_PCI_INTERFACE_VERSION.@"1"; pub const HDV_PCI_DEVICE_INTERFACE = extern struct { Version: HDV_PCI_INTERFACE_VERSION, Initialize: ?HDV_PCI_DEVICE_INITIALIZE, Teardown: ?HDV_PCI_DEVICE_TEARDOWN, SetConfiguration: ?HDV_PCI_DEVICE_SET_CONFIGURATION, GetDetails: ?HDV_PCI_DEVICE_GET_DETAILS, Start: ?HDV_PCI_DEVICE_START, Stop: ?HDV_PCI_DEVICE_STOP, ReadConfigSpace: ?HDV_PCI_READ_CONFIG_SPACE, WriteConfigSpace: ?HDV_PCI_WRITE_CONFIG_SPACE, ReadInterceptedMemory: ?HDV_PCI_READ_INTERCEPTED_MEMORY, WriteInterceptedMemory: ?HDV_PCI_WRITE_INTERCEPTED_MEMORY, }; pub const PAGING_MODE = enum(i32) { Invalid = 0, NonPaged = 1, @"32Bit" = 2, Pae = 3, Long = 4, Armv8 = 5, }; pub const Paging_Invalid = PAGING_MODE.Invalid; pub const Paging_NonPaged = PAGING_MODE.NonPaged; pub const Paging_32Bit = PAGING_MODE.@"32Bit"; pub const Paging_Pae = PAGING_MODE.Pae; pub const Paging_Long = PAGING_MODE.Long; pub const Paging_Armv8 = PAGING_MODE.Armv8; pub const GPA_MEMORY_CHUNK = extern struct { GuestPhysicalStartPageIndex: u64, PageCount: u64, }; pub const VIRTUAL_PROCESSOR_ARCH = enum(i32) { Unknown = 0, x86 = 1, x64 = 2, Armv8 = 3, }; pub const Arch_Unknown = VIRTUAL_PROCESSOR_ARCH.Unknown; pub const Arch_x86 = VIRTUAL_PROCESSOR_ARCH.x86; pub const Arch_x64 = VIRTUAL_PROCESSOR_ARCH.x64; pub const Arch_Armv8 = VIRTUAL_PROCESSOR_ARCH.Armv8; pub const VIRTUAL_PROCESSOR_VENDOR = enum(i32) { Unknown = 0, Amd = 1, Intel = 2, Hygon = 3, Arm = 4, }; pub const ProcessorVendor_Unknown = VIRTUAL_PROCESSOR_VENDOR.Unknown; pub const ProcessorVendor_Amd = VIRTUAL_PROCESSOR_VENDOR.Amd; pub const ProcessorVendor_Intel = VIRTUAL_PROCESSOR_VENDOR.Intel; pub const ProcessorVendor_Hygon = VIRTUAL_PROCESSOR_VENDOR.Hygon; pub const ProcessorVendor_Arm = VIRTUAL_PROCESSOR_VENDOR.Arm; pub const GUEST_OS_VENDOR = enum(i32) { Undefined = 0, Microsoft = 1, HPE = 2, LANCOM = 512, }; pub const GuestOsVendorUndefined = GUEST_OS_VENDOR.Undefined; pub const GuestOsVendorMicrosoft = GUEST_OS_VENDOR.Microsoft; pub const GuestOsVendorHPE = GUEST_OS_VENDOR.HPE; pub const GuestOsVendorLANCOM = GUEST_OS_VENDOR.LANCOM; pub const GUEST_OS_MICROSOFT_IDS = enum(i32) { Undefined = 0, MSDOS = 1, Windows3x = 2, Windows9x = 3, WindowsNT = 4, WindowsCE = 5, }; pub const GuestOsMicrosoftUndefined = GUEST_OS_MICROSOFT_IDS.Undefined; pub const GuestOsMicrosoftMSDOS = GUEST_OS_MICROSOFT_IDS.MSDOS; pub const GuestOsMicrosoftWindows3x = GUEST_OS_MICROSOFT_IDS.Windows3x; pub const GuestOsMicrosoftWindows9x = GUEST_OS_MICROSOFT_IDS.Windows9x; pub const GuestOsMicrosoftWindowsNT = GUEST_OS_MICROSOFT_IDS.WindowsNT; pub const GuestOsMicrosoftWindowsCE = GUEST_OS_MICROSOFT_IDS.WindowsCE; pub const GUEST_OS_OPENSOURCE_IDS = enum(i32) { Undefined = 0, Linux = 1, FreeBSD = 2, Xen = 3, Illumos = 4, }; pub const GuestOsOpenSourceUndefined = GUEST_OS_OPENSOURCE_IDS.Undefined; pub const GuestOsOpenSourceLinux = GUEST_OS_OPENSOURCE_IDS.Linux; pub const GuestOsOpenSourceFreeBSD = GUEST_OS_OPENSOURCE_IDS.FreeBSD; pub const GuestOsOpenSourceXen = GUEST_OS_OPENSOURCE_IDS.Xen; pub const GuestOsOpenSourceIllumos = GUEST_OS_OPENSOURCE_IDS.Illumos; pub const GUEST_OS_INFO = extern union { AsUINT64: u64, ClosedSource: extern struct { _bitfield: u64, }, OpenSource: extern struct { _bitfield: u64, }, }; pub const REGISTER_ID = enum(i32) { X64_RegisterRax = 0, X64_RegisterRcx = 1, X64_RegisterRdx = 2, X64_RegisterRbx = 3, X64_RegisterRsp = 4, X64_RegisterRbp = 5, X64_RegisterRsi = 6, X64_RegisterRdi = 7, X64_RegisterR8 = 8, X64_RegisterR9 = 9, X64_RegisterR10 = 10, X64_RegisterR11 = 11, X64_RegisterR12 = 12, X64_RegisterR13 = 13, X64_RegisterR14 = 14, X64_RegisterR15 = 15, X64_RegisterRip = 16, X64_RegisterRFlags = 17, X64_RegisterXmm0 = 18, X64_RegisterXmm1 = 19, X64_RegisterXmm2 = 20, X64_RegisterXmm3 = 21, X64_RegisterXmm4 = 22, X64_RegisterXmm5 = 23, X64_RegisterXmm6 = 24, X64_RegisterXmm7 = 25, X64_RegisterXmm8 = 26, X64_RegisterXmm9 = 27, X64_RegisterXmm10 = 28, X64_RegisterXmm11 = 29, X64_RegisterXmm12 = 30, X64_RegisterXmm13 = 31, X64_RegisterXmm14 = 32, X64_RegisterXmm15 = 33, X64_RegisterFpMmx0 = 34, X64_RegisterFpMmx1 = 35, X64_RegisterFpMmx2 = 36, X64_RegisterFpMmx3 = 37, X64_RegisterFpMmx4 = 38, X64_RegisterFpMmx5 = 39, X64_RegisterFpMmx6 = 40, X64_RegisterFpMmx7 = 41, X64_RegisterFpControlStatus = 42, X64_RegisterXmmControlStatus = 43, X64_RegisterCr0 = 44, X64_RegisterCr2 = 45, X64_RegisterCr3 = 46, X64_RegisterCr4 = 47, X64_RegisterCr8 = 48, X64_RegisterEfer = 49, X64_RegisterDr0 = 50, X64_RegisterDr1 = 51, X64_RegisterDr2 = 52, X64_RegisterDr3 = 53, X64_RegisterDr6 = 54, X64_RegisterDr7 = 55, X64_RegisterEs = 56, X64_RegisterCs = 57, X64_RegisterSs = 58, X64_RegisterDs = 59, X64_RegisterFs = 60, X64_RegisterGs = 61, X64_RegisterLdtr = 62, X64_RegisterTr = 63, X64_RegisterIdtr = 64, X64_RegisterGdtr = 65, X64_RegisterMax = 66, ARM64_RegisterX0 = 67, ARM64_RegisterX1 = 68, ARM64_RegisterX2 = 69, ARM64_RegisterX3 = 70, ARM64_RegisterX4 = 71, ARM64_RegisterX5 = 72, ARM64_RegisterX6 = 73, ARM64_RegisterX7 = 74, ARM64_RegisterX8 = 75, ARM64_RegisterX9 = 76, ARM64_RegisterX10 = 77, ARM64_RegisterX11 = 78, ARM64_RegisterX12 = 79, ARM64_RegisterX13 = 80, ARM64_RegisterX14 = 81, ARM64_RegisterX15 = 82, ARM64_RegisterX16 = 83, ARM64_RegisterX17 = 84, ARM64_RegisterX18 = 85, ARM64_RegisterX19 = 86, ARM64_RegisterX20 = 87, ARM64_RegisterX21 = 88, ARM64_RegisterX22 = 89, ARM64_RegisterX23 = 90, ARM64_RegisterX24 = 91, ARM64_RegisterX25 = 92, ARM64_RegisterX26 = 93, ARM64_RegisterX27 = 94, ARM64_RegisterX28 = 95, ARM64_RegisterXFp = 96, ARM64_RegisterXLr = 97, ARM64_RegisterPc = 98, ARM64_RegisterSpEl0 = 99, ARM64_RegisterSpEl1 = 100, ARM64_RegisterCpsr = 101, ARM64_RegisterQ0 = 102, ARM64_RegisterQ1 = 103, ARM64_RegisterQ2 = 104, ARM64_RegisterQ3 = 105, ARM64_RegisterQ4 = 106, ARM64_RegisterQ5 = 107, ARM64_RegisterQ6 = 108, ARM64_RegisterQ7 = 109, ARM64_RegisterQ8 = 110, ARM64_RegisterQ9 = 111, ARM64_RegisterQ10 = 112, ARM64_RegisterQ11 = 113, ARM64_RegisterQ12 = 114, ARM64_RegisterQ13 = 115, ARM64_RegisterQ14 = 116, ARM64_RegisterQ15 = 117, ARM64_RegisterQ16 = 118, ARM64_RegisterQ17 = 119, ARM64_RegisterQ18 = 120, ARM64_RegisterQ19 = 121, ARM64_RegisterQ20 = 122, ARM64_RegisterQ21 = 123, ARM64_RegisterQ22 = 124, ARM64_RegisterQ23 = 125, ARM64_RegisterQ24 = 126, ARM64_RegisterQ25 = 127, ARM64_RegisterQ26 = 128, ARM64_RegisterQ27 = 129, ARM64_RegisterQ28 = 130, ARM64_RegisterQ29 = 131, ARM64_RegisterQ30 = 132, ARM64_RegisterQ31 = 133, ARM64_RegisterFpStatus = 134, ARM64_RegisterFpControl = 135, ARM64_RegisterEsrEl1 = 136, ARM64_RegisterSpsrEl1 = 137, ARM64_RegisterFarEl1 = 138, ARM64_RegisterParEl1 = 139, ARM64_RegisterElrEl1 = 140, ARM64_RegisterTtbr0El1 = 141, ARM64_RegisterTtbr1El1 = 142, ARM64_RegisterVbarEl1 = 143, ARM64_RegisterSctlrEl1 = 144, ARM64_RegisterActlrEl1 = 145, ARM64_RegisterTcrEl1 = 146, ARM64_RegisterMairEl1 = 147, ARM64_RegisterAmairEl1 = 148, ARM64_RegisterTpidrEl0 = 149, ARM64_RegisterTpidrroEl0 = 150, ARM64_RegisterTpidrEl1 = 151, ARM64_RegisterContextIdrEl1 = 152, ARM64_RegisterCpacrEl1 = 153, ARM64_RegisterCsselrEl1 = 154, ARM64_RegisterCntkctlEl1 = 155, ARM64_RegisterCntvCvalEl0 = 156, ARM64_RegisterCntvCtlEl0 = 157, ARM64_RegisterMax = 158, }; pub const X64_RegisterRax = REGISTER_ID.X64_RegisterRax; pub const X64_RegisterRcx = REGISTER_ID.X64_RegisterRcx; pub const X64_RegisterRdx = REGISTER_ID.X64_RegisterRdx; pub const X64_RegisterRbx = REGISTER_ID.X64_RegisterRbx; pub const X64_RegisterRsp = REGISTER_ID.X64_RegisterRsp; pub const X64_RegisterRbp = REGISTER_ID.X64_RegisterRbp; pub const X64_RegisterRsi = REGISTER_ID.X64_RegisterRsi; pub const X64_RegisterRdi = REGISTER_ID.X64_RegisterRdi; pub const X64_RegisterR8 = REGISTER_ID.X64_RegisterR8; pub const X64_RegisterR9 = REGISTER_ID.X64_RegisterR9; pub const X64_RegisterR10 = REGISTER_ID.X64_RegisterR10; pub const X64_RegisterR11 = REGISTER_ID.X64_RegisterR11; pub const X64_RegisterR12 = REGISTER_ID.X64_RegisterR12; pub const X64_RegisterR13 = REGISTER_ID.X64_RegisterR13; pub const X64_RegisterR14 = REGISTER_ID.X64_RegisterR14; pub const X64_RegisterR15 = REGISTER_ID.X64_RegisterR15; pub const X64_RegisterRip = REGISTER_ID.X64_RegisterRip; pub const X64_RegisterRFlags = REGISTER_ID.X64_RegisterRFlags; pub const X64_RegisterXmm0 = REGISTER_ID.X64_RegisterXmm0; pub const X64_RegisterXmm1 = REGISTER_ID.X64_RegisterXmm1; pub const X64_RegisterXmm2 = REGISTER_ID.X64_RegisterXmm2; pub const X64_RegisterXmm3 = REGISTER_ID.X64_RegisterXmm3; pub const X64_RegisterXmm4 = REGISTER_ID.X64_RegisterXmm4; pub const X64_RegisterXmm5 = REGISTER_ID.X64_RegisterXmm5; pub const X64_RegisterXmm6 = REGISTER_ID.X64_RegisterXmm6; pub const X64_RegisterXmm7 = REGISTER_ID.X64_RegisterXmm7; pub const X64_RegisterXmm8 = REGISTER_ID.X64_RegisterXmm8; pub const X64_RegisterXmm9 = REGISTER_ID.X64_RegisterXmm9; pub const X64_RegisterXmm10 = REGISTER_ID.X64_RegisterXmm10; pub const X64_RegisterXmm11 = REGISTER_ID.X64_RegisterXmm11; pub const X64_RegisterXmm12 = REGISTER_ID.X64_RegisterXmm12; pub const X64_RegisterXmm13 = REGISTER_ID.X64_RegisterXmm13; pub const X64_RegisterXmm14 = REGISTER_ID.X64_RegisterXmm14; pub const X64_RegisterXmm15 = REGISTER_ID.X64_RegisterXmm15; pub const X64_RegisterFpMmx0 = REGISTER_ID.X64_RegisterFpMmx0; pub const X64_RegisterFpMmx1 = REGISTER_ID.X64_RegisterFpMmx1; pub const X64_RegisterFpMmx2 = REGISTER_ID.X64_RegisterFpMmx2; pub const X64_RegisterFpMmx3 = REGISTER_ID.X64_RegisterFpMmx3; pub const X64_RegisterFpMmx4 = REGISTER_ID.X64_RegisterFpMmx4; pub const X64_RegisterFpMmx5 = REGISTER_ID.X64_RegisterFpMmx5; pub const X64_RegisterFpMmx6 = REGISTER_ID.X64_RegisterFpMmx6; pub const X64_RegisterFpMmx7 = REGISTER_ID.X64_RegisterFpMmx7; pub const X64_RegisterFpControlStatus = REGISTER_ID.X64_RegisterFpControlStatus; pub const X64_RegisterXmmControlStatus = REGISTER_ID.X64_RegisterXmmControlStatus; pub const X64_RegisterCr0 = REGISTER_ID.X64_RegisterCr0; pub const X64_RegisterCr2 = REGISTER_ID.X64_RegisterCr2; pub const X64_RegisterCr3 = REGISTER_ID.X64_RegisterCr3; pub const X64_RegisterCr4 = REGISTER_ID.X64_RegisterCr4; pub const X64_RegisterCr8 = REGISTER_ID.X64_RegisterCr8; pub const X64_RegisterEfer = REGISTER_ID.X64_RegisterEfer; pub const X64_RegisterDr0 = REGISTER_ID.X64_RegisterDr0; pub const X64_RegisterDr1 = REGISTER_ID.X64_RegisterDr1; pub const X64_RegisterDr2 = REGISTER_ID.X64_RegisterDr2; pub const X64_RegisterDr3 = REGISTER_ID.X64_RegisterDr3; pub const X64_RegisterDr6 = REGISTER_ID.X64_RegisterDr6; pub const X64_RegisterDr7 = REGISTER_ID.X64_RegisterDr7; pub const X64_RegisterEs = REGISTER_ID.X64_RegisterEs; pub const X64_RegisterCs = REGISTER_ID.X64_RegisterCs; pub const X64_RegisterSs = REGISTER_ID.X64_RegisterSs; pub const X64_RegisterDs = REGISTER_ID.X64_RegisterDs; pub const X64_RegisterFs = REGISTER_ID.X64_RegisterFs; pub const X64_RegisterGs = REGISTER_ID.X64_RegisterGs; pub const X64_RegisterLdtr = REGISTER_ID.X64_RegisterLdtr; pub const X64_RegisterTr = REGISTER_ID.X64_RegisterTr; pub const X64_RegisterIdtr = REGISTER_ID.X64_RegisterIdtr; pub const X64_RegisterGdtr = REGISTER_ID.X64_RegisterGdtr; pub const X64_RegisterMax = REGISTER_ID.X64_RegisterMax; pub const ARM64_RegisterX0 = REGISTER_ID.ARM64_RegisterX0; pub const ARM64_RegisterX1 = REGISTER_ID.ARM64_RegisterX1; pub const ARM64_RegisterX2 = REGISTER_ID.ARM64_RegisterX2; pub const ARM64_RegisterX3 = REGISTER_ID.ARM64_RegisterX3; pub const ARM64_RegisterX4 = REGISTER_ID.ARM64_RegisterX4; pub const ARM64_RegisterX5 = REGISTER_ID.ARM64_RegisterX5; pub const ARM64_RegisterX6 = REGISTER_ID.ARM64_RegisterX6; pub const ARM64_RegisterX7 = REGISTER_ID.ARM64_RegisterX7; pub const ARM64_RegisterX8 = REGISTER_ID.ARM64_RegisterX8; pub const ARM64_RegisterX9 = REGISTER_ID.ARM64_RegisterX9; pub const ARM64_RegisterX10 = REGISTER_ID.ARM64_RegisterX10; pub const ARM64_RegisterX11 = REGISTER_ID.ARM64_RegisterX11; pub const ARM64_RegisterX12 = REGISTER_ID.ARM64_RegisterX12; pub const ARM64_RegisterX13 = REGISTER_ID.ARM64_RegisterX13; pub const ARM64_RegisterX14 = REGISTER_ID.ARM64_RegisterX14; pub const ARM64_RegisterX15 = REGISTER_ID.ARM64_RegisterX15; pub const ARM64_RegisterX16 = REGISTER_ID.ARM64_RegisterX16; pub const ARM64_RegisterX17 = REGISTER_ID.ARM64_RegisterX17; pub const ARM64_RegisterX18 = REGISTER_ID.ARM64_RegisterX18; pub const ARM64_RegisterX19 = REGISTER_ID.ARM64_RegisterX19; pub const ARM64_RegisterX20 = REGISTER_ID.ARM64_RegisterX20; pub const ARM64_RegisterX21 = REGISTER_ID.ARM64_RegisterX21; pub const ARM64_RegisterX22 = REGISTER_ID.ARM64_RegisterX22; pub const ARM64_RegisterX23 = REGISTER_ID.ARM64_RegisterX23; pub const ARM64_RegisterX24 = REGISTER_ID.ARM64_RegisterX24; pub const ARM64_RegisterX25 = REGISTER_ID.ARM64_RegisterX25; pub const ARM64_RegisterX26 = REGISTER_ID.ARM64_RegisterX26; pub const ARM64_RegisterX27 = REGISTER_ID.ARM64_RegisterX27; pub const ARM64_RegisterX28 = REGISTER_ID.ARM64_RegisterX28; pub const ARM64_RegisterXFp = REGISTER_ID.ARM64_RegisterXFp; pub const ARM64_RegisterXLr = REGISTER_ID.ARM64_RegisterXLr; pub const ARM64_RegisterPc = REGISTER_ID.ARM64_RegisterPc; pub const ARM64_RegisterSpEl0 = REGISTER_ID.ARM64_RegisterSpEl0; pub const ARM64_RegisterSpEl1 = REGISTER_ID.ARM64_RegisterSpEl1; pub const ARM64_RegisterCpsr = REGISTER_ID.ARM64_RegisterCpsr; pub const ARM64_RegisterQ0 = REGISTER_ID.ARM64_RegisterQ0; pub const ARM64_RegisterQ1 = REGISTER_ID.ARM64_RegisterQ1; pub const ARM64_RegisterQ2 = REGISTER_ID.ARM64_RegisterQ2; pub const ARM64_RegisterQ3 = REGISTER_ID.ARM64_RegisterQ3; pub const ARM64_RegisterQ4 = REGISTER_ID.ARM64_RegisterQ4; pub const ARM64_RegisterQ5 = REGISTER_ID.ARM64_RegisterQ5; pub const ARM64_RegisterQ6 = REGISTER_ID.ARM64_RegisterQ6; pub const ARM64_RegisterQ7 = REGISTER_ID.ARM64_RegisterQ7; pub const ARM64_RegisterQ8 = REGISTER_ID.ARM64_RegisterQ8; pub const ARM64_RegisterQ9 = REGISTER_ID.ARM64_RegisterQ9; pub const ARM64_RegisterQ10 = REGISTER_ID.ARM64_RegisterQ10; pub const ARM64_RegisterQ11 = REGISTER_ID.ARM64_RegisterQ11; pub const ARM64_RegisterQ12 = REGISTER_ID.ARM64_RegisterQ12; pub const ARM64_RegisterQ13 = REGISTER_ID.ARM64_RegisterQ13; pub const ARM64_RegisterQ14 = REGISTER_ID.ARM64_RegisterQ14; pub const ARM64_RegisterQ15 = REGISTER_ID.ARM64_RegisterQ15; pub const ARM64_RegisterQ16 = REGISTER_ID.ARM64_RegisterQ16; pub const ARM64_RegisterQ17 = REGISTER_ID.ARM64_RegisterQ17; pub const ARM64_RegisterQ18 = REGISTER_ID.ARM64_RegisterQ18; pub const ARM64_RegisterQ19 = REGISTER_ID.ARM64_RegisterQ19; pub const ARM64_RegisterQ20 = REGISTER_ID.ARM64_RegisterQ20; pub const ARM64_RegisterQ21 = REGISTER_ID.ARM64_RegisterQ21; pub const ARM64_RegisterQ22 = REGISTER_ID.ARM64_RegisterQ22; pub const ARM64_RegisterQ23 = REGISTER_ID.ARM64_RegisterQ23; pub const ARM64_RegisterQ24 = REGISTER_ID.ARM64_RegisterQ24; pub const ARM64_RegisterQ25 = REGISTER_ID.ARM64_RegisterQ25; pub const ARM64_RegisterQ26 = REGISTER_ID.ARM64_RegisterQ26; pub const ARM64_RegisterQ27 = REGISTER_ID.ARM64_RegisterQ27; pub const ARM64_RegisterQ28 = REGISTER_ID.ARM64_RegisterQ28; pub const ARM64_RegisterQ29 = REGISTER_ID.ARM64_RegisterQ29; pub const ARM64_RegisterQ30 = REGISTER_ID.ARM64_RegisterQ30; pub const ARM64_RegisterQ31 = REGISTER_ID.ARM64_RegisterQ31; pub const ARM64_RegisterFpStatus = REGISTER_ID.ARM64_RegisterFpStatus; pub const ARM64_RegisterFpControl = REGISTER_ID.ARM64_RegisterFpControl; pub const ARM64_RegisterEsrEl1 = REGISTER_ID.ARM64_RegisterEsrEl1; pub const ARM64_RegisterSpsrEl1 = REGISTER_ID.ARM64_RegisterSpsrEl1; pub const ARM64_RegisterFarEl1 = REGISTER_ID.ARM64_RegisterFarEl1; pub const ARM64_RegisterParEl1 = REGISTER_ID.ARM64_RegisterParEl1; pub const ARM64_RegisterElrEl1 = REGISTER_ID.ARM64_RegisterElrEl1; pub const ARM64_RegisterTtbr0El1 = REGISTER_ID.ARM64_RegisterTtbr0El1; pub const ARM64_RegisterTtbr1El1 = REGISTER_ID.ARM64_RegisterTtbr1El1; pub const ARM64_RegisterVbarEl1 = REGISTER_ID.ARM64_RegisterVbarEl1; pub const ARM64_RegisterSctlrEl1 = REGISTER_ID.ARM64_RegisterSctlrEl1; pub const ARM64_RegisterActlrEl1 = REGISTER_ID.ARM64_RegisterActlrEl1; pub const ARM64_RegisterTcrEl1 = REGISTER_ID.ARM64_RegisterTcrEl1; pub const ARM64_RegisterMairEl1 = REGISTER_ID.ARM64_RegisterMairEl1; pub const ARM64_RegisterAmairEl1 = REGISTER_ID.ARM64_RegisterAmairEl1; pub const ARM64_RegisterTpidrEl0 = REGISTER_ID.ARM64_RegisterTpidrEl0; pub const ARM64_RegisterTpidrroEl0 = REGISTER_ID.ARM64_RegisterTpidrroEl0; pub const ARM64_RegisterTpidrEl1 = REGISTER_ID.ARM64_RegisterTpidrEl1; pub const ARM64_RegisterContextIdrEl1 = REGISTER_ID.ARM64_RegisterContextIdrEl1; pub const ARM64_RegisterCpacrEl1 = REGISTER_ID.ARM64_RegisterCpacrEl1; pub const ARM64_RegisterCsselrEl1 = REGISTER_ID.ARM64_RegisterCsselrEl1; pub const ARM64_RegisterCntkctlEl1 = REGISTER_ID.ARM64_RegisterCntkctlEl1; pub const ARM64_RegisterCntvCvalEl0 = REGISTER_ID.ARM64_RegisterCntvCvalEl0; pub const ARM64_RegisterCntvCtlEl0 = REGISTER_ID.ARM64_RegisterCntvCtlEl0; pub const ARM64_RegisterMax = REGISTER_ID.ARM64_RegisterMax; pub const VIRTUAL_PROCESSOR_REGISTER = extern union { Reg64: u64, Reg32: u32, Reg16: u16, Reg8: u8, Reg128: extern struct { Low64: u64, High64: u64, }, X64: extern union { Segment: extern struct { Base: u64, Limit: u32, Selector: u16, Anonymous: extern union { Attributes: u16, Anonymous: extern struct { _bitfield: u16, }, }, }, Table: extern struct { Limit: u16, Base: u64, }, FpControlStatus: extern struct { FpControl: u16, FpStatus: u16, FpTag: u8, Reserved: u8, LastFpOp: u16, Anonymous: extern union { LastFpRip: u64, Anonymous: extern struct { LastFpEip: u32, LastFpCs: u16, }, }, }, XmmControlStatus: extern struct { Anonymous: extern union { LastFpRdp: u64, Anonymous: extern struct { LastFpDp: u32, LastFpDs: u16, }, }, XmmStatusControl: u32, XmmStatusControlMask: u32, }, }, }; pub const DOS_IMAGE_INFO = extern struct { PdbName: ?[*:0]const u8, ImageBaseAddress: u64, ImageSize: u32, Timestamp: u32, }; pub const GUEST_SYMBOLS_PROVIDER_DEBUG_INFO_CALLBACK = switch (@import("builtin").zig_backend) { .stage1 => fn ( InfoMessage: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) void, else => *const fn ( InfoMessage: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) void, }; pub const FOUND_IMAGE_CALLBACK = switch (@import("builtin").zig_backend) { .stage1 => fn ( Context: ?*anyopaque, ImageInfo: ?*DOS_IMAGE_INFO, ) callconv(@import("std").os.windows.WINAPI) BOOL, else => *const fn ( Context: ?*anyopaque, ImageInfo: ?*DOS_IMAGE_INFO, ) callconv(@import("std").os.windows.WINAPI) BOOL, }; pub const MODULE_INFO = extern struct { ProcessImageName: ?[*:0]const u8, Image: DOS_IMAGE_INFO, }; //-------------------------------------------------------------------------------- // Section: Functions (125) //-------------------------------------------------------------------------------- pub extern "winhvplatform" fn WHvGetCapability( CapabilityCode: WHV_CAPABILITY_CODE, // TODO: what to do with BytesParamIndex 2? CapabilityBuffer: ?*anyopaque, CapabilityBufferSizeInBytes: u32, WrittenSizeInBytes: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT; pub extern "winhvplatform" fn WHvCreatePartition( Partition: ?*WHV_PARTITION_HANDLE, ) callconv(@import("std").os.windows.WINAPI) HRESULT; pub extern "winhvplatform" fn WHvSetupPartition( Partition: WHV_PARTITION_HANDLE, ) callconv(@import("std").os.windows.WINAPI) HRESULT; pub extern "winhvplatform" fn WHvResetPartition( Partition: WHV_PARTITION_HANDLE, ) callconv(@import("std").os.windows.WINAPI) HRESULT; pub extern "winhvplatform" fn WHvDeletePartition( Partition: WHV_PARTITION_HANDLE, ) callconv(@import("std").os.windows.WINAPI) HRESULT; pub extern "winhvplatform" fn WHvGetPartitionProperty( Partition: WHV_PARTITION_HANDLE, PropertyCode: WHV_PARTITION_PROPERTY_CODE, // TODO: what to do with BytesParamIndex 3? PropertyBuffer: ?*anyopaque, PropertyBufferSizeInBytes: u32, WrittenSizeInBytes: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT; pub extern "winhvplatform" fn WHvSetPartitionProperty( Partition: WHV_PARTITION_HANDLE, PropertyCode: WHV_PARTITION_PROPERTY_CODE, // TODO: what to do with BytesParamIndex 3? PropertyBuffer: ?*const anyopaque, PropertyBufferSizeInBytes: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT; pub extern "winhvplatform" fn WHvSuspendPartitionTime( Partition: WHV_PARTITION_HANDLE, ) callconv(@import("std").os.windows.WINAPI) HRESULT; pub extern "winhvplatform" fn WHvResumePartitionTime( Partition: WHV_PARTITION_HANDLE, ) callconv(@import("std").os.windows.WINAPI) HRESULT; pub extern "winhvplatform" fn WHvMapGpaRange( Partition: WHV_PARTITION_HANDLE, SourceAddress: ?*anyopaque, GuestAddress: u64, SizeInBytes: u64, Flags: WHV_MAP_GPA_RANGE_FLAGS, ) callconv(@import("std").os.windows.WINAPI) HRESULT; pub extern "winhvplatform" fn WHvMapGpaRange2( Partition: WHV_PARTITION_HANDLE, Process: ?HANDLE, SourceAddress: ?*anyopaque, GuestAddress: u64, SizeInBytes: u64, Flags: WHV_MAP_GPA_RANGE_FLAGS, ) callconv(@import("std").os.windows.WINAPI) HRESULT; pub extern "winhvplatform" fn WHvUnmapGpaRange( Partition: WHV_PARTITION_HANDLE, GuestAddress: u64, SizeInBytes: u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT; pub extern "winhvplatform" fn WHvTranslateGva( Partition: WHV_PARTITION_HANDLE, VpIndex: u32, Gva: u64, TranslateFlags: WHV_TRANSLATE_GVA_FLAGS, TranslationResult: ?*WHV_TRANSLATE_GVA_RESULT, Gpa: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT; pub extern "winhvplatform" fn WHvCreateVirtualProcessor( Partition: WHV_PARTITION_HANDLE, VpIndex: u32, Flags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT; pub extern "winhvplatform" fn WHvCreateVirtualProcessor2( Partition: WHV_PARTITION_HANDLE, VpIndex: u32, Properties: [*]const WHV_VIRTUAL_PROCESSOR_PROPERTY, PropertyCount: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT; pub extern "winhvplatform" fn WHvDeleteVirtualProcessor( Partition: WHV_PARTITION_HANDLE, VpIndex: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT; pub extern "winhvplatform" fn WHvRunVirtualProcessor( Partition: WHV_PARTITION_HANDLE, VpIndex: u32, // TODO: what to do with BytesParamIndex 3? ExitContext: ?*anyopaque, ExitContextSizeInBytes: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT; pub extern "winhvplatform" fn WHvCancelRunVirtualProcessor( Partition: WHV_PARTITION_HANDLE, VpIndex: u32, Flags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT; pub extern "winhvplatform" fn WHvGetVirtualProcessorRegisters( Partition: WHV_PARTITION_HANDLE, VpIndex: u32, RegisterNames: [*]const WHV_REGISTER_NAME, RegisterCount: u32, RegisterValues: [*]WHV_REGISTER_VALUE, ) callconv(@import("std").os.windows.WINAPI) HRESULT; pub extern "winhvplatform" fn WHvSetVirtualProcessorRegisters( Partition: WHV_PARTITION_HANDLE, VpIndex: u32, RegisterNames: [*]const WHV_REGISTER_NAME, RegisterCount: u32, RegisterValues: [*]const WHV_REGISTER_VALUE, ) callconv(@import("std").os.windows.WINAPI) HRESULT; pub extern "winhvplatform" fn WHvGetVirtualProcessorInterruptControllerState( Partition: WHV_PARTITION_HANDLE, VpIndex: u32, // TODO: what to do with BytesParamIndex 3? State: ?*anyopaque, StateSize: u32, WrittenSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT; pub extern "winhvplatform" fn WHvSetVirtualProcessorInterruptControllerState( Partition: WHV_PARTITION_HANDLE, VpIndex: u32, // TODO: what to do with BytesParamIndex 3? State: ?*const anyopaque, StateSize: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT; pub extern "winhvplatform" fn WHvRequestInterrupt( Partition: WHV_PARTITION_HANDLE, Interrupt: ?*const WHV_INTERRUPT_CONTROL, InterruptControlSize: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT; pub extern "winhvplatform" fn WHvGetVirtualProcessorXsaveState( Partition: WHV_PARTITION_HANDLE, VpIndex: u32, // TODO: what to do with BytesParamIndex 3? Buffer: ?*anyopaque, BufferSizeInBytes: u32, BytesWritten: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT; pub extern "winhvplatform" fn WHvSetVirtualProcessorXsaveState( Partition: WHV_PARTITION_HANDLE, VpIndex: u32, // TODO: what to do with BytesParamIndex 3? Buffer: ?*const anyopaque, BufferSizeInBytes: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT; pub extern "winhvplatform" fn WHvQueryGpaRangeDirtyBitmap( Partition: WHV_PARTITION_HANDLE, GuestAddress: u64, RangeSizeInBytes: u64, // TODO: what to do with BytesParamIndex 4? Bitmap: ?*u64, BitmapSizeInBytes: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT; pub extern "winhvplatform" fn WHvGetPartitionCounters( Partition: WHV_PARTITION_HANDLE, CounterSet: WHV_PARTITION_COUNTER_SET, // TODO: what to do with BytesParamIndex 3? Buffer: ?*anyopaque, BufferSizeInBytes: u32, BytesWritten: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT; pub extern "winhvplatform" fn WHvGetVirtualProcessorCounters( Partition: WHV_PARTITION_HANDLE, VpIndex: u32, CounterSet: WHV_PROCESSOR_COUNTER_SET, // TODO: what to do with BytesParamIndex 4? Buffer: ?*anyopaque, BufferSizeInBytes: u32, BytesWritten: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT; pub extern "winhvplatform" fn WHvGetVirtualProcessorInterruptControllerState2( Partition: WHV_PARTITION_HANDLE, VpIndex: u32, // TODO: what to do with BytesParamIndex 3? State: ?*anyopaque, StateSize: u32, WrittenSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT; pub extern "winhvplatform" fn WHvSetVirtualProcessorInterruptControllerState2( Partition: WHV_PARTITION_HANDLE, VpIndex: u32, // TODO: what to do with BytesParamIndex 3? State: ?*const anyopaque, StateSize: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT; pub extern "winhvplatform" fn WHvRegisterPartitionDoorbellEvent( Partition: WHV_PARTITION_HANDLE, MatchData: ?*const WHV_DOORBELL_MATCH_DATA, EventHandle: ?HANDLE, ) callconv(@import("std").os.windows.WINAPI) HRESULT; pub extern "winhvplatform" fn WHvUnregisterPartitionDoorbellEvent( Partition: WHV_PARTITION_HANDLE, MatchData: ?*const WHV_DOORBELL_MATCH_DATA, ) callconv(@import("std").os.windows.WINAPI) HRESULT; pub extern "winhvplatform" fn WHvAdviseGpaRange( Partition: WHV_PARTITION_HANDLE, GpaRanges: [*]const WHV_MEMORY_RANGE_ENTRY, GpaRangesCount: u32, Advice: WHV_ADVISE_GPA_RANGE_CODE, // TODO: what to do with BytesParamIndex 5? AdviceBuffer: ?*const anyopaque, AdviceBufferSizeInBytes: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT; pub extern "winhvplatform" fn WHvReadGpaRange( Partition: WHV_PARTITION_HANDLE, VpIndex: u32, GuestAddress: u64, Controls: WHV_ACCESS_GPA_CONTROLS, // TODO: what to do with BytesParamIndex 5? Data: ?*anyopaque, DataSizeInBytes: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT; pub extern "winhvplatform" fn WHvWriteGpaRange( Partition: WHV_PARTITION_HANDLE, VpIndex: u32, GuestAddress: u64, Controls: WHV_ACCESS_GPA_CONTROLS, // TODO: what to do with BytesParamIndex 5? Data: ?*const anyopaque, DataSizeInBytes: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT; pub extern "winhvplatform" fn WHvSignalVirtualProcessorSynicEvent( Partition: WHV_PARTITION_HANDLE, SynicEvent: WHV_SYNIC_EVENT_PARAMETERS, NewlySignaled: ?*BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT; pub extern "winhvplatform" fn WHvGetVirtualProcessorState( Partition: WHV_PARTITION_HANDLE, VpIndex: u32, StateType: WHV_VIRTUAL_PROCESSOR_STATE_TYPE, // TODO: what to do with BytesParamIndex 4? Buffer: ?*anyopaque, BufferSizeInBytes: u32, BytesWritten: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT; pub extern "winhvplatform" fn WHvSetVirtualProcessorState( Partition: WHV_PARTITION_HANDLE, VpIndex: u32, StateType: WHV_VIRTUAL_PROCESSOR_STATE_TYPE, // TODO: what to do with BytesParamIndex 4? Buffer: ?*const anyopaque, BufferSizeInBytes: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT; pub extern "winhvplatform" fn WHvAllocateVpciResource( ProviderId: ?*const Guid, Flags: WHV_ALLOCATE_VPCI_RESOURCE_FLAGS, ResourceDescriptor: ?[*]const u8, ResourceDescriptorSizeInBytes: u32, VpciResource: ?*?HANDLE, ) callconv(@import("std").os.windows.WINAPI) HRESULT; pub extern "winhvplatform" fn WHvCreateVpciDevice( Partition: WHV_PARTITION_HANDLE, LogicalDeviceId: u64, VpciResource: ?HANDLE, Flags: WHV_CREATE_VPCI_DEVICE_FLAGS, NotificationEventHandle: ?HANDLE, ) callconv(@import("std").os.windows.WINAPI) HRESULT; pub extern "winhvplatform" fn WHvDeleteVpciDevice( Partition: WHV_PARTITION_HANDLE, LogicalDeviceId: u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT; pub extern "winhvplatform" fn WHvGetVpciDeviceProperty( Partition: WHV_PARTITION_HANDLE, LogicalDeviceId: u64, PropertyCode: WHV_VPCI_DEVICE_PROPERTY_CODE, // TODO: what to do with BytesParamIndex 4? PropertyBuffer: ?*anyopaque, PropertyBufferSizeInBytes: u32, WrittenSizeInBytes: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT; pub extern "winhvplatform" fn WHvGetVpciDeviceNotification( Partition: WHV_PARTITION_HANDLE, LogicalDeviceId: u64, // TODO: what to do with BytesParamIndex 3? Notification: ?*WHV_VPCI_DEVICE_NOTIFICATION, NotificationSizeInBytes: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT; pub extern "winhvplatform" fn WHvMapVpciDeviceMmioRanges( Partition: WHV_PARTITION_HANDLE, LogicalDeviceId: u64, MappingCount: ?*u32, Mappings: ?*?*WHV_VPCI_MMIO_MAPPING, ) callconv(@import("std").os.windows.WINAPI) HRESULT; pub extern "winhvplatform" fn WHvUnmapVpciDeviceMmioRanges( Partition: WHV_PARTITION_HANDLE, LogicalDeviceId: u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT; pub extern "winhvplatform" fn WHvSetVpciDevicePowerState( Partition: WHV_PARTITION_HANDLE, LogicalDeviceId: u64, PowerState: DEVICE_POWER_STATE, ) callconv(@import("std").os.windows.WINAPI) HRESULT; pub extern "winhvplatform" fn WHvReadVpciDeviceRegister( Partition: WHV_PARTITION_HANDLE, LogicalDeviceId: u64, Register: ?*const WHV_VPCI_DEVICE_REGISTER, Data: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) HRESULT; pub extern "winhvplatform" fn WHvWriteVpciDeviceRegister( Partition: WHV_PARTITION_HANDLE, LogicalDeviceId: u64, Register: ?*const WHV_VPCI_DEVICE_REGISTER, Data: ?*const anyopaque, ) callconv(@import("std").os.windows.WINAPI) HRESULT; pub extern "winhvplatform" fn WHvMapVpciDeviceInterrupt( Partition: WHV_PARTITION_HANDLE, LogicalDeviceId: u64, Index: u32, MessageCount: u32, Target: ?*const WHV_VPCI_INTERRUPT_TARGET, MsiAddress: ?*u64, MsiData: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT; pub extern "winhvplatform" fn WHvUnmapVpciDeviceInterrupt( Partition: WHV_PARTITION_HANDLE, LogicalDeviceId: u64, Index: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT; pub extern "winhvplatform" fn WHvRetargetVpciDeviceInterrupt( Partition: WHV_PARTITION_HANDLE, LogicalDeviceId: u64, MsiAddress: u64, MsiData: u32, Target: ?*const WHV_VPCI_INTERRUPT_TARGET, ) callconv(@import("std").os.windows.WINAPI) HRESULT; pub extern "winhvplatform" fn WHvRequestVpciDeviceInterrupt( Partition: WHV_PARTITION_HANDLE, LogicalDeviceId: u64, MsiAddress: u64, MsiData: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT; pub extern "winhvplatform" fn WHvGetVpciDeviceInterruptTarget( Partition: WHV_PARTITION_HANDLE, LogicalDeviceId: u64, Index: u32, MultiMessageNumber: u32, // TODO: what to do with BytesParamIndex 5? Target: ?*WHV_VPCI_INTERRUPT_TARGET, TargetSizeInBytes: u32, BytesWritten: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT; pub extern "winhvplatform" fn WHvCreateTrigger( Partition: WHV_PARTITION_HANDLE, Parameters: ?*const WHV_TRIGGER_PARAMETERS, TriggerHandle: ?*?*anyopaque, EventHandle: ?*?HANDLE, ) callconv(@import("std").os.windows.WINAPI) HRESULT; pub extern "winhvplatform" fn WHvUpdateTriggerParameters( Partition: WHV_PARTITION_HANDLE, Parameters: ?*const WHV_TRIGGER_PARAMETERS, TriggerHandle: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) HRESULT; pub extern "winhvplatform" fn WHvDeleteTrigger( Partition: WHV_PARTITION_HANDLE, TriggerHandle: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) HRESULT; pub extern "winhvplatform" fn WHvCreateNotificationPort( Partition: WHV_PARTITION_HANDLE, Parameters: ?*const WHV_NOTIFICATION_PORT_PARAMETERS, EventHandle: ?HANDLE, PortHandle: ?*?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) HRESULT; pub extern "winhvplatform" fn WHvSetNotificationPortProperty( Partition: WHV_PARTITION_HANDLE, PortHandle: ?*anyopaque, PropertyCode: WHV_NOTIFICATION_PORT_PROPERTY_CODE, PropertyValue: u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT; pub extern "winhvplatform" fn WHvDeleteNotificationPort( Partition: WHV_PARTITION_HANDLE, PortHandle: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) HRESULT; pub extern "winhvplatform" fn WHvPostVirtualProcessorSynicMessage( Partition: WHV_PARTITION_HANDLE, VpIndex: u32, SintIndex: u32, // TODO: what to do with BytesParamIndex 4? Message: ?*const anyopaque, MessageSizeInBytes: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT; pub extern "winhvplatform" fn WHvGetVirtualProcessorCpuidOutput( Partition: WHV_PARTITION_HANDLE, VpIndex: u32, Eax: u32, Ecx: u32, CpuidOutput: ?*WHV_CPUID_OUTPUT, ) callconv(@import("std").os.windows.WINAPI) HRESULT; pub extern "winhvplatform" fn WHvGetInterruptTargetVpSet( Partition: WHV_PARTITION_HANDLE, Destination: u64, DestinationMode: WHV_INTERRUPT_DESTINATION_MODE, TargetVps: [*]u32, VpCount: u32, TargetVpCount: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT; pub extern "winhvplatform" fn WHvStartPartitionMigration( Partition: WHV_PARTITION_HANDLE, MigrationHandle: ?*?HANDLE, ) callconv(@import("std").os.windows.WINAPI) HRESULT; pub extern "winhvplatform" fn WHvCancelPartitionMigration( Partition: WHV_PARTITION_HANDLE, ) callconv(@import("std").os.windows.WINAPI) HRESULT; pub extern "winhvplatform" fn WHvCompletePartitionMigration( Partition: WHV_PARTITION_HANDLE, ) callconv(@import("std").os.windows.WINAPI) HRESULT; pub extern "winhvplatform" fn WHvAcceptPartitionMigration( MigrationHandle: ?HANDLE, Partition: ?*WHV_PARTITION_HANDLE, ) callconv(@import("std").os.windows.WINAPI) HRESULT; pub extern "winhvemulation" fn WHvEmulatorCreateEmulator( Callbacks: ?*const WHV_EMULATOR_CALLBACKS, Emulator: ?*?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) HRESULT; pub extern "winhvemulation" fn WHvEmulatorDestroyEmulator( Emulator: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) HRESULT; pub extern "winhvemulation" fn WHvEmulatorTryIoEmulation( Emulator: ?*anyopaque, Context: ?*anyopaque, VpContext: ?*const WHV_VP_EXIT_CONTEXT, IoInstructionContext: ?*const WHV_X64_IO_PORT_ACCESS_CONTEXT, EmulatorReturnStatus: ?*WHV_EMULATOR_STATUS, ) callconv(@import("std").os.windows.WINAPI) HRESULT; pub extern "winhvemulation" fn WHvEmulatorTryMmioEmulation( Emulator: ?*anyopaque, Context: ?*anyopaque, VpContext: ?*const WHV_VP_EXIT_CONTEXT, MmioInstructionContext: ?*const WHV_MEMORY_ACCESS_CONTEXT, EmulatorReturnStatus: ?*WHV_EMULATOR_STATUS, ) callconv(@import("std").os.windows.WINAPI) HRESULT; pub extern "vmdevicehost" fn HdvInitializeDeviceHost( computeSystem: HCS_SYSTEM, deviceHostHandle: ?*?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) HRESULT; pub extern "vmdevicehost" fn HdvTeardownDeviceHost( deviceHostHandle: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) HRESULT; pub extern "vmdevicehost" fn HdvCreateDeviceInstance( deviceHostHandle: ?*anyopaque, deviceType: HDV_DEVICE_TYPE, deviceClassId: ?*const Guid, deviceInstanceId: ?*const Guid, deviceInterface: ?*const anyopaque, deviceContext: ?*anyopaque, deviceHandle: ?*?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) HRESULT; pub extern "vmdevicehost" fn HdvReadGuestMemory( requestor: ?*anyopaque, guestPhysicalAddress: u64, byteCount: u32, buffer: [*:0]u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT; pub extern "vmdevicehost" fn HdvWriteGuestMemory( requestor: ?*anyopaque, guestPhysicalAddress: u64, byteCount: u32, buffer: [*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT; pub extern "vmdevicehost" fn HdvCreateGuestMemoryAperture( requestor: ?*anyopaque, guestPhysicalAddress: u64, byteCount: u32, writeProtected: BOOL, mappedAddress: ?*?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) HRESULT; pub extern "vmdevicehost" fn HdvDestroyGuestMemoryAperture( requestor: ?*anyopaque, mappedAddress: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) HRESULT; pub extern "vmdevicehost" fn HdvDeliverGuestInterrupt( requestor: ?*anyopaque, msiAddress: u64, msiData: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT; pub extern "vmdevicehost" fn HdvRegisterDoorbell( requestor: ?*anyopaque, BarIndex: HDV_PCI_BAR_SELECTOR, BarOffset: u64, TriggerValue: u64, Flags: u64, DoorbellEvent: ?HANDLE, ) callconv(@import("std").os.windows.WINAPI) HRESULT; pub extern "vmdevicehost" fn HdvUnregisterDoorbell( requestor: ?*anyopaque, BarIndex: HDV_PCI_BAR_SELECTOR, BarOffset: u64, TriggerValue: u64, Flags: u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT; pub extern "vmdevicehost" fn HdvCreateSectionBackedMmioRange( requestor: ?*anyopaque, barIndex: HDV_PCI_BAR_SELECTOR, offsetInPages: u64, lengthInPages: u64, MappingFlags: HDV_MMIO_MAPPING_FLAGS, sectionHandle: ?HANDLE, sectionOffsetInPages: u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT; pub extern "vmdevicehost" fn HdvDestroySectionBackedMmioRange( requestor: ?*anyopaque, barIndex: HDV_PCI_BAR_SELECTOR, offsetInPages: u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT; pub extern "vmsavedstatedumpprovider" fn LocateSavedStateFiles( vmName: ?[*:0]const u16, snapshotName: ?[*:0]const u16, binPath: ?*?PWSTR, vsvPath: ?*?PWSTR, vmrsPath: ?*?PWSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT; pub extern "vmsavedstatedumpprovider" fn LoadSavedStateFile( vmrsFile: ?[*:0]const u16, vmSavedStateDumpHandle: ?*?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) HRESULT; pub extern "vmsavedstatedumpprovider" fn ApplyPendingSavedStateFileReplayLog( vmrsFile: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT; pub extern "vmsavedstatedumpprovider" fn LoadSavedStateFiles( binFile: ?[*:0]const u16, vsvFile: ?[*:0]const u16, vmSavedStateDumpHandle: ?*?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) HRESULT; pub extern "vmsavedstatedumpprovider" fn ReleaseSavedStateFiles( vmSavedStateDumpHandle: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) HRESULT; pub extern "vmsavedstatedumpprovider" fn GetGuestEnabledVirtualTrustLevels( vmSavedStateDumpHandle: ?*anyopaque, virtualTrustLevels: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT; pub extern "vmsavedstatedumpprovider" fn GetGuestOsInfo( vmSavedStateDumpHandle: ?*anyopaque, virtualTrustLevel: u8, guestOsInfo: ?*GUEST_OS_INFO, ) callconv(@import("std").os.windows.WINAPI) HRESULT; pub extern "vmsavedstatedumpprovider" fn GetVpCount( vmSavedStateDumpHandle: ?*anyopaque, vpCount: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT; pub extern "vmsavedstatedumpprovider" fn GetArchitecture( vmSavedStateDumpHandle: ?*anyopaque, vpId: u32, architecture: ?*VIRTUAL_PROCESSOR_ARCH, ) callconv(@import("std").os.windows.WINAPI) HRESULT; pub extern "vmsavedstatedumpprovider" fn ForceArchitecture( vmSavedStateDumpHandle: ?*anyopaque, vpId: u32, architecture: VIRTUAL_PROCESSOR_ARCH, ) callconv(@import("std").os.windows.WINAPI) HRESULT; pub extern "vmsavedstatedumpprovider" fn GetActiveVirtualTrustLevel( vmSavedStateDumpHandle: ?*anyopaque, vpId: u32, virtualTrustLevel: ?*u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT; pub extern "vmsavedstatedumpprovider" fn GetEnabledVirtualTrustLevels( vmSavedStateDumpHandle: ?*anyopaque, vpId: u32, virtualTrustLevels: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT; pub extern "vmsavedstatedumpprovider" fn ForceActiveVirtualTrustLevel( vmSavedStateDumpHandle: ?*anyopaque, vpId: u32, virtualTrustLevel: u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT; pub extern "vmsavedstatedumpprovider" fn IsActiveVirtualTrustLevelEnabled( vmSavedStateDumpHandle: ?*anyopaque, vpId: u32, activeVirtualTrustLevelEnabled: ?*BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT; pub extern "vmsavedstatedumpprovider" fn IsNestedVirtualizationEnabled( vmSavedStateDumpHandle: ?*anyopaque, enabled: ?*BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT; pub extern "vmsavedstatedumpprovider" fn GetNestedVirtualizationMode( vmSavedStateDumpHandle: ?*anyopaque, vpId: u32, enabled: ?*BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT; pub extern "vmsavedstatedumpprovider" fn ForceNestedHostMode( vmSavedStateDumpHandle: ?*anyopaque, vpId: u32, hostMode: BOOL, oldMode: ?*BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT; pub extern "vmsavedstatedumpprovider" fn InKernelSpace( vmSavedStateDumpHandle: ?*anyopaque, vpId: u32, inKernelSpace: ?*BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT; pub extern "vmsavedstatedumpprovider" fn GetRegisterValue( vmSavedStateDumpHandle: ?*anyopaque, vpId: u32, registerId: u32, registerValue: ?*VIRTUAL_PROCESSOR_REGISTER, ) callconv(@import("std").os.windows.WINAPI) HRESULT; pub extern "vmsavedstatedumpprovider" fn GetPagingMode( vmSavedStateDumpHandle: ?*anyopaque, vpId: u32, pagingMode: ?*PAGING_MODE, ) callconv(@import("std").os.windows.WINAPI) HRESULT; pub extern "vmsavedstatedumpprovider" fn ForcePagingMode( vmSavedStateDumpHandle: ?*anyopaque, vpId: u32, pagingMode: PAGING_MODE, ) callconv(@import("std").os.windows.WINAPI) HRESULT; pub extern "vmsavedstatedumpprovider" fn ReadGuestPhysicalAddress( vmSavedStateDumpHandle: ?*anyopaque, physicalAddress: u64, // TODO: what to do with BytesParamIndex 3? buffer: ?*anyopaque, bufferSize: u32, bytesRead: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT; pub extern "vmsavedstatedumpprovider" fn GuestVirtualAddressToPhysicalAddress( vmSavedStateDumpHandle: ?*anyopaque, vpId: u32, virtualAddress: u64, physicalAddress: ?*u64, unmappedRegionSize: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT; pub extern "vmsavedstatedumpprovider" fn GetGuestPhysicalMemoryChunks( vmSavedStateDumpHandle: ?*anyopaque, memoryChunkPageSize: ?*u64, memoryChunks: ?*GPA_MEMORY_CHUNK, memoryChunkCount: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT; pub extern "vmsavedstatedumpprovider" fn GuestPhysicalAddressToRawSavedMemoryOffset( vmSavedStateDumpHandle: ?*anyopaque, physicalAddress: u64, rawSavedMemoryOffset: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT; pub extern "vmsavedstatedumpprovider" fn ReadGuestRawSavedMemory( vmSavedStateDumpHandle: ?*anyopaque, rawSavedMemoryOffset: u64, // TODO: what to do with BytesParamIndex 3? buffer: ?*anyopaque, bufferSize: u32, bytesRead: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT; pub extern "vmsavedstatedumpprovider" fn GetGuestRawSavedMemorySize( vmSavedStateDumpHandle: ?*anyopaque, guestRawSavedMemorySize: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT; pub extern "vmsavedstatedumpprovider" fn SetMemoryBlockCacheLimit( vmSavedStateDumpHandle: ?*anyopaque, memoryBlockCacheLimit: u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT; pub extern "vmsavedstatedumpprovider" fn GetMemoryBlockCacheLimit( vmSavedStateDumpHandle: ?*anyopaque, memoryBlockCacheLimit: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT; pub extern "vmsavedstatedumpprovider" fn ApplyGuestMemoryFix( vmSavedStateDumpHandle: ?*anyopaque, vpId: u32, virtualAddress: u64, fixBuffer: ?*anyopaque, fixBufferSize: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT; pub extern "vmsavedstatedumpprovider" fn LoadSavedStateSymbolProvider( vmSavedStateDumpHandle: ?*anyopaque, userSymbols: ?[*:0]const u16, force: BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT; pub extern "vmsavedstatedumpprovider" fn ReleaseSavedStateSymbolProvider( vmSavedStateDumpHandle: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) HRESULT; pub extern "vmsavedstatedumpprovider" fn GetSavedStateSymbolProviderHandle( vmSavedStateDumpHandle: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) ?HANDLE; pub extern "vmsavedstatedumpprovider" fn SetSavedStateSymbolProviderDebugInfoCallback( vmSavedStateDumpHandle: ?*anyopaque, Callback: ?GUEST_SYMBOLS_PROVIDER_DEBUG_INFO_CALLBACK, ) callconv(@import("std").os.windows.WINAPI) HRESULT; pub extern "vmsavedstatedumpprovider" fn LoadSavedStateModuleSymbols( vmSavedStateDumpHandle: ?*anyopaque, imageName: ?[*:0]const u8, moduleName: ?[*:0]const u8, baseAddress: u64, sizeOfBase: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT; pub extern "vmsavedstatedumpprovider" fn LoadSavedStateModuleSymbolsEx( vmSavedStateDumpHandle: ?*anyopaque, imageName: ?[*:0]const u8, imageTimestamp: u32, moduleName: ?[*:0]const u8, baseAddress: u64, sizeOfBase: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT; pub extern "vmsavedstatedumpprovider" fn ResolveSavedStateGlobalVariableAddress( vmSavedStateDumpHandle: ?*anyopaque, vpId: u32, globalName: ?[*:0]const u8, virtualAddress: ?*u64, size: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT; pub extern "vmsavedstatedumpprovider" fn ReadSavedStateGlobalVariable( vmSavedStateDumpHandle: ?*anyopaque, vpId: u32, globalName: ?[*:0]const u8, buffer: ?*anyopaque, bufferSize: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT; pub extern "vmsavedstatedumpprovider" fn GetSavedStateSymbolTypeSize( vmSavedStateDumpHandle: ?*anyopaque, vpId: u32, typeName: ?[*:0]const u8, size: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT; pub extern "vmsavedstatedumpprovider" fn FindSavedStateSymbolFieldInType( vmSavedStateDumpHandle: ?*anyopaque, vpId: u32, typeName: ?[*:0]const u8, fieldName: ?[*:0]const u16, offset: ?*u32, found: ?*BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT; pub extern "vmsavedstatedumpprovider" fn GetSavedStateSymbolFieldInfo( vmSavedStateDumpHandle: ?*anyopaque, vpId: u32, typeName: ?[*:0]const u8, typeFieldInfoMap: ?*?PWSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT; pub extern "vmsavedstatedumpprovider" fn ScanMemoryForDosImages( vmSavedStateDumpHandle: ?*anyopaque, vpId: u32, startAddress: u64, endAddress: u64, callbackContext: ?*anyopaque, foundImageCallback: ?FOUND_IMAGE_CALLBACK, standaloneAddress: ?*u64, standaloneAddressCount: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT; pub extern "vmsavedstatedumpprovider" fn CallStackUnwind( vmSavedStateDumpHandle: ?*anyopaque, vpId: u32, imageInfo: ?*MODULE_INFO, imageInfoCount: u32, frameCount: u32, callStack: ?*?PWSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT; //-------------------------------------------------------------------------------- // Section: Unicode Aliases (0) //-------------------------------------------------------------------------------- const thismodule = @This(); pub usingnamespace switch (@import("../zig.zig").unicode_mode) { .ansi => struct {}, .wide => struct {}, .unspecified => if (@import("builtin").is_test) struct {} else struct {}, }; //-------------------------------------------------------------------------------- // Section: Imports (9) //-------------------------------------------------------------------------------- const Guid = @import("../zig.zig").Guid; const BOOL = @import("../foundation.zig").BOOL; const DEVICE_POWER_STATE = @import("../system/power.zig").DEVICE_POWER_STATE; const HANDLE = @import("../foundation.zig").HANDLE; const HCS_SYSTEM = @import("../system/host_compute_system.zig").HCS_SYSTEM; const HRESULT = @import("../foundation.zig").HRESULT; const LUID = @import("../foundation.zig").LUID; const PSTR = @import("../foundation.zig").PSTR; const PWSTR = @import("../foundation.zig").PWSTR; test { // The following '_ = <FuncPtrType>' lines are a workaround for https://github.com/ziglang/zig/issues/4476 if (@hasDecl(@This(), "WHV_EMULATOR_IO_PORT_CALLBACK")) { _ = WHV_EMULATOR_IO_PORT_CALLBACK; } if (@hasDecl(@This(), "WHV_EMULATOR_MEMORY_CALLBACK")) { _ = WHV_EMULATOR_MEMORY_CALLBACK; } if (@hasDecl(@This(), "WHV_EMULATOR_GET_VIRTUAL_PROCESSOR_REGISTERS_CALLBACK")) { _ = WHV_EMULATOR_GET_VIRTUAL_PROCESSOR_REGISTERS_CALLBACK; } if (@hasDecl(@This(), "WHV_EMULATOR_SET_VIRTUAL_PROCESSOR_REGISTERS_CALLBACK")) { _ = WHV_EMULATOR_SET_VIRTUAL_PROCESSOR_REGISTERS_CALLBACK; } if (@hasDecl(@This(), "WHV_EMULATOR_TRANSLATE_GVA_PAGE_CALLBACK")) { _ = WHV_EMULATOR_TRANSLATE_GVA_PAGE_CALLBACK; } if (@hasDecl(@This(), "HDV_PCI_DEVICE_INITIALIZE")) { _ = HDV_PCI_DEVICE_INITIALIZE; } if (@hasDecl(@This(), "HDV_PCI_DEVICE_TEARDOWN")) { _ = HDV_PCI_DEVICE_TEARDOWN; } if (@hasDecl(@This(), "HDV_PCI_DEVICE_SET_CONFIGURATION")) { _ = HDV_PCI_DEVICE_SET_CONFIGURATION; } if (@hasDecl(@This(), "HDV_PCI_DEVICE_GET_DETAILS")) { _ = HDV_PCI_DEVICE_GET_DETAILS; } if (@hasDecl(@This(), "HDV_PCI_DEVICE_START")) { _ = HDV_PCI_DEVICE_START; } if (@hasDecl(@This(), "HDV_PCI_DEVICE_STOP")) { _ = HDV_PCI_DEVICE_STOP; } if (@hasDecl(@This(), "HDV_PCI_READ_CONFIG_SPACE")) { _ = HDV_PCI_READ_CONFIG_SPACE; } if (@hasDecl(@This(), "HDV_PCI_WRITE_CONFIG_SPACE")) { _ = HDV_PCI_WRITE_CONFIG_SPACE; } if (@hasDecl(@This(), "HDV_PCI_READ_INTERCEPTED_MEMORY")) { _ = HDV_PCI_READ_INTERCEPTED_MEMORY; } if (@hasDecl(@This(), "HDV_PCI_WRITE_INTERCEPTED_MEMORY")) { _ = HDV_PCI_WRITE_INTERCEPTED_MEMORY; } if (@hasDecl(@This(), "GUEST_SYMBOLS_PROVIDER_DEBUG_INFO_CALLBACK")) { _ = GUEST_SYMBOLS_PROVIDER_DEBUG_INFO_CALLBACK; } if (@hasDecl(@This(), "FOUND_IMAGE_CALLBACK")) { _ = FOUND_IMAGE_CALLBACK; } @setEvalBranchQuota(comptime @import("std").meta.declarations(@This()).len * 3); // reference all the pub declarations if (!@import("builtin").is_test) return; inline for (comptime @import("std").meta.declarations(@This())) |decl| { if (decl.is_pub) { _ = @field(@This(), decl.name); } } }
0
repos/capy/vendor/zigwin32/win32
repos/capy/vendor/zigwin32/win32/system/setup_and_migration.zig
//! NOTE: this file is autogenerated, DO NOT MODIFY //-------------------------------------------------------------------------------- // Section: Constants (0) //-------------------------------------------------------------------------------- //-------------------------------------------------------------------------------- // Section: Types (1) //-------------------------------------------------------------------------------- pub const OOBE_COMPLETED_CALLBACK = switch (@import("builtin").zig_backend) { .stage1 => fn ( CallbackContext: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) void, else => *const fn ( CallbackContext: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) void, }; //-------------------------------------------------------------------------------- // Section: Functions (3) //-------------------------------------------------------------------------------- pub extern "kernel32" fn OOBEComplete( isOOBEComplete: ?*BOOL, ) callconv(@import("std").os.windows.WINAPI) BOOL; pub extern "kernel32" fn RegisterWaitUntilOOBECompleted( OOBECompletedCallback: ?OOBE_COMPLETED_CALLBACK, CallbackContext: ?*anyopaque, WaitHandle: ?*?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) BOOL; pub extern "kernel32" fn UnregisterWaitUntilOOBECompleted( WaitHandle: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) BOOL; //-------------------------------------------------------------------------------- // Section: Unicode Aliases (0) //-------------------------------------------------------------------------------- const thismodule = @This(); pub usingnamespace switch (@import("../zig.zig").unicode_mode) { .ansi => struct {}, .wide => struct {}, .unspecified => if (@import("builtin").is_test) struct {} else struct {}, }; //-------------------------------------------------------------------------------- // Section: Imports (1) //-------------------------------------------------------------------------------- const BOOL = @import("../foundation.zig").BOOL; test { // The following '_ = <FuncPtrType>' lines are a workaround for https://github.com/ziglang/zig/issues/4476 if (@hasDecl(@This(), "OOBE_COMPLETED_CALLBACK")) { _ = OOBE_COMPLETED_CALLBACK; } @setEvalBranchQuota(comptime @import("std").meta.declarations(@This()).len * 3); // reference all the pub declarations if (!@import("builtin").is_test) return; inline for (comptime @import("std").meta.declarations(@This())) |decl| { if (decl.is_pub) { _ = @field(@This(), decl.name); } } }
0
repos/capy/vendor/zigwin32/win32
repos/capy/vendor/zigwin32/win32/system/group_policy.zig
//! NOTE: this file is autogenerated, DO NOT MODIFY //-------------------------------------------------------------------------------- // Section: Constants (91) //-------------------------------------------------------------------------------- pub const GPM_USE_PDC = @as(u32, 0); pub const GPM_USE_ANYDC = @as(u32, 1); pub const GPM_DONOTUSE_W2KDC = @as(u32, 2); pub const GPM_DONOT_VALIDATEDC = @as(u32, 1); pub const GPM_MIGRATIONTABLE_ONLY = @as(u32, 1); pub const GPM_PROCESS_SECURITY = @as(u32, 2); pub const RSOP_NO_COMPUTER = @as(u32, 65536); pub const RSOP_NO_USER = @as(u32, 131072); pub const RSOP_PLANNING_ASSUME_SLOW_LINK = @as(u32, 1); pub const RSOP_PLANNING_ASSUME_LOOPBACK_MERGE = @as(u32, 2); pub const RSOP_PLANNING_ASSUME_LOOPBACK_REPLACE = @as(u32, 4); pub const RSOP_PLANNING_ASSUME_USER_WQLFILTER_TRUE = @as(u32, 8); pub const RSOP_PLANNING_ASSUME_COMP_WQLFILTER_TRUE = @as(u32, 16); pub const PI_NOUI = @as(u32, 1); pub const PI_APPLYPOLICY = @as(u32, 2); pub const PT_TEMPORARY = @as(u32, 1); pub const PT_ROAMING = @as(u32, 2); pub const PT_MANDATORY = @as(u32, 4); pub const PT_ROAMING_PREEXISTING = @as(u32, 8); pub const RP_FORCE = @as(u32, 1); pub const RP_SYNC = @as(u32, 2); pub const GPC_BLOCK_POLICY = @as(u32, 1); pub const GPO_FLAG_DISABLE = @as(u32, 1); pub const GPO_FLAG_FORCE = @as(u32, 2); pub const GPO_LIST_FLAG_MACHINE = @as(u32, 1); pub const GPO_LIST_FLAG_SITEONLY = @as(u32, 2); pub const GPO_LIST_FLAG_NO_WMIFILTERS = @as(u32, 4); pub const GPO_LIST_FLAG_NO_SECURITYFILTERS = @as(u32, 8); pub const GPO_INFO_FLAG_MACHINE = @as(u32, 1); pub const GPO_INFO_FLAG_BACKGROUND = @as(u32, 16); pub const GPO_INFO_FLAG_SLOWLINK = @as(u32, 32); pub const GPO_INFO_FLAG_VERBOSE = @as(u32, 64); pub const GPO_INFO_FLAG_NOCHANGES = @as(u32, 128); pub const GPO_INFO_FLAG_LINKTRANSITION = @as(u32, 256); pub const GPO_INFO_FLAG_LOGRSOP_TRANSITION = @as(u32, 512); pub const GPO_INFO_FLAG_FORCED_REFRESH = @as(u32, 1024); pub const GPO_INFO_FLAG_SAFEMODE_BOOT = @as(u32, 2048); pub const GPO_INFO_FLAG_ASYNC_FOREGROUND = @as(u32, 4096); pub const FLAG_NO_GPO_FILTER = @as(u32, 2147483648); pub const FLAG_NO_CSE_INVOKE = @as(u32, 1073741824); pub const FLAG_ASSUME_SLOW_LINK = @as(u32, 536870912); pub const FLAG_LOOPBACK_MERGE = @as(u32, 268435456); pub const FLAG_LOOPBACK_REPLACE = @as(u32, 134217728); pub const FLAG_ASSUME_USER_WQLFILTER_TRUE = @as(u32, 67108864); pub const FLAG_ASSUME_COMP_WQLFILTER_TRUE = @as(u32, 33554432); pub const FLAG_PLANNING_MODE = @as(u32, 16777216); pub const FLAG_NO_USER = @as(u32, 1); pub const FLAG_NO_COMPUTER = @as(u32, 2); pub const FLAG_FORCE_CREATENAMESPACE = @as(u32, 4); pub const RSOP_USER_ACCESS_DENIED = @as(u32, 1); pub const RSOP_COMPUTER_ACCESS_DENIED = @as(u32, 2); pub const RSOP_TEMPNAMESPACE_EXISTS = @as(u32, 4); pub const LOCALSTATE_ASSIGNED = @as(u32, 1); pub const LOCALSTATE_PUBLISHED = @as(u32, 2); pub const LOCALSTATE_UNINSTALL_UNMANAGED = @as(u32, 4); pub const LOCALSTATE_POLICYREMOVE_ORPHAN = @as(u32, 8); pub const LOCALSTATE_POLICYREMOVE_UNINSTALL = @as(u32, 16); pub const LOCALSTATE_ORPHANED = @as(u32, 32); pub const LOCALSTATE_UNINSTALLED = @as(u32, 64); pub const MANAGED_APPS_USERAPPLICATIONS = @as(u32, 1); pub const MANAGED_APPS_FROMCATEGORY = @as(u32, 2); pub const MANAGED_APPS_INFOLEVEL_DEFAULT = @as(u32, 65536); pub const MANAGED_APPTYPE_WINDOWSINSTALLER = @as(u32, 1); pub const MANAGED_APPTYPE_SETUPEXE = @as(u32, 2); pub const MANAGED_APPTYPE_UNSUPPORTED = @as(u32, 3); pub const CLSID_GPESnapIn = Guid.initString("8fc0b734-a0e1-11d1-a7d3-0000f87571e3"); pub const NODEID_Machine = Guid.initString("8fc0b737-a0e1-11d1-a7d3-0000f87571e3"); pub const NODEID_MachineSWSettings = Guid.initString("8fc0b73a-a0e1-11d1-a7d3-0000f87571e3"); pub const NODEID_User = Guid.initString("8fc0b738-a0e1-11d1-a7d3-0000f87571e3"); pub const NODEID_UserSWSettings = Guid.initString("8fc0b73c-a0e1-11d1-a7d3-0000f87571e3"); pub const CLSID_GroupPolicyObject = Guid.initString("ea502722-a23d-11d1-a7d3-0000f87571e3"); pub const CLSID_RSOPSnapIn = Guid.initString("6dc3804b-7212-458d-adb0-9a07e2ae1fa2"); pub const NODEID_RSOPMachine = Guid.initString("bd4c1a2e-0b7a-4a62-a6b0-c0577539c97e"); pub const NODEID_RSOPMachineSWSettings = Guid.initString("6a76273e-eb8e-45db-94c5-25663a5f2c1a"); pub const NODEID_RSOPUser = Guid.initString("ab87364f-0cec-4cd8-9bf8-898f34628fb8"); pub const NODEID_RSOPUserSWSettings = Guid.initString("e52c5ce3-fd27-4402-84de-d9a5f2858910"); pub const GPO_SECTION_ROOT = @as(u32, 0); pub const GPO_SECTION_USER = @as(u32, 1); pub const GPO_SECTION_MACHINE = @as(u32, 2); pub const GPO_OPEN_LOAD_REGISTRY = @as(u32, 1); pub const GPO_OPEN_READ_ONLY = @as(u32, 2); pub const GPO_OPTION_DISABLE_USER = @as(u32, 1); pub const GPO_OPTION_DISABLE_MACHINE = @as(u32, 2); pub const RSOP_INFO_FLAG_DIAGNOSTIC_MODE = @as(u32, 1); pub const GPO_BROWSE_DISABLENEW = @as(u32, 1); pub const GPO_BROWSE_NOCOMPUTERS = @as(u32, 2); pub const GPO_BROWSE_NODSGPOS = @as(u32, 4); pub const GPO_BROWSE_OPENBUTTON = @as(u32, 8); pub const GPO_BROWSE_INITTOALL = @as(u32, 16); pub const GPO_BROWSE_NOUSERGPOS = @as(u32, 32); pub const GPO_BROWSE_SENDAPPLYONEDIT = @as(u32, 64); //-------------------------------------------------------------------------------- // Section: Types (109) //-------------------------------------------------------------------------------- // TODO: this type has a FreeFunc 'LeaveCriticalPolicySection', what can Zig do with this information? pub const CriticalPolicySectionHandle = isize; const CLSID_GPM_Value = Guid.initString("f5694708-88fe-4b35-babf-e56162d5fbc8"); pub const CLSID_GPM = &CLSID_GPM_Value; const CLSID_GPMDomain_Value = Guid.initString("710901be-1050-4cb1-838a-c5cff259e183"); pub const CLSID_GPMDomain = &CLSID_GPMDomain_Value; const CLSID_GPMSitesContainer_Value = Guid.initString("229f5c42-852c-4b30-945f-c522be9bd386"); pub const CLSID_GPMSitesContainer = &CLSID_GPMSitesContainer_Value; const CLSID_GPMBackupDir_Value = Guid.initString("fce4a59d-0f21-4afa-b859-e6d0c62cd10c"); pub const CLSID_GPMBackupDir = &CLSID_GPMBackupDir_Value; const CLSID_GPMSOM_Value = Guid.initString("32d93fac-450e-44cf-829c-8b22ff6bdae1"); pub const CLSID_GPMSOM = &CLSID_GPMSOM_Value; const CLSID_GPMSearchCriteria_Value = Guid.initString("17aaca26-5ce0-44fa-8cc0-5259e6483566"); pub const CLSID_GPMSearchCriteria = &CLSID_GPMSearchCriteria_Value; const CLSID_GPMPermission_Value = Guid.initString("5871a40a-e9c0-46ec-913e-944ef9225a94"); pub const CLSID_GPMPermission = &CLSID_GPMPermission_Value; const CLSID_GPMSecurityInfo_Value = Guid.initString("547a5e8f-9162-4516-a4df-9ddb9686d846"); pub const CLSID_GPMSecurityInfo = &CLSID_GPMSecurityInfo_Value; const CLSID_GPMBackup_Value = Guid.initString("ed1a54b8-5efa-482a-93c0-8ad86f0d68c3"); pub const CLSID_GPMBackup = &CLSID_GPMBackup_Value; const CLSID_GPMBackupCollection_Value = Guid.initString("eb8f035b-70db-4a9f-9676-37c25994e9dc"); pub const CLSID_GPMBackupCollection = &CLSID_GPMBackupCollection_Value; const CLSID_GPMSOMCollection_Value = Guid.initString("24c1f147-3720-4f5b-a9c3-06b4e4f931d2"); pub const CLSID_GPMSOMCollection = &CLSID_GPMSOMCollection_Value; const CLSID_GPMWMIFilter_Value = Guid.initString("626745d8-0dea-4062-bf60-cfc5b1ca1286"); pub const CLSID_GPMWMIFilter = &CLSID_GPMWMIFilter_Value; const CLSID_GPMWMIFilterCollection_Value = Guid.initString("74dc6d28-e820-47d6-a0b8-f08d93d7fa33"); pub const CLSID_GPMWMIFilterCollection = &CLSID_GPMWMIFilterCollection_Value; const CLSID_GPMRSOP_Value = Guid.initString("489b0caf-9ec2-4eb7-91f5-b6f71d43da8c"); pub const CLSID_GPMRSOP = &CLSID_GPMRSOP_Value; const CLSID_GPMGPO_Value = Guid.initString("d2ce2994-59b5-4064-b581-4d68486a16c4"); pub const CLSID_GPMGPO = &CLSID_GPMGPO_Value; const CLSID_GPMGPOCollection_Value = Guid.initString("7a057325-832d-4de3-a41f-c780436a4e09"); pub const CLSID_GPMGPOCollection = &CLSID_GPMGPOCollection_Value; const CLSID_GPMGPOLink_Value = Guid.initString("c1df9880-5303-42c6-8a3c-0488e1bf7364"); pub const CLSID_GPMGPOLink = &CLSID_GPMGPOLink_Value; const CLSID_GPMGPOLinksCollection_Value = Guid.initString("f6ed581a-49a5-47e2-b771-fd8dc02b6259"); pub const CLSID_GPMGPOLinksCollection = &CLSID_GPMGPOLinksCollection_Value; const CLSID_GPMAsyncCancel_Value = Guid.initString("372796a9-76ec-479d-ad6c-556318ed5f9d"); pub const CLSID_GPMAsyncCancel = &CLSID_GPMAsyncCancel_Value; const CLSID_GPMStatusMsgCollection_Value = Guid.initString("2824e4be-4bcc-4cac-9e60-0e3ed7f12496"); pub const CLSID_GPMStatusMsgCollection = &CLSID_GPMStatusMsgCollection_Value; const CLSID_GPMStatusMessage_Value = Guid.initString("4b77cc94-d255-409b-bc62-370881715a19"); pub const CLSID_GPMStatusMessage = &CLSID_GPMStatusMessage_Value; const CLSID_GPMTrustee_Value = Guid.initString("c54a700d-19b6-4211-bcb0-e8e2475e471e"); pub const CLSID_GPMTrustee = &CLSID_GPMTrustee_Value; const CLSID_GPMClientSideExtension_Value = Guid.initString("c1a2e70e-659c-4b1a-940b-f88b0af9c8a4"); pub const CLSID_GPMClientSideExtension = &CLSID_GPMClientSideExtension_Value; const CLSID_GPMCSECollection_Value = Guid.initString("cf92b828-2d44-4b61-b10a-b327afd42da8"); pub const CLSID_GPMCSECollection = &CLSID_GPMCSECollection_Value; const CLSID_GPMConstants_Value = Guid.initString("3855e880-cd9e-4d0c-9eaf-1579283a1888"); pub const CLSID_GPMConstants = &CLSID_GPMConstants_Value; const CLSID_GPMResult_Value = Guid.initString("92101ac0-9287-4206-a3b2-4bdb73d225f6"); pub const CLSID_GPMResult = &CLSID_GPMResult_Value; const CLSID_GPMMapEntryCollection_Value = Guid.initString("0cf75d5b-a3a1-4c55-b4fe-9e149c41f66d"); pub const CLSID_GPMMapEntryCollection = &CLSID_GPMMapEntryCollection_Value; const CLSID_GPMMapEntry_Value = Guid.initString("8c975253-5431-4471-b35d-0626c928258a"); pub const CLSID_GPMMapEntry = &CLSID_GPMMapEntry_Value; const CLSID_GPMMigrationTable_Value = Guid.initString("55af4043-2a06-4f72-abef-631b44079c76"); pub const CLSID_GPMMigrationTable = &CLSID_GPMMigrationTable_Value; const CLSID_GPMBackupDirEx_Value = Guid.initString("e8c0988a-cf03-4c5b-8be2-2aa9ad32aada"); pub const CLSID_GPMBackupDirEx = &CLSID_GPMBackupDirEx_Value; const CLSID_GPMStarterGPOBackupCollection_Value = Guid.initString("e75ea59d-1aeb-4cb5-a78a-281daa582406"); pub const CLSID_GPMStarterGPOBackupCollection = &CLSID_GPMStarterGPOBackupCollection_Value; const CLSID_GPMStarterGPOBackup_Value = Guid.initString("389e400a-d8ef-455b-a861-5f9ca34a6a02"); pub const CLSID_GPMStarterGPOBackup = &CLSID_GPMStarterGPOBackup_Value; const CLSID_GPMTemplate_Value = Guid.initString("ecf1d454-71da-4e2f-a8c0-8185465911d9"); pub const CLSID_GPMTemplate = &CLSID_GPMTemplate_Value; const CLSID_GPMStarterGPOCollection_Value = Guid.initString("82f8aa8b-49ba-43b2-956e-3397f9b94c3a"); pub const CLSID_GPMStarterGPOCollection = &CLSID_GPMStarterGPOCollection_Value; pub const GPMRSOPMode = enum(i32) { Unknown = 0, Planning = 1, Logging = 2, }; pub const rsopUnknown = GPMRSOPMode.Unknown; pub const rsopPlanning = GPMRSOPMode.Planning; pub const rsopLogging = GPMRSOPMode.Logging; pub const GPMPermissionType = enum(i32) { GPOApply = 65536, GPORead = 65792, GPOEdit = 65793, GPOEditSecurityAndDelete = 65794, GPOCustom = 65795, WMIFilterEdit = 131072, WMIFilterFullControl = 131073, WMIFilterCustom = 131074, SOMLink = 1835008, SOMLogging = 1573120, SOMPlanning = 1573376, SOMWMICreate = 1049344, SOMWMIFullControl = 1049345, SOMGPOCreate = 1049600, StarterGPORead = 197888, StarterGPOEdit = 197889, StarterGPOFullControl = 197890, StarterGPOCustom = 197891, SOMStarterGPOCreate = 1049856, }; pub const permGPOApply = GPMPermissionType.GPOApply; pub const permGPORead = GPMPermissionType.GPORead; pub const permGPOEdit = GPMPermissionType.GPOEdit; pub const permGPOEditSecurityAndDelete = GPMPermissionType.GPOEditSecurityAndDelete; pub const permGPOCustom = GPMPermissionType.GPOCustom; pub const permWMIFilterEdit = GPMPermissionType.WMIFilterEdit; pub const permWMIFilterFullControl = GPMPermissionType.WMIFilterFullControl; pub const permWMIFilterCustom = GPMPermissionType.WMIFilterCustom; pub const permSOMLink = GPMPermissionType.SOMLink; pub const permSOMLogging = GPMPermissionType.SOMLogging; pub const permSOMPlanning = GPMPermissionType.SOMPlanning; pub const permSOMWMICreate = GPMPermissionType.SOMWMICreate; pub const permSOMWMIFullControl = GPMPermissionType.SOMWMIFullControl; pub const permSOMGPOCreate = GPMPermissionType.SOMGPOCreate; pub const permStarterGPORead = GPMPermissionType.StarterGPORead; pub const permStarterGPOEdit = GPMPermissionType.StarterGPOEdit; pub const permStarterGPOFullControl = GPMPermissionType.StarterGPOFullControl; pub const permStarterGPOCustom = GPMPermissionType.StarterGPOCustom; pub const permSOMStarterGPOCreate = GPMPermissionType.SOMStarterGPOCreate; pub const GPMSearchProperty = enum(i32) { gpoPermissions = 0, gpoEffectivePermissions = 1, gpoDisplayName = 2, gpoWMIFilter = 3, gpoID = 4, gpoComputerExtensions = 5, gpoUserExtensions = 6, somLinks = 7, gpoDomain = 8, backupMostRecent = 9, starterGPOPermissions = 10, starterGPOEffectivePermissions = 11, starterGPODisplayName = 12, starterGPOID = 13, starterGPODomain = 14, }; pub const gpoPermissions = GPMSearchProperty.gpoPermissions; pub const gpoEffectivePermissions = GPMSearchProperty.gpoEffectivePermissions; pub const gpoDisplayName = GPMSearchProperty.gpoDisplayName; pub const gpoWMIFilter = GPMSearchProperty.gpoWMIFilter; pub const gpoID = GPMSearchProperty.gpoID; pub const gpoComputerExtensions = GPMSearchProperty.gpoComputerExtensions; pub const gpoUserExtensions = GPMSearchProperty.gpoUserExtensions; pub const somLinks = GPMSearchProperty.somLinks; pub const gpoDomain = GPMSearchProperty.gpoDomain; pub const backupMostRecent = GPMSearchProperty.backupMostRecent; pub const starterGPOPermissions = GPMSearchProperty.starterGPOPermissions; pub const starterGPOEffectivePermissions = GPMSearchProperty.starterGPOEffectivePermissions; pub const starterGPODisplayName = GPMSearchProperty.starterGPODisplayName; pub const starterGPOID = GPMSearchProperty.starterGPOID; pub const starterGPODomain = GPMSearchProperty.starterGPODomain; pub const GPMSearchOperation = enum(i32) { Equals = 0, Contains = 1, NotContains = 2, NotEquals = 3, }; pub const opEquals = GPMSearchOperation.Equals; pub const opContains = GPMSearchOperation.Contains; pub const opNotContains = GPMSearchOperation.NotContains; pub const opNotEquals = GPMSearchOperation.NotEquals; pub const GPMReportType = enum(i32) { XML = 0, HTML = 1, InfraXML = 2, InfraRefreshXML = 3, ClientHealthXML = 4, ClientHealthRefreshXML = 5, }; pub const repXML = GPMReportType.XML; pub const repHTML = GPMReportType.HTML; pub const repInfraXML = GPMReportType.InfraXML; pub const repInfraRefreshXML = GPMReportType.InfraRefreshXML; pub const repClientHealthXML = GPMReportType.ClientHealthXML; pub const repClientHealthRefreshXML = GPMReportType.ClientHealthRefreshXML; pub const GPMEntryType = enum(i32) { User = 0, Computer = 1, LocalGroup = 2, GlobalGroup = 3, UniversalGroup = 4, UNCPath = 5, Unknown = 6, }; pub const typeUser = GPMEntryType.User; pub const typeComputer = GPMEntryType.Computer; pub const typeLocalGroup = GPMEntryType.LocalGroup; pub const typeGlobalGroup = GPMEntryType.GlobalGroup; pub const typeUniversalGroup = GPMEntryType.UniversalGroup; pub const typeUNCPath = GPMEntryType.UNCPath; pub const typeUnknown = GPMEntryType.Unknown; pub const GPMDestinationOption = enum(i32) { SameAsSource = 0, None = 1, ByRelativeName = 2, Set = 3, }; pub const opDestinationSameAsSource = GPMDestinationOption.SameAsSource; pub const opDestinationNone = GPMDestinationOption.None; pub const opDestinationByRelativeName = GPMDestinationOption.ByRelativeName; pub const opDestinationSet = GPMDestinationOption.Set; pub const GPMReportingOptions = enum(i32) { Legacy = 0, Comments = 1, }; pub const opReportLegacy = GPMReportingOptions.Legacy; pub const opReportComments = GPMReportingOptions.Comments; // TODO: this type is limited to platform 'windows6.0.6000' const IID_IGPM_Value = Guid.initString("f5fae809-3bd6-4da9-a65e-17665b41d763"); pub const IID_IGPM = &IID_IGPM_Value; pub const IGPM = extern struct { pub const VTable = extern struct { base: IDispatch.VTable, GetDomain: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IGPM, bstrDomain: ?BSTR, bstrDomainController: ?BSTR, lDCFlags: i32, pIGPMDomain: ?*?*IGPMDomain, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IGPM, bstrDomain: ?BSTR, bstrDomainController: ?BSTR, lDCFlags: i32, pIGPMDomain: ?*?*IGPMDomain, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetBackupDir: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IGPM, bstrBackupDir: ?BSTR, pIGPMBackupDir: ?*?*IGPMBackupDir, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IGPM, bstrBackupDir: ?BSTR, pIGPMBackupDir: ?*?*IGPMBackupDir, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetSitesContainer: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IGPM, bstrForest: ?BSTR, bstrDomain: ?BSTR, bstrDomainController: ?BSTR, lDCFlags: i32, ppIGPMSitesContainer: ?*?*IGPMSitesContainer, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IGPM, bstrForest: ?BSTR, bstrDomain: ?BSTR, bstrDomainController: ?BSTR, lDCFlags: i32, ppIGPMSitesContainer: ?*?*IGPMSitesContainer, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetRSOP: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IGPM, gpmRSoPMode: GPMRSOPMode, bstrNamespace: ?BSTR, lFlags: i32, ppIGPMRSOP: ?*?*IGPMRSOP, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IGPM, gpmRSoPMode: GPMRSOPMode, bstrNamespace: ?BSTR, lFlags: i32, ppIGPMRSOP: ?*?*IGPMRSOP, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, CreatePermission: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IGPM, bstrTrustee: ?BSTR, perm: GPMPermissionType, bInheritable: i16, ppPerm: ?*?*IGPMPermission, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IGPM, bstrTrustee: ?BSTR, perm: GPMPermissionType, bInheritable: i16, ppPerm: ?*?*IGPMPermission, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, CreateSearchCriteria: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IGPM, ppIGPMSearchCriteria: ?*?*IGPMSearchCriteria, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IGPM, ppIGPMSearchCriteria: ?*?*IGPMSearchCriteria, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, CreateTrustee: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IGPM, bstrTrustee: ?BSTR, ppIGPMTrustee: ?*?*IGPMTrustee, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IGPM, bstrTrustee: ?BSTR, ppIGPMTrustee: ?*?*IGPMTrustee, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetClientSideExtensions: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IGPM, ppIGPMCSECollection: ?*?*IGPMCSECollection, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IGPM, ppIGPMCSECollection: ?*?*IGPMCSECollection, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetConstants: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IGPM, ppIGPMConstants: ?*?*IGPMConstants, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IGPM, ppIGPMConstants: ?*?*IGPMConstants, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetMigrationTable: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IGPM, bstrMigrationTablePath: ?BSTR, ppMigrationTable: ?*?*IGPMMigrationTable, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IGPM, bstrMigrationTablePath: ?BSTR, ppMigrationTable: ?*?*IGPMMigrationTable, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, CreateMigrationTable: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IGPM, ppMigrationTable: ?*?*IGPMMigrationTable, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IGPM, ppMigrationTable: ?*?*IGPMMigrationTable, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, InitializeReporting: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IGPM, bstrAdmPath: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IGPM, bstrAdmPath: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IDispatch.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IGPM_GetDomain(self: *const T, bstrDomain: ?BSTR, bstrDomainController: ?BSTR, lDCFlags: i32, pIGPMDomain: ?*?*IGPMDomain) HRESULT { return @as(*const IGPM.VTable, @ptrCast(self.vtable)).GetDomain(@as(*const IGPM, @ptrCast(self)), bstrDomain, bstrDomainController, lDCFlags, pIGPMDomain); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IGPM_GetBackupDir(self: *const T, bstrBackupDir: ?BSTR, pIGPMBackupDir: ?*?*IGPMBackupDir) HRESULT { return @as(*const IGPM.VTable, @ptrCast(self.vtable)).GetBackupDir(@as(*const IGPM, @ptrCast(self)), bstrBackupDir, pIGPMBackupDir); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IGPM_GetSitesContainer(self: *const T, bstrForest: ?BSTR, bstrDomain: ?BSTR, bstrDomainController: ?BSTR, lDCFlags: i32, ppIGPMSitesContainer: ?*?*IGPMSitesContainer) HRESULT { return @as(*const IGPM.VTable, @ptrCast(self.vtable)).GetSitesContainer(@as(*const IGPM, @ptrCast(self)), bstrForest, bstrDomain, bstrDomainController, lDCFlags, ppIGPMSitesContainer); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IGPM_GetRSOP(self: *const T, gpmRSoPMode: GPMRSOPMode, bstrNamespace: ?BSTR, lFlags: i32, ppIGPMRSOP: ?*?*IGPMRSOP) HRESULT { return @as(*const IGPM.VTable, @ptrCast(self.vtable)).GetRSOP(@as(*const IGPM, @ptrCast(self)), gpmRSoPMode, bstrNamespace, lFlags, ppIGPMRSOP); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IGPM_CreatePermission(self: *const T, bstrTrustee: ?BSTR, perm: GPMPermissionType, bInheritable: i16, ppPerm: ?*?*IGPMPermission) HRESULT { return @as(*const IGPM.VTable, @ptrCast(self.vtable)).CreatePermission(@as(*const IGPM, @ptrCast(self)), bstrTrustee, perm, bInheritable, ppPerm); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IGPM_CreateSearchCriteria(self: *const T, ppIGPMSearchCriteria: ?*?*IGPMSearchCriteria) HRESULT { return @as(*const IGPM.VTable, @ptrCast(self.vtable)).CreateSearchCriteria(@as(*const IGPM, @ptrCast(self)), ppIGPMSearchCriteria); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IGPM_CreateTrustee(self: *const T, bstrTrustee: ?BSTR, ppIGPMTrustee: ?*?*IGPMTrustee) HRESULT { return @as(*const IGPM.VTable, @ptrCast(self.vtable)).CreateTrustee(@as(*const IGPM, @ptrCast(self)), bstrTrustee, ppIGPMTrustee); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IGPM_GetClientSideExtensions(self: *const T, ppIGPMCSECollection: ?*?*IGPMCSECollection) HRESULT { return @as(*const IGPM.VTable, @ptrCast(self.vtable)).GetClientSideExtensions(@as(*const IGPM, @ptrCast(self)), ppIGPMCSECollection); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IGPM_GetConstants(self: *const T, ppIGPMConstants: ?*?*IGPMConstants) HRESULT { return @as(*const IGPM.VTable, @ptrCast(self.vtable)).GetConstants(@as(*const IGPM, @ptrCast(self)), ppIGPMConstants); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IGPM_GetMigrationTable(self: *const T, bstrMigrationTablePath: ?BSTR, ppMigrationTable: ?*?*IGPMMigrationTable) HRESULT { return @as(*const IGPM.VTable, @ptrCast(self.vtable)).GetMigrationTable(@as(*const IGPM, @ptrCast(self)), bstrMigrationTablePath, ppMigrationTable); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IGPM_CreateMigrationTable(self: *const T, ppMigrationTable: ?*?*IGPMMigrationTable) HRESULT { return @as(*const IGPM.VTable, @ptrCast(self.vtable)).CreateMigrationTable(@as(*const IGPM, @ptrCast(self)), ppMigrationTable); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IGPM_InitializeReporting(self: *const T, bstrAdmPath: ?BSTR) HRESULT { return @as(*const IGPM.VTable, @ptrCast(self.vtable)).InitializeReporting(@as(*const IGPM, @ptrCast(self)), bstrAdmPath); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows6.0.6000' const IID_IGPMDomain_Value = Guid.initString("6b21cc14-5a00-4f44-a738-feec8a94c7e3"); pub const IID_IGPMDomain = &IID_IGPMDomain_Value; pub const IGPMDomain = extern struct { pub const VTable = extern struct { base: IDispatch.VTable, // TODO: this function has a "SpecialName", should Zig do anything with this? get_DomainController: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IGPMDomain, pVal: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IGPMDomain, pVal: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Domain: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IGPMDomain, pVal: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IGPMDomain, pVal: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, CreateGPO: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IGPMDomain, ppNewGPO: ?*?*IGPMGPO, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IGPMDomain, ppNewGPO: ?*?*IGPMGPO, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetGPO: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IGPMDomain, bstrGuid: ?BSTR, ppGPO: ?*?*IGPMGPO, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IGPMDomain, bstrGuid: ?BSTR, ppGPO: ?*?*IGPMGPO, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SearchGPOs: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IGPMDomain, pIGPMSearchCriteria: ?*IGPMSearchCriteria, ppIGPMGPOCollection: ?*?*IGPMGPOCollection, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IGPMDomain, pIGPMSearchCriteria: ?*IGPMSearchCriteria, ppIGPMGPOCollection: ?*?*IGPMGPOCollection, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, RestoreGPO: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IGPMDomain, pIGPMBackup: ?*IGPMBackup, lDCFlags: i32, pvarGPMProgress: ?*VARIANT, pvarGPMCancel: ?*VARIANT, ppIGPMResult: ?*?*IGPMResult, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IGPMDomain, pIGPMBackup: ?*IGPMBackup, lDCFlags: i32, pvarGPMProgress: ?*VARIANT, pvarGPMCancel: ?*VARIANT, ppIGPMResult: ?*?*IGPMResult, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetSOM: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IGPMDomain, bstrPath: ?BSTR, ppSOM: ?*?*IGPMSOM, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IGPMDomain, bstrPath: ?BSTR, ppSOM: ?*?*IGPMSOM, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SearchSOMs: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IGPMDomain, pIGPMSearchCriteria: ?*IGPMSearchCriteria, ppIGPMSOMCollection: ?*?*IGPMSOMCollection, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IGPMDomain, pIGPMSearchCriteria: ?*IGPMSearchCriteria, ppIGPMSOMCollection: ?*?*IGPMSOMCollection, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetWMIFilter: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IGPMDomain, bstrPath: ?BSTR, ppWMIFilter: ?*?*IGPMWMIFilter, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IGPMDomain, bstrPath: ?BSTR, ppWMIFilter: ?*?*IGPMWMIFilter, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SearchWMIFilters: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IGPMDomain, pIGPMSearchCriteria: ?*IGPMSearchCriteria, ppIGPMWMIFilterCollection: ?*?*IGPMWMIFilterCollection, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IGPMDomain, pIGPMSearchCriteria: ?*IGPMSearchCriteria, ppIGPMWMIFilterCollection: ?*?*IGPMWMIFilterCollection, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IDispatch.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IGPMDomain_get_DomainController(self: *const T, pVal: ?*?BSTR) HRESULT { return @as(*const IGPMDomain.VTable, @ptrCast(self.vtable)).get_DomainController(@as(*const IGPMDomain, @ptrCast(self)), pVal); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IGPMDomain_get_Domain(self: *const T, pVal: ?*?BSTR) HRESULT { return @as(*const IGPMDomain.VTable, @ptrCast(self.vtable)).get_Domain(@as(*const IGPMDomain, @ptrCast(self)), pVal); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IGPMDomain_CreateGPO(self: *const T, ppNewGPO: ?*?*IGPMGPO) HRESULT { return @as(*const IGPMDomain.VTable, @ptrCast(self.vtable)).CreateGPO(@as(*const IGPMDomain, @ptrCast(self)), ppNewGPO); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IGPMDomain_GetGPO(self: *const T, bstrGuid: ?BSTR, ppGPO: ?*?*IGPMGPO) HRESULT { return @as(*const IGPMDomain.VTable, @ptrCast(self.vtable)).GetGPO(@as(*const IGPMDomain, @ptrCast(self)), bstrGuid, ppGPO); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IGPMDomain_SearchGPOs(self: *const T, pIGPMSearchCriteria: ?*IGPMSearchCriteria, ppIGPMGPOCollection: ?*?*IGPMGPOCollection) HRESULT { return @as(*const IGPMDomain.VTable, @ptrCast(self.vtable)).SearchGPOs(@as(*const IGPMDomain, @ptrCast(self)), pIGPMSearchCriteria, ppIGPMGPOCollection); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IGPMDomain_RestoreGPO(self: *const T, pIGPMBackup: ?*IGPMBackup, lDCFlags: i32, pvarGPMProgress: ?*VARIANT, pvarGPMCancel: ?*VARIANT, ppIGPMResult: ?*?*IGPMResult) HRESULT { return @as(*const IGPMDomain.VTable, @ptrCast(self.vtable)).RestoreGPO(@as(*const IGPMDomain, @ptrCast(self)), pIGPMBackup, lDCFlags, pvarGPMProgress, pvarGPMCancel, ppIGPMResult); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IGPMDomain_GetSOM(self: *const T, bstrPath: ?BSTR, ppSOM: ?*?*IGPMSOM) HRESULT { return @as(*const IGPMDomain.VTable, @ptrCast(self.vtable)).GetSOM(@as(*const IGPMDomain, @ptrCast(self)), bstrPath, ppSOM); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IGPMDomain_SearchSOMs(self: *const T, pIGPMSearchCriteria: ?*IGPMSearchCriteria, ppIGPMSOMCollection: ?*?*IGPMSOMCollection) HRESULT { return @as(*const IGPMDomain.VTable, @ptrCast(self.vtable)).SearchSOMs(@as(*const IGPMDomain, @ptrCast(self)), pIGPMSearchCriteria, ppIGPMSOMCollection); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IGPMDomain_GetWMIFilter(self: *const T, bstrPath: ?BSTR, ppWMIFilter: ?*?*IGPMWMIFilter) HRESULT { return @as(*const IGPMDomain.VTable, @ptrCast(self.vtable)).GetWMIFilter(@as(*const IGPMDomain, @ptrCast(self)), bstrPath, ppWMIFilter); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IGPMDomain_SearchWMIFilters(self: *const T, pIGPMSearchCriteria: ?*IGPMSearchCriteria, ppIGPMWMIFilterCollection: ?*?*IGPMWMIFilterCollection) HRESULT { return @as(*const IGPMDomain.VTable, @ptrCast(self.vtable)).SearchWMIFilters(@as(*const IGPMDomain, @ptrCast(self)), pIGPMSearchCriteria, ppIGPMWMIFilterCollection); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows6.0.6000' const IID_IGPMBackupDir_Value = Guid.initString("b1568bed-0a93-4acc-810f-afe7081019b9"); pub const IID_IGPMBackupDir = &IID_IGPMBackupDir_Value; pub const IGPMBackupDir = extern struct { pub const VTable = extern struct { base: IDispatch.VTable, // TODO: this function has a "SpecialName", should Zig do anything with this? get_BackupDirectory: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IGPMBackupDir, pVal: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IGPMBackupDir, pVal: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetBackup: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IGPMBackupDir, bstrID: ?BSTR, ppBackup: ?*?*IGPMBackup, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IGPMBackupDir, bstrID: ?BSTR, ppBackup: ?*?*IGPMBackup, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SearchBackups: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IGPMBackupDir, pIGPMSearchCriteria: ?*IGPMSearchCriteria, ppIGPMBackupCollection: ?*?*IGPMBackupCollection, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IGPMBackupDir, pIGPMSearchCriteria: ?*IGPMSearchCriteria, ppIGPMBackupCollection: ?*?*IGPMBackupCollection, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IDispatch.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IGPMBackupDir_get_BackupDirectory(self: *const T, pVal: ?*?BSTR) HRESULT { return @as(*const IGPMBackupDir.VTable, @ptrCast(self.vtable)).get_BackupDirectory(@as(*const IGPMBackupDir, @ptrCast(self)), pVal); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IGPMBackupDir_GetBackup(self: *const T, bstrID: ?BSTR, ppBackup: ?*?*IGPMBackup) HRESULT { return @as(*const IGPMBackupDir.VTable, @ptrCast(self.vtable)).GetBackup(@as(*const IGPMBackupDir, @ptrCast(self)), bstrID, ppBackup); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IGPMBackupDir_SearchBackups(self: *const T, pIGPMSearchCriteria: ?*IGPMSearchCriteria, ppIGPMBackupCollection: ?*?*IGPMBackupCollection) HRESULT { return @as(*const IGPMBackupDir.VTable, @ptrCast(self.vtable)).SearchBackups(@as(*const IGPMBackupDir, @ptrCast(self)), pIGPMSearchCriteria, ppIGPMBackupCollection); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows6.0.6000' const IID_IGPMSitesContainer_Value = Guid.initString("4725a899-2782-4d27-a6bb-d499246ffd72"); pub const IID_IGPMSitesContainer = &IID_IGPMSitesContainer_Value; pub const IGPMSitesContainer = extern struct { pub const VTable = extern struct { base: IDispatch.VTable, // TODO: this function has a "SpecialName", should Zig do anything with this? get_DomainController: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IGPMSitesContainer, pVal: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IGPMSitesContainer, pVal: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Domain: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IGPMSitesContainer, pVal: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IGPMSitesContainer, pVal: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Forest: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IGPMSitesContainer, pVal: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IGPMSitesContainer, pVal: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetSite: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IGPMSitesContainer, bstrSiteName: ?BSTR, ppSOM: ?*?*IGPMSOM, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IGPMSitesContainer, bstrSiteName: ?BSTR, ppSOM: ?*?*IGPMSOM, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SearchSites: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IGPMSitesContainer, pIGPMSearchCriteria: ?*IGPMSearchCriteria, ppIGPMSOMCollection: ?*?*IGPMSOMCollection, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IGPMSitesContainer, pIGPMSearchCriteria: ?*IGPMSearchCriteria, ppIGPMSOMCollection: ?*?*IGPMSOMCollection, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IDispatch.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IGPMSitesContainer_get_DomainController(self: *const T, pVal: ?*?BSTR) HRESULT { return @as(*const IGPMSitesContainer.VTable, @ptrCast(self.vtable)).get_DomainController(@as(*const IGPMSitesContainer, @ptrCast(self)), pVal); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IGPMSitesContainer_get_Domain(self: *const T, pVal: ?*?BSTR) HRESULT { return @as(*const IGPMSitesContainer.VTable, @ptrCast(self.vtable)).get_Domain(@as(*const IGPMSitesContainer, @ptrCast(self)), pVal); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IGPMSitesContainer_get_Forest(self: *const T, pVal: ?*?BSTR) HRESULT { return @as(*const IGPMSitesContainer.VTable, @ptrCast(self.vtable)).get_Forest(@as(*const IGPMSitesContainer, @ptrCast(self)), pVal); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IGPMSitesContainer_GetSite(self: *const T, bstrSiteName: ?BSTR, ppSOM: ?*?*IGPMSOM) HRESULT { return @as(*const IGPMSitesContainer.VTable, @ptrCast(self.vtable)).GetSite(@as(*const IGPMSitesContainer, @ptrCast(self)), bstrSiteName, ppSOM); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IGPMSitesContainer_SearchSites(self: *const T, pIGPMSearchCriteria: ?*IGPMSearchCriteria, ppIGPMSOMCollection: ?*?*IGPMSOMCollection) HRESULT { return @as(*const IGPMSitesContainer.VTable, @ptrCast(self.vtable)).SearchSites(@as(*const IGPMSitesContainer, @ptrCast(self)), pIGPMSearchCriteria, ppIGPMSOMCollection); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows6.0.6000' const IID_IGPMSearchCriteria_Value = Guid.initString("d6f11c42-829b-48d4-83f5-3615b67dfc22"); pub const IID_IGPMSearchCriteria = &IID_IGPMSearchCriteria_Value; pub const IGPMSearchCriteria = extern struct { pub const VTable = extern struct { base: IDispatch.VTable, Add: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IGPMSearchCriteria, searchProperty: GPMSearchProperty, searchOperation: GPMSearchOperation, varValue: VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IGPMSearchCriteria, searchProperty: GPMSearchProperty, searchOperation: GPMSearchOperation, varValue: VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IDispatch.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IGPMSearchCriteria_Add(self: *const T, searchProperty: GPMSearchProperty, searchOperation: GPMSearchOperation, varValue: VARIANT) HRESULT { return @as(*const IGPMSearchCriteria.VTable, @ptrCast(self.vtable)).Add(@as(*const IGPMSearchCriteria, @ptrCast(self)), searchProperty, searchOperation, varValue); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows6.0.6000' const IID_IGPMTrustee_Value = Guid.initString("3b466da8-c1a4-4b2a-999a-befcdd56cefb"); pub const IID_IGPMTrustee = &IID_IGPMTrustee_Value; pub const IGPMTrustee = extern struct { pub const VTable = extern struct { base: IDispatch.VTable, // TODO: this function has a "SpecialName", should Zig do anything with this? get_TrusteeSid: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IGPMTrustee, bstrVal: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IGPMTrustee, bstrVal: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_TrusteeName: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IGPMTrustee, bstrVal: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IGPMTrustee, bstrVal: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_TrusteeDomain: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IGPMTrustee, bstrVal: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IGPMTrustee, bstrVal: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_TrusteeDSPath: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IGPMTrustee, pVal: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IGPMTrustee, pVal: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_TrusteeType: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IGPMTrustee, lVal: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IGPMTrustee, lVal: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IDispatch.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IGPMTrustee_get_TrusteeSid(self: *const T, bstrVal: ?*?BSTR) HRESULT { return @as(*const IGPMTrustee.VTable, @ptrCast(self.vtable)).get_TrusteeSid(@as(*const IGPMTrustee, @ptrCast(self)), bstrVal); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IGPMTrustee_get_TrusteeName(self: *const T, bstrVal: ?*?BSTR) HRESULT { return @as(*const IGPMTrustee.VTable, @ptrCast(self.vtable)).get_TrusteeName(@as(*const IGPMTrustee, @ptrCast(self)), bstrVal); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IGPMTrustee_get_TrusteeDomain(self: *const T, bstrVal: ?*?BSTR) HRESULT { return @as(*const IGPMTrustee.VTable, @ptrCast(self.vtable)).get_TrusteeDomain(@as(*const IGPMTrustee, @ptrCast(self)), bstrVal); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IGPMTrustee_get_TrusteeDSPath(self: *const T, pVal: ?*?BSTR) HRESULT { return @as(*const IGPMTrustee.VTable, @ptrCast(self.vtable)).get_TrusteeDSPath(@as(*const IGPMTrustee, @ptrCast(self)), pVal); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IGPMTrustee_get_TrusteeType(self: *const T, lVal: ?*i32) HRESULT { return @as(*const IGPMTrustee.VTable, @ptrCast(self.vtable)).get_TrusteeType(@as(*const IGPMTrustee, @ptrCast(self)), lVal); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows6.0.6000' const IID_IGPMPermission_Value = Guid.initString("35ebca40-e1a1-4a02-8905-d79416fb464a"); pub const IID_IGPMPermission = &IID_IGPMPermission_Value; pub const IGPMPermission = extern struct { pub const VTable = extern struct { base: IDispatch.VTable, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Inherited: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IGPMPermission, pVal: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IGPMPermission, pVal: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Inheritable: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IGPMPermission, pVal: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IGPMPermission, pVal: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Denied: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IGPMPermission, pVal: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IGPMPermission, pVal: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Permission: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IGPMPermission, pVal: ?*GPMPermissionType, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IGPMPermission, pVal: ?*GPMPermissionType, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Trustee: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IGPMPermission, ppIGPMTrustee: ?*?*IGPMTrustee, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IGPMPermission, ppIGPMTrustee: ?*?*IGPMTrustee, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IDispatch.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IGPMPermission_get_Inherited(self: *const T, pVal: ?*i16) HRESULT { return @as(*const IGPMPermission.VTable, @ptrCast(self.vtable)).get_Inherited(@as(*const IGPMPermission, @ptrCast(self)), pVal); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IGPMPermission_get_Inheritable(self: *const T, pVal: ?*i16) HRESULT { return @as(*const IGPMPermission.VTable, @ptrCast(self.vtable)).get_Inheritable(@as(*const IGPMPermission, @ptrCast(self)), pVal); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IGPMPermission_get_Denied(self: *const T, pVal: ?*i16) HRESULT { return @as(*const IGPMPermission.VTable, @ptrCast(self.vtable)).get_Denied(@as(*const IGPMPermission, @ptrCast(self)), pVal); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IGPMPermission_get_Permission(self: *const T, pVal: ?*GPMPermissionType) HRESULT { return @as(*const IGPMPermission.VTable, @ptrCast(self.vtable)).get_Permission(@as(*const IGPMPermission, @ptrCast(self)), pVal); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IGPMPermission_get_Trustee(self: *const T, ppIGPMTrustee: ?*?*IGPMTrustee) HRESULT { return @as(*const IGPMPermission.VTable, @ptrCast(self.vtable)).get_Trustee(@as(*const IGPMPermission, @ptrCast(self)), ppIGPMTrustee); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows6.0.6000' const IID_IGPMSecurityInfo_Value = Guid.initString("b6c31ed4-1c93-4d3e-ae84-eb6d61161b60"); pub const IID_IGPMSecurityInfo = &IID_IGPMSecurityInfo_Value; pub const IGPMSecurityInfo = extern struct { pub const VTable = extern struct { base: IDispatch.VTable, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Count: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IGPMSecurityInfo, pVal: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IGPMSecurityInfo, pVal: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Item: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IGPMSecurityInfo, lIndex: i32, pVal: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IGPMSecurityInfo, lIndex: i32, pVal: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get__NewEnum: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IGPMSecurityInfo, ppEnum: ?*?*IEnumVARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IGPMSecurityInfo, ppEnum: ?*?*IEnumVARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Add: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IGPMSecurityInfo, pPerm: ?*IGPMPermission, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IGPMSecurityInfo, pPerm: ?*IGPMPermission, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Remove: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IGPMSecurityInfo, pPerm: ?*IGPMPermission, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IGPMSecurityInfo, pPerm: ?*IGPMPermission, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, RemoveTrustee: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IGPMSecurityInfo, bstrTrustee: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IGPMSecurityInfo, bstrTrustee: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IDispatch.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IGPMSecurityInfo_get_Count(self: *const T, pVal: ?*i32) HRESULT { return @as(*const IGPMSecurityInfo.VTable, @ptrCast(self.vtable)).get_Count(@as(*const IGPMSecurityInfo, @ptrCast(self)), pVal); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IGPMSecurityInfo_get_Item(self: *const T, lIndex: i32, pVal: ?*VARIANT) HRESULT { return @as(*const IGPMSecurityInfo.VTable, @ptrCast(self.vtable)).get_Item(@as(*const IGPMSecurityInfo, @ptrCast(self)), lIndex, pVal); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IGPMSecurityInfo_get__NewEnum(self: *const T, ppEnum: ?*?*IEnumVARIANT) HRESULT { return @as(*const IGPMSecurityInfo.VTable, @ptrCast(self.vtable)).get__NewEnum(@as(*const IGPMSecurityInfo, @ptrCast(self)), ppEnum); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IGPMSecurityInfo_Add(self: *const T, pPerm: ?*IGPMPermission) HRESULT { return @as(*const IGPMSecurityInfo.VTable, @ptrCast(self.vtable)).Add(@as(*const IGPMSecurityInfo, @ptrCast(self)), pPerm); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IGPMSecurityInfo_Remove(self: *const T, pPerm: ?*IGPMPermission) HRESULT { return @as(*const IGPMSecurityInfo.VTable, @ptrCast(self.vtable)).Remove(@as(*const IGPMSecurityInfo, @ptrCast(self)), pPerm); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IGPMSecurityInfo_RemoveTrustee(self: *const T, bstrTrustee: ?BSTR) HRESULT { return @as(*const IGPMSecurityInfo.VTable, @ptrCast(self.vtable)).RemoveTrustee(@as(*const IGPMSecurityInfo, @ptrCast(self)), bstrTrustee); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows6.0.6000' const IID_IGPMBackup_Value = Guid.initString("d8a16a35-3b0d-416b-8d02-4df6f95a7119"); pub const IID_IGPMBackup = &IID_IGPMBackup_Value; pub const IGPMBackup = extern struct { pub const VTable = extern struct { base: IDispatch.VTable, // TODO: this function has a "SpecialName", should Zig do anything with this? get_ID: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IGPMBackup, pVal: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IGPMBackup, pVal: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_GPOID: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IGPMBackup, pVal: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IGPMBackup, pVal: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_GPODomain: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IGPMBackup, pVal: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IGPMBackup, pVal: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_GPODisplayName: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IGPMBackup, pVal: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IGPMBackup, pVal: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Timestamp: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IGPMBackup, pVal: ?*f64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IGPMBackup, pVal: ?*f64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Comment: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IGPMBackup, pVal: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IGPMBackup, pVal: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_BackupDir: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IGPMBackup, pVal: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IGPMBackup, pVal: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Delete: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IGPMBackup, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IGPMBackup, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GenerateReport: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IGPMBackup, gpmReportType: GPMReportType, pvarGPMProgress: ?*VARIANT, pvarGPMCancel: ?*VARIANT, ppIGPMResult: ?*?*IGPMResult, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IGPMBackup, gpmReportType: GPMReportType, pvarGPMProgress: ?*VARIANT, pvarGPMCancel: ?*VARIANT, ppIGPMResult: ?*?*IGPMResult, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GenerateReportToFile: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IGPMBackup, gpmReportType: GPMReportType, bstrTargetFilePath: ?BSTR, ppIGPMResult: ?*?*IGPMResult, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IGPMBackup, gpmReportType: GPMReportType, bstrTargetFilePath: ?BSTR, ppIGPMResult: ?*?*IGPMResult, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IDispatch.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IGPMBackup_get_ID(self: *const T, pVal: ?*?BSTR) HRESULT { return @as(*const IGPMBackup.VTable, @ptrCast(self.vtable)).get_ID(@as(*const IGPMBackup, @ptrCast(self)), pVal); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IGPMBackup_get_GPOID(self: *const T, pVal: ?*?BSTR) HRESULT { return @as(*const IGPMBackup.VTable, @ptrCast(self.vtable)).get_GPOID(@as(*const IGPMBackup, @ptrCast(self)), pVal); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IGPMBackup_get_GPODomain(self: *const T, pVal: ?*?BSTR) HRESULT { return @as(*const IGPMBackup.VTable, @ptrCast(self.vtable)).get_GPODomain(@as(*const IGPMBackup, @ptrCast(self)), pVal); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IGPMBackup_get_GPODisplayName(self: *const T, pVal: ?*?BSTR) HRESULT { return @as(*const IGPMBackup.VTable, @ptrCast(self.vtable)).get_GPODisplayName(@as(*const IGPMBackup, @ptrCast(self)), pVal); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IGPMBackup_get_Timestamp(self: *const T, pVal: ?*f64) HRESULT { return @as(*const IGPMBackup.VTable, @ptrCast(self.vtable)).get_Timestamp(@as(*const IGPMBackup, @ptrCast(self)), pVal); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IGPMBackup_get_Comment(self: *const T, pVal: ?*?BSTR) HRESULT { return @as(*const IGPMBackup.VTable, @ptrCast(self.vtable)).get_Comment(@as(*const IGPMBackup, @ptrCast(self)), pVal); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IGPMBackup_get_BackupDir(self: *const T, pVal: ?*?BSTR) HRESULT { return @as(*const IGPMBackup.VTable, @ptrCast(self.vtable)).get_BackupDir(@as(*const IGPMBackup, @ptrCast(self)), pVal); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IGPMBackup_Delete(self: *const T) HRESULT { return @as(*const IGPMBackup.VTable, @ptrCast(self.vtable)).Delete(@as(*const IGPMBackup, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IGPMBackup_GenerateReport(self: *const T, gpmReportType: GPMReportType, pvarGPMProgress: ?*VARIANT, pvarGPMCancel: ?*VARIANT, ppIGPMResult: ?*?*IGPMResult) HRESULT { return @as(*const IGPMBackup.VTable, @ptrCast(self.vtable)).GenerateReport(@as(*const IGPMBackup, @ptrCast(self)), gpmReportType, pvarGPMProgress, pvarGPMCancel, ppIGPMResult); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IGPMBackup_GenerateReportToFile(self: *const T, gpmReportType: GPMReportType, bstrTargetFilePath: ?BSTR, ppIGPMResult: ?*?*IGPMResult) HRESULT { return @as(*const IGPMBackup.VTable, @ptrCast(self.vtable)).GenerateReportToFile(@as(*const IGPMBackup, @ptrCast(self)), gpmReportType, bstrTargetFilePath, ppIGPMResult); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows6.0.6000' const IID_IGPMBackupCollection_Value = Guid.initString("c786fc0f-26d8-4bab-a745-39ca7e800cac"); pub const IID_IGPMBackupCollection = &IID_IGPMBackupCollection_Value; pub const IGPMBackupCollection = extern struct { pub const VTable = extern struct { base: IDispatch.VTable, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Count: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IGPMBackupCollection, pVal: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IGPMBackupCollection, pVal: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Item: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IGPMBackupCollection, lIndex: i32, pVal: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IGPMBackupCollection, lIndex: i32, pVal: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get__NewEnum: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IGPMBackupCollection, ppIGPMBackup: ?*?*IEnumVARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IGPMBackupCollection, ppIGPMBackup: ?*?*IEnumVARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IDispatch.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IGPMBackupCollection_get_Count(self: *const T, pVal: ?*i32) HRESULT { return @as(*const IGPMBackupCollection.VTable, @ptrCast(self.vtable)).get_Count(@as(*const IGPMBackupCollection, @ptrCast(self)), pVal); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IGPMBackupCollection_get_Item(self: *const T, lIndex: i32, pVal: ?*VARIANT) HRESULT { return @as(*const IGPMBackupCollection.VTable, @ptrCast(self.vtable)).get_Item(@as(*const IGPMBackupCollection, @ptrCast(self)), lIndex, pVal); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IGPMBackupCollection_get__NewEnum(self: *const T, ppIGPMBackup: ?*?*IEnumVARIANT) HRESULT { return @as(*const IGPMBackupCollection.VTable, @ptrCast(self.vtable)).get__NewEnum(@as(*const IGPMBackupCollection, @ptrCast(self)), ppIGPMBackup); } }; } pub usingnamespace MethodMixin(@This()); }; pub const GPMSOMType = enum(i32) { Site = 0, Domain = 1, OU = 2, }; pub const somSite = GPMSOMType.Site; pub const somDomain = GPMSOMType.Domain; pub const somOU = GPMSOMType.OU; // TODO: this type is limited to platform 'windows6.0.6000' const IID_IGPMSOM_Value = Guid.initString("c0a7f09e-05a1-4f0c-8158-9e5c33684f6b"); pub const IID_IGPMSOM = &IID_IGPMSOM_Value; pub const IGPMSOM = extern struct { pub const VTable = extern struct { base: IDispatch.VTable, // TODO: this function has a "SpecialName", should Zig do anything with this? get_GPOInheritanceBlocked: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IGPMSOM, pVal: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IGPMSOM, pVal: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_GPOInheritanceBlocked: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IGPMSOM, newVal: i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IGPMSOM, newVal: i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Name: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IGPMSOM, pVal: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IGPMSOM, pVal: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Path: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IGPMSOM, pVal: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IGPMSOM, pVal: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, CreateGPOLink: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IGPMSOM, lLinkPos: i32, pGPO: ?*IGPMGPO, ppNewGPOLink: ?*?*IGPMGPOLink, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IGPMSOM, lLinkPos: i32, pGPO: ?*IGPMGPO, ppNewGPOLink: ?*?*IGPMGPOLink, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Type: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IGPMSOM, pVal: ?*GPMSOMType, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IGPMSOM, pVal: ?*GPMSOMType, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetGPOLinks: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IGPMSOM, ppGPOLinks: ?*?*IGPMGPOLinksCollection, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IGPMSOM, ppGPOLinks: ?*?*IGPMGPOLinksCollection, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetInheritedGPOLinks: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IGPMSOM, ppGPOLinks: ?*?*IGPMGPOLinksCollection, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IGPMSOM, ppGPOLinks: ?*?*IGPMGPOLinksCollection, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetSecurityInfo: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IGPMSOM, ppSecurityInfo: ?*?*IGPMSecurityInfo, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IGPMSOM, ppSecurityInfo: ?*?*IGPMSecurityInfo, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetSecurityInfo: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IGPMSOM, pSecurityInfo: ?*IGPMSecurityInfo, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IGPMSOM, pSecurityInfo: ?*IGPMSecurityInfo, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IDispatch.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IGPMSOM_get_GPOInheritanceBlocked(self: *const T, pVal: ?*i16) HRESULT { return @as(*const IGPMSOM.VTable, @ptrCast(self.vtable)).get_GPOInheritanceBlocked(@as(*const IGPMSOM, @ptrCast(self)), pVal); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IGPMSOM_put_GPOInheritanceBlocked(self: *const T, newVal: i16) HRESULT { return @as(*const IGPMSOM.VTable, @ptrCast(self.vtable)).put_GPOInheritanceBlocked(@as(*const IGPMSOM, @ptrCast(self)), newVal); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IGPMSOM_get_Name(self: *const T, pVal: ?*?BSTR) HRESULT { return @as(*const IGPMSOM.VTable, @ptrCast(self.vtable)).get_Name(@as(*const IGPMSOM, @ptrCast(self)), pVal); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IGPMSOM_get_Path(self: *const T, pVal: ?*?BSTR) HRESULT { return @as(*const IGPMSOM.VTable, @ptrCast(self.vtable)).get_Path(@as(*const IGPMSOM, @ptrCast(self)), pVal); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IGPMSOM_CreateGPOLink(self: *const T, lLinkPos: i32, pGPO: ?*IGPMGPO, ppNewGPOLink: ?*?*IGPMGPOLink) HRESULT { return @as(*const IGPMSOM.VTable, @ptrCast(self.vtable)).CreateGPOLink(@as(*const IGPMSOM, @ptrCast(self)), lLinkPos, pGPO, ppNewGPOLink); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IGPMSOM_get_Type(self: *const T, pVal: ?*GPMSOMType) HRESULT { return @as(*const IGPMSOM.VTable, @ptrCast(self.vtable)).get_Type(@as(*const IGPMSOM, @ptrCast(self)), pVal); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IGPMSOM_GetGPOLinks(self: *const T, ppGPOLinks: ?*?*IGPMGPOLinksCollection) HRESULT { return @as(*const IGPMSOM.VTable, @ptrCast(self.vtable)).GetGPOLinks(@as(*const IGPMSOM, @ptrCast(self)), ppGPOLinks); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IGPMSOM_GetInheritedGPOLinks(self: *const T, ppGPOLinks: ?*?*IGPMGPOLinksCollection) HRESULT { return @as(*const IGPMSOM.VTable, @ptrCast(self.vtable)).GetInheritedGPOLinks(@as(*const IGPMSOM, @ptrCast(self)), ppGPOLinks); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IGPMSOM_GetSecurityInfo(self: *const T, ppSecurityInfo: ?*?*IGPMSecurityInfo) HRESULT { return @as(*const IGPMSOM.VTable, @ptrCast(self.vtable)).GetSecurityInfo(@as(*const IGPMSOM, @ptrCast(self)), ppSecurityInfo); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IGPMSOM_SetSecurityInfo(self: *const T, pSecurityInfo: ?*IGPMSecurityInfo) HRESULT { return @as(*const IGPMSOM.VTable, @ptrCast(self.vtable)).SetSecurityInfo(@as(*const IGPMSOM, @ptrCast(self)), pSecurityInfo); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows6.0.6000' const IID_IGPMSOMCollection_Value = Guid.initString("adc1688e-00e4-4495-abba-bed200df0cab"); pub const IID_IGPMSOMCollection = &IID_IGPMSOMCollection_Value; pub const IGPMSOMCollection = extern struct { pub const VTable = extern struct { base: IDispatch.VTable, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Count: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IGPMSOMCollection, pVal: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IGPMSOMCollection, pVal: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Item: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IGPMSOMCollection, lIndex: i32, pVal: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IGPMSOMCollection, lIndex: i32, pVal: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get__NewEnum: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IGPMSOMCollection, ppIGPMSOM: ?*?*IEnumVARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IGPMSOMCollection, ppIGPMSOM: ?*?*IEnumVARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IDispatch.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IGPMSOMCollection_get_Count(self: *const T, pVal: ?*i32) HRESULT { return @as(*const IGPMSOMCollection.VTable, @ptrCast(self.vtable)).get_Count(@as(*const IGPMSOMCollection, @ptrCast(self)), pVal); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IGPMSOMCollection_get_Item(self: *const T, lIndex: i32, pVal: ?*VARIANT) HRESULT { return @as(*const IGPMSOMCollection.VTable, @ptrCast(self.vtable)).get_Item(@as(*const IGPMSOMCollection, @ptrCast(self)), lIndex, pVal); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IGPMSOMCollection_get__NewEnum(self: *const T, ppIGPMSOM: ?*?*IEnumVARIANT) HRESULT { return @as(*const IGPMSOMCollection.VTable, @ptrCast(self.vtable)).get__NewEnum(@as(*const IGPMSOMCollection, @ptrCast(self)), ppIGPMSOM); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows6.0.6000' const IID_IGPMWMIFilter_Value = Guid.initString("ef2ff9b4-3c27-459a-b979-038305cec75d"); pub const IID_IGPMWMIFilter = &IID_IGPMWMIFilter_Value; pub const IGPMWMIFilter = extern struct { pub const VTable = extern struct { base: IDispatch.VTable, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Path: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IGPMWMIFilter, pVal: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IGPMWMIFilter, pVal: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_Name: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IGPMWMIFilter, newVal: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IGPMWMIFilter, newVal: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Name: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IGPMWMIFilter, pVal: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IGPMWMIFilter, pVal: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_Description: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IGPMWMIFilter, newVal: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IGPMWMIFilter, newVal: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Description: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IGPMWMIFilter, pVal: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IGPMWMIFilter, pVal: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetQueryList: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IGPMWMIFilter, pQryList: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IGPMWMIFilter, pQryList: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetSecurityInfo: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IGPMWMIFilter, ppSecurityInfo: ?*?*IGPMSecurityInfo, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IGPMWMIFilter, ppSecurityInfo: ?*?*IGPMSecurityInfo, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetSecurityInfo: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IGPMWMIFilter, pSecurityInfo: ?*IGPMSecurityInfo, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IGPMWMIFilter, pSecurityInfo: ?*IGPMSecurityInfo, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IDispatch.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IGPMWMIFilter_get_Path(self: *const T, pVal: ?*?BSTR) HRESULT { return @as(*const IGPMWMIFilter.VTable, @ptrCast(self.vtable)).get_Path(@as(*const IGPMWMIFilter, @ptrCast(self)), pVal); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IGPMWMIFilter_put_Name(self: *const T, newVal: ?BSTR) HRESULT { return @as(*const IGPMWMIFilter.VTable, @ptrCast(self.vtable)).put_Name(@as(*const IGPMWMIFilter, @ptrCast(self)), newVal); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IGPMWMIFilter_get_Name(self: *const T, pVal: ?*?BSTR) HRESULT { return @as(*const IGPMWMIFilter.VTable, @ptrCast(self.vtable)).get_Name(@as(*const IGPMWMIFilter, @ptrCast(self)), pVal); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IGPMWMIFilter_put_Description(self: *const T, newVal: ?BSTR) HRESULT { return @as(*const IGPMWMIFilter.VTable, @ptrCast(self.vtable)).put_Description(@as(*const IGPMWMIFilter, @ptrCast(self)), newVal); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IGPMWMIFilter_get_Description(self: *const T, pVal: ?*?BSTR) HRESULT { return @as(*const IGPMWMIFilter.VTable, @ptrCast(self.vtable)).get_Description(@as(*const IGPMWMIFilter, @ptrCast(self)), pVal); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IGPMWMIFilter_GetQueryList(self: *const T, pQryList: ?*VARIANT) HRESULT { return @as(*const IGPMWMIFilter.VTable, @ptrCast(self.vtable)).GetQueryList(@as(*const IGPMWMIFilter, @ptrCast(self)), pQryList); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IGPMWMIFilter_GetSecurityInfo(self: *const T, ppSecurityInfo: ?*?*IGPMSecurityInfo) HRESULT { return @as(*const IGPMWMIFilter.VTable, @ptrCast(self.vtable)).GetSecurityInfo(@as(*const IGPMWMIFilter, @ptrCast(self)), ppSecurityInfo); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IGPMWMIFilter_SetSecurityInfo(self: *const T, pSecurityInfo: ?*IGPMSecurityInfo) HRESULT { return @as(*const IGPMWMIFilter.VTable, @ptrCast(self.vtable)).SetSecurityInfo(@as(*const IGPMWMIFilter, @ptrCast(self)), pSecurityInfo); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows6.0.6000' const IID_IGPMWMIFilterCollection_Value = Guid.initString("5782d582-1a36-4661-8a94-c3c32551945b"); pub const IID_IGPMWMIFilterCollection = &IID_IGPMWMIFilterCollection_Value; pub const IGPMWMIFilterCollection = extern struct { pub const VTable = extern struct { base: IDispatch.VTable, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Count: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IGPMWMIFilterCollection, pVal: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IGPMWMIFilterCollection, pVal: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Item: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IGPMWMIFilterCollection, lIndex: i32, pVal: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IGPMWMIFilterCollection, lIndex: i32, pVal: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get__NewEnum: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IGPMWMIFilterCollection, pVal: ?*?*IEnumVARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IGPMWMIFilterCollection, pVal: ?*?*IEnumVARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IDispatch.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IGPMWMIFilterCollection_get_Count(self: *const T, pVal: ?*i32) HRESULT { return @as(*const IGPMWMIFilterCollection.VTable, @ptrCast(self.vtable)).get_Count(@as(*const IGPMWMIFilterCollection, @ptrCast(self)), pVal); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IGPMWMIFilterCollection_get_Item(self: *const T, lIndex: i32, pVal: ?*VARIANT) HRESULT { return @as(*const IGPMWMIFilterCollection.VTable, @ptrCast(self.vtable)).get_Item(@as(*const IGPMWMIFilterCollection, @ptrCast(self)), lIndex, pVal); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IGPMWMIFilterCollection_get__NewEnum(self: *const T, pVal: ?*?*IEnumVARIANT) HRESULT { return @as(*const IGPMWMIFilterCollection.VTable, @ptrCast(self.vtable)).get__NewEnum(@as(*const IGPMWMIFilterCollection, @ptrCast(self)), pVal); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows6.0.6000' const IID_IGPMRSOP_Value = Guid.initString("49ed785a-3237-4ff2-b1f0-fdf5a8d5a1ee"); pub const IID_IGPMRSOP = &IID_IGPMRSOP_Value; pub const IGPMRSOP = extern struct { pub const VTable = extern struct { base: IDispatch.VTable, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Mode: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IGPMRSOP, pVal: ?*GPMRSOPMode, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IGPMRSOP, pVal: ?*GPMRSOPMode, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Namespace: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IGPMRSOP, bstrVal: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IGPMRSOP, bstrVal: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_LoggingComputer: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IGPMRSOP, bstrVal: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IGPMRSOP, bstrVal: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_LoggingComputer: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IGPMRSOP, bstrVal: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IGPMRSOP, bstrVal: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_LoggingUser: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IGPMRSOP, bstrVal: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IGPMRSOP, bstrVal: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_LoggingUser: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IGPMRSOP, bstrVal: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IGPMRSOP, bstrVal: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_LoggingFlags: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IGPMRSOP, lVal: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IGPMRSOP, lVal: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_LoggingFlags: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IGPMRSOP, lVal: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IGPMRSOP, lVal: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_PlanningFlags: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IGPMRSOP, lVal: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IGPMRSOP, lVal: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_PlanningFlags: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IGPMRSOP, lVal: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IGPMRSOP, lVal: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_PlanningDomainController: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IGPMRSOP, bstrVal: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IGPMRSOP, bstrVal: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_PlanningDomainController: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IGPMRSOP, bstrVal: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IGPMRSOP, bstrVal: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_PlanningSiteName: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IGPMRSOP, bstrVal: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IGPMRSOP, bstrVal: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_PlanningSiteName: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IGPMRSOP, bstrVal: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IGPMRSOP, bstrVal: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_PlanningUser: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IGPMRSOP, bstrVal: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IGPMRSOP, bstrVal: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_PlanningUser: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IGPMRSOP, bstrVal: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IGPMRSOP, bstrVal: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_PlanningUserSOM: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IGPMRSOP, bstrVal: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IGPMRSOP, bstrVal: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_PlanningUserSOM: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IGPMRSOP, bstrVal: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IGPMRSOP, bstrVal: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_PlanningUserWMIFilters: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IGPMRSOP, varVal: VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IGPMRSOP, varVal: VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_PlanningUserWMIFilters: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IGPMRSOP, varVal: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IGPMRSOP, varVal: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_PlanningUserSecurityGroups: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IGPMRSOP, varVal: VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IGPMRSOP, varVal: VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_PlanningUserSecurityGroups: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IGPMRSOP, varVal: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IGPMRSOP, varVal: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_PlanningComputer: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IGPMRSOP, bstrVal: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IGPMRSOP, bstrVal: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_PlanningComputer: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IGPMRSOP, bstrVal: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IGPMRSOP, bstrVal: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_PlanningComputerSOM: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IGPMRSOP, bstrVal: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IGPMRSOP, bstrVal: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_PlanningComputerSOM: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IGPMRSOP, bstrVal: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IGPMRSOP, bstrVal: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_PlanningComputerWMIFilters: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IGPMRSOP, varVal: VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IGPMRSOP, varVal: VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_PlanningComputerWMIFilters: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IGPMRSOP, varVal: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IGPMRSOP, varVal: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_PlanningComputerSecurityGroups: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IGPMRSOP, varVal: VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IGPMRSOP, varVal: VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_PlanningComputerSecurityGroups: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IGPMRSOP, varVal: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IGPMRSOP, varVal: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, LoggingEnumerateUsers: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IGPMRSOP, varVal: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IGPMRSOP, varVal: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, CreateQueryResults: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IGPMRSOP, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IGPMRSOP, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, ReleaseQueryResults: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IGPMRSOP, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IGPMRSOP, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GenerateReport: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IGPMRSOP, gpmReportType: GPMReportType, pvarGPMProgress: ?*VARIANT, pvarGPMCancel: ?*VARIANT, ppIGPMResult: ?*?*IGPMResult, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IGPMRSOP, gpmReportType: GPMReportType, pvarGPMProgress: ?*VARIANT, pvarGPMCancel: ?*VARIANT, ppIGPMResult: ?*?*IGPMResult, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GenerateReportToFile: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IGPMRSOP, gpmReportType: GPMReportType, bstrTargetFilePath: ?BSTR, ppIGPMResult: ?*?*IGPMResult, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IGPMRSOP, gpmReportType: GPMReportType, bstrTargetFilePath: ?BSTR, ppIGPMResult: ?*?*IGPMResult, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IDispatch.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IGPMRSOP_get_Mode(self: *const T, pVal: ?*GPMRSOPMode) HRESULT { return @as(*const IGPMRSOP.VTable, @ptrCast(self.vtable)).get_Mode(@as(*const IGPMRSOP, @ptrCast(self)), pVal); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IGPMRSOP_get_Namespace(self: *const T, bstrVal: ?*?BSTR) HRESULT { return @as(*const IGPMRSOP.VTable, @ptrCast(self.vtable)).get_Namespace(@as(*const IGPMRSOP, @ptrCast(self)), bstrVal); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IGPMRSOP_put_LoggingComputer(self: *const T, bstrVal: ?BSTR) HRESULT { return @as(*const IGPMRSOP.VTable, @ptrCast(self.vtable)).put_LoggingComputer(@as(*const IGPMRSOP, @ptrCast(self)), bstrVal); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IGPMRSOP_get_LoggingComputer(self: *const T, bstrVal: ?*?BSTR) HRESULT { return @as(*const IGPMRSOP.VTable, @ptrCast(self.vtable)).get_LoggingComputer(@as(*const IGPMRSOP, @ptrCast(self)), bstrVal); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IGPMRSOP_put_LoggingUser(self: *const T, bstrVal: ?BSTR) HRESULT { return @as(*const IGPMRSOP.VTable, @ptrCast(self.vtable)).put_LoggingUser(@as(*const IGPMRSOP, @ptrCast(self)), bstrVal); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IGPMRSOP_get_LoggingUser(self: *const T, bstrVal: ?*?BSTR) HRESULT { return @as(*const IGPMRSOP.VTable, @ptrCast(self.vtable)).get_LoggingUser(@as(*const IGPMRSOP, @ptrCast(self)), bstrVal); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IGPMRSOP_put_LoggingFlags(self: *const T, lVal: i32) HRESULT { return @as(*const IGPMRSOP.VTable, @ptrCast(self.vtable)).put_LoggingFlags(@as(*const IGPMRSOP, @ptrCast(self)), lVal); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IGPMRSOP_get_LoggingFlags(self: *const T, lVal: ?*i32) HRESULT { return @as(*const IGPMRSOP.VTable, @ptrCast(self.vtable)).get_LoggingFlags(@as(*const IGPMRSOP, @ptrCast(self)), lVal); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IGPMRSOP_put_PlanningFlags(self: *const T, lVal: i32) HRESULT { return @as(*const IGPMRSOP.VTable, @ptrCast(self.vtable)).put_PlanningFlags(@as(*const IGPMRSOP, @ptrCast(self)), lVal); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IGPMRSOP_get_PlanningFlags(self: *const T, lVal: ?*i32) HRESULT { return @as(*const IGPMRSOP.VTable, @ptrCast(self.vtable)).get_PlanningFlags(@as(*const IGPMRSOP, @ptrCast(self)), lVal); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IGPMRSOP_put_PlanningDomainController(self: *const T, bstrVal: ?BSTR) HRESULT { return @as(*const IGPMRSOP.VTable, @ptrCast(self.vtable)).put_PlanningDomainController(@as(*const IGPMRSOP, @ptrCast(self)), bstrVal); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IGPMRSOP_get_PlanningDomainController(self: *const T, bstrVal: ?*?BSTR) HRESULT { return @as(*const IGPMRSOP.VTable, @ptrCast(self.vtable)).get_PlanningDomainController(@as(*const IGPMRSOP, @ptrCast(self)), bstrVal); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IGPMRSOP_put_PlanningSiteName(self: *const T, bstrVal: ?BSTR) HRESULT { return @as(*const IGPMRSOP.VTable, @ptrCast(self.vtable)).put_PlanningSiteName(@as(*const IGPMRSOP, @ptrCast(self)), bstrVal); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IGPMRSOP_get_PlanningSiteName(self: *const T, bstrVal: ?*?BSTR) HRESULT { return @as(*const IGPMRSOP.VTable, @ptrCast(self.vtable)).get_PlanningSiteName(@as(*const IGPMRSOP, @ptrCast(self)), bstrVal); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IGPMRSOP_put_PlanningUser(self: *const T, bstrVal: ?BSTR) HRESULT { return @as(*const IGPMRSOP.VTable, @ptrCast(self.vtable)).put_PlanningUser(@as(*const IGPMRSOP, @ptrCast(self)), bstrVal); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IGPMRSOP_get_PlanningUser(self: *const T, bstrVal: ?*?BSTR) HRESULT { return @as(*const IGPMRSOP.VTable, @ptrCast(self.vtable)).get_PlanningUser(@as(*const IGPMRSOP, @ptrCast(self)), bstrVal); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IGPMRSOP_put_PlanningUserSOM(self: *const T, bstrVal: ?BSTR) HRESULT { return @as(*const IGPMRSOP.VTable, @ptrCast(self.vtable)).put_PlanningUserSOM(@as(*const IGPMRSOP, @ptrCast(self)), bstrVal); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IGPMRSOP_get_PlanningUserSOM(self: *const T, bstrVal: ?*?BSTR) HRESULT { return @as(*const IGPMRSOP.VTable, @ptrCast(self.vtable)).get_PlanningUserSOM(@as(*const IGPMRSOP, @ptrCast(self)), bstrVal); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IGPMRSOP_put_PlanningUserWMIFilters(self: *const T, varVal: VARIANT) HRESULT { return @as(*const IGPMRSOP.VTable, @ptrCast(self.vtable)).put_PlanningUserWMIFilters(@as(*const IGPMRSOP, @ptrCast(self)), varVal); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IGPMRSOP_get_PlanningUserWMIFilters(self: *const T, varVal: ?*VARIANT) HRESULT { return @as(*const IGPMRSOP.VTable, @ptrCast(self.vtable)).get_PlanningUserWMIFilters(@as(*const IGPMRSOP, @ptrCast(self)), varVal); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IGPMRSOP_put_PlanningUserSecurityGroups(self: *const T, varVal: VARIANT) HRESULT { return @as(*const IGPMRSOP.VTable, @ptrCast(self.vtable)).put_PlanningUserSecurityGroups(@as(*const IGPMRSOP, @ptrCast(self)), varVal); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IGPMRSOP_get_PlanningUserSecurityGroups(self: *const T, varVal: ?*VARIANT) HRESULT { return @as(*const IGPMRSOP.VTable, @ptrCast(self.vtable)).get_PlanningUserSecurityGroups(@as(*const IGPMRSOP, @ptrCast(self)), varVal); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IGPMRSOP_put_PlanningComputer(self: *const T, bstrVal: ?BSTR) HRESULT { return @as(*const IGPMRSOP.VTable, @ptrCast(self.vtable)).put_PlanningComputer(@as(*const IGPMRSOP, @ptrCast(self)), bstrVal); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IGPMRSOP_get_PlanningComputer(self: *const T, bstrVal: ?*?BSTR) HRESULT { return @as(*const IGPMRSOP.VTable, @ptrCast(self.vtable)).get_PlanningComputer(@as(*const IGPMRSOP, @ptrCast(self)), bstrVal); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IGPMRSOP_put_PlanningComputerSOM(self: *const T, bstrVal: ?BSTR) HRESULT { return @as(*const IGPMRSOP.VTable, @ptrCast(self.vtable)).put_PlanningComputerSOM(@as(*const IGPMRSOP, @ptrCast(self)), bstrVal); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IGPMRSOP_get_PlanningComputerSOM(self: *const T, bstrVal: ?*?BSTR) HRESULT { return @as(*const IGPMRSOP.VTable, @ptrCast(self.vtable)).get_PlanningComputerSOM(@as(*const IGPMRSOP, @ptrCast(self)), bstrVal); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IGPMRSOP_put_PlanningComputerWMIFilters(self: *const T, varVal: VARIANT) HRESULT { return @as(*const IGPMRSOP.VTable, @ptrCast(self.vtable)).put_PlanningComputerWMIFilters(@as(*const IGPMRSOP, @ptrCast(self)), varVal); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IGPMRSOP_get_PlanningComputerWMIFilters(self: *const T, varVal: ?*VARIANT) HRESULT { return @as(*const IGPMRSOP.VTable, @ptrCast(self.vtable)).get_PlanningComputerWMIFilters(@as(*const IGPMRSOP, @ptrCast(self)), varVal); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IGPMRSOP_put_PlanningComputerSecurityGroups(self: *const T, varVal: VARIANT) HRESULT { return @as(*const IGPMRSOP.VTable, @ptrCast(self.vtable)).put_PlanningComputerSecurityGroups(@as(*const IGPMRSOP, @ptrCast(self)), varVal); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IGPMRSOP_get_PlanningComputerSecurityGroups(self: *const T, varVal: ?*VARIANT) HRESULT { return @as(*const IGPMRSOP.VTable, @ptrCast(self.vtable)).get_PlanningComputerSecurityGroups(@as(*const IGPMRSOP, @ptrCast(self)), varVal); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IGPMRSOP_LoggingEnumerateUsers(self: *const T, varVal: ?*VARIANT) HRESULT { return @as(*const IGPMRSOP.VTable, @ptrCast(self.vtable)).LoggingEnumerateUsers(@as(*const IGPMRSOP, @ptrCast(self)), varVal); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IGPMRSOP_CreateQueryResults(self: *const T) HRESULT { return @as(*const IGPMRSOP.VTable, @ptrCast(self.vtable)).CreateQueryResults(@as(*const IGPMRSOP, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IGPMRSOP_ReleaseQueryResults(self: *const T) HRESULT { return @as(*const IGPMRSOP.VTable, @ptrCast(self.vtable)).ReleaseQueryResults(@as(*const IGPMRSOP, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IGPMRSOP_GenerateReport(self: *const T, gpmReportType: GPMReportType, pvarGPMProgress: ?*VARIANT, pvarGPMCancel: ?*VARIANT, ppIGPMResult: ?*?*IGPMResult) HRESULT { return @as(*const IGPMRSOP.VTable, @ptrCast(self.vtable)).GenerateReport(@as(*const IGPMRSOP, @ptrCast(self)), gpmReportType, pvarGPMProgress, pvarGPMCancel, ppIGPMResult); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IGPMRSOP_GenerateReportToFile(self: *const T, gpmReportType: GPMReportType, bstrTargetFilePath: ?BSTR, ppIGPMResult: ?*?*IGPMResult) HRESULT { return @as(*const IGPMRSOP.VTable, @ptrCast(self.vtable)).GenerateReportToFile(@as(*const IGPMRSOP, @ptrCast(self)), gpmReportType, bstrTargetFilePath, ppIGPMResult); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows6.0.6000' const IID_IGPMGPO_Value = Guid.initString("58cc4352-1ca3-48e5-9864-1da4d6e0d60f"); pub const IID_IGPMGPO = &IID_IGPMGPO_Value; pub const IGPMGPO = extern struct { pub const VTable = extern struct { base: IDispatch.VTable, // TODO: this function has a "SpecialName", should Zig do anything with this? get_DisplayName: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IGPMGPO, pVal: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IGPMGPO, pVal: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_DisplayName: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IGPMGPO, newVal: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IGPMGPO, newVal: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Path: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IGPMGPO, pVal: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IGPMGPO, pVal: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_ID: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IGPMGPO, pVal: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IGPMGPO, pVal: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_DomainName: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IGPMGPO, pVal: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IGPMGPO, pVal: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_CreationTime: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IGPMGPO, pDate: ?*f64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IGPMGPO, pDate: ?*f64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_ModificationTime: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IGPMGPO, pDate: ?*f64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IGPMGPO, pDate: ?*f64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_UserDSVersionNumber: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IGPMGPO, pVal: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IGPMGPO, pVal: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_ComputerDSVersionNumber: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IGPMGPO, pVal: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IGPMGPO, pVal: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_UserSysvolVersionNumber: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IGPMGPO, pVal: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IGPMGPO, pVal: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_ComputerSysvolVersionNumber: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IGPMGPO, pVal: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IGPMGPO, pVal: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetWMIFilter: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IGPMGPO, ppIGPMWMIFilter: ?*?*IGPMWMIFilter, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IGPMGPO, ppIGPMWMIFilter: ?*?*IGPMWMIFilter, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetWMIFilter: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IGPMGPO, pIGPMWMIFilter: ?*IGPMWMIFilter, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IGPMGPO, pIGPMWMIFilter: ?*IGPMWMIFilter, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetUserEnabled: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IGPMGPO, vbEnabled: i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IGPMGPO, vbEnabled: i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetComputerEnabled: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IGPMGPO, vbEnabled: i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IGPMGPO, vbEnabled: i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, IsUserEnabled: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IGPMGPO, pvbEnabled: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IGPMGPO, pvbEnabled: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, IsComputerEnabled: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IGPMGPO, pvbEnabled: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IGPMGPO, pvbEnabled: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetSecurityInfo: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IGPMGPO, ppSecurityInfo: ?*?*IGPMSecurityInfo, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IGPMGPO, ppSecurityInfo: ?*?*IGPMSecurityInfo, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetSecurityInfo: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IGPMGPO, pSecurityInfo: ?*IGPMSecurityInfo, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IGPMGPO, pSecurityInfo: ?*IGPMSecurityInfo, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Delete: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IGPMGPO, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IGPMGPO, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Backup: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IGPMGPO, bstrBackupDir: ?BSTR, bstrComment: ?BSTR, pvarGPMProgress: ?*VARIANT, pvarGPMCancel: ?*VARIANT, ppIGPMResult: ?*?*IGPMResult, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IGPMGPO, bstrBackupDir: ?BSTR, bstrComment: ?BSTR, pvarGPMProgress: ?*VARIANT, pvarGPMCancel: ?*VARIANT, ppIGPMResult: ?*?*IGPMResult, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Import: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IGPMGPO, lFlags: i32, pIGPMBackup: ?*IGPMBackup, pvarMigrationTable: ?*VARIANT, pvarGPMProgress: ?*VARIANT, pvarGPMCancel: ?*VARIANT, ppIGPMResult: ?*?*IGPMResult, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IGPMGPO, lFlags: i32, pIGPMBackup: ?*IGPMBackup, pvarMigrationTable: ?*VARIANT, pvarGPMProgress: ?*VARIANT, pvarGPMCancel: ?*VARIANT, ppIGPMResult: ?*?*IGPMResult, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GenerateReport: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IGPMGPO, gpmReportType: GPMReportType, pvarGPMProgress: ?*VARIANT, pvarGPMCancel: ?*VARIANT, ppIGPMResult: ?*?*IGPMResult, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IGPMGPO, gpmReportType: GPMReportType, pvarGPMProgress: ?*VARIANT, pvarGPMCancel: ?*VARIANT, ppIGPMResult: ?*?*IGPMResult, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GenerateReportToFile: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IGPMGPO, gpmReportType: GPMReportType, bstrTargetFilePath: ?BSTR, ppIGPMResult: ?*?*IGPMResult, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IGPMGPO, gpmReportType: GPMReportType, bstrTargetFilePath: ?BSTR, ppIGPMResult: ?*?*IGPMResult, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, CopyTo: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IGPMGPO, lFlags: i32, pIGPMDomain: ?*IGPMDomain, pvarNewDisplayName: ?*VARIANT, pvarMigrationTable: ?*VARIANT, pvarGPMProgress: ?*VARIANT, pvarGPMCancel: ?*VARIANT, ppIGPMResult: ?*?*IGPMResult, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IGPMGPO, lFlags: i32, pIGPMDomain: ?*IGPMDomain, pvarNewDisplayName: ?*VARIANT, pvarMigrationTable: ?*VARIANT, pvarGPMProgress: ?*VARIANT, pvarGPMCancel: ?*VARIANT, ppIGPMResult: ?*?*IGPMResult, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetSecurityDescriptor: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IGPMGPO, lFlags: i32, pSD: ?*IDispatch, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IGPMGPO, lFlags: i32, pSD: ?*IDispatch, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetSecurityDescriptor: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IGPMGPO, lFlags: i32, ppSD: ?*?*IDispatch, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IGPMGPO, lFlags: i32, ppSD: ?*?*IDispatch, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, IsACLConsistent: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IGPMGPO, pvbConsistent: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IGPMGPO, pvbConsistent: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, MakeACLConsistent: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IGPMGPO, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IGPMGPO, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IDispatch.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IGPMGPO_get_DisplayName(self: *const T, pVal: ?*?BSTR) HRESULT { return @as(*const IGPMGPO.VTable, @ptrCast(self.vtable)).get_DisplayName(@as(*const IGPMGPO, @ptrCast(self)), pVal); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IGPMGPO_put_DisplayName(self: *const T, newVal: ?BSTR) HRESULT { return @as(*const IGPMGPO.VTable, @ptrCast(self.vtable)).put_DisplayName(@as(*const IGPMGPO, @ptrCast(self)), newVal); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IGPMGPO_get_Path(self: *const T, pVal: ?*?BSTR) HRESULT { return @as(*const IGPMGPO.VTable, @ptrCast(self.vtable)).get_Path(@as(*const IGPMGPO, @ptrCast(self)), pVal); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IGPMGPO_get_ID(self: *const T, pVal: ?*?BSTR) HRESULT { return @as(*const IGPMGPO.VTable, @ptrCast(self.vtable)).get_ID(@as(*const IGPMGPO, @ptrCast(self)), pVal); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IGPMGPO_get_DomainName(self: *const T, pVal: ?*?BSTR) HRESULT { return @as(*const IGPMGPO.VTable, @ptrCast(self.vtable)).get_DomainName(@as(*const IGPMGPO, @ptrCast(self)), pVal); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IGPMGPO_get_CreationTime(self: *const T, pDate: ?*f64) HRESULT { return @as(*const IGPMGPO.VTable, @ptrCast(self.vtable)).get_CreationTime(@as(*const IGPMGPO, @ptrCast(self)), pDate); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IGPMGPO_get_ModificationTime(self: *const T, pDate: ?*f64) HRESULT { return @as(*const IGPMGPO.VTable, @ptrCast(self.vtable)).get_ModificationTime(@as(*const IGPMGPO, @ptrCast(self)), pDate); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IGPMGPO_get_UserDSVersionNumber(self: *const T, pVal: ?*i32) HRESULT { return @as(*const IGPMGPO.VTable, @ptrCast(self.vtable)).get_UserDSVersionNumber(@as(*const IGPMGPO, @ptrCast(self)), pVal); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IGPMGPO_get_ComputerDSVersionNumber(self: *const T, pVal: ?*i32) HRESULT { return @as(*const IGPMGPO.VTable, @ptrCast(self.vtable)).get_ComputerDSVersionNumber(@as(*const IGPMGPO, @ptrCast(self)), pVal); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IGPMGPO_get_UserSysvolVersionNumber(self: *const T, pVal: ?*i32) HRESULT { return @as(*const IGPMGPO.VTable, @ptrCast(self.vtable)).get_UserSysvolVersionNumber(@as(*const IGPMGPO, @ptrCast(self)), pVal); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IGPMGPO_get_ComputerSysvolVersionNumber(self: *const T, pVal: ?*i32) HRESULT { return @as(*const IGPMGPO.VTable, @ptrCast(self.vtable)).get_ComputerSysvolVersionNumber(@as(*const IGPMGPO, @ptrCast(self)), pVal); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IGPMGPO_GetWMIFilter(self: *const T, ppIGPMWMIFilter: ?*?*IGPMWMIFilter) HRESULT { return @as(*const IGPMGPO.VTable, @ptrCast(self.vtable)).GetWMIFilter(@as(*const IGPMGPO, @ptrCast(self)), ppIGPMWMIFilter); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IGPMGPO_SetWMIFilter(self: *const T, pIGPMWMIFilter: ?*IGPMWMIFilter) HRESULT { return @as(*const IGPMGPO.VTable, @ptrCast(self.vtable)).SetWMIFilter(@as(*const IGPMGPO, @ptrCast(self)), pIGPMWMIFilter); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IGPMGPO_SetUserEnabled(self: *const T, vbEnabled: i16) HRESULT { return @as(*const IGPMGPO.VTable, @ptrCast(self.vtable)).SetUserEnabled(@as(*const IGPMGPO, @ptrCast(self)), vbEnabled); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IGPMGPO_SetComputerEnabled(self: *const T, vbEnabled: i16) HRESULT { return @as(*const IGPMGPO.VTable, @ptrCast(self.vtable)).SetComputerEnabled(@as(*const IGPMGPO, @ptrCast(self)), vbEnabled); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IGPMGPO_IsUserEnabled(self: *const T, pvbEnabled: ?*i16) HRESULT { return @as(*const IGPMGPO.VTable, @ptrCast(self.vtable)).IsUserEnabled(@as(*const IGPMGPO, @ptrCast(self)), pvbEnabled); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IGPMGPO_IsComputerEnabled(self: *const T, pvbEnabled: ?*i16) HRESULT { return @as(*const IGPMGPO.VTable, @ptrCast(self.vtable)).IsComputerEnabled(@as(*const IGPMGPO, @ptrCast(self)), pvbEnabled); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IGPMGPO_GetSecurityInfo(self: *const T, ppSecurityInfo: ?*?*IGPMSecurityInfo) HRESULT { return @as(*const IGPMGPO.VTable, @ptrCast(self.vtable)).GetSecurityInfo(@as(*const IGPMGPO, @ptrCast(self)), ppSecurityInfo); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IGPMGPO_SetSecurityInfo(self: *const T, pSecurityInfo: ?*IGPMSecurityInfo) HRESULT { return @as(*const IGPMGPO.VTable, @ptrCast(self.vtable)).SetSecurityInfo(@as(*const IGPMGPO, @ptrCast(self)), pSecurityInfo); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IGPMGPO_Delete(self: *const T) HRESULT { return @as(*const IGPMGPO.VTable, @ptrCast(self.vtable)).Delete(@as(*const IGPMGPO, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IGPMGPO_Backup(self: *const T, bstrBackupDir: ?BSTR, bstrComment: ?BSTR, pvarGPMProgress: ?*VARIANT, pvarGPMCancel: ?*VARIANT, ppIGPMResult: ?*?*IGPMResult) HRESULT { return @as(*const IGPMGPO.VTable, @ptrCast(self.vtable)).Backup(@as(*const IGPMGPO, @ptrCast(self)), bstrBackupDir, bstrComment, pvarGPMProgress, pvarGPMCancel, ppIGPMResult); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IGPMGPO_Import(self: *const T, lFlags: i32, pIGPMBackup: ?*IGPMBackup, pvarMigrationTable: ?*VARIANT, pvarGPMProgress: ?*VARIANT, pvarGPMCancel: ?*VARIANT, ppIGPMResult: ?*?*IGPMResult) HRESULT { return @as(*const IGPMGPO.VTable, @ptrCast(self.vtable)).Import(@as(*const IGPMGPO, @ptrCast(self)), lFlags, pIGPMBackup, pvarMigrationTable, pvarGPMProgress, pvarGPMCancel, ppIGPMResult); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IGPMGPO_GenerateReport(self: *const T, gpmReportType: GPMReportType, pvarGPMProgress: ?*VARIANT, pvarGPMCancel: ?*VARIANT, ppIGPMResult: ?*?*IGPMResult) HRESULT { return @as(*const IGPMGPO.VTable, @ptrCast(self.vtable)).GenerateReport(@as(*const IGPMGPO, @ptrCast(self)), gpmReportType, pvarGPMProgress, pvarGPMCancel, ppIGPMResult); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IGPMGPO_GenerateReportToFile(self: *const T, gpmReportType: GPMReportType, bstrTargetFilePath: ?BSTR, ppIGPMResult: ?*?*IGPMResult) HRESULT { return @as(*const IGPMGPO.VTable, @ptrCast(self.vtable)).GenerateReportToFile(@as(*const IGPMGPO, @ptrCast(self)), gpmReportType, bstrTargetFilePath, ppIGPMResult); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IGPMGPO_CopyTo(self: *const T, lFlags: i32, pIGPMDomain: ?*IGPMDomain, pvarNewDisplayName: ?*VARIANT, pvarMigrationTable: ?*VARIANT, pvarGPMProgress: ?*VARIANT, pvarGPMCancel: ?*VARIANT, ppIGPMResult: ?*?*IGPMResult) HRESULT { return @as(*const IGPMGPO.VTable, @ptrCast(self.vtable)).CopyTo(@as(*const IGPMGPO, @ptrCast(self)), lFlags, pIGPMDomain, pvarNewDisplayName, pvarMigrationTable, pvarGPMProgress, pvarGPMCancel, ppIGPMResult); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IGPMGPO_SetSecurityDescriptor(self: *const T, lFlags: i32, pSD: ?*IDispatch) HRESULT { return @as(*const IGPMGPO.VTable, @ptrCast(self.vtable)).SetSecurityDescriptor(@as(*const IGPMGPO, @ptrCast(self)), lFlags, pSD); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IGPMGPO_GetSecurityDescriptor(self: *const T, lFlags: i32, ppSD: ?*?*IDispatch) HRESULT { return @as(*const IGPMGPO.VTable, @ptrCast(self.vtable)).GetSecurityDescriptor(@as(*const IGPMGPO, @ptrCast(self)), lFlags, ppSD); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IGPMGPO_IsACLConsistent(self: *const T, pvbConsistent: ?*i16) HRESULT { return @as(*const IGPMGPO.VTable, @ptrCast(self.vtable)).IsACLConsistent(@as(*const IGPMGPO, @ptrCast(self)), pvbConsistent); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IGPMGPO_MakeACLConsistent(self: *const T) HRESULT { return @as(*const IGPMGPO.VTable, @ptrCast(self.vtable)).MakeACLConsistent(@as(*const IGPMGPO, @ptrCast(self))); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows6.0.6000' const IID_IGPMGPOCollection_Value = Guid.initString("f0f0d5cf-70ca-4c39-9e29-b642f8726c01"); pub const IID_IGPMGPOCollection = &IID_IGPMGPOCollection_Value; pub const IGPMGPOCollection = extern struct { pub const VTable = extern struct { base: IDispatch.VTable, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Count: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IGPMGPOCollection, pVal: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IGPMGPOCollection, pVal: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Item: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IGPMGPOCollection, lIndex: i32, pVal: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IGPMGPOCollection, lIndex: i32, pVal: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get__NewEnum: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IGPMGPOCollection, ppIGPMGPOs: ?*?*IEnumVARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IGPMGPOCollection, ppIGPMGPOs: ?*?*IEnumVARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IDispatch.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IGPMGPOCollection_get_Count(self: *const T, pVal: ?*i32) HRESULT { return @as(*const IGPMGPOCollection.VTable, @ptrCast(self.vtable)).get_Count(@as(*const IGPMGPOCollection, @ptrCast(self)), pVal); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IGPMGPOCollection_get_Item(self: *const T, lIndex: i32, pVal: ?*VARIANT) HRESULT { return @as(*const IGPMGPOCollection.VTable, @ptrCast(self.vtable)).get_Item(@as(*const IGPMGPOCollection, @ptrCast(self)), lIndex, pVal); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IGPMGPOCollection_get__NewEnum(self: *const T, ppIGPMGPOs: ?*?*IEnumVARIANT) HRESULT { return @as(*const IGPMGPOCollection.VTable, @ptrCast(self.vtable)).get__NewEnum(@as(*const IGPMGPOCollection, @ptrCast(self)), ppIGPMGPOs); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows6.0.6000' const IID_IGPMGPOLink_Value = Guid.initString("434b99bd-5de7-478a-809c-c251721df70c"); pub const IID_IGPMGPOLink = &IID_IGPMGPOLink_Value; pub const IGPMGPOLink = extern struct { pub const VTable = extern struct { base: IDispatch.VTable, // TODO: this function has a "SpecialName", should Zig do anything with this? get_GPOID: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IGPMGPOLink, pVal: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IGPMGPOLink, pVal: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_GPODomain: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IGPMGPOLink, pVal: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IGPMGPOLink, pVal: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Enabled: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IGPMGPOLink, pVal: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IGPMGPOLink, pVal: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_Enabled: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IGPMGPOLink, newVal: i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IGPMGPOLink, newVal: i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Enforced: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IGPMGPOLink, pVal: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IGPMGPOLink, pVal: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_Enforced: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IGPMGPOLink, newVal: i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IGPMGPOLink, newVal: i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_SOMLinkOrder: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IGPMGPOLink, lVal: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IGPMGPOLink, lVal: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_SOM: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IGPMGPOLink, ppIGPMSOM: ?*?*IGPMSOM, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IGPMGPOLink, ppIGPMSOM: ?*?*IGPMSOM, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Delete: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IGPMGPOLink, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IGPMGPOLink, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IDispatch.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IGPMGPOLink_get_GPOID(self: *const T, pVal: ?*?BSTR) HRESULT { return @as(*const IGPMGPOLink.VTable, @ptrCast(self.vtable)).get_GPOID(@as(*const IGPMGPOLink, @ptrCast(self)), pVal); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IGPMGPOLink_get_GPODomain(self: *const T, pVal: ?*?BSTR) HRESULT { return @as(*const IGPMGPOLink.VTable, @ptrCast(self.vtable)).get_GPODomain(@as(*const IGPMGPOLink, @ptrCast(self)), pVal); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IGPMGPOLink_get_Enabled(self: *const T, pVal: ?*i16) HRESULT { return @as(*const IGPMGPOLink.VTable, @ptrCast(self.vtable)).get_Enabled(@as(*const IGPMGPOLink, @ptrCast(self)), pVal); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IGPMGPOLink_put_Enabled(self: *const T, newVal: i16) HRESULT { return @as(*const IGPMGPOLink.VTable, @ptrCast(self.vtable)).put_Enabled(@as(*const IGPMGPOLink, @ptrCast(self)), newVal); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IGPMGPOLink_get_Enforced(self: *const T, pVal: ?*i16) HRESULT { return @as(*const IGPMGPOLink.VTable, @ptrCast(self.vtable)).get_Enforced(@as(*const IGPMGPOLink, @ptrCast(self)), pVal); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IGPMGPOLink_put_Enforced(self: *const T, newVal: i16) HRESULT { return @as(*const IGPMGPOLink.VTable, @ptrCast(self.vtable)).put_Enforced(@as(*const IGPMGPOLink, @ptrCast(self)), newVal); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IGPMGPOLink_get_SOMLinkOrder(self: *const T, lVal: ?*i32) HRESULT { return @as(*const IGPMGPOLink.VTable, @ptrCast(self.vtable)).get_SOMLinkOrder(@as(*const IGPMGPOLink, @ptrCast(self)), lVal); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IGPMGPOLink_get_SOM(self: *const T, ppIGPMSOM: ?*?*IGPMSOM) HRESULT { return @as(*const IGPMGPOLink.VTable, @ptrCast(self.vtable)).get_SOM(@as(*const IGPMGPOLink, @ptrCast(self)), ppIGPMSOM); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IGPMGPOLink_Delete(self: *const T) HRESULT { return @as(*const IGPMGPOLink.VTable, @ptrCast(self.vtable)).Delete(@as(*const IGPMGPOLink, @ptrCast(self))); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows6.0.6000' const IID_IGPMGPOLinksCollection_Value = Guid.initString("189d7b68-16bd-4d0d-a2ec-2e6aa2288c7f"); pub const IID_IGPMGPOLinksCollection = &IID_IGPMGPOLinksCollection_Value; pub const IGPMGPOLinksCollection = extern struct { pub const VTable = extern struct { base: IDispatch.VTable, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Count: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IGPMGPOLinksCollection, pVal: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IGPMGPOLinksCollection, pVal: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Item: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IGPMGPOLinksCollection, lIndex: i32, pVal: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IGPMGPOLinksCollection, lIndex: i32, pVal: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get__NewEnum: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IGPMGPOLinksCollection, ppIGPMLinks: ?*?*IEnumVARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IGPMGPOLinksCollection, ppIGPMLinks: ?*?*IEnumVARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IDispatch.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IGPMGPOLinksCollection_get_Count(self: *const T, pVal: ?*i32) HRESULT { return @as(*const IGPMGPOLinksCollection.VTable, @ptrCast(self.vtable)).get_Count(@as(*const IGPMGPOLinksCollection, @ptrCast(self)), pVal); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IGPMGPOLinksCollection_get_Item(self: *const T, lIndex: i32, pVal: ?*VARIANT) HRESULT { return @as(*const IGPMGPOLinksCollection.VTable, @ptrCast(self.vtable)).get_Item(@as(*const IGPMGPOLinksCollection, @ptrCast(self)), lIndex, pVal); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IGPMGPOLinksCollection_get__NewEnum(self: *const T, ppIGPMLinks: ?*?*IEnumVARIANT) HRESULT { return @as(*const IGPMGPOLinksCollection.VTable, @ptrCast(self.vtable)).get__NewEnum(@as(*const IGPMGPOLinksCollection, @ptrCast(self)), ppIGPMLinks); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows6.0.6000' const IID_IGPMCSECollection_Value = Guid.initString("2e52a97d-0a4a-4a6f-85db-201622455da0"); pub const IID_IGPMCSECollection = &IID_IGPMCSECollection_Value; pub const IGPMCSECollection = extern struct { pub const VTable = extern struct { base: IDispatch.VTable, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Count: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IGPMCSECollection, pVal: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IGPMCSECollection, pVal: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Item: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IGPMCSECollection, lIndex: i32, pVal: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IGPMCSECollection, lIndex: i32, pVal: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get__NewEnum: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IGPMCSECollection, ppIGPMCSEs: ?*?*IEnumVARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IGPMCSECollection, ppIGPMCSEs: ?*?*IEnumVARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IDispatch.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IGPMCSECollection_get_Count(self: *const T, pVal: ?*i32) HRESULT { return @as(*const IGPMCSECollection.VTable, @ptrCast(self.vtable)).get_Count(@as(*const IGPMCSECollection, @ptrCast(self)), pVal); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IGPMCSECollection_get_Item(self: *const T, lIndex: i32, pVal: ?*VARIANT) HRESULT { return @as(*const IGPMCSECollection.VTable, @ptrCast(self.vtable)).get_Item(@as(*const IGPMCSECollection, @ptrCast(self)), lIndex, pVal); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IGPMCSECollection_get__NewEnum(self: *const T, ppIGPMCSEs: ?*?*IEnumVARIANT) HRESULT { return @as(*const IGPMCSECollection.VTable, @ptrCast(self.vtable)).get__NewEnum(@as(*const IGPMCSECollection, @ptrCast(self)), ppIGPMCSEs); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows6.0.6000' const IID_IGPMClientSideExtension_Value = Guid.initString("69da7488-b8db-415e-9266-901be4d49928"); pub const IID_IGPMClientSideExtension = &IID_IGPMClientSideExtension_Value; pub const IGPMClientSideExtension = extern struct { pub const VTable = extern struct { base: IDispatch.VTable, // TODO: this function has a "SpecialName", should Zig do anything with this? get_ID: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IGPMClientSideExtension, pVal: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IGPMClientSideExtension, pVal: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_DisplayName: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IGPMClientSideExtension, pVal: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IGPMClientSideExtension, pVal: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, IsUserEnabled: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IGPMClientSideExtension, pvbEnabled: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IGPMClientSideExtension, pvbEnabled: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, IsComputerEnabled: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IGPMClientSideExtension, pvbEnabled: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IGPMClientSideExtension, pvbEnabled: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IDispatch.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IGPMClientSideExtension_get_ID(self: *const T, pVal: ?*?BSTR) HRESULT { return @as(*const IGPMClientSideExtension.VTable, @ptrCast(self.vtable)).get_ID(@as(*const IGPMClientSideExtension, @ptrCast(self)), pVal); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IGPMClientSideExtension_get_DisplayName(self: *const T, pVal: ?*?BSTR) HRESULT { return @as(*const IGPMClientSideExtension.VTable, @ptrCast(self.vtable)).get_DisplayName(@as(*const IGPMClientSideExtension, @ptrCast(self)), pVal); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IGPMClientSideExtension_IsUserEnabled(self: *const T, pvbEnabled: ?*i16) HRESULT { return @as(*const IGPMClientSideExtension.VTable, @ptrCast(self.vtable)).IsUserEnabled(@as(*const IGPMClientSideExtension, @ptrCast(self)), pvbEnabled); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IGPMClientSideExtension_IsComputerEnabled(self: *const T, pvbEnabled: ?*i16) HRESULT { return @as(*const IGPMClientSideExtension.VTable, @ptrCast(self.vtable)).IsComputerEnabled(@as(*const IGPMClientSideExtension, @ptrCast(self)), pvbEnabled); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows6.0.6000' const IID_IGPMAsyncCancel_Value = Guid.initString("ddc67754-be67-4541-8166-f48166868c9c"); pub const IID_IGPMAsyncCancel = &IID_IGPMAsyncCancel_Value; pub const IGPMAsyncCancel = extern struct { pub const VTable = extern struct { base: IDispatch.VTable, Cancel: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IGPMAsyncCancel, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IGPMAsyncCancel, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IDispatch.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IGPMAsyncCancel_Cancel(self: *const T) HRESULT { return @as(*const IGPMAsyncCancel.VTable, @ptrCast(self.vtable)).Cancel(@as(*const IGPMAsyncCancel, @ptrCast(self))); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows6.0.6000' const IID_IGPMAsyncProgress_Value = Guid.initString("6aac29f8-5948-4324-bf70-423818942dbc"); pub const IID_IGPMAsyncProgress = &IID_IGPMAsyncProgress_Value; pub const IGPMAsyncProgress = extern struct { pub const VTable = extern struct { base: IDispatch.VTable, Status: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IGPMAsyncProgress, lProgressNumerator: i32, lProgressDenominator: i32, hrStatus: HRESULT, pResult: ?*VARIANT, ppIGPMStatusMsgCollection: ?*IGPMStatusMsgCollection, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IGPMAsyncProgress, lProgressNumerator: i32, lProgressDenominator: i32, hrStatus: HRESULT, pResult: ?*VARIANT, ppIGPMStatusMsgCollection: ?*IGPMStatusMsgCollection, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IDispatch.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IGPMAsyncProgress_Status(self: *const T, lProgressNumerator: i32, lProgressDenominator: i32, hrStatus: HRESULT, pResult: ?*VARIANT, ppIGPMStatusMsgCollection: ?*IGPMStatusMsgCollection) HRESULT { return @as(*const IGPMAsyncProgress.VTable, @ptrCast(self.vtable)).Status(@as(*const IGPMAsyncProgress, @ptrCast(self)), lProgressNumerator, lProgressDenominator, hrStatus, pResult, ppIGPMStatusMsgCollection); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows6.0.6000' const IID_IGPMStatusMsgCollection_Value = Guid.initString("9b6e1af0-1a92-40f3-a59d-f36ac1f728b7"); pub const IID_IGPMStatusMsgCollection = &IID_IGPMStatusMsgCollection_Value; pub const IGPMStatusMsgCollection = extern struct { pub const VTable = extern struct { base: IDispatch.VTable, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Count: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IGPMStatusMsgCollection, pVal: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IGPMStatusMsgCollection, pVal: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Item: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IGPMStatusMsgCollection, lIndex: i32, pVal: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IGPMStatusMsgCollection, lIndex: i32, pVal: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get__NewEnum: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IGPMStatusMsgCollection, pVal: ?*?*IEnumVARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IGPMStatusMsgCollection, pVal: ?*?*IEnumVARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IDispatch.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IGPMStatusMsgCollection_get_Count(self: *const T, pVal: ?*i32) HRESULT { return @as(*const IGPMStatusMsgCollection.VTable, @ptrCast(self.vtable)).get_Count(@as(*const IGPMStatusMsgCollection, @ptrCast(self)), pVal); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IGPMStatusMsgCollection_get_Item(self: *const T, lIndex: i32, pVal: ?*VARIANT) HRESULT { return @as(*const IGPMStatusMsgCollection.VTable, @ptrCast(self.vtable)).get_Item(@as(*const IGPMStatusMsgCollection, @ptrCast(self)), lIndex, pVal); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IGPMStatusMsgCollection_get__NewEnum(self: *const T, pVal: ?*?*IEnumVARIANT) HRESULT { return @as(*const IGPMStatusMsgCollection.VTable, @ptrCast(self.vtable)).get__NewEnum(@as(*const IGPMStatusMsgCollection, @ptrCast(self)), pVal); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows6.0.6000' const IID_IGPMStatusMessage_Value = Guid.initString("8496c22f-f3de-4a1f-8f58-603caaa93d7b"); pub const IID_IGPMStatusMessage = &IID_IGPMStatusMessage_Value; pub const IGPMStatusMessage = extern struct { pub const VTable = extern struct { base: IDispatch.VTable, // TODO: this function has a "SpecialName", should Zig do anything with this? get_ObjectPath: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IGPMStatusMessage, pVal: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IGPMStatusMessage, pVal: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, ErrorCode: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IGPMStatusMessage, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IGPMStatusMessage, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_ExtensionName: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IGPMStatusMessage, pVal: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IGPMStatusMessage, pVal: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_SettingsName: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IGPMStatusMessage, pVal: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IGPMStatusMessage, pVal: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, OperationCode: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IGPMStatusMessage, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IGPMStatusMessage, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Message: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IGPMStatusMessage, pVal: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IGPMStatusMessage, pVal: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IDispatch.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IGPMStatusMessage_get_ObjectPath(self: *const T, pVal: ?*?BSTR) HRESULT { return @as(*const IGPMStatusMessage.VTable, @ptrCast(self.vtable)).get_ObjectPath(@as(*const IGPMStatusMessage, @ptrCast(self)), pVal); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IGPMStatusMessage_ErrorCode(self: *const T) HRESULT { return @as(*const IGPMStatusMessage.VTable, @ptrCast(self.vtable)).ErrorCode(@as(*const IGPMStatusMessage, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IGPMStatusMessage_get_ExtensionName(self: *const T, pVal: ?*?BSTR) HRESULT { return @as(*const IGPMStatusMessage.VTable, @ptrCast(self.vtable)).get_ExtensionName(@as(*const IGPMStatusMessage, @ptrCast(self)), pVal); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IGPMStatusMessage_get_SettingsName(self: *const T, pVal: ?*?BSTR) HRESULT { return @as(*const IGPMStatusMessage.VTable, @ptrCast(self.vtable)).get_SettingsName(@as(*const IGPMStatusMessage, @ptrCast(self)), pVal); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IGPMStatusMessage_OperationCode(self: *const T) HRESULT { return @as(*const IGPMStatusMessage.VTable, @ptrCast(self.vtable)).OperationCode(@as(*const IGPMStatusMessage, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IGPMStatusMessage_get_Message(self: *const T, pVal: ?*?BSTR) HRESULT { return @as(*const IGPMStatusMessage.VTable, @ptrCast(self.vtable)).get_Message(@as(*const IGPMStatusMessage, @ptrCast(self)), pVal); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows6.0.6000' const IID_IGPMConstants_Value = Guid.initString("50ef73e6-d35c-4c8d-be63-7ea5d2aac5c4"); pub const IID_IGPMConstants = &IID_IGPMConstants_Value; pub const IGPMConstants = extern struct { pub const VTable = extern struct { base: IDispatch.VTable, // TODO: this function has a "SpecialName", should Zig do anything with this? get_PermGPOApply: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IGPMConstants, pVal: ?*GPMPermissionType, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IGPMConstants, pVal: ?*GPMPermissionType, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_PermGPORead: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IGPMConstants, pVal: ?*GPMPermissionType, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IGPMConstants, pVal: ?*GPMPermissionType, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_PermGPOEdit: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IGPMConstants, pVal: ?*GPMPermissionType, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IGPMConstants, pVal: ?*GPMPermissionType, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_PermGPOEditSecurityAndDelete: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IGPMConstants, pVal: ?*GPMPermissionType, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IGPMConstants, pVal: ?*GPMPermissionType, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_PermGPOCustom: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IGPMConstants, pVal: ?*GPMPermissionType, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IGPMConstants, pVal: ?*GPMPermissionType, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_PermWMIFilterEdit: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IGPMConstants, pVal: ?*GPMPermissionType, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IGPMConstants, pVal: ?*GPMPermissionType, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_PermWMIFilterFullControl: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IGPMConstants, pVal: ?*GPMPermissionType, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IGPMConstants, pVal: ?*GPMPermissionType, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_PermWMIFilterCustom: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IGPMConstants, pVal: ?*GPMPermissionType, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IGPMConstants, pVal: ?*GPMPermissionType, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_PermSOMLink: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IGPMConstants, pVal: ?*GPMPermissionType, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IGPMConstants, pVal: ?*GPMPermissionType, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_PermSOMLogging: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IGPMConstants, pVal: ?*GPMPermissionType, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IGPMConstants, pVal: ?*GPMPermissionType, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_PermSOMPlanning: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IGPMConstants, pVal: ?*GPMPermissionType, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IGPMConstants, pVal: ?*GPMPermissionType, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_PermSOMGPOCreate: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IGPMConstants, pVal: ?*GPMPermissionType, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IGPMConstants, pVal: ?*GPMPermissionType, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_PermSOMWMICreate: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IGPMConstants, pVal: ?*GPMPermissionType, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IGPMConstants, pVal: ?*GPMPermissionType, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_PermSOMWMIFullControl: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IGPMConstants, pVal: ?*GPMPermissionType, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IGPMConstants, pVal: ?*GPMPermissionType, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_SearchPropertyGPOPermissions: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IGPMConstants, pVal: ?*GPMSearchProperty, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IGPMConstants, pVal: ?*GPMSearchProperty, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_SearchPropertyGPOEffectivePermissions: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IGPMConstants, pVal: ?*GPMSearchProperty, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IGPMConstants, pVal: ?*GPMSearchProperty, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_SearchPropertyGPODisplayName: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IGPMConstants, pVal: ?*GPMSearchProperty, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IGPMConstants, pVal: ?*GPMSearchProperty, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_SearchPropertyGPOWMIFilter: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IGPMConstants, pVal: ?*GPMSearchProperty, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IGPMConstants, pVal: ?*GPMSearchProperty, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_SearchPropertyGPOID: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IGPMConstants, pVal: ?*GPMSearchProperty, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IGPMConstants, pVal: ?*GPMSearchProperty, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_SearchPropertyGPOComputerExtensions: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IGPMConstants, pVal: ?*GPMSearchProperty, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IGPMConstants, pVal: ?*GPMSearchProperty, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_SearchPropertyGPOUserExtensions: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IGPMConstants, pVal: ?*GPMSearchProperty, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IGPMConstants, pVal: ?*GPMSearchProperty, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_SearchPropertySOMLinks: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IGPMConstants, pVal: ?*GPMSearchProperty, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IGPMConstants, pVal: ?*GPMSearchProperty, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_SearchPropertyGPODomain: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IGPMConstants, pVal: ?*GPMSearchProperty, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IGPMConstants, pVal: ?*GPMSearchProperty, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_SearchPropertyBackupMostRecent: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IGPMConstants, pVal: ?*GPMSearchProperty, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IGPMConstants, pVal: ?*GPMSearchProperty, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_SearchOpEquals: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IGPMConstants, pVal: ?*GPMSearchOperation, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IGPMConstants, pVal: ?*GPMSearchOperation, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_SearchOpContains: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IGPMConstants, pVal: ?*GPMSearchOperation, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IGPMConstants, pVal: ?*GPMSearchOperation, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_SearchOpNotContains: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IGPMConstants, pVal: ?*GPMSearchOperation, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IGPMConstants, pVal: ?*GPMSearchOperation, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_SearchOpNotEquals: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IGPMConstants, pVal: ?*GPMSearchOperation, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IGPMConstants, pVal: ?*GPMSearchOperation, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_UsePDC: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IGPMConstants, pVal: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IGPMConstants, pVal: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_UseAnyDC: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IGPMConstants, pVal: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IGPMConstants, pVal: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_DoNotUseW2KDC: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IGPMConstants, pVal: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IGPMConstants, pVal: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_SOMSite: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IGPMConstants, pVal: ?*GPMSOMType, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IGPMConstants, pVal: ?*GPMSOMType, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_SOMDomain: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IGPMConstants, pVal: ?*GPMSOMType, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IGPMConstants, pVal: ?*GPMSOMType, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_SOMOU: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IGPMConstants, pVal: ?*GPMSOMType, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IGPMConstants, pVal: ?*GPMSOMType, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_SecurityFlags: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IGPMConstants, vbOwner: i16, vbGroup: i16, vbDACL: i16, vbSACL: i16, pVal: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IGPMConstants, vbOwner: i16, vbGroup: i16, vbDACL: i16, vbSACL: i16, pVal: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_DoNotValidateDC: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IGPMConstants, pVal: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IGPMConstants, pVal: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_ReportHTML: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IGPMConstants, pVal: ?*GPMReportType, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IGPMConstants, pVal: ?*GPMReportType, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_ReportXML: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IGPMConstants, pVal: ?*GPMReportType, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IGPMConstants, pVal: ?*GPMReportType, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_RSOPModeUnknown: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IGPMConstants, pVal: ?*GPMRSOPMode, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IGPMConstants, pVal: ?*GPMRSOPMode, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_RSOPModePlanning: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IGPMConstants, pVal: ?*GPMRSOPMode, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IGPMConstants, pVal: ?*GPMRSOPMode, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_RSOPModeLogging: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IGPMConstants, pVal: ?*GPMRSOPMode, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IGPMConstants, pVal: ?*GPMRSOPMode, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_EntryTypeUser: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IGPMConstants, pVal: ?*GPMEntryType, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IGPMConstants, pVal: ?*GPMEntryType, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_EntryTypeComputer: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IGPMConstants, pVal: ?*GPMEntryType, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IGPMConstants, pVal: ?*GPMEntryType, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_EntryTypeLocalGroup: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IGPMConstants, pVal: ?*GPMEntryType, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IGPMConstants, pVal: ?*GPMEntryType, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_EntryTypeGlobalGroup: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IGPMConstants, pVal: ?*GPMEntryType, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IGPMConstants, pVal: ?*GPMEntryType, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_EntryTypeUniversalGroup: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IGPMConstants, pVal: ?*GPMEntryType, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IGPMConstants, pVal: ?*GPMEntryType, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_EntryTypeUNCPath: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IGPMConstants, pVal: ?*GPMEntryType, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IGPMConstants, pVal: ?*GPMEntryType, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_EntryTypeUnknown: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IGPMConstants, pVal: ?*GPMEntryType, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IGPMConstants, pVal: ?*GPMEntryType, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_DestinationOptionSameAsSource: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IGPMConstants, pVal: ?*GPMDestinationOption, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IGPMConstants, pVal: ?*GPMDestinationOption, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_DestinationOptionNone: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IGPMConstants, pVal: ?*GPMDestinationOption, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IGPMConstants, pVal: ?*GPMDestinationOption, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_DestinationOptionByRelativeName: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IGPMConstants, pVal: ?*GPMDestinationOption, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IGPMConstants, pVal: ?*GPMDestinationOption, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_DestinationOptionSet: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IGPMConstants, pVal: ?*GPMDestinationOption, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IGPMConstants, pVal: ?*GPMDestinationOption, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_MigrationTableOnly: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IGPMConstants, pVal: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IGPMConstants, pVal: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_ProcessSecurity: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IGPMConstants, pVal: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IGPMConstants, pVal: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_RsopLoggingNoComputer: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IGPMConstants, pVal: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IGPMConstants, pVal: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_RsopLoggingNoUser: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IGPMConstants, pVal: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IGPMConstants, pVal: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_RsopPlanningAssumeSlowLink: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IGPMConstants, pVal: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IGPMConstants, pVal: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_RsopPlanningLoopbackOption: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IGPMConstants, vbMerge: i16, pVal: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IGPMConstants, vbMerge: i16, pVal: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_RsopPlanningAssumeUserWQLFilterTrue: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IGPMConstants, pVal: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IGPMConstants, pVal: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_RsopPlanningAssumeCompWQLFilterTrue: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IGPMConstants, pVal: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IGPMConstants, pVal: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IDispatch.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IGPMConstants_get_PermGPOApply(self: *const T, pVal: ?*GPMPermissionType) HRESULT { return @as(*const IGPMConstants.VTable, @ptrCast(self.vtable)).get_PermGPOApply(@as(*const IGPMConstants, @ptrCast(self)), pVal); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IGPMConstants_get_PermGPORead(self: *const T, pVal: ?*GPMPermissionType) HRESULT { return @as(*const IGPMConstants.VTable, @ptrCast(self.vtable)).get_PermGPORead(@as(*const IGPMConstants, @ptrCast(self)), pVal); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IGPMConstants_get_PermGPOEdit(self: *const T, pVal: ?*GPMPermissionType) HRESULT { return @as(*const IGPMConstants.VTable, @ptrCast(self.vtable)).get_PermGPOEdit(@as(*const IGPMConstants, @ptrCast(self)), pVal); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IGPMConstants_get_PermGPOEditSecurityAndDelete(self: *const T, pVal: ?*GPMPermissionType) HRESULT { return @as(*const IGPMConstants.VTable, @ptrCast(self.vtable)).get_PermGPOEditSecurityAndDelete(@as(*const IGPMConstants, @ptrCast(self)), pVal); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IGPMConstants_get_PermGPOCustom(self: *const T, pVal: ?*GPMPermissionType) HRESULT { return @as(*const IGPMConstants.VTable, @ptrCast(self.vtable)).get_PermGPOCustom(@as(*const IGPMConstants, @ptrCast(self)), pVal); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IGPMConstants_get_PermWMIFilterEdit(self: *const T, pVal: ?*GPMPermissionType) HRESULT { return @as(*const IGPMConstants.VTable, @ptrCast(self.vtable)).get_PermWMIFilterEdit(@as(*const IGPMConstants, @ptrCast(self)), pVal); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IGPMConstants_get_PermWMIFilterFullControl(self: *const T, pVal: ?*GPMPermissionType) HRESULT { return @as(*const IGPMConstants.VTable, @ptrCast(self.vtable)).get_PermWMIFilterFullControl(@as(*const IGPMConstants, @ptrCast(self)), pVal); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IGPMConstants_get_PermWMIFilterCustom(self: *const T, pVal: ?*GPMPermissionType) HRESULT { return @as(*const IGPMConstants.VTable, @ptrCast(self.vtable)).get_PermWMIFilterCustom(@as(*const IGPMConstants, @ptrCast(self)), pVal); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IGPMConstants_get_PermSOMLink(self: *const T, pVal: ?*GPMPermissionType) HRESULT { return @as(*const IGPMConstants.VTable, @ptrCast(self.vtable)).get_PermSOMLink(@as(*const IGPMConstants, @ptrCast(self)), pVal); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IGPMConstants_get_PermSOMLogging(self: *const T, pVal: ?*GPMPermissionType) HRESULT { return @as(*const IGPMConstants.VTable, @ptrCast(self.vtable)).get_PermSOMLogging(@as(*const IGPMConstants, @ptrCast(self)), pVal); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IGPMConstants_get_PermSOMPlanning(self: *const T, pVal: ?*GPMPermissionType) HRESULT { return @as(*const IGPMConstants.VTable, @ptrCast(self.vtable)).get_PermSOMPlanning(@as(*const IGPMConstants, @ptrCast(self)), pVal); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IGPMConstants_get_PermSOMGPOCreate(self: *const T, pVal: ?*GPMPermissionType) HRESULT { return @as(*const IGPMConstants.VTable, @ptrCast(self.vtable)).get_PermSOMGPOCreate(@as(*const IGPMConstants, @ptrCast(self)), pVal); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IGPMConstants_get_PermSOMWMICreate(self: *const T, pVal: ?*GPMPermissionType) HRESULT { return @as(*const IGPMConstants.VTable, @ptrCast(self.vtable)).get_PermSOMWMICreate(@as(*const IGPMConstants, @ptrCast(self)), pVal); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IGPMConstants_get_PermSOMWMIFullControl(self: *const T, pVal: ?*GPMPermissionType) HRESULT { return @as(*const IGPMConstants.VTable, @ptrCast(self.vtable)).get_PermSOMWMIFullControl(@as(*const IGPMConstants, @ptrCast(self)), pVal); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IGPMConstants_get_SearchPropertyGPOPermissions(self: *const T, pVal: ?*GPMSearchProperty) HRESULT { return @as(*const IGPMConstants.VTable, @ptrCast(self.vtable)).get_SearchPropertyGPOPermissions(@as(*const IGPMConstants, @ptrCast(self)), pVal); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IGPMConstants_get_SearchPropertyGPOEffectivePermissions(self: *const T, pVal: ?*GPMSearchProperty) HRESULT { return @as(*const IGPMConstants.VTable, @ptrCast(self.vtable)).get_SearchPropertyGPOEffectivePermissions(@as(*const IGPMConstants, @ptrCast(self)), pVal); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IGPMConstants_get_SearchPropertyGPODisplayName(self: *const T, pVal: ?*GPMSearchProperty) HRESULT { return @as(*const IGPMConstants.VTable, @ptrCast(self.vtable)).get_SearchPropertyGPODisplayName(@as(*const IGPMConstants, @ptrCast(self)), pVal); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IGPMConstants_get_SearchPropertyGPOWMIFilter(self: *const T, pVal: ?*GPMSearchProperty) HRESULT { return @as(*const IGPMConstants.VTable, @ptrCast(self.vtable)).get_SearchPropertyGPOWMIFilter(@as(*const IGPMConstants, @ptrCast(self)), pVal); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IGPMConstants_get_SearchPropertyGPOID(self: *const T, pVal: ?*GPMSearchProperty) HRESULT { return @as(*const IGPMConstants.VTable, @ptrCast(self.vtable)).get_SearchPropertyGPOID(@as(*const IGPMConstants, @ptrCast(self)), pVal); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IGPMConstants_get_SearchPropertyGPOComputerExtensions(self: *const T, pVal: ?*GPMSearchProperty) HRESULT { return @as(*const IGPMConstants.VTable, @ptrCast(self.vtable)).get_SearchPropertyGPOComputerExtensions(@as(*const IGPMConstants, @ptrCast(self)), pVal); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IGPMConstants_get_SearchPropertyGPOUserExtensions(self: *const T, pVal: ?*GPMSearchProperty) HRESULT { return @as(*const IGPMConstants.VTable, @ptrCast(self.vtable)).get_SearchPropertyGPOUserExtensions(@as(*const IGPMConstants, @ptrCast(self)), pVal); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IGPMConstants_get_SearchPropertySOMLinks(self: *const T, pVal: ?*GPMSearchProperty) HRESULT { return @as(*const IGPMConstants.VTable, @ptrCast(self.vtable)).get_SearchPropertySOMLinks(@as(*const IGPMConstants, @ptrCast(self)), pVal); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IGPMConstants_get_SearchPropertyGPODomain(self: *const T, pVal: ?*GPMSearchProperty) HRESULT { return @as(*const IGPMConstants.VTable, @ptrCast(self.vtable)).get_SearchPropertyGPODomain(@as(*const IGPMConstants, @ptrCast(self)), pVal); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IGPMConstants_get_SearchPropertyBackupMostRecent(self: *const T, pVal: ?*GPMSearchProperty) HRESULT { return @as(*const IGPMConstants.VTable, @ptrCast(self.vtable)).get_SearchPropertyBackupMostRecent(@as(*const IGPMConstants, @ptrCast(self)), pVal); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IGPMConstants_get_SearchOpEquals(self: *const T, pVal: ?*GPMSearchOperation) HRESULT { return @as(*const IGPMConstants.VTable, @ptrCast(self.vtable)).get_SearchOpEquals(@as(*const IGPMConstants, @ptrCast(self)), pVal); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IGPMConstants_get_SearchOpContains(self: *const T, pVal: ?*GPMSearchOperation) HRESULT { return @as(*const IGPMConstants.VTable, @ptrCast(self.vtable)).get_SearchOpContains(@as(*const IGPMConstants, @ptrCast(self)), pVal); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IGPMConstants_get_SearchOpNotContains(self: *const T, pVal: ?*GPMSearchOperation) HRESULT { return @as(*const IGPMConstants.VTable, @ptrCast(self.vtable)).get_SearchOpNotContains(@as(*const IGPMConstants, @ptrCast(self)), pVal); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IGPMConstants_get_SearchOpNotEquals(self: *const T, pVal: ?*GPMSearchOperation) HRESULT { return @as(*const IGPMConstants.VTable, @ptrCast(self.vtable)).get_SearchOpNotEquals(@as(*const IGPMConstants, @ptrCast(self)), pVal); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IGPMConstants_get_UsePDC(self: *const T, pVal: ?*i32) HRESULT { return @as(*const IGPMConstants.VTable, @ptrCast(self.vtable)).get_UsePDC(@as(*const IGPMConstants, @ptrCast(self)), pVal); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IGPMConstants_get_UseAnyDC(self: *const T, pVal: ?*i32) HRESULT { return @as(*const IGPMConstants.VTable, @ptrCast(self.vtable)).get_UseAnyDC(@as(*const IGPMConstants, @ptrCast(self)), pVal); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IGPMConstants_get_DoNotUseW2KDC(self: *const T, pVal: ?*i32) HRESULT { return @as(*const IGPMConstants.VTable, @ptrCast(self.vtable)).get_DoNotUseW2KDC(@as(*const IGPMConstants, @ptrCast(self)), pVal); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IGPMConstants_get_SOMSite(self: *const T, pVal: ?*GPMSOMType) HRESULT { return @as(*const IGPMConstants.VTable, @ptrCast(self.vtable)).get_SOMSite(@as(*const IGPMConstants, @ptrCast(self)), pVal); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IGPMConstants_get_SOMDomain(self: *const T, pVal: ?*GPMSOMType) HRESULT { return @as(*const IGPMConstants.VTable, @ptrCast(self.vtable)).get_SOMDomain(@as(*const IGPMConstants, @ptrCast(self)), pVal); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IGPMConstants_get_SOMOU(self: *const T, pVal: ?*GPMSOMType) HRESULT { return @as(*const IGPMConstants.VTable, @ptrCast(self.vtable)).get_SOMOU(@as(*const IGPMConstants, @ptrCast(self)), pVal); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IGPMConstants_get_SecurityFlags(self: *const T, vbOwner: i16, vbGroup: i16, vbDACL: i16, vbSACL: i16, pVal: ?*i32) HRESULT { return @as(*const IGPMConstants.VTable, @ptrCast(self.vtable)).get_SecurityFlags(@as(*const IGPMConstants, @ptrCast(self)), vbOwner, vbGroup, vbDACL, vbSACL, pVal); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IGPMConstants_get_DoNotValidateDC(self: *const T, pVal: ?*i32) HRESULT { return @as(*const IGPMConstants.VTable, @ptrCast(self.vtable)).get_DoNotValidateDC(@as(*const IGPMConstants, @ptrCast(self)), pVal); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IGPMConstants_get_ReportHTML(self: *const T, pVal: ?*GPMReportType) HRESULT { return @as(*const IGPMConstants.VTable, @ptrCast(self.vtable)).get_ReportHTML(@as(*const IGPMConstants, @ptrCast(self)), pVal); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IGPMConstants_get_ReportXML(self: *const T, pVal: ?*GPMReportType) HRESULT { return @as(*const IGPMConstants.VTable, @ptrCast(self.vtable)).get_ReportXML(@as(*const IGPMConstants, @ptrCast(self)), pVal); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IGPMConstants_get_RSOPModeUnknown(self: *const T, pVal: ?*GPMRSOPMode) HRESULT { return @as(*const IGPMConstants.VTable, @ptrCast(self.vtable)).get_RSOPModeUnknown(@as(*const IGPMConstants, @ptrCast(self)), pVal); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IGPMConstants_get_RSOPModePlanning(self: *const T, pVal: ?*GPMRSOPMode) HRESULT { return @as(*const IGPMConstants.VTable, @ptrCast(self.vtable)).get_RSOPModePlanning(@as(*const IGPMConstants, @ptrCast(self)), pVal); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IGPMConstants_get_RSOPModeLogging(self: *const T, pVal: ?*GPMRSOPMode) HRESULT { return @as(*const IGPMConstants.VTable, @ptrCast(self.vtable)).get_RSOPModeLogging(@as(*const IGPMConstants, @ptrCast(self)), pVal); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IGPMConstants_get_EntryTypeUser(self: *const T, pVal: ?*GPMEntryType) HRESULT { return @as(*const IGPMConstants.VTable, @ptrCast(self.vtable)).get_EntryTypeUser(@as(*const IGPMConstants, @ptrCast(self)), pVal); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IGPMConstants_get_EntryTypeComputer(self: *const T, pVal: ?*GPMEntryType) HRESULT { return @as(*const IGPMConstants.VTable, @ptrCast(self.vtable)).get_EntryTypeComputer(@as(*const IGPMConstants, @ptrCast(self)), pVal); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IGPMConstants_get_EntryTypeLocalGroup(self: *const T, pVal: ?*GPMEntryType) HRESULT { return @as(*const IGPMConstants.VTable, @ptrCast(self.vtable)).get_EntryTypeLocalGroup(@as(*const IGPMConstants, @ptrCast(self)), pVal); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IGPMConstants_get_EntryTypeGlobalGroup(self: *const T, pVal: ?*GPMEntryType) HRESULT { return @as(*const IGPMConstants.VTable, @ptrCast(self.vtable)).get_EntryTypeGlobalGroup(@as(*const IGPMConstants, @ptrCast(self)), pVal); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IGPMConstants_get_EntryTypeUniversalGroup(self: *const T, pVal: ?*GPMEntryType) HRESULT { return @as(*const IGPMConstants.VTable, @ptrCast(self.vtable)).get_EntryTypeUniversalGroup(@as(*const IGPMConstants, @ptrCast(self)), pVal); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IGPMConstants_get_EntryTypeUNCPath(self: *const T, pVal: ?*GPMEntryType) HRESULT { return @as(*const IGPMConstants.VTable, @ptrCast(self.vtable)).get_EntryTypeUNCPath(@as(*const IGPMConstants, @ptrCast(self)), pVal); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IGPMConstants_get_EntryTypeUnknown(self: *const T, pVal: ?*GPMEntryType) HRESULT { return @as(*const IGPMConstants.VTable, @ptrCast(self.vtable)).get_EntryTypeUnknown(@as(*const IGPMConstants, @ptrCast(self)), pVal); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IGPMConstants_get_DestinationOptionSameAsSource(self: *const T, pVal: ?*GPMDestinationOption) HRESULT { return @as(*const IGPMConstants.VTable, @ptrCast(self.vtable)).get_DestinationOptionSameAsSource(@as(*const IGPMConstants, @ptrCast(self)), pVal); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IGPMConstants_get_DestinationOptionNone(self: *const T, pVal: ?*GPMDestinationOption) HRESULT { return @as(*const IGPMConstants.VTable, @ptrCast(self.vtable)).get_DestinationOptionNone(@as(*const IGPMConstants, @ptrCast(self)), pVal); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IGPMConstants_get_DestinationOptionByRelativeName(self: *const T, pVal: ?*GPMDestinationOption) HRESULT { return @as(*const IGPMConstants.VTable, @ptrCast(self.vtable)).get_DestinationOptionByRelativeName(@as(*const IGPMConstants, @ptrCast(self)), pVal); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IGPMConstants_get_DestinationOptionSet(self: *const T, pVal: ?*GPMDestinationOption) HRESULT { return @as(*const IGPMConstants.VTable, @ptrCast(self.vtable)).get_DestinationOptionSet(@as(*const IGPMConstants, @ptrCast(self)), pVal); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IGPMConstants_get_MigrationTableOnly(self: *const T, pVal: ?*i32) HRESULT { return @as(*const IGPMConstants.VTable, @ptrCast(self.vtable)).get_MigrationTableOnly(@as(*const IGPMConstants, @ptrCast(self)), pVal); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IGPMConstants_get_ProcessSecurity(self: *const T, pVal: ?*i32) HRESULT { return @as(*const IGPMConstants.VTable, @ptrCast(self.vtable)).get_ProcessSecurity(@as(*const IGPMConstants, @ptrCast(self)), pVal); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IGPMConstants_get_RsopLoggingNoComputer(self: *const T, pVal: ?*i32) HRESULT { return @as(*const IGPMConstants.VTable, @ptrCast(self.vtable)).get_RsopLoggingNoComputer(@as(*const IGPMConstants, @ptrCast(self)), pVal); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IGPMConstants_get_RsopLoggingNoUser(self: *const T, pVal: ?*i32) HRESULT { return @as(*const IGPMConstants.VTable, @ptrCast(self.vtable)).get_RsopLoggingNoUser(@as(*const IGPMConstants, @ptrCast(self)), pVal); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IGPMConstants_get_RsopPlanningAssumeSlowLink(self: *const T, pVal: ?*i32) HRESULT { return @as(*const IGPMConstants.VTable, @ptrCast(self.vtable)).get_RsopPlanningAssumeSlowLink(@as(*const IGPMConstants, @ptrCast(self)), pVal); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IGPMConstants_get_RsopPlanningLoopbackOption(self: *const T, vbMerge: i16, pVal: ?*i32) HRESULT { return @as(*const IGPMConstants.VTable, @ptrCast(self.vtable)).get_RsopPlanningLoopbackOption(@as(*const IGPMConstants, @ptrCast(self)), vbMerge, pVal); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IGPMConstants_get_RsopPlanningAssumeUserWQLFilterTrue(self: *const T, pVal: ?*i32) HRESULT { return @as(*const IGPMConstants.VTable, @ptrCast(self.vtable)).get_RsopPlanningAssumeUserWQLFilterTrue(@as(*const IGPMConstants, @ptrCast(self)), pVal); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IGPMConstants_get_RsopPlanningAssumeCompWQLFilterTrue(self: *const T, pVal: ?*i32) HRESULT { return @as(*const IGPMConstants.VTable, @ptrCast(self.vtable)).get_RsopPlanningAssumeCompWQLFilterTrue(@as(*const IGPMConstants, @ptrCast(self)), pVal); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows6.0.6000' const IID_IGPMResult_Value = Guid.initString("86dff7e9-f76f-42ab-9570-cebc6be8a52d"); pub const IID_IGPMResult = &IID_IGPMResult_Value; pub const IGPMResult = extern struct { pub const VTable = extern struct { base: IDispatch.VTable, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Status: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IGPMResult, ppIGPMStatusMsgCollection: ?*?*IGPMStatusMsgCollection, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IGPMResult, ppIGPMStatusMsgCollection: ?*?*IGPMStatusMsgCollection, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Result: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IGPMResult, pvarResult: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IGPMResult, pvarResult: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, OverallStatus: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IGPMResult, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IGPMResult, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IDispatch.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IGPMResult_get_Status(self: *const T, ppIGPMStatusMsgCollection: ?*?*IGPMStatusMsgCollection) HRESULT { return @as(*const IGPMResult.VTable, @ptrCast(self.vtable)).get_Status(@as(*const IGPMResult, @ptrCast(self)), ppIGPMStatusMsgCollection); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IGPMResult_get_Result(self: *const T, pvarResult: ?*VARIANT) HRESULT { return @as(*const IGPMResult.VTable, @ptrCast(self.vtable)).get_Result(@as(*const IGPMResult, @ptrCast(self)), pvarResult); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IGPMResult_OverallStatus(self: *const T) HRESULT { return @as(*const IGPMResult.VTable, @ptrCast(self.vtable)).OverallStatus(@as(*const IGPMResult, @ptrCast(self))); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows6.0.6000' const IID_IGPMMapEntryCollection_Value = Guid.initString("bb0bf49b-e53f-443f-b807-8be22bfb6d42"); pub const IID_IGPMMapEntryCollection = &IID_IGPMMapEntryCollection_Value; pub const IGPMMapEntryCollection = extern struct { pub const VTable = extern struct { base: IDispatch.VTable, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Count: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IGPMMapEntryCollection, pVal: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IGPMMapEntryCollection, pVal: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Item: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IGPMMapEntryCollection, lIndex: i32, pVal: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IGPMMapEntryCollection, lIndex: i32, pVal: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get__NewEnum: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IGPMMapEntryCollection, pVal: ?*?*IEnumVARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IGPMMapEntryCollection, pVal: ?*?*IEnumVARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IDispatch.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IGPMMapEntryCollection_get_Count(self: *const T, pVal: ?*i32) HRESULT { return @as(*const IGPMMapEntryCollection.VTable, @ptrCast(self.vtable)).get_Count(@as(*const IGPMMapEntryCollection, @ptrCast(self)), pVal); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IGPMMapEntryCollection_get_Item(self: *const T, lIndex: i32, pVal: ?*VARIANT) HRESULT { return @as(*const IGPMMapEntryCollection.VTable, @ptrCast(self.vtable)).get_Item(@as(*const IGPMMapEntryCollection, @ptrCast(self)), lIndex, pVal); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IGPMMapEntryCollection_get__NewEnum(self: *const T, pVal: ?*?*IEnumVARIANT) HRESULT { return @as(*const IGPMMapEntryCollection.VTable, @ptrCast(self.vtable)).get__NewEnum(@as(*const IGPMMapEntryCollection, @ptrCast(self)), pVal); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows6.0.6000' const IID_IGPMMapEntry_Value = Guid.initString("8e79ad06-2381-4444-be4c-ff693e6e6f2b"); pub const IID_IGPMMapEntry = &IID_IGPMMapEntry_Value; pub const IGPMMapEntry = extern struct { pub const VTable = extern struct { base: IDispatch.VTable, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Source: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IGPMMapEntry, pbstrSource: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IGPMMapEntry, pbstrSource: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Destination: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IGPMMapEntry, pbstrDestination: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IGPMMapEntry, pbstrDestination: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_DestinationOption: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IGPMMapEntry, pgpmDestOption: ?*GPMDestinationOption, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IGPMMapEntry, pgpmDestOption: ?*GPMDestinationOption, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_EntryType: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IGPMMapEntry, pgpmEntryType: ?*GPMEntryType, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IGPMMapEntry, pgpmEntryType: ?*GPMEntryType, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IDispatch.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IGPMMapEntry_get_Source(self: *const T, pbstrSource: ?*?BSTR) HRESULT { return @as(*const IGPMMapEntry.VTable, @ptrCast(self.vtable)).get_Source(@as(*const IGPMMapEntry, @ptrCast(self)), pbstrSource); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IGPMMapEntry_get_Destination(self: *const T, pbstrDestination: ?*?BSTR) HRESULT { return @as(*const IGPMMapEntry.VTable, @ptrCast(self.vtable)).get_Destination(@as(*const IGPMMapEntry, @ptrCast(self)), pbstrDestination); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IGPMMapEntry_get_DestinationOption(self: *const T, pgpmDestOption: ?*GPMDestinationOption) HRESULT { return @as(*const IGPMMapEntry.VTable, @ptrCast(self.vtable)).get_DestinationOption(@as(*const IGPMMapEntry, @ptrCast(self)), pgpmDestOption); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IGPMMapEntry_get_EntryType(self: *const T, pgpmEntryType: ?*GPMEntryType) HRESULT { return @as(*const IGPMMapEntry.VTable, @ptrCast(self.vtable)).get_EntryType(@as(*const IGPMMapEntry, @ptrCast(self)), pgpmEntryType); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows6.0.6000' const IID_IGPMMigrationTable_Value = Guid.initString("48f823b1-efaf-470b-b6ed-40d14ee1a4ec"); pub const IID_IGPMMigrationTable = &IID_IGPMMigrationTable_Value; pub const IGPMMigrationTable = extern struct { pub const VTable = extern struct { base: IDispatch.VTable, Save: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IGPMMigrationTable, bstrMigrationTablePath: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IGPMMigrationTable, bstrMigrationTablePath: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Add: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IGPMMigrationTable, lFlags: i32, @"var": VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IGPMMigrationTable, lFlags: i32, @"var": VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, AddEntry: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IGPMMigrationTable, bstrSource: ?BSTR, gpmEntryType: GPMEntryType, pvarDestination: ?*VARIANT, ppEntry: ?*?*IGPMMapEntry, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IGPMMigrationTable, bstrSource: ?BSTR, gpmEntryType: GPMEntryType, pvarDestination: ?*VARIANT, ppEntry: ?*?*IGPMMapEntry, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetEntry: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IGPMMigrationTable, bstrSource: ?BSTR, ppEntry: ?*?*IGPMMapEntry, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IGPMMigrationTable, bstrSource: ?BSTR, ppEntry: ?*?*IGPMMapEntry, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, DeleteEntry: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IGPMMigrationTable, bstrSource: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IGPMMigrationTable, bstrSource: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, UpdateDestination: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IGPMMigrationTable, bstrSource: ?BSTR, pvarDestination: ?*VARIANT, ppEntry: ?*?*IGPMMapEntry, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IGPMMigrationTable, bstrSource: ?BSTR, pvarDestination: ?*VARIANT, ppEntry: ?*?*IGPMMapEntry, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Validate: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IGPMMigrationTable, ppResult: ?*?*IGPMResult, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IGPMMigrationTable, ppResult: ?*?*IGPMResult, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetEntries: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IGPMMigrationTable, ppEntries: ?*?*IGPMMapEntryCollection, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IGPMMigrationTable, ppEntries: ?*?*IGPMMapEntryCollection, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IDispatch.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IGPMMigrationTable_Save(self: *const T, bstrMigrationTablePath: ?BSTR) HRESULT { return @as(*const IGPMMigrationTable.VTable, @ptrCast(self.vtable)).Save(@as(*const IGPMMigrationTable, @ptrCast(self)), bstrMigrationTablePath); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IGPMMigrationTable_Add(self: *const T, lFlags: i32, @"var": VARIANT) HRESULT { return @as(*const IGPMMigrationTable.VTable, @ptrCast(self.vtable)).Add(@as(*const IGPMMigrationTable, @ptrCast(self)), lFlags, @"var"); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IGPMMigrationTable_AddEntry(self: *const T, bstrSource: ?BSTR, gpmEntryType: GPMEntryType, pvarDestination: ?*VARIANT, ppEntry: ?*?*IGPMMapEntry) HRESULT { return @as(*const IGPMMigrationTable.VTable, @ptrCast(self.vtable)).AddEntry(@as(*const IGPMMigrationTable, @ptrCast(self)), bstrSource, gpmEntryType, pvarDestination, ppEntry); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IGPMMigrationTable_GetEntry(self: *const T, bstrSource: ?BSTR, ppEntry: ?*?*IGPMMapEntry) HRESULT { return @as(*const IGPMMigrationTable.VTable, @ptrCast(self.vtable)).GetEntry(@as(*const IGPMMigrationTable, @ptrCast(self)), bstrSource, ppEntry); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IGPMMigrationTable_DeleteEntry(self: *const T, bstrSource: ?BSTR) HRESULT { return @as(*const IGPMMigrationTable.VTable, @ptrCast(self.vtable)).DeleteEntry(@as(*const IGPMMigrationTable, @ptrCast(self)), bstrSource); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IGPMMigrationTable_UpdateDestination(self: *const T, bstrSource: ?BSTR, pvarDestination: ?*VARIANT, ppEntry: ?*?*IGPMMapEntry) HRESULT { return @as(*const IGPMMigrationTable.VTable, @ptrCast(self.vtable)).UpdateDestination(@as(*const IGPMMigrationTable, @ptrCast(self)), bstrSource, pvarDestination, ppEntry); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IGPMMigrationTable_Validate(self: *const T, ppResult: ?*?*IGPMResult) HRESULT { return @as(*const IGPMMigrationTable.VTable, @ptrCast(self.vtable)).Validate(@as(*const IGPMMigrationTable, @ptrCast(self)), ppResult); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IGPMMigrationTable_GetEntries(self: *const T, ppEntries: ?*?*IGPMMapEntryCollection) HRESULT { return @as(*const IGPMMigrationTable.VTable, @ptrCast(self.vtable)).GetEntries(@as(*const IGPMMigrationTable, @ptrCast(self)), ppEntries); } }; } pub usingnamespace MethodMixin(@This()); }; pub const GPMBackupType = enum(i32) { GPO = 0, StarterGPO = 1, }; pub const typeGPO = GPMBackupType.GPO; pub const typeStarterGPO = GPMBackupType.StarterGPO; pub const GPMStarterGPOType = enum(i32) { System = 0, Custom = 1, }; pub const typeSystem = GPMStarterGPOType.System; pub const typeCustom = GPMStarterGPOType.Custom; // TODO: this type is limited to platform 'windows6.0.6000' const IID_IGPMBackupDirEx_Value = Guid.initString("f8dc55ed-3ba0-4864-aad4-d365189ee1d5"); pub const IID_IGPMBackupDirEx = &IID_IGPMBackupDirEx_Value; pub const IGPMBackupDirEx = extern struct { pub const VTable = extern struct { base: IDispatch.VTable, // TODO: this function has a "SpecialName", should Zig do anything with this? get_BackupDir: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IGPMBackupDirEx, pbstrBackupDir: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IGPMBackupDirEx, pbstrBackupDir: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_BackupType: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IGPMBackupDirEx, pgpmBackupType: ?*GPMBackupType, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IGPMBackupDirEx, pgpmBackupType: ?*GPMBackupType, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetBackup: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IGPMBackupDirEx, bstrID: ?BSTR, pvarBackup: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IGPMBackupDirEx, bstrID: ?BSTR, pvarBackup: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SearchBackups: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IGPMBackupDirEx, pIGPMSearchCriteria: ?*IGPMSearchCriteria, pvarBackupCollection: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IGPMBackupDirEx, pIGPMSearchCriteria: ?*IGPMSearchCriteria, pvarBackupCollection: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IDispatch.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IGPMBackupDirEx_get_BackupDir(self: *const T, pbstrBackupDir: ?*?BSTR) HRESULT { return @as(*const IGPMBackupDirEx.VTable, @ptrCast(self.vtable)).get_BackupDir(@as(*const IGPMBackupDirEx, @ptrCast(self)), pbstrBackupDir); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IGPMBackupDirEx_get_BackupType(self: *const T, pgpmBackupType: ?*GPMBackupType) HRESULT { return @as(*const IGPMBackupDirEx.VTable, @ptrCast(self.vtable)).get_BackupType(@as(*const IGPMBackupDirEx, @ptrCast(self)), pgpmBackupType); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IGPMBackupDirEx_GetBackup(self: *const T, bstrID: ?BSTR, pvarBackup: ?*VARIANT) HRESULT { return @as(*const IGPMBackupDirEx.VTable, @ptrCast(self.vtable)).GetBackup(@as(*const IGPMBackupDirEx, @ptrCast(self)), bstrID, pvarBackup); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IGPMBackupDirEx_SearchBackups(self: *const T, pIGPMSearchCriteria: ?*IGPMSearchCriteria, pvarBackupCollection: ?*VARIANT) HRESULT { return @as(*const IGPMBackupDirEx.VTable, @ptrCast(self.vtable)).SearchBackups(@as(*const IGPMBackupDirEx, @ptrCast(self)), pIGPMSearchCriteria, pvarBackupCollection); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows6.0.6000' const IID_IGPMStarterGPOBackupCollection_Value = Guid.initString("c998031d-add0-4bb5-8dea-298505d8423b"); pub const IID_IGPMStarterGPOBackupCollection = &IID_IGPMStarterGPOBackupCollection_Value; pub const IGPMStarterGPOBackupCollection = extern struct { pub const VTable = extern struct { base: IDispatch.VTable, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Count: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IGPMStarterGPOBackupCollection, pVal: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IGPMStarterGPOBackupCollection, pVal: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Item: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IGPMStarterGPOBackupCollection, lIndex: i32, pVal: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IGPMStarterGPOBackupCollection, lIndex: i32, pVal: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get__NewEnum: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IGPMStarterGPOBackupCollection, ppIGPMTmplBackup: ?*?*IEnumVARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IGPMStarterGPOBackupCollection, ppIGPMTmplBackup: ?*?*IEnumVARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IDispatch.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IGPMStarterGPOBackupCollection_get_Count(self: *const T, pVal: ?*i32) HRESULT { return @as(*const IGPMStarterGPOBackupCollection.VTable, @ptrCast(self.vtable)).get_Count(@as(*const IGPMStarterGPOBackupCollection, @ptrCast(self)), pVal); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IGPMStarterGPOBackupCollection_get_Item(self: *const T, lIndex: i32, pVal: ?*VARIANT) HRESULT { return @as(*const IGPMStarterGPOBackupCollection.VTable, @ptrCast(self.vtable)).get_Item(@as(*const IGPMStarterGPOBackupCollection, @ptrCast(self)), lIndex, pVal); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IGPMStarterGPOBackupCollection_get__NewEnum(self: *const T, ppIGPMTmplBackup: ?*?*IEnumVARIANT) HRESULT { return @as(*const IGPMStarterGPOBackupCollection.VTable, @ptrCast(self.vtable)).get__NewEnum(@as(*const IGPMStarterGPOBackupCollection, @ptrCast(self)), ppIGPMTmplBackup); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows6.0.6000' const IID_IGPMStarterGPOBackup_Value = Guid.initString("51d98eda-a87e-43dd-b80a-0b66ef1938d6"); pub const IID_IGPMStarterGPOBackup = &IID_IGPMStarterGPOBackup_Value; pub const IGPMStarterGPOBackup = extern struct { pub const VTable = extern struct { base: IDispatch.VTable, // TODO: this function has a "SpecialName", should Zig do anything with this? get_BackupDir: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IGPMStarterGPOBackup, pbstrBackupDir: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IGPMStarterGPOBackup, pbstrBackupDir: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Comment: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IGPMStarterGPOBackup, pbstrComment: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IGPMStarterGPOBackup, pbstrComment: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_DisplayName: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IGPMStarterGPOBackup, pbstrDisplayName: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IGPMStarterGPOBackup, pbstrDisplayName: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Domain: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IGPMStarterGPOBackup, pbstrTemplateDomain: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IGPMStarterGPOBackup, pbstrTemplateDomain: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_StarterGPOID: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IGPMStarterGPOBackup, pbstrTemplateID: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IGPMStarterGPOBackup, pbstrTemplateID: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_ID: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IGPMStarterGPOBackup, pbstrID: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IGPMStarterGPOBackup, pbstrID: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Timestamp: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IGPMStarterGPOBackup, pTimestamp: ?*f64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IGPMStarterGPOBackup, pTimestamp: ?*f64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Type: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IGPMStarterGPOBackup, pType: ?*GPMStarterGPOType, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IGPMStarterGPOBackup, pType: ?*GPMStarterGPOType, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Delete: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IGPMStarterGPOBackup, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IGPMStarterGPOBackup, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GenerateReport: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IGPMStarterGPOBackup, gpmReportType: GPMReportType, pvarGPMProgress: ?*VARIANT, pvarGPMCancel: ?*VARIANT, ppIGPMResult: ?*?*IGPMResult, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IGPMStarterGPOBackup, gpmReportType: GPMReportType, pvarGPMProgress: ?*VARIANT, pvarGPMCancel: ?*VARIANT, ppIGPMResult: ?*?*IGPMResult, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GenerateReportToFile: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IGPMStarterGPOBackup, gpmReportType: GPMReportType, bstrTargetFilePath: ?BSTR, ppIGPMResult: ?*?*IGPMResult, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IGPMStarterGPOBackup, gpmReportType: GPMReportType, bstrTargetFilePath: ?BSTR, ppIGPMResult: ?*?*IGPMResult, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IDispatch.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IGPMStarterGPOBackup_get_BackupDir(self: *const T, pbstrBackupDir: ?*?BSTR) HRESULT { return @as(*const IGPMStarterGPOBackup.VTable, @ptrCast(self.vtable)).get_BackupDir(@as(*const IGPMStarterGPOBackup, @ptrCast(self)), pbstrBackupDir); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IGPMStarterGPOBackup_get_Comment(self: *const T, pbstrComment: ?*?BSTR) HRESULT { return @as(*const IGPMStarterGPOBackup.VTable, @ptrCast(self.vtable)).get_Comment(@as(*const IGPMStarterGPOBackup, @ptrCast(self)), pbstrComment); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IGPMStarterGPOBackup_get_DisplayName(self: *const T, pbstrDisplayName: ?*?BSTR) HRESULT { return @as(*const IGPMStarterGPOBackup.VTable, @ptrCast(self.vtable)).get_DisplayName(@as(*const IGPMStarterGPOBackup, @ptrCast(self)), pbstrDisplayName); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IGPMStarterGPOBackup_get_Domain(self: *const T, pbstrTemplateDomain: ?*?BSTR) HRESULT { return @as(*const IGPMStarterGPOBackup.VTable, @ptrCast(self.vtable)).get_Domain(@as(*const IGPMStarterGPOBackup, @ptrCast(self)), pbstrTemplateDomain); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IGPMStarterGPOBackup_get_StarterGPOID(self: *const T, pbstrTemplateID: ?*?BSTR) HRESULT { return @as(*const IGPMStarterGPOBackup.VTable, @ptrCast(self.vtable)).get_StarterGPOID(@as(*const IGPMStarterGPOBackup, @ptrCast(self)), pbstrTemplateID); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IGPMStarterGPOBackup_get_ID(self: *const T, pbstrID: ?*?BSTR) HRESULT { return @as(*const IGPMStarterGPOBackup.VTable, @ptrCast(self.vtable)).get_ID(@as(*const IGPMStarterGPOBackup, @ptrCast(self)), pbstrID); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IGPMStarterGPOBackup_get_Timestamp(self: *const T, pTimestamp: ?*f64) HRESULT { return @as(*const IGPMStarterGPOBackup.VTable, @ptrCast(self.vtable)).get_Timestamp(@as(*const IGPMStarterGPOBackup, @ptrCast(self)), pTimestamp); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IGPMStarterGPOBackup_get_Type(self: *const T, pType: ?*GPMStarterGPOType) HRESULT { return @as(*const IGPMStarterGPOBackup.VTable, @ptrCast(self.vtable)).get_Type(@as(*const IGPMStarterGPOBackup, @ptrCast(self)), pType); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IGPMStarterGPOBackup_Delete(self: *const T) HRESULT { return @as(*const IGPMStarterGPOBackup.VTable, @ptrCast(self.vtable)).Delete(@as(*const IGPMStarterGPOBackup, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IGPMStarterGPOBackup_GenerateReport(self: *const T, gpmReportType: GPMReportType, pvarGPMProgress: ?*VARIANT, pvarGPMCancel: ?*VARIANT, ppIGPMResult: ?*?*IGPMResult) HRESULT { return @as(*const IGPMStarterGPOBackup.VTable, @ptrCast(self.vtable)).GenerateReport(@as(*const IGPMStarterGPOBackup, @ptrCast(self)), gpmReportType, pvarGPMProgress, pvarGPMCancel, ppIGPMResult); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IGPMStarterGPOBackup_GenerateReportToFile(self: *const T, gpmReportType: GPMReportType, bstrTargetFilePath: ?BSTR, ppIGPMResult: ?*?*IGPMResult) HRESULT { return @as(*const IGPMStarterGPOBackup.VTable, @ptrCast(self.vtable)).GenerateReportToFile(@as(*const IGPMStarterGPOBackup, @ptrCast(self)), gpmReportType, bstrTargetFilePath, ppIGPMResult); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows6.0.6000' const IID_IGPM2_Value = Guid.initString("00238f8a-3d86-41ac-8f5e-06a6638a634a"); pub const IID_IGPM2 = &IID_IGPM2_Value; pub const IGPM2 = extern struct { pub const VTable = extern struct { base: IGPM.VTable, GetBackupDirEx: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IGPM2, bstrBackupDir: ?BSTR, backupDirType: GPMBackupType, ppIGPMBackupDirEx: ?*?*IGPMBackupDirEx, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IGPM2, bstrBackupDir: ?BSTR, backupDirType: GPMBackupType, ppIGPMBackupDirEx: ?*?*IGPMBackupDirEx, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, InitializeReportingEx: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IGPM2, bstrAdmPath: ?BSTR, reportingOptions: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IGPM2, bstrAdmPath: ?BSTR, reportingOptions: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IGPM.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IGPM2_GetBackupDirEx(self: *const T, bstrBackupDir: ?BSTR, backupDirType: GPMBackupType, ppIGPMBackupDirEx: ?*?*IGPMBackupDirEx) HRESULT { return @as(*const IGPM2.VTable, @ptrCast(self.vtable)).GetBackupDirEx(@as(*const IGPM2, @ptrCast(self)), bstrBackupDir, backupDirType, ppIGPMBackupDirEx); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IGPM2_InitializeReportingEx(self: *const T, bstrAdmPath: ?BSTR, reportingOptions: i32) HRESULT { return @as(*const IGPM2.VTable, @ptrCast(self.vtable)).InitializeReportingEx(@as(*const IGPM2, @ptrCast(self)), bstrAdmPath, reportingOptions); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows6.0.6000' const IID_IGPMStarterGPO_Value = Guid.initString("dfc3f61b-8880-4490-9337-d29c7ba8c2f0"); pub const IID_IGPMStarterGPO = &IID_IGPMStarterGPO_Value; pub const IGPMStarterGPO = extern struct { pub const VTable = extern struct { base: IDispatch.VTable, // TODO: this function has a "SpecialName", should Zig do anything with this? get_DisplayName: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IGPMStarterGPO, pVal: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IGPMStarterGPO, pVal: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_DisplayName: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IGPMStarterGPO, newVal: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IGPMStarterGPO, newVal: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Description: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IGPMStarterGPO, pVal: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IGPMStarterGPO, pVal: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_Description: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IGPMStarterGPO, newVal: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IGPMStarterGPO, newVal: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Author: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IGPMStarterGPO, pVal: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IGPMStarterGPO, pVal: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Product: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IGPMStarterGPO, pVal: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IGPMStarterGPO, pVal: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_CreationTime: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IGPMStarterGPO, pVal: ?*f64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IGPMStarterGPO, pVal: ?*f64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_ID: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IGPMStarterGPO, pVal: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IGPMStarterGPO, pVal: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_ModifiedTime: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IGPMStarterGPO, pVal: ?*f64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IGPMStarterGPO, pVal: ?*f64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Type: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IGPMStarterGPO, pVal: ?*GPMStarterGPOType, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IGPMStarterGPO, pVal: ?*GPMStarterGPOType, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_ComputerVersion: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IGPMStarterGPO, pVal: ?*u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IGPMStarterGPO, pVal: ?*u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_UserVersion: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IGPMStarterGPO, pVal: ?*u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IGPMStarterGPO, pVal: ?*u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_StarterGPOVersion: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IGPMStarterGPO, pVal: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IGPMStarterGPO, pVal: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Delete: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IGPMStarterGPO, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IGPMStarterGPO, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Save: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IGPMStarterGPO, bstrSaveFile: ?BSTR, bOverwrite: i16, bSaveAsSystem: i16, bstrLanguage: ?*VARIANT, bstrAuthor: ?*VARIANT, bstrProduct: ?*VARIANT, bstrUniqueID: ?*VARIANT, bstrVersion: ?*VARIANT, pvarGPMProgress: ?*VARIANT, pvarGPMCancel: ?*VARIANT, ppIGPMResult: ?*?*IGPMResult, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IGPMStarterGPO, bstrSaveFile: ?BSTR, bOverwrite: i16, bSaveAsSystem: i16, bstrLanguage: ?*VARIANT, bstrAuthor: ?*VARIANT, bstrProduct: ?*VARIANT, bstrUniqueID: ?*VARIANT, bstrVersion: ?*VARIANT, pvarGPMProgress: ?*VARIANT, pvarGPMCancel: ?*VARIANT, ppIGPMResult: ?*?*IGPMResult, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Backup: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IGPMStarterGPO, bstrBackupDir: ?BSTR, bstrComment: ?BSTR, pvarGPMProgress: ?*VARIANT, pvarGPMCancel: ?*VARIANT, ppIGPMResult: ?*?*IGPMResult, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IGPMStarterGPO, bstrBackupDir: ?BSTR, bstrComment: ?BSTR, pvarGPMProgress: ?*VARIANT, pvarGPMCancel: ?*VARIANT, ppIGPMResult: ?*?*IGPMResult, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, CopyTo: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IGPMStarterGPO, pvarNewDisplayName: ?*VARIANT, pvarGPMProgress: ?*VARIANT, pvarGPMCancel: ?*VARIANT, ppIGPMResult: ?*?*IGPMResult, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IGPMStarterGPO, pvarNewDisplayName: ?*VARIANT, pvarGPMProgress: ?*VARIANT, pvarGPMCancel: ?*VARIANT, ppIGPMResult: ?*?*IGPMResult, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GenerateReport: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IGPMStarterGPO, gpmReportType: GPMReportType, pvarGPMProgress: ?*VARIANT, pvarGPMCancel: ?*VARIANT, ppIGPMResult: ?*?*IGPMResult, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IGPMStarterGPO, gpmReportType: GPMReportType, pvarGPMProgress: ?*VARIANT, pvarGPMCancel: ?*VARIANT, ppIGPMResult: ?*?*IGPMResult, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GenerateReportToFile: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IGPMStarterGPO, gpmReportType: GPMReportType, bstrTargetFilePath: ?BSTR, ppIGPMResult: ?*?*IGPMResult, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IGPMStarterGPO, gpmReportType: GPMReportType, bstrTargetFilePath: ?BSTR, ppIGPMResult: ?*?*IGPMResult, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetSecurityInfo: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IGPMStarterGPO, ppSecurityInfo: ?*?*IGPMSecurityInfo, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IGPMStarterGPO, ppSecurityInfo: ?*?*IGPMSecurityInfo, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetSecurityInfo: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IGPMStarterGPO, pSecurityInfo: ?*IGPMSecurityInfo, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IGPMStarterGPO, pSecurityInfo: ?*IGPMSecurityInfo, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IDispatch.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IGPMStarterGPO_get_DisplayName(self: *const T, pVal: ?*?BSTR) HRESULT { return @as(*const IGPMStarterGPO.VTable, @ptrCast(self.vtable)).get_DisplayName(@as(*const IGPMStarterGPO, @ptrCast(self)), pVal); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IGPMStarterGPO_put_DisplayName(self: *const T, newVal: ?BSTR) HRESULT { return @as(*const IGPMStarterGPO.VTable, @ptrCast(self.vtable)).put_DisplayName(@as(*const IGPMStarterGPO, @ptrCast(self)), newVal); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IGPMStarterGPO_get_Description(self: *const T, pVal: ?*?BSTR) HRESULT { return @as(*const IGPMStarterGPO.VTable, @ptrCast(self.vtable)).get_Description(@as(*const IGPMStarterGPO, @ptrCast(self)), pVal); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IGPMStarterGPO_put_Description(self: *const T, newVal: ?BSTR) HRESULT { return @as(*const IGPMStarterGPO.VTable, @ptrCast(self.vtable)).put_Description(@as(*const IGPMStarterGPO, @ptrCast(self)), newVal); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IGPMStarterGPO_get_Author(self: *const T, pVal: ?*?BSTR) HRESULT { return @as(*const IGPMStarterGPO.VTable, @ptrCast(self.vtable)).get_Author(@as(*const IGPMStarterGPO, @ptrCast(self)), pVal); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IGPMStarterGPO_get_Product(self: *const T, pVal: ?*?BSTR) HRESULT { return @as(*const IGPMStarterGPO.VTable, @ptrCast(self.vtable)).get_Product(@as(*const IGPMStarterGPO, @ptrCast(self)), pVal); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IGPMStarterGPO_get_CreationTime(self: *const T, pVal: ?*f64) HRESULT { return @as(*const IGPMStarterGPO.VTable, @ptrCast(self.vtable)).get_CreationTime(@as(*const IGPMStarterGPO, @ptrCast(self)), pVal); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IGPMStarterGPO_get_ID(self: *const T, pVal: ?*?BSTR) HRESULT { return @as(*const IGPMStarterGPO.VTable, @ptrCast(self.vtable)).get_ID(@as(*const IGPMStarterGPO, @ptrCast(self)), pVal); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IGPMStarterGPO_get_ModifiedTime(self: *const T, pVal: ?*f64) HRESULT { return @as(*const IGPMStarterGPO.VTable, @ptrCast(self.vtable)).get_ModifiedTime(@as(*const IGPMStarterGPO, @ptrCast(self)), pVal); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IGPMStarterGPO_get_Type(self: *const T, pVal: ?*GPMStarterGPOType) HRESULT { return @as(*const IGPMStarterGPO.VTable, @ptrCast(self.vtable)).get_Type(@as(*const IGPMStarterGPO, @ptrCast(self)), pVal); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IGPMStarterGPO_get_ComputerVersion(self: *const T, pVal: ?*u16) HRESULT { return @as(*const IGPMStarterGPO.VTable, @ptrCast(self.vtable)).get_ComputerVersion(@as(*const IGPMStarterGPO, @ptrCast(self)), pVal); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IGPMStarterGPO_get_UserVersion(self: *const T, pVal: ?*u16) HRESULT { return @as(*const IGPMStarterGPO.VTable, @ptrCast(self.vtable)).get_UserVersion(@as(*const IGPMStarterGPO, @ptrCast(self)), pVal); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IGPMStarterGPO_get_StarterGPOVersion(self: *const T, pVal: ?*?BSTR) HRESULT { return @as(*const IGPMStarterGPO.VTable, @ptrCast(self.vtable)).get_StarterGPOVersion(@as(*const IGPMStarterGPO, @ptrCast(self)), pVal); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IGPMStarterGPO_Delete(self: *const T) HRESULT { return @as(*const IGPMStarterGPO.VTable, @ptrCast(self.vtable)).Delete(@as(*const IGPMStarterGPO, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IGPMStarterGPO_Save(self: *const T, bstrSaveFile: ?BSTR, bOverwrite: i16, bSaveAsSystem: i16, bstrLanguage: ?*VARIANT, bstrAuthor: ?*VARIANT, bstrProduct: ?*VARIANT, bstrUniqueID: ?*VARIANT, bstrVersion: ?*VARIANT, pvarGPMProgress: ?*VARIANT, pvarGPMCancel: ?*VARIANT, ppIGPMResult: ?*?*IGPMResult) HRESULT { return @as(*const IGPMStarterGPO.VTable, @ptrCast(self.vtable)).Save(@as(*const IGPMStarterGPO, @ptrCast(self)), bstrSaveFile, bOverwrite, bSaveAsSystem, bstrLanguage, bstrAuthor, bstrProduct, bstrUniqueID, bstrVersion, pvarGPMProgress, pvarGPMCancel, ppIGPMResult); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IGPMStarterGPO_Backup(self: *const T, bstrBackupDir: ?BSTR, bstrComment: ?BSTR, pvarGPMProgress: ?*VARIANT, pvarGPMCancel: ?*VARIANT, ppIGPMResult: ?*?*IGPMResult) HRESULT { return @as(*const IGPMStarterGPO.VTable, @ptrCast(self.vtable)).Backup(@as(*const IGPMStarterGPO, @ptrCast(self)), bstrBackupDir, bstrComment, pvarGPMProgress, pvarGPMCancel, ppIGPMResult); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IGPMStarterGPO_CopyTo(self: *const T, pvarNewDisplayName: ?*VARIANT, pvarGPMProgress: ?*VARIANT, pvarGPMCancel: ?*VARIANT, ppIGPMResult: ?*?*IGPMResult) HRESULT { return @as(*const IGPMStarterGPO.VTable, @ptrCast(self.vtable)).CopyTo(@as(*const IGPMStarterGPO, @ptrCast(self)), pvarNewDisplayName, pvarGPMProgress, pvarGPMCancel, ppIGPMResult); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IGPMStarterGPO_GenerateReport(self: *const T, gpmReportType: GPMReportType, pvarGPMProgress: ?*VARIANT, pvarGPMCancel: ?*VARIANT, ppIGPMResult: ?*?*IGPMResult) HRESULT { return @as(*const IGPMStarterGPO.VTable, @ptrCast(self.vtable)).GenerateReport(@as(*const IGPMStarterGPO, @ptrCast(self)), gpmReportType, pvarGPMProgress, pvarGPMCancel, ppIGPMResult); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IGPMStarterGPO_GenerateReportToFile(self: *const T, gpmReportType: GPMReportType, bstrTargetFilePath: ?BSTR, ppIGPMResult: ?*?*IGPMResult) HRESULT { return @as(*const IGPMStarterGPO.VTable, @ptrCast(self.vtable)).GenerateReportToFile(@as(*const IGPMStarterGPO, @ptrCast(self)), gpmReportType, bstrTargetFilePath, ppIGPMResult); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IGPMStarterGPO_GetSecurityInfo(self: *const T, ppSecurityInfo: ?*?*IGPMSecurityInfo) HRESULT { return @as(*const IGPMStarterGPO.VTable, @ptrCast(self.vtable)).GetSecurityInfo(@as(*const IGPMStarterGPO, @ptrCast(self)), ppSecurityInfo); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IGPMStarterGPO_SetSecurityInfo(self: *const T, pSecurityInfo: ?*IGPMSecurityInfo) HRESULT { return @as(*const IGPMStarterGPO.VTable, @ptrCast(self.vtable)).SetSecurityInfo(@as(*const IGPMStarterGPO, @ptrCast(self)), pSecurityInfo); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows6.0.6000' const IID_IGPMStarterGPOCollection_Value = Guid.initString("2e522729-2219-44ad-933a-64dfd650c423"); pub const IID_IGPMStarterGPOCollection = &IID_IGPMStarterGPOCollection_Value; pub const IGPMStarterGPOCollection = extern struct { pub const VTable = extern struct { base: IDispatch.VTable, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Count: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IGPMStarterGPOCollection, pVal: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IGPMStarterGPOCollection, pVal: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Item: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IGPMStarterGPOCollection, lIndex: i32, pVal: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IGPMStarterGPOCollection, lIndex: i32, pVal: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get__NewEnum: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IGPMStarterGPOCollection, ppIGPMTemplates: ?*?*IEnumVARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IGPMStarterGPOCollection, ppIGPMTemplates: ?*?*IEnumVARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IDispatch.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IGPMStarterGPOCollection_get_Count(self: *const T, pVal: ?*i32) HRESULT { return @as(*const IGPMStarterGPOCollection.VTable, @ptrCast(self.vtable)).get_Count(@as(*const IGPMStarterGPOCollection, @ptrCast(self)), pVal); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IGPMStarterGPOCollection_get_Item(self: *const T, lIndex: i32, pVal: ?*VARIANT) HRESULT { return @as(*const IGPMStarterGPOCollection.VTable, @ptrCast(self.vtable)).get_Item(@as(*const IGPMStarterGPOCollection, @ptrCast(self)), lIndex, pVal); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IGPMStarterGPOCollection_get__NewEnum(self: *const T, ppIGPMTemplates: ?*?*IEnumVARIANT) HRESULT { return @as(*const IGPMStarterGPOCollection.VTable, @ptrCast(self.vtable)).get__NewEnum(@as(*const IGPMStarterGPOCollection, @ptrCast(self)), ppIGPMTemplates); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows6.0.6000' const IID_IGPMDomain2_Value = Guid.initString("7ca6bb8b-f1eb-490a-938d-3c4e51c768e6"); pub const IID_IGPMDomain2 = &IID_IGPMDomain2_Value; pub const IGPMDomain2 = extern struct { pub const VTable = extern struct { base: IGPMDomain.VTable, CreateStarterGPO: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IGPMDomain2, ppnewTemplate: ?*?*IGPMStarterGPO, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IGPMDomain2, ppnewTemplate: ?*?*IGPMStarterGPO, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, CreateGPOFromStarterGPO: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IGPMDomain2, pGPOTemplate: ?*IGPMStarterGPO, ppnewGPO: ?*?*IGPMGPO, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IGPMDomain2, pGPOTemplate: ?*IGPMStarterGPO, ppnewGPO: ?*?*IGPMGPO, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetStarterGPO: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IGPMDomain2, bstrGuid: ?BSTR, ppTemplate: ?*?*IGPMStarterGPO, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IGPMDomain2, bstrGuid: ?BSTR, ppTemplate: ?*?*IGPMStarterGPO, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SearchStarterGPOs: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IGPMDomain2, pIGPMSearchCriteria: ?*IGPMSearchCriteria, ppIGPMTemplateCollection: ?*?*IGPMStarterGPOCollection, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IGPMDomain2, pIGPMSearchCriteria: ?*IGPMSearchCriteria, ppIGPMTemplateCollection: ?*?*IGPMStarterGPOCollection, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, LoadStarterGPO: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IGPMDomain2, bstrLoadFile: ?BSTR, bOverwrite: i16, pvarGPMProgress: ?*VARIANT, pvarGPMCancel: ?*VARIANT, ppIGPMResult: ?*?*IGPMResult, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IGPMDomain2, bstrLoadFile: ?BSTR, bOverwrite: i16, pvarGPMProgress: ?*VARIANT, pvarGPMCancel: ?*VARIANT, ppIGPMResult: ?*?*IGPMResult, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, RestoreStarterGPO: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IGPMDomain2, pIGPMTmplBackup: ?*IGPMStarterGPOBackup, pvarGPMProgress: ?*VARIANT, pvarGPMCancel: ?*VARIANT, ppIGPMResult: ?*?*IGPMResult, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IGPMDomain2, pIGPMTmplBackup: ?*IGPMStarterGPOBackup, pvarGPMProgress: ?*VARIANT, pvarGPMCancel: ?*VARIANT, ppIGPMResult: ?*?*IGPMResult, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IGPMDomain.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IGPMDomain2_CreateStarterGPO(self: *const T, ppnewTemplate: ?*?*IGPMStarterGPO) HRESULT { return @as(*const IGPMDomain2.VTable, @ptrCast(self.vtable)).CreateStarterGPO(@as(*const IGPMDomain2, @ptrCast(self)), ppnewTemplate); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IGPMDomain2_CreateGPOFromStarterGPO(self: *const T, pGPOTemplate: ?*IGPMStarterGPO, ppnewGPO: ?*?*IGPMGPO) HRESULT { return @as(*const IGPMDomain2.VTable, @ptrCast(self.vtable)).CreateGPOFromStarterGPO(@as(*const IGPMDomain2, @ptrCast(self)), pGPOTemplate, ppnewGPO); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IGPMDomain2_GetStarterGPO(self: *const T, bstrGuid: ?BSTR, ppTemplate: ?*?*IGPMStarterGPO) HRESULT { return @as(*const IGPMDomain2.VTable, @ptrCast(self.vtable)).GetStarterGPO(@as(*const IGPMDomain2, @ptrCast(self)), bstrGuid, ppTemplate); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IGPMDomain2_SearchStarterGPOs(self: *const T, pIGPMSearchCriteria: ?*IGPMSearchCriteria, ppIGPMTemplateCollection: ?*?*IGPMStarterGPOCollection) HRESULT { return @as(*const IGPMDomain2.VTable, @ptrCast(self.vtable)).SearchStarterGPOs(@as(*const IGPMDomain2, @ptrCast(self)), pIGPMSearchCriteria, ppIGPMTemplateCollection); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IGPMDomain2_LoadStarterGPO(self: *const T, bstrLoadFile: ?BSTR, bOverwrite: i16, pvarGPMProgress: ?*VARIANT, pvarGPMCancel: ?*VARIANT, ppIGPMResult: ?*?*IGPMResult) HRESULT { return @as(*const IGPMDomain2.VTable, @ptrCast(self.vtable)).LoadStarterGPO(@as(*const IGPMDomain2, @ptrCast(self)), bstrLoadFile, bOverwrite, pvarGPMProgress, pvarGPMCancel, ppIGPMResult); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IGPMDomain2_RestoreStarterGPO(self: *const T, pIGPMTmplBackup: ?*IGPMStarterGPOBackup, pvarGPMProgress: ?*VARIANT, pvarGPMCancel: ?*VARIANT, ppIGPMResult: ?*?*IGPMResult) HRESULT { return @as(*const IGPMDomain2.VTable, @ptrCast(self.vtable)).RestoreStarterGPO(@as(*const IGPMDomain2, @ptrCast(self)), pIGPMTmplBackup, pvarGPMProgress, pvarGPMCancel, ppIGPMResult); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows6.0.6000' const IID_IGPMConstants2_Value = Guid.initString("05ae21b0-ac09-4032-a26f-9e7da786dc19"); pub const IID_IGPMConstants2 = &IID_IGPMConstants2_Value; pub const IGPMConstants2 = extern struct { pub const VTable = extern struct { base: IGPMConstants.VTable, // TODO: this function has a "SpecialName", should Zig do anything with this? get_BackupTypeGPO: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IGPMConstants2, pVal: ?*GPMBackupType, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IGPMConstants2, pVal: ?*GPMBackupType, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_BackupTypeStarterGPO: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IGPMConstants2, pVal: ?*GPMBackupType, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IGPMConstants2, pVal: ?*GPMBackupType, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_StarterGPOTypeSystem: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IGPMConstants2, pVal: ?*GPMStarterGPOType, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IGPMConstants2, pVal: ?*GPMStarterGPOType, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_StarterGPOTypeCustom: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IGPMConstants2, pVal: ?*GPMStarterGPOType, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IGPMConstants2, pVal: ?*GPMStarterGPOType, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_SearchPropertyStarterGPOPermissions: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IGPMConstants2, pVal: ?*GPMSearchProperty, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IGPMConstants2, pVal: ?*GPMSearchProperty, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_SearchPropertyStarterGPOEffectivePermissions: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IGPMConstants2, pVal: ?*GPMSearchProperty, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IGPMConstants2, pVal: ?*GPMSearchProperty, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_SearchPropertyStarterGPODisplayName: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IGPMConstants2, pVal: ?*GPMSearchProperty, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IGPMConstants2, pVal: ?*GPMSearchProperty, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_SearchPropertyStarterGPOID: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IGPMConstants2, pVal: ?*GPMSearchProperty, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IGPMConstants2, pVal: ?*GPMSearchProperty, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_SearchPropertyStarterGPODomain: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IGPMConstants2, pVal: ?*GPMSearchProperty, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IGPMConstants2, pVal: ?*GPMSearchProperty, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_PermStarterGPORead: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IGPMConstants2, pVal: ?*GPMPermissionType, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IGPMConstants2, pVal: ?*GPMPermissionType, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_PermStarterGPOEdit: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IGPMConstants2, pVal: ?*GPMPermissionType, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IGPMConstants2, pVal: ?*GPMPermissionType, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_PermStarterGPOFullControl: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IGPMConstants2, pVal: ?*GPMPermissionType, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IGPMConstants2, pVal: ?*GPMPermissionType, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_PermStarterGPOCustom: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IGPMConstants2, pVal: ?*GPMPermissionType, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IGPMConstants2, pVal: ?*GPMPermissionType, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_ReportLegacy: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IGPMConstants2, pVal: ?*GPMReportingOptions, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IGPMConstants2, pVal: ?*GPMReportingOptions, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_ReportComments: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IGPMConstants2, pVal: ?*GPMReportingOptions, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IGPMConstants2, pVal: ?*GPMReportingOptions, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IGPMConstants.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IGPMConstants2_get_BackupTypeGPO(self: *const T, pVal: ?*GPMBackupType) HRESULT { return @as(*const IGPMConstants2.VTable, @ptrCast(self.vtable)).get_BackupTypeGPO(@as(*const IGPMConstants2, @ptrCast(self)), pVal); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IGPMConstants2_get_BackupTypeStarterGPO(self: *const T, pVal: ?*GPMBackupType) HRESULT { return @as(*const IGPMConstants2.VTable, @ptrCast(self.vtable)).get_BackupTypeStarterGPO(@as(*const IGPMConstants2, @ptrCast(self)), pVal); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IGPMConstants2_get_StarterGPOTypeSystem(self: *const T, pVal: ?*GPMStarterGPOType) HRESULT { return @as(*const IGPMConstants2.VTable, @ptrCast(self.vtable)).get_StarterGPOTypeSystem(@as(*const IGPMConstants2, @ptrCast(self)), pVal); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IGPMConstants2_get_StarterGPOTypeCustom(self: *const T, pVal: ?*GPMStarterGPOType) HRESULT { return @as(*const IGPMConstants2.VTable, @ptrCast(self.vtable)).get_StarterGPOTypeCustom(@as(*const IGPMConstants2, @ptrCast(self)), pVal); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IGPMConstants2_get_SearchPropertyStarterGPOPermissions(self: *const T, pVal: ?*GPMSearchProperty) HRESULT { return @as(*const IGPMConstants2.VTable, @ptrCast(self.vtable)).get_SearchPropertyStarterGPOPermissions(@as(*const IGPMConstants2, @ptrCast(self)), pVal); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IGPMConstants2_get_SearchPropertyStarterGPOEffectivePermissions(self: *const T, pVal: ?*GPMSearchProperty) HRESULT { return @as(*const IGPMConstants2.VTable, @ptrCast(self.vtable)).get_SearchPropertyStarterGPOEffectivePermissions(@as(*const IGPMConstants2, @ptrCast(self)), pVal); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IGPMConstants2_get_SearchPropertyStarterGPODisplayName(self: *const T, pVal: ?*GPMSearchProperty) HRESULT { return @as(*const IGPMConstants2.VTable, @ptrCast(self.vtable)).get_SearchPropertyStarterGPODisplayName(@as(*const IGPMConstants2, @ptrCast(self)), pVal); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IGPMConstants2_get_SearchPropertyStarterGPOID(self: *const T, pVal: ?*GPMSearchProperty) HRESULT { return @as(*const IGPMConstants2.VTable, @ptrCast(self.vtable)).get_SearchPropertyStarterGPOID(@as(*const IGPMConstants2, @ptrCast(self)), pVal); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IGPMConstants2_get_SearchPropertyStarterGPODomain(self: *const T, pVal: ?*GPMSearchProperty) HRESULT { return @as(*const IGPMConstants2.VTable, @ptrCast(self.vtable)).get_SearchPropertyStarterGPODomain(@as(*const IGPMConstants2, @ptrCast(self)), pVal); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IGPMConstants2_get_PermStarterGPORead(self: *const T, pVal: ?*GPMPermissionType) HRESULT { return @as(*const IGPMConstants2.VTable, @ptrCast(self.vtable)).get_PermStarterGPORead(@as(*const IGPMConstants2, @ptrCast(self)), pVal); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IGPMConstants2_get_PermStarterGPOEdit(self: *const T, pVal: ?*GPMPermissionType) HRESULT { return @as(*const IGPMConstants2.VTable, @ptrCast(self.vtable)).get_PermStarterGPOEdit(@as(*const IGPMConstants2, @ptrCast(self)), pVal); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IGPMConstants2_get_PermStarterGPOFullControl(self: *const T, pVal: ?*GPMPermissionType) HRESULT { return @as(*const IGPMConstants2.VTable, @ptrCast(self.vtable)).get_PermStarterGPOFullControl(@as(*const IGPMConstants2, @ptrCast(self)), pVal); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IGPMConstants2_get_PermStarterGPOCustom(self: *const T, pVal: ?*GPMPermissionType) HRESULT { return @as(*const IGPMConstants2.VTable, @ptrCast(self.vtable)).get_PermStarterGPOCustom(@as(*const IGPMConstants2, @ptrCast(self)), pVal); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IGPMConstants2_get_ReportLegacy(self: *const T, pVal: ?*GPMReportingOptions) HRESULT { return @as(*const IGPMConstants2.VTable, @ptrCast(self.vtable)).get_ReportLegacy(@as(*const IGPMConstants2, @ptrCast(self)), pVal); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IGPMConstants2_get_ReportComments(self: *const T, pVal: ?*GPMReportingOptions) HRESULT { return @as(*const IGPMConstants2.VTable, @ptrCast(self.vtable)).get_ReportComments(@as(*const IGPMConstants2, @ptrCast(self)), pVal); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows6.0.6000' const IID_IGPMGPO2_Value = Guid.initString("8a66a210-b78b-4d99-88e2-c306a817c925"); pub const IID_IGPMGPO2 = &IID_IGPMGPO2_Value; pub const IGPMGPO2 = extern struct { pub const VTable = extern struct { base: IGPMGPO.VTable, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Description: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IGPMGPO2, pVal: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IGPMGPO2, pVal: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_Description: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IGPMGPO2, newVal: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IGPMGPO2, newVal: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IGPMGPO.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IGPMGPO2_get_Description(self: *const T, pVal: ?*?BSTR) HRESULT { return @as(*const IGPMGPO2.VTable, @ptrCast(self.vtable)).get_Description(@as(*const IGPMGPO2, @ptrCast(self)), pVal); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IGPMGPO2_put_Description(self: *const T, newVal: ?BSTR) HRESULT { return @as(*const IGPMGPO2.VTable, @ptrCast(self.vtable)).put_Description(@as(*const IGPMGPO2, @ptrCast(self)), newVal); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IGPMDomain3_Value = Guid.initString("0077fdfe-88c7-4acf-a11d-d10a7c310a03"); pub const IID_IGPMDomain3 = &IID_IGPMDomain3_Value; pub const IGPMDomain3 = extern struct { pub const VTable = extern struct { base: IGPMDomain2.VTable, GenerateReport: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IGPMDomain3, gpmReportType: GPMReportType, pvarGPMProgress: ?*VARIANT, pvarGPMCancel: ?*VARIANT, ppIGPMResult: ?*?*IGPMResult, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IGPMDomain3, gpmReportType: GPMReportType, pvarGPMProgress: ?*VARIANT, pvarGPMCancel: ?*VARIANT, ppIGPMResult: ?*?*IGPMResult, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_InfrastructureDC: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IGPMDomain3, pVal: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IGPMDomain3, pVal: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_InfrastructureDC: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IGPMDomain3, newVal: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IGPMDomain3, newVal: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_InfrastructureFlags: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IGPMDomain3, dwFlags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IGPMDomain3, dwFlags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IGPMDomain2.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IGPMDomain3_GenerateReport(self: *const T, gpmReportType: GPMReportType, pvarGPMProgress: ?*VARIANT, pvarGPMCancel: ?*VARIANT, ppIGPMResult: ?*?*IGPMResult) HRESULT { return @as(*const IGPMDomain3.VTable, @ptrCast(self.vtable)).GenerateReport(@as(*const IGPMDomain3, @ptrCast(self)), gpmReportType, pvarGPMProgress, pvarGPMCancel, ppIGPMResult); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IGPMDomain3_get_InfrastructureDC(self: *const T, pVal: ?*?BSTR) HRESULT { return @as(*const IGPMDomain3.VTable, @ptrCast(self.vtable)).get_InfrastructureDC(@as(*const IGPMDomain3, @ptrCast(self)), pVal); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IGPMDomain3_put_InfrastructureDC(self: *const T, newVal: ?BSTR) HRESULT { return @as(*const IGPMDomain3.VTable, @ptrCast(self.vtable)).put_InfrastructureDC(@as(*const IGPMDomain3, @ptrCast(self)), newVal); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IGPMDomain3_put_InfrastructureFlags(self: *const T, dwFlags: u32) HRESULT { return @as(*const IGPMDomain3.VTable, @ptrCast(self.vtable)).put_InfrastructureFlags(@as(*const IGPMDomain3, @ptrCast(self)), dwFlags); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IGPMGPO3_Value = Guid.initString("7cf123a1-f94a-4112-bfae-6aa1db9cb248"); pub const IID_IGPMGPO3 = &IID_IGPMGPO3_Value; pub const IGPMGPO3 = extern struct { pub const VTable = extern struct { base: IGPMGPO2.VTable, // TODO: this function has a "SpecialName", should Zig do anything with this? get_InfrastructureDC: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IGPMGPO3, pVal: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IGPMGPO3, pVal: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_InfrastructureDC: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IGPMGPO3, newVal: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IGPMGPO3, newVal: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_InfrastructureFlags: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IGPMGPO3, dwFlags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IGPMGPO3, dwFlags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IGPMGPO2.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IGPMGPO3_get_InfrastructureDC(self: *const T, pVal: ?*?BSTR) HRESULT { return @as(*const IGPMGPO3.VTable, @ptrCast(self.vtable)).get_InfrastructureDC(@as(*const IGPMGPO3, @ptrCast(self)), pVal); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IGPMGPO3_put_InfrastructureDC(self: *const T, newVal: ?BSTR) HRESULT { return @as(*const IGPMGPO3.VTable, @ptrCast(self.vtable)).put_InfrastructureDC(@as(*const IGPMGPO3, @ptrCast(self)), newVal); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IGPMGPO3_put_InfrastructureFlags(self: *const T, dwFlags: u32) HRESULT { return @as(*const IGPMGPO3.VTable, @ptrCast(self.vtable)).put_InfrastructureFlags(@as(*const IGPMGPO3, @ptrCast(self)), dwFlags); } }; } pub usingnamespace MethodMixin(@This()); }; pub const GPO_LINK = enum(i32) { Unknown = 0, Machine = 1, Site = 2, Domain = 3, OrganizationalUnit = 4, }; pub const GPLinkUnknown = GPO_LINK.Unknown; pub const GPLinkMachine = GPO_LINK.Machine; pub const GPLinkSite = GPO_LINK.Site; pub const GPLinkDomain = GPO_LINK.Domain; pub const GPLinkOrganizationalUnit = GPO_LINK.OrganizationalUnit; pub const GROUP_POLICY_OBJECTA = extern struct { dwOptions: u32, dwVersion: u32, lpDSPath: ?PSTR, lpFileSysPath: ?PSTR, lpDisplayName: ?PSTR, szGPOName: [50]CHAR, GPOLink: GPO_LINK, lParam: LPARAM, pNext: ?*GROUP_POLICY_OBJECTA, pPrev: ?*GROUP_POLICY_OBJECTA, lpExtensions: ?PSTR, lParam2: LPARAM, lpLink: ?PSTR, }; pub const GROUP_POLICY_OBJECTW = extern struct { dwOptions: u32, dwVersion: u32, lpDSPath: ?PWSTR, lpFileSysPath: ?PWSTR, lpDisplayName: ?PWSTR, szGPOName: [50]u16, GPOLink: GPO_LINK, lParam: LPARAM, pNext: ?*GROUP_POLICY_OBJECTW, pPrev: ?*GROUP_POLICY_OBJECTW, lpExtensions: ?PWSTR, lParam2: LPARAM, lpLink: ?PWSTR, }; pub const PFNSTATUSMESSAGECALLBACK = switch (@import("builtin").zig_backend) { .stage1 => fn ( bVerbose: BOOL, lpMessage: ?PWSTR, ) callconv(@import("std").os.windows.WINAPI) u32, else => *const fn ( bVerbose: BOOL, lpMessage: ?PWSTR, ) callconv(@import("std").os.windows.WINAPI) u32, }; pub const PFNPROCESSGROUPPOLICY = switch (@import("builtin").zig_backend) { .stage1 => fn ( dwFlags: u32, hToken: ?HANDLE, hKeyRoot: ?HKEY, pDeletedGPOList: ?*GROUP_POLICY_OBJECTA, pChangedGPOList: ?*GROUP_POLICY_OBJECTA, pHandle: usize, pbAbort: ?*BOOL, pStatusCallback: ?PFNSTATUSMESSAGECALLBACK, ) callconv(@import("std").os.windows.WINAPI) u32, else => *const fn ( dwFlags: u32, hToken: ?HANDLE, hKeyRoot: ?HKEY, pDeletedGPOList: ?*GROUP_POLICY_OBJECTA, pChangedGPOList: ?*GROUP_POLICY_OBJECTA, pHandle: usize, pbAbort: ?*BOOL, pStatusCallback: ?PFNSTATUSMESSAGECALLBACK, ) callconv(@import("std").os.windows.WINAPI) u32, }; pub const PFNPROCESSGROUPPOLICYEX = switch (@import("builtin").zig_backend) { .stage1 => fn ( dwFlags: u32, hToken: ?HANDLE, hKeyRoot: ?HKEY, pDeletedGPOList: ?*GROUP_POLICY_OBJECTA, pChangedGPOList: ?*GROUP_POLICY_OBJECTA, pHandle: usize, pbAbort: ?*BOOL, pStatusCallback: ?PFNSTATUSMESSAGECALLBACK, pWbemServices: ?*IWbemServices, pRsopStatus: ?*HRESULT, ) callconv(@import("std").os.windows.WINAPI) u32, else => *const fn ( dwFlags: u32, hToken: ?HANDLE, hKeyRoot: ?HKEY, pDeletedGPOList: ?*GROUP_POLICY_OBJECTA, pChangedGPOList: ?*GROUP_POLICY_OBJECTA, pHandle: usize, pbAbort: ?*BOOL, pStatusCallback: ?PFNSTATUSMESSAGECALLBACK, pWbemServices: ?*IWbemServices, pRsopStatus: ?*HRESULT, ) callconv(@import("std").os.windows.WINAPI) u32, }; pub const RSOP_TARGET = extern struct { pwszAccountName: ?PWSTR, pwszNewSOM: ?PWSTR, psaSecurityGroups: ?*SAFEARRAY, pRsopToken: ?*anyopaque, pGPOList: ?*GROUP_POLICY_OBJECTA, pWbemServices: ?*IWbemServices, }; pub const PFNGENERATEGROUPPOLICY = switch (@import("builtin").zig_backend) { .stage1 => fn ( dwFlags: u32, pbAbort: ?*BOOL, pwszSite: ?PWSTR, pComputerTarget: ?*RSOP_TARGET, pUserTarget: ?*RSOP_TARGET, ) callconv(@import("std").os.windows.WINAPI) u32, else => *const fn ( dwFlags: u32, pbAbort: ?*BOOL, pwszSite: ?PWSTR, pComputerTarget: ?*RSOP_TARGET, pUserTarget: ?*RSOP_TARGET, ) callconv(@import("std").os.windows.WINAPI) u32, }; pub const SETTINGSTATUS = enum(i32) { Unspecified = 0, Applied = 1, Ignored = 2, Failed = 3, SubsettingFailed = 4, }; pub const RSOPUnspecified = SETTINGSTATUS.Unspecified; pub const RSOPApplied = SETTINGSTATUS.Applied; pub const RSOPIgnored = SETTINGSTATUS.Ignored; pub const RSOPFailed = SETTINGSTATUS.Failed; pub const RSOPSubsettingFailed = SETTINGSTATUS.SubsettingFailed; pub const POLICYSETTINGSTATUSINFO = extern struct { szKey: ?PWSTR, szEventSource: ?PWSTR, szEventLogName: ?PWSTR, dwEventID: u32, dwErrorCode: u32, status: SETTINGSTATUS, timeLogged: SYSTEMTIME, }; pub const INSTALLSPECTYPE = enum(i32) { APPNAME = 1, FILEEXT = 2, PROGID = 3, COMCLASS = 4, }; pub const APPNAME = INSTALLSPECTYPE.APPNAME; pub const FILEEXT = INSTALLSPECTYPE.FILEEXT; pub const PROGID = INSTALLSPECTYPE.PROGID; pub const COMCLASS = INSTALLSPECTYPE.COMCLASS; pub const INSTALLSPEC = extern union { AppName: extern struct { Name: ?PWSTR, GPOId: Guid, }, FileExt: ?PWSTR, ProgId: ?PWSTR, COMClass: extern struct { Clsid: Guid, ClsCtx: u32, }, }; pub const INSTALLDATA = extern struct { Type: INSTALLSPECTYPE, Spec: INSTALLSPEC, }; pub const APPSTATE = enum(i32) { ABSENT = 0, ASSIGNED = 1, PUBLISHED = 2, }; pub const ABSENT = APPSTATE.ABSENT; pub const ASSIGNED = APPSTATE.ASSIGNED; pub const PUBLISHED = APPSTATE.PUBLISHED; pub const LOCALMANAGEDAPPLICATION = extern struct { pszDeploymentName: ?PWSTR, pszPolicyName: ?PWSTR, pszProductId: ?PWSTR, dwState: u32, }; pub const MANAGEDAPPLICATION = extern struct { pszPackageName: ?PWSTR, pszPublisher: ?PWSTR, dwVersionHi: u32, dwVersionLo: u32, dwRevision: u32, GpoId: Guid, pszPolicyName: ?PWSTR, ProductId: Guid, Language: u16, pszOwner: ?PWSTR, pszCompany: ?PWSTR, pszComments: ?PWSTR, pszContact: ?PWSTR, pszSupportUrl: ?PWSTR, dwPathType: u32, bInstalled: BOOL, }; pub const GROUP_POLICY_OBJECT_TYPE = enum(i32) { Local = 0, Remote = 1, DS = 2, LocalUser = 3, LocalGroup = 4, }; pub const GPOTypeLocal = GROUP_POLICY_OBJECT_TYPE.Local; pub const GPOTypeRemote = GROUP_POLICY_OBJECT_TYPE.Remote; pub const GPOTypeDS = GROUP_POLICY_OBJECT_TYPE.DS; pub const GPOTypeLocalUser = GROUP_POLICY_OBJECT_TYPE.LocalUser; pub const GPOTypeLocalGroup = GROUP_POLICY_OBJECT_TYPE.LocalGroup; pub const GROUP_POLICY_HINT_TYPE = enum(i32) { Unknown = 0, Machine = 1, Site = 2, Domain = 3, OrganizationalUnit = 4, }; pub const GPHintUnknown = GROUP_POLICY_HINT_TYPE.Unknown; pub const GPHintMachine = GROUP_POLICY_HINT_TYPE.Machine; pub const GPHintSite = GROUP_POLICY_HINT_TYPE.Site; pub const GPHintDomain = GROUP_POLICY_HINT_TYPE.Domain; pub const GPHintOrganizationalUnit = GROUP_POLICY_HINT_TYPE.OrganizationalUnit; // TODO: this type is limited to platform 'windows6.0.6000' const IID_IGPEInformation_Value = Guid.initString("8fc0b735-a0e1-11d1-a7d3-0000f87571e3"); pub const IID_IGPEInformation = &IID_IGPEInformation_Value; pub const IGPEInformation = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, GetName: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IGPEInformation, pszName: [*:0]u16, cchMaxLength: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IGPEInformation, pszName: [*:0]u16, cchMaxLength: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetDisplayName: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IGPEInformation, pszName: [*:0]u16, cchMaxLength: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IGPEInformation, pszName: [*:0]u16, cchMaxLength: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetRegistryKey: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IGPEInformation, dwSection: u32, hKey: ?*?HKEY, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IGPEInformation, dwSection: u32, hKey: ?*?HKEY, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetDSPath: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IGPEInformation, dwSection: u32, pszPath: [*:0]u16, cchMaxPath: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IGPEInformation, dwSection: u32, pszPath: [*:0]u16, cchMaxPath: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetFileSysPath: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IGPEInformation, dwSection: u32, pszPath: [*:0]u16, cchMaxPath: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IGPEInformation, dwSection: u32, pszPath: [*:0]u16, cchMaxPath: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetOptions: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IGPEInformation, dwOptions: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IGPEInformation, dwOptions: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetType: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IGPEInformation, gpoType: ?*GROUP_POLICY_OBJECT_TYPE, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IGPEInformation, gpoType: ?*GROUP_POLICY_OBJECT_TYPE, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetHint: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IGPEInformation, gpHint: ?*GROUP_POLICY_HINT_TYPE, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IGPEInformation, gpHint: ?*GROUP_POLICY_HINT_TYPE, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, PolicyChanged: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IGPEInformation, bMachine: BOOL, bAdd: BOOL, pGuidExtension: ?*Guid, pGuidSnapin: ?*Guid, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IGPEInformation, bMachine: BOOL, bAdd: BOOL, pGuidExtension: ?*Guid, pGuidSnapin: ?*Guid, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IGPEInformation_GetName(self: *const T, pszName: [*:0]u16, cchMaxLength: i32) HRESULT { return @as(*const IGPEInformation.VTable, @ptrCast(self.vtable)).GetName(@as(*const IGPEInformation, @ptrCast(self)), pszName, cchMaxLength); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IGPEInformation_GetDisplayName(self: *const T, pszName: [*:0]u16, cchMaxLength: i32) HRESULT { return @as(*const IGPEInformation.VTable, @ptrCast(self.vtable)).GetDisplayName(@as(*const IGPEInformation, @ptrCast(self)), pszName, cchMaxLength); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IGPEInformation_GetRegistryKey(self: *const T, dwSection: u32, hKey: ?*?HKEY) HRESULT { return @as(*const IGPEInformation.VTable, @ptrCast(self.vtable)).GetRegistryKey(@as(*const IGPEInformation, @ptrCast(self)), dwSection, hKey); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IGPEInformation_GetDSPath(self: *const T, dwSection: u32, pszPath: [*:0]u16, cchMaxPath: i32) HRESULT { return @as(*const IGPEInformation.VTable, @ptrCast(self.vtable)).GetDSPath(@as(*const IGPEInformation, @ptrCast(self)), dwSection, pszPath, cchMaxPath); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IGPEInformation_GetFileSysPath(self: *const T, dwSection: u32, pszPath: [*:0]u16, cchMaxPath: i32) HRESULT { return @as(*const IGPEInformation.VTable, @ptrCast(self.vtable)).GetFileSysPath(@as(*const IGPEInformation, @ptrCast(self)), dwSection, pszPath, cchMaxPath); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IGPEInformation_GetOptions(self: *const T, dwOptions: ?*u32) HRESULT { return @as(*const IGPEInformation.VTable, @ptrCast(self.vtable)).GetOptions(@as(*const IGPEInformation, @ptrCast(self)), dwOptions); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IGPEInformation_GetType(self: *const T, gpoType: ?*GROUP_POLICY_OBJECT_TYPE) HRESULT { return @as(*const IGPEInformation.VTable, @ptrCast(self.vtable)).GetType(@as(*const IGPEInformation, @ptrCast(self)), gpoType); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IGPEInformation_GetHint(self: *const T, gpHint: ?*GROUP_POLICY_HINT_TYPE) HRESULT { return @as(*const IGPEInformation.VTable, @ptrCast(self.vtable)).GetHint(@as(*const IGPEInformation, @ptrCast(self)), gpHint); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IGPEInformation_PolicyChanged(self: *const T, bMachine: BOOL, bAdd: BOOL, pGuidExtension: ?*Guid, pGuidSnapin: ?*Guid) HRESULT { return @as(*const IGPEInformation.VTable, @ptrCast(self.vtable)).PolicyChanged(@as(*const IGPEInformation, @ptrCast(self)), bMachine, bAdd, pGuidExtension, pGuidSnapin); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows6.0.6000' const IID_IGroupPolicyObject_Value = Guid.initString("ea502723-a23d-11d1-a7d3-0000f87571e3"); pub const IID_IGroupPolicyObject = &IID_IGroupPolicyObject_Value; pub const IGroupPolicyObject = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, New: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IGroupPolicyObject, pszDomainName: ?PWSTR, pszDisplayName: ?PWSTR, dwFlags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IGroupPolicyObject, pszDomainName: ?PWSTR, pszDisplayName: ?PWSTR, dwFlags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, OpenDSGPO: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IGroupPolicyObject, pszPath: ?PWSTR, dwFlags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IGroupPolicyObject, pszPath: ?PWSTR, dwFlags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, OpenLocalMachineGPO: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IGroupPolicyObject, dwFlags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IGroupPolicyObject, dwFlags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, OpenRemoteMachineGPO: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IGroupPolicyObject, pszComputerName: ?PWSTR, dwFlags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IGroupPolicyObject, pszComputerName: ?PWSTR, dwFlags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Save: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IGroupPolicyObject, bMachine: BOOL, bAdd: BOOL, pGuidExtension: ?*Guid, pGuid: ?*Guid, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IGroupPolicyObject, bMachine: BOOL, bAdd: BOOL, pGuidExtension: ?*Guid, pGuid: ?*Guid, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Delete: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IGroupPolicyObject, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IGroupPolicyObject, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetName: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IGroupPolicyObject, pszName: [*:0]u16, cchMaxLength: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IGroupPolicyObject, pszName: [*:0]u16, cchMaxLength: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetDisplayName: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IGroupPolicyObject, pszName: [*:0]u16, cchMaxLength: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IGroupPolicyObject, pszName: [*:0]u16, cchMaxLength: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetDisplayName: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IGroupPolicyObject, pszName: ?PWSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IGroupPolicyObject, pszName: ?PWSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetPath: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IGroupPolicyObject, pszPath: [*:0]u16, cchMaxLength: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IGroupPolicyObject, pszPath: [*:0]u16, cchMaxLength: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetDSPath: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IGroupPolicyObject, dwSection: u32, pszPath: [*:0]u16, cchMaxPath: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IGroupPolicyObject, dwSection: u32, pszPath: [*:0]u16, cchMaxPath: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetFileSysPath: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IGroupPolicyObject, dwSection: u32, pszPath: [*:0]u16, cchMaxPath: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IGroupPolicyObject, dwSection: u32, pszPath: [*:0]u16, cchMaxPath: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetRegistryKey: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IGroupPolicyObject, dwSection: u32, hKey: ?*?HKEY, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IGroupPolicyObject, dwSection: u32, hKey: ?*?HKEY, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetOptions: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IGroupPolicyObject, dwOptions: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IGroupPolicyObject, dwOptions: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetOptions: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IGroupPolicyObject, dwOptions: u32, dwMask: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IGroupPolicyObject, dwOptions: u32, dwMask: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetType: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IGroupPolicyObject, gpoType: ?*GROUP_POLICY_OBJECT_TYPE, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IGroupPolicyObject, gpoType: ?*GROUP_POLICY_OBJECT_TYPE, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetMachineName: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IGroupPolicyObject, pszName: [*:0]u16, cchMaxLength: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IGroupPolicyObject, pszName: [*:0]u16, cchMaxLength: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetPropertySheetPages: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IGroupPolicyObject, hPages: ?*?*?HPROPSHEETPAGE, uPageCount: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IGroupPolicyObject, hPages: ?*?*?HPROPSHEETPAGE, uPageCount: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IGroupPolicyObject_New(self: *const T, pszDomainName: ?PWSTR, pszDisplayName: ?PWSTR, dwFlags: u32) HRESULT { return @as(*const IGroupPolicyObject.VTable, @ptrCast(self.vtable)).New(@as(*const IGroupPolicyObject, @ptrCast(self)), pszDomainName, pszDisplayName, dwFlags); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IGroupPolicyObject_OpenDSGPO(self: *const T, pszPath: ?PWSTR, dwFlags: u32) HRESULT { return @as(*const IGroupPolicyObject.VTable, @ptrCast(self.vtable)).OpenDSGPO(@as(*const IGroupPolicyObject, @ptrCast(self)), pszPath, dwFlags); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IGroupPolicyObject_OpenLocalMachineGPO(self: *const T, dwFlags: u32) HRESULT { return @as(*const IGroupPolicyObject.VTable, @ptrCast(self.vtable)).OpenLocalMachineGPO(@as(*const IGroupPolicyObject, @ptrCast(self)), dwFlags); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IGroupPolicyObject_OpenRemoteMachineGPO(self: *const T, pszComputerName: ?PWSTR, dwFlags: u32) HRESULT { return @as(*const IGroupPolicyObject.VTable, @ptrCast(self.vtable)).OpenRemoteMachineGPO(@as(*const IGroupPolicyObject, @ptrCast(self)), pszComputerName, dwFlags); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IGroupPolicyObject_Save(self: *const T, bMachine: BOOL, bAdd: BOOL, pGuidExtension: ?*Guid, pGuid: ?*Guid) HRESULT { return @as(*const IGroupPolicyObject.VTable, @ptrCast(self.vtable)).Save(@as(*const IGroupPolicyObject, @ptrCast(self)), bMachine, bAdd, pGuidExtension, pGuid); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IGroupPolicyObject_Delete(self: *const T) HRESULT { return @as(*const IGroupPolicyObject.VTable, @ptrCast(self.vtable)).Delete(@as(*const IGroupPolicyObject, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IGroupPolicyObject_GetName(self: *const T, pszName: [*:0]u16, cchMaxLength: i32) HRESULT { return @as(*const IGroupPolicyObject.VTable, @ptrCast(self.vtable)).GetName(@as(*const IGroupPolicyObject, @ptrCast(self)), pszName, cchMaxLength); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IGroupPolicyObject_GetDisplayName(self: *const T, pszName: [*:0]u16, cchMaxLength: i32) HRESULT { return @as(*const IGroupPolicyObject.VTable, @ptrCast(self.vtable)).GetDisplayName(@as(*const IGroupPolicyObject, @ptrCast(self)), pszName, cchMaxLength); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IGroupPolicyObject_SetDisplayName(self: *const T, pszName: ?PWSTR) HRESULT { return @as(*const IGroupPolicyObject.VTable, @ptrCast(self.vtable)).SetDisplayName(@as(*const IGroupPolicyObject, @ptrCast(self)), pszName); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IGroupPolicyObject_GetPath(self: *const T, pszPath: [*:0]u16, cchMaxLength: i32) HRESULT { return @as(*const IGroupPolicyObject.VTable, @ptrCast(self.vtable)).GetPath(@as(*const IGroupPolicyObject, @ptrCast(self)), pszPath, cchMaxLength); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IGroupPolicyObject_GetDSPath(self: *const T, dwSection: u32, pszPath: [*:0]u16, cchMaxPath: i32) HRESULT { return @as(*const IGroupPolicyObject.VTable, @ptrCast(self.vtable)).GetDSPath(@as(*const IGroupPolicyObject, @ptrCast(self)), dwSection, pszPath, cchMaxPath); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IGroupPolicyObject_GetFileSysPath(self: *const T, dwSection: u32, pszPath: [*:0]u16, cchMaxPath: i32) HRESULT { return @as(*const IGroupPolicyObject.VTable, @ptrCast(self.vtable)).GetFileSysPath(@as(*const IGroupPolicyObject, @ptrCast(self)), dwSection, pszPath, cchMaxPath); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IGroupPolicyObject_GetRegistryKey(self: *const T, dwSection: u32, hKey: ?*?HKEY) HRESULT { return @as(*const IGroupPolicyObject.VTable, @ptrCast(self.vtable)).GetRegistryKey(@as(*const IGroupPolicyObject, @ptrCast(self)), dwSection, hKey); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IGroupPolicyObject_GetOptions(self: *const T, dwOptions: ?*u32) HRESULT { return @as(*const IGroupPolicyObject.VTable, @ptrCast(self.vtable)).GetOptions(@as(*const IGroupPolicyObject, @ptrCast(self)), dwOptions); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IGroupPolicyObject_SetOptions(self: *const T, dwOptions: u32, dwMask: u32) HRESULT { return @as(*const IGroupPolicyObject.VTable, @ptrCast(self.vtable)).SetOptions(@as(*const IGroupPolicyObject, @ptrCast(self)), dwOptions, dwMask); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IGroupPolicyObject_GetType(self: *const T, gpoType: ?*GROUP_POLICY_OBJECT_TYPE) HRESULT { return @as(*const IGroupPolicyObject.VTable, @ptrCast(self.vtable)).GetType(@as(*const IGroupPolicyObject, @ptrCast(self)), gpoType); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IGroupPolicyObject_GetMachineName(self: *const T, pszName: [*:0]u16, cchMaxLength: i32) HRESULT { return @as(*const IGroupPolicyObject.VTable, @ptrCast(self.vtable)).GetMachineName(@as(*const IGroupPolicyObject, @ptrCast(self)), pszName, cchMaxLength); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IGroupPolicyObject_GetPropertySheetPages(self: *const T, hPages: ?*?*?HPROPSHEETPAGE, uPageCount: ?*u32) HRESULT { return @as(*const IGroupPolicyObject.VTable, @ptrCast(self.vtable)).GetPropertySheetPages(@as(*const IGroupPolicyObject, @ptrCast(self)), hPages, uPageCount); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows6.0.6000' const IID_IRSOPInformation_Value = Guid.initString("9a5a81b5-d9c7-49ef-9d11-ddf50968c48d"); pub const IID_IRSOPInformation = &IID_IRSOPInformation_Value; pub const IRSOPInformation = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, GetNamespace: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IRSOPInformation, dwSection: u32, pszName: [*:0]u16, cchMaxLength: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IRSOPInformation, dwSection: u32, pszName: [*:0]u16, cchMaxLength: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetFlags: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IRSOPInformation, pdwFlags: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IRSOPInformation, pdwFlags: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetEventLogEntryText: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IRSOPInformation, pszEventSource: ?PWSTR, pszEventLogName: ?PWSTR, pszEventTime: ?PWSTR, dwEventID: u32, ppszText: ?*?PWSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IRSOPInformation, pszEventSource: ?PWSTR, pszEventLogName: ?PWSTR, pszEventTime: ?PWSTR, dwEventID: u32, ppszText: ?*?PWSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRSOPInformation_GetNamespace(self: *const T, dwSection: u32, pszName: [*:0]u16, cchMaxLength: i32) HRESULT { return @as(*const IRSOPInformation.VTable, @ptrCast(self.vtable)).GetNamespace(@as(*const IRSOPInformation, @ptrCast(self)), dwSection, pszName, cchMaxLength); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRSOPInformation_GetFlags(self: *const T, pdwFlags: ?*u32) HRESULT { return @as(*const IRSOPInformation.VTable, @ptrCast(self.vtable)).GetFlags(@as(*const IRSOPInformation, @ptrCast(self)), pdwFlags); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRSOPInformation_GetEventLogEntryText(self: *const T, pszEventSource: ?PWSTR, pszEventLogName: ?PWSTR, pszEventTime: ?PWSTR, dwEventID: u32, ppszText: ?*?PWSTR) HRESULT { return @as(*const IRSOPInformation.VTable, @ptrCast(self.vtable)).GetEventLogEntryText(@as(*const IRSOPInformation, @ptrCast(self)), pszEventSource, pszEventLogName, pszEventTime, dwEventID, ppszText); } }; } pub usingnamespace MethodMixin(@This()); }; pub const GPOBROWSEINFO = extern struct { dwSize: u32, dwFlags: u32, hwndOwner: ?HWND, lpTitle: ?PWSTR, lpInitialOU: ?PWSTR, lpDSPath: ?PWSTR, dwDSPathSize: u32, lpName: ?PWSTR, dwNameSize: u32, gpoType: GROUP_POLICY_OBJECT_TYPE, gpoHint: GROUP_POLICY_HINT_TYPE, }; //-------------------------------------------------------------------------------- // Section: Functions (32) //-------------------------------------------------------------------------------- // TODO: this type is limited to platform 'windows6.0.6000' pub extern "userenv" fn RefreshPolicy( bMachine: BOOL, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows6.0.6000' pub extern "userenv" fn RefreshPolicyEx( bMachine: BOOL, dwOptions: u32, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows6.0.6000' pub extern "userenv" fn EnterCriticalPolicySection( bMachine: BOOL, ) callconv(@import("std").os.windows.WINAPI) ?HANDLE; // TODO: this type is limited to platform 'windows6.0.6000' pub extern "userenv" fn LeaveCriticalPolicySection( hSection: ?HANDLE, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows6.0.6000' pub extern "userenv" fn RegisterGPNotification( hEvent: ?HANDLE, bMachine: BOOL, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows6.0.6000' pub extern "userenv" fn UnregisterGPNotification( hEvent: ?HANDLE, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows6.0.6000' pub extern "userenv" fn GetGPOListA( hToken: ?HANDLE, lpName: ?[*:0]const u8, lpHostName: ?[*:0]const u8, lpComputerName: ?[*:0]const u8, dwFlags: u32, pGPOList: ?*?*GROUP_POLICY_OBJECTA, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows6.0.6000' pub extern "userenv" fn GetGPOListW( hToken: ?HANDLE, lpName: ?[*:0]const u16, lpHostName: ?[*:0]const u16, lpComputerName: ?[*:0]const u16, dwFlags: u32, pGPOList: ?*?*GROUP_POLICY_OBJECTW, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows6.0.6000' pub extern "userenv" fn FreeGPOListA( pGPOList: ?*GROUP_POLICY_OBJECTA, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows6.0.6000' pub extern "userenv" fn FreeGPOListW( pGPOList: ?*GROUP_POLICY_OBJECTW, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows6.0.6000' pub extern "userenv" fn GetAppliedGPOListA( dwFlags: u32, pMachineName: ?[*:0]const u8, pSidUser: ?PSID, pGuidExtension: ?*Guid, ppGPOList: ?*?*GROUP_POLICY_OBJECTA, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'windows6.0.6000' pub extern "userenv" fn GetAppliedGPOListW( dwFlags: u32, pMachineName: ?[*:0]const u16, pSidUser: ?PSID, pGuidExtension: ?*Guid, ppGPOList: ?*?*GROUP_POLICY_OBJECTW, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'windows6.0.6000' pub extern "userenv" fn ProcessGroupPolicyCompleted( extensionId: ?*Guid, pAsyncHandle: usize, dwStatus: u32, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'windows6.0.6000' pub extern "userenv" fn ProcessGroupPolicyCompletedEx( extensionId: ?*Guid, pAsyncHandle: usize, dwStatus: u32, RsopStatus: HRESULT, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'windows6.0.6000' pub extern "userenv" fn RsopAccessCheckByType( pSecurityDescriptor: ?*SECURITY_DESCRIPTOR, pPrincipalSelfSid: ?PSID, pRsopToken: ?*anyopaque, dwDesiredAccessMask: u32, pObjectTypeList: ?[*]OBJECT_TYPE_LIST, ObjectTypeListLength: u32, pGenericMapping: ?*GENERIC_MAPPING, // TODO: what to do with BytesParamIndex 8? pPrivilegeSet: ?*PRIVILEGE_SET, pdwPrivilegeSetLength: ?*u32, pdwGrantedAccessMask: ?*u32, pbAccessStatus: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT; // TODO: this type is limited to platform 'windows6.0.6000' pub extern "userenv" fn RsopFileAccessCheck( pszFileName: ?PWSTR, pRsopToken: ?*anyopaque, dwDesiredAccessMask: u32, pdwGrantedAccessMask: ?*u32, pbAccessStatus: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT; // TODO: this type is limited to platform 'windows6.0.6000' pub extern "userenv" fn RsopSetPolicySettingStatus( dwFlags: u32, pServices: ?*IWbemServices, pSettingInstance: ?*IWbemClassObject, nInfo: u32, pStatus: [*]POLICYSETTINGSTATUSINFO, ) callconv(@import("std").os.windows.WINAPI) HRESULT; // TODO: this type is limited to platform 'windows6.0.6000' pub extern "userenv" fn RsopResetPolicySettingStatus( dwFlags: u32, pServices: ?*IWbemServices, pSettingInstance: ?*IWbemClassObject, ) callconv(@import("std").os.windows.WINAPI) HRESULT; pub extern "userenv" fn GenerateGPNotification( bMachine: BOOL, lpwszMgmtProduct: ?[*:0]const u16, dwMgmtProductOptions: u32, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'windows6.0.6000' pub extern "advapi32" fn InstallApplication( pInstallInfo: ?*INSTALLDATA, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'windows6.0.6000' pub extern "advapi32" fn UninstallApplication( ProductCode: ?PWSTR, dwStatus: u32, ) callconv(@import("std").os.windows.WINAPI) u32; pub extern "advapi32" fn CommandLineFromMsiDescriptor( Descriptor: ?PWSTR, CommandLine: [*:0]u16, CommandLineLength: ?*u32, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'windows6.0.6000' pub extern "advapi32" fn GetManagedApplications( pCategory: ?*Guid, dwQueryFlags: u32, dwInfoLevel: u32, pdwApps: ?*u32, prgManagedApps: ?*?*MANAGEDAPPLICATION, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'windows6.0.6000' pub extern "advapi32" fn GetLocalManagedApplications( bUserApps: BOOL, pdwApps: ?*u32, prgLocalApps: ?*?*LOCALMANAGEDAPPLICATION, ) callconv(@import("std").os.windows.WINAPI) u32; pub extern "advapi32" fn GetLocalManagedApplicationData( ProductCode: ?PWSTR, DisplayName: ?*?PWSTR, SupportUrl: ?*?PWSTR, ) callconv(@import("std").os.windows.WINAPI) void; // TODO: this type is limited to platform 'windows6.0.6000' pub extern "advapi32" fn GetManagedApplicationCategories( dwReserved: u32, pAppCategory: ?*APPCATEGORYINFOLIST, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'windows6.0.6000' pub extern "gpedit" fn CreateGPOLink( lpGPO: ?PWSTR, lpContainer: ?PWSTR, fHighPriority: BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT; // TODO: this type is limited to platform 'windows6.0.6000' pub extern "gpedit" fn DeleteGPOLink( lpGPO: ?PWSTR, lpContainer: ?PWSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT; // TODO: this type is limited to platform 'windows6.0.6000' pub extern "gpedit" fn DeleteAllGPOLinks( lpContainer: ?PWSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT; // TODO: this type is limited to platform 'windows6.0.6000' pub extern "gpedit" fn BrowseForGPO( lpBrowseInfo: ?*GPOBROWSEINFO, ) callconv(@import("std").os.windows.WINAPI) HRESULT; // TODO: this type is limited to platform 'windows6.0.6000' pub extern "gpedit" fn ImportRSoPData( lpNameSpace: ?PWSTR, lpFileName: ?PWSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT; // TODO: this type is limited to platform 'windows6.0.6000' pub extern "gpedit" fn ExportRSoPData( lpNameSpace: ?PWSTR, lpFileName: ?PWSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT; //-------------------------------------------------------------------------------- // Section: Unicode Aliases (4) //-------------------------------------------------------------------------------- const thismodule = @This(); pub usingnamespace switch (@import("../zig.zig").unicode_mode) { .ansi => struct { pub const GROUP_POLICY_OBJECT = thismodule.GROUP_POLICY_OBJECTA; pub const GetGPOList = thismodule.GetGPOListA; pub const FreeGPOList = thismodule.FreeGPOListA; pub const GetAppliedGPOList = thismodule.GetAppliedGPOListA; }, .wide => struct { pub const GROUP_POLICY_OBJECT = thismodule.GROUP_POLICY_OBJECTW; pub const GetGPOList = thismodule.GetGPOListW; pub const FreeGPOList = thismodule.FreeGPOListW; pub const GetAppliedGPOList = thismodule.GetAppliedGPOListW; }, .unspecified => if (@import("builtin").is_test) struct { pub const GROUP_POLICY_OBJECT = *opaque {}; pub const GetGPOList = *opaque {}; pub const FreeGPOList = *opaque {}; pub const GetAppliedGPOList = *opaque {}; } else struct { pub const GROUP_POLICY_OBJECT = @compileError("'GROUP_POLICY_OBJECT' requires that UNICODE be set to true or false in the root module"); pub const GetGPOList = @compileError("'GetGPOList' requires that UNICODE be set to true or false in the root module"); pub const FreeGPOList = @compileError("'FreeGPOList' requires that UNICODE be set to true or false in the root module"); pub const GetAppliedGPOList = @compileError("'GetAppliedGPOList' requires that UNICODE be set to true or false in the root module"); }, }; //-------------------------------------------------------------------------------- // Section: Imports (26) //-------------------------------------------------------------------------------- const Guid = @import("../zig.zig").Guid; const APPCATEGORYINFOLIST = @import("../ui/shell.zig").APPCATEGORYINFOLIST; const BOOL = @import("../foundation.zig").BOOL; const BSTR = @import("../foundation.zig").BSTR; const CHAR = @import("../foundation.zig").CHAR; const GENERIC_MAPPING = @import("../security.zig").GENERIC_MAPPING; const HANDLE = @import("../foundation.zig").HANDLE; const HKEY = @import("../system/registry.zig").HKEY; const HPROPSHEETPAGE = @import("../ui/controls.zig").HPROPSHEETPAGE; const HRESULT = @import("../foundation.zig").HRESULT; const HWND = @import("../foundation.zig").HWND; const IDispatch = @import("../system/com.zig").IDispatch; const IEnumVARIANT = @import("../system/ole.zig").IEnumVARIANT; const IUnknown = @import("../system/com.zig").IUnknown; const IWbemClassObject = @import("../system/wmi.zig").IWbemClassObject; const IWbemServices = @import("../system/wmi.zig").IWbemServices; const LPARAM = @import("../foundation.zig").LPARAM; const OBJECT_TYPE_LIST = @import("../security.zig").OBJECT_TYPE_LIST; const PRIVILEGE_SET = @import("../security.zig").PRIVILEGE_SET; const PSID = @import("../foundation.zig").PSID; const PSTR = @import("../foundation.zig").PSTR; const PWSTR = @import("../foundation.zig").PWSTR; const SAFEARRAY = @import("../system/com.zig").SAFEARRAY; const SECURITY_DESCRIPTOR = @import("../security.zig").SECURITY_DESCRIPTOR; const SYSTEMTIME = @import("../foundation.zig").SYSTEMTIME; const VARIANT = @import("../system/com.zig").VARIANT; test { // The following '_ = <FuncPtrType>' lines are a workaround for https://github.com/ziglang/zig/issues/4476 if (@hasDecl(@This(), "PFNSTATUSMESSAGECALLBACK")) { _ = PFNSTATUSMESSAGECALLBACK; } if (@hasDecl(@This(), "PFNPROCESSGROUPPOLICY")) { _ = PFNPROCESSGROUPPOLICY; } if (@hasDecl(@This(), "PFNPROCESSGROUPPOLICYEX")) { _ = PFNPROCESSGROUPPOLICYEX; } if (@hasDecl(@This(), "PFNGENERATEGROUPPOLICY")) { _ = PFNGENERATEGROUPPOLICY; } @setEvalBranchQuota(comptime @import("std").meta.declarations(@This()).len * 3); // reference all the pub declarations if (!@import("builtin").is_test) return; inline for (comptime @import("std").meta.declarations(@This())) |decl| { if (decl.is_pub) { _ = @field(@This(), decl.name); } } }
0
repos/capy/vendor/zigwin32/win32
repos/capy/vendor/zigwin32/win32/system/mailslots.zig
//! NOTE: this file is autogenerated, DO NOT MODIFY //-------------------------------------------------------------------------------- // Section: Constants (0) //-------------------------------------------------------------------------------- //-------------------------------------------------------------------------------- // Section: Types (0) //-------------------------------------------------------------------------------- //-------------------------------------------------------------------------------- // Section: Functions (4) //-------------------------------------------------------------------------------- // TODO: this type is limited to platform 'windows5.0' pub extern "kernel32" fn CreateMailslotA( lpName: ?[*:0]const u8, nMaxMessageSize: u32, lReadTimeout: u32, lpSecurityAttributes: ?*SECURITY_ATTRIBUTES, ) callconv(@import("std").os.windows.WINAPI) ?HANDLE; // TODO: this type is limited to platform 'windows5.0' pub extern "kernel32" fn CreateMailslotW( lpName: ?[*:0]const u16, nMaxMessageSize: u32, lReadTimeout: u32, lpSecurityAttributes: ?*SECURITY_ATTRIBUTES, ) callconv(@import("std").os.windows.WINAPI) ?HANDLE; // TODO: this type is limited to platform 'windows5.0' pub extern "kernel32" fn GetMailslotInfo( hMailslot: ?HANDLE, lpMaxMessageSize: ?*u32, lpNextSize: ?*u32, lpMessageCount: ?*u32, lpReadTimeout: ?*u32, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows5.0' pub extern "kernel32" fn SetMailslotInfo( hMailslot: ?HANDLE, lReadTimeout: u32, ) callconv(@import("std").os.windows.WINAPI) BOOL; //-------------------------------------------------------------------------------- // Section: Unicode Aliases (1) //-------------------------------------------------------------------------------- const thismodule = @This(); pub usingnamespace switch (@import("../zig.zig").unicode_mode) { .ansi => struct { pub const CreateMailslot = thismodule.CreateMailslotA; }, .wide => struct { pub const CreateMailslot = thismodule.CreateMailslotW; }, .unspecified => if (@import("builtin").is_test) struct { pub const CreateMailslot = *opaque {}; } else struct { pub const CreateMailslot = @compileError("'CreateMailslot' requires that UNICODE be set to true or false in the root module"); }, }; //-------------------------------------------------------------------------------- // Section: Imports (5) //-------------------------------------------------------------------------------- const BOOL = @import("../foundation.zig").BOOL; const HANDLE = @import("../foundation.zig").HANDLE; const PSTR = @import("../foundation.zig").PSTR; const PWSTR = @import("../foundation.zig").PWSTR; const SECURITY_ATTRIBUTES = @import("../security.zig").SECURITY_ATTRIBUTES; test { @setEvalBranchQuota(comptime @import("std").meta.declarations(@This()).len * 3); // reference all the pub declarations if (!@import("builtin").is_test) return; inline for (comptime @import("std").meta.declarations(@This())) |decl| { if (decl.is_pub) { _ = @field(@This(), decl.name); } } }
0
repos/capy/vendor/zigwin32/win32
repos/capy/vendor/zigwin32/win32/system/com.zig
//! NOTE: this file is autogenerated, DO NOT MODIFY //-------------------------------------------------------------------------------- // Section: Constants (39) //-------------------------------------------------------------------------------- pub const MARSHALINTERFACE_MIN = @as(u32, 500); pub const ASYNC_MODE_COMPATIBILITY = @as(i32, 1); pub const ASYNC_MODE_DEFAULT = @as(i32, 0); pub const STGTY_REPEAT = @as(i32, 256); pub const STG_TOEND = @as(i32, -1); pub const STG_LAYOUT_SEQUENTIAL = @as(i32, 0); pub const STG_LAYOUT_INTERLEAVED = @as(i32, 1); pub const COM_RIGHTS_EXECUTE = @as(u32, 1); pub const COM_RIGHTS_EXECUTE_LOCAL = @as(u32, 2); pub const COM_RIGHTS_EXECUTE_REMOTE = @as(u32, 4); pub const COM_RIGHTS_ACTIVATE_LOCAL = @as(u32, 8); pub const COM_RIGHTS_ACTIVATE_REMOTE = @as(u32, 16); pub const COM_RIGHTS_RESERVED1 = @as(u32, 32); pub const COM_RIGHTS_RESERVED2 = @as(u32, 64); pub const CWMO_MAX_HANDLES = @as(u32, 56); pub const ROTREGFLAGS_ALLOWANYCLIENT = @as(u32, 1); pub const APPIDREGFLAGS_ACTIVATE_IUSERVER_INDESKTOP = @as(u32, 1); pub const APPIDREGFLAGS_SECURE_SERVER_PROCESS_SD_AND_BIND = @as(u32, 2); pub const APPIDREGFLAGS_ISSUE_ACTIVATION_RPC_AT_IDENTIFY = @as(u32, 4); pub const APPIDREGFLAGS_IUSERVER_UNMODIFIED_LOGON_TOKEN = @as(u32, 8); pub const APPIDREGFLAGS_IUSERVER_SELF_SID_IN_LAUNCH_PERMISSION = @as(u32, 16); pub const APPIDREGFLAGS_IUSERVER_ACTIVATE_IN_CLIENT_SESSION_ONLY = @as(u32, 32); pub const APPIDREGFLAGS_RESERVED1 = @as(u32, 64); pub const APPIDREGFLAGS_RESERVED2 = @as(u32, 128); pub const APPIDREGFLAGS_RESERVED3 = @as(u32, 256); pub const APPIDREGFLAGS_RESERVED4 = @as(u32, 512); pub const APPIDREGFLAGS_RESERVED5 = @as(u32, 1024); pub const APPIDREGFLAGS_AAA_NO_IMPLICIT_ACTIVATE_AS_IU = @as(u32, 2048); pub const APPIDREGFLAGS_RESERVED7 = @as(u32, 4096); pub const APPIDREGFLAGS_RESERVED8 = @as(u32, 8192); pub const APPIDREGFLAGS_RESERVED9 = @as(u32, 16384); pub const DCOMSCM_ACTIVATION_USE_ALL_AUTHNSERVICES = @as(u32, 1); pub const DCOMSCM_ACTIVATION_DISALLOW_UNSECURE_CALL = @as(u32, 2); pub const DCOMSCM_RESOLVE_USE_ALL_AUTHNSERVICES = @as(u32, 4); pub const DCOMSCM_RESOLVE_DISALLOW_UNSECURE_CALL = @as(u32, 8); pub const DCOMSCM_PING_USE_MID_AUTHNSERVICE = @as(u32, 16); pub const DCOMSCM_PING_DISALLOW_UNSECURE_CALL = @as(u32, 32); pub const MAXLSN = @as(u64, 9223372036854775807); pub const DMUS_ERRBASE = @as(u32, 4096); //-------------------------------------------------------------------------------- // Section: Types (232) //-------------------------------------------------------------------------------- // TODO: this function pointer causes dependency loop problems, so it's stubbed out pub const LPEXCEPFINO_DEFERRED_FILLIN = switch (@import("builtin").zig_backend) { .stage1 => fn () callconv(@import("std").os.windows.WINAPI) void, else => *const fn () callconv(@import("std").os.windows.WINAPI) void, }; pub const URI_CREATE_FLAGS = enum(u32) { ALLOW_RELATIVE = 1, ALLOW_IMPLICIT_WILDCARD_SCHEME = 2, ALLOW_IMPLICIT_FILE_SCHEME = 4, NOFRAG = 8, NO_CANONICALIZE = 16, CANONICALIZE = 256, FILE_USE_DOS_PATH = 32, DECODE_EXTRA_INFO = 64, NO_DECODE_EXTRA_INFO = 128, CRACK_UNKNOWN_SCHEMES = 512, NO_CRACK_UNKNOWN_SCHEMES = 1024, PRE_PROCESS_HTML_URI = 2048, NO_PRE_PROCESS_HTML_URI = 4096, IE_SETTINGS = 8192, NO_IE_SETTINGS = 16384, NO_ENCODE_FORBIDDEN_CHARACTERS = 32768, NORMALIZE_INTL_CHARACTERS = 65536, CANONICALIZE_ABSOLUTE = 131072, _, pub fn initFlags(o: struct { ALLOW_RELATIVE: u1 = 0, ALLOW_IMPLICIT_WILDCARD_SCHEME: u1 = 0, ALLOW_IMPLICIT_FILE_SCHEME: u1 = 0, NOFRAG: u1 = 0, NO_CANONICALIZE: u1 = 0, CANONICALIZE: u1 = 0, FILE_USE_DOS_PATH: u1 = 0, DECODE_EXTRA_INFO: u1 = 0, NO_DECODE_EXTRA_INFO: u1 = 0, CRACK_UNKNOWN_SCHEMES: u1 = 0, NO_CRACK_UNKNOWN_SCHEMES: u1 = 0, PRE_PROCESS_HTML_URI: u1 = 0, NO_PRE_PROCESS_HTML_URI: u1 = 0, IE_SETTINGS: u1 = 0, NO_IE_SETTINGS: u1 = 0, NO_ENCODE_FORBIDDEN_CHARACTERS: u1 = 0, NORMALIZE_INTL_CHARACTERS: u1 = 0, CANONICALIZE_ABSOLUTE: u1 = 0, }) URI_CREATE_FLAGS { return @as(URI_CREATE_FLAGS, @enumFromInt((if (o.ALLOW_RELATIVE == 1) @intFromEnum(URI_CREATE_FLAGS.ALLOW_RELATIVE) else 0) | (if (o.ALLOW_IMPLICIT_WILDCARD_SCHEME == 1) @intFromEnum(URI_CREATE_FLAGS.ALLOW_IMPLICIT_WILDCARD_SCHEME) else 0) | (if (o.ALLOW_IMPLICIT_FILE_SCHEME == 1) @intFromEnum(URI_CREATE_FLAGS.ALLOW_IMPLICIT_FILE_SCHEME) else 0) | (if (o.NOFRAG == 1) @intFromEnum(URI_CREATE_FLAGS.NOFRAG) else 0) | (if (o.NO_CANONICALIZE == 1) @intFromEnum(URI_CREATE_FLAGS.NO_CANONICALIZE) else 0) | (if (o.CANONICALIZE == 1) @intFromEnum(URI_CREATE_FLAGS.CANONICALIZE) else 0) | (if (o.FILE_USE_DOS_PATH == 1) @intFromEnum(URI_CREATE_FLAGS.FILE_USE_DOS_PATH) else 0) | (if (o.DECODE_EXTRA_INFO == 1) @intFromEnum(URI_CREATE_FLAGS.DECODE_EXTRA_INFO) else 0) | (if (o.NO_DECODE_EXTRA_INFO == 1) @intFromEnum(URI_CREATE_FLAGS.NO_DECODE_EXTRA_INFO) else 0) | (if (o.CRACK_UNKNOWN_SCHEMES == 1) @intFromEnum(URI_CREATE_FLAGS.CRACK_UNKNOWN_SCHEMES) else 0) | (if (o.NO_CRACK_UNKNOWN_SCHEMES == 1) @intFromEnum(URI_CREATE_FLAGS.NO_CRACK_UNKNOWN_SCHEMES) else 0) | (if (o.PRE_PROCESS_HTML_URI == 1) @intFromEnum(URI_CREATE_FLAGS.PRE_PROCESS_HTML_URI) else 0) | (if (o.NO_PRE_PROCESS_HTML_URI == 1) @intFromEnum(URI_CREATE_FLAGS.NO_PRE_PROCESS_HTML_URI) else 0) | (if (o.IE_SETTINGS == 1) @intFromEnum(URI_CREATE_FLAGS.IE_SETTINGS) else 0) | (if (o.NO_IE_SETTINGS == 1) @intFromEnum(URI_CREATE_FLAGS.NO_IE_SETTINGS) else 0) | (if (o.NO_ENCODE_FORBIDDEN_CHARACTERS == 1) @intFromEnum(URI_CREATE_FLAGS.NO_ENCODE_FORBIDDEN_CHARACTERS) else 0) | (if (o.NORMALIZE_INTL_CHARACTERS == 1) @intFromEnum(URI_CREATE_FLAGS.NORMALIZE_INTL_CHARACTERS) else 0) | (if (o.CANONICALIZE_ABSOLUTE == 1) @intFromEnum(URI_CREATE_FLAGS.CANONICALIZE_ABSOLUTE) else 0))); } }; pub const Uri_CREATE_ALLOW_RELATIVE = URI_CREATE_FLAGS.ALLOW_RELATIVE; pub const Uri_CREATE_ALLOW_IMPLICIT_WILDCARD_SCHEME = URI_CREATE_FLAGS.ALLOW_IMPLICIT_WILDCARD_SCHEME; pub const Uri_CREATE_ALLOW_IMPLICIT_FILE_SCHEME = URI_CREATE_FLAGS.ALLOW_IMPLICIT_FILE_SCHEME; pub const Uri_CREATE_NOFRAG = URI_CREATE_FLAGS.NOFRAG; pub const Uri_CREATE_NO_CANONICALIZE = URI_CREATE_FLAGS.NO_CANONICALIZE; pub const Uri_CREATE_CANONICALIZE = URI_CREATE_FLAGS.CANONICALIZE; pub const Uri_CREATE_FILE_USE_DOS_PATH = URI_CREATE_FLAGS.FILE_USE_DOS_PATH; pub const Uri_CREATE_DECODE_EXTRA_INFO = URI_CREATE_FLAGS.DECODE_EXTRA_INFO; pub const Uri_CREATE_NO_DECODE_EXTRA_INFO = URI_CREATE_FLAGS.NO_DECODE_EXTRA_INFO; pub const Uri_CREATE_CRACK_UNKNOWN_SCHEMES = URI_CREATE_FLAGS.CRACK_UNKNOWN_SCHEMES; pub const Uri_CREATE_NO_CRACK_UNKNOWN_SCHEMES = URI_CREATE_FLAGS.NO_CRACK_UNKNOWN_SCHEMES; pub const Uri_CREATE_PRE_PROCESS_HTML_URI = URI_CREATE_FLAGS.PRE_PROCESS_HTML_URI; pub const Uri_CREATE_NO_PRE_PROCESS_HTML_URI = URI_CREATE_FLAGS.NO_PRE_PROCESS_HTML_URI; pub const Uri_CREATE_IE_SETTINGS = URI_CREATE_FLAGS.IE_SETTINGS; pub const Uri_CREATE_NO_IE_SETTINGS = URI_CREATE_FLAGS.NO_IE_SETTINGS; pub const Uri_CREATE_NO_ENCODE_FORBIDDEN_CHARACTERS = URI_CREATE_FLAGS.NO_ENCODE_FORBIDDEN_CHARACTERS; pub const Uri_CREATE_NORMALIZE_INTL_CHARACTERS = URI_CREATE_FLAGS.NORMALIZE_INTL_CHARACTERS; pub const Uri_CREATE_CANONICALIZE_ABSOLUTE = URI_CREATE_FLAGS.CANONICALIZE_ABSOLUTE; pub const RPC_C_AUTHN_LEVEL = enum(u32) { DEFAULT = 0, NONE = 1, CONNECT = 2, CALL = 3, PKT = 4, PKT_INTEGRITY = 5, PKT_PRIVACY = 6, }; pub const RPC_C_AUTHN_LEVEL_DEFAULT = RPC_C_AUTHN_LEVEL.DEFAULT; pub const RPC_C_AUTHN_LEVEL_NONE = RPC_C_AUTHN_LEVEL.NONE; pub const RPC_C_AUTHN_LEVEL_CONNECT = RPC_C_AUTHN_LEVEL.CONNECT; pub const RPC_C_AUTHN_LEVEL_CALL = RPC_C_AUTHN_LEVEL.CALL; pub const RPC_C_AUTHN_LEVEL_PKT = RPC_C_AUTHN_LEVEL.PKT; pub const RPC_C_AUTHN_LEVEL_PKT_INTEGRITY = RPC_C_AUTHN_LEVEL.PKT_INTEGRITY; pub const RPC_C_AUTHN_LEVEL_PKT_PRIVACY = RPC_C_AUTHN_LEVEL.PKT_PRIVACY; pub const RPC_C_IMP_LEVEL = enum(u32) { DEFAULT = 0, ANONYMOUS = 1, IDENTIFY = 2, IMPERSONATE = 3, DELEGATE = 4, }; pub const RPC_C_IMP_LEVEL_DEFAULT = RPC_C_IMP_LEVEL.DEFAULT; pub const RPC_C_IMP_LEVEL_ANONYMOUS = RPC_C_IMP_LEVEL.ANONYMOUS; pub const RPC_C_IMP_LEVEL_IDENTIFY = RPC_C_IMP_LEVEL.IDENTIFY; pub const RPC_C_IMP_LEVEL_IMPERSONATE = RPC_C_IMP_LEVEL.IMPERSONATE; pub const RPC_C_IMP_LEVEL_DELEGATE = RPC_C_IMP_LEVEL.DELEGATE; pub const CO_MTA_USAGE_COOKIE = isize; pub const CO_DEVICE_CATALOG_COOKIE = isize; pub const DVASPECT = enum(i32) { CONTENT = 1, THUMBNAIL = 2, ICON = 4, DOCPRINT = 8, }; pub const DVASPECT_CONTENT = DVASPECT.CONTENT; pub const DVASPECT_THUMBNAIL = DVASPECT.THUMBNAIL; pub const DVASPECT_ICON = DVASPECT.ICON; pub const DVASPECT_DOCPRINT = DVASPECT.DOCPRINT; pub const CY = extern union { Anonymous: extern struct { Lo: u32, Hi: i32, }, int64: i64, }; pub const CSPLATFORM = extern struct { dwPlatformId: u32, dwVersionHi: u32, dwVersionLo: u32, dwProcessorArch: u32, }; pub const QUERYCONTEXT = extern struct { dwContext: u32, Platform: CSPLATFORM, Locale: u32, dwVersionHi: u32, dwVersionLo: u32, }; pub const TYSPEC = enum(i32) { CLSID = 0, FILEEXT = 1, MIMETYPE = 2, FILENAME = 3, PROGID = 4, PACKAGENAME = 5, OBJECTID = 6, }; pub const TYSPEC_CLSID = TYSPEC.CLSID; pub const TYSPEC_FILEEXT = TYSPEC.FILEEXT; pub const TYSPEC_MIMETYPE = TYSPEC.MIMETYPE; pub const TYSPEC_FILENAME = TYSPEC.FILENAME; pub const TYSPEC_PROGID = TYSPEC.PROGID; pub const TYSPEC_PACKAGENAME = TYSPEC.PACKAGENAME; pub const TYSPEC_OBJECTID = TYSPEC.OBJECTID; pub const uCLSSPEC = extern struct { tyspec: u32, tagged_union: extern struct { clsid: Guid, pFileExt: ?PWSTR, pMimeType: ?PWSTR, pProgId: ?PWSTR, pFileName: ?PWSTR, ByName: extern struct { pPackageName: ?PWSTR, PolicyId: Guid, }, ByObjectId: extern struct { ObjectId: Guid, PolicyId: Guid, }, }, }; pub const REGCLS = enum(i32) { SINGLEUSE = 0, MULTIPLEUSE = 1, MULTI_SEPARATE = 2, SUSPENDED = 4, SURROGATE = 8, AGILE = 16, }; pub const REGCLS_SINGLEUSE = REGCLS.SINGLEUSE; pub const REGCLS_MULTIPLEUSE = REGCLS.MULTIPLEUSE; pub const REGCLS_MULTI_SEPARATE = REGCLS.MULTI_SEPARATE; pub const REGCLS_SUSPENDED = REGCLS.SUSPENDED; pub const REGCLS_SURROGATE = REGCLS.SURROGATE; pub const REGCLS_AGILE = REGCLS.AGILE; pub const COINITBASE = enum(i32) { D = 0, }; pub const COINITBASE_MULTITHREADED = COINITBASE.D; pub const COAUTHIDENTITY = extern struct { User: ?*u16, UserLength: u32, Domain: ?*u16, DomainLength: u32, Password: ?*u16, PasswordLength: u32, Flags: u32, }; pub const COAUTHINFO = extern struct { dwAuthnSvc: u32, dwAuthzSvc: u32, pwszServerPrincName: ?PWSTR, dwAuthnLevel: u32, dwImpersonationLevel: u32, pAuthIdentityData: ?*COAUTHIDENTITY, dwCapabilities: u32, }; pub const MEMCTX = enum(i32) { TASK = 1, SHARED = 2, MACSYSTEM = 3, UNKNOWN = -1, SAME = -2, }; pub const MEMCTX_TASK = MEMCTX.TASK; pub const MEMCTX_SHARED = MEMCTX.SHARED; pub const MEMCTX_MACSYSTEM = MEMCTX.MACSYSTEM; pub const MEMCTX_UNKNOWN = MEMCTX.UNKNOWN; pub const MEMCTX_SAME = MEMCTX.SAME; pub const CLSCTX = enum(u32) { INPROC_SERVER = 1, INPROC_HANDLER = 2, LOCAL_SERVER = 4, INPROC_SERVER16 = 8, REMOTE_SERVER = 16, INPROC_HANDLER16 = 32, RESERVED1 = 64, RESERVED2 = 128, RESERVED3 = 256, RESERVED4 = 512, NO_CODE_DOWNLOAD = 1024, RESERVED5 = 2048, NO_CUSTOM_MARSHAL = 4096, ENABLE_CODE_DOWNLOAD = 8192, NO_FAILURE_LOG = 16384, DISABLE_AAA = 32768, ENABLE_AAA = 65536, FROM_DEFAULT_CONTEXT = 131072, ACTIVATE_X86_SERVER = 262144, // ACTIVATE_32_BIT_SERVER = 262144, this enum value conflicts with ACTIVATE_X86_SERVER ACTIVATE_64_BIT_SERVER = 524288, ENABLE_CLOAKING = 1048576, APPCONTAINER = 4194304, ACTIVATE_AAA_AS_IU = 8388608, RESERVED6 = 16777216, ACTIVATE_ARM32_SERVER = 33554432, PS_DLL = 2147483648, ALL = 23, SERVER = 21, _, pub fn initFlags(o: struct { INPROC_SERVER: u1 = 0, INPROC_HANDLER: u1 = 0, LOCAL_SERVER: u1 = 0, INPROC_SERVER16: u1 = 0, REMOTE_SERVER: u1 = 0, INPROC_HANDLER16: u1 = 0, RESERVED1: u1 = 0, RESERVED2: u1 = 0, RESERVED3: u1 = 0, RESERVED4: u1 = 0, NO_CODE_DOWNLOAD: u1 = 0, RESERVED5: u1 = 0, NO_CUSTOM_MARSHAL: u1 = 0, ENABLE_CODE_DOWNLOAD: u1 = 0, NO_FAILURE_LOG: u1 = 0, DISABLE_AAA: u1 = 0, ENABLE_AAA: u1 = 0, FROM_DEFAULT_CONTEXT: u1 = 0, ACTIVATE_X86_SERVER: u1 = 0, ACTIVATE_64_BIT_SERVER: u1 = 0, ENABLE_CLOAKING: u1 = 0, APPCONTAINER: u1 = 0, ACTIVATE_AAA_AS_IU: u1 = 0, RESERVED6: u1 = 0, ACTIVATE_ARM32_SERVER: u1 = 0, PS_DLL: u1 = 0, ALL: u1 = 0, SERVER: u1 = 0, }) CLSCTX { return @as(CLSCTX, @enumFromInt((if (o.INPROC_SERVER == 1) @intFromEnum(CLSCTX.INPROC_SERVER) else 0) | (if (o.INPROC_HANDLER == 1) @intFromEnum(CLSCTX.INPROC_HANDLER) else 0) | (if (o.LOCAL_SERVER == 1) @intFromEnum(CLSCTX.LOCAL_SERVER) else 0) | (if (o.INPROC_SERVER16 == 1) @intFromEnum(CLSCTX.INPROC_SERVER16) else 0) | (if (o.REMOTE_SERVER == 1) @intFromEnum(CLSCTX.REMOTE_SERVER) else 0) | (if (o.INPROC_HANDLER16 == 1) @intFromEnum(CLSCTX.INPROC_HANDLER16) else 0) | (if (o.RESERVED1 == 1) @intFromEnum(CLSCTX.RESERVED1) else 0) | (if (o.RESERVED2 == 1) @intFromEnum(CLSCTX.RESERVED2) else 0) | (if (o.RESERVED3 == 1) @intFromEnum(CLSCTX.RESERVED3) else 0) | (if (o.RESERVED4 == 1) @intFromEnum(CLSCTX.RESERVED4) else 0) | (if (o.NO_CODE_DOWNLOAD == 1) @intFromEnum(CLSCTX.NO_CODE_DOWNLOAD) else 0) | (if (o.RESERVED5 == 1) @intFromEnum(CLSCTX.RESERVED5) else 0) | (if (o.NO_CUSTOM_MARSHAL == 1) @intFromEnum(CLSCTX.NO_CUSTOM_MARSHAL) else 0) | (if (o.ENABLE_CODE_DOWNLOAD == 1) @intFromEnum(CLSCTX.ENABLE_CODE_DOWNLOAD) else 0) | (if (o.NO_FAILURE_LOG == 1) @intFromEnum(CLSCTX.NO_FAILURE_LOG) else 0) | (if (o.DISABLE_AAA == 1) @intFromEnum(CLSCTX.DISABLE_AAA) else 0) | (if (o.ENABLE_AAA == 1) @intFromEnum(CLSCTX.ENABLE_AAA) else 0) | (if (o.FROM_DEFAULT_CONTEXT == 1) @intFromEnum(CLSCTX.FROM_DEFAULT_CONTEXT) else 0) | (if (o.ACTIVATE_X86_SERVER == 1) @intFromEnum(CLSCTX.ACTIVATE_X86_SERVER) else 0) | (if (o.ACTIVATE_64_BIT_SERVER == 1) @intFromEnum(CLSCTX.ACTIVATE_64_BIT_SERVER) else 0) | (if (o.ENABLE_CLOAKING == 1) @intFromEnum(CLSCTX.ENABLE_CLOAKING) else 0) | (if (o.APPCONTAINER == 1) @intFromEnum(CLSCTX.APPCONTAINER) else 0) | (if (o.ACTIVATE_AAA_AS_IU == 1) @intFromEnum(CLSCTX.ACTIVATE_AAA_AS_IU) else 0) | (if (o.RESERVED6 == 1) @intFromEnum(CLSCTX.RESERVED6) else 0) | (if (o.ACTIVATE_ARM32_SERVER == 1) @intFromEnum(CLSCTX.ACTIVATE_ARM32_SERVER) else 0) | (if (o.PS_DLL == 1) @intFromEnum(CLSCTX.PS_DLL) else 0) | (if (o.ALL == 1) @intFromEnum(CLSCTX.ALL) else 0) | (if (o.SERVER == 1) @intFromEnum(CLSCTX.SERVER) else 0))); } }; pub const CLSCTX_INPROC_SERVER = CLSCTX.INPROC_SERVER; pub const CLSCTX_INPROC_HANDLER = CLSCTX.INPROC_HANDLER; pub const CLSCTX_LOCAL_SERVER = CLSCTX.LOCAL_SERVER; pub const CLSCTX_INPROC_SERVER16 = CLSCTX.INPROC_SERVER16; pub const CLSCTX_REMOTE_SERVER = CLSCTX.REMOTE_SERVER; pub const CLSCTX_INPROC_HANDLER16 = CLSCTX.INPROC_HANDLER16; pub const CLSCTX_RESERVED1 = CLSCTX.RESERVED1; pub const CLSCTX_RESERVED2 = CLSCTX.RESERVED2; pub const CLSCTX_RESERVED3 = CLSCTX.RESERVED3; pub const CLSCTX_RESERVED4 = CLSCTX.RESERVED4; pub const CLSCTX_NO_CODE_DOWNLOAD = CLSCTX.NO_CODE_DOWNLOAD; pub const CLSCTX_RESERVED5 = CLSCTX.RESERVED5; pub const CLSCTX_NO_CUSTOM_MARSHAL = CLSCTX.NO_CUSTOM_MARSHAL; pub const CLSCTX_ENABLE_CODE_DOWNLOAD = CLSCTX.ENABLE_CODE_DOWNLOAD; pub const CLSCTX_NO_FAILURE_LOG = CLSCTX.NO_FAILURE_LOG; pub const CLSCTX_DISABLE_AAA = CLSCTX.DISABLE_AAA; pub const CLSCTX_ENABLE_AAA = CLSCTX.ENABLE_AAA; pub const CLSCTX_FROM_DEFAULT_CONTEXT = CLSCTX.FROM_DEFAULT_CONTEXT; pub const CLSCTX_ACTIVATE_X86_SERVER = CLSCTX.ACTIVATE_X86_SERVER; pub const CLSCTX_ACTIVATE_32_BIT_SERVER = CLSCTX.ACTIVATE_X86_SERVER; pub const CLSCTX_ACTIVATE_64_BIT_SERVER = CLSCTX.ACTIVATE_64_BIT_SERVER; pub const CLSCTX_ENABLE_CLOAKING = CLSCTX.ENABLE_CLOAKING; pub const CLSCTX_APPCONTAINER = CLSCTX.APPCONTAINER; pub const CLSCTX_ACTIVATE_AAA_AS_IU = CLSCTX.ACTIVATE_AAA_AS_IU; pub const CLSCTX_RESERVED6 = CLSCTX.RESERVED6; pub const CLSCTX_ACTIVATE_ARM32_SERVER = CLSCTX.ACTIVATE_ARM32_SERVER; pub const CLSCTX_PS_DLL = CLSCTX.PS_DLL; pub const CLSCTX_ALL = CLSCTX.ALL; pub const CLSCTX_SERVER = CLSCTX.SERVER; pub const MSHLFLAGS = enum(i32) { NORMAL = 0, TABLESTRONG = 1, TABLEWEAK = 2, NOPING = 4, RESERVED1 = 8, RESERVED2 = 16, RESERVED3 = 32, RESERVED4 = 64, }; pub const MSHLFLAGS_NORMAL = MSHLFLAGS.NORMAL; pub const MSHLFLAGS_TABLESTRONG = MSHLFLAGS.TABLESTRONG; pub const MSHLFLAGS_TABLEWEAK = MSHLFLAGS.TABLEWEAK; pub const MSHLFLAGS_NOPING = MSHLFLAGS.NOPING; pub const MSHLFLAGS_RESERVED1 = MSHLFLAGS.RESERVED1; pub const MSHLFLAGS_RESERVED2 = MSHLFLAGS.RESERVED2; pub const MSHLFLAGS_RESERVED3 = MSHLFLAGS.RESERVED3; pub const MSHLFLAGS_RESERVED4 = MSHLFLAGS.RESERVED4; pub const MSHCTX = enum(i32) { LOCAL = 0, NOSHAREDMEM = 1, DIFFERENTMACHINE = 2, INPROC = 3, CROSSCTX = 4, CONTAINER = 5, }; pub const MSHCTX_LOCAL = MSHCTX.LOCAL; pub const MSHCTX_NOSHAREDMEM = MSHCTX.NOSHAREDMEM; pub const MSHCTX_DIFFERENTMACHINE = MSHCTX.DIFFERENTMACHINE; pub const MSHCTX_INPROC = MSHCTX.INPROC; pub const MSHCTX_CROSSCTX = MSHCTX.CROSSCTX; pub const MSHCTX_CONTAINER = MSHCTX.CONTAINER; pub const BYTE_BLOB = extern struct { clSize: u32, abData: [1]u8, }; pub const WORD_BLOB = extern struct { clSize: u32, asData: [1]u16, }; pub const DWORD_BLOB = extern struct { clSize: u32, alData: [1]u32, }; pub const FLAGGED_BYTE_BLOB = extern struct { fFlags: u32, clSize: u32, abData: [1]u8, }; pub const FLAGGED_WORD_BLOB = extern struct { fFlags: u32, clSize: u32, asData: [1]u16, }; pub const BYTE_SIZEDARR = extern struct { clSize: u32, pData: ?*u8, }; pub const SHORT_SIZEDARR = extern struct { clSize: u32, pData: ?*u16, }; pub const LONG_SIZEDARR = extern struct { clSize: u32, pData: ?*u32, }; pub const HYPER_SIZEDARR = extern struct { clSize: u32, pData: ?*i64, }; pub const BLOB = extern struct { cbSize: u32, pBlobData: ?*u8, }; pub const IEnumContextProps = extern struct { placeholder: usize, // TODO: why is this type empty? }; pub const IContext = extern struct { placeholder: usize, // TODO: why is this type empty? }; const IID_IUnknown_Value = Guid.initString("00000000-0000-0000-c000-000000000046"); pub const IID_IUnknown = &IID_IUnknown_Value; pub const IUnknown = extern struct { pub const VTable = extern struct { QueryInterface: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IUnknown, riid: ?*const Guid, ppvObject: ?*?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IUnknown, riid: ?*const Guid, ppvObject: ?*?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, AddRef: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IUnknown, ) callconv(@import("std").os.windows.WINAPI) u32, else => *const fn ( self: *const IUnknown, ) callconv(@import("std").os.windows.WINAPI) u32, }, Release: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IUnknown, ) callconv(@import("std").os.windows.WINAPI) u32, else => *const fn ( self: *const IUnknown, ) callconv(@import("std").os.windows.WINAPI) u32, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IUnknown_QueryInterface(self: *const T, riid: ?*const Guid, ppvObject: ?*?*anyopaque) HRESULT { return @as(*const IUnknown.VTable, @ptrCast(self.vtable)).QueryInterface(@as(*const IUnknown, @ptrCast(self)), riid, ppvObject); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IUnknown_AddRef(self: *const T) u32 { return @as(*const IUnknown.VTable, @ptrCast(self.vtable)).AddRef(@as(*const IUnknown, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IUnknown_Release(self: *const T) u32 { return @as(*const IUnknown.VTable, @ptrCast(self.vtable)).Release(@as(*const IUnknown, @ptrCast(self))); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_AsyncIUnknown_Value = Guid.initString("000e0000-0000-0000-c000-000000000046"); pub const IID_AsyncIUnknown = &IID_AsyncIUnknown_Value; pub const AsyncIUnknown = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, Begin_QueryInterface: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const AsyncIUnknown, riid: ?*const Guid, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const AsyncIUnknown, riid: ?*const Guid, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Finish_QueryInterface: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const AsyncIUnknown, ppvObject: ?*?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const AsyncIUnknown, ppvObject: ?*?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Begin_AddRef: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const AsyncIUnknown, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const AsyncIUnknown, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Finish_AddRef: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const AsyncIUnknown, ) callconv(@import("std").os.windows.WINAPI) u32, else => *const fn ( self: *const AsyncIUnknown, ) callconv(@import("std").os.windows.WINAPI) u32, }, Begin_Release: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const AsyncIUnknown, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const AsyncIUnknown, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Finish_Release: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const AsyncIUnknown, ) callconv(@import("std").os.windows.WINAPI) u32, else => *const fn ( self: *const AsyncIUnknown, ) callconv(@import("std").os.windows.WINAPI) u32, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn AsyncIUnknown_Begin_QueryInterface(self: *const T, riid: ?*const Guid) HRESULT { return @as(*const AsyncIUnknown.VTable, @ptrCast(self.vtable)).Begin_QueryInterface(@as(*const AsyncIUnknown, @ptrCast(self)), riid); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn AsyncIUnknown_Finish_QueryInterface(self: *const T, ppvObject: ?*?*anyopaque) HRESULT { return @as(*const AsyncIUnknown.VTable, @ptrCast(self.vtable)).Finish_QueryInterface(@as(*const AsyncIUnknown, @ptrCast(self)), ppvObject); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn AsyncIUnknown_Begin_AddRef(self: *const T) HRESULT { return @as(*const AsyncIUnknown.VTable, @ptrCast(self.vtable)).Begin_AddRef(@as(*const AsyncIUnknown, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn AsyncIUnknown_Finish_AddRef(self: *const T) u32 { return @as(*const AsyncIUnknown.VTable, @ptrCast(self.vtable)).Finish_AddRef(@as(*const AsyncIUnknown, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn AsyncIUnknown_Begin_Release(self: *const T) HRESULT { return @as(*const AsyncIUnknown.VTable, @ptrCast(self.vtable)).Begin_Release(@as(*const AsyncIUnknown, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn AsyncIUnknown_Finish_Release(self: *const T) u32 { return @as(*const AsyncIUnknown.VTable, @ptrCast(self.vtable)).Finish_Release(@as(*const AsyncIUnknown, @ptrCast(self))); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows5.0' const IID_IClassFactory_Value = Guid.initString("00000001-0000-0000-c000-000000000046"); pub const IID_IClassFactory = &IID_IClassFactory_Value; pub const IClassFactory = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, CreateInstance: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IClassFactory, pUnkOuter: ?*IUnknown, riid: ?*const Guid, ppvObject: ?*?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IClassFactory, pUnkOuter: ?*IUnknown, riid: ?*const Guid, ppvObject: ?*?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, LockServer: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IClassFactory, fLock: BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IClassFactory, fLock: BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IClassFactory_CreateInstance(self: *const T, pUnkOuter: ?*IUnknown, riid: ?*const Guid, ppvObject: ?*?*anyopaque) HRESULT { return @as(*const IClassFactory.VTable, @ptrCast(self.vtable)).CreateInstance(@as(*const IClassFactory, @ptrCast(self)), pUnkOuter, riid, ppvObject); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IClassFactory_LockServer(self: *const T, fLock: BOOL) HRESULT { return @as(*const IClassFactory.VTable, @ptrCast(self.vtable)).LockServer(@as(*const IClassFactory, @ptrCast(self)), fLock); } }; } pub usingnamespace MethodMixin(@This()); }; pub const COSERVERINFO = extern struct { dwReserved1: u32, pwszName: ?PWSTR, pAuthInfo: ?*COAUTHINFO, dwReserved2: u32, }; // TODO: this type is limited to platform 'windows8.0' const IID_INoMarshal_Value = Guid.initString("ecc8691b-c1db-4dc0-855e-65f6c551af49"); pub const IID_INoMarshal = &IID_INoMarshal_Value; pub const INoMarshal = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows8.0' const IID_IAgileObject_Value = Guid.initString("94ea2b94-e9cc-49e0-c0ff-ee64ca8f5b90"); pub const IID_IAgileObject = &IID_IAgileObject_Value; pub const IAgileObject = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); }; } pub usingnamespace MethodMixin(@This()); }; const IID_IActivationFilter_Value = Guid.initString("00000017-0000-0000-c000-000000000046"); pub const IID_IActivationFilter = &IID_IActivationFilter_Value; pub const IActivationFilter = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, HandleActivation: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IActivationFilter, dwActivationType: u32, rclsid: ?*const Guid, pReplacementClsId: ?*Guid, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IActivationFilter, dwActivationType: u32, rclsid: ?*const Guid, pReplacementClsId: ?*Guid, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IActivationFilter_HandleActivation(self: *const T, dwActivationType: u32, rclsid: ?*const Guid, pReplacementClsId: ?*Guid) HRESULT { return @as(*const IActivationFilter.VTable, @ptrCast(self.vtable)).HandleActivation(@as(*const IActivationFilter, @ptrCast(self)), dwActivationType, rclsid, pReplacementClsId); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows5.0' const IID_IMalloc_Value = Guid.initString("00000002-0000-0000-c000-000000000046"); pub const IID_IMalloc = &IID_IMalloc_Value; pub const IMalloc = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, Alloc: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IMalloc, cb: usize, ) callconv(@import("std").os.windows.WINAPI) ?*anyopaque, else => *const fn ( self: *const IMalloc, cb: usize, ) callconv(@import("std").os.windows.WINAPI) ?*anyopaque, }, Realloc: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IMalloc, pv: ?*anyopaque, cb: usize, ) callconv(@import("std").os.windows.WINAPI) ?*anyopaque, else => *const fn ( self: *const IMalloc, pv: ?*anyopaque, cb: usize, ) callconv(@import("std").os.windows.WINAPI) ?*anyopaque, }, Free: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IMalloc, pv: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) void, else => *const fn ( self: *const IMalloc, pv: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) void, }, GetSize: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IMalloc, pv: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) usize, else => *const fn ( self: *const IMalloc, pv: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) usize, }, DidAlloc: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IMalloc, pv: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) i32, else => *const fn ( self: *const IMalloc, pv: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) i32, }, HeapMinimize: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IMalloc, ) callconv(@import("std").os.windows.WINAPI) void, else => *const fn ( self: *const IMalloc, ) callconv(@import("std").os.windows.WINAPI) void, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMalloc_Alloc(self: *const T, cb: usize) ?*anyopaque { return @as(*const IMalloc.VTable, @ptrCast(self.vtable)).Alloc(@as(*const IMalloc, @ptrCast(self)), cb); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMalloc_Realloc(self: *const T, pv: ?*anyopaque, cb: usize) ?*anyopaque { return @as(*const IMalloc.VTable, @ptrCast(self.vtable)).Realloc(@as(*const IMalloc, @ptrCast(self)), pv, cb); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMalloc_Free(self: *const T, pv: ?*anyopaque) void { return @as(*const IMalloc.VTable, @ptrCast(self.vtable)).Free(@as(*const IMalloc, @ptrCast(self)), pv); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMalloc_GetSize(self: *const T, pv: ?*anyopaque) usize { return @as(*const IMalloc.VTable, @ptrCast(self.vtable)).GetSize(@as(*const IMalloc, @ptrCast(self)), pv); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMalloc_DidAlloc(self: *const T, pv: ?*anyopaque) i32 { return @as(*const IMalloc.VTable, @ptrCast(self.vtable)).DidAlloc(@as(*const IMalloc, @ptrCast(self)), pv); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMalloc_HeapMinimize(self: *const T) void { return @as(*const IMalloc.VTable, @ptrCast(self.vtable)).HeapMinimize(@as(*const IMalloc, @ptrCast(self))); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows5.0' const IID_IStdMarshalInfo_Value = Guid.initString("00000018-0000-0000-c000-000000000046"); pub const IID_IStdMarshalInfo = &IID_IStdMarshalInfo_Value; pub const IStdMarshalInfo = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, GetClassForHandler: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IStdMarshalInfo, dwDestContext: u32, pvDestContext: ?*anyopaque, pClsid: ?*Guid, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IStdMarshalInfo, dwDestContext: u32, pvDestContext: ?*anyopaque, pClsid: ?*Guid, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IStdMarshalInfo_GetClassForHandler(self: *const T, dwDestContext: u32, pvDestContext: ?*anyopaque, pClsid: ?*Guid) HRESULT { return @as(*const IStdMarshalInfo.VTable, @ptrCast(self.vtable)).GetClassForHandler(@as(*const IStdMarshalInfo, @ptrCast(self)), dwDestContext, pvDestContext, pClsid); } }; } pub usingnamespace MethodMixin(@This()); }; pub const EXTCONN = enum(i32) { STRONG = 1, WEAK = 2, CALLABLE = 4, }; pub const EXTCONN_STRONG = EXTCONN.STRONG; pub const EXTCONN_WEAK = EXTCONN.WEAK; pub const EXTCONN_CALLABLE = EXTCONN.CALLABLE; // TODO: this type is limited to platform 'windows5.0' const IID_IExternalConnection_Value = Guid.initString("00000019-0000-0000-c000-000000000046"); pub const IID_IExternalConnection = &IID_IExternalConnection_Value; pub const IExternalConnection = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, AddConnection: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IExternalConnection, extconn: u32, reserved: u32, ) callconv(@import("std").os.windows.WINAPI) u32, else => *const fn ( self: *const IExternalConnection, extconn: u32, reserved: u32, ) callconv(@import("std").os.windows.WINAPI) u32, }, ReleaseConnection: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IExternalConnection, extconn: u32, reserved: u32, fLastReleaseCloses: BOOL, ) callconv(@import("std").os.windows.WINAPI) u32, else => *const fn ( self: *const IExternalConnection, extconn: u32, reserved: u32, fLastReleaseCloses: BOOL, ) callconv(@import("std").os.windows.WINAPI) u32, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IExternalConnection_AddConnection(self: *const T, extconn: u32, reserved: u32) u32 { return @as(*const IExternalConnection.VTable, @ptrCast(self.vtable)).AddConnection(@as(*const IExternalConnection, @ptrCast(self)), extconn, reserved); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IExternalConnection_ReleaseConnection(self: *const T, extconn: u32, reserved: u32, fLastReleaseCloses: BOOL) u32 { return @as(*const IExternalConnection.VTable, @ptrCast(self.vtable)).ReleaseConnection(@as(*const IExternalConnection, @ptrCast(self)), extconn, reserved, fLastReleaseCloses); } }; } pub usingnamespace MethodMixin(@This()); }; pub const MULTI_QI = extern struct { pIID: ?*const Guid, pItf: ?*IUnknown, hr: HRESULT, }; // TODO: this type is limited to platform 'windows5.0' const IID_IMultiQI_Value = Guid.initString("00000020-0000-0000-c000-000000000046"); pub const IID_IMultiQI = &IID_IMultiQI_Value; pub const IMultiQI = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, QueryMultipleInterfaces: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IMultiQI, cMQIs: u32, pMQIs: [*]MULTI_QI, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IMultiQI, cMQIs: u32, pMQIs: [*]MULTI_QI, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMultiQI_QueryMultipleInterfaces(self: *const T, cMQIs: u32, pMQIs: [*]MULTI_QI) HRESULT { return @as(*const IMultiQI.VTable, @ptrCast(self.vtable)).QueryMultipleInterfaces(@as(*const IMultiQI, @ptrCast(self)), cMQIs, pMQIs); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_AsyncIMultiQI_Value = Guid.initString("000e0020-0000-0000-c000-000000000046"); pub const IID_AsyncIMultiQI = &IID_AsyncIMultiQI_Value; pub const AsyncIMultiQI = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, Begin_QueryMultipleInterfaces: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const AsyncIMultiQI, cMQIs: u32, pMQIs: [*]MULTI_QI, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const AsyncIMultiQI, cMQIs: u32, pMQIs: [*]MULTI_QI, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Finish_QueryMultipleInterfaces: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const AsyncIMultiQI, pMQIs: ?*MULTI_QI, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const AsyncIMultiQI, pMQIs: ?*MULTI_QI, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn AsyncIMultiQI_Begin_QueryMultipleInterfaces(self: *const T, cMQIs: u32, pMQIs: [*]MULTI_QI) HRESULT { return @as(*const AsyncIMultiQI.VTable, @ptrCast(self.vtable)).Begin_QueryMultipleInterfaces(@as(*const AsyncIMultiQI, @ptrCast(self)), cMQIs, pMQIs); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn AsyncIMultiQI_Finish_QueryMultipleInterfaces(self: *const T, pMQIs: ?*MULTI_QI) HRESULT { return @as(*const AsyncIMultiQI.VTable, @ptrCast(self.vtable)).Finish_QueryMultipleInterfaces(@as(*const AsyncIMultiQI, @ptrCast(self)), pMQIs); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows5.0' const IID_IInternalUnknown_Value = Guid.initString("00000021-0000-0000-c000-000000000046"); pub const IID_IInternalUnknown = &IID_IInternalUnknown_Value; pub const IInternalUnknown = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, QueryInternalInterface: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IInternalUnknown, riid: ?*const Guid, ppv: ?*?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IInternalUnknown, riid: ?*const Guid, ppv: ?*?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IInternalUnknown_QueryInternalInterface(self: *const T, riid: ?*const Guid, ppv: ?*?*anyopaque) HRESULT { return @as(*const IInternalUnknown.VTable, @ptrCast(self.vtable)).QueryInternalInterface(@as(*const IInternalUnknown, @ptrCast(self)), riid, ppv); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows5.0' const IID_IEnumUnknown_Value = Guid.initString("00000100-0000-0000-c000-000000000046"); pub const IID_IEnumUnknown = &IID_IEnumUnknown_Value; pub const IEnumUnknown = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, Next: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IEnumUnknown, celt: u32, rgelt: [*]?*IUnknown, pceltFetched: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IEnumUnknown, celt: u32, rgelt: [*]?*IUnknown, pceltFetched: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Skip: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IEnumUnknown, celt: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IEnumUnknown, celt: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Reset: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IEnumUnknown, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IEnumUnknown, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Clone: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IEnumUnknown, ppenum: ?*?*IEnumUnknown, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IEnumUnknown, ppenum: ?*?*IEnumUnknown, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IEnumUnknown_Next(self: *const T, celt: u32, rgelt: [*]?*IUnknown, pceltFetched: ?*u32) HRESULT { return @as(*const IEnumUnknown.VTable, @ptrCast(self.vtable)).Next(@as(*const IEnumUnknown, @ptrCast(self)), celt, rgelt, pceltFetched); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IEnumUnknown_Skip(self: *const T, celt: u32) HRESULT { return @as(*const IEnumUnknown.VTable, @ptrCast(self.vtable)).Skip(@as(*const IEnumUnknown, @ptrCast(self)), celt); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IEnumUnknown_Reset(self: *const T) HRESULT { return @as(*const IEnumUnknown.VTable, @ptrCast(self.vtable)).Reset(@as(*const IEnumUnknown, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IEnumUnknown_Clone(self: *const T, ppenum: ?*?*IEnumUnknown) HRESULT { return @as(*const IEnumUnknown.VTable, @ptrCast(self.vtable)).Clone(@as(*const IEnumUnknown, @ptrCast(self)), ppenum); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows5.0' const IID_IEnumString_Value = Guid.initString("00000101-0000-0000-c000-000000000046"); pub const IID_IEnumString = &IID_IEnumString_Value; pub const IEnumString = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, Next: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IEnumString, celt: u32, rgelt: [*]?PWSTR, pceltFetched: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IEnumString, celt: u32, rgelt: [*]?PWSTR, pceltFetched: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Skip: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IEnumString, celt: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IEnumString, celt: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Reset: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IEnumString, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IEnumString, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Clone: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IEnumString, ppenum: ?*?*IEnumString, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IEnumString, ppenum: ?*?*IEnumString, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IEnumString_Next(self: *const T, celt: u32, rgelt: [*]?PWSTR, pceltFetched: ?*u32) HRESULT { return @as(*const IEnumString.VTable, @ptrCast(self.vtable)).Next(@as(*const IEnumString, @ptrCast(self)), celt, rgelt, pceltFetched); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IEnumString_Skip(self: *const T, celt: u32) HRESULT { return @as(*const IEnumString.VTable, @ptrCast(self.vtable)).Skip(@as(*const IEnumString, @ptrCast(self)), celt); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IEnumString_Reset(self: *const T) HRESULT { return @as(*const IEnumString.VTable, @ptrCast(self.vtable)).Reset(@as(*const IEnumString, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IEnumString_Clone(self: *const T, ppenum: ?*?*IEnumString) HRESULT { return @as(*const IEnumString.VTable, @ptrCast(self.vtable)).Clone(@as(*const IEnumString, @ptrCast(self)), ppenum); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows5.0' const IID_ISequentialStream_Value = Guid.initString("0c733a30-2a1c-11ce-ade5-00aa0044773d"); pub const IID_ISequentialStream = &IID_ISequentialStream_Value; pub const ISequentialStream = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, Read: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ISequentialStream, // TODO: what to do with BytesParamIndex 1? pv: ?*anyopaque, cb: u32, pcbRead: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ISequentialStream, // TODO: what to do with BytesParamIndex 1? pv: ?*anyopaque, cb: u32, pcbRead: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Write: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ISequentialStream, // TODO: what to do with BytesParamIndex 1? pv: ?*const anyopaque, cb: u32, pcbWritten: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ISequentialStream, // TODO: what to do with BytesParamIndex 1? pv: ?*const anyopaque, cb: u32, pcbWritten: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISequentialStream_Read(self: *const T, pv: ?*anyopaque, cb: u32, pcbRead: ?*u32) HRESULT { return @as(*const ISequentialStream.VTable, @ptrCast(self.vtable)).Read(@as(*const ISequentialStream, @ptrCast(self)), pv, cb, pcbRead); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISequentialStream_Write(self: *const T, pv: ?*const anyopaque, cb: u32, pcbWritten: ?*u32) HRESULT { return @as(*const ISequentialStream.VTable, @ptrCast(self.vtable)).Write(@as(*const ISequentialStream, @ptrCast(self)), pv, cb, pcbWritten); } }; } pub usingnamespace MethodMixin(@This()); }; pub const STATSTG = extern struct { pwcsName: ?PWSTR, type: u32, cbSize: ULARGE_INTEGER, mtime: FILETIME, ctime: FILETIME, atime: FILETIME, grfMode: u32, grfLocksSupported: u32, clsid: Guid, grfStateBits: u32, reserved: u32, }; pub const STGTY = enum(i32) { STORAGE = 1, STREAM = 2, LOCKBYTES = 3, PROPERTY = 4, }; pub const STGTY_STORAGE = STGTY.STORAGE; pub const STGTY_STREAM = STGTY.STREAM; pub const STGTY_LOCKBYTES = STGTY.LOCKBYTES; pub const STGTY_PROPERTY = STGTY.PROPERTY; pub const STREAM_SEEK = enum(u32) { SET = 0, CUR = 1, END = 2, }; pub const STREAM_SEEK_SET = STREAM_SEEK.SET; pub const STREAM_SEEK_CUR = STREAM_SEEK.CUR; pub const STREAM_SEEK_END = STREAM_SEEK.END; // TODO: this type is limited to platform 'windows5.0' const IID_IStream_Value = Guid.initString("0000000c-0000-0000-c000-000000000046"); pub const IID_IStream = &IID_IStream_Value; pub const IStream = extern struct { pub const VTable = extern struct { base: ISequentialStream.VTable, Seek: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IStream, dlibMove: LARGE_INTEGER, dwOrigin: STREAM_SEEK, plibNewPosition: ?*ULARGE_INTEGER, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IStream, dlibMove: LARGE_INTEGER, dwOrigin: STREAM_SEEK, plibNewPosition: ?*ULARGE_INTEGER, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetSize: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IStream, libNewSize: ULARGE_INTEGER, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IStream, libNewSize: ULARGE_INTEGER, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, CopyTo: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IStream, pstm: ?*IStream, cb: ULARGE_INTEGER, pcbRead: ?*ULARGE_INTEGER, pcbWritten: ?*ULARGE_INTEGER, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IStream, pstm: ?*IStream, cb: ULARGE_INTEGER, pcbRead: ?*ULARGE_INTEGER, pcbWritten: ?*ULARGE_INTEGER, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Commit: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IStream, grfCommitFlags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IStream, grfCommitFlags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Revert: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IStream, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IStream, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, LockRegion: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IStream, libOffset: ULARGE_INTEGER, cb: ULARGE_INTEGER, dwLockType: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IStream, libOffset: ULARGE_INTEGER, cb: ULARGE_INTEGER, dwLockType: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, UnlockRegion: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IStream, libOffset: ULARGE_INTEGER, cb: ULARGE_INTEGER, dwLockType: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IStream, libOffset: ULARGE_INTEGER, cb: ULARGE_INTEGER, dwLockType: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Stat: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IStream, pstatstg: ?*STATSTG, grfStatFlag: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IStream, pstatstg: ?*STATSTG, grfStatFlag: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Clone: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IStream, ppstm: ?*?*IStream, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IStream, ppstm: ?*?*IStream, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace ISequentialStream.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IStream_Seek(self: *const T, dlibMove: LARGE_INTEGER, dwOrigin: STREAM_SEEK, plibNewPosition: ?*ULARGE_INTEGER) HRESULT { return @as(*const IStream.VTable, @ptrCast(self.vtable)).Seek(@as(*const IStream, @ptrCast(self)), dlibMove, dwOrigin, plibNewPosition); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IStream_SetSize(self: *const T, libNewSize: ULARGE_INTEGER) HRESULT { return @as(*const IStream.VTable, @ptrCast(self.vtable)).SetSize(@as(*const IStream, @ptrCast(self)), libNewSize); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IStream_CopyTo(self: *const T, pstm: ?*IStream, cb: ULARGE_INTEGER, pcbRead: ?*ULARGE_INTEGER, pcbWritten: ?*ULARGE_INTEGER) HRESULT { return @as(*const IStream.VTable, @ptrCast(self.vtable)).CopyTo(@as(*const IStream, @ptrCast(self)), pstm, cb, pcbRead, pcbWritten); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IStream_Commit(self: *const T, grfCommitFlags: u32) HRESULT { return @as(*const IStream.VTable, @ptrCast(self.vtable)).Commit(@as(*const IStream, @ptrCast(self)), grfCommitFlags); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IStream_Revert(self: *const T) HRESULT { return @as(*const IStream.VTable, @ptrCast(self.vtable)).Revert(@as(*const IStream, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IStream_LockRegion(self: *const T, libOffset: ULARGE_INTEGER, cb: ULARGE_INTEGER, dwLockType: u32) HRESULT { return @as(*const IStream.VTable, @ptrCast(self.vtable)).LockRegion(@as(*const IStream, @ptrCast(self)), libOffset, cb, dwLockType); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IStream_UnlockRegion(self: *const T, libOffset: ULARGE_INTEGER, cb: ULARGE_INTEGER, dwLockType: u32) HRESULT { return @as(*const IStream.VTable, @ptrCast(self.vtable)).UnlockRegion(@as(*const IStream, @ptrCast(self)), libOffset, cb, dwLockType); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IStream_Stat(self: *const T, pstatstg: ?*STATSTG, grfStatFlag: u32) HRESULT { return @as(*const IStream.VTable, @ptrCast(self.vtable)).Stat(@as(*const IStream, @ptrCast(self)), pstatstg, grfStatFlag); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IStream_Clone(self: *const T, ppstm: ?*?*IStream) HRESULT { return @as(*const IStream.VTable, @ptrCast(self.vtable)).Clone(@as(*const IStream, @ptrCast(self)), ppstm); } }; } pub usingnamespace MethodMixin(@This()); }; pub const RPCOLEMESSAGE = extern struct { reserved1: ?*anyopaque, dataRepresentation: u32, Buffer: ?*anyopaque, cbBuffer: u32, iMethod: u32, reserved2: [5]?*anyopaque, rpcFlags: u32, }; // TODO: this type is limited to platform 'windows5.0' const IID_IRpcChannelBuffer_Value = Guid.initString("d5f56b60-593b-101a-b569-08002b2dbf7a"); pub const IID_IRpcChannelBuffer = &IID_IRpcChannelBuffer_Value; pub const IRpcChannelBuffer = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, GetBuffer: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IRpcChannelBuffer, pMessage: ?*RPCOLEMESSAGE, riid: ?*const Guid, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IRpcChannelBuffer, pMessage: ?*RPCOLEMESSAGE, riid: ?*const Guid, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SendReceive: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IRpcChannelBuffer, pMessage: ?*RPCOLEMESSAGE, pStatus: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IRpcChannelBuffer, pMessage: ?*RPCOLEMESSAGE, pStatus: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, FreeBuffer: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IRpcChannelBuffer, pMessage: ?*RPCOLEMESSAGE, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IRpcChannelBuffer, pMessage: ?*RPCOLEMESSAGE, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetDestCtx: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IRpcChannelBuffer, pdwDestContext: ?*u32, ppvDestContext: ?*?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IRpcChannelBuffer, pdwDestContext: ?*u32, ppvDestContext: ?*?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, IsConnected: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IRpcChannelBuffer, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IRpcChannelBuffer, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRpcChannelBuffer_GetBuffer(self: *const T, pMessage: ?*RPCOLEMESSAGE, riid: ?*const Guid) HRESULT { return @as(*const IRpcChannelBuffer.VTable, @ptrCast(self.vtable)).GetBuffer(@as(*const IRpcChannelBuffer, @ptrCast(self)), pMessage, riid); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRpcChannelBuffer_SendReceive(self: *const T, pMessage: ?*RPCOLEMESSAGE, pStatus: ?*u32) HRESULT { return @as(*const IRpcChannelBuffer.VTable, @ptrCast(self.vtable)).SendReceive(@as(*const IRpcChannelBuffer, @ptrCast(self)), pMessage, pStatus); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRpcChannelBuffer_FreeBuffer(self: *const T, pMessage: ?*RPCOLEMESSAGE) HRESULT { return @as(*const IRpcChannelBuffer.VTable, @ptrCast(self.vtable)).FreeBuffer(@as(*const IRpcChannelBuffer, @ptrCast(self)), pMessage); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRpcChannelBuffer_GetDestCtx(self: *const T, pdwDestContext: ?*u32, ppvDestContext: ?*?*anyopaque) HRESULT { return @as(*const IRpcChannelBuffer.VTable, @ptrCast(self.vtable)).GetDestCtx(@as(*const IRpcChannelBuffer, @ptrCast(self)), pdwDestContext, ppvDestContext); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRpcChannelBuffer_IsConnected(self: *const T) HRESULT { return @as(*const IRpcChannelBuffer.VTable, @ptrCast(self.vtable)).IsConnected(@as(*const IRpcChannelBuffer, @ptrCast(self))); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IRpcChannelBuffer2_Value = Guid.initString("594f31d0-7f19-11d0-b194-00a0c90dc8bf"); pub const IID_IRpcChannelBuffer2 = &IID_IRpcChannelBuffer2_Value; pub const IRpcChannelBuffer2 = extern struct { pub const VTable = extern struct { base: IRpcChannelBuffer.VTable, GetProtocolVersion: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IRpcChannelBuffer2, pdwVersion: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IRpcChannelBuffer2, pdwVersion: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IRpcChannelBuffer.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRpcChannelBuffer2_GetProtocolVersion(self: *const T, pdwVersion: ?*u32) HRESULT { return @as(*const IRpcChannelBuffer2.VTable, @ptrCast(self.vtable)).GetProtocolVersion(@as(*const IRpcChannelBuffer2, @ptrCast(self)), pdwVersion); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IAsyncRpcChannelBuffer_Value = Guid.initString("a5029fb6-3c34-11d1-9c99-00c04fb998aa"); pub const IID_IAsyncRpcChannelBuffer = &IID_IAsyncRpcChannelBuffer_Value; pub const IAsyncRpcChannelBuffer = extern struct { pub const VTable = extern struct { base: IRpcChannelBuffer2.VTable, Send: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IAsyncRpcChannelBuffer, pMsg: ?*RPCOLEMESSAGE, pSync: ?*ISynchronize, pulStatus: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IAsyncRpcChannelBuffer, pMsg: ?*RPCOLEMESSAGE, pSync: ?*ISynchronize, pulStatus: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Receive: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IAsyncRpcChannelBuffer, pMsg: ?*RPCOLEMESSAGE, pulStatus: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IAsyncRpcChannelBuffer, pMsg: ?*RPCOLEMESSAGE, pulStatus: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetDestCtxEx: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IAsyncRpcChannelBuffer, pMsg: ?*RPCOLEMESSAGE, pdwDestContext: ?*u32, ppvDestContext: ?*?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IAsyncRpcChannelBuffer, pMsg: ?*RPCOLEMESSAGE, pdwDestContext: ?*u32, ppvDestContext: ?*?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IRpcChannelBuffer2.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IAsyncRpcChannelBuffer_Send(self: *const T, pMsg: ?*RPCOLEMESSAGE, pSync: ?*ISynchronize, pulStatus: ?*u32) HRESULT { return @as(*const IAsyncRpcChannelBuffer.VTable, @ptrCast(self.vtable)).Send(@as(*const IAsyncRpcChannelBuffer, @ptrCast(self)), pMsg, pSync, pulStatus); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IAsyncRpcChannelBuffer_Receive(self: *const T, pMsg: ?*RPCOLEMESSAGE, pulStatus: ?*u32) HRESULT { return @as(*const IAsyncRpcChannelBuffer.VTable, @ptrCast(self.vtable)).Receive(@as(*const IAsyncRpcChannelBuffer, @ptrCast(self)), pMsg, pulStatus); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IAsyncRpcChannelBuffer_GetDestCtxEx(self: *const T, pMsg: ?*RPCOLEMESSAGE, pdwDestContext: ?*u32, ppvDestContext: ?*?*anyopaque) HRESULT { return @as(*const IAsyncRpcChannelBuffer.VTable, @ptrCast(self.vtable)).GetDestCtxEx(@as(*const IAsyncRpcChannelBuffer, @ptrCast(self)), pMsg, pdwDestContext, ppvDestContext); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IRpcChannelBuffer3_Value = Guid.initString("25b15600-0115-11d0-bf0d-00aa00b8dfd2"); pub const IID_IRpcChannelBuffer3 = &IID_IRpcChannelBuffer3_Value; pub const IRpcChannelBuffer3 = extern struct { pub const VTable = extern struct { base: IRpcChannelBuffer2.VTable, Send: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IRpcChannelBuffer3, pMsg: ?*RPCOLEMESSAGE, pulStatus: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IRpcChannelBuffer3, pMsg: ?*RPCOLEMESSAGE, pulStatus: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Receive: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IRpcChannelBuffer3, pMsg: ?*RPCOLEMESSAGE, ulSize: u32, pulStatus: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IRpcChannelBuffer3, pMsg: ?*RPCOLEMESSAGE, ulSize: u32, pulStatus: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Cancel: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IRpcChannelBuffer3, pMsg: ?*RPCOLEMESSAGE, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IRpcChannelBuffer3, pMsg: ?*RPCOLEMESSAGE, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetCallContext: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IRpcChannelBuffer3, pMsg: ?*RPCOLEMESSAGE, riid: ?*const Guid, pInterface: ?*?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IRpcChannelBuffer3, pMsg: ?*RPCOLEMESSAGE, riid: ?*const Guid, pInterface: ?*?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetDestCtxEx: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IRpcChannelBuffer3, pMsg: ?*RPCOLEMESSAGE, pdwDestContext: ?*u32, ppvDestContext: ?*?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IRpcChannelBuffer3, pMsg: ?*RPCOLEMESSAGE, pdwDestContext: ?*u32, ppvDestContext: ?*?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetState: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IRpcChannelBuffer3, pMsg: ?*RPCOLEMESSAGE, pState: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IRpcChannelBuffer3, pMsg: ?*RPCOLEMESSAGE, pState: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, RegisterAsync: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IRpcChannelBuffer3, pMsg: ?*RPCOLEMESSAGE, pAsyncMgr: ?*IAsyncManager, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IRpcChannelBuffer3, pMsg: ?*RPCOLEMESSAGE, pAsyncMgr: ?*IAsyncManager, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IRpcChannelBuffer2.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRpcChannelBuffer3_Send(self: *const T, pMsg: ?*RPCOLEMESSAGE, pulStatus: ?*u32) HRESULT { return @as(*const IRpcChannelBuffer3.VTable, @ptrCast(self.vtable)).Send(@as(*const IRpcChannelBuffer3, @ptrCast(self)), pMsg, pulStatus); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRpcChannelBuffer3_Receive(self: *const T, pMsg: ?*RPCOLEMESSAGE, ulSize: u32, pulStatus: ?*u32) HRESULT { return @as(*const IRpcChannelBuffer3.VTable, @ptrCast(self.vtable)).Receive(@as(*const IRpcChannelBuffer3, @ptrCast(self)), pMsg, ulSize, pulStatus); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRpcChannelBuffer3_Cancel(self: *const T, pMsg: ?*RPCOLEMESSAGE) HRESULT { return @as(*const IRpcChannelBuffer3.VTable, @ptrCast(self.vtable)).Cancel(@as(*const IRpcChannelBuffer3, @ptrCast(self)), pMsg); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRpcChannelBuffer3_GetCallContext(self: *const T, pMsg: ?*RPCOLEMESSAGE, riid: ?*const Guid, pInterface: ?*?*anyopaque) HRESULT { return @as(*const IRpcChannelBuffer3.VTable, @ptrCast(self.vtable)).GetCallContext(@as(*const IRpcChannelBuffer3, @ptrCast(self)), pMsg, riid, pInterface); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRpcChannelBuffer3_GetDestCtxEx(self: *const T, pMsg: ?*RPCOLEMESSAGE, pdwDestContext: ?*u32, ppvDestContext: ?*?*anyopaque) HRESULT { return @as(*const IRpcChannelBuffer3.VTable, @ptrCast(self.vtable)).GetDestCtxEx(@as(*const IRpcChannelBuffer3, @ptrCast(self)), pMsg, pdwDestContext, ppvDestContext); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRpcChannelBuffer3_GetState(self: *const T, pMsg: ?*RPCOLEMESSAGE, pState: ?*u32) HRESULT { return @as(*const IRpcChannelBuffer3.VTable, @ptrCast(self.vtable)).GetState(@as(*const IRpcChannelBuffer3, @ptrCast(self)), pMsg, pState); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRpcChannelBuffer3_RegisterAsync(self: *const T, pMsg: ?*RPCOLEMESSAGE, pAsyncMgr: ?*IAsyncManager) HRESULT { return @as(*const IRpcChannelBuffer3.VTable, @ptrCast(self.vtable)).RegisterAsync(@as(*const IRpcChannelBuffer3, @ptrCast(self)), pMsg, pAsyncMgr); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IRpcSyntaxNegotiate_Value = Guid.initString("58a08519-24c8-4935-b482-3fd823333a4f"); pub const IID_IRpcSyntaxNegotiate = &IID_IRpcSyntaxNegotiate_Value; pub const IRpcSyntaxNegotiate = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, NegotiateSyntax: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IRpcSyntaxNegotiate, pMsg: ?*RPCOLEMESSAGE, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IRpcSyntaxNegotiate, pMsg: ?*RPCOLEMESSAGE, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRpcSyntaxNegotiate_NegotiateSyntax(self: *const T, pMsg: ?*RPCOLEMESSAGE) HRESULT { return @as(*const IRpcSyntaxNegotiate.VTable, @ptrCast(self.vtable)).NegotiateSyntax(@as(*const IRpcSyntaxNegotiate, @ptrCast(self)), pMsg); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows5.0' const IID_IRpcProxyBuffer_Value = Guid.initString("d5f56a34-593b-101a-b569-08002b2dbf7a"); pub const IID_IRpcProxyBuffer = &IID_IRpcProxyBuffer_Value; pub const IRpcProxyBuffer = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, Connect: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IRpcProxyBuffer, pRpcChannelBuffer: ?*IRpcChannelBuffer, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IRpcProxyBuffer, pRpcChannelBuffer: ?*IRpcChannelBuffer, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Disconnect: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IRpcProxyBuffer, ) callconv(@import("std").os.windows.WINAPI) void, else => *const fn ( self: *const IRpcProxyBuffer, ) callconv(@import("std").os.windows.WINAPI) void, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRpcProxyBuffer_Connect(self: *const T, pRpcChannelBuffer: ?*IRpcChannelBuffer) HRESULT { return @as(*const IRpcProxyBuffer.VTable, @ptrCast(self.vtable)).Connect(@as(*const IRpcProxyBuffer, @ptrCast(self)), pRpcChannelBuffer); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRpcProxyBuffer_Disconnect(self: *const T) void { return @as(*const IRpcProxyBuffer.VTable, @ptrCast(self.vtable)).Disconnect(@as(*const IRpcProxyBuffer, @ptrCast(self))); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows5.0' const IID_IRpcStubBuffer_Value = Guid.initString("d5f56afc-593b-101a-b569-08002b2dbf7a"); pub const IID_IRpcStubBuffer = &IID_IRpcStubBuffer_Value; pub const IRpcStubBuffer = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, Connect: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IRpcStubBuffer, pUnkServer: ?*IUnknown, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IRpcStubBuffer, pUnkServer: ?*IUnknown, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Disconnect: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IRpcStubBuffer, ) callconv(@import("std").os.windows.WINAPI) void, else => *const fn ( self: *const IRpcStubBuffer, ) callconv(@import("std").os.windows.WINAPI) void, }, Invoke: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IRpcStubBuffer, _prpcmsg: ?*RPCOLEMESSAGE, _pRpcChannelBuffer: ?*IRpcChannelBuffer, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IRpcStubBuffer, _prpcmsg: ?*RPCOLEMESSAGE, _pRpcChannelBuffer: ?*IRpcChannelBuffer, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, IsIIDSupported: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IRpcStubBuffer, riid: ?*const Guid, ) callconv(@import("std").os.windows.WINAPI) ?*IRpcStubBuffer, else => *const fn ( self: *const IRpcStubBuffer, riid: ?*const Guid, ) callconv(@import("std").os.windows.WINAPI) ?*IRpcStubBuffer, }, CountRefs: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IRpcStubBuffer, ) callconv(@import("std").os.windows.WINAPI) u32, else => *const fn ( self: *const IRpcStubBuffer, ) callconv(@import("std").os.windows.WINAPI) u32, }, DebugServerQueryInterface: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IRpcStubBuffer, ppv: ?*?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IRpcStubBuffer, ppv: ?*?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, DebugServerRelease: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IRpcStubBuffer, pv: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) void, else => *const fn ( self: *const IRpcStubBuffer, pv: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) void, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRpcStubBuffer_Connect(self: *const T, pUnkServer: ?*IUnknown) HRESULT { return @as(*const IRpcStubBuffer.VTable, @ptrCast(self.vtable)).Connect(@as(*const IRpcStubBuffer, @ptrCast(self)), pUnkServer); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRpcStubBuffer_Disconnect(self: *const T) void { return @as(*const IRpcStubBuffer.VTable, @ptrCast(self.vtable)).Disconnect(@as(*const IRpcStubBuffer, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRpcStubBuffer_Invoke(self: *const T, _prpcmsg: ?*RPCOLEMESSAGE, _pRpcChannelBuffer: ?*IRpcChannelBuffer) HRESULT { return @as(*const IRpcStubBuffer.VTable, @ptrCast(self.vtable)).Invoke(@as(*const IRpcStubBuffer, @ptrCast(self)), _prpcmsg, _pRpcChannelBuffer); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRpcStubBuffer_IsIIDSupported(self: *const T, riid: ?*const Guid) ?*IRpcStubBuffer { return @as(*const IRpcStubBuffer.VTable, @ptrCast(self.vtable)).IsIIDSupported(@as(*const IRpcStubBuffer, @ptrCast(self)), riid); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRpcStubBuffer_CountRefs(self: *const T) u32 { return @as(*const IRpcStubBuffer.VTable, @ptrCast(self.vtable)).CountRefs(@as(*const IRpcStubBuffer, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRpcStubBuffer_DebugServerQueryInterface(self: *const T, ppv: ?*?*anyopaque) HRESULT { return @as(*const IRpcStubBuffer.VTable, @ptrCast(self.vtable)).DebugServerQueryInterface(@as(*const IRpcStubBuffer, @ptrCast(self)), ppv); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRpcStubBuffer_DebugServerRelease(self: *const T, pv: ?*anyopaque) void { return @as(*const IRpcStubBuffer.VTable, @ptrCast(self.vtable)).DebugServerRelease(@as(*const IRpcStubBuffer, @ptrCast(self)), pv); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows5.0' const IID_IPSFactoryBuffer_Value = Guid.initString("d5f569d0-593b-101a-b569-08002b2dbf7a"); pub const IID_IPSFactoryBuffer = &IID_IPSFactoryBuffer_Value; pub const IPSFactoryBuffer = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, CreateProxy: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IPSFactoryBuffer, pUnkOuter: ?*IUnknown, riid: ?*const Guid, ppProxy: ?*?*IRpcProxyBuffer, ppv: ?*?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IPSFactoryBuffer, pUnkOuter: ?*IUnknown, riid: ?*const Guid, ppProxy: ?*?*IRpcProxyBuffer, ppv: ?*?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, CreateStub: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IPSFactoryBuffer, riid: ?*const Guid, pUnkServer: ?*IUnknown, ppStub: ?*?*IRpcStubBuffer, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IPSFactoryBuffer, riid: ?*const Guid, pUnkServer: ?*IUnknown, ppStub: ?*?*IRpcStubBuffer, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPSFactoryBuffer_CreateProxy(self: *const T, pUnkOuter: ?*IUnknown, riid: ?*const Guid, ppProxy: ?*?*IRpcProxyBuffer, ppv: ?*?*anyopaque) HRESULT { return @as(*const IPSFactoryBuffer.VTable, @ptrCast(self.vtable)).CreateProxy(@as(*const IPSFactoryBuffer, @ptrCast(self)), pUnkOuter, riid, ppProxy, ppv); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPSFactoryBuffer_CreateStub(self: *const T, riid: ?*const Guid, pUnkServer: ?*IUnknown, ppStub: ?*?*IRpcStubBuffer) HRESULT { return @as(*const IPSFactoryBuffer.VTable, @ptrCast(self.vtable)).CreateStub(@as(*const IPSFactoryBuffer, @ptrCast(self)), riid, pUnkServer, ppStub); } }; } pub usingnamespace MethodMixin(@This()); }; pub const SChannelHookCallInfo = extern struct { iid: Guid, cbSize: u32, uCausality: Guid, dwServerPid: u32, iMethod: u32, pObject: ?*anyopaque, }; const IID_IChannelHook_Value = Guid.initString("1008c4a0-7613-11cf-9af1-0020af6e72f4"); pub const IID_IChannelHook = &IID_IChannelHook_Value; pub const IChannelHook = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, ClientGetSize: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IChannelHook, uExtent: ?*const Guid, riid: ?*const Guid, pDataSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) void, else => *const fn ( self: *const IChannelHook, uExtent: ?*const Guid, riid: ?*const Guid, pDataSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) void, }, ClientFillBuffer: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IChannelHook, uExtent: ?*const Guid, riid: ?*const Guid, pDataSize: ?*u32, pDataBuffer: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) void, else => *const fn ( self: *const IChannelHook, uExtent: ?*const Guid, riid: ?*const Guid, pDataSize: ?*u32, pDataBuffer: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) void, }, ClientNotify: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IChannelHook, uExtent: ?*const Guid, riid: ?*const Guid, cbDataSize: u32, pDataBuffer: ?*anyopaque, lDataRep: u32, hrFault: HRESULT, ) callconv(@import("std").os.windows.WINAPI) void, else => *const fn ( self: *const IChannelHook, uExtent: ?*const Guid, riid: ?*const Guid, cbDataSize: u32, pDataBuffer: ?*anyopaque, lDataRep: u32, hrFault: HRESULT, ) callconv(@import("std").os.windows.WINAPI) void, }, ServerNotify: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IChannelHook, uExtent: ?*const Guid, riid: ?*const Guid, cbDataSize: u32, pDataBuffer: ?*anyopaque, lDataRep: u32, ) callconv(@import("std").os.windows.WINAPI) void, else => *const fn ( self: *const IChannelHook, uExtent: ?*const Guid, riid: ?*const Guid, cbDataSize: u32, pDataBuffer: ?*anyopaque, lDataRep: u32, ) callconv(@import("std").os.windows.WINAPI) void, }, ServerGetSize: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IChannelHook, uExtent: ?*const Guid, riid: ?*const Guid, hrFault: HRESULT, pDataSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) void, else => *const fn ( self: *const IChannelHook, uExtent: ?*const Guid, riid: ?*const Guid, hrFault: HRESULT, pDataSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) void, }, ServerFillBuffer: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IChannelHook, uExtent: ?*const Guid, riid: ?*const Guid, pDataSize: ?*u32, pDataBuffer: ?*anyopaque, hrFault: HRESULT, ) callconv(@import("std").os.windows.WINAPI) void, else => *const fn ( self: *const IChannelHook, uExtent: ?*const Guid, riid: ?*const Guid, pDataSize: ?*u32, pDataBuffer: ?*anyopaque, hrFault: HRESULT, ) callconv(@import("std").os.windows.WINAPI) void, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IChannelHook_ClientGetSize(self: *const T, uExtent: ?*const Guid, riid: ?*const Guid, pDataSize: ?*u32) void { return @as(*const IChannelHook.VTable, @ptrCast(self.vtable)).ClientGetSize(@as(*const IChannelHook, @ptrCast(self)), uExtent, riid, pDataSize); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IChannelHook_ClientFillBuffer(self: *const T, uExtent: ?*const Guid, riid: ?*const Guid, pDataSize: ?*u32, pDataBuffer: ?*anyopaque) void { return @as(*const IChannelHook.VTable, @ptrCast(self.vtable)).ClientFillBuffer(@as(*const IChannelHook, @ptrCast(self)), uExtent, riid, pDataSize, pDataBuffer); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IChannelHook_ClientNotify(self: *const T, uExtent: ?*const Guid, riid: ?*const Guid, cbDataSize: u32, pDataBuffer: ?*anyopaque, lDataRep: u32, hrFault: HRESULT) void { return @as(*const IChannelHook.VTable, @ptrCast(self.vtable)).ClientNotify(@as(*const IChannelHook, @ptrCast(self)), uExtent, riid, cbDataSize, pDataBuffer, lDataRep, hrFault); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IChannelHook_ServerNotify(self: *const T, uExtent: ?*const Guid, riid: ?*const Guid, cbDataSize: u32, pDataBuffer: ?*anyopaque, lDataRep: u32) void { return @as(*const IChannelHook.VTable, @ptrCast(self.vtable)).ServerNotify(@as(*const IChannelHook, @ptrCast(self)), uExtent, riid, cbDataSize, pDataBuffer, lDataRep); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IChannelHook_ServerGetSize(self: *const T, uExtent: ?*const Guid, riid: ?*const Guid, hrFault: HRESULT, pDataSize: ?*u32) void { return @as(*const IChannelHook.VTable, @ptrCast(self.vtable)).ServerGetSize(@as(*const IChannelHook, @ptrCast(self)), uExtent, riid, hrFault, pDataSize); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IChannelHook_ServerFillBuffer(self: *const T, uExtent: ?*const Guid, riid: ?*const Guid, pDataSize: ?*u32, pDataBuffer: ?*anyopaque, hrFault: HRESULT) void { return @as(*const IChannelHook.VTable, @ptrCast(self.vtable)).ServerFillBuffer(@as(*const IChannelHook, @ptrCast(self)), uExtent, riid, pDataSize, pDataBuffer, hrFault); } }; } pub usingnamespace MethodMixin(@This()); }; pub const SOLE_AUTHENTICATION_SERVICE = extern struct { dwAuthnSvc: u32, dwAuthzSvc: u32, pPrincipalName: ?PWSTR, hr: HRESULT, }; pub const EOLE_AUTHENTICATION_CAPABILITIES = enum(i32) { NONE = 0, MUTUAL_AUTH = 1, STATIC_CLOAKING = 32, DYNAMIC_CLOAKING = 64, ANY_AUTHORITY = 128, MAKE_FULLSIC = 256, DEFAULT = 2048, SECURE_REFS = 2, ACCESS_CONTROL = 4, APPID = 8, DYNAMIC = 16, REQUIRE_FULLSIC = 512, AUTO_IMPERSONATE = 1024, DISABLE_AAA = 4096, NO_CUSTOM_MARSHAL = 8192, RESERVED1 = 16384, }; pub const EOAC_NONE = EOLE_AUTHENTICATION_CAPABILITIES.NONE; pub const EOAC_MUTUAL_AUTH = EOLE_AUTHENTICATION_CAPABILITIES.MUTUAL_AUTH; pub const EOAC_STATIC_CLOAKING = EOLE_AUTHENTICATION_CAPABILITIES.STATIC_CLOAKING; pub const EOAC_DYNAMIC_CLOAKING = EOLE_AUTHENTICATION_CAPABILITIES.DYNAMIC_CLOAKING; pub const EOAC_ANY_AUTHORITY = EOLE_AUTHENTICATION_CAPABILITIES.ANY_AUTHORITY; pub const EOAC_MAKE_FULLSIC = EOLE_AUTHENTICATION_CAPABILITIES.MAKE_FULLSIC; pub const EOAC_DEFAULT = EOLE_AUTHENTICATION_CAPABILITIES.DEFAULT; pub const EOAC_SECURE_REFS = EOLE_AUTHENTICATION_CAPABILITIES.SECURE_REFS; pub const EOAC_ACCESS_CONTROL = EOLE_AUTHENTICATION_CAPABILITIES.ACCESS_CONTROL; pub const EOAC_APPID = EOLE_AUTHENTICATION_CAPABILITIES.APPID; pub const EOAC_DYNAMIC = EOLE_AUTHENTICATION_CAPABILITIES.DYNAMIC; pub const EOAC_REQUIRE_FULLSIC = EOLE_AUTHENTICATION_CAPABILITIES.REQUIRE_FULLSIC; pub const EOAC_AUTO_IMPERSONATE = EOLE_AUTHENTICATION_CAPABILITIES.AUTO_IMPERSONATE; pub const EOAC_DISABLE_AAA = EOLE_AUTHENTICATION_CAPABILITIES.DISABLE_AAA; pub const EOAC_NO_CUSTOM_MARSHAL = EOLE_AUTHENTICATION_CAPABILITIES.NO_CUSTOM_MARSHAL; pub const EOAC_RESERVED1 = EOLE_AUTHENTICATION_CAPABILITIES.RESERVED1; pub const SOLE_AUTHENTICATION_INFO = extern struct { dwAuthnSvc: u32, dwAuthzSvc: u32, pAuthInfo: ?*anyopaque, }; pub const SOLE_AUTHENTICATION_LIST = extern struct { cAuthInfo: u32, aAuthInfo: ?*SOLE_AUTHENTICATION_INFO, }; // TODO: this type is limited to platform 'windows5.0' const IID_IClientSecurity_Value = Guid.initString("0000013d-0000-0000-c000-000000000046"); pub const IID_IClientSecurity = &IID_IClientSecurity_Value; pub const IClientSecurity = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, QueryBlanket: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IClientSecurity, pProxy: ?*IUnknown, pAuthnSvc: ?*u32, pAuthzSvc: ?*u32, pServerPrincName: ?*?*u16, pAuthnLevel: ?*RPC_C_AUTHN_LEVEL, pImpLevel: ?*RPC_C_IMP_LEVEL, pAuthInfo: ?*?*anyopaque, pCapabilites: ?*EOLE_AUTHENTICATION_CAPABILITIES, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IClientSecurity, pProxy: ?*IUnknown, pAuthnSvc: ?*u32, pAuthzSvc: ?*u32, pServerPrincName: ?*?*u16, pAuthnLevel: ?*RPC_C_AUTHN_LEVEL, pImpLevel: ?*RPC_C_IMP_LEVEL, pAuthInfo: ?*?*anyopaque, pCapabilites: ?*EOLE_AUTHENTICATION_CAPABILITIES, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetBlanket: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IClientSecurity, pProxy: ?*IUnknown, dwAuthnSvc: u32, dwAuthzSvc: u32, pServerPrincName: ?PWSTR, dwAuthnLevel: RPC_C_AUTHN_LEVEL, dwImpLevel: RPC_C_IMP_LEVEL, pAuthInfo: ?*anyopaque, dwCapabilities: EOLE_AUTHENTICATION_CAPABILITIES, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IClientSecurity, pProxy: ?*IUnknown, dwAuthnSvc: u32, dwAuthzSvc: u32, pServerPrincName: ?PWSTR, dwAuthnLevel: RPC_C_AUTHN_LEVEL, dwImpLevel: RPC_C_IMP_LEVEL, pAuthInfo: ?*anyopaque, dwCapabilities: EOLE_AUTHENTICATION_CAPABILITIES, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, CopyProxy: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IClientSecurity, pProxy: ?*IUnknown, ppCopy: ?*?*IUnknown, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IClientSecurity, pProxy: ?*IUnknown, ppCopy: ?*?*IUnknown, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IClientSecurity_QueryBlanket(self: *const T, pProxy: ?*IUnknown, pAuthnSvc: ?*u32, pAuthzSvc: ?*u32, pServerPrincName: ?*?*u16, pAuthnLevel: ?*RPC_C_AUTHN_LEVEL, pImpLevel: ?*RPC_C_IMP_LEVEL, pAuthInfo: ?*?*anyopaque, pCapabilites: ?*EOLE_AUTHENTICATION_CAPABILITIES) HRESULT { return @as(*const IClientSecurity.VTable, @ptrCast(self.vtable)).QueryBlanket(@as(*const IClientSecurity, @ptrCast(self)), pProxy, pAuthnSvc, pAuthzSvc, pServerPrincName, pAuthnLevel, pImpLevel, pAuthInfo, pCapabilites); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IClientSecurity_SetBlanket(self: *const T, pProxy: ?*IUnknown, dwAuthnSvc: u32, dwAuthzSvc: u32, pServerPrincName: ?PWSTR, dwAuthnLevel: RPC_C_AUTHN_LEVEL, dwImpLevel: RPC_C_IMP_LEVEL, pAuthInfo: ?*anyopaque, dwCapabilities: EOLE_AUTHENTICATION_CAPABILITIES) HRESULT { return @as(*const IClientSecurity.VTable, @ptrCast(self.vtable)).SetBlanket(@as(*const IClientSecurity, @ptrCast(self)), pProxy, dwAuthnSvc, dwAuthzSvc, pServerPrincName, dwAuthnLevel, dwImpLevel, pAuthInfo, dwCapabilities); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IClientSecurity_CopyProxy(self: *const T, pProxy: ?*IUnknown, ppCopy: ?*?*IUnknown) HRESULT { return @as(*const IClientSecurity.VTable, @ptrCast(self.vtable)).CopyProxy(@as(*const IClientSecurity, @ptrCast(self)), pProxy, ppCopy); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows5.0' const IID_IServerSecurity_Value = Guid.initString("0000013e-0000-0000-c000-000000000046"); pub const IID_IServerSecurity = &IID_IServerSecurity_Value; pub const IServerSecurity = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, QueryBlanket: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IServerSecurity, pAuthnSvc: ?*u32, pAuthzSvc: ?*u32, pServerPrincName: ?*?*u16, pAuthnLevel: ?*u32, pImpLevel: ?*u32, pPrivs: ?*?*anyopaque, pCapabilities: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IServerSecurity, pAuthnSvc: ?*u32, pAuthzSvc: ?*u32, pServerPrincName: ?*?*u16, pAuthnLevel: ?*u32, pImpLevel: ?*u32, pPrivs: ?*?*anyopaque, pCapabilities: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, ImpersonateClient: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IServerSecurity, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IServerSecurity, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, RevertToSelf: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IServerSecurity, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IServerSecurity, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, IsImpersonating: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IServerSecurity, ) callconv(@import("std").os.windows.WINAPI) BOOL, else => *const fn ( self: *const IServerSecurity, ) callconv(@import("std").os.windows.WINAPI) BOOL, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IServerSecurity_QueryBlanket(self: *const T, pAuthnSvc: ?*u32, pAuthzSvc: ?*u32, pServerPrincName: ?*?*u16, pAuthnLevel: ?*u32, pImpLevel: ?*u32, pPrivs: ?*?*anyopaque, pCapabilities: ?*u32) HRESULT { return @as(*const IServerSecurity.VTable, @ptrCast(self.vtable)).QueryBlanket(@as(*const IServerSecurity, @ptrCast(self)), pAuthnSvc, pAuthzSvc, pServerPrincName, pAuthnLevel, pImpLevel, pPrivs, pCapabilities); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IServerSecurity_ImpersonateClient(self: *const T) HRESULT { return @as(*const IServerSecurity.VTable, @ptrCast(self.vtable)).ImpersonateClient(@as(*const IServerSecurity, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IServerSecurity_RevertToSelf(self: *const T) HRESULT { return @as(*const IServerSecurity.VTable, @ptrCast(self.vtable)).RevertToSelf(@as(*const IServerSecurity, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IServerSecurity_IsImpersonating(self: *const T) BOOL { return @as(*const IServerSecurity.VTable, @ptrCast(self.vtable)).IsImpersonating(@as(*const IServerSecurity, @ptrCast(self))); } }; } pub usingnamespace MethodMixin(@This()); }; pub const RPCOPT_PROPERTIES = enum(i32) { RPCTIMEOUT = 1, SERVER_LOCALITY = 2, RESERVED1 = 4, RESERVED2 = 5, RESERVED3 = 8, RESERVED4 = 16, }; pub const COMBND_RPCTIMEOUT = RPCOPT_PROPERTIES.RPCTIMEOUT; pub const COMBND_SERVER_LOCALITY = RPCOPT_PROPERTIES.SERVER_LOCALITY; pub const COMBND_RESERVED1 = RPCOPT_PROPERTIES.RESERVED1; pub const COMBND_RESERVED2 = RPCOPT_PROPERTIES.RESERVED2; pub const COMBND_RESERVED3 = RPCOPT_PROPERTIES.RESERVED3; pub const COMBND_RESERVED4 = RPCOPT_PROPERTIES.RESERVED4; pub const RPCOPT_SERVER_LOCALITY_VALUES = enum(i32) { PROCESS_LOCAL = 0, MACHINE_LOCAL = 1, REMOTE = 2, }; pub const SERVER_LOCALITY_PROCESS_LOCAL = RPCOPT_SERVER_LOCALITY_VALUES.PROCESS_LOCAL; pub const SERVER_LOCALITY_MACHINE_LOCAL = RPCOPT_SERVER_LOCALITY_VALUES.MACHINE_LOCAL; pub const SERVER_LOCALITY_REMOTE = RPCOPT_SERVER_LOCALITY_VALUES.REMOTE; // TODO: this type is limited to platform 'windows5.0' const IID_IRpcOptions_Value = Guid.initString("00000144-0000-0000-c000-000000000046"); pub const IID_IRpcOptions = &IID_IRpcOptions_Value; pub const IRpcOptions = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, Set: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IRpcOptions, pPrx: ?*IUnknown, dwProperty: RPCOPT_PROPERTIES, dwValue: usize, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IRpcOptions, pPrx: ?*IUnknown, dwProperty: RPCOPT_PROPERTIES, dwValue: usize, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Query: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IRpcOptions, pPrx: ?*IUnknown, dwProperty: RPCOPT_PROPERTIES, pdwValue: ?*usize, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IRpcOptions, pPrx: ?*IUnknown, dwProperty: RPCOPT_PROPERTIES, pdwValue: ?*usize, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRpcOptions_Set(self: *const T, pPrx: ?*IUnknown, dwProperty: RPCOPT_PROPERTIES, dwValue: usize) HRESULT { return @as(*const IRpcOptions.VTable, @ptrCast(self.vtable)).Set(@as(*const IRpcOptions, @ptrCast(self)), pPrx, dwProperty, dwValue); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRpcOptions_Query(self: *const T, pPrx: ?*IUnknown, dwProperty: RPCOPT_PROPERTIES, pdwValue: ?*usize) HRESULT { return @as(*const IRpcOptions.VTable, @ptrCast(self.vtable)).Query(@as(*const IRpcOptions, @ptrCast(self)), pPrx, dwProperty, pdwValue); } }; } pub usingnamespace MethodMixin(@This()); }; pub const GLOBALOPT_PROPERTIES = enum(i32) { EXCEPTION_HANDLING = 1, APPID = 2, RPC_THREADPOOL_SETTING = 3, RO_SETTINGS = 4, UNMARSHALING_POLICY = 5, PROPERTIES_RESERVED1 = 6, PROPERTIES_RESERVED2 = 7, PROPERTIES_RESERVED3 = 8, }; pub const COMGLB_EXCEPTION_HANDLING = GLOBALOPT_PROPERTIES.EXCEPTION_HANDLING; pub const COMGLB_APPID = GLOBALOPT_PROPERTIES.APPID; pub const COMGLB_RPC_THREADPOOL_SETTING = GLOBALOPT_PROPERTIES.RPC_THREADPOOL_SETTING; pub const COMGLB_RO_SETTINGS = GLOBALOPT_PROPERTIES.RO_SETTINGS; pub const COMGLB_UNMARSHALING_POLICY = GLOBALOPT_PROPERTIES.UNMARSHALING_POLICY; pub const COMGLB_PROPERTIES_RESERVED1 = GLOBALOPT_PROPERTIES.PROPERTIES_RESERVED1; pub const COMGLB_PROPERTIES_RESERVED2 = GLOBALOPT_PROPERTIES.PROPERTIES_RESERVED2; pub const COMGLB_PROPERTIES_RESERVED3 = GLOBALOPT_PROPERTIES.PROPERTIES_RESERVED3; pub const GLOBALOPT_EH_VALUES = enum(i32) { HANDLE = 0, DONOT_HANDLE_FATAL = 1, // DONOT_HANDLE = 1, this enum value conflicts with DONOT_HANDLE_FATAL DONOT_HANDLE_ANY = 2, }; pub const COMGLB_EXCEPTION_HANDLE = GLOBALOPT_EH_VALUES.HANDLE; pub const COMGLB_EXCEPTION_DONOT_HANDLE_FATAL = GLOBALOPT_EH_VALUES.DONOT_HANDLE_FATAL; pub const COMGLB_EXCEPTION_DONOT_HANDLE = GLOBALOPT_EH_VALUES.DONOT_HANDLE_FATAL; pub const COMGLB_EXCEPTION_DONOT_HANDLE_ANY = GLOBALOPT_EH_VALUES.DONOT_HANDLE_ANY; pub const GLOBALOPT_RPCTP_VALUES = enum(i32) { DEFAULT_POOL = 0, PRIVATE_POOL = 1, }; pub const COMGLB_RPC_THREADPOOL_SETTING_DEFAULT_POOL = GLOBALOPT_RPCTP_VALUES.DEFAULT_POOL; pub const COMGLB_RPC_THREADPOOL_SETTING_PRIVATE_POOL = GLOBALOPT_RPCTP_VALUES.PRIVATE_POOL; pub const GLOBALOPT_RO_FLAGS = enum(i32) { STA_MODALLOOP_REMOVE_TOUCH_MESSAGES = 1, STA_MODALLOOP_SHARED_QUEUE_REMOVE_INPUT_MESSAGES = 2, STA_MODALLOOP_SHARED_QUEUE_DONOT_REMOVE_INPUT_MESSAGES = 4, FAST_RUNDOWN = 8, RESERVED1 = 16, RESERVED2 = 32, RESERVED3 = 64, STA_MODALLOOP_SHARED_QUEUE_REORDER_POINTER_MESSAGES = 128, RESERVED4 = 256, RESERVED5 = 512, RESERVED6 = 1024, }; pub const COMGLB_STA_MODALLOOP_REMOVE_TOUCH_MESSAGES = GLOBALOPT_RO_FLAGS.STA_MODALLOOP_REMOVE_TOUCH_MESSAGES; pub const COMGLB_STA_MODALLOOP_SHARED_QUEUE_REMOVE_INPUT_MESSAGES = GLOBALOPT_RO_FLAGS.STA_MODALLOOP_SHARED_QUEUE_REMOVE_INPUT_MESSAGES; pub const COMGLB_STA_MODALLOOP_SHARED_QUEUE_DONOT_REMOVE_INPUT_MESSAGES = GLOBALOPT_RO_FLAGS.STA_MODALLOOP_SHARED_QUEUE_DONOT_REMOVE_INPUT_MESSAGES; pub const COMGLB_FAST_RUNDOWN = GLOBALOPT_RO_FLAGS.FAST_RUNDOWN; pub const COMGLB_RESERVED1 = GLOBALOPT_RO_FLAGS.RESERVED1; pub const COMGLB_RESERVED2 = GLOBALOPT_RO_FLAGS.RESERVED2; pub const COMGLB_RESERVED3 = GLOBALOPT_RO_FLAGS.RESERVED3; pub const COMGLB_STA_MODALLOOP_SHARED_QUEUE_REORDER_POINTER_MESSAGES = GLOBALOPT_RO_FLAGS.STA_MODALLOOP_SHARED_QUEUE_REORDER_POINTER_MESSAGES; pub const COMGLB_RESERVED4 = GLOBALOPT_RO_FLAGS.RESERVED4; pub const COMGLB_RESERVED5 = GLOBALOPT_RO_FLAGS.RESERVED5; pub const COMGLB_RESERVED6 = GLOBALOPT_RO_FLAGS.RESERVED6; pub const GLOBALOPT_UNMARSHALING_POLICY_VALUES = enum(i32) { NORMAL = 0, STRONG = 1, HYBRID = 2, }; pub const COMGLB_UNMARSHALING_POLICY_NORMAL = GLOBALOPT_UNMARSHALING_POLICY_VALUES.NORMAL; pub const COMGLB_UNMARSHALING_POLICY_STRONG = GLOBALOPT_UNMARSHALING_POLICY_VALUES.STRONG; pub const COMGLB_UNMARSHALING_POLICY_HYBRID = GLOBALOPT_UNMARSHALING_POLICY_VALUES.HYBRID; // TODO: this type is limited to platform 'windows6.0.6000' const IID_IGlobalOptions_Value = Guid.initString("0000015b-0000-0000-c000-000000000046"); pub const IID_IGlobalOptions = &IID_IGlobalOptions_Value; pub const IGlobalOptions = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, Set: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IGlobalOptions, dwProperty: GLOBALOPT_PROPERTIES, dwValue: usize, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IGlobalOptions, dwProperty: GLOBALOPT_PROPERTIES, dwValue: usize, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Query: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IGlobalOptions, dwProperty: GLOBALOPT_PROPERTIES, pdwValue: ?*usize, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IGlobalOptions, dwProperty: GLOBALOPT_PROPERTIES, pdwValue: ?*usize, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IGlobalOptions_Set(self: *const T, dwProperty: GLOBALOPT_PROPERTIES, dwValue: usize) HRESULT { return @as(*const IGlobalOptions.VTable, @ptrCast(self.vtable)).Set(@as(*const IGlobalOptions, @ptrCast(self)), dwProperty, dwValue); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IGlobalOptions_Query(self: *const T, dwProperty: GLOBALOPT_PROPERTIES, pdwValue: ?*usize) HRESULT { return @as(*const IGlobalOptions.VTable, @ptrCast(self.vtable)).Query(@as(*const IGlobalOptions, @ptrCast(self)), dwProperty, pdwValue); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows5.0' const IID_ISurrogate_Value = Guid.initString("00000022-0000-0000-c000-000000000046"); pub const IID_ISurrogate = &IID_ISurrogate_Value; pub const ISurrogate = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, LoadDllServer: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ISurrogate, Clsid: ?*const Guid, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ISurrogate, Clsid: ?*const Guid, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, FreeSurrogate: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ISurrogate, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ISurrogate, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISurrogate_LoadDllServer(self: *const T, Clsid: ?*const Guid) HRESULT { return @as(*const ISurrogate.VTable, @ptrCast(self.vtable)).LoadDllServer(@as(*const ISurrogate, @ptrCast(self)), Clsid); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISurrogate_FreeSurrogate(self: *const T) HRESULT { return @as(*const ISurrogate.VTable, @ptrCast(self.vtable)).FreeSurrogate(@as(*const ISurrogate, @ptrCast(self))); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows5.0' const IID_IGlobalInterfaceTable_Value = Guid.initString("00000146-0000-0000-c000-000000000046"); pub const IID_IGlobalInterfaceTable = &IID_IGlobalInterfaceTable_Value; pub const IGlobalInterfaceTable = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, RegisterInterfaceInGlobal: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IGlobalInterfaceTable, pUnk: ?*IUnknown, riid: ?*const Guid, pdwCookie: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IGlobalInterfaceTable, pUnk: ?*IUnknown, riid: ?*const Guid, pdwCookie: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, RevokeInterfaceFromGlobal: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IGlobalInterfaceTable, dwCookie: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IGlobalInterfaceTable, dwCookie: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetInterfaceFromGlobal: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IGlobalInterfaceTable, dwCookie: u32, riid: ?*const Guid, ppv: ?*?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IGlobalInterfaceTable, dwCookie: u32, riid: ?*const Guid, ppv: ?*?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IGlobalInterfaceTable_RegisterInterfaceInGlobal(self: *const T, pUnk: ?*IUnknown, riid: ?*const Guid, pdwCookie: ?*u32) HRESULT { return @as(*const IGlobalInterfaceTable.VTable, @ptrCast(self.vtable)).RegisterInterfaceInGlobal(@as(*const IGlobalInterfaceTable, @ptrCast(self)), pUnk, riid, pdwCookie); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IGlobalInterfaceTable_RevokeInterfaceFromGlobal(self: *const T, dwCookie: u32) HRESULT { return @as(*const IGlobalInterfaceTable.VTable, @ptrCast(self.vtable)).RevokeInterfaceFromGlobal(@as(*const IGlobalInterfaceTable, @ptrCast(self)), dwCookie); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IGlobalInterfaceTable_GetInterfaceFromGlobal(self: *const T, dwCookie: u32, riid: ?*const Guid, ppv: ?*?*anyopaque) HRESULT { return @as(*const IGlobalInterfaceTable.VTable, @ptrCast(self.vtable)).GetInterfaceFromGlobal(@as(*const IGlobalInterfaceTable, @ptrCast(self)), dwCookie, riid, ppv); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows5.0' const IID_ISynchronize_Value = Guid.initString("00000030-0000-0000-c000-000000000046"); pub const IID_ISynchronize = &IID_ISynchronize_Value; pub const ISynchronize = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, Wait: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ISynchronize, dwFlags: u32, dwMilliseconds: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ISynchronize, dwFlags: u32, dwMilliseconds: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Signal: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ISynchronize, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ISynchronize, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Reset: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ISynchronize, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ISynchronize, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISynchronize_Wait(self: *const T, dwFlags: u32, dwMilliseconds: u32) HRESULT { return @as(*const ISynchronize.VTable, @ptrCast(self.vtable)).Wait(@as(*const ISynchronize, @ptrCast(self)), dwFlags, dwMilliseconds); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISynchronize_Signal(self: *const T) HRESULT { return @as(*const ISynchronize.VTable, @ptrCast(self.vtable)).Signal(@as(*const ISynchronize, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISynchronize_Reset(self: *const T) HRESULT { return @as(*const ISynchronize.VTable, @ptrCast(self.vtable)).Reset(@as(*const ISynchronize, @ptrCast(self))); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows5.0' const IID_ISynchronizeHandle_Value = Guid.initString("00000031-0000-0000-c000-000000000046"); pub const IID_ISynchronizeHandle = &IID_ISynchronizeHandle_Value; pub const ISynchronizeHandle = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, GetHandle: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ISynchronizeHandle, ph: ?*?HANDLE, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ISynchronizeHandle, ph: ?*?HANDLE, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISynchronizeHandle_GetHandle(self: *const T, ph: ?*?HANDLE) HRESULT { return @as(*const ISynchronizeHandle.VTable, @ptrCast(self.vtable)).GetHandle(@as(*const ISynchronizeHandle, @ptrCast(self)), ph); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows5.0' const IID_ISynchronizeEvent_Value = Guid.initString("00000032-0000-0000-c000-000000000046"); pub const IID_ISynchronizeEvent = &IID_ISynchronizeEvent_Value; pub const ISynchronizeEvent = extern struct { pub const VTable = extern struct { base: ISynchronizeHandle.VTable, SetEventHandle: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ISynchronizeEvent, ph: ?*?HANDLE, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ISynchronizeEvent, ph: ?*?HANDLE, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace ISynchronizeHandle.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISynchronizeEvent_SetEventHandle(self: *const T, ph: ?*?HANDLE) HRESULT { return @as(*const ISynchronizeEvent.VTable, @ptrCast(self.vtable)).SetEventHandle(@as(*const ISynchronizeEvent, @ptrCast(self)), ph); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows5.0' const IID_ISynchronizeContainer_Value = Guid.initString("00000033-0000-0000-c000-000000000046"); pub const IID_ISynchronizeContainer = &IID_ISynchronizeContainer_Value; pub const ISynchronizeContainer = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, AddSynchronize: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ISynchronizeContainer, pSync: ?*ISynchronize, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ISynchronizeContainer, pSync: ?*ISynchronize, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, WaitMultiple: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ISynchronizeContainer, dwFlags: u32, dwTimeOut: u32, ppSync: ?*?*ISynchronize, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ISynchronizeContainer, dwFlags: u32, dwTimeOut: u32, ppSync: ?*?*ISynchronize, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISynchronizeContainer_AddSynchronize(self: *const T, pSync: ?*ISynchronize) HRESULT { return @as(*const ISynchronizeContainer.VTable, @ptrCast(self.vtable)).AddSynchronize(@as(*const ISynchronizeContainer, @ptrCast(self)), pSync); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISynchronizeContainer_WaitMultiple(self: *const T, dwFlags: u32, dwTimeOut: u32, ppSync: ?*?*ISynchronize) HRESULT { return @as(*const ISynchronizeContainer.VTable, @ptrCast(self.vtable)).WaitMultiple(@as(*const ISynchronizeContainer, @ptrCast(self)), dwFlags, dwTimeOut, ppSync); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_ISynchronizeMutex_Value = Guid.initString("00000025-0000-0000-c000-000000000046"); pub const IID_ISynchronizeMutex = &IID_ISynchronizeMutex_Value; pub const ISynchronizeMutex = extern struct { pub const VTable = extern struct { base: ISynchronize.VTable, ReleaseMutex: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ISynchronizeMutex, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ISynchronizeMutex, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace ISynchronize.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISynchronizeMutex_ReleaseMutex(self: *const T) HRESULT { return @as(*const ISynchronizeMutex.VTable, @ptrCast(self.vtable)).ReleaseMutex(@as(*const ISynchronizeMutex, @ptrCast(self))); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows5.0' const IID_ICancelMethodCalls_Value = Guid.initString("00000029-0000-0000-c000-000000000046"); pub const IID_ICancelMethodCalls = &IID_ICancelMethodCalls_Value; pub const ICancelMethodCalls = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, Cancel: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ICancelMethodCalls, ulSeconds: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ICancelMethodCalls, ulSeconds: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, TestCancel: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ICancelMethodCalls, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ICancelMethodCalls, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ICancelMethodCalls_Cancel(self: *const T, ulSeconds: u32) HRESULT { return @as(*const ICancelMethodCalls.VTable, @ptrCast(self.vtable)).Cancel(@as(*const ICancelMethodCalls, @ptrCast(self)), ulSeconds); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ICancelMethodCalls_TestCancel(self: *const T) HRESULT { return @as(*const ICancelMethodCalls.VTable, @ptrCast(self.vtable)).TestCancel(@as(*const ICancelMethodCalls, @ptrCast(self))); } }; } pub usingnamespace MethodMixin(@This()); }; pub const DCOM_CALL_STATE = enum(i32) { NONE = 0, CALL_COMPLETE = 1, CALL_CANCELED = 2, }; pub const DCOM_NONE = DCOM_CALL_STATE.NONE; pub const DCOM_CALL_COMPLETE = DCOM_CALL_STATE.CALL_COMPLETE; pub const DCOM_CALL_CANCELED = DCOM_CALL_STATE.CALL_CANCELED; const IID_IAsyncManager_Value = Guid.initString("0000002a-0000-0000-c000-000000000046"); pub const IID_IAsyncManager = &IID_IAsyncManager_Value; pub const IAsyncManager = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, CompleteCall: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IAsyncManager, Result: HRESULT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IAsyncManager, Result: HRESULT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetCallContext: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IAsyncManager, riid: ?*const Guid, pInterface: ?*?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IAsyncManager, riid: ?*const Guid, pInterface: ?*?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetState: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IAsyncManager, pulStateFlags: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IAsyncManager, pulStateFlags: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IAsyncManager_CompleteCall(self: *const T, Result: HRESULT) HRESULT { return @as(*const IAsyncManager.VTable, @ptrCast(self.vtable)).CompleteCall(@as(*const IAsyncManager, @ptrCast(self)), Result); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IAsyncManager_GetCallContext(self: *const T, riid: ?*const Guid, pInterface: ?*?*anyopaque) HRESULT { return @as(*const IAsyncManager.VTable, @ptrCast(self.vtable)).GetCallContext(@as(*const IAsyncManager, @ptrCast(self)), riid, pInterface); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IAsyncManager_GetState(self: *const T, pulStateFlags: ?*u32) HRESULT { return @as(*const IAsyncManager.VTable, @ptrCast(self.vtable)).GetState(@as(*const IAsyncManager, @ptrCast(self)), pulStateFlags); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows5.0' const IID_ICallFactory_Value = Guid.initString("1c733a30-2a1c-11ce-ade5-00aa0044773d"); pub const IID_ICallFactory = &IID_ICallFactory_Value; pub const ICallFactory = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, CreateCall: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ICallFactory, riid: ?*const Guid, pCtrlUnk: ?*IUnknown, riid2: ?*const Guid, ppv: ?*?*IUnknown, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ICallFactory, riid: ?*const Guid, pCtrlUnk: ?*IUnknown, riid2: ?*const Guid, ppv: ?*?*IUnknown, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ICallFactory_CreateCall(self: *const T, riid: ?*const Guid, pCtrlUnk: ?*IUnknown, riid2: ?*const Guid, ppv: ?*?*IUnknown) HRESULT { return @as(*const ICallFactory.VTable, @ptrCast(self.vtable)).CreateCall(@as(*const ICallFactory, @ptrCast(self)), riid, pCtrlUnk, riid2, ppv); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IRpcHelper_Value = Guid.initString("00000149-0000-0000-c000-000000000046"); pub const IID_IRpcHelper = &IID_IRpcHelper_Value; pub const IRpcHelper = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, GetDCOMProtocolVersion: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IRpcHelper, pComVersion: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IRpcHelper, pComVersion: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetIIDFromOBJREF: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IRpcHelper, pObjRef: ?*anyopaque, piid: ?*?*Guid, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IRpcHelper, pObjRef: ?*anyopaque, piid: ?*?*Guid, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRpcHelper_GetDCOMProtocolVersion(self: *const T, pComVersion: ?*u32) HRESULT { return @as(*const IRpcHelper.VTable, @ptrCast(self.vtable)).GetDCOMProtocolVersion(@as(*const IRpcHelper, @ptrCast(self)), pComVersion); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRpcHelper_GetIIDFromOBJREF(self: *const T, pObjRef: ?*anyopaque, piid: ?*?*Guid) HRESULT { return @as(*const IRpcHelper.VTable, @ptrCast(self.vtable)).GetIIDFromOBJREF(@as(*const IRpcHelper, @ptrCast(self)), pObjRef, piid); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IReleaseMarshalBuffers_Value = Guid.initString("eb0cb9e8-7996-11d2-872e-0000f8080859"); pub const IID_IReleaseMarshalBuffers = &IID_IReleaseMarshalBuffers_Value; pub const IReleaseMarshalBuffers = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, ReleaseMarshalBuffer: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IReleaseMarshalBuffers, pMsg: ?*RPCOLEMESSAGE, dwFlags: u32, pChnl: ?*IUnknown, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IReleaseMarshalBuffers, pMsg: ?*RPCOLEMESSAGE, dwFlags: u32, pChnl: ?*IUnknown, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IReleaseMarshalBuffers_ReleaseMarshalBuffer(self: *const T, pMsg: ?*RPCOLEMESSAGE, dwFlags: u32, pChnl: ?*IUnknown) HRESULT { return @as(*const IReleaseMarshalBuffers.VTable, @ptrCast(self.vtable)).ReleaseMarshalBuffer(@as(*const IReleaseMarshalBuffers, @ptrCast(self)), pMsg, dwFlags, pChnl); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IWaitMultiple_Value = Guid.initString("0000002b-0000-0000-c000-000000000046"); pub const IID_IWaitMultiple = &IID_IWaitMultiple_Value; pub const IWaitMultiple = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, WaitMultiple: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IWaitMultiple, timeout: u32, pSync: ?*?*ISynchronize, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IWaitMultiple, timeout: u32, pSync: ?*?*ISynchronize, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, AddSynchronize: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IWaitMultiple, pSync: ?*ISynchronize, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IWaitMultiple, pSync: ?*ISynchronize, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWaitMultiple_WaitMultiple(self: *const T, timeout: u32, pSync: ?*?*ISynchronize) HRESULT { return @as(*const IWaitMultiple.VTable, @ptrCast(self.vtable)).WaitMultiple(@as(*const IWaitMultiple, @ptrCast(self)), timeout, pSync); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWaitMultiple_AddSynchronize(self: *const T, pSync: ?*ISynchronize) HRESULT { return @as(*const IWaitMultiple.VTable, @ptrCast(self.vtable)).AddSynchronize(@as(*const IWaitMultiple, @ptrCast(self)), pSync); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IAddrTrackingControl_Value = Guid.initString("00000147-0000-0000-c000-000000000046"); pub const IID_IAddrTrackingControl = &IID_IAddrTrackingControl_Value; pub const IAddrTrackingControl = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, EnableCOMDynamicAddrTracking: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IAddrTrackingControl, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IAddrTrackingControl, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, DisableCOMDynamicAddrTracking: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IAddrTrackingControl, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IAddrTrackingControl, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IAddrTrackingControl_EnableCOMDynamicAddrTracking(self: *const T) HRESULT { return @as(*const IAddrTrackingControl.VTable, @ptrCast(self.vtable)).EnableCOMDynamicAddrTracking(@as(*const IAddrTrackingControl, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IAddrTrackingControl_DisableCOMDynamicAddrTracking(self: *const T) HRESULT { return @as(*const IAddrTrackingControl.VTable, @ptrCast(self.vtable)).DisableCOMDynamicAddrTracking(@as(*const IAddrTrackingControl, @ptrCast(self))); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IAddrExclusionControl_Value = Guid.initString("00000148-0000-0000-c000-000000000046"); pub const IID_IAddrExclusionControl = &IID_IAddrExclusionControl_Value; pub const IAddrExclusionControl = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, GetCurrentAddrExclusionList: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IAddrExclusionControl, riid: ?*const Guid, ppEnumerator: ?*?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IAddrExclusionControl, riid: ?*const Guid, ppEnumerator: ?*?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, UpdateAddrExclusionList: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IAddrExclusionControl, pEnumerator: ?*IUnknown, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IAddrExclusionControl, pEnumerator: ?*IUnknown, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IAddrExclusionControl_GetCurrentAddrExclusionList(self: *const T, riid: ?*const Guid, ppEnumerator: ?*?*anyopaque) HRESULT { return @as(*const IAddrExclusionControl.VTable, @ptrCast(self.vtable)).GetCurrentAddrExclusionList(@as(*const IAddrExclusionControl, @ptrCast(self)), riid, ppEnumerator); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IAddrExclusionControl_UpdateAddrExclusionList(self: *const T, pEnumerator: ?*IUnknown) HRESULT { return @as(*const IAddrExclusionControl.VTable, @ptrCast(self.vtable)).UpdateAddrExclusionList(@as(*const IAddrExclusionControl, @ptrCast(self)), pEnumerator); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows5.0' const IID_IPipeByte_Value = Guid.initString("db2f3aca-2f86-11d1-8e04-00c04fb9989a"); pub const IID_IPipeByte = &IID_IPipeByte_Value; pub const IPipeByte = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, Pull: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IPipeByte, buf: [*:0]u8, cRequest: u32, pcReturned: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IPipeByte, buf: [*:0]u8, cRequest: u32, pcReturned: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Push: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IPipeByte, buf: [*:0]u8, cSent: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IPipeByte, buf: [*:0]u8, cSent: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPipeByte_Pull(self: *const T, buf: [*:0]u8, cRequest: u32, pcReturned: ?*u32) HRESULT { return @as(*const IPipeByte.VTable, @ptrCast(self.vtable)).Pull(@as(*const IPipeByte, @ptrCast(self)), buf, cRequest, pcReturned); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPipeByte_Push(self: *const T, buf: [*:0]u8, cSent: u32) HRESULT { return @as(*const IPipeByte.VTable, @ptrCast(self.vtable)).Push(@as(*const IPipeByte, @ptrCast(self)), buf, cSent); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_AsyncIPipeByte_Value = Guid.initString("db2f3acb-2f86-11d1-8e04-00c04fb9989a"); pub const IID_AsyncIPipeByte = &IID_AsyncIPipeByte_Value; pub const AsyncIPipeByte = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, Begin_Pull: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const AsyncIPipeByte, cRequest: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const AsyncIPipeByte, cRequest: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Finish_Pull: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const AsyncIPipeByte, buf: [*:0]u8, pcReturned: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const AsyncIPipeByte, buf: [*:0]u8, pcReturned: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Begin_Push: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const AsyncIPipeByte, buf: [*:0]u8, cSent: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const AsyncIPipeByte, buf: [*:0]u8, cSent: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Finish_Push: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const AsyncIPipeByte, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const AsyncIPipeByte, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn AsyncIPipeByte_Begin_Pull(self: *const T, cRequest: u32) HRESULT { return @as(*const AsyncIPipeByte.VTable, @ptrCast(self.vtable)).Begin_Pull(@as(*const AsyncIPipeByte, @ptrCast(self)), cRequest); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn AsyncIPipeByte_Finish_Pull(self: *const T, buf: [*:0]u8, pcReturned: ?*u32) HRESULT { return @as(*const AsyncIPipeByte.VTable, @ptrCast(self.vtable)).Finish_Pull(@as(*const AsyncIPipeByte, @ptrCast(self)), buf, pcReturned); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn AsyncIPipeByte_Begin_Push(self: *const T, buf: [*:0]u8, cSent: u32) HRESULT { return @as(*const AsyncIPipeByte.VTable, @ptrCast(self.vtable)).Begin_Push(@as(*const AsyncIPipeByte, @ptrCast(self)), buf, cSent); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn AsyncIPipeByte_Finish_Push(self: *const T) HRESULT { return @as(*const AsyncIPipeByte.VTable, @ptrCast(self.vtable)).Finish_Push(@as(*const AsyncIPipeByte, @ptrCast(self))); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows5.0' const IID_IPipeLong_Value = Guid.initString("db2f3acc-2f86-11d1-8e04-00c04fb9989a"); pub const IID_IPipeLong = &IID_IPipeLong_Value; pub const IPipeLong = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, Pull: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IPipeLong, buf: [*]i32, cRequest: u32, pcReturned: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IPipeLong, buf: [*]i32, cRequest: u32, pcReturned: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Push: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IPipeLong, buf: [*]i32, cSent: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IPipeLong, buf: [*]i32, cSent: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPipeLong_Pull(self: *const T, buf: [*]i32, cRequest: u32, pcReturned: ?*u32) HRESULT { return @as(*const IPipeLong.VTable, @ptrCast(self.vtable)).Pull(@as(*const IPipeLong, @ptrCast(self)), buf, cRequest, pcReturned); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPipeLong_Push(self: *const T, buf: [*]i32, cSent: u32) HRESULT { return @as(*const IPipeLong.VTable, @ptrCast(self.vtable)).Push(@as(*const IPipeLong, @ptrCast(self)), buf, cSent); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_AsyncIPipeLong_Value = Guid.initString("db2f3acd-2f86-11d1-8e04-00c04fb9989a"); pub const IID_AsyncIPipeLong = &IID_AsyncIPipeLong_Value; pub const AsyncIPipeLong = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, Begin_Pull: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const AsyncIPipeLong, cRequest: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const AsyncIPipeLong, cRequest: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Finish_Pull: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const AsyncIPipeLong, buf: [*]i32, pcReturned: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const AsyncIPipeLong, buf: [*]i32, pcReturned: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Begin_Push: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const AsyncIPipeLong, buf: [*]i32, cSent: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const AsyncIPipeLong, buf: [*]i32, cSent: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Finish_Push: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const AsyncIPipeLong, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const AsyncIPipeLong, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn AsyncIPipeLong_Begin_Pull(self: *const T, cRequest: u32) HRESULT { return @as(*const AsyncIPipeLong.VTable, @ptrCast(self.vtable)).Begin_Pull(@as(*const AsyncIPipeLong, @ptrCast(self)), cRequest); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn AsyncIPipeLong_Finish_Pull(self: *const T, buf: [*]i32, pcReturned: ?*u32) HRESULT { return @as(*const AsyncIPipeLong.VTable, @ptrCast(self.vtable)).Finish_Pull(@as(*const AsyncIPipeLong, @ptrCast(self)), buf, pcReturned); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn AsyncIPipeLong_Begin_Push(self: *const T, buf: [*]i32, cSent: u32) HRESULT { return @as(*const AsyncIPipeLong.VTable, @ptrCast(self.vtable)).Begin_Push(@as(*const AsyncIPipeLong, @ptrCast(self)), buf, cSent); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn AsyncIPipeLong_Finish_Push(self: *const T) HRESULT { return @as(*const AsyncIPipeLong.VTable, @ptrCast(self.vtable)).Finish_Push(@as(*const AsyncIPipeLong, @ptrCast(self))); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows5.0' const IID_IPipeDouble_Value = Guid.initString("db2f3ace-2f86-11d1-8e04-00c04fb9989a"); pub const IID_IPipeDouble = &IID_IPipeDouble_Value; pub const IPipeDouble = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, Pull: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IPipeDouble, buf: [*]f64, cRequest: u32, pcReturned: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IPipeDouble, buf: [*]f64, cRequest: u32, pcReturned: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Push: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IPipeDouble, buf: [*]f64, cSent: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IPipeDouble, buf: [*]f64, cSent: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPipeDouble_Pull(self: *const T, buf: [*]f64, cRequest: u32, pcReturned: ?*u32) HRESULT { return @as(*const IPipeDouble.VTable, @ptrCast(self.vtable)).Pull(@as(*const IPipeDouble, @ptrCast(self)), buf, cRequest, pcReturned); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPipeDouble_Push(self: *const T, buf: [*]f64, cSent: u32) HRESULT { return @as(*const IPipeDouble.VTable, @ptrCast(self.vtable)).Push(@as(*const IPipeDouble, @ptrCast(self)), buf, cSent); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_AsyncIPipeDouble_Value = Guid.initString("db2f3acf-2f86-11d1-8e04-00c04fb9989a"); pub const IID_AsyncIPipeDouble = &IID_AsyncIPipeDouble_Value; pub const AsyncIPipeDouble = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, Begin_Pull: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const AsyncIPipeDouble, cRequest: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const AsyncIPipeDouble, cRequest: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Finish_Pull: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const AsyncIPipeDouble, buf: [*]f64, pcReturned: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const AsyncIPipeDouble, buf: [*]f64, pcReturned: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Begin_Push: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const AsyncIPipeDouble, buf: [*]f64, cSent: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const AsyncIPipeDouble, buf: [*]f64, cSent: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Finish_Push: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const AsyncIPipeDouble, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const AsyncIPipeDouble, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn AsyncIPipeDouble_Begin_Pull(self: *const T, cRequest: u32) HRESULT { return @as(*const AsyncIPipeDouble.VTable, @ptrCast(self.vtable)).Begin_Pull(@as(*const AsyncIPipeDouble, @ptrCast(self)), cRequest); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn AsyncIPipeDouble_Finish_Pull(self: *const T, buf: [*]f64, pcReturned: ?*u32) HRESULT { return @as(*const AsyncIPipeDouble.VTable, @ptrCast(self.vtable)).Finish_Pull(@as(*const AsyncIPipeDouble, @ptrCast(self)), buf, pcReturned); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn AsyncIPipeDouble_Begin_Push(self: *const T, buf: [*]f64, cSent: u32) HRESULT { return @as(*const AsyncIPipeDouble.VTable, @ptrCast(self.vtable)).Begin_Push(@as(*const AsyncIPipeDouble, @ptrCast(self)), buf, cSent); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn AsyncIPipeDouble_Finish_Push(self: *const T) HRESULT { return @as(*const AsyncIPipeDouble.VTable, @ptrCast(self.vtable)).Finish_Push(@as(*const AsyncIPipeDouble, @ptrCast(self))); } }; } pub usingnamespace MethodMixin(@This()); }; pub const APTTYPEQUALIFIER = enum(i32) { NONE = 0, IMPLICIT_MTA = 1, NA_ON_MTA = 2, NA_ON_STA = 3, NA_ON_IMPLICIT_MTA = 4, NA_ON_MAINSTA = 5, APPLICATION_STA = 6, RESERVED_1 = 7, }; pub const APTTYPEQUALIFIER_NONE = APTTYPEQUALIFIER.NONE; pub const APTTYPEQUALIFIER_IMPLICIT_MTA = APTTYPEQUALIFIER.IMPLICIT_MTA; pub const APTTYPEQUALIFIER_NA_ON_MTA = APTTYPEQUALIFIER.NA_ON_MTA; pub const APTTYPEQUALIFIER_NA_ON_STA = APTTYPEQUALIFIER.NA_ON_STA; pub const APTTYPEQUALIFIER_NA_ON_IMPLICIT_MTA = APTTYPEQUALIFIER.NA_ON_IMPLICIT_MTA; pub const APTTYPEQUALIFIER_NA_ON_MAINSTA = APTTYPEQUALIFIER.NA_ON_MAINSTA; pub const APTTYPEQUALIFIER_APPLICATION_STA = APTTYPEQUALIFIER.APPLICATION_STA; pub const APTTYPEQUALIFIER_RESERVED_1 = APTTYPEQUALIFIER.RESERVED_1; pub const APTTYPE = enum(i32) { CURRENT = -1, STA = 0, MTA = 1, NA = 2, MAINSTA = 3, }; pub const APTTYPE_CURRENT = APTTYPE.CURRENT; pub const APTTYPE_STA = APTTYPE.STA; pub const APTTYPE_MTA = APTTYPE.MTA; pub const APTTYPE_NA = APTTYPE.NA; pub const APTTYPE_MAINSTA = APTTYPE.MAINSTA; pub const THDTYPE = enum(i32) { BLOCKMESSAGES = 0, PROCESSMESSAGES = 1, }; pub const THDTYPE_BLOCKMESSAGES = THDTYPE.BLOCKMESSAGES; pub const THDTYPE_PROCESSMESSAGES = THDTYPE.PROCESSMESSAGES; // TODO: this type is limited to platform 'windows5.0' const IID_IComThreadingInfo_Value = Guid.initString("000001ce-0000-0000-c000-000000000046"); pub const IID_IComThreadingInfo = &IID_IComThreadingInfo_Value; pub const IComThreadingInfo = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, GetCurrentApartmentType: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IComThreadingInfo, pAptType: ?*APTTYPE, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IComThreadingInfo, pAptType: ?*APTTYPE, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetCurrentThreadType: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IComThreadingInfo, pThreadType: ?*THDTYPE, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IComThreadingInfo, pThreadType: ?*THDTYPE, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetCurrentLogicalThreadId: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IComThreadingInfo, pguidLogicalThreadId: ?*Guid, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IComThreadingInfo, pguidLogicalThreadId: ?*Guid, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetCurrentLogicalThreadId: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IComThreadingInfo, rguid: ?*const Guid, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IComThreadingInfo, rguid: ?*const Guid, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IComThreadingInfo_GetCurrentApartmentType(self: *const T, pAptType: ?*APTTYPE) HRESULT { return @as(*const IComThreadingInfo.VTable, @ptrCast(self.vtable)).GetCurrentApartmentType(@as(*const IComThreadingInfo, @ptrCast(self)), pAptType); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IComThreadingInfo_GetCurrentThreadType(self: *const T, pThreadType: ?*THDTYPE) HRESULT { return @as(*const IComThreadingInfo.VTable, @ptrCast(self.vtable)).GetCurrentThreadType(@as(*const IComThreadingInfo, @ptrCast(self)), pThreadType); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IComThreadingInfo_GetCurrentLogicalThreadId(self: *const T, pguidLogicalThreadId: ?*Guid) HRESULT { return @as(*const IComThreadingInfo.VTable, @ptrCast(self.vtable)).GetCurrentLogicalThreadId(@as(*const IComThreadingInfo, @ptrCast(self)), pguidLogicalThreadId); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IComThreadingInfo_SetCurrentLogicalThreadId(self: *const T, rguid: ?*const Guid) HRESULT { return @as(*const IComThreadingInfo.VTable, @ptrCast(self.vtable)).SetCurrentLogicalThreadId(@as(*const IComThreadingInfo, @ptrCast(self)), rguid); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows5.0' const IID_IProcessInitControl_Value = Guid.initString("72380d55-8d2b-43a3-8513-2b6ef31434e9"); pub const IID_IProcessInitControl = &IID_IProcessInitControl_Value; pub const IProcessInitControl = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, ResetInitializerTimeout: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IProcessInitControl, dwSecondsRemaining: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IProcessInitControl, dwSecondsRemaining: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IProcessInitControl_ResetInitializerTimeout(self: *const T, dwSecondsRemaining: u32) HRESULT { return @as(*const IProcessInitControl.VTable, @ptrCast(self.vtable)).ResetInitializerTimeout(@as(*const IProcessInitControl, @ptrCast(self)), dwSecondsRemaining); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows8.0' const IID_IFastRundown_Value = Guid.initString("00000040-0000-0000-c000-000000000046"); pub const IID_IFastRundown = &IID_IFastRundown_Value; pub const IFastRundown = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); }; } pub usingnamespace MethodMixin(@This()); }; pub const CO_MARSHALING_CONTEXT_ATTRIBUTES = enum(i32) { SOURCE_IS_APP_CONTAINER = 0, CONTEXT_ATTRIBUTE_RESERVED_1 = -2147483648, CONTEXT_ATTRIBUTE_RESERVED_2 = -2147483647, CONTEXT_ATTRIBUTE_RESERVED_3 = -2147483646, CONTEXT_ATTRIBUTE_RESERVED_4 = -2147483645, CONTEXT_ATTRIBUTE_RESERVED_5 = -2147483644, CONTEXT_ATTRIBUTE_RESERVED_6 = -2147483643, CONTEXT_ATTRIBUTE_RESERVED_7 = -2147483642, CONTEXT_ATTRIBUTE_RESERVED_8 = -2147483641, CONTEXT_ATTRIBUTE_RESERVED_9 = -2147483640, CONTEXT_ATTRIBUTE_RESERVED_10 = -2147483639, CONTEXT_ATTRIBUTE_RESERVED_11 = -2147483638, CONTEXT_ATTRIBUTE_RESERVED_12 = -2147483637, CONTEXT_ATTRIBUTE_RESERVED_13 = -2147483636, CONTEXT_ATTRIBUTE_RESERVED_14 = -2147483635, CONTEXT_ATTRIBUTE_RESERVED_15 = -2147483634, CONTEXT_ATTRIBUTE_RESERVED_16 = -2147483633, CONTEXT_ATTRIBUTE_RESERVED_17 = -2147483632, CONTEXT_ATTRIBUTE_RESERVED_18 = -2147483631, }; pub const CO_MARSHALING_SOURCE_IS_APP_CONTAINER = CO_MARSHALING_CONTEXT_ATTRIBUTES.SOURCE_IS_APP_CONTAINER; pub const CO_MARSHALING_CONTEXT_ATTRIBUTE_RESERVED_1 = CO_MARSHALING_CONTEXT_ATTRIBUTES.CONTEXT_ATTRIBUTE_RESERVED_1; pub const CO_MARSHALING_CONTEXT_ATTRIBUTE_RESERVED_2 = CO_MARSHALING_CONTEXT_ATTRIBUTES.CONTEXT_ATTRIBUTE_RESERVED_2; pub const CO_MARSHALING_CONTEXT_ATTRIBUTE_RESERVED_3 = CO_MARSHALING_CONTEXT_ATTRIBUTES.CONTEXT_ATTRIBUTE_RESERVED_3; pub const CO_MARSHALING_CONTEXT_ATTRIBUTE_RESERVED_4 = CO_MARSHALING_CONTEXT_ATTRIBUTES.CONTEXT_ATTRIBUTE_RESERVED_4; pub const CO_MARSHALING_CONTEXT_ATTRIBUTE_RESERVED_5 = CO_MARSHALING_CONTEXT_ATTRIBUTES.CONTEXT_ATTRIBUTE_RESERVED_5; pub const CO_MARSHALING_CONTEXT_ATTRIBUTE_RESERVED_6 = CO_MARSHALING_CONTEXT_ATTRIBUTES.CONTEXT_ATTRIBUTE_RESERVED_6; pub const CO_MARSHALING_CONTEXT_ATTRIBUTE_RESERVED_7 = CO_MARSHALING_CONTEXT_ATTRIBUTES.CONTEXT_ATTRIBUTE_RESERVED_7; pub const CO_MARSHALING_CONTEXT_ATTRIBUTE_RESERVED_8 = CO_MARSHALING_CONTEXT_ATTRIBUTES.CONTEXT_ATTRIBUTE_RESERVED_8; pub const CO_MARSHALING_CONTEXT_ATTRIBUTE_RESERVED_9 = CO_MARSHALING_CONTEXT_ATTRIBUTES.CONTEXT_ATTRIBUTE_RESERVED_9; pub const CO_MARSHALING_CONTEXT_ATTRIBUTE_RESERVED_10 = CO_MARSHALING_CONTEXT_ATTRIBUTES.CONTEXT_ATTRIBUTE_RESERVED_10; pub const CO_MARSHALING_CONTEXT_ATTRIBUTE_RESERVED_11 = CO_MARSHALING_CONTEXT_ATTRIBUTES.CONTEXT_ATTRIBUTE_RESERVED_11; pub const CO_MARSHALING_CONTEXT_ATTRIBUTE_RESERVED_12 = CO_MARSHALING_CONTEXT_ATTRIBUTES.CONTEXT_ATTRIBUTE_RESERVED_12; pub const CO_MARSHALING_CONTEXT_ATTRIBUTE_RESERVED_13 = CO_MARSHALING_CONTEXT_ATTRIBUTES.CONTEXT_ATTRIBUTE_RESERVED_13; pub const CO_MARSHALING_CONTEXT_ATTRIBUTE_RESERVED_14 = CO_MARSHALING_CONTEXT_ATTRIBUTES.CONTEXT_ATTRIBUTE_RESERVED_14; pub const CO_MARSHALING_CONTEXT_ATTRIBUTE_RESERVED_15 = CO_MARSHALING_CONTEXT_ATTRIBUTES.CONTEXT_ATTRIBUTE_RESERVED_15; pub const CO_MARSHALING_CONTEXT_ATTRIBUTE_RESERVED_16 = CO_MARSHALING_CONTEXT_ATTRIBUTES.CONTEXT_ATTRIBUTE_RESERVED_16; pub const CO_MARSHALING_CONTEXT_ATTRIBUTE_RESERVED_17 = CO_MARSHALING_CONTEXT_ATTRIBUTES.CONTEXT_ATTRIBUTE_RESERVED_17; pub const CO_MARSHALING_CONTEXT_ATTRIBUTE_RESERVED_18 = CO_MARSHALING_CONTEXT_ATTRIBUTES.CONTEXT_ATTRIBUTE_RESERVED_18; pub const MachineGlobalObjectTableRegistrationToken__ = extern struct { unused: i32, }; const IID_IMachineGlobalObjectTable_Value = Guid.initString("26d709ac-f70b-4421-a96f-d2878fafb00d"); pub const IID_IMachineGlobalObjectTable = &IID_IMachineGlobalObjectTable_Value; pub const IMachineGlobalObjectTable = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, RegisterObject: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IMachineGlobalObjectTable, clsid: ?*const Guid, identifier: ?[*:0]const u16, object: ?*IUnknown, token: ?*?*MachineGlobalObjectTableRegistrationToken__, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IMachineGlobalObjectTable, clsid: ?*const Guid, identifier: ?[*:0]const u16, object: ?*IUnknown, token: ?*?*MachineGlobalObjectTableRegistrationToken__, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetObject: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IMachineGlobalObjectTable, clsid: ?*const Guid, identifier: ?[*:0]const u16, riid: ?*const Guid, ppv: ?*?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IMachineGlobalObjectTable, clsid: ?*const Guid, identifier: ?[*:0]const u16, riid: ?*const Guid, ppv: ?*?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, RevokeObject: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IMachineGlobalObjectTable, token: ?*MachineGlobalObjectTableRegistrationToken__, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IMachineGlobalObjectTable, token: ?*MachineGlobalObjectTableRegistrationToken__, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMachineGlobalObjectTable_RegisterObject(self: *const T, clsid: ?*const Guid, identifier: ?[*:0]const u16, object: ?*IUnknown, token: ?*?*MachineGlobalObjectTableRegistrationToken__) HRESULT { return @as(*const IMachineGlobalObjectTable.VTable, @ptrCast(self.vtable)).RegisterObject(@as(*const IMachineGlobalObjectTable, @ptrCast(self)), clsid, identifier, object, token); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMachineGlobalObjectTable_GetObject(self: *const T, clsid: ?*const Guid, identifier: ?[*:0]const u16, riid: ?*const Guid, ppv: ?*?*anyopaque) HRESULT { return @as(*const IMachineGlobalObjectTable.VTable, @ptrCast(self.vtable)).GetObject(@as(*const IMachineGlobalObjectTable, @ptrCast(self)), clsid, identifier, riid, ppv); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMachineGlobalObjectTable_RevokeObject(self: *const T, token: ?*MachineGlobalObjectTableRegistrationToken__) HRESULT { return @as(*const IMachineGlobalObjectTable.VTable, @ptrCast(self.vtable)).RevokeObject(@as(*const IMachineGlobalObjectTable, @ptrCast(self)), token); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows5.0' const IID_IMallocSpy_Value = Guid.initString("0000001d-0000-0000-c000-000000000046"); pub const IID_IMallocSpy = &IID_IMallocSpy_Value; pub const IMallocSpy = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, PreAlloc: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IMallocSpy, cbRequest: usize, ) callconv(@import("std").os.windows.WINAPI) usize, else => *const fn ( self: *const IMallocSpy, cbRequest: usize, ) callconv(@import("std").os.windows.WINAPI) usize, }, PostAlloc: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IMallocSpy, pActual: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) ?*anyopaque, else => *const fn ( self: *const IMallocSpy, pActual: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) ?*anyopaque, }, PreFree: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IMallocSpy, pRequest: ?*anyopaque, fSpyed: BOOL, ) callconv(@import("std").os.windows.WINAPI) ?*anyopaque, else => *const fn ( self: *const IMallocSpy, pRequest: ?*anyopaque, fSpyed: BOOL, ) callconv(@import("std").os.windows.WINAPI) ?*anyopaque, }, PostFree: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IMallocSpy, fSpyed: BOOL, ) callconv(@import("std").os.windows.WINAPI) void, else => *const fn ( self: *const IMallocSpy, fSpyed: BOOL, ) callconv(@import("std").os.windows.WINAPI) void, }, PreRealloc: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IMallocSpy, pRequest: ?*anyopaque, cbRequest: usize, ppNewRequest: ?*?*anyopaque, fSpyed: BOOL, ) callconv(@import("std").os.windows.WINAPI) usize, else => *const fn ( self: *const IMallocSpy, pRequest: ?*anyopaque, cbRequest: usize, ppNewRequest: ?*?*anyopaque, fSpyed: BOOL, ) callconv(@import("std").os.windows.WINAPI) usize, }, PostRealloc: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IMallocSpy, pActual: ?*anyopaque, fSpyed: BOOL, ) callconv(@import("std").os.windows.WINAPI) ?*anyopaque, else => *const fn ( self: *const IMallocSpy, pActual: ?*anyopaque, fSpyed: BOOL, ) callconv(@import("std").os.windows.WINAPI) ?*anyopaque, }, PreGetSize: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IMallocSpy, pRequest: ?*anyopaque, fSpyed: BOOL, ) callconv(@import("std").os.windows.WINAPI) ?*anyopaque, else => *const fn ( self: *const IMallocSpy, pRequest: ?*anyopaque, fSpyed: BOOL, ) callconv(@import("std").os.windows.WINAPI) ?*anyopaque, }, PostGetSize: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IMallocSpy, cbActual: usize, fSpyed: BOOL, ) callconv(@import("std").os.windows.WINAPI) usize, else => *const fn ( self: *const IMallocSpy, cbActual: usize, fSpyed: BOOL, ) callconv(@import("std").os.windows.WINAPI) usize, }, PreDidAlloc: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IMallocSpy, pRequest: ?*anyopaque, fSpyed: BOOL, ) callconv(@import("std").os.windows.WINAPI) ?*anyopaque, else => *const fn ( self: *const IMallocSpy, pRequest: ?*anyopaque, fSpyed: BOOL, ) callconv(@import("std").os.windows.WINAPI) ?*anyopaque, }, PostDidAlloc: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IMallocSpy, pRequest: ?*anyopaque, fSpyed: BOOL, fActual: i32, ) callconv(@import("std").os.windows.WINAPI) i32, else => *const fn ( self: *const IMallocSpy, pRequest: ?*anyopaque, fSpyed: BOOL, fActual: i32, ) callconv(@import("std").os.windows.WINAPI) i32, }, PreHeapMinimize: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IMallocSpy, ) callconv(@import("std").os.windows.WINAPI) void, else => *const fn ( self: *const IMallocSpy, ) callconv(@import("std").os.windows.WINAPI) void, }, PostHeapMinimize: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IMallocSpy, ) callconv(@import("std").os.windows.WINAPI) void, else => *const fn ( self: *const IMallocSpy, ) callconv(@import("std").os.windows.WINAPI) void, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMallocSpy_PreAlloc(self: *const T, cbRequest: usize) usize { return @as(*const IMallocSpy.VTable, @ptrCast(self.vtable)).PreAlloc(@as(*const IMallocSpy, @ptrCast(self)), cbRequest); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMallocSpy_PostAlloc(self: *const T, pActual: ?*anyopaque) ?*anyopaque { return @as(*const IMallocSpy.VTable, @ptrCast(self.vtable)).PostAlloc(@as(*const IMallocSpy, @ptrCast(self)), pActual); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMallocSpy_PreFree(self: *const T, pRequest: ?*anyopaque, fSpyed: BOOL) ?*anyopaque { return @as(*const IMallocSpy.VTable, @ptrCast(self.vtable)).PreFree(@as(*const IMallocSpy, @ptrCast(self)), pRequest, fSpyed); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMallocSpy_PostFree(self: *const T, fSpyed: BOOL) void { return @as(*const IMallocSpy.VTable, @ptrCast(self.vtable)).PostFree(@as(*const IMallocSpy, @ptrCast(self)), fSpyed); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMallocSpy_PreRealloc(self: *const T, pRequest: ?*anyopaque, cbRequest: usize, ppNewRequest: ?*?*anyopaque, fSpyed: BOOL) usize { return @as(*const IMallocSpy.VTable, @ptrCast(self.vtable)).PreRealloc(@as(*const IMallocSpy, @ptrCast(self)), pRequest, cbRequest, ppNewRequest, fSpyed); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMallocSpy_PostRealloc(self: *const T, pActual: ?*anyopaque, fSpyed: BOOL) ?*anyopaque { return @as(*const IMallocSpy.VTable, @ptrCast(self.vtable)).PostRealloc(@as(*const IMallocSpy, @ptrCast(self)), pActual, fSpyed); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMallocSpy_PreGetSize(self: *const T, pRequest: ?*anyopaque, fSpyed: BOOL) ?*anyopaque { return @as(*const IMallocSpy.VTable, @ptrCast(self.vtable)).PreGetSize(@as(*const IMallocSpy, @ptrCast(self)), pRequest, fSpyed); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMallocSpy_PostGetSize(self: *const T, cbActual: usize, fSpyed: BOOL) usize { return @as(*const IMallocSpy.VTable, @ptrCast(self.vtable)).PostGetSize(@as(*const IMallocSpy, @ptrCast(self)), cbActual, fSpyed); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMallocSpy_PreDidAlloc(self: *const T, pRequest: ?*anyopaque, fSpyed: BOOL) ?*anyopaque { return @as(*const IMallocSpy.VTable, @ptrCast(self.vtable)).PreDidAlloc(@as(*const IMallocSpy, @ptrCast(self)), pRequest, fSpyed); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMallocSpy_PostDidAlloc(self: *const T, pRequest: ?*anyopaque, fSpyed: BOOL, fActual: i32) i32 { return @as(*const IMallocSpy.VTable, @ptrCast(self.vtable)).PostDidAlloc(@as(*const IMallocSpy, @ptrCast(self)), pRequest, fSpyed, fActual); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMallocSpy_PreHeapMinimize(self: *const T) void { return @as(*const IMallocSpy.VTable, @ptrCast(self.vtable)).PreHeapMinimize(@as(*const IMallocSpy, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMallocSpy_PostHeapMinimize(self: *const T) void { return @as(*const IMallocSpy.VTable, @ptrCast(self.vtable)).PostHeapMinimize(@as(*const IMallocSpy, @ptrCast(self))); } }; } pub usingnamespace MethodMixin(@This()); }; pub const BIND_OPTS = extern struct { cbStruct: u32, grfFlags: u32, grfMode: u32, dwTickCountDeadline: u32, }; pub const BIND_OPTS2 = extern struct { __AnonymousBase_objidl_L9017_C36: BIND_OPTS, dwTrackFlags: u32, dwClassContext: u32, locale: u32, pServerInfo: ?*COSERVERINFO, }; pub const BIND_OPTS3 = extern struct { __AnonymousBase_objidl_L9041_C36: BIND_OPTS2, hwnd: ?HWND, }; pub const BIND_FLAGS = enum(i32) { MAYBOTHERUSER = 1, JUSTTESTEXISTENCE = 2, }; pub const BIND_MAYBOTHERUSER = BIND_FLAGS.MAYBOTHERUSER; pub const BIND_JUSTTESTEXISTENCE = BIND_FLAGS.JUSTTESTEXISTENCE; // TODO: this type is limited to platform 'windows5.0' const IID_IBindCtx_Value = Guid.initString("0000000e-0000-0000-c000-000000000046"); pub const IID_IBindCtx = &IID_IBindCtx_Value; pub const IBindCtx = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, RegisterObjectBound: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IBindCtx, punk: ?*IUnknown, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IBindCtx, punk: ?*IUnknown, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, RevokeObjectBound: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IBindCtx, punk: ?*IUnknown, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IBindCtx, punk: ?*IUnknown, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, ReleaseBoundObjects: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IBindCtx, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IBindCtx, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetBindOptions: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IBindCtx, pbindopts: ?*BIND_OPTS, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IBindCtx, pbindopts: ?*BIND_OPTS, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetBindOptions: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IBindCtx, pbindopts: ?*BIND_OPTS, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IBindCtx, pbindopts: ?*BIND_OPTS, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetRunningObjectTable: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IBindCtx, pprot: ?*?*IRunningObjectTable, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IBindCtx, pprot: ?*?*IRunningObjectTable, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, RegisterObjectParam: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IBindCtx, pszKey: ?PWSTR, punk: ?*IUnknown, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IBindCtx, pszKey: ?PWSTR, punk: ?*IUnknown, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetObjectParam: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IBindCtx, pszKey: ?PWSTR, ppunk: ?*?*IUnknown, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IBindCtx, pszKey: ?PWSTR, ppunk: ?*?*IUnknown, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, EnumObjectParam: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IBindCtx, ppenum: ?*?*IEnumString, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IBindCtx, ppenum: ?*?*IEnumString, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, RevokeObjectParam: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IBindCtx, pszKey: ?PWSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IBindCtx, pszKey: ?PWSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IBindCtx_RegisterObjectBound(self: *const T, punk: ?*IUnknown) HRESULT { return @as(*const IBindCtx.VTable, @ptrCast(self.vtable)).RegisterObjectBound(@as(*const IBindCtx, @ptrCast(self)), punk); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IBindCtx_RevokeObjectBound(self: *const T, punk: ?*IUnknown) HRESULT { return @as(*const IBindCtx.VTable, @ptrCast(self.vtable)).RevokeObjectBound(@as(*const IBindCtx, @ptrCast(self)), punk); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IBindCtx_ReleaseBoundObjects(self: *const T) HRESULT { return @as(*const IBindCtx.VTable, @ptrCast(self.vtable)).ReleaseBoundObjects(@as(*const IBindCtx, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IBindCtx_SetBindOptions(self: *const T, pbindopts: ?*BIND_OPTS) HRESULT { return @as(*const IBindCtx.VTable, @ptrCast(self.vtable)).SetBindOptions(@as(*const IBindCtx, @ptrCast(self)), pbindopts); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IBindCtx_GetBindOptions(self: *const T, pbindopts: ?*BIND_OPTS) HRESULT { return @as(*const IBindCtx.VTable, @ptrCast(self.vtable)).GetBindOptions(@as(*const IBindCtx, @ptrCast(self)), pbindopts); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IBindCtx_GetRunningObjectTable(self: *const T, pprot: ?*?*IRunningObjectTable) HRESULT { return @as(*const IBindCtx.VTable, @ptrCast(self.vtable)).GetRunningObjectTable(@as(*const IBindCtx, @ptrCast(self)), pprot); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IBindCtx_RegisterObjectParam(self: *const T, pszKey: ?PWSTR, punk: ?*IUnknown) HRESULT { return @as(*const IBindCtx.VTable, @ptrCast(self.vtable)).RegisterObjectParam(@as(*const IBindCtx, @ptrCast(self)), pszKey, punk); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IBindCtx_GetObjectParam(self: *const T, pszKey: ?PWSTR, ppunk: ?*?*IUnknown) HRESULT { return @as(*const IBindCtx.VTable, @ptrCast(self.vtable)).GetObjectParam(@as(*const IBindCtx, @ptrCast(self)), pszKey, ppunk); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IBindCtx_EnumObjectParam(self: *const T, ppenum: ?*?*IEnumString) HRESULT { return @as(*const IBindCtx.VTable, @ptrCast(self.vtable)).EnumObjectParam(@as(*const IBindCtx, @ptrCast(self)), ppenum); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IBindCtx_RevokeObjectParam(self: *const T, pszKey: ?PWSTR) HRESULT { return @as(*const IBindCtx.VTable, @ptrCast(self.vtable)).RevokeObjectParam(@as(*const IBindCtx, @ptrCast(self)), pszKey); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows5.0' const IID_IEnumMoniker_Value = Guid.initString("00000102-0000-0000-c000-000000000046"); pub const IID_IEnumMoniker = &IID_IEnumMoniker_Value; pub const IEnumMoniker = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, Next: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IEnumMoniker, celt: u32, rgelt: [*]?*IMoniker, pceltFetched: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IEnumMoniker, celt: u32, rgelt: [*]?*IMoniker, pceltFetched: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Skip: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IEnumMoniker, celt: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IEnumMoniker, celt: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Reset: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IEnumMoniker, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IEnumMoniker, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Clone: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IEnumMoniker, ppenum: ?*?*IEnumMoniker, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IEnumMoniker, ppenum: ?*?*IEnumMoniker, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IEnumMoniker_Next(self: *const T, celt: u32, rgelt: [*]?*IMoniker, pceltFetched: ?*u32) HRESULT { return @as(*const IEnumMoniker.VTable, @ptrCast(self.vtable)).Next(@as(*const IEnumMoniker, @ptrCast(self)), celt, rgelt, pceltFetched); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IEnumMoniker_Skip(self: *const T, celt: u32) HRESULT { return @as(*const IEnumMoniker.VTable, @ptrCast(self.vtable)).Skip(@as(*const IEnumMoniker, @ptrCast(self)), celt); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IEnumMoniker_Reset(self: *const T) HRESULT { return @as(*const IEnumMoniker.VTable, @ptrCast(self.vtable)).Reset(@as(*const IEnumMoniker, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IEnumMoniker_Clone(self: *const T, ppenum: ?*?*IEnumMoniker) HRESULT { return @as(*const IEnumMoniker.VTable, @ptrCast(self.vtable)).Clone(@as(*const IEnumMoniker, @ptrCast(self)), ppenum); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows5.0' const IID_IRunnableObject_Value = Guid.initString("00000126-0000-0000-c000-000000000046"); pub const IID_IRunnableObject = &IID_IRunnableObject_Value; pub const IRunnableObject = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, GetRunningClass: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IRunnableObject, lpClsid: ?*Guid, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IRunnableObject, lpClsid: ?*Guid, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Run: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IRunnableObject, pbc: ?*IBindCtx, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IRunnableObject, pbc: ?*IBindCtx, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, IsRunning: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IRunnableObject, ) callconv(@import("std").os.windows.WINAPI) BOOL, else => *const fn ( self: *const IRunnableObject, ) callconv(@import("std").os.windows.WINAPI) BOOL, }, LockRunning: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IRunnableObject, fLock: BOOL, fLastUnlockCloses: BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IRunnableObject, fLock: BOOL, fLastUnlockCloses: BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetContainedObject: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IRunnableObject, fContained: BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IRunnableObject, fContained: BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRunnableObject_GetRunningClass(self: *const T, lpClsid: ?*Guid) HRESULT { return @as(*const IRunnableObject.VTable, @ptrCast(self.vtable)).GetRunningClass(@as(*const IRunnableObject, @ptrCast(self)), lpClsid); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRunnableObject_Run(self: *const T, pbc: ?*IBindCtx) HRESULT { return @as(*const IRunnableObject.VTable, @ptrCast(self.vtable)).Run(@as(*const IRunnableObject, @ptrCast(self)), pbc); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRunnableObject_IsRunning(self: *const T) BOOL { return @as(*const IRunnableObject.VTable, @ptrCast(self.vtable)).IsRunning(@as(*const IRunnableObject, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRunnableObject_LockRunning(self: *const T, fLock: BOOL, fLastUnlockCloses: BOOL) HRESULT { return @as(*const IRunnableObject.VTable, @ptrCast(self.vtable)).LockRunning(@as(*const IRunnableObject, @ptrCast(self)), fLock, fLastUnlockCloses); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRunnableObject_SetContainedObject(self: *const T, fContained: BOOL) HRESULT { return @as(*const IRunnableObject.VTable, @ptrCast(self.vtable)).SetContainedObject(@as(*const IRunnableObject, @ptrCast(self)), fContained); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows5.0' const IID_IRunningObjectTable_Value = Guid.initString("00000010-0000-0000-c000-000000000046"); pub const IID_IRunningObjectTable = &IID_IRunningObjectTable_Value; pub const IRunningObjectTable = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, Register: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IRunningObjectTable, grfFlags: u32, punkObject: ?*IUnknown, pmkObjectName: ?*IMoniker, pdwRegister: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IRunningObjectTable, grfFlags: u32, punkObject: ?*IUnknown, pmkObjectName: ?*IMoniker, pdwRegister: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Revoke: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IRunningObjectTable, dwRegister: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IRunningObjectTable, dwRegister: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, IsRunning: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IRunningObjectTable, pmkObjectName: ?*IMoniker, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IRunningObjectTable, pmkObjectName: ?*IMoniker, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetObject: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IRunningObjectTable, pmkObjectName: ?*IMoniker, ppunkObject: ?*?*IUnknown, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IRunningObjectTable, pmkObjectName: ?*IMoniker, ppunkObject: ?*?*IUnknown, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, NoteChangeTime: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IRunningObjectTable, dwRegister: u32, pfiletime: ?*FILETIME, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IRunningObjectTable, dwRegister: u32, pfiletime: ?*FILETIME, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetTimeOfLastChange: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IRunningObjectTable, pmkObjectName: ?*IMoniker, pfiletime: ?*FILETIME, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IRunningObjectTable, pmkObjectName: ?*IMoniker, pfiletime: ?*FILETIME, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, EnumRunning: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IRunningObjectTable, ppenumMoniker: ?*?*IEnumMoniker, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IRunningObjectTable, ppenumMoniker: ?*?*IEnumMoniker, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRunningObjectTable_Register(self: *const T, grfFlags: u32, punkObject: ?*IUnknown, pmkObjectName: ?*IMoniker, pdwRegister: ?*u32) HRESULT { return @as(*const IRunningObjectTable.VTable, @ptrCast(self.vtable)).Register(@as(*const IRunningObjectTable, @ptrCast(self)), grfFlags, punkObject, pmkObjectName, pdwRegister); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRunningObjectTable_Revoke(self: *const T, dwRegister: u32) HRESULT { return @as(*const IRunningObjectTable.VTable, @ptrCast(self.vtable)).Revoke(@as(*const IRunningObjectTable, @ptrCast(self)), dwRegister); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRunningObjectTable_IsRunning(self: *const T, pmkObjectName: ?*IMoniker) HRESULT { return @as(*const IRunningObjectTable.VTable, @ptrCast(self.vtable)).IsRunning(@as(*const IRunningObjectTable, @ptrCast(self)), pmkObjectName); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRunningObjectTable_GetObject(self: *const T, pmkObjectName: ?*IMoniker, ppunkObject: ?*?*IUnknown) HRESULT { return @as(*const IRunningObjectTable.VTable, @ptrCast(self.vtable)).GetObject(@as(*const IRunningObjectTable, @ptrCast(self)), pmkObjectName, ppunkObject); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRunningObjectTable_NoteChangeTime(self: *const T, dwRegister: u32, pfiletime: ?*FILETIME) HRESULT { return @as(*const IRunningObjectTable.VTable, @ptrCast(self.vtable)).NoteChangeTime(@as(*const IRunningObjectTable, @ptrCast(self)), dwRegister, pfiletime); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRunningObjectTable_GetTimeOfLastChange(self: *const T, pmkObjectName: ?*IMoniker, pfiletime: ?*FILETIME) HRESULT { return @as(*const IRunningObjectTable.VTable, @ptrCast(self.vtable)).GetTimeOfLastChange(@as(*const IRunningObjectTable, @ptrCast(self)), pmkObjectName, pfiletime); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRunningObjectTable_EnumRunning(self: *const T, ppenumMoniker: ?*?*IEnumMoniker) HRESULT { return @as(*const IRunningObjectTable.VTable, @ptrCast(self.vtable)).EnumRunning(@as(*const IRunningObjectTable, @ptrCast(self)), ppenumMoniker); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows5.0' const IID_IPersist_Value = Guid.initString("0000010c-0000-0000-c000-000000000046"); pub const IID_IPersist = &IID_IPersist_Value; pub const IPersist = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, GetClassID: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IPersist, pClassID: ?*Guid, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IPersist, pClassID: ?*Guid, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPersist_GetClassID(self: *const T, pClassID: ?*Guid) HRESULT { return @as(*const IPersist.VTable, @ptrCast(self.vtable)).GetClassID(@as(*const IPersist, @ptrCast(self)), pClassID); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows5.0' const IID_IPersistStream_Value = Guid.initString("00000109-0000-0000-c000-000000000046"); pub const IID_IPersistStream = &IID_IPersistStream_Value; pub const IPersistStream = extern struct { pub const VTable = extern struct { base: IPersist.VTable, IsDirty: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IPersistStream, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IPersistStream, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Load: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IPersistStream, pStm: ?*IStream, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IPersistStream, pStm: ?*IStream, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Save: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IPersistStream, pStm: ?*IStream, fClearDirty: BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IPersistStream, pStm: ?*IStream, fClearDirty: BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetSizeMax: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IPersistStream, pcbSize: ?*ULARGE_INTEGER, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IPersistStream, pcbSize: ?*ULARGE_INTEGER, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IPersist.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPersistStream_IsDirty(self: *const T) HRESULT { return @as(*const IPersistStream.VTable, @ptrCast(self.vtable)).IsDirty(@as(*const IPersistStream, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPersistStream_Load(self: *const T, pStm: ?*IStream) HRESULT { return @as(*const IPersistStream.VTable, @ptrCast(self.vtable)).Load(@as(*const IPersistStream, @ptrCast(self)), pStm); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPersistStream_Save(self: *const T, pStm: ?*IStream, fClearDirty: BOOL) HRESULT { return @as(*const IPersistStream.VTable, @ptrCast(self.vtable)).Save(@as(*const IPersistStream, @ptrCast(self)), pStm, fClearDirty); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPersistStream_GetSizeMax(self: *const T, pcbSize: ?*ULARGE_INTEGER) HRESULT { return @as(*const IPersistStream.VTable, @ptrCast(self.vtable)).GetSizeMax(@as(*const IPersistStream, @ptrCast(self)), pcbSize); } }; } pub usingnamespace MethodMixin(@This()); }; pub const MKSYS = enum(i32) { NONE = 0, GENERICCOMPOSITE = 1, FILEMONIKER = 2, ANTIMONIKER = 3, ITEMMONIKER = 4, POINTERMONIKER = 5, CLASSMONIKER = 7, OBJREFMONIKER = 8, SESSIONMONIKER = 9, LUAMONIKER = 10, }; pub const MKSYS_NONE = MKSYS.NONE; pub const MKSYS_GENERICCOMPOSITE = MKSYS.GENERICCOMPOSITE; pub const MKSYS_FILEMONIKER = MKSYS.FILEMONIKER; pub const MKSYS_ANTIMONIKER = MKSYS.ANTIMONIKER; pub const MKSYS_ITEMMONIKER = MKSYS.ITEMMONIKER; pub const MKSYS_POINTERMONIKER = MKSYS.POINTERMONIKER; pub const MKSYS_CLASSMONIKER = MKSYS.CLASSMONIKER; pub const MKSYS_OBJREFMONIKER = MKSYS.OBJREFMONIKER; pub const MKSYS_SESSIONMONIKER = MKSYS.SESSIONMONIKER; pub const MKSYS_LUAMONIKER = MKSYS.LUAMONIKER; pub const MKREDUCE = enum(i32) { ONE = 196608, TOUSER = 131072, THROUGHUSER = 65536, ALL = 0, }; pub const MKRREDUCE_ONE = MKREDUCE.ONE; pub const MKRREDUCE_TOUSER = MKREDUCE.TOUSER; pub const MKRREDUCE_THROUGHUSER = MKREDUCE.THROUGHUSER; pub const MKRREDUCE_ALL = MKREDUCE.ALL; // TODO: this type is limited to platform 'windows5.0' const IID_IMoniker_Value = Guid.initString("0000000f-0000-0000-c000-000000000046"); pub const IID_IMoniker = &IID_IMoniker_Value; pub const IMoniker = extern struct { pub const VTable = extern struct { base: IPersistStream.VTable, BindToObject: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IMoniker, pbc: ?*IBindCtx, pmkToLeft: ?*IMoniker, riidResult: ?*const Guid, ppvResult: ?*?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IMoniker, pbc: ?*IBindCtx, pmkToLeft: ?*IMoniker, riidResult: ?*const Guid, ppvResult: ?*?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, BindToStorage: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IMoniker, pbc: ?*IBindCtx, pmkToLeft: ?*IMoniker, riid: ?*const Guid, ppvObj: ?*?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IMoniker, pbc: ?*IBindCtx, pmkToLeft: ?*IMoniker, riid: ?*const Guid, ppvObj: ?*?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Reduce: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IMoniker, pbc: ?*IBindCtx, dwReduceHowFar: u32, ppmkToLeft: ?*?*IMoniker, ppmkReduced: ?*?*IMoniker, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IMoniker, pbc: ?*IBindCtx, dwReduceHowFar: u32, ppmkToLeft: ?*?*IMoniker, ppmkReduced: ?*?*IMoniker, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, ComposeWith: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IMoniker, pmkRight: ?*IMoniker, fOnlyIfNotGeneric: BOOL, ppmkComposite: ?*?*IMoniker, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IMoniker, pmkRight: ?*IMoniker, fOnlyIfNotGeneric: BOOL, ppmkComposite: ?*?*IMoniker, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Enum: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IMoniker, fForward: BOOL, ppenumMoniker: ?*?*IEnumMoniker, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IMoniker, fForward: BOOL, ppenumMoniker: ?*?*IEnumMoniker, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, IsEqual: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IMoniker, pmkOtherMoniker: ?*IMoniker, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IMoniker, pmkOtherMoniker: ?*IMoniker, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Hash: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IMoniker, pdwHash: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IMoniker, pdwHash: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, IsRunning: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IMoniker, pbc: ?*IBindCtx, pmkToLeft: ?*IMoniker, pmkNewlyRunning: ?*IMoniker, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IMoniker, pbc: ?*IBindCtx, pmkToLeft: ?*IMoniker, pmkNewlyRunning: ?*IMoniker, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetTimeOfLastChange: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IMoniker, pbc: ?*IBindCtx, pmkToLeft: ?*IMoniker, pFileTime: ?*FILETIME, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IMoniker, pbc: ?*IBindCtx, pmkToLeft: ?*IMoniker, pFileTime: ?*FILETIME, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Inverse: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IMoniker, ppmk: ?*?*IMoniker, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IMoniker, ppmk: ?*?*IMoniker, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, CommonPrefixWith: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IMoniker, pmkOther: ?*IMoniker, ppmkPrefix: ?*?*IMoniker, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IMoniker, pmkOther: ?*IMoniker, ppmkPrefix: ?*?*IMoniker, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, RelativePathTo: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IMoniker, pmkOther: ?*IMoniker, ppmkRelPath: ?*?*IMoniker, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IMoniker, pmkOther: ?*IMoniker, ppmkRelPath: ?*?*IMoniker, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetDisplayName: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IMoniker, pbc: ?*IBindCtx, pmkToLeft: ?*IMoniker, ppszDisplayName: ?*?PWSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IMoniker, pbc: ?*IBindCtx, pmkToLeft: ?*IMoniker, ppszDisplayName: ?*?PWSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, ParseDisplayName: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IMoniker, pbc: ?*IBindCtx, pmkToLeft: ?*IMoniker, pszDisplayName: ?PWSTR, pchEaten: ?*u32, ppmkOut: ?*?*IMoniker, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IMoniker, pbc: ?*IBindCtx, pmkToLeft: ?*IMoniker, pszDisplayName: ?PWSTR, pchEaten: ?*u32, ppmkOut: ?*?*IMoniker, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, IsSystemMoniker: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IMoniker, pdwMksys: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IMoniker, pdwMksys: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IPersistStream.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMoniker_BindToObject(self: *const T, pbc: ?*IBindCtx, pmkToLeft: ?*IMoniker, riidResult: ?*const Guid, ppvResult: ?*?*anyopaque) HRESULT { return @as(*const IMoniker.VTable, @ptrCast(self.vtable)).BindToObject(@as(*const IMoniker, @ptrCast(self)), pbc, pmkToLeft, riidResult, ppvResult); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMoniker_BindToStorage(self: *const T, pbc: ?*IBindCtx, pmkToLeft: ?*IMoniker, riid: ?*const Guid, ppvObj: ?*?*anyopaque) HRESULT { return @as(*const IMoniker.VTable, @ptrCast(self.vtable)).BindToStorage(@as(*const IMoniker, @ptrCast(self)), pbc, pmkToLeft, riid, ppvObj); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMoniker_Reduce(self: *const T, pbc: ?*IBindCtx, dwReduceHowFar: u32, ppmkToLeft: ?*?*IMoniker, ppmkReduced: ?*?*IMoniker) HRESULT { return @as(*const IMoniker.VTable, @ptrCast(self.vtable)).Reduce(@as(*const IMoniker, @ptrCast(self)), pbc, dwReduceHowFar, ppmkToLeft, ppmkReduced); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMoniker_ComposeWith(self: *const T, pmkRight: ?*IMoniker, fOnlyIfNotGeneric: BOOL, ppmkComposite: ?*?*IMoniker) HRESULT { return @as(*const IMoniker.VTable, @ptrCast(self.vtable)).ComposeWith(@as(*const IMoniker, @ptrCast(self)), pmkRight, fOnlyIfNotGeneric, ppmkComposite); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMoniker_Enum(self: *const T, fForward: BOOL, ppenumMoniker: ?*?*IEnumMoniker) HRESULT { return @as(*const IMoniker.VTable, @ptrCast(self.vtable)).Enum(@as(*const IMoniker, @ptrCast(self)), fForward, ppenumMoniker); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMoniker_IsEqual(self: *const T, pmkOtherMoniker: ?*IMoniker) HRESULT { return @as(*const IMoniker.VTable, @ptrCast(self.vtable)).IsEqual(@as(*const IMoniker, @ptrCast(self)), pmkOtherMoniker); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMoniker_Hash(self: *const T, pdwHash: ?*u32) HRESULT { return @as(*const IMoniker.VTable, @ptrCast(self.vtable)).Hash(@as(*const IMoniker, @ptrCast(self)), pdwHash); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMoniker_IsRunning(self: *const T, pbc: ?*IBindCtx, pmkToLeft: ?*IMoniker, pmkNewlyRunning: ?*IMoniker) HRESULT { return @as(*const IMoniker.VTable, @ptrCast(self.vtable)).IsRunning(@as(*const IMoniker, @ptrCast(self)), pbc, pmkToLeft, pmkNewlyRunning); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMoniker_GetTimeOfLastChange(self: *const T, pbc: ?*IBindCtx, pmkToLeft: ?*IMoniker, pFileTime: ?*FILETIME) HRESULT { return @as(*const IMoniker.VTable, @ptrCast(self.vtable)).GetTimeOfLastChange(@as(*const IMoniker, @ptrCast(self)), pbc, pmkToLeft, pFileTime); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMoniker_Inverse(self: *const T, ppmk: ?*?*IMoniker) HRESULT { return @as(*const IMoniker.VTable, @ptrCast(self.vtable)).Inverse(@as(*const IMoniker, @ptrCast(self)), ppmk); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMoniker_CommonPrefixWith(self: *const T, pmkOther: ?*IMoniker, ppmkPrefix: ?*?*IMoniker) HRESULT { return @as(*const IMoniker.VTable, @ptrCast(self.vtable)).CommonPrefixWith(@as(*const IMoniker, @ptrCast(self)), pmkOther, ppmkPrefix); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMoniker_RelativePathTo(self: *const T, pmkOther: ?*IMoniker, ppmkRelPath: ?*?*IMoniker) HRESULT { return @as(*const IMoniker.VTable, @ptrCast(self.vtable)).RelativePathTo(@as(*const IMoniker, @ptrCast(self)), pmkOther, ppmkRelPath); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMoniker_GetDisplayName(self: *const T, pbc: ?*IBindCtx, pmkToLeft: ?*IMoniker, ppszDisplayName: ?*?PWSTR) HRESULT { return @as(*const IMoniker.VTable, @ptrCast(self.vtable)).GetDisplayName(@as(*const IMoniker, @ptrCast(self)), pbc, pmkToLeft, ppszDisplayName); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMoniker_ParseDisplayName(self: *const T, pbc: ?*IBindCtx, pmkToLeft: ?*IMoniker, pszDisplayName: ?PWSTR, pchEaten: ?*u32, ppmkOut: ?*?*IMoniker) HRESULT { return @as(*const IMoniker.VTable, @ptrCast(self.vtable)).ParseDisplayName(@as(*const IMoniker, @ptrCast(self)), pbc, pmkToLeft, pszDisplayName, pchEaten, ppmkOut); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMoniker_IsSystemMoniker(self: *const T, pdwMksys: ?*u32) HRESULT { return @as(*const IMoniker.VTable, @ptrCast(self.vtable)).IsSystemMoniker(@as(*const IMoniker, @ptrCast(self)), pdwMksys); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows5.0' const IID_IROTData_Value = Guid.initString("f29f6bc0-5021-11ce-aa15-00006901293f"); pub const IID_IROTData = &IID_IROTData_Value; pub const IROTData = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, GetComparisonData: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IROTData, pbData: [*:0]u8, cbMax: u32, pcbData: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IROTData, pbData: [*:0]u8, cbMax: u32, pcbData: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IROTData_GetComparisonData(self: *const T, pbData: [*:0]u8, cbMax: u32, pcbData: ?*u32) HRESULT { return @as(*const IROTData.VTable, @ptrCast(self.vtable)).GetComparisonData(@as(*const IROTData, @ptrCast(self)), pbData, cbMax, pcbData); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows5.0' const IID_IPersistFile_Value = Guid.initString("0000010b-0000-0000-c000-000000000046"); pub const IID_IPersistFile = &IID_IPersistFile_Value; pub const IPersistFile = extern struct { pub const VTable = extern struct { base: IPersist.VTable, IsDirty: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IPersistFile, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IPersistFile, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Load: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IPersistFile, pszFileName: ?[*:0]const u16, dwMode: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IPersistFile, pszFileName: ?[*:0]const u16, dwMode: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Save: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IPersistFile, pszFileName: ?[*:0]const u16, fRemember: BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IPersistFile, pszFileName: ?[*:0]const u16, fRemember: BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SaveCompleted: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IPersistFile, pszFileName: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IPersistFile, pszFileName: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetCurFile: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IPersistFile, ppszFileName: ?*?PWSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IPersistFile, ppszFileName: ?*?PWSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IPersist.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPersistFile_IsDirty(self: *const T) HRESULT { return @as(*const IPersistFile.VTable, @ptrCast(self.vtable)).IsDirty(@as(*const IPersistFile, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPersistFile_Load(self: *const T, pszFileName: ?[*:0]const u16, dwMode: u32) HRESULT { return @as(*const IPersistFile.VTable, @ptrCast(self.vtable)).Load(@as(*const IPersistFile, @ptrCast(self)), pszFileName, dwMode); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPersistFile_Save(self: *const T, pszFileName: ?[*:0]const u16, fRemember: BOOL) HRESULT { return @as(*const IPersistFile.VTable, @ptrCast(self.vtable)).Save(@as(*const IPersistFile, @ptrCast(self)), pszFileName, fRemember); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPersistFile_SaveCompleted(self: *const T, pszFileName: ?[*:0]const u16) HRESULT { return @as(*const IPersistFile.VTable, @ptrCast(self.vtable)).SaveCompleted(@as(*const IPersistFile, @ptrCast(self)), pszFileName); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPersistFile_GetCurFile(self: *const T, ppszFileName: ?*?PWSTR) HRESULT { return @as(*const IPersistFile.VTable, @ptrCast(self.vtable)).GetCurFile(@as(*const IPersistFile, @ptrCast(self)), ppszFileName); } }; } pub usingnamespace MethodMixin(@This()); }; pub const DVTARGETDEVICE = extern struct { tdSize: u32, tdDriverNameOffset: u16, tdDeviceNameOffset: u16, tdPortNameOffset: u16, tdExtDevmodeOffset: u16, tdData: [1]u8, }; pub const FORMATETC = extern struct { cfFormat: u16, ptd: ?*DVTARGETDEVICE, dwAspect: u32, lindex: i32, tymed: u32, }; // TODO: this type is limited to platform 'windows5.0' const IID_IEnumFORMATETC_Value = Guid.initString("00000103-0000-0000-c000-000000000046"); pub const IID_IEnumFORMATETC = &IID_IEnumFORMATETC_Value; pub const IEnumFORMATETC = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, Next: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IEnumFORMATETC, celt: u32, rgelt: [*]FORMATETC, pceltFetched: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IEnumFORMATETC, celt: u32, rgelt: [*]FORMATETC, pceltFetched: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Skip: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IEnumFORMATETC, celt: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IEnumFORMATETC, celt: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Reset: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IEnumFORMATETC, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IEnumFORMATETC, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Clone: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IEnumFORMATETC, ppenum: ?*?*IEnumFORMATETC, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IEnumFORMATETC, ppenum: ?*?*IEnumFORMATETC, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IEnumFORMATETC_Next(self: *const T, celt: u32, rgelt: [*]FORMATETC, pceltFetched: ?*u32) HRESULT { return @as(*const IEnumFORMATETC.VTable, @ptrCast(self.vtable)).Next(@as(*const IEnumFORMATETC, @ptrCast(self)), celt, rgelt, pceltFetched); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IEnumFORMATETC_Skip(self: *const T, celt: u32) HRESULT { return @as(*const IEnumFORMATETC.VTable, @ptrCast(self.vtable)).Skip(@as(*const IEnumFORMATETC, @ptrCast(self)), celt); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IEnumFORMATETC_Reset(self: *const T) HRESULT { return @as(*const IEnumFORMATETC.VTable, @ptrCast(self.vtable)).Reset(@as(*const IEnumFORMATETC, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IEnumFORMATETC_Clone(self: *const T, ppenum: ?*?*IEnumFORMATETC) HRESULT { return @as(*const IEnumFORMATETC.VTable, @ptrCast(self.vtable)).Clone(@as(*const IEnumFORMATETC, @ptrCast(self)), ppenum); } }; } pub usingnamespace MethodMixin(@This()); }; pub const ADVF = enum(i32) { _NODATA = 1, _PRIMEFIRST = 2, _ONLYONCE = 4, _DATAONSTOP = 64, CACHE_NOHANDLER = 8, CACHE_FORCEBUILTIN = 16, CACHE_ONSAVE = 32, }; pub const ADVF_NODATA = ADVF._NODATA; pub const ADVF_PRIMEFIRST = ADVF._PRIMEFIRST; pub const ADVF_ONLYONCE = ADVF._ONLYONCE; pub const ADVF_DATAONSTOP = ADVF._DATAONSTOP; pub const ADVFCACHE_NOHANDLER = ADVF.CACHE_NOHANDLER; pub const ADVFCACHE_FORCEBUILTIN = ADVF.CACHE_FORCEBUILTIN; pub const ADVFCACHE_ONSAVE = ADVF.CACHE_ONSAVE; pub const STATDATA = extern struct { formatetc: FORMATETC, advf: u32, pAdvSink: ?*IAdviseSink, dwConnection: u32, }; // TODO: this type is limited to platform 'windows5.0' const IID_IEnumSTATDATA_Value = Guid.initString("00000105-0000-0000-c000-000000000046"); pub const IID_IEnumSTATDATA = &IID_IEnumSTATDATA_Value; pub const IEnumSTATDATA = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, Next: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IEnumSTATDATA, celt: u32, rgelt: [*]STATDATA, pceltFetched: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IEnumSTATDATA, celt: u32, rgelt: [*]STATDATA, pceltFetched: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Skip: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IEnumSTATDATA, celt: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IEnumSTATDATA, celt: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Reset: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IEnumSTATDATA, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IEnumSTATDATA, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Clone: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IEnumSTATDATA, ppenum: ?*?*IEnumSTATDATA, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IEnumSTATDATA, ppenum: ?*?*IEnumSTATDATA, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IEnumSTATDATA_Next(self: *const T, celt: u32, rgelt: [*]STATDATA, pceltFetched: ?*u32) HRESULT { return @as(*const IEnumSTATDATA.VTable, @ptrCast(self.vtable)).Next(@as(*const IEnumSTATDATA, @ptrCast(self)), celt, rgelt, pceltFetched); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IEnumSTATDATA_Skip(self: *const T, celt: u32) HRESULT { return @as(*const IEnumSTATDATA.VTable, @ptrCast(self.vtable)).Skip(@as(*const IEnumSTATDATA, @ptrCast(self)), celt); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IEnumSTATDATA_Reset(self: *const T) HRESULT { return @as(*const IEnumSTATDATA.VTable, @ptrCast(self.vtable)).Reset(@as(*const IEnumSTATDATA, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IEnumSTATDATA_Clone(self: *const T, ppenum: ?*?*IEnumSTATDATA) HRESULT { return @as(*const IEnumSTATDATA.VTable, @ptrCast(self.vtable)).Clone(@as(*const IEnumSTATDATA, @ptrCast(self)), ppenum); } }; } pub usingnamespace MethodMixin(@This()); }; pub const TYMED = enum(i32) { HGLOBAL = 1, FILE = 2, ISTREAM = 4, ISTORAGE = 8, GDI = 16, MFPICT = 32, ENHMF = 64, NULL = 0, }; pub const TYMED_HGLOBAL = TYMED.HGLOBAL; pub const TYMED_FILE = TYMED.FILE; pub const TYMED_ISTREAM = TYMED.ISTREAM; pub const TYMED_ISTORAGE = TYMED.ISTORAGE; pub const TYMED_GDI = TYMED.GDI; pub const TYMED_MFPICT = TYMED.MFPICT; pub const TYMED_ENHMF = TYMED.ENHMF; pub const TYMED_NULL = TYMED.NULL; pub const RemSTGMEDIUM = extern struct { tymed: u32, dwHandleType: u32, pData: u32, pUnkForRelease: u32, cbData: u32, data: [1]u8, }; pub const STGMEDIUM = extern struct { tymed: u32, Anonymous: extern union { hBitmap: ?HBITMAP, hMetaFilePict: ?*anyopaque, hEnhMetaFile: ?HENHMETAFILE, hGlobal: isize, lpszFileName: ?PWSTR, pstm: ?*IStream, pstg: ?*IStorage, }, pUnkForRelease: ?*IUnknown, }; pub const GDI_OBJECT = extern struct { ObjectType: u32, u: extern struct { hBitmap: ?*userHBITMAP, hPalette: ?*userHPALETTE, hGeneric: ?*userHGLOBAL, }, }; pub const userSTGMEDIUM = extern struct { pub const _STGMEDIUM_UNION = extern struct { tymed: u32, u: extern struct { hMetaFilePict: ?*userHMETAFILEPICT, hHEnhMetaFile: ?*userHENHMETAFILE, hGdiHandle: ?*GDI_OBJECT, hGlobal: ?*userHGLOBAL, lpszFileName: ?PWSTR, pstm: ?*BYTE_BLOB, pstg: ?*BYTE_BLOB, }, }; pUnkForRelease: ?*IUnknown, }; pub const userFLAG_STGMEDIUM = extern struct { ContextFlags: i32, fPassOwnership: i32, Stgmed: userSTGMEDIUM, }; pub const FLAG_STGMEDIUM = extern struct { ContextFlags: i32, fPassOwnership: i32, Stgmed: STGMEDIUM, }; // TODO: this type is limited to platform 'windows5.0' const IID_IAdviseSink_Value = Guid.initString("0000010f-0000-0000-c000-000000000046"); pub const IID_IAdviseSink = &IID_IAdviseSink_Value; pub const IAdviseSink = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, OnDataChange: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IAdviseSink, pFormatetc: ?*FORMATETC, pStgmed: ?*STGMEDIUM, ) callconv(@import("std").os.windows.WINAPI) void, else => *const fn ( self: *const IAdviseSink, pFormatetc: ?*FORMATETC, pStgmed: ?*STGMEDIUM, ) callconv(@import("std").os.windows.WINAPI) void, }, OnViewChange: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IAdviseSink, dwAspect: u32, lindex: i32, ) callconv(@import("std").os.windows.WINAPI) void, else => *const fn ( self: *const IAdviseSink, dwAspect: u32, lindex: i32, ) callconv(@import("std").os.windows.WINAPI) void, }, OnRename: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IAdviseSink, pmk: ?*IMoniker, ) callconv(@import("std").os.windows.WINAPI) void, else => *const fn ( self: *const IAdviseSink, pmk: ?*IMoniker, ) callconv(@import("std").os.windows.WINAPI) void, }, OnSave: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IAdviseSink, ) callconv(@import("std").os.windows.WINAPI) void, else => *const fn ( self: *const IAdviseSink, ) callconv(@import("std").os.windows.WINAPI) void, }, OnClose: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IAdviseSink, ) callconv(@import("std").os.windows.WINAPI) void, else => *const fn ( self: *const IAdviseSink, ) callconv(@import("std").os.windows.WINAPI) void, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IAdviseSink_OnDataChange(self: *const T, pFormatetc: ?*FORMATETC, pStgmed: ?*STGMEDIUM) void { return @as(*const IAdviseSink.VTable, @ptrCast(self.vtable)).OnDataChange(@as(*const IAdviseSink, @ptrCast(self)), pFormatetc, pStgmed); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IAdviseSink_OnViewChange(self: *const T, dwAspect: u32, lindex: i32) void { return @as(*const IAdviseSink.VTable, @ptrCast(self.vtable)).OnViewChange(@as(*const IAdviseSink, @ptrCast(self)), dwAspect, lindex); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IAdviseSink_OnRename(self: *const T, pmk: ?*IMoniker) void { return @as(*const IAdviseSink.VTable, @ptrCast(self.vtable)).OnRename(@as(*const IAdviseSink, @ptrCast(self)), pmk); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IAdviseSink_OnSave(self: *const T) void { return @as(*const IAdviseSink.VTable, @ptrCast(self.vtable)).OnSave(@as(*const IAdviseSink, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IAdviseSink_OnClose(self: *const T) void { return @as(*const IAdviseSink.VTable, @ptrCast(self.vtable)).OnClose(@as(*const IAdviseSink, @ptrCast(self))); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_AsyncIAdviseSink_Value = Guid.initString("00000150-0000-0000-c000-000000000046"); pub const IID_AsyncIAdviseSink = &IID_AsyncIAdviseSink_Value; pub const AsyncIAdviseSink = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, Begin_OnDataChange: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const AsyncIAdviseSink, pFormatetc: ?*FORMATETC, pStgmed: ?*STGMEDIUM, ) callconv(@import("std").os.windows.WINAPI) void, else => *const fn ( self: *const AsyncIAdviseSink, pFormatetc: ?*FORMATETC, pStgmed: ?*STGMEDIUM, ) callconv(@import("std").os.windows.WINAPI) void, }, Finish_OnDataChange: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const AsyncIAdviseSink, ) callconv(@import("std").os.windows.WINAPI) void, else => *const fn ( self: *const AsyncIAdviseSink, ) callconv(@import("std").os.windows.WINAPI) void, }, Begin_OnViewChange: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const AsyncIAdviseSink, dwAspect: u32, lindex: i32, ) callconv(@import("std").os.windows.WINAPI) void, else => *const fn ( self: *const AsyncIAdviseSink, dwAspect: u32, lindex: i32, ) callconv(@import("std").os.windows.WINAPI) void, }, Finish_OnViewChange: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const AsyncIAdviseSink, ) callconv(@import("std").os.windows.WINAPI) void, else => *const fn ( self: *const AsyncIAdviseSink, ) callconv(@import("std").os.windows.WINAPI) void, }, Begin_OnRename: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const AsyncIAdviseSink, pmk: ?*IMoniker, ) callconv(@import("std").os.windows.WINAPI) void, else => *const fn ( self: *const AsyncIAdviseSink, pmk: ?*IMoniker, ) callconv(@import("std").os.windows.WINAPI) void, }, Finish_OnRename: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const AsyncIAdviseSink, ) callconv(@import("std").os.windows.WINAPI) void, else => *const fn ( self: *const AsyncIAdviseSink, ) callconv(@import("std").os.windows.WINAPI) void, }, Begin_OnSave: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const AsyncIAdviseSink, ) callconv(@import("std").os.windows.WINAPI) void, else => *const fn ( self: *const AsyncIAdviseSink, ) callconv(@import("std").os.windows.WINAPI) void, }, Finish_OnSave: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const AsyncIAdviseSink, ) callconv(@import("std").os.windows.WINAPI) void, else => *const fn ( self: *const AsyncIAdviseSink, ) callconv(@import("std").os.windows.WINAPI) void, }, Begin_OnClose: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const AsyncIAdviseSink, ) callconv(@import("std").os.windows.WINAPI) void, else => *const fn ( self: *const AsyncIAdviseSink, ) callconv(@import("std").os.windows.WINAPI) void, }, Finish_OnClose: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const AsyncIAdviseSink, ) callconv(@import("std").os.windows.WINAPI) void, else => *const fn ( self: *const AsyncIAdviseSink, ) callconv(@import("std").os.windows.WINAPI) void, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn AsyncIAdviseSink_Begin_OnDataChange(self: *const T, pFormatetc: ?*FORMATETC, pStgmed: ?*STGMEDIUM) void { return @as(*const AsyncIAdviseSink.VTable, @ptrCast(self.vtable)).Begin_OnDataChange(@as(*const AsyncIAdviseSink, @ptrCast(self)), pFormatetc, pStgmed); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn AsyncIAdviseSink_Finish_OnDataChange(self: *const T) void { return @as(*const AsyncIAdviseSink.VTable, @ptrCast(self.vtable)).Finish_OnDataChange(@as(*const AsyncIAdviseSink, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn AsyncIAdviseSink_Begin_OnViewChange(self: *const T, dwAspect: u32, lindex: i32) void { return @as(*const AsyncIAdviseSink.VTable, @ptrCast(self.vtable)).Begin_OnViewChange(@as(*const AsyncIAdviseSink, @ptrCast(self)), dwAspect, lindex); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn AsyncIAdviseSink_Finish_OnViewChange(self: *const T) void { return @as(*const AsyncIAdviseSink.VTable, @ptrCast(self.vtable)).Finish_OnViewChange(@as(*const AsyncIAdviseSink, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn AsyncIAdviseSink_Begin_OnRename(self: *const T, pmk: ?*IMoniker) void { return @as(*const AsyncIAdviseSink.VTable, @ptrCast(self.vtable)).Begin_OnRename(@as(*const AsyncIAdviseSink, @ptrCast(self)), pmk); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn AsyncIAdviseSink_Finish_OnRename(self: *const T) void { return @as(*const AsyncIAdviseSink.VTable, @ptrCast(self.vtable)).Finish_OnRename(@as(*const AsyncIAdviseSink, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn AsyncIAdviseSink_Begin_OnSave(self: *const T) void { return @as(*const AsyncIAdviseSink.VTable, @ptrCast(self.vtable)).Begin_OnSave(@as(*const AsyncIAdviseSink, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn AsyncIAdviseSink_Finish_OnSave(self: *const T) void { return @as(*const AsyncIAdviseSink.VTable, @ptrCast(self.vtable)).Finish_OnSave(@as(*const AsyncIAdviseSink, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn AsyncIAdviseSink_Begin_OnClose(self: *const T) void { return @as(*const AsyncIAdviseSink.VTable, @ptrCast(self.vtable)).Begin_OnClose(@as(*const AsyncIAdviseSink, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn AsyncIAdviseSink_Finish_OnClose(self: *const T) void { return @as(*const AsyncIAdviseSink.VTable, @ptrCast(self.vtable)).Finish_OnClose(@as(*const AsyncIAdviseSink, @ptrCast(self))); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows5.0' const IID_IAdviseSink2_Value = Guid.initString("00000125-0000-0000-c000-000000000046"); pub const IID_IAdviseSink2 = &IID_IAdviseSink2_Value; pub const IAdviseSink2 = extern struct { pub const VTable = extern struct { base: IAdviseSink.VTable, OnLinkSrcChange: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IAdviseSink2, pmk: ?*IMoniker, ) callconv(@import("std").os.windows.WINAPI) void, else => *const fn ( self: *const IAdviseSink2, pmk: ?*IMoniker, ) callconv(@import("std").os.windows.WINAPI) void, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IAdviseSink.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IAdviseSink2_OnLinkSrcChange(self: *const T, pmk: ?*IMoniker) void { return @as(*const IAdviseSink2.VTable, @ptrCast(self.vtable)).OnLinkSrcChange(@as(*const IAdviseSink2, @ptrCast(self)), pmk); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_AsyncIAdviseSink2_Value = Guid.initString("00000151-0000-0000-c000-000000000046"); pub const IID_AsyncIAdviseSink2 = &IID_AsyncIAdviseSink2_Value; pub const AsyncIAdviseSink2 = extern struct { pub const VTable = extern struct { base: AsyncIAdviseSink.VTable, Begin_OnLinkSrcChange: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const AsyncIAdviseSink2, pmk: ?*IMoniker, ) callconv(@import("std").os.windows.WINAPI) void, else => *const fn ( self: *const AsyncIAdviseSink2, pmk: ?*IMoniker, ) callconv(@import("std").os.windows.WINAPI) void, }, Finish_OnLinkSrcChange: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const AsyncIAdviseSink2, ) callconv(@import("std").os.windows.WINAPI) void, else => *const fn ( self: *const AsyncIAdviseSink2, ) callconv(@import("std").os.windows.WINAPI) void, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace AsyncIAdviseSink.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn AsyncIAdviseSink2_Begin_OnLinkSrcChange(self: *const T, pmk: ?*IMoniker) void { return @as(*const AsyncIAdviseSink2.VTable, @ptrCast(self.vtable)).Begin_OnLinkSrcChange(@as(*const AsyncIAdviseSink2, @ptrCast(self)), pmk); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn AsyncIAdviseSink2_Finish_OnLinkSrcChange(self: *const T) void { return @as(*const AsyncIAdviseSink2.VTable, @ptrCast(self.vtable)).Finish_OnLinkSrcChange(@as(*const AsyncIAdviseSink2, @ptrCast(self))); } }; } pub usingnamespace MethodMixin(@This()); }; pub const DATADIR = enum(i32) { GET = 1, SET = 2, }; pub const DATADIR_GET = DATADIR.GET; pub const DATADIR_SET = DATADIR.SET; // TODO: this type is limited to platform 'windows5.0' const IID_IDataObject_Value = Guid.initString("0000010e-0000-0000-c000-000000000046"); pub const IID_IDataObject = &IID_IDataObject_Value; pub const IDataObject = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, GetData: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDataObject, pformatetcIn: ?*FORMATETC, pmedium: ?*STGMEDIUM, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDataObject, pformatetcIn: ?*FORMATETC, pmedium: ?*STGMEDIUM, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetDataHere: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDataObject, pformatetc: ?*FORMATETC, pmedium: ?*STGMEDIUM, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDataObject, pformatetc: ?*FORMATETC, pmedium: ?*STGMEDIUM, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, QueryGetData: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDataObject, pformatetc: ?*FORMATETC, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDataObject, pformatetc: ?*FORMATETC, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetCanonicalFormatEtc: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDataObject, pformatectIn: ?*FORMATETC, pformatetcOut: ?*FORMATETC, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDataObject, pformatectIn: ?*FORMATETC, pformatetcOut: ?*FORMATETC, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetData: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDataObject, pformatetc: ?*FORMATETC, pmedium: ?*STGMEDIUM, fRelease: BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDataObject, pformatetc: ?*FORMATETC, pmedium: ?*STGMEDIUM, fRelease: BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, EnumFormatEtc: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDataObject, dwDirection: u32, ppenumFormatEtc: ?*?*IEnumFORMATETC, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDataObject, dwDirection: u32, ppenumFormatEtc: ?*?*IEnumFORMATETC, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, DAdvise: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDataObject, pformatetc: ?*FORMATETC, advf: u32, pAdvSink: ?*IAdviseSink, pdwConnection: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDataObject, pformatetc: ?*FORMATETC, advf: u32, pAdvSink: ?*IAdviseSink, pdwConnection: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, DUnadvise: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDataObject, dwConnection: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDataObject, dwConnection: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, EnumDAdvise: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDataObject, ppenumAdvise: ?*?*IEnumSTATDATA, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDataObject, ppenumAdvise: ?*?*IEnumSTATDATA, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDataObject_GetData(self: *const T, pformatetcIn: ?*FORMATETC, pmedium: ?*STGMEDIUM) HRESULT { return @as(*const IDataObject.VTable, @ptrCast(self.vtable)).GetData(@as(*const IDataObject, @ptrCast(self)), pformatetcIn, pmedium); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDataObject_GetDataHere(self: *const T, pformatetc: ?*FORMATETC, pmedium: ?*STGMEDIUM) HRESULT { return @as(*const IDataObject.VTable, @ptrCast(self.vtable)).GetDataHere(@as(*const IDataObject, @ptrCast(self)), pformatetc, pmedium); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDataObject_QueryGetData(self: *const T, pformatetc: ?*FORMATETC) HRESULT { return @as(*const IDataObject.VTable, @ptrCast(self.vtable)).QueryGetData(@as(*const IDataObject, @ptrCast(self)), pformatetc); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDataObject_GetCanonicalFormatEtc(self: *const T, pformatectIn: ?*FORMATETC, pformatetcOut: ?*FORMATETC) HRESULT { return @as(*const IDataObject.VTable, @ptrCast(self.vtable)).GetCanonicalFormatEtc(@as(*const IDataObject, @ptrCast(self)), pformatectIn, pformatetcOut); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDataObject_SetData(self: *const T, pformatetc: ?*FORMATETC, pmedium: ?*STGMEDIUM, fRelease: BOOL) HRESULT { return @as(*const IDataObject.VTable, @ptrCast(self.vtable)).SetData(@as(*const IDataObject, @ptrCast(self)), pformatetc, pmedium, fRelease); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDataObject_EnumFormatEtc(self: *const T, dwDirection: u32, ppenumFormatEtc: ?*?*IEnumFORMATETC) HRESULT { return @as(*const IDataObject.VTable, @ptrCast(self.vtable)).EnumFormatEtc(@as(*const IDataObject, @ptrCast(self)), dwDirection, ppenumFormatEtc); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDataObject_DAdvise(self: *const T, pformatetc: ?*FORMATETC, advf: u32, pAdvSink: ?*IAdviseSink, pdwConnection: ?*u32) HRESULT { return @as(*const IDataObject.VTable, @ptrCast(self.vtable)).DAdvise(@as(*const IDataObject, @ptrCast(self)), pformatetc, advf, pAdvSink, pdwConnection); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDataObject_DUnadvise(self: *const T, dwConnection: u32) HRESULT { return @as(*const IDataObject.VTable, @ptrCast(self.vtable)).DUnadvise(@as(*const IDataObject, @ptrCast(self)), dwConnection); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDataObject_EnumDAdvise(self: *const T, ppenumAdvise: ?*?*IEnumSTATDATA) HRESULT { return @as(*const IDataObject.VTable, @ptrCast(self.vtable)).EnumDAdvise(@as(*const IDataObject, @ptrCast(self)), ppenumAdvise); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows5.0' const IID_IDataAdviseHolder_Value = Guid.initString("00000110-0000-0000-c000-000000000046"); pub const IID_IDataAdviseHolder = &IID_IDataAdviseHolder_Value; pub const IDataAdviseHolder = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, Advise: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDataAdviseHolder, pDataObject: ?*IDataObject, pFetc: ?*FORMATETC, advf: u32, pAdvise: ?*IAdviseSink, pdwConnection: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDataAdviseHolder, pDataObject: ?*IDataObject, pFetc: ?*FORMATETC, advf: u32, pAdvise: ?*IAdviseSink, pdwConnection: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Unadvise: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDataAdviseHolder, dwConnection: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDataAdviseHolder, dwConnection: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, EnumAdvise: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDataAdviseHolder, ppenumAdvise: ?*?*IEnumSTATDATA, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDataAdviseHolder, ppenumAdvise: ?*?*IEnumSTATDATA, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SendOnDataChange: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDataAdviseHolder, pDataObject: ?*IDataObject, dwReserved: u32, advf: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDataAdviseHolder, pDataObject: ?*IDataObject, dwReserved: u32, advf: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDataAdviseHolder_Advise(self: *const T, pDataObject: ?*IDataObject, pFetc: ?*FORMATETC, advf: u32, pAdvise: ?*IAdviseSink, pdwConnection: ?*u32) HRESULT { return @as(*const IDataAdviseHolder.VTable, @ptrCast(self.vtable)).Advise(@as(*const IDataAdviseHolder, @ptrCast(self)), pDataObject, pFetc, advf, pAdvise, pdwConnection); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDataAdviseHolder_Unadvise(self: *const T, dwConnection: u32) HRESULT { return @as(*const IDataAdviseHolder.VTable, @ptrCast(self.vtable)).Unadvise(@as(*const IDataAdviseHolder, @ptrCast(self)), dwConnection); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDataAdviseHolder_EnumAdvise(self: *const T, ppenumAdvise: ?*?*IEnumSTATDATA) HRESULT { return @as(*const IDataAdviseHolder.VTable, @ptrCast(self.vtable)).EnumAdvise(@as(*const IDataAdviseHolder, @ptrCast(self)), ppenumAdvise); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDataAdviseHolder_SendOnDataChange(self: *const T, pDataObject: ?*IDataObject, dwReserved: u32, advf: u32) HRESULT { return @as(*const IDataAdviseHolder.VTable, @ptrCast(self.vtable)).SendOnDataChange(@as(*const IDataAdviseHolder, @ptrCast(self)), pDataObject, dwReserved, advf); } }; } pub usingnamespace MethodMixin(@This()); }; pub const CALLTYPE = enum(i32) { TOPLEVEL = 1, NESTED = 2, ASYNC = 3, TOPLEVEL_CALLPENDING = 4, ASYNC_CALLPENDING = 5, }; pub const CALLTYPE_TOPLEVEL = CALLTYPE.TOPLEVEL; pub const CALLTYPE_NESTED = CALLTYPE.NESTED; pub const CALLTYPE_ASYNC = CALLTYPE.ASYNC; pub const CALLTYPE_TOPLEVEL_CALLPENDING = CALLTYPE.TOPLEVEL_CALLPENDING; pub const CALLTYPE_ASYNC_CALLPENDING = CALLTYPE.ASYNC_CALLPENDING; pub const SERVERCALL = enum(i32) { ISHANDLED = 0, REJECTED = 1, RETRYLATER = 2, }; pub const SERVERCALL_ISHANDLED = SERVERCALL.ISHANDLED; pub const SERVERCALL_REJECTED = SERVERCALL.REJECTED; pub const SERVERCALL_RETRYLATER = SERVERCALL.RETRYLATER; pub const PENDINGTYPE = enum(i32) { TOPLEVEL = 1, NESTED = 2, }; pub const PENDINGTYPE_TOPLEVEL = PENDINGTYPE.TOPLEVEL; pub const PENDINGTYPE_NESTED = PENDINGTYPE.NESTED; pub const PENDINGMSG = enum(i32) { CANCELCALL = 0, WAITNOPROCESS = 1, WAITDEFPROCESS = 2, }; pub const PENDINGMSG_CANCELCALL = PENDINGMSG.CANCELCALL; pub const PENDINGMSG_WAITNOPROCESS = PENDINGMSG.WAITNOPROCESS; pub const PENDINGMSG_WAITDEFPROCESS = PENDINGMSG.WAITDEFPROCESS; pub const INTERFACEINFO = extern struct { pUnk: ?*IUnknown, iid: Guid, wMethod: u16, }; // TODO: this type is limited to platform 'windows5.0' const IID_IClassActivator_Value = Guid.initString("00000140-0000-0000-c000-000000000046"); pub const IID_IClassActivator = &IID_IClassActivator_Value; pub const IClassActivator = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, GetClassObject: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IClassActivator, rclsid: ?*const Guid, dwClassContext: u32, locale: u32, riid: ?*const Guid, ppv: ?*?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IClassActivator, rclsid: ?*const Guid, dwClassContext: u32, locale: u32, riid: ?*const Guid, ppv: ?*?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IClassActivator_GetClassObject(self: *const T, rclsid: ?*const Guid, dwClassContext: u32, locale: u32, riid: ?*const Guid, ppv: ?*?*anyopaque) HRESULT { return @as(*const IClassActivator.VTable, @ptrCast(self.vtable)).GetClassObject(@as(*const IClassActivator, @ptrCast(self)), rclsid, dwClassContext, locale, riid, ppv); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows5.0' const IID_IProgressNotify_Value = Guid.initString("a9d758a0-4617-11cf-95fc-00aa00680db4"); pub const IID_IProgressNotify = &IID_IProgressNotify_Value; pub const IProgressNotify = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, OnProgress: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IProgressNotify, dwProgressCurrent: u32, dwProgressMaximum: u32, fAccurate: BOOL, fOwner: BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IProgressNotify, dwProgressCurrent: u32, dwProgressMaximum: u32, fAccurate: BOOL, fOwner: BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IProgressNotify_OnProgress(self: *const T, dwProgressCurrent: u32, dwProgressMaximum: u32, fAccurate: BOOL, fOwner: BOOL) HRESULT { return @as(*const IProgressNotify.VTable, @ptrCast(self.vtable)).OnProgress(@as(*const IProgressNotify, @ptrCast(self)), dwProgressCurrent, dwProgressMaximum, fAccurate, fOwner); } }; } pub usingnamespace MethodMixin(@This()); }; pub const StorageLayout = extern struct { LayoutType: u32, pwcsElementName: ?PWSTR, cOffset: LARGE_INTEGER, cBytes: LARGE_INTEGER, }; // TODO: this type is limited to platform 'windows5.0' const IID_IBlockingLock_Value = Guid.initString("30f3d47a-6447-11d1-8e3c-00c04fb9386d"); pub const IID_IBlockingLock = &IID_IBlockingLock_Value; pub const IBlockingLock = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, Lock: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IBlockingLock, dwTimeout: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IBlockingLock, dwTimeout: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Unlock: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IBlockingLock, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IBlockingLock, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IBlockingLock_Lock(self: *const T, dwTimeout: u32) HRESULT { return @as(*const IBlockingLock.VTable, @ptrCast(self.vtable)).Lock(@as(*const IBlockingLock, @ptrCast(self)), dwTimeout); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IBlockingLock_Unlock(self: *const T) HRESULT { return @as(*const IBlockingLock.VTable, @ptrCast(self.vtable)).Unlock(@as(*const IBlockingLock, @ptrCast(self))); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_ITimeAndNoticeControl_Value = Guid.initString("bc0bf6ae-8878-11d1-83e9-00c04fc2c6d4"); pub const IID_ITimeAndNoticeControl = &IID_ITimeAndNoticeControl_Value; pub const ITimeAndNoticeControl = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, SuppressChanges: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ITimeAndNoticeControl, res1: u32, res2: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ITimeAndNoticeControl, res1: u32, res2: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITimeAndNoticeControl_SuppressChanges(self: *const T, res1: u32, res2: u32) HRESULT { return @as(*const ITimeAndNoticeControl.VTable, @ptrCast(self.vtable)).SuppressChanges(@as(*const ITimeAndNoticeControl, @ptrCast(self)), res1, res2); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IOplockStorage_Value = Guid.initString("8d19c834-8879-11d1-83e9-00c04fc2c6d4"); pub const IID_IOplockStorage = &IID_IOplockStorage_Value; pub const IOplockStorage = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, CreateStorageEx: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IOplockStorage, pwcsName: ?[*:0]const u16, grfMode: u32, stgfmt: u32, grfAttrs: u32, riid: ?*const Guid, ppstgOpen: ?*?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IOplockStorage, pwcsName: ?[*:0]const u16, grfMode: u32, stgfmt: u32, grfAttrs: u32, riid: ?*const Guid, ppstgOpen: ?*?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, OpenStorageEx: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IOplockStorage, pwcsName: ?[*:0]const u16, grfMode: u32, stgfmt: u32, grfAttrs: u32, riid: ?*const Guid, ppstgOpen: ?*?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IOplockStorage, pwcsName: ?[*:0]const u16, grfMode: u32, stgfmt: u32, grfAttrs: u32, riid: ?*const Guid, ppstgOpen: ?*?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IOplockStorage_CreateStorageEx(self: *const T, pwcsName: ?[*:0]const u16, grfMode: u32, stgfmt: u32, grfAttrs: u32, riid: ?*const Guid, ppstgOpen: ?*?*anyopaque) HRESULT { return @as(*const IOplockStorage.VTable, @ptrCast(self.vtable)).CreateStorageEx(@as(*const IOplockStorage, @ptrCast(self)), pwcsName, grfMode, stgfmt, grfAttrs, riid, ppstgOpen); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IOplockStorage_OpenStorageEx(self: *const T, pwcsName: ?[*:0]const u16, grfMode: u32, stgfmt: u32, grfAttrs: u32, riid: ?*const Guid, ppstgOpen: ?*?*anyopaque) HRESULT { return @as(*const IOplockStorage.VTable, @ptrCast(self.vtable)).OpenStorageEx(@as(*const IOplockStorage, @ptrCast(self)), pwcsName, grfMode, stgfmt, grfAttrs, riid, ppstgOpen); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IUrlMon_Value = Guid.initString("00000026-0000-0000-c000-000000000046"); pub const IID_IUrlMon = &IID_IUrlMon_Value; pub const IUrlMon = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, AsyncGetClassBits: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IUrlMon, rclsid: ?*const Guid, pszTYPE: ?[*:0]const u16, pszExt: ?[*:0]const u16, dwFileVersionMS: u32, dwFileVersionLS: u32, pszCodeBase: ?[*:0]const u16, pbc: ?*IBindCtx, dwClassContext: u32, riid: ?*const Guid, flags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IUrlMon, rclsid: ?*const Guid, pszTYPE: ?[*:0]const u16, pszExt: ?[*:0]const u16, dwFileVersionMS: u32, dwFileVersionLS: u32, pszCodeBase: ?[*:0]const u16, pbc: ?*IBindCtx, dwClassContext: u32, riid: ?*const Guid, flags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IUrlMon_AsyncGetClassBits(self: *const T, rclsid: ?*const Guid, pszTYPE: ?[*:0]const u16, pszExt: ?[*:0]const u16, dwFileVersionMS: u32, dwFileVersionLS: u32, pszCodeBase: ?[*:0]const u16, pbc: ?*IBindCtx, dwClassContext: u32, riid: ?*const Guid, flags: u32) HRESULT { return @as(*const IUrlMon.VTable, @ptrCast(self.vtable)).AsyncGetClassBits(@as(*const IUrlMon, @ptrCast(self)), rclsid, pszTYPE, pszExt, dwFileVersionMS, dwFileVersionLS, pszCodeBase, pbc, dwClassContext, riid, flags); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows5.0' const IID_IForegroundTransfer_Value = Guid.initString("00000145-0000-0000-c000-000000000046"); pub const IID_IForegroundTransfer = &IID_IForegroundTransfer_Value; pub const IForegroundTransfer = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, AllowForegroundTransfer: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IForegroundTransfer, lpvReserved: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IForegroundTransfer, lpvReserved: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IForegroundTransfer_AllowForegroundTransfer(self: *const T, lpvReserved: ?*anyopaque) HRESULT { return @as(*const IForegroundTransfer.VTable, @ptrCast(self.vtable)).AllowForegroundTransfer(@as(*const IForegroundTransfer, @ptrCast(self)), lpvReserved); } }; } pub usingnamespace MethodMixin(@This()); }; pub const ApplicationType = enum(i32) { ServerApplication = 0, LibraryApplication = 1, }; pub const ServerApplication = ApplicationType.ServerApplication; pub const LibraryApplication = ApplicationType.LibraryApplication; pub const ShutdownType = enum(i32) { IdleShutdown = 0, ForcedShutdown = 1, }; pub const IdleShutdown = ShutdownType.IdleShutdown; pub const ForcedShutdown = ShutdownType.ForcedShutdown; // TODO: this type is limited to platform 'windows5.0' const IID_IProcessLock_Value = Guid.initString("000001d5-0000-0000-c000-000000000046"); pub const IID_IProcessLock = &IID_IProcessLock_Value; pub const IProcessLock = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, AddRefOnProcess: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IProcessLock, ) callconv(@import("std").os.windows.WINAPI) u32, else => *const fn ( self: *const IProcessLock, ) callconv(@import("std").os.windows.WINAPI) u32, }, ReleaseRefOnProcess: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IProcessLock, ) callconv(@import("std").os.windows.WINAPI) u32, else => *const fn ( self: *const IProcessLock, ) callconv(@import("std").os.windows.WINAPI) u32, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IProcessLock_AddRefOnProcess(self: *const T) u32 { return @as(*const IProcessLock.VTable, @ptrCast(self.vtable)).AddRefOnProcess(@as(*const IProcessLock, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IProcessLock_ReleaseRefOnProcess(self: *const T) u32 { return @as(*const IProcessLock.VTable, @ptrCast(self.vtable)).ReleaseRefOnProcess(@as(*const IProcessLock, @ptrCast(self))); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows5.0' const IID_ISurrogateService_Value = Guid.initString("000001d4-0000-0000-c000-000000000046"); pub const IID_ISurrogateService = &IID_ISurrogateService_Value; pub const ISurrogateService = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, Init: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ISurrogateService, rguidProcessID: ?*const Guid, pProcessLock: ?*IProcessLock, pfApplicationAware: ?*BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ISurrogateService, rguidProcessID: ?*const Guid, pProcessLock: ?*IProcessLock, pfApplicationAware: ?*BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, ApplicationLaunch: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ISurrogateService, rguidApplID: ?*const Guid, appType: ApplicationType, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ISurrogateService, rguidApplID: ?*const Guid, appType: ApplicationType, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, ApplicationFree: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ISurrogateService, rguidApplID: ?*const Guid, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ISurrogateService, rguidApplID: ?*const Guid, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, CatalogRefresh: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ISurrogateService, ulReserved: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ISurrogateService, ulReserved: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, ProcessShutdown: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ISurrogateService, shutdownType: ShutdownType, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ISurrogateService, shutdownType: ShutdownType, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISurrogateService_Init(self: *const T, rguidProcessID: ?*const Guid, pProcessLock: ?*IProcessLock, pfApplicationAware: ?*BOOL) HRESULT { return @as(*const ISurrogateService.VTable, @ptrCast(self.vtable)).Init(@as(*const ISurrogateService, @ptrCast(self)), rguidProcessID, pProcessLock, pfApplicationAware); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISurrogateService_ApplicationLaunch(self: *const T, rguidApplID: ?*const Guid, appType: ApplicationType) HRESULT { return @as(*const ISurrogateService.VTable, @ptrCast(self.vtable)).ApplicationLaunch(@as(*const ISurrogateService, @ptrCast(self)), rguidApplID, appType); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISurrogateService_ApplicationFree(self: *const T, rguidApplID: ?*const Guid) HRESULT { return @as(*const ISurrogateService.VTable, @ptrCast(self.vtable)).ApplicationFree(@as(*const ISurrogateService, @ptrCast(self)), rguidApplID); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISurrogateService_CatalogRefresh(self: *const T, ulReserved: u32) HRESULT { return @as(*const ISurrogateService.VTable, @ptrCast(self.vtable)).CatalogRefresh(@as(*const ISurrogateService, @ptrCast(self)), ulReserved); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISurrogateService_ProcessShutdown(self: *const T, shutdownType: ShutdownType) HRESULT { return @as(*const ISurrogateService.VTable, @ptrCast(self.vtable)).ProcessShutdown(@as(*const ISurrogateService, @ptrCast(self)), shutdownType); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows5.1.2600' const IID_IInitializeSpy_Value = Guid.initString("00000034-0000-0000-c000-000000000046"); pub const IID_IInitializeSpy = &IID_IInitializeSpy_Value; pub const IInitializeSpy = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, PreInitialize: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IInitializeSpy, dwCoInit: u32, dwCurThreadAptRefs: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IInitializeSpy, dwCoInit: u32, dwCurThreadAptRefs: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, PostInitialize: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IInitializeSpy, hrCoInit: HRESULT, dwCoInit: u32, dwNewThreadAptRefs: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IInitializeSpy, hrCoInit: HRESULT, dwCoInit: u32, dwNewThreadAptRefs: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, PreUninitialize: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IInitializeSpy, dwCurThreadAptRefs: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IInitializeSpy, dwCurThreadAptRefs: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, PostUninitialize: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IInitializeSpy, dwNewThreadAptRefs: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IInitializeSpy, dwNewThreadAptRefs: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IInitializeSpy_PreInitialize(self: *const T, dwCoInit: u32, dwCurThreadAptRefs: u32) HRESULT { return @as(*const IInitializeSpy.VTable, @ptrCast(self.vtable)).PreInitialize(@as(*const IInitializeSpy, @ptrCast(self)), dwCoInit, dwCurThreadAptRefs); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IInitializeSpy_PostInitialize(self: *const T, hrCoInit: HRESULT, dwCoInit: u32, dwNewThreadAptRefs: u32) HRESULT { return @as(*const IInitializeSpy.VTable, @ptrCast(self.vtable)).PostInitialize(@as(*const IInitializeSpy, @ptrCast(self)), hrCoInit, dwCoInit, dwNewThreadAptRefs); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IInitializeSpy_PreUninitialize(self: *const T, dwCurThreadAptRefs: u32) HRESULT { return @as(*const IInitializeSpy.VTable, @ptrCast(self.vtable)).PreUninitialize(@as(*const IInitializeSpy, @ptrCast(self)), dwCurThreadAptRefs); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IInitializeSpy_PostUninitialize(self: *const T, dwNewThreadAptRefs: u32) HRESULT { return @as(*const IInitializeSpy.VTable, @ptrCast(self.vtable)).PostUninitialize(@as(*const IInitializeSpy, @ptrCast(self)), dwNewThreadAptRefs); } }; } pub usingnamespace MethodMixin(@This()); }; pub const COINIT = enum(u32) { APARTMENTTHREADED = 2, MULTITHREADED = 0, DISABLE_OLE1DDE = 4, SPEED_OVER_MEMORY = 8, _, pub fn initFlags(o: struct { APARTMENTTHREADED: u1 = 0, MULTITHREADED: u1 = 0, DISABLE_OLE1DDE: u1 = 0, SPEED_OVER_MEMORY: u1 = 0, }) COINIT { return @as(COINIT, @enumFromInt((if (o.APARTMENTTHREADED == 1) @intFromEnum(COINIT.APARTMENTTHREADED) else 0) | (if (o.MULTITHREADED == 1) @intFromEnum(COINIT.MULTITHREADED) else 0) | (if (o.DISABLE_OLE1DDE == 1) @intFromEnum(COINIT.DISABLE_OLE1DDE) else 0) | (if (o.SPEED_OVER_MEMORY == 1) @intFromEnum(COINIT.SPEED_OVER_MEMORY) else 0))); } }; pub const COINIT_APARTMENTTHREADED = COINIT.APARTMENTTHREADED; pub const COINIT_MULTITHREADED = COINIT.MULTITHREADED; pub const COINIT_DISABLE_OLE1DDE = COINIT.DISABLE_OLE1DDE; pub const COINIT_SPEED_OVER_MEMORY = COINIT.SPEED_OVER_MEMORY; pub const COMSD = enum(i32) { LAUNCHPERMISSIONS = 0, ACCESSPERMISSIONS = 1, LAUNCHRESTRICTIONS = 2, ACCESSRESTRICTIONS = 3, }; pub const SD_LAUNCHPERMISSIONS = COMSD.LAUNCHPERMISSIONS; pub const SD_ACCESSPERMISSIONS = COMSD.ACCESSPERMISSIONS; pub const SD_LAUNCHRESTRICTIONS = COMSD.LAUNCHRESTRICTIONS; pub const SD_ACCESSRESTRICTIONS = COMSD.ACCESSRESTRICTIONS; const IID_IServiceProvider_Value = Guid.initString("6d5140c1-7436-11ce-8034-00aa006009fa"); pub const IID_IServiceProvider = &IID_IServiceProvider_Value; pub const IServiceProvider = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, QueryService: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IServiceProvider, guidService: ?*const Guid, riid: ?*const Guid, ppvObject: ?*?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IServiceProvider, guidService: ?*const Guid, riid: ?*const Guid, ppvObject: ?*?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IServiceProvider_QueryService(self: *const T, guidService: ?*const Guid, riid: ?*const Guid, ppvObject: ?*?*anyopaque) HRESULT { return @as(*const IServiceProvider.VTable, @ptrCast(self.vtable)).QueryService(@as(*const IServiceProvider, @ptrCast(self)), guidService, riid, ppvObject); } }; } pub usingnamespace MethodMixin(@This()); }; pub const COWAIT_FLAGS = enum(i32) { DEFAULT = 0, WAITALL = 1, ALERTABLE = 2, INPUTAVAILABLE = 4, DISPATCH_CALLS = 8, DISPATCH_WINDOW_MESSAGES = 16, }; pub const COWAIT_DEFAULT = COWAIT_FLAGS.DEFAULT; pub const COWAIT_WAITALL = COWAIT_FLAGS.WAITALL; pub const COWAIT_ALERTABLE = COWAIT_FLAGS.ALERTABLE; pub const COWAIT_INPUTAVAILABLE = COWAIT_FLAGS.INPUTAVAILABLE; pub const COWAIT_DISPATCH_CALLS = COWAIT_FLAGS.DISPATCH_CALLS; pub const COWAIT_DISPATCH_WINDOW_MESSAGES = COWAIT_FLAGS.DISPATCH_WINDOW_MESSAGES; pub const CWMO_FLAGS = enum(i32) { EFAULT = 0, ISPATCH_CALLS = 1, ISPATCH_WINDOW_MESSAGES = 2, }; pub const CWMO_DEFAULT = CWMO_FLAGS.EFAULT; pub const CWMO_DISPATCH_CALLS = CWMO_FLAGS.ISPATCH_CALLS; pub const CWMO_DISPATCH_WINDOW_MESSAGES = CWMO_FLAGS.ISPATCH_WINDOW_MESSAGES; pub const LPFNGETCLASSOBJECT = switch (@import("builtin").zig_backend) { .stage1 => fn ( param0: ?*const Guid, param1: ?*const Guid, param2: ?*?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( param0: ?*const Guid, param1: ?*const Guid, param2: ?*?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }; pub const LPFNCANUNLOADNOW = switch (@import("builtin").zig_backend) { .stage1 => fn () callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn () callconv(@import("std").os.windows.WINAPI) HRESULT, }; // TODO: this type is limited to platform 'windows5.0' const IID_IEnumGUID_Value = Guid.initString("0002e000-0000-0000-c000-000000000046"); pub const IID_IEnumGUID = &IID_IEnumGUID_Value; pub const IEnumGUID = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, Next: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IEnumGUID, celt: u32, rgelt: [*]Guid, pceltFetched: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IEnumGUID, celt: u32, rgelt: [*]Guid, pceltFetched: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Skip: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IEnumGUID, celt: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IEnumGUID, celt: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Reset: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IEnumGUID, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IEnumGUID, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Clone: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IEnumGUID, ppenum: ?*?*IEnumGUID, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IEnumGUID, ppenum: ?*?*IEnumGUID, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IEnumGUID_Next(self: *const T, celt: u32, rgelt: [*]Guid, pceltFetched: ?*u32) HRESULT { return @as(*const IEnumGUID.VTable, @ptrCast(self.vtable)).Next(@as(*const IEnumGUID, @ptrCast(self)), celt, rgelt, pceltFetched); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IEnumGUID_Skip(self: *const T, celt: u32) HRESULT { return @as(*const IEnumGUID.VTable, @ptrCast(self.vtable)).Skip(@as(*const IEnumGUID, @ptrCast(self)), celt); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IEnumGUID_Reset(self: *const T) HRESULT { return @as(*const IEnumGUID.VTable, @ptrCast(self.vtable)).Reset(@as(*const IEnumGUID, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IEnumGUID_Clone(self: *const T, ppenum: ?*?*IEnumGUID) HRESULT { return @as(*const IEnumGUID.VTable, @ptrCast(self.vtable)).Clone(@as(*const IEnumGUID, @ptrCast(self)), ppenum); } }; } pub usingnamespace MethodMixin(@This()); }; pub const CATEGORYINFO = extern struct { catid: Guid, lcid: u32, szDescription: [128]u16, }; // TODO: this type is limited to platform 'windows5.0' const IID_IEnumCATEGORYINFO_Value = Guid.initString("0002e011-0000-0000-c000-000000000046"); pub const IID_IEnumCATEGORYINFO = &IID_IEnumCATEGORYINFO_Value; pub const IEnumCATEGORYINFO = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, Next: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IEnumCATEGORYINFO, celt: u32, rgelt: [*]CATEGORYINFO, pceltFetched: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IEnumCATEGORYINFO, celt: u32, rgelt: [*]CATEGORYINFO, pceltFetched: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Skip: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IEnumCATEGORYINFO, celt: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IEnumCATEGORYINFO, celt: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Reset: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IEnumCATEGORYINFO, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IEnumCATEGORYINFO, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Clone: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IEnumCATEGORYINFO, ppenum: ?*?*IEnumCATEGORYINFO, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IEnumCATEGORYINFO, ppenum: ?*?*IEnumCATEGORYINFO, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IEnumCATEGORYINFO_Next(self: *const T, celt: u32, rgelt: [*]CATEGORYINFO, pceltFetched: ?*u32) HRESULT { return @as(*const IEnumCATEGORYINFO.VTable, @ptrCast(self.vtable)).Next(@as(*const IEnumCATEGORYINFO, @ptrCast(self)), celt, rgelt, pceltFetched); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IEnumCATEGORYINFO_Skip(self: *const T, celt: u32) HRESULT { return @as(*const IEnumCATEGORYINFO.VTable, @ptrCast(self.vtable)).Skip(@as(*const IEnumCATEGORYINFO, @ptrCast(self)), celt); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IEnumCATEGORYINFO_Reset(self: *const T) HRESULT { return @as(*const IEnumCATEGORYINFO.VTable, @ptrCast(self.vtable)).Reset(@as(*const IEnumCATEGORYINFO, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IEnumCATEGORYINFO_Clone(self: *const T, ppenum: ?*?*IEnumCATEGORYINFO) HRESULT { return @as(*const IEnumCATEGORYINFO.VTable, @ptrCast(self.vtable)).Clone(@as(*const IEnumCATEGORYINFO, @ptrCast(self)), ppenum); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows5.0' const IID_ICatRegister_Value = Guid.initString("0002e012-0000-0000-c000-000000000046"); pub const IID_ICatRegister = &IID_ICatRegister_Value; pub const ICatRegister = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, RegisterCategories: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ICatRegister, cCategories: u32, rgCategoryInfo: [*]CATEGORYINFO, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ICatRegister, cCategories: u32, rgCategoryInfo: [*]CATEGORYINFO, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, UnRegisterCategories: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ICatRegister, cCategories: u32, rgcatid: [*]Guid, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ICatRegister, cCategories: u32, rgcatid: [*]Guid, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, RegisterClassImplCategories: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ICatRegister, rclsid: ?*const Guid, cCategories: u32, rgcatid: [*]Guid, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ICatRegister, rclsid: ?*const Guid, cCategories: u32, rgcatid: [*]Guid, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, UnRegisterClassImplCategories: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ICatRegister, rclsid: ?*const Guid, cCategories: u32, rgcatid: [*]Guid, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ICatRegister, rclsid: ?*const Guid, cCategories: u32, rgcatid: [*]Guid, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, RegisterClassReqCategories: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ICatRegister, rclsid: ?*const Guid, cCategories: u32, rgcatid: [*]Guid, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ICatRegister, rclsid: ?*const Guid, cCategories: u32, rgcatid: [*]Guid, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, UnRegisterClassReqCategories: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ICatRegister, rclsid: ?*const Guid, cCategories: u32, rgcatid: [*]Guid, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ICatRegister, rclsid: ?*const Guid, cCategories: u32, rgcatid: [*]Guid, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ICatRegister_RegisterCategories(self: *const T, cCategories: u32, rgCategoryInfo: [*]CATEGORYINFO) HRESULT { return @as(*const ICatRegister.VTable, @ptrCast(self.vtable)).RegisterCategories(@as(*const ICatRegister, @ptrCast(self)), cCategories, rgCategoryInfo); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ICatRegister_UnRegisterCategories(self: *const T, cCategories: u32, rgcatid: [*]Guid) HRESULT { return @as(*const ICatRegister.VTable, @ptrCast(self.vtable)).UnRegisterCategories(@as(*const ICatRegister, @ptrCast(self)), cCategories, rgcatid); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ICatRegister_RegisterClassImplCategories(self: *const T, rclsid: ?*const Guid, cCategories: u32, rgcatid: [*]Guid) HRESULT { return @as(*const ICatRegister.VTable, @ptrCast(self.vtable)).RegisterClassImplCategories(@as(*const ICatRegister, @ptrCast(self)), rclsid, cCategories, rgcatid); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ICatRegister_UnRegisterClassImplCategories(self: *const T, rclsid: ?*const Guid, cCategories: u32, rgcatid: [*]Guid) HRESULT { return @as(*const ICatRegister.VTable, @ptrCast(self.vtable)).UnRegisterClassImplCategories(@as(*const ICatRegister, @ptrCast(self)), rclsid, cCategories, rgcatid); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ICatRegister_RegisterClassReqCategories(self: *const T, rclsid: ?*const Guid, cCategories: u32, rgcatid: [*]Guid) HRESULT { return @as(*const ICatRegister.VTable, @ptrCast(self.vtable)).RegisterClassReqCategories(@as(*const ICatRegister, @ptrCast(self)), rclsid, cCategories, rgcatid); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ICatRegister_UnRegisterClassReqCategories(self: *const T, rclsid: ?*const Guid, cCategories: u32, rgcatid: [*]Guid) HRESULT { return @as(*const ICatRegister.VTable, @ptrCast(self.vtable)).UnRegisterClassReqCategories(@as(*const ICatRegister, @ptrCast(self)), rclsid, cCategories, rgcatid); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows5.0' const IID_ICatInformation_Value = Guid.initString("0002e013-0000-0000-c000-000000000046"); pub const IID_ICatInformation = &IID_ICatInformation_Value; pub const ICatInformation = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, EnumCategories: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ICatInformation, lcid: u32, ppenumCategoryInfo: ?*?*IEnumCATEGORYINFO, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ICatInformation, lcid: u32, ppenumCategoryInfo: ?*?*IEnumCATEGORYINFO, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetCategoryDesc: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ICatInformation, rcatid: ?*Guid, lcid: u32, pszDesc: ?*?PWSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ICatInformation, rcatid: ?*Guid, lcid: u32, pszDesc: ?*?PWSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, EnumClassesOfCategories: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ICatInformation, cImplemented: u32, rgcatidImpl: [*]const Guid, cRequired: u32, rgcatidReq: [*]const Guid, ppenumClsid: ?*?*IEnumGUID, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ICatInformation, cImplemented: u32, rgcatidImpl: [*]const Guid, cRequired: u32, rgcatidReq: [*]const Guid, ppenumClsid: ?*?*IEnumGUID, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, IsClassOfCategories: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ICatInformation, rclsid: ?*const Guid, cImplemented: u32, rgcatidImpl: [*]const Guid, cRequired: u32, rgcatidReq: [*]const Guid, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ICatInformation, rclsid: ?*const Guid, cImplemented: u32, rgcatidImpl: [*]const Guid, cRequired: u32, rgcatidReq: [*]const Guid, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, EnumImplCategoriesOfClass: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ICatInformation, rclsid: ?*const Guid, ppenumCatid: ?*?*IEnumGUID, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ICatInformation, rclsid: ?*const Guid, ppenumCatid: ?*?*IEnumGUID, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, EnumReqCategoriesOfClass: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ICatInformation, rclsid: ?*const Guid, ppenumCatid: ?*?*IEnumGUID, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ICatInformation, rclsid: ?*const Guid, ppenumCatid: ?*?*IEnumGUID, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ICatInformation_EnumCategories(self: *const T, lcid: u32, ppenumCategoryInfo: ?*?*IEnumCATEGORYINFO) HRESULT { return @as(*const ICatInformation.VTable, @ptrCast(self.vtable)).EnumCategories(@as(*const ICatInformation, @ptrCast(self)), lcid, ppenumCategoryInfo); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ICatInformation_GetCategoryDesc(self: *const T, rcatid: ?*Guid, lcid: u32, pszDesc: ?*?PWSTR) HRESULT { return @as(*const ICatInformation.VTable, @ptrCast(self.vtable)).GetCategoryDesc(@as(*const ICatInformation, @ptrCast(self)), rcatid, lcid, pszDesc); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ICatInformation_EnumClassesOfCategories(self: *const T, cImplemented: u32, rgcatidImpl: [*]const Guid, cRequired: u32, rgcatidReq: [*]const Guid, ppenumClsid: ?*?*IEnumGUID) HRESULT { return @as(*const ICatInformation.VTable, @ptrCast(self.vtable)).EnumClassesOfCategories(@as(*const ICatInformation, @ptrCast(self)), cImplemented, rgcatidImpl, cRequired, rgcatidReq, ppenumClsid); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ICatInformation_IsClassOfCategories(self: *const T, rclsid: ?*const Guid, cImplemented: u32, rgcatidImpl: [*]const Guid, cRequired: u32, rgcatidReq: [*]const Guid) HRESULT { return @as(*const ICatInformation.VTable, @ptrCast(self.vtable)).IsClassOfCategories(@as(*const ICatInformation, @ptrCast(self)), rclsid, cImplemented, rgcatidImpl, cRequired, rgcatidReq); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ICatInformation_EnumImplCategoriesOfClass(self: *const T, rclsid: ?*const Guid, ppenumCatid: ?*?*IEnumGUID) HRESULT { return @as(*const ICatInformation.VTable, @ptrCast(self.vtable)).EnumImplCategoriesOfClass(@as(*const ICatInformation, @ptrCast(self)), rclsid, ppenumCatid); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ICatInformation_EnumReqCategoriesOfClass(self: *const T, rclsid: ?*const Guid, ppenumCatid: ?*?*IEnumGUID) HRESULT { return @as(*const ICatInformation.VTable, @ptrCast(self.vtable)).EnumReqCategoriesOfClass(@as(*const ICatInformation, @ptrCast(self)), rclsid, ppenumCatid); } }; } pub usingnamespace MethodMixin(@This()); }; pub const ComCallData = extern struct { dwDispid: u32, dwReserved: u32, pUserDefined: ?*anyopaque, }; pub const PFNCONTEXTCALL = switch (@import("builtin").zig_backend) { .stage1 => fn ( pParam: ?*ComCallData, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( pParam: ?*ComCallData, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }; // TODO: this type is limited to platform 'windows5.0' const IID_IContextCallback_Value = Guid.initString("000001da-0000-0000-c000-000000000046"); pub const IID_IContextCallback = &IID_IContextCallback_Value; pub const IContextCallback = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, ContextCallback: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IContextCallback, pfnCallback: ?PFNCONTEXTCALL, pParam: ?*ComCallData, riid: ?*const Guid, iMethod: i32, pUnk: ?*IUnknown, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IContextCallback, pfnCallback: ?PFNCONTEXTCALL, pParam: ?*ComCallData, riid: ?*const Guid, iMethod: i32, pUnk: ?*IUnknown, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IContextCallback_ContextCallback(self: *const T, pfnCallback: ?PFNCONTEXTCALL, pParam: ?*ComCallData, riid: ?*const Guid, iMethod: i32, pUnk: ?*IUnknown) HRESULT { return @as(*const IContextCallback.VTable, @ptrCast(self.vtable)).ContextCallback(@as(*const IContextCallback, @ptrCast(self)), pfnCallback, pParam, riid, iMethod, pUnk); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IBinding_Value = Guid.initString("79eac9c0-baf9-11ce-8c82-00aa004ba90b"); pub const IID_IBinding = &IID_IBinding_Value; pub const IBinding = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, Abort: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IBinding, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IBinding, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Suspend: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IBinding, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IBinding, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Resume: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IBinding, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IBinding, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetPriority: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IBinding, nPriority: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IBinding, nPriority: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetPriority: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IBinding, pnPriority: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IBinding, pnPriority: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetBindResult: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IBinding, pclsidProtocol: ?*Guid, pdwResult: ?*u32, pszResult: ?*?PWSTR, pdwReserved: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IBinding, pclsidProtocol: ?*Guid, pdwResult: ?*u32, pszResult: ?*?PWSTR, pdwReserved: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IBinding_Abort(self: *const T) HRESULT { return @as(*const IBinding.VTable, @ptrCast(self.vtable)).Abort(@as(*const IBinding, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IBinding_Suspend(self: *const T) HRESULT { return @as(*const IBinding.VTable, @ptrCast(self.vtable)).Suspend(@as(*const IBinding, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IBinding_Resume(self: *const T) HRESULT { return @as(*const IBinding.VTable, @ptrCast(self.vtable)).Resume(@as(*const IBinding, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IBinding_SetPriority(self: *const T, nPriority: i32) HRESULT { return @as(*const IBinding.VTable, @ptrCast(self.vtable)).SetPriority(@as(*const IBinding, @ptrCast(self)), nPriority); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IBinding_GetPriority(self: *const T, pnPriority: ?*i32) HRESULT { return @as(*const IBinding.VTable, @ptrCast(self.vtable)).GetPriority(@as(*const IBinding, @ptrCast(self)), pnPriority); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IBinding_GetBindResult(self: *const T, pclsidProtocol: ?*Guid, pdwResult: ?*u32, pszResult: ?*?PWSTR, pdwReserved: ?*u32) HRESULT { return @as(*const IBinding.VTable, @ptrCast(self.vtable)).GetBindResult(@as(*const IBinding, @ptrCast(self)), pclsidProtocol, pdwResult, pszResult, pdwReserved); } }; } pub usingnamespace MethodMixin(@This()); }; pub const BINDINFOF = enum(i32) { STGMEDDATA = 1, DEXTRAINFO = 2, }; pub const BINDINFOF_URLENCODESTGMEDDATA = BINDINFOF.STGMEDDATA; pub const BINDINFOF_URLENCODEDEXTRAINFO = BINDINFOF.DEXTRAINFO; pub const BINDINFO = extern struct { cbSize: u32, szExtraInfo: ?PWSTR, stgmedData: STGMEDIUM, grfBindInfoF: u32, dwBindVerb: u32, szCustomVerb: ?PWSTR, cbstgmedData: u32, dwOptions: u32, dwOptionsFlags: u32, dwCodePage: u32, securityAttributes: SECURITY_ATTRIBUTES, iid: Guid, pUnk: ?*IUnknown, dwReserved: u32, }; const IID_IBindStatusCallback_Value = Guid.initString("79eac9c1-baf9-11ce-8c82-00aa004ba90b"); pub const IID_IBindStatusCallback = &IID_IBindStatusCallback_Value; pub const IBindStatusCallback = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, OnStartBinding: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IBindStatusCallback, dwReserved: u32, pib: ?*IBinding, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IBindStatusCallback, dwReserved: u32, pib: ?*IBinding, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetPriority: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IBindStatusCallback, pnPriority: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IBindStatusCallback, pnPriority: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, OnLowResource: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IBindStatusCallback, reserved: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IBindStatusCallback, reserved: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, OnProgress: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IBindStatusCallback, ulProgress: u32, ulProgressMax: u32, ulStatusCode: u32, szStatusText: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IBindStatusCallback, ulProgress: u32, ulProgressMax: u32, ulStatusCode: u32, szStatusText: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, OnStopBinding: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IBindStatusCallback, hresult: HRESULT, szError: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IBindStatusCallback, hresult: HRESULT, szError: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetBindInfo: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IBindStatusCallback, grfBINDF: ?*u32, pbindinfo: ?*BINDINFO, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IBindStatusCallback, grfBINDF: ?*u32, pbindinfo: ?*BINDINFO, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, OnDataAvailable: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IBindStatusCallback, grfBSCF: u32, dwSize: u32, pformatetc: ?*FORMATETC, pstgmed: ?*STGMEDIUM, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IBindStatusCallback, grfBSCF: u32, dwSize: u32, pformatetc: ?*FORMATETC, pstgmed: ?*STGMEDIUM, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, OnObjectAvailable: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IBindStatusCallback, riid: ?*const Guid, punk: ?*IUnknown, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IBindStatusCallback, riid: ?*const Guid, punk: ?*IUnknown, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IBindStatusCallback_OnStartBinding(self: *const T, dwReserved: u32, pib: ?*IBinding) HRESULT { return @as(*const IBindStatusCallback.VTable, @ptrCast(self.vtable)).OnStartBinding(@as(*const IBindStatusCallback, @ptrCast(self)), dwReserved, pib); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IBindStatusCallback_GetPriority(self: *const T, pnPriority: ?*i32) HRESULT { return @as(*const IBindStatusCallback.VTable, @ptrCast(self.vtable)).GetPriority(@as(*const IBindStatusCallback, @ptrCast(self)), pnPriority); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IBindStatusCallback_OnLowResource(self: *const T, reserved: u32) HRESULT { return @as(*const IBindStatusCallback.VTable, @ptrCast(self.vtable)).OnLowResource(@as(*const IBindStatusCallback, @ptrCast(self)), reserved); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IBindStatusCallback_OnProgress(self: *const T, ulProgress: u32, ulProgressMax: u32, ulStatusCode: u32, szStatusText: ?[*:0]const u16) HRESULT { return @as(*const IBindStatusCallback.VTable, @ptrCast(self.vtable)).OnProgress(@as(*const IBindStatusCallback, @ptrCast(self)), ulProgress, ulProgressMax, ulStatusCode, szStatusText); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IBindStatusCallback_OnStopBinding(self: *const T, hresult: HRESULT, szError: ?[*:0]const u16) HRESULT { return @as(*const IBindStatusCallback.VTable, @ptrCast(self.vtable)).OnStopBinding(@as(*const IBindStatusCallback, @ptrCast(self)), hresult, szError); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IBindStatusCallback_GetBindInfo(self: *const T, grfBINDF: ?*u32, pbindinfo: ?*BINDINFO) HRESULT { return @as(*const IBindStatusCallback.VTable, @ptrCast(self.vtable)).GetBindInfo(@as(*const IBindStatusCallback, @ptrCast(self)), grfBINDF, pbindinfo); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IBindStatusCallback_OnDataAvailable(self: *const T, grfBSCF: u32, dwSize: u32, pformatetc: ?*FORMATETC, pstgmed: ?*STGMEDIUM) HRESULT { return @as(*const IBindStatusCallback.VTable, @ptrCast(self.vtable)).OnDataAvailable(@as(*const IBindStatusCallback, @ptrCast(self)), grfBSCF, dwSize, pformatetc, pstgmed); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IBindStatusCallback_OnObjectAvailable(self: *const T, riid: ?*const Guid, punk: ?*IUnknown) HRESULT { return @as(*const IBindStatusCallback.VTable, @ptrCast(self.vtable)).OnObjectAvailable(@as(*const IBindStatusCallback, @ptrCast(self)), riid, punk); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IBindStatusCallbackEx_Value = Guid.initString("aaa74ef9-8ee7-4659-88d9-f8c504da73cc"); pub const IID_IBindStatusCallbackEx = &IID_IBindStatusCallbackEx_Value; pub const IBindStatusCallbackEx = extern struct { pub const VTable = extern struct { base: IBindStatusCallback.VTable, GetBindInfoEx: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IBindStatusCallbackEx, grfBINDF: ?*u32, pbindinfo: ?*BINDINFO, grfBINDF2: ?*u32, pdwReserved: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IBindStatusCallbackEx, grfBINDF: ?*u32, pbindinfo: ?*BINDINFO, grfBINDF2: ?*u32, pdwReserved: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IBindStatusCallback.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IBindStatusCallbackEx_GetBindInfoEx(self: *const T, grfBINDF: ?*u32, pbindinfo: ?*BINDINFO, grfBINDF2: ?*u32, pdwReserved: ?*u32) HRESULT { return @as(*const IBindStatusCallbackEx.VTable, @ptrCast(self.vtable)).GetBindInfoEx(@as(*const IBindStatusCallbackEx, @ptrCast(self)), grfBINDF, pbindinfo, grfBINDF2, pdwReserved); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IAuthenticate_Value = Guid.initString("79eac9d0-baf9-11ce-8c82-00aa004ba90b"); pub const IID_IAuthenticate = &IID_IAuthenticate_Value; pub const IAuthenticate = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, Authenticate: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IAuthenticate, phwnd: ?*?HWND, pszUsername: ?*?PWSTR, pszPassword: ?*?PWSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IAuthenticate, phwnd: ?*?HWND, pszUsername: ?*?PWSTR, pszPassword: ?*?PWSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IAuthenticate_Authenticate(self: *const T, phwnd: ?*?HWND, pszUsername: ?*?PWSTR, pszPassword: ?*?PWSTR) HRESULT { return @as(*const IAuthenticate.VTable, @ptrCast(self.vtable)).Authenticate(@as(*const IAuthenticate, @ptrCast(self)), phwnd, pszUsername, pszPassword); } }; } pub usingnamespace MethodMixin(@This()); }; pub const AUTHENTICATEINFO = extern struct { dwFlags: u32, dwReserved: u32, }; const IID_IAuthenticateEx_Value = Guid.initString("2ad1edaf-d83d-48b5-9adf-03dbe19f53bd"); pub const IID_IAuthenticateEx = &IID_IAuthenticateEx_Value; pub const IAuthenticateEx = extern struct { pub const VTable = extern struct { base: IAuthenticate.VTable, AuthenticateEx: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IAuthenticateEx, phwnd: ?*?HWND, pszUsername: ?*?PWSTR, pszPassword: ?*?PWSTR, pauthinfo: ?*AUTHENTICATEINFO, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IAuthenticateEx, phwnd: ?*?HWND, pszUsername: ?*?PWSTR, pszPassword: ?*?PWSTR, pauthinfo: ?*AUTHENTICATEINFO, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IAuthenticate.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IAuthenticateEx_AuthenticateEx(self: *const T, phwnd: ?*?HWND, pszUsername: ?*?PWSTR, pszPassword: ?*?PWSTR, pauthinfo: ?*AUTHENTICATEINFO) HRESULT { return @as(*const IAuthenticateEx.VTable, @ptrCast(self.vtable)).AuthenticateEx(@as(*const IAuthenticateEx, @ptrCast(self)), phwnd, pszUsername, pszPassword, pauthinfo); } }; } pub usingnamespace MethodMixin(@This()); }; pub const Uri_PROPERTY = enum(i32) { ABSOLUTE_URI = 0, // STRING_START = 0, this enum value conflicts with ABSOLUTE_URI AUTHORITY = 1, DISPLAY_URI = 2, DOMAIN = 3, EXTENSION = 4, FRAGMENT = 5, HOST = 6, PASSWORD = 7, PATH = 8, PATH_AND_QUERY = 9, QUERY = 10, RAW_URI = 11, SCHEME_NAME = 12, USER_INFO = 13, USER_NAME = 14, // STRING_LAST = 14, this enum value conflicts with USER_NAME HOST_TYPE = 15, // DWORD_START = 15, this enum value conflicts with HOST_TYPE PORT = 16, SCHEME = 17, ZONE = 18, // DWORD_LAST = 18, this enum value conflicts with ZONE }; pub const Uri_PROPERTY_ABSOLUTE_URI = Uri_PROPERTY.ABSOLUTE_URI; pub const Uri_PROPERTY_STRING_START = Uri_PROPERTY.ABSOLUTE_URI; pub const Uri_PROPERTY_AUTHORITY = Uri_PROPERTY.AUTHORITY; pub const Uri_PROPERTY_DISPLAY_URI = Uri_PROPERTY.DISPLAY_URI; pub const Uri_PROPERTY_DOMAIN = Uri_PROPERTY.DOMAIN; pub const Uri_PROPERTY_EXTENSION = Uri_PROPERTY.EXTENSION; pub const Uri_PROPERTY_FRAGMENT = Uri_PROPERTY.FRAGMENT; pub const Uri_PROPERTY_HOST = Uri_PROPERTY.HOST; pub const Uri_PROPERTY_PASSWORD = Uri_PROPERTY.PASSWORD; pub const Uri_PROPERTY_PATH = Uri_PROPERTY.PATH; pub const Uri_PROPERTY_PATH_AND_QUERY = Uri_PROPERTY.PATH_AND_QUERY; pub const Uri_PROPERTY_QUERY = Uri_PROPERTY.QUERY; pub const Uri_PROPERTY_RAW_URI = Uri_PROPERTY.RAW_URI; pub const Uri_PROPERTY_SCHEME_NAME = Uri_PROPERTY.SCHEME_NAME; pub const Uri_PROPERTY_USER_INFO = Uri_PROPERTY.USER_INFO; pub const Uri_PROPERTY_USER_NAME = Uri_PROPERTY.USER_NAME; pub const Uri_PROPERTY_STRING_LAST = Uri_PROPERTY.USER_NAME; pub const Uri_PROPERTY_HOST_TYPE = Uri_PROPERTY.HOST_TYPE; pub const Uri_PROPERTY_DWORD_START = Uri_PROPERTY.HOST_TYPE; pub const Uri_PROPERTY_PORT = Uri_PROPERTY.PORT; pub const Uri_PROPERTY_SCHEME = Uri_PROPERTY.SCHEME; pub const Uri_PROPERTY_ZONE = Uri_PROPERTY.ZONE; pub const Uri_PROPERTY_DWORD_LAST = Uri_PROPERTY.ZONE; const IID_IUri_Value = Guid.initString("a39ee748-6a27-4817-a6f2-13914bef5890"); pub const IID_IUri = &IID_IUri_Value; pub const IUri = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, GetPropertyBSTR: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IUri, uriProp: Uri_PROPERTY, pbstrProperty: ?*?BSTR, dwFlags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IUri, uriProp: Uri_PROPERTY, pbstrProperty: ?*?BSTR, dwFlags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetPropertyLength: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IUri, uriProp: Uri_PROPERTY, pcchProperty: ?*u32, dwFlags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IUri, uriProp: Uri_PROPERTY, pcchProperty: ?*u32, dwFlags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetPropertyDWORD: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IUri, uriProp: Uri_PROPERTY, pdwProperty: ?*u32, dwFlags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IUri, uriProp: Uri_PROPERTY, pdwProperty: ?*u32, dwFlags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, HasProperty: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IUri, uriProp: Uri_PROPERTY, pfHasProperty: ?*BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IUri, uriProp: Uri_PROPERTY, pfHasProperty: ?*BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetAbsoluteUri: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IUri, pbstrAbsoluteUri: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IUri, pbstrAbsoluteUri: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetAuthority: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IUri, pbstrAuthority: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IUri, pbstrAuthority: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetDisplayUri: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IUri, pbstrDisplayString: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IUri, pbstrDisplayString: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetDomain: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IUri, pbstrDomain: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IUri, pbstrDomain: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetExtension: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IUri, pbstrExtension: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IUri, pbstrExtension: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetFragment: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IUri, pbstrFragment: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IUri, pbstrFragment: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetHost: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IUri, pbstrHost: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IUri, pbstrHost: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetPassword: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IUri, pbstrPassword: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IUri, pbstrPassword: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetPath: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IUri, pbstrPath: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IUri, pbstrPath: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetPathAndQuery: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IUri, pbstrPathAndQuery: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IUri, pbstrPathAndQuery: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetQuery: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IUri, pbstrQuery: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IUri, pbstrQuery: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetRawUri: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IUri, pbstrRawUri: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IUri, pbstrRawUri: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetSchemeName: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IUri, pbstrSchemeName: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IUri, pbstrSchemeName: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetUserInfo: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IUri, pbstrUserInfo: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IUri, pbstrUserInfo: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetUserName: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IUri, pbstrUserName: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IUri, pbstrUserName: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetHostType: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IUri, pdwHostType: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IUri, pdwHostType: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetPort: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IUri, pdwPort: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IUri, pdwPort: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetScheme: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IUri, pdwScheme: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IUri, pdwScheme: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetZone: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IUri, pdwZone: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IUri, pdwZone: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetProperties: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IUri, pdwFlags: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IUri, pdwFlags: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, IsEqual: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IUri, pUri: ?*IUri, pfEqual: ?*BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IUri, pUri: ?*IUri, pfEqual: ?*BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IUri_GetPropertyBSTR(self: *const T, uriProp: Uri_PROPERTY, pbstrProperty: ?*?BSTR, dwFlags: u32) HRESULT { return @as(*const IUri.VTable, @ptrCast(self.vtable)).GetPropertyBSTR(@as(*const IUri, @ptrCast(self)), uriProp, pbstrProperty, dwFlags); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IUri_GetPropertyLength(self: *const T, uriProp: Uri_PROPERTY, pcchProperty: ?*u32, dwFlags: u32) HRESULT { return @as(*const IUri.VTable, @ptrCast(self.vtable)).GetPropertyLength(@as(*const IUri, @ptrCast(self)), uriProp, pcchProperty, dwFlags); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IUri_GetPropertyDWORD(self: *const T, uriProp: Uri_PROPERTY, pdwProperty: ?*u32, dwFlags: u32) HRESULT { return @as(*const IUri.VTable, @ptrCast(self.vtable)).GetPropertyDWORD(@as(*const IUri, @ptrCast(self)), uriProp, pdwProperty, dwFlags); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IUri_HasProperty(self: *const T, uriProp: Uri_PROPERTY, pfHasProperty: ?*BOOL) HRESULT { return @as(*const IUri.VTable, @ptrCast(self.vtable)).HasProperty(@as(*const IUri, @ptrCast(self)), uriProp, pfHasProperty); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IUri_GetAbsoluteUri(self: *const T, pbstrAbsoluteUri: ?*?BSTR) HRESULT { return @as(*const IUri.VTable, @ptrCast(self.vtable)).GetAbsoluteUri(@as(*const IUri, @ptrCast(self)), pbstrAbsoluteUri); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IUri_GetAuthority(self: *const T, pbstrAuthority: ?*?BSTR) HRESULT { return @as(*const IUri.VTable, @ptrCast(self.vtable)).GetAuthority(@as(*const IUri, @ptrCast(self)), pbstrAuthority); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IUri_GetDisplayUri(self: *const T, pbstrDisplayString: ?*?BSTR) HRESULT { return @as(*const IUri.VTable, @ptrCast(self.vtable)).GetDisplayUri(@as(*const IUri, @ptrCast(self)), pbstrDisplayString); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IUri_GetDomain(self: *const T, pbstrDomain: ?*?BSTR) HRESULT { return @as(*const IUri.VTable, @ptrCast(self.vtable)).GetDomain(@as(*const IUri, @ptrCast(self)), pbstrDomain); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IUri_GetExtension(self: *const T, pbstrExtension: ?*?BSTR) HRESULT { return @as(*const IUri.VTable, @ptrCast(self.vtable)).GetExtension(@as(*const IUri, @ptrCast(self)), pbstrExtension); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IUri_GetFragment(self: *const T, pbstrFragment: ?*?BSTR) HRESULT { return @as(*const IUri.VTable, @ptrCast(self.vtable)).GetFragment(@as(*const IUri, @ptrCast(self)), pbstrFragment); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IUri_GetHost(self: *const T, pbstrHost: ?*?BSTR) HRESULT { return @as(*const IUri.VTable, @ptrCast(self.vtable)).GetHost(@as(*const IUri, @ptrCast(self)), pbstrHost); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IUri_GetPassword(self: *const T, pbstrPassword: ?*?BSTR) HRESULT { return @as(*const IUri.VTable, @ptrCast(self.vtable)).GetPassword(@as(*const IUri, @ptrCast(self)), pbstrPassword); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IUri_GetPath(self: *const T, pbstrPath: ?*?BSTR) HRESULT { return @as(*const IUri.VTable, @ptrCast(self.vtable)).GetPath(@as(*const IUri, @ptrCast(self)), pbstrPath); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IUri_GetPathAndQuery(self: *const T, pbstrPathAndQuery: ?*?BSTR) HRESULT { return @as(*const IUri.VTable, @ptrCast(self.vtable)).GetPathAndQuery(@as(*const IUri, @ptrCast(self)), pbstrPathAndQuery); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IUri_GetQuery(self: *const T, pbstrQuery: ?*?BSTR) HRESULT { return @as(*const IUri.VTable, @ptrCast(self.vtable)).GetQuery(@as(*const IUri, @ptrCast(self)), pbstrQuery); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IUri_GetRawUri(self: *const T, pbstrRawUri: ?*?BSTR) HRESULT { return @as(*const IUri.VTable, @ptrCast(self.vtable)).GetRawUri(@as(*const IUri, @ptrCast(self)), pbstrRawUri); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IUri_GetSchemeName(self: *const T, pbstrSchemeName: ?*?BSTR) HRESULT { return @as(*const IUri.VTable, @ptrCast(self.vtable)).GetSchemeName(@as(*const IUri, @ptrCast(self)), pbstrSchemeName); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IUri_GetUserInfo(self: *const T, pbstrUserInfo: ?*?BSTR) HRESULT { return @as(*const IUri.VTable, @ptrCast(self.vtable)).GetUserInfo(@as(*const IUri, @ptrCast(self)), pbstrUserInfo); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IUri_GetUserName(self: *const T, pbstrUserName: ?*?BSTR) HRESULT { return @as(*const IUri.VTable, @ptrCast(self.vtable)).GetUserName(@as(*const IUri, @ptrCast(self)), pbstrUserName); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IUri_GetHostType(self: *const T, pdwHostType: ?*u32) HRESULT { return @as(*const IUri.VTable, @ptrCast(self.vtable)).GetHostType(@as(*const IUri, @ptrCast(self)), pdwHostType); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IUri_GetPort(self: *const T, pdwPort: ?*u32) HRESULT { return @as(*const IUri.VTable, @ptrCast(self.vtable)).GetPort(@as(*const IUri, @ptrCast(self)), pdwPort); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IUri_GetScheme(self: *const T, pdwScheme: ?*u32) HRESULT { return @as(*const IUri.VTable, @ptrCast(self.vtable)).GetScheme(@as(*const IUri, @ptrCast(self)), pdwScheme); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IUri_GetZone(self: *const T, pdwZone: ?*u32) HRESULT { return @as(*const IUri.VTable, @ptrCast(self.vtable)).GetZone(@as(*const IUri, @ptrCast(self)), pdwZone); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IUri_GetProperties(self: *const T, pdwFlags: ?*u32) HRESULT { return @as(*const IUri.VTable, @ptrCast(self.vtable)).GetProperties(@as(*const IUri, @ptrCast(self)), pdwFlags); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IUri_IsEqual(self: *const T, pUri: ?*IUri, pfEqual: ?*BOOL) HRESULT { return @as(*const IUri.VTable, @ptrCast(self.vtable)).IsEqual(@as(*const IUri, @ptrCast(self)), pUri, pfEqual); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IUriBuilder_Value = Guid.initString("4221b2e1-8955-46c0-bd5b-de9897565de7"); pub const IID_IUriBuilder = &IID_IUriBuilder_Value; pub const IUriBuilder = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, CreateUriSimple: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IUriBuilder, dwAllowEncodingPropertyMask: u32, dwReserved: usize, ppIUri: ?*?*IUri, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IUriBuilder, dwAllowEncodingPropertyMask: u32, dwReserved: usize, ppIUri: ?*?*IUri, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, CreateUri: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IUriBuilder, dwCreateFlags: u32, dwAllowEncodingPropertyMask: u32, dwReserved: usize, ppIUri: ?*?*IUri, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IUriBuilder, dwCreateFlags: u32, dwAllowEncodingPropertyMask: u32, dwReserved: usize, ppIUri: ?*?*IUri, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, CreateUriWithFlags: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IUriBuilder, dwCreateFlags: u32, dwUriBuilderFlags: u32, dwAllowEncodingPropertyMask: u32, dwReserved: usize, ppIUri: ?*?*IUri, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IUriBuilder, dwCreateFlags: u32, dwUriBuilderFlags: u32, dwAllowEncodingPropertyMask: u32, dwReserved: usize, ppIUri: ?*?*IUri, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetIUri: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IUriBuilder, ppIUri: ?*?*IUri, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IUriBuilder, ppIUri: ?*?*IUri, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetIUri: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IUriBuilder, pIUri: ?*IUri, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IUriBuilder, pIUri: ?*IUri, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetFragment: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IUriBuilder, pcchFragment: ?*u32, ppwzFragment: ?*?PWSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IUriBuilder, pcchFragment: ?*u32, ppwzFragment: ?*?PWSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetHost: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IUriBuilder, pcchHost: ?*u32, ppwzHost: ?*?PWSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IUriBuilder, pcchHost: ?*u32, ppwzHost: ?*?PWSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetPassword: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IUriBuilder, pcchPassword: ?*u32, ppwzPassword: ?*?PWSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IUriBuilder, pcchPassword: ?*u32, ppwzPassword: ?*?PWSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetPath: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IUriBuilder, pcchPath: ?*u32, ppwzPath: ?*?PWSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IUriBuilder, pcchPath: ?*u32, ppwzPath: ?*?PWSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetPort: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IUriBuilder, pfHasPort: ?*BOOL, pdwPort: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IUriBuilder, pfHasPort: ?*BOOL, pdwPort: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetQuery: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IUriBuilder, pcchQuery: ?*u32, ppwzQuery: ?*?PWSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IUriBuilder, pcchQuery: ?*u32, ppwzQuery: ?*?PWSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetSchemeName: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IUriBuilder, pcchSchemeName: ?*u32, ppwzSchemeName: ?*?PWSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IUriBuilder, pcchSchemeName: ?*u32, ppwzSchemeName: ?*?PWSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetUserName: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IUriBuilder, pcchUserName: ?*u32, ppwzUserName: ?*?PWSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IUriBuilder, pcchUserName: ?*u32, ppwzUserName: ?*?PWSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetFragment: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IUriBuilder, pwzNewValue: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IUriBuilder, pwzNewValue: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetHost: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IUriBuilder, pwzNewValue: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IUriBuilder, pwzNewValue: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetPassword: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IUriBuilder, pwzNewValue: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IUriBuilder, pwzNewValue: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetPath: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IUriBuilder, pwzNewValue: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IUriBuilder, pwzNewValue: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetPort: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IUriBuilder, fHasPort: BOOL, dwNewValue: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IUriBuilder, fHasPort: BOOL, dwNewValue: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetQuery: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IUriBuilder, pwzNewValue: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IUriBuilder, pwzNewValue: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetSchemeName: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IUriBuilder, pwzNewValue: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IUriBuilder, pwzNewValue: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetUserName: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IUriBuilder, pwzNewValue: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IUriBuilder, pwzNewValue: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, RemoveProperties: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IUriBuilder, dwPropertyMask: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IUriBuilder, dwPropertyMask: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, HasBeenModified: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IUriBuilder, pfModified: ?*BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IUriBuilder, pfModified: ?*BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IUriBuilder_CreateUriSimple(self: *const T, dwAllowEncodingPropertyMask: u32, dwReserved: usize, ppIUri: ?*?*IUri) HRESULT { return @as(*const IUriBuilder.VTable, @ptrCast(self.vtable)).CreateUriSimple(@as(*const IUriBuilder, @ptrCast(self)), dwAllowEncodingPropertyMask, dwReserved, ppIUri); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IUriBuilder_CreateUri(self: *const T, dwCreateFlags: u32, dwAllowEncodingPropertyMask: u32, dwReserved: usize, ppIUri: ?*?*IUri) HRESULT { return @as(*const IUriBuilder.VTable, @ptrCast(self.vtable)).CreateUri(@as(*const IUriBuilder, @ptrCast(self)), dwCreateFlags, dwAllowEncodingPropertyMask, dwReserved, ppIUri); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IUriBuilder_CreateUriWithFlags(self: *const T, dwCreateFlags: u32, dwUriBuilderFlags: u32, dwAllowEncodingPropertyMask: u32, dwReserved: usize, ppIUri: ?*?*IUri) HRESULT { return @as(*const IUriBuilder.VTable, @ptrCast(self.vtable)).CreateUriWithFlags(@as(*const IUriBuilder, @ptrCast(self)), dwCreateFlags, dwUriBuilderFlags, dwAllowEncodingPropertyMask, dwReserved, ppIUri); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IUriBuilder_GetIUri(self: *const T, ppIUri: ?*?*IUri) HRESULT { return @as(*const IUriBuilder.VTable, @ptrCast(self.vtable)).GetIUri(@as(*const IUriBuilder, @ptrCast(self)), ppIUri); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IUriBuilder_SetIUri(self: *const T, pIUri: ?*IUri) HRESULT { return @as(*const IUriBuilder.VTable, @ptrCast(self.vtable)).SetIUri(@as(*const IUriBuilder, @ptrCast(self)), pIUri); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IUriBuilder_GetFragment(self: *const T, pcchFragment: ?*u32, ppwzFragment: ?*?PWSTR) HRESULT { return @as(*const IUriBuilder.VTable, @ptrCast(self.vtable)).GetFragment(@as(*const IUriBuilder, @ptrCast(self)), pcchFragment, ppwzFragment); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IUriBuilder_GetHost(self: *const T, pcchHost: ?*u32, ppwzHost: ?*?PWSTR) HRESULT { return @as(*const IUriBuilder.VTable, @ptrCast(self.vtable)).GetHost(@as(*const IUriBuilder, @ptrCast(self)), pcchHost, ppwzHost); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IUriBuilder_GetPassword(self: *const T, pcchPassword: ?*u32, ppwzPassword: ?*?PWSTR) HRESULT { return @as(*const IUriBuilder.VTable, @ptrCast(self.vtable)).GetPassword(@as(*const IUriBuilder, @ptrCast(self)), pcchPassword, ppwzPassword); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IUriBuilder_GetPath(self: *const T, pcchPath: ?*u32, ppwzPath: ?*?PWSTR) HRESULT { return @as(*const IUriBuilder.VTable, @ptrCast(self.vtable)).GetPath(@as(*const IUriBuilder, @ptrCast(self)), pcchPath, ppwzPath); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IUriBuilder_GetPort(self: *const T, pfHasPort: ?*BOOL, pdwPort: ?*u32) HRESULT { return @as(*const IUriBuilder.VTable, @ptrCast(self.vtable)).GetPort(@as(*const IUriBuilder, @ptrCast(self)), pfHasPort, pdwPort); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IUriBuilder_GetQuery(self: *const T, pcchQuery: ?*u32, ppwzQuery: ?*?PWSTR) HRESULT { return @as(*const IUriBuilder.VTable, @ptrCast(self.vtable)).GetQuery(@as(*const IUriBuilder, @ptrCast(self)), pcchQuery, ppwzQuery); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IUriBuilder_GetSchemeName(self: *const T, pcchSchemeName: ?*u32, ppwzSchemeName: ?*?PWSTR) HRESULT { return @as(*const IUriBuilder.VTable, @ptrCast(self.vtable)).GetSchemeName(@as(*const IUriBuilder, @ptrCast(self)), pcchSchemeName, ppwzSchemeName); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IUriBuilder_GetUserName(self: *const T, pcchUserName: ?*u32, ppwzUserName: ?*?PWSTR) HRESULT { return @as(*const IUriBuilder.VTable, @ptrCast(self.vtable)).GetUserName(@as(*const IUriBuilder, @ptrCast(self)), pcchUserName, ppwzUserName); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IUriBuilder_SetFragment(self: *const T, pwzNewValue: ?[*:0]const u16) HRESULT { return @as(*const IUriBuilder.VTable, @ptrCast(self.vtable)).SetFragment(@as(*const IUriBuilder, @ptrCast(self)), pwzNewValue); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IUriBuilder_SetHost(self: *const T, pwzNewValue: ?[*:0]const u16) HRESULT { return @as(*const IUriBuilder.VTable, @ptrCast(self.vtable)).SetHost(@as(*const IUriBuilder, @ptrCast(self)), pwzNewValue); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IUriBuilder_SetPassword(self: *const T, pwzNewValue: ?[*:0]const u16) HRESULT { return @as(*const IUriBuilder.VTable, @ptrCast(self.vtable)).SetPassword(@as(*const IUriBuilder, @ptrCast(self)), pwzNewValue); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IUriBuilder_SetPath(self: *const T, pwzNewValue: ?[*:0]const u16) HRESULT { return @as(*const IUriBuilder.VTable, @ptrCast(self.vtable)).SetPath(@as(*const IUriBuilder, @ptrCast(self)), pwzNewValue); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IUriBuilder_SetPort(self: *const T, fHasPort: BOOL, dwNewValue: u32) HRESULT { return @as(*const IUriBuilder.VTable, @ptrCast(self.vtable)).SetPort(@as(*const IUriBuilder, @ptrCast(self)), fHasPort, dwNewValue); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IUriBuilder_SetQuery(self: *const T, pwzNewValue: ?[*:0]const u16) HRESULT { return @as(*const IUriBuilder.VTable, @ptrCast(self.vtable)).SetQuery(@as(*const IUriBuilder, @ptrCast(self)), pwzNewValue); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IUriBuilder_SetSchemeName(self: *const T, pwzNewValue: ?[*:0]const u16) HRESULT { return @as(*const IUriBuilder.VTable, @ptrCast(self.vtable)).SetSchemeName(@as(*const IUriBuilder, @ptrCast(self)), pwzNewValue); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IUriBuilder_SetUserName(self: *const T, pwzNewValue: ?[*:0]const u16) HRESULT { return @as(*const IUriBuilder.VTable, @ptrCast(self.vtable)).SetUserName(@as(*const IUriBuilder, @ptrCast(self)), pwzNewValue); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IUriBuilder_RemoveProperties(self: *const T, dwPropertyMask: u32) HRESULT { return @as(*const IUriBuilder.VTable, @ptrCast(self.vtable)).RemoveProperties(@as(*const IUriBuilder, @ptrCast(self)), dwPropertyMask); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IUriBuilder_HasBeenModified(self: *const T, pfModified: ?*BOOL) HRESULT { return @as(*const IUriBuilder.VTable, @ptrCast(self.vtable)).HasBeenModified(@as(*const IUriBuilder, @ptrCast(self)), pfModified); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IBindHost_Value = Guid.initString("fc4801a1-2ba9-11cf-a229-00aa003d7352"); pub const IID_IBindHost = &IID_IBindHost_Value; pub const IBindHost = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, CreateMoniker: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IBindHost, szName: ?PWSTR, pBC: ?*IBindCtx, ppmk: ?*?*IMoniker, dwReserved: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IBindHost, szName: ?PWSTR, pBC: ?*IBindCtx, ppmk: ?*?*IMoniker, dwReserved: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, MonikerBindToStorage: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IBindHost, pMk: ?*IMoniker, pBC: ?*IBindCtx, pBSC: ?*IBindStatusCallback, riid: ?*const Guid, ppvObj: ?*?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IBindHost, pMk: ?*IMoniker, pBC: ?*IBindCtx, pBSC: ?*IBindStatusCallback, riid: ?*const Guid, ppvObj: ?*?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, MonikerBindToObject: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IBindHost, pMk: ?*IMoniker, pBC: ?*IBindCtx, pBSC: ?*IBindStatusCallback, riid: ?*const Guid, ppvObj: ?*?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IBindHost, pMk: ?*IMoniker, pBC: ?*IBindCtx, pBSC: ?*IBindStatusCallback, riid: ?*const Guid, ppvObj: ?*?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IBindHost_CreateMoniker(self: *const T, szName: ?PWSTR, pBC: ?*IBindCtx, ppmk: ?*?*IMoniker, dwReserved: u32) HRESULT { return @as(*const IBindHost.VTable, @ptrCast(self.vtable)).CreateMoniker(@as(*const IBindHost, @ptrCast(self)), szName, pBC, ppmk, dwReserved); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IBindHost_MonikerBindToStorage(self: *const T, pMk: ?*IMoniker, pBC: ?*IBindCtx, pBSC: ?*IBindStatusCallback, riid: ?*const Guid, ppvObj: ?*?*anyopaque) HRESULT { return @as(*const IBindHost.VTable, @ptrCast(self.vtable)).MonikerBindToStorage(@as(*const IBindHost, @ptrCast(self)), pMk, pBC, pBSC, riid, ppvObj); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IBindHost_MonikerBindToObject(self: *const T, pMk: ?*IMoniker, pBC: ?*IBindCtx, pBSC: ?*IBindStatusCallback, riid: ?*const Guid, ppvObj: ?*?*anyopaque) HRESULT { return @as(*const IBindHost.VTable, @ptrCast(self.vtable)).MonikerBindToObject(@as(*const IBindHost, @ptrCast(self)), pMk, pBC, pBSC, riid, ppvObj); } }; } pub usingnamespace MethodMixin(@This()); }; pub const SAFEARRAYBOUND = extern struct { cElements: u32, lLbound: i32, }; pub const SAFEARRAY = extern struct { cDims: u16, fFeatures: u16, cbElements: u32, cLocks: u32, pvData: ?*anyopaque, rgsabound: [1]SAFEARRAYBOUND, }; pub const VARIANT = extern struct { Anonymous: extern union { Anonymous: extern struct { vt: u16, wReserved1: u16, wReserved2: u16, wReserved3: u16, Anonymous: extern union { llVal: i64, lVal: i32, bVal: u8, iVal: i16, fltVal: f32, dblVal: f64, boolVal: i16, __OBSOLETE__VARIANT_BOOL: i16, scode: i32, cyVal: CY, date: f64, bstrVal: ?BSTR, punkVal: ?*IUnknown, pdispVal: ?*IDispatch, parray: ?*SAFEARRAY, pbVal: ?*u8, piVal: ?*i16, plVal: ?*i32, pllVal: ?*i64, pfltVal: ?*f32, pdblVal: ?*f64, pboolVal: ?*i16, __OBSOLETE__VARIANT_PBOOL: ?*i16, pscode: ?*i32, pcyVal: ?*CY, pdate: ?*f64, pbstrVal: ?*?BSTR, ppunkVal: ?*?*IUnknown, ppdispVal: ?*?*IDispatch, pparray: ?*?*SAFEARRAY, pvarVal: ?*VARIANT, byref: ?*anyopaque, cVal: CHAR, uiVal: u16, ulVal: u32, ullVal: u64, intVal: i32, uintVal: u32, pdecVal: ?*DECIMAL, pcVal: ?PSTR, puiVal: ?*u16, pulVal: ?*u32, pullVal: ?*u64, pintVal: ?*i32, puintVal: ?*u32, Anonymous: extern struct { pvRecord: ?*anyopaque, pRecInfo: ?*IRecordInfo, }, }, }, decVal: DECIMAL, }, }; pub const TYPEKIND = enum(i32) { ENUM = 0, RECORD = 1, MODULE = 2, INTERFACE = 3, DISPATCH = 4, COCLASS = 5, ALIAS = 6, UNION = 7, MAX = 8, }; pub const TKIND_ENUM = TYPEKIND.ENUM; pub const TKIND_RECORD = TYPEKIND.RECORD; pub const TKIND_MODULE = TYPEKIND.MODULE; pub const TKIND_INTERFACE = TYPEKIND.INTERFACE; pub const TKIND_DISPATCH = TYPEKIND.DISPATCH; pub const TKIND_COCLASS = TYPEKIND.COCLASS; pub const TKIND_ALIAS = TYPEKIND.ALIAS; pub const TKIND_UNION = TYPEKIND.UNION; pub const TKIND_MAX = TYPEKIND.MAX; pub const TYPEDESC = extern struct { Anonymous: extern union { lptdesc: ?*TYPEDESC, lpadesc: ?*ARRAYDESC, hreftype: u32, }, vt: u16, }; pub const IDLDESC = extern struct { dwReserved: usize, wIDLFlags: u16, }; pub const ELEMDESC = extern struct { tdesc: TYPEDESC, Anonymous: extern union { idldesc: IDLDESC, paramdesc: PARAMDESC, }, }; pub const TYPEATTR = extern struct { guid: Guid, lcid: u32, dwReserved: u32, memidConstructor: i32, memidDestructor: i32, lpstrSchema: ?PWSTR, cbSizeInstance: u32, typekind: TYPEKIND, cFuncs: u16, cVars: u16, cImplTypes: u16, cbSizeVft: u16, cbAlignment: u16, wTypeFlags: u16, wMajorVerNum: u16, wMinorVerNum: u16, tdescAlias: TYPEDESC, idldescType: IDLDESC, }; pub const DISPPARAMS = extern struct { rgvarg: ?*VARIANT, rgdispidNamedArgs: ?*i32, cArgs: u32, cNamedArgs: u32, }; pub const EXCEPINFO = extern struct { wCode: u16, wReserved: u16, bstrSource: ?BSTR, bstrDescription: ?BSTR, bstrHelpFile: ?BSTR, dwHelpContext: u32, pvReserved: ?*anyopaque, pfnDeferredFillIn: ?LPEXCEPFINO_DEFERRED_FILLIN, scode: i32, }; pub const CALLCONV = enum(i32) { FASTCALL = 0, CDECL = 1, MSCPASCAL = 2, // PASCAL = 2, this enum value conflicts with MSCPASCAL MACPASCAL = 3, STDCALL = 4, FPFASTCALL = 5, SYSCALL = 6, MPWCDECL = 7, MPWPASCAL = 8, MAX = 9, }; pub const CC_FASTCALL = CALLCONV.FASTCALL; pub const CC_CDECL = CALLCONV.CDECL; pub const CC_MSCPASCAL = CALLCONV.MSCPASCAL; pub const CC_PASCAL = CALLCONV.MSCPASCAL; pub const CC_MACPASCAL = CALLCONV.MACPASCAL; pub const CC_STDCALL = CALLCONV.STDCALL; pub const CC_FPFASTCALL = CALLCONV.FPFASTCALL; pub const CC_SYSCALL = CALLCONV.SYSCALL; pub const CC_MPWCDECL = CALLCONV.MPWCDECL; pub const CC_MPWPASCAL = CALLCONV.MPWPASCAL; pub const CC_MAX = CALLCONV.MAX; pub const FUNCKIND = enum(i32) { VIRTUAL = 0, PUREVIRTUAL = 1, NONVIRTUAL = 2, STATIC = 3, DISPATCH = 4, }; pub const FUNC_VIRTUAL = FUNCKIND.VIRTUAL; pub const FUNC_PUREVIRTUAL = FUNCKIND.PUREVIRTUAL; pub const FUNC_NONVIRTUAL = FUNCKIND.NONVIRTUAL; pub const FUNC_STATIC = FUNCKIND.STATIC; pub const FUNC_DISPATCH = FUNCKIND.DISPATCH; pub const INVOKEKIND = enum(i32) { FUNC = 1, PROPERTYGET = 2, PROPERTYPUT = 4, PROPERTYPUTREF = 8, }; pub const INVOKE_FUNC = INVOKEKIND.FUNC; pub const INVOKE_PROPERTYGET = INVOKEKIND.PROPERTYGET; pub const INVOKE_PROPERTYPUT = INVOKEKIND.PROPERTYPUT; pub const INVOKE_PROPERTYPUTREF = INVOKEKIND.PROPERTYPUTREF; pub const FUNCDESC = extern struct { memid: i32, lprgscode: ?*i32, lprgelemdescParam: ?*ELEMDESC, funckind: FUNCKIND, invkind: INVOKEKIND, @"callconv": CALLCONV, cParams: i16, cParamsOpt: i16, oVft: i16, cScodes: i16, elemdescFunc: ELEMDESC, wFuncFlags: u16, }; pub const VARKIND = enum(i32) { PERINSTANCE = 0, STATIC = 1, CONST = 2, DISPATCH = 3, }; pub const VAR_PERINSTANCE = VARKIND.PERINSTANCE; pub const VAR_STATIC = VARKIND.STATIC; pub const VAR_CONST = VARKIND.CONST; pub const VAR_DISPATCH = VARKIND.DISPATCH; pub const VARDESC = extern struct { memid: i32, lpstrSchema: ?PWSTR, Anonymous: extern union { oInst: u32, lpvarValue: ?*VARIANT, }, elemdescVar: ELEMDESC, wVarFlags: u16, varkind: VARKIND, }; pub const CUSTDATAITEM = extern struct { guid: Guid, varValue: VARIANT, }; pub const CUSTDATA = extern struct { cCustData: u32, prgCustData: ?*CUSTDATAITEM, }; const IID_IDispatch_Value = Guid.initString("00020400-0000-0000-c000-000000000046"); pub const IID_IDispatch = &IID_IDispatch_Value; pub const IDispatch = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, GetTypeInfoCount: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDispatch, pctinfo: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDispatch, pctinfo: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetTypeInfo: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDispatch, iTInfo: u32, lcid: u32, ppTInfo: ?*?*ITypeInfo, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDispatch, iTInfo: u32, lcid: u32, ppTInfo: ?*?*ITypeInfo, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetIDsOfNames: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDispatch, riid: ?*const Guid, rgszNames: [*]?PWSTR, cNames: u32, lcid: u32, rgDispId: [*]i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDispatch, riid: ?*const Guid, rgszNames: [*]?PWSTR, cNames: u32, lcid: u32, rgDispId: [*]i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Invoke: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDispatch, dispIdMember: i32, riid: ?*const Guid, lcid: u32, wFlags: u16, pDispParams: ?*DISPPARAMS, pVarResult: ?*VARIANT, pExcepInfo: ?*EXCEPINFO, puArgErr: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDispatch, dispIdMember: i32, riid: ?*const Guid, lcid: u32, wFlags: u16, pDispParams: ?*DISPPARAMS, pVarResult: ?*VARIANT, pExcepInfo: ?*EXCEPINFO, puArgErr: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDispatch_GetTypeInfoCount(self: *const T, pctinfo: ?*u32) HRESULT { return @as(*const IDispatch.VTable, @ptrCast(self.vtable)).GetTypeInfoCount(@as(*const IDispatch, @ptrCast(self)), pctinfo); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDispatch_GetTypeInfo(self: *const T, iTInfo: u32, lcid: u32, ppTInfo: ?*?*ITypeInfo) HRESULT { return @as(*const IDispatch.VTable, @ptrCast(self.vtable)).GetTypeInfo(@as(*const IDispatch, @ptrCast(self)), iTInfo, lcid, ppTInfo); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDispatch_GetIDsOfNames(self: *const T, riid: ?*const Guid, rgszNames: [*]?PWSTR, cNames: u32, lcid: u32, rgDispId: [*]i32) HRESULT { return @as(*const IDispatch.VTable, @ptrCast(self.vtable)).GetIDsOfNames(@as(*const IDispatch, @ptrCast(self)), riid, rgszNames, cNames, lcid, rgDispId); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDispatch_Invoke(self: *const T, dispIdMember: i32, riid: ?*const Guid, lcid: u32, wFlags: u16, pDispParams: ?*DISPPARAMS, pVarResult: ?*VARIANT, pExcepInfo: ?*EXCEPINFO, puArgErr: ?*u32) HRESULT { return @as(*const IDispatch.VTable, @ptrCast(self.vtable)).Invoke(@as(*const IDispatch, @ptrCast(self)), dispIdMember, riid, lcid, wFlags, pDispParams, pVarResult, pExcepInfo, puArgErr); } }; } pub usingnamespace MethodMixin(@This()); }; pub const DESCKIND = enum(i32) { NONE = 0, FUNCDESC = 1, VARDESC = 2, TYPECOMP = 3, IMPLICITAPPOBJ = 4, MAX = 5, }; pub const DESCKIND_NONE = DESCKIND.NONE; pub const DESCKIND_FUNCDESC = DESCKIND.FUNCDESC; pub const DESCKIND_VARDESC = DESCKIND.VARDESC; pub const DESCKIND_TYPECOMP = DESCKIND.TYPECOMP; pub const DESCKIND_IMPLICITAPPOBJ = DESCKIND.IMPLICITAPPOBJ; pub const DESCKIND_MAX = DESCKIND.MAX; pub const BINDPTR = extern union { lpfuncdesc: ?*FUNCDESC, lpvardesc: ?*VARDESC, lptcomp: ?*ITypeComp, }; const IID_ITypeComp_Value = Guid.initString("00020403-0000-0000-c000-000000000046"); pub const IID_ITypeComp = &IID_ITypeComp_Value; pub const ITypeComp = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, Bind: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ITypeComp, szName: ?PWSTR, lHashVal: u32, wFlags: u16, ppTInfo: ?*?*ITypeInfo, pDescKind: ?*DESCKIND, pBindPtr: ?*BINDPTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ITypeComp, szName: ?PWSTR, lHashVal: u32, wFlags: u16, ppTInfo: ?*?*ITypeInfo, pDescKind: ?*DESCKIND, pBindPtr: ?*BINDPTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, BindType: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ITypeComp, szName: ?PWSTR, lHashVal: u32, ppTInfo: ?*?*ITypeInfo, ppTComp: ?*?*ITypeComp, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ITypeComp, szName: ?PWSTR, lHashVal: u32, ppTInfo: ?*?*ITypeInfo, ppTComp: ?*?*ITypeComp, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITypeComp_Bind(self: *const T, szName: ?PWSTR, lHashVal: u32, wFlags: u16, ppTInfo: ?*?*ITypeInfo, pDescKind: ?*DESCKIND, pBindPtr: ?*BINDPTR) HRESULT { return @as(*const ITypeComp.VTable, @ptrCast(self.vtable)).Bind(@as(*const ITypeComp, @ptrCast(self)), szName, lHashVal, wFlags, ppTInfo, pDescKind, pBindPtr); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITypeComp_BindType(self: *const T, szName: ?PWSTR, lHashVal: u32, ppTInfo: ?*?*ITypeInfo, ppTComp: ?*?*ITypeComp) HRESULT { return @as(*const ITypeComp.VTable, @ptrCast(self.vtable)).BindType(@as(*const ITypeComp, @ptrCast(self)), szName, lHashVal, ppTInfo, ppTComp); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_ITypeInfo_Value = Guid.initString("00020401-0000-0000-c000-000000000046"); pub const IID_ITypeInfo = &IID_ITypeInfo_Value; pub const ITypeInfo = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, GetTypeAttr: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ITypeInfo, ppTypeAttr: ?*?*TYPEATTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ITypeInfo, ppTypeAttr: ?*?*TYPEATTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetTypeComp: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ITypeInfo, ppTComp: ?*?*ITypeComp, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ITypeInfo, ppTComp: ?*?*ITypeComp, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetFuncDesc: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ITypeInfo, index: u32, ppFuncDesc: ?*?*FUNCDESC, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ITypeInfo, index: u32, ppFuncDesc: ?*?*FUNCDESC, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetVarDesc: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ITypeInfo, index: u32, ppVarDesc: ?*?*VARDESC, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ITypeInfo, index: u32, ppVarDesc: ?*?*VARDESC, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetNames: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ITypeInfo, memid: i32, rgBstrNames: [*]?BSTR, cMaxNames: u32, pcNames: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ITypeInfo, memid: i32, rgBstrNames: [*]?BSTR, cMaxNames: u32, pcNames: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetRefTypeOfImplType: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ITypeInfo, index: u32, pRefType: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ITypeInfo, index: u32, pRefType: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetImplTypeFlags: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ITypeInfo, index: u32, pImplTypeFlags: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ITypeInfo, index: u32, pImplTypeFlags: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetIDsOfNames: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ITypeInfo, rgszNames: [*]?PWSTR, cNames: u32, pMemId: [*]i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ITypeInfo, rgszNames: [*]?PWSTR, cNames: u32, pMemId: [*]i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Invoke: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ITypeInfo, pvInstance: ?*anyopaque, memid: i32, wFlags: u16, pDispParams: ?*DISPPARAMS, pVarResult: ?*VARIANT, pExcepInfo: ?*EXCEPINFO, puArgErr: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ITypeInfo, pvInstance: ?*anyopaque, memid: i32, wFlags: u16, pDispParams: ?*DISPPARAMS, pVarResult: ?*VARIANT, pExcepInfo: ?*EXCEPINFO, puArgErr: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetDocumentation: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ITypeInfo, memid: i32, pBstrName: ?*?BSTR, pBstrDocString: ?*?BSTR, pdwHelpContext: ?*u32, pBstrHelpFile: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ITypeInfo, memid: i32, pBstrName: ?*?BSTR, pBstrDocString: ?*?BSTR, pdwHelpContext: ?*u32, pBstrHelpFile: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetDllEntry: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ITypeInfo, memid: i32, invKind: INVOKEKIND, pBstrDllName: ?*?BSTR, pBstrName: ?*?BSTR, pwOrdinal: ?*u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ITypeInfo, memid: i32, invKind: INVOKEKIND, pBstrDllName: ?*?BSTR, pBstrName: ?*?BSTR, pwOrdinal: ?*u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetRefTypeInfo: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ITypeInfo, hRefType: u32, ppTInfo: ?*?*ITypeInfo, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ITypeInfo, hRefType: u32, ppTInfo: ?*?*ITypeInfo, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, AddressOfMember: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ITypeInfo, memid: i32, invKind: INVOKEKIND, ppv: ?*?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ITypeInfo, memid: i32, invKind: INVOKEKIND, ppv: ?*?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, CreateInstance: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ITypeInfo, pUnkOuter: ?*IUnknown, riid: ?*const Guid, ppvObj: ?*?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ITypeInfo, pUnkOuter: ?*IUnknown, riid: ?*const Guid, ppvObj: ?*?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetMops: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ITypeInfo, memid: i32, pBstrMops: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ITypeInfo, memid: i32, pBstrMops: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetContainingTypeLib: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ITypeInfo, ppTLib: ?*?*ITypeLib, pIndex: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ITypeInfo, ppTLib: ?*?*ITypeLib, pIndex: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, ReleaseTypeAttr: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ITypeInfo, pTypeAttr: ?*TYPEATTR, ) callconv(@import("std").os.windows.WINAPI) void, else => *const fn ( self: *const ITypeInfo, pTypeAttr: ?*TYPEATTR, ) callconv(@import("std").os.windows.WINAPI) void, }, ReleaseFuncDesc: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ITypeInfo, pFuncDesc: ?*FUNCDESC, ) callconv(@import("std").os.windows.WINAPI) void, else => *const fn ( self: *const ITypeInfo, pFuncDesc: ?*FUNCDESC, ) callconv(@import("std").os.windows.WINAPI) void, }, ReleaseVarDesc: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ITypeInfo, pVarDesc: ?*VARDESC, ) callconv(@import("std").os.windows.WINAPI) void, else => *const fn ( self: *const ITypeInfo, pVarDesc: ?*VARDESC, ) callconv(@import("std").os.windows.WINAPI) void, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITypeInfo_GetTypeAttr(self: *const T, ppTypeAttr: ?*?*TYPEATTR) HRESULT { return @as(*const ITypeInfo.VTable, @ptrCast(self.vtable)).GetTypeAttr(@as(*const ITypeInfo, @ptrCast(self)), ppTypeAttr); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITypeInfo_GetTypeComp(self: *const T, ppTComp: ?*?*ITypeComp) HRESULT { return @as(*const ITypeInfo.VTable, @ptrCast(self.vtable)).GetTypeComp(@as(*const ITypeInfo, @ptrCast(self)), ppTComp); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITypeInfo_GetFuncDesc(self: *const T, index: u32, ppFuncDesc: ?*?*FUNCDESC) HRESULT { return @as(*const ITypeInfo.VTable, @ptrCast(self.vtable)).GetFuncDesc(@as(*const ITypeInfo, @ptrCast(self)), index, ppFuncDesc); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITypeInfo_GetVarDesc(self: *const T, index: u32, ppVarDesc: ?*?*VARDESC) HRESULT { return @as(*const ITypeInfo.VTable, @ptrCast(self.vtable)).GetVarDesc(@as(*const ITypeInfo, @ptrCast(self)), index, ppVarDesc); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITypeInfo_GetNames(self: *const T, memid: i32, rgBstrNames: [*]?BSTR, cMaxNames: u32, pcNames: ?*u32) HRESULT { return @as(*const ITypeInfo.VTable, @ptrCast(self.vtable)).GetNames(@as(*const ITypeInfo, @ptrCast(self)), memid, rgBstrNames, cMaxNames, pcNames); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITypeInfo_GetRefTypeOfImplType(self: *const T, index: u32, pRefType: ?*u32) HRESULT { return @as(*const ITypeInfo.VTable, @ptrCast(self.vtable)).GetRefTypeOfImplType(@as(*const ITypeInfo, @ptrCast(self)), index, pRefType); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITypeInfo_GetImplTypeFlags(self: *const T, index: u32, pImplTypeFlags: ?*i32) HRESULT { return @as(*const ITypeInfo.VTable, @ptrCast(self.vtable)).GetImplTypeFlags(@as(*const ITypeInfo, @ptrCast(self)), index, pImplTypeFlags); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITypeInfo_GetIDsOfNames(self: *const T, rgszNames: [*]?PWSTR, cNames: u32, pMemId: [*]i32) HRESULT { return @as(*const ITypeInfo.VTable, @ptrCast(self.vtable)).GetIDsOfNames(@as(*const ITypeInfo, @ptrCast(self)), rgszNames, cNames, pMemId); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITypeInfo_Invoke(self: *const T, pvInstance: ?*anyopaque, memid: i32, wFlags: u16, pDispParams: ?*DISPPARAMS, pVarResult: ?*VARIANT, pExcepInfo: ?*EXCEPINFO, puArgErr: ?*u32) HRESULT { return @as(*const ITypeInfo.VTable, @ptrCast(self.vtable)).Invoke(@as(*const ITypeInfo, @ptrCast(self)), pvInstance, memid, wFlags, pDispParams, pVarResult, pExcepInfo, puArgErr); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITypeInfo_GetDocumentation(self: *const T, memid: i32, pBstrName: ?*?BSTR, pBstrDocString: ?*?BSTR, pdwHelpContext: ?*u32, pBstrHelpFile: ?*?BSTR) HRESULT { return @as(*const ITypeInfo.VTable, @ptrCast(self.vtable)).GetDocumentation(@as(*const ITypeInfo, @ptrCast(self)), memid, pBstrName, pBstrDocString, pdwHelpContext, pBstrHelpFile); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITypeInfo_GetDllEntry(self: *const T, memid: i32, invKind: INVOKEKIND, pBstrDllName: ?*?BSTR, pBstrName: ?*?BSTR, pwOrdinal: ?*u16) HRESULT { return @as(*const ITypeInfo.VTable, @ptrCast(self.vtable)).GetDllEntry(@as(*const ITypeInfo, @ptrCast(self)), memid, invKind, pBstrDllName, pBstrName, pwOrdinal); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITypeInfo_GetRefTypeInfo(self: *const T, hRefType: u32, ppTInfo: ?*?*ITypeInfo) HRESULT { return @as(*const ITypeInfo.VTable, @ptrCast(self.vtable)).GetRefTypeInfo(@as(*const ITypeInfo, @ptrCast(self)), hRefType, ppTInfo); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITypeInfo_AddressOfMember(self: *const T, memid: i32, invKind: INVOKEKIND, ppv: ?*?*anyopaque) HRESULT { return @as(*const ITypeInfo.VTable, @ptrCast(self.vtable)).AddressOfMember(@as(*const ITypeInfo, @ptrCast(self)), memid, invKind, ppv); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITypeInfo_CreateInstance(self: *const T, pUnkOuter: ?*IUnknown, riid: ?*const Guid, ppvObj: ?*?*anyopaque) HRESULT { return @as(*const ITypeInfo.VTable, @ptrCast(self.vtable)).CreateInstance(@as(*const ITypeInfo, @ptrCast(self)), pUnkOuter, riid, ppvObj); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITypeInfo_GetMops(self: *const T, memid: i32, pBstrMops: ?*?BSTR) HRESULT { return @as(*const ITypeInfo.VTable, @ptrCast(self.vtable)).GetMops(@as(*const ITypeInfo, @ptrCast(self)), memid, pBstrMops); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITypeInfo_GetContainingTypeLib(self: *const T, ppTLib: ?*?*ITypeLib, pIndex: ?*u32) HRESULT { return @as(*const ITypeInfo.VTable, @ptrCast(self.vtable)).GetContainingTypeLib(@as(*const ITypeInfo, @ptrCast(self)), ppTLib, pIndex); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITypeInfo_ReleaseTypeAttr(self: *const T, pTypeAttr: ?*TYPEATTR) void { return @as(*const ITypeInfo.VTable, @ptrCast(self.vtable)).ReleaseTypeAttr(@as(*const ITypeInfo, @ptrCast(self)), pTypeAttr); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITypeInfo_ReleaseFuncDesc(self: *const T, pFuncDesc: ?*FUNCDESC) void { return @as(*const ITypeInfo.VTable, @ptrCast(self.vtable)).ReleaseFuncDesc(@as(*const ITypeInfo, @ptrCast(self)), pFuncDesc); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITypeInfo_ReleaseVarDesc(self: *const T, pVarDesc: ?*VARDESC) void { return @as(*const ITypeInfo.VTable, @ptrCast(self.vtable)).ReleaseVarDesc(@as(*const ITypeInfo, @ptrCast(self)), pVarDesc); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_ITypeInfo2_Value = Guid.initString("00020412-0000-0000-c000-000000000046"); pub const IID_ITypeInfo2 = &IID_ITypeInfo2_Value; pub const ITypeInfo2 = extern struct { pub const VTable = extern struct { base: ITypeInfo.VTable, GetTypeKind: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ITypeInfo2, pTypeKind: ?*TYPEKIND, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ITypeInfo2, pTypeKind: ?*TYPEKIND, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetTypeFlags: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ITypeInfo2, pTypeFlags: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ITypeInfo2, pTypeFlags: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetFuncIndexOfMemId: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ITypeInfo2, memid: i32, invKind: INVOKEKIND, pFuncIndex: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ITypeInfo2, memid: i32, invKind: INVOKEKIND, pFuncIndex: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetVarIndexOfMemId: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ITypeInfo2, memid: i32, pVarIndex: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ITypeInfo2, memid: i32, pVarIndex: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetCustData: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ITypeInfo2, guid: ?*const Guid, pVarVal: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ITypeInfo2, guid: ?*const Guid, pVarVal: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetFuncCustData: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ITypeInfo2, index: u32, guid: ?*const Guid, pVarVal: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ITypeInfo2, index: u32, guid: ?*const Guid, pVarVal: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetParamCustData: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ITypeInfo2, indexFunc: u32, indexParam: u32, guid: ?*const Guid, pVarVal: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ITypeInfo2, indexFunc: u32, indexParam: u32, guid: ?*const Guid, pVarVal: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetVarCustData: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ITypeInfo2, index: u32, guid: ?*const Guid, pVarVal: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ITypeInfo2, index: u32, guid: ?*const Guid, pVarVal: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetImplTypeCustData: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ITypeInfo2, index: u32, guid: ?*const Guid, pVarVal: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ITypeInfo2, index: u32, guid: ?*const Guid, pVarVal: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetDocumentation2: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ITypeInfo2, memid: i32, lcid: u32, pbstrHelpString: ?*?BSTR, pdwHelpStringContext: ?*u32, pbstrHelpStringDll: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ITypeInfo2, memid: i32, lcid: u32, pbstrHelpString: ?*?BSTR, pdwHelpStringContext: ?*u32, pbstrHelpStringDll: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetAllCustData: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ITypeInfo2, pCustData: ?*CUSTDATA, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ITypeInfo2, pCustData: ?*CUSTDATA, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetAllFuncCustData: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ITypeInfo2, index: u32, pCustData: ?*CUSTDATA, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ITypeInfo2, index: u32, pCustData: ?*CUSTDATA, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetAllParamCustData: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ITypeInfo2, indexFunc: u32, indexParam: u32, pCustData: ?*CUSTDATA, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ITypeInfo2, indexFunc: u32, indexParam: u32, pCustData: ?*CUSTDATA, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetAllVarCustData: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ITypeInfo2, index: u32, pCustData: ?*CUSTDATA, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ITypeInfo2, index: u32, pCustData: ?*CUSTDATA, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetAllImplTypeCustData: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ITypeInfo2, index: u32, pCustData: ?*CUSTDATA, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ITypeInfo2, index: u32, pCustData: ?*CUSTDATA, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace ITypeInfo.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITypeInfo2_GetTypeKind(self: *const T, pTypeKind: ?*TYPEKIND) HRESULT { return @as(*const ITypeInfo2.VTable, @ptrCast(self.vtable)).GetTypeKind(@as(*const ITypeInfo2, @ptrCast(self)), pTypeKind); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITypeInfo2_GetTypeFlags(self: *const T, pTypeFlags: ?*u32) HRESULT { return @as(*const ITypeInfo2.VTable, @ptrCast(self.vtable)).GetTypeFlags(@as(*const ITypeInfo2, @ptrCast(self)), pTypeFlags); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITypeInfo2_GetFuncIndexOfMemId(self: *const T, memid: i32, invKind: INVOKEKIND, pFuncIndex: ?*u32) HRESULT { return @as(*const ITypeInfo2.VTable, @ptrCast(self.vtable)).GetFuncIndexOfMemId(@as(*const ITypeInfo2, @ptrCast(self)), memid, invKind, pFuncIndex); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITypeInfo2_GetVarIndexOfMemId(self: *const T, memid: i32, pVarIndex: ?*u32) HRESULT { return @as(*const ITypeInfo2.VTable, @ptrCast(self.vtable)).GetVarIndexOfMemId(@as(*const ITypeInfo2, @ptrCast(self)), memid, pVarIndex); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITypeInfo2_GetCustData(self: *const T, guid: ?*const Guid, pVarVal: ?*VARIANT) HRESULT { return @as(*const ITypeInfo2.VTable, @ptrCast(self.vtable)).GetCustData(@as(*const ITypeInfo2, @ptrCast(self)), guid, pVarVal); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITypeInfo2_GetFuncCustData(self: *const T, index: u32, guid: ?*const Guid, pVarVal: ?*VARIANT) HRESULT { return @as(*const ITypeInfo2.VTable, @ptrCast(self.vtable)).GetFuncCustData(@as(*const ITypeInfo2, @ptrCast(self)), index, guid, pVarVal); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITypeInfo2_GetParamCustData(self: *const T, indexFunc: u32, indexParam: u32, guid: ?*const Guid, pVarVal: ?*VARIANT) HRESULT { return @as(*const ITypeInfo2.VTable, @ptrCast(self.vtable)).GetParamCustData(@as(*const ITypeInfo2, @ptrCast(self)), indexFunc, indexParam, guid, pVarVal); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITypeInfo2_GetVarCustData(self: *const T, index: u32, guid: ?*const Guid, pVarVal: ?*VARIANT) HRESULT { return @as(*const ITypeInfo2.VTable, @ptrCast(self.vtable)).GetVarCustData(@as(*const ITypeInfo2, @ptrCast(self)), index, guid, pVarVal); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITypeInfo2_GetImplTypeCustData(self: *const T, index: u32, guid: ?*const Guid, pVarVal: ?*VARIANT) HRESULT { return @as(*const ITypeInfo2.VTable, @ptrCast(self.vtable)).GetImplTypeCustData(@as(*const ITypeInfo2, @ptrCast(self)), index, guid, pVarVal); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITypeInfo2_GetDocumentation2(self: *const T, memid: i32, lcid: u32, pbstrHelpString: ?*?BSTR, pdwHelpStringContext: ?*u32, pbstrHelpStringDll: ?*?BSTR) HRESULT { return @as(*const ITypeInfo2.VTable, @ptrCast(self.vtable)).GetDocumentation2(@as(*const ITypeInfo2, @ptrCast(self)), memid, lcid, pbstrHelpString, pdwHelpStringContext, pbstrHelpStringDll); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITypeInfo2_GetAllCustData(self: *const T, pCustData: ?*CUSTDATA) HRESULT { return @as(*const ITypeInfo2.VTable, @ptrCast(self.vtable)).GetAllCustData(@as(*const ITypeInfo2, @ptrCast(self)), pCustData); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITypeInfo2_GetAllFuncCustData(self: *const T, index: u32, pCustData: ?*CUSTDATA) HRESULT { return @as(*const ITypeInfo2.VTable, @ptrCast(self.vtable)).GetAllFuncCustData(@as(*const ITypeInfo2, @ptrCast(self)), index, pCustData); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITypeInfo2_GetAllParamCustData(self: *const T, indexFunc: u32, indexParam: u32, pCustData: ?*CUSTDATA) HRESULT { return @as(*const ITypeInfo2.VTable, @ptrCast(self.vtable)).GetAllParamCustData(@as(*const ITypeInfo2, @ptrCast(self)), indexFunc, indexParam, pCustData); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITypeInfo2_GetAllVarCustData(self: *const T, index: u32, pCustData: ?*CUSTDATA) HRESULT { return @as(*const ITypeInfo2.VTable, @ptrCast(self.vtable)).GetAllVarCustData(@as(*const ITypeInfo2, @ptrCast(self)), index, pCustData); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITypeInfo2_GetAllImplTypeCustData(self: *const T, index: u32, pCustData: ?*CUSTDATA) HRESULT { return @as(*const ITypeInfo2.VTable, @ptrCast(self.vtable)).GetAllImplTypeCustData(@as(*const ITypeInfo2, @ptrCast(self)), index, pCustData); } }; } pub usingnamespace MethodMixin(@This()); }; pub const SYSKIND = enum(i32) { WIN16 = 0, WIN32 = 1, MAC = 2, WIN64 = 3, }; pub const SYS_WIN16 = SYSKIND.WIN16; pub const SYS_WIN32 = SYSKIND.WIN32; pub const SYS_MAC = SYSKIND.MAC; pub const SYS_WIN64 = SYSKIND.WIN64; pub const TLIBATTR = extern struct { guid: Guid, lcid: u32, syskind: SYSKIND, wMajorVerNum: u16, wMinorVerNum: u16, wLibFlags: u16, }; const IID_ITypeLib_Value = Guid.initString("00020402-0000-0000-c000-000000000046"); pub const IID_ITypeLib = &IID_ITypeLib_Value; pub const ITypeLib = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, GetTypeInfoCount: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ITypeLib, ) callconv(@import("std").os.windows.WINAPI) u32, else => *const fn ( self: *const ITypeLib, ) callconv(@import("std").os.windows.WINAPI) u32, }, GetTypeInfo: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ITypeLib, index: u32, ppTInfo: ?*?*ITypeInfo, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ITypeLib, index: u32, ppTInfo: ?*?*ITypeInfo, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetTypeInfoType: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ITypeLib, index: u32, pTKind: ?*TYPEKIND, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ITypeLib, index: u32, pTKind: ?*TYPEKIND, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetTypeInfoOfGuid: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ITypeLib, guid: ?*const Guid, ppTinfo: ?*?*ITypeInfo, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ITypeLib, guid: ?*const Guid, ppTinfo: ?*?*ITypeInfo, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetLibAttr: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ITypeLib, ppTLibAttr: ?*?*TLIBATTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ITypeLib, ppTLibAttr: ?*?*TLIBATTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetTypeComp: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ITypeLib, ppTComp: ?*?*ITypeComp, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ITypeLib, ppTComp: ?*?*ITypeComp, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetDocumentation: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ITypeLib, index: i32, pBstrName: ?*?BSTR, pBstrDocString: ?*?BSTR, pdwHelpContext: ?*u32, pBstrHelpFile: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ITypeLib, index: i32, pBstrName: ?*?BSTR, pBstrDocString: ?*?BSTR, pdwHelpContext: ?*u32, pBstrHelpFile: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, IsName: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ITypeLib, szNameBuf: ?PWSTR, lHashVal: u32, pfName: ?*BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ITypeLib, szNameBuf: ?PWSTR, lHashVal: u32, pfName: ?*BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, FindName: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ITypeLib, szNameBuf: ?PWSTR, lHashVal: u32, ppTInfo: [*]?*ITypeInfo, rgMemId: [*]i32, pcFound: ?*u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ITypeLib, szNameBuf: ?PWSTR, lHashVal: u32, ppTInfo: [*]?*ITypeInfo, rgMemId: [*]i32, pcFound: ?*u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, ReleaseTLibAttr: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ITypeLib, pTLibAttr: ?*TLIBATTR, ) callconv(@import("std").os.windows.WINAPI) void, else => *const fn ( self: *const ITypeLib, pTLibAttr: ?*TLIBATTR, ) callconv(@import("std").os.windows.WINAPI) void, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITypeLib_GetTypeInfoCount(self: *const T) u32 { return @as(*const ITypeLib.VTable, @ptrCast(self.vtable)).GetTypeInfoCount(@as(*const ITypeLib, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITypeLib_GetTypeInfo(self: *const T, index: u32, ppTInfo: ?*?*ITypeInfo) HRESULT { return @as(*const ITypeLib.VTable, @ptrCast(self.vtable)).GetTypeInfo(@as(*const ITypeLib, @ptrCast(self)), index, ppTInfo); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITypeLib_GetTypeInfoType(self: *const T, index: u32, pTKind: ?*TYPEKIND) HRESULT { return @as(*const ITypeLib.VTable, @ptrCast(self.vtable)).GetTypeInfoType(@as(*const ITypeLib, @ptrCast(self)), index, pTKind); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITypeLib_GetTypeInfoOfGuid(self: *const T, guid: ?*const Guid, ppTinfo: ?*?*ITypeInfo) HRESULT { return @as(*const ITypeLib.VTable, @ptrCast(self.vtable)).GetTypeInfoOfGuid(@as(*const ITypeLib, @ptrCast(self)), guid, ppTinfo); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITypeLib_GetLibAttr(self: *const T, ppTLibAttr: ?*?*TLIBATTR) HRESULT { return @as(*const ITypeLib.VTable, @ptrCast(self.vtable)).GetLibAttr(@as(*const ITypeLib, @ptrCast(self)), ppTLibAttr); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITypeLib_GetTypeComp(self: *const T, ppTComp: ?*?*ITypeComp) HRESULT { return @as(*const ITypeLib.VTable, @ptrCast(self.vtable)).GetTypeComp(@as(*const ITypeLib, @ptrCast(self)), ppTComp); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITypeLib_GetDocumentation(self: *const T, index: i32, pBstrName: ?*?BSTR, pBstrDocString: ?*?BSTR, pdwHelpContext: ?*u32, pBstrHelpFile: ?*?BSTR) HRESULT { return @as(*const ITypeLib.VTable, @ptrCast(self.vtable)).GetDocumentation(@as(*const ITypeLib, @ptrCast(self)), index, pBstrName, pBstrDocString, pdwHelpContext, pBstrHelpFile); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITypeLib_IsName(self: *const T, szNameBuf: ?PWSTR, lHashVal: u32, pfName: ?*BOOL) HRESULT { return @as(*const ITypeLib.VTable, @ptrCast(self.vtable)).IsName(@as(*const ITypeLib, @ptrCast(self)), szNameBuf, lHashVal, pfName); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITypeLib_FindName(self: *const T, szNameBuf: ?PWSTR, lHashVal: u32, ppTInfo: [*]?*ITypeInfo, rgMemId: [*]i32, pcFound: ?*u16) HRESULT { return @as(*const ITypeLib.VTable, @ptrCast(self.vtable)).FindName(@as(*const ITypeLib, @ptrCast(self)), szNameBuf, lHashVal, ppTInfo, rgMemId, pcFound); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITypeLib_ReleaseTLibAttr(self: *const T, pTLibAttr: ?*TLIBATTR) void { return @as(*const ITypeLib.VTable, @ptrCast(self.vtable)).ReleaseTLibAttr(@as(*const ITypeLib, @ptrCast(self)), pTLibAttr); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_ITypeLib2_Value = Guid.initString("00020411-0000-0000-c000-000000000046"); pub const IID_ITypeLib2 = &IID_ITypeLib2_Value; pub const ITypeLib2 = extern struct { pub const VTable = extern struct { base: ITypeLib.VTable, GetCustData: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ITypeLib2, guid: ?*const Guid, pVarVal: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ITypeLib2, guid: ?*const Guid, pVarVal: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetLibStatistics: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ITypeLib2, pcUniqueNames: ?*u32, pcchUniqueNames: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ITypeLib2, pcUniqueNames: ?*u32, pcchUniqueNames: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetDocumentation2: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ITypeLib2, index: i32, lcid: u32, pbstrHelpString: ?*?BSTR, pdwHelpStringContext: ?*u32, pbstrHelpStringDll: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ITypeLib2, index: i32, lcid: u32, pbstrHelpString: ?*?BSTR, pdwHelpStringContext: ?*u32, pbstrHelpStringDll: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetAllCustData: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ITypeLib2, pCustData: ?*CUSTDATA, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ITypeLib2, pCustData: ?*CUSTDATA, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace ITypeLib.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITypeLib2_GetCustData(self: *const T, guid: ?*const Guid, pVarVal: ?*VARIANT) HRESULT { return @as(*const ITypeLib2.VTable, @ptrCast(self.vtable)).GetCustData(@as(*const ITypeLib2, @ptrCast(self)), guid, pVarVal); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITypeLib2_GetLibStatistics(self: *const T, pcUniqueNames: ?*u32, pcchUniqueNames: ?*u32) HRESULT { return @as(*const ITypeLib2.VTable, @ptrCast(self.vtable)).GetLibStatistics(@as(*const ITypeLib2, @ptrCast(self)), pcUniqueNames, pcchUniqueNames); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITypeLib2_GetDocumentation2(self: *const T, index: i32, lcid: u32, pbstrHelpString: ?*?BSTR, pdwHelpStringContext: ?*u32, pbstrHelpStringDll: ?*?BSTR) HRESULT { return @as(*const ITypeLib2.VTable, @ptrCast(self.vtable)).GetDocumentation2(@as(*const ITypeLib2, @ptrCast(self)), index, lcid, pbstrHelpString, pdwHelpStringContext, pbstrHelpStringDll); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITypeLib2_GetAllCustData(self: *const T, pCustData: ?*CUSTDATA) HRESULT { return @as(*const ITypeLib2.VTable, @ptrCast(self.vtable)).GetAllCustData(@as(*const ITypeLib2, @ptrCast(self)), pCustData); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IErrorInfo_Value = Guid.initString("1cf2b120-547d-101b-8e65-08002b2bd119"); pub const IID_IErrorInfo = &IID_IErrorInfo_Value; pub const IErrorInfo = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, GetGUID: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IErrorInfo, pGUID: ?*Guid, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IErrorInfo, pGUID: ?*Guid, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetSource: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IErrorInfo, pBstrSource: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IErrorInfo, pBstrSource: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetDescription: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IErrorInfo, pBstrDescription: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IErrorInfo, pBstrDescription: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetHelpFile: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IErrorInfo, pBstrHelpFile: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IErrorInfo, pBstrHelpFile: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetHelpContext: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IErrorInfo, pdwHelpContext: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IErrorInfo, pdwHelpContext: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IErrorInfo_GetGUID(self: *const T, pGUID: ?*Guid) HRESULT { return @as(*const IErrorInfo.VTable, @ptrCast(self.vtable)).GetGUID(@as(*const IErrorInfo, @ptrCast(self)), pGUID); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IErrorInfo_GetSource(self: *const T, pBstrSource: ?*?BSTR) HRESULT { return @as(*const IErrorInfo.VTable, @ptrCast(self.vtable)).GetSource(@as(*const IErrorInfo, @ptrCast(self)), pBstrSource); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IErrorInfo_GetDescription(self: *const T, pBstrDescription: ?*?BSTR) HRESULT { return @as(*const IErrorInfo.VTable, @ptrCast(self.vtable)).GetDescription(@as(*const IErrorInfo, @ptrCast(self)), pBstrDescription); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IErrorInfo_GetHelpFile(self: *const T, pBstrHelpFile: ?*?BSTR) HRESULT { return @as(*const IErrorInfo.VTable, @ptrCast(self.vtable)).GetHelpFile(@as(*const IErrorInfo, @ptrCast(self)), pBstrHelpFile); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IErrorInfo_GetHelpContext(self: *const T, pdwHelpContext: ?*u32) HRESULT { return @as(*const IErrorInfo.VTable, @ptrCast(self.vtable)).GetHelpContext(@as(*const IErrorInfo, @ptrCast(self)), pdwHelpContext); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_ISupportErrorInfo_Value = Guid.initString("df0b3d60-548f-101b-8e65-08002b2bd119"); pub const IID_ISupportErrorInfo = &IID_ISupportErrorInfo_Value; pub const ISupportErrorInfo = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, InterfaceSupportsErrorInfo: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ISupportErrorInfo, riid: ?*const Guid, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ISupportErrorInfo, riid: ?*const Guid, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISupportErrorInfo_InterfaceSupportsErrorInfo(self: *const T, riid: ?*const Guid) HRESULT { return @as(*const ISupportErrorInfo.VTable, @ptrCast(self.vtable)).InterfaceSupportsErrorInfo(@as(*const ISupportErrorInfo, @ptrCast(self)), riid); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IErrorLog_Value = Guid.initString("3127ca40-446e-11ce-8135-00aa004bb851"); pub const IID_IErrorLog = &IID_IErrorLog_Value; pub const IErrorLog = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, AddError: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IErrorLog, pszPropName: ?[*:0]const u16, pExcepInfo: ?*EXCEPINFO, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IErrorLog, pszPropName: ?[*:0]const u16, pExcepInfo: ?*EXCEPINFO, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IErrorLog_AddError(self: *const T, pszPropName: ?[*:0]const u16, pExcepInfo: ?*EXCEPINFO) HRESULT { return @as(*const IErrorLog.VTable, @ptrCast(self.vtable)).AddError(@as(*const IErrorLog, @ptrCast(self)), pszPropName, pExcepInfo); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_ITypeLibRegistrationReader_Value = Guid.initString("ed6a8a2a-b160-4e77-8f73-aa7435cd5c27"); pub const IID_ITypeLibRegistrationReader = &IID_ITypeLibRegistrationReader_Value; pub const ITypeLibRegistrationReader = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, EnumTypeLibRegistrations: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ITypeLibRegistrationReader, ppEnumUnknown: ?*?*IEnumUnknown, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ITypeLibRegistrationReader, ppEnumUnknown: ?*?*IEnumUnknown, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITypeLibRegistrationReader_EnumTypeLibRegistrations(self: *const T, ppEnumUnknown: ?*?*IEnumUnknown) HRESULT { return @as(*const ITypeLibRegistrationReader.VTable, @ptrCast(self.vtable)).EnumTypeLibRegistrations(@as(*const ITypeLibRegistrationReader, @ptrCast(self)), ppEnumUnknown); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_ITypeLibRegistration_Value = Guid.initString("76a3e735-02df-4a12-98eb-043ad3600af3"); pub const IID_ITypeLibRegistration = &IID_ITypeLibRegistration_Value; pub const ITypeLibRegistration = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, GetGuid: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ITypeLibRegistration, pGuid: ?*Guid, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ITypeLibRegistration, pGuid: ?*Guid, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetVersion: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ITypeLibRegistration, pVersion: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ITypeLibRegistration, pVersion: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetLcid: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ITypeLibRegistration, pLcid: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ITypeLibRegistration, pLcid: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetWin32Path: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ITypeLibRegistration, pWin32Path: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ITypeLibRegistration, pWin32Path: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetWin64Path: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ITypeLibRegistration, pWin64Path: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ITypeLibRegistration, pWin64Path: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetDisplayName: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ITypeLibRegistration, pDisplayName: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ITypeLibRegistration, pDisplayName: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetFlags: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ITypeLibRegistration, pFlags: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ITypeLibRegistration, pFlags: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetHelpDir: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ITypeLibRegistration, pHelpDir: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ITypeLibRegistration, pHelpDir: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITypeLibRegistration_GetGuid(self: *const T, pGuid: ?*Guid) HRESULT { return @as(*const ITypeLibRegistration.VTable, @ptrCast(self.vtable)).GetGuid(@as(*const ITypeLibRegistration, @ptrCast(self)), pGuid); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITypeLibRegistration_GetVersion(self: *const T, pVersion: ?*?BSTR) HRESULT { return @as(*const ITypeLibRegistration.VTable, @ptrCast(self.vtable)).GetVersion(@as(*const ITypeLibRegistration, @ptrCast(self)), pVersion); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITypeLibRegistration_GetLcid(self: *const T, pLcid: ?*u32) HRESULT { return @as(*const ITypeLibRegistration.VTable, @ptrCast(self.vtable)).GetLcid(@as(*const ITypeLibRegistration, @ptrCast(self)), pLcid); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITypeLibRegistration_GetWin32Path(self: *const T, pWin32Path: ?*?BSTR) HRESULT { return @as(*const ITypeLibRegistration.VTable, @ptrCast(self.vtable)).GetWin32Path(@as(*const ITypeLibRegistration, @ptrCast(self)), pWin32Path); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITypeLibRegistration_GetWin64Path(self: *const T, pWin64Path: ?*?BSTR) HRESULT { return @as(*const ITypeLibRegistration.VTable, @ptrCast(self.vtable)).GetWin64Path(@as(*const ITypeLibRegistration, @ptrCast(self)), pWin64Path); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITypeLibRegistration_GetDisplayName(self: *const T, pDisplayName: ?*?BSTR) HRESULT { return @as(*const ITypeLibRegistration.VTable, @ptrCast(self.vtable)).GetDisplayName(@as(*const ITypeLibRegistration, @ptrCast(self)), pDisplayName); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITypeLibRegistration_GetFlags(self: *const T, pFlags: ?*u32) HRESULT { return @as(*const ITypeLibRegistration.VTable, @ptrCast(self.vtable)).GetFlags(@as(*const ITypeLibRegistration, @ptrCast(self)), pFlags); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITypeLibRegistration_GetHelpDir(self: *const T, pHelpDir: ?*?BSTR) HRESULT { return @as(*const ITypeLibRegistration.VTable, @ptrCast(self.vtable)).GetHelpDir(@as(*const ITypeLibRegistration, @ptrCast(self)), pHelpDir); } }; } pub usingnamespace MethodMixin(@This()); }; pub const CONNECTDATA = extern struct { pUnk: ?*IUnknown, dwCookie: u32, }; // TODO: this type is limited to platform 'windows5.0' const IID_IEnumConnections_Value = Guid.initString("b196b287-bab4-101a-b69c-00aa00341d07"); pub const IID_IEnumConnections = &IID_IEnumConnections_Value; pub const IEnumConnections = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, Next: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IEnumConnections, cConnections: u32, rgcd: [*]CONNECTDATA, pcFetched: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IEnumConnections, cConnections: u32, rgcd: [*]CONNECTDATA, pcFetched: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Skip: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IEnumConnections, cConnections: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IEnumConnections, cConnections: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Reset: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IEnumConnections, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IEnumConnections, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Clone: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IEnumConnections, ppEnum: ?*?*IEnumConnections, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IEnumConnections, ppEnum: ?*?*IEnumConnections, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IEnumConnections_Next(self: *const T, cConnections: u32, rgcd: [*]CONNECTDATA, pcFetched: ?*u32) HRESULT { return @as(*const IEnumConnections.VTable, @ptrCast(self.vtable)).Next(@as(*const IEnumConnections, @ptrCast(self)), cConnections, rgcd, pcFetched); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IEnumConnections_Skip(self: *const T, cConnections: u32) HRESULT { return @as(*const IEnumConnections.VTable, @ptrCast(self.vtable)).Skip(@as(*const IEnumConnections, @ptrCast(self)), cConnections); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IEnumConnections_Reset(self: *const T) HRESULT { return @as(*const IEnumConnections.VTable, @ptrCast(self.vtable)).Reset(@as(*const IEnumConnections, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IEnumConnections_Clone(self: *const T, ppEnum: ?*?*IEnumConnections) HRESULT { return @as(*const IEnumConnections.VTable, @ptrCast(self.vtable)).Clone(@as(*const IEnumConnections, @ptrCast(self)), ppEnum); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows5.0' const IID_IConnectionPoint_Value = Guid.initString("b196b286-bab4-101a-b69c-00aa00341d07"); pub const IID_IConnectionPoint = &IID_IConnectionPoint_Value; pub const IConnectionPoint = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, GetConnectionInterface: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IConnectionPoint, pIID: ?*Guid, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IConnectionPoint, pIID: ?*Guid, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetConnectionPointContainer: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IConnectionPoint, ppCPC: ?*?*IConnectionPointContainer, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IConnectionPoint, ppCPC: ?*?*IConnectionPointContainer, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Advise: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IConnectionPoint, pUnkSink: ?*IUnknown, pdwCookie: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IConnectionPoint, pUnkSink: ?*IUnknown, pdwCookie: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Unadvise: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IConnectionPoint, dwCookie: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IConnectionPoint, dwCookie: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, EnumConnections: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IConnectionPoint, ppEnum: ?*?*IEnumConnections, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IConnectionPoint, ppEnum: ?*?*IEnumConnections, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IConnectionPoint_GetConnectionInterface(self: *const T, pIID: ?*Guid) HRESULT { return @as(*const IConnectionPoint.VTable, @ptrCast(self.vtable)).GetConnectionInterface(@as(*const IConnectionPoint, @ptrCast(self)), pIID); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IConnectionPoint_GetConnectionPointContainer(self: *const T, ppCPC: ?*?*IConnectionPointContainer) HRESULT { return @as(*const IConnectionPoint.VTable, @ptrCast(self.vtable)).GetConnectionPointContainer(@as(*const IConnectionPoint, @ptrCast(self)), ppCPC); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IConnectionPoint_Advise(self: *const T, pUnkSink: ?*IUnknown, pdwCookie: ?*u32) HRESULT { return @as(*const IConnectionPoint.VTable, @ptrCast(self.vtable)).Advise(@as(*const IConnectionPoint, @ptrCast(self)), pUnkSink, pdwCookie); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IConnectionPoint_Unadvise(self: *const T, dwCookie: u32) HRESULT { return @as(*const IConnectionPoint.VTable, @ptrCast(self.vtable)).Unadvise(@as(*const IConnectionPoint, @ptrCast(self)), dwCookie); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IConnectionPoint_EnumConnections(self: *const T, ppEnum: ?*?*IEnumConnections) HRESULT { return @as(*const IConnectionPoint.VTable, @ptrCast(self.vtable)).EnumConnections(@as(*const IConnectionPoint, @ptrCast(self)), ppEnum); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows5.0' const IID_IEnumConnectionPoints_Value = Guid.initString("b196b285-bab4-101a-b69c-00aa00341d07"); pub const IID_IEnumConnectionPoints = &IID_IEnumConnectionPoints_Value; pub const IEnumConnectionPoints = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, Next: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IEnumConnectionPoints, cConnections: u32, ppCP: [*]?*IConnectionPoint, pcFetched: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IEnumConnectionPoints, cConnections: u32, ppCP: [*]?*IConnectionPoint, pcFetched: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Skip: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IEnumConnectionPoints, cConnections: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IEnumConnectionPoints, cConnections: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Reset: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IEnumConnectionPoints, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IEnumConnectionPoints, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Clone: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IEnumConnectionPoints, ppEnum: ?*?*IEnumConnectionPoints, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IEnumConnectionPoints, ppEnum: ?*?*IEnumConnectionPoints, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IEnumConnectionPoints_Next(self: *const T, cConnections: u32, ppCP: [*]?*IConnectionPoint, pcFetched: ?*u32) HRESULT { return @as(*const IEnumConnectionPoints.VTable, @ptrCast(self.vtable)).Next(@as(*const IEnumConnectionPoints, @ptrCast(self)), cConnections, ppCP, pcFetched); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IEnumConnectionPoints_Skip(self: *const T, cConnections: u32) HRESULT { return @as(*const IEnumConnectionPoints.VTable, @ptrCast(self.vtable)).Skip(@as(*const IEnumConnectionPoints, @ptrCast(self)), cConnections); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IEnumConnectionPoints_Reset(self: *const T) HRESULT { return @as(*const IEnumConnectionPoints.VTable, @ptrCast(self.vtable)).Reset(@as(*const IEnumConnectionPoints, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IEnumConnectionPoints_Clone(self: *const T, ppEnum: ?*?*IEnumConnectionPoints) HRESULT { return @as(*const IEnumConnectionPoints.VTable, @ptrCast(self.vtable)).Clone(@as(*const IEnumConnectionPoints, @ptrCast(self)), ppEnum); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows5.0' const IID_IConnectionPointContainer_Value = Guid.initString("b196b284-bab4-101a-b69c-00aa00341d07"); pub const IID_IConnectionPointContainer = &IID_IConnectionPointContainer_Value; pub const IConnectionPointContainer = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, EnumConnectionPoints: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IConnectionPointContainer, ppEnum: ?*?*IEnumConnectionPoints, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IConnectionPointContainer, ppEnum: ?*?*IEnumConnectionPoints, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, FindConnectionPoint: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IConnectionPointContainer, riid: ?*const Guid, ppCP: ?*?*IConnectionPoint, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IConnectionPointContainer, riid: ?*const Guid, ppCP: ?*?*IConnectionPoint, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IConnectionPointContainer_EnumConnectionPoints(self: *const T, ppEnum: ?*?*IEnumConnectionPoints) HRESULT { return @as(*const IConnectionPointContainer.VTable, @ptrCast(self.vtable)).EnumConnectionPoints(@as(*const IConnectionPointContainer, @ptrCast(self)), ppEnum); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IConnectionPointContainer_FindConnectionPoint(self: *const T, riid: ?*const Guid, ppCP: ?*?*IConnectionPoint) HRESULT { return @as(*const IConnectionPointContainer.VTable, @ptrCast(self.vtable)).FindConnectionPoint(@as(*const IConnectionPointContainer, @ptrCast(self)), riid, ppCP); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IPersistMemory_Value = Guid.initString("bd1ae5e0-a6ae-11ce-bd37-504200c10000"); pub const IID_IPersistMemory = &IID_IPersistMemory_Value; pub const IPersistMemory = extern struct { pub const VTable = extern struct { base: IPersist.VTable, IsDirty: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IPersistMemory, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IPersistMemory, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Load: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IPersistMemory, pMem: [*]u8, cbSize: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IPersistMemory, pMem: [*]u8, cbSize: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Save: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IPersistMemory, pMem: [*]u8, fClearDirty: BOOL, cbSize: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IPersistMemory, pMem: [*]u8, fClearDirty: BOOL, cbSize: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetSizeMax: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IPersistMemory, pCbSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IPersistMemory, pCbSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, InitNew: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IPersistMemory, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IPersistMemory, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IPersist.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPersistMemory_IsDirty(self: *const T) HRESULT { return @as(*const IPersistMemory.VTable, @ptrCast(self.vtable)).IsDirty(@as(*const IPersistMemory, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPersistMemory_Load(self: *const T, pMem: [*]u8, cbSize: u32) HRESULT { return @as(*const IPersistMemory.VTable, @ptrCast(self.vtable)).Load(@as(*const IPersistMemory, @ptrCast(self)), pMem, cbSize); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPersistMemory_Save(self: *const T, pMem: [*]u8, fClearDirty: BOOL, cbSize: u32) HRESULT { return @as(*const IPersistMemory.VTable, @ptrCast(self.vtable)).Save(@as(*const IPersistMemory, @ptrCast(self)), pMem, fClearDirty, cbSize); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPersistMemory_GetSizeMax(self: *const T, pCbSize: ?*u32) HRESULT { return @as(*const IPersistMemory.VTable, @ptrCast(self.vtable)).GetSizeMax(@as(*const IPersistMemory, @ptrCast(self)), pCbSize); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPersistMemory_InitNew(self: *const T) HRESULT { return @as(*const IPersistMemory.VTable, @ptrCast(self.vtable)).InitNew(@as(*const IPersistMemory, @ptrCast(self))); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows5.0' const IID_IPersistStreamInit_Value = Guid.initString("7fd52380-4e07-101b-ae2d-08002b2ec713"); pub const IID_IPersistStreamInit = &IID_IPersistStreamInit_Value; pub const IPersistStreamInit = extern struct { pub const VTable = extern struct { base: IPersist.VTable, IsDirty: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IPersistStreamInit, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IPersistStreamInit, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Load: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IPersistStreamInit, pStm: ?*IStream, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IPersistStreamInit, pStm: ?*IStream, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Save: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IPersistStreamInit, pStm: ?*IStream, fClearDirty: BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IPersistStreamInit, pStm: ?*IStream, fClearDirty: BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetSizeMax: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IPersistStreamInit, pCbSize: ?*ULARGE_INTEGER, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IPersistStreamInit, pCbSize: ?*ULARGE_INTEGER, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, InitNew: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IPersistStreamInit, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IPersistStreamInit, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IPersist.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPersistStreamInit_IsDirty(self: *const T) HRESULT { return @as(*const IPersistStreamInit.VTable, @ptrCast(self.vtable)).IsDirty(@as(*const IPersistStreamInit, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPersistStreamInit_Load(self: *const T, pStm: ?*IStream) HRESULT { return @as(*const IPersistStreamInit.VTable, @ptrCast(self.vtable)).Load(@as(*const IPersistStreamInit, @ptrCast(self)), pStm); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPersistStreamInit_Save(self: *const T, pStm: ?*IStream, fClearDirty: BOOL) HRESULT { return @as(*const IPersistStreamInit.VTable, @ptrCast(self.vtable)).Save(@as(*const IPersistStreamInit, @ptrCast(self)), pStm, fClearDirty); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPersistStreamInit_GetSizeMax(self: *const T, pCbSize: ?*ULARGE_INTEGER) HRESULT { return @as(*const IPersistStreamInit.VTable, @ptrCast(self.vtable)).GetSizeMax(@as(*const IPersistStreamInit, @ptrCast(self)), pCbSize); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPersistStreamInit_InitNew(self: *const T) HRESULT { return @as(*const IPersistStreamInit.VTable, @ptrCast(self.vtable)).InitNew(@as(*const IPersistStreamInit, @ptrCast(self))); } }; } pub usingnamespace MethodMixin(@This()); }; //-------------------------------------------------------------------------------- // Section: Functions (110) //-------------------------------------------------------------------------------- pub extern "ole32" fn CoBuildVersion() callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'windows5.0' pub extern "ole32" fn CoInitialize( pvReserved: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) HRESULT; // TODO: this type is limited to platform 'windows5.0' pub extern "ole32" fn CoRegisterMallocSpy( pMallocSpy: ?*IMallocSpy, ) callconv(@import("std").os.windows.WINAPI) HRESULT; // TODO: this type is limited to platform 'windows5.0' pub extern "ole32" fn CoRevokeMallocSpy() callconv(@import("std").os.windows.WINAPI) HRESULT; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "ole32" fn CoRegisterInitializeSpy( pSpy: ?*IInitializeSpy, puliCookie: ?*ULARGE_INTEGER, ) callconv(@import("std").os.windows.WINAPI) HRESULT; // TODO: this type is limited to platform 'windows5.0' pub extern "ole32" fn CoRevokeInitializeSpy( uliCookie: ULARGE_INTEGER, ) callconv(@import("std").os.windows.WINAPI) HRESULT; // TODO: this type is limited to platform 'windows5.0' pub extern "ole32" fn CoGetSystemSecurityPermissions( comSDType: COMSD, ppSD: ?*?*SECURITY_DESCRIPTOR, ) callconv(@import("std").os.windows.WINAPI) HRESULT; // TODO: this type is limited to platform 'windows5.0' pub extern "ole32" fn CoLoadLibrary( lpszLibName: ?PWSTR, bAutoFree: BOOL, ) callconv(@import("std").os.windows.WINAPI) ?HINSTANCE; // TODO: this type is limited to platform 'windows5.0' pub extern "ole32" fn CoFreeLibrary( hInst: ?HINSTANCE, ) callconv(@import("std").os.windows.WINAPI) void; // TODO: this type is limited to platform 'windows5.0' pub extern "ole32" fn CoFreeAllLibraries() callconv(@import("std").os.windows.WINAPI) void; // TODO: this type is limited to platform 'windows5.0' pub extern "ole32" fn CoAllowSetForegroundWindow( pUnk: ?*IUnknown, lpvReserved: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) HRESULT; pub extern "ole32" fn DcomChannelSetHResult( pvReserved: ?*anyopaque, pulReserved: ?*u32, appsHR: HRESULT, ) callconv(@import("std").os.windows.WINAPI) HRESULT; // TODO: this type is limited to platform 'windows5.0' pub extern "ole32" fn CoIsOle1Class( rclsid: ?*const Guid, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows5.0' pub extern "ole32" fn CLSIDFromProgIDEx( lpszProgID: ?[*:0]const u16, lpclsid: ?*Guid, ) callconv(@import("std").os.windows.WINAPI) HRESULT; // TODO: this type is limited to platform 'windows5.0' pub extern "ole32" fn CoFileTimeToDosDateTime( lpFileTime: ?*FILETIME, lpDosDate: ?*u16, lpDosTime: ?*u16, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows5.0' pub extern "ole32" fn CoDosDateTimeToFileTime( nDosDate: u16, nDosTime: u16, lpFileTime: ?*FILETIME, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows5.0' pub extern "ole32" fn CoFileTimeNow( lpFileTime: ?*FILETIME, ) callconv(@import("std").os.windows.WINAPI) HRESULT; pub extern "ole32" fn CoRegisterChannelHook( ExtensionUuid: ?*const Guid, pChannelHook: ?*IChannelHook, ) callconv(@import("std").os.windows.WINAPI) HRESULT; // TODO: this type is limited to platform 'windows5.0' pub extern "ole32" fn CoTreatAsClass( clsidOld: ?*const Guid, clsidNew: ?*const Guid, ) callconv(@import("std").os.windows.WINAPI) HRESULT; // TODO: this type is limited to platform 'windows5.0' pub extern "ole32" fn CreateDataAdviseHolder( ppDAHolder: ?*?*IDataAdviseHolder, ) callconv(@import("std").os.windows.WINAPI) HRESULT; // TODO: this type is limited to platform 'windows5.0' pub extern "ole32" fn CreateDataCache( pUnkOuter: ?*IUnknown, rclsid: ?*const Guid, iid: ?*const Guid, ppv: ?*?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) HRESULT; pub extern "ole32" fn CoInstall( pbc: ?*IBindCtx, dwFlags: u32, pClassSpec: ?*uCLSSPEC, pQuery: ?*QUERYCONTEXT, pszCodeBase: ?PWSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT; // TODO: this type is limited to platform 'windows5.0' pub extern "ole32" fn BindMoniker( pmk: ?*IMoniker, grfOpt: u32, iidResult: ?*const Guid, ppvResult: ?*?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) HRESULT; // TODO: this type is limited to platform 'windows5.0' pub extern "ole32" fn CoGetObject( pszName: ?[*:0]const u16, pBindOptions: ?*BIND_OPTS, riid: ?*const Guid, ppv: ?*?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) HRESULT; // TODO: this type is limited to platform 'windows5.0' pub extern "ole32" fn MkParseDisplayName( pbc: ?*IBindCtx, szUserName: ?[*:0]const u16, pchEaten: ?*u32, ppmk: ?*?*IMoniker, ) callconv(@import("std").os.windows.WINAPI) HRESULT; // TODO: this type is limited to platform 'windows5.0' pub extern "ole32" fn MonikerRelativePathTo( pmkSrc: ?*IMoniker, pmkDest: ?*IMoniker, ppmkRelPath: ?*?*IMoniker, dwReserved: BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT; // TODO: this type is limited to platform 'windows5.0' pub extern "ole32" fn MonikerCommonPrefixWith( pmkThis: ?*IMoniker, pmkOther: ?*IMoniker, ppmkCommon: ?*?*IMoniker, ) callconv(@import("std").os.windows.WINAPI) HRESULT; // TODO: this type is limited to platform 'windows5.0' pub extern "ole32" fn CreateBindCtx( reserved: u32, ppbc: ?*?*IBindCtx, ) callconv(@import("std").os.windows.WINAPI) HRESULT; // TODO: this type is limited to platform 'windows5.0' pub extern "ole32" fn CreateGenericComposite( pmkFirst: ?*IMoniker, pmkRest: ?*IMoniker, ppmkComposite: ?*?*IMoniker, ) callconv(@import("std").os.windows.WINAPI) HRESULT; // TODO: this type is limited to platform 'windows5.0' pub extern "ole32" fn GetClassFile( szFilename: ?[*:0]const u16, pclsid: ?*Guid, ) callconv(@import("std").os.windows.WINAPI) HRESULT; // TODO: this type is limited to platform 'windows5.0' pub extern "ole32" fn CreateClassMoniker( rclsid: ?*const Guid, ppmk: ?*?*IMoniker, ) callconv(@import("std").os.windows.WINAPI) HRESULT; // TODO: this type is limited to platform 'windows5.0' pub extern "ole32" fn CreateFileMoniker( lpszPathName: ?[*:0]const u16, ppmk: ?*?*IMoniker, ) callconv(@import("std").os.windows.WINAPI) HRESULT; // TODO: this type is limited to platform 'windows5.0' pub extern "ole32" fn CreateItemMoniker( lpszDelim: ?[*:0]const u16, lpszItem: ?[*:0]const u16, ppmk: ?*?*IMoniker, ) callconv(@import("std").os.windows.WINAPI) HRESULT; // TODO: this type is limited to platform 'windows5.0' pub extern "ole32" fn CreateAntiMoniker( ppmk: ?*?*IMoniker, ) callconv(@import("std").os.windows.WINAPI) HRESULT; // TODO: this type is limited to platform 'windows5.0' pub extern "ole32" fn CreatePointerMoniker( punk: ?*IUnknown, ppmk: ?*?*IMoniker, ) callconv(@import("std").os.windows.WINAPI) HRESULT; // TODO: this type is limited to platform 'windows5.0' pub extern "ole32" fn CreateObjrefMoniker( punk: ?*IUnknown, ppmk: ?*?*IMoniker, ) callconv(@import("std").os.windows.WINAPI) HRESULT; // TODO: this type is limited to platform 'windows5.0' pub extern "ole32" fn GetRunningObjectTable( reserved: u32, pprot: ?*?*IRunningObjectTable, ) callconv(@import("std").os.windows.WINAPI) HRESULT; pub extern "ole32" fn CreateStdProgressIndicator( hwndParent: ?HWND, pszTitle: ?[*:0]const u16, pIbscCaller: ?*IBindStatusCallback, ppIbsc: ?*?*IBindStatusCallback, ) callconv(@import("std").os.windows.WINAPI) HRESULT; // TODO: this type is limited to platform 'windows5.0' pub extern "ole32" fn CoGetMalloc( dwMemContext: u32, ppMalloc: ?*?*IMalloc, ) callconv(@import("std").os.windows.WINAPI) HRESULT; // TODO: this type is limited to platform 'windows5.0' pub extern "ole32" fn CoUninitialize() callconv(@import("std").os.windows.WINAPI) void; // TODO: this type is limited to platform 'windows5.0' pub extern "ole32" fn CoGetCurrentProcess() callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'windows5.0' pub extern "ole32" fn CoInitializeEx( pvReserved: ?*anyopaque, dwCoInit: COINIT, ) callconv(@import("std").os.windows.WINAPI) HRESULT; // TODO: this type is limited to platform 'windows5.0' pub extern "ole32" fn CoGetCallerTID( lpdwTID: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT; // TODO: this type is limited to platform 'windows5.0' pub extern "ole32" fn CoGetCurrentLogicalThreadId( pguid: ?*Guid, ) callconv(@import("std").os.windows.WINAPI) HRESULT; // TODO: this type is limited to platform 'windows5.0' pub extern "ole32" fn CoGetContextToken( pToken: ?*usize, ) callconv(@import("std").os.windows.WINAPI) HRESULT; // TODO: this type is limited to platform 'windows6.1' pub extern "ole32" fn CoGetApartmentType( pAptType: ?*APTTYPE, pAptQualifier: ?*APTTYPEQUALIFIER, ) callconv(@import("std").os.windows.WINAPI) HRESULT; pub extern "ole32" fn CoIncrementMTAUsage( pCookie: ?*CO_MTA_USAGE_COOKIE, ) callconv(@import("std").os.windows.WINAPI) HRESULT; pub extern "ole32" fn CoDecrementMTAUsage( Cookie: CO_MTA_USAGE_COOKIE, ) callconv(@import("std").os.windows.WINAPI) HRESULT; // TODO: this type is limited to platform 'windows8.0' pub extern "ole32" fn CoAllowUnmarshalerCLSID( clsid: ?*const Guid, ) callconv(@import("std").os.windows.WINAPI) HRESULT; // TODO: this type is limited to platform 'windows5.0' pub extern "ole32" fn CoGetObjectContext( riid: ?*const Guid, ppv: ?*?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) HRESULT; // TODO: this type is limited to platform 'windows5.0' pub extern "ole32" fn CoGetClassObject( rclsid: ?*const Guid, dwClsContext: CLSCTX, pvReserved: ?*anyopaque, riid: ?*const Guid, ppv: ?*?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) HRESULT; // TODO: this type is limited to platform 'windows5.0' pub extern "ole32" fn CoRegisterClassObject( rclsid: ?*const Guid, pUnk: ?*IUnknown, dwClsContext: CLSCTX, flags: u32, lpdwRegister: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT; // TODO: this type is limited to platform 'windows5.0' pub extern "ole32" fn CoRevokeClassObject( dwRegister: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT; // TODO: this type is limited to platform 'windows5.0' pub extern "ole32" fn CoResumeClassObjects() callconv(@import("std").os.windows.WINAPI) HRESULT; // TODO: this type is limited to platform 'windows5.0' pub extern "ole32" fn CoSuspendClassObjects() callconv(@import("std").os.windows.WINAPI) HRESULT; // TODO: this type is limited to platform 'windows5.0' pub extern "ole32" fn CoAddRefServerProcess() callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'windows5.0' pub extern "ole32" fn CoReleaseServerProcess() callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'windows5.0' pub extern "ole32" fn CoGetPSClsid( riid: ?*const Guid, pClsid: ?*Guid, ) callconv(@import("std").os.windows.WINAPI) HRESULT; // TODO: this type is limited to platform 'windows5.0' pub extern "ole32" fn CoRegisterPSClsid( riid: ?*const Guid, rclsid: ?*const Guid, ) callconv(@import("std").os.windows.WINAPI) HRESULT; // TODO: this type is limited to platform 'windows5.0' pub extern "ole32" fn CoRegisterSurrogate( pSurrogate: ?*ISurrogate, ) callconv(@import("std").os.windows.WINAPI) HRESULT; // TODO: this type is limited to platform 'windows5.0' pub extern "ole32" fn CoDisconnectObject( pUnk: ?*IUnknown, dwReserved: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT; // TODO: this type is limited to platform 'windows5.0' pub extern "ole32" fn CoLockObjectExternal( pUnk: ?*IUnknown, fLock: BOOL, fLastUnlockReleases: BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT; // TODO: this type is limited to platform 'windows5.0' pub extern "ole32" fn CoIsHandlerConnected( pUnk: ?*IUnknown, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows5.0' pub extern "ole32" fn CoCreateFreeThreadedMarshaler( punkOuter: ?*IUnknown, ppunkMarshal: ?*?*IUnknown, ) callconv(@import("std").os.windows.WINAPI) HRESULT; // TODO: this type is limited to platform 'windows5.0' pub extern "ole32" fn CoFreeUnusedLibraries() callconv(@import("std").os.windows.WINAPI) void; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "ole32" fn CoFreeUnusedLibrariesEx( dwUnloadDelay: u32, dwReserved: u32, ) callconv(@import("std").os.windows.WINAPI) void; // TODO: this type is limited to platform 'windows6.0.6000' pub extern "ole32" fn CoDisconnectContext( dwTimeout: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT; // TODO: this type is limited to platform 'windows5.0' pub extern "ole32" fn CoInitializeSecurity( pSecDesc: ?*SECURITY_DESCRIPTOR, cAuthSvc: i32, asAuthSvc: ?[*]SOLE_AUTHENTICATION_SERVICE, pReserved1: ?*anyopaque, dwAuthnLevel: RPC_C_AUTHN_LEVEL, dwImpLevel: RPC_C_IMP_LEVEL, pAuthList: ?*anyopaque, dwCapabilities: EOLE_AUTHENTICATION_CAPABILITIES, pReserved3: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) HRESULT; // TODO: this type is limited to platform 'windows5.0' pub extern "ole32" fn CoGetCallContext( riid: ?*const Guid, ppInterface: ?*?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) HRESULT; // TODO: this type is limited to platform 'windows5.0' pub extern "ole32" fn CoQueryProxyBlanket( pProxy: ?*IUnknown, pwAuthnSvc: ?*u32, pAuthzSvc: ?*u32, pServerPrincName: ?*?PWSTR, pAuthnLevel: ?*u32, pImpLevel: ?*u32, pAuthInfo: ?*?*anyopaque, pCapabilites: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT; // TODO: this type is limited to platform 'windows5.0' pub extern "ole32" fn CoSetProxyBlanket( pProxy: ?*IUnknown, dwAuthnSvc: u32, dwAuthzSvc: u32, pServerPrincName: ?PWSTR, dwAuthnLevel: RPC_C_AUTHN_LEVEL, dwImpLevel: RPC_C_IMP_LEVEL, pAuthInfo: ?*anyopaque, dwCapabilities: EOLE_AUTHENTICATION_CAPABILITIES, ) callconv(@import("std").os.windows.WINAPI) HRESULT; // TODO: this type is limited to platform 'windows5.0' pub extern "ole32" fn CoCopyProxy( pProxy: ?*IUnknown, ppCopy: ?*?*IUnknown, ) callconv(@import("std").os.windows.WINAPI) HRESULT; // TODO: this type is limited to platform 'windows5.0' pub extern "ole32" fn CoQueryClientBlanket( pAuthnSvc: ?*u32, pAuthzSvc: ?*u32, pServerPrincName: ?*?PWSTR, pAuthnLevel: ?*u32, pImpLevel: ?*u32, pPrivs: ?*?*anyopaque, pCapabilities: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT; // TODO: this type is limited to platform 'windows5.0' pub extern "ole32" fn CoImpersonateClient() callconv(@import("std").os.windows.WINAPI) HRESULT; // TODO: this type is limited to platform 'windows5.0' pub extern "ole32" fn CoRevertToSelf() callconv(@import("std").os.windows.WINAPI) HRESULT; // TODO: this type is limited to platform 'windows5.0' pub extern "ole32" fn CoQueryAuthenticationServices( pcAuthSvc: ?*u32, asAuthSvc: ?*?*SOLE_AUTHENTICATION_SERVICE, ) callconv(@import("std").os.windows.WINAPI) HRESULT; // TODO: this type is limited to platform 'windows5.0' pub extern "ole32" fn CoSwitchCallContext( pNewObject: ?*IUnknown, ppOldObject: ?*?*IUnknown, ) callconv(@import("std").os.windows.WINAPI) HRESULT; // TODO: this type is limited to platform 'windows5.0' pub extern "ole32" fn CoCreateInstance( rclsid: ?*const Guid, pUnkOuter: ?*IUnknown, dwClsContext: CLSCTX, riid: *const Guid, ppv: ?*?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) HRESULT; // TODO: this type is limited to platform 'windows5.0' pub extern "ole32" fn CoCreateInstanceEx( Clsid: ?*const Guid, punkOuter: ?*IUnknown, dwClsCtx: CLSCTX, pServerInfo: ?*COSERVERINFO, dwCount: u32, pResults: [*]MULTI_QI, ) callconv(@import("std").os.windows.WINAPI) HRESULT; // TODO: this type is limited to platform 'windows8.0' pub extern "ole32" fn CoCreateInstanceFromApp( Clsid: ?*const Guid, punkOuter: ?*IUnknown, dwClsCtx: CLSCTX, reserved: ?*anyopaque, dwCount: u32, pResults: [*]MULTI_QI, ) callconv(@import("std").os.windows.WINAPI) HRESULT; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "ole32" fn CoRegisterActivationFilter( pActivationFilter: ?*IActivationFilter, ) callconv(@import("std").os.windows.WINAPI) HRESULT; // TODO: this type is limited to platform 'windows5.0' pub extern "ole32" fn CoGetCancelObject( dwThreadId: u32, iid: ?*const Guid, ppUnk: ?*?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) HRESULT; // TODO: this type is limited to platform 'windows5.0' pub extern "ole32" fn CoSetCancelObject( pUnk: ?*IUnknown, ) callconv(@import("std").os.windows.WINAPI) HRESULT; // TODO: this type is limited to platform 'windows5.0' pub extern "ole32" fn CoCancelCall( dwThreadId: u32, ulTimeout: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT; // TODO: this type is limited to platform 'windows5.0' pub extern "ole32" fn CoTestCancel() callconv(@import("std").os.windows.WINAPI) HRESULT; // TODO: this type is limited to platform 'windows5.0' pub extern "ole32" fn CoEnableCallCancellation( pReserved: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) HRESULT; // TODO: this type is limited to platform 'windows5.0' pub extern "ole32" fn CoDisableCallCancellation( pReserved: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) HRESULT; // TODO: this type is limited to platform 'windows5.0' pub extern "ole32" fn StringFromCLSID( rclsid: ?*const Guid, lplpsz: ?*?PWSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT; // TODO: this type is limited to platform 'windows5.0' pub extern "ole32" fn CLSIDFromString( lpsz: ?[*:0]const u16, pclsid: ?*Guid, ) callconv(@import("std").os.windows.WINAPI) HRESULT; // TODO: this type is limited to platform 'windows5.0' pub extern "ole32" fn StringFromIID( rclsid: ?*const Guid, lplpsz: ?*?PWSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT; // TODO: this type is limited to platform 'windows5.0' pub extern "ole32" fn IIDFromString( lpsz: ?[*:0]const u16, lpiid: ?*Guid, ) callconv(@import("std").os.windows.WINAPI) HRESULT; // TODO: this type is limited to platform 'windows5.0' pub extern "ole32" fn ProgIDFromCLSID( clsid: ?*const Guid, lplpszProgID: ?*?PWSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT; // TODO: this type is limited to platform 'windows5.0' pub extern "ole32" fn CLSIDFromProgID( lpszProgID: ?[*:0]const u16, lpclsid: ?*Guid, ) callconv(@import("std").os.windows.WINAPI) HRESULT; // TODO: this type is limited to platform 'windows5.0' pub extern "ole32" fn StringFromGUID2( rguid: ?*const Guid, lpsz: [*:0]u16, cchMax: i32, ) callconv(@import("std").os.windows.WINAPI) i32; // TODO: this type is limited to platform 'windows5.0' pub extern "ole32" fn CoCreateGuid( pguid: ?*Guid, ) callconv(@import("std").os.windows.WINAPI) HRESULT; // TODO: this type is limited to platform 'windows5.0' pub extern "ole32" fn CoWaitForMultipleHandles( dwFlags: u32, dwTimeout: u32, cHandles: u32, pHandles: [*]?HANDLE, lpdwindex: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT; pub extern "ole32" fn CoWaitForMultipleObjects( dwFlags: u32, dwTimeout: u32, cHandles: u32, pHandles: [*]const ?HANDLE, lpdwindex: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT; // TODO: this type is limited to platform 'windows5.0' pub extern "ole32" fn CoGetTreatAsClass( clsidOld: ?*const Guid, pClsidNew: ?*Guid, ) callconv(@import("std").os.windows.WINAPI) HRESULT; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "ole32" fn CoInvalidateRemoteMachineBindings( pszMachineName: ?PWSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT; // TODO: this type is limited to platform 'windows5.0' pub extern "ole32" fn CoTaskMemAlloc( cb: usize, ) callconv(@import("std").os.windows.WINAPI) ?*anyopaque; // TODO: this type is limited to platform 'windows5.0' pub extern "ole32" fn CoTaskMemRealloc( pv: ?*anyopaque, cb: usize, ) callconv(@import("std").os.windows.WINAPI) ?*anyopaque; // TODO: this type is limited to platform 'windows5.0' pub extern "ole32" fn CoTaskMemFree( pv: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) void; pub extern "ole32" fn CoRegisterDeviceCatalog( deviceInstanceId: ?[*:0]const u16, cookie: ?*CO_DEVICE_CATALOG_COOKIE, ) callconv(@import("std").os.windows.WINAPI) HRESULT; pub extern "ole32" fn CoRevokeDeviceCatalog( cookie: CO_DEVICE_CATALOG_COOKIE, ) callconv(@import("std").os.windows.WINAPI) HRESULT; pub extern "urlmon" fn CreateUri( pwzURI: ?[*:0]const u16, dwFlags: URI_CREATE_FLAGS, dwReserved: usize, ppURI: ?*?*IUri, ) callconv(@import("std").os.windows.WINAPI) HRESULT; pub extern "urlmon" fn CreateUriWithFragment( pwzURI: ?[*:0]const u16, pwzFragment: ?[*:0]const u16, dwFlags: u32, dwReserved: usize, ppURI: ?*?*IUri, ) callconv(@import("std").os.windows.WINAPI) HRESULT; pub extern "urlmon" fn CreateUriFromMultiByteString( pszANSIInputUri: ?[*:0]const u8, dwEncodingFlags: u32, dwCodePage: u32, dwCreateFlags: u32, dwReserved: usize, ppUri: ?*?*IUri, ) callconv(@import("std").os.windows.WINAPI) HRESULT; pub extern "urlmon" fn CreateIUriBuilder( pIUri: ?*IUri, dwFlags: u32, dwReserved: usize, ppIUriBuilder: ?*?*IUriBuilder, ) callconv(@import("std").os.windows.WINAPI) HRESULT; pub extern "oleaut32" fn SetErrorInfo( dwReserved: u32, perrinfo: ?*IErrorInfo, ) callconv(@import("std").os.windows.WINAPI) HRESULT; pub extern "oleaut32" fn GetErrorInfo( dwReserved: u32, pperrinfo: ?*?*IErrorInfo, ) callconv(@import("std").os.windows.WINAPI) HRESULT; //-------------------------------------------------------------------------------- // Section: Unicode Aliases (0) //-------------------------------------------------------------------------------- const thismodule = @This(); pub usingnamespace switch (@import("../zig.zig").unicode_mode) { .ansi => struct {}, .wide => struct {}, .unspecified => if (@import("builtin").is_test) struct {} else struct {}, }; //-------------------------------------------------------------------------------- // Section: Imports (27) //-------------------------------------------------------------------------------- const Guid = @import("../zig.zig").Guid; const ARRAYDESC = @import("../system/ole.zig").ARRAYDESC; const BOOL = @import("../foundation.zig").BOOL; const BSTR = @import("../foundation.zig").BSTR; const CHAR = @import("../foundation.zig").CHAR; const DECIMAL = @import("../foundation.zig").DECIMAL; const FILETIME = @import("../foundation.zig").FILETIME; const HANDLE = @import("../foundation.zig").HANDLE; const HBITMAP = @import("../graphics/gdi.zig").HBITMAP; const HENHMETAFILE = @import("../graphics/gdi.zig").HENHMETAFILE; const HINSTANCE = @import("../foundation.zig").HINSTANCE; const HRESULT = @import("../foundation.zig").HRESULT; const HWND = @import("../foundation.zig").HWND; const IRecordInfo = @import("../system/ole.zig").IRecordInfo; const IStorage = @import("../system/com/structured_storage.zig").IStorage; const LARGE_INTEGER = @import("../foundation.zig").LARGE_INTEGER; const PARAMDESC = @import("../system/ole.zig").PARAMDESC; const PSTR = @import("../foundation.zig").PSTR; const PWSTR = @import("../foundation.zig").PWSTR; const SECURITY_ATTRIBUTES = @import("../security.zig").SECURITY_ATTRIBUTES; const SECURITY_DESCRIPTOR = @import("../security.zig").SECURITY_DESCRIPTOR; const ULARGE_INTEGER = @import("../foundation.zig").ULARGE_INTEGER; const userHBITMAP = @import("../system/system_services.zig").userHBITMAP; const userHENHMETAFILE = @import("../system/system_services.zig").userHENHMETAFILE; const userHGLOBAL = @import("../system/system_services.zig").userHGLOBAL; const userHMETAFILEPICT = @import("../system/system_services.zig").userHMETAFILEPICT; const userHPALETTE = @import("../system/system_services.zig").userHPALETTE; test { // The following '_ = <FuncPtrType>' lines are a workaround for https://github.com/ziglang/zig/issues/4476 if (@hasDecl(@This(), "LPFNGETCLASSOBJECT")) { _ = LPFNGETCLASSOBJECT; } if (@hasDecl(@This(), "LPFNCANUNLOADNOW")) { _ = LPFNCANUNLOADNOW; } if (@hasDecl(@This(), "PFNCONTEXTCALL")) { _ = PFNCONTEXTCALL; } @setEvalBranchQuota(comptime @import("std").meta.declarations(@This()).len * 3); // reference all the pub declarations if (!@import("builtin").is_test) return; inline for (comptime @import("std").meta.declarations(@This())) |decl| { if (decl.is_pub) { _ = @field(@This(), decl.name); } } } //-------------------------------------------------------------------------------- // Section: SubModules (7) //-------------------------------------------------------------------------------- pub const call_obj = @import("com/call_obj.zig"); pub const channel_credentials = @import("com/channel_credentials.zig"); pub const events = @import("com/events.zig"); pub const marshal = @import("com/marshal.zig"); pub const structured_storage = @import("com/structured_storage.zig"); pub const ui = @import("com/ui.zig"); pub const urlmon = @import("com/urlmon.zig");
0
repos/capy/vendor/zigwin32/win32
repos/capy/vendor/zigwin32/win32/system/job_objects.zig
//! NOTE: this file is autogenerated, DO NOT MODIFY //-------------------------------------------------------------------------------- // Section: Constants (0) //-------------------------------------------------------------------------------- //-------------------------------------------------------------------------------- // Section: Types (34) //-------------------------------------------------------------------------------- pub const JOB_OBJECT_LIMIT = enum(u32) { LIMIT_WORKINGSET = 1, LIMIT_PROCESS_TIME = 2, LIMIT_JOB_TIME = 4, LIMIT_ACTIVE_PROCESS = 8, LIMIT_AFFINITY = 16, LIMIT_PRIORITY_CLASS = 32, LIMIT_PRESERVE_JOB_TIME = 64, LIMIT_SCHEDULING_CLASS = 128, LIMIT_PROCESS_MEMORY = 256, LIMIT_JOB_MEMORY = 512, // LIMIT_JOB_MEMORY_HIGH = 512, this enum value conflicts with LIMIT_JOB_MEMORY LIMIT_DIE_ON_UNHANDLED_EXCEPTION = 1024, LIMIT_BREAKAWAY_OK = 2048, LIMIT_SILENT_BREAKAWAY_OK = 4096, LIMIT_KILL_ON_JOB_CLOSE = 8192, LIMIT_SUBSET_AFFINITY = 16384, LIMIT_JOB_MEMORY_LOW = 32768, LIMIT_JOB_READ_BYTES = 65536, LIMIT_JOB_WRITE_BYTES = 131072, LIMIT_RATE_CONTROL = 262144, // LIMIT_CPU_RATE_CONTROL = 262144, this enum value conflicts with LIMIT_RATE_CONTROL LIMIT_IO_RATE_CONTROL = 524288, LIMIT_NET_RATE_CONTROL = 1048576, LIMIT_VALID_FLAGS = 524287, BASIC_LIMIT_VALID_FLAGS = 255, EXTENDED_LIMIT_VALID_FLAGS = 32767, NOTIFICATION_LIMIT_VALID_FLAGS = 2064900, _, pub fn initFlags(o: struct { LIMIT_WORKINGSET: u1 = 0, LIMIT_PROCESS_TIME: u1 = 0, LIMIT_JOB_TIME: u1 = 0, LIMIT_ACTIVE_PROCESS: u1 = 0, LIMIT_AFFINITY: u1 = 0, LIMIT_PRIORITY_CLASS: u1 = 0, LIMIT_PRESERVE_JOB_TIME: u1 = 0, LIMIT_SCHEDULING_CLASS: u1 = 0, LIMIT_PROCESS_MEMORY: u1 = 0, LIMIT_JOB_MEMORY: u1 = 0, LIMIT_DIE_ON_UNHANDLED_EXCEPTION: u1 = 0, LIMIT_BREAKAWAY_OK: u1 = 0, LIMIT_SILENT_BREAKAWAY_OK: u1 = 0, LIMIT_KILL_ON_JOB_CLOSE: u1 = 0, LIMIT_SUBSET_AFFINITY: u1 = 0, LIMIT_JOB_MEMORY_LOW: u1 = 0, LIMIT_JOB_READ_BYTES: u1 = 0, LIMIT_JOB_WRITE_BYTES: u1 = 0, LIMIT_RATE_CONTROL: u1 = 0, LIMIT_IO_RATE_CONTROL: u1 = 0, LIMIT_NET_RATE_CONTROL: u1 = 0, LIMIT_VALID_FLAGS: u1 = 0, BASIC_LIMIT_VALID_FLAGS: u1 = 0, EXTENDED_LIMIT_VALID_FLAGS: u1 = 0, NOTIFICATION_LIMIT_VALID_FLAGS: u1 = 0, }) JOB_OBJECT_LIMIT { return @as(JOB_OBJECT_LIMIT, @enumFromInt((if (o.LIMIT_WORKINGSET == 1) @intFromEnum(JOB_OBJECT_LIMIT.LIMIT_WORKINGSET) else 0) | (if (o.LIMIT_PROCESS_TIME == 1) @intFromEnum(JOB_OBJECT_LIMIT.LIMIT_PROCESS_TIME) else 0) | (if (o.LIMIT_JOB_TIME == 1) @intFromEnum(JOB_OBJECT_LIMIT.LIMIT_JOB_TIME) else 0) | (if (o.LIMIT_ACTIVE_PROCESS == 1) @intFromEnum(JOB_OBJECT_LIMIT.LIMIT_ACTIVE_PROCESS) else 0) | (if (o.LIMIT_AFFINITY == 1) @intFromEnum(JOB_OBJECT_LIMIT.LIMIT_AFFINITY) else 0) | (if (o.LIMIT_PRIORITY_CLASS == 1) @intFromEnum(JOB_OBJECT_LIMIT.LIMIT_PRIORITY_CLASS) else 0) | (if (o.LIMIT_PRESERVE_JOB_TIME == 1) @intFromEnum(JOB_OBJECT_LIMIT.LIMIT_PRESERVE_JOB_TIME) else 0) | (if (o.LIMIT_SCHEDULING_CLASS == 1) @intFromEnum(JOB_OBJECT_LIMIT.LIMIT_SCHEDULING_CLASS) else 0) | (if (o.LIMIT_PROCESS_MEMORY == 1) @intFromEnum(JOB_OBJECT_LIMIT.LIMIT_PROCESS_MEMORY) else 0) | (if (o.LIMIT_JOB_MEMORY == 1) @intFromEnum(JOB_OBJECT_LIMIT.LIMIT_JOB_MEMORY) else 0) | (if (o.LIMIT_DIE_ON_UNHANDLED_EXCEPTION == 1) @intFromEnum(JOB_OBJECT_LIMIT.LIMIT_DIE_ON_UNHANDLED_EXCEPTION) else 0) | (if (o.LIMIT_BREAKAWAY_OK == 1) @intFromEnum(JOB_OBJECT_LIMIT.LIMIT_BREAKAWAY_OK) else 0) | (if (o.LIMIT_SILENT_BREAKAWAY_OK == 1) @intFromEnum(JOB_OBJECT_LIMIT.LIMIT_SILENT_BREAKAWAY_OK) else 0) | (if (o.LIMIT_KILL_ON_JOB_CLOSE == 1) @intFromEnum(JOB_OBJECT_LIMIT.LIMIT_KILL_ON_JOB_CLOSE) else 0) | (if (o.LIMIT_SUBSET_AFFINITY == 1) @intFromEnum(JOB_OBJECT_LIMIT.LIMIT_SUBSET_AFFINITY) else 0) | (if (o.LIMIT_JOB_MEMORY_LOW == 1) @intFromEnum(JOB_OBJECT_LIMIT.LIMIT_JOB_MEMORY_LOW) else 0) | (if (o.LIMIT_JOB_READ_BYTES == 1) @intFromEnum(JOB_OBJECT_LIMIT.LIMIT_JOB_READ_BYTES) else 0) | (if (o.LIMIT_JOB_WRITE_BYTES == 1) @intFromEnum(JOB_OBJECT_LIMIT.LIMIT_JOB_WRITE_BYTES) else 0) | (if (o.LIMIT_RATE_CONTROL == 1) @intFromEnum(JOB_OBJECT_LIMIT.LIMIT_RATE_CONTROL) else 0) | (if (o.LIMIT_IO_RATE_CONTROL == 1) @intFromEnum(JOB_OBJECT_LIMIT.LIMIT_IO_RATE_CONTROL) else 0) | (if (o.LIMIT_NET_RATE_CONTROL == 1) @intFromEnum(JOB_OBJECT_LIMIT.LIMIT_NET_RATE_CONTROL) else 0) | (if (o.LIMIT_VALID_FLAGS == 1) @intFromEnum(JOB_OBJECT_LIMIT.LIMIT_VALID_FLAGS) else 0) | (if (o.BASIC_LIMIT_VALID_FLAGS == 1) @intFromEnum(JOB_OBJECT_LIMIT.BASIC_LIMIT_VALID_FLAGS) else 0) | (if (o.EXTENDED_LIMIT_VALID_FLAGS == 1) @intFromEnum(JOB_OBJECT_LIMIT.EXTENDED_LIMIT_VALID_FLAGS) else 0) | (if (o.NOTIFICATION_LIMIT_VALID_FLAGS == 1) @intFromEnum(JOB_OBJECT_LIMIT.NOTIFICATION_LIMIT_VALID_FLAGS) else 0))); } }; pub const JOB_OBJECT_LIMIT_WORKINGSET = JOB_OBJECT_LIMIT.LIMIT_WORKINGSET; pub const JOB_OBJECT_LIMIT_PROCESS_TIME = JOB_OBJECT_LIMIT.LIMIT_PROCESS_TIME; pub const JOB_OBJECT_LIMIT_JOB_TIME = JOB_OBJECT_LIMIT.LIMIT_JOB_TIME; pub const JOB_OBJECT_LIMIT_ACTIVE_PROCESS = JOB_OBJECT_LIMIT.LIMIT_ACTIVE_PROCESS; pub const JOB_OBJECT_LIMIT_AFFINITY = JOB_OBJECT_LIMIT.LIMIT_AFFINITY; pub const JOB_OBJECT_LIMIT_PRIORITY_CLASS = JOB_OBJECT_LIMIT.LIMIT_PRIORITY_CLASS; pub const JOB_OBJECT_LIMIT_PRESERVE_JOB_TIME = JOB_OBJECT_LIMIT.LIMIT_PRESERVE_JOB_TIME; pub const JOB_OBJECT_LIMIT_SCHEDULING_CLASS = JOB_OBJECT_LIMIT.LIMIT_SCHEDULING_CLASS; pub const JOB_OBJECT_LIMIT_PROCESS_MEMORY = JOB_OBJECT_LIMIT.LIMIT_PROCESS_MEMORY; pub const JOB_OBJECT_LIMIT_JOB_MEMORY = JOB_OBJECT_LIMIT.LIMIT_JOB_MEMORY; pub const JOB_OBJECT_LIMIT_JOB_MEMORY_HIGH = JOB_OBJECT_LIMIT.LIMIT_JOB_MEMORY; pub const JOB_OBJECT_LIMIT_DIE_ON_UNHANDLED_EXCEPTION = JOB_OBJECT_LIMIT.LIMIT_DIE_ON_UNHANDLED_EXCEPTION; pub const JOB_OBJECT_LIMIT_BREAKAWAY_OK = JOB_OBJECT_LIMIT.LIMIT_BREAKAWAY_OK; pub const JOB_OBJECT_LIMIT_SILENT_BREAKAWAY_OK = JOB_OBJECT_LIMIT.LIMIT_SILENT_BREAKAWAY_OK; pub const JOB_OBJECT_LIMIT_KILL_ON_JOB_CLOSE = JOB_OBJECT_LIMIT.LIMIT_KILL_ON_JOB_CLOSE; pub const JOB_OBJECT_LIMIT_SUBSET_AFFINITY = JOB_OBJECT_LIMIT.LIMIT_SUBSET_AFFINITY; pub const JOB_OBJECT_LIMIT_JOB_MEMORY_LOW = JOB_OBJECT_LIMIT.LIMIT_JOB_MEMORY_LOW; pub const JOB_OBJECT_LIMIT_JOB_READ_BYTES = JOB_OBJECT_LIMIT.LIMIT_JOB_READ_BYTES; pub const JOB_OBJECT_LIMIT_JOB_WRITE_BYTES = JOB_OBJECT_LIMIT.LIMIT_JOB_WRITE_BYTES; pub const JOB_OBJECT_LIMIT_RATE_CONTROL = JOB_OBJECT_LIMIT.LIMIT_RATE_CONTROL; pub const JOB_OBJECT_LIMIT_CPU_RATE_CONTROL = JOB_OBJECT_LIMIT.LIMIT_RATE_CONTROL; pub const JOB_OBJECT_LIMIT_IO_RATE_CONTROL = JOB_OBJECT_LIMIT.LIMIT_IO_RATE_CONTROL; pub const JOB_OBJECT_LIMIT_NET_RATE_CONTROL = JOB_OBJECT_LIMIT.LIMIT_NET_RATE_CONTROL; pub const JOB_OBJECT_LIMIT_VALID_FLAGS = JOB_OBJECT_LIMIT.LIMIT_VALID_FLAGS; pub const JOB_OBJECT_BASIC_LIMIT_VALID_FLAGS = JOB_OBJECT_LIMIT.BASIC_LIMIT_VALID_FLAGS; pub const JOB_OBJECT_EXTENDED_LIMIT_VALID_FLAGS = JOB_OBJECT_LIMIT.EXTENDED_LIMIT_VALID_FLAGS; pub const JOB_OBJECT_NOTIFICATION_LIMIT_VALID_FLAGS = JOB_OBJECT_LIMIT.NOTIFICATION_LIMIT_VALID_FLAGS; pub const JOB_OBJECT_UILIMIT = enum(u32) { NONE = 0, HANDLES = 1, READCLIPBOARD = 2, WRITECLIPBOARD = 4, SYSTEMPARAMETERS = 8, DISPLAYSETTINGS = 16, GLOBALATOMS = 32, DESKTOP = 64, EXITWINDOWS = 128, _, pub fn initFlags(o: struct { NONE: u1 = 0, HANDLES: u1 = 0, READCLIPBOARD: u1 = 0, WRITECLIPBOARD: u1 = 0, SYSTEMPARAMETERS: u1 = 0, DISPLAYSETTINGS: u1 = 0, GLOBALATOMS: u1 = 0, DESKTOP: u1 = 0, EXITWINDOWS: u1 = 0, }) JOB_OBJECT_UILIMIT { return @as(JOB_OBJECT_UILIMIT, @enumFromInt((if (o.NONE == 1) @intFromEnum(JOB_OBJECT_UILIMIT.NONE) else 0) | (if (o.HANDLES == 1) @intFromEnum(JOB_OBJECT_UILIMIT.HANDLES) else 0) | (if (o.READCLIPBOARD == 1) @intFromEnum(JOB_OBJECT_UILIMIT.READCLIPBOARD) else 0) | (if (o.WRITECLIPBOARD == 1) @intFromEnum(JOB_OBJECT_UILIMIT.WRITECLIPBOARD) else 0) | (if (o.SYSTEMPARAMETERS == 1) @intFromEnum(JOB_OBJECT_UILIMIT.SYSTEMPARAMETERS) else 0) | (if (o.DISPLAYSETTINGS == 1) @intFromEnum(JOB_OBJECT_UILIMIT.DISPLAYSETTINGS) else 0) | (if (o.GLOBALATOMS == 1) @intFromEnum(JOB_OBJECT_UILIMIT.GLOBALATOMS) else 0) | (if (o.DESKTOP == 1) @intFromEnum(JOB_OBJECT_UILIMIT.DESKTOP) else 0) | (if (o.EXITWINDOWS == 1) @intFromEnum(JOB_OBJECT_UILIMIT.EXITWINDOWS) else 0))); } }; pub const JOB_OBJECT_UILIMIT_NONE = JOB_OBJECT_UILIMIT.NONE; pub const JOB_OBJECT_UILIMIT_HANDLES = JOB_OBJECT_UILIMIT.HANDLES; pub const JOB_OBJECT_UILIMIT_READCLIPBOARD = JOB_OBJECT_UILIMIT.READCLIPBOARD; pub const JOB_OBJECT_UILIMIT_WRITECLIPBOARD = JOB_OBJECT_UILIMIT.WRITECLIPBOARD; pub const JOB_OBJECT_UILIMIT_SYSTEMPARAMETERS = JOB_OBJECT_UILIMIT.SYSTEMPARAMETERS; pub const JOB_OBJECT_UILIMIT_DISPLAYSETTINGS = JOB_OBJECT_UILIMIT.DISPLAYSETTINGS; pub const JOB_OBJECT_UILIMIT_GLOBALATOMS = JOB_OBJECT_UILIMIT.GLOBALATOMS; pub const JOB_OBJECT_UILIMIT_DESKTOP = JOB_OBJECT_UILIMIT.DESKTOP; pub const JOB_OBJECT_UILIMIT_EXITWINDOWS = JOB_OBJECT_UILIMIT.EXITWINDOWS; pub const JOB_OBJECT_SECURITY = enum(u32) { NO_ADMIN = 1, RESTRICTED_TOKEN = 2, ONLY_TOKEN = 4, FILTER_TOKENS = 8, VALID_FLAGS = 15, _, pub fn initFlags(o: struct { NO_ADMIN: u1 = 0, RESTRICTED_TOKEN: u1 = 0, ONLY_TOKEN: u1 = 0, FILTER_TOKENS: u1 = 0, VALID_FLAGS: u1 = 0, }) JOB_OBJECT_SECURITY { return @as(JOB_OBJECT_SECURITY, @enumFromInt((if (o.NO_ADMIN == 1) @intFromEnum(JOB_OBJECT_SECURITY.NO_ADMIN) else 0) | (if (o.RESTRICTED_TOKEN == 1) @intFromEnum(JOB_OBJECT_SECURITY.RESTRICTED_TOKEN) else 0) | (if (o.ONLY_TOKEN == 1) @intFromEnum(JOB_OBJECT_SECURITY.ONLY_TOKEN) else 0) | (if (o.FILTER_TOKENS == 1) @intFromEnum(JOB_OBJECT_SECURITY.FILTER_TOKENS) else 0) | (if (o.VALID_FLAGS == 1) @intFromEnum(JOB_OBJECT_SECURITY.VALID_FLAGS) else 0))); } }; pub const JOB_OBJECT_SECURITY_NO_ADMIN = JOB_OBJECT_SECURITY.NO_ADMIN; pub const JOB_OBJECT_SECURITY_RESTRICTED_TOKEN = JOB_OBJECT_SECURITY.RESTRICTED_TOKEN; pub const JOB_OBJECT_SECURITY_ONLY_TOKEN = JOB_OBJECT_SECURITY.ONLY_TOKEN; pub const JOB_OBJECT_SECURITY_FILTER_TOKENS = JOB_OBJECT_SECURITY.FILTER_TOKENS; pub const JOB_OBJECT_SECURITY_VALID_FLAGS = JOB_OBJECT_SECURITY.VALID_FLAGS; pub const JOB_OBJECT_CPU_RATE_CONTROL = enum(u32) { CPU_RATE_CONTROL_ENABLE = 1, CPU_RATE_CONTROL_WEIGHT_BASED = 2, CPU_RATE_CONTROL_HARD_CAP = 4, CPU_RATE_CONTROL_NOTIFY = 8, _CPU_RATE_CONTROL_MIN_MAX_RATE = 16, }; pub const JOB_OBJECT_CPU_RATE_CONTROL_ENABLE = JOB_OBJECT_CPU_RATE_CONTROL.CPU_RATE_CONTROL_ENABLE; pub const JOB_OBJECT_CPU_RATE_CONTROL_WEIGHT_BASED = JOB_OBJECT_CPU_RATE_CONTROL.CPU_RATE_CONTROL_WEIGHT_BASED; pub const JOB_OBJECT_CPU_RATE_CONTROL_HARD_CAP = JOB_OBJECT_CPU_RATE_CONTROL.CPU_RATE_CONTROL_HARD_CAP; pub const JOB_OBJECT_CPU_RATE_CONTROL_NOTIFY = JOB_OBJECT_CPU_RATE_CONTROL.CPU_RATE_CONTROL_NOTIFY; pub const JOB_OBJECT__CPU_RATE_CONTROL_MIN_MAX_RATE = JOB_OBJECT_CPU_RATE_CONTROL._CPU_RATE_CONTROL_MIN_MAX_RATE; pub const JOB_OBJECT_TERMINATE_AT_END_ACTION = enum(u32) { TERMINATE_AT_END_OF_JOB = 0, POST_AT_END_OF_JOB = 1, }; pub const JOB_OBJECT_TERMINATE_AT_END_OF_JOB = JOB_OBJECT_TERMINATE_AT_END_ACTION.TERMINATE_AT_END_OF_JOB; pub const JOB_OBJECT_POST_AT_END_OF_JOB = JOB_OBJECT_TERMINATE_AT_END_ACTION.POST_AT_END_OF_JOB; pub const JOBOBJECT_IO_RATE_CONTROL_INFORMATION = extern struct { MaxIops: i64, MaxBandwidth: i64, ReservationIops: i64, VolumeName: ?[*:0]const u16, BaseIoSize: u32, ControlFlags: JOB_OBJECT_IO_RATE_CONTROL_FLAGS, }; pub const JOB_SET_ARRAY = extern struct { JobHandle: ?HANDLE, MemberLevel: u32, Flags: u32, }; pub const JOBOBJECT_BASIC_ACCOUNTING_INFORMATION = extern struct { TotalUserTime: LARGE_INTEGER, TotalKernelTime: LARGE_INTEGER, ThisPeriodTotalUserTime: LARGE_INTEGER, ThisPeriodTotalKernelTime: LARGE_INTEGER, TotalPageFaultCount: u32, TotalProcesses: u32, ActiveProcesses: u32, TotalTerminatedProcesses: u32, }; pub const JOBOBJECT_BASIC_LIMIT_INFORMATION = extern struct { PerProcessUserTimeLimit: LARGE_INTEGER, PerJobUserTimeLimit: LARGE_INTEGER, LimitFlags: JOB_OBJECT_LIMIT, MinimumWorkingSetSize: usize, MaximumWorkingSetSize: usize, ActiveProcessLimit: u32, Affinity: usize, PriorityClass: u32, SchedulingClass: u32, }; pub const JOBOBJECT_EXTENDED_LIMIT_INFORMATION = extern struct { BasicLimitInformation: JOBOBJECT_BASIC_LIMIT_INFORMATION, IoInfo: IO_COUNTERS, ProcessMemoryLimit: usize, JobMemoryLimit: usize, PeakProcessMemoryUsed: usize, PeakJobMemoryUsed: usize, }; pub const JOBOBJECT_BASIC_PROCESS_ID_LIST = extern struct { NumberOfAssignedProcesses: u32, NumberOfProcessIdsInList: u32, ProcessIdList: [1]usize, }; pub const JOBOBJECT_BASIC_UI_RESTRICTIONS = extern struct { UIRestrictionsClass: JOB_OBJECT_UILIMIT, }; pub const JOBOBJECT_SECURITY_LIMIT_INFORMATION = extern struct { SecurityLimitFlags: JOB_OBJECT_SECURITY, JobToken: ?HANDLE, SidsToDisable: ?*TOKEN_GROUPS, PrivilegesToDelete: ?*TOKEN_PRIVILEGES, RestrictedSids: ?*TOKEN_GROUPS, }; pub const JOBOBJECT_END_OF_JOB_TIME_INFORMATION = extern struct { EndOfJobTimeAction: JOB_OBJECT_TERMINATE_AT_END_ACTION, }; pub const JOBOBJECT_ASSOCIATE_COMPLETION_PORT = extern struct { CompletionKey: ?*anyopaque, CompletionPort: ?HANDLE, }; pub const JOBOBJECT_BASIC_AND_IO_ACCOUNTING_INFORMATION = extern struct { BasicInfo: JOBOBJECT_BASIC_ACCOUNTING_INFORMATION, IoInfo: IO_COUNTERS, }; pub const JOBOBJECT_JOBSET_INFORMATION = extern struct { MemberLevel: u32, }; pub const JOBOBJECT_RATE_CONTROL_TOLERANCE = enum(i32) { Low = 1, Medium = 2, High = 3, }; pub const ToleranceLow = JOBOBJECT_RATE_CONTROL_TOLERANCE.Low; pub const ToleranceMedium = JOBOBJECT_RATE_CONTROL_TOLERANCE.Medium; pub const ToleranceHigh = JOBOBJECT_RATE_CONTROL_TOLERANCE.High; pub const JOBOBJECT_RATE_CONTROL_TOLERANCE_INTERVAL = enum(i32) { Short = 1, Medium = 2, Long = 3, }; // TODO: enum 'JOBOBJECT_RATE_CONTROL_TOLERANCE_INTERVAL' has known issues with its value aliases pub const JOBOBJECT_NOTIFICATION_LIMIT_INFORMATION = extern struct { IoReadBytesLimit: u64, IoWriteBytesLimit: u64, PerJobUserTimeLimit: LARGE_INTEGER, JobMemoryLimit: u64, RateControlTolerance: JOBOBJECT_RATE_CONTROL_TOLERANCE, RateControlToleranceInterval: JOBOBJECT_RATE_CONTROL_TOLERANCE_INTERVAL, LimitFlags: JOB_OBJECT_LIMIT, }; pub const JOBOBJECT_NOTIFICATION_LIMIT_INFORMATION_2 = extern struct { IoReadBytesLimit: u64, IoWriteBytesLimit: u64, PerJobUserTimeLimit: LARGE_INTEGER, Anonymous1: extern union { JobHighMemoryLimit: u64, JobMemoryLimit: u64, }, Anonymous2: extern union { RateControlTolerance: JOBOBJECT_RATE_CONTROL_TOLERANCE, CpuRateControlTolerance: JOBOBJECT_RATE_CONTROL_TOLERANCE, }, Anonymous3: extern union { RateControlToleranceInterval: JOBOBJECT_RATE_CONTROL_TOLERANCE_INTERVAL, CpuRateControlToleranceInterval: JOBOBJECT_RATE_CONTROL_TOLERANCE_INTERVAL, }, LimitFlags: JOB_OBJECT_LIMIT, IoRateControlTolerance: JOBOBJECT_RATE_CONTROL_TOLERANCE, JobLowMemoryLimit: u64, IoRateControlToleranceInterval: JOBOBJECT_RATE_CONTROL_TOLERANCE_INTERVAL, NetRateControlTolerance: JOBOBJECT_RATE_CONTROL_TOLERANCE, NetRateControlToleranceInterval: JOBOBJECT_RATE_CONTROL_TOLERANCE_INTERVAL, }; pub const JOBOBJECT_LIMIT_VIOLATION_INFORMATION = extern struct { LimitFlags: JOB_OBJECT_LIMIT, ViolationLimitFlags: JOB_OBJECT_LIMIT, IoReadBytes: u64, IoReadBytesLimit: u64, IoWriteBytes: u64, IoWriteBytesLimit: u64, PerJobUserTime: LARGE_INTEGER, PerJobUserTimeLimit: LARGE_INTEGER, JobMemory: u64, JobMemoryLimit: u64, RateControlTolerance: JOBOBJECT_RATE_CONTROL_TOLERANCE, RateControlToleranceLimit: JOBOBJECT_RATE_CONTROL_TOLERANCE, }; pub const JOBOBJECT_LIMIT_VIOLATION_INFORMATION_2 = extern struct { LimitFlags: JOB_OBJECT_LIMIT, ViolationLimitFlags: JOB_OBJECT_LIMIT, IoReadBytes: u64, IoReadBytesLimit: u64, IoWriteBytes: u64, IoWriteBytesLimit: u64, PerJobUserTime: LARGE_INTEGER, PerJobUserTimeLimit: LARGE_INTEGER, JobMemory: u64, Anonymous1: extern union { JobHighMemoryLimit: u64, JobMemoryLimit: u64, }, Anonymous2: extern union { RateControlTolerance: JOBOBJECT_RATE_CONTROL_TOLERANCE, CpuRateControlTolerance: JOBOBJECT_RATE_CONTROL_TOLERANCE, }, Anonymous3: extern union { RateControlToleranceLimit: JOBOBJECT_RATE_CONTROL_TOLERANCE, CpuRateControlToleranceLimit: JOBOBJECT_RATE_CONTROL_TOLERANCE, }, JobLowMemoryLimit: u64, IoRateControlTolerance: JOBOBJECT_RATE_CONTROL_TOLERANCE, IoRateControlToleranceLimit: JOBOBJECT_RATE_CONTROL_TOLERANCE, NetRateControlTolerance: JOBOBJECT_RATE_CONTROL_TOLERANCE, NetRateControlToleranceLimit: JOBOBJECT_RATE_CONTROL_TOLERANCE, }; pub const JOBOBJECT_CPU_RATE_CONTROL_INFORMATION = extern struct { ControlFlags: JOB_OBJECT_CPU_RATE_CONTROL, Anonymous: extern union { CpuRate: u32, Weight: u32, Anonymous: extern struct { MinRate: u16, MaxRate: u16, }, }, }; pub const JOB_OBJECT_NET_RATE_CONTROL_FLAGS = enum(i32) { ENABLE = 1, MAX_BANDWIDTH = 2, DSCP_TAG = 4, VALID_FLAGS = 7, }; pub const JOB_OBJECT_NET_RATE_CONTROL_ENABLE = JOB_OBJECT_NET_RATE_CONTROL_FLAGS.ENABLE; pub const JOB_OBJECT_NET_RATE_CONTROL_MAX_BANDWIDTH = JOB_OBJECT_NET_RATE_CONTROL_FLAGS.MAX_BANDWIDTH; pub const JOB_OBJECT_NET_RATE_CONTROL_DSCP_TAG = JOB_OBJECT_NET_RATE_CONTROL_FLAGS.DSCP_TAG; pub const JOB_OBJECT_NET_RATE_CONTROL_VALID_FLAGS = JOB_OBJECT_NET_RATE_CONTROL_FLAGS.VALID_FLAGS; pub const JOBOBJECT_NET_RATE_CONTROL_INFORMATION = extern struct { MaxBandwidth: u64, ControlFlags: JOB_OBJECT_NET_RATE_CONTROL_FLAGS, DscpTag: u8, }; pub const JOB_OBJECT_IO_RATE_CONTROL_FLAGS = enum(i32) { ENABLE = 1, STANDALONE_VOLUME = 2, FORCE_UNIT_ACCESS_ALL = 4, FORCE_UNIT_ACCESS_ON_SOFT_CAP = 8, VALID_FLAGS = 15, }; pub const JOB_OBJECT_IO_RATE_CONTROL_ENABLE = JOB_OBJECT_IO_RATE_CONTROL_FLAGS.ENABLE; pub const JOB_OBJECT_IO_RATE_CONTROL_STANDALONE_VOLUME = JOB_OBJECT_IO_RATE_CONTROL_FLAGS.STANDALONE_VOLUME; pub const JOB_OBJECT_IO_RATE_CONTROL_FORCE_UNIT_ACCESS_ALL = JOB_OBJECT_IO_RATE_CONTROL_FLAGS.FORCE_UNIT_ACCESS_ALL; pub const JOB_OBJECT_IO_RATE_CONTROL_FORCE_UNIT_ACCESS_ON_SOFT_CAP = JOB_OBJECT_IO_RATE_CONTROL_FLAGS.FORCE_UNIT_ACCESS_ON_SOFT_CAP; pub const JOB_OBJECT_IO_RATE_CONTROL_VALID_FLAGS = JOB_OBJECT_IO_RATE_CONTROL_FLAGS.VALID_FLAGS; pub const JOBOBJECT_IO_RATE_CONTROL_INFORMATION_NATIVE = extern struct { MaxIops: i64, MaxBandwidth: i64, ReservationIops: i64, VolumeName: ?PWSTR, BaseIoSize: u32, ControlFlags: JOB_OBJECT_IO_RATE_CONTROL_FLAGS, VolumeNameLength: u16, }; pub const JOBOBJECT_IO_RATE_CONTROL_INFORMATION_NATIVE_V2 = extern struct { MaxIops: i64, MaxBandwidth: i64, ReservationIops: i64, VolumeName: ?PWSTR, BaseIoSize: u32, ControlFlags: JOB_OBJECT_IO_RATE_CONTROL_FLAGS, VolumeNameLength: u16, CriticalReservationIops: i64, ReservationBandwidth: i64, CriticalReservationBandwidth: i64, MaxTimePercent: i64, ReservationTimePercent: i64, CriticalReservationTimePercent: i64, }; pub const JOBOBJECT_IO_RATE_CONTROL_INFORMATION_NATIVE_V3 = extern struct { MaxIops: i64, MaxBandwidth: i64, ReservationIops: i64, VolumeName: ?PWSTR, BaseIoSize: u32, ControlFlags: JOB_OBJECT_IO_RATE_CONTROL_FLAGS, VolumeNameLength: u16, CriticalReservationIops: i64, ReservationBandwidth: i64, CriticalReservationBandwidth: i64, MaxTimePercent: i64, ReservationTimePercent: i64, CriticalReservationTimePercent: i64, SoftMaxIops: i64, SoftMaxBandwidth: i64, SoftMaxTimePercent: i64, LimitExcessNotifyIops: i64, LimitExcessNotifyBandwidth: i64, LimitExcessNotifyTimePercent: i64, }; pub const JOBOBJECT_IO_ATTRIBUTION_CONTROL_FLAGS = enum(i32) { ENABLE = 1, DISABLE = 2, VALID_FLAGS = 3, }; pub const JOBOBJECT_IO_ATTRIBUTION_CONTROL_ENABLE = JOBOBJECT_IO_ATTRIBUTION_CONTROL_FLAGS.ENABLE; pub const JOBOBJECT_IO_ATTRIBUTION_CONTROL_DISABLE = JOBOBJECT_IO_ATTRIBUTION_CONTROL_FLAGS.DISABLE; pub const JOBOBJECT_IO_ATTRIBUTION_CONTROL_VALID_FLAGS = JOBOBJECT_IO_ATTRIBUTION_CONTROL_FLAGS.VALID_FLAGS; pub const JOBOBJECT_IO_ATTRIBUTION_STATS = extern struct { IoCount: usize, TotalNonOverlappedQueueTime: u64, TotalNonOverlappedServiceTime: u64, TotalSize: u64, }; pub const JOBOBJECT_IO_ATTRIBUTION_INFORMATION = extern struct { ControlFlags: u32, ReadStats: JOBOBJECT_IO_ATTRIBUTION_STATS, WriteStats: JOBOBJECT_IO_ATTRIBUTION_STATS, }; pub const JOBOBJECTINFOCLASS = enum(i32) { JobObjectBasicAccountingInformation = 1, JobObjectBasicLimitInformation = 2, JobObjectBasicProcessIdList = 3, JobObjectBasicUIRestrictions = 4, JobObjectSecurityLimitInformation = 5, JobObjectEndOfJobTimeInformation = 6, JobObjectAssociateCompletionPortInformation = 7, JobObjectBasicAndIoAccountingInformation = 8, JobObjectExtendedLimitInformation = 9, JobObjectJobSetInformation = 10, JobObjectGroupInformation = 11, JobObjectNotificationLimitInformation = 12, JobObjectLimitViolationInformation = 13, JobObjectGroupInformationEx = 14, JobObjectCpuRateControlInformation = 15, JobObjectCompletionFilter = 16, JobObjectCompletionCounter = 17, JobObjectReserved1Information = 18, JobObjectReserved2Information = 19, JobObjectReserved3Information = 20, JobObjectReserved4Information = 21, JobObjectReserved5Information = 22, JobObjectReserved6Information = 23, JobObjectReserved7Information = 24, JobObjectReserved8Information = 25, JobObjectReserved9Information = 26, JobObjectReserved10Information = 27, JobObjectReserved11Information = 28, JobObjectReserved12Information = 29, JobObjectReserved13Information = 30, JobObjectReserved14Information = 31, JobObjectNetRateControlInformation = 32, JobObjectNotificationLimitInformation2 = 33, JobObjectLimitViolationInformation2 = 34, JobObjectCreateSilo = 35, JobObjectSiloBasicInformation = 36, JobObjectReserved15Information = 37, JobObjectReserved16Information = 38, JobObjectReserved17Information = 39, JobObjectReserved18Information = 40, JobObjectReserved19Information = 41, JobObjectReserved20Information = 42, JobObjectReserved21Information = 43, JobObjectReserved22Information = 44, JobObjectReserved23Information = 45, JobObjectReserved24Information = 46, JobObjectReserved25Information = 47, MaxJobObjectInfoClass = 48, }; pub const JobObjectBasicAccountingInformation = JOBOBJECTINFOCLASS.JobObjectBasicAccountingInformation; pub const JobObjectBasicLimitInformation = JOBOBJECTINFOCLASS.JobObjectBasicLimitInformation; pub const JobObjectBasicProcessIdList = JOBOBJECTINFOCLASS.JobObjectBasicProcessIdList; pub const JobObjectBasicUIRestrictions = JOBOBJECTINFOCLASS.JobObjectBasicUIRestrictions; pub const JobObjectSecurityLimitInformation = JOBOBJECTINFOCLASS.JobObjectSecurityLimitInformation; pub const JobObjectEndOfJobTimeInformation = JOBOBJECTINFOCLASS.JobObjectEndOfJobTimeInformation; pub const JobObjectAssociateCompletionPortInformation = JOBOBJECTINFOCLASS.JobObjectAssociateCompletionPortInformation; pub const JobObjectBasicAndIoAccountingInformation = JOBOBJECTINFOCLASS.JobObjectBasicAndIoAccountingInformation; pub const JobObjectExtendedLimitInformation = JOBOBJECTINFOCLASS.JobObjectExtendedLimitInformation; pub const JobObjectJobSetInformation = JOBOBJECTINFOCLASS.JobObjectJobSetInformation; pub const JobObjectGroupInformation = JOBOBJECTINFOCLASS.JobObjectGroupInformation; pub const JobObjectNotificationLimitInformation = JOBOBJECTINFOCLASS.JobObjectNotificationLimitInformation; pub const JobObjectLimitViolationInformation = JOBOBJECTINFOCLASS.JobObjectLimitViolationInformation; pub const JobObjectGroupInformationEx = JOBOBJECTINFOCLASS.JobObjectGroupInformationEx; pub const JobObjectCpuRateControlInformation = JOBOBJECTINFOCLASS.JobObjectCpuRateControlInformation; pub const JobObjectCompletionFilter = JOBOBJECTINFOCLASS.JobObjectCompletionFilter; pub const JobObjectCompletionCounter = JOBOBJECTINFOCLASS.JobObjectCompletionCounter; pub const JobObjectReserved1Information = JOBOBJECTINFOCLASS.JobObjectReserved1Information; pub const JobObjectReserved2Information = JOBOBJECTINFOCLASS.JobObjectReserved2Information; pub const JobObjectReserved3Information = JOBOBJECTINFOCLASS.JobObjectReserved3Information; pub const JobObjectReserved4Information = JOBOBJECTINFOCLASS.JobObjectReserved4Information; pub const JobObjectReserved5Information = JOBOBJECTINFOCLASS.JobObjectReserved5Information; pub const JobObjectReserved6Information = JOBOBJECTINFOCLASS.JobObjectReserved6Information; pub const JobObjectReserved7Information = JOBOBJECTINFOCLASS.JobObjectReserved7Information; pub const JobObjectReserved8Information = JOBOBJECTINFOCLASS.JobObjectReserved8Information; pub const JobObjectReserved9Information = JOBOBJECTINFOCLASS.JobObjectReserved9Information; pub const JobObjectReserved10Information = JOBOBJECTINFOCLASS.JobObjectReserved10Information; pub const JobObjectReserved11Information = JOBOBJECTINFOCLASS.JobObjectReserved11Information; pub const JobObjectReserved12Information = JOBOBJECTINFOCLASS.JobObjectReserved12Information; pub const JobObjectReserved13Information = JOBOBJECTINFOCLASS.JobObjectReserved13Information; pub const JobObjectReserved14Information = JOBOBJECTINFOCLASS.JobObjectReserved14Information; pub const JobObjectNetRateControlInformation = JOBOBJECTINFOCLASS.JobObjectNetRateControlInformation; pub const JobObjectNotificationLimitInformation2 = JOBOBJECTINFOCLASS.JobObjectNotificationLimitInformation2; pub const JobObjectLimitViolationInformation2 = JOBOBJECTINFOCLASS.JobObjectLimitViolationInformation2; pub const JobObjectCreateSilo = JOBOBJECTINFOCLASS.JobObjectCreateSilo; pub const JobObjectSiloBasicInformation = JOBOBJECTINFOCLASS.JobObjectSiloBasicInformation; pub const JobObjectReserved15Information = JOBOBJECTINFOCLASS.JobObjectReserved15Information; pub const JobObjectReserved16Information = JOBOBJECTINFOCLASS.JobObjectReserved16Information; pub const JobObjectReserved17Information = JOBOBJECTINFOCLASS.JobObjectReserved17Information; pub const JobObjectReserved18Information = JOBOBJECTINFOCLASS.JobObjectReserved18Information; pub const JobObjectReserved19Information = JOBOBJECTINFOCLASS.JobObjectReserved19Information; pub const JobObjectReserved20Information = JOBOBJECTINFOCLASS.JobObjectReserved20Information; pub const JobObjectReserved21Information = JOBOBJECTINFOCLASS.JobObjectReserved21Information; pub const JobObjectReserved22Information = JOBOBJECTINFOCLASS.JobObjectReserved22Information; pub const JobObjectReserved23Information = JOBOBJECTINFOCLASS.JobObjectReserved23Information; pub const JobObjectReserved24Information = JOBOBJECTINFOCLASS.JobObjectReserved24Information; pub const JobObjectReserved25Information = JOBOBJECTINFOCLASS.JobObjectReserved25Information; pub const MaxJobObjectInfoClass = JOBOBJECTINFOCLASS.MaxJobObjectInfoClass; //-------------------------------------------------------------------------------- // Section: Functions (14) //-------------------------------------------------------------------------------- // TODO: this type is limited to platform 'windows5.1.2600' pub extern "kernel32" fn IsProcessInJob( ProcessHandle: ?HANDLE, JobHandle: ?HANDLE, Result: ?*BOOL, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "kernel32" fn CreateJobObjectW( lpJobAttributes: ?*SECURITY_ATTRIBUTES, lpName: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) ?HANDLE; // TODO: this type is limited to platform 'windows10.0.10240' pub extern "kernel32" fn FreeMemoryJobObject( Buffer: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) void; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "kernel32" fn OpenJobObjectW( dwDesiredAccess: u32, bInheritHandle: BOOL, lpName: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) ?HANDLE; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "kernel32" fn AssignProcessToJobObject( hJob: ?HANDLE, hProcess: ?HANDLE, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "kernel32" fn TerminateJobObject( hJob: ?HANDLE, uExitCode: u32, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "kernel32" fn SetInformationJobObject( hJob: ?HANDLE, JobObjectInformationClass: JOBOBJECTINFOCLASS, // TODO: what to do with BytesParamIndex 3? lpJobObjectInformation: ?*anyopaque, cbJobObjectInformationLength: u32, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows10.0.10240' pub extern "kernel32" fn SetIoRateControlInformationJobObject( hJob: ?HANDLE, IoRateControlInfo: ?*JOBOBJECT_IO_RATE_CONTROL_INFORMATION, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "kernel32" fn QueryInformationJobObject( hJob: ?HANDLE, JobObjectInformationClass: JOBOBJECTINFOCLASS, // TODO: what to do with BytesParamIndex 3? lpJobObjectInformation: ?*anyopaque, cbJobObjectInformationLength: u32, lpReturnLength: ?*u32, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows10.0.10240' pub extern "kernel32" fn QueryIoRateControlInformationJobObject( hJob: ?HANDLE, VolumeName: ?[*:0]const u16, InfoBlocks: ?*?*JOBOBJECT_IO_RATE_CONTROL_INFORMATION, InfoBlockCount: ?*u32, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "user32" fn UserHandleGrantAccess( hUserHandle: ?HANDLE, hJob: ?HANDLE, bGrant: BOOL, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "kernel32" fn CreateJobObjectA( lpJobAttributes: ?*SECURITY_ATTRIBUTES, lpName: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) ?HANDLE; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "kernel32" fn OpenJobObjectA( dwDesiredAccess: u32, bInheritHandle: BOOL, lpName: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) ?HANDLE; pub extern "kernel32" fn CreateJobSet( NumJob: u32, UserJobSet: [*]JOB_SET_ARRAY, Flags: u32, ) callconv(@import("std").os.windows.WINAPI) BOOL; //-------------------------------------------------------------------------------- // Section: Unicode Aliases (2) //-------------------------------------------------------------------------------- const thismodule = @This(); pub usingnamespace switch (@import("../zig.zig").unicode_mode) { .ansi => struct { pub const CreateJobObject = thismodule.CreateJobObjectA; pub const OpenJobObject = thismodule.OpenJobObjectA; }, .wide => struct { pub const CreateJobObject = thismodule.CreateJobObjectW; pub const OpenJobObject = thismodule.OpenJobObjectW; }, .unspecified => if (@import("builtin").is_test) struct { pub const CreateJobObject = *opaque {}; pub const OpenJobObject = *opaque {}; } else struct { pub const CreateJobObject = @compileError("'CreateJobObject' requires that UNICODE be set to true or false in the root module"); pub const OpenJobObject = @compileError("'OpenJobObject' requires that UNICODE be set to true or false in the root module"); }, }; //-------------------------------------------------------------------------------- // Section: Imports (9) //-------------------------------------------------------------------------------- const BOOL = @import("../foundation.zig").BOOL; const HANDLE = @import("../foundation.zig").HANDLE; const IO_COUNTERS = @import("../system/threading.zig").IO_COUNTERS; const LARGE_INTEGER = @import("../foundation.zig").LARGE_INTEGER; const PSTR = @import("../foundation.zig").PSTR; const PWSTR = @import("../foundation.zig").PWSTR; const SECURITY_ATTRIBUTES = @import("../security.zig").SECURITY_ATTRIBUTES; const TOKEN_GROUPS = @import("../security.zig").TOKEN_GROUPS; const TOKEN_PRIVILEGES = @import("../security.zig").TOKEN_PRIVILEGES; test { @setEvalBranchQuota(comptime @import("std").meta.declarations(@This()).len * 3); // reference all the pub declarations if (!@import("builtin").is_test) return; inline for (comptime @import("std").meta.declarations(@This())) |decl| { if (decl.is_pub) { _ = @field(@This(), decl.name); } } }
0
repos/capy/vendor/zigwin32/win32
repos/capy/vendor/zigwin32/win32/system/js.zig
//! NOTE: this file is autogenerated, DO NOT MODIFY //-------------------------------------------------------------------------------- // Section: Constants (1) //-------------------------------------------------------------------------------- pub const JS_SOURCE_CONTEXT_NONE = @as(u64, 18446744073709551615); //-------------------------------------------------------------------------------- // Section: Types (11) //-------------------------------------------------------------------------------- pub const JsRuntimeVersion = enum(i32) { @"10" = 0, @"11" = 1, Edge = -1, }; // TODO: enum 'JsRuntimeVersion' has known issues with its value aliases pub const JsErrorCode = enum(u32) { NoError = 0, ErrorCategoryUsage = 65536, ErrorInvalidArgument = 65537, ErrorNullArgument = 65538, ErrorNoCurrentContext = 65539, ErrorInExceptionState = 65540, ErrorNotImplemented = 65541, ErrorWrongThread = 65542, ErrorRuntimeInUse = 65543, ErrorBadSerializedScript = 65544, ErrorInDisabledState = 65545, ErrorCannotDisableExecution = 65546, ErrorHeapEnumInProgress = 65547, ErrorArgumentNotObject = 65548, ErrorInProfileCallback = 65549, ErrorInThreadServiceCallback = 65550, ErrorCannotSerializeDebugScript = 65551, ErrorAlreadyDebuggingContext = 65552, ErrorAlreadyProfilingContext = 65553, ErrorIdleNotEnabled = 65554, ErrorCategoryEngine = 131072, ErrorOutOfMemory = 131073, ErrorCategoryScript = 196608, ErrorScriptException = 196609, ErrorScriptCompile = 196610, ErrorScriptTerminated = 196611, ErrorScriptEvalDisabled = 196612, ErrorCategoryFatal = 262144, ErrorFatal = 262145, }; pub const JsNoError = JsErrorCode.NoError; pub const JsErrorCategoryUsage = JsErrorCode.ErrorCategoryUsage; pub const JsErrorInvalidArgument = JsErrorCode.ErrorInvalidArgument; pub const JsErrorNullArgument = JsErrorCode.ErrorNullArgument; pub const JsErrorNoCurrentContext = JsErrorCode.ErrorNoCurrentContext; pub const JsErrorInExceptionState = JsErrorCode.ErrorInExceptionState; pub const JsErrorNotImplemented = JsErrorCode.ErrorNotImplemented; pub const JsErrorWrongThread = JsErrorCode.ErrorWrongThread; pub const JsErrorRuntimeInUse = JsErrorCode.ErrorRuntimeInUse; pub const JsErrorBadSerializedScript = JsErrorCode.ErrorBadSerializedScript; pub const JsErrorInDisabledState = JsErrorCode.ErrorInDisabledState; pub const JsErrorCannotDisableExecution = JsErrorCode.ErrorCannotDisableExecution; pub const JsErrorHeapEnumInProgress = JsErrorCode.ErrorHeapEnumInProgress; pub const JsErrorArgumentNotObject = JsErrorCode.ErrorArgumentNotObject; pub const JsErrorInProfileCallback = JsErrorCode.ErrorInProfileCallback; pub const JsErrorInThreadServiceCallback = JsErrorCode.ErrorInThreadServiceCallback; pub const JsErrorCannotSerializeDebugScript = JsErrorCode.ErrorCannotSerializeDebugScript; pub const JsErrorAlreadyDebuggingContext = JsErrorCode.ErrorAlreadyDebuggingContext; pub const JsErrorAlreadyProfilingContext = JsErrorCode.ErrorAlreadyProfilingContext; pub const JsErrorIdleNotEnabled = JsErrorCode.ErrorIdleNotEnabled; pub const JsErrorCategoryEngine = JsErrorCode.ErrorCategoryEngine; pub const JsErrorOutOfMemory = JsErrorCode.ErrorOutOfMemory; pub const JsErrorCategoryScript = JsErrorCode.ErrorCategoryScript; pub const JsErrorScriptException = JsErrorCode.ErrorScriptException; pub const JsErrorScriptCompile = JsErrorCode.ErrorScriptCompile; pub const JsErrorScriptTerminated = JsErrorCode.ErrorScriptTerminated; pub const JsErrorScriptEvalDisabled = JsErrorCode.ErrorScriptEvalDisabled; pub const JsErrorCategoryFatal = JsErrorCode.ErrorCategoryFatal; pub const JsErrorFatal = JsErrorCode.ErrorFatal; pub const JsRuntimeAttributes = enum(i32) { None = 0, DisableBackgroundWork = 1, AllowScriptInterrupt = 2, EnableIdleProcessing = 4, DisableNativeCodeGeneration = 8, DisableEval = 16, }; pub const JsRuntimeAttributeNone = JsRuntimeAttributes.None; pub const JsRuntimeAttributeDisableBackgroundWork = JsRuntimeAttributes.DisableBackgroundWork; pub const JsRuntimeAttributeAllowScriptInterrupt = JsRuntimeAttributes.AllowScriptInterrupt; pub const JsRuntimeAttributeEnableIdleProcessing = JsRuntimeAttributes.EnableIdleProcessing; pub const JsRuntimeAttributeDisableNativeCodeGeneration = JsRuntimeAttributes.DisableNativeCodeGeneration; pub const JsRuntimeAttributeDisableEval = JsRuntimeAttributes.DisableEval; pub const JsMemoryEventType = enum(i32) { Allocate = 0, Free = 1, Failure = 2, }; pub const JsMemoryAllocate = JsMemoryEventType.Allocate; pub const JsMemoryFree = JsMemoryEventType.Free; pub const JsMemoryFailure = JsMemoryEventType.Failure; pub const JsMemoryAllocationCallback = switch (@import("builtin").zig_backend) { .stage1 => fn ( callbackState: ?*anyopaque, allocationEvent: JsMemoryEventType, allocationSize: usize, ) callconv(@import("std").os.windows.WINAPI) bool, else => *const fn ( callbackState: ?*anyopaque, allocationEvent: JsMemoryEventType, allocationSize: usize, ) callconv(@import("std").os.windows.WINAPI) bool, }; pub const JsBeforeCollectCallback = switch (@import("builtin").zig_backend) { .stage1 => fn ( callbackState: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) void, else => *const fn ( callbackState: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) void, }; pub const JsBackgroundWorkItemCallback = switch (@import("builtin").zig_backend) { .stage1 => fn ( callbackState: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) void, else => *const fn ( callbackState: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) void, }; pub const JsThreadServiceCallback = switch (@import("builtin").zig_backend) { .stage1 => fn ( callback: ?JsBackgroundWorkItemCallback, callbackState: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) bool, else => *const fn ( callback: ?JsBackgroundWorkItemCallback, callbackState: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) bool, }; pub const JsValueType = enum(i32) { Undefined = 0, Null = 1, Number = 2, String = 3, Boolean = 4, Object = 5, Function = 6, Error = 7, Array = 8, }; pub const JsUndefined = JsValueType.Undefined; pub const JsNull = JsValueType.Null; pub const JsNumber = JsValueType.Number; pub const JsString = JsValueType.String; pub const JsBoolean = JsValueType.Boolean; pub const JsObject = JsValueType.Object; pub const JsFunction = JsValueType.Function; pub const JsError = JsValueType.Error; pub const JsArray = JsValueType.Array; pub const JsFinalizeCallback = switch (@import("builtin").zig_backend) { .stage1 => fn ( data: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) void, else => *const fn ( data: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) void, }; pub const JsNativeFunction = switch (@import("builtin").zig_backend) { .stage1 => fn ( callee: ?*anyopaque, isConstructCall: bool, arguments: ?*?*anyopaque, argumentCount: u16, callbackState: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) ?*anyopaque, else => *const fn ( callee: ?*anyopaque, isConstructCall: bool, arguments: ?*?*anyopaque, argumentCount: u16, callbackState: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) ?*anyopaque, }; //-------------------------------------------------------------------------------- // Section: Functions (87) //-------------------------------------------------------------------------------- pub extern "chakra" fn JsCreateRuntime( attributes: JsRuntimeAttributes, runtimeVersion: JsRuntimeVersion, threadService: ?JsThreadServiceCallback, runtime: ?*?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) JsErrorCode; pub extern "chakra" fn JsCollectGarbage( runtime: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) JsErrorCode; pub extern "chakra" fn JsDisposeRuntime( runtime: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) JsErrorCode; pub extern "chakra" fn JsGetRuntimeMemoryUsage( runtime: ?*anyopaque, memoryUsage: ?*usize, ) callconv(@import("std").os.windows.WINAPI) JsErrorCode; pub extern "chakra" fn JsGetRuntimeMemoryLimit( runtime: ?*anyopaque, memoryLimit: ?*usize, ) callconv(@import("std").os.windows.WINAPI) JsErrorCode; pub extern "chakra" fn JsSetRuntimeMemoryLimit( runtime: ?*anyopaque, memoryLimit: usize, ) callconv(@import("std").os.windows.WINAPI) JsErrorCode; pub extern "chakra" fn JsSetRuntimeMemoryAllocationCallback( runtime: ?*anyopaque, callbackState: ?*anyopaque, allocationCallback: ?JsMemoryAllocationCallback, ) callconv(@import("std").os.windows.WINAPI) JsErrorCode; pub extern "chakra" fn JsSetRuntimeBeforeCollectCallback( runtime: ?*anyopaque, callbackState: ?*anyopaque, beforeCollectCallback: ?JsBeforeCollectCallback, ) callconv(@import("std").os.windows.WINAPI) JsErrorCode; pub extern "chakra" fn JsAddRef( ref: ?*anyopaque, count: ?*u32, ) callconv(@import("std").os.windows.WINAPI) JsErrorCode; pub extern "chakra" fn JsRelease( ref: ?*anyopaque, count: ?*u32, ) callconv(@import("std").os.windows.WINAPI) JsErrorCode; pub usingnamespace switch (@import("../zig.zig").arch) { .X64, .Arm64 => struct { pub extern "chakra" fn JsCreateContext( runtime: ?*anyopaque, debugApplication: ?*IDebugApplication64, newContext: ?*?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) JsErrorCode; }, else => struct {}, }; pub extern "chakra" fn JsGetCurrentContext( currentContext: ?*?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) JsErrorCode; pub extern "chakra" fn JsSetCurrentContext( context: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) JsErrorCode; pub extern "chakra" fn JsGetRuntime( context: ?*anyopaque, runtime: ?*?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) JsErrorCode; pub usingnamespace switch (@import("../zig.zig").arch) { .X64, .Arm64 => struct { pub extern "chakra" fn JsStartDebugging( debugApplication: ?*IDebugApplication64, ) callconv(@import("std").os.windows.WINAPI) JsErrorCode; }, else => struct {}, }; pub extern "chakra" fn JsIdle( nextIdleTick: ?*u32, ) callconv(@import("std").os.windows.WINAPI) JsErrorCode; pub extern "chakra" fn JsParseScript( script: ?[*:0]const u16, sourceContext: usize, sourceUrl: ?[*:0]const u16, result: ?*?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) JsErrorCode; pub extern "chakra" fn JsRunScript( script: ?[*:0]const u16, sourceContext: usize, sourceUrl: ?[*:0]const u16, result: ?*?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) JsErrorCode; pub extern "chakra" fn JsSerializeScript( script: ?[*:0]const u16, buffer: ?[*:0]u8, bufferSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) JsErrorCode; pub extern "chakra" fn JsParseSerializedScript( script: ?[*:0]const u16, buffer: ?*u8, sourceContext: usize, sourceUrl: ?[*:0]const u16, result: ?*?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) JsErrorCode; pub extern "chakra" fn JsRunSerializedScript( script: ?[*:0]const u16, buffer: ?*u8, sourceContext: usize, sourceUrl: ?[*:0]const u16, result: ?*?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) JsErrorCode; pub extern "chakra" fn JsGetPropertyIdFromName( name: ?[*:0]const u16, propertyId: ?*?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) JsErrorCode; pub extern "chakra" fn JsGetPropertyNameFromId( propertyId: ?*anyopaque, name: ?*const ?*u16, ) callconv(@import("std").os.windows.WINAPI) JsErrorCode; pub extern "chakra" fn JsGetUndefinedValue( undefinedValue: ?*?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) JsErrorCode; pub extern "chakra" fn JsGetNullValue( nullValue: ?*?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) JsErrorCode; pub extern "chakra" fn JsGetTrueValue( trueValue: ?*?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) JsErrorCode; pub extern "chakra" fn JsGetFalseValue( falseValue: ?*?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) JsErrorCode; pub extern "chakra" fn JsBoolToBoolean( value: u8, booleanValue: ?*?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) JsErrorCode; pub extern "chakra" fn JsBooleanToBool( value: ?*anyopaque, boolValue: ?*bool, ) callconv(@import("std").os.windows.WINAPI) JsErrorCode; pub extern "chakra" fn JsConvertValueToBoolean( value: ?*anyopaque, booleanValue: ?*?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) JsErrorCode; pub extern "chakra" fn JsGetValueType( value: ?*anyopaque, type: ?*JsValueType, ) callconv(@import("std").os.windows.WINAPI) JsErrorCode; pub extern "chakra" fn JsDoubleToNumber( doubleValue: f64, value: ?*?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) JsErrorCode; pub extern "chakra" fn JsIntToNumber( intValue: i32, value: ?*?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) JsErrorCode; pub extern "chakra" fn JsNumberToDouble( value: ?*anyopaque, doubleValue: ?*f64, ) callconv(@import("std").os.windows.WINAPI) JsErrorCode; pub extern "chakra" fn JsConvertValueToNumber( value: ?*anyopaque, numberValue: ?*?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) JsErrorCode; pub extern "chakra" fn JsGetStringLength( stringValue: ?*anyopaque, length: ?*i32, ) callconv(@import("std").os.windows.WINAPI) JsErrorCode; pub extern "chakra" fn JsPointerToString( stringValue: [*:0]const u16, stringLength: usize, value: ?*?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) JsErrorCode; pub extern "chakra" fn JsStringToPointer( value: ?*anyopaque, stringValue: ?*const ?*u16, stringLength: ?*usize, ) callconv(@import("std").os.windows.WINAPI) JsErrorCode; pub extern "chakra" fn JsConvertValueToString( value: ?*anyopaque, stringValue: ?*?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) JsErrorCode; pub extern "chakra" fn JsVariantToValue( variant: ?*VARIANT, value: ?*?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) JsErrorCode; pub extern "chakra" fn JsValueToVariant( object: ?*anyopaque, variant: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) JsErrorCode; pub extern "chakra" fn JsGetGlobalObject( globalObject: ?*?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) JsErrorCode; pub extern "chakra" fn JsCreateObject( object: ?*?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) JsErrorCode; pub extern "chakra" fn JsCreateExternalObject( data: ?*anyopaque, finalizeCallback: ?JsFinalizeCallback, object: ?*?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) JsErrorCode; pub extern "chakra" fn JsConvertValueToObject( value: ?*anyopaque, object: ?*?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) JsErrorCode; pub extern "chakra" fn JsGetPrototype( object: ?*anyopaque, prototypeObject: ?*?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) JsErrorCode; pub extern "chakra" fn JsSetPrototype( object: ?*anyopaque, prototypeObject: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) JsErrorCode; pub extern "chakra" fn JsGetExtensionAllowed( object: ?*anyopaque, value: ?*bool, ) callconv(@import("std").os.windows.WINAPI) JsErrorCode; pub extern "chakra" fn JsPreventExtension( object: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) JsErrorCode; pub extern "chakra" fn JsGetProperty( object: ?*anyopaque, propertyId: ?*anyopaque, value: ?*?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) JsErrorCode; pub extern "chakra" fn JsGetOwnPropertyDescriptor( object: ?*anyopaque, propertyId: ?*anyopaque, propertyDescriptor: ?*?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) JsErrorCode; pub extern "chakra" fn JsGetOwnPropertyNames( object: ?*anyopaque, propertyNames: ?*?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) JsErrorCode; pub extern "chakra" fn JsSetProperty( object: ?*anyopaque, propertyId: ?*anyopaque, value: ?*anyopaque, useStrictRules: u8, ) callconv(@import("std").os.windows.WINAPI) JsErrorCode; pub extern "chakra" fn JsHasProperty( object: ?*anyopaque, propertyId: ?*anyopaque, hasProperty: ?*bool, ) callconv(@import("std").os.windows.WINAPI) JsErrorCode; pub extern "chakra" fn JsDeleteProperty( object: ?*anyopaque, propertyId: ?*anyopaque, useStrictRules: u8, result: ?*?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) JsErrorCode; pub extern "chakra" fn JsDefineProperty( object: ?*anyopaque, propertyId: ?*anyopaque, propertyDescriptor: ?*anyopaque, result: ?*bool, ) callconv(@import("std").os.windows.WINAPI) JsErrorCode; pub extern "chakra" fn JsHasIndexedProperty( object: ?*anyopaque, index: ?*anyopaque, result: ?*bool, ) callconv(@import("std").os.windows.WINAPI) JsErrorCode; pub extern "chakra" fn JsGetIndexedProperty( object: ?*anyopaque, index: ?*anyopaque, result: ?*?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) JsErrorCode; pub extern "chakra" fn JsSetIndexedProperty( object: ?*anyopaque, index: ?*anyopaque, value: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) JsErrorCode; pub extern "chakra" fn JsDeleteIndexedProperty( object: ?*anyopaque, index: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) JsErrorCode; pub extern "chakra" fn JsEquals( object1: ?*anyopaque, object2: ?*anyopaque, result: ?*bool, ) callconv(@import("std").os.windows.WINAPI) JsErrorCode; pub extern "chakra" fn JsStrictEquals( object1: ?*anyopaque, object2: ?*anyopaque, result: ?*bool, ) callconv(@import("std").os.windows.WINAPI) JsErrorCode; pub extern "chakra" fn JsHasExternalData( object: ?*anyopaque, value: ?*bool, ) callconv(@import("std").os.windows.WINAPI) JsErrorCode; pub extern "chakra" fn JsGetExternalData( object: ?*anyopaque, externalData: ?*?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) JsErrorCode; pub extern "chakra" fn JsSetExternalData( object: ?*anyopaque, externalData: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) JsErrorCode; pub extern "chakra" fn JsCreateArray( length: u32, result: ?*?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) JsErrorCode; pub extern "chakra" fn JsCallFunction( function: ?*anyopaque, arguments: [*]?*anyopaque, argumentCount: u16, result: ?*?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) JsErrorCode; pub extern "chakra" fn JsConstructObject( function: ?*anyopaque, arguments: [*]?*anyopaque, argumentCount: u16, result: ?*?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) JsErrorCode; pub extern "chakra" fn JsCreateFunction( nativeFunction: ?JsNativeFunction, callbackState: ?*anyopaque, function: ?*?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) JsErrorCode; pub extern "chakra" fn JsCreateError( message: ?*anyopaque, @"error": ?*?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) JsErrorCode; pub extern "chakra" fn JsCreateRangeError( message: ?*anyopaque, @"error": ?*?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) JsErrorCode; pub extern "chakra" fn JsCreateReferenceError( message: ?*anyopaque, @"error": ?*?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) JsErrorCode; pub extern "chakra" fn JsCreateSyntaxError( message: ?*anyopaque, @"error": ?*?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) JsErrorCode; pub extern "chakra" fn JsCreateTypeError( message: ?*anyopaque, @"error": ?*?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) JsErrorCode; pub extern "chakra" fn JsCreateURIError( message: ?*anyopaque, @"error": ?*?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) JsErrorCode; pub extern "chakra" fn JsHasException( hasException: ?*bool, ) callconv(@import("std").os.windows.WINAPI) JsErrorCode; pub extern "chakra" fn JsGetAndClearException( exception: ?*?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) JsErrorCode; pub extern "chakra" fn JsSetException( exception: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) JsErrorCode; pub extern "chakra" fn JsDisableRuntimeExecution( runtime: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) JsErrorCode; pub extern "chakra" fn JsEnableRuntimeExecution( runtime: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) JsErrorCode; pub extern "chakra" fn JsIsRuntimeExecutionDisabled( runtime: ?*anyopaque, isDisabled: ?*bool, ) callconv(@import("std").os.windows.WINAPI) JsErrorCode; pub extern "chakra" fn JsStartProfiling( callback: ?*IActiveScriptProfilerCallback, eventMask: PROFILER_EVENT_MASK, context: u32, ) callconv(@import("std").os.windows.WINAPI) JsErrorCode; pub extern "chakra" fn JsStopProfiling( reason: HRESULT, ) callconv(@import("std").os.windows.WINAPI) JsErrorCode; pub extern "chakra" fn JsEnumerateHeap( enumerator: ?*?*IActiveScriptProfilerHeapEnum, ) callconv(@import("std").os.windows.WINAPI) JsErrorCode; pub extern "chakra" fn JsIsEnumeratingHeap( isEnumeratingHeap: ?*bool, ) callconv(@import("std").os.windows.WINAPI) JsErrorCode; pub usingnamespace switch (@import("../zig.zig").arch) { .X86 => struct { pub extern "chakra" fn JsCreateContext( runtime: ?*anyopaque, debugApplication: ?*IDebugApplication32, newContext: ?*?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) JsErrorCode; }, else => struct {}, }; pub usingnamespace switch (@import("../zig.zig").arch) { .X86 => struct { pub extern "chakra" fn JsStartDebugging( debugApplication: ?*IDebugApplication32, ) callconv(@import("std").os.windows.WINAPI) JsErrorCode; }, else => struct {}, }; //-------------------------------------------------------------------------------- // Section: Unicode Aliases (0) //-------------------------------------------------------------------------------- const thismodule = @This(); pub usingnamespace switch (@import("../zig.zig").unicode_mode) { .ansi => struct {}, .wide => struct {}, .unspecified => if (@import("builtin").is_test) struct {} else struct {}, }; //-------------------------------------------------------------------------------- // Section: Imports (8) //-------------------------------------------------------------------------------- const HRESULT = @import("../foundation.zig").HRESULT; const IActiveScriptProfilerCallback = @import("../system/diagnostics/debug.zig").IActiveScriptProfilerCallback; const IActiveScriptProfilerHeapEnum = @import("../system/diagnostics/debug.zig").IActiveScriptProfilerHeapEnum; const PROFILER_EVENT_MASK = @import("../system/diagnostics/debug.zig").PROFILER_EVENT_MASK; const PWSTR = @import("../foundation.zig").PWSTR; const VARIANT = @import("../system/com.zig").VARIANT; // 2 arch-specific imports const IDebugApplication32 = switch (@import("../zig.zig").arch) { .X86 => @import("../system/diagnostics/debug.zig").IDebugApplication32, else => usize, // NOTE: this should be a @compileError but can't because of https://github.com/ziglang/zig/issues/9682 }; const IDebugApplication64 = switch (@import("../zig.zig").arch) { .X64, .Arm64 => @import("../system/diagnostics/debug.zig").IDebugApplication64, else => usize, // NOTE: this should be a @compileError but can't because of https://github.com/ziglang/zig/issues/9682 }; test { // The following '_ = <FuncPtrType>' lines are a workaround for https://github.com/ziglang/zig/issues/4476 if (@hasDecl(@This(), "JsMemoryAllocationCallback")) { _ = JsMemoryAllocationCallback; } if (@hasDecl(@This(), "JsBeforeCollectCallback")) { _ = JsBeforeCollectCallback; } if (@hasDecl(@This(), "JsBackgroundWorkItemCallback")) { _ = JsBackgroundWorkItemCallback; } if (@hasDecl(@This(), "JsThreadServiceCallback")) { _ = JsThreadServiceCallback; } if (@hasDecl(@This(), "JsFinalizeCallback")) { _ = JsFinalizeCallback; } if (@hasDecl(@This(), "JsNativeFunction")) { _ = JsNativeFunction; } @setEvalBranchQuota(comptime @import("std").meta.declarations(@This()).len * 3); // reference all the pub declarations if (!@import("builtin").is_test) return; inline for (comptime @import("std").meta.declarations(@This())) |decl| { if (decl.is_pub) { _ = @field(@This(), decl.name); } } }
0
repos/capy/vendor/zigwin32/win32
repos/capy/vendor/zigwin32/win32/system/system_information.zig
//! NOTE: this file is autogenerated, DO NOT MODIFY //-------------------------------------------------------------------------------- // Section: Constants (113) //-------------------------------------------------------------------------------- pub const NTDDI_WIN2K = @as(u32, 83886080); pub const NTDDI_WINXP = @as(u32, 83951616); pub const NTDDI_WINXPSP2 = @as(u32, 83952128); pub const NTDDI_WS03SP1 = @as(u32, 84017408); pub const NTDDI_VISTA = @as(u32, 100663296); pub const NTDDI_VISTASP1 = @as(u32, 100663552); pub const NTDDI_WIN7 = @as(u32, 100728832); pub const NTDDI_WIN8 = @as(u32, 100794368); pub const NTDDI_WINBLUE = @as(u32, 100859904); pub const NTDDI_WINTHRESHOLD = @as(u32, 167772160); pub const SYSTEM_CPU_SET_INFORMATION_PARKED = @as(u32, 1); pub const SYSTEM_CPU_SET_INFORMATION_ALLOCATED = @as(u32, 2); pub const SYSTEM_CPU_SET_INFORMATION_ALLOCATED_TO_TARGET_PROCESS = @as(u32, 4); pub const SYSTEM_CPU_SET_INFORMATION_REALTIME = @as(u32, 8); pub const _WIN32_WINNT_NT4 = @as(u32, 1024); pub const _WIN32_WINNT_WIN2K = @as(u32, 1280); pub const _WIN32_WINNT_WINXP = @as(u32, 1281); pub const _WIN32_WINNT_WS03 = @as(u32, 1282); pub const _WIN32_WINNT_WIN6 = @as(u32, 1536); pub const _WIN32_WINNT_VISTA = @as(u32, 1536); pub const _WIN32_WINNT_WS08 = @as(u32, 1536); pub const _WIN32_WINNT_LONGHORN = @as(u32, 1536); pub const _WIN32_WINNT_WIN7 = @as(u32, 1537); pub const _WIN32_WINNT_WIN8 = @as(u32, 1538); pub const _WIN32_WINNT_WINBLUE = @as(u32, 1539); pub const _WIN32_WINNT_WINTHRESHOLD = @as(u32, 2560); pub const _WIN32_WINNT_WIN10 = @as(u32, 2560); pub const _WIN32_IE_IE20 = @as(u32, 512); pub const _WIN32_IE_IE30 = @as(u32, 768); pub const _WIN32_IE_IE302 = @as(u32, 770); pub const _WIN32_IE_IE40 = @as(u32, 1024); pub const _WIN32_IE_IE401 = @as(u32, 1025); pub const _WIN32_IE_IE50 = @as(u32, 1280); pub const _WIN32_IE_IE501 = @as(u32, 1281); pub const _WIN32_IE_IE55 = @as(u32, 1360); pub const _WIN32_IE_IE60 = @as(u32, 1536); pub const _WIN32_IE_IE60SP1 = @as(u32, 1537); pub const _WIN32_IE_IE60SP2 = @as(u32, 1539); pub const _WIN32_IE_IE70 = @as(u32, 1792); pub const _WIN32_IE_IE80 = @as(u32, 2048); pub const _WIN32_IE_IE90 = @as(u32, 2304); pub const _WIN32_IE_IE100 = @as(u32, 2560); pub const _WIN32_IE_IE110 = @as(u32, 2560); pub const _WIN32_IE_NT4 = @as(u32, 512); pub const _WIN32_IE_NT4SP1 = @as(u32, 512); pub const _WIN32_IE_NT4SP2 = @as(u32, 512); pub const _WIN32_IE_NT4SP3 = @as(u32, 770); pub const _WIN32_IE_NT4SP4 = @as(u32, 1025); pub const _WIN32_IE_NT4SP5 = @as(u32, 1025); pub const _WIN32_IE_NT4SP6 = @as(u32, 1280); pub const _WIN32_IE_WIN98 = @as(u32, 1025); pub const _WIN32_IE_WIN98SE = @as(u32, 1280); pub const _WIN32_IE_WINME = @as(u32, 1360); pub const _WIN32_IE_WIN2K = @as(u32, 1281); pub const _WIN32_IE_WIN2KSP1 = @as(u32, 1281); pub const _WIN32_IE_WIN2KSP2 = @as(u32, 1281); pub const _WIN32_IE_WIN2KSP3 = @as(u32, 1281); pub const _WIN32_IE_WIN2KSP4 = @as(u32, 1281); pub const _WIN32_IE_XP = @as(u32, 1536); pub const _WIN32_IE_XPSP1 = @as(u32, 1537); pub const _WIN32_IE_XPSP2 = @as(u32, 1539); pub const _WIN32_IE_WS03 = @as(u32, 1538); pub const _WIN32_IE_WS03SP1 = @as(u32, 1539); pub const _WIN32_IE_WIN6 = @as(u32, 1792); pub const _WIN32_IE_LONGHORN = @as(u32, 1792); pub const _WIN32_IE_WIN7 = @as(u32, 2048); pub const _WIN32_IE_WIN8 = @as(u32, 2560); pub const _WIN32_IE_WINBLUE = @as(u32, 2560); pub const _WIN32_IE_WINTHRESHOLD = @as(u32, 2560); pub const _WIN32_IE_WIN10 = @as(u32, 2560); pub const NTDDI_WIN4 = @as(u32, 67108864); pub const NTDDI_WIN2KSP1 = @as(u32, 83886336); pub const NTDDI_WIN2KSP2 = @as(u32, 83886592); pub const NTDDI_WIN2KSP3 = @as(u32, 83886848); pub const NTDDI_WIN2KSP4 = @as(u32, 83887104); pub const NTDDI_WINXPSP1 = @as(u32, 83951872); pub const NTDDI_WINXPSP3 = @as(u32, 83952384); pub const NTDDI_WINXPSP4 = @as(u32, 83952640); pub const NTDDI_WS03 = @as(u32, 84017152); pub const NTDDI_WS03SP2 = @as(u32, 84017664); pub const NTDDI_WS03SP3 = @as(u32, 84017920); pub const NTDDI_WS03SP4 = @as(u32, 84018176); pub const NTDDI_WIN6 = @as(u32, 100663296); pub const NTDDI_WIN6SP1 = @as(u32, 100663552); pub const NTDDI_WIN6SP2 = @as(u32, 100663808); pub const NTDDI_WIN6SP3 = @as(u32, 100664064); pub const NTDDI_WIN6SP4 = @as(u32, 100664320); pub const NTDDI_VISTASP2 = @as(u32, 100663808); pub const NTDDI_VISTASP3 = @as(u32, 100664064); pub const NTDDI_VISTASP4 = @as(u32, 100664320); pub const NTDDI_LONGHORN = @as(u32, 100663296); pub const NTDDI_WS08 = @as(u32, 100663552); pub const NTDDI_WS08SP2 = @as(u32, 100663808); pub const NTDDI_WS08SP3 = @as(u32, 100664064); pub const NTDDI_WS08SP4 = @as(u32, 100664320); pub const NTDDI_WIN10 = @as(u32, 167772160); pub const NTDDI_WIN10_TH2 = @as(u32, 167772161); pub const NTDDI_WIN10_RS1 = @as(u32, 167772162); pub const NTDDI_WIN10_RS2 = @as(u32, 167772163); pub const NTDDI_WIN10_RS3 = @as(u32, 167772164); pub const NTDDI_WIN10_RS4 = @as(u32, 167772165); pub const NTDDI_WIN10_RS5 = @as(u32, 167772166); pub const NTDDI_WIN10_19H1 = @as(u32, 167772167); pub const NTDDI_WIN10_VB = @as(u32, 167772168); pub const NTDDI_WIN10_MN = @as(u32, 167772169); pub const NTDDI_WIN10_FE = @as(u32, 167772170); pub const NTDDI_WIN10_CO = @as(u32, 167772171); pub const WDK_NTDDI_VERSION = @as(u32, 167772171); pub const OSVERSION_MASK = @as(u32, 4294901760); pub const SPVERSION_MASK = @as(u32, 65280); pub const SUBVERSION_MASK = @as(u32, 255); pub const NTDDI_VERSION = @as(u32, 167772171); pub const SCEX2_ALT_NETBIOS_NAME = @as(u32, 1); //-------------------------------------------------------------------------------- // Section: Types (37) //-------------------------------------------------------------------------------- pub const VER_FLAGS = enum(u32) { MINORVERSION = 1, MAJORVERSION = 2, BUILDNUMBER = 4, PLATFORMID = 8, SERVICEPACKMINOR = 16, SERVICEPACKMAJOR = 32, SUITENAME = 64, PRODUCT_TYPE = 128, _, pub fn initFlags(o: struct { MINORVERSION: u1 = 0, MAJORVERSION: u1 = 0, BUILDNUMBER: u1 = 0, PLATFORMID: u1 = 0, SERVICEPACKMINOR: u1 = 0, SERVICEPACKMAJOR: u1 = 0, SUITENAME: u1 = 0, PRODUCT_TYPE: u1 = 0, }) VER_FLAGS { return @as(VER_FLAGS, @enumFromInt((if (o.MINORVERSION == 1) @intFromEnum(VER_FLAGS.MINORVERSION) else 0) | (if (o.MAJORVERSION == 1) @intFromEnum(VER_FLAGS.MAJORVERSION) else 0) | (if (o.BUILDNUMBER == 1) @intFromEnum(VER_FLAGS.BUILDNUMBER) else 0) | (if (o.PLATFORMID == 1) @intFromEnum(VER_FLAGS.PLATFORMID) else 0) | (if (o.SERVICEPACKMINOR == 1) @intFromEnum(VER_FLAGS.SERVICEPACKMINOR) else 0) | (if (o.SERVICEPACKMAJOR == 1) @intFromEnum(VER_FLAGS.SERVICEPACKMAJOR) else 0) | (if (o.SUITENAME == 1) @intFromEnum(VER_FLAGS.SUITENAME) else 0) | (if (o.PRODUCT_TYPE == 1) @intFromEnum(VER_FLAGS.PRODUCT_TYPE) else 0))); } }; pub const VER_MINORVERSION = VER_FLAGS.MINORVERSION; pub const VER_MAJORVERSION = VER_FLAGS.MAJORVERSION; pub const VER_BUILDNUMBER = VER_FLAGS.BUILDNUMBER; pub const VER_PLATFORMID = VER_FLAGS.PLATFORMID; pub const VER_SERVICEPACKMINOR = VER_FLAGS.SERVICEPACKMINOR; pub const VER_SERVICEPACKMAJOR = VER_FLAGS.SERVICEPACKMAJOR; pub const VER_SUITENAME = VER_FLAGS.SUITENAME; pub const VER_PRODUCT_TYPE = VER_FLAGS.PRODUCT_TYPE; pub const FIRMWARE_TABLE_PROVIDER = enum(u32) { ACPI = 1094930505, FIRM = 1179210317, RSMB = 1381190978, }; pub const ACPI = FIRMWARE_TABLE_PROVIDER.ACPI; pub const FIRM = FIRMWARE_TABLE_PROVIDER.FIRM; pub const RSMB = FIRMWARE_TABLE_PROVIDER.RSMB; pub const USER_CET_ENVIRONMENT = enum(u32) { WIN32_PROCESS = 0, SGX2_ENCLAVE = 2, VBS_ENCLAVE = 16, VBS_BASIC_ENCLAVE = 17, }; pub const USER_CET_ENVIRONMENT_WIN32_PROCESS = USER_CET_ENVIRONMENT.WIN32_PROCESS; pub const USER_CET_ENVIRONMENT_SGX2_ENCLAVE = USER_CET_ENVIRONMENT.SGX2_ENCLAVE; pub const USER_CET_ENVIRONMENT_VBS_ENCLAVE = USER_CET_ENVIRONMENT.VBS_ENCLAVE; pub const USER_CET_ENVIRONMENT_VBS_BASIC_ENCLAVE = USER_CET_ENVIRONMENT.VBS_BASIC_ENCLAVE; pub const OS_PRODUCT_TYPE = enum(u32) { BUSINESS = 6, BUSINESS_N = 16, CLUSTER_SERVER = 18, CLUSTER_SERVER_V = 64, CORE = 101, CORE_COUNTRYSPECIFIC = 99, CORE_N = 98, CORE_SINGLELANGUAGE = 100, DATACENTER_EVALUATION_SERVER = 80, DATACENTER_A_SERVER_CORE = 145, STANDARD_A_SERVER_CORE = 146, DATACENTER_SERVER = 8, DATACENTER_SERVER_CORE = 12, DATACENTER_SERVER_CORE_V = 39, DATACENTER_SERVER_V = 37, EDUCATION = 121, EDUCATION_N = 122, ENTERPRISE = 4, ENTERPRISE_E = 70, ENTERPRISE_EVALUATION = 72, ENTERPRISE_N = 27, ENTERPRISE_N_EVALUATION = 84, ENTERPRISE_S = 125, ENTERPRISE_S_EVALUATION = 129, ENTERPRISE_S_N = 126, ENTERPRISE_S_N_EVALUATION = 130, ENTERPRISE_SERVER = 10, ENTERPRISE_SERVER_CORE = 14, ENTERPRISE_SERVER_CORE_V = 41, ENTERPRISE_SERVER_IA64 = 15, ENTERPRISE_SERVER_V = 38, ESSENTIALBUSINESS_SERVER_ADDL = 60, ESSENTIALBUSINESS_SERVER_ADDLSVC = 62, ESSENTIALBUSINESS_SERVER_MGMT = 59, ESSENTIALBUSINESS_SERVER_MGMTSVC = 61, HOME_BASIC = 2, HOME_BASIC_E = 67, HOME_BASIC_N = 5, HOME_PREMIUM = 3, HOME_PREMIUM_E = 68, HOME_PREMIUM_N = 26, HOME_PREMIUM_SERVER = 34, HOME_SERVER = 19, HYPERV = 42, IOTUAP = 123, IOTUAPCOMMERCIAL = 131, MEDIUMBUSINESS_SERVER_MANAGEMENT = 30, MEDIUMBUSINESS_SERVER_MESSAGING = 32, MEDIUMBUSINESS_SERVER_SECURITY = 31, MOBILE_CORE = 104, MOBILE_ENTERPRISE = 133, MULTIPOINT_PREMIUM_SERVER = 77, MULTIPOINT_STANDARD_SERVER = 76, PRO_WORKSTATION = 161, PRO_WORKSTATION_N = 162, PROFESSIONAL = 48, PROFESSIONAL_E = 69, PROFESSIONAL_N = 49, PROFESSIONAL_WMC = 103, SB_SOLUTION_SERVER = 50, SB_SOLUTION_SERVER_EM = 54, SERVER_FOR_SB_SOLUTIONS = 51, SERVER_FOR_SB_SOLUTIONS_EM = 55, SERVER_FOR_SMALLBUSINESS = 24, SERVER_FOR_SMALLBUSINESS_V = 35, SERVER_FOUNDATION = 33, SMALLBUSINESS_SERVER = 9, SMALLBUSINESS_SERVER_PREMIUM = 25, SMALLBUSINESS_SERVER_PREMIUM_CORE = 63, SOLUTION_EMBEDDEDSERVER = 56, STANDARD_EVALUATION_SERVER = 79, STANDARD_SERVER = 7, STANDARD_SERVER_CORE_ = 13, STANDARD_SERVER_CORE_V = 40, STANDARD_SERVER_V = 36, STANDARD_SERVER_SOLUTIONS = 52, STANDARD_SERVER_SOLUTIONS_CORE = 53, STARTER = 11, STARTER_E = 66, STARTER_N = 47, STORAGE_ENTERPRISE_SERVER = 23, STORAGE_ENTERPRISE_SERVER_CORE = 46, STORAGE_EXPRESS_SERVER = 20, STORAGE_EXPRESS_SERVER_CORE = 43, STORAGE_STANDARD_EVALUATION_SERVER = 96, STORAGE_STANDARD_SERVER = 21, STORAGE_STANDARD_SERVER_CORE = 44, STORAGE_WORKGROUP_EVALUATION_SERVER = 95, STORAGE_WORKGROUP_SERVER = 22, STORAGE_WORKGROUP_SERVER_CORE = 45, ULTIMATE = 1, ULTIMATE_E = 71, ULTIMATE_N = 28, UNDEFINED = 0, WEB_SERVER = 17, WEB_SERVER_CORE = 29, }; pub const PRODUCT_BUSINESS = OS_PRODUCT_TYPE.BUSINESS; pub const PRODUCT_BUSINESS_N = OS_PRODUCT_TYPE.BUSINESS_N; pub const PRODUCT_CLUSTER_SERVER = OS_PRODUCT_TYPE.CLUSTER_SERVER; pub const PRODUCT_CLUSTER_SERVER_V = OS_PRODUCT_TYPE.CLUSTER_SERVER_V; pub const PRODUCT_CORE = OS_PRODUCT_TYPE.CORE; pub const PRODUCT_CORE_COUNTRYSPECIFIC = OS_PRODUCT_TYPE.CORE_COUNTRYSPECIFIC; pub const PRODUCT_CORE_N = OS_PRODUCT_TYPE.CORE_N; pub const PRODUCT_CORE_SINGLELANGUAGE = OS_PRODUCT_TYPE.CORE_SINGLELANGUAGE; pub const PRODUCT_DATACENTER_EVALUATION_SERVER = OS_PRODUCT_TYPE.DATACENTER_EVALUATION_SERVER; pub const PRODUCT_DATACENTER_A_SERVER_CORE = OS_PRODUCT_TYPE.DATACENTER_A_SERVER_CORE; pub const PRODUCT_STANDARD_A_SERVER_CORE = OS_PRODUCT_TYPE.STANDARD_A_SERVER_CORE; pub const PRODUCT_DATACENTER_SERVER = OS_PRODUCT_TYPE.DATACENTER_SERVER; pub const PRODUCT_DATACENTER_SERVER_CORE = OS_PRODUCT_TYPE.DATACENTER_SERVER_CORE; pub const PRODUCT_DATACENTER_SERVER_CORE_V = OS_PRODUCT_TYPE.DATACENTER_SERVER_CORE_V; pub const PRODUCT_DATACENTER_SERVER_V = OS_PRODUCT_TYPE.DATACENTER_SERVER_V; pub const PRODUCT_EDUCATION = OS_PRODUCT_TYPE.EDUCATION; pub const PRODUCT_EDUCATION_N = OS_PRODUCT_TYPE.EDUCATION_N; pub const PRODUCT_ENTERPRISE = OS_PRODUCT_TYPE.ENTERPRISE; pub const PRODUCT_ENTERPRISE_E = OS_PRODUCT_TYPE.ENTERPRISE_E; pub const PRODUCT_ENTERPRISE_EVALUATION = OS_PRODUCT_TYPE.ENTERPRISE_EVALUATION; pub const PRODUCT_ENTERPRISE_N = OS_PRODUCT_TYPE.ENTERPRISE_N; pub const PRODUCT_ENTERPRISE_N_EVALUATION = OS_PRODUCT_TYPE.ENTERPRISE_N_EVALUATION; pub const PRODUCT_ENTERPRISE_S = OS_PRODUCT_TYPE.ENTERPRISE_S; pub const PRODUCT_ENTERPRISE_S_EVALUATION = OS_PRODUCT_TYPE.ENTERPRISE_S_EVALUATION; pub const PRODUCT_ENTERPRISE_S_N = OS_PRODUCT_TYPE.ENTERPRISE_S_N; pub const PRODUCT_ENTERPRISE_S_N_EVALUATION = OS_PRODUCT_TYPE.ENTERPRISE_S_N_EVALUATION; pub const PRODUCT_ENTERPRISE_SERVER = OS_PRODUCT_TYPE.ENTERPRISE_SERVER; pub const PRODUCT_ENTERPRISE_SERVER_CORE = OS_PRODUCT_TYPE.ENTERPRISE_SERVER_CORE; pub const PRODUCT_ENTERPRISE_SERVER_CORE_V = OS_PRODUCT_TYPE.ENTERPRISE_SERVER_CORE_V; pub const PRODUCT_ENTERPRISE_SERVER_IA64 = OS_PRODUCT_TYPE.ENTERPRISE_SERVER_IA64; pub const PRODUCT_ENTERPRISE_SERVER_V = OS_PRODUCT_TYPE.ENTERPRISE_SERVER_V; pub const PRODUCT_ESSENTIALBUSINESS_SERVER_ADDL = OS_PRODUCT_TYPE.ESSENTIALBUSINESS_SERVER_ADDL; pub const PRODUCT_ESSENTIALBUSINESS_SERVER_ADDLSVC = OS_PRODUCT_TYPE.ESSENTIALBUSINESS_SERVER_ADDLSVC; pub const PRODUCT_ESSENTIALBUSINESS_SERVER_MGMT = OS_PRODUCT_TYPE.ESSENTIALBUSINESS_SERVER_MGMT; pub const PRODUCT_ESSENTIALBUSINESS_SERVER_MGMTSVC = OS_PRODUCT_TYPE.ESSENTIALBUSINESS_SERVER_MGMTSVC; pub const PRODUCT_HOME_BASIC = OS_PRODUCT_TYPE.HOME_BASIC; pub const PRODUCT_HOME_BASIC_E = OS_PRODUCT_TYPE.HOME_BASIC_E; pub const PRODUCT_HOME_BASIC_N = OS_PRODUCT_TYPE.HOME_BASIC_N; pub const PRODUCT_HOME_PREMIUM = OS_PRODUCT_TYPE.HOME_PREMIUM; pub const PRODUCT_HOME_PREMIUM_E = OS_PRODUCT_TYPE.HOME_PREMIUM_E; pub const PRODUCT_HOME_PREMIUM_N = OS_PRODUCT_TYPE.HOME_PREMIUM_N; pub const PRODUCT_HOME_PREMIUM_SERVER = OS_PRODUCT_TYPE.HOME_PREMIUM_SERVER; pub const PRODUCT_HOME_SERVER = OS_PRODUCT_TYPE.HOME_SERVER; pub const PRODUCT_HYPERV = OS_PRODUCT_TYPE.HYPERV; pub const PRODUCT_IOTUAP = OS_PRODUCT_TYPE.IOTUAP; pub const PRODUCT_IOTUAPCOMMERCIAL = OS_PRODUCT_TYPE.IOTUAPCOMMERCIAL; pub const PRODUCT_MEDIUMBUSINESS_SERVER_MANAGEMENT = OS_PRODUCT_TYPE.MEDIUMBUSINESS_SERVER_MANAGEMENT; pub const PRODUCT_MEDIUMBUSINESS_SERVER_MESSAGING = OS_PRODUCT_TYPE.MEDIUMBUSINESS_SERVER_MESSAGING; pub const PRODUCT_MEDIUMBUSINESS_SERVER_SECURITY = OS_PRODUCT_TYPE.MEDIUMBUSINESS_SERVER_SECURITY; pub const PRODUCT_MOBILE_CORE = OS_PRODUCT_TYPE.MOBILE_CORE; pub const PRODUCT_MOBILE_ENTERPRISE = OS_PRODUCT_TYPE.MOBILE_ENTERPRISE; pub const PRODUCT_MULTIPOINT_PREMIUM_SERVER = OS_PRODUCT_TYPE.MULTIPOINT_PREMIUM_SERVER; pub const PRODUCT_MULTIPOINT_STANDARD_SERVER = OS_PRODUCT_TYPE.MULTIPOINT_STANDARD_SERVER; pub const PRODUCT_PRO_WORKSTATION = OS_PRODUCT_TYPE.PRO_WORKSTATION; pub const PRODUCT_PRO_WORKSTATION_N = OS_PRODUCT_TYPE.PRO_WORKSTATION_N; pub const PRODUCT_PROFESSIONAL = OS_PRODUCT_TYPE.PROFESSIONAL; pub const PRODUCT_PROFESSIONAL_E = OS_PRODUCT_TYPE.PROFESSIONAL_E; pub const PRODUCT_PROFESSIONAL_N = OS_PRODUCT_TYPE.PROFESSIONAL_N; pub const PRODUCT_PROFESSIONAL_WMC = OS_PRODUCT_TYPE.PROFESSIONAL_WMC; pub const PRODUCT_SB_SOLUTION_SERVER = OS_PRODUCT_TYPE.SB_SOLUTION_SERVER; pub const PRODUCT_SB_SOLUTION_SERVER_EM = OS_PRODUCT_TYPE.SB_SOLUTION_SERVER_EM; pub const PRODUCT_SERVER_FOR_SB_SOLUTIONS = OS_PRODUCT_TYPE.SERVER_FOR_SB_SOLUTIONS; pub const PRODUCT_SERVER_FOR_SB_SOLUTIONS_EM = OS_PRODUCT_TYPE.SERVER_FOR_SB_SOLUTIONS_EM; pub const PRODUCT_SERVER_FOR_SMALLBUSINESS = OS_PRODUCT_TYPE.SERVER_FOR_SMALLBUSINESS; pub const PRODUCT_SERVER_FOR_SMALLBUSINESS_V = OS_PRODUCT_TYPE.SERVER_FOR_SMALLBUSINESS_V; pub const PRODUCT_SERVER_FOUNDATION = OS_PRODUCT_TYPE.SERVER_FOUNDATION; pub const PRODUCT_SMALLBUSINESS_SERVER = OS_PRODUCT_TYPE.SMALLBUSINESS_SERVER; pub const PRODUCT_SMALLBUSINESS_SERVER_PREMIUM = OS_PRODUCT_TYPE.SMALLBUSINESS_SERVER_PREMIUM; pub const PRODUCT_SMALLBUSINESS_SERVER_PREMIUM_CORE = OS_PRODUCT_TYPE.SMALLBUSINESS_SERVER_PREMIUM_CORE; pub const PRODUCT_SOLUTION_EMBEDDEDSERVER = OS_PRODUCT_TYPE.SOLUTION_EMBEDDEDSERVER; pub const PRODUCT_STANDARD_EVALUATION_SERVER = OS_PRODUCT_TYPE.STANDARD_EVALUATION_SERVER; pub const PRODUCT_STANDARD_SERVER = OS_PRODUCT_TYPE.STANDARD_SERVER; pub const PRODUCT_STANDARD_SERVER_CORE_ = OS_PRODUCT_TYPE.STANDARD_SERVER_CORE_; pub const PRODUCT_STANDARD_SERVER_CORE_V = OS_PRODUCT_TYPE.STANDARD_SERVER_CORE_V; pub const PRODUCT_STANDARD_SERVER_V = OS_PRODUCT_TYPE.STANDARD_SERVER_V; pub const PRODUCT_STANDARD_SERVER_SOLUTIONS = OS_PRODUCT_TYPE.STANDARD_SERVER_SOLUTIONS; pub const PRODUCT_STANDARD_SERVER_SOLUTIONS_CORE = OS_PRODUCT_TYPE.STANDARD_SERVER_SOLUTIONS_CORE; pub const PRODUCT_STARTER = OS_PRODUCT_TYPE.STARTER; pub const PRODUCT_STARTER_E = OS_PRODUCT_TYPE.STARTER_E; pub const PRODUCT_STARTER_N = OS_PRODUCT_TYPE.STARTER_N; pub const PRODUCT_STORAGE_ENTERPRISE_SERVER = OS_PRODUCT_TYPE.STORAGE_ENTERPRISE_SERVER; pub const PRODUCT_STORAGE_ENTERPRISE_SERVER_CORE = OS_PRODUCT_TYPE.STORAGE_ENTERPRISE_SERVER_CORE; pub const PRODUCT_STORAGE_EXPRESS_SERVER = OS_PRODUCT_TYPE.STORAGE_EXPRESS_SERVER; pub const PRODUCT_STORAGE_EXPRESS_SERVER_CORE = OS_PRODUCT_TYPE.STORAGE_EXPRESS_SERVER_CORE; pub const PRODUCT_STORAGE_STANDARD_EVALUATION_SERVER = OS_PRODUCT_TYPE.STORAGE_STANDARD_EVALUATION_SERVER; pub const PRODUCT_STORAGE_STANDARD_SERVER = OS_PRODUCT_TYPE.STORAGE_STANDARD_SERVER; pub const PRODUCT_STORAGE_STANDARD_SERVER_CORE = OS_PRODUCT_TYPE.STORAGE_STANDARD_SERVER_CORE; pub const PRODUCT_STORAGE_WORKGROUP_EVALUATION_SERVER = OS_PRODUCT_TYPE.STORAGE_WORKGROUP_EVALUATION_SERVER; pub const PRODUCT_STORAGE_WORKGROUP_SERVER = OS_PRODUCT_TYPE.STORAGE_WORKGROUP_SERVER; pub const PRODUCT_STORAGE_WORKGROUP_SERVER_CORE = OS_PRODUCT_TYPE.STORAGE_WORKGROUP_SERVER_CORE; pub const PRODUCT_ULTIMATE = OS_PRODUCT_TYPE.ULTIMATE; pub const PRODUCT_ULTIMATE_E = OS_PRODUCT_TYPE.ULTIMATE_E; pub const PRODUCT_ULTIMATE_N = OS_PRODUCT_TYPE.ULTIMATE_N; pub const PRODUCT_UNDEFINED = OS_PRODUCT_TYPE.UNDEFINED; pub const PRODUCT_WEB_SERVER = OS_PRODUCT_TYPE.WEB_SERVER; pub const PRODUCT_WEB_SERVER_CORE = OS_PRODUCT_TYPE.WEB_SERVER_CORE; pub const DEVICEFAMILYINFOENUM = enum(u32) { UAP = 0, WINDOWS_8X = 1, WINDOWS_PHONE_8X = 2, DESKTOP = 3, MOBILE = 4, XBOX = 5, TEAM = 6, IOT = 7, IOT_HEADLESS = 8, SERVER = 9, HOLOGRAPHIC = 10, XBOXSRA = 11, XBOXERA = 12, SERVER_NANO = 13, @"8828080" = 14, @"7067329" = 15, WINDOWS_CORE = 16, WINDOWS_CORE_HEADLESS = 17, // MAX = 17, this enum value conflicts with WINDOWS_CORE_HEADLESS }; pub const DEVICEFAMILYINFOENUM_UAP = DEVICEFAMILYINFOENUM.UAP; pub const DEVICEFAMILYINFOENUM_WINDOWS_8X = DEVICEFAMILYINFOENUM.WINDOWS_8X; pub const DEVICEFAMILYINFOENUM_WINDOWS_PHONE_8X = DEVICEFAMILYINFOENUM.WINDOWS_PHONE_8X; pub const DEVICEFAMILYINFOENUM_DESKTOP = DEVICEFAMILYINFOENUM.DESKTOP; pub const DEVICEFAMILYINFOENUM_MOBILE = DEVICEFAMILYINFOENUM.MOBILE; pub const DEVICEFAMILYINFOENUM_XBOX = DEVICEFAMILYINFOENUM.XBOX; pub const DEVICEFAMILYINFOENUM_TEAM = DEVICEFAMILYINFOENUM.TEAM; pub const DEVICEFAMILYINFOENUM_IOT = DEVICEFAMILYINFOENUM.IOT; pub const DEVICEFAMILYINFOENUM_IOT_HEADLESS = DEVICEFAMILYINFOENUM.IOT_HEADLESS; pub const DEVICEFAMILYINFOENUM_SERVER = DEVICEFAMILYINFOENUM.SERVER; pub const DEVICEFAMILYINFOENUM_HOLOGRAPHIC = DEVICEFAMILYINFOENUM.HOLOGRAPHIC; pub const DEVICEFAMILYINFOENUM_XBOXSRA = DEVICEFAMILYINFOENUM.XBOXSRA; pub const DEVICEFAMILYINFOENUM_XBOXERA = DEVICEFAMILYINFOENUM.XBOXERA; pub const DEVICEFAMILYINFOENUM_SERVER_NANO = DEVICEFAMILYINFOENUM.SERVER_NANO; pub const DEVICEFAMILYINFOENUM_8828080 = DEVICEFAMILYINFOENUM.@"8828080"; pub const DEVICEFAMILYINFOENUM_7067329 = DEVICEFAMILYINFOENUM.@"7067329"; pub const DEVICEFAMILYINFOENUM_WINDOWS_CORE = DEVICEFAMILYINFOENUM.WINDOWS_CORE; pub const DEVICEFAMILYINFOENUM_WINDOWS_CORE_HEADLESS = DEVICEFAMILYINFOENUM.WINDOWS_CORE_HEADLESS; pub const DEVICEFAMILYINFOENUM_MAX = DEVICEFAMILYINFOENUM.WINDOWS_CORE_HEADLESS; pub const DEVICEFAMILYDEVICEFORM = enum(u32) { UNKNOWN = 0, PHONE = 1, TABLET = 2, DESKTOP = 3, NOTEBOOK = 4, CONVERTIBLE = 5, DETACHABLE = 6, ALLINONE = 7, STICKPC = 8, PUCK = 9, LARGESCREEN = 10, HMD = 11, INDUSTRY_HANDHELD = 12, INDUSTRY_TABLET = 13, BANKING = 14, BUILDING_AUTOMATION = 15, DIGITAL_SIGNAGE = 16, GAMING = 17, HOME_AUTOMATION = 18, INDUSTRIAL_AUTOMATION = 19, KIOSK = 20, MAKER_BOARD = 21, MEDICAL = 22, NETWORKING = 23, POINT_OF_SERVICE = 24, PRINTING = 25, THIN_CLIENT = 26, TOY = 27, VENDING = 28, INDUSTRY_OTHER = 29, XBOX_ONE = 30, XBOX_ONE_S = 31, XBOX_ONE_X = 32, XBOX_ONE_X_DEVKIT = 33, XBOX_SERIES_X = 34, XBOX_SERIES_X_DEVKIT = 35, XBOX_RESERVED_00 = 36, XBOX_RESERVED_01 = 37, XBOX_RESERVED_02 = 38, XBOX_RESERVED_03 = 39, XBOX_RESERVED_04 = 40, XBOX_RESERVED_05 = 41, XBOX_RESERVED_06 = 42, XBOX_RESERVED_07 = 43, XBOX_RESERVED_08 = 44, XBOX_RESERVED_09 = 45, // MAX = 45, this enum value conflicts with XBOX_RESERVED_09 }; pub const DEVICEFAMILYDEVICEFORM_UNKNOWN = DEVICEFAMILYDEVICEFORM.UNKNOWN; pub const DEVICEFAMILYDEVICEFORM_PHONE = DEVICEFAMILYDEVICEFORM.PHONE; pub const DEVICEFAMILYDEVICEFORM_TABLET = DEVICEFAMILYDEVICEFORM.TABLET; pub const DEVICEFAMILYDEVICEFORM_DESKTOP = DEVICEFAMILYDEVICEFORM.DESKTOP; pub const DEVICEFAMILYDEVICEFORM_NOTEBOOK = DEVICEFAMILYDEVICEFORM.NOTEBOOK; pub const DEVICEFAMILYDEVICEFORM_CONVERTIBLE = DEVICEFAMILYDEVICEFORM.CONVERTIBLE; pub const DEVICEFAMILYDEVICEFORM_DETACHABLE = DEVICEFAMILYDEVICEFORM.DETACHABLE; pub const DEVICEFAMILYDEVICEFORM_ALLINONE = DEVICEFAMILYDEVICEFORM.ALLINONE; pub const DEVICEFAMILYDEVICEFORM_STICKPC = DEVICEFAMILYDEVICEFORM.STICKPC; pub const DEVICEFAMILYDEVICEFORM_PUCK = DEVICEFAMILYDEVICEFORM.PUCK; pub const DEVICEFAMILYDEVICEFORM_LARGESCREEN = DEVICEFAMILYDEVICEFORM.LARGESCREEN; pub const DEVICEFAMILYDEVICEFORM_HMD = DEVICEFAMILYDEVICEFORM.HMD; pub const DEVICEFAMILYDEVICEFORM_INDUSTRY_HANDHELD = DEVICEFAMILYDEVICEFORM.INDUSTRY_HANDHELD; pub const DEVICEFAMILYDEVICEFORM_INDUSTRY_TABLET = DEVICEFAMILYDEVICEFORM.INDUSTRY_TABLET; pub const DEVICEFAMILYDEVICEFORM_BANKING = DEVICEFAMILYDEVICEFORM.BANKING; pub const DEVICEFAMILYDEVICEFORM_BUILDING_AUTOMATION = DEVICEFAMILYDEVICEFORM.BUILDING_AUTOMATION; pub const DEVICEFAMILYDEVICEFORM_DIGITAL_SIGNAGE = DEVICEFAMILYDEVICEFORM.DIGITAL_SIGNAGE; pub const DEVICEFAMILYDEVICEFORM_GAMING = DEVICEFAMILYDEVICEFORM.GAMING; pub const DEVICEFAMILYDEVICEFORM_HOME_AUTOMATION = DEVICEFAMILYDEVICEFORM.HOME_AUTOMATION; pub const DEVICEFAMILYDEVICEFORM_INDUSTRIAL_AUTOMATION = DEVICEFAMILYDEVICEFORM.INDUSTRIAL_AUTOMATION; pub const DEVICEFAMILYDEVICEFORM_KIOSK = DEVICEFAMILYDEVICEFORM.KIOSK; pub const DEVICEFAMILYDEVICEFORM_MAKER_BOARD = DEVICEFAMILYDEVICEFORM.MAKER_BOARD; pub const DEVICEFAMILYDEVICEFORM_MEDICAL = DEVICEFAMILYDEVICEFORM.MEDICAL; pub const DEVICEFAMILYDEVICEFORM_NETWORKING = DEVICEFAMILYDEVICEFORM.NETWORKING; pub const DEVICEFAMILYDEVICEFORM_POINT_OF_SERVICE = DEVICEFAMILYDEVICEFORM.POINT_OF_SERVICE; pub const DEVICEFAMILYDEVICEFORM_PRINTING = DEVICEFAMILYDEVICEFORM.PRINTING; pub const DEVICEFAMILYDEVICEFORM_THIN_CLIENT = DEVICEFAMILYDEVICEFORM.THIN_CLIENT; pub const DEVICEFAMILYDEVICEFORM_TOY = DEVICEFAMILYDEVICEFORM.TOY; pub const DEVICEFAMILYDEVICEFORM_VENDING = DEVICEFAMILYDEVICEFORM.VENDING; pub const DEVICEFAMILYDEVICEFORM_INDUSTRY_OTHER = DEVICEFAMILYDEVICEFORM.INDUSTRY_OTHER; pub const DEVICEFAMILYDEVICEFORM_XBOX_ONE = DEVICEFAMILYDEVICEFORM.XBOX_ONE; pub const DEVICEFAMILYDEVICEFORM_XBOX_ONE_S = DEVICEFAMILYDEVICEFORM.XBOX_ONE_S; pub const DEVICEFAMILYDEVICEFORM_XBOX_ONE_X = DEVICEFAMILYDEVICEFORM.XBOX_ONE_X; pub const DEVICEFAMILYDEVICEFORM_XBOX_ONE_X_DEVKIT = DEVICEFAMILYDEVICEFORM.XBOX_ONE_X_DEVKIT; pub const DEVICEFAMILYDEVICEFORM_XBOX_SERIES_X = DEVICEFAMILYDEVICEFORM.XBOX_SERIES_X; pub const DEVICEFAMILYDEVICEFORM_XBOX_SERIES_X_DEVKIT = DEVICEFAMILYDEVICEFORM.XBOX_SERIES_X_DEVKIT; pub const DEVICEFAMILYDEVICEFORM_XBOX_RESERVED_00 = DEVICEFAMILYDEVICEFORM.XBOX_RESERVED_00; pub const DEVICEFAMILYDEVICEFORM_XBOX_RESERVED_01 = DEVICEFAMILYDEVICEFORM.XBOX_RESERVED_01; pub const DEVICEFAMILYDEVICEFORM_XBOX_RESERVED_02 = DEVICEFAMILYDEVICEFORM.XBOX_RESERVED_02; pub const DEVICEFAMILYDEVICEFORM_XBOX_RESERVED_03 = DEVICEFAMILYDEVICEFORM.XBOX_RESERVED_03; pub const DEVICEFAMILYDEVICEFORM_XBOX_RESERVED_04 = DEVICEFAMILYDEVICEFORM.XBOX_RESERVED_04; pub const DEVICEFAMILYDEVICEFORM_XBOX_RESERVED_05 = DEVICEFAMILYDEVICEFORM.XBOX_RESERVED_05; pub const DEVICEFAMILYDEVICEFORM_XBOX_RESERVED_06 = DEVICEFAMILYDEVICEFORM.XBOX_RESERVED_06; pub const DEVICEFAMILYDEVICEFORM_XBOX_RESERVED_07 = DEVICEFAMILYDEVICEFORM.XBOX_RESERVED_07; pub const DEVICEFAMILYDEVICEFORM_XBOX_RESERVED_08 = DEVICEFAMILYDEVICEFORM.XBOX_RESERVED_08; pub const DEVICEFAMILYDEVICEFORM_XBOX_RESERVED_09 = DEVICEFAMILYDEVICEFORM.XBOX_RESERVED_09; pub const DEVICEFAMILYDEVICEFORM_MAX = DEVICEFAMILYDEVICEFORM.XBOX_RESERVED_09; pub const FIRMWARE_TABLE_ID = u32; pub const GROUP_AFFINITY = extern struct { Mask: usize, Group: u16, Reserved: [3]u16, }; pub const SYSTEM_INFO = extern struct { Anonymous: extern union { dwOemId: u32, Anonymous: extern struct { wProcessorArchitecture: PROCESSOR_ARCHITECTURE, wReserved: u16, }, }, dwPageSize: u32, lpMinimumApplicationAddress: ?*anyopaque, lpMaximumApplicationAddress: ?*anyopaque, dwActiveProcessorMask: usize, dwNumberOfProcessors: u32, dwProcessorType: u32, dwAllocationGranularity: u32, wProcessorLevel: u16, wProcessorRevision: u16, }; pub const MEMORYSTATUSEX = extern struct { dwLength: u32, dwMemoryLoad: u32, ullTotalPhys: u64, ullAvailPhys: u64, ullTotalPageFile: u64, ullAvailPageFile: u64, ullTotalVirtual: u64, ullAvailVirtual: u64, ullAvailExtendedVirtual: u64, }; pub const COMPUTER_NAME_FORMAT = enum(i32) { NetBIOS = 0, DnsHostname = 1, DnsDomain = 2, DnsFullyQualified = 3, PhysicalNetBIOS = 4, PhysicalDnsHostname = 5, PhysicalDnsDomain = 6, PhysicalDnsFullyQualified = 7, Max = 8, }; pub const ComputerNameNetBIOS = COMPUTER_NAME_FORMAT.NetBIOS; pub const ComputerNameDnsHostname = COMPUTER_NAME_FORMAT.DnsHostname; pub const ComputerNameDnsDomain = COMPUTER_NAME_FORMAT.DnsDomain; pub const ComputerNameDnsFullyQualified = COMPUTER_NAME_FORMAT.DnsFullyQualified; pub const ComputerNamePhysicalNetBIOS = COMPUTER_NAME_FORMAT.PhysicalNetBIOS; pub const ComputerNamePhysicalDnsHostname = COMPUTER_NAME_FORMAT.PhysicalDnsHostname; pub const ComputerNamePhysicalDnsDomain = COMPUTER_NAME_FORMAT.PhysicalDnsDomain; pub const ComputerNamePhysicalDnsFullyQualified = COMPUTER_NAME_FORMAT.PhysicalDnsFullyQualified; pub const ComputerNameMax = COMPUTER_NAME_FORMAT.Max; pub const FIRMWARE_TYPE = enum(i32) { Unknown = 0, Bios = 1, Uefi = 2, Max = 3, }; pub const FirmwareTypeUnknown = FIRMWARE_TYPE.Unknown; pub const FirmwareTypeBios = FIRMWARE_TYPE.Bios; pub const FirmwareTypeUefi = FIRMWARE_TYPE.Uefi; pub const FirmwareTypeMax = FIRMWARE_TYPE.Max; pub const LOGICAL_PROCESSOR_RELATIONSHIP = enum(i32) { ProcessorCore = 0, NumaNode = 1, Cache = 2, ProcessorPackage = 3, Group = 4, ProcessorDie = 5, NumaNodeEx = 6, ProcessorModule = 7, All = 65535, }; pub const RelationProcessorCore = LOGICAL_PROCESSOR_RELATIONSHIP.ProcessorCore; pub const RelationNumaNode = LOGICAL_PROCESSOR_RELATIONSHIP.NumaNode; pub const RelationCache = LOGICAL_PROCESSOR_RELATIONSHIP.Cache; pub const RelationProcessorPackage = LOGICAL_PROCESSOR_RELATIONSHIP.ProcessorPackage; pub const RelationGroup = LOGICAL_PROCESSOR_RELATIONSHIP.Group; pub const RelationProcessorDie = LOGICAL_PROCESSOR_RELATIONSHIP.ProcessorDie; pub const RelationNumaNodeEx = LOGICAL_PROCESSOR_RELATIONSHIP.NumaNodeEx; pub const RelationProcessorModule = LOGICAL_PROCESSOR_RELATIONSHIP.ProcessorModule; pub const RelationAll = LOGICAL_PROCESSOR_RELATIONSHIP.All; pub const PROCESSOR_CACHE_TYPE = enum(i32) { Unified = 0, Instruction = 1, Data = 2, Trace = 3, }; pub const CacheUnified = PROCESSOR_CACHE_TYPE.Unified; pub const CacheInstruction = PROCESSOR_CACHE_TYPE.Instruction; pub const CacheData = PROCESSOR_CACHE_TYPE.Data; pub const CacheTrace = PROCESSOR_CACHE_TYPE.Trace; pub const CACHE_DESCRIPTOR = extern struct { Level: u8, Associativity: u8, LineSize: u16, Size: u32, Type: PROCESSOR_CACHE_TYPE, }; pub const SYSTEM_LOGICAL_PROCESSOR_INFORMATION = extern struct { ProcessorMask: usize, Relationship: LOGICAL_PROCESSOR_RELATIONSHIP, Anonymous: extern union { ProcessorCore: extern struct { Flags: u8, }, NumaNode: extern struct { NodeNumber: u32, }, Cache: CACHE_DESCRIPTOR, Reserved: [2]u64, }, }; pub const PROCESSOR_RELATIONSHIP = extern struct { Flags: u8, EfficiencyClass: u8, Reserved: [20]u8, GroupCount: u16, GroupMask: [1]GROUP_AFFINITY, }; pub const NUMA_NODE_RELATIONSHIP = extern struct { NodeNumber: u32, Reserved: [18]u8, GroupCount: u16, Anonymous: extern union { GroupMask: GROUP_AFFINITY, GroupMasks: [1]GROUP_AFFINITY, }, }; pub const CACHE_RELATIONSHIP = extern struct { Level: u8, Associativity: u8, LineSize: u16, CacheSize: u32, Type: PROCESSOR_CACHE_TYPE, Reserved: [18]u8, GroupCount: u16, Anonymous: extern union { GroupMask: GROUP_AFFINITY, GroupMasks: [1]GROUP_AFFINITY, }, }; pub const PROCESSOR_GROUP_INFO = extern struct { MaximumProcessorCount: u8, ActiveProcessorCount: u8, Reserved: [38]u8, ActiveProcessorMask: usize, }; pub const GROUP_RELATIONSHIP = extern struct { MaximumGroupCount: u16, ActiveGroupCount: u16, Reserved: [20]u8, GroupInfo: [1]PROCESSOR_GROUP_INFO, }; pub const SYSTEM_LOGICAL_PROCESSOR_INFORMATION_EX = extern struct { Relationship: LOGICAL_PROCESSOR_RELATIONSHIP, Size: u32, Anonymous: extern union { Processor: PROCESSOR_RELATIONSHIP, NumaNode: NUMA_NODE_RELATIONSHIP, Cache: CACHE_RELATIONSHIP, Group: GROUP_RELATIONSHIP, }, }; pub const CPU_SET_INFORMATION_TYPE = enum(i32) { n = 0, }; pub const CpuSetInformation = CPU_SET_INFORMATION_TYPE.n; pub const SYSTEM_CPU_SET_INFORMATION = extern struct { Size: u32, Type: CPU_SET_INFORMATION_TYPE, Anonymous: extern union { CpuSet: extern struct { Id: u32, Group: u16, LogicalProcessorIndex: u8, CoreIndex: u8, LastLevelCacheIndex: u8, NumaNodeIndex: u8, EfficiencyClass: u8, Anonymous1: extern union { AllFlags: u8, Anonymous: extern struct { _bitfield: u8, }, }, Anonymous2: extern union { Reserved: u32, SchedulingClass: u8, }, AllocationTag: u64, }, }, }; pub const SYSTEM_POOL_ZEROING_INFORMATION = extern struct { PoolZeroingSupportPresent: BOOLEAN, }; pub const SYSTEM_PROCESSOR_CYCLE_TIME_INFORMATION = extern struct { CycleTime: u64, }; pub const SYSTEM_SUPPORTED_PROCESSOR_ARCHITECTURES_INFORMATION = extern struct { _bitfield: u32, }; pub const OSVERSIONINFOA = extern struct { dwOSVersionInfoSize: u32, dwMajorVersion: u32, dwMinorVersion: u32, dwBuildNumber: u32, dwPlatformId: u32, szCSDVersion: [128]CHAR, }; pub const OSVERSIONINFOW = extern struct { dwOSVersionInfoSize: u32, dwMajorVersion: u32, dwMinorVersion: u32, dwBuildNumber: u32, dwPlatformId: u32, szCSDVersion: [128]u16, }; pub const OSVERSIONINFOEXA = extern struct { dwOSVersionInfoSize: u32, dwMajorVersion: u32, dwMinorVersion: u32, dwBuildNumber: u32, dwPlatformId: u32, szCSDVersion: [128]CHAR, wServicePackMajor: u16, wServicePackMinor: u16, wSuiteMask: u16, wProductType: u8, wReserved: u8, }; pub const OSVERSIONINFOEXW = extern struct { dwOSVersionInfoSize: u32, dwMajorVersion: u32, dwMinorVersion: u32, dwBuildNumber: u32, dwPlatformId: u32, szCSDVersion: [128]u16, wServicePackMajor: u16, wServicePackMinor: u16, wSuiteMask: u16, wProductType: u8, wReserved: u8, }; pub const OS_DEPLOYEMENT_STATE_VALUES = enum(i32) { STANDARD = 1, COMPACT = 2, }; pub const OS_DEPLOYMENT_STANDARD = OS_DEPLOYEMENT_STATE_VALUES.STANDARD; pub const OS_DEPLOYMENT_COMPACT = OS_DEPLOYEMENT_STATE_VALUES.COMPACT; pub const RTL_SYSTEM_GLOBAL_DATA_ID = enum(i32) { Unknown = 0, RngSeedVersion = 1, InterruptTime = 2, TimeZoneBias = 3, ImageNumberLow = 4, ImageNumberHigh = 5, TimeZoneId = 6, NtMajorVersion = 7, NtMinorVersion = 8, SystemExpirationDate = 9, KdDebuggerEnabled = 10, CyclesPerYield = 11, SafeBootMode = 12, LastSystemRITEventTickCount = 13, }; pub const GlobalDataIdUnknown = RTL_SYSTEM_GLOBAL_DATA_ID.Unknown; pub const GlobalDataIdRngSeedVersion = RTL_SYSTEM_GLOBAL_DATA_ID.RngSeedVersion; pub const GlobalDataIdInterruptTime = RTL_SYSTEM_GLOBAL_DATA_ID.InterruptTime; pub const GlobalDataIdTimeZoneBias = RTL_SYSTEM_GLOBAL_DATA_ID.TimeZoneBias; pub const GlobalDataIdImageNumberLow = RTL_SYSTEM_GLOBAL_DATA_ID.ImageNumberLow; pub const GlobalDataIdImageNumberHigh = RTL_SYSTEM_GLOBAL_DATA_ID.ImageNumberHigh; pub const GlobalDataIdTimeZoneId = RTL_SYSTEM_GLOBAL_DATA_ID.TimeZoneId; pub const GlobalDataIdNtMajorVersion = RTL_SYSTEM_GLOBAL_DATA_ID.NtMajorVersion; pub const GlobalDataIdNtMinorVersion = RTL_SYSTEM_GLOBAL_DATA_ID.NtMinorVersion; pub const GlobalDataIdSystemExpirationDate = RTL_SYSTEM_GLOBAL_DATA_ID.SystemExpirationDate; pub const GlobalDataIdKdDebuggerEnabled = RTL_SYSTEM_GLOBAL_DATA_ID.KdDebuggerEnabled; pub const GlobalDataIdCyclesPerYield = RTL_SYSTEM_GLOBAL_DATA_ID.CyclesPerYield; pub const GlobalDataIdSafeBootMode = RTL_SYSTEM_GLOBAL_DATA_ID.SafeBootMode; pub const GlobalDataIdLastSystemRITEventTickCount = RTL_SYSTEM_GLOBAL_DATA_ID.LastSystemRITEventTickCount; pub const MEMORYSTATUS = extern struct { dwLength: u32, dwMemoryLoad: u32, dwTotalPhys: usize, dwAvailPhys: usize, dwTotalPageFile: usize, dwAvailPageFile: usize, dwTotalVirtual: usize, dwAvailVirtual: usize, }; pub const DEP_SYSTEM_POLICY_TYPE = enum(i32) { PolicyAlwaysOff = 0, PolicyAlwaysOn = 1, PolicyOptIn = 2, PolicyOptOut = 3, TotalPolicyCount = 4, }; pub const DEPPolicyAlwaysOff = DEP_SYSTEM_POLICY_TYPE.PolicyAlwaysOff; pub const DEPPolicyAlwaysOn = DEP_SYSTEM_POLICY_TYPE.PolicyAlwaysOn; pub const DEPPolicyOptIn = DEP_SYSTEM_POLICY_TYPE.PolicyOptIn; pub const DEPPolicyOptOut = DEP_SYSTEM_POLICY_TYPE.PolicyOptOut; pub const DEPTotalPolicyCount = DEP_SYSTEM_POLICY_TYPE.TotalPolicyCount; pub const PGET_SYSTEM_WOW64_DIRECTORY_A = switch (@import("builtin").zig_backend) { .stage1 => fn ( lpBuffer: ?[*:0]u8, uSize: u32, ) callconv(@import("std").os.windows.WINAPI) u32, else => *const fn ( lpBuffer: ?[*:0]u8, uSize: u32, ) callconv(@import("std").os.windows.WINAPI) u32, }; pub const PGET_SYSTEM_WOW64_DIRECTORY_W = switch (@import("builtin").zig_backend) { .stage1 => fn ( lpBuffer: ?[*:0]u16, uSize: u32, ) callconv(@import("std").os.windows.WINAPI) u32, else => *const fn ( lpBuffer: ?[*:0]u16, uSize: u32, ) callconv(@import("std").os.windows.WINAPI) u32, }; //-------------------------------------------------------------------------------- // Section: Functions (62) //-------------------------------------------------------------------------------- // TODO: this type is limited to platform 'windows5.1.2600' pub extern "kernel32" fn GlobalMemoryStatusEx( lpBuffer: ?*MEMORYSTATUSEX, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows5.0' pub extern "kernel32" fn GetSystemInfo( lpSystemInfo: ?*SYSTEM_INFO, ) callconv(@import("std").os.windows.WINAPI) void; // TODO: this type is limited to platform 'windows5.0' pub extern "kernel32" fn GetSystemTime( lpSystemTime: ?*SYSTEMTIME, ) callconv(@import("std").os.windows.WINAPI) void; // TODO: this type is limited to platform 'windows5.0' pub extern "kernel32" fn GetSystemTimeAsFileTime( lpSystemTimeAsFileTime: ?*FILETIME, ) callconv(@import("std").os.windows.WINAPI) void; // TODO: this type is limited to platform 'windows5.0' pub extern "kernel32" fn GetLocalTime( lpSystemTime: ?*SYSTEMTIME, ) callconv(@import("std").os.windows.WINAPI) void; pub extern "kernel32" fn IsUserCetAvailableInEnvironment( UserCetEnvironment: USER_CET_ENVIRONMENT, ) callconv(@import("std").os.windows.WINAPI) BOOL; pub extern "kernel32" fn GetSystemLeapSecondInformation( Enabled: ?*BOOL, Flags: ?*u32, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows5.0' pub extern "kernel32" fn GetVersion() callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'windows5.0' pub extern "kernel32" fn SetLocalTime( lpSystemTime: ?*const SYSTEMTIME, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows5.0' pub extern "kernel32" fn GetTickCount() callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'windows6.0.6000' pub extern "kernel32" fn GetTickCount64() callconv(@import("std").os.windows.WINAPI) u64; // TODO: this type is limited to platform 'windows5.0' pub extern "kernel32" fn GetSystemTimeAdjustment( lpTimeAdjustment: ?*u32, lpTimeIncrement: ?*u32, lpTimeAdjustmentDisabled: ?*BOOL, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows10.0.10240' pub extern "api-ms-win-core-sysinfo-l1-2-4" fn GetSystemTimeAdjustmentPrecise( lpTimeAdjustment: ?*u64, lpTimeIncrement: ?*u64, lpTimeAdjustmentDisabled: ?*BOOL, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows5.0' pub extern "kernel32" fn GetSystemDirectoryA( lpBuffer: ?[*:0]u8, uSize: u32, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'windows5.0' pub extern "kernel32" fn GetSystemDirectoryW( lpBuffer: ?[*:0]u16, uSize: u32, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'windows5.0' pub extern "kernel32" fn GetWindowsDirectoryA( lpBuffer: ?[*:0]u8, uSize: u32, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'windows5.0' pub extern "kernel32" fn GetWindowsDirectoryW( lpBuffer: ?[*:0]u16, uSize: u32, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'windows5.0' pub extern "kernel32" fn GetSystemWindowsDirectoryA( lpBuffer: ?[*:0]u8, uSize: u32, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'windows5.0' pub extern "kernel32" fn GetSystemWindowsDirectoryW( lpBuffer: ?[*:0]u16, uSize: u32, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'windows5.0' pub extern "kernel32" fn GetComputerNameExA( NameType: COMPUTER_NAME_FORMAT, lpBuffer: ?[*:0]u8, nSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows5.0' pub extern "kernel32" fn GetComputerNameExW( NameType: COMPUTER_NAME_FORMAT, lpBuffer: ?[*:0]u16, nSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows5.0' pub extern "kernel32" fn SetComputerNameExW( NameType: COMPUTER_NAME_FORMAT, lpBuffer: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows5.0' pub extern "kernel32" fn SetSystemTime( lpSystemTime: ?*const SYSTEMTIME, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows5.0' pub extern "kernel32" fn GetVersionExA( lpVersionInformation: ?*OSVERSIONINFOA, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows5.0' pub extern "kernel32" fn GetVersionExW( lpVersionInformation: ?*OSVERSIONINFOW, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows6.0.6000' pub extern "kernel32" fn GetLogicalProcessorInformation( // TODO: what to do with BytesParamIndex 1? Buffer: ?*SYSTEM_LOGICAL_PROCESSOR_INFORMATION, ReturnedLength: ?*u32, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows6.1' pub extern "kernel32" fn GetLogicalProcessorInformationEx( RelationshipType: LOGICAL_PROCESSOR_RELATIONSHIP, // TODO: what to do with BytesParamIndex 2? Buffer: ?*SYSTEM_LOGICAL_PROCESSOR_INFORMATION_EX, ReturnedLength: ?*u32, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "kernel32" fn GetNativeSystemInfo( lpSystemInfo: ?*SYSTEM_INFO, ) callconv(@import("std").os.windows.WINAPI) void; // TODO: this type is limited to platform 'windows8.0' pub extern "kernel32" fn GetSystemTimePreciseAsFileTime( lpSystemTimeAsFileTime: ?*FILETIME, ) callconv(@import("std").os.windows.WINAPI) void; // TODO: this type is limited to platform 'windows6.0.6000' pub extern "kernel32" fn GetProductInfo( dwOSMajorVersion: u32, dwOSMinorVersion: u32, dwSpMajorVersion: u32, dwSpMinorVersion: u32, pdwReturnedProductType: ?*OS_PRODUCT_TYPE, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows5.0' pub extern "kernel32" fn VerSetConditionMask( ConditionMask: u64, TypeMask: VER_FLAGS, Condition: u8, ) callconv(@import("std").os.windows.WINAPI) u64; pub extern "api-ms-win-core-sysinfo-l1-2-0" fn GetOsSafeBootMode( Flags: ?*u32, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows6.0.6000' pub extern "kernel32" fn EnumSystemFirmwareTables( FirmwareTableProviderSignature: FIRMWARE_TABLE_PROVIDER, // TODO: what to do with BytesParamIndex 2? pFirmwareTableEnumBuffer: ?*FIRMWARE_TABLE_ID, BufferSize: u32, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'windows6.0.6000' pub extern "kernel32" fn GetSystemFirmwareTable( FirmwareTableProviderSignature: FIRMWARE_TABLE_PROVIDER, FirmwareTableID: FIRMWARE_TABLE_ID, // TODO: what to do with BytesParamIndex 3? pFirmwareTableBuffer: ?*anyopaque, BufferSize: u32, ) callconv(@import("std").os.windows.WINAPI) u32; pub extern "kernel32" fn DnsHostnameToComputerNameExW( Hostname: ?[*:0]const u16, ComputerName: ?[*:0]u16, nSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows6.0.6000' pub extern "kernel32" fn GetPhysicallyInstalledSystemMemory( TotalMemoryInKilobytes: ?*u64, ) callconv(@import("std").os.windows.WINAPI) BOOL; pub extern "kernel32" fn SetComputerNameEx2W( NameType: COMPUTER_NAME_FORMAT, Flags: u32, lpBuffer: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows5.0' pub extern "kernel32" fn SetSystemTimeAdjustment( dwTimeAdjustment: u32, bTimeAdjustmentDisabled: BOOL, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows10.0.10240' pub extern "api-ms-win-core-sysinfo-l1-2-4" fn SetSystemTimeAdjustmentPrecise( dwTimeAdjustment: u64, bTimeAdjustmentDisabled: BOOL, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows6.1' pub extern "kernel32" fn GetProcessorSystemCycleTime( Group: u16, // TODO: what to do with BytesParamIndex 2? Buffer: ?*SYSTEM_PROCESSOR_CYCLE_TIME_INFORMATION, ReturnedLength: ?*u32, ) callconv(@import("std").os.windows.WINAPI) BOOL; pub extern "api-ms-win-core-sysinfo-l1-2-3" fn GetOsManufacturingMode( pbEnabled: ?*BOOL, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows10.0.10240' pub extern "api-ms-win-core-sysinfo-l1-2-3" fn GetIntegratedDisplaySize( sizeInInches: ?*f64, ) callconv(@import("std").os.windows.WINAPI) HRESULT; // TODO: this type is limited to platform 'windows5.0' pub extern "kernel32" fn SetComputerNameA( lpComputerName: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows5.0' pub extern "kernel32" fn SetComputerNameW( lpComputerName: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows5.0' pub extern "kernel32" fn SetComputerNameExA( NameType: COMPUTER_NAME_FORMAT, lpBuffer: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) BOOL; pub extern "kernel32" fn GetSystemCpuSetInformation( // TODO: what to do with BytesParamIndex 1? Information: ?*SYSTEM_CPU_SET_INFORMATION, BufferLength: u32, ReturnedLength: ?*u32, Process: ?HANDLE, Flags: u32, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "kernel32" fn GetSystemWow64DirectoryA( lpBuffer: ?[*:0]u8, uSize: u32, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "kernel32" fn GetSystemWow64DirectoryW( lpBuffer: ?[*:0]u16, uSize: u32, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'windows10.0.10586' pub extern "api-ms-win-core-wow64-l1-1-1" fn GetSystemWow64Directory2A( lpBuffer: ?[*:0]u8, uSize: u32, ImageFileMachineType: u16, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'windows10.0.10586' pub extern "api-ms-win-core-wow64-l1-1-1" fn GetSystemWow64Directory2W( lpBuffer: ?[*:0]u16, uSize: u32, ImageFileMachineType: u16, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'windows10.0.16299' pub extern "kernel32" fn IsWow64GuestMachineSupported( WowGuestMachine: u16, MachineIsSupported: ?*BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT; pub extern "ntdll" fn RtlGetProductInfo( OSMajorVersion: u32, OSMinorVersion: u32, SpMajorVersion: u32, SpMinorVersion: u32, ReturnedProductType: ?*u32, ) callconv(@import("std").os.windows.WINAPI) BOOLEAN; pub extern "ntdll" fn RtlOsDeploymentState( Flags: u32, ) callconv(@import("std").os.windows.WINAPI) OS_DEPLOYEMENT_STATE_VALUES; pub extern "ntdllk" fn RtlGetSystemGlobalData( DataId: RTL_SYSTEM_GLOBAL_DATA_ID, Buffer: ?*anyopaque, Size: u32, ) callconv(@import("std").os.windows.WINAPI) u32; pub extern "ntdll" fn RtlGetDeviceFamilyInfoEnum( pullUAPInfo: ?*u64, pulDeviceFamily: ?*DEVICEFAMILYINFOENUM, pulDeviceForm: ?*DEVICEFAMILYDEVICEFORM, ) callconv(@import("std").os.windows.WINAPI) void; pub extern "ntdll" fn RtlConvertDeviceFamilyInfoToString( pulDeviceFamilyBufferSize: ?*u32, pulDeviceFormBufferSize: ?*u32, // TODO: what to do with BytesParamIndex 0? DeviceFamily: ?PWSTR, // TODO: what to do with BytesParamIndex 1? DeviceForm: ?PWSTR, ) callconv(@import("std").os.windows.WINAPI) u32; pub extern "ntdll" fn RtlSwitchedVVI( VersionInfo: ?*OSVERSIONINFOEXW, TypeMask: u32, ConditionMask: u64, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "kernel32" fn GlobalMemoryStatus( lpBuffer: ?*MEMORYSTATUS, ) callconv(@import("std").os.windows.WINAPI) void; // TODO: this type is limited to platform 'windows6.0.6000' pub extern "kernel32" fn GetSystemDEPPolicy() callconv(@import("std").os.windows.WINAPI) DEP_SYSTEM_POLICY_TYPE; // TODO: this type is limited to platform 'windows8.0' pub extern "kernel32" fn GetFirmwareType( FirmwareType: ?*FIRMWARE_TYPE, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows5.0' pub extern "kernel32" fn VerifyVersionInfoA( lpVersionInformation: ?*OSVERSIONINFOEXA, dwTypeMask: VER_FLAGS, dwlConditionMask: u64, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows5.0' pub extern "kernel32" fn VerifyVersionInfoW( lpVersionInformation: ?*OSVERSIONINFOEXW, dwTypeMask: VER_FLAGS, dwlConditionMask: u64, ) callconv(@import("std").os.windows.WINAPI) BOOL; //-------------------------------------------------------------------------------- // Section: Unicode Aliases (13) //-------------------------------------------------------------------------------- const thismodule = @This(); pub usingnamespace switch (@import("../zig.zig").unicode_mode) { .ansi => struct { pub const OSVERSIONINFO = thismodule.OSVERSIONINFOA; pub const OSVERSIONINFOEX = thismodule.OSVERSIONINFOEXA; pub const PGET_SYSTEM_WOW64_DIRECTORY_ = thismodule.PGET_SYSTEM_WOW64_DIRECTORY_A; pub const GetSystemDirectory = thismodule.GetSystemDirectoryA; pub const GetWindowsDirectory = thismodule.GetWindowsDirectoryA; pub const GetSystemWindowsDirectory = thismodule.GetSystemWindowsDirectoryA; pub const GetComputerNameEx = thismodule.GetComputerNameExA; pub const SetComputerNameEx = thismodule.SetComputerNameExA; pub const GetVersionEx = thismodule.GetVersionExA; pub const SetComputerName = thismodule.SetComputerNameA; pub const GetSystemWow64Directory = thismodule.GetSystemWow64DirectoryA; pub const GetSystemWow64Directory2 = thismodule.GetSystemWow64Directory2A; pub const VerifyVersionInfo = thismodule.VerifyVersionInfoA; }, .wide => struct { pub const OSVERSIONINFO = thismodule.OSVERSIONINFOW; pub const OSVERSIONINFOEX = thismodule.OSVERSIONINFOEXW; pub const PGET_SYSTEM_WOW64_DIRECTORY_ = thismodule.PGET_SYSTEM_WOW64_DIRECTORY_W; pub const GetSystemDirectory = thismodule.GetSystemDirectoryW; pub const GetWindowsDirectory = thismodule.GetWindowsDirectoryW; pub const GetSystemWindowsDirectory = thismodule.GetSystemWindowsDirectoryW; pub const GetComputerNameEx = thismodule.GetComputerNameExW; pub const SetComputerNameEx = thismodule.SetComputerNameExW; pub const GetVersionEx = thismodule.GetVersionExW; pub const SetComputerName = thismodule.SetComputerNameW; pub const GetSystemWow64Directory = thismodule.GetSystemWow64DirectoryW; pub const GetSystemWow64Directory2 = thismodule.GetSystemWow64Directory2W; pub const VerifyVersionInfo = thismodule.VerifyVersionInfoW; }, .unspecified => if (@import("builtin").is_test) struct { pub const OSVERSIONINFO = *opaque {}; pub const OSVERSIONINFOEX = *opaque {}; pub const PGET_SYSTEM_WOW64_DIRECTORY_ = *opaque {}; pub const GetSystemDirectory = *opaque {}; pub const GetWindowsDirectory = *opaque {}; pub const GetSystemWindowsDirectory = *opaque {}; pub const GetComputerNameEx = *opaque {}; pub const SetComputerNameEx = *opaque {}; pub const GetVersionEx = *opaque {}; pub const SetComputerName = *opaque {}; pub const GetSystemWow64Directory = *opaque {}; pub const GetSystemWow64Directory2 = *opaque {}; pub const VerifyVersionInfo = *opaque {}; } else struct { pub const OSVERSIONINFO = @compileError("'OSVERSIONINFO' requires that UNICODE be set to true or false in the root module"); pub const OSVERSIONINFOEX = @compileError("'OSVERSIONINFOEX' requires that UNICODE be set to true or false in the root module"); pub const PGET_SYSTEM_WOW64_DIRECTORY_ = @compileError("'PGET_SYSTEM_WOW64_DIRECTORY_' requires that UNICODE be set to true or false in the root module"); pub const GetSystemDirectory = @compileError("'GetSystemDirectory' requires that UNICODE be set to true or false in the root module"); pub const GetWindowsDirectory = @compileError("'GetWindowsDirectory' requires that UNICODE be set to true or false in the root module"); pub const GetSystemWindowsDirectory = @compileError("'GetSystemWindowsDirectory' requires that UNICODE be set to true or false in the root module"); pub const GetComputerNameEx = @compileError("'GetComputerNameEx' requires that UNICODE be set to true or false in the root module"); pub const SetComputerNameEx = @compileError("'SetComputerNameEx' requires that UNICODE be set to true or false in the root module"); pub const GetVersionEx = @compileError("'GetVersionEx' requires that UNICODE be set to true or false in the root module"); pub const SetComputerName = @compileError("'SetComputerName' requires that UNICODE be set to true or false in the root module"); pub const GetSystemWow64Directory = @compileError("'GetSystemWow64Directory' requires that UNICODE be set to true or false in the root module"); pub const GetSystemWow64Directory2 = @compileError("'GetSystemWow64Directory2' requires that UNICODE be set to true or false in the root module"); pub const VerifyVersionInfo = @compileError("'VerifyVersionInfo' requires that UNICODE be set to true or false in the root module"); }, }; //-------------------------------------------------------------------------------- // Section: Imports (10) //-------------------------------------------------------------------------------- const BOOL = @import("../foundation.zig").BOOL; const BOOLEAN = @import("../foundation.zig").BOOLEAN; const CHAR = @import("../foundation.zig").CHAR; const FILETIME = @import("../foundation.zig").FILETIME; const HANDLE = @import("../foundation.zig").HANDLE; const HRESULT = @import("../foundation.zig").HRESULT; const PROCESSOR_ARCHITECTURE = @import("../system/diagnostics/debug.zig").PROCESSOR_ARCHITECTURE; const PSTR = @import("../foundation.zig").PSTR; const PWSTR = @import("../foundation.zig").PWSTR; const SYSTEMTIME = @import("../foundation.zig").SYSTEMTIME; test { // The following '_ = <FuncPtrType>' lines are a workaround for https://github.com/ziglang/zig/issues/4476 if (@hasDecl(@This(), "PGET_SYSTEM_WOW64_DIRECTORY_A")) { _ = PGET_SYSTEM_WOW64_DIRECTORY_A; } if (@hasDecl(@This(), "PGET_SYSTEM_WOW64_DIRECTORY_W")) { _ = PGET_SYSTEM_WOW64_DIRECTORY_W; } @setEvalBranchQuota(comptime @import("std").meta.declarations(@This()).len * 3); // reference all the pub declarations if (!@import("builtin").is_test) return; inline for (comptime @import("std").meta.declarations(@This())) |decl| { if (decl.is_pub) { _ = @field(@This(), decl.name); } } }
0
repos/capy/vendor/zigwin32/win32
repos/capy/vendor/zigwin32/win32/system/recovery.zig
//! NOTE: this file is autogenerated, DO NOT MODIFY //-------------------------------------------------------------------------------- // Section: Constants (0) //-------------------------------------------------------------------------------- //-------------------------------------------------------------------------------- // Section: Types (1) //-------------------------------------------------------------------------------- pub const REGISTER_APPLICATION_RESTART_FLAGS = enum(u32) { CRASH = 1, HANG = 2, PATCH = 4, REBOOT = 8, _, pub fn initFlags(o: struct { CRASH: u1 = 0, HANG: u1 = 0, PATCH: u1 = 0, REBOOT: u1 = 0, }) REGISTER_APPLICATION_RESTART_FLAGS { return @as(REGISTER_APPLICATION_RESTART_FLAGS, @enumFromInt((if (o.CRASH == 1) @intFromEnum(REGISTER_APPLICATION_RESTART_FLAGS.CRASH) else 0) | (if (o.HANG == 1) @intFromEnum(REGISTER_APPLICATION_RESTART_FLAGS.HANG) else 0) | (if (o.PATCH == 1) @intFromEnum(REGISTER_APPLICATION_RESTART_FLAGS.PATCH) else 0) | (if (o.REBOOT == 1) @intFromEnum(REGISTER_APPLICATION_RESTART_FLAGS.REBOOT) else 0))); } }; pub const RESTART_NO_CRASH = REGISTER_APPLICATION_RESTART_FLAGS.CRASH; pub const RESTART_NO_HANG = REGISTER_APPLICATION_RESTART_FLAGS.HANG; pub const RESTART_NO_PATCH = REGISTER_APPLICATION_RESTART_FLAGS.PATCH; pub const RESTART_NO_REBOOT = REGISTER_APPLICATION_RESTART_FLAGS.REBOOT; //-------------------------------------------------------------------------------- // Section: Functions (8) //-------------------------------------------------------------------------------- // TODO: this type is limited to platform 'windows6.0.6000' pub extern "kernel32" fn RegisterApplicationRecoveryCallback( pRecoveyCallback: ?APPLICATION_RECOVERY_CALLBACK, pvParameter: ?*anyopaque, dwPingInterval: u32, dwFlags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT; // TODO: this type is limited to platform 'windows6.0.6000' pub extern "kernel32" fn UnregisterApplicationRecoveryCallback() callconv(@import("std").os.windows.WINAPI) HRESULT; // TODO: this type is limited to platform 'windows6.0.6000' pub extern "kernel32" fn RegisterApplicationRestart( pwzCommandline: ?[*:0]const u16, dwFlags: REGISTER_APPLICATION_RESTART_FLAGS, ) callconv(@import("std").os.windows.WINAPI) HRESULT; // TODO: this type is limited to platform 'windows6.0.6000' pub extern "kernel32" fn UnregisterApplicationRestart() callconv(@import("std").os.windows.WINAPI) HRESULT; // TODO: this type is limited to platform 'windows6.0.6000' pub extern "kernel32" fn GetApplicationRecoveryCallback( hProcess: ?HANDLE, pRecoveryCallback: ?*?APPLICATION_RECOVERY_CALLBACK, ppvParameter: ?*?*anyopaque, pdwPingInterval: ?*u32, pdwFlags: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT; // TODO: this type is limited to platform 'windows6.0.6000' pub extern "kernel32" fn GetApplicationRestartSettings( hProcess: ?HANDLE, pwzCommandline: ?[*:0]u16, pcchSize: ?*u32, pdwFlags: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT; // TODO: this type is limited to platform 'windows6.0.6000' pub extern "kernel32" fn ApplicationRecoveryInProgress( pbCancelled: ?*BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT; // TODO: this type is limited to platform 'windows6.0.6000' pub extern "kernel32" fn ApplicationRecoveryFinished( bSuccess: BOOL, ) callconv(@import("std").os.windows.WINAPI) void; //-------------------------------------------------------------------------------- // Section: Unicode Aliases (0) //-------------------------------------------------------------------------------- const thismodule = @This(); pub usingnamespace switch (@import("../zig.zig").unicode_mode) { .ansi => struct {}, .wide => struct {}, .unspecified => if (@import("builtin").is_test) struct {} else struct {}, }; //-------------------------------------------------------------------------------- // Section: Imports (5) //-------------------------------------------------------------------------------- const APPLICATION_RECOVERY_CALLBACK = @import("../system/windows_programming.zig").APPLICATION_RECOVERY_CALLBACK; const BOOL = @import("../foundation.zig").BOOL; const HANDLE = @import("../foundation.zig").HANDLE; const HRESULT = @import("../foundation.zig").HRESULT; const PWSTR = @import("../foundation.zig").PWSTR; test { @setEvalBranchQuota(comptime @import("std").meta.declarations(@This()).len * 3); // reference all the pub declarations if (!@import("builtin").is_test) return; inline for (comptime @import("std").meta.declarations(@This())) |decl| { if (decl.is_pub) { _ = @field(@This(), decl.name); } } }
0
repos/capy/vendor/zigwin32/win32
repos/capy/vendor/zigwin32/win32/system/application_installation_and_servicing.zig
//! NOTE: this file is autogenerated, DO NOT MODIFY //-------------------------------------------------------------------------------- // Section: Constants (349) //-------------------------------------------------------------------------------- pub const UIALL = @as(u32, 32768); pub const LOGTOKEN_TYPE_MASK = @as(u32, 3); pub const LOGTOKEN_UNSPECIFIED = @as(u32, 0); pub const LOGTOKEN_NO_LOG = @as(u32, 1); pub const LOGTOKEN_SETUPAPI_APPLOG = @as(u32, 2); pub const LOGTOKEN_SETUPAPI_DEVLOG = @as(u32, 3); pub const TXTLOG_SETUPAPI_DEVLOG = @as(u32, 1); pub const TXTLOG_SETUPAPI_CMDLINE = @as(u32, 2); pub const TXTLOG_SETUPAPI_BITS = @as(u32, 3); pub const TXTLOG_ERROR = @as(u32, 1); pub const TXTLOG_WARNING = @as(u32, 2); pub const TXTLOG_SYSTEM_STATE_CHANGE = @as(u32, 3); pub const TXTLOG_SUMMARY = @as(u32, 4); pub const TXTLOG_DETAILS = @as(u32, 5); pub const TXTLOG_VERBOSE = @as(u32, 6); pub const TXTLOG_VERY_VERBOSE = @as(u32, 7); pub const TXTLOG_RESERVED_FLAGS = @as(u32, 65520); pub const TXTLOG_TIMESTAMP = @as(u32, 65536); pub const TXTLOG_DEPTH_INCR = @as(u32, 131072); pub const TXTLOG_DEPTH_DECR = @as(u32, 262144); pub const TXTLOG_TAB_1 = @as(u32, 524288); pub const TXTLOG_FLUSH_FILE = @as(u32, 1048576); pub const TXTLOG_DEVINST = @as(u32, 1); pub const TXTLOG_INF = @as(u32, 2); pub const TXTLOG_FILEQ = @as(u32, 4); pub const TXTLOG_COPYFILES = @as(u32, 8); pub const TXTLOG_SIGVERIF = @as(u32, 32); pub const TXTLOG_BACKUP = @as(u32, 128); pub const TXTLOG_UI = @as(u32, 256); pub const TXTLOG_UTIL = @as(u32, 512); pub const TXTLOG_INFDB = @as(u32, 1024); pub const TXTLOG_DRVSETUP = @as(u32, 4194304); pub const TXTLOG_POLICY = @as(u32, 8388608); pub const TXTLOG_NEWDEV = @as(u32, 16777216); pub const TXTLOG_UMPNPMGR = @as(u32, 33554432); pub const TXTLOG_DRIVER_STORE = @as(u32, 67108864); pub const TXTLOG_SETUP = @as(u32, 134217728); pub const TXTLOG_CMI = @as(u32, 268435456); pub const TXTLOG_DEVMGR = @as(u32, 536870912); pub const TXTLOG_INSTALLER = @as(u32, 1073741824); pub const TXTLOG_VENDOR = @as(u32, 2147483648); pub const CLSID_EvalCom2 = Guid.initString("6e5e1910-8053-4660-b795-6b612e29bc58"); pub const _WIN32_MSM = @as(u32, 100); pub const LIBID_MsmMergeTypeLib = Guid.initString("0adda82f-2c26-11d2-ad65-00a0c9af11a6"); pub const CLSID_MsmMerge2 = Guid.initString("f94985d5-29f9-4743-9805-99bc3f35b678"); pub const _WIN32_MSI = @as(u32, 500); pub const MAX_GUID_CHARS = @as(u32, 38); pub const MAX_FEATURE_CHARS = @as(u32, 38); pub const MSI_INVALID_HASH_IS_FATAL = @as(u32, 1); pub const ERROR_ROLLBACK_DISABLED = @as(u32, 1653); pub const MSI_NULL_INTEGER = @as(u32, 2147483648); pub const INSTALLMESSAGE_TYPEMASK = @as(i32, -16777216); pub const STREAM_FORMAT_COMPLIB_MODULE = @as(u32, 0); pub const STREAM_FORMAT_COMPLIB_MANIFEST = @as(u32, 1); pub const STREAM_FORMAT_WIN32_MODULE = @as(u32, 2); pub const STREAM_FORMAT_WIN32_MANIFEST = @as(u32, 4); pub const IASSEMBLYCACHEITEM_COMMIT_FLAG_REFRESH = @as(u32, 1); pub const ASSEMBLYINFO_FLAG_INSTALLED = @as(u32, 1); pub const ASSEMBLYINFO_FLAG_PAYLOADRESIDENT = @as(u32, 2); pub const IASSEMBLYCACHEITEM_COMMIT_DISPOSITION_INSTALLED = @as(u32, 1); pub const IASSEMBLYCACHEITEM_COMMIT_DISPOSITION_REFRESHED = @as(u32, 2); pub const IASSEMBLYCACHEITEM_COMMIT_DISPOSITION_ALREADY_INSTALLED = @as(u32, 3); pub const FUSION_REFCOUNT_UNINSTALL_SUBKEY_GUID = Guid.initString("8cedc215-ac4b-488b-93c0-a50a49cb2fb8"); pub const FUSION_REFCOUNT_FILEPATH_GUID = Guid.initString("b02f9d65-fb77-4f7a-afa5-b391309f11c9"); pub const FUSION_REFCOUNT_OPAQUE_STRING_GUID = Guid.initString("2ec93463-b0c3-45e1-8364-327e96aea856"); pub const SFC_DISABLE_NORMAL = @as(u32, 0); pub const SFC_DISABLE_ASK = @as(u32, 1); pub const SFC_DISABLE_ONCE = @as(u32, 2); pub const SFC_DISABLE_SETUP = @as(u32, 3); pub const SFC_DISABLE_NOPOPUPS = @as(u32, 4); pub const SFC_SCAN_NORMAL = @as(u32, 0); pub const SFC_SCAN_ALWAYS = @as(u32, 1); pub const SFC_SCAN_ONCE = @as(u32, 2); pub const SFC_SCAN_IMMEDIATE = @as(u32, 3); pub const SFC_QUOTA_DEFAULT = @as(u32, 50); pub const PID_TITLE = @as(u32, 2); pub const PID_SUBJECT = @as(u32, 3); pub const PID_AUTHOR = @as(u32, 4); pub const PID_KEYWORDS = @as(u32, 5); pub const PID_COMMENTS = @as(u32, 6); pub const PID_TEMPLATE = @as(u32, 7); pub const PID_LASTAUTHOR = @as(u32, 8); pub const PID_REVNUMBER = @as(u32, 9); pub const PID_EDITTIME = @as(u32, 10); pub const PID_LASTPRINTED = @as(u32, 11); pub const PID_CREATE_DTM = @as(u32, 12); pub const PID_LASTSAVE_DTM = @as(u32, 13); pub const PID_PAGECOUNT = @as(u32, 14); pub const PID_WORDCOUNT = @as(u32, 15); pub const PID_CHARCOUNT = @as(u32, 16); pub const PID_THUMBNAIL = @as(u32, 17); pub const PID_APPNAME = @as(u32, 18); pub const PID_MSIVERSION = @as(u32, 14); pub const PID_MSISOURCE = @as(u32, 15); pub const PID_MSIRESTRICT = @as(u32, 16); pub const PATCH_OPTION_USE_BEST = @as(u32, 0); pub const PATCH_OPTION_USE_LZX_BEST = @as(u32, 3); pub const PATCH_OPTION_USE_LZX_A = @as(u32, 1); pub const PATCH_OPTION_USE_LZX_B = @as(u32, 2); pub const PATCH_OPTION_USE_LZX_LARGE = @as(u32, 4); pub const PATCH_OPTION_NO_BINDFIX = @as(u32, 65536); pub const PATCH_OPTION_NO_LOCKFIX = @as(u32, 131072); pub const PATCH_OPTION_NO_REBASE = @as(u32, 262144); pub const PATCH_OPTION_FAIL_IF_SAME_FILE = @as(u32, 524288); pub const PATCH_OPTION_FAIL_IF_BIGGER = @as(u32, 1048576); pub const PATCH_OPTION_NO_CHECKSUM = @as(u32, 2097152); pub const PATCH_OPTION_NO_RESTIMEFIX = @as(u32, 4194304); pub const PATCH_OPTION_NO_TIMESTAMP = @as(u32, 8388608); pub const PATCH_OPTION_SIGNATURE_MD5 = @as(u32, 16777216); pub const PATCH_OPTION_INTERLEAVE_FILES = @as(u32, 1073741824); pub const PATCH_OPTION_RESERVED1 = @as(u32, 2147483648); pub const PATCH_OPTION_VALID_FLAGS = @as(u32, 3237937159); pub const PATCH_SYMBOL_NO_IMAGEHLP = @as(u32, 1); pub const PATCH_SYMBOL_NO_FAILURES = @as(u32, 2); pub const PATCH_SYMBOL_UNDECORATED_TOO = @as(u32, 4); pub const PATCH_SYMBOL_RESERVED1 = @as(u32, 2147483648); pub const PATCH_TRANSFORM_PE_RESOURCE_2 = @as(u32, 256); pub const PATCH_TRANSFORM_PE_IRELOC_2 = @as(u32, 512); pub const APPLY_OPTION_FAIL_IF_EXACT = @as(u32, 1); pub const APPLY_OPTION_FAIL_IF_CLOSE = @as(u32, 2); pub const APPLY_OPTION_TEST_ONLY = @as(u32, 4); pub const APPLY_OPTION_VALID_FLAGS = @as(u32, 7); pub const ERROR_PATCH_ENCODE_FAILURE = @as(u32, 3222155521); pub const ERROR_PATCH_INVALID_OPTIONS = @as(u32, 3222155522); pub const ERROR_PATCH_SAME_FILE = @as(u32, 3222155523); pub const ERROR_PATCH_RETAIN_RANGES_DIFFER = @as(u32, 3222155524); pub const ERROR_PATCH_BIGGER_THAN_COMPRESSED = @as(u32, 3222155525); pub const ERROR_PATCH_IMAGEHLP_FAILURE = @as(u32, 3222155526); pub const ERROR_PATCH_DECODE_FAILURE = @as(u32, 3222159617); pub const ERROR_PATCH_CORRUPT = @as(u32, 3222159618); pub const ERROR_PATCH_NEWER_FORMAT = @as(u32, 3222159619); pub const ERROR_PATCH_WRONG_FILE = @as(u32, 3222159620); pub const ERROR_PATCH_NOT_NECESSARY = @as(u32, 3222159621); pub const ERROR_PATCH_NOT_AVAILABLE = @as(u32, 3222159622); pub const ERROR_PCW_BASE = @as(u32, 3222163713); pub const ERROR_PCW_PCP_DOESNT_EXIST = @as(u32, 3222163713); pub const ERROR_PCW_PCP_BAD_FORMAT = @as(u32, 3222163714); pub const ERROR_PCW_CANT_CREATE_TEMP_FOLDER = @as(u32, 3222163715); pub const ERROR_PCW_MISSING_PATCH_PATH = @as(u32, 3222163716); pub const ERROR_PCW_CANT_OVERWRITE_PATCH = @as(u32, 3222163717); pub const ERROR_PCW_CANT_CREATE_PATCH_FILE = @as(u32, 3222163718); pub const ERROR_PCW_MISSING_PATCH_GUID = @as(u32, 3222163719); pub const ERROR_PCW_BAD_PATCH_GUID = @as(u32, 3222163720); pub const ERROR_PCW_BAD_GUIDS_TO_REPLACE = @as(u32, 3222163721); pub const ERROR_PCW_BAD_TARGET_PRODUCT_CODE_LIST = @as(u32, 3222163722); pub const ERROR_PCW_NO_UPGRADED_IMAGES_TO_PATCH = @as(u32, 3222163723); pub const ERROR_PCW_BAD_API_PATCHING_SYMBOL_FLAGS = @as(u32, 3222163725); pub const ERROR_PCW_OODS_COPYING_MSI = @as(u32, 3222163726); pub const ERROR_PCW_UPGRADED_IMAGE_NAME_TOO_LONG = @as(u32, 3222163727); pub const ERROR_PCW_BAD_UPGRADED_IMAGE_NAME = @as(u32, 3222163728); pub const ERROR_PCW_DUP_UPGRADED_IMAGE_NAME = @as(u32, 3222163729); pub const ERROR_PCW_UPGRADED_IMAGE_PATH_TOO_LONG = @as(u32, 3222163730); pub const ERROR_PCW_UPGRADED_IMAGE_PATH_EMPTY = @as(u32, 3222163731); pub const ERROR_PCW_UPGRADED_IMAGE_PATH_NOT_EXIST = @as(u32, 3222163732); pub const ERROR_PCW_UPGRADED_IMAGE_PATH_NOT_MSI = @as(u32, 3222163733); pub const ERROR_PCW_UPGRADED_IMAGE_COMPRESSED = @as(u32, 3222163734); pub const ERROR_PCW_TARGET_IMAGE_NAME_TOO_LONG = @as(u32, 3222163735); pub const ERROR_PCW_BAD_TARGET_IMAGE_NAME = @as(u32, 3222163736); pub const ERROR_PCW_DUP_TARGET_IMAGE_NAME = @as(u32, 3222163737); pub const ERROR_PCW_TARGET_IMAGE_PATH_TOO_LONG = @as(u32, 3222163738); pub const ERROR_PCW_TARGET_IMAGE_PATH_EMPTY = @as(u32, 3222163739); pub const ERROR_PCW_TARGET_IMAGE_PATH_NOT_EXIST = @as(u32, 3222163740); pub const ERROR_PCW_TARGET_IMAGE_PATH_NOT_MSI = @as(u32, 3222163741); pub const ERROR_PCW_TARGET_IMAGE_COMPRESSED = @as(u32, 3222163742); pub const ERROR_PCW_TARGET_BAD_PROD_VALIDATE = @as(u32, 3222163743); pub const ERROR_PCW_TARGET_BAD_PROD_CODE_VAL = @as(u32, 3222163744); pub const ERROR_PCW_UPGRADED_MISSING_SRC_FILES = @as(u32, 3222163745); pub const ERROR_PCW_TARGET_MISSING_SRC_FILES = @as(u32, 3222163746); pub const ERROR_PCW_IMAGE_FAMILY_NAME_TOO_LONG = @as(u32, 3222163747); pub const ERROR_PCW_BAD_IMAGE_FAMILY_NAME = @as(u32, 3222163748); pub const ERROR_PCW_DUP_IMAGE_FAMILY_NAME = @as(u32, 3222163749); pub const ERROR_PCW_BAD_IMAGE_FAMILY_SRC_PROP = @as(u32, 3222163750); pub const ERROR_PCW_UFILEDATA_LONG_FILE_TABLE_KEY = @as(u32, 3222163751); pub const ERROR_PCW_UFILEDATA_BLANK_FILE_TABLE_KEY = @as(u32, 3222163752); pub const ERROR_PCW_UFILEDATA_MISSING_FILE_TABLE_KEY = @as(u32, 3222163753); pub const ERROR_PCW_EXTFILE_LONG_FILE_TABLE_KEY = @as(u32, 3222163754); pub const ERROR_PCW_EXTFILE_BLANK_FILE_TABLE_KEY = @as(u32, 3222163755); pub const ERROR_PCW_EXTFILE_BAD_FAMILY_FIELD = @as(u32, 3222163756); pub const ERROR_PCW_EXTFILE_LONG_PATH_TO_FILE = @as(u32, 3222163757); pub const ERROR_PCW_EXTFILE_BLANK_PATH_TO_FILE = @as(u32, 3222163758); pub const ERROR_PCW_EXTFILE_MISSING_FILE = @as(u32, 3222163759); pub const ERROR_PCW_BAD_FILE_SEQUENCE_START = @as(u32, 3222163770); pub const ERROR_PCW_CANT_COPY_FILE_TO_TEMP_FOLDER = @as(u32, 3222163771); pub const ERROR_PCW_CANT_CREATE_ONE_PATCH_FILE = @as(u32, 3222163772); pub const ERROR_PCW_BAD_IMAGE_FAMILY_DISKID = @as(u32, 3222163773); pub const ERROR_PCW_BAD_IMAGE_FAMILY_FILESEQSTART = @as(u32, 3222163774); pub const ERROR_PCW_BAD_UPGRADED_IMAGE_FAMILY = @as(u32, 3222163775); pub const ERROR_PCW_BAD_TARGET_IMAGE_UPGRADED = @as(u32, 3222163776); pub const ERROR_PCW_DUP_TARGET_IMAGE_PACKCODE = @as(u32, 3222163777); pub const ERROR_PCW_UFILEDATA_BAD_UPGRADED_FIELD = @as(u32, 3222163778); pub const ERROR_PCW_MISMATCHED_PRODUCT_CODES = @as(u32, 3222163779); pub const ERROR_PCW_MISMATCHED_PRODUCT_VERSIONS = @as(u32, 3222163780); pub const ERROR_PCW_CANNOT_WRITE_DDF = @as(u32, 3222163781); pub const ERROR_PCW_CANNOT_RUN_MAKECAB = @as(u32, 3222163782); pub const ERROR_PCW_WRITE_SUMMARY_PROPERTIES = @as(u32, 3222163787); pub const ERROR_PCW_TFILEDATA_LONG_FILE_TABLE_KEY = @as(u32, 3222163788); pub const ERROR_PCW_TFILEDATA_BLANK_FILE_TABLE_KEY = @as(u32, 3222163789); pub const ERROR_PCW_TFILEDATA_MISSING_FILE_TABLE_KEY = @as(u32, 3222163790); pub const ERROR_PCW_TFILEDATA_BAD_TARGET_FIELD = @as(u32, 3222163791); pub const ERROR_PCW_UPGRADED_IMAGE_PATCH_PATH_TOO_LONG = @as(u32, 3222163792); pub const ERROR_PCW_UPGRADED_IMAGE_PATCH_PATH_NOT_EXIST = @as(u32, 3222163793); pub const ERROR_PCW_UPGRADED_IMAGE_PATCH_PATH_NOT_MSI = @as(u32, 3222163794); pub const ERROR_PCW_DUP_UPGRADED_IMAGE_PACKCODE = @as(u32, 3222163795); pub const ERROR_PCW_UFILEIGNORE_BAD_UPGRADED_FIELD = @as(u32, 3222163796); pub const ERROR_PCW_UFILEIGNORE_LONG_FILE_TABLE_KEY = @as(u32, 3222163797); pub const ERROR_PCW_UFILEIGNORE_BLANK_FILE_TABLE_KEY = @as(u32, 3222163798); pub const ERROR_PCW_UFILEIGNORE_BAD_FILE_TABLE_KEY = @as(u32, 3222163799); pub const ERROR_PCW_FAMILY_RANGE_NAME_TOO_LONG = @as(u32, 3222163800); pub const ERROR_PCW_BAD_FAMILY_RANGE_NAME = @as(u32, 3222163801); pub const ERROR_PCW_FAMILY_RANGE_LONG_FILE_TABLE_KEY = @as(u32, 3222163802); pub const ERROR_PCW_FAMILY_RANGE_BLANK_FILE_TABLE_KEY = @as(u32, 3222163803); pub const ERROR_PCW_FAMILY_RANGE_LONG_RETAIN_OFFSETS = @as(u32, 3222163804); pub const ERROR_PCW_FAMILY_RANGE_BLANK_RETAIN_OFFSETS = @as(u32, 3222163805); pub const ERROR_PCW_FAMILY_RANGE_BAD_RETAIN_OFFSETS = @as(u32, 3222163806); pub const ERROR_PCW_FAMILY_RANGE_LONG_RETAIN_LENGTHS = @as(u32, 3222163807); pub const ERROR_PCW_FAMILY_RANGE_BLANK_RETAIN_LENGTHS = @as(u32, 3222163808); pub const ERROR_PCW_FAMILY_RANGE_BAD_RETAIN_LENGTHS = @as(u32, 3222163809); pub const ERROR_PCW_FAMILY_RANGE_COUNT_MISMATCH = @as(u32, 3222163810); pub const ERROR_PCW_EXTFILE_LONG_IGNORE_OFFSETS = @as(u32, 3222163811); pub const ERROR_PCW_EXTFILE_BAD_IGNORE_OFFSETS = @as(u32, 3222163812); pub const ERROR_PCW_EXTFILE_LONG_IGNORE_LENGTHS = @as(u32, 3222163813); pub const ERROR_PCW_EXTFILE_BAD_IGNORE_LENGTHS = @as(u32, 3222163814); pub const ERROR_PCW_EXTFILE_IGNORE_COUNT_MISMATCH = @as(u32, 3222163815); pub const ERROR_PCW_EXTFILE_LONG_RETAIN_OFFSETS = @as(u32, 3222163816); pub const ERROR_PCW_EXTFILE_BAD_RETAIN_OFFSETS = @as(u32, 3222163817); pub const ERROR_PCW_TFILEDATA_LONG_IGNORE_OFFSETS = @as(u32, 3222163819); pub const ERROR_PCW_TFILEDATA_BAD_IGNORE_OFFSETS = @as(u32, 3222163820); pub const ERROR_PCW_TFILEDATA_LONG_IGNORE_LENGTHS = @as(u32, 3222163821); pub const ERROR_PCW_TFILEDATA_BAD_IGNORE_LENGTHS = @as(u32, 3222163822); pub const ERROR_PCW_TFILEDATA_IGNORE_COUNT_MISMATCH = @as(u32, 3222163823); pub const ERROR_PCW_TFILEDATA_LONG_RETAIN_OFFSETS = @as(u32, 3222163824); pub const ERROR_PCW_TFILEDATA_BAD_RETAIN_OFFSETS = @as(u32, 3222163825); pub const ERROR_PCW_CANT_GENERATE_TRANSFORM = @as(u32, 3222163827); pub const ERROR_PCW_CANT_CREATE_SUMMARY_INFO = @as(u32, 3222163828); pub const ERROR_PCW_CANT_GENERATE_TRANSFORM_POUND = @as(u32, 3222163829); pub const ERROR_PCW_CANT_CREATE_SUMMARY_INFO_POUND = @as(u32, 3222163830); pub const ERROR_PCW_BAD_UPGRADED_IMAGE_PRODUCT_CODE = @as(u32, 3222163831); pub const ERROR_PCW_BAD_UPGRADED_IMAGE_PRODUCT_VERSION = @as(u32, 3222163832); pub const ERROR_PCW_BAD_UPGRADED_IMAGE_UPGRADE_CODE = @as(u32, 3222163833); pub const ERROR_PCW_BAD_TARGET_IMAGE_PRODUCT_CODE = @as(u32, 3222163834); pub const ERROR_PCW_BAD_TARGET_IMAGE_PRODUCT_VERSION = @as(u32, 3222163835); pub const ERROR_PCW_BAD_TARGET_IMAGE_UPGRADE_CODE = @as(u32, 3222163836); pub const ERROR_PCW_MATCHED_PRODUCT_VERSIONS = @as(u32, 3222163837); pub const ERROR_PCW_OBSOLETION_WITH_SEQUENCE_DATA = @as(u32, 3222163838); pub const ERROR_PCW_OBSOLETION_WITH_MSI30 = @as(u32, 3222163839); pub const ERROR_PCW_OBSOLETION_WITH_PATCHSEQUENCE = @as(u32, 3222163840); pub const ERROR_PCW_CANNOT_CREATE_TABLE = @as(u32, 3222163841); pub const ERROR_PCW_CANT_GENERATE_SEQUENCEINFO_MAJORUPGD = @as(u32, 3222163842); pub const ERROR_PCW_MAJOR_UPGD_WITHOUT_SEQUENCING = @as(u32, 3222163843); pub const ERROR_PCW_BAD_PRODUCTVERSION_VALIDATION = @as(u32, 3222163844); pub const ERROR_PCW_BAD_TRANSFORMSET = @as(u32, 3222163845); pub const ERROR_PCW_BAD_TGT_UPD_IMAGES = @as(u32, 3222163846); pub const ERROR_PCW_BAD_SUPERCEDENCE = @as(u32, 3222163847); pub const ERROR_PCW_BAD_SEQUENCE = @as(u32, 3222163848); pub const ERROR_PCW_BAD_TARGET = @as(u32, 3222163849); pub const ERROR_PCW_NULL_PATCHFAMILY = @as(u32, 3222163850); pub const ERROR_PCW_NULL_SEQUENCE_NUMBER = @as(u32, 3222163851); pub const ERROR_PCW_BAD_VERSION_STRING = @as(u32, 3222163852); pub const ERROR_PCW_BAD_MAJOR_VERSION = @as(u32, 3222163853); pub const ERROR_PCW_SEQUENCING_BAD_TARGET = @as(u32, 3222163854); pub const ERROR_PCW_PATCHMETADATA_PROP_NOT_SET = @as(u32, 3222163855); pub const ERROR_PCW_INVALID_PATCHMETADATA_PROP = @as(u32, 3222163856); pub const ERROR_PCW_INVALID_SUPERCEDENCE = @as(u32, 3222163857); pub const ERROR_PCW_DUPLICATE_SEQUENCE_RECORD = @as(u32, 3222163858); pub const ERROR_PCW_WRONG_PATCHMETADATA_STRD_PROP = @as(u32, 3222163859); pub const ERROR_PCW_INVALID_PARAMETER = @as(u32, 3222163860); pub const ERROR_PCW_CREATEFILE_LOG_FAILED = @as(u32, 3222163861); pub const ERROR_PCW_INVALID_LOG_LEVEL = @as(u32, 3222163862); pub const ERROR_PCW_INVALID_UI_LEVEL = @as(u32, 3222163863); pub const ERROR_PCW_ERROR_WRITING_TO_LOG = @as(u32, 3222163864); pub const ERROR_PCW_OUT_OF_MEMORY = @as(u32, 3222163865); pub const ERROR_PCW_UNKNOWN_ERROR = @as(u32, 3222163866); pub const ERROR_PCW_UNKNOWN_INFO = @as(u32, 3222163867); pub const ERROR_PCW_UNKNOWN_WARN = @as(u32, 3222163868); pub const ERROR_PCW_OPEN_VIEW = @as(u32, 3222163869); pub const ERROR_PCW_EXECUTE_VIEW = @as(u32, 3222163870); pub const ERROR_PCW_VIEW_FETCH = @as(u32, 3222163871); pub const ERROR_PCW_FAILED_EXPAND_PATH = @as(u32, 3222163872); pub const ERROR_PCW_INTERNAL_ERROR = @as(u32, 3222163969); pub const ERROR_PCW_INVALID_PCP_PROPERTY = @as(u32, 3222163970); pub const ERROR_PCW_INVALID_PCP_TARGETIMAGES = @as(u32, 3222163971); pub const ERROR_PCW_LAX_VALIDATION_FLAGS = @as(u32, 3222163972); pub const ERROR_PCW_FAILED_CREATE_TRANSFORM = @as(u32, 3222163973); pub const ERROR_PCW_CANT_DELETE_TEMP_FOLDER = @as(u32, 3222163974); pub const ERROR_PCW_MISSING_DIRECTORY_TABLE = @as(u32, 3222163975); pub const ERROR_PCW_INVALID_SUPERSEDENCE_VALUE = @as(u32, 3222163976); pub const ERROR_PCW_INVALID_PATCH_TYPE_SEQUENCING = @as(u32, 3222163977); pub const ERROR_PCW_CANT_READ_FILE = @as(u32, 3222163978); pub const ERROR_PCW_TARGET_WRONG_PRODUCT_VERSION_COMP = @as(u32, 3222163979); pub const ERROR_PCW_INVALID_PCP_UPGRADEDFILESTOIGNORE = @as(u32, 3222163980); pub const ERROR_PCW_INVALID_PCP_UPGRADEDIMAGES = @as(u32, 3222163981); pub const ERROR_PCW_INVALID_PCP_EXTERNALFILES = @as(u32, 3222163982); pub const ERROR_PCW_INVALID_PCP_IMAGEFAMILIES = @as(u32, 3222163983); pub const ERROR_PCW_INVALID_PCP_PATCHSEQUENCE = @as(u32, 3222163984); pub const ERROR_PCW_INVALID_PCP_TARGETFILES_OPTIONALDATA = @as(u32, 3222163985); pub const ERROR_PCW_INVALID_PCP_UPGRADEDFILES_OPTIONALDATA = @as(u32, 3222163986); pub const ERROR_PCW_MISSING_PATCHMETADATA = @as(u32, 3222163987); pub const ERROR_PCW_IMAGE_PATH_NOT_EXIST = @as(u32, 3222163988); pub const ERROR_PCW_INVALID_RANGE_ELEMENT = @as(u32, 3222163989); pub const ERROR_PCW_INVALID_MAJOR_VERSION = @as(u32, 3222163990); pub const ERROR_PCW_INVALID_PCP_PROPERTIES = @as(u32, 3222163991); pub const ERROR_PCW_INVALID_PCP_FAMILYFILERANGES = @as(u32, 3222163992); pub const INFO_BASE = @as(u32, 3222229249); pub const INFO_PASSED_MAIN_CONTROL = @as(u32, 3222229249); pub const INFO_ENTERING_PHASE_I_VALIDATION = @as(u32, 3222229250); pub const INFO_ENTERING_PHASE_I = @as(u32, 3222229251); pub const INFO_PCP_PATH = @as(u32, 3222229252); pub const INFO_TEMP_DIR = @as(u32, 3222229253); pub const INFO_SET_OPTIONS = @as(u32, 3222229254); pub const INFO_PROPERTY = @as(u32, 3222229255); pub const INFO_ENTERING_PHASE_II = @as(u32, 3222229256); pub const INFO_ENTERING_PHASE_III = @as(u32, 3222229257); pub const INFO_ENTERING_PHASE_IV = @as(u32, 3222229258); pub const INFO_ENTERING_PHASE_V = @as(u32, 3222229259); pub const INFO_GENERATING_METADATA = @as(u32, 3222229265); pub const INFO_TEMP_DIR_CLEANUP = @as(u32, 3222229266); pub const INFO_PATCHCACHE_FILEINFO_FAILURE = @as(u32, 3222229267); pub const INFO_PATCHCACHE_PCI_READFAILURE = @as(u32, 3222229268); pub const INFO_PATCHCACHE_PCI_WRITEFAILURE = @as(u32, 3222229269); pub const INFO_USING_USER_MSI_FOR_PATCH_TABLES = @as(u32, 3222229270); pub const INFO_SUCCESSFUL_PATCH_CREATION = @as(u32, 3222229271); pub const WARN_BASE = @as(u32, 3222294785); pub const WARN_MAJOR_UPGRADE_PATCH = @as(u32, 3222294785); pub const WARN_SEQUENCE_DATA_GENERATION_DISABLED = @as(u32, 3222294786); pub const WARN_SEQUENCE_DATA_SUPERSEDENCE_IGNORED = @as(u32, 3222294787); pub const WARN_IMPROPER_TRANSFORM_VALIDATION = @as(u32, 3222294788); pub const WARN_PCW_MISMATCHED_PRODUCT_CODES = @as(u32, 3222294789); pub const WARN_PCW_MISMATCHED_PRODUCT_VERSIONS = @as(u32, 3222294790); pub const WARN_INVALID_TRANSFORM_VALIDATION = @as(u32, 3222294791); pub const WARN_BAD_MAJOR_VERSION = @as(u32, 3222294792); pub const WARN_FILE_VERSION_DOWNREV = @as(u32, 3222294793); pub const WARN_EQUAL_FILE_VERSION = @as(u32, 3222294794); pub const WARN_PATCHPROPERTYNOTSET = @as(u32, 3222294795); pub const WARN_OBSOLETION_WITH_SEQUENCE_DATA = @as(u32, 3222294802); pub const WARN_OBSOLETION_WITH_MSI30 = @as(u32, 3222294801); pub const WARN_OBSOLETION_WITH_PATCHSEQUENCE = @as(u32, 3222294803); pub const DELTA_MAX_HASH_SIZE = @as(u32, 32); pub const cchMaxInteger = @as(i32, 12); pub const LOGNONE = @as(u32, 0); pub const LOGINFO = @as(u32, 1); pub const LOGWARN = @as(u32, 2); pub const LOGERR = @as(u32, 4); pub const LOGPERFMESSAGES = @as(u32, 8); pub const LOGALL = @as(u32, 15); pub const UINONE = @as(u32, 0); pub const UILOGBITS = @as(u32, 15); pub const DEFAULT_MINIMUM_REQUIRED_MSI_VERSION = @as(u32, 100); pub const DEFAULT_FILE_SEQUENCE_START = @as(u32, 2); pub const DEFAULT_DISK_ID = @as(u32, 2); //-------------------------------------------------------------------------------- // Section: Types (179) //-------------------------------------------------------------------------------- pub const MSIASSEMBLYINFO = enum(u32) { NETASSEMBLY = 0, WIN32ASSEMBLY = 1, }; pub const MSIASSEMBLYINFO_NETASSEMBLY = MSIASSEMBLYINFO.NETASSEMBLY; pub const MSIASSEMBLYINFO_WIN32ASSEMBLY = MSIASSEMBLYINFO.WIN32ASSEMBLY; pub const IASSEMBLYCACHE_UNINSTALL_DISPOSITION = enum(u32) { UNINSTALLED = 1, STILL_IN_USE = 2, ALREADY_UNINSTALLED = 3, DELETE_PENDING = 4, }; pub const IASSEMBLYCACHE_UNINSTALL_DISPOSITION_UNINSTALLED = IASSEMBLYCACHE_UNINSTALL_DISPOSITION.UNINSTALLED; pub const IASSEMBLYCACHE_UNINSTALL_DISPOSITION_STILL_IN_USE = IASSEMBLYCACHE_UNINSTALL_DISPOSITION.STILL_IN_USE; pub const IASSEMBLYCACHE_UNINSTALL_DISPOSITION_ALREADY_UNINSTALLED = IASSEMBLYCACHE_UNINSTALL_DISPOSITION.ALREADY_UNINSTALLED; pub const IASSEMBLYCACHE_UNINSTALL_DISPOSITION_DELETE_PENDING = IASSEMBLYCACHE_UNINSTALL_DISPOSITION.DELETE_PENDING; pub const QUERYASMINFO_FLAGS = enum(u32) { E = 1, _, pub fn initFlags(o: struct { E: u1 = 0, }) QUERYASMINFO_FLAGS { return @as(QUERYASMINFO_FLAGS, @enumFromInt((if (o.E == 1) @intFromEnum(QUERYASMINFO_FLAGS.E) else 0))); } }; pub const QUERYASMINFO_FLAG_VALIDATE = QUERYASMINFO_FLAGS.E; // TODO: this type has a FreeFunc 'MsiCloseHandle', what can Zig do with this information? pub const MSIHANDLE = u32; pub const RESULTTYPES = enum(i32) { Unknown = 0, Error = 1, Warning = 2, Info = 3, }; pub const ieUnknown = RESULTTYPES.Unknown; pub const ieError = RESULTTYPES.Error; pub const ieWarning = RESULTTYPES.Warning; pub const ieInfo = RESULTTYPES.Info; pub const STATUSTYPES = enum(i32) { GetCUB = 0, ICECount = 1, Merge = 2, SummaryInfo = 3, CreateEngine = 4, Starting = 5, RunICE = 6, Shutdown = 7, Success = 8, Fail = 9, Cancel = 10, }; pub const ieStatusGetCUB = STATUSTYPES.GetCUB; pub const ieStatusICECount = STATUSTYPES.ICECount; pub const ieStatusMerge = STATUSTYPES.Merge; pub const ieStatusSummaryInfo = STATUSTYPES.SummaryInfo; pub const ieStatusCreateEngine = STATUSTYPES.CreateEngine; pub const ieStatusStarting = STATUSTYPES.Starting; pub const ieStatusRunICE = STATUSTYPES.RunICE; pub const ieStatusShutdown = STATUSTYPES.Shutdown; pub const ieStatusSuccess = STATUSTYPES.Success; pub const ieStatusFail = STATUSTYPES.Fail; pub const ieStatusCancel = STATUSTYPES.Cancel; pub const LPDISPLAYVAL = switch (@import("builtin").zig_backend) { .stage1 => fn ( pContext: ?*anyopaque, uiType: RESULTTYPES, szwVal: ?[*:0]const u16, szwDescription: ?[*:0]const u16, szwLocation: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) BOOL, else => *const fn ( pContext: ?*anyopaque, uiType: RESULTTYPES, szwVal: ?[*:0]const u16, szwDescription: ?[*:0]const u16, szwLocation: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) BOOL, }; pub const LPEVALCOMCALLBACK = switch (@import("builtin").zig_backend) { .stage1 => fn ( iStatus: STATUSTYPES, szData: ?[*:0]const u16, pContext: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) BOOL, else => *const fn ( iStatus: STATUSTYPES, szData: ?[*:0]const u16, pContext: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) BOOL, }; const IID_IValidate_Value = Guid.initString("e482e5c6-e31e-4143-a2e6-dbc3d8e4b8d3"); pub const IID_IValidate = &IID_IValidate_Value; pub const IValidate = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, OpenDatabase: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IValidate, szDatabase: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IValidate, szDatabase: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, OpenCUB: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IValidate, szCUBFile: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IValidate, szCUBFile: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, CloseDatabase: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IValidate, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IValidate, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, CloseCUB: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IValidate, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IValidate, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetDisplay: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IValidate, pDisplayFunction: ?LPDISPLAYVAL, pContext: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IValidate, pDisplayFunction: ?LPDISPLAYVAL, pContext: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetStatus: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IValidate, pStatusFunction: ?LPEVALCOMCALLBACK, pContext: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IValidate, pStatusFunction: ?LPEVALCOMCALLBACK, pContext: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Validate: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IValidate, wzICEs: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IValidate, wzICEs: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IValidate_OpenDatabase(self: *const T, szDatabase: ?[*:0]const u16) HRESULT { return @as(*const IValidate.VTable, @ptrCast(self.vtable)).OpenDatabase(@as(*const IValidate, @ptrCast(self)), szDatabase); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IValidate_OpenCUB(self: *const T, szCUBFile: ?[*:0]const u16) HRESULT { return @as(*const IValidate.VTable, @ptrCast(self.vtable)).OpenCUB(@as(*const IValidate, @ptrCast(self)), szCUBFile); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IValidate_CloseDatabase(self: *const T) HRESULT { return @as(*const IValidate.VTable, @ptrCast(self.vtable)).CloseDatabase(@as(*const IValidate, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IValidate_CloseCUB(self: *const T) HRESULT { return @as(*const IValidate.VTable, @ptrCast(self.vtable)).CloseCUB(@as(*const IValidate, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IValidate_SetDisplay(self: *const T, pDisplayFunction: ?LPDISPLAYVAL, pContext: ?*anyopaque) HRESULT { return @as(*const IValidate.VTable, @ptrCast(self.vtable)).SetDisplay(@as(*const IValidate, @ptrCast(self)), pDisplayFunction, pContext); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IValidate_SetStatus(self: *const T, pStatusFunction: ?LPEVALCOMCALLBACK, pContext: ?*anyopaque) HRESULT { return @as(*const IValidate.VTable, @ptrCast(self.vtable)).SetStatus(@as(*const IValidate, @ptrCast(self)), pStatusFunction, pContext); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IValidate_Validate(self: *const T, wzICEs: ?[*:0]const u16) HRESULT { return @as(*const IValidate.VTable, @ptrCast(self.vtable)).Validate(@as(*const IValidate, @ptrCast(self)), wzICEs); } }; } pub usingnamespace MethodMixin(@This()); }; const CLSID_MsmMerge_Value = Guid.initString("0adda830-2c26-11d2-ad65-00a0c9af11a6"); pub const CLSID_MsmMerge = &CLSID_MsmMerge_Value; pub const msmErrorType = enum(i32) { LanguageUnsupported = 1, LanguageFailed = 2, Exclusion = 3, TableMerge = 4, ResequenceMerge = 5, FileCreate = 6, DirCreate = 7, FeatureRequired = 8, }; pub const msmErrorLanguageUnsupported = msmErrorType.LanguageUnsupported; pub const msmErrorLanguageFailed = msmErrorType.LanguageFailed; pub const msmErrorExclusion = msmErrorType.Exclusion; pub const msmErrorTableMerge = msmErrorType.TableMerge; pub const msmErrorResequenceMerge = msmErrorType.ResequenceMerge; pub const msmErrorFileCreate = msmErrorType.FileCreate; pub const msmErrorDirCreate = msmErrorType.DirCreate; pub const msmErrorFeatureRequired = msmErrorType.FeatureRequired; const IID_IEnumMsmString_Value = Guid.initString("0adda826-2c26-11d2-ad65-00a0c9af11a6"); pub const IID_IEnumMsmString = &IID_IEnumMsmString_Value; pub const IEnumMsmString = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, Next: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IEnumMsmString, cFetch: u32, rgbstrStrings: ?*?BSTR, pcFetched: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IEnumMsmString, cFetch: u32, rgbstrStrings: ?*?BSTR, pcFetched: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Skip: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IEnumMsmString, cSkip: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IEnumMsmString, cSkip: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Reset: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IEnumMsmString, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IEnumMsmString, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Clone: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IEnumMsmString, pemsmStrings: ?*?*IEnumMsmString, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IEnumMsmString, pemsmStrings: ?*?*IEnumMsmString, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IEnumMsmString_Next(self: *const T, cFetch: u32, rgbstrStrings: ?*?BSTR, pcFetched: ?*u32) HRESULT { return @as(*const IEnumMsmString.VTable, @ptrCast(self.vtable)).Next(@as(*const IEnumMsmString, @ptrCast(self)), cFetch, rgbstrStrings, pcFetched); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IEnumMsmString_Skip(self: *const T, cSkip: u32) HRESULT { return @as(*const IEnumMsmString.VTable, @ptrCast(self.vtable)).Skip(@as(*const IEnumMsmString, @ptrCast(self)), cSkip); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IEnumMsmString_Reset(self: *const T) HRESULT { return @as(*const IEnumMsmString.VTable, @ptrCast(self.vtable)).Reset(@as(*const IEnumMsmString, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IEnumMsmString_Clone(self: *const T, pemsmStrings: ?*?*IEnumMsmString) HRESULT { return @as(*const IEnumMsmString.VTable, @ptrCast(self.vtable)).Clone(@as(*const IEnumMsmString, @ptrCast(self)), pemsmStrings); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IMsmStrings_Value = Guid.initString("0adda827-2c26-11d2-ad65-00a0c9af11a6"); pub const IID_IMsmStrings = &IID_IMsmStrings_Value; pub const IMsmStrings = extern struct { pub const VTable = extern struct { base: IDispatch.VTable, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Item: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMsmStrings, Item: i32, Return: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMsmStrings, Item: i32, Return: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Count: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMsmStrings, Count: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMsmStrings, Count: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get__NewEnum: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMsmStrings, NewEnum: ?*?*IUnknown, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMsmStrings, NewEnum: ?*?*IUnknown, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IDispatch.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMsmStrings_get_Item(self: *const T, Item: i32, Return: ?*?BSTR) HRESULT { return @as(*const IMsmStrings.VTable, @ptrCast(self.vtable)).get_Item(@as(*const IMsmStrings, @ptrCast(self)), Item, Return); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMsmStrings_get_Count(self: *const T, Count: ?*i32) HRESULT { return @as(*const IMsmStrings.VTable, @ptrCast(self.vtable)).get_Count(@as(*const IMsmStrings, @ptrCast(self)), Count); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMsmStrings_get__NewEnum(self: *const T, NewEnum: ?*?*IUnknown) HRESULT { return @as(*const IMsmStrings.VTable, @ptrCast(self.vtable)).get__NewEnum(@as(*const IMsmStrings, @ptrCast(self)), NewEnum); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IMsmError_Value = Guid.initString("0adda828-2c26-11d2-ad65-00a0c9af11a6"); pub const IID_IMsmError = &IID_IMsmError_Value; pub const IMsmError = extern struct { pub const VTable = extern struct { base: IDispatch.VTable, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Type: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMsmError, ErrorType: ?*msmErrorType, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMsmError, ErrorType: ?*msmErrorType, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Path: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMsmError, ErrorPath: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMsmError, ErrorPath: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Language: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMsmError, ErrorLanguage: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMsmError, ErrorLanguage: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_DatabaseTable: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMsmError, ErrorTable: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMsmError, ErrorTable: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_DatabaseKeys: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMsmError, ErrorKeys: ?*?*IMsmStrings, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMsmError, ErrorKeys: ?*?*IMsmStrings, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_ModuleTable: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMsmError, ErrorTable: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMsmError, ErrorTable: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_ModuleKeys: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMsmError, ErrorKeys: ?*?*IMsmStrings, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMsmError, ErrorKeys: ?*?*IMsmStrings, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IDispatch.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMsmError_get_Type(self: *const T, ErrorType: ?*msmErrorType) HRESULT { return @as(*const IMsmError.VTable, @ptrCast(self.vtable)).get_Type(@as(*const IMsmError, @ptrCast(self)), ErrorType); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMsmError_get_Path(self: *const T, ErrorPath: ?*?BSTR) HRESULT { return @as(*const IMsmError.VTable, @ptrCast(self.vtable)).get_Path(@as(*const IMsmError, @ptrCast(self)), ErrorPath); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMsmError_get_Language(self: *const T, ErrorLanguage: ?*i16) HRESULT { return @as(*const IMsmError.VTable, @ptrCast(self.vtable)).get_Language(@as(*const IMsmError, @ptrCast(self)), ErrorLanguage); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMsmError_get_DatabaseTable(self: *const T, ErrorTable: ?*?BSTR) HRESULT { return @as(*const IMsmError.VTable, @ptrCast(self.vtable)).get_DatabaseTable(@as(*const IMsmError, @ptrCast(self)), ErrorTable); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMsmError_get_DatabaseKeys(self: *const T, ErrorKeys: ?*?*IMsmStrings) HRESULT { return @as(*const IMsmError.VTable, @ptrCast(self.vtable)).get_DatabaseKeys(@as(*const IMsmError, @ptrCast(self)), ErrorKeys); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMsmError_get_ModuleTable(self: *const T, ErrorTable: ?*?BSTR) HRESULT { return @as(*const IMsmError.VTable, @ptrCast(self.vtable)).get_ModuleTable(@as(*const IMsmError, @ptrCast(self)), ErrorTable); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMsmError_get_ModuleKeys(self: *const T, ErrorKeys: ?*?*IMsmStrings) HRESULT { return @as(*const IMsmError.VTable, @ptrCast(self.vtable)).get_ModuleKeys(@as(*const IMsmError, @ptrCast(self)), ErrorKeys); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IEnumMsmError_Value = Guid.initString("0adda829-2c26-11d2-ad65-00a0c9af11a6"); pub const IID_IEnumMsmError = &IID_IEnumMsmError_Value; pub const IEnumMsmError = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, Next: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IEnumMsmError, cFetch: u32, rgmsmErrors: ?*?*IMsmError, pcFetched: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IEnumMsmError, cFetch: u32, rgmsmErrors: ?*?*IMsmError, pcFetched: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Skip: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IEnumMsmError, cSkip: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IEnumMsmError, cSkip: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Reset: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IEnumMsmError, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IEnumMsmError, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Clone: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IEnumMsmError, pemsmErrors: ?*?*IEnumMsmError, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IEnumMsmError, pemsmErrors: ?*?*IEnumMsmError, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IEnumMsmError_Next(self: *const T, cFetch: u32, rgmsmErrors: ?*?*IMsmError, pcFetched: ?*u32) HRESULT { return @as(*const IEnumMsmError.VTable, @ptrCast(self.vtable)).Next(@as(*const IEnumMsmError, @ptrCast(self)), cFetch, rgmsmErrors, pcFetched); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IEnumMsmError_Skip(self: *const T, cSkip: u32) HRESULT { return @as(*const IEnumMsmError.VTable, @ptrCast(self.vtable)).Skip(@as(*const IEnumMsmError, @ptrCast(self)), cSkip); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IEnumMsmError_Reset(self: *const T) HRESULT { return @as(*const IEnumMsmError.VTable, @ptrCast(self.vtable)).Reset(@as(*const IEnumMsmError, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IEnumMsmError_Clone(self: *const T, pemsmErrors: ?*?*IEnumMsmError) HRESULT { return @as(*const IEnumMsmError.VTable, @ptrCast(self.vtable)).Clone(@as(*const IEnumMsmError, @ptrCast(self)), pemsmErrors); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IMsmErrors_Value = Guid.initString("0adda82a-2c26-11d2-ad65-00a0c9af11a6"); pub const IID_IMsmErrors = &IID_IMsmErrors_Value; pub const IMsmErrors = extern struct { pub const VTable = extern struct { base: IDispatch.VTable, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Item: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMsmErrors, Item: i32, Return: ?*?*IMsmError, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMsmErrors, Item: i32, Return: ?*?*IMsmError, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Count: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMsmErrors, Count: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMsmErrors, Count: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get__NewEnum: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMsmErrors, NewEnum: ?*?*IUnknown, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMsmErrors, NewEnum: ?*?*IUnknown, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IDispatch.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMsmErrors_get_Item(self: *const T, Item: i32, Return: ?*?*IMsmError) HRESULT { return @as(*const IMsmErrors.VTable, @ptrCast(self.vtable)).get_Item(@as(*const IMsmErrors, @ptrCast(self)), Item, Return); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMsmErrors_get_Count(self: *const T, Count: ?*i32) HRESULT { return @as(*const IMsmErrors.VTable, @ptrCast(self.vtable)).get_Count(@as(*const IMsmErrors, @ptrCast(self)), Count); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMsmErrors_get__NewEnum(self: *const T, NewEnum: ?*?*IUnknown) HRESULT { return @as(*const IMsmErrors.VTable, @ptrCast(self.vtable)).get__NewEnum(@as(*const IMsmErrors, @ptrCast(self)), NewEnum); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IMsmDependency_Value = Guid.initString("0adda82b-2c26-11d2-ad65-00a0c9af11a6"); pub const IID_IMsmDependency = &IID_IMsmDependency_Value; pub const IMsmDependency = extern struct { pub const VTable = extern struct { base: IDispatch.VTable, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Module: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMsmDependency, Module: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMsmDependency, Module: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Language: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMsmDependency, Language: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMsmDependency, Language: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Version: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMsmDependency, Version: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMsmDependency, Version: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IDispatch.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMsmDependency_get_Module(self: *const T, Module: ?*?BSTR) HRESULT { return @as(*const IMsmDependency.VTable, @ptrCast(self.vtable)).get_Module(@as(*const IMsmDependency, @ptrCast(self)), Module); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMsmDependency_get_Language(self: *const T, Language: ?*i16) HRESULT { return @as(*const IMsmDependency.VTable, @ptrCast(self.vtable)).get_Language(@as(*const IMsmDependency, @ptrCast(self)), Language); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMsmDependency_get_Version(self: *const T, Version: ?*?BSTR) HRESULT { return @as(*const IMsmDependency.VTable, @ptrCast(self.vtable)).get_Version(@as(*const IMsmDependency, @ptrCast(self)), Version); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IEnumMsmDependency_Value = Guid.initString("0adda82c-2c26-11d2-ad65-00a0c9af11a6"); pub const IID_IEnumMsmDependency = &IID_IEnumMsmDependency_Value; pub const IEnumMsmDependency = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, Next: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IEnumMsmDependency, cFetch: u32, rgmsmDependencies: ?*?*IMsmDependency, pcFetched: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IEnumMsmDependency, cFetch: u32, rgmsmDependencies: ?*?*IMsmDependency, pcFetched: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Skip: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IEnumMsmDependency, cSkip: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IEnumMsmDependency, cSkip: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Reset: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IEnumMsmDependency, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IEnumMsmDependency, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Clone: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IEnumMsmDependency, pemsmDependencies: ?*?*IEnumMsmDependency, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IEnumMsmDependency, pemsmDependencies: ?*?*IEnumMsmDependency, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IEnumMsmDependency_Next(self: *const T, cFetch: u32, rgmsmDependencies: ?*?*IMsmDependency, pcFetched: ?*u32) HRESULT { return @as(*const IEnumMsmDependency.VTable, @ptrCast(self.vtable)).Next(@as(*const IEnumMsmDependency, @ptrCast(self)), cFetch, rgmsmDependencies, pcFetched); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IEnumMsmDependency_Skip(self: *const T, cSkip: u32) HRESULT { return @as(*const IEnumMsmDependency.VTable, @ptrCast(self.vtable)).Skip(@as(*const IEnumMsmDependency, @ptrCast(self)), cSkip); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IEnumMsmDependency_Reset(self: *const T) HRESULT { return @as(*const IEnumMsmDependency.VTable, @ptrCast(self.vtable)).Reset(@as(*const IEnumMsmDependency, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IEnumMsmDependency_Clone(self: *const T, pemsmDependencies: ?*?*IEnumMsmDependency) HRESULT { return @as(*const IEnumMsmDependency.VTable, @ptrCast(self.vtable)).Clone(@as(*const IEnumMsmDependency, @ptrCast(self)), pemsmDependencies); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IMsmDependencies_Value = Guid.initString("0adda82d-2c26-11d2-ad65-00a0c9af11a6"); pub const IID_IMsmDependencies = &IID_IMsmDependencies_Value; pub const IMsmDependencies = extern struct { pub const VTable = extern struct { base: IDispatch.VTable, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Item: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMsmDependencies, Item: i32, Return: ?*?*IMsmDependency, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMsmDependencies, Item: i32, Return: ?*?*IMsmDependency, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Count: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMsmDependencies, Count: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMsmDependencies, Count: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get__NewEnum: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMsmDependencies, NewEnum: ?*?*IUnknown, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMsmDependencies, NewEnum: ?*?*IUnknown, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IDispatch.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMsmDependencies_get_Item(self: *const T, Item: i32, Return: ?*?*IMsmDependency) HRESULT { return @as(*const IMsmDependencies.VTable, @ptrCast(self.vtable)).get_Item(@as(*const IMsmDependencies, @ptrCast(self)), Item, Return); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMsmDependencies_get_Count(self: *const T, Count: ?*i32) HRESULT { return @as(*const IMsmDependencies.VTable, @ptrCast(self.vtable)).get_Count(@as(*const IMsmDependencies, @ptrCast(self)), Count); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMsmDependencies_get__NewEnum(self: *const T, NewEnum: ?*?*IUnknown) HRESULT { return @as(*const IMsmDependencies.VTable, @ptrCast(self.vtable)).get__NewEnum(@as(*const IMsmDependencies, @ptrCast(self)), NewEnum); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IMsmMerge_Value = Guid.initString("0adda82e-2c26-11d2-ad65-00a0c9af11a6"); pub const IID_IMsmMerge = &IID_IMsmMerge_Value; pub const IMsmMerge = extern struct { pub const VTable = extern struct { base: IDispatch.VTable, OpenDatabase: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IMsmMerge, Path: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IMsmMerge, Path: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, OpenModule: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IMsmMerge, Path: ?BSTR, Language: i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IMsmMerge, Path: ?BSTR, Language: i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, CloseDatabase: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IMsmMerge, Commit: i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IMsmMerge, Commit: i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, CloseModule: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IMsmMerge, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IMsmMerge, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, OpenLog: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IMsmMerge, Path: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IMsmMerge, Path: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, CloseLog: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IMsmMerge, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IMsmMerge, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Log: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IMsmMerge, Message: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IMsmMerge, Message: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Errors: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMsmMerge, Errors: ?*?*IMsmErrors, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMsmMerge, Errors: ?*?*IMsmErrors, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Dependencies: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMsmMerge, Dependencies: ?*?*IMsmDependencies, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMsmMerge, Dependencies: ?*?*IMsmDependencies, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Merge: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IMsmMerge, Feature: ?BSTR, RedirectDir: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IMsmMerge, Feature: ?BSTR, RedirectDir: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Connect: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IMsmMerge, Feature: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IMsmMerge, Feature: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, ExtractCAB: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IMsmMerge, FileName: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IMsmMerge, FileName: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, ExtractFiles: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IMsmMerge, Path: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IMsmMerge, Path: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IDispatch.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMsmMerge_OpenDatabase(self: *const T, Path: ?BSTR) HRESULT { return @as(*const IMsmMerge.VTable, @ptrCast(self.vtable)).OpenDatabase(@as(*const IMsmMerge, @ptrCast(self)), Path); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMsmMerge_OpenModule(self: *const T, Path: ?BSTR, Language: i16) HRESULT { return @as(*const IMsmMerge.VTable, @ptrCast(self.vtable)).OpenModule(@as(*const IMsmMerge, @ptrCast(self)), Path, Language); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMsmMerge_CloseDatabase(self: *const T, Commit: i16) HRESULT { return @as(*const IMsmMerge.VTable, @ptrCast(self.vtable)).CloseDatabase(@as(*const IMsmMerge, @ptrCast(self)), Commit); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMsmMerge_CloseModule(self: *const T) HRESULT { return @as(*const IMsmMerge.VTable, @ptrCast(self.vtable)).CloseModule(@as(*const IMsmMerge, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMsmMerge_OpenLog(self: *const T, Path: ?BSTR) HRESULT { return @as(*const IMsmMerge.VTable, @ptrCast(self.vtable)).OpenLog(@as(*const IMsmMerge, @ptrCast(self)), Path); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMsmMerge_CloseLog(self: *const T) HRESULT { return @as(*const IMsmMerge.VTable, @ptrCast(self.vtable)).CloseLog(@as(*const IMsmMerge, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMsmMerge_Log(self: *const T, Message: ?BSTR) HRESULT { return @as(*const IMsmMerge.VTable, @ptrCast(self.vtable)).Log(@as(*const IMsmMerge, @ptrCast(self)), Message); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMsmMerge_get_Errors(self: *const T, Errors: ?*?*IMsmErrors) HRESULT { return @as(*const IMsmMerge.VTable, @ptrCast(self.vtable)).get_Errors(@as(*const IMsmMerge, @ptrCast(self)), Errors); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMsmMerge_get_Dependencies(self: *const T, Dependencies: ?*?*IMsmDependencies) HRESULT { return @as(*const IMsmMerge.VTable, @ptrCast(self.vtable)).get_Dependencies(@as(*const IMsmMerge, @ptrCast(self)), Dependencies); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMsmMerge_Merge(self: *const T, Feature: ?BSTR, RedirectDir: ?BSTR) HRESULT { return @as(*const IMsmMerge.VTable, @ptrCast(self.vtable)).Merge(@as(*const IMsmMerge, @ptrCast(self)), Feature, RedirectDir); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMsmMerge_Connect(self: *const T, Feature: ?BSTR) HRESULT { return @as(*const IMsmMerge.VTable, @ptrCast(self.vtable)).Connect(@as(*const IMsmMerge, @ptrCast(self)), Feature); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMsmMerge_ExtractCAB(self: *const T, FileName: ?BSTR) HRESULT { return @as(*const IMsmMerge.VTable, @ptrCast(self.vtable)).ExtractCAB(@as(*const IMsmMerge, @ptrCast(self)), FileName); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMsmMerge_ExtractFiles(self: *const T, Path: ?BSTR) HRESULT { return @as(*const IMsmMerge.VTable, @ptrCast(self.vtable)).ExtractFiles(@as(*const IMsmMerge, @ptrCast(self)), Path); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IMsmGetFiles_Value = Guid.initString("7041ae26-2d78-11d2-888a-00a0c981b015"); pub const IID_IMsmGetFiles = &IID_IMsmGetFiles_Value; pub const IMsmGetFiles = extern struct { pub const VTable = extern struct { base: IDispatch.VTable, // TODO: this function has a "SpecialName", should Zig do anything with this? get_ModuleFiles: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMsmGetFiles, Files: ?*?*IMsmStrings, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMsmGetFiles, Files: ?*?*IMsmStrings, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IDispatch.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMsmGetFiles_get_ModuleFiles(self: *const T, Files: ?*?*IMsmStrings) HRESULT { return @as(*const IMsmGetFiles.VTable, @ptrCast(self.vtable)).get_ModuleFiles(@as(*const IMsmGetFiles, @ptrCast(self)), Files); } }; } pub usingnamespace MethodMixin(@This()); }; pub const PMSIHANDLE = extern struct { m_h: MSIHANDLE, }; pub const INSTALLMESSAGE = enum(i32) { FATALEXIT = 0, ERROR = 16777216, WARNING = 33554432, USER = 50331648, INFO = 67108864, FILESINUSE = 83886080, RESOLVESOURCE = 100663296, OUTOFDISKSPACE = 117440512, ACTIONSTART = 134217728, ACTIONDATA = 150994944, PROGRESS = 167772160, COMMONDATA = 184549376, INITIALIZE = 201326592, TERMINATE = 218103808, SHOWDIALOG = 234881024, PERFORMANCE = 251658240, RMFILESINUSE = 419430400, INSTALLSTART = 436207616, INSTALLEND = 452984832, }; pub const INSTALLMESSAGE_FATALEXIT = INSTALLMESSAGE.FATALEXIT; pub const INSTALLMESSAGE_ERROR = INSTALLMESSAGE.ERROR; pub const INSTALLMESSAGE_WARNING = INSTALLMESSAGE.WARNING; pub const INSTALLMESSAGE_USER = INSTALLMESSAGE.USER; pub const INSTALLMESSAGE_INFO = INSTALLMESSAGE.INFO; pub const INSTALLMESSAGE_FILESINUSE = INSTALLMESSAGE.FILESINUSE; pub const INSTALLMESSAGE_RESOLVESOURCE = INSTALLMESSAGE.RESOLVESOURCE; pub const INSTALLMESSAGE_OUTOFDISKSPACE = INSTALLMESSAGE.OUTOFDISKSPACE; pub const INSTALLMESSAGE_ACTIONSTART = INSTALLMESSAGE.ACTIONSTART; pub const INSTALLMESSAGE_ACTIONDATA = INSTALLMESSAGE.ACTIONDATA; pub const INSTALLMESSAGE_PROGRESS = INSTALLMESSAGE.PROGRESS; pub const INSTALLMESSAGE_COMMONDATA = INSTALLMESSAGE.COMMONDATA; pub const INSTALLMESSAGE_INITIALIZE = INSTALLMESSAGE.INITIALIZE; pub const INSTALLMESSAGE_TERMINATE = INSTALLMESSAGE.TERMINATE; pub const INSTALLMESSAGE_SHOWDIALOG = INSTALLMESSAGE.SHOWDIALOG; pub const INSTALLMESSAGE_PERFORMANCE = INSTALLMESSAGE.PERFORMANCE; pub const INSTALLMESSAGE_RMFILESINUSE = INSTALLMESSAGE.RMFILESINUSE; pub const INSTALLMESSAGE_INSTALLSTART = INSTALLMESSAGE.INSTALLSTART; pub const INSTALLMESSAGE_INSTALLEND = INSTALLMESSAGE.INSTALLEND; pub const INSTALLUI_HANDLERA = switch (@import("builtin").zig_backend) { .stage1 => fn ( pvContext: ?*anyopaque, iMessageType: u32, szMessage: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) i32, else => *const fn ( pvContext: ?*anyopaque, iMessageType: u32, szMessage: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) i32, }; pub const INSTALLUI_HANDLERW = switch (@import("builtin").zig_backend) { .stage1 => fn ( pvContext: ?*anyopaque, iMessageType: u32, szMessage: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) i32, else => *const fn ( pvContext: ?*anyopaque, iMessageType: u32, szMessage: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) i32, }; pub const PINSTALLUI_HANDLER_RECORD = switch (@import("builtin").zig_backend) { .stage1 => fn ( pvContext: ?*anyopaque, iMessageType: u32, hRecord: MSIHANDLE, ) callconv(@import("std").os.windows.WINAPI) i32, else => *const fn ( pvContext: ?*anyopaque, iMessageType: u32, hRecord: MSIHANDLE, ) callconv(@import("std").os.windows.WINAPI) i32, }; pub const INSTALLUILEVEL = enum(i32) { NOCHANGE = 0, DEFAULT = 1, NONE = 2, BASIC = 3, REDUCED = 4, FULL = 5, ENDDIALOG = 128, PROGRESSONLY = 64, HIDECANCEL = 32, SOURCERESONLY = 256, UACONLY = 512, }; pub const INSTALLUILEVEL_NOCHANGE = INSTALLUILEVEL.NOCHANGE; pub const INSTALLUILEVEL_DEFAULT = INSTALLUILEVEL.DEFAULT; pub const INSTALLUILEVEL_NONE = INSTALLUILEVEL.NONE; pub const INSTALLUILEVEL_BASIC = INSTALLUILEVEL.BASIC; pub const INSTALLUILEVEL_REDUCED = INSTALLUILEVEL.REDUCED; pub const INSTALLUILEVEL_FULL = INSTALLUILEVEL.FULL; pub const INSTALLUILEVEL_ENDDIALOG = INSTALLUILEVEL.ENDDIALOG; pub const INSTALLUILEVEL_PROGRESSONLY = INSTALLUILEVEL.PROGRESSONLY; pub const INSTALLUILEVEL_HIDECANCEL = INSTALLUILEVEL.HIDECANCEL; pub const INSTALLUILEVEL_SOURCERESONLY = INSTALLUILEVEL.SOURCERESONLY; pub const INSTALLUILEVEL_UACONLY = INSTALLUILEVEL.UACONLY; pub const INSTALLSTATE = enum(i32) { NOTUSED = -7, BADCONFIG = -6, INCOMPLETE = -5, SOURCEABSENT = -4, MOREDATA = -3, INVALIDARG = -2, UNKNOWN = -1, BROKEN = 0, ADVERTISED = 1, // REMOVED = 1, this enum value conflicts with ADVERTISED ABSENT = 2, LOCAL = 3, SOURCE = 4, DEFAULT = 5, }; pub const INSTALLSTATE_NOTUSED = INSTALLSTATE.NOTUSED; pub const INSTALLSTATE_BADCONFIG = INSTALLSTATE.BADCONFIG; pub const INSTALLSTATE_INCOMPLETE = INSTALLSTATE.INCOMPLETE; pub const INSTALLSTATE_SOURCEABSENT = INSTALLSTATE.SOURCEABSENT; pub const INSTALLSTATE_MOREDATA = INSTALLSTATE.MOREDATA; pub const INSTALLSTATE_INVALIDARG = INSTALLSTATE.INVALIDARG; pub const INSTALLSTATE_UNKNOWN = INSTALLSTATE.UNKNOWN; pub const INSTALLSTATE_BROKEN = INSTALLSTATE.BROKEN; pub const INSTALLSTATE_ADVERTISED = INSTALLSTATE.ADVERTISED; pub const INSTALLSTATE_REMOVED = INSTALLSTATE.ADVERTISED; pub const INSTALLSTATE_ABSENT = INSTALLSTATE.ABSENT; pub const INSTALLSTATE_LOCAL = INSTALLSTATE.LOCAL; pub const INSTALLSTATE_SOURCE = INSTALLSTATE.SOURCE; pub const INSTALLSTATE_DEFAULT = INSTALLSTATE.DEFAULT; pub const USERINFOSTATE = enum(i32) { MOREDATA = -3, INVALIDARG = -2, UNKNOWN = -1, ABSENT = 0, PRESENT = 1, }; pub const USERINFOSTATE_MOREDATA = USERINFOSTATE.MOREDATA; pub const USERINFOSTATE_INVALIDARG = USERINFOSTATE.INVALIDARG; pub const USERINFOSTATE_UNKNOWN = USERINFOSTATE.UNKNOWN; pub const USERINFOSTATE_ABSENT = USERINFOSTATE.ABSENT; pub const USERINFOSTATE_PRESENT = USERINFOSTATE.PRESENT; pub const INSTALLLEVEL = enum(i32) { DEFAULT = 0, MINIMUM = 1, MAXIMUM = 65535, }; pub const INSTALLLEVEL_DEFAULT = INSTALLLEVEL.DEFAULT; pub const INSTALLLEVEL_MINIMUM = INSTALLLEVEL.MINIMUM; pub const INSTALLLEVEL_MAXIMUM = INSTALLLEVEL.MAXIMUM; pub const REINSTALLMODE = enum(i32) { REPAIR = 1, FILEMISSING = 2, FILEOLDERVERSION = 4, FILEEQUALVERSION = 8, FILEEXACT = 16, FILEVERIFY = 32, FILEREPLACE = 64, MACHINEDATA = 128, USERDATA = 256, SHORTCUT = 512, PACKAGE = 1024, }; pub const REINSTALLMODE_REPAIR = REINSTALLMODE.REPAIR; pub const REINSTALLMODE_FILEMISSING = REINSTALLMODE.FILEMISSING; pub const REINSTALLMODE_FILEOLDERVERSION = REINSTALLMODE.FILEOLDERVERSION; pub const REINSTALLMODE_FILEEQUALVERSION = REINSTALLMODE.FILEEQUALVERSION; pub const REINSTALLMODE_FILEEXACT = REINSTALLMODE.FILEEXACT; pub const REINSTALLMODE_FILEVERIFY = REINSTALLMODE.FILEVERIFY; pub const REINSTALLMODE_FILEREPLACE = REINSTALLMODE.FILEREPLACE; pub const REINSTALLMODE_MACHINEDATA = REINSTALLMODE.MACHINEDATA; pub const REINSTALLMODE_USERDATA = REINSTALLMODE.USERDATA; pub const REINSTALLMODE_SHORTCUT = REINSTALLMODE.SHORTCUT; pub const REINSTALLMODE_PACKAGE = REINSTALLMODE.PACKAGE; pub const INSTALLOGMODE = enum(i32) { FATALEXIT = 1, ERROR = 2, WARNING = 4, USER = 8, INFO = 16, RESOLVESOURCE = 64, OUTOFDISKSPACE = 128, ACTIONSTART = 256, ACTIONDATA = 512, COMMONDATA = 2048, PROPERTYDUMP = 1024, VERBOSE = 4096, EXTRADEBUG = 8192, LOGONLYONERROR = 16384, LOGPERFORMANCE = 32768, // PROGRESS = 1024, this enum value conflicts with PROPERTYDUMP // INITIALIZE = 4096, this enum value conflicts with VERBOSE // TERMINATE = 8192, this enum value conflicts with EXTRADEBUG // SHOWDIALOG = 16384, this enum value conflicts with LOGONLYONERROR FILESINUSE = 32, RMFILESINUSE = 33554432, INSTALLSTART = 67108864, INSTALLEND = 134217728, }; pub const INSTALLLOGMODE_FATALEXIT = INSTALLOGMODE.FATALEXIT; pub const INSTALLLOGMODE_ERROR = INSTALLOGMODE.ERROR; pub const INSTALLLOGMODE_WARNING = INSTALLOGMODE.WARNING; pub const INSTALLLOGMODE_USER = INSTALLOGMODE.USER; pub const INSTALLLOGMODE_INFO = INSTALLOGMODE.INFO; pub const INSTALLLOGMODE_RESOLVESOURCE = INSTALLOGMODE.RESOLVESOURCE; pub const INSTALLLOGMODE_OUTOFDISKSPACE = INSTALLOGMODE.OUTOFDISKSPACE; pub const INSTALLLOGMODE_ACTIONSTART = INSTALLOGMODE.ACTIONSTART; pub const INSTALLLOGMODE_ACTIONDATA = INSTALLOGMODE.ACTIONDATA; pub const INSTALLLOGMODE_COMMONDATA = INSTALLOGMODE.COMMONDATA; pub const INSTALLLOGMODE_PROPERTYDUMP = INSTALLOGMODE.PROPERTYDUMP; pub const INSTALLLOGMODE_VERBOSE = INSTALLOGMODE.VERBOSE; pub const INSTALLLOGMODE_EXTRADEBUG = INSTALLOGMODE.EXTRADEBUG; pub const INSTALLLOGMODE_LOGONLYONERROR = INSTALLOGMODE.LOGONLYONERROR; pub const INSTALLLOGMODE_LOGPERFORMANCE = INSTALLOGMODE.LOGPERFORMANCE; pub const INSTALLLOGMODE_PROGRESS = INSTALLOGMODE.PROPERTYDUMP; pub const INSTALLLOGMODE_INITIALIZE = INSTALLOGMODE.VERBOSE; pub const INSTALLLOGMODE_TERMINATE = INSTALLOGMODE.EXTRADEBUG; pub const INSTALLLOGMODE_SHOWDIALOG = INSTALLOGMODE.LOGONLYONERROR; pub const INSTALLLOGMODE_FILESINUSE = INSTALLOGMODE.FILESINUSE; pub const INSTALLLOGMODE_RMFILESINUSE = INSTALLOGMODE.RMFILESINUSE; pub const INSTALLLOGMODE_INSTALLSTART = INSTALLOGMODE.INSTALLSTART; pub const INSTALLLOGMODE_INSTALLEND = INSTALLOGMODE.INSTALLEND; pub const INSTALLLOGATTRIBUTES = enum(i32) { APPEND = 1, FLUSHEACHLINE = 2, }; pub const INSTALLLOGATTRIBUTES_APPEND = INSTALLLOGATTRIBUTES.APPEND; pub const INSTALLLOGATTRIBUTES_FLUSHEACHLINE = INSTALLLOGATTRIBUTES.FLUSHEACHLINE; pub const INSTALLFEATUREATTRIBUTE = enum(i32) { FAVORLOCAL = 1, FAVORSOURCE = 2, FOLLOWPARENT = 4, FAVORADVERTISE = 8, DISALLOWADVERTISE = 16, NOUNSUPPORTEDADVERTISE = 32, }; pub const INSTALLFEATUREATTRIBUTE_FAVORLOCAL = INSTALLFEATUREATTRIBUTE.FAVORLOCAL; pub const INSTALLFEATUREATTRIBUTE_FAVORSOURCE = INSTALLFEATUREATTRIBUTE.FAVORSOURCE; pub const INSTALLFEATUREATTRIBUTE_FOLLOWPARENT = INSTALLFEATUREATTRIBUTE.FOLLOWPARENT; pub const INSTALLFEATUREATTRIBUTE_FAVORADVERTISE = INSTALLFEATUREATTRIBUTE.FAVORADVERTISE; pub const INSTALLFEATUREATTRIBUTE_DISALLOWADVERTISE = INSTALLFEATUREATTRIBUTE.DISALLOWADVERTISE; pub const INSTALLFEATUREATTRIBUTE_NOUNSUPPORTEDADVERTISE = INSTALLFEATUREATTRIBUTE.NOUNSUPPORTEDADVERTISE; pub const INSTALLMODE = enum(i32) { NODETECTION_ANY = -4, NOSOURCERESOLUTION = -3, NODETECTION = -2, EXISTING = -1, DEFAULT = 0, }; pub const INSTALLMODE_NODETECTION_ANY = INSTALLMODE.NODETECTION_ANY; pub const INSTALLMODE_NOSOURCERESOLUTION = INSTALLMODE.NOSOURCERESOLUTION; pub const INSTALLMODE_NODETECTION = INSTALLMODE.NODETECTION; pub const INSTALLMODE_EXISTING = INSTALLMODE.EXISTING; pub const INSTALLMODE_DEFAULT = INSTALLMODE.DEFAULT; pub const MSIPATCHSTATE = enum(i32) { INVALID = 0, APPLIED = 1, SUPERSEDED = 2, OBSOLETED = 4, REGISTERED = 8, ALL = 15, }; pub const MSIPATCHSTATE_INVALID = MSIPATCHSTATE.INVALID; pub const MSIPATCHSTATE_APPLIED = MSIPATCHSTATE.APPLIED; pub const MSIPATCHSTATE_SUPERSEDED = MSIPATCHSTATE.SUPERSEDED; pub const MSIPATCHSTATE_OBSOLETED = MSIPATCHSTATE.OBSOLETED; pub const MSIPATCHSTATE_REGISTERED = MSIPATCHSTATE.REGISTERED; pub const MSIPATCHSTATE_ALL = MSIPATCHSTATE.ALL; pub const MSIINSTALLCONTEXT = enum(i32) { FIRSTVISIBLE = 0, // NONE = 0, this enum value conflicts with FIRSTVISIBLE USERMANAGED = 1, USERUNMANAGED = 2, MACHINE = 4, ALL = 7, ALLUSERMANAGED = 8, }; pub const MSIINSTALLCONTEXT_FIRSTVISIBLE = MSIINSTALLCONTEXT.FIRSTVISIBLE; pub const MSIINSTALLCONTEXT_NONE = MSIINSTALLCONTEXT.FIRSTVISIBLE; pub const MSIINSTALLCONTEXT_USERMANAGED = MSIINSTALLCONTEXT.USERMANAGED; pub const MSIINSTALLCONTEXT_USERUNMANAGED = MSIINSTALLCONTEXT.USERUNMANAGED; pub const MSIINSTALLCONTEXT_MACHINE = MSIINSTALLCONTEXT.MACHINE; pub const MSIINSTALLCONTEXT_ALL = MSIINSTALLCONTEXT.ALL; pub const MSIINSTALLCONTEXT_ALLUSERMANAGED = MSIINSTALLCONTEXT.ALLUSERMANAGED; pub const MSIPATCHDATATYPE = enum(i32) { PATCHFILE = 0, XMLPATH = 1, XMLBLOB = 2, }; pub const MSIPATCH_DATATYPE_PATCHFILE = MSIPATCHDATATYPE.PATCHFILE; pub const MSIPATCH_DATATYPE_XMLPATH = MSIPATCHDATATYPE.XMLPATH; pub const MSIPATCH_DATATYPE_XMLBLOB = MSIPATCHDATATYPE.XMLBLOB; pub const MSIPATCHSEQUENCEINFOA = extern struct { szPatchData: ?[*:0]const u8, ePatchDataType: MSIPATCHDATATYPE, dwOrder: u32, uStatus: u32, }; pub const MSIPATCHSEQUENCEINFOW = extern struct { szPatchData: ?[*:0]const u16, ePatchDataType: MSIPATCHDATATYPE, dwOrder: u32, uStatus: u32, }; pub const SCRIPTFLAGS = enum(i32) { CACHEINFO = 1, SHORTCUTS = 4, MACHINEASSIGN = 8, REGDATA_CNFGINFO = 32, VALIDATE_TRANSFORMS_LIST = 64, REGDATA_CLASSINFO = 128, REGDATA_EXTENSIONINFO = 256, REGDATA_APPINFO = 384, REGDATA = 416, }; pub const SCRIPTFLAGS_CACHEINFO = SCRIPTFLAGS.CACHEINFO; pub const SCRIPTFLAGS_SHORTCUTS = SCRIPTFLAGS.SHORTCUTS; pub const SCRIPTFLAGS_MACHINEASSIGN = SCRIPTFLAGS.MACHINEASSIGN; pub const SCRIPTFLAGS_REGDATA_CNFGINFO = SCRIPTFLAGS.REGDATA_CNFGINFO; pub const SCRIPTFLAGS_VALIDATE_TRANSFORMS_LIST = SCRIPTFLAGS.VALIDATE_TRANSFORMS_LIST; pub const SCRIPTFLAGS_REGDATA_CLASSINFO = SCRIPTFLAGS.REGDATA_CLASSINFO; pub const SCRIPTFLAGS_REGDATA_EXTENSIONINFO = SCRIPTFLAGS.REGDATA_EXTENSIONINFO; pub const SCRIPTFLAGS_REGDATA_APPINFO = SCRIPTFLAGS.REGDATA_APPINFO; pub const SCRIPTFLAGS_REGDATA = SCRIPTFLAGS.REGDATA; pub const ADVERTISEFLAGS = enum(i32) { MACHINEASSIGN = 0, USERASSIGN = 1, }; pub const ADVERTISEFLAGS_MACHINEASSIGN = ADVERTISEFLAGS.MACHINEASSIGN; pub const ADVERTISEFLAGS_USERASSIGN = ADVERTISEFLAGS.USERASSIGN; pub const INSTALLTYPE = enum(i32) { DEFAULT = 0, NETWORK_IMAGE = 1, SINGLE_INSTANCE = 2, }; pub const INSTALLTYPE_DEFAULT = INSTALLTYPE.DEFAULT; pub const INSTALLTYPE_NETWORK_IMAGE = INSTALLTYPE.NETWORK_IMAGE; pub const INSTALLTYPE_SINGLE_INSTANCE = INSTALLTYPE.SINGLE_INSTANCE; pub const MSIFILEHASHINFO = extern struct { dwFileHashInfoSize: u32, dwData: [4]u32, }; pub const MSIARCHITECTUREFLAGS = enum(i32) { X86 = 1, IA64 = 2, AMD64 = 4, ARM = 8, }; pub const MSIARCHITECTUREFLAGS_X86 = MSIARCHITECTUREFLAGS.X86; pub const MSIARCHITECTUREFLAGS_IA64 = MSIARCHITECTUREFLAGS.IA64; pub const MSIARCHITECTUREFLAGS_AMD64 = MSIARCHITECTUREFLAGS.AMD64; pub const MSIARCHITECTUREFLAGS_ARM = MSIARCHITECTUREFLAGS.ARM; pub const MSIOPENPACKAGEFLAGS = enum(i32) { E = 1, }; pub const MSIOPENPACKAGEFLAGS_IGNOREMACHINESTATE = MSIOPENPACKAGEFLAGS.E; pub const MSIADVERTISEOPTIONFLAGS = enum(i32) { E = 1, }; pub const MSIADVERTISEOPTIONFLAGS_INSTANCE = MSIADVERTISEOPTIONFLAGS.E; pub const MSISOURCETYPE = enum(i32) { UNKNOWN = 0, NETWORK = 1, URL = 2, MEDIA = 4, }; pub const MSISOURCETYPE_UNKNOWN = MSISOURCETYPE.UNKNOWN; pub const MSISOURCETYPE_NETWORK = MSISOURCETYPE.NETWORK; pub const MSISOURCETYPE_URL = MSISOURCETYPE.URL; pub const MSISOURCETYPE_MEDIA = MSISOURCETYPE.MEDIA; pub const MSICODE = enum(i32) { RODUCT = 0, ATCH = 1073741824, }; pub const MSICODE_PRODUCT = MSICODE.RODUCT; pub const MSICODE_PATCH = MSICODE.ATCH; pub const MSITRANSACTION = enum(i32) { CHAIN_EMBEDDEDUI = 1, JOIN_EXISTING_EMBEDDEDUI = 2, }; pub const MSITRANSACTION_CHAIN_EMBEDDEDUI = MSITRANSACTION.CHAIN_EMBEDDEDUI; pub const MSITRANSACTION_JOIN_EXISTING_EMBEDDEDUI = MSITRANSACTION.JOIN_EXISTING_EMBEDDEDUI; pub const MSITRANSACTIONSTATE = enum(u32) { ROLLBACK = 0, COMMIT = 1, }; pub const MSITRANSACTIONSTATE_ROLLBACK = MSITRANSACTIONSTATE.ROLLBACK; pub const MSITRANSACTIONSTATE_COMMIT = MSITRANSACTIONSTATE.COMMIT; pub const MSIDBSTATE = enum(i32) { ERROR = -1, READ = 0, WRITE = 1, }; pub const MSIDBSTATE_ERROR = MSIDBSTATE.ERROR; pub const MSIDBSTATE_READ = MSIDBSTATE.READ; pub const MSIDBSTATE_WRITE = MSIDBSTATE.WRITE; pub const MSIMODIFY = enum(i32) { SEEK = -1, REFRESH = 0, INSERT = 1, UPDATE = 2, ASSIGN = 3, REPLACE = 4, MERGE = 5, DELETE = 6, INSERT_TEMPORARY = 7, VALIDATE = 8, VALIDATE_NEW = 9, VALIDATE_FIELD = 10, VALIDATE_DELETE = 11, }; pub const MSIMODIFY_SEEK = MSIMODIFY.SEEK; pub const MSIMODIFY_REFRESH = MSIMODIFY.REFRESH; pub const MSIMODIFY_INSERT = MSIMODIFY.INSERT; pub const MSIMODIFY_UPDATE = MSIMODIFY.UPDATE; pub const MSIMODIFY_ASSIGN = MSIMODIFY.ASSIGN; pub const MSIMODIFY_REPLACE = MSIMODIFY.REPLACE; pub const MSIMODIFY_MERGE = MSIMODIFY.MERGE; pub const MSIMODIFY_DELETE = MSIMODIFY.DELETE; pub const MSIMODIFY_INSERT_TEMPORARY = MSIMODIFY.INSERT_TEMPORARY; pub const MSIMODIFY_VALIDATE = MSIMODIFY.VALIDATE; pub const MSIMODIFY_VALIDATE_NEW = MSIMODIFY.VALIDATE_NEW; pub const MSIMODIFY_VALIDATE_FIELD = MSIMODIFY.VALIDATE_FIELD; pub const MSIMODIFY_VALIDATE_DELETE = MSIMODIFY.VALIDATE_DELETE; pub const MSICOLINFO = enum(i32) { NAMES = 0, TYPES = 1, }; pub const MSICOLINFO_NAMES = MSICOLINFO.NAMES; pub const MSICOLINFO_TYPES = MSICOLINFO.TYPES; pub const MSICONDITION = enum(i32) { FALSE = 0, TRUE = 1, NONE = 2, ERROR = 3, }; pub const MSICONDITION_FALSE = MSICONDITION.FALSE; pub const MSICONDITION_TRUE = MSICONDITION.TRUE; pub const MSICONDITION_NONE = MSICONDITION.NONE; pub const MSICONDITION_ERROR = MSICONDITION.ERROR; pub const MSICOSTTREE = enum(i32) { SELFONLY = 0, CHILDREN = 1, PARENTS = 2, RESERVED = 3, }; pub const MSICOSTTREE_SELFONLY = MSICOSTTREE.SELFONLY; pub const MSICOSTTREE_CHILDREN = MSICOSTTREE.CHILDREN; pub const MSICOSTTREE_PARENTS = MSICOSTTREE.PARENTS; pub const MSICOSTTREE_RESERVED = MSICOSTTREE.RESERVED; pub const MSIDBERROR = enum(i32) { INVALIDARG = -3, MOREDATA = -2, FUNCTIONERROR = -1, NOERROR = 0, DUPLICATEKEY = 1, REQUIRED = 2, BADLINK = 3, OVERFLOW = 4, UNDERFLOW = 5, NOTINSET = 6, BADVERSION = 7, BADCASE = 8, BADGUID = 9, BADWILDCARD = 10, BADIDENTIFIER = 11, BADLANGUAGE = 12, BADFILENAME = 13, BADPATH = 14, BADCONDITION = 15, BADFORMATTED = 16, BADTEMPLATE = 17, BADDEFAULTDIR = 18, BADREGPATH = 19, BADCUSTOMSOURCE = 20, BADPROPERTY = 21, MISSINGDATA = 22, BADCATEGORY = 23, BADKEYTABLE = 24, BADMAXMINVALUES = 25, BADCABINET = 26, BADSHORTCUT = 27, STRINGOVERFLOW = 28, BADLOCALIZEATTRIB = 29, }; pub const MSIDBERROR_INVALIDARG = MSIDBERROR.INVALIDARG; pub const MSIDBERROR_MOREDATA = MSIDBERROR.MOREDATA; pub const MSIDBERROR_FUNCTIONERROR = MSIDBERROR.FUNCTIONERROR; pub const MSIDBERROR_NOERROR = MSIDBERROR.NOERROR; pub const MSIDBERROR_DUPLICATEKEY = MSIDBERROR.DUPLICATEKEY; pub const MSIDBERROR_REQUIRED = MSIDBERROR.REQUIRED; pub const MSIDBERROR_BADLINK = MSIDBERROR.BADLINK; pub const MSIDBERROR_OVERFLOW = MSIDBERROR.OVERFLOW; pub const MSIDBERROR_UNDERFLOW = MSIDBERROR.UNDERFLOW; pub const MSIDBERROR_NOTINSET = MSIDBERROR.NOTINSET; pub const MSIDBERROR_BADVERSION = MSIDBERROR.BADVERSION; pub const MSIDBERROR_BADCASE = MSIDBERROR.BADCASE; pub const MSIDBERROR_BADGUID = MSIDBERROR.BADGUID; pub const MSIDBERROR_BADWILDCARD = MSIDBERROR.BADWILDCARD; pub const MSIDBERROR_BADIDENTIFIER = MSIDBERROR.BADIDENTIFIER; pub const MSIDBERROR_BADLANGUAGE = MSIDBERROR.BADLANGUAGE; pub const MSIDBERROR_BADFILENAME = MSIDBERROR.BADFILENAME; pub const MSIDBERROR_BADPATH = MSIDBERROR.BADPATH; pub const MSIDBERROR_BADCONDITION = MSIDBERROR.BADCONDITION; pub const MSIDBERROR_BADFORMATTED = MSIDBERROR.BADFORMATTED; pub const MSIDBERROR_BADTEMPLATE = MSIDBERROR.BADTEMPLATE; pub const MSIDBERROR_BADDEFAULTDIR = MSIDBERROR.BADDEFAULTDIR; pub const MSIDBERROR_BADREGPATH = MSIDBERROR.BADREGPATH; pub const MSIDBERROR_BADCUSTOMSOURCE = MSIDBERROR.BADCUSTOMSOURCE; pub const MSIDBERROR_BADPROPERTY = MSIDBERROR.BADPROPERTY; pub const MSIDBERROR_MISSINGDATA = MSIDBERROR.MISSINGDATA; pub const MSIDBERROR_BADCATEGORY = MSIDBERROR.BADCATEGORY; pub const MSIDBERROR_BADKEYTABLE = MSIDBERROR.BADKEYTABLE; pub const MSIDBERROR_BADMAXMINVALUES = MSIDBERROR.BADMAXMINVALUES; pub const MSIDBERROR_BADCABINET = MSIDBERROR.BADCABINET; pub const MSIDBERROR_BADSHORTCUT = MSIDBERROR.BADSHORTCUT; pub const MSIDBERROR_STRINGOVERFLOW = MSIDBERROR.STRINGOVERFLOW; pub const MSIDBERROR_BADLOCALIZEATTRIB = MSIDBERROR.BADLOCALIZEATTRIB; pub const MSIRUNMODE = enum(i32) { ADMIN = 0, ADVERTISE = 1, MAINTENANCE = 2, ROLLBACKENABLED = 3, LOGENABLED = 4, OPERATIONS = 5, REBOOTATEND = 6, REBOOTNOW = 7, CABINET = 8, SOURCESHORTNAMES = 9, TARGETSHORTNAMES = 10, RESERVED11 = 11, WINDOWS9X = 12, ZAWENABLED = 13, RESERVED14 = 14, RESERVED15 = 15, SCHEDULED = 16, ROLLBACK = 17, COMMIT = 18, }; pub const MSIRUNMODE_ADMIN = MSIRUNMODE.ADMIN; pub const MSIRUNMODE_ADVERTISE = MSIRUNMODE.ADVERTISE; pub const MSIRUNMODE_MAINTENANCE = MSIRUNMODE.MAINTENANCE; pub const MSIRUNMODE_ROLLBACKENABLED = MSIRUNMODE.ROLLBACKENABLED; pub const MSIRUNMODE_LOGENABLED = MSIRUNMODE.LOGENABLED; pub const MSIRUNMODE_OPERATIONS = MSIRUNMODE.OPERATIONS; pub const MSIRUNMODE_REBOOTATEND = MSIRUNMODE.REBOOTATEND; pub const MSIRUNMODE_REBOOTNOW = MSIRUNMODE.REBOOTNOW; pub const MSIRUNMODE_CABINET = MSIRUNMODE.CABINET; pub const MSIRUNMODE_SOURCESHORTNAMES = MSIRUNMODE.SOURCESHORTNAMES; pub const MSIRUNMODE_TARGETSHORTNAMES = MSIRUNMODE.TARGETSHORTNAMES; pub const MSIRUNMODE_RESERVED11 = MSIRUNMODE.RESERVED11; pub const MSIRUNMODE_WINDOWS9X = MSIRUNMODE.WINDOWS9X; pub const MSIRUNMODE_ZAWENABLED = MSIRUNMODE.ZAWENABLED; pub const MSIRUNMODE_RESERVED14 = MSIRUNMODE.RESERVED14; pub const MSIRUNMODE_RESERVED15 = MSIRUNMODE.RESERVED15; pub const MSIRUNMODE_SCHEDULED = MSIRUNMODE.SCHEDULED; pub const MSIRUNMODE_ROLLBACK = MSIRUNMODE.ROLLBACK; pub const MSIRUNMODE_COMMIT = MSIRUNMODE.COMMIT; pub const MSITRANSFORM_ERROR = enum(i32) { ADDEXISTINGROW = 1, DELMISSINGROW = 2, ADDEXISTINGTABLE = 4, DELMISSINGTABLE = 8, UPDATEMISSINGROW = 16, CHANGECODEPAGE = 32, VIEWTRANSFORM = 256, NONE = 0, }; pub const MSITRANSFORM_ERROR_ADDEXISTINGROW = MSITRANSFORM_ERROR.ADDEXISTINGROW; pub const MSITRANSFORM_ERROR_DELMISSINGROW = MSITRANSFORM_ERROR.DELMISSINGROW; pub const MSITRANSFORM_ERROR_ADDEXISTINGTABLE = MSITRANSFORM_ERROR.ADDEXISTINGTABLE; pub const MSITRANSFORM_ERROR_DELMISSINGTABLE = MSITRANSFORM_ERROR.DELMISSINGTABLE; pub const MSITRANSFORM_ERROR_UPDATEMISSINGROW = MSITRANSFORM_ERROR.UPDATEMISSINGROW; pub const MSITRANSFORM_ERROR_CHANGECODEPAGE = MSITRANSFORM_ERROR.CHANGECODEPAGE; pub const MSITRANSFORM_ERROR_VIEWTRANSFORM = MSITRANSFORM_ERROR.VIEWTRANSFORM; pub const MSITRANSFORM_ERROR_NONE = MSITRANSFORM_ERROR.NONE; pub const MSITRANSFORM_VALIDATE = enum(i32) { LANGUAGE = 1, PRODUCT = 2, PLATFORM = 4, MAJORVERSION = 8, MINORVERSION = 16, UPDATEVERSION = 32, NEWLESSBASEVERSION = 64, NEWLESSEQUALBASEVERSION = 128, NEWEQUALBASEVERSION = 256, NEWGREATEREQUALBASEVERSION = 512, NEWGREATERBASEVERSION = 1024, UPGRADECODE = 2048, }; pub const MSITRANSFORM_VALIDATE_LANGUAGE = MSITRANSFORM_VALIDATE.LANGUAGE; pub const MSITRANSFORM_VALIDATE_PRODUCT = MSITRANSFORM_VALIDATE.PRODUCT; pub const MSITRANSFORM_VALIDATE_PLATFORM = MSITRANSFORM_VALIDATE.PLATFORM; pub const MSITRANSFORM_VALIDATE_MAJORVERSION = MSITRANSFORM_VALIDATE.MAJORVERSION; pub const MSITRANSFORM_VALIDATE_MINORVERSION = MSITRANSFORM_VALIDATE.MINORVERSION; pub const MSITRANSFORM_VALIDATE_UPDATEVERSION = MSITRANSFORM_VALIDATE.UPDATEVERSION; pub const MSITRANSFORM_VALIDATE_NEWLESSBASEVERSION = MSITRANSFORM_VALIDATE.NEWLESSBASEVERSION; pub const MSITRANSFORM_VALIDATE_NEWLESSEQUALBASEVERSION = MSITRANSFORM_VALIDATE.NEWLESSEQUALBASEVERSION; pub const MSITRANSFORM_VALIDATE_NEWEQUALBASEVERSION = MSITRANSFORM_VALIDATE.NEWEQUALBASEVERSION; pub const MSITRANSFORM_VALIDATE_NEWGREATEREQUALBASEVERSION = MSITRANSFORM_VALIDATE.NEWGREATEREQUALBASEVERSION; pub const MSITRANSFORM_VALIDATE_NEWGREATERBASEVERSION = MSITRANSFORM_VALIDATE.NEWGREATERBASEVERSION; pub const MSITRANSFORM_VALIDATE_UPGRADECODE = MSITRANSFORM_VALIDATE.UPGRADECODE; pub const ASSEMBLY_INFO = extern struct { cbAssemblyInfo: u32, dwAssemblyFlags: u32, uliAssemblySizeInKB: ULARGE_INTEGER, pszCurrentAssemblyPathBuf: ?PWSTR, cchBuf: u32, }; pub const FUSION_INSTALL_REFERENCE = extern struct { cbSize: u32, dwFlags: u32, guidScheme: Guid, szIdentifier: ?[*:0]const u16, szNonCannonicalData: ?[*:0]const u16, }; pub const ASM_NAME = enum(i32) { PUBLIC_KEY = 0, PUBLIC_KEY_TOKEN = 1, HASH_VALUE = 2, NAME = 3, MAJOR_VERSION = 4, MINOR_VERSION = 5, BUILD_NUMBER = 6, REVISION_NUMBER = 7, CULTURE = 8, PROCESSOR_ID_ARRAY = 9, OSINFO_ARRAY = 10, HASH_ALGID = 11, ALIAS = 12, CODEBASE_URL = 13, CODEBASE_LASTMOD = 14, NULL_PUBLIC_KEY = 15, NULL_PUBLIC_KEY_TOKEN = 16, CUSTOM = 17, NULL_CUSTOM = 18, MVID = 19, MAX_PARAMS = 20, }; pub const ASM_NAME_PUBLIC_KEY = ASM_NAME.PUBLIC_KEY; pub const ASM_NAME_PUBLIC_KEY_TOKEN = ASM_NAME.PUBLIC_KEY_TOKEN; pub const ASM_NAME_HASH_VALUE = ASM_NAME.HASH_VALUE; pub const ASM_NAME_NAME = ASM_NAME.NAME; pub const ASM_NAME_MAJOR_VERSION = ASM_NAME.MAJOR_VERSION; pub const ASM_NAME_MINOR_VERSION = ASM_NAME.MINOR_VERSION; pub const ASM_NAME_BUILD_NUMBER = ASM_NAME.BUILD_NUMBER; pub const ASM_NAME_REVISION_NUMBER = ASM_NAME.REVISION_NUMBER; pub const ASM_NAME_CULTURE = ASM_NAME.CULTURE; pub const ASM_NAME_PROCESSOR_ID_ARRAY = ASM_NAME.PROCESSOR_ID_ARRAY; pub const ASM_NAME_OSINFO_ARRAY = ASM_NAME.OSINFO_ARRAY; pub const ASM_NAME_HASH_ALGID = ASM_NAME.HASH_ALGID; pub const ASM_NAME_ALIAS = ASM_NAME.ALIAS; pub const ASM_NAME_CODEBASE_URL = ASM_NAME.CODEBASE_URL; pub const ASM_NAME_CODEBASE_LASTMOD = ASM_NAME.CODEBASE_LASTMOD; pub const ASM_NAME_NULL_PUBLIC_KEY = ASM_NAME.NULL_PUBLIC_KEY; pub const ASM_NAME_NULL_PUBLIC_KEY_TOKEN = ASM_NAME.NULL_PUBLIC_KEY_TOKEN; pub const ASM_NAME_CUSTOM = ASM_NAME.CUSTOM; pub const ASM_NAME_NULL_CUSTOM = ASM_NAME.NULL_CUSTOM; pub const ASM_NAME_MVID = ASM_NAME.MVID; pub const ASM_NAME_MAX_PARAMS = ASM_NAME.MAX_PARAMS; pub const ASM_BIND_FLAGS = enum(u32) { FORCE_CACHE_INSTALL = 1, RFS_INTEGRITY_CHECK = 2, RFS_MODULE_CHECK = 4, BINPATH_PROBE_ONLY = 8, SHARED_BINPATH_HINT = 16, PARENT_ASM_HINT = 32, _, pub fn initFlags(o: struct { FORCE_CACHE_INSTALL: u1 = 0, RFS_INTEGRITY_CHECK: u1 = 0, RFS_MODULE_CHECK: u1 = 0, BINPATH_PROBE_ONLY: u1 = 0, SHARED_BINPATH_HINT: u1 = 0, PARENT_ASM_HINT: u1 = 0, }) ASM_BIND_FLAGS { return @as(ASM_BIND_FLAGS, @enumFromInt((if (o.FORCE_CACHE_INSTALL == 1) @intFromEnum(ASM_BIND_FLAGS.FORCE_CACHE_INSTALL) else 0) | (if (o.RFS_INTEGRITY_CHECK == 1) @intFromEnum(ASM_BIND_FLAGS.RFS_INTEGRITY_CHECK) else 0) | (if (o.RFS_MODULE_CHECK == 1) @intFromEnum(ASM_BIND_FLAGS.RFS_MODULE_CHECK) else 0) | (if (o.BINPATH_PROBE_ONLY == 1) @intFromEnum(ASM_BIND_FLAGS.BINPATH_PROBE_ONLY) else 0) | (if (o.SHARED_BINPATH_HINT == 1) @intFromEnum(ASM_BIND_FLAGS.SHARED_BINPATH_HINT) else 0) | (if (o.PARENT_ASM_HINT == 1) @intFromEnum(ASM_BIND_FLAGS.PARENT_ASM_HINT) else 0))); } }; pub const ASM_BINDF_FORCE_CACHE_INSTALL = ASM_BIND_FLAGS.FORCE_CACHE_INSTALL; pub const ASM_BINDF_RFS_INTEGRITY_CHECK = ASM_BIND_FLAGS.RFS_INTEGRITY_CHECK; pub const ASM_BINDF_RFS_MODULE_CHECK = ASM_BIND_FLAGS.RFS_MODULE_CHECK; pub const ASM_BINDF_BINPATH_PROBE_ONLY = ASM_BIND_FLAGS.BINPATH_PROBE_ONLY; pub const ASM_BINDF_SHARED_BINPATH_HINT = ASM_BIND_FLAGS.SHARED_BINPATH_HINT; pub const ASM_BINDF_PARENT_ASM_HINT = ASM_BIND_FLAGS.PARENT_ASM_HINT; pub const ASM_DISPLAY_FLAGS = enum(i32) { VERSION = 1, CULTURE = 2, PUBLIC_KEY_TOKEN = 4, PUBLIC_KEY = 8, CUSTOM = 16, PROCESSORARCHITECTURE = 32, LANGUAGEID = 64, }; pub const ASM_DISPLAYF_VERSION = ASM_DISPLAY_FLAGS.VERSION; pub const ASM_DISPLAYF_CULTURE = ASM_DISPLAY_FLAGS.CULTURE; pub const ASM_DISPLAYF_PUBLIC_KEY_TOKEN = ASM_DISPLAY_FLAGS.PUBLIC_KEY_TOKEN; pub const ASM_DISPLAYF_PUBLIC_KEY = ASM_DISPLAY_FLAGS.PUBLIC_KEY; pub const ASM_DISPLAYF_CUSTOM = ASM_DISPLAY_FLAGS.CUSTOM; pub const ASM_DISPLAYF_PROCESSORARCHITECTURE = ASM_DISPLAY_FLAGS.PROCESSORARCHITECTURE; pub const ASM_DISPLAYF_LANGUAGEID = ASM_DISPLAY_FLAGS.LANGUAGEID; pub const ASM_CMP_FLAGS = enum(i32) { NAME = 1, MAJOR_VERSION = 2, MINOR_VERSION = 4, BUILD_NUMBER = 8, REVISION_NUMBER = 16, PUBLIC_KEY_TOKEN = 32, CULTURE = 64, CUSTOM = 128, ALL = 255, DEFAULT = 256, }; pub const ASM_CMPF_NAME = ASM_CMP_FLAGS.NAME; pub const ASM_CMPF_MAJOR_VERSION = ASM_CMP_FLAGS.MAJOR_VERSION; pub const ASM_CMPF_MINOR_VERSION = ASM_CMP_FLAGS.MINOR_VERSION; pub const ASM_CMPF_BUILD_NUMBER = ASM_CMP_FLAGS.BUILD_NUMBER; pub const ASM_CMPF_REVISION_NUMBER = ASM_CMP_FLAGS.REVISION_NUMBER; pub const ASM_CMPF_PUBLIC_KEY_TOKEN = ASM_CMP_FLAGS.PUBLIC_KEY_TOKEN; pub const ASM_CMPF_CULTURE = ASM_CMP_FLAGS.CULTURE; pub const ASM_CMPF_CUSTOM = ASM_CMP_FLAGS.CUSTOM; pub const ASM_CMPF_ALL = ASM_CMP_FLAGS.ALL; pub const ASM_CMPF_DEFAULT = ASM_CMP_FLAGS.DEFAULT; // TODO: this type is limited to platform 'windows6.0.6000' const IID_IAssemblyName_Value = Guid.initString("cd193bc0-b4bc-11d2-9833-00c04fc31d2e"); pub const IID_IAssemblyName = &IID_IAssemblyName_Value; pub const IAssemblyName = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, SetProperty: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IAssemblyName, PropertyId: u32, pvProperty: ?*anyopaque, cbProperty: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IAssemblyName, PropertyId: u32, pvProperty: ?*anyopaque, cbProperty: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetProperty: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IAssemblyName, PropertyId: u32, pvProperty: ?*anyopaque, pcbProperty: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IAssemblyName, PropertyId: u32, pvProperty: ?*anyopaque, pcbProperty: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Finalize: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IAssemblyName, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IAssemblyName, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetDisplayName: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IAssemblyName, szDisplayName: ?[*:0]u16, pccDisplayName: ?*u32, dwDisplayFlags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IAssemblyName, szDisplayName: ?[*:0]u16, pccDisplayName: ?*u32, dwDisplayFlags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Reserved: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IAssemblyName, refIID: ?*const Guid, pUnkReserved1: ?*IUnknown, pUnkReserved2: ?*IUnknown, szReserved: ?[*:0]const u16, llReserved: i64, pvReserved: ?*anyopaque, cbReserved: u32, ppReserved: ?*?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IAssemblyName, refIID: ?*const Guid, pUnkReserved1: ?*IUnknown, pUnkReserved2: ?*IUnknown, szReserved: ?[*:0]const u16, llReserved: i64, pvReserved: ?*anyopaque, cbReserved: u32, ppReserved: ?*?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetName: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IAssemblyName, lpcwBuffer: ?*u32, pwzName: ?[*:0]u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IAssemblyName, lpcwBuffer: ?*u32, pwzName: ?[*:0]u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetVersion: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IAssemblyName, pdwVersionHi: ?*u32, pdwVersionLow: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IAssemblyName, pdwVersionHi: ?*u32, pdwVersionLow: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, IsEqual: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IAssemblyName, pName: ?*IAssemblyName, dwCmpFlags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IAssemblyName, pName: ?*IAssemblyName, dwCmpFlags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Clone: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IAssemblyName, pName: ?*?*IAssemblyName, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IAssemblyName, pName: ?*?*IAssemblyName, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IAssemblyName_SetProperty(self: *const T, PropertyId: u32, pvProperty: ?*anyopaque, cbProperty: u32) HRESULT { return @as(*const IAssemblyName.VTable, @ptrCast(self.vtable)).SetProperty(@as(*const IAssemblyName, @ptrCast(self)), PropertyId, pvProperty, cbProperty); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IAssemblyName_GetProperty(self: *const T, PropertyId: u32, pvProperty: ?*anyopaque, pcbProperty: ?*u32) HRESULT { return @as(*const IAssemblyName.VTable, @ptrCast(self.vtable)).GetProperty(@as(*const IAssemblyName, @ptrCast(self)), PropertyId, pvProperty, pcbProperty); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IAssemblyName_Finalize(self: *const T) HRESULT { return @as(*const IAssemblyName.VTable, @ptrCast(self.vtable)).Finalize(@as(*const IAssemblyName, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IAssemblyName_GetDisplayName(self: *const T, szDisplayName: ?[*:0]u16, pccDisplayName: ?*u32, dwDisplayFlags: u32) HRESULT { return @as(*const IAssemblyName.VTable, @ptrCast(self.vtable)).GetDisplayName(@as(*const IAssemblyName, @ptrCast(self)), szDisplayName, pccDisplayName, dwDisplayFlags); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IAssemblyName_Reserved(self: *const T, refIID: ?*const Guid, pUnkReserved1: ?*IUnknown, pUnkReserved2: ?*IUnknown, szReserved: ?[*:0]const u16, llReserved: i64, pvReserved: ?*anyopaque, cbReserved: u32, ppReserved: ?*?*anyopaque) HRESULT { return @as(*const IAssemblyName.VTable, @ptrCast(self.vtable)).Reserved(@as(*const IAssemblyName, @ptrCast(self)), refIID, pUnkReserved1, pUnkReserved2, szReserved, llReserved, pvReserved, cbReserved, ppReserved); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IAssemblyName_GetName(self: *const T, lpcwBuffer: ?*u32, pwzName: ?[*:0]u16) HRESULT { return @as(*const IAssemblyName.VTable, @ptrCast(self.vtable)).GetName(@as(*const IAssemblyName, @ptrCast(self)), lpcwBuffer, pwzName); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IAssemblyName_GetVersion(self: *const T, pdwVersionHi: ?*u32, pdwVersionLow: ?*u32) HRESULT { return @as(*const IAssemblyName.VTable, @ptrCast(self.vtable)).GetVersion(@as(*const IAssemblyName, @ptrCast(self)), pdwVersionHi, pdwVersionLow); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IAssemblyName_IsEqual(self: *const T, pName: ?*IAssemblyName, dwCmpFlags: u32) HRESULT { return @as(*const IAssemblyName.VTable, @ptrCast(self.vtable)).IsEqual(@as(*const IAssemblyName, @ptrCast(self)), pName, dwCmpFlags); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IAssemblyName_Clone(self: *const T, pName: ?*?*IAssemblyName) HRESULT { return @as(*const IAssemblyName.VTable, @ptrCast(self.vtable)).Clone(@as(*const IAssemblyName, @ptrCast(self)), pName); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows6.0.6000' const IID_IAssemblyCacheItem_Value = Guid.initString("9e3aaeb4-d1cd-11d2-bab9-00c04f8eceae"); pub const IID_IAssemblyCacheItem = &IID_IAssemblyCacheItem_Value; pub const IAssemblyCacheItem = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, CreateStream: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IAssemblyCacheItem, dwFlags: u32, pszStreamName: ?[*:0]const u16, dwFormat: u32, dwFormatFlags: u32, ppIStream: ?*?*IStream, puliMaxSize: ?*ULARGE_INTEGER, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IAssemblyCacheItem, dwFlags: u32, pszStreamName: ?[*:0]const u16, dwFormat: u32, dwFormatFlags: u32, ppIStream: ?*?*IStream, puliMaxSize: ?*ULARGE_INTEGER, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Commit: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IAssemblyCacheItem, dwFlags: u32, pulDisposition: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IAssemblyCacheItem, dwFlags: u32, pulDisposition: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, AbortItem: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IAssemblyCacheItem, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IAssemblyCacheItem, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IAssemblyCacheItem_CreateStream(self: *const T, dwFlags: u32, pszStreamName: ?[*:0]const u16, dwFormat: u32, dwFormatFlags: u32, ppIStream: ?*?*IStream, puliMaxSize: ?*ULARGE_INTEGER) HRESULT { return @as(*const IAssemblyCacheItem.VTable, @ptrCast(self.vtable)).CreateStream(@as(*const IAssemblyCacheItem, @ptrCast(self)), dwFlags, pszStreamName, dwFormat, dwFormatFlags, ppIStream, puliMaxSize); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IAssemblyCacheItem_Commit(self: *const T, dwFlags: u32, pulDisposition: ?*u32) HRESULT { return @as(*const IAssemblyCacheItem.VTable, @ptrCast(self.vtable)).Commit(@as(*const IAssemblyCacheItem, @ptrCast(self)), dwFlags, pulDisposition); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IAssemblyCacheItem_AbortItem(self: *const T) HRESULT { return @as(*const IAssemblyCacheItem.VTable, @ptrCast(self.vtable)).AbortItem(@as(*const IAssemblyCacheItem, @ptrCast(self))); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows6.0.6000' const IID_IAssemblyCache_Value = Guid.initString("e707dcde-d1cd-11d2-bab9-00c04f8eceae"); pub const IID_IAssemblyCache = &IID_IAssemblyCache_Value; pub const IAssemblyCache = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, UninstallAssembly: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IAssemblyCache, dwFlags: u32, pszAssemblyName: ?[*:0]const u16, pRefData: ?*FUSION_INSTALL_REFERENCE, pulDisposition: ?*IASSEMBLYCACHE_UNINSTALL_DISPOSITION, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IAssemblyCache, dwFlags: u32, pszAssemblyName: ?[*:0]const u16, pRefData: ?*FUSION_INSTALL_REFERENCE, pulDisposition: ?*IASSEMBLYCACHE_UNINSTALL_DISPOSITION, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, QueryAssemblyInfo: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IAssemblyCache, dwFlags: QUERYASMINFO_FLAGS, pszAssemblyName: ?[*:0]const u16, pAsmInfo: ?*ASSEMBLY_INFO, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IAssemblyCache, dwFlags: QUERYASMINFO_FLAGS, pszAssemblyName: ?[*:0]const u16, pAsmInfo: ?*ASSEMBLY_INFO, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, CreateAssemblyCacheItem: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IAssemblyCache, dwFlags: u32, pvReserved: ?*anyopaque, ppAsmItem: ?*?*IAssemblyCacheItem, pszAssemblyName: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IAssemblyCache, dwFlags: u32, pvReserved: ?*anyopaque, ppAsmItem: ?*?*IAssemblyCacheItem, pszAssemblyName: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Reserved: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IAssemblyCache, ppUnk: ?*?*IUnknown, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IAssemblyCache, ppUnk: ?*?*IUnknown, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, InstallAssembly: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IAssemblyCache, dwFlags: u32, pszManifestFilePath: ?[*:0]const u16, pRefData: ?*FUSION_INSTALL_REFERENCE, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IAssemblyCache, dwFlags: u32, pszManifestFilePath: ?[*:0]const u16, pRefData: ?*FUSION_INSTALL_REFERENCE, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IAssemblyCache_UninstallAssembly(self: *const T, dwFlags: u32, pszAssemblyName: ?[*:0]const u16, pRefData: ?*FUSION_INSTALL_REFERENCE, pulDisposition: ?*IASSEMBLYCACHE_UNINSTALL_DISPOSITION) HRESULT { return @as(*const IAssemblyCache.VTable, @ptrCast(self.vtable)).UninstallAssembly(@as(*const IAssemblyCache, @ptrCast(self)), dwFlags, pszAssemblyName, pRefData, pulDisposition); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IAssemblyCache_QueryAssemblyInfo(self: *const T, dwFlags: QUERYASMINFO_FLAGS, pszAssemblyName: ?[*:0]const u16, pAsmInfo: ?*ASSEMBLY_INFO) HRESULT { return @as(*const IAssemblyCache.VTable, @ptrCast(self.vtable)).QueryAssemblyInfo(@as(*const IAssemblyCache, @ptrCast(self)), dwFlags, pszAssemblyName, pAsmInfo); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IAssemblyCache_CreateAssemblyCacheItem(self: *const T, dwFlags: u32, pvReserved: ?*anyopaque, ppAsmItem: ?*?*IAssemblyCacheItem, pszAssemblyName: ?[*:0]const u16) HRESULT { return @as(*const IAssemblyCache.VTable, @ptrCast(self.vtable)).CreateAssemblyCacheItem(@as(*const IAssemblyCache, @ptrCast(self)), dwFlags, pvReserved, ppAsmItem, pszAssemblyName); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IAssemblyCache_Reserved(self: *const T, ppUnk: ?*?*IUnknown) HRESULT { return @as(*const IAssemblyCache.VTable, @ptrCast(self.vtable)).Reserved(@as(*const IAssemblyCache, @ptrCast(self)), ppUnk); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IAssemblyCache_InstallAssembly(self: *const T, dwFlags: u32, pszManifestFilePath: ?[*:0]const u16, pRefData: ?*FUSION_INSTALL_REFERENCE) HRESULT { return @as(*const IAssemblyCache.VTable, @ptrCast(self.vtable)).InstallAssembly(@as(*const IAssemblyCache, @ptrCast(self)), dwFlags, pszManifestFilePath, pRefData); } }; } pub usingnamespace MethodMixin(@This()); }; pub const CREATE_ASM_NAME_OBJ_FLAGS = enum(i32) { PARSE_DISPLAY_NAME = 1, SET_DEFAULT_VALUES = 2, }; pub const CANOF_PARSE_DISPLAY_NAME = CREATE_ASM_NAME_OBJ_FLAGS.PARSE_DISPLAY_NAME; pub const CANOF_SET_DEFAULT_VALUES = CREATE_ASM_NAME_OBJ_FLAGS.SET_DEFAULT_VALUES; pub const PROTECTED_FILE_DATA = extern struct { FileName: [260]u16, FileNumber: u32, }; pub const msidbControlAttributes = enum(i32) { AttributesVisible = 1, AttributesEnabled = 2, AttributesSunken = 4, AttributesIndirect = 8, AttributesInteger = 16, AttributesRTLRO = 32, AttributesRightAligned = 64, AttributesLeftScroll = 128, AttributesBiDi = 224, AttributesTransparent = 65536, AttributesNoPrefix = 131072, AttributesNoWrap = 262144, AttributesFormatSize = 524288, AttributesUsersLanguage = 1048576, // AttributesMultiline = 65536, this enum value conflicts with AttributesTransparent AttributesPasswordInput = 2097152, // AttributesProgress95 = 65536, this enum value conflicts with AttributesTransparent // AttributesRemovableVolume = 65536, this enum value conflicts with AttributesTransparent // AttributesFixedVolume = 131072, this enum value conflicts with AttributesNoPrefix // AttributesRemoteVolume = 262144, this enum value conflicts with AttributesNoWrap // AttributesCDROMVolume = 524288, this enum value conflicts with AttributesFormatSize // AttributesRAMDiskVolume = 1048576, this enum value conflicts with AttributesUsersLanguage // AttributesFloppyVolume = 2097152, this enum value conflicts with AttributesPasswordInput ShowRollbackCost = 4194304, // AttributesSorted = 65536, this enum value conflicts with AttributesTransparent // AttributesComboList = 131072, this enum value conflicts with AttributesNoPrefix // AttributesImageHandle = 65536, this enum value conflicts with AttributesTransparent // AttributesPushLike = 131072, this enum value conflicts with AttributesNoPrefix // AttributesBitmap = 262144, this enum value conflicts with AttributesNoWrap // AttributesIcon = 524288, this enum value conflicts with AttributesFormatSize // AttributesFixedSize = 1048576, this enum value conflicts with AttributesUsersLanguage // AttributesIconSize16 = 2097152, this enum value conflicts with AttributesPasswordInput // AttributesIconSize32 = 4194304, this enum value conflicts with ShowRollbackCost AttributesIconSize48 = 6291456, AttributesElevationShield = 8388608, AttributesHasBorder = 16777216, }; pub const msidbControlAttributesVisible = msidbControlAttributes.AttributesVisible; pub const msidbControlAttributesEnabled = msidbControlAttributes.AttributesEnabled; pub const msidbControlAttributesSunken = msidbControlAttributes.AttributesSunken; pub const msidbControlAttributesIndirect = msidbControlAttributes.AttributesIndirect; pub const msidbControlAttributesInteger = msidbControlAttributes.AttributesInteger; pub const msidbControlAttributesRTLRO = msidbControlAttributes.AttributesRTLRO; pub const msidbControlAttributesRightAligned = msidbControlAttributes.AttributesRightAligned; pub const msidbControlAttributesLeftScroll = msidbControlAttributes.AttributesLeftScroll; pub const msidbControlAttributesBiDi = msidbControlAttributes.AttributesBiDi; pub const msidbControlAttributesTransparent = msidbControlAttributes.AttributesTransparent; pub const msidbControlAttributesNoPrefix = msidbControlAttributes.AttributesNoPrefix; pub const msidbControlAttributesNoWrap = msidbControlAttributes.AttributesNoWrap; pub const msidbControlAttributesFormatSize = msidbControlAttributes.AttributesFormatSize; pub const msidbControlAttributesUsersLanguage = msidbControlAttributes.AttributesUsersLanguage; pub const msidbControlAttributesMultiline = msidbControlAttributes.AttributesTransparent; pub const msidbControlAttributesPasswordInput = msidbControlAttributes.AttributesPasswordInput; pub const msidbControlAttributesProgress95 = msidbControlAttributes.AttributesTransparent; pub const msidbControlAttributesRemovableVolume = msidbControlAttributes.AttributesTransparent; pub const msidbControlAttributesFixedVolume = msidbControlAttributes.AttributesNoPrefix; pub const msidbControlAttributesRemoteVolume = msidbControlAttributes.AttributesNoWrap; pub const msidbControlAttributesCDROMVolume = msidbControlAttributes.AttributesFormatSize; pub const msidbControlAttributesRAMDiskVolume = msidbControlAttributes.AttributesUsersLanguage; pub const msidbControlAttributesFloppyVolume = msidbControlAttributes.AttributesPasswordInput; pub const msidbControlShowRollbackCost = msidbControlAttributes.ShowRollbackCost; pub const msidbControlAttributesSorted = msidbControlAttributes.AttributesTransparent; pub const msidbControlAttributesComboList = msidbControlAttributes.AttributesNoPrefix; pub const msidbControlAttributesImageHandle = msidbControlAttributes.AttributesTransparent; pub const msidbControlAttributesPushLike = msidbControlAttributes.AttributesNoPrefix; pub const msidbControlAttributesBitmap = msidbControlAttributes.AttributesNoWrap; pub const msidbControlAttributesIcon = msidbControlAttributes.AttributesFormatSize; pub const msidbControlAttributesFixedSize = msidbControlAttributes.AttributesUsersLanguage; pub const msidbControlAttributesIconSize16 = msidbControlAttributes.AttributesPasswordInput; pub const msidbControlAttributesIconSize32 = msidbControlAttributes.ShowRollbackCost; pub const msidbControlAttributesIconSize48 = msidbControlAttributes.AttributesIconSize48; pub const msidbControlAttributesElevationShield = msidbControlAttributes.AttributesElevationShield; pub const msidbControlAttributesHasBorder = msidbControlAttributes.AttributesHasBorder; pub const msidbLocatorType = enum(i32) { Directory = 0, FileName = 1, RawValue = 2, @"64bit" = 16, }; pub const msidbLocatorTypeDirectory = msidbLocatorType.Directory; pub const msidbLocatorTypeFileName = msidbLocatorType.FileName; pub const msidbLocatorTypeRawValue = msidbLocatorType.RawValue; pub const msidbLocatorType64bit = msidbLocatorType.@"64bit"; pub const msidbComponentAttributes = enum(i32) { LocalOnly = 0, SourceOnly = 1, Optional = 2, RegistryKeyPath = 4, SharedDllRefCount = 8, Permanent = 16, ODBCDataSource = 32, Transitive = 64, NeverOverwrite = 128, @"64bit" = 256, DisableRegistryReflection = 512, UninstallOnSupersedence = 1024, Shared = 2048, }; pub const msidbComponentAttributesLocalOnly = msidbComponentAttributes.LocalOnly; pub const msidbComponentAttributesSourceOnly = msidbComponentAttributes.SourceOnly; pub const msidbComponentAttributesOptional = msidbComponentAttributes.Optional; pub const msidbComponentAttributesRegistryKeyPath = msidbComponentAttributes.RegistryKeyPath; pub const msidbComponentAttributesSharedDllRefCount = msidbComponentAttributes.SharedDllRefCount; pub const msidbComponentAttributesPermanent = msidbComponentAttributes.Permanent; pub const msidbComponentAttributesODBCDataSource = msidbComponentAttributes.ODBCDataSource; pub const msidbComponentAttributesTransitive = msidbComponentAttributes.Transitive; pub const msidbComponentAttributesNeverOverwrite = msidbComponentAttributes.NeverOverwrite; pub const msidbComponentAttributes64bit = msidbComponentAttributes.@"64bit"; pub const msidbComponentAttributesDisableRegistryReflection = msidbComponentAttributes.DisableRegistryReflection; pub const msidbComponentAttributesUninstallOnSupersedence = msidbComponentAttributes.UninstallOnSupersedence; pub const msidbComponentAttributesShared = msidbComponentAttributes.Shared; pub const msidbAssemblyAttributes = enum(i32) { URT = 0, Win32 = 1, }; pub const msidbAssemblyAttributesURT = msidbAssemblyAttributes.URT; pub const msidbAssemblyAttributesWin32 = msidbAssemblyAttributes.Win32; pub const msidbCustomActionType = enum(i32) { Dll = 1, Exe = 2, TextData = 3, JScript = 5, VBScript = 6, Install = 7, BinaryData = 0, SourceFile = 16, Directory = 32, Property = 48, Continue = 64, Async = 128, FirstSequence = 256, OncePerProcess = 512, ClientRepeat = 768, InScript = 1024, // Rollback = 256, this enum value conflicts with FirstSequence // Commit = 512, this enum value conflicts with OncePerProcess NoImpersonate = 2048, TSAware = 16384, @"64BitScript" = 4096, HideTarget = 8192, PatchUninstall = 32768, }; pub const msidbCustomActionTypeDll = msidbCustomActionType.Dll; pub const msidbCustomActionTypeExe = msidbCustomActionType.Exe; pub const msidbCustomActionTypeTextData = msidbCustomActionType.TextData; pub const msidbCustomActionTypeJScript = msidbCustomActionType.JScript; pub const msidbCustomActionTypeVBScript = msidbCustomActionType.VBScript; pub const msidbCustomActionTypeInstall = msidbCustomActionType.Install; pub const msidbCustomActionTypeBinaryData = msidbCustomActionType.BinaryData; pub const msidbCustomActionTypeSourceFile = msidbCustomActionType.SourceFile; pub const msidbCustomActionTypeDirectory = msidbCustomActionType.Directory; pub const msidbCustomActionTypeProperty = msidbCustomActionType.Property; pub const msidbCustomActionTypeContinue = msidbCustomActionType.Continue; pub const msidbCustomActionTypeAsync = msidbCustomActionType.Async; pub const msidbCustomActionTypeFirstSequence = msidbCustomActionType.FirstSequence; pub const msidbCustomActionTypeOncePerProcess = msidbCustomActionType.OncePerProcess; pub const msidbCustomActionTypeClientRepeat = msidbCustomActionType.ClientRepeat; pub const msidbCustomActionTypeInScript = msidbCustomActionType.InScript; pub const msidbCustomActionTypeRollback = msidbCustomActionType.FirstSequence; pub const msidbCustomActionTypeCommit = msidbCustomActionType.OncePerProcess; pub const msidbCustomActionTypeNoImpersonate = msidbCustomActionType.NoImpersonate; pub const msidbCustomActionTypeTSAware = msidbCustomActionType.TSAware; pub const msidbCustomActionType64BitScript = msidbCustomActionType.@"64BitScript"; pub const msidbCustomActionTypeHideTarget = msidbCustomActionType.HideTarget; pub const msidbCustomActionTypePatchUninstall = msidbCustomActionType.PatchUninstall; pub const msidbDialogAttributes = enum(i32) { Visible = 1, Modal = 2, Minimize = 4, SysModal = 8, KeepModeless = 16, TrackDiskSpace = 32, UseCustomPalette = 64, RTLRO = 128, RightAligned = 256, LeftScroll = 512, BiDi = 896, Error = 65536, }; pub const msidbDialogAttributesVisible = msidbDialogAttributes.Visible; pub const msidbDialogAttributesModal = msidbDialogAttributes.Modal; pub const msidbDialogAttributesMinimize = msidbDialogAttributes.Minimize; pub const msidbDialogAttributesSysModal = msidbDialogAttributes.SysModal; pub const msidbDialogAttributesKeepModeless = msidbDialogAttributes.KeepModeless; pub const msidbDialogAttributesTrackDiskSpace = msidbDialogAttributes.TrackDiskSpace; pub const msidbDialogAttributesUseCustomPalette = msidbDialogAttributes.UseCustomPalette; pub const msidbDialogAttributesRTLRO = msidbDialogAttributes.RTLRO; pub const msidbDialogAttributesRightAligned = msidbDialogAttributes.RightAligned; pub const msidbDialogAttributesLeftScroll = msidbDialogAttributes.LeftScroll; pub const msidbDialogAttributesBiDi = msidbDialogAttributes.BiDi; pub const msidbDialogAttributesError = msidbDialogAttributes.Error; pub const msidbFeatureAttributes = enum(i32) { FavorLocal = 0, FavorSource = 1, FollowParent = 2, FavorAdvertise = 4, DisallowAdvertise = 8, UIDisallowAbsent = 16, NoUnsupportedAdvertise = 32, }; pub const msidbFeatureAttributesFavorLocal = msidbFeatureAttributes.FavorLocal; pub const msidbFeatureAttributesFavorSource = msidbFeatureAttributes.FavorSource; pub const msidbFeatureAttributesFollowParent = msidbFeatureAttributes.FollowParent; pub const msidbFeatureAttributesFavorAdvertise = msidbFeatureAttributes.FavorAdvertise; pub const msidbFeatureAttributesDisallowAdvertise = msidbFeatureAttributes.DisallowAdvertise; pub const msidbFeatureAttributesUIDisallowAbsent = msidbFeatureAttributes.UIDisallowAbsent; pub const msidbFeatureAttributesNoUnsupportedAdvertise = msidbFeatureAttributes.NoUnsupportedAdvertise; pub const msidbFileAttributes = enum(i32) { ReadOnly = 1, Hidden = 2, System = 4, Reserved0 = 8, IsolatedComp = 16, Reserved1 = 64, Reserved2 = 128, Reserved3 = 256, Vital = 512, Checksum = 1024, PatchAdded = 4096, Noncompressed = 8192, Compressed = 16384, Reserved4 = 32768, }; pub const msidbFileAttributesReadOnly = msidbFileAttributes.ReadOnly; pub const msidbFileAttributesHidden = msidbFileAttributes.Hidden; pub const msidbFileAttributesSystem = msidbFileAttributes.System; pub const msidbFileAttributesReserved0 = msidbFileAttributes.Reserved0; pub const msidbFileAttributesIsolatedComp = msidbFileAttributes.IsolatedComp; pub const msidbFileAttributesReserved1 = msidbFileAttributes.Reserved1; pub const msidbFileAttributesReserved2 = msidbFileAttributes.Reserved2; pub const msidbFileAttributesReserved3 = msidbFileAttributes.Reserved3; pub const msidbFileAttributesVital = msidbFileAttributes.Vital; pub const msidbFileAttributesChecksum = msidbFileAttributes.Checksum; pub const msidbFileAttributesPatchAdded = msidbFileAttributes.PatchAdded; pub const msidbFileAttributesNoncompressed = msidbFileAttributes.Noncompressed; pub const msidbFileAttributesCompressed = msidbFileAttributes.Compressed; pub const msidbFileAttributesReserved4 = msidbFileAttributes.Reserved4; pub const msidbIniFileAction = enum(i32) { AddLine = 0, CreateLine = 1, RemoveLine = 2, AddTag = 3, RemoveTag = 4, }; pub const msidbIniFileActionAddLine = msidbIniFileAction.AddLine; pub const msidbIniFileActionCreateLine = msidbIniFileAction.CreateLine; pub const msidbIniFileActionRemoveLine = msidbIniFileAction.RemoveLine; pub const msidbIniFileActionAddTag = msidbIniFileAction.AddTag; pub const msidbIniFileActionRemoveTag = msidbIniFileAction.RemoveTag; pub const msidbMoveFileOptions = enum(i32) { e = 1, }; pub const msidbMoveFileOptionsMove = msidbMoveFileOptions.e; pub const msidbODBCDataSourceRegistration = enum(i32) { Machine = 0, User = 1, }; pub const msidbODBCDataSourceRegistrationPerMachine = msidbODBCDataSourceRegistration.Machine; pub const msidbODBCDataSourceRegistrationPerUser = msidbODBCDataSourceRegistration.User; pub const msidbClassAttributes = enum(i32) { h = 1, }; pub const msidbClassAttributesRelativePath = msidbClassAttributes.h; pub const msidbPatchAttributes = enum(i32) { l = 1, }; pub const msidbPatchAttributesNonVital = msidbPatchAttributes.l; pub const msidbRegistryRoot = enum(i32) { ClassesRoot = 0, CurrentUser = 1, LocalMachine = 2, Users = 3, }; pub const msidbRegistryRootClassesRoot = msidbRegistryRoot.ClassesRoot; pub const msidbRegistryRootCurrentUser = msidbRegistryRoot.CurrentUser; pub const msidbRegistryRootLocalMachine = msidbRegistryRoot.LocalMachine; pub const msidbRegistryRootUsers = msidbRegistryRoot.Users; pub const msidbRemoveFileInstallMode = enum(i32) { Install = 1, Remove = 2, Both = 3, }; pub const msidbRemoveFileInstallModeOnInstall = msidbRemoveFileInstallMode.Install; pub const msidbRemoveFileInstallModeOnRemove = msidbRemoveFileInstallMode.Remove; pub const msidbRemoveFileInstallModeOnBoth = msidbRemoveFileInstallMode.Both; pub const msidbServiceControlEvent = enum(i32) { Start = 1, Stop = 2, Delete = 8, UninstallStart = 16, UninstallStop = 32, UninstallDelete = 128, }; pub const msidbServiceControlEventStart = msidbServiceControlEvent.Start; pub const msidbServiceControlEventStop = msidbServiceControlEvent.Stop; pub const msidbServiceControlEventDelete = msidbServiceControlEvent.Delete; pub const msidbServiceControlEventUninstallStart = msidbServiceControlEvent.UninstallStart; pub const msidbServiceControlEventUninstallStop = msidbServiceControlEvent.UninstallStop; pub const msidbServiceControlEventUninstallDelete = msidbServiceControlEvent.UninstallDelete; pub const msidbServiceConfigEvent = enum(i32) { Install = 1, Uninstall = 2, Reinstall = 4, }; pub const msidbServiceConfigEventInstall = msidbServiceConfigEvent.Install; pub const msidbServiceConfigEventUninstall = msidbServiceConfigEvent.Uninstall; pub const msidbServiceConfigEventReinstall = msidbServiceConfigEvent.Reinstall; pub const msidbServiceInstallErrorControl = enum(i32) { l = 32768, }; pub const msidbServiceInstallErrorControlVital = msidbServiceInstallErrorControl.l; pub const msidbTextStyleStyleBits = enum(i32) { Bold = 1, Italic = 2, Underline = 4, Strike = 8, }; pub const msidbTextStyleStyleBitsBold = msidbTextStyleStyleBits.Bold; pub const msidbTextStyleStyleBitsItalic = msidbTextStyleStyleBits.Italic; pub const msidbTextStyleStyleBitsUnderline = msidbTextStyleStyleBits.Underline; pub const msidbTextStyleStyleBitsStrike = msidbTextStyleStyleBits.Strike; pub const msidbUpgradeAttributes = enum(i32) { MigrateFeatures = 1, OnlyDetect = 2, IgnoreRemoveFailure = 4, VersionMinInclusive = 256, VersionMaxInclusive = 512, LanguagesExclusive = 1024, }; pub const msidbUpgradeAttributesMigrateFeatures = msidbUpgradeAttributes.MigrateFeatures; pub const msidbUpgradeAttributesOnlyDetect = msidbUpgradeAttributes.OnlyDetect; pub const msidbUpgradeAttributesIgnoreRemoveFailure = msidbUpgradeAttributes.IgnoreRemoveFailure; pub const msidbUpgradeAttributesVersionMinInclusive = msidbUpgradeAttributes.VersionMinInclusive; pub const msidbUpgradeAttributesVersionMaxInclusive = msidbUpgradeAttributes.VersionMaxInclusive; pub const msidbUpgradeAttributesLanguagesExclusive = msidbUpgradeAttributes.LanguagesExclusive; pub const msidbEmbeddedUIAttributes = enum(i32) { UI = 1, HandlesBasic = 2, }; pub const msidbEmbeddedUI = msidbEmbeddedUIAttributes.UI; pub const msidbEmbeddedHandlesBasic = msidbEmbeddedUIAttributes.HandlesBasic; pub const msidbSumInfoSourceType = enum(i32) { SFN = 1, Compressed = 2, AdminImage = 4, LUAPackage = 8, }; pub const msidbSumInfoSourceTypeSFN = msidbSumInfoSourceType.SFN; pub const msidbSumInfoSourceTypeCompressed = msidbSumInfoSourceType.Compressed; pub const msidbSumInfoSourceTypeAdminImage = msidbSumInfoSourceType.AdminImage; pub const msidbSumInfoSourceTypeLUAPackage = msidbSumInfoSourceType.LUAPackage; pub const msirbRebootType = enum(i32) { Immediate = 1, Deferred = 2, }; pub const msirbRebootImmediate = msirbRebootType.Immediate; pub const msirbRebootDeferred = msirbRebootType.Deferred; pub const msirbRebootReason = enum(i32) { UndeterminedReason = 0, InUseFilesReason = 1, ScheduleRebootReason = 2, ForceRebootReason = 3, CustomActionReason = 4, }; pub const msirbRebootUndeterminedReason = msirbRebootReason.UndeterminedReason; pub const msirbRebootInUseFilesReason = msirbRebootReason.InUseFilesReason; pub const msirbRebootScheduleRebootReason = msirbRebootReason.ScheduleRebootReason; pub const msirbRebootForceRebootReason = msirbRebootReason.ForceRebootReason; pub const msirbRebootCustomActionReason = msirbRebootReason.CustomActionReason; pub const msifiFastInstallBits = enum(i32) { NoSR = 1, QuickCosting = 2, LessPrgMsg = 4, }; pub const msifiFastInstallNoSR = msifiFastInstallBits.NoSR; pub const msifiFastInstallQuickCosting = msifiFastInstallBits.QuickCosting; pub const msifiFastInstallLessPrgMsg = msifiFastInstallBits.LessPrgMsg; const CLSID_PMSvc_Value = Guid.initString("b9e511fc-e364-497a-a121-b7b3612cedce"); pub const CLSID_PMSvc = &CLSID_PMSvc_Value; pub const TILE_TEMPLATE_TYPE = enum(i32) { INVALID = 0, FLIP = 5, DEEPLINK = 13, CYCLE = 14, METROCOUNT = 1, AGILESTORE = 2, GAMES = 3, CALENDAR = 4, MUSICVIDEO = 7, PEOPLE = 10, CONTACT = 11, GROUP = 12, DEFAULT = 15, BADGE = 16, BLOCK = 17, TEXT01 = 18, TEXT02 = 19, TEXT03 = 20, TEXT04 = 21, TEXT05 = 22, TEXT06 = 23, TEXT07 = 24, TEXT08 = 25, TEXT09 = 26, TEXT10 = 27, TEXT11 = 28, IMAGE = 29, IMAGECOLLECTION = 30, IMAGEANDTEXT01 = 31, IMAGEANDTEXT02 = 32, BLOCKANDTEXT01 = 33, BLOCKANDTEXT02 = 34, PEEKIMAGEANDTEXT01 = 35, PEEKIMAGEANDTEXT02 = 36, PEEKIMAGEANDTEXT03 = 37, PEEKIMAGEANDTEXT04 = 38, PEEKIMAGE01 = 39, PEEKIMAGE02 = 40, PEEKIMAGE03 = 41, PEEKIMAGE04 = 42, PEEKIMAGE05 = 43, PEEKIMAGE06 = 44, PEEKIMAGECOLLECTION01 = 45, PEEKIMAGECOLLECTION02 = 46, PEEKIMAGECOLLECTION03 = 47, PEEKIMAGECOLLECTION04 = 48, PEEKIMAGECOLLECTION05 = 49, PEEKIMAGECOLLECTION06 = 50, SMALLIMAGEANDTEXT01 = 51, SMALLIMAGEANDTEXT02 = 52, SMALLIMAGEANDTEXT03 = 53, SMALLIMAGEANDTEXT04 = 54, SMALLIMAGEANDTEXT05 = 55, METROCOUNTQUEUE = 56, SEARCH = 57, TILEFLYOUT01 = 58, FOLDER = 59, ALL = 100, }; pub const TILE_TEMPLATE_INVALID = TILE_TEMPLATE_TYPE.INVALID; pub const TILE_TEMPLATE_FLIP = TILE_TEMPLATE_TYPE.FLIP; pub const TILE_TEMPLATE_DEEPLINK = TILE_TEMPLATE_TYPE.DEEPLINK; pub const TILE_TEMPLATE_CYCLE = TILE_TEMPLATE_TYPE.CYCLE; pub const TILE_TEMPLATE_METROCOUNT = TILE_TEMPLATE_TYPE.METROCOUNT; pub const TILE_TEMPLATE_AGILESTORE = TILE_TEMPLATE_TYPE.AGILESTORE; pub const TILE_TEMPLATE_GAMES = TILE_TEMPLATE_TYPE.GAMES; pub const TILE_TEMPLATE_CALENDAR = TILE_TEMPLATE_TYPE.CALENDAR; pub const TILE_TEMPLATE_MUSICVIDEO = TILE_TEMPLATE_TYPE.MUSICVIDEO; pub const TILE_TEMPLATE_PEOPLE = TILE_TEMPLATE_TYPE.PEOPLE; pub const TILE_TEMPLATE_CONTACT = TILE_TEMPLATE_TYPE.CONTACT; pub const TILE_TEMPLATE_GROUP = TILE_TEMPLATE_TYPE.GROUP; pub const TILE_TEMPLATE_DEFAULT = TILE_TEMPLATE_TYPE.DEFAULT; pub const TILE_TEMPLATE_BADGE = TILE_TEMPLATE_TYPE.BADGE; pub const TILE_TEMPLATE_BLOCK = TILE_TEMPLATE_TYPE.BLOCK; pub const TILE_TEMPLATE_TEXT01 = TILE_TEMPLATE_TYPE.TEXT01; pub const TILE_TEMPLATE_TEXT02 = TILE_TEMPLATE_TYPE.TEXT02; pub const TILE_TEMPLATE_TEXT03 = TILE_TEMPLATE_TYPE.TEXT03; pub const TILE_TEMPLATE_TEXT04 = TILE_TEMPLATE_TYPE.TEXT04; pub const TILE_TEMPLATE_TEXT05 = TILE_TEMPLATE_TYPE.TEXT05; pub const TILE_TEMPLATE_TEXT06 = TILE_TEMPLATE_TYPE.TEXT06; pub const TILE_TEMPLATE_TEXT07 = TILE_TEMPLATE_TYPE.TEXT07; pub const TILE_TEMPLATE_TEXT08 = TILE_TEMPLATE_TYPE.TEXT08; pub const TILE_TEMPLATE_TEXT09 = TILE_TEMPLATE_TYPE.TEXT09; pub const TILE_TEMPLATE_TEXT10 = TILE_TEMPLATE_TYPE.TEXT10; pub const TILE_TEMPLATE_TEXT11 = TILE_TEMPLATE_TYPE.TEXT11; pub const TILE_TEMPLATE_IMAGE = TILE_TEMPLATE_TYPE.IMAGE; pub const TILE_TEMPLATE_IMAGECOLLECTION = TILE_TEMPLATE_TYPE.IMAGECOLLECTION; pub const TILE_TEMPLATE_IMAGEANDTEXT01 = TILE_TEMPLATE_TYPE.IMAGEANDTEXT01; pub const TILE_TEMPLATE_IMAGEANDTEXT02 = TILE_TEMPLATE_TYPE.IMAGEANDTEXT02; pub const TILE_TEMPLATE_BLOCKANDTEXT01 = TILE_TEMPLATE_TYPE.BLOCKANDTEXT01; pub const TILE_TEMPLATE_BLOCKANDTEXT02 = TILE_TEMPLATE_TYPE.BLOCKANDTEXT02; pub const TILE_TEMPLATE_PEEKIMAGEANDTEXT01 = TILE_TEMPLATE_TYPE.PEEKIMAGEANDTEXT01; pub const TILE_TEMPLATE_PEEKIMAGEANDTEXT02 = TILE_TEMPLATE_TYPE.PEEKIMAGEANDTEXT02; pub const TILE_TEMPLATE_PEEKIMAGEANDTEXT03 = TILE_TEMPLATE_TYPE.PEEKIMAGEANDTEXT03; pub const TILE_TEMPLATE_PEEKIMAGEANDTEXT04 = TILE_TEMPLATE_TYPE.PEEKIMAGEANDTEXT04; pub const TILE_TEMPLATE_PEEKIMAGE01 = TILE_TEMPLATE_TYPE.PEEKIMAGE01; pub const TILE_TEMPLATE_PEEKIMAGE02 = TILE_TEMPLATE_TYPE.PEEKIMAGE02; pub const TILE_TEMPLATE_PEEKIMAGE03 = TILE_TEMPLATE_TYPE.PEEKIMAGE03; pub const TILE_TEMPLATE_PEEKIMAGE04 = TILE_TEMPLATE_TYPE.PEEKIMAGE04; pub const TILE_TEMPLATE_PEEKIMAGE05 = TILE_TEMPLATE_TYPE.PEEKIMAGE05; pub const TILE_TEMPLATE_PEEKIMAGE06 = TILE_TEMPLATE_TYPE.PEEKIMAGE06; pub const TILE_TEMPLATE_PEEKIMAGECOLLECTION01 = TILE_TEMPLATE_TYPE.PEEKIMAGECOLLECTION01; pub const TILE_TEMPLATE_PEEKIMAGECOLLECTION02 = TILE_TEMPLATE_TYPE.PEEKIMAGECOLLECTION02; pub const TILE_TEMPLATE_PEEKIMAGECOLLECTION03 = TILE_TEMPLATE_TYPE.PEEKIMAGECOLLECTION03; pub const TILE_TEMPLATE_PEEKIMAGECOLLECTION04 = TILE_TEMPLATE_TYPE.PEEKIMAGECOLLECTION04; pub const TILE_TEMPLATE_PEEKIMAGECOLLECTION05 = TILE_TEMPLATE_TYPE.PEEKIMAGECOLLECTION05; pub const TILE_TEMPLATE_PEEKIMAGECOLLECTION06 = TILE_TEMPLATE_TYPE.PEEKIMAGECOLLECTION06; pub const TILE_TEMPLATE_SMALLIMAGEANDTEXT01 = TILE_TEMPLATE_TYPE.SMALLIMAGEANDTEXT01; pub const TILE_TEMPLATE_SMALLIMAGEANDTEXT02 = TILE_TEMPLATE_TYPE.SMALLIMAGEANDTEXT02; pub const TILE_TEMPLATE_SMALLIMAGEANDTEXT03 = TILE_TEMPLATE_TYPE.SMALLIMAGEANDTEXT03; pub const TILE_TEMPLATE_SMALLIMAGEANDTEXT04 = TILE_TEMPLATE_TYPE.SMALLIMAGEANDTEXT04; pub const TILE_TEMPLATE_SMALLIMAGEANDTEXT05 = TILE_TEMPLATE_TYPE.SMALLIMAGEANDTEXT05; pub const TILE_TEMPLATE_METROCOUNTQUEUE = TILE_TEMPLATE_TYPE.METROCOUNTQUEUE; pub const TILE_TEMPLATE_SEARCH = TILE_TEMPLATE_TYPE.SEARCH; pub const TILE_TEMPLATE_TILEFLYOUT01 = TILE_TEMPLATE_TYPE.TILEFLYOUT01; pub const TILE_TEMPLATE_FOLDER = TILE_TEMPLATE_TYPE.FOLDER; pub const TILE_TEMPLATE_ALL = TILE_TEMPLATE_TYPE.ALL; pub const PM_APP_GENRE = enum(i32) { GAMES = 0, OTHER = 1, INVALID = 2, }; pub const PM_APP_GENRE_GAMES = PM_APP_GENRE.GAMES; pub const PM_APP_GENRE_OTHER = PM_APP_GENRE.OTHER; pub const PM_APP_GENRE_INVALID = PM_APP_GENRE.INVALID; pub const PM_APPLICATION_INSTALL_TYPE = enum(i32) { NORMAL = 0, IN_ROM = 1, PA = 2, DEBUG = 3, ENTERPRISE = 4, INVALID = 5, }; pub const PM_APPLICATION_INSTALL_NORMAL = PM_APPLICATION_INSTALL_TYPE.NORMAL; pub const PM_APPLICATION_INSTALL_IN_ROM = PM_APPLICATION_INSTALL_TYPE.IN_ROM; pub const PM_APPLICATION_INSTALL_PA = PM_APPLICATION_INSTALL_TYPE.PA; pub const PM_APPLICATION_INSTALL_DEBUG = PM_APPLICATION_INSTALL_TYPE.DEBUG; pub const PM_APPLICATION_INSTALL_ENTERPRISE = PM_APPLICATION_INSTALL_TYPE.ENTERPRISE; pub const PM_APPLICATION_INSTALL_INVALID = PM_APPLICATION_INSTALL_TYPE.INVALID; pub const PM_APPLICATION_STATE = enum(i32) { MIN = 0, INSTALLED = 1, INSTALLING = 2, UPDATING = 3, UNINSTALLING = 4, LICENSE_UPDATING = 5, MOVING = 6, DISABLED_SD_CARD = 7, DISABLED_ENTERPRISE = 8, DISABLED_BACKING_UP = 9, DISABLED_MDIL_BINDING = 10, // MAX = 10, this enum value conflicts with DISABLED_MDIL_BINDING INVALID = 11, }; pub const PM_APPLICATION_STATE_MIN = PM_APPLICATION_STATE.MIN; pub const PM_APPLICATION_STATE_INSTALLED = PM_APPLICATION_STATE.INSTALLED; pub const PM_APPLICATION_STATE_INSTALLING = PM_APPLICATION_STATE.INSTALLING; pub const PM_APPLICATION_STATE_UPDATING = PM_APPLICATION_STATE.UPDATING; pub const PM_APPLICATION_STATE_UNINSTALLING = PM_APPLICATION_STATE.UNINSTALLING; pub const PM_APPLICATION_STATE_LICENSE_UPDATING = PM_APPLICATION_STATE.LICENSE_UPDATING; pub const PM_APPLICATION_STATE_MOVING = PM_APPLICATION_STATE.MOVING; pub const PM_APPLICATION_STATE_DISABLED_SD_CARD = PM_APPLICATION_STATE.DISABLED_SD_CARD; pub const PM_APPLICATION_STATE_DISABLED_ENTERPRISE = PM_APPLICATION_STATE.DISABLED_ENTERPRISE; pub const PM_APPLICATION_STATE_DISABLED_BACKING_UP = PM_APPLICATION_STATE.DISABLED_BACKING_UP; pub const PM_APPLICATION_STATE_DISABLED_MDIL_BINDING = PM_APPLICATION_STATE.DISABLED_MDIL_BINDING; pub const PM_APPLICATION_STATE_MAX = PM_APPLICATION_STATE.DISABLED_MDIL_BINDING; pub const PM_APPLICATION_STATE_INVALID = PM_APPLICATION_STATE.INVALID; pub const PM_APPLICATION_HUBTYPE = enum(i32) { NONMUSIC = 0, MUSIC = 1, INVALID = 2, }; pub const PM_APPLICATION_HUBTYPE_NONMUSIC = PM_APPLICATION_HUBTYPE.NONMUSIC; pub const PM_APPLICATION_HUBTYPE_MUSIC = PM_APPLICATION_HUBTYPE.MUSIC; pub const PM_APPLICATION_HUBTYPE_INVALID = PM_APPLICATION_HUBTYPE.INVALID; pub const PM_TILE_HUBTYPE = enum(i32) { MUSIC = 1, MOSETTINGS = 268435456, GAMES = 536870912, APPLIST = 1073741824, STARTMENU = -2147483648, LOCKSCREEN = 16777216, KIDZONE = 33554432, CACHED = 67108864, INVALID = 67108865, }; pub const PM_TILE_HUBTYPE_MUSIC = PM_TILE_HUBTYPE.MUSIC; pub const PM_TILE_HUBTYPE_MOSETTINGS = PM_TILE_HUBTYPE.MOSETTINGS; pub const PM_TILE_HUBTYPE_GAMES = PM_TILE_HUBTYPE.GAMES; pub const PM_TILE_HUBTYPE_APPLIST = PM_TILE_HUBTYPE.APPLIST; pub const PM_TILE_HUBTYPE_STARTMENU = PM_TILE_HUBTYPE.STARTMENU; pub const PM_TILE_HUBTYPE_LOCKSCREEN = PM_TILE_HUBTYPE.LOCKSCREEN; pub const PM_TILE_HUBTYPE_KIDZONE = PM_TILE_HUBTYPE.KIDZONE; pub const PM_TILE_HUBTYPE_CACHED = PM_TILE_HUBTYPE.CACHED; pub const PM_TILE_HUBTYPE_INVALID = PM_TILE_HUBTYPE.INVALID; pub const PM_STARTTILE_TYPE = enum(i32) { PRIMARY = 1, SECONDARY = 2, APPLIST = 3, APPLISTPRIMARY = 4, INVALID = 5, }; pub const PM_STARTTILE_TYPE_PRIMARY = PM_STARTTILE_TYPE.PRIMARY; pub const PM_STARTTILE_TYPE_SECONDARY = PM_STARTTILE_TYPE.SECONDARY; pub const PM_STARTTILE_TYPE_APPLIST = PM_STARTTILE_TYPE.APPLIST; pub const PM_STARTTILE_TYPE_APPLISTPRIMARY = PM_STARTTILE_TYPE.APPLISTPRIMARY; pub const PM_STARTTILE_TYPE_INVALID = PM_STARTTILE_TYPE.INVALID; pub const PM_TASK_TYPE = enum(i32) { NORMAL = 0, DEFAULT = 1, SETTINGS = 2, BACKGROUNDSERVICEAGENT = 3, BACKGROUNDWORKER = 4, INVALID = 5, }; pub const PM_TASK_TYPE_NORMAL = PM_TASK_TYPE.NORMAL; pub const PM_TASK_TYPE_DEFAULT = PM_TASK_TYPE.DEFAULT; pub const PM_TASK_TYPE_SETTINGS = PM_TASK_TYPE.SETTINGS; pub const PM_TASK_TYPE_BACKGROUNDSERVICEAGENT = PM_TASK_TYPE.BACKGROUNDSERVICEAGENT; pub const PM_TASK_TYPE_BACKGROUNDWORKER = PM_TASK_TYPE.BACKGROUNDWORKER; pub const PM_TASK_TYPE_INVALID = PM_TASK_TYPE.INVALID; pub const PACKMAN_RUNTIME = enum(i32) { NATIVE = 1, SILVERLIGHTMOBILE = 2, XNA = 3, MODERN_NATIVE = 4, JUPITER = 5, INVALID = 6, }; pub const PACKMAN_RUNTIME_NATIVE = PACKMAN_RUNTIME.NATIVE; pub const PACKMAN_RUNTIME_SILVERLIGHTMOBILE = PACKMAN_RUNTIME.SILVERLIGHTMOBILE; pub const PACKMAN_RUNTIME_XNA = PACKMAN_RUNTIME.XNA; pub const PACKMAN_RUNTIME_MODERN_NATIVE = PACKMAN_RUNTIME.MODERN_NATIVE; pub const PACKMAN_RUNTIME_JUPITER = PACKMAN_RUNTIME.JUPITER; pub const PACKMAN_RUNTIME_INVALID = PACKMAN_RUNTIME.INVALID; pub const PM_ACTIVATION_POLICY = enum(i32) { RESUME = 0, RESUMESAMEPARAMS = 1, REPLACE = 2, REPLACESAMEPARAMS = 3, MULTISESSION = 4, REPLACE_IGNOREFOREGROUND = 5, UNKNOWN = 6, INVALID = 7, }; pub const PM_ACTIVATION_POLICY_RESUME = PM_ACTIVATION_POLICY.RESUME; pub const PM_ACTIVATION_POLICY_RESUMESAMEPARAMS = PM_ACTIVATION_POLICY.RESUMESAMEPARAMS; pub const PM_ACTIVATION_POLICY_REPLACE = PM_ACTIVATION_POLICY.REPLACE; pub const PM_ACTIVATION_POLICY_REPLACESAMEPARAMS = PM_ACTIVATION_POLICY.REPLACESAMEPARAMS; pub const PM_ACTIVATION_POLICY_MULTISESSION = PM_ACTIVATION_POLICY.MULTISESSION; pub const PM_ACTIVATION_POLICY_REPLACE_IGNOREFOREGROUND = PM_ACTIVATION_POLICY.REPLACE_IGNOREFOREGROUND; pub const PM_ACTIVATION_POLICY_UNKNOWN = PM_ACTIVATION_POLICY.UNKNOWN; pub const PM_ACTIVATION_POLICY_INVALID = PM_ACTIVATION_POLICY.INVALID; pub const PM_TASK_TRANSITION = enum(i32) { DEFAULT = 0, NONE = 1, TURNSTILE = 2, SLIDE = 3, SWIVEL = 4, READERBOARD = 5, CUSTOM = 6, INVALID = 7, }; pub const PM_TASK_TRANSITION_DEFAULT = PM_TASK_TRANSITION.DEFAULT; pub const PM_TASK_TRANSITION_NONE = PM_TASK_TRANSITION.NONE; pub const PM_TASK_TRANSITION_TURNSTILE = PM_TASK_TRANSITION.TURNSTILE; pub const PM_TASK_TRANSITION_SLIDE = PM_TASK_TRANSITION.SLIDE; pub const PM_TASK_TRANSITION_SWIVEL = PM_TASK_TRANSITION.SWIVEL; pub const PM_TASK_TRANSITION_READERBOARD = PM_TASK_TRANSITION.READERBOARD; pub const PM_TASK_TRANSITION_CUSTOM = PM_TASK_TRANSITION.CUSTOM; pub const PM_TASK_TRANSITION_INVALID = PM_TASK_TRANSITION.INVALID; pub const PM_ENUM_APP_FILTER = enum(i32) { ALL = 0, VISIBLE = 1, GENRE = 2, NONGAMES = 3, HUBTYPE = 4, PINABLEONKIDZONE = 5, ALL_INCLUDE_MODERN = 6, FRAMEWORK = 7, MAX = 8, }; pub const PM_APP_FILTER_ALL = PM_ENUM_APP_FILTER.ALL; pub const PM_APP_FILTER_VISIBLE = PM_ENUM_APP_FILTER.VISIBLE; pub const PM_APP_FILTER_GENRE = PM_ENUM_APP_FILTER.GENRE; pub const PM_APP_FILTER_NONGAMES = PM_ENUM_APP_FILTER.NONGAMES; pub const PM_APP_FILTER_HUBTYPE = PM_ENUM_APP_FILTER.HUBTYPE; pub const PM_APP_FILTER_PINABLEONKIDZONE = PM_ENUM_APP_FILTER.PINABLEONKIDZONE; pub const PM_APP_FILTER_ALL_INCLUDE_MODERN = PM_ENUM_APP_FILTER.ALL_INCLUDE_MODERN; pub const PM_APP_FILTER_FRAMEWORK = PM_ENUM_APP_FILTER.FRAMEWORK; pub const PM_APP_FILTER_MAX = PM_ENUM_APP_FILTER.MAX; pub const PM_ENUM_TILE_FILTER = enum(i32) { APPLIST = 8, PINNED = 9, HUBTYPE = 10, APP_ALL = 11, MAX = 12, }; pub const PM_TILE_FILTER_APPLIST = PM_ENUM_TILE_FILTER.APPLIST; pub const PM_TILE_FILTER_PINNED = PM_ENUM_TILE_FILTER.PINNED; pub const PM_TILE_FILTER_HUBTYPE = PM_ENUM_TILE_FILTER.HUBTYPE; pub const PM_TILE_FILTER_APP_ALL = PM_ENUM_TILE_FILTER.APP_ALL; pub const PM_TILE_FILTER_MAX = PM_ENUM_TILE_FILTER.MAX; pub const PM_ENUM_TASK_FILTER = enum(i32) { APP_ALL = 12, TASK_TYPE = 13, DEHYD_SUPRESSING = 14, APP_TASK_TYPE = 15, BGEXECUTION = 16, MAX = 17, }; pub const PM_TASK_FILTER_APP_ALL = PM_ENUM_TASK_FILTER.APP_ALL; pub const PM_TASK_FILTER_TASK_TYPE = PM_ENUM_TASK_FILTER.TASK_TYPE; pub const PM_TASK_FILTER_DEHYD_SUPRESSING = PM_ENUM_TASK_FILTER.DEHYD_SUPRESSING; pub const PM_TASK_FILTER_APP_TASK_TYPE = PM_ENUM_TASK_FILTER.APP_TASK_TYPE; pub const PM_TASK_FILTER_BGEXECUTION = PM_ENUM_TASK_FILTER.BGEXECUTION; pub const PM_TASK_FILTER_MAX = PM_ENUM_TASK_FILTER.MAX; pub const PM_ENUM_EXTENSION_FILTER = enum(i32) { BY_CONSUMER = 17, // APPCONNECT = 17, this enum value conflicts with BY_CONSUMER PROTOCOL_ALL = 18, FTASSOC_FILETYPE_ALL = 19, FTASSOC_CONTENTTYPE_ALL = 20, FTASSOC_APPLICATION_ALL = 21, SHARETARGET_ALL = 22, FILEOPENPICKER_ALL = 23, FILESAVEPICKER_ALL = 24, CACHEDFILEUPDATER_ALL = 25, MAX = 26, }; pub const PM_ENUM_EXTENSION_FILTER_BY_CONSUMER = PM_ENUM_EXTENSION_FILTER.BY_CONSUMER; pub const PM_ENUM_EXTENSION_FILTER_APPCONNECT = PM_ENUM_EXTENSION_FILTER.BY_CONSUMER; pub const PM_ENUM_EXTENSION_FILTER_PROTOCOL_ALL = PM_ENUM_EXTENSION_FILTER.PROTOCOL_ALL; pub const PM_ENUM_EXTENSION_FILTER_FTASSOC_FILETYPE_ALL = PM_ENUM_EXTENSION_FILTER.FTASSOC_FILETYPE_ALL; pub const PM_ENUM_EXTENSION_FILTER_FTASSOC_CONTENTTYPE_ALL = PM_ENUM_EXTENSION_FILTER.FTASSOC_CONTENTTYPE_ALL; pub const PM_ENUM_EXTENSION_FILTER_FTASSOC_APPLICATION_ALL = PM_ENUM_EXTENSION_FILTER.FTASSOC_APPLICATION_ALL; pub const PM_ENUM_EXTENSION_FILTER_SHARETARGET_ALL = PM_ENUM_EXTENSION_FILTER.SHARETARGET_ALL; pub const PM_ENUM_EXTENSION_FILTER_FILEOPENPICKER_ALL = PM_ENUM_EXTENSION_FILTER.FILEOPENPICKER_ALL; pub const PM_ENUM_EXTENSION_FILTER_FILESAVEPICKER_ALL = PM_ENUM_EXTENSION_FILTER.FILESAVEPICKER_ALL; pub const PM_ENUM_EXTENSION_FILTER_CACHEDFILEUPDATER_ALL = PM_ENUM_EXTENSION_FILTER.CACHEDFILEUPDATER_ALL; pub const PM_ENUM_EXTENSION_FILTER_MAX = PM_ENUM_EXTENSION_FILTER.MAX; pub const PM_ENUM_BSA_FILTER = enum(i32) { ALL = 26, BY_TASKID = 27, BY_PRODUCTID = 28, BY_PERIODIC = 29, BY_ALL_LAUNCHONBOOT = 30, MAX = 31, }; pub const PM_ENUM_BSA_FILTER_ALL = PM_ENUM_BSA_FILTER.ALL; pub const PM_ENUM_BSA_FILTER_BY_TASKID = PM_ENUM_BSA_FILTER.BY_TASKID; pub const PM_ENUM_BSA_FILTER_BY_PRODUCTID = PM_ENUM_BSA_FILTER.BY_PRODUCTID; pub const PM_ENUM_BSA_FILTER_BY_PERIODIC = PM_ENUM_BSA_FILTER.BY_PERIODIC; pub const PM_ENUM_BSA_FILTER_BY_ALL_LAUNCHONBOOT = PM_ENUM_BSA_FILTER.BY_ALL_LAUNCHONBOOT; pub const PM_ENUM_BSA_FILTER_MAX = PM_ENUM_BSA_FILTER.MAX; pub const PM_ENUM_BW_FILTER = enum(i32) { BOOTWORKER_ALL = 31, BY_TASKID = 32, MAX = 33, }; pub const PM_ENUM_BW_FILTER_BOOTWORKER_ALL = PM_ENUM_BW_FILTER.BOOTWORKER_ALL; pub const PM_ENUM_BW_FILTER_BY_TASKID = PM_ENUM_BW_FILTER.BY_TASKID; pub const PM_ENUM_BW_FILTER_MAX = PM_ENUM_BW_FILTER.MAX; pub const _tagAPPTASKTYPE = extern struct { ProductID: Guid, TaskType: PM_TASK_TYPE, }; pub const PM_EXTENSIONCONSUMER = extern struct { ConsumerPID: Guid, ExtensionID: ?BSTR, }; pub const PM_BSATASKID = extern struct { ProductID: Guid, TaskID: ?BSTR, }; pub const PM_BWTASKID = extern struct { ProductID: Guid, TaskID: ?BSTR, }; pub const PM_ENUM_FILTER = extern struct { FilterType: i32, FilterParameter: extern union { Dummy: i32, Genre: PM_APP_GENRE, AppHubType: PM_APPLICATION_HUBTYPE, HubType: PM_TILE_HUBTYPE, Tasktype: PM_TASK_TYPE, TaskProductID: Guid, TileProductID: Guid, AppTaskType: _tagAPPTASKTYPE, Consumer: PM_EXTENSIONCONSUMER, BSATask: PM_BSATASKID, BSAProductID: Guid, BWTask: PM_BWTASKID, ProtocolName: ?BSTR, FileType: ?BSTR, ContentType: ?BSTR, AppSupportedFileExtPID: Guid, ShareTargetFileType: ?BSTR, }, }; pub const PM_LIVETILE_RECURRENCE_TYPE = enum(i32) { INSTANT = 0, ONETIME = 1, INTERVAL = 2, // MAX = 2, this enum value conflicts with INTERVAL }; pub const PM_LIVETILE_RECURRENCE_TYPE_INSTANT = PM_LIVETILE_RECURRENCE_TYPE.INSTANT; pub const PM_LIVETILE_RECURRENCE_TYPE_ONETIME = PM_LIVETILE_RECURRENCE_TYPE.ONETIME; pub const PM_LIVETILE_RECURRENCE_TYPE_INTERVAL = PM_LIVETILE_RECURRENCE_TYPE.INTERVAL; pub const PM_LIVETILE_RECURRENCE_TYPE_MAX = PM_LIVETILE_RECURRENCE_TYPE.INTERVAL; pub const PM_TILE_SIZE = enum(i32) { SMALL = 0, MEDIUM = 1, LARGE = 2, SQUARE310X310 = 3, TALL150X310 = 4, INVALID = 5, }; pub const PM_TILE_SIZE_SMALL = PM_TILE_SIZE.SMALL; pub const PM_TILE_SIZE_MEDIUM = PM_TILE_SIZE.MEDIUM; pub const PM_TILE_SIZE_LARGE = PM_TILE_SIZE.LARGE; pub const PM_TILE_SIZE_SQUARE310X310 = PM_TILE_SIZE.SQUARE310X310; pub const PM_TILE_SIZE_TALL150X310 = PM_TILE_SIZE.TALL150X310; pub const PM_TILE_SIZE_INVALID = PM_TILE_SIZE.INVALID; pub const PM_LOGO_SIZE = enum(i32) { SMALL = 0, MEDIUM = 1, LARGE = 2, INVALID = 3, }; pub const PM_LOGO_SIZE_SMALL = PM_LOGO_SIZE.SMALL; pub const PM_LOGO_SIZE_MEDIUM = PM_LOGO_SIZE.MEDIUM; pub const PM_LOGO_SIZE_LARGE = PM_LOGO_SIZE.LARGE; pub const PM_LOGO_SIZE_INVALID = PM_LOGO_SIZE.INVALID; pub const PM_STARTAPPBLOB = extern struct { cbSize: u32, ProductID: Guid, AppTitle: ?BSTR, IconPath: ?BSTR, IsUninstallable: BOOL, AppInstallType: PM_APPLICATION_INSTALL_TYPE, InstanceID: Guid, State: PM_APPLICATION_STATE, IsModern: BOOL, IsModernLightUp: BOOL, LightUpSupportMask: u16, }; pub const PM_INVOCATIONINFO = extern struct { URIBaseOrAUMID: ?BSTR, URIFragmentOrArgs: ?BSTR, }; pub const PM_STARTTILEBLOB = extern struct { cbSize: u32, ProductID: Guid, TileID: ?BSTR, TemplateType: TILE_TEMPLATE_TYPE, HubPosition: [32]u32, HubVisibilityBitmask: u32, IsDefault: BOOL, TileType: PM_STARTTILE_TYPE, pbPropBlob: ?*u8, cbPropBlob: u32, IsRestoring: BOOL, IsModern: BOOL, InvocationInfo: PM_INVOCATIONINFO, }; pub const PM_INSTALLINFO = extern struct { ProductID: Guid, PackagePath: ?BSTR, InstanceID: Guid, pbLicense: ?*u8, cbLicense: u32, IsUninstallDisabled: BOOL, DeploymentOptions: u32, OfferID: Guid, MarketplaceAppVersion: ?BSTR, }; pub const PM_UPDATEINFO_LEGACY = extern struct { ProductID: Guid, PackagePath: ?BSTR, InstanceID: Guid, pbLicense: ?*u8, cbLicense: u32, MarketplaceAppVersion: ?BSTR, }; pub const PM_UPDATEINFO = extern struct { ProductID: Guid, PackagePath: ?BSTR, InstanceID: Guid, pbLicense: ?*u8, cbLicense: u32, MarketplaceAppVersion: ?BSTR, DeploymentOptions: u32, }; const IID_IPMApplicationInfo_Value = Guid.initString("50afb58a-438c-4088-9789-f8c4899829c7"); pub const IID_IPMApplicationInfo = &IID_IPMApplicationInfo_Value; pub const IPMApplicationInfo = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, // TODO: this function has a "SpecialName", should Zig do anything with this? get_ProductID: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IPMApplicationInfo, pProductID: ?*Guid, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IPMApplicationInfo, pProductID: ?*Guid, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_InstanceID: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IPMApplicationInfo, pInstanceID: ?*Guid, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IPMApplicationInfo, pInstanceID: ?*Guid, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_OfferID: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IPMApplicationInfo, pOfferID: ?*Guid, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IPMApplicationInfo, pOfferID: ?*Guid, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_DefaultTask: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IPMApplicationInfo, pDefaultTask: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IPMApplicationInfo, pDefaultTask: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_AppTitle: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IPMApplicationInfo, pAppTitle: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IPMApplicationInfo, pAppTitle: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_IconPath: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IPMApplicationInfo, pAppIconPath: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IPMApplicationInfo, pAppIconPath: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_NotificationState: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IPMApplicationInfo, pIsNotified: ?*BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IPMApplicationInfo, pIsNotified: ?*BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_AppInstallType: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IPMApplicationInfo, pAppInstallType: ?*PM_APPLICATION_INSTALL_TYPE, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IPMApplicationInfo, pAppInstallType: ?*PM_APPLICATION_INSTALL_TYPE, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_State: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IPMApplicationInfo, pState: ?*PM_APPLICATION_STATE, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IPMApplicationInfo, pState: ?*PM_APPLICATION_STATE, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_IsRevoked: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IPMApplicationInfo, pIsRevoked: ?*BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IPMApplicationInfo, pIsRevoked: ?*BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_UpdateAvailable: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IPMApplicationInfo, pIsUpdateAvailable: ?*BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IPMApplicationInfo, pIsUpdateAvailable: ?*BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_InstallDate: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IPMApplicationInfo, pInstallDate: ?*FILETIME, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IPMApplicationInfo, pInstallDate: ?*FILETIME, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_IsUninstallable: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IPMApplicationInfo, pIsUninstallable: ?*BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IPMApplicationInfo, pIsUninstallable: ?*BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_IsThemable: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IPMApplicationInfo, pIsThemable: ?*BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IPMApplicationInfo, pIsThemable: ?*BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_IsTrial: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IPMApplicationInfo, pIsTrial: ?*BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IPMApplicationInfo, pIsTrial: ?*BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_InstallPath: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IPMApplicationInfo, pInstallPath: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IPMApplicationInfo, pInstallPath: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_DataRoot: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IPMApplicationInfo, pDataRoot: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IPMApplicationInfo, pDataRoot: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Genre: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IPMApplicationInfo, pGenre: ?*PM_APP_GENRE, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IPMApplicationInfo, pGenre: ?*PM_APP_GENRE, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Publisher: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IPMApplicationInfo, pPublisher: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IPMApplicationInfo, pPublisher: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Author: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IPMApplicationInfo, pAuthor: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IPMApplicationInfo, pAuthor: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Description: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IPMApplicationInfo, pDescription: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IPMApplicationInfo, pDescription: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Version: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IPMApplicationInfo, pVersion: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IPMApplicationInfo, pVersion: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_InvocationInfo: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IPMApplicationInfo, pImageUrn: ?*?BSTR, pParameters: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IPMApplicationInfo, pImageUrn: ?*?BSTR, pParameters: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_AppPlatMajorVersion: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IPMApplicationInfo, pMajorVer: ?*u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IPMApplicationInfo, pMajorVer: ?*u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_AppPlatMinorVersion: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IPMApplicationInfo, pMinorVer: ?*u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IPMApplicationInfo, pMinorVer: ?*u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_PublisherID: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IPMApplicationInfo, pPublisherID: ?*Guid, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IPMApplicationInfo, pPublisherID: ?*Guid, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_IsMultiCore: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IPMApplicationInfo, pIsMultiCore: ?*BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IPMApplicationInfo, pIsMultiCore: ?*BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_SID: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IPMApplicationInfo, pSID: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IPMApplicationInfo, pSID: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_AppPlatMajorVersionLightUp: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IPMApplicationInfo, pMajorVer: ?*u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IPMApplicationInfo, pMajorVer: ?*u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_AppPlatMinorVersionLightUp: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IPMApplicationInfo, pMinorVer: ?*u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IPMApplicationInfo, pMinorVer: ?*u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, set_UpdateAvailable: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IPMApplicationInfo, IsUpdateAvailable: BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IPMApplicationInfo, IsUpdateAvailable: BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, set_NotificationState: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IPMApplicationInfo, IsNotified: BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IPMApplicationInfo, IsNotified: BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, set_IconPath: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IPMApplicationInfo, AppIconPath: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IPMApplicationInfo, AppIconPath: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, set_UninstallableState: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IPMApplicationInfo, IsUninstallable: BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IPMApplicationInfo, IsUninstallable: BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_IsPinableOnKidZone: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IPMApplicationInfo, pIsPinable: ?*BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IPMApplicationInfo, pIsPinable: ?*BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_IsOriginallyPreInstalled: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IPMApplicationInfo, pIsPreinstalled: ?*BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IPMApplicationInfo, pIsPreinstalled: ?*BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_IsInstallOnSD: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IPMApplicationInfo, pIsInstallOnSD: ?*BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IPMApplicationInfo, pIsInstallOnSD: ?*BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_IsOptoutOnSD: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IPMApplicationInfo, pIsOptoutOnSD: ?*BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IPMApplicationInfo, pIsOptoutOnSD: ?*BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_IsOptoutBackupRestore: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IPMApplicationInfo, pIsOptoutBackupRestore: ?*BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IPMApplicationInfo, pIsOptoutBackupRestore: ?*BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, set_EnterpriseDisabled: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IPMApplicationInfo, IsDisabled: BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IPMApplicationInfo, IsDisabled: BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, set_EnterpriseUninstallable: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IPMApplicationInfo, IsUninstallable: BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IPMApplicationInfo, IsUninstallable: BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_EnterpriseDisabled: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IPMApplicationInfo, IsDisabled: ?*BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IPMApplicationInfo, IsDisabled: ?*BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_EnterpriseUninstallable: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IPMApplicationInfo, IsUninstallable: ?*BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IPMApplicationInfo, IsUninstallable: ?*BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_IsVisibleOnAppList: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IPMApplicationInfo, pIsVisible: ?*BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IPMApplicationInfo, pIsVisible: ?*BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_IsInboxApp: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IPMApplicationInfo, pIsInboxApp: ?*BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IPMApplicationInfo, pIsInboxApp: ?*BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_StorageID: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IPMApplicationInfo, pStorageID: ?*Guid, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IPMApplicationInfo, pStorageID: ?*Guid, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_StartAppBlob: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IPMApplicationInfo, pBlob: ?*PM_STARTAPPBLOB, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IPMApplicationInfo, pBlob: ?*PM_STARTAPPBLOB, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_IsMovable: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IPMApplicationInfo, pIsMovable: ?*BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IPMApplicationInfo, pIsMovable: ?*BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_DeploymentAppEnumerationHubFilter: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IPMApplicationInfo, HubType: ?*PM_TILE_HUBTYPE, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IPMApplicationInfo, HubType: ?*PM_TILE_HUBTYPE, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_ModifiedDate: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IPMApplicationInfo, pModifiedDate: ?*FILETIME, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IPMApplicationInfo, pModifiedDate: ?*FILETIME, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_IsOriginallyRestored: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IPMApplicationInfo, pIsRestored: ?*BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IPMApplicationInfo, pIsRestored: ?*BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_ShouldDeferMdilBind: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IPMApplicationInfo, pfDeferMdilBind: ?*BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IPMApplicationInfo, pfDeferMdilBind: ?*BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_IsFullyPreInstall: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IPMApplicationInfo, pfIsFullyPreInstall: ?*BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IPMApplicationInfo, pfIsFullyPreInstall: ?*BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, set_IsMdilMaintenanceNeeded: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IPMApplicationInfo, fIsMdilMaintenanceNeeded: BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IPMApplicationInfo, fIsMdilMaintenanceNeeded: BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, set_Title: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IPMApplicationInfo, AppTitle: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IPMApplicationInfo, AppTitle: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPMApplicationInfo_get_ProductID(self: *const T, pProductID: ?*Guid) HRESULT { return @as(*const IPMApplicationInfo.VTable, @ptrCast(self.vtable)).get_ProductID(@as(*const IPMApplicationInfo, @ptrCast(self)), pProductID); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPMApplicationInfo_get_InstanceID(self: *const T, pInstanceID: ?*Guid) HRESULT { return @as(*const IPMApplicationInfo.VTable, @ptrCast(self.vtable)).get_InstanceID(@as(*const IPMApplicationInfo, @ptrCast(self)), pInstanceID); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPMApplicationInfo_get_OfferID(self: *const T, pOfferID: ?*Guid) HRESULT { return @as(*const IPMApplicationInfo.VTable, @ptrCast(self.vtable)).get_OfferID(@as(*const IPMApplicationInfo, @ptrCast(self)), pOfferID); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPMApplicationInfo_get_DefaultTask(self: *const T, pDefaultTask: ?*?BSTR) HRESULT { return @as(*const IPMApplicationInfo.VTable, @ptrCast(self.vtable)).get_DefaultTask(@as(*const IPMApplicationInfo, @ptrCast(self)), pDefaultTask); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPMApplicationInfo_get_AppTitle(self: *const T, pAppTitle: ?*?BSTR) HRESULT { return @as(*const IPMApplicationInfo.VTable, @ptrCast(self.vtable)).get_AppTitle(@as(*const IPMApplicationInfo, @ptrCast(self)), pAppTitle); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPMApplicationInfo_get_IconPath(self: *const T, pAppIconPath: ?*?BSTR) HRESULT { return @as(*const IPMApplicationInfo.VTable, @ptrCast(self.vtable)).get_IconPath(@as(*const IPMApplicationInfo, @ptrCast(self)), pAppIconPath); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPMApplicationInfo_get_NotificationState(self: *const T, pIsNotified: ?*BOOL) HRESULT { return @as(*const IPMApplicationInfo.VTable, @ptrCast(self.vtable)).get_NotificationState(@as(*const IPMApplicationInfo, @ptrCast(self)), pIsNotified); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPMApplicationInfo_get_AppInstallType(self: *const T, pAppInstallType: ?*PM_APPLICATION_INSTALL_TYPE) HRESULT { return @as(*const IPMApplicationInfo.VTable, @ptrCast(self.vtable)).get_AppInstallType(@as(*const IPMApplicationInfo, @ptrCast(self)), pAppInstallType); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPMApplicationInfo_get_State(self: *const T, pState: ?*PM_APPLICATION_STATE) HRESULT { return @as(*const IPMApplicationInfo.VTable, @ptrCast(self.vtable)).get_State(@as(*const IPMApplicationInfo, @ptrCast(self)), pState); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPMApplicationInfo_get_IsRevoked(self: *const T, pIsRevoked: ?*BOOL) HRESULT { return @as(*const IPMApplicationInfo.VTable, @ptrCast(self.vtable)).get_IsRevoked(@as(*const IPMApplicationInfo, @ptrCast(self)), pIsRevoked); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPMApplicationInfo_get_UpdateAvailable(self: *const T, pIsUpdateAvailable: ?*BOOL) HRESULT { return @as(*const IPMApplicationInfo.VTable, @ptrCast(self.vtable)).get_UpdateAvailable(@as(*const IPMApplicationInfo, @ptrCast(self)), pIsUpdateAvailable); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPMApplicationInfo_get_InstallDate(self: *const T, pInstallDate: ?*FILETIME) HRESULT { return @as(*const IPMApplicationInfo.VTable, @ptrCast(self.vtable)).get_InstallDate(@as(*const IPMApplicationInfo, @ptrCast(self)), pInstallDate); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPMApplicationInfo_get_IsUninstallable(self: *const T, pIsUninstallable: ?*BOOL) HRESULT { return @as(*const IPMApplicationInfo.VTable, @ptrCast(self.vtable)).get_IsUninstallable(@as(*const IPMApplicationInfo, @ptrCast(self)), pIsUninstallable); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPMApplicationInfo_get_IsThemable(self: *const T, pIsThemable: ?*BOOL) HRESULT { return @as(*const IPMApplicationInfo.VTable, @ptrCast(self.vtable)).get_IsThemable(@as(*const IPMApplicationInfo, @ptrCast(self)), pIsThemable); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPMApplicationInfo_get_IsTrial(self: *const T, pIsTrial: ?*BOOL) HRESULT { return @as(*const IPMApplicationInfo.VTable, @ptrCast(self.vtable)).get_IsTrial(@as(*const IPMApplicationInfo, @ptrCast(self)), pIsTrial); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPMApplicationInfo_get_InstallPath(self: *const T, pInstallPath: ?*?BSTR) HRESULT { return @as(*const IPMApplicationInfo.VTable, @ptrCast(self.vtable)).get_InstallPath(@as(*const IPMApplicationInfo, @ptrCast(self)), pInstallPath); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPMApplicationInfo_get_DataRoot(self: *const T, pDataRoot: ?*?BSTR) HRESULT { return @as(*const IPMApplicationInfo.VTable, @ptrCast(self.vtable)).get_DataRoot(@as(*const IPMApplicationInfo, @ptrCast(self)), pDataRoot); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPMApplicationInfo_get_Genre(self: *const T, pGenre: ?*PM_APP_GENRE) HRESULT { return @as(*const IPMApplicationInfo.VTable, @ptrCast(self.vtable)).get_Genre(@as(*const IPMApplicationInfo, @ptrCast(self)), pGenre); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPMApplicationInfo_get_Publisher(self: *const T, pPublisher: ?*?BSTR) HRESULT { return @as(*const IPMApplicationInfo.VTable, @ptrCast(self.vtable)).get_Publisher(@as(*const IPMApplicationInfo, @ptrCast(self)), pPublisher); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPMApplicationInfo_get_Author(self: *const T, pAuthor: ?*?BSTR) HRESULT { return @as(*const IPMApplicationInfo.VTable, @ptrCast(self.vtable)).get_Author(@as(*const IPMApplicationInfo, @ptrCast(self)), pAuthor); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPMApplicationInfo_get_Description(self: *const T, pDescription: ?*?BSTR) HRESULT { return @as(*const IPMApplicationInfo.VTable, @ptrCast(self.vtable)).get_Description(@as(*const IPMApplicationInfo, @ptrCast(self)), pDescription); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPMApplicationInfo_get_Version(self: *const T, pVersion: ?*?BSTR) HRESULT { return @as(*const IPMApplicationInfo.VTable, @ptrCast(self.vtable)).get_Version(@as(*const IPMApplicationInfo, @ptrCast(self)), pVersion); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPMApplicationInfo_get_InvocationInfo(self: *const T, pImageUrn: ?*?BSTR, pParameters: ?*?BSTR) HRESULT { return @as(*const IPMApplicationInfo.VTable, @ptrCast(self.vtable)).get_InvocationInfo(@as(*const IPMApplicationInfo, @ptrCast(self)), pImageUrn, pParameters); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPMApplicationInfo_get_AppPlatMajorVersion(self: *const T, pMajorVer: ?*u8) HRESULT { return @as(*const IPMApplicationInfo.VTable, @ptrCast(self.vtable)).get_AppPlatMajorVersion(@as(*const IPMApplicationInfo, @ptrCast(self)), pMajorVer); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPMApplicationInfo_get_AppPlatMinorVersion(self: *const T, pMinorVer: ?*u8) HRESULT { return @as(*const IPMApplicationInfo.VTable, @ptrCast(self.vtable)).get_AppPlatMinorVersion(@as(*const IPMApplicationInfo, @ptrCast(self)), pMinorVer); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPMApplicationInfo_get_PublisherID(self: *const T, pPublisherID: ?*Guid) HRESULT { return @as(*const IPMApplicationInfo.VTable, @ptrCast(self.vtable)).get_PublisherID(@as(*const IPMApplicationInfo, @ptrCast(self)), pPublisherID); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPMApplicationInfo_get_IsMultiCore(self: *const T, pIsMultiCore: ?*BOOL) HRESULT { return @as(*const IPMApplicationInfo.VTable, @ptrCast(self.vtable)).get_IsMultiCore(@as(*const IPMApplicationInfo, @ptrCast(self)), pIsMultiCore); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPMApplicationInfo_get_SID(self: *const T, pSID: ?*?BSTR) HRESULT { return @as(*const IPMApplicationInfo.VTable, @ptrCast(self.vtable)).get_SID(@as(*const IPMApplicationInfo, @ptrCast(self)), pSID); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPMApplicationInfo_get_AppPlatMajorVersionLightUp(self: *const T, pMajorVer: ?*u8) HRESULT { return @as(*const IPMApplicationInfo.VTable, @ptrCast(self.vtable)).get_AppPlatMajorVersionLightUp(@as(*const IPMApplicationInfo, @ptrCast(self)), pMajorVer); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPMApplicationInfo_get_AppPlatMinorVersionLightUp(self: *const T, pMinorVer: ?*u8) HRESULT { return @as(*const IPMApplicationInfo.VTable, @ptrCast(self.vtable)).get_AppPlatMinorVersionLightUp(@as(*const IPMApplicationInfo, @ptrCast(self)), pMinorVer); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPMApplicationInfo_set_UpdateAvailable(self: *const T, IsUpdateAvailable: BOOL) HRESULT { return @as(*const IPMApplicationInfo.VTable, @ptrCast(self.vtable)).set_UpdateAvailable(@as(*const IPMApplicationInfo, @ptrCast(self)), IsUpdateAvailable); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPMApplicationInfo_set_NotificationState(self: *const T, IsNotified: BOOL) HRESULT { return @as(*const IPMApplicationInfo.VTable, @ptrCast(self.vtable)).set_NotificationState(@as(*const IPMApplicationInfo, @ptrCast(self)), IsNotified); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPMApplicationInfo_set_IconPath(self: *const T, AppIconPath: ?BSTR) HRESULT { return @as(*const IPMApplicationInfo.VTable, @ptrCast(self.vtable)).set_IconPath(@as(*const IPMApplicationInfo, @ptrCast(self)), AppIconPath); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPMApplicationInfo_set_UninstallableState(self: *const T, IsUninstallable: BOOL) HRESULT { return @as(*const IPMApplicationInfo.VTable, @ptrCast(self.vtable)).set_UninstallableState(@as(*const IPMApplicationInfo, @ptrCast(self)), IsUninstallable); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPMApplicationInfo_get_IsPinableOnKidZone(self: *const T, pIsPinable: ?*BOOL) HRESULT { return @as(*const IPMApplicationInfo.VTable, @ptrCast(self.vtable)).get_IsPinableOnKidZone(@as(*const IPMApplicationInfo, @ptrCast(self)), pIsPinable); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPMApplicationInfo_get_IsOriginallyPreInstalled(self: *const T, pIsPreinstalled: ?*BOOL) HRESULT { return @as(*const IPMApplicationInfo.VTable, @ptrCast(self.vtable)).get_IsOriginallyPreInstalled(@as(*const IPMApplicationInfo, @ptrCast(self)), pIsPreinstalled); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPMApplicationInfo_get_IsInstallOnSD(self: *const T, pIsInstallOnSD: ?*BOOL) HRESULT { return @as(*const IPMApplicationInfo.VTable, @ptrCast(self.vtable)).get_IsInstallOnSD(@as(*const IPMApplicationInfo, @ptrCast(self)), pIsInstallOnSD); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPMApplicationInfo_get_IsOptoutOnSD(self: *const T, pIsOptoutOnSD: ?*BOOL) HRESULT { return @as(*const IPMApplicationInfo.VTable, @ptrCast(self.vtable)).get_IsOptoutOnSD(@as(*const IPMApplicationInfo, @ptrCast(self)), pIsOptoutOnSD); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPMApplicationInfo_get_IsOptoutBackupRestore(self: *const T, pIsOptoutBackupRestore: ?*BOOL) HRESULT { return @as(*const IPMApplicationInfo.VTable, @ptrCast(self.vtable)).get_IsOptoutBackupRestore(@as(*const IPMApplicationInfo, @ptrCast(self)), pIsOptoutBackupRestore); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPMApplicationInfo_set_EnterpriseDisabled(self: *const T, IsDisabled: BOOL) HRESULT { return @as(*const IPMApplicationInfo.VTable, @ptrCast(self.vtable)).set_EnterpriseDisabled(@as(*const IPMApplicationInfo, @ptrCast(self)), IsDisabled); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPMApplicationInfo_set_EnterpriseUninstallable(self: *const T, IsUninstallable: BOOL) HRESULT { return @as(*const IPMApplicationInfo.VTable, @ptrCast(self.vtable)).set_EnterpriseUninstallable(@as(*const IPMApplicationInfo, @ptrCast(self)), IsUninstallable); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPMApplicationInfo_get_EnterpriseDisabled(self: *const T, IsDisabled: ?*BOOL) HRESULT { return @as(*const IPMApplicationInfo.VTable, @ptrCast(self.vtable)).get_EnterpriseDisabled(@as(*const IPMApplicationInfo, @ptrCast(self)), IsDisabled); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPMApplicationInfo_get_EnterpriseUninstallable(self: *const T, IsUninstallable: ?*BOOL) HRESULT { return @as(*const IPMApplicationInfo.VTable, @ptrCast(self.vtable)).get_EnterpriseUninstallable(@as(*const IPMApplicationInfo, @ptrCast(self)), IsUninstallable); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPMApplicationInfo_get_IsVisibleOnAppList(self: *const T, pIsVisible: ?*BOOL) HRESULT { return @as(*const IPMApplicationInfo.VTable, @ptrCast(self.vtable)).get_IsVisibleOnAppList(@as(*const IPMApplicationInfo, @ptrCast(self)), pIsVisible); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPMApplicationInfo_get_IsInboxApp(self: *const T, pIsInboxApp: ?*BOOL) HRESULT { return @as(*const IPMApplicationInfo.VTable, @ptrCast(self.vtable)).get_IsInboxApp(@as(*const IPMApplicationInfo, @ptrCast(self)), pIsInboxApp); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPMApplicationInfo_get_StorageID(self: *const T, pStorageID: ?*Guid) HRESULT { return @as(*const IPMApplicationInfo.VTable, @ptrCast(self.vtable)).get_StorageID(@as(*const IPMApplicationInfo, @ptrCast(self)), pStorageID); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPMApplicationInfo_get_StartAppBlob(self: *const T, pBlob: ?*PM_STARTAPPBLOB) HRESULT { return @as(*const IPMApplicationInfo.VTable, @ptrCast(self.vtable)).get_StartAppBlob(@as(*const IPMApplicationInfo, @ptrCast(self)), pBlob); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPMApplicationInfo_get_IsMovable(self: *const T, pIsMovable: ?*BOOL) HRESULT { return @as(*const IPMApplicationInfo.VTable, @ptrCast(self.vtable)).get_IsMovable(@as(*const IPMApplicationInfo, @ptrCast(self)), pIsMovable); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPMApplicationInfo_get_DeploymentAppEnumerationHubFilter(self: *const T, HubType: ?*PM_TILE_HUBTYPE) HRESULT { return @as(*const IPMApplicationInfo.VTable, @ptrCast(self.vtable)).get_DeploymentAppEnumerationHubFilter(@as(*const IPMApplicationInfo, @ptrCast(self)), HubType); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPMApplicationInfo_get_ModifiedDate(self: *const T, pModifiedDate: ?*FILETIME) HRESULT { return @as(*const IPMApplicationInfo.VTable, @ptrCast(self.vtable)).get_ModifiedDate(@as(*const IPMApplicationInfo, @ptrCast(self)), pModifiedDate); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPMApplicationInfo_get_IsOriginallyRestored(self: *const T, pIsRestored: ?*BOOL) HRESULT { return @as(*const IPMApplicationInfo.VTable, @ptrCast(self.vtable)).get_IsOriginallyRestored(@as(*const IPMApplicationInfo, @ptrCast(self)), pIsRestored); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPMApplicationInfo_get_ShouldDeferMdilBind(self: *const T, pfDeferMdilBind: ?*BOOL) HRESULT { return @as(*const IPMApplicationInfo.VTable, @ptrCast(self.vtable)).get_ShouldDeferMdilBind(@as(*const IPMApplicationInfo, @ptrCast(self)), pfDeferMdilBind); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPMApplicationInfo_get_IsFullyPreInstall(self: *const T, pfIsFullyPreInstall: ?*BOOL) HRESULT { return @as(*const IPMApplicationInfo.VTable, @ptrCast(self.vtable)).get_IsFullyPreInstall(@as(*const IPMApplicationInfo, @ptrCast(self)), pfIsFullyPreInstall); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPMApplicationInfo_set_IsMdilMaintenanceNeeded(self: *const T, fIsMdilMaintenanceNeeded: BOOL) HRESULT { return @as(*const IPMApplicationInfo.VTable, @ptrCast(self.vtable)).set_IsMdilMaintenanceNeeded(@as(*const IPMApplicationInfo, @ptrCast(self)), fIsMdilMaintenanceNeeded); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPMApplicationInfo_set_Title(self: *const T, AppTitle: ?BSTR) HRESULT { return @as(*const IPMApplicationInfo.VTable, @ptrCast(self.vtable)).set_Title(@as(*const IPMApplicationInfo, @ptrCast(self)), AppTitle); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IPMTilePropertyInfo_Value = Guid.initString("6c2b8017-1efa-42a7-86c0-6d4b640bf528"); pub const IID_IPMTilePropertyInfo = &IID_IPMTilePropertyInfo_Value; pub const IPMTilePropertyInfo = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, // TODO: this function has a "SpecialName", should Zig do anything with this? get_PropertyID: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IPMTilePropertyInfo, pPropID: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IPMTilePropertyInfo, pPropID: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_PropertyValue: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IPMTilePropertyInfo, pPropValue: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IPMTilePropertyInfo, pPropValue: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, set_Property: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IPMTilePropertyInfo, PropValue: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IPMTilePropertyInfo, PropValue: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPMTilePropertyInfo_get_PropertyID(self: *const T, pPropID: ?*u32) HRESULT { return @as(*const IPMTilePropertyInfo.VTable, @ptrCast(self.vtable)).get_PropertyID(@as(*const IPMTilePropertyInfo, @ptrCast(self)), pPropID); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPMTilePropertyInfo_get_PropertyValue(self: *const T, pPropValue: ?*?BSTR) HRESULT { return @as(*const IPMTilePropertyInfo.VTable, @ptrCast(self.vtable)).get_PropertyValue(@as(*const IPMTilePropertyInfo, @ptrCast(self)), pPropValue); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPMTilePropertyInfo_set_Property(self: *const T, PropValue: ?BSTR) HRESULT { return @as(*const IPMTilePropertyInfo.VTable, @ptrCast(self.vtable)).set_Property(@as(*const IPMTilePropertyInfo, @ptrCast(self)), PropValue); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IPMTilePropertyEnumerator_Value = Guid.initString("cc4cd629-9047-4250-aac8-930e47812421"); pub const IID_IPMTilePropertyEnumerator = &IID_IPMTilePropertyEnumerator_Value; pub const IPMTilePropertyEnumerator = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Next: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IPMTilePropertyEnumerator, ppPropInfo: ?*?*IPMTilePropertyInfo, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IPMTilePropertyEnumerator, ppPropInfo: ?*?*IPMTilePropertyInfo, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPMTilePropertyEnumerator_get_Next(self: *const T, ppPropInfo: ?*?*IPMTilePropertyInfo) HRESULT { return @as(*const IPMTilePropertyEnumerator.VTable, @ptrCast(self.vtable)).get_Next(@as(*const IPMTilePropertyEnumerator, @ptrCast(self)), ppPropInfo); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IPMTileInfo_Value = Guid.initString("d1604833-2b08-4001-82cd-183ad734f752"); pub const IID_IPMTileInfo = &IID_IPMTileInfo_Value; pub const IPMTileInfo = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, // TODO: this function has a "SpecialName", should Zig do anything with this? get_ProductID: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IPMTileInfo, pProductID: ?*Guid, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IPMTileInfo, pProductID: ?*Guid, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_TileID: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IPMTileInfo, pTileID: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IPMTileInfo, pTileID: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_TemplateType: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IPMTileInfo, pTemplateType: ?*TILE_TEMPLATE_TYPE, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IPMTileInfo, pTemplateType: ?*TILE_TEMPLATE_TYPE, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_HubPinnedState: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IPMTileInfo, HubType: PM_TILE_HUBTYPE, pPinned: ?*BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IPMTileInfo, HubType: PM_TILE_HUBTYPE, pPinned: ?*BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_HubPosition: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IPMTileInfo, HubType: PM_TILE_HUBTYPE, pPosition: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IPMTileInfo, HubType: PM_TILE_HUBTYPE, pPosition: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_IsNotified: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IPMTileInfo, pIsNotified: ?*BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IPMTileInfo, pIsNotified: ?*BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_IsDefault: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IPMTileInfo, pIsDefault: ?*BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IPMTileInfo, pIsDefault: ?*BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_TaskID: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IPMTileInfo, pTaskID: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IPMTileInfo, pTaskID: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_TileType: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IPMTileInfo, pStartTileType: ?*PM_STARTTILE_TYPE, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IPMTileInfo, pStartTileType: ?*PM_STARTTILE_TYPE, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_IsThemable: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IPMTileInfo, pIsThemable: ?*BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IPMTileInfo, pIsThemable: ?*BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_PropertyById: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IPMTileInfo, PropID: u32, ppPropInfo: ?*?*IPMTilePropertyInfo, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IPMTileInfo, PropID: u32, ppPropInfo: ?*?*IPMTilePropertyInfo, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_InvocationInfo: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IPMTileInfo, pImageUrn: ?*?BSTR, pParameters: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IPMTileInfo, pImageUrn: ?*?BSTR, pParameters: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_PropertyEnum: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IPMTileInfo, ppTilePropEnum: ?*?*IPMTilePropertyEnumerator, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IPMTileInfo, ppTilePropEnum: ?*?*IPMTilePropertyEnumerator, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_HubTileSize: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IPMTileInfo, HubType: PM_TILE_HUBTYPE, pSize: ?*PM_TILE_SIZE, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IPMTileInfo, HubType: PM_TILE_HUBTYPE, pSize: ?*PM_TILE_SIZE, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, set_HubPosition: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IPMTileInfo, HubType: PM_TILE_HUBTYPE, Position: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IPMTileInfo, HubType: PM_TILE_HUBTYPE, Position: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, set_NotifiedState: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IPMTileInfo, Notified: BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IPMTileInfo, Notified: BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, set_HubPinnedState: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IPMTileInfo, HubType: PM_TILE_HUBTYPE, Pinned: BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IPMTileInfo, HubType: PM_TILE_HUBTYPE, Pinned: BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, set_HubTileSize: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IPMTileInfo, HubType: PM_TILE_HUBTYPE, Size: PM_TILE_SIZE, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IPMTileInfo, HubType: PM_TILE_HUBTYPE, Size: PM_TILE_SIZE, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, set_InvocationInfo: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IPMTileInfo, TaskName: ?BSTR, TaskParameters: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IPMTileInfo, TaskName: ?BSTR, TaskParameters: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_StartTileBlob: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IPMTileInfo, pBlob: ?*PM_STARTTILEBLOB, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IPMTileInfo, pBlob: ?*PM_STARTTILEBLOB, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_IsRestoring: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IPMTileInfo, pIsRestoring: ?*BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IPMTileInfo, pIsRestoring: ?*BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_IsAutoRestoreDisabled: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IPMTileInfo, pIsAutoRestoreDisabled: ?*BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IPMTileInfo, pIsAutoRestoreDisabled: ?*BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, set_IsRestoring: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IPMTileInfo, Restoring: BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IPMTileInfo, Restoring: BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, set_IsAutoRestoreDisabled: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IPMTileInfo, AutoRestoreDisabled: BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IPMTileInfo, AutoRestoreDisabled: BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPMTileInfo_get_ProductID(self: *const T, pProductID: ?*Guid) HRESULT { return @as(*const IPMTileInfo.VTable, @ptrCast(self.vtable)).get_ProductID(@as(*const IPMTileInfo, @ptrCast(self)), pProductID); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPMTileInfo_get_TileID(self: *const T, pTileID: ?*?BSTR) HRESULT { return @as(*const IPMTileInfo.VTable, @ptrCast(self.vtable)).get_TileID(@as(*const IPMTileInfo, @ptrCast(self)), pTileID); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPMTileInfo_get_TemplateType(self: *const T, pTemplateType: ?*TILE_TEMPLATE_TYPE) HRESULT { return @as(*const IPMTileInfo.VTable, @ptrCast(self.vtable)).get_TemplateType(@as(*const IPMTileInfo, @ptrCast(self)), pTemplateType); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPMTileInfo_get_HubPinnedState(self: *const T, HubType: PM_TILE_HUBTYPE, pPinned: ?*BOOL) HRESULT { return @as(*const IPMTileInfo.VTable, @ptrCast(self.vtable)).get_HubPinnedState(@as(*const IPMTileInfo, @ptrCast(self)), HubType, pPinned); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPMTileInfo_get_HubPosition(self: *const T, HubType: PM_TILE_HUBTYPE, pPosition: ?*u32) HRESULT { return @as(*const IPMTileInfo.VTable, @ptrCast(self.vtable)).get_HubPosition(@as(*const IPMTileInfo, @ptrCast(self)), HubType, pPosition); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPMTileInfo_get_IsNotified(self: *const T, pIsNotified: ?*BOOL) HRESULT { return @as(*const IPMTileInfo.VTable, @ptrCast(self.vtable)).get_IsNotified(@as(*const IPMTileInfo, @ptrCast(self)), pIsNotified); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPMTileInfo_get_IsDefault(self: *const T, pIsDefault: ?*BOOL) HRESULT { return @as(*const IPMTileInfo.VTable, @ptrCast(self.vtable)).get_IsDefault(@as(*const IPMTileInfo, @ptrCast(self)), pIsDefault); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPMTileInfo_get_TaskID(self: *const T, pTaskID: ?*?BSTR) HRESULT { return @as(*const IPMTileInfo.VTable, @ptrCast(self.vtable)).get_TaskID(@as(*const IPMTileInfo, @ptrCast(self)), pTaskID); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPMTileInfo_get_TileType(self: *const T, pStartTileType: ?*PM_STARTTILE_TYPE) HRESULT { return @as(*const IPMTileInfo.VTable, @ptrCast(self.vtable)).get_TileType(@as(*const IPMTileInfo, @ptrCast(self)), pStartTileType); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPMTileInfo_get_IsThemable(self: *const T, pIsThemable: ?*BOOL) HRESULT { return @as(*const IPMTileInfo.VTable, @ptrCast(self.vtable)).get_IsThemable(@as(*const IPMTileInfo, @ptrCast(self)), pIsThemable); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPMTileInfo_get_PropertyById(self: *const T, PropID: u32, ppPropInfo: ?*?*IPMTilePropertyInfo) HRESULT { return @as(*const IPMTileInfo.VTable, @ptrCast(self.vtable)).get_PropertyById(@as(*const IPMTileInfo, @ptrCast(self)), PropID, ppPropInfo); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPMTileInfo_get_InvocationInfo(self: *const T, pImageUrn: ?*?BSTR, pParameters: ?*?BSTR) HRESULT { return @as(*const IPMTileInfo.VTable, @ptrCast(self.vtable)).get_InvocationInfo(@as(*const IPMTileInfo, @ptrCast(self)), pImageUrn, pParameters); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPMTileInfo_get_PropertyEnum(self: *const T, ppTilePropEnum: ?*?*IPMTilePropertyEnumerator) HRESULT { return @as(*const IPMTileInfo.VTable, @ptrCast(self.vtable)).get_PropertyEnum(@as(*const IPMTileInfo, @ptrCast(self)), ppTilePropEnum); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPMTileInfo_get_HubTileSize(self: *const T, HubType: PM_TILE_HUBTYPE, pSize: ?*PM_TILE_SIZE) HRESULT { return @as(*const IPMTileInfo.VTable, @ptrCast(self.vtable)).get_HubTileSize(@as(*const IPMTileInfo, @ptrCast(self)), HubType, pSize); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPMTileInfo_set_HubPosition(self: *const T, HubType: PM_TILE_HUBTYPE, Position: u32) HRESULT { return @as(*const IPMTileInfo.VTable, @ptrCast(self.vtable)).set_HubPosition(@as(*const IPMTileInfo, @ptrCast(self)), HubType, Position); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPMTileInfo_set_NotifiedState(self: *const T, Notified: BOOL) HRESULT { return @as(*const IPMTileInfo.VTable, @ptrCast(self.vtable)).set_NotifiedState(@as(*const IPMTileInfo, @ptrCast(self)), Notified); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPMTileInfo_set_HubPinnedState(self: *const T, HubType: PM_TILE_HUBTYPE, Pinned: BOOL) HRESULT { return @as(*const IPMTileInfo.VTable, @ptrCast(self.vtable)).set_HubPinnedState(@as(*const IPMTileInfo, @ptrCast(self)), HubType, Pinned); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPMTileInfo_set_HubTileSize(self: *const T, HubType: PM_TILE_HUBTYPE, Size: PM_TILE_SIZE) HRESULT { return @as(*const IPMTileInfo.VTable, @ptrCast(self.vtable)).set_HubTileSize(@as(*const IPMTileInfo, @ptrCast(self)), HubType, Size); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPMTileInfo_set_InvocationInfo(self: *const T, TaskName: ?BSTR, TaskParameters: ?BSTR) HRESULT { return @as(*const IPMTileInfo.VTable, @ptrCast(self.vtable)).set_InvocationInfo(@as(*const IPMTileInfo, @ptrCast(self)), TaskName, TaskParameters); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPMTileInfo_get_StartTileBlob(self: *const T, pBlob: ?*PM_STARTTILEBLOB) HRESULT { return @as(*const IPMTileInfo.VTable, @ptrCast(self.vtable)).get_StartTileBlob(@as(*const IPMTileInfo, @ptrCast(self)), pBlob); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPMTileInfo_get_IsRestoring(self: *const T, pIsRestoring: ?*BOOL) HRESULT { return @as(*const IPMTileInfo.VTable, @ptrCast(self.vtable)).get_IsRestoring(@as(*const IPMTileInfo, @ptrCast(self)), pIsRestoring); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPMTileInfo_get_IsAutoRestoreDisabled(self: *const T, pIsAutoRestoreDisabled: ?*BOOL) HRESULT { return @as(*const IPMTileInfo.VTable, @ptrCast(self.vtable)).get_IsAutoRestoreDisabled(@as(*const IPMTileInfo, @ptrCast(self)), pIsAutoRestoreDisabled); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPMTileInfo_set_IsRestoring(self: *const T, Restoring: BOOL) HRESULT { return @as(*const IPMTileInfo.VTable, @ptrCast(self.vtable)).set_IsRestoring(@as(*const IPMTileInfo, @ptrCast(self)), Restoring); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPMTileInfo_set_IsAutoRestoreDisabled(self: *const T, AutoRestoreDisabled: BOOL) HRESULT { return @as(*const IPMTileInfo.VTable, @ptrCast(self.vtable)).set_IsAutoRestoreDisabled(@as(*const IPMTileInfo, @ptrCast(self)), AutoRestoreDisabled); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IPMTileInfoEnumerator_Value = Guid.initString("ded83065-e462-4b2c-acb5-e39cea61c874"); pub const IID_IPMTileInfoEnumerator = &IID_IPMTileInfoEnumerator_Value; pub const IPMTileInfoEnumerator = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Next: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IPMTileInfoEnumerator, ppTileInfo: ?*?*IPMTileInfo, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IPMTileInfoEnumerator, ppTileInfo: ?*?*IPMTileInfo, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPMTileInfoEnumerator_get_Next(self: *const T, ppTileInfo: ?*?*IPMTileInfo) HRESULT { return @as(*const IPMTileInfoEnumerator.VTable, @ptrCast(self.vtable)).get_Next(@as(*const IPMTileInfoEnumerator, @ptrCast(self)), ppTileInfo); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IPMApplicationInfoEnumerator_Value = Guid.initString("0ec42a96-4d46-4dc6-a3d9-a7acaac0f5fa"); pub const IID_IPMApplicationInfoEnumerator = &IID_IPMApplicationInfoEnumerator_Value; pub const IPMApplicationInfoEnumerator = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Next: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IPMApplicationInfoEnumerator, ppAppInfo: ?*?*IPMApplicationInfo, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IPMApplicationInfoEnumerator, ppAppInfo: ?*?*IPMApplicationInfo, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPMApplicationInfoEnumerator_get_Next(self: *const T, ppAppInfo: ?*?*IPMApplicationInfo) HRESULT { return @as(*const IPMApplicationInfoEnumerator.VTable, @ptrCast(self.vtable)).get_Next(@as(*const IPMApplicationInfoEnumerator, @ptrCast(self)), ppAppInfo); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IPMLiveTileJobInfo_Value = Guid.initString("6009a81f-4710-4697-b5f6-2208f6057b8e"); pub const IID_IPMLiveTileJobInfo = &IID_IPMLiveTileJobInfo_Value; pub const IPMLiveTileJobInfo = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, // TODO: this function has a "SpecialName", should Zig do anything with this? get_ProductID: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IPMLiveTileJobInfo, pProductID: ?*Guid, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IPMLiveTileJobInfo, pProductID: ?*Guid, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_TileID: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IPMLiveTileJobInfo, pTileID: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IPMLiveTileJobInfo, pTileID: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_NextSchedule: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IPMLiveTileJobInfo, pNextSchedule: ?*FILETIME, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IPMLiveTileJobInfo, pNextSchedule: ?*FILETIME, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, set_NextSchedule: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IPMLiveTileJobInfo, ftNextSchedule: FILETIME, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IPMLiveTileJobInfo, ftNextSchedule: FILETIME, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_StartSchedule: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IPMLiveTileJobInfo, pStartSchedule: ?*FILETIME, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IPMLiveTileJobInfo, pStartSchedule: ?*FILETIME, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, set_StartSchedule: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IPMLiveTileJobInfo, ftStartSchedule: FILETIME, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IPMLiveTileJobInfo, ftStartSchedule: FILETIME, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_IntervalDuration: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IPMLiveTileJobInfo, pIntervalDuration: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IPMLiveTileJobInfo, pIntervalDuration: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, set_IntervalDuration: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IPMLiveTileJobInfo, ulIntervalDuration: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IPMLiveTileJobInfo, ulIntervalDuration: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_RunForever: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IPMLiveTileJobInfo, IsRunForever: ?*BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IPMLiveTileJobInfo, IsRunForever: ?*BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, set_RunForever: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IPMLiveTileJobInfo, fRunForever: BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IPMLiveTileJobInfo, fRunForever: BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_MaxRunCount: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IPMLiveTileJobInfo, pMaxRunCount: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IPMLiveTileJobInfo, pMaxRunCount: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, set_MaxRunCount: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IPMLiveTileJobInfo, ulMaxRunCount: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IPMLiveTileJobInfo, ulMaxRunCount: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_RunCount: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IPMLiveTileJobInfo, pRunCount: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IPMLiveTileJobInfo, pRunCount: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, set_RunCount: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IPMLiveTileJobInfo, ulRunCount: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IPMLiveTileJobInfo, ulRunCount: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_RecurrenceType: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IPMLiveTileJobInfo, pRecurrenceType: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IPMLiveTileJobInfo, pRecurrenceType: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, set_RecurrenceType: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IPMLiveTileJobInfo, ulRecurrenceType: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IPMLiveTileJobInfo, ulRecurrenceType: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_TileXML: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IPMLiveTileJobInfo, pTileXml: ?[*]?*u8, pcbTileXml: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IPMLiveTileJobInfo, pTileXml: ?[*]?*u8, pcbTileXml: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, set_TileXML: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IPMLiveTileJobInfo, pTileXml: [*:0]u8, cbTileXml: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IPMLiveTileJobInfo, pTileXml: [*:0]u8, cbTileXml: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_UrlXML: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IPMLiveTileJobInfo, pUrlXML: ?[*]?*u8, pcbUrlXML: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IPMLiveTileJobInfo, pUrlXML: ?[*]?*u8, pcbUrlXML: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, set_UrlXML: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IPMLiveTileJobInfo, pUrlXML: [*:0]u8, cbUrlXML: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IPMLiveTileJobInfo, pUrlXML: [*:0]u8, cbUrlXML: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_AttemptCount: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IPMLiveTileJobInfo, pAttemptCount: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IPMLiveTileJobInfo, pAttemptCount: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, set_AttemptCount: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IPMLiveTileJobInfo, ulAttemptCount: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IPMLiveTileJobInfo, ulAttemptCount: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_DownloadState: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IPMLiveTileJobInfo, pDownloadState: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IPMLiveTileJobInfo, pDownloadState: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, set_DownloadState: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IPMLiveTileJobInfo, ulDownloadState: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IPMLiveTileJobInfo, ulDownloadState: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPMLiveTileJobInfo_get_ProductID(self: *const T, pProductID: ?*Guid) HRESULT { return @as(*const IPMLiveTileJobInfo.VTable, @ptrCast(self.vtable)).get_ProductID(@as(*const IPMLiveTileJobInfo, @ptrCast(self)), pProductID); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPMLiveTileJobInfo_get_TileID(self: *const T, pTileID: ?*?BSTR) HRESULT { return @as(*const IPMLiveTileJobInfo.VTable, @ptrCast(self.vtable)).get_TileID(@as(*const IPMLiveTileJobInfo, @ptrCast(self)), pTileID); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPMLiveTileJobInfo_get_NextSchedule(self: *const T, pNextSchedule: ?*FILETIME) HRESULT { return @as(*const IPMLiveTileJobInfo.VTable, @ptrCast(self.vtable)).get_NextSchedule(@as(*const IPMLiveTileJobInfo, @ptrCast(self)), pNextSchedule); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPMLiveTileJobInfo_set_NextSchedule(self: *const T, ftNextSchedule: FILETIME) HRESULT { return @as(*const IPMLiveTileJobInfo.VTable, @ptrCast(self.vtable)).set_NextSchedule(@as(*const IPMLiveTileJobInfo, @ptrCast(self)), ftNextSchedule); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPMLiveTileJobInfo_get_StartSchedule(self: *const T, pStartSchedule: ?*FILETIME) HRESULT { return @as(*const IPMLiveTileJobInfo.VTable, @ptrCast(self.vtable)).get_StartSchedule(@as(*const IPMLiveTileJobInfo, @ptrCast(self)), pStartSchedule); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPMLiveTileJobInfo_set_StartSchedule(self: *const T, ftStartSchedule: FILETIME) HRESULT { return @as(*const IPMLiveTileJobInfo.VTable, @ptrCast(self.vtable)).set_StartSchedule(@as(*const IPMLiveTileJobInfo, @ptrCast(self)), ftStartSchedule); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPMLiveTileJobInfo_get_IntervalDuration(self: *const T, pIntervalDuration: ?*u32) HRESULT { return @as(*const IPMLiveTileJobInfo.VTable, @ptrCast(self.vtable)).get_IntervalDuration(@as(*const IPMLiveTileJobInfo, @ptrCast(self)), pIntervalDuration); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPMLiveTileJobInfo_set_IntervalDuration(self: *const T, ulIntervalDuration: u32) HRESULT { return @as(*const IPMLiveTileJobInfo.VTable, @ptrCast(self.vtable)).set_IntervalDuration(@as(*const IPMLiveTileJobInfo, @ptrCast(self)), ulIntervalDuration); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPMLiveTileJobInfo_get_RunForever(self: *const T, IsRunForever: ?*BOOL) HRESULT { return @as(*const IPMLiveTileJobInfo.VTable, @ptrCast(self.vtable)).get_RunForever(@as(*const IPMLiveTileJobInfo, @ptrCast(self)), IsRunForever); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPMLiveTileJobInfo_set_RunForever(self: *const T, fRunForever: BOOL) HRESULT { return @as(*const IPMLiveTileJobInfo.VTable, @ptrCast(self.vtable)).set_RunForever(@as(*const IPMLiveTileJobInfo, @ptrCast(self)), fRunForever); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPMLiveTileJobInfo_get_MaxRunCount(self: *const T, pMaxRunCount: ?*u32) HRESULT { return @as(*const IPMLiveTileJobInfo.VTable, @ptrCast(self.vtable)).get_MaxRunCount(@as(*const IPMLiveTileJobInfo, @ptrCast(self)), pMaxRunCount); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPMLiveTileJobInfo_set_MaxRunCount(self: *const T, ulMaxRunCount: u32) HRESULT { return @as(*const IPMLiveTileJobInfo.VTable, @ptrCast(self.vtable)).set_MaxRunCount(@as(*const IPMLiveTileJobInfo, @ptrCast(self)), ulMaxRunCount); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPMLiveTileJobInfo_get_RunCount(self: *const T, pRunCount: ?*u32) HRESULT { return @as(*const IPMLiveTileJobInfo.VTable, @ptrCast(self.vtable)).get_RunCount(@as(*const IPMLiveTileJobInfo, @ptrCast(self)), pRunCount); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPMLiveTileJobInfo_set_RunCount(self: *const T, ulRunCount: u32) HRESULT { return @as(*const IPMLiveTileJobInfo.VTable, @ptrCast(self.vtable)).set_RunCount(@as(*const IPMLiveTileJobInfo, @ptrCast(self)), ulRunCount); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPMLiveTileJobInfo_get_RecurrenceType(self: *const T, pRecurrenceType: ?*u32) HRESULT { return @as(*const IPMLiveTileJobInfo.VTable, @ptrCast(self.vtable)).get_RecurrenceType(@as(*const IPMLiveTileJobInfo, @ptrCast(self)), pRecurrenceType); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPMLiveTileJobInfo_set_RecurrenceType(self: *const T, ulRecurrenceType: u32) HRESULT { return @as(*const IPMLiveTileJobInfo.VTable, @ptrCast(self.vtable)).set_RecurrenceType(@as(*const IPMLiveTileJobInfo, @ptrCast(self)), ulRecurrenceType); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPMLiveTileJobInfo_get_TileXML(self: *const T, pTileXml: ?[*]?*u8, pcbTileXml: ?*u32) HRESULT { return @as(*const IPMLiveTileJobInfo.VTable, @ptrCast(self.vtable)).get_TileXML(@as(*const IPMLiveTileJobInfo, @ptrCast(self)), pTileXml, pcbTileXml); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPMLiveTileJobInfo_set_TileXML(self: *const T, pTileXml: [*:0]u8, cbTileXml: u32) HRESULT { return @as(*const IPMLiveTileJobInfo.VTable, @ptrCast(self.vtable)).set_TileXML(@as(*const IPMLiveTileJobInfo, @ptrCast(self)), pTileXml, cbTileXml); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPMLiveTileJobInfo_get_UrlXML(self: *const T, pUrlXML: ?[*]?*u8, pcbUrlXML: ?*u32) HRESULT { return @as(*const IPMLiveTileJobInfo.VTable, @ptrCast(self.vtable)).get_UrlXML(@as(*const IPMLiveTileJobInfo, @ptrCast(self)), pUrlXML, pcbUrlXML); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPMLiveTileJobInfo_set_UrlXML(self: *const T, pUrlXML: [*:0]u8, cbUrlXML: u32) HRESULT { return @as(*const IPMLiveTileJobInfo.VTable, @ptrCast(self.vtable)).set_UrlXML(@as(*const IPMLiveTileJobInfo, @ptrCast(self)), pUrlXML, cbUrlXML); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPMLiveTileJobInfo_get_AttemptCount(self: *const T, pAttemptCount: ?*u32) HRESULT { return @as(*const IPMLiveTileJobInfo.VTable, @ptrCast(self.vtable)).get_AttemptCount(@as(*const IPMLiveTileJobInfo, @ptrCast(self)), pAttemptCount); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPMLiveTileJobInfo_set_AttemptCount(self: *const T, ulAttemptCount: u32) HRESULT { return @as(*const IPMLiveTileJobInfo.VTable, @ptrCast(self.vtable)).set_AttemptCount(@as(*const IPMLiveTileJobInfo, @ptrCast(self)), ulAttemptCount); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPMLiveTileJobInfo_get_DownloadState(self: *const T, pDownloadState: ?*u32) HRESULT { return @as(*const IPMLiveTileJobInfo.VTable, @ptrCast(self.vtable)).get_DownloadState(@as(*const IPMLiveTileJobInfo, @ptrCast(self)), pDownloadState); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPMLiveTileJobInfo_set_DownloadState(self: *const T, ulDownloadState: u32) HRESULT { return @as(*const IPMLiveTileJobInfo.VTable, @ptrCast(self.vtable)).set_DownloadState(@as(*const IPMLiveTileJobInfo, @ptrCast(self)), ulDownloadState); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IPMLiveTileJobInfoEnumerator_Value = Guid.initString("bc042582-9415-4f36-9f99-06f104c07c03"); pub const IID_IPMLiveTileJobInfoEnumerator = &IID_IPMLiveTileJobInfoEnumerator_Value; pub const IPMLiveTileJobInfoEnumerator = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Next: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IPMLiveTileJobInfoEnumerator, ppLiveTileJobInfo: ?*?*IPMLiveTileJobInfo, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IPMLiveTileJobInfoEnumerator, ppLiveTileJobInfo: ?*?*IPMLiveTileJobInfo, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPMLiveTileJobInfoEnumerator_get_Next(self: *const T, ppLiveTileJobInfo: ?*?*IPMLiveTileJobInfo) HRESULT { return @as(*const IPMLiveTileJobInfoEnumerator.VTable, @ptrCast(self.vtable)).get_Next(@as(*const IPMLiveTileJobInfoEnumerator, @ptrCast(self)), ppLiveTileJobInfo); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IPMDeploymentManager_Value = Guid.initString("35f785fa-1979-4a8b-bc8f-fd70eb0d1544"); pub const IID_IPMDeploymentManager = &IID_IPMDeploymentManager_Value; pub const IPMDeploymentManager = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, ReportDownloadBegin: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IPMDeploymentManager, productID: Guid, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IPMDeploymentManager, productID: Guid, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, ReportDownloadProgress: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IPMDeploymentManager, productID: Guid, usProgress: u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IPMDeploymentManager, productID: Guid, usProgress: u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, ReportDownloadComplete: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IPMDeploymentManager, productID: Guid, hrResult: HRESULT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IPMDeploymentManager, productID: Guid, hrResult: HRESULT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, BeginInstall: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IPMDeploymentManager, pInstallInfo: ?*PM_INSTALLINFO, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IPMDeploymentManager, pInstallInfo: ?*PM_INSTALLINFO, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, BeginUpdate: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IPMDeploymentManager, pUpdateInfo: ?*PM_UPDATEINFO, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IPMDeploymentManager, pUpdateInfo: ?*PM_UPDATEINFO, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, BeginDeployPackage: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IPMDeploymentManager, pInstallInfo: ?*PM_INSTALLINFO, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IPMDeploymentManager, pInstallInfo: ?*PM_INSTALLINFO, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, BeginUpdateDeployedPackageLegacy: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IPMDeploymentManager, pUpdateInfo: ?*PM_UPDATEINFO_LEGACY, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IPMDeploymentManager, pUpdateInfo: ?*PM_UPDATEINFO_LEGACY, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, BeginUninstall: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IPMDeploymentManager, productID: Guid, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IPMDeploymentManager, productID: Guid, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, BeginEnterpriseAppInstall: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IPMDeploymentManager, pInstallInfo: ?*PM_INSTALLINFO, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IPMDeploymentManager, pInstallInfo: ?*PM_INSTALLINFO, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, BeginEnterpriseAppUpdate: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IPMDeploymentManager, pUpdateInfo: ?*PM_UPDATEINFO, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IPMDeploymentManager, pUpdateInfo: ?*PM_UPDATEINFO, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, BeginUpdateLicense: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IPMDeploymentManager, productID: Guid, offerID: Guid, pbLicense: [*:0]u8, cbLicense: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IPMDeploymentManager, productID: Guid, offerID: Guid, pbLicense: [*:0]u8, cbLicense: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetLicenseChallenge: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IPMDeploymentManager, PackagePath: ?BSTR, ppbChallenge: ?[*]?*u8, pcbChallenge: ?*u32, ppbKID: ?[*]?*u8, pcbKID: ?*u32, ppbDeviceID: ?[*]?*u8, pcbDeviceID: ?*u32, ppbSaltValue: ?[*]?*u8, pcbSaltValue: ?*u32, ppbKGVValue: ?[*]?*u8, pcbKGVValue: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IPMDeploymentManager, PackagePath: ?BSTR, ppbChallenge: ?[*]?*u8, pcbChallenge: ?*u32, ppbKID: ?[*]?*u8, pcbKID: ?*u32, ppbDeviceID: ?[*]?*u8, pcbDeviceID: ?*u32, ppbSaltValue: ?[*]?*u8, pcbSaltValue: ?*u32, ppbKGVValue: ?[*]?*u8, pcbKGVValue: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetLicenseChallengeByProductID: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IPMDeploymentManager, ProductID: Guid, ppbChallenge: ?[*]?*u8, pcbLicense: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IPMDeploymentManager, ProductID: Guid, ppbChallenge: ?[*]?*u8, pcbLicense: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetLicenseChallengeByProductID2: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IPMDeploymentManager, ProductID: Guid, ppbChallenge: ?[*]?*u8, pcbLicense: ?*u32, ppbKID: ?[*]?*u8, pcbKID: ?*u32, ppbDeviceID: ?[*]?*u8, pcbDeviceID: ?*u32, ppbSaltValue: ?[*]?*u8, pcbSaltValue: ?*u32, ppbKGVValue: ?[*]?*u8, pcbKGVValue: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IPMDeploymentManager, ProductID: Guid, ppbChallenge: ?[*]?*u8, pcbLicense: ?*u32, ppbKID: ?[*]?*u8, pcbKID: ?*u32, ppbDeviceID: ?[*]?*u8, pcbDeviceID: ?*u32, ppbSaltValue: ?[*]?*u8, pcbSaltValue: ?*u32, ppbKGVValue: ?[*]?*u8, pcbKGVValue: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, RevokeLicense: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IPMDeploymentManager, productID: Guid, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IPMDeploymentManager, productID: Guid, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, RebindMdilBinaries: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IPMDeploymentManager, ProductID: Guid, FileNames: ?*SAFEARRAY, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IPMDeploymentManager, ProductID: Guid, FileNames: ?*SAFEARRAY, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, RebindAllMdilBinaries: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IPMDeploymentManager, ProductID: Guid, InstanceID: Guid, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IPMDeploymentManager, ProductID: Guid, InstanceID: Guid, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, RegenerateXbf: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IPMDeploymentManager, ProductID: Guid, AssemblyPaths: ?*SAFEARRAY, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IPMDeploymentManager, ProductID: Guid, AssemblyPaths: ?*SAFEARRAY, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GenerateXbfForCurrentLocale: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IPMDeploymentManager, ProductID: Guid, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IPMDeploymentManager, ProductID: Guid, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, BeginProvision: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IPMDeploymentManager, ProductID: Guid, XMLpath: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IPMDeploymentManager, ProductID: Guid, XMLpath: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, BeginDeprovision: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IPMDeploymentManager, ProductID: Guid, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IPMDeploymentManager, ProductID: Guid, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, ReindexSQLCEDatabases: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IPMDeploymentManager, ProductID: Guid, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IPMDeploymentManager, ProductID: Guid, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetApplicationsNeedMaintenance: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IPMDeploymentManager, RequiredMaintenanceOperations: u32, pcApplications: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IPMDeploymentManager, RequiredMaintenanceOperations: u32, pcApplications: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, UpdateChamberProfile: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IPMDeploymentManager, ProductID: Guid, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IPMDeploymentManager, ProductID: Guid, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, EnterprisePolicyIsApplicationAllowed: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IPMDeploymentManager, productId: Guid, publisherName: ?[*:0]const u16, pIsAllowed: ?*BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IPMDeploymentManager, productId: Guid, publisherName: ?[*:0]const u16, pIsAllowed: ?*BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, BeginUpdateDeployedPackage: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IPMDeploymentManager, pUpdateInfo: ?*PM_UPDATEINFO, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IPMDeploymentManager, pUpdateInfo: ?*PM_UPDATEINFO, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, ReportRestoreCancelled: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IPMDeploymentManager, productID: Guid, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IPMDeploymentManager, productID: Guid, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, ResolveResourceString: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IPMDeploymentManager, resourceString: ?[*:0]const u16, pResolvedResourceString: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IPMDeploymentManager, resourceString: ?[*:0]const u16, pResolvedResourceString: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, UpdateCapabilitiesForModernApps: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IPMDeploymentManager, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IPMDeploymentManager, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, ReportDownloadStatusUpdate: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IPMDeploymentManager, productId: Guid, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IPMDeploymentManager, productId: Guid, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, BeginUninstallWithOptions: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IPMDeploymentManager, productID: Guid, removalOptions: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IPMDeploymentManager, productID: Guid, removalOptions: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, BindDeferredMdilBinaries: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IPMDeploymentManager, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IPMDeploymentManager, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GenerateXamlLightupXbfForCurrentLocale: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IPMDeploymentManager, PackageFamilyName: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IPMDeploymentManager, PackageFamilyName: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, AddLicenseForAppx: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IPMDeploymentManager, productID: Guid, pbLicense: [*:0]u8, cbLicense: u32, pbPlayReadyHeader: ?[*:0]u8, cbPlayReadyHeader: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IPMDeploymentManager, productID: Guid, pbLicense: [*:0]u8, cbLicense: u32, pbPlayReadyHeader: ?[*:0]u8, cbPlayReadyHeader: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, FixJunctionsForAppsOnSDCard: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IPMDeploymentManager, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IPMDeploymentManager, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPMDeploymentManager_ReportDownloadBegin(self: *const T, productID: Guid) HRESULT { return @as(*const IPMDeploymentManager.VTable, @ptrCast(self.vtable)).ReportDownloadBegin(@as(*const IPMDeploymentManager, @ptrCast(self)), productID); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPMDeploymentManager_ReportDownloadProgress(self: *const T, productID: Guid, usProgress: u16) HRESULT { return @as(*const IPMDeploymentManager.VTable, @ptrCast(self.vtable)).ReportDownloadProgress(@as(*const IPMDeploymentManager, @ptrCast(self)), productID, usProgress); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPMDeploymentManager_ReportDownloadComplete(self: *const T, productID: Guid, hrResult: HRESULT) HRESULT { return @as(*const IPMDeploymentManager.VTable, @ptrCast(self.vtable)).ReportDownloadComplete(@as(*const IPMDeploymentManager, @ptrCast(self)), productID, hrResult); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPMDeploymentManager_BeginInstall(self: *const T, pInstallInfo: ?*PM_INSTALLINFO) HRESULT { return @as(*const IPMDeploymentManager.VTable, @ptrCast(self.vtable)).BeginInstall(@as(*const IPMDeploymentManager, @ptrCast(self)), pInstallInfo); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPMDeploymentManager_BeginUpdate(self: *const T, pUpdateInfo: ?*PM_UPDATEINFO) HRESULT { return @as(*const IPMDeploymentManager.VTable, @ptrCast(self.vtable)).BeginUpdate(@as(*const IPMDeploymentManager, @ptrCast(self)), pUpdateInfo); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPMDeploymentManager_BeginDeployPackage(self: *const T, pInstallInfo: ?*PM_INSTALLINFO) HRESULT { return @as(*const IPMDeploymentManager.VTable, @ptrCast(self.vtable)).BeginDeployPackage(@as(*const IPMDeploymentManager, @ptrCast(self)), pInstallInfo); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPMDeploymentManager_BeginUpdateDeployedPackageLegacy(self: *const T, pUpdateInfo: ?*PM_UPDATEINFO_LEGACY) HRESULT { return @as(*const IPMDeploymentManager.VTable, @ptrCast(self.vtable)).BeginUpdateDeployedPackageLegacy(@as(*const IPMDeploymentManager, @ptrCast(self)), pUpdateInfo); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPMDeploymentManager_BeginUninstall(self: *const T, productID: Guid) HRESULT { return @as(*const IPMDeploymentManager.VTable, @ptrCast(self.vtable)).BeginUninstall(@as(*const IPMDeploymentManager, @ptrCast(self)), productID); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPMDeploymentManager_BeginEnterpriseAppInstall(self: *const T, pInstallInfo: ?*PM_INSTALLINFO) HRESULT { return @as(*const IPMDeploymentManager.VTable, @ptrCast(self.vtable)).BeginEnterpriseAppInstall(@as(*const IPMDeploymentManager, @ptrCast(self)), pInstallInfo); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPMDeploymentManager_BeginEnterpriseAppUpdate(self: *const T, pUpdateInfo: ?*PM_UPDATEINFO) HRESULT { return @as(*const IPMDeploymentManager.VTable, @ptrCast(self.vtable)).BeginEnterpriseAppUpdate(@as(*const IPMDeploymentManager, @ptrCast(self)), pUpdateInfo); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPMDeploymentManager_BeginUpdateLicense(self: *const T, productID: Guid, offerID: Guid, pbLicense: [*:0]u8, cbLicense: u32) HRESULT { return @as(*const IPMDeploymentManager.VTable, @ptrCast(self.vtable)).BeginUpdateLicense(@as(*const IPMDeploymentManager, @ptrCast(self)), productID, offerID, pbLicense, cbLicense); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPMDeploymentManager_GetLicenseChallenge(self: *const T, PackagePath: ?BSTR, ppbChallenge: ?[*]?*u8, pcbChallenge: ?*u32, ppbKID: ?[*]?*u8, pcbKID: ?*u32, ppbDeviceID: ?[*]?*u8, pcbDeviceID: ?*u32, ppbSaltValue: ?[*]?*u8, pcbSaltValue: ?*u32, ppbKGVValue: ?[*]?*u8, pcbKGVValue: ?*u32) HRESULT { return @as(*const IPMDeploymentManager.VTable, @ptrCast(self.vtable)).GetLicenseChallenge(@as(*const IPMDeploymentManager, @ptrCast(self)), PackagePath, ppbChallenge, pcbChallenge, ppbKID, pcbKID, ppbDeviceID, pcbDeviceID, ppbSaltValue, pcbSaltValue, ppbKGVValue, pcbKGVValue); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPMDeploymentManager_GetLicenseChallengeByProductID(self: *const T, ProductID: Guid, ppbChallenge: ?[*]?*u8, pcbLicense: ?*u32) HRESULT { return @as(*const IPMDeploymentManager.VTable, @ptrCast(self.vtable)).GetLicenseChallengeByProductID(@as(*const IPMDeploymentManager, @ptrCast(self)), ProductID, ppbChallenge, pcbLicense); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPMDeploymentManager_GetLicenseChallengeByProductID2(self: *const T, ProductID: Guid, ppbChallenge: ?[*]?*u8, pcbLicense: ?*u32, ppbKID: ?[*]?*u8, pcbKID: ?*u32, ppbDeviceID: ?[*]?*u8, pcbDeviceID: ?*u32, ppbSaltValue: ?[*]?*u8, pcbSaltValue: ?*u32, ppbKGVValue: ?[*]?*u8, pcbKGVValue: ?*u32) HRESULT { return @as(*const IPMDeploymentManager.VTable, @ptrCast(self.vtable)).GetLicenseChallengeByProductID2(@as(*const IPMDeploymentManager, @ptrCast(self)), ProductID, ppbChallenge, pcbLicense, ppbKID, pcbKID, ppbDeviceID, pcbDeviceID, ppbSaltValue, pcbSaltValue, ppbKGVValue, pcbKGVValue); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPMDeploymentManager_RevokeLicense(self: *const T, productID: Guid) HRESULT { return @as(*const IPMDeploymentManager.VTable, @ptrCast(self.vtable)).RevokeLicense(@as(*const IPMDeploymentManager, @ptrCast(self)), productID); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPMDeploymentManager_RebindMdilBinaries(self: *const T, ProductID: Guid, FileNames: ?*SAFEARRAY) HRESULT { return @as(*const IPMDeploymentManager.VTable, @ptrCast(self.vtable)).RebindMdilBinaries(@as(*const IPMDeploymentManager, @ptrCast(self)), ProductID, FileNames); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPMDeploymentManager_RebindAllMdilBinaries(self: *const T, ProductID: Guid, InstanceID: Guid) HRESULT { return @as(*const IPMDeploymentManager.VTable, @ptrCast(self.vtable)).RebindAllMdilBinaries(@as(*const IPMDeploymentManager, @ptrCast(self)), ProductID, InstanceID); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPMDeploymentManager_RegenerateXbf(self: *const T, ProductID: Guid, AssemblyPaths: ?*SAFEARRAY) HRESULT { return @as(*const IPMDeploymentManager.VTable, @ptrCast(self.vtable)).RegenerateXbf(@as(*const IPMDeploymentManager, @ptrCast(self)), ProductID, AssemblyPaths); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPMDeploymentManager_GenerateXbfForCurrentLocale(self: *const T, ProductID: Guid) HRESULT { return @as(*const IPMDeploymentManager.VTable, @ptrCast(self.vtable)).GenerateXbfForCurrentLocale(@as(*const IPMDeploymentManager, @ptrCast(self)), ProductID); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPMDeploymentManager_BeginProvision(self: *const T, ProductID: Guid, XMLpath: ?BSTR) HRESULT { return @as(*const IPMDeploymentManager.VTable, @ptrCast(self.vtable)).BeginProvision(@as(*const IPMDeploymentManager, @ptrCast(self)), ProductID, XMLpath); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPMDeploymentManager_BeginDeprovision(self: *const T, ProductID: Guid) HRESULT { return @as(*const IPMDeploymentManager.VTable, @ptrCast(self.vtable)).BeginDeprovision(@as(*const IPMDeploymentManager, @ptrCast(self)), ProductID); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPMDeploymentManager_ReindexSQLCEDatabases(self: *const T, ProductID: Guid) HRESULT { return @as(*const IPMDeploymentManager.VTable, @ptrCast(self.vtable)).ReindexSQLCEDatabases(@as(*const IPMDeploymentManager, @ptrCast(self)), ProductID); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPMDeploymentManager_SetApplicationsNeedMaintenance(self: *const T, RequiredMaintenanceOperations: u32, pcApplications: ?*u32) HRESULT { return @as(*const IPMDeploymentManager.VTable, @ptrCast(self.vtable)).SetApplicationsNeedMaintenance(@as(*const IPMDeploymentManager, @ptrCast(self)), RequiredMaintenanceOperations, pcApplications); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPMDeploymentManager_UpdateChamberProfile(self: *const T, ProductID: Guid) HRESULT { return @as(*const IPMDeploymentManager.VTable, @ptrCast(self.vtable)).UpdateChamberProfile(@as(*const IPMDeploymentManager, @ptrCast(self)), ProductID); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPMDeploymentManager_EnterprisePolicyIsApplicationAllowed(self: *const T, productId: Guid, publisherName: ?[*:0]const u16, pIsAllowed: ?*BOOL) HRESULT { return @as(*const IPMDeploymentManager.VTable, @ptrCast(self.vtable)).EnterprisePolicyIsApplicationAllowed(@as(*const IPMDeploymentManager, @ptrCast(self)), productId, publisherName, pIsAllowed); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPMDeploymentManager_BeginUpdateDeployedPackage(self: *const T, pUpdateInfo: ?*PM_UPDATEINFO) HRESULT { return @as(*const IPMDeploymentManager.VTable, @ptrCast(self.vtable)).BeginUpdateDeployedPackage(@as(*const IPMDeploymentManager, @ptrCast(self)), pUpdateInfo); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPMDeploymentManager_ReportRestoreCancelled(self: *const T, productID: Guid) HRESULT { return @as(*const IPMDeploymentManager.VTable, @ptrCast(self.vtable)).ReportRestoreCancelled(@as(*const IPMDeploymentManager, @ptrCast(self)), productID); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPMDeploymentManager_ResolveResourceString(self: *const T, resourceString: ?[*:0]const u16, pResolvedResourceString: ?*?BSTR) HRESULT { return @as(*const IPMDeploymentManager.VTable, @ptrCast(self.vtable)).ResolveResourceString(@as(*const IPMDeploymentManager, @ptrCast(self)), resourceString, pResolvedResourceString); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPMDeploymentManager_UpdateCapabilitiesForModernApps(self: *const T) HRESULT { return @as(*const IPMDeploymentManager.VTable, @ptrCast(self.vtable)).UpdateCapabilitiesForModernApps(@as(*const IPMDeploymentManager, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPMDeploymentManager_ReportDownloadStatusUpdate(self: *const T, productId: Guid) HRESULT { return @as(*const IPMDeploymentManager.VTable, @ptrCast(self.vtable)).ReportDownloadStatusUpdate(@as(*const IPMDeploymentManager, @ptrCast(self)), productId); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPMDeploymentManager_BeginUninstallWithOptions(self: *const T, productID: Guid, removalOptions: u32) HRESULT { return @as(*const IPMDeploymentManager.VTable, @ptrCast(self.vtable)).BeginUninstallWithOptions(@as(*const IPMDeploymentManager, @ptrCast(self)), productID, removalOptions); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPMDeploymentManager_BindDeferredMdilBinaries(self: *const T) HRESULT { return @as(*const IPMDeploymentManager.VTable, @ptrCast(self.vtable)).BindDeferredMdilBinaries(@as(*const IPMDeploymentManager, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPMDeploymentManager_GenerateXamlLightupXbfForCurrentLocale(self: *const T, PackageFamilyName: ?BSTR) HRESULT { return @as(*const IPMDeploymentManager.VTable, @ptrCast(self.vtable)).GenerateXamlLightupXbfForCurrentLocale(@as(*const IPMDeploymentManager, @ptrCast(self)), PackageFamilyName); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPMDeploymentManager_AddLicenseForAppx(self: *const T, productID: Guid, pbLicense: [*:0]u8, cbLicense: u32, pbPlayReadyHeader: ?[*:0]u8, cbPlayReadyHeader: u32) HRESULT { return @as(*const IPMDeploymentManager.VTable, @ptrCast(self.vtable)).AddLicenseForAppx(@as(*const IPMDeploymentManager, @ptrCast(self)), productID, pbLicense, cbLicense, pbPlayReadyHeader, cbPlayReadyHeader); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPMDeploymentManager_FixJunctionsForAppsOnSDCard(self: *const T) HRESULT { return @as(*const IPMDeploymentManager.VTable, @ptrCast(self.vtable)).FixJunctionsForAppsOnSDCard(@as(*const IPMDeploymentManager, @ptrCast(self))); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IPMEnumerationManager_Value = Guid.initString("698d57c2-292d-4cf3-b73c-d95a6922ed9a"); pub const IID_IPMEnumerationManager = &IID_IPMEnumerationManager_Value; pub const IPMEnumerationManager = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, // TODO: this function has a "SpecialName", should Zig do anything with this? get_AllApplications: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IPMEnumerationManager, ppAppEnum: ?*?*IPMApplicationInfoEnumerator, Filter: PM_ENUM_FILTER, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IPMEnumerationManager, ppAppEnum: ?*?*IPMApplicationInfoEnumerator, Filter: PM_ENUM_FILTER, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_AllTiles: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IPMEnumerationManager, ppTileEnum: ?*?*IPMTileInfoEnumerator, Filter: PM_ENUM_FILTER, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IPMEnumerationManager, ppTileEnum: ?*?*IPMTileInfoEnumerator, Filter: PM_ENUM_FILTER, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_AllTasks: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IPMEnumerationManager, ppTaskEnum: ?*?*IPMTaskInfoEnumerator, Filter: PM_ENUM_FILTER, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IPMEnumerationManager, ppTaskEnum: ?*?*IPMTaskInfoEnumerator, Filter: PM_ENUM_FILTER, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_AllExtensions: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IPMEnumerationManager, ppExtensionEnum: ?*?*IPMExtensionInfoEnumerator, Filter: PM_ENUM_FILTER, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IPMEnumerationManager, ppExtensionEnum: ?*?*IPMExtensionInfoEnumerator, Filter: PM_ENUM_FILTER, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_AllBackgroundServiceAgents: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IPMEnumerationManager, ppBSAEnum: ?*?*IPMBackgroundServiceAgentInfoEnumerator, Filter: PM_ENUM_FILTER, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IPMEnumerationManager, ppBSAEnum: ?*?*IPMBackgroundServiceAgentInfoEnumerator, Filter: PM_ENUM_FILTER, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_AllBackgroundWorkers: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IPMEnumerationManager, ppBSWEnum: ?*?*IPMBackgroundWorkerInfoEnumerator, Filter: PM_ENUM_FILTER, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IPMEnumerationManager, ppBSWEnum: ?*?*IPMBackgroundWorkerInfoEnumerator, Filter: PM_ENUM_FILTER, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_ApplicationInfo: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IPMEnumerationManager, ProductID: Guid, ppAppInfo: ?*?*IPMApplicationInfo, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IPMEnumerationManager, ProductID: Guid, ppAppInfo: ?*?*IPMApplicationInfo, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_TileInfo: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IPMEnumerationManager, ProductID: Guid, TileID: ?BSTR, ppTileInfo: ?*?*IPMTileInfo, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IPMEnumerationManager, ProductID: Guid, TileID: ?BSTR, ppTileInfo: ?*?*IPMTileInfo, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_TaskInfo: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IPMEnumerationManager, ProductID: Guid, TaskID: ?BSTR, ppTaskInfo: ?*?*IPMTaskInfo, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IPMEnumerationManager, ProductID: Guid, TaskID: ?BSTR, ppTaskInfo: ?*?*IPMTaskInfo, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_TaskInfoEx: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IPMEnumerationManager, ProductID: Guid, TaskID: ?[*:0]const u16, ppTaskInfo: ?*?*IPMTaskInfo, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IPMEnumerationManager, ProductID: Guid, TaskID: ?[*:0]const u16, ppTaskInfo: ?*?*IPMTaskInfo, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_BackgroundServiceAgentInfo: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IPMEnumerationManager, BSAID: u32, ppTaskInfo: ?*?*IPMBackgroundServiceAgentInfo, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IPMEnumerationManager, BSAID: u32, ppTaskInfo: ?*?*IPMBackgroundServiceAgentInfo, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_AllLiveTileJobs: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IPMEnumerationManager, ppLiveTileJobEnum: ?*?*IPMLiveTileJobInfoEnumerator, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IPMEnumerationManager, ppLiveTileJobEnum: ?*?*IPMLiveTileJobInfoEnumerator, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_LiveTileJob: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IPMEnumerationManager, ProductID: Guid, TileID: ?BSTR, RecurrenceType: PM_LIVETILE_RECURRENCE_TYPE, ppLiveTileJobInfo: ?*?*IPMLiveTileJobInfo, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IPMEnumerationManager, ProductID: Guid, TileID: ?BSTR, RecurrenceType: PM_LIVETILE_RECURRENCE_TYPE, ppLiveTileJobInfo: ?*?*IPMLiveTileJobInfo, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_ApplicationInfoExternal: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IPMEnumerationManager, ProductID: Guid, ppAppInfo: ?*?*IPMApplicationInfo, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IPMEnumerationManager, ProductID: Guid, ppAppInfo: ?*?*IPMApplicationInfo, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_FileHandlerGenericLogo: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IPMEnumerationManager, FileType: ?BSTR, LogoSize: PM_LOGO_SIZE, pLogo: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IPMEnumerationManager, FileType: ?BSTR, LogoSize: PM_LOGO_SIZE, pLogo: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_ApplicationInfoFromAccessClaims: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IPMEnumerationManager, SysAppID0: ?BSTR, SysAppID1: ?BSTR, ppAppInfo: ?*?*IPMApplicationInfo, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IPMEnumerationManager, SysAppID0: ?BSTR, SysAppID1: ?BSTR, ppAppInfo: ?*?*IPMApplicationInfo, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_StartTileEnumeratorBlob: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IPMEnumerationManager, Filter: PM_ENUM_FILTER, pcTiles: ?*u32, ppTileBlobs: ?[*]?*PM_STARTTILEBLOB, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IPMEnumerationManager, Filter: PM_ENUM_FILTER, pcTiles: ?*u32, ppTileBlobs: ?[*]?*PM_STARTTILEBLOB, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_StartAppEnumeratorBlob: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IPMEnumerationManager, Filter: PM_ENUM_FILTER, pcApps: ?*u32, ppAppBlobs: ?[*]?*PM_STARTAPPBLOB, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IPMEnumerationManager, Filter: PM_ENUM_FILTER, pcApps: ?*u32, ppAppBlobs: ?[*]?*PM_STARTAPPBLOB, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPMEnumerationManager_get_AllApplications(self: *const T, ppAppEnum: ?*?*IPMApplicationInfoEnumerator, Filter: PM_ENUM_FILTER) HRESULT { return @as(*const IPMEnumerationManager.VTable, @ptrCast(self.vtable)).get_AllApplications(@as(*const IPMEnumerationManager, @ptrCast(self)), ppAppEnum, Filter); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPMEnumerationManager_get_AllTiles(self: *const T, ppTileEnum: ?*?*IPMTileInfoEnumerator, Filter: PM_ENUM_FILTER) HRESULT { return @as(*const IPMEnumerationManager.VTable, @ptrCast(self.vtable)).get_AllTiles(@as(*const IPMEnumerationManager, @ptrCast(self)), ppTileEnum, Filter); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPMEnumerationManager_get_AllTasks(self: *const T, ppTaskEnum: ?*?*IPMTaskInfoEnumerator, Filter: PM_ENUM_FILTER) HRESULT { return @as(*const IPMEnumerationManager.VTable, @ptrCast(self.vtable)).get_AllTasks(@as(*const IPMEnumerationManager, @ptrCast(self)), ppTaskEnum, Filter); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPMEnumerationManager_get_AllExtensions(self: *const T, ppExtensionEnum: ?*?*IPMExtensionInfoEnumerator, Filter: PM_ENUM_FILTER) HRESULT { return @as(*const IPMEnumerationManager.VTable, @ptrCast(self.vtable)).get_AllExtensions(@as(*const IPMEnumerationManager, @ptrCast(self)), ppExtensionEnum, Filter); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPMEnumerationManager_get_AllBackgroundServiceAgents(self: *const T, ppBSAEnum: ?*?*IPMBackgroundServiceAgentInfoEnumerator, Filter: PM_ENUM_FILTER) HRESULT { return @as(*const IPMEnumerationManager.VTable, @ptrCast(self.vtable)).get_AllBackgroundServiceAgents(@as(*const IPMEnumerationManager, @ptrCast(self)), ppBSAEnum, Filter); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPMEnumerationManager_get_AllBackgroundWorkers(self: *const T, ppBSWEnum: ?*?*IPMBackgroundWorkerInfoEnumerator, Filter: PM_ENUM_FILTER) HRESULT { return @as(*const IPMEnumerationManager.VTable, @ptrCast(self.vtable)).get_AllBackgroundWorkers(@as(*const IPMEnumerationManager, @ptrCast(self)), ppBSWEnum, Filter); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPMEnumerationManager_get_ApplicationInfo(self: *const T, ProductID: Guid, ppAppInfo: ?*?*IPMApplicationInfo) HRESULT { return @as(*const IPMEnumerationManager.VTable, @ptrCast(self.vtable)).get_ApplicationInfo(@as(*const IPMEnumerationManager, @ptrCast(self)), ProductID, ppAppInfo); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPMEnumerationManager_get_TileInfo(self: *const T, ProductID: Guid, TileID: ?BSTR, ppTileInfo: ?*?*IPMTileInfo) HRESULT { return @as(*const IPMEnumerationManager.VTable, @ptrCast(self.vtable)).get_TileInfo(@as(*const IPMEnumerationManager, @ptrCast(self)), ProductID, TileID, ppTileInfo); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPMEnumerationManager_get_TaskInfo(self: *const T, ProductID: Guid, TaskID: ?BSTR, ppTaskInfo: ?*?*IPMTaskInfo) HRESULT { return @as(*const IPMEnumerationManager.VTable, @ptrCast(self.vtable)).get_TaskInfo(@as(*const IPMEnumerationManager, @ptrCast(self)), ProductID, TaskID, ppTaskInfo); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPMEnumerationManager_get_TaskInfoEx(self: *const T, ProductID: Guid, TaskID: ?[*:0]const u16, ppTaskInfo: ?*?*IPMTaskInfo) HRESULT { return @as(*const IPMEnumerationManager.VTable, @ptrCast(self.vtable)).get_TaskInfoEx(@as(*const IPMEnumerationManager, @ptrCast(self)), ProductID, TaskID, ppTaskInfo); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPMEnumerationManager_get_BackgroundServiceAgentInfo(self: *const T, BSAID: u32, ppTaskInfo: ?*?*IPMBackgroundServiceAgentInfo) HRESULT { return @as(*const IPMEnumerationManager.VTable, @ptrCast(self.vtable)).get_BackgroundServiceAgentInfo(@as(*const IPMEnumerationManager, @ptrCast(self)), BSAID, ppTaskInfo); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPMEnumerationManager_get_AllLiveTileJobs(self: *const T, ppLiveTileJobEnum: ?*?*IPMLiveTileJobInfoEnumerator) HRESULT { return @as(*const IPMEnumerationManager.VTable, @ptrCast(self.vtable)).get_AllLiveTileJobs(@as(*const IPMEnumerationManager, @ptrCast(self)), ppLiveTileJobEnum); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPMEnumerationManager_get_LiveTileJob(self: *const T, ProductID: Guid, TileID: ?BSTR, RecurrenceType: PM_LIVETILE_RECURRENCE_TYPE, ppLiveTileJobInfo: ?*?*IPMLiveTileJobInfo) HRESULT { return @as(*const IPMEnumerationManager.VTable, @ptrCast(self.vtable)).get_LiveTileJob(@as(*const IPMEnumerationManager, @ptrCast(self)), ProductID, TileID, RecurrenceType, ppLiveTileJobInfo); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPMEnumerationManager_get_ApplicationInfoExternal(self: *const T, ProductID: Guid, ppAppInfo: ?*?*IPMApplicationInfo) HRESULT { return @as(*const IPMEnumerationManager.VTable, @ptrCast(self.vtable)).get_ApplicationInfoExternal(@as(*const IPMEnumerationManager, @ptrCast(self)), ProductID, ppAppInfo); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPMEnumerationManager_get_FileHandlerGenericLogo(self: *const T, FileType: ?BSTR, LogoSize: PM_LOGO_SIZE, pLogo: ?*?BSTR) HRESULT { return @as(*const IPMEnumerationManager.VTable, @ptrCast(self.vtable)).get_FileHandlerGenericLogo(@as(*const IPMEnumerationManager, @ptrCast(self)), FileType, LogoSize, pLogo); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPMEnumerationManager_get_ApplicationInfoFromAccessClaims(self: *const T, SysAppID0: ?BSTR, SysAppID1: ?BSTR, ppAppInfo: ?*?*IPMApplicationInfo) HRESULT { return @as(*const IPMEnumerationManager.VTable, @ptrCast(self.vtable)).get_ApplicationInfoFromAccessClaims(@as(*const IPMEnumerationManager, @ptrCast(self)), SysAppID0, SysAppID1, ppAppInfo); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPMEnumerationManager_get_StartTileEnumeratorBlob(self: *const T, Filter: PM_ENUM_FILTER, pcTiles: ?*u32, ppTileBlobs: ?[*]?*PM_STARTTILEBLOB) HRESULT { return @as(*const IPMEnumerationManager.VTable, @ptrCast(self.vtable)).get_StartTileEnumeratorBlob(@as(*const IPMEnumerationManager, @ptrCast(self)), Filter, pcTiles, ppTileBlobs); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPMEnumerationManager_get_StartAppEnumeratorBlob(self: *const T, Filter: PM_ENUM_FILTER, pcApps: ?*u32, ppAppBlobs: ?[*]?*PM_STARTAPPBLOB) HRESULT { return @as(*const IPMEnumerationManager.VTable, @ptrCast(self.vtable)).get_StartAppEnumeratorBlob(@as(*const IPMEnumerationManager, @ptrCast(self)), Filter, pcApps, ppAppBlobs); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IPMTaskInfo_Value = Guid.initString("bf1d8c33-1bf5-4ee0-b549-6b9dd3834942"); pub const IID_IPMTaskInfo = &IID_IPMTaskInfo_Value; pub const IPMTaskInfo = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, // TODO: this function has a "SpecialName", should Zig do anything with this? get_ProductID: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IPMTaskInfo, pProductID: ?*Guid, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IPMTaskInfo, pProductID: ?*Guid, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_TaskID: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IPMTaskInfo, pTaskID: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IPMTaskInfo, pTaskID: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_NavigationPage: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IPMTaskInfo, pNavigationPage: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IPMTaskInfo, pNavigationPage: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_TaskTransition: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IPMTaskInfo, pTaskTransition: ?*PM_TASK_TRANSITION, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IPMTaskInfo, pTaskTransition: ?*PM_TASK_TRANSITION, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_RuntimeType: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IPMTaskInfo, pRuntimetype: ?*PACKMAN_RUNTIME, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IPMTaskInfo, pRuntimetype: ?*PACKMAN_RUNTIME, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_ActivationPolicy: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IPMTaskInfo, pActivationPolicy: ?*PM_ACTIVATION_POLICY, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IPMTaskInfo, pActivationPolicy: ?*PM_ACTIVATION_POLICY, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_TaskType: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IPMTaskInfo, pTaskType: ?*PM_TASK_TYPE, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IPMTaskInfo, pTaskType: ?*PM_TASK_TYPE, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_InvocationInfo: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IPMTaskInfo, pImageUrn: ?*?BSTR, pParameters: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IPMTaskInfo, pImageUrn: ?*?BSTR, pParameters: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_ImagePath: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IPMTaskInfo, pImagePath: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IPMTaskInfo, pImagePath: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_ImageParams: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IPMTaskInfo, pImageParams: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IPMTaskInfo, pImageParams: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_InstallRootFolder: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IPMTaskInfo, pInstallRootFolder: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IPMTaskInfo, pInstallRootFolder: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_DataRootFolder: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IPMTaskInfo, pDataRootFolder: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IPMTaskInfo, pDataRootFolder: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_IsSingleInstanceHost: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IPMTaskInfo, pIsSingleInstanceHost: ?*BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IPMTaskInfo, pIsSingleInstanceHost: ?*BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_IsInteropEnabled: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IPMTaskInfo, pIsInteropEnabled: ?*BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IPMTaskInfo, pIsInteropEnabled: ?*BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_ApplicationState: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IPMTaskInfo, pApplicationState: ?*PM_APPLICATION_STATE, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IPMTaskInfo, pApplicationState: ?*PM_APPLICATION_STATE, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_InstallType: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IPMTaskInfo, pInstallType: ?*PM_APPLICATION_INSTALL_TYPE, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IPMTaskInfo, pInstallType: ?*PM_APPLICATION_INSTALL_TYPE, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Version: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IPMTaskInfo, pTargetMajorVersion: ?*u8, pTargetMinorVersion: ?*u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IPMTaskInfo, pTargetMajorVersion: ?*u8, pTargetMinorVersion: ?*u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_BitsPerPixel: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IPMTaskInfo, pBitsPerPixel: ?*u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IPMTaskInfo, pBitsPerPixel: ?*u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_SuppressesDehydration: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IPMTaskInfo, pSuppressesDehydration: ?*BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IPMTaskInfo, pSuppressesDehydration: ?*BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_BackgroundExecutionAbilities: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IPMTaskInfo, pBackgroundExecutionAbilities: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IPMTaskInfo, pBackgroundExecutionAbilities: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_IsOptedForExtendedMem: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IPMTaskInfo, pIsOptedIn: ?*BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IPMTaskInfo, pIsOptedIn: ?*BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPMTaskInfo_get_ProductID(self: *const T, pProductID: ?*Guid) HRESULT { return @as(*const IPMTaskInfo.VTable, @ptrCast(self.vtable)).get_ProductID(@as(*const IPMTaskInfo, @ptrCast(self)), pProductID); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPMTaskInfo_get_TaskID(self: *const T, pTaskID: ?*?BSTR) HRESULT { return @as(*const IPMTaskInfo.VTable, @ptrCast(self.vtable)).get_TaskID(@as(*const IPMTaskInfo, @ptrCast(self)), pTaskID); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPMTaskInfo_get_NavigationPage(self: *const T, pNavigationPage: ?*?BSTR) HRESULT { return @as(*const IPMTaskInfo.VTable, @ptrCast(self.vtable)).get_NavigationPage(@as(*const IPMTaskInfo, @ptrCast(self)), pNavigationPage); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPMTaskInfo_get_TaskTransition(self: *const T, pTaskTransition: ?*PM_TASK_TRANSITION) HRESULT { return @as(*const IPMTaskInfo.VTable, @ptrCast(self.vtable)).get_TaskTransition(@as(*const IPMTaskInfo, @ptrCast(self)), pTaskTransition); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPMTaskInfo_get_RuntimeType(self: *const T, pRuntimetype: ?*PACKMAN_RUNTIME) HRESULT { return @as(*const IPMTaskInfo.VTable, @ptrCast(self.vtable)).get_RuntimeType(@as(*const IPMTaskInfo, @ptrCast(self)), pRuntimetype); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPMTaskInfo_get_ActivationPolicy(self: *const T, pActivationPolicy: ?*PM_ACTIVATION_POLICY) HRESULT { return @as(*const IPMTaskInfo.VTable, @ptrCast(self.vtable)).get_ActivationPolicy(@as(*const IPMTaskInfo, @ptrCast(self)), pActivationPolicy); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPMTaskInfo_get_TaskType(self: *const T, pTaskType: ?*PM_TASK_TYPE) HRESULT { return @as(*const IPMTaskInfo.VTable, @ptrCast(self.vtable)).get_TaskType(@as(*const IPMTaskInfo, @ptrCast(self)), pTaskType); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPMTaskInfo_get_InvocationInfo(self: *const T, pImageUrn: ?*?BSTR, pParameters: ?*?BSTR) HRESULT { return @as(*const IPMTaskInfo.VTable, @ptrCast(self.vtable)).get_InvocationInfo(@as(*const IPMTaskInfo, @ptrCast(self)), pImageUrn, pParameters); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPMTaskInfo_get_ImagePath(self: *const T, pImagePath: ?*?BSTR) HRESULT { return @as(*const IPMTaskInfo.VTable, @ptrCast(self.vtable)).get_ImagePath(@as(*const IPMTaskInfo, @ptrCast(self)), pImagePath); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPMTaskInfo_get_ImageParams(self: *const T, pImageParams: ?*?BSTR) HRESULT { return @as(*const IPMTaskInfo.VTable, @ptrCast(self.vtable)).get_ImageParams(@as(*const IPMTaskInfo, @ptrCast(self)), pImageParams); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPMTaskInfo_get_InstallRootFolder(self: *const T, pInstallRootFolder: ?*?BSTR) HRESULT { return @as(*const IPMTaskInfo.VTable, @ptrCast(self.vtable)).get_InstallRootFolder(@as(*const IPMTaskInfo, @ptrCast(self)), pInstallRootFolder); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPMTaskInfo_get_DataRootFolder(self: *const T, pDataRootFolder: ?*?BSTR) HRESULT { return @as(*const IPMTaskInfo.VTable, @ptrCast(self.vtable)).get_DataRootFolder(@as(*const IPMTaskInfo, @ptrCast(self)), pDataRootFolder); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPMTaskInfo_get_IsSingleInstanceHost(self: *const T, pIsSingleInstanceHost: ?*BOOL) HRESULT { return @as(*const IPMTaskInfo.VTable, @ptrCast(self.vtable)).get_IsSingleInstanceHost(@as(*const IPMTaskInfo, @ptrCast(self)), pIsSingleInstanceHost); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPMTaskInfo_get_IsInteropEnabled(self: *const T, pIsInteropEnabled: ?*BOOL) HRESULT { return @as(*const IPMTaskInfo.VTable, @ptrCast(self.vtable)).get_IsInteropEnabled(@as(*const IPMTaskInfo, @ptrCast(self)), pIsInteropEnabled); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPMTaskInfo_get_ApplicationState(self: *const T, pApplicationState: ?*PM_APPLICATION_STATE) HRESULT { return @as(*const IPMTaskInfo.VTable, @ptrCast(self.vtable)).get_ApplicationState(@as(*const IPMTaskInfo, @ptrCast(self)), pApplicationState); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPMTaskInfo_get_InstallType(self: *const T, pInstallType: ?*PM_APPLICATION_INSTALL_TYPE) HRESULT { return @as(*const IPMTaskInfo.VTable, @ptrCast(self.vtable)).get_InstallType(@as(*const IPMTaskInfo, @ptrCast(self)), pInstallType); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPMTaskInfo_get_Version(self: *const T, pTargetMajorVersion: ?*u8, pTargetMinorVersion: ?*u8) HRESULT { return @as(*const IPMTaskInfo.VTable, @ptrCast(self.vtable)).get_Version(@as(*const IPMTaskInfo, @ptrCast(self)), pTargetMajorVersion, pTargetMinorVersion); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPMTaskInfo_get_BitsPerPixel(self: *const T, pBitsPerPixel: ?*u16) HRESULT { return @as(*const IPMTaskInfo.VTable, @ptrCast(self.vtable)).get_BitsPerPixel(@as(*const IPMTaskInfo, @ptrCast(self)), pBitsPerPixel); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPMTaskInfo_get_SuppressesDehydration(self: *const T, pSuppressesDehydration: ?*BOOL) HRESULT { return @as(*const IPMTaskInfo.VTable, @ptrCast(self.vtable)).get_SuppressesDehydration(@as(*const IPMTaskInfo, @ptrCast(self)), pSuppressesDehydration); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPMTaskInfo_get_BackgroundExecutionAbilities(self: *const T, pBackgroundExecutionAbilities: ?*?BSTR) HRESULT { return @as(*const IPMTaskInfo.VTable, @ptrCast(self.vtable)).get_BackgroundExecutionAbilities(@as(*const IPMTaskInfo, @ptrCast(self)), pBackgroundExecutionAbilities); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPMTaskInfo_get_IsOptedForExtendedMem(self: *const T, pIsOptedIn: ?*BOOL) HRESULT { return @as(*const IPMTaskInfo.VTable, @ptrCast(self.vtable)).get_IsOptedForExtendedMem(@as(*const IPMTaskInfo, @ptrCast(self)), pIsOptedIn); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IPMTaskInfoEnumerator_Value = Guid.initString("0630b0f8-0bbc-4821-be74-c7995166ed2a"); pub const IID_IPMTaskInfoEnumerator = &IID_IPMTaskInfoEnumerator_Value; pub const IPMTaskInfoEnumerator = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Next: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IPMTaskInfoEnumerator, ppTaskInfo: ?*?*IPMTaskInfo, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IPMTaskInfoEnumerator, ppTaskInfo: ?*?*IPMTaskInfo, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPMTaskInfoEnumerator_get_Next(self: *const T, ppTaskInfo: ?*?*IPMTaskInfo) HRESULT { return @as(*const IPMTaskInfoEnumerator.VTable, @ptrCast(self.vtable)).get_Next(@as(*const IPMTaskInfoEnumerator, @ptrCast(self)), ppTaskInfo); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IPMExtensionInfo_Value = Guid.initString("49acde79-9788-4d0a-8aa0-1746afdb9e9d"); pub const IID_IPMExtensionInfo = &IID_IPMExtensionInfo_Value; pub const IPMExtensionInfo = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, // TODO: this function has a "SpecialName", should Zig do anything with this? get_SupplierPID: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IPMExtensionInfo, pSupplierPID: ?*Guid, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IPMExtensionInfo, pSupplierPID: ?*Guid, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_SupplierTaskID: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IPMExtensionInfo, pSupplierTID: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IPMExtensionInfo, pSupplierTID: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Title: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IPMExtensionInfo, pTitle: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IPMExtensionInfo, pTitle: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_IconPath: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IPMExtensionInfo, pIconPath: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IPMExtensionInfo, pIconPath: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_ExtraFile: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IPMExtensionInfo, pFilePath: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IPMExtensionInfo, pFilePath: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_InvocationInfo: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IPMExtensionInfo, pImageUrn: ?*?BSTR, pParameters: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IPMExtensionInfo, pImageUrn: ?*?BSTR, pParameters: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPMExtensionInfo_get_SupplierPID(self: *const T, pSupplierPID: ?*Guid) HRESULT { return @as(*const IPMExtensionInfo.VTable, @ptrCast(self.vtable)).get_SupplierPID(@as(*const IPMExtensionInfo, @ptrCast(self)), pSupplierPID); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPMExtensionInfo_get_SupplierTaskID(self: *const T, pSupplierTID: ?*?BSTR) HRESULT { return @as(*const IPMExtensionInfo.VTable, @ptrCast(self.vtable)).get_SupplierTaskID(@as(*const IPMExtensionInfo, @ptrCast(self)), pSupplierTID); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPMExtensionInfo_get_Title(self: *const T, pTitle: ?*?BSTR) HRESULT { return @as(*const IPMExtensionInfo.VTable, @ptrCast(self.vtable)).get_Title(@as(*const IPMExtensionInfo, @ptrCast(self)), pTitle); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPMExtensionInfo_get_IconPath(self: *const T, pIconPath: ?*?BSTR) HRESULT { return @as(*const IPMExtensionInfo.VTable, @ptrCast(self.vtable)).get_IconPath(@as(*const IPMExtensionInfo, @ptrCast(self)), pIconPath); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPMExtensionInfo_get_ExtraFile(self: *const T, pFilePath: ?*?BSTR) HRESULT { return @as(*const IPMExtensionInfo.VTable, @ptrCast(self.vtable)).get_ExtraFile(@as(*const IPMExtensionInfo, @ptrCast(self)), pFilePath); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPMExtensionInfo_get_InvocationInfo(self: *const T, pImageUrn: ?*?BSTR, pParameters: ?*?BSTR) HRESULT { return @as(*const IPMExtensionInfo.VTable, @ptrCast(self.vtable)).get_InvocationInfo(@as(*const IPMExtensionInfo, @ptrCast(self)), pImageUrn, pParameters); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IPMExtensionFileExtensionInfo_Value = Guid.initString("6b87cb6c-0b88-4989-a4ec-033714f710d4"); pub const IID_IPMExtensionFileExtensionInfo = &IID_IPMExtensionFileExtensionInfo_Value; pub const IPMExtensionFileExtensionInfo = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Name: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IPMExtensionFileExtensionInfo, pName: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IPMExtensionFileExtensionInfo, pName: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_DisplayName: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IPMExtensionFileExtensionInfo, pDisplayName: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IPMExtensionFileExtensionInfo, pDisplayName: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Logo: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IPMExtensionFileExtensionInfo, LogoSize: PM_LOGO_SIZE, pLogo: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IPMExtensionFileExtensionInfo, LogoSize: PM_LOGO_SIZE, pLogo: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_ContentType: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IPMExtensionFileExtensionInfo, FileType: ?BSTR, pContentType: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IPMExtensionFileExtensionInfo, FileType: ?BSTR, pContentType: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_FileType: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IPMExtensionFileExtensionInfo, ContentType: ?BSTR, pFileType: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IPMExtensionFileExtensionInfo, ContentType: ?BSTR, pFileType: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_InvocationInfo: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IPMExtensionFileExtensionInfo, pImageUrn: ?*?BSTR, pParameters: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IPMExtensionFileExtensionInfo, pImageUrn: ?*?BSTR, pParameters: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_AllFileTypes: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IPMExtensionFileExtensionInfo, pcbTypes: ?*u32, ppTypes: ?[*]?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IPMExtensionFileExtensionInfo, pcbTypes: ?*u32, ppTypes: ?[*]?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPMExtensionFileExtensionInfo_get_Name(self: *const T, pName: ?*?BSTR) HRESULT { return @as(*const IPMExtensionFileExtensionInfo.VTable, @ptrCast(self.vtable)).get_Name(@as(*const IPMExtensionFileExtensionInfo, @ptrCast(self)), pName); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPMExtensionFileExtensionInfo_get_DisplayName(self: *const T, pDisplayName: ?*?BSTR) HRESULT { return @as(*const IPMExtensionFileExtensionInfo.VTable, @ptrCast(self.vtable)).get_DisplayName(@as(*const IPMExtensionFileExtensionInfo, @ptrCast(self)), pDisplayName); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPMExtensionFileExtensionInfo_get_Logo(self: *const T, LogoSize: PM_LOGO_SIZE, pLogo: ?*?BSTR) HRESULT { return @as(*const IPMExtensionFileExtensionInfo.VTable, @ptrCast(self.vtable)).get_Logo(@as(*const IPMExtensionFileExtensionInfo, @ptrCast(self)), LogoSize, pLogo); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPMExtensionFileExtensionInfo_get_ContentType(self: *const T, FileType: ?BSTR, pContentType: ?*?BSTR) HRESULT { return @as(*const IPMExtensionFileExtensionInfo.VTable, @ptrCast(self.vtable)).get_ContentType(@as(*const IPMExtensionFileExtensionInfo, @ptrCast(self)), FileType, pContentType); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPMExtensionFileExtensionInfo_get_FileType(self: *const T, ContentType: ?BSTR, pFileType: ?*?BSTR) HRESULT { return @as(*const IPMExtensionFileExtensionInfo.VTable, @ptrCast(self.vtable)).get_FileType(@as(*const IPMExtensionFileExtensionInfo, @ptrCast(self)), ContentType, pFileType); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPMExtensionFileExtensionInfo_get_InvocationInfo(self: *const T, pImageUrn: ?*?BSTR, pParameters: ?*?BSTR) HRESULT { return @as(*const IPMExtensionFileExtensionInfo.VTable, @ptrCast(self.vtable)).get_InvocationInfo(@as(*const IPMExtensionFileExtensionInfo, @ptrCast(self)), pImageUrn, pParameters); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPMExtensionFileExtensionInfo_get_AllFileTypes(self: *const T, pcbTypes: ?*u32, ppTypes: ?[*]?*?BSTR) HRESULT { return @as(*const IPMExtensionFileExtensionInfo.VTable, @ptrCast(self.vtable)).get_AllFileTypes(@as(*const IPMExtensionFileExtensionInfo, @ptrCast(self)), pcbTypes, ppTypes); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IPMExtensionProtocolInfo_Value = Guid.initString("1e3fa036-51eb-4453-baff-b8d8e4b46c8e"); pub const IID_IPMExtensionProtocolInfo = &IID_IPMExtensionProtocolInfo_Value; pub const IPMExtensionProtocolInfo = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Protocol: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IPMExtensionProtocolInfo, pProtocol: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IPMExtensionProtocolInfo, pProtocol: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_InvocationInfo: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IPMExtensionProtocolInfo, pImageUrn: ?*?BSTR, pParameters: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IPMExtensionProtocolInfo, pImageUrn: ?*?BSTR, pParameters: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPMExtensionProtocolInfo_get_Protocol(self: *const T, pProtocol: ?*?BSTR) HRESULT { return @as(*const IPMExtensionProtocolInfo.VTable, @ptrCast(self.vtable)).get_Protocol(@as(*const IPMExtensionProtocolInfo, @ptrCast(self)), pProtocol); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPMExtensionProtocolInfo_get_InvocationInfo(self: *const T, pImageUrn: ?*?BSTR, pParameters: ?*?BSTR) HRESULT { return @as(*const IPMExtensionProtocolInfo.VTable, @ptrCast(self.vtable)).get_InvocationInfo(@as(*const IPMExtensionProtocolInfo, @ptrCast(self)), pImageUrn, pParameters); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IPMExtensionShareTargetInfo_Value = Guid.initString("5471f48b-c65c-4656-8c70-242e31195fea"); pub const IID_IPMExtensionShareTargetInfo = &IID_IPMExtensionShareTargetInfo_Value; pub const IPMExtensionShareTargetInfo = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, // TODO: this function has a "SpecialName", should Zig do anything with this? get_AllFileTypes: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IPMExtensionShareTargetInfo, pcTypes: ?*u32, ppTypes: ?[*]?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IPMExtensionShareTargetInfo, pcTypes: ?*u32, ppTypes: ?[*]?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_AllDataFormats: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IPMExtensionShareTargetInfo, pcDataFormats: ?*u32, ppDataFormats: ?[*]?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IPMExtensionShareTargetInfo, pcDataFormats: ?*u32, ppDataFormats: ?[*]?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_SupportsAllFileTypes: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IPMExtensionShareTargetInfo, pSupportsAllTypes: ?*BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IPMExtensionShareTargetInfo, pSupportsAllTypes: ?*BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPMExtensionShareTargetInfo_get_AllFileTypes(self: *const T, pcTypes: ?*u32, ppTypes: ?[*]?*?BSTR) HRESULT { return @as(*const IPMExtensionShareTargetInfo.VTable, @ptrCast(self.vtable)).get_AllFileTypes(@as(*const IPMExtensionShareTargetInfo, @ptrCast(self)), pcTypes, ppTypes); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPMExtensionShareTargetInfo_get_AllDataFormats(self: *const T, pcDataFormats: ?*u32, ppDataFormats: ?[*]?*?BSTR) HRESULT { return @as(*const IPMExtensionShareTargetInfo.VTable, @ptrCast(self.vtable)).get_AllDataFormats(@as(*const IPMExtensionShareTargetInfo, @ptrCast(self)), pcDataFormats, ppDataFormats); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPMExtensionShareTargetInfo_get_SupportsAllFileTypes(self: *const T, pSupportsAllTypes: ?*BOOL) HRESULT { return @as(*const IPMExtensionShareTargetInfo.VTable, @ptrCast(self.vtable)).get_SupportsAllFileTypes(@as(*const IPMExtensionShareTargetInfo, @ptrCast(self)), pSupportsAllTypes); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IPMExtensionContractInfo_Value = Guid.initString("e5666373-7ba1-467c-b819-b175db1c295b"); pub const IID_IPMExtensionContractInfo = &IID_IPMExtensionContractInfo_Value; pub const IPMExtensionContractInfo = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, // TODO: this function has a "SpecialName", should Zig do anything with this? get_InvocationInfo: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IPMExtensionContractInfo, pAUMID: ?*?BSTR, pArgs: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IPMExtensionContractInfo, pAUMID: ?*?BSTR, pArgs: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPMExtensionContractInfo_get_InvocationInfo(self: *const T, pAUMID: ?*?BSTR, pArgs: ?*?BSTR) HRESULT { return @as(*const IPMExtensionContractInfo.VTable, @ptrCast(self.vtable)).get_InvocationInfo(@as(*const IPMExtensionContractInfo, @ptrCast(self)), pAUMID, pArgs); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IPMExtensionFileOpenPickerInfo_Value = Guid.initString("6dc91d25-9606-420c-9a78-e034a3418345"); pub const IID_IPMExtensionFileOpenPickerInfo = &IID_IPMExtensionFileOpenPickerInfo_Value; pub const IPMExtensionFileOpenPickerInfo = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, // TODO: this function has a "SpecialName", should Zig do anything with this? get_AllFileTypes: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IPMExtensionFileOpenPickerInfo, pcTypes: ?*u32, ppTypes: ?[*]?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IPMExtensionFileOpenPickerInfo, pcTypes: ?*u32, ppTypes: ?[*]?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_SupportsAllFileTypes: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IPMExtensionFileOpenPickerInfo, pSupportsAllTypes: ?*BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IPMExtensionFileOpenPickerInfo, pSupportsAllTypes: ?*BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPMExtensionFileOpenPickerInfo_get_AllFileTypes(self: *const T, pcTypes: ?*u32, ppTypes: ?[*]?*?BSTR) HRESULT { return @as(*const IPMExtensionFileOpenPickerInfo.VTable, @ptrCast(self.vtable)).get_AllFileTypes(@as(*const IPMExtensionFileOpenPickerInfo, @ptrCast(self)), pcTypes, ppTypes); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPMExtensionFileOpenPickerInfo_get_SupportsAllFileTypes(self: *const T, pSupportsAllTypes: ?*BOOL) HRESULT { return @as(*const IPMExtensionFileOpenPickerInfo.VTable, @ptrCast(self.vtable)).get_SupportsAllFileTypes(@as(*const IPMExtensionFileOpenPickerInfo, @ptrCast(self)), pSupportsAllTypes); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IPMExtensionFileSavePickerInfo_Value = Guid.initString("38005cba-f81a-493e-a0f8-922c8680da43"); pub const IID_IPMExtensionFileSavePickerInfo = &IID_IPMExtensionFileSavePickerInfo_Value; pub const IPMExtensionFileSavePickerInfo = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, // TODO: this function has a "SpecialName", should Zig do anything with this? get_AllFileTypes: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IPMExtensionFileSavePickerInfo, pcTypes: ?*u32, ppTypes: ?[*]?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IPMExtensionFileSavePickerInfo, pcTypes: ?*u32, ppTypes: ?[*]?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_SupportsAllFileTypes: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IPMExtensionFileSavePickerInfo, pSupportsAllTypes: ?*BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IPMExtensionFileSavePickerInfo, pSupportsAllTypes: ?*BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPMExtensionFileSavePickerInfo_get_AllFileTypes(self: *const T, pcTypes: ?*u32, ppTypes: ?[*]?*?BSTR) HRESULT { return @as(*const IPMExtensionFileSavePickerInfo.VTable, @ptrCast(self.vtable)).get_AllFileTypes(@as(*const IPMExtensionFileSavePickerInfo, @ptrCast(self)), pcTypes, ppTypes); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPMExtensionFileSavePickerInfo_get_SupportsAllFileTypes(self: *const T, pSupportsAllTypes: ?*BOOL) HRESULT { return @as(*const IPMExtensionFileSavePickerInfo.VTable, @ptrCast(self.vtable)).get_SupportsAllFileTypes(@as(*const IPMExtensionFileSavePickerInfo, @ptrCast(self)), pSupportsAllTypes); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IPMExtensionCachedFileUpdaterInfo_Value = Guid.initString("e2d77509-4e58-4ba9-af7e-b642e370e1b0"); pub const IID_IPMExtensionCachedFileUpdaterInfo = &IID_IPMExtensionCachedFileUpdaterInfo_Value; pub const IPMExtensionCachedFileUpdaterInfo = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, // TODO: this function has a "SpecialName", should Zig do anything with this? get_SupportsUpdates: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IPMExtensionCachedFileUpdaterInfo, pSupportsUpdates: ?*BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IPMExtensionCachedFileUpdaterInfo, pSupportsUpdates: ?*BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPMExtensionCachedFileUpdaterInfo_get_SupportsUpdates(self: *const T, pSupportsUpdates: ?*BOOL) HRESULT { return @as(*const IPMExtensionCachedFileUpdaterInfo.VTable, @ptrCast(self.vtable)).get_SupportsUpdates(@as(*const IPMExtensionCachedFileUpdaterInfo, @ptrCast(self)), pSupportsUpdates); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IPMExtensionInfoEnumerator_Value = Guid.initString("403b9e82-1171-4573-8e6f-6f33f39b83dd"); pub const IID_IPMExtensionInfoEnumerator = &IID_IPMExtensionInfoEnumerator_Value; pub const IPMExtensionInfoEnumerator = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Next: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IPMExtensionInfoEnumerator, ppExtensionInfo: ?*?*IPMExtensionInfo, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IPMExtensionInfoEnumerator, ppExtensionInfo: ?*?*IPMExtensionInfo, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPMExtensionInfoEnumerator_get_Next(self: *const T, ppExtensionInfo: ?*?*IPMExtensionInfo) HRESULT { return @as(*const IPMExtensionInfoEnumerator.VTable, @ptrCast(self.vtable)).get_Next(@as(*const IPMExtensionInfoEnumerator, @ptrCast(self)), ppExtensionInfo); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IPMBackgroundServiceAgentInfo_Value = Guid.initString("3a8b46da-928c-4879-998c-09dc96f3d490"); pub const IID_IPMBackgroundServiceAgentInfo = &IID_IPMBackgroundServiceAgentInfo_Value; pub const IPMBackgroundServiceAgentInfo = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, // TODO: this function has a "SpecialName", should Zig do anything with this? get_ProductID: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IPMBackgroundServiceAgentInfo, pProductID: ?*Guid, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IPMBackgroundServiceAgentInfo, pProductID: ?*Guid, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_TaskID: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IPMBackgroundServiceAgentInfo, pTaskID: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IPMBackgroundServiceAgentInfo, pTaskID: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_BSAID: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IPMBackgroundServiceAgentInfo, pBSAID: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IPMBackgroundServiceAgentInfo, pBSAID: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_BGSpecifier: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IPMBackgroundServiceAgentInfo, pBGSpecifier: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IPMBackgroundServiceAgentInfo, pBGSpecifier: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_BGName: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IPMBackgroundServiceAgentInfo, pBGName: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IPMBackgroundServiceAgentInfo, pBGName: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_BGSource: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IPMBackgroundServiceAgentInfo, pBGSource: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IPMBackgroundServiceAgentInfo, pBGSource: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_BGType: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IPMBackgroundServiceAgentInfo, pBGType: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IPMBackgroundServiceAgentInfo, pBGType: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_IsPeriodic: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IPMBackgroundServiceAgentInfo, pIsPeriodic: ?*BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IPMBackgroundServiceAgentInfo, pIsPeriodic: ?*BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_IsScheduled: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IPMBackgroundServiceAgentInfo, pIsScheduled: ?*BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IPMBackgroundServiceAgentInfo, pIsScheduled: ?*BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_IsScheduleAllowed: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IPMBackgroundServiceAgentInfo, pIsScheduleAllowed: ?*BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IPMBackgroundServiceAgentInfo, pIsScheduleAllowed: ?*BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Description: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IPMBackgroundServiceAgentInfo, pDescription: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IPMBackgroundServiceAgentInfo, pDescription: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_IsLaunchOnBoot: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IPMBackgroundServiceAgentInfo, pLaunchOnBoot: ?*BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IPMBackgroundServiceAgentInfo, pLaunchOnBoot: ?*BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, set_IsScheduled: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IPMBackgroundServiceAgentInfo, IsScheduled: BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IPMBackgroundServiceAgentInfo, IsScheduled: BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, set_IsScheduleAllowed: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IPMBackgroundServiceAgentInfo, IsScheduleAllowed: BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IPMBackgroundServiceAgentInfo, IsScheduleAllowed: BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPMBackgroundServiceAgentInfo_get_ProductID(self: *const T, pProductID: ?*Guid) HRESULT { return @as(*const IPMBackgroundServiceAgentInfo.VTable, @ptrCast(self.vtable)).get_ProductID(@as(*const IPMBackgroundServiceAgentInfo, @ptrCast(self)), pProductID); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPMBackgroundServiceAgentInfo_get_TaskID(self: *const T, pTaskID: ?*?BSTR) HRESULT { return @as(*const IPMBackgroundServiceAgentInfo.VTable, @ptrCast(self.vtable)).get_TaskID(@as(*const IPMBackgroundServiceAgentInfo, @ptrCast(self)), pTaskID); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPMBackgroundServiceAgentInfo_get_BSAID(self: *const T, pBSAID: ?*u32) HRESULT { return @as(*const IPMBackgroundServiceAgentInfo.VTable, @ptrCast(self.vtable)).get_BSAID(@as(*const IPMBackgroundServiceAgentInfo, @ptrCast(self)), pBSAID); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPMBackgroundServiceAgentInfo_get_BGSpecifier(self: *const T, pBGSpecifier: ?*?BSTR) HRESULT { return @as(*const IPMBackgroundServiceAgentInfo.VTable, @ptrCast(self.vtable)).get_BGSpecifier(@as(*const IPMBackgroundServiceAgentInfo, @ptrCast(self)), pBGSpecifier); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPMBackgroundServiceAgentInfo_get_BGName(self: *const T, pBGName: ?*?BSTR) HRESULT { return @as(*const IPMBackgroundServiceAgentInfo.VTable, @ptrCast(self.vtable)).get_BGName(@as(*const IPMBackgroundServiceAgentInfo, @ptrCast(self)), pBGName); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPMBackgroundServiceAgentInfo_get_BGSource(self: *const T, pBGSource: ?*?BSTR) HRESULT { return @as(*const IPMBackgroundServiceAgentInfo.VTable, @ptrCast(self.vtable)).get_BGSource(@as(*const IPMBackgroundServiceAgentInfo, @ptrCast(self)), pBGSource); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPMBackgroundServiceAgentInfo_get_BGType(self: *const T, pBGType: ?*?BSTR) HRESULT { return @as(*const IPMBackgroundServiceAgentInfo.VTable, @ptrCast(self.vtable)).get_BGType(@as(*const IPMBackgroundServiceAgentInfo, @ptrCast(self)), pBGType); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPMBackgroundServiceAgentInfo_get_IsPeriodic(self: *const T, pIsPeriodic: ?*BOOL) HRESULT { return @as(*const IPMBackgroundServiceAgentInfo.VTable, @ptrCast(self.vtable)).get_IsPeriodic(@as(*const IPMBackgroundServiceAgentInfo, @ptrCast(self)), pIsPeriodic); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPMBackgroundServiceAgentInfo_get_IsScheduled(self: *const T, pIsScheduled: ?*BOOL) HRESULT { return @as(*const IPMBackgroundServiceAgentInfo.VTable, @ptrCast(self.vtable)).get_IsScheduled(@as(*const IPMBackgroundServiceAgentInfo, @ptrCast(self)), pIsScheduled); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPMBackgroundServiceAgentInfo_get_IsScheduleAllowed(self: *const T, pIsScheduleAllowed: ?*BOOL) HRESULT { return @as(*const IPMBackgroundServiceAgentInfo.VTable, @ptrCast(self.vtable)).get_IsScheduleAllowed(@as(*const IPMBackgroundServiceAgentInfo, @ptrCast(self)), pIsScheduleAllowed); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPMBackgroundServiceAgentInfo_get_Description(self: *const T, pDescription: ?*?BSTR) HRESULT { return @as(*const IPMBackgroundServiceAgentInfo.VTable, @ptrCast(self.vtable)).get_Description(@as(*const IPMBackgroundServiceAgentInfo, @ptrCast(self)), pDescription); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPMBackgroundServiceAgentInfo_get_IsLaunchOnBoot(self: *const T, pLaunchOnBoot: ?*BOOL) HRESULT { return @as(*const IPMBackgroundServiceAgentInfo.VTable, @ptrCast(self.vtable)).get_IsLaunchOnBoot(@as(*const IPMBackgroundServiceAgentInfo, @ptrCast(self)), pLaunchOnBoot); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPMBackgroundServiceAgentInfo_set_IsScheduled(self: *const T, IsScheduled: BOOL) HRESULT { return @as(*const IPMBackgroundServiceAgentInfo.VTable, @ptrCast(self.vtable)).set_IsScheduled(@as(*const IPMBackgroundServiceAgentInfo, @ptrCast(self)), IsScheduled); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPMBackgroundServiceAgentInfo_set_IsScheduleAllowed(self: *const T, IsScheduleAllowed: BOOL) HRESULT { return @as(*const IPMBackgroundServiceAgentInfo.VTable, @ptrCast(self.vtable)).set_IsScheduleAllowed(@as(*const IPMBackgroundServiceAgentInfo, @ptrCast(self)), IsScheduleAllowed); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IPMBackgroundWorkerInfo_Value = Guid.initString("7dd4531b-d3bf-4b6b-94f3-69c098b1497d"); pub const IID_IPMBackgroundWorkerInfo = &IID_IPMBackgroundWorkerInfo_Value; pub const IPMBackgroundWorkerInfo = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, // TODO: this function has a "SpecialName", should Zig do anything with this? get_ProductID: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IPMBackgroundWorkerInfo, pProductID: ?*Guid, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IPMBackgroundWorkerInfo, pProductID: ?*Guid, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_TaskID: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IPMBackgroundWorkerInfo, pTaskID: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IPMBackgroundWorkerInfo, pTaskID: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_BGName: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IPMBackgroundWorkerInfo, pBGName: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IPMBackgroundWorkerInfo, pBGName: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_MaxStartupLatency: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IPMBackgroundWorkerInfo, pMaxStartupLatency: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IPMBackgroundWorkerInfo, pMaxStartupLatency: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_ExpectedRuntime: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IPMBackgroundWorkerInfo, pExpectedRuntime: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IPMBackgroundWorkerInfo, pExpectedRuntime: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_IsBootWorker: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IPMBackgroundWorkerInfo, pIsBootWorker: ?*BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IPMBackgroundWorkerInfo, pIsBootWorker: ?*BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPMBackgroundWorkerInfo_get_ProductID(self: *const T, pProductID: ?*Guid) HRESULT { return @as(*const IPMBackgroundWorkerInfo.VTable, @ptrCast(self.vtable)).get_ProductID(@as(*const IPMBackgroundWorkerInfo, @ptrCast(self)), pProductID); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPMBackgroundWorkerInfo_get_TaskID(self: *const T, pTaskID: ?*?BSTR) HRESULT { return @as(*const IPMBackgroundWorkerInfo.VTable, @ptrCast(self.vtable)).get_TaskID(@as(*const IPMBackgroundWorkerInfo, @ptrCast(self)), pTaskID); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPMBackgroundWorkerInfo_get_BGName(self: *const T, pBGName: ?*?BSTR) HRESULT { return @as(*const IPMBackgroundWorkerInfo.VTable, @ptrCast(self.vtable)).get_BGName(@as(*const IPMBackgroundWorkerInfo, @ptrCast(self)), pBGName); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPMBackgroundWorkerInfo_get_MaxStartupLatency(self: *const T, pMaxStartupLatency: ?*u32) HRESULT { return @as(*const IPMBackgroundWorkerInfo.VTable, @ptrCast(self.vtable)).get_MaxStartupLatency(@as(*const IPMBackgroundWorkerInfo, @ptrCast(self)), pMaxStartupLatency); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPMBackgroundWorkerInfo_get_ExpectedRuntime(self: *const T, pExpectedRuntime: ?*u32) HRESULT { return @as(*const IPMBackgroundWorkerInfo.VTable, @ptrCast(self.vtable)).get_ExpectedRuntime(@as(*const IPMBackgroundWorkerInfo, @ptrCast(self)), pExpectedRuntime); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPMBackgroundWorkerInfo_get_IsBootWorker(self: *const T, pIsBootWorker: ?*BOOL) HRESULT { return @as(*const IPMBackgroundWorkerInfo.VTable, @ptrCast(self.vtable)).get_IsBootWorker(@as(*const IPMBackgroundWorkerInfo, @ptrCast(self)), pIsBootWorker); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IPMBackgroundServiceAgentInfoEnumerator_Value = Guid.initString("18eb2072-ab56-43b3-872c-beafb7a6b391"); pub const IID_IPMBackgroundServiceAgentInfoEnumerator = &IID_IPMBackgroundServiceAgentInfoEnumerator_Value; pub const IPMBackgroundServiceAgentInfoEnumerator = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Next: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IPMBackgroundServiceAgentInfoEnumerator, ppBSAInfo: ?*?*IPMBackgroundServiceAgentInfo, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IPMBackgroundServiceAgentInfoEnumerator, ppBSAInfo: ?*?*IPMBackgroundServiceAgentInfo, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPMBackgroundServiceAgentInfoEnumerator_get_Next(self: *const T, ppBSAInfo: ?*?*IPMBackgroundServiceAgentInfo) HRESULT { return @as(*const IPMBackgroundServiceAgentInfoEnumerator.VTable, @ptrCast(self.vtable)).get_Next(@as(*const IPMBackgroundServiceAgentInfoEnumerator, @ptrCast(self)), ppBSAInfo); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IPMBackgroundWorkerInfoEnumerator_Value = Guid.initString("87f479f8-90d8-4ec7-92b9-72787e2f636b"); pub const IID_IPMBackgroundWorkerInfoEnumerator = &IID_IPMBackgroundWorkerInfoEnumerator_Value; pub const IPMBackgroundWorkerInfoEnumerator = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Next: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IPMBackgroundWorkerInfoEnumerator, ppBWInfo: ?*?*IPMBackgroundWorkerInfo, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IPMBackgroundWorkerInfoEnumerator, ppBWInfo: ?*?*IPMBackgroundWorkerInfo, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPMBackgroundWorkerInfoEnumerator_get_Next(self: *const T, ppBWInfo: ?*?*IPMBackgroundWorkerInfo) HRESULT { return @as(*const IPMBackgroundWorkerInfoEnumerator.VTable, @ptrCast(self.vtable)).get_Next(@as(*const IPMBackgroundWorkerInfoEnumerator, @ptrCast(self)), ppBWInfo); } }; } pub usingnamespace MethodMixin(@This()); }; pub const PPATCH_PROGRESS_CALLBACK = switch (@import("builtin").zig_backend) { .stage1 => fn ( CallbackContext: ?*anyopaque, CurrentPosition: u32, MaximumPosition: u32, ) callconv(@import("std").os.windows.WINAPI) BOOL, else => *const fn ( CallbackContext: ?*anyopaque, CurrentPosition: u32, MaximumPosition: u32, ) callconv(@import("std").os.windows.WINAPI) BOOL, }; pub const PPATCH_SYMLOAD_CALLBACK = switch (@import("builtin").zig_backend) { .stage1 => fn ( WhichFile: u32, SymbolFileName: ?[*:0]const u8, SymType: u32, SymbolFileCheckSum: u32, SymbolFileTimeDate: u32, ImageFileCheckSum: u32, ImageFileTimeDate: u32, CallbackContext: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) BOOL, else => *const fn ( WhichFile: u32, SymbolFileName: ?[*:0]const u8, SymType: u32, SymbolFileCheckSum: u32, SymbolFileTimeDate: u32, ImageFileCheckSum: u32, ImageFileTimeDate: u32, CallbackContext: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) BOOL, }; pub const PATCH_IGNORE_RANGE = extern struct { OffsetInOldFile: u32, LengthInBytes: u32, }; pub const PATCH_RETAIN_RANGE = extern struct { OffsetInOldFile: u32, LengthInBytes: u32, OffsetInNewFile: u32, }; pub const PATCH_OLD_FILE_INFO_A = extern struct { SizeOfThisStruct: u32, OldFileName: ?[*:0]const u8, IgnoreRangeCount: u32, IgnoreRangeArray: ?*PATCH_IGNORE_RANGE, RetainRangeCount: u32, RetainRangeArray: ?*PATCH_RETAIN_RANGE, }; pub const PATCH_OLD_FILE_INFO_W = extern struct { SizeOfThisStruct: u32, OldFileName: ?[*:0]const u16, IgnoreRangeCount: u32, IgnoreRangeArray: ?*PATCH_IGNORE_RANGE, RetainRangeCount: u32, RetainRangeArray: ?*PATCH_RETAIN_RANGE, }; pub const PATCH_OLD_FILE_INFO_H = extern struct { SizeOfThisStruct: u32, OldFileHandle: ?HANDLE, IgnoreRangeCount: u32, IgnoreRangeArray: ?*PATCH_IGNORE_RANGE, RetainRangeCount: u32, RetainRangeArray: ?*PATCH_RETAIN_RANGE, }; pub const PATCH_OLD_FILE_INFO = extern struct { SizeOfThisStruct: u32, Anonymous: extern union { OldFileNameA: ?[*:0]const u8, OldFileNameW: ?[*:0]const u16, OldFileHandle: ?HANDLE, }, IgnoreRangeCount: u32, IgnoreRangeArray: ?*PATCH_IGNORE_RANGE, RetainRangeCount: u32, RetainRangeArray: ?*PATCH_RETAIN_RANGE, }; pub const PATCH_INTERLEAVE_MAP = extern struct { CountRanges: u32, Range: [1]extern struct { OldOffset: u32, OldLength: u32, NewLength: u32, }, }; pub const PATCH_OPTION_DATA = extern struct { SizeOfThisStruct: u32, SymbolOptionFlags: u32, NewFileSymbolPath: ?[*:0]const u8, OldFileSymbolPathArray: ?*?PSTR, ExtendedOptionFlags: u32, SymLoadCallback: ?PPATCH_SYMLOAD_CALLBACK, SymLoadContext: ?*anyopaque, InterleaveMapArray: ?*?*PATCH_INTERLEAVE_MAP, MaxLzxWindowSize: u32, }; pub const DELTA_INPUT = extern struct { Anonymous: extern union { lpcStart: ?*const anyopaque, lpStart: ?*anyopaque, }, uSize: usize, Editable: BOOL, }; pub const DELTA_OUTPUT = extern struct { lpStart: ?*anyopaque, uSize: usize, }; pub const DELTA_HASH = extern struct { HashSize: u32, HashValue: [32]u8, }; pub const DELTA_HEADER_INFO = extern struct { FileTypeSet: i64, FileType: i64, Flags: i64, TargetSize: usize, TargetFileTime: FILETIME, TargetHashAlgId: u32, TargetHash: DELTA_HASH, }; pub const ACTIVATION_CONTEXT_QUERY_INDEX = extern struct { ulAssemblyIndex: u32, ulFileIndexInAssembly: u32, }; pub const ASSEMBLY_FILE_DETAILED_INFORMATION = extern struct { ulFlags: u32, ulFilenameLength: u32, ulPathLength: u32, lpFileName: ?[*:0]const u16, lpFilePath: ?[*:0]const u16, }; pub const ACTIVATION_CONTEXT_ASSEMBLY_DETAILED_INFORMATION = extern struct { ulFlags: u32, ulEncodedAssemblyIdentityLength: u32, ulManifestPathType: u32, ulManifestPathLength: u32, liManifestLastWriteTime: LARGE_INTEGER, ulPolicyPathType: u32, ulPolicyPathLength: u32, liPolicyLastWriteTime: LARGE_INTEGER, ulMetadataSatelliteRosterIndex: u32, ulManifestVersionMajor: u32, ulManifestVersionMinor: u32, ulPolicyVersionMajor: u32, ulPolicyVersionMinor: u32, ulAssemblyDirectoryNameLength: u32, lpAssemblyEncodedAssemblyIdentity: ?[*:0]const u16, lpAssemblyManifestPath: ?[*:0]const u16, lpAssemblyPolicyPath: ?[*:0]const u16, lpAssemblyDirectoryName: ?[*:0]const u16, ulFileCount: u32, }; pub const ACTCTX_REQUESTED_RUN_LEVEL = enum(i32) { UNSPECIFIED = 0, AS_INVOKER = 1, HIGHEST_AVAILABLE = 2, REQUIRE_ADMIN = 3, NUMBERS = 4, }; pub const ACTCTX_RUN_LEVEL_UNSPECIFIED = ACTCTX_REQUESTED_RUN_LEVEL.UNSPECIFIED; pub const ACTCTX_RUN_LEVEL_AS_INVOKER = ACTCTX_REQUESTED_RUN_LEVEL.AS_INVOKER; pub const ACTCTX_RUN_LEVEL_HIGHEST_AVAILABLE = ACTCTX_REQUESTED_RUN_LEVEL.HIGHEST_AVAILABLE; pub const ACTCTX_RUN_LEVEL_REQUIRE_ADMIN = ACTCTX_REQUESTED_RUN_LEVEL.REQUIRE_ADMIN; pub const ACTCTX_RUN_LEVEL_NUMBERS = ACTCTX_REQUESTED_RUN_LEVEL.NUMBERS; pub const ACTIVATION_CONTEXT_RUN_LEVEL_INFORMATION = extern struct { ulFlags: u32, RunLevel: ACTCTX_REQUESTED_RUN_LEVEL, UiAccess: u32, }; pub const ACTCTX_COMPATIBILITY_ELEMENT_TYPE = enum(i32) { UNKNOWN = 0, OS = 1, MITIGATION = 2, MAXVERSIONTESTED = 3, }; pub const ACTCTX_COMPATIBILITY_ELEMENT_TYPE_UNKNOWN = ACTCTX_COMPATIBILITY_ELEMENT_TYPE.UNKNOWN; pub const ACTCTX_COMPATIBILITY_ELEMENT_TYPE_OS = ACTCTX_COMPATIBILITY_ELEMENT_TYPE.OS; pub const ACTCTX_COMPATIBILITY_ELEMENT_TYPE_MITIGATION = ACTCTX_COMPATIBILITY_ELEMENT_TYPE.MITIGATION; pub const ACTCTX_COMPATIBILITY_ELEMENT_TYPE_MAXVERSIONTESTED = ACTCTX_COMPATIBILITY_ELEMENT_TYPE.MAXVERSIONTESTED; pub const COMPATIBILITY_CONTEXT_ELEMENT = extern struct { Id: Guid, Type: ACTCTX_COMPATIBILITY_ELEMENT_TYPE, MaxVersionTested: u64, }; pub const ACTIVATION_CONTEXT_COMPATIBILITY_INFORMATION = extern struct { ElementCount: u32, Elements: [1]COMPATIBILITY_CONTEXT_ELEMENT, }; pub const ACTIVATION_CONTEXT_DETAILED_INFORMATION = extern struct { dwFlags: u32, ulFormatVersion: u32, ulAssemblyCount: u32, ulRootManifestPathType: u32, ulRootManifestPathChars: u32, ulRootConfigurationPathType: u32, ulRootConfigurationPathChars: u32, ulAppDirPathType: u32, ulAppDirPathChars: u32, lpRootManifestPath: ?[*:0]const u16, lpRootConfigurationPath: ?[*:0]const u16, lpAppDirPath: ?[*:0]const u16, }; pub const ACTCTXA = extern struct { cbSize: u32, dwFlags: u32, lpSource: ?[*:0]const u8, wProcessorArchitecture: u16, wLangId: u16, lpAssemblyDirectory: ?[*:0]const u8, lpResourceName: ?[*:0]const u8, lpApplicationName: ?[*:0]const u8, hModule: ?HINSTANCE, }; pub const ACTCTXW = extern struct { cbSize: u32, dwFlags: u32, lpSource: ?[*:0]const u16, wProcessorArchitecture: u16, wLangId: u16, lpAssemblyDirectory: ?[*:0]const u16, lpResourceName: ?[*:0]const u16, lpApplicationName: ?[*:0]const u16, hModule: ?HINSTANCE, }; pub const ACTCTX_SECTION_KEYED_DATA = extern struct { cbSize: u32, ulDataFormatVersion: u32, lpData: ?*anyopaque, ulLength: u32, lpSectionGlobalData: ?*anyopaque, ulSectionGlobalDataLength: u32, lpSectionBase: ?*anyopaque, ulSectionTotalLength: u32, hActCtx: ?HANDLE, ulAssemblyRosterIndex: u32, ulFlags: u32, AssemblyMetadata: ACTCTX_SECTION_KEYED_DATA_ASSEMBLY_METADATA, }; //-------------------------------------------------------------------------------- // Section: Functions (322) //-------------------------------------------------------------------------------- // TODO: this type is limited to platform 'Windows 8' pub extern "msi" fn MsiCloseHandle( hAny: MSIHANDLE, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'Windows 8' pub extern "msi" fn MsiCloseAllHandles() callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'Windows 8' pub extern "msi" fn MsiSetInternalUI( dwUILevel: INSTALLUILEVEL, phWnd: ?*?HWND, ) callconv(@import("std").os.windows.WINAPI) INSTALLUILEVEL; // TODO: this type is limited to platform 'Windows 8' pub extern "msi" fn MsiSetExternalUIA( puiHandler: ?INSTALLUI_HANDLERA, dwMessageFilter: u32, pvContext: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) ?INSTALLUI_HANDLERA; // TODO: this type is limited to platform 'Windows 8' pub extern "msi" fn MsiSetExternalUIW( puiHandler: ?INSTALLUI_HANDLERW, dwMessageFilter: u32, pvContext: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) ?INSTALLUI_HANDLERW; // TODO: this type is limited to platform 'Windows 8' pub extern "msi" fn MsiSetExternalUIRecord( puiHandler: ?PINSTALLUI_HANDLER_RECORD, dwMessageFilter: u32, pvContext: ?*anyopaque, ppuiPrevHandler: ?PINSTALLUI_HANDLER_RECORD, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'Windows 8' pub extern "msi" fn MsiEnableLogA( dwLogMode: INSTALLOGMODE, szLogFile: ?[*:0]const u8, dwLogAttributes: u32, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'Windows 8' pub extern "msi" fn MsiEnableLogW( dwLogMode: INSTALLOGMODE, szLogFile: ?[*:0]const u16, dwLogAttributes: u32, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'Windows 8' pub extern "msi" fn MsiQueryProductStateA( szProduct: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) INSTALLSTATE; // TODO: this type is limited to platform 'Windows 8' pub extern "msi" fn MsiQueryProductStateW( szProduct: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) INSTALLSTATE; // TODO: this type is limited to platform 'Windows 8' pub extern "msi" fn MsiGetProductInfoA( szProduct: ?[*:0]const u8, szAttribute: ?[*:0]const u8, lpValueBuf: ?[*:0]u8, pcchValueBuf: ?*u32, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'Windows 8' pub extern "msi" fn MsiGetProductInfoW( szProduct: ?[*:0]const u16, szAttribute: ?[*:0]const u16, lpValueBuf: ?[*:0]u16, pcchValueBuf: ?*u32, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'Windows 8' pub extern "msi" fn MsiGetProductInfoExA( szProductCode: ?[*:0]const u8, szUserSid: ?[*:0]const u8, dwContext: MSIINSTALLCONTEXT, szProperty: ?[*:0]const u8, szValue: ?[*:0]u8, pcchValue: ?*u32, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'Windows 8' pub extern "msi" fn MsiGetProductInfoExW( szProductCode: ?[*:0]const u16, szUserSid: ?[*:0]const u16, dwContext: MSIINSTALLCONTEXT, szProperty: ?[*:0]const u16, szValue: ?[*:0]u16, pcchValue: ?*u32, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'Windows 8' pub extern "msi" fn MsiInstallProductA( szPackagePath: ?[*:0]const u8, szCommandLine: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'Windows 8' pub extern "msi" fn MsiInstallProductW( szPackagePath: ?[*:0]const u16, szCommandLine: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'Windows 8' pub extern "msi" fn MsiConfigureProductA( szProduct: ?[*:0]const u8, iInstallLevel: INSTALLLEVEL, eInstallState: INSTALLSTATE, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'Windows 8' pub extern "msi" fn MsiConfigureProductW( szProduct: ?[*:0]const u16, iInstallLevel: INSTALLLEVEL, eInstallState: INSTALLSTATE, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'Windows 8' pub extern "msi" fn MsiConfigureProductExA( szProduct: ?[*:0]const u8, iInstallLevel: INSTALLLEVEL, eInstallState: INSTALLSTATE, szCommandLine: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'Windows 8' pub extern "msi" fn MsiConfigureProductExW( szProduct: ?[*:0]const u16, iInstallLevel: INSTALLLEVEL, eInstallState: INSTALLSTATE, szCommandLine: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'Windows 8' pub extern "msi" fn MsiReinstallProductA( szProduct: ?[*:0]const u8, szReinstallMode: REINSTALLMODE, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'Windows 8' pub extern "msi" fn MsiReinstallProductW( szProduct: ?[*:0]const u16, szReinstallMode: REINSTALLMODE, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'Windows 8' pub extern "msi" fn MsiAdvertiseProductExA( szPackagePath: ?[*:0]const u8, szScriptfilePath: ?[*:0]const u8, szTransforms: ?[*:0]const u8, lgidLanguage: u16, dwPlatform: u32, dwOptions: u32, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'Windows 8' pub extern "msi" fn MsiAdvertiseProductExW( szPackagePath: ?[*:0]const u16, szScriptfilePath: ?[*:0]const u16, szTransforms: ?[*:0]const u16, lgidLanguage: u16, dwPlatform: u32, dwOptions: u32, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'Windows 8' pub extern "msi" fn MsiAdvertiseProductA( szPackagePath: ?[*:0]const u8, szScriptfilePath: ?[*:0]const u8, szTransforms: ?[*:0]const u8, lgidLanguage: u16, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'Windows 8' pub extern "msi" fn MsiAdvertiseProductW( szPackagePath: ?[*:0]const u16, szScriptfilePath: ?[*:0]const u16, szTransforms: ?[*:0]const u16, lgidLanguage: u16, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'Windows 8' pub extern "msi" fn MsiProcessAdvertiseScriptA( szScriptFile: ?[*:0]const u8, szIconFolder: ?[*:0]const u8, hRegData: ?HKEY, fShortcuts: BOOL, fRemoveItems: BOOL, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'Windows 8' pub extern "msi" fn MsiProcessAdvertiseScriptW( szScriptFile: ?[*:0]const u16, szIconFolder: ?[*:0]const u16, hRegData: ?HKEY, fShortcuts: BOOL, fRemoveItems: BOOL, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'Windows 8' pub extern "msi" fn MsiAdvertiseScriptA( szScriptFile: ?[*:0]const u8, dwFlags: u32, phRegData: ?*?HKEY, fRemoveItems: BOOL, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'Windows 8' pub extern "msi" fn MsiAdvertiseScriptW( szScriptFile: ?[*:0]const u16, dwFlags: u32, phRegData: ?*?HKEY, fRemoveItems: BOOL, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'Windows 8' pub extern "msi" fn MsiGetProductInfoFromScriptA( szScriptFile: ?[*:0]const u8, lpProductBuf39: ?PSTR, plgidLanguage: ?*u16, pdwVersion: ?*u32, lpNameBuf: ?[*:0]u8, pcchNameBuf: ?*u32, lpPackageBuf: ?[*:0]u8, pcchPackageBuf: ?*u32, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'Windows 8' pub extern "msi" fn MsiGetProductInfoFromScriptW( szScriptFile: ?[*:0]const u16, lpProductBuf39: ?PWSTR, plgidLanguage: ?*u16, pdwVersion: ?*u32, lpNameBuf: ?[*:0]u16, pcchNameBuf: ?*u32, lpPackageBuf: ?[*:0]u16, pcchPackageBuf: ?*u32, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'Windows 8' pub extern "msi" fn MsiGetProductCodeA( szComponent: ?[*:0]const u8, lpBuf39: ?PSTR, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'Windows 8' pub extern "msi" fn MsiGetProductCodeW( szComponent: ?[*:0]const u16, lpBuf39: ?PWSTR, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'Windows 8' pub extern "msi" fn MsiGetUserInfoA( szProduct: ?[*:0]const u8, lpUserNameBuf: ?[*:0]u8, pcchUserNameBuf: ?*u32, lpOrgNameBuf: ?[*:0]u8, pcchOrgNameBuf: ?*u32, lpSerialBuf: ?[*:0]u8, pcchSerialBuf: ?*u32, ) callconv(@import("std").os.windows.WINAPI) USERINFOSTATE; // TODO: this type is limited to platform 'Windows 8' pub extern "msi" fn MsiGetUserInfoW( szProduct: ?[*:0]const u16, lpUserNameBuf: ?[*:0]u16, pcchUserNameBuf: ?*u32, lpOrgNameBuf: ?[*:0]u16, pcchOrgNameBuf: ?*u32, lpSerialBuf: ?[*:0]u16, pcchSerialBuf: ?*u32, ) callconv(@import("std").os.windows.WINAPI) USERINFOSTATE; // TODO: this type is limited to platform 'Windows 8' pub extern "msi" fn MsiCollectUserInfoA( szProduct: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'Windows 8' pub extern "msi" fn MsiCollectUserInfoW( szProduct: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'Windows 8' pub extern "msi" fn MsiApplyPatchA( szPatchPackage: ?[*:0]const u8, szInstallPackage: ?[*:0]const u8, eInstallType: INSTALLTYPE, szCommandLine: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'Windows 8' pub extern "msi" fn MsiApplyPatchW( szPatchPackage: ?[*:0]const u16, szInstallPackage: ?[*:0]const u16, eInstallType: INSTALLTYPE, szCommandLine: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'Windows 8' pub extern "msi" fn MsiGetPatchInfoA( szPatch: ?[*:0]const u8, szAttribute: ?[*:0]const u8, lpValueBuf: ?[*:0]u8, pcchValueBuf: ?*u32, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'Windows 8' pub extern "msi" fn MsiGetPatchInfoW( szPatch: ?[*:0]const u16, szAttribute: ?[*:0]const u16, lpValueBuf: ?[*:0]u16, pcchValueBuf: ?*u32, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'Windows 8' pub extern "msi" fn MsiEnumPatchesA( szProduct: ?[*:0]const u8, iPatchIndex: u32, lpPatchBuf: ?PSTR, lpTransformsBuf: [*:0]u8, pcchTransformsBuf: ?*u32, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'Windows 8' pub extern "msi" fn MsiEnumPatchesW( szProduct: ?[*:0]const u16, iPatchIndex: u32, lpPatchBuf: ?PWSTR, lpTransformsBuf: [*:0]u16, pcchTransformsBuf: ?*u32, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'Windows 8' pub extern "msi" fn MsiRemovePatchesA( szPatchList: ?[*:0]const u8, szProductCode: ?[*:0]const u8, eUninstallType: INSTALLTYPE, szPropertyList: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'Windows 8' pub extern "msi" fn MsiRemovePatchesW( szPatchList: ?[*:0]const u16, szProductCode: ?[*:0]const u16, eUninstallType: INSTALLTYPE, szPropertyList: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'Windows Vista' pub extern "msi" fn MsiExtractPatchXMLDataA( szPatchPath: ?[*:0]const u8, dwReserved: u32, szXMLData: ?[*:0]u8, pcchXMLData: ?*u32, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'Windows Vista' pub extern "msi" fn MsiExtractPatchXMLDataW( szPatchPath: ?[*:0]const u16, dwReserved: u32, szXMLData: ?[*:0]u16, pcchXMLData: ?*u32, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'Windows 8' pub extern "msi" fn MsiGetPatchInfoExA( szPatchCode: ?[*:0]const u8, szProductCode: ?[*:0]const u8, szUserSid: ?[*:0]const u8, dwContext: MSIINSTALLCONTEXT, szProperty: ?[*:0]const u8, lpValue: ?[*:0]u8, pcchValue: ?*u32, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'Windows 8' pub extern "msi" fn MsiGetPatchInfoExW( szPatchCode: ?[*:0]const u16, szProductCode: ?[*:0]const u16, szUserSid: ?[*:0]const u16, dwContext: MSIINSTALLCONTEXT, szProperty: ?[*:0]const u16, lpValue: ?[*:0]u16, pcchValue: ?*u32, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'Windows 8' pub extern "msi" fn MsiApplyMultiplePatchesA( szPatchPackages: ?[*:0]const u8, szProductCode: ?[*:0]const u8, szPropertiesList: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'Windows 8' pub extern "msi" fn MsiApplyMultiplePatchesW( szPatchPackages: ?[*:0]const u16, szProductCode: ?[*:0]const u16, szPropertiesList: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'Windows 8' pub extern "msi" fn MsiDeterminePatchSequenceA( szProductCode: ?[*:0]const u8, szUserSid: ?[*:0]const u8, dwContext: MSIINSTALLCONTEXT, cPatchInfo: u32, pPatchInfo: [*]MSIPATCHSEQUENCEINFOA, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'Windows 8' pub extern "msi" fn MsiDeterminePatchSequenceW( szProductCode: ?[*:0]const u16, szUserSid: ?[*:0]const u16, dwContext: MSIINSTALLCONTEXT, cPatchInfo: u32, pPatchInfo: [*]MSIPATCHSEQUENCEINFOW, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'Windows 8' pub extern "msi" fn MsiDetermineApplicablePatchesA( szProductPackagePath: ?[*:0]const u8, cPatchInfo: u32, pPatchInfo: [*]MSIPATCHSEQUENCEINFOA, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'Windows 8' pub extern "msi" fn MsiDetermineApplicablePatchesW( szProductPackagePath: ?[*:0]const u16, cPatchInfo: u32, pPatchInfo: [*]MSIPATCHSEQUENCEINFOW, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'Windows 8' pub extern "msi" fn MsiEnumPatchesExA( szProductCode: ?[*:0]const u8, szUserSid: ?[*:0]const u8, dwContext: u32, dwFilter: u32, dwIndex: u32, szPatchCode: ?PSTR, szTargetProductCode: ?PSTR, pdwTargetProductContext: ?*MSIINSTALLCONTEXT, szTargetUserSid: ?[*:0]u8, pcchTargetUserSid: ?*u32, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'Windows 8' pub extern "msi" fn MsiEnumPatchesExW( szProductCode: ?[*:0]const u16, szUserSid: ?[*:0]const u16, dwContext: u32, dwFilter: u32, dwIndex: u32, szPatchCode: ?PWSTR, szTargetProductCode: ?PWSTR, pdwTargetProductContext: ?*MSIINSTALLCONTEXT, szTargetUserSid: ?[*:0]u16, pcchTargetUserSid: ?*u32, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'Windows 8' pub extern "msi" fn MsiQueryFeatureStateA( szProduct: ?[*:0]const u8, szFeature: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) INSTALLSTATE; // TODO: this type is limited to platform 'Windows 8' pub extern "msi" fn MsiQueryFeatureStateW( szProduct: ?[*:0]const u16, szFeature: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) INSTALLSTATE; // TODO: this type is limited to platform 'Windows 8' pub extern "msi" fn MsiQueryFeatureStateExA( szProductCode: ?[*:0]const u8, szUserSid: ?[*:0]const u8, dwContext: MSIINSTALLCONTEXT, szFeature: ?[*:0]const u8, pdwState: ?*INSTALLSTATE, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'Windows 8' pub extern "msi" fn MsiQueryFeatureStateExW( szProductCode: ?[*:0]const u16, szUserSid: ?[*:0]const u16, dwContext: MSIINSTALLCONTEXT, szFeature: ?[*:0]const u16, pdwState: ?*INSTALLSTATE, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'Windows 8' pub extern "msi" fn MsiUseFeatureA( szProduct: ?[*:0]const u8, szFeature: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) INSTALLSTATE; // TODO: this type is limited to platform 'Windows 8' pub extern "msi" fn MsiUseFeatureW( szProduct: ?[*:0]const u16, szFeature: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) INSTALLSTATE; // TODO: this type is limited to platform 'Windows 8' pub extern "msi" fn MsiUseFeatureExA( szProduct: ?[*:0]const u8, szFeature: ?[*:0]const u8, dwInstallMode: u32, dwReserved: u32, ) callconv(@import("std").os.windows.WINAPI) INSTALLSTATE; // TODO: this type is limited to platform 'Windows 8' pub extern "msi" fn MsiUseFeatureExW( szProduct: ?[*:0]const u16, szFeature: ?[*:0]const u16, dwInstallMode: u32, dwReserved: u32, ) callconv(@import("std").os.windows.WINAPI) INSTALLSTATE; // TODO: this type is limited to platform 'Windows 8' pub extern "msi" fn MsiGetFeatureUsageA( szProduct: ?[*:0]const u8, szFeature: ?[*:0]const u8, pdwUseCount: ?*u32, pwDateUsed: ?*u16, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'Windows 8' pub extern "msi" fn MsiGetFeatureUsageW( szProduct: ?[*:0]const u16, szFeature: ?[*:0]const u16, pdwUseCount: ?*u32, pwDateUsed: ?*u16, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'Windows 8' pub extern "msi" fn MsiConfigureFeatureA( szProduct: ?[*:0]const u8, szFeature: ?[*:0]const u8, eInstallState: INSTALLSTATE, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'Windows 8' pub extern "msi" fn MsiConfigureFeatureW( szProduct: ?[*:0]const u16, szFeature: ?[*:0]const u16, eInstallState: INSTALLSTATE, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'Windows 8' pub extern "msi" fn MsiReinstallFeatureA( szProduct: ?[*:0]const u8, szFeature: ?[*:0]const u8, dwReinstallMode: REINSTALLMODE, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'Windows 8' pub extern "msi" fn MsiReinstallFeatureW( szProduct: ?[*:0]const u16, szFeature: ?[*:0]const u16, dwReinstallMode: REINSTALLMODE, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'Windows 8' pub extern "msi" fn MsiProvideComponentA( szProduct: ?[*:0]const u8, szFeature: ?[*:0]const u8, szComponent: ?[*:0]const u8, dwInstallMode: INSTALLMODE, lpPathBuf: ?[*:0]u8, pcchPathBuf: ?*u32, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'Windows 8' pub extern "msi" fn MsiProvideComponentW( szProduct: ?[*:0]const u16, szFeature: ?[*:0]const u16, szComponent: ?[*:0]const u16, dwInstallMode: INSTALLMODE, lpPathBuf: ?[*:0]u16, pcchPathBuf: ?*u32, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'Windows 8' pub extern "msi" fn MsiProvideQualifiedComponentA( szCategory: ?[*:0]const u8, szQualifier: ?[*:0]const u8, dwInstallMode: INSTALLMODE, lpPathBuf: ?[*:0]u8, pcchPathBuf: ?*u32, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'Windows 8' pub extern "msi" fn MsiProvideQualifiedComponentW( szCategory: ?[*:0]const u16, szQualifier: ?[*:0]const u16, dwInstallMode: INSTALLMODE, lpPathBuf: ?[*:0]u16, pcchPathBuf: ?*u32, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'Windows 8' pub extern "msi" fn MsiProvideQualifiedComponentExA( szCategory: ?[*:0]const u8, szQualifier: ?[*:0]const u8, dwInstallMode: INSTALLMODE, szProduct: ?[*:0]const u8, dwUnused1: u32, dwUnused2: u32, lpPathBuf: ?[*:0]u8, pcchPathBuf: ?*u32, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'Windows 8' pub extern "msi" fn MsiProvideQualifiedComponentExW( szCategory: ?[*:0]const u16, szQualifier: ?[*:0]const u16, dwInstallMode: INSTALLMODE, szProduct: ?[*:0]const u16, dwUnused1: u32, dwUnused2: u32, lpPathBuf: ?[*:0]u16, pcchPathBuf: ?*u32, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'Windows 8' pub extern "msi" fn MsiGetComponentPathA( szProduct: ?[*:0]const u8, szComponent: ?[*:0]const u8, lpPathBuf: ?[*:0]u8, pcchBuf: ?*u32, ) callconv(@import("std").os.windows.WINAPI) INSTALLSTATE; // TODO: this type is limited to platform 'Windows 8' pub extern "msi" fn MsiGetComponentPathW( szProduct: ?[*:0]const u16, szComponent: ?[*:0]const u16, lpPathBuf: ?[*:0]u16, pcchBuf: ?*u32, ) callconv(@import("std").os.windows.WINAPI) INSTALLSTATE; // TODO: this type is limited to platform 'Windows 8' // This function from dll 'msi' is being skipped because it has some sort of issue pub fn MsiGetComponentPathExA() void { @panic("this function is not working"); } // TODO: this type is limited to platform 'Windows 8' // This function from dll 'msi' is being skipped because it has some sort of issue pub fn MsiGetComponentPathExW() void { @panic("this function is not working"); } // TODO: this type is limited to platform 'Windows 8' pub extern "msi" fn MsiProvideAssemblyA( szAssemblyName: ?[*:0]const u8, szAppContext: ?[*:0]const u8, dwInstallMode: INSTALLMODE, dwAssemblyInfo: MSIASSEMBLYINFO, lpPathBuf: ?[*:0]u8, pcchPathBuf: ?*u32, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'Windows 8' pub extern "msi" fn MsiProvideAssemblyW( szAssemblyName: ?[*:0]const u16, szAppContext: ?[*:0]const u16, dwInstallMode: INSTALLMODE, dwAssemblyInfo: MSIASSEMBLYINFO, lpPathBuf: ?[*:0]u16, pcchPathBuf: ?*u32, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'Windows 8' pub extern "msi" fn MsiQueryComponentStateA( szProductCode: ?[*:0]const u8, szUserSid: ?[*:0]const u8, dwContext: MSIINSTALLCONTEXT, szComponentCode: ?[*:0]const u8, pdwState: ?*INSTALLSTATE, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'Windows 8' pub extern "msi" fn MsiQueryComponentStateW( szProductCode: ?[*:0]const u16, szUserSid: ?[*:0]const u16, dwContext: MSIINSTALLCONTEXT, szComponentCode: ?[*:0]const u16, pdwState: ?*INSTALLSTATE, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'Windows 8' pub extern "msi" fn MsiEnumProductsA( iProductIndex: u32, lpProductBuf: ?PSTR, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'Windows 8' pub extern "msi" fn MsiEnumProductsW( iProductIndex: u32, lpProductBuf: ?PWSTR, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'Windows 8' pub extern "msi" fn MsiEnumProductsExA( szProductCode: ?[*:0]const u8, szUserSid: ?[*:0]const u8, dwContext: u32, dwIndex: u32, szInstalledProductCode: ?PSTR, pdwInstalledContext: ?*MSIINSTALLCONTEXT, szSid: ?[*:0]u8, pcchSid: ?*u32, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'Windows 8' pub extern "msi" fn MsiEnumProductsExW( szProductCode: ?[*:0]const u16, szUserSid: ?[*:0]const u16, dwContext: u32, dwIndex: u32, szInstalledProductCode: ?PWSTR, pdwInstalledContext: ?*MSIINSTALLCONTEXT, szSid: ?[*:0]u16, pcchSid: ?*u32, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'Windows 8' pub extern "msi" fn MsiEnumRelatedProductsA( lpUpgradeCode: ?[*:0]const u8, dwReserved: u32, iProductIndex: u32, lpProductBuf: ?PSTR, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'Windows 8' pub extern "msi" fn MsiEnumRelatedProductsW( lpUpgradeCode: ?[*:0]const u16, dwReserved: u32, iProductIndex: u32, lpProductBuf: ?PWSTR, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'Windows 8' pub extern "msi" fn MsiEnumFeaturesA( szProduct: ?[*:0]const u8, iFeatureIndex: u32, lpFeatureBuf: ?PSTR, lpParentBuf: ?PSTR, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'Windows 8' pub extern "msi" fn MsiEnumFeaturesW( szProduct: ?[*:0]const u16, iFeatureIndex: u32, lpFeatureBuf: ?PWSTR, lpParentBuf: ?PWSTR, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'Windows 8' pub extern "msi" fn MsiEnumComponentsA( iComponentIndex: u32, lpComponentBuf: ?PSTR, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'Windows 8' pub extern "msi" fn MsiEnumComponentsW( iComponentIndex: u32, lpComponentBuf: ?PWSTR, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'Windows 8' pub extern "msi" fn MsiEnumComponentsExA( szUserSid: ?[*:0]const u8, dwContext: u32, dwIndex: u32, szInstalledComponentCode: ?PSTR, pdwInstalledContext: ?*MSIINSTALLCONTEXT, szSid: ?[*:0]u8, pcchSid: ?*u32, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'Windows 8' pub extern "msi" fn MsiEnumComponentsExW( szUserSid: ?[*:0]const u16, dwContext: u32, dwIndex: u32, szInstalledComponentCode: ?PWSTR, pdwInstalledContext: ?*MSIINSTALLCONTEXT, szSid: ?[*:0]u16, pcchSid: ?*u32, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'Windows 8' pub extern "msi" fn MsiEnumClientsA( szComponent: ?[*:0]const u8, iProductIndex: u32, lpProductBuf: ?PSTR, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'Windows 8' pub extern "msi" fn MsiEnumClientsW( szComponent: ?[*:0]const u16, iProductIndex: u32, lpProductBuf: ?PWSTR, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'Windows 8' pub extern "msi" fn MsiEnumClientsExA( szComponent: ?[*:0]const u8, szUserSid: ?[*:0]const u8, dwContext: MSIINSTALLCONTEXT, dwProductIndex: u32, szProductBuf: ?PSTR, pdwInstalledContext: ?*MSIINSTALLCONTEXT, szSid: ?[*:0]u8, pcchSid: ?*u32, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'Windows 8' pub extern "msi" fn MsiEnumClientsExW( szComponent: ?[*:0]const u16, szUserSid: ?[*:0]const u16, dwContext: MSIINSTALLCONTEXT, dwProductIndex: u32, szProductBuf: ?PWSTR, pdwInstalledContext: ?*MSIINSTALLCONTEXT, szSid: ?[*:0]u16, pcchSid: ?*u32, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'Windows 8' pub extern "msi" fn MsiEnumComponentQualifiersA( szComponent: ?[*:0]const u8, iIndex: u32, lpQualifierBuf: [*:0]u8, pcchQualifierBuf: ?*u32, lpApplicationDataBuf: ?[*:0]u8, pcchApplicationDataBuf: ?*u32, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'Windows 8' pub extern "msi" fn MsiEnumComponentQualifiersW( szComponent: ?[*:0]const u16, iIndex: u32, lpQualifierBuf: [*:0]u16, pcchQualifierBuf: ?*u32, lpApplicationDataBuf: ?[*:0]u16, pcchApplicationDataBuf: ?*u32, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'Windows 8' pub extern "msi" fn MsiOpenProductA( szProduct: ?[*:0]const u8, hProduct: ?*MSIHANDLE, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'Windows 8' pub extern "msi" fn MsiOpenProductW( szProduct: ?[*:0]const u16, hProduct: ?*MSIHANDLE, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'Windows 8' pub extern "msi" fn MsiOpenPackageA( szPackagePath: ?[*:0]const u8, hProduct: ?*MSIHANDLE, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'Windows 8' pub extern "msi" fn MsiOpenPackageW( szPackagePath: ?[*:0]const u16, hProduct: ?*MSIHANDLE, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'Windows 8' pub extern "msi" fn MsiOpenPackageExA( szPackagePath: ?[*:0]const u8, dwOptions: u32, hProduct: ?*MSIHANDLE, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'Windows 8' pub extern "msi" fn MsiOpenPackageExW( szPackagePath: ?[*:0]const u16, dwOptions: u32, hProduct: ?*MSIHANDLE, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'Windows 8' pub extern "msi" fn MsiGetPatchFileListA( szProductCode: ?[*:0]const u8, szPatchPackages: ?[*:0]const u8, pcFiles: ?*u32, pphFileRecords: ?*?*MSIHANDLE, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'Windows 8' pub extern "msi" fn MsiGetPatchFileListW( szProductCode: ?[*:0]const u16, szPatchPackages: ?[*:0]const u16, pcFiles: ?*u32, pphFileRecords: ?*?*MSIHANDLE, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'Windows 8' pub extern "msi" fn MsiGetProductPropertyA( hProduct: MSIHANDLE, szProperty: ?[*:0]const u8, lpValueBuf: ?[*:0]u8, pcchValueBuf: ?*u32, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'Windows 8' pub extern "msi" fn MsiGetProductPropertyW( hProduct: MSIHANDLE, szProperty: ?[*:0]const u16, lpValueBuf: ?[*:0]u16, pcchValueBuf: ?*u32, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'Windows 8' pub extern "msi" fn MsiVerifyPackageA( szPackagePath: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'Windows 8' pub extern "msi" fn MsiVerifyPackageW( szPackagePath: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'Windows 8' pub extern "msi" fn MsiGetFeatureInfoA( hProduct: MSIHANDLE, szFeature: ?[*:0]const u8, lpAttributes: ?*u32, lpTitleBuf: ?[*:0]u8, pcchTitleBuf: ?*u32, lpHelpBuf: ?[*:0]u8, pcchHelpBuf: ?*u32, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'Windows 8' pub extern "msi" fn MsiGetFeatureInfoW( hProduct: MSIHANDLE, szFeature: ?[*:0]const u16, lpAttributes: ?*u32, lpTitleBuf: ?[*:0]u16, pcchTitleBuf: ?*u32, lpHelpBuf: ?[*:0]u16, pcchHelpBuf: ?*u32, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'Windows 8' pub extern "msi" fn MsiInstallMissingComponentA( szProduct: ?[*:0]const u8, szComponent: ?[*:0]const u8, eInstallState: INSTALLSTATE, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'Windows 8' pub extern "msi" fn MsiInstallMissingComponentW( szProduct: ?[*:0]const u16, szComponent: ?[*:0]const u16, eInstallState: INSTALLSTATE, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'Windows 8' pub extern "msi" fn MsiInstallMissingFileA( szProduct: ?[*:0]const u8, szFile: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'Windows 8' pub extern "msi" fn MsiInstallMissingFileW( szProduct: ?[*:0]const u16, szFile: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'Windows 8' pub extern "msi" fn MsiLocateComponentA( szComponent: ?[*:0]const u8, lpPathBuf: ?[*:0]u8, pcchBuf: ?*u32, ) callconv(@import("std").os.windows.WINAPI) INSTALLSTATE; // TODO: this type is limited to platform 'Windows 8' pub extern "msi" fn MsiLocateComponentW( szComponent: ?[*:0]const u16, lpPathBuf: ?[*:0]u16, pcchBuf: ?*u32, ) callconv(@import("std").os.windows.WINAPI) INSTALLSTATE; // TODO: this type is limited to platform 'Windows 8' pub extern "msi" fn MsiSourceListClearAllA( szProduct: ?[*:0]const u8, szUserName: ?[*:0]const u8, dwReserved: u32, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'Windows 8' pub extern "msi" fn MsiSourceListClearAllW( szProduct: ?[*:0]const u16, szUserName: ?[*:0]const u16, dwReserved: u32, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'Windows 8' pub extern "msi" fn MsiSourceListAddSourceA( szProduct: ?[*:0]const u8, szUserName: ?[*:0]const u8, dwReserved: u32, szSource: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'Windows 8' pub extern "msi" fn MsiSourceListAddSourceW( szProduct: ?[*:0]const u16, szUserName: ?[*:0]const u16, dwReserved: u32, szSource: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'Windows 8' pub extern "msi" fn MsiSourceListForceResolutionA( szProduct: ?[*:0]const u8, szUserName: ?[*:0]const u8, dwReserved: u32, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'Windows 8' pub extern "msi" fn MsiSourceListForceResolutionW( szProduct: ?[*:0]const u16, szUserName: ?[*:0]const u16, dwReserved: u32, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'Windows 8' pub extern "msi" fn MsiSourceListAddSourceExA( szProductCodeOrPatchCode: ?[*:0]const u8, szUserSid: ?[*:0]const u8, dwContext: MSIINSTALLCONTEXT, dwOptions: u32, szSource: ?[*:0]const u8, dwIndex: u32, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'Windows 8' pub extern "msi" fn MsiSourceListAddSourceExW( szProductCodeOrPatchCode: ?[*:0]const u16, szUserSid: ?[*:0]const u16, dwContext: MSIINSTALLCONTEXT, dwOptions: u32, szSource: ?[*:0]const u16, dwIndex: u32, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'Windows 8' pub extern "msi" fn MsiSourceListAddMediaDiskA( szProductCodeOrPatchCode: ?[*:0]const u8, szUserSid: ?[*:0]const u8, dwContext: MSIINSTALLCONTEXT, dwOptions: u32, dwDiskId: u32, szVolumeLabel: ?[*:0]const u8, szDiskPrompt: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'Windows 8' pub extern "msi" fn MsiSourceListAddMediaDiskW( szProductCodeOrPatchCode: ?[*:0]const u16, szUserSid: ?[*:0]const u16, dwContext: MSIINSTALLCONTEXT, dwOptions: u32, dwDiskId: u32, szVolumeLabel: ?[*:0]const u16, szDiskPrompt: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'Windows 8' pub extern "msi" fn MsiSourceListClearSourceA( szProductCodeOrPatchCode: ?[*:0]const u8, szUserSid: ?[*:0]const u8, dwContext: MSIINSTALLCONTEXT, dwOptions: u32, szSource: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'Windows 8' pub extern "msi" fn MsiSourceListClearSourceW( szProductCodeOrPatchCode: ?[*:0]const u16, szUserSid: ?[*:0]const u16, dwContext: MSIINSTALLCONTEXT, dwOptions: u32, szSource: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'Windows 8' pub extern "msi" fn MsiSourceListClearMediaDiskA( szProductCodeOrPatchCode: ?[*:0]const u8, szUserSid: ?[*:0]const u8, dwContext: MSIINSTALLCONTEXT, dwOptions: u32, dwDiskId: u32, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'Windows 8' pub extern "msi" fn MsiSourceListClearMediaDiskW( szProductCodeOrPatchCode: ?[*:0]const u16, szUserSid: ?[*:0]const u16, dwContext: MSIINSTALLCONTEXT, dwOptions: u32, dwDiskId: u32, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'Windows 8' pub extern "msi" fn MsiSourceListClearAllExA( szProductCodeOrPatchCode: ?[*:0]const u8, szUserSid: ?[*:0]const u8, dwContext: MSIINSTALLCONTEXT, dwOptions: u32, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'Windows 8' pub extern "msi" fn MsiSourceListClearAllExW( szProductCodeOrPatchCode: ?[*:0]const u16, szUserSid: ?[*:0]const u16, dwContext: MSIINSTALLCONTEXT, dwOptions: u32, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'Windows 8' pub extern "msi" fn MsiSourceListForceResolutionExA( szProductCodeOrPatchCode: ?[*:0]const u8, szUserSid: ?[*:0]const u8, dwContext: MSIINSTALLCONTEXT, dwOptions: u32, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'Windows 8' pub extern "msi" fn MsiSourceListForceResolutionExW( szProductCodeOrPatchCode: ?[*:0]const u16, szUserSid: ?[*:0]const u16, dwContext: MSIINSTALLCONTEXT, dwOptions: u32, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'Windows 8' pub extern "msi" fn MsiSourceListSetInfoA( szProductCodeOrPatchCode: ?[*:0]const u8, szUserSid: ?[*:0]const u8, dwContext: MSIINSTALLCONTEXT, dwOptions: u32, szProperty: ?[*:0]const u8, szValue: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'Windows 8' pub extern "msi" fn MsiSourceListSetInfoW( szProductCodeOrPatchCode: ?[*:0]const u16, szUserSid: ?[*:0]const u16, dwContext: MSIINSTALLCONTEXT, dwOptions: u32, szProperty: ?[*:0]const u16, szValue: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'Windows 8' pub extern "msi" fn MsiSourceListGetInfoA( szProductCodeOrPatchCode: ?[*:0]const u8, szUserSid: ?[*:0]const u8, dwContext: MSIINSTALLCONTEXT, dwOptions: u32, szProperty: ?[*:0]const u8, szValue: ?[*:0]u8, pcchValue: ?*u32, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'Windows 8' pub extern "msi" fn MsiSourceListGetInfoW( szProductCodeOrPatchCode: ?[*:0]const u16, szUserSid: ?[*:0]const u16, dwContext: MSIINSTALLCONTEXT, dwOptions: u32, szProperty: ?[*:0]const u16, szValue: ?[*:0]u16, pcchValue: ?*u32, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'Windows 8' pub extern "msi" fn MsiSourceListEnumSourcesA( szProductCodeOrPatchCode: ?[*:0]const u8, szUserSid: ?[*:0]const u8, dwContext: MSIINSTALLCONTEXT, dwOptions: u32, dwIndex: u32, szSource: ?[*:0]u8, pcchSource: ?*u32, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'Windows 8' pub extern "msi" fn MsiSourceListEnumSourcesW( szProductCodeOrPatchCode: ?[*:0]const u16, szUserSid: ?[*:0]const u16, dwContext: MSIINSTALLCONTEXT, dwOptions: u32, dwIndex: u32, szSource: ?[*:0]u16, pcchSource: ?*u32, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'Windows 8' pub extern "msi" fn MsiSourceListEnumMediaDisksA( szProductCodeOrPatchCode: ?[*:0]const u8, szUserSid: ?[*:0]const u8, dwContext: MSIINSTALLCONTEXT, dwOptions: u32, dwIndex: u32, pdwDiskId: ?*u32, szVolumeLabel: ?[*:0]u8, pcchVolumeLabel: ?*u32, szDiskPrompt: ?[*:0]u8, pcchDiskPrompt: ?*u32, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'Windows 8' pub extern "msi" fn MsiSourceListEnumMediaDisksW( szProductCodeOrPatchCode: ?[*:0]const u16, szUserSid: ?[*:0]const u16, dwContext: MSIINSTALLCONTEXT, dwOptions: u32, dwIndex: u32, pdwDiskId: ?*u32, szVolumeLabel: ?[*:0]u16, pcchVolumeLabel: ?*u32, szDiskPrompt: ?[*:0]u16, pcchDiskPrompt: ?*u32, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'Windows 8' pub extern "msi" fn MsiGetFileVersionA( szFilePath: ?[*:0]const u8, lpVersionBuf: ?[*:0]u8, pcchVersionBuf: ?*u32, lpLangBuf: ?[*:0]u8, pcchLangBuf: ?*u32, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'Windows 8' pub extern "msi" fn MsiGetFileVersionW( szFilePath: ?[*:0]const u16, lpVersionBuf: ?[*:0]u16, pcchVersionBuf: ?*u32, lpLangBuf: ?[*:0]u16, pcchLangBuf: ?*u32, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'Windows 8' pub extern "msi" fn MsiGetFileHashA( szFilePath: ?[*:0]const u8, dwOptions: u32, pHash: ?*MSIFILEHASHINFO, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'Windows 8' pub extern "msi" fn MsiGetFileHashW( szFilePath: ?[*:0]const u16, dwOptions: u32, pHash: ?*MSIFILEHASHINFO, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'Windows 8' pub extern "msi" fn MsiGetFileSignatureInformationA( szSignedObjectPath: ?[*:0]const u8, dwFlags: u32, ppcCertContext: ?*?*CERT_CONTEXT, // TODO: what to do with BytesParamIndex 4? pbHashData: ?*u8, pcbHashData: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT; // TODO: this type is limited to platform 'Windows 8' pub extern "msi" fn MsiGetFileSignatureInformationW( szSignedObjectPath: ?[*:0]const u16, dwFlags: u32, ppcCertContext: ?*?*CERT_CONTEXT, // TODO: what to do with BytesParamIndex 4? pbHashData: ?*u8, pcbHashData: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT; // TODO: this type is limited to platform 'Windows 8' pub extern "msi" fn MsiGetShortcutTargetA( szShortcutPath: ?[*:0]const u8, szProductCode: ?PSTR, szFeatureId: ?PSTR, szComponentCode: ?PSTR, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'Windows 8' pub extern "msi" fn MsiGetShortcutTargetW( szShortcutPath: ?[*:0]const u16, szProductCode: ?PWSTR, szFeatureId: ?PWSTR, szComponentCode: ?PWSTR, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'Windows 8' pub extern "msi" fn MsiIsProductElevatedA( szProduct: ?[*:0]const u8, pfElevated: ?*BOOL, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'Windows 8' pub extern "msi" fn MsiIsProductElevatedW( szProduct: ?[*:0]const u16, pfElevated: ?*BOOL, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'Windows 8' pub extern "msi" fn MsiNotifySidChangeA( pOldSid: ?[*:0]const u8, pNewSid: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'Windows 8' pub extern "msi" fn MsiNotifySidChangeW( pOldSid: ?[*:0]const u16, pNewSid: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'Windows 8' pub extern "msi" fn MsiBeginTransactionA( szName: ?[*:0]const u8, dwTransactionAttributes: u32, phTransactionHandle: ?*MSIHANDLE, phChangeOfOwnerEvent: ?*?HANDLE, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'Windows 8' pub extern "msi" fn MsiBeginTransactionW( szName: ?[*:0]const u16, dwTransactionAttributes: u32, phTransactionHandle: ?*MSIHANDLE, phChangeOfOwnerEvent: ?*?HANDLE, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'Windows 8' pub extern "msi" fn MsiEndTransaction( dwTransactionState: MSITRANSACTIONSTATE, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'Windows 8' pub extern "msi" fn MsiJoinTransaction( hTransactionHandle: MSIHANDLE, dwTransactionAttributes: u32, phChangeOfOwnerEvent: ?*?HANDLE, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'Windows 8' pub extern "msi" fn MsiDatabaseOpenViewA( hDatabase: MSIHANDLE, szQuery: ?[*:0]const u8, phView: ?*MSIHANDLE, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'Windows 8' pub extern "msi" fn MsiDatabaseOpenViewW( hDatabase: MSIHANDLE, szQuery: ?[*:0]const u16, phView: ?*MSIHANDLE, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'Windows 8' pub extern "msi" fn MsiViewGetErrorA( hView: MSIHANDLE, szColumnNameBuffer: ?[*:0]u8, pcchBuf: ?*u32, ) callconv(@import("std").os.windows.WINAPI) MSIDBERROR; // TODO: this type is limited to platform 'Windows 8' pub extern "msi" fn MsiViewGetErrorW( hView: MSIHANDLE, szColumnNameBuffer: ?[*:0]u16, pcchBuf: ?*u32, ) callconv(@import("std").os.windows.WINAPI) MSIDBERROR; // TODO: this type is limited to platform 'Windows 8' pub extern "msi" fn MsiViewExecute( hView: MSIHANDLE, hRecord: MSIHANDLE, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'Windows 8' pub extern "msi" fn MsiViewFetch( hView: MSIHANDLE, phRecord: ?*MSIHANDLE, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'Windows 8' pub extern "msi" fn MsiViewModify( hView: MSIHANDLE, eModifyMode: MSIMODIFY, hRecord: MSIHANDLE, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'Windows 8' pub extern "msi" fn MsiViewGetColumnInfo( hView: MSIHANDLE, eColumnInfo: MSICOLINFO, phRecord: ?*MSIHANDLE, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'Windows 8' pub extern "msi" fn MsiViewClose( hView: MSIHANDLE, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'Windows 8' pub extern "msi" fn MsiDatabaseGetPrimaryKeysA( hDatabase: MSIHANDLE, szTableName: ?[*:0]const u8, phRecord: ?*MSIHANDLE, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'Windows 8' pub extern "msi" fn MsiDatabaseGetPrimaryKeysW( hDatabase: MSIHANDLE, szTableName: ?[*:0]const u16, phRecord: ?*MSIHANDLE, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'Windows 8' pub extern "msi" fn MsiDatabaseIsTablePersistentA( hDatabase: MSIHANDLE, szTableName: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) MSICONDITION; // TODO: this type is limited to platform 'Windows 8' pub extern "msi" fn MsiDatabaseIsTablePersistentW( hDatabase: MSIHANDLE, szTableName: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) MSICONDITION; // TODO: this type is limited to platform 'Windows 8' pub extern "msi" fn MsiGetSummaryInformationA( hDatabase: MSIHANDLE, szDatabasePath: ?[*:0]const u8, uiUpdateCount: u32, phSummaryInfo: ?*MSIHANDLE, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'Windows 8' pub extern "msi" fn MsiGetSummaryInformationW( hDatabase: MSIHANDLE, szDatabasePath: ?[*:0]const u16, uiUpdateCount: u32, phSummaryInfo: ?*MSIHANDLE, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'Windows 8' pub extern "msi" fn MsiSummaryInfoGetPropertyCount( hSummaryInfo: MSIHANDLE, puiPropertyCount: ?*u32, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'Windows 8' pub extern "msi" fn MsiSummaryInfoSetPropertyA( hSummaryInfo: MSIHANDLE, uiProperty: u32, uiDataType: u32, iValue: i32, pftValue: ?*FILETIME, szValue: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'Windows 8' pub extern "msi" fn MsiSummaryInfoSetPropertyW( hSummaryInfo: MSIHANDLE, uiProperty: u32, uiDataType: u32, iValue: i32, pftValue: ?*FILETIME, szValue: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'Windows 8' pub extern "msi" fn MsiSummaryInfoGetPropertyA( hSummaryInfo: MSIHANDLE, uiProperty: u32, puiDataType: ?*u32, piValue: ?*i32, pftValue: ?*FILETIME, szValueBuf: ?[*:0]u8, pcchValueBuf: ?*u32, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'Windows 8' pub extern "msi" fn MsiSummaryInfoGetPropertyW( hSummaryInfo: MSIHANDLE, uiProperty: u32, puiDataType: ?*u32, piValue: ?*i32, pftValue: ?*FILETIME, szValueBuf: ?[*:0]u16, pcchValueBuf: ?*u32, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'Windows 8' pub extern "msi" fn MsiSummaryInfoPersist( hSummaryInfo: MSIHANDLE, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'Windows 8' pub extern "msi" fn MsiOpenDatabaseA( szDatabasePath: ?[*:0]const u8, szPersist: ?[*:0]const u8, phDatabase: ?*MSIHANDLE, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'Windows 8' pub extern "msi" fn MsiOpenDatabaseW( szDatabasePath: ?[*:0]const u16, szPersist: ?[*:0]const u16, phDatabase: ?*MSIHANDLE, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'Windows 8' pub extern "msi" fn MsiDatabaseImportA( hDatabase: MSIHANDLE, szFolderPath: ?[*:0]const u8, szFileName: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'Windows 8' pub extern "msi" fn MsiDatabaseImportW( hDatabase: MSIHANDLE, szFolderPath: ?[*:0]const u16, szFileName: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'Windows 8' pub extern "msi" fn MsiDatabaseExportA( hDatabase: MSIHANDLE, szTableName: ?[*:0]const u8, szFolderPath: ?[*:0]const u8, szFileName: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'Windows 8' pub extern "msi" fn MsiDatabaseExportW( hDatabase: MSIHANDLE, szTableName: ?[*:0]const u16, szFolderPath: ?[*:0]const u16, szFileName: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'Windows 8' pub extern "msi" fn MsiDatabaseMergeA( hDatabase: MSIHANDLE, hDatabaseMerge: MSIHANDLE, szTableName: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'Windows 8' pub extern "msi" fn MsiDatabaseMergeW( hDatabase: MSIHANDLE, hDatabaseMerge: MSIHANDLE, szTableName: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'Windows 8' pub extern "msi" fn MsiDatabaseGenerateTransformA( hDatabase: MSIHANDLE, hDatabaseReference: MSIHANDLE, szTransformFile: ?[*:0]const u8, iReserved1: i32, iReserved2: i32, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'Windows 8' pub extern "msi" fn MsiDatabaseGenerateTransformW( hDatabase: MSIHANDLE, hDatabaseReference: MSIHANDLE, szTransformFile: ?[*:0]const u16, iReserved1: i32, iReserved2: i32, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'Windows 8' pub extern "msi" fn MsiDatabaseApplyTransformA( hDatabase: MSIHANDLE, szTransformFile: ?[*:0]const u8, iErrorConditions: MSITRANSFORM_ERROR, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'Windows 8' pub extern "msi" fn MsiDatabaseApplyTransformW( hDatabase: MSIHANDLE, szTransformFile: ?[*:0]const u16, iErrorConditions: MSITRANSFORM_ERROR, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'Windows 8' pub extern "msi" fn MsiCreateTransformSummaryInfoA( hDatabase: MSIHANDLE, hDatabaseReference: MSIHANDLE, szTransformFile: ?[*:0]const u8, iErrorConditions: MSITRANSFORM_ERROR, iValidation: MSITRANSFORM_VALIDATE, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'Windows 8' pub extern "msi" fn MsiCreateTransformSummaryInfoW( hDatabase: MSIHANDLE, hDatabaseReference: MSIHANDLE, szTransformFile: ?[*:0]const u16, iErrorConditions: MSITRANSFORM_ERROR, iValidation: MSITRANSFORM_VALIDATE, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'Windows 8' pub extern "msi" fn MsiDatabaseCommit( hDatabase: MSIHANDLE, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'Windows 8' pub extern "msi" fn MsiGetDatabaseState( hDatabase: MSIHANDLE, ) callconv(@import("std").os.windows.WINAPI) MSIDBSTATE; // TODO: this type is limited to platform 'Windows 8' pub extern "msi" fn MsiCreateRecord( cParams: u32, ) callconv(@import("std").os.windows.WINAPI) MSIHANDLE; // TODO: this type is limited to platform 'Windows 8' pub extern "msi" fn MsiRecordIsNull( hRecord: MSIHANDLE, iField: u32, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'Windows 8' pub extern "msi" fn MsiRecordDataSize( hRecord: MSIHANDLE, iField: u32, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'Windows 8' pub extern "msi" fn MsiRecordSetInteger( hRecord: MSIHANDLE, iField: u32, iValue: i32, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'Windows 8' pub extern "msi" fn MsiRecordSetStringA( hRecord: MSIHANDLE, iField: u32, szValue: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'Windows 8' pub extern "msi" fn MsiRecordSetStringW( hRecord: MSIHANDLE, iField: u32, szValue: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'Windows 8' pub extern "msi" fn MsiRecordGetInteger( hRecord: MSIHANDLE, iField: u32, ) callconv(@import("std").os.windows.WINAPI) i32; // TODO: this type is limited to platform 'Windows 8' pub extern "msi" fn MsiRecordGetStringA( hRecord: MSIHANDLE, iField: u32, szValueBuf: ?[*:0]u8, pcchValueBuf: ?*u32, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'Windows 8' pub extern "msi" fn MsiRecordGetStringW( hRecord: MSIHANDLE, iField: u32, szValueBuf: ?[*:0]u16, pcchValueBuf: ?*u32, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'Windows 8' pub extern "msi" fn MsiRecordGetFieldCount( hRecord: MSIHANDLE, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'Windows 8' pub extern "msi" fn MsiRecordSetStreamA( hRecord: MSIHANDLE, iField: u32, szFilePath: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'Windows 8' pub extern "msi" fn MsiRecordSetStreamW( hRecord: MSIHANDLE, iField: u32, szFilePath: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'Windows 8' pub extern "msi" fn MsiRecordReadStream( hRecord: MSIHANDLE, iField: u32, // TODO: what to do with BytesParamIndex 3? szDataBuf: ?PSTR, pcbDataBuf: ?*u32, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'Windows 8' pub extern "msi" fn MsiRecordClearData( hRecord: MSIHANDLE, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'Windows 8' pub extern "msi" fn MsiGetActiveDatabase( hInstall: MSIHANDLE, ) callconv(@import("std").os.windows.WINAPI) MSIHANDLE; // TODO: this type is limited to platform 'Windows 8' pub extern "msi" fn MsiSetPropertyA( hInstall: MSIHANDLE, szName: ?[*:0]const u8, szValue: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'Windows 8' pub extern "msi" fn MsiSetPropertyW( hInstall: MSIHANDLE, szName: ?[*:0]const u16, szValue: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'Windows 8' pub extern "msi" fn MsiGetPropertyA( hInstall: MSIHANDLE, szName: ?[*:0]const u8, szValueBuf: ?[*:0]u8, pcchValueBuf: ?*u32, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'Windows 8' pub extern "msi" fn MsiGetPropertyW( hInstall: MSIHANDLE, szName: ?[*:0]const u16, szValueBuf: ?[*:0]u16, pcchValueBuf: ?*u32, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'Windows 8' pub extern "msi" fn MsiGetLanguage( hInstall: MSIHANDLE, ) callconv(@import("std").os.windows.WINAPI) u16; // TODO: this type is limited to platform 'Windows 8' pub extern "msi" fn MsiGetMode( hInstall: MSIHANDLE, eRunMode: MSIRUNMODE, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'Windows 8' pub extern "msi" fn MsiSetMode( hInstall: MSIHANDLE, eRunMode: MSIRUNMODE, fState: BOOL, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'Windows 8' pub extern "msi" fn MsiFormatRecordA( hInstall: MSIHANDLE, hRecord: MSIHANDLE, szResultBuf: ?[*:0]u8, pcchResultBuf: ?*u32, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'Windows 8' pub extern "msi" fn MsiFormatRecordW( hInstall: MSIHANDLE, hRecord: MSIHANDLE, szResultBuf: ?[*:0]u16, pcchResultBuf: ?*u32, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'Windows 8' pub extern "msi" fn MsiDoActionA( hInstall: MSIHANDLE, szAction: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'Windows 8' pub extern "msi" fn MsiDoActionW( hInstall: MSIHANDLE, szAction: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'Windows 8' pub extern "msi" fn MsiSequenceA( hInstall: MSIHANDLE, szTable: ?[*:0]const u8, iSequenceMode: i32, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'Windows 8' pub extern "msi" fn MsiSequenceW( hInstall: MSIHANDLE, szTable: ?[*:0]const u16, iSequenceMode: i32, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'Windows 8' pub extern "msi" fn MsiProcessMessage( hInstall: MSIHANDLE, eMessageType: INSTALLMESSAGE, hRecord: MSIHANDLE, ) callconv(@import("std").os.windows.WINAPI) i32; // TODO: this type is limited to platform 'Windows 8' pub extern "msi" fn MsiEvaluateConditionA( hInstall: MSIHANDLE, szCondition: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) MSICONDITION; // TODO: this type is limited to platform 'Windows 8' pub extern "msi" fn MsiEvaluateConditionW( hInstall: MSIHANDLE, szCondition: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) MSICONDITION; // TODO: this type is limited to platform 'Windows 8' pub extern "msi" fn MsiGetFeatureStateA( hInstall: MSIHANDLE, szFeature: ?[*:0]const u8, piInstalled: ?*INSTALLSTATE, piAction: ?*INSTALLSTATE, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'Windows 8' pub extern "msi" fn MsiGetFeatureStateW( hInstall: MSIHANDLE, szFeature: ?[*:0]const u16, piInstalled: ?*INSTALLSTATE, piAction: ?*INSTALLSTATE, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'Windows 8' pub extern "msi" fn MsiSetFeatureStateA( hInstall: MSIHANDLE, szFeature: ?[*:0]const u8, iState: INSTALLSTATE, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'Windows 8' pub extern "msi" fn MsiSetFeatureStateW( hInstall: MSIHANDLE, szFeature: ?[*:0]const u16, iState: INSTALLSTATE, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'Windows 8' pub extern "msi" fn MsiSetFeatureAttributesA( hInstall: MSIHANDLE, szFeature: ?[*:0]const u8, dwAttributes: u32, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'Windows 8' pub extern "msi" fn MsiSetFeatureAttributesW( hInstall: MSIHANDLE, szFeature: ?[*:0]const u16, dwAttributes: u32, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'Windows 8' pub extern "msi" fn MsiGetComponentStateA( hInstall: MSIHANDLE, szComponent: ?[*:0]const u8, piInstalled: ?*INSTALLSTATE, piAction: ?*INSTALLSTATE, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'Windows 8' pub extern "msi" fn MsiGetComponentStateW( hInstall: MSIHANDLE, szComponent: ?[*:0]const u16, piInstalled: ?*INSTALLSTATE, piAction: ?*INSTALLSTATE, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'Windows 8' pub extern "msi" fn MsiSetComponentStateA( hInstall: MSIHANDLE, szComponent: ?[*:0]const u8, iState: INSTALLSTATE, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'Windows 8' pub extern "msi" fn MsiSetComponentStateW( hInstall: MSIHANDLE, szComponent: ?[*:0]const u16, iState: INSTALLSTATE, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'Windows 8' pub extern "msi" fn MsiGetFeatureCostA( hInstall: MSIHANDLE, szFeature: ?[*:0]const u8, iCostTree: MSICOSTTREE, iState: INSTALLSTATE, piCost: ?*i32, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'Windows 8' pub extern "msi" fn MsiGetFeatureCostW( hInstall: MSIHANDLE, szFeature: ?[*:0]const u16, iCostTree: MSICOSTTREE, iState: INSTALLSTATE, piCost: ?*i32, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'Windows 8' pub extern "msi" fn MsiEnumComponentCostsA( hInstall: MSIHANDLE, szComponent: ?[*:0]const u8, dwIndex: u32, iState: INSTALLSTATE, szDriveBuf: [*:0]u8, pcchDriveBuf: ?*u32, piCost: ?*i32, piTempCost: ?*i32, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'Windows 8' pub extern "msi" fn MsiEnumComponentCostsW( hInstall: MSIHANDLE, szComponent: ?[*:0]const u16, dwIndex: u32, iState: INSTALLSTATE, szDriveBuf: [*:0]u16, pcchDriveBuf: ?*u32, piCost: ?*i32, piTempCost: ?*i32, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'Windows 8' pub extern "msi" fn MsiSetInstallLevel( hInstall: MSIHANDLE, iInstallLevel: i32, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'Windows 8' pub extern "msi" fn MsiGetFeatureValidStatesA( hInstall: MSIHANDLE, szFeature: ?[*:0]const u8, lpInstallStates: ?*u32, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'Windows 8' pub extern "msi" fn MsiGetFeatureValidStatesW( hInstall: MSIHANDLE, szFeature: ?[*:0]const u16, lpInstallStates: ?*u32, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'Windows 8' pub extern "msi" fn MsiGetSourcePathA( hInstall: MSIHANDLE, szFolder: ?[*:0]const u8, szPathBuf: ?[*:0]u8, pcchPathBuf: ?*u32, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'Windows 8' pub extern "msi" fn MsiGetSourcePathW( hInstall: MSIHANDLE, szFolder: ?[*:0]const u16, szPathBuf: ?[*:0]u16, pcchPathBuf: ?*u32, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'Windows 8' pub extern "msi" fn MsiGetTargetPathA( hInstall: MSIHANDLE, szFolder: ?[*:0]const u8, szPathBuf: ?[*:0]u8, pcchPathBuf: ?*u32, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'Windows 8' pub extern "msi" fn MsiGetTargetPathW( hInstall: MSIHANDLE, szFolder: ?[*:0]const u16, szPathBuf: ?[*:0]u16, pcchPathBuf: ?*u32, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'Windows 8' pub extern "msi" fn MsiSetTargetPathA( hInstall: MSIHANDLE, szFolder: ?[*:0]const u8, szFolderPath: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'Windows 8' pub extern "msi" fn MsiSetTargetPathW( hInstall: MSIHANDLE, szFolder: ?[*:0]const u16, szFolderPath: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'Windows 8' pub extern "msi" fn MsiVerifyDiskSpace( hInstall: MSIHANDLE, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'Windows 8' pub extern "msi" fn MsiEnableUIPreview( hDatabase: MSIHANDLE, phPreview: ?*MSIHANDLE, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'Windows 8' pub extern "msi" fn MsiPreviewDialogA( hPreview: MSIHANDLE, szDialogName: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'Windows 8' pub extern "msi" fn MsiPreviewDialogW( hPreview: MSIHANDLE, szDialogName: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'Windows 8' pub extern "msi" fn MsiPreviewBillboardA( hPreview: MSIHANDLE, szControlName: ?[*:0]const u8, szBillboard: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'Windows 8' pub extern "msi" fn MsiPreviewBillboardW( hPreview: MSIHANDLE, szControlName: ?[*:0]const u16, szBillboard: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'Windows 8' pub extern "msi" fn MsiGetLastErrorRecord() callconv(@import("std").os.windows.WINAPI) MSIHANDLE; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "sfc" fn SfcGetNextProtectedFile( RpcHandle: ?HANDLE, ProtFileData: ?*PROTECTED_FILE_DATA, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "sfc" fn SfcIsFileProtected( RpcHandle: ?HANDLE, ProtFileName: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows6.0.6000' pub extern "sfc" fn SfcIsKeyProtected( KeyHandle: ?HKEY, SubKeyName: ?[*:0]const u16, KeySam: u32, ) callconv(@import("std").os.windows.WINAPI) BOOL; pub extern "sfc" fn SfpVerifyFile( pszFileName: ?[*:0]const u8, pszError: [*:0]u8, dwErrSize: u32, ) callconv(@import("std").os.windows.WINAPI) BOOL; pub extern "mspatchc" fn CreatePatchFileA( OldFileName: ?[*:0]const u8, NewFileName: ?[*:0]const u8, PatchFileName: ?[*:0]const u8, OptionFlags: u32, OptionData: ?*PATCH_OPTION_DATA, ) callconv(@import("std").os.windows.WINAPI) BOOL; pub extern "mspatchc" fn CreatePatchFileW( OldFileName: ?[*:0]const u16, NewFileName: ?[*:0]const u16, PatchFileName: ?[*:0]const u16, OptionFlags: u32, OptionData: ?*PATCH_OPTION_DATA, ) callconv(@import("std").os.windows.WINAPI) BOOL; pub extern "mspatchc" fn CreatePatchFileByHandles( OldFileHandle: ?HANDLE, NewFileHandle: ?HANDLE, PatchFileHandle: ?HANDLE, OptionFlags: u32, OptionData: ?*PATCH_OPTION_DATA, ) callconv(@import("std").os.windows.WINAPI) BOOL; pub extern "mspatchc" fn CreatePatchFileExA( OldFileCount: u32, OldFileInfoArray: [*]PATCH_OLD_FILE_INFO_A, NewFileName: ?[*:0]const u8, PatchFileName: ?[*:0]const u8, OptionFlags: u32, OptionData: ?*PATCH_OPTION_DATA, ProgressCallback: ?PPATCH_PROGRESS_CALLBACK, CallbackContext: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) BOOL; pub extern "mspatchc" fn CreatePatchFileExW( OldFileCount: u32, OldFileInfoArray: [*]PATCH_OLD_FILE_INFO_W, NewFileName: ?[*:0]const u16, PatchFileName: ?[*:0]const u16, OptionFlags: u32, OptionData: ?*PATCH_OPTION_DATA, ProgressCallback: ?PPATCH_PROGRESS_CALLBACK, CallbackContext: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) BOOL; pub extern "mspatchc" fn CreatePatchFileByHandlesEx( OldFileCount: u32, OldFileInfoArray: [*]PATCH_OLD_FILE_INFO_H, NewFileHandle: ?HANDLE, PatchFileHandle: ?HANDLE, OptionFlags: u32, OptionData: ?*PATCH_OPTION_DATA, ProgressCallback: ?PPATCH_PROGRESS_CALLBACK, CallbackContext: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) BOOL; pub extern "mspatchc" fn ExtractPatchHeaderToFileA( PatchFileName: ?[*:0]const u8, PatchHeaderFileName: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) BOOL; pub extern "mspatchc" fn ExtractPatchHeaderToFileW( PatchFileName: ?[*:0]const u16, PatchHeaderFileName: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) BOOL; pub extern "mspatchc" fn ExtractPatchHeaderToFileByHandles( PatchFileHandle: ?HANDLE, PatchHeaderFileHandle: ?HANDLE, ) callconv(@import("std").os.windows.WINAPI) BOOL; pub extern "mspatcha" fn TestApplyPatchToFileA( PatchFileName: ?[*:0]const u8, OldFileName: ?[*:0]const u8, ApplyOptionFlags: u32, ) callconv(@import("std").os.windows.WINAPI) BOOL; pub extern "mspatcha" fn TestApplyPatchToFileW( PatchFileName: ?[*:0]const u16, OldFileName: ?[*:0]const u16, ApplyOptionFlags: u32, ) callconv(@import("std").os.windows.WINAPI) BOOL; pub extern "mspatcha" fn TestApplyPatchToFileByHandles( PatchFileHandle: ?HANDLE, OldFileHandle: ?HANDLE, ApplyOptionFlags: u32, ) callconv(@import("std").os.windows.WINAPI) BOOL; pub extern "mspatcha" fn TestApplyPatchToFileByBuffers( // TODO: what to do with BytesParamIndex 1? PatchFileBuffer: ?*u8, PatchFileSize: u32, // TODO: what to do with BytesParamIndex 3? OldFileBuffer: ?*u8, OldFileSize: u32, NewFileSize: ?*u32, ApplyOptionFlags: u32, ) callconv(@import("std").os.windows.WINAPI) BOOL; pub extern "mspatcha" fn ApplyPatchToFileA( PatchFileName: ?[*:0]const u8, OldFileName: ?[*:0]const u8, NewFileName: ?[*:0]const u8, ApplyOptionFlags: u32, ) callconv(@import("std").os.windows.WINAPI) BOOL; pub extern "mspatcha" fn ApplyPatchToFileW( PatchFileName: ?[*:0]const u16, OldFileName: ?[*:0]const u16, NewFileName: ?[*:0]const u16, ApplyOptionFlags: u32, ) callconv(@import("std").os.windows.WINAPI) BOOL; pub extern "mspatcha" fn ApplyPatchToFileByHandles( PatchFileHandle: ?HANDLE, OldFileHandle: ?HANDLE, NewFileHandle: ?HANDLE, ApplyOptionFlags: u32, ) callconv(@import("std").os.windows.WINAPI) BOOL; pub extern "mspatcha" fn ApplyPatchToFileExA( PatchFileName: ?[*:0]const u8, OldFileName: ?[*:0]const u8, NewFileName: ?[*:0]const u8, ApplyOptionFlags: u32, ProgressCallback: ?PPATCH_PROGRESS_CALLBACK, CallbackContext: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) BOOL; pub extern "mspatcha" fn ApplyPatchToFileExW( PatchFileName: ?[*:0]const u16, OldFileName: ?[*:0]const u16, NewFileName: ?[*:0]const u16, ApplyOptionFlags: u32, ProgressCallback: ?PPATCH_PROGRESS_CALLBACK, CallbackContext: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) BOOL; pub extern "mspatcha" fn ApplyPatchToFileByHandlesEx( PatchFileHandle: ?HANDLE, OldFileHandle: ?HANDLE, NewFileHandle: ?HANDLE, ApplyOptionFlags: u32, ProgressCallback: ?PPATCH_PROGRESS_CALLBACK, CallbackContext: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) BOOL; pub extern "mspatcha" fn ApplyPatchToFileByBuffers( // TODO: what to do with BytesParamIndex 1? PatchFileMapped: ?*u8, PatchFileSize: u32, // TODO: what to do with BytesParamIndex 3? OldFileMapped: ?*u8, OldFileSize: u32, // TODO: what to do with BytesParamIndex 5? NewFileBuffer: ?*?*u8, NewFileBufferSize: u32, NewFileActualSize: ?*u32, NewFileTime: ?*FILETIME, ApplyOptionFlags: u32, ProgressCallback: ?PPATCH_PROGRESS_CALLBACK, CallbackContext: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) BOOL; pub extern "mspatcha" fn GetFilePatchSignatureA( FileName: ?[*:0]const u8, OptionFlags: u32, OptionData: ?*anyopaque, IgnoreRangeCount: u32, IgnoreRangeArray: ?[*]PATCH_IGNORE_RANGE, RetainRangeCount: u32, RetainRangeArray: ?[*]PATCH_RETAIN_RANGE, SignatureBufferSize: u32, // TODO: what to do with BytesParamIndex 7? SignatureBuffer: ?PSTR, ) callconv(@import("std").os.windows.WINAPI) BOOL; pub extern "mspatcha" fn GetFilePatchSignatureW( FileName: ?[*:0]const u16, OptionFlags: u32, OptionData: ?*anyopaque, IgnoreRangeCount: u32, IgnoreRangeArray: ?[*]PATCH_IGNORE_RANGE, RetainRangeCount: u32, RetainRangeArray: ?[*]PATCH_RETAIN_RANGE, SignatureBufferSize: u32, // TODO: what to do with BytesParamIndex 7? SignatureBuffer: ?PWSTR, ) callconv(@import("std").os.windows.WINAPI) BOOL; pub extern "mspatcha" fn GetFilePatchSignatureByHandle( FileHandle: ?HANDLE, OptionFlags: u32, OptionData: ?*anyopaque, IgnoreRangeCount: u32, IgnoreRangeArray: ?[*]PATCH_IGNORE_RANGE, RetainRangeCount: u32, RetainRangeArray: ?[*]PATCH_RETAIN_RANGE, SignatureBufferSize: u32, // TODO: what to do with BytesParamIndex 7? SignatureBuffer: ?PSTR, ) callconv(@import("std").os.windows.WINAPI) BOOL; pub extern "mspatcha" fn GetFilePatchSignatureByBuffer( // TODO: what to do with BytesParamIndex 1? FileBufferWritable: ?*u8, FileSize: u32, OptionFlags: u32, OptionData: ?*anyopaque, IgnoreRangeCount: u32, IgnoreRangeArray: ?[*]PATCH_IGNORE_RANGE, RetainRangeCount: u32, RetainRangeArray: ?[*]PATCH_RETAIN_RANGE, SignatureBufferSize: u32, // TODO: what to do with BytesParamIndex 8? SignatureBuffer: ?PSTR, ) callconv(@import("std").os.windows.WINAPI) BOOL; pub extern "mspatcha" fn NormalizeFileForPatchSignature( // TODO: what to do with BytesParamIndex 1? FileBuffer: ?*anyopaque, FileSize: u32, OptionFlags: u32, OptionData: ?*PATCH_OPTION_DATA, NewFileCoffBase: u32, NewFileCoffTime: u32, IgnoreRangeCount: u32, IgnoreRangeArray: ?[*]PATCH_IGNORE_RANGE, RetainRangeCount: u32, RetainRangeArray: ?[*]PATCH_RETAIN_RANGE, ) callconv(@import("std").os.windows.WINAPI) i32; pub extern "msdelta" fn GetDeltaInfoB( Delta: DELTA_INPUT, lpHeaderInfo: ?*DELTA_HEADER_INFO, ) callconv(@import("std").os.windows.WINAPI) BOOL; pub extern "msdelta" fn GetDeltaInfoA( lpDeltaName: ?[*:0]const u8, lpHeaderInfo: ?*DELTA_HEADER_INFO, ) callconv(@import("std").os.windows.WINAPI) BOOL; pub extern "msdelta" fn GetDeltaInfoW( lpDeltaName: ?[*:0]const u16, lpHeaderInfo: ?*DELTA_HEADER_INFO, ) callconv(@import("std").os.windows.WINAPI) BOOL; pub extern "msdelta" fn ApplyDeltaGetReverseB( ApplyFlags: i64, Source: DELTA_INPUT, Delta: DELTA_INPUT, lpReverseFileTime: ?*const FILETIME, lpTarget: ?*DELTA_OUTPUT, lpTargetReverse: ?*DELTA_OUTPUT, ) callconv(@import("std").os.windows.WINAPI) BOOL; pub extern "msdelta" fn ApplyDeltaB( ApplyFlags: i64, Source: DELTA_INPUT, Delta: DELTA_INPUT, lpTarget: ?*DELTA_OUTPUT, ) callconv(@import("std").os.windows.WINAPI) BOOL; pub extern "msdelta" fn ApplyDeltaProvidedB( ApplyFlags: i64, Source: DELTA_INPUT, Delta: DELTA_INPUT, // TODO: what to do with BytesParamIndex 4? lpTarget: ?*anyopaque, uTargetSize: usize, ) callconv(@import("std").os.windows.WINAPI) BOOL; pub extern "msdelta" fn ApplyDeltaA( ApplyFlags: i64, lpSourceName: ?[*:0]const u8, lpDeltaName: ?[*:0]const u8, lpTargetName: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) BOOL; pub extern "msdelta" fn ApplyDeltaW( ApplyFlags: i64, lpSourceName: ?[*:0]const u16, lpDeltaName: ?[*:0]const u16, lpTargetName: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) BOOL; pub extern "msdelta" fn CreateDeltaB( FileTypeSet: i64, SetFlags: i64, ResetFlags: i64, Source: DELTA_INPUT, Target: DELTA_INPUT, SourceOptions: DELTA_INPUT, TargetOptions: DELTA_INPUT, GlobalOptions: DELTA_INPUT, lpTargetFileTime: ?*const FILETIME, HashAlgId: u32, lpDelta: ?*DELTA_OUTPUT, ) callconv(@import("std").os.windows.WINAPI) BOOL; pub extern "msdelta" fn CreateDeltaA( FileTypeSet: i64, SetFlags: i64, ResetFlags: i64, lpSourceName: ?[*:0]const u8, lpTargetName: ?[*:0]const u8, lpSourceOptionsName: ?[*:0]const u8, lpTargetOptionsName: ?[*:0]const u8, GlobalOptions: DELTA_INPUT, lpTargetFileTime: ?*const FILETIME, HashAlgId: u32, lpDeltaName: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) BOOL; pub extern "msdelta" fn CreateDeltaW( FileTypeSet: i64, SetFlags: i64, ResetFlags: i64, lpSourceName: ?[*:0]const u16, lpTargetName: ?[*:0]const u16, lpSourceOptionsName: ?[*:0]const u16, lpTargetOptionsName: ?[*:0]const u16, GlobalOptions: DELTA_INPUT, lpTargetFileTime: ?*const FILETIME, HashAlgId: u32, lpDeltaName: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) BOOL; pub extern "msdelta" fn GetDeltaSignatureB( FileTypeSet: i64, HashAlgId: u32, Source: DELTA_INPUT, lpHash: ?*DELTA_HASH, ) callconv(@import("std").os.windows.WINAPI) BOOL; pub extern "msdelta" fn GetDeltaSignatureA( FileTypeSet: i64, HashAlgId: u32, lpSourceName: ?[*:0]const u8, lpHash: ?*DELTA_HASH, ) callconv(@import("std").os.windows.WINAPI) BOOL; pub extern "msdelta" fn GetDeltaSignatureW( FileTypeSet: i64, HashAlgId: u32, lpSourceName: ?[*:0]const u16, lpHash: ?*DELTA_HASH, ) callconv(@import("std").os.windows.WINAPI) BOOL; pub extern "msdelta" fn DeltaNormalizeProvidedB( FileTypeSet: i64, NormalizeFlags: i64, NormalizeOptions: DELTA_INPUT, // TODO: what to do with BytesParamIndex 4? lpSource: ?*anyopaque, uSourceSize: usize, ) callconv(@import("std").os.windows.WINAPI) BOOL; pub extern "msdelta" fn DeltaFree( lpMemory: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "kernel32" fn CreateActCtxA( pActCtx: ?*ACTCTXA, ) callconv(@import("std").os.windows.WINAPI) ?HANDLE; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "kernel32" fn CreateActCtxW( pActCtx: ?*ACTCTXW, ) callconv(@import("std").os.windows.WINAPI) ?HANDLE; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "kernel32" fn AddRefActCtx( hActCtx: ?HANDLE, ) callconv(@import("std").os.windows.WINAPI) void; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "kernel32" fn ReleaseActCtx( hActCtx: ?HANDLE, ) callconv(@import("std").os.windows.WINAPI) void; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "kernel32" fn ZombifyActCtx( hActCtx: ?HANDLE, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "kernel32" fn ActivateActCtx( hActCtx: ?HANDLE, lpCookie: ?*usize, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "kernel32" fn DeactivateActCtx( dwFlags: u32, ulCookie: usize, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "kernel32" fn GetCurrentActCtx( lphActCtx: ?*?HANDLE, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "kernel32" fn FindActCtxSectionStringA( dwFlags: u32, lpExtensionGuid: ?*const Guid, ulSectionId: u32, lpStringToFind: ?[*:0]const u8, ReturnedData: ?*ACTCTX_SECTION_KEYED_DATA, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "kernel32" fn FindActCtxSectionStringW( dwFlags: u32, lpExtensionGuid: ?*const Guid, ulSectionId: u32, lpStringToFind: ?[*:0]const u16, ReturnedData: ?*ACTCTX_SECTION_KEYED_DATA, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "kernel32" fn FindActCtxSectionGuid( dwFlags: u32, lpExtensionGuid: ?*const Guid, ulSectionId: u32, lpGuidToFind: ?*const Guid, ReturnedData: ?*ACTCTX_SECTION_KEYED_DATA, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "kernel32" fn QueryActCtxW( dwFlags: u32, hActCtx: ?HANDLE, pvSubInstance: ?*anyopaque, ulInfoClass: u32, // TODO: what to do with BytesParamIndex 5? pvBuffer: ?*anyopaque, cbBuffer: usize, pcbWrittenOrRequired: ?*usize, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows6.0.6000' pub extern "kernel32" fn QueryActCtxSettingsW( dwFlags: u32, hActCtx: ?HANDLE, settingsNameSpace: ?[*:0]const u16, settingName: ?[*:0]const u16, // TODO: what to do with BytesParamIndex 5? pvBuffer: ?PWSTR, dwBuffer: usize, pdwWrittenOrRequired: ?*usize, ) callconv(@import("std").os.windows.WINAPI) BOOL; //-------------------------------------------------------------------------------- // Section: Unicode Aliases (133) //-------------------------------------------------------------------------------- const thismodule = @This(); pub usingnamespace switch (@import("../zig.zig").unicode_mode) { .ansi => struct { pub const INSTALLUI_HANDLER = thismodule.INSTALLUI_HANDLERA; pub const MSIPATCHSEQUENCEINFO = thismodule.MSIPATCHSEQUENCEINFOA; pub const PATCH_OLD_FILE_INFO_ = thismodule.PATCH_OLD_FILE_INFO_A; pub const ACTCTX = thismodule.ACTCTXA; pub const MsiSetExternalUI = thismodule.MsiSetExternalUIA; pub const MsiEnableLog = thismodule.MsiEnableLogA; pub const MsiQueryProductState = thismodule.MsiQueryProductStateA; pub const MsiGetProductInfo = thismodule.MsiGetProductInfoA; pub const MsiGetProductInfoEx = thismodule.MsiGetProductInfoExA; pub const MsiInstallProduct = thismodule.MsiInstallProductA; pub const MsiConfigureProduct = thismodule.MsiConfigureProductA; pub const MsiConfigureProductEx = thismodule.MsiConfigureProductExA; pub const MsiReinstallProduct = thismodule.MsiReinstallProductA; pub const MsiAdvertiseProductEx = thismodule.MsiAdvertiseProductExA; pub const MsiAdvertiseProduct = thismodule.MsiAdvertiseProductA; pub const MsiProcessAdvertiseScript = thismodule.MsiProcessAdvertiseScriptA; pub const MsiAdvertiseScript = thismodule.MsiAdvertiseScriptA; pub const MsiGetProductInfoFromScript = thismodule.MsiGetProductInfoFromScriptA; pub const MsiGetProductCode = thismodule.MsiGetProductCodeA; pub const MsiGetUserInfo = thismodule.MsiGetUserInfoA; pub const MsiCollectUserInfo = thismodule.MsiCollectUserInfoA; pub const MsiApplyPatch = thismodule.MsiApplyPatchA; pub const MsiGetPatchInfo = thismodule.MsiGetPatchInfoA; pub const MsiEnumPatches = thismodule.MsiEnumPatchesA; pub const MsiRemovePatches = thismodule.MsiRemovePatchesA; pub const MsiExtractPatchXMLData = thismodule.MsiExtractPatchXMLDataA; pub const MsiGetPatchInfoEx = thismodule.MsiGetPatchInfoExA; pub const MsiApplyMultiplePatches = thismodule.MsiApplyMultiplePatchesA; pub const MsiDeterminePatchSequence = thismodule.MsiDeterminePatchSequenceA; pub const MsiDetermineApplicablePatches = thismodule.MsiDetermineApplicablePatchesA; pub const MsiEnumPatchesEx = thismodule.MsiEnumPatchesExA; pub const MsiQueryFeatureState = thismodule.MsiQueryFeatureStateA; pub const MsiQueryFeatureStateEx = thismodule.MsiQueryFeatureStateExA; pub const MsiUseFeature = thismodule.MsiUseFeatureA; pub const MsiUseFeatureEx = thismodule.MsiUseFeatureExA; pub const MsiGetFeatureUsage = thismodule.MsiGetFeatureUsageA; pub const MsiConfigureFeature = thismodule.MsiConfigureFeatureA; pub const MsiReinstallFeature = thismodule.MsiReinstallFeatureA; pub const MsiProvideComponent = thismodule.MsiProvideComponentA; pub const MsiProvideQualifiedComponent = thismodule.MsiProvideQualifiedComponentA; pub const MsiProvideQualifiedComponentEx = thismodule.MsiProvideQualifiedComponentExA; pub const MsiGetComponentPath = thismodule.MsiGetComponentPathA; pub const MsiGetComponentPathEx = thismodule.MsiGetComponentPathExA; pub const MsiProvideAssembly = thismodule.MsiProvideAssemblyA; pub const MsiQueryComponentState = thismodule.MsiQueryComponentStateA; pub const MsiEnumProducts = thismodule.MsiEnumProductsA; pub const MsiEnumProductsEx = thismodule.MsiEnumProductsExA; pub const MsiEnumRelatedProducts = thismodule.MsiEnumRelatedProductsA; pub const MsiEnumFeatures = thismodule.MsiEnumFeaturesA; pub const MsiEnumComponents = thismodule.MsiEnumComponentsA; pub const MsiEnumComponentsEx = thismodule.MsiEnumComponentsExA; pub const MsiEnumClients = thismodule.MsiEnumClientsA; pub const MsiEnumClientsEx = thismodule.MsiEnumClientsExA; pub const MsiEnumComponentQualifiers = thismodule.MsiEnumComponentQualifiersA; pub const MsiOpenProduct = thismodule.MsiOpenProductA; pub const MsiOpenPackage = thismodule.MsiOpenPackageA; pub const MsiOpenPackageEx = thismodule.MsiOpenPackageExA; pub const MsiGetPatchFileList = thismodule.MsiGetPatchFileListA; pub const MsiGetProductProperty = thismodule.MsiGetProductPropertyA; pub const MsiVerifyPackage = thismodule.MsiVerifyPackageA; pub const MsiGetFeatureInfo = thismodule.MsiGetFeatureInfoA; pub const MsiInstallMissingComponent = thismodule.MsiInstallMissingComponentA; pub const MsiInstallMissingFile = thismodule.MsiInstallMissingFileA; pub const MsiLocateComponent = thismodule.MsiLocateComponentA; pub const MsiSourceListClearAll = thismodule.MsiSourceListClearAllA; pub const MsiSourceListAddSource = thismodule.MsiSourceListAddSourceA; pub const MsiSourceListForceResolution = thismodule.MsiSourceListForceResolutionA; pub const MsiSourceListAddSourceEx = thismodule.MsiSourceListAddSourceExA; pub const MsiSourceListAddMediaDisk = thismodule.MsiSourceListAddMediaDiskA; pub const MsiSourceListClearSource = thismodule.MsiSourceListClearSourceA; pub const MsiSourceListClearMediaDisk = thismodule.MsiSourceListClearMediaDiskA; pub const MsiSourceListClearAllEx = thismodule.MsiSourceListClearAllExA; pub const MsiSourceListForceResolutionEx = thismodule.MsiSourceListForceResolutionExA; pub const MsiSourceListSetInfo = thismodule.MsiSourceListSetInfoA; pub const MsiSourceListGetInfo = thismodule.MsiSourceListGetInfoA; pub const MsiSourceListEnumSources = thismodule.MsiSourceListEnumSourcesA; pub const MsiSourceListEnumMediaDisks = thismodule.MsiSourceListEnumMediaDisksA; pub const MsiGetFileVersion = thismodule.MsiGetFileVersionA; pub const MsiGetFileHash = thismodule.MsiGetFileHashA; pub const MsiGetFileSignatureInformation = thismodule.MsiGetFileSignatureInformationA; pub const MsiGetShortcutTarget = thismodule.MsiGetShortcutTargetA; pub const MsiIsProductElevated = thismodule.MsiIsProductElevatedA; pub const MsiNotifySidChange = thismodule.MsiNotifySidChangeA; pub const MsiBeginTransaction = thismodule.MsiBeginTransactionA; pub const MsiDatabaseOpenView = thismodule.MsiDatabaseOpenViewA; pub const MsiViewGetError = thismodule.MsiViewGetErrorA; pub const MsiDatabaseGetPrimaryKeys = thismodule.MsiDatabaseGetPrimaryKeysA; pub const MsiDatabaseIsTablePersistent = thismodule.MsiDatabaseIsTablePersistentA; pub const MsiGetSummaryInformation = thismodule.MsiGetSummaryInformationA; pub const MsiSummaryInfoSetProperty = thismodule.MsiSummaryInfoSetPropertyA; pub const MsiSummaryInfoGetProperty = thismodule.MsiSummaryInfoGetPropertyA; pub const MsiOpenDatabase = thismodule.MsiOpenDatabaseA; pub const MsiDatabaseImport = thismodule.MsiDatabaseImportA; pub const MsiDatabaseExport = thismodule.MsiDatabaseExportA; pub const MsiDatabaseMerge = thismodule.MsiDatabaseMergeA; pub const MsiDatabaseGenerateTransform = thismodule.MsiDatabaseGenerateTransformA; pub const MsiDatabaseApplyTransform = thismodule.MsiDatabaseApplyTransformA; pub const MsiCreateTransformSummaryInfo = thismodule.MsiCreateTransformSummaryInfoA; pub const MsiRecordSetString = thismodule.MsiRecordSetStringA; pub const MsiRecordGetString = thismodule.MsiRecordGetStringA; pub const MsiRecordSetStream = thismodule.MsiRecordSetStreamA; pub const MsiSetProperty = thismodule.MsiSetPropertyA; pub const MsiGetProperty = thismodule.MsiGetPropertyA; pub const MsiFormatRecord = thismodule.MsiFormatRecordA; pub const MsiDoAction = thismodule.MsiDoActionA; pub const MsiSequence = thismodule.MsiSequenceA; pub const MsiEvaluateCondition = thismodule.MsiEvaluateConditionA; pub const MsiGetFeatureState = thismodule.MsiGetFeatureStateA; pub const MsiSetFeatureState = thismodule.MsiSetFeatureStateA; pub const MsiSetFeatureAttributes = thismodule.MsiSetFeatureAttributesA; pub const MsiGetComponentState = thismodule.MsiGetComponentStateA; pub const MsiSetComponentState = thismodule.MsiSetComponentStateA; pub const MsiGetFeatureCost = thismodule.MsiGetFeatureCostA; pub const MsiEnumComponentCosts = thismodule.MsiEnumComponentCostsA; pub const MsiGetFeatureValidStates = thismodule.MsiGetFeatureValidStatesA; pub const MsiGetSourcePath = thismodule.MsiGetSourcePathA; pub const MsiGetTargetPath = thismodule.MsiGetTargetPathA; pub const MsiSetTargetPath = thismodule.MsiSetTargetPathA; pub const MsiPreviewDialog = thismodule.MsiPreviewDialogA; pub const MsiPreviewBillboard = thismodule.MsiPreviewBillboardA; pub const CreatePatchFile = thismodule.CreatePatchFileA; pub const CreatePatchFileEx = thismodule.CreatePatchFileExA; pub const ExtractPatchHeaderToFile = thismodule.ExtractPatchHeaderToFileA; pub const TestApplyPatchToFile = thismodule.TestApplyPatchToFileA; pub const ApplyPatchToFile = thismodule.ApplyPatchToFileA; pub const ApplyPatchToFileEx = thismodule.ApplyPatchToFileExA; pub const GetFilePatchSignature = thismodule.GetFilePatchSignatureA; pub const GetDeltaInfo = thismodule.GetDeltaInfoA; pub const ApplyDelta = thismodule.ApplyDeltaA; pub const CreateDelta = thismodule.CreateDeltaA; pub const GetDeltaSignature = thismodule.GetDeltaSignatureA; pub const CreateActCtx = thismodule.CreateActCtxA; pub const FindActCtxSectionString = thismodule.FindActCtxSectionStringA; }, .wide => struct { pub const INSTALLUI_HANDLER = thismodule.INSTALLUI_HANDLERW; pub const MSIPATCHSEQUENCEINFO = thismodule.MSIPATCHSEQUENCEINFOW; pub const PATCH_OLD_FILE_INFO_ = thismodule.PATCH_OLD_FILE_INFO_W; pub const ACTCTX = thismodule.ACTCTXW; pub const MsiSetExternalUI = thismodule.MsiSetExternalUIW; pub const MsiEnableLog = thismodule.MsiEnableLogW; pub const MsiQueryProductState = thismodule.MsiQueryProductStateW; pub const MsiGetProductInfo = thismodule.MsiGetProductInfoW; pub const MsiGetProductInfoEx = thismodule.MsiGetProductInfoExW; pub const MsiInstallProduct = thismodule.MsiInstallProductW; pub const MsiConfigureProduct = thismodule.MsiConfigureProductW; pub const MsiConfigureProductEx = thismodule.MsiConfigureProductExW; pub const MsiReinstallProduct = thismodule.MsiReinstallProductW; pub const MsiAdvertiseProductEx = thismodule.MsiAdvertiseProductExW; pub const MsiAdvertiseProduct = thismodule.MsiAdvertiseProductW; pub const MsiProcessAdvertiseScript = thismodule.MsiProcessAdvertiseScriptW; pub const MsiAdvertiseScript = thismodule.MsiAdvertiseScriptW; pub const MsiGetProductInfoFromScript = thismodule.MsiGetProductInfoFromScriptW; pub const MsiGetProductCode = thismodule.MsiGetProductCodeW; pub const MsiGetUserInfo = thismodule.MsiGetUserInfoW; pub const MsiCollectUserInfo = thismodule.MsiCollectUserInfoW; pub const MsiApplyPatch = thismodule.MsiApplyPatchW; pub const MsiGetPatchInfo = thismodule.MsiGetPatchInfoW; pub const MsiEnumPatches = thismodule.MsiEnumPatchesW; pub const MsiRemovePatches = thismodule.MsiRemovePatchesW; pub const MsiExtractPatchXMLData = thismodule.MsiExtractPatchXMLDataW; pub const MsiGetPatchInfoEx = thismodule.MsiGetPatchInfoExW; pub const MsiApplyMultiplePatches = thismodule.MsiApplyMultiplePatchesW; pub const MsiDeterminePatchSequence = thismodule.MsiDeterminePatchSequenceW; pub const MsiDetermineApplicablePatches = thismodule.MsiDetermineApplicablePatchesW; pub const MsiEnumPatchesEx = thismodule.MsiEnumPatchesExW; pub const MsiQueryFeatureState = thismodule.MsiQueryFeatureStateW; pub const MsiQueryFeatureStateEx = thismodule.MsiQueryFeatureStateExW; pub const MsiUseFeature = thismodule.MsiUseFeatureW; pub const MsiUseFeatureEx = thismodule.MsiUseFeatureExW; pub const MsiGetFeatureUsage = thismodule.MsiGetFeatureUsageW; pub const MsiConfigureFeature = thismodule.MsiConfigureFeatureW; pub const MsiReinstallFeature = thismodule.MsiReinstallFeatureW; pub const MsiProvideComponent = thismodule.MsiProvideComponentW; pub const MsiProvideQualifiedComponent = thismodule.MsiProvideQualifiedComponentW; pub const MsiProvideQualifiedComponentEx = thismodule.MsiProvideQualifiedComponentExW; pub const MsiGetComponentPath = thismodule.MsiGetComponentPathW; pub const MsiGetComponentPathEx = thismodule.MsiGetComponentPathExW; pub const MsiProvideAssembly = thismodule.MsiProvideAssemblyW; pub const MsiQueryComponentState = thismodule.MsiQueryComponentStateW; pub const MsiEnumProducts = thismodule.MsiEnumProductsW; pub const MsiEnumProductsEx = thismodule.MsiEnumProductsExW; pub const MsiEnumRelatedProducts = thismodule.MsiEnumRelatedProductsW; pub const MsiEnumFeatures = thismodule.MsiEnumFeaturesW; pub const MsiEnumComponents = thismodule.MsiEnumComponentsW; pub const MsiEnumComponentsEx = thismodule.MsiEnumComponentsExW; pub const MsiEnumClients = thismodule.MsiEnumClientsW; pub const MsiEnumClientsEx = thismodule.MsiEnumClientsExW; pub const MsiEnumComponentQualifiers = thismodule.MsiEnumComponentQualifiersW; pub const MsiOpenProduct = thismodule.MsiOpenProductW; pub const MsiOpenPackage = thismodule.MsiOpenPackageW; pub const MsiOpenPackageEx = thismodule.MsiOpenPackageExW; pub const MsiGetPatchFileList = thismodule.MsiGetPatchFileListW; pub const MsiGetProductProperty = thismodule.MsiGetProductPropertyW; pub const MsiVerifyPackage = thismodule.MsiVerifyPackageW; pub const MsiGetFeatureInfo = thismodule.MsiGetFeatureInfoW; pub const MsiInstallMissingComponent = thismodule.MsiInstallMissingComponentW; pub const MsiInstallMissingFile = thismodule.MsiInstallMissingFileW; pub const MsiLocateComponent = thismodule.MsiLocateComponentW; pub const MsiSourceListClearAll = thismodule.MsiSourceListClearAllW; pub const MsiSourceListAddSource = thismodule.MsiSourceListAddSourceW; pub const MsiSourceListForceResolution = thismodule.MsiSourceListForceResolutionW; pub const MsiSourceListAddSourceEx = thismodule.MsiSourceListAddSourceExW; pub const MsiSourceListAddMediaDisk = thismodule.MsiSourceListAddMediaDiskW; pub const MsiSourceListClearSource = thismodule.MsiSourceListClearSourceW; pub const MsiSourceListClearMediaDisk = thismodule.MsiSourceListClearMediaDiskW; pub const MsiSourceListClearAllEx = thismodule.MsiSourceListClearAllExW; pub const MsiSourceListForceResolutionEx = thismodule.MsiSourceListForceResolutionExW; pub const MsiSourceListSetInfo = thismodule.MsiSourceListSetInfoW; pub const MsiSourceListGetInfo = thismodule.MsiSourceListGetInfoW; pub const MsiSourceListEnumSources = thismodule.MsiSourceListEnumSourcesW; pub const MsiSourceListEnumMediaDisks = thismodule.MsiSourceListEnumMediaDisksW; pub const MsiGetFileVersion = thismodule.MsiGetFileVersionW; pub const MsiGetFileHash = thismodule.MsiGetFileHashW; pub const MsiGetFileSignatureInformation = thismodule.MsiGetFileSignatureInformationW; pub const MsiGetShortcutTarget = thismodule.MsiGetShortcutTargetW; pub const MsiIsProductElevated = thismodule.MsiIsProductElevatedW; pub const MsiNotifySidChange = thismodule.MsiNotifySidChangeW; pub const MsiBeginTransaction = thismodule.MsiBeginTransactionW; pub const MsiDatabaseOpenView = thismodule.MsiDatabaseOpenViewW; pub const MsiViewGetError = thismodule.MsiViewGetErrorW; pub const MsiDatabaseGetPrimaryKeys = thismodule.MsiDatabaseGetPrimaryKeysW; pub const MsiDatabaseIsTablePersistent = thismodule.MsiDatabaseIsTablePersistentW; pub const MsiGetSummaryInformation = thismodule.MsiGetSummaryInformationW; pub const MsiSummaryInfoSetProperty = thismodule.MsiSummaryInfoSetPropertyW; pub const MsiSummaryInfoGetProperty = thismodule.MsiSummaryInfoGetPropertyW; pub const MsiOpenDatabase = thismodule.MsiOpenDatabaseW; pub const MsiDatabaseImport = thismodule.MsiDatabaseImportW; pub const MsiDatabaseExport = thismodule.MsiDatabaseExportW; pub const MsiDatabaseMerge = thismodule.MsiDatabaseMergeW; pub const MsiDatabaseGenerateTransform = thismodule.MsiDatabaseGenerateTransformW; pub const MsiDatabaseApplyTransform = thismodule.MsiDatabaseApplyTransformW; pub const MsiCreateTransformSummaryInfo = thismodule.MsiCreateTransformSummaryInfoW; pub const MsiRecordSetString = thismodule.MsiRecordSetStringW; pub const MsiRecordGetString = thismodule.MsiRecordGetStringW; pub const MsiRecordSetStream = thismodule.MsiRecordSetStreamW; pub const MsiSetProperty = thismodule.MsiSetPropertyW; pub const MsiGetProperty = thismodule.MsiGetPropertyW; pub const MsiFormatRecord = thismodule.MsiFormatRecordW; pub const MsiDoAction = thismodule.MsiDoActionW; pub const MsiSequence = thismodule.MsiSequenceW; pub const MsiEvaluateCondition = thismodule.MsiEvaluateConditionW; pub const MsiGetFeatureState = thismodule.MsiGetFeatureStateW; pub const MsiSetFeatureState = thismodule.MsiSetFeatureStateW; pub const MsiSetFeatureAttributes = thismodule.MsiSetFeatureAttributesW; pub const MsiGetComponentState = thismodule.MsiGetComponentStateW; pub const MsiSetComponentState = thismodule.MsiSetComponentStateW; pub const MsiGetFeatureCost = thismodule.MsiGetFeatureCostW; pub const MsiEnumComponentCosts = thismodule.MsiEnumComponentCostsW; pub const MsiGetFeatureValidStates = thismodule.MsiGetFeatureValidStatesW; pub const MsiGetSourcePath = thismodule.MsiGetSourcePathW; pub const MsiGetTargetPath = thismodule.MsiGetTargetPathW; pub const MsiSetTargetPath = thismodule.MsiSetTargetPathW; pub const MsiPreviewDialog = thismodule.MsiPreviewDialogW; pub const MsiPreviewBillboard = thismodule.MsiPreviewBillboardW; pub const CreatePatchFile = thismodule.CreatePatchFileW; pub const CreatePatchFileEx = thismodule.CreatePatchFileExW; pub const ExtractPatchHeaderToFile = thismodule.ExtractPatchHeaderToFileW; pub const TestApplyPatchToFile = thismodule.TestApplyPatchToFileW; pub const ApplyPatchToFile = thismodule.ApplyPatchToFileW; pub const ApplyPatchToFileEx = thismodule.ApplyPatchToFileExW; pub const GetFilePatchSignature = thismodule.GetFilePatchSignatureW; pub const GetDeltaInfo = thismodule.GetDeltaInfoW; pub const ApplyDelta = thismodule.ApplyDeltaW; pub const CreateDelta = thismodule.CreateDeltaW; pub const GetDeltaSignature = thismodule.GetDeltaSignatureW; pub const CreateActCtx = thismodule.CreateActCtxW; pub const FindActCtxSectionString = thismodule.FindActCtxSectionStringW; }, .unspecified => if (@import("builtin").is_test) struct { pub const INSTALLUI_HANDLER = *opaque {}; pub const MSIPATCHSEQUENCEINFO = *opaque {}; pub const PATCH_OLD_FILE_INFO_ = *opaque {}; pub const ACTCTX = *opaque {}; pub const MsiSetExternalUI = *opaque {}; pub const MsiEnableLog = *opaque {}; pub const MsiQueryProductState = *opaque {}; pub const MsiGetProductInfo = *opaque {}; pub const MsiGetProductInfoEx = *opaque {}; pub const MsiInstallProduct = *opaque {}; pub const MsiConfigureProduct = *opaque {}; pub const MsiConfigureProductEx = *opaque {}; pub const MsiReinstallProduct = *opaque {}; pub const MsiAdvertiseProductEx = *opaque {}; pub const MsiAdvertiseProduct = *opaque {}; pub const MsiProcessAdvertiseScript = *opaque {}; pub const MsiAdvertiseScript = *opaque {}; pub const MsiGetProductInfoFromScript = *opaque {}; pub const MsiGetProductCode = *opaque {}; pub const MsiGetUserInfo = *opaque {}; pub const MsiCollectUserInfo = *opaque {}; pub const MsiApplyPatch = *opaque {}; pub const MsiGetPatchInfo = *opaque {}; pub const MsiEnumPatches = *opaque {}; pub const MsiRemovePatches = *opaque {}; pub const MsiExtractPatchXMLData = *opaque {}; pub const MsiGetPatchInfoEx = *opaque {}; pub const MsiApplyMultiplePatches = *opaque {}; pub const MsiDeterminePatchSequence = *opaque {}; pub const MsiDetermineApplicablePatches = *opaque {}; pub const MsiEnumPatchesEx = *opaque {}; pub const MsiQueryFeatureState = *opaque {}; pub const MsiQueryFeatureStateEx = *opaque {}; pub const MsiUseFeature = *opaque {}; pub const MsiUseFeatureEx = *opaque {}; pub const MsiGetFeatureUsage = *opaque {}; pub const MsiConfigureFeature = *opaque {}; pub const MsiReinstallFeature = *opaque {}; pub const MsiProvideComponent = *opaque {}; pub const MsiProvideQualifiedComponent = *opaque {}; pub const MsiProvideQualifiedComponentEx = *opaque {}; pub const MsiGetComponentPath = *opaque {}; pub const MsiGetComponentPathEx = *opaque {}; pub const MsiProvideAssembly = *opaque {}; pub const MsiQueryComponentState = *opaque {}; pub const MsiEnumProducts = *opaque {}; pub const MsiEnumProductsEx = *opaque {}; pub const MsiEnumRelatedProducts = *opaque {}; pub const MsiEnumFeatures = *opaque {}; pub const MsiEnumComponents = *opaque {}; pub const MsiEnumComponentsEx = *opaque {}; pub const MsiEnumClients = *opaque {}; pub const MsiEnumClientsEx = *opaque {}; pub const MsiEnumComponentQualifiers = *opaque {}; pub const MsiOpenProduct = *opaque {}; pub const MsiOpenPackage = *opaque {}; pub const MsiOpenPackageEx = *opaque {}; pub const MsiGetPatchFileList = *opaque {}; pub const MsiGetProductProperty = *opaque {}; pub const MsiVerifyPackage = *opaque {}; pub const MsiGetFeatureInfo = *opaque {}; pub const MsiInstallMissingComponent = *opaque {}; pub const MsiInstallMissingFile = *opaque {}; pub const MsiLocateComponent = *opaque {}; pub const MsiSourceListClearAll = *opaque {}; pub const MsiSourceListAddSource = *opaque {}; pub const MsiSourceListForceResolution = *opaque {}; pub const MsiSourceListAddSourceEx = *opaque {}; pub const MsiSourceListAddMediaDisk = *opaque {}; pub const MsiSourceListClearSource = *opaque {}; pub const MsiSourceListClearMediaDisk = *opaque {}; pub const MsiSourceListClearAllEx = *opaque {}; pub const MsiSourceListForceResolutionEx = *opaque {}; pub const MsiSourceListSetInfo = *opaque {}; pub const MsiSourceListGetInfo = *opaque {}; pub const MsiSourceListEnumSources = *opaque {}; pub const MsiSourceListEnumMediaDisks = *opaque {}; pub const MsiGetFileVersion = *opaque {}; pub const MsiGetFileHash = *opaque {}; pub const MsiGetFileSignatureInformation = *opaque {}; pub const MsiGetShortcutTarget = *opaque {}; pub const MsiIsProductElevated = *opaque {}; pub const MsiNotifySidChange = *opaque {}; pub const MsiBeginTransaction = *opaque {}; pub const MsiDatabaseOpenView = *opaque {}; pub const MsiViewGetError = *opaque {}; pub const MsiDatabaseGetPrimaryKeys = *opaque {}; pub const MsiDatabaseIsTablePersistent = *opaque {}; pub const MsiGetSummaryInformation = *opaque {}; pub const MsiSummaryInfoSetProperty = *opaque {}; pub const MsiSummaryInfoGetProperty = *opaque {}; pub const MsiOpenDatabase = *opaque {}; pub const MsiDatabaseImport = *opaque {}; pub const MsiDatabaseExport = *opaque {}; pub const MsiDatabaseMerge = *opaque {}; pub const MsiDatabaseGenerateTransform = *opaque {}; pub const MsiDatabaseApplyTransform = *opaque {}; pub const MsiCreateTransformSummaryInfo = *opaque {}; pub const MsiRecordSetString = *opaque {}; pub const MsiRecordGetString = *opaque {}; pub const MsiRecordSetStream = *opaque {}; pub const MsiSetProperty = *opaque {}; pub const MsiGetProperty = *opaque {}; pub const MsiFormatRecord = *opaque {}; pub const MsiDoAction = *opaque {}; pub const MsiSequence = *opaque {}; pub const MsiEvaluateCondition = *opaque {}; pub const MsiGetFeatureState = *opaque {}; pub const MsiSetFeatureState = *opaque {}; pub const MsiSetFeatureAttributes = *opaque {}; pub const MsiGetComponentState = *opaque {}; pub const MsiSetComponentState = *opaque {}; pub const MsiGetFeatureCost = *opaque {}; pub const MsiEnumComponentCosts = *opaque {}; pub const MsiGetFeatureValidStates = *opaque {}; pub const MsiGetSourcePath = *opaque {}; pub const MsiGetTargetPath = *opaque {}; pub const MsiSetTargetPath = *opaque {}; pub const MsiPreviewDialog = *opaque {}; pub const MsiPreviewBillboard = *opaque {}; pub const CreatePatchFile = *opaque {}; pub const CreatePatchFileEx = *opaque {}; pub const ExtractPatchHeaderToFile = *opaque {}; pub const TestApplyPatchToFile = *opaque {}; pub const ApplyPatchToFile = *opaque {}; pub const ApplyPatchToFileEx = *opaque {}; pub const GetFilePatchSignature = *opaque {}; pub const GetDeltaInfo = *opaque {}; pub const ApplyDelta = *opaque {}; pub const CreateDelta = *opaque {}; pub const GetDeltaSignature = *opaque {}; pub const CreateActCtx = *opaque {}; pub const FindActCtxSectionString = *opaque {}; } else struct { pub const INSTALLUI_HANDLER = @compileError("'INSTALLUI_HANDLER' requires that UNICODE be set to true or false in the root module"); pub const MSIPATCHSEQUENCEINFO = @compileError("'MSIPATCHSEQUENCEINFO' requires that UNICODE be set to true or false in the root module"); pub const PATCH_OLD_FILE_INFO_ = @compileError("'PATCH_OLD_FILE_INFO_' requires that UNICODE be set to true or false in the root module"); pub const ACTCTX = @compileError("'ACTCTX' requires that UNICODE be set to true or false in the root module"); pub const MsiSetExternalUI = @compileError("'MsiSetExternalUI' requires that UNICODE be set to true or false in the root module"); pub const MsiEnableLog = @compileError("'MsiEnableLog' requires that UNICODE be set to true or false in the root module"); pub const MsiQueryProductState = @compileError("'MsiQueryProductState' requires that UNICODE be set to true or false in the root module"); pub const MsiGetProductInfo = @compileError("'MsiGetProductInfo' requires that UNICODE be set to true or false in the root module"); pub const MsiGetProductInfoEx = @compileError("'MsiGetProductInfoEx' requires that UNICODE be set to true or false in the root module"); pub const MsiInstallProduct = @compileError("'MsiInstallProduct' requires that UNICODE be set to true or false in the root module"); pub const MsiConfigureProduct = @compileError("'MsiConfigureProduct' requires that UNICODE be set to true or false in the root module"); pub const MsiConfigureProductEx = @compileError("'MsiConfigureProductEx' requires that UNICODE be set to true or false in the root module"); pub const MsiReinstallProduct = @compileError("'MsiReinstallProduct' requires that UNICODE be set to true or false in the root module"); pub const MsiAdvertiseProductEx = @compileError("'MsiAdvertiseProductEx' requires that UNICODE be set to true or false in the root module"); pub const MsiAdvertiseProduct = @compileError("'MsiAdvertiseProduct' requires that UNICODE be set to true or false in the root module"); pub const MsiProcessAdvertiseScript = @compileError("'MsiProcessAdvertiseScript' requires that UNICODE be set to true or false in the root module"); pub const MsiAdvertiseScript = @compileError("'MsiAdvertiseScript' requires that UNICODE be set to true or false in the root module"); pub const MsiGetProductInfoFromScript = @compileError("'MsiGetProductInfoFromScript' requires that UNICODE be set to true or false in the root module"); pub const MsiGetProductCode = @compileError("'MsiGetProductCode' requires that UNICODE be set to true or false in the root module"); pub const MsiGetUserInfo = @compileError("'MsiGetUserInfo' requires that UNICODE be set to true or false in the root module"); pub const MsiCollectUserInfo = @compileError("'MsiCollectUserInfo' requires that UNICODE be set to true or false in the root module"); pub const MsiApplyPatch = @compileError("'MsiApplyPatch' requires that UNICODE be set to true or false in the root module"); pub const MsiGetPatchInfo = @compileError("'MsiGetPatchInfo' requires that UNICODE be set to true or false in the root module"); pub const MsiEnumPatches = @compileError("'MsiEnumPatches' requires that UNICODE be set to true or false in the root module"); pub const MsiRemovePatches = @compileError("'MsiRemovePatches' requires that UNICODE be set to true or false in the root module"); pub const MsiExtractPatchXMLData = @compileError("'MsiExtractPatchXMLData' requires that UNICODE be set to true or false in the root module"); pub const MsiGetPatchInfoEx = @compileError("'MsiGetPatchInfoEx' requires that UNICODE be set to true or false in the root module"); pub const MsiApplyMultiplePatches = @compileError("'MsiApplyMultiplePatches' requires that UNICODE be set to true or false in the root module"); pub const MsiDeterminePatchSequence = @compileError("'MsiDeterminePatchSequence' requires that UNICODE be set to true or false in the root module"); pub const MsiDetermineApplicablePatches = @compileError("'MsiDetermineApplicablePatches' requires that UNICODE be set to true or false in the root module"); pub const MsiEnumPatchesEx = @compileError("'MsiEnumPatchesEx' requires that UNICODE be set to true or false in the root module"); pub const MsiQueryFeatureState = @compileError("'MsiQueryFeatureState' requires that UNICODE be set to true or false in the root module"); pub const MsiQueryFeatureStateEx = @compileError("'MsiQueryFeatureStateEx' requires that UNICODE be set to true or false in the root module"); pub const MsiUseFeature = @compileError("'MsiUseFeature' requires that UNICODE be set to true or false in the root module"); pub const MsiUseFeatureEx = @compileError("'MsiUseFeatureEx' requires that UNICODE be set to true or false in the root module"); pub const MsiGetFeatureUsage = @compileError("'MsiGetFeatureUsage' requires that UNICODE be set to true or false in the root module"); pub const MsiConfigureFeature = @compileError("'MsiConfigureFeature' requires that UNICODE be set to true or false in the root module"); pub const MsiReinstallFeature = @compileError("'MsiReinstallFeature' requires that UNICODE be set to true or false in the root module"); pub const MsiProvideComponent = @compileError("'MsiProvideComponent' requires that UNICODE be set to true or false in the root module"); pub const MsiProvideQualifiedComponent = @compileError("'MsiProvideQualifiedComponent' requires that UNICODE be set to true or false in the root module"); pub const MsiProvideQualifiedComponentEx = @compileError("'MsiProvideQualifiedComponentEx' requires that UNICODE be set to true or false in the root module"); pub const MsiGetComponentPath = @compileError("'MsiGetComponentPath' requires that UNICODE be set to true or false in the root module"); pub const MsiGetComponentPathEx = @compileError("'MsiGetComponentPathEx' requires that UNICODE be set to true or false in the root module"); pub const MsiProvideAssembly = @compileError("'MsiProvideAssembly' requires that UNICODE be set to true or false in the root module"); pub const MsiQueryComponentState = @compileError("'MsiQueryComponentState' requires that UNICODE be set to true or false in the root module"); pub const MsiEnumProducts = @compileError("'MsiEnumProducts' requires that UNICODE be set to true or false in the root module"); pub const MsiEnumProductsEx = @compileError("'MsiEnumProductsEx' requires that UNICODE be set to true or false in the root module"); pub const MsiEnumRelatedProducts = @compileError("'MsiEnumRelatedProducts' requires that UNICODE be set to true or false in the root module"); pub const MsiEnumFeatures = @compileError("'MsiEnumFeatures' requires that UNICODE be set to true or false in the root module"); pub const MsiEnumComponents = @compileError("'MsiEnumComponents' requires that UNICODE be set to true or false in the root module"); pub const MsiEnumComponentsEx = @compileError("'MsiEnumComponentsEx' requires that UNICODE be set to true or false in the root module"); pub const MsiEnumClients = @compileError("'MsiEnumClients' requires that UNICODE be set to true or false in the root module"); pub const MsiEnumClientsEx = @compileError("'MsiEnumClientsEx' requires that UNICODE be set to true or false in the root module"); pub const MsiEnumComponentQualifiers = @compileError("'MsiEnumComponentQualifiers' requires that UNICODE be set to true or false in the root module"); pub const MsiOpenProduct = @compileError("'MsiOpenProduct' requires that UNICODE be set to true or false in the root module"); pub const MsiOpenPackage = @compileError("'MsiOpenPackage' requires that UNICODE be set to true or false in the root module"); pub const MsiOpenPackageEx = @compileError("'MsiOpenPackageEx' requires that UNICODE be set to true or false in the root module"); pub const MsiGetPatchFileList = @compileError("'MsiGetPatchFileList' requires that UNICODE be set to true or false in the root module"); pub const MsiGetProductProperty = @compileError("'MsiGetProductProperty' requires that UNICODE be set to true or false in the root module"); pub const MsiVerifyPackage = @compileError("'MsiVerifyPackage' requires that UNICODE be set to true or false in the root module"); pub const MsiGetFeatureInfo = @compileError("'MsiGetFeatureInfo' requires that UNICODE be set to true or false in the root module"); pub const MsiInstallMissingComponent = @compileError("'MsiInstallMissingComponent' requires that UNICODE be set to true or false in the root module"); pub const MsiInstallMissingFile = @compileError("'MsiInstallMissingFile' requires that UNICODE be set to true or false in the root module"); pub const MsiLocateComponent = @compileError("'MsiLocateComponent' requires that UNICODE be set to true or false in the root module"); pub const MsiSourceListClearAll = @compileError("'MsiSourceListClearAll' requires that UNICODE be set to true or false in the root module"); pub const MsiSourceListAddSource = @compileError("'MsiSourceListAddSource' requires that UNICODE be set to true or false in the root module"); pub const MsiSourceListForceResolution = @compileError("'MsiSourceListForceResolution' requires that UNICODE be set to true or false in the root module"); pub const MsiSourceListAddSourceEx = @compileError("'MsiSourceListAddSourceEx' requires that UNICODE be set to true or false in the root module"); pub const MsiSourceListAddMediaDisk = @compileError("'MsiSourceListAddMediaDisk' requires that UNICODE be set to true or false in the root module"); pub const MsiSourceListClearSource = @compileError("'MsiSourceListClearSource' requires that UNICODE be set to true or false in the root module"); pub const MsiSourceListClearMediaDisk = @compileError("'MsiSourceListClearMediaDisk' requires that UNICODE be set to true or false in the root module"); pub const MsiSourceListClearAllEx = @compileError("'MsiSourceListClearAllEx' requires that UNICODE be set to true or false in the root module"); pub const MsiSourceListForceResolutionEx = @compileError("'MsiSourceListForceResolutionEx' requires that UNICODE be set to true or false in the root module"); pub const MsiSourceListSetInfo = @compileError("'MsiSourceListSetInfo' requires that UNICODE be set to true or false in the root module"); pub const MsiSourceListGetInfo = @compileError("'MsiSourceListGetInfo' requires that UNICODE be set to true or false in the root module"); pub const MsiSourceListEnumSources = @compileError("'MsiSourceListEnumSources' requires that UNICODE be set to true or false in the root module"); pub const MsiSourceListEnumMediaDisks = @compileError("'MsiSourceListEnumMediaDisks' requires that UNICODE be set to true or false in the root module"); pub const MsiGetFileVersion = @compileError("'MsiGetFileVersion' requires that UNICODE be set to true or false in the root module"); pub const MsiGetFileHash = @compileError("'MsiGetFileHash' requires that UNICODE be set to true or false in the root module"); pub const MsiGetFileSignatureInformation = @compileError("'MsiGetFileSignatureInformation' requires that UNICODE be set to true or false in the root module"); pub const MsiGetShortcutTarget = @compileError("'MsiGetShortcutTarget' requires that UNICODE be set to true or false in the root module"); pub const MsiIsProductElevated = @compileError("'MsiIsProductElevated' requires that UNICODE be set to true or false in the root module"); pub const MsiNotifySidChange = @compileError("'MsiNotifySidChange' requires that UNICODE be set to true or false in the root module"); pub const MsiBeginTransaction = @compileError("'MsiBeginTransaction' requires that UNICODE be set to true or false in the root module"); pub const MsiDatabaseOpenView = @compileError("'MsiDatabaseOpenView' requires that UNICODE be set to true or false in the root module"); pub const MsiViewGetError = @compileError("'MsiViewGetError' requires that UNICODE be set to true or false in the root module"); pub const MsiDatabaseGetPrimaryKeys = @compileError("'MsiDatabaseGetPrimaryKeys' requires that UNICODE be set to true or false in the root module"); pub const MsiDatabaseIsTablePersistent = @compileError("'MsiDatabaseIsTablePersistent' requires that UNICODE be set to true or false in the root module"); pub const MsiGetSummaryInformation = @compileError("'MsiGetSummaryInformation' requires that UNICODE be set to true or false in the root module"); pub const MsiSummaryInfoSetProperty = @compileError("'MsiSummaryInfoSetProperty' requires that UNICODE be set to true or false in the root module"); pub const MsiSummaryInfoGetProperty = @compileError("'MsiSummaryInfoGetProperty' requires that UNICODE be set to true or false in the root module"); pub const MsiOpenDatabase = @compileError("'MsiOpenDatabase' requires that UNICODE be set to true or false in the root module"); pub const MsiDatabaseImport = @compileError("'MsiDatabaseImport' requires that UNICODE be set to true or false in the root module"); pub const MsiDatabaseExport = @compileError("'MsiDatabaseExport' requires that UNICODE be set to true or false in the root module"); pub const MsiDatabaseMerge = @compileError("'MsiDatabaseMerge' requires that UNICODE be set to true or false in the root module"); pub const MsiDatabaseGenerateTransform = @compileError("'MsiDatabaseGenerateTransform' requires that UNICODE be set to true or false in the root module"); pub const MsiDatabaseApplyTransform = @compileError("'MsiDatabaseApplyTransform' requires that UNICODE be set to true or false in the root module"); pub const MsiCreateTransformSummaryInfo = @compileError("'MsiCreateTransformSummaryInfo' requires that UNICODE be set to true or false in the root module"); pub const MsiRecordSetString = @compileError("'MsiRecordSetString' requires that UNICODE be set to true or false in the root module"); pub const MsiRecordGetString = @compileError("'MsiRecordGetString' requires that UNICODE be set to true or false in the root module"); pub const MsiRecordSetStream = @compileError("'MsiRecordSetStream' requires that UNICODE be set to true or false in the root module"); pub const MsiSetProperty = @compileError("'MsiSetProperty' requires that UNICODE be set to true or false in the root module"); pub const MsiGetProperty = @compileError("'MsiGetProperty' requires that UNICODE be set to true or false in the root module"); pub const MsiFormatRecord = @compileError("'MsiFormatRecord' requires that UNICODE be set to true or false in the root module"); pub const MsiDoAction = @compileError("'MsiDoAction' requires that UNICODE be set to true or false in the root module"); pub const MsiSequence = @compileError("'MsiSequence' requires that UNICODE be set to true or false in the root module"); pub const MsiEvaluateCondition = @compileError("'MsiEvaluateCondition' requires that UNICODE be set to true or false in the root module"); pub const MsiGetFeatureState = @compileError("'MsiGetFeatureState' requires that UNICODE be set to true or false in the root module"); pub const MsiSetFeatureState = @compileError("'MsiSetFeatureState' requires that UNICODE be set to true or false in the root module"); pub const MsiSetFeatureAttributes = @compileError("'MsiSetFeatureAttributes' requires that UNICODE be set to true or false in the root module"); pub const MsiGetComponentState = @compileError("'MsiGetComponentState' requires that UNICODE be set to true or false in the root module"); pub const MsiSetComponentState = @compileError("'MsiSetComponentState' requires that UNICODE be set to true or false in the root module"); pub const MsiGetFeatureCost = @compileError("'MsiGetFeatureCost' requires that UNICODE be set to true or false in the root module"); pub const MsiEnumComponentCosts = @compileError("'MsiEnumComponentCosts' requires that UNICODE be set to true or false in the root module"); pub const MsiGetFeatureValidStates = @compileError("'MsiGetFeatureValidStates' requires that UNICODE be set to true or false in the root module"); pub const MsiGetSourcePath = @compileError("'MsiGetSourcePath' requires that UNICODE be set to true or false in the root module"); pub const MsiGetTargetPath = @compileError("'MsiGetTargetPath' requires that UNICODE be set to true or false in the root module"); pub const MsiSetTargetPath = @compileError("'MsiSetTargetPath' requires that UNICODE be set to true or false in the root module"); pub const MsiPreviewDialog = @compileError("'MsiPreviewDialog' requires that UNICODE be set to true or false in the root module"); pub const MsiPreviewBillboard = @compileError("'MsiPreviewBillboard' requires that UNICODE be set to true or false in the root module"); pub const CreatePatchFile = @compileError("'CreatePatchFile' requires that UNICODE be set to true or false in the root module"); pub const CreatePatchFileEx = @compileError("'CreatePatchFileEx' requires that UNICODE be set to true or false in the root module"); pub const ExtractPatchHeaderToFile = @compileError("'ExtractPatchHeaderToFile' requires that UNICODE be set to true or false in the root module"); pub const TestApplyPatchToFile = @compileError("'TestApplyPatchToFile' requires that UNICODE be set to true or false in the root module"); pub const ApplyPatchToFile = @compileError("'ApplyPatchToFile' requires that UNICODE be set to true or false in the root module"); pub const ApplyPatchToFileEx = @compileError("'ApplyPatchToFileEx' requires that UNICODE be set to true or false in the root module"); pub const GetFilePatchSignature = @compileError("'GetFilePatchSignature' requires that UNICODE be set to true or false in the root module"); pub const GetDeltaInfo = @compileError("'GetDeltaInfo' requires that UNICODE be set to true or false in the root module"); pub const ApplyDelta = @compileError("'ApplyDelta' requires that UNICODE be set to true or false in the root module"); pub const CreateDelta = @compileError("'CreateDelta' requires that UNICODE be set to true or false in the root module"); pub const GetDeltaSignature = @compileError("'GetDeltaSignature' requires that UNICODE be set to true or false in the root module"); pub const CreateActCtx = @compileError("'CreateActCtx' requires that UNICODE be set to true or false in the root module"); pub const FindActCtxSectionString = @compileError("'FindActCtxSectionString' requires that UNICODE be set to true or false in the root module"); }, }; //-------------------------------------------------------------------------------- // Section: Imports (19) //-------------------------------------------------------------------------------- const Guid = @import("../zig.zig").Guid; const ACTCTX_SECTION_KEYED_DATA_ASSEMBLY_METADATA = @import("../system/windows_programming.zig").ACTCTX_SECTION_KEYED_DATA_ASSEMBLY_METADATA; const BOOL = @import("../foundation.zig").BOOL; const BSTR = @import("../foundation.zig").BSTR; const CERT_CONTEXT = @import("../security/cryptography.zig").CERT_CONTEXT; const FILETIME = @import("../foundation.zig").FILETIME; const HANDLE = @import("../foundation.zig").HANDLE; const HINSTANCE = @import("../foundation.zig").HINSTANCE; const HKEY = @import("../system/registry.zig").HKEY; const HRESULT = @import("../foundation.zig").HRESULT; const HWND = @import("../foundation.zig").HWND; const IDispatch = @import("../system/com.zig").IDispatch; const IStream = @import("../system/com.zig").IStream; const IUnknown = @import("../system/com.zig").IUnknown; const LARGE_INTEGER = @import("../foundation.zig").LARGE_INTEGER; const PSTR = @import("../foundation.zig").PSTR; const PWSTR = @import("../foundation.zig").PWSTR; const SAFEARRAY = @import("../system/com.zig").SAFEARRAY; const ULARGE_INTEGER = @import("../foundation.zig").ULARGE_INTEGER; test { // The following '_ = <FuncPtrType>' lines are a workaround for https://github.com/ziglang/zig/issues/4476 if (@hasDecl(@This(), "LPDISPLAYVAL")) { _ = LPDISPLAYVAL; } if (@hasDecl(@This(), "LPEVALCOMCALLBACK")) { _ = LPEVALCOMCALLBACK; } if (@hasDecl(@This(), "INSTALLUI_HANDLERA")) { _ = INSTALLUI_HANDLERA; } if (@hasDecl(@This(), "INSTALLUI_HANDLERW")) { _ = INSTALLUI_HANDLERW; } if (@hasDecl(@This(), "PINSTALLUI_HANDLER_RECORD")) { _ = PINSTALLUI_HANDLER_RECORD; } if (@hasDecl(@This(), "PPATCH_PROGRESS_CALLBACK")) { _ = PPATCH_PROGRESS_CALLBACK; } if (@hasDecl(@This(), "PPATCH_SYMLOAD_CALLBACK")) { _ = PPATCH_SYMLOAD_CALLBACK; } @setEvalBranchQuota(comptime @import("std").meta.declarations(@This()).len * 3); // reference all the pub declarations if (!@import("builtin").is_test) return; inline for (comptime @import("std").meta.declarations(@This())) |decl| { if (decl.is_pub) { _ = @field(@This(), decl.name); } } }
0
repos/capy/vendor/zigwin32/win32
repos/capy/vendor/zigwin32/win32/system/subsystem_for_linux.zig
//! NOTE: this file is autogenerated, DO NOT MODIFY //-------------------------------------------------------------------------------- // Section: Constants (0) //-------------------------------------------------------------------------------- //-------------------------------------------------------------------------------- // Section: Types (1) //-------------------------------------------------------------------------------- pub const WSL_DISTRIBUTION_FLAGS = enum(u32) { NONE = 0, ENABLE_INTEROP = 1, APPEND_NT_PATH = 2, ENABLE_DRIVE_MOUNTING = 4, _, pub fn initFlags(o: struct { NONE: u1 = 0, ENABLE_INTEROP: u1 = 0, APPEND_NT_PATH: u1 = 0, ENABLE_DRIVE_MOUNTING: u1 = 0, }) WSL_DISTRIBUTION_FLAGS { return @as(WSL_DISTRIBUTION_FLAGS, @enumFromInt((if (o.NONE == 1) @intFromEnum(WSL_DISTRIBUTION_FLAGS.NONE) else 0) | (if (o.ENABLE_INTEROP == 1) @intFromEnum(WSL_DISTRIBUTION_FLAGS.ENABLE_INTEROP) else 0) | (if (o.APPEND_NT_PATH == 1) @intFromEnum(WSL_DISTRIBUTION_FLAGS.APPEND_NT_PATH) else 0) | (if (o.ENABLE_DRIVE_MOUNTING == 1) @intFromEnum(WSL_DISTRIBUTION_FLAGS.ENABLE_DRIVE_MOUNTING) else 0))); } }; pub const WSL_DISTRIBUTION_FLAGS_NONE = WSL_DISTRIBUTION_FLAGS.NONE; pub const WSL_DISTRIBUTION_FLAGS_ENABLE_INTEROP = WSL_DISTRIBUTION_FLAGS.ENABLE_INTEROP; pub const WSL_DISTRIBUTION_FLAGS_APPEND_NT_PATH = WSL_DISTRIBUTION_FLAGS.APPEND_NT_PATH; pub const WSL_DISTRIBUTION_FLAGS_ENABLE_DRIVE_MOUNTING = WSL_DISTRIBUTION_FLAGS.ENABLE_DRIVE_MOUNTING; //-------------------------------------------------------------------------------- // Section: Functions (7) //-------------------------------------------------------------------------------- pub extern "api-ms-win-wsl-api-l1-1-0" fn WslIsDistributionRegistered( distributionName: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) BOOL; pub extern "api-ms-win-wsl-api-l1-1-0" fn WslRegisterDistribution( distributionName: ?[*:0]const u16, tarGzFilename: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT; pub extern "api-ms-win-wsl-api-l1-1-0" fn WslUnregisterDistribution( distributionName: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT; pub extern "api-ms-win-wsl-api-l1-1-0" fn WslConfigureDistribution( distributionName: ?[*:0]const u16, defaultUID: u32, wslDistributionFlags: WSL_DISTRIBUTION_FLAGS, ) callconv(@import("std").os.windows.WINAPI) HRESULT; pub extern "api-ms-win-wsl-api-l1-1-0" fn WslGetDistributionConfiguration( distributionName: ?[*:0]const u16, distributionVersion: ?*u32, defaultUID: ?*u32, wslDistributionFlags: ?*WSL_DISTRIBUTION_FLAGS, defaultEnvironmentVariables: ?*?*?PSTR, defaultEnvironmentVariableCount: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT; pub extern "api-ms-win-wsl-api-l1-1-0" fn WslLaunchInteractive( distributionName: ?[*:0]const u16, command: ?[*:0]const u16, useCurrentWorkingDirectory: BOOL, exitCode: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT; pub extern "api-ms-win-wsl-api-l1-1-0" fn WslLaunch( distributionName: ?[*:0]const u16, command: ?[*:0]const u16, useCurrentWorkingDirectory: BOOL, stdIn: ?HANDLE, stdOut: ?HANDLE, stdErr: ?HANDLE, process: ?*?HANDLE, ) callconv(@import("std").os.windows.WINAPI) HRESULT; //-------------------------------------------------------------------------------- // Section: Unicode Aliases (0) //-------------------------------------------------------------------------------- const thismodule = @This(); pub usingnamespace switch (@import("../zig.zig").unicode_mode) { .ansi => struct {}, .wide => struct {}, .unspecified => if (@import("builtin").is_test) struct {} else struct {}, }; //-------------------------------------------------------------------------------- // Section: Imports (5) //-------------------------------------------------------------------------------- const BOOL = @import("../foundation.zig").BOOL; const HANDLE = @import("../foundation.zig").HANDLE; const HRESULT = @import("../foundation.zig").HRESULT; const PSTR = @import("../foundation.zig").PSTR; const PWSTR = @import("../foundation.zig").PWSTR; test { @setEvalBranchQuota(comptime @import("std").meta.declarations(@This()).len * 3); // reference all the pub declarations if (!@import("builtin").is_test) return; inline for (comptime @import("std").meta.declarations(@This())) |decl| { if (decl.is_pub) { _ = @field(@This(), decl.name); } } }
0
repos/capy/vendor/zigwin32/win32
repos/capy/vendor/zigwin32/win32/system/password_management.zig
//! NOTE: this file is autogenerated, DO NOT MODIFY //-------------------------------------------------------------------------------- // Section: Constants (0) //-------------------------------------------------------------------------------- //-------------------------------------------------------------------------------- // Section: Types (4) //-------------------------------------------------------------------------------- pub const CYPHER_BLOCK = extern struct { data: [8]CHAR, }; pub const LM_OWF_PASSWORD = extern struct { data: [2]CYPHER_BLOCK, }; pub const SAMPR_ENCRYPTED_USER_PASSWORD = extern struct { Buffer: [516]u8, }; pub const ENCRYPTED_LM_OWF_PASSWORD = extern struct { data: [2]CYPHER_BLOCK, }; //-------------------------------------------------------------------------------- // Section: Functions (2) //-------------------------------------------------------------------------------- // TODO: this type is limited to platform 'windows5.1.2600' pub extern "advapi32" fn MSChapSrvChangePassword( ServerName: ?PWSTR, UserName: ?PWSTR, LmOldPresent: BOOLEAN, LmOldOwfPassword: ?*LM_OWF_PASSWORD, LmNewOwfPassword: ?*LM_OWF_PASSWORD, NtOldOwfPassword: ?*LM_OWF_PASSWORD, NtNewOwfPassword: ?*LM_OWF_PASSWORD, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "advapi32" fn MSChapSrvChangePassword2( ServerName: ?PWSTR, UserName: ?PWSTR, NewPasswordEncryptedWithOldNt: ?*SAMPR_ENCRYPTED_USER_PASSWORD, OldNtOwfPasswordEncryptedWithNewNt: ?*ENCRYPTED_LM_OWF_PASSWORD, LmPresent: BOOLEAN, NewPasswordEncryptedWithOldLm: ?*SAMPR_ENCRYPTED_USER_PASSWORD, OldLmOwfPasswordEncryptedWithNewLmOrNt: ?*ENCRYPTED_LM_OWF_PASSWORD, ) callconv(@import("std").os.windows.WINAPI) u32; //-------------------------------------------------------------------------------- // Section: Unicode Aliases (0) //-------------------------------------------------------------------------------- const thismodule = @This(); pub usingnamespace switch (@import("../zig.zig").unicode_mode) { .ansi => struct {}, .wide => struct {}, .unspecified => if (@import("builtin").is_test) struct {} else struct {}, }; //-------------------------------------------------------------------------------- // Section: Imports (3) //-------------------------------------------------------------------------------- const BOOLEAN = @import("../foundation.zig").BOOLEAN; const CHAR = @import("../foundation.zig").CHAR; const PWSTR = @import("../foundation.zig").PWSTR; test { @setEvalBranchQuota(comptime @import("std").meta.declarations(@This()).len * 3); // reference all the pub declarations if (!@import("builtin").is_test) return; inline for (comptime @import("std").meta.declarations(@This())) |decl| { if (decl.is_pub) { _ = @field(@This(), decl.name); } } }
0
repos/capy/vendor/zigwin32/win32
repos/capy/vendor/zigwin32/win32/system/memory.zig
//! NOTE: this file is autogenerated, DO NOT MODIFY //-------------------------------------------------------------------------------- // Section: Constants (5) //-------------------------------------------------------------------------------- pub const FILE_CACHE_MAX_HARD_ENABLE = @as(u32, 1); pub const FILE_CACHE_MAX_HARD_DISABLE = @as(u32, 2); pub const FILE_CACHE_MIN_HARD_ENABLE = @as(u32, 4); pub const FILE_CACHE_MIN_HARD_DISABLE = @as(u32, 8); pub const MEHC_PATROL_SCRUBBER_PRESENT = @as(u32, 1); //-------------------------------------------------------------------------------- // Section: Types (29) //-------------------------------------------------------------------------------- pub const FILE_MAP = enum(u32) { WRITE = 2, READ = 4, ALL_ACCESS = 983071, EXECUTE = 32, COPY = 1, RESERVE = 2147483648, TARGETS_INVALID = 1073741824, LARGE_PAGES = 536870912, _, pub fn initFlags(o: struct { WRITE: u1 = 0, READ: u1 = 0, ALL_ACCESS: u1 = 0, EXECUTE: u1 = 0, COPY: u1 = 0, RESERVE: u1 = 0, TARGETS_INVALID: u1 = 0, LARGE_PAGES: u1 = 0, }) FILE_MAP { return @as(FILE_MAP, @enumFromInt((if (o.WRITE == 1) @intFromEnum(FILE_MAP.WRITE) else 0) | (if (o.READ == 1) @intFromEnum(FILE_MAP.READ) else 0) | (if (o.ALL_ACCESS == 1) @intFromEnum(FILE_MAP.ALL_ACCESS) else 0) | (if (o.EXECUTE == 1) @intFromEnum(FILE_MAP.EXECUTE) else 0) | (if (o.COPY == 1) @intFromEnum(FILE_MAP.COPY) else 0) | (if (o.RESERVE == 1) @intFromEnum(FILE_MAP.RESERVE) else 0) | (if (o.TARGETS_INVALID == 1) @intFromEnum(FILE_MAP.TARGETS_INVALID) else 0) | (if (o.LARGE_PAGES == 1) @intFromEnum(FILE_MAP.LARGE_PAGES) else 0))); } }; pub const FILE_MAP_WRITE = FILE_MAP.WRITE; pub const FILE_MAP_READ = FILE_MAP.READ; pub const FILE_MAP_ALL_ACCESS = FILE_MAP.ALL_ACCESS; pub const FILE_MAP_EXECUTE = FILE_MAP.EXECUTE; pub const FILE_MAP_COPY = FILE_MAP.COPY; pub const FILE_MAP_RESERVE = FILE_MAP.RESERVE; pub const FILE_MAP_TARGETS_INVALID = FILE_MAP.TARGETS_INVALID; pub const FILE_MAP_LARGE_PAGES = FILE_MAP.LARGE_PAGES; pub const HEAP_FLAGS = enum(u32) { NONE = 0, NO_SERIALIZE = 1, GROWABLE = 2, GENERATE_EXCEPTIONS = 4, ZERO_MEMORY = 8, REALLOC_IN_PLACE_ONLY = 16, TAIL_CHECKING_ENABLED = 32, FREE_CHECKING_ENABLED = 64, DISABLE_COALESCE_ON_FREE = 128, CREATE_ALIGN_16 = 65536, CREATE_ENABLE_TRACING = 131072, CREATE_ENABLE_EXECUTE = 262144, MAXIMUM_TAG = 4095, PSEUDO_TAG_FLAG = 32768, TAG_SHIFT = 18, CREATE_SEGMENT_HEAP = 256, CREATE_HARDENED = 512, _, pub fn initFlags(o: struct { NONE: u1 = 0, NO_SERIALIZE: u1 = 0, GROWABLE: u1 = 0, GENERATE_EXCEPTIONS: u1 = 0, ZERO_MEMORY: u1 = 0, REALLOC_IN_PLACE_ONLY: u1 = 0, TAIL_CHECKING_ENABLED: u1 = 0, FREE_CHECKING_ENABLED: u1 = 0, DISABLE_COALESCE_ON_FREE: u1 = 0, CREATE_ALIGN_16: u1 = 0, CREATE_ENABLE_TRACING: u1 = 0, CREATE_ENABLE_EXECUTE: u1 = 0, MAXIMUM_TAG: u1 = 0, PSEUDO_TAG_FLAG: u1 = 0, TAG_SHIFT: u1 = 0, CREATE_SEGMENT_HEAP: u1 = 0, CREATE_HARDENED: u1 = 0, }) HEAP_FLAGS { return @as(HEAP_FLAGS, @enumFromInt((if (o.NONE == 1) @intFromEnum(HEAP_FLAGS.NONE) else 0) | (if (o.NO_SERIALIZE == 1) @intFromEnum(HEAP_FLAGS.NO_SERIALIZE) else 0) | (if (o.GROWABLE == 1) @intFromEnum(HEAP_FLAGS.GROWABLE) else 0) | (if (o.GENERATE_EXCEPTIONS == 1) @intFromEnum(HEAP_FLAGS.GENERATE_EXCEPTIONS) else 0) | (if (o.ZERO_MEMORY == 1) @intFromEnum(HEAP_FLAGS.ZERO_MEMORY) else 0) | (if (o.REALLOC_IN_PLACE_ONLY == 1) @intFromEnum(HEAP_FLAGS.REALLOC_IN_PLACE_ONLY) else 0) | (if (o.TAIL_CHECKING_ENABLED == 1) @intFromEnum(HEAP_FLAGS.TAIL_CHECKING_ENABLED) else 0) | (if (o.FREE_CHECKING_ENABLED == 1) @intFromEnum(HEAP_FLAGS.FREE_CHECKING_ENABLED) else 0) | (if (o.DISABLE_COALESCE_ON_FREE == 1) @intFromEnum(HEAP_FLAGS.DISABLE_COALESCE_ON_FREE) else 0) | (if (o.CREATE_ALIGN_16 == 1) @intFromEnum(HEAP_FLAGS.CREATE_ALIGN_16) else 0) | (if (o.CREATE_ENABLE_TRACING == 1) @intFromEnum(HEAP_FLAGS.CREATE_ENABLE_TRACING) else 0) | (if (o.CREATE_ENABLE_EXECUTE == 1) @intFromEnum(HEAP_FLAGS.CREATE_ENABLE_EXECUTE) else 0) | (if (o.MAXIMUM_TAG == 1) @intFromEnum(HEAP_FLAGS.MAXIMUM_TAG) else 0) | (if (o.PSEUDO_TAG_FLAG == 1) @intFromEnum(HEAP_FLAGS.PSEUDO_TAG_FLAG) else 0) | (if (o.TAG_SHIFT == 1) @intFromEnum(HEAP_FLAGS.TAG_SHIFT) else 0) | (if (o.CREATE_SEGMENT_HEAP == 1) @intFromEnum(HEAP_FLAGS.CREATE_SEGMENT_HEAP) else 0) | (if (o.CREATE_HARDENED == 1) @intFromEnum(HEAP_FLAGS.CREATE_HARDENED) else 0))); } }; pub const HEAP_NONE = HEAP_FLAGS.NONE; pub const HEAP_NO_SERIALIZE = HEAP_FLAGS.NO_SERIALIZE; pub const HEAP_GROWABLE = HEAP_FLAGS.GROWABLE; pub const HEAP_GENERATE_EXCEPTIONS = HEAP_FLAGS.GENERATE_EXCEPTIONS; pub const HEAP_ZERO_MEMORY = HEAP_FLAGS.ZERO_MEMORY; pub const HEAP_REALLOC_IN_PLACE_ONLY = HEAP_FLAGS.REALLOC_IN_PLACE_ONLY; pub const HEAP_TAIL_CHECKING_ENABLED = HEAP_FLAGS.TAIL_CHECKING_ENABLED; pub const HEAP_FREE_CHECKING_ENABLED = HEAP_FLAGS.FREE_CHECKING_ENABLED; pub const HEAP_DISABLE_COALESCE_ON_FREE = HEAP_FLAGS.DISABLE_COALESCE_ON_FREE; pub const HEAP_CREATE_ALIGN_16 = HEAP_FLAGS.CREATE_ALIGN_16; pub const HEAP_CREATE_ENABLE_TRACING = HEAP_FLAGS.CREATE_ENABLE_TRACING; pub const HEAP_CREATE_ENABLE_EXECUTE = HEAP_FLAGS.CREATE_ENABLE_EXECUTE; pub const HEAP_MAXIMUM_TAG = HEAP_FLAGS.MAXIMUM_TAG; pub const HEAP_PSEUDO_TAG_FLAG = HEAP_FLAGS.PSEUDO_TAG_FLAG; pub const HEAP_TAG_SHIFT = HEAP_FLAGS.TAG_SHIFT; pub const HEAP_CREATE_SEGMENT_HEAP = HEAP_FLAGS.CREATE_SEGMENT_HEAP; pub const HEAP_CREATE_HARDENED = HEAP_FLAGS.CREATE_HARDENED; pub const PAGE_PROTECTION_FLAGS = enum(u32) { PAGE_NOACCESS = 1, PAGE_READONLY = 2, PAGE_READWRITE = 4, PAGE_WRITECOPY = 8, PAGE_EXECUTE = 16, PAGE_EXECUTE_READ = 32, PAGE_EXECUTE_READWRITE = 64, PAGE_EXECUTE_WRITECOPY = 128, PAGE_GUARD = 256, PAGE_NOCACHE = 512, PAGE_WRITECOMBINE = 1024, PAGE_GRAPHICS_NOACCESS = 2048, PAGE_GRAPHICS_READONLY = 4096, PAGE_GRAPHICS_READWRITE = 8192, PAGE_GRAPHICS_EXECUTE = 16384, PAGE_GRAPHICS_EXECUTE_READ = 32768, PAGE_GRAPHICS_EXECUTE_READWRITE = 65536, PAGE_GRAPHICS_COHERENT = 131072, PAGE_GRAPHICS_NOCACHE = 262144, PAGE_ENCLAVE_THREAD_CONTROL = 2147483648, // PAGE_REVERT_TO_FILE_MAP = 2147483648, this enum value conflicts with PAGE_ENCLAVE_THREAD_CONTROL PAGE_TARGETS_NO_UPDATE = 1073741824, // PAGE_TARGETS_INVALID = 1073741824, this enum value conflicts with PAGE_TARGETS_NO_UPDATE PAGE_ENCLAVE_UNVALIDATED = 536870912, PAGE_ENCLAVE_MASK = 268435456, // PAGE_ENCLAVE_DECOMMIT = 268435456, this enum value conflicts with PAGE_ENCLAVE_MASK PAGE_ENCLAVE_SS_FIRST = 268435457, PAGE_ENCLAVE_SS_REST = 268435458, // SEC_PARTITION_OWNER_HANDLE = 262144, this enum value conflicts with PAGE_GRAPHICS_NOCACHE SEC_64K_PAGES = 524288, SEC_FILE = 8388608, SEC_IMAGE = 16777216, SEC_PROTECTED_IMAGE = 33554432, SEC_RESERVE = 67108864, SEC_COMMIT = 134217728, // SEC_NOCACHE = 268435456, this enum value conflicts with PAGE_ENCLAVE_MASK // SEC_WRITECOMBINE = 1073741824, this enum value conflicts with PAGE_TARGETS_NO_UPDATE // SEC_LARGE_PAGES = 2147483648, this enum value conflicts with PAGE_ENCLAVE_THREAD_CONTROL SEC_IMAGE_NO_EXECUTE = 285212672, _, pub fn initFlags(o: struct { PAGE_NOACCESS: u1 = 0, PAGE_READONLY: u1 = 0, PAGE_READWRITE: u1 = 0, PAGE_WRITECOPY: u1 = 0, PAGE_EXECUTE: u1 = 0, PAGE_EXECUTE_READ: u1 = 0, PAGE_EXECUTE_READWRITE: u1 = 0, PAGE_EXECUTE_WRITECOPY: u1 = 0, PAGE_GUARD: u1 = 0, PAGE_NOCACHE: u1 = 0, PAGE_WRITECOMBINE: u1 = 0, PAGE_GRAPHICS_NOACCESS: u1 = 0, PAGE_GRAPHICS_READONLY: u1 = 0, PAGE_GRAPHICS_READWRITE: u1 = 0, PAGE_GRAPHICS_EXECUTE: u1 = 0, PAGE_GRAPHICS_EXECUTE_READ: u1 = 0, PAGE_GRAPHICS_EXECUTE_READWRITE: u1 = 0, PAGE_GRAPHICS_COHERENT: u1 = 0, PAGE_GRAPHICS_NOCACHE: u1 = 0, PAGE_ENCLAVE_THREAD_CONTROL: u1 = 0, PAGE_TARGETS_NO_UPDATE: u1 = 0, PAGE_ENCLAVE_UNVALIDATED: u1 = 0, PAGE_ENCLAVE_MASK: u1 = 0, PAGE_ENCLAVE_SS_FIRST: u1 = 0, PAGE_ENCLAVE_SS_REST: u1 = 0, SEC_64K_PAGES: u1 = 0, SEC_FILE: u1 = 0, SEC_IMAGE: u1 = 0, SEC_PROTECTED_IMAGE: u1 = 0, SEC_RESERVE: u1 = 0, SEC_COMMIT: u1 = 0, SEC_IMAGE_NO_EXECUTE: u1 = 0, }) PAGE_PROTECTION_FLAGS { return @as(PAGE_PROTECTION_FLAGS, @enumFromInt((if (o.PAGE_NOACCESS == 1) @intFromEnum(PAGE_PROTECTION_FLAGS.PAGE_NOACCESS) else 0) | (if (o.PAGE_READONLY == 1) @intFromEnum(PAGE_PROTECTION_FLAGS.PAGE_READONLY) else 0) | (if (o.PAGE_READWRITE == 1) @intFromEnum(PAGE_PROTECTION_FLAGS.PAGE_READWRITE) else 0) | (if (o.PAGE_WRITECOPY == 1) @intFromEnum(PAGE_PROTECTION_FLAGS.PAGE_WRITECOPY) else 0) | (if (o.PAGE_EXECUTE == 1) @intFromEnum(PAGE_PROTECTION_FLAGS.PAGE_EXECUTE) else 0) | (if (o.PAGE_EXECUTE_READ == 1) @intFromEnum(PAGE_PROTECTION_FLAGS.PAGE_EXECUTE_READ) else 0) | (if (o.PAGE_EXECUTE_READWRITE == 1) @intFromEnum(PAGE_PROTECTION_FLAGS.PAGE_EXECUTE_READWRITE) else 0) | (if (o.PAGE_EXECUTE_WRITECOPY == 1) @intFromEnum(PAGE_PROTECTION_FLAGS.PAGE_EXECUTE_WRITECOPY) else 0) | (if (o.PAGE_GUARD == 1) @intFromEnum(PAGE_PROTECTION_FLAGS.PAGE_GUARD) else 0) | (if (o.PAGE_NOCACHE == 1) @intFromEnum(PAGE_PROTECTION_FLAGS.PAGE_NOCACHE) else 0) | (if (o.PAGE_WRITECOMBINE == 1) @intFromEnum(PAGE_PROTECTION_FLAGS.PAGE_WRITECOMBINE) else 0) | (if (o.PAGE_GRAPHICS_NOACCESS == 1) @intFromEnum(PAGE_PROTECTION_FLAGS.PAGE_GRAPHICS_NOACCESS) else 0) | (if (o.PAGE_GRAPHICS_READONLY == 1) @intFromEnum(PAGE_PROTECTION_FLAGS.PAGE_GRAPHICS_READONLY) else 0) | (if (o.PAGE_GRAPHICS_READWRITE == 1) @intFromEnum(PAGE_PROTECTION_FLAGS.PAGE_GRAPHICS_READWRITE) else 0) | (if (o.PAGE_GRAPHICS_EXECUTE == 1) @intFromEnum(PAGE_PROTECTION_FLAGS.PAGE_GRAPHICS_EXECUTE) else 0) | (if (o.PAGE_GRAPHICS_EXECUTE_READ == 1) @intFromEnum(PAGE_PROTECTION_FLAGS.PAGE_GRAPHICS_EXECUTE_READ) else 0) | (if (o.PAGE_GRAPHICS_EXECUTE_READWRITE == 1) @intFromEnum(PAGE_PROTECTION_FLAGS.PAGE_GRAPHICS_EXECUTE_READWRITE) else 0) | (if (o.PAGE_GRAPHICS_COHERENT == 1) @intFromEnum(PAGE_PROTECTION_FLAGS.PAGE_GRAPHICS_COHERENT) else 0) | (if (o.PAGE_GRAPHICS_NOCACHE == 1) @intFromEnum(PAGE_PROTECTION_FLAGS.PAGE_GRAPHICS_NOCACHE) else 0) | (if (o.PAGE_ENCLAVE_THREAD_CONTROL == 1) @intFromEnum(PAGE_PROTECTION_FLAGS.PAGE_ENCLAVE_THREAD_CONTROL) else 0) | (if (o.PAGE_TARGETS_NO_UPDATE == 1) @intFromEnum(PAGE_PROTECTION_FLAGS.PAGE_TARGETS_NO_UPDATE) else 0) | (if (o.PAGE_ENCLAVE_UNVALIDATED == 1) @intFromEnum(PAGE_PROTECTION_FLAGS.PAGE_ENCLAVE_UNVALIDATED) else 0) | (if (o.PAGE_ENCLAVE_MASK == 1) @intFromEnum(PAGE_PROTECTION_FLAGS.PAGE_ENCLAVE_MASK) else 0) | (if (o.PAGE_ENCLAVE_SS_FIRST == 1) @intFromEnum(PAGE_PROTECTION_FLAGS.PAGE_ENCLAVE_SS_FIRST) else 0) | (if (o.PAGE_ENCLAVE_SS_REST == 1) @intFromEnum(PAGE_PROTECTION_FLAGS.PAGE_ENCLAVE_SS_REST) else 0) | (if (o.SEC_64K_PAGES == 1) @intFromEnum(PAGE_PROTECTION_FLAGS.SEC_64K_PAGES) else 0) | (if (o.SEC_FILE == 1) @intFromEnum(PAGE_PROTECTION_FLAGS.SEC_FILE) else 0) | (if (o.SEC_IMAGE == 1) @intFromEnum(PAGE_PROTECTION_FLAGS.SEC_IMAGE) else 0) | (if (o.SEC_PROTECTED_IMAGE == 1) @intFromEnum(PAGE_PROTECTION_FLAGS.SEC_PROTECTED_IMAGE) else 0) | (if (o.SEC_RESERVE == 1) @intFromEnum(PAGE_PROTECTION_FLAGS.SEC_RESERVE) else 0) | (if (o.SEC_COMMIT == 1) @intFromEnum(PAGE_PROTECTION_FLAGS.SEC_COMMIT) else 0) | (if (o.SEC_IMAGE_NO_EXECUTE == 1) @intFromEnum(PAGE_PROTECTION_FLAGS.SEC_IMAGE_NO_EXECUTE) else 0))); } }; pub const PAGE_NOACCESS = PAGE_PROTECTION_FLAGS.PAGE_NOACCESS; pub const PAGE_READONLY = PAGE_PROTECTION_FLAGS.PAGE_READONLY; pub const PAGE_READWRITE = PAGE_PROTECTION_FLAGS.PAGE_READWRITE; pub const PAGE_WRITECOPY = PAGE_PROTECTION_FLAGS.PAGE_WRITECOPY; pub const PAGE_EXECUTE = PAGE_PROTECTION_FLAGS.PAGE_EXECUTE; pub const PAGE_EXECUTE_READ = PAGE_PROTECTION_FLAGS.PAGE_EXECUTE_READ; pub const PAGE_EXECUTE_READWRITE = PAGE_PROTECTION_FLAGS.PAGE_EXECUTE_READWRITE; pub const PAGE_EXECUTE_WRITECOPY = PAGE_PROTECTION_FLAGS.PAGE_EXECUTE_WRITECOPY; pub const PAGE_GUARD = PAGE_PROTECTION_FLAGS.PAGE_GUARD; pub const PAGE_NOCACHE = PAGE_PROTECTION_FLAGS.PAGE_NOCACHE; pub const PAGE_WRITECOMBINE = PAGE_PROTECTION_FLAGS.PAGE_WRITECOMBINE; pub const PAGE_GRAPHICS_NOACCESS = PAGE_PROTECTION_FLAGS.PAGE_GRAPHICS_NOACCESS; pub const PAGE_GRAPHICS_READONLY = PAGE_PROTECTION_FLAGS.PAGE_GRAPHICS_READONLY; pub const PAGE_GRAPHICS_READWRITE = PAGE_PROTECTION_FLAGS.PAGE_GRAPHICS_READWRITE; pub const PAGE_GRAPHICS_EXECUTE = PAGE_PROTECTION_FLAGS.PAGE_GRAPHICS_EXECUTE; pub const PAGE_GRAPHICS_EXECUTE_READ = PAGE_PROTECTION_FLAGS.PAGE_GRAPHICS_EXECUTE_READ; pub const PAGE_GRAPHICS_EXECUTE_READWRITE = PAGE_PROTECTION_FLAGS.PAGE_GRAPHICS_EXECUTE_READWRITE; pub const PAGE_GRAPHICS_COHERENT = PAGE_PROTECTION_FLAGS.PAGE_GRAPHICS_COHERENT; pub const PAGE_GRAPHICS_NOCACHE = PAGE_PROTECTION_FLAGS.PAGE_GRAPHICS_NOCACHE; pub const PAGE_ENCLAVE_THREAD_CONTROL = PAGE_PROTECTION_FLAGS.PAGE_ENCLAVE_THREAD_CONTROL; pub const PAGE_REVERT_TO_FILE_MAP = PAGE_PROTECTION_FLAGS.PAGE_ENCLAVE_THREAD_CONTROL; pub const PAGE_TARGETS_NO_UPDATE = PAGE_PROTECTION_FLAGS.PAGE_TARGETS_NO_UPDATE; pub const PAGE_TARGETS_INVALID = PAGE_PROTECTION_FLAGS.PAGE_TARGETS_NO_UPDATE; pub const PAGE_ENCLAVE_UNVALIDATED = PAGE_PROTECTION_FLAGS.PAGE_ENCLAVE_UNVALIDATED; pub const PAGE_ENCLAVE_MASK = PAGE_PROTECTION_FLAGS.PAGE_ENCLAVE_MASK; pub const PAGE_ENCLAVE_DECOMMIT = PAGE_PROTECTION_FLAGS.PAGE_ENCLAVE_MASK; pub const PAGE_ENCLAVE_SS_FIRST = PAGE_PROTECTION_FLAGS.PAGE_ENCLAVE_SS_FIRST; pub const PAGE_ENCLAVE_SS_REST = PAGE_PROTECTION_FLAGS.PAGE_ENCLAVE_SS_REST; pub const SEC_PARTITION_OWNER_HANDLE = PAGE_PROTECTION_FLAGS.PAGE_GRAPHICS_NOCACHE; pub const SEC_64K_PAGES = PAGE_PROTECTION_FLAGS.SEC_64K_PAGES; pub const SEC_FILE = PAGE_PROTECTION_FLAGS.SEC_FILE; pub const SEC_IMAGE = PAGE_PROTECTION_FLAGS.SEC_IMAGE; pub const SEC_PROTECTED_IMAGE = PAGE_PROTECTION_FLAGS.SEC_PROTECTED_IMAGE; pub const SEC_RESERVE = PAGE_PROTECTION_FLAGS.SEC_RESERVE; pub const SEC_COMMIT = PAGE_PROTECTION_FLAGS.SEC_COMMIT; pub const SEC_NOCACHE = PAGE_PROTECTION_FLAGS.PAGE_ENCLAVE_MASK; pub const SEC_WRITECOMBINE = PAGE_PROTECTION_FLAGS.PAGE_TARGETS_NO_UPDATE; pub const SEC_LARGE_PAGES = PAGE_PROTECTION_FLAGS.PAGE_ENCLAVE_THREAD_CONTROL; pub const SEC_IMAGE_NO_EXECUTE = PAGE_PROTECTION_FLAGS.SEC_IMAGE_NO_EXECUTE; pub const UNMAP_VIEW_OF_FILE_FLAGS = enum(u32) { UNMAP_NONE = 0, UNMAP_WITH_TRANSIENT_BOOST = 1, PRESERVE_PLACEHOLDER = 2, }; pub const MEM_UNMAP_NONE = UNMAP_VIEW_OF_FILE_FLAGS.UNMAP_NONE; pub const MEM_UNMAP_WITH_TRANSIENT_BOOST = UNMAP_VIEW_OF_FILE_FLAGS.UNMAP_WITH_TRANSIENT_BOOST; pub const MEM_PRESERVE_PLACEHOLDER = UNMAP_VIEW_OF_FILE_FLAGS.PRESERVE_PLACEHOLDER; pub const VIRTUAL_FREE_TYPE = enum(u32) { DECOMMIT = 16384, RELEASE = 32768, }; pub const MEM_DECOMMIT = VIRTUAL_FREE_TYPE.DECOMMIT; pub const MEM_RELEASE = VIRTUAL_FREE_TYPE.RELEASE; pub const VIRTUAL_ALLOCATION_TYPE = enum(u32) { COMMIT = 4096, RESERVE = 8192, RESET = 524288, RESET_UNDO = 16777216, REPLACE_PLACEHOLDER = 16384, LARGE_PAGES = 536870912, RESERVE_PLACEHOLDER = 262144, FREE = 65536, _, pub fn initFlags(o: struct { COMMIT: u1 = 0, RESERVE: u1 = 0, RESET: u1 = 0, RESET_UNDO: u1 = 0, REPLACE_PLACEHOLDER: u1 = 0, LARGE_PAGES: u1 = 0, RESERVE_PLACEHOLDER: u1 = 0, FREE: u1 = 0, }) VIRTUAL_ALLOCATION_TYPE { return @as(VIRTUAL_ALLOCATION_TYPE, @enumFromInt((if (o.COMMIT == 1) @intFromEnum(VIRTUAL_ALLOCATION_TYPE.COMMIT) else 0) | (if (o.RESERVE == 1) @intFromEnum(VIRTUAL_ALLOCATION_TYPE.RESERVE) else 0) | (if (o.RESET == 1) @intFromEnum(VIRTUAL_ALLOCATION_TYPE.RESET) else 0) | (if (o.RESET_UNDO == 1) @intFromEnum(VIRTUAL_ALLOCATION_TYPE.RESET_UNDO) else 0) | (if (o.REPLACE_PLACEHOLDER == 1) @intFromEnum(VIRTUAL_ALLOCATION_TYPE.REPLACE_PLACEHOLDER) else 0) | (if (o.LARGE_PAGES == 1) @intFromEnum(VIRTUAL_ALLOCATION_TYPE.LARGE_PAGES) else 0) | (if (o.RESERVE_PLACEHOLDER == 1) @intFromEnum(VIRTUAL_ALLOCATION_TYPE.RESERVE_PLACEHOLDER) else 0) | (if (o.FREE == 1) @intFromEnum(VIRTUAL_ALLOCATION_TYPE.FREE) else 0))); } }; pub const MEM_COMMIT = VIRTUAL_ALLOCATION_TYPE.COMMIT; pub const MEM_RESERVE = VIRTUAL_ALLOCATION_TYPE.RESERVE; pub const MEM_RESET = VIRTUAL_ALLOCATION_TYPE.RESET; pub const MEM_RESET_UNDO = VIRTUAL_ALLOCATION_TYPE.RESET_UNDO; pub const MEM_REPLACE_PLACEHOLDER = VIRTUAL_ALLOCATION_TYPE.REPLACE_PLACEHOLDER; pub const MEM_LARGE_PAGES = VIRTUAL_ALLOCATION_TYPE.LARGE_PAGES; pub const MEM_RESERVE_PLACEHOLDER = VIRTUAL_ALLOCATION_TYPE.RESERVE_PLACEHOLDER; pub const MEM_FREE = VIRTUAL_ALLOCATION_TYPE.FREE; pub const LOCAL_ALLOC_FLAGS = enum(u32) { LHND = 66, LMEM_FIXED = 0, LMEM_MOVEABLE = 2, LMEM_ZEROINIT = 64, // LPTR = 64, this enum value conflicts with LMEM_ZEROINIT // NONZEROLHND = 2, this enum value conflicts with LMEM_MOVEABLE // NONZEROLPTR = 0, this enum value conflicts with LMEM_FIXED _, pub fn initFlags(o: struct { LHND: u1 = 0, LMEM_FIXED: u1 = 0, LMEM_MOVEABLE: u1 = 0, LMEM_ZEROINIT: u1 = 0, }) LOCAL_ALLOC_FLAGS { return @as(LOCAL_ALLOC_FLAGS, @enumFromInt((if (o.LHND == 1) @intFromEnum(LOCAL_ALLOC_FLAGS.LHND) else 0) | (if (o.LMEM_FIXED == 1) @intFromEnum(LOCAL_ALLOC_FLAGS.LMEM_FIXED) else 0) | (if (o.LMEM_MOVEABLE == 1) @intFromEnum(LOCAL_ALLOC_FLAGS.LMEM_MOVEABLE) else 0) | (if (o.LMEM_ZEROINIT == 1) @intFromEnum(LOCAL_ALLOC_FLAGS.LMEM_ZEROINIT) else 0))); } }; pub const LHND = LOCAL_ALLOC_FLAGS.LHND; pub const LMEM_FIXED = LOCAL_ALLOC_FLAGS.LMEM_FIXED; pub const LMEM_MOVEABLE = LOCAL_ALLOC_FLAGS.LMEM_MOVEABLE; pub const LMEM_ZEROINIT = LOCAL_ALLOC_FLAGS.LMEM_ZEROINIT; pub const LPTR = LOCAL_ALLOC_FLAGS.LMEM_ZEROINIT; pub const NONZEROLHND = LOCAL_ALLOC_FLAGS.LMEM_MOVEABLE; pub const NONZEROLPTR = LOCAL_ALLOC_FLAGS.LMEM_FIXED; pub const GLOBAL_ALLOC_FLAGS = enum(u32) { HND = 66, MEM_FIXED = 0, MEM_MOVEABLE = 2, MEM_ZEROINIT = 64, // PTR = 64, this enum value conflicts with MEM_ZEROINIT _, pub fn initFlags(o: struct { HND: u1 = 0, MEM_FIXED: u1 = 0, MEM_MOVEABLE: u1 = 0, MEM_ZEROINIT: u1 = 0, }) GLOBAL_ALLOC_FLAGS { return @as(GLOBAL_ALLOC_FLAGS, @enumFromInt((if (o.HND == 1) @intFromEnum(GLOBAL_ALLOC_FLAGS.HND) else 0) | (if (o.MEM_FIXED == 1) @intFromEnum(GLOBAL_ALLOC_FLAGS.MEM_FIXED) else 0) | (if (o.MEM_MOVEABLE == 1) @intFromEnum(GLOBAL_ALLOC_FLAGS.MEM_MOVEABLE) else 0) | (if (o.MEM_ZEROINIT == 1) @intFromEnum(GLOBAL_ALLOC_FLAGS.MEM_ZEROINIT) else 0))); } }; pub const GHND = GLOBAL_ALLOC_FLAGS.HND; pub const GMEM_FIXED = GLOBAL_ALLOC_FLAGS.MEM_FIXED; pub const GMEM_MOVEABLE = GLOBAL_ALLOC_FLAGS.MEM_MOVEABLE; pub const GMEM_ZEROINIT = GLOBAL_ALLOC_FLAGS.MEM_ZEROINIT; pub const GPTR = GLOBAL_ALLOC_FLAGS.MEM_ZEROINIT; pub const PAGE_TYPE = enum(u32) { PRIVATE = 131072, MAPPED = 262144, IMAGE = 16777216, _, pub fn initFlags(o: struct { PRIVATE: u1 = 0, MAPPED: u1 = 0, IMAGE: u1 = 0, }) PAGE_TYPE { return @as(PAGE_TYPE, @enumFromInt((if (o.PRIVATE == 1) @intFromEnum(PAGE_TYPE.PRIVATE) else 0) | (if (o.MAPPED == 1) @intFromEnum(PAGE_TYPE.MAPPED) else 0) | (if (o.IMAGE == 1) @intFromEnum(PAGE_TYPE.IMAGE) else 0))); } }; pub const MEM_PRIVATE = PAGE_TYPE.PRIVATE; pub const MEM_MAPPED = PAGE_TYPE.MAPPED; pub const MEM_IMAGE = PAGE_TYPE.IMAGE; // TODO: this type has a FreeFunc 'HeapDestroy', what can Zig do with this information? pub const HeapHandle = *opaque {}; pub const PROCESS_HEAP_ENTRY = extern struct { lpData: ?*anyopaque, cbData: u32, cbOverhead: u8, iRegionIndex: u8, wFlags: u16, Anonymous: extern union { Block: extern struct { hMem: ?HANDLE, dwReserved: [3]u32, }, Region: extern struct { dwCommittedSize: u32, dwUnCommittedSize: u32, lpFirstBlock: ?*anyopaque, lpLastBlock: ?*anyopaque, }, }, }; pub const HEAP_SUMMARY = extern struct { cb: u32, cbAllocated: usize, cbCommitted: usize, cbReserved: usize, cbMaxReserve: usize, }; pub const MEMORY_RESOURCE_NOTIFICATION_TYPE = enum(i32) { LowMemoryResourceNotification = 0, HighMemoryResourceNotification = 1, }; pub const LowMemoryResourceNotification = MEMORY_RESOURCE_NOTIFICATION_TYPE.LowMemoryResourceNotification; pub const HighMemoryResourceNotification = MEMORY_RESOURCE_NOTIFICATION_TYPE.HighMemoryResourceNotification; pub const WIN32_MEMORY_RANGE_ENTRY = extern struct { VirtualAddress: ?*anyopaque, NumberOfBytes: usize, }; pub const PBAD_MEMORY_CALLBACK_ROUTINE = switch (@import("builtin").zig_backend) { .stage1 => fn () callconv(@import("std").os.windows.WINAPI) void, else => *const fn () callconv(@import("std").os.windows.WINAPI) void, }; pub const OFFER_PRIORITY = enum(i32) { VeryLow = 1, Low = 2, BelowNormal = 3, Normal = 4, }; pub const VmOfferPriorityVeryLow = OFFER_PRIORITY.VeryLow; pub const VmOfferPriorityLow = OFFER_PRIORITY.Low; pub const VmOfferPriorityBelowNormal = OFFER_PRIORITY.BelowNormal; pub const VmOfferPriorityNormal = OFFER_PRIORITY.Normal; pub const WIN32_MEMORY_INFORMATION_CLASS = enum(i32) { o = 0, }; pub const MemoryRegionInfo = WIN32_MEMORY_INFORMATION_CLASS.o; pub const WIN32_MEMORY_REGION_INFORMATION = extern struct { AllocationBase: ?*anyopaque, AllocationProtect: u32, Anonymous: extern union { Flags: u32, Anonymous: extern struct { _bitfield: u32, }, }, RegionSize: usize, CommitSize: usize, }; pub const WIN32_MEMORY_PARTITION_INFORMATION_CLASS = enum(i32) { Info = 0, DedicatedMemoryInfo = 1, }; pub const MemoryPartitionInfo = WIN32_MEMORY_PARTITION_INFORMATION_CLASS.Info; pub const MemoryPartitionDedicatedMemoryInfo = WIN32_MEMORY_PARTITION_INFORMATION_CLASS.DedicatedMemoryInfo; pub const WIN32_MEMORY_PARTITION_INFORMATION = extern struct { Flags: u32, NumaNode: u32, Channel: u32, NumberOfNumaNodes: u32, ResidentAvailablePages: u64, CommittedPages: u64, CommitLimit: u64, PeakCommitment: u64, TotalNumberOfPages: u64, AvailablePages: u64, ZeroPages: u64, FreePages: u64, StandbyPages: u64, Reserved: [16]u64, MaximumCommitLimit: u64, Reserved2: u64, PartitionId: u32, }; pub const MEMORY_BASIC_INFORMATION32 = extern struct { BaseAddress: u32, AllocationBase: u32, AllocationProtect: PAGE_PROTECTION_FLAGS, RegionSize: u32, State: VIRTUAL_ALLOCATION_TYPE, Protect: PAGE_PROTECTION_FLAGS, Type: PAGE_TYPE, }; pub const MEMORY_BASIC_INFORMATION64 = extern struct { BaseAddress: u64, AllocationBase: u64, AllocationProtect: PAGE_PROTECTION_FLAGS, __alignment1: u32, RegionSize: u64, State: VIRTUAL_ALLOCATION_TYPE, Protect: PAGE_PROTECTION_FLAGS, Type: PAGE_TYPE, __alignment2: u32, }; pub const CFG_CALL_TARGET_INFO = extern struct { Offset: usize, Flags: usize, }; pub const MEM_EXTENDED_PARAMETER_TYPE = enum(i32) { InvalidType = 0, AddressRequirements = 1, NumaNode = 2, PartitionHandle = 3, UserPhysicalHandle = 4, AttributeFlags = 5, ImageMachine = 6, Max = 7, }; pub const MemExtendedParameterInvalidType = MEM_EXTENDED_PARAMETER_TYPE.InvalidType; pub const MemExtendedParameterAddressRequirements = MEM_EXTENDED_PARAMETER_TYPE.AddressRequirements; pub const MemExtendedParameterNumaNode = MEM_EXTENDED_PARAMETER_TYPE.NumaNode; pub const MemExtendedParameterPartitionHandle = MEM_EXTENDED_PARAMETER_TYPE.PartitionHandle; pub const MemExtendedParameterUserPhysicalHandle = MEM_EXTENDED_PARAMETER_TYPE.UserPhysicalHandle; pub const MemExtendedParameterAttributeFlags = MEM_EXTENDED_PARAMETER_TYPE.AttributeFlags; pub const MemExtendedParameterImageMachine = MEM_EXTENDED_PARAMETER_TYPE.ImageMachine; pub const MemExtendedParameterMax = MEM_EXTENDED_PARAMETER_TYPE.Max; pub const MEM_EXTENDED_PARAMETER = extern struct { Anonymous1: extern struct { _bitfield: u64, }, Anonymous2: extern union { ULong64: u64, Pointer: ?*anyopaque, Size: usize, Handle: ?HANDLE, ULong: u32, }, }; pub const HEAP_INFORMATION_CLASS = enum(i32) { CompatibilityInformation = 0, EnableTerminationOnCorruption = 1, OptimizeResources = 3, Tag = 7, }; pub const HeapCompatibilityInformation = HEAP_INFORMATION_CLASS.CompatibilityInformation; pub const HeapEnableTerminationOnCorruption = HEAP_INFORMATION_CLASS.EnableTerminationOnCorruption; pub const HeapOptimizeResources = HEAP_INFORMATION_CLASS.OptimizeResources; pub const HeapTag = HEAP_INFORMATION_CLASS.Tag; pub const PSECURE_MEMORY_CACHE_CALLBACK = switch (@import("builtin").zig_backend) { .stage1 => fn ( // TODO: what to do with BytesParamIndex 1? Addr: ?*anyopaque, Range: usize, ) callconv(@import("std").os.windows.WINAPI) BOOLEAN, else => *const fn ( // TODO: what to do with BytesParamIndex 1? Addr: ?*anyopaque, Range: usize, ) callconv(@import("std").os.windows.WINAPI) BOOLEAN, }; pub const MEMORY_BASIC_INFORMATION = switch (@import("../zig.zig").arch) { .X64, .Arm64 => extern struct { BaseAddress: ?*anyopaque, AllocationBase: ?*anyopaque, AllocationProtect: PAGE_PROTECTION_FLAGS, PartitionId: u16, RegionSize: usize, State: VIRTUAL_ALLOCATION_TYPE, Protect: PAGE_PROTECTION_FLAGS, Type: PAGE_TYPE, }, .X86 => extern struct { BaseAddress: ?*anyopaque, AllocationBase: ?*anyopaque, AllocationProtect: PAGE_PROTECTION_FLAGS, RegionSize: usize, State: VIRTUAL_ALLOCATION_TYPE, Protect: PAGE_PROTECTION_FLAGS, Type: PAGE_TYPE, }, }; //-------------------------------------------------------------------------------- // Section: Functions (106) //-------------------------------------------------------------------------------- // TODO: this type is limited to platform 'windows5.1.2600' pub extern "kernel32" fn HeapCreate( flOptions: HEAP_FLAGS, dwInitialSize: usize, dwMaximumSize: usize, ) callconv(@import("std").os.windows.WINAPI) ?HeapHandle; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "kernel32" fn HeapDestroy( hHeap: ?HeapHandle, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "kernel32" fn HeapAlloc( hHeap: ?HeapHandle, dwFlags: HEAP_FLAGS, dwBytes: usize, ) callconv(@import("std").os.windows.WINAPI) ?*anyopaque; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "kernel32" fn HeapReAlloc( hHeap: ?HeapHandle, dwFlags: HEAP_FLAGS, lpMem: ?*anyopaque, dwBytes: usize, ) callconv(@import("std").os.windows.WINAPI) ?*anyopaque; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "kernel32" fn HeapFree( hHeap: ?HeapHandle, dwFlags: HEAP_FLAGS, lpMem: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "kernel32" fn HeapSize( hHeap: ?HeapHandle, dwFlags: HEAP_FLAGS, lpMem: ?*const anyopaque, ) callconv(@import("std").os.windows.WINAPI) usize; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "kernel32" fn GetProcessHeap() callconv(@import("std").os.windows.WINAPI) ?HeapHandle; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "kernel32" fn HeapCompact( hHeap: ?HeapHandle, dwFlags: HEAP_FLAGS, ) callconv(@import("std").os.windows.WINAPI) usize; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "kernel32" fn HeapSetInformation( HeapHandle: ?HeapHandle, HeapInformationClass: HEAP_INFORMATION_CLASS, // TODO: what to do with BytesParamIndex 3? HeapInformation: ?*anyopaque, HeapInformationLength: usize, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "kernel32" fn HeapValidate( hHeap: ?HeapHandle, dwFlags: HEAP_FLAGS, lpMem: ?*const anyopaque, ) callconv(@import("std").os.windows.WINAPI) BOOL; pub extern "kernel32" fn HeapSummary( hHeap: ?HANDLE, dwFlags: u32, lpSummary: ?*HEAP_SUMMARY, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "kernel32" fn GetProcessHeaps( NumberOfHeaps: u32, ProcessHeaps: [*]?HeapHandle, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "kernel32" fn HeapLock( hHeap: ?HeapHandle, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "kernel32" fn HeapUnlock( hHeap: ?HeapHandle, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "kernel32" fn HeapWalk( hHeap: ?HeapHandle, lpEntry: ?*PROCESS_HEAP_ENTRY, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "kernel32" fn HeapQueryInformation( HeapHandle: ?HeapHandle, HeapInformationClass: HEAP_INFORMATION_CLASS, // TODO: what to do with BytesParamIndex 3? HeapInformation: ?*anyopaque, HeapInformationLength: usize, ReturnLength: ?*usize, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "kernel32" fn VirtualAlloc( lpAddress: ?*anyopaque, dwSize: usize, flAllocationType: VIRTUAL_ALLOCATION_TYPE, flProtect: PAGE_PROTECTION_FLAGS, ) callconv(@import("std").os.windows.WINAPI) ?*anyopaque; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "kernel32" fn VirtualProtect( lpAddress: ?*anyopaque, dwSize: usize, flNewProtect: PAGE_PROTECTION_FLAGS, lpflOldProtect: ?*PAGE_PROTECTION_FLAGS, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "kernel32" fn VirtualFree( lpAddress: ?*anyopaque, dwSize: usize, dwFreeType: VIRTUAL_FREE_TYPE, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "kernel32" fn VirtualQuery( lpAddress: ?*const anyopaque, // TODO: what to do with BytesParamIndex 2? lpBuffer: ?*MEMORY_BASIC_INFORMATION, dwLength: usize, ) callconv(@import("std").os.windows.WINAPI) usize; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "kernel32" fn VirtualAllocEx( hProcess: ?HANDLE, lpAddress: ?*anyopaque, dwSize: usize, flAllocationType: VIRTUAL_ALLOCATION_TYPE, flProtect: PAGE_PROTECTION_FLAGS, ) callconv(@import("std").os.windows.WINAPI) ?*anyopaque; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "kernel32" fn VirtualProtectEx( hProcess: ?HANDLE, lpAddress: ?*anyopaque, dwSize: usize, flNewProtect: PAGE_PROTECTION_FLAGS, lpflOldProtect: ?*PAGE_PROTECTION_FLAGS, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "kernel32" fn VirtualQueryEx( hProcess: ?HANDLE, lpAddress: ?*const anyopaque, // TODO: what to do with BytesParamIndex 3? lpBuffer: ?*MEMORY_BASIC_INFORMATION, dwLength: usize, ) callconv(@import("std").os.windows.WINAPI) usize; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "kernel32" fn CreateFileMappingW( hFile: ?HANDLE, lpFileMappingAttributes: ?*SECURITY_ATTRIBUTES, flProtect: PAGE_PROTECTION_FLAGS, dwMaximumSizeHigh: u32, dwMaximumSizeLow: u32, lpName: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) ?HANDLE; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "kernel32" fn OpenFileMappingW( dwDesiredAccess: u32, bInheritHandle: BOOL, lpName: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) ?HANDLE; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "kernel32" fn MapViewOfFile( hFileMappingObject: ?HANDLE, dwDesiredAccess: FILE_MAP, dwFileOffsetHigh: u32, dwFileOffsetLow: u32, dwNumberOfBytesToMap: usize, ) callconv(@import("std").os.windows.WINAPI) ?*anyopaque; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "kernel32" fn MapViewOfFileEx( hFileMappingObject: ?HANDLE, dwDesiredAccess: FILE_MAP, dwFileOffsetHigh: u32, dwFileOffsetLow: u32, dwNumberOfBytesToMap: usize, lpBaseAddress: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) ?*anyopaque; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "kernel32" fn VirtualFreeEx( hProcess: ?HANDLE, lpAddress: ?*anyopaque, dwSize: usize, dwFreeType: VIRTUAL_FREE_TYPE, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "kernel32" fn FlushViewOfFile( lpBaseAddress: ?*const anyopaque, dwNumberOfBytesToFlush: usize, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "kernel32" fn UnmapViewOfFile( lpBaseAddress: ?*const anyopaque, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows6.0.6000' pub extern "kernel32" fn GetLargePageMinimum() callconv(@import("std").os.windows.WINAPI) usize; // TODO: this type is limited to platform 'windows6.0.6000' pub extern "kernel32" fn GetProcessWorkingSetSizeEx( hProcess: ?HANDLE, lpMinimumWorkingSetSize: ?*usize, lpMaximumWorkingSetSize: ?*usize, Flags: ?*u32, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows6.0.6000' pub extern "kernel32" fn SetProcessWorkingSetSizeEx( hProcess: ?HANDLE, dwMinimumWorkingSetSize: usize, dwMaximumWorkingSetSize: usize, Flags: u32, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "kernel32" fn VirtualLock( lpAddress: ?*anyopaque, dwSize: usize, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "kernel32" fn VirtualUnlock( lpAddress: ?*anyopaque, dwSize: usize, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "kernel32" fn GetWriteWatch( dwFlags: u32, lpBaseAddress: ?*anyopaque, dwRegionSize: usize, lpAddresses: ?[*]?*anyopaque, lpdwCount: ?*usize, lpdwGranularity: ?*u32, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "kernel32" fn ResetWriteWatch( lpBaseAddress: ?*anyopaque, dwRegionSize: usize, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "kernel32" fn CreateMemoryResourceNotification( NotificationType: MEMORY_RESOURCE_NOTIFICATION_TYPE, ) callconv(@import("std").os.windows.WINAPI) ?HANDLE; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "kernel32" fn QueryMemoryResourceNotification( ResourceNotificationHandle: ?HANDLE, ResourceState: ?*BOOL, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows6.0.6000' pub extern "kernel32" fn GetSystemFileCacheSize( lpMinimumFileCacheSize: ?*usize, lpMaximumFileCacheSize: ?*usize, lpFlags: ?*u32, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows6.0.6000' pub extern "kernel32" fn SetSystemFileCacheSize( MinimumFileCacheSize: usize, MaximumFileCacheSize: usize, Flags: u32, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows6.0.6000' pub extern "kernel32" fn CreateFileMappingNumaW( hFile: ?HANDLE, lpFileMappingAttributes: ?*SECURITY_ATTRIBUTES, flProtect: PAGE_PROTECTION_FLAGS, dwMaximumSizeHigh: u32, dwMaximumSizeLow: u32, lpName: ?[*:0]const u16, nndPreferred: u32, ) callconv(@import("std").os.windows.WINAPI) ?HANDLE; // TODO: this type is limited to platform 'windows8.0' pub extern "kernel32" fn PrefetchVirtualMemory( hProcess: ?HANDLE, NumberOfEntries: usize, VirtualAddresses: [*]WIN32_MEMORY_RANGE_ENTRY, Flags: u32, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows8.0' pub extern "kernel32" fn CreateFileMappingFromApp( hFile: ?HANDLE, SecurityAttributes: ?*SECURITY_ATTRIBUTES, PageProtection: PAGE_PROTECTION_FLAGS, MaximumSize: u64, Name: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) ?HANDLE; // TODO: this type is limited to platform 'windows8.0' pub extern "kernel32" fn MapViewOfFileFromApp( hFileMappingObject: ?HANDLE, DesiredAccess: FILE_MAP, FileOffset: u64, NumberOfBytesToMap: usize, ) callconv(@import("std").os.windows.WINAPI) ?*anyopaque; // TODO: this type is limited to platform 'windows8.0' pub extern "kernel32" fn UnmapViewOfFileEx( BaseAddress: ?*anyopaque, UnmapFlags: UNMAP_VIEW_OF_FILE_FLAGS, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "kernel32" fn AllocateUserPhysicalPages( hProcess: ?HANDLE, NumberOfPages: ?*usize, PageArray: [*]usize, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "kernel32" fn FreeUserPhysicalPages( hProcess: ?HANDLE, NumberOfPages: ?*usize, PageArray: [*]usize, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "kernel32" fn MapUserPhysicalPages( VirtualAddress: ?*anyopaque, NumberOfPages: usize, PageArray: ?[*]usize, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows6.0.6000' pub extern "kernel32" fn AllocateUserPhysicalPagesNuma( hProcess: ?HANDLE, NumberOfPages: ?*usize, PageArray: [*]usize, nndPreferred: u32, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows6.0.6000' pub extern "kernel32" fn VirtualAllocExNuma( hProcess: ?HANDLE, lpAddress: ?*anyopaque, dwSize: usize, flAllocationType: VIRTUAL_ALLOCATION_TYPE, flProtect: u32, nndPreferred: u32, ) callconv(@import("std").os.windows.WINAPI) ?*anyopaque; // TODO: this type is limited to platform 'windows8.0' pub extern "kernel32" fn GetMemoryErrorHandlingCapabilities( Capabilities: ?*u32, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows8.0' pub extern "kernel32" fn RegisterBadMemoryNotification( Callback: ?PBAD_MEMORY_CALLBACK_ROUTINE, ) callconv(@import("std").os.windows.WINAPI) ?*anyopaque; // TODO: this type is limited to platform 'windows8.0' pub extern "kernel32" fn UnregisterBadMemoryNotification( RegistrationHandle: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows8.1' pub extern "kernel32" fn OfferVirtualMemory( VirtualAddress: [*]u8, Size: usize, Priority: OFFER_PRIORITY, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'windows8.1' pub extern "kernel32" fn ReclaimVirtualMemory( VirtualAddress: [*]const u8, Size: usize, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'windows8.1' pub extern "kernel32" fn DiscardVirtualMemory( VirtualAddress: [*]u8, Size: usize, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'windows10.0.10240' pub extern "api-ms-win-core-memory-l1-1-3" fn SetProcessValidCallTargets( hProcess: ?HANDLE, VirtualAddress: ?*anyopaque, RegionSize: usize, NumberOfOffsets: u32, OffsetInformation: [*]CFG_CALL_TARGET_INFO, ) callconv(@import("std").os.windows.WINAPI) BOOL; pub extern "api-ms-win-core-memory-l1-1-7" fn SetProcessValidCallTargetsForMappedView( Process: ?HANDLE, VirtualAddress: ?*anyopaque, RegionSize: usize, NumberOfOffsets: u32, OffsetInformation: [*]CFG_CALL_TARGET_INFO, Section: ?HANDLE, ExpectedFileOffset: u64, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows10.0.10240' pub extern "api-ms-win-core-memory-l1-1-3" fn VirtualAllocFromApp( BaseAddress: ?*anyopaque, Size: usize, AllocationType: VIRTUAL_ALLOCATION_TYPE, Protection: u32, ) callconv(@import("std").os.windows.WINAPI) ?*anyopaque; // TODO: this type is limited to platform 'windows10.0.10240' pub extern "api-ms-win-core-memory-l1-1-3" fn VirtualProtectFromApp( Address: ?*anyopaque, Size: usize, NewProtection: u32, OldProtection: ?*u32, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows10.0.10240' pub extern "api-ms-win-core-memory-l1-1-3" fn OpenFileMappingFromApp( DesiredAccess: u32, InheritHandle: BOOL, Name: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) ?HANDLE; // TODO: this type is limited to platform 'windows10.0.14393' pub extern "api-ms-win-core-memory-l1-1-4" fn QueryVirtualMemoryInformation( Process: ?HANDLE, VirtualAddress: ?*const anyopaque, MemoryInformationClass: WIN32_MEMORY_INFORMATION_CLASS, // TODO: what to do with BytesParamIndex 4? MemoryInformation: ?*anyopaque, MemoryInformationSize: usize, ReturnSize: ?*usize, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows10.0.15063' pub extern "api-ms-win-core-memory-l1-1-5" fn MapViewOfFileNuma2( FileMappingHandle: ?HANDLE, ProcessHandle: ?HANDLE, Offset: u64, BaseAddress: ?*anyopaque, ViewSize: usize, AllocationType: u32, PageProtection: u32, PreferredNode: u32, ) callconv(@import("std").os.windows.WINAPI) ?*anyopaque; // TODO: this type is limited to platform 'windows10.0.15063' pub extern "api-ms-win-core-memory-l1-1-5" fn UnmapViewOfFile2( Process: ?HANDLE, BaseAddress: ?*anyopaque, UnmapFlags: UNMAP_VIEW_OF_FILE_FLAGS, ) callconv(@import("std").os.windows.WINAPI) BOOL; pub extern "api-ms-win-core-memory-l1-1-5" fn VirtualUnlockEx( Process: ?HANDLE, Address: ?*anyopaque, Size: usize, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows10.0.10240' pub extern "api-ms-win-core-memory-l1-1-6" fn VirtualAlloc2( Process: ?HANDLE, BaseAddress: ?*anyopaque, Size: usize, AllocationType: VIRTUAL_ALLOCATION_TYPE, PageProtection: u32, ExtendedParameters: ?[*]MEM_EXTENDED_PARAMETER, ParameterCount: u32, ) callconv(@import("std").os.windows.WINAPI) ?*anyopaque; // TODO: this type is limited to platform 'windows10.0.17134' pub extern "api-ms-win-core-memory-l1-1-6" fn MapViewOfFile3( FileMapping: ?HANDLE, Process: ?HANDLE, BaseAddress: ?*anyopaque, Offset: u64, ViewSize: usize, AllocationType: VIRTUAL_ALLOCATION_TYPE, PageProtection: u32, ExtendedParameters: ?[*]MEM_EXTENDED_PARAMETER, ParameterCount: u32, ) callconv(@import("std").os.windows.WINAPI) ?*anyopaque; // TODO: this type is limited to platform 'windows10.0.10240' pub extern "api-ms-win-core-memory-l1-1-6" fn VirtualAlloc2FromApp( Process: ?HANDLE, BaseAddress: ?*anyopaque, Size: usize, AllocationType: VIRTUAL_ALLOCATION_TYPE, PageProtection: u32, ExtendedParameters: ?[*]MEM_EXTENDED_PARAMETER, ParameterCount: u32, ) callconv(@import("std").os.windows.WINAPI) ?*anyopaque; // TODO: this type is limited to platform 'windows10.0.10240' pub extern "api-ms-win-core-memory-l1-1-6" fn MapViewOfFile3FromApp( FileMapping: ?HANDLE, Process: ?HANDLE, BaseAddress: ?*anyopaque, Offset: u64, ViewSize: usize, AllocationType: VIRTUAL_ALLOCATION_TYPE, PageProtection: u32, ExtendedParameters: ?[*]MEM_EXTENDED_PARAMETER, ParameterCount: u32, ) callconv(@import("std").os.windows.WINAPI) ?*anyopaque; pub extern "api-ms-win-core-memory-l1-1-7" fn CreateFileMapping2( File: ?HANDLE, SecurityAttributes: ?*SECURITY_ATTRIBUTES, DesiredAccess: u32, PageProtection: PAGE_PROTECTION_FLAGS, AllocationAttributes: u32, MaximumSize: u64, Name: ?[*:0]const u16, ExtendedParameters: ?[*]MEM_EXTENDED_PARAMETER, ParameterCount: u32, ) callconv(@import("std").os.windows.WINAPI) ?HANDLE; pub extern "api-ms-win-core-memory-l1-1-8" fn AllocateUserPhysicalPages2( ObjectHandle: ?HANDLE, NumberOfPages: ?*usize, PageArray: [*]usize, ExtendedParameters: ?[*]MEM_EXTENDED_PARAMETER, ExtendedParameterCount: u32, ) callconv(@import("std").os.windows.WINAPI) BOOL; pub extern "api-ms-win-core-memory-l1-1-8" fn OpenDedicatedMemoryPartition( Partition: ?HANDLE, DedicatedMemoryTypeId: u64, DesiredAccess: u32, InheritHandle: BOOL, ) callconv(@import("std").os.windows.WINAPI) ?HANDLE; pub extern "api-ms-win-core-memory-l1-1-8" fn QueryPartitionInformation( Partition: ?HANDLE, PartitionInformationClass: WIN32_MEMORY_PARTITION_INFORMATION_CLASS, // TODO: what to do with BytesParamIndex 3? PartitionInformation: ?*anyopaque, PartitionInformationLength: u32, ) callconv(@import("std").os.windows.WINAPI) BOOL; pub extern "kernel32" fn RtlCompareMemory( Source1: ?*const anyopaque, Source2: ?*const anyopaque, Length: usize, ) callconv(@import("std").os.windows.WINAPI) usize; pub extern "ntdll" fn RtlCrc32( // TODO: what to do with BytesParamIndex 1? Buffer: ?*const anyopaque, Size: usize, InitialCrc: u32, ) callconv(@import("std").os.windows.WINAPI) u32; pub extern "ntdll" fn RtlCrc64( // TODO: what to do with BytesParamIndex 1? Buffer: ?*const anyopaque, Size: usize, InitialCrc: u64, ) callconv(@import("std").os.windows.WINAPI) u64; pub extern "ntdll" fn RtlIsZeroMemory( Buffer: ?*anyopaque, Length: usize, ) callconv(@import("std").os.windows.WINAPI) BOOLEAN; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "kernel32" fn GlobalAlloc( uFlags: GLOBAL_ALLOC_FLAGS, dwBytes: usize, ) callconv(@import("std").os.windows.WINAPI) isize; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "kernel32" fn GlobalReAlloc( hMem: isize, dwBytes: usize, uFlags: u32, ) callconv(@import("std").os.windows.WINAPI) isize; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "kernel32" fn GlobalSize( hMem: isize, ) callconv(@import("std").os.windows.WINAPI) usize; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "kernel32" fn GlobalUnlock( hMem: isize, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "kernel32" fn GlobalLock( hMem: isize, ) callconv(@import("std").os.windows.WINAPI) ?*anyopaque; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "kernel32" fn GlobalFlags( hMem: isize, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "kernel32" fn GlobalHandle( pMem: ?*const anyopaque, ) callconv(@import("std").os.windows.WINAPI) isize; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "kernel32" fn GlobalFree( hMem: isize, ) callconv(@import("std").os.windows.WINAPI) isize; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "kernel32" fn LocalAlloc( uFlags: LOCAL_ALLOC_FLAGS, uBytes: usize, ) callconv(@import("std").os.windows.WINAPI) isize; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "kernel32" fn LocalReAlloc( hMem: isize, uBytes: usize, uFlags: u32, ) callconv(@import("std").os.windows.WINAPI) isize; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "kernel32" fn LocalLock( hMem: isize, ) callconv(@import("std").os.windows.WINAPI) ?*anyopaque; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "kernel32" fn LocalHandle( pMem: ?*const anyopaque, ) callconv(@import("std").os.windows.WINAPI) isize; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "kernel32" fn LocalUnlock( hMem: isize, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "kernel32" fn LocalSize( hMem: isize, ) callconv(@import("std").os.windows.WINAPI) usize; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "kernel32" fn LocalFlags( hMem: isize, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "kernel32" fn LocalFree( hMem: isize, ) callconv(@import("std").os.windows.WINAPI) isize; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "kernel32" fn CreateFileMappingA( hFile: ?HANDLE, lpFileMappingAttributes: ?*SECURITY_ATTRIBUTES, flProtect: PAGE_PROTECTION_FLAGS, dwMaximumSizeHigh: u32, dwMaximumSizeLow: u32, lpName: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) ?HANDLE; // TODO: this type is limited to platform 'windows6.0.6000' pub extern "kernel32" fn CreateFileMappingNumaA( hFile: ?HANDLE, lpFileMappingAttributes: ?*SECURITY_ATTRIBUTES, flProtect: PAGE_PROTECTION_FLAGS, dwMaximumSizeHigh: u32, dwMaximumSizeLow: u32, lpName: ?[*:0]const u8, nndPreferred: u32, ) callconv(@import("std").os.windows.WINAPI) ?HANDLE; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "kernel32" fn OpenFileMappingA( dwDesiredAccess: u32, bInheritHandle: BOOL, lpName: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) ?HANDLE; // TODO: this type is limited to platform 'windows6.0.6000' pub extern "kernel32" fn MapViewOfFileExNuma( hFileMappingObject: ?HANDLE, dwDesiredAccess: FILE_MAP, dwFileOffsetHigh: u32, dwFileOffsetLow: u32, dwNumberOfBytesToMap: usize, lpBaseAddress: ?*anyopaque, nndPreferred: u32, ) callconv(@import("std").os.windows.WINAPI) ?*anyopaque; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "kernel32" fn IsBadReadPtr( lp: ?*const anyopaque, ucb: usize, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "kernel32" fn IsBadWritePtr( lp: ?*anyopaque, ucb: usize, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "kernel32" fn IsBadCodePtr( lpfn: ?FARPROC, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "kernel32" fn IsBadStringPtrA( lpsz: ?[*:0]const u8, ucchMax: usize, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "kernel32" fn IsBadStringPtrW( lpsz: ?[*:0]const u16, ucchMax: usize, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "kernel32" fn MapUserPhysicalPagesScatter( VirtualAddresses: [*]?*anyopaque, NumberOfPages: usize, PageArray: ?[*]usize, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows6.0.6000' pub extern "kernel32" fn AddSecureMemoryCacheCallback( pfnCallBack: ?PSECURE_MEMORY_CACHE_CALLBACK, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows6.0.6000' pub extern "kernel32" fn RemoveSecureMemoryCacheCallback( pfnCallBack: ?PSECURE_MEMORY_CACHE_CALLBACK, ) callconv(@import("std").os.windows.WINAPI) BOOL; //-------------------------------------------------------------------------------- // Section: Unicode Aliases (4) //-------------------------------------------------------------------------------- const thismodule = @This(); pub usingnamespace switch (@import("../zig.zig").unicode_mode) { .ansi => struct { pub const CreateFileMapping = thismodule.CreateFileMappingA; pub const OpenFileMapping = thismodule.OpenFileMappingA; pub const CreateFileMappingNuma = thismodule.CreateFileMappingNumaA; pub const IsBadStringPtr = thismodule.IsBadStringPtrA; }, .wide => struct { pub const CreateFileMapping = thismodule.CreateFileMappingW; pub const OpenFileMapping = thismodule.OpenFileMappingW; pub const CreateFileMappingNuma = thismodule.CreateFileMappingNumaW; pub const IsBadStringPtr = thismodule.IsBadStringPtrW; }, .unspecified => if (@import("builtin").is_test) struct { pub const CreateFileMapping = *opaque {}; pub const OpenFileMapping = *opaque {}; pub const CreateFileMappingNuma = *opaque {}; pub const IsBadStringPtr = *opaque {}; } else struct { pub const CreateFileMapping = @compileError("'CreateFileMapping' requires that UNICODE be set to true or false in the root module"); pub const OpenFileMapping = @compileError("'OpenFileMapping' requires that UNICODE be set to true or false in the root module"); pub const CreateFileMappingNuma = @compileError("'CreateFileMappingNuma' requires that UNICODE be set to true or false in the root module"); pub const IsBadStringPtr = @compileError("'IsBadStringPtr' requires that UNICODE be set to true or false in the root module"); }, }; //-------------------------------------------------------------------------------- // Section: Imports (7) //-------------------------------------------------------------------------------- const BOOL = @import("../foundation.zig").BOOL; const BOOLEAN = @import("../foundation.zig").BOOLEAN; const FARPROC = @import("../foundation.zig").FARPROC; const HANDLE = @import("../foundation.zig").HANDLE; const PSTR = @import("../foundation.zig").PSTR; const PWSTR = @import("../foundation.zig").PWSTR; const SECURITY_ATTRIBUTES = @import("../security.zig").SECURITY_ATTRIBUTES; test { // The following '_ = <FuncPtrType>' lines are a workaround for https://github.com/ziglang/zig/issues/4476 if (@hasDecl(@This(), "PBAD_MEMORY_CALLBACK_ROUTINE")) { _ = PBAD_MEMORY_CALLBACK_ROUTINE; } if (@hasDecl(@This(), "PSECURE_MEMORY_CACHE_CALLBACK")) { _ = PSECURE_MEMORY_CACHE_CALLBACK; } @setEvalBranchQuota(comptime @import("std").meta.declarations(@This()).len * 3); // reference all the pub declarations if (!@import("builtin").is_test) return; inline for (comptime @import("std").meta.declarations(@This())) |decl| { if (decl.is_pub) { _ = @field(@This(), decl.name); } } } //-------------------------------------------------------------------------------- // Section: SubModules (1) //-------------------------------------------------------------------------------- pub const non_volatile = @import("memory/non_volatile.zig");
0
repos/capy/vendor/zigwin32/win32
repos/capy/vendor/zigwin32/win32/system/diagnostics.zig
//! NOTE: this file is autogenerated, DO NOT MODIFY pub const ceip = @import("diagnostics/ceip.zig"); pub const debug = @import("diagnostics/debug.zig"); pub const etw = @import("diagnostics/etw.zig"); pub const process_snapshotting = @import("diagnostics/process_snapshotting.zig"); pub const tool_help = @import("diagnostics/tool_help.zig"); test { @import("std").testing.refAllDecls(@This()); }
0
repos/capy/vendor/zigwin32/win32
repos/capy/vendor/zigwin32/win32/system/transaction_server.zig
//! NOTE: this file is autogenerated, DO NOT MODIFY //-------------------------------------------------------------------------------- // Section: Constants (0) //-------------------------------------------------------------------------------- //-------------------------------------------------------------------------------- // Section: Types (15) //-------------------------------------------------------------------------------- const CLSID_Catalog_Value = Guid.initString("6eb22881-8a19-11d0-81b6-00a0c9231c29"); pub const CLSID_Catalog = &CLSID_Catalog_Value; const CLSID_CatalogObject_Value = Guid.initString("6eb22882-8a19-11d0-81b6-00a0c9231c29"); pub const CLSID_CatalogObject = &CLSID_CatalogObject_Value; const CLSID_CatalogCollection_Value = Guid.initString("6eb22883-8a19-11d0-81b6-00a0c9231c29"); pub const CLSID_CatalogCollection = &CLSID_CatalogCollection_Value; const CLSID_ComponentUtil_Value = Guid.initString("6eb22884-8a19-11d0-81b6-00a0c9231c29"); pub const CLSID_ComponentUtil = &CLSID_ComponentUtil_Value; const CLSID_PackageUtil_Value = Guid.initString("6eb22885-8a19-11d0-81b6-00a0c9231c29"); pub const CLSID_PackageUtil = &CLSID_PackageUtil_Value; const CLSID_RemoteComponentUtil_Value = Guid.initString("6eb22886-8a19-11d0-81b6-00a0c9231c29"); pub const CLSID_RemoteComponentUtil = &CLSID_RemoteComponentUtil_Value; const CLSID_RoleAssociationUtil_Value = Guid.initString("6eb22887-8a19-11d0-81b6-00a0c9231c29"); pub const CLSID_RoleAssociationUtil = &CLSID_RoleAssociationUtil_Value; const IID_ICatalog_Value = Guid.initString("6eb22870-8a19-11d0-81b6-00a0c9231c29"); pub const IID_ICatalog = &IID_ICatalog_Value; pub const ICatalog = extern struct { pub const VTable = extern struct { base: IDispatch.VTable, GetCollection: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ICatalog, bstrCollName: ?BSTR, ppCatalogCollection: ?*?*IDispatch, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ICatalog, bstrCollName: ?BSTR, ppCatalogCollection: ?*?*IDispatch, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Connect: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ICatalog, bstrConnectString: ?BSTR, ppCatalogCollection: ?*?*IDispatch, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ICatalog, bstrConnectString: ?BSTR, ppCatalogCollection: ?*?*IDispatch, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_MajorVersion: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ICatalog, retval: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ICatalog, retval: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_MinorVersion: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ICatalog, retval: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ICatalog, retval: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IDispatch.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ICatalog_GetCollection(self: *const T, bstrCollName: ?BSTR, ppCatalogCollection: ?*?*IDispatch) HRESULT { return @as(*const ICatalog.VTable, @ptrCast(self.vtable)).GetCollection(@as(*const ICatalog, @ptrCast(self)), bstrCollName, ppCatalogCollection); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ICatalog_Connect(self: *const T, bstrConnectString: ?BSTR, ppCatalogCollection: ?*?*IDispatch) HRESULT { return @as(*const ICatalog.VTable, @ptrCast(self.vtable)).Connect(@as(*const ICatalog, @ptrCast(self)), bstrConnectString, ppCatalogCollection); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ICatalog_get_MajorVersion(self: *const T, retval: ?*i32) HRESULT { return @as(*const ICatalog.VTable, @ptrCast(self.vtable)).get_MajorVersion(@as(*const ICatalog, @ptrCast(self)), retval); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ICatalog_get_MinorVersion(self: *const T, retval: ?*i32) HRESULT { return @as(*const ICatalog.VTable, @ptrCast(self.vtable)).get_MinorVersion(@as(*const ICatalog, @ptrCast(self)), retval); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IComponentUtil_Value = Guid.initString("6eb22873-8a19-11d0-81b6-00a0c9231c29"); pub const IID_IComponentUtil = &IID_IComponentUtil_Value; pub const IComponentUtil = extern struct { pub const VTable = extern struct { base: IDispatch.VTable, InstallComponent: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IComponentUtil, bstrDLLFile: ?BSTR, bstrTypelibFile: ?BSTR, bstrProxyStubDLLFile: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IComponentUtil, bstrDLLFile: ?BSTR, bstrTypelibFile: ?BSTR, bstrProxyStubDLLFile: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, ImportComponent: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IComponentUtil, bstrCLSID: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IComponentUtil, bstrCLSID: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, ImportComponentByName: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IComponentUtil, bstrProgID: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IComponentUtil, bstrProgID: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetCLSIDs: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IComponentUtil, bstrDLLFile: ?BSTR, bstrTypelibFile: ?BSTR, aCLSIDs: ?*?*SAFEARRAY, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IComponentUtil, bstrDLLFile: ?BSTR, bstrTypelibFile: ?BSTR, aCLSIDs: ?*?*SAFEARRAY, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IDispatch.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IComponentUtil_InstallComponent(self: *const T, bstrDLLFile: ?BSTR, bstrTypelibFile: ?BSTR, bstrProxyStubDLLFile: ?BSTR) HRESULT { return @as(*const IComponentUtil.VTable, @ptrCast(self.vtable)).InstallComponent(@as(*const IComponentUtil, @ptrCast(self)), bstrDLLFile, bstrTypelibFile, bstrProxyStubDLLFile); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IComponentUtil_ImportComponent(self: *const T, bstrCLSID: ?BSTR) HRESULT { return @as(*const IComponentUtil.VTable, @ptrCast(self.vtable)).ImportComponent(@as(*const IComponentUtil, @ptrCast(self)), bstrCLSID); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IComponentUtil_ImportComponentByName(self: *const T, bstrProgID: ?BSTR) HRESULT { return @as(*const IComponentUtil.VTable, @ptrCast(self.vtable)).ImportComponentByName(@as(*const IComponentUtil, @ptrCast(self)), bstrProgID); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IComponentUtil_GetCLSIDs(self: *const T, bstrDLLFile: ?BSTR, bstrTypelibFile: ?BSTR, aCLSIDs: ?*?*SAFEARRAY) HRESULT { return @as(*const IComponentUtil.VTable, @ptrCast(self.vtable)).GetCLSIDs(@as(*const IComponentUtil, @ptrCast(self)), bstrDLLFile, bstrTypelibFile, aCLSIDs); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IPackageUtil_Value = Guid.initString("6eb22874-8a19-11d0-81b6-00a0c9231c29"); pub const IID_IPackageUtil = &IID_IPackageUtil_Value; pub const IPackageUtil = extern struct { pub const VTable = extern struct { base: IDispatch.VTable, InstallPackage: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IPackageUtil, bstrPackageFile: ?BSTR, bstrInstallPath: ?BSTR, lOptions: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IPackageUtil, bstrPackageFile: ?BSTR, bstrInstallPath: ?BSTR, lOptions: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, ExportPackage: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IPackageUtil, bstrPackageID: ?BSTR, bstrPackageFile: ?BSTR, lOptions: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IPackageUtil, bstrPackageID: ?BSTR, bstrPackageFile: ?BSTR, lOptions: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, ShutdownPackage: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IPackageUtil, bstrPackageID: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IPackageUtil, bstrPackageID: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IDispatch.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPackageUtil_InstallPackage(self: *const T, bstrPackageFile: ?BSTR, bstrInstallPath: ?BSTR, lOptions: i32) HRESULT { return @as(*const IPackageUtil.VTable, @ptrCast(self.vtable)).InstallPackage(@as(*const IPackageUtil, @ptrCast(self)), bstrPackageFile, bstrInstallPath, lOptions); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPackageUtil_ExportPackage(self: *const T, bstrPackageID: ?BSTR, bstrPackageFile: ?BSTR, lOptions: i32) HRESULT { return @as(*const IPackageUtil.VTable, @ptrCast(self.vtable)).ExportPackage(@as(*const IPackageUtil, @ptrCast(self)), bstrPackageID, bstrPackageFile, lOptions); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPackageUtil_ShutdownPackage(self: *const T, bstrPackageID: ?BSTR) HRESULT { return @as(*const IPackageUtil.VTable, @ptrCast(self.vtable)).ShutdownPackage(@as(*const IPackageUtil, @ptrCast(self)), bstrPackageID); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IRemoteComponentUtil_Value = Guid.initString("6eb22875-8a19-11d0-81b6-00a0c9231c29"); pub const IID_IRemoteComponentUtil = &IID_IRemoteComponentUtil_Value; pub const IRemoteComponentUtil = extern struct { pub const VTable = extern struct { base: IDispatch.VTable, InstallRemoteComponent: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IRemoteComponentUtil, bstrServer: ?BSTR, bstrPackageID: ?BSTR, bstrCLSID: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IRemoteComponentUtil, bstrServer: ?BSTR, bstrPackageID: ?BSTR, bstrCLSID: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, InstallRemoteComponentByName: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IRemoteComponentUtil, bstrServer: ?BSTR, bstrPackageName: ?BSTR, bstrProgID: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IRemoteComponentUtil, bstrServer: ?BSTR, bstrPackageName: ?BSTR, bstrProgID: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IDispatch.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRemoteComponentUtil_InstallRemoteComponent(self: *const T, bstrServer: ?BSTR, bstrPackageID: ?BSTR, bstrCLSID: ?BSTR) HRESULT { return @as(*const IRemoteComponentUtil.VTable, @ptrCast(self.vtable)).InstallRemoteComponent(@as(*const IRemoteComponentUtil, @ptrCast(self)), bstrServer, bstrPackageID, bstrCLSID); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRemoteComponentUtil_InstallRemoteComponentByName(self: *const T, bstrServer: ?BSTR, bstrPackageName: ?BSTR, bstrProgID: ?BSTR) HRESULT { return @as(*const IRemoteComponentUtil.VTable, @ptrCast(self.vtable)).InstallRemoteComponentByName(@as(*const IRemoteComponentUtil, @ptrCast(self)), bstrServer, bstrPackageName, bstrProgID); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IRoleAssociationUtil_Value = Guid.initString("6eb22876-8a19-11d0-81b6-00a0c9231c29"); pub const IID_IRoleAssociationUtil = &IID_IRoleAssociationUtil_Value; pub const IRoleAssociationUtil = extern struct { pub const VTable = extern struct { base: IDispatch.VTable, AssociateRole: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IRoleAssociationUtil, bstrRoleID: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IRoleAssociationUtil, bstrRoleID: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, AssociateRoleByName: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IRoleAssociationUtil, bstrRoleName: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IRoleAssociationUtil, bstrRoleName: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IDispatch.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRoleAssociationUtil_AssociateRole(self: *const T, bstrRoleID: ?BSTR) HRESULT { return @as(*const IRoleAssociationUtil.VTable, @ptrCast(self.vtable)).AssociateRole(@as(*const IRoleAssociationUtil, @ptrCast(self)), bstrRoleID); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRoleAssociationUtil_AssociateRoleByName(self: *const T, bstrRoleName: ?BSTR) HRESULT { return @as(*const IRoleAssociationUtil.VTable, @ptrCast(self.vtable)).AssociateRoleByName(@as(*const IRoleAssociationUtil, @ptrCast(self)), bstrRoleName); } }; } pub usingnamespace MethodMixin(@This()); }; pub const __MIDL___MIDL_itf_mtxadmin_0107_0001 = enum(i32) { s = 1, }; pub const mtsInstallUsers = __MIDL___MIDL_itf_mtxadmin_0107_0001.s; pub const __MIDL___MIDL_itf_mtxadmin_0107_0002 = enum(i32) { s = 1, }; pub const mtsExportUsers = __MIDL___MIDL_itf_mtxadmin_0107_0002.s; pub const __MIDL___MIDL_itf_mtxadmin_0107_0003 = enum(i32) { ObjectErrors = -2146368511, ObjectInvalid = -2146368510, KeyMissing = -2146368509, AlreadyInstalled = -2146368508, DownloadFailed = -2146368507, PDFWriteFail = -2146368505, PDFReadFail = -2146368504, PDFVersion = -2146368503, CoReqCompInstalled = -2146368496, BadPath = -2146368502, PackageExists = -2146368501, RoleExists = -2146368500, CantCopyFile = -2146368499, NoTypeLib = -2146368498, NoUser = -2146368497, // InvalidUserids = -2146368496, this enum value conflicts with CoReqCompInstalled NoRegistryCLSID = -2146368495, BadRegistryProgID = -2146368494, AuthenticationLevel = -2146368493, UserPasswdNotValid = -2146368492, NoRegistryRead = -2146368491, NoRegistryWrite = -2146368490, NoRegistryRepair = -2146368489, CLSIDOrIIDMismatch = -2146368488, RemoteInterface = -2146368487, DllRegisterServer = -2146368486, NoServerShare = -2146368485, NoAccessToUNC = -2146368484, DllLoadFailed = -2146368483, BadRegistryLibID = -2146368482, PackDirNotFound = -2146368481, TreatAs = -2146368480, BadForward = -2146368479, BadIID = -2146368478, RegistrarFailed = -2146368477, CompFileDoesNotExist = -2146368476, CompFileLoadDLLFail = -2146368475, CompFileGetClassObj = -2146368474, CompFileClassNotAvail = -2146368473, CompFileBadTLB = -2146368472, CompFileNotInstallable = -2146368471, NotChangeable = -2146368470, NotDeletable = -2146368469, Session = -2146368468, CompFileNoRegistrar = -2146368460, }; pub const mtsErrObjectErrors = __MIDL___MIDL_itf_mtxadmin_0107_0003.ObjectErrors; pub const mtsErrObjectInvalid = __MIDL___MIDL_itf_mtxadmin_0107_0003.ObjectInvalid; pub const mtsErrKeyMissing = __MIDL___MIDL_itf_mtxadmin_0107_0003.KeyMissing; pub const mtsErrAlreadyInstalled = __MIDL___MIDL_itf_mtxadmin_0107_0003.AlreadyInstalled; pub const mtsErrDownloadFailed = __MIDL___MIDL_itf_mtxadmin_0107_0003.DownloadFailed; pub const mtsErrPDFWriteFail = __MIDL___MIDL_itf_mtxadmin_0107_0003.PDFWriteFail; pub const mtsErrPDFReadFail = __MIDL___MIDL_itf_mtxadmin_0107_0003.PDFReadFail; pub const mtsErrPDFVersion = __MIDL___MIDL_itf_mtxadmin_0107_0003.PDFVersion; pub const mtsErrCoReqCompInstalled = __MIDL___MIDL_itf_mtxadmin_0107_0003.CoReqCompInstalled; pub const mtsErrBadPath = __MIDL___MIDL_itf_mtxadmin_0107_0003.BadPath; pub const mtsErrPackageExists = __MIDL___MIDL_itf_mtxadmin_0107_0003.PackageExists; pub const mtsErrRoleExists = __MIDL___MIDL_itf_mtxadmin_0107_0003.RoleExists; pub const mtsErrCantCopyFile = __MIDL___MIDL_itf_mtxadmin_0107_0003.CantCopyFile; pub const mtsErrNoTypeLib = __MIDL___MIDL_itf_mtxadmin_0107_0003.NoTypeLib; pub const mtsErrNoUser = __MIDL___MIDL_itf_mtxadmin_0107_0003.NoUser; pub const mtsErrInvalidUserids = __MIDL___MIDL_itf_mtxadmin_0107_0003.CoReqCompInstalled; pub const mtsErrNoRegistryCLSID = __MIDL___MIDL_itf_mtxadmin_0107_0003.NoRegistryCLSID; pub const mtsErrBadRegistryProgID = __MIDL___MIDL_itf_mtxadmin_0107_0003.BadRegistryProgID; pub const mtsErrAuthenticationLevel = __MIDL___MIDL_itf_mtxadmin_0107_0003.AuthenticationLevel; pub const mtsErrUserPasswdNotValid = __MIDL___MIDL_itf_mtxadmin_0107_0003.UserPasswdNotValid; pub const mtsErrNoRegistryRead = __MIDL___MIDL_itf_mtxadmin_0107_0003.NoRegistryRead; pub const mtsErrNoRegistryWrite = __MIDL___MIDL_itf_mtxadmin_0107_0003.NoRegistryWrite; pub const mtsErrNoRegistryRepair = __MIDL___MIDL_itf_mtxadmin_0107_0003.NoRegistryRepair; pub const mtsErrCLSIDOrIIDMismatch = __MIDL___MIDL_itf_mtxadmin_0107_0003.CLSIDOrIIDMismatch; pub const mtsErrRemoteInterface = __MIDL___MIDL_itf_mtxadmin_0107_0003.RemoteInterface; pub const mtsErrDllRegisterServer = __MIDL___MIDL_itf_mtxadmin_0107_0003.DllRegisterServer; pub const mtsErrNoServerShare = __MIDL___MIDL_itf_mtxadmin_0107_0003.NoServerShare; pub const mtsErrNoAccessToUNC = __MIDL___MIDL_itf_mtxadmin_0107_0003.NoAccessToUNC; pub const mtsErrDllLoadFailed = __MIDL___MIDL_itf_mtxadmin_0107_0003.DllLoadFailed; pub const mtsErrBadRegistryLibID = __MIDL___MIDL_itf_mtxadmin_0107_0003.BadRegistryLibID; pub const mtsErrPackDirNotFound = __MIDL___MIDL_itf_mtxadmin_0107_0003.PackDirNotFound; pub const mtsErrTreatAs = __MIDL___MIDL_itf_mtxadmin_0107_0003.TreatAs; pub const mtsErrBadForward = __MIDL___MIDL_itf_mtxadmin_0107_0003.BadForward; pub const mtsErrBadIID = __MIDL___MIDL_itf_mtxadmin_0107_0003.BadIID; pub const mtsErrRegistrarFailed = __MIDL___MIDL_itf_mtxadmin_0107_0003.RegistrarFailed; pub const mtsErrCompFileDoesNotExist = __MIDL___MIDL_itf_mtxadmin_0107_0003.CompFileDoesNotExist; pub const mtsErrCompFileLoadDLLFail = __MIDL___MIDL_itf_mtxadmin_0107_0003.CompFileLoadDLLFail; pub const mtsErrCompFileGetClassObj = __MIDL___MIDL_itf_mtxadmin_0107_0003.CompFileGetClassObj; pub const mtsErrCompFileClassNotAvail = __MIDL___MIDL_itf_mtxadmin_0107_0003.CompFileClassNotAvail; pub const mtsErrCompFileBadTLB = __MIDL___MIDL_itf_mtxadmin_0107_0003.CompFileBadTLB; pub const mtsErrCompFileNotInstallable = __MIDL___MIDL_itf_mtxadmin_0107_0003.CompFileNotInstallable; pub const mtsErrNotChangeable = __MIDL___MIDL_itf_mtxadmin_0107_0003.NotChangeable; pub const mtsErrNotDeletable = __MIDL___MIDL_itf_mtxadmin_0107_0003.NotDeletable; pub const mtsErrSession = __MIDL___MIDL_itf_mtxadmin_0107_0003.Session; pub const mtsErrCompFileNoRegistrar = __MIDL___MIDL_itf_mtxadmin_0107_0003.CompFileNoRegistrar; //-------------------------------------------------------------------------------- // Section: Functions (0) //-------------------------------------------------------------------------------- //-------------------------------------------------------------------------------- // Section: Unicode Aliases (0) //-------------------------------------------------------------------------------- const thismodule = @This(); pub usingnamespace switch (@import("../zig.zig").unicode_mode) { .ansi => struct {}, .wide => struct {}, .unspecified => if (@import("builtin").is_test) struct {} else struct {}, }; //-------------------------------------------------------------------------------- // Section: Imports (5) //-------------------------------------------------------------------------------- const Guid = @import("../zig.zig").Guid; const BSTR = @import("../foundation.zig").BSTR; const HRESULT = @import("../foundation.zig").HRESULT; const IDispatch = @import("../system/com.zig").IDispatch; const SAFEARRAY = @import("../system/com.zig").SAFEARRAY; test { @setEvalBranchQuota(comptime @import("std").meta.declarations(@This()).len * 3); // reference all the pub declarations if (!@import("builtin").is_test) return; inline for (comptime @import("std").meta.declarations(@This())) |decl| { if (decl.is_pub) { _ = @field(@This(), decl.name); } } }
0
repos/capy/vendor/zigwin32/win32
repos/capy/vendor/zigwin32/win32/system/win_rt.zig
//! NOTE: this file is autogenerated, DO NOT MODIFY //-------------------------------------------------------------------------------- // Section: Constants (4) //-------------------------------------------------------------------------------- pub const MAX_ERROR_MESSAGE_CHARS = @as(u32, 512); pub const CastingSourceInfo_Property_PreferredSourceUriScheme = "PreferredSourceUriScheme"; pub const CastingSourceInfo_Property_CastingTypes = "CastingTypes"; pub const CastingSourceInfo_Property_ProtectedMedia = "ProtectedMedia"; //-------------------------------------------------------------------------------- // Section: Types (59) //-------------------------------------------------------------------------------- pub const EventRegistrationToken = extern struct { value: i64, }; // TODO: this type has a FreeFunc 'WindowsDeleteString', what can Zig do with this information? pub const HSTRING = *opaque {}; pub const HSTRING_BUFFER = *opaque {}; pub const ROPARAMIIDHANDLE = isize; pub const APARTMENT_SHUTDOWN_REGISTRATION_COOKIE = isize; pub const ACTIVATIONTYPE = enum(i32) { UNCATEGORIZED = 0, FROM_MONIKER = 1, FROM_DATA = 2, FROM_STORAGE = 4, FROM_STREAM = 8, FROM_FILE = 16, }; pub const ACTIVATIONTYPE_UNCATEGORIZED = ACTIVATIONTYPE.UNCATEGORIZED; pub const ACTIVATIONTYPE_FROM_MONIKER = ACTIVATIONTYPE.FROM_MONIKER; pub const ACTIVATIONTYPE_FROM_DATA = ACTIVATIONTYPE.FROM_DATA; pub const ACTIVATIONTYPE_FROM_STORAGE = ACTIVATIONTYPE.FROM_STORAGE; pub const ACTIVATIONTYPE_FROM_STREAM = ACTIVATIONTYPE.FROM_STREAM; pub const ACTIVATIONTYPE_FROM_FILE = ACTIVATIONTYPE.FROM_FILE; // TODO: this type is limited to platform 'windows8.1' const IID_IAgileReference_Value = Guid.initString("c03f6a43-65a4-9818-987e-e0b810d2a6f2"); pub const IID_IAgileReference = &IID_IAgileReference_Value; pub const IAgileReference = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, Resolve: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IAgileReference, riid: ?*const Guid, ppvObjectReference: ?*?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IAgileReference, riid: ?*const Guid, ppvObjectReference: ?*?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IAgileReference_Resolve(self: *const T, riid: ?*const Guid, ppvObjectReference: ?*?*anyopaque) HRESULT { return @as(*const IAgileReference.VTable, @ptrCast(self.vtable)).Resolve(@as(*const IAgileReference, @ptrCast(self)), riid, ppvObjectReference); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows8.0' const IID_IApartmentShutdown_Value = Guid.initString("a2f05a09-27a2-42b5-bc0e-ac163ef49d9b"); pub const IID_IApartmentShutdown = &IID_IApartmentShutdown_Value; pub const IApartmentShutdown = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, OnUninitialize: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IApartmentShutdown, ui64ApartmentIdentifier: u64, ) callconv(@import("std").os.windows.WINAPI) void, else => *const fn ( self: *const IApartmentShutdown, ui64ApartmentIdentifier: u64, ) callconv(@import("std").os.windows.WINAPI) void, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IApartmentShutdown_OnUninitialize(self: *const T, ui64ApartmentIdentifier: u64) void { return @as(*const IApartmentShutdown.VTable, @ptrCast(self.vtable)).OnUninitialize(@as(*const IApartmentShutdown, @ptrCast(self)), ui64ApartmentIdentifier); } }; } pub usingnamespace MethodMixin(@This()); }; pub const ServerInformation = extern struct { dwServerPid: u32, dwServerTid: u32, ui64ServerAddress: u64, }; pub const AgileReferenceOptions = enum(i32) { FAULT = 0, LAYEDMARSHAL = 1, }; pub const AGILEREFERENCE_DEFAULT = AgileReferenceOptions.FAULT; pub const AGILEREFERENCE_DELAYEDMARSHAL = AgileReferenceOptions.LAYEDMARSHAL; // TODO: this type is limited to platform 'windows10.0.15063' const IID_ISpatialInteractionManagerInterop_Value = Guid.initString("5c4ee536-6a98-4b86-a170-587013d6fd4b"); pub const IID_ISpatialInteractionManagerInterop = &IID_ISpatialInteractionManagerInterop_Value; pub const ISpatialInteractionManagerInterop = extern struct { pub const VTable = extern struct { base: IInspectable.VTable, GetForWindow: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ISpatialInteractionManagerInterop, window: ?HWND, riid: ?*const Guid, spatialInteractionManager: ?*?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ISpatialInteractionManagerInterop, window: ?HWND, riid: ?*const Guid, spatialInteractionManager: ?*?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IInspectable.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISpatialInteractionManagerInterop_GetForWindow(self: *const T, window: ?HWND, riid: ?*const Guid, spatialInteractionManager: ?*?*anyopaque) HRESULT { return @as(*const ISpatialInteractionManagerInterop.VTable, @ptrCast(self.vtable)).GetForWindow(@as(*const ISpatialInteractionManagerInterop, @ptrCast(self)), window, riid, spatialInteractionManager); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows10.0.15063' const IID_IHolographicSpaceInterop_Value = Guid.initString("5c4ee536-6a98-4b86-a170-587013d6fd4b"); pub const IID_IHolographicSpaceInterop = &IID_IHolographicSpaceInterop_Value; pub const IHolographicSpaceInterop = extern struct { pub const VTable = extern struct { base: IInspectable.VTable, CreateForWindow: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IHolographicSpaceInterop, window: ?HWND, riid: ?*const Guid, holographicSpace: ?*?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IHolographicSpaceInterop, window: ?HWND, riid: ?*const Guid, holographicSpace: ?*?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IInspectable.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IHolographicSpaceInterop_CreateForWindow(self: *const T, window: ?HWND, riid: ?*const Guid, holographicSpace: ?*?*anyopaque) HRESULT { return @as(*const IHolographicSpaceInterop.VTable, @ptrCast(self.vtable)).CreateForWindow(@as(*const IHolographicSpaceInterop, @ptrCast(self)), window, riid, holographicSpace); } }; } pub usingnamespace MethodMixin(@This()); }; pub const HSTRING_HEADER = extern struct { Reserved: extern union { Reserved1: ?*anyopaque, Reserved2: [24]CHAR, }, }; pub const TrustLevel = enum(i32) { BaseTrust = 0, PartialTrust = 1, FullTrust = 2, }; pub const BaseTrust = TrustLevel.BaseTrust; pub const PartialTrust = TrustLevel.PartialTrust; pub const FullTrust = TrustLevel.FullTrust; // TODO: this type is limited to platform 'windows8.0' const IID_IInspectable_Value = Guid.initString("af86e2e0-b12d-4c6a-9c5a-d7aa65101e90"); pub const IID_IInspectable = &IID_IInspectable_Value; pub const IInspectable = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, GetIids: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IInspectable, iidCount: ?*u32, iids: ?[*]?*Guid, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IInspectable, iidCount: ?*u32, iids: ?[*]?*Guid, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetRuntimeClassName: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IInspectable, className: ?*?HSTRING, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IInspectable, className: ?*?HSTRING, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetTrustLevel: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IInspectable, trustLevel: ?*TrustLevel, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IInspectable, trustLevel: ?*TrustLevel, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IInspectable_GetIids(self: *const T, iidCount: ?*u32, iids: ?[*]?*Guid) HRESULT { return @as(*const IInspectable.VTable, @ptrCast(self.vtable)).GetIids(@as(*const IInspectable, @ptrCast(self)), iidCount, iids); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IInspectable_GetRuntimeClassName(self: *const T, className: ?*?HSTRING) HRESULT { return @as(*const IInspectable.VTable, @ptrCast(self.vtable)).GetRuntimeClassName(@as(*const IInspectable, @ptrCast(self)), className); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IInspectable_GetTrustLevel(self: *const T, trustLevel: ?*TrustLevel) HRESULT { return @as(*const IInspectable.VTable, @ptrCast(self.vtable)).GetTrustLevel(@as(*const IInspectable, @ptrCast(self)), trustLevel); } }; } pub usingnamespace MethodMixin(@This()); }; pub const PINSPECT_HSTRING_CALLBACK = switch (@import("builtin").zig_backend) { .stage1 => fn ( context: ?*anyopaque, readAddress: usize, length: u32, buffer: [*:0]u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( context: ?*anyopaque, readAddress: usize, length: u32, buffer: [*:0]u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }; pub const PINSPECT_HSTRING_CALLBACK2 = switch (@import("builtin").zig_backend) { .stage1 => fn ( context: ?*anyopaque, readAddress: u64, length: u32, buffer: [*:0]u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( context: ?*anyopaque, readAddress: u64, length: u32, buffer: [*:0]u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }; pub const DISPATCHERQUEUE_THREAD_APARTMENTTYPE = enum(i32) { NONE = 0, ASTA = 1, STA = 2, }; pub const DQTAT_COM_NONE = DISPATCHERQUEUE_THREAD_APARTMENTTYPE.NONE; pub const DQTAT_COM_ASTA = DISPATCHERQUEUE_THREAD_APARTMENTTYPE.ASTA; pub const DQTAT_COM_STA = DISPATCHERQUEUE_THREAD_APARTMENTTYPE.STA; pub const DISPATCHERQUEUE_THREAD_TYPE = enum(i32) { DEDICATED = 1, CURRENT = 2, }; pub const DQTYPE_THREAD_DEDICATED = DISPATCHERQUEUE_THREAD_TYPE.DEDICATED; pub const DQTYPE_THREAD_CURRENT = DISPATCHERQUEUE_THREAD_TYPE.CURRENT; pub const DispatcherQueueOptions = extern struct { dwSize: u32, threadType: DISPATCHERQUEUE_THREAD_TYPE, apartmentType: DISPATCHERQUEUE_THREAD_APARTMENTTYPE, }; const IID_IAccountsSettingsPaneInterop_Value = Guid.initString("d3ee12ad-3865-4362-9746-b75a682df0e6"); pub const IID_IAccountsSettingsPaneInterop = &IID_IAccountsSettingsPaneInterop_Value; pub const IAccountsSettingsPaneInterop = extern struct { pub const VTable = extern struct { base: IInspectable.VTable, GetForWindow: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IAccountsSettingsPaneInterop, appWindow: ?HWND, riid: ?*const Guid, accountsSettingsPane: ?*?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IAccountsSettingsPaneInterop, appWindow: ?HWND, riid: ?*const Guid, accountsSettingsPane: ?*?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, ShowManageAccountsForWindowAsync: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IAccountsSettingsPaneInterop, appWindow: ?HWND, riid: ?*const Guid, asyncAction: ?*?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IAccountsSettingsPaneInterop, appWindow: ?HWND, riid: ?*const Guid, asyncAction: ?*?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, ShowAddAccountForWindowAsync: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IAccountsSettingsPaneInterop, appWindow: ?HWND, riid: ?*const Guid, asyncAction: ?*?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IAccountsSettingsPaneInterop, appWindow: ?HWND, riid: ?*const Guid, asyncAction: ?*?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IInspectable.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IAccountsSettingsPaneInterop_GetForWindow(self: *const T, appWindow: ?HWND, riid: ?*const Guid, accountsSettingsPane: ?*?*anyopaque) HRESULT { return @as(*const IAccountsSettingsPaneInterop.VTable, @ptrCast(self.vtable)).GetForWindow(@as(*const IAccountsSettingsPaneInterop, @ptrCast(self)), appWindow, riid, accountsSettingsPane); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IAccountsSettingsPaneInterop_ShowManageAccountsForWindowAsync(self: *const T, appWindow: ?HWND, riid: ?*const Guid, asyncAction: ?*?*anyopaque) HRESULT { return @as(*const IAccountsSettingsPaneInterop.VTable, @ptrCast(self.vtable)).ShowManageAccountsForWindowAsync(@as(*const IAccountsSettingsPaneInterop, @ptrCast(self)), appWindow, riid, asyncAction); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IAccountsSettingsPaneInterop_ShowAddAccountForWindowAsync(self: *const T, appWindow: ?HWND, riid: ?*const Guid, asyncAction: ?*?*anyopaque) HRESULT { return @as(*const IAccountsSettingsPaneInterop.VTable, @ptrCast(self.vtable)).ShowAddAccountForWindowAsync(@as(*const IAccountsSettingsPaneInterop, @ptrCast(self)), appWindow, riid, asyncAction); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IAppServiceConnectionExtendedExecution_Value = Guid.initString("65219584-f9cb-4ae3-81f9-a28a6ca450d9"); pub const IID_IAppServiceConnectionExtendedExecution = &IID_IAppServiceConnectionExtendedExecution_Value; pub const IAppServiceConnectionExtendedExecution = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, OpenForExtendedExecutionAsync: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IAppServiceConnectionExtendedExecution, riid: ?*const Guid, operation: ?*?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IAppServiceConnectionExtendedExecution, riid: ?*const Guid, operation: ?*?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IAppServiceConnectionExtendedExecution_OpenForExtendedExecutionAsync(self: *const T, riid: ?*const Guid, operation: ?*?*anyopaque) HRESULT { return @as(*const IAppServiceConnectionExtendedExecution.VTable, @ptrCast(self.vtable)).OpenForExtendedExecutionAsync(@as(*const IAppServiceConnectionExtendedExecution, @ptrCast(self)), riid, operation); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_ICorrelationVectorSource_Value = Guid.initString("152b8a3b-b9b9-4685-b56e-974847bc7545"); pub const IID_ICorrelationVectorSource = &IID_ICorrelationVectorSource_Value; pub const ICorrelationVectorSource = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, // TODO: this function has a "SpecialName", should Zig do anything with this? get_CorrelationVector: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ICorrelationVectorSource, cv: ?*?HSTRING, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ICorrelationVectorSource, cv: ?*?HSTRING, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ICorrelationVectorSource_get_CorrelationVector(self: *const T, cv: ?*?HSTRING) HRESULT { return @as(*const ICorrelationVectorSource.VTable, @ptrCast(self.vtable)).get_CorrelationVector(@as(*const ICorrelationVectorSource, @ptrCast(self)), cv); } }; } pub usingnamespace MethodMixin(@This()); }; pub const CASTING_CONNECTION_ERROR_STATUS = enum(i32) { SUCCEEDED = 0, DEVICE_DID_NOT_RESPOND = 1, DEVICE_ERROR = 2, DEVICE_LOCKED = 3, PROTECTED_PLAYBACK_FAILED = 4, INVALID_CASTING_SOURCE = 5, UNKNOWN = 6, }; pub const CASTING_CONNECTION_ERROR_STATUS_SUCCEEDED = CASTING_CONNECTION_ERROR_STATUS.SUCCEEDED; pub const CASTING_CONNECTION_ERROR_STATUS_DEVICE_DID_NOT_RESPOND = CASTING_CONNECTION_ERROR_STATUS.DEVICE_DID_NOT_RESPOND; pub const CASTING_CONNECTION_ERROR_STATUS_DEVICE_ERROR = CASTING_CONNECTION_ERROR_STATUS.DEVICE_ERROR; pub const CASTING_CONNECTION_ERROR_STATUS_DEVICE_LOCKED = CASTING_CONNECTION_ERROR_STATUS.DEVICE_LOCKED; pub const CASTING_CONNECTION_ERROR_STATUS_PROTECTED_PLAYBACK_FAILED = CASTING_CONNECTION_ERROR_STATUS.PROTECTED_PLAYBACK_FAILED; pub const CASTING_CONNECTION_ERROR_STATUS_INVALID_CASTING_SOURCE = CASTING_CONNECTION_ERROR_STATUS.INVALID_CASTING_SOURCE; pub const CASTING_CONNECTION_ERROR_STATUS_UNKNOWN = CASTING_CONNECTION_ERROR_STATUS.UNKNOWN; pub const CASTING_CONNECTION_STATE = enum(i32) { DISCONNECTED = 0, CONNECTED = 1, RENDERING = 2, DISCONNECTING = 3, CONNECTING = 4, }; pub const CASTING_CONNECTION_STATE_DISCONNECTED = CASTING_CONNECTION_STATE.DISCONNECTED; pub const CASTING_CONNECTION_STATE_CONNECTED = CASTING_CONNECTION_STATE.CONNECTED; pub const CASTING_CONNECTION_STATE_RENDERING = CASTING_CONNECTION_STATE.RENDERING; pub const CASTING_CONNECTION_STATE_DISCONNECTING = CASTING_CONNECTION_STATE.DISCONNECTING; pub const CASTING_CONNECTION_STATE_CONNECTING = CASTING_CONNECTION_STATE.CONNECTING; const IID_ICastingEventHandler_Value = Guid.initString("c79a6cb7-bebd-47a6-a2ad-4d45ad79c7bc"); pub const IID_ICastingEventHandler = &IID_ICastingEventHandler_Value; pub const ICastingEventHandler = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, OnStateChanged: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ICastingEventHandler, newState: CASTING_CONNECTION_STATE, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ICastingEventHandler, newState: CASTING_CONNECTION_STATE, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, OnError: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ICastingEventHandler, errorStatus: CASTING_CONNECTION_ERROR_STATUS, errorMessage: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ICastingEventHandler, errorStatus: CASTING_CONNECTION_ERROR_STATUS, errorMessage: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ICastingEventHandler_OnStateChanged(self: *const T, newState: CASTING_CONNECTION_STATE) HRESULT { return @as(*const ICastingEventHandler.VTable, @ptrCast(self.vtable)).OnStateChanged(@as(*const ICastingEventHandler, @ptrCast(self)), newState); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ICastingEventHandler_OnError(self: *const T, errorStatus: CASTING_CONNECTION_ERROR_STATUS, errorMessage: ?[*:0]const u16) HRESULT { return @as(*const ICastingEventHandler.VTable, @ptrCast(self.vtable)).OnError(@as(*const ICastingEventHandler, @ptrCast(self)), errorStatus, errorMessage); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_ICastingController_Value = Guid.initString("f0a56423-a664-4fbd-8b43-409a45e8d9a1"); pub const IID_ICastingController = &IID_ICastingController_Value; pub const ICastingController = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, Initialize: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ICastingController, castingEngine: ?*IUnknown, castingSource: ?*IUnknown, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ICastingController, castingEngine: ?*IUnknown, castingSource: ?*IUnknown, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Connect: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ICastingController, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ICastingController, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Disconnect: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ICastingController, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ICastingController, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Advise: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ICastingController, eventHandler: ?*ICastingEventHandler, cookie: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ICastingController, eventHandler: ?*ICastingEventHandler, cookie: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, UnAdvise: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ICastingController, cookie: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ICastingController, cookie: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ICastingController_Initialize(self: *const T, castingEngine: ?*IUnknown, castingSource: ?*IUnknown) HRESULT { return @as(*const ICastingController.VTable, @ptrCast(self.vtable)).Initialize(@as(*const ICastingController, @ptrCast(self)), castingEngine, castingSource); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ICastingController_Connect(self: *const T) HRESULT { return @as(*const ICastingController.VTable, @ptrCast(self.vtable)).Connect(@as(*const ICastingController, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ICastingController_Disconnect(self: *const T) HRESULT { return @as(*const ICastingController.VTable, @ptrCast(self.vtable)).Disconnect(@as(*const ICastingController, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ICastingController_Advise(self: *const T, eventHandler: ?*ICastingEventHandler, cookie: ?*u32) HRESULT { return @as(*const ICastingController.VTable, @ptrCast(self.vtable)).Advise(@as(*const ICastingController, @ptrCast(self)), eventHandler, cookie); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ICastingController_UnAdvise(self: *const T, cookie: u32) HRESULT { return @as(*const ICastingController.VTable, @ptrCast(self.vtable)).UnAdvise(@as(*const ICastingController, @ptrCast(self)), cookie); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_ICastingSourceInfo_Value = Guid.initString("45101ab7-7c3a-4bce-9500-12c09024b298"); pub const IID_ICastingSourceInfo = &IID_ICastingSourceInfo_Value; pub const ICastingSourceInfo = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, GetController: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ICastingSourceInfo, controller: ?*?*ICastingController, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ICastingSourceInfo, controller: ?*?*ICastingController, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetProperties: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ICastingSourceInfo, props: ?*?*INamedPropertyStore, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ICastingSourceInfo, props: ?*?*INamedPropertyStore, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ICastingSourceInfo_GetController(self: *const T, controller: ?*?*ICastingController) HRESULT { return @as(*const ICastingSourceInfo.VTable, @ptrCast(self.vtable)).GetController(@as(*const ICastingSourceInfo, @ptrCast(self)), controller); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ICastingSourceInfo_GetProperties(self: *const T, props: ?*?*INamedPropertyStore) HRESULT { return @as(*const ICastingSourceInfo.VTable, @ptrCast(self.vtable)).GetProperties(@as(*const ICastingSourceInfo, @ptrCast(self)), props); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IDragDropManagerInterop_Value = Guid.initString("5ad8cba7-4c01-4dac-9074-827894292d63"); pub const IID_IDragDropManagerInterop = &IID_IDragDropManagerInterop_Value; pub const IDragDropManagerInterop = extern struct { pub const VTable = extern struct { base: IInspectable.VTable, GetForWindow: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDragDropManagerInterop, hwnd: ?HWND, riid: ?*const Guid, ppv: ?*?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDragDropManagerInterop, hwnd: ?HWND, riid: ?*const Guid, ppv: ?*?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IInspectable.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDragDropManagerInterop_GetForWindow(self: *const T, hwnd: ?HWND, riid: ?*const Guid, ppv: ?*?*anyopaque) HRESULT { return @as(*const IDragDropManagerInterop.VTable, @ptrCast(self.vtable)).GetForWindow(@as(*const IDragDropManagerInterop, @ptrCast(self)), hwnd, riid, ppv); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows10.0.14393' const IID_IInputPaneInterop_Value = Guid.initString("75cf2c57-9195-4931-8332-f0b409e916af"); pub const IID_IInputPaneInterop = &IID_IInputPaneInterop_Value; pub const IInputPaneInterop = extern struct { pub const VTable = extern struct { base: IInspectable.VTable, GetForWindow: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IInputPaneInterop, appWindow: ?HWND, riid: ?*const Guid, inputPane: ?*?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IInputPaneInterop, appWindow: ?HWND, riid: ?*const Guid, inputPane: ?*?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IInspectable.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IInputPaneInterop_GetForWindow(self: *const T, appWindow: ?HWND, riid: ?*const Guid, inputPane: ?*?*anyopaque) HRESULT { return @as(*const IInputPaneInterop.VTable, @ptrCast(self.vtable)).GetForWindow(@as(*const IInputPaneInterop, @ptrCast(self)), appWindow, riid, inputPane); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows8.0' const IID_IPlayToManagerInterop_Value = Guid.initString("24394699-1f2c-4eb3-8cd7-0ec1da42a540"); pub const IID_IPlayToManagerInterop = &IID_IPlayToManagerInterop_Value; pub const IPlayToManagerInterop = extern struct { pub const VTable = extern struct { base: IInspectable.VTable, GetForWindow: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IPlayToManagerInterop, appWindow: ?HWND, riid: ?*const Guid, playToManager: ?*?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IPlayToManagerInterop, appWindow: ?HWND, riid: ?*const Guid, playToManager: ?*?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, ShowPlayToUIForWindow: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IPlayToManagerInterop, appWindow: ?HWND, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IPlayToManagerInterop, appWindow: ?HWND, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IInspectable.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPlayToManagerInterop_GetForWindow(self: *const T, appWindow: ?HWND, riid: ?*const Guid, playToManager: ?*?*anyopaque) HRESULT { return @as(*const IPlayToManagerInterop.VTable, @ptrCast(self.vtable)).GetForWindow(@as(*const IPlayToManagerInterop, @ptrCast(self)), appWindow, riid, playToManager); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPlayToManagerInterop_ShowPlayToUIForWindow(self: *const T, appWindow: ?HWND) HRESULT { return @as(*const IPlayToManagerInterop.VTable, @ptrCast(self.vtable)).ShowPlayToUIForWindow(@as(*const IPlayToManagerInterop, @ptrCast(self)), appWindow); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_ICorrelationVectorInformation_Value = Guid.initString("83c78b3c-d88b-4950-aa6e-22b8d22aabd3"); pub const IID_ICorrelationVectorInformation = &IID_ICorrelationVectorInformation_Value; pub const ICorrelationVectorInformation = extern struct { pub const VTable = extern struct { base: IInspectable.VTable, // TODO: this function has a "SpecialName", should Zig do anything with this? get_LastCorrelationVectorForThread: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ICorrelationVectorInformation, cv: ?*?HSTRING, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ICorrelationVectorInformation, cv: ?*?HSTRING, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_NextCorrelationVectorForThread: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ICorrelationVectorInformation, cv: ?*?HSTRING, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ICorrelationVectorInformation, cv: ?*?HSTRING, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_NextCorrelationVectorForThread: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ICorrelationVectorInformation, cv: ?HSTRING, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ICorrelationVectorInformation, cv: ?HSTRING, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IInspectable.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ICorrelationVectorInformation_get_LastCorrelationVectorForThread(self: *const T, cv: ?*?HSTRING) HRESULT { return @as(*const ICorrelationVectorInformation.VTable, @ptrCast(self.vtable)).get_LastCorrelationVectorForThread(@as(*const ICorrelationVectorInformation, @ptrCast(self)), cv); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ICorrelationVectorInformation_get_NextCorrelationVectorForThread(self: *const T, cv: ?*?HSTRING) HRESULT { return @as(*const ICorrelationVectorInformation.VTable, @ptrCast(self.vtable)).get_NextCorrelationVectorForThread(@as(*const ICorrelationVectorInformation, @ptrCast(self)), cv); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ICorrelationVectorInformation_put_NextCorrelationVectorForThread(self: *const T, cv: ?HSTRING) HRESULT { return @as(*const ICorrelationVectorInformation.VTable, @ptrCast(self.vtable)).put_NextCorrelationVectorForThread(@as(*const ICorrelationVectorInformation, @ptrCast(self)), cv); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IUIViewSettingsInterop_Value = Guid.initString("3694dbf9-8f68-44be-8ff5-195c98ede8a6"); pub const IID_IUIViewSettingsInterop = &IID_IUIViewSettingsInterop_Value; pub const IUIViewSettingsInterop = extern struct { pub const VTable = extern struct { base: IInspectable.VTable, GetForWindow: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IUIViewSettingsInterop, hwnd: ?HWND, riid: ?*const Guid, ppv: ?*?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IUIViewSettingsInterop, hwnd: ?HWND, riid: ?*const Guid, ppv: ?*?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IInspectable.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IUIViewSettingsInterop_GetForWindow(self: *const T, hwnd: ?HWND, riid: ?*const Guid, ppv: ?*?*anyopaque) HRESULT { return @as(*const IUIViewSettingsInterop.VTable, @ptrCast(self.vtable)).GetForWindow(@as(*const IUIViewSettingsInterop, @ptrCast(self)), hwnd, riid, ppv); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IUserActivityInterop_Value = Guid.initString("1ade314d-0e0a-40d9-824c-9a088a50059f"); pub const IID_IUserActivityInterop = &IID_IUserActivityInterop_Value; pub const IUserActivityInterop = extern struct { pub const VTable = extern struct { base: IInspectable.VTable, CreateSessionForWindow: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IUserActivityInterop, window: ?HWND, iid: ?*const Guid, value: ?*?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IUserActivityInterop, window: ?HWND, iid: ?*const Guid, value: ?*?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IInspectable.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IUserActivityInterop_CreateSessionForWindow(self: *const T, window: ?HWND, iid: ?*const Guid, value: ?*?*anyopaque) HRESULT { return @as(*const IUserActivityInterop.VTable, @ptrCast(self.vtable)).CreateSessionForWindow(@as(*const IUserActivityInterop, @ptrCast(self)), window, iid, value); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IUserActivitySourceHostInterop_Value = Guid.initString("c15df8bc-8844-487a-b85b-7578e0f61419"); pub const IID_IUserActivitySourceHostInterop = &IID_IUserActivitySourceHostInterop_Value; pub const IUserActivitySourceHostInterop = extern struct { pub const VTable = extern struct { base: IInspectable.VTable, SetActivitySourceHost: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IUserActivitySourceHostInterop, activitySourceHost: ?HSTRING, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IUserActivitySourceHostInterop, activitySourceHost: ?HSTRING, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IInspectable.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IUserActivitySourceHostInterop_SetActivitySourceHost(self: *const T, activitySourceHost: ?HSTRING) HRESULT { return @as(*const IUserActivitySourceHostInterop.VTable, @ptrCast(self.vtable)).SetActivitySourceHost(@as(*const IUserActivitySourceHostInterop, @ptrCast(self)), activitySourceHost); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IUserActivityRequestManagerInterop_Value = Guid.initString("dd69f876-9699-4715-9095-e37ea30dfa1b"); pub const IID_IUserActivityRequestManagerInterop = &IID_IUserActivityRequestManagerInterop_Value; pub const IUserActivityRequestManagerInterop = extern struct { pub const VTable = extern struct { base: IInspectable.VTable, GetForWindow: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IUserActivityRequestManagerInterop, window: ?HWND, iid: ?*const Guid, value: ?*?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IUserActivityRequestManagerInterop, window: ?HWND, iid: ?*const Guid, value: ?*?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IInspectable.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IUserActivityRequestManagerInterop_GetForWindow(self: *const T, window: ?HWND, iid: ?*const Guid, value: ?*?*anyopaque) HRESULT { return @as(*const IUserActivityRequestManagerInterop.VTable, @ptrCast(self.vtable)).GetForWindow(@as(*const IUserActivityRequestManagerInterop, @ptrCast(self)), window, iid, value); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IUserConsentVerifierInterop_Value = Guid.initString("39e050c3-4e74-441a-8dc0-b81104df949c"); pub const IID_IUserConsentVerifierInterop = &IID_IUserConsentVerifierInterop_Value; pub const IUserConsentVerifierInterop = extern struct { pub const VTable = extern struct { base: IInspectable.VTable, RequestVerificationForWindowAsync: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IUserConsentVerifierInterop, appWindow: ?HWND, message: ?HSTRING, riid: ?*const Guid, asyncOperation: ?*?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IUserConsentVerifierInterop, appWindow: ?HWND, message: ?HSTRING, riid: ?*const Guid, asyncOperation: ?*?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IInspectable.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IUserConsentVerifierInterop_RequestVerificationForWindowAsync(self: *const T, appWindow: ?HWND, message: ?HSTRING, riid: ?*const Guid, asyncOperation: ?*?*anyopaque) HRESULT { return @as(*const IUserConsentVerifierInterop.VTable, @ptrCast(self.vtable)).RequestVerificationForWindowAsync(@as(*const IUserConsentVerifierInterop, @ptrCast(self)), appWindow, message, riid, asyncOperation); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IWebAuthenticationCoreManagerInterop_Value = Guid.initString("f4b8e804-811e-4436-b69c-44cb67b72084"); pub const IID_IWebAuthenticationCoreManagerInterop = &IID_IWebAuthenticationCoreManagerInterop_Value; pub const IWebAuthenticationCoreManagerInterop = extern struct { pub const VTable = extern struct { base: IInspectable.VTable, RequestTokenForWindowAsync: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IWebAuthenticationCoreManagerInterop, appWindow: ?HWND, request: ?*IInspectable, riid: ?*const Guid, asyncInfo: ?*?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IWebAuthenticationCoreManagerInterop, appWindow: ?HWND, request: ?*IInspectable, riid: ?*const Guid, asyncInfo: ?*?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, RequestTokenWithWebAccountForWindowAsync: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IWebAuthenticationCoreManagerInterop, appWindow: ?HWND, request: ?*IInspectable, webAccount: ?*IInspectable, riid: ?*const Guid, asyncInfo: ?*?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IWebAuthenticationCoreManagerInterop, appWindow: ?HWND, request: ?*IInspectable, webAccount: ?*IInspectable, riid: ?*const Guid, asyncInfo: ?*?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IInspectable.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWebAuthenticationCoreManagerInterop_RequestTokenForWindowAsync(self: *const T, appWindow: ?HWND, request: ?*IInspectable, riid: ?*const Guid, asyncInfo: ?*?*anyopaque) HRESULT { return @as(*const IWebAuthenticationCoreManagerInterop.VTable, @ptrCast(self.vtable)).RequestTokenForWindowAsync(@as(*const IWebAuthenticationCoreManagerInterop, @ptrCast(self)), appWindow, request, riid, asyncInfo); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWebAuthenticationCoreManagerInterop_RequestTokenWithWebAccountForWindowAsync(self: *const T, appWindow: ?HWND, request: ?*IInspectable, webAccount: ?*IInspectable, riid: ?*const Guid, asyncInfo: ?*?*anyopaque) HRESULT { return @as(*const IWebAuthenticationCoreManagerInterop.VTable, @ptrCast(self.vtable)).RequestTokenWithWebAccountForWindowAsync(@as(*const IWebAuthenticationCoreManagerInterop, @ptrCast(self)), appWindow, request, webAccount, riid, asyncInfo); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows8.0' const IID_IRestrictedErrorInfo_Value = Guid.initString("82ba7092-4c88-427d-a7bc-16dd93feb67e"); pub const IID_IRestrictedErrorInfo = &IID_IRestrictedErrorInfo_Value; pub const IRestrictedErrorInfo = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, GetErrorDetails: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IRestrictedErrorInfo, description: ?*?BSTR, @"error": ?*HRESULT, restrictedDescription: ?*?BSTR, capabilitySid: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IRestrictedErrorInfo, description: ?*?BSTR, @"error": ?*HRESULT, restrictedDescription: ?*?BSTR, capabilitySid: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetReference: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IRestrictedErrorInfo, reference: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IRestrictedErrorInfo, reference: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRestrictedErrorInfo_GetErrorDetails(self: *const T, description: ?*?BSTR, @"error": ?*HRESULT, restrictedDescription: ?*?BSTR, capabilitySid: ?*?BSTR) HRESULT { return @as(*const IRestrictedErrorInfo.VTable, @ptrCast(self.vtable)).GetErrorDetails(@as(*const IRestrictedErrorInfo, @ptrCast(self)), description, @"error", restrictedDescription, capabilitySid); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRestrictedErrorInfo_GetReference(self: *const T, reference: ?*?BSTR) HRESULT { return @as(*const IRestrictedErrorInfo.VTable, @ptrCast(self.vtable)).GetReference(@as(*const IRestrictedErrorInfo, @ptrCast(self)), reference); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows8.1' const IID_ILanguageExceptionErrorInfo_Value = Guid.initString("04a2dbf3-df83-116c-0946-0812abf6e07d"); pub const IID_ILanguageExceptionErrorInfo = &IID_ILanguageExceptionErrorInfo_Value; pub const ILanguageExceptionErrorInfo = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, GetLanguageException: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ILanguageExceptionErrorInfo, languageException: ?*?*IUnknown, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ILanguageExceptionErrorInfo, languageException: ?*?*IUnknown, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ILanguageExceptionErrorInfo_GetLanguageException(self: *const T, languageException: ?*?*IUnknown) HRESULT { return @as(*const ILanguageExceptionErrorInfo.VTable, @ptrCast(self.vtable)).GetLanguageException(@as(*const ILanguageExceptionErrorInfo, @ptrCast(self)), languageException); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows10.0.15063' const IID_ILanguageExceptionTransform_Value = Guid.initString("feb5a271-a6cd-45ce-880a-696706badc65"); pub const IID_ILanguageExceptionTransform = &IID_ILanguageExceptionTransform_Value; pub const ILanguageExceptionTransform = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, GetTransformedRestrictedErrorInfo: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ILanguageExceptionTransform, restrictedErrorInfo: ?*?*IRestrictedErrorInfo, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ILanguageExceptionTransform, restrictedErrorInfo: ?*?*IRestrictedErrorInfo, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ILanguageExceptionTransform_GetTransformedRestrictedErrorInfo(self: *const T, restrictedErrorInfo: ?*?*IRestrictedErrorInfo) HRESULT { return @as(*const ILanguageExceptionTransform.VTable, @ptrCast(self.vtable)).GetTransformedRestrictedErrorInfo(@as(*const ILanguageExceptionTransform, @ptrCast(self)), restrictedErrorInfo); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows10.0.15063' const IID_ILanguageExceptionStackBackTrace_Value = Guid.initString("cbe53fb5-f967-4258-8d34-42f5e25833de"); pub const IID_ILanguageExceptionStackBackTrace = &IID_ILanguageExceptionStackBackTrace_Value; pub const ILanguageExceptionStackBackTrace = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, GetStackBackTrace: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ILanguageExceptionStackBackTrace, maxFramesToCapture: u32, stackBackTrace: ?*usize, framesCaptured: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ILanguageExceptionStackBackTrace, maxFramesToCapture: u32, stackBackTrace: ?*usize, framesCaptured: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ILanguageExceptionStackBackTrace_GetStackBackTrace(self: *const T, maxFramesToCapture: u32, stackBackTrace: ?*usize, framesCaptured: ?*u32) HRESULT { return @as(*const ILanguageExceptionStackBackTrace.VTable, @ptrCast(self.vtable)).GetStackBackTrace(@as(*const ILanguageExceptionStackBackTrace, @ptrCast(self)), maxFramesToCapture, stackBackTrace, framesCaptured); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows10.0.15063' const IID_ILanguageExceptionErrorInfo2_Value = Guid.initString("5746e5c4-5b97-424c-b620-2822915734dd"); pub const IID_ILanguageExceptionErrorInfo2 = &IID_ILanguageExceptionErrorInfo2_Value; pub const ILanguageExceptionErrorInfo2 = extern struct { pub const VTable = extern struct { base: ILanguageExceptionErrorInfo.VTable, GetPreviousLanguageExceptionErrorInfo: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ILanguageExceptionErrorInfo2, previousLanguageExceptionErrorInfo: ?*?*ILanguageExceptionErrorInfo2, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ILanguageExceptionErrorInfo2, previousLanguageExceptionErrorInfo: ?*?*ILanguageExceptionErrorInfo2, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, CapturePropagationContext: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ILanguageExceptionErrorInfo2, languageException: ?*IUnknown, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ILanguageExceptionErrorInfo2, languageException: ?*IUnknown, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetPropagationContextHead: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ILanguageExceptionErrorInfo2, propagatedLanguageExceptionErrorInfoHead: ?*?*ILanguageExceptionErrorInfo2, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ILanguageExceptionErrorInfo2, propagatedLanguageExceptionErrorInfoHead: ?*?*ILanguageExceptionErrorInfo2, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace ILanguageExceptionErrorInfo.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ILanguageExceptionErrorInfo2_GetPreviousLanguageExceptionErrorInfo(self: *const T, previousLanguageExceptionErrorInfo: ?*?*ILanguageExceptionErrorInfo2) HRESULT { return @as(*const ILanguageExceptionErrorInfo2.VTable, @ptrCast(self.vtable)).GetPreviousLanguageExceptionErrorInfo(@as(*const ILanguageExceptionErrorInfo2, @ptrCast(self)), previousLanguageExceptionErrorInfo); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ILanguageExceptionErrorInfo2_CapturePropagationContext(self: *const T, languageException: ?*IUnknown) HRESULT { return @as(*const ILanguageExceptionErrorInfo2.VTable, @ptrCast(self.vtable)).CapturePropagationContext(@as(*const ILanguageExceptionErrorInfo2, @ptrCast(self)), languageException); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ILanguageExceptionErrorInfo2_GetPropagationContextHead(self: *const T, propagatedLanguageExceptionErrorInfoHead: ?*?*ILanguageExceptionErrorInfo2) HRESULT { return @as(*const ILanguageExceptionErrorInfo2.VTable, @ptrCast(self.vtable)).GetPropagationContextHead(@as(*const ILanguageExceptionErrorInfo2, @ptrCast(self)), propagatedLanguageExceptionErrorInfoHead); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows8.0' const IID_IActivationFactory_Value = Guid.initString("00000035-0000-0000-c000-000000000046"); pub const IID_IActivationFactory = &IID_IActivationFactory_Value; pub const IActivationFactory = extern struct { pub const VTable = extern struct { base: IInspectable.VTable, ActivateInstance: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IActivationFactory, instance: ?*?*IInspectable, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IActivationFactory, instance: ?*?*IInspectable, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IInspectable.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IActivationFactory_ActivateInstance(self: *const T, instance: ?*?*IInspectable) HRESULT { return @as(*const IActivationFactory.VTable, @ptrCast(self.vtable)).ActivateInstance(@as(*const IActivationFactory, @ptrCast(self)), instance); } }; } pub usingnamespace MethodMixin(@This()); }; pub const RO_INIT_TYPE = enum(i32) { SINGLETHREADED = 0, MULTITHREADED = 1, }; pub const RO_INIT_SINGLETHREADED = RO_INIT_TYPE.SINGLETHREADED; pub const RO_INIT_MULTITHREADED = RO_INIT_TYPE.MULTITHREADED; pub const _RO_REGISTRATION_COOKIE = extern struct { placeholder: usize, // TODO: why is this type empty? }; const IID_IBufferByteAccess_Value = Guid.initString("905a0fef-bc53-11df-8c49-001e4fc686da"); pub const IID_IBufferByteAccess = &IID_IBufferByteAccess_Value; pub const IBufferByteAccess = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, Buffer: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IBufferByteAccess, value: ?*?*u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IBufferByteAccess, value: ?*?*u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IBufferByteAccess_Buffer(self: *const T, value: ?*?*u8) HRESULT { return @as(*const IBufferByteAccess.VTable, @ptrCast(self.vtable)).Buffer(@as(*const IBufferByteAccess, @ptrCast(self)), value); } }; } pub usingnamespace MethodMixin(@This()); }; pub const RO_ERROR_REPORTING_FLAGS = enum(u32) { NONE = 0, SUPPRESSEXCEPTIONS = 1, FORCEEXCEPTIONS = 2, USESETERRORINFO = 4, SUPPRESSSETERRORINFO = 8, _, pub fn initFlags(o: struct { NONE: u1 = 0, SUPPRESSEXCEPTIONS: u1 = 0, FORCEEXCEPTIONS: u1 = 0, USESETERRORINFO: u1 = 0, SUPPRESSSETERRORINFO: u1 = 0, }) RO_ERROR_REPORTING_FLAGS { return @as(RO_ERROR_REPORTING_FLAGS, @enumFromInt((if (o.NONE == 1) @intFromEnum(RO_ERROR_REPORTING_FLAGS.NONE) else 0) | (if (o.SUPPRESSEXCEPTIONS == 1) @intFromEnum(RO_ERROR_REPORTING_FLAGS.SUPPRESSEXCEPTIONS) else 0) | (if (o.FORCEEXCEPTIONS == 1) @intFromEnum(RO_ERROR_REPORTING_FLAGS.FORCEEXCEPTIONS) else 0) | (if (o.USESETERRORINFO == 1) @intFromEnum(RO_ERROR_REPORTING_FLAGS.USESETERRORINFO) else 0) | (if (o.SUPPRESSSETERRORINFO == 1) @intFromEnum(RO_ERROR_REPORTING_FLAGS.SUPPRESSSETERRORINFO) else 0))); } }; pub const RO_ERROR_REPORTING_NONE = RO_ERROR_REPORTING_FLAGS.NONE; pub const RO_ERROR_REPORTING_SUPPRESSEXCEPTIONS = RO_ERROR_REPORTING_FLAGS.SUPPRESSEXCEPTIONS; pub const RO_ERROR_REPORTING_FORCEEXCEPTIONS = RO_ERROR_REPORTING_FLAGS.FORCEEXCEPTIONS; pub const RO_ERROR_REPORTING_USESETERRORINFO = RO_ERROR_REPORTING_FLAGS.USESETERRORINFO; pub const RO_ERROR_REPORTING_SUPPRESSSETERRORINFO = RO_ERROR_REPORTING_FLAGS.SUPPRESSSETERRORINFO; pub const PINSPECT_MEMORY_CALLBACK = switch (@import("builtin").zig_backend) { .stage1 => fn ( context: ?*anyopaque, readAddress: usize, length: u32, buffer: [*:0]u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( context: ?*anyopaque, readAddress: usize, length: u32, buffer: [*:0]u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }; pub const IRoSimpleMetaDataBuilder = extern struct { pub const VTable = extern struct { SetWinRtInterface: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IRoSimpleMetaDataBuilder, iid: Guid, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IRoSimpleMetaDataBuilder, iid: Guid, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetDelegate: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IRoSimpleMetaDataBuilder, iid: Guid, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IRoSimpleMetaDataBuilder, iid: Guid, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetInterfaceGroupSimpleDefault: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IRoSimpleMetaDataBuilder, name: ?[*:0]const u16, defaultInterfaceName: ?[*:0]const u16, defaultInterfaceIID: ?*const Guid, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IRoSimpleMetaDataBuilder, name: ?[*:0]const u16, defaultInterfaceName: ?[*:0]const u16, defaultInterfaceIID: ?*const Guid, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetInterfaceGroupParameterizedDefault: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IRoSimpleMetaDataBuilder, name: ?[*:0]const u16, elementCount: u32, defaultInterfaceNameElements: [*]?PWSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IRoSimpleMetaDataBuilder, name: ?[*:0]const u16, elementCount: u32, defaultInterfaceNameElements: [*]?PWSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetRuntimeClassSimpleDefault: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IRoSimpleMetaDataBuilder, name: ?[*:0]const u16, defaultInterfaceName: ?[*:0]const u16, defaultInterfaceIID: ?*const Guid, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IRoSimpleMetaDataBuilder, name: ?[*:0]const u16, defaultInterfaceName: ?[*:0]const u16, defaultInterfaceIID: ?*const Guid, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetRuntimeClassParameterizedDefault: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IRoSimpleMetaDataBuilder, name: ?[*:0]const u16, elementCount: u32, defaultInterfaceNameElements: [*]const ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IRoSimpleMetaDataBuilder, name: ?[*:0]const u16, elementCount: u32, defaultInterfaceNameElements: [*]const ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetStruct: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IRoSimpleMetaDataBuilder, name: ?[*:0]const u16, numFields: u32, fieldTypeNames: [*]const ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IRoSimpleMetaDataBuilder, name: ?[*:0]const u16, numFields: u32, fieldTypeNames: [*]const ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetEnum: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IRoSimpleMetaDataBuilder, name: ?[*:0]const u16, baseType: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IRoSimpleMetaDataBuilder, name: ?[*:0]const u16, baseType: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetParameterizedInterface: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IRoSimpleMetaDataBuilder, piid: Guid, numArgs: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IRoSimpleMetaDataBuilder, piid: Guid, numArgs: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetParameterizedDelegate: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IRoSimpleMetaDataBuilder, piid: Guid, numArgs: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IRoSimpleMetaDataBuilder, piid: Guid, numArgs: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRoSimpleMetaDataBuilder_SetWinRtInterface(self: *const T, iid: Guid) HRESULT { return @as(*const IRoSimpleMetaDataBuilder.VTable, @ptrCast(self.vtable)).SetWinRtInterface(@as(*const IRoSimpleMetaDataBuilder, @ptrCast(self)), iid); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRoSimpleMetaDataBuilder_SetDelegate(self: *const T, iid: Guid) HRESULT { return @as(*const IRoSimpleMetaDataBuilder.VTable, @ptrCast(self.vtable)).SetDelegate(@as(*const IRoSimpleMetaDataBuilder, @ptrCast(self)), iid); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRoSimpleMetaDataBuilder_SetInterfaceGroupSimpleDefault(self: *const T, name: ?[*:0]const u16, defaultInterfaceName: ?[*:0]const u16, defaultInterfaceIID: ?*const Guid) HRESULT { return @as(*const IRoSimpleMetaDataBuilder.VTable, @ptrCast(self.vtable)).SetInterfaceGroupSimpleDefault(@as(*const IRoSimpleMetaDataBuilder, @ptrCast(self)), name, defaultInterfaceName, defaultInterfaceIID); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRoSimpleMetaDataBuilder_SetInterfaceGroupParameterizedDefault(self: *const T, name: ?[*:0]const u16, elementCount: u32, defaultInterfaceNameElements: [*]?PWSTR) HRESULT { return @as(*const IRoSimpleMetaDataBuilder.VTable, @ptrCast(self.vtable)).SetInterfaceGroupParameterizedDefault(@as(*const IRoSimpleMetaDataBuilder, @ptrCast(self)), name, elementCount, defaultInterfaceNameElements); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRoSimpleMetaDataBuilder_SetRuntimeClassSimpleDefault(self: *const T, name: ?[*:0]const u16, defaultInterfaceName: ?[*:0]const u16, defaultInterfaceIID: ?*const Guid) HRESULT { return @as(*const IRoSimpleMetaDataBuilder.VTable, @ptrCast(self.vtable)).SetRuntimeClassSimpleDefault(@as(*const IRoSimpleMetaDataBuilder, @ptrCast(self)), name, defaultInterfaceName, defaultInterfaceIID); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRoSimpleMetaDataBuilder_SetRuntimeClassParameterizedDefault(self: *const T, name: ?[*:0]const u16, elementCount: u32, defaultInterfaceNameElements: [*]const ?[*:0]const u16) HRESULT { return @as(*const IRoSimpleMetaDataBuilder.VTable, @ptrCast(self.vtable)).SetRuntimeClassParameterizedDefault(@as(*const IRoSimpleMetaDataBuilder, @ptrCast(self)), name, elementCount, defaultInterfaceNameElements); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRoSimpleMetaDataBuilder_SetStruct(self: *const T, name: ?[*:0]const u16, numFields: u32, fieldTypeNames: [*]const ?[*:0]const u16) HRESULT { return @as(*const IRoSimpleMetaDataBuilder.VTable, @ptrCast(self.vtable)).SetStruct(@as(*const IRoSimpleMetaDataBuilder, @ptrCast(self)), name, numFields, fieldTypeNames); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRoSimpleMetaDataBuilder_SetEnum(self: *const T, name: ?[*:0]const u16, baseType: ?[*:0]const u16) HRESULT { return @as(*const IRoSimpleMetaDataBuilder.VTable, @ptrCast(self.vtable)).SetEnum(@as(*const IRoSimpleMetaDataBuilder, @ptrCast(self)), name, baseType); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRoSimpleMetaDataBuilder_SetParameterizedInterface(self: *const T, piid: Guid, numArgs: u32) HRESULT { return @as(*const IRoSimpleMetaDataBuilder.VTable, @ptrCast(self.vtable)).SetParameterizedInterface(@as(*const IRoSimpleMetaDataBuilder, @ptrCast(self)), piid, numArgs); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRoSimpleMetaDataBuilder_SetParameterizedDelegate(self: *const T, piid: Guid, numArgs: u32) HRESULT { return @as(*const IRoSimpleMetaDataBuilder.VTable, @ptrCast(self.vtable)).SetParameterizedDelegate(@as(*const IRoSimpleMetaDataBuilder, @ptrCast(self)), piid, numArgs); } }; } pub usingnamespace MethodMixin(@This()); }; pub const IRoMetaDataLocator = extern struct { pub const VTable = extern struct { Locate: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IRoMetaDataLocator, nameElement: ?[*:0]const u16, metaDataDestination: ?*IRoSimpleMetaDataBuilder, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IRoMetaDataLocator, nameElement: ?[*:0]const u16, metaDataDestination: ?*IRoSimpleMetaDataBuilder, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRoMetaDataLocator_Locate(self: *const T, nameElement: ?[*:0]const u16, metaDataDestination: ?*IRoSimpleMetaDataBuilder) HRESULT { return @as(*const IRoMetaDataLocator.VTable, @ptrCast(self.vtable)).Locate(@as(*const IRoMetaDataLocator, @ptrCast(self)), nameElement, metaDataDestination); } }; } pub usingnamespace MethodMixin(@This()); }; pub const BSOS_OPTIONS = enum(i32) { DEFAULT = 0, PREFERDESTINATIONSTREAM = 1, }; pub const BSOS_DEFAULT = BSOS_OPTIONS.DEFAULT; pub const BSOS_PREFERDESTINATIONSTREAM = BSOS_OPTIONS.PREFERDESTINATIONSTREAM; const IID_IMemoryBufferByteAccess_Value = Guid.initString("5b0d3235-4dba-4d44-865e-8f1d0e4fd04d"); pub const IID_IMemoryBufferByteAccess = &IID_IMemoryBufferByteAccess_Value; pub const IMemoryBufferByteAccess = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, GetBuffer: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IMemoryBufferByteAccess, value: ?*?*u8, capacity: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IMemoryBufferByteAccess, value: ?*?*u8, capacity: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMemoryBufferByteAccess_GetBuffer(self: *const T, value: ?*?*u8, capacity: ?*u32) HRESULT { return @as(*const IMemoryBufferByteAccess.VTable, @ptrCast(self.vtable)).GetBuffer(@as(*const IMemoryBufferByteAccess, @ptrCast(self)), value, capacity); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows8.0' const IID_IWeakReference_Value = Guid.initString("00000037-0000-0000-c000-000000000046"); pub const IID_IWeakReference = &IID_IWeakReference_Value; pub const IWeakReference = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, Resolve: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IWeakReference, riid: ?*const Guid, objectReference: ?*?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IWeakReference, riid: ?*const Guid, objectReference: ?*?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWeakReference_Resolve(self: *const T, riid: ?*const Guid, objectReference: ?*?*anyopaque) HRESULT { return @as(*const IWeakReference.VTable, @ptrCast(self.vtable)).Resolve(@as(*const IWeakReference, @ptrCast(self)), riid, objectReference); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows8.0' const IID_IWeakReferenceSource_Value = Guid.initString("00000038-0000-0000-c000-000000000046"); pub const IID_IWeakReferenceSource = &IID_IWeakReferenceSource_Value; pub const IWeakReferenceSource = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, GetWeakReference: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IWeakReferenceSource, weakReference: ?*?*IWeakReference, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IWeakReferenceSource, weakReference: ?*?*IWeakReference, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWeakReferenceSource_GetWeakReference(self: *const T, weakReference: ?*?*IWeakReference) HRESULT { return @as(*const IWeakReferenceSource.VTable, @ptrCast(self.vtable)).GetWeakReference(@as(*const IWeakReferenceSource, @ptrCast(self)), weakReference); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_ISystemMediaTransportControlsInterop_Value = Guid.initString("ddb0472d-c911-4a1f-86d9-dc3d71a95f5a"); pub const IID_ISystemMediaTransportControlsInterop = &IID_ISystemMediaTransportControlsInterop_Value; pub const ISystemMediaTransportControlsInterop = extern struct { pub const VTable = extern struct { base: IInspectable.VTable, GetForWindow: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ISystemMediaTransportControlsInterop, appWindow: ?HWND, riid: ?*const Guid, mediaTransportControl: ?*?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ISystemMediaTransportControlsInterop, appWindow: ?HWND, riid: ?*const Guid, mediaTransportControl: ?*?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IInspectable.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISystemMediaTransportControlsInterop_GetForWindow(self: *const T, appWindow: ?HWND, riid: ?*const Guid, mediaTransportControl: ?*?*anyopaque) HRESULT { return @as(*const ISystemMediaTransportControlsInterop.VTable, @ptrCast(self.vtable)).GetForWindow(@as(*const ISystemMediaTransportControlsInterop, @ptrCast(self)), appWindow, riid, mediaTransportControl); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IShareWindowCommandEventArgsInterop_Value = Guid.initString("6571a721-643d-43d4-aca4-6b6f5f30f1ad"); pub const IID_IShareWindowCommandEventArgsInterop = &IID_IShareWindowCommandEventArgsInterop_Value; pub const IShareWindowCommandEventArgsInterop = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, GetWindow: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IShareWindowCommandEventArgsInterop, value: ?*?HWND, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IShareWindowCommandEventArgsInterop, value: ?*?HWND, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IShareWindowCommandEventArgsInterop_GetWindow(self: *const T, value: ?*?HWND) HRESULT { return @as(*const IShareWindowCommandEventArgsInterop.VTable, @ptrCast(self.vtable)).GetWindow(@as(*const IShareWindowCommandEventArgsInterop, @ptrCast(self)), value); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IShareWindowCommandSourceInterop_Value = Guid.initString("461a191f-8424-43a6-a0fa-3451a22f56ab"); pub const IID_IShareWindowCommandSourceInterop = &IID_IShareWindowCommandSourceInterop_Value; pub const IShareWindowCommandSourceInterop = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, GetForWindow: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IShareWindowCommandSourceInterop, appWindow: ?HWND, riid: ?*const Guid, shareWindowCommandSource: ?*?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IShareWindowCommandSourceInterop, appWindow: ?HWND, riid: ?*const Guid, shareWindowCommandSource: ?*?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IShareWindowCommandSourceInterop_GetForWindow(self: *const T, appWindow: ?HWND, riid: ?*const Guid, shareWindowCommandSource: ?*?*anyopaque) HRESULT { return @as(*const IShareWindowCommandSourceInterop.VTable, @ptrCast(self.vtable)).GetForWindow(@as(*const IShareWindowCommandSourceInterop, @ptrCast(self)), appWindow, riid, shareWindowCommandSource); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IMessageDispatcher_Value = Guid.initString("f5f84c8f-cfd0-4cd6-b66b-c5d26ff1689d"); pub const IID_IMessageDispatcher = &IID_IMessageDispatcher_Value; pub const IMessageDispatcher = extern struct { pub const VTable = extern struct { base: IInspectable.VTable, PumpMessages: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IMessageDispatcher, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IMessageDispatcher, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IInspectable.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMessageDispatcher_PumpMessages(self: *const T) HRESULT { return @as(*const IMessageDispatcher.VTable, @ptrCast(self.vtable)).PumpMessages(@as(*const IMessageDispatcher, @ptrCast(self))); } }; } pub usingnamespace MethodMixin(@This()); }; //-------------------------------------------------------------------------------- // Section: Functions (68) //-------------------------------------------------------------------------------- pub extern "ole32" fn CoDecodeProxy( dwClientPid: u32, ui64ProxyAddress: u64, pServerInformation: ?*ServerInformation, ) callconv(@import("std").os.windows.WINAPI) HRESULT; // TODO: this type is limited to platform 'windows8.1' pub extern "ole32" fn RoGetAgileReference( options: AgileReferenceOptions, riid: ?*const Guid, pUnk: ?*IUnknown, ppAgileReference: ?*?*IAgileReference, ) callconv(@import("std").os.windows.WINAPI) HRESULT; // TODO: this type is limited to platform 'windows8.0' pub extern "api-ms-win-core-winrt-string-l1-1-0" fn HSTRING_UserSize( param0: ?*u32, param1: u32, param2: ?*?HSTRING, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'windows8.0' pub extern "api-ms-win-core-winrt-string-l1-1-0" fn HSTRING_UserMarshal( param0: ?*u32, param1: ?*u8, param2: ?*?HSTRING, ) callconv(@import("std").os.windows.WINAPI) ?*u8; // TODO: this type is limited to platform 'windows8.0' pub extern "api-ms-win-core-winrt-string-l1-1-0" fn HSTRING_UserUnmarshal( param0: ?*u32, param1: [*:0]u8, param2: ?*?HSTRING, ) callconv(@import("std").os.windows.WINAPI) ?*u8; // TODO: this type is limited to platform 'windows8.0' pub extern "api-ms-win-core-winrt-string-l1-1-0" fn HSTRING_UserFree( param0: ?*u32, param1: ?*?HSTRING, ) callconv(@import("std").os.windows.WINAPI) void; // TODO: this type is limited to platform 'windows8.0' pub extern "api-ms-win-core-winrt-string-l1-1-0" fn HSTRING_UserSize64( param0: ?*u32, param1: u32, param2: ?*?HSTRING, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'windows8.0' pub extern "api-ms-win-core-winrt-string-l1-1-0" fn HSTRING_UserMarshal64( param0: ?*u32, param1: ?*u8, param2: ?*?HSTRING, ) callconv(@import("std").os.windows.WINAPI) ?*u8; // TODO: this type is limited to platform 'windows8.0' pub extern "api-ms-win-core-winrt-string-l1-1-0" fn HSTRING_UserUnmarshal64( param0: ?*u32, param1: [*:0]u8, param2: ?*?HSTRING, ) callconv(@import("std").os.windows.WINAPI) ?*u8; // TODO: this type is limited to platform 'windows8.0' pub extern "api-ms-win-core-winrt-string-l1-1-0" fn HSTRING_UserFree64( param0: ?*u32, param1: ?*?HSTRING, ) callconv(@import("std").os.windows.WINAPI) void; // TODO: this type is limited to platform 'windows8.0' pub extern "api-ms-win-core-winrt-string-l1-1-0" fn WindowsCreateString( sourceString: ?[*:0]const u16, length: u32, string: ?*?HSTRING, ) callconv(@import("std").os.windows.WINAPI) HRESULT; // TODO: this type is limited to platform 'windows8.0' pub extern "api-ms-win-core-winrt-string-l1-1-0" fn WindowsCreateStringReference( sourceString: ?[*:0]const u16, length: u32, hstringHeader: ?*HSTRING_HEADER, string: ?*?HSTRING, ) callconv(@import("std").os.windows.WINAPI) HRESULT; // TODO: this type is limited to platform 'windows8.0' pub extern "api-ms-win-core-winrt-string-l1-1-0" fn WindowsDeleteString( string: ?HSTRING, ) callconv(@import("std").os.windows.WINAPI) HRESULT; // TODO: this type is limited to platform 'windows8.0' pub extern "api-ms-win-core-winrt-string-l1-1-0" fn WindowsDuplicateString( string: ?HSTRING, newString: ?*?HSTRING, ) callconv(@import("std").os.windows.WINAPI) HRESULT; // TODO: this type is limited to platform 'windows8.0' pub extern "api-ms-win-core-winrt-string-l1-1-0" fn WindowsGetStringLen( string: ?HSTRING, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'windows8.0' pub extern "api-ms-win-core-winrt-string-l1-1-0" fn WindowsGetStringRawBuffer( string: ?HSTRING, length: ?*u32, ) callconv(@import("std").os.windows.WINAPI) ?PWSTR; // TODO: this type is limited to platform 'windows8.0' pub extern "api-ms-win-core-winrt-string-l1-1-0" fn WindowsIsStringEmpty( string: ?HSTRING, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows8.0' pub extern "api-ms-win-core-winrt-string-l1-1-0" fn WindowsStringHasEmbeddedNull( string: ?HSTRING, hasEmbedNull: ?*BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT; // TODO: this type is limited to platform 'windows8.0' pub extern "api-ms-win-core-winrt-string-l1-1-0" fn WindowsCompareStringOrdinal( string1: ?HSTRING, string2: ?HSTRING, result: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT; // TODO: this type is limited to platform 'windows8.0' pub extern "api-ms-win-core-winrt-string-l1-1-0" fn WindowsSubstring( string: ?HSTRING, startIndex: u32, newString: ?*?HSTRING, ) callconv(@import("std").os.windows.WINAPI) HRESULT; // TODO: this type is limited to platform 'windows8.0' pub extern "api-ms-win-core-winrt-string-l1-1-0" fn WindowsSubstringWithSpecifiedLength( string: ?HSTRING, startIndex: u32, length: u32, newString: ?*?HSTRING, ) callconv(@import("std").os.windows.WINAPI) HRESULT; // TODO: this type is limited to platform 'windows8.0' pub extern "api-ms-win-core-winrt-string-l1-1-0" fn WindowsConcatString( string1: ?HSTRING, string2: ?HSTRING, newString: ?*?HSTRING, ) callconv(@import("std").os.windows.WINAPI) HRESULT; // TODO: this type is limited to platform 'windows8.0' pub extern "api-ms-win-core-winrt-string-l1-1-0" fn WindowsReplaceString( string: ?HSTRING, stringReplaced: ?HSTRING, stringReplaceWith: ?HSTRING, newString: ?*?HSTRING, ) callconv(@import("std").os.windows.WINAPI) HRESULT; // TODO: this type is limited to platform 'windows8.0' pub extern "api-ms-win-core-winrt-string-l1-1-0" fn WindowsTrimStringStart( string: ?HSTRING, trimString: ?HSTRING, newString: ?*?HSTRING, ) callconv(@import("std").os.windows.WINAPI) HRESULT; // TODO: this type is limited to platform 'windows8.0' pub extern "api-ms-win-core-winrt-string-l1-1-0" fn WindowsTrimStringEnd( string: ?HSTRING, trimString: ?HSTRING, newString: ?*?HSTRING, ) callconv(@import("std").os.windows.WINAPI) HRESULT; // TODO: this type is limited to platform 'windows8.0' pub extern "api-ms-win-core-winrt-string-l1-1-0" fn WindowsPreallocateStringBuffer( length: u32, charBuffer: ?*?*u16, bufferHandle: ?*?HSTRING_BUFFER, ) callconv(@import("std").os.windows.WINAPI) HRESULT; // TODO: this type is limited to platform 'windows8.0' pub extern "api-ms-win-core-winrt-string-l1-1-0" fn WindowsPromoteStringBuffer( bufferHandle: ?HSTRING_BUFFER, string: ?*?HSTRING, ) callconv(@import("std").os.windows.WINAPI) HRESULT; // TODO: this type is limited to platform 'windows8.0' pub extern "api-ms-win-core-winrt-string-l1-1-0" fn WindowsDeleteStringBuffer( bufferHandle: ?HSTRING_BUFFER, ) callconv(@import("std").os.windows.WINAPI) HRESULT; // TODO: this type is limited to platform 'windows8.0' pub extern "api-ms-win-core-winrt-string-l1-1-0" fn WindowsInspectString( targetHString: usize, machine: u16, callback: ?PINSPECT_HSTRING_CALLBACK, context: ?*anyopaque, length: ?*u32, targetStringAddress: ?*usize, ) callconv(@import("std").os.windows.WINAPI) HRESULT; // TODO: this type is limited to platform 'windows8.0' pub extern "api-ms-win-core-winrt-string-l1-1-1" fn WindowsInspectString2( targetHString: u64, machine: u16, callback: ?PINSPECT_HSTRING_CALLBACK2, context: ?*anyopaque, length: ?*u32, targetStringAddress: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT; pub extern "coremessaging" fn CreateDispatcherQueueController( options: DispatcherQueueOptions, dispatcherQueueController: ?**struct { comment: []const u8 = "MissingClrType DispatcherQueueController.Windows.System" }, ) callconv(@import("std").os.windows.WINAPI) HRESULT; // TODO: this type is limited to platform 'windows8.0' pub extern "api-ms-win-core-winrt-l1-1-0" fn RoInitialize( initType: RO_INIT_TYPE, ) callconv(@import("std").os.windows.WINAPI) HRESULT; // TODO: this type is limited to platform 'windows8.0' pub extern "api-ms-win-core-winrt-l1-1-0" fn RoUninitialize() callconv(@import("std").os.windows.WINAPI) void; // TODO: this type is limited to platform 'windows8.0' pub extern "api-ms-win-core-winrt-l1-1-0" fn RoActivateInstance( activatableClassId: ?HSTRING, instance: ?*?*IInspectable, ) callconv(@import("std").os.windows.WINAPI) HRESULT; // TODO: this type is limited to platform 'windows8.0' pub extern "api-ms-win-core-winrt-l1-1-0" fn RoRegisterActivationFactories( activatableClassIds: [*]?HSTRING, activationFactoryCallbacks: [*]isize, count: u32, cookie: ?*isize, ) callconv(@import("std").os.windows.WINAPI) HRESULT; // TODO: this type is limited to platform 'windows8.0' pub extern "api-ms-win-core-winrt-l1-1-0" fn RoRevokeActivationFactories( cookie: isize, ) callconv(@import("std").os.windows.WINAPI) void; // TODO: this type is limited to platform 'windows8.0' pub extern "api-ms-win-core-winrt-l1-1-0" fn RoGetActivationFactory( activatableClassId: ?HSTRING, iid: ?*const Guid, factory: ?*?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) HRESULT; // TODO: this type is limited to platform 'windows8.0' pub extern "api-ms-win-core-winrt-l1-1-0" fn RoRegisterForApartmentShutdown( callbackObject: ?*IApartmentShutdown, apartmentIdentifier: ?*u64, regCookie: ?*APARTMENT_SHUTDOWN_REGISTRATION_COOKIE, ) callconv(@import("std").os.windows.WINAPI) HRESULT; // TODO: this type is limited to platform 'windows8.0' pub extern "api-ms-win-core-winrt-l1-1-0" fn RoUnregisterForApartmentShutdown( regCookie: APARTMENT_SHUTDOWN_REGISTRATION_COOKIE, ) callconv(@import("std").os.windows.WINAPI) HRESULT; // TODO: this type is limited to platform 'windows8.0' pub extern "api-ms-win-core-winrt-l1-1-0" fn RoGetApartmentIdentifier( apartmentIdentifier: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT; // TODO: this type is limited to platform 'windows8.0' pub extern "api-ms-win-core-winrt-robuffer-l1-1-0" fn RoGetBufferMarshaler( bufferMarshaler: ?*?*IMarshal, ) callconv(@import("std").os.windows.WINAPI) HRESULT; // TODO: this type is limited to platform 'windows8.0' pub extern "api-ms-win-core-winrt-error-l1-1-0" fn RoGetErrorReportingFlags( pflags: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT; // TODO: this type is limited to platform 'windows8.0' pub extern "api-ms-win-core-winrt-error-l1-1-0" fn RoSetErrorReportingFlags( flags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT; // TODO: this type is limited to platform 'windows8.0' pub extern "api-ms-win-core-winrt-error-l1-1-0" fn RoResolveRestrictedErrorInfoReference( reference: ?[*:0]const u16, ppRestrictedErrorInfo: ?*?*IRestrictedErrorInfo, ) callconv(@import("std").os.windows.WINAPI) HRESULT; // TODO: this type is limited to platform 'windows8.0' pub extern "api-ms-win-core-winrt-error-l1-1-0" fn SetRestrictedErrorInfo( pRestrictedErrorInfo: ?*IRestrictedErrorInfo, ) callconv(@import("std").os.windows.WINAPI) HRESULT; // TODO: this type is limited to platform 'windows8.0' pub extern "api-ms-win-core-winrt-error-l1-1-0" fn GetRestrictedErrorInfo( ppRestrictedErrorInfo: ?*?*IRestrictedErrorInfo, ) callconv(@import("std").os.windows.WINAPI) HRESULT; // TODO: this type is limited to platform 'windows8.0' pub extern "api-ms-win-core-winrt-error-l1-1-0" fn RoOriginateErrorW( @"error": HRESULT, cchMax: u32, message: ?*[512]u16, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows8.0' pub extern "api-ms-win-core-winrt-error-l1-1-0" fn RoOriginateError( @"error": HRESULT, message: ?HSTRING, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows8.0' pub extern "api-ms-win-core-winrt-error-l1-1-0" fn RoTransformErrorW( oldError: HRESULT, newError: HRESULT, cchMax: u32, message: ?*[512]u16, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows8.0' pub extern "api-ms-win-core-winrt-error-l1-1-0" fn RoTransformError( oldError: HRESULT, newError: HRESULT, message: ?HSTRING, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows8.0' pub extern "api-ms-win-core-winrt-error-l1-1-0" fn RoCaptureErrorContext( hr: HRESULT, ) callconv(@import("std").os.windows.WINAPI) HRESULT; // TODO: this type is limited to platform 'windows8.0' pub extern "api-ms-win-core-winrt-error-l1-1-0" fn RoFailFastWithErrorContext( hrError: HRESULT, ) callconv(@import("std").os.windows.WINAPI) void; // TODO: this type is limited to platform 'windows8.1' pub extern "api-ms-win-core-winrt-error-l1-1-1" fn RoOriginateLanguageException( @"error": HRESULT, message: ?HSTRING, languageException: ?*IUnknown, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows8.1' pub extern "api-ms-win-core-winrt-error-l1-1-1" fn RoClearError() callconv(@import("std").os.windows.WINAPI) void; pub extern "api-ms-win-core-winrt-error-l1-1-1" fn RoReportUnhandledError( pRestrictedErrorInfo: ?*IRestrictedErrorInfo, ) callconv(@import("std").os.windows.WINAPI) HRESULT; // TODO: this type is limited to platform 'windows8.1' pub extern "api-ms-win-core-winrt-error-l1-1-1" fn RoInspectThreadErrorInfo( targetTebAddress: usize, machine: u16, readMemoryCallback: ?PINSPECT_MEMORY_CALLBACK, context: ?*anyopaque, targetErrorInfoAddress: ?*usize, ) callconv(@import("std").os.windows.WINAPI) HRESULT; // TODO: this type is limited to platform 'windows8.1' pub extern "api-ms-win-core-winrt-error-l1-1-1" fn RoInspectCapturedStackBackTrace( targetErrorInfoAddress: usize, machine: u16, readMemoryCallback: ?PINSPECT_MEMORY_CALLBACK, context: ?*anyopaque, frameCount: ?*u32, targetBackTraceAddress: ?*usize, ) callconv(@import("std").os.windows.WINAPI) HRESULT; pub extern "api-ms-win-core-winrt-error-l1-1-1" fn RoGetMatchingRestrictedErrorInfo( hrIn: HRESULT, ppRestrictedErrorInfo: ?*?*IRestrictedErrorInfo, ) callconv(@import("std").os.windows.WINAPI) HRESULT; pub extern "api-ms-win-core-winrt-error-l1-1-1" fn RoReportFailedDelegate( punkDelegate: ?*IUnknown, pRestrictedErrorInfo: ?*IRestrictedErrorInfo, ) callconv(@import("std").os.windows.WINAPI) HRESULT; // TODO: this type is limited to platform 'windows8.0' pub extern "api-ms-win-core-winrt-error-l1-1-1" fn IsErrorPropagationEnabled() callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows8.0' pub extern "rometadata" fn MetaDataGetDispenser( rclsid: ?*const Guid, riid: ?*const Guid, ppv: ?*?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) HRESULT; // TODO: this type is limited to platform 'windows8.0' pub extern "api-ms-win-core-winrt-roparameterizediid-l1-1-0" fn RoGetParameterizedTypeInstanceIID( nameElementCount: u32, nameElements: [*]?PWSTR, metaDataLocator: ?*IRoMetaDataLocator, iid: ?*Guid, pExtra: ?*ROPARAMIIDHANDLE, ) callconv(@import("std").os.windows.WINAPI) HRESULT; // TODO: this type is limited to platform 'windows8.0' pub extern "api-ms-win-core-winrt-roparameterizediid-l1-1-0" fn RoFreeParameterizedTypeExtra( extra: ROPARAMIIDHANDLE, ) callconv(@import("std").os.windows.WINAPI) void; // TODO: this type is limited to platform 'windows8.0' pub extern "api-ms-win-core-winrt-roparameterizediid-l1-1-0" fn RoParameterizedTypeExtraGetTypeSignature( extra: ROPARAMIIDHANDLE, ) callconv(@import("std").os.windows.WINAPI) ?PSTR; // TODO: this type is limited to platform 'windows8.0' pub extern "api-ms-win-core-winrt-registration-l1-1-0" fn RoGetServerActivatableClasses( serverName: ?HSTRING, activatableClassIds: ?*?*?HSTRING, count: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT; // TODO: this type is limited to platform 'windows8.0' pub extern "api-ms-win-shcore-stream-winrt-l1-1-0" fn CreateRandomAccessStreamOnFile( filePath: ?[*:0]const u16, accessMode: u32, riid: ?*const Guid, ppv: ?*?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) HRESULT; // TODO: this type is limited to platform 'windows8.0' pub extern "api-ms-win-shcore-stream-winrt-l1-1-0" fn CreateRandomAccessStreamOverStream( stream: ?*IStream, options: BSOS_OPTIONS, riid: ?*const Guid, ppv: ?*?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) HRESULT; // TODO: this type is limited to platform 'windows8.0' pub extern "api-ms-win-shcore-stream-winrt-l1-1-0" fn CreateStreamOverRandomAccessStream( randomAccessStream: ?*IUnknown, riid: ?*const Guid, ppv: ?*?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) HRESULT; //-------------------------------------------------------------------------------- // Section: Unicode Aliases (0) //-------------------------------------------------------------------------------- const thismodule = @This(); pub usingnamespace switch (@import("../zig.zig").unicode_mode) { .ansi => struct {}, .wide => struct {}, .unspecified => if (@import("builtin").is_test) struct {} else struct {}, }; //-------------------------------------------------------------------------------- // Section: Imports (12) //-------------------------------------------------------------------------------- const Guid = @import("../zig.zig").Guid; const BOOL = @import("../foundation.zig").BOOL; const BSTR = @import("../foundation.zig").BSTR; const CHAR = @import("../foundation.zig").CHAR; const HRESULT = @import("../foundation.zig").HRESULT; const HWND = @import("../foundation.zig").HWND; const IMarshal = @import("../system/com/marshal.zig").IMarshal; const INamedPropertyStore = @import("../ui/shell/properties_system.zig").INamedPropertyStore; const IStream = @import("../system/com.zig").IStream; const IUnknown = @import("../system/com.zig").IUnknown; const PSTR = @import("../foundation.zig").PSTR; const PWSTR = @import("../foundation.zig").PWSTR; test { // The following '_ = <FuncPtrType>' lines are a workaround for https://github.com/ziglang/zig/issues/4476 if (@hasDecl(@This(), "PINSPECT_HSTRING_CALLBACK")) { _ = PINSPECT_HSTRING_CALLBACK; } if (@hasDecl(@This(), "PINSPECT_HSTRING_CALLBACK2")) { _ = PINSPECT_HSTRING_CALLBACK2; } if (@hasDecl(@This(), "PINSPECT_MEMORY_CALLBACK")) { _ = PINSPECT_MEMORY_CALLBACK; } @setEvalBranchQuota(comptime @import("std").meta.declarations(@This()).len * 3); // reference all the pub declarations if (!@import("builtin").is_test) return; inline for (comptime @import("std").meta.declarations(@This())) |decl| { if (decl.is_pub) { _ = @field(@This(), decl.name); } } } //-------------------------------------------------------------------------------- // Section: SubModules (15) //-------------------------------------------------------------------------------- pub const all_joyn = @import("win_rt/all_joyn.zig"); pub const composition = @import("win_rt/composition.zig"); pub const core_input_view = @import("win_rt/core_input_view.zig"); pub const direct3d11 = @import("win_rt/direct3d11.zig"); pub const display = @import("win_rt/display.zig"); pub const graphics = @import("win_rt/graphics.zig"); pub const holographic = @import("win_rt/holographic.zig"); pub const isolation = @import("win_rt/isolation.zig"); pub const media = @import("win_rt/media.zig"); pub const ml = @import("win_rt/ml.zig"); pub const pdf = @import("win_rt/pdf.zig"); pub const printing = @import("win_rt/printing.zig"); pub const shell = @import("win_rt/shell.zig"); pub const storage = @import("win_rt/storage.zig"); pub const xaml = @import("win_rt/xaml.zig");
0
repos/capy/vendor/zigwin32/win32
repos/capy/vendor/zigwin32/win32/system/application_verifier.zig
//! NOTE: this file is autogenerated, DO NOT MODIFY //-------------------------------------------------------------------------------- // Section: Constants (1) //-------------------------------------------------------------------------------- pub const AVRF_MAX_TRACES = @as(u32, 32); //-------------------------------------------------------------------------------- // Section: Types (12) //-------------------------------------------------------------------------------- pub const VERIFIER_ENUM_RESOURCE_FLAGS = enum(u32) { DONT_RESOLVE_TRACES = 2, SUSPEND = 1, _, pub fn initFlags(o: struct { DONT_RESOLVE_TRACES: u1 = 0, SUSPEND: u1 = 0, }) VERIFIER_ENUM_RESOURCE_FLAGS { return @as(VERIFIER_ENUM_RESOURCE_FLAGS, @enumFromInt((if (o.DONT_RESOLVE_TRACES == 1) @intFromEnum(VERIFIER_ENUM_RESOURCE_FLAGS.DONT_RESOLVE_TRACES) else 0) | (if (o.SUSPEND == 1) @intFromEnum(VERIFIER_ENUM_RESOURCE_FLAGS.SUSPEND) else 0))); } }; pub const AVRF_ENUM_RESOURCES_FLAGS_DONT_RESOLVE_TRACES = VERIFIER_ENUM_RESOURCE_FLAGS.DONT_RESOLVE_TRACES; pub const AVRF_ENUM_RESOURCES_FLAGS_SUSPEND = VERIFIER_ENUM_RESOURCE_FLAGS.SUSPEND; pub const AVRF_BACKTRACE_INFORMATION = extern struct { Depth: u32, Index: u32, ReturnAddresses: [32]u64, }; pub const eUserAllocationState = enum(i32) { Unknown = 0, Busy = 1, Free = 2, }; pub const AllocationStateUnknown = eUserAllocationState.Unknown; pub const AllocationStateBusy = eUserAllocationState.Busy; pub const AllocationStateFree = eUserAllocationState.Free; pub const eHeapAllocationState = enum(i32) { FullPageHeap = 1073741824, Metadata = -2147483648, StateMask = -65536, }; pub const HeapFullPageHeap = eHeapAllocationState.FullPageHeap; pub const HeapMetadata = eHeapAllocationState.Metadata; pub const HeapStateMask = eHeapAllocationState.StateMask; pub const eHeapEnumerationLevel = enum(i32) { Everything = 0, Stop = -1, }; pub const HeapEnumerationEverything = eHeapEnumerationLevel.Everything; pub const HeapEnumerationStop = eHeapEnumerationLevel.Stop; pub const AVRF_HEAP_ALLOCATION = extern struct { HeapHandle: u64, UserAllocation: u64, UserAllocationSize: u64, Allocation: u64, AllocationSize: u64, UserAllocationState: u32, HeapState: u32, HeapContext: u64, BackTraceInformation: ?*AVRF_BACKTRACE_INFORMATION, }; pub const eHANDLE_TRACE_OPERATIONS = enum(i32) { Unused = 0, OPEN = 1, CLOSE = 2, BADREF = 3, }; pub const OperationDbUnused = eHANDLE_TRACE_OPERATIONS.Unused; pub const OperationDbOPEN = eHANDLE_TRACE_OPERATIONS.OPEN; pub const OperationDbCLOSE = eHANDLE_TRACE_OPERATIONS.CLOSE; pub const OperationDbBADREF = eHANDLE_TRACE_OPERATIONS.BADREF; pub const AVRF_HANDLE_OPERATION = extern struct { Handle: u64, ProcessId: u32, ThreadId: u32, OperationType: u32, Spare0: u32, BackTraceInformation: AVRF_BACKTRACE_INFORMATION, }; pub const eAvrfResourceTypes = enum(i32) { HeapAllocation = 0, HandleTrace = 1, Max = 2, }; pub const AvrfResourceHeapAllocation = eAvrfResourceTypes.HeapAllocation; pub const AvrfResourceHandleTrace = eAvrfResourceTypes.HandleTrace; pub const AvrfResourceMax = eAvrfResourceTypes.Max; pub const AVRF_RESOURCE_ENUMERATE_CALLBACK = switch (@import("builtin").zig_backend) { .stage1 => fn ( ResourceDescription: ?*anyopaque, EnumerationContext: ?*anyopaque, EnumerationLevel: ?*u32, ) callconv(@import("std").os.windows.WINAPI) u32, else => *const fn ( ResourceDescription: ?*anyopaque, EnumerationContext: ?*anyopaque, EnumerationLevel: ?*u32, ) callconv(@import("std").os.windows.WINAPI) u32, }; pub const AVRF_HEAPALLOCATION_ENUMERATE_CALLBACK = switch (@import("builtin").zig_backend) { .stage1 => fn ( HeapAllocation: ?*AVRF_HEAP_ALLOCATION, EnumerationContext: ?*anyopaque, EnumerationLevel: ?*u32, ) callconv(@import("std").os.windows.WINAPI) u32, else => *const fn ( HeapAllocation: ?*AVRF_HEAP_ALLOCATION, EnumerationContext: ?*anyopaque, EnumerationLevel: ?*u32, ) callconv(@import("std").os.windows.WINAPI) u32, }; pub const AVRF_HANDLEOPERATION_ENUMERATE_CALLBACK = switch (@import("builtin").zig_backend) { .stage1 => fn ( HandleOperation: ?*AVRF_HANDLE_OPERATION, EnumerationContext: ?*anyopaque, EnumerationLevel: ?*u32, ) callconv(@import("std").os.windows.WINAPI) u32, else => *const fn ( HandleOperation: ?*AVRF_HANDLE_OPERATION, EnumerationContext: ?*anyopaque, EnumerationLevel: ?*u32, ) callconv(@import("std").os.windows.WINAPI) u32, }; //-------------------------------------------------------------------------------- // Section: Functions (1) //-------------------------------------------------------------------------------- pub extern "verifier" fn VerifierEnumerateResource( Process: ?HANDLE, Flags: VERIFIER_ENUM_RESOURCE_FLAGS, ResourceType: eAvrfResourceTypes, ResourceCallback: ?AVRF_RESOURCE_ENUMERATE_CALLBACK, EnumerationContext: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) u32; //-------------------------------------------------------------------------------- // Section: Unicode Aliases (0) //-------------------------------------------------------------------------------- const thismodule = @This(); pub usingnamespace switch (@import("../zig.zig").unicode_mode) { .ansi => struct {}, .wide => struct {}, .unspecified => if (@import("builtin").is_test) struct {} else struct {}, }; //-------------------------------------------------------------------------------- // Section: Imports (1) //-------------------------------------------------------------------------------- const HANDLE = @import("../foundation.zig").HANDLE; test { // The following '_ = <FuncPtrType>' lines are a workaround for https://github.com/ziglang/zig/issues/4476 if (@hasDecl(@This(), "AVRF_RESOURCE_ENUMERATE_CALLBACK")) { _ = AVRF_RESOURCE_ENUMERATE_CALLBACK; } if (@hasDecl(@This(), "AVRF_HEAPALLOCATION_ENUMERATE_CALLBACK")) { _ = AVRF_HEAPALLOCATION_ENUMERATE_CALLBACK; } if (@hasDecl(@This(), "AVRF_HANDLEOPERATION_ENUMERATE_CALLBACK")) { _ = AVRF_HANDLEOPERATION_ENUMERATE_CALLBACK; } @setEvalBranchQuota(comptime @import("std").meta.declarations(@This()).len * 3); // reference all the pub declarations if (!@import("builtin").is_test) return; inline for (comptime @import("std").meta.declarations(@This())) |decl| { if (decl.is_pub) { _ = @field(@This(), decl.name); } } }
0
repos/capy/vendor/zigwin32/win32
repos/capy/vendor/zigwin32/win32/system/shutdown.zig
//! NOTE: this file is autogenerated, DO NOT MODIFY //-------------------------------------------------------------------------------- // Section: Constants (13) //-------------------------------------------------------------------------------- pub const MAX_REASON_NAME_LEN = @as(u32, 64); pub const MAX_REASON_DESC_LEN = @as(u32, 256); pub const MAX_REASON_BUGID_LEN = @as(u32, 32); pub const MAX_REASON_COMMENT_LEN = @as(u32, 512); pub const SHUTDOWN_TYPE_LEN = @as(u32, 32); pub const POLICY_SHOWREASONUI_NEVER = @as(u32, 0); pub const POLICY_SHOWREASONUI_ALWAYS = @as(u32, 1); pub const POLICY_SHOWREASONUI_WORKSTATIONONLY = @as(u32, 2); pub const POLICY_SHOWREASONUI_SERVERONLY = @as(u32, 3); pub const SNAPSHOT_POLICY_NEVER = @as(u32, 0); pub const SNAPSHOT_POLICY_ALWAYS = @as(u32, 1); pub const SNAPSHOT_POLICY_UNPLANNED = @as(u32, 2); pub const MAX_NUM_REASONS = @as(u32, 256); //-------------------------------------------------------------------------------- // Section: Types (3) //-------------------------------------------------------------------------------- pub const SHUTDOWN_REASON = enum(u32) { NONE = 0, FLAG_COMMENT_REQUIRED = 16777216, FLAG_DIRTY_PROBLEM_ID_REQUIRED = 33554432, FLAG_CLEAN_UI = 67108864, FLAG_DIRTY_UI = 134217728, FLAG_MOBILE_UI_RESERVED = 268435456, FLAG_USER_DEFINED = 1073741824, FLAG_PLANNED = 2147483648, // MAJOR_OTHER = 0, this enum value conflicts with NONE // MAJOR_NONE = 0, this enum value conflicts with NONE MAJOR_HARDWARE = 65536, MAJOR_OPERATINGSYSTEM = 131072, MAJOR_SOFTWARE = 196608, MAJOR_APPLICATION = 262144, MAJOR_SYSTEM = 327680, MAJOR_POWER = 393216, MAJOR_LEGACY_API = 458752, // MINOR_OTHER = 0, this enum value conflicts with NONE MINOR_NONE = 255, MINOR_MAINTENANCE = 1, MINOR_INSTALLATION = 2, MINOR_UPGRADE = 3, MINOR_RECONFIG = 4, MINOR_HUNG = 5, MINOR_UNSTABLE = 6, MINOR_DISK = 7, MINOR_PROCESSOR = 8, MINOR_NETWORKCARD = 9, MINOR_POWER_SUPPLY = 10, MINOR_CORDUNPLUGGED = 11, MINOR_ENVIRONMENT = 12, MINOR_HARDWARE_DRIVER = 13, MINOR_OTHERDRIVER = 14, MINOR_BLUESCREEN = 15, MINOR_SERVICEPACK = 16, MINOR_HOTFIX = 17, MINOR_SECURITYFIX = 18, MINOR_SECURITY = 19, MINOR_NETWORK_CONNECTIVITY = 20, MINOR_WMI = 21, MINOR_SERVICEPACK_UNINSTALL = 22, MINOR_HOTFIX_UNINSTALL = 23, MINOR_SECURITYFIX_UNINSTALL = 24, MINOR_MMC = 25, MINOR_SYSTEMRESTORE = 26, MINOR_TERMSRV = 32, MINOR_DC_PROMOTION = 33, MINOR_DC_DEMOTION = 34, // UNKNOWN = 255, this enum value conflicts with MINOR_NONE LEGACY_API = 2147942400, VALID_BIT_MASK = 3238002687, _, pub fn initFlags(o: struct { NONE: u1 = 0, FLAG_COMMENT_REQUIRED: u1 = 0, FLAG_DIRTY_PROBLEM_ID_REQUIRED: u1 = 0, FLAG_CLEAN_UI: u1 = 0, FLAG_DIRTY_UI: u1 = 0, FLAG_MOBILE_UI_RESERVED: u1 = 0, FLAG_USER_DEFINED: u1 = 0, FLAG_PLANNED: u1 = 0, MAJOR_HARDWARE: u1 = 0, MAJOR_OPERATINGSYSTEM: u1 = 0, MAJOR_SOFTWARE: u1 = 0, MAJOR_APPLICATION: u1 = 0, MAJOR_SYSTEM: u1 = 0, MAJOR_POWER: u1 = 0, MAJOR_LEGACY_API: u1 = 0, MINOR_NONE: u1 = 0, MINOR_MAINTENANCE: u1 = 0, MINOR_INSTALLATION: u1 = 0, MINOR_UPGRADE: u1 = 0, MINOR_RECONFIG: u1 = 0, MINOR_HUNG: u1 = 0, MINOR_UNSTABLE: u1 = 0, MINOR_DISK: u1 = 0, MINOR_PROCESSOR: u1 = 0, MINOR_NETWORKCARD: u1 = 0, MINOR_POWER_SUPPLY: u1 = 0, MINOR_CORDUNPLUGGED: u1 = 0, MINOR_ENVIRONMENT: u1 = 0, MINOR_HARDWARE_DRIVER: u1 = 0, MINOR_OTHERDRIVER: u1 = 0, MINOR_BLUESCREEN: u1 = 0, MINOR_SERVICEPACK: u1 = 0, MINOR_HOTFIX: u1 = 0, MINOR_SECURITYFIX: u1 = 0, MINOR_SECURITY: u1 = 0, MINOR_NETWORK_CONNECTIVITY: u1 = 0, MINOR_WMI: u1 = 0, MINOR_SERVICEPACK_UNINSTALL: u1 = 0, MINOR_HOTFIX_UNINSTALL: u1 = 0, MINOR_SECURITYFIX_UNINSTALL: u1 = 0, MINOR_MMC: u1 = 0, MINOR_SYSTEMRESTORE: u1 = 0, MINOR_TERMSRV: u1 = 0, MINOR_DC_PROMOTION: u1 = 0, MINOR_DC_DEMOTION: u1 = 0, LEGACY_API: u1 = 0, VALID_BIT_MASK: u1 = 0, }) SHUTDOWN_REASON { return @as(SHUTDOWN_REASON, @enumFromInt((if (o.NONE == 1) @intFromEnum(SHUTDOWN_REASON.NONE) else 0) | (if (o.FLAG_COMMENT_REQUIRED == 1) @intFromEnum(SHUTDOWN_REASON.FLAG_COMMENT_REQUIRED) else 0) | (if (o.FLAG_DIRTY_PROBLEM_ID_REQUIRED == 1) @intFromEnum(SHUTDOWN_REASON.FLAG_DIRTY_PROBLEM_ID_REQUIRED) else 0) | (if (o.FLAG_CLEAN_UI == 1) @intFromEnum(SHUTDOWN_REASON.FLAG_CLEAN_UI) else 0) | (if (o.FLAG_DIRTY_UI == 1) @intFromEnum(SHUTDOWN_REASON.FLAG_DIRTY_UI) else 0) | (if (o.FLAG_MOBILE_UI_RESERVED == 1) @intFromEnum(SHUTDOWN_REASON.FLAG_MOBILE_UI_RESERVED) else 0) | (if (o.FLAG_USER_DEFINED == 1) @intFromEnum(SHUTDOWN_REASON.FLAG_USER_DEFINED) else 0) | (if (o.FLAG_PLANNED == 1) @intFromEnum(SHUTDOWN_REASON.FLAG_PLANNED) else 0) | (if (o.MAJOR_HARDWARE == 1) @intFromEnum(SHUTDOWN_REASON.MAJOR_HARDWARE) else 0) | (if (o.MAJOR_OPERATINGSYSTEM == 1) @intFromEnum(SHUTDOWN_REASON.MAJOR_OPERATINGSYSTEM) else 0) | (if (o.MAJOR_SOFTWARE == 1) @intFromEnum(SHUTDOWN_REASON.MAJOR_SOFTWARE) else 0) | (if (o.MAJOR_APPLICATION == 1) @intFromEnum(SHUTDOWN_REASON.MAJOR_APPLICATION) else 0) | (if (o.MAJOR_SYSTEM == 1) @intFromEnum(SHUTDOWN_REASON.MAJOR_SYSTEM) else 0) | (if (o.MAJOR_POWER == 1) @intFromEnum(SHUTDOWN_REASON.MAJOR_POWER) else 0) | (if (o.MAJOR_LEGACY_API == 1) @intFromEnum(SHUTDOWN_REASON.MAJOR_LEGACY_API) else 0) | (if (o.MINOR_NONE == 1) @intFromEnum(SHUTDOWN_REASON.MINOR_NONE) else 0) | (if (o.MINOR_MAINTENANCE == 1) @intFromEnum(SHUTDOWN_REASON.MINOR_MAINTENANCE) else 0) | (if (o.MINOR_INSTALLATION == 1) @intFromEnum(SHUTDOWN_REASON.MINOR_INSTALLATION) else 0) | (if (o.MINOR_UPGRADE == 1) @intFromEnum(SHUTDOWN_REASON.MINOR_UPGRADE) else 0) | (if (o.MINOR_RECONFIG == 1) @intFromEnum(SHUTDOWN_REASON.MINOR_RECONFIG) else 0) | (if (o.MINOR_HUNG == 1) @intFromEnum(SHUTDOWN_REASON.MINOR_HUNG) else 0) | (if (o.MINOR_UNSTABLE == 1) @intFromEnum(SHUTDOWN_REASON.MINOR_UNSTABLE) else 0) | (if (o.MINOR_DISK == 1) @intFromEnum(SHUTDOWN_REASON.MINOR_DISK) else 0) | (if (o.MINOR_PROCESSOR == 1) @intFromEnum(SHUTDOWN_REASON.MINOR_PROCESSOR) else 0) | (if (o.MINOR_NETWORKCARD == 1) @intFromEnum(SHUTDOWN_REASON.MINOR_NETWORKCARD) else 0) | (if (o.MINOR_POWER_SUPPLY == 1) @intFromEnum(SHUTDOWN_REASON.MINOR_POWER_SUPPLY) else 0) | (if (o.MINOR_CORDUNPLUGGED == 1) @intFromEnum(SHUTDOWN_REASON.MINOR_CORDUNPLUGGED) else 0) | (if (o.MINOR_ENVIRONMENT == 1) @intFromEnum(SHUTDOWN_REASON.MINOR_ENVIRONMENT) else 0) | (if (o.MINOR_HARDWARE_DRIVER == 1) @intFromEnum(SHUTDOWN_REASON.MINOR_HARDWARE_DRIVER) else 0) | (if (o.MINOR_OTHERDRIVER == 1) @intFromEnum(SHUTDOWN_REASON.MINOR_OTHERDRIVER) else 0) | (if (o.MINOR_BLUESCREEN == 1) @intFromEnum(SHUTDOWN_REASON.MINOR_BLUESCREEN) else 0) | (if (o.MINOR_SERVICEPACK == 1) @intFromEnum(SHUTDOWN_REASON.MINOR_SERVICEPACK) else 0) | (if (o.MINOR_HOTFIX == 1) @intFromEnum(SHUTDOWN_REASON.MINOR_HOTFIX) else 0) | (if (o.MINOR_SECURITYFIX == 1) @intFromEnum(SHUTDOWN_REASON.MINOR_SECURITYFIX) else 0) | (if (o.MINOR_SECURITY == 1) @intFromEnum(SHUTDOWN_REASON.MINOR_SECURITY) else 0) | (if (o.MINOR_NETWORK_CONNECTIVITY == 1) @intFromEnum(SHUTDOWN_REASON.MINOR_NETWORK_CONNECTIVITY) else 0) | (if (o.MINOR_WMI == 1) @intFromEnum(SHUTDOWN_REASON.MINOR_WMI) else 0) | (if (o.MINOR_SERVICEPACK_UNINSTALL == 1) @intFromEnum(SHUTDOWN_REASON.MINOR_SERVICEPACK_UNINSTALL) else 0) | (if (o.MINOR_HOTFIX_UNINSTALL == 1) @intFromEnum(SHUTDOWN_REASON.MINOR_HOTFIX_UNINSTALL) else 0) | (if (o.MINOR_SECURITYFIX_UNINSTALL == 1) @intFromEnum(SHUTDOWN_REASON.MINOR_SECURITYFIX_UNINSTALL) else 0) | (if (o.MINOR_MMC == 1) @intFromEnum(SHUTDOWN_REASON.MINOR_MMC) else 0) | (if (o.MINOR_SYSTEMRESTORE == 1) @intFromEnum(SHUTDOWN_REASON.MINOR_SYSTEMRESTORE) else 0) | (if (o.MINOR_TERMSRV == 1) @intFromEnum(SHUTDOWN_REASON.MINOR_TERMSRV) else 0) | (if (o.MINOR_DC_PROMOTION == 1) @intFromEnum(SHUTDOWN_REASON.MINOR_DC_PROMOTION) else 0) | (if (o.MINOR_DC_DEMOTION == 1) @intFromEnum(SHUTDOWN_REASON.MINOR_DC_DEMOTION) else 0) | (if (o.LEGACY_API == 1) @intFromEnum(SHUTDOWN_REASON.LEGACY_API) else 0) | (if (o.VALID_BIT_MASK == 1) @intFromEnum(SHUTDOWN_REASON.VALID_BIT_MASK) else 0))); } }; pub const SHTDN_REASON_NONE = SHUTDOWN_REASON.NONE; pub const SHTDN_REASON_FLAG_COMMENT_REQUIRED = SHUTDOWN_REASON.FLAG_COMMENT_REQUIRED; pub const SHTDN_REASON_FLAG_DIRTY_PROBLEM_ID_REQUIRED = SHUTDOWN_REASON.FLAG_DIRTY_PROBLEM_ID_REQUIRED; pub const SHTDN_REASON_FLAG_CLEAN_UI = SHUTDOWN_REASON.FLAG_CLEAN_UI; pub const SHTDN_REASON_FLAG_DIRTY_UI = SHUTDOWN_REASON.FLAG_DIRTY_UI; pub const SHTDN_REASON_FLAG_MOBILE_UI_RESERVED = SHUTDOWN_REASON.FLAG_MOBILE_UI_RESERVED; pub const SHTDN_REASON_FLAG_USER_DEFINED = SHUTDOWN_REASON.FLAG_USER_DEFINED; pub const SHTDN_REASON_FLAG_PLANNED = SHUTDOWN_REASON.FLAG_PLANNED; pub const SHTDN_REASON_MAJOR_OTHER = SHUTDOWN_REASON.NONE; pub const SHTDN_REASON_MAJOR_NONE = SHUTDOWN_REASON.NONE; pub const SHTDN_REASON_MAJOR_HARDWARE = SHUTDOWN_REASON.MAJOR_HARDWARE; pub const SHTDN_REASON_MAJOR_OPERATINGSYSTEM = SHUTDOWN_REASON.MAJOR_OPERATINGSYSTEM; pub const SHTDN_REASON_MAJOR_SOFTWARE = SHUTDOWN_REASON.MAJOR_SOFTWARE; pub const SHTDN_REASON_MAJOR_APPLICATION = SHUTDOWN_REASON.MAJOR_APPLICATION; pub const SHTDN_REASON_MAJOR_SYSTEM = SHUTDOWN_REASON.MAJOR_SYSTEM; pub const SHTDN_REASON_MAJOR_POWER = SHUTDOWN_REASON.MAJOR_POWER; pub const SHTDN_REASON_MAJOR_LEGACY_API = SHUTDOWN_REASON.MAJOR_LEGACY_API; pub const SHTDN_REASON_MINOR_OTHER = SHUTDOWN_REASON.NONE; pub const SHTDN_REASON_MINOR_NONE = SHUTDOWN_REASON.MINOR_NONE; pub const SHTDN_REASON_MINOR_MAINTENANCE = SHUTDOWN_REASON.MINOR_MAINTENANCE; pub const SHTDN_REASON_MINOR_INSTALLATION = SHUTDOWN_REASON.MINOR_INSTALLATION; pub const SHTDN_REASON_MINOR_UPGRADE = SHUTDOWN_REASON.MINOR_UPGRADE; pub const SHTDN_REASON_MINOR_RECONFIG = SHUTDOWN_REASON.MINOR_RECONFIG; pub const SHTDN_REASON_MINOR_HUNG = SHUTDOWN_REASON.MINOR_HUNG; pub const SHTDN_REASON_MINOR_UNSTABLE = SHUTDOWN_REASON.MINOR_UNSTABLE; pub const SHTDN_REASON_MINOR_DISK = SHUTDOWN_REASON.MINOR_DISK; pub const SHTDN_REASON_MINOR_PROCESSOR = SHUTDOWN_REASON.MINOR_PROCESSOR; pub const SHTDN_REASON_MINOR_NETWORKCARD = SHUTDOWN_REASON.MINOR_NETWORKCARD; pub const SHTDN_REASON_MINOR_POWER_SUPPLY = SHUTDOWN_REASON.MINOR_POWER_SUPPLY; pub const SHTDN_REASON_MINOR_CORDUNPLUGGED = SHUTDOWN_REASON.MINOR_CORDUNPLUGGED; pub const SHTDN_REASON_MINOR_ENVIRONMENT = SHUTDOWN_REASON.MINOR_ENVIRONMENT; pub const SHTDN_REASON_MINOR_HARDWARE_DRIVER = SHUTDOWN_REASON.MINOR_HARDWARE_DRIVER; pub const SHTDN_REASON_MINOR_OTHERDRIVER = SHUTDOWN_REASON.MINOR_OTHERDRIVER; pub const SHTDN_REASON_MINOR_BLUESCREEN = SHUTDOWN_REASON.MINOR_BLUESCREEN; pub const SHTDN_REASON_MINOR_SERVICEPACK = SHUTDOWN_REASON.MINOR_SERVICEPACK; pub const SHTDN_REASON_MINOR_HOTFIX = SHUTDOWN_REASON.MINOR_HOTFIX; pub const SHTDN_REASON_MINOR_SECURITYFIX = SHUTDOWN_REASON.MINOR_SECURITYFIX; pub const SHTDN_REASON_MINOR_SECURITY = SHUTDOWN_REASON.MINOR_SECURITY; pub const SHTDN_REASON_MINOR_NETWORK_CONNECTIVITY = SHUTDOWN_REASON.MINOR_NETWORK_CONNECTIVITY; pub const SHTDN_REASON_MINOR_WMI = SHUTDOWN_REASON.MINOR_WMI; pub const SHTDN_REASON_MINOR_SERVICEPACK_UNINSTALL = SHUTDOWN_REASON.MINOR_SERVICEPACK_UNINSTALL; pub const SHTDN_REASON_MINOR_HOTFIX_UNINSTALL = SHUTDOWN_REASON.MINOR_HOTFIX_UNINSTALL; pub const SHTDN_REASON_MINOR_SECURITYFIX_UNINSTALL = SHUTDOWN_REASON.MINOR_SECURITYFIX_UNINSTALL; pub const SHTDN_REASON_MINOR_MMC = SHUTDOWN_REASON.MINOR_MMC; pub const SHTDN_REASON_MINOR_SYSTEMRESTORE = SHUTDOWN_REASON.MINOR_SYSTEMRESTORE; pub const SHTDN_REASON_MINOR_TERMSRV = SHUTDOWN_REASON.MINOR_TERMSRV; pub const SHTDN_REASON_MINOR_DC_PROMOTION = SHUTDOWN_REASON.MINOR_DC_PROMOTION; pub const SHTDN_REASON_MINOR_DC_DEMOTION = SHUTDOWN_REASON.MINOR_DC_DEMOTION; pub const SHTDN_REASON_UNKNOWN = SHUTDOWN_REASON.MINOR_NONE; pub const SHTDN_REASON_LEGACY_API = SHUTDOWN_REASON.LEGACY_API; pub const SHTDN_REASON_VALID_BIT_MASK = SHUTDOWN_REASON.VALID_BIT_MASK; pub const SHUTDOWN_FLAGS = enum(u32) { FORCE_OTHERS = 1, FORCE_SELF = 2, RESTART = 4, POWEROFF = 8, NOREBOOT = 16, GRACE_OVERRIDE = 32, INSTALL_UPDATES = 64, RESTARTAPPS = 128, SKIP_SVC_PRESHUTDOWN = 256, HYBRID = 512, RESTART_BOOTOPTIONS = 1024, SOFT_REBOOT = 2048, MOBILE_UI = 4096, ARSO = 8192, CHECK_SAFE_FOR_SERVER = 16384, VAIL_CONTAINER = 32768, SYSTEM_INITIATED = 65536, _, pub fn initFlags(o: struct { FORCE_OTHERS: u1 = 0, FORCE_SELF: u1 = 0, RESTART: u1 = 0, POWEROFF: u1 = 0, NOREBOOT: u1 = 0, GRACE_OVERRIDE: u1 = 0, INSTALL_UPDATES: u1 = 0, RESTARTAPPS: u1 = 0, SKIP_SVC_PRESHUTDOWN: u1 = 0, HYBRID: u1 = 0, RESTART_BOOTOPTIONS: u1 = 0, SOFT_REBOOT: u1 = 0, MOBILE_UI: u1 = 0, ARSO: u1 = 0, CHECK_SAFE_FOR_SERVER: u1 = 0, VAIL_CONTAINER: u1 = 0, SYSTEM_INITIATED: u1 = 0, }) SHUTDOWN_FLAGS { return @as(SHUTDOWN_FLAGS, @enumFromInt((if (o.FORCE_OTHERS == 1) @intFromEnum(SHUTDOWN_FLAGS.FORCE_OTHERS) else 0) | (if (o.FORCE_SELF == 1) @intFromEnum(SHUTDOWN_FLAGS.FORCE_SELF) else 0) | (if (o.RESTART == 1) @intFromEnum(SHUTDOWN_FLAGS.RESTART) else 0) | (if (o.POWEROFF == 1) @intFromEnum(SHUTDOWN_FLAGS.POWEROFF) else 0) | (if (o.NOREBOOT == 1) @intFromEnum(SHUTDOWN_FLAGS.NOREBOOT) else 0) | (if (o.GRACE_OVERRIDE == 1) @intFromEnum(SHUTDOWN_FLAGS.GRACE_OVERRIDE) else 0) | (if (o.INSTALL_UPDATES == 1) @intFromEnum(SHUTDOWN_FLAGS.INSTALL_UPDATES) else 0) | (if (o.RESTARTAPPS == 1) @intFromEnum(SHUTDOWN_FLAGS.RESTARTAPPS) else 0) | (if (o.SKIP_SVC_PRESHUTDOWN == 1) @intFromEnum(SHUTDOWN_FLAGS.SKIP_SVC_PRESHUTDOWN) else 0) | (if (o.HYBRID == 1) @intFromEnum(SHUTDOWN_FLAGS.HYBRID) else 0) | (if (o.RESTART_BOOTOPTIONS == 1) @intFromEnum(SHUTDOWN_FLAGS.RESTART_BOOTOPTIONS) else 0) | (if (o.SOFT_REBOOT == 1) @intFromEnum(SHUTDOWN_FLAGS.SOFT_REBOOT) else 0) | (if (o.MOBILE_UI == 1) @intFromEnum(SHUTDOWN_FLAGS.MOBILE_UI) else 0) | (if (o.ARSO == 1) @intFromEnum(SHUTDOWN_FLAGS.ARSO) else 0) | (if (o.CHECK_SAFE_FOR_SERVER == 1) @intFromEnum(SHUTDOWN_FLAGS.CHECK_SAFE_FOR_SERVER) else 0) | (if (o.VAIL_CONTAINER == 1) @intFromEnum(SHUTDOWN_FLAGS.VAIL_CONTAINER) else 0) | (if (o.SYSTEM_INITIATED == 1) @intFromEnum(SHUTDOWN_FLAGS.SYSTEM_INITIATED) else 0))); } }; pub const SHUTDOWN_FORCE_OTHERS = SHUTDOWN_FLAGS.FORCE_OTHERS; pub const SHUTDOWN_FORCE_SELF = SHUTDOWN_FLAGS.FORCE_SELF; pub const SHUTDOWN_RESTART = SHUTDOWN_FLAGS.RESTART; pub const SHUTDOWN_POWEROFF = SHUTDOWN_FLAGS.POWEROFF; pub const SHUTDOWN_NOREBOOT = SHUTDOWN_FLAGS.NOREBOOT; pub const SHUTDOWN_GRACE_OVERRIDE = SHUTDOWN_FLAGS.GRACE_OVERRIDE; pub const SHUTDOWN_INSTALL_UPDATES = SHUTDOWN_FLAGS.INSTALL_UPDATES; pub const SHUTDOWN_RESTARTAPPS = SHUTDOWN_FLAGS.RESTARTAPPS; pub const SHUTDOWN_SKIP_SVC_PRESHUTDOWN = SHUTDOWN_FLAGS.SKIP_SVC_PRESHUTDOWN; pub const SHUTDOWN_HYBRID = SHUTDOWN_FLAGS.HYBRID; pub const SHUTDOWN_RESTART_BOOTOPTIONS = SHUTDOWN_FLAGS.RESTART_BOOTOPTIONS; pub const SHUTDOWN_SOFT_REBOOT = SHUTDOWN_FLAGS.SOFT_REBOOT; pub const SHUTDOWN_MOBILE_UI = SHUTDOWN_FLAGS.MOBILE_UI; pub const SHUTDOWN_ARSO = SHUTDOWN_FLAGS.ARSO; pub const SHUTDOWN_CHECK_SAFE_FOR_SERVER = SHUTDOWN_FLAGS.CHECK_SAFE_FOR_SERVER; pub const SHUTDOWN_VAIL_CONTAINER = SHUTDOWN_FLAGS.VAIL_CONTAINER; pub const SHUTDOWN_SYSTEM_INITIATED = SHUTDOWN_FLAGS.SYSTEM_INITIATED; pub const EXIT_WINDOWS_FLAGS = enum(u32) { HYBRID_SHUTDOWN = 4194304, LOGOFF = 0, POWEROFF = 8, REBOOT = 2, RESTARTAPPS = 64, SHUTDOWN = 1, }; pub const EWX_HYBRID_SHUTDOWN = EXIT_WINDOWS_FLAGS.HYBRID_SHUTDOWN; pub const EWX_LOGOFF = EXIT_WINDOWS_FLAGS.LOGOFF; pub const EWX_POWEROFF = EXIT_WINDOWS_FLAGS.POWEROFF; pub const EWX_REBOOT = EXIT_WINDOWS_FLAGS.REBOOT; pub const EWX_RESTARTAPPS = EXIT_WINDOWS_FLAGS.RESTARTAPPS; pub const EWX_SHUTDOWN = EXIT_WINDOWS_FLAGS.SHUTDOWN; //-------------------------------------------------------------------------------- // Section: Functions (14) //-------------------------------------------------------------------------------- // TODO: this type is limited to platform 'windows5.1.2600' pub extern "advapi32" fn InitiateSystemShutdownA( lpMachineName: ?PSTR, lpMessage: ?PSTR, dwTimeout: u32, bForceAppsClosed: BOOL, bRebootAfterShutdown: BOOL, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "advapi32" fn InitiateSystemShutdownW( lpMachineName: ?PWSTR, lpMessage: ?PWSTR, dwTimeout: u32, bForceAppsClosed: BOOL, bRebootAfterShutdown: BOOL, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "advapi32" fn AbortSystemShutdownA( lpMachineName: ?PSTR, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "advapi32" fn AbortSystemShutdownW( lpMachineName: ?PWSTR, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "advapi32" fn InitiateSystemShutdownExA( lpMachineName: ?PSTR, lpMessage: ?PSTR, dwTimeout: u32, bForceAppsClosed: BOOL, bRebootAfterShutdown: BOOL, dwReason: SHUTDOWN_REASON, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "advapi32" fn InitiateSystemShutdownExW( lpMachineName: ?PWSTR, lpMessage: ?PWSTR, dwTimeout: u32, bForceAppsClosed: BOOL, bRebootAfterShutdown: BOOL, dwReason: SHUTDOWN_REASON, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows6.0.6000' pub extern "advapi32" fn InitiateShutdownA( lpMachineName: ?PSTR, lpMessage: ?PSTR, dwGracePeriod: u32, dwShutdownFlags: SHUTDOWN_FLAGS, dwReason: SHUTDOWN_REASON, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'windows6.0.6000' pub extern "advapi32" fn InitiateShutdownW( lpMachineName: ?PWSTR, lpMessage: ?PWSTR, dwGracePeriod: u32, dwShutdownFlags: SHUTDOWN_FLAGS, dwReason: SHUTDOWN_REASON, ) callconv(@import("std").os.windows.WINAPI) u32; pub extern "advapi32" fn CheckForHiberboot( pHiberboot: ?*BOOLEAN, bClearFlag: BOOLEAN, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "user32" fn ExitWindowsEx( uFlags: EXIT_WINDOWS_FLAGS, dwReason: u32, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "user32" fn LockWorkStation() callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows6.0.6000' pub extern "user32" fn ShutdownBlockReasonCreate( hWnd: ?HWND, pwszReason: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows6.0.6000' pub extern "user32" fn ShutdownBlockReasonQuery( hWnd: ?HWND, pwszBuff: ?[*:0]u16, pcchBuff: ?*u32, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows6.0.6000' pub extern "user32" fn ShutdownBlockReasonDestroy( hWnd: ?HWND, ) callconv(@import("std").os.windows.WINAPI) BOOL; //-------------------------------------------------------------------------------- // Section: Unicode Aliases (4) //-------------------------------------------------------------------------------- const thismodule = @This(); pub usingnamespace switch (@import("../zig.zig").unicode_mode) { .ansi => struct { pub const InitiateSystemShutdown = thismodule.InitiateSystemShutdownA; pub const AbortSystemShutdown = thismodule.AbortSystemShutdownA; pub const InitiateSystemShutdownEx = thismodule.InitiateSystemShutdownExA; pub const InitiateShutdown = thismodule.InitiateShutdownA; }, .wide => struct { pub const InitiateSystemShutdown = thismodule.InitiateSystemShutdownW; pub const AbortSystemShutdown = thismodule.AbortSystemShutdownW; pub const InitiateSystemShutdownEx = thismodule.InitiateSystemShutdownExW; pub const InitiateShutdown = thismodule.InitiateShutdownW; }, .unspecified => if (@import("builtin").is_test) struct { pub const InitiateSystemShutdown = *opaque {}; pub const AbortSystemShutdown = *opaque {}; pub const InitiateSystemShutdownEx = *opaque {}; pub const InitiateShutdown = *opaque {}; } else struct { pub const InitiateSystemShutdown = @compileError("'InitiateSystemShutdown' requires that UNICODE be set to true or false in the root module"); pub const AbortSystemShutdown = @compileError("'AbortSystemShutdown' requires that UNICODE be set to true or false in the root module"); pub const InitiateSystemShutdownEx = @compileError("'InitiateSystemShutdownEx' requires that UNICODE be set to true or false in the root module"); pub const InitiateShutdown = @compileError("'InitiateShutdown' requires that UNICODE be set to true or false in the root module"); }, }; //-------------------------------------------------------------------------------- // Section: Imports (5) //-------------------------------------------------------------------------------- const BOOL = @import("../foundation.zig").BOOL; const BOOLEAN = @import("../foundation.zig").BOOLEAN; const HWND = @import("../foundation.zig").HWND; const PSTR = @import("../foundation.zig").PSTR; const PWSTR = @import("../foundation.zig").PWSTR; test { @setEvalBranchQuota(comptime @import("std").meta.declarations(@This()).len * 3); // reference all the pub declarations if (!@import("builtin").is_test) return; inline for (comptime @import("std").meta.declarations(@This())) |decl| { if (decl.is_pub) { _ = @field(@This(), decl.name); } } }
0
repos/capy/vendor/zigwin32/win32
repos/capy/vendor/zigwin32/win32/system/remote_assistance.zig
//! NOTE: this file is autogenerated, DO NOT MODIFY //-------------------------------------------------------------------------------- // Section: Constants (4) //-------------------------------------------------------------------------------- pub const DISPID_EVENT_ON_STATE_CHANGED = @as(u32, 5); pub const DISPID_EVENT_ON_TERMINATION = @as(u32, 6); pub const DISPID_EVENT_ON_CONTEXT_DATA = @as(u32, 7); pub const DISPID_EVENT_ON_SEND_ERROR = @as(u32, 8); //-------------------------------------------------------------------------------- // Section: Types (6) //-------------------------------------------------------------------------------- const CLSID_RendezvousApplication_Value = Guid.initString("0b7e019a-b5de-47fa-8966-9082f82fb192"); pub const CLSID_RendezvousApplication = &CLSID_RendezvousApplication_Value; pub const RENDEZVOUS_SESSION_STATE = enum(i32) { UNKNOWN = 0, READY = 1, INVITATION = 2, ACCEPTED = 3, CONNECTED = 4, CANCELLED = 5, DECLINED = 6, TERMINATED = 7, }; pub const RSS_UNKNOWN = RENDEZVOUS_SESSION_STATE.UNKNOWN; pub const RSS_READY = RENDEZVOUS_SESSION_STATE.READY; pub const RSS_INVITATION = RENDEZVOUS_SESSION_STATE.INVITATION; pub const RSS_ACCEPTED = RENDEZVOUS_SESSION_STATE.ACCEPTED; pub const RSS_CONNECTED = RENDEZVOUS_SESSION_STATE.CONNECTED; pub const RSS_CANCELLED = RENDEZVOUS_SESSION_STATE.CANCELLED; pub const RSS_DECLINED = RENDEZVOUS_SESSION_STATE.DECLINED; pub const RSS_TERMINATED = RENDEZVOUS_SESSION_STATE.TERMINATED; pub const RENDEZVOUS_SESSION_FLAGS = enum(i32) { NONE = 0, INVITER = 1, INVITEE = 2, ORIGINAL_INVITER = 4, REMOTE_LEGACYSESSION = 8, REMOTE_WIN7SESSION = 16, }; pub const RSF_NONE = RENDEZVOUS_SESSION_FLAGS.NONE; pub const RSF_INVITER = RENDEZVOUS_SESSION_FLAGS.INVITER; pub const RSF_INVITEE = RENDEZVOUS_SESSION_FLAGS.INVITEE; pub const RSF_ORIGINAL_INVITER = RENDEZVOUS_SESSION_FLAGS.ORIGINAL_INVITER; pub const RSF_REMOTE_LEGACYSESSION = RENDEZVOUS_SESSION_FLAGS.REMOTE_LEGACYSESSION; pub const RSF_REMOTE_WIN7SESSION = RENDEZVOUS_SESSION_FLAGS.REMOTE_WIN7SESSION; // TODO: this type is limited to platform 'windows6.0.6000' const IID_IRendezvousSession_Value = Guid.initString("9ba4b1dd-8b0c-48b7-9e7c-2f25857c8df5"); pub const IID_IRendezvousSession = &IID_IRendezvousSession_Value; pub const IRendezvousSession = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, // TODO: this function has a "SpecialName", should Zig do anything with this? get_State: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IRendezvousSession, pSessionState: ?*RENDEZVOUS_SESSION_STATE, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IRendezvousSession, pSessionState: ?*RENDEZVOUS_SESSION_STATE, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_RemoteUser: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IRendezvousSession, bstrUserName: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IRendezvousSession, bstrUserName: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Flags: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IRendezvousSession, pFlags: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IRendezvousSession, pFlags: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SendContextData: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IRendezvousSession, bstrData: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IRendezvousSession, bstrData: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Terminate: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IRendezvousSession, hr: HRESULT, bstrAppData: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IRendezvousSession, hr: HRESULT, bstrAppData: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRendezvousSession_get_State(self: *const T, pSessionState: ?*RENDEZVOUS_SESSION_STATE) HRESULT { return @as(*const IRendezvousSession.VTable, @ptrCast(self.vtable)).get_State(@as(*const IRendezvousSession, @ptrCast(self)), pSessionState); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRendezvousSession_get_RemoteUser(self: *const T, bstrUserName: ?*?BSTR) HRESULT { return @as(*const IRendezvousSession.VTable, @ptrCast(self.vtable)).get_RemoteUser(@as(*const IRendezvousSession, @ptrCast(self)), bstrUserName); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRendezvousSession_get_Flags(self: *const T, pFlags: ?*i32) HRESULT { return @as(*const IRendezvousSession.VTable, @ptrCast(self.vtable)).get_Flags(@as(*const IRendezvousSession, @ptrCast(self)), pFlags); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRendezvousSession_SendContextData(self: *const T, bstrData: ?BSTR) HRESULT { return @as(*const IRendezvousSession.VTable, @ptrCast(self.vtable)).SendContextData(@as(*const IRendezvousSession, @ptrCast(self)), bstrData); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRendezvousSession_Terminate(self: *const T, hr: HRESULT, bstrAppData: ?BSTR) HRESULT { return @as(*const IRendezvousSession.VTable, @ptrCast(self.vtable)).Terminate(@as(*const IRendezvousSession, @ptrCast(self)), hr, bstrAppData); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows6.0.6000' const IID_DRendezvousSessionEvents_Value = Guid.initString("3fa19cf8-64c4-4f53-ae60-635b3806eca6"); pub const IID_DRendezvousSessionEvents = &IID_DRendezvousSessionEvents_Value; pub const DRendezvousSessionEvents = extern struct { pub const VTable = extern struct { base: IDispatch.VTable, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IDispatch.MethodMixin(T); }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows6.0.6000' const IID_IRendezvousApplication_Value = Guid.initString("4f4d070b-a275-49fb-b10d-8ec26387b50d"); pub const IID_IRendezvousApplication = &IID_IRendezvousApplication_Value; pub const IRendezvousApplication = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, SetRendezvousSession: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IRendezvousApplication, pRendezvousSession: ?*IUnknown, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IRendezvousApplication, pRendezvousSession: ?*IUnknown, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRendezvousApplication_SetRendezvousSession(self: *const T, pRendezvousSession: ?*IUnknown) HRESULT { return @as(*const IRendezvousApplication.VTable, @ptrCast(self.vtable)).SetRendezvousSession(@as(*const IRendezvousApplication, @ptrCast(self)), pRendezvousSession); } }; } pub usingnamespace MethodMixin(@This()); }; //-------------------------------------------------------------------------------- // Section: Functions (0) //-------------------------------------------------------------------------------- //-------------------------------------------------------------------------------- // Section: Unicode Aliases (0) //-------------------------------------------------------------------------------- const thismodule = @This(); pub usingnamespace switch (@import("../zig.zig").unicode_mode) { .ansi => struct {}, .wide => struct {}, .unspecified => if (@import("builtin").is_test) struct {} else struct {}, }; //-------------------------------------------------------------------------------- // Section: Imports (5) //-------------------------------------------------------------------------------- const Guid = @import("../zig.zig").Guid; const BSTR = @import("../foundation.zig").BSTR; const HRESULT = @import("../foundation.zig").HRESULT; const IDispatch = @import("../system/com.zig").IDispatch; const IUnknown = @import("../system/com.zig").IUnknown; test { @setEvalBranchQuota(comptime @import("std").meta.declarations(@This()).len * 3); // reference all the pub declarations if (!@import("builtin").is_test) return; inline for (comptime @import("std").meta.declarations(@This())) |decl| { if (decl.is_pub) { _ = @field(@This(), decl.name); } } }
0
repos/capy/vendor/zigwin32/win32
repos/capy/vendor/zigwin32/win32/system/search.zig
//! NOTE: this file is autogenerated, DO NOT MODIFY //-------------------------------------------------------------------------------- // Section: Constants (3384) //-------------------------------------------------------------------------------- pub const SI_TEMPORARY = @as(u32, 2147483648); pub const SUBSINFO_ALLFLAGS = @as(u32, 61311); pub const RS_READY = @as(u32, 1); pub const RS_SUSPENDED = @as(u32, 2); pub const RS_UPDATING = @as(u32, 4); pub const RS_SUSPENDONIDLE = @as(u32, 65536); pub const RS_MAYBOTHERUSER = @as(u32, 131072); pub const RS_COMPLETED = @as(u32, 2147483648); pub const SUBSMGRUPDATE_MINIMIZE = @as(u32, 1); pub const SUBSMGRUPDATE_MASK = @as(u32, 1); pub const SUBSMGRENUM_TEMP = @as(u32, 1); pub const SUBSMGRENUM_MASK = @as(u32, 1); pub const INET_E_AGENT_MAX_SIZE_EXCEEDED = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2146693248)); pub const INET_S_AGENT_PART_FAIL = @import("../zig.zig").typedConst(HRESULT, @as(i32, 790401)); pub const INET_E_AGENT_CACHE_SIZE_EXCEEDED = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2146693246)); pub const INET_E_AGENT_CONNECTION_FAILED = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2146693245)); pub const INET_E_SCHEDULED_UPDATES_DISABLED = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2146693244)); pub const INET_E_SCHEDULED_UPDATES_RESTRICTED = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2146693243)); pub const INET_E_SCHEDULED_UPDATE_INTERVAL = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2146693242)); pub const INET_E_SCHEDULED_EXCLUDE_RANGE = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2146693241)); pub const INET_E_AGENT_EXCEEDING_CACHE_SIZE = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2146693232)); pub const INET_S_AGENT_INCREASED_CACHE_SIZE = @import("../zig.zig").typedConst(HRESULT, @as(i32, 790416)); pub const OLEDBVER = @as(u32, 624); pub const DB_NULL_HACCESSOR = @as(u32, 0); pub const DB_INVALID_HACCESSOR = @as(u32, 0); pub const DB_NULL_HROW = @as(u32, 0); pub const DB_NULL_HCHAPTER = @as(u32, 0); pub const DB_INVALID_HCHAPTER = @as(u32, 0); pub const STD_BOOKMARKLENGTH = @as(u32, 1); pub const DBPROPVAL_BMK_NUMERIC = @as(i32, 1); pub const DBPROPVAL_BMK_KEY = @as(i32, 2); pub const DBPROPVAL_CL_START = @as(i32, 1); pub const DBPROPVAL_CL_END = @as(i32, 2); pub const DBPROPVAL_CU_DML_STATEMENTS = @as(i32, 1); pub const DBPROPVAL_CU_TABLE_DEFINITION = @as(i32, 2); pub const DBPROPVAL_CU_INDEX_DEFINITION = @as(i32, 4); pub const DBPROPVAL_CU_PRIVILEGE_DEFINITION = @as(i32, 8); pub const DBPROPVAL_CD_NOTNULL = @as(i32, 1); pub const DBPROPVAL_CB_NULL = @as(i32, 1); pub const DBPROPVAL_CB_NON_NULL = @as(i32, 2); pub const DBPROPVAL_FU_NOT_SUPPORTED = @as(i32, 1); pub const DBPROPVAL_FU_COLUMN = @as(i32, 2); pub const DBPROPVAL_FU_TABLE = @as(i32, 4); pub const DBPROPVAL_FU_CATALOG = @as(i32, 8); pub const DBPROPVAL_GB_NOT_SUPPORTED = @as(i32, 1); pub const DBPROPVAL_GB_EQUALS_SELECT = @as(i32, 2); pub const DBPROPVAL_GB_CONTAINS_SELECT = @as(i32, 4); pub const DBPROPVAL_GB_NO_RELATION = @as(i32, 8); pub const DBPROPVAL_HT_DIFFERENT_CATALOGS = @as(i32, 1); pub const DBPROPVAL_HT_DIFFERENT_PROVIDERS = @as(i32, 2); pub const DBPROPVAL_IC_UPPER = @as(i32, 1); pub const DBPROPVAL_IC_LOWER = @as(i32, 2); pub const DBPROPVAL_IC_SENSITIVE = @as(i32, 4); pub const DBPROPVAL_IC_MIXED = @as(i32, 8); pub const DBPROPVAL_LM_NONE = @as(i32, 1); pub const DBPROPVAL_LM_READ = @as(i32, 2); pub const DBPROPVAL_LM_INTENT = @as(i32, 4); pub const DBPROPVAL_LM_RITE = @as(i32, 8); pub const DBPROPVAL_NP_OKTODO = @as(i32, 1); pub const DBPROPVAL_NP_ABOUTTODO = @as(i32, 2); pub const DBPROPVAL_NP_SYNCHAFTER = @as(i32, 4); pub const DBPROPVAL_NP_FAILEDTODO = @as(i32, 8); pub const DBPROPVAL_NP_DIDEVENT = @as(i32, 16); pub const DBPROPVAL_NC_END = @as(i32, 1); pub const DBPROPVAL_NC_HIGH = @as(i32, 2); pub const DBPROPVAL_NC_LOW = @as(i32, 4); pub const DBPROPVAL_NC_START = @as(i32, 8); pub const DBPROPVAL_OO_BLOB = @as(i32, 1); pub const DBPROPVAL_OO_IPERSIST = @as(i32, 2); pub const DBPROPVAL_CB_DELETE = @as(i32, 1); pub const DBPROPVAL_CB_PRESERVE = @as(i32, 2); pub const DBPROPVAL_SU_DML_STATEMENTS = @as(i32, 1); pub const DBPROPVAL_SU_TABLE_DEFINITION = @as(i32, 2); pub const DBPROPVAL_SU_INDEX_DEFINITION = @as(i32, 4); pub const DBPROPVAL_SU_PRIVILEGE_DEFINITION = @as(i32, 8); pub const DBPROPVAL_SQ_CORRELATEDSUBQUERIES = @as(i32, 1); pub const DBPROPVAL_SQ_COMPARISON = @as(i32, 2); pub const DBPROPVAL_SQ_EXISTS = @as(i32, 4); pub const DBPROPVAL_SQ_IN = @as(i32, 8); pub const DBPROPVAL_SQ_QUANTIFIED = @as(i32, 16); pub const DBPROPVAL_SQ_TABLE = @as(i32, 32); pub const DBPROPVAL_SS_ISEQUENTIALSTREAM = @as(i32, 1); pub const DBPROPVAL_SS_ISTREAM = @as(i32, 2); pub const DBPROPVAL_SS_ISTORAGE = @as(i32, 4); pub const DBPROPVAL_SS_ILOCKBYTES = @as(i32, 8); pub const DBPROPVAL_TI_CHAOS = @as(i32, 16); pub const DBPROPVAL_TI_READUNCOMMITTED = @as(i32, 256); pub const DBPROPVAL_TI_BROWSE = @as(i32, 256); pub const DBPROPVAL_TI_CURSORSTABILITY = @as(i32, 4096); pub const DBPROPVAL_TI_READCOMMITTED = @as(i32, 4096); pub const DBPROPVAL_TI_REPEATABLEREAD = @as(i32, 65536); pub const DBPROPVAL_TI_SERIALIZABLE = @as(i32, 1048576); pub const DBPROPVAL_TI_ISOLATED = @as(i32, 1048576); pub const DBPROPVAL_TR_COMMIT_DC = @as(i32, 1); pub const DBPROPVAL_TR_COMMIT = @as(i32, 2); pub const DBPROPVAL_TR_COMMIT_NO = @as(i32, 4); pub const DBPROPVAL_TR_ABORT_DC = @as(i32, 8); pub const DBPROPVAL_TR_ABORT = @as(i32, 16); pub const DBPROPVAL_TR_ABORT_NO = @as(i32, 32); pub const DBPROPVAL_TR_DONTCARE = @as(i32, 64); pub const DBPROPVAL_TR_BOTH = @as(i32, 128); pub const DBPROPVAL_TR_NONE = @as(i32, 256); pub const DBPROPVAL_TR_OPTIMISTIC = @as(i32, 512); pub const DBPROPVAL_RT_FREETHREAD = @as(i32, 1); pub const DBPROPVAL_RT_APTMTTHREAD = @as(i32, 2); pub const DBPROPVAL_RT_SINGLETHREAD = @as(i32, 4); pub const DBPROPVAL_UP_CHANGE = @as(i32, 1); pub const DBPROPVAL_UP_DELETE = @as(i32, 2); pub const DBPROPVAL_UP_INSERT = @as(i32, 4); pub const DBPROPVAL_SQL_NONE = @as(i32, 0); pub const DBPROPVAL_SQL_ODBC_MINIMUM = @as(i32, 1); pub const DBPROPVAL_SQL_ODBC_CORE = @as(i32, 2); pub const DBPROPVAL_SQL_ODBC_EXTENDED = @as(i32, 4); pub const DBPROPVAL_SQL_ANSI89_IEF = @as(i32, 8); pub const DBPROPVAL_SQL_ANSI92_ENTRY = @as(i32, 16); pub const DBPROPVAL_SQL_FIPS_TRANSITIONAL = @as(i32, 32); pub const DBPROPVAL_SQL_ANSI92_INTERMEDIATE = @as(i32, 64); pub const DBPROPVAL_SQL_ANSI92_FULL = @as(i32, 128); pub const DBPROPVAL_SQL_ESCAPECLAUSES = @as(i32, 256); pub const DBPROPVAL_IT_BTREE = @as(i32, 1); pub const DBPROPVAL_IT_HASH = @as(i32, 2); pub const DBPROPVAL_IT_CONTENT = @as(i32, 3); pub const DBPROPVAL_IT_OTHER = @as(i32, 4); pub const DBPROPVAL_IN_DISALLOWNULL = @as(i32, 1); pub const DBPROPVAL_IN_IGNORENULL = @as(i32, 2); pub const DBPROPVAL_IN_IGNOREANYNULL = @as(i32, 4); pub const DBPROPVAL_TC_NONE = @as(i32, 0); pub const DBPROPVAL_TC_DML = @as(i32, 1); pub const DBPROPVAL_TC_DDL_COMMIT = @as(i32, 2); pub const DBPROPVAL_TC_DDL_IGNORE = @as(i32, 4); pub const DBPROPVAL_TC_ALL = @as(i32, 8); pub const DBPROPVAL_OA_NOTSUPPORTED = @as(i32, 1); pub const DBPROPVAL_OA_ATEXECUTE = @as(i32, 2); pub const DBPROPVAL_OA_ATROWRELEASE = @as(i32, 4); pub const DBPROPVAL_MR_NOTSUPPORTED = @as(i32, 0); pub const DBPROPVAL_MR_SUPPORTED = @as(i32, 1); pub const DBPROPVAL_MR_CONCURRENT = @as(i32, 2); pub const DBPROPVAL_PT_GUID_NAME = @as(i32, 1); pub const DBPROPVAL_PT_GUID_PROPID = @as(i32, 2); pub const DBPROPVAL_PT_NAME = @as(i32, 4); pub const DBPROPVAL_PT_GUID = @as(i32, 8); pub const DBPROPVAL_PT_PROPID = @as(i32, 16); pub const DBPROPVAL_PT_PGUID_NAME = @as(i32, 32); pub const DBPROPVAL_PT_PGUID_PROPID = @as(i32, 64); pub const DBPROPVAL_NT_SINGLEROW = @as(i32, 1); pub const DBPROPVAL_NT_MULTIPLEROWS = @as(i32, 2); pub const DBPROPVAL_ASYNCH_INITIALIZE = @as(i32, 1); pub const DBPROPVAL_ASYNCH_SEQUENTIALPOPULATION = @as(i32, 2); pub const DBPROPVAL_ASYNCH_RANDOMPOPULATION = @as(i32, 4); pub const DBPROPVAL_OP_EQUAL = @as(i32, 1); pub const DBPROPVAL_OP_RELATIVE = @as(i32, 2); pub const DBPROPVAL_OP_STRING = @as(i32, 4); pub const DBPROPVAL_CO_EQUALITY = @as(i32, 1); pub const DBPROPVAL_CO_STRING = @as(i32, 2); pub const DBPROPVAL_CO_CASESENSITIVE = @as(i32, 4); pub const DBPROPVAL_CO_CASEINSENSITIVE = @as(i32, 8); pub const DBPROPVAL_CO_CONTAINS = @as(i32, 16); pub const DBPROPVAL_CO_BEGINSWITH = @as(i32, 32); pub const DBPROPVAL_ASYNCH_BACKGROUNDPOPULATION = @as(i32, 8); pub const DBPROPVAL_ASYNCH_PREPOPULATE = @as(i32, 16); pub const DBPROPVAL_ASYNCH_POPULATEONDEMAND = @as(i32, 32); pub const DBPROPVAL_LM_SINGLEROW = @as(i32, 2); pub const DBPROPVAL_SQL_SUBMINIMUM = @as(i32, 512); pub const DBPROPVAL_DST_TDP = @as(i32, 1); pub const DBPROPVAL_DST_MDP = @as(i32, 2); pub const DBPROPVAL_DST_TDPANDMDP = @as(i32, 3); pub const MDPROPVAL_AU_UNSUPPORTED = @as(i32, 0); pub const MDPROPVAL_AU_UNCHANGED = @as(i32, 1); pub const MDPROPVAL_AU_UNKNOWN = @as(i32, 2); pub const MDPROPVAL_MF_WITH_CALCMEMBERS = @as(i32, 1); pub const MDPROPVAL_MF_WITH_NAMEDSETS = @as(i32, 2); pub const MDPROPVAL_MF_CREATE_CALCMEMBERS = @as(i32, 4); pub const MDPROPVAL_MF_CREATE_NAMEDSETS = @as(i32, 8); pub const MDPROPVAL_MF_SCOPE_SESSION = @as(i32, 16); pub const MDPROPVAL_MF_SCOPE_GLOBAL = @as(i32, 32); pub const MDPROPVAL_MMF_COUSIN = @as(i32, 1); pub const MDPROPVAL_MMF_PARALLELPERIOD = @as(i32, 2); pub const MDPROPVAL_MMF_OPENINGPERIOD = @as(i32, 4); pub const MDPROPVAL_MMF_CLOSINGPERIOD = @as(i32, 8); pub const MDPROPVAL_MNF_MEDIAN = @as(i32, 1); pub const MDPROPVAL_MNF_VAR = @as(i32, 2); pub const MDPROPVAL_MNF_STDDEV = @as(i32, 4); pub const MDPROPVAL_MNF_RANK = @as(i32, 8); pub const MDPROPVAL_MNF_AGGREGATE = @as(i32, 16); pub const MDPROPVAL_MNF_COVARIANCE = @as(i32, 32); pub const MDPROPVAL_MNF_CORRELATION = @as(i32, 64); pub const MDPROPVAL_MNF_LINREGSLOPE = @as(i32, 128); pub const MDPROPVAL_MNF_LINREGVARIANCE = @as(i32, 256); pub const MDPROPVAL_MNF_LINREG2 = @as(i32, 512); pub const MDPROPVAL_MNF_LINREGPOINT = @as(i32, 1024); pub const MDPROPVAL_MNF_DRILLDOWNLEVEL = @as(i32, 2048); pub const MDPROPVAL_MNF_DRILLDOWNMEMBERTOP = @as(i32, 4096); pub const MDPROPVAL_MNF_DRILLDOWNMEMBERBOTTOM = @as(i32, 8192); pub const MDPROPVAL_MNF_DRILLDOWNLEVELTOP = @as(i32, 16384); pub const MDPROPVAL_MNF_DRILLDOWNLEVELBOTTOM = @as(i32, 32768); pub const MDPROPVAL_MNF_DRILLUPMEMBER = @as(i32, 65536); pub const MDPROPVAL_MNF_DRILLUPLEVEL = @as(i32, 131072); pub const MDPROPVAL_MSF_TOPPERCENT = @as(i32, 1); pub const MDPROPVAL_MSF_BOTTOMPERCENT = @as(i32, 2); pub const MDPROPVAL_MSF_TOPSUM = @as(i32, 4); pub const MDPROPVAL_MSF_BOTTOMSUM = @as(i32, 8); pub const MDPROPVAL_MSF_PERIODSTODATE = @as(i32, 16); pub const MDPROPVAL_MSF_LASTPERIODS = @as(i32, 32); pub const MDPROPVAL_MSF_YTD = @as(i32, 64); pub const MDPROPVAL_MSF_QTD = @as(i32, 128); pub const MDPROPVAL_MSF_MTD = @as(i32, 256); pub const MDPROPVAL_MSF_WTD = @as(i32, 512); pub const MDPROPVAL_MSF_DRILLDOWNMEMBBER = @as(i32, 1024); pub const MDPROPVAL_MSF_DRILLDOWNLEVEL = @as(i32, 2048); pub const MDPROPVAL_MSF_DRILLDOWNMEMBERTOP = @as(i32, 4096); pub const MDPROPVAL_MSF_DRILLDOWNMEMBERBOTTOM = @as(i32, 8192); pub const MDPROPVAL_MSF_DRILLDOWNLEVELTOP = @as(i32, 16384); pub const MDPROPVAL_MSF_DRILLDOWNLEVELBOTTOM = @as(i32, 32768); pub const MDPROPVAL_MSF_DRILLUPMEMBER = @as(i32, 65536); pub const MDPROPVAL_MSF_DRILLUPLEVEL = @as(i32, 131072); pub const MDPROPVAL_MSF_TOGGLEDRILLSTATE = @as(i32, 262144); pub const MDPROPVAL_MD_SELF = @as(i32, 1); pub const MDPROPVAL_MD_BEFORE = @as(i32, 2); pub const MDPROPVAL_MD_AFTER = @as(i32, 4); pub const MDPROPVAL_MSC_LESSTHAN = @as(i32, 1); pub const MDPROPVAL_MSC_GREATERTHAN = @as(i32, 2); pub const MDPROPVAL_MSC_LESSTHANEQUAL = @as(i32, 4); pub const MDPROPVAL_MSC_GREATERTHANEQUAL = @as(i32, 8); pub const MDPROPVAL_MC_SINGLECASE = @as(i32, 1); pub const MDPROPVAL_MC_SEARCHEDCASE = @as(i32, 2); pub const MDPROPVAL_MOQ_OUTERREFERENCE = @as(i32, 1); pub const MDPROPVAL_MOQ_DATASOURCE_CUBE = @as(i32, 1); pub const MDPROPVAL_MOQ_CATALOG_CUBE = @as(i32, 2); pub const MDPROPVAL_MOQ_SCHEMA_CUBE = @as(i32, 4); pub const MDPROPVAL_MOQ_CUBE_DIM = @as(i32, 8); pub const MDPROPVAL_MOQ_DIM_HIER = @as(i32, 16); pub const MDPROPVAL_MOQ_DIMHIER_LEVEL = @as(i32, 32); pub const MDPROPVAL_MOQ_LEVEL_MEMBER = @as(i32, 64); pub const MDPROPVAL_MOQ_MEMBER_MEMBER = @as(i32, 128); pub const MDPROPVAL_MOQ_DIMHIER_MEMBER = @as(i32, 256); pub const MDPROPVAL_FS_FULL_SUPPORT = @as(i32, 1); pub const MDPROPVAL_FS_GENERATED_COLUMN = @as(i32, 2); pub const MDPROPVAL_FS_GENERATED_DIMENSION = @as(i32, 3); pub const MDPROPVAL_FS_NO_SUPPORT = @as(i32, 4); pub const MDPROPVAL_NL_NAMEDLEVELS = @as(i32, 1); pub const MDPROPVAL_NL_NUMBEREDLEVELS = @as(i32, 2); pub const MDPROPVAL_MJC_SINGLECUBE = @as(i32, 1); pub const MDPROPVAL_MJC_MULTICUBES = @as(i32, 2); pub const MDPROPVAL_MJC_IMPLICITCUBE = @as(i32, 4); pub const MDPROPVAL_RR_NORANGEROWSET = @as(i32, 1); pub const MDPROPVAL_RR_READONLY = @as(i32, 2); pub const MDPROPVAL_RR_UPDATE = @as(i32, 4); pub const MDPROPVAL_MS_MULTIPLETUPLES = @as(i32, 1); pub const MDPROPVAL_MS_SINGLETUPLE = @as(i32, 2); pub const MDPROPVAL_NME_ALLDIMENSIONS = @as(i32, 0); pub const MDPROPVAL_NME_MEASURESONLY = @as(i32, 1); pub const DBPROPVAL_AO_SEQUENTIAL = @as(i32, 0); pub const DBPROPVAL_AO_SEQUENTIALSTORAGEOBJECTS = @as(i32, 1); pub const DBPROPVAL_AO_RANDOM = @as(i32, 2); pub const DBPROPVAL_BD_ROWSET = @as(i32, 0); pub const DBPROPVAL_BD_INTRANSACTION = @as(i32, 1); pub const DBPROPVAL_BD_XTRANSACTION = @as(i32, 2); pub const DBPROPVAL_BD_REORGANIZATION = @as(i32, 3); pub const BMK_DURABILITY_ROWSET = @as(i32, 0); pub const BMK_DURABILITY_INTRANSACTION = @as(i32, 1); pub const BMK_DURABILITY_XTRANSACTION = @as(i32, 2); pub const BMK_DURABILITY_REORGANIZATION = @as(i32, 3); pub const DBPROPVAL_BO_NOLOG = @as(i32, 0); pub const DBPROPVAL_BO_NOINDEXUPDATE = @as(i32, 1); pub const DBPROPVAL_BO_REFINTEGRITY = @as(i32, 2); pub const DBPROPVAL_STGM_DIRECT = @as(u32, 65536); pub const DBPROPVAL_STGM_TRANSACTED = @as(u32, 131072); pub const DBPROPVAL_STGM_CONVERT = @as(u32, 262144); pub const DBPROPVAL_STGM_FAILIFTHERE = @as(u32, 524288); pub const DBPROPVAL_STGM_PRIORITY = @as(u32, 1048576); pub const DBPROPVAL_STGM_DELETEONRELEASE = @as(u32, 2097152); pub const DBPROPVAL_GB_COLLATE = @as(i32, 16); pub const DBPROPVAL_CS_UNINITIALIZED = @as(i32, 0); pub const DBPROPVAL_CS_INITIALIZED = @as(i32, 1); pub const DBPROPVAL_CS_COMMUNICATIONFAILURE = @as(i32, 2); pub const DBPROPVAL_RD_RESETALL = @as(i32, -1); pub const DBPROPVAL_OS_RESOURCEPOOLING = @as(i32, 1); pub const DBPROPVAL_OS_TXNENLISTMENT = @as(i32, 2); pub const DBPROPVAL_OS_CLIENTCURSOR = @as(i32, 4); pub const DBPROPVAL_OS_ENABLEALL = @as(i32, -1); pub const DBPROPVAL_BI_CROSSROWSET = @as(i32, 1); pub const MDPROPVAL_NL_SCHEMAONLY = @as(i32, 4); pub const DBPROPVAL_OS_DISABLEALL = @as(i32, 0); pub const DBPROPVAL_OO_ROWOBJECT = @as(i32, 4); pub const DBPROPVAL_OO_SCOPED = @as(i32, 8); pub const DBPROPVAL_OO_DIRECTBIND = @as(i32, 16); pub const DBPROPVAL_DST_DOCSOURCE = @as(i32, 4); pub const DBPROPVAL_GU_NOTSUPPORTED = @as(i32, 1); pub const DBPROPVAL_GU_SUFFIX = @as(i32, 2); pub const DB_BINDFLAGS_DELAYFETCHCOLUMNS = @as(i32, 1); pub const DB_BINDFLAGS_DELAYFETCHSTREAM = @as(i32, 2); pub const DB_BINDFLAGS_RECURSIVE = @as(i32, 4); pub const DB_BINDFLAGS_OUTPUT = @as(i32, 8); pub const DB_BINDFLAGS_COLLECTION = @as(i32, 16); pub const DB_BINDFLAGS_OPENIFEXISTS = @as(i32, 32); pub const DB_BINDFLAGS_OVERWRITE = @as(i32, 64); pub const DB_BINDFLAGS_ISSTRUCTUREDDOCUMENT = @as(i32, 128); pub const DBPROPVAL_ORS_TABLE = @as(i32, 0); pub const DBPROPVAL_ORS_INDEX = @as(i32, 1); pub const DBPROPVAL_ORS_INTEGRATEDINDEX = @as(i32, 2); pub const DBPROPVAL_TC_DDL_LOCK = @as(i32, 16); pub const DBPROPVAL_ORS_STOREDPROC = @as(i32, 4); pub const DBPROPVAL_IN_ALLOWNULL = @as(i32, 0); pub const DBPROPVAL_OO_SINGLETON = @as(i32, 32); pub const DBPROPVAL_OS_AGR_AFTERSESSION = @as(i32, 8); pub const DBPROPVAL_CM_TRANSACTIONS = @as(i32, 1); pub const DBPROPVAL_TS_CARDINALITY = @as(i32, 1); pub const DBPROPVAL_TS_HISTOGRAM = @as(i32, 2); pub const DBPROPVAL_ORS_HISTOGRAM = @as(i32, 8); pub const MDPROPVAL_VISUAL_MODE_DEFAULT = @as(i32, 0); pub const MDPROPVAL_VISUAL_MODE_VISUAL = @as(i32, 1); pub const MDPROPVAL_VISUAL_MODE_VISUAL_OFF = @as(i32, 2); pub const DB_IMP_LEVEL_ANONYMOUS = @as(u32, 0); pub const DB_IMP_LEVEL_IDENTIFY = @as(u32, 1); pub const DB_IMP_LEVEL_IMPERSONATE = @as(u32, 2); pub const DB_IMP_LEVEL_DELEGATE = @as(u32, 3); pub const DBPROMPT_PROMPT = @as(u32, 1); pub const DBPROMPT_COMPLETE = @as(u32, 2); pub const DBPROMPT_COMPLETEREQUIRED = @as(u32, 3); pub const DBPROMPT_NOPROMPT = @as(u32, 4); pub const DB_PROT_LEVEL_NONE = @as(u32, 0); pub const DB_PROT_LEVEL_CONNECT = @as(u32, 1); pub const DB_PROT_LEVEL_CALL = @as(u32, 2); pub const DB_PROT_LEVEL_PKT = @as(u32, 3); pub const DB_PROT_LEVEL_PKT_INTEGRITY = @as(u32, 4); pub const DB_PROT_LEVEL_PKT_PRIVACY = @as(u32, 5); pub const DB_MODE_READ = @as(u32, 1); pub const DB_MODE_WRITE = @as(u32, 2); pub const DB_MODE_READWRITE = @as(u32, 3); pub const DB_MODE_SHARE_DENY_READ = @as(u32, 4); pub const DB_MODE_SHARE_DENY_WRITE = @as(u32, 8); pub const DB_MODE_SHARE_EXCLUSIVE = @as(u32, 12); pub const DB_MODE_SHARE_DENY_NONE = @as(u32, 16); pub const DBCOMPUTEMODE_COMPUTED = @as(u32, 1); pub const DBCOMPUTEMODE_DYNAMIC = @as(u32, 2); pub const DBCOMPUTEMODE_NOTCOMPUTED = @as(u32, 3); pub const DBPROPVAL_DF_INITIALLY_DEFERRED = @as(u32, 1); pub const DBPROPVAL_DF_INITIALLY_IMMEDIATE = @as(u32, 2); pub const DBPROPVAL_DF_NOT_DEFERRABLE = @as(u32, 3); pub const DBPARAMTYPE_INPUT = @as(u32, 1); pub const DBPARAMTYPE_INPUTOUTPUT = @as(u32, 2); pub const DBPARAMTYPE_OUTPUT = @as(u32, 3); pub const DBPARAMTYPE_RETURNVALUE = @as(u32, 4); pub const DB_PT_UNKNOWN = @as(u32, 1); pub const DB_PT_PROCEDURE = @as(u32, 2); pub const DB_PT_FUNCTION = @as(u32, 3); pub const DB_REMOTE = @as(u32, 1); pub const DB_LOCAL_SHARED = @as(u32, 2); pub const DB_LOCAL_EXCLUSIVE = @as(u32, 3); pub const DB_COLLATION_ASC = @as(u32, 1); pub const DB_COLLATION_DESC = @as(u32, 2); pub const DB_UNSEARCHABLE = @as(u32, 1); pub const DB_LIKE_ONLY = @as(u32, 2); pub const DB_ALL_EXCEPT_LIKE = @as(u32, 3); pub const DB_SEARCHABLE = @as(u32, 4); pub const MDTREEOP_CHILDREN = @as(u32, 1); pub const MDTREEOP_SIBLINGS = @as(u32, 2); pub const MDTREEOP_PARENT = @as(u32, 4); pub const MDTREEOP_SELF = @as(u32, 8); pub const MDTREEOP_DESCENDANTS = @as(u32, 16); pub const MDTREEOP_ANCESTORS = @as(u32, 32); pub const MD_DIMTYPE_UNKNOWN = @as(u32, 0); pub const MD_DIMTYPE_TIME = @as(u32, 1); pub const MD_DIMTYPE_MEASURE = @as(u32, 2); pub const MD_DIMTYPE_OTHER = @as(u32, 3); pub const MDLEVEL_TYPE_UNKNOWN = @as(u32, 0); pub const MDLEVEL_TYPE_REGULAR = @as(u32, 0); pub const MDLEVEL_TYPE_ALL = @as(u32, 1); pub const MDLEVEL_TYPE_CALCULATED = @as(u32, 2); pub const MDLEVEL_TYPE_TIME = @as(u32, 4); pub const MDLEVEL_TYPE_RESERVED1 = @as(u32, 8); pub const MDLEVEL_TYPE_TIME_YEARS = @as(u32, 20); pub const MDLEVEL_TYPE_TIME_HALF_YEAR = @as(u32, 36); pub const MDLEVEL_TYPE_TIME_QUARTERS = @as(u32, 68); pub const MDLEVEL_TYPE_TIME_MONTHS = @as(u32, 132); pub const MDLEVEL_TYPE_TIME_WEEKS = @as(u32, 260); pub const MDLEVEL_TYPE_TIME_DAYS = @as(u32, 516); pub const MDLEVEL_TYPE_TIME_HOURS = @as(u32, 772); pub const MDLEVEL_TYPE_TIME_MINUTES = @as(u32, 1028); pub const MDLEVEL_TYPE_TIME_SECONDS = @as(u32, 2052); pub const MDLEVEL_TYPE_TIME_UNDEFINED = @as(u32, 4100); pub const MDMEASURE_AGGR_UNKNOWN = @as(u32, 0); pub const MDMEASURE_AGGR_SUM = @as(u32, 1); pub const MDMEASURE_AGGR_COUNT = @as(u32, 2); pub const MDMEASURE_AGGR_MIN = @as(u32, 3); pub const MDMEASURE_AGGR_MAX = @as(u32, 4); pub const MDMEASURE_AGGR_AVG = @as(u32, 5); pub const MDMEASURE_AGGR_VAR = @as(u32, 6); pub const MDMEASURE_AGGR_STD = @as(u32, 7); pub const MDMEASURE_AGGR_CALCULATED = @as(u32, 127); pub const MDPROP_MEMBER = @as(u32, 1); pub const MDPROP_CELL = @as(u32, 2); pub const MDMEMBER_TYPE_UNKNOWN = @as(u32, 0); pub const MDMEMBER_TYPE_REGULAR = @as(u32, 1); pub const MDMEMBER_TYPE_ALL = @as(u32, 2); pub const MDMEMBER_TYPE_MEASURE = @as(u32, 3); pub const MDMEMBER_TYPE_FORMULA = @as(u32, 4); pub const MDMEMBER_TYPE_RESERVE1 = @as(u32, 5); pub const MDMEMBER_TYPE_RESERVE2 = @as(u32, 6); pub const MDMEMBER_TYPE_RESERVE3 = @as(u32, 7); pub const MDMEMBER_TYPE_RESERVE4 = @as(u32, 8); pub const MDDISPINFO_DRILLED_DOWN = @as(u32, 65536); pub const MDDISPINFO_PARENT_SAME_AS_PREV = @as(u32, 131072); pub const DB_COUNTUNAVAILABLE = @as(i32, -1); pub const MDFF_BOLD = @as(u32, 1); pub const MDFF_ITALIC = @as(u32, 2); pub const MDFF_UNDERLINE = @as(u32, 4); pub const MDFF_STRIKEOUT = @as(u32, 8); pub const MDAXIS_COLUMNS = @as(u32, 0); pub const MDAXIS_ROWS = @as(u32, 1); pub const MDAXIS_PAGES = @as(u32, 2); pub const MDAXIS_SECTIONS = @as(u32, 3); pub const MDAXIS_CHAPTERS = @as(u32, 4); pub const MDAXIS_SLICERS = @as(u32, 4294967295); pub const CRESTRICTIONS_DBSCHEMA_ASSERTIONS = @as(u32, 3); pub const CRESTRICTIONS_DBSCHEMA_CATALOGS = @as(u32, 1); pub const CRESTRICTIONS_DBSCHEMA_CHARACTER_SETS = @as(u32, 3); pub const CRESTRICTIONS_DBSCHEMA_COLLATIONS = @as(u32, 3); pub const CRESTRICTIONS_DBSCHEMA_COLUMNS = @as(u32, 4); pub const CRESTRICTIONS_DBSCHEMA_CHECK_CONSTRAINTS = @as(u32, 3); pub const CRESTRICTIONS_DBSCHEMA_CONSTRAINT_COLUMN_USAGE = @as(u32, 4); pub const CRESTRICTIONS_DBSCHEMA_CONSTRAINT_TABLE_USAGE = @as(u32, 3); pub const CRESTRICTIONS_DBSCHEMA_KEY_COLUMN_USAGE = @as(u32, 7); pub const CRESTRICTIONS_DBSCHEMA_REFERENTIAL_CONSTRAINTS = @as(u32, 3); pub const CRESTRICTIONS_DBSCHEMA_TABLE_CONSTRAINTS = @as(u32, 7); pub const CRESTRICTIONS_DBSCHEMA_COLUMN_DOMAIN_USAGE = @as(u32, 4); pub const CRESTRICTIONS_DBSCHEMA_INDEXES = @as(u32, 5); pub const CRESTRICTIONS_DBSCHEMA_OBJECT_ACTIONS = @as(u32, 1); pub const CRESTRICTIONS_DBSCHEMA_OBJECTS = @as(u32, 1); pub const CRESTRICTIONS_DBSCHEMA_COLUMN_PRIVILEGES = @as(u32, 6); pub const CRESTRICTIONS_DBSCHEMA_TABLE_PRIVILEGES = @as(u32, 5); pub const CRESTRICTIONS_DBSCHEMA_USAGE_PRIVILEGES = @as(u32, 6); pub const CRESTRICTIONS_DBSCHEMA_PROCEDURES = @as(u32, 4); pub const CRESTRICTIONS_DBSCHEMA_SCHEMATA = @as(u32, 3); pub const CRESTRICTIONS_DBSCHEMA_SQL_LANGUAGES = @as(u32, 0); pub const CRESTRICTIONS_DBSCHEMA_STATISTICS = @as(u32, 3); pub const CRESTRICTIONS_DBSCHEMA_TABLES = @as(u32, 4); pub const CRESTRICTIONS_DBSCHEMA_TRANSLATIONS = @as(u32, 3); pub const CRESTRICTIONS_DBSCHEMA_PROVIDER_TYPES = @as(u32, 2); pub const CRESTRICTIONS_DBSCHEMA_VIEWS = @as(u32, 3); pub const CRESTRICTIONS_DBSCHEMA_VIEW_COLUMN_USAGE = @as(u32, 3); pub const CRESTRICTIONS_DBSCHEMA_VIEW_TABLE_USAGE = @as(u32, 3); pub const CRESTRICTIONS_DBSCHEMA_PROCEDURE_PARAMETERS = @as(u32, 4); pub const CRESTRICTIONS_DBSCHEMA_FOREIGN_KEYS = @as(u32, 6); pub const CRESTRICTIONS_DBSCHEMA_PRIMARY_KEYS = @as(u32, 3); pub const CRESTRICTIONS_DBSCHEMA_PROCEDURE_COLUMNS = @as(u32, 4); pub const CRESTRICTIONS_DBSCHEMA_TABLES_INFO = @as(u32, 4); pub const CRESTRICTIONS_MDSCHEMA_CUBES = @as(u32, 3); pub const CRESTRICTIONS_MDSCHEMA_DIMENSIONS = @as(u32, 5); pub const CRESTRICTIONS_MDSCHEMA_HIERARCHIES = @as(u32, 6); pub const CRESTRICTIONS_MDSCHEMA_LEVELS = @as(u32, 7); pub const CRESTRICTIONS_MDSCHEMA_MEASURES = @as(u32, 5); pub const CRESTRICTIONS_MDSCHEMA_PROPERTIES = @as(u32, 9); pub const CRESTRICTIONS_MDSCHEMA_MEMBERS = @as(u32, 12); pub const CRESTRICTIONS_DBSCHEMA_TRUSTEE = @as(u32, 4); pub const CRESTRICTIONS_DBSCHEMA_TABLE_STATISTICS = @as(u32, 7); pub const CRESTRICTIONS_DBSCHEMA_CHECK_CONSTRAINTS_BY_TABLE = @as(u32, 6); pub const CRESTRICTIONS_MDSCHEMA_FUNCTIONS = @as(u32, 4); pub const CRESTRICTIONS_MDSCHEMA_ACTIONS = @as(u32, 8); pub const CRESTRICTIONS_MDSCHEMA_COMMANDS = @as(u32, 5); pub const CRESTRICTIONS_MDSCHEMA_SETS = @as(u32, 5); pub const IDENTIFIER_SDK_MASK = @as(u32, 4026531840); pub const IDENTIFIER_SDK_ERROR = @as(u32, 268435456); pub const DBPROP_MSDAORA_DETERMINEKEYCOLUMNS = @as(u32, 1); pub const DBPROP_MSDAORA8_DETERMINEKEYCOLUMNS = @as(u32, 2); pub const PWPROP_OSPVALUE = @as(u32, 2); pub const STGM_COLLECTION = @as(i32, 8192); pub const STGM_OUTPUT = @as(i32, 32768); pub const STGM_OPEN = @as(i32, -2147483648); pub const STGM_RECURSIVE = @as(i32, 16777216); pub const STGM_STRICTOPEN = @as(i32, 1073741824); pub const KAGPROP_QUERYBASEDUPDATES = @as(u32, 2); pub const KAGPROP_MARSHALLABLE = @as(u32, 3); pub const KAGPROP_POSITIONONNEWROW = @as(u32, 4); pub const KAGPROP_IRowsetChangeExtInfo = @as(u32, 5); pub const KAGPROP_CURSOR = @as(u32, 6); pub const KAGPROP_CONCURRENCY = @as(u32, 7); pub const KAGPROP_BLOBSONFOCURSOR = @as(u32, 8); pub const KAGPROP_INCLUDENONEXACT = @as(u32, 9); pub const KAGPROP_FORCESSFIREHOSEMODE = @as(u32, 10); pub const KAGPROP_FORCENOPARAMETERREBIND = @as(u32, 11); pub const KAGPROP_FORCENOPREPARE = @as(u32, 12); pub const KAGPROP_FORCENOREEXECUTE = @as(u32, 13); pub const KAGPROP_ACCESSIBLEPROCEDURES = @as(u32, 2); pub const KAGPROP_ACCESSIBLETABLES = @as(u32, 3); pub const KAGPROP_ODBCSQLOPTIEF = @as(u32, 4); pub const KAGPROP_OJCAPABILITY = @as(u32, 5); pub const KAGPROP_PROCEDURES = @as(u32, 6); pub const KAGPROP_DRIVERNAME = @as(u32, 7); pub const KAGPROP_DRIVERVER = @as(u32, 8); pub const KAGPROP_DRIVERODBCVER = @as(u32, 9); pub const KAGPROP_LIKEESCAPECLAUSE = @as(u32, 10); pub const KAGPROP_SPECIALCHARACTERS = @as(u32, 11); pub const KAGPROP_MAXCOLUMNSINGROUPBY = @as(u32, 12); pub const KAGPROP_MAXCOLUMNSININDEX = @as(u32, 13); pub const KAGPROP_MAXCOLUMNSINORDERBY = @as(u32, 14); pub const KAGPROP_MAXCOLUMNSINSELECT = @as(u32, 15); pub const KAGPROP_MAXCOLUMNSINTABLE = @as(u32, 16); pub const KAGPROP_NUMERICFUNCTIONS = @as(u32, 17); pub const KAGPROP_ODBCSQLCONFORMANCE = @as(u32, 18); pub const KAGPROP_OUTERJOINS = @as(u32, 19); pub const KAGPROP_STRINGFUNCTIONS = @as(u32, 20); pub const KAGPROP_SYSTEMFUNCTIONS = @as(u32, 21); pub const KAGPROP_TIMEDATEFUNCTIONS = @as(u32, 22); pub const KAGPROP_FILEUSAGE = @as(u32, 23); pub const KAGPROP_ACTIVESTATEMENTS = @as(u32, 24); pub const KAGPROP_AUTH_TRUSTEDCONNECTION = @as(u32, 2); pub const KAGPROP_AUTH_SERVERINTEGRATED = @as(u32, 3); pub const KAGPROPVAL_CONCUR_ROWVER = @as(u32, 1); pub const KAGPROPVAL_CONCUR_VALUES = @as(u32, 2); pub const KAGPROPVAL_CONCUR_LOCK = @as(u32, 4); pub const KAGPROPVAL_CONCUR_READ_ONLY = @as(u32, 8); pub const ODBCVER = @as(u32, 896); pub const ODBC_ADD_DSN = @as(u32, 1); pub const ODBC_CONFIG_DSN = @as(u32, 2); pub const ODBC_REMOVE_DSN = @as(u32, 3); pub const ODBC_ADD_SYS_DSN = @as(u32, 4); pub const ODBC_CONFIG_SYS_DSN = @as(u32, 5); pub const ODBC_REMOVE_SYS_DSN = @as(u32, 6); pub const ODBC_REMOVE_DEFAULT_DSN = @as(u32, 7); pub const ODBC_INSTALL_INQUIRY = @as(u32, 1); pub const ODBC_INSTALL_COMPLETE = @as(u32, 2); pub const ODBC_INSTALL_DRIVER = @as(u32, 1); pub const ODBC_REMOVE_DRIVER = @as(u32, 2); pub const ODBC_CONFIG_DRIVER = @as(u32, 3); pub const ODBC_CONFIG_DRIVER_MAX = @as(u32, 100); pub const ODBC_BOTH_DSN = @as(u32, 0); pub const ODBC_USER_DSN = @as(u32, 1); pub const ODBC_SYSTEM_DSN = @as(u32, 2); pub const ODBC_ERROR_GENERAL_ERR = @as(u32, 1); pub const ODBC_ERROR_INVALID_BUFF_LEN = @as(u32, 2); pub const ODBC_ERROR_INVALID_HWND = @as(u32, 3); pub const ODBC_ERROR_INVALID_STR = @as(u32, 4); pub const ODBC_ERROR_INVALID_REQUEST_TYPE = @as(u32, 5); pub const ODBC_ERROR_COMPONENT_NOT_FOUND = @as(u32, 6); pub const ODBC_ERROR_INVALID_NAME = @as(u32, 7); pub const ODBC_ERROR_INVALID_KEYWORD_VALUE = @as(u32, 8); pub const ODBC_ERROR_INVALID_DSN = @as(u32, 9); pub const ODBC_ERROR_INVALID_INF = @as(u32, 10); pub const ODBC_ERROR_REQUEST_FAILED = @as(u32, 11); pub const ODBC_ERROR_INVALID_PATH = @as(u32, 12); pub const ODBC_ERROR_LOAD_LIB_FAILED = @as(u32, 13); pub const ODBC_ERROR_INVALID_PARAM_SEQUENCE = @as(u32, 14); pub const ODBC_ERROR_INVALID_LOG_FILE = @as(u32, 15); pub const ODBC_ERROR_USER_CANCELED = @as(u32, 16); pub const ODBC_ERROR_USAGE_UPDATE_FAILED = @as(u32, 17); pub const ODBC_ERROR_CREATE_DSN_FAILED = @as(u32, 18); pub const ODBC_ERROR_WRITING_SYSINFO_FAILED = @as(u32, 19); pub const ODBC_ERROR_REMOVE_DSN_FAILED = @as(u32, 20); pub const ODBC_ERROR_OUT_OF_MEM = @as(u32, 21); pub const ODBC_ERROR_OUTPUT_STRING_TRUNCATED = @as(u32, 22); pub const ODBC_ERROR_NOTRANINFO = @as(u32, 23); pub const ODBC_ERROR_MAX = @as(u32, 23); pub const SQL_MAX_SQLSERVERNAME = @as(u32, 128); pub const SQL_COPT_SS_BASE = @as(u32, 1200); pub const SQL_COPT_SS_REMOTE_PWD = @as(u32, 1201); pub const SQL_COPT_SS_USE_PROC_FOR_PREP = @as(u32, 1202); pub const SQL_COPT_SS_INTEGRATED_SECURITY = @as(u32, 1203); pub const SQL_COPT_SS_PRESERVE_CURSORS = @as(u32, 1204); pub const SQL_COPT_SS_USER_DATA = @as(u32, 1205); pub const SQL_COPT_SS_FALLBACK_CONNECT = @as(u32, 1210); pub const SQL_COPT_SS_PERF_DATA = @as(u32, 1211); pub const SQL_COPT_SS_PERF_DATA_LOG = @as(u32, 1212); pub const SQL_COPT_SS_PERF_QUERY_INTERVAL = @as(u32, 1213); pub const SQL_COPT_SS_PERF_QUERY_LOG = @as(u32, 1214); pub const SQL_COPT_SS_PERF_QUERY = @as(u32, 1215); pub const SQL_COPT_SS_PERF_DATA_LOG_NOW = @as(u32, 1216); pub const SQL_COPT_SS_QUOTED_IDENT = @as(u32, 1217); pub const SQL_COPT_SS_ANSI_NPW = @as(u32, 1218); pub const SQL_COPT_SS_BCP = @as(u32, 1219); pub const SQL_COPT_SS_TRANSLATE = @as(u32, 1220); pub const SQL_COPT_SS_ATTACHDBFILENAME = @as(u32, 1221); pub const SQL_COPT_SS_CONCAT_NULL = @as(u32, 1222); pub const SQL_COPT_SS_ENCRYPT = @as(u32, 1223); pub const SQL_COPT_SS_MAX_USED = @as(u32, 1223); pub const SQL_SOPT_SS_BASE = @as(u32, 1225); pub const SQL_SOPT_SS_TEXTPTR_LOGGING = @as(u32, 1225); pub const SQL_SOPT_SS_CURRENT_COMMAND = @as(u32, 1226); pub const SQL_SOPT_SS_HIDDEN_COLUMNS = @as(u32, 1227); pub const SQL_SOPT_SS_NOBROWSETABLE = @as(u32, 1228); pub const SQL_SOPT_SS_REGIONALIZE = @as(u32, 1229); pub const SQL_SOPT_SS_CURSOR_OPTIONS = @as(u32, 1230); pub const SQL_SOPT_SS_NOCOUNT_STATUS = @as(u32, 1231); pub const SQL_SOPT_SS_DEFER_PREPARE = @as(u32, 1232); pub const SQL_SOPT_SS_MAX_USED = @as(u32, 1232); pub const SQL_COPT_SS_BASE_EX = @as(u32, 1240); pub const SQL_COPT_SS_BROWSE_CONNECT = @as(u32, 1241); pub const SQL_COPT_SS_BROWSE_SERVER = @as(u32, 1242); pub const SQL_COPT_SS_WARN_ON_CP_ERROR = @as(u32, 1243); pub const SQL_COPT_SS_CONNECTION_DEAD = @as(u32, 1244); pub const SQL_COPT_SS_BROWSE_CACHE_DATA = @as(u32, 1245); pub const SQL_COPT_SS_RESET_CONNECTION = @as(u32, 1246); pub const SQL_COPT_SS_EX_MAX_USED = @as(u32, 1246); pub const SQL_UP_OFF = @as(i32, 0); pub const SQL_UP_ON = @as(i32, 1); pub const SQL_UP_ON_DROP = @as(i32, 2); pub const SQL_UP_DEFAULT = @as(i32, 1); pub const SQL_IS_OFF = @as(i32, 0); pub const SQL_IS_ON = @as(i32, 1); pub const SQL_IS_DEFAULT = @as(i32, 0); pub const SQL_PC_OFF = @as(i32, 0); pub const SQL_PC_ON = @as(i32, 1); pub const SQL_PC_DEFAULT = @as(i32, 0); pub const SQL_XL_OFF = @as(i32, 0); pub const SQL_XL_ON = @as(i32, 1); pub const SQL_XL_DEFAULT = @as(i32, 1); pub const SQL_FB_OFF = @as(i32, 0); pub const SQL_FB_ON = @as(i32, 1); pub const SQL_FB_DEFAULT = @as(i32, 0); pub const SQL_BCP_OFF = @as(i32, 0); pub const SQL_BCP_ON = @as(i32, 1); pub const SQL_BCP_DEFAULT = @as(i32, 0); pub const SQL_QI_OFF = @as(i32, 0); pub const SQL_QI_ON = @as(i32, 1); pub const SQL_QI_DEFAULT = @as(i32, 1); pub const SQL_AD_OFF = @as(i32, 0); pub const SQL_AD_ON = @as(i32, 1); pub const SQL_AD_DEFAULT = @as(i32, 1); pub const SQL_CN_OFF = @as(i32, 0); pub const SQL_CN_ON = @as(i32, 1); pub const SQL_CN_DEFAULT = @as(i32, 1); pub const SQL_TL_OFF = @as(i32, 0); pub const SQL_TL_ON = @as(i32, 1); pub const SQL_TL_DEFAULT = @as(i32, 1); pub const SQL_HC_OFF = @as(i32, 0); pub const SQL_HC_ON = @as(i32, 1); pub const SQL_HC_DEFAULT = @as(i32, 0); pub const SQL_NB_OFF = @as(i32, 0); pub const SQL_NB_ON = @as(i32, 1); pub const SQL_NB_DEFAULT = @as(i32, 0); pub const SQL_RE_OFF = @as(i32, 0); pub const SQL_RE_ON = @as(i32, 1); pub const SQL_RE_DEFAULT = @as(i32, 0); pub const SQL_CO_OFF = @as(i32, 0); pub const SQL_CO_FFO = @as(i32, 1); pub const SQL_CO_AF = @as(i32, 2); pub const SQL_CO_FIREHOSE_AF = @as(i32, 4); pub const SQL_CO_DEFAULT = @as(i32, 0); pub const SQL_NC_OFF = @as(i32, 0); pub const SQL_NC_ON = @as(i32, 1); pub const SQL_DP_OFF = @as(i32, 0); pub const SQL_DP_ON = @as(i32, 1); pub const SQL_EN_OFF = @as(i32, 0); pub const SQL_EN_ON = @as(i32, 1); pub const SQL_MORE_INFO_NO = @as(i32, 0); pub const SQL_MORE_INFO_YES = @as(i32, 1); pub const SQL_CACHE_DATA_NO = @as(i32, 0); pub const SQL_CACHE_DATA_YES = @as(i32, 1); pub const SQL_RESET_YES = @as(i32, 1); pub const SQL_WARN_NO = @as(i32, 0); pub const SQL_WARN_YES = @as(i32, 1); pub const SQL_CURSOR_FAST_FORWARD_ONLY = @as(u32, 8); pub const SQL_CA_SS_BASE = @as(u32, 1200); pub const SQL_CA_SS_COLUMN_SSTYPE = @as(u32, 1200); pub const SQL_CA_SS_COLUMN_UTYPE = @as(u32, 1201); pub const SQL_CA_SS_NUM_ORDERS = @as(u32, 1202); pub const SQL_CA_SS_COLUMN_ORDER = @as(u32, 1203); pub const SQL_CA_SS_COLUMN_VARYLEN = @as(u32, 1204); pub const SQL_CA_SS_NUM_COMPUTES = @as(u32, 1205); pub const SQL_CA_SS_COMPUTE_ID = @as(u32, 1206); pub const SQL_CA_SS_COMPUTE_BYLIST = @as(u32, 1207); pub const SQL_CA_SS_COLUMN_ID = @as(u32, 1208); pub const SQL_CA_SS_COLUMN_OP = @as(u32, 1209); pub const SQL_CA_SS_COLUMN_SIZE = @as(u32, 1210); pub const SQL_CA_SS_COLUMN_HIDDEN = @as(u32, 1211); pub const SQL_CA_SS_COLUMN_KEY = @as(u32, 1212); pub const SQL_CA_SS_COLUMN_COLLATION = @as(u32, 1214); pub const SQL_CA_SS_VARIANT_TYPE = @as(u32, 1215); pub const SQL_CA_SS_VARIANT_SQL_TYPE = @as(u32, 1216); pub const SQL_CA_SS_VARIANT_SERVER_TYPE = @as(u32, 1217); pub const SQL_CA_SS_MAX_USED = @as(u32, 1218); pub const SQLTEXT = @as(u32, 35); pub const SQLVARBINARY = @as(u32, 37); pub const SQLINTN = @as(u32, 38); pub const SQLVARCHAR = @as(u32, 39); pub const SQLBINARY = @as(u32, 45); pub const SQLIMAGE = @as(u32, 34); pub const SQLCHARACTER = @as(u32, 47); pub const SQLINT1 = @as(u32, 48); pub const SQLBIT = @as(u32, 50); pub const SQLINT2 = @as(u32, 52); pub const SQLINT4 = @as(u32, 56); pub const SQLMONEY = @as(u32, 60); pub const SQLDATETIME = @as(u32, 61); pub const SQLFLT8 = @as(u32, 62); pub const SQLFLTN = @as(u32, 109); pub const SQLMONEYN = @as(u32, 110); pub const SQLDATETIMN = @as(u32, 111); pub const SQLFLT4 = @as(u32, 59); pub const SQLMONEY4 = @as(u32, 122); pub const SQLDATETIM4 = @as(u32, 58); pub const SQLDECIMAL = @as(u32, 106); pub const SQLNUMERIC = @as(u32, 108); pub const SQLUNIQUEID = @as(u32, 36); pub const SQLBIGCHAR = @as(u32, 175); pub const SQLBIGVARCHAR = @as(u32, 167); pub const SQLBIGBINARY = @as(u32, 173); pub const SQLBIGVARBINARY = @as(u32, 165); pub const SQLBITN = @as(u32, 104); pub const SQLNCHAR = @as(u32, 239); pub const SQLNVARCHAR = @as(u32, 231); pub const SQLNTEXT = @as(u32, 99); pub const SQLINT8 = @as(u32, 127); pub const SQLVARIANT = @as(u32, 98); pub const SQLudtBINARY = @as(u32, 3); pub const SQLudtBIT = @as(u32, 16); pub const SQLudtBITN = @as(u32, 0); pub const SQLudtCHAR = @as(u32, 1); pub const SQLudtDATETIM4 = @as(u32, 22); pub const SQLudtDATETIME = @as(u32, 12); pub const SQLudtDATETIMN = @as(u32, 15); pub const SQLudtDECML = @as(u32, 24); pub const SQLudtDECMLN = @as(u32, 26); pub const SQLudtFLT4 = @as(u32, 23); pub const SQLudtFLT8 = @as(u32, 8); pub const SQLudtFLTN = @as(u32, 14); pub const SQLudtIMAGE = @as(u32, 20); pub const SQLudtINT1 = @as(u32, 5); pub const SQLudtINT2 = @as(u32, 6); pub const SQLudtINT4 = @as(u32, 7); pub const SQLudtINTN = @as(u32, 13); pub const SQLudtMONEY = @as(u32, 11); pub const SQLudtMONEY4 = @as(u32, 21); pub const SQLudtMONEYN = @as(u32, 17); pub const SQLudtNUM = @as(u32, 10); pub const SQLudtNUMN = @as(u32, 25); pub const SQLudtSYSNAME = @as(u32, 18); pub const SQLudtTEXT = @as(u32, 19); pub const SQLudtTIMESTAMP = @as(u32, 80); pub const SQLudtUNIQUEIDENTIFIER = @as(u32, 0); pub const SQLudtVARBINARY = @as(u32, 4); pub const SQLudtVARCHAR = @as(u32, 2); pub const MIN_USER_DATATYPE = @as(u32, 256); pub const SQLAOPSTDEV = @as(u32, 48); pub const SQLAOPSTDEVP = @as(u32, 49); pub const SQLAOPVAR = @as(u32, 50); pub const SQLAOPVARP = @as(u32, 51); pub const SQLAOPCNT = @as(u32, 75); pub const SQLAOPSUM = @as(u32, 77); pub const SQLAOPAVG = @as(u32, 79); pub const SQLAOPMIN = @as(u32, 81); pub const SQLAOPMAX = @as(u32, 82); pub const SQLAOPANY = @as(u32, 83); pub const SQLAOPNOOP = @as(u32, 86); pub const SQL_INFO_SS_FIRST = @as(u32, 1199); pub const SQL_INFO_SS_NETLIB_NAMEW = @as(u32, 1199); pub const SQL_INFO_SS_NETLIB_NAMEA = @as(u32, 1200); pub const SQL_INFO_SS_MAX_USED = @as(u32, 1200); pub const SQL_INFO_SS_NETLIB_NAME = @as(u32, 1199); pub const SQL_SS_VARIANT = @as(i32, -150); pub const SQL_DIAG_SS_BASE = @as(i32, -1150); pub const SQL_DIAG_SS_MSGSTATE = @as(i32, -1150); pub const SQL_DIAG_DFC_SS_BASE = @as(i32, -200); pub const EX_ANY = @as(u32, 0); pub const EX_INFO = @as(u32, 10); pub const EX_MAXISEVERITY = @as(u32, 10); pub const EX_MISSING = @as(u32, 11); pub const EX_TYPE = @as(u32, 12); pub const EX_DEADLOCK = @as(u32, 13); pub const EX_PERMIT = @as(u32, 14); pub const EX_SYNTAX = @as(u32, 15); pub const EX_USER = @as(u32, 16); pub const EX_RESOURCE = @as(u32, 17); pub const EX_INTOK = @as(u32, 18); pub const MAXUSEVERITY = @as(u32, 18); pub const EX_LIMIT = @as(u32, 19); pub const EX_CMDFATAL = @as(u32, 20); pub const MINFATALERR = @as(u32, 20); pub const EX_DBFATAL = @as(u32, 21); pub const EX_TABCORRUPT = @as(u32, 22); pub const EX_DBCORRUPT = @as(u32, 23); pub const EX_HARDWARE = @as(u32, 24); pub const EX_CONTROL = @as(u32, 25); pub const DBMAXCHAR = @as(u32, 8001); pub const MAXNAME = @as(u32, 129); pub const MAXNUMERICLEN = @as(u32, 16); pub const SQL_PERF_START = @as(u32, 1); pub const SQL_PERF_STOP = @as(u32, 2); pub const SQL_SS_QI_DEFAULT = @as(u32, 30000); pub const SUCCEED = @as(u32, 1); pub const FAIL = @as(u32, 0); pub const SUCCEED_ABORT = @as(u32, 2); pub const SUCCEED_ASYNC = @as(u32, 3); pub const DB_IN = @as(u32, 1); pub const DB_OUT = @as(u32, 2); pub const BCPMAXERRS = @as(u32, 1); pub const BCPFIRST = @as(u32, 2); pub const BCPLAST = @as(u32, 3); pub const BCPBATCH = @as(u32, 4); pub const BCPKEEPNULLS = @as(u32, 5); pub const BCPABORT = @as(u32, 6); pub const BCPODBC = @as(u32, 7); pub const BCPKEEPIDENTITY = @as(u32, 8); pub const BCP6xFILEFMT = @as(u32, 9); pub const BCPHINTSA = @as(u32, 10); pub const BCPHINTSW = @as(u32, 11); pub const BCPFILECP = @as(u32, 12); pub const BCPUNICODEFILE = @as(u32, 13); pub const BCPTEXTFILE = @as(u32, 14); pub const BCPFILEFMT = @as(u32, 15); pub const BCPFILECP_ACP = @as(u32, 0); pub const BCPFILECP_OEMCP = @as(u32, 1); pub const BCPFILECP_RAW = @as(i32, -1); pub const SQL_VARLEN_DATA = @as(i32, -10); pub const BCPHINTS = @as(u32, 11); pub const BCP_FMT_TYPE = @as(u32, 1); pub const BCP_FMT_INDICATOR_LEN = @as(u32, 2); pub const BCP_FMT_DATA_LEN = @as(u32, 3); pub const BCP_FMT_TERMINATOR = @as(u32, 4); pub const BCP_FMT_SERVER_COL = @as(u32, 5); pub const BCP_FMT_COLLATION = @as(u32, 6); pub const BCP_FMT_COLLATION_ID = @as(u32, 7); pub const SQL_FAST_CONNECT = @as(u32, 1200); pub const SQL_FC_OFF = @as(i32, 0); pub const SQL_FC_ON = @as(i32, 1); pub const SQL_FC_DEFAULT = @as(i32, 0); pub const SQL_COPT_SS_ANSI_OEM = @as(u32, 1206); pub const SQL_AO_OFF = @as(i32, 0); pub const SQL_AO_ON = @as(i32, 1); pub const SQL_AO_DEFAULT = @as(i32, 0); pub const SQL_REMOTE_PWD = @as(u32, 1201); pub const SQL_USE_PROCEDURE_FOR_PREPARE = @as(u32, 1202); pub const SQL_INTEGRATED_SECURITY = @as(u32, 1203); pub const SQL_PRESERVE_CURSORS = @as(u32, 1204); pub const SQL_TEXTPTR_LOGGING = @as(u32, 1225); pub const SQLDECIMALN = @as(u32, 106); pub const SQLNUMERICN = @as(u32, 108); pub const DB_E_BOGUS = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2147217665)); pub const DB_E_BADACCESSORHANDLE = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2147217920)); pub const DB_E_ROWLIMITEXCEEDED = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2147217919)); pub const DB_E_READONLYACCESSOR = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2147217918)); pub const DB_E_SCHEMAVIOLATION = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2147217917)); pub const DB_E_BADROWHANDLE = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2147217916)); pub const DB_E_OBJECTOPEN = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2147217915)); pub const DB_E_BADCHAPTER = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2147217914)); pub const DB_E_CANTCONVERTVALUE = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2147217913)); pub const DB_E_BADBINDINFO = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2147217912)); pub const DB_SEC_E_PERMISSIONDENIED = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2147217911)); pub const DB_E_NOTAREFERENCECOLUMN = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2147217910)); pub const DB_E_LIMITREJECTED = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2147217909)); pub const DB_E_NOCOMMAND = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2147217908)); pub const DB_E_COSTLIMIT = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2147217907)); pub const DB_E_BADBOOKMARK = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2147217906)); pub const DB_E_BADLOCKMODE = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2147217905)); pub const DB_E_PARAMNOTOPTIONAL = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2147217904)); pub const DB_E_BADCOLUMNID = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2147217903)); pub const DB_E_BADRATIO = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2147217902)); pub const DB_E_BADVALUES = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2147217901)); pub const DB_E_ERRORSINCOMMAND = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2147217900)); pub const DB_E_CANTCANCEL = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2147217899)); pub const DB_E_DIALECTNOTSUPPORTED = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2147217898)); pub const DB_E_DUPLICATEDATASOURCE = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2147217897)); pub const DB_E_CANNOTRESTART = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2147217896)); pub const DB_E_NOTFOUND = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2147217895)); pub const DB_E_NEWLYINSERTED = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2147217893)); pub const DB_E_CANNOTFREE = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2147217894)); pub const DB_E_GOALREJECTED = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2147217892)); pub const DB_E_UNSUPPORTEDCONVERSION = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2147217891)); pub const DB_E_BADSTARTPOSITION = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2147217890)); pub const DB_E_NOQUERY = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2147217889)); pub const DB_E_NOTREENTRANT = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2147217888)); pub const DB_E_ERRORSOCCURRED = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2147217887)); pub const DB_E_NOAGGREGATION = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2147217886)); pub const DB_E_DELETEDROW = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2147217885)); pub const DB_E_CANTFETCHBACKWARDS = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2147217884)); pub const DB_E_ROWSNOTRELEASED = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2147217883)); pub const DB_E_BADSTORAGEFLAG = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2147217882)); pub const DB_E_BADCOMPAREOP = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2147217881)); pub const DB_E_BADSTATUSVALUE = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2147217880)); pub const DB_E_CANTSCROLLBACKWARDS = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2147217879)); pub const DB_E_BADREGIONHANDLE = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2147217878)); pub const DB_E_NONCONTIGUOUSRANGE = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2147217877)); pub const DB_E_INVALIDTRANSITION = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2147217876)); pub const DB_E_NOTASUBREGION = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2147217875)); pub const DB_E_MULTIPLESTATEMENTS = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2147217874)); pub const DB_E_INTEGRITYVIOLATION = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2147217873)); pub const DB_E_BADTYPENAME = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2147217872)); pub const DB_E_ABORTLIMITREACHED = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2147217871)); pub const DB_E_ROWSETINCOMMAND = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2147217870)); pub const DB_E_CANTTRANSLATE = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2147217869)); pub const DB_E_DUPLICATEINDEXID = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2147217868)); pub const DB_E_NOINDEX = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2147217867)); pub const DB_E_INDEXINUSE = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2147217866)); pub const DB_E_NOTABLE = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2147217865)); pub const DB_E_CONCURRENCYVIOLATION = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2147217864)); pub const DB_E_BADCOPY = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2147217863)); pub const DB_E_BADPRECISION = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2147217862)); pub const DB_E_BADSCALE = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2147217861)); pub const DB_E_BADTABLEID = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2147217860)); pub const DB_E_BADID = @as(i32, -2147217860); pub const DB_E_BADTYPE = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2147217859)); pub const DB_E_DUPLICATECOLUMNID = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2147217858)); pub const DB_E_DUPLICATETABLEID = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2147217857)); pub const DB_E_TABLEINUSE = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2147217856)); pub const DB_E_NOLOCALE = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2147217855)); pub const DB_E_BADRECORDNUM = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2147217854)); pub const DB_E_BOOKMARKSKIPPED = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2147217853)); pub const DB_E_BADPROPERTYVALUE = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2147217852)); pub const DB_E_INVALID = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2147217851)); pub const DB_E_BADACCESSORFLAGS = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2147217850)); pub const DB_E_BADSTORAGEFLAGS = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2147217849)); pub const DB_E_BYREFACCESSORNOTSUPPORTED = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2147217848)); pub const DB_E_NULLACCESSORNOTSUPPORTED = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2147217847)); pub const DB_E_NOTPREPARED = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2147217846)); pub const DB_E_BADACCESSORTYPE = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2147217845)); pub const DB_E_WRITEONLYACCESSOR = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2147217844)); pub const DB_SEC_E_AUTH_FAILED = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2147217843)); pub const DB_E_CANCELED = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2147217842)); pub const DB_E_CHAPTERNOTRELEASED = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2147217841)); pub const DB_E_BADSOURCEHANDLE = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2147217840)); pub const DB_E_PARAMUNAVAILABLE = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2147217839)); pub const DB_E_ALREADYINITIALIZED = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2147217838)); pub const DB_E_NOTSUPPORTED = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2147217837)); pub const DB_E_MAXPENDCHANGESEXCEEDED = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2147217836)); pub const DB_E_BADORDINAL = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2147217835)); pub const DB_E_PENDINGCHANGES = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2147217834)); pub const DB_E_DATAOVERFLOW = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2147217833)); pub const DB_E_BADHRESULT = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2147217832)); pub const DB_E_BADLOOKUPID = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2147217831)); pub const DB_E_BADDYNAMICERRORID = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2147217830)); pub const DB_E_PENDINGINSERT = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2147217829)); pub const DB_E_BADCONVERTFLAG = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2147217828)); pub const DB_E_BADPARAMETERNAME = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2147217827)); pub const DB_E_MULTIPLESTORAGE = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2147217826)); pub const DB_E_CANTFILTER = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2147217825)); pub const DB_E_CANTORDER = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2147217824)); pub const MD_E_BADTUPLE = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2147217823)); pub const MD_E_BADCOORDINATE = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2147217822)); pub const MD_E_INVALIDAXIS = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2147217821)); pub const MD_E_INVALIDCELLRANGE = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2147217820)); pub const DB_E_NOCOLUMN = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2147217819)); pub const DB_E_COMMANDNOTPERSISTED = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2147217817)); pub const DB_E_DUPLICATEID = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2147217816)); pub const DB_E_OBJECTCREATIONLIMITREACHED = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2147217815)); pub const DB_E_BADINDEXID = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2147217806)); pub const DB_E_BADINITSTRING = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2147217805)); pub const DB_E_NOPROVIDERSREGISTERED = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2147217804)); pub const DB_E_MISMATCHEDPROVIDER = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2147217803)); pub const DB_E_BADCOMMANDID = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2147217802)); pub const SEC_E_PERMISSIONDENIED = @as(i32, -2147217911); pub const SEC_E_BADTRUSTEEID = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2147217814)); pub const SEC_E_NOTRUSTEEID = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2147217813)); pub const SEC_E_NOMEMBERSHIPSUPPORT = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2147217812)); pub const SEC_E_INVALIDOBJECT = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2147217811)); pub const SEC_E_NOOWNER = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2147217810)); pub const SEC_E_INVALIDACCESSENTRYLIST = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2147217809)); pub const SEC_E_INVALIDOWNER = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2147217808)); pub const SEC_E_INVALIDACCESSENTRY = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2147217807)); pub const DB_E_BADCONSTRAINTTYPE = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2147217801)); pub const DB_E_BADCONSTRAINTFORM = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2147217800)); pub const DB_E_BADDEFERRABILITY = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2147217799)); pub const DB_E_BADMATCHTYPE = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2147217792)); pub const DB_E_BADUPDATEDELETERULE = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2147217782)); pub const DB_E_BADCONSTRAINTID = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2147217781)); pub const DB_E_BADCOMMANDFLAGS = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2147217780)); pub const DB_E_OBJECTMISMATCH = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2147217779)); pub const DB_E_NOSOURCEOBJECT = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2147217775)); pub const DB_E_RESOURCELOCKED = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2147217774)); pub const DB_E_NOTCOLLECTION = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2147217773)); pub const DB_E_READONLY = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2147217772)); pub const DB_E_ASYNCNOTSUPPORTED = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2147217771)); pub const DB_E_CANNOTCONNECT = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2147217770)); pub const DB_E_TIMEOUT = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2147217769)); pub const DB_E_RESOURCEEXISTS = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2147217768)); pub const DB_E_RESOURCEOUTOFSCOPE = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2147217778)); pub const DB_E_DROPRESTRICTED = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2147217776)); pub const DB_E_DUPLICATECONSTRAINTID = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2147217767)); pub const DB_E_OUTOFSPACE = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2147217766)); pub const DB_SEC_E_SAFEMODE_DENIED = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2147217765)); pub const DB_E_NOSTATISTIC = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2147217764)); pub const DB_E_ALTERRESTRICTED = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2147217763)); pub const DB_E_RESOURCENOTSUPPORTED = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2147217762)); pub const DB_E_NOCONSTRAINT = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2147217761)); pub const DB_E_COLUMNUNAVAILABLE = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2147217760)); pub const DB_S_ROWLIMITEXCEEDED = @import("../zig.zig").typedConst(HRESULT, @as(i32, 265920)); pub const DB_S_COLUMNTYPEMISMATCH = @import("../zig.zig").typedConst(HRESULT, @as(i32, 265921)); pub const DB_S_TYPEINFOOVERRIDDEN = @import("../zig.zig").typedConst(HRESULT, @as(i32, 265922)); pub const DB_S_BOOKMARKSKIPPED = @import("../zig.zig").typedConst(HRESULT, @as(i32, 265923)); pub const DB_S_NONEXTROWSET = @import("../zig.zig").typedConst(HRESULT, @as(i32, 265925)); pub const DB_S_ENDOFROWSET = @import("../zig.zig").typedConst(HRESULT, @as(i32, 265926)); pub const DB_S_COMMANDREEXECUTED = @import("../zig.zig").typedConst(HRESULT, @as(i32, 265927)); pub const DB_S_BUFFERFULL = @import("../zig.zig").typedConst(HRESULT, @as(i32, 265928)); pub const DB_S_NORESULT = @import("../zig.zig").typedConst(HRESULT, @as(i32, 265929)); pub const DB_S_CANTRELEASE = @import("../zig.zig").typedConst(HRESULT, @as(i32, 265930)); pub const DB_S_GOALCHANGED = @import("../zig.zig").typedConst(HRESULT, @as(i32, 265931)); pub const DB_S_UNWANTEDOPERATION = @import("../zig.zig").typedConst(HRESULT, @as(i32, 265932)); pub const DB_S_DIALECTIGNORED = @import("../zig.zig").typedConst(HRESULT, @as(i32, 265933)); pub const DB_S_UNWANTEDPHASE = @import("../zig.zig").typedConst(HRESULT, @as(i32, 265934)); pub const DB_S_UNWANTEDREASON = @import("../zig.zig").typedConst(HRESULT, @as(i32, 265935)); pub const DB_S_ASYNCHRONOUS = @import("../zig.zig").typedConst(HRESULT, @as(i32, 265936)); pub const DB_S_COLUMNSCHANGED = @import("../zig.zig").typedConst(HRESULT, @as(i32, 265937)); pub const DB_S_ERRORSRETURNED = @import("../zig.zig").typedConst(HRESULT, @as(i32, 265938)); pub const DB_S_BADROWHANDLE = @import("../zig.zig").typedConst(HRESULT, @as(i32, 265939)); pub const DB_S_DELETEDROW = @import("../zig.zig").typedConst(HRESULT, @as(i32, 265940)); pub const DB_S_TOOMANYCHANGES = @import("../zig.zig").typedConst(HRESULT, @as(i32, 265941)); pub const DB_S_STOPLIMITREACHED = @import("../zig.zig").typedConst(HRESULT, @as(i32, 265942)); pub const DB_S_LOCKUPGRADED = @import("../zig.zig").typedConst(HRESULT, @as(i32, 265944)); pub const DB_S_PROPERTIESCHANGED = @import("../zig.zig").typedConst(HRESULT, @as(i32, 265945)); pub const DB_S_ERRORSOCCURRED = @import("../zig.zig").typedConst(HRESULT, @as(i32, 265946)); pub const DB_S_PARAMUNAVAILABLE = @import("../zig.zig").typedConst(HRESULT, @as(i32, 265947)); pub const DB_S_MULTIPLECHANGES = @import("../zig.zig").typedConst(HRESULT, @as(i32, 265948)); pub const DB_S_NOTSINGLETON = @import("../zig.zig").typedConst(HRESULT, @as(i32, 265943)); pub const DB_S_NOROWSPECIFICCOLUMNS = @import("../zig.zig").typedConst(HRESULT, @as(i32, 265949)); pub const DBPROPFLAGS_PERSIST = @as(u32, 8192); pub const DBPROPVAL_PERSIST_ADTG = @as(u32, 0); pub const DBPROPVAL_PERSIST_XML = @as(u32, 1); pub const DBPROP_PersistFormat = @as(u32, 2); pub const DBPROP_PersistSchema = @as(u32, 3); pub const DBPROP_HCHAPTER = @as(u32, 4); pub const DBPROP_MAINTAINPROPS = @as(u32, 5); pub const DBPROP_Unicode = @as(u32, 6); pub const DBPROP_INTERLEAVEDROWS = @as(u32, 8); pub const DISPID_QUERY_RANKVECTOR = @as(u32, 2); pub const DISPID_QUERY_RANK = @as(u32, 3); pub const DISPID_QUERY_HITCOUNT = @as(u32, 4); pub const DISPID_QUERY_WORKID = @as(u32, 5); pub const DISPID_QUERY_ALL = @as(u32, 6); pub const DISPID_QUERY_UNFILTERED = @as(u32, 7); pub const DISPID_QUERY_REVNAME = @as(u32, 8); pub const DISPID_QUERY_VIRTUALPATH = @as(u32, 9); pub const DISPID_QUERY_LASTSEENTIME = @as(u32, 10); pub const CQUERYDISPIDS = @as(u32, 11); pub const DISPID_QUERY_METADATA_VROOTUSED = @as(u32, 2); pub const DISPID_QUERY_METADATA_VROOTAUTOMATIC = @as(u32, 3); pub const DISPID_QUERY_METADATA_VROOTMANUAL = @as(u32, 4); pub const DISPID_QUERY_METADATA_PROPGUID = @as(u32, 5); pub const DISPID_QUERY_METADATA_PROPDISPID = @as(u32, 6); pub const DISPID_QUERY_METADATA_PROPNAME = @as(u32, 7); pub const DISPID_QUERY_METADATA_STORELEVEL = @as(u32, 8); pub const DISPID_QUERY_METADATA_PROPMODIFIABLE = @as(u32, 9); pub const CQUERYMETADISPIDS = @as(u32, 10); pub const PROPID_DBBMK_BOOKMARK = @as(u32, 2); pub const PROPID_DBBMK_CHAPTER = @as(u32, 3); pub const CDBBMKDISPIDS = @as(u32, 8); pub const PROPID_DBSELF_SELF = @as(u32, 2); pub const CDBSELFDISPIDS = @as(u32, 8); pub const CDBCOLDISPIDS = @as(u32, 28); pub const CQUERYPROPERTY = @as(u32, 64); pub const QUERY_VALIDBITS = @as(u32, 3); pub const RTNone = @as(u32, 0); pub const RTAnd = @as(u32, 1); pub const RTOr = @as(u32, 2); pub const RTNot = @as(u32, 3); pub const RTContent = @as(u32, 4); pub const RTProperty = @as(u32, 5); pub const RTProximity = @as(u32, 6); pub const RTVector = @as(u32, 7); pub const RTNatLanguage = @as(u32, 8); pub const GENERATE_METHOD_PREFIXMATCH = @as(u32, 1); pub const GENERATE_METHOD_STEMMED = @as(u32, 2); pub const PRRE = @as(u32, 6); pub const PRAllBits = @as(u32, 7); pub const PRSomeBits = @as(u32, 8); pub const PRAll = @as(u32, 256); pub const PRAny = @as(u32, 512); pub const QUERY_SORTXASCEND = @as(u32, 2); pub const QUERY_SORTXDESCEND = @as(u32, 3); pub const QUERY_SORTDEFAULT = @as(u32, 4); pub const CATEGORIZE_UNIQUE = @as(u32, 0); pub const CATEGORIZE_CLUSTER = @as(u32, 1); pub const CATEGORIZE_BUCKETS = @as(u32, 2); pub const BUCKET_LINEAR = @as(u32, 0); pub const BUCKET_EXPONENTIAL = @as(u32, 1); pub const CATEGORIZE_RANGE = @as(u32, 3); pub const OCC_INVALID = @as(u32, 4294967295); pub const MAX_QUERY_RANK = @as(u32, 1000); pub const OSP_IndexLabel = @as(u32, 0); pub const SQL_NULL_DATA = @as(i32, -1); pub const SQL_DATA_AT_EXEC = @as(i32, -2); pub const SQL_SUCCESS = @as(u32, 0); pub const SQL_SUCCESS_WITH_INFO = @as(u32, 1); pub const SQL_NO_DATA = @as(u32, 100); pub const SQL_PARAM_DATA_AVAILABLE = @as(u32, 101); pub const SQL_ERROR = @as(i32, -1); pub const SQL_INVALID_HANDLE = @as(i32, -2); pub const SQL_STILL_EXECUTING = @as(u32, 2); pub const SQL_NEED_DATA = @as(u32, 99); pub const SQL_NTS = @as(i32, -3); pub const SQL_NTSL = @as(i32, -3); pub const SQL_MAX_MESSAGE_LENGTH = @as(u32, 512); pub const SQL_DATE_LEN = @as(u32, 10); pub const SQL_TIME_LEN = @as(u32, 8); pub const SQL_TIMESTAMP_LEN = @as(u32, 19); pub const SQL_HANDLE_ENV = @as(u32, 1); pub const SQL_HANDLE_DBC = @as(u32, 2); pub const SQL_HANDLE_STMT = @as(u32, 3); pub const SQL_HANDLE_DESC = @as(u32, 4); pub const SQL_ATTR_OUTPUT_NTS = @as(u32, 10001); pub const SQL_ATTR_AUTO_IPD = @as(u32, 10001); pub const SQL_ATTR_METADATA_ID = @as(u32, 10014); pub const SQL_ATTR_APP_ROW_DESC = @as(u32, 10010); pub const SQL_ATTR_APP_PARAM_DESC = @as(u32, 10011); pub const SQL_ATTR_IMP_ROW_DESC = @as(u32, 10012); pub const SQL_ATTR_IMP_PARAM_DESC = @as(u32, 10013); pub const SQL_ATTR_CURSOR_SCROLLABLE = @as(i32, -1); pub const SQL_ATTR_CURSOR_SENSITIVITY = @as(i32, -2); pub const SQL_NONSCROLLABLE = @as(u32, 0); pub const SQL_SCROLLABLE = @as(u32, 1); pub const SQL_DESC_COUNT = @as(u32, 1001); pub const SQL_DESC_TYPE = @as(u32, 1002); pub const SQL_DESC_LENGTH = @as(u32, 1003); pub const SQL_DESC_OCTET_LENGTH_PTR = @as(u32, 1004); pub const SQL_DESC_PRECISION = @as(u32, 1005); pub const SQL_DESC_SCALE = @as(u32, 1006); pub const SQL_DESC_DATETIME_INTERVAL_CODE = @as(u32, 1007); pub const SQL_DESC_NULLABLE = @as(u32, 1008); pub const SQL_DESC_INDICATOR_PTR = @as(u32, 1009); pub const SQL_DESC_DATA_PTR = @as(u32, 1010); pub const SQL_DESC_NAME = @as(u32, 1011); pub const SQL_DESC_UNNAMED = @as(u32, 1012); pub const SQL_DESC_OCTET_LENGTH = @as(u32, 1013); pub const SQL_DESC_ALLOC_TYPE = @as(u32, 1099); pub const SQL_DIAG_RETURNCODE = @as(u32, 1); pub const SQL_DIAG_NUMBER = @as(u32, 2); pub const SQL_DIAG_ROW_COUNT = @as(u32, 3); pub const SQL_DIAG_SQLSTATE = @as(u32, 4); pub const SQL_DIAG_NATIVE = @as(u32, 5); pub const SQL_DIAG_MESSAGE_TEXT = @as(u32, 6); pub const SQL_DIAG_DYNAMIC_FUNCTION = @as(u32, 7); pub const SQL_DIAG_CLASS_ORIGIN = @as(u32, 8); pub const SQL_DIAG_SUBCLASS_ORIGIN = @as(u32, 9); pub const SQL_DIAG_CONNECTION_NAME = @as(u32, 10); pub const SQL_DIAG_SERVER_NAME = @as(u32, 11); pub const SQL_DIAG_DYNAMIC_FUNCTION_CODE = @as(u32, 12); pub const SQL_DIAG_ALTER_DOMAIN = @as(u32, 3); pub const SQL_DIAG_ALTER_TABLE = @as(u32, 4); pub const SQL_DIAG_CALL = @as(u32, 7); pub const SQL_DIAG_CREATE_ASSERTION = @as(u32, 6); pub const SQL_DIAG_CREATE_CHARACTER_SET = @as(u32, 8); pub const SQL_DIAG_CREATE_COLLATION = @as(u32, 10); pub const SQL_DIAG_CREATE_DOMAIN = @as(u32, 23); pub const SQL_DIAG_CREATE_INDEX = @as(i32, -1); pub const SQL_DIAG_CREATE_SCHEMA = @as(u32, 64); pub const SQL_DIAG_CREATE_TABLE = @as(u32, 77); pub const SQL_DIAG_CREATE_TRANSLATION = @as(u32, 79); pub const SQL_DIAG_CREATE_VIEW = @as(u32, 84); pub const SQL_DIAG_DELETE_WHERE = @as(u32, 19); pub const SQL_DIAG_DROP_ASSERTION = @as(u32, 24); pub const SQL_DIAG_DROP_CHARACTER_SET = @as(u32, 25); pub const SQL_DIAG_DROP_COLLATION = @as(u32, 26); pub const SQL_DIAG_DROP_DOMAIN = @as(u32, 27); pub const SQL_DIAG_DROP_INDEX = @as(i32, -2); pub const SQL_DIAG_DROP_SCHEMA = @as(u32, 31); pub const SQL_DIAG_DROP_TABLE = @as(u32, 32); pub const SQL_DIAG_DROP_TRANSLATION = @as(u32, 33); pub const SQL_DIAG_DROP_VIEW = @as(u32, 36); pub const SQL_DIAG_DYNAMIC_DELETE_CURSOR = @as(u32, 38); pub const SQL_DIAG_DYNAMIC_UPDATE_CURSOR = @as(u32, 81); pub const SQL_DIAG_GRANT = @as(u32, 48); pub const SQL_DIAG_INSERT = @as(u32, 50); pub const SQL_DIAG_REVOKE = @as(u32, 59); pub const SQL_DIAG_SELECT_CURSOR = @as(u32, 85); pub const SQL_DIAG_UNKNOWN_STATEMENT = @as(u32, 0); pub const SQL_DIAG_UPDATE_WHERE = @as(u32, 82); pub const SQL_UNKNOWN_TYPE = @as(u32, 0); pub const SQL_CHAR = @as(u32, 1); pub const SQL_NUMERIC = @as(u32, 2); pub const SQL_DECIMAL = @as(u32, 3); pub const SQL_INTEGER = @as(u32, 4); pub const SQL_SMALLINT = @as(u32, 5); pub const SQL_FLOAT = @as(u32, 6); pub const SQL_REAL = @as(u32, 7); pub const SQL_DOUBLE = @as(u32, 8); pub const SQL_DATETIME = @as(u32, 9); pub const SQL_VARCHAR = @as(u32, 12); pub const SQL_TYPE_DATE = @as(u32, 91); pub const SQL_TYPE_TIME = @as(u32, 92); pub const SQL_TYPE_TIMESTAMP = @as(u32, 93); pub const SQL_UNSPECIFIED = @as(u32, 0); pub const SQL_INSENSITIVE = @as(u32, 1); pub const SQL_SENSITIVE = @as(u32, 2); pub const SQL_ALL_TYPES = @as(u32, 0); pub const SQL_DEFAULT = @as(u32, 99); pub const SQL_ARD_TYPE = @as(i32, -99); pub const SQL_APD_TYPE = @as(i32, -100); pub const SQL_CODE_DATE = @as(u32, 1); pub const SQL_CODE_TIME = @as(u32, 2); pub const SQL_CODE_TIMESTAMP = @as(u32, 3); pub const SQL_FALSE = @as(u32, 0); pub const SQL_TRUE = @as(u32, 1); pub const SQL_NO_NULLS = @as(u32, 0); pub const SQL_NULLABLE = @as(u32, 1); pub const SQL_NULLABLE_UNKNOWN = @as(u32, 2); pub const SQL_PRED_NONE = @as(u32, 0); pub const SQL_PRED_CHAR = @as(u32, 1); pub const SQL_PRED_BASIC = @as(u32, 2); pub const SQL_NAMED = @as(u32, 0); pub const SQL_UNNAMED = @as(u32, 1); pub const SQL_DESC_ALLOC_AUTO = @as(u32, 1); pub const SQL_DESC_ALLOC_USER = @as(u32, 2); pub const SQL_CLOSE = @as(u32, 0); pub const SQL_DROP = @as(u32, 1); pub const SQL_UNBIND = @as(u32, 2); pub const SQL_RESET_PARAMS = @as(u32, 3); pub const SQL_FETCH_NEXT = @as(u32, 1); pub const SQL_FETCH_FIRST = @as(u32, 2); pub const SQL_FETCH_LAST = @as(u32, 3); pub const SQL_FETCH_PRIOR = @as(u32, 4); pub const SQL_FETCH_ABSOLUTE = @as(u32, 5); pub const SQL_FETCH_RELATIVE = @as(u32, 6); pub const SQL_COMMIT = @as(u32, 0); pub const SQL_ROLLBACK = @as(u32, 1); pub const SQL_NULL_HENV = @as(u32, 0); pub const SQL_NULL_HDBC = @as(u32, 0); pub const SQL_NULL_HSTMT = @as(u32, 0); pub const SQL_NULL_HDESC = @as(u32, 0); pub const SQL_NULL_HANDLE = @as(i32, 0); pub const SQL_SCOPE_CURROW = @as(u32, 0); pub const SQL_SCOPE_TRANSACTION = @as(u32, 1); pub const SQL_SCOPE_SESSION = @as(u32, 2); pub const SQL_PC_UNKNOWN = @as(u32, 0); pub const SQL_PC_NON_PSEUDO = @as(u32, 1); pub const SQL_PC_PSEUDO = @as(u32, 2); pub const SQL_ROW_IDENTIFIER = @as(u32, 1); pub const SQL_INDEX_UNIQUE = @as(u32, 0); pub const SQL_INDEX_ALL = @as(u32, 1); pub const SQL_INDEX_CLUSTERED = @as(u32, 1); pub const SQL_INDEX_HASHED = @as(u32, 2); pub const SQL_INDEX_OTHER = @as(u32, 3); pub const SQL_API_SQLALLOCCONNECT = @as(u32, 1); pub const SQL_API_SQLALLOCENV = @as(u32, 2); pub const SQL_API_SQLALLOCHANDLE = @as(u32, 1001); pub const SQL_API_SQLALLOCSTMT = @as(u32, 3); pub const SQL_API_SQLBINDCOL = @as(u32, 4); pub const SQL_API_SQLBINDPARAM = @as(u32, 1002); pub const SQL_API_SQLCANCEL = @as(u32, 5); pub const SQL_API_SQLCLOSECURSOR = @as(u32, 1003); pub const SQL_API_SQLCOLATTRIBUTE = @as(u32, 6); pub const SQL_API_SQLCOLUMNS = @as(u32, 40); pub const SQL_API_SQLCONNECT = @as(u32, 7); pub const SQL_API_SQLCOPYDESC = @as(u32, 1004); pub const SQL_API_SQLDATASOURCES = @as(u32, 57); pub const SQL_API_SQLDESCRIBECOL = @as(u32, 8); pub const SQL_API_SQLDISCONNECT = @as(u32, 9); pub const SQL_API_SQLENDTRAN = @as(u32, 1005); pub const SQL_API_SQLERROR = @as(u32, 10); pub const SQL_API_SQLEXECDIRECT = @as(u32, 11); pub const SQL_API_SQLEXECUTE = @as(u32, 12); pub const SQL_API_SQLFETCH = @as(u32, 13); pub const SQL_API_SQLFETCHSCROLL = @as(u32, 1021); pub const SQL_API_SQLFREECONNECT = @as(u32, 14); pub const SQL_API_SQLFREEENV = @as(u32, 15); pub const SQL_API_SQLFREEHANDLE = @as(u32, 1006); pub const SQL_API_SQLFREESTMT = @as(u32, 16); pub const SQL_API_SQLGETCONNECTATTR = @as(u32, 1007); pub const SQL_API_SQLGETCONNECTOPTION = @as(u32, 42); pub const SQL_API_SQLGETCURSORNAME = @as(u32, 17); pub const SQL_API_SQLGETDATA = @as(u32, 43); pub const SQL_API_SQLGETDESCFIELD = @as(u32, 1008); pub const SQL_API_SQLGETDESCREC = @as(u32, 1009); pub const SQL_API_SQLGETDIAGFIELD = @as(u32, 1010); pub const SQL_API_SQLGETDIAGREC = @as(u32, 1011); pub const SQL_API_SQLGETENVATTR = @as(u32, 1012); pub const SQL_API_SQLGETFUNCTIONS = @as(u32, 44); pub const SQL_API_SQLGETINFO = @as(u32, 45); pub const SQL_API_SQLGETSTMTATTR = @as(u32, 1014); pub const SQL_API_SQLGETSTMTOPTION = @as(u32, 46); pub const SQL_API_SQLGETTYPEINFO = @as(u32, 47); pub const SQL_API_SQLNUMRESULTCOLS = @as(u32, 18); pub const SQL_API_SQLPARAMDATA = @as(u32, 48); pub const SQL_API_SQLPREPARE = @as(u32, 19); pub const SQL_API_SQLPUTDATA = @as(u32, 49); pub const SQL_API_SQLROWCOUNT = @as(u32, 20); pub const SQL_API_SQLSETCONNECTATTR = @as(u32, 1016); pub const SQL_API_SQLSETCONNECTOPTION = @as(u32, 50); pub const SQL_API_SQLSETCURSORNAME = @as(u32, 21); pub const SQL_API_SQLSETDESCFIELD = @as(u32, 1017); pub const SQL_API_SQLSETDESCREC = @as(u32, 1018); pub const SQL_API_SQLSETENVATTR = @as(u32, 1019); pub const SQL_API_SQLSETPARAM = @as(u32, 22); pub const SQL_API_SQLSETSTMTATTR = @as(u32, 1020); pub const SQL_API_SQLSETSTMTOPTION = @as(u32, 51); pub const SQL_API_SQLSPECIALCOLUMNS = @as(u32, 52); pub const SQL_API_SQLSTATISTICS = @as(u32, 53); pub const SQL_API_SQLTABLES = @as(u32, 54); pub const SQL_API_SQLTRANSACT = @as(u32, 23); pub const SQL_API_SQLCANCELHANDLE = @as(u32, 1550); pub const SQL_API_SQLCOMPLETEASYNC = @as(u32, 1551); pub const SQL_MAX_DRIVER_CONNECTIONS = @as(u32, 0); pub const SQL_MAXIMUM_DRIVER_CONNECTIONS = @as(u32, 0); pub const SQL_MAX_CONCURRENT_ACTIVITIES = @as(u32, 1); pub const SQL_MAXIMUM_CONCURRENT_ACTIVITIES = @as(u32, 1); pub const SQL_DATA_SOURCE_NAME = @as(u32, 2); pub const SQL_FETCH_DIRECTION = @as(u32, 8); pub const SQL_SERVER_NAME = @as(u32, 13); pub const SQL_SEARCH_PATTERN_ESCAPE = @as(u32, 14); pub const SQL_DBMS_NAME = @as(u32, 17); pub const SQL_DBMS_VER = @as(u32, 18); pub const SQL_ACCESSIBLE_TABLES = @as(u32, 19); pub const SQL_ACCESSIBLE_PROCEDURES = @as(u32, 20); pub const SQL_CURSOR_COMMIT_BEHAVIOR = @as(u32, 23); pub const SQL_DATA_SOURCE_READ_ONLY = @as(u32, 25); pub const SQL_DEFAULT_TXN_ISOLATION = @as(u32, 26); pub const SQL_IDENTIFIER_CASE = @as(u32, 28); pub const SQL_IDENTIFIER_QUOTE_CHAR = @as(u32, 29); pub const SQL_MAX_COLUMN_NAME_LEN = @as(u32, 30); pub const SQL_MAXIMUM_COLUMN_NAME_LENGTH = @as(u32, 30); pub const SQL_MAX_CURSOR_NAME_LEN = @as(u32, 31); pub const SQL_MAXIMUM_CURSOR_NAME_LENGTH = @as(u32, 31); pub const SQL_MAX_SCHEMA_NAME_LEN = @as(u32, 32); pub const SQL_MAXIMUM_SCHEMA_NAME_LENGTH = @as(u32, 32); pub const SQL_MAX_CATALOG_NAME_LEN = @as(u32, 34); pub const SQL_MAXIMUM_CATALOG_NAME_LENGTH = @as(u32, 34); pub const SQL_MAX_TABLE_NAME_LEN = @as(u32, 35); pub const SQL_SCROLL_CONCURRENCY = @as(u32, 43); pub const SQL_TXN_CAPABLE = @as(u32, 46); pub const SQL_TRANSACTION_CAPABLE = @as(u32, 46); pub const SQL_USER_NAME = @as(u32, 47); pub const SQL_TXN_ISOLATION_OPTION = @as(u32, 72); pub const SQL_TRANSACTION_ISOLATION_OPTION = @as(u32, 72); pub const SQL_INTEGRITY = @as(u32, 73); pub const SQL_GETDATA_EXTENSIONS = @as(u32, 81); pub const SQL_NULL_COLLATION = @as(u32, 85); pub const SQL_ALTER_TABLE = @as(u32, 86); pub const SQL_ORDER_BY_COLUMNS_IN_SELECT = @as(u32, 90); pub const SQL_SPECIAL_CHARACTERS = @as(u32, 94); pub const SQL_MAX_COLUMNS_IN_GROUP_BY = @as(u32, 97); pub const SQL_MAXIMUM_COLUMNS_IN_GROUP_BY = @as(u32, 97); pub const SQL_MAX_COLUMNS_IN_INDEX = @as(u32, 98); pub const SQL_MAXIMUM_COLUMNS_IN_INDEX = @as(u32, 98); pub const SQL_MAX_COLUMNS_IN_ORDER_BY = @as(u32, 99); pub const SQL_MAXIMUM_COLUMNS_IN_ORDER_BY = @as(u32, 99); pub const SQL_MAX_COLUMNS_IN_SELECT = @as(u32, 100); pub const SQL_MAXIMUM_COLUMNS_IN_SELECT = @as(u32, 100); pub const SQL_MAX_COLUMNS_IN_TABLE = @as(u32, 101); pub const SQL_MAX_INDEX_SIZE = @as(u32, 102); pub const SQL_MAXIMUM_INDEX_SIZE = @as(u32, 102); pub const SQL_MAX_ROW_SIZE = @as(u32, 104); pub const SQL_MAXIMUM_ROW_SIZE = @as(u32, 104); pub const SQL_MAX_STATEMENT_LEN = @as(u32, 105); pub const SQL_MAXIMUM_STATEMENT_LENGTH = @as(u32, 105); pub const SQL_MAX_TABLES_IN_SELECT = @as(u32, 106); pub const SQL_MAXIMUM_TABLES_IN_SELECT = @as(u32, 106); pub const SQL_MAX_USER_NAME_LEN = @as(u32, 107); pub const SQL_MAXIMUM_USER_NAME_LENGTH = @as(u32, 107); pub const SQL_OJ_CAPABILITIES = @as(u32, 115); pub const SQL_OUTER_JOIN_CAPABILITIES = @as(u32, 115); pub const SQL_XOPEN_CLI_YEAR = @as(u32, 10000); pub const SQL_CURSOR_SENSITIVITY = @as(u32, 10001); pub const SQL_DESCRIBE_PARAMETER = @as(u32, 10002); pub const SQL_CATALOG_NAME = @as(u32, 10003); pub const SQL_COLLATION_SEQ = @as(u32, 10004); pub const SQL_MAX_IDENTIFIER_LEN = @as(u32, 10005); pub const SQL_MAXIMUM_IDENTIFIER_LENGTH = @as(u32, 10005); pub const SQL_AT_ADD_COLUMN = @as(i32, 1); pub const SQL_AT_DROP_COLUMN = @as(i32, 2); pub const SQL_AT_ADD_CONSTRAINT = @as(i32, 8); pub const SQL_AM_NONE = @as(u32, 0); pub const SQL_AM_CONNECTION = @as(u32, 1); pub const SQL_AM_STATEMENT = @as(u32, 2); pub const SQL_CB_DELETE = @as(u32, 0); pub const SQL_CB_CLOSE = @as(u32, 1); pub const SQL_CB_PRESERVE = @as(u32, 2); pub const SQL_FD_FETCH_NEXT = @as(i32, 1); pub const SQL_FD_FETCH_FIRST = @as(i32, 2); pub const SQL_FD_FETCH_LAST = @as(i32, 4); pub const SQL_FD_FETCH_PRIOR = @as(i32, 8); pub const SQL_FD_FETCH_ABSOLUTE = @as(i32, 16); pub const SQL_FD_FETCH_RELATIVE = @as(i32, 32); pub const SQL_GD_ANY_COLUMN = @as(i32, 1); pub const SQL_GD_ANY_ORDER = @as(i32, 2); pub const SQL_IC_UPPER = @as(u32, 1); pub const SQL_IC_LOWER = @as(u32, 2); pub const SQL_IC_SENSITIVE = @as(u32, 3); pub const SQL_IC_MIXED = @as(u32, 4); pub const SQL_OJ_LEFT = @as(i32, 1); pub const SQL_OJ_RIGHT = @as(i32, 2); pub const SQL_OJ_FULL = @as(i32, 4); pub const SQL_OJ_NESTED = @as(i32, 8); pub const SQL_OJ_NOT_ORDERED = @as(i32, 16); pub const SQL_OJ_INNER = @as(i32, 32); pub const SQL_OJ_ALL_COMPARISON_OPS = @as(i32, 64); pub const SQL_SCCO_READ_ONLY = @as(i32, 1); pub const SQL_SCCO_LOCK = @as(i32, 2); pub const SQL_SCCO_OPT_ROWVER = @as(i32, 4); pub const SQL_SCCO_OPT_VALUES = @as(i32, 8); pub const SQL_TC_NONE = @as(u32, 0); pub const SQL_TC_DML = @as(u32, 1); pub const SQL_TC_ALL = @as(u32, 2); pub const SQL_TC_DDL_COMMIT = @as(u32, 3); pub const SQL_TC_DDL_IGNORE = @as(u32, 4); pub const SQL_TXN_READ_UNCOMMITTED = @as(i32, 1); pub const SQL_TRANSACTION_READ_UNCOMMITTED = @as(i32, 1); pub const SQL_TXN_READ_COMMITTED = @as(i32, 2); pub const SQL_TRANSACTION_READ_COMMITTED = @as(i32, 2); pub const SQL_TXN_REPEATABLE_READ = @as(i32, 4); pub const SQL_TRANSACTION_REPEATABLE_READ = @as(i32, 4); pub const SQL_TXN_SERIALIZABLE = @as(i32, 8); pub const SQL_TRANSACTION_SERIALIZABLE = @as(i32, 8); pub const SQL_NC_HIGH = @as(u32, 0); pub const SQL_NC_LOW = @as(u32, 1); pub const SQL_SPEC_MAJOR = @as(u32, 3); pub const SQL_SPEC_MINOR = @as(u32, 80); pub const SQL_SQLSTATE_SIZE = @as(u32, 5); pub const SQL_MAX_DSN_LENGTH = @as(u32, 32); pub const SQL_MAX_OPTION_STRING_LENGTH = @as(u32, 256); pub const SQL_NO_DATA_FOUND = @as(u32, 100); pub const SQL_HANDLE_SENV = @as(u32, 5); pub const SQL_ATTR_ODBC_VERSION = @as(u32, 200); pub const SQL_ATTR_CONNECTION_POOLING = @as(u32, 201); pub const SQL_ATTR_CP_MATCH = @as(u32, 202); pub const SQL_ATTR_APPLICATION_KEY = @as(u32, 203); pub const SQL_CP_OFF = @as(u32, 0); pub const SQL_CP_ONE_PER_DRIVER = @as(u32, 1); pub const SQL_CP_ONE_PER_HENV = @as(u32, 2); pub const SQL_CP_DRIVER_AWARE = @as(u32, 3); pub const SQL_CP_DEFAULT = @as(u32, 0); pub const SQL_CP_STRICT_MATCH = @as(u32, 0); pub const SQL_CP_RELAXED_MATCH = @as(u32, 1); pub const SQL_CP_MATCH_DEFAULT = @as(u32, 0); pub const SQL_OV_ODBC2 = @as(u32, 2); pub const SQL_OV_ODBC3 = @as(u32, 3); pub const SQL_OV_ODBC3_80 = @as(u32, 380); pub const SQL_ACCESS_MODE = @as(u32, 101); pub const SQL_AUTOCOMMIT = @as(u32, 102); pub const SQL_LOGIN_TIMEOUT = @as(u32, 103); pub const SQL_OPT_TRACE = @as(u32, 104); pub const SQL_OPT_TRACEFILE = @as(u32, 105); pub const SQL_TRANSLATE_DLL = @as(u32, 106); pub const SQL_TRANSLATE_OPTION = @as(u32, 107); pub const SQL_TXN_ISOLATION = @as(u32, 108); pub const SQL_CURRENT_QUALIFIER = @as(u32, 109); pub const SQL_ODBC_CURSORS = @as(u32, 110); pub const SQL_QUIET_MODE = @as(u32, 111); pub const SQL_PACKET_SIZE = @as(u32, 112); pub const SQL_ATTR_ACCESS_MODE = @as(u32, 101); pub const SQL_ATTR_AUTOCOMMIT = @as(u32, 102); pub const SQL_ATTR_CONNECTION_TIMEOUT = @as(u32, 113); pub const SQL_ATTR_CURRENT_CATALOG = @as(u32, 109); pub const SQL_ATTR_DISCONNECT_BEHAVIOR = @as(u32, 114); pub const SQL_ATTR_ENLIST_IN_DTC = @as(u32, 1207); pub const SQL_ATTR_ENLIST_IN_XA = @as(u32, 1208); pub const SQL_ATTR_LOGIN_TIMEOUT = @as(u32, 103); pub const SQL_ATTR_ODBC_CURSORS = @as(u32, 110); pub const SQL_ATTR_PACKET_SIZE = @as(u32, 112); pub const SQL_ATTR_QUIET_MODE = @as(u32, 111); pub const SQL_ATTR_TRACE = @as(u32, 104); pub const SQL_ATTR_TRACEFILE = @as(u32, 105); pub const SQL_ATTR_TRANSLATE_LIB = @as(u32, 106); pub const SQL_ATTR_TRANSLATE_OPTION = @as(u32, 107); pub const SQL_ATTR_TXN_ISOLATION = @as(u32, 108); pub const SQL_ATTR_CONNECTION_DEAD = @as(u32, 1209); pub const SQL_ATTR_ANSI_APP = @as(u32, 115); pub const SQL_ATTR_RESET_CONNECTION = @as(u32, 116); pub const SQL_ATTR_ASYNC_DBC_FUNCTIONS_ENABLE = @as(u32, 117); pub const SQL_ATTR_ASYNC_DBC_EVENT = @as(u32, 119); pub const SQL_CONNECT_OPT_DRVR_START = @as(u32, 1000); pub const SQL_CONN_OPT_MAX = @as(u32, 112); pub const SQL_CONN_OPT_MIN = @as(u32, 101); pub const SQL_MODE_READ_WRITE = @as(u32, 0); pub const SQL_MODE_READ_ONLY = @as(u32, 1); pub const SQL_MODE_DEFAULT = @as(u32, 0); pub const SQL_AUTOCOMMIT_OFF = @as(u32, 0); pub const SQL_AUTOCOMMIT_ON = @as(u32, 1); pub const SQL_AUTOCOMMIT_DEFAULT = @as(u32, 1); pub const SQL_LOGIN_TIMEOUT_DEFAULT = @as(u32, 15); pub const SQL_OPT_TRACE_OFF = @as(u32, 0); pub const SQL_OPT_TRACE_ON = @as(u32, 1); pub const SQL_OPT_TRACE_DEFAULT = @as(u32, 0); pub const SQL_CUR_USE_IF_NEEDED = @as(u32, 0); pub const SQL_CUR_USE_ODBC = @as(u32, 1); pub const SQL_CUR_USE_DRIVER = @as(u32, 2); pub const SQL_CUR_DEFAULT = @as(u32, 2); pub const SQL_DB_RETURN_TO_POOL = @as(u32, 0); pub const SQL_DB_DISCONNECT = @as(u32, 1); pub const SQL_DB_DEFAULT = @as(u32, 0); pub const SQL_DTC_DONE = @as(i32, 0); pub const SQL_CD_TRUE = @as(i32, 1); pub const SQL_CD_FALSE = @as(i32, 0); pub const SQL_AA_TRUE = @as(i32, 1); pub const SQL_AA_FALSE = @as(i32, 0); pub const SQL_RESET_CONNECTION_YES = @as(u32, 1); pub const SQL_ASYNC_DBC_ENABLE_ON = @as(u32, 1); pub const SQL_ASYNC_DBC_ENABLE_OFF = @as(u32, 0); pub const SQL_ASYNC_DBC_ENABLE_DEFAULT = @as(u32, 0); pub const SQL_QUERY_TIMEOUT = @as(u32, 0); pub const SQL_MAX_ROWS = @as(u32, 1); pub const SQL_NOSCAN = @as(u32, 2); pub const SQL_MAX_LENGTH = @as(u32, 3); pub const SQL_ASYNC_ENABLE = @as(u32, 4); pub const SQL_BIND_TYPE = @as(u32, 5); pub const SQL_CURSOR_TYPE = @as(u32, 6); pub const SQL_CONCURRENCY = @as(u32, 7); pub const SQL_KEYSET_SIZE = @as(u32, 8); pub const SQL_ROWSET_SIZE = @as(u32, 9); pub const SQL_SIMULATE_CURSOR = @as(u32, 10); pub const SQL_RETRIEVE_DATA = @as(u32, 11); pub const SQL_USE_BOOKMARKS = @as(u32, 12); pub const SQL_GET_BOOKMARK = @as(u32, 13); pub const SQL_ROW_NUMBER = @as(u32, 14); pub const SQL_ATTR_ASYNC_ENABLE = @as(u32, 4); pub const SQL_ATTR_CONCURRENCY = @as(u32, 7); pub const SQL_ATTR_CURSOR_TYPE = @as(u32, 6); pub const SQL_ATTR_ENABLE_AUTO_IPD = @as(u32, 15); pub const SQL_ATTR_FETCH_BOOKMARK_PTR = @as(u32, 16); pub const SQL_ATTR_KEYSET_SIZE = @as(u32, 8); pub const SQL_ATTR_MAX_LENGTH = @as(u32, 3); pub const SQL_ATTR_MAX_ROWS = @as(u32, 1); pub const SQL_ATTR_NOSCAN = @as(u32, 2); pub const SQL_ATTR_PARAM_BIND_OFFSET_PTR = @as(u32, 17); pub const SQL_ATTR_PARAM_BIND_TYPE = @as(u32, 18); pub const SQL_ATTR_PARAM_OPERATION_PTR = @as(u32, 19); pub const SQL_ATTR_PARAM_STATUS_PTR = @as(u32, 20); pub const SQL_ATTR_PARAMS_PROCESSED_PTR = @as(u32, 21); pub const SQL_ATTR_PARAMSET_SIZE = @as(u32, 22); pub const SQL_ATTR_QUERY_TIMEOUT = @as(u32, 0); pub const SQL_ATTR_RETRIEVE_DATA = @as(u32, 11); pub const SQL_ATTR_ROW_BIND_OFFSET_PTR = @as(u32, 23); pub const SQL_ATTR_ROW_BIND_TYPE = @as(u32, 5); pub const SQL_ATTR_ROW_NUMBER = @as(u32, 14); pub const SQL_ATTR_ROW_OPERATION_PTR = @as(u32, 24); pub const SQL_ATTR_ROW_STATUS_PTR = @as(u32, 25); pub const SQL_ATTR_ROWS_FETCHED_PTR = @as(u32, 26); pub const SQL_ATTR_ROW_ARRAY_SIZE = @as(u32, 27); pub const SQL_ATTR_SIMULATE_CURSOR = @as(u32, 10); pub const SQL_ATTR_USE_BOOKMARKS = @as(u32, 12); pub const SQL_ATTR_ASYNC_STMT_EVENT = @as(u32, 29); pub const SQL_STMT_OPT_MAX = @as(u32, 14); pub const SQL_STMT_OPT_MIN = @as(u32, 0); pub const SQL_IS_POINTER = @as(i32, -4); pub const SQL_IS_UINTEGER = @as(i32, -5); pub const SQL_IS_INTEGER = @as(i32, -6); pub const SQL_IS_USMALLINT = @as(i32, -7); pub const SQL_IS_SMALLINT = @as(i32, -8); pub const SQL_PARAM_BIND_BY_COLUMN = @as(u32, 0); pub const SQL_PARAM_BIND_TYPE_DEFAULT = @as(u32, 0); pub const SQL_QUERY_TIMEOUT_DEFAULT = @as(u32, 0); pub const SQL_MAX_ROWS_DEFAULT = @as(u32, 0); pub const SQL_NOSCAN_OFF = @as(u32, 0); pub const SQL_NOSCAN_ON = @as(u32, 1); pub const SQL_NOSCAN_DEFAULT = @as(u32, 0); pub const SQL_MAX_LENGTH_DEFAULT = @as(u32, 0); pub const SQL_ASYNC_ENABLE_OFF = @as(u32, 0); pub const SQL_ASYNC_ENABLE_ON = @as(u32, 1); pub const SQL_ASYNC_ENABLE_DEFAULT = @as(u32, 0); pub const SQL_BIND_BY_COLUMN = @as(u32, 0); pub const SQL_BIND_TYPE_DEFAULT = @as(u32, 0); pub const SQL_CONCUR_READ_ONLY = @as(u32, 1); pub const SQL_CONCUR_LOCK = @as(u32, 2); pub const SQL_CONCUR_ROWVER = @as(u32, 3); pub const SQL_CONCUR_VALUES = @as(u32, 4); pub const SQL_CONCUR_DEFAULT = @as(u32, 1); pub const SQL_CURSOR_FORWARD_ONLY = @as(u32, 0); pub const SQL_CURSOR_KEYSET_DRIVEN = @as(u32, 1); pub const SQL_CURSOR_DYNAMIC = @as(u32, 2); pub const SQL_CURSOR_STATIC = @as(u32, 3); pub const SQL_CURSOR_TYPE_DEFAULT = @as(u32, 0); pub const SQL_ROWSET_SIZE_DEFAULT = @as(u32, 1); pub const SQL_KEYSET_SIZE_DEFAULT = @as(u32, 0); pub const SQL_SC_NON_UNIQUE = @as(u32, 0); pub const SQL_SC_TRY_UNIQUE = @as(u32, 1); pub const SQL_SC_UNIQUE = @as(u32, 2); pub const SQL_RD_OFF = @as(u32, 0); pub const SQL_RD_ON = @as(u32, 1); pub const SQL_RD_DEFAULT = @as(u32, 1); pub const SQL_UB_OFF = @as(u32, 0); pub const SQL_UB_ON = @as(u32, 1); pub const SQL_UB_DEFAULT = @as(u32, 0); pub const SQL_UB_FIXED = @as(u32, 1); pub const SQL_UB_VARIABLE = @as(u32, 2); pub const SQL_DESC_ARRAY_SIZE = @as(u32, 20); pub const SQL_DESC_ARRAY_STATUS_PTR = @as(u32, 21); pub const SQL_DESC_BASE_COLUMN_NAME = @as(u32, 22); pub const SQL_DESC_BASE_TABLE_NAME = @as(u32, 23); pub const SQL_DESC_BIND_OFFSET_PTR = @as(u32, 24); pub const SQL_DESC_BIND_TYPE = @as(u32, 25); pub const SQL_DESC_DATETIME_INTERVAL_PRECISION = @as(u32, 26); pub const SQL_DESC_LITERAL_PREFIX = @as(u32, 27); pub const SQL_DESC_LITERAL_SUFFIX = @as(u32, 28); pub const SQL_DESC_LOCAL_TYPE_NAME = @as(u32, 29); pub const SQL_DESC_MAXIMUM_SCALE = @as(u32, 30); pub const SQL_DESC_MINIMUM_SCALE = @as(u32, 31); pub const SQL_DESC_NUM_PREC_RADIX = @as(u32, 32); pub const SQL_DESC_PARAMETER_TYPE = @as(u32, 33); pub const SQL_DESC_ROWS_PROCESSED_PTR = @as(u32, 34); pub const SQL_DESC_ROWVER = @as(u32, 35); pub const SQL_DIAG_CURSOR_ROW_COUNT = @as(i32, -1249); pub const SQL_DIAG_ROW_NUMBER = @as(i32, -1248); pub const SQL_DIAG_COLUMN_NUMBER = @as(i32, -1247); pub const SQL_DATE = @as(u32, 9); pub const SQL_INTERVAL = @as(u32, 10); pub const SQL_TIME = @as(u32, 10); pub const SQL_TIMESTAMP = @as(u32, 11); pub const SQL_LONGVARCHAR = @as(i32, -1); pub const SQL_BINARY = @as(i32, -2); pub const SQL_VARBINARY = @as(i32, -3); pub const SQL_LONGVARBINARY = @as(i32, -4); pub const SQL_BIGINT = @as(i32, -5); pub const SQL_TINYINT = @as(i32, -6); pub const SQL_BIT = @as(i32, -7); pub const SQL_GUID = @as(i32, -11); pub const SQL_CODE_YEAR = @as(u32, 1); pub const SQL_CODE_MONTH = @as(u32, 2); pub const SQL_CODE_DAY = @as(u32, 3); pub const SQL_CODE_HOUR = @as(u32, 4); pub const SQL_CODE_MINUTE = @as(u32, 5); pub const SQL_CODE_SECOND = @as(u32, 6); pub const SQL_CODE_YEAR_TO_MONTH = @as(u32, 7); pub const SQL_CODE_DAY_TO_HOUR = @as(u32, 8); pub const SQL_CODE_DAY_TO_MINUTE = @as(u32, 9); pub const SQL_CODE_DAY_TO_SECOND = @as(u32, 10); pub const SQL_CODE_HOUR_TO_MINUTE = @as(u32, 11); pub const SQL_CODE_HOUR_TO_SECOND = @as(u32, 12); pub const SQL_CODE_MINUTE_TO_SECOND = @as(u32, 13); pub const SQL_INTERVAL_YEAR = @as(i32, -80); pub const SQL_INTERVAL_MONTH = @as(i32, -81); pub const SQL_INTERVAL_YEAR_TO_MONTH = @as(i32, -82); pub const SQL_INTERVAL_DAY = @as(i32, -83); pub const SQL_INTERVAL_HOUR = @as(i32, -84); pub const SQL_INTERVAL_MINUTE = @as(i32, -85); pub const SQL_INTERVAL_SECOND = @as(i32, -86); pub const SQL_INTERVAL_DAY_TO_HOUR = @as(i32, -87); pub const SQL_INTERVAL_DAY_TO_MINUTE = @as(i32, -88); pub const SQL_INTERVAL_DAY_TO_SECOND = @as(i32, -89); pub const SQL_INTERVAL_HOUR_TO_MINUTE = @as(i32, -90); pub const SQL_INTERVAL_HOUR_TO_SECOND = @as(i32, -91); pub const SQL_INTERVAL_MINUTE_TO_SECOND = @as(i32, -92); pub const SQL_UNICODE = @as(i32, -95); pub const SQL_UNICODE_VARCHAR = @as(i32, -96); pub const SQL_UNICODE_LONGVARCHAR = @as(i32, -97); pub const SQL_UNICODE_CHAR = @as(i32, -95); pub const SQL_TYPE_DRIVER_START = @as(i32, -80); pub const SQL_TYPE_DRIVER_END = @as(i32, -97); pub const SQL_C_CHAR = @as(u32, 1); pub const SQL_C_LONG = @as(u32, 4); pub const SQL_C_SHORT = @as(u32, 5); pub const SQL_C_FLOAT = @as(u32, 7); pub const SQL_C_DOUBLE = @as(u32, 8); pub const SQL_C_NUMERIC = @as(u32, 2); pub const SQL_C_DEFAULT = @as(u32, 99); pub const SQL_SIGNED_OFFSET = @as(i32, -20); pub const SQL_UNSIGNED_OFFSET = @as(i32, -22); pub const SQL_C_DATE = @as(u32, 9); pub const SQL_C_TIME = @as(u32, 10); pub const SQL_C_TIMESTAMP = @as(u32, 11); pub const SQL_C_TYPE_DATE = @as(u32, 91); pub const SQL_C_TYPE_TIME = @as(u32, 92); pub const SQL_C_TYPE_TIMESTAMP = @as(u32, 93); pub const SQL_C_INTERVAL_YEAR = @as(i32, -80); pub const SQL_C_INTERVAL_MONTH = @as(i32, -81); pub const SQL_C_INTERVAL_DAY = @as(i32, -83); pub const SQL_C_INTERVAL_HOUR = @as(i32, -84); pub const SQL_C_INTERVAL_MINUTE = @as(i32, -85); pub const SQL_C_INTERVAL_SECOND = @as(i32, -86); pub const SQL_C_INTERVAL_YEAR_TO_MONTH = @as(i32, -82); pub const SQL_C_INTERVAL_DAY_TO_HOUR = @as(i32, -87); pub const SQL_C_INTERVAL_DAY_TO_MINUTE = @as(i32, -88); pub const SQL_C_INTERVAL_DAY_TO_SECOND = @as(i32, -89); pub const SQL_C_INTERVAL_HOUR_TO_MINUTE = @as(i32, -90); pub const SQL_C_INTERVAL_HOUR_TO_SECOND = @as(i32, -91); pub const SQL_C_INTERVAL_MINUTE_TO_SECOND = @as(i32, -92); pub const SQL_C_BINARY = @as(i32, -2); pub const SQL_C_BIT = @as(i32, -7); pub const SQL_C_TINYINT = @as(i32, -6); pub const SQL_C_GUID = @as(i32, -11); pub const SQL_TYPE_NULL = @as(u32, 0); pub const SQL_TYPE_MIN = @as(i32, -7); pub const SQL_TYPE_MAX = @as(u32, 12); pub const SQL_DRIVER_C_TYPE_BASE = @as(u32, 16384); pub const SQL_DRIVER_SQL_TYPE_BASE = @as(u32, 16384); pub const SQL_DRIVER_DESC_FIELD_BASE = @as(u32, 16384); pub const SQL_DRIVER_DIAG_FIELD_BASE = @as(u32, 16384); pub const SQL_DRIVER_INFO_TYPE_BASE = @as(u32, 16384); pub const SQL_DRIVER_CONN_ATTR_BASE = @as(u32, 16384); pub const SQL_DRIVER_STMT_ATTR_BASE = @as(u32, 16384); pub const SQL_C_VARBOOKMARK = @as(i32, -2); pub const SQL_NO_ROW_NUMBER = @as(i32, -1); pub const SQL_NO_COLUMN_NUMBER = @as(i32, -1); pub const SQL_ROW_NUMBER_UNKNOWN = @as(i32, -2); pub const SQL_COLUMN_NUMBER_UNKNOWN = @as(i32, -2); pub const SQL_DEFAULT_PARAM = @as(i32, -5); pub const SQL_IGNORE = @as(i32, -6); pub const SQL_COLUMN_IGNORE = @as(i32, -6); pub const SQL_LEN_DATA_AT_EXEC_OFFSET = @as(i32, -100); pub const SQL_LEN_BINARY_ATTR_OFFSET = @as(i32, -100); pub const SQL_SETPARAM_VALUE_MAX = @as(i32, -1); pub const SQL_COLUMN_COUNT = @as(u32, 0); pub const SQL_COLUMN_NAME = @as(u32, 1); pub const SQL_COLUMN_TYPE = @as(u32, 2); pub const SQL_COLUMN_LENGTH = @as(u32, 3); pub const SQL_COLUMN_PRECISION = @as(u32, 4); pub const SQL_COLUMN_SCALE = @as(u32, 5); pub const SQL_COLUMN_DISPLAY_SIZE = @as(u32, 6); pub const SQL_COLUMN_NULLABLE = @as(u32, 7); pub const SQL_COLUMN_UNSIGNED = @as(u32, 8); pub const SQL_COLUMN_MONEY = @as(u32, 9); pub const SQL_COLUMN_UPDATABLE = @as(u32, 10); pub const SQL_COLUMN_AUTO_INCREMENT = @as(u32, 11); pub const SQL_COLUMN_CASE_SENSITIVE = @as(u32, 12); pub const SQL_COLUMN_SEARCHABLE = @as(u32, 13); pub const SQL_COLUMN_TYPE_NAME = @as(u32, 14); pub const SQL_COLUMN_TABLE_NAME = @as(u32, 15); pub const SQL_COLUMN_OWNER_NAME = @as(u32, 16); pub const SQL_COLUMN_QUALIFIER_NAME = @as(u32, 17); pub const SQL_COLUMN_LABEL = @as(u32, 18); pub const SQL_COLATT_OPT_MAX = @as(u32, 18); pub const SQL_COLUMN_DRIVER_START = @as(u32, 1000); pub const SQL_COLATT_OPT_MIN = @as(u32, 0); pub const SQL_ATTR_READONLY = @as(u32, 0); pub const SQL_ATTR_WRITE = @as(u32, 1); pub const SQL_ATTR_READWRITE_UNKNOWN = @as(u32, 2); pub const SQL_UNSEARCHABLE = @as(u32, 0); pub const SQL_LIKE_ONLY = @as(u32, 1); pub const SQL_ALL_EXCEPT_LIKE = @as(u32, 2); pub const SQL_SEARCHABLE = @as(u32, 3); pub const SQL_PRED_SEARCHABLE = @as(u32, 3); pub const SQL_NO_TOTAL = @as(i32, -4); pub const SQL_API_SQLALLOCHANDLESTD = @as(u32, 73); pub const SQL_API_SQLBULKOPERATIONS = @as(u32, 24); pub const SQL_API_SQLBINDPARAMETER = @as(u32, 72); pub const SQL_API_SQLBROWSECONNECT = @as(u32, 55); pub const SQL_API_SQLCOLATTRIBUTES = @as(u32, 6); pub const SQL_API_SQLCOLUMNPRIVILEGES = @as(u32, 56); pub const SQL_API_SQLDESCRIBEPARAM = @as(u32, 58); pub const SQL_API_SQLDRIVERCONNECT = @as(u32, 41); pub const SQL_API_SQLDRIVERS = @as(u32, 71); pub const SQL_API_SQLPRIVATEDRIVERS = @as(u32, 79); pub const SQL_API_SQLEXTENDEDFETCH = @as(u32, 59); pub const SQL_API_SQLFOREIGNKEYS = @as(u32, 60); pub const SQL_API_SQLMORERESULTS = @as(u32, 61); pub const SQL_API_SQLNATIVESQL = @as(u32, 62); pub const SQL_API_SQLNUMPARAMS = @as(u32, 63); pub const SQL_API_SQLPARAMOPTIONS = @as(u32, 64); pub const SQL_API_SQLPRIMARYKEYS = @as(u32, 65); pub const SQL_API_SQLPROCEDURECOLUMNS = @as(u32, 66); pub const SQL_API_SQLPROCEDURES = @as(u32, 67); pub const SQL_API_SQLSETPOS = @as(u32, 68); pub const SQL_API_SQLSETSCROLLOPTIONS = @as(u32, 69); pub const SQL_API_SQLTABLEPRIVILEGES = @as(u32, 70); pub const SQL_EXT_API_LAST = @as(u32, 72); pub const SQL_NUM_FUNCTIONS = @as(u32, 23); pub const SQL_EXT_API_START = @as(u32, 40); pub const SQL_API_ALL_FUNCTIONS = @as(u32, 0); pub const SQL_API_LOADBYORDINAL = @as(u32, 199); pub const SQL_API_ODBC3_ALL_FUNCTIONS = @as(u32, 999); pub const SQL_API_ODBC3_ALL_FUNCTIONS_SIZE = @as(u32, 250); pub const SQL_INFO_FIRST = @as(u32, 0); pub const SQL_ACTIVE_CONNECTIONS = @as(u32, 0); pub const SQL_ACTIVE_STATEMENTS = @as(u32, 1); pub const SQL_DRIVER_HDBC = @as(u32, 3); pub const SQL_DRIVER_HENV = @as(u32, 4); pub const SQL_DRIVER_HSTMT = @as(u32, 5); pub const SQL_DRIVER_NAME = @as(u32, 6); pub const SQL_DRIVER_VER = @as(u32, 7); pub const SQL_ODBC_API_CONFORMANCE = @as(u32, 9); pub const SQL_ODBC_VER = @as(u32, 10); pub const SQL_ROW_UPDATES = @as(u32, 11); pub const SQL_ODBC_SAG_CLI_CONFORMANCE = @as(u32, 12); pub const SQL_ODBC_SQL_CONFORMANCE = @as(u32, 15); pub const SQL_PROCEDURES = @as(u32, 21); pub const SQL_CONCAT_NULL_BEHAVIOR = @as(u32, 22); pub const SQL_CURSOR_ROLLBACK_BEHAVIOR = @as(u32, 24); pub const SQL_EXPRESSIONS_IN_ORDERBY = @as(u32, 27); pub const SQL_MAX_OWNER_NAME_LEN = @as(u32, 32); pub const SQL_MAX_PROCEDURE_NAME_LEN = @as(u32, 33); pub const SQL_MAX_QUALIFIER_NAME_LEN = @as(u32, 34); pub const SQL_MULT_RESULT_SETS = @as(u32, 36); pub const SQL_MULTIPLE_ACTIVE_TXN = @as(u32, 37); pub const SQL_OUTER_JOINS = @as(u32, 38); pub const SQL_OWNER_TERM = @as(u32, 39); pub const SQL_PROCEDURE_TERM = @as(u32, 40); pub const SQL_QUALIFIER_NAME_SEPARATOR = @as(u32, 41); pub const SQL_QUALIFIER_TERM = @as(u32, 42); pub const SQL_SCROLL_OPTIONS = @as(u32, 44); pub const SQL_TABLE_TERM = @as(u32, 45); pub const SQL_CONVERT_FUNCTIONS = @as(u32, 48); pub const SQL_NUMERIC_FUNCTIONS = @as(u32, 49); pub const SQL_STRING_FUNCTIONS = @as(u32, 50); pub const SQL_SYSTEM_FUNCTIONS = @as(u32, 51); pub const SQL_TIMEDATE_FUNCTIONS = @as(u32, 52); pub const SQL_CONVERT_BIGINT = @as(u32, 53); pub const SQL_CONVERT_BINARY = @as(u32, 54); pub const SQL_CONVERT_BIT = @as(u32, 55); pub const SQL_CONVERT_CHAR = @as(u32, 56); pub const SQL_CONVERT_DATE = @as(u32, 57); pub const SQL_CONVERT_DECIMAL = @as(u32, 58); pub const SQL_CONVERT_DOUBLE = @as(u32, 59); pub const SQL_CONVERT_FLOAT = @as(u32, 60); pub const SQL_CONVERT_INTEGER = @as(u32, 61); pub const SQL_CONVERT_LONGVARCHAR = @as(u32, 62); pub const SQL_CONVERT_NUMERIC = @as(u32, 63); pub const SQL_CONVERT_REAL = @as(u32, 64); pub const SQL_CONVERT_SMALLINT = @as(u32, 65); pub const SQL_CONVERT_TIME = @as(u32, 66); pub const SQL_CONVERT_TIMESTAMP = @as(u32, 67); pub const SQL_CONVERT_TINYINT = @as(u32, 68); pub const SQL_CONVERT_VARBINARY = @as(u32, 69); pub const SQL_CONVERT_VARCHAR = @as(u32, 70); pub const SQL_CONVERT_LONGVARBINARY = @as(u32, 71); pub const SQL_ODBC_SQL_OPT_IEF = @as(u32, 73); pub const SQL_CORRELATION_NAME = @as(u32, 74); pub const SQL_NON_NULLABLE_COLUMNS = @as(u32, 75); pub const SQL_DRIVER_HLIB = @as(u32, 76); pub const SQL_DRIVER_ODBC_VER = @as(u32, 77); pub const SQL_LOCK_TYPES = @as(u32, 78); pub const SQL_POS_OPERATIONS = @as(u32, 79); pub const SQL_POSITIONED_STATEMENTS = @as(u32, 80); pub const SQL_BOOKMARK_PERSISTENCE = @as(u32, 82); pub const SQL_STATIC_SENSITIVITY = @as(u32, 83); pub const SQL_FILE_USAGE = @as(u32, 84); pub const SQL_COLUMN_ALIAS = @as(u32, 87); pub const SQL_GROUP_BY = @as(u32, 88); pub const SQL_KEYWORDS = @as(u32, 89); pub const SQL_OWNER_USAGE = @as(u32, 91); pub const SQL_QUALIFIER_USAGE = @as(u32, 92); pub const SQL_QUOTED_IDENTIFIER_CASE = @as(u32, 93); pub const SQL_SUBQUERIES = @as(u32, 95); pub const SQL_UNION = @as(u32, 96); pub const SQL_MAX_ROW_SIZE_INCLUDES_LONG = @as(u32, 103); pub const SQL_MAX_CHAR_LITERAL_LEN = @as(u32, 108); pub const SQL_TIMEDATE_ADD_INTERVALS = @as(u32, 109); pub const SQL_TIMEDATE_DIFF_INTERVALS = @as(u32, 110); pub const SQL_NEED_LONG_DATA_LEN = @as(u32, 111); pub const SQL_MAX_BINARY_LITERAL_LEN = @as(u32, 112); pub const SQL_LIKE_ESCAPE_CLAUSE = @as(u32, 113); pub const SQL_QUALIFIER_LOCATION = @as(u32, 114); pub const SQL_INFO_LAST = @as(u32, 114); pub const SQL_INFO_DRIVER_START = @as(u32, 1000); pub const SQL_ACTIVE_ENVIRONMENTS = @as(u32, 116); pub const SQL_ALTER_DOMAIN = @as(u32, 117); pub const SQL_SQL_CONFORMANCE = @as(u32, 118); pub const SQL_DATETIME_LITERALS = @as(u32, 119); pub const SQL_ASYNC_MODE = @as(u32, 10021); pub const SQL_BATCH_ROW_COUNT = @as(u32, 120); pub const SQL_BATCH_SUPPORT = @as(u32, 121); pub const SQL_CATALOG_LOCATION = @as(u32, 114); pub const SQL_CATALOG_NAME_SEPARATOR = @as(u32, 41); pub const SQL_CATALOG_TERM = @as(u32, 42); pub const SQL_CATALOG_USAGE = @as(u32, 92); pub const SQL_CONVERT_WCHAR = @as(u32, 122); pub const SQL_CONVERT_INTERVAL_DAY_TIME = @as(u32, 123); pub const SQL_CONVERT_INTERVAL_YEAR_MONTH = @as(u32, 124); pub const SQL_CONVERT_WLONGVARCHAR = @as(u32, 125); pub const SQL_CONVERT_WVARCHAR = @as(u32, 126); pub const SQL_CREATE_ASSERTION = @as(u32, 127); pub const SQL_CREATE_CHARACTER_SET = @as(u32, 128); pub const SQL_CREATE_COLLATION = @as(u32, 129); pub const SQL_CREATE_DOMAIN = @as(u32, 130); pub const SQL_CREATE_SCHEMA = @as(u32, 131); pub const SQL_CREATE_TABLE = @as(u32, 132); pub const SQL_CREATE_TRANSLATION = @as(u32, 133); pub const SQL_CREATE_VIEW = @as(u32, 134); pub const SQL_DRIVER_HDESC = @as(u32, 135); pub const SQL_DROP_ASSERTION = @as(u32, 136); pub const SQL_DROP_CHARACTER_SET = @as(u32, 137); pub const SQL_DROP_COLLATION = @as(u32, 138); pub const SQL_DROP_DOMAIN = @as(u32, 139); pub const SQL_DROP_SCHEMA = @as(u32, 140); pub const SQL_DROP_TABLE = @as(u32, 141); pub const SQL_DROP_TRANSLATION = @as(u32, 142); pub const SQL_DROP_VIEW = @as(u32, 143); pub const SQL_DYNAMIC_CURSOR_ATTRIBUTES1 = @as(u32, 144); pub const SQL_DYNAMIC_CURSOR_ATTRIBUTES2 = @as(u32, 145); pub const SQL_FORWARD_ONLY_CURSOR_ATTRIBUTES1 = @as(u32, 146); pub const SQL_FORWARD_ONLY_CURSOR_ATTRIBUTES2 = @as(u32, 147); pub const SQL_INDEX_KEYWORDS = @as(u32, 148); pub const SQL_INFO_SCHEMA_VIEWS = @as(u32, 149); pub const SQL_KEYSET_CURSOR_ATTRIBUTES1 = @as(u32, 150); pub const SQL_KEYSET_CURSOR_ATTRIBUTES2 = @as(u32, 151); pub const SQL_MAX_ASYNC_CONCURRENT_STATEMENTS = @as(u32, 10022); pub const SQL_ODBC_INTERFACE_CONFORMANCE = @as(u32, 152); pub const SQL_PARAM_ARRAY_ROW_COUNTS = @as(u32, 153); pub const SQL_PARAM_ARRAY_SELECTS = @as(u32, 154); pub const SQL_SCHEMA_TERM = @as(u32, 39); pub const SQL_SCHEMA_USAGE = @as(u32, 91); pub const SQL_SQL92_DATETIME_FUNCTIONS = @as(u32, 155); pub const SQL_SQL92_FOREIGN_KEY_DELETE_RULE = @as(u32, 156); pub const SQL_SQL92_FOREIGN_KEY_UPDATE_RULE = @as(u32, 157); pub const SQL_SQL92_GRANT = @as(u32, 158); pub const SQL_SQL92_NUMERIC_VALUE_FUNCTIONS = @as(u32, 159); pub const SQL_SQL92_PREDICATES = @as(u32, 160); pub const SQL_SQL92_RELATIONAL_JOIN_OPERATORS = @as(u32, 161); pub const SQL_SQL92_REVOKE = @as(u32, 162); pub const SQL_SQL92_ROW_VALUE_CONSTRUCTOR = @as(u32, 163); pub const SQL_SQL92_STRING_FUNCTIONS = @as(u32, 164); pub const SQL_SQL92_VALUE_EXPRESSIONS = @as(u32, 165); pub const SQL_STANDARD_CLI_CONFORMANCE = @as(u32, 166); pub const SQL_STATIC_CURSOR_ATTRIBUTES1 = @as(u32, 167); pub const SQL_STATIC_CURSOR_ATTRIBUTES2 = @as(u32, 168); pub const SQL_AGGREGATE_FUNCTIONS = @as(u32, 169); pub const SQL_DDL_INDEX = @as(u32, 170); pub const SQL_DM_VER = @as(u32, 171); pub const SQL_INSERT_STATEMENT = @as(u32, 172); pub const SQL_CONVERT_GUID = @as(u32, 173); pub const SQL_UNION_STATEMENT = @as(u32, 96); pub const SQL_ASYNC_DBC_FUNCTIONS = @as(u32, 10023); pub const SQL_DRIVER_AWARE_POOLING_SUPPORTED = @as(u32, 10024); pub const SQL_ASYNC_NOTIFICATION = @as(u32, 10025); pub const SQL_ASYNC_NOTIFICATION_NOT_CAPABLE = @as(i32, 0); pub const SQL_ASYNC_NOTIFICATION_CAPABLE = @as(i32, 1); pub const SQL_DTC_TRANSITION_COST = @as(u32, 1750); pub const SQL_AT_ADD_COLUMN_SINGLE = @as(i32, 32); pub const SQL_AT_ADD_COLUMN_DEFAULT = @as(i32, 64); pub const SQL_AT_ADD_COLUMN_COLLATION = @as(i32, 128); pub const SQL_AT_SET_COLUMN_DEFAULT = @as(i32, 256); pub const SQL_AT_DROP_COLUMN_DEFAULT = @as(i32, 512); pub const SQL_AT_DROP_COLUMN_CASCADE = @as(i32, 1024); pub const SQL_AT_DROP_COLUMN_RESTRICT = @as(i32, 2048); pub const SQL_AT_ADD_TABLE_CONSTRAINT = @as(i32, 4096); pub const SQL_AT_DROP_TABLE_CONSTRAINT_CASCADE = @as(i32, 8192); pub const SQL_AT_DROP_TABLE_CONSTRAINT_RESTRICT = @as(i32, 16384); pub const SQL_AT_CONSTRAINT_NAME_DEFINITION = @as(i32, 32768); pub const SQL_AT_CONSTRAINT_INITIALLY_DEFERRED = @as(i32, 65536); pub const SQL_AT_CONSTRAINT_INITIALLY_IMMEDIATE = @as(i32, 131072); pub const SQL_AT_CONSTRAINT_DEFERRABLE = @as(i32, 262144); pub const SQL_AT_CONSTRAINT_NON_DEFERRABLE = @as(i32, 524288); pub const SQL_CVT_CHAR = @as(i32, 1); pub const SQL_CVT_NUMERIC = @as(i32, 2); pub const SQL_CVT_DECIMAL = @as(i32, 4); pub const SQL_CVT_INTEGER = @as(i32, 8); pub const SQL_CVT_SMALLINT = @as(i32, 16); pub const SQL_CVT_FLOAT = @as(i32, 32); pub const SQL_CVT_REAL = @as(i32, 64); pub const SQL_CVT_DOUBLE = @as(i32, 128); pub const SQL_CVT_VARCHAR = @as(i32, 256); pub const SQL_CVT_LONGVARCHAR = @as(i32, 512); pub const SQL_CVT_BINARY = @as(i32, 1024); pub const SQL_CVT_VARBINARY = @as(i32, 2048); pub const SQL_CVT_BIT = @as(i32, 4096); pub const SQL_CVT_TINYINT = @as(i32, 8192); pub const SQL_CVT_BIGINT = @as(i32, 16384); pub const SQL_CVT_DATE = @as(i32, 32768); pub const SQL_CVT_TIME = @as(i32, 65536); pub const SQL_CVT_TIMESTAMP = @as(i32, 131072); pub const SQL_CVT_LONGVARBINARY = @as(i32, 262144); pub const SQL_CVT_INTERVAL_YEAR_MONTH = @as(i32, 524288); pub const SQL_CVT_INTERVAL_DAY_TIME = @as(i32, 1048576); pub const SQL_CVT_WCHAR = @as(i32, 2097152); pub const SQL_CVT_WLONGVARCHAR = @as(i32, 4194304); pub const SQL_CVT_WVARCHAR = @as(i32, 8388608); pub const SQL_CVT_GUID = @as(i32, 16777216); pub const SQL_FN_CVT_CONVERT = @as(i32, 1); pub const SQL_FN_CVT_CAST = @as(i32, 2); pub const SQL_FN_STR_CONCAT = @as(i32, 1); pub const SQL_FN_STR_INSERT = @as(i32, 2); pub const SQL_FN_STR_LEFT = @as(i32, 4); pub const SQL_FN_STR_LTRIM = @as(i32, 8); pub const SQL_FN_STR_LENGTH = @as(i32, 16); pub const SQL_FN_STR_LOCATE = @as(i32, 32); pub const SQL_FN_STR_LCASE = @as(i32, 64); pub const SQL_FN_STR_REPEAT = @as(i32, 128); pub const SQL_FN_STR_REPLACE = @as(i32, 256); pub const SQL_FN_STR_RIGHT = @as(i32, 512); pub const SQL_FN_STR_RTRIM = @as(i32, 1024); pub const SQL_FN_STR_SUBSTRING = @as(i32, 2048); pub const SQL_FN_STR_UCASE = @as(i32, 4096); pub const SQL_FN_STR_ASCII = @as(i32, 8192); pub const SQL_FN_STR_CHAR = @as(i32, 16384); pub const SQL_FN_STR_DIFFERENCE = @as(i32, 32768); pub const SQL_FN_STR_LOCATE_2 = @as(i32, 65536); pub const SQL_FN_STR_SOUNDEX = @as(i32, 131072); pub const SQL_FN_STR_SPACE = @as(i32, 262144); pub const SQL_FN_STR_BIT_LENGTH = @as(i32, 524288); pub const SQL_FN_STR_CHAR_LENGTH = @as(i32, 1048576); pub const SQL_FN_STR_CHARACTER_LENGTH = @as(i32, 2097152); pub const SQL_FN_STR_OCTET_LENGTH = @as(i32, 4194304); pub const SQL_FN_STR_POSITION = @as(i32, 8388608); pub const SQL_SSF_CONVERT = @as(i32, 1); pub const SQL_SSF_LOWER = @as(i32, 2); pub const SQL_SSF_UPPER = @as(i32, 4); pub const SQL_SSF_SUBSTRING = @as(i32, 8); pub const SQL_SSF_TRANSLATE = @as(i32, 16); pub const SQL_SSF_TRIM_BOTH = @as(i32, 32); pub const SQL_SSF_TRIM_LEADING = @as(i32, 64); pub const SQL_SSF_TRIM_TRAILING = @as(i32, 128); pub const SQL_FN_NUM_ABS = @as(i32, 1); pub const SQL_FN_NUM_ACOS = @as(i32, 2); pub const SQL_FN_NUM_ASIN = @as(i32, 4); pub const SQL_FN_NUM_ATAN = @as(i32, 8); pub const SQL_FN_NUM_ATAN2 = @as(i32, 16); pub const SQL_FN_NUM_CEILING = @as(i32, 32); pub const SQL_FN_NUM_COS = @as(i32, 64); pub const SQL_FN_NUM_COT = @as(i32, 128); pub const SQL_FN_NUM_EXP = @as(i32, 256); pub const SQL_FN_NUM_FLOOR = @as(i32, 512); pub const SQL_FN_NUM_LOG = @as(i32, 1024); pub const SQL_FN_NUM_MOD = @as(i32, 2048); pub const SQL_FN_NUM_SIGN = @as(i32, 4096); pub const SQL_FN_NUM_SIN = @as(i32, 8192); pub const SQL_FN_NUM_SQRT = @as(i32, 16384); pub const SQL_FN_NUM_TAN = @as(i32, 32768); pub const SQL_FN_NUM_PI = @as(i32, 65536); pub const SQL_FN_NUM_RAND = @as(i32, 131072); pub const SQL_FN_NUM_DEGREES = @as(i32, 262144); pub const SQL_FN_NUM_LOG10 = @as(i32, 524288); pub const SQL_FN_NUM_POWER = @as(i32, 1048576); pub const SQL_FN_NUM_RADIANS = @as(i32, 2097152); pub const SQL_FN_NUM_ROUND = @as(i32, 4194304); pub const SQL_FN_NUM_TRUNCATE = @as(i32, 8388608); pub const SQL_SNVF_BIT_LENGTH = @as(i32, 1); pub const SQL_SNVF_CHAR_LENGTH = @as(i32, 2); pub const SQL_SNVF_CHARACTER_LENGTH = @as(i32, 4); pub const SQL_SNVF_EXTRACT = @as(i32, 8); pub const SQL_SNVF_OCTET_LENGTH = @as(i32, 16); pub const SQL_SNVF_POSITION = @as(i32, 32); pub const SQL_FN_TD_NOW = @as(i32, 1); pub const SQL_FN_TD_CURDATE = @as(i32, 2); pub const SQL_FN_TD_DAYOFMONTH = @as(i32, 4); pub const SQL_FN_TD_DAYOFWEEK = @as(i32, 8); pub const SQL_FN_TD_DAYOFYEAR = @as(i32, 16); pub const SQL_FN_TD_MONTH = @as(i32, 32); pub const SQL_FN_TD_QUARTER = @as(i32, 64); pub const SQL_FN_TD_WEEK = @as(i32, 128); pub const SQL_FN_TD_YEAR = @as(i32, 256); pub const SQL_FN_TD_CURTIME = @as(i32, 512); pub const SQL_FN_TD_HOUR = @as(i32, 1024); pub const SQL_FN_TD_MINUTE = @as(i32, 2048); pub const SQL_FN_TD_SECOND = @as(i32, 4096); pub const SQL_FN_TD_TIMESTAMPADD = @as(i32, 8192); pub const SQL_FN_TD_TIMESTAMPDIFF = @as(i32, 16384); pub const SQL_FN_TD_DAYNAME = @as(i32, 32768); pub const SQL_FN_TD_MONTHNAME = @as(i32, 65536); pub const SQL_FN_TD_CURRENT_DATE = @as(i32, 131072); pub const SQL_FN_TD_CURRENT_TIME = @as(i32, 262144); pub const SQL_FN_TD_CURRENT_TIMESTAMP = @as(i32, 524288); pub const SQL_FN_TD_EXTRACT = @as(i32, 1048576); pub const SQL_SDF_CURRENT_DATE = @as(i32, 1); pub const SQL_SDF_CURRENT_TIME = @as(i32, 2); pub const SQL_SDF_CURRENT_TIMESTAMP = @as(i32, 4); pub const SQL_FN_SYS_USERNAME = @as(i32, 1); pub const SQL_FN_SYS_DBNAME = @as(i32, 2); pub const SQL_FN_SYS_IFNULL = @as(i32, 4); pub const SQL_FN_TSI_FRAC_SECOND = @as(i32, 1); pub const SQL_FN_TSI_SECOND = @as(i32, 2); pub const SQL_FN_TSI_MINUTE = @as(i32, 4); pub const SQL_FN_TSI_HOUR = @as(i32, 8); pub const SQL_FN_TSI_DAY = @as(i32, 16); pub const SQL_FN_TSI_WEEK = @as(i32, 32); pub const SQL_FN_TSI_MONTH = @as(i32, 64); pub const SQL_FN_TSI_QUARTER = @as(i32, 128); pub const SQL_FN_TSI_YEAR = @as(i32, 256); pub const SQL_CA1_NEXT = @as(i32, 1); pub const SQL_CA1_ABSOLUTE = @as(i32, 2); pub const SQL_CA1_RELATIVE = @as(i32, 4); pub const SQL_CA1_BOOKMARK = @as(i32, 8); pub const SQL_CA1_LOCK_NO_CHANGE = @as(i32, 64); pub const SQL_CA1_LOCK_EXCLUSIVE = @as(i32, 128); pub const SQL_CA1_LOCK_UNLOCK = @as(i32, 256); pub const SQL_CA1_POS_POSITION = @as(i32, 512); pub const SQL_CA1_POS_UPDATE = @as(i32, 1024); pub const SQL_CA1_POS_DELETE = @as(i32, 2048); pub const SQL_CA1_POS_REFRESH = @as(i32, 4096); pub const SQL_CA1_POSITIONED_UPDATE = @as(i32, 8192); pub const SQL_CA1_POSITIONED_DELETE = @as(i32, 16384); pub const SQL_CA1_SELECT_FOR_UPDATE = @as(i32, 32768); pub const SQL_CA1_BULK_ADD = @as(i32, 65536); pub const SQL_CA1_BULK_UPDATE_BY_BOOKMARK = @as(i32, 131072); pub const SQL_CA1_BULK_DELETE_BY_BOOKMARK = @as(i32, 262144); pub const SQL_CA1_BULK_FETCH_BY_BOOKMARK = @as(i32, 524288); pub const SQL_CA2_READ_ONLY_CONCURRENCY = @as(i32, 1); pub const SQL_CA2_LOCK_CONCURRENCY = @as(i32, 2); pub const SQL_CA2_OPT_ROWVER_CONCURRENCY = @as(i32, 4); pub const SQL_CA2_OPT_VALUES_CONCURRENCY = @as(i32, 8); pub const SQL_CA2_SENSITIVITY_ADDITIONS = @as(i32, 16); pub const SQL_CA2_SENSITIVITY_DELETIONS = @as(i32, 32); pub const SQL_CA2_SENSITIVITY_UPDATES = @as(i32, 64); pub const SQL_CA2_MAX_ROWS_SELECT = @as(i32, 128); pub const SQL_CA2_MAX_ROWS_INSERT = @as(i32, 256); pub const SQL_CA2_MAX_ROWS_DELETE = @as(i32, 512); pub const SQL_CA2_MAX_ROWS_UPDATE = @as(i32, 1024); pub const SQL_CA2_MAX_ROWS_CATALOG = @as(i32, 2048); pub const SQL_CA2_CRC_EXACT = @as(i32, 4096); pub const SQL_CA2_CRC_APPROXIMATE = @as(i32, 8192); pub const SQL_CA2_SIMULATE_NON_UNIQUE = @as(i32, 16384); pub const SQL_CA2_SIMULATE_TRY_UNIQUE = @as(i32, 32768); pub const SQL_CA2_SIMULATE_UNIQUE = @as(i32, 65536); pub const SQL_OAC_NONE = @as(u32, 0); pub const SQL_OAC_LEVEL1 = @as(u32, 1); pub const SQL_OAC_LEVEL2 = @as(u32, 2); pub const SQL_OSCC_NOT_COMPLIANT = @as(u32, 0); pub const SQL_OSCC_COMPLIANT = @as(u32, 1); pub const SQL_OSC_MINIMUM = @as(u32, 0); pub const SQL_OSC_CORE = @as(u32, 1); pub const SQL_OSC_EXTENDED = @as(u32, 2); pub const SQL_CB_NULL = @as(u32, 0); pub const SQL_CB_NON_NULL = @as(u32, 1); pub const SQL_SO_FORWARD_ONLY = @as(i32, 1); pub const SQL_SO_KEYSET_DRIVEN = @as(i32, 2); pub const SQL_SO_DYNAMIC = @as(i32, 4); pub const SQL_SO_MIXED = @as(i32, 8); pub const SQL_SO_STATIC = @as(i32, 16); pub const SQL_FD_FETCH_RESUME = @as(i32, 64); pub const SQL_FD_FETCH_BOOKMARK = @as(i32, 128); pub const SQL_TXN_VERSIONING = @as(i32, 16); pub const SQL_CN_NONE = @as(u32, 0); pub const SQL_CN_DIFFERENT = @as(u32, 1); pub const SQL_CN_ANY = @as(u32, 2); pub const SQL_NNC_NULL = @as(u32, 0); pub const SQL_NNC_NON_NULL = @as(u32, 1); pub const SQL_NC_START = @as(u32, 2); pub const SQL_NC_END = @as(u32, 4); pub const SQL_FILE_NOT_SUPPORTED = @as(u32, 0); pub const SQL_FILE_TABLE = @as(u32, 1); pub const SQL_FILE_QUALIFIER = @as(u32, 2); pub const SQL_FILE_CATALOG = @as(u32, 2); pub const SQL_GD_BLOCK = @as(i32, 4); pub const SQL_GD_BOUND = @as(i32, 8); pub const SQL_GD_OUTPUT_PARAMS = @as(i32, 16); pub const SQL_PS_POSITIONED_DELETE = @as(i32, 1); pub const SQL_PS_POSITIONED_UPDATE = @as(i32, 2); pub const SQL_PS_SELECT_FOR_UPDATE = @as(i32, 4); pub const SQL_GB_NOT_SUPPORTED = @as(u32, 0); pub const SQL_GB_GROUP_BY_EQUALS_SELECT = @as(u32, 1); pub const SQL_GB_GROUP_BY_CONTAINS_SELECT = @as(u32, 2); pub const SQL_GB_NO_RELATION = @as(u32, 3); pub const SQL_GB_COLLATE = @as(u32, 4); pub const SQL_OU_DML_STATEMENTS = @as(i32, 1); pub const SQL_OU_PROCEDURE_INVOCATION = @as(i32, 2); pub const SQL_OU_TABLE_DEFINITION = @as(i32, 4); pub const SQL_OU_INDEX_DEFINITION = @as(i32, 8); pub const SQL_OU_PRIVILEGE_DEFINITION = @as(i32, 16); pub const SQL_SU_DML_STATEMENTS = @as(i32, 1); pub const SQL_SU_PROCEDURE_INVOCATION = @as(i32, 2); pub const SQL_SU_TABLE_DEFINITION = @as(i32, 4); pub const SQL_SU_INDEX_DEFINITION = @as(i32, 8); pub const SQL_SU_PRIVILEGE_DEFINITION = @as(i32, 16); pub const SQL_QU_DML_STATEMENTS = @as(i32, 1); pub const SQL_QU_PROCEDURE_INVOCATION = @as(i32, 2); pub const SQL_QU_TABLE_DEFINITION = @as(i32, 4); pub const SQL_QU_INDEX_DEFINITION = @as(i32, 8); pub const SQL_QU_PRIVILEGE_DEFINITION = @as(i32, 16); pub const SQL_CU_DML_STATEMENTS = @as(i32, 1); pub const SQL_CU_PROCEDURE_INVOCATION = @as(i32, 2); pub const SQL_CU_TABLE_DEFINITION = @as(i32, 4); pub const SQL_CU_INDEX_DEFINITION = @as(i32, 8); pub const SQL_CU_PRIVILEGE_DEFINITION = @as(i32, 16); pub const SQL_SQ_COMPARISON = @as(i32, 1); pub const SQL_SQ_EXISTS = @as(i32, 2); pub const SQL_SQ_IN = @as(i32, 4); pub const SQL_SQ_QUANTIFIED = @as(i32, 8); pub const SQL_SQ_CORRELATED_SUBQUERIES = @as(i32, 16); pub const SQL_U_UNION = @as(i32, 1); pub const SQL_U_UNION_ALL = @as(i32, 2); pub const SQL_BP_CLOSE = @as(i32, 1); pub const SQL_BP_DELETE = @as(i32, 2); pub const SQL_BP_DROP = @as(i32, 4); pub const SQL_BP_TRANSACTION = @as(i32, 8); pub const SQL_BP_UPDATE = @as(i32, 16); pub const SQL_BP_OTHER_HSTMT = @as(i32, 32); pub const SQL_BP_SCROLL = @as(i32, 64); pub const SQL_SS_ADDITIONS = @as(i32, 1); pub const SQL_SS_DELETIONS = @as(i32, 2); pub const SQL_SS_UPDATES = @as(i32, 4); pub const SQL_CV_CREATE_VIEW = @as(i32, 1); pub const SQL_CV_CHECK_OPTION = @as(i32, 2); pub const SQL_CV_CASCADED = @as(i32, 4); pub const SQL_CV_LOCAL = @as(i32, 8); pub const SQL_LCK_NO_CHANGE = @as(i32, 1); pub const SQL_LCK_EXCLUSIVE = @as(i32, 2); pub const SQL_LCK_UNLOCK = @as(i32, 4); pub const SQL_POS_POSITION = @as(i32, 1); pub const SQL_POS_REFRESH = @as(i32, 2); pub const SQL_POS_UPDATE = @as(i32, 4); pub const SQL_POS_DELETE = @as(i32, 8); pub const SQL_POS_ADD = @as(i32, 16); pub const SQL_QL_START = @as(u32, 1); pub const SQL_QL_END = @as(u32, 2); pub const SQL_AF_AVG = @as(i32, 1); pub const SQL_AF_COUNT = @as(i32, 2); pub const SQL_AF_MAX = @as(i32, 4); pub const SQL_AF_MIN = @as(i32, 8); pub const SQL_AF_SUM = @as(i32, 16); pub const SQL_AF_DISTINCT = @as(i32, 32); pub const SQL_AF_ALL = @as(i32, 64); pub const SQL_SC_SQL92_ENTRY = @as(i32, 1); pub const SQL_SC_FIPS127_2_TRANSITIONAL = @as(i32, 2); pub const SQL_SC_SQL92_INTERMEDIATE = @as(i32, 4); pub const SQL_SC_SQL92_FULL = @as(i32, 8); pub const SQL_DL_SQL92_DATE = @as(i32, 1); pub const SQL_DL_SQL92_TIME = @as(i32, 2); pub const SQL_DL_SQL92_TIMESTAMP = @as(i32, 4); pub const SQL_DL_SQL92_INTERVAL_YEAR = @as(i32, 8); pub const SQL_DL_SQL92_INTERVAL_MONTH = @as(i32, 16); pub const SQL_DL_SQL92_INTERVAL_DAY = @as(i32, 32); pub const SQL_DL_SQL92_INTERVAL_HOUR = @as(i32, 64); pub const SQL_DL_SQL92_INTERVAL_MINUTE = @as(i32, 128); pub const SQL_DL_SQL92_INTERVAL_SECOND = @as(i32, 256); pub const SQL_DL_SQL92_INTERVAL_YEAR_TO_MONTH = @as(i32, 512); pub const SQL_DL_SQL92_INTERVAL_DAY_TO_HOUR = @as(i32, 1024); pub const SQL_DL_SQL92_INTERVAL_DAY_TO_MINUTE = @as(i32, 2048); pub const SQL_DL_SQL92_INTERVAL_DAY_TO_SECOND = @as(i32, 4096); pub const SQL_DL_SQL92_INTERVAL_HOUR_TO_MINUTE = @as(i32, 8192); pub const SQL_DL_SQL92_INTERVAL_HOUR_TO_SECOND = @as(i32, 16384); pub const SQL_DL_SQL92_INTERVAL_MINUTE_TO_SECOND = @as(i32, 32768); pub const SQL_CL_START = @as(u32, 1); pub const SQL_CL_END = @as(u32, 2); pub const SQL_BRC_PROCEDURES = @as(u32, 1); pub const SQL_BRC_EXPLICIT = @as(u32, 2); pub const SQL_BRC_ROLLED_UP = @as(u32, 4); pub const SQL_BS_SELECT_EXPLICIT = @as(i32, 1); pub const SQL_BS_ROW_COUNT_EXPLICIT = @as(i32, 2); pub const SQL_BS_SELECT_PROC = @as(i32, 4); pub const SQL_BS_ROW_COUNT_PROC = @as(i32, 8); pub const SQL_PARC_BATCH = @as(u32, 1); pub const SQL_PARC_NO_BATCH = @as(u32, 2); pub const SQL_PAS_BATCH = @as(u32, 1); pub const SQL_PAS_NO_BATCH = @as(u32, 2); pub const SQL_PAS_NO_SELECT = @as(u32, 3); pub const SQL_IK_NONE = @as(i32, 0); pub const SQL_IK_ASC = @as(i32, 1); pub const SQL_IK_DESC = @as(i32, 2); pub const SQL_ISV_ASSERTIONS = @as(i32, 1); pub const SQL_ISV_CHARACTER_SETS = @as(i32, 2); pub const SQL_ISV_CHECK_CONSTRAINTS = @as(i32, 4); pub const SQL_ISV_COLLATIONS = @as(i32, 8); pub const SQL_ISV_COLUMN_DOMAIN_USAGE = @as(i32, 16); pub const SQL_ISV_COLUMN_PRIVILEGES = @as(i32, 32); pub const SQL_ISV_COLUMNS = @as(i32, 64); pub const SQL_ISV_CONSTRAINT_COLUMN_USAGE = @as(i32, 128); pub const SQL_ISV_CONSTRAINT_TABLE_USAGE = @as(i32, 256); pub const SQL_ISV_DOMAIN_CONSTRAINTS = @as(i32, 512); pub const SQL_ISV_DOMAINS = @as(i32, 1024); pub const SQL_ISV_KEY_COLUMN_USAGE = @as(i32, 2048); pub const SQL_ISV_REFERENTIAL_CONSTRAINTS = @as(i32, 4096); pub const SQL_ISV_SCHEMATA = @as(i32, 8192); pub const SQL_ISV_SQL_LANGUAGES = @as(i32, 16384); pub const SQL_ISV_TABLE_CONSTRAINTS = @as(i32, 32768); pub const SQL_ISV_TABLE_PRIVILEGES = @as(i32, 65536); pub const SQL_ISV_TABLES = @as(i32, 131072); pub const SQL_ISV_TRANSLATIONS = @as(i32, 262144); pub const SQL_ISV_USAGE_PRIVILEGES = @as(i32, 524288); pub const SQL_ISV_VIEW_COLUMN_USAGE = @as(i32, 1048576); pub const SQL_ISV_VIEW_TABLE_USAGE = @as(i32, 2097152); pub const SQL_ISV_VIEWS = @as(i32, 4194304); pub const SQL_AD_CONSTRAINT_NAME_DEFINITION = @as(i32, 1); pub const SQL_AD_ADD_DOMAIN_CONSTRAINT = @as(i32, 2); pub const SQL_AD_DROP_DOMAIN_CONSTRAINT = @as(i32, 4); pub const SQL_AD_ADD_DOMAIN_DEFAULT = @as(i32, 8); pub const SQL_AD_DROP_DOMAIN_DEFAULT = @as(i32, 16); pub const SQL_AD_ADD_CONSTRAINT_INITIALLY_DEFERRED = @as(i32, 32); pub const SQL_AD_ADD_CONSTRAINT_INITIALLY_IMMEDIATE = @as(i32, 64); pub const SQL_AD_ADD_CONSTRAINT_DEFERRABLE = @as(i32, 128); pub const SQL_AD_ADD_CONSTRAINT_NON_DEFERRABLE = @as(i32, 256); pub const SQL_CS_CREATE_SCHEMA = @as(i32, 1); pub const SQL_CS_AUTHORIZATION = @as(i32, 2); pub const SQL_CS_DEFAULT_CHARACTER_SET = @as(i32, 4); pub const SQL_CTR_CREATE_TRANSLATION = @as(i32, 1); pub const SQL_CA_CREATE_ASSERTION = @as(i32, 1); pub const SQL_CA_CONSTRAINT_INITIALLY_DEFERRED = @as(i32, 16); pub const SQL_CA_CONSTRAINT_INITIALLY_IMMEDIATE = @as(i32, 32); pub const SQL_CA_CONSTRAINT_DEFERRABLE = @as(i32, 64); pub const SQL_CA_CONSTRAINT_NON_DEFERRABLE = @as(i32, 128); pub const SQL_CCS_CREATE_CHARACTER_SET = @as(i32, 1); pub const SQL_CCS_COLLATE_CLAUSE = @as(i32, 2); pub const SQL_CCS_LIMITED_COLLATION = @as(i32, 4); pub const SQL_CCOL_CREATE_COLLATION = @as(i32, 1); pub const SQL_CDO_CREATE_DOMAIN = @as(i32, 1); pub const SQL_CDO_DEFAULT = @as(i32, 2); pub const SQL_CDO_CONSTRAINT = @as(i32, 4); pub const SQL_CDO_COLLATION = @as(i32, 8); pub const SQL_CDO_CONSTRAINT_NAME_DEFINITION = @as(i32, 16); pub const SQL_CDO_CONSTRAINT_INITIALLY_DEFERRED = @as(i32, 32); pub const SQL_CDO_CONSTRAINT_INITIALLY_IMMEDIATE = @as(i32, 64); pub const SQL_CDO_CONSTRAINT_DEFERRABLE = @as(i32, 128); pub const SQL_CDO_CONSTRAINT_NON_DEFERRABLE = @as(i32, 256); pub const SQL_CT_CREATE_TABLE = @as(i32, 1); pub const SQL_CT_COMMIT_PRESERVE = @as(i32, 2); pub const SQL_CT_COMMIT_DELETE = @as(i32, 4); pub const SQL_CT_GLOBAL_TEMPORARY = @as(i32, 8); pub const SQL_CT_LOCAL_TEMPORARY = @as(i32, 16); pub const SQL_CT_CONSTRAINT_INITIALLY_DEFERRED = @as(i32, 32); pub const SQL_CT_CONSTRAINT_INITIALLY_IMMEDIATE = @as(i32, 64); pub const SQL_CT_CONSTRAINT_DEFERRABLE = @as(i32, 128); pub const SQL_CT_CONSTRAINT_NON_DEFERRABLE = @as(i32, 256); pub const SQL_CT_COLUMN_CONSTRAINT = @as(i32, 512); pub const SQL_CT_COLUMN_DEFAULT = @as(i32, 1024); pub const SQL_CT_COLUMN_COLLATION = @as(i32, 2048); pub const SQL_CT_TABLE_CONSTRAINT = @as(i32, 4096); pub const SQL_CT_CONSTRAINT_NAME_DEFINITION = @as(i32, 8192); pub const SQL_DI_CREATE_INDEX = @as(i32, 1); pub const SQL_DI_DROP_INDEX = @as(i32, 2); pub const SQL_DC_DROP_COLLATION = @as(i32, 1); pub const SQL_DD_DROP_DOMAIN = @as(i32, 1); pub const SQL_DD_RESTRICT = @as(i32, 2); pub const SQL_DD_CASCADE = @as(i32, 4); pub const SQL_DS_DROP_SCHEMA = @as(i32, 1); pub const SQL_DS_RESTRICT = @as(i32, 2); pub const SQL_DS_CASCADE = @as(i32, 4); pub const SQL_DCS_DROP_CHARACTER_SET = @as(i32, 1); pub const SQL_DA_DROP_ASSERTION = @as(i32, 1); pub const SQL_DT_DROP_TABLE = @as(i32, 1); pub const SQL_DT_RESTRICT = @as(i32, 2); pub const SQL_DT_CASCADE = @as(i32, 4); pub const SQL_DTR_DROP_TRANSLATION = @as(i32, 1); pub const SQL_DV_DROP_VIEW = @as(i32, 1); pub const SQL_DV_RESTRICT = @as(i32, 2); pub const SQL_DV_CASCADE = @as(i32, 4); pub const SQL_IS_INSERT_LITERALS = @as(i32, 1); pub const SQL_IS_INSERT_SEARCHED = @as(i32, 2); pub const SQL_IS_SELECT_INTO = @as(i32, 4); pub const SQL_OIC_CORE = @as(u32, 1); pub const SQL_OIC_LEVEL1 = @as(u32, 2); pub const SQL_OIC_LEVEL2 = @as(u32, 3); pub const SQL_SFKD_CASCADE = @as(i32, 1); pub const SQL_SFKD_NO_ACTION = @as(i32, 2); pub const SQL_SFKD_SET_DEFAULT = @as(i32, 4); pub const SQL_SFKD_SET_NULL = @as(i32, 8); pub const SQL_SFKU_CASCADE = @as(i32, 1); pub const SQL_SFKU_NO_ACTION = @as(i32, 2); pub const SQL_SFKU_SET_DEFAULT = @as(i32, 4); pub const SQL_SFKU_SET_NULL = @as(i32, 8); pub const SQL_SG_USAGE_ON_DOMAIN = @as(i32, 1); pub const SQL_SG_USAGE_ON_CHARACTER_SET = @as(i32, 2); pub const SQL_SG_USAGE_ON_COLLATION = @as(i32, 4); pub const SQL_SG_USAGE_ON_TRANSLATION = @as(i32, 8); pub const SQL_SG_WITH_GRANT_OPTION = @as(i32, 16); pub const SQL_SG_DELETE_TABLE = @as(i32, 32); pub const SQL_SG_INSERT_TABLE = @as(i32, 64); pub const SQL_SG_INSERT_COLUMN = @as(i32, 128); pub const SQL_SG_REFERENCES_TABLE = @as(i32, 256); pub const SQL_SG_REFERENCES_COLUMN = @as(i32, 512); pub const SQL_SG_SELECT_TABLE = @as(i32, 1024); pub const SQL_SG_UPDATE_TABLE = @as(i32, 2048); pub const SQL_SG_UPDATE_COLUMN = @as(i32, 4096); pub const SQL_SP_EXISTS = @as(i32, 1); pub const SQL_SP_ISNOTNULL = @as(i32, 2); pub const SQL_SP_ISNULL = @as(i32, 4); pub const SQL_SP_MATCH_FULL = @as(i32, 8); pub const SQL_SP_MATCH_PARTIAL = @as(i32, 16); pub const SQL_SP_MATCH_UNIQUE_FULL = @as(i32, 32); pub const SQL_SP_MATCH_UNIQUE_PARTIAL = @as(i32, 64); pub const SQL_SP_OVERLAPS = @as(i32, 128); pub const SQL_SP_UNIQUE = @as(i32, 256); pub const SQL_SP_LIKE = @as(i32, 512); pub const SQL_SP_IN = @as(i32, 1024); pub const SQL_SP_BETWEEN = @as(i32, 2048); pub const SQL_SP_COMPARISON = @as(i32, 4096); pub const SQL_SP_QUANTIFIED_COMPARISON = @as(i32, 8192); pub const SQL_SRJO_CORRESPONDING_CLAUSE = @as(i32, 1); pub const SQL_SRJO_CROSS_JOIN = @as(i32, 2); pub const SQL_SRJO_EXCEPT_JOIN = @as(i32, 4); pub const SQL_SRJO_FULL_OUTER_JOIN = @as(i32, 8); pub const SQL_SRJO_INNER_JOIN = @as(i32, 16); pub const SQL_SRJO_INTERSECT_JOIN = @as(i32, 32); pub const SQL_SRJO_LEFT_OUTER_JOIN = @as(i32, 64); pub const SQL_SRJO_NATURAL_JOIN = @as(i32, 128); pub const SQL_SRJO_RIGHT_OUTER_JOIN = @as(i32, 256); pub const SQL_SRJO_UNION_JOIN = @as(i32, 512); pub const SQL_SR_USAGE_ON_DOMAIN = @as(i32, 1); pub const SQL_SR_USAGE_ON_CHARACTER_SET = @as(i32, 2); pub const SQL_SR_USAGE_ON_COLLATION = @as(i32, 4); pub const SQL_SR_USAGE_ON_TRANSLATION = @as(i32, 8); pub const SQL_SR_GRANT_OPTION_FOR = @as(i32, 16); pub const SQL_SR_CASCADE = @as(i32, 32); pub const SQL_SR_RESTRICT = @as(i32, 64); pub const SQL_SR_DELETE_TABLE = @as(i32, 128); pub const SQL_SR_INSERT_TABLE = @as(i32, 256); pub const SQL_SR_INSERT_COLUMN = @as(i32, 512); pub const SQL_SR_REFERENCES_TABLE = @as(i32, 1024); pub const SQL_SR_REFERENCES_COLUMN = @as(i32, 2048); pub const SQL_SR_SELECT_TABLE = @as(i32, 4096); pub const SQL_SR_UPDATE_TABLE = @as(i32, 8192); pub const SQL_SR_UPDATE_COLUMN = @as(i32, 16384); pub const SQL_SRVC_VALUE_EXPRESSION = @as(i32, 1); pub const SQL_SRVC_NULL = @as(i32, 2); pub const SQL_SRVC_DEFAULT = @as(i32, 4); pub const SQL_SRVC_ROW_SUBQUERY = @as(i32, 8); pub const SQL_SVE_CASE = @as(i32, 1); pub const SQL_SVE_CAST = @as(i32, 2); pub const SQL_SVE_COALESCE = @as(i32, 4); pub const SQL_SVE_NULLIF = @as(i32, 8); pub const SQL_SCC_XOPEN_CLI_VERSION1 = @as(i32, 1); pub const SQL_SCC_ISO92_CLI = @as(i32, 2); pub const SQL_US_UNION = @as(i32, 1); pub const SQL_US_UNION_ALL = @as(i32, 2); pub const SQL_DRIVER_AWARE_POOLING_NOT_CAPABLE = @as(i32, 0); pub const SQL_DRIVER_AWARE_POOLING_CAPABLE = @as(i32, 1); pub const SQL_DTC_ENLIST_EXPENSIVE = @as(i32, 1); pub const SQL_DTC_UNENLIST_EXPENSIVE = @as(i32, 2); pub const SQL_ASYNC_DBC_NOT_CAPABLE = @as(i32, 0); pub const SQL_ASYNC_DBC_CAPABLE = @as(i32, 1); pub const SQL_FETCH_FIRST_USER = @as(u32, 31); pub const SQL_FETCH_FIRST_SYSTEM = @as(u32, 32); pub const SQL_ENTIRE_ROWSET = @as(u32, 0); pub const SQL_POSITION = @as(u32, 0); pub const SQL_REFRESH = @as(u32, 1); pub const SQL_UPDATE = @as(u32, 2); pub const SQL_DELETE = @as(u32, 3); pub const SQL_ADD = @as(u32, 4); pub const SQL_SETPOS_MAX_OPTION_VALUE = @as(u32, 4); pub const SQL_UPDATE_BY_BOOKMARK = @as(u32, 5); pub const SQL_DELETE_BY_BOOKMARK = @as(u32, 6); pub const SQL_FETCH_BY_BOOKMARK = @as(u32, 7); pub const SQL_LOCK_NO_CHANGE = @as(u32, 0); pub const SQL_LOCK_EXCLUSIVE = @as(u32, 1); pub const SQL_LOCK_UNLOCK = @as(u32, 2); pub const SQL_SETPOS_MAX_LOCK_VALUE = @as(u32, 2); pub const SQL_BEST_ROWID = @as(u32, 1); pub const SQL_ROWVER = @as(u32, 2); pub const SQL_PC_NOT_PSEUDO = @as(u32, 1); pub const SQL_QUICK = @as(u32, 0); pub const SQL_ENSURE = @as(u32, 1); pub const SQL_TABLE_STAT = @as(u32, 0); pub const SQL_DRIVER_NOPROMPT = @as(u32, 0); pub const SQL_DRIVER_COMPLETE = @as(u32, 1); pub const SQL_DRIVER_PROMPT = @as(u32, 2); pub const SQL_DRIVER_COMPLETE_REQUIRED = @as(u32, 3); pub const SQL_FETCH_BOOKMARK = @as(u32, 8); pub const SQL_ROW_SUCCESS = @as(u32, 0); pub const SQL_ROW_DELETED = @as(u32, 1); pub const SQL_ROW_UPDATED = @as(u32, 2); pub const SQL_ROW_NOROW = @as(u32, 3); pub const SQL_ROW_ADDED = @as(u32, 4); pub const SQL_ROW_ERROR = @as(u32, 5); pub const SQL_ROW_SUCCESS_WITH_INFO = @as(u32, 6); pub const SQL_ROW_PROCEED = @as(u32, 0); pub const SQL_ROW_IGNORE = @as(u32, 1); pub const SQL_PARAM_SUCCESS = @as(u32, 0); pub const SQL_PARAM_SUCCESS_WITH_INFO = @as(u32, 6); pub const SQL_PARAM_ERROR = @as(u32, 5); pub const SQL_PARAM_UNUSED = @as(u32, 7); pub const SQL_PARAM_DIAG_UNAVAILABLE = @as(u32, 1); pub const SQL_PARAM_PROCEED = @as(u32, 0); pub const SQL_PARAM_IGNORE = @as(u32, 1); pub const SQL_CASCADE = @as(u32, 0); pub const SQL_RESTRICT = @as(u32, 1); pub const SQL_SET_NULL = @as(u32, 2); pub const SQL_NO_ACTION = @as(u32, 3); pub const SQL_SET_DEFAULT = @as(u32, 4); pub const SQL_INITIALLY_DEFERRED = @as(u32, 5); pub const SQL_INITIALLY_IMMEDIATE = @as(u32, 6); pub const SQL_NOT_DEFERRABLE = @as(u32, 7); pub const SQL_PARAM_TYPE_UNKNOWN = @as(u32, 0); pub const SQL_PARAM_INPUT = @as(u32, 1); pub const SQL_PARAM_INPUT_OUTPUT = @as(u32, 2); pub const SQL_RESULT_COL = @as(u32, 3); pub const SQL_PARAM_OUTPUT = @as(u32, 4); pub const SQL_RETURN_VALUE = @as(u32, 5); pub const SQL_PARAM_INPUT_OUTPUT_STREAM = @as(u32, 8); pub const SQL_PARAM_OUTPUT_STREAM = @as(u32, 16); pub const SQL_PT_UNKNOWN = @as(u32, 0); pub const SQL_PT_PROCEDURE = @as(u32, 1); pub const SQL_PT_FUNCTION = @as(u32, 2); pub const SQL_YEAR = @as(u32, 1); pub const SQL_MONTH = @as(u32, 2); pub const SQL_DAY = @as(u32, 3); pub const SQL_HOUR = @as(u32, 4); pub const SQL_MINUTE = @as(u32, 5); pub const SQL_SECOND = @as(u32, 6); pub const SQL_YEAR_TO_MONTH = @as(u32, 7); pub const SQL_DAY_TO_HOUR = @as(u32, 8); pub const SQL_DAY_TO_MINUTE = @as(u32, 9); pub const SQL_DAY_TO_SECOND = @as(u32, 10); pub const SQL_HOUR_TO_MINUTE = @as(u32, 11); pub const SQL_HOUR_TO_SECOND = @as(u32, 12); pub const SQL_MINUTE_TO_SECOND = @as(u32, 13); pub const SQL_DATABASE_NAME = @as(u32, 16); pub const SQL_FD_FETCH_PREV = @as(i32, 8); pub const SQL_FETCH_PREV = @as(u32, 4); pub const SQL_CONCUR_TIMESTAMP = @as(u32, 3); pub const SQL_SCCO_OPT_TIMESTAMP = @as(i32, 4); pub const SQL_CC_DELETE = @as(u32, 0); pub const SQL_CR_DELETE = @as(u32, 0); pub const SQL_CC_CLOSE = @as(u32, 1); pub const SQL_CR_CLOSE = @as(u32, 1); pub const SQL_CC_PRESERVE = @as(u32, 2); pub const SQL_CR_PRESERVE = @as(u32, 2); pub const SQL_FETCH_RESUME = @as(u32, 7); pub const SQL_SCROLL_FORWARD_ONLY = @as(i32, 0); pub const SQL_SCROLL_KEYSET_DRIVEN = @as(i32, -1); pub const SQL_SCROLL_DYNAMIC = @as(i32, -2); pub const SQL_SCROLL_STATIC = @as(i32, -3); pub const TRACE_VERSION = @as(u32, 1000); pub const TRACE_ON = @as(i32, 1); pub const TRACE_VS_EVENT_ON = @as(i32, 2); pub const ODBC_VS_FLAG_UNICODE_ARG = @as(i32, 1); pub const ODBC_VS_FLAG_UNICODE_COR = @as(i32, 2); pub const ODBC_VS_FLAG_RETCODE = @as(i32, 4); pub const ODBC_VS_FLAG_STOP = @as(i32, 8); pub const CRESTRICTIONS_DBSCHEMA_LINKEDSERVERS = @as(u32, 1); pub const SSPROP_ENABLEFASTLOAD = @as(u32, 2); pub const SSPROP_UNICODELCID = @as(u32, 2); pub const SSPROP_UNICODECOMPARISONSTYLE = @as(u32, 3); pub const SSPROP_COLUMNLEVELCOLLATION = @as(u32, 4); pub const SSPROP_CHARACTERSET = @as(u32, 5); pub const SSPROP_SORTORDER = @as(u32, 6); pub const SSPROP_CURRENTCOLLATION = @as(u32, 7); pub const SSPROP_INIT_CURRENTLANGUAGE = @as(u32, 4); pub const SSPROP_INIT_NETWORKADDRESS = @as(u32, 5); pub const SSPROP_INIT_NETWORKLIBRARY = @as(u32, 6); pub const SSPROP_INIT_USEPROCFORPREP = @as(u32, 7); pub const SSPROP_INIT_AUTOTRANSLATE = @as(u32, 8); pub const SSPROP_INIT_PACKETSIZE = @as(u32, 9); pub const SSPROP_INIT_APPNAME = @as(u32, 10); pub const SSPROP_INIT_WSID = @as(u32, 11); pub const SSPROP_INIT_FILENAME = @as(u32, 12); pub const SSPROP_INIT_ENCRYPT = @as(u32, 13); pub const SSPROP_AUTH_REPL_SERVER_NAME = @as(u32, 14); pub const SSPROP_INIT_TAGCOLUMNCOLLATION = @as(u32, 15); pub const SSPROPVAL_USEPROCFORPREP_OFF = @as(u32, 0); pub const SSPROPVAL_USEPROCFORPREP_ON = @as(u32, 1); pub const SSPROPVAL_USEPROCFORPREP_ON_DROP = @as(u32, 2); pub const SSPROP_QUOTEDCATALOGNAMES = @as(u32, 2); pub const SSPROP_ALLOWNATIVEVARIANT = @as(u32, 3); pub const SSPROP_SQLXMLXPROGID = @as(u32, 4); pub const SSPROP_MAXBLOBLENGTH = @as(u32, 8); pub const SSPROP_FASTLOADOPTIONS = @as(u32, 9); pub const SSPROP_FASTLOADKEEPNULLS = @as(u32, 10); pub const SSPROP_FASTLOADKEEPIDENTITY = @as(u32, 11); pub const SSPROP_CURSORAUTOFETCH = @as(u32, 12); pub const SSPROP_DEFERPREPARE = @as(u32, 13); pub const SSPROP_IRowsetFastLoad = @as(u32, 14); pub const SSPROP_COL_COLLATIONNAME = @as(u32, 14); pub const SSPROP_STREAM_MAPPINGSCHEMA = @as(u32, 15); pub const SSPROP_STREAM_XSL = @as(u32, 16); pub const SSPROP_STREAM_BASEPATH = @as(u32, 17); pub const SSPROP_STREAM_COMMANDTYPE = @as(u32, 18); pub const SSPROP_STREAM_XMLROOT = @as(u32, 19); pub const SSPROP_STREAM_FLAGS = @as(u32, 20); pub const SSPROP_STREAM_CONTENTTYPE = @as(u32, 23); pub const STREAM_FLAGS_DISALLOW_URL = @as(u32, 1); pub const STREAM_FLAGS_DISALLOW_ABSOLUTE_PATH = @as(u32, 2); pub const STREAM_FLAGS_DISALLOW_QUERY = @as(u32, 4); pub const STREAM_FLAGS_DONTCACHEMAPPINGSCHEMA = @as(u32, 8); pub const STREAM_FLAGS_DONTCACHETEMPLATE = @as(u32, 16); pub const STREAM_FLAGS_DONTCACHEXSL = @as(u32, 32); pub const STREAM_FLAGS_DISALLOW_UPDATEGRAMS = @as(u32, 64); pub const STREAM_FLAGS_RESERVED = @as(u32, 4294901760); pub const SSPROPVAL_COMMANDTYPE_REGULAR = @as(u32, 21); pub const SSPROPVAL_COMMANDTYPE_BULKLOAD = @as(u32, 22); pub const DBTYPE_SQLVARIANT = @as(u32, 144); pub const SQL_HANDLE_DBC_INFO_TOKEN = @as(u32, 6); pub const SQL_CONN_POOL_RATING_BEST = @as(u32, 100); pub const SQL_CONN_POOL_RATING_GOOD_ENOUGH = @as(u32, 99); pub const SQL_CONN_POOL_RATING_USELESS = @as(u32, 0); pub const SQL_ATTR_DBC_INFO_TOKEN = @as(u32, 118); pub const SQL_ATTR_ASYNC_DBC_NOTIFICATION_CALLBACK = @as(u32, 120); pub const SQL_ATTR_ASYNC_DBC_NOTIFICATION_CONTEXT = @as(u32, 121); pub const SQL_ATTR_ASYNC_STMT_NOTIFICATION_CALLBACK = @as(u32, 30); pub const SQL_ATTR_ASYNC_STMT_NOTIFICATION_CONTEXT = @as(u32, 31); pub const SQL_MAX_NUMERIC_LEN = @as(u32, 16); pub const SQL_WCHAR = @as(i32, -8); pub const SQL_WVARCHAR = @as(i32, -9); pub const SQL_WLONGVARCHAR = @as(i32, -10); pub const SQL_C_WCHAR = @as(i32, -8); pub const SQL_C_TCHAR = @as(i32, -8); pub const SQL_SQLSTATE_SIZEW = @as(u32, 10); pub const CSTORAGEPROPERTY = @as(u32, 23); pub const CATEGORY_SEARCH = @as(i32, 1); pub const CATEGORY_COLLATOR = @as(i32, 2); pub const CATEGORY_GATHERER = @as(i32, 3); pub const CATEGORY_INDEXER = @as(i32, 4); pub const EVENT_SSSEARCH_STARTED = @as(i32, 1073742827); pub const EVENT_SSSEARCH_STARTING_SETUP = @as(i32, 1073742828); pub const EVENT_SSSEARCH_SETUP_SUCCEEDED = @as(i32, 1073742829); pub const EVENT_SSSEARCH_SETUP_FAILED = @as(i32, -1073740818); pub const EVENT_OUTOFMEMORY = @as(i32, -1073740817); pub const EVENT_SSSEARCH_SETUP_CLEANUP_STARTED = @as(i32, -2147482640); pub const EVENT_EXCEPTION = @as(i32, -1073740815); pub const EVENT_SSSEARCH_SETUP_CLEANUP_SUCCEEDED = @as(i32, 1073742834); pub const EVENT_SSSEARCH_SETUP_CLEANUP_FAILED = @as(i32, -1073740813); pub const EVENT_SSSEARCH_STOPPED = @as(i32, 1073742837); pub const EVENT_SSSEARCH_CREATE_PATH_RULES_FAILED = @as(i32, -2147482634); pub const EVENT_SSSEARCH_DROPPED_EVENTS = @as(i32, -2147482633); pub const EVENT_SSSEARCH_DATAFILES_MOVE_FAILED = @as(i32, -1073740808); pub const EVENT_SSSEARCH_DATAFILES_MOVE_SUCCEEDED = @as(i32, 1073742841); pub const EVENT_SSSEARCH_DATAFILES_MOVE_ROLLBACK_ERRORS = @as(i32, -2147482630); pub const EVENT_SSSEARCH_CSM_SAVE_FAILED = @as(i32, -1073740805); pub const EVENT_CONFIG_SYNTAX = @as(i32, -2147482604); pub const EVENT_UNPRIVILEGED_SERVICE_ACCOUNT = @as(i32, -2147482596); pub const EVENT_SYSTEM_EXCEPTION = @as(i32, -2147482595); pub const EVENT_CONFIG_ERROR = @as(i32, -1073738821); pub const EVENT_GATHERSVC_PERFMON = @as(i32, -1073738818); pub const EVENT_GATHERER_PERFMON = @as(i32, -1073738817); pub const EVENT_HASHMAP_INSERT = @as(i32, -1073738816); pub const EVENT_TRANSLOG_CREATE_TRX = @as(i32, -1073738815); pub const EVENT_TRANSLOG_APPEND = @as(i32, -1073738814); pub const EVENT_TRANSLOG_UPDATE = @as(i32, -1073738813); pub const EVENT_HASHMAP_UPDATE = @as(i32, -1073738811); pub const EVENT_GATHER_EXCEPTION = @as(i32, -1073738810); pub const EVENT_TRANSACTION_READ = @as(i32, -1073738809); pub const EVENT_GATHER_END_CRAWL = @as(i32, 1073744842); pub const EVENT_GATHER_START_CRAWL = @as(i32, 1073744843); pub const EVENT_GATHER_INTERNAL = @as(i32, -1073738804); pub const EVENT_GATHER_CRAWL_NOT_STARTED = @as(i32, -2147480625); pub const EVENT_GATHER_CRAWL_SEED_ERROR = @as(i32, -2147480624); pub const EVENT_GATHER_CRITICAL_ERROR = @as(i32, -1073738799); pub const EVENT_GATHER_ADVISE_FAILED = @as(i32, -1073738798); pub const EVENT_GATHER_TRANSACTION_FAIL = @as(i32, -1073738797); pub const EVENT_GATHER_OBJ_INIT_FAILED = @as(i32, -1073738796); pub const EVENT_GATHER_PLUGIN_INIT_FAILED = @as(i32, -1073738795); pub const EVENT_GATHER_SERVICE_INIT = @as(i32, -1073738794); pub const EVENT_GATHER_CANT_CREATE_DOCID = @as(i32, -1073738793); pub const EVENT_GATHER_CANT_DELETE_DOCID = @as(i32, -1073738792); pub const EVENT_TRANSLOG_CREATE = @as(i32, -1073738791); pub const EVENT_REG_VERSION = @as(i32, -1073738790); pub const EVENT_GATHER_CRAWL_SEED_FAILED = @as(i32, -2147480612); pub const EVENT_GATHER_CRAWL_SEED_FAILED_INIT = @as(i32, -2147480611); pub const EVENT_GATHER_REG_MISSING = @as(i32, -2147480610); pub const EVENT_GATHER_CRAWL_IN_PROGRESS = @as(i32, -2147480609); pub const EVENT_GATHER_LOCK_FAILED = @as(i32, -1073738784); pub const EVENT_GATHER_RESET_START = @as(i32, 1073744865); pub const EVENT_GATHER_START_PAUSE = @as(i32, -2147480606); pub const EVENT_GATHER_THROTTLE = @as(i32, 1073744867); pub const EVENT_GATHER_RESUME = @as(i32, 1073744868); pub const EVENT_GATHER_AUTODESCLEN_ADJUSTED = @as(i32, -2147480603); pub const EVENT_GATHER_NO_CRAWL_SEEDS = @as(i32, -2147480602); pub const EVENT_GATHER_END_INCREMENTAL = @as(i32, 1073744871); pub const EVENT_GATHER_FROM_NOT_SET = @as(i32, -1073738776); pub const EVENT_GATHER_DELETING_HISTORY_ITEMS = @as(i32, -1073738774); pub const EVENT_GATHER_STOP_START = @as(i32, 1073744876); pub const EVENT_GATHER_START_CRAWL_IF_RESET = @as(i32, -2147480595); pub const EVENT_GATHER_DISK_FULL = @as(i32, -2147480594); pub const EVENT_GATHER_NO_SCHEMA = @as(i32, -2147480593); pub const EVENT_GATHER_AUTODESCENCODE_INVALID = @as(i32, -2147480592); pub const EVENT_GATHER_PLUGINMGR_INIT_FAILED = @as(i32, -1073738767); pub const EVENT_GATHER_APP_INIT_FAILED = @as(i32, -1073738766); pub const EVENT_FAILED_INITIALIZE_CRAWL = @as(i32, -1073738765); pub const EVENT_CRAWL_SCHEDULED = @as(i32, 1073744884); pub const EVENT_FAILED_CREATE_GATHERER_LOG = @as(i32, -2147480587); pub const EVENT_WBREAKER_NOT_LOADED = @as(i32, -2147480586); pub const EVENT_LEARN_PROPAGATION_COPY_FAILED = @as(i32, -2147480585); pub const EVENT_LEARN_CREATE_DB_FAILED = @as(i32, -2147480584); pub const EVENT_LEARN_COMPILE_FAILED = @as(i32, -2147480583); pub const EVENT_LEARN_PROPAGATION_FAILED = @as(i32, -2147480582); pub const EVENT_GATHER_END_ADAPTIVE = @as(i32, 1073744891); pub const EVENT_USING_DIFFERENT_WORD_BREAKER = @as(i32, -2147480580); pub const EVENT_GATHER_RESTORE_COMPLETE = @as(i32, 3069); pub const EVENT_GATHER_RESTORE_ERROR = @as(i32, -1073738754); pub const EVENT_AUTOCAT_PERFMON = @as(i32, -1073738753); pub const EVENT_GATHER_DIRTY_STARTUP = @as(i32, -2147480576); pub const EVENT_GATHER_HISTORY_CORRUPTION_DETECTED = @as(i32, -2147480575); pub const EVENT_GATHER_RESTOREAPP_ERROR = @as(i32, -1073738750); pub const EVENT_GATHER_RESTOREAPP_COMPLETE = @as(i32, 3075); pub const EVENT_GATHER_BACKUPAPP_ERROR = @as(i32, -1073738748); pub const EVENT_GATHER_BACKUPAPP_COMPLETE = @as(i32, 3077); pub const EVENT_GATHER_DAEMON_TERMINATED = @as(i32, -2147480570); pub const EVENT_NOTIFICATION_FAILURE = @as(i32, -1073738745); pub const EVENT_NOTIFICATION_FAILURE_SCOPE_EXCEEDED_LOGGING = @as(i32, -2147480568); pub const EVENT_NOTIFICATION_RESTORED = @as(i32, 1073744905); pub const EVENT_NOTIFICATION_RESTORED_SCOPE_EXCEEDED_LOGGING = @as(i32, -2147480566); pub const EVENT_GATHER_PROTOCOLHANDLER_LOAD_FAILED = @as(i32, -1073738741); pub const EVENT_GATHER_PROTOCOLHANDLER_INIT_FAILED = @as(i32, -1073738740); pub const EVENT_GATHER_INVALID_NETWORK_ACCESS_ACCOUNT = @as(i32, -1073738739); pub const EVENT_GATHER_SYSTEM_LCID_CHANGED = @as(i32, -2147480562); pub const EVENT_GATHER_FLUSH_FAILED = @as(i32, -1073738737); pub const EVENT_GATHER_CHECKPOINT_FAILED = @as(i32, -1073738736); pub const EVENT_GATHER_SAVE_FAILED = @as(i32, -1073738735); pub const EVENT_GATHER_RESTORE_CHECKPOINT_FAILED = @as(i32, -1073738734); pub const EVENT_GATHER_READ_CHECKPOINT_FAILED = @as(i32, -1073738733); pub const EVENT_GATHER_CHECKPOINT_CORRUPT = @as(i32, -1073738732); pub const EVENT_GATHER_CHECKPOINT_FILE_MISSING = @as(i32, -1073738731); pub const EVENT_STS_INIT_SECURITY_FAILED = @as(i32, -2147480554); pub const EVENT_LOCAL_GROUP_NOT_EXPANDED = @as(i32, 1073744919); pub const EVENT_LOCAL_GROUPS_CACHE_FLUSHED = @as(i32, 1073744920); pub const EVENT_GATHERER_DATASOURCE = @as(i32, -1073738727); pub const EVENT_AUTOCAT_CANT_CREATE_FILE_SHARE = @as(i32, -1073738726); pub const EVENT_NOTIFICATION_THREAD_EXIT_FAILED = @as(i32, -1073738725); pub const EVENT_FILTER_HOST_NOT_INITIALIZED = @as(i32, -1073738724); pub const EVENT_FILTER_HOST_NOT_TERMINATED = @as(i32, -1073738723); pub const EVENT_FILTERPOOL_ADD_FAILED = @as(i32, -1073738722); pub const EVENT_FILTERPOOL_DELETE_FAILED = @as(i32, -1073738721); pub const EVENT_ENUMERATE_SESSIONS_FAILED = @as(i32, -1073738720); pub const EVENT_DETAILED_FILTERPOOL_ADD_FAILED = @as(i32, -1073738719); pub const EVENT_AUDIENCECOMPUTATION_CANNOTSTART = @as(i32, -1073738223); pub const EVENT_GATHER_RECOVERY_FAILURE = @as(i32, -1073738222); pub const EVENT_INDEXER_STARTED = @as(i32, 1073748824); pub const EVENT_INDEXER_SCHEMA_COPY_ERROR = @as(i32, -1073734823); pub const EVENT_INDEXER_INIT_ERROR = @as(i32, -1073734814); pub const EVENT_INDEXER_INVALID_DIRECTORY = @as(i32, -1073734813); pub const EVENT_INDEXER_PROP_ERROR = @as(i32, -1073734812); pub const EVENT_INDEXER_PAUSED_FOR_DISKFULL = @as(i32, -1073734811); pub const EVENT_INDEXER_PROP_STOPPED = @as(i32, -2147476633); pub const EVENT_INDEXER_PROP_SUCCEEDED = @as(i32, 7016); pub const EVENT_INDEXER_PROP_STARTED = @as(i32, 1073748841); pub const EVENT_INDEXER_NO_SEARCH_SERVERS = @as(i32, -2147476630); pub const EVENT_INDEXER_ADD_DSS_SUCCEEDED = @as(i32, 7019); pub const EVENT_INDEXER_REMOVE_DSS_SUCCEEDED = @as(i32, 7020); pub const EVENT_INDEXER_ADD_DSS_FAILED = @as(i32, -2147476627); pub const EVENT_INDEXER_REMOVE_DSS_FAILED = @as(i32, -1073734801); pub const EVENT_INDEXER_DSS_CONTACT_FAILED = @as(i32, -1073734800); pub const EVENT_INDEXER_BUILD_FAILED = @as(i32, -1073734797); pub const EVENT_INDEXER_REG_MISSING = @as(i32, -1073734796); pub const EVENT_INDEXER_PROPSTORE_INIT_FAILED = @as(i32, -1073734787); pub const EVENT_INDEXER_CI_LOAD_ERROR = @as(i32, -1073734785); pub const EVENT_INDEXER_RESET_FOR_CORRUPTION = @as(i32, -1073734784); pub const EVENT_INDEXER_SHUTDOWN = @as(i32, 1073748866); pub const EVENT_INDEXER_LOAD_FAIL = @as(i32, -1073734781); pub const EVENT_INDEXER_PROP_STATE_CORRUPT = @as(i32, -1073734780); pub const EVENT_INDEXER_DSS_ALREADY_ADDED = @as(i32, 1073748870); pub const EVENT_INDEXER_BUILD_START = @as(i32, 1073748872); pub const EVENT_INDEXER_BUILD_ENDED = @as(i32, 1073748873); pub const EVENT_INDEXER_VERIFY_PROP_ACCOUNT = @as(i32, -1073734768); pub const EVENT_INDEXER_ADD_DSS_DISCONNECT = @as(i32, -2147476585); pub const EVENT_INDEXER_PERFMON = @as(i32, -1073734760); pub const EVENT_INDEXER_MISSING_APP_DIRECTORY = @as(i32, -1073734758); pub const EVENT_INDEXER_REG_ERROR = @as(i32, -1073734756); pub const EVENT_INDEXER_DSS_UNABLE_TO_REMOVE = @as(i32, -1073734755); pub const EVENT_INDEXER_NEW_PROJECT = @as(i32, -1073734754); pub const EVENT_INDEXER_REMOVED_PROJECT = @as(i32, -1073734753); pub const EVENT_INDEXER_PROP_COMMITTED = @as(i32, 1073748898); pub const EVENT_INDEXER_PROP_ABORTED = @as(i32, 1073748899); pub const EVENT_DSS_NOT_ENABLED = @as(i32, -2147476572); pub const EVENT_INDEXER_PROP_COMMIT_FAILED = @as(i32, -1073734747); pub const JET_INIT_ERROR = @as(i32, -1073732824); pub const JET_NEW_PROP_STORE_ERROR = @as(i32, -1073732823); pub const JET_GET_PROP_STORE_ERROR = @as(i32, -1073732822); pub const JET_MULTIINSTANCE_DISABLED = @as(i32, -2147474645); pub const EVENT_WARNING_CANNOT_UPGRADE_NOISE_FILES = @as(i32, -2147473635); pub const EVENT_WARNING_CANNOT_UPGRADE_NOISE_FILE = @as(i32, -2147473634); pub const EVENT_WIN32_ERROR = @as(i32, -2147473633); pub const EVENT_PERF_COUNTERS_NOT_LOADED = @as(i32, -2147473628); pub const EVENT_PERF_COUNTERS_REGISTRY_TROUBLE = @as(i32, -2147473627); pub const EVENT_PERF_COUNTERS_ALREADY_EXISTS = @as(i32, -2147473626); pub const EVENT_PROTOCOL_HOST_FORCE_TERMINATE = @as(i32, -2147473625); pub const EVENT_FILTER_HOST_FORCE_TERMINATE = @as(i32, -2147473624); pub const EVENT_INDEXER_OUT_OF_DATABASE_INSTANCE = @as(i32, -1073731799); pub const EVENT_INDEXER_FAIL_TO_SET_MAX_JETINSTANCE = @as(i32, -1073731798); pub const EVENT_INDEXER_FAIL_TO_CREATE_PER_USER_CATALOG = @as(i32, -1073731797); pub const EVENT_INDEXER_FAIL_TO_UNLOAD_PER_USER_CATALOG = @as(i32, -1073731796); pub const ERROR_SOURCE_NETWORKING = @as(u32, 768); pub const ERROR_SOURCE_DATASOURCE = @as(u32, 1024); pub const ERROR_SOURCE_COLLATOR = @as(u32, 1280); pub const ERROR_SOURCE_CONNMGR = @as(u32, 1536); pub const ERROR_SOURCE_QUERY = @as(u32, 1792); pub const ERROR_SOURCE_SCHEMA = @as(u32, 3072); pub const ERROR_SOURCE_GATHERER = @as(u32, 3328); pub const ERROR_SOURCE_INDEXER = @as(u32, 4352); pub const ERROR_SOURCE_SETUP = @as(u32, 4864); pub const ERROR_SOURCE_SECURITY = @as(u32, 5120); pub const ERROR_SOURCE_CMDLINE = @as(u32, 5376); pub const ERROR_SOURCE_NLADMIN = @as(u32, 6400); pub const ERROR_SOURCE_SCRIPTPI = @as(u32, 8192); pub const ERROR_SOURCE_MSS = @as(u32, 8448); pub const ERROR_SOURCE_XML = @as(u32, 8704); pub const ERROR_SOURCE_DAV = @as(u32, 8960); pub const ERROR_SOURCE_FLTRDMN = @as(u32, 9216); pub const ERROR_SOURCE_OLEDB_BINDER = @as(u32, 9472); pub const ERROR_SOURCE_NOTESPH = @as(u32, 9728); pub const ERROR_SOURCE_EXSTOREPH = @as(u32, 9984); pub const ERROR_SOURCE_SRCH_SCHEMA_CACHE = @as(u32, 13056); pub const ERROR_SOURCE_CONTENT_SOURCE = @as(u32, 13312); pub const ERROR_SOURCE_REMOTE_EXSTOREPH = @as(u32, 13568); pub const ERROR_SOURCE_PEOPLE_IMPORT = @as(u32, 16384); pub const ERROR_FTE = @as(u32, 13824); pub const ERROR_FTE_CB = @as(u32, 51968); pub const ERROR_FTE_FD = @as(u32, 64768); pub const XML_E_NODEFAULTNS = @as(i32, -2147212800); pub const XML_E_BADSXQL = @as(i32, -2147212799); pub const MSS_E_INVALIDAPPNAME = @as(i32, -2147213056); pub const MSS_E_APPNOTFOUND = @as(i32, -2147213055); pub const MSS_E_APPALREADYEXISTS = @as(i32, -2147213054); pub const MSS_E_CATALOGNOTFOUND = @as(i32, -2147213053); pub const MSS_E_CATALOGSTOPPING = @as(i32, -2147213052); pub const MSS_E_UNICODEFILEHEADERMISSING = @as(i32, -2147213051); pub const MSS_E_CATALOGALREADYEXISTS = @as(i32, -2147213050); pub const NET_E_GENERAL = @as(i32, -2147220736); pub const NET_E_DISCONNECTED = @as(i32, -2147220733); pub const NET_E_INVALIDPARAMS = @as(i32, -2147220728); pub const NET_E_OPERATIONINPROGRESS = @as(i32, -2147220727); pub const SEC_E_INVALIDCONTEXT = @as(i32, -2147216381); pub const SEC_E_INITFAILED = @as(i32, -2147216383); pub const SEC_E_NOTINITIALIZED = @as(i32, -2147216382); pub const SEC_E_ACCESSDENIED = @as(i32, -2147216129); pub const DS_E_NOMOREDATA = @as(i32, -2147220480); pub const DS_E_INVALIDDATASOURCE = @as(i32, -2147220479); pub const DS_E_DATASOURCENOTAVAILABLE = @as(i32, -2147220478); pub const DS_E_QUERYCANCELED = @as(i32, -2147220477); pub const DS_E_UNKNOWNREQUEST = @as(i32, -2147220476); pub const DS_E_BADREQUEST = @as(i32, -2147220475); pub const DS_E_SERVERCAPACITY = @as(i32, -2147220474); pub const DS_E_BADSEQUENCE = @as(i32, -2147220473); pub const DS_E_MESSAGETOOLONG = @as(i32, -2147220472); pub const DS_E_SERVERERROR = @as(i32, -2147220471); pub const DS_E_CONFIGBAD = @as(i32, -2147220470); pub const DS_E_DATANOTPRESENT = @as(i32, -2147220464); pub const DS_E_SETSTATUSINPROGRESS = @as(i32, -2147220463); pub const DS_E_DUPLICATEID = @as(i32, -2147220462); pub const DS_E_TOOMANYDATASOURCES = @as(i32, -2147220461); pub const DS_E_REGISTRY = @as(i32, -2147220460); pub const DS_E_DATASOURCENOTDISABLED = @as(i32, -2147220459); pub const DS_E_INVALIDTAGDB = @as(i32, -2147220458); pub const DS_E_INVALIDCATALOGNAME = @as(i32, -2147220457); pub const DS_E_CONFIGNOTRIGHTTYPE = @as(i32, -2147220456); pub const DS_E_PROTOCOLVERSION = @as(i32, -2147220455); pub const DS_E_ALREADYENABLED = @as(i32, -2147220454); pub const DS_E_INDEXDIRECTORY = @as(i32, -2147220452); pub const DS_E_VALUETOOLARGE = @as(i32, -2147220451); pub const DS_E_UNKNOWNPARAM = @as(i32, -2147220450); pub const DS_E_BUFFERTOOSMALL = @as(i32, -2147220449); pub const DS_E_PARAMOUTOFRANGE = @as(i32, -2147220448); pub const DS_E_ALREADYDISABLED = @as(i32, -2147220447); pub const DS_E_QUERYHUNG = @as(i32, -2147220446); pub const DS_E_BADRESULT = @as(i32, -2147220445); pub const DS_E_CANNOTWRITEREGISTRY = @as(i32, -2147220444); pub const DS_E_CANNOTREMOVECONCURRENT = @as(i32, -2147220443); pub const DS_E_SEARCHCATNAMECOLLISION = @as(i32, -2147220442); pub const DS_E_PROPVERSIONMISMATCH = @as(i32, -2147220441); pub const DS_E_MISSINGCATALOG = @as(i32, -2147220440); pub const COLL_E_BADSEQUENCE = @as(i32, -2147220223); pub const COLL_E_NOMOREDATA = @as(i32, -2147220222); pub const COLL_E_INCOMPATIBLECOLUMNS = @as(i32, -2147220221); pub const COLL_E_BUFFERTOOSMALL = @as(i32, -2147220220); pub const COLL_E_BADRESULT = @as(i32, -2147220218); pub const COLL_E_NOSORTCOLUMN = @as(i32, -2147220217); pub const COLL_E_DUPLICATEDBID = @as(i32, -2147220216); pub const COLL_E_TOOMANYMERGECOLUMNS = @as(i32, -2147220215); pub const COLL_E_NODEFAULTCATALOG = @as(i32, -2147220214); pub const COLL_E_MAXCONNEXCEEDED = @as(i32, -2147220213); pub const CM_E_TOOMANYDATASERVERS = @as(i32, -2147219967); pub const CM_E_TOOMANYDATASOURCES = @as(i32, -2147219966); pub const CM_E_NOQUERYCONNECTIONS = @as(i32, -2147219965); pub const CM_E_DATASOURCENOTAVAILABLE = @as(i32, -2147219964); pub const CM_E_CONNECTIONTIMEOUT = @as(i32, -2147219963); pub const CM_E_SERVERNOTFOUND = @as(i32, -2147219962); pub const CM_S_NODATASERVERS = @as(i32, 263687); pub const CM_E_REGISTRY = @as(i32, -2147219960); pub const CM_E_INVALIDDATASOURCE = @as(i32, -2147219959); pub const CM_E_TIMEOUT = @as(i32, -2147219958); pub const CM_E_INSUFFICIENTBUFFER = @as(i32, -2147219957); pub const QRY_E_QUERYSYNTAX = @as(i32, -2147219711); pub const QRY_E_TYPEMISMATCH = @as(i32, -2147219710); pub const QRY_E_UNHANDLEDTYPE = @as(i32, -2147219709); pub const QRY_S_NOROWSFOUND = @as(i32, 263940); pub const QRY_E_TOOMANYCOLUMNS = @as(i32, -2147219707); pub const QRY_E_TOOMANYDATABASES = @as(i32, -2147219706); pub const QRY_E_STARTHITTOBIG = @as(i32, -2147219705); pub const QRY_E_TOOMANYQUERYTERMS = @as(i32, -2147219704); pub const QRY_E_NODATASOURCES = @as(i32, -2147219703); pub const QRY_E_TIMEOUT = @as(i32, -2147219702); pub const QRY_E_COLUMNNOTSORTABLE = @as(i32, -2147219701); pub const QRY_E_COLUMNNOTSEARCHABLE = @as(i32, -2147219700); pub const QRY_E_INVALIDCOLUMN = @as(i32, -2147219699); pub const QRY_E_QUERYCORRUPT = @as(i32, -2147219698); pub const QRY_E_PREFIXWILDCARD = @as(i32, -2147219697); pub const QRY_E_INFIXWILDCARD = @as(i32, -2147219696); pub const QRY_E_WILDCARDPREFIXLENGTH = @as(i32, -2147219695); pub const QRY_S_TERMIGNORED = @as(i32, 263954); pub const QRY_E_ENGINEFAILED = @as(i32, -2147219693); pub const QRY_E_SEARCHTOOBIG = @as(i32, -2147219692); pub const QRY_E_NULLQUERY = @as(i32, -2147219691); pub const QRY_S_INEXACTRESULTS = @as(i32, 263958); pub const QRY_E_NOCOLUMNS = @as(i32, -2147219689); pub const QRY_E_INVALIDSCOPES = @as(i32, -2147219688); pub const QRY_E_INVALIDCATALOG = @as(i32, -2147219687); pub const QRY_E_SCOPECARDINALIDY = @as(i32, -2147219686); pub const QRY_E_UNEXPECTED = @as(i32, -2147219685); pub const QRY_E_INVALIDPATH = @as(i32, -2147219684); pub const QRY_E_LMNOTINITIALIZED = @as(i32, -2147219683); pub const QRY_E_INVALIDINTERVAL = @as(i32, -2147219682); pub const QRY_E_NOLOGMANAGER = @as(i32, -2147219681); pub const SCHEMA_E_LOAD_SPECIAL = @as(i32, -2147218431); pub const SCHEMA_E_FILENOTFOUND = @as(i32, -2147218430); pub const SCHEMA_E_NESTEDTAG = @as(i32, -2147218429); pub const SCHEMA_E_UNEXPECTEDTAG = @as(i32, -2147218428); pub const SCHEMA_E_VERSIONMISMATCH = @as(i32, -2147218427); pub const SCHEMA_E_CANNOTCREATEFILE = @as(i32, -2147218426); pub const SCHEMA_E_CANNOTWRITEFILE = @as(i32, -2147218425); pub const SCHEMA_E_EMPTYFILE = @as(i32, -2147218424); pub const SCHEMA_E_INVALIDFILETYPE = @as(i32, -2147218423); pub const SCHEMA_E_INVALIDDATATYPE = @as(i32, -2147218422); pub const SCHEMA_E_CANNOTCREATENOISEWORDFILE = @as(i32, -2147218421); pub const SCHEMA_E_ADDSTOPWORDS = @as(i32, -2147218420); pub const SCHEMA_E_NAMEEXISTS = @as(i32, -2147218419); pub const SCHEMA_E_INVALIDVALUE = @as(i32, -2147218418); pub const SCHEMA_E_BADPROPSPEC = @as(i32, -2147218417); pub const SCHEMA_E_NOMORECOLUMNS = @as(i32, -2147218416); pub const SCHEMA_E_FILECHANGED = @as(i32, -2147218415); pub const SCHEMA_E_BADCOLUMNNAME = @as(i32, -2147218414); pub const SCHEMA_E_BADPROPPID = @as(i32, -2147218413); pub const SCHEMA_E_BADATTRIBUTE = @as(i32, -2147218412); pub const SCHEMA_E_BADFILENAME = @as(i32, -2147218411); pub const SCHEMA_E_PROPEXISTS = @as(i32, -2147218410); pub const SCHEMA_E_DUPLICATENOISE = @as(i32, -2147218409); pub const GTHR_E_DUPLICATE_OBJECT = @as(i32, -2147218174); pub const GTHR_E_UNABLE_TO_READ_REGISTRY = @as(i32, -2147218173); pub const GTHR_E_ERROR_WRITING_REGISTRY = @as(i32, -2147218172); pub const GTHR_E_ERROR_INITIALIZING_PERFMON = @as(i32, -2147218171); pub const GTHR_E_ERROR_OBJECT_NOT_FOUND = @as(i32, -2147218170); pub const GTHR_E_URL_EXCLUDED = @as(i32, -2147218169); pub const GTHR_E_CONFIG_DUP_PROJECT = @as(i32, -2147218166); pub const GTHR_E_CONFIG_DUP_EXTENSION = @as(i32, -2147218165); pub const GTHR_E_DUPLICATE_URL = @as(i32, -2147218163); pub const GTHR_E_TOO_MANY_PLUGINS = @as(i32, -2147218162); pub const GTHR_E_INVALIDFUNCTION = @as(i32, -2147218161); pub const GTHR_E_NOFILTERSINK = @as(i32, -2147218160); pub const GTHR_E_FILTER_PROCESS_TERMINATED = @as(i32, -2147218159); pub const GTHR_E_FILTER_INVALID_MESSAGE = @as(i32, -2147218158); pub const GTHR_E_UNSUPPORTED_PROPERTY_TYPE = @as(i32, -2147218157); pub const GTHR_E_NAME_TOO_LONG = @as(i32, -2147218156); pub const GTHR_E_NO_IDENTITY = @as(i32, -2147218155); pub const GTHR_E_FILTER_NOT_FOUND = @as(i32, -2147218154); pub const GTHR_E_FILTER_NO_MORE_THREADS = @as(i32, -2147218153); pub const GTHR_E_PRT_HNDLR_PROGID_MISSING = @as(i32, -2147218152); pub const GTHR_E_FILTER_PROCESS_TERMINATED_QUOTA = @as(i32, -2147218151); pub const GTHR_E_UNKNOWN_PROTOCOL = @as(i32, -2147218150); pub const GTHR_E_PROJECT_NOT_INITIALIZED = @as(i32, -2147218149); pub const GTHR_S_STATUS_CHANGE_IGNORED = @as(i32, 265500); pub const GTHR_S_STATUS_END_CRAWL = @as(i32, 265501); pub const GTHR_S_STATUS_RESET = @as(i32, 265502); pub const GTHR_S_STATUS_THROTTLE = @as(i32, 265503); pub const GTHR_S_STATUS_RESUME = @as(i32, 265504); pub const GTHR_S_STATUS_PAUSE = @as(i32, 265505); pub const GTHR_E_INVALID_PROJECT_NAME = @as(i32, -2147218142); pub const GTHR_E_SHUTTING_DOWN = @as(i32, -2147218141); pub const GTHR_S_END_STD_CHUNKS = @as(i32, 265508); pub const GTHR_E_VALUE_NOT_AVAILABLE = @as(i32, -2147218139); pub const GTHR_E_OUT_OF_DOC_ID = @as(i32, -2147218138); pub const GTHR_E_NOTIFICATION_START_PAGE = @as(i32, -2147218137); pub const GTHR_E_DUP_PROPERTY_MAPPING = @as(i32, -2147218134); pub const GTHR_S_NO_CRAWL_SEEDS = @as(i32, 265515); pub const GTHR_E_INVALID_ACCOUNT = @as(i32, -2147218132); pub const GTHR_E_FILTER_INIT = @as(i32, -2147218130); pub const GTHR_E_INVALID_ACCOUNT_SYNTAX = @as(i32, -2147218129); pub const GTHR_S_CANNOT_FILTER = @as(i32, 265520); pub const GTHR_E_PROXY_NAME = @as(i32, -2147218127); pub const GTHR_E_SERVER_UNAVAILABLE = @as(i32, -2147218126); pub const GTHR_S_STATUS_STOP = @as(i32, 265523); pub const GTHR_E_INVALID_PATH = @as(i32, -2147218124); pub const GTHR_E_FILTER_NO_CODEPAGE = @as(i32, -2147218123); pub const GTHR_S_STATUS_START = @as(i32, 265526); pub const GTHR_E_NO_PRTCLHNLR = @as(i32, -2147218121); pub const GTHR_E_IE_OFFLINE = @as(i32, -2147218120); pub const GTHR_E_BAD_FILTER_DAEMON = @as(i32, -2147218119); pub const GTHR_E_INVALID_MAPPING = @as(i32, -2147218112); pub const GTHR_E_USER_AGENT_NOT_SPECIFIED = @as(i32, -2147218111); pub const GTHR_E_FROM_NOT_SPECIFIED = @as(i32, -2147218109); pub const GTHR_E_INVALID_STREAM_LOGS_COUNT = @as(i32, -2147218108); pub const GTHR_E_INVALID_EXTENSION = @as(i32, -2147218107); pub const GTHR_E_INVALID_GROW_FACTOR = @as(i32, -2147218106); pub const GTHR_E_INVALID_TIME_OUT = @as(i32, -2147218105); pub const GTHR_E_INVALID_RETRIES = @as(i32, -2147218104); pub const GTHR_E_INVALID_LOG_FILE_NAME = @as(i32, -2147218103); pub const GTHR_E_INVALID_HOST_NAME = @as(i32, -2147218096); pub const GTHR_E_INVALID_START_PAGE = @as(i32, -2147218095); pub const GTHR_E_DUPLICATE_PROJECT = @as(i32, -2147218094); pub const GTHR_E_INVALID_DIRECTORY = @as(i32, -2147218093); pub const GTHR_E_FILTER_INTERRUPTED = @as(i32, -2147218092); pub const GTHR_E_INVALID_PROXY_PORT = @as(i32, -2147218091); pub const GTHR_S_CONFIG_HAS_ACCOUNTS = @as(i32, 265558); pub const GTHR_E_SECRET_NOT_FOUND = @as(i32, -2147218089); pub const GTHR_E_INVALID_PATH_EXPRESSION = @as(i32, -2147218088); pub const GTHR_E_INVALID_START_PAGE_HOST = @as(i32, -2147218087); pub const GTHR_E_INVALID_START_PAGE_PATH = @as(i32, -2147218080); pub const GTHR_E_APPLICATION_NOT_FOUND = @as(i32, -2147218079); pub const GTHR_E_CANNOT_REMOVE_PLUGINMGR = @as(i32, -2147218078); pub const GTHR_E_INVALID_APPLICATION_NAME = @as(i32, -2147218077); pub const GTHR_E_FILTER_FAULT = @as(i32, -2147218075); pub const GTHR_E_NON_FIXED_DRIVE = @as(i32, -2147218074); pub const GTHR_S_PROB_NOT_MODIFIED = @as(i32, 265575); pub const GTHR_S_CRAWL_SCHEDULED = @as(i32, 265576); pub const GTHR_S_TRANSACTION_IGNORED = @as(i32, 265577); pub const GTHR_S_START_FILTER_FROM_PROTOCOL = @as(i32, 265578); pub const GTHR_E_FILTER_SINGLE_THREADED = @as(i32, -2147218069); pub const GTHR_S_BAD_FILE_LINK = @as(i32, 265580); pub const GTHR_E_URL_UNIDENTIFIED = @as(i32, -2147218067); pub const GTHR_S_NOT_ALL_PARTS = @as(i32, 265582); pub const GTHR_E_FORCE_NOTIFICATION_RESET = @as(i32, -2147218065); pub const GTHR_S_END_PROCESS_LOOP_NOTIFY_QUEUE = @as(i32, 265584); pub const GTHR_S_START_FILTER_FROM_BODY = @as(i32, 265585); pub const GTHR_E_CONTENT_ID_CONFLICT = @as(i32, -2147218062); pub const GTHR_E_UNABLE_TO_READ_EXCHANGE_STORE = @as(i32, -2147218061); pub const GTHR_E_RECOVERABLE_EXOLEDB_ERROR = @as(i32, -2147218060); pub const GTHR_E_INVALID_CALL_FROM_WBREAKER = @as(i32, -2147218058); pub const GTHR_E_PROPERTY_LIST_NOT_INITIALIZED = @as(i32, -2147218057); pub const GTHR_S_MODIFIED_PARTS = @as(i32, 265592); pub const GHTR_E_LOCAL_SERVER_UNAVAILABLE = @as(i32, -2147218055); pub const GTHR_E_SCHEMA_ERRORS_OCCURRED = @as(i32, -2147218054); pub const GTHR_E_TIMEOUT = @as(i32, -2147218053); pub const GTHR_S_CRAWL_FULL = @as(i32, 265603); pub const GTHR_S_CRAWL_INCREMENTAL = @as(i32, 265604); pub const GTHR_S_CRAWL_ADAPTIVE = @as(i32, 265605); pub const GTHR_E_NOTIFICATION_START_ADDRESS_INVALID = @as(i32, -2147218042); pub const GTHR_E_NOTIFICATION_TYPE_NOT_SUPPORTED = @as(i32, -2147218041); pub const GTHR_E_NOTIFICATION_FILE_SHARE_INFO_NOT_AVAILABLE = @as(i32, -2147218040); pub const GTHR_E_NOTIFICATION_LOCAL_PATH_MUST_USE_FIXED_DRIVE = @as(i32, -2147218039); pub const GHTR_E_INSUFFICIENT_DISK_SPACE = @as(i32, -2147218037); pub const GTHR_E_INVALID_RESOURCE_ID = @as(i32, -2147218035); pub const GTHR_E_NESTED_HIERARCHICAL_START_ADDRESSES = @as(i32, -2147218034); pub const GTHR_S_NO_INDEX = @as(i32, 265616); pub const GTHR_S_PAUSE_REASON_EXTERNAL = @as(i32, 265618); pub const GTHR_S_PAUSE_REASON_UPGRADING = @as(i32, 265619); pub const GTHR_S_PAUSE_REASON_BACKOFF = @as(i32, 265620); pub const GTHR_E_RETRY = @as(i32, -2147218027); pub const GTHR_E_JET_BACKUP_ERROR = @as(i32, -2147218026); pub const GTHR_E_JET_RESTORE_ERROR = @as(i32, -2147218025); pub const GTHR_S_OFFICE_CHILD = @as(i32, 265626); pub const GTHR_E_PLUGIN_NOT_REGISTERED = @as(i32, -2147218021); pub const GTHR_E_NOTIF_ACCESS_TOKEN_UPDATED = @as(i32, -2147218020); pub const GTHR_E_DIRMON_NOT_INITIALZED = @as(i32, -2147218019); pub const GTHR_E_NOTIF_BEING_REMOVED = @as(i32, -2147218018); pub const GTHR_E_NOTIF_EXCESSIVE_THROUGHPUT = @as(i32, -2147218017); pub const GTHR_E_INVALID_PATH_SPEC = @as(i32, -2147218016); pub const GTHR_E_INSUFFICIENT_FEATURE_TERMS = @as(i32, -2147218015); pub const GTHR_E_INSUFFICIENT_EXAMPLE_CATEGORIES = @as(i32, -2147218014); pub const GTHR_E_INSUFFICIENT_EXAMPLE_DOCUMENTS = @as(i32, -2147218013); pub const GTHR_E_AUTOCAT_UNEXPECTED = @as(i32, -2147218012); pub const GTHR_E_SINGLE_THREADED_EMBEDDING = @as(i32, -2147218011); pub const GTHR_S_CANNOT_WORDBREAK = @as(i32, 265638); pub const GTHR_S_USE_MIME_FILTER = @as(i32, 265639); pub const GTHR_E_FOLDER_CRAWLED_BY_ANOTHER_WORKSPACE = @as(i32, -2147218007); pub const GTHR_E_EMPTY_DACL = @as(i32, -2147218006); pub const GTHR_E_OBJECT_NOT_VALID = @as(i32, -2147218005); pub const GTHR_E_CANNOT_ENABLE_CHECKPOINT = @as(i32, -2147218002); pub const GTHR_E_SCOPES_EXCEEDED = @as(i32, -2147218001); pub const GTHR_E_PROPERTIES_EXCEEDED = @as(i32, -2147218000); pub const GTHR_E_INVALID_START_ADDRESS = @as(i32, -2147217998); pub const GTHR_S_PAUSE_REASON_PROFILE_IMPORT = @as(i32, 265651); pub const GTHR_E_PIPE_NOT_CONNECTTED = @as(i32, -2147217996); pub const GTHR_E_BACKUP_VALIDATION_FAIL = @as(i32, -2147217994); pub const GTHR_E_BAD_FILTER_HOST = @as(i32, -2147217993); pub const GTHR_E_NTF_CLIENT_NOT_SUBSCRIBED = @as(i32, -1073476167); pub const GTHR_E_FILTERPOOL_NOTFOUND = @as(i32, -2147217990); pub const GTHR_E_ADDLINKS_FAILED_WILL_RETRY_PARENT = @as(i32, -2147217989); pub const IDX_E_INVALIDTAG = @as(i32, -2147217151); pub const IDX_E_METAFILE_CORRUPT = @as(i32, -2147217150); pub const IDX_E_TOO_MANY_SEARCH_SERVERS = @as(i32, -2147217149); pub const IDX_E_SEARCH_SERVER_ALREADY_EXISTS = @as(i32, -2147217148); pub const IDX_E_BUILD_IN_PROGRESS = @as(i32, -2147217147); pub const IDX_E_IDXLSTFILE_CORRUPT = @as(i32, -2147217146); pub const IDX_E_REGISTRY_ENTRY = @as(i32, -2147217145); pub const IDX_E_OBJECT_NOT_FOUND = @as(i32, -2147217144); pub const IDX_E_SEARCH_SERVER_NOT_FOUND = @as(i32, -2147217143); pub const IDX_E_WB_NOTFOUND = @as(i32, -2147217142); pub const IDX_E_NOISELIST_NOTFOUND = @as(i32, -2147217141); pub const IDX_E_STEMMER_NOTFOUND = @as(i32, -2147217140); pub const IDX_E_PROP_STOPPED = @as(i32, -2147217139); pub const IDX_E_DISKFULL = @as(i32, -2147217138); pub const IDX_E_INVALID_INDEX = @as(i32, -2147217137); pub const IDX_E_CORRUPT_INDEX = @as(i32, -2147217136); pub const IDX_E_PROPSTORE_INIT_FAILED = @as(i32, -2147217134); pub const IDX_E_PROP_STATE_CORRUPT = @as(i32, -2147217133); pub const IDX_S_NO_BUILD_IN_PROGRESS = @as(i32, 266516); pub const IDX_S_SEARCH_SERVER_ALREADY_EXISTS = @as(i32, 266517); pub const IDX_S_SEARCH_SERVER_DOES_NOT_EXIST = @as(i32, 266518); pub const IDX_E_NOT_LOADED = @as(i32, -2147217129); pub const IDX_E_PROP_MAJOR_VERSION_MISMATCH = @as(i32, -2147217128); pub const IDX_E_PROP_MINOR_VERSION_MISMATCH = @as(i32, -2147217127); pub const IDX_E_DSS_NOT_CONNECTED = @as(i32, -2147217126); pub const IDX_E_DOCUMENT_ABORTED = @as(i32, -2147217125); pub const IDX_E_CATALOG_DISMOUNTED = @as(i32, -2147217124); pub const IDX_S_DSS_NOT_AVAILABLE = @as(i32, 266525); pub const IDX_E_USE_DEFAULT_CONTENTCLASS = @as(i32, -2147217121); pub const IDX_E_USE_APPGLOBAL_PROPTABLE = @as(i32, -2147217120); pub const JPS_E_JET_ERR = @as(i32, -2147217025); pub const JPS_S_DUPLICATE_DOC_DETECTED = @as(i32, 266624); pub const JPS_E_CATALOG_DECSRIPTION_MISSING = @as(i32, -2147217023); pub const JPS_E_MISSING_INFORMATION = @as(i32, -2147217022); pub const JPS_E_INSUFFICIENT_VERSION_STORAGE = @as(i32, -2147217021); pub const JPS_E_INSUFFICIENT_DATABASE_SESSIONS = @as(i32, -2147217020); pub const JPS_E_INSUFFICIENT_DATABASE_RESOURCES = @as(i32, -2147217019); pub const JPS_E_SCHEMA_ERROR = @as(i32, -2147217018); pub const JPS_E_PROPAGATION_FILE = @as(i32, -2147217017); pub const JPS_E_PROPAGATION_CORRUPTION = @as(i32, -2147217016); pub const JPS_E_PROPAGATION_VERSION_MISMATCH = @as(i32, -2147217015); pub const JPS_E_SHARING_VIOLATION = @as(i32, -2147217014); pub const EXCI_E_NO_CONFIG = @as(i32, -2147216992); pub const EXCI_E_INVALID_SERVER_CONFIG = @as(i32, -2147216991); pub const EXCI_E_ACCESS_DENIED = @as(i32, -2147216990); pub const EXCI_E_INVALID_EXCHANGE_SERVER = @as(i32, -2147216989); pub const EXCI_E_BADCONFIG_OR_ACCESSDENIED = @as(i32, -2147216988); pub const EXCI_E_WRONG_SERVER_OR_ACCT = @as(i32, -2147216987); pub const EXCI_E_NOT_ADMIN_OR_WRONG_SITE = @as(i32, -2147216986); pub const EXCI_E_NO_MAPI = @as(i32, -2147216985); pub const EXCI_E_INVALID_ACCOUNT_INFO = @as(i32, -2147216984); pub const PRTH_E_INTERNAL_ERROR = @as(i32, -2147216892); pub const PRTH_S_MAX_GROWTH = @as(i32, 266761); pub const PRTH_E_WININET = @as(i32, -2147216886); pub const PRTH_E_RETRY = @as(i32, -2147216885); pub const PRTH_S_MAX_DOWNLOAD = @as(i32, 266764); pub const PRTH_E_MIME_EXCLUDED = @as(i32, -2147216883); pub const PRTH_E_CANT_TRANSFORM_EXTERNAL_ACL = @as(i32, -2147216882); pub const PRTH_E_CANT_TRANSFORM_DENIED_ACE = @as(i32, -2147216881); pub const PRTH_E_NO_PROPERTY = @as(i32, -2147216877); pub const PRTH_S_USE_ROSEBUD = @as(i32, 266772); pub const PRTH_E_DATABASE_OPEN_ERROR = @as(i32, -2147216875); pub const PRTH_E_OPLOCK_BROKEN = @as(i32, -2147216874); pub const PRTH_E_LOAD_FAILED = @as(i32, -2147216873); pub const PRTH_E_INIT_FAILED = @as(i32, -2147216872); pub const PRTH_E_VOLUME_MOUNT_POINT = @as(i32, -2147216871); pub const PRTH_E_TRUNCATED = @as(i32, -2147216870); pub const GTHR_E_LOCAL_GROUPS_EXPANSION_INTERNAL_ERROR = @as(i32, -2147216867); pub const PRTH_E_HTTPS_CERTIFICATE_ERROR = @as(i32, -2147216861); pub const PRTH_E_HTTPS_REQUIRE_CERTIFICATE = @as(i32, -2147216860); pub const PRTH_S_TRY_IMPERSONATING = @as(i32, 266789); pub const CMDLINE_E_UNEXPECTED = @as(i32, -2147216127); pub const CMDLINE_E_PAREN = @as(i32, -2147216126); pub const CMDLINE_E_PARAM_SIZE = @as(i32, -2147216125); pub const CMDLINE_E_NOT_INIT = @as(i32, -2147216124); pub const CMDLINE_E_ALREADY_INIT = @as(i32, -2147216123); pub const CMDLINE_E_NUM_PARAMS = @as(i32, -2147216122); pub const NLADMIN_E_DUPLICATE_CATALOG = @as(i32, -2147215103); pub const NLADMIN_S_NOT_ALL_BUILD_CATALOGS_INITIALIZED = @as(i32, 268546); pub const NLADMIN_E_FAILED_TO_GIVE_ACCOUNT_PRIVILEGE = @as(i32, -2147215101); pub const NLADMIN_E_BUILD_CATALOG_NOT_INITIALIZED = @as(i32, -2147215100); pub const SCRIPTPI_E_CHUNK_NOT_TEXT = @as(i32, -2147213312); pub const SCRIPTPI_E_PID_NOT_NAME = @as(i32, -2147213311); pub const SCRIPTPI_E_PID_NOT_NUMERIC = @as(i32, -2147213310); pub const SCRIPTPI_E_CHUNK_NOT_VALUE = @as(i32, -2147213309); pub const SCRIPTPI_E_CANNOT_ALTER_CHUNK = @as(i32, -2147213308); pub const SCRIPTPI_E_ALREADY_COMPLETED = @as(i32, -2147213307); pub const _MAPI_E_NO_SUPPORT = @as(i32, -2147221246); pub const _MAPI_E_BAD_CHARWIDTH = @as(i32, -2147221245); pub const _MAPI_E_STRING_TOO_LONG = @as(i32, -2147221243); pub const _MAPI_E_UNKNOWN_FLAGS = @as(i32, -2147221242); pub const _MAPI_E_INVALID_ENTRYID = @as(i32, -2147221241); pub const _MAPI_E_INVALID_OBJECT = @as(i32, -2147221240); pub const _MAPI_E_OBJECT_CHANGED = @as(i32, -2147221239); pub const _MAPI_E_OBJECT_DELETED = @as(i32, -2147221238); pub const _MAPI_E_BUSY = @as(i32, -2147221237); pub const _MAPI_E_NOT_ENOUGH_DISK = @as(i32, -2147221235); pub const _MAPI_E_NOT_ENOUGH_RESOURCES = @as(i32, -2147221234); pub const _MAPI_E_NOT_FOUND = @as(i32, -2147221233); pub const _MAPI_E_VERSION = @as(i32, -2147221232); pub const _MAPI_E_LOGON_FAILED = @as(i32, -2147221231); pub const _MAPI_E_SESSION_LIMIT = @as(i32, -2147221230); pub const _MAPI_E_USER_CANCEL = @as(i32, -2147221229); pub const _MAPI_E_UNABLE_TO_ABORT = @as(i32, -2147221228); pub const _MAPI_E_NETWORK_ERROR = @as(i32, -2147221227); pub const _MAPI_E_DISK_ERROR = @as(i32, -2147221226); pub const _MAPI_E_TOO_COMPLEX = @as(i32, -2147221225); pub const _MAPI_E_BAD_COLUMN = @as(i32, -2147221224); pub const _MAPI_E_EXTENDED_ERROR = @as(i32, -2147221223); pub const _MAPI_E_COMPUTED = @as(i32, -2147221222); pub const _MAPI_E_CORRUPT_DATA = @as(i32, -2147221221); pub const _MAPI_E_UNCONFIGURED = @as(i32, -2147221220); pub const _MAPI_E_FAILONEPROVIDER = @as(i32, -2147221219); pub const _MAPI_E_UNKNOWN_CPID = @as(i32, -2147221218); pub const _MAPI_E_UNKNOWN_LCID = @as(i32, -2147221217); pub const _MAPI_E_PASSWORD_CHANGE_REQUIRED = @as(i32, -2147221216); pub const _MAPI_E_PASSWORD_EXPIRED = @as(i32, -2147221215); pub const _MAPI_E_INVALID_WORKSTATION_ACCOUNT = @as(i32, -2147221214); pub const _MAPI_E_INVALID_ACCESS_TIME = @as(i32, -2147221213); pub const _MAPI_E_ACCOUNT_DISABLED = @as(i32, -2147221212); pub const _MAPI_E_END_OF_SESSION = @as(i32, -2147220992); pub const _MAPI_E_UNKNOWN_ENTRYID = @as(i32, -2147220991); pub const _MAPI_E_MISSING_REQUIRED_COLUMN = @as(i32, -2147220990); pub const _MAPI_W_NO_SERVICE = @as(i32, 262659); pub const MSG_TEST_MESSAGE = @as(i32, 1074008064); pub const FLTRDMN_E_UNEXPECTED = @as(i32, -2147212287); pub const FLTRDMN_E_QI_FILTER_FAILED = @as(i32, -2147212286); pub const FLTRDMN_E_FILTER_INIT_FAILED = @as(i32, -2147212284); pub const FLTRDMN_E_ENCRYPTED_DOCUMENT = @as(i32, -2147212283); pub const FLTRDMN_E_CANNOT_DECRYPT_PASSWORD = @as(i32, -2147212282); pub const OLEDB_BINDER_CUSTOM_ERROR = @as(i32, -2147212032); pub const NOTESPH_E_UNEXPECTED_STATE = @as(i32, -2147211775); pub const NOTESPH_S_IGNORE_ID = @as(i32, 271874); pub const NOTESPH_E_UNSUPPORTED_CONTENT_FIELD_TYPE = @as(i32, -2147211773); pub const NOTESPH_E_ITEM_NOT_FOUND = @as(i32, -2147211772); pub const NOTESPH_E_SERVER_CONFIG = @as(i32, -2147211771); pub const NOTESPH_E_ATTACHMENTS = @as(i32, -2147211770); pub const NOTESPH_E_NO_NTID = @as(i32, -2147211769); pub const NOTESPH_E_DB_ACCESS_DENIED = @as(i32, -2147211768); pub const NOTESPH_E_NOTESSETUP_ID_MAPPING_ERROR = @as(i32, -2147211767); pub const NOTESPH_S_LISTKNOWNFIELDS = @as(i32, 271888); pub const NOTESPH_E_FAIL = @as(i32, -2147211759); pub const STS_ABORTXMLPARSE = @as(i32, -2147211756); pub const STS_WS_ERROR = @as(i32, -2147211754); pub const SPS_WS_ERROR = @as(i32, -2147211753); pub const EXSTOREPH_E_UNEXPECTED = @as(i32, -2147211519); pub const CERT_E_NOT_FOUND_OR_NO_PERMISSSION = @as(i32, -2147211263); pub const SRCH_SCHEMA_CACHE_E_UNEXPECTED = @as(i32, -2147208447); pub const CONTENT_SOURCE_E_PROPERTY_MAPPING_READ = @as(i32, -2147208191); pub const CONTENT_SOURCE_E_UNEXPECTED_NULL_POINTER = @as(i32, -2147208190); pub const CONTENT_SOURCE_E_PROPERTY_MAPPING_BAD_VECTOR_SIZE = @as(i32, -2147208189); pub const CONTENT_SOURCE_E_CONTENT_CLASS_READ = @as(i32, -2147208188); pub const CONTENT_SOURCE_E_UNEXPECTED_EXCEPTION = @as(i32, -2147208187); pub const CONTENT_SOURCE_E_NULL_CONTENT_CLASS_BSTR = @as(i32, -2147208186); pub const CONTENT_SOURCE_E_CONTENT_SOURCE_COLUMN_TYPE = @as(i32, -2147208185); pub const CONTENT_SOURCE_E_OUT_OF_RANGE = @as(i32, -2147208184); pub const CONTENT_SOURCE_E_NULL_URI = @as(i32, -2147208183); pub const REXSPH_E_INVALID_CALL = @as(i32, -2147207936); pub const REXSPH_S_REDIRECTED = @as(i32, 275713); pub const REXSPH_E_REDIRECT_ON_SECURITY_UPDATE = @as(i32, -2147207934); pub const REXSPH_E_MULTIPLE_REDIRECT = @as(i32, -2147207933); pub const REXSPH_E_NO_PROPERTY_ON_ROW = @as(i32, -2147207932); pub const REXSPH_E_TYPE_MISMATCH_ON_READ = @as(i32, -2147207931); pub const REXSPH_E_UNEXPECTED_DATA_STATUS = @as(i32, -2147207930); pub const REXSPH_E_UNKNOWN_DATA_TYPE = @as(i32, -2147207929); pub const REXSPH_E_UNEXPECTED_FILTER_STATE = @as(i32, -2147207928); pub const REXSPH_E_DUPLICATE_PROPERTY = @as(i32, -2147207927); pub const PEOPLE_IMPORT_E_DBCONNFAIL = @as(i32, -2147205120); pub const PEOPLE_IMPORT_NODSDEFINED = @as(i32, -2147205119); pub const PEOPLE_IMPORT_E_FAILTOGETDSDEF = @as(i32, -2147205118); pub const PEOPLE_IMPORT_NOMAPPINGDEFINED = @as(i32, -2147205117); pub const PEOPLE_IMPORT_E_FAILTOGETDSMAPPING = @as(i32, -2147205116); pub const PEOPLE_IMPORT_E_DATATYPENOTSUPPORTED = @as(i32, -2147205115); pub const PEOPLE_IMPORT_E_NOCASTINGSUPPORTED = @as(i32, -2147205114); pub const PEOPLE_IMPORT_E_UPDATE_DIRSYNC_COOKIE = @as(i32, -2147205113); pub const PEOPLE_IMPORT_E_DIRSYNC_ZERO_COOKIE = @as(i32, -2147205112); pub const PEOPLE_IMPORT_E_LDAPPATH_TOOLONG = @as(i32, -2147205111); pub const PEOPLE_IMPORT_E_CANONICALURL_TOOLONG = @as(i32, -2147205110); pub const PEOPLE_IMPORT_E_USERNAME_NOTRESOLVED = @as(i32, -2147205109); pub const PEOPLE_IMPORT_E_DC_NOT_AVAILABLE = @as(i32, -2147205108); pub const PEOPLE_IMPORT_E_DOMAIN_DISCOVER_FAILED = @as(i32, -2147205107); pub const PEOPLE_IMPORT_E_FAILTOGETLCID = @as(i32, -2147205106); pub const PEOPLE_IMPORT_E_DOMAIN_REMOVED = @as(i32, -2147205105); pub const PEOPLE_IMPORT_E_ENUM_ACCESSDENIED = @as(i32, -2147205104); pub const PEOPLE_IMPORT_E_DIRSYNC_NOTREFRESHED = @as(i32, -2147205103); pub const FTE_E_SECRET_NOT_FOUND = @as(i32, -2147207678); pub const FTE_E_PIPE_NOT_CONNECTED = @as(i32, -2147207677); pub const FTE_E_ADMIN_BLOB_CORRUPT = @as(i32, -2147207676); pub const FTE_E_FILTER_SINGLE_THREADED = @as(i32, -2147207675); pub const FTE_E_ERROR_WRITING_REGISTRY = @as(i32, -2147207674); pub const FTE_E_PROJECT_SHUTDOWN = @as(i32, -2147207673); pub const FTE_E_PROJECT_NOT_INITALIZED = @as(i32, -2147207672); pub const FTE_E_PIPE_DATA_CORRUPTED = @as(i32, -2147207671); pub const FTE_E_URB_TOO_BIG = @as(i32, -2147207664); pub const FTE_E_INVALID_DOCID = @as(i32, -2147207663); pub const FTE_E_PAUSE_EXTERNAL = @as(i32, -2147207662); pub const FTE_E_REJECTED_DUE_TO_PROJECT_STATUS = @as(i32, -2147207661); pub const FTE_E_FD_DID_NOT_CONNECT = @as(i32, -2147207660); pub const FTE_E_PROGID_REQUIRED = @as(i32, -2147207658); pub const FTE_E_STATIC_THREAD_INVALID_ARGUMENTS = @as(i32, -2147207657); pub const FTE_E_CATALOG_ALREADY_EXISTS = @as(i32, -2147207656); pub const FTE_S_RESOURCES_STARTING_TO_GET_LOW = @as(i32, 275993); pub const FTE_E_PATH_TOO_LONG = @as(i32, -2147207654); pub const FTE_INVALID_ADMIN_CLIENT = @as(i32, -2147207653); pub const FTE_E_COM_SIGNATURE_VALIDATION = @as(i32, -2147207652); pub const FTE_E_AFFINITY_MASK = @as(i32, -2147207651); pub const FTE_E_FD_OWNERSHIP_OBSOLETE = @as(i32, -2147207650); pub const FTE_E_EXCEEDED_MAX_PLUGINS = @as(i32, -2147207647); pub const FTE_S_BEYOND_QUOTA = @as(i32, 276002); pub const FTE_E_DUPLICATE_OBJECT = @as(i32, -2147207644); pub const FTE_S_REDUNDANT = @as(i32, 276005); pub const FTE_E_REDUNDANT_TRAN_FAILURE = @as(i32, -2147207642); pub const FTE_E_DEPENDENT_TRAN_FAILED_TO_PERSIST = @as(i32, -2147207641); pub const FTE_E_FD_SHUTDOWN = @as(i32, -2147207640); pub const FTE_E_CATALOG_DOES_NOT_EXIST = @as(i32, -2147207639); pub const FTE_E_NO_PLUGINS = @as(i32, -2147207638); pub const FTE_S_STATUS_CHANGE_REQUEST = @as(i32, 276011); pub const FTE_E_BATCH_ABORTED = @as(i32, -2147207636); pub const FTE_E_ANOTHER_STATUS_CHANGE_IS_ALREADY_ACTIVE = @as(i32, -2147207635); pub const FTE_S_RESUME = @as(i32, 276014); pub const FTE_E_NOT_PROCESSED_DUE_TO_PREVIOUS_ERRORS = @as(i32, -2147207633); pub const FTE_E_FD_TIMEOUT = @as(i32, -2147207632); pub const FTE_E_RESOURCE_SHUTDOWN = @as(i32, -2147207631); pub const FTE_E_INVALID_PROPERTY = @as(i32, -2147207630); pub const FTE_E_NO_MORE_PROPERTIES = @as(i32, -2147207629); pub const FTE_E_UNKNOWN_PLUGIN = @as(i32, -2147207628); pub const FTE_E_LIBRARY_NOT_LOADED = @as(i32, -2147207627); pub const FTE_E_PERFMON_FULL = @as(i32, -2147207626); pub const FTE_E_FAILED_TO_CREATE_ACCESSOR = @as(i32, -2147207625); pub const FTE_E_INVALID_TYPE = @as(i32, -2147207624); pub const FTE_E_OUT_OF_RANGE = @as(i32, -2147207623); pub const FTE_E_CORRUPT_PROPERTY_STORE = @as(i32, -2147207622); pub const FTE_E_PROPERTY_STORE_WORKID_NOTVALID = @as(i32, -2147207621); pub const FTE_S_PROPERTY_STORE_END_OF_ENUMERATION = @as(i32, 276028); pub const FTE_E_CORRUPT_GATHERER_HASH_MAP = @as(i32, -2147207619); pub const FTE_E_KEY_NOT_CACHED = @as(i32, -2147207618); pub const FTE_E_UPGRADE_INTERFACE_ALREADY_SHUTDOWN = @as(i32, -2147207617); pub const FTE_E_UPGRADE_INTERFACE_ALREADY_INSTANTIATED = @as(i32, -2147207616); pub const FTE_E_STACK_CORRUPTED = @as(i32, -2147207615); pub const FTE_E_INVALID_PROG_ID = @as(i32, -2147207614); pub const FTE_E_SERIAL_STREAM_CORRUPT = @as(i32, -2147207613); pub const FTE_E_READONLY_CATALOG = @as(i32, -2147207612); pub const FTE_E_PERF_NOT_LOADED = @as(i32, -2147207611); pub const FTE_S_READONLY_CATALOG = @as(i32, 276038); pub const FTE_E_RETRY_HUGE_DOC = @as(i32, -2147207608); pub const FTE_E_UNKNOWN_FD_TYPE = @as(i32, -2147207607); pub const FTE_E_DOC_TOO_HUGE = @as(i32, -2147207606); pub const FTE_E_DATATYPE_MISALIGNMENT = @as(i32, -2147207605); pub const FTE_E_ALREADY_INITIALIZED = @as(i32, -2147207604); pub const FTE_E_FD_USED_TOO_MUCH_MEMORY = @as(i32, -2147207603); pub const FTE_E_UNEXPECTED_EXIT = @as(i32, -2147207602); pub const FTE_E_HIGH_MEMORY_PRESSURE = @as(i32, -2147207601); pub const FTE_E_INVALID_ISOLATE_ERROR_BATCH = @as(i32, -2147207600); pub const FTE_E_RETRY_SINGLE_DOC_PER_BATCH = @as(i32, -2147207599); pub const FTE_E_INVALID_PROJECT_ID = @as(i32, -2147207598); pub const FTE_E_FAILURE_TO_POST_SETCOMPLETION_STATUS = @as(i32, -2147207597); pub const FTE_E_INVALID_CODEPAGE = @as(i32, -2147207596); pub const FTE_E_FD_IDLE = @as(i32, -2147207595); pub const FTE_E_FD_UNRESPONSIVE = @as(i32, -2147207594); pub const FTE_S_TRY_TO_FLUSH = @as(i32, 276055); pub const FTE_S_CATALOG_BLOB_MISMATCHED = @as(i32, 276056); pub const FTE_S_PROPERTY_RESET = @as(i32, 276057); pub const FTE_E_NO_PROPERTY_STORE = @as(i32, -1073465766); pub const FTE_E_CB_OUT_OF_MEMORY = @as(i32, -2147169536); pub const FTE_E_CB_CBID_OUT_OF_BOUND = @as(i32, -2147169535); pub const FTE_E_CB_NOT_ENOUGH_AVAIL_PHY_MEM = @as(i32, -2147169534); pub const FTE_E_CB_NOT_ENOUGH_OCC_BUFFER = @as(i32, -2147169533); pub const FTE_E_CORRUPT_WORDLIST = @as(i32, -2147169532); pub const FTE_E_FD_NO_IPERSIST_INTERFACE = @as(i32, -2147156736); pub const FTE_E_FD_IFILTER_INIT_FAILED = @as(i32, -2147156735); pub const FTE_E_FD_FAILED_TO_LOAD_IFILTER = @as(i32, -2147156734); pub const FTE_E_FD_DOC_TIMEOUT = @as(i32, -2147156733); pub const FTE_E_FD_UNEXPECTED_EXIT = @as(i32, -2147156732); pub const FTE_E_FD_DOC_UNEXPECTED_EXIT = @as(i32, -2147156731); pub const FTE_E_FD_NOISE_NO_TEXT_FILTER = @as(i32, -2147156730); pub const FTE_E_FD_NOISE_NO_IPERSISTSTREAM_ON_TEXT_FILTER = @as(i32, -2147156729); pub const FTE_E_FD_NOISE_TEXT_FILTER_LOAD_FAILED = @as(i32, -2147156728); pub const FTE_E_FD_NOISE_TEXT_FILTER_INIT_FAILED = @as(i32, -2147156727); pub const FTE_E_FD_OCCURRENCE_OVERFLOW = @as(i32, -2147156726); pub const FTE_E_FD_FILTER_CAUSED_SHARING_VIOLATION = @as(i32, -2147156725); pub const ERROR_SOURCE_PROTHNDLR = @as(u32, 4608); pub const QUERY_E_ALLNOISE_AND_NO_RELDOC = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2147215859)); pub const QUERY_E_NO_RELDOC = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2147215858)); pub const QUERY_E_ALLNOISE_AND_NO_RELPROP = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2147215857)); pub const QUERY_E_NO_RELPROP = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2147215856)); pub const QUERY_E_REPEATED_RELDOC = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2147215855)); pub const QUERY_E_RELDOC_SYNTAX_NOT_SUPPORTED = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2147215854)); pub const QUERY_E_INVALID_DOCUMENT_IDENTIFIER = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2147215853)); pub const QUERY_E_INCORRECT_VERSION = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2147215852)); pub const QUERY_E_INVALIDSCOPE_COALESCE = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2147215851)); pub const QUERY_E_INVALIDSORT_COALESCE = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2147215850)); pub const QUERY_E_INVALIDCOALESCE = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2147215849)); pub const QUERY_E_UPGRADEINPROGRESS = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2147215848)); pub const QUERY_E_AGGREGATE_NOT_SUPPORTED = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2147215847)); pub const QUERY_E_TOP_LEVEL_IN_GROUP = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2147215846)); pub const QUERY_E_DUPLICATE_RANGE_NAME = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2147215845)); pub const CI_S_NEW_AUXMETADATA = @import("../zig.zig").typedConst(HRESULT, @as(i32, 268329)); pub const CI_E_NO_AUXMETADATA = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2147215318)); pub const CI_S_CLIENT_REQUESTED_ABORT = @import("../zig.zig").typedConst(HRESULT, @as(i32, 268331)); pub const CI_S_RETRY_DOCUMENT = @import("../zig.zig").typedConst(HRESULT, @as(i32, 268332)); pub const CI_E_CORRUPT_FWIDX = @import("../zig.zig").typedConst(HRESULT, @as(i32, -1073473491)); pub const CI_E_DIACRITIC_SETTINGS_DIFFER = @import("../zig.zig").typedConst(HRESULT, @as(i32, -1073473490)); pub const CI_E_INVALID_CATALOG_LIST_VERSION = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2147215313)); pub const CI_S_CATALOG_RESET = @import("../zig.zig").typedConst(HRESULT, @as(i32, 268336)); pub const CI_E_NO_CATALOG_MANAGER = @import("../zig.zig").typedConst(HRESULT, @as(i32, -1073473487)); pub const CI_E_INCONSISTENT_TRANSACTION = @import("../zig.zig").typedConst(HRESULT, @as(i32, -1073473486)); pub const CI_E_PROTECTED_CATALOG_NOT_AVAILABLE = @import("../zig.zig").typedConst(HRESULT, @as(i32, -1073473485)); pub const CI_E_NO_PROTECTED_USER = @import("../zig.zig").typedConst(HRESULT, @as(i32, -1073473484)); pub const CI_E_MULTIPLE_PROTECTED_USERS_UNSUPPORTED = @import("../zig.zig").typedConst(HRESULT, @as(i32, -1073473483)); pub const CI_E_PROTECTED_CATALOG_SID_MISMATCH = @import("../zig.zig").typedConst(HRESULT, @as(i32, -1073473482)); pub const CI_E_PROTECTED_CATALOG_NON_INTERACTIVE_USER = @import("../zig.zig").typedConst(HRESULT, @as(i32, -1073473481)); pub const MSG_CI_MASTER_MERGE_STARTED = @import("../zig.zig").typedConst(HRESULT, @as(i32, 1073745926)); pub const MSG_CI_MASTER_MERGE_COMPLETED = @import("../zig.zig").typedConst(HRESULT, @as(i32, 1073745927)); pub const MSG_CI_MASTER_MERGE_ABORTED = @import("../zig.zig").typedConst(HRESULT, @as(i32, 1073745928)); pub const MSG_CI_MASTER_MERGE_CANT_START = @import("../zig.zig").typedConst(HRESULT, @as(i32, -1073737719)); pub const MSG_CI_MASTER_MERGE_CANT_RESTART = @import("../zig.zig").typedConst(HRESULT, @as(i32, -1073737718)); pub const MSG_CI_MASTER_MERGE_RESTARTED = @import("../zig.zig").typedConst(HRESULT, @as(i32, 1073745945)); pub const MSG_CI_CORRUPT_INDEX_COMPONENT = @import("../zig.zig").typedConst(HRESULT, @as(i32, 1073745962)); pub const MSG_CI_MASTER_MERGE_ABORTED_LOW_DISK = @import("../zig.zig").typedConst(HRESULT, @as(i32, 1073745987)); pub const MSG_CI_MASTER_MERGE_REASON_EXTERNAL = @import("../zig.zig").typedConst(HRESULT, @as(i32, 1073745988)); pub const MSG_CI_MASTER_MERGE_REASON_INDEX_LIMIT = @import("../zig.zig").typedConst(HRESULT, @as(i32, 1073745989)); pub const MSG_CI_MASTER_MERGE_REASON_EXPECTED_DOCS = @import("../zig.zig").typedConst(HRESULT, @as(i32, 1073745990)); pub const MSG_CI_MASTER_MERGE_REASON_NUMBER = @import("../zig.zig").typedConst(HRESULT, @as(i32, 1073745991)); pub const MSG_CI_CREATE_SEVER_ITEM_FAILED = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2147479480)); pub const NOT_N_PARSE_ERROR = @import("../zig.zig").typedConst(HRESULT, @as(i32, 526638)); pub const IDS_MON_DEFAULT_ERROR = @import("../zig.zig").typedConst(HRESULT, @as(i32, 264495)); pub const IDS_MON_ILLEGAL_PASSTHROUGH = @import("../zig.zig").typedConst(HRESULT, @as(i32, 264496)); pub const IDS_MON_PARSE_ERR_1_PARAM = @import("../zig.zig").typedConst(HRESULT, @as(i32, 264497)); pub const IDS_MON_PARSE_ERR_2_PARAM = @import("../zig.zig").typedConst(HRESULT, @as(i32, 264498)); pub const IDS_MON_SEMI_COLON = @import("../zig.zig").typedConst(HRESULT, @as(i32, 264499)); pub const IDS_MON_ORDINAL_OUT_OF_RANGE = @import("../zig.zig").typedConst(HRESULT, @as(i32, 264500)); pub const IDS_MON_VIEW_NOT_DEFINED = @import("../zig.zig").typedConst(HRESULT, @as(i32, 264501)); pub const IDS_MON_COLUMN_NOT_DEFINED = @import("../zig.zig").typedConst(HRESULT, @as(i32, 264502)); pub const IDS_MON_BUILTIN_VIEW = @import("../zig.zig").typedConst(HRESULT, @as(i32, 264503)); pub const IDS_MON_OUT_OF_MEMORY = @import("../zig.zig").typedConst(HRESULT, @as(i32, 264504)); pub const IDS_MON_SELECT_STAR = @import("../zig.zig").typedConst(HRESULT, @as(i32, 264505)); pub const IDS_MON_OR_NOT = @import("../zig.zig").typedConst(HRESULT, @as(i32, 264506)); pub const IDS_MON_CANNOT_CONVERT = @import("../zig.zig").typedConst(HRESULT, @as(i32, 264507)); pub const IDS_MON_OUT_OF_RANGE = @import("../zig.zig").typedConst(HRESULT, @as(i32, 264508)); pub const IDS_MON_RELATIVE_INTERVAL = @import("../zig.zig").typedConst(HRESULT, @as(i32, 264509)); pub const IDS_MON_NOT_COLUMN_OF_VIEW = @import("../zig.zig").typedConst(HRESULT, @as(i32, 264510)); pub const IDS_MON_BUILTIN_PROPERTY = @import("../zig.zig").typedConst(HRESULT, @as(i32, 264511)); pub const IDS_MON_WEIGHT_OUT_OF_RANGE = @import("../zig.zig").typedConst(HRESULT, @as(i32, 264512)); pub const IDS_MON_MATCH_STRING = @import("../zig.zig").typedConst(HRESULT, @as(i32, 264513)); pub const IDS_MON_PROPERTY_NAME_IN_VIEW = @import("../zig.zig").typedConst(HRESULT, @as(i32, 264514)); pub const IDS_MON_VIEW_ALREADY_DEFINED = @import("../zig.zig").typedConst(HRESULT, @as(i32, 264515)); pub const IDS_MON_INVALID_CATALOG = @import("../zig.zig").typedConst(HRESULT, @as(i32, 264516)); pub const IDS_MON_INVALIDSELECT_COALESCE = @import("../zig.zig").typedConst(HRESULT, @as(i32, 264517)); pub const IDS_MON_CANNOT_CAST = @import("../zig.zig").typedConst(HRESULT, @as(i32, 264518)); pub const IDS_MON_DATE_OUT_OF_RANGE = @import("../zig.zig").typedConst(HRESULT, @as(i32, 264519)); pub const IDS_MON_INVALID_IN_GROUP_CLAUSE = @import("../zig.zig").typedConst(HRESULT, @as(i32, 264520)); pub const DBPROPSET_MSDAORA_ROWSET = Guid.initString("e8cc4cbd-fdff-11d0-b865-00a0c9081c1d"); pub const DBPROPSET_MSDAORA8_ROWSET = Guid.initString("7f06a375-dd6a-43db-b4e0-1fc121e5e62b"); pub const CLSID_MSDASQL = Guid.initString("c8b522cb-5cf3-11ce-ade5-00aa0044773d"); pub const CLSID_MSDASQL_ENUMERATOR = Guid.initString("c8b522cd-5cf3-11ce-ade5-00aa0044773d"); pub const DBPROPSET_PROVIDERDATASOURCEINFO = Guid.initString("497c60e0-7123-11cf-b171-00aa0057599e"); pub const DBPROPSET_PROVIDERROWSET = Guid.initString("497c60e1-7123-11cf-b171-00aa0057599e"); pub const DBPROPSET_PROVIDERDBINIT = Guid.initString("497c60e2-7123-11cf-b171-00aa0057599e"); pub const DBPROPSET_PROVIDERSTMTATTR = Guid.initString("497c60e3-7123-11cf-b171-00aa0057599e"); pub const DBPROPSET_PROVIDERCONNATTR = Guid.initString("497c60e4-7123-11cf-b171-00aa0057599e"); pub const CLSID_DataShapeProvider = Guid.initString("3449a1c8-c56c-11d0-ad72-00c04fc29863"); pub const DBPROPSET_MSDSDBINIT = Guid.initString("55cb91a8-5c7a-11d1-adad-00c04fc29863"); pub const DBPROPSET_MSDSSESSION = Guid.initString("edf17536-afbf-11d1-8847-0000f879f98c"); pub const CLSID_MSPersist = Guid.initString("7c07e0d0-4418-11d2-9212-00c04fbbbfb3"); pub const DBPROPSET_PERSIST = Guid.initString("4d7839a0-5b8e-11d1-a6b3-00a0c9138c66"); pub const PROGID_MSPersist_W = "MSPersist"; pub const PROGID_MSPersist_Version_W = "MSPersist.1"; pub const CLSID_SQLOLEDB = Guid.initString("0c7ff16c-38e3-11d0-97ab-00c04fc2ad98"); pub const CLSID_SQLOLEDB_ERROR = Guid.initString("c0932c62-38e5-11d0-97ab-00c04fc2ad98"); pub const CLSID_SQLOLEDB_ENUMERATOR = Guid.initString("dfa22b8e-e68d-11d0-97e4-00c04fc2ad98"); pub const DBGUID_MSSQLXML = Guid.initString("5d531cb2-e6ed-11d2-b252-00c04f681b71"); pub const DBGUID_XPATH = Guid.initString("ec2a4293-e898-11d2-b1b7-00c04f680c56"); pub const DBSCHEMA_LINKEDSERVERS = Guid.initString("9093caf4-2eac-11d1-9809-00c04fc2ad98"); pub const DBPROPSET_SQLSERVERDATASOURCE = Guid.initString("28efaee4-2d2c-11d1-9807-00c04fc2ad98"); pub const DBPROPSET_SQLSERVERDATASOURCEINFO = Guid.initString("df10cb94-35f6-11d2-9c54-00c04f7971d3"); pub const DBPROPSET_SQLSERVERDBINIT = Guid.initString("5cf4ca10-ef21-11d0-97e7-00c04fc2ad98"); pub const DBPROPSET_SQLSERVERROWSET = Guid.initString("5cf4ca11-ef21-11d0-97e7-00c04fc2ad98"); pub const DBPROPSET_SQLSERVERSESSION = Guid.initString("28efaee5-2d2c-11d1-9807-00c04fc2ad98"); pub const DBPROPSET_SQLSERVERCOLUMN = Guid.initString("3b63fb5e-3fbb-11d3-9f29-00c04f8ee9dc"); pub const DBPROPSET_SQLSERVERSTREAM = Guid.initString("9f79c073-8a6d-4bca-a8a8-c9b79a9b962d"); //-------------------------------------------------------------------------------- // Section: Types (437) //-------------------------------------------------------------------------------- pub const IRowsetExactScroll = extern struct { placeholder: usize, // TODO: why is this type empty? }; const IID_IWordSink_Value = Guid.initString("cc907054-c058-101a-b554-08002b33b0e6"); pub const IID_IWordSink = &IID_IWordSink_Value; pub const IWordSink = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, PutWord: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IWordSink, cwc: u32, pwcInBuf: ?[*:0]const u16, cwcSrcLen: u32, cwcSrcPos: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IWordSink, cwc: u32, pwcInBuf: ?[*:0]const u16, cwcSrcLen: u32, cwcSrcPos: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, PutAltWord: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IWordSink, cwc: u32, pwcInBuf: ?[*:0]const u16, cwcSrcLen: u32, cwcSrcPos: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IWordSink, cwc: u32, pwcInBuf: ?[*:0]const u16, cwcSrcLen: u32, cwcSrcPos: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, StartAltPhrase: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IWordSink, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IWordSink, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, EndAltPhrase: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IWordSink, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IWordSink, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, PutBreak: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IWordSink, breakType: WORDREP_BREAK_TYPE, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IWordSink, breakType: WORDREP_BREAK_TYPE, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWordSink_PutWord(self: *const T, cwc: u32, pwcInBuf: ?[*:0]const u16, cwcSrcLen: u32, cwcSrcPos: u32) HRESULT { return @as(*const IWordSink.VTable, @ptrCast(self.vtable)).PutWord(@as(*const IWordSink, @ptrCast(self)), cwc, pwcInBuf, cwcSrcLen, cwcSrcPos); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWordSink_PutAltWord(self: *const T, cwc: u32, pwcInBuf: ?[*:0]const u16, cwcSrcLen: u32, cwcSrcPos: u32) HRESULT { return @as(*const IWordSink.VTable, @ptrCast(self.vtable)).PutAltWord(@as(*const IWordSink, @ptrCast(self)), cwc, pwcInBuf, cwcSrcLen, cwcSrcPos); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWordSink_StartAltPhrase(self: *const T) HRESULT { return @as(*const IWordSink.VTable, @ptrCast(self.vtable)).StartAltPhrase(@as(*const IWordSink, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWordSink_EndAltPhrase(self: *const T) HRESULT { return @as(*const IWordSink.VTable, @ptrCast(self.vtable)).EndAltPhrase(@as(*const IWordSink, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWordSink_PutBreak(self: *const T, breakType: WORDREP_BREAK_TYPE) HRESULT { return @as(*const IWordSink.VTable, @ptrCast(self.vtable)).PutBreak(@as(*const IWordSink, @ptrCast(self)), breakType); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this function pointer causes dependency loop problems, so it's stubbed out pub const PFNFILLTEXTBUFFER = switch (@import("builtin").zig_backend) { .stage1 => fn () callconv(@import("std").os.windows.WINAPI) void, else => *const fn () callconv(@import("std").os.windows.WINAPI) void, }; pub const TEXT_SOURCE = extern struct { pfnFillTextBuffer: ?PFNFILLTEXTBUFFER, awcBuffer: ?[*:0]const u16, iEnd: u32, iCur: u32, }; // TODO: this type is limited to platform 'windows5.0' const IID_IWordBreaker_Value = Guid.initString("d53552c8-77e3-101a-b552-08002b33b0e6"); pub const IID_IWordBreaker = &IID_IWordBreaker_Value; pub const IWordBreaker = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, Init: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IWordBreaker, fQuery: BOOL, ulMaxTokenSize: u32, pfLicense: ?*BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IWordBreaker, fQuery: BOOL, ulMaxTokenSize: u32, pfLicense: ?*BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, BreakText: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IWordBreaker, pTextSource: ?*TEXT_SOURCE, pWordSink: ?*IWordSink, pPhraseSink: ?*IPhraseSink, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IWordBreaker, pTextSource: ?*TEXT_SOURCE, pWordSink: ?*IWordSink, pPhraseSink: ?*IPhraseSink, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, ComposePhrase: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IWordBreaker, pwcNoun: ?[*:0]const u16, cwcNoun: u32, pwcModifier: ?[*:0]const u16, cwcModifier: u32, ulAttachmentType: u32, pwcPhrase: ?PWSTR, pcwcPhrase: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IWordBreaker, pwcNoun: ?[*:0]const u16, cwcNoun: u32, pwcModifier: ?[*:0]const u16, cwcModifier: u32, ulAttachmentType: u32, pwcPhrase: ?PWSTR, pcwcPhrase: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetLicenseToUse: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IWordBreaker, ppwcsLicense: ?*const ?*u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IWordBreaker, ppwcsLicense: ?*const ?*u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWordBreaker_Init(self: *const T, fQuery: BOOL, ulMaxTokenSize: u32, pfLicense: ?*BOOL) HRESULT { return @as(*const IWordBreaker.VTable, @ptrCast(self.vtable)).Init(@as(*const IWordBreaker, @ptrCast(self)), fQuery, ulMaxTokenSize, pfLicense); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWordBreaker_BreakText(self: *const T, pTextSource: ?*TEXT_SOURCE, pWordSink: ?*IWordSink, pPhraseSink: ?*IPhraseSink) HRESULT { return @as(*const IWordBreaker.VTable, @ptrCast(self.vtable)).BreakText(@as(*const IWordBreaker, @ptrCast(self)), pTextSource, pWordSink, pPhraseSink); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWordBreaker_ComposePhrase(self: *const T, pwcNoun: ?[*:0]const u16, cwcNoun: u32, pwcModifier: ?[*:0]const u16, cwcModifier: u32, ulAttachmentType: u32, pwcPhrase: ?PWSTR, pcwcPhrase: ?*u32) HRESULT { return @as(*const IWordBreaker.VTable, @ptrCast(self.vtable)).ComposePhrase(@as(*const IWordBreaker, @ptrCast(self)), pwcNoun, cwcNoun, pwcModifier, cwcModifier, ulAttachmentType, pwcPhrase, pcwcPhrase); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWordBreaker_GetLicenseToUse(self: *const T, ppwcsLicense: ?*const ?*u16) HRESULT { return @as(*const IWordBreaker.VTable, @ptrCast(self.vtable)).GetLicenseToUse(@as(*const IWordBreaker, @ptrCast(self)), ppwcsLicense); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows5.0' const IID_IWordFormSink_Value = Guid.initString("fe77c330-7f42-11ce-be57-00aa0051fe20"); pub const IID_IWordFormSink = &IID_IWordFormSink_Value; pub const IWordFormSink = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, PutAltWord: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IWordFormSink, pwcInBuf: ?[*:0]const u16, cwc: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IWordFormSink, pwcInBuf: ?[*:0]const u16, cwc: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, PutWord: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IWordFormSink, pwcInBuf: ?[*:0]const u16, cwc: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IWordFormSink, pwcInBuf: ?[*:0]const u16, cwc: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWordFormSink_PutAltWord(self: *const T, pwcInBuf: ?[*:0]const u16, cwc: u32) HRESULT { return @as(*const IWordFormSink.VTable, @ptrCast(self.vtable)).PutAltWord(@as(*const IWordFormSink, @ptrCast(self)), pwcInBuf, cwc); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWordFormSink_PutWord(self: *const T, pwcInBuf: ?[*:0]const u16, cwc: u32) HRESULT { return @as(*const IWordFormSink.VTable, @ptrCast(self.vtable)).PutWord(@as(*const IWordFormSink, @ptrCast(self)), pwcInBuf, cwc); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows5.0' const IID_IStemmer_Value = Guid.initString("efbaf140-7f42-11ce-be57-00aa0051fe20"); pub const IID_IStemmer = &IID_IStemmer_Value; pub const IStemmer = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, Init: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IStemmer, ulMaxTokenSize: u32, pfLicense: ?*BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IStemmer, ulMaxTokenSize: u32, pfLicense: ?*BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GenerateWordForms: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IStemmer, pwcInBuf: ?[*:0]const u16, cwc: u32, pStemSink: ?*IWordFormSink, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IStemmer, pwcInBuf: ?[*:0]const u16, cwc: u32, pStemSink: ?*IWordFormSink, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetLicenseToUse: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IStemmer, ppwcsLicense: ?*const ?*u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IStemmer, ppwcsLicense: ?*const ?*u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IStemmer_Init(self: *const T, ulMaxTokenSize: u32, pfLicense: ?*BOOL) HRESULT { return @as(*const IStemmer.VTable, @ptrCast(self.vtable)).Init(@as(*const IStemmer, @ptrCast(self)), ulMaxTokenSize, pfLicense); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IStemmer_GenerateWordForms(self: *const T, pwcInBuf: ?[*:0]const u16, cwc: u32, pStemSink: ?*IWordFormSink) HRESULT { return @as(*const IStemmer.VTable, @ptrCast(self.vtable)).GenerateWordForms(@as(*const IStemmer, @ptrCast(self)), pwcInBuf, cwc, pStemSink); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IStemmer_GetLicenseToUse(self: *const T, ppwcsLicense: ?*const ?*u16) HRESULT { return @as(*const IStemmer.VTable, @ptrCast(self.vtable)).GetLicenseToUse(@as(*const IStemmer, @ptrCast(self)), ppwcsLicense); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_ISimpleCommandCreator_Value = Guid.initString("5e341ab7-02d0-11d1-900c-00a0c9063796"); pub const IID_ISimpleCommandCreator = &IID_ISimpleCommandCreator_Value; pub const ISimpleCommandCreator = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, CreateICommand: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ISimpleCommandCreator, ppIUnknown: ?*?*IUnknown, pOuterUnk: ?*IUnknown, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ISimpleCommandCreator, ppIUnknown: ?*?*IUnknown, pOuterUnk: ?*IUnknown, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, VerifyCatalog: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ISimpleCommandCreator, pwszMachine: ?[*:0]const u16, pwszCatalogName: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ISimpleCommandCreator, pwszMachine: ?[*:0]const u16, pwszCatalogName: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetDefaultCatalog: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ISimpleCommandCreator, pwszCatalogName: ?PWSTR, cwcIn: u32, pcwcOut: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ISimpleCommandCreator, pwszCatalogName: ?PWSTR, cwcIn: u32, pcwcOut: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISimpleCommandCreator_CreateICommand(self: *const T, ppIUnknown: ?*?*IUnknown, pOuterUnk: ?*IUnknown) HRESULT { return @as(*const ISimpleCommandCreator.VTable, @ptrCast(self.vtable)).CreateICommand(@as(*const ISimpleCommandCreator, @ptrCast(self)), ppIUnknown, pOuterUnk); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISimpleCommandCreator_VerifyCatalog(self: *const T, pwszMachine: ?[*:0]const u16, pwszCatalogName: ?[*:0]const u16) HRESULT { return @as(*const ISimpleCommandCreator.VTable, @ptrCast(self.vtable)).VerifyCatalog(@as(*const ISimpleCommandCreator, @ptrCast(self)), pwszMachine, pwszCatalogName); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISimpleCommandCreator_GetDefaultCatalog(self: *const T, pwszCatalogName: ?PWSTR, cwcIn: u32, pcwcOut: ?*u32) HRESULT { return @as(*const ISimpleCommandCreator.VTable, @ptrCast(self.vtable)).GetDefaultCatalog(@as(*const ISimpleCommandCreator, @ptrCast(self)), pwszCatalogName, cwcIn, pcwcOut); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IColumnMapper_Value = Guid.initString("0b63e37a-9ccc-11d0-bcdb-00805fccce04"); pub const IID_IColumnMapper = &IID_IColumnMapper_Value; pub const IColumnMapper = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, GetPropInfoFromName: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IColumnMapper, wcsPropName: ?[*:0]const u16, ppPropId: ?*?*DBID, pPropType: ?*u16, puiWidth: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IColumnMapper, wcsPropName: ?[*:0]const u16, ppPropId: ?*?*DBID, pPropType: ?*u16, puiWidth: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetPropInfoFromId: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IColumnMapper, pPropId: ?*const DBID, pwcsName: ?*?*u16, pPropType: ?*u16, puiWidth: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IColumnMapper, pPropId: ?*const DBID, pwcsName: ?*?*u16, pPropType: ?*u16, puiWidth: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, EnumPropInfo: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IColumnMapper, iEntry: u32, pwcsName: ?*const ?*u16, ppPropId: ?*?*DBID, pPropType: ?*u16, puiWidth: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IColumnMapper, iEntry: u32, pwcsName: ?*const ?*u16, ppPropId: ?*?*DBID, pPropType: ?*u16, puiWidth: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, IsMapUpToDate: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IColumnMapper, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IColumnMapper, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IColumnMapper_GetPropInfoFromName(self: *const T, wcsPropName: ?[*:0]const u16, ppPropId: ?*?*DBID, pPropType: ?*u16, puiWidth: ?*u32) HRESULT { return @as(*const IColumnMapper.VTable, @ptrCast(self.vtable)).GetPropInfoFromName(@as(*const IColumnMapper, @ptrCast(self)), wcsPropName, ppPropId, pPropType, puiWidth); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IColumnMapper_GetPropInfoFromId(self: *const T, pPropId: ?*const DBID, pwcsName: ?*?*u16, pPropType: ?*u16, puiWidth: ?*u32) HRESULT { return @as(*const IColumnMapper.VTable, @ptrCast(self.vtable)).GetPropInfoFromId(@as(*const IColumnMapper, @ptrCast(self)), pPropId, pwcsName, pPropType, puiWidth); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IColumnMapper_EnumPropInfo(self: *const T, iEntry: u32, pwcsName: ?*const ?*u16, ppPropId: ?*?*DBID, pPropType: ?*u16, puiWidth: ?*u32) HRESULT { return @as(*const IColumnMapper.VTable, @ptrCast(self.vtable)).EnumPropInfo(@as(*const IColumnMapper, @ptrCast(self)), iEntry, pwcsName, ppPropId, pPropType, puiWidth); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IColumnMapper_IsMapUpToDate(self: *const T) HRESULT { return @as(*const IColumnMapper.VTable, @ptrCast(self.vtable)).IsMapUpToDate(@as(*const IColumnMapper, @ptrCast(self))); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IColumnMapperCreator_Value = Guid.initString("0b63e37b-9ccc-11d0-bcdb-00805fccce04"); pub const IID_IColumnMapperCreator = &IID_IColumnMapperCreator_Value; pub const IColumnMapperCreator = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, GetColumnMapper: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IColumnMapperCreator, wcsMachineName: ?[*:0]const u16, wcsCatalogName: ?[*:0]const u16, ppColumnMapper: ?*?*IColumnMapper, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IColumnMapperCreator, wcsMachineName: ?[*:0]const u16, wcsCatalogName: ?[*:0]const u16, ppColumnMapper: ?*?*IColumnMapper, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IColumnMapperCreator_GetColumnMapper(self: *const T, wcsMachineName: ?[*:0]const u16, wcsCatalogName: ?[*:0]const u16, ppColumnMapper: ?*?*IColumnMapper) HRESULT { return @as(*const IColumnMapperCreator.VTable, @ptrCast(self.vtable)).GetColumnMapper(@as(*const IColumnMapperCreator, @ptrCast(self)), wcsMachineName, wcsCatalogName, ppColumnMapper); } }; } pub usingnamespace MethodMixin(@This()); }; const CLSID_CSearchManager_Value = Guid.initString("7d096c5f-ac08-4f1f-beb7-5c22c517ce39"); pub const CLSID_CSearchManager = &CLSID_CSearchManager_Value; const CLSID_CSearchRoot_Value = Guid.initString("30766bd2-ea1c-4f28-bf27-0b44e2f68db7"); pub const CLSID_CSearchRoot = &CLSID_CSearchRoot_Value; const CLSID_CSearchScopeRule_Value = Guid.initString("e63de750-3bd7-4be5-9c84-6b4281988c44"); pub const CLSID_CSearchScopeRule = &CLSID_CSearchScopeRule_Value; const CLSID_FilterRegistration_Value = Guid.initString("9e175b8d-f52a-11d8-b9a5-505054503030"); pub const CLSID_FilterRegistration = &CLSID_FilterRegistration_Value; pub const FILTERED_DATA_SOURCES = extern struct { pwcsExtension: ?[*:0]const u16, pwcsMime: ?[*:0]const u16, pClsid: ?*const Guid, pwcsOverride: ?[*:0]const u16, }; // TODO: this type is limited to platform 'windows6.1' const IID_ILoadFilter_Value = Guid.initString("c7310722-ac80-11d1-8df3-00c04fb6ef4f"); pub const IID_ILoadFilter = &IID_ILoadFilter_Value; pub const ILoadFilter = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, LoadIFilter: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ILoadFilter, pwcsPath: ?[*:0]const u16, pFilteredSources: ?*FILTERED_DATA_SOURCES, pUnkOuter: ?*IUnknown, fUseDefault: BOOL, pFilterClsid: ?*Guid, SearchDecSize: ?*i32, pwcsSearchDesc: ?*?*u16, ppIFilt: ?*?*IFilter, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ILoadFilter, pwcsPath: ?[*:0]const u16, pFilteredSources: ?*FILTERED_DATA_SOURCES, pUnkOuter: ?*IUnknown, fUseDefault: BOOL, pFilterClsid: ?*Guid, SearchDecSize: ?*i32, pwcsSearchDesc: ?*?*u16, ppIFilt: ?*?*IFilter, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, LoadIFilterFromStorage: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ILoadFilter, pStg: ?*IStorage, pUnkOuter: ?*IUnknown, pwcsOverride: ?[*:0]const u16, fUseDefault: BOOL, pFilterClsid: ?*Guid, SearchDecSize: ?*i32, pwcsSearchDesc: ?*?*u16, ppIFilt: ?*?*IFilter, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ILoadFilter, pStg: ?*IStorage, pUnkOuter: ?*IUnknown, pwcsOverride: ?[*:0]const u16, fUseDefault: BOOL, pFilterClsid: ?*Guid, SearchDecSize: ?*i32, pwcsSearchDesc: ?*?*u16, ppIFilt: ?*?*IFilter, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, LoadIFilterFromStream: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ILoadFilter, pStm: ?*IStream, pFilteredSources: ?*FILTERED_DATA_SOURCES, pUnkOuter: ?*IUnknown, fUseDefault: BOOL, pFilterClsid: ?*Guid, SearchDecSize: ?*i32, pwcsSearchDesc: ?*?*u16, ppIFilt: ?*?*IFilter, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ILoadFilter, pStm: ?*IStream, pFilteredSources: ?*FILTERED_DATA_SOURCES, pUnkOuter: ?*IUnknown, fUseDefault: BOOL, pFilterClsid: ?*Guid, SearchDecSize: ?*i32, pwcsSearchDesc: ?*?*u16, ppIFilt: ?*?*IFilter, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ILoadFilter_LoadIFilter(self: *const T, pwcsPath: ?[*:0]const u16, pFilteredSources: ?*FILTERED_DATA_SOURCES, pUnkOuter: ?*IUnknown, fUseDefault: BOOL, pFilterClsid: ?*Guid, SearchDecSize: ?*i32, pwcsSearchDesc: ?*?*u16, ppIFilt: ?*?*IFilter) HRESULT { return @as(*const ILoadFilter.VTable, @ptrCast(self.vtable)).LoadIFilter(@as(*const ILoadFilter, @ptrCast(self)), pwcsPath, pFilteredSources, pUnkOuter, fUseDefault, pFilterClsid, SearchDecSize, pwcsSearchDesc, ppIFilt); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ILoadFilter_LoadIFilterFromStorage(self: *const T, pStg: ?*IStorage, pUnkOuter: ?*IUnknown, pwcsOverride: ?[*:0]const u16, fUseDefault: BOOL, pFilterClsid: ?*Guid, SearchDecSize: ?*i32, pwcsSearchDesc: ?*?*u16, ppIFilt: ?*?*IFilter) HRESULT { return @as(*const ILoadFilter.VTable, @ptrCast(self.vtable)).LoadIFilterFromStorage(@as(*const ILoadFilter, @ptrCast(self)), pStg, pUnkOuter, pwcsOverride, fUseDefault, pFilterClsid, SearchDecSize, pwcsSearchDesc, ppIFilt); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ILoadFilter_LoadIFilterFromStream(self: *const T, pStm: ?*IStream, pFilteredSources: ?*FILTERED_DATA_SOURCES, pUnkOuter: ?*IUnknown, fUseDefault: BOOL, pFilterClsid: ?*Guid, SearchDecSize: ?*i32, pwcsSearchDesc: ?*?*u16, ppIFilt: ?*?*IFilter) HRESULT { return @as(*const ILoadFilter.VTable, @ptrCast(self.vtable)).LoadIFilterFromStream(@as(*const ILoadFilter, @ptrCast(self)), pStm, pFilteredSources, pUnkOuter, fUseDefault, pFilterClsid, SearchDecSize, pwcsSearchDesc, ppIFilt); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_ILoadFilterWithPrivateComActivation_Value = Guid.initString("40bdbd34-780b-48d3-9bb6-12ebd4ad2e75"); pub const IID_ILoadFilterWithPrivateComActivation = &IID_ILoadFilterWithPrivateComActivation_Value; pub const ILoadFilterWithPrivateComActivation = extern struct { pub const VTable = extern struct { base: ILoadFilter.VTable, LoadIFilterWithPrivateComActivation: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ILoadFilterWithPrivateComActivation, filteredSources: ?*FILTERED_DATA_SOURCES, useDefault: BOOL, filterClsid: ?*Guid, isFilterPrivateComActivated: ?*BOOL, filterObj: ?*?*IFilter, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ILoadFilterWithPrivateComActivation, filteredSources: ?*FILTERED_DATA_SOURCES, useDefault: BOOL, filterClsid: ?*Guid, isFilterPrivateComActivated: ?*BOOL, filterObj: ?*?*IFilter, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace ILoadFilter.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ILoadFilterWithPrivateComActivation_LoadIFilterWithPrivateComActivation(self: *const T, filteredSources: ?*FILTERED_DATA_SOURCES, useDefault: BOOL, filterClsid: ?*Guid, isFilterPrivateComActivated: ?*BOOL, filterObj: ?*?*IFilter) HRESULT { return @as(*const ILoadFilterWithPrivateComActivation.VTable, @ptrCast(self.vtable)).LoadIFilterWithPrivateComActivation(@as(*const ILoadFilterWithPrivateComActivation, @ptrCast(self)), filteredSources, useDefault, filterClsid, isFilterPrivateComActivated, filterObj); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows5.1.2600' const IID_IRichChunk_Value = Guid.initString("4fdef69c-dbc9-454e-9910-b34f3c64b510"); pub const IID_IRichChunk = &IID_IRichChunk_Value; pub const IRichChunk = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, GetData: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IRichChunk, pFirstPos: ?*u32, pLength: ?*u32, ppsz: ?*?PWSTR, pValue: ?*PROPVARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IRichChunk, pFirstPos: ?*u32, pLength: ?*u32, ppsz: ?*?PWSTR, pValue: ?*PROPVARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRichChunk_GetData(self: *const T, pFirstPos: ?*u32, pLength: ?*u32, ppsz: ?*?PWSTR, pValue: ?*PROPVARIANT) HRESULT { return @as(*const IRichChunk.VTable, @ptrCast(self.vtable)).GetData(@as(*const IRichChunk, @ptrCast(self)), pFirstPos, pLength, ppsz, pValue); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows5.1.2600' const IID_ICondition_Value = Guid.initString("0fc988d4-c935-4b97-a973-46282ea175c8"); pub const IID_ICondition = &IID_ICondition_Value; pub const ICondition = extern struct { pub const VTable = extern struct { base: IPersistStream.VTable, GetConditionType: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ICondition, pNodeType: ?*CONDITION_TYPE, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ICondition, pNodeType: ?*CONDITION_TYPE, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetSubConditions: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ICondition, riid: ?*const Guid, ppv: ?*?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ICondition, riid: ?*const Guid, ppv: ?*?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetComparisonInfo: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ICondition, ppszPropertyName: ?*?PWSTR, pcop: ?*CONDITION_OPERATION, ppropvar: ?*PROPVARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ICondition, ppszPropertyName: ?*?PWSTR, pcop: ?*CONDITION_OPERATION, ppropvar: ?*PROPVARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetValueType: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ICondition, ppszValueTypeName: ?*?PWSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ICondition, ppszValueTypeName: ?*?PWSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetValueNormalization: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ICondition, ppszNormalization: ?*?PWSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ICondition, ppszNormalization: ?*?PWSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetInputTerms: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ICondition, ppPropertyTerm: ?*?*IRichChunk, ppOperationTerm: ?*?*IRichChunk, ppValueTerm: ?*?*IRichChunk, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ICondition, ppPropertyTerm: ?*?*IRichChunk, ppOperationTerm: ?*?*IRichChunk, ppValueTerm: ?*?*IRichChunk, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Clone: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ICondition, ppc: ?*?*ICondition, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ICondition, ppc: ?*?*ICondition, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IPersistStream.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ICondition_GetConditionType(self: *const T, pNodeType: ?*CONDITION_TYPE) HRESULT { return @as(*const ICondition.VTable, @ptrCast(self.vtable)).GetConditionType(@as(*const ICondition, @ptrCast(self)), pNodeType); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ICondition_GetSubConditions(self: *const T, riid: ?*const Guid, ppv: ?*?*anyopaque) HRESULT { return @as(*const ICondition.VTable, @ptrCast(self.vtable)).GetSubConditions(@as(*const ICondition, @ptrCast(self)), riid, ppv); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ICondition_GetComparisonInfo(self: *const T, ppszPropertyName: ?*?PWSTR, pcop: ?*CONDITION_OPERATION, ppropvar: ?*PROPVARIANT) HRESULT { return @as(*const ICondition.VTable, @ptrCast(self.vtable)).GetComparisonInfo(@as(*const ICondition, @ptrCast(self)), ppszPropertyName, pcop, ppropvar); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ICondition_GetValueType(self: *const T, ppszValueTypeName: ?*?PWSTR) HRESULT { return @as(*const ICondition.VTable, @ptrCast(self.vtable)).GetValueType(@as(*const ICondition, @ptrCast(self)), ppszValueTypeName); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ICondition_GetValueNormalization(self: *const T, ppszNormalization: ?*?PWSTR) HRESULT { return @as(*const ICondition.VTable, @ptrCast(self.vtable)).GetValueNormalization(@as(*const ICondition, @ptrCast(self)), ppszNormalization); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ICondition_GetInputTerms(self: *const T, ppPropertyTerm: ?*?*IRichChunk, ppOperationTerm: ?*?*IRichChunk, ppValueTerm: ?*?*IRichChunk) HRESULT { return @as(*const ICondition.VTable, @ptrCast(self.vtable)).GetInputTerms(@as(*const ICondition, @ptrCast(self)), ppPropertyTerm, ppOperationTerm, ppValueTerm); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ICondition_Clone(self: *const T, ppc: ?*?*ICondition) HRESULT { return @as(*const ICondition.VTable, @ptrCast(self.vtable)).Clone(@as(*const ICondition, @ptrCast(self)), ppc); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows6.1' const IID_ICondition2_Value = Guid.initString("0db8851d-2e5b-47eb-9208-d28c325a01d7"); pub const IID_ICondition2 = &IID_ICondition2_Value; pub const ICondition2 = extern struct { pub const VTable = extern struct { base: ICondition.VTable, GetLocale: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ICondition2, ppszLocaleName: ?*?PWSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ICondition2, ppszLocaleName: ?*?PWSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetLeafConditionInfo: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ICondition2, ppropkey: ?*PROPERTYKEY, pcop: ?*CONDITION_OPERATION, ppropvar: ?*PROPVARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ICondition2, ppropkey: ?*PROPERTYKEY, pcop: ?*CONDITION_OPERATION, ppropvar: ?*PROPVARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace ICondition.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ICondition2_GetLocale(self: *const T, ppszLocaleName: ?*?PWSTR) HRESULT { return @as(*const ICondition2.VTable, @ptrCast(self.vtable)).GetLocale(@as(*const ICondition2, @ptrCast(self)), ppszLocaleName); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ICondition2_GetLeafConditionInfo(self: *const T, ppropkey: ?*PROPERTYKEY, pcop: ?*CONDITION_OPERATION, ppropvar: ?*PROPVARIANT) HRESULT { return @as(*const ICondition2.VTable, @ptrCast(self.vtable)).GetLeafConditionInfo(@as(*const ICondition2, @ptrCast(self)), ppropkey, pcop, ppropvar); } }; } pub usingnamespace MethodMixin(@This()); }; pub const DB_NUMERIC = extern struct { precision: u8, scale: u8, sign: u8, val: [16]u8, }; pub const DBDATE = extern struct { year: i16, month: u16, day: u16, }; pub const DBTIME = extern struct { hour: u16, minute: u16, second: u16, }; pub const DB_VARNUMERIC = extern struct { precision: u8, scale: i8, sign: u8, val: [1]u8, }; pub const DBTYPEENUM = enum(i32) { EMPTY = 0, NULL = 1, I2 = 2, I4 = 3, R4 = 4, R8 = 5, CY = 6, DATE = 7, BSTR = 8, IDISPATCH = 9, ERROR = 10, BOOL = 11, VARIANT = 12, IUNKNOWN = 13, DECIMAL = 14, UI1 = 17, ARRAY = 8192, BYREF = 16384, I1 = 16, UI2 = 18, UI4 = 19, I8 = 20, UI8 = 21, GUID = 72, VECTOR = 4096, RESERVED = 32768, BYTES = 128, STR = 129, WSTR = 130, NUMERIC = 131, UDT = 132, DBDATE = 133, DBTIME = 134, DBTIMESTAMP = 135, }; pub const DBTYPE_EMPTY = DBTYPEENUM.EMPTY; pub const DBTYPE_NULL = DBTYPEENUM.NULL; pub const DBTYPE_I2 = DBTYPEENUM.I2; pub const DBTYPE_I4 = DBTYPEENUM.I4; pub const DBTYPE_R4 = DBTYPEENUM.R4; pub const DBTYPE_R8 = DBTYPEENUM.R8; pub const DBTYPE_CY = DBTYPEENUM.CY; pub const DBTYPE_DATE = DBTYPEENUM.DATE; pub const DBTYPE_BSTR = DBTYPEENUM.BSTR; pub const DBTYPE_IDISPATCH = DBTYPEENUM.IDISPATCH; pub const DBTYPE_ERROR = DBTYPEENUM.ERROR; pub const DBTYPE_BOOL = DBTYPEENUM.BOOL; pub const DBTYPE_VARIANT = DBTYPEENUM.VARIANT; pub const DBTYPE_IUNKNOWN = DBTYPEENUM.IUNKNOWN; pub const DBTYPE_DECIMAL = DBTYPEENUM.DECIMAL; pub const DBTYPE_UI1 = DBTYPEENUM.UI1; pub const DBTYPE_ARRAY = DBTYPEENUM.ARRAY; pub const DBTYPE_BYREF = DBTYPEENUM.BYREF; pub const DBTYPE_I1 = DBTYPEENUM.I1; pub const DBTYPE_UI2 = DBTYPEENUM.UI2; pub const DBTYPE_UI4 = DBTYPEENUM.UI4; pub const DBTYPE_I8 = DBTYPEENUM.I8; pub const DBTYPE_UI8 = DBTYPEENUM.UI8; pub const DBTYPE_GUID = DBTYPEENUM.GUID; pub const DBTYPE_VECTOR = DBTYPEENUM.VECTOR; pub const DBTYPE_RESERVED = DBTYPEENUM.RESERVED; pub const DBTYPE_BYTES = DBTYPEENUM.BYTES; pub const DBTYPE_STR = DBTYPEENUM.STR; pub const DBTYPE_WSTR = DBTYPEENUM.WSTR; pub const DBTYPE_NUMERIC = DBTYPEENUM.NUMERIC; pub const DBTYPE_UDT = DBTYPEENUM.UDT; pub const DBTYPE_DBDATE = DBTYPEENUM.DBDATE; pub const DBTYPE_DBTIME = DBTYPEENUM.DBTIME; pub const DBTYPE_DBTIMESTAMP = DBTYPEENUM.DBTIMESTAMP; pub const DBTYPEENUM15 = enum(i32) { R = 136, }; pub const DBTYPE_HCHAPTER = DBTYPEENUM15.R; pub const DBTYPEENUM20 = enum(i32) { FILETIME = 64, PROPVARIANT = 138, VARNUMERIC = 139, }; pub const DBTYPE_FILETIME = DBTYPEENUM20.FILETIME; pub const DBTYPE_PROPVARIANT = DBTYPEENUM20.PROPVARIANT; pub const DBTYPE_VARNUMERIC = DBTYPEENUM20.VARNUMERIC; pub const DBPARTENUM = enum(i32) { INVALID = 0, VALUE = 1, LENGTH = 2, STATUS = 4, }; pub const DBPART_INVALID = DBPARTENUM.INVALID; pub const DBPART_VALUE = DBPARTENUM.VALUE; pub const DBPART_LENGTH = DBPARTENUM.LENGTH; pub const DBPART_STATUS = DBPARTENUM.STATUS; pub const DBPARAMIOENUM = enum(i32) { NOTPARAM = 0, INPUT = 1, OUTPUT = 2, }; pub const DBPARAMIO_NOTPARAM = DBPARAMIOENUM.NOTPARAM; pub const DBPARAMIO_INPUT = DBPARAMIOENUM.INPUT; pub const DBPARAMIO_OUTPUT = DBPARAMIOENUM.OUTPUT; pub const DBBINDFLAGENUM = enum(i32) { L = 1, }; pub const DBBINDFLAG_HTML = DBBINDFLAGENUM.L; pub const DBMEMOWNERENUM = enum(i32) { CLIENTOWNED = 0, PROVIDEROWNED = 1, }; pub const DBMEMOWNER_CLIENTOWNED = DBMEMOWNERENUM.CLIENTOWNED; pub const DBMEMOWNER_PROVIDEROWNED = DBMEMOWNERENUM.PROVIDEROWNED; pub const DBSTATUSENUM = enum(i32) { S_OK = 0, E_BADACCESSOR = 1, E_CANTCONVERTVALUE = 2, S_ISNULL = 3, S_TRUNCATED = 4, E_SIGNMISMATCH = 5, E_DATAOVERFLOW = 6, E_CANTCREATE = 7, E_UNAVAILABLE = 8, E_PERMISSIONDENIED = 9, E_INTEGRITYVIOLATION = 10, E_SCHEMAVIOLATION = 11, E_BADSTATUS = 12, S_DEFAULT = 13, }; pub const DBSTATUS_S_OK = DBSTATUSENUM.S_OK; pub const DBSTATUS_E_BADACCESSOR = DBSTATUSENUM.E_BADACCESSOR; pub const DBSTATUS_E_CANTCONVERTVALUE = DBSTATUSENUM.E_CANTCONVERTVALUE; pub const DBSTATUS_S_ISNULL = DBSTATUSENUM.S_ISNULL; pub const DBSTATUS_S_TRUNCATED = DBSTATUSENUM.S_TRUNCATED; pub const DBSTATUS_E_SIGNMISMATCH = DBSTATUSENUM.E_SIGNMISMATCH; pub const DBSTATUS_E_DATAOVERFLOW = DBSTATUSENUM.E_DATAOVERFLOW; pub const DBSTATUS_E_CANTCREATE = DBSTATUSENUM.E_CANTCREATE; pub const DBSTATUS_E_UNAVAILABLE = DBSTATUSENUM.E_UNAVAILABLE; pub const DBSTATUS_E_PERMISSIONDENIED = DBSTATUSENUM.E_PERMISSIONDENIED; pub const DBSTATUS_E_INTEGRITYVIOLATION = DBSTATUSENUM.E_INTEGRITYVIOLATION; pub const DBSTATUS_E_SCHEMAVIOLATION = DBSTATUSENUM.E_SCHEMAVIOLATION; pub const DBSTATUS_E_BADSTATUS = DBSTATUSENUM.E_BADSTATUS; pub const DBSTATUS_S_DEFAULT = DBSTATUSENUM.S_DEFAULT; pub const DBSTATUSENUM20 = enum(i32) { MDSTATUS_S_CELLEMPTY = 14, DBSTATUS_S_IGNORE = 15, }; pub const MDSTATUS_S_CELLEMPTY = DBSTATUSENUM20.MDSTATUS_S_CELLEMPTY; pub const DBSTATUS_S_IGNORE = DBSTATUSENUM20.DBSTATUS_S_IGNORE; pub const DBSTATUSENUM21 = enum(i32) { E_DOESNOTEXIST = 16, E_INVALIDURL = 17, E_RESOURCELOCKED = 18, E_RESOURCEEXISTS = 19, E_CANNOTCOMPLETE = 20, E_VOLUMENOTFOUND = 21, E_OUTOFSPACE = 22, S_CANNOTDELETESOURCE = 23, E_READONLY = 24, E_RESOURCEOUTOFSCOPE = 25, S_ALREADYEXISTS = 26, }; pub const DBSTATUS_E_DOESNOTEXIST = DBSTATUSENUM21.E_DOESNOTEXIST; pub const DBSTATUS_E_INVALIDURL = DBSTATUSENUM21.E_INVALIDURL; pub const DBSTATUS_E_RESOURCELOCKED = DBSTATUSENUM21.E_RESOURCELOCKED; pub const DBSTATUS_E_RESOURCEEXISTS = DBSTATUSENUM21.E_RESOURCEEXISTS; pub const DBSTATUS_E_CANNOTCOMPLETE = DBSTATUSENUM21.E_CANNOTCOMPLETE; pub const DBSTATUS_E_VOLUMENOTFOUND = DBSTATUSENUM21.E_VOLUMENOTFOUND; pub const DBSTATUS_E_OUTOFSPACE = DBSTATUSENUM21.E_OUTOFSPACE; pub const DBSTATUS_S_CANNOTDELETESOURCE = DBSTATUSENUM21.S_CANNOTDELETESOURCE; pub const DBSTATUS_E_READONLY = DBSTATUSENUM21.E_READONLY; pub const DBSTATUS_E_RESOURCEOUTOFSCOPE = DBSTATUSENUM21.E_RESOURCEOUTOFSCOPE; pub const DBSTATUS_S_ALREADYEXISTS = DBSTATUSENUM21.S_ALREADYEXISTS; pub const DBBINDURLFLAGENUM = enum(i32) { READ = 1, WRITE = 2, READWRITE = 3, SHARE_DENY_READ = 4, SHARE_DENY_WRITE = 8, SHARE_EXCLUSIVE = 12, SHARE_DENY_NONE = 16, ASYNCHRONOUS = 4096, COLLECTION = 8192, DELAYFETCHSTREAM = 16384, DELAYFETCHCOLUMNS = 32768, RECURSIVE = 4194304, OUTPUT = 8388608, WAITFORINIT = 16777216, OPENIFEXISTS = 33554432, OVERWRITE = 67108864, ISSTRUCTUREDDOCUMENT = 134217728, }; pub const DBBINDURLFLAG_READ = DBBINDURLFLAGENUM.READ; pub const DBBINDURLFLAG_WRITE = DBBINDURLFLAGENUM.WRITE; pub const DBBINDURLFLAG_READWRITE = DBBINDURLFLAGENUM.READWRITE; pub const DBBINDURLFLAG_SHARE_DENY_READ = DBBINDURLFLAGENUM.SHARE_DENY_READ; pub const DBBINDURLFLAG_SHARE_DENY_WRITE = DBBINDURLFLAGENUM.SHARE_DENY_WRITE; pub const DBBINDURLFLAG_SHARE_EXCLUSIVE = DBBINDURLFLAGENUM.SHARE_EXCLUSIVE; pub const DBBINDURLFLAG_SHARE_DENY_NONE = DBBINDURLFLAGENUM.SHARE_DENY_NONE; pub const DBBINDURLFLAG_ASYNCHRONOUS = DBBINDURLFLAGENUM.ASYNCHRONOUS; pub const DBBINDURLFLAG_COLLECTION = DBBINDURLFLAGENUM.COLLECTION; pub const DBBINDURLFLAG_DELAYFETCHSTREAM = DBBINDURLFLAGENUM.DELAYFETCHSTREAM; pub const DBBINDURLFLAG_DELAYFETCHCOLUMNS = DBBINDURLFLAGENUM.DELAYFETCHCOLUMNS; pub const DBBINDURLFLAG_RECURSIVE = DBBINDURLFLAGENUM.RECURSIVE; pub const DBBINDURLFLAG_OUTPUT = DBBINDURLFLAGENUM.OUTPUT; pub const DBBINDURLFLAG_WAITFORINIT = DBBINDURLFLAGENUM.WAITFORINIT; pub const DBBINDURLFLAG_OPENIFEXISTS = DBBINDURLFLAGENUM.OPENIFEXISTS; pub const DBBINDURLFLAG_OVERWRITE = DBBINDURLFLAGENUM.OVERWRITE; pub const DBBINDURLFLAG_ISSTRUCTUREDDOCUMENT = DBBINDURLFLAGENUM.ISSTRUCTUREDDOCUMENT; pub const DBBINDURLSTATUSENUM = enum(i32) { OK = 0, DENYNOTSUPPORTED = 1, DENYTYPENOTSUPPORTED = 4, REDIRECTED = 8, }; pub const DBBINDURLSTATUS_S_OK = DBBINDURLSTATUSENUM.OK; pub const DBBINDURLSTATUS_S_DENYNOTSUPPORTED = DBBINDURLSTATUSENUM.DENYNOTSUPPORTED; pub const DBBINDURLSTATUS_S_DENYTYPENOTSUPPORTED = DBBINDURLSTATUSENUM.DENYTYPENOTSUPPORTED; pub const DBBINDURLSTATUS_S_REDIRECTED = DBBINDURLSTATUSENUM.REDIRECTED; pub const DBSTATUSENUM25 = enum(i32) { CANCELED = 27, NOTCOLLECTION = 28, }; pub const DBSTATUS_E_CANCELED = DBSTATUSENUM25.CANCELED; pub const DBSTATUS_E_NOTCOLLECTION = DBSTATUSENUM25.NOTCOLLECTION; pub const DBROWSTATUSENUM = enum(i32) { S_OK = 0, S_MULTIPLECHANGES = 2, S_PENDINGCHANGES = 3, E_CANCELED = 4, E_CANTRELEASE = 6, E_CONCURRENCYVIOLATION = 7, E_DELETED = 8, E_PENDINGINSERT = 9, E_NEWLYINSERTED = 10, E_INTEGRITYVIOLATION = 11, E_INVALID = 12, E_MAXPENDCHANGESEXCEEDED = 13, E_OBJECTOPEN = 14, E_OUTOFMEMORY = 15, E_PERMISSIONDENIED = 16, E_LIMITREACHED = 17, E_SCHEMAVIOLATION = 18, E_FAIL = 19, }; pub const DBROWSTATUS_S_OK = DBROWSTATUSENUM.S_OK; pub const DBROWSTATUS_S_MULTIPLECHANGES = DBROWSTATUSENUM.S_MULTIPLECHANGES; pub const DBROWSTATUS_S_PENDINGCHANGES = DBROWSTATUSENUM.S_PENDINGCHANGES; pub const DBROWSTATUS_E_CANCELED = DBROWSTATUSENUM.E_CANCELED; pub const DBROWSTATUS_E_CANTRELEASE = DBROWSTATUSENUM.E_CANTRELEASE; pub const DBROWSTATUS_E_CONCURRENCYVIOLATION = DBROWSTATUSENUM.E_CONCURRENCYVIOLATION; pub const DBROWSTATUS_E_DELETED = DBROWSTATUSENUM.E_DELETED; pub const DBROWSTATUS_E_PENDINGINSERT = DBROWSTATUSENUM.E_PENDINGINSERT; pub const DBROWSTATUS_E_NEWLYINSERTED = DBROWSTATUSENUM.E_NEWLYINSERTED; pub const DBROWSTATUS_E_INTEGRITYVIOLATION = DBROWSTATUSENUM.E_INTEGRITYVIOLATION; pub const DBROWSTATUS_E_INVALID = DBROWSTATUSENUM.E_INVALID; pub const DBROWSTATUS_E_MAXPENDCHANGESEXCEEDED = DBROWSTATUSENUM.E_MAXPENDCHANGESEXCEEDED; pub const DBROWSTATUS_E_OBJECTOPEN = DBROWSTATUSENUM.E_OBJECTOPEN; pub const DBROWSTATUS_E_OUTOFMEMORY = DBROWSTATUSENUM.E_OUTOFMEMORY; pub const DBROWSTATUS_E_PERMISSIONDENIED = DBROWSTATUSENUM.E_PERMISSIONDENIED; pub const DBROWSTATUS_E_LIMITREACHED = DBROWSTATUSENUM.E_LIMITREACHED; pub const DBROWSTATUS_E_SCHEMAVIOLATION = DBROWSTATUSENUM.E_SCHEMAVIOLATION; pub const DBROWSTATUS_E_FAIL = DBROWSTATUSENUM.E_FAIL; pub const DBROWSTATUSENUM20 = enum(i32) { E = 20, }; pub const DBROWSTATUS_S_NOCHANGE = DBROWSTATUSENUM20.E; pub const DBSTATUSENUM26 = enum(i32) { N = 29, }; pub const DBSTATUS_S_ROWSETCOLUMN = DBSTATUSENUM26.N; pub const DBCOLUMNFLAGSENUM = enum(i32) { ISBOOKMARK = 1, MAYDEFER = 2, WRITE = 4, WRITEUNKNOWN = 8, ISFIXEDLENGTH = 16, ISNULLABLE = 32, MAYBENULL = 64, ISLONG = 128, ISROWID = 256, ISROWVER = 512, CACHEDEFERRED = 4096, }; pub const DBCOLUMNFLAGS_ISBOOKMARK = DBCOLUMNFLAGSENUM.ISBOOKMARK; pub const DBCOLUMNFLAGS_MAYDEFER = DBCOLUMNFLAGSENUM.MAYDEFER; pub const DBCOLUMNFLAGS_WRITE = DBCOLUMNFLAGSENUM.WRITE; pub const DBCOLUMNFLAGS_WRITEUNKNOWN = DBCOLUMNFLAGSENUM.WRITEUNKNOWN; pub const DBCOLUMNFLAGS_ISFIXEDLENGTH = DBCOLUMNFLAGSENUM.ISFIXEDLENGTH; pub const DBCOLUMNFLAGS_ISNULLABLE = DBCOLUMNFLAGSENUM.ISNULLABLE; pub const DBCOLUMNFLAGS_MAYBENULL = DBCOLUMNFLAGSENUM.MAYBENULL; pub const DBCOLUMNFLAGS_ISLONG = DBCOLUMNFLAGSENUM.ISLONG; pub const DBCOLUMNFLAGS_ISROWID = DBCOLUMNFLAGSENUM.ISROWID; pub const DBCOLUMNFLAGS_ISROWVER = DBCOLUMNFLAGSENUM.ISROWVER; pub const DBCOLUMNFLAGS_CACHEDEFERRED = DBCOLUMNFLAGSENUM.CACHEDEFERRED; pub const DBCOLUMNFLAGSENUM20 = enum(i32) { SCALEISNEGATIVE = 16384, RESERVED = 32768, }; pub const DBCOLUMNFLAGS_SCALEISNEGATIVE = DBCOLUMNFLAGSENUM20.SCALEISNEGATIVE; pub const DBCOLUMNFLAGS_RESERVED = DBCOLUMNFLAGSENUM20.RESERVED; pub const DBCOLUMNFLAGS15ENUM = enum(i32) { R = 8192, }; pub const DBCOLUMNFLAGS_ISCHAPTER = DBCOLUMNFLAGS15ENUM.R; pub const DBCOLUMNFLAGSENUM21 = enum(i32) { ROWURL = 65536, DEFAULTSTREAM = 131072, COLLECTION = 262144, }; pub const DBCOLUMNFLAGS_ISROWURL = DBCOLUMNFLAGSENUM21.ROWURL; pub const DBCOLUMNFLAGS_ISDEFAULTSTREAM = DBCOLUMNFLAGSENUM21.DEFAULTSTREAM; pub const DBCOLUMNFLAGS_ISCOLLECTION = DBCOLUMNFLAGSENUM21.COLLECTION; pub const DBCOLUMNFLAGSENUM26 = enum(i32) { ISSTREAM = 524288, ISROWSET = 1048576, ISROW = 2097152, ROWSPECIFICCOLUMN = 4194304, }; pub const DBCOLUMNFLAGS_ISSTREAM = DBCOLUMNFLAGSENUM26.ISSTREAM; pub const DBCOLUMNFLAGS_ISROWSET = DBCOLUMNFLAGSENUM26.ISROWSET; pub const DBCOLUMNFLAGS_ISROW = DBCOLUMNFLAGSENUM26.ISROW; pub const DBCOLUMNFLAGS_ROWSPECIFICCOLUMN = DBCOLUMNFLAGSENUM26.ROWSPECIFICCOLUMN; pub const DBTABLESTATISTICSTYPE26 = enum(i32) { HISTOGRAM = 1, COLUMN_CARDINALITY = 2, TUPLE_CARDINALITY = 4, }; pub const DBSTAT_HISTOGRAM = DBTABLESTATISTICSTYPE26.HISTOGRAM; pub const DBSTAT_COLUMN_CARDINALITY = DBTABLESTATISTICSTYPE26.COLUMN_CARDINALITY; pub const DBSTAT_TUPLE_CARDINALITY = DBTABLESTATISTICSTYPE26.TUPLE_CARDINALITY; pub const DBBOOKMARK = enum(i32) { INVALID = 0, FIRST = 1, LAST = 2, }; pub const DBBMK_INVALID = DBBOOKMARK.INVALID; pub const DBBMK_FIRST = DBBOOKMARK.FIRST; pub const DBBMK_LAST = DBBOOKMARK.LAST; pub const DBPROPENUM = enum(i32) { ABORTPRESERVE = 2, ACTIVESESSIONS = 3, APPENDONLY = 187, ASYNCTXNABORT = 168, ASYNCTXNCOMMIT = 4, AUTH_CACHE_AUTHINFO = 5, AUTH_ENCRYPT_PASSWORD = 6, AUTH_INTEGRATED = 7, AUTH_MASK_PASSWORD = 8, AUTH_PASSWORD = 9, AUTH_PERSIST_ENCRYPTED = 10, AUTH_PERSIST_SENSITIVE_AUTHINFO = 11, AUTH_USERID = 12, BLOCKINGSTORAGEOBJECTS = 13, BOOKMARKS = 14, BOOKMARKSKIPPED = 15, BOOKMARKTYPE = 16, BYREFACCESSORS = 120, CACHEDEFERRED = 17, CANFETCHBACKWARDS = 18, CANHOLDROWS = 19, CANSCROLLBACKWARDS = 21, CATALOGLOCATION = 22, CATALOGTERM = 23, CATALOGUSAGE = 24, CHANGEINSERTEDROWS = 188, COL_AUTOINCREMENT = 26, COL_DEFAULT = 27, COL_DESCRIPTION = 28, COL_FIXEDLENGTH = 167, COL_NULLABLE = 29, COL_PRIMARYKEY = 30, COL_UNIQUE = 31, COLUMNDEFINITION = 32, COLUMNRESTRICT = 33, COMMANDTIMEOUT = 34, COMMITPRESERVE = 35, CONCATNULLBEHAVIOR = 36, CURRENTCATALOG = 37, DATASOURCENAME = 38, DATASOURCEREADONLY = 39, DBMSNAME = 40, DBMSVER = 41, DEFERRED = 42, DELAYSTORAGEOBJECTS = 43, DSOTHREADMODEL = 169, GROUPBY = 44, HETEROGENEOUSTABLES = 45, IAccessor = 121, IColumnsInfo = 122, IColumnsRowset = 123, IConnectionPointContainer = 124, IConvertType = 194, IRowset = 126, IRowsetChange = 127, IRowsetIdentity = 128, IRowsetIndex = 159, IRowsetInfo = 129, IRowsetLocate = 130, IRowsetResynch = 132, IRowsetScroll = 133, IRowsetUpdate = 134, ISupportErrorInfo = 135, ILockBytes = 136, ISequentialStream = 137, IStorage = 138, IStream = 139, IDENTIFIERCASE = 46, IMMOBILEROWS = 47, INDEX_AUTOUPDATE = 48, INDEX_CLUSTERED = 49, INDEX_FILLFACTOR = 50, INDEX_INITIALSIZE = 51, INDEX_NULLCOLLATION = 52, INDEX_NULLS = 53, INDEX_PRIMARYKEY = 54, INDEX_SORTBOOKMARKS = 55, INDEX_TEMPINDEX = 163, INDEX_TYPE = 56, INDEX_UNIQUE = 57, INIT_DATASOURCE = 59, INIT_HWND = 60, INIT_IMPERSONATION_LEVEL = 61, INIT_LCID = 186, INIT_LOCATION = 62, INIT_MODE = 63, INIT_PROMPT = 64, INIT_PROTECTION_LEVEL = 65, INIT_PROVIDERSTRING = 160, INIT_TIMEOUT = 66, LITERALBOOKMARKS = 67, LITERALIDENTITY = 68, MAXINDEXSIZE = 70, MAXOPENROWS = 71, MAXPENDINGROWS = 72, MAXROWS = 73, MAXROWSIZE = 74, MAXROWSIZEINCLUDESBLOB = 75, MAXTABLESINSELECT = 76, MAYWRITECOLUMN = 77, MEMORYUSAGE = 78, MULTIPLEPARAMSETS = 191, MULTIPLERESULTS = 196, MULTIPLESTORAGEOBJECTS = 80, MULTITABLEUPDATE = 81, NOTIFICATIONGRANULARITY = 198, NOTIFICATIONPHASES = 82, NOTIFYCOLUMNSET = 171, NOTIFYROWDELETE = 173, NOTIFYROWFIRSTCHANGE = 174, NOTIFYROWINSERT = 175, NOTIFYROWRESYNCH = 177, NOTIFYROWSETCHANGED = 211, NOTIFYROWSETRELEASE = 178, NOTIFYROWSETFETCHPOSITIONCHANGE = 179, NOTIFYROWUNDOCHANGE = 180, NOTIFYROWUNDODELETE = 181, NOTIFYROWUNDOINSERT = 182, NOTIFYROWUPDATE = 183, NULLCOLLATION = 83, OLEOBJECTS = 84, ORDERBYCOLUMNSINSELECT = 85, ORDEREDBOOKMARKS = 86, OTHERINSERT = 87, OTHERUPDATEDELETE = 88, OUTPUTPARAMETERAVAILABILITY = 184, OWNINSERT = 89, OWNUPDATEDELETE = 90, PERSISTENTIDTYPE = 185, PREPAREABORTBEHAVIOR = 91, PREPARECOMMITBEHAVIOR = 92, PROCEDURETERM = 93, PROVIDERNAME = 96, PROVIDEROLEDBVER = 97, PROVIDERVER = 98, QUICKRESTART = 99, QUOTEDIDENTIFIERCASE = 100, REENTRANTEVENTS = 101, REMOVEDELETED = 102, REPORTMULTIPLECHANGES = 103, RETURNPENDINGINSERTS = 189, ROWRESTRICT = 104, ROWSETCONVERSIONSONCOMMAND = 192, ROWTHREADMODEL = 105, SCHEMATERM = 106, SCHEMAUSAGE = 107, SERVERCURSOR = 108, SESS_AUTOCOMMITISOLEVELS = 190, SQLSUPPORT = 109, STRONGIDENTITY = 119, STRUCTUREDSTORAGE = 111, SUBQUERIES = 112, SUPPORTEDTXNDDL = 161, SUPPORTEDTXNISOLEVELS = 113, SUPPORTEDTXNISORETAIN = 114, TABLETERM = 115, TBL_TEMPTABLE = 140, TRANSACTEDOBJECT = 116, UPDATABILITY = 117, USERNAME = 118, }; pub const DBPROP_ABORTPRESERVE = DBPROPENUM.ABORTPRESERVE; pub const DBPROP_ACTIVESESSIONS = DBPROPENUM.ACTIVESESSIONS; pub const DBPROP_APPENDONLY = DBPROPENUM.APPENDONLY; pub const DBPROP_ASYNCTXNABORT = DBPROPENUM.ASYNCTXNABORT; pub const DBPROP_ASYNCTXNCOMMIT = DBPROPENUM.ASYNCTXNCOMMIT; pub const DBPROP_AUTH_CACHE_AUTHINFO = DBPROPENUM.AUTH_CACHE_AUTHINFO; pub const DBPROP_AUTH_ENCRYPT_PASSWORD = DBPROPENUM.AUTH_ENCRYPT_PASSWORD; pub const DBPROP_AUTH_INTEGRATED = DBPROPENUM.AUTH_INTEGRATED; pub const DBPROP_AUTH_MASK_PASSWORD = DBPROPENUM.AUTH_MASK_PASSWORD; pub const DBPROP_AUTH_PASSWORD = DBPROPENUM.AUTH_PASSWORD; pub const DBPROP_AUTH_PERSIST_ENCRYPTED = DBPROPENUM.AUTH_PERSIST_ENCRYPTED; pub const DBPROP_AUTH_PERSIST_SENSITIVE_AUTHINFO = DBPROPENUM.AUTH_PERSIST_SENSITIVE_AUTHINFO; pub const DBPROP_AUTH_USERID = DBPROPENUM.AUTH_USERID; pub const DBPROP_BLOCKINGSTORAGEOBJECTS = DBPROPENUM.BLOCKINGSTORAGEOBJECTS; pub const DBPROP_BOOKMARKS = DBPROPENUM.BOOKMARKS; pub const DBPROP_BOOKMARKSKIPPED = DBPROPENUM.BOOKMARKSKIPPED; pub const DBPROP_BOOKMARKTYPE = DBPROPENUM.BOOKMARKTYPE; pub const DBPROP_BYREFACCESSORS = DBPROPENUM.BYREFACCESSORS; pub const DBPROP_CACHEDEFERRED = DBPROPENUM.CACHEDEFERRED; pub const DBPROP_CANFETCHBACKWARDS = DBPROPENUM.CANFETCHBACKWARDS; pub const DBPROP_CANHOLDROWS = DBPROPENUM.CANHOLDROWS; pub const DBPROP_CANSCROLLBACKWARDS = DBPROPENUM.CANSCROLLBACKWARDS; pub const DBPROP_CATALOGLOCATION = DBPROPENUM.CATALOGLOCATION; pub const DBPROP_CATALOGTERM = DBPROPENUM.CATALOGTERM; pub const DBPROP_CATALOGUSAGE = DBPROPENUM.CATALOGUSAGE; pub const DBPROP_CHANGEINSERTEDROWS = DBPROPENUM.CHANGEINSERTEDROWS; pub const DBPROP_COL_AUTOINCREMENT = DBPROPENUM.COL_AUTOINCREMENT; pub const DBPROP_COL_DEFAULT = DBPROPENUM.COL_DEFAULT; pub const DBPROP_COL_DESCRIPTION = DBPROPENUM.COL_DESCRIPTION; pub const DBPROP_COL_FIXEDLENGTH = DBPROPENUM.COL_FIXEDLENGTH; pub const DBPROP_COL_NULLABLE = DBPROPENUM.COL_NULLABLE; pub const DBPROP_COL_PRIMARYKEY = DBPROPENUM.COL_PRIMARYKEY; pub const DBPROP_COL_UNIQUE = DBPROPENUM.COL_UNIQUE; pub const DBPROP_COLUMNDEFINITION = DBPROPENUM.COLUMNDEFINITION; pub const DBPROP_COLUMNRESTRICT = DBPROPENUM.COLUMNRESTRICT; pub const DBPROP_COMMANDTIMEOUT = DBPROPENUM.COMMANDTIMEOUT; pub const DBPROP_COMMITPRESERVE = DBPROPENUM.COMMITPRESERVE; pub const DBPROP_CONCATNULLBEHAVIOR = DBPROPENUM.CONCATNULLBEHAVIOR; pub const DBPROP_CURRENTCATALOG = DBPROPENUM.CURRENTCATALOG; pub const DBPROP_DATASOURCENAME = DBPROPENUM.DATASOURCENAME; pub const DBPROP_DATASOURCEREADONLY = DBPROPENUM.DATASOURCEREADONLY; pub const DBPROP_DBMSNAME = DBPROPENUM.DBMSNAME; pub const DBPROP_DBMSVER = DBPROPENUM.DBMSVER; pub const DBPROP_DEFERRED = DBPROPENUM.DEFERRED; pub const DBPROP_DELAYSTORAGEOBJECTS = DBPROPENUM.DELAYSTORAGEOBJECTS; pub const DBPROP_DSOTHREADMODEL = DBPROPENUM.DSOTHREADMODEL; pub const DBPROP_GROUPBY = DBPROPENUM.GROUPBY; pub const DBPROP_HETEROGENEOUSTABLES = DBPROPENUM.HETEROGENEOUSTABLES; pub const DBPROP_IAccessor = DBPROPENUM.IAccessor; pub const DBPROP_IColumnsInfo = DBPROPENUM.IColumnsInfo; pub const DBPROP_IColumnsRowset = DBPROPENUM.IColumnsRowset; pub const DBPROP_IConnectionPointContainer = DBPROPENUM.IConnectionPointContainer; pub const DBPROP_IConvertType = DBPROPENUM.IConvertType; pub const DBPROP_IRowset = DBPROPENUM.IRowset; pub const DBPROP_IRowsetChange = DBPROPENUM.IRowsetChange; pub const DBPROP_IRowsetIdentity = DBPROPENUM.IRowsetIdentity; pub const DBPROP_IRowsetIndex = DBPROPENUM.IRowsetIndex; pub const DBPROP_IRowsetInfo = DBPROPENUM.IRowsetInfo; pub const DBPROP_IRowsetLocate = DBPROPENUM.IRowsetLocate; pub const DBPROP_IRowsetResynch = DBPROPENUM.IRowsetResynch; pub const DBPROP_IRowsetScroll = DBPROPENUM.IRowsetScroll; pub const DBPROP_IRowsetUpdate = DBPROPENUM.IRowsetUpdate; pub const DBPROP_ISupportErrorInfo = DBPROPENUM.ISupportErrorInfo; pub const DBPROP_ILockBytes = DBPROPENUM.ILockBytes; pub const DBPROP_ISequentialStream = DBPROPENUM.ISequentialStream; pub const DBPROP_IStorage = DBPROPENUM.IStorage; pub const DBPROP_IStream = DBPROPENUM.IStream; pub const DBPROP_IDENTIFIERCASE = DBPROPENUM.IDENTIFIERCASE; pub const DBPROP_IMMOBILEROWS = DBPROPENUM.IMMOBILEROWS; pub const DBPROP_INDEX_AUTOUPDATE = DBPROPENUM.INDEX_AUTOUPDATE; pub const DBPROP_INDEX_CLUSTERED = DBPROPENUM.INDEX_CLUSTERED; pub const DBPROP_INDEX_FILLFACTOR = DBPROPENUM.INDEX_FILLFACTOR; pub const DBPROP_INDEX_INITIALSIZE = DBPROPENUM.INDEX_INITIALSIZE; pub const DBPROP_INDEX_NULLCOLLATION = DBPROPENUM.INDEX_NULLCOLLATION; pub const DBPROP_INDEX_NULLS = DBPROPENUM.INDEX_NULLS; pub const DBPROP_INDEX_PRIMARYKEY = DBPROPENUM.INDEX_PRIMARYKEY; pub const DBPROP_INDEX_SORTBOOKMARKS = DBPROPENUM.INDEX_SORTBOOKMARKS; pub const DBPROP_INDEX_TEMPINDEX = DBPROPENUM.INDEX_TEMPINDEX; pub const DBPROP_INDEX_TYPE = DBPROPENUM.INDEX_TYPE; pub const DBPROP_INDEX_UNIQUE = DBPROPENUM.INDEX_UNIQUE; pub const DBPROP_INIT_DATASOURCE = DBPROPENUM.INIT_DATASOURCE; pub const DBPROP_INIT_HWND = DBPROPENUM.INIT_HWND; pub const DBPROP_INIT_IMPERSONATION_LEVEL = DBPROPENUM.INIT_IMPERSONATION_LEVEL; pub const DBPROP_INIT_LCID = DBPROPENUM.INIT_LCID; pub const DBPROP_INIT_LOCATION = DBPROPENUM.INIT_LOCATION; pub const DBPROP_INIT_MODE = DBPROPENUM.INIT_MODE; pub const DBPROP_INIT_PROMPT = DBPROPENUM.INIT_PROMPT; pub const DBPROP_INIT_PROTECTION_LEVEL = DBPROPENUM.INIT_PROTECTION_LEVEL; pub const DBPROP_INIT_PROVIDERSTRING = DBPROPENUM.INIT_PROVIDERSTRING; pub const DBPROP_INIT_TIMEOUT = DBPROPENUM.INIT_TIMEOUT; pub const DBPROP_LITERALBOOKMARKS = DBPROPENUM.LITERALBOOKMARKS; pub const DBPROP_LITERALIDENTITY = DBPROPENUM.LITERALIDENTITY; pub const DBPROP_MAXINDEXSIZE = DBPROPENUM.MAXINDEXSIZE; pub const DBPROP_MAXOPENROWS = DBPROPENUM.MAXOPENROWS; pub const DBPROP_MAXPENDINGROWS = DBPROPENUM.MAXPENDINGROWS; pub const DBPROP_MAXROWS = DBPROPENUM.MAXROWS; pub const DBPROP_MAXROWSIZE = DBPROPENUM.MAXROWSIZE; pub const DBPROP_MAXROWSIZEINCLUDESBLOB = DBPROPENUM.MAXROWSIZEINCLUDESBLOB; pub const DBPROP_MAXTABLESINSELECT = DBPROPENUM.MAXTABLESINSELECT; pub const DBPROP_MAYWRITECOLUMN = DBPROPENUM.MAYWRITECOLUMN; pub const DBPROP_MEMORYUSAGE = DBPROPENUM.MEMORYUSAGE; pub const DBPROP_MULTIPLEPARAMSETS = DBPROPENUM.MULTIPLEPARAMSETS; pub const DBPROP_MULTIPLERESULTS = DBPROPENUM.MULTIPLERESULTS; pub const DBPROP_MULTIPLESTORAGEOBJECTS = DBPROPENUM.MULTIPLESTORAGEOBJECTS; pub const DBPROP_MULTITABLEUPDATE = DBPROPENUM.MULTITABLEUPDATE; pub const DBPROP_NOTIFICATIONGRANULARITY = DBPROPENUM.NOTIFICATIONGRANULARITY; pub const DBPROP_NOTIFICATIONPHASES = DBPROPENUM.NOTIFICATIONPHASES; pub const DBPROP_NOTIFYCOLUMNSET = DBPROPENUM.NOTIFYCOLUMNSET; pub const DBPROP_NOTIFYROWDELETE = DBPROPENUM.NOTIFYROWDELETE; pub const DBPROP_NOTIFYROWFIRSTCHANGE = DBPROPENUM.NOTIFYROWFIRSTCHANGE; pub const DBPROP_NOTIFYROWINSERT = DBPROPENUM.NOTIFYROWINSERT; pub const DBPROP_NOTIFYROWRESYNCH = DBPROPENUM.NOTIFYROWRESYNCH; pub const DBPROP_NOTIFYROWSETCHANGED = DBPROPENUM.NOTIFYROWSETCHANGED; pub const DBPROP_NOTIFYROWSETRELEASE = DBPROPENUM.NOTIFYROWSETRELEASE; pub const DBPROP_NOTIFYROWSETFETCHPOSITIONCHANGE = DBPROPENUM.NOTIFYROWSETFETCHPOSITIONCHANGE; pub const DBPROP_NOTIFYROWUNDOCHANGE = DBPROPENUM.NOTIFYROWUNDOCHANGE; pub const DBPROP_NOTIFYROWUNDODELETE = DBPROPENUM.NOTIFYROWUNDODELETE; pub const DBPROP_NOTIFYROWUNDOINSERT = DBPROPENUM.NOTIFYROWUNDOINSERT; pub const DBPROP_NOTIFYROWUPDATE = DBPROPENUM.NOTIFYROWUPDATE; pub const DBPROP_NULLCOLLATION = DBPROPENUM.NULLCOLLATION; pub const DBPROP_OLEOBJECTS = DBPROPENUM.OLEOBJECTS; pub const DBPROP_ORDERBYCOLUMNSINSELECT = DBPROPENUM.ORDERBYCOLUMNSINSELECT; pub const DBPROP_ORDEREDBOOKMARKS = DBPROPENUM.ORDEREDBOOKMARKS; pub const DBPROP_OTHERINSERT = DBPROPENUM.OTHERINSERT; pub const DBPROP_OTHERUPDATEDELETE = DBPROPENUM.OTHERUPDATEDELETE; pub const DBPROP_OUTPUTPARAMETERAVAILABILITY = DBPROPENUM.OUTPUTPARAMETERAVAILABILITY; pub const DBPROP_OWNINSERT = DBPROPENUM.OWNINSERT; pub const DBPROP_OWNUPDATEDELETE = DBPROPENUM.OWNUPDATEDELETE; pub const DBPROP_PERSISTENTIDTYPE = DBPROPENUM.PERSISTENTIDTYPE; pub const DBPROP_PREPAREABORTBEHAVIOR = DBPROPENUM.PREPAREABORTBEHAVIOR; pub const DBPROP_PREPARECOMMITBEHAVIOR = DBPROPENUM.PREPARECOMMITBEHAVIOR; pub const DBPROP_PROCEDURETERM = DBPROPENUM.PROCEDURETERM; pub const DBPROP_PROVIDERNAME = DBPROPENUM.PROVIDERNAME; pub const DBPROP_PROVIDEROLEDBVER = DBPROPENUM.PROVIDEROLEDBVER; pub const DBPROP_PROVIDERVER = DBPROPENUM.PROVIDERVER; pub const DBPROP_QUICKRESTART = DBPROPENUM.QUICKRESTART; pub const DBPROP_QUOTEDIDENTIFIERCASE = DBPROPENUM.QUOTEDIDENTIFIERCASE; pub const DBPROP_REENTRANTEVENTS = DBPROPENUM.REENTRANTEVENTS; pub const DBPROP_REMOVEDELETED = DBPROPENUM.REMOVEDELETED; pub const DBPROP_REPORTMULTIPLECHANGES = DBPROPENUM.REPORTMULTIPLECHANGES; pub const DBPROP_RETURNPENDINGINSERTS = DBPROPENUM.RETURNPENDINGINSERTS; pub const DBPROP_ROWRESTRICT = DBPROPENUM.ROWRESTRICT; pub const DBPROP_ROWSETCONVERSIONSONCOMMAND = DBPROPENUM.ROWSETCONVERSIONSONCOMMAND; pub const DBPROP_ROWTHREADMODEL = DBPROPENUM.ROWTHREADMODEL; pub const DBPROP_SCHEMATERM = DBPROPENUM.SCHEMATERM; pub const DBPROP_SCHEMAUSAGE = DBPROPENUM.SCHEMAUSAGE; pub const DBPROP_SERVERCURSOR = DBPROPENUM.SERVERCURSOR; pub const DBPROP_SESS_AUTOCOMMITISOLEVELS = DBPROPENUM.SESS_AUTOCOMMITISOLEVELS; pub const DBPROP_SQLSUPPORT = DBPROPENUM.SQLSUPPORT; pub const DBPROP_STRONGIDENTITY = DBPROPENUM.STRONGIDENTITY; pub const DBPROP_STRUCTUREDSTORAGE = DBPROPENUM.STRUCTUREDSTORAGE; pub const DBPROP_SUBQUERIES = DBPROPENUM.SUBQUERIES; pub const DBPROP_SUPPORTEDTXNDDL = DBPROPENUM.SUPPORTEDTXNDDL; pub const DBPROP_SUPPORTEDTXNISOLEVELS = DBPROPENUM.SUPPORTEDTXNISOLEVELS; pub const DBPROP_SUPPORTEDTXNISORETAIN = DBPROPENUM.SUPPORTEDTXNISORETAIN; pub const DBPROP_TABLETERM = DBPROPENUM.TABLETERM; pub const DBPROP_TBL_TEMPTABLE = DBPROPENUM.TBL_TEMPTABLE; pub const DBPROP_TRANSACTEDOBJECT = DBPROPENUM.TRANSACTEDOBJECT; pub const DBPROP_UPDATABILITY = DBPROPENUM.UPDATABILITY; pub const DBPROP_USERNAME = DBPROPENUM.USERNAME; pub const DBPROPENUM15 = enum(i32) { FILTERCOMPAREOPS = 209, FINDCOMPAREOPS = 210, IChapteredRowset = 202, IDBAsynchStatus = 203, IRowsetFind = 204, IRowsetView = 212, IViewChapter = 213, IViewFilter = 214, IViewRowset = 215, IViewSort = 216, INIT_ASYNCH = 200, MAXOPENCHAPTERS = 199, MAXORSINFILTER = 205, MAXSORTCOLUMNS = 206, ROWSET_ASYNCH = 201, SORTONINDEX = 207, }; pub const DBPROP_FILTERCOMPAREOPS = DBPROPENUM15.FILTERCOMPAREOPS; pub const DBPROP_FINDCOMPAREOPS = DBPROPENUM15.FINDCOMPAREOPS; pub const DBPROP_IChapteredRowset = DBPROPENUM15.IChapteredRowset; pub const DBPROP_IDBAsynchStatus = DBPROPENUM15.IDBAsynchStatus; pub const DBPROP_IRowsetFind = DBPROPENUM15.IRowsetFind; pub const DBPROP_IRowsetView = DBPROPENUM15.IRowsetView; pub const DBPROP_IViewChapter = DBPROPENUM15.IViewChapter; pub const DBPROP_IViewFilter = DBPROPENUM15.IViewFilter; pub const DBPROP_IViewRowset = DBPROPENUM15.IViewRowset; pub const DBPROP_IViewSort = DBPROPENUM15.IViewSort; pub const DBPROP_INIT_ASYNCH = DBPROPENUM15.INIT_ASYNCH; pub const DBPROP_MAXOPENCHAPTERS = DBPROPENUM15.MAXOPENCHAPTERS; pub const DBPROP_MAXORSINFILTER = DBPROPENUM15.MAXORSINFILTER; pub const DBPROP_MAXSORTCOLUMNS = DBPROPENUM15.MAXSORTCOLUMNS; pub const DBPROP_ROWSET_ASYNCH = DBPROPENUM15.ROWSET_ASYNCH; pub const DBPROP_SORTONINDEX = DBPROPENUM15.SORTONINDEX; pub const DBPROPENUM20 = enum(i32) { DBPROP_IMultipleResults = 217, DBPROP_DATASOURCE_TYPE = 251, MDPROP_AXES = 252, MDPROP_FLATTENING_SUPPORT = 253, MDPROP_MDX_JOINCUBES = 254, MDPROP_NAMED_LEVELS = 255, MDPROP_RANGEROWSET = 256, MDPROP_MDX_SLICER = 218, MDPROP_MDX_CUBEQUALIFICATION = 219, MDPROP_MDX_OUTERREFERENCE = 220, MDPROP_MDX_QUERYBYPROPERTY = 221, MDPROP_MDX_CASESUPPORT = 222, MDPROP_MDX_STRING_COMPOP = 224, MDPROP_MDX_DESCFLAGS = 225, MDPROP_MDX_SET_FUNCTIONS = 226, MDPROP_MDX_MEMBER_FUNCTIONS = 227, MDPROP_MDX_NUMERIC_FUNCTIONS = 228, MDPROP_MDX_FORMULAS = 229, MDPROP_AGGREGATECELL_UPDATE = 230, // MDPROP_MDX_AGGREGATECELL_UPDATE = 230, this enum value conflicts with MDPROP_AGGREGATECELL_UPDATE MDPROP_MDX_OBJQUALIFICATION = 261, MDPROP_MDX_NONMEASURE_EXPRESSIONS = 262, DBPROP_ACCESSORDER = 231, DBPROP_BOOKMARKINFO = 232, DBPROP_INIT_CATALOG = 233, DBPROP_ROW_BULKOPS = 234, DBPROP_PROVIDERFRIENDLYNAME = 235, DBPROP_LOCKMODE = 236, DBPROP_MULTIPLECONNECTIONS = 237, DBPROP_UNIQUEROWS = 238, DBPROP_SERVERDATAONINSERT = 239, DBPROP_STORAGEFLAGS = 240, DBPROP_CONNECTIONSTATUS = 244, DBPROP_ALTERCOLUMN = 245, DBPROP_COLUMNLCID = 246, DBPROP_RESETDATASOURCE = 247, DBPROP_INIT_OLEDBSERVICES = 248, DBPROP_IRowsetRefresh = 249, DBPROP_SERVERNAME = 250, DBPROP_IParentRowset = 257, DBPROP_HIDDENCOLUMNS = 258, DBPROP_PROVIDERMEMORY = 259, DBPROP_CLIENTCURSOR = 260, }; pub const DBPROP_IMultipleResults = DBPROPENUM20.DBPROP_IMultipleResults; pub const DBPROP_DATASOURCE_TYPE = DBPROPENUM20.DBPROP_DATASOURCE_TYPE; pub const MDPROP_AXES = DBPROPENUM20.MDPROP_AXES; pub const MDPROP_FLATTENING_SUPPORT = DBPROPENUM20.MDPROP_FLATTENING_SUPPORT; pub const MDPROP_MDX_JOINCUBES = DBPROPENUM20.MDPROP_MDX_JOINCUBES; pub const MDPROP_NAMED_LEVELS = DBPROPENUM20.MDPROP_NAMED_LEVELS; pub const MDPROP_RANGEROWSET = DBPROPENUM20.MDPROP_RANGEROWSET; pub const MDPROP_MDX_SLICER = DBPROPENUM20.MDPROP_MDX_SLICER; pub const MDPROP_MDX_CUBEQUALIFICATION = DBPROPENUM20.MDPROP_MDX_CUBEQUALIFICATION; pub const MDPROP_MDX_OUTERREFERENCE = DBPROPENUM20.MDPROP_MDX_OUTERREFERENCE; pub const MDPROP_MDX_QUERYBYPROPERTY = DBPROPENUM20.MDPROP_MDX_QUERYBYPROPERTY; pub const MDPROP_MDX_CASESUPPORT = DBPROPENUM20.MDPROP_MDX_CASESUPPORT; pub const MDPROP_MDX_STRING_COMPOP = DBPROPENUM20.MDPROP_MDX_STRING_COMPOP; pub const MDPROP_MDX_DESCFLAGS = DBPROPENUM20.MDPROP_MDX_DESCFLAGS; pub const MDPROP_MDX_SET_FUNCTIONS = DBPROPENUM20.MDPROP_MDX_SET_FUNCTIONS; pub const MDPROP_MDX_MEMBER_FUNCTIONS = DBPROPENUM20.MDPROP_MDX_MEMBER_FUNCTIONS; pub const MDPROP_MDX_NUMERIC_FUNCTIONS = DBPROPENUM20.MDPROP_MDX_NUMERIC_FUNCTIONS; pub const MDPROP_MDX_FORMULAS = DBPROPENUM20.MDPROP_MDX_FORMULAS; pub const MDPROP_AGGREGATECELL_UPDATE = DBPROPENUM20.MDPROP_AGGREGATECELL_UPDATE; pub const MDPROP_MDX_AGGREGATECELL_UPDATE = DBPROPENUM20.MDPROP_AGGREGATECELL_UPDATE; pub const MDPROP_MDX_OBJQUALIFICATION = DBPROPENUM20.MDPROP_MDX_OBJQUALIFICATION; pub const MDPROP_MDX_NONMEASURE_EXPRESSIONS = DBPROPENUM20.MDPROP_MDX_NONMEASURE_EXPRESSIONS; pub const DBPROP_ACCESSORDER = DBPROPENUM20.DBPROP_ACCESSORDER; pub const DBPROP_BOOKMARKINFO = DBPROPENUM20.DBPROP_BOOKMARKINFO; pub const DBPROP_INIT_CATALOG = DBPROPENUM20.DBPROP_INIT_CATALOG; pub const DBPROP_ROW_BULKOPS = DBPROPENUM20.DBPROP_ROW_BULKOPS; pub const DBPROP_PROVIDERFRIENDLYNAME = DBPROPENUM20.DBPROP_PROVIDERFRIENDLYNAME; pub const DBPROP_LOCKMODE = DBPROPENUM20.DBPROP_LOCKMODE; pub const DBPROP_MULTIPLECONNECTIONS = DBPROPENUM20.DBPROP_MULTIPLECONNECTIONS; pub const DBPROP_UNIQUEROWS = DBPROPENUM20.DBPROP_UNIQUEROWS; pub const DBPROP_SERVERDATAONINSERT = DBPROPENUM20.DBPROP_SERVERDATAONINSERT; pub const DBPROP_STORAGEFLAGS = DBPROPENUM20.DBPROP_STORAGEFLAGS; pub const DBPROP_CONNECTIONSTATUS = DBPROPENUM20.DBPROP_CONNECTIONSTATUS; pub const DBPROP_ALTERCOLUMN = DBPROPENUM20.DBPROP_ALTERCOLUMN; pub const DBPROP_COLUMNLCID = DBPROPENUM20.DBPROP_COLUMNLCID; pub const DBPROP_RESETDATASOURCE = DBPROPENUM20.DBPROP_RESETDATASOURCE; pub const DBPROP_INIT_OLEDBSERVICES = DBPROPENUM20.DBPROP_INIT_OLEDBSERVICES; pub const DBPROP_IRowsetRefresh = DBPROPENUM20.DBPROP_IRowsetRefresh; pub const DBPROP_SERVERNAME = DBPROPENUM20.DBPROP_SERVERNAME; pub const DBPROP_IParentRowset = DBPROPENUM20.DBPROP_IParentRowset; pub const DBPROP_HIDDENCOLUMNS = DBPROPENUM20.DBPROP_HIDDENCOLUMNS; pub const DBPROP_PROVIDERMEMORY = DBPROPENUM20.DBPROP_PROVIDERMEMORY; pub const DBPROP_CLIENTCURSOR = DBPROPENUM20.DBPROP_CLIENTCURSOR; pub const DBPROPENUM21 = enum(i32) { TRUSTEE_USERNAME = 241, TRUSTEE_AUTHENTICATION = 242, TRUSTEE_NEWAUTHENTICATION = 243, IRow = 263, IRowChange = 264, IRowSchemaChange = 265, IGetRow = 266, IScopedOperations = 267, IBindResource = 268, ICreateRow = 269, INIT_BINDFLAGS = 270, INIT_LOCKOWNER = 271, GENERATEURL = 273, IDBBinderProperties = 274, IColumnsInfo2 = 275, IRegisterProvider = 276, IGetSession = 277, IGetSourceRow = 278, IRowsetCurrentIndex = 279, OPENROWSETSUPPORT = 280, COL_ISLONG = 281, }; pub const DBPROP_TRUSTEE_USERNAME = DBPROPENUM21.TRUSTEE_USERNAME; pub const DBPROP_TRUSTEE_AUTHENTICATION = DBPROPENUM21.TRUSTEE_AUTHENTICATION; pub const DBPROP_TRUSTEE_NEWAUTHENTICATION = DBPROPENUM21.TRUSTEE_NEWAUTHENTICATION; pub const DBPROP_IRow = DBPROPENUM21.IRow; pub const DBPROP_IRowChange = DBPROPENUM21.IRowChange; pub const DBPROP_IRowSchemaChange = DBPROPENUM21.IRowSchemaChange; pub const DBPROP_IGetRow = DBPROPENUM21.IGetRow; pub const DBPROP_IScopedOperations = DBPROPENUM21.IScopedOperations; pub const DBPROP_IBindResource = DBPROPENUM21.IBindResource; pub const DBPROP_ICreateRow = DBPROPENUM21.ICreateRow; pub const DBPROP_INIT_BINDFLAGS = DBPROPENUM21.INIT_BINDFLAGS; pub const DBPROP_INIT_LOCKOWNER = DBPROPENUM21.INIT_LOCKOWNER; pub const DBPROP_GENERATEURL = DBPROPENUM21.GENERATEURL; pub const DBPROP_IDBBinderProperties = DBPROPENUM21.IDBBinderProperties; pub const DBPROP_IColumnsInfo2 = DBPROPENUM21.IColumnsInfo2; pub const DBPROP_IRegisterProvider = DBPROPENUM21.IRegisterProvider; pub const DBPROP_IGetSession = DBPROPENUM21.IGetSession; pub const DBPROP_IGetSourceRow = DBPROPENUM21.IGetSourceRow; pub const DBPROP_IRowsetCurrentIndex = DBPROPENUM21.IRowsetCurrentIndex; pub const DBPROP_OPENROWSETSUPPORT = DBPROPENUM21.OPENROWSETSUPPORT; pub const DBPROP_COL_ISLONG = DBPROPENUM21.COL_ISLONG; pub const DBPROPENUM25 = enum(i32) { COL_SEED = 282, COL_INCREMENT = 283, INIT_GENERALTIMEOUT = 284, COMSERVICES = 285, }; pub const DBPROP_COL_SEED = DBPROPENUM25.COL_SEED; pub const DBPROP_COL_INCREMENT = DBPROPENUM25.COL_INCREMENT; pub const DBPROP_INIT_GENERALTIMEOUT = DBPROPENUM25.INIT_GENERALTIMEOUT; pub const DBPROP_COMSERVICES = DBPROPENUM25.COMSERVICES; pub const DBPROPENUM26 = enum(i32) { DBPROP_OUTPUTSTREAM = 286, DBPROP_OUTPUTENCODING = 287, DBPROP_TABLESTATISTICS = 288, DBPROP_SKIPROWCOUNTRESULTS = 291, DBPROP_IRowsetBookmark = 292, MDPROP_VISUALMODE = 293, }; pub const DBPROP_OUTPUTSTREAM = DBPROPENUM26.DBPROP_OUTPUTSTREAM; pub const DBPROP_OUTPUTENCODING = DBPROPENUM26.DBPROP_OUTPUTENCODING; pub const DBPROP_TABLESTATISTICS = DBPROPENUM26.DBPROP_TABLESTATISTICS; pub const DBPROP_SKIPROWCOUNTRESULTS = DBPROPENUM26.DBPROP_SKIPROWCOUNTRESULTS; pub const DBPROP_IRowsetBookmark = DBPROPENUM26.DBPROP_IRowsetBookmark; pub const MDPROP_VISUALMODE = DBPROPENUM26.MDPROP_VISUALMODE; pub const DBPARAMFLAGSENUM = enum(i32) { INPUT = 1, OUTPUT = 2, SIGNED = 16, NULLABLE = 64, LONG = 128, }; pub const DBPARAMFLAGS_ISINPUT = DBPARAMFLAGSENUM.INPUT; pub const DBPARAMFLAGS_ISOUTPUT = DBPARAMFLAGSENUM.OUTPUT; pub const DBPARAMFLAGS_ISSIGNED = DBPARAMFLAGSENUM.SIGNED; pub const DBPARAMFLAGS_ISNULLABLE = DBPARAMFLAGSENUM.NULLABLE; pub const DBPARAMFLAGS_ISLONG = DBPARAMFLAGSENUM.LONG; pub const DBPARAMFLAGSENUM20 = enum(i32) { E = 256, }; pub const DBPARAMFLAGS_SCALEISNEGATIVE = DBPARAMFLAGSENUM20.E; pub const DBPROPFLAGSENUM = enum(i32) { NOTSUPPORTED = 0, COLUMN = 1, DATASOURCE = 2, DATASOURCECREATE = 4, DATASOURCEINFO = 8, DBINIT = 16, INDEX = 32, ROWSET = 64, TABLE = 128, COLUMNOK = 256, READ = 512, WRITE = 1024, REQUIRED = 2048, SESSION = 4096, }; pub const DBPROPFLAGS_NOTSUPPORTED = DBPROPFLAGSENUM.NOTSUPPORTED; pub const DBPROPFLAGS_COLUMN = DBPROPFLAGSENUM.COLUMN; pub const DBPROPFLAGS_DATASOURCE = DBPROPFLAGSENUM.DATASOURCE; pub const DBPROPFLAGS_DATASOURCECREATE = DBPROPFLAGSENUM.DATASOURCECREATE; pub const DBPROPFLAGS_DATASOURCEINFO = DBPROPFLAGSENUM.DATASOURCEINFO; pub const DBPROPFLAGS_DBINIT = DBPROPFLAGSENUM.DBINIT; pub const DBPROPFLAGS_INDEX = DBPROPFLAGSENUM.INDEX; pub const DBPROPFLAGS_ROWSET = DBPROPFLAGSENUM.ROWSET; pub const DBPROPFLAGS_TABLE = DBPROPFLAGSENUM.TABLE; pub const DBPROPFLAGS_COLUMNOK = DBPROPFLAGSENUM.COLUMNOK; pub const DBPROPFLAGS_READ = DBPROPFLAGSENUM.READ; pub const DBPROPFLAGS_WRITE = DBPROPFLAGSENUM.WRITE; pub const DBPROPFLAGS_REQUIRED = DBPROPFLAGSENUM.REQUIRED; pub const DBPROPFLAGS_SESSION = DBPROPFLAGSENUM.SESSION; pub const DBPROPFLAGSENUM21 = enum(i32) { E = 8192, }; pub const DBPROPFLAGS_TRUSTEE = DBPROPFLAGSENUM21.E; pub const DBPROPFLAGSENUM25 = enum(i32) { W = 16384, }; pub const DBPROPFLAGS_VIEW = DBPROPFLAGSENUM25.W; pub const DBPROPFLAGSENUM26 = enum(i32) { M = 32768, }; pub const DBPROPFLAGS_STREAM = DBPROPFLAGSENUM26.M; pub const DBPROPOPTIONSENUM = enum(i32) { REQUIRED = 0, SETIFCHEAP = 1, // OPTIONAL = 1, this enum value conflicts with SETIFCHEAP }; pub const DBPROPOPTIONS_REQUIRED = DBPROPOPTIONSENUM.REQUIRED; pub const DBPROPOPTIONS_SETIFCHEAP = DBPROPOPTIONSENUM.SETIFCHEAP; pub const DBPROPOPTIONS_OPTIONAL = DBPROPOPTIONSENUM.SETIFCHEAP; pub const DBPROPSTATUSENUM = enum(i32) { OK = 0, NOTSUPPORTED = 1, BADVALUE = 2, BADOPTION = 3, BADCOLUMN = 4, NOTALLSETTABLE = 5, NOTSETTABLE = 6, NOTSET = 7, CONFLICTING = 8, }; pub const DBPROPSTATUS_OK = DBPROPSTATUSENUM.OK; pub const DBPROPSTATUS_NOTSUPPORTED = DBPROPSTATUSENUM.NOTSUPPORTED; pub const DBPROPSTATUS_BADVALUE = DBPROPSTATUSENUM.BADVALUE; pub const DBPROPSTATUS_BADOPTION = DBPROPSTATUSENUM.BADOPTION; pub const DBPROPSTATUS_BADCOLUMN = DBPROPSTATUSENUM.BADCOLUMN; pub const DBPROPSTATUS_NOTALLSETTABLE = DBPROPSTATUSENUM.NOTALLSETTABLE; pub const DBPROPSTATUS_NOTSETTABLE = DBPROPSTATUSENUM.NOTSETTABLE; pub const DBPROPSTATUS_NOTSET = DBPROPSTATUSENUM.NOTSET; pub const DBPROPSTATUS_CONFLICTING = DBPROPSTATUSENUM.CONFLICTING; pub const DBPROPSTATUSENUM21 = enum(i32) { E = 9, }; pub const DBPROPSTATUS_NOTAVAILABLE = DBPROPSTATUSENUM21.E; pub const DBINDEX_COL_ORDERENUM = enum(i32) { ASC = 0, DESC = 1, }; pub const DBINDEX_COL_ORDER_ASC = DBINDEX_COL_ORDERENUM.ASC; pub const DBINDEX_COL_ORDER_DESC = DBINDEX_COL_ORDERENUM.DESC; pub const DBCOLUMNDESCFLAGSENUM = enum(i32) { TYPENAME = 1, ITYPEINFO = 2, PROPERTIES = 4, CLSID = 8, COLSIZE = 16, DBCID = 32, WTYPE = 64, PRECISION = 128, SCALE = 256, }; pub const DBCOLUMNDESCFLAGS_TYPENAME = DBCOLUMNDESCFLAGSENUM.TYPENAME; pub const DBCOLUMNDESCFLAGS_ITYPEINFO = DBCOLUMNDESCFLAGSENUM.ITYPEINFO; pub const DBCOLUMNDESCFLAGS_PROPERTIES = DBCOLUMNDESCFLAGSENUM.PROPERTIES; pub const DBCOLUMNDESCFLAGS_CLSID = DBCOLUMNDESCFLAGSENUM.CLSID; pub const DBCOLUMNDESCFLAGS_COLSIZE = DBCOLUMNDESCFLAGSENUM.COLSIZE; pub const DBCOLUMNDESCFLAGS_DBCID = DBCOLUMNDESCFLAGSENUM.DBCID; pub const DBCOLUMNDESCFLAGS_WTYPE = DBCOLUMNDESCFLAGSENUM.WTYPE; pub const DBCOLUMNDESCFLAGS_PRECISION = DBCOLUMNDESCFLAGSENUM.PRECISION; pub const DBCOLUMNDESCFLAGS_SCALE = DBCOLUMNDESCFLAGSENUM.SCALE; pub const DBEVENTPHASEENUM = enum(i32) { OKTODO = 0, ABOUTTODO = 1, SYNCHAFTER = 2, FAILEDTODO = 3, DIDEVENT = 4, }; pub const DBEVENTPHASE_OKTODO = DBEVENTPHASEENUM.OKTODO; pub const DBEVENTPHASE_ABOUTTODO = DBEVENTPHASEENUM.ABOUTTODO; pub const DBEVENTPHASE_SYNCHAFTER = DBEVENTPHASEENUM.SYNCHAFTER; pub const DBEVENTPHASE_FAILEDTODO = DBEVENTPHASEENUM.FAILEDTODO; pub const DBEVENTPHASE_DIDEVENT = DBEVENTPHASEENUM.DIDEVENT; pub const DBREASONENUM = enum(i32) { ROWSET_FETCHPOSITIONCHANGE = 0, ROWSET_RELEASE = 1, COLUMN_SET = 2, COLUMN_RECALCULATED = 3, ROW_ACTIVATE = 4, ROW_RELEASE = 5, ROW_DELETE = 6, ROW_FIRSTCHANGE = 7, ROW_INSERT = 8, ROW_RESYNCH = 9, ROW_UNDOCHANGE = 10, ROW_UNDOINSERT = 11, ROW_UNDODELETE = 12, ROW_UPDATE = 13, ROWSET_CHANGED = 14, }; pub const DBREASON_ROWSET_FETCHPOSITIONCHANGE = DBREASONENUM.ROWSET_FETCHPOSITIONCHANGE; pub const DBREASON_ROWSET_RELEASE = DBREASONENUM.ROWSET_RELEASE; pub const DBREASON_COLUMN_SET = DBREASONENUM.COLUMN_SET; pub const DBREASON_COLUMN_RECALCULATED = DBREASONENUM.COLUMN_RECALCULATED; pub const DBREASON_ROW_ACTIVATE = DBREASONENUM.ROW_ACTIVATE; pub const DBREASON_ROW_RELEASE = DBREASONENUM.ROW_RELEASE; pub const DBREASON_ROW_DELETE = DBREASONENUM.ROW_DELETE; pub const DBREASON_ROW_FIRSTCHANGE = DBREASONENUM.ROW_FIRSTCHANGE; pub const DBREASON_ROW_INSERT = DBREASONENUM.ROW_INSERT; pub const DBREASON_ROW_RESYNCH = DBREASONENUM.ROW_RESYNCH; pub const DBREASON_ROW_UNDOCHANGE = DBREASONENUM.ROW_UNDOCHANGE; pub const DBREASON_ROW_UNDOINSERT = DBREASONENUM.ROW_UNDOINSERT; pub const DBREASON_ROW_UNDODELETE = DBREASONENUM.ROW_UNDODELETE; pub const DBREASON_ROW_UPDATE = DBREASONENUM.ROW_UPDATE; pub const DBREASON_ROWSET_CHANGED = DBREASONENUM.ROWSET_CHANGED; pub const DBREASONENUM15 = enum(i32) { POSITION_CHANGED = 15, POSITION_CHAPTERCHANGED = 16, POSITION_CLEARED = 17, _ASYNCHINSERT = 18, }; pub const DBREASON_ROWPOSITION_CHANGED = DBREASONENUM15.POSITION_CHANGED; pub const DBREASON_ROWPOSITION_CHAPTERCHANGED = DBREASONENUM15.POSITION_CHAPTERCHANGED; pub const DBREASON_ROWPOSITION_CLEARED = DBREASONENUM15.POSITION_CLEARED; pub const DBREASON_ROW_ASYNCHINSERT = DBREASONENUM15._ASYNCHINSERT; pub const DBCOMPAREOPSENUM = enum(i32) { LT = 0, LE = 1, EQ = 2, GE = 3, GT = 4, BEGINSWITH = 5, CONTAINS = 6, NE = 7, IGNORE = 8, CASESENSITIVE = 4096, CASEINSENSITIVE = 8192, }; pub const DBCOMPAREOPS_LT = DBCOMPAREOPSENUM.LT; pub const DBCOMPAREOPS_LE = DBCOMPAREOPSENUM.LE; pub const DBCOMPAREOPS_EQ = DBCOMPAREOPSENUM.EQ; pub const DBCOMPAREOPS_GE = DBCOMPAREOPSENUM.GE; pub const DBCOMPAREOPS_GT = DBCOMPAREOPSENUM.GT; pub const DBCOMPAREOPS_BEGINSWITH = DBCOMPAREOPSENUM.BEGINSWITH; pub const DBCOMPAREOPS_CONTAINS = DBCOMPAREOPSENUM.CONTAINS; pub const DBCOMPAREOPS_NE = DBCOMPAREOPSENUM.NE; pub const DBCOMPAREOPS_IGNORE = DBCOMPAREOPSENUM.IGNORE; pub const DBCOMPAREOPS_CASESENSITIVE = DBCOMPAREOPSENUM.CASESENSITIVE; pub const DBCOMPAREOPS_CASEINSENSITIVE = DBCOMPAREOPSENUM.CASEINSENSITIVE; pub const DBCOMPAREOPSENUM20 = enum(i32) { BEGINSWITH = 9, CONTAINS = 10, }; pub const DBCOMPAREOPS_NOTBEGINSWITH = DBCOMPAREOPSENUM20.BEGINSWITH; pub const DBCOMPAREOPS_NOTCONTAINS = DBCOMPAREOPSENUM20.CONTAINS; pub const DBASYNCHOPENUM = enum(i32) { N = 0, }; pub const DBASYNCHOP_OPEN = DBASYNCHOPENUM.N; pub const DBASYNCHPHASEENUM = enum(i32) { INITIALIZATION = 0, POPULATION = 1, COMPLETE = 2, CANCELED = 3, }; pub const DBASYNCHPHASE_INITIALIZATION = DBASYNCHPHASEENUM.INITIALIZATION; pub const DBASYNCHPHASE_POPULATION = DBASYNCHPHASEENUM.POPULATION; pub const DBASYNCHPHASE_COMPLETE = DBASYNCHPHASEENUM.COMPLETE; pub const DBASYNCHPHASE_CANCELED = DBASYNCHPHASEENUM.CANCELED; pub const DBSORTENUM = enum(i32) { ASCENDING = 0, DESCENDING = 1, }; pub const DBSORT_ASCENDING = DBSORTENUM.ASCENDING; pub const DBSORT_DESCENDING = DBSORTENUM.DESCENDING; pub const DBCOMMANDPERSISTFLAGENUM = enum(i32) { E = 1, }; pub const DBCOMMANDPERSISTFLAG_NOSAVE = DBCOMMANDPERSISTFLAGENUM.E; pub const DBCOMMANDPERSISTFLAGENUM21 = enum(i32) { DEFAULT = 0, PERSISTVIEW = 2, PERSISTPROCEDURE = 4, }; pub const DBCOMMANDPERSISTFLAG_DEFAULT = DBCOMMANDPERSISTFLAGENUM21.DEFAULT; pub const DBCOMMANDPERSISTFLAG_PERSISTVIEW = DBCOMMANDPERSISTFLAGENUM21.PERSISTVIEW; pub const DBCOMMANDPERSISTFLAG_PERSISTPROCEDURE = DBCOMMANDPERSISTFLAGENUM21.PERSISTPROCEDURE; pub const DBCONSTRAINTTYPEENUM = enum(i32) { UNIQUE = 0, FOREIGNKEY = 1, PRIMARYKEY = 2, CHECK = 3, }; pub const DBCONSTRAINTTYPE_UNIQUE = DBCONSTRAINTTYPEENUM.UNIQUE; pub const DBCONSTRAINTTYPE_FOREIGNKEY = DBCONSTRAINTTYPEENUM.FOREIGNKEY; pub const DBCONSTRAINTTYPE_PRIMARYKEY = DBCONSTRAINTTYPEENUM.PRIMARYKEY; pub const DBCONSTRAINTTYPE_CHECK = DBCONSTRAINTTYPEENUM.CHECK; pub const DBUPDELRULEENUM = enum(i32) { NOACTION = 0, CASCADE = 1, SETNULL = 2, SETDEFAULT = 3, }; pub const DBUPDELRULE_NOACTION = DBUPDELRULEENUM.NOACTION; pub const DBUPDELRULE_CASCADE = DBUPDELRULEENUM.CASCADE; pub const DBUPDELRULE_SETNULL = DBUPDELRULEENUM.SETNULL; pub const DBUPDELRULE_SETDEFAULT = DBUPDELRULEENUM.SETDEFAULT; pub const DBMATCHTYPEENUM = enum(i32) { FULL = 0, NONE = 1, PARTIAL = 2, }; pub const DBMATCHTYPE_FULL = DBMATCHTYPEENUM.FULL; pub const DBMATCHTYPE_NONE = DBMATCHTYPEENUM.NONE; pub const DBMATCHTYPE_PARTIAL = DBMATCHTYPEENUM.PARTIAL; pub const DBDEFERRABILITYENUM = enum(i32) { ED = 1, ABLE = 2, }; pub const DBDEFERRABILITY_DEFERRED = DBDEFERRABILITYENUM.ED; pub const DBDEFERRABILITY_DEFERRABLE = DBDEFERRABILITYENUM.ABLE; pub const DBACCESSORFLAGSENUM = enum(i32) { INVALID = 0, PASSBYREF = 1, ROWDATA = 2, PARAMETERDATA = 4, OPTIMIZED = 8, INHERITED = 16, }; pub const DBACCESSOR_INVALID = DBACCESSORFLAGSENUM.INVALID; pub const DBACCESSOR_PASSBYREF = DBACCESSORFLAGSENUM.PASSBYREF; pub const DBACCESSOR_ROWDATA = DBACCESSORFLAGSENUM.ROWDATA; pub const DBACCESSOR_PARAMETERDATA = DBACCESSORFLAGSENUM.PARAMETERDATA; pub const DBACCESSOR_OPTIMIZED = DBACCESSORFLAGSENUM.OPTIMIZED; pub const DBACCESSOR_INHERITED = DBACCESSORFLAGSENUM.INHERITED; pub const DBBINDSTATUSENUM = enum(i32) { OK = 0, BADORDINAL = 1, UNSUPPORTEDCONVERSION = 2, BADBINDINFO = 3, BADSTORAGEFLAGS = 4, NOINTERFACE = 5, MULTIPLESTORAGE = 6, }; pub const DBBINDSTATUS_OK = DBBINDSTATUSENUM.OK; pub const DBBINDSTATUS_BADORDINAL = DBBINDSTATUSENUM.BADORDINAL; pub const DBBINDSTATUS_UNSUPPORTEDCONVERSION = DBBINDSTATUSENUM.UNSUPPORTEDCONVERSION; pub const DBBINDSTATUS_BADBINDINFO = DBBINDSTATUSENUM.BADBINDINFO; pub const DBBINDSTATUS_BADSTORAGEFLAGS = DBBINDSTATUSENUM.BADSTORAGEFLAGS; pub const DBBINDSTATUS_NOINTERFACE = DBBINDSTATUSENUM.NOINTERFACE; pub const DBBINDSTATUS_MULTIPLESTORAGE = DBBINDSTATUSENUM.MULTIPLESTORAGE; const IID_IAccessor_Value = Guid.initString("0c733a8c-2a1c-11ce-ade5-00aa0044773d"); pub const IID_IAccessor = &IID_IAccessor_Value; pub const IAccessor = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, AddRefAccessor: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IAccessor, hAccessor: usize, pcRefCount: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IAccessor, hAccessor: usize, pcRefCount: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, CreateAccessor: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IAccessor, dwAccessorFlags: u32, cBindings: usize, rgBindings: [*]const DBBINDING, cbRowSize: usize, phAccessor: ?*usize, rgStatus: ?[*]u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IAccessor, dwAccessorFlags: u32, cBindings: usize, rgBindings: [*]const DBBINDING, cbRowSize: usize, phAccessor: ?*usize, rgStatus: ?[*]u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetBindings: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IAccessor, hAccessor: usize, pdwAccessorFlags: ?*u32, pcBindings: ?*usize, prgBindings: ?*?*DBBINDING, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IAccessor, hAccessor: usize, pdwAccessorFlags: ?*u32, pcBindings: ?*usize, prgBindings: ?*?*DBBINDING, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, ReleaseAccessor: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IAccessor, hAccessor: usize, pcRefCount: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IAccessor, hAccessor: usize, pcRefCount: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IAccessor_AddRefAccessor(self: *const T, hAccessor: usize, pcRefCount: ?*u32) HRESULT { return @as(*const IAccessor.VTable, @ptrCast(self.vtable)).AddRefAccessor(@as(*const IAccessor, @ptrCast(self)), hAccessor, pcRefCount); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IAccessor_CreateAccessor(self: *const T, dwAccessorFlags: u32, cBindings: usize, rgBindings: [*]const DBBINDING, cbRowSize: usize, phAccessor: ?*usize, rgStatus: ?[*]u32) HRESULT { return @as(*const IAccessor.VTable, @ptrCast(self.vtable)).CreateAccessor(@as(*const IAccessor, @ptrCast(self)), dwAccessorFlags, cBindings, rgBindings, cbRowSize, phAccessor, rgStatus); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IAccessor_GetBindings(self: *const T, hAccessor: usize, pdwAccessorFlags: ?*u32, pcBindings: ?*usize, prgBindings: ?*?*DBBINDING) HRESULT { return @as(*const IAccessor.VTable, @ptrCast(self.vtable)).GetBindings(@as(*const IAccessor, @ptrCast(self)), hAccessor, pdwAccessorFlags, pcBindings, prgBindings); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IAccessor_ReleaseAccessor(self: *const T, hAccessor: usize, pcRefCount: ?*u32) HRESULT { return @as(*const IAccessor.VTable, @ptrCast(self.vtable)).ReleaseAccessor(@as(*const IAccessor, @ptrCast(self)), hAccessor, pcRefCount); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IRowset_Value = Guid.initString("0c733a7c-2a1c-11ce-ade5-00aa0044773d"); pub const IID_IRowset = &IID_IRowset_Value; pub const IRowset = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, AddRefRows: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IRowset, cRows: usize, rghRows: ?*const usize, rgRefCounts: ?*u32, rgRowStatus: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IRowset, cRows: usize, rghRows: ?*const usize, rgRefCounts: ?*u32, rgRowStatus: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetData: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IRowset, hRow: usize, hAccessor: usize, pData: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IRowset, hRow: usize, hAccessor: usize, pData: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetNextRows: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IRowset, hReserved: usize, lRowsOffset: isize, cRows: isize, pcRowsObtained: ?*usize, prghRows: ?*?*usize, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IRowset, hReserved: usize, lRowsOffset: isize, cRows: isize, pcRowsObtained: ?*usize, prghRows: ?*?*usize, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, ReleaseRows: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IRowset, cRows: usize, rghRows: ?*const usize, rgRowOptions: ?*u32, rgRefCounts: ?*u32, rgRowStatus: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IRowset, cRows: usize, rghRows: ?*const usize, rgRowOptions: ?*u32, rgRefCounts: ?*u32, rgRowStatus: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, RestartPosition: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IRowset, hReserved: usize, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IRowset, hReserved: usize, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRowset_AddRefRows(self: *const T, cRows: usize, rghRows: ?*const usize, rgRefCounts: ?*u32, rgRowStatus: ?*u32) HRESULT { return @as(*const IRowset.VTable, @ptrCast(self.vtable)).AddRefRows(@as(*const IRowset, @ptrCast(self)), cRows, rghRows, rgRefCounts, rgRowStatus); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRowset_GetData(self: *const T, hRow: usize, hAccessor: usize, pData: ?*anyopaque) HRESULT { return @as(*const IRowset.VTable, @ptrCast(self.vtable)).GetData(@as(*const IRowset, @ptrCast(self)), hRow, hAccessor, pData); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRowset_GetNextRows(self: *const T, hReserved: usize, lRowsOffset: isize, cRows: isize, pcRowsObtained: ?*usize, prghRows: ?*?*usize) HRESULT { return @as(*const IRowset.VTable, @ptrCast(self.vtable)).GetNextRows(@as(*const IRowset, @ptrCast(self)), hReserved, lRowsOffset, cRows, pcRowsObtained, prghRows); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRowset_ReleaseRows(self: *const T, cRows: usize, rghRows: ?*const usize, rgRowOptions: ?*u32, rgRefCounts: ?*u32, rgRowStatus: ?*u32) HRESULT { return @as(*const IRowset.VTable, @ptrCast(self.vtable)).ReleaseRows(@as(*const IRowset, @ptrCast(self)), cRows, rghRows, rgRowOptions, rgRefCounts, rgRowStatus); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRowset_RestartPosition(self: *const T, hReserved: usize) HRESULT { return @as(*const IRowset.VTable, @ptrCast(self.vtable)).RestartPosition(@as(*const IRowset, @ptrCast(self)), hReserved); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IRowsetInfo_Value = Guid.initString("0c733a55-2a1c-11ce-ade5-00aa0044773d"); pub const IID_IRowsetInfo = &IID_IRowsetInfo_Value; pub const IRowsetInfo = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, GetProperties: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IRowsetInfo, cPropertyIDSets: u32, rgPropertyIDSets: ?[*]const DBPROPIDSET, pcPropertySets: ?*u32, prgPropertySets: ?*?*DBPROPSET, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IRowsetInfo, cPropertyIDSets: u32, rgPropertyIDSets: ?[*]const DBPROPIDSET, pcPropertySets: ?*u32, prgPropertySets: ?*?*DBPROPSET, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetReferencedRowset: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IRowsetInfo, iOrdinal: usize, riid: ?*const Guid, ppReferencedRowset: ?*?*IUnknown, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IRowsetInfo, iOrdinal: usize, riid: ?*const Guid, ppReferencedRowset: ?*?*IUnknown, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetSpecification: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IRowsetInfo, riid: ?*const Guid, ppSpecification: ?*?*IUnknown, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IRowsetInfo, riid: ?*const Guid, ppSpecification: ?*?*IUnknown, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRowsetInfo_GetProperties(self: *const T, cPropertyIDSets: u32, rgPropertyIDSets: ?[*]const DBPROPIDSET, pcPropertySets: ?*u32, prgPropertySets: ?*?*DBPROPSET) HRESULT { return @as(*const IRowsetInfo.VTable, @ptrCast(self.vtable)).GetProperties(@as(*const IRowsetInfo, @ptrCast(self)), cPropertyIDSets, rgPropertyIDSets, pcPropertySets, prgPropertySets); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRowsetInfo_GetReferencedRowset(self: *const T, iOrdinal: usize, riid: ?*const Guid, ppReferencedRowset: ?*?*IUnknown) HRESULT { return @as(*const IRowsetInfo.VTable, @ptrCast(self.vtable)).GetReferencedRowset(@as(*const IRowsetInfo, @ptrCast(self)), iOrdinal, riid, ppReferencedRowset); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRowsetInfo_GetSpecification(self: *const T, riid: ?*const Guid, ppSpecification: ?*?*IUnknown) HRESULT { return @as(*const IRowsetInfo.VTable, @ptrCast(self.vtable)).GetSpecification(@as(*const IRowsetInfo, @ptrCast(self)), riid, ppSpecification); } }; } pub usingnamespace MethodMixin(@This()); }; pub const DBCOMPAREENUM = enum(i32) { LT = 0, EQ = 1, GT = 2, NE = 3, NOTCOMPARABLE = 4, }; pub const DBCOMPARE_LT = DBCOMPAREENUM.LT; pub const DBCOMPARE_EQ = DBCOMPAREENUM.EQ; pub const DBCOMPARE_GT = DBCOMPAREENUM.GT; pub const DBCOMPARE_NE = DBCOMPAREENUM.NE; pub const DBCOMPARE_NOTCOMPARABLE = DBCOMPAREENUM.NOTCOMPARABLE; const IID_IRowsetLocate_Value = Guid.initString("0c733a7d-2a1c-11ce-ade5-00aa0044773d"); pub const IID_IRowsetLocate = &IID_IRowsetLocate_Value; pub const IRowsetLocate = extern struct { pub const VTable = extern struct { base: IRowset.VTable, Compare: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IRowsetLocate, hReserved: usize, cbBookmark1: usize, pBookmark1: ?*const u8, cbBookmark2: usize, pBookmark2: ?*const u8, pComparison: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IRowsetLocate, hReserved: usize, cbBookmark1: usize, pBookmark1: ?*const u8, cbBookmark2: usize, pBookmark2: ?*const u8, pComparison: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetRowsAt: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IRowsetLocate, hReserved1: usize, hReserved2: usize, cbBookmark: usize, pBookmark: ?*const u8, lRowsOffset: isize, cRows: isize, pcRowsObtained: ?*usize, prghRows: ?*?*usize, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IRowsetLocate, hReserved1: usize, hReserved2: usize, cbBookmark: usize, pBookmark: ?*const u8, lRowsOffset: isize, cRows: isize, pcRowsObtained: ?*usize, prghRows: ?*?*usize, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetRowsByBookmark: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IRowsetLocate, hReserved: usize, cRows: usize, rgcbBookmarks: ?*const usize, rgpBookmarks: ?*const ?*u8, rghRows: ?*usize, rgRowStatus: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IRowsetLocate, hReserved: usize, cRows: usize, rgcbBookmarks: ?*const usize, rgpBookmarks: ?*const ?*u8, rghRows: ?*usize, rgRowStatus: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Hash: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IRowsetLocate, hReserved: usize, cBookmarks: usize, rgcbBookmarks: ?*const usize, rgpBookmarks: ?*const ?*u8, rgHashedValues: ?*usize, rgBookmarkStatus: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IRowsetLocate, hReserved: usize, cBookmarks: usize, rgcbBookmarks: ?*const usize, rgpBookmarks: ?*const ?*u8, rgHashedValues: ?*usize, rgBookmarkStatus: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IRowset.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRowsetLocate_Compare(self: *const T, hReserved: usize, cbBookmark1: usize, pBookmark1: ?*const u8, cbBookmark2: usize, pBookmark2: ?*const u8, pComparison: ?*u32) HRESULT { return @as(*const IRowsetLocate.VTable, @ptrCast(self.vtable)).Compare(@as(*const IRowsetLocate, @ptrCast(self)), hReserved, cbBookmark1, pBookmark1, cbBookmark2, pBookmark2, pComparison); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRowsetLocate_GetRowsAt(self: *const T, hReserved1: usize, hReserved2: usize, cbBookmark: usize, pBookmark: ?*const u8, lRowsOffset: isize, cRows: isize, pcRowsObtained: ?*usize, prghRows: ?*?*usize) HRESULT { return @as(*const IRowsetLocate.VTable, @ptrCast(self.vtable)).GetRowsAt(@as(*const IRowsetLocate, @ptrCast(self)), hReserved1, hReserved2, cbBookmark, pBookmark, lRowsOffset, cRows, pcRowsObtained, prghRows); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRowsetLocate_GetRowsByBookmark(self: *const T, hReserved: usize, cRows: usize, rgcbBookmarks: ?*const usize, rgpBookmarks: ?*const ?*u8, rghRows: ?*usize, rgRowStatus: ?*u32) HRESULT { return @as(*const IRowsetLocate.VTable, @ptrCast(self.vtable)).GetRowsByBookmark(@as(*const IRowsetLocate, @ptrCast(self)), hReserved, cRows, rgcbBookmarks, rgpBookmarks, rghRows, rgRowStatus); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRowsetLocate_Hash(self: *const T, hReserved: usize, cBookmarks: usize, rgcbBookmarks: ?*const usize, rgpBookmarks: ?*const ?*u8, rgHashedValues: ?*usize, rgBookmarkStatus: ?*u32) HRESULT { return @as(*const IRowsetLocate.VTable, @ptrCast(self.vtable)).Hash(@as(*const IRowsetLocate, @ptrCast(self)), hReserved, cBookmarks, rgcbBookmarks, rgpBookmarks, rgHashedValues, rgBookmarkStatus); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IRowsetResynch_Value = Guid.initString("0c733a84-2a1c-11ce-ade5-00aa0044773d"); pub const IID_IRowsetResynch = &IID_IRowsetResynch_Value; pub const IRowsetResynch = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, GetVisibleData: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IRowsetResynch, hRow: usize, hAccessor: usize, pData: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IRowsetResynch, hRow: usize, hAccessor: usize, pData: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, ResynchRows: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IRowsetResynch, cRows: usize, rghRows: ?*const usize, pcRowsResynched: ?*usize, prghRowsResynched: ?*?*usize, prgRowStatus: ?*?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IRowsetResynch, cRows: usize, rghRows: ?*const usize, pcRowsResynched: ?*usize, prghRowsResynched: ?*?*usize, prgRowStatus: ?*?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRowsetResynch_GetVisibleData(self: *const T, hRow: usize, hAccessor: usize, pData: ?*anyopaque) HRESULT { return @as(*const IRowsetResynch.VTable, @ptrCast(self.vtable)).GetVisibleData(@as(*const IRowsetResynch, @ptrCast(self)), hRow, hAccessor, pData); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRowsetResynch_ResynchRows(self: *const T, cRows: usize, rghRows: ?*const usize, pcRowsResynched: ?*usize, prghRowsResynched: ?*?*usize, prgRowStatus: ?*?*u32) HRESULT { return @as(*const IRowsetResynch.VTable, @ptrCast(self.vtable)).ResynchRows(@as(*const IRowsetResynch, @ptrCast(self)), cRows, rghRows, pcRowsResynched, prghRowsResynched, prgRowStatus); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IRowsetScroll_Value = Guid.initString("0c733a7e-2a1c-11ce-ade5-00aa0044773d"); pub const IID_IRowsetScroll = &IID_IRowsetScroll_Value; pub const IRowsetScroll = extern struct { pub const VTable = extern struct { base: IRowsetLocate.VTable, GetApproximatePosition: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IRowsetScroll, hReserved: usize, cbBookmark: usize, pBookmark: ?*const u8, pulPosition: ?*usize, pcRows: ?*usize, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IRowsetScroll, hReserved: usize, cbBookmark: usize, pBookmark: ?*const u8, pulPosition: ?*usize, pcRows: ?*usize, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetRowsAtRatio: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IRowsetScroll, hReserved1: usize, hReserved2: usize, ulNumerator: usize, ulDenominator: usize, cRows: isize, pcRowsObtained: ?*usize, prghRows: ?*?*usize, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IRowsetScroll, hReserved1: usize, hReserved2: usize, ulNumerator: usize, ulDenominator: usize, cRows: isize, pcRowsObtained: ?*usize, prghRows: ?*?*usize, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IRowsetLocate.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRowsetScroll_GetApproximatePosition(self: *const T, hReserved: usize, cbBookmark: usize, pBookmark: ?*const u8, pulPosition: ?*usize, pcRows: ?*usize) HRESULT { return @as(*const IRowsetScroll.VTable, @ptrCast(self.vtable)).GetApproximatePosition(@as(*const IRowsetScroll, @ptrCast(self)), hReserved, cbBookmark, pBookmark, pulPosition, pcRows); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRowsetScroll_GetRowsAtRatio(self: *const T, hReserved1: usize, hReserved2: usize, ulNumerator: usize, ulDenominator: usize, cRows: isize, pcRowsObtained: ?*usize, prghRows: ?*?*usize) HRESULT { return @as(*const IRowsetScroll.VTable, @ptrCast(self.vtable)).GetRowsAtRatio(@as(*const IRowsetScroll, @ptrCast(self)), hReserved1, hReserved2, ulNumerator, ulDenominator, cRows, pcRowsObtained, prghRows); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IChapteredRowset_Value = Guid.initString("0c733a93-2a1c-11ce-ade5-00aa0044773d"); pub const IID_IChapteredRowset = &IID_IChapteredRowset_Value; pub const IChapteredRowset = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, AddRefChapter: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IChapteredRowset, hChapter: usize, pcRefCount: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IChapteredRowset, hChapter: usize, pcRefCount: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, ReleaseChapter: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IChapteredRowset, hChapter: usize, pcRefCount: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IChapteredRowset, hChapter: usize, pcRefCount: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IChapteredRowset_AddRefChapter(self: *const T, hChapter: usize, pcRefCount: ?*u32) HRESULT { return @as(*const IChapteredRowset.VTable, @ptrCast(self.vtable)).AddRefChapter(@as(*const IChapteredRowset, @ptrCast(self)), hChapter, pcRefCount); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IChapteredRowset_ReleaseChapter(self: *const T, hChapter: usize, pcRefCount: ?*u32) HRESULT { return @as(*const IChapteredRowset.VTable, @ptrCast(self.vtable)).ReleaseChapter(@as(*const IChapteredRowset, @ptrCast(self)), hChapter, pcRefCount); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IRowsetFind_Value = Guid.initString("0c733a9d-2a1c-11ce-ade5-00aa0044773d"); pub const IID_IRowsetFind = &IID_IRowsetFind_Value; pub const IRowsetFind = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, FindNextRow: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IRowsetFind, hChapter: usize, hAccessor: usize, pFindValue: ?*anyopaque, CompareOp: u32, cbBookmark: usize, pBookmark: ?*const u8, lRowsOffset: isize, cRows: isize, pcRowsObtained: ?*usize, prghRows: ?*?*usize, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IRowsetFind, hChapter: usize, hAccessor: usize, pFindValue: ?*anyopaque, CompareOp: u32, cbBookmark: usize, pBookmark: ?*const u8, lRowsOffset: isize, cRows: isize, pcRowsObtained: ?*usize, prghRows: ?*?*usize, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRowsetFind_FindNextRow(self: *const T, hChapter: usize, hAccessor: usize, pFindValue: ?*anyopaque, CompareOp: u32, cbBookmark: usize, pBookmark: ?*const u8, lRowsOffset: isize, cRows: isize, pcRowsObtained: ?*usize, prghRows: ?*?*usize) HRESULT { return @as(*const IRowsetFind.VTable, @ptrCast(self.vtable)).FindNextRow(@as(*const IRowsetFind, @ptrCast(self)), hChapter, hAccessor, pFindValue, CompareOp, cbBookmark, pBookmark, lRowsOffset, cRows, pcRowsObtained, prghRows); } }; } pub usingnamespace MethodMixin(@This()); }; pub const DBPOSITIONFLAGSENUM = enum(i32) { OK = 0, NOROW = 1, BOF = 2, EOF = 3, }; pub const DBPOSITION_OK = DBPOSITIONFLAGSENUM.OK; pub const DBPOSITION_NOROW = DBPOSITIONFLAGSENUM.NOROW; pub const DBPOSITION_BOF = DBPOSITIONFLAGSENUM.BOF; pub const DBPOSITION_EOF = DBPOSITIONFLAGSENUM.EOF; const IID_IRowPosition_Value = Guid.initString("0c733a94-2a1c-11ce-ade5-00aa0044773d"); pub const IID_IRowPosition = &IID_IRowPosition_Value; pub const IRowPosition = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, ClearRowPosition: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IRowPosition, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IRowPosition, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetRowPosition: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IRowPosition, phChapter: ?*usize, phRow: ?*usize, pdwPositionFlags: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IRowPosition, phChapter: ?*usize, phRow: ?*usize, pdwPositionFlags: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetRowset: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IRowPosition, riid: ?*const Guid, ppRowset: ?*?*IUnknown, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IRowPosition, riid: ?*const Guid, ppRowset: ?*?*IUnknown, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Initialize: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IRowPosition, pRowset: ?*IUnknown, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IRowPosition, pRowset: ?*IUnknown, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetRowPosition: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IRowPosition, hChapter: usize, hRow: usize, dwPositionFlags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IRowPosition, hChapter: usize, hRow: usize, dwPositionFlags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRowPosition_ClearRowPosition(self: *const T) HRESULT { return @as(*const IRowPosition.VTable, @ptrCast(self.vtable)).ClearRowPosition(@as(*const IRowPosition, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRowPosition_GetRowPosition(self: *const T, phChapter: ?*usize, phRow: ?*usize, pdwPositionFlags: ?*u32) HRESULT { return @as(*const IRowPosition.VTable, @ptrCast(self.vtable)).GetRowPosition(@as(*const IRowPosition, @ptrCast(self)), phChapter, phRow, pdwPositionFlags); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRowPosition_GetRowset(self: *const T, riid: ?*const Guid, ppRowset: ?*?*IUnknown) HRESULT { return @as(*const IRowPosition.VTable, @ptrCast(self.vtable)).GetRowset(@as(*const IRowPosition, @ptrCast(self)), riid, ppRowset); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRowPosition_Initialize(self: *const T, pRowset: ?*IUnknown) HRESULT { return @as(*const IRowPosition.VTable, @ptrCast(self.vtable)).Initialize(@as(*const IRowPosition, @ptrCast(self)), pRowset); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRowPosition_SetRowPosition(self: *const T, hChapter: usize, hRow: usize, dwPositionFlags: u32) HRESULT { return @as(*const IRowPosition.VTable, @ptrCast(self.vtable)).SetRowPosition(@as(*const IRowPosition, @ptrCast(self)), hChapter, hRow, dwPositionFlags); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IRowPositionChange_Value = Guid.initString("0997a571-126e-11d0-9f8a-00a0c9a0631e"); pub const IID_IRowPositionChange = &IID_IRowPositionChange_Value; pub const IRowPositionChange = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, OnRowPositionChange: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IRowPositionChange, eReason: u32, ePhase: u32, fCantDeny: BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IRowPositionChange, eReason: u32, ePhase: u32, fCantDeny: BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRowPositionChange_OnRowPositionChange(self: *const T, eReason: u32, ePhase: u32, fCantDeny: BOOL) HRESULT { return @as(*const IRowPositionChange.VTable, @ptrCast(self.vtable)).OnRowPositionChange(@as(*const IRowPositionChange, @ptrCast(self)), eReason, ePhase, fCantDeny); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IViewRowset_Value = Guid.initString("0c733a97-2a1c-11ce-ade5-00aa0044773d"); pub const IID_IViewRowset = &IID_IViewRowset_Value; pub const IViewRowset = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, GetSpecification: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IViewRowset, riid: ?*const Guid, ppObject: ?*?*IUnknown, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IViewRowset, riid: ?*const Guid, ppObject: ?*?*IUnknown, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, OpenViewRowset: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IViewRowset, pUnkOuter: ?*IUnknown, riid: ?*const Guid, ppRowset: ?*?*IUnknown, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IViewRowset, pUnkOuter: ?*IUnknown, riid: ?*const Guid, ppRowset: ?*?*IUnknown, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IViewRowset_GetSpecification(self: *const T, riid: ?*const Guid, ppObject: ?*?*IUnknown) HRESULT { return @as(*const IViewRowset.VTable, @ptrCast(self.vtable)).GetSpecification(@as(*const IViewRowset, @ptrCast(self)), riid, ppObject); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IViewRowset_OpenViewRowset(self: *const T, pUnkOuter: ?*IUnknown, riid: ?*const Guid, ppRowset: ?*?*IUnknown) HRESULT { return @as(*const IViewRowset.VTable, @ptrCast(self.vtable)).OpenViewRowset(@as(*const IViewRowset, @ptrCast(self)), pUnkOuter, riid, ppRowset); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IViewChapter_Value = Guid.initString("0c733a98-2a1c-11ce-ade5-00aa0044773d"); pub const IID_IViewChapter = &IID_IViewChapter_Value; pub const IViewChapter = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, GetSpecification: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IViewChapter, riid: ?*const Guid, ppRowset: ?*?*IUnknown, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IViewChapter, riid: ?*const Guid, ppRowset: ?*?*IUnknown, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, OpenViewChapter: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IViewChapter, hSource: usize, phViewChapter: ?*usize, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IViewChapter, hSource: usize, phViewChapter: ?*usize, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IViewChapter_GetSpecification(self: *const T, riid: ?*const Guid, ppRowset: ?*?*IUnknown) HRESULT { return @as(*const IViewChapter.VTable, @ptrCast(self.vtable)).GetSpecification(@as(*const IViewChapter, @ptrCast(self)), riid, ppRowset); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IViewChapter_OpenViewChapter(self: *const T, hSource: usize, phViewChapter: ?*usize) HRESULT { return @as(*const IViewChapter.VTable, @ptrCast(self.vtable)).OpenViewChapter(@as(*const IViewChapter, @ptrCast(self)), hSource, phViewChapter); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IViewSort_Value = Guid.initString("0c733a9a-2a1c-11ce-ade5-00aa0044773d"); pub const IID_IViewSort = &IID_IViewSort_Value; pub const IViewSort = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, GetSortOrder: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IViewSort, pcValues: ?*usize, prgColumns: ?*?*usize, prgOrders: ?*?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IViewSort, pcValues: ?*usize, prgColumns: ?*?*usize, prgOrders: ?*?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetSortOrder: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IViewSort, cValues: usize, rgColumns: [*]const usize, rgOrders: [*]const u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IViewSort, cValues: usize, rgColumns: [*]const usize, rgOrders: [*]const u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IViewSort_GetSortOrder(self: *const T, pcValues: ?*usize, prgColumns: ?*?*usize, prgOrders: ?*?*u32) HRESULT { return @as(*const IViewSort.VTable, @ptrCast(self.vtable)).GetSortOrder(@as(*const IViewSort, @ptrCast(self)), pcValues, prgColumns, prgOrders); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IViewSort_SetSortOrder(self: *const T, cValues: usize, rgColumns: [*]const usize, rgOrders: [*]const u32) HRESULT { return @as(*const IViewSort.VTable, @ptrCast(self.vtable)).SetSortOrder(@as(*const IViewSort, @ptrCast(self)), cValues, rgColumns, rgOrders); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IViewFilter_Value = Guid.initString("0c733a9b-2a1c-11ce-ade5-00aa0044773d"); pub const IID_IViewFilter = &IID_IViewFilter_Value; pub const IViewFilter = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, GetFilter: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IViewFilter, hAccessor: usize, pcRows: ?*usize, pCompareOps: [*]?*u32, pCriteriaData: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IViewFilter, hAccessor: usize, pcRows: ?*usize, pCompareOps: [*]?*u32, pCriteriaData: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetFilterBindings: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IViewFilter, pcBindings: ?*usize, prgBindings: ?*?*DBBINDING, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IViewFilter, pcBindings: ?*usize, prgBindings: ?*?*DBBINDING, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetFilter: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IViewFilter, hAccessor: usize, cRows: usize, CompareOps: [*]u32, pCriteriaData: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IViewFilter, hAccessor: usize, cRows: usize, CompareOps: [*]u32, pCriteriaData: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IViewFilter_GetFilter(self: *const T, hAccessor: usize, pcRows: ?*usize, pCompareOps: [*]?*u32, pCriteriaData: ?*anyopaque) HRESULT { return @as(*const IViewFilter.VTable, @ptrCast(self.vtable)).GetFilter(@as(*const IViewFilter, @ptrCast(self)), hAccessor, pcRows, pCompareOps, pCriteriaData); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IViewFilter_GetFilterBindings(self: *const T, pcBindings: ?*usize, prgBindings: ?*?*DBBINDING) HRESULT { return @as(*const IViewFilter.VTable, @ptrCast(self.vtable)).GetFilterBindings(@as(*const IViewFilter, @ptrCast(self)), pcBindings, prgBindings); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IViewFilter_SetFilter(self: *const T, hAccessor: usize, cRows: usize, CompareOps: [*]u32, pCriteriaData: ?*anyopaque) HRESULT { return @as(*const IViewFilter.VTable, @ptrCast(self.vtable)).SetFilter(@as(*const IViewFilter, @ptrCast(self)), hAccessor, cRows, CompareOps, pCriteriaData); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IRowsetView_Value = Guid.initString("0c733a99-2a1c-11ce-ade5-00aa0044773d"); pub const IID_IRowsetView = &IID_IRowsetView_Value; pub const IRowsetView = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, CreateView: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IRowsetView, pUnkOuter: ?*IUnknown, riid: ?*const Guid, ppView: ?*?*IUnknown, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IRowsetView, pUnkOuter: ?*IUnknown, riid: ?*const Guid, ppView: ?*?*IUnknown, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetView: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IRowsetView, hChapter: usize, riid: ?*const Guid, phChapterSource: ?*usize, ppView: ?*?*IUnknown, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IRowsetView, hChapter: usize, riid: ?*const Guid, phChapterSource: ?*usize, ppView: ?*?*IUnknown, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRowsetView_CreateView(self: *const T, pUnkOuter: ?*IUnknown, riid: ?*const Guid, ppView: ?*?*IUnknown) HRESULT { return @as(*const IRowsetView.VTable, @ptrCast(self.vtable)).CreateView(@as(*const IRowsetView, @ptrCast(self)), pUnkOuter, riid, ppView); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRowsetView_GetView(self: *const T, hChapter: usize, riid: ?*const Guid, phChapterSource: ?*usize, ppView: ?*?*IUnknown) HRESULT { return @as(*const IRowsetView.VTable, @ptrCast(self.vtable)).GetView(@as(*const IRowsetView, @ptrCast(self)), hChapter, riid, phChapterSource, ppView); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IRowsetChange_Value = Guid.initString("0c733a05-2a1c-11ce-ade5-00aa0044773d"); pub const IID_IRowsetChange = &IID_IRowsetChange_Value; pub const IRowsetChange = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, DeleteRows: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IRowsetChange, hReserved: usize, cRows: usize, rghRows: ?*const usize, rgRowStatus: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IRowsetChange, hReserved: usize, cRows: usize, rghRows: ?*const usize, rgRowStatus: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetData: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IRowsetChange, hRow: usize, hAccessor: usize, pData: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IRowsetChange, hRow: usize, hAccessor: usize, pData: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, InsertRow: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IRowsetChange, hReserved: usize, hAccessor: usize, pData: ?*anyopaque, phRow: ?*usize, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IRowsetChange, hReserved: usize, hAccessor: usize, pData: ?*anyopaque, phRow: ?*usize, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRowsetChange_DeleteRows(self: *const T, hReserved: usize, cRows: usize, rghRows: ?*const usize, rgRowStatus: ?*u32) HRESULT { return @as(*const IRowsetChange.VTable, @ptrCast(self.vtable)).DeleteRows(@as(*const IRowsetChange, @ptrCast(self)), hReserved, cRows, rghRows, rgRowStatus); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRowsetChange_SetData(self: *const T, hRow: usize, hAccessor: usize, pData: ?*anyopaque) HRESULT { return @as(*const IRowsetChange.VTable, @ptrCast(self.vtable)).SetData(@as(*const IRowsetChange, @ptrCast(self)), hRow, hAccessor, pData); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRowsetChange_InsertRow(self: *const T, hReserved: usize, hAccessor: usize, pData: ?*anyopaque, phRow: ?*usize) HRESULT { return @as(*const IRowsetChange.VTable, @ptrCast(self.vtable)).InsertRow(@as(*const IRowsetChange, @ptrCast(self)), hReserved, hAccessor, pData, phRow); } }; } pub usingnamespace MethodMixin(@This()); }; pub const DBPENDINGSTATUSENUM = enum(i32) { NEW = 1, CHANGED = 2, DELETED = 4, UNCHANGED = 8, INVALIDROW = 16, }; pub const DBPENDINGSTATUS_NEW = DBPENDINGSTATUSENUM.NEW; pub const DBPENDINGSTATUS_CHANGED = DBPENDINGSTATUSENUM.CHANGED; pub const DBPENDINGSTATUS_DELETED = DBPENDINGSTATUSENUM.DELETED; pub const DBPENDINGSTATUS_UNCHANGED = DBPENDINGSTATUSENUM.UNCHANGED; pub const DBPENDINGSTATUS_INVALIDROW = DBPENDINGSTATUSENUM.INVALIDROW; const IID_IRowsetUpdate_Value = Guid.initString("0c733a6d-2a1c-11ce-ade5-00aa0044773d"); pub const IID_IRowsetUpdate = &IID_IRowsetUpdate_Value; pub const IRowsetUpdate = extern struct { pub const VTable = extern struct { base: IRowsetChange.VTable, GetOriginalData: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IRowsetUpdate, hRow: usize, hAccessor: usize, pData: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IRowsetUpdate, hRow: usize, hAccessor: usize, pData: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetPendingRows: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IRowsetUpdate, hReserved: usize, dwRowStatus: u32, pcPendingRows: ?*usize, prgPendingRows: ?*?*usize, prgPendingStatus: ?*?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IRowsetUpdate, hReserved: usize, dwRowStatus: u32, pcPendingRows: ?*usize, prgPendingRows: ?*?*usize, prgPendingStatus: ?*?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetRowStatus: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IRowsetUpdate, hReserved: usize, cRows: usize, rghRows: ?*const usize, rgPendingStatus: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IRowsetUpdate, hReserved: usize, cRows: usize, rghRows: ?*const usize, rgPendingStatus: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Undo: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IRowsetUpdate, hReserved: usize, cRows: usize, rghRows: ?*const usize, pcRowsUndone: ?*usize, prgRowsUndone: ?*?*usize, prgRowStatus: ?*?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IRowsetUpdate, hReserved: usize, cRows: usize, rghRows: ?*const usize, pcRowsUndone: ?*usize, prgRowsUndone: ?*?*usize, prgRowStatus: ?*?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Update: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IRowsetUpdate, hReserved: usize, cRows: usize, rghRows: ?*const usize, pcRows: ?*usize, prgRows: ?*?*usize, prgRowStatus: ?*?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IRowsetUpdate, hReserved: usize, cRows: usize, rghRows: ?*const usize, pcRows: ?*usize, prgRows: ?*?*usize, prgRowStatus: ?*?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IRowsetChange.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRowsetUpdate_GetOriginalData(self: *const T, hRow: usize, hAccessor: usize, pData: ?*anyopaque) HRESULT { return @as(*const IRowsetUpdate.VTable, @ptrCast(self.vtable)).GetOriginalData(@as(*const IRowsetUpdate, @ptrCast(self)), hRow, hAccessor, pData); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRowsetUpdate_GetPendingRows(self: *const T, hReserved: usize, dwRowStatus: u32, pcPendingRows: ?*usize, prgPendingRows: ?*?*usize, prgPendingStatus: ?*?*u32) HRESULT { return @as(*const IRowsetUpdate.VTable, @ptrCast(self.vtable)).GetPendingRows(@as(*const IRowsetUpdate, @ptrCast(self)), hReserved, dwRowStatus, pcPendingRows, prgPendingRows, prgPendingStatus); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRowsetUpdate_GetRowStatus(self: *const T, hReserved: usize, cRows: usize, rghRows: ?*const usize, rgPendingStatus: ?*u32) HRESULT { return @as(*const IRowsetUpdate.VTable, @ptrCast(self.vtable)).GetRowStatus(@as(*const IRowsetUpdate, @ptrCast(self)), hReserved, cRows, rghRows, rgPendingStatus); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRowsetUpdate_Undo(self: *const T, hReserved: usize, cRows: usize, rghRows: ?*const usize, pcRowsUndone: ?*usize, prgRowsUndone: ?*?*usize, prgRowStatus: ?*?*u32) HRESULT { return @as(*const IRowsetUpdate.VTable, @ptrCast(self.vtable)).Undo(@as(*const IRowsetUpdate, @ptrCast(self)), hReserved, cRows, rghRows, pcRowsUndone, prgRowsUndone, prgRowStatus); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRowsetUpdate_Update(self: *const T, hReserved: usize, cRows: usize, rghRows: ?*const usize, pcRows: ?*usize, prgRows: ?*?*usize, prgRowStatus: ?*?*u32) HRESULT { return @as(*const IRowsetUpdate.VTable, @ptrCast(self.vtable)).Update(@as(*const IRowsetUpdate, @ptrCast(self)), hReserved, cRows, rghRows, pcRows, prgRows, prgRowStatus); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IRowsetIdentity_Value = Guid.initString("0c733a09-2a1c-11ce-ade5-00aa0044773d"); pub const IID_IRowsetIdentity = &IID_IRowsetIdentity_Value; pub const IRowsetIdentity = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, IsSameRow: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IRowsetIdentity, hThisRow: usize, hThatRow: usize, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IRowsetIdentity, hThisRow: usize, hThatRow: usize, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRowsetIdentity_IsSameRow(self: *const T, hThisRow: usize, hThatRow: usize) HRESULT { return @as(*const IRowsetIdentity.VTable, @ptrCast(self.vtable)).IsSameRow(@as(*const IRowsetIdentity, @ptrCast(self)), hThisRow, hThatRow); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IRowsetNotify_Value = Guid.initString("0c733a83-2a1c-11ce-ade5-00aa0044773d"); pub const IID_IRowsetNotify = &IID_IRowsetNotify_Value; pub const IRowsetNotify = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, OnFieldChange: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IRowsetNotify, pRowset: ?*IRowset, hRow: usize, cColumns: usize, rgColumns: [*]usize, eReason: u32, ePhase: u32, fCantDeny: BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IRowsetNotify, pRowset: ?*IRowset, hRow: usize, cColumns: usize, rgColumns: [*]usize, eReason: u32, ePhase: u32, fCantDeny: BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, OnRowChange: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IRowsetNotify, pRowset: ?*IRowset, cRows: usize, rghRows: [*]const usize, eReason: u32, ePhase: u32, fCantDeny: BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IRowsetNotify, pRowset: ?*IRowset, cRows: usize, rghRows: [*]const usize, eReason: u32, ePhase: u32, fCantDeny: BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, OnRowsetChange: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IRowsetNotify, pRowset: ?*IRowset, eReason: u32, ePhase: u32, fCantDeny: BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IRowsetNotify, pRowset: ?*IRowset, eReason: u32, ePhase: u32, fCantDeny: BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRowsetNotify_OnFieldChange(self: *const T, pRowset: ?*IRowset, hRow: usize, cColumns: usize, rgColumns: [*]usize, eReason: u32, ePhase: u32, fCantDeny: BOOL) HRESULT { return @as(*const IRowsetNotify.VTable, @ptrCast(self.vtable)).OnFieldChange(@as(*const IRowsetNotify, @ptrCast(self)), pRowset, hRow, cColumns, rgColumns, eReason, ePhase, fCantDeny); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRowsetNotify_OnRowChange(self: *const T, pRowset: ?*IRowset, cRows: usize, rghRows: [*]const usize, eReason: u32, ePhase: u32, fCantDeny: BOOL) HRESULT { return @as(*const IRowsetNotify.VTable, @ptrCast(self.vtable)).OnRowChange(@as(*const IRowsetNotify, @ptrCast(self)), pRowset, cRows, rghRows, eReason, ePhase, fCantDeny); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRowsetNotify_OnRowsetChange(self: *const T, pRowset: ?*IRowset, eReason: u32, ePhase: u32, fCantDeny: BOOL) HRESULT { return @as(*const IRowsetNotify.VTable, @ptrCast(self.vtable)).OnRowsetChange(@as(*const IRowsetNotify, @ptrCast(self)), pRowset, eReason, ePhase, fCantDeny); } }; } pub usingnamespace MethodMixin(@This()); }; pub const DBSEEKENUM = enum(i32) { INVALID = 0, FIRSTEQ = 1, LASTEQ = 2, AFTEREQ = 4, AFTER = 8, BEFOREEQ = 16, BEFORE = 32, }; pub const DBSEEK_INVALID = DBSEEKENUM.INVALID; pub const DBSEEK_FIRSTEQ = DBSEEKENUM.FIRSTEQ; pub const DBSEEK_LASTEQ = DBSEEKENUM.LASTEQ; pub const DBSEEK_AFTEREQ = DBSEEKENUM.AFTEREQ; pub const DBSEEK_AFTER = DBSEEKENUM.AFTER; pub const DBSEEK_BEFOREEQ = DBSEEKENUM.BEFOREEQ; pub const DBSEEK_BEFORE = DBSEEKENUM.BEFORE; pub const DBRANGEENUM = enum(i32) { INCLUSIVESTART = 0, // INCLUSIVEEND = 0, this enum value conflicts with INCLUSIVESTART EXCLUSIVESTART = 1, EXCLUSIVEEND = 2, EXCLUDENULLS = 4, PREFIX = 8, MATCH = 16, }; pub const DBRANGE_INCLUSIVESTART = DBRANGEENUM.INCLUSIVESTART; pub const DBRANGE_INCLUSIVEEND = DBRANGEENUM.INCLUSIVESTART; pub const DBRANGE_EXCLUSIVESTART = DBRANGEENUM.EXCLUSIVESTART; pub const DBRANGE_EXCLUSIVEEND = DBRANGEENUM.EXCLUSIVEEND; pub const DBRANGE_EXCLUDENULLS = DBRANGEENUM.EXCLUDENULLS; pub const DBRANGE_PREFIX = DBRANGEENUM.PREFIX; pub const DBRANGE_MATCH = DBRANGEENUM.MATCH; pub const DBRANGEENUM20 = enum(i32) { SHIFT = 24, MASK = 255, }; pub const DBRANGE_MATCH_N_SHIFT = DBRANGEENUM20.SHIFT; pub const DBRANGE_MATCH_N_MASK = DBRANGEENUM20.MASK; const IID_IRowsetIndex_Value = Guid.initString("0c733a82-2a1c-11ce-ade5-00aa0044773d"); pub const IID_IRowsetIndex = &IID_IRowsetIndex_Value; pub const IRowsetIndex = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, GetIndexInfo: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IRowsetIndex, pcKeyColumns: ?*usize, prgIndexColumnDesc: ?*?*DBINDEXCOLUMNDESC, pcIndexPropertySets: ?*u32, prgIndexPropertySets: ?*?*DBPROPSET, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IRowsetIndex, pcKeyColumns: ?*usize, prgIndexColumnDesc: ?*?*DBINDEXCOLUMNDESC, pcIndexPropertySets: ?*u32, prgIndexPropertySets: ?*?*DBPROPSET, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Seek: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IRowsetIndex, hAccessor: usize, cKeyValues: usize, pData: ?*anyopaque, dwSeekOptions: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IRowsetIndex, hAccessor: usize, cKeyValues: usize, pData: ?*anyopaque, dwSeekOptions: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetRange: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IRowsetIndex, hAccessor: usize, cStartKeyColumns: usize, pStartData: ?*anyopaque, cEndKeyColumns: usize, pEndData: ?*anyopaque, dwRangeOptions: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IRowsetIndex, hAccessor: usize, cStartKeyColumns: usize, pStartData: ?*anyopaque, cEndKeyColumns: usize, pEndData: ?*anyopaque, dwRangeOptions: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRowsetIndex_GetIndexInfo(self: *const T, pcKeyColumns: ?*usize, prgIndexColumnDesc: ?*?*DBINDEXCOLUMNDESC, pcIndexPropertySets: ?*u32, prgIndexPropertySets: ?*?*DBPROPSET) HRESULT { return @as(*const IRowsetIndex.VTable, @ptrCast(self.vtable)).GetIndexInfo(@as(*const IRowsetIndex, @ptrCast(self)), pcKeyColumns, prgIndexColumnDesc, pcIndexPropertySets, prgIndexPropertySets); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRowsetIndex_Seek(self: *const T, hAccessor: usize, cKeyValues: usize, pData: ?*anyopaque, dwSeekOptions: u32) HRESULT { return @as(*const IRowsetIndex.VTable, @ptrCast(self.vtable)).Seek(@as(*const IRowsetIndex, @ptrCast(self)), hAccessor, cKeyValues, pData, dwSeekOptions); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRowsetIndex_SetRange(self: *const T, hAccessor: usize, cStartKeyColumns: usize, pStartData: ?*anyopaque, cEndKeyColumns: usize, pEndData: ?*anyopaque, dwRangeOptions: u32) HRESULT { return @as(*const IRowsetIndex.VTable, @ptrCast(self.vtable)).SetRange(@as(*const IRowsetIndex, @ptrCast(self)), hAccessor, cStartKeyColumns, pStartData, cEndKeyColumns, pEndData, dwRangeOptions); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_ICommand_Value = Guid.initString("0c733a63-2a1c-11ce-ade5-00aa0044773d"); pub const IID_ICommand = &IID_ICommand_Value; pub const ICommand = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, Cancel: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ICommand, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ICommand, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Execute: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ICommand, pUnkOuter: ?*IUnknown, riid: ?*const Guid, pParams: ?*DBPARAMS, pcRowsAffected: ?*isize, ppRowset: ?*?*IUnknown, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ICommand, pUnkOuter: ?*IUnknown, riid: ?*const Guid, pParams: ?*DBPARAMS, pcRowsAffected: ?*isize, ppRowset: ?*?*IUnknown, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetDBSession: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ICommand, riid: ?*const Guid, ppSession: ?*?*IUnknown, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ICommand, riid: ?*const Guid, ppSession: ?*?*IUnknown, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ICommand_Cancel(self: *const T) HRESULT { return @as(*const ICommand.VTable, @ptrCast(self.vtable)).Cancel(@as(*const ICommand, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ICommand_Execute(self: *const T, pUnkOuter: ?*IUnknown, riid: ?*const Guid, pParams: ?*DBPARAMS, pcRowsAffected: ?*isize, ppRowset: ?*?*IUnknown) HRESULT { return @as(*const ICommand.VTable, @ptrCast(self.vtable)).Execute(@as(*const ICommand, @ptrCast(self)), pUnkOuter, riid, pParams, pcRowsAffected, ppRowset); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ICommand_GetDBSession(self: *const T, riid: ?*const Guid, ppSession: ?*?*IUnknown) HRESULT { return @as(*const ICommand.VTable, @ptrCast(self.vtable)).GetDBSession(@as(*const ICommand, @ptrCast(self)), riid, ppSession); } }; } pub usingnamespace MethodMixin(@This()); }; pub const DBRESULTFLAGENUM = enum(i32) { DEFAULT = 0, ROWSET = 1, ROW = 2, }; pub const DBRESULTFLAG_DEFAULT = DBRESULTFLAGENUM.DEFAULT; pub const DBRESULTFLAG_ROWSET = DBRESULTFLAGENUM.ROWSET; pub const DBRESULTFLAG_ROW = DBRESULTFLAGENUM.ROW; const IID_IMultipleResults_Value = Guid.initString("0c733a90-2a1c-11ce-ade5-00aa0044773d"); pub const IID_IMultipleResults = &IID_IMultipleResults_Value; pub const IMultipleResults = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, GetResult: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IMultipleResults, pUnkOuter: ?*IUnknown, lResultFlag: isize, riid: ?*const Guid, pcRowsAffected: ?*isize, ppRowset: ?*?*IUnknown, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IMultipleResults, pUnkOuter: ?*IUnknown, lResultFlag: isize, riid: ?*const Guid, pcRowsAffected: ?*isize, ppRowset: ?*?*IUnknown, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMultipleResults_GetResult(self: *const T, pUnkOuter: ?*IUnknown, lResultFlag: isize, riid: ?*const Guid, pcRowsAffected: ?*isize, ppRowset: ?*?*IUnknown) HRESULT { return @as(*const IMultipleResults.VTable, @ptrCast(self.vtable)).GetResult(@as(*const IMultipleResults, @ptrCast(self)), pUnkOuter, lResultFlag, riid, pcRowsAffected, ppRowset); } }; } pub usingnamespace MethodMixin(@This()); }; pub const DBCONVERTFLAGSENUM = enum(i32) { COLUMN = 0, PARAMETER = 1, }; pub const DBCONVERTFLAGS_COLUMN = DBCONVERTFLAGSENUM.COLUMN; pub const DBCONVERTFLAGS_PARAMETER = DBCONVERTFLAGSENUM.PARAMETER; pub const DBCONVERTFLAGSENUM20 = enum(i32) { ISLONG = 2, ISFIXEDLENGTH = 4, FROMVARIANT = 8, }; pub const DBCONVERTFLAGS_ISLONG = DBCONVERTFLAGSENUM20.ISLONG; pub const DBCONVERTFLAGS_ISFIXEDLENGTH = DBCONVERTFLAGSENUM20.ISFIXEDLENGTH; pub const DBCONVERTFLAGS_FROMVARIANT = DBCONVERTFLAGSENUM20.FROMVARIANT; const IID_IConvertType_Value = Guid.initString("0c733a88-2a1c-11ce-ade5-00aa0044773d"); pub const IID_IConvertType = &IID_IConvertType_Value; pub const IConvertType = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, CanConvert: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IConvertType, wFromType: u16, wToType: u16, dwConvertFlags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IConvertType, wFromType: u16, wToType: u16, dwConvertFlags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IConvertType_CanConvert(self: *const T, wFromType: u16, wToType: u16, dwConvertFlags: u32) HRESULT { return @as(*const IConvertType.VTable, @ptrCast(self.vtable)).CanConvert(@as(*const IConvertType, @ptrCast(self)), wFromType, wToType, dwConvertFlags); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_ICommandPrepare_Value = Guid.initString("0c733a26-2a1c-11ce-ade5-00aa0044773d"); pub const IID_ICommandPrepare = &IID_ICommandPrepare_Value; pub const ICommandPrepare = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, Prepare: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ICommandPrepare, cExpectedRuns: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ICommandPrepare, cExpectedRuns: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Unprepare: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ICommandPrepare, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ICommandPrepare, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ICommandPrepare_Prepare(self: *const T, cExpectedRuns: u32) HRESULT { return @as(*const ICommandPrepare.VTable, @ptrCast(self.vtable)).Prepare(@as(*const ICommandPrepare, @ptrCast(self)), cExpectedRuns); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ICommandPrepare_Unprepare(self: *const T) HRESULT { return @as(*const ICommandPrepare.VTable, @ptrCast(self.vtable)).Unprepare(@as(*const ICommandPrepare, @ptrCast(self))); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_ICommandProperties_Value = Guid.initString("0c733a79-2a1c-11ce-ade5-00aa0044773d"); pub const IID_ICommandProperties = &IID_ICommandProperties_Value; pub const ICommandProperties = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, GetProperties: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ICommandProperties, cPropertyIDSets: u32, rgPropertyIDSets: ?[*]const DBPROPIDSET, pcPropertySets: ?*u32, prgPropertySets: ?*?*DBPROPSET, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ICommandProperties, cPropertyIDSets: u32, rgPropertyIDSets: ?[*]const DBPROPIDSET, pcPropertySets: ?*u32, prgPropertySets: ?*?*DBPROPSET, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetProperties: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ICommandProperties, cPropertySets: u32, rgPropertySets: [*]DBPROPSET, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ICommandProperties, cPropertySets: u32, rgPropertySets: [*]DBPROPSET, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ICommandProperties_GetProperties(self: *const T, cPropertyIDSets: u32, rgPropertyIDSets: ?[*]const DBPROPIDSET, pcPropertySets: ?*u32, prgPropertySets: ?*?*DBPROPSET) HRESULT { return @as(*const ICommandProperties.VTable, @ptrCast(self.vtable)).GetProperties(@as(*const ICommandProperties, @ptrCast(self)), cPropertyIDSets, rgPropertyIDSets, pcPropertySets, prgPropertySets); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ICommandProperties_SetProperties(self: *const T, cPropertySets: u32, rgPropertySets: [*]DBPROPSET) HRESULT { return @as(*const ICommandProperties.VTable, @ptrCast(self.vtable)).SetProperties(@as(*const ICommandProperties, @ptrCast(self)), cPropertySets, rgPropertySets); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_ICommandText_Value = Guid.initString("0c733a27-2a1c-11ce-ade5-00aa0044773d"); pub const IID_ICommandText = &IID_ICommandText_Value; pub const ICommandText = extern struct { pub const VTable = extern struct { base: ICommand.VTable, GetCommandText: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ICommandText, pguidDialect: ?*Guid, ppwszCommand: ?*?PWSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ICommandText, pguidDialect: ?*Guid, ppwszCommand: ?*?PWSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetCommandText: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ICommandText, rguidDialect: ?*const Guid, pwszCommand: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ICommandText, rguidDialect: ?*const Guid, pwszCommand: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace ICommand.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ICommandText_GetCommandText(self: *const T, pguidDialect: ?*Guid, ppwszCommand: ?*?PWSTR) HRESULT { return @as(*const ICommandText.VTable, @ptrCast(self.vtable)).GetCommandText(@as(*const ICommandText, @ptrCast(self)), pguidDialect, ppwszCommand); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ICommandText_SetCommandText(self: *const T, rguidDialect: ?*const Guid, pwszCommand: ?[*:0]const u16) HRESULT { return @as(*const ICommandText.VTable, @ptrCast(self.vtable)).SetCommandText(@as(*const ICommandText, @ptrCast(self)), rguidDialect, pwszCommand); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_ICommandWithParameters_Value = Guid.initString("0c733a64-2a1c-11ce-ade5-00aa0044773d"); pub const IID_ICommandWithParameters = &IID_ICommandWithParameters_Value; pub const ICommandWithParameters = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, GetParameterInfo: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ICommandWithParameters, pcParams: ?*usize, prgParamInfo: ?*?*DBPARAMINFO, ppNamesBuffer: ?*?*u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ICommandWithParameters, pcParams: ?*usize, prgParamInfo: ?*?*DBPARAMINFO, ppNamesBuffer: ?*?*u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, MapParameterNames: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ICommandWithParameters, cParamNames: usize, rgParamNames: [*]?PWSTR, rgParamOrdinals: [*]isize, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ICommandWithParameters, cParamNames: usize, rgParamNames: [*]?PWSTR, rgParamOrdinals: [*]isize, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetParameterInfo: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ICommandWithParameters, cParams: usize, rgParamOrdinals: ?[*]const usize, rgParamBindInfo: ?[*]const DBPARAMBINDINFO, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ICommandWithParameters, cParams: usize, rgParamOrdinals: ?[*]const usize, rgParamBindInfo: ?[*]const DBPARAMBINDINFO, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ICommandWithParameters_GetParameterInfo(self: *const T, pcParams: ?*usize, prgParamInfo: ?*?*DBPARAMINFO, ppNamesBuffer: ?*?*u16) HRESULT { return @as(*const ICommandWithParameters.VTable, @ptrCast(self.vtable)).GetParameterInfo(@as(*const ICommandWithParameters, @ptrCast(self)), pcParams, prgParamInfo, ppNamesBuffer); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ICommandWithParameters_MapParameterNames(self: *const T, cParamNames: usize, rgParamNames: [*]?PWSTR, rgParamOrdinals: [*]isize) HRESULT { return @as(*const ICommandWithParameters.VTable, @ptrCast(self.vtable)).MapParameterNames(@as(*const ICommandWithParameters, @ptrCast(self)), cParamNames, rgParamNames, rgParamOrdinals); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ICommandWithParameters_SetParameterInfo(self: *const T, cParams: usize, rgParamOrdinals: ?[*]const usize, rgParamBindInfo: ?[*]const DBPARAMBINDINFO) HRESULT { return @as(*const ICommandWithParameters.VTable, @ptrCast(self.vtable)).SetParameterInfo(@as(*const ICommandWithParameters, @ptrCast(self)), cParams, rgParamOrdinals, rgParamBindInfo); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IColumnsRowset_Value = Guid.initString("0c733a10-2a1c-11ce-ade5-00aa0044773d"); pub const IID_IColumnsRowset = &IID_IColumnsRowset_Value; pub const IColumnsRowset = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, GetAvailableColumns: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IColumnsRowset, pcOptColumns: ?*usize, prgOptColumns: ?*?*DBID, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IColumnsRowset, pcOptColumns: ?*usize, prgOptColumns: ?*?*DBID, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetColumnsRowset: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IColumnsRowset, pUnkOuter: ?*IUnknown, cOptColumns: usize, rgOptColumns: [*]const DBID, riid: ?*const Guid, cPropertySets: u32, rgPropertySets: ?[*]DBPROPSET, ppColRowset: ?*?*IUnknown, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IColumnsRowset, pUnkOuter: ?*IUnknown, cOptColumns: usize, rgOptColumns: [*]const DBID, riid: ?*const Guid, cPropertySets: u32, rgPropertySets: ?[*]DBPROPSET, ppColRowset: ?*?*IUnknown, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IColumnsRowset_GetAvailableColumns(self: *const T, pcOptColumns: ?*usize, prgOptColumns: ?*?*DBID) HRESULT { return @as(*const IColumnsRowset.VTable, @ptrCast(self.vtable)).GetAvailableColumns(@as(*const IColumnsRowset, @ptrCast(self)), pcOptColumns, prgOptColumns); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IColumnsRowset_GetColumnsRowset(self: *const T, pUnkOuter: ?*IUnknown, cOptColumns: usize, rgOptColumns: [*]const DBID, riid: ?*const Guid, cPropertySets: u32, rgPropertySets: ?[*]DBPROPSET, ppColRowset: ?*?*IUnknown) HRESULT { return @as(*const IColumnsRowset.VTable, @ptrCast(self.vtable)).GetColumnsRowset(@as(*const IColumnsRowset, @ptrCast(self)), pUnkOuter, cOptColumns, rgOptColumns, riid, cPropertySets, rgPropertySets, ppColRowset); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IColumnsInfo_Value = Guid.initString("0c733a11-2a1c-11ce-ade5-00aa0044773d"); pub const IID_IColumnsInfo = &IID_IColumnsInfo_Value; pub const IColumnsInfo = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, GetColumnInfo: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IColumnsInfo, pcColumns: ?*usize, prgInfo: ?*?*DBCOLUMNINFO, ppStringsBuffer: ?*?*u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IColumnsInfo, pcColumns: ?*usize, prgInfo: ?*?*DBCOLUMNINFO, ppStringsBuffer: ?*?*u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, MapColumnIDs: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IColumnsInfo, cColumnIDs: usize, rgColumnIDs: ?[*]const DBID, rgColumns: ?[*]usize, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IColumnsInfo, cColumnIDs: usize, rgColumnIDs: ?[*]const DBID, rgColumns: ?[*]usize, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IColumnsInfo_GetColumnInfo(self: *const T, pcColumns: ?*usize, prgInfo: ?*?*DBCOLUMNINFO, ppStringsBuffer: ?*?*u16) HRESULT { return @as(*const IColumnsInfo.VTable, @ptrCast(self.vtable)).GetColumnInfo(@as(*const IColumnsInfo, @ptrCast(self)), pcColumns, prgInfo, ppStringsBuffer); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IColumnsInfo_MapColumnIDs(self: *const T, cColumnIDs: usize, rgColumnIDs: ?[*]const DBID, rgColumns: ?[*]usize) HRESULT { return @as(*const IColumnsInfo.VTable, @ptrCast(self.vtable)).MapColumnIDs(@as(*const IColumnsInfo, @ptrCast(self)), cColumnIDs, rgColumnIDs, rgColumns); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IDBCreateCommand_Value = Guid.initString("0c733a1d-2a1c-11ce-ade5-00aa0044773d"); pub const IID_IDBCreateCommand = &IID_IDBCreateCommand_Value; pub const IDBCreateCommand = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, CreateCommand: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDBCreateCommand, pUnkOuter: ?*IUnknown, riid: ?*const Guid, ppCommand: ?*?*IUnknown, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDBCreateCommand, pUnkOuter: ?*IUnknown, riid: ?*const Guid, ppCommand: ?*?*IUnknown, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDBCreateCommand_CreateCommand(self: *const T, pUnkOuter: ?*IUnknown, riid: ?*const Guid, ppCommand: ?*?*IUnknown) HRESULT { return @as(*const IDBCreateCommand.VTable, @ptrCast(self.vtable)).CreateCommand(@as(*const IDBCreateCommand, @ptrCast(self)), pUnkOuter, riid, ppCommand); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IDBCreateSession_Value = Guid.initString("0c733a5d-2a1c-11ce-ade5-00aa0044773d"); pub const IID_IDBCreateSession = &IID_IDBCreateSession_Value; pub const IDBCreateSession = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, CreateSession: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDBCreateSession, pUnkOuter: ?*IUnknown, riid: ?*const Guid, ppDBSession: ?*?*IUnknown, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDBCreateSession, pUnkOuter: ?*IUnknown, riid: ?*const Guid, ppDBSession: ?*?*IUnknown, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDBCreateSession_CreateSession(self: *const T, pUnkOuter: ?*IUnknown, riid: ?*const Guid, ppDBSession: ?*?*IUnknown) HRESULT { return @as(*const IDBCreateSession.VTable, @ptrCast(self.vtable)).CreateSession(@as(*const IDBCreateSession, @ptrCast(self)), pUnkOuter, riid, ppDBSession); } }; } pub usingnamespace MethodMixin(@This()); }; pub const DBSOURCETYPEENUM = enum(i32) { DATASOURCE = 1, ENUMERATOR = 2, }; pub const DBSOURCETYPE_DATASOURCE = DBSOURCETYPEENUM.DATASOURCE; pub const DBSOURCETYPE_ENUMERATOR = DBSOURCETYPEENUM.ENUMERATOR; pub const DBSOURCETYPEENUM20 = enum(i32) { TDP = 1, MDP = 3, }; pub const DBSOURCETYPE_DATASOURCE_TDP = DBSOURCETYPEENUM20.TDP; pub const DBSOURCETYPE_DATASOURCE_MDP = DBSOURCETYPEENUM20.MDP; pub const DBSOURCETYPEENUM25 = enum(i32) { R = 4, }; pub const DBSOURCETYPE_BINDER = DBSOURCETYPEENUM25.R; const IID_ISourcesRowset_Value = Guid.initString("0c733a1e-2a1c-11ce-ade5-00aa0044773d"); pub const IID_ISourcesRowset = &IID_ISourcesRowset_Value; pub const ISourcesRowset = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, GetSourcesRowset: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ISourcesRowset, pUnkOuter: ?*IUnknown, riid: ?*const Guid, cPropertySets: u32, rgProperties: ?[*]DBPROPSET, ppSourcesRowset: ?*?*IUnknown, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ISourcesRowset, pUnkOuter: ?*IUnknown, riid: ?*const Guid, cPropertySets: u32, rgProperties: ?[*]DBPROPSET, ppSourcesRowset: ?*?*IUnknown, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISourcesRowset_GetSourcesRowset(self: *const T, pUnkOuter: ?*IUnknown, riid: ?*const Guid, cPropertySets: u32, rgProperties: ?[*]DBPROPSET, ppSourcesRowset: ?*?*IUnknown) HRESULT { return @as(*const ISourcesRowset.VTable, @ptrCast(self.vtable)).GetSourcesRowset(@as(*const ISourcesRowset, @ptrCast(self)), pUnkOuter, riid, cPropertySets, rgProperties, ppSourcesRowset); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IDBProperties_Value = Guid.initString("0c733a8a-2a1c-11ce-ade5-00aa0044773d"); pub const IID_IDBProperties = &IID_IDBProperties_Value; pub const IDBProperties = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, GetProperties: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDBProperties, cPropertyIDSets: u32, rgPropertyIDSets: ?[*]const DBPROPIDSET, pcPropertySets: ?*u32, prgPropertySets: ?*?*DBPROPSET, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDBProperties, cPropertyIDSets: u32, rgPropertyIDSets: ?[*]const DBPROPIDSET, pcPropertySets: ?*u32, prgPropertySets: ?*?*DBPROPSET, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetPropertyInfo: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDBProperties, cPropertyIDSets: u32, rgPropertyIDSets: ?[*]const DBPROPIDSET, pcPropertyInfoSets: ?*u32, prgPropertyInfoSets: ?*?*DBPROPINFOSET, ppDescBuffer: ?*?*u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDBProperties, cPropertyIDSets: u32, rgPropertyIDSets: ?[*]const DBPROPIDSET, pcPropertyInfoSets: ?*u32, prgPropertyInfoSets: ?*?*DBPROPINFOSET, ppDescBuffer: ?*?*u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetProperties: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDBProperties, cPropertySets: u32, rgPropertySets: ?[*]DBPROPSET, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDBProperties, cPropertySets: u32, rgPropertySets: ?[*]DBPROPSET, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDBProperties_GetProperties(self: *const T, cPropertyIDSets: u32, rgPropertyIDSets: ?[*]const DBPROPIDSET, pcPropertySets: ?*u32, prgPropertySets: ?*?*DBPROPSET) HRESULT { return @as(*const IDBProperties.VTable, @ptrCast(self.vtable)).GetProperties(@as(*const IDBProperties, @ptrCast(self)), cPropertyIDSets, rgPropertyIDSets, pcPropertySets, prgPropertySets); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDBProperties_GetPropertyInfo(self: *const T, cPropertyIDSets: u32, rgPropertyIDSets: ?[*]const DBPROPIDSET, pcPropertyInfoSets: ?*u32, prgPropertyInfoSets: ?*?*DBPROPINFOSET, ppDescBuffer: ?*?*u16) HRESULT { return @as(*const IDBProperties.VTable, @ptrCast(self.vtable)).GetPropertyInfo(@as(*const IDBProperties, @ptrCast(self)), cPropertyIDSets, rgPropertyIDSets, pcPropertyInfoSets, prgPropertyInfoSets, ppDescBuffer); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDBProperties_SetProperties(self: *const T, cPropertySets: u32, rgPropertySets: ?[*]DBPROPSET) HRESULT { return @as(*const IDBProperties.VTable, @ptrCast(self.vtable)).SetProperties(@as(*const IDBProperties, @ptrCast(self)), cPropertySets, rgPropertySets); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IDBInitialize_Value = Guid.initString("0c733a8b-2a1c-11ce-ade5-00aa0044773d"); pub const IID_IDBInitialize = &IID_IDBInitialize_Value; pub const IDBInitialize = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, Initialize: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDBInitialize, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDBInitialize, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Uninitialize: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDBInitialize, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDBInitialize, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDBInitialize_Initialize(self: *const T) HRESULT { return @as(*const IDBInitialize.VTable, @ptrCast(self.vtable)).Initialize(@as(*const IDBInitialize, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDBInitialize_Uninitialize(self: *const T) HRESULT { return @as(*const IDBInitialize.VTable, @ptrCast(self.vtable)).Uninitialize(@as(*const IDBInitialize, @ptrCast(self))); } }; } pub usingnamespace MethodMixin(@This()); }; pub const DBLITERALENUM = enum(i32) { INVALID = 0, BINARY_LITERAL = 1, CATALOG_NAME = 2, CATALOG_SEPARATOR = 3, CHAR_LITERAL = 4, COLUMN_ALIAS = 5, COLUMN_NAME = 6, CORRELATION_NAME = 7, CURSOR_NAME = 8, ESCAPE_PERCENT = 9, ESCAPE_UNDERSCORE = 10, INDEX_NAME = 11, LIKE_PERCENT = 12, LIKE_UNDERSCORE = 13, PROCEDURE_NAME = 14, QUOTE = 15, SCHEMA_NAME = 16, TABLE_NAME = 17, TEXT_COMMAND = 18, USER_NAME = 19, VIEW_NAME = 20, }; pub const DBLITERAL_INVALID = DBLITERALENUM.INVALID; pub const DBLITERAL_BINARY_LITERAL = DBLITERALENUM.BINARY_LITERAL; pub const DBLITERAL_CATALOG_NAME = DBLITERALENUM.CATALOG_NAME; pub const DBLITERAL_CATALOG_SEPARATOR = DBLITERALENUM.CATALOG_SEPARATOR; pub const DBLITERAL_CHAR_LITERAL = DBLITERALENUM.CHAR_LITERAL; pub const DBLITERAL_COLUMN_ALIAS = DBLITERALENUM.COLUMN_ALIAS; pub const DBLITERAL_COLUMN_NAME = DBLITERALENUM.COLUMN_NAME; pub const DBLITERAL_CORRELATION_NAME = DBLITERALENUM.CORRELATION_NAME; pub const DBLITERAL_CURSOR_NAME = DBLITERALENUM.CURSOR_NAME; pub const DBLITERAL_ESCAPE_PERCENT = DBLITERALENUM.ESCAPE_PERCENT; pub const DBLITERAL_ESCAPE_UNDERSCORE = DBLITERALENUM.ESCAPE_UNDERSCORE; pub const DBLITERAL_INDEX_NAME = DBLITERALENUM.INDEX_NAME; pub const DBLITERAL_LIKE_PERCENT = DBLITERALENUM.LIKE_PERCENT; pub const DBLITERAL_LIKE_UNDERSCORE = DBLITERALENUM.LIKE_UNDERSCORE; pub const DBLITERAL_PROCEDURE_NAME = DBLITERALENUM.PROCEDURE_NAME; pub const DBLITERAL_QUOTE = DBLITERALENUM.QUOTE; pub const DBLITERAL_SCHEMA_NAME = DBLITERALENUM.SCHEMA_NAME; pub const DBLITERAL_TABLE_NAME = DBLITERALENUM.TABLE_NAME; pub const DBLITERAL_TEXT_COMMAND = DBLITERALENUM.TEXT_COMMAND; pub const DBLITERAL_USER_NAME = DBLITERALENUM.USER_NAME; pub const DBLITERAL_VIEW_NAME = DBLITERALENUM.VIEW_NAME; pub const DBLITERALENUM20 = enum(i32) { CUBE_NAME = 21, DIMENSION_NAME = 22, HIERARCHY_NAME = 23, LEVEL_NAME = 24, MEMBER_NAME = 25, PROPERTY_NAME = 26, SCHEMA_SEPARATOR = 27, QUOTE_SUFFIX = 28, }; pub const DBLITERAL_CUBE_NAME = DBLITERALENUM20.CUBE_NAME; pub const DBLITERAL_DIMENSION_NAME = DBLITERALENUM20.DIMENSION_NAME; pub const DBLITERAL_HIERARCHY_NAME = DBLITERALENUM20.HIERARCHY_NAME; pub const DBLITERAL_LEVEL_NAME = DBLITERALENUM20.LEVEL_NAME; pub const DBLITERAL_MEMBER_NAME = DBLITERALENUM20.MEMBER_NAME; pub const DBLITERAL_PROPERTY_NAME = DBLITERALENUM20.PROPERTY_NAME; pub const DBLITERAL_SCHEMA_SEPARATOR = DBLITERALENUM20.SCHEMA_SEPARATOR; pub const DBLITERAL_QUOTE_SUFFIX = DBLITERALENUM20.QUOTE_SUFFIX; pub const DBLITERALENUM21 = enum(i32) { PERCENT_SUFFIX = 29, UNDERSCORE_SUFFIX = 30, }; pub const DBLITERAL_ESCAPE_PERCENT_SUFFIX = DBLITERALENUM21.PERCENT_SUFFIX; pub const DBLITERAL_ESCAPE_UNDERSCORE_SUFFIX = DBLITERALENUM21.UNDERSCORE_SUFFIX; const IID_IDBInfo_Value = Guid.initString("0c733a89-2a1c-11ce-ade5-00aa0044773d"); pub const IID_IDBInfo = &IID_IDBInfo_Value; pub const IDBInfo = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, GetKeywords: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDBInfo, ppwszKeywords: ?*?PWSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDBInfo, ppwszKeywords: ?*?PWSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetLiteralInfo: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDBInfo, cLiterals: u32, rgLiterals: ?[*]const u32, pcLiteralInfo: ?*u32, prgLiteralInfo: ?*?*DBLITERALINFO, ppCharBuffer: ?*?*u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDBInfo, cLiterals: u32, rgLiterals: ?[*]const u32, pcLiteralInfo: ?*u32, prgLiteralInfo: ?*?*DBLITERALINFO, ppCharBuffer: ?*?*u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDBInfo_GetKeywords(self: *const T, ppwszKeywords: ?*?PWSTR) HRESULT { return @as(*const IDBInfo.VTable, @ptrCast(self.vtable)).GetKeywords(@as(*const IDBInfo, @ptrCast(self)), ppwszKeywords); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDBInfo_GetLiteralInfo(self: *const T, cLiterals: u32, rgLiterals: ?[*]const u32, pcLiteralInfo: ?*u32, prgLiteralInfo: ?*?*DBLITERALINFO, ppCharBuffer: ?*?*u16) HRESULT { return @as(*const IDBInfo.VTable, @ptrCast(self.vtable)).GetLiteralInfo(@as(*const IDBInfo, @ptrCast(self)), cLiterals, rgLiterals, pcLiteralInfo, prgLiteralInfo, ppCharBuffer); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IDBDataSourceAdmin_Value = Guid.initString("0c733a7a-2a1c-11ce-ade5-00aa0044773d"); pub const IID_IDBDataSourceAdmin = &IID_IDBDataSourceAdmin_Value; pub const IDBDataSourceAdmin = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, CreateDataSource: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDBDataSourceAdmin, cPropertySets: u32, rgPropertySets: ?[*]DBPROPSET, pUnkOuter: ?*IUnknown, riid: ?*const Guid, ppDBSession: ?*?*IUnknown, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDBDataSourceAdmin, cPropertySets: u32, rgPropertySets: ?[*]DBPROPSET, pUnkOuter: ?*IUnknown, riid: ?*const Guid, ppDBSession: ?*?*IUnknown, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, DestroyDataSource: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDBDataSourceAdmin, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDBDataSourceAdmin, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetCreationProperties: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDBDataSourceAdmin, cPropertyIDSets: u32, rgPropertyIDSets: ?[*]const DBPROPIDSET, pcPropertyInfoSets: ?*u32, prgPropertyInfoSets: ?*?*DBPROPINFOSET, ppDescBuffer: ?*?*u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDBDataSourceAdmin, cPropertyIDSets: u32, rgPropertyIDSets: ?[*]const DBPROPIDSET, pcPropertyInfoSets: ?*u32, prgPropertyInfoSets: ?*?*DBPROPINFOSET, ppDescBuffer: ?*?*u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, ModifyDataSource: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDBDataSourceAdmin, cPropertySets: u32, rgPropertySets: ?[*]DBPROPSET, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDBDataSourceAdmin, cPropertySets: u32, rgPropertySets: ?[*]DBPROPSET, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDBDataSourceAdmin_CreateDataSource(self: *const T, cPropertySets: u32, rgPropertySets: ?[*]DBPROPSET, pUnkOuter: ?*IUnknown, riid: ?*const Guid, ppDBSession: ?*?*IUnknown) HRESULT { return @as(*const IDBDataSourceAdmin.VTable, @ptrCast(self.vtable)).CreateDataSource(@as(*const IDBDataSourceAdmin, @ptrCast(self)), cPropertySets, rgPropertySets, pUnkOuter, riid, ppDBSession); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDBDataSourceAdmin_DestroyDataSource(self: *const T) HRESULT { return @as(*const IDBDataSourceAdmin.VTable, @ptrCast(self.vtable)).DestroyDataSource(@as(*const IDBDataSourceAdmin, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDBDataSourceAdmin_GetCreationProperties(self: *const T, cPropertyIDSets: u32, rgPropertyIDSets: ?[*]const DBPROPIDSET, pcPropertyInfoSets: ?*u32, prgPropertyInfoSets: ?*?*DBPROPINFOSET, ppDescBuffer: ?*?*u16) HRESULT { return @as(*const IDBDataSourceAdmin.VTable, @ptrCast(self.vtable)).GetCreationProperties(@as(*const IDBDataSourceAdmin, @ptrCast(self)), cPropertyIDSets, rgPropertyIDSets, pcPropertyInfoSets, prgPropertyInfoSets, ppDescBuffer); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDBDataSourceAdmin_ModifyDataSource(self: *const T, cPropertySets: u32, rgPropertySets: ?[*]DBPROPSET) HRESULT { return @as(*const IDBDataSourceAdmin.VTable, @ptrCast(self.vtable)).ModifyDataSource(@as(*const IDBDataSourceAdmin, @ptrCast(self)), cPropertySets, rgPropertySets); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IDBAsynchNotify_Value = Guid.initString("0c733a96-2a1c-11ce-ade5-00aa0044773d"); pub const IID_IDBAsynchNotify = &IID_IDBAsynchNotify_Value; pub const IDBAsynchNotify = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, OnLowResource: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDBAsynchNotify, dwReserved: usize, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDBAsynchNotify, dwReserved: usize, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, OnProgress: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDBAsynchNotify, hChapter: usize, eOperation: u32, ulProgress: usize, ulProgressMax: usize, eAsynchPhase: u32, pwszStatusText: ?PWSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDBAsynchNotify, hChapter: usize, eOperation: u32, ulProgress: usize, ulProgressMax: usize, eAsynchPhase: u32, pwszStatusText: ?PWSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, OnStop: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDBAsynchNotify, hChapter: usize, eOperation: u32, hrStatus: HRESULT, pwszStatusText: ?PWSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDBAsynchNotify, hChapter: usize, eOperation: u32, hrStatus: HRESULT, pwszStatusText: ?PWSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDBAsynchNotify_OnLowResource(self: *const T, dwReserved: usize) HRESULT { return @as(*const IDBAsynchNotify.VTable, @ptrCast(self.vtable)).OnLowResource(@as(*const IDBAsynchNotify, @ptrCast(self)), dwReserved); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDBAsynchNotify_OnProgress(self: *const T, hChapter: usize, eOperation: u32, ulProgress: usize, ulProgressMax: usize, eAsynchPhase: u32, pwszStatusText: ?PWSTR) HRESULT { return @as(*const IDBAsynchNotify.VTable, @ptrCast(self.vtable)).OnProgress(@as(*const IDBAsynchNotify, @ptrCast(self)), hChapter, eOperation, ulProgress, ulProgressMax, eAsynchPhase, pwszStatusText); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDBAsynchNotify_OnStop(self: *const T, hChapter: usize, eOperation: u32, hrStatus: HRESULT, pwszStatusText: ?PWSTR) HRESULT { return @as(*const IDBAsynchNotify.VTable, @ptrCast(self.vtable)).OnStop(@as(*const IDBAsynchNotify, @ptrCast(self)), hChapter, eOperation, hrStatus, pwszStatusText); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IDBAsynchStatus_Value = Guid.initString("0c733a95-2a1c-11ce-ade5-00aa0044773d"); pub const IID_IDBAsynchStatus = &IID_IDBAsynchStatus_Value; pub const IDBAsynchStatus = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, Abort: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDBAsynchStatus, hChapter: usize, eOperation: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDBAsynchStatus, hChapter: usize, eOperation: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetStatus: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDBAsynchStatus, hChapter: usize, eOperation: u32, pulProgress: ?*usize, pulProgressMax: ?*usize, peAsynchPhase: ?*u32, ppwszStatusText: ?*?PWSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDBAsynchStatus, hChapter: usize, eOperation: u32, pulProgress: ?*usize, pulProgressMax: ?*usize, peAsynchPhase: ?*u32, ppwszStatusText: ?*?PWSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDBAsynchStatus_Abort(self: *const T, hChapter: usize, eOperation: u32) HRESULT { return @as(*const IDBAsynchStatus.VTable, @ptrCast(self.vtable)).Abort(@as(*const IDBAsynchStatus, @ptrCast(self)), hChapter, eOperation); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDBAsynchStatus_GetStatus(self: *const T, hChapter: usize, eOperation: u32, pulProgress: ?*usize, pulProgressMax: ?*usize, peAsynchPhase: ?*u32, ppwszStatusText: ?*?PWSTR) HRESULT { return @as(*const IDBAsynchStatus.VTable, @ptrCast(self.vtable)).GetStatus(@as(*const IDBAsynchStatus, @ptrCast(self)), hChapter, eOperation, pulProgress, pulProgressMax, peAsynchPhase, ppwszStatusText); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_ISessionProperties_Value = Guid.initString("0c733a85-2a1c-11ce-ade5-00aa0044773d"); pub const IID_ISessionProperties = &IID_ISessionProperties_Value; pub const ISessionProperties = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, GetProperties: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ISessionProperties, cPropertyIDSets: u32, rgPropertyIDSets: ?[*]const DBPROPIDSET, pcPropertySets: ?*u32, prgPropertySets: ?*?*DBPROPSET, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ISessionProperties, cPropertyIDSets: u32, rgPropertyIDSets: ?[*]const DBPROPIDSET, pcPropertySets: ?*u32, prgPropertySets: ?*?*DBPROPSET, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetProperties: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ISessionProperties, cPropertySets: u32, rgPropertySets: ?[*]DBPROPSET, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ISessionProperties, cPropertySets: u32, rgPropertySets: ?[*]DBPROPSET, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISessionProperties_GetProperties(self: *const T, cPropertyIDSets: u32, rgPropertyIDSets: ?[*]const DBPROPIDSET, pcPropertySets: ?*u32, prgPropertySets: ?*?*DBPROPSET) HRESULT { return @as(*const ISessionProperties.VTable, @ptrCast(self.vtable)).GetProperties(@as(*const ISessionProperties, @ptrCast(self)), cPropertyIDSets, rgPropertyIDSets, pcPropertySets, prgPropertySets); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISessionProperties_SetProperties(self: *const T, cPropertySets: u32, rgPropertySets: ?[*]DBPROPSET) HRESULT { return @as(*const ISessionProperties.VTable, @ptrCast(self.vtable)).SetProperties(@as(*const ISessionProperties, @ptrCast(self)), cPropertySets, rgPropertySets); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IIndexDefinition_Value = Guid.initString("0c733a68-2a1c-11ce-ade5-00aa0044773d"); pub const IID_IIndexDefinition = &IID_IIndexDefinition_Value; pub const IIndexDefinition = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, CreateIndex: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IIndexDefinition, pTableID: ?*DBID, pIndexID: ?*DBID, cIndexColumnDescs: usize, rgIndexColumnDescs: [*]const DBINDEXCOLUMNDESC, cPropertySets: u32, rgPropertySets: [*]DBPROPSET, ppIndexID: ?*?*DBID, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IIndexDefinition, pTableID: ?*DBID, pIndexID: ?*DBID, cIndexColumnDescs: usize, rgIndexColumnDescs: [*]const DBINDEXCOLUMNDESC, cPropertySets: u32, rgPropertySets: [*]DBPROPSET, ppIndexID: ?*?*DBID, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, DropIndex: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IIndexDefinition, pTableID: ?*DBID, pIndexID: ?*DBID, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IIndexDefinition, pTableID: ?*DBID, pIndexID: ?*DBID, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IIndexDefinition_CreateIndex(self: *const T, pTableID: ?*DBID, pIndexID: ?*DBID, cIndexColumnDescs: usize, rgIndexColumnDescs: [*]const DBINDEXCOLUMNDESC, cPropertySets: u32, rgPropertySets: [*]DBPROPSET, ppIndexID: ?*?*DBID) HRESULT { return @as(*const IIndexDefinition.VTable, @ptrCast(self.vtable)).CreateIndex(@as(*const IIndexDefinition, @ptrCast(self)), pTableID, pIndexID, cIndexColumnDescs, rgIndexColumnDescs, cPropertySets, rgPropertySets, ppIndexID); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IIndexDefinition_DropIndex(self: *const T, pTableID: ?*DBID, pIndexID: ?*DBID) HRESULT { return @as(*const IIndexDefinition.VTable, @ptrCast(self.vtable)).DropIndex(@as(*const IIndexDefinition, @ptrCast(self)), pTableID, pIndexID); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_ITableDefinition_Value = Guid.initString("0c733a86-2a1c-11ce-ade5-00aa0044773d"); pub const IID_ITableDefinition = &IID_ITableDefinition_Value; pub const ITableDefinition = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, CreateTable: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ITableDefinition, pUnkOuter: ?*IUnknown, pTableID: ?*DBID, cColumnDescs: usize, rgColumnDescs: ?[*]const DBCOLUMNDESC, riid: ?*const Guid, cPropertySets: u32, rgPropertySets: ?[*]DBPROPSET, ppTableID: ?*?*DBID, ppRowset: ?*?*IUnknown, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ITableDefinition, pUnkOuter: ?*IUnknown, pTableID: ?*DBID, cColumnDescs: usize, rgColumnDescs: ?[*]const DBCOLUMNDESC, riid: ?*const Guid, cPropertySets: u32, rgPropertySets: ?[*]DBPROPSET, ppTableID: ?*?*DBID, ppRowset: ?*?*IUnknown, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, DropTable: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ITableDefinition, pTableID: ?*DBID, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ITableDefinition, pTableID: ?*DBID, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, AddColumn: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ITableDefinition, pTableID: ?*DBID, pColumnDesc: ?*DBCOLUMNDESC, ppColumnID: ?*?*DBID, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ITableDefinition, pTableID: ?*DBID, pColumnDesc: ?*DBCOLUMNDESC, ppColumnID: ?*?*DBID, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, DropColumn: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ITableDefinition, pTableID: ?*DBID, pColumnID: ?*DBID, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ITableDefinition, pTableID: ?*DBID, pColumnID: ?*DBID, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITableDefinition_CreateTable(self: *const T, pUnkOuter: ?*IUnknown, pTableID: ?*DBID, cColumnDescs: usize, rgColumnDescs: ?[*]const DBCOLUMNDESC, riid: ?*const Guid, cPropertySets: u32, rgPropertySets: ?[*]DBPROPSET, ppTableID: ?*?*DBID, ppRowset: ?*?*IUnknown) HRESULT { return @as(*const ITableDefinition.VTable, @ptrCast(self.vtable)).CreateTable(@as(*const ITableDefinition, @ptrCast(self)), pUnkOuter, pTableID, cColumnDescs, rgColumnDescs, riid, cPropertySets, rgPropertySets, ppTableID, ppRowset); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITableDefinition_DropTable(self: *const T, pTableID: ?*DBID) HRESULT { return @as(*const ITableDefinition.VTable, @ptrCast(self.vtable)).DropTable(@as(*const ITableDefinition, @ptrCast(self)), pTableID); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITableDefinition_AddColumn(self: *const T, pTableID: ?*DBID, pColumnDesc: ?*DBCOLUMNDESC, ppColumnID: ?*?*DBID) HRESULT { return @as(*const ITableDefinition.VTable, @ptrCast(self.vtable)).AddColumn(@as(*const ITableDefinition, @ptrCast(self)), pTableID, pColumnDesc, ppColumnID); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITableDefinition_DropColumn(self: *const T, pTableID: ?*DBID, pColumnID: ?*DBID) HRESULT { return @as(*const ITableDefinition.VTable, @ptrCast(self.vtable)).DropColumn(@as(*const ITableDefinition, @ptrCast(self)), pTableID, pColumnID); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IOpenRowset_Value = Guid.initString("0c733a69-2a1c-11ce-ade5-00aa0044773d"); pub const IID_IOpenRowset = &IID_IOpenRowset_Value; pub const IOpenRowset = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, OpenRowset: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IOpenRowset, pUnkOuter: ?*IUnknown, pTableID: ?*DBID, pIndexID: ?*DBID, riid: ?*const Guid, cPropertySets: u32, rgPropertySets: ?[*]DBPROPSET, ppRowset: ?*?*IUnknown, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IOpenRowset, pUnkOuter: ?*IUnknown, pTableID: ?*DBID, pIndexID: ?*DBID, riid: ?*const Guid, cPropertySets: u32, rgPropertySets: ?[*]DBPROPSET, ppRowset: ?*?*IUnknown, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IOpenRowset_OpenRowset(self: *const T, pUnkOuter: ?*IUnknown, pTableID: ?*DBID, pIndexID: ?*DBID, riid: ?*const Guid, cPropertySets: u32, rgPropertySets: ?[*]DBPROPSET, ppRowset: ?*?*IUnknown) HRESULT { return @as(*const IOpenRowset.VTable, @ptrCast(self.vtable)).OpenRowset(@as(*const IOpenRowset, @ptrCast(self)), pUnkOuter, pTableID, pIndexID, riid, cPropertySets, rgPropertySets, ppRowset); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IDBSchemaRowset_Value = Guid.initString("0c733a7b-2a1c-11ce-ade5-00aa0044773d"); pub const IID_IDBSchemaRowset = &IID_IDBSchemaRowset_Value; pub const IDBSchemaRowset = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, GetRowset: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDBSchemaRowset, pUnkOuter: ?*IUnknown, rguidSchema: ?*const Guid, cRestrictions: u32, rgRestrictions: ?[*]const VARIANT, riid: ?*const Guid, cPropertySets: u32, rgPropertySets: ?[*]DBPROPSET, ppRowset: ?*?*IUnknown, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDBSchemaRowset, pUnkOuter: ?*IUnknown, rguidSchema: ?*const Guid, cRestrictions: u32, rgRestrictions: ?[*]const VARIANT, riid: ?*const Guid, cPropertySets: u32, rgPropertySets: ?[*]DBPROPSET, ppRowset: ?*?*IUnknown, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetSchemas: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDBSchemaRowset, pcSchemas: ?*u32, prgSchemas: ?*?*Guid, prgRestrictionSupport: ?*?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDBSchemaRowset, pcSchemas: ?*u32, prgSchemas: ?*?*Guid, prgRestrictionSupport: ?*?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDBSchemaRowset_GetRowset(self: *const T, pUnkOuter: ?*IUnknown, rguidSchema: ?*const Guid, cRestrictions: u32, rgRestrictions: ?[*]const VARIANT, riid: ?*const Guid, cPropertySets: u32, rgPropertySets: ?[*]DBPROPSET, ppRowset: ?*?*IUnknown) HRESULT { return @as(*const IDBSchemaRowset.VTable, @ptrCast(self.vtable)).GetRowset(@as(*const IDBSchemaRowset, @ptrCast(self)), pUnkOuter, rguidSchema, cRestrictions, rgRestrictions, riid, cPropertySets, rgPropertySets, ppRowset); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDBSchemaRowset_GetSchemas(self: *const T, pcSchemas: ?*u32, prgSchemas: ?*?*Guid, prgRestrictionSupport: ?*?*u32) HRESULT { return @as(*const IDBSchemaRowset.VTable, @ptrCast(self.vtable)).GetSchemas(@as(*const IDBSchemaRowset, @ptrCast(self)), pcSchemas, prgSchemas, prgRestrictionSupport); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IMDDataset_Value = Guid.initString("a07cccd1-8148-11d0-87bb-00c04fc33942"); pub const IID_IMDDataset = &IID_IMDDataset_Value; pub const IMDDataset = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, FreeAxisInfo: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IMDDataset, cAxes: usize, rgAxisInfo: ?*MDAXISINFO, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IMDDataset, cAxes: usize, rgAxisInfo: ?*MDAXISINFO, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetAxisInfo: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IMDDataset, pcAxes: ?*usize, prgAxisInfo: ?*?*MDAXISINFO, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IMDDataset, pcAxes: ?*usize, prgAxisInfo: ?*?*MDAXISINFO, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetAxisRowset: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IMDDataset, pUnkOuter: ?*IUnknown, iAxis: usize, riid: ?*const Guid, cPropertySets: u32, rgPropertySets: ?*DBPROPSET, ppRowset: ?*?*IUnknown, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IMDDataset, pUnkOuter: ?*IUnknown, iAxis: usize, riid: ?*const Guid, cPropertySets: u32, rgPropertySets: ?*DBPROPSET, ppRowset: ?*?*IUnknown, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetCellData: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IMDDataset, hAccessor: usize, ulStartCell: usize, ulEndCell: usize, pData: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IMDDataset, hAccessor: usize, ulStartCell: usize, ulEndCell: usize, pData: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetSpecification: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IMDDataset, riid: ?*const Guid, ppSpecification: ?*?*IUnknown, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IMDDataset, riid: ?*const Guid, ppSpecification: ?*?*IUnknown, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMDDataset_FreeAxisInfo(self: *const T, cAxes: usize, rgAxisInfo: ?*MDAXISINFO) HRESULT { return @as(*const IMDDataset.VTable, @ptrCast(self.vtable)).FreeAxisInfo(@as(*const IMDDataset, @ptrCast(self)), cAxes, rgAxisInfo); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMDDataset_GetAxisInfo(self: *const T, pcAxes: ?*usize, prgAxisInfo: ?*?*MDAXISINFO) HRESULT { return @as(*const IMDDataset.VTable, @ptrCast(self.vtable)).GetAxisInfo(@as(*const IMDDataset, @ptrCast(self)), pcAxes, prgAxisInfo); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMDDataset_GetAxisRowset(self: *const T, pUnkOuter: ?*IUnknown, iAxis: usize, riid: ?*const Guid, cPropertySets: u32, rgPropertySets: ?*DBPROPSET, ppRowset: ?*?*IUnknown) HRESULT { return @as(*const IMDDataset.VTable, @ptrCast(self.vtable)).GetAxisRowset(@as(*const IMDDataset, @ptrCast(self)), pUnkOuter, iAxis, riid, cPropertySets, rgPropertySets, ppRowset); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMDDataset_GetCellData(self: *const T, hAccessor: usize, ulStartCell: usize, ulEndCell: usize, pData: ?*anyopaque) HRESULT { return @as(*const IMDDataset.VTable, @ptrCast(self.vtable)).GetCellData(@as(*const IMDDataset, @ptrCast(self)), hAccessor, ulStartCell, ulEndCell, pData); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMDDataset_GetSpecification(self: *const T, riid: ?*const Guid, ppSpecification: ?*?*IUnknown) HRESULT { return @as(*const IMDDataset.VTable, @ptrCast(self.vtable)).GetSpecification(@as(*const IMDDataset, @ptrCast(self)), riid, ppSpecification); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IMDFind_Value = Guid.initString("a07cccd2-8148-11d0-87bb-00c04fc33942"); pub const IID_IMDFind = &IID_IMDFind_Value; pub const IMDFind = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, FindCell: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IMDFind, ulStartingOrdinal: usize, cMembers: usize, rgpwszMember: ?*?PWSTR, pulCellOrdinal: ?*usize, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IMDFind, ulStartingOrdinal: usize, cMembers: usize, rgpwszMember: ?*?PWSTR, pulCellOrdinal: ?*usize, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, FindTuple: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IMDFind, ulAxisIdentifier: u32, ulStartingOrdinal: usize, cMembers: usize, rgpwszMember: ?*?PWSTR, pulTupleOrdinal: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IMDFind, ulAxisIdentifier: u32, ulStartingOrdinal: usize, cMembers: usize, rgpwszMember: ?*?PWSTR, pulTupleOrdinal: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMDFind_FindCell(self: *const T, ulStartingOrdinal: usize, cMembers: usize, rgpwszMember: ?*?PWSTR, pulCellOrdinal: ?*usize) HRESULT { return @as(*const IMDFind.VTable, @ptrCast(self.vtable)).FindCell(@as(*const IMDFind, @ptrCast(self)), ulStartingOrdinal, cMembers, rgpwszMember, pulCellOrdinal); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMDFind_FindTuple(self: *const T, ulAxisIdentifier: u32, ulStartingOrdinal: usize, cMembers: usize, rgpwszMember: ?*?PWSTR, pulTupleOrdinal: ?*u32) HRESULT { return @as(*const IMDFind.VTable, @ptrCast(self.vtable)).FindTuple(@as(*const IMDFind, @ptrCast(self)), ulAxisIdentifier, ulStartingOrdinal, cMembers, rgpwszMember, pulTupleOrdinal); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IMDRangeRowset_Value = Guid.initString("0c733aa0-2a1c-11ce-ade5-00aa0044773d"); pub const IID_IMDRangeRowset = &IID_IMDRangeRowset_Value; pub const IMDRangeRowset = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, GetRangeRowset: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IMDRangeRowset, pUnkOuter: ?*IUnknown, ulStartCell: usize, ulEndCell: usize, riid: ?*const Guid, cPropertySets: u32, rgPropertySets: ?*DBPROPSET, ppRowset: ?*?*IUnknown, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IMDRangeRowset, pUnkOuter: ?*IUnknown, ulStartCell: usize, ulEndCell: usize, riid: ?*const Guid, cPropertySets: u32, rgPropertySets: ?*DBPROPSET, ppRowset: ?*?*IUnknown, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMDRangeRowset_GetRangeRowset(self: *const T, pUnkOuter: ?*IUnknown, ulStartCell: usize, ulEndCell: usize, riid: ?*const Guid, cPropertySets: u32, rgPropertySets: ?*DBPROPSET, ppRowset: ?*?*IUnknown) HRESULT { return @as(*const IMDRangeRowset.VTable, @ptrCast(self.vtable)).GetRangeRowset(@as(*const IMDRangeRowset, @ptrCast(self)), pUnkOuter, ulStartCell, ulEndCell, riid, cPropertySets, rgPropertySets, ppRowset); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IAlterTable_Value = Guid.initString("0c733aa5-2a1c-11ce-ade5-00aa0044773d"); pub const IID_IAlterTable = &IID_IAlterTable_Value; pub const IAlterTable = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, AlterColumn: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IAlterTable, pTableId: ?*DBID, pColumnId: ?*DBID, dwColumnDescFlags: u32, pColumnDesc: ?*DBCOLUMNDESC, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IAlterTable, pTableId: ?*DBID, pColumnId: ?*DBID, dwColumnDescFlags: u32, pColumnDesc: ?*DBCOLUMNDESC, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, AlterTable: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IAlterTable, pTableId: ?*DBID, pNewTableId: ?*DBID, cPropertySets: u32, rgPropertySets: ?*DBPROPSET, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IAlterTable, pTableId: ?*DBID, pNewTableId: ?*DBID, cPropertySets: u32, rgPropertySets: ?*DBPROPSET, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IAlterTable_AlterColumn(self: *const T, pTableId: ?*DBID, pColumnId: ?*DBID, dwColumnDescFlags: u32, pColumnDesc: ?*DBCOLUMNDESC) HRESULT { return @as(*const IAlterTable.VTable, @ptrCast(self.vtable)).AlterColumn(@as(*const IAlterTable, @ptrCast(self)), pTableId, pColumnId, dwColumnDescFlags, pColumnDesc); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IAlterTable_AlterTable(self: *const T, pTableId: ?*DBID, pNewTableId: ?*DBID, cPropertySets: u32, rgPropertySets: ?*DBPROPSET) HRESULT { return @as(*const IAlterTable.VTable, @ptrCast(self.vtable)).AlterTable(@as(*const IAlterTable, @ptrCast(self)), pTableId, pNewTableId, cPropertySets, rgPropertySets); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IAlterIndex_Value = Guid.initString("0c733aa6-2a1c-11ce-ade5-00aa0044773d"); pub const IID_IAlterIndex = &IID_IAlterIndex_Value; pub const IAlterIndex = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, AlterIndex: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IAlterIndex, pTableId: ?*DBID, pIndexId: ?*DBID, pNewIndexId: ?*DBID, cPropertySets: u32, rgPropertySets: ?*DBPROPSET, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IAlterIndex, pTableId: ?*DBID, pIndexId: ?*DBID, pNewIndexId: ?*DBID, cPropertySets: u32, rgPropertySets: ?*DBPROPSET, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IAlterIndex_AlterIndex(self: *const T, pTableId: ?*DBID, pIndexId: ?*DBID, pNewIndexId: ?*DBID, cPropertySets: u32, rgPropertySets: ?*DBPROPSET) HRESULT { return @as(*const IAlterIndex.VTable, @ptrCast(self.vtable)).AlterIndex(@as(*const IAlterIndex, @ptrCast(self)), pTableId, pIndexId, pNewIndexId, cPropertySets, rgPropertySets); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IRowsetChapterMember_Value = Guid.initString("0c733aa8-2a1c-11ce-ade5-00aa0044773d"); pub const IID_IRowsetChapterMember = &IID_IRowsetChapterMember_Value; pub const IRowsetChapterMember = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, IsRowInChapter: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IRowsetChapterMember, hChapter: usize, hRow: usize, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IRowsetChapterMember, hChapter: usize, hRow: usize, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRowsetChapterMember_IsRowInChapter(self: *const T, hChapter: usize, hRow: usize) HRESULT { return @as(*const IRowsetChapterMember.VTable, @ptrCast(self.vtable)).IsRowInChapter(@as(*const IRowsetChapterMember, @ptrCast(self)), hChapter, hRow); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_ICommandPersist_Value = Guid.initString("0c733aa7-2a1c-11ce-ade5-00aa0044773d"); pub const IID_ICommandPersist = &IID_ICommandPersist_Value; pub const ICommandPersist = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, DeleteCommand: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ICommandPersist, pCommandID: ?*DBID, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ICommandPersist, pCommandID: ?*DBID, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetCurrentCommand: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ICommandPersist, ppCommandID: ?*?*DBID, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ICommandPersist, ppCommandID: ?*?*DBID, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, LoadCommand: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ICommandPersist, pCommandID: ?*DBID, dwFlags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ICommandPersist, pCommandID: ?*DBID, dwFlags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SaveCommand: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ICommandPersist, pCommandID: ?*DBID, dwFlags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ICommandPersist, pCommandID: ?*DBID, dwFlags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ICommandPersist_DeleteCommand(self: *const T, pCommandID: ?*DBID) HRESULT { return @as(*const ICommandPersist.VTable, @ptrCast(self.vtable)).DeleteCommand(@as(*const ICommandPersist, @ptrCast(self)), pCommandID); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ICommandPersist_GetCurrentCommand(self: *const T, ppCommandID: ?*?*DBID) HRESULT { return @as(*const ICommandPersist.VTable, @ptrCast(self.vtable)).GetCurrentCommand(@as(*const ICommandPersist, @ptrCast(self)), ppCommandID); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ICommandPersist_LoadCommand(self: *const T, pCommandID: ?*DBID, dwFlags: u32) HRESULT { return @as(*const ICommandPersist.VTable, @ptrCast(self.vtable)).LoadCommand(@as(*const ICommandPersist, @ptrCast(self)), pCommandID, dwFlags); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ICommandPersist_SaveCommand(self: *const T, pCommandID: ?*DBID, dwFlags: u32) HRESULT { return @as(*const ICommandPersist.VTable, @ptrCast(self.vtable)).SaveCommand(@as(*const ICommandPersist, @ptrCast(self)), pCommandID, dwFlags); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IRowsetRefresh_Value = Guid.initString("0c733aa9-2a1c-11ce-ade5-00aa0044773d"); pub const IID_IRowsetRefresh = &IID_IRowsetRefresh_Value; pub const IRowsetRefresh = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, RefreshVisibleData: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IRowsetRefresh, hChapter: usize, cRows: usize, rghRows: ?*const usize, fOverWrite: BOOL, pcRowsRefreshed: ?*usize, prghRowsRefreshed: ?*?*usize, prgRowStatus: ?*?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IRowsetRefresh, hChapter: usize, cRows: usize, rghRows: ?*const usize, fOverWrite: BOOL, pcRowsRefreshed: ?*usize, prghRowsRefreshed: ?*?*usize, prgRowStatus: ?*?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetLastVisibleData: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IRowsetRefresh, hRow: usize, hAccessor: usize, pData: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IRowsetRefresh, hRow: usize, hAccessor: usize, pData: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRowsetRefresh_RefreshVisibleData(self: *const T, hChapter: usize, cRows: usize, rghRows: ?*const usize, fOverWrite: BOOL, pcRowsRefreshed: ?*usize, prghRowsRefreshed: ?*?*usize, prgRowStatus: ?*?*u32) HRESULT { return @as(*const IRowsetRefresh.VTable, @ptrCast(self.vtable)).RefreshVisibleData(@as(*const IRowsetRefresh, @ptrCast(self)), hChapter, cRows, rghRows, fOverWrite, pcRowsRefreshed, prghRowsRefreshed, prgRowStatus); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRowsetRefresh_GetLastVisibleData(self: *const T, hRow: usize, hAccessor: usize, pData: ?*anyopaque) HRESULT { return @as(*const IRowsetRefresh.VTable, @ptrCast(self.vtable)).GetLastVisibleData(@as(*const IRowsetRefresh, @ptrCast(self)), hRow, hAccessor, pData); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IParentRowset_Value = Guid.initString("0c733aaa-2a1c-11ce-ade5-00aa0044773d"); pub const IID_IParentRowset = &IID_IParentRowset_Value; pub const IParentRowset = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, GetChildRowset: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IParentRowset, pUnkOuter: ?*IUnknown, iOrdinal: usize, riid: ?*const Guid, ppRowset: ?*?*IUnknown, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IParentRowset, pUnkOuter: ?*IUnknown, iOrdinal: usize, riid: ?*const Guid, ppRowset: ?*?*IUnknown, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IParentRowset_GetChildRowset(self: *const T, pUnkOuter: ?*IUnknown, iOrdinal: usize, riid: ?*const Guid, ppRowset: ?*?*IUnknown) HRESULT { return @as(*const IParentRowset.VTable, @ptrCast(self.vtable)).GetChildRowset(@as(*const IParentRowset, @ptrCast(self)), pUnkOuter, iOrdinal, riid, ppRowset); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IErrorRecords_Value = Guid.initString("0c733a67-2a1c-11ce-ade5-00aa0044773d"); pub const IID_IErrorRecords = &IID_IErrorRecords_Value; pub const IErrorRecords = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, AddErrorRecord: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IErrorRecords, pErrorInfo: ?*ERRORINFO, dwLookupID: u32, pdispparams: ?*DISPPARAMS, punkCustomError: ?*IUnknown, dwDynamicErrorID: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IErrorRecords, pErrorInfo: ?*ERRORINFO, dwLookupID: u32, pdispparams: ?*DISPPARAMS, punkCustomError: ?*IUnknown, dwDynamicErrorID: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetBasicErrorInfo: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IErrorRecords, ulRecordNum: u32, pErrorInfo: ?*ERRORINFO, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IErrorRecords, ulRecordNum: u32, pErrorInfo: ?*ERRORINFO, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetCustomErrorObject: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IErrorRecords, ulRecordNum: u32, riid: ?*const Guid, ppObject: ?*?*IUnknown, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IErrorRecords, ulRecordNum: u32, riid: ?*const Guid, ppObject: ?*?*IUnknown, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetErrorInfo: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IErrorRecords, ulRecordNum: u32, lcid: u32, ppErrorInfo: ?*?*IErrorInfo, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IErrorRecords, ulRecordNum: u32, lcid: u32, ppErrorInfo: ?*?*IErrorInfo, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetErrorParameters: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IErrorRecords, ulRecordNum: u32, pdispparams: ?*DISPPARAMS, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IErrorRecords, ulRecordNum: u32, pdispparams: ?*DISPPARAMS, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetRecordCount: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IErrorRecords, pcRecords: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IErrorRecords, pcRecords: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IErrorRecords_AddErrorRecord(self: *const T, pErrorInfo: ?*ERRORINFO, dwLookupID: u32, pdispparams: ?*DISPPARAMS, punkCustomError: ?*IUnknown, dwDynamicErrorID: u32) HRESULT { return @as(*const IErrorRecords.VTable, @ptrCast(self.vtable)).AddErrorRecord(@as(*const IErrorRecords, @ptrCast(self)), pErrorInfo, dwLookupID, pdispparams, punkCustomError, dwDynamicErrorID); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IErrorRecords_GetBasicErrorInfo(self: *const T, ulRecordNum: u32, pErrorInfo: ?*ERRORINFO) HRESULT { return @as(*const IErrorRecords.VTable, @ptrCast(self.vtable)).GetBasicErrorInfo(@as(*const IErrorRecords, @ptrCast(self)), ulRecordNum, pErrorInfo); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IErrorRecords_GetCustomErrorObject(self: *const T, ulRecordNum: u32, riid: ?*const Guid, ppObject: ?*?*IUnknown) HRESULT { return @as(*const IErrorRecords.VTable, @ptrCast(self.vtable)).GetCustomErrorObject(@as(*const IErrorRecords, @ptrCast(self)), ulRecordNum, riid, ppObject); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IErrorRecords_GetErrorInfo(self: *const T, ulRecordNum: u32, lcid: u32, ppErrorInfo: ?*?*IErrorInfo) HRESULT { return @as(*const IErrorRecords.VTable, @ptrCast(self.vtable)).GetErrorInfo(@as(*const IErrorRecords, @ptrCast(self)), ulRecordNum, lcid, ppErrorInfo); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IErrorRecords_GetErrorParameters(self: *const T, ulRecordNum: u32, pdispparams: ?*DISPPARAMS) HRESULT { return @as(*const IErrorRecords.VTable, @ptrCast(self.vtable)).GetErrorParameters(@as(*const IErrorRecords, @ptrCast(self)), ulRecordNum, pdispparams); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IErrorRecords_GetRecordCount(self: *const T, pcRecords: ?*u32) HRESULT { return @as(*const IErrorRecords.VTable, @ptrCast(self.vtable)).GetRecordCount(@as(*const IErrorRecords, @ptrCast(self)), pcRecords); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IErrorLookup_Value = Guid.initString("0c733a66-2a1c-11ce-ade5-00aa0044773d"); pub const IID_IErrorLookup = &IID_IErrorLookup_Value; pub const IErrorLookup = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, GetErrorDescription: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IErrorLookup, hrError: HRESULT, dwLookupID: u32, pdispparams: ?*DISPPARAMS, lcid: u32, pbstrSource: ?*?BSTR, pbstrDescription: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IErrorLookup, hrError: HRESULT, dwLookupID: u32, pdispparams: ?*DISPPARAMS, lcid: u32, pbstrSource: ?*?BSTR, pbstrDescription: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetHelpInfo: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IErrorLookup, hrError: HRESULT, dwLookupID: u32, lcid: u32, pbstrHelpFile: ?*?BSTR, pdwHelpContext: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IErrorLookup, hrError: HRESULT, dwLookupID: u32, lcid: u32, pbstrHelpFile: ?*?BSTR, pdwHelpContext: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, ReleaseErrors: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IErrorLookup, dwDynamicErrorID: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IErrorLookup, dwDynamicErrorID: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IErrorLookup_GetErrorDescription(self: *const T, hrError: HRESULT, dwLookupID: u32, pdispparams: ?*DISPPARAMS, lcid: u32, pbstrSource: ?*?BSTR, pbstrDescription: ?*?BSTR) HRESULT { return @as(*const IErrorLookup.VTable, @ptrCast(self.vtable)).GetErrorDescription(@as(*const IErrorLookup, @ptrCast(self)), hrError, dwLookupID, pdispparams, lcid, pbstrSource, pbstrDescription); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IErrorLookup_GetHelpInfo(self: *const T, hrError: HRESULT, dwLookupID: u32, lcid: u32, pbstrHelpFile: ?*?BSTR, pdwHelpContext: ?*u32) HRESULT { return @as(*const IErrorLookup.VTable, @ptrCast(self.vtable)).GetHelpInfo(@as(*const IErrorLookup, @ptrCast(self)), hrError, dwLookupID, lcid, pbstrHelpFile, pdwHelpContext); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IErrorLookup_ReleaseErrors(self: *const T, dwDynamicErrorID: u32) HRESULT { return @as(*const IErrorLookup.VTable, @ptrCast(self.vtable)).ReleaseErrors(@as(*const IErrorLookup, @ptrCast(self)), dwDynamicErrorID); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_ISQLErrorInfo_Value = Guid.initString("0c733a74-2a1c-11ce-ade5-00aa0044773d"); pub const IID_ISQLErrorInfo = &IID_ISQLErrorInfo_Value; pub const ISQLErrorInfo = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, GetSQLInfo: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ISQLErrorInfo, pbstrSQLState: ?*?BSTR, plNativeError: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ISQLErrorInfo, pbstrSQLState: ?*?BSTR, plNativeError: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISQLErrorInfo_GetSQLInfo(self: *const T, pbstrSQLState: ?*?BSTR, plNativeError: ?*i32) HRESULT { return @as(*const ISQLErrorInfo.VTable, @ptrCast(self.vtable)).GetSQLInfo(@as(*const ISQLErrorInfo, @ptrCast(self)), pbstrSQLState, plNativeError); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IGetDataSource_Value = Guid.initString("0c733a75-2a1c-11ce-ade5-00aa0044773d"); pub const IID_IGetDataSource = &IID_IGetDataSource_Value; pub const IGetDataSource = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, GetDataSource: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IGetDataSource, riid: ?*const Guid, ppDataSource: ?*?*IUnknown, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IGetDataSource, riid: ?*const Guid, ppDataSource: ?*?*IUnknown, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IGetDataSource_GetDataSource(self: *const T, riid: ?*const Guid, ppDataSource: ?*?*IUnknown) HRESULT { return @as(*const IGetDataSource.VTable, @ptrCast(self.vtable)).GetDataSource(@as(*const IGetDataSource, @ptrCast(self)), riid, ppDataSource); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_ITransactionLocal_Value = Guid.initString("0c733a5f-2a1c-11ce-ade5-00aa0044773d"); pub const IID_ITransactionLocal = &IID_ITransactionLocal_Value; pub const ITransactionLocal = extern struct { pub const VTable = extern struct { base: ITransaction.VTable, GetOptionsObject: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ITransactionLocal, ppOptions: ?*?*ITransactionOptions, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ITransactionLocal, ppOptions: ?*?*ITransactionOptions, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, StartTransaction: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ITransactionLocal, isoLevel: i32, isoFlags: u32, pOtherOptions: ?*ITransactionOptions, pulTransactionLevel: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ITransactionLocal, isoLevel: i32, isoFlags: u32, pOtherOptions: ?*ITransactionOptions, pulTransactionLevel: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace ITransaction.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITransactionLocal_GetOptionsObject(self: *const T, ppOptions: ?*?*ITransactionOptions) HRESULT { return @as(*const ITransactionLocal.VTable, @ptrCast(self.vtable)).GetOptionsObject(@as(*const ITransactionLocal, @ptrCast(self)), ppOptions); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITransactionLocal_StartTransaction(self: *const T, isoLevel: i32, isoFlags: u32, pOtherOptions: ?*ITransactionOptions, pulTransactionLevel: ?*u32) HRESULT { return @as(*const ITransactionLocal.VTable, @ptrCast(self.vtable)).StartTransaction(@as(*const ITransactionLocal, @ptrCast(self)), isoLevel, isoFlags, pOtherOptions, pulTransactionLevel); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_ITransactionJoin_Value = Guid.initString("0c733a5e-2a1c-11ce-ade5-00aa0044773d"); pub const IID_ITransactionJoin = &IID_ITransactionJoin_Value; pub const ITransactionJoin = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, GetOptionsObject: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ITransactionJoin, ppOptions: ?*?*ITransactionOptions, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ITransactionJoin, ppOptions: ?*?*ITransactionOptions, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, JoinTransaction: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ITransactionJoin, punkTransactionCoord: ?*IUnknown, isoLevel: i32, isoFlags: u32, pOtherOptions: ?*ITransactionOptions, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ITransactionJoin, punkTransactionCoord: ?*IUnknown, isoLevel: i32, isoFlags: u32, pOtherOptions: ?*ITransactionOptions, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITransactionJoin_GetOptionsObject(self: *const T, ppOptions: ?*?*ITransactionOptions) HRESULT { return @as(*const ITransactionJoin.VTable, @ptrCast(self.vtable)).GetOptionsObject(@as(*const ITransactionJoin, @ptrCast(self)), ppOptions); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITransactionJoin_JoinTransaction(self: *const T, punkTransactionCoord: ?*IUnknown, isoLevel: i32, isoFlags: u32, pOtherOptions: ?*ITransactionOptions) HRESULT { return @as(*const ITransactionJoin.VTable, @ptrCast(self.vtable)).JoinTransaction(@as(*const ITransactionJoin, @ptrCast(self)), punkTransactionCoord, isoLevel, isoFlags, pOtherOptions); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_ITransactionObject_Value = Guid.initString("0c733a60-2a1c-11ce-ade5-00aa0044773d"); pub const IID_ITransactionObject = &IID_ITransactionObject_Value; pub const ITransactionObject = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, GetTransactionObject: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ITransactionObject, ulTransactionLevel: u32, ppTransactionObject: ?*?*ITransaction, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ITransactionObject, ulTransactionLevel: u32, ppTransactionObject: ?*?*ITransaction, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITransactionObject_GetTransactionObject(self: *const T, ulTransactionLevel: u32, ppTransactionObject: ?*?*ITransaction) HRESULT { return @as(*const ITransactionObject.VTable, @ptrCast(self.vtable)).GetTransactionObject(@as(*const ITransactionObject, @ptrCast(self)), ulTransactionLevel, ppTransactionObject); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_ITrusteeAdmin_Value = Guid.initString("0c733aa1-2a1c-11ce-ade5-00aa0044773d"); pub const IID_ITrusteeAdmin = &IID_ITrusteeAdmin_Value; pub const ITrusteeAdmin = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, CompareTrustees: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ITrusteeAdmin, pTrustee1: ?*TRUSTEE_W, pTrustee2: ?*TRUSTEE_W, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ITrusteeAdmin, pTrustee1: ?*TRUSTEE_W, pTrustee2: ?*TRUSTEE_W, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, CreateTrustee: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ITrusteeAdmin, pTrustee: ?*TRUSTEE_W, cPropertySets: u32, rgPropertySets: ?*DBPROPSET, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ITrusteeAdmin, pTrustee: ?*TRUSTEE_W, cPropertySets: u32, rgPropertySets: ?*DBPROPSET, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, DeleteTrustee: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ITrusteeAdmin, pTrustee: ?*TRUSTEE_W, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ITrusteeAdmin, pTrustee: ?*TRUSTEE_W, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetTrusteeProperties: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ITrusteeAdmin, pTrustee: ?*TRUSTEE_W, cPropertySets: u32, rgPropertySets: ?*DBPROPSET, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ITrusteeAdmin, pTrustee: ?*TRUSTEE_W, cPropertySets: u32, rgPropertySets: ?*DBPROPSET, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetTrusteeProperties: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ITrusteeAdmin, pTrustee: ?*TRUSTEE_W, cPropertyIDSets: u32, rgPropertyIDSets: ?*const DBPROPIDSET, pcPropertySets: ?*u32, prgPropertySets: ?*?*DBPROPSET, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ITrusteeAdmin, pTrustee: ?*TRUSTEE_W, cPropertyIDSets: u32, rgPropertyIDSets: ?*const DBPROPIDSET, pcPropertySets: ?*u32, prgPropertySets: ?*?*DBPROPSET, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITrusteeAdmin_CompareTrustees(self: *const T, pTrustee1: ?*TRUSTEE_W, pTrustee2: ?*TRUSTEE_W) HRESULT { return @as(*const ITrusteeAdmin.VTable, @ptrCast(self.vtable)).CompareTrustees(@as(*const ITrusteeAdmin, @ptrCast(self)), pTrustee1, pTrustee2); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITrusteeAdmin_CreateTrustee(self: *const T, pTrustee: ?*TRUSTEE_W, cPropertySets: u32, rgPropertySets: ?*DBPROPSET) HRESULT { return @as(*const ITrusteeAdmin.VTable, @ptrCast(self.vtable)).CreateTrustee(@as(*const ITrusteeAdmin, @ptrCast(self)), pTrustee, cPropertySets, rgPropertySets); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITrusteeAdmin_DeleteTrustee(self: *const T, pTrustee: ?*TRUSTEE_W) HRESULT { return @as(*const ITrusteeAdmin.VTable, @ptrCast(self.vtable)).DeleteTrustee(@as(*const ITrusteeAdmin, @ptrCast(self)), pTrustee); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITrusteeAdmin_SetTrusteeProperties(self: *const T, pTrustee: ?*TRUSTEE_W, cPropertySets: u32, rgPropertySets: ?*DBPROPSET) HRESULT { return @as(*const ITrusteeAdmin.VTable, @ptrCast(self.vtable)).SetTrusteeProperties(@as(*const ITrusteeAdmin, @ptrCast(self)), pTrustee, cPropertySets, rgPropertySets); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITrusteeAdmin_GetTrusteeProperties(self: *const T, pTrustee: ?*TRUSTEE_W, cPropertyIDSets: u32, rgPropertyIDSets: ?*const DBPROPIDSET, pcPropertySets: ?*u32, prgPropertySets: ?*?*DBPROPSET) HRESULT { return @as(*const ITrusteeAdmin.VTable, @ptrCast(self.vtable)).GetTrusteeProperties(@as(*const ITrusteeAdmin, @ptrCast(self)), pTrustee, cPropertyIDSets, rgPropertyIDSets, pcPropertySets, prgPropertySets); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_ITrusteeGroupAdmin_Value = Guid.initString("0c733aa2-2a1c-11ce-ade5-00aa0044773d"); pub const IID_ITrusteeGroupAdmin = &IID_ITrusteeGroupAdmin_Value; pub const ITrusteeGroupAdmin = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, AddMember: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ITrusteeGroupAdmin, pMembershipTrustee: ?*TRUSTEE_W, pMemberTrustee: ?*TRUSTEE_W, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ITrusteeGroupAdmin, pMembershipTrustee: ?*TRUSTEE_W, pMemberTrustee: ?*TRUSTEE_W, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, DeleteMember: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ITrusteeGroupAdmin, pMembershipTrustee: ?*TRUSTEE_W, pMemberTrustee: ?*TRUSTEE_W, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ITrusteeGroupAdmin, pMembershipTrustee: ?*TRUSTEE_W, pMemberTrustee: ?*TRUSTEE_W, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, IsMember: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ITrusteeGroupAdmin, pMembershipTrustee: ?*TRUSTEE_W, pMemberTrustee: ?*TRUSTEE_W, pfStatus: ?*BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ITrusteeGroupAdmin, pMembershipTrustee: ?*TRUSTEE_W, pMemberTrustee: ?*TRUSTEE_W, pfStatus: ?*BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetMembers: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ITrusteeGroupAdmin, pMembershipTrustee: ?*TRUSTEE_W, pcMembers: ?*u32, prgMembers: ?*?*TRUSTEE_W, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ITrusteeGroupAdmin, pMembershipTrustee: ?*TRUSTEE_W, pcMembers: ?*u32, prgMembers: ?*?*TRUSTEE_W, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetMemberships: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ITrusteeGroupAdmin, pTrustee: ?*TRUSTEE_W, pcMemberships: ?*u32, prgMemberships: ?*?*TRUSTEE_W, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ITrusteeGroupAdmin, pTrustee: ?*TRUSTEE_W, pcMemberships: ?*u32, prgMemberships: ?*?*TRUSTEE_W, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITrusteeGroupAdmin_AddMember(self: *const T, pMembershipTrustee: ?*TRUSTEE_W, pMemberTrustee: ?*TRUSTEE_W) HRESULT { return @as(*const ITrusteeGroupAdmin.VTable, @ptrCast(self.vtable)).AddMember(@as(*const ITrusteeGroupAdmin, @ptrCast(self)), pMembershipTrustee, pMemberTrustee); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITrusteeGroupAdmin_DeleteMember(self: *const T, pMembershipTrustee: ?*TRUSTEE_W, pMemberTrustee: ?*TRUSTEE_W) HRESULT { return @as(*const ITrusteeGroupAdmin.VTable, @ptrCast(self.vtable)).DeleteMember(@as(*const ITrusteeGroupAdmin, @ptrCast(self)), pMembershipTrustee, pMemberTrustee); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITrusteeGroupAdmin_IsMember(self: *const T, pMembershipTrustee: ?*TRUSTEE_W, pMemberTrustee: ?*TRUSTEE_W, pfStatus: ?*BOOL) HRESULT { return @as(*const ITrusteeGroupAdmin.VTable, @ptrCast(self.vtable)).IsMember(@as(*const ITrusteeGroupAdmin, @ptrCast(self)), pMembershipTrustee, pMemberTrustee, pfStatus); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITrusteeGroupAdmin_GetMembers(self: *const T, pMembershipTrustee: ?*TRUSTEE_W, pcMembers: ?*u32, prgMembers: ?*?*TRUSTEE_W) HRESULT { return @as(*const ITrusteeGroupAdmin.VTable, @ptrCast(self.vtable)).GetMembers(@as(*const ITrusteeGroupAdmin, @ptrCast(self)), pMembershipTrustee, pcMembers, prgMembers); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITrusteeGroupAdmin_GetMemberships(self: *const T, pTrustee: ?*TRUSTEE_W, pcMemberships: ?*u32, prgMemberships: ?*?*TRUSTEE_W) HRESULT { return @as(*const ITrusteeGroupAdmin.VTable, @ptrCast(self.vtable)).GetMemberships(@as(*const ITrusteeGroupAdmin, @ptrCast(self)), pTrustee, pcMemberships, prgMemberships); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IObjectAccessControl_Value = Guid.initString("0c733aa3-2a1c-11ce-ade5-00aa0044773d"); pub const IID_IObjectAccessControl = &IID_IObjectAccessControl_Value; pub const IObjectAccessControl = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, GetObjectAccessRights: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IObjectAccessControl, pObject: ?*SEC_OBJECT, pcAccessEntries: ?*u32, prgAccessEntries: ?*?*EXPLICIT_ACCESS_W, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IObjectAccessControl, pObject: ?*SEC_OBJECT, pcAccessEntries: ?*u32, prgAccessEntries: ?*?*EXPLICIT_ACCESS_W, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetObjectOwner: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IObjectAccessControl, pObject: ?*SEC_OBJECT, ppOwner: ?*?*TRUSTEE_W, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IObjectAccessControl, pObject: ?*SEC_OBJECT, ppOwner: ?*?*TRUSTEE_W, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, IsObjectAccessAllowed: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IObjectAccessControl, pObject: ?*SEC_OBJECT, pAccessEntry: ?*EXPLICIT_ACCESS_W, pfResult: ?*BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IObjectAccessControl, pObject: ?*SEC_OBJECT, pAccessEntry: ?*EXPLICIT_ACCESS_W, pfResult: ?*BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetObjectAccessRights: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IObjectAccessControl, pObject: ?*SEC_OBJECT, cAccessEntries: u32, prgAccessEntries: ?*EXPLICIT_ACCESS_W, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IObjectAccessControl, pObject: ?*SEC_OBJECT, cAccessEntries: u32, prgAccessEntries: ?*EXPLICIT_ACCESS_W, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetObjectOwner: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IObjectAccessControl, pObject: ?*SEC_OBJECT, pOwner: ?*TRUSTEE_W, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IObjectAccessControl, pObject: ?*SEC_OBJECT, pOwner: ?*TRUSTEE_W, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IObjectAccessControl_GetObjectAccessRights(self: *const T, pObject: ?*SEC_OBJECT, pcAccessEntries: ?*u32, prgAccessEntries: ?*?*EXPLICIT_ACCESS_W) HRESULT { return @as(*const IObjectAccessControl.VTable, @ptrCast(self.vtable)).GetObjectAccessRights(@as(*const IObjectAccessControl, @ptrCast(self)), pObject, pcAccessEntries, prgAccessEntries); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IObjectAccessControl_GetObjectOwner(self: *const T, pObject: ?*SEC_OBJECT, ppOwner: ?*?*TRUSTEE_W) HRESULT { return @as(*const IObjectAccessControl.VTable, @ptrCast(self.vtable)).GetObjectOwner(@as(*const IObjectAccessControl, @ptrCast(self)), pObject, ppOwner); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IObjectAccessControl_IsObjectAccessAllowed(self: *const T, pObject: ?*SEC_OBJECT, pAccessEntry: ?*EXPLICIT_ACCESS_W, pfResult: ?*BOOL) HRESULT { return @as(*const IObjectAccessControl.VTable, @ptrCast(self.vtable)).IsObjectAccessAllowed(@as(*const IObjectAccessControl, @ptrCast(self)), pObject, pAccessEntry, pfResult); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IObjectAccessControl_SetObjectAccessRights(self: *const T, pObject: ?*SEC_OBJECT, cAccessEntries: u32, prgAccessEntries: ?*EXPLICIT_ACCESS_W) HRESULT { return @as(*const IObjectAccessControl.VTable, @ptrCast(self.vtable)).SetObjectAccessRights(@as(*const IObjectAccessControl, @ptrCast(self)), pObject, cAccessEntries, prgAccessEntries); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IObjectAccessControl_SetObjectOwner(self: *const T, pObject: ?*SEC_OBJECT, pOwner: ?*TRUSTEE_W) HRESULT { return @as(*const IObjectAccessControl.VTable, @ptrCast(self.vtable)).SetObjectOwner(@as(*const IObjectAccessControl, @ptrCast(self)), pObject, pOwner); } }; } pub usingnamespace MethodMixin(@This()); }; pub const ACCESS_MASKENUM = enum(i32) { EXCLUSIVE = 512, READDESIGN = 1024, WRITEDESIGN = 2048, WITHGRANT = 4096, REFERENCE = 8192, CREATE = 16384, INSERT = 32768, DELETE = 65536, READCONTROL = 131072, WRITEPERMISSIONS = 262144, WRITEOWNER = 524288, MAXIMUM_ALLOWED = 33554432, ALL = 268435456, EXECUTE = 536870912, READ = -2147483648, UPDATE = 1073741824, DROP = 256, }; pub const PERM_EXCLUSIVE = ACCESS_MASKENUM.EXCLUSIVE; pub const PERM_READDESIGN = ACCESS_MASKENUM.READDESIGN; pub const PERM_WRITEDESIGN = ACCESS_MASKENUM.WRITEDESIGN; pub const PERM_WITHGRANT = ACCESS_MASKENUM.WITHGRANT; pub const PERM_REFERENCE = ACCESS_MASKENUM.REFERENCE; pub const PERM_CREATE = ACCESS_MASKENUM.CREATE; pub const PERM_INSERT = ACCESS_MASKENUM.INSERT; pub const PERM_DELETE = ACCESS_MASKENUM.DELETE; pub const PERM_READCONTROL = ACCESS_MASKENUM.READCONTROL; pub const PERM_WRITEPERMISSIONS = ACCESS_MASKENUM.WRITEPERMISSIONS; pub const PERM_WRITEOWNER = ACCESS_MASKENUM.WRITEOWNER; pub const PERM_MAXIMUM_ALLOWED = ACCESS_MASKENUM.MAXIMUM_ALLOWED; pub const PERM_ALL = ACCESS_MASKENUM.ALL; pub const PERM_EXECUTE = ACCESS_MASKENUM.EXECUTE; pub const PERM_READ = ACCESS_MASKENUM.READ; pub const PERM_UPDATE = ACCESS_MASKENUM.UPDATE; pub const PERM_DROP = ACCESS_MASKENUM.DROP; const IID_ISecurityInfo_Value = Guid.initString("0c733aa4-2a1c-11ce-ade5-00aa0044773d"); pub const IID_ISecurityInfo = &IID_ISecurityInfo_Value; pub const ISecurityInfo = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, GetCurrentTrustee: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ISecurityInfo, ppTrustee: ?*?*TRUSTEE_W, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ISecurityInfo, ppTrustee: ?*?*TRUSTEE_W, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetObjectTypes: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ISecurityInfo, cObjectTypes: ?*u32, rgObjectTypes: ?*?*Guid, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ISecurityInfo, cObjectTypes: ?*u32, rgObjectTypes: ?*?*Guid, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetPermissions: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ISecurityInfo, ObjectType: Guid, pPermissions: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ISecurityInfo, ObjectType: Guid, pPermissions: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISecurityInfo_GetCurrentTrustee(self: *const T, ppTrustee: ?*?*TRUSTEE_W) HRESULT { return @as(*const ISecurityInfo.VTable, @ptrCast(self.vtable)).GetCurrentTrustee(@as(*const ISecurityInfo, @ptrCast(self)), ppTrustee); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISecurityInfo_GetObjectTypes(self: *const T, cObjectTypes: ?*u32, rgObjectTypes: ?*?*Guid) HRESULT { return @as(*const ISecurityInfo.VTable, @ptrCast(self.vtable)).GetObjectTypes(@as(*const ISecurityInfo, @ptrCast(self)), cObjectTypes, rgObjectTypes); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISecurityInfo_GetPermissions(self: *const T, ObjectType: Guid, pPermissions: ?*u32) HRESULT { return @as(*const ISecurityInfo.VTable, @ptrCast(self.vtable)).GetPermissions(@as(*const ISecurityInfo, @ptrCast(self)), ObjectType, pPermissions); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_ITableCreation_Value = Guid.initString("0c733abc-2a1c-11ce-ade5-00aa0044773d"); pub const IID_ITableCreation = &IID_ITableCreation_Value; pub const ITableCreation = extern struct { pub const VTable = extern struct { base: ITableDefinition.VTable, GetTableDefinition: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ITableCreation, pTableID: ?*DBID, pcColumnDescs: ?*usize, prgColumnDescs: ?[*]?*DBCOLUMNDESC, pcPropertySets: ?*u32, prgPropertySets: ?[*]?*DBPROPSET, pcConstraintDescs: ?*u32, prgConstraintDescs: ?[*]?*DBCONSTRAINTDESC, ppwszStringBuffer: ?*?*u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ITableCreation, pTableID: ?*DBID, pcColumnDescs: ?*usize, prgColumnDescs: ?[*]?*DBCOLUMNDESC, pcPropertySets: ?*u32, prgPropertySets: ?[*]?*DBPROPSET, pcConstraintDescs: ?*u32, prgConstraintDescs: ?[*]?*DBCONSTRAINTDESC, ppwszStringBuffer: ?*?*u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace ITableDefinition.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITableCreation_GetTableDefinition(self: *const T, pTableID: ?*DBID, pcColumnDescs: ?*usize, prgColumnDescs: ?[*]?*DBCOLUMNDESC, pcPropertySets: ?*u32, prgPropertySets: ?[*]?*DBPROPSET, pcConstraintDescs: ?*u32, prgConstraintDescs: ?[*]?*DBCONSTRAINTDESC, ppwszStringBuffer: ?*?*u16) HRESULT { return @as(*const ITableCreation.VTable, @ptrCast(self.vtable)).GetTableDefinition(@as(*const ITableCreation, @ptrCast(self)), pTableID, pcColumnDescs, prgColumnDescs, pcPropertySets, prgPropertySets, pcConstraintDescs, prgConstraintDescs, ppwszStringBuffer); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_ITableDefinitionWithConstraints_Value = Guid.initString("0c733aab-2a1c-11ce-ade5-00aa0044773d"); pub const IID_ITableDefinitionWithConstraints = &IID_ITableDefinitionWithConstraints_Value; pub const ITableDefinitionWithConstraints = extern struct { pub const VTable = extern struct { base: ITableCreation.VTable, AddConstraint: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ITableDefinitionWithConstraints, pTableID: ?*DBID, pConstraintDesc: ?*DBCONSTRAINTDESC, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ITableDefinitionWithConstraints, pTableID: ?*DBID, pConstraintDesc: ?*DBCONSTRAINTDESC, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, CreateTableWithConstraints: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ITableDefinitionWithConstraints, pUnkOuter: ?*IUnknown, pTableID: ?*DBID, cColumnDescs: usize, rgColumnDescs: ?*DBCOLUMNDESC, cConstraintDescs: u32, rgConstraintDescs: ?*DBCONSTRAINTDESC, riid: ?*const Guid, cPropertySets: u32, rgPropertySets: ?*DBPROPSET, ppTableID: ?*?*DBID, ppRowset: ?*?*IUnknown, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ITableDefinitionWithConstraints, pUnkOuter: ?*IUnknown, pTableID: ?*DBID, cColumnDescs: usize, rgColumnDescs: ?*DBCOLUMNDESC, cConstraintDescs: u32, rgConstraintDescs: ?*DBCONSTRAINTDESC, riid: ?*const Guid, cPropertySets: u32, rgPropertySets: ?*DBPROPSET, ppTableID: ?*?*DBID, ppRowset: ?*?*IUnknown, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, DropConstraint: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ITableDefinitionWithConstraints, pTableID: ?*DBID, pConstraintID: ?*DBID, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ITableDefinitionWithConstraints, pTableID: ?*DBID, pConstraintID: ?*DBID, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace ITableCreation.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITableDefinitionWithConstraints_AddConstraint(self: *const T, pTableID: ?*DBID, pConstraintDesc: ?*DBCONSTRAINTDESC) HRESULT { return @as(*const ITableDefinitionWithConstraints.VTable, @ptrCast(self.vtable)).AddConstraint(@as(*const ITableDefinitionWithConstraints, @ptrCast(self)), pTableID, pConstraintDesc); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITableDefinitionWithConstraints_CreateTableWithConstraints(self: *const T, pUnkOuter: ?*IUnknown, pTableID: ?*DBID, cColumnDescs: usize, rgColumnDescs: ?*DBCOLUMNDESC, cConstraintDescs: u32, rgConstraintDescs: ?*DBCONSTRAINTDESC, riid: ?*const Guid, cPropertySets: u32, rgPropertySets: ?*DBPROPSET, ppTableID: ?*?*DBID, ppRowset: ?*?*IUnknown) HRESULT { return @as(*const ITableDefinitionWithConstraints.VTable, @ptrCast(self.vtable)).CreateTableWithConstraints(@as(*const ITableDefinitionWithConstraints, @ptrCast(self)), pUnkOuter, pTableID, cColumnDescs, rgColumnDescs, cConstraintDescs, rgConstraintDescs, riid, cPropertySets, rgPropertySets, ppTableID, ppRowset); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITableDefinitionWithConstraints_DropConstraint(self: *const T, pTableID: ?*DBID, pConstraintID: ?*DBID) HRESULT { return @as(*const ITableDefinitionWithConstraints.VTable, @ptrCast(self.vtable)).DropConstraint(@as(*const ITableDefinitionWithConstraints, @ptrCast(self)), pTableID, pConstraintID); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IRow_Value = Guid.initString("0c733ab4-2a1c-11ce-ade5-00aa0044773d"); pub const IID_IRow = &IID_IRow_Value; pub const IRow = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, GetColumns: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IRow, cColumns: usize, rgColumns: [*]DBCOLUMNACCESS, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IRow, cColumns: usize, rgColumns: [*]DBCOLUMNACCESS, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetSourceRowset: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IRow, riid: ?*const Guid, ppRowset: ?*?*IUnknown, phRow: ?*usize, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IRow, riid: ?*const Guid, ppRowset: ?*?*IUnknown, phRow: ?*usize, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Open: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IRow, pUnkOuter: ?*IUnknown, pColumnID: ?*DBID, rguidColumnType: ?*const Guid, dwBindFlags: u32, riid: ?*const Guid, ppUnk: ?*?*IUnknown, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IRow, pUnkOuter: ?*IUnknown, pColumnID: ?*DBID, rguidColumnType: ?*const Guid, dwBindFlags: u32, riid: ?*const Guid, ppUnk: ?*?*IUnknown, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRow_GetColumns(self: *const T, cColumns: usize, rgColumns: [*]DBCOLUMNACCESS) HRESULT { return @as(*const IRow.VTable, @ptrCast(self.vtable)).GetColumns(@as(*const IRow, @ptrCast(self)), cColumns, rgColumns); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRow_GetSourceRowset(self: *const T, riid: ?*const Guid, ppRowset: ?*?*IUnknown, phRow: ?*usize) HRESULT { return @as(*const IRow.VTable, @ptrCast(self.vtable)).GetSourceRowset(@as(*const IRow, @ptrCast(self)), riid, ppRowset, phRow); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRow_Open(self: *const T, pUnkOuter: ?*IUnknown, pColumnID: ?*DBID, rguidColumnType: ?*const Guid, dwBindFlags: u32, riid: ?*const Guid, ppUnk: ?*?*IUnknown) HRESULT { return @as(*const IRow.VTable, @ptrCast(self.vtable)).Open(@as(*const IRow, @ptrCast(self)), pUnkOuter, pColumnID, rguidColumnType, dwBindFlags, riid, ppUnk); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IRowChange_Value = Guid.initString("0c733ab5-2a1c-11ce-ade5-00aa0044773d"); pub const IID_IRowChange = &IID_IRowChange_Value; pub const IRowChange = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, SetColumns: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IRowChange, cColumns: usize, rgColumns: [*]DBCOLUMNACCESS, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IRowChange, cColumns: usize, rgColumns: [*]DBCOLUMNACCESS, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRowChange_SetColumns(self: *const T, cColumns: usize, rgColumns: [*]DBCOLUMNACCESS) HRESULT { return @as(*const IRowChange.VTable, @ptrCast(self.vtable)).SetColumns(@as(*const IRowChange, @ptrCast(self)), cColumns, rgColumns); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IRowSchemaChange_Value = Guid.initString("0c733aae-2a1c-11ce-ade5-00aa0044773d"); pub const IID_IRowSchemaChange = &IID_IRowSchemaChange_Value; pub const IRowSchemaChange = extern struct { pub const VTable = extern struct { base: IRowChange.VTable, DeleteColumns: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IRowSchemaChange, cColumns: usize, rgColumnIDs: ?*const DBID, rgdwStatus: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IRowSchemaChange, cColumns: usize, rgColumnIDs: ?*const DBID, rgdwStatus: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, AddColumns: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IRowSchemaChange, cColumns: usize, rgNewColumnInfo: ?*const DBCOLUMNINFO, rgColumns: ?*DBCOLUMNACCESS, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IRowSchemaChange, cColumns: usize, rgNewColumnInfo: ?*const DBCOLUMNINFO, rgColumns: ?*DBCOLUMNACCESS, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IRowChange.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRowSchemaChange_DeleteColumns(self: *const T, cColumns: usize, rgColumnIDs: ?*const DBID, rgdwStatus: ?*u32) HRESULT { return @as(*const IRowSchemaChange.VTable, @ptrCast(self.vtable)).DeleteColumns(@as(*const IRowSchemaChange, @ptrCast(self)), cColumns, rgColumnIDs, rgdwStatus); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRowSchemaChange_AddColumns(self: *const T, cColumns: usize, rgNewColumnInfo: ?*const DBCOLUMNINFO, rgColumns: ?*DBCOLUMNACCESS) HRESULT { return @as(*const IRowSchemaChange.VTable, @ptrCast(self.vtable)).AddColumns(@as(*const IRowSchemaChange, @ptrCast(self)), cColumns, rgNewColumnInfo, rgColumns); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IGetRow_Value = Guid.initString("0c733aaf-2a1c-11ce-ade5-00aa0044773d"); pub const IID_IGetRow = &IID_IGetRow_Value; pub const IGetRow = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, GetRowFromHROW: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IGetRow, pUnkOuter: ?*IUnknown, hRow: usize, riid: ?*const Guid, ppUnk: ?*?*IUnknown, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IGetRow, pUnkOuter: ?*IUnknown, hRow: usize, riid: ?*const Guid, ppUnk: ?*?*IUnknown, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetURLFromHROW: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IGetRow, hRow: usize, ppwszURL: ?*?PWSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IGetRow, hRow: usize, ppwszURL: ?*?PWSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IGetRow_GetRowFromHROW(self: *const T, pUnkOuter: ?*IUnknown, hRow: usize, riid: ?*const Guid, ppUnk: ?*?*IUnknown) HRESULT { return @as(*const IGetRow.VTable, @ptrCast(self.vtable)).GetRowFromHROW(@as(*const IGetRow, @ptrCast(self)), pUnkOuter, hRow, riid, ppUnk); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IGetRow_GetURLFromHROW(self: *const T, hRow: usize, ppwszURL: ?*?PWSTR) HRESULT { return @as(*const IGetRow.VTable, @ptrCast(self.vtable)).GetURLFromHROW(@as(*const IGetRow, @ptrCast(self)), hRow, ppwszURL); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IBindResource_Value = Guid.initString("0c733ab1-2a1c-11ce-ade5-00aa0044773d"); pub const IID_IBindResource = &IID_IBindResource_Value; pub const IBindResource = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, Bind: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IBindResource, pUnkOuter: ?*IUnknown, pwszURL: ?[*:0]const u16, dwBindURLFlags: u32, rguid: ?*const Guid, riid: ?*const Guid, pAuthenticate: ?*IAuthenticate, pImplSession: ?*DBIMPLICITSESSION, pdwBindStatus: ?*u32, ppUnk: ?*?*IUnknown, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IBindResource, pUnkOuter: ?*IUnknown, pwszURL: ?[*:0]const u16, dwBindURLFlags: u32, rguid: ?*const Guid, riid: ?*const Guid, pAuthenticate: ?*IAuthenticate, pImplSession: ?*DBIMPLICITSESSION, pdwBindStatus: ?*u32, ppUnk: ?*?*IUnknown, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IBindResource_Bind(self: *const T, pUnkOuter: ?*IUnknown, pwszURL: ?[*:0]const u16, dwBindURLFlags: u32, rguid: ?*const Guid, riid: ?*const Guid, pAuthenticate: ?*IAuthenticate, pImplSession: ?*DBIMPLICITSESSION, pdwBindStatus: ?*u32, ppUnk: ?*?*IUnknown) HRESULT { return @as(*const IBindResource.VTable, @ptrCast(self.vtable)).Bind(@as(*const IBindResource, @ptrCast(self)), pUnkOuter, pwszURL, dwBindURLFlags, rguid, riid, pAuthenticate, pImplSession, pdwBindStatus, ppUnk); } }; } pub usingnamespace MethodMixin(@This()); }; pub const DBCOPYFLAGSENUM = enum(i32) { ASYNC = 256, REPLACE_EXISTING = 512, ALLOW_EMULATION = 1024, NON_RECURSIVE = 2048, ATOMIC = 4096, }; pub const DBCOPY_ASYNC = DBCOPYFLAGSENUM.ASYNC; pub const DBCOPY_REPLACE_EXISTING = DBCOPYFLAGSENUM.REPLACE_EXISTING; pub const DBCOPY_ALLOW_EMULATION = DBCOPYFLAGSENUM.ALLOW_EMULATION; pub const DBCOPY_NON_RECURSIVE = DBCOPYFLAGSENUM.NON_RECURSIVE; pub const DBCOPY_ATOMIC = DBCOPYFLAGSENUM.ATOMIC; pub const DBMOVEFLAGSENUM = enum(i32) { REPLACE_EXISTING = 1, ASYNC = 256, DONT_UPDATE_LINKS = 512, ALLOW_EMULATION = 1024, ATOMIC = 4096, }; pub const DBMOVE_REPLACE_EXISTING = DBMOVEFLAGSENUM.REPLACE_EXISTING; pub const DBMOVE_ASYNC = DBMOVEFLAGSENUM.ASYNC; pub const DBMOVE_DONT_UPDATE_LINKS = DBMOVEFLAGSENUM.DONT_UPDATE_LINKS; pub const DBMOVE_ALLOW_EMULATION = DBMOVEFLAGSENUM.ALLOW_EMULATION; pub const DBMOVE_ATOMIC = DBMOVEFLAGSENUM.ATOMIC; pub const DBDELETEFLAGSENUM = enum(i32) { SYNC = 256, TOMIC = 4096, }; pub const DBDELETE_ASYNC = DBDELETEFLAGSENUM.SYNC; pub const DBDELETE_ATOMIC = DBDELETEFLAGSENUM.TOMIC; const IID_IScopedOperations_Value = Guid.initString("0c733ab0-2a1c-11ce-ade5-00aa0044773d"); pub const IID_IScopedOperations = &IID_IScopedOperations_Value; pub const IScopedOperations = extern struct { pub const VTable = extern struct { base: IBindResource.VTable, Copy: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IScopedOperations, cRows: usize, rgpwszSourceURLs: ?[*]?PWSTR, rgpwszDestURLs: [*]?PWSTR, dwCopyFlags: u32, pAuthenticate: ?*IAuthenticate, rgdwStatus: [*]u32, rgpwszNewURLs: ?[*]?PWSTR, ppStringsBuffer: ?*?*u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IScopedOperations, cRows: usize, rgpwszSourceURLs: ?[*]?PWSTR, rgpwszDestURLs: [*]?PWSTR, dwCopyFlags: u32, pAuthenticate: ?*IAuthenticate, rgdwStatus: [*]u32, rgpwszNewURLs: ?[*]?PWSTR, ppStringsBuffer: ?*?*u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Move: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IScopedOperations, cRows: usize, rgpwszSourceURLs: ?[*]?PWSTR, rgpwszDestURLs: [*]?PWSTR, dwMoveFlags: u32, pAuthenticate: ?*IAuthenticate, rgdwStatus: [*]u32, rgpwszNewURLs: ?[*]?PWSTR, ppStringsBuffer: ?*?*u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IScopedOperations, cRows: usize, rgpwszSourceURLs: ?[*]?PWSTR, rgpwszDestURLs: [*]?PWSTR, dwMoveFlags: u32, pAuthenticate: ?*IAuthenticate, rgdwStatus: [*]u32, rgpwszNewURLs: ?[*]?PWSTR, ppStringsBuffer: ?*?*u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Delete: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IScopedOperations, cRows: usize, rgpwszURLs: [*]?PWSTR, dwDeleteFlags: u32, rgdwStatus: [*]u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IScopedOperations, cRows: usize, rgpwszURLs: [*]?PWSTR, dwDeleteFlags: u32, rgdwStatus: [*]u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, OpenRowset: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IScopedOperations, pUnkOuter: ?*IUnknown, pTableID: ?*DBID, pIndexID: ?*DBID, riid: ?*const Guid, cPropertySets: u32, rgPropertySets: [*]DBPROPSET, ppRowset: ?*?*IUnknown, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IScopedOperations, pUnkOuter: ?*IUnknown, pTableID: ?*DBID, pIndexID: ?*DBID, riid: ?*const Guid, cPropertySets: u32, rgPropertySets: [*]DBPROPSET, ppRowset: ?*?*IUnknown, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IBindResource.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IScopedOperations_Copy(self: *const T, cRows: usize, rgpwszSourceURLs: ?[*]?PWSTR, rgpwszDestURLs: [*]?PWSTR, dwCopyFlags: u32, pAuthenticate: ?*IAuthenticate, rgdwStatus: [*]u32, rgpwszNewURLs: ?[*]?PWSTR, ppStringsBuffer: ?*?*u16) HRESULT { return @as(*const IScopedOperations.VTable, @ptrCast(self.vtable)).Copy(@as(*const IScopedOperations, @ptrCast(self)), cRows, rgpwszSourceURLs, rgpwszDestURLs, dwCopyFlags, pAuthenticate, rgdwStatus, rgpwszNewURLs, ppStringsBuffer); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IScopedOperations_Move(self: *const T, cRows: usize, rgpwszSourceURLs: ?[*]?PWSTR, rgpwszDestURLs: [*]?PWSTR, dwMoveFlags: u32, pAuthenticate: ?*IAuthenticate, rgdwStatus: [*]u32, rgpwszNewURLs: ?[*]?PWSTR, ppStringsBuffer: ?*?*u16) HRESULT { return @as(*const IScopedOperations.VTable, @ptrCast(self.vtable)).Move(@as(*const IScopedOperations, @ptrCast(self)), cRows, rgpwszSourceURLs, rgpwszDestURLs, dwMoveFlags, pAuthenticate, rgdwStatus, rgpwszNewURLs, ppStringsBuffer); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IScopedOperations_Delete(self: *const T, cRows: usize, rgpwszURLs: [*]?PWSTR, dwDeleteFlags: u32, rgdwStatus: [*]u32) HRESULT { return @as(*const IScopedOperations.VTable, @ptrCast(self.vtable)).Delete(@as(*const IScopedOperations, @ptrCast(self)), cRows, rgpwszURLs, dwDeleteFlags, rgdwStatus); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IScopedOperations_OpenRowset(self: *const T, pUnkOuter: ?*IUnknown, pTableID: ?*DBID, pIndexID: ?*DBID, riid: ?*const Guid, cPropertySets: u32, rgPropertySets: [*]DBPROPSET, ppRowset: ?*?*IUnknown) HRESULT { return @as(*const IScopedOperations.VTable, @ptrCast(self.vtable)).OpenRowset(@as(*const IScopedOperations, @ptrCast(self)), pUnkOuter, pTableID, pIndexID, riid, cPropertySets, rgPropertySets, ppRowset); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_ICreateRow_Value = Guid.initString("0c733ab2-2a1c-11ce-ade5-00aa0044773d"); pub const IID_ICreateRow = &IID_ICreateRow_Value; pub const ICreateRow = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, CreateRow: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ICreateRow, pUnkOuter: ?*IUnknown, pwszURL: ?[*:0]const u16, dwBindURLFlags: u32, rguid: ?*const Guid, riid: ?*const Guid, pAuthenticate: ?*IAuthenticate, pImplSession: ?*DBIMPLICITSESSION, pdwBindStatus: ?*u32, ppwszNewURL: ?*?PWSTR, ppUnk: ?*?*IUnknown, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ICreateRow, pUnkOuter: ?*IUnknown, pwszURL: ?[*:0]const u16, dwBindURLFlags: u32, rguid: ?*const Guid, riid: ?*const Guid, pAuthenticate: ?*IAuthenticate, pImplSession: ?*DBIMPLICITSESSION, pdwBindStatus: ?*u32, ppwszNewURL: ?*?PWSTR, ppUnk: ?*?*IUnknown, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ICreateRow_CreateRow(self: *const T, pUnkOuter: ?*IUnknown, pwszURL: ?[*:0]const u16, dwBindURLFlags: u32, rguid: ?*const Guid, riid: ?*const Guid, pAuthenticate: ?*IAuthenticate, pImplSession: ?*DBIMPLICITSESSION, pdwBindStatus: ?*u32, ppwszNewURL: ?*?PWSTR, ppUnk: ?*?*IUnknown) HRESULT { return @as(*const ICreateRow.VTable, @ptrCast(self.vtable)).CreateRow(@as(*const ICreateRow, @ptrCast(self)), pUnkOuter, pwszURL, dwBindURLFlags, rguid, riid, pAuthenticate, pImplSession, pdwBindStatus, ppwszNewURL, ppUnk); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IDBBinderProperties_Value = Guid.initString("0c733ab3-2a1c-11ce-ade5-00aa0044773d"); pub const IID_IDBBinderProperties = &IID_IDBBinderProperties_Value; pub const IDBBinderProperties = extern struct { pub const VTable = extern struct { base: IDBProperties.VTable, Reset: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDBBinderProperties, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDBBinderProperties, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IDBProperties.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDBBinderProperties_Reset(self: *const T) HRESULT { return @as(*const IDBBinderProperties.VTable, @ptrCast(self.vtable)).Reset(@as(*const IDBBinderProperties, @ptrCast(self))); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IColumnsInfo2_Value = Guid.initString("0c733ab8-2a1c-11ce-ade5-00aa0044773d"); pub const IID_IColumnsInfo2 = &IID_IColumnsInfo2_Value; pub const IColumnsInfo2 = extern struct { pub const VTable = extern struct { base: IColumnsInfo.VTable, GetRestrictedColumnInfo: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IColumnsInfo2, cColumnIDMasks: usize, rgColumnIDMasks: [*]const DBID, dwFlags: u32, pcColumns: ?*usize, prgColumnIDs: ?*?*DBID, prgColumnInfo: ?*?*DBCOLUMNINFO, ppStringsBuffer: ?*?*u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IColumnsInfo2, cColumnIDMasks: usize, rgColumnIDMasks: [*]const DBID, dwFlags: u32, pcColumns: ?*usize, prgColumnIDs: ?*?*DBID, prgColumnInfo: ?*?*DBCOLUMNINFO, ppStringsBuffer: ?*?*u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IColumnsInfo.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IColumnsInfo2_GetRestrictedColumnInfo(self: *const T, cColumnIDMasks: usize, rgColumnIDMasks: [*]const DBID, dwFlags: u32, pcColumns: ?*usize, prgColumnIDs: ?*?*DBID, prgColumnInfo: ?*?*DBCOLUMNINFO, ppStringsBuffer: ?*?*u16) HRESULT { return @as(*const IColumnsInfo2.VTable, @ptrCast(self.vtable)).GetRestrictedColumnInfo(@as(*const IColumnsInfo2, @ptrCast(self)), cColumnIDMasks, rgColumnIDMasks, dwFlags, pcColumns, prgColumnIDs, prgColumnInfo, ppStringsBuffer); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IRegisterProvider_Value = Guid.initString("0c733ab9-2a1c-11ce-ade5-00aa0044773d"); pub const IID_IRegisterProvider = &IID_IRegisterProvider_Value; pub const IRegisterProvider = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, GetURLMapping: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IRegisterProvider, pwszURL: ?[*:0]const u16, dwReserved: usize, pclsidProvider: ?*Guid, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IRegisterProvider, pwszURL: ?[*:0]const u16, dwReserved: usize, pclsidProvider: ?*Guid, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetURLMapping: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IRegisterProvider, pwszURL: ?[*:0]const u16, dwReserved: usize, rclsidProvider: ?*const Guid, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IRegisterProvider, pwszURL: ?[*:0]const u16, dwReserved: usize, rclsidProvider: ?*const Guid, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, UnregisterProvider: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IRegisterProvider, pwszURL: ?[*:0]const u16, dwReserved: usize, rclsidProvider: ?*const Guid, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IRegisterProvider, pwszURL: ?[*:0]const u16, dwReserved: usize, rclsidProvider: ?*const Guid, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRegisterProvider_GetURLMapping(self: *const T, pwszURL: ?[*:0]const u16, dwReserved: usize, pclsidProvider: ?*Guid) HRESULT { return @as(*const IRegisterProvider.VTable, @ptrCast(self.vtable)).GetURLMapping(@as(*const IRegisterProvider, @ptrCast(self)), pwszURL, dwReserved, pclsidProvider); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRegisterProvider_SetURLMapping(self: *const T, pwszURL: ?[*:0]const u16, dwReserved: usize, rclsidProvider: ?*const Guid) HRESULT { return @as(*const IRegisterProvider.VTable, @ptrCast(self.vtable)).SetURLMapping(@as(*const IRegisterProvider, @ptrCast(self)), pwszURL, dwReserved, rclsidProvider); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRegisterProvider_UnregisterProvider(self: *const T, pwszURL: ?[*:0]const u16, dwReserved: usize, rclsidProvider: ?*const Guid) HRESULT { return @as(*const IRegisterProvider.VTable, @ptrCast(self.vtable)).UnregisterProvider(@as(*const IRegisterProvider, @ptrCast(self)), pwszURL, dwReserved, rclsidProvider); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IGetSession_Value = Guid.initString("0c733aba-2a1c-11ce-ade5-00aa0044773d"); pub const IID_IGetSession = &IID_IGetSession_Value; pub const IGetSession = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, GetSession: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IGetSession, riid: ?*const Guid, ppSession: ?*?*IUnknown, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IGetSession, riid: ?*const Guid, ppSession: ?*?*IUnknown, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IGetSession_GetSession(self: *const T, riid: ?*const Guid, ppSession: ?*?*IUnknown) HRESULT { return @as(*const IGetSession.VTable, @ptrCast(self.vtable)).GetSession(@as(*const IGetSession, @ptrCast(self)), riid, ppSession); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IGetSourceRow_Value = Guid.initString("0c733abb-2a1c-11ce-ade5-00aa0044773d"); pub const IID_IGetSourceRow = &IID_IGetSourceRow_Value; pub const IGetSourceRow = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, GetSourceRow: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IGetSourceRow, riid: ?*const Guid, ppRow: ?*?*IUnknown, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IGetSourceRow, riid: ?*const Guid, ppRow: ?*?*IUnknown, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IGetSourceRow_GetSourceRow(self: *const T, riid: ?*const Guid, ppRow: ?*?*IUnknown) HRESULT { return @as(*const IGetSourceRow.VTable, @ptrCast(self.vtable)).GetSourceRow(@as(*const IGetSourceRow, @ptrCast(self)), riid, ppRow); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IRowsetCurrentIndex_Value = Guid.initString("0c733abd-2a1c-11ce-ade5-00aa0044773d"); pub const IID_IRowsetCurrentIndex = &IID_IRowsetCurrentIndex_Value; pub const IRowsetCurrentIndex = extern struct { pub const VTable = extern struct { base: IRowsetIndex.VTable, GetIndex: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IRowsetCurrentIndex, ppIndexID: ?*?*DBID, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IRowsetCurrentIndex, ppIndexID: ?*?*DBID, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetIndex: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IRowsetCurrentIndex, pIndexID: ?*DBID, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IRowsetCurrentIndex, pIndexID: ?*DBID, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IRowsetIndex.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRowsetCurrentIndex_GetIndex(self: *const T, ppIndexID: ?*?*DBID) HRESULT { return @as(*const IRowsetCurrentIndex.VTable, @ptrCast(self.vtable)).GetIndex(@as(*const IRowsetCurrentIndex, @ptrCast(self)), ppIndexID); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRowsetCurrentIndex_SetIndex(self: *const T, pIndexID: ?*DBID) HRESULT { return @as(*const IRowsetCurrentIndex.VTable, @ptrCast(self.vtable)).SetIndex(@as(*const IRowsetCurrentIndex, @ptrCast(self)), pIndexID); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_ICommandStream_Value = Guid.initString("0c733abf-2a1c-11ce-ade5-00aa0044773d"); pub const IID_ICommandStream = &IID_ICommandStream_Value; pub const ICommandStream = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, GetCommandStream: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ICommandStream, piid: ?*Guid, pguidDialect: ?*Guid, ppCommandStream: ?*?*IUnknown, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ICommandStream, piid: ?*Guid, pguidDialect: ?*Guid, ppCommandStream: ?*?*IUnknown, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetCommandStream: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ICommandStream, riid: ?*const Guid, rguidDialect: ?*const Guid, pCommandStream: ?*IUnknown, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ICommandStream, riid: ?*const Guid, rguidDialect: ?*const Guid, pCommandStream: ?*IUnknown, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ICommandStream_GetCommandStream(self: *const T, piid: ?*Guid, pguidDialect: ?*Guid, ppCommandStream: ?*?*IUnknown) HRESULT { return @as(*const ICommandStream.VTable, @ptrCast(self.vtable)).GetCommandStream(@as(*const ICommandStream, @ptrCast(self)), piid, pguidDialect, ppCommandStream); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ICommandStream_SetCommandStream(self: *const T, riid: ?*const Guid, rguidDialect: ?*const Guid, pCommandStream: ?*IUnknown) HRESULT { return @as(*const ICommandStream.VTable, @ptrCast(self.vtable)).SetCommandStream(@as(*const ICommandStream, @ptrCast(self)), riid, rguidDialect, pCommandStream); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IRowsetBookmark_Value = Guid.initString("0c733ac2-2a1c-11ce-ade5-00aa0044773d"); pub const IID_IRowsetBookmark = &IID_IRowsetBookmark_Value; pub const IRowsetBookmark = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, PositionOnBookmark: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IRowsetBookmark, hChapter: usize, cbBookmark: usize, // TODO: what to do with BytesParamIndex 1? pBookmark: ?*const u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IRowsetBookmark, hChapter: usize, cbBookmark: usize, // TODO: what to do with BytesParamIndex 1? pBookmark: ?*const u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRowsetBookmark_PositionOnBookmark(self: *const T, hChapter: usize, cbBookmark: usize, pBookmark: ?*const u8) HRESULT { return @as(*const IRowsetBookmark.VTable, @ptrCast(self.vtable)).PositionOnBookmark(@as(*const IRowsetBookmark, @ptrCast(self)), hChapter, cbBookmark, pBookmark); } }; } pub usingnamespace MethodMixin(@This()); }; const CLSID_QueryParser_Value = Guid.initString("b72f8fd8-0fab-4dd9-bdbf-245a6ce1485b"); pub const CLSID_QueryParser = &CLSID_QueryParser_Value; const CLSID_NegationCondition_Value = Guid.initString("8de9c74c-605a-4acd-bee3-2b222aa2d23d"); pub const CLSID_NegationCondition = &CLSID_NegationCondition_Value; const CLSID_CompoundCondition_Value = Guid.initString("116f8d13-101e-4fa5-84d4-ff8279381935"); pub const CLSID_CompoundCondition = &CLSID_CompoundCondition_Value; const CLSID_LeafCondition_Value = Guid.initString("52f15c89-5a17-48e1-bbcd-46a3f89c7cc2"); pub const CLSID_LeafCondition = &CLSID_LeafCondition_Value; const CLSID_ConditionFactory_Value = Guid.initString("e03e85b0-7be3-4000-ba98-6c13de9fa486"); pub const CLSID_ConditionFactory = &CLSID_ConditionFactory_Value; const CLSID_Interval_Value = Guid.initString("d957171f-4bf9-4de2-bcd5-c70a7ca55836"); pub const CLSID_Interval = &CLSID_Interval_Value; const CLSID_QueryParserManager_Value = Guid.initString("5088b39a-29b4-4d9d-8245-4ee289222f66"); pub const CLSID_QueryParserManager = &CLSID_QueryParserManager_Value; pub const STRUCTURED_QUERY_SYNTAX = enum(i32) { NO_SYNTAX = 0, ADVANCED_QUERY_SYNTAX = 1, NATURAL_QUERY_SYNTAX = 2, }; pub const SQS_NO_SYNTAX = STRUCTURED_QUERY_SYNTAX.NO_SYNTAX; pub const SQS_ADVANCED_QUERY_SYNTAX = STRUCTURED_QUERY_SYNTAX.ADVANCED_QUERY_SYNTAX; pub const SQS_NATURAL_QUERY_SYNTAX = STRUCTURED_QUERY_SYNTAX.NATURAL_QUERY_SYNTAX; pub const STRUCTURED_QUERY_SINGLE_OPTION = enum(i32) { SCHEMA = 0, LOCALE_WORD_BREAKING = 1, WORD_BREAKER = 2, NATURAL_SYNTAX = 3, AUTOMATIC_WILDCARD = 4, TRACE_LEVEL = 5, LANGUAGE_KEYWORDS = 6, SYNTAX = 7, TIME_ZONE = 8, IMPLICIT_CONNECTOR = 9, CONNECTOR_CASE = 10, }; pub const SQSO_SCHEMA = STRUCTURED_QUERY_SINGLE_OPTION.SCHEMA; pub const SQSO_LOCALE_WORD_BREAKING = STRUCTURED_QUERY_SINGLE_OPTION.LOCALE_WORD_BREAKING; pub const SQSO_WORD_BREAKER = STRUCTURED_QUERY_SINGLE_OPTION.WORD_BREAKER; pub const SQSO_NATURAL_SYNTAX = STRUCTURED_QUERY_SINGLE_OPTION.NATURAL_SYNTAX; pub const SQSO_AUTOMATIC_WILDCARD = STRUCTURED_QUERY_SINGLE_OPTION.AUTOMATIC_WILDCARD; pub const SQSO_TRACE_LEVEL = STRUCTURED_QUERY_SINGLE_OPTION.TRACE_LEVEL; pub const SQSO_LANGUAGE_KEYWORDS = STRUCTURED_QUERY_SINGLE_OPTION.LANGUAGE_KEYWORDS; pub const SQSO_SYNTAX = STRUCTURED_QUERY_SINGLE_OPTION.SYNTAX; pub const SQSO_TIME_ZONE = STRUCTURED_QUERY_SINGLE_OPTION.TIME_ZONE; pub const SQSO_IMPLICIT_CONNECTOR = STRUCTURED_QUERY_SINGLE_OPTION.IMPLICIT_CONNECTOR; pub const SQSO_CONNECTOR_CASE = STRUCTURED_QUERY_SINGLE_OPTION.CONNECTOR_CASE; pub const STRUCTURED_QUERY_MULTIOPTION = enum(i32) { VIRTUAL_PROPERTY = 0, DEFAULT_PROPERTY = 1, GENERATOR_FOR_TYPE = 2, MAP_PROPERTY = 3, }; pub const SQMO_VIRTUAL_PROPERTY = STRUCTURED_QUERY_MULTIOPTION.VIRTUAL_PROPERTY; pub const SQMO_DEFAULT_PROPERTY = STRUCTURED_QUERY_MULTIOPTION.DEFAULT_PROPERTY; pub const SQMO_GENERATOR_FOR_TYPE = STRUCTURED_QUERY_MULTIOPTION.GENERATOR_FOR_TYPE; pub const SQMO_MAP_PROPERTY = STRUCTURED_QUERY_MULTIOPTION.MAP_PROPERTY; pub const STRUCTURED_QUERY_PARSE_ERROR = enum(i32) { NONE = 0, EXTRA_OPENING_PARENTHESIS = 1, EXTRA_CLOSING_PARENTHESIS = 2, IGNORED_MODIFIER = 3, IGNORED_CONNECTOR = 4, IGNORED_KEYWORD = 5, UNHANDLED = 6, }; pub const SQPE_NONE = STRUCTURED_QUERY_PARSE_ERROR.NONE; pub const SQPE_EXTRA_OPENING_PARENTHESIS = STRUCTURED_QUERY_PARSE_ERROR.EXTRA_OPENING_PARENTHESIS; pub const SQPE_EXTRA_CLOSING_PARENTHESIS = STRUCTURED_QUERY_PARSE_ERROR.EXTRA_CLOSING_PARENTHESIS; pub const SQPE_IGNORED_MODIFIER = STRUCTURED_QUERY_PARSE_ERROR.IGNORED_MODIFIER; pub const SQPE_IGNORED_CONNECTOR = STRUCTURED_QUERY_PARSE_ERROR.IGNORED_CONNECTOR; pub const SQPE_IGNORED_KEYWORD = STRUCTURED_QUERY_PARSE_ERROR.IGNORED_KEYWORD; pub const SQPE_UNHANDLED = STRUCTURED_QUERY_PARSE_ERROR.UNHANDLED; pub const STRUCTURED_QUERY_RESOLVE_OPTION = enum(u32) { DEFAULT = 0, DONT_RESOLVE_DATETIME = 1, ALWAYS_ONE_INTERVAL = 2, DONT_SIMPLIFY_CONDITION_TREES = 4, DONT_MAP_RELATIONS = 8, DONT_RESOLVE_RANGES = 16, DONT_REMOVE_UNRESTRICTED_KEYWORDS = 32, DONT_SPLIT_WORDS = 64, IGNORE_PHRASE_ORDER = 128, ADD_VALUE_TYPE_FOR_PLAIN_VALUES = 256, ADD_ROBUST_ITEM_NAME = 512, _, pub fn initFlags(o: struct { DEFAULT: u1 = 0, DONT_RESOLVE_DATETIME: u1 = 0, ALWAYS_ONE_INTERVAL: u1 = 0, DONT_SIMPLIFY_CONDITION_TREES: u1 = 0, DONT_MAP_RELATIONS: u1 = 0, DONT_RESOLVE_RANGES: u1 = 0, DONT_REMOVE_UNRESTRICTED_KEYWORDS: u1 = 0, DONT_SPLIT_WORDS: u1 = 0, IGNORE_PHRASE_ORDER: u1 = 0, ADD_VALUE_TYPE_FOR_PLAIN_VALUES: u1 = 0, ADD_ROBUST_ITEM_NAME: u1 = 0, }) STRUCTURED_QUERY_RESOLVE_OPTION { return @as(STRUCTURED_QUERY_RESOLVE_OPTION, @enumFromInt((if (o.DEFAULT == 1) @intFromEnum(STRUCTURED_QUERY_RESOLVE_OPTION.DEFAULT) else 0) | (if (o.DONT_RESOLVE_DATETIME == 1) @intFromEnum(STRUCTURED_QUERY_RESOLVE_OPTION.DONT_RESOLVE_DATETIME) else 0) | (if (o.ALWAYS_ONE_INTERVAL == 1) @intFromEnum(STRUCTURED_QUERY_RESOLVE_OPTION.ALWAYS_ONE_INTERVAL) else 0) | (if (o.DONT_SIMPLIFY_CONDITION_TREES == 1) @intFromEnum(STRUCTURED_QUERY_RESOLVE_OPTION.DONT_SIMPLIFY_CONDITION_TREES) else 0) | (if (o.DONT_MAP_RELATIONS == 1) @intFromEnum(STRUCTURED_QUERY_RESOLVE_OPTION.DONT_MAP_RELATIONS) else 0) | (if (o.DONT_RESOLVE_RANGES == 1) @intFromEnum(STRUCTURED_QUERY_RESOLVE_OPTION.DONT_RESOLVE_RANGES) else 0) | (if (o.DONT_REMOVE_UNRESTRICTED_KEYWORDS == 1) @intFromEnum(STRUCTURED_QUERY_RESOLVE_OPTION.DONT_REMOVE_UNRESTRICTED_KEYWORDS) else 0) | (if (o.DONT_SPLIT_WORDS == 1) @intFromEnum(STRUCTURED_QUERY_RESOLVE_OPTION.DONT_SPLIT_WORDS) else 0) | (if (o.IGNORE_PHRASE_ORDER == 1) @intFromEnum(STRUCTURED_QUERY_RESOLVE_OPTION.IGNORE_PHRASE_ORDER) else 0) | (if (o.ADD_VALUE_TYPE_FOR_PLAIN_VALUES == 1) @intFromEnum(STRUCTURED_QUERY_RESOLVE_OPTION.ADD_VALUE_TYPE_FOR_PLAIN_VALUES) else 0) | (if (o.ADD_ROBUST_ITEM_NAME == 1) @intFromEnum(STRUCTURED_QUERY_RESOLVE_OPTION.ADD_ROBUST_ITEM_NAME) else 0))); } }; pub const SQRO_DEFAULT = STRUCTURED_QUERY_RESOLVE_OPTION.DEFAULT; pub const SQRO_DONT_RESOLVE_DATETIME = STRUCTURED_QUERY_RESOLVE_OPTION.DONT_RESOLVE_DATETIME; pub const SQRO_ALWAYS_ONE_INTERVAL = STRUCTURED_QUERY_RESOLVE_OPTION.ALWAYS_ONE_INTERVAL; pub const SQRO_DONT_SIMPLIFY_CONDITION_TREES = STRUCTURED_QUERY_RESOLVE_OPTION.DONT_SIMPLIFY_CONDITION_TREES; pub const SQRO_DONT_MAP_RELATIONS = STRUCTURED_QUERY_RESOLVE_OPTION.DONT_MAP_RELATIONS; pub const SQRO_DONT_RESOLVE_RANGES = STRUCTURED_QUERY_RESOLVE_OPTION.DONT_RESOLVE_RANGES; pub const SQRO_DONT_REMOVE_UNRESTRICTED_KEYWORDS = STRUCTURED_QUERY_RESOLVE_OPTION.DONT_REMOVE_UNRESTRICTED_KEYWORDS; pub const SQRO_DONT_SPLIT_WORDS = STRUCTURED_QUERY_RESOLVE_OPTION.DONT_SPLIT_WORDS; pub const SQRO_IGNORE_PHRASE_ORDER = STRUCTURED_QUERY_RESOLVE_OPTION.IGNORE_PHRASE_ORDER; pub const SQRO_ADD_VALUE_TYPE_FOR_PLAIN_VALUES = STRUCTURED_QUERY_RESOLVE_OPTION.ADD_VALUE_TYPE_FOR_PLAIN_VALUES; pub const SQRO_ADD_ROBUST_ITEM_NAME = STRUCTURED_QUERY_RESOLVE_OPTION.ADD_ROBUST_ITEM_NAME; pub const CASE_REQUIREMENT = enum(i32) { ANY = 0, UPPER_IF_AQS = 1, }; pub const CASE_REQUIREMENT_ANY = CASE_REQUIREMENT.ANY; pub const CASE_REQUIREMENT_UPPER_IF_AQS = CASE_REQUIREMENT.UPPER_IF_AQS; pub const INTERVAL_LIMIT_KIND = enum(i32) { EXPLICIT_INCLUDED = 0, EXPLICIT_EXCLUDED = 1, NEGATIVE_INFINITY = 2, POSITIVE_INFINITY = 3, }; pub const ILK_EXPLICIT_INCLUDED = INTERVAL_LIMIT_KIND.EXPLICIT_INCLUDED; pub const ILK_EXPLICIT_EXCLUDED = INTERVAL_LIMIT_KIND.EXPLICIT_EXCLUDED; pub const ILK_NEGATIVE_INFINITY = INTERVAL_LIMIT_KIND.NEGATIVE_INFINITY; pub const ILK_POSITIVE_INFINITY = INTERVAL_LIMIT_KIND.POSITIVE_INFINITY; pub const QUERY_PARSER_MANAGER_OPTION = enum(i32) { SCHEMA_BINARY_NAME = 0, PRELOCALIZED_SCHEMA_BINARY_PATH = 1, UNLOCALIZED_SCHEMA_BINARY_PATH = 2, LOCALIZED_SCHEMA_BINARY_PATH = 3, APPEND_LCID_TO_LOCALIZED_PATH = 4, LOCALIZER_SUPPORT = 5, }; pub const QPMO_SCHEMA_BINARY_NAME = QUERY_PARSER_MANAGER_OPTION.SCHEMA_BINARY_NAME; pub const QPMO_PRELOCALIZED_SCHEMA_BINARY_PATH = QUERY_PARSER_MANAGER_OPTION.PRELOCALIZED_SCHEMA_BINARY_PATH; pub const QPMO_UNLOCALIZED_SCHEMA_BINARY_PATH = QUERY_PARSER_MANAGER_OPTION.UNLOCALIZED_SCHEMA_BINARY_PATH; pub const QPMO_LOCALIZED_SCHEMA_BINARY_PATH = QUERY_PARSER_MANAGER_OPTION.LOCALIZED_SCHEMA_BINARY_PATH; pub const QPMO_APPEND_LCID_TO_LOCALIZED_PATH = QUERY_PARSER_MANAGER_OPTION.APPEND_LCID_TO_LOCALIZED_PATH; pub const QPMO_LOCALIZER_SUPPORT = QUERY_PARSER_MANAGER_OPTION.LOCALIZER_SUPPORT; // TODO: this type is limited to platform 'windows5.1.2600' const IID_IQueryParser_Value = Guid.initString("2ebdee67-3505-43f8-9946-ea44abc8e5b0"); pub const IID_IQueryParser = &IID_IQueryParser_Value; pub const IQueryParser = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, Parse: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IQueryParser, pszInputString: ?[*:0]const u16, pCustomProperties: ?*IEnumUnknown, ppSolution: ?*?*IQuerySolution, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IQueryParser, pszInputString: ?[*:0]const u16, pCustomProperties: ?*IEnumUnknown, ppSolution: ?*?*IQuerySolution, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetOption: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IQueryParser, option: STRUCTURED_QUERY_SINGLE_OPTION, pOptionValue: ?*const PROPVARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IQueryParser, option: STRUCTURED_QUERY_SINGLE_OPTION, pOptionValue: ?*const PROPVARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetOption: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IQueryParser, option: STRUCTURED_QUERY_SINGLE_OPTION, pOptionValue: ?*PROPVARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IQueryParser, option: STRUCTURED_QUERY_SINGLE_OPTION, pOptionValue: ?*PROPVARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetMultiOption: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IQueryParser, option: STRUCTURED_QUERY_MULTIOPTION, pszOptionKey: ?[*:0]const u16, pOptionValue: ?*const PROPVARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IQueryParser, option: STRUCTURED_QUERY_MULTIOPTION, pszOptionKey: ?[*:0]const u16, pOptionValue: ?*const PROPVARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetSchemaProvider: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IQueryParser, ppSchemaProvider: ?*?*ISchemaProvider, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IQueryParser, ppSchemaProvider: ?*?*ISchemaProvider, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, RestateToString: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IQueryParser, pCondition: ?*ICondition, fUseEnglish: BOOL, ppszQueryString: ?*?PWSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IQueryParser, pCondition: ?*ICondition, fUseEnglish: BOOL, ppszQueryString: ?*?PWSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, ParsePropertyValue: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IQueryParser, pszPropertyName: ?[*:0]const u16, pszInputString: ?[*:0]const u16, ppSolution: ?*?*IQuerySolution, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IQueryParser, pszPropertyName: ?[*:0]const u16, pszInputString: ?[*:0]const u16, ppSolution: ?*?*IQuerySolution, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, RestatePropertyValueToString: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IQueryParser, pCondition: ?*ICondition, fUseEnglish: BOOL, ppszPropertyName: ?*?PWSTR, ppszQueryString: ?*?PWSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IQueryParser, pCondition: ?*ICondition, fUseEnglish: BOOL, ppszPropertyName: ?*?PWSTR, ppszQueryString: ?*?PWSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IQueryParser_Parse(self: *const T, pszInputString: ?[*:0]const u16, pCustomProperties: ?*IEnumUnknown, ppSolution: ?*?*IQuerySolution) HRESULT { return @as(*const IQueryParser.VTable, @ptrCast(self.vtable)).Parse(@as(*const IQueryParser, @ptrCast(self)), pszInputString, pCustomProperties, ppSolution); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IQueryParser_SetOption(self: *const T, option: STRUCTURED_QUERY_SINGLE_OPTION, pOptionValue: ?*const PROPVARIANT) HRESULT { return @as(*const IQueryParser.VTable, @ptrCast(self.vtable)).SetOption(@as(*const IQueryParser, @ptrCast(self)), option, pOptionValue); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IQueryParser_GetOption(self: *const T, option: STRUCTURED_QUERY_SINGLE_OPTION, pOptionValue: ?*PROPVARIANT) HRESULT { return @as(*const IQueryParser.VTable, @ptrCast(self.vtable)).GetOption(@as(*const IQueryParser, @ptrCast(self)), option, pOptionValue); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IQueryParser_SetMultiOption(self: *const T, option: STRUCTURED_QUERY_MULTIOPTION, pszOptionKey: ?[*:0]const u16, pOptionValue: ?*const PROPVARIANT) HRESULT { return @as(*const IQueryParser.VTable, @ptrCast(self.vtable)).SetMultiOption(@as(*const IQueryParser, @ptrCast(self)), option, pszOptionKey, pOptionValue); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IQueryParser_GetSchemaProvider(self: *const T, ppSchemaProvider: ?*?*ISchemaProvider) HRESULT { return @as(*const IQueryParser.VTable, @ptrCast(self.vtable)).GetSchemaProvider(@as(*const IQueryParser, @ptrCast(self)), ppSchemaProvider); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IQueryParser_RestateToString(self: *const T, pCondition: ?*ICondition, fUseEnglish: BOOL, ppszQueryString: ?*?PWSTR) HRESULT { return @as(*const IQueryParser.VTable, @ptrCast(self.vtable)).RestateToString(@as(*const IQueryParser, @ptrCast(self)), pCondition, fUseEnglish, ppszQueryString); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IQueryParser_ParsePropertyValue(self: *const T, pszPropertyName: ?[*:0]const u16, pszInputString: ?[*:0]const u16, ppSolution: ?*?*IQuerySolution) HRESULT { return @as(*const IQueryParser.VTable, @ptrCast(self.vtable)).ParsePropertyValue(@as(*const IQueryParser, @ptrCast(self)), pszPropertyName, pszInputString, ppSolution); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IQueryParser_RestatePropertyValueToString(self: *const T, pCondition: ?*ICondition, fUseEnglish: BOOL, ppszPropertyName: ?*?PWSTR, ppszQueryString: ?*?PWSTR) HRESULT { return @as(*const IQueryParser.VTable, @ptrCast(self.vtable)).RestatePropertyValueToString(@as(*const IQueryParser, @ptrCast(self)), pCondition, fUseEnglish, ppszPropertyName, ppszQueryString); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows5.1.2600' const IID_IConditionFactory_Value = Guid.initString("a5efe073-b16f-474f-9f3e-9f8b497a3e08"); pub const IID_IConditionFactory = &IID_IConditionFactory_Value; pub const IConditionFactory = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, MakeNot: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IConditionFactory, pcSub: ?*ICondition, fSimplify: BOOL, ppcResult: ?*?*ICondition, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IConditionFactory, pcSub: ?*ICondition, fSimplify: BOOL, ppcResult: ?*?*ICondition, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, MakeAndOr: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IConditionFactory, ct: CONDITION_TYPE, peuSubs: ?*IEnumUnknown, fSimplify: BOOL, ppcResult: ?*?*ICondition, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IConditionFactory, ct: CONDITION_TYPE, peuSubs: ?*IEnumUnknown, fSimplify: BOOL, ppcResult: ?*?*ICondition, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, MakeLeaf: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IConditionFactory, pszPropertyName: ?[*:0]const u16, cop: CONDITION_OPERATION, pszValueType: ?[*:0]const u16, ppropvar: ?*const PROPVARIANT, pPropertyNameTerm: ?*IRichChunk, pOperationTerm: ?*IRichChunk, pValueTerm: ?*IRichChunk, fExpand: BOOL, ppcResult: ?*?*ICondition, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IConditionFactory, pszPropertyName: ?[*:0]const u16, cop: CONDITION_OPERATION, pszValueType: ?[*:0]const u16, ppropvar: ?*const PROPVARIANT, pPropertyNameTerm: ?*IRichChunk, pOperationTerm: ?*IRichChunk, pValueTerm: ?*IRichChunk, fExpand: BOOL, ppcResult: ?*?*ICondition, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Resolve: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IConditionFactory, pc: ?*ICondition, sqro: STRUCTURED_QUERY_RESOLVE_OPTION, pstReferenceTime: ?*const SYSTEMTIME, ppcResolved: ?*?*ICondition, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IConditionFactory, pc: ?*ICondition, sqro: STRUCTURED_QUERY_RESOLVE_OPTION, pstReferenceTime: ?*const SYSTEMTIME, ppcResolved: ?*?*ICondition, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IConditionFactory_MakeNot(self: *const T, pcSub: ?*ICondition, fSimplify: BOOL, ppcResult: ?*?*ICondition) HRESULT { return @as(*const IConditionFactory.VTable, @ptrCast(self.vtable)).MakeNot(@as(*const IConditionFactory, @ptrCast(self)), pcSub, fSimplify, ppcResult); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IConditionFactory_MakeAndOr(self: *const T, ct: CONDITION_TYPE, peuSubs: ?*IEnumUnknown, fSimplify: BOOL, ppcResult: ?*?*ICondition) HRESULT { return @as(*const IConditionFactory.VTable, @ptrCast(self.vtable)).MakeAndOr(@as(*const IConditionFactory, @ptrCast(self)), ct, peuSubs, fSimplify, ppcResult); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IConditionFactory_MakeLeaf(self: *const T, pszPropertyName: ?[*:0]const u16, cop: CONDITION_OPERATION, pszValueType: ?[*:0]const u16, ppropvar: ?*const PROPVARIANT, pPropertyNameTerm: ?*IRichChunk, pOperationTerm: ?*IRichChunk, pValueTerm: ?*IRichChunk, fExpand: BOOL, ppcResult: ?*?*ICondition) HRESULT { return @as(*const IConditionFactory.VTable, @ptrCast(self.vtable)).MakeLeaf(@as(*const IConditionFactory, @ptrCast(self)), pszPropertyName, cop, pszValueType, ppropvar, pPropertyNameTerm, pOperationTerm, pValueTerm, fExpand, ppcResult); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IConditionFactory_Resolve(self: *const T, pc: ?*ICondition, sqro: STRUCTURED_QUERY_RESOLVE_OPTION, pstReferenceTime: ?*const SYSTEMTIME, ppcResolved: ?*?*ICondition) HRESULT { return @as(*const IConditionFactory.VTable, @ptrCast(self.vtable)).Resolve(@as(*const IConditionFactory, @ptrCast(self)), pc, sqro, pstReferenceTime, ppcResolved); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows5.1.2600' const IID_IQuerySolution_Value = Guid.initString("d6ebc66b-8921-4193-afdd-a1789fb7ff57"); pub const IID_IQuerySolution = &IID_IQuerySolution_Value; pub const IQuerySolution = extern struct { pub const VTable = extern struct { base: IConditionFactory.VTable, GetQuery: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IQuerySolution, ppQueryNode: ?*?*ICondition, ppMainType: ?*?*IEntity, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IQuerySolution, ppQueryNode: ?*?*ICondition, ppMainType: ?*?*IEntity, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetErrors: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IQuerySolution, riid: ?*const Guid, ppParseErrors: ?*?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IQuerySolution, riid: ?*const Guid, ppParseErrors: ?*?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetLexicalData: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IQuerySolution, ppszInputString: ?*?PWSTR, ppTokens: ?*?*ITokenCollection, plcid: ?*u32, ppWordBreaker: ?*?*IUnknown, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IQuerySolution, ppszInputString: ?*?PWSTR, ppTokens: ?*?*ITokenCollection, plcid: ?*u32, ppWordBreaker: ?*?*IUnknown, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IConditionFactory.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IQuerySolution_GetQuery(self: *const T, ppQueryNode: ?*?*ICondition, ppMainType: ?*?*IEntity) HRESULT { return @as(*const IQuerySolution.VTable, @ptrCast(self.vtable)).GetQuery(@as(*const IQuerySolution, @ptrCast(self)), ppQueryNode, ppMainType); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IQuerySolution_GetErrors(self: *const T, riid: ?*const Guid, ppParseErrors: ?*?*anyopaque) HRESULT { return @as(*const IQuerySolution.VTable, @ptrCast(self.vtable)).GetErrors(@as(*const IQuerySolution, @ptrCast(self)), riid, ppParseErrors); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IQuerySolution_GetLexicalData(self: *const T, ppszInputString: ?*?PWSTR, ppTokens: ?*?*ITokenCollection, plcid: ?*u32, ppWordBreaker: ?*?*IUnknown) HRESULT { return @as(*const IQuerySolution.VTable, @ptrCast(self.vtable)).GetLexicalData(@as(*const IQuerySolution, @ptrCast(self)), ppszInputString, ppTokens, plcid, ppWordBreaker); } }; } pub usingnamespace MethodMixin(@This()); }; pub const CONDITION_CREATION_OPTIONS = enum(u32) { DEFAULT = 0, // NONE = 0, this enum value conflicts with DEFAULT SIMPLIFY = 1, VECTOR_AND = 2, VECTOR_OR = 4, VECTOR_LEAF = 8, USE_CONTENT_LOCALE = 16, _, pub fn initFlags(o: struct { DEFAULT: u1 = 0, SIMPLIFY: u1 = 0, VECTOR_AND: u1 = 0, VECTOR_OR: u1 = 0, VECTOR_LEAF: u1 = 0, USE_CONTENT_LOCALE: u1 = 0, }) CONDITION_CREATION_OPTIONS { return @as(CONDITION_CREATION_OPTIONS, @enumFromInt((if (o.DEFAULT == 1) @intFromEnum(CONDITION_CREATION_OPTIONS.DEFAULT) else 0) | (if (o.SIMPLIFY == 1) @intFromEnum(CONDITION_CREATION_OPTIONS.SIMPLIFY) else 0) | (if (o.VECTOR_AND == 1) @intFromEnum(CONDITION_CREATION_OPTIONS.VECTOR_AND) else 0) | (if (o.VECTOR_OR == 1) @intFromEnum(CONDITION_CREATION_OPTIONS.VECTOR_OR) else 0) | (if (o.VECTOR_LEAF == 1) @intFromEnum(CONDITION_CREATION_OPTIONS.VECTOR_LEAF) else 0) | (if (o.USE_CONTENT_LOCALE == 1) @intFromEnum(CONDITION_CREATION_OPTIONS.USE_CONTENT_LOCALE) else 0))); } }; pub const CONDITION_CREATION_DEFAULT = CONDITION_CREATION_OPTIONS.DEFAULT; pub const CONDITION_CREATION_NONE = CONDITION_CREATION_OPTIONS.DEFAULT; pub const CONDITION_CREATION_SIMPLIFY = CONDITION_CREATION_OPTIONS.SIMPLIFY; pub const CONDITION_CREATION_VECTOR_AND = CONDITION_CREATION_OPTIONS.VECTOR_AND; pub const CONDITION_CREATION_VECTOR_OR = CONDITION_CREATION_OPTIONS.VECTOR_OR; pub const CONDITION_CREATION_VECTOR_LEAF = CONDITION_CREATION_OPTIONS.VECTOR_LEAF; pub const CONDITION_CREATION_USE_CONTENT_LOCALE = CONDITION_CREATION_OPTIONS.USE_CONTENT_LOCALE; // TODO: this type is limited to platform 'windows6.1' const IID_IConditionFactory2_Value = Guid.initString("71d222e1-432f-429e-8c13-b6dafde5077a"); pub const IID_IConditionFactory2 = &IID_IConditionFactory2_Value; pub const IConditionFactory2 = extern struct { pub const VTable = extern struct { base: IConditionFactory.VTable, CreateTrueFalse: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IConditionFactory2, fVal: BOOL, cco: CONDITION_CREATION_OPTIONS, riid: ?*const Guid, ppv: ?*?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IConditionFactory2, fVal: BOOL, cco: CONDITION_CREATION_OPTIONS, riid: ?*const Guid, ppv: ?*?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, CreateNegation: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IConditionFactory2, pcSub: ?*ICondition, cco: CONDITION_CREATION_OPTIONS, riid: ?*const Guid, ppv: ?*?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IConditionFactory2, pcSub: ?*ICondition, cco: CONDITION_CREATION_OPTIONS, riid: ?*const Guid, ppv: ?*?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, CreateCompoundFromObjectArray: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IConditionFactory2, ct: CONDITION_TYPE, poaSubs: ?*IObjectArray, cco: CONDITION_CREATION_OPTIONS, riid: ?*const Guid, ppv: ?*?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IConditionFactory2, ct: CONDITION_TYPE, poaSubs: ?*IObjectArray, cco: CONDITION_CREATION_OPTIONS, riid: ?*const Guid, ppv: ?*?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, CreateCompoundFromArray: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IConditionFactory2, ct: CONDITION_TYPE, ppcondSubs: [*]?*ICondition, cSubs: u32, cco: CONDITION_CREATION_OPTIONS, riid: ?*const Guid, ppv: ?*?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IConditionFactory2, ct: CONDITION_TYPE, ppcondSubs: [*]?*ICondition, cSubs: u32, cco: CONDITION_CREATION_OPTIONS, riid: ?*const Guid, ppv: ?*?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, CreateStringLeaf: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IConditionFactory2, propkey: ?*const PROPERTYKEY, cop: CONDITION_OPERATION, pszValue: ?[*:0]const u16, pszLocaleName: ?[*:0]const u16, cco: CONDITION_CREATION_OPTIONS, riid: ?*const Guid, ppv: ?*?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IConditionFactory2, propkey: ?*const PROPERTYKEY, cop: CONDITION_OPERATION, pszValue: ?[*:0]const u16, pszLocaleName: ?[*:0]const u16, cco: CONDITION_CREATION_OPTIONS, riid: ?*const Guid, ppv: ?*?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, CreateIntegerLeaf: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IConditionFactory2, propkey: ?*const PROPERTYKEY, cop: CONDITION_OPERATION, lValue: i32, cco: CONDITION_CREATION_OPTIONS, riid: ?*const Guid, ppv: ?*?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IConditionFactory2, propkey: ?*const PROPERTYKEY, cop: CONDITION_OPERATION, lValue: i32, cco: CONDITION_CREATION_OPTIONS, riid: ?*const Guid, ppv: ?*?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, CreateBooleanLeaf: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IConditionFactory2, propkey: ?*const PROPERTYKEY, cop: CONDITION_OPERATION, fValue: BOOL, cco: CONDITION_CREATION_OPTIONS, riid: ?*const Guid, ppv: ?*?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IConditionFactory2, propkey: ?*const PROPERTYKEY, cop: CONDITION_OPERATION, fValue: BOOL, cco: CONDITION_CREATION_OPTIONS, riid: ?*const Guid, ppv: ?*?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, CreateLeaf: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IConditionFactory2, propkey: ?*const PROPERTYKEY, cop: CONDITION_OPERATION, propvar: ?*const PROPVARIANT, pszSemanticType: ?[*:0]const u16, pszLocaleName: ?[*:0]const u16, pPropertyNameTerm: ?*IRichChunk, pOperationTerm: ?*IRichChunk, pValueTerm: ?*IRichChunk, cco: CONDITION_CREATION_OPTIONS, riid: ?*const Guid, ppv: ?*?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IConditionFactory2, propkey: ?*const PROPERTYKEY, cop: CONDITION_OPERATION, propvar: ?*const PROPVARIANT, pszSemanticType: ?[*:0]const u16, pszLocaleName: ?[*:0]const u16, pPropertyNameTerm: ?*IRichChunk, pOperationTerm: ?*IRichChunk, pValueTerm: ?*IRichChunk, cco: CONDITION_CREATION_OPTIONS, riid: ?*const Guid, ppv: ?*?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, ResolveCondition: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IConditionFactory2, pc: ?*ICondition, sqro: STRUCTURED_QUERY_RESOLVE_OPTION, pstReferenceTime: ?*const SYSTEMTIME, riid: ?*const Guid, ppv: ?*?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IConditionFactory2, pc: ?*ICondition, sqro: STRUCTURED_QUERY_RESOLVE_OPTION, pstReferenceTime: ?*const SYSTEMTIME, riid: ?*const Guid, ppv: ?*?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IConditionFactory.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IConditionFactory2_CreateTrueFalse(self: *const T, fVal: BOOL, cco: CONDITION_CREATION_OPTIONS, riid: ?*const Guid, ppv: ?*?*anyopaque) HRESULT { return @as(*const IConditionFactory2.VTable, @ptrCast(self.vtable)).CreateTrueFalse(@as(*const IConditionFactory2, @ptrCast(self)), fVal, cco, riid, ppv); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IConditionFactory2_CreateNegation(self: *const T, pcSub: ?*ICondition, cco: CONDITION_CREATION_OPTIONS, riid: ?*const Guid, ppv: ?*?*anyopaque) HRESULT { return @as(*const IConditionFactory2.VTable, @ptrCast(self.vtable)).CreateNegation(@as(*const IConditionFactory2, @ptrCast(self)), pcSub, cco, riid, ppv); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IConditionFactory2_CreateCompoundFromObjectArray(self: *const T, ct: CONDITION_TYPE, poaSubs: ?*IObjectArray, cco: CONDITION_CREATION_OPTIONS, riid: ?*const Guid, ppv: ?*?*anyopaque) HRESULT { return @as(*const IConditionFactory2.VTable, @ptrCast(self.vtable)).CreateCompoundFromObjectArray(@as(*const IConditionFactory2, @ptrCast(self)), ct, poaSubs, cco, riid, ppv); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IConditionFactory2_CreateCompoundFromArray(self: *const T, ct: CONDITION_TYPE, ppcondSubs: [*]?*ICondition, cSubs: u32, cco: CONDITION_CREATION_OPTIONS, riid: ?*const Guid, ppv: ?*?*anyopaque) HRESULT { return @as(*const IConditionFactory2.VTable, @ptrCast(self.vtable)).CreateCompoundFromArray(@as(*const IConditionFactory2, @ptrCast(self)), ct, ppcondSubs, cSubs, cco, riid, ppv); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IConditionFactory2_CreateStringLeaf(self: *const T, propkey: ?*const PROPERTYKEY, cop: CONDITION_OPERATION, pszValue: ?[*:0]const u16, pszLocaleName: ?[*:0]const u16, cco: CONDITION_CREATION_OPTIONS, riid: ?*const Guid, ppv: ?*?*anyopaque) HRESULT { return @as(*const IConditionFactory2.VTable, @ptrCast(self.vtable)).CreateStringLeaf(@as(*const IConditionFactory2, @ptrCast(self)), propkey, cop, pszValue, pszLocaleName, cco, riid, ppv); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IConditionFactory2_CreateIntegerLeaf(self: *const T, propkey: ?*const PROPERTYKEY, cop: CONDITION_OPERATION, lValue: i32, cco: CONDITION_CREATION_OPTIONS, riid: ?*const Guid, ppv: ?*?*anyopaque) HRESULT { return @as(*const IConditionFactory2.VTable, @ptrCast(self.vtable)).CreateIntegerLeaf(@as(*const IConditionFactory2, @ptrCast(self)), propkey, cop, lValue, cco, riid, ppv); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IConditionFactory2_CreateBooleanLeaf(self: *const T, propkey: ?*const PROPERTYKEY, cop: CONDITION_OPERATION, fValue: BOOL, cco: CONDITION_CREATION_OPTIONS, riid: ?*const Guid, ppv: ?*?*anyopaque) HRESULT { return @as(*const IConditionFactory2.VTable, @ptrCast(self.vtable)).CreateBooleanLeaf(@as(*const IConditionFactory2, @ptrCast(self)), propkey, cop, fValue, cco, riid, ppv); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IConditionFactory2_CreateLeaf(self: *const T, propkey: ?*const PROPERTYKEY, cop: CONDITION_OPERATION, propvar: ?*const PROPVARIANT, pszSemanticType: ?[*:0]const u16, pszLocaleName: ?[*:0]const u16, pPropertyNameTerm: ?*IRichChunk, pOperationTerm: ?*IRichChunk, pValueTerm: ?*IRichChunk, cco: CONDITION_CREATION_OPTIONS, riid: ?*const Guid, ppv: ?*?*anyopaque) HRESULT { return @as(*const IConditionFactory2.VTable, @ptrCast(self.vtable)).CreateLeaf(@as(*const IConditionFactory2, @ptrCast(self)), propkey, cop, propvar, pszSemanticType, pszLocaleName, pPropertyNameTerm, pOperationTerm, pValueTerm, cco, riid, ppv); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IConditionFactory2_ResolveCondition(self: *const T, pc: ?*ICondition, sqro: STRUCTURED_QUERY_RESOLVE_OPTION, pstReferenceTime: ?*const SYSTEMTIME, riid: ?*const Guid, ppv: ?*?*anyopaque) HRESULT { return @as(*const IConditionFactory2.VTable, @ptrCast(self.vtable)).ResolveCondition(@as(*const IConditionFactory2, @ptrCast(self)), pc, sqro, pstReferenceTime, riid, ppv); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows5.1.2600' const IID_IConditionGenerator_Value = Guid.initString("92d2cc58-4386-45a3-b98c-7e0ce64a4117"); pub const IID_IConditionGenerator = &IID_IConditionGenerator_Value; pub const IConditionGenerator = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, Initialize: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IConditionGenerator, pSchemaProvider: ?*ISchemaProvider, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IConditionGenerator, pSchemaProvider: ?*ISchemaProvider, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, RecognizeNamedEntities: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IConditionGenerator, pszInputString: ?[*:0]const u16, lcidUserLocale: u32, pTokenCollection: ?*ITokenCollection, pNamedEntities: ?*INamedEntityCollector, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IConditionGenerator, pszInputString: ?[*:0]const u16, lcidUserLocale: u32, pTokenCollection: ?*ITokenCollection, pNamedEntities: ?*INamedEntityCollector, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GenerateForLeaf: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IConditionGenerator, pConditionFactory: ?*IConditionFactory, pszPropertyName: ?[*:0]const u16, cop: CONDITION_OPERATION, pszValueType: ?[*:0]const u16, pszValue: ?[*:0]const u16, pszValue2: ?[*:0]const u16, pPropertyNameTerm: ?*IRichChunk, pOperationTerm: ?*IRichChunk, pValueTerm: ?*IRichChunk, automaticWildcard: BOOL, pNoStringQuery: ?*BOOL, ppQueryExpression: ?*?*ICondition, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IConditionGenerator, pConditionFactory: ?*IConditionFactory, pszPropertyName: ?[*:0]const u16, cop: CONDITION_OPERATION, pszValueType: ?[*:0]const u16, pszValue: ?[*:0]const u16, pszValue2: ?[*:0]const u16, pPropertyNameTerm: ?*IRichChunk, pOperationTerm: ?*IRichChunk, pValueTerm: ?*IRichChunk, automaticWildcard: BOOL, pNoStringQuery: ?*BOOL, ppQueryExpression: ?*?*ICondition, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, DefaultPhrase: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IConditionGenerator, pszValueType: ?[*:0]const u16, ppropvar: ?*const PROPVARIANT, fUseEnglish: BOOL, ppszPhrase: ?*?PWSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IConditionGenerator, pszValueType: ?[*:0]const u16, ppropvar: ?*const PROPVARIANT, fUseEnglish: BOOL, ppszPhrase: ?*?PWSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IConditionGenerator_Initialize(self: *const T, pSchemaProvider: ?*ISchemaProvider) HRESULT { return @as(*const IConditionGenerator.VTable, @ptrCast(self.vtable)).Initialize(@as(*const IConditionGenerator, @ptrCast(self)), pSchemaProvider); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IConditionGenerator_RecognizeNamedEntities(self: *const T, pszInputString: ?[*:0]const u16, lcidUserLocale: u32, pTokenCollection: ?*ITokenCollection, pNamedEntities: ?*INamedEntityCollector) HRESULT { return @as(*const IConditionGenerator.VTable, @ptrCast(self.vtable)).RecognizeNamedEntities(@as(*const IConditionGenerator, @ptrCast(self)), pszInputString, lcidUserLocale, pTokenCollection, pNamedEntities); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IConditionGenerator_GenerateForLeaf(self: *const T, pConditionFactory: ?*IConditionFactory, pszPropertyName: ?[*:0]const u16, cop: CONDITION_OPERATION, pszValueType: ?[*:0]const u16, pszValue: ?[*:0]const u16, pszValue2: ?[*:0]const u16, pPropertyNameTerm: ?*IRichChunk, pOperationTerm: ?*IRichChunk, pValueTerm: ?*IRichChunk, automaticWildcard: BOOL, pNoStringQuery: ?*BOOL, ppQueryExpression: ?*?*ICondition) HRESULT { return @as(*const IConditionGenerator.VTable, @ptrCast(self.vtable)).GenerateForLeaf(@as(*const IConditionGenerator, @ptrCast(self)), pConditionFactory, pszPropertyName, cop, pszValueType, pszValue, pszValue2, pPropertyNameTerm, pOperationTerm, pValueTerm, automaticWildcard, pNoStringQuery, ppQueryExpression); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IConditionGenerator_DefaultPhrase(self: *const T, pszValueType: ?[*:0]const u16, ppropvar: ?*const PROPVARIANT, fUseEnglish: BOOL, ppszPhrase: ?*?PWSTR) HRESULT { return @as(*const IConditionGenerator.VTable, @ptrCast(self.vtable)).DefaultPhrase(@as(*const IConditionGenerator, @ptrCast(self)), pszValueType, ppropvar, fUseEnglish, ppszPhrase); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows5.1.2600' const IID_IInterval_Value = Guid.initString("6bf0a714-3c18-430b-8b5d-83b1c234d3db"); pub const IID_IInterval = &IID_IInterval_Value; pub const IInterval = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, GetLimits: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IInterval, pilkLower: ?*INTERVAL_LIMIT_KIND, ppropvarLower: ?*PROPVARIANT, pilkUpper: ?*INTERVAL_LIMIT_KIND, ppropvarUpper: ?*PROPVARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IInterval, pilkLower: ?*INTERVAL_LIMIT_KIND, ppropvarLower: ?*PROPVARIANT, pilkUpper: ?*INTERVAL_LIMIT_KIND, ppropvarUpper: ?*PROPVARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IInterval_GetLimits(self: *const T, pilkLower: ?*INTERVAL_LIMIT_KIND, ppropvarLower: ?*PROPVARIANT, pilkUpper: ?*INTERVAL_LIMIT_KIND, ppropvarUpper: ?*PROPVARIANT) HRESULT { return @as(*const IInterval.VTable, @ptrCast(self.vtable)).GetLimits(@as(*const IInterval, @ptrCast(self)), pilkLower, ppropvarLower, pilkUpper, ppropvarUpper); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows5.1.2600' const IID_IMetaData_Value = Guid.initString("780102b0-c43b-4876-bc7b-5e9ba5c88794"); pub const IID_IMetaData = &IID_IMetaData_Value; pub const IMetaData = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, GetData: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IMetaData, ppszKey: ?*?PWSTR, ppszValue: ?*?PWSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IMetaData, ppszKey: ?*?PWSTR, ppszValue: ?*?PWSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMetaData_GetData(self: *const T, ppszKey: ?*?PWSTR, ppszValue: ?*?PWSTR) HRESULT { return @as(*const IMetaData.VTable, @ptrCast(self.vtable)).GetData(@as(*const IMetaData, @ptrCast(self)), ppszKey, ppszValue); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows5.1.2600' const IID_IEntity_Value = Guid.initString("24264891-e80b-4fd3-b7ce-4ff2fae8931f"); pub const IID_IEntity = &IID_IEntity_Value; pub const IEntity = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, Name: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IEntity, ppszName: ?*?PWSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IEntity, ppszName: ?*?PWSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Base: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IEntity, pBaseEntity: ?*?*IEntity, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IEntity, pBaseEntity: ?*?*IEntity, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Relationships: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IEntity, riid: ?*const Guid, pRelationships: ?*?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IEntity, riid: ?*const Guid, pRelationships: ?*?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetRelationship: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IEntity, pszRelationName: ?[*:0]const u16, pRelationship: ?*?*IRelationship, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IEntity, pszRelationName: ?[*:0]const u16, pRelationship: ?*?*IRelationship, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, MetaData: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IEntity, riid: ?*const Guid, pMetaData: ?*?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IEntity, riid: ?*const Guid, pMetaData: ?*?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, NamedEntities: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IEntity, riid: ?*const Guid, pNamedEntities: ?*?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IEntity, riid: ?*const Guid, pNamedEntities: ?*?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetNamedEntity: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IEntity, pszValue: ?[*:0]const u16, ppNamedEntity: ?*?*INamedEntity, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IEntity, pszValue: ?[*:0]const u16, ppNamedEntity: ?*?*INamedEntity, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, DefaultPhrase: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IEntity, ppszPhrase: ?*?PWSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IEntity, ppszPhrase: ?*?PWSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IEntity_Name(self: *const T, ppszName: ?*?PWSTR) HRESULT { return @as(*const IEntity.VTable, @ptrCast(self.vtable)).Name(@as(*const IEntity, @ptrCast(self)), ppszName); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IEntity_Base(self: *const T, pBaseEntity: ?*?*IEntity) HRESULT { return @as(*const IEntity.VTable, @ptrCast(self.vtable)).Base(@as(*const IEntity, @ptrCast(self)), pBaseEntity); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IEntity_Relationships(self: *const T, riid: ?*const Guid, pRelationships: ?*?*anyopaque) HRESULT { return @as(*const IEntity.VTable, @ptrCast(self.vtable)).Relationships(@as(*const IEntity, @ptrCast(self)), riid, pRelationships); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IEntity_GetRelationship(self: *const T, pszRelationName: ?[*:0]const u16, pRelationship: ?*?*IRelationship) HRESULT { return @as(*const IEntity.VTable, @ptrCast(self.vtable)).GetRelationship(@as(*const IEntity, @ptrCast(self)), pszRelationName, pRelationship); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IEntity_MetaData(self: *const T, riid: ?*const Guid, pMetaData: ?*?*anyopaque) HRESULT { return @as(*const IEntity.VTable, @ptrCast(self.vtable)).MetaData(@as(*const IEntity, @ptrCast(self)), riid, pMetaData); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IEntity_NamedEntities(self: *const T, riid: ?*const Guid, pNamedEntities: ?*?*anyopaque) HRESULT { return @as(*const IEntity.VTable, @ptrCast(self.vtable)).NamedEntities(@as(*const IEntity, @ptrCast(self)), riid, pNamedEntities); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IEntity_GetNamedEntity(self: *const T, pszValue: ?[*:0]const u16, ppNamedEntity: ?*?*INamedEntity) HRESULT { return @as(*const IEntity.VTable, @ptrCast(self.vtable)).GetNamedEntity(@as(*const IEntity, @ptrCast(self)), pszValue, ppNamedEntity); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IEntity_DefaultPhrase(self: *const T, ppszPhrase: ?*?PWSTR) HRESULT { return @as(*const IEntity.VTable, @ptrCast(self.vtable)).DefaultPhrase(@as(*const IEntity, @ptrCast(self)), ppszPhrase); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows5.1.2600' const IID_IRelationship_Value = Guid.initString("2769280b-5108-498c-9c7f-a51239b63147"); pub const IID_IRelationship = &IID_IRelationship_Value; pub const IRelationship = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, Name: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IRelationship, ppszName: ?*?PWSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IRelationship, ppszName: ?*?PWSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, IsReal: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IRelationship, pIsReal: ?*BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IRelationship, pIsReal: ?*BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Destination: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IRelationship, pDestinationEntity: ?*?*IEntity, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IRelationship, pDestinationEntity: ?*?*IEntity, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, MetaData: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IRelationship, riid: ?*const Guid, pMetaData: ?*?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IRelationship, riid: ?*const Guid, pMetaData: ?*?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, DefaultPhrase: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IRelationship, ppszPhrase: ?*?PWSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IRelationship, ppszPhrase: ?*?PWSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRelationship_Name(self: *const T, ppszName: ?*?PWSTR) HRESULT { return @as(*const IRelationship.VTable, @ptrCast(self.vtable)).Name(@as(*const IRelationship, @ptrCast(self)), ppszName); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRelationship_IsReal(self: *const T, pIsReal: ?*BOOL) HRESULT { return @as(*const IRelationship.VTable, @ptrCast(self.vtable)).IsReal(@as(*const IRelationship, @ptrCast(self)), pIsReal); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRelationship_Destination(self: *const T, pDestinationEntity: ?*?*IEntity) HRESULT { return @as(*const IRelationship.VTable, @ptrCast(self.vtable)).Destination(@as(*const IRelationship, @ptrCast(self)), pDestinationEntity); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRelationship_MetaData(self: *const T, riid: ?*const Guid, pMetaData: ?*?*anyopaque) HRESULT { return @as(*const IRelationship.VTable, @ptrCast(self.vtable)).MetaData(@as(*const IRelationship, @ptrCast(self)), riid, pMetaData); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRelationship_DefaultPhrase(self: *const T, ppszPhrase: ?*?PWSTR) HRESULT { return @as(*const IRelationship.VTable, @ptrCast(self.vtable)).DefaultPhrase(@as(*const IRelationship, @ptrCast(self)), ppszPhrase); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows5.1.2600' const IID_INamedEntity_Value = Guid.initString("abdbd0b1-7d54-49fb-ab5c-bff4130004cd"); pub const IID_INamedEntity = &IID_INamedEntity_Value; pub const INamedEntity = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, GetValue: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const INamedEntity, ppszValue: ?*?PWSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const INamedEntity, ppszValue: ?*?PWSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, DefaultPhrase: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const INamedEntity, ppszPhrase: ?*?PWSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const INamedEntity, ppszPhrase: ?*?PWSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn INamedEntity_GetValue(self: *const T, ppszValue: ?*?PWSTR) HRESULT { return @as(*const INamedEntity.VTable, @ptrCast(self.vtable)).GetValue(@as(*const INamedEntity, @ptrCast(self)), ppszValue); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn INamedEntity_DefaultPhrase(self: *const T, ppszPhrase: ?*?PWSTR) HRESULT { return @as(*const INamedEntity.VTable, @ptrCast(self.vtable)).DefaultPhrase(@as(*const INamedEntity, @ptrCast(self)), ppszPhrase); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows5.1.2600' const IID_ISchemaProvider_Value = Guid.initString("8cf89bcb-394c-49b2-ae28-a59dd4ed7f68"); pub const IID_ISchemaProvider = &IID_ISchemaProvider_Value; pub const ISchemaProvider = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, Entities: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ISchemaProvider, riid: ?*const Guid, pEntities: ?*?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ISchemaProvider, riid: ?*const Guid, pEntities: ?*?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, RootEntity: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ISchemaProvider, pRootEntity: ?*?*IEntity, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ISchemaProvider, pRootEntity: ?*?*IEntity, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetEntity: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ISchemaProvider, pszEntityName: ?[*:0]const u16, pEntity: ?*?*IEntity, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ISchemaProvider, pszEntityName: ?[*:0]const u16, pEntity: ?*?*IEntity, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, MetaData: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ISchemaProvider, riid: ?*const Guid, pMetaData: ?*?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ISchemaProvider, riid: ?*const Guid, pMetaData: ?*?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Localize: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ISchemaProvider, lcid: u32, pSchemaLocalizerSupport: ?*ISchemaLocalizerSupport, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ISchemaProvider, lcid: u32, pSchemaLocalizerSupport: ?*ISchemaLocalizerSupport, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SaveBinary: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ISchemaProvider, pszSchemaBinaryPath: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ISchemaProvider, pszSchemaBinaryPath: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, LookupAuthoredNamedEntity: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ISchemaProvider, pEntity: ?*IEntity, pszInputString: ?[*:0]const u16, pTokenCollection: ?*ITokenCollection, cTokensBegin: u32, pcTokensLength: ?*u32, ppszValue: ?*?PWSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ISchemaProvider, pEntity: ?*IEntity, pszInputString: ?[*:0]const u16, pTokenCollection: ?*ITokenCollection, cTokensBegin: u32, pcTokensLength: ?*u32, ppszValue: ?*?PWSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISchemaProvider_Entities(self: *const T, riid: ?*const Guid, pEntities: ?*?*anyopaque) HRESULT { return @as(*const ISchemaProvider.VTable, @ptrCast(self.vtable)).Entities(@as(*const ISchemaProvider, @ptrCast(self)), riid, pEntities); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISchemaProvider_RootEntity(self: *const T, pRootEntity: ?*?*IEntity) HRESULT { return @as(*const ISchemaProvider.VTable, @ptrCast(self.vtable)).RootEntity(@as(*const ISchemaProvider, @ptrCast(self)), pRootEntity); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISchemaProvider_GetEntity(self: *const T, pszEntityName: ?[*:0]const u16, pEntity: ?*?*IEntity) HRESULT { return @as(*const ISchemaProvider.VTable, @ptrCast(self.vtable)).GetEntity(@as(*const ISchemaProvider, @ptrCast(self)), pszEntityName, pEntity); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISchemaProvider_MetaData(self: *const T, riid: ?*const Guid, pMetaData: ?*?*anyopaque) HRESULT { return @as(*const ISchemaProvider.VTable, @ptrCast(self.vtable)).MetaData(@as(*const ISchemaProvider, @ptrCast(self)), riid, pMetaData); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISchemaProvider_Localize(self: *const T, lcid: u32, pSchemaLocalizerSupport: ?*ISchemaLocalizerSupport) HRESULT { return @as(*const ISchemaProvider.VTable, @ptrCast(self.vtable)).Localize(@as(*const ISchemaProvider, @ptrCast(self)), lcid, pSchemaLocalizerSupport); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISchemaProvider_SaveBinary(self: *const T, pszSchemaBinaryPath: ?[*:0]const u16) HRESULT { return @as(*const ISchemaProvider.VTable, @ptrCast(self.vtable)).SaveBinary(@as(*const ISchemaProvider, @ptrCast(self)), pszSchemaBinaryPath); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISchemaProvider_LookupAuthoredNamedEntity(self: *const T, pEntity: ?*IEntity, pszInputString: ?[*:0]const u16, pTokenCollection: ?*ITokenCollection, cTokensBegin: u32, pcTokensLength: ?*u32, ppszValue: ?*?PWSTR) HRESULT { return @as(*const ISchemaProvider.VTable, @ptrCast(self.vtable)).LookupAuthoredNamedEntity(@as(*const ISchemaProvider, @ptrCast(self)), pEntity, pszInputString, pTokenCollection, cTokensBegin, pcTokensLength, ppszValue); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows5.1.2600' const IID_ITokenCollection_Value = Guid.initString("22d8b4f2-f577-4adb-a335-c2ae88416fab"); pub const IID_ITokenCollection = &IID_ITokenCollection_Value; pub const ITokenCollection = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, NumberOfTokens: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ITokenCollection, pCount: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ITokenCollection, pCount: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetToken: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ITokenCollection, i: u32, pBegin: ?*u32, pLength: ?*u32, ppsz: ?*?PWSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ITokenCollection, i: u32, pBegin: ?*u32, pLength: ?*u32, ppsz: ?*?PWSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITokenCollection_NumberOfTokens(self: *const T, pCount: ?*u32) HRESULT { return @as(*const ITokenCollection.VTable, @ptrCast(self.vtable)).NumberOfTokens(@as(*const ITokenCollection, @ptrCast(self)), pCount); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITokenCollection_GetToken(self: *const T, i: u32, pBegin: ?*u32, pLength: ?*u32, ppsz: ?*?PWSTR) HRESULT { return @as(*const ITokenCollection.VTable, @ptrCast(self.vtable)).GetToken(@as(*const ITokenCollection, @ptrCast(self)), i, pBegin, pLength, ppsz); } }; } pub usingnamespace MethodMixin(@This()); }; pub const NAMED_ENTITY_CERTAINTY = enum(i32) { LOW = 0, MEDIUM = 1, HIGH = 2, }; pub const NEC_LOW = NAMED_ENTITY_CERTAINTY.LOW; pub const NEC_MEDIUM = NAMED_ENTITY_CERTAINTY.MEDIUM; pub const NEC_HIGH = NAMED_ENTITY_CERTAINTY.HIGH; // TODO: this type is limited to platform 'windows5.1.2600' const IID_INamedEntityCollector_Value = Guid.initString("af2440f6-8afc-47d0-9a7f-396a0acfb43d"); pub const IID_INamedEntityCollector = &IID_INamedEntityCollector_Value; pub const INamedEntityCollector = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, Add: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const INamedEntityCollector, beginSpan: u32, endSpan: u32, beginActual: u32, endActual: u32, pType: ?*IEntity, pszValue: ?[*:0]const u16, certainty: NAMED_ENTITY_CERTAINTY, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const INamedEntityCollector, beginSpan: u32, endSpan: u32, beginActual: u32, endActual: u32, pType: ?*IEntity, pszValue: ?[*:0]const u16, certainty: NAMED_ENTITY_CERTAINTY, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn INamedEntityCollector_Add(self: *const T, beginSpan: u32, endSpan: u32, beginActual: u32, endActual: u32, pType: ?*IEntity, pszValue: ?[*:0]const u16, certainty: NAMED_ENTITY_CERTAINTY) HRESULT { return @as(*const INamedEntityCollector.VTable, @ptrCast(self.vtable)).Add(@as(*const INamedEntityCollector, @ptrCast(self)), beginSpan, endSpan, beginActual, endActual, pType, pszValue, certainty); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows5.1.2600' const IID_ISchemaLocalizerSupport_Value = Guid.initString("ca3fdca2-bfbe-4eed-90d7-0caef0a1bda1"); pub const IID_ISchemaLocalizerSupport = &IID_ISchemaLocalizerSupport_Value; pub const ISchemaLocalizerSupport = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, Localize: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ISchemaLocalizerSupport, pszGlobalString: ?[*:0]const u16, ppszLocalString: ?*?PWSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ISchemaLocalizerSupport, pszGlobalString: ?[*:0]const u16, ppszLocalString: ?*?PWSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISchemaLocalizerSupport_Localize(self: *const T, pszGlobalString: ?[*:0]const u16, ppszLocalString: ?*?PWSTR) HRESULT { return @as(*const ISchemaLocalizerSupport.VTable, @ptrCast(self.vtable)).Localize(@as(*const ISchemaLocalizerSupport, @ptrCast(self)), pszGlobalString, ppszLocalString); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows5.1.2600' const IID_IQueryParserManager_Value = Guid.initString("a879e3c4-af77-44fb-8f37-ebd1487cf920"); pub const IID_IQueryParserManager = &IID_IQueryParserManager_Value; pub const IQueryParserManager = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, CreateLoadedParser: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IQueryParserManager, pszCatalog: ?[*:0]const u16, langidForKeywords: u16, riid: ?*const Guid, ppQueryParser: ?*?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IQueryParserManager, pszCatalog: ?[*:0]const u16, langidForKeywords: u16, riid: ?*const Guid, ppQueryParser: ?*?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, InitializeOptions: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IQueryParserManager, fUnderstandNQS: BOOL, fAutoWildCard: BOOL, pQueryParser: ?*IQueryParser, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IQueryParserManager, fUnderstandNQS: BOOL, fAutoWildCard: BOOL, pQueryParser: ?*IQueryParser, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetOption: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IQueryParserManager, option: QUERY_PARSER_MANAGER_OPTION, pOptionValue: ?*const PROPVARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IQueryParserManager, option: QUERY_PARSER_MANAGER_OPTION, pOptionValue: ?*const PROPVARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IQueryParserManager_CreateLoadedParser(self: *const T, pszCatalog: ?[*:0]const u16, langidForKeywords: u16, riid: ?*const Guid, ppQueryParser: ?*?*anyopaque) HRESULT { return @as(*const IQueryParserManager.VTable, @ptrCast(self.vtable)).CreateLoadedParser(@as(*const IQueryParserManager, @ptrCast(self)), pszCatalog, langidForKeywords, riid, ppQueryParser); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IQueryParserManager_InitializeOptions(self: *const T, fUnderstandNQS: BOOL, fAutoWildCard: BOOL, pQueryParser: ?*IQueryParser) HRESULT { return @as(*const IQueryParserManager.VTable, @ptrCast(self.vtable)).InitializeOptions(@as(*const IQueryParserManager, @ptrCast(self)), fUnderstandNQS, fAutoWildCard, pQueryParser); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IQueryParserManager_SetOption(self: *const T, option: QUERY_PARSER_MANAGER_OPTION, pOptionValue: ?*const PROPVARIANT) HRESULT { return @as(*const IQueryParserManager.VTable, @ptrCast(self.vtable)).SetOption(@as(*const IQueryParserManager, @ptrCast(self)), option, pOptionValue); } }; } pub usingnamespace MethodMixin(@This()); }; pub const HITRANGE = extern struct { iPosition: u32, cLength: u32, }; // TODO: this type is limited to platform 'windows5.1.2600' const IID_IUrlAccessor_Value = Guid.initString("0b63e318-9ccc-11d0-bcdb-00805fccce04"); pub const IID_IUrlAccessor = &IID_IUrlAccessor_Value; pub const IUrlAccessor = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, AddRequestParameter: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IUrlAccessor, pSpec: ?*PROPSPEC, pVar: ?*PROPVARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IUrlAccessor, pSpec: ?*PROPSPEC, pVar: ?*PROPVARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetDocFormat: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IUrlAccessor, wszDocFormat: [*:0]u16, dwSize: u32, pdwLength: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IUrlAccessor, wszDocFormat: [*:0]u16, dwSize: u32, pdwLength: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetCLSID: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IUrlAccessor, pClsid: ?*Guid, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IUrlAccessor, pClsid: ?*Guid, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetHost: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IUrlAccessor, wszHost: [*:0]u16, dwSize: u32, pdwLength: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IUrlAccessor, wszHost: [*:0]u16, dwSize: u32, pdwLength: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, IsDirectory: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IUrlAccessor, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IUrlAccessor, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetSize: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IUrlAccessor, pllSize: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IUrlAccessor, pllSize: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetLastModified: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IUrlAccessor, pftLastModified: ?*FILETIME, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IUrlAccessor, pftLastModified: ?*FILETIME, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetFileName: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IUrlAccessor, wszFileName: [*:0]u16, dwSize: u32, pdwLength: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IUrlAccessor, wszFileName: [*:0]u16, dwSize: u32, pdwLength: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetSecurityDescriptor: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IUrlAccessor, pSD: [*:0]u8, dwSize: u32, pdwLength: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IUrlAccessor, pSD: [*:0]u8, dwSize: u32, pdwLength: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetRedirectedURL: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IUrlAccessor, wszRedirectedURL: [*:0]u16, dwSize: u32, pdwLength: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IUrlAccessor, wszRedirectedURL: [*:0]u16, dwSize: u32, pdwLength: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetSecurityProvider: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IUrlAccessor, pSPClsid: ?*Guid, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IUrlAccessor, pSPClsid: ?*Guid, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, BindToStream: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IUrlAccessor, ppStream: ?*?*IStream, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IUrlAccessor, ppStream: ?*?*IStream, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, BindToFilter: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IUrlAccessor, ppFilter: ?*?*IFilter, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IUrlAccessor, ppFilter: ?*?*IFilter, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IUrlAccessor_AddRequestParameter(self: *const T, pSpec: ?*PROPSPEC, pVar: ?*PROPVARIANT) HRESULT { return @as(*const IUrlAccessor.VTable, @ptrCast(self.vtable)).AddRequestParameter(@as(*const IUrlAccessor, @ptrCast(self)), pSpec, pVar); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IUrlAccessor_GetDocFormat(self: *const T, wszDocFormat: [*:0]u16, dwSize: u32, pdwLength: ?*u32) HRESULT { return @as(*const IUrlAccessor.VTable, @ptrCast(self.vtable)).GetDocFormat(@as(*const IUrlAccessor, @ptrCast(self)), wszDocFormat, dwSize, pdwLength); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IUrlAccessor_GetCLSID(self: *const T, pClsid: ?*Guid) HRESULT { return @as(*const IUrlAccessor.VTable, @ptrCast(self.vtable)).GetCLSID(@as(*const IUrlAccessor, @ptrCast(self)), pClsid); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IUrlAccessor_GetHost(self: *const T, wszHost: [*:0]u16, dwSize: u32, pdwLength: ?*u32) HRESULT { return @as(*const IUrlAccessor.VTable, @ptrCast(self.vtable)).GetHost(@as(*const IUrlAccessor, @ptrCast(self)), wszHost, dwSize, pdwLength); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IUrlAccessor_IsDirectory(self: *const T) HRESULT { return @as(*const IUrlAccessor.VTable, @ptrCast(self.vtable)).IsDirectory(@as(*const IUrlAccessor, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IUrlAccessor_GetSize(self: *const T, pllSize: ?*u64) HRESULT { return @as(*const IUrlAccessor.VTable, @ptrCast(self.vtable)).GetSize(@as(*const IUrlAccessor, @ptrCast(self)), pllSize); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IUrlAccessor_GetLastModified(self: *const T, pftLastModified: ?*FILETIME) HRESULT { return @as(*const IUrlAccessor.VTable, @ptrCast(self.vtable)).GetLastModified(@as(*const IUrlAccessor, @ptrCast(self)), pftLastModified); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IUrlAccessor_GetFileName(self: *const T, wszFileName: [*:0]u16, dwSize: u32, pdwLength: ?*u32) HRESULT { return @as(*const IUrlAccessor.VTable, @ptrCast(self.vtable)).GetFileName(@as(*const IUrlAccessor, @ptrCast(self)), wszFileName, dwSize, pdwLength); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IUrlAccessor_GetSecurityDescriptor(self: *const T, pSD: [*:0]u8, dwSize: u32, pdwLength: ?*u32) HRESULT { return @as(*const IUrlAccessor.VTable, @ptrCast(self.vtable)).GetSecurityDescriptor(@as(*const IUrlAccessor, @ptrCast(self)), pSD, dwSize, pdwLength); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IUrlAccessor_GetRedirectedURL(self: *const T, wszRedirectedURL: [*:0]u16, dwSize: u32, pdwLength: ?*u32) HRESULT { return @as(*const IUrlAccessor.VTable, @ptrCast(self.vtable)).GetRedirectedURL(@as(*const IUrlAccessor, @ptrCast(self)), wszRedirectedURL, dwSize, pdwLength); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IUrlAccessor_GetSecurityProvider(self: *const T, pSPClsid: ?*Guid) HRESULT { return @as(*const IUrlAccessor.VTable, @ptrCast(self.vtable)).GetSecurityProvider(@as(*const IUrlAccessor, @ptrCast(self)), pSPClsid); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IUrlAccessor_BindToStream(self: *const T, ppStream: ?*?*IStream) HRESULT { return @as(*const IUrlAccessor.VTable, @ptrCast(self.vtable)).BindToStream(@as(*const IUrlAccessor, @ptrCast(self)), ppStream); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IUrlAccessor_BindToFilter(self: *const T, ppFilter: ?*?*IFilter) HRESULT { return @as(*const IUrlAccessor.VTable, @ptrCast(self.vtable)).BindToFilter(@as(*const IUrlAccessor, @ptrCast(self)), ppFilter); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows5.1.2600' const IID_IUrlAccessor2_Value = Guid.initString("c7310734-ac80-11d1-8df3-00c04fb6ef4f"); pub const IID_IUrlAccessor2 = &IID_IUrlAccessor2_Value; pub const IUrlAccessor2 = extern struct { pub const VTable = extern struct { base: IUrlAccessor.VTable, GetDisplayUrl: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IUrlAccessor2, wszDocUrl: [*:0]u16, dwSize: u32, pdwLength: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IUrlAccessor2, wszDocUrl: [*:0]u16, dwSize: u32, pdwLength: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, IsDocument: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IUrlAccessor2, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IUrlAccessor2, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetCodePage: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IUrlAccessor2, wszCodePage: [*:0]u16, dwSize: u32, pdwLength: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IUrlAccessor2, wszCodePage: [*:0]u16, dwSize: u32, pdwLength: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUrlAccessor.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IUrlAccessor2_GetDisplayUrl(self: *const T, wszDocUrl: [*:0]u16, dwSize: u32, pdwLength: ?*u32) HRESULT { return @as(*const IUrlAccessor2.VTable, @ptrCast(self.vtable)).GetDisplayUrl(@as(*const IUrlAccessor2, @ptrCast(self)), wszDocUrl, dwSize, pdwLength); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IUrlAccessor2_IsDocument(self: *const T) HRESULT { return @as(*const IUrlAccessor2.VTable, @ptrCast(self.vtable)).IsDocument(@as(*const IUrlAccessor2, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IUrlAccessor2_GetCodePage(self: *const T, wszCodePage: [*:0]u16, dwSize: u32, pdwLength: ?*u32) HRESULT { return @as(*const IUrlAccessor2.VTable, @ptrCast(self.vtable)).GetCodePage(@as(*const IUrlAccessor2, @ptrCast(self)), wszCodePage, dwSize, pdwLength); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows5.1.2600' const IID_IUrlAccessor3_Value = Guid.initString("6fbc7005-0455-4874-b8ff-7439450241a3"); pub const IID_IUrlAccessor3 = &IID_IUrlAccessor3_Value; pub const IUrlAccessor3 = extern struct { pub const VTable = extern struct { base: IUrlAccessor2.VTable, GetImpersonationSidBlobs: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IUrlAccessor3, pcwszURL: ?[*:0]const u16, pcSidCount: ?*u32, ppSidBlobs: ?*?*BLOB, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IUrlAccessor3, pcwszURL: ?[*:0]const u16, pcSidCount: ?*u32, ppSidBlobs: ?*?*BLOB, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUrlAccessor2.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IUrlAccessor3_GetImpersonationSidBlobs(self: *const T, pcwszURL: ?[*:0]const u16, pcSidCount: ?*u32, ppSidBlobs: ?*?*BLOB) HRESULT { return @as(*const IUrlAccessor3.VTable, @ptrCast(self.vtable)).GetImpersonationSidBlobs(@as(*const IUrlAccessor3, @ptrCast(self)), pcwszURL, pcSidCount, ppSidBlobs); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows6.0.6000' const IID_IUrlAccessor4_Value = Guid.initString("5cc51041-c8d2-41d7-bca3-9e9e286297dc"); pub const IID_IUrlAccessor4 = &IID_IUrlAccessor4_Value; pub const IUrlAccessor4 = extern struct { pub const VTable = extern struct { base: IUrlAccessor3.VTable, ShouldIndexItemContent: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IUrlAccessor4, pfIndexContent: ?*BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IUrlAccessor4, pfIndexContent: ?*BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, ShouldIndexProperty: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IUrlAccessor4, key: ?*const PROPERTYKEY, pfIndexProperty: ?*BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IUrlAccessor4, key: ?*const PROPERTYKEY, pfIndexProperty: ?*BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUrlAccessor3.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IUrlAccessor4_ShouldIndexItemContent(self: *const T, pfIndexContent: ?*BOOL) HRESULT { return @as(*const IUrlAccessor4.VTable, @ptrCast(self.vtable)).ShouldIndexItemContent(@as(*const IUrlAccessor4, @ptrCast(self)), pfIndexContent); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IUrlAccessor4_ShouldIndexProperty(self: *const T, key: ?*const PROPERTYKEY, pfIndexProperty: ?*BOOL) HRESULT { return @as(*const IUrlAccessor4.VTable, @ptrCast(self.vtable)).ShouldIndexProperty(@as(*const IUrlAccessor4, @ptrCast(self)), key, pfIndexProperty); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows5.1.2600' const IID_IOpLockStatus_Value = Guid.initString("c731065d-ac80-11d1-8df3-00c04fb6ef4f"); pub const IID_IOpLockStatus = &IID_IOpLockStatus_Value; pub const IOpLockStatus = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, IsOplockValid: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IOpLockStatus, pfIsOplockValid: ?*BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IOpLockStatus, pfIsOplockValid: ?*BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, IsOplockBroken: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IOpLockStatus, pfIsOplockBroken: ?*BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IOpLockStatus, pfIsOplockBroken: ?*BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetOplockEventHandle: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IOpLockStatus, phOplockEv: ?*?HANDLE, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IOpLockStatus, phOplockEv: ?*?HANDLE, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IOpLockStatus_IsOplockValid(self: *const T, pfIsOplockValid: ?*BOOL) HRESULT { return @as(*const IOpLockStatus.VTable, @ptrCast(self.vtable)).IsOplockValid(@as(*const IOpLockStatus, @ptrCast(self)), pfIsOplockValid); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IOpLockStatus_IsOplockBroken(self: *const T, pfIsOplockBroken: ?*BOOL) HRESULT { return @as(*const IOpLockStatus.VTable, @ptrCast(self.vtable)).IsOplockBroken(@as(*const IOpLockStatus, @ptrCast(self)), pfIsOplockBroken); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IOpLockStatus_GetOplockEventHandle(self: *const T, phOplockEv: ?*?HANDLE) HRESULT { return @as(*const IOpLockStatus.VTable, @ptrCast(self.vtable)).GetOplockEventHandle(@as(*const IOpLockStatus, @ptrCast(self)), phOplockEv); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows5.1.2600' const IID_ISearchProtocolThreadContext_Value = Guid.initString("c73106e1-ac80-11d1-8df3-00c04fb6ef4f"); pub const IID_ISearchProtocolThreadContext = &IID_ISearchProtocolThreadContext_Value; pub const ISearchProtocolThreadContext = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, ThreadInit: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ISearchProtocolThreadContext, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ISearchProtocolThreadContext, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, ThreadShutdown: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ISearchProtocolThreadContext, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ISearchProtocolThreadContext, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, ThreadIdle: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ISearchProtocolThreadContext, dwTimeElaspedSinceLastCallInMS: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ISearchProtocolThreadContext, dwTimeElaspedSinceLastCallInMS: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISearchProtocolThreadContext_ThreadInit(self: *const T) HRESULT { return @as(*const ISearchProtocolThreadContext.VTable, @ptrCast(self.vtable)).ThreadInit(@as(*const ISearchProtocolThreadContext, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISearchProtocolThreadContext_ThreadShutdown(self: *const T) HRESULT { return @as(*const ISearchProtocolThreadContext.VTable, @ptrCast(self.vtable)).ThreadShutdown(@as(*const ISearchProtocolThreadContext, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISearchProtocolThreadContext_ThreadIdle(self: *const T, dwTimeElaspedSinceLastCallInMS: u32) HRESULT { return @as(*const ISearchProtocolThreadContext.VTable, @ptrCast(self.vtable)).ThreadIdle(@as(*const ISearchProtocolThreadContext, @ptrCast(self)), dwTimeElaspedSinceLastCallInMS); } }; } pub usingnamespace MethodMixin(@This()); }; pub const TIMEOUT_INFO = extern struct { dwSize: u32, dwConnectTimeout: u32, dwDataTimeout: u32, }; pub const PROXY_ACCESS = enum(i32) { PRECONFIG = 0, DIRECT = 1, PROXY = 2, }; pub const PROXY_ACCESS_PRECONFIG = PROXY_ACCESS.PRECONFIG; pub const PROXY_ACCESS_DIRECT = PROXY_ACCESS.DIRECT; pub const PROXY_ACCESS_PROXY = PROXY_ACCESS.PROXY; pub const PROXY_INFO = extern struct { dwSize: u32, pcwszUserAgent: ?[*:0]const u16, paUseProxy: PROXY_ACCESS, fLocalBypass: BOOL, dwPortNumber: u32, pcwszProxyName: ?[*:0]const u16, pcwszBypassList: ?[*:0]const u16, }; pub const AUTH_TYPE = enum(i32) { ANONYMOUS = 0, NTLM = 1, BASIC = 2, }; pub const eAUTH_TYPE_ANONYMOUS = AUTH_TYPE.ANONYMOUS; pub const eAUTH_TYPE_NTLM = AUTH_TYPE.NTLM; pub const eAUTH_TYPE_BASIC = AUTH_TYPE.BASIC; pub const AUTHENTICATION_INFO = extern struct { dwSize: u32, atAuthenticationType: AUTH_TYPE, pcwszUser: ?[*:0]const u16, pcwszPassword: ?[*:0]const u16, }; pub const INCREMENTAL_ACCESS_INFO = extern struct { dwSize: u32, ftLastModifiedTime: FILETIME, }; pub const ITEM_INFO = extern struct { dwSize: u32, pcwszFromEMail: ?[*:0]const u16, pcwszApplicationName: ?[*:0]const u16, pcwszCatalogName: ?[*:0]const u16, pcwszContentClass: ?[*:0]const u16, }; // TODO: this type is limited to platform 'windows5.1.2600' const IID_ISearchProtocol_Value = Guid.initString("c73106ba-ac80-11d1-8df3-00c04fb6ef4f"); pub const IID_ISearchProtocol = &IID_ISearchProtocol_Value; pub const ISearchProtocol = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, Init: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ISearchProtocol, pTimeoutInfo: ?*TIMEOUT_INFO, pProtocolHandlerSite: ?*IProtocolHandlerSite, pProxyInfo: ?*PROXY_INFO, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ISearchProtocol, pTimeoutInfo: ?*TIMEOUT_INFO, pProtocolHandlerSite: ?*IProtocolHandlerSite, pProxyInfo: ?*PROXY_INFO, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, CreateAccessor: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ISearchProtocol, pcwszURL: ?[*:0]const u16, pAuthenticationInfo: ?*AUTHENTICATION_INFO, pIncrementalAccessInfo: ?*INCREMENTAL_ACCESS_INFO, pItemInfo: ?*ITEM_INFO, ppAccessor: ?*?*IUrlAccessor, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ISearchProtocol, pcwszURL: ?[*:0]const u16, pAuthenticationInfo: ?*AUTHENTICATION_INFO, pIncrementalAccessInfo: ?*INCREMENTAL_ACCESS_INFO, pItemInfo: ?*ITEM_INFO, ppAccessor: ?*?*IUrlAccessor, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, CloseAccessor: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ISearchProtocol, pAccessor: ?*IUrlAccessor, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ISearchProtocol, pAccessor: ?*IUrlAccessor, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, ShutDown: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ISearchProtocol, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ISearchProtocol, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISearchProtocol_Init(self: *const T, pTimeoutInfo: ?*TIMEOUT_INFO, pProtocolHandlerSite: ?*IProtocolHandlerSite, pProxyInfo: ?*PROXY_INFO) HRESULT { return @as(*const ISearchProtocol.VTable, @ptrCast(self.vtable)).Init(@as(*const ISearchProtocol, @ptrCast(self)), pTimeoutInfo, pProtocolHandlerSite, pProxyInfo); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISearchProtocol_CreateAccessor(self: *const T, pcwszURL: ?[*:0]const u16, pAuthenticationInfo: ?*AUTHENTICATION_INFO, pIncrementalAccessInfo: ?*INCREMENTAL_ACCESS_INFO, pItemInfo: ?*ITEM_INFO, ppAccessor: ?*?*IUrlAccessor) HRESULT { return @as(*const ISearchProtocol.VTable, @ptrCast(self.vtable)).CreateAccessor(@as(*const ISearchProtocol, @ptrCast(self)), pcwszURL, pAuthenticationInfo, pIncrementalAccessInfo, pItemInfo, ppAccessor); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISearchProtocol_CloseAccessor(self: *const T, pAccessor: ?*IUrlAccessor) HRESULT { return @as(*const ISearchProtocol.VTable, @ptrCast(self.vtable)).CloseAccessor(@as(*const ISearchProtocol, @ptrCast(self)), pAccessor); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISearchProtocol_ShutDown(self: *const T) HRESULT { return @as(*const ISearchProtocol.VTable, @ptrCast(self.vtable)).ShutDown(@as(*const ISearchProtocol, @ptrCast(self))); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows5.1.2600' const IID_ISearchProtocol2_Value = Guid.initString("7789f0b2-b5b2-4722-8b65-5dbd150697a9"); pub const IID_ISearchProtocol2 = &IID_ISearchProtocol2_Value; pub const ISearchProtocol2 = extern struct { pub const VTable = extern struct { base: ISearchProtocol.VTable, CreateAccessorEx: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ISearchProtocol2, pcwszURL: ?[*:0]const u16, pAuthenticationInfo: ?*AUTHENTICATION_INFO, pIncrementalAccessInfo: ?*INCREMENTAL_ACCESS_INFO, pItemInfo: ?*ITEM_INFO, pUserData: ?*const BLOB, ppAccessor: ?*?*IUrlAccessor, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ISearchProtocol2, pcwszURL: ?[*:0]const u16, pAuthenticationInfo: ?*AUTHENTICATION_INFO, pIncrementalAccessInfo: ?*INCREMENTAL_ACCESS_INFO, pItemInfo: ?*ITEM_INFO, pUserData: ?*const BLOB, ppAccessor: ?*?*IUrlAccessor, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace ISearchProtocol.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISearchProtocol2_CreateAccessorEx(self: *const T, pcwszURL: ?[*:0]const u16, pAuthenticationInfo: ?*AUTHENTICATION_INFO, pIncrementalAccessInfo: ?*INCREMENTAL_ACCESS_INFO, pItemInfo: ?*ITEM_INFO, pUserData: ?*const BLOB, ppAccessor: ?*?*IUrlAccessor) HRESULT { return @as(*const ISearchProtocol2.VTable, @ptrCast(self.vtable)).CreateAccessorEx(@as(*const ISearchProtocol2, @ptrCast(self)), pcwszURL, pAuthenticationInfo, pIncrementalAccessInfo, pItemInfo, pUserData, ppAccessor); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows5.1.2600' const IID_IProtocolHandlerSite_Value = Guid.initString("0b63e385-9ccc-11d0-bcdb-00805fccce04"); pub const IID_IProtocolHandlerSite = &IID_IProtocolHandlerSite_Value; pub const IProtocolHandlerSite = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, GetFilter: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IProtocolHandlerSite, pclsidObj: ?*Guid, pcwszContentType: ?[*:0]const u16, pcwszExtension: ?[*:0]const u16, ppFilter: ?*?*IFilter, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IProtocolHandlerSite, pclsidObj: ?*Guid, pcwszContentType: ?[*:0]const u16, pcwszExtension: ?[*:0]const u16, ppFilter: ?*?*IFilter, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IProtocolHandlerSite_GetFilter(self: *const T, pclsidObj: ?*Guid, pcwszContentType: ?[*:0]const u16, pcwszExtension: ?[*:0]const u16, ppFilter: ?*?*IFilter) HRESULT { return @as(*const IProtocolHandlerSite.VTable, @ptrCast(self.vtable)).GetFilter(@as(*const IProtocolHandlerSite, @ptrCast(self)), pclsidObj, pcwszContentType, pcwszExtension, ppFilter); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows5.1.2600' const IID_ISearchRoot_Value = Guid.initString("04c18ccf-1f57-4cbd-88cc-3900f5195ce3"); pub const IID_ISearchRoot = &IID_ISearchRoot_Value; pub const ISearchRoot = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, // TODO: this function has a "SpecialName", should Zig do anything with this? put_Schedule: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ISearchRoot, pszTaskArg: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ISearchRoot, pszTaskArg: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Schedule: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ISearchRoot, ppszTaskArg: ?*?PWSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ISearchRoot, ppszTaskArg: ?*?PWSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_RootURL: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ISearchRoot, pszURL: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ISearchRoot, pszURL: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_RootURL: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ISearchRoot, ppszURL: ?*?PWSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ISearchRoot, ppszURL: ?*?PWSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_IsHierarchical: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ISearchRoot, fIsHierarchical: BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ISearchRoot, fIsHierarchical: BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_IsHierarchical: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ISearchRoot, pfIsHierarchical: ?*BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ISearchRoot, pfIsHierarchical: ?*BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_ProvidesNotifications: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ISearchRoot, fProvidesNotifications: BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ISearchRoot, fProvidesNotifications: BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_ProvidesNotifications: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ISearchRoot, pfProvidesNotifications: ?*BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ISearchRoot, pfProvidesNotifications: ?*BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_UseNotificationsOnly: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ISearchRoot, fUseNotificationsOnly: BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ISearchRoot, fUseNotificationsOnly: BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_UseNotificationsOnly: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ISearchRoot, pfUseNotificationsOnly: ?*BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ISearchRoot, pfUseNotificationsOnly: ?*BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_EnumerationDepth: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ISearchRoot, dwDepth: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ISearchRoot, dwDepth: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_EnumerationDepth: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ISearchRoot, pdwDepth: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ISearchRoot, pdwDepth: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_HostDepth: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ISearchRoot, dwDepth: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ISearchRoot, dwDepth: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_HostDepth: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ISearchRoot, pdwDepth: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ISearchRoot, pdwDepth: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_FollowDirectories: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ISearchRoot, fFollowDirectories: BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ISearchRoot, fFollowDirectories: BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_FollowDirectories: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ISearchRoot, pfFollowDirectories: ?*BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ISearchRoot, pfFollowDirectories: ?*BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_AuthenticationType: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ISearchRoot, authType: AUTH_TYPE, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ISearchRoot, authType: AUTH_TYPE, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_AuthenticationType: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ISearchRoot, pAuthType: ?*AUTH_TYPE, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ISearchRoot, pAuthType: ?*AUTH_TYPE, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_User: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ISearchRoot, pszUser: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ISearchRoot, pszUser: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_User: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ISearchRoot, ppszUser: ?*?PWSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ISearchRoot, ppszUser: ?*?PWSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_Password: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ISearchRoot, pszPassword: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ISearchRoot, pszPassword: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Password: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ISearchRoot, ppszPassword: ?*?PWSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ISearchRoot, ppszPassword: ?*?PWSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISearchRoot_put_Schedule(self: *const T, pszTaskArg: ?[*:0]const u16) HRESULT { return @as(*const ISearchRoot.VTable, @ptrCast(self.vtable)).put_Schedule(@as(*const ISearchRoot, @ptrCast(self)), pszTaskArg); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISearchRoot_get_Schedule(self: *const T, ppszTaskArg: ?*?PWSTR) HRESULT { return @as(*const ISearchRoot.VTable, @ptrCast(self.vtable)).get_Schedule(@as(*const ISearchRoot, @ptrCast(self)), ppszTaskArg); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISearchRoot_put_RootURL(self: *const T, pszURL: ?[*:0]const u16) HRESULT { return @as(*const ISearchRoot.VTable, @ptrCast(self.vtable)).put_RootURL(@as(*const ISearchRoot, @ptrCast(self)), pszURL); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISearchRoot_get_RootURL(self: *const T, ppszURL: ?*?PWSTR) HRESULT { return @as(*const ISearchRoot.VTable, @ptrCast(self.vtable)).get_RootURL(@as(*const ISearchRoot, @ptrCast(self)), ppszURL); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISearchRoot_put_IsHierarchical(self: *const T, fIsHierarchical: BOOL) HRESULT { return @as(*const ISearchRoot.VTable, @ptrCast(self.vtable)).put_IsHierarchical(@as(*const ISearchRoot, @ptrCast(self)), fIsHierarchical); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISearchRoot_get_IsHierarchical(self: *const T, pfIsHierarchical: ?*BOOL) HRESULT { return @as(*const ISearchRoot.VTable, @ptrCast(self.vtable)).get_IsHierarchical(@as(*const ISearchRoot, @ptrCast(self)), pfIsHierarchical); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISearchRoot_put_ProvidesNotifications(self: *const T, fProvidesNotifications: BOOL) HRESULT { return @as(*const ISearchRoot.VTable, @ptrCast(self.vtable)).put_ProvidesNotifications(@as(*const ISearchRoot, @ptrCast(self)), fProvidesNotifications); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISearchRoot_get_ProvidesNotifications(self: *const T, pfProvidesNotifications: ?*BOOL) HRESULT { return @as(*const ISearchRoot.VTable, @ptrCast(self.vtable)).get_ProvidesNotifications(@as(*const ISearchRoot, @ptrCast(self)), pfProvidesNotifications); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISearchRoot_put_UseNotificationsOnly(self: *const T, fUseNotificationsOnly: BOOL) HRESULT { return @as(*const ISearchRoot.VTable, @ptrCast(self.vtable)).put_UseNotificationsOnly(@as(*const ISearchRoot, @ptrCast(self)), fUseNotificationsOnly); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISearchRoot_get_UseNotificationsOnly(self: *const T, pfUseNotificationsOnly: ?*BOOL) HRESULT { return @as(*const ISearchRoot.VTable, @ptrCast(self.vtable)).get_UseNotificationsOnly(@as(*const ISearchRoot, @ptrCast(self)), pfUseNotificationsOnly); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISearchRoot_put_EnumerationDepth(self: *const T, dwDepth: u32) HRESULT { return @as(*const ISearchRoot.VTable, @ptrCast(self.vtable)).put_EnumerationDepth(@as(*const ISearchRoot, @ptrCast(self)), dwDepth); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISearchRoot_get_EnumerationDepth(self: *const T, pdwDepth: ?*u32) HRESULT { return @as(*const ISearchRoot.VTable, @ptrCast(self.vtable)).get_EnumerationDepth(@as(*const ISearchRoot, @ptrCast(self)), pdwDepth); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISearchRoot_put_HostDepth(self: *const T, dwDepth: u32) HRESULT { return @as(*const ISearchRoot.VTable, @ptrCast(self.vtable)).put_HostDepth(@as(*const ISearchRoot, @ptrCast(self)), dwDepth); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISearchRoot_get_HostDepth(self: *const T, pdwDepth: ?*u32) HRESULT { return @as(*const ISearchRoot.VTable, @ptrCast(self.vtable)).get_HostDepth(@as(*const ISearchRoot, @ptrCast(self)), pdwDepth); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISearchRoot_put_FollowDirectories(self: *const T, fFollowDirectories: BOOL) HRESULT { return @as(*const ISearchRoot.VTable, @ptrCast(self.vtable)).put_FollowDirectories(@as(*const ISearchRoot, @ptrCast(self)), fFollowDirectories); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISearchRoot_get_FollowDirectories(self: *const T, pfFollowDirectories: ?*BOOL) HRESULT { return @as(*const ISearchRoot.VTable, @ptrCast(self.vtable)).get_FollowDirectories(@as(*const ISearchRoot, @ptrCast(self)), pfFollowDirectories); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISearchRoot_put_AuthenticationType(self: *const T, authType: AUTH_TYPE) HRESULT { return @as(*const ISearchRoot.VTable, @ptrCast(self.vtable)).put_AuthenticationType(@as(*const ISearchRoot, @ptrCast(self)), authType); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISearchRoot_get_AuthenticationType(self: *const T, pAuthType: ?*AUTH_TYPE) HRESULT { return @as(*const ISearchRoot.VTable, @ptrCast(self.vtable)).get_AuthenticationType(@as(*const ISearchRoot, @ptrCast(self)), pAuthType); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISearchRoot_put_User(self: *const T, pszUser: ?[*:0]const u16) HRESULT { return @as(*const ISearchRoot.VTable, @ptrCast(self.vtable)).put_User(@as(*const ISearchRoot, @ptrCast(self)), pszUser); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISearchRoot_get_User(self: *const T, ppszUser: ?*?PWSTR) HRESULT { return @as(*const ISearchRoot.VTable, @ptrCast(self.vtable)).get_User(@as(*const ISearchRoot, @ptrCast(self)), ppszUser); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISearchRoot_put_Password(self: *const T, pszPassword: ?[*:0]const u16) HRESULT { return @as(*const ISearchRoot.VTable, @ptrCast(self.vtable)).put_Password(@as(*const ISearchRoot, @ptrCast(self)), pszPassword); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISearchRoot_get_Password(self: *const T, ppszPassword: ?*?PWSTR) HRESULT { return @as(*const ISearchRoot.VTable, @ptrCast(self.vtable)).get_Password(@as(*const ISearchRoot, @ptrCast(self)), ppszPassword); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows5.1.2600' const IID_IEnumSearchRoots_Value = Guid.initString("ab310581-ac80-11d1-8df3-00c04fb6ef52"); pub const IID_IEnumSearchRoots = &IID_IEnumSearchRoots_Value; pub const IEnumSearchRoots = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, Next: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IEnumSearchRoots, celt: u32, rgelt: [*]?*ISearchRoot, pceltFetched: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IEnumSearchRoots, celt: u32, rgelt: [*]?*ISearchRoot, pceltFetched: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Skip: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IEnumSearchRoots, celt: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IEnumSearchRoots, celt: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Reset: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IEnumSearchRoots, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IEnumSearchRoots, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Clone: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IEnumSearchRoots, ppenum: ?*?*IEnumSearchRoots, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IEnumSearchRoots, ppenum: ?*?*IEnumSearchRoots, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IEnumSearchRoots_Next(self: *const T, celt: u32, rgelt: [*]?*ISearchRoot, pceltFetched: ?*u32) HRESULT { return @as(*const IEnumSearchRoots.VTable, @ptrCast(self.vtable)).Next(@as(*const IEnumSearchRoots, @ptrCast(self)), celt, rgelt, pceltFetched); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IEnumSearchRoots_Skip(self: *const T, celt: u32) HRESULT { return @as(*const IEnumSearchRoots.VTable, @ptrCast(self.vtable)).Skip(@as(*const IEnumSearchRoots, @ptrCast(self)), celt); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IEnumSearchRoots_Reset(self: *const T) HRESULT { return @as(*const IEnumSearchRoots.VTable, @ptrCast(self.vtable)).Reset(@as(*const IEnumSearchRoots, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IEnumSearchRoots_Clone(self: *const T, ppenum: ?*?*IEnumSearchRoots) HRESULT { return @as(*const IEnumSearchRoots.VTable, @ptrCast(self.vtable)).Clone(@as(*const IEnumSearchRoots, @ptrCast(self)), ppenum); } }; } pub usingnamespace MethodMixin(@This()); }; pub const FOLLOW_FLAGS = enum(i32) { INDEXCOMPLEXURLS = 1, SUPPRESSINDEXING = 2, }; pub const FF_INDEXCOMPLEXURLS = FOLLOW_FLAGS.INDEXCOMPLEXURLS; pub const FF_SUPPRESSINDEXING = FOLLOW_FLAGS.SUPPRESSINDEXING; // TODO: this type is limited to platform 'windows5.1.2600' const IID_ISearchScopeRule_Value = Guid.initString("ab310581-ac80-11d1-8df3-00c04fb6ef53"); pub const IID_ISearchScopeRule = &IID_ISearchScopeRule_Value; pub const ISearchScopeRule = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, // TODO: this function has a "SpecialName", should Zig do anything with this? get_PatternOrURL: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ISearchScopeRule, ppszPatternOrURL: ?*?PWSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ISearchScopeRule, ppszPatternOrURL: ?*?PWSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_IsIncluded: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ISearchScopeRule, pfIsIncluded: ?*BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ISearchScopeRule, pfIsIncluded: ?*BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_IsDefault: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ISearchScopeRule, pfIsDefault: ?*BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ISearchScopeRule, pfIsDefault: ?*BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_FollowFlags: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ISearchScopeRule, pFollowFlags: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ISearchScopeRule, pFollowFlags: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISearchScopeRule_get_PatternOrURL(self: *const T, ppszPatternOrURL: ?*?PWSTR) HRESULT { return @as(*const ISearchScopeRule.VTable, @ptrCast(self.vtable)).get_PatternOrURL(@as(*const ISearchScopeRule, @ptrCast(self)), ppszPatternOrURL); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISearchScopeRule_get_IsIncluded(self: *const T, pfIsIncluded: ?*BOOL) HRESULT { return @as(*const ISearchScopeRule.VTable, @ptrCast(self.vtable)).get_IsIncluded(@as(*const ISearchScopeRule, @ptrCast(self)), pfIsIncluded); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISearchScopeRule_get_IsDefault(self: *const T, pfIsDefault: ?*BOOL) HRESULT { return @as(*const ISearchScopeRule.VTable, @ptrCast(self.vtable)).get_IsDefault(@as(*const ISearchScopeRule, @ptrCast(self)), pfIsDefault); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISearchScopeRule_get_FollowFlags(self: *const T, pFollowFlags: ?*u32) HRESULT { return @as(*const ISearchScopeRule.VTable, @ptrCast(self.vtable)).get_FollowFlags(@as(*const ISearchScopeRule, @ptrCast(self)), pFollowFlags); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows5.1.2600' const IID_IEnumSearchScopeRules_Value = Guid.initString("ab310581-ac80-11d1-8df3-00c04fb6ef54"); pub const IID_IEnumSearchScopeRules = &IID_IEnumSearchScopeRules_Value; pub const IEnumSearchScopeRules = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, Next: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IEnumSearchScopeRules, celt: u32, pprgelt: [*]?*ISearchScopeRule, pceltFetched: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IEnumSearchScopeRules, celt: u32, pprgelt: [*]?*ISearchScopeRule, pceltFetched: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Skip: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IEnumSearchScopeRules, celt: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IEnumSearchScopeRules, celt: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Reset: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IEnumSearchScopeRules, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IEnumSearchScopeRules, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Clone: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IEnumSearchScopeRules, ppenum: ?*?*IEnumSearchScopeRules, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IEnumSearchScopeRules, ppenum: ?*?*IEnumSearchScopeRules, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IEnumSearchScopeRules_Next(self: *const T, celt: u32, pprgelt: [*]?*ISearchScopeRule, pceltFetched: ?*u32) HRESULT { return @as(*const IEnumSearchScopeRules.VTable, @ptrCast(self.vtable)).Next(@as(*const IEnumSearchScopeRules, @ptrCast(self)), celt, pprgelt, pceltFetched); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IEnumSearchScopeRules_Skip(self: *const T, celt: u32) HRESULT { return @as(*const IEnumSearchScopeRules.VTable, @ptrCast(self.vtable)).Skip(@as(*const IEnumSearchScopeRules, @ptrCast(self)), celt); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IEnumSearchScopeRules_Reset(self: *const T) HRESULT { return @as(*const IEnumSearchScopeRules.VTable, @ptrCast(self.vtable)).Reset(@as(*const IEnumSearchScopeRules, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IEnumSearchScopeRules_Clone(self: *const T, ppenum: ?*?*IEnumSearchScopeRules) HRESULT { return @as(*const IEnumSearchScopeRules.VTable, @ptrCast(self.vtable)).Clone(@as(*const IEnumSearchScopeRules, @ptrCast(self)), ppenum); } }; } pub usingnamespace MethodMixin(@This()); }; pub const CLUSION_REASON = enum(i32) { UNKNOWNSCOPE = 0, DEFAULT = 1, USER = 2, GROUPPOLICY = 3, }; pub const CLUSIONREASON_UNKNOWNSCOPE = CLUSION_REASON.UNKNOWNSCOPE; pub const CLUSIONREASON_DEFAULT = CLUSION_REASON.DEFAULT; pub const CLUSIONREASON_USER = CLUSION_REASON.USER; pub const CLUSIONREASON_GROUPPOLICY = CLUSION_REASON.GROUPPOLICY; // TODO: this type is limited to platform 'windows5.1.2600' const IID_ISearchCrawlScopeManager_Value = Guid.initString("ab310581-ac80-11d1-8df3-00c04fb6ef55"); pub const IID_ISearchCrawlScopeManager = &IID_ISearchCrawlScopeManager_Value; pub const ISearchCrawlScopeManager = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, AddDefaultScopeRule: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ISearchCrawlScopeManager, pszURL: ?[*:0]const u16, fInclude: BOOL, fFollowFlags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ISearchCrawlScopeManager, pszURL: ?[*:0]const u16, fInclude: BOOL, fFollowFlags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, AddRoot: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ISearchCrawlScopeManager, pSearchRoot: ?*ISearchRoot, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ISearchCrawlScopeManager, pSearchRoot: ?*ISearchRoot, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, RemoveRoot: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ISearchCrawlScopeManager, pszURL: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ISearchCrawlScopeManager, pszURL: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, EnumerateRoots: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ISearchCrawlScopeManager, ppSearchRoots: ?*?*IEnumSearchRoots, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ISearchCrawlScopeManager, ppSearchRoots: ?*?*IEnumSearchRoots, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, AddHierarchicalScope: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ISearchCrawlScopeManager, pszURL: ?[*:0]const u16, fInclude: BOOL, fDefault: BOOL, fOverrideChildren: BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ISearchCrawlScopeManager, pszURL: ?[*:0]const u16, fInclude: BOOL, fDefault: BOOL, fOverrideChildren: BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, AddUserScopeRule: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ISearchCrawlScopeManager, pszURL: ?[*:0]const u16, fInclude: BOOL, fOverrideChildren: BOOL, fFollowFlags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ISearchCrawlScopeManager, pszURL: ?[*:0]const u16, fInclude: BOOL, fOverrideChildren: BOOL, fFollowFlags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, RemoveScopeRule: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ISearchCrawlScopeManager, pszRule: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ISearchCrawlScopeManager, pszRule: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, EnumerateScopeRules: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ISearchCrawlScopeManager, ppSearchScopeRules: ?*?*IEnumSearchScopeRules, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ISearchCrawlScopeManager, ppSearchScopeRules: ?*?*IEnumSearchScopeRules, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, HasParentScopeRule: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ISearchCrawlScopeManager, pszURL: ?[*:0]const u16, pfHasParentRule: ?*BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ISearchCrawlScopeManager, pszURL: ?[*:0]const u16, pfHasParentRule: ?*BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, HasChildScopeRule: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ISearchCrawlScopeManager, pszURL: ?[*:0]const u16, pfHasChildRule: ?*BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ISearchCrawlScopeManager, pszURL: ?[*:0]const u16, pfHasChildRule: ?*BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, IncludedInCrawlScope: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ISearchCrawlScopeManager, pszURL: ?[*:0]const u16, pfIsIncluded: ?*BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ISearchCrawlScopeManager, pszURL: ?[*:0]const u16, pfIsIncluded: ?*BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, IncludedInCrawlScopeEx: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ISearchCrawlScopeManager, pszURL: ?[*:0]const u16, pfIsIncluded: ?*BOOL, pReason: ?*CLUSION_REASON, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ISearchCrawlScopeManager, pszURL: ?[*:0]const u16, pfIsIncluded: ?*BOOL, pReason: ?*CLUSION_REASON, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, RevertToDefaultScopes: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ISearchCrawlScopeManager, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ISearchCrawlScopeManager, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SaveAll: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ISearchCrawlScopeManager, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ISearchCrawlScopeManager, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetParentScopeVersionId: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ISearchCrawlScopeManager, pszURL: ?[*:0]const u16, plScopeId: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ISearchCrawlScopeManager, pszURL: ?[*:0]const u16, plScopeId: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, RemoveDefaultScopeRule: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ISearchCrawlScopeManager, pszURL: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ISearchCrawlScopeManager, pszURL: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISearchCrawlScopeManager_AddDefaultScopeRule(self: *const T, pszURL: ?[*:0]const u16, fInclude: BOOL, fFollowFlags: u32) HRESULT { return @as(*const ISearchCrawlScopeManager.VTable, @ptrCast(self.vtable)).AddDefaultScopeRule(@as(*const ISearchCrawlScopeManager, @ptrCast(self)), pszURL, fInclude, fFollowFlags); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISearchCrawlScopeManager_AddRoot(self: *const T, pSearchRoot: ?*ISearchRoot) HRESULT { return @as(*const ISearchCrawlScopeManager.VTable, @ptrCast(self.vtable)).AddRoot(@as(*const ISearchCrawlScopeManager, @ptrCast(self)), pSearchRoot); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISearchCrawlScopeManager_RemoveRoot(self: *const T, pszURL: ?[*:0]const u16) HRESULT { return @as(*const ISearchCrawlScopeManager.VTable, @ptrCast(self.vtable)).RemoveRoot(@as(*const ISearchCrawlScopeManager, @ptrCast(self)), pszURL); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISearchCrawlScopeManager_EnumerateRoots(self: *const T, ppSearchRoots: ?*?*IEnumSearchRoots) HRESULT { return @as(*const ISearchCrawlScopeManager.VTable, @ptrCast(self.vtable)).EnumerateRoots(@as(*const ISearchCrawlScopeManager, @ptrCast(self)), ppSearchRoots); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISearchCrawlScopeManager_AddHierarchicalScope(self: *const T, pszURL: ?[*:0]const u16, fInclude: BOOL, fDefault: BOOL, fOverrideChildren: BOOL) HRESULT { return @as(*const ISearchCrawlScopeManager.VTable, @ptrCast(self.vtable)).AddHierarchicalScope(@as(*const ISearchCrawlScopeManager, @ptrCast(self)), pszURL, fInclude, fDefault, fOverrideChildren); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISearchCrawlScopeManager_AddUserScopeRule(self: *const T, pszURL: ?[*:0]const u16, fInclude: BOOL, fOverrideChildren: BOOL, fFollowFlags: u32) HRESULT { return @as(*const ISearchCrawlScopeManager.VTable, @ptrCast(self.vtable)).AddUserScopeRule(@as(*const ISearchCrawlScopeManager, @ptrCast(self)), pszURL, fInclude, fOverrideChildren, fFollowFlags); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISearchCrawlScopeManager_RemoveScopeRule(self: *const T, pszRule: ?[*:0]const u16) HRESULT { return @as(*const ISearchCrawlScopeManager.VTable, @ptrCast(self.vtable)).RemoveScopeRule(@as(*const ISearchCrawlScopeManager, @ptrCast(self)), pszRule); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISearchCrawlScopeManager_EnumerateScopeRules(self: *const T, ppSearchScopeRules: ?*?*IEnumSearchScopeRules) HRESULT { return @as(*const ISearchCrawlScopeManager.VTable, @ptrCast(self.vtable)).EnumerateScopeRules(@as(*const ISearchCrawlScopeManager, @ptrCast(self)), ppSearchScopeRules); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISearchCrawlScopeManager_HasParentScopeRule(self: *const T, pszURL: ?[*:0]const u16, pfHasParentRule: ?*BOOL) HRESULT { return @as(*const ISearchCrawlScopeManager.VTable, @ptrCast(self.vtable)).HasParentScopeRule(@as(*const ISearchCrawlScopeManager, @ptrCast(self)), pszURL, pfHasParentRule); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISearchCrawlScopeManager_HasChildScopeRule(self: *const T, pszURL: ?[*:0]const u16, pfHasChildRule: ?*BOOL) HRESULT { return @as(*const ISearchCrawlScopeManager.VTable, @ptrCast(self.vtable)).HasChildScopeRule(@as(*const ISearchCrawlScopeManager, @ptrCast(self)), pszURL, pfHasChildRule); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISearchCrawlScopeManager_IncludedInCrawlScope(self: *const T, pszURL: ?[*:0]const u16, pfIsIncluded: ?*BOOL) HRESULT { return @as(*const ISearchCrawlScopeManager.VTable, @ptrCast(self.vtable)).IncludedInCrawlScope(@as(*const ISearchCrawlScopeManager, @ptrCast(self)), pszURL, pfIsIncluded); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISearchCrawlScopeManager_IncludedInCrawlScopeEx(self: *const T, pszURL: ?[*:0]const u16, pfIsIncluded: ?*BOOL, pReason: ?*CLUSION_REASON) HRESULT { return @as(*const ISearchCrawlScopeManager.VTable, @ptrCast(self.vtable)).IncludedInCrawlScopeEx(@as(*const ISearchCrawlScopeManager, @ptrCast(self)), pszURL, pfIsIncluded, pReason); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISearchCrawlScopeManager_RevertToDefaultScopes(self: *const T) HRESULT { return @as(*const ISearchCrawlScopeManager.VTable, @ptrCast(self.vtable)).RevertToDefaultScopes(@as(*const ISearchCrawlScopeManager, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISearchCrawlScopeManager_SaveAll(self: *const T) HRESULT { return @as(*const ISearchCrawlScopeManager.VTable, @ptrCast(self.vtable)).SaveAll(@as(*const ISearchCrawlScopeManager, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISearchCrawlScopeManager_GetParentScopeVersionId(self: *const T, pszURL: ?[*:0]const u16, plScopeId: ?*i32) HRESULT { return @as(*const ISearchCrawlScopeManager.VTable, @ptrCast(self.vtable)).GetParentScopeVersionId(@as(*const ISearchCrawlScopeManager, @ptrCast(self)), pszURL, plScopeId); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISearchCrawlScopeManager_RemoveDefaultScopeRule(self: *const T, pszURL: ?[*:0]const u16) HRESULT { return @as(*const ISearchCrawlScopeManager.VTable, @ptrCast(self.vtable)).RemoveDefaultScopeRule(@as(*const ISearchCrawlScopeManager, @ptrCast(self)), pszURL); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows6.1' const IID_ISearchCrawlScopeManager2_Value = Guid.initString("6292f7ad-4e19-4717-a534-8fc22bcd5ccd"); pub const IID_ISearchCrawlScopeManager2 = &IID_ISearchCrawlScopeManager2_Value; pub const ISearchCrawlScopeManager2 = extern struct { pub const VTable = extern struct { base: ISearchCrawlScopeManager.VTable, GetVersion: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ISearchCrawlScopeManager2, plVersion: ?*?*i32, phFileMapping: ?*?HANDLE, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ISearchCrawlScopeManager2, plVersion: ?*?*i32, phFileMapping: ?*?HANDLE, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace ISearchCrawlScopeManager.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISearchCrawlScopeManager2_GetVersion(self: *const T, plVersion: ?*?*i32, phFileMapping: ?*?HANDLE) HRESULT { return @as(*const ISearchCrawlScopeManager2.VTable, @ptrCast(self.vtable)).GetVersion(@as(*const ISearchCrawlScopeManager2, @ptrCast(self)), plVersion, phFileMapping); } }; } pub usingnamespace MethodMixin(@This()); }; pub const SEARCH_KIND_OF_CHANGE = enum(i32) { ADD = 0, DELETE = 1, MODIFY = 2, MOVE_RENAME = 3, SEMANTICS_DIRECTORY = 262144, SEMANTICS_SHALLOW = 524288, SEMANTICS_UPDATE_SECURITY = 4194304, }; pub const SEARCH_CHANGE_ADD = SEARCH_KIND_OF_CHANGE.ADD; pub const SEARCH_CHANGE_DELETE = SEARCH_KIND_OF_CHANGE.DELETE; pub const SEARCH_CHANGE_MODIFY = SEARCH_KIND_OF_CHANGE.MODIFY; pub const SEARCH_CHANGE_MOVE_RENAME = SEARCH_KIND_OF_CHANGE.MOVE_RENAME; pub const SEARCH_CHANGE_SEMANTICS_DIRECTORY = SEARCH_KIND_OF_CHANGE.SEMANTICS_DIRECTORY; pub const SEARCH_CHANGE_SEMANTICS_SHALLOW = SEARCH_KIND_OF_CHANGE.SEMANTICS_SHALLOW; pub const SEARCH_CHANGE_SEMANTICS_UPDATE_SECURITY = SEARCH_KIND_OF_CHANGE.SEMANTICS_UPDATE_SECURITY; pub const SEARCH_NOTIFICATION_PRIORITY = enum(i32) { NORMAL_PRIORITY = 0, HIGH_PRIORITY = 1, }; pub const SEARCH_NORMAL_PRIORITY = SEARCH_NOTIFICATION_PRIORITY.NORMAL_PRIORITY; pub const SEARCH_HIGH_PRIORITY = SEARCH_NOTIFICATION_PRIORITY.HIGH_PRIORITY; pub const SEARCH_ITEM_CHANGE = extern struct { Change: SEARCH_KIND_OF_CHANGE, Priority: SEARCH_NOTIFICATION_PRIORITY, pUserData: ?*BLOB, lpwszURL: ?PWSTR, lpwszOldURL: ?PWSTR, }; // TODO: this type is limited to platform 'windows5.1.2600' const IID_ISearchItemsChangedSink_Value = Guid.initString("ab310581-ac80-11d1-8df3-00c04fb6ef58"); pub const IID_ISearchItemsChangedSink = &IID_ISearchItemsChangedSink_Value; pub const ISearchItemsChangedSink = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, StartedMonitoringScope: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ISearchItemsChangedSink, pszURL: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ISearchItemsChangedSink, pszURL: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, StoppedMonitoringScope: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ISearchItemsChangedSink, pszURL: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ISearchItemsChangedSink, pszURL: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, OnItemsChanged: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ISearchItemsChangedSink, dwNumberOfChanges: u32, rgDataChangeEntries: [*]SEARCH_ITEM_CHANGE, rgdwDocIds: [*]u32, rghrCompletionCodes: [*]HRESULT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ISearchItemsChangedSink, dwNumberOfChanges: u32, rgDataChangeEntries: [*]SEARCH_ITEM_CHANGE, rgdwDocIds: [*]u32, rghrCompletionCodes: [*]HRESULT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISearchItemsChangedSink_StartedMonitoringScope(self: *const T, pszURL: ?[*:0]const u16) HRESULT { return @as(*const ISearchItemsChangedSink.VTable, @ptrCast(self.vtable)).StartedMonitoringScope(@as(*const ISearchItemsChangedSink, @ptrCast(self)), pszURL); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISearchItemsChangedSink_StoppedMonitoringScope(self: *const T, pszURL: ?[*:0]const u16) HRESULT { return @as(*const ISearchItemsChangedSink.VTable, @ptrCast(self.vtable)).StoppedMonitoringScope(@as(*const ISearchItemsChangedSink, @ptrCast(self)), pszURL); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISearchItemsChangedSink_OnItemsChanged(self: *const T, dwNumberOfChanges: u32, rgDataChangeEntries: [*]SEARCH_ITEM_CHANGE, rgdwDocIds: [*]u32, rghrCompletionCodes: [*]HRESULT) HRESULT { return @as(*const ISearchItemsChangedSink.VTable, @ptrCast(self.vtable)).OnItemsChanged(@as(*const ISearchItemsChangedSink, @ptrCast(self)), dwNumberOfChanges, rgDataChangeEntries, rgdwDocIds, rghrCompletionCodes); } }; } pub usingnamespace MethodMixin(@This()); }; pub const SEARCH_ITEM_PERSISTENT_CHANGE = extern struct { Change: SEARCH_KIND_OF_CHANGE, URL: ?PWSTR, OldURL: ?PWSTR, Priority: SEARCH_NOTIFICATION_PRIORITY, }; // TODO: this type is limited to platform 'windows5.1.2600' const IID_ISearchPersistentItemsChangedSink_Value = Guid.initString("a2ffdf9b-4758-4f84-b729-df81a1a0612f"); pub const IID_ISearchPersistentItemsChangedSink = &IID_ISearchPersistentItemsChangedSink_Value; pub const ISearchPersistentItemsChangedSink = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, StartedMonitoringScope: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ISearchPersistentItemsChangedSink, pszURL: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ISearchPersistentItemsChangedSink, pszURL: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, StoppedMonitoringScope: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ISearchPersistentItemsChangedSink, pszURL: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ISearchPersistentItemsChangedSink, pszURL: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, OnItemsChanged: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ISearchPersistentItemsChangedSink, dwNumberOfChanges: u32, DataChangeEntries: [*]SEARCH_ITEM_PERSISTENT_CHANGE, hrCompletionCodes: [*]HRESULT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ISearchPersistentItemsChangedSink, dwNumberOfChanges: u32, DataChangeEntries: [*]SEARCH_ITEM_PERSISTENT_CHANGE, hrCompletionCodes: [*]HRESULT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISearchPersistentItemsChangedSink_StartedMonitoringScope(self: *const T, pszURL: ?[*:0]const u16) HRESULT { return @as(*const ISearchPersistentItemsChangedSink.VTable, @ptrCast(self.vtable)).StartedMonitoringScope(@as(*const ISearchPersistentItemsChangedSink, @ptrCast(self)), pszURL); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISearchPersistentItemsChangedSink_StoppedMonitoringScope(self: *const T, pszURL: ?[*:0]const u16) HRESULT { return @as(*const ISearchPersistentItemsChangedSink.VTable, @ptrCast(self.vtable)).StoppedMonitoringScope(@as(*const ISearchPersistentItemsChangedSink, @ptrCast(self)), pszURL); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISearchPersistentItemsChangedSink_OnItemsChanged(self: *const T, dwNumberOfChanges: u32, DataChangeEntries: [*]SEARCH_ITEM_PERSISTENT_CHANGE, hrCompletionCodes: [*]HRESULT) HRESULT { return @as(*const ISearchPersistentItemsChangedSink.VTable, @ptrCast(self.vtable)).OnItemsChanged(@as(*const ISearchPersistentItemsChangedSink, @ptrCast(self)), dwNumberOfChanges, DataChangeEntries, hrCompletionCodes); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows5.1.2600' const IID_ISearchViewChangedSink_Value = Guid.initString("ab310581-ac80-11d1-8df3-00c04fb6ef65"); pub const IID_ISearchViewChangedSink = &IID_ISearchViewChangedSink_Value; pub const ISearchViewChangedSink = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, OnChange: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ISearchViewChangedSink, pdwDocID: ?*i32, pChange: ?*SEARCH_ITEM_CHANGE, pfInView: ?*BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ISearchViewChangedSink, pdwDocID: ?*i32, pChange: ?*SEARCH_ITEM_CHANGE, pfInView: ?*BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISearchViewChangedSink_OnChange(self: *const T, pdwDocID: ?*i32, pChange: ?*SEARCH_ITEM_CHANGE, pfInView: ?*BOOL) HRESULT { return @as(*const ISearchViewChangedSink.VTable, @ptrCast(self.vtable)).OnChange(@as(*const ISearchViewChangedSink, @ptrCast(self)), pdwDocID, pChange, pfInView); } }; } pub usingnamespace MethodMixin(@This()); }; pub const SEARCH_INDEXING_PHASE = enum(i32) { GATHERER = 0, QUERYABLE = 1, PERSISTED = 2, }; pub const SEARCH_INDEXING_PHASE_GATHERER = SEARCH_INDEXING_PHASE.GATHERER; pub const SEARCH_INDEXING_PHASE_QUERYABLE = SEARCH_INDEXING_PHASE.QUERYABLE; pub const SEARCH_INDEXING_PHASE_PERSISTED = SEARCH_INDEXING_PHASE.PERSISTED; pub const SEARCH_ITEM_INDEXING_STATUS = extern struct { dwDocID: u32, hrIndexingStatus: HRESULT, }; // TODO: this type is limited to platform 'windows5.1.2600' const IID_ISearchNotifyInlineSite_Value = Guid.initString("b5702e61-e75c-4b64-82a1-6cb4f832fccf"); pub const IID_ISearchNotifyInlineSite = &IID_ISearchNotifyInlineSite_Value; pub const ISearchNotifyInlineSite = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, OnItemIndexedStatusChange: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ISearchNotifyInlineSite, sipStatus: SEARCH_INDEXING_PHASE, dwNumEntries: u32, rgItemStatusEntries: [*]SEARCH_ITEM_INDEXING_STATUS, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ISearchNotifyInlineSite, sipStatus: SEARCH_INDEXING_PHASE, dwNumEntries: u32, rgItemStatusEntries: [*]SEARCH_ITEM_INDEXING_STATUS, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, OnCatalogStatusChange: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ISearchNotifyInlineSite, guidCatalogResetSignature: ?*const Guid, guidCheckPointSignature: ?*const Guid, dwLastCheckPointNumber: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ISearchNotifyInlineSite, guidCatalogResetSignature: ?*const Guid, guidCheckPointSignature: ?*const Guid, dwLastCheckPointNumber: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISearchNotifyInlineSite_OnItemIndexedStatusChange(self: *const T, sipStatus: SEARCH_INDEXING_PHASE, dwNumEntries: u32, rgItemStatusEntries: [*]SEARCH_ITEM_INDEXING_STATUS) HRESULT { return @as(*const ISearchNotifyInlineSite.VTable, @ptrCast(self.vtable)).OnItemIndexedStatusChange(@as(*const ISearchNotifyInlineSite, @ptrCast(self)), sipStatus, dwNumEntries, rgItemStatusEntries); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISearchNotifyInlineSite_OnCatalogStatusChange(self: *const T, guidCatalogResetSignature: ?*const Guid, guidCheckPointSignature: ?*const Guid, dwLastCheckPointNumber: u32) HRESULT { return @as(*const ISearchNotifyInlineSite.VTable, @ptrCast(self.vtable)).OnCatalogStatusChange(@as(*const ISearchNotifyInlineSite, @ptrCast(self)), guidCatalogResetSignature, guidCheckPointSignature, dwLastCheckPointNumber); } }; } pub usingnamespace MethodMixin(@This()); }; pub const CatalogStatus = enum(i32) { IDLE = 0, PAUSED = 1, RECOVERING = 2, FULL_CRAWL = 3, INCREMENTAL_CRAWL = 4, PROCESSING_NOTIFICATIONS = 5, SHUTTING_DOWN = 6, }; pub const CATALOG_STATUS_IDLE = CatalogStatus.IDLE; pub const CATALOG_STATUS_PAUSED = CatalogStatus.PAUSED; pub const CATALOG_STATUS_RECOVERING = CatalogStatus.RECOVERING; pub const CATALOG_STATUS_FULL_CRAWL = CatalogStatus.FULL_CRAWL; pub const CATALOG_STATUS_INCREMENTAL_CRAWL = CatalogStatus.INCREMENTAL_CRAWL; pub const CATALOG_STATUS_PROCESSING_NOTIFICATIONS = CatalogStatus.PROCESSING_NOTIFICATIONS; pub const CATALOG_STATUS_SHUTTING_DOWN = CatalogStatus.SHUTTING_DOWN; pub const CatalogPausedReason = enum(i32) { NONE = 0, HIGH_IO = 1, HIGH_CPU = 2, HIGH_NTF_RATE = 3, LOW_BATTERY = 4, LOW_MEMORY = 5, LOW_DISK = 6, DELAYED_RECOVERY = 7, USER_ACTIVE = 8, EXTERNAL = 9, UPGRADING = 10, }; pub const CATALOG_PAUSED_REASON_NONE = CatalogPausedReason.NONE; pub const CATALOG_PAUSED_REASON_HIGH_IO = CatalogPausedReason.HIGH_IO; pub const CATALOG_PAUSED_REASON_HIGH_CPU = CatalogPausedReason.HIGH_CPU; pub const CATALOG_PAUSED_REASON_HIGH_NTF_RATE = CatalogPausedReason.HIGH_NTF_RATE; pub const CATALOG_PAUSED_REASON_LOW_BATTERY = CatalogPausedReason.LOW_BATTERY; pub const CATALOG_PAUSED_REASON_LOW_MEMORY = CatalogPausedReason.LOW_MEMORY; pub const CATALOG_PAUSED_REASON_LOW_DISK = CatalogPausedReason.LOW_DISK; pub const CATALOG_PAUSED_REASON_DELAYED_RECOVERY = CatalogPausedReason.DELAYED_RECOVERY; pub const CATALOG_PAUSED_REASON_USER_ACTIVE = CatalogPausedReason.USER_ACTIVE; pub const CATALOG_PAUSED_REASON_EXTERNAL = CatalogPausedReason.EXTERNAL; pub const CATALOG_PAUSED_REASON_UPGRADING = CatalogPausedReason.UPGRADING; // TODO: this type is limited to platform 'windows5.1.2600' const IID_ISearchCatalogManager_Value = Guid.initString("ab310581-ac80-11d1-8df3-00c04fb6ef50"); pub const IID_ISearchCatalogManager = &IID_ISearchCatalogManager_Value; pub const ISearchCatalogManager = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Name: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ISearchCatalogManager, pszName: ?*?PWSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ISearchCatalogManager, pszName: ?*?PWSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetParameter: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ISearchCatalogManager, pszName: ?[*:0]const u16, ppValue: ?*?*PROPVARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ISearchCatalogManager, pszName: ?[*:0]const u16, ppValue: ?*?*PROPVARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetParameter: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ISearchCatalogManager, pszName: ?[*:0]const u16, pValue: ?*PROPVARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ISearchCatalogManager, pszName: ?[*:0]const u16, pValue: ?*PROPVARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetCatalogStatus: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ISearchCatalogManager, pStatus: ?*CatalogStatus, pPausedReason: ?*CatalogPausedReason, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ISearchCatalogManager, pStatus: ?*CatalogStatus, pPausedReason: ?*CatalogPausedReason, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Reset: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ISearchCatalogManager, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ISearchCatalogManager, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Reindex: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ISearchCatalogManager, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ISearchCatalogManager, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, ReindexMatchingURLs: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ISearchCatalogManager, pszPattern: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ISearchCatalogManager, pszPattern: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, ReindexSearchRoot: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ISearchCatalogManager, pszRootURL: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ISearchCatalogManager, pszRootURL: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_ConnectTimeout: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ISearchCatalogManager, dwConnectTimeout: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ISearchCatalogManager, dwConnectTimeout: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_ConnectTimeout: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ISearchCatalogManager, pdwConnectTimeout: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ISearchCatalogManager, pdwConnectTimeout: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_DataTimeout: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ISearchCatalogManager, dwDataTimeout: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ISearchCatalogManager, dwDataTimeout: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_DataTimeout: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ISearchCatalogManager, pdwDataTimeout: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ISearchCatalogManager, pdwDataTimeout: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, NumberOfItems: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ISearchCatalogManager, plCount: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ISearchCatalogManager, plCount: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, NumberOfItemsToIndex: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ISearchCatalogManager, plIncrementalCount: ?*i32, plNotificationQueue: ?*i32, plHighPriorityQueue: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ISearchCatalogManager, plIncrementalCount: ?*i32, plNotificationQueue: ?*i32, plHighPriorityQueue: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, URLBeingIndexed: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ISearchCatalogManager, pszUrl: ?*?PWSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ISearchCatalogManager, pszUrl: ?*?PWSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetURLIndexingState: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ISearchCatalogManager, pszURL: ?[*:0]const u16, pdwState: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ISearchCatalogManager, pszURL: ?[*:0]const u16, pdwState: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetPersistentItemsChangedSink: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ISearchCatalogManager, ppISearchPersistentItemsChangedSink: ?*?*ISearchPersistentItemsChangedSink, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ISearchCatalogManager, ppISearchPersistentItemsChangedSink: ?*?*ISearchPersistentItemsChangedSink, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, RegisterViewForNotification: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ISearchCatalogManager, pszView: ?[*:0]const u16, pViewChangedSink: ?*ISearchViewChangedSink, pdwCookie: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ISearchCatalogManager, pszView: ?[*:0]const u16, pViewChangedSink: ?*ISearchViewChangedSink, pdwCookie: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetItemsChangedSink: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ISearchCatalogManager, pISearchNotifyInlineSite: ?*ISearchNotifyInlineSite, riid: ?*const Guid, ppv: ?*?*anyopaque, pGUIDCatalogResetSignature: ?*Guid, pGUIDCheckPointSignature: ?*Guid, pdwLastCheckPointNumber: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ISearchCatalogManager, pISearchNotifyInlineSite: ?*ISearchNotifyInlineSite, riid: ?*const Guid, ppv: ?*?*anyopaque, pGUIDCatalogResetSignature: ?*Guid, pGUIDCheckPointSignature: ?*Guid, pdwLastCheckPointNumber: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, UnregisterViewForNotification: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ISearchCatalogManager, dwCookie: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ISearchCatalogManager, dwCookie: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetExtensionClusion: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ISearchCatalogManager, pszExtension: ?[*:0]const u16, fExclude: BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ISearchCatalogManager, pszExtension: ?[*:0]const u16, fExclude: BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, EnumerateExcludedExtensions: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ISearchCatalogManager, ppExtensions: ?*?*IEnumString, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ISearchCatalogManager, ppExtensions: ?*?*IEnumString, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetQueryHelper: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ISearchCatalogManager, ppSearchQueryHelper: ?*?*ISearchQueryHelper, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ISearchCatalogManager, ppSearchQueryHelper: ?*?*ISearchQueryHelper, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_DiacriticSensitivity: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ISearchCatalogManager, fDiacriticSensitive: BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ISearchCatalogManager, fDiacriticSensitive: BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_DiacriticSensitivity: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ISearchCatalogManager, pfDiacriticSensitive: ?*BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ISearchCatalogManager, pfDiacriticSensitive: ?*BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetCrawlScopeManager: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ISearchCatalogManager, ppCrawlScopeManager: ?*?*ISearchCrawlScopeManager, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ISearchCatalogManager, ppCrawlScopeManager: ?*?*ISearchCrawlScopeManager, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISearchCatalogManager_get_Name(self: *const T, pszName: ?*?PWSTR) HRESULT { return @as(*const ISearchCatalogManager.VTable, @ptrCast(self.vtable)).get_Name(@as(*const ISearchCatalogManager, @ptrCast(self)), pszName); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISearchCatalogManager_GetParameter(self: *const T, pszName: ?[*:0]const u16, ppValue: ?*?*PROPVARIANT) HRESULT { return @as(*const ISearchCatalogManager.VTable, @ptrCast(self.vtable)).GetParameter(@as(*const ISearchCatalogManager, @ptrCast(self)), pszName, ppValue); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISearchCatalogManager_SetParameter(self: *const T, pszName: ?[*:0]const u16, pValue: ?*PROPVARIANT) HRESULT { return @as(*const ISearchCatalogManager.VTable, @ptrCast(self.vtable)).SetParameter(@as(*const ISearchCatalogManager, @ptrCast(self)), pszName, pValue); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISearchCatalogManager_GetCatalogStatus(self: *const T, pStatus: ?*CatalogStatus, pPausedReason: ?*CatalogPausedReason) HRESULT { return @as(*const ISearchCatalogManager.VTable, @ptrCast(self.vtable)).GetCatalogStatus(@as(*const ISearchCatalogManager, @ptrCast(self)), pStatus, pPausedReason); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISearchCatalogManager_Reset(self: *const T) HRESULT { return @as(*const ISearchCatalogManager.VTable, @ptrCast(self.vtable)).Reset(@as(*const ISearchCatalogManager, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISearchCatalogManager_Reindex(self: *const T) HRESULT { return @as(*const ISearchCatalogManager.VTable, @ptrCast(self.vtable)).Reindex(@as(*const ISearchCatalogManager, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISearchCatalogManager_ReindexMatchingURLs(self: *const T, pszPattern: ?[*:0]const u16) HRESULT { return @as(*const ISearchCatalogManager.VTable, @ptrCast(self.vtable)).ReindexMatchingURLs(@as(*const ISearchCatalogManager, @ptrCast(self)), pszPattern); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISearchCatalogManager_ReindexSearchRoot(self: *const T, pszRootURL: ?[*:0]const u16) HRESULT { return @as(*const ISearchCatalogManager.VTable, @ptrCast(self.vtable)).ReindexSearchRoot(@as(*const ISearchCatalogManager, @ptrCast(self)), pszRootURL); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISearchCatalogManager_put_ConnectTimeout(self: *const T, dwConnectTimeout: u32) HRESULT { return @as(*const ISearchCatalogManager.VTable, @ptrCast(self.vtable)).put_ConnectTimeout(@as(*const ISearchCatalogManager, @ptrCast(self)), dwConnectTimeout); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISearchCatalogManager_get_ConnectTimeout(self: *const T, pdwConnectTimeout: ?*u32) HRESULT { return @as(*const ISearchCatalogManager.VTable, @ptrCast(self.vtable)).get_ConnectTimeout(@as(*const ISearchCatalogManager, @ptrCast(self)), pdwConnectTimeout); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISearchCatalogManager_put_DataTimeout(self: *const T, dwDataTimeout: u32) HRESULT { return @as(*const ISearchCatalogManager.VTable, @ptrCast(self.vtable)).put_DataTimeout(@as(*const ISearchCatalogManager, @ptrCast(self)), dwDataTimeout); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISearchCatalogManager_get_DataTimeout(self: *const T, pdwDataTimeout: ?*u32) HRESULT { return @as(*const ISearchCatalogManager.VTable, @ptrCast(self.vtable)).get_DataTimeout(@as(*const ISearchCatalogManager, @ptrCast(self)), pdwDataTimeout); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISearchCatalogManager_NumberOfItems(self: *const T, plCount: ?*i32) HRESULT { return @as(*const ISearchCatalogManager.VTable, @ptrCast(self.vtable)).NumberOfItems(@as(*const ISearchCatalogManager, @ptrCast(self)), plCount); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISearchCatalogManager_NumberOfItemsToIndex(self: *const T, plIncrementalCount: ?*i32, plNotificationQueue: ?*i32, plHighPriorityQueue: ?*i32) HRESULT { return @as(*const ISearchCatalogManager.VTable, @ptrCast(self.vtable)).NumberOfItemsToIndex(@as(*const ISearchCatalogManager, @ptrCast(self)), plIncrementalCount, plNotificationQueue, plHighPriorityQueue); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISearchCatalogManager_URLBeingIndexed(self: *const T, pszUrl: ?*?PWSTR) HRESULT { return @as(*const ISearchCatalogManager.VTable, @ptrCast(self.vtable)).URLBeingIndexed(@as(*const ISearchCatalogManager, @ptrCast(self)), pszUrl); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISearchCatalogManager_GetURLIndexingState(self: *const T, pszURL: ?[*:0]const u16, pdwState: ?*u32) HRESULT { return @as(*const ISearchCatalogManager.VTable, @ptrCast(self.vtable)).GetURLIndexingState(@as(*const ISearchCatalogManager, @ptrCast(self)), pszURL, pdwState); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISearchCatalogManager_GetPersistentItemsChangedSink(self: *const T, ppISearchPersistentItemsChangedSink: ?*?*ISearchPersistentItemsChangedSink) HRESULT { return @as(*const ISearchCatalogManager.VTable, @ptrCast(self.vtable)).GetPersistentItemsChangedSink(@as(*const ISearchCatalogManager, @ptrCast(self)), ppISearchPersistentItemsChangedSink); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISearchCatalogManager_RegisterViewForNotification(self: *const T, pszView: ?[*:0]const u16, pViewChangedSink: ?*ISearchViewChangedSink, pdwCookie: ?*u32) HRESULT { return @as(*const ISearchCatalogManager.VTable, @ptrCast(self.vtable)).RegisterViewForNotification(@as(*const ISearchCatalogManager, @ptrCast(self)), pszView, pViewChangedSink, pdwCookie); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISearchCatalogManager_GetItemsChangedSink(self: *const T, pISearchNotifyInlineSite: ?*ISearchNotifyInlineSite, riid: ?*const Guid, ppv: ?*?*anyopaque, pGUIDCatalogResetSignature: ?*Guid, pGUIDCheckPointSignature: ?*Guid, pdwLastCheckPointNumber: ?*u32) HRESULT { return @as(*const ISearchCatalogManager.VTable, @ptrCast(self.vtable)).GetItemsChangedSink(@as(*const ISearchCatalogManager, @ptrCast(self)), pISearchNotifyInlineSite, riid, ppv, pGUIDCatalogResetSignature, pGUIDCheckPointSignature, pdwLastCheckPointNumber); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISearchCatalogManager_UnregisterViewForNotification(self: *const T, dwCookie: u32) HRESULT { return @as(*const ISearchCatalogManager.VTable, @ptrCast(self.vtable)).UnregisterViewForNotification(@as(*const ISearchCatalogManager, @ptrCast(self)), dwCookie); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISearchCatalogManager_SetExtensionClusion(self: *const T, pszExtension: ?[*:0]const u16, fExclude: BOOL) HRESULT { return @as(*const ISearchCatalogManager.VTable, @ptrCast(self.vtable)).SetExtensionClusion(@as(*const ISearchCatalogManager, @ptrCast(self)), pszExtension, fExclude); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISearchCatalogManager_EnumerateExcludedExtensions(self: *const T, ppExtensions: ?*?*IEnumString) HRESULT { return @as(*const ISearchCatalogManager.VTable, @ptrCast(self.vtable)).EnumerateExcludedExtensions(@as(*const ISearchCatalogManager, @ptrCast(self)), ppExtensions); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISearchCatalogManager_GetQueryHelper(self: *const T, ppSearchQueryHelper: ?*?*ISearchQueryHelper) HRESULT { return @as(*const ISearchCatalogManager.VTable, @ptrCast(self.vtable)).GetQueryHelper(@as(*const ISearchCatalogManager, @ptrCast(self)), ppSearchQueryHelper); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISearchCatalogManager_put_DiacriticSensitivity(self: *const T, fDiacriticSensitive: BOOL) HRESULT { return @as(*const ISearchCatalogManager.VTable, @ptrCast(self.vtable)).put_DiacriticSensitivity(@as(*const ISearchCatalogManager, @ptrCast(self)), fDiacriticSensitive); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISearchCatalogManager_get_DiacriticSensitivity(self: *const T, pfDiacriticSensitive: ?*BOOL) HRESULT { return @as(*const ISearchCatalogManager.VTable, @ptrCast(self.vtable)).get_DiacriticSensitivity(@as(*const ISearchCatalogManager, @ptrCast(self)), pfDiacriticSensitive); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISearchCatalogManager_GetCrawlScopeManager(self: *const T, ppCrawlScopeManager: ?*?*ISearchCrawlScopeManager) HRESULT { return @as(*const ISearchCatalogManager.VTable, @ptrCast(self.vtable)).GetCrawlScopeManager(@as(*const ISearchCatalogManager, @ptrCast(self)), ppCrawlScopeManager); } }; } pub usingnamespace MethodMixin(@This()); }; pub const PRIORITIZE_FLAGS = enum(i32) { RETRYFAILEDITEMS = 1, IGNOREFAILURECOUNT = 2, }; pub const PRIORITIZE_FLAG_RETRYFAILEDITEMS = PRIORITIZE_FLAGS.RETRYFAILEDITEMS; pub const PRIORITIZE_FLAG_IGNOREFAILURECOUNT = PRIORITIZE_FLAGS.IGNOREFAILURECOUNT; // TODO: this type is limited to platform 'windows5.1.2600' const IID_ISearchCatalogManager2_Value = Guid.initString("7ac3286d-4d1d-4817-84fc-c1c85e3af0d9"); pub const IID_ISearchCatalogManager2 = &IID_ISearchCatalogManager2_Value; pub const ISearchCatalogManager2 = extern struct { pub const VTable = extern struct { base: ISearchCatalogManager.VTable, PrioritizeMatchingURLs: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ISearchCatalogManager2, pszPattern: ?[*:0]const u16, dwPrioritizeFlags: PRIORITIZE_FLAGS, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ISearchCatalogManager2, pszPattern: ?[*:0]const u16, dwPrioritizeFlags: PRIORITIZE_FLAGS, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace ISearchCatalogManager.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISearchCatalogManager2_PrioritizeMatchingURLs(self: *const T, pszPattern: ?[*:0]const u16, dwPrioritizeFlags: PRIORITIZE_FLAGS) HRESULT { return @as(*const ISearchCatalogManager2.VTable, @ptrCast(self.vtable)).PrioritizeMatchingURLs(@as(*const ISearchCatalogManager2, @ptrCast(self)), pszPattern, dwPrioritizeFlags); } }; } pub usingnamespace MethodMixin(@This()); }; pub const SEARCH_TERM_EXPANSION = enum(i32) { NO_EXPANSION = 0, PREFIX_ALL = 1, STEM_ALL = 2, }; pub const SEARCH_TERM_NO_EXPANSION = SEARCH_TERM_EXPANSION.NO_EXPANSION; pub const SEARCH_TERM_PREFIX_ALL = SEARCH_TERM_EXPANSION.PREFIX_ALL; pub const SEARCH_TERM_STEM_ALL = SEARCH_TERM_EXPANSION.STEM_ALL; pub const SEARCH_QUERY_SYNTAX = enum(i32) { NO_QUERY_SYNTAX = 0, ADVANCED_QUERY_SYNTAX = 1, NATURAL_QUERY_SYNTAX = 2, }; pub const SEARCH_NO_QUERY_SYNTAX = SEARCH_QUERY_SYNTAX.NO_QUERY_SYNTAX; pub const SEARCH_ADVANCED_QUERY_SYNTAX = SEARCH_QUERY_SYNTAX.ADVANCED_QUERY_SYNTAX; pub const SEARCH_NATURAL_QUERY_SYNTAX = SEARCH_QUERY_SYNTAX.NATURAL_QUERY_SYNTAX; pub const SEARCH_COLUMN_PROPERTIES = extern struct { Value: PROPVARIANT, lcid: u32, }; // TODO: this type is limited to platform 'windows5.1.2600' const IID_ISearchQueryHelper_Value = Guid.initString("ab310581-ac80-11d1-8df3-00c04fb6ef63"); pub const IID_ISearchQueryHelper = &IID_ISearchQueryHelper_Value; pub const ISearchQueryHelper = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, // TODO: this function has a "SpecialName", should Zig do anything with this? get_ConnectionString: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ISearchQueryHelper, pszConnectionString: ?*?PWSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ISearchQueryHelper, pszConnectionString: ?*?PWSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_QueryContentLocale: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ISearchQueryHelper, lcid: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ISearchQueryHelper, lcid: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_QueryContentLocale: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ISearchQueryHelper, plcid: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ISearchQueryHelper, plcid: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_QueryKeywordLocale: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ISearchQueryHelper, lcid: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ISearchQueryHelper, lcid: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_QueryKeywordLocale: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ISearchQueryHelper, plcid: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ISearchQueryHelper, plcid: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_QueryTermExpansion: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ISearchQueryHelper, expandTerms: SEARCH_TERM_EXPANSION, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ISearchQueryHelper, expandTerms: SEARCH_TERM_EXPANSION, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_QueryTermExpansion: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ISearchQueryHelper, pExpandTerms: ?*SEARCH_TERM_EXPANSION, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ISearchQueryHelper, pExpandTerms: ?*SEARCH_TERM_EXPANSION, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_QuerySyntax: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ISearchQueryHelper, querySyntax: SEARCH_QUERY_SYNTAX, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ISearchQueryHelper, querySyntax: SEARCH_QUERY_SYNTAX, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_QuerySyntax: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ISearchQueryHelper, pQuerySyntax: ?*SEARCH_QUERY_SYNTAX, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ISearchQueryHelper, pQuerySyntax: ?*SEARCH_QUERY_SYNTAX, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_QueryContentProperties: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ISearchQueryHelper, pszContentProperties: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ISearchQueryHelper, pszContentProperties: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_QueryContentProperties: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ISearchQueryHelper, ppszContentProperties: ?*?PWSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ISearchQueryHelper, ppszContentProperties: ?*?PWSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_QuerySelectColumns: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ISearchQueryHelper, pszSelectColumns: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ISearchQueryHelper, pszSelectColumns: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_QuerySelectColumns: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ISearchQueryHelper, ppszSelectColumns: ?*?PWSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ISearchQueryHelper, ppszSelectColumns: ?*?PWSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_QueryWhereRestrictions: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ISearchQueryHelper, pszRestrictions: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ISearchQueryHelper, pszRestrictions: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_QueryWhereRestrictions: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ISearchQueryHelper, ppszRestrictions: ?*?PWSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ISearchQueryHelper, ppszRestrictions: ?*?PWSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_QuerySorting: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ISearchQueryHelper, pszSorting: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ISearchQueryHelper, pszSorting: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_QuerySorting: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ISearchQueryHelper, ppszSorting: ?*?PWSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ISearchQueryHelper, ppszSorting: ?*?PWSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GenerateSQLFromUserQuery: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ISearchQueryHelper, pszQuery: ?[*:0]const u16, ppszSQL: ?*?PWSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ISearchQueryHelper, pszQuery: ?[*:0]const u16, ppszSQL: ?*?PWSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, WriteProperties: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ISearchQueryHelper, itemID: i32, dwNumberOfColumns: u32, pColumns: [*]PROPERTYKEY, pValues: [*]SEARCH_COLUMN_PROPERTIES, pftGatherModifiedTime: ?*FILETIME, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ISearchQueryHelper, itemID: i32, dwNumberOfColumns: u32, pColumns: [*]PROPERTYKEY, pValues: [*]SEARCH_COLUMN_PROPERTIES, pftGatherModifiedTime: ?*FILETIME, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_QueryMaxResults: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ISearchQueryHelper, cMaxResults: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ISearchQueryHelper, cMaxResults: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_QueryMaxResults: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ISearchQueryHelper, pcMaxResults: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ISearchQueryHelper, pcMaxResults: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISearchQueryHelper_get_ConnectionString(self: *const T, pszConnectionString: ?*?PWSTR) HRESULT { return @as(*const ISearchQueryHelper.VTable, @ptrCast(self.vtable)).get_ConnectionString(@as(*const ISearchQueryHelper, @ptrCast(self)), pszConnectionString); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISearchQueryHelper_put_QueryContentLocale(self: *const T, lcid: u32) HRESULT { return @as(*const ISearchQueryHelper.VTable, @ptrCast(self.vtable)).put_QueryContentLocale(@as(*const ISearchQueryHelper, @ptrCast(self)), lcid); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISearchQueryHelper_get_QueryContentLocale(self: *const T, plcid: ?*u32) HRESULT { return @as(*const ISearchQueryHelper.VTable, @ptrCast(self.vtable)).get_QueryContentLocale(@as(*const ISearchQueryHelper, @ptrCast(self)), plcid); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISearchQueryHelper_put_QueryKeywordLocale(self: *const T, lcid: u32) HRESULT { return @as(*const ISearchQueryHelper.VTable, @ptrCast(self.vtable)).put_QueryKeywordLocale(@as(*const ISearchQueryHelper, @ptrCast(self)), lcid); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISearchQueryHelper_get_QueryKeywordLocale(self: *const T, plcid: ?*u32) HRESULT { return @as(*const ISearchQueryHelper.VTable, @ptrCast(self.vtable)).get_QueryKeywordLocale(@as(*const ISearchQueryHelper, @ptrCast(self)), plcid); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISearchQueryHelper_put_QueryTermExpansion(self: *const T, expandTerms: SEARCH_TERM_EXPANSION) HRESULT { return @as(*const ISearchQueryHelper.VTable, @ptrCast(self.vtable)).put_QueryTermExpansion(@as(*const ISearchQueryHelper, @ptrCast(self)), expandTerms); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISearchQueryHelper_get_QueryTermExpansion(self: *const T, pExpandTerms: ?*SEARCH_TERM_EXPANSION) HRESULT { return @as(*const ISearchQueryHelper.VTable, @ptrCast(self.vtable)).get_QueryTermExpansion(@as(*const ISearchQueryHelper, @ptrCast(self)), pExpandTerms); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISearchQueryHelper_put_QuerySyntax(self: *const T, querySyntax: SEARCH_QUERY_SYNTAX) HRESULT { return @as(*const ISearchQueryHelper.VTable, @ptrCast(self.vtable)).put_QuerySyntax(@as(*const ISearchQueryHelper, @ptrCast(self)), querySyntax); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISearchQueryHelper_get_QuerySyntax(self: *const T, pQuerySyntax: ?*SEARCH_QUERY_SYNTAX) HRESULT { return @as(*const ISearchQueryHelper.VTable, @ptrCast(self.vtable)).get_QuerySyntax(@as(*const ISearchQueryHelper, @ptrCast(self)), pQuerySyntax); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISearchQueryHelper_put_QueryContentProperties(self: *const T, pszContentProperties: ?[*:0]const u16) HRESULT { return @as(*const ISearchQueryHelper.VTable, @ptrCast(self.vtable)).put_QueryContentProperties(@as(*const ISearchQueryHelper, @ptrCast(self)), pszContentProperties); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISearchQueryHelper_get_QueryContentProperties(self: *const T, ppszContentProperties: ?*?PWSTR) HRESULT { return @as(*const ISearchQueryHelper.VTable, @ptrCast(self.vtable)).get_QueryContentProperties(@as(*const ISearchQueryHelper, @ptrCast(self)), ppszContentProperties); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISearchQueryHelper_put_QuerySelectColumns(self: *const T, pszSelectColumns: ?[*:0]const u16) HRESULT { return @as(*const ISearchQueryHelper.VTable, @ptrCast(self.vtable)).put_QuerySelectColumns(@as(*const ISearchQueryHelper, @ptrCast(self)), pszSelectColumns); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISearchQueryHelper_get_QuerySelectColumns(self: *const T, ppszSelectColumns: ?*?PWSTR) HRESULT { return @as(*const ISearchQueryHelper.VTable, @ptrCast(self.vtable)).get_QuerySelectColumns(@as(*const ISearchQueryHelper, @ptrCast(self)), ppszSelectColumns); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISearchQueryHelper_put_QueryWhereRestrictions(self: *const T, pszRestrictions: ?[*:0]const u16) HRESULT { return @as(*const ISearchQueryHelper.VTable, @ptrCast(self.vtable)).put_QueryWhereRestrictions(@as(*const ISearchQueryHelper, @ptrCast(self)), pszRestrictions); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISearchQueryHelper_get_QueryWhereRestrictions(self: *const T, ppszRestrictions: ?*?PWSTR) HRESULT { return @as(*const ISearchQueryHelper.VTable, @ptrCast(self.vtable)).get_QueryWhereRestrictions(@as(*const ISearchQueryHelper, @ptrCast(self)), ppszRestrictions); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISearchQueryHelper_put_QuerySorting(self: *const T, pszSorting: ?[*:0]const u16) HRESULT { return @as(*const ISearchQueryHelper.VTable, @ptrCast(self.vtable)).put_QuerySorting(@as(*const ISearchQueryHelper, @ptrCast(self)), pszSorting); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISearchQueryHelper_get_QuerySorting(self: *const T, ppszSorting: ?*?PWSTR) HRESULT { return @as(*const ISearchQueryHelper.VTable, @ptrCast(self.vtable)).get_QuerySorting(@as(*const ISearchQueryHelper, @ptrCast(self)), ppszSorting); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISearchQueryHelper_GenerateSQLFromUserQuery(self: *const T, pszQuery: ?[*:0]const u16, ppszSQL: ?*?PWSTR) HRESULT { return @as(*const ISearchQueryHelper.VTable, @ptrCast(self.vtable)).GenerateSQLFromUserQuery(@as(*const ISearchQueryHelper, @ptrCast(self)), pszQuery, ppszSQL); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISearchQueryHelper_WriteProperties(self: *const T, itemID: i32, dwNumberOfColumns: u32, pColumns: [*]PROPERTYKEY, pValues: [*]SEARCH_COLUMN_PROPERTIES, pftGatherModifiedTime: ?*FILETIME) HRESULT { return @as(*const ISearchQueryHelper.VTable, @ptrCast(self.vtable)).WriteProperties(@as(*const ISearchQueryHelper, @ptrCast(self)), itemID, dwNumberOfColumns, pColumns, pValues, pftGatherModifiedTime); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISearchQueryHelper_put_QueryMaxResults(self: *const T, cMaxResults: i32) HRESULT { return @as(*const ISearchQueryHelper.VTable, @ptrCast(self.vtable)).put_QueryMaxResults(@as(*const ISearchQueryHelper, @ptrCast(self)), cMaxResults); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISearchQueryHelper_get_QueryMaxResults(self: *const T, pcMaxResults: ?*i32) HRESULT { return @as(*const ISearchQueryHelper.VTable, @ptrCast(self.vtable)).get_QueryMaxResults(@as(*const ISearchQueryHelper, @ptrCast(self)), pcMaxResults); } }; } pub usingnamespace MethodMixin(@This()); }; pub const PRIORITY_LEVEL = enum(i32) { FOREGROUND = 0, HIGH = 1, LOW = 2, DEFAULT = 3, }; pub const PRIORITY_LEVEL_FOREGROUND = PRIORITY_LEVEL.FOREGROUND; pub const PRIORITY_LEVEL_HIGH = PRIORITY_LEVEL.HIGH; pub const PRIORITY_LEVEL_LOW = PRIORITY_LEVEL.LOW; pub const PRIORITY_LEVEL_DEFAULT = PRIORITY_LEVEL.DEFAULT; // TODO: this type is limited to platform 'windows6.1' const IID_IRowsetPrioritization_Value = Guid.initString("42811652-079d-481b-87a2-09a69ecc5f44"); pub const IID_IRowsetPrioritization = &IID_IRowsetPrioritization_Value; pub const IRowsetPrioritization = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, SetScopePriority: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IRowsetPrioritization, priority: PRIORITY_LEVEL, scopeStatisticsEventFrequency: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IRowsetPrioritization, priority: PRIORITY_LEVEL, scopeStatisticsEventFrequency: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetScopePriority: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IRowsetPrioritization, priority: ?*PRIORITY_LEVEL, scopeStatisticsEventFrequency: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IRowsetPrioritization, priority: ?*PRIORITY_LEVEL, scopeStatisticsEventFrequency: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetScopeStatistics: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IRowsetPrioritization, indexedDocumentCount: ?*u32, oustandingAddCount: ?*u32, oustandingModifyCount: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IRowsetPrioritization, indexedDocumentCount: ?*u32, oustandingAddCount: ?*u32, oustandingModifyCount: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRowsetPrioritization_SetScopePriority(self: *const T, priority: PRIORITY_LEVEL, scopeStatisticsEventFrequency: u32) HRESULT { return @as(*const IRowsetPrioritization.VTable, @ptrCast(self.vtable)).SetScopePriority(@as(*const IRowsetPrioritization, @ptrCast(self)), priority, scopeStatisticsEventFrequency); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRowsetPrioritization_GetScopePriority(self: *const T, priority: ?*PRIORITY_LEVEL, scopeStatisticsEventFrequency: ?*u32) HRESULT { return @as(*const IRowsetPrioritization.VTable, @ptrCast(self.vtable)).GetScopePriority(@as(*const IRowsetPrioritization, @ptrCast(self)), priority, scopeStatisticsEventFrequency); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRowsetPrioritization_GetScopeStatistics(self: *const T, indexedDocumentCount: ?*u32, oustandingAddCount: ?*u32, oustandingModifyCount: ?*u32) HRESULT { return @as(*const IRowsetPrioritization.VTable, @ptrCast(self.vtable)).GetScopeStatistics(@as(*const IRowsetPrioritization, @ptrCast(self)), indexedDocumentCount, oustandingAddCount, oustandingModifyCount); } }; } pub usingnamespace MethodMixin(@This()); }; pub const ROWSETEVENT_ITEMSTATE = enum(i32) { NOTINROWSET = 0, INROWSET = 1, UNKNOWN = 2, }; pub const ROWSETEVENT_ITEMSTATE_NOTINROWSET = ROWSETEVENT_ITEMSTATE.NOTINROWSET; pub const ROWSETEVENT_ITEMSTATE_INROWSET = ROWSETEVENT_ITEMSTATE.INROWSET; pub const ROWSETEVENT_ITEMSTATE_UNKNOWN = ROWSETEVENT_ITEMSTATE.UNKNOWN; pub const ROWSETEVENT_TYPE = enum(i32) { DATAEXPIRED = 0, FOREGROUNDLOST = 1, SCOPESTATISTICS = 2, }; pub const ROWSETEVENT_TYPE_DATAEXPIRED = ROWSETEVENT_TYPE.DATAEXPIRED; pub const ROWSETEVENT_TYPE_FOREGROUNDLOST = ROWSETEVENT_TYPE.FOREGROUNDLOST; pub const ROWSETEVENT_TYPE_SCOPESTATISTICS = ROWSETEVENT_TYPE.SCOPESTATISTICS; // TODO: this type is limited to platform 'windows6.1' const IID_IRowsetEvents_Value = Guid.initString("1551aea5-5d66-4b11-86f5-d5634cb211b9"); pub const IID_IRowsetEvents = &IID_IRowsetEvents_Value; pub const IRowsetEvents = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, OnNewItem: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IRowsetEvents, itemID: ?*const PROPVARIANT, newItemState: ROWSETEVENT_ITEMSTATE, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IRowsetEvents, itemID: ?*const PROPVARIANT, newItemState: ROWSETEVENT_ITEMSTATE, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, OnChangedItem: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IRowsetEvents, itemID: ?*const PROPVARIANT, rowsetItemState: ROWSETEVENT_ITEMSTATE, changedItemState: ROWSETEVENT_ITEMSTATE, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IRowsetEvents, itemID: ?*const PROPVARIANT, rowsetItemState: ROWSETEVENT_ITEMSTATE, changedItemState: ROWSETEVENT_ITEMSTATE, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, OnDeletedItem: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IRowsetEvents, itemID: ?*const PROPVARIANT, deletedItemState: ROWSETEVENT_ITEMSTATE, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IRowsetEvents, itemID: ?*const PROPVARIANT, deletedItemState: ROWSETEVENT_ITEMSTATE, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, OnRowsetEvent: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IRowsetEvents, eventType: ROWSETEVENT_TYPE, eventData: ?*const PROPVARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IRowsetEvents, eventType: ROWSETEVENT_TYPE, eventData: ?*const PROPVARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRowsetEvents_OnNewItem(self: *const T, itemID: ?*const PROPVARIANT, newItemState: ROWSETEVENT_ITEMSTATE) HRESULT { return @as(*const IRowsetEvents.VTable, @ptrCast(self.vtable)).OnNewItem(@as(*const IRowsetEvents, @ptrCast(self)), itemID, newItemState); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRowsetEvents_OnChangedItem(self: *const T, itemID: ?*const PROPVARIANT, rowsetItemState: ROWSETEVENT_ITEMSTATE, changedItemState: ROWSETEVENT_ITEMSTATE) HRESULT { return @as(*const IRowsetEvents.VTable, @ptrCast(self.vtable)).OnChangedItem(@as(*const IRowsetEvents, @ptrCast(self)), itemID, rowsetItemState, changedItemState); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRowsetEvents_OnDeletedItem(self: *const T, itemID: ?*const PROPVARIANT, deletedItemState: ROWSETEVENT_ITEMSTATE) HRESULT { return @as(*const IRowsetEvents.VTable, @ptrCast(self.vtable)).OnDeletedItem(@as(*const IRowsetEvents, @ptrCast(self)), itemID, deletedItemState); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRowsetEvents_OnRowsetEvent(self: *const T, eventType: ROWSETEVENT_TYPE, eventData: ?*const PROPVARIANT) HRESULT { return @as(*const IRowsetEvents.VTable, @ptrCast(self.vtable)).OnRowsetEvent(@as(*const IRowsetEvents, @ptrCast(self)), eventType, eventData); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows5.1.2600' const IID_ISearchManager_Value = Guid.initString("ab310581-ac80-11d1-8df3-00c04fb6ef69"); pub const IID_ISearchManager = &IID_ISearchManager_Value; pub const ISearchManager = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, GetIndexerVersionStr: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ISearchManager, ppszVersionString: ?*?PWSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ISearchManager, ppszVersionString: ?*?PWSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetIndexerVersion: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ISearchManager, pdwMajor: ?*u32, pdwMinor: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ISearchManager, pdwMajor: ?*u32, pdwMinor: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetParameter: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ISearchManager, pszName: ?[*:0]const u16, ppValue: ?*?*PROPVARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ISearchManager, pszName: ?[*:0]const u16, ppValue: ?*?*PROPVARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetParameter: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ISearchManager, pszName: ?[*:0]const u16, pValue: ?*const PROPVARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ISearchManager, pszName: ?[*:0]const u16, pValue: ?*const PROPVARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_ProxyName: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ISearchManager, ppszProxyName: ?*?PWSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ISearchManager, ppszProxyName: ?*?PWSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_BypassList: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ISearchManager, ppszBypassList: ?*?PWSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ISearchManager, ppszBypassList: ?*?PWSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetProxy: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ISearchManager, sUseProxy: PROXY_ACCESS, fLocalByPassProxy: BOOL, dwPortNumber: u32, pszProxyName: ?[*:0]const u16, pszByPassList: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ISearchManager, sUseProxy: PROXY_ACCESS, fLocalByPassProxy: BOOL, dwPortNumber: u32, pszProxyName: ?[*:0]const u16, pszByPassList: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetCatalog: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ISearchManager, pszCatalog: ?[*:0]const u16, ppCatalogManager: ?*?*ISearchCatalogManager, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ISearchManager, pszCatalog: ?[*:0]const u16, ppCatalogManager: ?*?*ISearchCatalogManager, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_UserAgent: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ISearchManager, ppszUserAgent: ?*?PWSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ISearchManager, ppszUserAgent: ?*?PWSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_UserAgent: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ISearchManager, pszUserAgent: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ISearchManager, pszUserAgent: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_UseProxy: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ISearchManager, pUseProxy: ?*PROXY_ACCESS, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ISearchManager, pUseProxy: ?*PROXY_ACCESS, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_LocalBypass: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ISearchManager, pfLocalBypass: ?*BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ISearchManager, pfLocalBypass: ?*BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_PortNumber: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ISearchManager, pdwPortNumber: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ISearchManager, pdwPortNumber: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISearchManager_GetIndexerVersionStr(self: *const T, ppszVersionString: ?*?PWSTR) HRESULT { return @as(*const ISearchManager.VTable, @ptrCast(self.vtable)).GetIndexerVersionStr(@as(*const ISearchManager, @ptrCast(self)), ppszVersionString); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISearchManager_GetIndexerVersion(self: *const T, pdwMajor: ?*u32, pdwMinor: ?*u32) HRESULT { return @as(*const ISearchManager.VTable, @ptrCast(self.vtable)).GetIndexerVersion(@as(*const ISearchManager, @ptrCast(self)), pdwMajor, pdwMinor); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISearchManager_GetParameter(self: *const T, pszName: ?[*:0]const u16, ppValue: ?*?*PROPVARIANT) HRESULT { return @as(*const ISearchManager.VTable, @ptrCast(self.vtable)).GetParameter(@as(*const ISearchManager, @ptrCast(self)), pszName, ppValue); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISearchManager_SetParameter(self: *const T, pszName: ?[*:0]const u16, pValue: ?*const PROPVARIANT) HRESULT { return @as(*const ISearchManager.VTable, @ptrCast(self.vtable)).SetParameter(@as(*const ISearchManager, @ptrCast(self)), pszName, pValue); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISearchManager_get_ProxyName(self: *const T, ppszProxyName: ?*?PWSTR) HRESULT { return @as(*const ISearchManager.VTable, @ptrCast(self.vtable)).get_ProxyName(@as(*const ISearchManager, @ptrCast(self)), ppszProxyName); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISearchManager_get_BypassList(self: *const T, ppszBypassList: ?*?PWSTR) HRESULT { return @as(*const ISearchManager.VTable, @ptrCast(self.vtable)).get_BypassList(@as(*const ISearchManager, @ptrCast(self)), ppszBypassList); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISearchManager_SetProxy(self: *const T, sUseProxy: PROXY_ACCESS, fLocalByPassProxy: BOOL, dwPortNumber: u32, pszProxyName: ?[*:0]const u16, pszByPassList: ?[*:0]const u16) HRESULT { return @as(*const ISearchManager.VTable, @ptrCast(self.vtable)).SetProxy(@as(*const ISearchManager, @ptrCast(self)), sUseProxy, fLocalByPassProxy, dwPortNumber, pszProxyName, pszByPassList); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISearchManager_GetCatalog(self: *const T, pszCatalog: ?[*:0]const u16, ppCatalogManager: ?*?*ISearchCatalogManager) HRESULT { return @as(*const ISearchManager.VTable, @ptrCast(self.vtable)).GetCatalog(@as(*const ISearchManager, @ptrCast(self)), pszCatalog, ppCatalogManager); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISearchManager_get_UserAgent(self: *const T, ppszUserAgent: ?*?PWSTR) HRESULT { return @as(*const ISearchManager.VTable, @ptrCast(self.vtable)).get_UserAgent(@as(*const ISearchManager, @ptrCast(self)), ppszUserAgent); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISearchManager_put_UserAgent(self: *const T, pszUserAgent: ?[*:0]const u16) HRESULT { return @as(*const ISearchManager.VTable, @ptrCast(self.vtable)).put_UserAgent(@as(*const ISearchManager, @ptrCast(self)), pszUserAgent); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISearchManager_get_UseProxy(self: *const T, pUseProxy: ?*PROXY_ACCESS) HRESULT { return @as(*const ISearchManager.VTable, @ptrCast(self.vtable)).get_UseProxy(@as(*const ISearchManager, @ptrCast(self)), pUseProxy); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISearchManager_get_LocalBypass(self: *const T, pfLocalBypass: ?*BOOL) HRESULT { return @as(*const ISearchManager.VTable, @ptrCast(self.vtable)).get_LocalBypass(@as(*const ISearchManager, @ptrCast(self)), pfLocalBypass); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISearchManager_get_PortNumber(self: *const T, pdwPortNumber: ?*u32) HRESULT { return @as(*const ISearchManager.VTable, @ptrCast(self.vtable)).get_PortNumber(@as(*const ISearchManager, @ptrCast(self)), pdwPortNumber); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows8.0' const IID_ISearchManager2_Value = Guid.initString("dbab3f73-db19-4a79-bfc0-a61a93886ddf"); pub const IID_ISearchManager2 = &IID_ISearchManager2_Value; pub const ISearchManager2 = extern struct { pub const VTable = extern struct { base: ISearchManager.VTable, CreateCatalog: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ISearchManager2, pszCatalog: ?[*:0]const u16, ppCatalogManager: ?*?*ISearchCatalogManager, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ISearchManager2, pszCatalog: ?[*:0]const u16, ppCatalogManager: ?*?*ISearchCatalogManager, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, DeleteCatalog: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ISearchManager2, pszCatalog: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ISearchManager2, pszCatalog: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace ISearchManager.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISearchManager2_CreateCatalog(self: *const T, pszCatalog: ?[*:0]const u16, ppCatalogManager: ?*?*ISearchCatalogManager) HRESULT { return @as(*const ISearchManager2.VTable, @ptrCast(self.vtable)).CreateCatalog(@as(*const ISearchManager2, @ptrCast(self)), pszCatalog, ppCatalogManager); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISearchManager2_DeleteCatalog(self: *const T, pszCatalog: ?[*:0]const u16) HRESULT { return @as(*const ISearchManager2.VTable, @ptrCast(self.vtable)).DeleteCatalog(@as(*const ISearchManager2, @ptrCast(self)), pszCatalog); } }; } pub usingnamespace MethodMixin(@This()); }; const CLSID_CSearchLanguageSupport_Value = Guid.initString("6a68cc80-4337-4dbc-bd27-fbfb1053820b"); pub const CLSID_CSearchLanguageSupport = &CLSID_CSearchLanguageSupport_Value; // TODO: this type is limited to platform 'windows5.1.2600' const IID_ISearchLanguageSupport_Value = Guid.initString("24c3cbaa-ebc1-491a-9ef1-9f6d8deb1b8f"); pub const IID_ISearchLanguageSupport = &IID_ISearchLanguageSupport_Value; pub const ISearchLanguageSupport = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, SetDiacriticSensitivity: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ISearchLanguageSupport, fDiacriticSensitive: BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ISearchLanguageSupport, fDiacriticSensitive: BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetDiacriticSensitivity: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ISearchLanguageSupport, pfDiacriticSensitive: ?*BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ISearchLanguageSupport, pfDiacriticSensitive: ?*BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, LoadWordBreaker: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ISearchLanguageSupport, lcid: u32, riid: ?*const Guid, ppWordBreaker: ?*?*anyopaque, pLcidUsed: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ISearchLanguageSupport, lcid: u32, riid: ?*const Guid, ppWordBreaker: ?*?*anyopaque, pLcidUsed: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, LoadStemmer: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ISearchLanguageSupport, lcid: u32, riid: ?*const Guid, ppStemmer: ?*?*anyopaque, pLcidUsed: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ISearchLanguageSupport, lcid: u32, riid: ?*const Guid, ppStemmer: ?*?*anyopaque, pLcidUsed: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, IsPrefixNormalized: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ISearchLanguageSupport, pwcsQueryToken: [*:0]const u16, cwcQueryToken: u32, pwcsDocumentToken: [*:0]const u16, cwcDocumentToken: u32, pulPrefixLength: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ISearchLanguageSupport, pwcsQueryToken: [*:0]const u16, cwcQueryToken: u32, pwcsDocumentToken: [*:0]const u16, cwcDocumentToken: u32, pulPrefixLength: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISearchLanguageSupport_SetDiacriticSensitivity(self: *const T, fDiacriticSensitive: BOOL) HRESULT { return @as(*const ISearchLanguageSupport.VTable, @ptrCast(self.vtable)).SetDiacriticSensitivity(@as(*const ISearchLanguageSupport, @ptrCast(self)), fDiacriticSensitive); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISearchLanguageSupport_GetDiacriticSensitivity(self: *const T, pfDiacriticSensitive: ?*BOOL) HRESULT { return @as(*const ISearchLanguageSupport.VTable, @ptrCast(self.vtable)).GetDiacriticSensitivity(@as(*const ISearchLanguageSupport, @ptrCast(self)), pfDiacriticSensitive); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISearchLanguageSupport_LoadWordBreaker(self: *const T, lcid: u32, riid: ?*const Guid, ppWordBreaker: ?*?*anyopaque, pLcidUsed: ?*u32) HRESULT { return @as(*const ISearchLanguageSupport.VTable, @ptrCast(self.vtable)).LoadWordBreaker(@as(*const ISearchLanguageSupport, @ptrCast(self)), lcid, riid, ppWordBreaker, pLcidUsed); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISearchLanguageSupport_LoadStemmer(self: *const T, lcid: u32, riid: ?*const Guid, ppStemmer: ?*?*anyopaque, pLcidUsed: ?*u32) HRESULT { return @as(*const ISearchLanguageSupport.VTable, @ptrCast(self.vtable)).LoadStemmer(@as(*const ISearchLanguageSupport, @ptrCast(self)), lcid, riid, ppStemmer, pLcidUsed); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISearchLanguageSupport_IsPrefixNormalized(self: *const T, pwcsQueryToken: [*:0]const u16, cwcQueryToken: u32, pwcsDocumentToken: [*:0]const u16, cwcDocumentToken: u32, pulPrefixLength: ?*u32) HRESULT { return @as(*const ISearchLanguageSupport.VTable, @ptrCast(self.vtable)).IsPrefixNormalized(@as(*const ISearchLanguageSupport, @ptrCast(self)), pwcsQueryToken, cwcQueryToken, pwcsDocumentToken, cwcDocumentToken, pulPrefixLength); } }; } pub usingnamespace MethodMixin(@This()); }; const CLSID_SubscriptionMgr_Value = Guid.initString("abbe31d0-6dae-11d0-beca-00c04fd940be"); pub const CLSID_SubscriptionMgr = &CLSID_SubscriptionMgr_Value; pub const ITEMPROP = extern struct { variantValue: VARIANT, pwszName: ?PWSTR, }; const IID_IEnumItemProperties_Value = Guid.initString("f72c8d96-6dbd-11d1-a1e8-00c04fc2fbe1"); pub const IID_IEnumItemProperties = &IID_IEnumItemProperties_Value; pub const IEnumItemProperties = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, Next: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IEnumItemProperties, celt: u32, rgelt: [*]ITEMPROP, pceltFetched: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IEnumItemProperties, celt: u32, rgelt: [*]ITEMPROP, pceltFetched: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Skip: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IEnumItemProperties, celt: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IEnumItemProperties, celt: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Reset: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IEnumItemProperties, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IEnumItemProperties, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Clone: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IEnumItemProperties, ppenum: ?*?*IEnumItemProperties, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IEnumItemProperties, ppenum: ?*?*IEnumItemProperties, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetCount: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IEnumItemProperties, pnCount: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IEnumItemProperties, pnCount: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IEnumItemProperties_Next(self: *const T, celt: u32, rgelt: [*]ITEMPROP, pceltFetched: ?*u32) HRESULT { return @as(*const IEnumItemProperties.VTable, @ptrCast(self.vtable)).Next(@as(*const IEnumItemProperties, @ptrCast(self)), celt, rgelt, pceltFetched); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IEnumItemProperties_Skip(self: *const T, celt: u32) HRESULT { return @as(*const IEnumItemProperties.VTable, @ptrCast(self.vtable)).Skip(@as(*const IEnumItemProperties, @ptrCast(self)), celt); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IEnumItemProperties_Reset(self: *const T) HRESULT { return @as(*const IEnumItemProperties.VTable, @ptrCast(self.vtable)).Reset(@as(*const IEnumItemProperties, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IEnumItemProperties_Clone(self: *const T, ppenum: ?*?*IEnumItemProperties) HRESULT { return @as(*const IEnumItemProperties.VTable, @ptrCast(self.vtable)).Clone(@as(*const IEnumItemProperties, @ptrCast(self)), ppenum); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IEnumItemProperties_GetCount(self: *const T, pnCount: ?*u32) HRESULT { return @as(*const IEnumItemProperties.VTable, @ptrCast(self.vtable)).GetCount(@as(*const IEnumItemProperties, @ptrCast(self)), pnCount); } }; } pub usingnamespace MethodMixin(@This()); }; pub const SUBSCRIPTIONITEMINFO = extern struct { cbSize: u32, dwFlags: u32, dwPriority: u32, ScheduleGroup: Guid, clsidAgent: Guid, }; const IID_ISubscriptionItem_Value = Guid.initString("a97559f8-6c4a-11d1-a1e8-00c04fc2fbe1"); pub const IID_ISubscriptionItem = &IID_ISubscriptionItem_Value; pub const ISubscriptionItem = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, GetCookie: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ISubscriptionItem, pCookie: ?*Guid, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ISubscriptionItem, pCookie: ?*Guid, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetSubscriptionItemInfo: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ISubscriptionItem, pSubscriptionItemInfo: ?*SUBSCRIPTIONITEMINFO, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ISubscriptionItem, pSubscriptionItemInfo: ?*SUBSCRIPTIONITEMINFO, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetSubscriptionItemInfo: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ISubscriptionItem, pSubscriptionItemInfo: ?*const SUBSCRIPTIONITEMINFO, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ISubscriptionItem, pSubscriptionItemInfo: ?*const SUBSCRIPTIONITEMINFO, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, ReadProperties: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ISubscriptionItem, nCount: u32, rgwszName: [*]const ?[*:0]const u16, rgValue: [*]VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ISubscriptionItem, nCount: u32, rgwszName: [*]const ?[*:0]const u16, rgValue: [*]VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, WriteProperties: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ISubscriptionItem, nCount: u32, rgwszName: [*]const ?[*:0]const u16, rgValue: [*]const VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ISubscriptionItem, nCount: u32, rgwszName: [*]const ?[*:0]const u16, rgValue: [*]const VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, EnumProperties: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ISubscriptionItem, ppEnumItemProperties: ?*?*IEnumItemProperties, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ISubscriptionItem, ppEnumItemProperties: ?*?*IEnumItemProperties, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, NotifyChanged: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ISubscriptionItem, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ISubscriptionItem, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISubscriptionItem_GetCookie(self: *const T, pCookie: ?*Guid) HRESULT { return @as(*const ISubscriptionItem.VTable, @ptrCast(self.vtable)).GetCookie(@as(*const ISubscriptionItem, @ptrCast(self)), pCookie); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISubscriptionItem_GetSubscriptionItemInfo(self: *const T, pSubscriptionItemInfo: ?*SUBSCRIPTIONITEMINFO) HRESULT { return @as(*const ISubscriptionItem.VTable, @ptrCast(self.vtable)).GetSubscriptionItemInfo(@as(*const ISubscriptionItem, @ptrCast(self)), pSubscriptionItemInfo); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISubscriptionItem_SetSubscriptionItemInfo(self: *const T, pSubscriptionItemInfo: ?*const SUBSCRIPTIONITEMINFO) HRESULT { return @as(*const ISubscriptionItem.VTable, @ptrCast(self.vtable)).SetSubscriptionItemInfo(@as(*const ISubscriptionItem, @ptrCast(self)), pSubscriptionItemInfo); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISubscriptionItem_ReadProperties(self: *const T, nCount: u32, rgwszName: [*]const ?[*:0]const u16, rgValue: [*]VARIANT) HRESULT { return @as(*const ISubscriptionItem.VTable, @ptrCast(self.vtable)).ReadProperties(@as(*const ISubscriptionItem, @ptrCast(self)), nCount, rgwszName, rgValue); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISubscriptionItem_WriteProperties(self: *const T, nCount: u32, rgwszName: [*]const ?[*:0]const u16, rgValue: [*]const VARIANT) HRESULT { return @as(*const ISubscriptionItem.VTable, @ptrCast(self.vtable)).WriteProperties(@as(*const ISubscriptionItem, @ptrCast(self)), nCount, rgwszName, rgValue); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISubscriptionItem_EnumProperties(self: *const T, ppEnumItemProperties: ?*?*IEnumItemProperties) HRESULT { return @as(*const ISubscriptionItem.VTable, @ptrCast(self.vtable)).EnumProperties(@as(*const ISubscriptionItem, @ptrCast(self)), ppEnumItemProperties); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISubscriptionItem_NotifyChanged(self: *const T) HRESULT { return @as(*const ISubscriptionItem.VTable, @ptrCast(self.vtable)).NotifyChanged(@as(*const ISubscriptionItem, @ptrCast(self))); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IEnumSubscription_Value = Guid.initString("f72c8d97-6dbd-11d1-a1e8-00c04fc2fbe1"); pub const IID_IEnumSubscription = &IID_IEnumSubscription_Value; pub const IEnumSubscription = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, Next: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IEnumSubscription, celt: u32, rgelt: [*]Guid, pceltFetched: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IEnumSubscription, celt: u32, rgelt: [*]Guid, pceltFetched: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Skip: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IEnumSubscription, celt: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IEnumSubscription, celt: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Reset: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IEnumSubscription, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IEnumSubscription, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Clone: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IEnumSubscription, ppenum: ?*?*IEnumSubscription, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IEnumSubscription, ppenum: ?*?*IEnumSubscription, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetCount: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IEnumSubscription, pnCount: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IEnumSubscription, pnCount: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IEnumSubscription_Next(self: *const T, celt: u32, rgelt: [*]Guid, pceltFetched: ?*u32) HRESULT { return @as(*const IEnumSubscription.VTable, @ptrCast(self.vtable)).Next(@as(*const IEnumSubscription, @ptrCast(self)), celt, rgelt, pceltFetched); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IEnumSubscription_Skip(self: *const T, celt: u32) HRESULT { return @as(*const IEnumSubscription.VTable, @ptrCast(self.vtable)).Skip(@as(*const IEnumSubscription, @ptrCast(self)), celt); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IEnumSubscription_Reset(self: *const T) HRESULT { return @as(*const IEnumSubscription.VTable, @ptrCast(self.vtable)).Reset(@as(*const IEnumSubscription, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IEnumSubscription_Clone(self: *const T, ppenum: ?*?*IEnumSubscription) HRESULT { return @as(*const IEnumSubscription.VTable, @ptrCast(self.vtable)).Clone(@as(*const IEnumSubscription, @ptrCast(self)), ppenum); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IEnumSubscription_GetCount(self: *const T, pnCount: ?*u32) HRESULT { return @as(*const IEnumSubscription.VTable, @ptrCast(self.vtable)).GetCount(@as(*const IEnumSubscription, @ptrCast(self)), pnCount); } }; } pub usingnamespace MethodMixin(@This()); }; pub const SUBSCRIPTIONTYPE = enum(i32) { URL = 0, CHANNEL = 1, DESKTOPURL = 2, EXTERNAL = 3, DESKTOPCHANNEL = 4, }; pub const SUBSTYPE_URL = SUBSCRIPTIONTYPE.URL; pub const SUBSTYPE_CHANNEL = SUBSCRIPTIONTYPE.CHANNEL; pub const SUBSTYPE_DESKTOPURL = SUBSCRIPTIONTYPE.DESKTOPURL; pub const SUBSTYPE_EXTERNAL = SUBSCRIPTIONTYPE.EXTERNAL; pub const SUBSTYPE_DESKTOPCHANNEL = SUBSCRIPTIONTYPE.DESKTOPCHANNEL; pub const SUBSCRIPTIONINFOFLAGS = enum(i32) { SCHEDULE = 1, RECURSE = 2, WEBCRAWL = 4, MAILNOT = 8, MAXSIZEKB = 16, USER = 32, PASSWORD = 64, TASKFLAGS = 256, GLEAM = 512, CHANGESONLY = 1024, CHANNELFLAGS = 2048, FRIENDLYNAME = 8192, NEEDPASSWORD = 16384, TYPE = 32768, }; pub const SUBSINFO_SCHEDULE = SUBSCRIPTIONINFOFLAGS.SCHEDULE; pub const SUBSINFO_RECURSE = SUBSCRIPTIONINFOFLAGS.RECURSE; pub const SUBSINFO_WEBCRAWL = SUBSCRIPTIONINFOFLAGS.WEBCRAWL; pub const SUBSINFO_MAILNOT = SUBSCRIPTIONINFOFLAGS.MAILNOT; pub const SUBSINFO_MAXSIZEKB = SUBSCRIPTIONINFOFLAGS.MAXSIZEKB; pub const SUBSINFO_USER = SUBSCRIPTIONINFOFLAGS.USER; pub const SUBSINFO_PASSWORD = SUBSCRIPTIONINFOFLAGS.PASSWORD; pub const SUBSINFO_TASKFLAGS = SUBSCRIPTIONINFOFLAGS.TASKFLAGS; pub const SUBSINFO_GLEAM = SUBSCRIPTIONINFOFLAGS.GLEAM; pub const SUBSINFO_CHANGESONLY = SUBSCRIPTIONINFOFLAGS.CHANGESONLY; pub const SUBSINFO_CHANNELFLAGS = SUBSCRIPTIONINFOFLAGS.CHANNELFLAGS; pub const SUBSINFO_FRIENDLYNAME = SUBSCRIPTIONINFOFLAGS.FRIENDLYNAME; pub const SUBSINFO_NEEDPASSWORD = SUBSCRIPTIONINFOFLAGS.NEEDPASSWORD; pub const SUBSINFO_TYPE = SUBSCRIPTIONINFOFLAGS.TYPE; pub const CREATESUBSCRIPTIONFLAGS = enum(i32) { ADDTOFAVORITES = 1, FROMFAVORITES = 2, NOUI = 4, NOSAVE = 8, SOFTWAREUPDATE = 16, }; pub const CREATESUBS_ADDTOFAVORITES = CREATESUBSCRIPTIONFLAGS.ADDTOFAVORITES; pub const CREATESUBS_FROMFAVORITES = CREATESUBSCRIPTIONFLAGS.FROMFAVORITES; pub const CREATESUBS_NOUI = CREATESUBSCRIPTIONFLAGS.NOUI; pub const CREATESUBS_NOSAVE = CREATESUBSCRIPTIONFLAGS.NOSAVE; pub const CREATESUBS_SOFTWAREUPDATE = CREATESUBSCRIPTIONFLAGS.SOFTWAREUPDATE; pub const SUBSCRIPTIONSCHEDULE = enum(i32) { AUTO = 0, DAILY = 1, WEEKLY = 2, CUSTOM = 3, MANUAL = 4, }; pub const SUBSSCHED_AUTO = SUBSCRIPTIONSCHEDULE.AUTO; pub const SUBSSCHED_DAILY = SUBSCRIPTIONSCHEDULE.DAILY; pub const SUBSSCHED_WEEKLY = SUBSCRIPTIONSCHEDULE.WEEKLY; pub const SUBSSCHED_CUSTOM = SUBSCRIPTIONSCHEDULE.CUSTOM; pub const SUBSSCHED_MANUAL = SUBSCRIPTIONSCHEDULE.MANUAL; pub const SUBSCRIPTIONINFO = extern struct { cbSize: u32, fUpdateFlags: u32, schedule: SUBSCRIPTIONSCHEDULE, customGroupCookie: Guid, pTrigger: ?*anyopaque, dwRecurseLevels: u32, fWebcrawlerFlags: u32, bMailNotification: BOOL, bGleam: BOOL, bChangesOnly: BOOL, bNeedPassword: BOOL, fChannelFlags: u32, bstrUserName: ?BSTR, bstrPassword: ?BSTR, bstrFriendlyName: ?BSTR, dwMaxSizeKB: u32, subType: SUBSCRIPTIONTYPE, fTaskFlags: u32, dwReserved: u32, }; const IID_ISubscriptionMgr_Value = Guid.initString("085fb2c0-0df8-11d1-8f4b-00a0c905413f"); pub const IID_ISubscriptionMgr = &IID_ISubscriptionMgr_Value; pub const ISubscriptionMgr = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, DeleteSubscription: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ISubscriptionMgr, pwszURL: ?[*:0]const u16, hwnd: ?HWND, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ISubscriptionMgr, pwszURL: ?[*:0]const u16, hwnd: ?HWND, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, UpdateSubscription: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ISubscriptionMgr, pwszURL: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ISubscriptionMgr, pwszURL: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, UpdateAll: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ISubscriptionMgr, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ISubscriptionMgr, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, IsSubscribed: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ISubscriptionMgr, pwszURL: ?[*:0]const u16, pfSubscribed: ?*BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ISubscriptionMgr, pwszURL: ?[*:0]const u16, pfSubscribed: ?*BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetSubscriptionInfo: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ISubscriptionMgr, pwszURL: ?[*:0]const u16, pInfo: ?*SUBSCRIPTIONINFO, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ISubscriptionMgr, pwszURL: ?[*:0]const u16, pInfo: ?*SUBSCRIPTIONINFO, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetDefaultInfo: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ISubscriptionMgr, subType: SUBSCRIPTIONTYPE, pInfo: ?*SUBSCRIPTIONINFO, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ISubscriptionMgr, subType: SUBSCRIPTIONTYPE, pInfo: ?*SUBSCRIPTIONINFO, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, ShowSubscriptionProperties: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ISubscriptionMgr, pwszURL: ?[*:0]const u16, hwnd: ?HWND, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ISubscriptionMgr, pwszURL: ?[*:0]const u16, hwnd: ?HWND, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, CreateSubscription: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ISubscriptionMgr, hwnd: ?HWND, pwszURL: ?[*:0]const u16, pwszFriendlyName: ?[*:0]const u16, dwFlags: u32, subsType: SUBSCRIPTIONTYPE, pInfo: ?*SUBSCRIPTIONINFO, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ISubscriptionMgr, hwnd: ?HWND, pwszURL: ?[*:0]const u16, pwszFriendlyName: ?[*:0]const u16, dwFlags: u32, subsType: SUBSCRIPTIONTYPE, pInfo: ?*SUBSCRIPTIONINFO, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISubscriptionMgr_DeleteSubscription(self: *const T, pwszURL: ?[*:0]const u16, hwnd: ?HWND) HRESULT { return @as(*const ISubscriptionMgr.VTable, @ptrCast(self.vtable)).DeleteSubscription(@as(*const ISubscriptionMgr, @ptrCast(self)), pwszURL, hwnd); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISubscriptionMgr_UpdateSubscription(self: *const T, pwszURL: ?[*:0]const u16) HRESULT { return @as(*const ISubscriptionMgr.VTable, @ptrCast(self.vtable)).UpdateSubscription(@as(*const ISubscriptionMgr, @ptrCast(self)), pwszURL); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISubscriptionMgr_UpdateAll(self: *const T) HRESULT { return @as(*const ISubscriptionMgr.VTable, @ptrCast(self.vtable)).UpdateAll(@as(*const ISubscriptionMgr, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISubscriptionMgr_IsSubscribed(self: *const T, pwszURL: ?[*:0]const u16, pfSubscribed: ?*BOOL) HRESULT { return @as(*const ISubscriptionMgr.VTable, @ptrCast(self.vtable)).IsSubscribed(@as(*const ISubscriptionMgr, @ptrCast(self)), pwszURL, pfSubscribed); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISubscriptionMgr_GetSubscriptionInfo(self: *const T, pwszURL: ?[*:0]const u16, pInfo: ?*SUBSCRIPTIONINFO) HRESULT { return @as(*const ISubscriptionMgr.VTable, @ptrCast(self.vtable)).GetSubscriptionInfo(@as(*const ISubscriptionMgr, @ptrCast(self)), pwszURL, pInfo); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISubscriptionMgr_GetDefaultInfo(self: *const T, subType: SUBSCRIPTIONTYPE, pInfo: ?*SUBSCRIPTIONINFO) HRESULT { return @as(*const ISubscriptionMgr.VTable, @ptrCast(self.vtable)).GetDefaultInfo(@as(*const ISubscriptionMgr, @ptrCast(self)), subType, pInfo); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISubscriptionMgr_ShowSubscriptionProperties(self: *const T, pwszURL: ?[*:0]const u16, hwnd: ?HWND) HRESULT { return @as(*const ISubscriptionMgr.VTable, @ptrCast(self.vtable)).ShowSubscriptionProperties(@as(*const ISubscriptionMgr, @ptrCast(self)), pwszURL, hwnd); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISubscriptionMgr_CreateSubscription(self: *const T, hwnd: ?HWND, pwszURL: ?[*:0]const u16, pwszFriendlyName: ?[*:0]const u16, dwFlags: u32, subsType: SUBSCRIPTIONTYPE, pInfo: ?*SUBSCRIPTIONINFO) HRESULT { return @as(*const ISubscriptionMgr.VTable, @ptrCast(self.vtable)).CreateSubscription(@as(*const ISubscriptionMgr, @ptrCast(self)), hwnd, pwszURL, pwszFriendlyName, dwFlags, subsType, pInfo); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_ISubscriptionMgr2_Value = Guid.initString("614bc270-aedf-11d1-a1f9-00c04fc2fbe1"); pub const IID_ISubscriptionMgr2 = &IID_ISubscriptionMgr2_Value; pub const ISubscriptionMgr2 = extern struct { pub const VTable = extern struct { base: ISubscriptionMgr.VTable, GetItemFromURL: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ISubscriptionMgr2, pwszURL: ?[*:0]const u16, ppSubscriptionItem: ?*?*ISubscriptionItem, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ISubscriptionMgr2, pwszURL: ?[*:0]const u16, ppSubscriptionItem: ?*?*ISubscriptionItem, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetItemFromCookie: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ISubscriptionMgr2, pSubscriptionCookie: ?*const Guid, ppSubscriptionItem: ?*?*ISubscriptionItem, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ISubscriptionMgr2, pSubscriptionCookie: ?*const Guid, ppSubscriptionItem: ?*?*ISubscriptionItem, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetSubscriptionRunState: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ISubscriptionMgr2, dwNumCookies: u32, pCookies: [*]const Guid, pdwRunState: [*]u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ISubscriptionMgr2, dwNumCookies: u32, pCookies: [*]const Guid, pdwRunState: [*]u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, EnumSubscriptions: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ISubscriptionMgr2, dwFlags: u32, ppEnumSubscriptions: ?*?*IEnumSubscription, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ISubscriptionMgr2, dwFlags: u32, ppEnumSubscriptions: ?*?*IEnumSubscription, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, UpdateItems: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ISubscriptionMgr2, dwFlags: u32, dwNumCookies: u32, pCookies: [*]const Guid, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ISubscriptionMgr2, dwFlags: u32, dwNumCookies: u32, pCookies: [*]const Guid, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, AbortItems: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ISubscriptionMgr2, dwNumCookies: u32, pCookies: [*]const Guid, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ISubscriptionMgr2, dwNumCookies: u32, pCookies: [*]const Guid, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, AbortAll: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ISubscriptionMgr2, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ISubscriptionMgr2, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace ISubscriptionMgr.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISubscriptionMgr2_GetItemFromURL(self: *const T, pwszURL: ?[*:0]const u16, ppSubscriptionItem: ?*?*ISubscriptionItem) HRESULT { return @as(*const ISubscriptionMgr2.VTable, @ptrCast(self.vtable)).GetItemFromURL(@as(*const ISubscriptionMgr2, @ptrCast(self)), pwszURL, ppSubscriptionItem); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISubscriptionMgr2_GetItemFromCookie(self: *const T, pSubscriptionCookie: ?*const Guid, ppSubscriptionItem: ?*?*ISubscriptionItem) HRESULT { return @as(*const ISubscriptionMgr2.VTable, @ptrCast(self.vtable)).GetItemFromCookie(@as(*const ISubscriptionMgr2, @ptrCast(self)), pSubscriptionCookie, ppSubscriptionItem); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISubscriptionMgr2_GetSubscriptionRunState(self: *const T, dwNumCookies: u32, pCookies: [*]const Guid, pdwRunState: [*]u32) HRESULT { return @as(*const ISubscriptionMgr2.VTable, @ptrCast(self.vtable)).GetSubscriptionRunState(@as(*const ISubscriptionMgr2, @ptrCast(self)), dwNumCookies, pCookies, pdwRunState); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISubscriptionMgr2_EnumSubscriptions(self: *const T, dwFlags: u32, ppEnumSubscriptions: ?*?*IEnumSubscription) HRESULT { return @as(*const ISubscriptionMgr2.VTable, @ptrCast(self.vtable)).EnumSubscriptions(@as(*const ISubscriptionMgr2, @ptrCast(self)), dwFlags, ppEnumSubscriptions); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISubscriptionMgr2_UpdateItems(self: *const T, dwFlags: u32, dwNumCookies: u32, pCookies: [*]const Guid) HRESULT { return @as(*const ISubscriptionMgr2.VTable, @ptrCast(self.vtable)).UpdateItems(@as(*const ISubscriptionMgr2, @ptrCast(self)), dwFlags, dwNumCookies, pCookies); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISubscriptionMgr2_AbortItems(self: *const T, dwNumCookies: u32, pCookies: [*]const Guid) HRESULT { return @as(*const ISubscriptionMgr2.VTable, @ptrCast(self.vtable)).AbortItems(@as(*const ISubscriptionMgr2, @ptrCast(self)), dwNumCookies, pCookies); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISubscriptionMgr2_AbortAll(self: *const T) HRESULT { return @as(*const ISubscriptionMgr2.VTable, @ptrCast(self.vtable)).AbortAll(@as(*const ISubscriptionMgr2, @ptrCast(self))); } }; } pub usingnamespace MethodMixin(@This()); }; pub const DELIVERY_AGENT_FLAGS = enum(i32) { NO_BROADCAST = 4, NO_RESTRICTIONS = 8, SILENT_DIAL = 16, }; pub const DELIVERY_AGENT_FLAG_NO_BROADCAST = DELIVERY_AGENT_FLAGS.NO_BROADCAST; pub const DELIVERY_AGENT_FLAG_NO_RESTRICTIONS = DELIVERY_AGENT_FLAGS.NO_RESTRICTIONS; pub const DELIVERY_AGENT_FLAG_SILENT_DIAL = DELIVERY_AGENT_FLAGS.SILENT_DIAL; pub const WEBCRAWL_RECURSEFLAGS = enum(i32) { DONT_MAKE_STICKY = 1, GET_IMAGES = 2, GET_VIDEOS = 4, GET_BGSOUNDS = 8, GET_CONTROLS = 16, LINKS_ELSEWHERE = 32, IGNORE_ROBOTSTXT = 128, ONLY_LINKS_TO_HTML = 256, }; pub const WEBCRAWL_DONT_MAKE_STICKY = WEBCRAWL_RECURSEFLAGS.DONT_MAKE_STICKY; pub const WEBCRAWL_GET_IMAGES = WEBCRAWL_RECURSEFLAGS.GET_IMAGES; pub const WEBCRAWL_GET_VIDEOS = WEBCRAWL_RECURSEFLAGS.GET_VIDEOS; pub const WEBCRAWL_GET_BGSOUNDS = WEBCRAWL_RECURSEFLAGS.GET_BGSOUNDS; pub const WEBCRAWL_GET_CONTROLS = WEBCRAWL_RECURSEFLAGS.GET_CONTROLS; pub const WEBCRAWL_LINKS_ELSEWHERE = WEBCRAWL_RECURSEFLAGS.LINKS_ELSEWHERE; pub const WEBCRAWL_IGNORE_ROBOTSTXT = WEBCRAWL_RECURSEFLAGS.IGNORE_ROBOTSTXT; pub const WEBCRAWL_ONLY_LINKS_TO_HTML = WEBCRAWL_RECURSEFLAGS.ONLY_LINKS_TO_HTML; pub const CHANNEL_AGENT_FLAGS = enum(i32) { DYNAMIC_SCHEDULE = 1, PRECACHE_SOME = 2, PRECACHE_ALL = 4, PRECACHE_SCRNSAVER = 8, }; pub const CHANNEL_AGENT_DYNAMIC_SCHEDULE = CHANNEL_AGENT_FLAGS.DYNAMIC_SCHEDULE; pub const CHANNEL_AGENT_PRECACHE_SOME = CHANNEL_AGENT_FLAGS.PRECACHE_SOME; pub const CHANNEL_AGENT_PRECACHE_ALL = CHANNEL_AGENT_FLAGS.PRECACHE_ALL; pub const CHANNEL_AGENT_PRECACHE_SCRNSAVER = CHANNEL_AGENT_FLAGS.PRECACHE_SCRNSAVER; pub const DBDATACONVERTENUM = enum(i32) { DEFAULT = 0, SETDATABEHAVIOR = 1, LENGTHFROMNTS = 2, DSTISFIXEDLENGTH = 4, DECIMALSCALE = 8, }; pub const DBDATACONVERT_DEFAULT = DBDATACONVERTENUM.DEFAULT; pub const DBDATACONVERT_SETDATABEHAVIOR = DBDATACONVERTENUM.SETDATABEHAVIOR; pub const DBDATACONVERT_LENGTHFROMNTS = DBDATACONVERTENUM.LENGTHFROMNTS; pub const DBDATACONVERT_DSTISFIXEDLENGTH = DBDATACONVERTENUM.DSTISFIXEDLENGTH; pub const DBDATACONVERT_DECIMALSCALE = DBDATACONVERTENUM.DECIMALSCALE; const IID_IDataConvert_Value = Guid.initString("0c733a8d-2a1c-11ce-ade5-00aa0044773d"); pub const IID_IDataConvert = &IID_IDataConvert_Value; pub const IDataConvert = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, DataConvert: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDataConvert, wSrcType: u16, wDstType: u16, cbSrcLength: usize, pcbDstLength: ?*usize, // TODO: what to do with BytesParamIndex 2? pSrc: ?*anyopaque, pDst: ?*anyopaque, cbDstMaxLength: usize, dbsSrcStatus: u32, pdbsStatus: ?*u32, bPrecision: u8, bScale: u8, dwFlags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDataConvert, wSrcType: u16, wDstType: u16, cbSrcLength: usize, pcbDstLength: ?*usize, // TODO: what to do with BytesParamIndex 2? pSrc: ?*anyopaque, pDst: ?*anyopaque, cbDstMaxLength: usize, dbsSrcStatus: u32, pdbsStatus: ?*u32, bPrecision: u8, bScale: u8, dwFlags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, CanConvert: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDataConvert, wSrcType: u16, wDstType: u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDataConvert, wSrcType: u16, wDstType: u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetConversionSize: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDataConvert, wSrcType: u16, wDstType: u16, pcbSrcLength: ?*usize, pcbDstLength: ?*usize, // TODO: what to do with BytesParamIndex 2? pSrc: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDataConvert, wSrcType: u16, wDstType: u16, pcbSrcLength: ?*usize, pcbDstLength: ?*usize, // TODO: what to do with BytesParamIndex 2? pSrc: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDataConvert_DataConvert(self: *const T, wSrcType: u16, wDstType: u16, cbSrcLength: usize, pcbDstLength: ?*usize, pSrc: ?*anyopaque, pDst: ?*anyopaque, cbDstMaxLength: usize, dbsSrcStatus: u32, pdbsStatus: ?*u32, bPrecision: u8, bScale: u8, dwFlags: u32) HRESULT { return @as(*const IDataConvert.VTable, @ptrCast(self.vtable)).DataConvert(@as(*const IDataConvert, @ptrCast(self)), wSrcType, wDstType, cbSrcLength, pcbDstLength, pSrc, pDst, cbDstMaxLength, dbsSrcStatus, pdbsStatus, bPrecision, bScale, dwFlags); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDataConvert_CanConvert(self: *const T, wSrcType: u16, wDstType: u16) HRESULT { return @as(*const IDataConvert.VTable, @ptrCast(self.vtable)).CanConvert(@as(*const IDataConvert, @ptrCast(self)), wSrcType, wDstType); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDataConvert_GetConversionSize(self: *const T, wSrcType: u16, wDstType: u16, pcbSrcLength: ?*usize, pcbDstLength: ?*usize, pSrc: ?*anyopaque) HRESULT { return @as(*const IDataConvert.VTable, @ptrCast(self.vtable)).GetConversionSize(@as(*const IDataConvert, @ptrCast(self)), wSrcType, wDstType, pcbSrcLength, pcbDstLength, pSrc); } }; } pub usingnamespace MethodMixin(@This()); }; pub const DCINFOTYPEENUM = enum(i32) { N = 1, }; pub const DCINFOTYPE_VERSION = DCINFOTYPEENUM.N; pub const DCINFO = extern struct { eInfoType: u32, vData: VARIANT, }; const IID_IDCInfo_Value = Guid.initString("0c733a9c-2a1c-11ce-ade5-00aa0044773d"); pub const IID_IDCInfo = &IID_IDCInfo_Value; pub const IDCInfo = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, GetInfo: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDCInfo, cInfo: u32, rgeInfoType: [*]u32, prgInfo: [*]?*DCINFO, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDCInfo, cInfo: u32, rgeInfoType: [*]u32, prgInfo: [*]?*DCINFO, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetInfo: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDCInfo, cInfo: u32, rgInfo: [*]DCINFO, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDCInfo, cInfo: u32, rgInfo: [*]DCINFO, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDCInfo_GetInfo(self: *const T, cInfo: u32, rgeInfoType: [*]u32, prgInfo: [*]?*DCINFO) HRESULT { return @as(*const IDCInfo.VTable, @ptrCast(self.vtable)).GetInfo(@as(*const IDCInfo, @ptrCast(self)), cInfo, rgeInfoType, prgInfo); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDCInfo_SetInfo(self: *const T, cInfo: u32, rgInfo: [*]DCINFO) HRESULT { return @as(*const IDCInfo.VTable, @ptrCast(self.vtable)).SetInfo(@as(*const IDCInfo, @ptrCast(self)), cInfo, rgInfo); } }; } pub usingnamespace MethodMixin(@This()); }; const CLSID_MSDAORA_Value = Guid.initString("e8cc4cbe-fdff-11d0-b865-00a0c9081c1d"); pub const CLSID_MSDAORA = &CLSID_MSDAORA_Value; const CLSID_MSDAORA_ERROR_Value = Guid.initString("e8cc4cbf-fdff-11d0-b865-00a0c9081c1d"); pub const CLSID_MSDAORA_ERROR = &CLSID_MSDAORA_ERROR_Value; const CLSID_MSDAORA8_Value = Guid.initString("7f06a373-dd6a-43db-b4e0-1fc121e5e62b"); pub const CLSID_MSDAORA8 = &CLSID_MSDAORA8_Value; const CLSID_MSDAORA8_ERROR_Value = Guid.initString("7f06a374-dd6a-43db-b4e0-1fc121e5e62b"); pub const CLSID_MSDAORA8_ERROR = &CLSID_MSDAORA8_ERROR_Value; const IID_DataSourceListener_Value = Guid.initString("7c0ffab2-cd84-11d0-949a-00a0c91110ed"); pub const IID_DataSourceListener = &IID_DataSourceListener_Value; pub const DataSourceListener = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, dataMemberChanged: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const DataSourceListener, bstrDM: ?*u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const DataSourceListener, bstrDM: ?*u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, dataMemberAdded: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const DataSourceListener, bstrDM: ?*u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const DataSourceListener, bstrDM: ?*u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, dataMemberRemoved: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const DataSourceListener, bstrDM: ?*u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const DataSourceListener, bstrDM: ?*u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn DataSourceListener_dataMemberChanged(self: *const T, bstrDM: ?*u16) HRESULT { return @as(*const DataSourceListener.VTable, @ptrCast(self.vtable)).dataMemberChanged(@as(*const DataSourceListener, @ptrCast(self)), bstrDM); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn DataSourceListener_dataMemberAdded(self: *const T, bstrDM: ?*u16) HRESULT { return @as(*const DataSourceListener.VTable, @ptrCast(self.vtable)).dataMemberAdded(@as(*const DataSourceListener, @ptrCast(self)), bstrDM); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn DataSourceListener_dataMemberRemoved(self: *const T, bstrDM: ?*u16) HRESULT { return @as(*const DataSourceListener.VTable, @ptrCast(self.vtable)).dataMemberRemoved(@as(*const DataSourceListener, @ptrCast(self)), bstrDM); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_DataSource_Value = Guid.initString("7c0ffab3-cd84-11d0-949a-00a0c91110ed"); pub const IID_DataSource = &IID_DataSource_Value; pub const DataSource = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, getDataMember: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const DataSource, bstrDM: ?*u16, riid: ?*const Guid, ppunk: ?*?*IUnknown, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const DataSource, bstrDM: ?*u16, riid: ?*const Guid, ppunk: ?*?*IUnknown, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, getDataMemberName: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const DataSource, lIndex: i32, pbstrDM: ?*?*u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const DataSource, lIndex: i32, pbstrDM: ?*?*u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, getDataMemberCount: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const DataSource, plCount: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const DataSource, plCount: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, addDataSourceListener: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const DataSource, pDSL: ?*DataSourceListener, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const DataSource, pDSL: ?*DataSourceListener, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, removeDataSourceListener: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const DataSource, pDSL: ?*DataSourceListener, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const DataSource, pDSL: ?*DataSourceListener, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn DataSource_getDataMember(self: *const T, bstrDM: ?*u16, riid: ?*const Guid, ppunk: ?*?*IUnknown) HRESULT { return @as(*const DataSource.VTable, @ptrCast(self.vtable)).getDataMember(@as(*const DataSource, @ptrCast(self)), bstrDM, riid, ppunk); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn DataSource_getDataMemberName(self: *const T, lIndex: i32, pbstrDM: ?*?*u16) HRESULT { return @as(*const DataSource.VTable, @ptrCast(self.vtable)).getDataMemberName(@as(*const DataSource, @ptrCast(self)), lIndex, pbstrDM); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn DataSource_getDataMemberCount(self: *const T, plCount: ?*i32) HRESULT { return @as(*const DataSource.VTable, @ptrCast(self.vtable)).getDataMemberCount(@as(*const DataSource, @ptrCast(self)), plCount); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn DataSource_addDataSourceListener(self: *const T, pDSL: ?*DataSourceListener) HRESULT { return @as(*const DataSource.VTable, @ptrCast(self.vtable)).addDataSourceListener(@as(*const DataSource, @ptrCast(self)), pDSL); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn DataSource_removeDataSourceListener(self: *const T, pDSL: ?*DataSourceListener) HRESULT { return @as(*const DataSource.VTable, @ptrCast(self.vtable)).removeDataSourceListener(@as(*const DataSource, @ptrCast(self)), pDSL); } }; } pub usingnamespace MethodMixin(@This()); }; pub const OSPFORMAT = enum(i32) { RAW = 0, // DEFAULT = 0, this enum value conflicts with RAW FORMATTED = 1, HTML = 2, }; pub const OSPFORMAT_RAW = OSPFORMAT.RAW; pub const OSPFORMAT_DEFAULT = OSPFORMAT.RAW; pub const OSPFORMAT_FORMATTED = OSPFORMAT.FORMATTED; pub const OSPFORMAT_HTML = OSPFORMAT.HTML; pub const OSPRW = enum(i32) { DEFAULT = 1, READONLY = 0, // READWRITE = 1, this enum value conflicts with DEFAULT MIXED = 2, }; pub const OSPRW_DEFAULT = OSPRW.DEFAULT; pub const OSPRW_READONLY = OSPRW.READONLY; pub const OSPRW_READWRITE = OSPRW.DEFAULT; pub const OSPRW_MIXED = OSPRW.MIXED; pub const OSPFIND = enum(i32) { DEFAULT = 0, UP = 1, CASESENSITIVE = 2, UPCASESENSITIVE = 3, }; pub const OSPFIND_DEFAULT = OSPFIND.DEFAULT; pub const OSPFIND_UP = OSPFIND.UP; pub const OSPFIND_CASESENSITIVE = OSPFIND.CASESENSITIVE; pub const OSPFIND_UPCASESENSITIVE = OSPFIND.UPCASESENSITIVE; pub const OSPCOMP = enum(i32) { EQ = 1, // DEFAULT = 1, this enum value conflicts with EQ LT = 2, LE = 3, GE = 4, GT = 5, NE = 6, }; pub const OSPCOMP_EQ = OSPCOMP.EQ; pub const OSPCOMP_DEFAULT = OSPCOMP.EQ; pub const OSPCOMP_LT = OSPCOMP.LT; pub const OSPCOMP_LE = OSPCOMP.LE; pub const OSPCOMP_GE = OSPCOMP.GE; pub const OSPCOMP_GT = OSPCOMP.GT; pub const OSPCOMP_NE = OSPCOMP.NE; pub const OSPXFER = enum(i32) { COMPLETE = 0, ABORT = 1, ERROR = 2, }; pub const OSPXFER_COMPLETE = OSPXFER.COMPLETE; pub const OSPXFER_ABORT = OSPXFER.ABORT; pub const OSPXFER_ERROR = OSPXFER.ERROR; const IID_OLEDBSimpleProviderListener_Value = Guid.initString("e0e270c1-c0be-11d0-8fe4-00a0c90a6341"); pub const IID_OLEDBSimpleProviderListener = &IID_OLEDBSimpleProviderListener_Value; pub const OLEDBSimpleProviderListener = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, aboutToChangeCell: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const OLEDBSimpleProviderListener, iRow: isize, iColumn: isize, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const OLEDBSimpleProviderListener, iRow: isize, iColumn: isize, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, cellChanged: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const OLEDBSimpleProviderListener, iRow: isize, iColumn: isize, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const OLEDBSimpleProviderListener, iRow: isize, iColumn: isize, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, aboutToDeleteRows: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const OLEDBSimpleProviderListener, iRow: isize, cRows: isize, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const OLEDBSimpleProviderListener, iRow: isize, cRows: isize, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, deletedRows: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const OLEDBSimpleProviderListener, iRow: isize, cRows: isize, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const OLEDBSimpleProviderListener, iRow: isize, cRows: isize, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, aboutToInsertRows: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const OLEDBSimpleProviderListener, iRow: isize, cRows: isize, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const OLEDBSimpleProviderListener, iRow: isize, cRows: isize, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, insertedRows: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const OLEDBSimpleProviderListener, iRow: isize, cRows: isize, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const OLEDBSimpleProviderListener, iRow: isize, cRows: isize, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, rowsAvailable: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const OLEDBSimpleProviderListener, iRow: isize, cRows: isize, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const OLEDBSimpleProviderListener, iRow: isize, cRows: isize, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, transferComplete: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const OLEDBSimpleProviderListener, xfer: OSPXFER, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const OLEDBSimpleProviderListener, xfer: OSPXFER, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn OLEDBSimpleProviderListener_aboutToChangeCell(self: *const T, iRow: isize, iColumn: isize) HRESULT { return @as(*const OLEDBSimpleProviderListener.VTable, @ptrCast(self.vtable)).aboutToChangeCell(@as(*const OLEDBSimpleProviderListener, @ptrCast(self)), iRow, iColumn); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn OLEDBSimpleProviderListener_cellChanged(self: *const T, iRow: isize, iColumn: isize) HRESULT { return @as(*const OLEDBSimpleProviderListener.VTable, @ptrCast(self.vtable)).cellChanged(@as(*const OLEDBSimpleProviderListener, @ptrCast(self)), iRow, iColumn); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn OLEDBSimpleProviderListener_aboutToDeleteRows(self: *const T, iRow: isize, cRows: isize) HRESULT { return @as(*const OLEDBSimpleProviderListener.VTable, @ptrCast(self.vtable)).aboutToDeleteRows(@as(*const OLEDBSimpleProviderListener, @ptrCast(self)), iRow, cRows); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn OLEDBSimpleProviderListener_deletedRows(self: *const T, iRow: isize, cRows: isize) HRESULT { return @as(*const OLEDBSimpleProviderListener.VTable, @ptrCast(self.vtable)).deletedRows(@as(*const OLEDBSimpleProviderListener, @ptrCast(self)), iRow, cRows); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn OLEDBSimpleProviderListener_aboutToInsertRows(self: *const T, iRow: isize, cRows: isize) HRESULT { return @as(*const OLEDBSimpleProviderListener.VTable, @ptrCast(self.vtable)).aboutToInsertRows(@as(*const OLEDBSimpleProviderListener, @ptrCast(self)), iRow, cRows); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn OLEDBSimpleProviderListener_insertedRows(self: *const T, iRow: isize, cRows: isize) HRESULT { return @as(*const OLEDBSimpleProviderListener.VTable, @ptrCast(self.vtable)).insertedRows(@as(*const OLEDBSimpleProviderListener, @ptrCast(self)), iRow, cRows); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn OLEDBSimpleProviderListener_rowsAvailable(self: *const T, iRow: isize, cRows: isize) HRESULT { return @as(*const OLEDBSimpleProviderListener.VTable, @ptrCast(self.vtable)).rowsAvailable(@as(*const OLEDBSimpleProviderListener, @ptrCast(self)), iRow, cRows); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn OLEDBSimpleProviderListener_transferComplete(self: *const T, xfer: OSPXFER) HRESULT { return @as(*const OLEDBSimpleProviderListener.VTable, @ptrCast(self.vtable)).transferComplete(@as(*const OLEDBSimpleProviderListener, @ptrCast(self)), xfer); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_OLEDBSimpleProvider_Value = Guid.initString("e0e270c0-c0be-11d0-8fe4-00a0c90a6341"); pub const IID_OLEDBSimpleProvider = &IID_OLEDBSimpleProvider_Value; pub const OLEDBSimpleProvider = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, getRowCount: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const OLEDBSimpleProvider, pcRows: ?*isize, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const OLEDBSimpleProvider, pcRows: ?*isize, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, getColumnCount: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const OLEDBSimpleProvider, pcColumns: ?*isize, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const OLEDBSimpleProvider, pcColumns: ?*isize, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, getRWStatus: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const OLEDBSimpleProvider, iRow: isize, iColumn: isize, prwStatus: ?*OSPRW, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const OLEDBSimpleProvider, iRow: isize, iColumn: isize, prwStatus: ?*OSPRW, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, getVariant: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const OLEDBSimpleProvider, iRow: isize, iColumn: isize, format: OSPFORMAT, pVar: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const OLEDBSimpleProvider, iRow: isize, iColumn: isize, format: OSPFORMAT, pVar: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, setVariant: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const OLEDBSimpleProvider, iRow: isize, iColumn: isize, format: OSPFORMAT, Var: VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const OLEDBSimpleProvider, iRow: isize, iColumn: isize, format: OSPFORMAT, Var: VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, getLocale: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const OLEDBSimpleProvider, pbstrLocale: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const OLEDBSimpleProvider, pbstrLocale: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, deleteRows: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const OLEDBSimpleProvider, iRow: isize, cRows: isize, pcRowsDeleted: ?*isize, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const OLEDBSimpleProvider, iRow: isize, cRows: isize, pcRowsDeleted: ?*isize, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, insertRows: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const OLEDBSimpleProvider, iRow: isize, cRows: isize, pcRowsInserted: ?*isize, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const OLEDBSimpleProvider, iRow: isize, cRows: isize, pcRowsInserted: ?*isize, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, find: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const OLEDBSimpleProvider, iRowStart: isize, iColumn: isize, val: VARIANT, findFlags: OSPFIND, compType: OSPCOMP, piRowFound: ?*isize, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const OLEDBSimpleProvider, iRowStart: isize, iColumn: isize, val: VARIANT, findFlags: OSPFIND, compType: OSPCOMP, piRowFound: ?*isize, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, addOLEDBSimpleProviderListener: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const OLEDBSimpleProvider, pospIListener: ?*OLEDBSimpleProviderListener, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const OLEDBSimpleProvider, pospIListener: ?*OLEDBSimpleProviderListener, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, removeOLEDBSimpleProviderListener: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const OLEDBSimpleProvider, pospIListener: ?*OLEDBSimpleProviderListener, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const OLEDBSimpleProvider, pospIListener: ?*OLEDBSimpleProviderListener, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, isAsync: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const OLEDBSimpleProvider, pbAsynch: ?*BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const OLEDBSimpleProvider, pbAsynch: ?*BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, getEstimatedRows: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const OLEDBSimpleProvider, piRows: ?*isize, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const OLEDBSimpleProvider, piRows: ?*isize, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, stopTransfer: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const OLEDBSimpleProvider, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const OLEDBSimpleProvider, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn OLEDBSimpleProvider_getRowCount(self: *const T, pcRows: ?*isize) HRESULT { return @as(*const OLEDBSimpleProvider.VTable, @ptrCast(self.vtable)).getRowCount(@as(*const OLEDBSimpleProvider, @ptrCast(self)), pcRows); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn OLEDBSimpleProvider_getColumnCount(self: *const T, pcColumns: ?*isize) HRESULT { return @as(*const OLEDBSimpleProvider.VTable, @ptrCast(self.vtable)).getColumnCount(@as(*const OLEDBSimpleProvider, @ptrCast(self)), pcColumns); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn OLEDBSimpleProvider_getRWStatus(self: *const T, iRow: isize, iColumn: isize, prwStatus: ?*OSPRW) HRESULT { return @as(*const OLEDBSimpleProvider.VTable, @ptrCast(self.vtable)).getRWStatus(@as(*const OLEDBSimpleProvider, @ptrCast(self)), iRow, iColumn, prwStatus); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn OLEDBSimpleProvider_getVariant(self: *const T, iRow: isize, iColumn: isize, format: OSPFORMAT, pVar: ?*VARIANT) HRESULT { return @as(*const OLEDBSimpleProvider.VTable, @ptrCast(self.vtable)).getVariant(@as(*const OLEDBSimpleProvider, @ptrCast(self)), iRow, iColumn, format, pVar); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn OLEDBSimpleProvider_setVariant(self: *const T, iRow: isize, iColumn: isize, format: OSPFORMAT, Var: VARIANT) HRESULT { return @as(*const OLEDBSimpleProvider.VTable, @ptrCast(self.vtable)).setVariant(@as(*const OLEDBSimpleProvider, @ptrCast(self)), iRow, iColumn, format, Var); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn OLEDBSimpleProvider_getLocale(self: *const T, pbstrLocale: ?*?BSTR) HRESULT { return @as(*const OLEDBSimpleProvider.VTable, @ptrCast(self.vtable)).getLocale(@as(*const OLEDBSimpleProvider, @ptrCast(self)), pbstrLocale); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn OLEDBSimpleProvider_deleteRows(self: *const T, iRow: isize, cRows: isize, pcRowsDeleted: ?*isize) HRESULT { return @as(*const OLEDBSimpleProvider.VTable, @ptrCast(self.vtable)).deleteRows(@as(*const OLEDBSimpleProvider, @ptrCast(self)), iRow, cRows, pcRowsDeleted); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn OLEDBSimpleProvider_insertRows(self: *const T, iRow: isize, cRows: isize, pcRowsInserted: ?*isize) HRESULT { return @as(*const OLEDBSimpleProvider.VTable, @ptrCast(self.vtable)).insertRows(@as(*const OLEDBSimpleProvider, @ptrCast(self)), iRow, cRows, pcRowsInserted); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn OLEDBSimpleProvider_find(self: *const T, iRowStart: isize, iColumn: isize, val: VARIANT, findFlags: OSPFIND, compType: OSPCOMP, piRowFound: ?*isize) HRESULT { return @as(*const OLEDBSimpleProvider.VTable, @ptrCast(self.vtable)).find(@as(*const OLEDBSimpleProvider, @ptrCast(self)), iRowStart, iColumn, val, findFlags, compType, piRowFound); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn OLEDBSimpleProvider_addOLEDBSimpleProviderListener(self: *const T, pospIListener: ?*OLEDBSimpleProviderListener) HRESULT { return @as(*const OLEDBSimpleProvider.VTable, @ptrCast(self.vtable)).addOLEDBSimpleProviderListener(@as(*const OLEDBSimpleProvider, @ptrCast(self)), pospIListener); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn OLEDBSimpleProvider_removeOLEDBSimpleProviderListener(self: *const T, pospIListener: ?*OLEDBSimpleProviderListener) HRESULT { return @as(*const OLEDBSimpleProvider.VTable, @ptrCast(self.vtable)).removeOLEDBSimpleProviderListener(@as(*const OLEDBSimpleProvider, @ptrCast(self)), pospIListener); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn OLEDBSimpleProvider_isAsync(self: *const T, pbAsynch: ?*BOOL) HRESULT { return @as(*const OLEDBSimpleProvider.VTable, @ptrCast(self.vtable)).isAsync(@as(*const OLEDBSimpleProvider, @ptrCast(self)), pbAsynch); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn OLEDBSimpleProvider_getEstimatedRows(self: *const T, piRows: ?*isize) HRESULT { return @as(*const OLEDBSimpleProvider.VTable, @ptrCast(self.vtable)).getEstimatedRows(@as(*const OLEDBSimpleProvider, @ptrCast(self)), piRows); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn OLEDBSimpleProvider_stopTransfer(self: *const T) HRESULT { return @as(*const OLEDBSimpleProvider.VTable, @ptrCast(self.vtable)).stopTransfer(@as(*const OLEDBSimpleProvider, @ptrCast(self))); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_DataSourceObject_Value = Guid.initString("0ae9a4e4-18d4-11d1-b3b3-00aa00c1a924"); pub const IID_DataSourceObject = &IID_DataSourceObject_Value; pub const DataSourceObject = extern struct { pub const VTable = extern struct { base: IDispatch.VTable, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IDispatch.MethodMixin(T); }; } pub usingnamespace MethodMixin(@This()); }; const CLSID_DataLinks_Value = Guid.initString("2206cdb2-19c1-11d1-89e0-00c04fd7a829"); pub const CLSID_DataLinks = &CLSID_DataLinks_Value; const CLSID_MSDAINITIALIZE_Value = Guid.initString("2206cdb0-19c1-11d1-89e0-00c04fd7a829"); pub const CLSID_MSDAINITIALIZE = &CLSID_MSDAINITIALIZE_Value; const CLSID_PDPO_Value = Guid.initString("ccb4ec60-b9dc-11d1-ac80-00a0c9034873"); pub const CLSID_PDPO = &CLSID_PDPO_Value; const CLSID_RootBinder_Value = Guid.initString("ff151822-b0bf-11d1-a80d-000000000000"); pub const CLSID_RootBinder = &CLSID_RootBinder_Value; pub const EBindInfoOptions = enum(i32) { R = 1, }; pub const BIO_BINDER = EBindInfoOptions.R; const IID_IService_Value = Guid.initString("06210e88-01f5-11d1-b512-0080c781c384"); pub const IID_IService = &IID_IService_Value; pub const IService = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, InvokeService: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IService, pUnkInner: ?*IUnknown, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IService, pUnkInner: ?*IUnknown, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IService_InvokeService(self: *const T, pUnkInner: ?*IUnknown) HRESULT { return @as(*const IService.VTable, @ptrCast(self.vtable)).InvokeService(@as(*const IService, @ptrCast(self)), pUnkInner); } }; } pub usingnamespace MethodMixin(@This()); }; pub const DBPROMPTOPTIONSENUM = enum(i32) { NONE = 0, WIZARDSHEET = 1, PROPERTYSHEET = 2, BROWSEONLY = 8, DISABLE_PROVIDER_SELECTION = 16, DISABLESAVEPASSWORD = 32, }; pub const DBPROMPTOPTIONS_NONE = DBPROMPTOPTIONSENUM.NONE; pub const DBPROMPTOPTIONS_WIZARDSHEET = DBPROMPTOPTIONSENUM.WIZARDSHEET; pub const DBPROMPTOPTIONS_PROPERTYSHEET = DBPROMPTOPTIONSENUM.PROPERTYSHEET; pub const DBPROMPTOPTIONS_BROWSEONLY = DBPROMPTOPTIONSENUM.BROWSEONLY; pub const DBPROMPTOPTIONS_DISABLE_PROVIDER_SELECTION = DBPROMPTOPTIONSENUM.DISABLE_PROVIDER_SELECTION; pub const DBPROMPTOPTIONS_DISABLESAVEPASSWORD = DBPROMPTOPTIONSENUM.DISABLESAVEPASSWORD; const IID_IDBPromptInitialize_Value = Guid.initString("2206ccb0-19c1-11d1-89e0-00c04fd7a829"); pub const IID_IDBPromptInitialize = &IID_IDBPromptInitialize_Value; pub const IDBPromptInitialize = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, PromptDataSource: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDBPromptInitialize, pUnkOuter: ?*IUnknown, hWndParent: ?HWND, dwPromptOptions: u32, cSourceTypeFilter: u32, rgSourceTypeFilter: ?[*]u32, pwszszzProviderFilter: ?[*:0]const u16, riid: ?*const Guid, ppDataSource: ?*?*IUnknown, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDBPromptInitialize, pUnkOuter: ?*IUnknown, hWndParent: ?HWND, dwPromptOptions: u32, cSourceTypeFilter: u32, rgSourceTypeFilter: ?[*]u32, pwszszzProviderFilter: ?[*:0]const u16, riid: ?*const Guid, ppDataSource: ?*?*IUnknown, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, PromptFileName: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDBPromptInitialize, hWndParent: ?HWND, dwPromptOptions: u32, pwszInitialDirectory: ?[*:0]const u16, pwszInitialFile: ?[*:0]const u16, ppwszSelectedFile: ?*?PWSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDBPromptInitialize, hWndParent: ?HWND, dwPromptOptions: u32, pwszInitialDirectory: ?[*:0]const u16, pwszInitialFile: ?[*:0]const u16, ppwszSelectedFile: ?*?PWSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDBPromptInitialize_PromptDataSource(self: *const T, pUnkOuter: ?*IUnknown, hWndParent: ?HWND, dwPromptOptions: u32, cSourceTypeFilter: u32, rgSourceTypeFilter: ?[*]u32, pwszszzProviderFilter: ?[*:0]const u16, riid: ?*const Guid, ppDataSource: ?*?*IUnknown) HRESULT { return @as(*const IDBPromptInitialize.VTable, @ptrCast(self.vtable)).PromptDataSource(@as(*const IDBPromptInitialize, @ptrCast(self)), pUnkOuter, hWndParent, dwPromptOptions, cSourceTypeFilter, rgSourceTypeFilter, pwszszzProviderFilter, riid, ppDataSource); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDBPromptInitialize_PromptFileName(self: *const T, hWndParent: ?HWND, dwPromptOptions: u32, pwszInitialDirectory: ?[*:0]const u16, pwszInitialFile: ?[*:0]const u16, ppwszSelectedFile: ?*?PWSTR) HRESULT { return @as(*const IDBPromptInitialize.VTable, @ptrCast(self.vtable)).PromptFileName(@as(*const IDBPromptInitialize, @ptrCast(self)), hWndParent, dwPromptOptions, pwszInitialDirectory, pwszInitialFile, ppwszSelectedFile); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IDataInitialize_Value = Guid.initString("2206ccb1-19c1-11d1-89e0-00c04fd7a829"); pub const IID_IDataInitialize = &IID_IDataInitialize_Value; pub const IDataInitialize = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, GetDataSource: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDataInitialize, pUnkOuter: ?*IUnknown, dwClsCtx: u32, pwszInitializationString: ?[*:0]const u16, riid: ?*const Guid, ppDataSource: ?*?*IUnknown, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDataInitialize, pUnkOuter: ?*IUnknown, dwClsCtx: u32, pwszInitializationString: ?[*:0]const u16, riid: ?*const Guid, ppDataSource: ?*?*IUnknown, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetInitializationString: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDataInitialize, pDataSource: ?*IUnknown, fIncludePassword: u8, ppwszInitString: ?*?PWSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDataInitialize, pDataSource: ?*IUnknown, fIncludePassword: u8, ppwszInitString: ?*?PWSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, CreateDBInstance: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDataInitialize, clsidProvider: ?*const Guid, pUnkOuter: ?*IUnknown, dwClsCtx: u32, pwszReserved: ?PWSTR, riid: ?*const Guid, ppDataSource: ?*?*IUnknown, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDataInitialize, clsidProvider: ?*const Guid, pUnkOuter: ?*IUnknown, dwClsCtx: u32, pwszReserved: ?PWSTR, riid: ?*const Guid, ppDataSource: ?*?*IUnknown, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, CreateDBInstanceEx: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDataInitialize, clsidProvider: ?*const Guid, pUnkOuter: ?*IUnknown, dwClsCtx: u32, pwszReserved: ?PWSTR, pServerInfo: ?*COSERVERINFO, cmq: u32, rgmqResults: [*]MULTI_QI, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDataInitialize, clsidProvider: ?*const Guid, pUnkOuter: ?*IUnknown, dwClsCtx: u32, pwszReserved: ?PWSTR, pServerInfo: ?*COSERVERINFO, cmq: u32, rgmqResults: [*]MULTI_QI, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, LoadStringFromStorage: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDataInitialize, pwszFileName: ?[*:0]const u16, ppwszInitializationString: ?*?PWSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDataInitialize, pwszFileName: ?[*:0]const u16, ppwszInitializationString: ?*?PWSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, WriteStringToStorage: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDataInitialize, pwszFileName: ?[*:0]const u16, pwszInitializationString: ?[*:0]const u16, dwCreationDisposition: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDataInitialize, pwszFileName: ?[*:0]const u16, pwszInitializationString: ?[*:0]const u16, dwCreationDisposition: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDataInitialize_GetDataSource(self: *const T, pUnkOuter: ?*IUnknown, dwClsCtx: u32, pwszInitializationString: ?[*:0]const u16, riid: ?*const Guid, ppDataSource: ?*?*IUnknown) HRESULT { return @as(*const IDataInitialize.VTable, @ptrCast(self.vtable)).GetDataSource(@as(*const IDataInitialize, @ptrCast(self)), pUnkOuter, dwClsCtx, pwszInitializationString, riid, ppDataSource); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDataInitialize_GetInitializationString(self: *const T, pDataSource: ?*IUnknown, fIncludePassword: u8, ppwszInitString: ?*?PWSTR) HRESULT { return @as(*const IDataInitialize.VTable, @ptrCast(self.vtable)).GetInitializationString(@as(*const IDataInitialize, @ptrCast(self)), pDataSource, fIncludePassword, ppwszInitString); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDataInitialize_CreateDBInstance(self: *const T, clsidProvider: ?*const Guid, pUnkOuter: ?*IUnknown, dwClsCtx: u32, pwszReserved: ?PWSTR, riid: ?*const Guid, ppDataSource: ?*?*IUnknown) HRESULT { return @as(*const IDataInitialize.VTable, @ptrCast(self.vtable)).CreateDBInstance(@as(*const IDataInitialize, @ptrCast(self)), clsidProvider, pUnkOuter, dwClsCtx, pwszReserved, riid, ppDataSource); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDataInitialize_CreateDBInstanceEx(self: *const T, clsidProvider: ?*const Guid, pUnkOuter: ?*IUnknown, dwClsCtx: u32, pwszReserved: ?PWSTR, pServerInfo: ?*COSERVERINFO, cmq: u32, rgmqResults: [*]MULTI_QI) HRESULT { return @as(*const IDataInitialize.VTable, @ptrCast(self.vtable)).CreateDBInstanceEx(@as(*const IDataInitialize, @ptrCast(self)), clsidProvider, pUnkOuter, dwClsCtx, pwszReserved, pServerInfo, cmq, rgmqResults); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDataInitialize_LoadStringFromStorage(self: *const T, pwszFileName: ?[*:0]const u16, ppwszInitializationString: ?*?PWSTR) HRESULT { return @as(*const IDataInitialize.VTable, @ptrCast(self.vtable)).LoadStringFromStorage(@as(*const IDataInitialize, @ptrCast(self)), pwszFileName, ppwszInitializationString); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDataInitialize_WriteStringToStorage(self: *const T, pwszFileName: ?[*:0]const u16, pwszInitializationString: ?[*:0]const u16, dwCreationDisposition: u32) HRESULT { return @as(*const IDataInitialize.VTable, @ptrCast(self.vtable)).WriteStringToStorage(@as(*const IDataInitialize, @ptrCast(self)), pwszFileName, pwszInitializationString, dwCreationDisposition); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IDataSourceLocator_Value = Guid.initString("2206ccb2-19c1-11d1-89e0-00c04fd7a829"); pub const IID_IDataSourceLocator = &IID_IDataSourceLocator_Value; pub const IDataSourceLocator = extern struct { pub const VTable = extern struct { base: IDispatch.VTable, // TODO: this function has a "SpecialName", should Zig do anything with this? get_hWnd: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IDataSourceLocator, phwndParent: ?*i64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IDataSourceLocator, phwndParent: ?*i64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_hWnd: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IDataSourceLocator, hwndParent: i64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IDataSourceLocator, hwndParent: i64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, PromptNew: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDataSourceLocator, ppADOConnection: ?*?*IDispatch, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDataSourceLocator, ppADOConnection: ?*?*IDispatch, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, PromptEdit: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDataSourceLocator, ppADOConnection: ?*?*IDispatch, pbSuccess: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDataSourceLocator, ppADOConnection: ?*?*IDispatch, pbSuccess: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IDispatch.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDataSourceLocator_get_hWnd(self: *const T, phwndParent: ?*i64) HRESULT { return @as(*const IDataSourceLocator.VTable, @ptrCast(self.vtable)).get_hWnd(@as(*const IDataSourceLocator, @ptrCast(self)), phwndParent); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDataSourceLocator_put_hWnd(self: *const T, hwndParent: i64) HRESULT { return @as(*const IDataSourceLocator.VTable, @ptrCast(self.vtable)).put_hWnd(@as(*const IDataSourceLocator, @ptrCast(self)), hwndParent); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDataSourceLocator_PromptNew(self: *const T, ppADOConnection: ?*?*IDispatch) HRESULT { return @as(*const IDataSourceLocator.VTable, @ptrCast(self.vtable)).PromptNew(@as(*const IDataSourceLocator, @ptrCast(self)), ppADOConnection); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDataSourceLocator_PromptEdit(self: *const T, ppADOConnection: ?*?*IDispatch, pbSuccess: ?*i16) HRESULT { return @as(*const IDataSourceLocator.VTable, @ptrCast(self.vtable)).PromptEdit(@as(*const IDataSourceLocator, @ptrCast(self)), ppADOConnection, pbSuccess); } }; } pub usingnamespace MethodMixin(@This()); }; pub const KAGREQDIAGFLAGSENUM = enum(i32) { HEADER = 1, RECORD = 2, }; pub const KAGREQDIAGFLAGS_HEADER = KAGREQDIAGFLAGSENUM.HEADER; pub const KAGREQDIAGFLAGS_RECORD = KAGREQDIAGFLAGSENUM.RECORD; const IID_IRowsetChangeExtInfo_Value = Guid.initString("0c733a8f-2a1c-11ce-ade5-00aa0044773d"); pub const IID_IRowsetChangeExtInfo = &IID_IRowsetChangeExtInfo_Value; pub const IRowsetChangeExtInfo = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, GetOriginalRow: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IRowsetChangeExtInfo, hReserved: usize, hRow: usize, phRowOriginal: ?*usize, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IRowsetChangeExtInfo, hReserved: usize, hRow: usize, phRowOriginal: ?*usize, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetPendingColumns: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IRowsetChangeExtInfo, hReserved: usize, hRow: usize, cColumnOrdinals: u32, rgiOrdinals: ?*const u32, rgColumnStatus: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IRowsetChangeExtInfo, hReserved: usize, hRow: usize, cColumnOrdinals: u32, rgiOrdinals: ?*const u32, rgColumnStatus: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRowsetChangeExtInfo_GetOriginalRow(self: *const T, hReserved: usize, hRow: usize, phRowOriginal: ?*usize) HRESULT { return @as(*const IRowsetChangeExtInfo.VTable, @ptrCast(self.vtable)).GetOriginalRow(@as(*const IRowsetChangeExtInfo, @ptrCast(self)), hReserved, hRow, phRowOriginal); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRowsetChangeExtInfo_GetPendingColumns(self: *const T, hReserved: usize, hRow: usize, cColumnOrdinals: u32, rgiOrdinals: ?*const u32, rgColumnStatus: ?*u32) HRESULT { return @as(*const IRowsetChangeExtInfo.VTable, @ptrCast(self.vtable)).GetPendingColumns(@as(*const IRowsetChangeExtInfo, @ptrCast(self)), hReserved, hRow, cColumnOrdinals, rgiOrdinals, rgColumnStatus); } }; } pub usingnamespace MethodMixin(@This()); }; pub const KAGREQDIAG = extern struct { ulDiagFlags: u32, vt: u16, sDiagField: i16, }; pub const KAGGETDIAG = extern struct { ulSize: u32, vDiagInfo: VARIANT, sDiagField: i16, }; const IID_ISQLRequestDiagFields_Value = Guid.initString("228972f0-b5ff-11d0-8a80-00c04fd611cd"); pub const IID_ISQLRequestDiagFields = &IID_ISQLRequestDiagFields_Value; pub const ISQLRequestDiagFields = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, RequestDiagFields: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ISQLRequestDiagFields, cDiagFields: u32, rgDiagFields: [*]KAGREQDIAG, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ISQLRequestDiagFields, cDiagFields: u32, rgDiagFields: [*]KAGREQDIAG, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISQLRequestDiagFields_RequestDiagFields(self: *const T, cDiagFields: u32, rgDiagFields: [*]KAGREQDIAG) HRESULT { return @as(*const ISQLRequestDiagFields.VTable, @ptrCast(self.vtable)).RequestDiagFields(@as(*const ISQLRequestDiagFields, @ptrCast(self)), cDiagFields, rgDiagFields); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_ISQLGetDiagField_Value = Guid.initString("228972f1-b5ff-11d0-8a80-00c04fd611cd"); pub const IID_ISQLGetDiagField = &IID_ISQLGetDiagField_Value; pub const ISQLGetDiagField = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, GetDiagField: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ISQLGetDiagField, pDiagInfo: ?*KAGGETDIAG, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ISQLGetDiagField, pDiagInfo: ?*KAGGETDIAG, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISQLGetDiagField_GetDiagField(self: *const T, pDiagInfo: ?*KAGGETDIAG) HRESULT { return @as(*const ISQLGetDiagField.VTable, @ptrCast(self.vtable)).GetDiagField(@as(*const ISQLGetDiagField, @ptrCast(self)), pDiagInfo); } }; } pub usingnamespace MethodMixin(@This()); }; pub const MSDSDBINITPROPENUM = enum(i32) { R = 2, }; pub const DBPROP_MSDS_DBINIT_DATAPROVIDER = MSDSDBINITPROPENUM.R; pub const MSDSSESSIONPROPENUM = enum(i32) { S = 2, }; pub const DBPROP_MSDS_SESS_UNIQUENAMES = MSDSSESSIONPROPENUM.S; pub const DATE_STRUCT = extern struct { year: i16, month: u16, day: u16, }; pub const TIME_STRUCT = extern struct { hour: u16, minute: u16, second: u16, }; pub const TIMESTAMP_STRUCT = extern struct { year: i16, month: u16, day: u16, hour: u16, minute: u16, second: u16, fraction: u32, }; pub const SQLINTERVAL = enum(i32) { YEAR = 1, MONTH = 2, DAY = 3, HOUR = 4, MINUTE = 5, SECOND = 6, YEAR_TO_MONTH = 7, DAY_TO_HOUR = 8, DAY_TO_MINUTE = 9, DAY_TO_SECOND = 10, HOUR_TO_MINUTE = 11, HOUR_TO_SECOND = 12, MINUTE_TO_SECOND = 13, }; pub const SQL_IS_YEAR = SQLINTERVAL.YEAR; pub const SQL_IS_MONTH = SQLINTERVAL.MONTH; pub const SQL_IS_DAY = SQLINTERVAL.DAY; pub const SQL_IS_HOUR = SQLINTERVAL.HOUR; pub const SQL_IS_MINUTE = SQLINTERVAL.MINUTE; pub const SQL_IS_SECOND = SQLINTERVAL.SECOND; pub const SQL_IS_YEAR_TO_MONTH = SQLINTERVAL.YEAR_TO_MONTH; pub const SQL_IS_DAY_TO_HOUR = SQLINTERVAL.DAY_TO_HOUR; pub const SQL_IS_DAY_TO_MINUTE = SQLINTERVAL.DAY_TO_MINUTE; pub const SQL_IS_DAY_TO_SECOND = SQLINTERVAL.DAY_TO_SECOND; pub const SQL_IS_HOUR_TO_MINUTE = SQLINTERVAL.HOUR_TO_MINUTE; pub const SQL_IS_HOUR_TO_SECOND = SQLINTERVAL.HOUR_TO_SECOND; pub const SQL_IS_MINUTE_TO_SECOND = SQLINTERVAL.MINUTE_TO_SECOND; pub const tagSQL_YEAR_MONTH = extern struct { year: u32, month: u32, }; pub const tagSQL_DAY_SECOND = extern struct { day: u32, hour: u32, minute: u32, second: u32, fraction: u32, }; pub const SQL_INTERVAL_STRUCT = extern struct { interval_type: SQLINTERVAL, interval_sign: i16, intval: extern union { year_month: tagSQL_YEAR_MONTH, day_second: tagSQL_DAY_SECOND, }, }; pub const SQL_NUMERIC_STRUCT = extern struct { precision: u8, scale: i8, sign: u8, val: [16]u8, }; pub const dbvarychar = extern struct { len: i16, str: [8001]i8, }; pub const dbvarybin = extern struct { len: i16, array: [8001]u8, }; pub const dbmoney = extern struct { mnyhigh: i32, mnylow: u32, }; pub const dbdatetime = extern struct { dtdays: i32, dttime: u32, }; pub const dbdatetime4 = extern struct { numdays: u16, nummins: u16, }; pub const sqlperf = extern struct { TimerResolution: u32, SQLidu: u32, SQLiduRows: u32, SQLSelects: u32, SQLSelectRows: u32, Transactions: u32, SQLPrepares: u32, ExecDirects: u32, SQLExecutes: u32, CursorOpens: u32, CursorSize: u32, CursorUsed: u32, PercentCursorUsed: f64, AvgFetchTime: f64, AvgCursorSize: f64, AvgCursorUsed: f64, SQLFetchTime: u32, SQLFetchCount: u32, CurrentStmtCount: u32, MaxOpenStmt: u32, SumOpenStmt: u32, CurrentConnectionCount: u32, MaxConnectionsOpened: u32, SumConnectionsOpened: u32, SumConnectiontime: u32, AvgTimeOpened: f64, ServerRndTrips: u32, BuffersSent: u32, BuffersRec: u32, BytesSent: u32, BytesRec: u32, msExecutionTime: u32, msNetWorkServerTime: u32, }; pub const DBPROPENUM25_DEPRECATED = enum(i32) { CommandCost = 141, CommandTree = 142, CommandValidate = 143, DBSchemaCommand = 144, ProvideMoniker = 125, Query = 146, ReadData = 147, RowsetAsynch = 148, RowsetCopyRows = 149, RowsetKeys = 151, RowsetNewRowAfter = 152, RowsetNextRowset = 153, RowsetWatchAll = 155, RowsetWatchNotify = 156, RowsetWatchRegion = 157, RowsetWithParameters = 158, }; pub const DBPROP_ICommandCost = DBPROPENUM25_DEPRECATED.CommandCost; pub const DBPROP_ICommandTree = DBPROPENUM25_DEPRECATED.CommandTree; pub const DBPROP_ICommandValidate = DBPROPENUM25_DEPRECATED.CommandValidate; pub const DBPROP_IDBSchemaCommand = DBPROPENUM25_DEPRECATED.DBSchemaCommand; pub const DBPROP_IProvideMoniker = DBPROPENUM25_DEPRECATED.ProvideMoniker; pub const DBPROP_IQuery = DBPROPENUM25_DEPRECATED.Query; pub const DBPROP_IReadData = DBPROPENUM25_DEPRECATED.ReadData; pub const DBPROP_IRowsetAsynch = DBPROPENUM25_DEPRECATED.RowsetAsynch; pub const DBPROP_IRowsetCopyRows = DBPROPENUM25_DEPRECATED.RowsetCopyRows; pub const DBPROP_IRowsetKeys = DBPROPENUM25_DEPRECATED.RowsetKeys; pub const DBPROP_IRowsetNewRowAfter = DBPROPENUM25_DEPRECATED.RowsetNewRowAfter; pub const DBPROP_IRowsetNextRowset = DBPROPENUM25_DEPRECATED.RowsetNextRowset; pub const DBPROP_IRowsetWatchAll = DBPROPENUM25_DEPRECATED.RowsetWatchAll; pub const DBPROP_IRowsetWatchNotify = DBPROPENUM25_DEPRECATED.RowsetWatchNotify; pub const DBPROP_IRowsetWatchRegion = DBPROPENUM25_DEPRECATED.RowsetWatchRegion; pub const DBPROP_IRowsetWithParameters = DBPROPENUM25_DEPRECATED.RowsetWithParameters; pub const DBREASONENUM25 = enum(i32) { ROWSADDED = 19, POPULATIONCOMPLETE = 20, POPULATIONSTOPPED = 21, }; pub const DBREASON_ROWSET_ROWSADDED = DBREASONENUM25.ROWSADDED; pub const DBREASON_ROWSET_POPULATIONCOMPLETE = DBREASONENUM25.POPULATIONCOMPLETE; pub const DBREASON_ROWSET_POPULATIONSTOPPED = DBREASONENUM25.POPULATIONSTOPPED; const IID_IRowsetNextRowset_Value = Guid.initString("0c733a72-2a1c-11ce-ade5-00aa0044773d"); pub const IID_IRowsetNextRowset = &IID_IRowsetNextRowset_Value; pub const IRowsetNextRowset = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, GetNextRowset: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IRowsetNextRowset, pUnkOuter: ?*IUnknown, riid: ?*const Guid, ppNextRowset: ?*?*IUnknown, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IRowsetNextRowset, pUnkOuter: ?*IUnknown, riid: ?*const Guid, ppNextRowset: ?*?*IUnknown, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRowsetNextRowset_GetNextRowset(self: *const T, pUnkOuter: ?*IUnknown, riid: ?*const Guid, ppNextRowset: ?*?*IUnknown) HRESULT { return @as(*const IRowsetNextRowset.VTable, @ptrCast(self.vtable)).GetNextRowset(@as(*const IRowsetNextRowset, @ptrCast(self)), pUnkOuter, riid, ppNextRowset); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IRowsetNewRowAfter_Value = Guid.initString("0c733a71-2a1c-11ce-ade5-00aa0044773d"); pub const IID_IRowsetNewRowAfter = &IID_IRowsetNewRowAfter_Value; pub const IRowsetNewRowAfter = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, SetNewDataAfter: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IRowsetNewRowAfter, hChapter: usize, cbbmPrevious: u32, pbmPrevious: ?*const u8, hAccessor: usize, pData: ?*u8, phRow: ?*usize, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IRowsetNewRowAfter, hChapter: usize, cbbmPrevious: u32, pbmPrevious: ?*const u8, hAccessor: usize, pData: ?*u8, phRow: ?*usize, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRowsetNewRowAfter_SetNewDataAfter(self: *const T, hChapter: usize, cbbmPrevious: u32, pbmPrevious: ?*const u8, hAccessor: usize, pData: ?*u8, phRow: ?*usize) HRESULT { return @as(*const IRowsetNewRowAfter.VTable, @ptrCast(self.vtable)).SetNewDataAfter(@as(*const IRowsetNewRowAfter, @ptrCast(self)), hChapter, cbbmPrevious, pbmPrevious, hAccessor, pData, phRow); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IRowsetWithParameters_Value = Guid.initString("0c733a6e-2a1c-11ce-ade5-00aa0044773d"); pub const IID_IRowsetWithParameters = &IID_IRowsetWithParameters_Value; pub const IRowsetWithParameters = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, GetParameterInfo: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IRowsetWithParameters, pcParams: ?*usize, prgParamInfo: ?*?*DBPARAMINFO, ppNamesBuffer: ?*?*u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IRowsetWithParameters, pcParams: ?*usize, prgParamInfo: ?*?*DBPARAMINFO, ppNamesBuffer: ?*?*u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Requery: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IRowsetWithParameters, pParams: ?*DBPARAMS, pulErrorParam: ?*u32, phReserved: ?*usize, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IRowsetWithParameters, pParams: ?*DBPARAMS, pulErrorParam: ?*u32, phReserved: ?*usize, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRowsetWithParameters_GetParameterInfo(self: *const T, pcParams: ?*usize, prgParamInfo: ?*?*DBPARAMINFO, ppNamesBuffer: ?*?*u16) HRESULT { return @as(*const IRowsetWithParameters.VTable, @ptrCast(self.vtable)).GetParameterInfo(@as(*const IRowsetWithParameters, @ptrCast(self)), pcParams, prgParamInfo, ppNamesBuffer); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRowsetWithParameters_Requery(self: *const T, pParams: ?*DBPARAMS, pulErrorParam: ?*u32, phReserved: ?*usize) HRESULT { return @as(*const IRowsetWithParameters.VTable, @ptrCast(self.vtable)).Requery(@as(*const IRowsetWithParameters, @ptrCast(self)), pParams, pulErrorParam, phReserved); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IRowsetAsynch_Value = Guid.initString("0c733a0f-2a1c-11ce-ade5-00aa0044773d"); pub const IID_IRowsetAsynch = &IID_IRowsetAsynch_Value; pub const IRowsetAsynch = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, RatioFinished: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IRowsetAsynch, pulDenominator: ?*usize, pulNumerator: ?*usize, pcRows: ?*usize, pfNewRows: ?*BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IRowsetAsynch, pulDenominator: ?*usize, pulNumerator: ?*usize, pcRows: ?*usize, pfNewRows: ?*BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Stop: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IRowsetAsynch, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IRowsetAsynch, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRowsetAsynch_RatioFinished(self: *const T, pulDenominator: ?*usize, pulNumerator: ?*usize, pcRows: ?*usize, pfNewRows: ?*BOOL) HRESULT { return @as(*const IRowsetAsynch.VTable, @ptrCast(self.vtable)).RatioFinished(@as(*const IRowsetAsynch, @ptrCast(self)), pulDenominator, pulNumerator, pcRows, pfNewRows); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRowsetAsynch_Stop(self: *const T) HRESULT { return @as(*const IRowsetAsynch.VTable, @ptrCast(self.vtable)).Stop(@as(*const IRowsetAsynch, @ptrCast(self))); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IRowsetKeys_Value = Guid.initString("0c733a12-2a1c-11ce-ade5-00aa0044773d"); pub const IID_IRowsetKeys = &IID_IRowsetKeys_Value; pub const IRowsetKeys = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, ListKeys: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IRowsetKeys, pcColumns: ?*usize, prgColumns: ?*?*usize, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IRowsetKeys, pcColumns: ?*usize, prgColumns: ?*?*usize, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRowsetKeys_ListKeys(self: *const T, pcColumns: ?*usize, prgColumns: ?*?*usize) HRESULT { return @as(*const IRowsetKeys.VTable, @ptrCast(self.vtable)).ListKeys(@as(*const IRowsetKeys, @ptrCast(self)), pcColumns, prgColumns); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IRowsetWatchAll_Value = Guid.initString("0c733a73-2a1c-11ce-ade5-00aa0044773d"); pub const IID_IRowsetWatchAll = &IID_IRowsetWatchAll_Value; pub const IRowsetWatchAll = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, Acknowledge: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IRowsetWatchAll, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IRowsetWatchAll, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Start: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IRowsetWatchAll, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IRowsetWatchAll, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, StopWatching: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IRowsetWatchAll, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IRowsetWatchAll, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRowsetWatchAll_Acknowledge(self: *const T) HRESULT { return @as(*const IRowsetWatchAll.VTable, @ptrCast(self.vtable)).Acknowledge(@as(*const IRowsetWatchAll, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRowsetWatchAll_Start(self: *const T) HRESULT { return @as(*const IRowsetWatchAll.VTable, @ptrCast(self.vtable)).Start(@as(*const IRowsetWatchAll, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRowsetWatchAll_StopWatching(self: *const T) HRESULT { return @as(*const IRowsetWatchAll.VTable, @ptrCast(self.vtable)).StopWatching(@as(*const IRowsetWatchAll, @ptrCast(self))); } }; } pub usingnamespace MethodMixin(@This()); }; pub const DBWATCHNOTIFYENUM = enum(i32) { ROWSCHANGED = 1, QUERYDONE = 2, QUERYREEXECUTED = 3, }; pub const DBWATCHNOTIFY_ROWSCHANGED = DBWATCHNOTIFYENUM.ROWSCHANGED; pub const DBWATCHNOTIFY_QUERYDONE = DBWATCHNOTIFYENUM.QUERYDONE; pub const DBWATCHNOTIFY_QUERYREEXECUTED = DBWATCHNOTIFYENUM.QUERYREEXECUTED; const IID_IRowsetWatchNotify_Value = Guid.initString("0c733a44-2a1c-11ce-ade5-00aa0044773d"); pub const IID_IRowsetWatchNotify = &IID_IRowsetWatchNotify_Value; pub const IRowsetWatchNotify = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, OnChange: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IRowsetWatchNotify, pRowset: ?*IRowset, eChangeReason: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IRowsetWatchNotify, pRowset: ?*IRowset, eChangeReason: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRowsetWatchNotify_OnChange(self: *const T, pRowset: ?*IRowset, eChangeReason: u32) HRESULT { return @as(*const IRowsetWatchNotify.VTable, @ptrCast(self.vtable)).OnChange(@as(*const IRowsetWatchNotify, @ptrCast(self)), pRowset, eChangeReason); } }; } pub usingnamespace MethodMixin(@This()); }; pub const DBWATCHMODEENUM = enum(i32) { ALL = 1, EXTEND = 2, MOVE = 4, COUNT = 8, }; pub const DBWATCHMODE_ALL = DBWATCHMODEENUM.ALL; pub const DBWATCHMODE_EXTEND = DBWATCHMODEENUM.EXTEND; pub const DBWATCHMODE_MOVE = DBWATCHMODEENUM.MOVE; pub const DBWATCHMODE_COUNT = DBWATCHMODEENUM.COUNT; pub const DBROWCHANGEKINDENUM = enum(i32) { INSERT = 0, DELETE = 1, UPDATE = 2, COUNT = 3, }; pub const DBROWCHANGEKIND_INSERT = DBROWCHANGEKINDENUM.INSERT; pub const DBROWCHANGEKIND_DELETE = DBROWCHANGEKINDENUM.DELETE; pub const DBROWCHANGEKIND_UPDATE = DBROWCHANGEKINDENUM.UPDATE; pub const DBROWCHANGEKIND_COUNT = DBROWCHANGEKINDENUM.COUNT; const IID_IRowsetWatchRegion_Value = Guid.initString("0c733a45-2a1c-11ce-ade5-00aa0044773d"); pub const IID_IRowsetWatchRegion = &IID_IRowsetWatchRegion_Value; pub const IRowsetWatchRegion = extern struct { pub const VTable = extern struct { base: IRowsetWatchAll.VTable, CreateWatchRegion: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IRowsetWatchRegion, dwWatchMode: u32, phRegion: ?*usize, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IRowsetWatchRegion, dwWatchMode: u32, phRegion: ?*usize, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, ChangeWatchMode: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IRowsetWatchRegion, hRegion: usize, dwWatchMode: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IRowsetWatchRegion, hRegion: usize, dwWatchMode: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, DeleteWatchRegion: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IRowsetWatchRegion, hRegion: usize, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IRowsetWatchRegion, hRegion: usize, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetWatchRegionInfo: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IRowsetWatchRegion, hRegion: usize, pdwWatchMode: ?*u32, phChapter: ?*usize, pcbBookmark: ?*usize, ppBookmark: ?*?*u8, pcRows: ?*isize, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IRowsetWatchRegion, hRegion: usize, pdwWatchMode: ?*u32, phChapter: ?*usize, pcbBookmark: ?*usize, ppBookmark: ?*?*u8, pcRows: ?*isize, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Refresh: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IRowsetWatchRegion, pcChangesObtained: ?*usize, prgChanges: ?*?*tagDBROWWATCHRANGE, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IRowsetWatchRegion, pcChangesObtained: ?*usize, prgChanges: ?*?*tagDBROWWATCHRANGE, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, ShrinkWatchRegion: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IRowsetWatchRegion, hRegion: usize, hChapter: usize, cbBookmark: usize, pBookmark: ?*u8, cRows: isize, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IRowsetWatchRegion, hRegion: usize, hChapter: usize, cbBookmark: usize, pBookmark: ?*u8, cRows: isize, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IRowsetWatchAll.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRowsetWatchRegion_CreateWatchRegion(self: *const T, dwWatchMode: u32, phRegion: ?*usize) HRESULT { return @as(*const IRowsetWatchRegion.VTable, @ptrCast(self.vtable)).CreateWatchRegion(@as(*const IRowsetWatchRegion, @ptrCast(self)), dwWatchMode, phRegion); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRowsetWatchRegion_ChangeWatchMode(self: *const T, hRegion: usize, dwWatchMode: u32) HRESULT { return @as(*const IRowsetWatchRegion.VTable, @ptrCast(self.vtable)).ChangeWatchMode(@as(*const IRowsetWatchRegion, @ptrCast(self)), hRegion, dwWatchMode); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRowsetWatchRegion_DeleteWatchRegion(self: *const T, hRegion: usize) HRESULT { return @as(*const IRowsetWatchRegion.VTable, @ptrCast(self.vtable)).DeleteWatchRegion(@as(*const IRowsetWatchRegion, @ptrCast(self)), hRegion); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRowsetWatchRegion_GetWatchRegionInfo(self: *const T, hRegion: usize, pdwWatchMode: ?*u32, phChapter: ?*usize, pcbBookmark: ?*usize, ppBookmark: ?*?*u8, pcRows: ?*isize) HRESULT { return @as(*const IRowsetWatchRegion.VTable, @ptrCast(self.vtable)).GetWatchRegionInfo(@as(*const IRowsetWatchRegion, @ptrCast(self)), hRegion, pdwWatchMode, phChapter, pcbBookmark, ppBookmark, pcRows); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRowsetWatchRegion_Refresh(self: *const T, pcChangesObtained: ?*usize, prgChanges: ?*?*tagDBROWWATCHRANGE) HRESULT { return @as(*const IRowsetWatchRegion.VTable, @ptrCast(self.vtable)).Refresh(@as(*const IRowsetWatchRegion, @ptrCast(self)), pcChangesObtained, prgChanges); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRowsetWatchRegion_ShrinkWatchRegion(self: *const T, hRegion: usize, hChapter: usize, cbBookmark: usize, pBookmark: ?*u8, cRows: isize) HRESULT { return @as(*const IRowsetWatchRegion.VTable, @ptrCast(self.vtable)).ShrinkWatchRegion(@as(*const IRowsetWatchRegion, @ptrCast(self)), hRegion, hChapter, cbBookmark, pBookmark, cRows); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IRowsetCopyRows_Value = Guid.initString("0c733a6b-2a1c-11ce-ade5-00aa0044773d"); pub const IID_IRowsetCopyRows = &IID_IRowsetCopyRows_Value; pub const IRowsetCopyRows = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, CloseSource: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IRowsetCopyRows, hSourceID: u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IRowsetCopyRows, hSourceID: u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, CopyByHROWS: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IRowsetCopyRows, hSourceID: u16, hReserved: usize, cRows: isize, rghRows: ?*const usize, bFlags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IRowsetCopyRows, hSourceID: u16, hReserved: usize, cRows: isize, rghRows: ?*const usize, bFlags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, CopyRows: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IRowsetCopyRows, hSourceID: u16, hReserved: usize, cRows: isize, bFlags: u32, pcRowsCopied: ?*usize, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IRowsetCopyRows, hSourceID: u16, hReserved: usize, cRows: isize, bFlags: u32, pcRowsCopied: ?*usize, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, DefineSource: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IRowsetCopyRows, pRowsetSource: ?*IRowset, cColIds: usize, rgSourceColumns: ?*const isize, rgTargetColumns: ?*const isize, phSourceID: ?*u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IRowsetCopyRows, pRowsetSource: ?*IRowset, cColIds: usize, rgSourceColumns: ?*const isize, rgTargetColumns: ?*const isize, phSourceID: ?*u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRowsetCopyRows_CloseSource(self: *const T, hSourceID: u16) HRESULT { return @as(*const IRowsetCopyRows.VTable, @ptrCast(self.vtable)).CloseSource(@as(*const IRowsetCopyRows, @ptrCast(self)), hSourceID); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRowsetCopyRows_CopyByHROWS(self: *const T, hSourceID: u16, hReserved: usize, cRows: isize, rghRows: ?*const usize, bFlags: u32) HRESULT { return @as(*const IRowsetCopyRows.VTable, @ptrCast(self.vtable)).CopyByHROWS(@as(*const IRowsetCopyRows, @ptrCast(self)), hSourceID, hReserved, cRows, rghRows, bFlags); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRowsetCopyRows_CopyRows(self: *const T, hSourceID: u16, hReserved: usize, cRows: isize, bFlags: u32, pcRowsCopied: ?*usize) HRESULT { return @as(*const IRowsetCopyRows.VTable, @ptrCast(self.vtable)).CopyRows(@as(*const IRowsetCopyRows, @ptrCast(self)), hSourceID, hReserved, cRows, bFlags, pcRowsCopied); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRowsetCopyRows_DefineSource(self: *const T, pRowsetSource: ?*IRowset, cColIds: usize, rgSourceColumns: ?*const isize, rgTargetColumns: ?*const isize, phSourceID: ?*u16) HRESULT { return @as(*const IRowsetCopyRows.VTable, @ptrCast(self.vtable)).DefineSource(@as(*const IRowsetCopyRows, @ptrCast(self)), pRowsetSource, cColIds, rgSourceColumns, rgTargetColumns, phSourceID); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IReadData_Value = Guid.initString("0c733a6a-2a1c-11ce-ade5-00aa0044773d"); pub const IID_IReadData = &IID_IReadData_Value; pub const IReadData = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, ReadData: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IReadData, hChapter: usize, cbBookmark: usize, pBookmark: ?*const u8, lRowsOffset: isize, hAccessor: usize, cRows: isize, pcRowsObtained: ?*usize, ppFixedData: ?*?*u8, pcbVariableTotal: ?*usize, ppVariableData: ?*?*u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IReadData, hChapter: usize, cbBookmark: usize, pBookmark: ?*const u8, lRowsOffset: isize, hAccessor: usize, cRows: isize, pcRowsObtained: ?*usize, ppFixedData: ?*?*u8, pcbVariableTotal: ?*usize, ppVariableData: ?*?*u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, ReleaseChapter: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IReadData, hChapter: usize, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IReadData, hChapter: usize, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IReadData_ReadData(self: *const T, hChapter: usize, cbBookmark: usize, pBookmark: ?*const u8, lRowsOffset: isize, hAccessor: usize, cRows: isize, pcRowsObtained: ?*usize, ppFixedData: ?*?*u8, pcbVariableTotal: ?*usize, ppVariableData: ?*?*u8) HRESULT { return @as(*const IReadData.VTable, @ptrCast(self.vtable)).ReadData(@as(*const IReadData, @ptrCast(self)), hChapter, cbBookmark, pBookmark, lRowsOffset, hAccessor, cRows, pcRowsObtained, ppFixedData, pcbVariableTotal, ppVariableData); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IReadData_ReleaseChapter(self: *const T, hChapter: usize) HRESULT { return @as(*const IReadData.VTable, @ptrCast(self.vtable)).ReleaseChapter(@as(*const IReadData, @ptrCast(self)), hChapter); } }; } pub usingnamespace MethodMixin(@This()); }; pub const DBRESOURCEKINDENUM = enum(i32) { INVALID = 0, TOTAL = 1, CPU = 2, MEMORY = 3, DISK = 4, NETWORK = 5, RESPONSE = 6, ROWS = 7, OTHER = 8, }; pub const DBRESOURCE_INVALID = DBRESOURCEKINDENUM.INVALID; pub const DBRESOURCE_TOTAL = DBRESOURCEKINDENUM.TOTAL; pub const DBRESOURCE_CPU = DBRESOURCEKINDENUM.CPU; pub const DBRESOURCE_MEMORY = DBRESOURCEKINDENUM.MEMORY; pub const DBRESOURCE_DISK = DBRESOURCEKINDENUM.DISK; pub const DBRESOURCE_NETWORK = DBRESOURCEKINDENUM.NETWORK; pub const DBRESOURCE_RESPONSE = DBRESOURCEKINDENUM.RESPONSE; pub const DBRESOURCE_ROWS = DBRESOURCEKINDENUM.ROWS; pub const DBRESOURCE_OTHER = DBRESOURCEKINDENUM.OTHER; pub const DBCOSTUNITENUM = enum(i32) { INVALID = 0, WEIGHT = 1, PERCENT = 2, MAXIMUM = 4, MINIMUM = 8, MICRO_SECOND = 16, MILLI_SECOND = 32, SECOND = 64, MINUTE = 128, HOUR = 256, BYTE = 512, KILO_BYTE = 1024, MEGA_BYTE = 2048, GIGA_BYTE = 4096, NUM_MSGS = 8192, NUM_LOCKS = 16384, NUM_ROWS = 32768, OTHER = 65536, }; pub const DBUNIT_INVALID = DBCOSTUNITENUM.INVALID; pub const DBUNIT_WEIGHT = DBCOSTUNITENUM.WEIGHT; pub const DBUNIT_PERCENT = DBCOSTUNITENUM.PERCENT; pub const DBUNIT_MAXIMUM = DBCOSTUNITENUM.MAXIMUM; pub const DBUNIT_MINIMUM = DBCOSTUNITENUM.MINIMUM; pub const DBUNIT_MICRO_SECOND = DBCOSTUNITENUM.MICRO_SECOND; pub const DBUNIT_MILLI_SECOND = DBCOSTUNITENUM.MILLI_SECOND; pub const DBUNIT_SECOND = DBCOSTUNITENUM.SECOND; pub const DBUNIT_MINUTE = DBCOSTUNITENUM.MINUTE; pub const DBUNIT_HOUR = DBCOSTUNITENUM.HOUR; pub const DBUNIT_BYTE = DBCOSTUNITENUM.BYTE; pub const DBUNIT_KILO_BYTE = DBCOSTUNITENUM.KILO_BYTE; pub const DBUNIT_MEGA_BYTE = DBCOSTUNITENUM.MEGA_BYTE; pub const DBUNIT_GIGA_BYTE = DBCOSTUNITENUM.GIGA_BYTE; pub const DBUNIT_NUM_MSGS = DBCOSTUNITENUM.NUM_MSGS; pub const DBUNIT_NUM_LOCKS = DBCOSTUNITENUM.NUM_LOCKS; pub const DBUNIT_NUM_ROWS = DBCOSTUNITENUM.NUM_ROWS; pub const DBUNIT_OTHER = DBCOSTUNITENUM.OTHER; pub const DBEXECLIMITSENUM = enum(i32) { ABORT = 1, STOP = 2, SUSPEND = 3, }; pub const DBEXECLIMITS_ABORT = DBEXECLIMITSENUM.ABORT; pub const DBEXECLIMITS_STOP = DBEXECLIMITSENUM.STOP; pub const DBEXECLIMITS_SUSPEND = DBEXECLIMITSENUM.SUSPEND; const IID_ICommandCost_Value = Guid.initString("0c733a4e-2a1c-11ce-ade5-00aa0044773d"); pub const IID_ICommandCost = &IID_ICommandCost_Value; pub const ICommandCost = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, GetAccumulatedCost: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ICommandCost, pwszRowsetName: ?[*:0]const u16, pcCostLimits: ?*u32, prgCostLimits: ?*?*DBCOST, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ICommandCost, pwszRowsetName: ?[*:0]const u16, pcCostLimits: ?*u32, prgCostLimits: ?*?*DBCOST, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetCostEstimate: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ICommandCost, pwszRowsetName: ?[*:0]const u16, pcCostEstimates: ?*u32, prgCostEstimates: ?*DBCOST, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ICommandCost, pwszRowsetName: ?[*:0]const u16, pcCostEstimates: ?*u32, prgCostEstimates: ?*DBCOST, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetCostGoals: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ICommandCost, pwszRowsetName: ?[*:0]const u16, pcCostGoals: ?*u32, prgCostGoals: ?*DBCOST, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ICommandCost, pwszRowsetName: ?[*:0]const u16, pcCostGoals: ?*u32, prgCostGoals: ?*DBCOST, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetCostLimits: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ICommandCost, pwszRowsetName: ?[*:0]const u16, pcCostLimits: ?*u32, prgCostLimits: ?*DBCOST, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ICommandCost, pwszRowsetName: ?[*:0]const u16, pcCostLimits: ?*u32, prgCostLimits: ?*DBCOST, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetCostGoals: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ICommandCost, pwszRowsetName: ?[*:0]const u16, cCostGoals: u32, rgCostGoals: ?*const DBCOST, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ICommandCost, pwszRowsetName: ?[*:0]const u16, cCostGoals: u32, rgCostGoals: ?*const DBCOST, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetCostLimits: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ICommandCost, pwszRowsetName: ?[*:0]const u16, cCostLimits: u32, prgCostLimits: ?*DBCOST, dwExecutionFlags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ICommandCost, pwszRowsetName: ?[*:0]const u16, cCostLimits: u32, prgCostLimits: ?*DBCOST, dwExecutionFlags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ICommandCost_GetAccumulatedCost(self: *const T, pwszRowsetName: ?[*:0]const u16, pcCostLimits: ?*u32, prgCostLimits: ?*?*DBCOST) HRESULT { return @as(*const ICommandCost.VTable, @ptrCast(self.vtable)).GetAccumulatedCost(@as(*const ICommandCost, @ptrCast(self)), pwszRowsetName, pcCostLimits, prgCostLimits); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ICommandCost_GetCostEstimate(self: *const T, pwszRowsetName: ?[*:0]const u16, pcCostEstimates: ?*u32, prgCostEstimates: ?*DBCOST) HRESULT { return @as(*const ICommandCost.VTable, @ptrCast(self.vtable)).GetCostEstimate(@as(*const ICommandCost, @ptrCast(self)), pwszRowsetName, pcCostEstimates, prgCostEstimates); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ICommandCost_GetCostGoals(self: *const T, pwszRowsetName: ?[*:0]const u16, pcCostGoals: ?*u32, prgCostGoals: ?*DBCOST) HRESULT { return @as(*const ICommandCost.VTable, @ptrCast(self.vtable)).GetCostGoals(@as(*const ICommandCost, @ptrCast(self)), pwszRowsetName, pcCostGoals, prgCostGoals); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ICommandCost_GetCostLimits(self: *const T, pwszRowsetName: ?[*:0]const u16, pcCostLimits: ?*u32, prgCostLimits: ?*DBCOST) HRESULT { return @as(*const ICommandCost.VTable, @ptrCast(self.vtable)).GetCostLimits(@as(*const ICommandCost, @ptrCast(self)), pwszRowsetName, pcCostLimits, prgCostLimits); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ICommandCost_SetCostGoals(self: *const T, pwszRowsetName: ?[*:0]const u16, cCostGoals: u32, rgCostGoals: ?*const DBCOST) HRESULT { return @as(*const ICommandCost.VTable, @ptrCast(self.vtable)).SetCostGoals(@as(*const ICommandCost, @ptrCast(self)), pwszRowsetName, cCostGoals, rgCostGoals); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ICommandCost_SetCostLimits(self: *const T, pwszRowsetName: ?[*:0]const u16, cCostLimits: u32, prgCostLimits: ?*DBCOST, dwExecutionFlags: u32) HRESULT { return @as(*const ICommandCost.VTable, @ptrCast(self.vtable)).SetCostLimits(@as(*const ICommandCost, @ptrCast(self)), pwszRowsetName, cCostLimits, prgCostLimits, dwExecutionFlags); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_ICommandValidate_Value = Guid.initString("0c733a18-2a1c-11ce-ade5-00aa0044773d"); pub const IID_ICommandValidate = &IID_ICommandValidate_Value; pub const ICommandValidate = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, ValidateCompletely: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ICommandValidate, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ICommandValidate, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, ValidateSyntax: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ICommandValidate, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ICommandValidate, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ICommandValidate_ValidateCompletely(self: *const T) HRESULT { return @as(*const ICommandValidate.VTable, @ptrCast(self.vtable)).ValidateCompletely(@as(*const ICommandValidate, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ICommandValidate_ValidateSyntax(self: *const T) HRESULT { return @as(*const ICommandValidate.VTable, @ptrCast(self.vtable)).ValidateSyntax(@as(*const ICommandValidate, @ptrCast(self))); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_ITableRename_Value = Guid.initString("0c733a77-2a1c-11ce-ade5-00aa0044773d"); pub const IID_ITableRename = &IID_ITableRename_Value; pub const ITableRename = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, RenameColumn: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ITableRename, pTableId: ?*DBID, pOldColumnId: ?*DBID, pNewColumnId: ?*DBID, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ITableRename, pTableId: ?*DBID, pOldColumnId: ?*DBID, pNewColumnId: ?*DBID, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, RenameTable: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ITableRename, pOldTableId: ?*DBID, pOldIndexId: ?*DBID, pNewTableId: ?*DBID, pNewIndexId: ?*DBID, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ITableRename, pOldTableId: ?*DBID, pOldIndexId: ?*DBID, pNewTableId: ?*DBID, pNewIndexId: ?*DBID, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITableRename_RenameColumn(self: *const T, pTableId: ?*DBID, pOldColumnId: ?*DBID, pNewColumnId: ?*DBID) HRESULT { return @as(*const ITableRename.VTable, @ptrCast(self.vtable)).RenameColumn(@as(*const ITableRename, @ptrCast(self)), pTableId, pOldColumnId, pNewColumnId); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITableRename_RenameTable(self: *const T, pOldTableId: ?*DBID, pOldIndexId: ?*DBID, pNewTableId: ?*DBID, pNewIndexId: ?*DBID) HRESULT { return @as(*const ITableRename.VTable, @ptrCast(self.vtable)).RenameTable(@as(*const ITableRename, @ptrCast(self)), pOldTableId, pOldIndexId, pNewTableId, pNewIndexId); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IDBSchemaCommand_Value = Guid.initString("0c733a50-2a1c-11ce-ade5-00aa0044773d"); pub const IID_IDBSchemaCommand = &IID_IDBSchemaCommand_Value; pub const IDBSchemaCommand = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, GetCommand: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDBSchemaCommand, pUnkOuter: ?*IUnknown, rguidSchema: ?*const Guid, ppCommand: ?*?*ICommand, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDBSchemaCommand, pUnkOuter: ?*IUnknown, rguidSchema: ?*const Guid, ppCommand: ?*?*ICommand, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetSchemas: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDBSchemaCommand, pcSchemas: ?*u32, prgSchemas: ?*?*Guid, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDBSchemaCommand, pcSchemas: ?*u32, prgSchemas: ?*?*Guid, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDBSchemaCommand_GetCommand(self: *const T, pUnkOuter: ?*IUnknown, rguidSchema: ?*const Guid, ppCommand: ?*?*ICommand) HRESULT { return @as(*const IDBSchemaCommand.VTable, @ptrCast(self.vtable)).GetCommand(@as(*const IDBSchemaCommand, @ptrCast(self)), pUnkOuter, rguidSchema, ppCommand); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDBSchemaCommand_GetSchemas(self: *const T, pcSchemas: ?*u32, prgSchemas: ?*?*Guid) HRESULT { return @as(*const IDBSchemaCommand.VTable, @ptrCast(self.vtable)).GetSchemas(@as(*const IDBSchemaCommand, @ptrCast(self)), pcSchemas, prgSchemas); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IProvideMoniker_Value = Guid.initString("0c733a4d-2a1c-11ce-ade5-00aa0044773d"); pub const IID_IProvideMoniker = &IID_IProvideMoniker_Value; pub const IProvideMoniker = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, GetMoniker: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IProvideMoniker, ppIMoniker: ?*?*IMoniker, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IProvideMoniker, ppIMoniker: ?*?*IMoniker, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IProvideMoniker_GetMoniker(self: *const T, ppIMoniker: ?*?*IMoniker) HRESULT { return @as(*const IProvideMoniker.VTable, @ptrCast(self.vtable)).GetMoniker(@as(*const IProvideMoniker, @ptrCast(self)), ppIMoniker); } }; } pub usingnamespace MethodMixin(@This()); }; pub const NOTRESTRICTION = extern struct { pRes: ?*RESTRICTION, }; pub const NODERESTRICTION = extern struct { cRes: u32, paRes: ?*?*RESTRICTION, reserved: u32, }; pub const VECTORRESTRICTION = extern struct { Node: NODERESTRICTION, RankMethod: u32, }; pub const CONTENTRESTRICTION = extern struct { prop: FULLPROPSPEC, pwcsPhrase: ?PWSTR, lcid: u32, ulGenerateMethod: u32, }; pub const NATLANGUAGERESTRICTION = extern struct { prop: FULLPROPSPEC, pwcsPhrase: ?PWSTR, lcid: u32, }; pub const PROPERTYRESTRICTION = extern struct { rel: u32, prop: FULLPROPSPEC, prval: PROPVARIANT, }; pub const RESTRICTION = extern struct { pub const _URes = extern union { ar: NODERESTRICTION, orRestriction: NODERESTRICTION, pxr: NODERESTRICTION, vr: VECTORRESTRICTION, nr: NOTRESTRICTION, cr: CONTENTRESTRICTION, nlr: NATLANGUAGERESTRICTION, pr: PROPERTYRESTRICTION, }; rt: u32, weight: u32, res: _URes, }; pub const COLUMNSET = extern struct { cCol: u32, aCol: ?*FULLPROPSPEC, }; pub const SORTKEY = extern struct { propColumn: FULLPROPSPEC, dwOrder: u32, locale: u32, }; pub const SORTSET = extern struct { cCol: u32, aCol: ?*SORTKEY, }; pub const BUCKETCATEGORIZE = extern struct { cBuckets: u32, Distribution: u32, }; pub const RANGECATEGORIZE = extern struct { cRange: u32, aRangeBegin: ?*PROPVARIANT, }; pub const CATEGORIZATION = extern struct { ulCatType: u32, Anonymous: extern union { cClusters: u32, bucket: BUCKETCATEGORIZE, range: RANGECATEGORIZE, }, csColumns: COLUMNSET, }; pub const CATEGORIZATIONSET = extern struct { cCat: u32, aCat: ?*CATEGORIZATION, }; const IID_ISearchQueryHits_Value = Guid.initString("ed8ce7e0-106c-11ce-84e2-00aa004b9986"); pub const IID_ISearchQueryHits = &IID_ISearchQueryHits_Value; pub const ISearchQueryHits = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, Init: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ISearchQueryHits, pflt: ?*IFilter, ulFlags: u32, ) callconv(@import("std").os.windows.WINAPI) i32, else => *const fn ( self: *const ISearchQueryHits, pflt: ?*IFilter, ulFlags: u32, ) callconv(@import("std").os.windows.WINAPI) i32, }, NextHitMoniker: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ISearchQueryHits, pcMnk: ?*u32, papMnk: ?*?*?*IMoniker, ) callconv(@import("std").os.windows.WINAPI) i32, else => *const fn ( self: *const ISearchQueryHits, pcMnk: ?*u32, papMnk: ?*?*?*IMoniker, ) callconv(@import("std").os.windows.WINAPI) i32, }, NextHitOffset: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ISearchQueryHits, pcRegion: ?*u32, paRegion: ?*?*FILTERREGION, ) callconv(@import("std").os.windows.WINAPI) i32, else => *const fn ( self: *const ISearchQueryHits, pcRegion: ?*u32, paRegion: ?*?*FILTERREGION, ) callconv(@import("std").os.windows.WINAPI) i32, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISearchQueryHits_Init(self: *const T, pflt: ?*IFilter, ulFlags: u32) i32 { return @as(*const ISearchQueryHits.VTable, @ptrCast(self.vtable)).Init(@as(*const ISearchQueryHits, @ptrCast(self)), pflt, ulFlags); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISearchQueryHits_NextHitMoniker(self: *const T, pcMnk: ?*u32, papMnk: ?*?*?*IMoniker) i32 { return @as(*const ISearchQueryHits.VTable, @ptrCast(self.vtable)).NextHitMoniker(@as(*const ISearchQueryHits, @ptrCast(self)), pcMnk, papMnk); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISearchQueryHits_NextHitOffset(self: *const T, pcRegion: ?*u32, paRegion: ?*?*FILTERREGION) i32 { return @as(*const ISearchQueryHits.VTable, @ptrCast(self.vtable)).NextHitOffset(@as(*const ISearchQueryHits, @ptrCast(self)), pcRegion, paRegion); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IRowsetQueryStatus_Value = Guid.initString("a7ac77ed-f8d7-11ce-a798-0020f8008024"); pub const IID_IRowsetQueryStatus = &IID_IRowsetQueryStatus_Value; pub const IRowsetQueryStatus = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, GetStatus: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IRowsetQueryStatus, pdwStatus: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IRowsetQueryStatus, pdwStatus: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetStatusEx: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IRowsetQueryStatus, pdwStatus: ?*u32, pcFilteredDocuments: ?*u32, pcDocumentsToFilter: ?*u32, pdwRatioFinishedDenominator: ?*usize, pdwRatioFinishedNumerator: ?*usize, cbBmk: usize, pBmk: ?*const u8, piRowBmk: ?*usize, pcRowsTotal: ?*usize, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IRowsetQueryStatus, pdwStatus: ?*u32, pcFilteredDocuments: ?*u32, pcDocumentsToFilter: ?*u32, pdwRatioFinishedDenominator: ?*usize, pdwRatioFinishedNumerator: ?*usize, cbBmk: usize, pBmk: ?*const u8, piRowBmk: ?*usize, pcRowsTotal: ?*usize, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRowsetQueryStatus_GetStatus(self: *const T, pdwStatus: ?*u32) HRESULT { return @as(*const IRowsetQueryStatus.VTable, @ptrCast(self.vtable)).GetStatus(@as(*const IRowsetQueryStatus, @ptrCast(self)), pdwStatus); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRowsetQueryStatus_GetStatusEx(self: *const T, pdwStatus: ?*u32, pcFilteredDocuments: ?*u32, pcDocumentsToFilter: ?*u32, pdwRatioFinishedDenominator: ?*usize, pdwRatioFinishedNumerator: ?*usize, cbBmk: usize, pBmk: ?*const u8, piRowBmk: ?*usize, pcRowsTotal: ?*usize) HRESULT { return @as(*const IRowsetQueryStatus.VTable, @ptrCast(self.vtable)).GetStatusEx(@as(*const IRowsetQueryStatus, @ptrCast(self)), pdwStatus, pcFilteredDocuments, pcDocumentsToFilter, pdwRatioFinishedDenominator, pdwRatioFinishedNumerator, cbBmk, pBmk, piRowBmk, pcRowsTotal); } }; } pub usingnamespace MethodMixin(@This()); }; pub const ODBC_VS_ARGS = extern struct { pguidEvent: ?*const Guid, dwFlags: u32, Anonymous1: extern union { wszArg: ?PWSTR, szArg: ?PSTR, }, Anonymous2: extern union { wszCorrelation: ?PWSTR, szCorrelation: ?PSTR, }, RetCode: i16, }; pub const SQLVARENUM = enum(i32) { EMPTY = 0, NULL = 1, UI1 = 17, I2 = 2, I4 = 3, I8 = 20, R4 = 4, R8 = 5, MONEY = 6, SMALLMONEY = 200, WSTRING = 201, WVARSTRING = 202, STRING = 203, VARSTRING = 204, BIT = 11, GUID = 72, NUMERIC = 131, DECIMAL = 205, DATETIME = 135, SMALLDATETIME = 206, BINARY = 207, VARBINARY = 208, UNKNOWN = 209, }; pub const VT_SS_EMPTY = SQLVARENUM.EMPTY; pub const VT_SS_NULL = SQLVARENUM.NULL; pub const VT_SS_UI1 = SQLVARENUM.UI1; pub const VT_SS_I2 = SQLVARENUM.I2; pub const VT_SS_I4 = SQLVARENUM.I4; pub const VT_SS_I8 = SQLVARENUM.I8; pub const VT_SS_R4 = SQLVARENUM.R4; pub const VT_SS_R8 = SQLVARENUM.R8; pub const VT_SS_MONEY = SQLVARENUM.MONEY; pub const VT_SS_SMALLMONEY = SQLVARENUM.SMALLMONEY; pub const VT_SS_WSTRING = SQLVARENUM.WSTRING; pub const VT_SS_WVARSTRING = SQLVARENUM.WVARSTRING; pub const VT_SS_STRING = SQLVARENUM.STRING; pub const VT_SS_VARSTRING = SQLVARENUM.VARSTRING; pub const VT_SS_BIT = SQLVARENUM.BIT; pub const VT_SS_GUID = SQLVARENUM.GUID; pub const VT_SS_NUMERIC = SQLVARENUM.NUMERIC; pub const VT_SS_DECIMAL = SQLVARENUM.DECIMAL; pub const VT_SS_DATETIME = SQLVARENUM.DATETIME; pub const VT_SS_SMALLDATETIME = SQLVARENUM.SMALLDATETIME; pub const VT_SS_BINARY = SQLVARENUM.BINARY; pub const VT_SS_VARBINARY = SQLVARENUM.VARBINARY; pub const VT_SS_UNKNOWN = SQLVARENUM.UNKNOWN; pub const SSVARIANT = extern struct { vt: u16, dwReserved1: u32, dwReserved2: u32, Anonymous: extern union { pub const _UnknownType = extern struct { dwActualLength: u32, rgMetadata: [16]u8, pUnknownData: ?*u8, }; pub const _CharVal = extern struct { sActualLength: i16, sMaxLength: i16, pchCharVal: ?PSTR, rgbReserved: [5]u8, dwReserved: u32, pwchReserved: ?PWSTR, }; pub const _BinaryVal = extern struct { sActualLength: i16, sMaxLength: i16, prgbBinaryVal: ?*u8, dwReserved: u32, }; pub const _BLOBType = extern struct { dbobj: DBOBJECT, pUnk: ?*IUnknown, }; pub const _NCharVal = extern struct { sActualLength: i16, sMaxLength: i16, pwchNCharVal: ?PWSTR, rgbReserved: [5]u8, dwReserved: u32, pwchReserved: ?PWSTR, }; bTinyIntVal: u8, sShortIntVal: i16, lIntVal: i32, llBigIntVal: i64, fltRealVal: f32, dblFloatVal: f64, cyMoneyVal: CY, NCharVal: _NCharVal, CharVal: _CharVal, fBitVal: i16, rgbGuidVal: [16]u8, numNumericVal: DB_NUMERIC, BinaryVal: _BinaryVal, tsDateTimeVal: DBTIMESTAMP, UnknownType: _UnknownType, BLOBType: _BLOBType, }, }; const IID_IUMSInitialize_Value = Guid.initString("5cf4ca14-ef21-11d0-97e7-00c04fc2ad98"); pub const IID_IUMSInitialize = &IID_IUMSInitialize_Value; pub const IUMSInitialize = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, Initialize: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IUMSInitialize, pUMS: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IUMSInitialize, pUMS: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IUMSInitialize_Initialize(self: *const T, pUMS: ?*anyopaque) HRESULT { return @as(*const IUMSInitialize.VTable, @ptrCast(self.vtable)).Initialize(@as(*const IUMSInitialize, @ptrCast(self)), pUMS); } }; } pub usingnamespace MethodMixin(@This()); }; pub const IUMS = extern struct { pub const VTable = extern struct { SqlUmsSuspend: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IUMS, ticks: u32, ) callconv(@import("std").os.windows.WINAPI) void, else => *const fn ( self: *const IUMS, ticks: u32, ) callconv(@import("std").os.windows.WINAPI) void, }, SqlUmsYield: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IUMS, ticks: u32, ) callconv(@import("std").os.windows.WINAPI) void, else => *const fn ( self: *const IUMS, ticks: u32, ) callconv(@import("std").os.windows.WINAPI) void, }, SqlUmsSwitchPremptive: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IUMS, ) callconv(@import("std").os.windows.WINAPI) void, else => *const fn ( self: *const IUMS, ) callconv(@import("std").os.windows.WINAPI) void, }, SqlUmsSwitchNonPremptive: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IUMS, ) callconv(@import("std").os.windows.WINAPI) void, else => *const fn ( self: *const IUMS, ) callconv(@import("std").os.windows.WINAPI) void, }, SqlUmsFIsPremptive: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IUMS, ) callconv(@import("std").os.windows.WINAPI) BOOL, else => *const fn ( self: *const IUMS, ) callconv(@import("std").os.windows.WINAPI) BOOL, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IUMS_SqlUmsSuspend(self: *const T, ticks: u32) void { return @as(*const IUMS.VTable, @ptrCast(self.vtable)).SqlUmsSuspend(@as(*const IUMS, @ptrCast(self)), ticks); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IUMS_SqlUmsYield(self: *const T, ticks: u32) void { return @as(*const IUMS.VTable, @ptrCast(self.vtable)).SqlUmsYield(@as(*const IUMS, @ptrCast(self)), ticks); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IUMS_SqlUmsSwitchPremptive(self: *const T) void { return @as(*const IUMS.VTable, @ptrCast(self.vtable)).SqlUmsSwitchPremptive(@as(*const IUMS, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IUMS_SqlUmsSwitchNonPremptive(self: *const T) void { return @as(*const IUMS.VTable, @ptrCast(self.vtable)).SqlUmsSwitchNonPremptive(@as(*const IUMS, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IUMS_SqlUmsFIsPremptive(self: *const T) BOOL { return @as(*const IUMS.VTable, @ptrCast(self.vtable)).SqlUmsFIsPremptive(@as(*const IUMS, @ptrCast(self))); } }; } pub usingnamespace MethodMixin(@This()); }; pub const tagSSErrorInfo = extern struct { pwszMessage: ?PWSTR, pwszServer: ?PWSTR, pwszProcedure: ?PWSTR, lNative: i32, bState: u8, bClass: u8, wLineNumber: u16, }; const IID_ISQLServerErrorInfo_Value = Guid.initString("5cf4ca12-ef21-11d0-97e7-00c04fc2ad98"); pub const IID_ISQLServerErrorInfo = &IID_ISQLServerErrorInfo_Value; pub const ISQLServerErrorInfo = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, GetErrorInfo: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ISQLServerErrorInfo, ppErrorInfo: ?*?*tagSSErrorInfo, ppStringsBuffer: ?*?*u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ISQLServerErrorInfo, ppErrorInfo: ?*?*tagSSErrorInfo, ppStringsBuffer: ?*?*u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISQLServerErrorInfo_GetErrorInfo(self: *const T, ppErrorInfo: ?*?*tagSSErrorInfo, ppStringsBuffer: ?*?*u16) HRESULT { return @as(*const ISQLServerErrorInfo.VTable, @ptrCast(self.vtable)).GetErrorInfo(@as(*const ISQLServerErrorInfo, @ptrCast(self)), ppErrorInfo, ppStringsBuffer); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IRowsetFastLoad_Value = Guid.initString("5cf4ca13-ef21-11d0-97e7-00c04fc2ad98"); pub const IID_IRowsetFastLoad = &IID_IRowsetFastLoad_Value; pub const IRowsetFastLoad = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, InsertRow: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IRowsetFastLoad, hAccessor: usize, pData: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IRowsetFastLoad, hAccessor: usize, pData: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Commit: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IRowsetFastLoad, fDone: BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IRowsetFastLoad, fDone: BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRowsetFastLoad_InsertRow(self: *const T, hAccessor: usize, pData: ?*anyopaque) HRESULT { return @as(*const IRowsetFastLoad.VTable, @ptrCast(self.vtable)).InsertRow(@as(*const IRowsetFastLoad, @ptrCast(self)), hAccessor, pData); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRowsetFastLoad_Commit(self: *const T, fDone: BOOL) HRESULT { return @as(*const IRowsetFastLoad.VTable, @ptrCast(self.vtable)).Commit(@as(*const IRowsetFastLoad, @ptrCast(self)), fDone); } }; } pub usingnamespace MethodMixin(@This()); }; pub const LOCKMODEENUM = enum(i32) { INVALID = 0, EXCLUSIVE = 1, SHARED = 2, }; pub const LOCKMODE_INVALID = LOCKMODEENUM.INVALID; pub const LOCKMODE_EXCLUSIVE = LOCKMODEENUM.EXCLUSIVE; pub const LOCKMODE_SHARED = LOCKMODEENUM.SHARED; const IID_ISchemaLock_Value = Guid.initString("4c2389fb-2511-11d4-b258-00c04f7971ce"); pub const IID_ISchemaLock = &IID_ISchemaLock_Value; pub const ISchemaLock = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, GetSchemaLock: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ISchemaLock, pTableID: ?*DBID, lmMode: u32, phLockHandle: ?*?HANDLE, pTableVersion: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ISchemaLock, pTableID: ?*DBID, lmMode: u32, phLockHandle: ?*?HANDLE, pTableVersion: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, ReleaseSchemaLock: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ISchemaLock, hLockHandle: ?HANDLE, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ISchemaLock, hLockHandle: ?HANDLE, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISchemaLock_GetSchemaLock(self: *const T, pTableID: ?*DBID, lmMode: u32, phLockHandle: ?*?HANDLE, pTableVersion: ?*u64) HRESULT { return @as(*const ISchemaLock.VTable, @ptrCast(self.vtable)).GetSchemaLock(@as(*const ISchemaLock, @ptrCast(self)), pTableID, lmMode, phLockHandle, pTableVersion); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISchemaLock_ReleaseSchemaLock(self: *const T, hLockHandle: ?HANDLE) HRESULT { return @as(*const ISchemaLock.VTable, @ptrCast(self.vtable)).ReleaseSchemaLock(@as(*const ISchemaLock, @ptrCast(self)), hLockHandle); } }; } pub usingnamespace MethodMixin(@This()); }; pub const SQL_ASYNC_NOTIFICATION_CALLBACK = switch (@import("builtin").zig_backend) { .stage1 => fn ( pContext: ?*anyopaque, fLast: BOOL, ) callconv(@import("std").os.windows.WINAPI) i16, else => *const fn ( pContext: ?*anyopaque, fLast: BOOL, ) callconv(@import("std").os.windows.WINAPI) i16, }; pub const DBVECTOR = switch (@import("../zig.zig").arch) { .X64, .Arm64 => extern struct { size: usize, ptr: ?*anyopaque, }, .X86 => extern struct { size: usize align(2), ptr: ?*anyopaque align(2), }, }; pub const DBTIMESTAMP = switch (@import("../zig.zig").arch) { .X64, .Arm64 => extern struct { year: i16, month: u16, day: u16, hour: u16, minute: u16, second: u16, fraction: u32, }, .X86 => extern struct { year: i16 align(2), month: u16 align(2), day: u16 align(2), hour: u16 align(2), minute: u16 align(2), second: u16 align(2), fraction: u32 align(2), }, }; pub const SEC_OBJECT_ELEMENT = switch (@import("../zig.zig").arch) { .X64, .Arm64 => extern struct { guidObjectType: Guid, ObjectID: DBID, }, .X86 => extern struct { guidObjectType: Guid align(2), ObjectID: DBID align(2), }, }; pub const SEC_OBJECT = switch (@import("../zig.zig").arch) { .X64, .Arm64 => extern struct { cObjects: u32, prgObjects: ?*SEC_OBJECT_ELEMENT, }, .X86 => extern struct { cObjects: u32 align(2), prgObjects: ?*SEC_OBJECT_ELEMENT align(2), }, }; pub const DBIMPLICITSESSION = switch (@import("../zig.zig").arch) { .X64, .Arm64 => extern struct { pUnkOuter: ?*IUnknown, piid: ?*Guid, pSession: ?*IUnknown, }, .X86 => extern struct { pUnkOuter: ?*IUnknown align(2), piid: ?*Guid align(2), pSession: ?*IUnknown align(2), }, }; pub const DBOBJECT = switch (@import("../zig.zig").arch) { .X64, .Arm64 => extern struct { dwFlags: u32, iid: Guid, }, .X86 => extern struct { dwFlags: u32 align(2), iid: Guid align(2), }, }; pub const DBBINDEXT = switch (@import("../zig.zig").arch) { .X64, .Arm64 => extern struct { pExtension: ?*u8, ulExtension: usize, }, .X86 => extern struct { pExtension: ?*u8 align(2), ulExtension: usize align(2), }, }; pub const DBBINDING = switch (@import("../zig.zig").arch) { .X64, .Arm64 => extern struct { iOrdinal: usize, obValue: usize, obLength: usize, obStatus: usize, pTypeInfo: ?*ITypeInfo, pObject: ?*DBOBJECT, pBindExt: ?*DBBINDEXT, dwPart: u32, dwMemOwner: u32, eParamIO: u32, cbMaxLen: usize, dwFlags: u32, wType: u16, bPrecision: u8, bScale: u8, }, .X86 => extern struct { iOrdinal: usize align(2), obValue: usize align(2), obLength: usize align(2), obStatus: usize align(2), pTypeInfo: ?*ITypeInfo align(2), pObject: ?*DBOBJECT align(2), pBindExt: ?*DBBINDEXT align(2), dwPart: u32 align(2), dwMemOwner: u32 align(2), eParamIO: u32 align(2), cbMaxLen: usize align(2), dwFlags: u32 align(2), wType: u16 align(2), bPrecision: u8 align(2), bScale: u8 align(2), }, }; pub const DBFAILUREINFO = switch (@import("../zig.zig").arch) { .X64, .Arm64 => extern struct { hRow: usize, iColumn: usize, failure: HRESULT, }, .X86 => extern struct { hRow: usize align(2), iColumn: usize align(2), failure: HRESULT align(2), }, }; pub const DBCOLUMNINFO = switch (@import("../zig.zig").arch) { .X64, .Arm64 => extern struct { pwszName: ?PWSTR, pTypeInfo: ?*ITypeInfo, iOrdinal: usize, dwFlags: u32, ulColumnSize: usize, wType: u16, bPrecision: u8, bScale: u8, columnid: DBID, }, .X86 => extern struct { pwszName: ?PWSTR align(2), pTypeInfo: ?*ITypeInfo align(2), iOrdinal: usize align(2), dwFlags: u32 align(2), ulColumnSize: usize align(2), wType: u16 align(2), bPrecision: u8 align(2), bScale: u8 align(2), columnid: DBID align(2), }, }; pub const DBPARAMS = switch (@import("../zig.zig").arch) { .X64, .Arm64 => extern struct { pData: ?*anyopaque, cParamSets: usize, hAccessor: usize, }, .X86 => extern struct { pData: ?*anyopaque align(2), cParamSets: usize align(2), hAccessor: usize align(2), }, }; pub const DBPARAMINFO = switch (@import("../zig.zig").arch) { .X64, .Arm64 => extern struct { dwFlags: u32, iOrdinal: usize, pwszName: ?PWSTR, pTypeInfo: ?*ITypeInfo, ulParamSize: usize, wType: u16, bPrecision: u8, bScale: u8, }, .X86 => extern struct { dwFlags: u32 align(2), iOrdinal: usize align(2), pwszName: ?PWSTR align(2), pTypeInfo: ?*ITypeInfo align(2), ulParamSize: usize align(2), wType: u16 align(2), bPrecision: u8 align(2), bScale: u8 align(2), }, }; pub const DBPROPIDSET = switch (@import("../zig.zig").arch) { .X64, .Arm64 => extern struct { rgPropertyIDs: ?*u32, cPropertyIDs: u32, guidPropertySet: Guid, }, .X86 => extern struct { rgPropertyIDs: ?*u32 align(2), cPropertyIDs: u32 align(2), guidPropertySet: Guid align(2), }, }; pub const DBPROPINFO = switch (@import("../zig.zig").arch) { .X64, .Arm64 => extern struct { pwszDescription: ?PWSTR, dwPropertyID: u32, dwFlags: u32, vtType: u16, vValues: VARIANT, }, .X86 => extern struct { pwszDescription: ?PWSTR align(2), dwPropertyID: u32 align(2), dwFlags: u32 align(2), vtType: u16 align(2), vValues: VARIANT align(2), }, }; pub const DBPROPINFOSET = switch (@import("../zig.zig").arch) { .X64, .Arm64 => extern struct { rgPropertyInfos: ?*DBPROPINFO, cPropertyInfos: u32, guidPropertySet: Guid, }, .X86 => extern struct { rgPropertyInfos: ?*DBPROPINFO align(2), cPropertyInfos: u32 align(2), guidPropertySet: Guid align(2), }, }; pub const DBPROP = switch (@import("../zig.zig").arch) { .X64, .Arm64 => extern struct { dwPropertyID: u32, dwOptions: u32, dwStatus: u32, colid: DBID, vValue: VARIANT, }, .X86 => extern struct { dwPropertyID: u32 align(2), dwOptions: u32 align(2), dwStatus: u32 align(2), colid: DBID align(2), vValue: VARIANT align(2), }, }; pub const DBPROPSET = switch (@import("../zig.zig").arch) { .X64, .Arm64 => extern struct { rgProperties: ?*DBPROP, cProperties: u32, guidPropertySet: Guid, }, .X86 => extern struct { rgProperties: ?*DBPROP align(2), cProperties: u32 align(2), guidPropertySet: Guid align(2), }, }; pub const DBINDEXCOLUMNDESC = switch (@import("../zig.zig").arch) { .X64, .Arm64 => extern struct { pColumnID: ?*DBID, eIndexColOrder: u32, }, .X86 => extern struct { pColumnID: ?*DBID align(2), eIndexColOrder: u32 align(2), }, }; pub const DBCOLUMNDESC = switch (@import("../zig.zig").arch) { .X64, .Arm64 => extern struct { pwszTypeName: ?PWSTR, pTypeInfo: ?*ITypeInfo, rgPropertySets: ?*DBPROPSET, pclsid: ?*Guid, cPropertySets: u32, ulColumnSize: usize, dbcid: DBID, wType: u16, bPrecision: u8, bScale: u8, }, .X86 => extern struct { pwszTypeName: ?PWSTR align(2), pTypeInfo: ?*ITypeInfo align(2), rgPropertySets: ?*DBPROPSET align(2), pclsid: ?*Guid align(2), cPropertySets: u32 align(2), ulColumnSize: usize align(2), dbcid: DBID align(2), wType: u16 align(2), bPrecision: u8 align(2), bScale: u8 align(2), }, }; pub const DBCOLUMNACCESS = switch (@import("../zig.zig").arch) { .X64, .Arm64 => extern struct { pData: ?*anyopaque, columnid: DBID, cbDataLen: usize, dwStatus: u32, cbMaxLen: usize, dwReserved: usize, wType: u16, bPrecision: u8, bScale: u8, }, .X86 => extern struct { pData: ?*anyopaque align(2), columnid: DBID align(2), cbDataLen: usize align(2), dwStatus: u32 align(2), cbMaxLen: usize align(2), dwReserved: usize align(2), wType: u16 align(2), bPrecision: u8 align(2), bScale: u8 align(2), }, }; pub const DBCONSTRAINTDESC = switch (@import("../zig.zig").arch) { .X64, .Arm64 => extern struct { pConstraintID: ?*DBID, ConstraintType: u32, cColumns: usize, rgColumnList: ?*DBID, pReferencedTableID: ?*DBID, cForeignKeyColumns: usize, rgForeignKeyColumnList: ?*DBID, pwszConstraintText: ?PWSTR, UpdateRule: u32, DeleteRule: u32, MatchType: u32, Deferrability: u32, cReserved: usize, rgReserved: ?*DBPROPSET, }, .X86 => extern struct { pConstraintID: ?*DBID align(2), ConstraintType: u32 align(2), cColumns: usize align(2), rgColumnList: ?*DBID align(2), pReferencedTableID: ?*DBID align(2), cForeignKeyColumns: usize align(2), rgForeignKeyColumnList: ?*DBID align(2), pwszConstraintText: ?PWSTR align(2), UpdateRule: u32 align(2), DeleteRule: u32 align(2), MatchType: u32 align(2), Deferrability: u32 align(2), cReserved: usize align(2), rgReserved: ?*DBPROPSET align(2), }, }; pub const MDAXISINFO = switch (@import("../zig.zig").arch) { .X64, .Arm64 => extern struct { cbSize: usize, iAxis: usize, cDimensions: usize, cCoordinates: usize, rgcColumns: ?*usize, rgpwszDimensionNames: ?*?PWSTR, }, .X86 => extern struct { cbSize: usize align(2), iAxis: usize align(2), cDimensions: usize align(2), cCoordinates: usize align(2), rgcColumns: ?*usize align(2), rgpwszDimensionNames: ?*?PWSTR align(2), }, }; pub const RMTPACK = switch (@import("../zig.zig").arch) { .X64, .Arm64 => extern struct { pISeqStream: ?*ISequentialStream, cbData: u32, cBSTR: u32, rgBSTR: ?*?BSTR, cVARIANT: u32, rgVARIANT: ?*VARIANT, cIDISPATCH: u32, rgIDISPATCH: ?*?*IDispatch, cIUNKNOWN: u32, rgIUNKNOWN: ?*?*IUnknown, cPROPVARIANT: u32, rgPROPVARIANT: ?*PROPVARIANT, cArray: u32, rgArray: ?*VARIANT, }, .X86 => extern struct { pISeqStream: ?*ISequentialStream align(2), cbData: u32 align(2), cBSTR: u32 align(2), rgBSTR: ?*?BSTR align(2), cVARIANT: u32 align(2), rgVARIANT: ?*VARIANT align(2), cIDISPATCH: u32 align(2), rgIDISPATCH: ?*?*IDispatch align(2), cIUNKNOWN: u32 align(2), rgIUNKNOWN: ?*?*IUnknown align(2), cPROPVARIANT: u32 align(2), rgPROPVARIANT: ?*PROPVARIANT align(2), cArray: u32 align(2), rgArray: ?*VARIANT align(2), }, }; pub const DBPARAMBINDINFO = switch (@import("../zig.zig").arch) { .X64, .Arm64 => extern struct { pwszDataSourceType: ?PWSTR, pwszName: ?PWSTR, ulParamSize: usize, dwFlags: u32, bPrecision: u8, bScale: u8, }, .X86 => extern struct { pwszDataSourceType: ?PWSTR align(2), pwszName: ?PWSTR align(2), ulParamSize: usize align(2), dwFlags: u32 align(2), bPrecision: u8 align(2), bScale: u8 align(2), }, }; pub const DBLITERALINFO = switch (@import("../zig.zig").arch) { .X64, .Arm64 => extern struct { pwszLiteralValue: ?PWSTR, pwszInvalidChars: ?PWSTR, pwszInvalidStartingChars: ?PWSTR, lt: u32, fSupported: BOOL, cchMaxLen: u32, }, .X86 => extern struct { pwszLiteralValue: ?PWSTR align(2), pwszInvalidChars: ?PWSTR align(2), pwszInvalidStartingChars: ?PWSTR align(2), lt: u32 align(2), fSupported: BOOL align(2), cchMaxLen: u32 align(2), }, }; pub const ERRORINFO = switch (@import("../zig.zig").arch) { .X64, .Arm64 => extern struct { hrError: HRESULT, dwMinor: u32, clsid: Guid, iid: Guid, dispid: i32, }, .X86 => extern struct { hrError: HRESULT align(2), dwMinor: u32 align(2), clsid: Guid align(2), iid: Guid align(2), dispid: i32 align(2), }, }; pub const tagDBROWWATCHRANGE = switch (@import("../zig.zig").arch) { .X64, .Arm64 => extern struct { hRegion: usize, eChangeKind: u32, hRow: usize, iRow: usize, }, .X86 => extern struct { hRegion: usize align(2), eChangeKind: u32 align(2), hRow: usize align(2), iRow: usize align(2), }, }; pub const DBCOST = switch (@import("../zig.zig").arch) { .X64, .Arm64 => extern struct { eKind: u32, dwUnits: u32, lValue: i32, }, .X86 => extern struct { eKind: u32 align(2), dwUnits: u32 align(2), lValue: i32 align(2), }, }; //-------------------------------------------------------------------------------- // Section: Functions (211) //-------------------------------------------------------------------------------- pub extern "odbc32" fn SQLAllocConnect( EnvironmentHandle: ?*anyopaque, ConnectionHandle: ?*?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) i16; pub extern "odbc32" fn SQLAllocEnv( EnvironmentHandle: ?*?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) i16; pub extern "odbc32" fn SQLAllocHandle( HandleType: i16, InputHandle: ?*anyopaque, OutputHandle: ?*?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) i16; pub extern "odbc32" fn SQLAllocStmt( ConnectionHandle: ?*anyopaque, StatementHandle: ?*?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) i16; pub usingnamespace switch (@import("../zig.zig").arch) { .X64, .Arm64 => struct { pub extern "odbc32" fn SQLBindCol( StatementHandle: ?*anyopaque, ColumnNumber: u16, TargetType: i16, TargetValue: ?*anyopaque, BufferLength: i64, StrLen_or_Ind: ?*i64, ) callconv(@import("std").os.windows.WINAPI) i16; }, else => struct {}, }; pub usingnamespace switch (@import("../zig.zig").arch) { .X64, .Arm64 => struct { pub extern "odbc32" fn SQLBindParam( StatementHandle: ?*anyopaque, ParameterNumber: u16, ValueType: i16, ParameterType: i16, LengthPrecision: u64, ParameterScale: i16, ParameterValue: ?*anyopaque, StrLen_or_Ind: ?*i64, ) callconv(@import("std").os.windows.WINAPI) i16; }, else => struct {}, }; pub extern "odbc32" fn SQLCancel( StatementHandle: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) i16; pub extern "odbc32" fn SQLCancelHandle( HandleType: i16, InputHandle: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) i16; pub extern "odbc32" fn SQLCloseCursor( StatementHandle: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) i16; pub usingnamespace switch (@import("../zig.zig").arch) { .X64, .Arm64 => struct { pub extern "odbc32" fn SQLColAttribute( StatementHandle: ?*anyopaque, ColumnNumber: u16, FieldIdentifier: u16, // TODO: what to do with BytesParamIndex 4? CharacterAttribute: ?*anyopaque, BufferLength: i16, StringLength: ?*i16, NumericAttribute: ?*i64, ) callconv(@import("std").os.windows.WINAPI) i16; }, else => struct {}, }; pub extern "odbc32" fn SQLColumns( StatementHandle: ?*anyopaque, CatalogName: ?[*:0]u8, NameLength1: i16, SchemaName: ?[*:0]u8, NameLength2: i16, TableName: ?[*:0]u8, NameLength3: i16, ColumnName: ?[*:0]u8, NameLength4: i16, ) callconv(@import("std").os.windows.WINAPI) i16; pub extern "odbc32" fn SQLCompleteAsync( HandleType: i16, Handle: ?*anyopaque, AsyncRetCodePtr: ?*i16, ) callconv(@import("std").os.windows.WINAPI) i16; pub extern "odbc32" fn SQLConnect( ConnectionHandle: ?*anyopaque, ServerName: [*:0]u8, NameLength1: i16, UserName: [*:0]u8, NameLength2: i16, Authentication: [*:0]u8, NameLength3: i16, ) callconv(@import("std").os.windows.WINAPI) i16; pub extern "odbc32" fn SQLCopyDesc( SourceDescHandle: ?*anyopaque, TargetDescHandle: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) i16; pub extern "odbc32" fn SQLDataSources( EnvironmentHandle: ?*anyopaque, Direction: u16, ServerName: ?[*:0]u8, BufferLength1: i16, NameLength1Ptr: ?*i16, Description: ?[*:0]u8, BufferLength2: i16, NameLength2Ptr: ?*i16, ) callconv(@import("std").os.windows.WINAPI) i16; pub usingnamespace switch (@import("../zig.zig").arch) { .X64, .Arm64 => struct { pub extern "odbc32" fn SQLDescribeCol( StatementHandle: ?*anyopaque, ColumnNumber: u16, ColumnName: ?[*:0]u8, BufferLength: i16, NameLength: ?*i16, DataType: ?*i16, ColumnSize: ?*u64, DecimalDigits: ?*i16, Nullable: ?*i16, ) callconv(@import("std").os.windows.WINAPI) i16; }, else => struct {}, }; pub extern "odbc32" fn SQLDisconnect( ConnectionHandle: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) i16; pub extern "odbc32" fn SQLEndTran( HandleType: i16, Handle: ?*anyopaque, CompletionType: i16, ) callconv(@import("std").os.windows.WINAPI) i16; pub extern "odbc32" fn SQLError( EnvironmentHandle: ?*anyopaque, ConnectionHandle: ?*anyopaque, StatementHandle: ?*anyopaque, Sqlstate: *[6]u8, NativeError: ?*i32, MessageText: ?[*:0]u8, BufferLength: i16, TextLength: ?*i16, ) callconv(@import("std").os.windows.WINAPI) i16; pub extern "odbc32" fn SQLExecDirect( StatementHandle: ?*anyopaque, StatementText: ?[*:0]u8, TextLength: i32, ) callconv(@import("std").os.windows.WINAPI) i16; pub extern "odbc32" fn SQLExecute( StatementHandle: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) i16; pub extern "odbc32" fn SQLFetch( StatementHandle: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) i16; pub usingnamespace switch (@import("../zig.zig").arch) { .X64, .Arm64 => struct { pub extern "odbc32" fn SQLFetchScroll( StatementHandle: ?*anyopaque, FetchOrientation: i16, FetchOffset: i64, ) callconv(@import("std").os.windows.WINAPI) i16; }, else => struct {}, }; pub extern "odbc32" fn SQLFreeConnect( ConnectionHandle: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) i16; pub extern "odbc32" fn SQLFreeEnv( EnvironmentHandle: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) i16; pub extern "odbc32" fn SQLFreeHandle( HandleType: i16, Handle: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) i16; pub extern "odbc32" fn SQLFreeStmt( StatementHandle: ?*anyopaque, Option: u16, ) callconv(@import("std").os.windows.WINAPI) i16; pub extern "odbc32" fn SQLGetConnectAttr( ConnectionHandle: ?*anyopaque, Attribute: i32, Value: ?*anyopaque, BufferLength: i32, StringLengthPtr: ?*i32, ) callconv(@import("std").os.windows.WINAPI) i16; pub extern "odbc32" fn SQLGetConnectOption( ConnectionHandle: ?*anyopaque, Option: u16, Value: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) i16; pub extern "odbc32" fn SQLGetCursorName( StatementHandle: ?*anyopaque, CursorName: ?[*:0]u8, BufferLength: i16, NameLengthPtr: ?*i16, ) callconv(@import("std").os.windows.WINAPI) i16; pub usingnamespace switch (@import("../zig.zig").arch) { .X64, .Arm64 => struct { pub extern "odbc32" fn SQLGetData( StatementHandle: ?*anyopaque, ColumnNumber: u16, TargetType: i16, TargetValue: ?*anyopaque, BufferLength: i64, StrLen_or_IndPtr: ?*i64, ) callconv(@import("std").os.windows.WINAPI) i16; }, else => struct {}, }; pub extern "odbc32" fn SQLGetDescField( DescriptorHandle: ?*anyopaque, RecNumber: i16, FieldIdentifier: i16, Value: ?*anyopaque, BufferLength: i32, StringLength: ?*i32, ) callconv(@import("std").os.windows.WINAPI) i16; pub usingnamespace switch (@import("../zig.zig").arch) { .X64, .Arm64 => struct { pub extern "odbc32" fn SQLGetDescRec( DescriptorHandle: ?*anyopaque, RecNumber: i16, Name: ?[*:0]u8, BufferLength: i16, StringLengthPtr: ?*i16, TypePtr: ?*i16, SubTypePtr: ?*i16, LengthPtr: ?*i64, PrecisionPtr: ?*i16, ScalePtr: ?*i16, NullablePtr: ?*i16, ) callconv(@import("std").os.windows.WINAPI) i16; }, else => struct {}, }; pub extern "odbc32" fn SQLGetDiagField( HandleType: i16, Handle: ?*anyopaque, RecNumber: i16, DiagIdentifier: i16, DiagInfo: ?*anyopaque, BufferLength: i16, StringLength: ?*i16, ) callconv(@import("std").os.windows.WINAPI) i16; pub extern "odbc32" fn SQLGetDiagRec( HandleType: i16, Handle: ?*anyopaque, RecNumber: i16, Sqlstate: ?*[6]u8, NativeError: ?*i32, MessageText: ?[*:0]u8, BufferLength: i16, TextLength: ?*i16, ) callconv(@import("std").os.windows.WINAPI) i16; pub extern "odbc32" fn SQLGetEnvAttr( EnvironmentHandle: ?*anyopaque, Attribute: i32, Value: ?*anyopaque, BufferLength: i32, StringLength: ?*i32, ) callconv(@import("std").os.windows.WINAPI) i16; pub extern "odbc32" fn SQLGetFunctions( ConnectionHandle: ?*anyopaque, FunctionId: u16, Supported: ?*u16, ) callconv(@import("std").os.windows.WINAPI) i16; pub extern "odbc32" fn SQLGetInfo( ConnectionHandle: ?*anyopaque, InfoType: u16, // TODO: what to do with BytesParamIndex 3? InfoValue: ?*anyopaque, BufferLength: i16, StringLengthPtr: ?*i16, ) callconv(@import("std").os.windows.WINAPI) i16; pub extern "odbc32" fn SQLGetStmtAttr( StatementHandle: ?*anyopaque, Attribute: i32, Value: ?*anyopaque, BufferLength: i32, StringLength: ?*i32, ) callconv(@import("std").os.windows.WINAPI) i16; pub extern "odbc32" fn SQLGetStmtOption( StatementHandle: ?*anyopaque, Option: u16, Value: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) i16; pub extern "odbc32" fn SQLGetTypeInfo( StatementHandle: ?*anyopaque, DataType: i16, ) callconv(@import("std").os.windows.WINAPI) i16; pub extern "odbc32" fn SQLNumResultCols( StatementHandle: ?*anyopaque, ColumnCount: ?*i16, ) callconv(@import("std").os.windows.WINAPI) i16; pub extern "odbc32" fn SQLParamData( StatementHandle: ?*anyopaque, Value: ?*?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) i16; pub extern "odbc32" fn SQLPrepare( StatementHandle: ?*anyopaque, StatementText: [*:0]u8, TextLength: i32, ) callconv(@import("std").os.windows.WINAPI) i16; pub usingnamespace switch (@import("../zig.zig").arch) { .X64, .Arm64 => struct { pub extern "odbc32" fn SQLPutData( StatementHandle: ?*anyopaque, Data: ?*anyopaque, StrLen_or_Ind: i64, ) callconv(@import("std").os.windows.WINAPI) i16; }, else => struct {}, }; pub usingnamespace switch (@import("../zig.zig").arch) { .X64, .Arm64 => struct { pub extern "odbc32" fn SQLRowCount( StatementHandle: ?*anyopaque, RowCount: ?*i64, ) callconv(@import("std").os.windows.WINAPI) i16; }, else => struct {}, }; pub extern "odbc32" fn SQLSetConnectAttr( ConnectionHandle: ?*anyopaque, Attribute: i32, // TODO: what to do with BytesParamIndex 3? Value: ?*anyopaque, StringLength: i32, ) callconv(@import("std").os.windows.WINAPI) i16; pub usingnamespace switch (@import("../zig.zig").arch) { .X64, .Arm64 => struct { pub extern "odbc32" fn SQLSetConnectOption( ConnectionHandle: ?*anyopaque, Option: u16, Value: u64, ) callconv(@import("std").os.windows.WINAPI) i16; }, else => struct {}, }; pub extern "odbc32" fn SQLSetCursorName( StatementHandle: ?*anyopaque, CursorName: [*:0]u8, NameLength: i16, ) callconv(@import("std").os.windows.WINAPI) i16; pub extern "odbc32" fn SQLSetDescField( DescriptorHandle: ?*anyopaque, RecNumber: i16, FieldIdentifier: i16, Value: ?*anyopaque, BufferLength: i32, ) callconv(@import("std").os.windows.WINAPI) i16; pub usingnamespace switch (@import("../zig.zig").arch) { .X64, .Arm64 => struct { pub extern "odbc32" fn SQLSetDescRec( DescriptorHandle: ?*anyopaque, RecNumber: i16, Type: i16, SubType: i16, Length: i64, Precision: i16, Scale: i16, // TODO: what to do with BytesParamIndex 4? Data: ?*anyopaque, StringLength: ?*i64, Indicator: ?*i64, ) callconv(@import("std").os.windows.WINAPI) i16; }, else => struct {}, }; pub extern "odbc32" fn SQLSetEnvAttr( EnvironmentHandle: ?*anyopaque, Attribute: i32, // TODO: what to do with BytesParamIndex 3? Value: ?*anyopaque, StringLength: i32, ) callconv(@import("std").os.windows.WINAPI) i16; pub usingnamespace switch (@import("../zig.zig").arch) { .X64, .Arm64 => struct { pub extern "odbc32" fn SQLSetParam( StatementHandle: ?*anyopaque, ParameterNumber: u16, ValueType: i16, ParameterType: i16, LengthPrecision: u64, ParameterScale: i16, ParameterValue: ?*anyopaque, StrLen_or_Ind: ?*i64, ) callconv(@import("std").os.windows.WINAPI) i16; }, else => struct {}, }; pub extern "odbc32" fn SQLSetStmtAttr( StatementHandle: ?*anyopaque, Attribute: i32, Value: ?*anyopaque, StringLength: i32, ) callconv(@import("std").os.windows.WINAPI) i16; pub usingnamespace switch (@import("../zig.zig").arch) { .X64, .Arm64 => struct { pub extern "odbc32" fn SQLSetStmtOption( StatementHandle: ?*anyopaque, Option: u16, Value: u64, ) callconv(@import("std").os.windows.WINAPI) i16; }, else => struct {}, }; pub extern "odbc32" fn SQLSpecialColumns( StatementHandle: ?*anyopaque, IdentifierType: u16, CatalogName: ?[*:0]u8, NameLength1: i16, SchemaName: ?[*:0]u8, NameLength2: i16, TableName: ?[*:0]u8, NameLength3: i16, Scope: u16, Nullable: u16, ) callconv(@import("std").os.windows.WINAPI) i16; pub extern "odbc32" fn SQLStatistics( StatementHandle: ?*anyopaque, CatalogName: ?[*:0]u8, NameLength1: i16, SchemaName: ?[*:0]u8, NameLength2: i16, TableName: ?[*:0]u8, NameLength3: i16, Unique: u16, Reserved: u16, ) callconv(@import("std").os.windows.WINAPI) i16; pub extern "odbc32" fn SQLTables( StatementHandle: ?*anyopaque, CatalogName: ?[*:0]u8, NameLength1: i16, SchemaName: ?[*:0]u8, NameLength2: i16, TableName: ?[*:0]u8, NameLength3: i16, TableType: ?[*:0]u8, NameLength4: i16, ) callconv(@import("std").os.windows.WINAPI) i16; pub extern "odbc32" fn SQLTransact( EnvironmentHandle: ?*anyopaque, ConnectionHandle: ?*anyopaque, CompletionType: u16, ) callconv(@import("std").os.windows.WINAPI) i16; pub extern "odbcbcp" fn bcp_batch( param0: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) i32; pub extern "odbcbcp" fn bcp_bind( param0: ?*anyopaque, param1: ?*u8, param2: i32, param3: i32, param4: ?*u8, param5: i32, param6: i32, param7: i32, ) callconv(@import("std").os.windows.WINAPI) i16; pub extern "odbcbcp" fn bcp_colfmt( param0: ?*anyopaque, param1: i32, param2: u8, param3: i32, param4: i32, param5: ?*u8, param6: i32, param7: i32, ) callconv(@import("std").os.windows.WINAPI) i16; pub extern "odbcbcp" fn bcp_collen( param0: ?*anyopaque, param1: i32, param2: i32, ) callconv(@import("std").os.windows.WINAPI) i16; pub extern "odbcbcp" fn bcp_colptr( param0: ?*anyopaque, param1: ?*u8, param2: i32, ) callconv(@import("std").os.windows.WINAPI) i16; pub extern "odbcbcp" fn bcp_columns( param0: ?*anyopaque, param1: i32, ) callconv(@import("std").os.windows.WINAPI) i16; pub extern "odbcbcp" fn bcp_control( param0: ?*anyopaque, param1: i32, param2: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) i16; pub extern "odbcbcp" fn bcp_done( param0: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) i32; pub extern "odbcbcp" fn bcp_exec( param0: ?*anyopaque, param1: ?*i32, ) callconv(@import("std").os.windows.WINAPI) i16; pub extern "odbcbcp" fn bcp_getcolfmt( param0: ?*anyopaque, param1: i32, param2: i32, param3: ?*anyopaque, param4: i32, param5: ?*i32, ) callconv(@import("std").os.windows.WINAPI) i16; pub extern "odbcbcp" fn bcp_initA( param0: ?*anyopaque, param1: ?[*:0]const u8, param2: ?[*:0]const u8, param3: ?[*:0]const u8, param4: i32, ) callconv(@import("std").os.windows.WINAPI) i16; pub extern "odbcbcp" fn bcp_initW( param0: ?*anyopaque, param1: ?[*:0]const u16, param2: ?[*:0]const u16, param3: ?[*:0]const u16, param4: i32, ) callconv(@import("std").os.windows.WINAPI) i16; pub extern "odbcbcp" fn bcp_moretext( param0: ?*anyopaque, param1: i32, param2: ?*u8, ) callconv(@import("std").os.windows.WINAPI) i16; pub extern "odbcbcp" fn bcp_readfmtA( param0: ?*anyopaque, param1: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) i16; pub extern "odbcbcp" fn bcp_readfmtW( param0: ?*anyopaque, param1: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) i16; pub extern "odbcbcp" fn bcp_sendrow( param0: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) i16; pub extern "odbcbcp" fn bcp_setcolfmt( param0: ?*anyopaque, param1: i32, param2: i32, param3: ?*anyopaque, param4: i32, ) callconv(@import("std").os.windows.WINAPI) i16; pub extern "odbcbcp" fn bcp_writefmtA( param0: ?*anyopaque, param1: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) i16; pub extern "odbcbcp" fn bcp_writefmtW( param0: ?*anyopaque, param1: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) i16; pub extern "odbcbcp" fn dbprtypeA( param0: i32, ) callconv(@import("std").os.windows.WINAPI) ?PSTR; pub extern "odbcbcp" fn dbprtypeW( param0: i32, ) callconv(@import("std").os.windows.WINAPI) ?PWSTR; pub extern "odbcbcp" fn SQLLinkedServers( param0: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) i16; pub extern "odbcbcp" fn SQLLinkedCatalogsA( param0: ?*anyopaque, param1: ?[*:0]const u8, param2: i16, ) callconv(@import("std").os.windows.WINAPI) i16; pub extern "odbcbcp" fn SQLLinkedCatalogsW( param0: ?*anyopaque, param1: ?[*:0]const u16, param2: i16, ) callconv(@import("std").os.windows.WINAPI) i16; pub extern "odbcbcp" fn SQLInitEnumServers( pwchServerName: ?PWSTR, pwchInstanceName: ?PWSTR, ) callconv(@import("std").os.windows.WINAPI) ?HANDLE; pub extern "odbcbcp" fn SQLGetNextEnumeration( hEnumHandle: ?HANDLE, prgEnumData: ?*u8, piEnumLength: ?*i32, ) callconv(@import("std").os.windows.WINAPI) i16; pub extern "odbcbcp" fn SQLCloseEnumServers( hEnumHandle: ?HANDLE, ) callconv(@import("std").os.windows.WINAPI) i16; pub extern "odbc32" fn SQLDriverConnect( hdbc: ?*anyopaque, hwnd: isize, szConnStrIn: [*:0]u8, cchConnStrIn: i16, szConnStrOut: ?[*:0]u8, cchConnStrOutMax: i16, pcchConnStrOut: ?*i16, fDriverCompletion: u16, ) callconv(@import("std").os.windows.WINAPI) i16; pub extern "odbc32" fn SQLBrowseConnect( hdbc: ?*anyopaque, szConnStrIn: [*:0]u8, cchConnStrIn: i16, szConnStrOut: ?[*:0]u8, cchConnStrOutMax: i16, pcchConnStrOut: ?*i16, ) callconv(@import("std").os.windows.WINAPI) i16; pub extern "odbc32" fn SQLBulkOperations( StatementHandle: ?*anyopaque, Operation: i16, ) callconv(@import("std").os.windows.WINAPI) i16; pub usingnamespace switch (@import("../zig.zig").arch) { .X64, .Arm64 => struct { pub extern "odbc32" fn SQLColAttributes( hstmt: ?*anyopaque, icol: u16, fDescType: u16, rgbDesc: ?*anyopaque, cbDescMax: i16, pcbDesc: ?*i16, pfDesc: ?*i64, ) callconv(@import("std").os.windows.WINAPI) i16; }, else => struct {}, }; pub extern "odbc32" fn SQLColumnPrivileges( hstmt: ?*anyopaque, szCatalogName: ?[*:0]u8, cchCatalogName: i16, szSchemaName: ?[*:0]u8, cchSchemaName: i16, szTableName: ?[*:0]u8, cchTableName: i16, szColumnName: ?[*:0]u8, cchColumnName: i16, ) callconv(@import("std").os.windows.WINAPI) i16; pub usingnamespace switch (@import("../zig.zig").arch) { .X64, .Arm64 => struct { pub extern "odbc32" fn SQLDescribeParam( hstmt: ?*anyopaque, ipar: u16, pfSqlType: ?*i16, pcbParamDef: ?*u64, pibScale: ?*i16, pfNullable: ?*i16, ) callconv(@import("std").os.windows.WINAPI) i16; }, else => struct {}, }; pub usingnamespace switch (@import("../zig.zig").arch) { .X64, .Arm64 => struct { pub extern "odbc32" fn SQLExtendedFetch( hstmt: ?*anyopaque, fFetchType: u16, irow: i64, pcrow: ?*u64, rgfRowStatus: ?*u16, ) callconv(@import("std").os.windows.WINAPI) i16; }, else => struct {}, }; pub extern "odbc32" fn SQLForeignKeys( hstmt: ?*anyopaque, szPkCatalogName: ?[*:0]u8, cchPkCatalogName: i16, szPkSchemaName: ?[*:0]u8, cchPkSchemaName: i16, szPkTableName: ?[*:0]u8, cchPkTableName: i16, szFkCatalogName: ?[*:0]u8, cchFkCatalogName: i16, szFkSchemaName: ?[*:0]u8, cchFkSchemaName: i16, szFkTableName: ?[*:0]u8, cchFkTableName: i16, ) callconv(@import("std").os.windows.WINAPI) i16; pub extern "odbc32" fn SQLMoreResults( hstmt: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) i16; pub extern "odbc32" fn SQLNativeSql( hdbc: ?*anyopaque, szSqlStrIn: [*:0]u8, cchSqlStrIn: i32, szSqlStr: ?[*:0]u8, cchSqlStrMax: i32, pcbSqlStr: ?*i32, ) callconv(@import("std").os.windows.WINAPI) i16; pub extern "odbc32" fn SQLNumParams( hstmt: ?*anyopaque, pcpar: ?*i16, ) callconv(@import("std").os.windows.WINAPI) i16; pub usingnamespace switch (@import("../zig.zig").arch) { .X64, .Arm64 => struct { pub extern "odbc32" fn SQLParamOptions( hstmt: ?*anyopaque, crow: u64, pirow: ?*u64, ) callconv(@import("std").os.windows.WINAPI) i16; }, else => struct {}, }; pub extern "odbc32" fn SQLPrimaryKeys( hstmt: ?*anyopaque, szCatalogName: ?[*:0]u8, cchCatalogName: i16, szSchemaName: ?[*:0]u8, cchSchemaName: i16, szTableName: ?[*:0]u8, cchTableName: i16, ) callconv(@import("std").os.windows.WINAPI) i16; pub extern "odbc32" fn SQLProcedureColumns( hstmt: ?*anyopaque, szCatalogName: ?[*:0]u8, cchCatalogName: i16, szSchemaName: ?[*:0]u8, cchSchemaName: i16, szProcName: ?[*:0]u8, cchProcName: i16, szColumnName: ?[*:0]u8, cchColumnName: i16, ) callconv(@import("std").os.windows.WINAPI) i16; pub extern "odbc32" fn SQLProcedures( hstmt: ?*anyopaque, szCatalogName: ?[*:0]u8, cchCatalogName: i16, szSchemaName: ?[*:0]u8, cchSchemaName: i16, szProcName: ?[*:0]u8, cchProcName: i16, ) callconv(@import("std").os.windows.WINAPI) i16; pub usingnamespace switch (@import("../zig.zig").arch) { .X64, .Arm64 => struct { pub extern "odbc32" fn SQLSetPos( hstmt: ?*anyopaque, irow: u64, fOption: u16, fLock: u16, ) callconv(@import("std").os.windows.WINAPI) i16; }, else => struct {}, }; pub extern "odbc32" fn SQLTablePrivileges( hstmt: ?*anyopaque, szCatalogName: ?[*:0]u8, cchCatalogName: i16, szSchemaName: ?[*:0]u8, cchSchemaName: i16, szTableName: ?[*:0]u8, cchTableName: i16, ) callconv(@import("std").os.windows.WINAPI) i16; pub extern "odbc32" fn SQLDrivers( henv: ?*anyopaque, fDirection: u16, szDriverDesc: ?[*:0]u8, cchDriverDescMax: i16, pcchDriverDesc: ?*i16, szDriverAttributes: ?[*:0]u8, cchDrvrAttrMax: i16, pcchDrvrAttr: ?*i16, ) callconv(@import("std").os.windows.WINAPI) i16; pub usingnamespace switch (@import("../zig.zig").arch) { .X64, .Arm64 => struct { pub extern "odbc32" fn SQLBindParameter( hstmt: ?*anyopaque, ipar: u16, fParamType: i16, fCType: i16, fSqlType: i16, cbColDef: u64, ibScale: i16, rgbValue: ?*anyopaque, cbValueMax: i64, pcbValue: ?*i64, ) callconv(@import("std").os.windows.WINAPI) i16; }, else => struct {}, }; pub extern "odbc32" fn SQLAllocHandleStd( fHandleType: i16, hInput: ?*anyopaque, phOutput: ?*?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) i16; pub usingnamespace switch (@import("../zig.zig").arch) { .X64, .Arm64 => struct { pub extern "odbc32" fn SQLSetScrollOptions( hstmt: ?*anyopaque, fConcurrency: u16, crowKeyset: i64, crowRowset: u16, ) callconv(@import("std").os.windows.WINAPI) i16; }, else => struct {}, }; pub extern "odbc32" fn ODBCSetTryWaitValue( dwValue: u32, ) callconv(@import("std").os.windows.WINAPI) BOOL; pub extern "odbc32" fn ODBCGetTryWaitValue() callconv(@import("std").os.windows.WINAPI) u32; pub usingnamespace switch (@import("../zig.zig").arch) { .X64, .Arm64 => struct { pub extern "odbc32" fn SQLColAttributeW( hstmt: ?*anyopaque, iCol: u16, iField: u16, // TODO: what to do with BytesParamIndex 4? pCharAttr: ?*anyopaque, cbDescMax: i16, pcbCharAttr: ?*i16, pNumAttr: ?*i64, ) callconv(@import("std").os.windows.WINAPI) i16; }, else => struct {}, }; pub usingnamespace switch (@import("../zig.zig").arch) { .X64, .Arm64 => struct { pub extern "odbc32" fn SQLColAttributesW( hstmt: ?*anyopaque, icol: u16, fDescType: u16, // TODO: what to do with BytesParamIndex 4? rgbDesc: ?*anyopaque, cbDescMax: i16, pcbDesc: ?*i16, pfDesc: ?*i64, ) callconv(@import("std").os.windows.WINAPI) i16; }, else => struct {}, }; pub extern "odbc32" fn SQLConnectW( hdbc: ?*anyopaque, szDSN: [*:0]u16, cchDSN: i16, szUID: [*:0]u16, cchUID: i16, szAuthStr: [*:0]u16, cchAuthStr: i16, ) callconv(@import("std").os.windows.WINAPI) i16; pub usingnamespace switch (@import("../zig.zig").arch) { .X64, .Arm64 => struct { pub extern "odbc32" fn SQLDescribeColW( hstmt: ?*anyopaque, icol: u16, szColName: ?[*:0]u16, cchColNameMax: i16, pcchColName: ?*i16, pfSqlType: ?*i16, pcbColDef: ?*u64, pibScale: ?*i16, pfNullable: ?*i16, ) callconv(@import("std").os.windows.WINAPI) i16; }, else => struct {}, }; pub extern "odbc32" fn SQLErrorW( henv: ?*anyopaque, hdbc: ?*anyopaque, hstmt: ?*anyopaque, wszSqlState: *[6]u16, pfNativeError: ?*i32, wszErrorMsg: ?[*:0]u16, cchErrorMsgMax: i16, pcchErrorMsg: ?*i16, ) callconv(@import("std").os.windows.WINAPI) i16; pub extern "odbc32" fn SQLExecDirectW( hstmt: ?*anyopaque, szSqlStr: ?[*:0]u16, TextLength: i32, ) callconv(@import("std").os.windows.WINAPI) i16; pub extern "odbc32" fn SQLGetConnectAttrW( hdbc: ?*anyopaque, fAttribute: i32, rgbValue: ?*anyopaque, cbValueMax: i32, pcbValue: ?*i32, ) callconv(@import("std").os.windows.WINAPI) i16; pub extern "odbc32" fn SQLGetCursorNameW( hstmt: ?*anyopaque, szCursor: ?[*:0]u16, cchCursorMax: i16, pcchCursor: ?*i16, ) callconv(@import("std").os.windows.WINAPI) i16; pub extern "odbc32" fn SQLSetDescFieldW( DescriptorHandle: ?*anyopaque, RecNumber: i16, FieldIdentifier: i16, Value: ?*anyopaque, BufferLength: i32, ) callconv(@import("std").os.windows.WINAPI) i16; pub extern "odbc32" fn SQLGetDescFieldW( hdesc: ?*anyopaque, iRecord: i16, iField: i16, rgbValue: ?*anyopaque, cbBufferLength: i32, StringLength: ?*i32, ) callconv(@import("std").os.windows.WINAPI) i16; pub usingnamespace switch (@import("../zig.zig").arch) { .X64, .Arm64 => struct { pub extern "odbc32" fn SQLGetDescRecW( hdesc: ?*anyopaque, iRecord: i16, szName: ?[*:0]u16, cchNameMax: i16, pcchName: ?*i16, pfType: ?*i16, pfSubType: ?*i16, pLength: ?*i64, pPrecision: ?*i16, pScale: ?*i16, pNullable: ?*i16, ) callconv(@import("std").os.windows.WINAPI) i16; }, else => struct {}, }; pub extern "odbc32" fn SQLGetDiagFieldW( fHandleType: i16, handle: ?*anyopaque, iRecord: i16, fDiagField: i16, rgbDiagInfo: ?*anyopaque, cbBufferLength: i16, pcbStringLength: ?*i16, ) callconv(@import("std").os.windows.WINAPI) i16; pub extern "odbc32" fn SQLGetDiagRecW( fHandleType: i16, handle: ?*anyopaque, iRecord: i16, szSqlState: ?*[6]u16, pfNativeError: ?*i32, szErrorMsg: ?[*:0]u16, cchErrorMsgMax: i16, pcchErrorMsg: ?*i16, ) callconv(@import("std").os.windows.WINAPI) i16; pub extern "odbc32" fn SQLPrepareW( hstmt: ?*anyopaque, szSqlStr: [*:0]u16, cchSqlStr: i32, ) callconv(@import("std").os.windows.WINAPI) i16; pub extern "odbc32" fn SQLSetConnectAttrW( hdbc: ?*anyopaque, fAttribute: i32, // TODO: what to do with BytesParamIndex 3? rgbValue: ?*anyopaque, cbValue: i32, ) callconv(@import("std").os.windows.WINAPI) i16; pub extern "odbc32" fn SQLSetCursorNameW( hstmt: ?*anyopaque, szCursor: [*:0]u16, cchCursor: i16, ) callconv(@import("std").os.windows.WINAPI) i16; pub extern "odbc32" fn SQLColumnsW( hstmt: ?*anyopaque, szCatalogName: ?[*:0]u16, cchCatalogName: i16, szSchemaName: ?[*:0]u16, cchSchemaName: i16, szTableName: ?[*:0]u16, cchTableName: i16, szColumnName: ?[*:0]u16, cchColumnName: i16, ) callconv(@import("std").os.windows.WINAPI) i16; pub extern "odbc32" fn SQLGetConnectOptionW( hdbc: ?*anyopaque, fOption: u16, pvParam: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) i16; pub extern "odbc32" fn SQLGetInfoW( hdbc: ?*anyopaque, fInfoType: u16, // TODO: what to do with BytesParamIndex 3? rgbInfoValue: ?*anyopaque, cbInfoValueMax: i16, pcbInfoValue: ?*i16, ) callconv(@import("std").os.windows.WINAPI) i16; pub extern "odbc32" fn SQLGetTypeInfoW( StatementHandle: ?*anyopaque, DataType: i16, ) callconv(@import("std").os.windows.WINAPI) i16; pub usingnamespace switch (@import("../zig.zig").arch) { .X64, .Arm64 => struct { pub extern "odbc32" fn SQLSetConnectOptionW( hdbc: ?*anyopaque, fOption: u16, vParam: u64, ) callconv(@import("std").os.windows.WINAPI) i16; }, else => struct {}, }; pub extern "odbc32" fn SQLSpecialColumnsW( hstmt: ?*anyopaque, fColType: u16, szCatalogName: ?[*:0]u16, cchCatalogName: i16, szSchemaName: ?[*:0]u16, cchSchemaName: i16, szTableName: ?[*:0]u16, cchTableName: i16, fScope: u16, fNullable: u16, ) callconv(@import("std").os.windows.WINAPI) i16; pub extern "odbc32" fn SQLStatisticsW( hstmt: ?*anyopaque, szCatalogName: ?[*:0]u16, cchCatalogName: i16, szSchemaName: ?[*:0]u16, cchSchemaName: i16, szTableName: ?[*:0]u16, cchTableName: i16, fUnique: u16, fAccuracy: u16, ) callconv(@import("std").os.windows.WINAPI) i16; pub extern "odbc32" fn SQLTablesW( hstmt: ?*anyopaque, szCatalogName: ?[*:0]u16, cchCatalogName: i16, szSchemaName: ?[*:0]u16, cchSchemaName: i16, szTableName: ?[*:0]u16, cchTableName: i16, szTableType: ?[*:0]u16, cchTableType: i16, ) callconv(@import("std").os.windows.WINAPI) i16; pub extern "odbc32" fn SQLDataSourcesW( henv: ?*anyopaque, fDirection: u16, szDSN: ?[*:0]u16, cchDSNMax: i16, pcchDSN: ?*i16, wszDescription: ?[*:0]u16, cchDescriptionMax: i16, pcchDescription: ?*i16, ) callconv(@import("std").os.windows.WINAPI) i16; pub extern "odbc32" fn SQLDriverConnectW( hdbc: ?*anyopaque, hwnd: isize, szConnStrIn: [*:0]u16, cchConnStrIn: i16, szConnStrOut: ?[*:0]u16, cchConnStrOutMax: i16, pcchConnStrOut: ?*i16, fDriverCompletion: u16, ) callconv(@import("std").os.windows.WINAPI) i16; pub extern "odbc32" fn SQLBrowseConnectW( hdbc: ?*anyopaque, szConnStrIn: [*:0]u16, cchConnStrIn: i16, szConnStrOut: ?[*:0]u16, cchConnStrOutMax: i16, pcchConnStrOut: ?*i16, ) callconv(@import("std").os.windows.WINAPI) i16; pub extern "odbc32" fn SQLColumnPrivilegesW( hstmt: ?*anyopaque, szCatalogName: ?[*:0]u16, cchCatalogName: i16, szSchemaName: ?[*:0]u16, cchSchemaName: i16, szTableName: ?[*:0]u16, cchTableName: i16, szColumnName: ?[*:0]u16, cchColumnName: i16, ) callconv(@import("std").os.windows.WINAPI) i16; pub extern "odbc32" fn SQLGetStmtAttrW( hstmt: ?*anyopaque, fAttribute: i32, rgbValue: ?*anyopaque, cbValueMax: i32, pcbValue: ?*i32, ) callconv(@import("std").os.windows.WINAPI) i16; pub extern "odbc32" fn SQLSetStmtAttrW( hstmt: ?*anyopaque, fAttribute: i32, rgbValue: ?*anyopaque, cbValueMax: i32, ) callconv(@import("std").os.windows.WINAPI) i16; pub extern "odbc32" fn SQLForeignKeysW( hstmt: ?*anyopaque, szPkCatalogName: ?[*:0]u16, cchPkCatalogName: i16, szPkSchemaName: ?[*:0]u16, cchPkSchemaName: i16, szPkTableName: ?[*:0]u16, cchPkTableName: i16, szFkCatalogName: ?[*:0]u16, cchFkCatalogName: i16, szFkSchemaName: ?[*:0]u16, cchFkSchemaName: i16, szFkTableName: ?[*:0]u16, cchFkTableName: i16, ) callconv(@import("std").os.windows.WINAPI) i16; pub extern "odbc32" fn SQLNativeSqlW( hdbc: ?*anyopaque, szSqlStrIn: [*:0]u16, cchSqlStrIn: i32, szSqlStr: ?[*:0]u16, cchSqlStrMax: i32, pcchSqlStr: ?*i32, ) callconv(@import("std").os.windows.WINAPI) i16; pub extern "odbc32" fn SQLPrimaryKeysW( hstmt: ?*anyopaque, szCatalogName: ?[*:0]u16, cchCatalogName: i16, szSchemaName: ?[*:0]u16, cchSchemaName: i16, szTableName: ?[*:0]u16, cchTableName: i16, ) callconv(@import("std").os.windows.WINAPI) i16; pub extern "odbc32" fn SQLProcedureColumnsW( hstmt: ?*anyopaque, szCatalogName: ?[*:0]u16, cchCatalogName: i16, szSchemaName: ?[*:0]u16, cchSchemaName: i16, szProcName: ?[*:0]u16, cchProcName: i16, szColumnName: ?[*:0]u16, cchColumnName: i16, ) callconv(@import("std").os.windows.WINAPI) i16; pub extern "odbc32" fn SQLProceduresW( hstmt: ?*anyopaque, szCatalogName: ?[*:0]u16, cchCatalogName: i16, szSchemaName: ?[*:0]u16, cchSchemaName: i16, szProcName: ?[*:0]u16, cchProcName: i16, ) callconv(@import("std").os.windows.WINAPI) i16; pub extern "odbc32" fn SQLTablePrivilegesW( hstmt: ?*anyopaque, szCatalogName: ?[*:0]u16, cchCatalogName: i16, szSchemaName: ?[*:0]u16, cchSchemaName: i16, szTableName: ?[*:0]u16, cchTableName: i16, ) callconv(@import("std").os.windows.WINAPI) i16; pub extern "odbc32" fn SQLDriversW( henv: ?*anyopaque, fDirection: u16, szDriverDesc: ?[*:0]u16, cchDriverDescMax: i16, pcchDriverDesc: ?*i16, szDriverAttributes: ?[*:0]u16, cchDrvrAttrMax: i16, pcchDrvrAttr: ?*i16, ) callconv(@import("std").os.windows.WINAPI) i16; pub usingnamespace switch (@import("../zig.zig").arch) { .X64, .Arm64 => struct { pub extern "odbc32" fn SQLColAttributeA( hstmt: ?*anyopaque, iCol: i16, iField: i16, // TODO: what to do with BytesParamIndex 4? pCharAttr: ?*anyopaque, cbCharAttrMax: i16, pcbCharAttr: ?*i16, pNumAttr: ?*i64, ) callconv(@import("std").os.windows.WINAPI) i16; }, else => struct {}, }; pub usingnamespace switch (@import("../zig.zig").arch) { .X64, .Arm64 => struct { pub extern "odbc32" fn SQLColAttributesA( hstmt: ?*anyopaque, icol: u16, fDescType: u16, // TODO: what to do with BytesParamIndex 4? rgbDesc: ?*anyopaque, cbDescMax: i16, pcbDesc: ?*i16, pfDesc: ?*i64, ) callconv(@import("std").os.windows.WINAPI) i16; }, else => struct {}, }; pub extern "odbc32" fn SQLConnectA( hdbc: ?*anyopaque, szDSN: [*:0]u8, cbDSN: i16, szUID: [*:0]u8, cbUID: i16, szAuthStr: [*:0]u8, cbAuthStr: i16, ) callconv(@import("std").os.windows.WINAPI) i16; pub usingnamespace switch (@import("../zig.zig").arch) { .X64, .Arm64 => struct { pub extern "odbc32" fn SQLDescribeColA( hstmt: ?*anyopaque, icol: u16, szColName: ?[*:0]u8, cbColNameMax: i16, pcbColName: ?*i16, pfSqlType: ?*i16, pcbColDef: ?*u64, pibScale: ?*i16, pfNullable: ?*i16, ) callconv(@import("std").os.windows.WINAPI) i16; }, else => struct {}, }; pub extern "odbc32" fn SQLErrorA( henv: ?*anyopaque, hdbc: ?*anyopaque, hstmt: ?*anyopaque, szSqlState: ?*u8, pfNativeError: ?*i32, szErrorMsg: ?[*:0]u8, cbErrorMsgMax: i16, pcbErrorMsg: ?*i16, ) callconv(@import("std").os.windows.WINAPI) i16; pub extern "odbc32" fn SQLExecDirectA( hstmt: ?*anyopaque, szSqlStr: ?[*:0]u8, cbSqlStr: i32, ) callconv(@import("std").os.windows.WINAPI) i16; pub extern "odbc32" fn SQLGetConnectAttrA( hdbc: ?*anyopaque, fAttribute: i32, rgbValue: ?*anyopaque, cbValueMax: i32, pcbValue: ?*i32, ) callconv(@import("std").os.windows.WINAPI) i16; pub extern "odbc32" fn SQLGetCursorNameA( hstmt: ?*anyopaque, szCursor: ?[*:0]u8, cbCursorMax: i16, pcbCursor: ?*i16, ) callconv(@import("std").os.windows.WINAPI) i16; pub extern "odbc32" fn SQLGetDescFieldA( hdesc: ?*anyopaque, iRecord: i16, iField: i16, rgbValue: ?*anyopaque, cbBufferLength: i32, StringLength: ?*i32, ) callconv(@import("std").os.windows.WINAPI) i16; pub usingnamespace switch (@import("../zig.zig").arch) { .X64, .Arm64 => struct { pub extern "odbc32" fn SQLGetDescRecA( hdesc: ?*anyopaque, iRecord: i16, szName: ?[*:0]u8, cbNameMax: i16, pcbName: ?*i16, pfType: ?*i16, pfSubType: ?*i16, pLength: ?*i64, pPrecision: ?*i16, pScale: ?*i16, pNullable: ?*i16, ) callconv(@import("std").os.windows.WINAPI) i16; }, else => struct {}, }; pub extern "odbc32" fn SQLGetDiagFieldA( fHandleType: i16, handle: ?*anyopaque, iRecord: i16, fDiagField: i16, rgbDiagInfo: ?*anyopaque, cbDiagInfoMax: i16, pcbDiagInfo: ?*i16, ) callconv(@import("std").os.windows.WINAPI) i16; pub extern "odbc32" fn SQLGetDiagRecA( fHandleType: i16, handle: ?*anyopaque, iRecord: i16, szSqlState: ?*[6]u8, pfNativeError: ?*i32, szErrorMsg: ?[*:0]u8, cbErrorMsgMax: i16, pcbErrorMsg: ?*i16, ) callconv(@import("std").os.windows.WINAPI) i16; pub extern "odbc32" fn SQLGetStmtAttrA( hstmt: ?*anyopaque, fAttribute: i32, rgbValue: ?*anyopaque, cbValueMax: i32, pcbValue: ?*i32, ) callconv(@import("std").os.windows.WINAPI) i16; pub extern "odbc32" fn SQLGetTypeInfoA( StatementHandle: ?*anyopaque, DataType: i16, ) callconv(@import("std").os.windows.WINAPI) i16; pub extern "odbc32" fn SQLPrepareA( hstmt: ?*anyopaque, szSqlStr: [*:0]u8, cbSqlStr: i32, ) callconv(@import("std").os.windows.WINAPI) i16; pub extern "odbc32" fn SQLSetConnectAttrA( hdbc: ?*anyopaque, fAttribute: i32, // TODO: what to do with BytesParamIndex 3? rgbValue: ?*anyopaque, cbValue: i32, ) callconv(@import("std").os.windows.WINAPI) i16; pub extern "odbc32" fn SQLSetCursorNameA( hstmt: ?*anyopaque, szCursor: [*:0]u8, cbCursor: i16, ) callconv(@import("std").os.windows.WINAPI) i16; pub extern "odbc32" fn SQLColumnsA( hstmt: ?*anyopaque, szCatalogName: ?[*:0]u8, cbCatalogName: i16, szSchemaName: ?[*:0]u8, cbSchemaName: i16, szTableName: ?[*:0]u8, cbTableName: i16, szColumnName: ?[*:0]u8, cbColumnName: i16, ) callconv(@import("std").os.windows.WINAPI) i16; pub extern "odbc32" fn SQLGetConnectOptionA( hdbc: ?*anyopaque, fOption: u16, pvParam: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) i16; pub extern "odbc32" fn SQLGetInfoA( hdbc: ?*anyopaque, fInfoType: u16, // TODO: what to do with BytesParamIndex 3? rgbInfoValue: ?*anyopaque, cbInfoValueMax: i16, pcbInfoValue: ?*i16, ) callconv(@import("std").os.windows.WINAPI) i16; pub usingnamespace switch (@import("../zig.zig").arch) { .X64, .Arm64 => struct { pub extern "odbc32" fn SQLSetConnectOptionA( hdbc: ?*anyopaque, fOption: u16, vParam: u64, ) callconv(@import("std").os.windows.WINAPI) i16; }, else => struct {}, }; pub extern "odbc32" fn SQLSpecialColumnsA( hstmt: ?*anyopaque, fColType: u16, szCatalogName: ?[*:0]u8, cbCatalogName: i16, szSchemaName: ?[*:0]u8, cbSchemaName: i16, szTableName: ?[*:0]u8, cbTableName: i16, fScope: u16, fNullable: u16, ) callconv(@import("std").os.windows.WINAPI) i16; pub extern "odbc32" fn SQLStatisticsA( hstmt: ?*anyopaque, szCatalogName: ?[*:0]u8, cbCatalogName: i16, szSchemaName: ?[*:0]u8, cbSchemaName: i16, szTableName: ?[*:0]u8, cbTableName: i16, fUnique: u16, fAccuracy: u16, ) callconv(@import("std").os.windows.WINAPI) i16; pub extern "odbc32" fn SQLTablesA( hstmt: ?*anyopaque, szCatalogName: ?[*:0]u8, cbCatalogName: i16, szSchemaName: ?[*:0]u8, cbSchemaName: i16, szTableName: ?[*:0]u8, cbTableName: i16, szTableType: ?[*:0]u8, cbTableType: i16, ) callconv(@import("std").os.windows.WINAPI) i16; pub extern "odbc32" fn SQLDataSourcesA( henv: ?*anyopaque, fDirection: u16, szDSN: ?[*:0]u8, cbDSNMax: i16, pcbDSN: ?*i16, szDescription: ?[*:0]u8, cbDescriptionMax: i16, pcbDescription: ?*i16, ) callconv(@import("std").os.windows.WINAPI) i16; pub extern "odbc32" fn SQLDriverConnectA( hdbc: ?*anyopaque, hwnd: isize, szConnStrIn: [*:0]u8, cbConnStrIn: i16, szConnStrOut: ?[*:0]u8, cbConnStrOutMax: i16, pcbConnStrOut: ?*i16, fDriverCompletion: u16, ) callconv(@import("std").os.windows.WINAPI) i16; pub extern "odbc32" fn SQLBrowseConnectA( hdbc: ?*anyopaque, szConnStrIn: [*:0]u8, cbConnStrIn: i16, szConnStrOut: ?[*:0]u8, cbConnStrOutMax: i16, pcbConnStrOut: ?*i16, ) callconv(@import("std").os.windows.WINAPI) i16; pub extern "odbc32" fn SQLColumnPrivilegesA( hstmt: ?*anyopaque, szCatalogName: ?[*:0]u8, cbCatalogName: i16, szSchemaName: ?[*:0]u8, cbSchemaName: i16, szTableName: ?[*:0]u8, cbTableName: i16, szColumnName: ?[*:0]u8, cbColumnName: i16, ) callconv(@import("std").os.windows.WINAPI) i16; pub extern "odbc32" fn SQLForeignKeysA( hstmt: ?*anyopaque, szPkCatalogName: ?[*:0]u8, cbPkCatalogName: i16, szPkSchemaName: ?[*:0]u8, cbPkSchemaName: i16, szPkTableName: ?[*:0]u8, cbPkTableName: i16, szFkCatalogName: ?[*:0]u8, cbFkCatalogName: i16, szFkSchemaName: ?[*:0]u8, cbFkSchemaName: i16, szFkTableName: ?[*:0]u8, cbFkTableName: i16, ) callconv(@import("std").os.windows.WINAPI) i16; pub extern "odbc32" fn SQLNativeSqlA( hdbc: ?*anyopaque, szSqlStrIn: [*:0]u8, cbSqlStrIn: i32, szSqlStr: ?[*:0]u8, cbSqlStrMax: i32, pcbSqlStr: ?*i32, ) callconv(@import("std").os.windows.WINAPI) i16; pub extern "odbc32" fn SQLPrimaryKeysA( hstmt: ?*anyopaque, szCatalogName: ?[*:0]u8, cbCatalogName: i16, szSchemaName: ?[*:0]u8, cbSchemaName: i16, szTableName: ?[*:0]u8, cbTableName: i16, ) callconv(@import("std").os.windows.WINAPI) i16; pub extern "odbc32" fn SQLProcedureColumnsA( hstmt: ?*anyopaque, szCatalogName: ?[*:0]u8, cbCatalogName: i16, szSchemaName: ?[*:0]u8, cbSchemaName: i16, szProcName: ?[*:0]u8, cbProcName: i16, szColumnName: ?[*:0]u8, cbColumnName: i16, ) callconv(@import("std").os.windows.WINAPI) i16; pub extern "odbc32" fn SQLProceduresA( hstmt: ?*anyopaque, szCatalogName: ?[*:0]u8, cbCatalogName: i16, szSchemaName: ?[*:0]u8, cbSchemaName: i16, szProcName: ?[*:0]u8, cbProcName: i16, ) callconv(@import("std").os.windows.WINAPI) i16; pub extern "odbc32" fn SQLTablePrivilegesA( hstmt: ?*anyopaque, szCatalogName: ?[*:0]u8, cbCatalogName: i16, szSchemaName: ?[*:0]u8, cbSchemaName: i16, szTableName: ?[*:0]u8, cbTableName: i16, ) callconv(@import("std").os.windows.WINAPI) i16; pub extern "odbc32" fn SQLDriversA( henv: ?*anyopaque, fDirection: u16, szDriverDesc: ?[*:0]u8, cbDriverDescMax: i16, pcbDriverDesc: ?*i16, szDriverAttributes: ?[*:0]u8, cbDrvrAttrMax: i16, pcbDrvrAttr: ?*i16, ) callconv(@import("std").os.windows.WINAPI) i16; pub usingnamespace switch (@import("../zig.zig").arch) { .X86 => struct { pub extern "odbc32" fn SQLBindCol( StatementHandle: ?*anyopaque, ColumnNumber: u16, TargetType: i16, TargetValue: ?*anyopaque, BufferLength: i32, StrLen_or_Ind: ?*i32, ) callconv(@import("std").os.windows.WINAPI) i16; }, else => struct {}, }; pub usingnamespace switch (@import("../zig.zig").arch) { .X86 => struct { pub extern "odbc32" fn SQLBindParam( StatementHandle: ?*anyopaque, ParameterNumber: u16, ValueType: i16, ParameterType: i16, LengthPrecision: u32, ParameterScale: i16, ParameterValue: ?*anyopaque, StrLen_or_Ind: ?*i32, ) callconv(@import("std").os.windows.WINAPI) i16; }, else => struct {}, }; pub usingnamespace switch (@import("../zig.zig").arch) { .X86 => struct { pub extern "odbc32" fn SQLColAttribute( StatementHandle: ?*anyopaque, ColumnNumber: u16, FieldIdentifier: u16, // TODO: what to do with BytesParamIndex 4? CharacterAttribute: ?*anyopaque, BufferLength: i16, StringLength: ?*i16, NumericAttribute: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) i16; }, else => struct {}, }; pub usingnamespace switch (@import("../zig.zig").arch) { .X86 => struct { pub extern "odbc32" fn SQLDescribeCol( StatementHandle: ?*anyopaque, ColumnNumber: u16, ColumnName: ?[*:0]u8, BufferLength: i16, NameLength: ?*i16, DataType: ?*i16, ColumnSize: ?*u32, DecimalDigits: ?*i16, Nullable: ?*i16, ) callconv(@import("std").os.windows.WINAPI) i16; }, else => struct {}, }; pub usingnamespace switch (@import("../zig.zig").arch) { .X86 => struct { pub extern "odbc32" fn SQLFetchScroll( StatementHandle: ?*anyopaque, FetchOrientation: i16, FetchOffset: i32, ) callconv(@import("std").os.windows.WINAPI) i16; }, else => struct {}, }; pub usingnamespace switch (@import("../zig.zig").arch) { .X86 => struct { pub extern "odbc32" fn SQLGetData( StatementHandle: ?*anyopaque, ColumnNumber: u16, TargetType: i16, TargetValue: ?*anyopaque, BufferLength: i32, StrLen_or_IndPtr: ?*i32, ) callconv(@import("std").os.windows.WINAPI) i16; }, else => struct {}, }; pub usingnamespace switch (@import("../zig.zig").arch) { .X86 => struct { pub extern "odbc32" fn SQLGetDescRec( DescriptorHandle: ?*anyopaque, RecNumber: i16, Name: ?[*:0]u8, BufferLength: i16, StringLengthPtr: ?*i16, TypePtr: ?*i16, SubTypePtr: ?*i16, LengthPtr: ?*i32, PrecisionPtr: ?*i16, ScalePtr: ?*i16, NullablePtr: ?*i16, ) callconv(@import("std").os.windows.WINAPI) i16; }, else => struct {}, }; pub usingnamespace switch (@import("../zig.zig").arch) { .X86 => struct { pub extern "odbc32" fn SQLPutData( StatementHandle: ?*anyopaque, Data: ?*anyopaque, StrLen_or_Ind: i32, ) callconv(@import("std").os.windows.WINAPI) i16; }, else => struct {}, }; pub usingnamespace switch (@import("../zig.zig").arch) { .X86 => struct { pub extern "odbc32" fn SQLRowCount( StatementHandle: ?*anyopaque, RowCount: ?*i32, ) callconv(@import("std").os.windows.WINAPI) i16; }, else => struct {}, }; pub usingnamespace switch (@import("../zig.zig").arch) { .X86 => struct { pub extern "odbc32" fn SQLSetConnectOption( ConnectionHandle: ?*anyopaque, Option: u16, Value: u32, ) callconv(@import("std").os.windows.WINAPI) i16; }, else => struct {}, }; pub usingnamespace switch (@import("../zig.zig").arch) { .X86 => struct { pub extern "odbc32" fn SQLSetDescRec( DescriptorHandle: ?*anyopaque, RecNumber: i16, Type: i16, SubType: i16, Length: i32, Precision: i16, Scale: i16, // TODO: what to do with BytesParamIndex 4? Data: ?*anyopaque, StringLength: ?*i32, Indicator: ?*i32, ) callconv(@import("std").os.windows.WINAPI) i16; }, else => struct {}, }; pub usingnamespace switch (@import("../zig.zig").arch) { .X86 => struct { pub extern "odbc32" fn SQLSetParam( StatementHandle: ?*anyopaque, ParameterNumber: u16, ValueType: i16, ParameterType: i16, LengthPrecision: u32, ParameterScale: i16, ParameterValue: ?*anyopaque, StrLen_or_Ind: ?*i32, ) callconv(@import("std").os.windows.WINAPI) i16; }, else => struct {}, }; pub usingnamespace switch (@import("../zig.zig").arch) { .X86 => struct { pub extern "odbc32" fn SQLSetStmtOption( StatementHandle: ?*anyopaque, Option: u16, Value: u32, ) callconv(@import("std").os.windows.WINAPI) i16; }, else => struct {}, }; pub usingnamespace switch (@import("../zig.zig").arch) { .X86 => struct { pub extern "odbc32" fn SQLColAttributes( hstmt: ?*anyopaque, icol: u16, fDescType: u16, rgbDesc: ?*anyopaque, cbDescMax: i16, pcbDesc: ?*i16, pfDesc: ?*i32, ) callconv(@import("std").os.windows.WINAPI) i16; }, else => struct {}, }; pub usingnamespace switch (@import("../zig.zig").arch) { .X86 => struct { pub extern "odbc32" fn SQLDescribeParam( hstmt: ?*anyopaque, ipar: u16, pfSqlType: ?*i16, pcbParamDef: ?*u32, pibScale: ?*i16, pfNullable: ?*i16, ) callconv(@import("std").os.windows.WINAPI) i16; }, else => struct {}, }; pub usingnamespace switch (@import("../zig.zig").arch) { .X86 => struct { pub extern "odbc32" fn SQLExtendedFetch( hstmt: ?*anyopaque, fFetchType: u16, irow: i32, pcrow: ?*u32, rgfRowStatus: ?*u16, ) callconv(@import("std").os.windows.WINAPI) i16; }, else => struct {}, }; pub usingnamespace switch (@import("../zig.zig").arch) { .X86 => struct { pub extern "odbc32" fn SQLParamOptions( hstmt: ?*anyopaque, crow: u32, pirow: ?*u32, ) callconv(@import("std").os.windows.WINAPI) i16; }, else => struct {}, }; pub usingnamespace switch (@import("../zig.zig").arch) { .X86 => struct { pub extern "odbc32" fn SQLSetPos( hstmt: ?*anyopaque, irow: u16, fOption: u16, fLock: u16, ) callconv(@import("std").os.windows.WINAPI) i16; }, else => struct {}, }; pub usingnamespace switch (@import("../zig.zig").arch) { .X86 => struct { pub extern "odbc32" fn SQLBindParameter( hstmt: ?*anyopaque, ipar: u16, fParamType: i16, fCType: i16, fSqlType: i16, cbColDef: u32, ibScale: i16, rgbValue: ?*anyopaque, cbValueMax: i32, pcbValue: ?*i32, ) callconv(@import("std").os.windows.WINAPI) i16; }, else => struct {}, }; pub usingnamespace switch (@import("../zig.zig").arch) { .X86 => struct { pub extern "odbc32" fn SQLSetScrollOptions( hstmt: ?*anyopaque, fConcurrency: u16, crowKeyset: i32, crowRowset: u16, ) callconv(@import("std").os.windows.WINAPI) i16; }, else => struct {}, }; pub usingnamespace switch (@import("../zig.zig").arch) { .X86 => struct { pub extern "odbc32" fn SQLColAttributeW( hstmt: ?*anyopaque, iCol: u16, iField: u16, // TODO: what to do with BytesParamIndex 4? pCharAttr: ?*anyopaque, cbDescMax: i16, pcbCharAttr: ?*i16, pNumAttr: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) i16; }, else => struct {}, }; pub usingnamespace switch (@import("../zig.zig").arch) { .X86 => struct { pub extern "odbc32" fn SQLColAttributesW( hstmt: ?*anyopaque, icol: u16, fDescType: u16, // TODO: what to do with BytesParamIndex 4? rgbDesc: ?*anyopaque, cbDescMax: i16, pcbDesc: ?*i16, pfDesc: ?*i32, ) callconv(@import("std").os.windows.WINAPI) i16; }, else => struct {}, }; pub usingnamespace switch (@import("../zig.zig").arch) { .X86 => struct { pub extern "odbc32" fn SQLDescribeColW( hstmt: ?*anyopaque, icol: u16, szColName: ?[*:0]u16, cchColNameMax: i16, pcchColName: ?*i16, pfSqlType: ?*i16, pcbColDef: ?*u32, pibScale: ?*i16, pfNullable: ?*i16, ) callconv(@import("std").os.windows.WINAPI) i16; }, else => struct {}, }; pub usingnamespace switch (@import("../zig.zig").arch) { .X86 => struct { pub extern "odbc32" fn SQLGetDescRecW( hdesc: ?*anyopaque, iRecord: i16, szName: ?[*:0]u16, cchNameMax: i16, pcchName: ?*i16, pfType: ?*i16, pfSubType: ?*i16, pLength: ?*i32, pPrecision: ?*i16, pScale: ?*i16, pNullable: ?*i16, ) callconv(@import("std").os.windows.WINAPI) i16; }, else => struct {}, }; pub usingnamespace switch (@import("../zig.zig").arch) { .X86 => struct { pub extern "odbc32" fn SQLSetConnectOptionW( hdbc: ?*anyopaque, fOption: u16, vParam: u32, ) callconv(@import("std").os.windows.WINAPI) i16; }, else => struct {}, }; pub usingnamespace switch (@import("../zig.zig").arch) { .X86 => struct { pub extern "odbc32" fn SQLColAttributeA( hstmt: ?*anyopaque, iCol: i16, iField: i16, // TODO: what to do with BytesParamIndex 4? pCharAttr: ?*anyopaque, cbCharAttrMax: i16, pcbCharAttr: ?*i16, pNumAttr: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) i16; }, else => struct {}, }; pub usingnamespace switch (@import("../zig.zig").arch) { .X86 => struct { pub extern "odbc32" fn SQLColAttributesA( hstmt: ?*anyopaque, icol: u16, fDescType: u16, // TODO: what to do with BytesParamIndex 4? rgbDesc: ?*anyopaque, cbDescMax: i16, pcbDesc: ?*i16, pfDesc: ?*i32, ) callconv(@import("std").os.windows.WINAPI) i16; }, else => struct {}, }; pub usingnamespace switch (@import("../zig.zig").arch) { .X86 => struct { pub extern "odbc32" fn SQLDescribeColA( hstmt: ?*anyopaque, icol: u16, szColName: ?[*:0]u8, cbColNameMax: i16, pcbColName: ?*i16, pfSqlType: ?*i16, pcbColDef: ?*u32, pibScale: ?*i16, pfNullable: ?*i16, ) callconv(@import("std").os.windows.WINAPI) i16; }, else => struct {}, }; pub usingnamespace switch (@import("../zig.zig").arch) { .X86 => struct { pub extern "odbc32" fn SQLGetDescRecA( hdesc: ?*anyopaque, iRecord: i16, szName: ?[*:0]u8, cbNameMax: i16, pcbName: ?*i16, pfType: ?*i16, pfSubType: ?*i16, pLength: ?*i32, pPrecision: ?*i16, pScale: ?*i16, pNullable: ?*i16, ) callconv(@import("std").os.windows.WINAPI) i16; }, else => struct {}, }; pub usingnamespace switch (@import("../zig.zig").arch) { .X86 => struct { pub extern "odbc32" fn SQLSetConnectOptionA( hdbc: ?*anyopaque, fOption: u16, vParam: u32, ) callconv(@import("std").os.windows.WINAPI) i16; }, else => struct {}, }; //-------------------------------------------------------------------------------- // Section: Unicode Aliases (5) //-------------------------------------------------------------------------------- const thismodule = @This(); pub usingnamespace switch (@import("../zig.zig").unicode_mode) { .ansi => struct { pub const bcp_init = thismodule.bcp_initA; pub const bcp_readfmt = thismodule.bcp_readfmtA; pub const bcp_writefmt = thismodule.bcp_writefmtA; pub const dbprtype = thismodule.dbprtypeA; pub const SQLLinkedCatalogs = thismodule.SQLLinkedCatalogsA; }, .wide => struct { pub const bcp_init = thismodule.bcp_initW; pub const bcp_readfmt = thismodule.bcp_readfmtW; pub const bcp_writefmt = thismodule.bcp_writefmtW; pub const dbprtype = thismodule.dbprtypeW; pub const SQLLinkedCatalogs = thismodule.SQLLinkedCatalogsW; }, .unspecified => if (@import("builtin").is_test) struct { pub const bcp_init = *opaque {}; pub const bcp_readfmt = *opaque {}; pub const bcp_writefmt = *opaque {}; pub const dbprtype = *opaque {}; pub const SQLLinkedCatalogs = *opaque {}; } else struct { pub const bcp_init = @compileError("'bcp_init' requires that UNICODE be set to true or false in the root module"); pub const bcp_readfmt = @compileError("'bcp_readfmt' requires that UNICODE be set to true or false in the root module"); pub const bcp_writefmt = @compileError("'bcp_writefmt' requires that UNICODE be set to true or false in the root module"); pub const dbprtype = @compileError("'dbprtype' requires that UNICODE be set to true or false in the root module"); pub const SQLLinkedCatalogs = @compileError("'SQLLinkedCatalogs' requires that UNICODE be set to true or false in the root module"); }, }; //-------------------------------------------------------------------------------- // Section: Imports (44) //-------------------------------------------------------------------------------- const Guid = @import("../zig.zig").Guid; const BLOB = @import("../system/com.zig").BLOB; const BOOL = @import("../foundation.zig").BOOL; const BSTR = @import("../foundation.zig").BSTR; const CONDITION_OPERATION = @import("../system/search/common.zig").CONDITION_OPERATION; const CONDITION_TYPE = @import("../system/search/common.zig").CONDITION_TYPE; const COSERVERINFO = @import("../system/com.zig").COSERVERINFO; const CY = @import("../system/com.zig").CY; const DBID = @import("../storage/index_server.zig").DBID; const DISPPARAMS = @import("../system/com.zig").DISPPARAMS; const EXPLICIT_ACCESS_W = @import("../security/authorization.zig").EXPLICIT_ACCESS_W; const FILETIME = @import("../foundation.zig").FILETIME; const FILTERREGION = @import("../storage/index_server.zig").FILTERREGION; const FULLPROPSPEC = @import("../storage/index_server.zig").FULLPROPSPEC; const HANDLE = @import("../foundation.zig").HANDLE; const HRESULT = @import("../foundation.zig").HRESULT; const HWND = @import("../foundation.zig").HWND; const IAuthenticate = @import("../system/com.zig").IAuthenticate; const IDispatch = @import("../system/com.zig").IDispatch; const IEnumString = @import("../system/com.zig").IEnumString; const IEnumUnknown = @import("../system/com.zig").IEnumUnknown; const IErrorInfo = @import("../system/com.zig").IErrorInfo; const IFilter = @import("../storage/index_server.zig").IFilter; const IMoniker = @import("../system/com.zig").IMoniker; const IObjectArray = @import("../ui/shell/common.zig").IObjectArray; const IPersistStream = @import("../system/com.zig").IPersistStream; const IPhraseSink = @import("../storage/index_server.zig").IPhraseSink; const ISequentialStream = @import("../system/com.zig").ISequentialStream; const IStorage = @import("../system/com/structured_storage.zig").IStorage; const IStream = @import("../system/com.zig").IStream; const ITransaction = @import("../system/distributed_transaction_coordinator.zig").ITransaction; const ITransactionOptions = @import("../system/distributed_transaction_coordinator.zig").ITransactionOptions; const ITypeInfo = @import("../system/com.zig").ITypeInfo; const IUnknown = @import("../system/com.zig").IUnknown; const MULTI_QI = @import("../system/com.zig").MULTI_QI; const PROPERTYKEY = @import("../ui/shell/properties_system.zig").PROPERTYKEY; const PROPSPEC = @import("../system/com/structured_storage.zig").PROPSPEC; const PROPVARIANT = @import("../system/com/structured_storage.zig").PROPVARIANT; const PSTR = @import("../foundation.zig").PSTR; const PWSTR = @import("../foundation.zig").PWSTR; const SYSTEMTIME = @import("../foundation.zig").SYSTEMTIME; const TRUSTEE_W = @import("../security/authorization.zig").TRUSTEE_W; const VARIANT = @import("../system/com.zig").VARIANT; const WORDREP_BREAK_TYPE = @import("../storage/index_server.zig").WORDREP_BREAK_TYPE; test { // The following '_ = <FuncPtrType>' lines are a workaround for https://github.com/ziglang/zig/issues/4476 if (@hasDecl(@This(), "SQL_ASYNC_NOTIFICATION_CALLBACK")) { _ = SQL_ASYNC_NOTIFICATION_CALLBACK; } @setEvalBranchQuota(comptime @import("std").meta.declarations(@This()).len * 3); // reference all the pub declarations if (!@import("builtin").is_test) return; inline for (comptime @import("std").meta.declarations(@This())) |decl| { if (decl.is_pub) { _ = @field(@This(), decl.name); } } } //-------------------------------------------------------------------------------- // Section: SubModules (1) //-------------------------------------------------------------------------------- pub const common = @import("search/common.zig");
0
repos/capy/vendor/zigwin32/win32
repos/capy/vendor/zigwin32/win32/system/assessment_tool.zig
//! NOTE: this file is autogenerated, DO NOT MODIFY //-------------------------------------------------------------------------------- // Section: Constants (0) //-------------------------------------------------------------------------------- //-------------------------------------------------------------------------------- // Section: Types (19) //-------------------------------------------------------------------------------- const CLSID_CInitiateWinSAT_Value = Guid.initString("489331dc-f5e0-4528-9fda-45331bf4a571"); pub const CLSID_CInitiateWinSAT = &CLSID_CInitiateWinSAT_Value; const CLSID_CQueryWinSAT_Value = Guid.initString("f3bdfad3-f276-49e9-9b17-c474f48f0764"); pub const CLSID_CQueryWinSAT = &CLSID_CQueryWinSAT_Value; const CLSID_CQueryAllWinSAT_Value = Guid.initString("05df8d13-c355-47f4-a11e-851b338cefb8"); pub const CLSID_CQueryAllWinSAT = &CLSID_CQueryAllWinSAT_Value; const CLSID_CProvideWinSATVisuals_Value = Guid.initString("9f377d7e-e551-44f8-9f94-9db392b03b7b"); pub const CLSID_CProvideWinSATVisuals = &CLSID_CProvideWinSATVisuals_Value; const CLSID_CAccessiblityWinSAT_Value = Guid.initString("6e18f9c6-a3eb-495a-89b7-956482e19f7a"); pub const CLSID_CAccessiblityWinSAT = &CLSID_CAccessiblityWinSAT_Value; const CLSID_CQueryOEMWinSATCustomization_Value = Guid.initString("c47a41b7-b729-424f-9af9-5cb3934f2dfa"); pub const CLSID_CQueryOEMWinSATCustomization = &CLSID_CQueryOEMWinSATCustomization_Value; pub const WINSAT_OEM_DATA_TYPE = enum(i32) { DATA_VALID = 0, DATA_NON_SYS_CONFIG_MATCH = 1, DATA_INVALID = 2, NO_DATA_SUPPLIED = 3, }; pub const WINSAT_OEM_DATA_VALID = WINSAT_OEM_DATA_TYPE.DATA_VALID; pub const WINSAT_OEM_DATA_NON_SYS_CONFIG_MATCH = WINSAT_OEM_DATA_TYPE.DATA_NON_SYS_CONFIG_MATCH; pub const WINSAT_OEM_DATA_INVALID = WINSAT_OEM_DATA_TYPE.DATA_INVALID; pub const WINSAT_OEM_NO_DATA_SUPPLIED = WINSAT_OEM_DATA_TYPE.NO_DATA_SUPPLIED; pub const WINSAT_ASSESSMENT_STATE = enum(i32) { MIN = 0, // UNKNOWN = 0, this enum value conflicts with MIN VALID = 1, INCOHERENT_WITH_HARDWARE = 2, NOT_AVAILABLE = 3, INVALID = 4, // MAX = 4, this enum value conflicts with INVALID }; pub const WINSAT_ASSESSMENT_STATE_MIN = WINSAT_ASSESSMENT_STATE.MIN; pub const WINSAT_ASSESSMENT_STATE_UNKNOWN = WINSAT_ASSESSMENT_STATE.MIN; pub const WINSAT_ASSESSMENT_STATE_VALID = WINSAT_ASSESSMENT_STATE.VALID; pub const WINSAT_ASSESSMENT_STATE_INCOHERENT_WITH_HARDWARE = WINSAT_ASSESSMENT_STATE.INCOHERENT_WITH_HARDWARE; pub const WINSAT_ASSESSMENT_STATE_NOT_AVAILABLE = WINSAT_ASSESSMENT_STATE.NOT_AVAILABLE; pub const WINSAT_ASSESSMENT_STATE_INVALID = WINSAT_ASSESSMENT_STATE.INVALID; pub const WINSAT_ASSESSMENT_STATE_MAX = WINSAT_ASSESSMENT_STATE.INVALID; pub const WINSAT_ASSESSMENT_TYPE = enum(i32) { MEMORY = 0, CPU = 1, DISK = 2, D3D = 3, GRAPHICS = 4, }; pub const WINSAT_ASSESSMENT_MEMORY = WINSAT_ASSESSMENT_TYPE.MEMORY; pub const WINSAT_ASSESSMENT_CPU = WINSAT_ASSESSMENT_TYPE.CPU; pub const WINSAT_ASSESSMENT_DISK = WINSAT_ASSESSMENT_TYPE.DISK; pub const WINSAT_ASSESSMENT_D3D = WINSAT_ASSESSMENT_TYPE.D3D; pub const WINSAT_ASSESSMENT_GRAPHICS = WINSAT_ASSESSMENT_TYPE.GRAPHICS; pub const WINSAT_BITMAP_SIZE = enum(i32) { SMALL = 0, NORMAL = 1, }; pub const WINSAT_BITMAP_SIZE_SMALL = WINSAT_BITMAP_SIZE.SMALL; pub const WINSAT_BITMAP_SIZE_NORMAL = WINSAT_BITMAP_SIZE.NORMAL; // TODO: this type is limited to platform 'windows6.0.6000' const IID_IProvideWinSATAssessmentInfo_Value = Guid.initString("0cd1c380-52d3-4678-ac6f-e929e480be9e"); pub const IID_IProvideWinSATAssessmentInfo = &IID_IProvideWinSATAssessmentInfo_Value; pub const IProvideWinSATAssessmentInfo = extern struct { pub const VTable = extern struct { base: IDispatch.VTable, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Score: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IProvideWinSATAssessmentInfo, score: ?*f32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IProvideWinSATAssessmentInfo, score: ?*f32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Title: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IProvideWinSATAssessmentInfo, title: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IProvideWinSATAssessmentInfo, title: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Description: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IProvideWinSATAssessmentInfo, description: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IProvideWinSATAssessmentInfo, description: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IDispatch.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IProvideWinSATAssessmentInfo_get_Score(self: *const T, score: ?*f32) HRESULT { return @as(*const IProvideWinSATAssessmentInfo.VTable, @ptrCast(self.vtable)).get_Score(@as(*const IProvideWinSATAssessmentInfo, @ptrCast(self)), score); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IProvideWinSATAssessmentInfo_get_Title(self: *const T, title: ?*?BSTR) HRESULT { return @as(*const IProvideWinSATAssessmentInfo.VTable, @ptrCast(self.vtable)).get_Title(@as(*const IProvideWinSATAssessmentInfo, @ptrCast(self)), title); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IProvideWinSATAssessmentInfo_get_Description(self: *const T, description: ?*?BSTR) HRESULT { return @as(*const IProvideWinSATAssessmentInfo.VTable, @ptrCast(self.vtable)).get_Description(@as(*const IProvideWinSATAssessmentInfo, @ptrCast(self)), description); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows6.0.6000' const IID_IProvideWinSATResultsInfo_Value = Guid.initString("f8334d5d-568e-4075-875f-9df341506640"); pub const IID_IProvideWinSATResultsInfo = &IID_IProvideWinSATResultsInfo_Value; pub const IProvideWinSATResultsInfo = extern struct { pub const VTable = extern struct { base: IDispatch.VTable, GetAssessmentInfo: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IProvideWinSATResultsInfo, assessment: WINSAT_ASSESSMENT_TYPE, ppinfo: ?*?*IProvideWinSATAssessmentInfo, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IProvideWinSATResultsInfo, assessment: WINSAT_ASSESSMENT_TYPE, ppinfo: ?*?*IProvideWinSATAssessmentInfo, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_AssessmentState: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IProvideWinSATResultsInfo, state: ?*WINSAT_ASSESSMENT_STATE, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IProvideWinSATResultsInfo, state: ?*WINSAT_ASSESSMENT_STATE, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_AssessmentDateTime: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IProvideWinSATResultsInfo, fileTime: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IProvideWinSATResultsInfo, fileTime: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_SystemRating: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IProvideWinSATResultsInfo, level: ?*f32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IProvideWinSATResultsInfo, level: ?*f32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_RatingStateDesc: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IProvideWinSATResultsInfo, description: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IProvideWinSATResultsInfo, description: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IDispatch.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IProvideWinSATResultsInfo_GetAssessmentInfo(self: *const T, assessment: WINSAT_ASSESSMENT_TYPE, ppinfo: ?*?*IProvideWinSATAssessmentInfo) HRESULT { return @as(*const IProvideWinSATResultsInfo.VTable, @ptrCast(self.vtable)).GetAssessmentInfo(@as(*const IProvideWinSATResultsInfo, @ptrCast(self)), assessment, ppinfo); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IProvideWinSATResultsInfo_get_AssessmentState(self: *const T, state: ?*WINSAT_ASSESSMENT_STATE) HRESULT { return @as(*const IProvideWinSATResultsInfo.VTable, @ptrCast(self.vtable)).get_AssessmentState(@as(*const IProvideWinSATResultsInfo, @ptrCast(self)), state); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IProvideWinSATResultsInfo_get_AssessmentDateTime(self: *const T, fileTime: ?*VARIANT) HRESULT { return @as(*const IProvideWinSATResultsInfo.VTable, @ptrCast(self.vtable)).get_AssessmentDateTime(@as(*const IProvideWinSATResultsInfo, @ptrCast(self)), fileTime); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IProvideWinSATResultsInfo_get_SystemRating(self: *const T, level: ?*f32) HRESULT { return @as(*const IProvideWinSATResultsInfo.VTable, @ptrCast(self.vtable)).get_SystemRating(@as(*const IProvideWinSATResultsInfo, @ptrCast(self)), level); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IProvideWinSATResultsInfo_get_RatingStateDesc(self: *const T, description: ?*?BSTR) HRESULT { return @as(*const IProvideWinSATResultsInfo.VTable, @ptrCast(self.vtable)).get_RatingStateDesc(@as(*const IProvideWinSATResultsInfo, @ptrCast(self)), description); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows6.0.6000' const IID_IQueryRecentWinSATAssessment_Value = Guid.initString("f8ad5d1f-3b47-4bdc-9375-7c6b1da4eca7"); pub const IID_IQueryRecentWinSATAssessment = &IID_IQueryRecentWinSATAssessment_Value; pub const IQueryRecentWinSATAssessment = extern struct { pub const VTable = extern struct { base: IDispatch.VTable, // TODO: this function has a "SpecialName", should Zig do anything with this? get_XML: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IQueryRecentWinSATAssessment, xPath: ?BSTR, namespaces: ?BSTR, ppDomNodeList: ?*?*IXMLDOMNodeList, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IQueryRecentWinSATAssessment, xPath: ?BSTR, namespaces: ?BSTR, ppDomNodeList: ?*?*IXMLDOMNodeList, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Info: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IQueryRecentWinSATAssessment, ppWinSATAssessmentInfo: ?*?*IProvideWinSATResultsInfo, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IQueryRecentWinSATAssessment, ppWinSATAssessmentInfo: ?*?*IProvideWinSATResultsInfo, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IDispatch.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IQueryRecentWinSATAssessment_get_XML(self: *const T, xPath: ?BSTR, namespaces: ?BSTR, ppDomNodeList: ?*?*IXMLDOMNodeList) HRESULT { return @as(*const IQueryRecentWinSATAssessment.VTable, @ptrCast(self.vtable)).get_XML(@as(*const IQueryRecentWinSATAssessment, @ptrCast(self)), xPath, namespaces, ppDomNodeList); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IQueryRecentWinSATAssessment_get_Info(self: *const T, ppWinSATAssessmentInfo: ?*?*IProvideWinSATResultsInfo) HRESULT { return @as(*const IQueryRecentWinSATAssessment.VTable, @ptrCast(self.vtable)).get_Info(@as(*const IQueryRecentWinSATAssessment, @ptrCast(self)), ppWinSATAssessmentInfo); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows6.0.6000' const IID_IProvideWinSATVisuals_Value = Guid.initString("a9f4ade0-871a-42a3-b813-3078d25162c9"); pub const IID_IProvideWinSATVisuals = &IID_IProvideWinSATVisuals_Value; pub const IProvideWinSATVisuals = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Bitmap: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IProvideWinSATVisuals, bitmapSize: WINSAT_BITMAP_SIZE, state: WINSAT_ASSESSMENT_STATE, rating: f32, pBitmap: ?*?HBITMAP, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IProvideWinSATVisuals, bitmapSize: WINSAT_BITMAP_SIZE, state: WINSAT_ASSESSMENT_STATE, rating: f32, pBitmap: ?*?HBITMAP, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IProvideWinSATVisuals_get_Bitmap(self: *const T, bitmapSize: WINSAT_BITMAP_SIZE, state: WINSAT_ASSESSMENT_STATE, rating: f32, pBitmap: ?*?HBITMAP) HRESULT { return @as(*const IProvideWinSATVisuals.VTable, @ptrCast(self.vtable)).get_Bitmap(@as(*const IProvideWinSATVisuals, @ptrCast(self)), bitmapSize, state, rating, pBitmap); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows6.0.6000' const IID_IQueryAllWinSATAssessments_Value = Guid.initString("0b89ed1d-6398-4fea-87fc-567d8d19176f"); pub const IID_IQueryAllWinSATAssessments = &IID_IQueryAllWinSATAssessments_Value; pub const IQueryAllWinSATAssessments = extern struct { pub const VTable = extern struct { base: IDispatch.VTable, // TODO: this function has a "SpecialName", should Zig do anything with this? get_AllXML: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IQueryAllWinSATAssessments, xPath: ?BSTR, namespaces: ?BSTR, ppDomNodeList: ?*?*IXMLDOMNodeList, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IQueryAllWinSATAssessments, xPath: ?BSTR, namespaces: ?BSTR, ppDomNodeList: ?*?*IXMLDOMNodeList, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IDispatch.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IQueryAllWinSATAssessments_get_AllXML(self: *const T, xPath: ?BSTR, namespaces: ?BSTR, ppDomNodeList: ?*?*IXMLDOMNodeList) HRESULT { return @as(*const IQueryAllWinSATAssessments.VTable, @ptrCast(self.vtable)).get_AllXML(@as(*const IQueryAllWinSATAssessments, @ptrCast(self)), xPath, namespaces, ppDomNodeList); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows6.0.6000' const IID_IWinSATInitiateEvents_Value = Guid.initString("262a1918-ba0d-41d5-92c2-fab4633ee74f"); pub const IID_IWinSATInitiateEvents = &IID_IWinSATInitiateEvents_Value; pub const IWinSATInitiateEvents = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, WinSATComplete: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IWinSATInitiateEvents, hresult: HRESULT, strDescription: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IWinSATInitiateEvents, hresult: HRESULT, strDescription: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, WinSATUpdate: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IWinSATInitiateEvents, uCurrentTick: u32, uTickTotal: u32, strCurrentState: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IWinSATInitiateEvents, uCurrentTick: u32, uTickTotal: u32, strCurrentState: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWinSATInitiateEvents_WinSATComplete(self: *const T, hresult: HRESULT, strDescription: ?[*:0]const u16) HRESULT { return @as(*const IWinSATInitiateEvents.VTable, @ptrCast(self.vtable)).WinSATComplete(@as(*const IWinSATInitiateEvents, @ptrCast(self)), hresult, strDescription); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWinSATInitiateEvents_WinSATUpdate(self: *const T, uCurrentTick: u32, uTickTotal: u32, strCurrentState: ?[*:0]const u16) HRESULT { return @as(*const IWinSATInitiateEvents.VTable, @ptrCast(self.vtable)).WinSATUpdate(@as(*const IWinSATInitiateEvents, @ptrCast(self)), uCurrentTick, uTickTotal, strCurrentState); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows6.0.6000' const IID_IInitiateWinSATAssessment_Value = Guid.initString("d983fc50-f5bf-49d5-b5ed-cccb18aa7fc1"); pub const IID_IInitiateWinSATAssessment = &IID_IInitiateWinSATAssessment_Value; pub const IInitiateWinSATAssessment = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, InitiateAssessment: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IInitiateWinSATAssessment, cmdLine: ?[*:0]const u16, pCallbacks: ?*IWinSATInitiateEvents, callerHwnd: ?HWND, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IInitiateWinSATAssessment, cmdLine: ?[*:0]const u16, pCallbacks: ?*IWinSATInitiateEvents, callerHwnd: ?HWND, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, InitiateFormalAssessment: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IInitiateWinSATAssessment, pCallbacks: ?*IWinSATInitiateEvents, callerHwnd: ?HWND, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IInitiateWinSATAssessment, pCallbacks: ?*IWinSATInitiateEvents, callerHwnd: ?HWND, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, CancelAssessment: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IInitiateWinSATAssessment, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IInitiateWinSATAssessment, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IInitiateWinSATAssessment_InitiateAssessment(self: *const T, cmdLine: ?[*:0]const u16, pCallbacks: ?*IWinSATInitiateEvents, callerHwnd: ?HWND) HRESULT { return @as(*const IInitiateWinSATAssessment.VTable, @ptrCast(self.vtable)).InitiateAssessment(@as(*const IInitiateWinSATAssessment, @ptrCast(self)), cmdLine, pCallbacks, callerHwnd); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IInitiateWinSATAssessment_InitiateFormalAssessment(self: *const T, pCallbacks: ?*IWinSATInitiateEvents, callerHwnd: ?HWND) HRESULT { return @as(*const IInitiateWinSATAssessment.VTable, @ptrCast(self.vtable)).InitiateFormalAssessment(@as(*const IInitiateWinSATAssessment, @ptrCast(self)), pCallbacks, callerHwnd); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IInitiateWinSATAssessment_CancelAssessment(self: *const T) HRESULT { return @as(*const IInitiateWinSATAssessment.VTable, @ptrCast(self.vtable)).CancelAssessment(@as(*const IInitiateWinSATAssessment, @ptrCast(self))); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IAccessibleWinSAT_Value = Guid.initString("30e6018a-94a8-4ff8-a69a-71b67413f07b"); pub const IID_IAccessibleWinSAT = &IID_IAccessibleWinSAT_Value; pub const IAccessibleWinSAT = extern struct { pub const VTable = extern struct { base: IAccessible.VTable, SetAccessiblityData: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IAccessibleWinSAT, wsName: ?[*:0]const u16, wsValue: ?[*:0]const u16, wsDesc: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IAccessibleWinSAT, wsName: ?[*:0]const u16, wsValue: ?[*:0]const u16, wsDesc: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IAccessible.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IAccessibleWinSAT_SetAccessiblityData(self: *const T, wsName: ?[*:0]const u16, wsValue: ?[*:0]const u16, wsDesc: ?[*:0]const u16) HRESULT { return @as(*const IAccessibleWinSAT.VTable, @ptrCast(self.vtable)).SetAccessiblityData(@as(*const IAccessibleWinSAT, @ptrCast(self)), wsName, wsValue, wsDesc); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IQueryOEMWinSATCustomization_Value = Guid.initString("bc9a6a9f-ad4e-420e-9953-b34671e9df22"); pub const IID_IQueryOEMWinSATCustomization = &IID_IQueryOEMWinSATCustomization_Value; pub const IQueryOEMWinSATCustomization = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, GetOEMPrePopulationInfo: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IQueryOEMWinSATCustomization, state: ?*WINSAT_OEM_DATA_TYPE, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IQueryOEMWinSATCustomization, state: ?*WINSAT_OEM_DATA_TYPE, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IQueryOEMWinSATCustomization_GetOEMPrePopulationInfo(self: *const T, state: ?*WINSAT_OEM_DATA_TYPE) HRESULT { return @as(*const IQueryOEMWinSATCustomization.VTable, @ptrCast(self.vtable)).GetOEMPrePopulationInfo(@as(*const IQueryOEMWinSATCustomization, @ptrCast(self)), state); } }; } pub usingnamespace MethodMixin(@This()); }; //-------------------------------------------------------------------------------- // Section: Functions (0) //-------------------------------------------------------------------------------- //-------------------------------------------------------------------------------- // Section: Unicode Aliases (0) //-------------------------------------------------------------------------------- const thismodule = @This(); pub usingnamespace switch (@import("../zig.zig").unicode_mode) { .ansi => struct {}, .wide => struct {}, .unspecified => if (@import("builtin").is_test) struct {} else struct {}, }; //-------------------------------------------------------------------------------- // Section: Imports (11) //-------------------------------------------------------------------------------- const Guid = @import("../zig.zig").Guid; const BSTR = @import("../foundation.zig").BSTR; const HBITMAP = @import("../graphics/gdi.zig").HBITMAP; const HRESULT = @import("../foundation.zig").HRESULT; const HWND = @import("../foundation.zig").HWND; const IAccessible = @import("../ui/accessibility.zig").IAccessible; const IDispatch = @import("../system/com.zig").IDispatch; const IUnknown = @import("../system/com.zig").IUnknown; const IXMLDOMNodeList = @import("../data/xml/ms_xml.zig").IXMLDOMNodeList; const PWSTR = @import("../foundation.zig").PWSTR; const VARIANT = @import("../system/com.zig").VARIANT; test { @setEvalBranchQuota(comptime @import("std").meta.declarations(@This()).len * 3); // reference all the pub declarations if (!@import("builtin").is_test) return; inline for (comptime @import("std").meta.declarations(@This())) |decl| { if (decl.is_pub) { _ = @field(@This(), decl.name); } } }
0
repos/capy/vendor/zigwin32/win32
repos/capy/vendor/zigwin32/win32/system/distributed_transaction_coordinator.zig
//! NOTE: this file is autogenerated, DO NOT MODIFY //-------------------------------------------------------------------------------- // Section: Constants (69) //-------------------------------------------------------------------------------- pub const DTCINSTALL_E_CLIENT_ALREADY_INSTALLED = @as(i32, 384); pub const DTCINSTALL_E_SERVER_ALREADY_INSTALLED = @as(i32, 385); pub const XA_SWITCH_F_DTC = @as(u32, 1); pub const XA_FMTID_DTC = @as(u32, 4478019); pub const XA_FMTID_DTC_VER1 = @as(u32, 21255235); pub const XIDDATASIZE = @as(u32, 128); pub const MAXGTRIDSIZE = @as(u32, 64); pub const MAXBQUALSIZE = @as(u32, 64); pub const RMNAMESZ = @as(u32, 32); pub const MAXINFOSIZE = @as(u32, 256); pub const TMNOFLAGS = @as(i32, 0); pub const TMREGISTER = @as(i32, 1); pub const TMNOMIGRATE = @as(i32, 2); pub const TMUSEASYNC = @as(i32, 4); pub const TMASYNC = @as(i32, -2147483648); pub const TMONEPHASE = @as(i32, 1073741824); pub const TMFAIL = @as(i32, 536870912); pub const TMNOWAIT = @as(i32, 268435456); pub const TMRESUME = @as(i32, 134217728); pub const TMSUCCESS = @as(i32, 67108864); pub const TMSUSPEND = @as(i32, 33554432); pub const TMSTARTRSCAN = @as(i32, 16777216); pub const TMENDRSCAN = @as(i32, 8388608); pub const TMMULTIPLE = @as(i32, 4194304); pub const TMJOIN = @as(i32, 2097152); pub const TMMIGRATE = @as(i32, 1048576); pub const TM_JOIN = @as(u32, 2); pub const TM_RESUME = @as(u32, 1); pub const TM_OK = @as(u32, 0); pub const TMER_TMERR = @as(i32, -1); pub const TMER_INVAL = @as(i32, -2); pub const TMER_PROTO = @as(i32, -3); pub const XA_RBBASE = @as(u32, 100); pub const XA_RBROLLBACK = @as(u32, 100); pub const XA_RBCOMMFAIL = @as(u32, 101); pub const XA_RBDEADLOCK = @as(u32, 102); pub const XA_RBINTEGRITY = @as(u32, 103); pub const XA_RBOTHER = @as(u32, 104); pub const XA_RBPROTO = @as(u32, 105); pub const XA_RBTIMEOUT = @as(u32, 106); pub const XA_RBTRANSIENT = @as(u32, 107); pub const XA_RBEND = @as(u32, 107); pub const XA_NOMIGRATE = @as(u32, 9); pub const XA_HEURHAZ = @as(u32, 8); pub const XA_HEURCOM = @as(u32, 7); pub const XA_HEURRB = @as(u32, 6); pub const XA_HEURMIX = @as(u32, 5); pub const XA_RETRY = @as(u32, 4); pub const XA_RDONLY = @as(u32, 3); pub const XA_OK = @as(u32, 0); pub const XAER_ASYNC = @as(i32, -2); pub const XAER_RMERR = @as(i32, -3); pub const XAER_NOTA = @as(i32, -4); pub const XAER_INVAL = @as(i32, -5); pub const XAER_PROTO = @as(i32, -6); pub const XAER_RMFAIL = @as(i32, -7); pub const XAER_DUPID = @as(i32, -8); pub const XAER_OUTSIDE = @as(i32, -9); pub const DTC_INSTALL_OVERWRITE_CLIENT = @as(u32, 1); pub const DTC_INSTALL_OVERWRITE_SERVER = @as(u32, 2); pub const OLE_TM_CONFIG_VERSION_1 = @as(u32, 1); pub const OLE_TM_CONFIG_VERSION_2 = @as(u32, 2); pub const OLE_TM_FLAG_NONE = @as(u32, 0); pub const OLE_TM_FLAG_NODEMANDSTART = @as(u32, 1); pub const OLE_TM_FLAG_NOAGILERECOVERY = @as(u32, 2); pub const OLE_TM_FLAG_QUERY_SERVICE_LOCKSTATUS = @as(u32, 2147483648); pub const OLE_TM_FLAG_INTERNAL_TO_TM = @as(u32, 1073741824); pub const CLSID_MSDtcTransactionManager = Guid.initString("5b18ab61-091d-11d1-97df-00c04fb9618a"); pub const CLSID_MSDtcTransaction = Guid.initString("39f8d76b-0928-11d1-97df-00c04fb9618a"); //-------------------------------------------------------------------------------- // Section: Types (110) //-------------------------------------------------------------------------------- pub const DTC_STATUS_ = enum(i32) { UNKNOWN = 0, STARTING = 1, STARTED = 2, PAUSING = 3, PAUSED = 4, CONTINUING = 5, STOPPING = 6, STOPPED = 7, E_CANTCONTROL = 8, FAILED = 9, }; pub const DTC_STATUS_UNKNOWN = DTC_STATUS_.UNKNOWN; pub const DTC_STATUS_STARTING = DTC_STATUS_.STARTING; pub const DTC_STATUS_STARTED = DTC_STATUS_.STARTED; pub const DTC_STATUS_PAUSING = DTC_STATUS_.PAUSING; pub const DTC_STATUS_PAUSED = DTC_STATUS_.PAUSED; pub const DTC_STATUS_CONTINUING = DTC_STATUS_.CONTINUING; pub const DTC_STATUS_STOPPING = DTC_STATUS_.STOPPING; pub const DTC_STATUS_STOPPED = DTC_STATUS_.STOPPED; pub const DTC_STATUS_E_CANTCONTROL = DTC_STATUS_.E_CANTCONTROL; pub const DTC_STATUS_FAILED = DTC_STATUS_.FAILED; pub const DTC_GET_TRANSACTION_MANAGER = switch (@import("builtin").zig_backend) { .stage1 => fn ( pszHost: ?PSTR, pszTmName: ?PSTR, rid: ?*const Guid, dwReserved1: u32, wcbReserved2: u16, pvReserved2: ?*anyopaque, ppvObject: ?*?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( pszHost: ?PSTR, pszTmName: ?PSTR, rid: ?*const Guid, dwReserved1: u32, wcbReserved2: u16, pvReserved2: ?*anyopaque, ppvObject: ?*?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }; pub const DTC_GET_TRANSACTION_MANAGER_EX_A = switch (@import("builtin").zig_backend) { .stage1 => fn ( i_pszHost: ?PSTR, i_pszTmName: ?PSTR, i_riid: ?*const Guid, i_grfOptions: u32, i_pvConfigParams: ?*anyopaque, o_ppvObject: ?*?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( i_pszHost: ?PSTR, i_pszTmName: ?PSTR, i_riid: ?*const Guid, i_grfOptions: u32, i_pvConfigParams: ?*anyopaque, o_ppvObject: ?*?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }; pub const DTC_GET_TRANSACTION_MANAGER_EX_W = switch (@import("builtin").zig_backend) { .stage1 => fn ( i_pwszHost: ?PWSTR, i_pwszTmName: ?PWSTR, i_riid: ?*const Guid, i_grfOptions: u32, i_pvConfigParams: ?*anyopaque, o_ppvObject: ?*?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( i_pwszHost: ?PWSTR, i_pwszTmName: ?PWSTR, i_riid: ?*const Guid, i_grfOptions: u32, i_pvConfigParams: ?*anyopaque, o_ppvObject: ?*?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }; pub const DTC_INSTALL_CLIENT = switch (@import("builtin").zig_backend) { .stage1 => fn ( i_pszRemoteTmHostName: ?*i8, i_dwProtocol: u32, i_dwOverwrite: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( i_pszRemoteTmHostName: ?*i8, i_dwProtocol: u32, i_dwOverwrite: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }; pub const BOID = extern struct { rgb: [16]u8, }; pub const TX_MISC_CONSTANTS = enum(i32) { C = 40, }; pub const MAX_TRAN_DESC = TX_MISC_CONSTANTS.C; pub const ISOLATIONLEVEL = enum(i32) { UNSPECIFIED = -1, CHAOS = 16, READUNCOMMITTED = 256, // BROWSE = 256, this enum value conflicts with READUNCOMMITTED CURSORSTABILITY = 4096, // READCOMMITTED = 4096, this enum value conflicts with CURSORSTABILITY REPEATABLEREAD = 65536, SERIALIZABLE = 1048576, // ISOLATED = 1048576, this enum value conflicts with SERIALIZABLE }; pub const ISOLATIONLEVEL_UNSPECIFIED = ISOLATIONLEVEL.UNSPECIFIED; pub const ISOLATIONLEVEL_CHAOS = ISOLATIONLEVEL.CHAOS; pub const ISOLATIONLEVEL_READUNCOMMITTED = ISOLATIONLEVEL.READUNCOMMITTED; pub const ISOLATIONLEVEL_BROWSE = ISOLATIONLEVEL.READUNCOMMITTED; pub const ISOLATIONLEVEL_CURSORSTABILITY = ISOLATIONLEVEL.CURSORSTABILITY; pub const ISOLATIONLEVEL_READCOMMITTED = ISOLATIONLEVEL.CURSORSTABILITY; pub const ISOLATIONLEVEL_REPEATABLEREAD = ISOLATIONLEVEL.REPEATABLEREAD; pub const ISOLATIONLEVEL_SERIALIZABLE = ISOLATIONLEVEL.SERIALIZABLE; pub const ISOLATIONLEVEL_ISOLATED = ISOLATIONLEVEL.SERIALIZABLE; pub const XACTTRANSINFO = extern struct { uow: BOID, isoLevel: i32, isoFlags: u32, grfTCSupported: u32, grfRMSupported: u32, grfTCSupportedRetaining: u32, grfRMSupportedRetaining: u32, }; pub const XACTSTATS = extern struct { cOpen: u32, cCommitting: u32, cCommitted: u32, cAborting: u32, cAborted: u32, cInDoubt: u32, cHeuristicDecision: u32, timeTransactionsUp: FILETIME, }; pub const ISOFLAG = enum(i32) { RETAIN_COMMIT_DC = 1, RETAIN_COMMIT = 2, RETAIN_COMMIT_NO = 3, RETAIN_ABORT_DC = 4, RETAIN_ABORT = 8, RETAIN_ABORT_NO = 12, RETAIN_DONTCARE = 5, RETAIN_BOTH = 10, RETAIN_NONE = 15, OPTIMISTIC = 16, READONLY = 32, }; pub const ISOFLAG_RETAIN_COMMIT_DC = ISOFLAG.RETAIN_COMMIT_DC; pub const ISOFLAG_RETAIN_COMMIT = ISOFLAG.RETAIN_COMMIT; pub const ISOFLAG_RETAIN_COMMIT_NO = ISOFLAG.RETAIN_COMMIT_NO; pub const ISOFLAG_RETAIN_ABORT_DC = ISOFLAG.RETAIN_ABORT_DC; pub const ISOFLAG_RETAIN_ABORT = ISOFLAG.RETAIN_ABORT; pub const ISOFLAG_RETAIN_ABORT_NO = ISOFLAG.RETAIN_ABORT_NO; pub const ISOFLAG_RETAIN_DONTCARE = ISOFLAG.RETAIN_DONTCARE; pub const ISOFLAG_RETAIN_BOTH = ISOFLAG.RETAIN_BOTH; pub const ISOFLAG_RETAIN_NONE = ISOFLAG.RETAIN_NONE; pub const ISOFLAG_OPTIMISTIC = ISOFLAG.OPTIMISTIC; pub const ISOFLAG_READONLY = ISOFLAG.READONLY; pub const XACTTC = enum(i32) { NONE = 0, SYNC_PHASEONE = 1, SYNC_PHASETWO = 2, // SYNC = 2, this enum value conflicts with SYNC_PHASETWO ASYNC_PHASEONE = 4, // ASYNC = 4, this enum value conflicts with ASYNC_PHASEONE }; pub const XACTTC_NONE = XACTTC.NONE; pub const XACTTC_SYNC_PHASEONE = XACTTC.SYNC_PHASEONE; pub const XACTTC_SYNC_PHASETWO = XACTTC.SYNC_PHASETWO; pub const XACTTC_SYNC = XACTTC.SYNC_PHASETWO; pub const XACTTC_ASYNC_PHASEONE = XACTTC.ASYNC_PHASEONE; pub const XACTTC_ASYNC = XACTTC.ASYNC_PHASEONE; pub const XACTRM = enum(i32) { OPTIMISTICLASTWINS = 1, NOREADONLYPREPARES = 2, }; pub const XACTRM_OPTIMISTICLASTWINS = XACTRM.OPTIMISTICLASTWINS; pub const XACTRM_NOREADONLYPREPARES = XACTRM.NOREADONLYPREPARES; pub const XACTCONST = enum(i32) { E = 0, }; pub const XACTCONST_TIMEOUTINFINITE = XACTCONST.E; pub const XACTHEURISTIC = enum(i32) { ABORT = 1, COMMIT = 2, DAMAGE = 3, DANGER = 4, }; pub const XACTHEURISTIC_ABORT = XACTHEURISTIC.ABORT; pub const XACTHEURISTIC_COMMIT = XACTHEURISTIC.COMMIT; pub const XACTHEURISTIC_DAMAGE = XACTHEURISTIC.DAMAGE; pub const XACTHEURISTIC_DANGER = XACTHEURISTIC.DANGER; pub const XACTSTAT = enum(i32) { NONE = 0, OPENNORMAL = 1, OPENREFUSED = 2, PREPARING = 4, PREPARED = 8, PREPARERETAINING = 16, PREPARERETAINED = 32, COMMITTING = 64, COMMITRETAINING = 128, ABORTING = 256, ABORTED = 512, COMMITTED = 1024, HEURISTIC_ABORT = 2048, HEURISTIC_COMMIT = 4096, HEURISTIC_DAMAGE = 8192, HEURISTIC_DANGER = 16384, FORCED_ABORT = 32768, FORCED_COMMIT = 65536, INDOUBT = 131072, CLOSED = 262144, OPEN = 3, NOTPREPARED = 524227, ALL = 524287, }; pub const XACTSTAT_NONE = XACTSTAT.NONE; pub const XACTSTAT_OPENNORMAL = XACTSTAT.OPENNORMAL; pub const XACTSTAT_OPENREFUSED = XACTSTAT.OPENREFUSED; pub const XACTSTAT_PREPARING = XACTSTAT.PREPARING; pub const XACTSTAT_PREPARED = XACTSTAT.PREPARED; pub const XACTSTAT_PREPARERETAINING = XACTSTAT.PREPARERETAINING; pub const XACTSTAT_PREPARERETAINED = XACTSTAT.PREPARERETAINED; pub const XACTSTAT_COMMITTING = XACTSTAT.COMMITTING; pub const XACTSTAT_COMMITRETAINING = XACTSTAT.COMMITRETAINING; pub const XACTSTAT_ABORTING = XACTSTAT.ABORTING; pub const XACTSTAT_ABORTED = XACTSTAT.ABORTED; pub const XACTSTAT_COMMITTED = XACTSTAT.COMMITTED; pub const XACTSTAT_HEURISTIC_ABORT = XACTSTAT.HEURISTIC_ABORT; pub const XACTSTAT_HEURISTIC_COMMIT = XACTSTAT.HEURISTIC_COMMIT; pub const XACTSTAT_HEURISTIC_DAMAGE = XACTSTAT.HEURISTIC_DAMAGE; pub const XACTSTAT_HEURISTIC_DANGER = XACTSTAT.HEURISTIC_DANGER; pub const XACTSTAT_FORCED_ABORT = XACTSTAT.FORCED_ABORT; pub const XACTSTAT_FORCED_COMMIT = XACTSTAT.FORCED_COMMIT; pub const XACTSTAT_INDOUBT = XACTSTAT.INDOUBT; pub const XACTSTAT_CLOSED = XACTSTAT.CLOSED; pub const XACTSTAT_OPEN = XACTSTAT.OPEN; pub const XACTSTAT_NOTPREPARED = XACTSTAT.NOTPREPARED; pub const XACTSTAT_ALL = XACTSTAT.ALL; pub const XACTOPT = extern struct { ulTimeout: u32, szDescription: [40]u8, }; const IID_ITransaction_Value = Guid.initString("0fb15084-af41-11ce-bd2b-204c4f4f5020"); pub const IID_ITransaction = &IID_ITransaction_Value; pub const ITransaction = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, Commit: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ITransaction, fRetaining: BOOL, grfTC: u32, grfRM: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ITransaction, fRetaining: BOOL, grfTC: u32, grfRM: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Abort: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ITransaction, pboidReason: ?*BOID, fRetaining: BOOL, fAsync: BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ITransaction, pboidReason: ?*BOID, fRetaining: BOOL, fAsync: BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetTransactionInfo: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ITransaction, pinfo: ?*XACTTRANSINFO, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ITransaction, pinfo: ?*XACTTRANSINFO, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITransaction_Commit(self: *const T, fRetaining: BOOL, grfTC: u32, grfRM: u32) HRESULT { return @as(*const ITransaction.VTable, @ptrCast(self.vtable)).Commit(@as(*const ITransaction, @ptrCast(self)), fRetaining, grfTC, grfRM); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITransaction_Abort(self: *const T, pboidReason: ?*BOID, fRetaining: BOOL, fAsync: BOOL) HRESULT { return @as(*const ITransaction.VTable, @ptrCast(self.vtable)).Abort(@as(*const ITransaction, @ptrCast(self)), pboidReason, fRetaining, fAsync); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITransaction_GetTransactionInfo(self: *const T, pinfo: ?*XACTTRANSINFO) HRESULT { return @as(*const ITransaction.VTable, @ptrCast(self.vtable)).GetTransactionInfo(@as(*const ITransaction, @ptrCast(self)), pinfo); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_ITransactionCloner_Value = Guid.initString("02656950-2152-11d0-944c-00a0c905416e"); pub const IID_ITransactionCloner = &IID_ITransactionCloner_Value; pub const ITransactionCloner = extern struct { pub const VTable = extern struct { base: ITransaction.VTable, CloneWithCommitDisabled: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ITransactionCloner, ppITransaction: ?*?*ITransaction, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ITransactionCloner, ppITransaction: ?*?*ITransaction, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace ITransaction.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITransactionCloner_CloneWithCommitDisabled(self: *const T, ppITransaction: ?*?*ITransaction) HRESULT { return @as(*const ITransactionCloner.VTable, @ptrCast(self.vtable)).CloneWithCommitDisabled(@as(*const ITransactionCloner, @ptrCast(self)), ppITransaction); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_ITransaction2_Value = Guid.initString("34021548-0065-11d3-bac1-00c04f797be2"); pub const IID_ITransaction2 = &IID_ITransaction2_Value; pub const ITransaction2 = extern struct { pub const VTable = extern struct { base: ITransactionCloner.VTable, GetTransactionInfo2: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ITransaction2, pinfo: ?*XACTTRANSINFO, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ITransaction2, pinfo: ?*XACTTRANSINFO, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace ITransactionCloner.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITransaction2_GetTransactionInfo2(self: *const T, pinfo: ?*XACTTRANSINFO) HRESULT { return @as(*const ITransaction2.VTable, @ptrCast(self.vtable)).GetTransactionInfo2(@as(*const ITransaction2, @ptrCast(self)), pinfo); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_ITransactionDispenser_Value = Guid.initString("3a6ad9e1-23b9-11cf-ad60-00aa00a74ccd"); pub const IID_ITransactionDispenser = &IID_ITransactionDispenser_Value; pub const ITransactionDispenser = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, GetOptionsObject: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ITransactionDispenser, ppOptions: ?*?*ITransactionOptions, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ITransactionDispenser, ppOptions: ?*?*ITransactionOptions, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, BeginTransaction: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ITransactionDispenser, punkOuter: ?*IUnknown, isoLevel: i32, isoFlags: u32, pOptions: ?*ITransactionOptions, ppTransaction: ?*?*ITransaction, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ITransactionDispenser, punkOuter: ?*IUnknown, isoLevel: i32, isoFlags: u32, pOptions: ?*ITransactionOptions, ppTransaction: ?*?*ITransaction, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITransactionDispenser_GetOptionsObject(self: *const T, ppOptions: ?*?*ITransactionOptions) HRESULT { return @as(*const ITransactionDispenser.VTable, @ptrCast(self.vtable)).GetOptionsObject(@as(*const ITransactionDispenser, @ptrCast(self)), ppOptions); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITransactionDispenser_BeginTransaction(self: *const T, punkOuter: ?*IUnknown, isoLevel: i32, isoFlags: u32, pOptions: ?*ITransactionOptions, ppTransaction: ?*?*ITransaction) HRESULT { return @as(*const ITransactionDispenser.VTable, @ptrCast(self.vtable)).BeginTransaction(@as(*const ITransactionDispenser, @ptrCast(self)), punkOuter, isoLevel, isoFlags, pOptions, ppTransaction); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_ITransactionOptions_Value = Guid.initString("3a6ad9e0-23b9-11cf-ad60-00aa00a74ccd"); pub const IID_ITransactionOptions = &IID_ITransactionOptions_Value; pub const ITransactionOptions = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, SetOptions: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ITransactionOptions, pOptions: ?*XACTOPT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ITransactionOptions, pOptions: ?*XACTOPT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetOptions: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ITransactionOptions, pOptions: ?*XACTOPT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ITransactionOptions, pOptions: ?*XACTOPT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITransactionOptions_SetOptions(self: *const T, pOptions: ?*XACTOPT) HRESULT { return @as(*const ITransactionOptions.VTable, @ptrCast(self.vtable)).SetOptions(@as(*const ITransactionOptions, @ptrCast(self)), pOptions); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITransactionOptions_GetOptions(self: *const T, pOptions: ?*XACTOPT) HRESULT { return @as(*const ITransactionOptions.VTable, @ptrCast(self.vtable)).GetOptions(@as(*const ITransactionOptions, @ptrCast(self)), pOptions); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_ITransactionOutcomeEvents_Value = Guid.initString("3a6ad9e2-23b9-11cf-ad60-00aa00a74ccd"); pub const IID_ITransactionOutcomeEvents = &IID_ITransactionOutcomeEvents_Value; pub const ITransactionOutcomeEvents = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, Committed: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ITransactionOutcomeEvents, fRetaining: BOOL, pNewUOW: ?*BOID, hr: HRESULT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ITransactionOutcomeEvents, fRetaining: BOOL, pNewUOW: ?*BOID, hr: HRESULT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Aborted: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ITransactionOutcomeEvents, pboidReason: ?*BOID, fRetaining: BOOL, pNewUOW: ?*BOID, hr: HRESULT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ITransactionOutcomeEvents, pboidReason: ?*BOID, fRetaining: BOOL, pNewUOW: ?*BOID, hr: HRESULT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, HeuristicDecision: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ITransactionOutcomeEvents, dwDecision: u32, pboidReason: ?*BOID, hr: HRESULT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ITransactionOutcomeEvents, dwDecision: u32, pboidReason: ?*BOID, hr: HRESULT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Indoubt: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ITransactionOutcomeEvents, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ITransactionOutcomeEvents, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITransactionOutcomeEvents_Committed(self: *const T, fRetaining: BOOL, pNewUOW: ?*BOID, hr: HRESULT) HRESULT { return @as(*const ITransactionOutcomeEvents.VTable, @ptrCast(self.vtable)).Committed(@as(*const ITransactionOutcomeEvents, @ptrCast(self)), fRetaining, pNewUOW, hr); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITransactionOutcomeEvents_Aborted(self: *const T, pboidReason: ?*BOID, fRetaining: BOOL, pNewUOW: ?*BOID, hr: HRESULT) HRESULT { return @as(*const ITransactionOutcomeEvents.VTable, @ptrCast(self.vtable)).Aborted(@as(*const ITransactionOutcomeEvents, @ptrCast(self)), pboidReason, fRetaining, pNewUOW, hr); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITransactionOutcomeEvents_HeuristicDecision(self: *const T, dwDecision: u32, pboidReason: ?*BOID, hr: HRESULT) HRESULT { return @as(*const ITransactionOutcomeEvents.VTable, @ptrCast(self.vtable)).HeuristicDecision(@as(*const ITransactionOutcomeEvents, @ptrCast(self)), dwDecision, pboidReason, hr); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITransactionOutcomeEvents_Indoubt(self: *const T) HRESULT { return @as(*const ITransactionOutcomeEvents.VTable, @ptrCast(self.vtable)).Indoubt(@as(*const ITransactionOutcomeEvents, @ptrCast(self))); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_ITmNodeName_Value = Guid.initString("30274f88-6ee4-474e-9b95-7807bc9ef8cf"); pub const IID_ITmNodeName = &IID_ITmNodeName_Value; pub const ITmNodeName = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, GetNodeNameSize: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ITmNodeName, pcbNodeNameSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ITmNodeName, pcbNodeNameSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetNodeName: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ITmNodeName, cbNodeNameBufferSize: u32, pNodeNameBuffer: ?PWSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ITmNodeName, cbNodeNameBufferSize: u32, pNodeNameBuffer: ?PWSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITmNodeName_GetNodeNameSize(self: *const T, pcbNodeNameSize: ?*u32) HRESULT { return @as(*const ITmNodeName.VTable, @ptrCast(self.vtable)).GetNodeNameSize(@as(*const ITmNodeName, @ptrCast(self)), pcbNodeNameSize); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITmNodeName_GetNodeName(self: *const T, cbNodeNameBufferSize: u32, pNodeNameBuffer: ?PWSTR) HRESULT { return @as(*const ITmNodeName.VTable, @ptrCast(self.vtable)).GetNodeName(@as(*const ITmNodeName, @ptrCast(self)), cbNodeNameBufferSize, pNodeNameBuffer); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IKernelTransaction_Value = Guid.initString("79427a2b-f895-40e0-be79-b57dc82ed231"); pub const IID_IKernelTransaction = &IID_IKernelTransaction_Value; pub const IKernelTransaction = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, GetHandle: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IKernelTransaction, pHandle: ?*?HANDLE, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IKernelTransaction, pHandle: ?*?HANDLE, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IKernelTransaction_GetHandle(self: *const T, pHandle: ?*?HANDLE) HRESULT { return @as(*const IKernelTransaction.VTable, @ptrCast(self.vtable)).GetHandle(@as(*const IKernelTransaction, @ptrCast(self)), pHandle); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_ITransactionResourceAsync_Value = Guid.initString("69e971f0-23ce-11cf-ad60-00aa00a74ccd"); pub const IID_ITransactionResourceAsync = &IID_ITransactionResourceAsync_Value; pub const ITransactionResourceAsync = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, PrepareRequest: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ITransactionResourceAsync, fRetaining: BOOL, grfRM: u32, fWantMoniker: BOOL, fSinglePhase: BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ITransactionResourceAsync, fRetaining: BOOL, grfRM: u32, fWantMoniker: BOOL, fSinglePhase: BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, CommitRequest: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ITransactionResourceAsync, grfRM: u32, pNewUOW: ?*BOID, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ITransactionResourceAsync, grfRM: u32, pNewUOW: ?*BOID, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, AbortRequest: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ITransactionResourceAsync, pboidReason: ?*BOID, fRetaining: BOOL, pNewUOW: ?*BOID, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ITransactionResourceAsync, pboidReason: ?*BOID, fRetaining: BOOL, pNewUOW: ?*BOID, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, TMDown: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ITransactionResourceAsync, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ITransactionResourceAsync, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITransactionResourceAsync_PrepareRequest(self: *const T, fRetaining: BOOL, grfRM: u32, fWantMoniker: BOOL, fSinglePhase: BOOL) HRESULT { return @as(*const ITransactionResourceAsync.VTable, @ptrCast(self.vtable)).PrepareRequest(@as(*const ITransactionResourceAsync, @ptrCast(self)), fRetaining, grfRM, fWantMoniker, fSinglePhase); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITransactionResourceAsync_CommitRequest(self: *const T, grfRM: u32, pNewUOW: ?*BOID) HRESULT { return @as(*const ITransactionResourceAsync.VTable, @ptrCast(self.vtable)).CommitRequest(@as(*const ITransactionResourceAsync, @ptrCast(self)), grfRM, pNewUOW); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITransactionResourceAsync_AbortRequest(self: *const T, pboidReason: ?*BOID, fRetaining: BOOL, pNewUOW: ?*BOID) HRESULT { return @as(*const ITransactionResourceAsync.VTable, @ptrCast(self.vtable)).AbortRequest(@as(*const ITransactionResourceAsync, @ptrCast(self)), pboidReason, fRetaining, pNewUOW); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITransactionResourceAsync_TMDown(self: *const T) HRESULT { return @as(*const ITransactionResourceAsync.VTable, @ptrCast(self.vtable)).TMDown(@as(*const ITransactionResourceAsync, @ptrCast(self))); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_ITransactionLastResourceAsync_Value = Guid.initString("c82bd532-5b30-11d3-8a91-00c04f79eb6d"); pub const IID_ITransactionLastResourceAsync = &IID_ITransactionLastResourceAsync_Value; pub const ITransactionLastResourceAsync = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, DelegateCommit: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ITransactionLastResourceAsync, grfRM: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ITransactionLastResourceAsync, grfRM: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, ForgetRequest: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ITransactionLastResourceAsync, pNewUOW: ?*BOID, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ITransactionLastResourceAsync, pNewUOW: ?*BOID, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITransactionLastResourceAsync_DelegateCommit(self: *const T, grfRM: u32) HRESULT { return @as(*const ITransactionLastResourceAsync.VTable, @ptrCast(self.vtable)).DelegateCommit(@as(*const ITransactionLastResourceAsync, @ptrCast(self)), grfRM); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITransactionLastResourceAsync_ForgetRequest(self: *const T, pNewUOW: ?*BOID) HRESULT { return @as(*const ITransactionLastResourceAsync.VTable, @ptrCast(self.vtable)).ForgetRequest(@as(*const ITransactionLastResourceAsync, @ptrCast(self)), pNewUOW); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_ITransactionResource_Value = Guid.initString("ee5ff7b3-4572-11d0-9452-00a0c905416e"); pub const IID_ITransactionResource = &IID_ITransactionResource_Value; pub const ITransactionResource = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, PrepareRequest: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ITransactionResource, fRetaining: BOOL, grfRM: u32, fWantMoniker: BOOL, fSinglePhase: BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ITransactionResource, fRetaining: BOOL, grfRM: u32, fWantMoniker: BOOL, fSinglePhase: BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, CommitRequest: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ITransactionResource, grfRM: u32, pNewUOW: ?*BOID, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ITransactionResource, grfRM: u32, pNewUOW: ?*BOID, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, AbortRequest: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ITransactionResource, pboidReason: ?*BOID, fRetaining: BOOL, pNewUOW: ?*BOID, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ITransactionResource, pboidReason: ?*BOID, fRetaining: BOOL, pNewUOW: ?*BOID, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, TMDown: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ITransactionResource, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ITransactionResource, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITransactionResource_PrepareRequest(self: *const T, fRetaining: BOOL, grfRM: u32, fWantMoniker: BOOL, fSinglePhase: BOOL) HRESULT { return @as(*const ITransactionResource.VTable, @ptrCast(self.vtable)).PrepareRequest(@as(*const ITransactionResource, @ptrCast(self)), fRetaining, grfRM, fWantMoniker, fSinglePhase); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITransactionResource_CommitRequest(self: *const T, grfRM: u32, pNewUOW: ?*BOID) HRESULT { return @as(*const ITransactionResource.VTable, @ptrCast(self.vtable)).CommitRequest(@as(*const ITransactionResource, @ptrCast(self)), grfRM, pNewUOW); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITransactionResource_AbortRequest(self: *const T, pboidReason: ?*BOID, fRetaining: BOOL, pNewUOW: ?*BOID) HRESULT { return @as(*const ITransactionResource.VTable, @ptrCast(self.vtable)).AbortRequest(@as(*const ITransactionResource, @ptrCast(self)), pboidReason, fRetaining, pNewUOW); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITransactionResource_TMDown(self: *const T) HRESULT { return @as(*const ITransactionResource.VTable, @ptrCast(self.vtable)).TMDown(@as(*const ITransactionResource, @ptrCast(self))); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_ITransactionEnlistmentAsync_Value = Guid.initString("0fb15081-af41-11ce-bd2b-204c4f4f5020"); pub const IID_ITransactionEnlistmentAsync = &IID_ITransactionEnlistmentAsync_Value; pub const ITransactionEnlistmentAsync = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, PrepareRequestDone: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ITransactionEnlistmentAsync, hr: HRESULT, pmk: ?*IMoniker, pboidReason: ?*BOID, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ITransactionEnlistmentAsync, hr: HRESULT, pmk: ?*IMoniker, pboidReason: ?*BOID, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, CommitRequestDone: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ITransactionEnlistmentAsync, hr: HRESULT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ITransactionEnlistmentAsync, hr: HRESULT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, AbortRequestDone: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ITransactionEnlistmentAsync, hr: HRESULT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ITransactionEnlistmentAsync, hr: HRESULT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITransactionEnlistmentAsync_PrepareRequestDone(self: *const T, hr: HRESULT, pmk: ?*IMoniker, pboidReason: ?*BOID) HRESULT { return @as(*const ITransactionEnlistmentAsync.VTable, @ptrCast(self.vtable)).PrepareRequestDone(@as(*const ITransactionEnlistmentAsync, @ptrCast(self)), hr, pmk, pboidReason); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITransactionEnlistmentAsync_CommitRequestDone(self: *const T, hr: HRESULT) HRESULT { return @as(*const ITransactionEnlistmentAsync.VTable, @ptrCast(self.vtable)).CommitRequestDone(@as(*const ITransactionEnlistmentAsync, @ptrCast(self)), hr); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITransactionEnlistmentAsync_AbortRequestDone(self: *const T, hr: HRESULT) HRESULT { return @as(*const ITransactionEnlistmentAsync.VTable, @ptrCast(self.vtable)).AbortRequestDone(@as(*const ITransactionEnlistmentAsync, @ptrCast(self)), hr); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_ITransactionLastEnlistmentAsync_Value = Guid.initString("c82bd533-5b30-11d3-8a91-00c04f79eb6d"); pub const IID_ITransactionLastEnlistmentAsync = &IID_ITransactionLastEnlistmentAsync_Value; pub const ITransactionLastEnlistmentAsync = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, TransactionOutcome: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ITransactionLastEnlistmentAsync, XactStat: XACTSTAT, pboidReason: ?*BOID, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ITransactionLastEnlistmentAsync, XactStat: XACTSTAT, pboidReason: ?*BOID, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITransactionLastEnlistmentAsync_TransactionOutcome(self: *const T, XactStat: XACTSTAT, pboidReason: ?*BOID) HRESULT { return @as(*const ITransactionLastEnlistmentAsync.VTable, @ptrCast(self.vtable)).TransactionOutcome(@as(*const ITransactionLastEnlistmentAsync, @ptrCast(self)), XactStat, pboidReason); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_ITransactionExportFactory_Value = Guid.initString("e1cf9b53-8745-11ce-a9ba-00aa006c3706"); pub const IID_ITransactionExportFactory = &IID_ITransactionExportFactory_Value; pub const ITransactionExportFactory = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, GetRemoteClassId: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ITransactionExportFactory, pclsid: ?*Guid, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ITransactionExportFactory, pclsid: ?*Guid, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Create: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ITransactionExportFactory, cbWhereabouts: u32, rgbWhereabouts: [*:0]u8, ppExport: ?*?*ITransactionExport, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ITransactionExportFactory, cbWhereabouts: u32, rgbWhereabouts: [*:0]u8, ppExport: ?*?*ITransactionExport, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITransactionExportFactory_GetRemoteClassId(self: *const T, pclsid: ?*Guid) HRESULT { return @as(*const ITransactionExportFactory.VTable, @ptrCast(self.vtable)).GetRemoteClassId(@as(*const ITransactionExportFactory, @ptrCast(self)), pclsid); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITransactionExportFactory_Create(self: *const T, cbWhereabouts: u32, rgbWhereabouts: [*:0]u8, ppExport: ?*?*ITransactionExport) HRESULT { return @as(*const ITransactionExportFactory.VTable, @ptrCast(self.vtable)).Create(@as(*const ITransactionExportFactory, @ptrCast(self)), cbWhereabouts, rgbWhereabouts, ppExport); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_ITransactionImportWhereabouts_Value = Guid.initString("0141fda4-8fc0-11ce-bd18-204c4f4f5020"); pub const IID_ITransactionImportWhereabouts = &IID_ITransactionImportWhereabouts_Value; pub const ITransactionImportWhereabouts = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, GetWhereaboutsSize: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ITransactionImportWhereabouts, pcbWhereabouts: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ITransactionImportWhereabouts, pcbWhereabouts: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetWhereabouts: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ITransactionImportWhereabouts, cbWhereabouts: u32, rgbWhereabouts: [*:0]u8, pcbUsed: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ITransactionImportWhereabouts, cbWhereabouts: u32, rgbWhereabouts: [*:0]u8, pcbUsed: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITransactionImportWhereabouts_GetWhereaboutsSize(self: *const T, pcbWhereabouts: ?*u32) HRESULT { return @as(*const ITransactionImportWhereabouts.VTable, @ptrCast(self.vtable)).GetWhereaboutsSize(@as(*const ITransactionImportWhereabouts, @ptrCast(self)), pcbWhereabouts); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITransactionImportWhereabouts_GetWhereabouts(self: *const T, cbWhereabouts: u32, rgbWhereabouts: [*:0]u8, pcbUsed: ?*u32) HRESULT { return @as(*const ITransactionImportWhereabouts.VTable, @ptrCast(self.vtable)).GetWhereabouts(@as(*const ITransactionImportWhereabouts, @ptrCast(self)), cbWhereabouts, rgbWhereabouts, pcbUsed); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_ITransactionExport_Value = Guid.initString("0141fda5-8fc0-11ce-bd18-204c4f4f5020"); pub const IID_ITransactionExport = &IID_ITransactionExport_Value; pub const ITransactionExport = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, Export: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ITransactionExport, punkTransaction: ?*IUnknown, pcbTransactionCookie: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ITransactionExport, punkTransaction: ?*IUnknown, pcbTransactionCookie: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetTransactionCookie: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ITransactionExport, punkTransaction: ?*IUnknown, cbTransactionCookie: u32, rgbTransactionCookie: [*:0]u8, pcbUsed: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ITransactionExport, punkTransaction: ?*IUnknown, cbTransactionCookie: u32, rgbTransactionCookie: [*:0]u8, pcbUsed: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITransactionExport_Export(self: *const T, punkTransaction: ?*IUnknown, pcbTransactionCookie: ?*u32) HRESULT { return @as(*const ITransactionExport.VTable, @ptrCast(self.vtable)).Export(@as(*const ITransactionExport, @ptrCast(self)), punkTransaction, pcbTransactionCookie); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITransactionExport_GetTransactionCookie(self: *const T, punkTransaction: ?*IUnknown, cbTransactionCookie: u32, rgbTransactionCookie: [*:0]u8, pcbUsed: ?*u32) HRESULT { return @as(*const ITransactionExport.VTable, @ptrCast(self.vtable)).GetTransactionCookie(@as(*const ITransactionExport, @ptrCast(self)), punkTransaction, cbTransactionCookie, rgbTransactionCookie, pcbUsed); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_ITransactionImport_Value = Guid.initString("e1cf9b5a-8745-11ce-a9ba-00aa006c3706"); pub const IID_ITransactionImport = &IID_ITransactionImport_Value; pub const ITransactionImport = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, Import: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ITransactionImport, cbTransactionCookie: u32, rgbTransactionCookie: [*:0]u8, piid: ?*const Guid, ppvTransaction: ?*?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ITransactionImport, cbTransactionCookie: u32, rgbTransactionCookie: [*:0]u8, piid: ?*const Guid, ppvTransaction: ?*?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITransactionImport_Import(self: *const T, cbTransactionCookie: u32, rgbTransactionCookie: [*:0]u8, piid: ?*const Guid, ppvTransaction: ?*?*anyopaque) HRESULT { return @as(*const ITransactionImport.VTable, @ptrCast(self.vtable)).Import(@as(*const ITransactionImport, @ptrCast(self)), cbTransactionCookie, rgbTransactionCookie, piid, ppvTransaction); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_ITipTransaction_Value = Guid.initString("17cf72d0-bac5-11d1-b1bf-00c04fc2f3ef"); pub const IID_ITipTransaction = &IID_ITipTransaction_Value; pub const ITipTransaction = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, Push: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ITipTransaction, i_pszRemoteTmUrl: ?*u8, o_ppszRemoteTxUrl: ?*?PSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ITipTransaction, i_pszRemoteTmUrl: ?*u8, o_ppszRemoteTxUrl: ?*?PSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetTransactionUrl: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ITipTransaction, o_ppszLocalTxUrl: ?*?PSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ITipTransaction, o_ppszLocalTxUrl: ?*?PSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITipTransaction_Push(self: *const T, i_pszRemoteTmUrl: ?*u8, o_ppszRemoteTxUrl: ?*?PSTR) HRESULT { return @as(*const ITipTransaction.VTable, @ptrCast(self.vtable)).Push(@as(*const ITipTransaction, @ptrCast(self)), i_pszRemoteTmUrl, o_ppszRemoteTxUrl); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITipTransaction_GetTransactionUrl(self: *const T, o_ppszLocalTxUrl: ?*?PSTR) HRESULT { return @as(*const ITipTransaction.VTable, @ptrCast(self.vtable)).GetTransactionUrl(@as(*const ITipTransaction, @ptrCast(self)), o_ppszLocalTxUrl); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_ITipHelper_Value = Guid.initString("17cf72d1-bac5-11d1-b1bf-00c04fc2f3ef"); pub const IID_ITipHelper = &IID_ITipHelper_Value; pub const ITipHelper = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, Pull: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ITipHelper, i_pszTxUrl: ?*u8, o_ppITransaction: ?*?*ITransaction, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ITipHelper, i_pszTxUrl: ?*u8, o_ppITransaction: ?*?*ITransaction, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, PullAsync: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ITipHelper, i_pszTxUrl: ?*u8, i_pTipPullSink: ?*ITipPullSink, o_ppITransaction: ?*?*ITransaction, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ITipHelper, i_pszTxUrl: ?*u8, i_pTipPullSink: ?*ITipPullSink, o_ppITransaction: ?*?*ITransaction, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetLocalTmUrl: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ITipHelper, o_ppszLocalTmUrl: ?*?*u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ITipHelper, o_ppszLocalTmUrl: ?*?*u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITipHelper_Pull(self: *const T, i_pszTxUrl: ?*u8, o_ppITransaction: ?*?*ITransaction) HRESULT { return @as(*const ITipHelper.VTable, @ptrCast(self.vtable)).Pull(@as(*const ITipHelper, @ptrCast(self)), i_pszTxUrl, o_ppITransaction); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITipHelper_PullAsync(self: *const T, i_pszTxUrl: ?*u8, i_pTipPullSink: ?*ITipPullSink, o_ppITransaction: ?*?*ITransaction) HRESULT { return @as(*const ITipHelper.VTable, @ptrCast(self.vtable)).PullAsync(@as(*const ITipHelper, @ptrCast(self)), i_pszTxUrl, i_pTipPullSink, o_ppITransaction); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITipHelper_GetLocalTmUrl(self: *const T, o_ppszLocalTmUrl: ?*?*u8) HRESULT { return @as(*const ITipHelper.VTable, @ptrCast(self.vtable)).GetLocalTmUrl(@as(*const ITipHelper, @ptrCast(self)), o_ppszLocalTmUrl); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_ITipPullSink_Value = Guid.initString("17cf72d2-bac5-11d1-b1bf-00c04fc2f3ef"); pub const IID_ITipPullSink = &IID_ITipPullSink_Value; pub const ITipPullSink = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, PullComplete: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ITipPullSink, i_hrPull: HRESULT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ITipPullSink, i_hrPull: HRESULT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITipPullSink_PullComplete(self: *const T, i_hrPull: HRESULT) HRESULT { return @as(*const ITipPullSink.VTable, @ptrCast(self.vtable)).PullComplete(@as(*const ITipPullSink, @ptrCast(self)), i_hrPull); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IDtcNetworkAccessConfig_Value = Guid.initString("9797c15d-a428-4291-87b6-0995031a678d"); pub const IID_IDtcNetworkAccessConfig = &IID_IDtcNetworkAccessConfig_Value; pub const IDtcNetworkAccessConfig = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, GetAnyNetworkAccess: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDtcNetworkAccessConfig, pbAnyNetworkAccess: ?*BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDtcNetworkAccessConfig, pbAnyNetworkAccess: ?*BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetAnyNetworkAccess: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDtcNetworkAccessConfig, bAnyNetworkAccess: BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDtcNetworkAccessConfig, bAnyNetworkAccess: BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetNetworkAdministrationAccess: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDtcNetworkAccessConfig, pbNetworkAdministrationAccess: ?*BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDtcNetworkAccessConfig, pbNetworkAdministrationAccess: ?*BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetNetworkAdministrationAccess: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDtcNetworkAccessConfig, bNetworkAdministrationAccess: BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDtcNetworkAccessConfig, bNetworkAdministrationAccess: BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetNetworkTransactionAccess: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDtcNetworkAccessConfig, pbNetworkTransactionAccess: ?*BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDtcNetworkAccessConfig, pbNetworkTransactionAccess: ?*BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetNetworkTransactionAccess: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDtcNetworkAccessConfig, bNetworkTransactionAccess: BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDtcNetworkAccessConfig, bNetworkTransactionAccess: BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetNetworkClientAccess: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDtcNetworkAccessConfig, pbNetworkClientAccess: ?*BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDtcNetworkAccessConfig, pbNetworkClientAccess: ?*BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetNetworkClientAccess: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDtcNetworkAccessConfig, bNetworkClientAccess: BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDtcNetworkAccessConfig, bNetworkClientAccess: BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetNetworkTIPAccess: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDtcNetworkAccessConfig, pbNetworkTIPAccess: ?*BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDtcNetworkAccessConfig, pbNetworkTIPAccess: ?*BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetNetworkTIPAccess: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDtcNetworkAccessConfig, bNetworkTIPAccess: BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDtcNetworkAccessConfig, bNetworkTIPAccess: BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetXAAccess: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDtcNetworkAccessConfig, pbXAAccess: ?*BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDtcNetworkAccessConfig, pbXAAccess: ?*BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetXAAccess: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDtcNetworkAccessConfig, bXAAccess: BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDtcNetworkAccessConfig, bXAAccess: BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, RestartDtcService: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDtcNetworkAccessConfig, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDtcNetworkAccessConfig, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDtcNetworkAccessConfig_GetAnyNetworkAccess(self: *const T, pbAnyNetworkAccess: ?*BOOL) HRESULT { return @as(*const IDtcNetworkAccessConfig.VTable, @ptrCast(self.vtable)).GetAnyNetworkAccess(@as(*const IDtcNetworkAccessConfig, @ptrCast(self)), pbAnyNetworkAccess); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDtcNetworkAccessConfig_SetAnyNetworkAccess(self: *const T, bAnyNetworkAccess: BOOL) HRESULT { return @as(*const IDtcNetworkAccessConfig.VTable, @ptrCast(self.vtable)).SetAnyNetworkAccess(@as(*const IDtcNetworkAccessConfig, @ptrCast(self)), bAnyNetworkAccess); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDtcNetworkAccessConfig_GetNetworkAdministrationAccess(self: *const T, pbNetworkAdministrationAccess: ?*BOOL) HRESULT { return @as(*const IDtcNetworkAccessConfig.VTable, @ptrCast(self.vtable)).GetNetworkAdministrationAccess(@as(*const IDtcNetworkAccessConfig, @ptrCast(self)), pbNetworkAdministrationAccess); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDtcNetworkAccessConfig_SetNetworkAdministrationAccess(self: *const T, bNetworkAdministrationAccess: BOOL) HRESULT { return @as(*const IDtcNetworkAccessConfig.VTable, @ptrCast(self.vtable)).SetNetworkAdministrationAccess(@as(*const IDtcNetworkAccessConfig, @ptrCast(self)), bNetworkAdministrationAccess); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDtcNetworkAccessConfig_GetNetworkTransactionAccess(self: *const T, pbNetworkTransactionAccess: ?*BOOL) HRESULT { return @as(*const IDtcNetworkAccessConfig.VTable, @ptrCast(self.vtable)).GetNetworkTransactionAccess(@as(*const IDtcNetworkAccessConfig, @ptrCast(self)), pbNetworkTransactionAccess); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDtcNetworkAccessConfig_SetNetworkTransactionAccess(self: *const T, bNetworkTransactionAccess: BOOL) HRESULT { return @as(*const IDtcNetworkAccessConfig.VTable, @ptrCast(self.vtable)).SetNetworkTransactionAccess(@as(*const IDtcNetworkAccessConfig, @ptrCast(self)), bNetworkTransactionAccess); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDtcNetworkAccessConfig_GetNetworkClientAccess(self: *const T, pbNetworkClientAccess: ?*BOOL) HRESULT { return @as(*const IDtcNetworkAccessConfig.VTable, @ptrCast(self.vtable)).GetNetworkClientAccess(@as(*const IDtcNetworkAccessConfig, @ptrCast(self)), pbNetworkClientAccess); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDtcNetworkAccessConfig_SetNetworkClientAccess(self: *const T, bNetworkClientAccess: BOOL) HRESULT { return @as(*const IDtcNetworkAccessConfig.VTable, @ptrCast(self.vtable)).SetNetworkClientAccess(@as(*const IDtcNetworkAccessConfig, @ptrCast(self)), bNetworkClientAccess); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDtcNetworkAccessConfig_GetNetworkTIPAccess(self: *const T, pbNetworkTIPAccess: ?*BOOL) HRESULT { return @as(*const IDtcNetworkAccessConfig.VTable, @ptrCast(self.vtable)).GetNetworkTIPAccess(@as(*const IDtcNetworkAccessConfig, @ptrCast(self)), pbNetworkTIPAccess); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDtcNetworkAccessConfig_SetNetworkTIPAccess(self: *const T, bNetworkTIPAccess: BOOL) HRESULT { return @as(*const IDtcNetworkAccessConfig.VTable, @ptrCast(self.vtable)).SetNetworkTIPAccess(@as(*const IDtcNetworkAccessConfig, @ptrCast(self)), bNetworkTIPAccess); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDtcNetworkAccessConfig_GetXAAccess(self: *const T, pbXAAccess: ?*BOOL) HRESULT { return @as(*const IDtcNetworkAccessConfig.VTable, @ptrCast(self.vtable)).GetXAAccess(@as(*const IDtcNetworkAccessConfig, @ptrCast(self)), pbXAAccess); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDtcNetworkAccessConfig_SetXAAccess(self: *const T, bXAAccess: BOOL) HRESULT { return @as(*const IDtcNetworkAccessConfig.VTable, @ptrCast(self.vtable)).SetXAAccess(@as(*const IDtcNetworkAccessConfig, @ptrCast(self)), bXAAccess); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDtcNetworkAccessConfig_RestartDtcService(self: *const T) HRESULT { return @as(*const IDtcNetworkAccessConfig.VTable, @ptrCast(self.vtable)).RestartDtcService(@as(*const IDtcNetworkAccessConfig, @ptrCast(self))); } }; } pub usingnamespace MethodMixin(@This()); }; pub const AUTHENTICATION_LEVEL = enum(i32) { NO_AUTHENTICATION_REQUIRED = 0, INCOMING_AUTHENTICATION_REQUIRED = 1, MUTUAL_AUTHENTICATION_REQUIRED = 2, }; pub const NO_AUTHENTICATION_REQUIRED = AUTHENTICATION_LEVEL.NO_AUTHENTICATION_REQUIRED; pub const INCOMING_AUTHENTICATION_REQUIRED = AUTHENTICATION_LEVEL.INCOMING_AUTHENTICATION_REQUIRED; pub const MUTUAL_AUTHENTICATION_REQUIRED = AUTHENTICATION_LEVEL.MUTUAL_AUTHENTICATION_REQUIRED; const IID_IDtcNetworkAccessConfig2_Value = Guid.initString("a7aa013b-eb7d-4f42-b41c-b2dec09ae034"); pub const IID_IDtcNetworkAccessConfig2 = &IID_IDtcNetworkAccessConfig2_Value; pub const IDtcNetworkAccessConfig2 = extern struct { pub const VTable = extern struct { base: IDtcNetworkAccessConfig.VTable, GetNetworkInboundAccess: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDtcNetworkAccessConfig2, pbInbound: ?*BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDtcNetworkAccessConfig2, pbInbound: ?*BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetNetworkOutboundAccess: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDtcNetworkAccessConfig2, pbOutbound: ?*BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDtcNetworkAccessConfig2, pbOutbound: ?*BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetNetworkInboundAccess: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDtcNetworkAccessConfig2, bInbound: BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDtcNetworkAccessConfig2, bInbound: BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetNetworkOutboundAccess: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDtcNetworkAccessConfig2, bOutbound: BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDtcNetworkAccessConfig2, bOutbound: BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetAuthenticationLevel: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDtcNetworkAccessConfig2, pAuthLevel: ?*AUTHENTICATION_LEVEL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDtcNetworkAccessConfig2, pAuthLevel: ?*AUTHENTICATION_LEVEL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetAuthenticationLevel: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDtcNetworkAccessConfig2, AuthLevel: AUTHENTICATION_LEVEL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDtcNetworkAccessConfig2, AuthLevel: AUTHENTICATION_LEVEL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IDtcNetworkAccessConfig.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDtcNetworkAccessConfig2_GetNetworkInboundAccess(self: *const T, pbInbound: ?*BOOL) HRESULT { return @as(*const IDtcNetworkAccessConfig2.VTable, @ptrCast(self.vtable)).GetNetworkInboundAccess(@as(*const IDtcNetworkAccessConfig2, @ptrCast(self)), pbInbound); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDtcNetworkAccessConfig2_GetNetworkOutboundAccess(self: *const T, pbOutbound: ?*BOOL) HRESULT { return @as(*const IDtcNetworkAccessConfig2.VTable, @ptrCast(self.vtable)).GetNetworkOutboundAccess(@as(*const IDtcNetworkAccessConfig2, @ptrCast(self)), pbOutbound); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDtcNetworkAccessConfig2_SetNetworkInboundAccess(self: *const T, bInbound: BOOL) HRESULT { return @as(*const IDtcNetworkAccessConfig2.VTable, @ptrCast(self.vtable)).SetNetworkInboundAccess(@as(*const IDtcNetworkAccessConfig2, @ptrCast(self)), bInbound); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDtcNetworkAccessConfig2_SetNetworkOutboundAccess(self: *const T, bOutbound: BOOL) HRESULT { return @as(*const IDtcNetworkAccessConfig2.VTable, @ptrCast(self.vtable)).SetNetworkOutboundAccess(@as(*const IDtcNetworkAccessConfig2, @ptrCast(self)), bOutbound); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDtcNetworkAccessConfig2_GetAuthenticationLevel(self: *const T, pAuthLevel: ?*AUTHENTICATION_LEVEL) HRESULT { return @as(*const IDtcNetworkAccessConfig2.VTable, @ptrCast(self.vtable)).GetAuthenticationLevel(@as(*const IDtcNetworkAccessConfig2, @ptrCast(self)), pAuthLevel); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDtcNetworkAccessConfig2_SetAuthenticationLevel(self: *const T, AuthLevel: AUTHENTICATION_LEVEL) HRESULT { return @as(*const IDtcNetworkAccessConfig2.VTable, @ptrCast(self.vtable)).SetAuthenticationLevel(@as(*const IDtcNetworkAccessConfig2, @ptrCast(self)), AuthLevel); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IDtcNetworkAccessConfig3_Value = Guid.initString("76e4b4f3-2ca5-466b-89d5-fd218ee75b49"); pub const IID_IDtcNetworkAccessConfig3 = &IID_IDtcNetworkAccessConfig3_Value; pub const IDtcNetworkAccessConfig3 = extern struct { pub const VTable = extern struct { base: IDtcNetworkAccessConfig2.VTable, GetLUAccess: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDtcNetworkAccessConfig3, pbLUAccess: ?*BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDtcNetworkAccessConfig3, pbLUAccess: ?*BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetLUAccess: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDtcNetworkAccessConfig3, bLUAccess: BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDtcNetworkAccessConfig3, bLUAccess: BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IDtcNetworkAccessConfig2.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDtcNetworkAccessConfig3_GetLUAccess(self: *const T, pbLUAccess: ?*BOOL) HRESULT { return @as(*const IDtcNetworkAccessConfig3.VTable, @ptrCast(self.vtable)).GetLUAccess(@as(*const IDtcNetworkAccessConfig3, @ptrCast(self)), pbLUAccess); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDtcNetworkAccessConfig3_SetLUAccess(self: *const T, bLUAccess: BOOL) HRESULT { return @as(*const IDtcNetworkAccessConfig3.VTable, @ptrCast(self.vtable)).SetLUAccess(@as(*const IDtcNetworkAccessConfig3, @ptrCast(self)), bLUAccess); } }; } pub usingnamespace MethodMixin(@This()); }; pub const xid_t = extern struct { formatID: i32, gtrid_length: i32, bqual_length: i32, data: [128]CHAR, }; pub const xa_switch_t = extern struct { name: [32]CHAR, flags: i32, version: i32, xa_open_entry: isize, xa_close_entry: isize, xa_start_entry: isize, xa_end_entry: isize, xa_rollback_entry: isize, xa_prepare_entry: isize, xa_commit_entry: isize, xa_recover_entry: isize, xa_forget_entry: isize, xa_complete_entry: isize, }; pub const XA_OPEN_EPT = switch (@import("builtin").zig_backend) { .stage1 => fn ( param0: ?PSTR, param1: i32, param2: i32, ) callconv(@import("std").os.windows.WINAPI) i32, else => *const fn ( param0: ?PSTR, param1: i32, param2: i32, ) callconv(@import("std").os.windows.WINAPI) i32, }; pub const XA_CLOSE_EPT = switch (@import("builtin").zig_backend) { .stage1 => fn ( param0: ?PSTR, param1: i32, param2: i32, ) callconv(@import("std").os.windows.WINAPI) i32, else => *const fn ( param0: ?PSTR, param1: i32, param2: i32, ) callconv(@import("std").os.windows.WINAPI) i32, }; pub const XA_START_EPT = switch (@import("builtin").zig_backend) { .stage1 => fn ( param0: ?*xid_t, param1: i32, param2: i32, ) callconv(@import("std").os.windows.WINAPI) i32, else => *const fn ( param0: ?*xid_t, param1: i32, param2: i32, ) callconv(@import("std").os.windows.WINAPI) i32, }; pub const XA_END_EPT = switch (@import("builtin").zig_backend) { .stage1 => fn ( param0: ?*xid_t, param1: i32, param2: i32, ) callconv(@import("std").os.windows.WINAPI) i32, else => *const fn ( param0: ?*xid_t, param1: i32, param2: i32, ) callconv(@import("std").os.windows.WINAPI) i32, }; pub const XA_ROLLBACK_EPT = switch (@import("builtin").zig_backend) { .stage1 => fn ( param0: ?*xid_t, param1: i32, param2: i32, ) callconv(@import("std").os.windows.WINAPI) i32, else => *const fn ( param0: ?*xid_t, param1: i32, param2: i32, ) callconv(@import("std").os.windows.WINAPI) i32, }; pub const XA_PREPARE_EPT = switch (@import("builtin").zig_backend) { .stage1 => fn ( param0: ?*xid_t, param1: i32, param2: i32, ) callconv(@import("std").os.windows.WINAPI) i32, else => *const fn ( param0: ?*xid_t, param1: i32, param2: i32, ) callconv(@import("std").os.windows.WINAPI) i32, }; pub const XA_COMMIT_EPT = switch (@import("builtin").zig_backend) { .stage1 => fn ( param0: ?*xid_t, param1: i32, param2: i32, ) callconv(@import("std").os.windows.WINAPI) i32, else => *const fn ( param0: ?*xid_t, param1: i32, param2: i32, ) callconv(@import("std").os.windows.WINAPI) i32, }; pub const XA_RECOVER_EPT = switch (@import("builtin").zig_backend) { .stage1 => fn ( param0: ?*xid_t, param1: i32, param2: i32, param3: i32, ) callconv(@import("std").os.windows.WINAPI) i32, else => *const fn ( param0: ?*xid_t, param1: i32, param2: i32, param3: i32, ) callconv(@import("std").os.windows.WINAPI) i32, }; pub const XA_FORGET_EPT = switch (@import("builtin").zig_backend) { .stage1 => fn ( param0: ?*xid_t, param1: i32, param2: i32, ) callconv(@import("std").os.windows.WINAPI) i32, else => *const fn ( param0: ?*xid_t, param1: i32, param2: i32, ) callconv(@import("std").os.windows.WINAPI) i32, }; pub const XA_COMPLETE_EPT = switch (@import("builtin").zig_backend) { .stage1 => fn ( param0: ?*i32, param1: ?*i32, param2: i32, param3: i32, ) callconv(@import("std").os.windows.WINAPI) i32, else => *const fn ( param0: ?*i32, param1: ?*i32, param2: i32, param3: i32, ) callconv(@import("std").os.windows.WINAPI) i32, }; const IID_IDtcToXaMapper_Value = Guid.initString("64ffabe0-7ce9-11d0-8ce6-00c04fdc877e"); pub const IID_IDtcToXaMapper = &IID_IDtcToXaMapper_Value; pub const IDtcToXaMapper = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, RequestNewResourceManager: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDtcToXaMapper, pszDSN: ?PSTR, pszClientDllName: ?PSTR, pdwRMCookie: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDtcToXaMapper, pszDSN: ?PSTR, pszClientDllName: ?PSTR, pdwRMCookie: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, TranslateTridToXid: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDtcToXaMapper, pdwITransaction: ?*u32, dwRMCookie: u32, pXid: ?*xid_t, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDtcToXaMapper, pdwITransaction: ?*u32, dwRMCookie: u32, pXid: ?*xid_t, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, EnlistResourceManager: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDtcToXaMapper, dwRMCookie: u32, pdwITransaction: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDtcToXaMapper, dwRMCookie: u32, pdwITransaction: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, ReleaseResourceManager: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDtcToXaMapper, dwRMCookie: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDtcToXaMapper, dwRMCookie: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDtcToXaMapper_RequestNewResourceManager(self: *const T, pszDSN: ?PSTR, pszClientDllName: ?PSTR, pdwRMCookie: ?*u32) HRESULT { return @as(*const IDtcToXaMapper.VTable, @ptrCast(self.vtable)).RequestNewResourceManager(@as(*const IDtcToXaMapper, @ptrCast(self)), pszDSN, pszClientDllName, pdwRMCookie); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDtcToXaMapper_TranslateTridToXid(self: *const T, pdwITransaction: ?*u32, dwRMCookie: u32, pXid: ?*xid_t) HRESULT { return @as(*const IDtcToXaMapper.VTable, @ptrCast(self.vtable)).TranslateTridToXid(@as(*const IDtcToXaMapper, @ptrCast(self)), pdwITransaction, dwRMCookie, pXid); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDtcToXaMapper_EnlistResourceManager(self: *const T, dwRMCookie: u32, pdwITransaction: ?*u32) HRESULT { return @as(*const IDtcToXaMapper.VTable, @ptrCast(self.vtable)).EnlistResourceManager(@as(*const IDtcToXaMapper, @ptrCast(self)), dwRMCookie, pdwITransaction); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDtcToXaMapper_ReleaseResourceManager(self: *const T, dwRMCookie: u32) HRESULT { return @as(*const IDtcToXaMapper.VTable, @ptrCast(self.vtable)).ReleaseResourceManager(@as(*const IDtcToXaMapper, @ptrCast(self)), dwRMCookie); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IDtcToXaHelperFactory_Value = Guid.initString("a9861610-304a-11d1-9813-00a0c905416e"); pub const IID_IDtcToXaHelperFactory = &IID_IDtcToXaHelperFactory_Value; pub const IDtcToXaHelperFactory = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, Create: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDtcToXaHelperFactory, pszDSN: ?PSTR, pszClientDllName: ?PSTR, pguidRm: ?*Guid, ppXaHelper: ?*?*IDtcToXaHelper, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDtcToXaHelperFactory, pszDSN: ?PSTR, pszClientDllName: ?PSTR, pguidRm: ?*Guid, ppXaHelper: ?*?*IDtcToXaHelper, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDtcToXaHelperFactory_Create(self: *const T, pszDSN: ?PSTR, pszClientDllName: ?PSTR, pguidRm: ?*Guid, ppXaHelper: ?*?*IDtcToXaHelper) HRESULT { return @as(*const IDtcToXaHelperFactory.VTable, @ptrCast(self.vtable)).Create(@as(*const IDtcToXaHelperFactory, @ptrCast(self)), pszDSN, pszClientDllName, pguidRm, ppXaHelper); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IDtcToXaHelper_Value = Guid.initString("a9861611-304a-11d1-9813-00a0c905416e"); pub const IID_IDtcToXaHelper = &IID_IDtcToXaHelper_Value; pub const IDtcToXaHelper = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, Close: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDtcToXaHelper, i_fDoRecovery: BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDtcToXaHelper, i_fDoRecovery: BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, TranslateTridToXid: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDtcToXaHelper, pITransaction: ?*ITransaction, pguidBqual: ?*Guid, pXid: ?*xid_t, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDtcToXaHelper, pITransaction: ?*ITransaction, pguidBqual: ?*Guid, pXid: ?*xid_t, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDtcToXaHelper_Close(self: *const T, i_fDoRecovery: BOOL) HRESULT { return @as(*const IDtcToXaHelper.VTable, @ptrCast(self.vtable)).Close(@as(*const IDtcToXaHelper, @ptrCast(self)), i_fDoRecovery); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDtcToXaHelper_TranslateTridToXid(self: *const T, pITransaction: ?*ITransaction, pguidBqual: ?*Guid, pXid: ?*xid_t) HRESULT { return @as(*const IDtcToXaHelper.VTable, @ptrCast(self.vtable)).TranslateTridToXid(@as(*const IDtcToXaHelper, @ptrCast(self)), pITransaction, pguidBqual, pXid); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IDtcToXaHelperSinglePipe_Value = Guid.initString("47ed4971-53b3-11d1-bbb9-00c04fd658f6"); pub const IID_IDtcToXaHelperSinglePipe = &IID_IDtcToXaHelperSinglePipe_Value; pub const IDtcToXaHelperSinglePipe = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, XARMCreate: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDtcToXaHelperSinglePipe, pszDSN: ?PSTR, pszClientDll: ?PSTR, pdwRMCookie: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDtcToXaHelperSinglePipe, pszDSN: ?PSTR, pszClientDll: ?PSTR, pdwRMCookie: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, ConvertTridToXID: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDtcToXaHelperSinglePipe, pdwITrans: ?*u32, dwRMCookie: u32, pxid: ?*xid_t, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDtcToXaHelperSinglePipe, pdwITrans: ?*u32, dwRMCookie: u32, pxid: ?*xid_t, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, EnlistWithRM: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDtcToXaHelperSinglePipe, dwRMCookie: u32, i_pITransaction: ?*ITransaction, i_pITransRes: ?*ITransactionResourceAsync, o_ppITransEnslitment: ?*?*ITransactionEnlistmentAsync, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDtcToXaHelperSinglePipe, dwRMCookie: u32, i_pITransaction: ?*ITransaction, i_pITransRes: ?*ITransactionResourceAsync, o_ppITransEnslitment: ?*?*ITransactionEnlistmentAsync, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, ReleaseRMCookie: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDtcToXaHelperSinglePipe, i_dwRMCookie: u32, i_fNormal: BOOL, ) callconv(@import("std").os.windows.WINAPI) void, else => *const fn ( self: *const IDtcToXaHelperSinglePipe, i_dwRMCookie: u32, i_fNormal: BOOL, ) callconv(@import("std").os.windows.WINAPI) void, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDtcToXaHelperSinglePipe_XARMCreate(self: *const T, pszDSN: ?PSTR, pszClientDll: ?PSTR, pdwRMCookie: ?*u32) HRESULT { return @as(*const IDtcToXaHelperSinglePipe.VTable, @ptrCast(self.vtable)).XARMCreate(@as(*const IDtcToXaHelperSinglePipe, @ptrCast(self)), pszDSN, pszClientDll, pdwRMCookie); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDtcToXaHelperSinglePipe_ConvertTridToXID(self: *const T, pdwITrans: ?*u32, dwRMCookie: u32, pxid: ?*xid_t) HRESULT { return @as(*const IDtcToXaHelperSinglePipe.VTable, @ptrCast(self.vtable)).ConvertTridToXID(@as(*const IDtcToXaHelperSinglePipe, @ptrCast(self)), pdwITrans, dwRMCookie, pxid); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDtcToXaHelperSinglePipe_EnlistWithRM(self: *const T, dwRMCookie: u32, i_pITransaction: ?*ITransaction, i_pITransRes: ?*ITransactionResourceAsync, o_ppITransEnslitment: ?*?*ITransactionEnlistmentAsync) HRESULT { return @as(*const IDtcToXaHelperSinglePipe.VTable, @ptrCast(self.vtable)).EnlistWithRM(@as(*const IDtcToXaHelperSinglePipe, @ptrCast(self)), dwRMCookie, i_pITransaction, i_pITransRes, o_ppITransEnslitment); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDtcToXaHelperSinglePipe_ReleaseRMCookie(self: *const T, i_dwRMCookie: u32, i_fNormal: BOOL) void { return @as(*const IDtcToXaHelperSinglePipe.VTable, @ptrCast(self.vtable)).ReleaseRMCookie(@as(*const IDtcToXaHelperSinglePipe, @ptrCast(self)), i_dwRMCookie, i_fNormal); } }; } pub usingnamespace MethodMixin(@This()); }; pub const APPLICATIONTYPE = enum(i32) { LOCAL_APPLICATIONTYPE = 0, CLUSTERRESOURCE_APPLICATIONTYPE = 1, }; pub const LOCAL_APPLICATIONTYPE = APPLICATIONTYPE.LOCAL_APPLICATIONTYPE; pub const CLUSTERRESOURCE_APPLICATIONTYPE = APPLICATIONTYPE.CLUSTERRESOURCE_APPLICATIONTYPE; pub const OLE_TM_CONFIG_PARAMS_V1 = extern struct { dwVersion: u32, dwcConcurrencyHint: u32, }; pub const OLE_TM_CONFIG_PARAMS_V2 = extern struct { dwVersion: u32, dwcConcurrencyHint: u32, applicationType: APPLICATIONTYPE, clusterResourceId: Guid, }; pub const XACT_DTC_CONSTANTS = enum(i32) { XACT_E_CONNECTION_REQUEST_DENIED = -2147168000, XACT_E_TOOMANY_ENLISTMENTS = -2147167999, XACT_E_DUPLICATE_GUID = -2147167998, XACT_E_NOTSINGLEPHASE = -2147167997, XACT_E_RECOVERYALREADYDONE = -2147167996, XACT_E_PROTOCOL = -2147167995, XACT_E_RM_FAILURE = -2147167994, XACT_E_RECOVERY_FAILED = -2147167993, XACT_E_LU_NOT_FOUND = -2147167992, XACT_E_DUPLICATE_LU = -2147167991, XACT_E_LU_NOT_CONNECTED = -2147167990, XACT_E_DUPLICATE_TRANSID = -2147167989, XACT_E_LU_BUSY = -2147167988, XACT_E_LU_NO_RECOVERY_PROCESS = -2147167987, XACT_E_LU_DOWN = -2147167986, XACT_E_LU_RECOVERING = -2147167985, XACT_E_LU_RECOVERY_MISMATCH = -2147167984, XACT_E_RM_UNAVAILABLE = -2147167983, XACT_E_LRMRECOVERYALREADYDONE = -2147167982, XACT_E_NOLASTRESOURCEINTERFACE = -2147167981, XACT_S_NONOTIFY = 315648, XACT_OK_NONOTIFY = 315649, dwUSER_MS_SQLSERVER = 65535, }; pub const XACT_E_CONNECTION_REQUEST_DENIED = XACT_DTC_CONSTANTS.XACT_E_CONNECTION_REQUEST_DENIED; pub const XACT_E_TOOMANY_ENLISTMENTS = XACT_DTC_CONSTANTS.XACT_E_TOOMANY_ENLISTMENTS; pub const XACT_E_DUPLICATE_GUID = XACT_DTC_CONSTANTS.XACT_E_DUPLICATE_GUID; pub const XACT_E_NOTSINGLEPHASE = XACT_DTC_CONSTANTS.XACT_E_NOTSINGLEPHASE; pub const XACT_E_RECOVERYALREADYDONE = XACT_DTC_CONSTANTS.XACT_E_RECOVERYALREADYDONE; pub const XACT_E_PROTOCOL = XACT_DTC_CONSTANTS.XACT_E_PROTOCOL; pub const XACT_E_RM_FAILURE = XACT_DTC_CONSTANTS.XACT_E_RM_FAILURE; pub const XACT_E_RECOVERY_FAILED = XACT_DTC_CONSTANTS.XACT_E_RECOVERY_FAILED; pub const XACT_E_LU_NOT_FOUND = XACT_DTC_CONSTANTS.XACT_E_LU_NOT_FOUND; pub const XACT_E_DUPLICATE_LU = XACT_DTC_CONSTANTS.XACT_E_DUPLICATE_LU; pub const XACT_E_LU_NOT_CONNECTED = XACT_DTC_CONSTANTS.XACT_E_LU_NOT_CONNECTED; pub const XACT_E_DUPLICATE_TRANSID = XACT_DTC_CONSTANTS.XACT_E_DUPLICATE_TRANSID; pub const XACT_E_LU_BUSY = XACT_DTC_CONSTANTS.XACT_E_LU_BUSY; pub const XACT_E_LU_NO_RECOVERY_PROCESS = XACT_DTC_CONSTANTS.XACT_E_LU_NO_RECOVERY_PROCESS; pub const XACT_E_LU_DOWN = XACT_DTC_CONSTANTS.XACT_E_LU_DOWN; pub const XACT_E_LU_RECOVERING = XACT_DTC_CONSTANTS.XACT_E_LU_RECOVERING; pub const XACT_E_LU_RECOVERY_MISMATCH = XACT_DTC_CONSTANTS.XACT_E_LU_RECOVERY_MISMATCH; pub const XACT_E_RM_UNAVAILABLE = XACT_DTC_CONSTANTS.XACT_E_RM_UNAVAILABLE; pub const XACT_E_LRMRECOVERYALREADYDONE = XACT_DTC_CONSTANTS.XACT_E_LRMRECOVERYALREADYDONE; pub const XACT_E_NOLASTRESOURCEINTERFACE = XACT_DTC_CONSTANTS.XACT_E_NOLASTRESOURCEINTERFACE; pub const XACT_S_NONOTIFY = XACT_DTC_CONSTANTS.XACT_S_NONOTIFY; pub const XACT_OK_NONOTIFY = XACT_DTC_CONSTANTS.XACT_OK_NONOTIFY; pub const dwUSER_MS_SQLSERVER = XACT_DTC_CONSTANTS.dwUSER_MS_SQLSERVER; const IID_IXATransLookup_Value = Guid.initString("f3b1f131-eeda-11ce-aed4-00aa0051e2c4"); pub const IID_IXATransLookup = &IID_IXATransLookup_Value; pub const IXATransLookup = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, Lookup: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IXATransLookup, ppTransaction: ?*?*ITransaction, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IXATransLookup, ppTransaction: ?*?*ITransaction, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IXATransLookup_Lookup(self: *const T, ppTransaction: ?*?*ITransaction) HRESULT { return @as(*const IXATransLookup.VTable, @ptrCast(self.vtable)).Lookup(@as(*const IXATransLookup, @ptrCast(self)), ppTransaction); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IXATransLookup2_Value = Guid.initString("bf193c85-0d1a-4290-b88f-d2cb8873d1e7"); pub const IID_IXATransLookup2 = &IID_IXATransLookup2_Value; pub const IXATransLookup2 = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, Lookup: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IXATransLookup2, pXID: ?*xid_t, ppTransaction: ?*?*ITransaction, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IXATransLookup2, pXID: ?*xid_t, ppTransaction: ?*?*ITransaction, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IXATransLookup2_Lookup(self: *const T, pXID: ?*xid_t, ppTransaction: ?*?*ITransaction) HRESULT { return @as(*const IXATransLookup2.VTable, @ptrCast(self.vtable)).Lookup(@as(*const IXATransLookup2, @ptrCast(self)), pXID, ppTransaction); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IResourceManagerSink_Value = Guid.initString("0d563181-defb-11ce-aed1-00aa0051e2c4"); pub const IID_IResourceManagerSink = &IID_IResourceManagerSink_Value; pub const IResourceManagerSink = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, TMDown: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IResourceManagerSink, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IResourceManagerSink, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IResourceManagerSink_TMDown(self: *const T) HRESULT { return @as(*const IResourceManagerSink.VTable, @ptrCast(self.vtable)).TMDown(@as(*const IResourceManagerSink, @ptrCast(self))); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows5.0' const IID_IResourceManager_Value = Guid.initString("13741d21-87eb-11ce-8081-0080c758527e"); pub const IID_IResourceManager = &IID_IResourceManager_Value; pub const IResourceManager = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, Enlist: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IResourceManager, pTransaction: ?*ITransaction, pRes: ?*ITransactionResourceAsync, pUOW: ?*BOID, pisoLevel: ?*i32, ppEnlist: ?*?*ITransactionEnlistmentAsync, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IResourceManager, pTransaction: ?*ITransaction, pRes: ?*ITransactionResourceAsync, pUOW: ?*BOID, pisoLevel: ?*i32, ppEnlist: ?*?*ITransactionEnlistmentAsync, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Reenlist: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IResourceManager, pPrepInfo: [*:0]u8, cbPrepInfo: u32, lTimeout: u32, pXactStat: ?*XACTSTAT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IResourceManager, pPrepInfo: [*:0]u8, cbPrepInfo: u32, lTimeout: u32, pXactStat: ?*XACTSTAT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, ReenlistmentComplete: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IResourceManager, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IResourceManager, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetDistributedTransactionManager: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IResourceManager, iid: ?*const Guid, ppvObject: ?*?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IResourceManager, iid: ?*const Guid, ppvObject: ?*?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IResourceManager_Enlist(self: *const T, pTransaction: ?*ITransaction, pRes: ?*ITransactionResourceAsync, pUOW: ?*BOID, pisoLevel: ?*i32, ppEnlist: ?*?*ITransactionEnlistmentAsync) HRESULT { return @as(*const IResourceManager.VTable, @ptrCast(self.vtable)).Enlist(@as(*const IResourceManager, @ptrCast(self)), pTransaction, pRes, pUOW, pisoLevel, ppEnlist); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IResourceManager_Reenlist(self: *const T, pPrepInfo: [*:0]u8, cbPrepInfo: u32, lTimeout: u32, pXactStat: ?*XACTSTAT) HRESULT { return @as(*const IResourceManager.VTable, @ptrCast(self.vtable)).Reenlist(@as(*const IResourceManager, @ptrCast(self)), pPrepInfo, cbPrepInfo, lTimeout, pXactStat); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IResourceManager_ReenlistmentComplete(self: *const T) HRESULT { return @as(*const IResourceManager.VTable, @ptrCast(self.vtable)).ReenlistmentComplete(@as(*const IResourceManager, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IResourceManager_GetDistributedTransactionManager(self: *const T, iid: ?*const Guid, ppvObject: ?*?*anyopaque) HRESULT { return @as(*const IResourceManager.VTable, @ptrCast(self.vtable)).GetDistributedTransactionManager(@as(*const IResourceManager, @ptrCast(self)), iid, ppvObject); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_ILastResourceManager_Value = Guid.initString("4d964ad4-5b33-11d3-8a91-00c04f79eb6d"); pub const IID_ILastResourceManager = &IID_ILastResourceManager_Value; pub const ILastResourceManager = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, TransactionCommitted: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ILastResourceManager, pPrepInfo: [*:0]u8, cbPrepInfo: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ILastResourceManager, pPrepInfo: [*:0]u8, cbPrepInfo: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, RecoveryDone: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ILastResourceManager, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ILastResourceManager, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ILastResourceManager_TransactionCommitted(self: *const T, pPrepInfo: [*:0]u8, cbPrepInfo: u32) HRESULT { return @as(*const ILastResourceManager.VTable, @ptrCast(self.vtable)).TransactionCommitted(@as(*const ILastResourceManager, @ptrCast(self)), pPrepInfo, cbPrepInfo); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ILastResourceManager_RecoveryDone(self: *const T) HRESULT { return @as(*const ILastResourceManager.VTable, @ptrCast(self.vtable)).RecoveryDone(@as(*const ILastResourceManager, @ptrCast(self))); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IResourceManager2_Value = Guid.initString("d136c69a-f749-11d1-8f47-00c04f8ee57d"); pub const IID_IResourceManager2 = &IID_IResourceManager2_Value; pub const IResourceManager2 = extern struct { pub const VTable = extern struct { base: IResourceManager.VTable, Enlist2: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IResourceManager2, pTransaction: ?*ITransaction, pResAsync: ?*ITransactionResourceAsync, pUOW: ?*BOID, pisoLevel: ?*i32, pXid: ?*xid_t, ppEnlist: ?*?*ITransactionEnlistmentAsync, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IResourceManager2, pTransaction: ?*ITransaction, pResAsync: ?*ITransactionResourceAsync, pUOW: ?*BOID, pisoLevel: ?*i32, pXid: ?*xid_t, ppEnlist: ?*?*ITransactionEnlistmentAsync, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Reenlist2: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IResourceManager2, pXid: ?*xid_t, dwTimeout: u32, pXactStat: ?*XACTSTAT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IResourceManager2, pXid: ?*xid_t, dwTimeout: u32, pXactStat: ?*XACTSTAT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IResourceManager.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IResourceManager2_Enlist2(self: *const T, pTransaction: ?*ITransaction, pResAsync: ?*ITransactionResourceAsync, pUOW: ?*BOID, pisoLevel: ?*i32, pXid: ?*xid_t, ppEnlist: ?*?*ITransactionEnlistmentAsync) HRESULT { return @as(*const IResourceManager2.VTable, @ptrCast(self.vtable)).Enlist2(@as(*const IResourceManager2, @ptrCast(self)), pTransaction, pResAsync, pUOW, pisoLevel, pXid, ppEnlist); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IResourceManager2_Reenlist2(self: *const T, pXid: ?*xid_t, dwTimeout: u32, pXactStat: ?*XACTSTAT) HRESULT { return @as(*const IResourceManager2.VTable, @ptrCast(self.vtable)).Reenlist2(@as(*const IResourceManager2, @ptrCast(self)), pXid, dwTimeout, pXactStat); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IResourceManagerRejoinable_Value = Guid.initString("6f6de620-b5df-4f3e-9cfa-c8aebd05172b"); pub const IID_IResourceManagerRejoinable = &IID_IResourceManagerRejoinable_Value; pub const IResourceManagerRejoinable = extern struct { pub const VTable = extern struct { base: IResourceManager2.VTable, Rejoin: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IResourceManagerRejoinable, pPrepInfo: [*:0]u8, cbPrepInfo: u32, lTimeout: u32, pXactStat: ?*XACTSTAT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IResourceManagerRejoinable, pPrepInfo: [*:0]u8, cbPrepInfo: u32, lTimeout: u32, pXactStat: ?*XACTSTAT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IResourceManager2.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IResourceManagerRejoinable_Rejoin(self: *const T, pPrepInfo: [*:0]u8, cbPrepInfo: u32, lTimeout: u32, pXactStat: ?*XACTSTAT) HRESULT { return @as(*const IResourceManagerRejoinable.VTable, @ptrCast(self.vtable)).Rejoin(@as(*const IResourceManagerRejoinable, @ptrCast(self)), pPrepInfo, cbPrepInfo, lTimeout, pXactStat); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IXAConfig_Value = Guid.initString("c8a6e3a1-9a8c-11cf-a308-00a0c905416e"); pub const IID_IXAConfig = &IID_IXAConfig_Value; pub const IXAConfig = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, Initialize: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IXAConfig, clsidHelperDll: Guid, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IXAConfig, clsidHelperDll: Guid, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Terminate: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IXAConfig, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IXAConfig, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IXAConfig_Initialize(self: *const T, clsidHelperDll: Guid) HRESULT { return @as(*const IXAConfig.VTable, @ptrCast(self.vtable)).Initialize(@as(*const IXAConfig, @ptrCast(self)), clsidHelperDll); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IXAConfig_Terminate(self: *const T) HRESULT { return @as(*const IXAConfig.VTable, @ptrCast(self.vtable)).Terminate(@as(*const IXAConfig, @ptrCast(self))); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IRMHelper_Value = Guid.initString("e793f6d1-f53d-11cf-a60d-00a0c905416e"); pub const IID_IRMHelper = &IID_IRMHelper_Value; pub const IRMHelper = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, RMCount: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IRMHelper, dwcTotalNumberOfRMs: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IRMHelper, dwcTotalNumberOfRMs: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, RMInfo: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IRMHelper, pXa_Switch: ?*xa_switch_t, fCDeclCallingConv: BOOL, pszOpenString: ?PSTR, pszCloseString: ?PSTR, guidRMRecovery: Guid, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IRMHelper, pXa_Switch: ?*xa_switch_t, fCDeclCallingConv: BOOL, pszOpenString: ?PSTR, pszCloseString: ?PSTR, guidRMRecovery: Guid, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRMHelper_RMCount(self: *const T, dwcTotalNumberOfRMs: u32) HRESULT { return @as(*const IRMHelper.VTable, @ptrCast(self.vtable)).RMCount(@as(*const IRMHelper, @ptrCast(self)), dwcTotalNumberOfRMs); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRMHelper_RMInfo(self: *const T, pXa_Switch: ?*xa_switch_t, fCDeclCallingConv: BOOL, pszOpenString: ?PSTR, pszCloseString: ?PSTR, guidRMRecovery: Guid) HRESULT { return @as(*const IRMHelper.VTable, @ptrCast(self.vtable)).RMInfo(@as(*const IRMHelper, @ptrCast(self)), pXa_Switch, fCDeclCallingConv, pszOpenString, pszCloseString, guidRMRecovery); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IXAObtainRMInfo_Value = Guid.initString("e793f6d2-f53d-11cf-a60d-00a0c905416e"); pub const IID_IXAObtainRMInfo = &IID_IXAObtainRMInfo_Value; pub const IXAObtainRMInfo = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, ObtainRMInfo: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IXAObtainRMInfo, pIRMHelper: ?*IRMHelper, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IXAObtainRMInfo, pIRMHelper: ?*IRMHelper, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IXAObtainRMInfo_ObtainRMInfo(self: *const T, pIRMHelper: ?*IRMHelper) HRESULT { return @as(*const IXAObtainRMInfo.VTable, @ptrCast(self.vtable)).ObtainRMInfo(@as(*const IXAObtainRMInfo, @ptrCast(self)), pIRMHelper); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IResourceManagerFactory_Value = Guid.initString("13741d20-87eb-11ce-8081-0080c758527e"); pub const IID_IResourceManagerFactory = &IID_IResourceManagerFactory_Value; pub const IResourceManagerFactory = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, Create: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IResourceManagerFactory, pguidRM: ?*Guid, pszRMName: ?PSTR, pIResMgrSink: ?*IResourceManagerSink, ppResMgr: ?*?*IResourceManager, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IResourceManagerFactory, pguidRM: ?*Guid, pszRMName: ?PSTR, pIResMgrSink: ?*IResourceManagerSink, ppResMgr: ?*?*IResourceManager, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IResourceManagerFactory_Create(self: *const T, pguidRM: ?*Guid, pszRMName: ?PSTR, pIResMgrSink: ?*IResourceManagerSink, ppResMgr: ?*?*IResourceManager) HRESULT { return @as(*const IResourceManagerFactory.VTable, @ptrCast(self.vtable)).Create(@as(*const IResourceManagerFactory, @ptrCast(self)), pguidRM, pszRMName, pIResMgrSink, ppResMgr); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IResourceManagerFactory2_Value = Guid.initString("6b369c21-fbd2-11d1-8f47-00c04f8ee57d"); pub const IID_IResourceManagerFactory2 = &IID_IResourceManagerFactory2_Value; pub const IResourceManagerFactory2 = extern struct { pub const VTable = extern struct { base: IResourceManagerFactory.VTable, CreateEx: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IResourceManagerFactory2, pguidRM: ?*Guid, pszRMName: ?PSTR, pIResMgrSink: ?*IResourceManagerSink, riidRequested: ?*const Guid, ppvResMgr: ?*?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IResourceManagerFactory2, pguidRM: ?*Guid, pszRMName: ?PSTR, pIResMgrSink: ?*IResourceManagerSink, riidRequested: ?*const Guid, ppvResMgr: ?*?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IResourceManagerFactory.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IResourceManagerFactory2_CreateEx(self: *const T, pguidRM: ?*Guid, pszRMName: ?PSTR, pIResMgrSink: ?*IResourceManagerSink, riidRequested: ?*const Guid, ppvResMgr: ?*?*anyopaque) HRESULT { return @as(*const IResourceManagerFactory2.VTable, @ptrCast(self.vtable)).CreateEx(@as(*const IResourceManagerFactory2, @ptrCast(self)), pguidRM, pszRMName, pIResMgrSink, riidRequested, ppvResMgr); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IPrepareInfo_Value = Guid.initString("80c7bfd0-87ee-11ce-8081-0080c758527e"); pub const IID_IPrepareInfo = &IID_IPrepareInfo_Value; pub const IPrepareInfo = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, GetPrepareInfoSize: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IPrepareInfo, pcbPrepInfo: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IPrepareInfo, pcbPrepInfo: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetPrepareInfo: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IPrepareInfo, pPrepInfo: ?*u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IPrepareInfo, pPrepInfo: ?*u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPrepareInfo_GetPrepareInfoSize(self: *const T, pcbPrepInfo: ?*u32) HRESULT { return @as(*const IPrepareInfo.VTable, @ptrCast(self.vtable)).GetPrepareInfoSize(@as(*const IPrepareInfo, @ptrCast(self)), pcbPrepInfo); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPrepareInfo_GetPrepareInfo(self: *const T, pPrepInfo: ?*u8) HRESULT { return @as(*const IPrepareInfo.VTable, @ptrCast(self.vtable)).GetPrepareInfo(@as(*const IPrepareInfo, @ptrCast(self)), pPrepInfo); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IPrepareInfo2_Value = Guid.initString("5fab2547-9779-11d1-b886-00c04fb9618a"); pub const IID_IPrepareInfo2 = &IID_IPrepareInfo2_Value; pub const IPrepareInfo2 = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, GetPrepareInfoSize: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IPrepareInfo2, pcbPrepInfo: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IPrepareInfo2, pcbPrepInfo: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetPrepareInfo: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IPrepareInfo2, cbPrepareInfo: u32, pPrepInfo: [*:0]u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IPrepareInfo2, cbPrepareInfo: u32, pPrepInfo: [*:0]u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPrepareInfo2_GetPrepareInfoSize(self: *const T, pcbPrepInfo: ?*u32) HRESULT { return @as(*const IPrepareInfo2.VTable, @ptrCast(self.vtable)).GetPrepareInfoSize(@as(*const IPrepareInfo2, @ptrCast(self)), pcbPrepInfo); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPrepareInfo2_GetPrepareInfo(self: *const T, cbPrepareInfo: u32, pPrepInfo: [*:0]u8) HRESULT { return @as(*const IPrepareInfo2.VTable, @ptrCast(self.vtable)).GetPrepareInfo(@as(*const IPrepareInfo2, @ptrCast(self)), cbPrepareInfo, pPrepInfo); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IGetDispenser_Value = Guid.initString("c23cc370-87ef-11ce-8081-0080c758527e"); pub const IID_IGetDispenser = &IID_IGetDispenser_Value; pub const IGetDispenser = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, GetDispenser: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IGetDispenser, iid: ?*const Guid, ppvObject: ?*?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IGetDispenser, iid: ?*const Guid, ppvObject: ?*?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IGetDispenser_GetDispenser(self: *const T, iid: ?*const Guid, ppvObject: ?*?*anyopaque) HRESULT { return @as(*const IGetDispenser.VTable, @ptrCast(self.vtable)).GetDispenser(@as(*const IGetDispenser, @ptrCast(self)), iid, ppvObject); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_ITransactionVoterBallotAsync2_Value = Guid.initString("5433376c-414d-11d3-b206-00c04fc2f3ef"); pub const IID_ITransactionVoterBallotAsync2 = &IID_ITransactionVoterBallotAsync2_Value; pub const ITransactionVoterBallotAsync2 = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, VoteRequestDone: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ITransactionVoterBallotAsync2, hr: HRESULT, pboidReason: ?*BOID, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ITransactionVoterBallotAsync2, hr: HRESULT, pboidReason: ?*BOID, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITransactionVoterBallotAsync2_VoteRequestDone(self: *const T, hr: HRESULT, pboidReason: ?*BOID) HRESULT { return @as(*const ITransactionVoterBallotAsync2.VTable, @ptrCast(self.vtable)).VoteRequestDone(@as(*const ITransactionVoterBallotAsync2, @ptrCast(self)), hr, pboidReason); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_ITransactionVoterNotifyAsync2_Value = Guid.initString("5433376b-414d-11d3-b206-00c04fc2f3ef"); pub const IID_ITransactionVoterNotifyAsync2 = &IID_ITransactionVoterNotifyAsync2_Value; pub const ITransactionVoterNotifyAsync2 = extern struct { pub const VTable = extern struct { base: ITransactionOutcomeEvents.VTable, VoteRequest: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ITransactionVoterNotifyAsync2, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ITransactionVoterNotifyAsync2, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace ITransactionOutcomeEvents.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITransactionVoterNotifyAsync2_VoteRequest(self: *const T) HRESULT { return @as(*const ITransactionVoterNotifyAsync2.VTable, @ptrCast(self.vtable)).VoteRequest(@as(*const ITransactionVoterNotifyAsync2, @ptrCast(self))); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_ITransactionVoterFactory2_Value = Guid.initString("5433376a-414d-11d3-b206-00c04fc2f3ef"); pub const IID_ITransactionVoterFactory2 = &IID_ITransactionVoterFactory2_Value; pub const ITransactionVoterFactory2 = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, Create: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ITransactionVoterFactory2, pTransaction: ?*ITransaction, pVoterNotify: ?*ITransactionVoterNotifyAsync2, ppVoterBallot: ?*?*ITransactionVoterBallotAsync2, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ITransactionVoterFactory2, pTransaction: ?*ITransaction, pVoterNotify: ?*ITransactionVoterNotifyAsync2, ppVoterBallot: ?*?*ITransactionVoterBallotAsync2, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITransactionVoterFactory2_Create(self: *const T, pTransaction: ?*ITransaction, pVoterNotify: ?*ITransactionVoterNotifyAsync2, ppVoterBallot: ?*?*ITransactionVoterBallotAsync2) HRESULT { return @as(*const ITransactionVoterFactory2.VTable, @ptrCast(self.vtable)).Create(@as(*const ITransactionVoterFactory2, @ptrCast(self)), pTransaction, pVoterNotify, ppVoterBallot); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_ITransactionPhase0EnlistmentAsync_Value = Guid.initString("82dc88e1-a954-11d1-8f88-00600895e7d5"); pub const IID_ITransactionPhase0EnlistmentAsync = &IID_ITransactionPhase0EnlistmentAsync_Value; pub const ITransactionPhase0EnlistmentAsync = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, Enable: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ITransactionPhase0EnlistmentAsync, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ITransactionPhase0EnlistmentAsync, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, WaitForEnlistment: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ITransactionPhase0EnlistmentAsync, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ITransactionPhase0EnlistmentAsync, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Phase0Done: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ITransactionPhase0EnlistmentAsync, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ITransactionPhase0EnlistmentAsync, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Unenlist: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ITransactionPhase0EnlistmentAsync, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ITransactionPhase0EnlistmentAsync, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetTransaction: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ITransactionPhase0EnlistmentAsync, ppITransaction: ?*?*ITransaction, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ITransactionPhase0EnlistmentAsync, ppITransaction: ?*?*ITransaction, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITransactionPhase0EnlistmentAsync_Enable(self: *const T) HRESULT { return @as(*const ITransactionPhase0EnlistmentAsync.VTable, @ptrCast(self.vtable)).Enable(@as(*const ITransactionPhase0EnlistmentAsync, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITransactionPhase0EnlistmentAsync_WaitForEnlistment(self: *const T) HRESULT { return @as(*const ITransactionPhase0EnlistmentAsync.VTable, @ptrCast(self.vtable)).WaitForEnlistment(@as(*const ITransactionPhase0EnlistmentAsync, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITransactionPhase0EnlistmentAsync_Phase0Done(self: *const T) HRESULT { return @as(*const ITransactionPhase0EnlistmentAsync.VTable, @ptrCast(self.vtable)).Phase0Done(@as(*const ITransactionPhase0EnlistmentAsync, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITransactionPhase0EnlistmentAsync_Unenlist(self: *const T) HRESULT { return @as(*const ITransactionPhase0EnlistmentAsync.VTable, @ptrCast(self.vtable)).Unenlist(@as(*const ITransactionPhase0EnlistmentAsync, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITransactionPhase0EnlistmentAsync_GetTransaction(self: *const T, ppITransaction: ?*?*ITransaction) HRESULT { return @as(*const ITransactionPhase0EnlistmentAsync.VTable, @ptrCast(self.vtable)).GetTransaction(@as(*const ITransactionPhase0EnlistmentAsync, @ptrCast(self)), ppITransaction); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_ITransactionPhase0NotifyAsync_Value = Guid.initString("ef081809-0c76-11d2-87a6-00c04f990f34"); pub const IID_ITransactionPhase0NotifyAsync = &IID_ITransactionPhase0NotifyAsync_Value; pub const ITransactionPhase0NotifyAsync = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, Phase0Request: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ITransactionPhase0NotifyAsync, fAbortingHint: BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ITransactionPhase0NotifyAsync, fAbortingHint: BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, EnlistCompleted: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ITransactionPhase0NotifyAsync, status: HRESULT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ITransactionPhase0NotifyAsync, status: HRESULT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITransactionPhase0NotifyAsync_Phase0Request(self: *const T, fAbortingHint: BOOL) HRESULT { return @as(*const ITransactionPhase0NotifyAsync.VTable, @ptrCast(self.vtable)).Phase0Request(@as(*const ITransactionPhase0NotifyAsync, @ptrCast(self)), fAbortingHint); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITransactionPhase0NotifyAsync_EnlistCompleted(self: *const T, status: HRESULT) HRESULT { return @as(*const ITransactionPhase0NotifyAsync.VTable, @ptrCast(self.vtable)).EnlistCompleted(@as(*const ITransactionPhase0NotifyAsync, @ptrCast(self)), status); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_ITransactionPhase0Factory_Value = Guid.initString("82dc88e0-a954-11d1-8f88-00600895e7d5"); pub const IID_ITransactionPhase0Factory = &IID_ITransactionPhase0Factory_Value; pub const ITransactionPhase0Factory = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, Create: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ITransactionPhase0Factory, pPhase0Notify: ?*ITransactionPhase0NotifyAsync, ppPhase0Enlistment: ?*?*ITransactionPhase0EnlistmentAsync, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ITransactionPhase0Factory, pPhase0Notify: ?*ITransactionPhase0NotifyAsync, ppPhase0Enlistment: ?*?*ITransactionPhase0EnlistmentAsync, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITransactionPhase0Factory_Create(self: *const T, pPhase0Notify: ?*ITransactionPhase0NotifyAsync, ppPhase0Enlistment: ?*?*ITransactionPhase0EnlistmentAsync) HRESULT { return @as(*const ITransactionPhase0Factory.VTable, @ptrCast(self.vtable)).Create(@as(*const ITransactionPhase0Factory, @ptrCast(self)), pPhase0Notify, ppPhase0Enlistment); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_ITransactionTransmitter_Value = Guid.initString("59313e01-b36c-11cf-a539-00aa006887c3"); pub const IID_ITransactionTransmitter = &IID_ITransactionTransmitter_Value; pub const ITransactionTransmitter = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, Set: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ITransactionTransmitter, pTransaction: ?*ITransaction, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ITransactionTransmitter, pTransaction: ?*ITransaction, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetPropagationTokenSize: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ITransactionTransmitter, pcbToken: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ITransactionTransmitter, pcbToken: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, MarshalPropagationToken: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ITransactionTransmitter, cbToken: u32, rgbToken: [*:0]u8, pcbUsed: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ITransactionTransmitter, cbToken: u32, rgbToken: [*:0]u8, pcbUsed: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, UnmarshalReturnToken: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ITransactionTransmitter, cbReturnToken: u32, rgbReturnToken: [*:0]u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ITransactionTransmitter, cbReturnToken: u32, rgbReturnToken: [*:0]u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Reset: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ITransactionTransmitter, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ITransactionTransmitter, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITransactionTransmitter_Set(self: *const T, pTransaction: ?*ITransaction) HRESULT { return @as(*const ITransactionTransmitter.VTable, @ptrCast(self.vtable)).Set(@as(*const ITransactionTransmitter, @ptrCast(self)), pTransaction); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITransactionTransmitter_GetPropagationTokenSize(self: *const T, pcbToken: ?*u32) HRESULT { return @as(*const ITransactionTransmitter.VTable, @ptrCast(self.vtable)).GetPropagationTokenSize(@as(*const ITransactionTransmitter, @ptrCast(self)), pcbToken); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITransactionTransmitter_MarshalPropagationToken(self: *const T, cbToken: u32, rgbToken: [*:0]u8, pcbUsed: ?*u32) HRESULT { return @as(*const ITransactionTransmitter.VTable, @ptrCast(self.vtable)).MarshalPropagationToken(@as(*const ITransactionTransmitter, @ptrCast(self)), cbToken, rgbToken, pcbUsed); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITransactionTransmitter_UnmarshalReturnToken(self: *const T, cbReturnToken: u32, rgbReturnToken: [*:0]u8) HRESULT { return @as(*const ITransactionTransmitter.VTable, @ptrCast(self.vtable)).UnmarshalReturnToken(@as(*const ITransactionTransmitter, @ptrCast(self)), cbReturnToken, rgbReturnToken); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITransactionTransmitter_Reset(self: *const T) HRESULT { return @as(*const ITransactionTransmitter.VTable, @ptrCast(self.vtable)).Reset(@as(*const ITransactionTransmitter, @ptrCast(self))); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_ITransactionTransmitterFactory_Value = Guid.initString("59313e00-b36c-11cf-a539-00aa006887c3"); pub const IID_ITransactionTransmitterFactory = &IID_ITransactionTransmitterFactory_Value; pub const ITransactionTransmitterFactory = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, Create: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ITransactionTransmitterFactory, ppTransmitter: ?*?*ITransactionTransmitter, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ITransactionTransmitterFactory, ppTransmitter: ?*?*ITransactionTransmitter, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITransactionTransmitterFactory_Create(self: *const T, ppTransmitter: ?*?*ITransactionTransmitter) HRESULT { return @as(*const ITransactionTransmitterFactory.VTable, @ptrCast(self.vtable)).Create(@as(*const ITransactionTransmitterFactory, @ptrCast(self)), ppTransmitter); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_ITransactionReceiver_Value = Guid.initString("59313e03-b36c-11cf-a539-00aa006887c3"); pub const IID_ITransactionReceiver = &IID_ITransactionReceiver_Value; pub const ITransactionReceiver = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, UnmarshalPropagationToken: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ITransactionReceiver, cbToken: u32, rgbToken: [*:0]u8, ppTransaction: ?*?*ITransaction, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ITransactionReceiver, cbToken: u32, rgbToken: [*:0]u8, ppTransaction: ?*?*ITransaction, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetReturnTokenSize: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ITransactionReceiver, pcbReturnToken: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ITransactionReceiver, pcbReturnToken: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, MarshalReturnToken: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ITransactionReceiver, cbReturnToken: u32, rgbReturnToken: [*:0]u8, pcbUsed: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ITransactionReceiver, cbReturnToken: u32, rgbReturnToken: [*:0]u8, pcbUsed: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Reset: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ITransactionReceiver, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ITransactionReceiver, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITransactionReceiver_UnmarshalPropagationToken(self: *const T, cbToken: u32, rgbToken: [*:0]u8, ppTransaction: ?*?*ITransaction) HRESULT { return @as(*const ITransactionReceiver.VTable, @ptrCast(self.vtable)).UnmarshalPropagationToken(@as(*const ITransactionReceiver, @ptrCast(self)), cbToken, rgbToken, ppTransaction); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITransactionReceiver_GetReturnTokenSize(self: *const T, pcbReturnToken: ?*u32) HRESULT { return @as(*const ITransactionReceiver.VTable, @ptrCast(self.vtable)).GetReturnTokenSize(@as(*const ITransactionReceiver, @ptrCast(self)), pcbReturnToken); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITransactionReceiver_MarshalReturnToken(self: *const T, cbReturnToken: u32, rgbReturnToken: [*:0]u8, pcbUsed: ?*u32) HRESULT { return @as(*const ITransactionReceiver.VTable, @ptrCast(self.vtable)).MarshalReturnToken(@as(*const ITransactionReceiver, @ptrCast(self)), cbReturnToken, rgbReturnToken, pcbUsed); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITransactionReceiver_Reset(self: *const T) HRESULT { return @as(*const ITransactionReceiver.VTable, @ptrCast(self.vtable)).Reset(@as(*const ITransactionReceiver, @ptrCast(self))); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_ITransactionReceiverFactory_Value = Guid.initString("59313e02-b36c-11cf-a539-00aa006887c3"); pub const IID_ITransactionReceiverFactory = &IID_ITransactionReceiverFactory_Value; pub const ITransactionReceiverFactory = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, Create: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ITransactionReceiverFactory, ppReceiver: ?*?*ITransactionReceiver, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ITransactionReceiverFactory, ppReceiver: ?*?*ITransactionReceiver, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITransactionReceiverFactory_Create(self: *const T, ppReceiver: ?*?*ITransactionReceiver) HRESULT { return @as(*const ITransactionReceiverFactory.VTable, @ptrCast(self.vtable)).Create(@as(*const ITransactionReceiverFactory, @ptrCast(self)), ppReceiver); } }; } pub usingnamespace MethodMixin(@This()); }; pub const _ProxyConfigParams = extern struct { wcThreadsMax: u16, }; const IID_IDtcLuConfigure_Value = Guid.initString("4131e760-1aea-11d0-944b-00a0c905416e"); pub const IID_IDtcLuConfigure = &IID_IDtcLuConfigure_Value; pub const IDtcLuConfigure = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, Add: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDtcLuConfigure, pucLuPair: [*:0]u8, cbLuPair: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDtcLuConfigure, pucLuPair: [*:0]u8, cbLuPair: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Delete: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDtcLuConfigure, pucLuPair: [*:0]u8, cbLuPair: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDtcLuConfigure, pucLuPair: [*:0]u8, cbLuPair: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDtcLuConfigure_Add(self: *const T, pucLuPair: [*:0]u8, cbLuPair: u32) HRESULT { return @as(*const IDtcLuConfigure.VTable, @ptrCast(self.vtable)).Add(@as(*const IDtcLuConfigure, @ptrCast(self)), pucLuPair, cbLuPair); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDtcLuConfigure_Delete(self: *const T, pucLuPair: [*:0]u8, cbLuPair: u32) HRESULT { return @as(*const IDtcLuConfigure.VTable, @ptrCast(self.vtable)).Delete(@as(*const IDtcLuConfigure, @ptrCast(self)), pucLuPair, cbLuPair); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IDtcLuRecovery_Value = Guid.initString("ac2b8ad2-d6f0-11d0-b386-00a0c9083365"); pub const IID_IDtcLuRecovery = &IID_IDtcLuRecovery_Value; pub const IDtcLuRecovery = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); }; } pub usingnamespace MethodMixin(@This()); }; const IID_IDtcLuRecoveryFactory_Value = Guid.initString("4131e762-1aea-11d0-944b-00a0c905416e"); pub const IID_IDtcLuRecoveryFactory = &IID_IDtcLuRecoveryFactory_Value; pub const IDtcLuRecoveryFactory = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, Create: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDtcLuRecoveryFactory, pucLuPair: [*:0]u8, cbLuPair: u32, ppRecovery: ?*?*IDtcLuRecovery, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDtcLuRecoveryFactory, pucLuPair: [*:0]u8, cbLuPair: u32, ppRecovery: ?*?*IDtcLuRecovery, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDtcLuRecoveryFactory_Create(self: *const T, pucLuPair: [*:0]u8, cbLuPair: u32, ppRecovery: ?*?*IDtcLuRecovery) HRESULT { return @as(*const IDtcLuRecoveryFactory.VTable, @ptrCast(self.vtable)).Create(@as(*const IDtcLuRecoveryFactory, @ptrCast(self)), pucLuPair, cbLuPair, ppRecovery); } }; } pub usingnamespace MethodMixin(@This()); }; pub const _DtcLu_LocalRecovery_Work = enum(i32) { CHECKLUSTATUS = 1, TRANS = 2, TMDOWN = 3, }; pub const DTCINITIATEDRECOVERYWORK_CHECKLUSTATUS = _DtcLu_LocalRecovery_Work.CHECKLUSTATUS; pub const DTCINITIATEDRECOVERYWORK_TRANS = _DtcLu_LocalRecovery_Work.TRANS; pub const DTCINITIATEDRECOVERYWORK_TMDOWN = _DtcLu_LocalRecovery_Work.TMDOWN; pub const _DtcLu_Xln = enum(i32) { COLD = 1, WARM = 2, }; pub const DTCLUXLN_COLD = _DtcLu_Xln.COLD; pub const DTCLUXLN_WARM = _DtcLu_Xln.WARM; pub const _DtcLu_Xln_Confirmation = enum(i32) { CONFIRM = 1, LOGNAMEMISMATCH = 2, COLDWARMMISMATCH = 3, OBSOLETE = 4, }; pub const DTCLUXLNCONFIRMATION_CONFIRM = _DtcLu_Xln_Confirmation.CONFIRM; pub const DTCLUXLNCONFIRMATION_LOGNAMEMISMATCH = _DtcLu_Xln_Confirmation.LOGNAMEMISMATCH; pub const DTCLUXLNCONFIRMATION_COLDWARMMISMATCH = _DtcLu_Xln_Confirmation.COLDWARMMISMATCH; pub const DTCLUXLNCONFIRMATION_OBSOLETE = _DtcLu_Xln_Confirmation.OBSOLETE; pub const _DtcLu_Xln_Response = enum(i32) { OK_SENDOURXLNBACK = 1, OK_SENDCONFIRMATION = 2, LOGNAMEMISMATCH = 3, COLDWARMMISMATCH = 4, }; pub const DTCLUXLNRESPONSE_OK_SENDOURXLNBACK = _DtcLu_Xln_Response.OK_SENDOURXLNBACK; pub const DTCLUXLNRESPONSE_OK_SENDCONFIRMATION = _DtcLu_Xln_Response.OK_SENDCONFIRMATION; pub const DTCLUXLNRESPONSE_LOGNAMEMISMATCH = _DtcLu_Xln_Response.LOGNAMEMISMATCH; pub const DTCLUXLNRESPONSE_COLDWARMMISMATCH = _DtcLu_Xln_Response.COLDWARMMISMATCH; pub const _DtcLu_Xln_Error = enum(i32) { PROTOCOL = 1, LOGNAMEMISMATCH = 2, COLDWARMMISMATCH = 3, }; pub const DTCLUXLNERROR_PROTOCOL = _DtcLu_Xln_Error.PROTOCOL; pub const DTCLUXLNERROR_LOGNAMEMISMATCH = _DtcLu_Xln_Error.LOGNAMEMISMATCH; pub const DTCLUXLNERROR_COLDWARMMISMATCH = _DtcLu_Xln_Error.COLDWARMMISMATCH; pub const _DtcLu_CompareState = enum(i32) { COMMITTED = 1, HEURISTICCOMMITTED = 2, HEURISTICMIXED = 3, HEURISTICRESET = 4, INDOUBT = 5, RESET = 6, }; pub const DTCLUCOMPARESTATE_COMMITTED = _DtcLu_CompareState.COMMITTED; pub const DTCLUCOMPARESTATE_HEURISTICCOMMITTED = _DtcLu_CompareState.HEURISTICCOMMITTED; pub const DTCLUCOMPARESTATE_HEURISTICMIXED = _DtcLu_CompareState.HEURISTICMIXED; pub const DTCLUCOMPARESTATE_HEURISTICRESET = _DtcLu_CompareState.HEURISTICRESET; pub const DTCLUCOMPARESTATE_INDOUBT = _DtcLu_CompareState.INDOUBT; pub const DTCLUCOMPARESTATE_RESET = _DtcLu_CompareState.RESET; pub const _DtcLu_CompareStates_Confirmation = enum(i32) { CONFIRM = 1, PROTOCOL = 2, }; pub const DTCLUCOMPARESTATESCONFIRMATION_CONFIRM = _DtcLu_CompareStates_Confirmation.CONFIRM; pub const DTCLUCOMPARESTATESCONFIRMATION_PROTOCOL = _DtcLu_CompareStates_Confirmation.PROTOCOL; pub const _DtcLu_CompareStates_Error = enum(i32) { L = 1, }; pub const DTCLUCOMPARESTATESERROR_PROTOCOL = _DtcLu_CompareStates_Error.L; pub const _DtcLu_CompareStates_Response = enum(i32) { OK = 1, PROTOCOL = 2, }; pub const DTCLUCOMPARESTATESRESPONSE_OK = _DtcLu_CompareStates_Response.OK; pub const DTCLUCOMPARESTATESRESPONSE_PROTOCOL = _DtcLu_CompareStates_Response.PROTOCOL; const IID_IDtcLuRecoveryInitiatedByDtcTransWork_Value = Guid.initString("4131e765-1aea-11d0-944b-00a0c905416e"); pub const IID_IDtcLuRecoveryInitiatedByDtcTransWork = &IID_IDtcLuRecoveryInitiatedByDtcTransWork_Value; pub const IDtcLuRecoveryInitiatedByDtcTransWork = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, GetLogNameSizes: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDtcLuRecoveryInitiatedByDtcTransWork, pcbOurLogName: ?*u32, pcbRemoteLogName: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDtcLuRecoveryInitiatedByDtcTransWork, pcbOurLogName: ?*u32, pcbRemoteLogName: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetOurXln: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDtcLuRecoveryInitiatedByDtcTransWork, pXln: ?*_DtcLu_Xln, pOurLogName: ?*u8, pRemoteLogName: ?*u8, pdwProtocol: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDtcLuRecoveryInitiatedByDtcTransWork, pXln: ?*_DtcLu_Xln, pOurLogName: ?*u8, pRemoteLogName: ?*u8, pdwProtocol: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, HandleConfirmationFromOurXln: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDtcLuRecoveryInitiatedByDtcTransWork, Confirmation: _DtcLu_Xln_Confirmation, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDtcLuRecoveryInitiatedByDtcTransWork, Confirmation: _DtcLu_Xln_Confirmation, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, HandleTheirXlnResponse: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDtcLuRecoveryInitiatedByDtcTransWork, Xln: _DtcLu_Xln, pRemoteLogName: ?*u8, cbRemoteLogName: u32, dwProtocol: u32, pConfirmation: ?*_DtcLu_Xln_Confirmation, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDtcLuRecoveryInitiatedByDtcTransWork, Xln: _DtcLu_Xln, pRemoteLogName: ?*u8, cbRemoteLogName: u32, dwProtocol: u32, pConfirmation: ?*_DtcLu_Xln_Confirmation, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, HandleErrorFromOurXln: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDtcLuRecoveryInitiatedByDtcTransWork, Error: _DtcLu_Xln_Error, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDtcLuRecoveryInitiatedByDtcTransWork, Error: _DtcLu_Xln_Error, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, CheckForCompareStates: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDtcLuRecoveryInitiatedByDtcTransWork, fCompareStates: ?*BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDtcLuRecoveryInitiatedByDtcTransWork, fCompareStates: ?*BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetOurTransIdSize: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDtcLuRecoveryInitiatedByDtcTransWork, pcbOurTransId: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDtcLuRecoveryInitiatedByDtcTransWork, pcbOurTransId: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetOurCompareStates: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDtcLuRecoveryInitiatedByDtcTransWork, pOurTransId: ?*u8, pCompareState: ?*_DtcLu_CompareState, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDtcLuRecoveryInitiatedByDtcTransWork, pOurTransId: ?*u8, pCompareState: ?*_DtcLu_CompareState, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, HandleTheirCompareStatesResponse: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDtcLuRecoveryInitiatedByDtcTransWork, CompareState: _DtcLu_CompareState, pConfirmation: ?*_DtcLu_CompareStates_Confirmation, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDtcLuRecoveryInitiatedByDtcTransWork, CompareState: _DtcLu_CompareState, pConfirmation: ?*_DtcLu_CompareStates_Confirmation, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, HandleErrorFromOurCompareStates: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDtcLuRecoveryInitiatedByDtcTransWork, Error: _DtcLu_CompareStates_Error, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDtcLuRecoveryInitiatedByDtcTransWork, Error: _DtcLu_CompareStates_Error, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, ConversationLost: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDtcLuRecoveryInitiatedByDtcTransWork, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDtcLuRecoveryInitiatedByDtcTransWork, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetRecoverySeqNum: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDtcLuRecoveryInitiatedByDtcTransWork, plRecoverySeqNum: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDtcLuRecoveryInitiatedByDtcTransWork, plRecoverySeqNum: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, ObsoleteRecoverySeqNum: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDtcLuRecoveryInitiatedByDtcTransWork, lNewRecoverySeqNum: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDtcLuRecoveryInitiatedByDtcTransWork, lNewRecoverySeqNum: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDtcLuRecoveryInitiatedByDtcTransWork_GetLogNameSizes(self: *const T, pcbOurLogName: ?*u32, pcbRemoteLogName: ?*u32) HRESULT { return @as(*const IDtcLuRecoveryInitiatedByDtcTransWork.VTable, @ptrCast(self.vtable)).GetLogNameSizes(@as(*const IDtcLuRecoveryInitiatedByDtcTransWork, @ptrCast(self)), pcbOurLogName, pcbRemoteLogName); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDtcLuRecoveryInitiatedByDtcTransWork_GetOurXln(self: *const T, pXln: ?*_DtcLu_Xln, pOurLogName: ?*u8, pRemoteLogName: ?*u8, pdwProtocol: ?*u32) HRESULT { return @as(*const IDtcLuRecoveryInitiatedByDtcTransWork.VTable, @ptrCast(self.vtable)).GetOurXln(@as(*const IDtcLuRecoveryInitiatedByDtcTransWork, @ptrCast(self)), pXln, pOurLogName, pRemoteLogName, pdwProtocol); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDtcLuRecoveryInitiatedByDtcTransWork_HandleConfirmationFromOurXln(self: *const T, Confirmation: _DtcLu_Xln_Confirmation) HRESULT { return @as(*const IDtcLuRecoveryInitiatedByDtcTransWork.VTable, @ptrCast(self.vtable)).HandleConfirmationFromOurXln(@as(*const IDtcLuRecoveryInitiatedByDtcTransWork, @ptrCast(self)), Confirmation); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDtcLuRecoveryInitiatedByDtcTransWork_HandleTheirXlnResponse(self: *const T, Xln: _DtcLu_Xln, pRemoteLogName: ?*u8, cbRemoteLogName: u32, dwProtocol: u32, pConfirmation: ?*_DtcLu_Xln_Confirmation) HRESULT { return @as(*const IDtcLuRecoveryInitiatedByDtcTransWork.VTable, @ptrCast(self.vtable)).HandleTheirXlnResponse(@as(*const IDtcLuRecoveryInitiatedByDtcTransWork, @ptrCast(self)), Xln, pRemoteLogName, cbRemoteLogName, dwProtocol, pConfirmation); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDtcLuRecoveryInitiatedByDtcTransWork_HandleErrorFromOurXln(self: *const T, Error: _DtcLu_Xln_Error) HRESULT { return @as(*const IDtcLuRecoveryInitiatedByDtcTransWork.VTable, @ptrCast(self.vtable)).HandleErrorFromOurXln(@as(*const IDtcLuRecoveryInitiatedByDtcTransWork, @ptrCast(self)), Error); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDtcLuRecoveryInitiatedByDtcTransWork_CheckForCompareStates(self: *const T, fCompareStates: ?*BOOL) HRESULT { return @as(*const IDtcLuRecoveryInitiatedByDtcTransWork.VTable, @ptrCast(self.vtable)).CheckForCompareStates(@as(*const IDtcLuRecoveryInitiatedByDtcTransWork, @ptrCast(self)), fCompareStates); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDtcLuRecoveryInitiatedByDtcTransWork_GetOurTransIdSize(self: *const T, pcbOurTransId: ?*u32) HRESULT { return @as(*const IDtcLuRecoveryInitiatedByDtcTransWork.VTable, @ptrCast(self.vtable)).GetOurTransIdSize(@as(*const IDtcLuRecoveryInitiatedByDtcTransWork, @ptrCast(self)), pcbOurTransId); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDtcLuRecoveryInitiatedByDtcTransWork_GetOurCompareStates(self: *const T, pOurTransId: ?*u8, pCompareState: ?*_DtcLu_CompareState) HRESULT { return @as(*const IDtcLuRecoveryInitiatedByDtcTransWork.VTable, @ptrCast(self.vtable)).GetOurCompareStates(@as(*const IDtcLuRecoveryInitiatedByDtcTransWork, @ptrCast(self)), pOurTransId, pCompareState); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDtcLuRecoveryInitiatedByDtcTransWork_HandleTheirCompareStatesResponse(self: *const T, CompareState: _DtcLu_CompareState, pConfirmation: ?*_DtcLu_CompareStates_Confirmation) HRESULT { return @as(*const IDtcLuRecoveryInitiatedByDtcTransWork.VTable, @ptrCast(self.vtable)).HandleTheirCompareStatesResponse(@as(*const IDtcLuRecoveryInitiatedByDtcTransWork, @ptrCast(self)), CompareState, pConfirmation); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDtcLuRecoveryInitiatedByDtcTransWork_HandleErrorFromOurCompareStates(self: *const T, Error: _DtcLu_CompareStates_Error) HRESULT { return @as(*const IDtcLuRecoveryInitiatedByDtcTransWork.VTable, @ptrCast(self.vtable)).HandleErrorFromOurCompareStates(@as(*const IDtcLuRecoveryInitiatedByDtcTransWork, @ptrCast(self)), Error); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDtcLuRecoveryInitiatedByDtcTransWork_ConversationLost(self: *const T) HRESULT { return @as(*const IDtcLuRecoveryInitiatedByDtcTransWork.VTable, @ptrCast(self.vtable)).ConversationLost(@as(*const IDtcLuRecoveryInitiatedByDtcTransWork, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDtcLuRecoveryInitiatedByDtcTransWork_GetRecoverySeqNum(self: *const T, plRecoverySeqNum: ?*i32) HRESULT { return @as(*const IDtcLuRecoveryInitiatedByDtcTransWork.VTable, @ptrCast(self.vtable)).GetRecoverySeqNum(@as(*const IDtcLuRecoveryInitiatedByDtcTransWork, @ptrCast(self)), plRecoverySeqNum); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDtcLuRecoveryInitiatedByDtcTransWork_ObsoleteRecoverySeqNum(self: *const T, lNewRecoverySeqNum: i32) HRESULT { return @as(*const IDtcLuRecoveryInitiatedByDtcTransWork.VTable, @ptrCast(self.vtable)).ObsoleteRecoverySeqNum(@as(*const IDtcLuRecoveryInitiatedByDtcTransWork, @ptrCast(self)), lNewRecoverySeqNum); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IDtcLuRecoveryInitiatedByDtcStatusWork_Value = Guid.initString("4131e766-1aea-11d0-944b-00a0c905416e"); pub const IID_IDtcLuRecoveryInitiatedByDtcStatusWork = &IID_IDtcLuRecoveryInitiatedByDtcStatusWork_Value; pub const IDtcLuRecoveryInitiatedByDtcStatusWork = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, HandleCheckLuStatus: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDtcLuRecoveryInitiatedByDtcStatusWork, lRecoverySeqNum: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDtcLuRecoveryInitiatedByDtcStatusWork, lRecoverySeqNum: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDtcLuRecoveryInitiatedByDtcStatusWork_HandleCheckLuStatus(self: *const T, lRecoverySeqNum: i32) HRESULT { return @as(*const IDtcLuRecoveryInitiatedByDtcStatusWork.VTable, @ptrCast(self.vtable)).HandleCheckLuStatus(@as(*const IDtcLuRecoveryInitiatedByDtcStatusWork, @ptrCast(self)), lRecoverySeqNum); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IDtcLuRecoveryInitiatedByDtc_Value = Guid.initString("4131e764-1aea-11d0-944b-00a0c905416e"); pub const IID_IDtcLuRecoveryInitiatedByDtc = &IID_IDtcLuRecoveryInitiatedByDtc_Value; pub const IDtcLuRecoveryInitiatedByDtc = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, GetWork: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDtcLuRecoveryInitiatedByDtc, pWork: ?*_DtcLu_LocalRecovery_Work, ppv: ?*?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDtcLuRecoveryInitiatedByDtc, pWork: ?*_DtcLu_LocalRecovery_Work, ppv: ?*?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDtcLuRecoveryInitiatedByDtc_GetWork(self: *const T, pWork: ?*_DtcLu_LocalRecovery_Work, ppv: ?*?*anyopaque) HRESULT { return @as(*const IDtcLuRecoveryInitiatedByDtc.VTable, @ptrCast(self.vtable)).GetWork(@as(*const IDtcLuRecoveryInitiatedByDtc, @ptrCast(self)), pWork, ppv); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IDtcLuRecoveryInitiatedByLuWork_Value = Guid.initString("ac2b8ad1-d6f0-11d0-b386-00a0c9083365"); pub const IID_IDtcLuRecoveryInitiatedByLuWork = &IID_IDtcLuRecoveryInitiatedByLuWork_Value; pub const IDtcLuRecoveryInitiatedByLuWork = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, HandleTheirXln: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDtcLuRecoveryInitiatedByLuWork, lRecoverySeqNum: i32, Xln: _DtcLu_Xln, pRemoteLogName: ?*u8, cbRemoteLogName: u32, pOurLogName: ?*u8, cbOurLogName: u32, dwProtocol: u32, pResponse: ?*_DtcLu_Xln_Response, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDtcLuRecoveryInitiatedByLuWork, lRecoverySeqNum: i32, Xln: _DtcLu_Xln, pRemoteLogName: ?*u8, cbRemoteLogName: u32, pOurLogName: ?*u8, cbOurLogName: u32, dwProtocol: u32, pResponse: ?*_DtcLu_Xln_Response, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetOurLogNameSize: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDtcLuRecoveryInitiatedByLuWork, pcbOurLogName: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDtcLuRecoveryInitiatedByLuWork, pcbOurLogName: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetOurXln: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDtcLuRecoveryInitiatedByLuWork, pXln: ?*_DtcLu_Xln, pOurLogName: ?*u8, pdwProtocol: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDtcLuRecoveryInitiatedByLuWork, pXln: ?*_DtcLu_Xln, pOurLogName: ?*u8, pdwProtocol: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, HandleConfirmationOfOurXln: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDtcLuRecoveryInitiatedByLuWork, Confirmation: _DtcLu_Xln_Confirmation, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDtcLuRecoveryInitiatedByLuWork, Confirmation: _DtcLu_Xln_Confirmation, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, HandleTheirCompareStates: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDtcLuRecoveryInitiatedByLuWork, pRemoteTransId: ?*u8, cbRemoteTransId: u32, CompareState: _DtcLu_CompareState, pResponse: ?*_DtcLu_CompareStates_Response, pCompareState: ?*_DtcLu_CompareState, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDtcLuRecoveryInitiatedByLuWork, pRemoteTransId: ?*u8, cbRemoteTransId: u32, CompareState: _DtcLu_CompareState, pResponse: ?*_DtcLu_CompareStates_Response, pCompareState: ?*_DtcLu_CompareState, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, HandleConfirmationOfOurCompareStates: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDtcLuRecoveryInitiatedByLuWork, Confirmation: _DtcLu_CompareStates_Confirmation, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDtcLuRecoveryInitiatedByLuWork, Confirmation: _DtcLu_CompareStates_Confirmation, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, HandleErrorFromOurCompareStates: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDtcLuRecoveryInitiatedByLuWork, Error: _DtcLu_CompareStates_Error, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDtcLuRecoveryInitiatedByLuWork, Error: _DtcLu_CompareStates_Error, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, ConversationLost: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDtcLuRecoveryInitiatedByLuWork, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDtcLuRecoveryInitiatedByLuWork, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDtcLuRecoveryInitiatedByLuWork_HandleTheirXln(self: *const T, lRecoverySeqNum: i32, Xln: _DtcLu_Xln, pRemoteLogName: ?*u8, cbRemoteLogName: u32, pOurLogName: ?*u8, cbOurLogName: u32, dwProtocol: u32, pResponse: ?*_DtcLu_Xln_Response) HRESULT { return @as(*const IDtcLuRecoveryInitiatedByLuWork.VTable, @ptrCast(self.vtable)).HandleTheirXln(@as(*const IDtcLuRecoveryInitiatedByLuWork, @ptrCast(self)), lRecoverySeqNum, Xln, pRemoteLogName, cbRemoteLogName, pOurLogName, cbOurLogName, dwProtocol, pResponse); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDtcLuRecoveryInitiatedByLuWork_GetOurLogNameSize(self: *const T, pcbOurLogName: ?*u32) HRESULT { return @as(*const IDtcLuRecoveryInitiatedByLuWork.VTable, @ptrCast(self.vtable)).GetOurLogNameSize(@as(*const IDtcLuRecoveryInitiatedByLuWork, @ptrCast(self)), pcbOurLogName); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDtcLuRecoveryInitiatedByLuWork_GetOurXln(self: *const T, pXln: ?*_DtcLu_Xln, pOurLogName: ?*u8, pdwProtocol: ?*u32) HRESULT { return @as(*const IDtcLuRecoveryInitiatedByLuWork.VTable, @ptrCast(self.vtable)).GetOurXln(@as(*const IDtcLuRecoveryInitiatedByLuWork, @ptrCast(self)), pXln, pOurLogName, pdwProtocol); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDtcLuRecoveryInitiatedByLuWork_HandleConfirmationOfOurXln(self: *const T, Confirmation: _DtcLu_Xln_Confirmation) HRESULT { return @as(*const IDtcLuRecoveryInitiatedByLuWork.VTable, @ptrCast(self.vtable)).HandleConfirmationOfOurXln(@as(*const IDtcLuRecoveryInitiatedByLuWork, @ptrCast(self)), Confirmation); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDtcLuRecoveryInitiatedByLuWork_HandleTheirCompareStates(self: *const T, pRemoteTransId: ?*u8, cbRemoteTransId: u32, CompareState: _DtcLu_CompareState, pResponse: ?*_DtcLu_CompareStates_Response, pCompareState: ?*_DtcLu_CompareState) HRESULT { return @as(*const IDtcLuRecoveryInitiatedByLuWork.VTable, @ptrCast(self.vtable)).HandleTheirCompareStates(@as(*const IDtcLuRecoveryInitiatedByLuWork, @ptrCast(self)), pRemoteTransId, cbRemoteTransId, CompareState, pResponse, pCompareState); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDtcLuRecoveryInitiatedByLuWork_HandleConfirmationOfOurCompareStates(self: *const T, Confirmation: _DtcLu_CompareStates_Confirmation) HRESULT { return @as(*const IDtcLuRecoveryInitiatedByLuWork.VTable, @ptrCast(self.vtable)).HandleConfirmationOfOurCompareStates(@as(*const IDtcLuRecoveryInitiatedByLuWork, @ptrCast(self)), Confirmation); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDtcLuRecoveryInitiatedByLuWork_HandleErrorFromOurCompareStates(self: *const T, Error: _DtcLu_CompareStates_Error) HRESULT { return @as(*const IDtcLuRecoveryInitiatedByLuWork.VTable, @ptrCast(self.vtable)).HandleErrorFromOurCompareStates(@as(*const IDtcLuRecoveryInitiatedByLuWork, @ptrCast(self)), Error); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDtcLuRecoveryInitiatedByLuWork_ConversationLost(self: *const T) HRESULT { return @as(*const IDtcLuRecoveryInitiatedByLuWork.VTable, @ptrCast(self.vtable)).ConversationLost(@as(*const IDtcLuRecoveryInitiatedByLuWork, @ptrCast(self))); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IDtcLuRecoveryInitiatedByLu_Value = Guid.initString("4131e768-1aea-11d0-944b-00a0c905416e"); pub const IID_IDtcLuRecoveryInitiatedByLu = &IID_IDtcLuRecoveryInitiatedByLu_Value; pub const IDtcLuRecoveryInitiatedByLu = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, GetObjectToHandleWorkFromLu: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDtcLuRecoveryInitiatedByLu, ppWork: ?*?*IDtcLuRecoveryInitiatedByLuWork, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDtcLuRecoveryInitiatedByLu, ppWork: ?*?*IDtcLuRecoveryInitiatedByLuWork, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDtcLuRecoveryInitiatedByLu_GetObjectToHandleWorkFromLu(self: *const T, ppWork: ?*?*IDtcLuRecoveryInitiatedByLuWork) HRESULT { return @as(*const IDtcLuRecoveryInitiatedByLu.VTable, @ptrCast(self.vtable)).GetObjectToHandleWorkFromLu(@as(*const IDtcLuRecoveryInitiatedByLu, @ptrCast(self)), ppWork); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IDtcLuRmEnlistment_Value = Guid.initString("4131e769-1aea-11d0-944b-00a0c905416e"); pub const IID_IDtcLuRmEnlistment = &IID_IDtcLuRmEnlistment_Value; pub const IDtcLuRmEnlistment = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, Unplug: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDtcLuRmEnlistment, fConversationLost: BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDtcLuRmEnlistment, fConversationLost: BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, BackedOut: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDtcLuRmEnlistment, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDtcLuRmEnlistment, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, BackOut: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDtcLuRmEnlistment, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDtcLuRmEnlistment, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Committed: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDtcLuRmEnlistment, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDtcLuRmEnlistment, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Forget: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDtcLuRmEnlistment, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDtcLuRmEnlistment, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, RequestCommit: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDtcLuRmEnlistment, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDtcLuRmEnlistment, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDtcLuRmEnlistment_Unplug(self: *const T, fConversationLost: BOOL) HRESULT { return @as(*const IDtcLuRmEnlistment.VTable, @ptrCast(self.vtable)).Unplug(@as(*const IDtcLuRmEnlistment, @ptrCast(self)), fConversationLost); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDtcLuRmEnlistment_BackedOut(self: *const T) HRESULT { return @as(*const IDtcLuRmEnlistment.VTable, @ptrCast(self.vtable)).BackedOut(@as(*const IDtcLuRmEnlistment, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDtcLuRmEnlistment_BackOut(self: *const T) HRESULT { return @as(*const IDtcLuRmEnlistment.VTable, @ptrCast(self.vtable)).BackOut(@as(*const IDtcLuRmEnlistment, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDtcLuRmEnlistment_Committed(self: *const T) HRESULT { return @as(*const IDtcLuRmEnlistment.VTable, @ptrCast(self.vtable)).Committed(@as(*const IDtcLuRmEnlistment, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDtcLuRmEnlistment_Forget(self: *const T) HRESULT { return @as(*const IDtcLuRmEnlistment.VTable, @ptrCast(self.vtable)).Forget(@as(*const IDtcLuRmEnlistment, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDtcLuRmEnlistment_RequestCommit(self: *const T) HRESULT { return @as(*const IDtcLuRmEnlistment.VTable, @ptrCast(self.vtable)).RequestCommit(@as(*const IDtcLuRmEnlistment, @ptrCast(self))); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IDtcLuRmEnlistmentSink_Value = Guid.initString("4131e770-1aea-11d0-944b-00a0c905416e"); pub const IID_IDtcLuRmEnlistmentSink = &IID_IDtcLuRmEnlistmentSink_Value; pub const IDtcLuRmEnlistmentSink = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, AckUnplug: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDtcLuRmEnlistmentSink, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDtcLuRmEnlistmentSink, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, TmDown: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDtcLuRmEnlistmentSink, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDtcLuRmEnlistmentSink, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SessionLost: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDtcLuRmEnlistmentSink, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDtcLuRmEnlistmentSink, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, BackedOut: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDtcLuRmEnlistmentSink, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDtcLuRmEnlistmentSink, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, BackOut: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDtcLuRmEnlistmentSink, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDtcLuRmEnlistmentSink, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Committed: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDtcLuRmEnlistmentSink, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDtcLuRmEnlistmentSink, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Forget: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDtcLuRmEnlistmentSink, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDtcLuRmEnlistmentSink, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Prepare: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDtcLuRmEnlistmentSink, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDtcLuRmEnlistmentSink, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, RequestCommit: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDtcLuRmEnlistmentSink, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDtcLuRmEnlistmentSink, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDtcLuRmEnlistmentSink_AckUnplug(self: *const T) HRESULT { return @as(*const IDtcLuRmEnlistmentSink.VTable, @ptrCast(self.vtable)).AckUnplug(@as(*const IDtcLuRmEnlistmentSink, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDtcLuRmEnlistmentSink_TmDown(self: *const T) HRESULT { return @as(*const IDtcLuRmEnlistmentSink.VTable, @ptrCast(self.vtable)).TmDown(@as(*const IDtcLuRmEnlistmentSink, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDtcLuRmEnlistmentSink_SessionLost(self: *const T) HRESULT { return @as(*const IDtcLuRmEnlistmentSink.VTable, @ptrCast(self.vtable)).SessionLost(@as(*const IDtcLuRmEnlistmentSink, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDtcLuRmEnlistmentSink_BackedOut(self: *const T) HRESULT { return @as(*const IDtcLuRmEnlistmentSink.VTable, @ptrCast(self.vtable)).BackedOut(@as(*const IDtcLuRmEnlistmentSink, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDtcLuRmEnlistmentSink_BackOut(self: *const T) HRESULT { return @as(*const IDtcLuRmEnlistmentSink.VTable, @ptrCast(self.vtable)).BackOut(@as(*const IDtcLuRmEnlistmentSink, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDtcLuRmEnlistmentSink_Committed(self: *const T) HRESULT { return @as(*const IDtcLuRmEnlistmentSink.VTable, @ptrCast(self.vtable)).Committed(@as(*const IDtcLuRmEnlistmentSink, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDtcLuRmEnlistmentSink_Forget(self: *const T) HRESULT { return @as(*const IDtcLuRmEnlistmentSink.VTable, @ptrCast(self.vtable)).Forget(@as(*const IDtcLuRmEnlistmentSink, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDtcLuRmEnlistmentSink_Prepare(self: *const T) HRESULT { return @as(*const IDtcLuRmEnlistmentSink.VTable, @ptrCast(self.vtable)).Prepare(@as(*const IDtcLuRmEnlistmentSink, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDtcLuRmEnlistmentSink_RequestCommit(self: *const T) HRESULT { return @as(*const IDtcLuRmEnlistmentSink.VTable, @ptrCast(self.vtable)).RequestCommit(@as(*const IDtcLuRmEnlistmentSink, @ptrCast(self))); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IDtcLuRmEnlistmentFactory_Value = Guid.initString("4131e771-1aea-11d0-944b-00a0c905416e"); pub const IID_IDtcLuRmEnlistmentFactory = &IID_IDtcLuRmEnlistmentFactory_Value; pub const IDtcLuRmEnlistmentFactory = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, Create: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDtcLuRmEnlistmentFactory, pucLuPair: ?*u8, cbLuPair: u32, pITransaction: ?*ITransaction, pTransId: ?*u8, cbTransId: u32, pRmEnlistmentSink: ?*IDtcLuRmEnlistmentSink, ppRmEnlistment: ?*?*IDtcLuRmEnlistment, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDtcLuRmEnlistmentFactory, pucLuPair: ?*u8, cbLuPair: u32, pITransaction: ?*ITransaction, pTransId: ?*u8, cbTransId: u32, pRmEnlistmentSink: ?*IDtcLuRmEnlistmentSink, ppRmEnlistment: ?*?*IDtcLuRmEnlistment, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDtcLuRmEnlistmentFactory_Create(self: *const T, pucLuPair: ?*u8, cbLuPair: u32, pITransaction: ?*ITransaction, pTransId: ?*u8, cbTransId: u32, pRmEnlistmentSink: ?*IDtcLuRmEnlistmentSink, ppRmEnlistment: ?*?*IDtcLuRmEnlistment) HRESULT { return @as(*const IDtcLuRmEnlistmentFactory.VTable, @ptrCast(self.vtable)).Create(@as(*const IDtcLuRmEnlistmentFactory, @ptrCast(self)), pucLuPair, cbLuPair, pITransaction, pTransId, cbTransId, pRmEnlistmentSink, ppRmEnlistment); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IDtcLuSubordinateDtc_Value = Guid.initString("4131e773-1aea-11d0-944b-00a0c905416e"); pub const IID_IDtcLuSubordinateDtc = &IID_IDtcLuSubordinateDtc_Value; pub const IDtcLuSubordinateDtc = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, Unplug: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDtcLuSubordinateDtc, fConversationLost: BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDtcLuSubordinateDtc, fConversationLost: BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, BackedOut: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDtcLuSubordinateDtc, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDtcLuSubordinateDtc, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, BackOut: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDtcLuSubordinateDtc, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDtcLuSubordinateDtc, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Committed: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDtcLuSubordinateDtc, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDtcLuSubordinateDtc, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Forget: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDtcLuSubordinateDtc, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDtcLuSubordinateDtc, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Prepare: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDtcLuSubordinateDtc, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDtcLuSubordinateDtc, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, RequestCommit: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDtcLuSubordinateDtc, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDtcLuSubordinateDtc, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDtcLuSubordinateDtc_Unplug(self: *const T, fConversationLost: BOOL) HRESULT { return @as(*const IDtcLuSubordinateDtc.VTable, @ptrCast(self.vtable)).Unplug(@as(*const IDtcLuSubordinateDtc, @ptrCast(self)), fConversationLost); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDtcLuSubordinateDtc_BackedOut(self: *const T) HRESULT { return @as(*const IDtcLuSubordinateDtc.VTable, @ptrCast(self.vtable)).BackedOut(@as(*const IDtcLuSubordinateDtc, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDtcLuSubordinateDtc_BackOut(self: *const T) HRESULT { return @as(*const IDtcLuSubordinateDtc.VTable, @ptrCast(self.vtable)).BackOut(@as(*const IDtcLuSubordinateDtc, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDtcLuSubordinateDtc_Committed(self: *const T) HRESULT { return @as(*const IDtcLuSubordinateDtc.VTable, @ptrCast(self.vtable)).Committed(@as(*const IDtcLuSubordinateDtc, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDtcLuSubordinateDtc_Forget(self: *const T) HRESULT { return @as(*const IDtcLuSubordinateDtc.VTable, @ptrCast(self.vtable)).Forget(@as(*const IDtcLuSubordinateDtc, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDtcLuSubordinateDtc_Prepare(self: *const T) HRESULT { return @as(*const IDtcLuSubordinateDtc.VTable, @ptrCast(self.vtable)).Prepare(@as(*const IDtcLuSubordinateDtc, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDtcLuSubordinateDtc_RequestCommit(self: *const T) HRESULT { return @as(*const IDtcLuSubordinateDtc.VTable, @ptrCast(self.vtable)).RequestCommit(@as(*const IDtcLuSubordinateDtc, @ptrCast(self))); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IDtcLuSubordinateDtcSink_Value = Guid.initString("4131e774-1aea-11d0-944b-00a0c905416e"); pub const IID_IDtcLuSubordinateDtcSink = &IID_IDtcLuSubordinateDtcSink_Value; pub const IDtcLuSubordinateDtcSink = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, AckUnplug: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDtcLuSubordinateDtcSink, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDtcLuSubordinateDtcSink, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, TmDown: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDtcLuSubordinateDtcSink, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDtcLuSubordinateDtcSink, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SessionLost: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDtcLuSubordinateDtcSink, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDtcLuSubordinateDtcSink, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, BackedOut: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDtcLuSubordinateDtcSink, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDtcLuSubordinateDtcSink, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, BackOut: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDtcLuSubordinateDtcSink, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDtcLuSubordinateDtcSink, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Committed: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDtcLuSubordinateDtcSink, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDtcLuSubordinateDtcSink, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Forget: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDtcLuSubordinateDtcSink, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDtcLuSubordinateDtcSink, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, RequestCommit: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDtcLuSubordinateDtcSink, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDtcLuSubordinateDtcSink, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDtcLuSubordinateDtcSink_AckUnplug(self: *const T) HRESULT { return @as(*const IDtcLuSubordinateDtcSink.VTable, @ptrCast(self.vtable)).AckUnplug(@as(*const IDtcLuSubordinateDtcSink, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDtcLuSubordinateDtcSink_TmDown(self: *const T) HRESULT { return @as(*const IDtcLuSubordinateDtcSink.VTable, @ptrCast(self.vtable)).TmDown(@as(*const IDtcLuSubordinateDtcSink, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDtcLuSubordinateDtcSink_SessionLost(self: *const T) HRESULT { return @as(*const IDtcLuSubordinateDtcSink.VTable, @ptrCast(self.vtable)).SessionLost(@as(*const IDtcLuSubordinateDtcSink, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDtcLuSubordinateDtcSink_BackedOut(self: *const T) HRESULT { return @as(*const IDtcLuSubordinateDtcSink.VTable, @ptrCast(self.vtable)).BackedOut(@as(*const IDtcLuSubordinateDtcSink, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDtcLuSubordinateDtcSink_BackOut(self: *const T) HRESULT { return @as(*const IDtcLuSubordinateDtcSink.VTable, @ptrCast(self.vtable)).BackOut(@as(*const IDtcLuSubordinateDtcSink, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDtcLuSubordinateDtcSink_Committed(self: *const T) HRESULT { return @as(*const IDtcLuSubordinateDtcSink.VTable, @ptrCast(self.vtable)).Committed(@as(*const IDtcLuSubordinateDtcSink, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDtcLuSubordinateDtcSink_Forget(self: *const T) HRESULT { return @as(*const IDtcLuSubordinateDtcSink.VTable, @ptrCast(self.vtable)).Forget(@as(*const IDtcLuSubordinateDtcSink, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDtcLuSubordinateDtcSink_RequestCommit(self: *const T) HRESULT { return @as(*const IDtcLuSubordinateDtcSink.VTable, @ptrCast(self.vtable)).RequestCommit(@as(*const IDtcLuSubordinateDtcSink, @ptrCast(self))); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IDtcLuSubordinateDtcFactory_Value = Guid.initString("4131e775-1aea-11d0-944b-00a0c905416e"); pub const IID_IDtcLuSubordinateDtcFactory = &IID_IDtcLuSubordinateDtcFactory_Value; pub const IDtcLuSubordinateDtcFactory = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, Create: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDtcLuSubordinateDtcFactory, pucLuPair: ?*u8, cbLuPair: u32, punkTransactionOuter: ?*IUnknown, isoLevel: i32, isoFlags: u32, pOptions: ?*ITransactionOptions, ppTransaction: ?*?*ITransaction, pTransId: ?*u8, cbTransId: u32, pSubordinateDtcSink: ?*IDtcLuSubordinateDtcSink, ppSubordinateDtc: ?*?*IDtcLuSubordinateDtc, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDtcLuSubordinateDtcFactory, pucLuPair: ?*u8, cbLuPair: u32, punkTransactionOuter: ?*IUnknown, isoLevel: i32, isoFlags: u32, pOptions: ?*ITransactionOptions, ppTransaction: ?*?*ITransaction, pTransId: ?*u8, cbTransId: u32, pSubordinateDtcSink: ?*IDtcLuSubordinateDtcSink, ppSubordinateDtc: ?*?*IDtcLuSubordinateDtc, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDtcLuSubordinateDtcFactory_Create(self: *const T, pucLuPair: ?*u8, cbLuPair: u32, punkTransactionOuter: ?*IUnknown, isoLevel: i32, isoFlags: u32, pOptions: ?*ITransactionOptions, ppTransaction: ?*?*ITransaction, pTransId: ?*u8, cbTransId: u32, pSubordinateDtcSink: ?*IDtcLuSubordinateDtcSink, ppSubordinateDtc: ?*?*IDtcLuSubordinateDtc) HRESULT { return @as(*const IDtcLuSubordinateDtcFactory.VTable, @ptrCast(self.vtable)).Create(@as(*const IDtcLuSubordinateDtcFactory, @ptrCast(self)), pucLuPair, cbLuPair, punkTransactionOuter, isoLevel, isoFlags, pOptions, ppTransaction, pTransId, cbTransId, pSubordinateDtcSink, ppSubordinateDtc); } }; } pub usingnamespace MethodMixin(@This()); }; //-------------------------------------------------------------------------------- // Section: Functions (4) //-------------------------------------------------------------------------------- pub extern "xolehlp" fn DtcGetTransactionManager( i_pszHost: ?PSTR, i_pszTmName: ?PSTR, i_riid: ?*const Guid, i_dwReserved1: u32, i_wcbReserved2: u16, // TODO: what to do with BytesParamIndex 4? i_pvReserved2: ?*anyopaque, o_ppvObject: ?*?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) HRESULT; pub extern "xolehlp" fn DtcGetTransactionManagerC( i_pszHost: ?PSTR, i_pszTmName: ?PSTR, i_riid: ?*const Guid, i_dwReserved1: u32, i_wcbReserved2: u16, // TODO: what to do with BytesParamIndex 4? i_pvReserved2: ?*anyopaque, o_ppvObject: ?*?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) HRESULT; pub extern "xolehlp" fn DtcGetTransactionManagerExA( i_pszHost: ?PSTR, i_pszTmName: ?PSTR, i_riid: ?*const Guid, i_grfOptions: u32, i_pvConfigParams: ?*anyopaque, o_ppvObject: ?*?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) HRESULT; pub extern "xolehlp" fn DtcGetTransactionManagerExW( i_pwszHost: ?PWSTR, i_pwszTmName: ?PWSTR, i_riid: ?*const Guid, i_grfOptions: u32, i_pvConfigParams: ?*anyopaque, o_ppvObject: ?*?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) HRESULT; //-------------------------------------------------------------------------------- // Section: Unicode Aliases (2) //-------------------------------------------------------------------------------- const thismodule = @This(); pub usingnamespace switch (@import("../zig.zig").unicode_mode) { .ansi => struct { pub const DTC_GET_TRANSACTION_MANAGER_EX_ = thismodule.DTC_GET_TRANSACTION_MANAGER_EX_A; pub const DtcGetTransactionManagerEx = thismodule.DtcGetTransactionManagerExA; }, .wide => struct { pub const DTC_GET_TRANSACTION_MANAGER_EX_ = thismodule.DTC_GET_TRANSACTION_MANAGER_EX_W; pub const DtcGetTransactionManagerEx = thismodule.DtcGetTransactionManagerExW; }, .unspecified => if (@import("builtin").is_test) struct { pub const DTC_GET_TRANSACTION_MANAGER_EX_ = *opaque {}; pub const DtcGetTransactionManagerEx = *opaque {}; } else struct { pub const DTC_GET_TRANSACTION_MANAGER_EX_ = @compileError("'DTC_GET_TRANSACTION_MANAGER_EX_' requires that UNICODE be set to true or false in the root module"); pub const DtcGetTransactionManagerEx = @compileError("'DtcGetTransactionManagerEx' requires that UNICODE be set to true or false in the root module"); }, }; //-------------------------------------------------------------------------------- // Section: Imports (10) //-------------------------------------------------------------------------------- const Guid = @import("../zig.zig").Guid; const BOOL = @import("../foundation.zig").BOOL; const CHAR = @import("../foundation.zig").CHAR; const FILETIME = @import("../foundation.zig").FILETIME; const HANDLE = @import("../foundation.zig").HANDLE; const HRESULT = @import("../foundation.zig").HRESULT; const IMoniker = @import("../system/com.zig").IMoniker; const IUnknown = @import("../system/com.zig").IUnknown; const PSTR = @import("../foundation.zig").PSTR; const PWSTR = @import("../foundation.zig").PWSTR; test { // The following '_ = <FuncPtrType>' lines are a workaround for https://github.com/ziglang/zig/issues/4476 if (@hasDecl(@This(), "DTC_GET_TRANSACTION_MANAGER")) { _ = DTC_GET_TRANSACTION_MANAGER; } if (@hasDecl(@This(), "DTC_GET_TRANSACTION_MANAGER_EX_A")) { _ = DTC_GET_TRANSACTION_MANAGER_EX_A; } if (@hasDecl(@This(), "DTC_GET_TRANSACTION_MANAGER_EX_W")) { _ = DTC_GET_TRANSACTION_MANAGER_EX_W; } if (@hasDecl(@This(), "DTC_INSTALL_CLIENT")) { _ = DTC_INSTALL_CLIENT; } if (@hasDecl(@This(), "XA_OPEN_EPT")) { _ = XA_OPEN_EPT; } if (@hasDecl(@This(), "XA_CLOSE_EPT")) { _ = XA_CLOSE_EPT; } if (@hasDecl(@This(), "XA_START_EPT")) { _ = XA_START_EPT; } if (@hasDecl(@This(), "XA_END_EPT")) { _ = XA_END_EPT; } if (@hasDecl(@This(), "XA_ROLLBACK_EPT")) { _ = XA_ROLLBACK_EPT; } if (@hasDecl(@This(), "XA_PREPARE_EPT")) { _ = XA_PREPARE_EPT; } if (@hasDecl(@This(), "XA_COMMIT_EPT")) { _ = XA_COMMIT_EPT; } if (@hasDecl(@This(), "XA_RECOVER_EPT")) { _ = XA_RECOVER_EPT; } if (@hasDecl(@This(), "XA_FORGET_EPT")) { _ = XA_FORGET_EPT; } if (@hasDecl(@This(), "XA_COMPLETE_EPT")) { _ = XA_COMPLETE_EPT; } @setEvalBranchQuota(comptime @import("std").meta.declarations(@This()).len * 3); // reference all the pub declarations if (!@import("builtin").is_test) return; inline for (comptime @import("std").meta.declarations(@This())) |decl| { if (decl.is_pub) { _ = @field(@This(), decl.name); } } }
0
repos/capy/vendor/zigwin32/win32
repos/capy/vendor/zigwin32/win32/system/time.zig
//! NOTE: this file is autogenerated, DO NOT MODIFY //-------------------------------------------------------------------------------- // Section: Constants (4) //-------------------------------------------------------------------------------- pub const TSF_Hardware = @as(u32, 1); pub const TSF_Authenticated = @as(u32, 2); pub const TSF_IPv6 = @as(u32, 4); pub const TSF_SignatureAuthenticated = @as(u32, 8); //-------------------------------------------------------------------------------- // Section: Types (2) //-------------------------------------------------------------------------------- pub const TIME_ZONE_INFORMATION = extern struct { Bias: i32, StandardName: [32]u16, StandardDate: SYSTEMTIME, StandardBias: i32, DaylightName: [32]u16, DaylightDate: SYSTEMTIME, DaylightBias: i32, }; pub const DYNAMIC_TIME_ZONE_INFORMATION = extern struct { Bias: i32, StandardName: [32]u16, StandardDate: SYSTEMTIME, StandardBias: i32, DaylightName: [32]u16, DaylightDate: SYSTEMTIME, DaylightBias: i32, TimeZoneKeyName: [128]u16, DynamicDaylightTimeDisabled: BOOLEAN, }; //-------------------------------------------------------------------------------- // Section: Functions (15) //-------------------------------------------------------------------------------- // TODO: this type is limited to platform 'windows5.0' pub extern "kernel32" fn SystemTimeToTzSpecificLocalTime( lpTimeZoneInformation: ?*const TIME_ZONE_INFORMATION, lpUniversalTime: ?*const SYSTEMTIME, lpLocalTime: ?*SYSTEMTIME, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "kernel32" fn TzSpecificLocalTimeToSystemTime( lpTimeZoneInformation: ?*const TIME_ZONE_INFORMATION, lpLocalTime: ?*const SYSTEMTIME, lpUniversalTime: ?*SYSTEMTIME, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "kernel32" fn FileTimeToSystemTime( lpFileTime: ?*const FILETIME, lpSystemTime: ?*SYSTEMTIME, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows5.0' pub extern "kernel32" fn SystemTimeToFileTime( lpSystemTime: ?*const SYSTEMTIME, lpFileTime: ?*FILETIME, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows5.0' pub extern "kernel32" fn GetTimeZoneInformation( lpTimeZoneInformation: ?*TIME_ZONE_INFORMATION, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'windows5.0' pub extern "kernel32" fn SetTimeZoneInformation( lpTimeZoneInformation: ?*const TIME_ZONE_INFORMATION, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows6.0.6000' pub extern "kernel32" fn SetDynamicTimeZoneInformation( lpTimeZoneInformation: ?*const DYNAMIC_TIME_ZONE_INFORMATION, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows6.0.6000' pub extern "kernel32" fn GetDynamicTimeZoneInformation( pTimeZoneInformation: ?*DYNAMIC_TIME_ZONE_INFORMATION, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'windows6.0.6000' pub extern "kernel32" fn GetTimeZoneInformationForYear( wYear: u16, pdtzi: ?*DYNAMIC_TIME_ZONE_INFORMATION, ptzi: ?*TIME_ZONE_INFORMATION, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows8.0' pub extern "advapi32" fn EnumDynamicTimeZoneInformation( dwIndex: u32, lpTimeZoneInformation: ?*DYNAMIC_TIME_ZONE_INFORMATION, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'windows8.0' pub extern "advapi32" fn GetDynamicTimeZoneInformationEffectiveYears( lpTimeZoneInformation: ?*const DYNAMIC_TIME_ZONE_INFORMATION, FirstYear: ?*u32, LastYear: ?*u32, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'windows6.1' pub extern "kernel32" fn SystemTimeToTzSpecificLocalTimeEx( lpTimeZoneInformation: ?*const DYNAMIC_TIME_ZONE_INFORMATION, lpUniversalTime: ?*const SYSTEMTIME, lpLocalTime: ?*SYSTEMTIME, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows6.1' pub extern "kernel32" fn TzSpecificLocalTimeToSystemTimeEx( lpTimeZoneInformation: ?*const DYNAMIC_TIME_ZONE_INFORMATION, lpLocalTime: ?*const SYSTEMTIME, lpUniversalTime: ?*SYSTEMTIME, ) callconv(@import("std").os.windows.WINAPI) BOOL; pub extern "kernel32" fn LocalFileTimeToLocalSystemTime( timeZoneInformation: ?*const TIME_ZONE_INFORMATION, localFileTime: ?*const FILETIME, localSystemTime: ?*SYSTEMTIME, ) callconv(@import("std").os.windows.WINAPI) BOOL; pub extern "kernel32" fn LocalSystemTimeToLocalFileTime( timeZoneInformation: ?*const TIME_ZONE_INFORMATION, localSystemTime: ?*const SYSTEMTIME, localFileTime: ?*FILETIME, ) callconv(@import("std").os.windows.WINAPI) BOOL; //-------------------------------------------------------------------------------- // Section: Unicode Aliases (0) //-------------------------------------------------------------------------------- const thismodule = @This(); pub usingnamespace switch (@import("../zig.zig").unicode_mode) { .ansi => struct {}, .wide => struct {}, .unspecified => if (@import("builtin").is_test) struct {} else struct {}, }; //-------------------------------------------------------------------------------- // Section: Imports (4) //-------------------------------------------------------------------------------- const BOOL = @import("../foundation.zig").BOOL; const BOOLEAN = @import("../foundation.zig").BOOLEAN; const FILETIME = @import("../foundation.zig").FILETIME; const SYSTEMTIME = @import("../foundation.zig").SYSTEMTIME; test { @setEvalBranchQuota(comptime @import("std").meta.declarations(@This()).len * 3); // reference all the pub declarations if (!@import("builtin").is_test) return; inline for (comptime @import("std").meta.declarations(@This())) |decl| { if (decl.is_pub) { _ = @field(@This(), decl.name); } } }
0
repos/capy/vendor/zigwin32/win32
repos/capy/vendor/zigwin32/win32/system/console.zig
//! NOTE: this file is autogenerated, DO NOT MODIFY //-------------------------------------------------------------------------------- // Section: Constants (65) //-------------------------------------------------------------------------------- pub const CONSOLE_TEXTMODE_BUFFER = @as(u32, 1); pub const ATTACH_PARENT_PROCESS = @as(u32, 4294967295); pub const CTRL_C_EVENT = @as(u32, 0); pub const CTRL_BREAK_EVENT = @as(u32, 1); pub const CTRL_CLOSE_EVENT = @as(u32, 2); pub const CTRL_LOGOFF_EVENT = @as(u32, 5); pub const CTRL_SHUTDOWN_EVENT = @as(u32, 6); pub const PSEUDOCONSOLE_INHERIT_CURSOR = @as(u32, 1); pub const FOREGROUND_BLUE = @as(u32, 1); pub const FOREGROUND_GREEN = @as(u32, 2); pub const FOREGROUND_RED = @as(u32, 4); pub const FOREGROUND_INTENSITY = @as(u32, 8); pub const BACKGROUND_BLUE = @as(u32, 16); pub const BACKGROUND_GREEN = @as(u32, 32); pub const BACKGROUND_RED = @as(u32, 64); pub const BACKGROUND_INTENSITY = @as(u32, 128); pub const COMMON_LVB_LEADING_BYTE = @as(u32, 256); pub const COMMON_LVB_TRAILING_BYTE = @as(u32, 512); pub const COMMON_LVB_GRID_HORIZONTAL = @as(u32, 1024); pub const COMMON_LVB_GRID_LVERTICAL = @as(u32, 2048); pub const COMMON_LVB_GRID_RVERTICAL = @as(u32, 4096); pub const COMMON_LVB_REVERSE_VIDEO = @as(u32, 16384); pub const COMMON_LVB_UNDERSCORE = @as(u32, 32768); pub const COMMON_LVB_SBCSDBCS = @as(u32, 768); pub const CONSOLE_NO_SELECTION = @as(u32, 0); pub const CONSOLE_SELECTION_IN_PROGRESS = @as(u32, 1); pub const CONSOLE_SELECTION_NOT_EMPTY = @as(u32, 2); pub const CONSOLE_MOUSE_SELECTION = @as(u32, 4); pub const CONSOLE_MOUSE_DOWN = @as(u32, 8); pub const HISTORY_NO_DUP_FLAG = @as(u32, 1); pub const CONSOLE_FULLSCREEN = @as(u32, 1); pub const CONSOLE_FULLSCREEN_HARDWARE = @as(u32, 2); pub const CONSOLE_FULLSCREEN_MODE = @as(u32, 1); pub const CONSOLE_WINDOWED_MODE = @as(u32, 2); pub const RIGHT_ALT_PRESSED = @as(u32, 1); pub const LEFT_ALT_PRESSED = @as(u32, 2); pub const RIGHT_CTRL_PRESSED = @as(u32, 4); pub const LEFT_CTRL_PRESSED = @as(u32, 8); pub const SHIFT_PRESSED = @as(u32, 16); pub const NUMLOCK_ON = @as(u32, 32); pub const SCROLLLOCK_ON = @as(u32, 64); pub const CAPSLOCK_ON = @as(u32, 128); pub const ENHANCED_KEY = @as(u32, 256); pub const NLS_DBCSCHAR = @as(u32, 65536); pub const NLS_ALPHANUMERIC = @as(u32, 0); pub const NLS_KATAKANA = @as(u32, 131072); pub const NLS_HIRAGANA = @as(u32, 262144); pub const NLS_ROMAN = @as(u32, 4194304); pub const NLS_IME_CONVERSION = @as(u32, 8388608); pub const ALTNUMPAD_BIT = @as(u32, 67108864); pub const NLS_IME_DISABLE = @as(u32, 536870912); pub const FROM_LEFT_1ST_BUTTON_PRESSED = @as(u32, 1); pub const RIGHTMOST_BUTTON_PRESSED = @as(u32, 2); pub const FROM_LEFT_2ND_BUTTON_PRESSED = @as(u32, 4); pub const FROM_LEFT_3RD_BUTTON_PRESSED = @as(u32, 8); pub const FROM_LEFT_4TH_BUTTON_PRESSED = @as(u32, 16); pub const MOUSE_MOVED = @as(u32, 1); pub const DOUBLE_CLICK = @as(u32, 2); pub const MOUSE_WHEELED = @as(u32, 4); pub const MOUSE_HWHEELED = @as(u32, 8); pub const KEY_EVENT = @as(u32, 1); pub const MOUSE_EVENT = @as(u32, 2); pub const WINDOW_BUFFER_SIZE_EVENT = @as(u32, 4); pub const MENU_EVENT = @as(u32, 8); pub const FOCUS_EVENT = @as(u32, 16); //-------------------------------------------------------------------------------- // Section: Types (21) //-------------------------------------------------------------------------------- pub const CONSOLE_MODE = enum(u32) { ENABLE_PROCESSED_INPUT = 1, ENABLE_LINE_INPUT = 2, ENABLE_ECHO_INPUT = 4, ENABLE_WINDOW_INPUT = 8, ENABLE_MOUSE_INPUT = 16, ENABLE_INSERT_MODE = 32, ENABLE_QUICK_EDIT_MODE = 64, ENABLE_EXTENDED_FLAGS = 128, ENABLE_AUTO_POSITION = 256, ENABLE_VIRTUAL_TERMINAL_INPUT = 512, // ENABLE_PROCESSED_OUTPUT = 1, this enum value conflicts with ENABLE_PROCESSED_INPUT // ENABLE_WRAP_AT_EOL_OUTPUT = 2, this enum value conflicts with ENABLE_LINE_INPUT // ENABLE_VIRTUAL_TERMINAL_PROCESSING = 4, this enum value conflicts with ENABLE_ECHO_INPUT // DISABLE_NEWLINE_AUTO_RETURN = 8, this enum value conflicts with ENABLE_WINDOW_INPUT // ENABLE_LVB_GRID_WORLDWIDE = 16, this enum value conflicts with ENABLE_MOUSE_INPUT _, pub fn initFlags(o: struct { ENABLE_PROCESSED_INPUT: u1 = 0, ENABLE_LINE_INPUT: u1 = 0, ENABLE_ECHO_INPUT: u1 = 0, ENABLE_WINDOW_INPUT: u1 = 0, ENABLE_MOUSE_INPUT: u1 = 0, ENABLE_INSERT_MODE: u1 = 0, ENABLE_QUICK_EDIT_MODE: u1 = 0, ENABLE_EXTENDED_FLAGS: u1 = 0, ENABLE_AUTO_POSITION: u1 = 0, ENABLE_VIRTUAL_TERMINAL_INPUT: u1 = 0, }) CONSOLE_MODE { return @as(CONSOLE_MODE, @enumFromInt((if (o.ENABLE_PROCESSED_INPUT == 1) @intFromEnum(CONSOLE_MODE.ENABLE_PROCESSED_INPUT) else 0) | (if (o.ENABLE_LINE_INPUT == 1) @intFromEnum(CONSOLE_MODE.ENABLE_LINE_INPUT) else 0) | (if (o.ENABLE_ECHO_INPUT == 1) @intFromEnum(CONSOLE_MODE.ENABLE_ECHO_INPUT) else 0) | (if (o.ENABLE_WINDOW_INPUT == 1) @intFromEnum(CONSOLE_MODE.ENABLE_WINDOW_INPUT) else 0) | (if (o.ENABLE_MOUSE_INPUT == 1) @intFromEnum(CONSOLE_MODE.ENABLE_MOUSE_INPUT) else 0) | (if (o.ENABLE_INSERT_MODE == 1) @intFromEnum(CONSOLE_MODE.ENABLE_INSERT_MODE) else 0) | (if (o.ENABLE_QUICK_EDIT_MODE == 1) @intFromEnum(CONSOLE_MODE.ENABLE_QUICK_EDIT_MODE) else 0) | (if (o.ENABLE_EXTENDED_FLAGS == 1) @intFromEnum(CONSOLE_MODE.ENABLE_EXTENDED_FLAGS) else 0) | (if (o.ENABLE_AUTO_POSITION == 1) @intFromEnum(CONSOLE_MODE.ENABLE_AUTO_POSITION) else 0) | (if (o.ENABLE_VIRTUAL_TERMINAL_INPUT == 1) @intFromEnum(CONSOLE_MODE.ENABLE_VIRTUAL_TERMINAL_INPUT) else 0))); } }; pub const ENABLE_PROCESSED_INPUT = CONSOLE_MODE.ENABLE_PROCESSED_INPUT; pub const ENABLE_LINE_INPUT = CONSOLE_MODE.ENABLE_LINE_INPUT; pub const ENABLE_ECHO_INPUT = CONSOLE_MODE.ENABLE_ECHO_INPUT; pub const ENABLE_WINDOW_INPUT = CONSOLE_MODE.ENABLE_WINDOW_INPUT; pub const ENABLE_MOUSE_INPUT = CONSOLE_MODE.ENABLE_MOUSE_INPUT; pub const ENABLE_INSERT_MODE = CONSOLE_MODE.ENABLE_INSERT_MODE; pub const ENABLE_QUICK_EDIT_MODE = CONSOLE_MODE.ENABLE_QUICK_EDIT_MODE; pub const ENABLE_EXTENDED_FLAGS = CONSOLE_MODE.ENABLE_EXTENDED_FLAGS; pub const ENABLE_AUTO_POSITION = CONSOLE_MODE.ENABLE_AUTO_POSITION; pub const ENABLE_VIRTUAL_TERMINAL_INPUT = CONSOLE_MODE.ENABLE_VIRTUAL_TERMINAL_INPUT; pub const ENABLE_PROCESSED_OUTPUT = CONSOLE_MODE.ENABLE_PROCESSED_INPUT; pub const ENABLE_WRAP_AT_EOL_OUTPUT = CONSOLE_MODE.ENABLE_LINE_INPUT; pub const ENABLE_VIRTUAL_TERMINAL_PROCESSING = CONSOLE_MODE.ENABLE_ECHO_INPUT; pub const DISABLE_NEWLINE_AUTO_RETURN = CONSOLE_MODE.ENABLE_WINDOW_INPUT; pub const ENABLE_LVB_GRID_WORLDWIDE = CONSOLE_MODE.ENABLE_MOUSE_INPUT; pub const STD_HANDLE = enum(u32) { INPUT_HANDLE = 4294967286, OUTPUT_HANDLE = 4294967285, ERROR_HANDLE = 4294967284, }; pub const STD_INPUT_HANDLE = STD_HANDLE.INPUT_HANDLE; pub const STD_OUTPUT_HANDLE = STD_HANDLE.OUTPUT_HANDLE; pub const STD_ERROR_HANDLE = STD_HANDLE.ERROR_HANDLE; // TODO: this type has a FreeFunc 'ClosePseudoConsole', what can Zig do with this information? pub const HPCON = *opaque {}; pub const COORD = extern struct { X: i16, Y: i16, }; pub const SMALL_RECT = extern struct { Left: i16, Top: i16, Right: i16, Bottom: i16, }; pub const KEY_EVENT_RECORD = extern struct { bKeyDown: BOOL, wRepeatCount: u16, wVirtualKeyCode: u16, wVirtualScanCode: u16, uChar: extern union { UnicodeChar: u16, AsciiChar: CHAR, }, dwControlKeyState: u32, }; pub const MOUSE_EVENT_RECORD = extern struct { dwMousePosition: COORD, dwButtonState: u32, dwControlKeyState: u32, dwEventFlags: u32, }; pub const WINDOW_BUFFER_SIZE_RECORD = extern struct { dwSize: COORD, }; pub const MENU_EVENT_RECORD = extern struct { dwCommandId: u32, }; pub const FOCUS_EVENT_RECORD = extern struct { bSetFocus: BOOL, }; pub const INPUT_RECORD = extern struct { EventType: u16, Event: extern union { KeyEvent: KEY_EVENT_RECORD, MouseEvent: MOUSE_EVENT_RECORD, WindowBufferSizeEvent: WINDOW_BUFFER_SIZE_RECORD, MenuEvent: MENU_EVENT_RECORD, FocusEvent: FOCUS_EVENT_RECORD, }, }; pub const CHAR_INFO = extern struct { Char: extern union { UnicodeChar: u16, AsciiChar: CHAR, }, Attributes: u16, }; pub const CONSOLE_FONT_INFO = extern struct { nFont: u32, dwFontSize: COORD, }; pub const CONSOLE_READCONSOLE_CONTROL = extern struct { nLength: u32, nInitialChars: u32, dwCtrlWakeupMask: u32, dwControlKeyState: u32, }; pub const PHANDLER_ROUTINE = switch (@import("builtin").zig_backend) { .stage1 => fn ( CtrlType: u32, ) callconv(@import("std").os.windows.WINAPI) BOOL, else => *const fn ( CtrlType: u32, ) callconv(@import("std").os.windows.WINAPI) BOOL, }; pub const CONSOLE_CURSOR_INFO = extern struct { dwSize: u32, bVisible: BOOL, }; pub const CONSOLE_SCREEN_BUFFER_INFO = extern struct { dwSize: COORD, dwCursorPosition: COORD, wAttributes: u16, srWindow: SMALL_RECT, dwMaximumWindowSize: COORD, }; pub const CONSOLE_SCREEN_BUFFER_INFOEX = extern struct { cbSize: u32, dwSize: COORD, dwCursorPosition: COORD, wAttributes: u16, srWindow: SMALL_RECT, dwMaximumWindowSize: COORD, wPopupAttributes: u16, bFullscreenSupported: BOOL, ColorTable: [16]u32, }; pub const CONSOLE_FONT_INFOEX = extern struct { cbSize: u32, nFont: u32, dwFontSize: COORD, FontFamily: u32, FontWeight: u32, FaceName: [32]u16, }; pub const CONSOLE_SELECTION_INFO = extern struct { dwFlags: u32, dwSelectionAnchor: COORD, srSelection: SMALL_RECT, }; pub const CONSOLE_HISTORY_INFO = extern struct { cbSize: u32, HistoryBufferSize: u32, NumberOfHistoryBuffers: u32, dwFlags: u32, }; //-------------------------------------------------------------------------------- // Section: Functions (94) //-------------------------------------------------------------------------------- pub extern "kernel32" fn AllocConsole() callconv(@import("std").os.windows.WINAPI) BOOL; pub extern "kernel32" fn FreeConsole() callconv(@import("std").os.windows.WINAPI) BOOL; pub extern "kernel32" fn AttachConsole( dwProcessId: u32, ) callconv(@import("std").os.windows.WINAPI) BOOL; pub extern "kernel32" fn GetConsoleCP() callconv(@import("std").os.windows.WINAPI) u32; pub extern "kernel32" fn GetConsoleOutputCP() callconv(@import("std").os.windows.WINAPI) u32; pub extern "kernel32" fn GetConsoleMode( hConsoleHandle: ?HANDLE, lpMode: ?*CONSOLE_MODE, ) callconv(@import("std").os.windows.WINAPI) BOOL; pub extern "kernel32" fn SetConsoleMode( hConsoleHandle: ?HANDLE, dwMode: CONSOLE_MODE, ) callconv(@import("std").os.windows.WINAPI) BOOL; pub extern "kernel32" fn GetNumberOfConsoleInputEvents( hConsoleInput: ?HANDLE, lpNumberOfEvents: ?*u32, ) callconv(@import("std").os.windows.WINAPI) BOOL; pub extern "kernel32" fn ReadConsoleInputA( hConsoleInput: ?HANDLE, lpBuffer: [*]INPUT_RECORD, nLength: u32, lpNumberOfEventsRead: ?*u32, ) callconv(@import("std").os.windows.WINAPI) BOOL; pub extern "kernel32" fn ReadConsoleInputW( hConsoleInput: ?HANDLE, lpBuffer: [*]INPUT_RECORD, nLength: u32, lpNumberOfEventsRead: ?*u32, ) callconv(@import("std").os.windows.WINAPI) BOOL; pub extern "kernel32" fn PeekConsoleInputA( hConsoleInput: ?HANDLE, lpBuffer: [*]INPUT_RECORD, nLength: u32, lpNumberOfEventsRead: ?*u32, ) callconv(@import("std").os.windows.WINAPI) BOOL; pub extern "kernel32" fn PeekConsoleInputW( hConsoleInput: ?HANDLE, lpBuffer: [*]INPUT_RECORD, nLength: u32, lpNumberOfEventsRead: ?*u32, ) callconv(@import("std").os.windows.WINAPI) BOOL; pub extern "kernel32" fn ReadConsoleA( hConsoleInput: ?HANDLE, lpBuffer: ?*anyopaque, nNumberOfCharsToRead: u32, lpNumberOfCharsRead: ?*u32, pInputControl: ?*CONSOLE_READCONSOLE_CONTROL, ) callconv(@import("std").os.windows.WINAPI) BOOL; pub extern "kernel32" fn ReadConsoleW( hConsoleInput: ?HANDLE, lpBuffer: ?*anyopaque, nNumberOfCharsToRead: u32, lpNumberOfCharsRead: ?*u32, pInputControl: ?*CONSOLE_READCONSOLE_CONTROL, ) callconv(@import("std").os.windows.WINAPI) BOOL; pub extern "kernel32" fn WriteConsoleA( hConsoleOutput: ?HANDLE, lpBuffer: [*]const u8, nNumberOfCharsToWrite: u32, lpNumberOfCharsWritten: ?*u32, lpReserved: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) BOOL; pub extern "kernel32" fn WriteConsoleW( hConsoleOutput: ?HANDLE, lpBuffer: [*]const u8, nNumberOfCharsToWrite: u32, lpNumberOfCharsWritten: ?*u32, lpReserved: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) BOOL; pub extern "kernel32" fn SetConsoleCtrlHandler( HandlerRoutine: ?PHANDLER_ROUTINE, Add: BOOL, ) callconv(@import("std").os.windows.WINAPI) BOOL; pub extern "kernel32" fn CreatePseudoConsole( size: COORD, hInput: ?HANDLE, hOutput: ?HANDLE, dwFlags: u32, phPC: ?*?HPCON, ) callconv(@import("std").os.windows.WINAPI) HRESULT; pub extern "kernel32" fn ResizePseudoConsole( hPC: ?HPCON, size: COORD, ) callconv(@import("std").os.windows.WINAPI) HRESULT; pub extern "kernel32" fn ClosePseudoConsole( hPC: ?HPCON, ) callconv(@import("std").os.windows.WINAPI) void; pub extern "kernel32" fn FillConsoleOutputCharacterA( hConsoleOutput: ?HANDLE, cCharacter: CHAR, nLength: u32, dwWriteCoord: COORD, lpNumberOfCharsWritten: ?*u32, ) callconv(@import("std").os.windows.WINAPI) BOOL; pub extern "kernel32" fn FillConsoleOutputCharacterW( hConsoleOutput: ?HANDLE, cCharacter: u16, nLength: u32, dwWriteCoord: COORD, lpNumberOfCharsWritten: ?*u32, ) callconv(@import("std").os.windows.WINAPI) BOOL; pub extern "kernel32" fn FillConsoleOutputAttribute( hConsoleOutput: ?HANDLE, wAttribute: u16, nLength: u32, dwWriteCoord: COORD, lpNumberOfAttrsWritten: ?*u32, ) callconv(@import("std").os.windows.WINAPI) BOOL; pub extern "kernel32" fn GenerateConsoleCtrlEvent( dwCtrlEvent: u32, dwProcessGroupId: u32, ) callconv(@import("std").os.windows.WINAPI) BOOL; pub extern "kernel32" fn CreateConsoleScreenBuffer( dwDesiredAccess: u32, dwShareMode: u32, lpSecurityAttributes: ?*const SECURITY_ATTRIBUTES, dwFlags: u32, lpScreenBufferData: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) ?HANDLE; pub extern "kernel32" fn SetConsoleActiveScreenBuffer( hConsoleOutput: ?HANDLE, ) callconv(@import("std").os.windows.WINAPI) BOOL; pub extern "kernel32" fn FlushConsoleInputBuffer( hConsoleInput: ?HANDLE, ) callconv(@import("std").os.windows.WINAPI) BOOL; pub extern "kernel32" fn SetConsoleCP( wCodePageID: u32, ) callconv(@import("std").os.windows.WINAPI) BOOL; pub extern "kernel32" fn SetConsoleOutputCP( wCodePageID: u32, ) callconv(@import("std").os.windows.WINAPI) BOOL; pub extern "kernel32" fn GetConsoleCursorInfo( hConsoleOutput: ?HANDLE, lpConsoleCursorInfo: ?*CONSOLE_CURSOR_INFO, ) callconv(@import("std").os.windows.WINAPI) BOOL; pub extern "kernel32" fn SetConsoleCursorInfo( hConsoleOutput: ?HANDLE, lpConsoleCursorInfo: ?*const CONSOLE_CURSOR_INFO, ) callconv(@import("std").os.windows.WINAPI) BOOL; pub extern "kernel32" fn GetConsoleScreenBufferInfo( hConsoleOutput: ?HANDLE, lpConsoleScreenBufferInfo: ?*CONSOLE_SCREEN_BUFFER_INFO, ) callconv(@import("std").os.windows.WINAPI) BOOL; pub extern "kernel32" fn GetConsoleScreenBufferInfoEx( hConsoleOutput: ?HANDLE, lpConsoleScreenBufferInfoEx: ?*CONSOLE_SCREEN_BUFFER_INFOEX, ) callconv(@import("std").os.windows.WINAPI) BOOL; pub extern "kernel32" fn SetConsoleScreenBufferInfoEx( hConsoleOutput: ?HANDLE, lpConsoleScreenBufferInfoEx: ?*CONSOLE_SCREEN_BUFFER_INFOEX, ) callconv(@import("std").os.windows.WINAPI) BOOL; pub extern "kernel32" fn SetConsoleScreenBufferSize( hConsoleOutput: ?HANDLE, dwSize: COORD, ) callconv(@import("std").os.windows.WINAPI) BOOL; pub extern "kernel32" fn SetConsoleCursorPosition( hConsoleOutput: ?HANDLE, dwCursorPosition: COORD, ) callconv(@import("std").os.windows.WINAPI) BOOL; pub extern "kernel32" fn GetLargestConsoleWindowSize( hConsoleOutput: ?HANDLE, ) callconv(@import("std").os.windows.WINAPI) COORD; pub extern "kernel32" fn SetConsoleTextAttribute( hConsoleOutput: ?HANDLE, wAttributes: u16, ) callconv(@import("std").os.windows.WINAPI) BOOL; pub extern "kernel32" fn SetConsoleWindowInfo( hConsoleOutput: ?HANDLE, bAbsolute: BOOL, lpConsoleWindow: ?*const SMALL_RECT, ) callconv(@import("std").os.windows.WINAPI) BOOL; pub extern "kernel32" fn WriteConsoleOutputCharacterA( hConsoleOutput: ?HANDLE, lpCharacter: [*:0]const u8, nLength: u32, dwWriteCoord: COORD, lpNumberOfCharsWritten: ?*u32, ) callconv(@import("std").os.windows.WINAPI) BOOL; pub extern "kernel32" fn WriteConsoleOutputCharacterW( hConsoleOutput: ?HANDLE, lpCharacter: [*:0]const u16, nLength: u32, dwWriteCoord: COORD, lpNumberOfCharsWritten: ?*u32, ) callconv(@import("std").os.windows.WINAPI) BOOL; pub extern "kernel32" fn WriteConsoleOutputAttribute( hConsoleOutput: ?HANDLE, lpAttribute: [*:0]const u16, nLength: u32, dwWriteCoord: COORD, lpNumberOfAttrsWritten: ?*u32, ) callconv(@import("std").os.windows.WINAPI) BOOL; pub extern "kernel32" fn ReadConsoleOutputCharacterA( hConsoleOutput: ?HANDLE, lpCharacter: [*:0]u8, nLength: u32, dwReadCoord: COORD, lpNumberOfCharsRead: ?*u32, ) callconv(@import("std").os.windows.WINAPI) BOOL; pub extern "kernel32" fn ReadConsoleOutputCharacterW( hConsoleOutput: ?HANDLE, lpCharacter: [*:0]u16, nLength: u32, dwReadCoord: COORD, lpNumberOfCharsRead: ?*u32, ) callconv(@import("std").os.windows.WINAPI) BOOL; pub extern "kernel32" fn ReadConsoleOutputAttribute( hConsoleOutput: ?HANDLE, lpAttribute: [*:0]u16, nLength: u32, dwReadCoord: COORD, lpNumberOfAttrsRead: ?*u32, ) callconv(@import("std").os.windows.WINAPI) BOOL; pub extern "kernel32" fn WriteConsoleInputA( hConsoleInput: ?HANDLE, lpBuffer: [*]const INPUT_RECORD, nLength: u32, lpNumberOfEventsWritten: ?*u32, ) callconv(@import("std").os.windows.WINAPI) BOOL; pub extern "kernel32" fn WriteConsoleInputW( hConsoleInput: ?HANDLE, lpBuffer: [*]const INPUT_RECORD, nLength: u32, lpNumberOfEventsWritten: ?*u32, ) callconv(@import("std").os.windows.WINAPI) BOOL; pub extern "kernel32" fn ScrollConsoleScreenBufferA( hConsoleOutput: ?HANDLE, lpScrollRectangle: ?*const SMALL_RECT, lpClipRectangle: ?*const SMALL_RECT, dwDestinationOrigin: COORD, lpFill: ?*const CHAR_INFO, ) callconv(@import("std").os.windows.WINAPI) BOOL; pub extern "kernel32" fn ScrollConsoleScreenBufferW( hConsoleOutput: ?HANDLE, lpScrollRectangle: ?*const SMALL_RECT, lpClipRectangle: ?*const SMALL_RECT, dwDestinationOrigin: COORD, lpFill: ?*const CHAR_INFO, ) callconv(@import("std").os.windows.WINAPI) BOOL; pub extern "kernel32" fn WriteConsoleOutputA( hConsoleOutput: ?HANDLE, lpBuffer: ?*const CHAR_INFO, dwBufferSize: COORD, dwBufferCoord: COORD, lpWriteRegion: ?*SMALL_RECT, ) callconv(@import("std").os.windows.WINAPI) BOOL; pub extern "kernel32" fn WriteConsoleOutputW( hConsoleOutput: ?HANDLE, lpBuffer: ?*const CHAR_INFO, dwBufferSize: COORD, dwBufferCoord: COORD, lpWriteRegion: ?*SMALL_RECT, ) callconv(@import("std").os.windows.WINAPI) BOOL; pub extern "kernel32" fn ReadConsoleOutputA( hConsoleOutput: ?HANDLE, lpBuffer: ?*CHAR_INFO, dwBufferSize: COORD, dwBufferCoord: COORD, lpReadRegion: ?*SMALL_RECT, ) callconv(@import("std").os.windows.WINAPI) BOOL; pub extern "kernel32" fn ReadConsoleOutputW( hConsoleOutput: ?HANDLE, lpBuffer: ?*CHAR_INFO, dwBufferSize: COORD, dwBufferCoord: COORD, lpReadRegion: ?*SMALL_RECT, ) callconv(@import("std").os.windows.WINAPI) BOOL; pub extern "kernel32" fn GetConsoleTitleA( lpConsoleTitle: [*:0]u8, nSize: u32, ) callconv(@import("std").os.windows.WINAPI) u32; pub extern "kernel32" fn GetConsoleTitleW( lpConsoleTitle: [*:0]u16, nSize: u32, ) callconv(@import("std").os.windows.WINAPI) u32; pub extern "kernel32" fn GetConsoleOriginalTitleA( lpConsoleTitle: [*:0]u8, nSize: u32, ) callconv(@import("std").os.windows.WINAPI) u32; pub extern "kernel32" fn GetConsoleOriginalTitleW( lpConsoleTitle: [*:0]u16, nSize: u32, ) callconv(@import("std").os.windows.WINAPI) u32; pub extern "kernel32" fn SetConsoleTitleA( lpConsoleTitle: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) BOOL; pub extern "kernel32" fn SetConsoleTitleW( lpConsoleTitle: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) BOOL; pub extern "kernel32" fn GetNumberOfConsoleMouseButtons( lpNumberOfMouseButtons: ?*u32, ) callconv(@import("std").os.windows.WINAPI) BOOL; pub extern "kernel32" fn GetConsoleFontSize( hConsoleOutput: ?HANDLE, nFont: u32, ) callconv(@import("std").os.windows.WINAPI) COORD; pub extern "kernel32" fn GetCurrentConsoleFont( hConsoleOutput: ?HANDLE, bMaximumWindow: BOOL, lpConsoleCurrentFont: ?*CONSOLE_FONT_INFO, ) callconv(@import("std").os.windows.WINAPI) BOOL; pub extern "kernel32" fn GetCurrentConsoleFontEx( hConsoleOutput: ?HANDLE, bMaximumWindow: BOOL, lpConsoleCurrentFontEx: ?*CONSOLE_FONT_INFOEX, ) callconv(@import("std").os.windows.WINAPI) BOOL; pub extern "kernel32" fn SetCurrentConsoleFontEx( hConsoleOutput: ?HANDLE, bMaximumWindow: BOOL, lpConsoleCurrentFontEx: ?*CONSOLE_FONT_INFOEX, ) callconv(@import("std").os.windows.WINAPI) BOOL; pub extern "kernel32" fn GetConsoleSelectionInfo( lpConsoleSelectionInfo: ?*CONSOLE_SELECTION_INFO, ) callconv(@import("std").os.windows.WINAPI) BOOL; pub extern "kernel32" fn GetConsoleHistoryInfo( lpConsoleHistoryInfo: ?*CONSOLE_HISTORY_INFO, ) callconv(@import("std").os.windows.WINAPI) BOOL; pub extern "kernel32" fn SetConsoleHistoryInfo( lpConsoleHistoryInfo: ?*CONSOLE_HISTORY_INFO, ) callconv(@import("std").os.windows.WINAPI) BOOL; pub extern "kernel32" fn GetConsoleDisplayMode( lpModeFlags: ?*u32, ) callconv(@import("std").os.windows.WINAPI) BOOL; pub extern "kernel32" fn SetConsoleDisplayMode( hConsoleOutput: ?HANDLE, dwFlags: u32, lpNewScreenBufferDimensions: ?*COORD, ) callconv(@import("std").os.windows.WINAPI) BOOL; pub extern "kernel32" fn GetConsoleWindow() callconv(@import("std").os.windows.WINAPI) ?HWND; pub extern "kernel32" fn AddConsoleAliasA( Source: ?PSTR, Target: ?PSTR, ExeName: ?PSTR, ) callconv(@import("std").os.windows.WINAPI) BOOL; pub extern "kernel32" fn AddConsoleAliasW( Source: ?PWSTR, Target: ?PWSTR, ExeName: ?PWSTR, ) callconv(@import("std").os.windows.WINAPI) BOOL; pub extern "kernel32" fn GetConsoleAliasA( Source: ?PSTR, TargetBuffer: [*:0]u8, TargetBufferLength: u32, ExeName: ?PSTR, ) callconv(@import("std").os.windows.WINAPI) u32; pub extern "kernel32" fn GetConsoleAliasW( Source: ?PWSTR, TargetBuffer: [*:0]u16, TargetBufferLength: u32, ExeName: ?PWSTR, ) callconv(@import("std").os.windows.WINAPI) u32; pub extern "kernel32" fn GetConsoleAliasesLengthA( ExeName: ?PSTR, ) callconv(@import("std").os.windows.WINAPI) u32; pub extern "kernel32" fn GetConsoleAliasesLengthW( ExeName: ?PWSTR, ) callconv(@import("std").os.windows.WINAPI) u32; pub extern "kernel32" fn GetConsoleAliasExesLengthA() callconv(@import("std").os.windows.WINAPI) u32; pub extern "kernel32" fn GetConsoleAliasExesLengthW() callconv(@import("std").os.windows.WINAPI) u32; pub extern "kernel32" fn GetConsoleAliasesA( AliasBuffer: [*:0]u8, AliasBufferLength: u32, ExeName: ?PSTR, ) callconv(@import("std").os.windows.WINAPI) u32; pub extern "kernel32" fn GetConsoleAliasesW( AliasBuffer: [*:0]u16, AliasBufferLength: u32, ExeName: ?PWSTR, ) callconv(@import("std").os.windows.WINAPI) u32; pub extern "kernel32" fn GetConsoleAliasExesA( ExeNameBuffer: [*:0]u8, ExeNameBufferLength: u32, ) callconv(@import("std").os.windows.WINAPI) u32; pub extern "kernel32" fn GetConsoleAliasExesW( ExeNameBuffer: [*:0]u16, ExeNameBufferLength: u32, ) callconv(@import("std").os.windows.WINAPI) u32; pub extern "kernel32" fn ExpungeConsoleCommandHistoryA( ExeName: ?PSTR, ) callconv(@import("std").os.windows.WINAPI) void; pub extern "kernel32" fn ExpungeConsoleCommandHistoryW( ExeName: ?PWSTR, ) callconv(@import("std").os.windows.WINAPI) void; pub extern "kernel32" fn SetConsoleNumberOfCommandsA( Number: u32, ExeName: ?PSTR, ) callconv(@import("std").os.windows.WINAPI) BOOL; pub extern "kernel32" fn SetConsoleNumberOfCommandsW( Number: u32, ExeName: ?PWSTR, ) callconv(@import("std").os.windows.WINAPI) BOOL; pub extern "kernel32" fn GetConsoleCommandHistoryLengthA( ExeName: ?PSTR, ) callconv(@import("std").os.windows.WINAPI) u32; pub extern "kernel32" fn GetConsoleCommandHistoryLengthW( ExeName: ?PWSTR, ) callconv(@import("std").os.windows.WINAPI) u32; pub extern "kernel32" fn GetConsoleCommandHistoryA( // TODO: what to do with BytesParamIndex 1? Commands: ?PSTR, CommandBufferLength: u32, ExeName: ?PSTR, ) callconv(@import("std").os.windows.WINAPI) u32; pub extern "kernel32" fn GetConsoleCommandHistoryW( // TODO: what to do with BytesParamIndex 1? Commands: ?PWSTR, CommandBufferLength: u32, ExeName: ?PWSTR, ) callconv(@import("std").os.windows.WINAPI) u32; pub extern "kernel32" fn GetConsoleProcessList( lpdwProcessList: [*]u32, dwProcessCount: u32, ) callconv(@import("std").os.windows.WINAPI) u32; pub extern "kernel32" fn GetStdHandle( nStdHandle: STD_HANDLE, ) callconv(@import("std").os.windows.WINAPI) HANDLE; pub extern "kernel32" fn SetStdHandle( nStdHandle: STD_HANDLE, hHandle: ?HANDLE, ) callconv(@import("std").os.windows.WINAPI) BOOL; pub extern "kernel32" fn SetStdHandleEx( nStdHandle: STD_HANDLE, hHandle: ?HANDLE, phPrevValue: ?*?HANDLE, ) callconv(@import("std").os.windows.WINAPI) BOOL; //-------------------------------------------------------------------------------- // Section: Unicode Aliases (24) //-------------------------------------------------------------------------------- const thismodule = @This(); pub usingnamespace switch (@import("../zig.zig").unicode_mode) { .ansi => struct { pub const ReadConsoleInput = thismodule.ReadConsoleInputA; pub const PeekConsoleInput = thismodule.PeekConsoleInputA; pub const ReadConsole = thismodule.ReadConsoleA; pub const WriteConsole = thismodule.WriteConsoleA; pub const FillConsoleOutputCharacter = thismodule.FillConsoleOutputCharacterA; pub const WriteConsoleOutputCharacter = thismodule.WriteConsoleOutputCharacterA; pub const ReadConsoleOutputCharacter = thismodule.ReadConsoleOutputCharacterA; pub const WriteConsoleInput = thismodule.WriteConsoleInputA; pub const ScrollConsoleScreenBuffer = thismodule.ScrollConsoleScreenBufferA; pub const WriteConsoleOutput = thismodule.WriteConsoleOutputA; pub const ReadConsoleOutput = thismodule.ReadConsoleOutputA; pub const GetConsoleTitle = thismodule.GetConsoleTitleA; pub const GetConsoleOriginalTitle = thismodule.GetConsoleOriginalTitleA; pub const SetConsoleTitle = thismodule.SetConsoleTitleA; pub const AddConsoleAlias = thismodule.AddConsoleAliasA; pub const GetConsoleAlias = thismodule.GetConsoleAliasA; pub const GetConsoleAliasesLength = thismodule.GetConsoleAliasesLengthA; pub const GetConsoleAliasExesLength = thismodule.GetConsoleAliasExesLengthA; pub const GetConsoleAliases = thismodule.GetConsoleAliasesA; pub const GetConsoleAliasExes = thismodule.GetConsoleAliasExesA; pub const ExpungeConsoleCommandHistory = thismodule.ExpungeConsoleCommandHistoryA; pub const SetConsoleNumberOfCommands = thismodule.SetConsoleNumberOfCommandsA; pub const GetConsoleCommandHistoryLength = thismodule.GetConsoleCommandHistoryLengthA; pub const GetConsoleCommandHistory = thismodule.GetConsoleCommandHistoryA; }, .wide => struct { pub const ReadConsoleInput = thismodule.ReadConsoleInputW; pub const PeekConsoleInput = thismodule.PeekConsoleInputW; pub const ReadConsole = thismodule.ReadConsoleW; pub const WriteConsole = thismodule.WriteConsoleW; pub const FillConsoleOutputCharacter = thismodule.FillConsoleOutputCharacterW; pub const WriteConsoleOutputCharacter = thismodule.WriteConsoleOutputCharacterW; pub const ReadConsoleOutputCharacter = thismodule.ReadConsoleOutputCharacterW; pub const WriteConsoleInput = thismodule.WriteConsoleInputW; pub const ScrollConsoleScreenBuffer = thismodule.ScrollConsoleScreenBufferW; pub const WriteConsoleOutput = thismodule.WriteConsoleOutputW; pub const ReadConsoleOutput = thismodule.ReadConsoleOutputW; pub const GetConsoleTitle = thismodule.GetConsoleTitleW; pub const GetConsoleOriginalTitle = thismodule.GetConsoleOriginalTitleW; pub const SetConsoleTitle = thismodule.SetConsoleTitleW; pub const AddConsoleAlias = thismodule.AddConsoleAliasW; pub const GetConsoleAlias = thismodule.GetConsoleAliasW; pub const GetConsoleAliasesLength = thismodule.GetConsoleAliasesLengthW; pub const GetConsoleAliasExesLength = thismodule.GetConsoleAliasExesLengthW; pub const GetConsoleAliases = thismodule.GetConsoleAliasesW; pub const GetConsoleAliasExes = thismodule.GetConsoleAliasExesW; pub const ExpungeConsoleCommandHistory = thismodule.ExpungeConsoleCommandHistoryW; pub const SetConsoleNumberOfCommands = thismodule.SetConsoleNumberOfCommandsW; pub const GetConsoleCommandHistoryLength = thismodule.GetConsoleCommandHistoryLengthW; pub const GetConsoleCommandHistory = thismodule.GetConsoleCommandHistoryW; }, .unspecified => if (@import("builtin").is_test) struct { pub const ReadConsoleInput = *opaque {}; pub const PeekConsoleInput = *opaque {}; pub const ReadConsole = *opaque {}; pub const WriteConsole = *opaque {}; pub const FillConsoleOutputCharacter = *opaque {}; pub const WriteConsoleOutputCharacter = *opaque {}; pub const ReadConsoleOutputCharacter = *opaque {}; pub const WriteConsoleInput = *opaque {}; pub const ScrollConsoleScreenBuffer = *opaque {}; pub const WriteConsoleOutput = *opaque {}; pub const ReadConsoleOutput = *opaque {}; pub const GetConsoleTitle = *opaque {}; pub const GetConsoleOriginalTitle = *opaque {}; pub const SetConsoleTitle = *opaque {}; pub const AddConsoleAlias = *opaque {}; pub const GetConsoleAlias = *opaque {}; pub const GetConsoleAliasesLength = *opaque {}; pub const GetConsoleAliasExesLength = *opaque {}; pub const GetConsoleAliases = *opaque {}; pub const GetConsoleAliasExes = *opaque {}; pub const ExpungeConsoleCommandHistory = *opaque {}; pub const SetConsoleNumberOfCommands = *opaque {}; pub const GetConsoleCommandHistoryLength = *opaque {}; pub const GetConsoleCommandHistory = *opaque {}; } else struct { pub const ReadConsoleInput = @compileError("'ReadConsoleInput' requires that UNICODE be set to true or false in the root module"); pub const PeekConsoleInput = @compileError("'PeekConsoleInput' requires that UNICODE be set to true or false in the root module"); pub const ReadConsole = @compileError("'ReadConsole' requires that UNICODE be set to true or false in the root module"); pub const WriteConsole = @compileError("'WriteConsole' requires that UNICODE be set to true or false in the root module"); pub const FillConsoleOutputCharacter = @compileError("'FillConsoleOutputCharacter' requires that UNICODE be set to true or false in the root module"); pub const WriteConsoleOutputCharacter = @compileError("'WriteConsoleOutputCharacter' requires that UNICODE be set to true or false in the root module"); pub const ReadConsoleOutputCharacter = @compileError("'ReadConsoleOutputCharacter' requires that UNICODE be set to true or false in the root module"); pub const WriteConsoleInput = @compileError("'WriteConsoleInput' requires that UNICODE be set to true or false in the root module"); pub const ScrollConsoleScreenBuffer = @compileError("'ScrollConsoleScreenBuffer' requires that UNICODE be set to true or false in the root module"); pub const WriteConsoleOutput = @compileError("'WriteConsoleOutput' requires that UNICODE be set to true or false in the root module"); pub const ReadConsoleOutput = @compileError("'ReadConsoleOutput' requires that UNICODE be set to true or false in the root module"); pub const GetConsoleTitle = @compileError("'GetConsoleTitle' requires that UNICODE be set to true or false in the root module"); pub const GetConsoleOriginalTitle = @compileError("'GetConsoleOriginalTitle' requires that UNICODE be set to true or false in the root module"); pub const SetConsoleTitle = @compileError("'SetConsoleTitle' requires that UNICODE be set to true or false in the root module"); pub const AddConsoleAlias = @compileError("'AddConsoleAlias' requires that UNICODE be set to true or false in the root module"); pub const GetConsoleAlias = @compileError("'GetConsoleAlias' requires that UNICODE be set to true or false in the root module"); pub const GetConsoleAliasesLength = @compileError("'GetConsoleAliasesLength' requires that UNICODE be set to true or false in the root module"); pub const GetConsoleAliasExesLength = @compileError("'GetConsoleAliasExesLength' requires that UNICODE be set to true or false in the root module"); pub const GetConsoleAliases = @compileError("'GetConsoleAliases' requires that UNICODE be set to true or false in the root module"); pub const GetConsoleAliasExes = @compileError("'GetConsoleAliasExes' requires that UNICODE be set to true or false in the root module"); pub const ExpungeConsoleCommandHistory = @compileError("'ExpungeConsoleCommandHistory' requires that UNICODE be set to true or false in the root module"); pub const SetConsoleNumberOfCommands = @compileError("'SetConsoleNumberOfCommands' requires that UNICODE be set to true or false in the root module"); pub const GetConsoleCommandHistoryLength = @compileError("'GetConsoleCommandHistoryLength' requires that UNICODE be set to true or false in the root module"); pub const GetConsoleCommandHistory = @compileError("'GetConsoleCommandHistory' requires that UNICODE be set to true or false in the root module"); }, }; //-------------------------------------------------------------------------------- // Section: Imports (8) //-------------------------------------------------------------------------------- const BOOL = @import("../foundation.zig").BOOL; const CHAR = @import("../foundation.zig").CHAR; const HANDLE = @import("../foundation.zig").HANDLE; const HRESULT = @import("../foundation.zig").HRESULT; const HWND = @import("../foundation.zig").HWND; const PSTR = @import("../foundation.zig").PSTR; const PWSTR = @import("../foundation.zig").PWSTR; const SECURITY_ATTRIBUTES = @import("../security.zig").SECURITY_ATTRIBUTES; test { // The following '_ = <FuncPtrType>' lines are a workaround for https://github.com/ziglang/zig/issues/4476 if (@hasDecl(@This(), "PHANDLER_ROUTINE")) { _ = PHANDLER_ROUTINE; } @setEvalBranchQuota(comptime @import("std").meta.declarations(@This()).len * 3); // reference all the pub declarations if (!@import("builtin").is_test) return; inline for (comptime @import("std").meta.declarations(@This())) |decl| { if (decl.is_pub) { _ = @field(@This(), decl.name); } } }
0
repos/capy/vendor/zigwin32/win32
repos/capy/vendor/zigwin32/win32/system/services.zig
//! NOTE: this file is autogenerated, DO NOT MODIFY //-------------------------------------------------------------------------------- // Section: Constants (123) //-------------------------------------------------------------------------------- pub const SERVICE_ALL_ACCESS = @as(u32, 983551); pub const SC_MANAGER_ALL_ACCESS = @as(u32, 983103); pub const SERVICE_NO_CHANGE = @as(u32, 4294967295); pub const SERVICE_CONTROL_STOP = @as(u32, 1); pub const SERVICE_CONTROL_PAUSE = @as(u32, 2); pub const SERVICE_CONTROL_CONTINUE = @as(u32, 3); pub const SERVICE_CONTROL_INTERROGATE = @as(u32, 4); pub const SERVICE_CONTROL_SHUTDOWN = @as(u32, 5); pub const SERVICE_CONTROL_PARAMCHANGE = @as(u32, 6); pub const SERVICE_CONTROL_NETBINDADD = @as(u32, 7); pub const SERVICE_CONTROL_NETBINDREMOVE = @as(u32, 8); pub const SERVICE_CONTROL_NETBINDENABLE = @as(u32, 9); pub const SERVICE_CONTROL_NETBINDDISABLE = @as(u32, 10); pub const SERVICE_CONTROL_DEVICEEVENT = @as(u32, 11); pub const SERVICE_CONTROL_HARDWAREPROFILECHANGE = @as(u32, 12); pub const SERVICE_CONTROL_POWEREVENT = @as(u32, 13); pub const SERVICE_CONTROL_SESSIONCHANGE = @as(u32, 14); pub const SERVICE_CONTROL_PRESHUTDOWN = @as(u32, 15); pub const SERVICE_CONTROL_TIMECHANGE = @as(u32, 16); pub const SERVICE_CONTROL_TRIGGEREVENT = @as(u32, 32); pub const SERVICE_CONTROL_LOWRESOURCES = @as(u32, 96); pub const SERVICE_CONTROL_SYSTEMLOWRESOURCES = @as(u32, 97); pub const SERVICE_ACCEPT_STOP = @as(u32, 1); pub const SERVICE_ACCEPT_PAUSE_CONTINUE = @as(u32, 2); pub const SERVICE_ACCEPT_SHUTDOWN = @as(u32, 4); pub const SERVICE_ACCEPT_PARAMCHANGE = @as(u32, 8); pub const SERVICE_ACCEPT_NETBINDCHANGE = @as(u32, 16); pub const SERVICE_ACCEPT_HARDWAREPROFILECHANGE = @as(u32, 32); pub const SERVICE_ACCEPT_POWEREVENT = @as(u32, 64); pub const SERVICE_ACCEPT_SESSIONCHANGE = @as(u32, 128); pub const SERVICE_ACCEPT_PRESHUTDOWN = @as(u32, 256); pub const SERVICE_ACCEPT_TIMECHANGE = @as(u32, 512); pub const SERVICE_ACCEPT_TRIGGEREVENT = @as(u32, 1024); pub const SERVICE_ACCEPT_USER_LOGOFF = @as(u32, 2048); pub const SERVICE_ACCEPT_LOWRESOURCES = @as(u32, 8192); pub const SERVICE_ACCEPT_SYSTEMLOWRESOURCES = @as(u32, 16384); pub const SC_MANAGER_CONNECT = @as(u32, 1); pub const SC_MANAGER_CREATE_SERVICE = @as(u32, 2); pub const SC_MANAGER_ENUMERATE_SERVICE = @as(u32, 4); pub const SC_MANAGER_LOCK = @as(u32, 8); pub const SC_MANAGER_QUERY_LOCK_STATUS = @as(u32, 16); pub const SC_MANAGER_MODIFY_BOOT_CONFIG = @as(u32, 32); pub const SERVICE_QUERY_CONFIG = @as(u32, 1); pub const SERVICE_CHANGE_CONFIG = @as(u32, 2); pub const SERVICE_QUERY_STATUS = @as(u32, 4); pub const SERVICE_ENUMERATE_DEPENDENTS = @as(u32, 8); pub const SERVICE_START = @as(u32, 16); pub const SERVICE_STOP = @as(u32, 32); pub const SERVICE_PAUSE_CONTINUE = @as(u32, 64); pub const SERVICE_INTERROGATE = @as(u32, 128); pub const SERVICE_USER_DEFINED_CONTROL = @as(u32, 256); pub const SERVICE_NOTIFY_STATUS_CHANGE_1 = @as(u32, 1); pub const SERVICE_NOTIFY_STATUS_CHANGE_2 = @as(u32, 2); pub const SERVICE_NOTIFY_STATUS_CHANGE = @as(u32, 2); pub const SERVICE_STOP_REASON_FLAG_MIN = @as(u32, 0); pub const SERVICE_STOP_REASON_FLAG_UNPLANNED = @as(u32, 268435456); pub const SERVICE_STOP_REASON_FLAG_CUSTOM = @as(u32, 536870912); pub const SERVICE_STOP_REASON_FLAG_PLANNED = @as(u32, 1073741824); pub const SERVICE_STOP_REASON_FLAG_MAX = @as(u32, 2147483648); pub const SERVICE_STOP_REASON_MAJOR_MIN = @as(u32, 0); pub const SERVICE_STOP_REASON_MAJOR_OTHER = @as(u32, 65536); pub const SERVICE_STOP_REASON_MAJOR_HARDWARE = @as(u32, 131072); pub const SERVICE_STOP_REASON_MAJOR_OPERATINGSYSTEM = @as(u32, 196608); pub const SERVICE_STOP_REASON_MAJOR_SOFTWARE = @as(u32, 262144); pub const SERVICE_STOP_REASON_MAJOR_APPLICATION = @as(u32, 327680); pub const SERVICE_STOP_REASON_MAJOR_NONE = @as(u32, 393216); pub const SERVICE_STOP_REASON_MAJOR_MAX = @as(u32, 458752); pub const SERVICE_STOP_REASON_MAJOR_MIN_CUSTOM = @as(u32, 4194304); pub const SERVICE_STOP_REASON_MAJOR_MAX_CUSTOM = @as(u32, 16711680); pub const SERVICE_STOP_REASON_MINOR_MIN = @as(u32, 0); pub const SERVICE_STOP_REASON_MINOR_OTHER = @as(u32, 1); pub const SERVICE_STOP_REASON_MINOR_MAINTENANCE = @as(u32, 2); pub const SERVICE_STOP_REASON_MINOR_INSTALLATION = @as(u32, 3); pub const SERVICE_STOP_REASON_MINOR_UPGRADE = @as(u32, 4); pub const SERVICE_STOP_REASON_MINOR_RECONFIG = @as(u32, 5); pub const SERVICE_STOP_REASON_MINOR_HUNG = @as(u32, 6); pub const SERVICE_STOP_REASON_MINOR_UNSTABLE = @as(u32, 7); pub const SERVICE_STOP_REASON_MINOR_DISK = @as(u32, 8); pub const SERVICE_STOP_REASON_MINOR_NETWORKCARD = @as(u32, 9); pub const SERVICE_STOP_REASON_MINOR_ENVIRONMENT = @as(u32, 10); pub const SERVICE_STOP_REASON_MINOR_HARDWARE_DRIVER = @as(u32, 11); pub const SERVICE_STOP_REASON_MINOR_OTHERDRIVER = @as(u32, 12); pub const SERVICE_STOP_REASON_MINOR_SERVICEPACK = @as(u32, 13); pub const SERVICE_STOP_REASON_MINOR_SOFTWARE_UPDATE = @as(u32, 14); pub const SERVICE_STOP_REASON_MINOR_SECURITYFIX = @as(u32, 15); pub const SERVICE_STOP_REASON_MINOR_SECURITY = @as(u32, 16); pub const SERVICE_STOP_REASON_MINOR_NETWORK_CONNECTIVITY = @as(u32, 17); pub const SERVICE_STOP_REASON_MINOR_WMI = @as(u32, 18); pub const SERVICE_STOP_REASON_MINOR_SERVICEPACK_UNINSTALL = @as(u32, 19); pub const SERVICE_STOP_REASON_MINOR_SOFTWARE_UPDATE_UNINSTALL = @as(u32, 20); pub const SERVICE_STOP_REASON_MINOR_SECURITYFIX_UNINSTALL = @as(u32, 21); pub const SERVICE_STOP_REASON_MINOR_MMC = @as(u32, 22); pub const SERVICE_STOP_REASON_MINOR_NONE = @as(u32, 23); pub const SERVICE_STOP_REASON_MINOR_MEMOTYLIMIT = @as(u32, 24); pub const SERVICE_STOP_REASON_MINOR_MAX = @as(u32, 25); pub const SERVICE_STOP_REASON_MINOR_MIN_CUSTOM = @as(u32, 256); pub const SERVICE_STOP_REASON_MINOR_MAX_CUSTOM = @as(u32, 65535); pub const SERVICE_CONTROL_STATUS_REASON_INFO = @as(u32, 1); pub const SERVICE_SID_TYPE_NONE = @as(u32, 0); pub const SERVICE_SID_TYPE_UNRESTRICTED = @as(u32, 1); pub const SERVICE_TRIGGER_TYPE_CUSTOM_SYSTEM_STATE_CHANGE = @as(u32, 7); pub const SERVICE_TRIGGER_TYPE_AGGREGATE = @as(u32, 30); pub const SERVICE_START_REASON_DEMAND = @as(u32, 1); pub const SERVICE_START_REASON_AUTO = @as(u32, 2); pub const SERVICE_START_REASON_TRIGGER = @as(u32, 4); pub const SERVICE_START_REASON_RESTART_ON_FAILURE = @as(u32, 8); pub const SERVICE_START_REASON_DELAYEDAUTO = @as(u32, 16); pub const SERVICE_DYNAMIC_INFORMATION_LEVEL_START_REASON = @as(u32, 1); pub const SERVICE_LAUNCH_PROTECTED_NONE = @as(u32, 0); pub const SERVICE_LAUNCH_PROTECTED_WINDOWS = @as(u32, 1); pub const SERVICE_LAUNCH_PROTECTED_WINDOWS_LIGHT = @as(u32, 2); pub const SERVICE_LAUNCH_PROTECTED_ANTIMALWARE_LIGHT = @as(u32, 3); pub const NETWORK_MANAGER_FIRST_IP_ADDRESS_ARRIVAL_GUID = Guid.initString("4f27f2de-14e2-430b-a549-7cd48cbc8245"); pub const NETWORK_MANAGER_LAST_IP_ADDRESS_REMOVAL_GUID = Guid.initString("cc4ba62a-162e-4648-847a-b6bdf993e335"); pub const DOMAIN_JOIN_GUID = Guid.initString("1ce20aba-9851-4421-9430-1ddeb766e809"); pub const DOMAIN_LEAVE_GUID = Guid.initString("ddaf516e-58c2-4866-9574-c3b615d42ea1"); pub const FIREWALL_PORT_OPEN_GUID = Guid.initString("b7569e07-8421-4ee0-ad10-86915afdad09"); pub const FIREWALL_PORT_CLOSE_GUID = Guid.initString("a144ed38-8e12-4de4-9d96-e64740b1a524"); pub const MACHINE_POLICY_PRESENT_GUID = Guid.initString("659fcae6-5bdb-4da9-b1ff-ca2a178d46e0"); pub const USER_POLICY_PRESENT_GUID = Guid.initString("54fb46c8-f089-464c-b1fd-59d1b62c3b50"); pub const RPC_INTERFACE_EVENT_GUID = Guid.initString("bc90d167-9470-4139-a9ba-be0bbbf5b74d"); pub const NAMED_PIPE_EVENT_GUID = Guid.initString("1f81d131-3fac-4537-9e0c-7e7b0c2f4b55"); pub const CUSTOM_SYSTEM_STATE_CHANGE_EVENT_GUID = Guid.initString("2d7a2816-0c5e-45fc-9ce7-570e5ecde9c9"); //-------------------------------------------------------------------------------- // Section: Types (68) //-------------------------------------------------------------------------------- pub const ENUM_SERVICE_STATE = enum(u32) { ACTIVE = 1, INACTIVE = 2, STATE_ALL = 3, }; pub const SERVICE_ACTIVE = ENUM_SERVICE_STATE.ACTIVE; pub const SERVICE_INACTIVE = ENUM_SERVICE_STATE.INACTIVE; pub const SERVICE_STATE_ALL = ENUM_SERVICE_STATE.STATE_ALL; pub const SERVICE_ERROR = enum(u32) { CRITICAL = 3, IGNORE = 0, NORMAL = 1, SEVERE = 2, }; pub const SERVICE_ERROR_CRITICAL = SERVICE_ERROR.CRITICAL; pub const SERVICE_ERROR_IGNORE = SERVICE_ERROR.IGNORE; pub const SERVICE_ERROR_NORMAL = SERVICE_ERROR.NORMAL; pub const SERVICE_ERROR_SEVERE = SERVICE_ERROR.SEVERE; pub const SERVICE_CONFIG = enum(u32) { DELAYED_AUTO_START_INFO = 3, DESCRIPTION = 1, FAILURE_ACTIONS = 2, FAILURE_ACTIONS_FLAG = 4, PREFERRED_NODE = 9, PRESHUTDOWN_INFO = 7, REQUIRED_PRIVILEGES_INFO = 6, SERVICE_SID_INFO = 5, TRIGGER_INFO = 8, LAUNCH_PROTECTED = 12, }; pub const SERVICE_CONFIG_DELAYED_AUTO_START_INFO = SERVICE_CONFIG.DELAYED_AUTO_START_INFO; pub const SERVICE_CONFIG_DESCRIPTION = SERVICE_CONFIG.DESCRIPTION; pub const SERVICE_CONFIG_FAILURE_ACTIONS = SERVICE_CONFIG.FAILURE_ACTIONS; pub const SERVICE_CONFIG_FAILURE_ACTIONS_FLAG = SERVICE_CONFIG.FAILURE_ACTIONS_FLAG; pub const SERVICE_CONFIG_PREFERRED_NODE = SERVICE_CONFIG.PREFERRED_NODE; pub const SERVICE_CONFIG_PRESHUTDOWN_INFO = SERVICE_CONFIG.PRESHUTDOWN_INFO; pub const SERVICE_CONFIG_REQUIRED_PRIVILEGES_INFO = SERVICE_CONFIG.REQUIRED_PRIVILEGES_INFO; pub const SERVICE_CONFIG_SERVICE_SID_INFO = SERVICE_CONFIG.SERVICE_SID_INFO; pub const SERVICE_CONFIG_TRIGGER_INFO = SERVICE_CONFIG.TRIGGER_INFO; pub const SERVICE_CONFIG_LAUNCH_PROTECTED = SERVICE_CONFIG.LAUNCH_PROTECTED; pub const ENUM_SERVICE_TYPE = enum(u32) { DRIVER = 11, FILE_SYSTEM_DRIVER_ = 2, KERNEL_DRIVER = 1, WIN32 = 48, WIN32_OWN_PROCESS_ = 16, WIN32_SHARE_PROCESS = 32, ADAPTER = 4, // FILE_SYSTEM_DRIVER = 2, this enum value conflicts with FILE_SYSTEM_DRIVER_ RECOGNIZER_DRIVER = 8, // WIN32_OWN_PROCESS = 16, this enum value conflicts with WIN32_OWN_PROCESS_ USER_OWN_PROCESS = 80, USER_SHARE_PROCESS = 96, _, pub fn initFlags(o: struct { DRIVER: u1 = 0, FILE_SYSTEM_DRIVER_: u1 = 0, KERNEL_DRIVER: u1 = 0, WIN32: u1 = 0, WIN32_OWN_PROCESS_: u1 = 0, WIN32_SHARE_PROCESS: u1 = 0, ADAPTER: u1 = 0, RECOGNIZER_DRIVER: u1 = 0, USER_OWN_PROCESS: u1 = 0, USER_SHARE_PROCESS: u1 = 0, }) ENUM_SERVICE_TYPE { return @as(ENUM_SERVICE_TYPE, @enumFromInt((if (o.DRIVER == 1) @intFromEnum(ENUM_SERVICE_TYPE.DRIVER) else 0) | (if (o.FILE_SYSTEM_DRIVER_ == 1) @intFromEnum(ENUM_SERVICE_TYPE.FILE_SYSTEM_DRIVER_) else 0) | (if (o.KERNEL_DRIVER == 1) @intFromEnum(ENUM_SERVICE_TYPE.KERNEL_DRIVER) else 0) | (if (o.WIN32 == 1) @intFromEnum(ENUM_SERVICE_TYPE.WIN32) else 0) | (if (o.WIN32_OWN_PROCESS_ == 1) @intFromEnum(ENUM_SERVICE_TYPE.WIN32_OWN_PROCESS_) else 0) | (if (o.WIN32_SHARE_PROCESS == 1) @intFromEnum(ENUM_SERVICE_TYPE.WIN32_SHARE_PROCESS) else 0) | (if (o.ADAPTER == 1) @intFromEnum(ENUM_SERVICE_TYPE.ADAPTER) else 0) | (if (o.RECOGNIZER_DRIVER == 1) @intFromEnum(ENUM_SERVICE_TYPE.RECOGNIZER_DRIVER) else 0) | (if (o.USER_OWN_PROCESS == 1) @intFromEnum(ENUM_SERVICE_TYPE.USER_OWN_PROCESS) else 0) | (if (o.USER_SHARE_PROCESS == 1) @intFromEnum(ENUM_SERVICE_TYPE.USER_SHARE_PROCESS) else 0))); } }; pub const SERVICE_DRIVER = ENUM_SERVICE_TYPE.DRIVER; pub const SERVICE_FILE_SYSTEM_DRIVER_ = ENUM_SERVICE_TYPE.FILE_SYSTEM_DRIVER_; pub const SERVICE_KERNEL_DRIVER = ENUM_SERVICE_TYPE.KERNEL_DRIVER; pub const SERVICE_WIN32 = ENUM_SERVICE_TYPE.WIN32; pub const SERVICE_WIN32_OWN_PROCESS_ = ENUM_SERVICE_TYPE.WIN32_OWN_PROCESS_; pub const SERVICE_WIN32_SHARE_PROCESS = ENUM_SERVICE_TYPE.WIN32_SHARE_PROCESS; pub const SERVICE_ADAPTER = ENUM_SERVICE_TYPE.ADAPTER; pub const SERVICE_FILE_SYSTEM_DRIVER = ENUM_SERVICE_TYPE.FILE_SYSTEM_DRIVER_; pub const SERVICE_RECOGNIZER_DRIVER = ENUM_SERVICE_TYPE.RECOGNIZER_DRIVER; pub const SERVICE_WIN32_OWN_PROCESS = ENUM_SERVICE_TYPE.WIN32_OWN_PROCESS_; pub const SERVICE_USER_OWN_PROCESS = ENUM_SERVICE_TYPE.USER_OWN_PROCESS; pub const SERVICE_USER_SHARE_PROCESS = ENUM_SERVICE_TYPE.USER_SHARE_PROCESS; pub const SERVICE_START_TYPE = enum(u32) { AUTO_START = 2, BOOT_START = 0, DEMAND_START = 3, DISABLED = 4, SYSTEM_START = 1, }; pub const SERVICE_AUTO_START = SERVICE_START_TYPE.AUTO_START; pub const SERVICE_BOOT_START = SERVICE_START_TYPE.BOOT_START; pub const SERVICE_DEMAND_START = SERVICE_START_TYPE.DEMAND_START; pub const SERVICE_DISABLED = SERVICE_START_TYPE.DISABLED; pub const SERVICE_SYSTEM_START = SERVICE_START_TYPE.SYSTEM_START; pub const SERVICE_NOTIFY = enum(u32) { CREATED = 128, CONTINUE_PENDING = 16, DELETE_PENDING = 512, DELETED = 256, PAUSE_PENDING = 32, PAUSED = 64, RUNNING = 8, START_PENDING = 2, STOP_PENDING = 4, STOPPED = 1, _, pub fn initFlags(o: struct { CREATED: u1 = 0, CONTINUE_PENDING: u1 = 0, DELETE_PENDING: u1 = 0, DELETED: u1 = 0, PAUSE_PENDING: u1 = 0, PAUSED: u1 = 0, RUNNING: u1 = 0, START_PENDING: u1 = 0, STOP_PENDING: u1 = 0, STOPPED: u1 = 0, }) SERVICE_NOTIFY { return @as(SERVICE_NOTIFY, @enumFromInt((if (o.CREATED == 1) @intFromEnum(SERVICE_NOTIFY.CREATED) else 0) | (if (o.CONTINUE_PENDING == 1) @intFromEnum(SERVICE_NOTIFY.CONTINUE_PENDING) else 0) | (if (o.DELETE_PENDING == 1) @intFromEnum(SERVICE_NOTIFY.DELETE_PENDING) else 0) | (if (o.DELETED == 1) @intFromEnum(SERVICE_NOTIFY.DELETED) else 0) | (if (o.PAUSE_PENDING == 1) @intFromEnum(SERVICE_NOTIFY.PAUSE_PENDING) else 0) | (if (o.PAUSED == 1) @intFromEnum(SERVICE_NOTIFY.PAUSED) else 0) | (if (o.RUNNING == 1) @intFromEnum(SERVICE_NOTIFY.RUNNING) else 0) | (if (o.START_PENDING == 1) @intFromEnum(SERVICE_NOTIFY.START_PENDING) else 0) | (if (o.STOP_PENDING == 1) @intFromEnum(SERVICE_NOTIFY.STOP_PENDING) else 0) | (if (o.STOPPED == 1) @intFromEnum(SERVICE_NOTIFY.STOPPED) else 0))); } }; pub const SERVICE_NOTIFY_CREATED = SERVICE_NOTIFY.CREATED; pub const SERVICE_NOTIFY_CONTINUE_PENDING = SERVICE_NOTIFY.CONTINUE_PENDING; pub const SERVICE_NOTIFY_DELETE_PENDING = SERVICE_NOTIFY.DELETE_PENDING; pub const SERVICE_NOTIFY_DELETED = SERVICE_NOTIFY.DELETED; pub const SERVICE_NOTIFY_PAUSE_PENDING = SERVICE_NOTIFY.PAUSE_PENDING; pub const SERVICE_NOTIFY_PAUSED = SERVICE_NOTIFY.PAUSED; pub const SERVICE_NOTIFY_RUNNING = SERVICE_NOTIFY.RUNNING; pub const SERVICE_NOTIFY_START_PENDING = SERVICE_NOTIFY.START_PENDING; pub const SERVICE_NOTIFY_STOP_PENDING = SERVICE_NOTIFY.STOP_PENDING; pub const SERVICE_NOTIFY_STOPPED = SERVICE_NOTIFY.STOPPED; pub const SERVICE_RUNS_IN_PROCESS = enum(u32) { NON_SYSTEM_OR_NOT_RUNNING = 0, SYSTEM_PROCESS = 1, }; pub const SERVICE_RUNS_IN_NON_SYSTEM_OR_NOT_RUNNING = SERVICE_RUNS_IN_PROCESS.NON_SYSTEM_OR_NOT_RUNNING; pub const SERVICE_RUNS_IN_SYSTEM_PROCESS = SERVICE_RUNS_IN_PROCESS.SYSTEM_PROCESS; pub const SERVICE_TRIGGER_ACTION = enum(u32) { ART = 1, OP = 2, }; pub const SERVICE_TRIGGER_ACTION_SERVICE_START = SERVICE_TRIGGER_ACTION.ART; pub const SERVICE_TRIGGER_ACTION_SERVICE_STOP = SERVICE_TRIGGER_ACTION.OP; pub const SERVICE_TRIGGER_TYPE = enum(u32) { CUSTOM = 20, DEVICE_INTERFACE_ARRIVAL = 1, DOMAIN_JOIN = 3, FIREWALL_PORT_EVENT = 4, GROUP_POLICY = 5, IP_ADDRESS_AVAILABILITY = 2, NETWORK_ENDPOINT = 6, }; pub const SERVICE_TRIGGER_TYPE_CUSTOM = SERVICE_TRIGGER_TYPE.CUSTOM; pub const SERVICE_TRIGGER_TYPE_DEVICE_INTERFACE_ARRIVAL = SERVICE_TRIGGER_TYPE.DEVICE_INTERFACE_ARRIVAL; pub const SERVICE_TRIGGER_TYPE_DOMAIN_JOIN = SERVICE_TRIGGER_TYPE.DOMAIN_JOIN; pub const SERVICE_TRIGGER_TYPE_FIREWALL_PORT_EVENT = SERVICE_TRIGGER_TYPE.FIREWALL_PORT_EVENT; pub const SERVICE_TRIGGER_TYPE_GROUP_POLICY = SERVICE_TRIGGER_TYPE.GROUP_POLICY; pub const SERVICE_TRIGGER_TYPE_IP_ADDRESS_AVAILABILITY = SERVICE_TRIGGER_TYPE.IP_ADDRESS_AVAILABILITY; pub const SERVICE_TRIGGER_TYPE_NETWORK_ENDPOINT = SERVICE_TRIGGER_TYPE.NETWORK_ENDPOINT; pub const SERVICE_TRIGGER_SPECIFIC_DATA_ITEM_DATA_TYPE = enum(u32) { BINARY = 1, STRING = 2, LEVEL = 3, KEYWORD_ANY = 4, KEYWORD_ALL = 5, }; pub const SERVICE_TRIGGER_DATA_TYPE_BINARY = SERVICE_TRIGGER_SPECIFIC_DATA_ITEM_DATA_TYPE.BINARY; pub const SERVICE_TRIGGER_DATA_TYPE_STRING = SERVICE_TRIGGER_SPECIFIC_DATA_ITEM_DATA_TYPE.STRING; pub const SERVICE_TRIGGER_DATA_TYPE_LEVEL = SERVICE_TRIGGER_SPECIFIC_DATA_ITEM_DATA_TYPE.LEVEL; pub const SERVICE_TRIGGER_DATA_TYPE_KEYWORD_ANY = SERVICE_TRIGGER_SPECIFIC_DATA_ITEM_DATA_TYPE.KEYWORD_ANY; pub const SERVICE_TRIGGER_DATA_TYPE_KEYWORD_ALL = SERVICE_TRIGGER_SPECIFIC_DATA_ITEM_DATA_TYPE.KEYWORD_ALL; pub const SERVICE_STATUS_CURRENT_STATE = enum(u32) { CONTINUE_PENDING = 5, PAUSE_PENDING = 6, PAUSED = 7, RUNNING = 4, START_PENDING = 2, STOP_PENDING = 3, STOPPED = 1, }; pub const SERVICE_CONTINUE_PENDING = SERVICE_STATUS_CURRENT_STATE.CONTINUE_PENDING; pub const SERVICE_PAUSE_PENDING = SERVICE_STATUS_CURRENT_STATE.PAUSE_PENDING; pub const SERVICE_PAUSED = SERVICE_STATUS_CURRENT_STATE.PAUSED; pub const SERVICE_RUNNING = SERVICE_STATUS_CURRENT_STATE.RUNNING; pub const SERVICE_START_PENDING = SERVICE_STATUS_CURRENT_STATE.START_PENDING; pub const SERVICE_STOP_PENDING = SERVICE_STATUS_CURRENT_STATE.STOP_PENDING; pub const SERVICE_STOPPED = SERVICE_STATUS_CURRENT_STATE.STOPPED; pub const SERVICE_STATUS_HANDLE = isize; pub const SERVICE_TRIGGER_CUSTOM_STATE_ID = extern struct { Data: [2]u32, }; pub const SERVICE_CUSTOM_SYSTEM_STATE_CHANGE_DATA_ITEM = extern struct { u: extern union { CustomStateId: SERVICE_TRIGGER_CUSTOM_STATE_ID, s: extern struct { DataOffset: u32, Data: [1]u8, }, }, }; pub const SERVICE_DESCRIPTIONA = extern struct { lpDescription: ?PSTR, }; pub const SERVICE_DESCRIPTIONW = extern struct { lpDescription: ?PWSTR, }; pub const SC_ACTION_TYPE = enum(i32) { NONE = 0, RESTART = 1, REBOOT = 2, RUN_COMMAND = 3, OWN_RESTART = 4, }; pub const SC_ACTION_NONE = SC_ACTION_TYPE.NONE; pub const SC_ACTION_RESTART = SC_ACTION_TYPE.RESTART; pub const SC_ACTION_REBOOT = SC_ACTION_TYPE.REBOOT; pub const SC_ACTION_RUN_COMMAND = SC_ACTION_TYPE.RUN_COMMAND; pub const SC_ACTION_OWN_RESTART = SC_ACTION_TYPE.OWN_RESTART; pub const SC_ACTION = extern struct { Type: SC_ACTION_TYPE, Delay: u32, }; pub const SERVICE_FAILURE_ACTIONSA = extern struct { dwResetPeriod: u32, lpRebootMsg: ?PSTR, lpCommand: ?PSTR, cActions: u32, lpsaActions: ?*SC_ACTION, }; pub const SERVICE_FAILURE_ACTIONSW = extern struct { dwResetPeriod: u32, lpRebootMsg: ?PWSTR, lpCommand: ?PWSTR, cActions: u32, lpsaActions: ?*SC_ACTION, }; pub const SERVICE_DELAYED_AUTO_START_INFO = extern struct { fDelayedAutostart: BOOL, }; pub const SERVICE_FAILURE_ACTIONS_FLAG = extern struct { fFailureActionsOnNonCrashFailures: BOOL, }; pub const SERVICE_SID_INFO = extern struct { dwServiceSidType: u32, }; pub const SERVICE_REQUIRED_PRIVILEGES_INFOA = extern struct { pmszRequiredPrivileges: ?PSTR, }; pub const SERVICE_REQUIRED_PRIVILEGES_INFOW = extern struct { pmszRequiredPrivileges: ?PWSTR, }; pub const SERVICE_PRESHUTDOWN_INFO = extern struct { dwPreshutdownTimeout: u32, }; pub const SERVICE_TRIGGER_SPECIFIC_DATA_ITEM = extern struct { dwDataType: SERVICE_TRIGGER_SPECIFIC_DATA_ITEM_DATA_TYPE, cbData: u32, pData: ?*u8, }; pub const SERVICE_TRIGGER = extern struct { dwTriggerType: SERVICE_TRIGGER_TYPE, dwAction: SERVICE_TRIGGER_ACTION, pTriggerSubtype: ?*Guid, cDataItems: u32, pDataItems: ?*SERVICE_TRIGGER_SPECIFIC_DATA_ITEM, }; pub const SERVICE_TRIGGER_INFO = extern struct { cTriggers: u32, pTriggers: ?*SERVICE_TRIGGER, pReserved: ?*u8, }; pub const SERVICE_PREFERRED_NODE_INFO = extern struct { usPreferredNode: u16, fDelete: BOOLEAN, }; pub const SERVICE_TIMECHANGE_INFO = extern struct { liNewTime: LARGE_INTEGER, liOldTime: LARGE_INTEGER, }; pub const SERVICE_LAUNCH_PROTECTED_INFO = extern struct { dwLaunchProtected: u32, }; pub const SC_STATUS_TYPE = enum(i32) { O = 0, }; pub const SC_STATUS_PROCESS_INFO = SC_STATUS_TYPE.O; pub const SC_ENUM_TYPE = enum(i32) { O = 0, }; pub const SC_ENUM_PROCESS_INFO = SC_ENUM_TYPE.O; pub const SERVICE_STATUS = extern struct { dwServiceType: ENUM_SERVICE_TYPE, dwCurrentState: SERVICE_STATUS_CURRENT_STATE, dwControlsAccepted: u32, dwWin32ExitCode: u32, dwServiceSpecificExitCode: u32, dwCheckPoint: u32, dwWaitHint: u32, }; pub const SERVICE_STATUS_PROCESS = extern struct { dwServiceType: ENUM_SERVICE_TYPE, dwCurrentState: SERVICE_STATUS_CURRENT_STATE, dwControlsAccepted: u32, dwWin32ExitCode: u32, dwServiceSpecificExitCode: u32, dwCheckPoint: u32, dwWaitHint: u32, dwProcessId: u32, dwServiceFlags: SERVICE_RUNS_IN_PROCESS, }; pub const ENUM_SERVICE_STATUSA = extern struct { lpServiceName: ?PSTR, lpDisplayName: ?PSTR, ServiceStatus: SERVICE_STATUS, }; pub const ENUM_SERVICE_STATUSW = extern struct { lpServiceName: ?PWSTR, lpDisplayName: ?PWSTR, ServiceStatus: SERVICE_STATUS, }; pub const ENUM_SERVICE_STATUS_PROCESSA = extern struct { lpServiceName: ?PSTR, lpDisplayName: ?PSTR, ServiceStatusProcess: SERVICE_STATUS_PROCESS, }; pub const ENUM_SERVICE_STATUS_PROCESSW = extern struct { lpServiceName: ?PWSTR, lpDisplayName: ?PWSTR, ServiceStatusProcess: SERVICE_STATUS_PROCESS, }; pub const QUERY_SERVICE_LOCK_STATUSA = extern struct { fIsLocked: u32, lpLockOwner: ?PSTR, dwLockDuration: u32, }; pub const QUERY_SERVICE_LOCK_STATUSW = extern struct { fIsLocked: u32, lpLockOwner: ?PWSTR, dwLockDuration: u32, }; pub const QUERY_SERVICE_CONFIGA = extern struct { dwServiceType: ENUM_SERVICE_TYPE, dwStartType: SERVICE_START_TYPE, dwErrorControl: SERVICE_ERROR, lpBinaryPathName: ?PSTR, lpLoadOrderGroup: ?PSTR, dwTagId: u32, lpDependencies: ?PSTR, lpServiceStartName: ?PSTR, lpDisplayName: ?PSTR, }; pub const QUERY_SERVICE_CONFIGW = extern struct { dwServiceType: ENUM_SERVICE_TYPE, dwStartType: SERVICE_START_TYPE, dwErrorControl: SERVICE_ERROR, lpBinaryPathName: ?PWSTR, lpLoadOrderGroup: ?PWSTR, dwTagId: u32, lpDependencies: ?PWSTR, lpServiceStartName: ?PWSTR, lpDisplayName: ?PWSTR, }; pub const SERVICE_MAIN_FUNCTIONW = switch (@import("builtin").zig_backend) { .stage1 => fn ( dwNumServicesArgs: u32, lpServiceArgVectors: ?*?PWSTR, ) callconv(@import("std").os.windows.WINAPI) void, else => *const fn ( dwNumServicesArgs: u32, lpServiceArgVectors: ?*?PWSTR, ) callconv(@import("std").os.windows.WINAPI) void, }; pub const SERVICE_MAIN_FUNCTIONA = switch (@import("builtin").zig_backend) { .stage1 => fn ( dwNumServicesArgs: u32, lpServiceArgVectors: ?*?*i8, ) callconv(@import("std").os.windows.WINAPI) void, else => *const fn ( dwNumServicesArgs: u32, lpServiceArgVectors: ?*?*i8, ) callconv(@import("std").os.windows.WINAPI) void, }; pub const LPSERVICE_MAIN_FUNCTIONW = switch (@import("builtin").zig_backend) { .stage1 => fn ( dwNumServicesArgs: u32, lpServiceArgVectors: ?*?PWSTR, ) callconv(@import("std").os.windows.WINAPI) void, else => *const fn ( dwNumServicesArgs: u32, lpServiceArgVectors: ?*?PWSTR, ) callconv(@import("std").os.windows.WINAPI) void, }; pub const LPSERVICE_MAIN_FUNCTIONA = switch (@import("builtin").zig_backend) { .stage1 => fn ( dwNumServicesArgs: u32, lpServiceArgVectors: ?*?PSTR, ) callconv(@import("std").os.windows.WINAPI) void, else => *const fn ( dwNumServicesArgs: u32, lpServiceArgVectors: ?*?PSTR, ) callconv(@import("std").os.windows.WINAPI) void, }; pub const SERVICE_TABLE_ENTRYA = extern struct { lpServiceName: ?PSTR, lpServiceProc: ?LPSERVICE_MAIN_FUNCTIONA, }; pub const SERVICE_TABLE_ENTRYW = extern struct { lpServiceName: ?PWSTR, lpServiceProc: ?LPSERVICE_MAIN_FUNCTIONW, }; pub const HANDLER_FUNCTION = switch (@import("builtin").zig_backend) { .stage1 => fn ( dwControl: u32, ) callconv(@import("std").os.windows.WINAPI) void, else => *const fn ( dwControl: u32, ) callconv(@import("std").os.windows.WINAPI) void, }; pub const HANDLER_FUNCTION_EX = switch (@import("builtin").zig_backend) { .stage1 => fn ( dwControl: u32, dwEventType: u32, lpEventData: ?*anyopaque, lpContext: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) u32, else => *const fn ( dwControl: u32, dwEventType: u32, lpEventData: ?*anyopaque, lpContext: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) u32, }; pub const LPHANDLER_FUNCTION = switch (@import("builtin").zig_backend) { .stage1 => fn ( dwControl: u32, ) callconv(@import("std").os.windows.WINAPI) void, else => *const fn ( dwControl: u32, ) callconv(@import("std").os.windows.WINAPI) void, }; pub const LPHANDLER_FUNCTION_EX = switch (@import("builtin").zig_backend) { .stage1 => fn ( dwControl: u32, dwEventType: u32, lpEventData: ?*anyopaque, lpContext: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) u32, else => *const fn ( dwControl: u32, dwEventType: u32, lpEventData: ?*anyopaque, lpContext: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) u32, }; pub const PFN_SC_NOTIFY_CALLBACK = switch (@import("builtin").zig_backend) { .stage1 => fn ( pParameter: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) void, else => *const fn ( pParameter: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) void, }; pub const SERVICE_NOTIFY_1 = extern struct { dwVersion: u32, pfnNotifyCallback: ?PFN_SC_NOTIFY_CALLBACK, pContext: ?*anyopaque, dwNotificationStatus: u32, ServiceStatus: SERVICE_STATUS_PROCESS, }; pub const SERVICE_NOTIFY_2A = extern struct { dwVersion: u32, pfnNotifyCallback: ?PFN_SC_NOTIFY_CALLBACK, pContext: ?*anyopaque, dwNotificationStatus: u32, ServiceStatus: SERVICE_STATUS_PROCESS, dwNotificationTriggered: u32, pszServiceNames: ?PSTR, }; pub const SERVICE_NOTIFY_2W = extern struct { dwVersion: u32, pfnNotifyCallback: ?PFN_SC_NOTIFY_CALLBACK, pContext: ?*anyopaque, dwNotificationStatus: u32, ServiceStatus: SERVICE_STATUS_PROCESS, dwNotificationTriggered: u32, pszServiceNames: ?PWSTR, }; pub const SERVICE_CONTROL_STATUS_REASON_PARAMSA = extern struct { dwReason: u32, pszComment: ?PSTR, ServiceStatus: SERVICE_STATUS_PROCESS, }; pub const SERVICE_CONTROL_STATUS_REASON_PARAMSW = extern struct { dwReason: u32, pszComment: ?PWSTR, ServiceStatus: SERVICE_STATUS_PROCESS, }; pub const SERVICE_START_REASON = extern struct { dwReason: u32, }; pub const SC_EVENT_TYPE = enum(i32) { DATABASE_CHANGE = 0, PROPERTY_CHANGE = 1, STATUS_CHANGE = 2, }; pub const SC_EVENT_DATABASE_CHANGE = SC_EVENT_TYPE.DATABASE_CHANGE; pub const SC_EVENT_PROPERTY_CHANGE = SC_EVENT_TYPE.PROPERTY_CHANGE; pub const SC_EVENT_STATUS_CHANGE = SC_EVENT_TYPE.STATUS_CHANGE; pub const PSC_NOTIFICATION_CALLBACK = switch (@import("builtin").zig_backend) { .stage1 => fn ( dwNotify: u32, pCallbackContext: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) void, else => *const fn ( dwNotify: u32, pCallbackContext: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) void, }; pub const _SC_NOTIFICATION_REGISTRATION = extern struct { placeholder: usize, // TODO: why is this type empty? }; pub const SERVICE_REGISTRY_STATE_TYPE = enum(i32) { ServiceRegistryStateParameters = 0, ServiceRegistryStatePersistent = 1, MaxServiceRegistryStateType = 2, }; pub const ServiceRegistryStateParameters = SERVICE_REGISTRY_STATE_TYPE.ServiceRegistryStateParameters; pub const ServiceRegistryStatePersistent = SERVICE_REGISTRY_STATE_TYPE.ServiceRegistryStatePersistent; pub const MaxServiceRegistryStateType = SERVICE_REGISTRY_STATE_TYPE.MaxServiceRegistryStateType; pub const SERVICE_DIRECTORY_TYPE = enum(i32) { PersistentState = 0, TypeMax = 1, }; pub const ServiceDirectoryPersistentState = SERVICE_DIRECTORY_TYPE.PersistentState; pub const ServiceDirectoryTypeMax = SERVICE_DIRECTORY_TYPE.TypeMax; pub const SERVICE_SHARED_REGISTRY_STATE_TYPE = enum(i32) { e = 0, }; pub const ServiceSharedRegistryPersistentState = SERVICE_SHARED_REGISTRY_STATE_TYPE.e; pub const SERVICE_SHARED_DIRECTORY_TYPE = enum(i32) { e = 0, }; pub const ServiceSharedDirectoryPersistentState = SERVICE_SHARED_DIRECTORY_TYPE.e; //-------------------------------------------------------------------------------- // Section: Functions (56) //-------------------------------------------------------------------------------- // TODO: this type is limited to platform 'windows5.1.2600' pub extern "advapi32" fn SetServiceBits( hServiceStatus: SERVICE_STATUS_HANDLE, dwServiceBits: u32, bSetBitsOn: BOOL, bUpdateImmediately: BOOL, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "advapi32" fn ChangeServiceConfigA( hService: SC_HANDLE, dwServiceType: u32, dwStartType: SERVICE_START_TYPE, dwErrorControl: SERVICE_ERROR, lpBinaryPathName: ?[*:0]const u8, lpLoadOrderGroup: ?[*:0]const u8, lpdwTagId: ?*u32, lpDependencies: ?[*:0]const u8, lpServiceStartName: ?[*:0]const u8, lpPassword: ?[*:0]const u8, lpDisplayName: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "advapi32" fn ChangeServiceConfigW( hService: SC_HANDLE, dwServiceType: u32, dwStartType: SERVICE_START_TYPE, dwErrorControl: SERVICE_ERROR, lpBinaryPathName: ?[*:0]const u16, lpLoadOrderGroup: ?[*:0]const u16, lpdwTagId: ?*u32, lpDependencies: ?[*:0]const u16, lpServiceStartName: ?[*:0]const u16, lpPassword: ?[*:0]const u16, lpDisplayName: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "advapi32" fn ChangeServiceConfig2A( hService: SC_HANDLE, dwInfoLevel: SERVICE_CONFIG, lpInfo: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "advapi32" fn ChangeServiceConfig2W( hService: SC_HANDLE, dwInfoLevel: SERVICE_CONFIG, lpInfo: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "advapi32" fn CloseServiceHandle( hSCObject: SC_HANDLE, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "advapi32" fn ControlService( hService: SC_HANDLE, dwControl: u32, lpServiceStatus: ?*SERVICE_STATUS, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "advapi32" fn CreateServiceA( hSCManager: SC_HANDLE, lpServiceName: ?[*:0]const u8, lpDisplayName: ?[*:0]const u8, dwDesiredAccess: u32, dwServiceType: ENUM_SERVICE_TYPE, dwStartType: SERVICE_START_TYPE, dwErrorControl: SERVICE_ERROR, lpBinaryPathName: ?[*:0]const u8, lpLoadOrderGroup: ?[*:0]const u8, lpdwTagId: ?*u32, lpDependencies: ?[*:0]const u8, lpServiceStartName: ?[*:0]const u8, lpPassword: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) SC_HANDLE; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "advapi32" fn CreateServiceW( hSCManager: SC_HANDLE, lpServiceName: ?[*:0]const u16, lpDisplayName: ?[*:0]const u16, dwDesiredAccess: u32, dwServiceType: ENUM_SERVICE_TYPE, dwStartType: SERVICE_START_TYPE, dwErrorControl: SERVICE_ERROR, lpBinaryPathName: ?[*:0]const u16, lpLoadOrderGroup: ?[*:0]const u16, lpdwTagId: ?*u32, lpDependencies: ?[*:0]const u16, lpServiceStartName: ?[*:0]const u16, lpPassword: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) SC_HANDLE; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "advapi32" fn DeleteService( hService: SC_HANDLE, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "advapi32" fn EnumDependentServicesA( hService: SC_HANDLE, dwServiceState: ENUM_SERVICE_STATE, // TODO: what to do with BytesParamIndex 3? lpServices: ?*ENUM_SERVICE_STATUSA, cbBufSize: u32, pcbBytesNeeded: ?*u32, lpServicesReturned: ?*u32, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "advapi32" fn EnumDependentServicesW( hService: SC_HANDLE, dwServiceState: ENUM_SERVICE_STATE, // TODO: what to do with BytesParamIndex 3? lpServices: ?*ENUM_SERVICE_STATUSW, cbBufSize: u32, pcbBytesNeeded: ?*u32, lpServicesReturned: ?*u32, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "advapi32" fn EnumServicesStatusA( hSCManager: SC_HANDLE, dwServiceType: ENUM_SERVICE_TYPE, dwServiceState: ENUM_SERVICE_STATE, // TODO: what to do with BytesParamIndex 4? lpServices: ?*ENUM_SERVICE_STATUSA, cbBufSize: u32, pcbBytesNeeded: ?*u32, lpServicesReturned: ?*u32, lpResumeHandle: ?*u32, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "advapi32" fn EnumServicesStatusW( hSCManager: SC_HANDLE, dwServiceType: ENUM_SERVICE_TYPE, dwServiceState: ENUM_SERVICE_STATE, // TODO: what to do with BytesParamIndex 4? lpServices: ?*ENUM_SERVICE_STATUSW, cbBufSize: u32, pcbBytesNeeded: ?*u32, lpServicesReturned: ?*u32, lpResumeHandle: ?*u32, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "advapi32" fn EnumServicesStatusExA( hSCManager: SC_HANDLE, InfoLevel: SC_ENUM_TYPE, dwServiceType: ENUM_SERVICE_TYPE, dwServiceState: ENUM_SERVICE_STATE, // TODO: what to do with BytesParamIndex 5? lpServices: ?*u8, cbBufSize: u32, pcbBytesNeeded: ?*u32, lpServicesReturned: ?*u32, lpResumeHandle: ?*u32, pszGroupName: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "advapi32" fn EnumServicesStatusExW( hSCManager: SC_HANDLE, InfoLevel: SC_ENUM_TYPE, dwServiceType: ENUM_SERVICE_TYPE, dwServiceState: ENUM_SERVICE_STATE, // TODO: what to do with BytesParamIndex 5? lpServices: ?*u8, cbBufSize: u32, pcbBytesNeeded: ?*u32, lpServicesReturned: ?*u32, lpResumeHandle: ?*u32, pszGroupName: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "advapi32" fn GetServiceKeyNameA( hSCManager: SC_HANDLE, lpDisplayName: ?[*:0]const u8, lpServiceName: ?[*:0]u8, lpcchBuffer: ?*u32, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "advapi32" fn GetServiceKeyNameW( hSCManager: SC_HANDLE, lpDisplayName: ?[*:0]const u16, lpServiceName: ?[*:0]u16, lpcchBuffer: ?*u32, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "advapi32" fn GetServiceDisplayNameA( hSCManager: SC_HANDLE, lpServiceName: ?[*:0]const u8, lpDisplayName: ?[*:0]u8, lpcchBuffer: ?*u32, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "advapi32" fn GetServiceDisplayNameW( hSCManager: SC_HANDLE, lpServiceName: ?[*:0]const u16, lpDisplayName: ?[*:0]u16, lpcchBuffer: ?*u32, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "advapi32" fn LockServiceDatabase( hSCManager: SC_HANDLE, ) callconv(@import("std").os.windows.WINAPI) ?*anyopaque; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "advapi32" fn NotifyBootConfigStatus( BootAcceptable: BOOL, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "advapi32" fn OpenSCManagerA( lpMachineName: ?[*:0]const u8, lpDatabaseName: ?[*:0]const u8, dwDesiredAccess: u32, ) callconv(@import("std").os.windows.WINAPI) SC_HANDLE; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "advapi32" fn OpenSCManagerW( lpMachineName: ?[*:0]const u16, lpDatabaseName: ?[*:0]const u16, dwDesiredAccess: u32, ) callconv(@import("std").os.windows.WINAPI) SC_HANDLE; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "advapi32" fn OpenServiceA( hSCManager: SC_HANDLE, lpServiceName: ?[*:0]const u8, dwDesiredAccess: u32, ) callconv(@import("std").os.windows.WINAPI) SC_HANDLE; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "advapi32" fn OpenServiceW( hSCManager: SC_HANDLE, lpServiceName: ?[*:0]const u16, dwDesiredAccess: u32, ) callconv(@import("std").os.windows.WINAPI) SC_HANDLE; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "advapi32" fn QueryServiceConfigA( hService: SC_HANDLE, // TODO: what to do with BytesParamIndex 2? lpServiceConfig: ?*QUERY_SERVICE_CONFIGA, cbBufSize: u32, pcbBytesNeeded: ?*u32, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "advapi32" fn QueryServiceConfigW( hService: SC_HANDLE, // TODO: what to do with BytesParamIndex 2? lpServiceConfig: ?*QUERY_SERVICE_CONFIGW, cbBufSize: u32, pcbBytesNeeded: ?*u32, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "advapi32" fn QueryServiceConfig2A( hService: SC_HANDLE, dwInfoLevel: SERVICE_CONFIG, // TODO: what to do with BytesParamIndex 3? lpBuffer: ?*u8, cbBufSize: u32, pcbBytesNeeded: ?*u32, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "advapi32" fn QueryServiceConfig2W( hService: SC_HANDLE, dwInfoLevel: SERVICE_CONFIG, // TODO: what to do with BytesParamIndex 3? lpBuffer: ?*u8, cbBufSize: u32, pcbBytesNeeded: ?*u32, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "advapi32" fn QueryServiceLockStatusA( hSCManager: SC_HANDLE, // TODO: what to do with BytesParamIndex 2? lpLockStatus: ?*QUERY_SERVICE_LOCK_STATUSA, cbBufSize: u32, pcbBytesNeeded: ?*u32, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "advapi32" fn QueryServiceLockStatusW( hSCManager: SC_HANDLE, // TODO: what to do with BytesParamIndex 2? lpLockStatus: ?*QUERY_SERVICE_LOCK_STATUSW, cbBufSize: u32, pcbBytesNeeded: ?*u32, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "advapi32" fn QueryServiceObjectSecurity( hService: SC_HANDLE, dwSecurityInformation: u32, // TODO: what to do with BytesParamIndex 3? lpSecurityDescriptor: ?*SECURITY_DESCRIPTOR, cbBufSize: u32, pcbBytesNeeded: ?*u32, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "advapi32" fn QueryServiceStatus( hService: SC_HANDLE, lpServiceStatus: ?*SERVICE_STATUS, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "advapi32" fn QueryServiceStatusEx( hService: SC_HANDLE, InfoLevel: SC_STATUS_TYPE, // TODO: what to do with BytesParamIndex 3? lpBuffer: ?*u8, cbBufSize: u32, pcbBytesNeeded: ?*u32, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "advapi32" fn RegisterServiceCtrlHandlerA( lpServiceName: ?[*:0]const u8, lpHandlerProc: ?LPHANDLER_FUNCTION, ) callconv(@import("std").os.windows.WINAPI) SERVICE_STATUS_HANDLE; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "advapi32" fn RegisterServiceCtrlHandlerW( lpServiceName: ?[*:0]const u16, lpHandlerProc: ?LPHANDLER_FUNCTION, ) callconv(@import("std").os.windows.WINAPI) SERVICE_STATUS_HANDLE; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "advapi32" fn RegisterServiceCtrlHandlerExA( lpServiceName: ?[*:0]const u8, lpHandlerProc: ?LPHANDLER_FUNCTION_EX, lpContext: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) SERVICE_STATUS_HANDLE; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "advapi32" fn RegisterServiceCtrlHandlerExW( lpServiceName: ?[*:0]const u16, lpHandlerProc: ?LPHANDLER_FUNCTION_EX, lpContext: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) SERVICE_STATUS_HANDLE; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "advapi32" fn SetServiceObjectSecurity( hService: SC_HANDLE, dwSecurityInformation: OBJECT_SECURITY_INFORMATION, lpSecurityDescriptor: ?*SECURITY_DESCRIPTOR, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "advapi32" fn SetServiceStatus( hServiceStatus: SERVICE_STATUS_HANDLE, lpServiceStatus: ?*SERVICE_STATUS, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "advapi32" fn StartServiceCtrlDispatcherA( lpServiceStartTable: ?*const SERVICE_TABLE_ENTRYA, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "advapi32" fn StartServiceCtrlDispatcherW( lpServiceStartTable: ?*const SERVICE_TABLE_ENTRYW, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "advapi32" fn StartServiceA( hService: SC_HANDLE, dwNumServiceArgs: u32, lpServiceArgVectors: ?[*]?PSTR, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "advapi32" fn StartServiceW( hService: SC_HANDLE, dwNumServiceArgs: u32, lpServiceArgVectors: ?[*]?PWSTR, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "advapi32" fn UnlockServiceDatabase( ScLock: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows6.0.6000' pub extern "advapi32" fn NotifyServiceStatusChangeA( hService: SC_HANDLE, dwNotifyMask: SERVICE_NOTIFY, pNotifyBuffer: ?*SERVICE_NOTIFY_2A, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'windows6.0.6000' pub extern "advapi32" fn NotifyServiceStatusChangeW( hService: SC_HANDLE, dwNotifyMask: SERVICE_NOTIFY, pNotifyBuffer: ?*SERVICE_NOTIFY_2W, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'windows6.0.6000' pub extern "advapi32" fn ControlServiceExA( hService: SC_HANDLE, dwControl: u32, dwInfoLevel: u32, pControlParams: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows6.0.6000' pub extern "advapi32" fn ControlServiceExW( hService: SC_HANDLE, dwControl: u32, dwInfoLevel: u32, pControlParams: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows8.0' pub extern "advapi32" fn QueryServiceDynamicInformation( hServiceStatus: SERVICE_STATUS_HANDLE, dwInfoLevel: u32, ppDynamicInfo: ?*?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) BOOL; pub extern "advapi32" fn WaitServiceState( hService: SC_HANDLE, dwNotify: u32, dwTimeout: u32, hCancelEvent: ?HANDLE, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'windows10.0.19041' pub extern "api-ms-win-service-core-l1-1-3" fn GetServiceRegistryStateKey( ServiceStatusHandle: SERVICE_STATUS_HANDLE, StateType: SERVICE_REGISTRY_STATE_TYPE, AccessMask: u32, ServiceStateKey: ?*?HKEY, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'windows10.0.19041' pub extern "api-ms-win-service-core-l1-1-4" fn GetServiceDirectory( hServiceStatus: SERVICE_STATUS_HANDLE, eDirectoryType: SERVICE_DIRECTORY_TYPE, lpPathBuffer: ?[*]u16, cchPathBufferLength: u32, lpcchRequiredBufferLength: ?*u32, ) callconv(@import("std").os.windows.WINAPI) u32; pub extern "api-ms-win-service-core-l1-1-5" fn GetSharedServiceRegistryStateKey( ServiceHandle: SC_HANDLE, StateType: SERVICE_SHARED_REGISTRY_STATE_TYPE, AccessMask: u32, ServiceStateKey: ?*?HKEY, ) callconv(@import("std").os.windows.WINAPI) u32; pub extern "api-ms-win-service-core-l1-1-5" fn GetSharedServiceDirectory( ServiceHandle: SC_HANDLE, DirectoryType: SERVICE_SHARED_DIRECTORY_TYPE, PathBuffer: ?[*]u16, PathBufferLength: u32, RequiredBufferLength: ?*u32, ) callconv(@import("std").os.windows.WINAPI) u32; //-------------------------------------------------------------------------------- // Section: Unicode Aliases (31) //-------------------------------------------------------------------------------- const thismodule = @This(); pub usingnamespace switch (@import("../zig.zig").unicode_mode) { .ansi => struct { pub const SERVICE_DESCRIPTION = thismodule.SERVICE_DESCRIPTIONA; pub const SERVICE_FAILURE_ACTIONS = thismodule.SERVICE_FAILURE_ACTIONSA; pub const SERVICE_REQUIRED_PRIVILEGES_INFO = thismodule.SERVICE_REQUIRED_PRIVILEGES_INFOA; pub const ENUM_SERVICE_STATUS = thismodule.ENUM_SERVICE_STATUSA; pub const ENUM_SERVICE_STATUS_PROCESS = thismodule.ENUM_SERVICE_STATUS_PROCESSA; pub const QUERY_SERVICE_LOCK_STATUS = thismodule.QUERY_SERVICE_LOCK_STATUSA; pub const QUERY_SERVICE_CONFIG = thismodule.QUERY_SERVICE_CONFIGA; pub const SERVICE_MAIN_FUNCTION = thismodule.SERVICE_MAIN_FUNCTIONA; pub const LPSERVICE_MAIN_FUNCTION = thismodule.LPSERVICE_MAIN_FUNCTIONA; pub const SERVICE_TABLE_ENTRY = thismodule.SERVICE_TABLE_ENTRYA; pub const SERVICE_NOTIFY_2 = thismodule.SERVICE_NOTIFY_2A; pub const SERVICE_CONTROL_STATUS_REASON_PARAMS = thismodule.SERVICE_CONTROL_STATUS_REASON_PARAMSA; pub const ChangeServiceConfig = thismodule.ChangeServiceConfigA; pub const ChangeServiceConfig2 = thismodule.ChangeServiceConfig2A; pub const CreateService = thismodule.CreateServiceA; pub const EnumDependentServices = thismodule.EnumDependentServicesA; pub const EnumServicesStatus = thismodule.EnumServicesStatusA; pub const EnumServicesStatusEx = thismodule.EnumServicesStatusExA; pub const GetServiceKeyName = thismodule.GetServiceKeyNameA; pub const GetServiceDisplayName = thismodule.GetServiceDisplayNameA; pub const OpenSCManager = thismodule.OpenSCManagerA; pub const OpenService = thismodule.OpenServiceA; pub const QueryServiceConfig = thismodule.QueryServiceConfigA; pub const QueryServiceConfig2 = thismodule.QueryServiceConfig2A; pub const QueryServiceLockStatus = thismodule.QueryServiceLockStatusA; pub const RegisterServiceCtrlHandler = thismodule.RegisterServiceCtrlHandlerA; pub const RegisterServiceCtrlHandlerEx = thismodule.RegisterServiceCtrlHandlerExA; pub const StartServiceCtrlDispatcher = thismodule.StartServiceCtrlDispatcherA; pub const StartService = thismodule.StartServiceA; pub const NotifyServiceStatusChange = thismodule.NotifyServiceStatusChangeA; pub const ControlServiceEx = thismodule.ControlServiceExA; }, .wide => struct { pub const SERVICE_DESCRIPTION = thismodule.SERVICE_DESCRIPTIONW; pub const SERVICE_FAILURE_ACTIONS = thismodule.SERVICE_FAILURE_ACTIONSW; pub const SERVICE_REQUIRED_PRIVILEGES_INFO = thismodule.SERVICE_REQUIRED_PRIVILEGES_INFOW; pub const ENUM_SERVICE_STATUS = thismodule.ENUM_SERVICE_STATUSW; pub const ENUM_SERVICE_STATUS_PROCESS = thismodule.ENUM_SERVICE_STATUS_PROCESSW; pub const QUERY_SERVICE_LOCK_STATUS = thismodule.QUERY_SERVICE_LOCK_STATUSW; pub const QUERY_SERVICE_CONFIG = thismodule.QUERY_SERVICE_CONFIGW; pub const SERVICE_MAIN_FUNCTION = thismodule.SERVICE_MAIN_FUNCTIONW; pub const LPSERVICE_MAIN_FUNCTION = thismodule.LPSERVICE_MAIN_FUNCTIONW; pub const SERVICE_TABLE_ENTRY = thismodule.SERVICE_TABLE_ENTRYW; pub const SERVICE_NOTIFY_2 = thismodule.SERVICE_NOTIFY_2W; pub const SERVICE_CONTROL_STATUS_REASON_PARAMS = thismodule.SERVICE_CONTROL_STATUS_REASON_PARAMSW; pub const ChangeServiceConfig = thismodule.ChangeServiceConfigW; pub const ChangeServiceConfig2 = thismodule.ChangeServiceConfig2W; pub const CreateService = thismodule.CreateServiceW; pub const EnumDependentServices = thismodule.EnumDependentServicesW; pub const EnumServicesStatus = thismodule.EnumServicesStatusW; pub const EnumServicesStatusEx = thismodule.EnumServicesStatusExW; pub const GetServiceKeyName = thismodule.GetServiceKeyNameW; pub const GetServiceDisplayName = thismodule.GetServiceDisplayNameW; pub const OpenSCManager = thismodule.OpenSCManagerW; pub const OpenService = thismodule.OpenServiceW; pub const QueryServiceConfig = thismodule.QueryServiceConfigW; pub const QueryServiceConfig2 = thismodule.QueryServiceConfig2W; pub const QueryServiceLockStatus = thismodule.QueryServiceLockStatusW; pub const RegisterServiceCtrlHandler = thismodule.RegisterServiceCtrlHandlerW; pub const RegisterServiceCtrlHandlerEx = thismodule.RegisterServiceCtrlHandlerExW; pub const StartServiceCtrlDispatcher = thismodule.StartServiceCtrlDispatcherW; pub const StartService = thismodule.StartServiceW; pub const NotifyServiceStatusChange = thismodule.NotifyServiceStatusChangeW; pub const ControlServiceEx = thismodule.ControlServiceExW; }, .unspecified => if (@import("builtin").is_test) struct { pub const SERVICE_DESCRIPTION = *opaque {}; pub const SERVICE_FAILURE_ACTIONS = *opaque {}; pub const SERVICE_REQUIRED_PRIVILEGES_INFO = *opaque {}; pub const ENUM_SERVICE_STATUS = *opaque {}; pub const ENUM_SERVICE_STATUS_PROCESS = *opaque {}; pub const QUERY_SERVICE_LOCK_STATUS = *opaque {}; pub const QUERY_SERVICE_CONFIG = *opaque {}; pub const SERVICE_MAIN_FUNCTION = *opaque {}; pub const LPSERVICE_MAIN_FUNCTION = *opaque {}; pub const SERVICE_TABLE_ENTRY = *opaque {}; pub const SERVICE_NOTIFY_2 = *opaque {}; pub const SERVICE_CONTROL_STATUS_REASON_PARAMS = *opaque {}; pub const ChangeServiceConfig = *opaque {}; pub const ChangeServiceConfig2 = *opaque {}; pub const CreateService = *opaque {}; pub const EnumDependentServices = *opaque {}; pub const EnumServicesStatus = *opaque {}; pub const EnumServicesStatusEx = *opaque {}; pub const GetServiceKeyName = *opaque {}; pub const GetServiceDisplayName = *opaque {}; pub const OpenSCManager = *opaque {}; pub const OpenService = *opaque {}; pub const QueryServiceConfig = *opaque {}; pub const QueryServiceConfig2 = *opaque {}; pub const QueryServiceLockStatus = *opaque {}; pub const RegisterServiceCtrlHandler = *opaque {}; pub const RegisterServiceCtrlHandlerEx = *opaque {}; pub const StartServiceCtrlDispatcher = *opaque {}; pub const StartService = *opaque {}; pub const NotifyServiceStatusChange = *opaque {}; pub const ControlServiceEx = *opaque {}; } else struct { pub const SERVICE_DESCRIPTION = @compileError("'SERVICE_DESCRIPTION' requires that UNICODE be set to true or false in the root module"); pub const SERVICE_FAILURE_ACTIONS = @compileError("'SERVICE_FAILURE_ACTIONS' requires that UNICODE be set to true or false in the root module"); pub const SERVICE_REQUIRED_PRIVILEGES_INFO = @compileError("'SERVICE_REQUIRED_PRIVILEGES_INFO' requires that UNICODE be set to true or false in the root module"); pub const ENUM_SERVICE_STATUS = @compileError("'ENUM_SERVICE_STATUS' requires that UNICODE be set to true or false in the root module"); pub const ENUM_SERVICE_STATUS_PROCESS = @compileError("'ENUM_SERVICE_STATUS_PROCESS' requires that UNICODE be set to true or false in the root module"); pub const QUERY_SERVICE_LOCK_STATUS = @compileError("'QUERY_SERVICE_LOCK_STATUS' requires that UNICODE be set to true or false in the root module"); pub const QUERY_SERVICE_CONFIG = @compileError("'QUERY_SERVICE_CONFIG' requires that UNICODE be set to true or false in the root module"); pub const SERVICE_MAIN_FUNCTION = @compileError("'SERVICE_MAIN_FUNCTION' requires that UNICODE be set to true or false in the root module"); pub const LPSERVICE_MAIN_FUNCTION = @compileError("'LPSERVICE_MAIN_FUNCTION' requires that UNICODE be set to true or false in the root module"); pub const SERVICE_TABLE_ENTRY = @compileError("'SERVICE_TABLE_ENTRY' requires that UNICODE be set to true or false in the root module"); pub const SERVICE_NOTIFY_2 = @compileError("'SERVICE_NOTIFY_2' requires that UNICODE be set to true or false in the root module"); pub const SERVICE_CONTROL_STATUS_REASON_PARAMS = @compileError("'SERVICE_CONTROL_STATUS_REASON_PARAMS' requires that UNICODE be set to true or false in the root module"); pub const ChangeServiceConfig = @compileError("'ChangeServiceConfig' requires that UNICODE be set to true or false in the root module"); pub const ChangeServiceConfig2 = @compileError("'ChangeServiceConfig2' requires that UNICODE be set to true or false in the root module"); pub const CreateService = @compileError("'CreateService' requires that UNICODE be set to true or false in the root module"); pub const EnumDependentServices = @compileError("'EnumDependentServices' requires that UNICODE be set to true or false in the root module"); pub const EnumServicesStatus = @compileError("'EnumServicesStatus' requires that UNICODE be set to true or false in the root module"); pub const EnumServicesStatusEx = @compileError("'EnumServicesStatusEx' requires that UNICODE be set to true or false in the root module"); pub const GetServiceKeyName = @compileError("'GetServiceKeyName' requires that UNICODE be set to true or false in the root module"); pub const GetServiceDisplayName = @compileError("'GetServiceDisplayName' requires that UNICODE be set to true or false in the root module"); pub const OpenSCManager = @compileError("'OpenSCManager' requires that UNICODE be set to true or false in the root module"); pub const OpenService = @compileError("'OpenService' requires that UNICODE be set to true or false in the root module"); pub const QueryServiceConfig = @compileError("'QueryServiceConfig' requires that UNICODE be set to true or false in the root module"); pub const QueryServiceConfig2 = @compileError("'QueryServiceConfig2' requires that UNICODE be set to true or false in the root module"); pub const QueryServiceLockStatus = @compileError("'QueryServiceLockStatus' requires that UNICODE be set to true or false in the root module"); pub const RegisterServiceCtrlHandler = @compileError("'RegisterServiceCtrlHandler' requires that UNICODE be set to true or false in the root module"); pub const RegisterServiceCtrlHandlerEx = @compileError("'RegisterServiceCtrlHandlerEx' requires that UNICODE be set to true or false in the root module"); pub const StartServiceCtrlDispatcher = @compileError("'StartServiceCtrlDispatcher' requires that UNICODE be set to true or false in the root module"); pub const StartService = @compileError("'StartService' requires that UNICODE be set to true or false in the root module"); pub const NotifyServiceStatusChange = @compileError("'NotifyServiceStatusChange' requires that UNICODE be set to true or false in the root module"); pub const ControlServiceEx = @compileError("'ControlServiceEx' requires that UNICODE be set to true or false in the root module"); }, }; //-------------------------------------------------------------------------------- // Section: Imports (11) //-------------------------------------------------------------------------------- const Guid = @import("../zig.zig").Guid; const BOOL = @import("../foundation.zig").BOOL; const BOOLEAN = @import("../foundation.zig").BOOLEAN; const HANDLE = @import("../foundation.zig").HANDLE; const HKEY = @import("../system/registry.zig").HKEY; const LARGE_INTEGER = @import("../foundation.zig").LARGE_INTEGER; const OBJECT_SECURITY_INFORMATION = @import("../security.zig").OBJECT_SECURITY_INFORMATION; const PSTR = @import("../foundation.zig").PSTR; const PWSTR = @import("../foundation.zig").PWSTR; const SC_HANDLE = @import("../security.zig").SC_HANDLE; const SECURITY_DESCRIPTOR = @import("../security.zig").SECURITY_DESCRIPTOR; test { // The following '_ = <FuncPtrType>' lines are a workaround for https://github.com/ziglang/zig/issues/4476 if (@hasDecl(@This(), "SERVICE_MAIN_FUNCTIONW")) { _ = SERVICE_MAIN_FUNCTIONW; } if (@hasDecl(@This(), "SERVICE_MAIN_FUNCTIONA")) { _ = SERVICE_MAIN_FUNCTIONA; } if (@hasDecl(@This(), "LPSERVICE_MAIN_FUNCTIONW")) { _ = LPSERVICE_MAIN_FUNCTIONW; } if (@hasDecl(@This(), "LPSERVICE_MAIN_FUNCTIONA")) { _ = LPSERVICE_MAIN_FUNCTIONA; } if (@hasDecl(@This(), "HANDLER_FUNCTION")) { _ = HANDLER_FUNCTION; } if (@hasDecl(@This(), "HANDLER_FUNCTION_EX")) { _ = HANDLER_FUNCTION_EX; } if (@hasDecl(@This(), "LPHANDLER_FUNCTION")) { _ = LPHANDLER_FUNCTION; } if (@hasDecl(@This(), "LPHANDLER_FUNCTION_EX")) { _ = LPHANDLER_FUNCTION_EX; } if (@hasDecl(@This(), "PFN_SC_NOTIFY_CALLBACK")) { _ = PFN_SC_NOTIFY_CALLBACK; } if (@hasDecl(@This(), "PSC_NOTIFICATION_CALLBACK")) { _ = PSC_NOTIFICATION_CALLBACK; } @setEvalBranchQuota(comptime @import("std").meta.declarations(@This()).len * 3); // reference all the pub declarations if (!@import("builtin").is_test) return; inline for (comptime @import("std").meta.declarations(@This())) |decl| { if (decl.is_pub) { _ = @field(@This(), decl.name); } } }
0
repos/capy/vendor/zigwin32/win32
repos/capy/vendor/zigwin32/win32/system/mapi.zig
//! NOTE: this file is autogenerated, DO NOT MODIFY //-------------------------------------------------------------------------------- // Section: Constants (55) //-------------------------------------------------------------------------------- pub const MAPI_OLE = @as(u32, 1); pub const MAPI_OLE_STATIC = @as(u32, 2); pub const MAPI_ORIG = @as(u32, 0); pub const MAPI_TO = @as(u32, 1); pub const MAPI_CC = @as(u32, 2); pub const MAPI_BCC = @as(u32, 3); pub const MAPI_UNREAD = @as(u32, 1); pub const MAPI_RECEIPT_REQUESTED = @as(u32, 2); pub const MAPI_SENT = @as(u32, 4); pub const MAPI_LOGON_UI = @as(u32, 1); pub const MAPI_PASSWORD_UI = @as(u32, 131072); pub const MAPI_NEW_SESSION = @as(u32, 2); pub const MAPI_FORCE_DOWNLOAD = @as(u32, 4096); pub const MAPI_EXTENDED = @as(u32, 32); pub const MAPI_DIALOG = @as(u32, 8); pub const MAPI_FORCE_UNICODE = @as(u32, 262144); pub const MAPI_UNREAD_ONLY = @as(u32, 32); pub const MAPI_GUARANTEE_FIFO = @as(u32, 256); pub const MAPI_LONG_MSGID = @as(u32, 16384); pub const MAPI_PEEK = @as(u32, 128); pub const MAPI_SUPPRESS_ATTACH = @as(u32, 2048); pub const MAPI_ENVELOPE_ONLY = @as(u32, 64); pub const MAPI_BODY_AS_FILE = @as(u32, 512); pub const MAPI_AB_NOMODIFY = @as(u32, 1024); pub const SUCCESS_SUCCESS = @as(u32, 0); pub const MAPI_USER_ABORT = @as(u32, 1); pub const MAPI_E_USER_ABORT = @as(u32, 1); pub const MAPI_E_FAILURE = @as(u32, 2); pub const MAPI_E_LOGON_FAILURE = @as(u32, 3); pub const MAPI_E_LOGIN_FAILURE = @as(u32, 3); pub const MAPI_E_DISK_FULL = @as(u32, 4); pub const MAPI_E_INSUFFICIENT_MEMORY = @as(u32, 5); pub const MAPI_E_ACCESS_DENIED = @as(u32, 6); pub const MAPI_E_TOO_MANY_SESSIONS = @as(u32, 8); pub const MAPI_E_TOO_MANY_FILES = @as(u32, 9); pub const MAPI_E_TOO_MANY_RECIPIENTS = @as(u32, 10); pub const MAPI_E_ATTACHMENT_NOT_FOUND = @as(u32, 11); pub const MAPI_E_ATTACHMENT_OPEN_FAILURE = @as(u32, 12); pub const MAPI_E_ATTACHMENT_WRITE_FAILURE = @as(u32, 13); pub const MAPI_E_UNKNOWN_RECIPIENT = @as(u32, 14); pub const MAPI_E_BAD_RECIPTYPE = @as(u32, 15); pub const MAPI_E_NO_MESSAGES = @as(u32, 16); pub const MAPI_E_INVALID_MESSAGE = @as(u32, 17); pub const MAPI_E_TEXT_TOO_LARGE = @as(u32, 18); pub const MAPI_E_INVALID_SESSION = @as(u32, 19); pub const MAPI_E_TYPE_NOT_SUPPORTED = @as(u32, 20); pub const MAPI_E_AMBIGUOUS_RECIPIENT = @as(u32, 21); pub const MAPI_E_AMBIG_RECIP = @as(u32, 21); pub const MAPI_E_MESSAGE_IN_USE = @as(u32, 22); pub const MAPI_E_NETWORK_FAILURE = @as(u32, 23); pub const MAPI_E_INVALID_EDITFIELDS = @as(u32, 24); pub const MAPI_E_INVALID_RECIPS = @as(u32, 25); pub const MAPI_E_NOT_SUPPORTED = @as(u32, 26); pub const MAPI_E_UNICODE_NOT_SUPPORTED = @as(u32, 27); pub const MAPI_E_ATTACHMENT_TOO_LARGE = @as(u32, 28); //-------------------------------------------------------------------------------- // Section: Types (20) //-------------------------------------------------------------------------------- pub const MapiFileDesc = extern struct { ulReserved: u32, flFlags: u32, nPosition: u32, lpszPathName: ?PSTR, lpszFileName: ?PSTR, lpFileType: ?*anyopaque, }; pub const MapiFileDescW = extern struct { ulReserved: u32, flFlags: u32, nPosition: u32, lpszPathName: ?PWSTR, lpszFileName: ?PWSTR, lpFileType: ?*anyopaque, }; pub const MapiFileTagExt = extern struct { ulReserved: u32, cbTag: u32, lpTag: ?*u8, cbEncoding: u32, lpEncoding: ?*u8, }; pub const MapiRecipDesc = extern struct { ulReserved: u32, ulRecipClass: u32, lpszName: ?PSTR, lpszAddress: ?PSTR, ulEIDSize: u32, lpEntryID: ?*anyopaque, }; pub const MapiRecipDescW = extern struct { ulReserved: u32, ulRecipClass: u32, lpszName: ?PWSTR, lpszAddress: ?PWSTR, ulEIDSize: u32, lpEntryID: ?*anyopaque, }; pub const MapiMessage = extern struct { ulReserved: u32, lpszSubject: ?PSTR, lpszNoteText: ?PSTR, lpszMessageType: ?PSTR, lpszDateReceived: ?PSTR, lpszConversationID: ?PSTR, flFlags: u32, lpOriginator: ?*MapiRecipDesc, nRecipCount: u32, lpRecips: ?*MapiRecipDesc, nFileCount: u32, lpFiles: ?*MapiFileDesc, }; pub const MapiMessageW = extern struct { ulReserved: u32, lpszSubject: ?PWSTR, lpszNoteText: ?PWSTR, lpszMessageType: ?PWSTR, lpszDateReceived: ?PWSTR, lpszConversationID: ?PWSTR, flFlags: u32, lpOriginator: ?*MapiRecipDescW, nRecipCount: u32, lpRecips: ?*MapiRecipDescW, nFileCount: u32, lpFiles: ?*MapiFileDescW, }; pub const LPMAPILOGON = switch (@import("builtin").zig_backend) { .stage1 => fn ( ulUIParam: usize, lpszProfileName: ?PSTR, lpszPassword: ?PSTR, flFlags: u32, ulReserved: u32, lplhSession: ?*usize, ) callconv(@import("std").os.windows.WINAPI) u32, else => *const fn ( ulUIParam: usize, lpszProfileName: ?PSTR, lpszPassword: ?PSTR, flFlags: u32, ulReserved: u32, lplhSession: ?*usize, ) callconv(@import("std").os.windows.WINAPI) u32, }; pub const LPMAPILOGOFF = switch (@import("builtin").zig_backend) { .stage1 => fn ( lhSession: usize, ulUIParam: usize, flFlags: u32, ulReserved: u32, ) callconv(@import("std").os.windows.WINAPI) u32, else => *const fn ( lhSession: usize, ulUIParam: usize, flFlags: u32, ulReserved: u32, ) callconv(@import("std").os.windows.WINAPI) u32, }; pub const LPMAPISENDMAIL = switch (@import("builtin").zig_backend) { .stage1 => fn ( lhSession: usize, ulUIParam: usize, lpMessage: ?*MapiMessage, flFlags: u32, ulReserved: u32, ) callconv(@import("std").os.windows.WINAPI) u32, else => *const fn ( lhSession: usize, ulUIParam: usize, lpMessage: ?*MapiMessage, flFlags: u32, ulReserved: u32, ) callconv(@import("std").os.windows.WINAPI) u32, }; pub const LPMAPISENDMAILW = switch (@import("builtin").zig_backend) { .stage1 => fn ( lhSession: usize, ulUIParam: usize, lpMessage: ?*MapiMessageW, flFlags: u32, ulReserved: u32, ) callconv(@import("std").os.windows.WINAPI) u32, else => *const fn ( lhSession: usize, ulUIParam: usize, lpMessage: ?*MapiMessageW, flFlags: u32, ulReserved: u32, ) callconv(@import("std").os.windows.WINAPI) u32, }; pub const LPMAPISENDDOCUMENTS = switch (@import("builtin").zig_backend) { .stage1 => fn ( ulUIParam: usize, lpszDelimChar: ?PSTR, lpszFilePaths: ?PSTR, lpszFileNames: ?PSTR, ulReserved: u32, ) callconv(@import("std").os.windows.WINAPI) u32, else => *const fn ( ulUIParam: usize, lpszDelimChar: ?PSTR, lpszFilePaths: ?PSTR, lpszFileNames: ?PSTR, ulReserved: u32, ) callconv(@import("std").os.windows.WINAPI) u32, }; pub const LPMAPIFINDNEXT = switch (@import("builtin").zig_backend) { .stage1 => fn ( lhSession: usize, ulUIParam: usize, lpszMessageType: ?PSTR, lpszSeedMessageID: ?PSTR, flFlags: u32, ulReserved: u32, lpszMessageID: ?PSTR, ) callconv(@import("std").os.windows.WINAPI) u32, else => *const fn ( lhSession: usize, ulUIParam: usize, lpszMessageType: ?PSTR, lpszSeedMessageID: ?PSTR, flFlags: u32, ulReserved: u32, lpszMessageID: ?PSTR, ) callconv(@import("std").os.windows.WINAPI) u32, }; pub const LPMAPIREADMAIL = switch (@import("builtin").zig_backend) { .stage1 => fn ( lhSession: usize, ulUIParam: usize, lpszMessageID: ?PSTR, flFlags: u32, ulReserved: u32, lppMessage: ?*?*MapiMessage, ) callconv(@import("std").os.windows.WINAPI) u32, else => *const fn ( lhSession: usize, ulUIParam: usize, lpszMessageID: ?PSTR, flFlags: u32, ulReserved: u32, lppMessage: ?*?*MapiMessage, ) callconv(@import("std").os.windows.WINAPI) u32, }; pub const LPMAPISAVEMAIL = switch (@import("builtin").zig_backend) { .stage1 => fn ( lhSession: usize, ulUIParam: usize, lpMessage: ?*MapiMessage, flFlags: u32, ulReserved: u32, lpszMessageID: ?PSTR, ) callconv(@import("std").os.windows.WINAPI) u32, else => *const fn ( lhSession: usize, ulUIParam: usize, lpMessage: ?*MapiMessage, flFlags: u32, ulReserved: u32, lpszMessageID: ?PSTR, ) callconv(@import("std").os.windows.WINAPI) u32, }; pub const LPMAPIDELETEMAIL = switch (@import("builtin").zig_backend) { .stage1 => fn ( lhSession: usize, ulUIParam: usize, lpszMessageID: ?PSTR, flFlags: u32, ulReserved: u32, ) callconv(@import("std").os.windows.WINAPI) u32, else => *const fn ( lhSession: usize, ulUIParam: usize, lpszMessageID: ?PSTR, flFlags: u32, ulReserved: u32, ) callconv(@import("std").os.windows.WINAPI) u32, }; pub const LPMAPIFREEBUFFER = switch (@import("builtin").zig_backend) { .stage1 => fn ( pv: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) u32, else => *const fn ( pv: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) u32, }; pub const LPMAPIADDRESS = switch (@import("builtin").zig_backend) { .stage1 => fn ( lhSession: usize, ulUIParam: usize, lpszCaption: ?PSTR, nEditFields: u32, lpszLabels: ?PSTR, nRecips: u32, lpRecips: ?*MapiRecipDesc, flFlags: u32, ulReserved: u32, lpnNewRecips: ?*u32, lppNewRecips: ?*?*MapiRecipDesc, ) callconv(@import("std").os.windows.WINAPI) u32, else => *const fn ( lhSession: usize, ulUIParam: usize, lpszCaption: ?PSTR, nEditFields: u32, lpszLabels: ?PSTR, nRecips: u32, lpRecips: ?*MapiRecipDesc, flFlags: u32, ulReserved: u32, lpnNewRecips: ?*u32, lppNewRecips: ?*?*MapiRecipDesc, ) callconv(@import("std").os.windows.WINAPI) u32, }; pub const LPMAPIDETAILS = switch (@import("builtin").zig_backend) { .stage1 => fn ( lhSession: usize, ulUIParam: usize, lpRecip: ?*MapiRecipDesc, flFlags: u32, ulReserved: u32, ) callconv(@import("std").os.windows.WINAPI) u32, else => *const fn ( lhSession: usize, ulUIParam: usize, lpRecip: ?*MapiRecipDesc, flFlags: u32, ulReserved: u32, ) callconv(@import("std").os.windows.WINAPI) u32, }; pub const LPMAPIRESOLVENAME = switch (@import("builtin").zig_backend) { .stage1 => fn ( lhSession: usize, ulUIParam: usize, lpszName: ?PSTR, flFlags: u32, ulReserved: u32, lppRecip: ?*?*MapiRecipDesc, ) callconv(@import("std").os.windows.WINAPI) u32, else => *const fn ( lhSession: usize, ulUIParam: usize, lpszName: ?PSTR, flFlags: u32, ulReserved: u32, lppRecip: ?*?*MapiRecipDesc, ) callconv(@import("std").os.windows.WINAPI) u32, }; //-------------------------------------------------------------------------------- // Section: Functions (1) //-------------------------------------------------------------------------------- pub extern "mapi32" fn MAPIFreeBuffer( pv: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) u32; //-------------------------------------------------------------------------------- // Section: Unicode Aliases (0) //-------------------------------------------------------------------------------- const thismodule = @This(); pub usingnamespace switch (@import("../zig.zig").unicode_mode) { .ansi => struct {}, .wide => struct {}, .unspecified => if (@import("builtin").is_test) struct {} else struct {}, }; //-------------------------------------------------------------------------------- // Section: Imports (2) //-------------------------------------------------------------------------------- const PSTR = @import("../foundation.zig").PSTR; const PWSTR = @import("../foundation.zig").PWSTR; test { // The following '_ = <FuncPtrType>' lines are a workaround for https://github.com/ziglang/zig/issues/4476 if (@hasDecl(@This(), "LPMAPILOGON")) { _ = LPMAPILOGON; } if (@hasDecl(@This(), "LPMAPILOGOFF")) { _ = LPMAPILOGOFF; } if (@hasDecl(@This(), "LPMAPISENDMAIL")) { _ = LPMAPISENDMAIL; } if (@hasDecl(@This(), "LPMAPISENDMAILW")) { _ = LPMAPISENDMAILW; } if (@hasDecl(@This(), "LPMAPISENDDOCUMENTS")) { _ = LPMAPISENDDOCUMENTS; } if (@hasDecl(@This(), "LPMAPIFINDNEXT")) { _ = LPMAPIFINDNEXT; } if (@hasDecl(@This(), "LPMAPIREADMAIL")) { _ = LPMAPIREADMAIL; } if (@hasDecl(@This(), "LPMAPISAVEMAIL")) { _ = LPMAPISAVEMAIL; } if (@hasDecl(@This(), "LPMAPIDELETEMAIL")) { _ = LPMAPIDELETEMAIL; } if (@hasDecl(@This(), "LPMAPIFREEBUFFER")) { _ = LPMAPIFREEBUFFER; } if (@hasDecl(@This(), "LPMAPIADDRESS")) { _ = LPMAPIADDRESS; } if (@hasDecl(@This(), "LPMAPIDETAILS")) { _ = LPMAPIDETAILS; } if (@hasDecl(@This(), "LPMAPIRESOLVENAME")) { _ = LPMAPIRESOLVENAME; } @setEvalBranchQuota(comptime @import("std").meta.declarations(@This()).len * 3); // reference all the pub declarations if (!@import("builtin").is_test) return; inline for (comptime @import("std").meta.declarations(@This())) |decl| { if (decl.is_pub) { _ = @field(@This(), decl.name); } } }
0
repos/capy/vendor/zigwin32/win32
repos/capy/vendor/zigwin32/win32/system/iis.zig
//! NOTE: this file is autogenerated, DO NOT MODIFY //-------------------------------------------------------------------------------- // Section: Constants (862) //-------------------------------------------------------------------------------- pub const ADMINDATA_MAX_NAME_LEN = @as(u32, 256); pub const CLSID_MSAdminBase_W = Guid.initString("a9e69610-b80d-11d0-b9b9-00a0c922e750"); pub const IMGCHG_SIZE = @as(u32, 1); pub const IMGCHG_VIEW = @as(u32, 2); pub const IMGCHG_COMPLETE = @as(u32, 4); pub const IMGCHG_ANIMATE = @as(u32, 8); pub const IMGCHG_MASK = @as(u32, 15); pub const IMGLOAD_NOTLOADED = @as(u32, 1048576); pub const IMGLOAD_LOADING = @as(u32, 2097152); pub const IMGLOAD_STOPPED = @as(u32, 4194304); pub const IMGLOAD_ERROR = @as(u32, 8388608); pub const IMGLOAD_COMPLETE = @as(u32, 16777216); pub const IMGLOAD_MASK = @as(u32, 32505856); pub const IMGBITS_NONE = @as(u32, 33554432); pub const IMGBITS_PARTIAL = @as(u32, 67108864); pub const IMGBITS_TOTAL = @as(u32, 134217728); pub const IMGBITS_MASK = @as(u32, 234881024); pub const IMGANIM_ANIMATED = @as(u32, 268435456); pub const IMGANIM_MASK = @as(u32, 268435456); pub const IMGTRANS_OPAQUE = @as(u32, 536870912); pub const IMGTRANS_MASK = @as(u32, 536870912); pub const DWN_COLORMODE = @as(u32, 63); pub const DWN_DOWNLOADONLY = @as(u32, 64); pub const DWN_FORCEDITHER = @as(u32, 128); pub const DWN_RAWIMAGE = @as(u32, 256); pub const DWN_MIRRORIMAGE = @as(u32, 512); pub const CLSID_IImgCtx = Guid.initString("3050f3d6-98b5-11cf-bb82-00aa00bdce0b"); pub const IIS_MD_ADSI_METAID_BEGIN = @as(u32, 130000); pub const IIS_MD_UT_SERVER = @as(u32, 1); pub const IIS_MD_UT_FILE = @as(u32, 2); pub const IIS_MD_UT_WAM = @as(u32, 100); pub const ASP_MD_UT_APP = @as(u32, 101); pub const IIS_MD_UT_END_RESERVED = @as(u32, 2000); pub const IIS_MD_ID_BEGIN_RESERVED = @as(u32, 1); pub const IIS_MD_ID_END_RESERVED = @as(u32, 32767); pub const ASP_MD_ID_BEGIN_RESERVED = @as(u32, 28672); pub const ASP_MD_ID_END_RESERVED = @as(u32, 29951); pub const WAM_MD_ID_BEGIN_RESERVED = @as(u32, 29952); pub const WAM_MD_ID_END_RESERVED = @as(u32, 32767); pub const FP_MD_ID_BEGIN_RESERVED = @as(u32, 32768); pub const FP_MD_ID_END_RESERVED = @as(u32, 36863); pub const SMTP_MD_ID_BEGIN_RESERVED = @as(u32, 36864); pub const SMTP_MD_ID_END_RESERVED = @as(u32, 40959); pub const POP3_MD_ID_BEGIN_RESERVED = @as(u32, 40960); pub const POP3_MD_ID_END_RESERVED = @as(u32, 45055); pub const NNTP_MD_ID_BEGIN_RESERVED = @as(u32, 45056); pub const NNTP_MD_ID_END_RESERVED = @as(u32, 49151); pub const IMAP_MD_ID_BEGIN_RESERVED = @as(u32, 49152); pub const IMAP_MD_ID_END_RESERVED = @as(u32, 53247); pub const MSCS_MD_ID_BEGIN_RESERVED = @as(u32, 53248); pub const MSCS_MD_ID_END_RESERVED = @as(u32, 57343); pub const APPCTR_MD_ID_BEGIN_RESERVED = @as(u32, 57344); pub const APPCTR_MD_ID_END_RESERVED = @as(u32, 61439); pub const USER_MD_ID_BASE_RESERVED = @as(u32, 65535); pub const IIS_MD_SERVER_BASE = @as(u32, 1000); pub const MD_MAX_BANDWIDTH = @as(u32, 1000); pub const MD_KEY_TYPE = @as(u32, 1002); pub const MD_MAX_BANDWIDTH_BLOCKED = @as(u32, 1003); pub const MD_SCHEMA_METAID = @as(u32, 1004); pub const MD_SERVER_COMMAND = @as(u32, 1012); pub const MD_CONNECTION_TIMEOUT = @as(u32, 1013); pub const MD_MAX_CONNECTIONS = @as(u32, 1014); pub const MD_SERVER_COMMENT = @as(u32, 1015); pub const MD_SERVER_STATE = @as(u32, 1016); pub const MD_SERVER_AUTOSTART = @as(u32, 1017); pub const MD_SERVER_SIZE = @as(u32, 1018); pub const MD_SERVER_LISTEN_BACKLOG = @as(u32, 1019); pub const MD_SERVER_LISTEN_TIMEOUT = @as(u32, 1020); pub const MD_DOWNLEVEL_ADMIN_INSTANCE = @as(u32, 1021); pub const MD_LEVELS_TO_SCAN = @as(u32, 1022); pub const MD_SERVER_BINDINGS = @as(u32, 1023); pub const MD_MAX_ENDPOINT_CONNECTIONS = @as(u32, 1024); pub const MD_SERVER_CONFIGURATION_INFO = @as(u32, 1027); pub const MD_IISADMIN_EXTENSIONS = @as(u32, 1028); pub const MD_DISABLE_SOCKET_POOLING = @as(u32, 1029); pub const MD_METADATA_ID_REGISTRATION = @as(u32, 1030); pub const IIS_MD_HTTP_BASE = @as(u32, 2000); pub const MD_SECURE_BINDINGS = @as(u32, 2021); pub const MD_BINDINGS = @as(u32, 2022); pub const MD_ENABLEDPROTOCOLS = @as(u32, 2023); pub const MD_FILTER_LOAD_ORDER = @as(u32, 2040); pub const MD_FILTER_IMAGE_PATH = @as(u32, 2041); pub const MD_FILTER_STATE = @as(u32, 2042); pub const MD_FILTER_ENABLED = @as(u32, 2043); pub const MD_FILTER_FLAGS = @as(u32, 2044); pub const MD_FILTER_DESCRIPTION = @as(u32, 2045); pub const MD_FILTER_ENABLE_CACHE = @as(u32, 2046); pub const MD_ADV_NOTIFY_PWD_EXP_IN_DAYS = @as(u32, 2063); pub const MD_ADV_CACHE_TTL = @as(u32, 2064); pub const MD_NET_LOGON_WKS = @as(u32, 2065); pub const MD_USE_HOST_NAME = @as(u32, 2066); pub const MD_AUTH_CHANGE_FLAGS = @as(u32, 2068); pub const MD_PROCESS_NTCR_IF_LOGGED_ON = @as(u32, 2070); pub const MD_FRONTPAGE_WEB = @as(u32, 2072); pub const MD_IN_PROCESS_ISAPI_APPS = @as(u32, 2073); pub const MD_AUTH_CHANGE_URL = @as(u32, 2060); pub const MD_AUTH_EXPIRED_URL = @as(u32, 2061); pub const MD_AUTH_EXPIRED_UNSECUREURL = @as(u32, 2067); pub const MD_ALLOW_PATH_INFO_FOR_SCRIPT_MAPPINGS = @as(u32, 2095); pub const MD_APP_FRIENDLY_NAME = @as(u32, 2102); pub const MD_APP_ROOT = @as(u32, 2103); pub const MD_APP_ISOLATED = @as(u32, 2104); pub const MD_APP_WAM_CLSID = @as(u32, 2105); pub const MD_APP_PACKAGE_ID = @as(u32, 2106); pub const MD_APP_PACKAGE_NAME = @as(u32, 2107); pub const MD_APP_OOP_RECOVER_LIMIT = @as(u32, 2110); pub const MD_APP_PERIODIC_RESTART_TIME = @as(u32, 2111); pub const MD_APP_PERIODIC_RESTART_REQUESTS = @as(u32, 2112); pub const MD_APP_PERIODIC_RESTART_SCHEDULE = @as(u32, 2113); pub const MD_APP_SHUTDOWN_TIME_LIMIT = @as(u32, 2114); pub const MD_ADMIN_INSTANCE = @as(u32, 2115); pub const MD_NOT_DELETABLE = @as(u32, 2116); pub const MD_APP_TRACE_URL_LIST = @as(u32, 2118); pub const MD_CENTRAL_W3C_LOGGING_ENABLED = @as(u32, 2119); pub const MD_CUSTOM_ERROR_DESC = @as(u32, 2120); pub const MD_CAL_VC_PER_CONNECT = @as(u32, 2130); pub const MD_CAL_AUTH_RESERVE_TIMEOUT = @as(u32, 2131); pub const MD_CAL_SSL_RESERVE_TIMEOUT = @as(u32, 2132); pub const MD_CAL_W3_ERROR = @as(u32, 2133); pub const MD_CPU_CGI_ENABLED = @as(u32, 2140); pub const MD_CPU_APP_ENABLED = @as(u32, 2141); pub const MD_CPU_LIMITS_ENABLED = @as(u32, 2143); pub const MD_CPU_RESET_INTERVAL = @as(u32, 2144); pub const MD_CPU_LOGGING_INTERVAL = @as(u32, 2145); pub const MD_CPU_LOGGING_OPTIONS = @as(u32, 2146); pub const MD_CPU_CGI_LIMIT = @as(u32, 2148); pub const MD_CPU_LIMIT_LOGEVENT = @as(u32, 2149); pub const MD_CPU_LIMIT_PRIORITY = @as(u32, 2150); pub const MD_CPU_LIMIT_PROCSTOP = @as(u32, 2151); pub const MD_CPU_LIMIT_PAUSE = @as(u32, 2152); pub const MD_SET_HOST_NAME = @as(u32, 2154); pub const MD_CPU_DISABLE_ALL_LOGGING = @as(u32, 0); pub const MD_CPU_ENABLE_ALL_PROC_LOGGING = @as(u32, 1); pub const MD_CPU_ENABLE_CGI_LOGGING = @as(u32, 2); pub const MD_CPU_ENABLE_APP_LOGGING = @as(u32, 4); pub const MD_CPU_ENABLE_EVENT = @as(u32, 1); pub const MD_CPU_ENABLE_PROC_TYPE = @as(u32, 2); pub const MD_CPU_ENABLE_USER_TIME = @as(u32, 4); pub const MD_CPU_ENABLE_KERNEL_TIME = @as(u32, 8); pub const MD_CPU_ENABLE_PAGE_FAULTS = @as(u32, 16); pub const MD_CPU_ENABLE_TOTAL_PROCS = @as(u32, 32); pub const MD_CPU_ENABLE_ACTIVE_PROCS = @as(u32, 64); pub const MD_CPU_ENABLE_TERMINATED_PROCS = @as(u32, 128); pub const MD_CPU_ENABLE_LOGGING = @as(u32, 2147483648); pub const MD_ISAPI_RESTRICTION_LIST = @as(u32, 2163); pub const MD_CGI_RESTRICTION_LIST = @as(u32, 2164); pub const MD_RESTRICTION_LIST_CUSTOM_DESC = @as(u32, 2165); pub const MD_SECURITY_SETUP_REQUIRED = @as(u32, 2166); pub const MD_APP_DEPENDENCIES = @as(u32, 2167); pub const MD_WEB_SVC_EXT_RESTRICTION_LIST = @as(u32, 2168); pub const MD_MD_SERVER_SS_AUTH_MAPPING = @as(u32, 2200); pub const MD_CERT_NO_REVOC_CHECK = @as(u32, 1); pub const MD_CERT_CACHE_RETRIEVAL_ONLY = @as(u32, 2); pub const MD_CERT_CHECK_REVOCATION_FRESHNESS_TIME = @as(u32, 4); pub const MD_CERT_NO_USAGE_CHECK = @as(u32, 65536); pub const MD_HC_COMPRESSION_DIRECTORY = @as(u32, 2210); pub const MD_HC_CACHE_CONTROL_HEADER = @as(u32, 2211); pub const MD_HC_EXPIRES_HEADER = @as(u32, 2212); pub const MD_HC_DO_DYNAMIC_COMPRESSION = @as(u32, 2213); pub const MD_HC_DO_STATIC_COMPRESSION = @as(u32, 2214); pub const MD_HC_DO_ON_DEMAND_COMPRESSION = @as(u32, 2215); pub const MD_HC_DO_DISK_SPACE_LIMITING = @as(u32, 2216); pub const MD_HC_NO_COMPRESSION_FOR_HTTP_10 = @as(u32, 2217); pub const MD_HC_NO_COMPRESSION_FOR_PROXIES = @as(u32, 2218); pub const MD_HC_NO_COMPRESSION_FOR_RANGE = @as(u32, 2219); pub const MD_HC_SEND_CACHE_HEADERS = @as(u32, 2220); pub const MD_HC_MAX_DISK_SPACE_USAGE = @as(u32, 2221); pub const MD_HC_IO_BUFFER_SIZE = @as(u32, 2222); pub const MD_HC_COMPRESSION_BUFFER_SIZE = @as(u32, 2223); pub const MD_HC_MAX_QUEUE_LENGTH = @as(u32, 2224); pub const MD_HC_FILES_DELETED_PER_DISK_FREE = @as(u32, 2225); pub const MD_HC_MIN_FILE_SIZE_FOR_COMP = @as(u32, 2226); pub const MD_HC_COMPRESSION_DLL = @as(u32, 2237); pub const MD_HC_FILE_EXTENSIONS = @as(u32, 2238); pub const MD_HC_MIME_TYPE = @as(u32, 2239); pub const MD_HC_PRIORITY = @as(u32, 2240); pub const MD_HC_DYNAMIC_COMPRESSION_LEVEL = @as(u32, 2241); pub const MD_HC_ON_DEMAND_COMP_LEVEL = @as(u32, 2242); pub const MD_HC_CREATE_FLAGS = @as(u32, 2243); pub const MD_HC_SCRIPT_FILE_EXTENSIONS = @as(u32, 2244); pub const MD_HC_DO_NAMESPACE_DYNAMIC_COMPRESSION = @as(u32, 2255); pub const MD_HC_DO_NAMESPACE_STATIC_COMPRESSION = @as(u32, 2256); pub const MD_WIN32_ERROR = @as(u32, 1099); pub const IIS_MD_VR_BASE = @as(u32, 3000); pub const MD_VR_PATH = @as(u32, 3001); pub const MD_VR_USERNAME = @as(u32, 3002); pub const MD_VR_PASSWORD = @as(u32, 3003); pub const MD_VR_PASSTHROUGH = @as(u32, 3006); pub const MD_VR_NO_CACHE = @as(u32, 3007); pub const MD_VR_IGNORE_TRANSLATE = @as(u32, 3008); pub const IIS_MD_LOG_BASE = @as(u32, 4000); pub const MD_LOG_TYPE = @as(u32, 4000); pub const MD_LOGFILE_DIRECTORY = @as(u32, 4001); pub const MD_LOG_UNUSED1 = @as(u32, 4002); pub const MD_LOGFILE_PERIOD = @as(u32, 4003); pub const MD_LOGFILE_TRUNCATE_SIZE = @as(u32, 4004); pub const MD_LOG_PLUGIN_MOD_ID = @as(u32, 4005); pub const MD_LOG_PLUGIN_UI_ID = @as(u32, 4006); pub const MD_LOGSQL_DATA_SOURCES = @as(u32, 4007); pub const MD_LOGSQL_TABLE_NAME = @as(u32, 4008); pub const MD_LOGSQL_USER_NAME = @as(u32, 4009); pub const MD_LOGSQL_PASSWORD = @as(u32, 4010); pub const MD_LOG_PLUGIN_ORDER = @as(u32, 4011); pub const MD_LOG_PLUGINS_AVAILABLE = @as(u32, 4012); pub const MD_LOGEXT_FIELD_MASK = @as(u32, 4013); pub const MD_LOGEXT_FIELD_MASK2 = @as(u32, 4014); pub const MD_LOGFILE_LOCALTIME_ROLLOVER = @as(u32, 4015); pub const IIS_MD_LOG_LAST = @as(u32, 4015); pub const MD_GLOBAL_BINARY_LOGGING_ENABLED = @as(u32, 4016); pub const MD_LOG_TYPE_DISABLED = @as(u32, 0); pub const MD_LOG_TYPE_ENABLED = @as(u32, 1); pub const MD_LOGFILE_PERIOD_NONE = @as(u32, 0); pub const MD_LOGFILE_PERIOD_MAXSIZE = @as(u32, 0); pub const MD_LOGFILE_PERIOD_DAILY = @as(u32, 1); pub const MD_LOGFILE_PERIOD_WEEKLY = @as(u32, 2); pub const MD_LOGFILE_PERIOD_MONTHLY = @as(u32, 3); pub const MD_LOGFILE_PERIOD_HOURLY = @as(u32, 4); pub const MD_EXTLOG_DATE = @as(u32, 1); pub const MD_EXTLOG_TIME = @as(u32, 2); pub const MD_EXTLOG_CLIENT_IP = @as(u32, 4); pub const MD_EXTLOG_USERNAME = @as(u32, 8); pub const MD_EXTLOG_SITE_NAME = @as(u32, 16); pub const MD_EXTLOG_COMPUTER_NAME = @as(u32, 32); pub const MD_EXTLOG_SERVER_IP = @as(u32, 64); pub const MD_EXTLOG_METHOD = @as(u32, 128); pub const MD_EXTLOG_URI_STEM = @as(u32, 256); pub const MD_EXTLOG_URI_QUERY = @as(u32, 512); pub const MD_EXTLOG_HTTP_STATUS = @as(u32, 1024); pub const MD_EXTLOG_WIN32_STATUS = @as(u32, 2048); pub const MD_EXTLOG_BYTES_SENT = @as(u32, 4096); pub const MD_EXTLOG_BYTES_RECV = @as(u32, 8192); pub const MD_EXTLOG_TIME_TAKEN = @as(u32, 16384); pub const MD_EXTLOG_SERVER_PORT = @as(u32, 32768); pub const MD_EXTLOG_USER_AGENT = @as(u32, 65536); pub const MD_EXTLOG_COOKIE = @as(u32, 131072); pub const MD_EXTLOG_REFERER = @as(u32, 262144); pub const MD_EXTLOG_PROTOCOL_VERSION = @as(u32, 524288); pub const MD_EXTLOG_HOST = @as(u32, 1048576); pub const MD_EXTLOG_HTTP_SUB_STATUS = @as(u32, 2097152); pub const IIS_MD_LOGCUSTOM_BASE = @as(u32, 4500); pub const MD_LOGCUSTOM_PROPERTY_NAME = @as(u32, 4501); pub const MD_LOGCUSTOM_PROPERTY_HEADER = @as(u32, 4502); pub const MD_LOGCUSTOM_PROPERTY_ID = @as(u32, 4503); pub const MD_LOGCUSTOM_PROPERTY_MASK = @as(u32, 4504); pub const MD_LOGCUSTOM_PROPERTY_DATATYPE = @as(u32, 4505); pub const MD_LOGCUSTOM_SERVICES_STRING = @as(u32, 4506); pub const MD_CPU_LOGGING_MASK = @as(u32, 4507); pub const MD_LOGCUSTOM_PROPERTY_NODE_ID = @as(u32, 4508); pub const IIS_MD_LOGCUSTOM_LAST = @as(u32, 4508); pub const MD_LOGCUSTOM_DATATYPE_INT = @as(u32, 0); pub const MD_LOGCUSTOM_DATATYPE_UINT = @as(u32, 1); pub const MD_LOGCUSTOM_DATATYPE_LONG = @as(u32, 2); pub const MD_LOGCUSTOM_DATATYPE_ULONG = @as(u32, 3); pub const MD_LOGCUSTOM_DATATYPE_FLOAT = @as(u32, 4); pub const MD_LOGCUSTOM_DATATYPE_DOUBLE = @as(u32, 5); pub const MD_LOGCUSTOM_DATATYPE_LPSTR = @as(u32, 6); pub const MD_LOGCUSTOM_DATATYPE_LPWSTR = @as(u32, 7); pub const MD_NOTIFY_SECURE_PORT = @as(u32, 1); pub const MD_NOTIFY_NONSECURE_PORT = @as(u32, 2); pub const MD_NOTIFY_READ_RAW_DATA = @as(u32, 32768); pub const MD_NOTIFY_PREPROC_HEADERS = @as(u32, 16384); pub const MD_NOTIFY_AUTHENTICATION = @as(u32, 8192); pub const MD_NOTIFY_URL_MAP = @as(u32, 4096); pub const MD_NOTIFY_ACCESS_DENIED = @as(u32, 2048); pub const MD_NOTIFY_SEND_RESPONSE = @as(u32, 64); pub const MD_NOTIFY_SEND_RAW_DATA = @as(u32, 1024); pub const MD_NOTIFY_LOG = @as(u32, 512); pub const MD_NOTIFY_END_OF_REQUEST = @as(u32, 128); pub const MD_NOTIFY_END_OF_NET_SESSION = @as(u32, 256); pub const MD_NOTIFY_AUTH_COMPLETE = @as(u32, 67108864); pub const MD_NOTIFY_ORDER_HIGH = @as(u32, 524288); pub const MD_NOTIFY_ORDER_MEDIUM = @as(u32, 262144); pub const MD_NOTIFY_ORDER_LOW = @as(u32, 131072); pub const MD_NOTIFY_ORDER_DEFAULT = @as(u32, 131072); pub const IIS_MD_FTP_BASE = @as(u32, 5000); pub const MD_EXIT_MESSAGE = @as(u32, 5001); pub const MD_GREETING_MESSAGE = @as(u32, 5002); pub const MD_MAX_CLIENTS_MESSAGE = @as(u32, 5003); pub const MD_MSDOS_DIR_OUTPUT = @as(u32, 5004); pub const MD_ALLOW_ANONYMOUS = @as(u32, 5005); pub const MD_ANONYMOUS_ONLY = @as(u32, 5006); pub const MD_LOG_ANONYMOUS = @as(u32, 5007); pub const MD_LOG_NONANONYMOUS = @as(u32, 5008); pub const MD_ALLOW_REPLACE_ON_RENAME = @as(u32, 5009); pub const MD_SHOW_4_DIGIT_YEAR = @as(u32, 5010); pub const MD_BANNER_MESSAGE = @as(u32, 5011); pub const MD_USER_ISOLATION = @as(u32, 5012); pub const MD_FTP_LOG_IN_UTF_8 = @as(u32, 5013); pub const MD_AD_CONNECTIONS_USERNAME = @as(u32, 5014); pub const MD_AD_CONNECTIONS_PASSWORD = @as(u32, 5015); pub const MD_PASSIVE_PORT_RANGE = @as(u32, 5016); pub const MD_SUPPRESS_DEFAULT_BANNER = @as(u32, 5017); pub const MD_FTP_PASV_RESPONSE_IP = @as(u32, 5018); pub const MD_FTP_KEEP_PARTIAL_UPLOADS = @as(u32, 5019); pub const MD_FTP_UTF8_FILE_NAMES = @as(u32, 5020); pub const MD_FTPS_SECURE_CONTROL_CHANNEL = @as(u32, 5050); pub const MD_FTPS_SECURE_DATA_CHANNEL = @as(u32, 5051); pub const MD_FTPS_SECURE_ANONYMOUS = @as(u32, 5052); pub const MD_FTPS_128_BITS = @as(u32, 5053); pub const MD_FTPS_ALLOW_CCC = @as(u32, 5054); pub const IIS_MD_SSL_BASE = @as(u32, 5500); pub const MD_SSL_PUBLIC_KEY = @as(u32, 5500); pub const MD_SSL_PRIVATE_KEY = @as(u32, 5501); pub const MD_SSL_KEY_PASSWORD = @as(u32, 5502); pub const MD_SSL_KEY_REQUEST = @as(u32, 5503); pub const MD_SSL_USE_DS_MAPPER = @as(u32, 5519); pub const MD_SSL_ALWAYS_NEGO_CLIENT_CERT = @as(u32, 5521); pub const IIS_MD_FILE_PROP_BASE = @as(u32, 6000); pub const MD_AUTHORIZATION = @as(u32, 6000); pub const MD_REALM = @as(u32, 6001); pub const MD_HTTP_EXPIRES = @as(u32, 6002); pub const MD_HTTP_PICS = @as(u32, 6003); pub const MD_HTTP_CUSTOM = @as(u32, 6004); pub const MD_DIRECTORY_BROWSING = @as(u32, 6005); pub const MD_DEFAULT_LOAD_FILE = @as(u32, 6006); pub const MD_CUSTOM_ERROR = @as(u32, 6008); pub const MD_FOOTER_DOCUMENT = @as(u32, 6009); pub const MD_FOOTER_ENABLED = @as(u32, 6010); pub const MD_HTTP_REDIRECT = @as(u32, 6011); pub const MD_DEFAULT_LOGON_DOMAIN = @as(u32, 6012); pub const MD_LOGON_METHOD = @as(u32, 6013); pub const MD_SCRIPT_MAPS = @as(u32, 6014); pub const MD_MIME_MAP = @as(u32, 6015); pub const MD_ACCESS_PERM = @as(u32, 6016); pub const MD_IP_SEC = @as(u32, 6019); pub const MD_ANONYMOUS_USER_NAME = @as(u32, 6020); pub const MD_ANONYMOUS_PWD = @as(u32, 6021); pub const MD_ANONYMOUS_USE_SUBAUTH = @as(u32, 6022); pub const MD_DONT_LOG = @as(u32, 6023); pub const MD_ADMIN_ACL = @as(u32, 6027); pub const MD_SSI_EXEC_DISABLED = @as(u32, 6028); pub const MD_DO_REVERSE_DNS = @as(u32, 6029); pub const MD_SSL_ACCESS_PERM = @as(u32, 6030); pub const MD_AUTHORIZATION_PERSISTENCE = @as(u32, 6031); pub const MD_NTAUTHENTICATION_PROVIDERS = @as(u32, 6032); pub const MD_SCRIPT_TIMEOUT = @as(u32, 6033); pub const MD_CACHE_EXTENSIONS = @as(u32, 6034); pub const MD_CREATE_PROCESS_AS_USER = @as(u32, 6035); pub const MD_CREATE_PROC_NEW_CONSOLE = @as(u32, 6036); pub const MD_POOL_IDC_TIMEOUT = @as(u32, 6037); pub const MD_ALLOW_KEEPALIVES = @as(u32, 6038); pub const MD_IS_CONTENT_INDEXED = @as(u32, 6039); pub const MD_CC_NO_CACHE = @as(u32, 6041); pub const MD_CC_MAX_AGE = @as(u32, 6042); pub const MD_CC_OTHER = @as(u32, 6043); pub const MD_REDIRECT_HEADERS = @as(u32, 6044); pub const MD_UPLOAD_READAHEAD_SIZE = @as(u32, 6045); pub const MD_PUT_READ_SIZE = @as(u32, 6046); pub const MD_USE_DIGEST_SSP = @as(u32, 6047); pub const MD_ENABLE_URL_AUTHORIZATION = @as(u32, 6048); pub const MD_URL_AUTHORIZATION_STORE_NAME = @as(u32, 6049); pub const MD_URL_AUTHORIZATION_SCOPE_NAME = @as(u32, 6050); pub const MD_MAX_REQUEST_ENTITY_ALLOWED = @as(u32, 6051); pub const MD_PASSPORT_REQUIRE_AD_MAPPING = @as(u32, 6052); pub const MD_URL_AUTHORIZATION_IMPERSONATION_LEVEL = @as(u32, 6053); pub const MD_HTTP_FORWARDER_CUSTOM = @as(u32, 6054); pub const MD_CUSTOM_DEPLOYMENT_DATA = @as(u32, 6055); pub const MD_HTTPERRORS_EXISTING_RESPONSE = @as(u32, 6056); pub const ASP_MD_SERVER_BASE = @as(u32, 7000); pub const MD_ASP_BUFFERINGON = @as(u32, 7000); pub const MD_ASP_LOGERRORREQUESTS = @as(u32, 7001); pub const MD_ASP_SCRIPTERRORSSENTTOBROWSER = @as(u32, 7002); pub const MD_ASP_SCRIPTERRORMESSAGE = @as(u32, 7003); pub const MD_ASP_SCRIPTFILECACHESIZE = @as(u32, 7004); pub const MD_ASP_SCRIPTENGINECACHEMAX = @as(u32, 7005); pub const MD_ASP_SCRIPTTIMEOUT = @as(u32, 7006); pub const MD_ASP_SESSIONTIMEOUT = @as(u32, 7007); pub const MD_ASP_ENABLEPARENTPATHS = @as(u32, 7008); pub const MD_ASP_MEMFREEFACTOR = @as(u32, 7009); pub const MD_ASP_MINUSEDBLOCKS = @as(u32, 7010); pub const MD_ASP_ALLOWSESSIONSTATE = @as(u32, 7011); pub const MD_ASP_SCRIPTLANGUAGE = @as(u32, 7012); pub const MD_ASP_QUEUETIMEOUT = @as(u32, 7013); pub const MD_ASP_ALLOWOUTOFPROCCOMPONENTS = @as(u32, 7014); pub const MD_ASP_ALLOWOUTOFPROCCMPNTS = @as(u32, 7014); pub const MD_ASP_EXCEPTIONCATCHENABLE = @as(u32, 7015); pub const MD_ASP_CODEPAGE = @as(u32, 7016); pub const MD_ASP_SCRIPTLANGUAGELIST = @as(u32, 7017); pub const MD_ASP_ENABLESERVERDEBUG = @as(u32, 7018); pub const MD_ASP_ENABLECLIENTDEBUG = @as(u32, 7019); pub const MD_ASP_TRACKTHREADINGMODEL = @as(u32, 7020); pub const MD_ASP_ENABLEASPHTMLFALLBACK = @as(u32, 7021); pub const MD_ASP_ENABLECHUNKEDENCODING = @as(u32, 7022); pub const MD_ASP_ENABLETYPELIBCACHE = @as(u32, 7023); pub const MD_ASP_ERRORSTONTLOG = @as(u32, 7024); pub const MD_ASP_PROCESSORTHREADMAX = @as(u32, 7025); pub const MD_ASP_REQEUSTQUEUEMAX = @as(u32, 7026); pub const MD_ASP_ENABLEAPPLICATIONRESTART = @as(u32, 7027); pub const MD_ASP_QUEUECONNECTIONTESTTIME = @as(u32, 7028); pub const MD_ASP_SESSIONMAX = @as(u32, 7029); pub const MD_ASP_THREADGATEENABLED = @as(u32, 7030); pub const MD_ASP_THREADGATETIMESLICE = @as(u32, 7031); pub const MD_ASP_THREADGATESLEEPDELAY = @as(u32, 7032); pub const MD_ASP_THREADGATESLEEPMAX = @as(u32, 7033); pub const MD_ASP_THREADGATELOADLOW = @as(u32, 7034); pub const MD_ASP_THREADGATELOADHIGH = @as(u32, 7035); pub const MD_ASP_DISKTEMPLATECACHEDIRECTORY = @as(u32, 7036); pub const MD_ASP_MAXDISKTEMPLATECACHEFILES = @as(u32, 7040); pub const MD_ASP_EXECUTEINMTA = @as(u32, 7041); pub const MD_ASP_LCID = @as(u32, 7042); pub const MD_ASP_KEEPSESSIONIDSECURE = @as(u32, 7043); pub const MD_ASP_SERVICE_FLAGS = @as(u32, 7044); pub const MD_ASP_SERVICE_FLAG_TRACKER = @as(u32, 7045); pub const MD_ASP_SERVICE_FLAG_FUSION = @as(u32, 7046); pub const MD_ASP_SERVICE_FLAG_PARTITIONS = @as(u32, 7047); pub const MD_ASP_SERVICE_PARTITION_ID = @as(u32, 7048); pub const MD_ASP_SERVICE_SXS_NAME = @as(u32, 7049); pub const MD_ASP_SERVICE_ENABLE_TRACKER = @as(u32, 1); pub const MD_ASP_SERVICE_ENABLE_SXS = @as(u32, 2); pub const MD_ASP_SERVICE_USE_PARTITION = @as(u32, 4); pub const MD_ASP_CALCLINENUMBER = @as(u32, 7050); pub const MD_ASP_RUN_ONEND_ANON = @as(u32, 7051); pub const MD_ASP_BUFFER_LIMIT = @as(u32, 7052); pub const MD_ASP_MAX_REQUEST_ENTITY_ALLOWED = @as(u32, 7053); pub const MD_ASP_MAXREQUESTENTITY = @as(u32, 7053); pub const MD_ASP_ID_LAST = @as(u32, 7053); pub const WAM_MD_SERVER_BASE = @as(u32, 7500); pub const MD_WAM_USER_NAME = @as(u32, 7501); pub const MD_WAM_PWD = @as(u32, 7502); pub const WEBDAV_MD_SERVER_BASE = @as(u32, 8500); pub const MD_WEBDAV_MAX_ATTRIBUTES_PER_ELEMENT = @as(u32, 8501); pub const IIS_MD_APPPOOL_BASE = @as(u32, 9000); pub const MD_APPPOOL_PERIODIC_RESTART_TIME = @as(u32, 9001); pub const MD_APPPOOL_PERIODIC_RESTART_REQUEST_COUNT = @as(u32, 9002); pub const MD_APPPOOL_MAX_PROCESS_COUNT = @as(u32, 9003); pub const MD_APPPOOL_PINGING_ENABLED = @as(u32, 9004); pub const MD_APPPOOL_IDLE_TIMEOUT = @as(u32, 9005); pub const MD_APPPOOL_RAPID_FAIL_PROTECTION_ENABLED = @as(u32, 9006); pub const MD_APPPOOL_SMP_AFFINITIZED = @as(u32, 9007); pub const MD_APPPOOL_SMP_AFFINITIZED_PROCESSOR_MASK = @as(u32, 9008); pub const MD_APPPOOL_ORPHAN_PROCESSES_FOR_DEBUGGING = @as(u32, 9009); pub const MD_APPPOOL_STARTUP_TIMELIMIT = @as(u32, 9011); pub const MD_APPPOOL_SHUTDOWN_TIMELIMIT = @as(u32, 9012); pub const MD_APPPOOL_PING_INTERVAL = @as(u32, 9013); pub const MD_APPPOOL_PING_RESPONSE_TIMELIMIT = @as(u32, 9014); pub const MD_APPPOOL_DISALLOW_OVERLAPPING_ROTATION = @as(u32, 9015); pub const MD_APPPOOL_UL_APPPOOL_QUEUE_LENGTH = @as(u32, 9017); pub const MD_APPPOOL_DISALLOW_ROTATION_ON_CONFIG_CHANGE = @as(u32, 9018); pub const MD_APPPOOL_PERIODIC_RESTART_SCHEDULE = @as(u32, 9020); pub const MD_APPPOOL_IDENTITY_TYPE = @as(u32, 9021); pub const MD_CPU_ACTION = @as(u32, 9022); pub const MD_CPU_LIMIT = @as(u32, 9023); pub const MD_APPPOOL_PERIODIC_RESTART_MEMORY = @as(u32, 9024); pub const MD_APPPOOL_COMMAND = @as(u32, 9026); pub const MD_APPPOOL_STATE = @as(u32, 9027); pub const MD_APPPOOL_AUTO_START = @as(u32, 9028); pub const MD_RAPID_FAIL_PROTECTION_INTERVAL = @as(u32, 9029); pub const MD_RAPID_FAIL_PROTECTION_MAX_CRASHES = @as(u32, 9030); pub const MD_APPPOOL_ORPHAN_ACTION_EXE = @as(u32, 9031); pub const MD_APPPOOL_ORPHAN_ACTION_PARAMS = @as(u32, 9032); pub const MB_DONT_IMPERSONATE = @as(u32, 9033); pub const MD_LOAD_BALANCER_CAPABILITIES = @as(u32, 9034); pub const MD_APPPOOL_AUTO_SHUTDOWN_EXE = @as(u32, 9035); pub const MD_APPPOOL_AUTO_SHUTDOWN_PARAMS = @as(u32, 9036); pub const MD_APP_POOL_LOG_EVENT_ON_RECYCLE = @as(u32, 9037); pub const MD_APPPOOL_PERIODIC_RESTART_PRIVATE_MEMORY = @as(u32, 9038); pub const MD_APPPOOL_MANAGED_RUNTIME_VERSION = @as(u32, 9039); pub const MD_APPPOOL_32_BIT_APP_ON_WIN64 = @as(u32, 9040); pub const MD_APPPOOL_MANAGED_PIPELINE_MODE = @as(u32, 9041); pub const MD_APP_POOL_LOG_EVENT_ON_PROCESSMODEL = @as(u32, 9042); pub const MD_APP_POOL_PROCESSMODEL_IDLE_TIMEOUT = @as(u32, 1); pub const MD_APP_POOL_RECYCLE_TIME = @as(u32, 1); pub const MD_APP_POOL_RECYCLE_REQUESTS = @as(u32, 2); pub const MD_APP_POOL_RECYCLE_SCHEDULE = @as(u32, 4); pub const MD_APP_POOL_RECYCLE_MEMORY = @as(u32, 8); pub const MD_APP_POOL_RECYCLE_ISAPI_UNHEALTHY = @as(u32, 16); pub const MD_APP_POOL_RECYCLE_ON_DEMAND = @as(u32, 32); pub const MD_APP_POOL_RECYCLE_CONFIG_CHANGE = @as(u32, 64); pub const MD_APP_POOL_RECYCLE_PRIVATE_MEMORY = @as(u32, 128); pub const MD_CPU_NO_ACTION = @as(u32, 0); pub const MD_CPU_KILL_W3WP = @as(u32, 1); pub const MD_CPU_TRACE = @as(u32, 2); pub const MD_CPU_THROTTLE = @as(u32, 3); pub const MD_APPPOOL_COMMAND_START = @as(u32, 1); pub const MD_APPPOOL_COMMAND_STOP = @as(u32, 2); pub const MD_APPPOOL_STATE_STARTING = @as(u32, 1); pub const MD_APPPOOL_STATE_STARTED = @as(u32, 2); pub const MD_APPPOOL_STATE_STOPPING = @as(u32, 3); pub const MD_APPPOOL_STATE_STOPPED = @as(u32, 4); pub const MD_APPPOOL_IDENTITY_TYPE_LOCALSYSTEM = @as(u32, 0); pub const MD_APPPOOL_IDENTITY_TYPE_LOCALSERVICE = @as(u32, 1); pub const MD_APPPOOL_IDENTITY_TYPE_NETWORKSERVICE = @as(u32, 2); pub const MD_APPPOOL_IDENTITY_TYPE_SPECIFICUSER = @as(u32, 3); pub const MD_LOAD_BALANCER_CAPABILITIES_BASIC = @as(u32, 1); pub const MD_LOAD_BALANCER_CAPABILITIES_SOPHISTICATED = @as(u32, 2); pub const IIS_MD_APP_BASE = @as(u32, 9100); pub const MD_APP_APPPOOL_ID = @as(u32, 9101); pub const MD_APP_ALLOW_TRANSIENT_REGISTRATION = @as(u32, 9102); pub const MD_APP_AUTO_START = @as(u32, 9103); pub const MD_APPPOOL_PERIODIC_RESTART_CONNECTIONS = @as(u32, 9104); pub const MD_APPPOOL_APPPOOL_ID = @as(u32, 9201); pub const MD_APPPOOL_ALLOW_TRANSIENT_REGISTRATION = @as(u32, 9202); pub const IIS_MD_GLOBAL_BASE = @as(u32, 9200); pub const MD_MAX_GLOBAL_BANDWIDTH = @as(u32, 9201); pub const MD_MAX_GLOBAL_CONNECTIONS = @as(u32, 9202); pub const MD_GLOBAL_STANDARD_APP_MODE_ENABLED = @as(u32, 9203); pub const MD_HEADER_WAIT_TIMEOUT = @as(u32, 9204); pub const MD_MIN_FILE_BYTES_PER_SEC = @as(u32, 9205); pub const MD_GLOBAL_LOG_IN_UTF_8 = @as(u32, 9206); pub const MD_DEMAND_START_THRESHOLD = @as(u32, 9207); pub const MD_GLOBAL_SESSIONKEY = @as(u32, 9999); pub const MD_ROOT_ENABLE_EDIT_WHILE_RUNNING = @as(u32, 9998); pub const MD_GLOBAL_CHANGE_NUMBER = @as(u32, 9997); pub const MD_ROOT_ENABLE_HISTORY = @as(u32, 9996); pub const MD_ROOT_MAX_HISTORY_FILES = @as(u32, 9995); pub const MD_GLOBAL_EDIT_WHILE_RUNNING_MAJOR_VERSION_NUMBER = @as(u32, 9994); pub const MD_GLOBAL_EDIT_WHILE_RUNNING_MINOR_VERSION_NUMBER = @as(u32, 9993); pub const MD_GLOBAL_XMLSCHEMATIMESTAMP = @as(u32, 9992); pub const MD_GLOBAL_BINSCHEMATIMESTAMP = @as(u32, 9991); pub const MD_COMMENTS = @as(u32, 9990); pub const MD_LOCATION = @as(u32, 9989); pub const MD_MAX_ERROR_FILES = @as(u32, 9988); pub const MD_STOP_LISTENING = @as(u32, 9987); pub const MD_AUTH_ANONYMOUS = @as(u32, 1); pub const MD_AUTH_BASIC = @as(u32, 2); pub const MD_AUTH_NT = @as(u32, 4); pub const MD_AUTH_MD5 = @as(u32, 16); pub const MD_AUTH_PASSPORT = @as(u32, 64); pub const MD_AUTH_SINGLEREQUEST = @as(u32, 64); pub const MD_AUTH_SINGLEREQUESTIFPROXY = @as(u32, 128); pub const MD_AUTH_SINGLEREQUESTALWAYSIFPROXY = @as(u32, 256); pub const MD_ACCESS_READ = @as(u32, 1); pub const MD_ACCESS_WRITE = @as(u32, 2); pub const MD_ACCESS_EXECUTE = @as(u32, 4); pub const MD_ACCESS_SOURCE = @as(u32, 16); pub const MD_ACCESS_SCRIPT = @as(u32, 512); pub const MD_ACCESS_NO_REMOTE_WRITE = @as(u32, 1024); pub const MD_ACCESS_NO_REMOTE_READ = @as(u32, 4096); pub const MD_ACCESS_NO_REMOTE_EXECUTE = @as(u32, 8192); pub const MD_ACCESS_NO_REMOTE_SCRIPT = @as(u32, 16384); pub const MD_ACCESS_NO_PHYSICAL_DIR = @as(u32, 32768); pub const MD_ACCESS_SSL = @as(u32, 8); pub const MD_ACCESS_NEGO_CERT = @as(u32, 32); pub const MD_ACCESS_REQUIRE_CERT = @as(u32, 64); pub const MD_ACCESS_MAP_CERT = @as(u32, 128); pub const MD_ACCESS_SSL128 = @as(u32, 256); pub const MD_ACCESS_MASK = @as(u32, 65535); pub const MD_DIRBROW_SHOW_DATE = @as(u32, 2); pub const MD_DIRBROW_SHOW_TIME = @as(u32, 4); pub const MD_DIRBROW_SHOW_SIZE = @as(u32, 8); pub const MD_DIRBROW_SHOW_EXTENSION = @as(u32, 16); pub const MD_DIRBROW_LONG_DATE = @as(u32, 32); pub const MD_DIRBROW_ENABLED = @as(u32, 2147483648); pub const MD_DIRBROW_LOADDEFAULT = @as(u32, 1073741824); pub const MD_LOGON_INTERACTIVE = @as(u32, 0); pub const MD_LOGON_BATCH = @as(u32, 1); pub const MD_LOGON_NETWORK = @as(u32, 2); pub const MD_LOGON_NETWORK_CLEARTEXT = @as(u32, 3); pub const MD_PASSPORT_NO_MAPPING = @as(u32, 0); pub const MD_PASSPORT_TRY_MAPPING = @as(u32, 1); pub const MD_PASSPORT_NEED_MAPPING = @as(u32, 2); pub const MD_NOTIFEXAUTH_NTLMSSL = @as(u32, 1); pub const MD_FILTER_STATE_LOADED = @as(u32, 1); pub const MD_FILTER_STATE_UNLOADED = @as(u32, 4); pub const MD_SERVER_STATE_STARTING = @as(u32, 1); pub const MD_SERVER_STATE_STARTED = @as(u32, 2); pub const MD_SERVER_STATE_STOPPING = @as(u32, 3); pub const MD_SERVER_STATE_STOPPED = @as(u32, 4); pub const MD_SERVER_STATE_PAUSING = @as(u32, 5); pub const MD_SERVER_STATE_PAUSED = @as(u32, 6); pub const MD_SERVER_STATE_CONTINUING = @as(u32, 7); pub const MD_SERVER_COMMAND_START = @as(u32, 1); pub const MD_SERVER_COMMAND_STOP = @as(u32, 2); pub const MD_SERVER_COMMAND_PAUSE = @as(u32, 3); pub const MD_SERVER_COMMAND_CONTINUE = @as(u32, 4); pub const MD_SERVER_SIZE_SMALL = @as(u32, 0); pub const MD_SERVER_SIZE_MEDIUM = @as(u32, 1); pub const MD_SERVER_SIZE_LARGE = @as(u32, 2); pub const MD_SERVER_CONFIG_SSL_40 = @as(u32, 1); pub const MD_SERVER_CONFIG_SSL_128 = @as(u32, 2); pub const MD_SERVER_CONFIG_ALLOW_ENCRYPT = @as(u32, 4); pub const MD_SERVER_CONFIG_AUTO_PW_SYNC = @as(u32, 8); pub const MD_SCRIPTMAPFLAG_SCRIPT = @as(u32, 1); pub const MD_SCRIPTMAPFLAG_CHECK_PATH_INFO = @as(u32, 4); pub const MD_SCRIPTMAPFLAG_ALLOWED_ON_READ_DIR = @as(u32, 1); pub const MD_AUTH_CHANGE_UNSECURE = @as(u32, 1); pub const MD_AUTH_CHANGE_DISABLE = @as(u32, 2); pub const MD_AUTH_ADVNOTIFY_DISABLE = @as(u32, 4); pub const MD_NETLOGON_WKS_NONE = @as(u32, 0); pub const MD_NETLOGON_WKS_IP = @as(u32, 1); pub const MD_NETLOGON_WKS_DNS = @as(u32, 2); pub const MD_ERROR_SUB400_INVALID_DESTINATION = @as(u32, 1); pub const MD_ERROR_SUB400_INVALID_DEPTH = @as(u32, 2); pub const MD_ERROR_SUB400_INVALID_IF = @as(u32, 3); pub const MD_ERROR_SUB400_INVALID_OVERWRITE = @as(u32, 4); pub const MD_ERROR_SUB400_INVALID_TRANSLATE = @as(u32, 5); pub const MD_ERROR_SUB400_INVALID_REQUEST_BODY = @as(u32, 6); pub const MD_ERROR_SUB400_INVALID_CONTENT_LENGTH = @as(u32, 7); pub const MD_ERROR_SUB400_INVALID_TIMEOUT = @as(u32, 8); pub const MD_ERROR_SUB400_INVALID_LOCK_TOKEN = @as(u32, 9); pub const MD_ERROR_SUB400_INVALID_XFF_HEADER = @as(u32, 10); pub const MD_ERROR_SUB400_INVALID_WEBSOCKET_REQUEST = @as(u32, 11); pub const MD_ERROR_SUB401_LOGON = @as(u32, 1); pub const MD_ERROR_SUB401_LOGON_CONFIG = @as(u32, 2); pub const MD_ERROR_SUB401_LOGON_ACL = @as(u32, 3); pub const MD_ERROR_SUB401_FILTER = @as(u32, 4); pub const MD_ERROR_SUB401_APPLICATION = @as(u32, 5); pub const MD_ERROR_SUB401_URLAUTH_POLICY = @as(u32, 7); pub const MD_ERROR_SUB403_EXECUTE_ACCESS_DENIED = @as(u32, 1); pub const MD_ERROR_SUB403_READ_ACCESS_DENIED = @as(u32, 2); pub const MD_ERROR_SUB403_WRITE_ACCESS_DENIED = @as(u32, 3); pub const MD_ERROR_SUB403_SSL_REQUIRED = @as(u32, 4); pub const MD_ERROR_SUB403_SSL128_REQUIRED = @as(u32, 5); pub const MD_ERROR_SUB403_ADDR_REJECT = @as(u32, 6); pub const MD_ERROR_SUB403_CERT_REQUIRED = @as(u32, 7); pub const MD_ERROR_SUB403_SITE_ACCESS_DENIED = @as(u32, 8); pub const MD_ERROR_SUB403_TOO_MANY_USERS = @as(u32, 9); pub const MD_ERROR_SUB403_INVALID_CNFG = @as(u32, 10); pub const MD_ERROR_SUB403_PWD_CHANGE = @as(u32, 11); pub const MD_ERROR_SUB403_MAPPER_DENY_ACCESS = @as(u32, 12); pub const MD_ERROR_SUB403_CERT_REVOKED = @as(u32, 13); pub const MD_ERROR_SUB403_DIR_LIST_DENIED = @as(u32, 14); pub const MD_ERROR_SUB403_CAL_EXCEEDED = @as(u32, 15); pub const MD_ERROR_SUB403_CERT_BAD = @as(u32, 16); pub const MD_ERROR_SUB403_CERT_TIME_INVALID = @as(u32, 17); pub const MD_ERROR_SUB403_APPPOOL_DENIED = @as(u32, 18); pub const MD_ERROR_SUB403_INSUFFICIENT_PRIVILEGE_FOR_CGI = @as(u32, 19); pub const MD_ERROR_SUB403_PASSPORT_LOGIN_FAILURE = @as(u32, 20); pub const MD_ERROR_SUB403_SOURCE_ACCESS_DENIED = @as(u32, 21); pub const MD_ERROR_SUB403_INFINITE_DEPTH_DENIED = @as(u32, 22); pub const MD_ERROR_SUB403_LOCK_TOKEN_REQUIRED = @as(u32, 23); pub const MD_ERROR_SUB403_VALIDATION_FAILURE = @as(u32, 24); pub const MD_ERROR_SUB404_SITE_NOT_FOUND = @as(u32, 1); pub const MD_ERROR_SUB404_DENIED_BY_POLICY = @as(u32, 2); pub const MD_ERROR_SUB404_DENIED_BY_MIMEMAP = @as(u32, 3); pub const MD_ERROR_SUB404_NO_HANDLER = @as(u32, 4); pub const MD_ERROR_SUB404_URL_SEQUENCE_DENIED = @as(u32, 5); pub const MD_ERROR_SUB404_VERB_DENIED = @as(u32, 6); pub const MD_ERROR_SUB404_FILE_EXTENSION_DENIED = @as(u32, 7); pub const MD_ERROR_SUB404_HIDDEN_SEGMENT = @as(u32, 8); pub const MD_ERROR_SUB404_FILE_ATTRIBUTE_HIDDEN = @as(u32, 9); pub const MD_ERROR_SUB404_URL_DOUBLE_ESCAPED = @as(u32, 11); pub const MD_ERROR_SUB404_URL_HAS_HIGH_BIT_CHARS = @as(u32, 12); pub const MD_ERROR_SUB404_URL_TOO_LONG = @as(u32, 14); pub const MD_ERROR_SUB404_QUERY_STRING_TOO_LONG = @as(u32, 15); pub const MD_ERROR_SUB404_STATICFILE_DAV = @as(u32, 16); pub const MD_ERROR_SUB404_PRECONDITIONED_HANDLER = @as(u32, 17); pub const MD_ERROR_SUB404_QUERY_STRING_SEQUENCE_DENIED = @as(u32, 18); pub const MD_ERROR_SUB404_DENIED_BY_FILTERING_RULE = @as(u32, 19); pub const MD_ERROR_SUB404_TOO_MANY_URL_SEGMENTS = @as(u32, 20); pub const MD_ERROR_SUB413_CONTENT_LENGTH_TOO_LARGE = @as(u32, 1); pub const MD_ERROR_SUB423_LOCK_TOKEN_SUBMITTED = @as(u32, 1); pub const MD_ERROR_SUB423_NO_CONFLICTING_LOCK = @as(u32, 2); pub const MD_ERROR_SUB500_UNC_ACCESS = @as(u32, 16); pub const MD_ERROR_SUB500_URLAUTH_NO_STORE = @as(u32, 17); pub const MD_ERROR_SUB500_URLAUTH_STORE_ERROR = @as(u32, 18); pub const MD_ERROR_SUB500_BAD_METADATA = @as(u32, 19); pub const MD_ERROR_SUB500_URLAUTH_NO_SCOPE = @as(u32, 20); pub const MD_ERROR_SUB500_HANDLERS_MODULE = @as(u32, 21); pub const MD_ERROR_SUB500_ASPNET_MODULES = @as(u32, 22); pub const MD_ERROR_SUB500_ASPNET_HANDLERS = @as(u32, 23); pub const MD_ERROR_SUB500_ASPNET_IMPERSONATION = @as(u32, 24); pub const MD_ERROR_SUB502_TIMEOUT = @as(u32, 1); pub const MD_ERROR_SUB502_PREMATURE_EXIT = @as(u32, 2); pub const MD_ERROR_SUB502_ARR_CONNECTION_ERROR = @as(u32, 3); pub const MD_ERROR_SUB502_ARR_NO_SERVER = @as(u32, 4); pub const MD_ERROR_SUB503_CPU_LIMIT = @as(u32, 1); pub const MD_ERROR_SUB503_APP_CONCURRENT = @as(u32, 2); pub const MD_ERROR_SUB503_ASPNET_QUEUE_FULL = @as(u32, 3); pub const MD_ERROR_SUB503_FASTCGI_QUEUE_FULL = @as(u32, 4); pub const MD_ERROR_SUB503_CONNECTION_LIMIT = @as(u32, 5); pub const MD_ACR_READ = @as(u32, 1); pub const MD_ACR_WRITE = @as(u32, 2); pub const MD_ACR_RESTRICTED_WRITE = @as(u32, 32); pub const MD_ACR_UNSECURE_PROPS_READ = @as(u32, 128); pub const MD_ACR_ENUM_KEYS = @as(u32, 8); pub const MD_ACR_WRITE_DAC = @as(u32, 262144); pub const MD_USER_ISOLATION_NONE = @as(u32, 0); pub const MD_USER_ISOLATION_BASIC = @as(u32, 1); pub const MD_USER_ISOLATION_AD = @as(u32, 2); pub const MD_USER_ISOLATION_LAST = @as(u32, 2); pub const CLSID_IisServiceControl = Guid.initString("e8fb8621-588f-11d2-9d61-00c04f79c5fe"); pub const LIBID_IISRSTALib = Guid.initString("e8fb8614-588f-11d2-9d61-00c04f79c5fe"); pub const LIBID_WAMREGLib = Guid.initString("29822aa8-f302-11d0-9953-00c04fd919c1"); pub const CLSID_WamAdmin = Guid.initString("61738644-f196-11d0-9953-00c04fd919c1"); pub const APPSTATUS_STOPPED = @as(u32, 0); pub const APPSTATUS_RUNNING = @as(u32, 1); pub const APPSTATUS_NOTDEFINED = @as(u32, 2); pub const METADATA_MAX_NAME_LEN = @as(u32, 256); pub const METADATA_PERMISSION_READ = @as(u32, 1); pub const METADATA_PERMISSION_WRITE = @as(u32, 2); pub const METADATA_NO_ATTRIBUTES = @as(u32, 0); pub const METADATA_INHERIT = @as(u32, 1); pub const METADATA_PARTIAL_PATH = @as(u32, 2); pub const METADATA_SECURE = @as(u32, 4); pub const METADATA_REFERENCE = @as(u32, 8); pub const METADATA_VOLATILE = @as(u32, 16); pub const METADATA_ISINHERITED = @as(u32, 32); pub const METADATA_INSERT_PATH = @as(u32, 64); pub const METADATA_LOCAL_MACHINE_ONLY = @as(u32, 128); pub const METADATA_NON_SECURE_ONLY = @as(u32, 256); pub const METADATA_DONT_EXPAND = @as(u32, 512); pub const MD_BACKUP_OVERWRITE = @as(u32, 1); pub const MD_BACKUP_SAVE_FIRST = @as(u32, 2); pub const MD_BACKUP_FORCE_BACKUP = @as(u32, 4); pub const MD_BACKUP_NEXT_VERSION = @as(u32, 4294967295); pub const MD_BACKUP_HIGHEST_VERSION = @as(u32, 4294967294); pub const MD_BACKUP_MAX_VERSION = @as(u32, 9999); pub const MD_BACKUP_MAX_LEN = @as(u32, 100); pub const MD_HISTORY_LATEST = @as(u32, 1); pub const MD_EXPORT_INHERITED = @as(u32, 1); pub const MD_EXPORT_NODE_ONLY = @as(u32, 2); pub const MD_IMPORT_INHERITED = @as(u32, 1); pub const MD_IMPORT_NODE_ONLY = @as(u32, 2); pub const MD_IMPORT_MERGE = @as(u32, 4); pub const METADATA_MASTER_ROOT_HANDLE = @as(u32, 0); pub const MD_CHANGE_TYPE_DELETE_OBJECT = @as(u32, 1); pub const MD_CHANGE_TYPE_ADD_OBJECT = @as(u32, 2); pub const MD_CHANGE_TYPE_SET_DATA = @as(u32, 4); pub const MD_CHANGE_TYPE_DELETE_DATA = @as(u32, 8); pub const MD_CHANGE_TYPE_RENAME_OBJECT = @as(u32, 16); pub const MD_CHANGE_TYPE_RESTORE = @as(u32, 32); pub const MD_MAX_CHANGE_ENTRIES = @as(u32, 100); pub const MD_ERROR_NOT_INITIALIZED = @as(i32, -2146646016); pub const MD_ERROR_DATA_NOT_FOUND = @as(i32, -2146646015); pub const MD_ERROR_INVALID_VERSION = @as(i32, -2146646014); pub const MD_WARNING_PATH_NOT_FOUND = @as(i32, 837635); pub const MD_WARNING_DUP_NAME = @as(i32, 837636); pub const MD_WARNING_INVALID_DATA = @as(i32, 837637); pub const MD_ERROR_SECURE_CHANNEL_FAILURE = @as(i32, -2146646010); pub const MD_WARNING_PATH_NOT_INSERTED = @as(i32, 837639); pub const MD_ERROR_CANNOT_REMOVE_SECURE_ATTRIBUTE = @as(i32, -2146646008); pub const MD_WARNING_SAVE_FAILED = @as(i32, 837641); pub const MD_ERROR_IISAO_INVALID_SCHEMA = @as(i32, -2146646000); pub const MD_ERROR_READ_METABASE_FILE = @as(i32, -2146645991); pub const MD_ERROR_NO_SESSION_KEY = @as(i32, -2146645987); pub const LIBID_ASPTypeLibrary = Guid.initString("d97a6da0-a85c-11cf-83ae-00a0c90c2bd8"); pub const CLSID_Request = Guid.initString("920c25d0-25d9-11d0-a55f-00a0c90c2091"); pub const CLSID_Response = Guid.initString("46e19ba0-25dd-11d0-a55f-00a0c90c2091"); pub const CLSID_Session = Guid.initString("509f8f20-25de-11d0-a55f-00a0c90c2091"); pub const CLSID_Server = Guid.initString("a506d160-25e0-11d0-a55f-00a0c90c2091"); pub const CLSID_ScriptingContext = Guid.initString("d97a6da0-a868-11cf-83ae-11b0c90c2bd8"); pub const HSE_VERSION_MAJOR = @as(u32, 8); pub const HSE_VERSION_MINOR = @as(u32, 0); pub const HSE_LOG_BUFFER_LEN = @as(u32, 80); pub const HSE_MAX_EXT_DLL_NAME_LEN = @as(u32, 256); pub const HSE_STATUS_SUCCESS = @as(u32, 1); pub const HSE_STATUS_SUCCESS_AND_KEEP_CONN = @as(u32, 2); pub const HSE_STATUS_PENDING = @as(u32, 3); pub const HSE_STATUS_ERROR = @as(u32, 4); pub const HSE_REQ_BASE = @as(u32, 0); pub const HSE_REQ_SEND_URL_REDIRECT_RESP = @as(u32, 1); pub const HSE_REQ_SEND_URL = @as(u32, 2); pub const HSE_REQ_SEND_RESPONSE_HEADER = @as(u32, 3); pub const HSE_REQ_DONE_WITH_SESSION = @as(u32, 4); pub const HSE_REQ_END_RESERVED = @as(u32, 1000); pub const HSE_REQ_MAP_URL_TO_PATH = @as(u32, 1001); pub const HSE_REQ_GET_SSPI_INFO = @as(u32, 1002); pub const HSE_APPEND_LOG_PARAMETER = @as(u32, 1003); pub const HSE_REQ_IO_COMPLETION = @as(u32, 1005); pub const HSE_REQ_TRANSMIT_FILE = @as(u32, 1006); pub const HSE_REQ_REFRESH_ISAPI_ACL = @as(u32, 1007); pub const HSE_REQ_IS_KEEP_CONN = @as(u32, 1008); pub const HSE_REQ_ASYNC_READ_CLIENT = @as(u32, 1010); pub const HSE_REQ_GET_IMPERSONATION_TOKEN = @as(u32, 1011); pub const HSE_REQ_MAP_URL_TO_PATH_EX = @as(u32, 1012); pub const HSE_REQ_ABORTIVE_CLOSE = @as(u32, 1014); pub const HSE_REQ_GET_CERT_INFO_EX = @as(u32, 1015); pub const HSE_REQ_SEND_RESPONSE_HEADER_EX = @as(u32, 1016); pub const HSE_REQ_CLOSE_CONNECTION = @as(u32, 1017); pub const HSE_REQ_IS_CONNECTED = @as(u32, 1018); pub const HSE_REQ_MAP_UNICODE_URL_TO_PATH = @as(u32, 1023); pub const HSE_REQ_MAP_UNICODE_URL_TO_PATH_EX = @as(u32, 1024); pub const HSE_REQ_EXEC_UNICODE_URL = @as(u32, 1025); pub const HSE_REQ_EXEC_URL = @as(u32, 1026); pub const HSE_REQ_GET_EXEC_URL_STATUS = @as(u32, 1027); pub const HSE_REQ_SEND_CUSTOM_ERROR = @as(u32, 1028); pub const HSE_REQ_IS_IN_PROCESS = @as(u32, 1030); pub const HSE_REQ_REPORT_UNHEALTHY = @as(u32, 1032); pub const HSE_REQ_NORMALIZE_URL = @as(u32, 1033); pub const HSE_REQ_VECTOR_SEND = @as(u32, 1037); pub const HSE_REQ_GET_ANONYMOUS_TOKEN = @as(u32, 1038); pub const HSE_REQ_GET_CACHE_INVALIDATION_CALLBACK = @as(u32, 1040); pub const HSE_REQ_GET_UNICODE_ANONYMOUS_TOKEN = @as(u32, 1041); pub const HSE_REQ_GET_TRACE_INFO = @as(u32, 1042); pub const HSE_REQ_SET_FLUSH_FLAG = @as(u32, 1043); pub const HSE_REQ_GET_TRACE_INFO_EX = @as(u32, 1044); pub const HSE_REQ_RAISE_TRACE_EVENT = @as(u32, 1045); pub const HSE_REQ_GET_CONFIG_OBJECT = @as(u32, 1046); pub const HSE_REQ_GET_WORKER_PROCESS_SETTINGS = @as(u32, 1047); pub const HSE_REQ_GET_PROTOCOL_MANAGER_CUSTOM_INTERFACE_CALLBACK = @as(u32, 1048); pub const HSE_REQ_CANCEL_IO = @as(u32, 1049); pub const HSE_REQ_GET_CHANNEL_BINDING_TOKEN = @as(u32, 1050); pub const HSE_TERM_ADVISORY_UNLOAD = @as(u32, 1); pub const HSE_TERM_MUST_UNLOAD = @as(u32, 2); pub const HSE_URL_FLAGS_READ = @as(u32, 1); pub const HSE_URL_FLAGS_WRITE = @as(u32, 2); pub const HSE_URL_FLAGS_EXECUTE = @as(u32, 4); pub const HSE_URL_FLAGS_SSL = @as(u32, 8); pub const HSE_URL_FLAGS_DONT_CACHE = @as(u32, 16); pub const HSE_URL_FLAGS_NEGO_CERT = @as(u32, 32); pub const HSE_URL_FLAGS_REQUIRE_CERT = @as(u32, 64); pub const HSE_URL_FLAGS_MAP_CERT = @as(u32, 128); pub const HSE_URL_FLAGS_SSL128 = @as(u32, 256); pub const HSE_URL_FLAGS_SCRIPT = @as(u32, 512); pub const HSE_URL_FLAGS_MASK = @as(u32, 1023); pub const HSE_EXEC_URL_NO_HEADERS = @as(u32, 2); pub const HSE_EXEC_URL_IGNORE_CURRENT_INTERCEPTOR = @as(u32, 4); pub const HSE_EXEC_URL_IGNORE_VALIDATION_AND_RANGE = @as(u32, 16); pub const HSE_EXEC_URL_DISABLE_CUSTOM_ERROR = @as(u32, 32); pub const HSE_EXEC_URL_SSI_CMD = @as(u32, 64); pub const HSE_EXEC_URL_HTTP_CACHE_ELIGIBLE = @as(u32, 128); pub const HSE_VECTOR_ELEMENT_TYPE_MEMORY_BUFFER = @as(u32, 0); pub const HSE_VECTOR_ELEMENT_TYPE_FILE_HANDLE = @as(u32, 1); pub const HSE_APP_FLAG_IN_PROCESS = @as(u32, 0); pub const HSE_APP_FLAG_ISOLATED_OOP = @as(u32, 1); pub const HSE_APP_FLAG_POOLED_OOP = @as(u32, 2); pub const SF_MAX_USERNAME = @as(u32, 257); pub const SF_MAX_PASSWORD = @as(u32, 257); pub const SF_MAX_AUTH_TYPE = @as(u32, 33); pub const SF_MAX_FILTER_DESC_LEN = @as(u32, 257); pub const SF_DENIED_LOGON = @as(u32, 1); pub const SF_DENIED_RESOURCE = @as(u32, 2); pub const SF_DENIED_FILTER = @as(u32, 4); pub const SF_DENIED_APPLICATION = @as(u32, 8); pub const SF_DENIED_BY_CONFIG = @as(u32, 65536); pub const SF_NOTIFY_SECURE_PORT = @as(u32, 1); pub const SF_NOTIFY_NONSECURE_PORT = @as(u32, 2); pub const SF_NOTIFY_READ_RAW_DATA = @as(u32, 32768); pub const SF_NOTIFY_PREPROC_HEADERS = @as(u32, 16384); pub const SF_NOTIFY_AUTHENTICATION = @as(u32, 8192); pub const SF_NOTIFY_URL_MAP = @as(u32, 4096); pub const SF_NOTIFY_ACCESS_DENIED = @as(u32, 2048); pub const SF_NOTIFY_SEND_RESPONSE = @as(u32, 64); pub const SF_NOTIFY_SEND_RAW_DATA = @as(u32, 1024); pub const SF_NOTIFY_LOG = @as(u32, 512); pub const SF_NOTIFY_END_OF_REQUEST = @as(u32, 128); pub const SF_NOTIFY_END_OF_NET_SESSION = @as(u32, 256); pub const SF_NOTIFY_AUTH_COMPLETE = @as(u32, 67108864); pub const SF_NOTIFY_ORDER_HIGH = @as(u32, 524288); pub const SF_NOTIFY_ORDER_MEDIUM = @as(u32, 262144); pub const SF_NOTIFY_ORDER_LOW = @as(u32, 131072); pub const SF_NOTIFY_ORDER_DEFAULT = @as(u32, 131072); pub const DISPID_HTTPREQUEST_BASE = @as(u32, 1); pub const DISPID_HTTPREQUEST_OPEN = @as(u32, 1); pub const DISPID_HTTPREQUEST_SETREQUESTHEADER = @as(u32, 2); pub const DISPID_HTTPREQUEST_GETRESPONSEHEADER = @as(u32, 3); pub const DISPID_HTTPREQUEST_GETALLRESPONSEHEADERS = @as(u32, 4); pub const DISPID_HTTPREQUEST_SEND = @as(u32, 5); pub const DISPID_HTTPREQUEST_OPTION = @as(u32, 6); pub const DISPID_HTTPREQUEST_STATUS = @as(u32, 7); pub const DISPID_HTTPREQUEST_STATUSTEXT = @as(u32, 8); pub const DISPID_HTTPREQUEST_RESPONSETEXT = @as(u32, 9); pub const DISPID_HTTPREQUEST_RESPONSEBODY = @as(u32, 10); pub const DISPID_HTTPREQUEST_RESPONSESTREAM = @as(u32, 11); pub const DISPID_HTTPREQUEST_ABORT = @as(u32, 12); pub const DISPID_HTTPREQUEST_SETPROXY = @as(u32, 13); pub const DISPID_HTTPREQUEST_SETCREDENTIALS = @as(u32, 14); pub const DISPID_HTTPREQUEST_WAITFORRESPONSE = @as(u32, 15); pub const DISPID_HTTPREQUEST_SETTIMEOUTS = @as(u32, 16); pub const DISPID_HTTPREQUEST_SETCLIENTCERTIFICATE = @as(u32, 17); pub const DISPID_HTTPREQUEST_SETAUTOLOGONPOLICY = @as(u32, 18); pub const HTTP_TRACE_EVENT_FLAG_STATIC_DESCRIPTIVE_FIELDS = @as(u32, 1); pub const HTTP_TRACE_LEVEL_START = @as(u32, 6); pub const HTTP_TRACE_LEVEL_END = @as(u32, 7); pub const GUID_IIS_ALL_TRACE_PROVIDERS = Guid.initString("00000000-0000-0000-0000-000000000000"); pub const GUID_IIS_WWW_SERVER_TRACE_PROVIDER = Guid.initString("3a2a4e84-4c21-4981-ae10-3fda0d9b0f83"); pub const GUID_IIS_WWW_SERVER_V2_TRACE_PROVIDER = Guid.initString("de4649c9-15e8-4fea-9d85-1cdda520c334"); pub const GUID_IIS_ASPNET_TRACE_PROVIDER = Guid.initString("aff081fe-0247-4275-9c4e-021f3dc1da35"); pub const GUID_IIS_ASP_TRACE_TRACE_PROVIDER = Guid.initString("06b94d9a-b15e-456e-a4ef-37c984a2cb4b"); pub const GUID_IIS_WWW_GLOBAL_TRACE_PROVIDER = Guid.initString("d55d3bc9-cba9-44df-827e-132d3a4596c2"); pub const GUID_IIS_ISAPI_TRACE_PROVIDER = Guid.initString("a1c2040e-8840-4c31-ba11-9871031a19ea"); //-------------------------------------------------------------------------------- // Section: Types (79) //-------------------------------------------------------------------------------- const CLSID_FtpProvider_Value = Guid.initString("70bdc667-33b2-45f0-ac52-c3ca46f7a656"); pub const CLSID_FtpProvider = &CLSID_FtpProvider_Value; pub const CONFIGURATION_ENTRY = extern struct { bstrKey: ?BSTR, bstrValue: ?BSTR, }; const IID_IFtpProviderConstruct_Value = Guid.initString("4d1a3f7b-412d-447c-b199-64f967e9a2da"); pub const IID_IFtpProviderConstruct = &IID_IFtpProviderConstruct_Value; pub const IFtpProviderConstruct = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, Construct: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IFtpProviderConstruct, configurationEntries: ?*SAFEARRAY, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IFtpProviderConstruct, configurationEntries: ?*SAFEARRAY, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IFtpProviderConstruct_Construct(self: *const T, configurationEntries: ?*SAFEARRAY) HRESULT { return @as(*const IFtpProviderConstruct.VTable, @ptrCast(self.vtable)).Construct(@as(*const IFtpProviderConstruct, @ptrCast(self)), configurationEntries); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IFtpAuthenticationProvider_Value = Guid.initString("4659f95c-d5a8-4707-b2fc-6fd5794246cf"); pub const IID_IFtpAuthenticationProvider = &IID_IFtpAuthenticationProvider_Value; pub const IFtpAuthenticationProvider = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, AuthenticateUser: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IFtpAuthenticationProvider, pszSessionId: ?[*:0]const u16, pszSiteName: ?[*:0]const u16, pszUserName: ?[*:0]const u16, pszPassword: ?[*:0]const u16, ppszCanonicalUserName: ?*?PWSTR, pfAuthenticated: ?*BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IFtpAuthenticationProvider, pszSessionId: ?[*:0]const u16, pszSiteName: ?[*:0]const u16, pszUserName: ?[*:0]const u16, pszPassword: ?[*:0]const u16, ppszCanonicalUserName: ?*?PWSTR, pfAuthenticated: ?*BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IFtpAuthenticationProvider_AuthenticateUser(self: *const T, pszSessionId: ?[*:0]const u16, pszSiteName: ?[*:0]const u16, pszUserName: ?[*:0]const u16, pszPassword: ?[*:0]const u16, ppszCanonicalUserName: ?*?PWSTR, pfAuthenticated: ?*BOOL) HRESULT { return @as(*const IFtpAuthenticationProvider.VTable, @ptrCast(self.vtable)).AuthenticateUser(@as(*const IFtpAuthenticationProvider, @ptrCast(self)), pszSessionId, pszSiteName, pszUserName, pszPassword, ppszCanonicalUserName, pfAuthenticated); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_AsyncIFtpAuthenticationProvider_Value = Guid.initString("c24efb65-9f3e-4996-8fb1-ce166916bab5"); pub const IID_AsyncIFtpAuthenticationProvider = &IID_AsyncIFtpAuthenticationProvider_Value; pub const AsyncIFtpAuthenticationProvider = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, Begin_AuthenticateUser: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const AsyncIFtpAuthenticationProvider, pszSessionId: ?[*:0]const u16, pszSiteName: ?[*:0]const u16, pszUserName: ?[*:0]const u16, pszPassword: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const AsyncIFtpAuthenticationProvider, pszSessionId: ?[*:0]const u16, pszSiteName: ?[*:0]const u16, pszUserName: ?[*:0]const u16, pszPassword: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Finish_AuthenticateUser: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const AsyncIFtpAuthenticationProvider, ppszCanonicalUserName: ?*?PWSTR, pfAuthenticated: ?*BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const AsyncIFtpAuthenticationProvider, ppszCanonicalUserName: ?*?PWSTR, pfAuthenticated: ?*BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn AsyncIFtpAuthenticationProvider_Begin_AuthenticateUser(self: *const T, pszSessionId: ?[*:0]const u16, pszSiteName: ?[*:0]const u16, pszUserName: ?[*:0]const u16, pszPassword: ?[*:0]const u16) HRESULT { return @as(*const AsyncIFtpAuthenticationProvider.VTable, @ptrCast(self.vtable)).Begin_AuthenticateUser(@as(*const AsyncIFtpAuthenticationProvider, @ptrCast(self)), pszSessionId, pszSiteName, pszUserName, pszPassword); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn AsyncIFtpAuthenticationProvider_Finish_AuthenticateUser(self: *const T, ppszCanonicalUserName: ?*?PWSTR, pfAuthenticated: ?*BOOL) HRESULT { return @as(*const AsyncIFtpAuthenticationProvider.VTable, @ptrCast(self.vtable)).Finish_AuthenticateUser(@as(*const AsyncIFtpAuthenticationProvider, @ptrCast(self)), ppszCanonicalUserName, pfAuthenticated); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IFtpRoleProvider_Value = Guid.initString("909c850d-8ca0-4674-96b8-cc2941535725"); pub const IID_IFtpRoleProvider = &IID_IFtpRoleProvider_Value; pub const IFtpRoleProvider = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, IsUserInRole: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IFtpRoleProvider, pszSessionId: ?[*:0]const u16, pszSiteName: ?[*:0]const u16, pszUserName: ?[*:0]const u16, pszRole: ?[*:0]const u16, pfIsInRole: ?*BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IFtpRoleProvider, pszSessionId: ?[*:0]const u16, pszSiteName: ?[*:0]const u16, pszUserName: ?[*:0]const u16, pszRole: ?[*:0]const u16, pfIsInRole: ?*BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IFtpRoleProvider_IsUserInRole(self: *const T, pszSessionId: ?[*:0]const u16, pszSiteName: ?[*:0]const u16, pszUserName: ?[*:0]const u16, pszRole: ?[*:0]const u16, pfIsInRole: ?*BOOL) HRESULT { return @as(*const IFtpRoleProvider.VTable, @ptrCast(self.vtable)).IsUserInRole(@as(*const IFtpRoleProvider, @ptrCast(self)), pszSessionId, pszSiteName, pszUserName, pszRole, pfIsInRole); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_AsyncIFtpRoleProvider_Value = Guid.initString("3e83bf99-70ec-41ca-84b6-aca7c7a62caf"); pub const IID_AsyncIFtpRoleProvider = &IID_AsyncIFtpRoleProvider_Value; pub const AsyncIFtpRoleProvider = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, Begin_IsUserInRole: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const AsyncIFtpRoleProvider, pszSessionId: ?[*:0]const u16, pszSiteName: ?[*:0]const u16, pszUserName: ?[*:0]const u16, pszRole: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const AsyncIFtpRoleProvider, pszSessionId: ?[*:0]const u16, pszSiteName: ?[*:0]const u16, pszUserName: ?[*:0]const u16, pszRole: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Finish_IsUserInRole: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const AsyncIFtpRoleProvider, pfIsInRole: ?*BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const AsyncIFtpRoleProvider, pfIsInRole: ?*BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn AsyncIFtpRoleProvider_Begin_IsUserInRole(self: *const T, pszSessionId: ?[*:0]const u16, pszSiteName: ?[*:0]const u16, pszUserName: ?[*:0]const u16, pszRole: ?[*:0]const u16) HRESULT { return @as(*const AsyncIFtpRoleProvider.VTable, @ptrCast(self.vtable)).Begin_IsUserInRole(@as(*const AsyncIFtpRoleProvider, @ptrCast(self)), pszSessionId, pszSiteName, pszUserName, pszRole); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn AsyncIFtpRoleProvider_Finish_IsUserInRole(self: *const T, pfIsInRole: ?*BOOL) HRESULT { return @as(*const AsyncIFtpRoleProvider.VTable, @ptrCast(self.vtable)).Finish_IsUserInRole(@as(*const AsyncIFtpRoleProvider, @ptrCast(self)), pfIsInRole); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IFtpHomeDirectoryProvider_Value = Guid.initString("0933b392-18dd-4097-8b9c-83325c35d9a6"); pub const IID_IFtpHomeDirectoryProvider = &IID_IFtpHomeDirectoryProvider_Value; pub const IFtpHomeDirectoryProvider = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, GetUserHomeDirectoryData: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IFtpHomeDirectoryProvider, pszSessionId: ?[*:0]const u16, pszSiteName: ?[*:0]const u16, pszUserName: ?[*:0]const u16, ppszHomeDirectoryData: ?*?PWSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IFtpHomeDirectoryProvider, pszSessionId: ?[*:0]const u16, pszSiteName: ?[*:0]const u16, pszUserName: ?[*:0]const u16, ppszHomeDirectoryData: ?*?PWSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IFtpHomeDirectoryProvider_GetUserHomeDirectoryData(self: *const T, pszSessionId: ?[*:0]const u16, pszSiteName: ?[*:0]const u16, pszUserName: ?[*:0]const u16, ppszHomeDirectoryData: ?*?PWSTR) HRESULT { return @as(*const IFtpHomeDirectoryProvider.VTable, @ptrCast(self.vtable)).GetUserHomeDirectoryData(@as(*const IFtpHomeDirectoryProvider, @ptrCast(self)), pszSessionId, pszSiteName, pszUserName, ppszHomeDirectoryData); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_AsyncIFtpHomeDirectoryProvider_Value = Guid.initString("73f81638-6295-42bd-a2be-4a657f7c479c"); pub const IID_AsyncIFtpHomeDirectoryProvider = &IID_AsyncIFtpHomeDirectoryProvider_Value; pub const AsyncIFtpHomeDirectoryProvider = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, Begin_GetUserHomeDirectoryData: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const AsyncIFtpHomeDirectoryProvider, pszSessionId: ?[*:0]const u16, pszSiteName: ?[*:0]const u16, pszUserName: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const AsyncIFtpHomeDirectoryProvider, pszSessionId: ?[*:0]const u16, pszSiteName: ?[*:0]const u16, pszUserName: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Finish_GetUserHomeDirectoryData: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const AsyncIFtpHomeDirectoryProvider, ppszHomeDirectoryData: ?*?PWSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const AsyncIFtpHomeDirectoryProvider, ppszHomeDirectoryData: ?*?PWSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn AsyncIFtpHomeDirectoryProvider_Begin_GetUserHomeDirectoryData(self: *const T, pszSessionId: ?[*:0]const u16, pszSiteName: ?[*:0]const u16, pszUserName: ?[*:0]const u16) HRESULT { return @as(*const AsyncIFtpHomeDirectoryProvider.VTable, @ptrCast(self.vtable)).Begin_GetUserHomeDirectoryData(@as(*const AsyncIFtpHomeDirectoryProvider, @ptrCast(self)), pszSessionId, pszSiteName, pszUserName); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn AsyncIFtpHomeDirectoryProvider_Finish_GetUserHomeDirectoryData(self: *const T, ppszHomeDirectoryData: ?*?PWSTR) HRESULT { return @as(*const AsyncIFtpHomeDirectoryProvider.VTable, @ptrCast(self.vtable)).Finish_GetUserHomeDirectoryData(@as(*const AsyncIFtpHomeDirectoryProvider, @ptrCast(self)), ppszHomeDirectoryData); } }; } pub usingnamespace MethodMixin(@This()); }; pub const LOGGING_PARAMETERS = extern struct { pszSessionId: ?[*:0]const u16, pszSiteName: ?[*:0]const u16, pszUserName: ?[*:0]const u16, pszHostName: ?[*:0]const u16, pszRemoteIpAddress: ?[*:0]const u16, dwRemoteIpPort: u32, pszLocalIpAddress: ?[*:0]const u16, dwLocalIpPort: u32, BytesSent: u64, BytesReceived: u64, pszCommand: ?[*:0]const u16, pszCommandParameters: ?[*:0]const u16, pszFullPath: ?[*:0]const u16, dwElapsedMilliseconds: u32, FtpStatus: u32, FtpSubStatus: u32, hrStatus: HRESULT, pszInformation: ?[*:0]const u16, }; const IID_IFtpLogProvider_Value = Guid.initString("a18a94cc-8299-4408-816c-7c3baca1a40e"); pub const IID_IFtpLogProvider = &IID_IFtpLogProvider_Value; pub const IFtpLogProvider = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, Log: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IFtpLogProvider, pLoggingParameters: ?*const LOGGING_PARAMETERS, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IFtpLogProvider, pLoggingParameters: ?*const LOGGING_PARAMETERS, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IFtpLogProvider_Log(self: *const T, pLoggingParameters: ?*const LOGGING_PARAMETERS) HRESULT { return @as(*const IFtpLogProvider.VTable, @ptrCast(self.vtable)).Log(@as(*const IFtpLogProvider, @ptrCast(self)), pLoggingParameters); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_AsyncIFtpLogProvider_Value = Guid.initString("00a0ae46-2498-48b2-95e6-df678ed7d49f"); pub const IID_AsyncIFtpLogProvider = &IID_AsyncIFtpLogProvider_Value; pub const AsyncIFtpLogProvider = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, Begin_Log: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const AsyncIFtpLogProvider, pLoggingParameters: ?*const LOGGING_PARAMETERS, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const AsyncIFtpLogProvider, pLoggingParameters: ?*const LOGGING_PARAMETERS, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Finish_Log: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const AsyncIFtpLogProvider, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const AsyncIFtpLogProvider, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn AsyncIFtpLogProvider_Begin_Log(self: *const T, pLoggingParameters: ?*const LOGGING_PARAMETERS) HRESULT { return @as(*const AsyncIFtpLogProvider.VTable, @ptrCast(self.vtable)).Begin_Log(@as(*const AsyncIFtpLogProvider, @ptrCast(self)), pLoggingParameters); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn AsyncIFtpLogProvider_Finish_Log(self: *const T) HRESULT { return @as(*const AsyncIFtpLogProvider.VTable, @ptrCast(self.vtable)).Finish_Log(@as(*const AsyncIFtpLogProvider, @ptrCast(self))); } }; } pub usingnamespace MethodMixin(@This()); }; pub const FTP_ACCESS = enum(i32) { NONE = 0, READ = 1, WRITE = 2, READ_WRITE = 3, }; pub const FTP_ACCESS_NONE = FTP_ACCESS.NONE; pub const FTP_ACCESS_READ = FTP_ACCESS.READ; pub const FTP_ACCESS_WRITE = FTP_ACCESS.WRITE; pub const FTP_ACCESS_READ_WRITE = FTP_ACCESS.READ_WRITE; const IID_IFtpAuthorizationProvider_Value = Guid.initString("a50ae7a1-a35a-42b4-a4f3-f4f7057a05d1"); pub const IID_IFtpAuthorizationProvider = &IID_IFtpAuthorizationProvider_Value; pub const IFtpAuthorizationProvider = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, GetUserAccessPermission: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IFtpAuthorizationProvider, pszSessionId: ?[*:0]const u16, pszSiteName: ?[*:0]const u16, pszVirtualPath: ?[*:0]const u16, pszUserName: ?[*:0]const u16, pFtpAccess: ?*FTP_ACCESS, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IFtpAuthorizationProvider, pszSessionId: ?[*:0]const u16, pszSiteName: ?[*:0]const u16, pszVirtualPath: ?[*:0]const u16, pszUserName: ?[*:0]const u16, pFtpAccess: ?*FTP_ACCESS, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IFtpAuthorizationProvider_GetUserAccessPermission(self: *const T, pszSessionId: ?[*:0]const u16, pszSiteName: ?[*:0]const u16, pszVirtualPath: ?[*:0]const u16, pszUserName: ?[*:0]const u16, pFtpAccess: ?*FTP_ACCESS) HRESULT { return @as(*const IFtpAuthorizationProvider.VTable, @ptrCast(self.vtable)).GetUserAccessPermission(@as(*const IFtpAuthorizationProvider, @ptrCast(self)), pszSessionId, pszSiteName, pszVirtualPath, pszUserName, pFtpAccess); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_AsyncIFtpAuthorizationProvider_Value = Guid.initString("860dc339-07e5-4a5c-9c61-8820cea012bc"); pub const IID_AsyncIFtpAuthorizationProvider = &IID_AsyncIFtpAuthorizationProvider_Value; pub const AsyncIFtpAuthorizationProvider = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, Begin_GetUserAccessPermission: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const AsyncIFtpAuthorizationProvider, pszSessionId: ?[*:0]const u16, pszSiteName: ?[*:0]const u16, pszVirtualPath: ?[*:0]const u16, pszUserName: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const AsyncIFtpAuthorizationProvider, pszSessionId: ?[*:0]const u16, pszSiteName: ?[*:0]const u16, pszVirtualPath: ?[*:0]const u16, pszUserName: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Finish_GetUserAccessPermission: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const AsyncIFtpAuthorizationProvider, pFtpAccess: ?*FTP_ACCESS, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const AsyncIFtpAuthorizationProvider, pFtpAccess: ?*FTP_ACCESS, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn AsyncIFtpAuthorizationProvider_Begin_GetUserAccessPermission(self: *const T, pszSessionId: ?[*:0]const u16, pszSiteName: ?[*:0]const u16, pszVirtualPath: ?[*:0]const u16, pszUserName: ?[*:0]const u16) HRESULT { return @as(*const AsyncIFtpAuthorizationProvider.VTable, @ptrCast(self.vtable)).Begin_GetUserAccessPermission(@as(*const AsyncIFtpAuthorizationProvider, @ptrCast(self)), pszSessionId, pszSiteName, pszVirtualPath, pszUserName); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn AsyncIFtpAuthorizationProvider_Finish_GetUserAccessPermission(self: *const T, pFtpAccess: ?*FTP_ACCESS) HRESULT { return @as(*const AsyncIFtpAuthorizationProvider.VTable, @ptrCast(self.vtable)).Finish_GetUserAccessPermission(@as(*const AsyncIFtpAuthorizationProvider, @ptrCast(self)), pFtpAccess); } }; } pub usingnamespace MethodMixin(@This()); }; pub const FTP_PROCESS_STATUS = enum(i32) { CONTINUE = 0, CLOSE_SESSION = 1, TERMINATE_SESSION = 2, REJECT_COMMAND = 3, }; pub const FTP_PROCESS_CONTINUE = FTP_PROCESS_STATUS.CONTINUE; pub const FTP_PROCESS_CLOSE_SESSION = FTP_PROCESS_STATUS.CLOSE_SESSION; pub const FTP_PROCESS_TERMINATE_SESSION = FTP_PROCESS_STATUS.TERMINATE_SESSION; pub const FTP_PROCESS_REJECT_COMMAND = FTP_PROCESS_STATUS.REJECT_COMMAND; pub const PRE_PROCESS_PARAMETERS = extern struct { pszSessionId: ?[*:0]const u16, pszSiteName: ?[*:0]const u16, pszUserName: ?[*:0]const u16, pszHostName: ?[*:0]const u16, pszRemoteIpAddress: ?[*:0]const u16, dwRemoteIpPort: u32, pszLocalIpAddress: ?[*:0]const u16, dwLocalIpPort: u32, pszCommand: ?[*:0]const u16, pszCommandParameters: ?[*:0]const u16, SessionStartTime: FILETIME, BytesSentPerSession: u64, BytesReceivedPerSession: u64, }; const IID_IFtpPreprocessProvider_Value = Guid.initString("a3c19b60-5a28-471a-8f93-ab30411cee82"); pub const IID_IFtpPreprocessProvider = &IID_IFtpPreprocessProvider_Value; pub const IFtpPreprocessProvider = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, HandlePreprocess: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IFtpPreprocessProvider, pPreProcessParameters: ?*const PRE_PROCESS_PARAMETERS, pFtpProcessStatus: ?*FTP_PROCESS_STATUS, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IFtpPreprocessProvider, pPreProcessParameters: ?*const PRE_PROCESS_PARAMETERS, pFtpProcessStatus: ?*FTP_PROCESS_STATUS, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IFtpPreprocessProvider_HandlePreprocess(self: *const T, pPreProcessParameters: ?*const PRE_PROCESS_PARAMETERS, pFtpProcessStatus: ?*FTP_PROCESS_STATUS) HRESULT { return @as(*const IFtpPreprocessProvider.VTable, @ptrCast(self.vtable)).HandlePreprocess(@as(*const IFtpPreprocessProvider, @ptrCast(self)), pPreProcessParameters, pFtpProcessStatus); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_AsyncIFtpPreprocessProvider_Value = Guid.initString("6ff5fd8f-fd8e-48b1-a3e0-bf7073db4db5"); pub const IID_AsyncIFtpPreprocessProvider = &IID_AsyncIFtpPreprocessProvider_Value; pub const AsyncIFtpPreprocessProvider = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, Begin_HandlePreprocess: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const AsyncIFtpPreprocessProvider, pPreProcessParameters: ?*const PRE_PROCESS_PARAMETERS, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const AsyncIFtpPreprocessProvider, pPreProcessParameters: ?*const PRE_PROCESS_PARAMETERS, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Finish_HandlePreprocess: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const AsyncIFtpPreprocessProvider, pFtpProcessStatus: ?*FTP_PROCESS_STATUS, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const AsyncIFtpPreprocessProvider, pFtpProcessStatus: ?*FTP_PROCESS_STATUS, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn AsyncIFtpPreprocessProvider_Begin_HandlePreprocess(self: *const T, pPreProcessParameters: ?*const PRE_PROCESS_PARAMETERS) HRESULT { return @as(*const AsyncIFtpPreprocessProvider.VTable, @ptrCast(self.vtable)).Begin_HandlePreprocess(@as(*const AsyncIFtpPreprocessProvider, @ptrCast(self)), pPreProcessParameters); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn AsyncIFtpPreprocessProvider_Finish_HandlePreprocess(self: *const T, pFtpProcessStatus: ?*FTP_PROCESS_STATUS) HRESULT { return @as(*const AsyncIFtpPreprocessProvider.VTable, @ptrCast(self.vtable)).Finish_HandlePreprocess(@as(*const AsyncIFtpPreprocessProvider, @ptrCast(self)), pFtpProcessStatus); } }; } pub usingnamespace MethodMixin(@This()); }; pub const POST_PROCESS_PARAMETERS = extern struct { pszSessionId: ?[*:0]const u16, pszSiteName: ?[*:0]const u16, pszUserName: ?[*:0]const u16, pszHostName: ?[*:0]const u16, pszRemoteIpAddress: ?[*:0]const u16, dwRemoteIpPort: u32, pszLocalIpAddress: ?[*:0]const u16, dwLocalIpPort: u32, BytesSent: u64, BytesReceived: u64, pszCommand: ?[*:0]const u16, pszCommandParameters: ?[*:0]const u16, pszFullPath: ?[*:0]const u16, pszPhysicalPath: ?[*:0]const u16, FtpStatus: u32, FtpSubStatus: u32, hrStatus: HRESULT, SessionStartTime: FILETIME, BytesSentPerSession: u64, BytesReceivedPerSession: u64, }; const IID_IFtpPostprocessProvider_Value = Guid.initString("4522cbc6-16cd-49ad-8653-9a2c579e4280"); pub const IID_IFtpPostprocessProvider = &IID_IFtpPostprocessProvider_Value; pub const IFtpPostprocessProvider = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, HandlePostprocess: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IFtpPostprocessProvider, pPostProcessParameters: ?*const POST_PROCESS_PARAMETERS, pFtpProcessStatus: ?*FTP_PROCESS_STATUS, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IFtpPostprocessProvider, pPostProcessParameters: ?*const POST_PROCESS_PARAMETERS, pFtpProcessStatus: ?*FTP_PROCESS_STATUS, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IFtpPostprocessProvider_HandlePostprocess(self: *const T, pPostProcessParameters: ?*const POST_PROCESS_PARAMETERS, pFtpProcessStatus: ?*FTP_PROCESS_STATUS) HRESULT { return @as(*const IFtpPostprocessProvider.VTable, @ptrCast(self.vtable)).HandlePostprocess(@as(*const IFtpPostprocessProvider, @ptrCast(self)), pPostProcessParameters, pFtpProcessStatus); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_AsyncIFtpPostprocessProvider_Value = Guid.initString("a16b2542-9694-4eb1-a564-6c2e91fdc133"); pub const IID_AsyncIFtpPostprocessProvider = &IID_AsyncIFtpPostprocessProvider_Value; pub const AsyncIFtpPostprocessProvider = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, Begin_HandlePostprocess: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const AsyncIFtpPostprocessProvider, pPostProcessParameters: ?*const POST_PROCESS_PARAMETERS, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const AsyncIFtpPostprocessProvider, pPostProcessParameters: ?*const POST_PROCESS_PARAMETERS, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Finish_HandlePostprocess: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const AsyncIFtpPostprocessProvider, pFtpProcessStatus: ?*FTP_PROCESS_STATUS, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const AsyncIFtpPostprocessProvider, pFtpProcessStatus: ?*FTP_PROCESS_STATUS, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn AsyncIFtpPostprocessProvider_Begin_HandlePostprocess(self: *const T, pPostProcessParameters: ?*const POST_PROCESS_PARAMETERS) HRESULT { return @as(*const AsyncIFtpPostprocessProvider.VTable, @ptrCast(self.vtable)).Begin_HandlePostprocess(@as(*const AsyncIFtpPostprocessProvider, @ptrCast(self)), pPostProcessParameters); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn AsyncIFtpPostprocessProvider_Finish_HandlePostprocess(self: *const T, pFtpProcessStatus: ?*FTP_PROCESS_STATUS) HRESULT { return @as(*const AsyncIFtpPostprocessProvider.VTable, @ptrCast(self.vtable)).Finish_HandlePostprocess(@as(*const AsyncIFtpPostprocessProvider, @ptrCast(self)), pFtpProcessStatus); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IADMEXT_Value = Guid.initString("51dfe970-f6f2-11d0-b9bd-00a0c922e750"); pub const IID_IADMEXT = &IID_IADMEXT_Value; pub const IADMEXT = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, Initialize: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IADMEXT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IADMEXT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, EnumDcomCLSIDs: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IADMEXT, pclsidDcom: ?*Guid, dwEnumIndex: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IADMEXT, pclsidDcom: ?*Guid, dwEnumIndex: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Terminate: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IADMEXT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IADMEXT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IADMEXT_Initialize(self: *const T) HRESULT { return @as(*const IADMEXT.VTable, @ptrCast(self.vtable)).Initialize(@as(*const IADMEXT, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IADMEXT_EnumDcomCLSIDs(self: *const T, pclsidDcom: ?*Guid, dwEnumIndex: u32) HRESULT { return @as(*const IADMEXT.VTable, @ptrCast(self.vtable)).EnumDcomCLSIDs(@as(*const IADMEXT, @ptrCast(self)), pclsidDcom, dwEnumIndex); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IADMEXT_Terminate(self: *const T) HRESULT { return @as(*const IADMEXT.VTable, @ptrCast(self.vtable)).Terminate(@as(*const IADMEXT, @ptrCast(self))); } }; } pub usingnamespace MethodMixin(@This()); }; pub const METADATATYPES = enum(i32) { ALL_METADATA = 0, DWORD_METADATA = 1, STRING_METADATA = 2, BINARY_METADATA = 3, EXPANDSZ_METADATA = 4, MULTISZ_METADATA = 5, INVALID_END_METADATA = 6, }; pub const ALL_METADATA = METADATATYPES.ALL_METADATA; pub const DWORD_METADATA = METADATATYPES.DWORD_METADATA; pub const STRING_METADATA = METADATATYPES.STRING_METADATA; pub const BINARY_METADATA = METADATATYPES.BINARY_METADATA; pub const EXPANDSZ_METADATA = METADATATYPES.EXPANDSZ_METADATA; pub const MULTISZ_METADATA = METADATATYPES.MULTISZ_METADATA; pub const INVALID_END_METADATA = METADATATYPES.INVALID_END_METADATA; pub const METADATA_RECORD = extern struct { dwMDIdentifier: u32, dwMDAttributes: u32, dwMDUserType: u32, dwMDDataType: u32, dwMDDataLen: u32, pbMDData: ?*u8, dwMDDataTag: u32, }; pub const METADATA_GETALL_RECORD = extern struct { dwMDIdentifier: u32, dwMDAttributes: u32, dwMDUserType: u32, dwMDDataType: u32, dwMDDataLen: u32, dwMDDataOffset: u32, dwMDDataTag: u32, }; pub const METADATA_GETALL_INTERNAL_RECORD = extern struct { dwMDIdentifier: u32, dwMDAttributes: u32, dwMDUserType: u32, dwMDDataType: u32, dwMDDataLen: u32, Anonymous: extern union { dwMDDataOffset: usize, pbMDData: ?*u8, }, dwMDDataTag: u32, }; pub const METADATA_HANDLE_INFO = extern struct { dwMDPermissions: u32, dwMDSystemChangeNumber: u32, }; pub const MD_CHANGE_OBJECT_W = extern struct { pszMDPath: ?PWSTR, dwMDChangeType: u32, dwMDNumDataIDs: u32, pdwMDDataIDs: ?*u32, }; const IID_IMSAdminBaseW_Value = Guid.initString("70b51430-b6ca-11d0-b9b9-00a0c922e750"); pub const IID_IMSAdminBaseW = &IID_IMSAdminBaseW_Value; pub const IMSAdminBaseW = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, AddKey: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IMSAdminBaseW, hMDHandle: u32, pszMDPath: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IMSAdminBaseW, hMDHandle: u32, pszMDPath: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, DeleteKey: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IMSAdminBaseW, hMDHandle: u32, pszMDPath: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IMSAdminBaseW, hMDHandle: u32, pszMDPath: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, DeleteChildKeys: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IMSAdminBaseW, hMDHandle: u32, pszMDPath: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IMSAdminBaseW, hMDHandle: u32, pszMDPath: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, EnumKeys: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IMSAdminBaseW, hMDHandle: u32, pszMDPath: ?[*:0]const u16, pszMDName: *[256]u16, dwMDEnumObjectIndex: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IMSAdminBaseW, hMDHandle: u32, pszMDPath: ?[*:0]const u16, pszMDName: *[256]u16, dwMDEnumObjectIndex: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, CopyKey: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IMSAdminBaseW, hMDSourceHandle: u32, pszMDSourcePath: ?[*:0]const u16, hMDDestHandle: u32, pszMDDestPath: ?[*:0]const u16, bMDOverwriteFlag: BOOL, bMDCopyFlag: BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IMSAdminBaseW, hMDSourceHandle: u32, pszMDSourcePath: ?[*:0]const u16, hMDDestHandle: u32, pszMDDestPath: ?[*:0]const u16, bMDOverwriteFlag: BOOL, bMDCopyFlag: BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, RenameKey: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IMSAdminBaseW, hMDHandle: u32, pszMDPath: ?[*:0]const u16, pszMDNewName: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IMSAdminBaseW, hMDHandle: u32, pszMDPath: ?[*:0]const u16, pszMDNewName: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetData: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IMSAdminBaseW, hMDHandle: u32, pszMDPath: ?[*:0]const u16, pmdrMDData: ?*METADATA_RECORD, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IMSAdminBaseW, hMDHandle: u32, pszMDPath: ?[*:0]const u16, pmdrMDData: ?*METADATA_RECORD, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetData: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IMSAdminBaseW, hMDHandle: u32, pszMDPath: ?[*:0]const u16, pmdrMDData: ?*METADATA_RECORD, pdwMDRequiredDataLen: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IMSAdminBaseW, hMDHandle: u32, pszMDPath: ?[*:0]const u16, pmdrMDData: ?*METADATA_RECORD, pdwMDRequiredDataLen: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, DeleteData: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IMSAdminBaseW, hMDHandle: u32, pszMDPath: ?[*:0]const u16, dwMDIdentifier: u32, dwMDDataType: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IMSAdminBaseW, hMDHandle: u32, pszMDPath: ?[*:0]const u16, dwMDIdentifier: u32, dwMDDataType: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, EnumData: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IMSAdminBaseW, hMDHandle: u32, pszMDPath: ?[*:0]const u16, pmdrMDData: ?*METADATA_RECORD, dwMDEnumDataIndex: u32, pdwMDRequiredDataLen: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IMSAdminBaseW, hMDHandle: u32, pszMDPath: ?[*:0]const u16, pmdrMDData: ?*METADATA_RECORD, dwMDEnumDataIndex: u32, pdwMDRequiredDataLen: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetAllData: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IMSAdminBaseW, hMDHandle: u32, pszMDPath: ?[*:0]const u16, dwMDAttributes: u32, dwMDUserType: u32, dwMDDataType: u32, pdwMDNumDataEntries: ?*u32, pdwMDDataSetNumber: ?*u32, dwMDBufferSize: u32, pbMDBuffer: ?*u8, pdwMDRequiredBufferSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IMSAdminBaseW, hMDHandle: u32, pszMDPath: ?[*:0]const u16, dwMDAttributes: u32, dwMDUserType: u32, dwMDDataType: u32, pdwMDNumDataEntries: ?*u32, pdwMDDataSetNumber: ?*u32, dwMDBufferSize: u32, pbMDBuffer: ?*u8, pdwMDRequiredBufferSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, DeleteAllData: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IMSAdminBaseW, hMDHandle: u32, pszMDPath: ?[*:0]const u16, dwMDUserType: u32, dwMDDataType: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IMSAdminBaseW, hMDHandle: u32, pszMDPath: ?[*:0]const u16, dwMDUserType: u32, dwMDDataType: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, CopyData: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IMSAdminBaseW, hMDSourceHandle: u32, pszMDSourcePath: ?[*:0]const u16, hMDDestHandle: u32, pszMDDestPath: ?[*:0]const u16, dwMDAttributes: u32, dwMDUserType: u32, dwMDDataType: u32, bMDCopyFlag: BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IMSAdminBaseW, hMDSourceHandle: u32, pszMDSourcePath: ?[*:0]const u16, hMDDestHandle: u32, pszMDDestPath: ?[*:0]const u16, dwMDAttributes: u32, dwMDUserType: u32, dwMDDataType: u32, bMDCopyFlag: BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetDataPaths: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IMSAdminBaseW, hMDHandle: u32, pszMDPath: ?[*:0]const u16, dwMDIdentifier: u32, dwMDDataType: u32, dwMDBufferSize: u32, pszBuffer: [*:0]u16, pdwMDRequiredBufferSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IMSAdminBaseW, hMDHandle: u32, pszMDPath: ?[*:0]const u16, dwMDIdentifier: u32, dwMDDataType: u32, dwMDBufferSize: u32, pszBuffer: [*:0]u16, pdwMDRequiredBufferSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, OpenKey: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IMSAdminBaseW, hMDHandle: u32, pszMDPath: ?[*:0]const u16, dwMDAccessRequested: u32, dwMDTimeOut: u32, phMDNewHandle: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IMSAdminBaseW, hMDHandle: u32, pszMDPath: ?[*:0]const u16, dwMDAccessRequested: u32, dwMDTimeOut: u32, phMDNewHandle: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, CloseKey: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IMSAdminBaseW, hMDHandle: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IMSAdminBaseW, hMDHandle: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, ChangePermissions: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IMSAdminBaseW, hMDHandle: u32, dwMDTimeOut: u32, dwMDAccessRequested: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IMSAdminBaseW, hMDHandle: u32, dwMDTimeOut: u32, dwMDAccessRequested: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SaveData: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IMSAdminBaseW, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IMSAdminBaseW, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetHandleInfo: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IMSAdminBaseW, hMDHandle: u32, pmdhiInfo: ?*METADATA_HANDLE_INFO, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IMSAdminBaseW, hMDHandle: u32, pmdhiInfo: ?*METADATA_HANDLE_INFO, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetSystemChangeNumber: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IMSAdminBaseW, pdwSystemChangeNumber: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IMSAdminBaseW, pdwSystemChangeNumber: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetDataSetNumber: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IMSAdminBaseW, hMDHandle: u32, pszMDPath: ?[*:0]const u16, pdwMDDataSetNumber: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IMSAdminBaseW, hMDHandle: u32, pszMDPath: ?[*:0]const u16, pdwMDDataSetNumber: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetLastChangeTime: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IMSAdminBaseW, hMDHandle: u32, pszMDPath: ?[*:0]const u16, pftMDLastChangeTime: ?*FILETIME, bLocalTime: BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IMSAdminBaseW, hMDHandle: u32, pszMDPath: ?[*:0]const u16, pftMDLastChangeTime: ?*FILETIME, bLocalTime: BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetLastChangeTime: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IMSAdminBaseW, hMDHandle: u32, pszMDPath: ?[*:0]const u16, pftMDLastChangeTime: ?*FILETIME, bLocalTime: BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IMSAdminBaseW, hMDHandle: u32, pszMDPath: ?[*:0]const u16, pftMDLastChangeTime: ?*FILETIME, bLocalTime: BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, KeyExchangePhase1: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IMSAdminBaseW, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IMSAdminBaseW, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, KeyExchangePhase2: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IMSAdminBaseW, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IMSAdminBaseW, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Backup: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IMSAdminBaseW, pszMDBackupLocation: ?[*:0]const u16, dwMDVersion: u32, dwMDFlags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IMSAdminBaseW, pszMDBackupLocation: ?[*:0]const u16, dwMDVersion: u32, dwMDFlags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Restore: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IMSAdminBaseW, pszMDBackupLocation: ?[*:0]const u16, dwMDVersion: u32, dwMDFlags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IMSAdminBaseW, pszMDBackupLocation: ?[*:0]const u16, dwMDVersion: u32, dwMDFlags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, EnumBackups: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IMSAdminBaseW, pszMDBackupLocation: *[256]u16, pdwMDVersion: ?*u32, pftMDBackupTime: ?*FILETIME, dwMDEnumIndex: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IMSAdminBaseW, pszMDBackupLocation: *[256]u16, pdwMDVersion: ?*u32, pftMDBackupTime: ?*FILETIME, dwMDEnumIndex: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, DeleteBackup: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IMSAdminBaseW, pszMDBackupLocation: ?[*:0]const u16, dwMDVersion: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IMSAdminBaseW, pszMDBackupLocation: ?[*:0]const u16, dwMDVersion: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, UnmarshalInterface: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IMSAdminBaseW, piadmbwInterface: ?*?*IMSAdminBaseW, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IMSAdminBaseW, piadmbwInterface: ?*?*IMSAdminBaseW, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetServerGuid: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IMSAdminBaseW, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IMSAdminBaseW, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSAdminBaseW_AddKey(self: *const T, hMDHandle: u32, pszMDPath: ?[*:0]const u16) HRESULT { return @as(*const IMSAdminBaseW.VTable, @ptrCast(self.vtable)).AddKey(@as(*const IMSAdminBaseW, @ptrCast(self)), hMDHandle, pszMDPath); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSAdminBaseW_DeleteKey(self: *const T, hMDHandle: u32, pszMDPath: ?[*:0]const u16) HRESULT { return @as(*const IMSAdminBaseW.VTable, @ptrCast(self.vtable)).DeleteKey(@as(*const IMSAdminBaseW, @ptrCast(self)), hMDHandle, pszMDPath); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSAdminBaseW_DeleteChildKeys(self: *const T, hMDHandle: u32, pszMDPath: ?[*:0]const u16) HRESULT { return @as(*const IMSAdminBaseW.VTable, @ptrCast(self.vtable)).DeleteChildKeys(@as(*const IMSAdminBaseW, @ptrCast(self)), hMDHandle, pszMDPath); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSAdminBaseW_EnumKeys(self: *const T, hMDHandle: u32, pszMDPath: ?[*:0]const u16, pszMDName: *[256]u16, dwMDEnumObjectIndex: u32) HRESULT { return @as(*const IMSAdminBaseW.VTable, @ptrCast(self.vtable)).EnumKeys(@as(*const IMSAdminBaseW, @ptrCast(self)), hMDHandle, pszMDPath, pszMDName, dwMDEnumObjectIndex); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSAdminBaseW_CopyKey(self: *const T, hMDSourceHandle: u32, pszMDSourcePath: ?[*:0]const u16, hMDDestHandle: u32, pszMDDestPath: ?[*:0]const u16, bMDOverwriteFlag: BOOL, bMDCopyFlag: BOOL) HRESULT { return @as(*const IMSAdminBaseW.VTable, @ptrCast(self.vtable)).CopyKey(@as(*const IMSAdminBaseW, @ptrCast(self)), hMDSourceHandle, pszMDSourcePath, hMDDestHandle, pszMDDestPath, bMDOverwriteFlag, bMDCopyFlag); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSAdminBaseW_RenameKey(self: *const T, hMDHandle: u32, pszMDPath: ?[*:0]const u16, pszMDNewName: ?[*:0]const u16) HRESULT { return @as(*const IMSAdminBaseW.VTable, @ptrCast(self.vtable)).RenameKey(@as(*const IMSAdminBaseW, @ptrCast(self)), hMDHandle, pszMDPath, pszMDNewName); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSAdminBaseW_SetData(self: *const T, hMDHandle: u32, pszMDPath: ?[*:0]const u16, pmdrMDData: ?*METADATA_RECORD) HRESULT { return @as(*const IMSAdminBaseW.VTable, @ptrCast(self.vtable)).SetData(@as(*const IMSAdminBaseW, @ptrCast(self)), hMDHandle, pszMDPath, pmdrMDData); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSAdminBaseW_GetData(self: *const T, hMDHandle: u32, pszMDPath: ?[*:0]const u16, pmdrMDData: ?*METADATA_RECORD, pdwMDRequiredDataLen: ?*u32) HRESULT { return @as(*const IMSAdminBaseW.VTable, @ptrCast(self.vtable)).GetData(@as(*const IMSAdminBaseW, @ptrCast(self)), hMDHandle, pszMDPath, pmdrMDData, pdwMDRequiredDataLen); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSAdminBaseW_DeleteData(self: *const T, hMDHandle: u32, pszMDPath: ?[*:0]const u16, dwMDIdentifier: u32, dwMDDataType: u32) HRESULT { return @as(*const IMSAdminBaseW.VTable, @ptrCast(self.vtable)).DeleteData(@as(*const IMSAdminBaseW, @ptrCast(self)), hMDHandle, pszMDPath, dwMDIdentifier, dwMDDataType); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSAdminBaseW_EnumData(self: *const T, hMDHandle: u32, pszMDPath: ?[*:0]const u16, pmdrMDData: ?*METADATA_RECORD, dwMDEnumDataIndex: u32, pdwMDRequiredDataLen: ?*u32) HRESULT { return @as(*const IMSAdminBaseW.VTable, @ptrCast(self.vtable)).EnumData(@as(*const IMSAdminBaseW, @ptrCast(self)), hMDHandle, pszMDPath, pmdrMDData, dwMDEnumDataIndex, pdwMDRequiredDataLen); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSAdminBaseW_GetAllData(self: *const T, hMDHandle: u32, pszMDPath: ?[*:0]const u16, dwMDAttributes: u32, dwMDUserType: u32, dwMDDataType: u32, pdwMDNumDataEntries: ?*u32, pdwMDDataSetNumber: ?*u32, dwMDBufferSize: u32, pbMDBuffer: ?*u8, pdwMDRequiredBufferSize: ?*u32) HRESULT { return @as(*const IMSAdminBaseW.VTable, @ptrCast(self.vtable)).GetAllData(@as(*const IMSAdminBaseW, @ptrCast(self)), hMDHandle, pszMDPath, dwMDAttributes, dwMDUserType, dwMDDataType, pdwMDNumDataEntries, pdwMDDataSetNumber, dwMDBufferSize, pbMDBuffer, pdwMDRequiredBufferSize); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSAdminBaseW_DeleteAllData(self: *const T, hMDHandle: u32, pszMDPath: ?[*:0]const u16, dwMDUserType: u32, dwMDDataType: u32) HRESULT { return @as(*const IMSAdminBaseW.VTable, @ptrCast(self.vtable)).DeleteAllData(@as(*const IMSAdminBaseW, @ptrCast(self)), hMDHandle, pszMDPath, dwMDUserType, dwMDDataType); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSAdminBaseW_CopyData(self: *const T, hMDSourceHandle: u32, pszMDSourcePath: ?[*:0]const u16, hMDDestHandle: u32, pszMDDestPath: ?[*:0]const u16, dwMDAttributes: u32, dwMDUserType: u32, dwMDDataType: u32, bMDCopyFlag: BOOL) HRESULT { return @as(*const IMSAdminBaseW.VTable, @ptrCast(self.vtable)).CopyData(@as(*const IMSAdminBaseW, @ptrCast(self)), hMDSourceHandle, pszMDSourcePath, hMDDestHandle, pszMDDestPath, dwMDAttributes, dwMDUserType, dwMDDataType, bMDCopyFlag); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSAdminBaseW_GetDataPaths(self: *const T, hMDHandle: u32, pszMDPath: ?[*:0]const u16, dwMDIdentifier: u32, dwMDDataType: u32, dwMDBufferSize: u32, pszBuffer: [*:0]u16, pdwMDRequiredBufferSize: ?*u32) HRESULT { return @as(*const IMSAdminBaseW.VTable, @ptrCast(self.vtable)).GetDataPaths(@as(*const IMSAdminBaseW, @ptrCast(self)), hMDHandle, pszMDPath, dwMDIdentifier, dwMDDataType, dwMDBufferSize, pszBuffer, pdwMDRequiredBufferSize); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSAdminBaseW_OpenKey(self: *const T, hMDHandle: u32, pszMDPath: ?[*:0]const u16, dwMDAccessRequested: u32, dwMDTimeOut: u32, phMDNewHandle: ?*u32) HRESULT { return @as(*const IMSAdminBaseW.VTable, @ptrCast(self.vtable)).OpenKey(@as(*const IMSAdminBaseW, @ptrCast(self)), hMDHandle, pszMDPath, dwMDAccessRequested, dwMDTimeOut, phMDNewHandle); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSAdminBaseW_CloseKey(self: *const T, hMDHandle: u32) HRESULT { return @as(*const IMSAdminBaseW.VTable, @ptrCast(self.vtable)).CloseKey(@as(*const IMSAdminBaseW, @ptrCast(self)), hMDHandle); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSAdminBaseW_ChangePermissions(self: *const T, hMDHandle: u32, dwMDTimeOut: u32, dwMDAccessRequested: u32) HRESULT { return @as(*const IMSAdminBaseW.VTable, @ptrCast(self.vtable)).ChangePermissions(@as(*const IMSAdminBaseW, @ptrCast(self)), hMDHandle, dwMDTimeOut, dwMDAccessRequested); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSAdminBaseW_SaveData(self: *const T) HRESULT { return @as(*const IMSAdminBaseW.VTable, @ptrCast(self.vtable)).SaveData(@as(*const IMSAdminBaseW, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSAdminBaseW_GetHandleInfo(self: *const T, hMDHandle: u32, pmdhiInfo: ?*METADATA_HANDLE_INFO) HRESULT { return @as(*const IMSAdminBaseW.VTable, @ptrCast(self.vtable)).GetHandleInfo(@as(*const IMSAdminBaseW, @ptrCast(self)), hMDHandle, pmdhiInfo); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSAdminBaseW_GetSystemChangeNumber(self: *const T, pdwSystemChangeNumber: ?*u32) HRESULT { return @as(*const IMSAdminBaseW.VTable, @ptrCast(self.vtable)).GetSystemChangeNumber(@as(*const IMSAdminBaseW, @ptrCast(self)), pdwSystemChangeNumber); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSAdminBaseW_GetDataSetNumber(self: *const T, hMDHandle: u32, pszMDPath: ?[*:0]const u16, pdwMDDataSetNumber: ?*u32) HRESULT { return @as(*const IMSAdminBaseW.VTable, @ptrCast(self.vtable)).GetDataSetNumber(@as(*const IMSAdminBaseW, @ptrCast(self)), hMDHandle, pszMDPath, pdwMDDataSetNumber); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSAdminBaseW_SetLastChangeTime(self: *const T, hMDHandle: u32, pszMDPath: ?[*:0]const u16, pftMDLastChangeTime: ?*FILETIME, bLocalTime: BOOL) HRESULT { return @as(*const IMSAdminBaseW.VTable, @ptrCast(self.vtable)).SetLastChangeTime(@as(*const IMSAdminBaseW, @ptrCast(self)), hMDHandle, pszMDPath, pftMDLastChangeTime, bLocalTime); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSAdminBaseW_GetLastChangeTime(self: *const T, hMDHandle: u32, pszMDPath: ?[*:0]const u16, pftMDLastChangeTime: ?*FILETIME, bLocalTime: BOOL) HRESULT { return @as(*const IMSAdminBaseW.VTable, @ptrCast(self.vtable)).GetLastChangeTime(@as(*const IMSAdminBaseW, @ptrCast(self)), hMDHandle, pszMDPath, pftMDLastChangeTime, bLocalTime); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSAdminBaseW_KeyExchangePhase1(self: *const T) HRESULT { return @as(*const IMSAdminBaseW.VTable, @ptrCast(self.vtable)).KeyExchangePhase1(@as(*const IMSAdminBaseW, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSAdminBaseW_KeyExchangePhase2(self: *const T) HRESULT { return @as(*const IMSAdminBaseW.VTable, @ptrCast(self.vtable)).KeyExchangePhase2(@as(*const IMSAdminBaseW, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSAdminBaseW_Backup(self: *const T, pszMDBackupLocation: ?[*:0]const u16, dwMDVersion: u32, dwMDFlags: u32) HRESULT { return @as(*const IMSAdminBaseW.VTable, @ptrCast(self.vtable)).Backup(@as(*const IMSAdminBaseW, @ptrCast(self)), pszMDBackupLocation, dwMDVersion, dwMDFlags); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSAdminBaseW_Restore(self: *const T, pszMDBackupLocation: ?[*:0]const u16, dwMDVersion: u32, dwMDFlags: u32) HRESULT { return @as(*const IMSAdminBaseW.VTable, @ptrCast(self.vtable)).Restore(@as(*const IMSAdminBaseW, @ptrCast(self)), pszMDBackupLocation, dwMDVersion, dwMDFlags); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSAdminBaseW_EnumBackups(self: *const T, pszMDBackupLocation: *[256]u16, pdwMDVersion: ?*u32, pftMDBackupTime: ?*FILETIME, dwMDEnumIndex: u32) HRESULT { return @as(*const IMSAdminBaseW.VTable, @ptrCast(self.vtable)).EnumBackups(@as(*const IMSAdminBaseW, @ptrCast(self)), pszMDBackupLocation, pdwMDVersion, pftMDBackupTime, dwMDEnumIndex); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSAdminBaseW_DeleteBackup(self: *const T, pszMDBackupLocation: ?[*:0]const u16, dwMDVersion: u32) HRESULT { return @as(*const IMSAdminBaseW.VTable, @ptrCast(self.vtable)).DeleteBackup(@as(*const IMSAdminBaseW, @ptrCast(self)), pszMDBackupLocation, dwMDVersion); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSAdminBaseW_UnmarshalInterface(self: *const T, piadmbwInterface: ?*?*IMSAdminBaseW) HRESULT { return @as(*const IMSAdminBaseW.VTable, @ptrCast(self.vtable)).UnmarshalInterface(@as(*const IMSAdminBaseW, @ptrCast(self)), piadmbwInterface); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSAdminBaseW_GetServerGuid(self: *const T) HRESULT { return @as(*const IMSAdminBaseW.VTable, @ptrCast(self.vtable)).GetServerGuid(@as(*const IMSAdminBaseW, @ptrCast(self))); } }; } pub usingnamespace MethodMixin(@This()); }; pub const _IIS_CRYPTO_BLOB = extern struct { placeholder: usize, // TODO: why is this type empty? }; const IID_IMSAdminBase2W_Value = Guid.initString("8298d101-f992-43b7-8eca-5052d885b995"); pub const IID_IMSAdminBase2W = &IID_IMSAdminBase2W_Value; pub const IMSAdminBase2W = extern struct { pub const VTable = extern struct { base: IMSAdminBaseW.VTable, BackupWithPasswd: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IMSAdminBase2W, pszMDBackupLocation: ?[*:0]const u16, dwMDVersion: u32, dwMDFlags: u32, pszPasswd: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IMSAdminBase2W, pszMDBackupLocation: ?[*:0]const u16, dwMDVersion: u32, dwMDFlags: u32, pszPasswd: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, RestoreWithPasswd: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IMSAdminBase2W, pszMDBackupLocation: ?[*:0]const u16, dwMDVersion: u32, dwMDFlags: u32, pszPasswd: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IMSAdminBase2W, pszMDBackupLocation: ?[*:0]const u16, dwMDVersion: u32, dwMDFlags: u32, pszPasswd: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Export: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IMSAdminBase2W, pszPasswd: ?[*:0]const u16, pszFileName: ?[*:0]const u16, pszSourcePath: ?[*:0]const u16, dwMDFlags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IMSAdminBase2W, pszPasswd: ?[*:0]const u16, pszFileName: ?[*:0]const u16, pszSourcePath: ?[*:0]const u16, dwMDFlags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Import: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IMSAdminBase2W, pszPasswd: ?[*:0]const u16, pszFileName: ?[*:0]const u16, pszSourcePath: ?[*:0]const u16, pszDestPath: ?[*:0]const u16, dwMDFlags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IMSAdminBase2W, pszPasswd: ?[*:0]const u16, pszFileName: ?[*:0]const u16, pszSourcePath: ?[*:0]const u16, pszDestPath: ?[*:0]const u16, dwMDFlags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, RestoreHistory: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IMSAdminBase2W, pszMDHistoryLocation: ?[*:0]const u16, dwMDMajorVersion: u32, dwMDMinorVersion: u32, dwMDFlags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IMSAdminBase2W, pszMDHistoryLocation: ?[*:0]const u16, dwMDMajorVersion: u32, dwMDMinorVersion: u32, dwMDFlags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, EnumHistory: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IMSAdminBase2W, pszMDHistoryLocation: *[256]u16, pdwMDMajorVersion: ?*u32, pdwMDMinorVersion: ?*u32, pftMDHistoryTime: ?*FILETIME, dwMDEnumIndex: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IMSAdminBase2W, pszMDHistoryLocation: *[256]u16, pdwMDMajorVersion: ?*u32, pdwMDMinorVersion: ?*u32, pftMDHistoryTime: ?*FILETIME, dwMDEnumIndex: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IMSAdminBaseW.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSAdminBase2W_BackupWithPasswd(self: *const T, pszMDBackupLocation: ?[*:0]const u16, dwMDVersion: u32, dwMDFlags: u32, pszPasswd: ?[*:0]const u16) HRESULT { return @as(*const IMSAdminBase2W.VTable, @ptrCast(self.vtable)).BackupWithPasswd(@as(*const IMSAdminBase2W, @ptrCast(self)), pszMDBackupLocation, dwMDVersion, dwMDFlags, pszPasswd); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSAdminBase2W_RestoreWithPasswd(self: *const T, pszMDBackupLocation: ?[*:0]const u16, dwMDVersion: u32, dwMDFlags: u32, pszPasswd: ?[*:0]const u16) HRESULT { return @as(*const IMSAdminBase2W.VTable, @ptrCast(self.vtable)).RestoreWithPasswd(@as(*const IMSAdminBase2W, @ptrCast(self)), pszMDBackupLocation, dwMDVersion, dwMDFlags, pszPasswd); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSAdminBase2W_Export(self: *const T, pszPasswd: ?[*:0]const u16, pszFileName: ?[*:0]const u16, pszSourcePath: ?[*:0]const u16, dwMDFlags: u32) HRESULT { return @as(*const IMSAdminBase2W.VTable, @ptrCast(self.vtable)).Export(@as(*const IMSAdminBase2W, @ptrCast(self)), pszPasswd, pszFileName, pszSourcePath, dwMDFlags); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSAdminBase2W_Import(self: *const T, pszPasswd: ?[*:0]const u16, pszFileName: ?[*:0]const u16, pszSourcePath: ?[*:0]const u16, pszDestPath: ?[*:0]const u16, dwMDFlags: u32) HRESULT { return @as(*const IMSAdminBase2W.VTable, @ptrCast(self.vtable)).Import(@as(*const IMSAdminBase2W, @ptrCast(self)), pszPasswd, pszFileName, pszSourcePath, pszDestPath, dwMDFlags); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSAdminBase2W_RestoreHistory(self: *const T, pszMDHistoryLocation: ?[*:0]const u16, dwMDMajorVersion: u32, dwMDMinorVersion: u32, dwMDFlags: u32) HRESULT { return @as(*const IMSAdminBase2W.VTable, @ptrCast(self.vtable)).RestoreHistory(@as(*const IMSAdminBase2W, @ptrCast(self)), pszMDHistoryLocation, dwMDMajorVersion, dwMDMinorVersion, dwMDFlags); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSAdminBase2W_EnumHistory(self: *const T, pszMDHistoryLocation: *[256]u16, pdwMDMajorVersion: ?*u32, pdwMDMinorVersion: ?*u32, pftMDHistoryTime: ?*FILETIME, dwMDEnumIndex: u32) HRESULT { return @as(*const IMSAdminBase2W.VTable, @ptrCast(self.vtable)).EnumHistory(@as(*const IMSAdminBase2W, @ptrCast(self)), pszMDHistoryLocation, pdwMDMajorVersion, pdwMDMinorVersion, pftMDHistoryTime, dwMDEnumIndex); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IMSAdminBase3W_Value = Guid.initString("f612954d-3b0b-4c56-9563-227b7be624b4"); pub const IID_IMSAdminBase3W = &IID_IMSAdminBase3W_Value; pub const IMSAdminBase3W = extern struct { pub const VTable = extern struct { base: IMSAdminBase2W.VTable, GetChildPaths: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IMSAdminBase3W, hMDHandle: u32, pszMDPath: ?[*:0]const u16, cchMDBufferSize: u32, pszBuffer: ?[*:0]u16, pcchMDRequiredBufferSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IMSAdminBase3W, hMDHandle: u32, pszMDPath: ?[*:0]const u16, cchMDBufferSize: u32, pszBuffer: ?[*:0]u16, pcchMDRequiredBufferSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IMSAdminBase2W.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSAdminBase3W_GetChildPaths(self: *const T, hMDHandle: u32, pszMDPath: ?[*:0]const u16, cchMDBufferSize: u32, pszBuffer: ?[*:0]u16, pcchMDRequiredBufferSize: ?*u32) HRESULT { return @as(*const IMSAdminBase3W.VTable, @ptrCast(self.vtable)).GetChildPaths(@as(*const IMSAdminBase3W, @ptrCast(self)), hMDHandle, pszMDPath, cchMDBufferSize, pszBuffer, pcchMDRequiredBufferSize); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IMSImpExpHelpW_Value = Guid.initString("29ff67ff-8050-480f-9f30-cc41635f2f9d"); pub const IID_IMSImpExpHelpW = &IID_IMSImpExpHelpW_Value; pub const IMSImpExpHelpW = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, EnumeratePathsInFile: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IMSImpExpHelpW, pszFileName: ?[*:0]const u16, pszKeyType: ?[*:0]const u16, dwMDBufferSize: u32, pszBuffer: ?[*:0]u16, pdwMDRequiredBufferSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IMSImpExpHelpW, pszFileName: ?[*:0]const u16, pszKeyType: ?[*:0]const u16, dwMDBufferSize: u32, pszBuffer: ?[*:0]u16, pdwMDRequiredBufferSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSImpExpHelpW_EnumeratePathsInFile(self: *const T, pszFileName: ?[*:0]const u16, pszKeyType: ?[*:0]const u16, dwMDBufferSize: u32, pszBuffer: ?[*:0]u16, pdwMDRequiredBufferSize: ?*u32) HRESULT { return @as(*const IMSImpExpHelpW.VTable, @ptrCast(self.vtable)).EnumeratePathsInFile(@as(*const IMSImpExpHelpW, @ptrCast(self)), pszFileName, pszKeyType, dwMDBufferSize, pszBuffer, pdwMDRequiredBufferSize); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IMSAdminBaseSinkW_Value = Guid.initString("a9e69612-b80d-11d0-b9b9-00a0c922e750"); pub const IID_IMSAdminBaseSinkW = &IID_IMSAdminBaseSinkW_Value; pub const IMSAdminBaseSinkW = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, SinkNotify: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IMSAdminBaseSinkW, dwMDNumElements: u32, pcoChangeList: [*]MD_CHANGE_OBJECT_W, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IMSAdminBaseSinkW, dwMDNumElements: u32, pcoChangeList: [*]MD_CHANGE_OBJECT_W, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, ShutdownNotify: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IMSAdminBaseSinkW, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IMSAdminBaseSinkW, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSAdminBaseSinkW_SinkNotify(self: *const T, dwMDNumElements: u32, pcoChangeList: [*]MD_CHANGE_OBJECT_W) HRESULT { return @as(*const IMSAdminBaseSinkW.VTable, @ptrCast(self.vtable)).SinkNotify(@as(*const IMSAdminBaseSinkW, @ptrCast(self)), dwMDNumElements, pcoChangeList); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMSAdminBaseSinkW_ShutdownNotify(self: *const T) HRESULT { return @as(*const IMSAdminBaseSinkW.VTable, @ptrCast(self.vtable)).ShutdownNotify(@as(*const IMSAdminBaseSinkW, @ptrCast(self))); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_AsyncIMSAdminBaseSinkW_Value = Guid.initString("a9e69613-b80d-11d0-b9b9-00a0c922e750"); pub const IID_AsyncIMSAdminBaseSinkW = &IID_AsyncIMSAdminBaseSinkW_Value; pub const AsyncIMSAdminBaseSinkW = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, Begin_SinkNotify: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const AsyncIMSAdminBaseSinkW, dwMDNumElements: u32, pcoChangeList: [*]MD_CHANGE_OBJECT_W, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const AsyncIMSAdminBaseSinkW, dwMDNumElements: u32, pcoChangeList: [*]MD_CHANGE_OBJECT_W, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Finish_SinkNotify: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const AsyncIMSAdminBaseSinkW, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const AsyncIMSAdminBaseSinkW, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Begin_ShutdownNotify: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const AsyncIMSAdminBaseSinkW, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const AsyncIMSAdminBaseSinkW, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Finish_ShutdownNotify: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const AsyncIMSAdminBaseSinkW, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const AsyncIMSAdminBaseSinkW, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn AsyncIMSAdminBaseSinkW_Begin_SinkNotify(self: *const T, dwMDNumElements: u32, pcoChangeList: [*]MD_CHANGE_OBJECT_W) HRESULT { return @as(*const AsyncIMSAdminBaseSinkW.VTable, @ptrCast(self.vtable)).Begin_SinkNotify(@as(*const AsyncIMSAdminBaseSinkW, @ptrCast(self)), dwMDNumElements, pcoChangeList); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn AsyncIMSAdminBaseSinkW_Finish_SinkNotify(self: *const T) HRESULT { return @as(*const AsyncIMSAdminBaseSinkW.VTable, @ptrCast(self.vtable)).Finish_SinkNotify(@as(*const AsyncIMSAdminBaseSinkW, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn AsyncIMSAdminBaseSinkW_Begin_ShutdownNotify(self: *const T) HRESULT { return @as(*const AsyncIMSAdminBaseSinkW.VTable, @ptrCast(self.vtable)).Begin_ShutdownNotify(@as(*const AsyncIMSAdminBaseSinkW, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn AsyncIMSAdminBaseSinkW_Finish_ShutdownNotify(self: *const T) HRESULT { return @as(*const AsyncIMSAdminBaseSinkW.VTable, @ptrCast(self.vtable)).Finish_ShutdownNotify(@as(*const AsyncIMSAdminBaseSinkW, @ptrCast(self))); } }; } pub usingnamespace MethodMixin(@This()); }; pub const HSE_VERSION_INFO = extern struct { dwExtensionVersion: u32, lpszExtensionDesc: [256]CHAR, }; pub const EXTENSION_CONTROL_BLOCK = extern struct { cbSize: u32, dwVersion: u32, ConnID: ?*anyopaque, dwHttpStatusCode: u32, lpszLogData: [80]CHAR, lpszMethod: ?PSTR, lpszQueryString: ?PSTR, lpszPathInfo: ?PSTR, lpszPathTranslated: ?PSTR, cbTotalBytes: u32, cbAvailable: u32, lpbData: ?*u8, lpszContentType: ?PSTR, GetServerVariable: isize, WriteClient: isize, ReadClient: isize, ServerSupportFunction: isize, }; pub const HSE_URL_MAPEX_INFO = extern struct { lpszPath: [260]CHAR, dwFlags: u32, cchMatchingPath: u32, cchMatchingURL: u32, dwReserved1: u32, dwReserved2: u32, }; pub const HSE_UNICODE_URL_MAPEX_INFO = extern struct { lpszPath: [260]u16, dwFlags: u32, cchMatchingPath: u32, cchMatchingURL: u32, }; pub const PFN_HSE_IO_COMPLETION = switch (@import("builtin").zig_backend) { .stage1 => fn ( pECB: ?*EXTENSION_CONTROL_BLOCK, pContext: ?*anyopaque, cbIO: u32, dwError: u32, ) callconv(@import("std").os.windows.WINAPI) void, else => *const fn ( pECB: ?*EXTENSION_CONTROL_BLOCK, pContext: ?*anyopaque, cbIO: u32, dwError: u32, ) callconv(@import("std").os.windows.WINAPI) void, }; pub const HSE_TF_INFO = extern struct { pfnHseIO: ?PFN_HSE_IO_COMPLETION, pContext: ?*anyopaque, hFile: ?HANDLE, pszStatusCode: ?[*:0]const u8, BytesToWrite: u32, Offset: u32, pHead: ?*anyopaque, HeadLength: u32, pTail: ?*anyopaque, TailLength: u32, dwFlags: u32, }; pub const HSE_SEND_HEADER_EX_INFO = extern struct { pszStatus: ?[*:0]const u8, pszHeader: ?[*:0]const u8, cchStatus: u32, cchHeader: u32, fKeepConn: BOOL, }; pub const HSE_EXEC_URL_USER_INFO = extern struct { hImpersonationToken: ?HANDLE, pszCustomUserName: ?PSTR, pszCustomAuthType: ?PSTR, }; pub const HSE_EXEC_URL_ENTITY_INFO = extern struct { cbAvailable: u32, lpbData: ?*anyopaque, }; pub const HSE_EXEC_URL_STATUS = extern struct { uHttpStatusCode: u16, uHttpSubStatus: u16, dwWin32Error: u32, }; pub const HSE_EXEC_URL_INFO = extern struct { pszUrl: ?PSTR, pszMethod: ?PSTR, pszChildHeaders: ?PSTR, pUserInfo: ?*HSE_EXEC_URL_USER_INFO, pEntity: ?*HSE_EXEC_URL_ENTITY_INFO, dwExecUrlFlags: u32, }; pub const HSE_EXEC_UNICODE_URL_USER_INFO = extern struct { hImpersonationToken: ?HANDLE, pszCustomUserName: ?PWSTR, pszCustomAuthType: ?PSTR, }; pub const HSE_EXEC_UNICODE_URL_INFO = extern struct { pszUrl: ?PWSTR, pszMethod: ?PSTR, pszChildHeaders: ?PSTR, pUserInfo: ?*HSE_EXEC_UNICODE_URL_USER_INFO, pEntity: ?*HSE_EXEC_URL_ENTITY_INFO, dwExecUrlFlags: u32, }; pub const HSE_CUSTOM_ERROR_INFO = extern struct { pszStatus: ?PSTR, uHttpSubError: u16, fAsync: BOOL, }; pub const HSE_VECTOR_ELEMENT = extern struct { ElementType: u32, pvContext: ?*anyopaque, cbOffset: u64, cbSize: u64, }; pub const HSE_RESPONSE_VECTOR = extern struct { dwFlags: u32, pszStatus: ?PSTR, pszHeaders: ?PSTR, nElementCount: u32, lpElementArray: ?*HSE_VECTOR_ELEMENT, }; pub const PFN_HSE_CACHE_INVALIDATION_CALLBACK = switch (@import("builtin").zig_backend) { .stage1 => fn ( pszUrl: ?PWSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( pszUrl: ?PWSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }; pub const CERT_CONTEXT_EX = extern struct { CertContext: CERT_CONTEXT, cbAllocated: u32, dwCertificateFlags: u32, }; pub const HSE_TRACE_INFO = extern struct { fTraceRequest: BOOL, TraceContextId: [16]u8, dwReserved1: u32, dwReserved2: u32, }; pub const PFN_HSE_GET_PROTOCOL_MANAGER_CUSTOM_INTERFACE_CALLBACK = switch (@import("builtin").zig_backend) { .stage1 => fn ( pszProtocolManagerDll: ?[*:0]const u16, pszProtocolManagerDllInitFunction: ?[*:0]const u16, dwCustomInterfaceId: u32, ppCustomInterface: ?*?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( pszProtocolManagerDll: ?[*:0]const u16, pszProtocolManagerDllInitFunction: ?[*:0]const u16, dwCustomInterfaceId: u32, ppCustomInterface: ?*?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }; pub const PFN_GETEXTENSIONVERSION = switch (@import("builtin").zig_backend) { .stage1 => fn ( pVer: ?*HSE_VERSION_INFO, ) callconv(@import("std").os.windows.WINAPI) BOOL, else => *const fn ( pVer: ?*HSE_VERSION_INFO, ) callconv(@import("std").os.windows.WINAPI) BOOL, }; pub const PFN_HTTPEXTENSIONPROC = switch (@import("builtin").zig_backend) { .stage1 => fn ( pECB: ?*EXTENSION_CONTROL_BLOCK, ) callconv(@import("std").os.windows.WINAPI) u32, else => *const fn ( pECB: ?*EXTENSION_CONTROL_BLOCK, ) callconv(@import("std").os.windows.WINAPI) u32, }; pub const PFN_TERMINATEEXTENSION = switch (@import("builtin").zig_backend) { .stage1 => fn ( dwFlags: u32, ) callconv(@import("std").os.windows.WINAPI) BOOL, else => *const fn ( dwFlags: u32, ) callconv(@import("std").os.windows.WINAPI) BOOL, }; pub const SF_REQ_TYPE = enum(i32) { SEND_RESPONSE_HEADER = 0, ADD_HEADERS_ON_DENIAL = 1, SET_NEXT_READ_SIZE = 2, SET_PROXY_INFO = 3, GET_CONNID = 4, SET_CERTIFICATE_INFO = 5, GET_PROPERTY = 6, NORMALIZE_URL = 7, DISABLE_NOTIFICATIONS = 8, }; pub const SF_REQ_SEND_RESPONSE_HEADER = SF_REQ_TYPE.SEND_RESPONSE_HEADER; pub const SF_REQ_ADD_HEADERS_ON_DENIAL = SF_REQ_TYPE.ADD_HEADERS_ON_DENIAL; pub const SF_REQ_SET_NEXT_READ_SIZE = SF_REQ_TYPE.SET_NEXT_READ_SIZE; pub const SF_REQ_SET_PROXY_INFO = SF_REQ_TYPE.SET_PROXY_INFO; pub const SF_REQ_GET_CONNID = SF_REQ_TYPE.GET_CONNID; pub const SF_REQ_SET_CERTIFICATE_INFO = SF_REQ_TYPE.SET_CERTIFICATE_INFO; pub const SF_REQ_GET_PROPERTY = SF_REQ_TYPE.GET_PROPERTY; pub const SF_REQ_NORMALIZE_URL = SF_REQ_TYPE.NORMALIZE_URL; pub const SF_REQ_DISABLE_NOTIFICATIONS = SF_REQ_TYPE.DISABLE_NOTIFICATIONS; pub const SF_PROPERTY_IIS = enum(i32) { SSL_CTXT = 0, INSTANCE_NUM_ID = 1, }; pub const SF_PROPERTY_SSL_CTXT = SF_PROPERTY_IIS.SSL_CTXT; pub const SF_PROPERTY_INSTANCE_NUM_ID = SF_PROPERTY_IIS.INSTANCE_NUM_ID; pub const SF_STATUS_TYPE = enum(i32) { FINISHED = 134217728, FINISHED_KEEP_CONN = 134217729, NEXT_NOTIFICATION = 134217730, HANDLED_NOTIFICATION = 134217731, ERROR = 134217732, READ_NEXT = 134217733, }; pub const SF_STATUS_REQ_FINISHED = SF_STATUS_TYPE.FINISHED; pub const SF_STATUS_REQ_FINISHED_KEEP_CONN = SF_STATUS_TYPE.FINISHED_KEEP_CONN; pub const SF_STATUS_REQ_NEXT_NOTIFICATION = SF_STATUS_TYPE.NEXT_NOTIFICATION; pub const SF_STATUS_REQ_HANDLED_NOTIFICATION = SF_STATUS_TYPE.HANDLED_NOTIFICATION; pub const SF_STATUS_REQ_ERROR = SF_STATUS_TYPE.ERROR; pub const SF_STATUS_REQ_READ_NEXT = SF_STATUS_TYPE.READ_NEXT; pub const HTTP_FILTER_CONTEXT = extern struct { cbSize: u32, Revision: u32, ServerContext: ?*anyopaque, ulReserved: u32, fIsSecurePort: BOOL, pFilterContext: ?*anyopaque, GetServerVariable: isize, AddResponseHeaders: isize, WriteClient: isize, AllocMem: isize, ServerSupportFunction: isize, }; pub const HTTP_FILTER_RAW_DATA = extern struct { pvInData: ?*anyopaque, cbInData: u32, cbInBuffer: u32, dwReserved: u32, }; pub const HTTP_FILTER_PREPROC_HEADERS = extern struct { GetHeader: isize, SetHeader: isize, AddHeader: isize, HttpStatus: u32, dwReserved: u32, }; pub const HTTP_FILTER_AUTHENT = extern struct { pszUser: ?PSTR, cbUserBuff: u32, pszPassword: ?PSTR, cbPasswordBuff: u32, }; pub const HTTP_FILTER_URL_MAP = extern struct { pszURL: ?[*:0]const u8, pszPhysicalPath: ?PSTR, cbPathBuff: u32, }; pub const HTTP_FILTER_URL_MAP_EX = extern struct { pszURL: ?[*:0]const u8, pszPhysicalPath: ?PSTR, cbPathBuff: u32, dwFlags: u32, cchMatchingPath: u32, cchMatchingURL: u32, pszScriptMapEntry: ?[*:0]const u8, }; pub const HTTP_FILTER_ACCESS_DENIED = extern struct { pszURL: ?[*:0]const u8, pszPhysicalPath: ?[*:0]const u8, dwReason: u32, }; pub const HTTP_FILTER_LOG = extern struct { pszClientHostName: ?[*:0]const u8, pszClientUserName: ?[*:0]const u8, pszServerName: ?[*:0]const u8, pszOperation: ?[*:0]const u8, pszTarget: ?[*:0]const u8, pszParameters: ?[*:0]const u8, dwHttpStatus: u32, dwWin32Status: u32, dwBytesSent: u32, dwBytesRecvd: u32, msTimeForProcessing: u32, }; pub const HTTP_FILTER_AUTH_COMPLETE_INFO = extern struct { GetHeader: isize, SetHeader: isize, AddHeader: isize, GetUserToken: isize, HttpStatus: u32, fResetAuth: BOOL, dwReserved: u32, }; pub const HTTP_FILTER_VERSION = extern struct { dwServerFilterVersion: u32, dwFilterVersion: u32, lpszFilterDesc: [257]CHAR, dwFlags: u32, }; pub const HTTP_TRACE_TYPE = enum(i32) { BYTE = 17, USHORT = 18, ULONG = 19, ULONGLONG = 21, CHAR = 16, SHORT = 2, LONG = 3, LONGLONG = 20, LPCWSTR = 31, LPCSTR = 30, LPCGUID = 72, BOOL = 11, }; pub const HTTP_TRACE_TYPE_BYTE = HTTP_TRACE_TYPE.BYTE; pub const HTTP_TRACE_TYPE_USHORT = HTTP_TRACE_TYPE.USHORT; pub const HTTP_TRACE_TYPE_ULONG = HTTP_TRACE_TYPE.ULONG; pub const HTTP_TRACE_TYPE_ULONGLONG = HTTP_TRACE_TYPE.ULONGLONG; pub const HTTP_TRACE_TYPE_CHAR = HTTP_TRACE_TYPE.CHAR; pub const HTTP_TRACE_TYPE_SHORT = HTTP_TRACE_TYPE.SHORT; pub const HTTP_TRACE_TYPE_LONG = HTTP_TRACE_TYPE.LONG; pub const HTTP_TRACE_TYPE_LONGLONG = HTTP_TRACE_TYPE.LONGLONG; pub const HTTP_TRACE_TYPE_LPCWSTR = HTTP_TRACE_TYPE.LPCWSTR; pub const HTTP_TRACE_TYPE_LPCSTR = HTTP_TRACE_TYPE.LPCSTR; pub const HTTP_TRACE_TYPE_LPCGUID = HTTP_TRACE_TYPE.LPCGUID; pub const HTTP_TRACE_TYPE_BOOL = HTTP_TRACE_TYPE.BOOL; pub const HTTP_TRACE_EVENT = extern struct { pProviderGuid: ?*const Guid, dwArea: u32, pAreaGuid: ?*const Guid, dwEvent: u32, pszEventName: ?[*:0]const u16, dwEventVersion: u32, dwVerbosity: u32, pActivityGuid: ?*const Guid, pRelatedActivityGuid: ?*const Guid, dwTimeStamp: u32, dwFlags: u32, cEventItems: u32, pEventItems: ?*HTTP_TRACE_EVENT_ITEM, }; pub const HTTP_TRACE_EVENT_ITEM = extern struct { pszName: ?[*:0]const u16, dwDataType: HTTP_TRACE_TYPE, pbData: ?*u8, cbData: u32, pszDataDescription: ?[*:0]const u16, }; pub const HTTP_TRACE_CONFIGURATION = extern struct { pProviderGuid: ?*const Guid, dwAreas: u32, dwVerbosity: u32, fProviderEnabled: BOOL, }; pub const PFN_WEB_CORE_SET_METADATA_DLL_ENTRY = switch (@import("builtin").zig_backend) { .stage1 => fn ( pszMetadataType: ?[*:0]const u16, pszValue: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( pszMetadataType: ?[*:0]const u16, pszValue: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }; pub const PFN_WEB_CORE_ACTIVATE = switch (@import("builtin").zig_backend) { .stage1 => fn ( pszAppHostConfigFile: ?[*:0]const u16, pszRootWebConfigFile: ?[*:0]const u16, pszInstanceName: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( pszAppHostConfigFile: ?[*:0]const u16, pszRootWebConfigFile: ?[*:0]const u16, pszInstanceName: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }; pub const PFN_WEB_CORE_SHUTDOWN = switch (@import("builtin").zig_backend) { .stage1 => fn ( fImmediate: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( fImmediate: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }; //-------------------------------------------------------------------------------- // Section: Functions (4) //-------------------------------------------------------------------------------- pub extern "rpcproxy" fn GetExtensionVersion( pVer: ?*HSE_VERSION_INFO, ) callconv(@import("std").os.windows.WINAPI) BOOL; pub extern "rpcproxy" fn HttpExtensionProc( pECB: ?*EXTENSION_CONTROL_BLOCK, ) callconv(@import("std").os.windows.WINAPI) u32; pub extern "rpcproxy" fn HttpFilterProc( pfc: ?*HTTP_FILTER_CONTEXT, NotificationType: u32, pvNotification: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) u32; pub extern "rpcproxy" fn GetFilterVersion( pVer: ?*HTTP_FILTER_VERSION, ) callconv(@import("std").os.windows.WINAPI) BOOL; //-------------------------------------------------------------------------------- // Section: Unicode Aliases (0) //-------------------------------------------------------------------------------- const thismodule = @This(); pub usingnamespace switch (@import("../zig.zig").unicode_mode) { .ansi => struct {}, .wide => struct {}, .unspecified => if (@import("builtin").is_test) struct {} else struct {}, }; //-------------------------------------------------------------------------------- // Section: Imports (12) //-------------------------------------------------------------------------------- const Guid = @import("../zig.zig").Guid; const BOOL = @import("../foundation.zig").BOOL; const BSTR = @import("../foundation.zig").BSTR; const CERT_CONTEXT = @import("../security/cryptography.zig").CERT_CONTEXT; const CHAR = @import("../foundation.zig").CHAR; const FILETIME = @import("../foundation.zig").FILETIME; const HANDLE = @import("../foundation.zig").HANDLE; const HRESULT = @import("../foundation.zig").HRESULT; const IUnknown = @import("../system/com.zig").IUnknown; const PSTR = @import("../foundation.zig").PSTR; const PWSTR = @import("../foundation.zig").PWSTR; const SAFEARRAY = @import("../system/com.zig").SAFEARRAY; test { // The following '_ = <FuncPtrType>' lines are a workaround for https://github.com/ziglang/zig/issues/4476 if (@hasDecl(@This(), "PFN_HSE_IO_COMPLETION")) { _ = PFN_HSE_IO_COMPLETION; } if (@hasDecl(@This(), "PFN_HSE_CACHE_INVALIDATION_CALLBACK")) { _ = PFN_HSE_CACHE_INVALIDATION_CALLBACK; } if (@hasDecl(@This(), "PFN_HSE_GET_PROTOCOL_MANAGER_CUSTOM_INTERFACE_CALLBACK")) { _ = PFN_HSE_GET_PROTOCOL_MANAGER_CUSTOM_INTERFACE_CALLBACK; } if (@hasDecl(@This(), "PFN_GETEXTENSIONVERSION")) { _ = PFN_GETEXTENSIONVERSION; } if (@hasDecl(@This(), "PFN_HTTPEXTENSIONPROC")) { _ = PFN_HTTPEXTENSIONPROC; } if (@hasDecl(@This(), "PFN_TERMINATEEXTENSION")) { _ = PFN_TERMINATEEXTENSION; } if (@hasDecl(@This(), "PFN_WEB_CORE_SET_METADATA_DLL_ENTRY")) { _ = PFN_WEB_CORE_SET_METADATA_DLL_ENTRY; } if (@hasDecl(@This(), "PFN_WEB_CORE_ACTIVATE")) { _ = PFN_WEB_CORE_ACTIVATE; } if (@hasDecl(@This(), "PFN_WEB_CORE_SHUTDOWN")) { _ = PFN_WEB_CORE_SHUTDOWN; } @setEvalBranchQuota(comptime @import("std").meta.declarations(@This()).len * 3); // reference all the pub declarations if (!@import("builtin").is_test) return; inline for (comptime @import("std").meta.declarations(@This())) |decl| { if (decl.is_pub) { _ = @field(@This(), decl.name); } } }
0
repos/capy/vendor/zigwin32/win32
repos/capy/vendor/zigwin32/win32/system/server_backup.zig
//! NOTE: this file is autogenerated, DO NOT MODIFY //-------------------------------------------------------------------------------- // Section: Constants (3) //-------------------------------------------------------------------------------- pub const WSB_MAX_OB_STATUS_VALUE_TYPE_PAIR = @as(u32, 5); pub const WSB_MAX_OB_STATUS_ENTRY = @as(u32, 5); pub const WSBAPP_ASYNC_IN_PROGRESS = @import("../zig.zig").typedConst(HRESULT, @as(i32, 7995396)); //-------------------------------------------------------------------------------- // Section: Types (8) //-------------------------------------------------------------------------------- // TODO: this type is limited to platform 'windowsServer2008' const IID_IWsbApplicationBackupSupport_Value = Guid.initString("1eff3510-4a27-46ad-b9e0-08332f0f4f6d"); pub const IID_IWsbApplicationBackupSupport = &IID_IWsbApplicationBackupSupport_Value; pub const IWsbApplicationBackupSupport = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, CheckConsistency: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IWsbApplicationBackupSupport, wszWriterMetadata: ?PWSTR, wszComponentName: ?PWSTR, wszComponentLogicalPath: ?PWSTR, cVolumes: u32, rgwszSourceVolumePath: [*]?PWSTR, rgwszSnapshotVolumePath: [*]?PWSTR, ppAsync: ?*?*IWsbApplicationAsync, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IWsbApplicationBackupSupport, wszWriterMetadata: ?PWSTR, wszComponentName: ?PWSTR, wszComponentLogicalPath: ?PWSTR, cVolumes: u32, rgwszSourceVolumePath: [*]?PWSTR, rgwszSnapshotVolumePath: [*]?PWSTR, ppAsync: ?*?*IWsbApplicationAsync, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWsbApplicationBackupSupport_CheckConsistency(self: *const T, wszWriterMetadata: ?PWSTR, wszComponentName: ?PWSTR, wszComponentLogicalPath: ?PWSTR, cVolumes: u32, rgwszSourceVolumePath: [*]?PWSTR, rgwszSnapshotVolumePath: [*]?PWSTR, ppAsync: ?*?*IWsbApplicationAsync) HRESULT { return @as(*const IWsbApplicationBackupSupport.VTable, @ptrCast(self.vtable)).CheckConsistency(@as(*const IWsbApplicationBackupSupport, @ptrCast(self)), wszWriterMetadata, wszComponentName, wszComponentLogicalPath, cVolumes, rgwszSourceVolumePath, rgwszSnapshotVolumePath, ppAsync); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windowsServer2008' const IID_IWsbApplicationRestoreSupport_Value = Guid.initString("8d3bdb38-4ee8-4718-85f9-c7dbc4ab77aa"); pub const IID_IWsbApplicationRestoreSupport = &IID_IWsbApplicationRestoreSupport_Value; pub const IWsbApplicationRestoreSupport = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, PreRestore: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IWsbApplicationRestoreSupport, wszWriterMetadata: ?PWSTR, wszComponentName: ?PWSTR, wszComponentLogicalPath: ?PWSTR, bNoRollForward: BOOLEAN, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IWsbApplicationRestoreSupport, wszWriterMetadata: ?PWSTR, wszComponentName: ?PWSTR, wszComponentLogicalPath: ?PWSTR, bNoRollForward: BOOLEAN, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, PostRestore: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IWsbApplicationRestoreSupport, wszWriterMetadata: ?PWSTR, wszComponentName: ?PWSTR, wszComponentLogicalPath: ?PWSTR, bNoRollForward: BOOLEAN, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IWsbApplicationRestoreSupport, wszWriterMetadata: ?PWSTR, wszComponentName: ?PWSTR, wszComponentLogicalPath: ?PWSTR, bNoRollForward: BOOLEAN, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, OrderComponents: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IWsbApplicationRestoreSupport, cComponents: u32, rgComponentName: [*]?PWSTR, rgComponentLogicalPaths: [*]?PWSTR, prgComponentName: [*]?*?PWSTR, prgComponentLogicalPath: [*]?*?PWSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IWsbApplicationRestoreSupport, cComponents: u32, rgComponentName: [*]?PWSTR, rgComponentLogicalPaths: [*]?PWSTR, prgComponentName: [*]?*?PWSTR, prgComponentLogicalPath: [*]?*?PWSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, IsRollForwardSupported: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IWsbApplicationRestoreSupport, pbRollForwardSupported: ?*u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IWsbApplicationRestoreSupport, pbRollForwardSupported: ?*u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWsbApplicationRestoreSupport_PreRestore(self: *const T, wszWriterMetadata: ?PWSTR, wszComponentName: ?PWSTR, wszComponentLogicalPath: ?PWSTR, bNoRollForward: BOOLEAN) HRESULT { return @as(*const IWsbApplicationRestoreSupport.VTable, @ptrCast(self.vtable)).PreRestore(@as(*const IWsbApplicationRestoreSupport, @ptrCast(self)), wszWriterMetadata, wszComponentName, wszComponentLogicalPath, bNoRollForward); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWsbApplicationRestoreSupport_PostRestore(self: *const T, wszWriterMetadata: ?PWSTR, wszComponentName: ?PWSTR, wszComponentLogicalPath: ?PWSTR, bNoRollForward: BOOLEAN) HRESULT { return @as(*const IWsbApplicationRestoreSupport.VTable, @ptrCast(self.vtable)).PostRestore(@as(*const IWsbApplicationRestoreSupport, @ptrCast(self)), wszWriterMetadata, wszComponentName, wszComponentLogicalPath, bNoRollForward); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWsbApplicationRestoreSupport_OrderComponents(self: *const T, cComponents: u32, rgComponentName: [*]?PWSTR, rgComponentLogicalPaths: [*]?PWSTR, prgComponentName: [*]?*?PWSTR, prgComponentLogicalPath: [*]?*?PWSTR) HRESULT { return @as(*const IWsbApplicationRestoreSupport.VTable, @ptrCast(self.vtable)).OrderComponents(@as(*const IWsbApplicationRestoreSupport, @ptrCast(self)), cComponents, rgComponentName, rgComponentLogicalPaths, prgComponentName, prgComponentLogicalPath); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWsbApplicationRestoreSupport_IsRollForwardSupported(self: *const T, pbRollForwardSupported: ?*u8) HRESULT { return @as(*const IWsbApplicationRestoreSupport.VTable, @ptrCast(self.vtable)).IsRollForwardSupported(@as(*const IWsbApplicationRestoreSupport, @ptrCast(self)), pbRollForwardSupported); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windowsServer2008' const IID_IWsbApplicationAsync_Value = Guid.initString("0843f6f7-895c-44a6-b0c2-05a5022aa3a1"); pub const IID_IWsbApplicationAsync = &IID_IWsbApplicationAsync_Value; pub const IWsbApplicationAsync = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, QueryStatus: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IWsbApplicationAsync, phrResult: ?*HRESULT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IWsbApplicationAsync, phrResult: ?*HRESULT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Abort: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IWsbApplicationAsync, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IWsbApplicationAsync, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWsbApplicationAsync_QueryStatus(self: *const T, phrResult: ?*HRESULT) HRESULT { return @as(*const IWsbApplicationAsync.VTable, @ptrCast(self.vtable)).QueryStatus(@as(*const IWsbApplicationAsync, @ptrCast(self)), phrResult); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWsbApplicationAsync_Abort(self: *const T) HRESULT { return @as(*const IWsbApplicationAsync.VTable, @ptrCast(self.vtable)).Abort(@as(*const IWsbApplicationAsync, @ptrCast(self))); } }; } pub usingnamespace MethodMixin(@This()); }; pub const WSB_OB_STATUS_ENTRY_PAIR_TYPE = enum(i32) { UNDEFINED = 0, STRING = 1, NUMBER = 2, DATETIME = 3, TIME = 4, SIZE = 5, MAX = 6, }; pub const WSB_OB_ET_UNDEFINED = WSB_OB_STATUS_ENTRY_PAIR_TYPE.UNDEFINED; pub const WSB_OB_ET_STRING = WSB_OB_STATUS_ENTRY_PAIR_TYPE.STRING; pub const WSB_OB_ET_NUMBER = WSB_OB_STATUS_ENTRY_PAIR_TYPE.NUMBER; pub const WSB_OB_ET_DATETIME = WSB_OB_STATUS_ENTRY_PAIR_TYPE.DATETIME; pub const WSB_OB_ET_TIME = WSB_OB_STATUS_ENTRY_PAIR_TYPE.TIME; pub const WSB_OB_ET_SIZE = WSB_OB_STATUS_ENTRY_PAIR_TYPE.SIZE; pub const WSB_OB_ET_MAX = WSB_OB_STATUS_ENTRY_PAIR_TYPE.MAX; pub const WSB_OB_STATUS_ENTRY_VALUE_TYPE_PAIR = extern struct { m_wszObStatusEntryPairValue: ?PWSTR, m_ObStatusEntryPairType: WSB_OB_STATUS_ENTRY_PAIR_TYPE, }; pub const WSB_OB_STATUS_ENTRY = extern struct { m_dwIcon: u32, m_dwStatusEntryName: u32, m_dwStatusEntryValue: u32, m_cValueTypePair: u32, m_rgValueTypePair: ?*WSB_OB_STATUS_ENTRY_VALUE_TYPE_PAIR, }; pub const WSB_OB_STATUS_INFO = extern struct { m_guidSnapinId: Guid, m_cStatusEntry: u32, m_rgStatusEntry: ?*WSB_OB_STATUS_ENTRY, }; pub const WSB_OB_REGISTRATION_INFO = extern struct { m_wszResourceDLL: ?PWSTR, m_guidSnapinId: Guid, m_dwProviderName: u32, m_dwProviderIcon: u32, m_bSupportsRemoting: BOOLEAN, }; //-------------------------------------------------------------------------------- // Section: Functions (0) //-------------------------------------------------------------------------------- //-------------------------------------------------------------------------------- // Section: Unicode Aliases (0) //-------------------------------------------------------------------------------- const thismodule = @This(); pub usingnamespace switch (@import("../zig.zig").unicode_mode) { .ansi => struct {}, .wide => struct {}, .unspecified => if (@import("builtin").is_test) struct {} else struct {}, }; //-------------------------------------------------------------------------------- // Section: Imports (5) //-------------------------------------------------------------------------------- const Guid = @import("../zig.zig").Guid; const BOOLEAN = @import("../foundation.zig").BOOLEAN; const HRESULT = @import("../foundation.zig").HRESULT; const IUnknown = @import("../system/com.zig").IUnknown; const PWSTR = @import("../foundation.zig").PWSTR; test { @setEvalBranchQuota(comptime @import("std").meta.declarations(@This()).len * 3); // reference all the pub declarations if (!@import("builtin").is_test) return; inline for (comptime @import("std").meta.declarations(@This())) |decl| { if (decl.is_pub) { _ = @field(@This(), decl.name); } } }
0
repos/capy/vendor/zigwin32/win32
repos/capy/vendor/zigwin32/win32/system/restore.zig
//! NOTE: this file is autogenerated, DO NOT MODIFY //-------------------------------------------------------------------------------- // Section: Constants (21) //-------------------------------------------------------------------------------- pub const MIN_EVENT = @as(u32, 100); pub const BEGIN_NESTED_SYSTEM_CHANGE_NORP = @as(u32, 104); pub const MAX_EVENT = @as(u32, 104); pub const MIN_RPT = @as(u32, 0); pub const DESKTOP_SETTING = @as(u32, 2); pub const ACCESSIBILITY_SETTING = @as(u32, 3); pub const OE_SETTING = @as(u32, 4); pub const APPLICATION_RUN = @as(u32, 5); pub const RESTORE = @as(u32, 6); pub const CHECKPOINT = @as(u32, 7); pub const WINDOWS_SHUTDOWN = @as(u32, 8); pub const WINDOWS_BOOT = @as(u32, 9); pub const FIRSTRUN = @as(u32, 11); pub const BACKUP_RECOVERY = @as(u32, 14); pub const BACKUP = @as(u32, 15); pub const MANUAL_CHECKPOINT = @as(u32, 16); pub const WINDOWS_UPDATE = @as(u32, 17); pub const CRITICAL_UPDATE = @as(u32, 18); pub const MAX_RPT = @as(u32, 18); pub const MAX_DESC = @as(u32, 64); pub const MAX_DESC_W = @as(u32, 256); //-------------------------------------------------------------------------------- // Section: Types (6) //-------------------------------------------------------------------------------- pub const RESTOREPOINTINFO_TYPE = enum(u32) { APPLICATION_INSTALL = 0, APPLICATION_UNINSTALL = 1, DEVICE_DRIVER_INSTALL = 10, MODIFY_SETTINGS = 12, CANCELLED_OPERATION = 13, }; pub const APPLICATION_INSTALL = RESTOREPOINTINFO_TYPE.APPLICATION_INSTALL; pub const APPLICATION_UNINSTALL = RESTOREPOINTINFO_TYPE.APPLICATION_UNINSTALL; pub const DEVICE_DRIVER_INSTALL = RESTOREPOINTINFO_TYPE.DEVICE_DRIVER_INSTALL; pub const MODIFY_SETTINGS = RESTOREPOINTINFO_TYPE.MODIFY_SETTINGS; pub const CANCELLED_OPERATION = RESTOREPOINTINFO_TYPE.CANCELLED_OPERATION; pub const RESTOREPOINTINFO_EVENT_TYPE = enum(u32) { BEGIN_NESTED_SYSTEM_CHANGE = 102, BEGIN_SYSTEM_CHANGE = 100, END_NESTED_SYSTEM_CHANGE = 103, END_SYSTEM_CHANGE = 101, }; pub const BEGIN_NESTED_SYSTEM_CHANGE = RESTOREPOINTINFO_EVENT_TYPE.BEGIN_NESTED_SYSTEM_CHANGE; pub const BEGIN_SYSTEM_CHANGE = RESTOREPOINTINFO_EVENT_TYPE.BEGIN_SYSTEM_CHANGE; pub const END_NESTED_SYSTEM_CHANGE = RESTOREPOINTINFO_EVENT_TYPE.END_NESTED_SYSTEM_CHANGE; pub const END_SYSTEM_CHANGE = RESTOREPOINTINFO_EVENT_TYPE.END_SYSTEM_CHANGE; pub const RESTOREPOINTINFOA = extern struct { dwEventType: RESTOREPOINTINFO_EVENT_TYPE align(1), dwRestorePtType: RESTOREPOINTINFO_TYPE align(1), llSequenceNumber: i64 align(1), szDescription: [64]CHAR align(1), }; pub const RESTOREPOINTINFOW = extern struct { dwEventType: RESTOREPOINTINFO_EVENT_TYPE align(1), dwRestorePtType: RESTOREPOINTINFO_TYPE align(1), llSequenceNumber: i64 align(1), szDescription: [256]u16 align(1), }; pub const _RESTOREPTINFOEX = extern struct { ftCreation: FILETIME align(1), dwEventType: u32 align(1), dwRestorePtType: u32 align(1), dwRPNum: u32 align(1), szDescription: [256]u16 align(1), }; pub const STATEMGRSTATUS = extern struct { nStatus: u32 align(1), llSequenceNumber: i64 align(1), }; //-------------------------------------------------------------------------------- // Section: Functions (2) //-------------------------------------------------------------------------------- // TODO: this type is limited to platform 'windows5.1.2600' pub extern "sfc" fn SRSetRestorePointA( pRestorePtSpec: ?*RESTOREPOINTINFOA, pSMgrStatus: ?*STATEMGRSTATUS, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "sfc" fn SRSetRestorePointW( pRestorePtSpec: ?*RESTOREPOINTINFOW, pSMgrStatus: ?*STATEMGRSTATUS, ) callconv(@import("std").os.windows.WINAPI) BOOL; //-------------------------------------------------------------------------------- // Section: Unicode Aliases (2) //-------------------------------------------------------------------------------- const thismodule = @This(); pub usingnamespace switch (@import("../zig.zig").unicode_mode) { .ansi => struct { pub const RESTOREPOINTINFO = thismodule.RESTOREPOINTINFOA; pub const SRSetRestorePoint = thismodule.SRSetRestorePointA; }, .wide => struct { pub const RESTOREPOINTINFO = thismodule.RESTOREPOINTINFOW; pub const SRSetRestorePoint = thismodule.SRSetRestorePointW; }, .unspecified => if (@import("builtin").is_test) struct { pub const RESTOREPOINTINFO = *opaque {}; pub const SRSetRestorePoint = *opaque {}; } else struct { pub const RESTOREPOINTINFO = @compileError("'RESTOREPOINTINFO' requires that UNICODE be set to true or false in the root module"); pub const SRSetRestorePoint = @compileError("'SRSetRestorePoint' requires that UNICODE be set to true or false in the root module"); }, }; //-------------------------------------------------------------------------------- // Section: Imports (3) //-------------------------------------------------------------------------------- const BOOL = @import("../foundation.zig").BOOL; const CHAR = @import("../foundation.zig").CHAR; const FILETIME = @import("../foundation.zig").FILETIME; test { @setEvalBranchQuota(comptime @import("std").meta.declarations(@This()).len * 3); // reference all the pub declarations if (!@import("builtin").is_test) return; inline for (comptime @import("std").meta.declarations(@This())) |decl| { if (decl.is_pub) { _ = @field(@This(), decl.name); } } }
0
repos/capy/vendor/zigwin32/win32
repos/capy/vendor/zigwin32/win32/system/rpc.zig
//! NOTE: this file is autogenerated, DO NOT MODIFY //-------------------------------------------------------------------------------- // Section: Constants (229) //-------------------------------------------------------------------------------- pub const RPC_C_BINDING_INFINITE_TIMEOUT = @as(u32, 10); pub const RPC_C_BINDING_MIN_TIMEOUT = @as(u32, 0); pub const RPC_C_BINDING_DEFAULT_TIMEOUT = @as(u32, 5); pub const RPC_C_BINDING_MAX_TIMEOUT = @as(u32, 9); pub const RPC_C_CANCEL_INFINITE_TIMEOUT = @as(i32, -1); pub const RPC_C_LISTEN_MAX_CALLS_DEFAULT = @as(u32, 1234); pub const RPC_C_PROTSEQ_MAX_REQS_DEFAULT = @as(u32, 10); pub const RPC_C_BIND_TO_ALL_NICS = @as(u32, 1); pub const RPC_C_USE_INTERNET_PORT = @as(u32, 1); pub const RPC_C_USE_INTRANET_PORT = @as(u32, 2); pub const RPC_C_DONT_FAIL = @as(u32, 4); pub const RPC_C_RPCHTTP_USE_LOAD_BALANCE = @as(u32, 8); pub const RPC_C_TRY_ENFORCE_MAX_CALLS = @as(u32, 16); pub const RPC_C_MQ_TEMPORARY = @as(u32, 0); pub const RPC_C_MQ_PERMANENT = @as(u32, 1); pub const RPC_C_MQ_CLEAR_ON_OPEN = @as(u32, 2); pub const RPC_C_MQ_USE_EXISTING_SECURITY = @as(u32, 4); pub const RPC_C_MQ_AUTHN_LEVEL_NONE = @as(u32, 0); pub const RPC_C_MQ_AUTHN_LEVEL_PKT_INTEGRITY = @as(u32, 8); pub const RPC_C_MQ_AUTHN_LEVEL_PKT_PRIVACY = @as(u32, 16); pub const RPC_C_MQ_EXPRESS = @as(u32, 0); pub const RPC_C_MQ_RECOVERABLE = @as(u32, 1); pub const RPC_C_MQ_JOURNAL_NONE = @as(u32, 0); pub const RPC_C_MQ_JOURNAL_DEADLETTER = @as(u32, 1); pub const RPC_C_MQ_JOURNAL_ALWAYS = @as(u32, 2); pub const RPC_C_OPT_MQ_DELIVERY = @as(u32, 1); pub const RPC_C_OPT_MQ_PRIORITY = @as(u32, 2); pub const RPC_C_OPT_MQ_JOURNAL = @as(u32, 3); pub const RPC_C_OPT_MQ_ACKNOWLEDGE = @as(u32, 4); pub const RPC_C_OPT_MQ_AUTHN_SERVICE = @as(u32, 5); pub const RPC_C_OPT_MQ_AUTHN_LEVEL = @as(u32, 6); pub const RPC_C_OPT_MQ_TIME_TO_REACH_QUEUE = @as(u32, 7); pub const RPC_C_OPT_MQ_TIME_TO_BE_RECEIVED = @as(u32, 8); pub const RPC_C_OPT_BINDING_NONCAUSAL = @as(u32, 9); pub const RPC_C_OPT_SECURITY_CALLBACK = @as(u32, 10); pub const RPC_C_OPT_UNIQUE_BINDING = @as(u32, 11); pub const RPC_C_OPT_MAX_OPTIONS = @as(u32, 12); pub const RPC_C_OPT_CALL_TIMEOUT = @as(u32, 12); pub const RPC_C_OPT_DONT_LINGER = @as(u32, 13); pub const RPC_C_OPT_TRANS_SEND_BUFFER_SIZE = @as(u32, 5); pub const RPC_C_OPT_TRUST_PEER = @as(u32, 14); pub const RPC_C_OPT_ASYNC_BLOCK = @as(u32, 15); pub const RPC_C_OPT_OPTIMIZE_TIME = @as(u32, 16); pub const RPC_C_FULL_CERT_CHAIN = @as(u32, 1); pub const RPC_C_STATS_CALLS_IN = @as(u32, 0); pub const RPC_C_STATS_CALLS_OUT = @as(u32, 1); pub const RPC_C_STATS_PKTS_IN = @as(u32, 2); pub const RPC_C_STATS_PKTS_OUT = @as(u32, 3); pub const RPC_C_AUTHN_NONE = @as(u32, 0); pub const RPC_C_AUTHN_DCE_PRIVATE = @as(u32, 1); pub const RPC_C_AUTHN_DCE_PUBLIC = @as(u32, 2); pub const RPC_C_AUTHN_DEC_PUBLIC = @as(u32, 4); pub const RPC_C_AUTHN_GSS_NEGOTIATE = @as(u32, 9); pub const RPC_C_AUTHN_WINNT = @as(u32, 10); pub const RPC_C_AUTHN_GSS_SCHANNEL = @as(u32, 14); pub const RPC_C_AUTHN_GSS_KERBEROS = @as(u32, 16); pub const RPC_C_AUTHN_DPA = @as(u32, 17); pub const RPC_C_AUTHN_MSN = @as(u32, 18); pub const RPC_C_AUTHN_DIGEST = @as(u32, 21); pub const RPC_C_AUTHN_KERNEL = @as(u32, 20); pub const RPC_C_AUTHN_NEGO_EXTENDER = @as(u32, 30); pub const RPC_C_AUTHN_PKU2U = @as(u32, 31); pub const RPC_C_AUTHN_LIVE_SSP = @as(u32, 32); pub const RPC_C_AUTHN_LIVEXP_SSP = @as(u32, 35); pub const RPC_C_AUTHN_CLOUD_AP = @as(u32, 36); pub const RPC_C_AUTHN_MSONLINE = @as(u32, 82); pub const RPC_C_AUTHN_MQ = @as(u32, 100); pub const RPC_C_AUTHN_DEFAULT = @as(i32, -1); pub const RPC_C_SECURITY_QOS_VERSION = @as(i32, 1); pub const RPC_C_SECURITY_QOS_VERSION_1 = @as(i32, 1); pub const RPC_C_SECURITY_QOS_VERSION_2 = @as(i32, 2); pub const RPC_C_HTTP_AUTHN_SCHEME_BASIC = @as(u32, 1); pub const RPC_C_HTTP_AUTHN_SCHEME_NTLM = @as(u32, 2); pub const RPC_C_HTTP_AUTHN_SCHEME_PASSPORT = @as(u32, 4); pub const RPC_C_HTTP_AUTHN_SCHEME_DIGEST = @as(u32, 8); pub const RPC_C_HTTP_AUTHN_SCHEME_NEGOTIATE = @as(u32, 16); pub const RPC_C_HTTP_AUTHN_SCHEME_CERT = @as(u32, 65536); pub const RPC_C_SECURITY_QOS_VERSION_3 = @as(i32, 3); pub const RPC_C_SECURITY_QOS_VERSION_4 = @as(i32, 4); pub const RPC_C_SECURITY_QOS_VERSION_5 = @as(i32, 5); pub const RPC_PROTSEQ_TCP = @as(u32, 1); pub const RPC_PROTSEQ_NMP = @as(u32, 2); pub const RPC_PROTSEQ_LRPC = @as(u32, 3); pub const RPC_PROTSEQ_HTTP = @as(u32, 4); pub const RPC_BHT_OBJECT_UUID_VALID = @as(u32, 1); pub const RPC_BHO_EXCLUSIVE_AND_GUARANTEED = @as(u32, 4); pub const RPC_C_AUTHZ_NONE = @as(u32, 0); pub const RPC_C_AUTHZ_NAME = @as(u32, 1); pub const RPC_C_AUTHZ_DCE = @as(u32, 2); pub const RPC_C_AUTHZ_DEFAULT = @as(u32, 4294967295); pub const DCE_C_ERROR_STRING_LEN = @as(u32, 256); pub const RPC_C_EP_ALL_ELTS = @as(u32, 0); pub const RPC_C_EP_MATCH_BY_IF = @as(u32, 1); pub const RPC_C_EP_MATCH_BY_OBJ = @as(u32, 2); pub const RPC_C_EP_MATCH_BY_BOTH = @as(u32, 3); pub const RPC_C_VERS_ALL = @as(u32, 1); pub const RPC_C_VERS_COMPATIBLE = @as(u32, 2); pub const RPC_C_VERS_EXACT = @as(u32, 3); pub const RPC_C_VERS_MAJOR_ONLY = @as(u32, 4); pub const RPC_C_VERS_UPTO = @as(u32, 5); pub const RPC_C_MGMT_INQ_IF_IDS = @as(u32, 0); pub const RPC_C_MGMT_INQ_PRINC_NAME = @as(u32, 1); pub const RPC_C_MGMT_INQ_STATS = @as(u32, 2); pub const RPC_C_MGMT_IS_SERVER_LISTEN = @as(u32, 3); pub const RPC_C_MGMT_STOP_SERVER_LISTEN = @as(u32, 4); pub const RPC_C_PARM_MAX_PACKET_LENGTH = @as(u32, 1); pub const RPC_C_PARM_BUFFER_LENGTH = @as(u32, 2); pub const RPC_IF_AUTOLISTEN = @as(u32, 1); pub const RPC_IF_OLE = @as(u32, 2); pub const RPC_IF_ALLOW_UNKNOWN_AUTHORITY = @as(u32, 4); pub const RPC_IF_ALLOW_SECURE_ONLY = @as(u32, 8); pub const RPC_IF_ALLOW_CALLBACKS_WITH_NO_AUTH = @as(u32, 16); pub const RPC_IF_ALLOW_LOCAL_ONLY = @as(u32, 32); pub const RPC_IF_SEC_NO_CACHE = @as(u32, 64); pub const RPC_IF_SEC_CACHE_PER_PROC = @as(u32, 128); pub const RPC_IF_ASYNC_CALLBACK = @as(u32, 256); pub const RPC_FW_IF_FLAG_DCOM = @as(u32, 1); pub const RPC_C_NOTIFY_ON_SEND_COMPLETE = @as(u32, 1); pub const MaxNumberOfEEInfoParams = @as(u32, 4); pub const RPC_EEINFO_VERSION = @as(u32, 1); pub const EEInfoPreviousRecordsMissing = @as(u32, 1); pub const EEInfoNextRecordsMissing = @as(u32, 2); pub const EEInfoUseFileTime = @as(u32, 4); pub const EEInfoGCCOM = @as(u32, 11); pub const EEInfoGCFRS = @as(u32, 12); pub const RPC_CALL_ATTRIBUTES_VERSION = @as(u32, 2); pub const RPC_QUERY_SERVER_PRINCIPAL_NAME = @as(u32, 2); pub const RPC_QUERY_CLIENT_PRINCIPAL_NAME = @as(u32, 4); pub const RPC_QUERY_CALL_LOCAL_ADDRESS = @as(u32, 8); pub const RPC_QUERY_CLIENT_PID = @as(u32, 16); pub const RPC_QUERY_IS_CLIENT_LOCAL = @as(u32, 32); pub const RPC_QUERY_NO_AUTH_REQUIRED = @as(u32, 64); pub const RPC_QUERY_CLIENT_ID = @as(u32, 128); pub const RPC_CALL_STATUS_CANCELLED = @as(u32, 1); pub const RPC_CALL_STATUS_DISCONNECTED = @as(u32, 2); pub const RPC_CONTEXT_HANDLE_DEFAULT_FLAGS = @as(u32, 0); pub const RPC_CONTEXT_HANDLE_FLAGS = @as(u32, 805306368); pub const RPC_CONTEXT_HANDLE_SERIALIZE = @as(u32, 268435456); pub const RPC_CONTEXT_HANDLE_DONT_SERIALIZE = @as(u32, 536870912); pub const RPC_TYPE_STRICT_CONTEXT_HANDLE = @as(u32, 1073741824); pub const RPC_TYPE_DISCONNECT_EVENT_CONTEXT_HANDLE = @as(u32, 2147483648); pub const RPC_NCA_FLAGS_DEFAULT = @as(u32, 0); pub const RPC_NCA_FLAGS_IDEMPOTENT = @as(u32, 1); pub const RPC_NCA_FLAGS_BROADCAST = @as(u32, 2); pub const RPC_NCA_FLAGS_MAYBE = @as(u32, 4); pub const RPCFLG_HAS_GUARANTEE = @as(u32, 16); pub const RPCFLG_WINRT_REMOTE_ASYNC = @as(u32, 32); pub const RPC_BUFFER_COMPLETE = @as(u32, 4096); pub const RPC_BUFFER_PARTIAL = @as(u32, 8192); pub const RPC_BUFFER_EXTRA = @as(u32, 16384); pub const RPC_BUFFER_ASYNC = @as(u32, 32768); pub const RPC_BUFFER_NONOTIFY = @as(u32, 65536); pub const RPCFLG_MESSAGE = @as(u32, 16777216); pub const RPCFLG_AUTO_COMPLETE = @as(u32, 134217728); pub const RPCFLG_LOCAL_CALL = @as(u32, 268435456); pub const RPCFLG_INPUT_SYNCHRONOUS = @as(u32, 536870912); pub const RPCFLG_ASYNCHRONOUS = @as(u32, 1073741824); pub const RPCFLG_NON_NDR = @as(u32, 2147483648); pub const RPCFLG_HAS_MULTI_SYNTAXES = @as(u32, 33554432); pub const RPCFLG_HAS_CALLBACK = @as(u32, 67108864); pub const RPCFLG_ACCESSIBILITY_BIT1 = @as(u32, 1048576); pub const RPCFLG_ACCESSIBILITY_BIT2 = @as(u32, 2097152); pub const RPCFLG_ACCESS_LOCAL = @as(u32, 4194304); pub const NDR_CUSTOM_OR_DEFAULT_ALLOCATOR = @as(u32, 268435456); pub const NDR_DEFAULT_ALLOCATOR = @as(u32, 536870912); pub const RPCFLG_NDR64_CONTAINS_ARM_LAYOUT = @as(u32, 67108864); pub const RPCFLG_SENDER_WAITING_FOR_REPLY = @as(u32, 8388608); pub const RPC_FLAGS_VALID_BIT = @as(u32, 32768); pub const NT351_INTERFACE_SIZE = @as(u32, 64); pub const RPC_INTERFACE_HAS_PIPES = @as(u32, 1); pub const RPC_SYSTEM_HANDLE_FREE_UNRETRIEVED = @as(u32, 1); pub const RPC_SYSTEM_HANDLE_FREE_RETRIEVED = @as(u32, 2); pub const RPC_SYSTEM_HANDLE_FREE_ALL = @as(u32, 3); pub const RPC_SYSTEM_HANDLE_FREE_ERROR_ON_CLOSE = @as(u32, 4); pub const TRANSPORT_TYPE_CN = @as(u32, 1); pub const TRANSPORT_TYPE_DG = @as(u32, 2); pub const TRANSPORT_TYPE_LPC = @as(u32, 4); pub const TRANSPORT_TYPE_WMSG = @as(u32, 8); pub const RPC_P_ADDR_FORMAT_TCP_IPV4 = @as(u32, 1); pub const RPC_P_ADDR_FORMAT_TCP_IPV6 = @as(u32, 2); pub const RPC_C_OPT_SESSION_ID = @as(u32, 6); pub const RPC_C_OPT_COOKIE_AUTH = @as(u32, 7); pub const RPC_C_OPT_RESOURCE_TYPE_UUID = @as(u32, 8); pub const RPC_PROXY_CONNECTION_TYPE_IN_PROXY = @as(u32, 0); pub const RPC_PROXY_CONNECTION_TYPE_OUT_PROXY = @as(u32, 1); pub const RPC_C_OPT_PRIVATE_SUPPRESS_WAKE = @as(u32, 1); pub const RPC_C_OPT_PRIVATE_DO_NOT_DISTURB = @as(u32, 2); pub const RPC_C_OPT_PRIVATE_BREAK_ON_SUSPEND = @as(u32, 3); pub const RPC_C_PROFILE_DEFAULT_ELT = @as(u32, 0); pub const RPC_C_PROFILE_ALL_ELT = @as(u32, 1); pub const RPC_C_PROFILE_ALL_ELTS = @as(u32, 1); pub const RPC_C_PROFILE_MATCH_BY_IF = @as(u32, 2); pub const RPC_C_PROFILE_MATCH_BY_MBR = @as(u32, 3); pub const RPC_C_PROFILE_MATCH_BY_BOTH = @as(u32, 4); pub const RPC_C_NS_DEFAULT_EXP_AGE = @as(i32, -1); pub const TARGET_IS_NT100_OR_LATER = @as(u32, 1); pub const TARGET_IS_NT63_OR_LATER = @as(u32, 1); pub const TARGET_IS_NT62_OR_LATER = @as(u32, 1); pub const TARGET_IS_NT61_OR_LATER = @as(u32, 1); pub const TARGET_IS_NT60_OR_LATER = @as(u32, 1); pub const TARGET_IS_NT51_OR_LATER = @as(u32, 1); pub const TARGET_IS_NT50_OR_LATER = @as(u32, 1); pub const TARGET_IS_NT40_OR_LATER = @as(u32, 1); pub const TARGET_IS_NT351_OR_WIN95_OR_LATER = @as(u32, 1); pub const USER_CALL_IS_ASYNC = @as(u32, 256); pub const USER_CALL_NEW_CORRELATION_DESC = @as(u32, 512); pub const MIDL_WINRT_TYPE_SERIALIZATION_INFO_CURRENT_VERSION = @as(i32, 1); pub const USER_MARSHAL_FC_BYTE = @as(u32, 1); pub const USER_MARSHAL_FC_CHAR = @as(u32, 2); pub const USER_MARSHAL_FC_SMALL = @as(u32, 3); pub const USER_MARSHAL_FC_USMALL = @as(u32, 4); pub const USER_MARSHAL_FC_WCHAR = @as(u32, 5); pub const USER_MARSHAL_FC_SHORT = @as(u32, 6); pub const USER_MARSHAL_FC_USHORT = @as(u32, 7); pub const USER_MARSHAL_FC_LONG = @as(u32, 8); pub const USER_MARSHAL_FC_ULONG = @as(u32, 9); pub const USER_MARSHAL_FC_FLOAT = @as(u32, 10); pub const USER_MARSHAL_FC_HYPER = @as(u32, 11); pub const USER_MARSHAL_FC_DOUBLE = @as(u32, 12); pub const INVALID_FRAGMENT_ID = @as(u32, 0); pub const NDR64_FC_EXPLICIT_HANDLE = @as(u32, 0); pub const NDR64_FC_BIND_GENERIC = @as(u32, 1); pub const NDR64_FC_BIND_PRIMITIVE = @as(u32, 2); pub const NDR64_FC_AUTO_HANDLE = @as(u32, 3); pub const NDR64_FC_CALLBACK_HANDLE = @as(u32, 4); pub const NDR64_FC_NO_HANDLE = @as(u32, 5); pub const __RPCPROXY_H_VERSION__ = @as(u32, 475); pub const MidlInterceptionInfoVersionOne = @as(i32, 1); pub const MidlWinrtTypeSerializationInfoVersionOne = @as(i32, 1); //-------------------------------------------------------------------------------- // Section: Types (237) //-------------------------------------------------------------------------------- pub const NDR_SCONTEXT_1 = extern struct { pad: [2]?*anyopaque, userContext: ?*anyopaque, }; pub const RPC_C_QOS_CAPABILITIES = enum(u32) { DEFAULT = 0, MUTUAL_AUTH = 1, MAKE_FULLSIC = 2, ANY_AUTHORITY = 4, IGNORE_DELEGATE_FAILURE = 8, LOCAL_MA_HINT = 16, SCHANNEL_FULL_AUTH_IDENTITY = 32, _, pub fn initFlags(o: struct { DEFAULT: u1 = 0, MUTUAL_AUTH: u1 = 0, MAKE_FULLSIC: u1 = 0, ANY_AUTHORITY: u1 = 0, IGNORE_DELEGATE_FAILURE: u1 = 0, LOCAL_MA_HINT: u1 = 0, SCHANNEL_FULL_AUTH_IDENTITY: u1 = 0, }) RPC_C_QOS_CAPABILITIES { return @as(RPC_C_QOS_CAPABILITIES, @enumFromInt((if (o.DEFAULT == 1) @intFromEnum(RPC_C_QOS_CAPABILITIES.DEFAULT) else 0) | (if (o.MUTUAL_AUTH == 1) @intFromEnum(RPC_C_QOS_CAPABILITIES.MUTUAL_AUTH) else 0) | (if (o.MAKE_FULLSIC == 1) @intFromEnum(RPC_C_QOS_CAPABILITIES.MAKE_FULLSIC) else 0) | (if (o.ANY_AUTHORITY == 1) @intFromEnum(RPC_C_QOS_CAPABILITIES.ANY_AUTHORITY) else 0) | (if (o.IGNORE_DELEGATE_FAILURE == 1) @intFromEnum(RPC_C_QOS_CAPABILITIES.IGNORE_DELEGATE_FAILURE) else 0) | (if (o.LOCAL_MA_HINT == 1) @intFromEnum(RPC_C_QOS_CAPABILITIES.LOCAL_MA_HINT) else 0) | (if (o.SCHANNEL_FULL_AUTH_IDENTITY == 1) @intFromEnum(RPC_C_QOS_CAPABILITIES.SCHANNEL_FULL_AUTH_IDENTITY) else 0))); } }; pub const RPC_C_QOS_CAPABILITIES_DEFAULT = RPC_C_QOS_CAPABILITIES.DEFAULT; pub const RPC_C_QOS_CAPABILITIES_MUTUAL_AUTH = RPC_C_QOS_CAPABILITIES.MUTUAL_AUTH; pub const RPC_C_QOS_CAPABILITIES_MAKE_FULLSIC = RPC_C_QOS_CAPABILITIES.MAKE_FULLSIC; pub const RPC_C_QOS_CAPABILITIES_ANY_AUTHORITY = RPC_C_QOS_CAPABILITIES.ANY_AUTHORITY; pub const RPC_C_QOS_CAPABILITIES_IGNORE_DELEGATE_FAILURE = RPC_C_QOS_CAPABILITIES.IGNORE_DELEGATE_FAILURE; pub const RPC_C_QOS_CAPABILITIES_LOCAL_MA_HINT = RPC_C_QOS_CAPABILITIES.LOCAL_MA_HINT; pub const RPC_C_QOS_CAPABILITIES_SCHANNEL_FULL_AUTH_IDENTITY = RPC_C_QOS_CAPABILITIES.SCHANNEL_FULL_AUTH_IDENTITY; pub const RPC_C_QOS_IDENTITY = enum(u32) { STATIC = 0, DYNAMIC = 1, }; pub const RPC_C_QOS_IDENTITY_STATIC = RPC_C_QOS_IDENTITY.STATIC; pub const RPC_C_QOS_IDENTITY_DYNAMIC = RPC_C_QOS_IDENTITY.DYNAMIC; pub const RPC_C_AUTHN_INFO_TYPE = enum(u32) { NONE = 0, TYPE_HTTP = 1, }; pub const RPC_C_AUTHN_INFO_NONE = RPC_C_AUTHN_INFO_TYPE.NONE; pub const RPC_C_AUTHN_INFO_TYPE_HTTP = RPC_C_AUTHN_INFO_TYPE.TYPE_HTTP; pub const RPC_C_HTTP_FLAGS = enum(u32) { USE_SSL = 1, USE_FIRST_AUTH_SCHEME = 2, IGNORE_CERT_CN_INVALID = 8, ENABLE_CERT_REVOCATION_CHECK = 16, _, pub fn initFlags(o: struct { USE_SSL: u1 = 0, USE_FIRST_AUTH_SCHEME: u1 = 0, IGNORE_CERT_CN_INVALID: u1 = 0, ENABLE_CERT_REVOCATION_CHECK: u1 = 0, }) RPC_C_HTTP_FLAGS { return @as(RPC_C_HTTP_FLAGS, @enumFromInt((if (o.USE_SSL == 1) @intFromEnum(RPC_C_HTTP_FLAGS.USE_SSL) else 0) | (if (o.USE_FIRST_AUTH_SCHEME == 1) @intFromEnum(RPC_C_HTTP_FLAGS.USE_FIRST_AUTH_SCHEME) else 0) | (if (o.IGNORE_CERT_CN_INVALID == 1) @intFromEnum(RPC_C_HTTP_FLAGS.IGNORE_CERT_CN_INVALID) else 0) | (if (o.ENABLE_CERT_REVOCATION_CHECK == 1) @intFromEnum(RPC_C_HTTP_FLAGS.ENABLE_CERT_REVOCATION_CHECK) else 0))); } }; pub const RPC_C_HTTP_FLAG_USE_SSL = RPC_C_HTTP_FLAGS.USE_SSL; pub const RPC_C_HTTP_FLAG_USE_FIRST_AUTH_SCHEME = RPC_C_HTTP_FLAGS.USE_FIRST_AUTH_SCHEME; pub const RPC_C_HTTP_FLAG_IGNORE_CERT_CN_INVALID = RPC_C_HTTP_FLAGS.IGNORE_CERT_CN_INVALID; pub const RPC_C_HTTP_FLAG_ENABLE_CERT_REVOCATION_CHECK = RPC_C_HTTP_FLAGS.ENABLE_CERT_REVOCATION_CHECK; pub const RPC_C_HTTP_AUTHN_TARGET = enum(u32) { SERVER = 1, PROXY = 2, _, pub fn initFlags(o: struct { SERVER: u1 = 0, PROXY: u1 = 0, }) RPC_C_HTTP_AUTHN_TARGET { return @as(RPC_C_HTTP_AUTHN_TARGET, @enumFromInt((if (o.SERVER == 1) @intFromEnum(RPC_C_HTTP_AUTHN_TARGET.SERVER) else 0) | (if (o.PROXY == 1) @intFromEnum(RPC_C_HTTP_AUTHN_TARGET.PROXY) else 0))); } }; pub const RPC_C_HTTP_AUTHN_TARGET_SERVER = RPC_C_HTTP_AUTHN_TARGET.SERVER; pub const RPC_C_HTTP_AUTHN_TARGET_PROXY = RPC_C_HTTP_AUTHN_TARGET.PROXY; pub const RPC_STATUS = enum(i32) { RPC_S_INVALID_STRING_BINDING = 1700, RPC_S_WRONG_KIND_OF_BINDING = 1701, RPC_S_INVALID_BINDING = 1702, RPC_S_PROTSEQ_NOT_SUPPORTED = 1703, RPC_S_INVALID_RPC_PROTSEQ = 1704, RPC_S_INVALID_STRING_UUID = 1705, RPC_S_INVALID_ENDPOINT_FORMAT = 1706, RPC_S_INVALID_NET_ADDR = 1707, RPC_S_NO_ENDPOINT_FOUND = 1708, RPC_S_INVALID_TIMEOUT = 1709, RPC_S_OBJECT_NOT_FOUND = 1710, RPC_S_ALREADY_REGISTERED = 1711, RPC_S_TYPE_ALREADY_REGISTERED = 1712, RPC_S_ALREADY_LISTENING = 1713, RPC_S_NO_PROTSEQS_REGISTERED = 1714, RPC_S_NOT_LISTENING = 1715, RPC_S_UNKNOWN_MGR_TYPE = 1716, RPC_S_UNKNOWN_IF = 1717, RPC_S_NO_BINDINGS = 1718, RPC_S_NO_PROTSEQS = 1719, RPC_S_CANT_CREATE_ENDPOINT = 1720, RPC_S_OUT_OF_RESOURCES = 1721, RPC_S_SERVER_UNAVAILABLE = 1722, RPC_S_SERVER_TOO_BUSY = 1723, RPC_S_INVALID_NETWORK_OPTIONS = 1724, RPC_S_NO_CALL_ACTIVE = 1725, RPC_S_CALL_FAILED = 1726, RPC_S_CALL_FAILED_DNE = 1727, RPC_S_PROTOCOL_ERROR = 1728, RPC_S_PROXY_ACCESS_DENIED = 1729, RPC_S_UNSUPPORTED_TRANS_SYN = 1730, RPC_S_UNSUPPORTED_TYPE = 1732, RPC_S_INVALID_TAG = 1733, RPC_S_INVALID_BOUND = 1734, RPC_S_NO_ENTRY_NAME = 1735, RPC_S_INVALID_NAME_SYNTAX = 1736, RPC_S_UNSUPPORTED_NAME_SYNTAX = 1737, RPC_S_UUID_NO_ADDRESS = 1739, RPC_S_DUPLICATE_ENDPOINT = 1740, RPC_S_UNKNOWN_AUTHN_TYPE = 1741, RPC_S_MAX_CALLS_TOO_SMALL = 1742, RPC_S_STRING_TOO_LONG = 1743, RPC_S_PROTSEQ_NOT_FOUND = 1744, RPC_S_PROCNUM_OUT_OF_RANGE = 1745, RPC_S_BINDING_HAS_NO_AUTH = 1746, RPC_S_UNKNOWN_AUTHN_SERVICE = 1747, RPC_S_UNKNOWN_AUTHN_LEVEL = 1748, RPC_S_INVALID_AUTH_IDENTITY = 1749, RPC_S_UNKNOWN_AUTHZ_SERVICE = 1750, EPT_S_INVALID_ENTRY = 1751, EPT_S_CANT_PERFORM_OP = 1752, EPT_S_NOT_REGISTERED = 1753, RPC_S_NOTHING_TO_EXPORT = 1754, RPC_S_INCOMPLETE_NAME = 1755, RPC_S_INVALID_VERS_OPTION = 1756, RPC_S_NO_MORE_MEMBERS = 1757, RPC_S_NOT_ALL_OBJS_UNEXPORTED = 1758, RPC_S_INTERFACE_NOT_FOUND = 1759, RPC_S_ENTRY_ALREADY_EXISTS = 1760, RPC_S_ENTRY_NOT_FOUND = 1761, RPC_S_NAME_SERVICE_UNAVAILABLE = 1762, RPC_S_INVALID_NAF_ID = 1763, RPC_S_CANNOT_SUPPORT = 1764, RPC_S_NO_CONTEXT_AVAILABLE = 1765, RPC_S_INTERNAL_ERROR = 1766, RPC_S_ZERO_DIVIDE = 1767, RPC_S_ADDRESS_ERROR = 1768, RPC_S_FP_DIV_ZERO = 1769, RPC_S_FP_UNDERFLOW = 1770, RPC_S_FP_OVERFLOW = 1771, RPC_S_CALL_IN_PROGRESS = 1791, RPC_S_NO_MORE_BINDINGS = 1806, RPC_S_NO_INTERFACES = 1817, RPC_S_CALL_CANCELLED = 1818, RPC_S_BINDING_INCOMPLETE = 1819, RPC_S_COMM_FAILURE = 1820, RPC_S_UNSUPPORTED_AUTHN_LEVEL = 1821, RPC_S_NO_PRINC_NAME = 1822, RPC_S_NOT_RPC_ERROR = 1823, RPC_S_UUID_LOCAL_ONLY = 1824, RPC_S_SEC_PKG_ERROR = 1825, RPC_S_NOT_CANCELLED = 1826, RPC_S_COOKIE_AUTH_FAILED = 1833, RPC_S_DO_NOT_DISTURB = 1834, RPC_S_SYSTEM_HANDLE_COUNT_EXCEEDED = 1835, RPC_S_SYSTEM_HANDLE_TYPE_MISMATCH = 1836, RPC_S_GROUP_MEMBER_NOT_FOUND = 1898, EPT_S_CANT_CREATE = 1899, RPC_S_INVALID_OBJECT = 1900, RPC_S_SEND_INCOMPLETE = 1913, RPC_S_INVALID_ASYNC_HANDLE = 1914, RPC_S_INVALID_ASYNC_CALL = 1915, RPC_S_ENTRY_TYPE_MISMATCH = 1922, RPC_S_NOT_ALL_OBJS_EXPORTED = 1923, RPC_S_INTERFACE_NOT_EXPORTED = 1924, RPC_S_PROFILE_NOT_ADDED = 1925, RPC_S_PRF_ELT_NOT_ADDED = 1926, RPC_S_PRF_ELT_NOT_REMOVED = 1927, RPC_S_GRP_ELT_NOT_ADDED = 1928, RPC_S_GRP_ELT_NOT_REMOVED = 1929, }; pub const RPC_S_INVALID_STRING_BINDING = RPC_STATUS.RPC_S_INVALID_STRING_BINDING; pub const RPC_S_WRONG_KIND_OF_BINDING = RPC_STATUS.RPC_S_WRONG_KIND_OF_BINDING; pub const RPC_S_INVALID_BINDING = RPC_STATUS.RPC_S_INVALID_BINDING; pub const RPC_S_PROTSEQ_NOT_SUPPORTED = RPC_STATUS.RPC_S_PROTSEQ_NOT_SUPPORTED; pub const RPC_S_INVALID_RPC_PROTSEQ = RPC_STATUS.RPC_S_INVALID_RPC_PROTSEQ; pub const RPC_S_INVALID_STRING_UUID = RPC_STATUS.RPC_S_INVALID_STRING_UUID; pub const RPC_S_INVALID_ENDPOINT_FORMAT = RPC_STATUS.RPC_S_INVALID_ENDPOINT_FORMAT; pub const RPC_S_INVALID_NET_ADDR = RPC_STATUS.RPC_S_INVALID_NET_ADDR; pub const RPC_S_NO_ENDPOINT_FOUND = RPC_STATUS.RPC_S_NO_ENDPOINT_FOUND; pub const RPC_S_INVALID_TIMEOUT = RPC_STATUS.RPC_S_INVALID_TIMEOUT; pub const RPC_S_OBJECT_NOT_FOUND = RPC_STATUS.RPC_S_OBJECT_NOT_FOUND; pub const RPC_S_ALREADY_REGISTERED = RPC_STATUS.RPC_S_ALREADY_REGISTERED; pub const RPC_S_TYPE_ALREADY_REGISTERED = RPC_STATUS.RPC_S_TYPE_ALREADY_REGISTERED; pub const RPC_S_ALREADY_LISTENING = RPC_STATUS.RPC_S_ALREADY_LISTENING; pub const RPC_S_NO_PROTSEQS_REGISTERED = RPC_STATUS.RPC_S_NO_PROTSEQS_REGISTERED; pub const RPC_S_NOT_LISTENING = RPC_STATUS.RPC_S_NOT_LISTENING; pub const RPC_S_UNKNOWN_MGR_TYPE = RPC_STATUS.RPC_S_UNKNOWN_MGR_TYPE; pub const RPC_S_UNKNOWN_IF = RPC_STATUS.RPC_S_UNKNOWN_IF; pub const RPC_S_NO_BINDINGS = RPC_STATUS.RPC_S_NO_BINDINGS; pub const RPC_S_NO_PROTSEQS = RPC_STATUS.RPC_S_NO_PROTSEQS; pub const RPC_S_CANT_CREATE_ENDPOINT = RPC_STATUS.RPC_S_CANT_CREATE_ENDPOINT; pub const RPC_S_OUT_OF_RESOURCES = RPC_STATUS.RPC_S_OUT_OF_RESOURCES; pub const RPC_S_SERVER_UNAVAILABLE = RPC_STATUS.RPC_S_SERVER_UNAVAILABLE; pub const RPC_S_SERVER_TOO_BUSY = RPC_STATUS.RPC_S_SERVER_TOO_BUSY; pub const RPC_S_INVALID_NETWORK_OPTIONS = RPC_STATUS.RPC_S_INVALID_NETWORK_OPTIONS; pub const RPC_S_NO_CALL_ACTIVE = RPC_STATUS.RPC_S_NO_CALL_ACTIVE; pub const RPC_S_CALL_FAILED = RPC_STATUS.RPC_S_CALL_FAILED; pub const RPC_S_CALL_FAILED_DNE = RPC_STATUS.RPC_S_CALL_FAILED_DNE; pub const RPC_S_PROTOCOL_ERROR = RPC_STATUS.RPC_S_PROTOCOL_ERROR; pub const RPC_S_PROXY_ACCESS_DENIED = RPC_STATUS.RPC_S_PROXY_ACCESS_DENIED; pub const RPC_S_UNSUPPORTED_TRANS_SYN = RPC_STATUS.RPC_S_UNSUPPORTED_TRANS_SYN; pub const RPC_S_UNSUPPORTED_TYPE = RPC_STATUS.RPC_S_UNSUPPORTED_TYPE; pub const RPC_S_INVALID_TAG = RPC_STATUS.RPC_S_INVALID_TAG; pub const RPC_S_INVALID_BOUND = RPC_STATUS.RPC_S_INVALID_BOUND; pub const RPC_S_NO_ENTRY_NAME = RPC_STATUS.RPC_S_NO_ENTRY_NAME; pub const RPC_S_INVALID_NAME_SYNTAX = RPC_STATUS.RPC_S_INVALID_NAME_SYNTAX; pub const RPC_S_UNSUPPORTED_NAME_SYNTAX = RPC_STATUS.RPC_S_UNSUPPORTED_NAME_SYNTAX; pub const RPC_S_UUID_NO_ADDRESS = RPC_STATUS.RPC_S_UUID_NO_ADDRESS; pub const RPC_S_DUPLICATE_ENDPOINT = RPC_STATUS.RPC_S_DUPLICATE_ENDPOINT; pub const RPC_S_UNKNOWN_AUTHN_TYPE = RPC_STATUS.RPC_S_UNKNOWN_AUTHN_TYPE; pub const RPC_S_MAX_CALLS_TOO_SMALL = RPC_STATUS.RPC_S_MAX_CALLS_TOO_SMALL; pub const RPC_S_STRING_TOO_LONG = RPC_STATUS.RPC_S_STRING_TOO_LONG; pub const RPC_S_PROTSEQ_NOT_FOUND = RPC_STATUS.RPC_S_PROTSEQ_NOT_FOUND; pub const RPC_S_PROCNUM_OUT_OF_RANGE = RPC_STATUS.RPC_S_PROCNUM_OUT_OF_RANGE; pub const RPC_S_BINDING_HAS_NO_AUTH = RPC_STATUS.RPC_S_BINDING_HAS_NO_AUTH; pub const RPC_S_UNKNOWN_AUTHN_SERVICE = RPC_STATUS.RPC_S_UNKNOWN_AUTHN_SERVICE; pub const RPC_S_UNKNOWN_AUTHN_LEVEL = RPC_STATUS.RPC_S_UNKNOWN_AUTHN_LEVEL; pub const RPC_S_INVALID_AUTH_IDENTITY = RPC_STATUS.RPC_S_INVALID_AUTH_IDENTITY; pub const RPC_S_UNKNOWN_AUTHZ_SERVICE = RPC_STATUS.RPC_S_UNKNOWN_AUTHZ_SERVICE; pub const EPT_S_INVALID_ENTRY = RPC_STATUS.EPT_S_INVALID_ENTRY; pub const EPT_S_CANT_PERFORM_OP = RPC_STATUS.EPT_S_CANT_PERFORM_OP; pub const EPT_S_NOT_REGISTERED = RPC_STATUS.EPT_S_NOT_REGISTERED; pub const RPC_S_NOTHING_TO_EXPORT = RPC_STATUS.RPC_S_NOTHING_TO_EXPORT; pub const RPC_S_INCOMPLETE_NAME = RPC_STATUS.RPC_S_INCOMPLETE_NAME; pub const RPC_S_INVALID_VERS_OPTION = RPC_STATUS.RPC_S_INVALID_VERS_OPTION; pub const RPC_S_NO_MORE_MEMBERS = RPC_STATUS.RPC_S_NO_MORE_MEMBERS; pub const RPC_S_NOT_ALL_OBJS_UNEXPORTED = RPC_STATUS.RPC_S_NOT_ALL_OBJS_UNEXPORTED; pub const RPC_S_INTERFACE_NOT_FOUND = RPC_STATUS.RPC_S_INTERFACE_NOT_FOUND; pub const RPC_S_ENTRY_ALREADY_EXISTS = RPC_STATUS.RPC_S_ENTRY_ALREADY_EXISTS; pub const RPC_S_ENTRY_NOT_FOUND = RPC_STATUS.RPC_S_ENTRY_NOT_FOUND; pub const RPC_S_NAME_SERVICE_UNAVAILABLE = RPC_STATUS.RPC_S_NAME_SERVICE_UNAVAILABLE; pub const RPC_S_INVALID_NAF_ID = RPC_STATUS.RPC_S_INVALID_NAF_ID; pub const RPC_S_CANNOT_SUPPORT = RPC_STATUS.RPC_S_CANNOT_SUPPORT; pub const RPC_S_NO_CONTEXT_AVAILABLE = RPC_STATUS.RPC_S_NO_CONTEXT_AVAILABLE; pub const RPC_S_INTERNAL_ERROR = RPC_STATUS.RPC_S_INTERNAL_ERROR; pub const RPC_S_ZERO_DIVIDE = RPC_STATUS.RPC_S_ZERO_DIVIDE; pub const RPC_S_ADDRESS_ERROR = RPC_STATUS.RPC_S_ADDRESS_ERROR; pub const RPC_S_FP_DIV_ZERO = RPC_STATUS.RPC_S_FP_DIV_ZERO; pub const RPC_S_FP_UNDERFLOW = RPC_STATUS.RPC_S_FP_UNDERFLOW; pub const RPC_S_FP_OVERFLOW = RPC_STATUS.RPC_S_FP_OVERFLOW; pub const RPC_S_CALL_IN_PROGRESS = RPC_STATUS.RPC_S_CALL_IN_PROGRESS; pub const RPC_S_NO_MORE_BINDINGS = RPC_STATUS.RPC_S_NO_MORE_BINDINGS; pub const RPC_S_NO_INTERFACES = RPC_STATUS.RPC_S_NO_INTERFACES; pub const RPC_S_CALL_CANCELLED = RPC_STATUS.RPC_S_CALL_CANCELLED; pub const RPC_S_BINDING_INCOMPLETE = RPC_STATUS.RPC_S_BINDING_INCOMPLETE; pub const RPC_S_COMM_FAILURE = RPC_STATUS.RPC_S_COMM_FAILURE; pub const RPC_S_UNSUPPORTED_AUTHN_LEVEL = RPC_STATUS.RPC_S_UNSUPPORTED_AUTHN_LEVEL; pub const RPC_S_NO_PRINC_NAME = RPC_STATUS.RPC_S_NO_PRINC_NAME; pub const RPC_S_NOT_RPC_ERROR = RPC_STATUS.RPC_S_NOT_RPC_ERROR; pub const RPC_S_UUID_LOCAL_ONLY = RPC_STATUS.RPC_S_UUID_LOCAL_ONLY; pub const RPC_S_SEC_PKG_ERROR = RPC_STATUS.RPC_S_SEC_PKG_ERROR; pub const RPC_S_NOT_CANCELLED = RPC_STATUS.RPC_S_NOT_CANCELLED; pub const RPC_S_COOKIE_AUTH_FAILED = RPC_STATUS.RPC_S_COOKIE_AUTH_FAILED; pub const RPC_S_DO_NOT_DISTURB = RPC_STATUS.RPC_S_DO_NOT_DISTURB; pub const RPC_S_SYSTEM_HANDLE_COUNT_EXCEEDED = RPC_STATUS.RPC_S_SYSTEM_HANDLE_COUNT_EXCEEDED; pub const RPC_S_SYSTEM_HANDLE_TYPE_MISMATCH = RPC_STATUS.RPC_S_SYSTEM_HANDLE_TYPE_MISMATCH; pub const RPC_S_GROUP_MEMBER_NOT_FOUND = RPC_STATUS.RPC_S_GROUP_MEMBER_NOT_FOUND; pub const EPT_S_CANT_CREATE = RPC_STATUS.EPT_S_CANT_CREATE; pub const RPC_S_INVALID_OBJECT = RPC_STATUS.RPC_S_INVALID_OBJECT; pub const RPC_S_SEND_INCOMPLETE = RPC_STATUS.RPC_S_SEND_INCOMPLETE; pub const RPC_S_INVALID_ASYNC_HANDLE = RPC_STATUS.RPC_S_INVALID_ASYNC_HANDLE; pub const RPC_S_INVALID_ASYNC_CALL = RPC_STATUS.RPC_S_INVALID_ASYNC_CALL; pub const RPC_S_ENTRY_TYPE_MISMATCH = RPC_STATUS.RPC_S_ENTRY_TYPE_MISMATCH; pub const RPC_S_NOT_ALL_OBJS_EXPORTED = RPC_STATUS.RPC_S_NOT_ALL_OBJS_EXPORTED; pub const RPC_S_INTERFACE_NOT_EXPORTED = RPC_STATUS.RPC_S_INTERFACE_NOT_EXPORTED; pub const RPC_S_PROFILE_NOT_ADDED = RPC_STATUS.RPC_S_PROFILE_NOT_ADDED; pub const RPC_S_PRF_ELT_NOT_ADDED = RPC_STATUS.RPC_S_PRF_ELT_NOT_ADDED; pub const RPC_S_PRF_ELT_NOT_REMOVED = RPC_STATUS.RPC_S_PRF_ELT_NOT_REMOVED; pub const RPC_S_GRP_ELT_NOT_ADDED = RPC_STATUS.RPC_S_GRP_ELT_NOT_ADDED; pub const RPC_S_GRP_ELT_NOT_REMOVED = RPC_STATUS.RPC_S_GRP_ELT_NOT_REMOVED; pub const GROUP_NAME_SYNTAX = enum(u32) { EFAULT = 0, CE = 3, }; pub const RPC_C_NS_SYNTAX_DEFAULT = GROUP_NAME_SYNTAX.EFAULT; pub const RPC_C_NS_SYNTAX_DCE = GROUP_NAME_SYNTAX.CE; pub const SEC_WINNT_AUTH_IDENTITY = enum(u32) { ANSI = 1, UNICODE = 2, }; pub const SEC_WINNT_AUTH_IDENTITY_ANSI = SEC_WINNT_AUTH_IDENTITY.ANSI; pub const SEC_WINNT_AUTH_IDENTITY_UNICODE = SEC_WINNT_AUTH_IDENTITY.UNICODE; pub const RPC_BINDING_HANDLE_OPTIONS_FLAGS = enum(u32) { NONCAUSAL = 1, DONTLINGER = 2, _, pub fn initFlags(o: struct { NONCAUSAL: u1 = 0, DONTLINGER: u1 = 0, }) RPC_BINDING_HANDLE_OPTIONS_FLAGS { return @as(RPC_BINDING_HANDLE_OPTIONS_FLAGS, @enumFromInt((if (o.NONCAUSAL == 1) @intFromEnum(RPC_BINDING_HANDLE_OPTIONS_FLAGS.NONCAUSAL) else 0) | (if (o.DONTLINGER == 1) @intFromEnum(RPC_BINDING_HANDLE_OPTIONS_FLAGS.DONTLINGER) else 0))); } }; pub const RPC_BHO_NONCAUSAL = RPC_BINDING_HANDLE_OPTIONS_FLAGS.NONCAUSAL; pub const RPC_BHO_DONTLINGER = RPC_BINDING_HANDLE_OPTIONS_FLAGS.DONTLINGER; pub const RPC_BINDING_VECTOR = extern struct { Count: u32, BindingH: [1]?*anyopaque, }; pub const UUID_VECTOR = extern struct { Count: u32, Uuid: [1]?*Guid, }; pub const RPC_IF_ID = extern struct { Uuid: Guid, VersMajor: u16, VersMinor: u16, }; pub const RPC_PROTSEQ_VECTORA = extern struct { Count: u32, Protseq: [1]?*u8, }; pub const RPC_PROTSEQ_VECTORW = extern struct { Count: u32, Protseq: [1]?*u16, }; pub const RPC_POLICY = extern struct { Length: u32, EndpointFlags: u32, NICFlags: u32, }; pub const RPC_OBJECT_INQ_FN = switch (@import("builtin").zig_backend) { .stage1 => fn ( ObjectUuid: ?*Guid, TypeUuid: ?*Guid, Status: ?*RPC_STATUS, ) callconv(@import("std").os.windows.WINAPI) void, else => *const fn ( ObjectUuid: ?*Guid, TypeUuid: ?*Guid, Status: ?*RPC_STATUS, ) callconv(@import("std").os.windows.WINAPI) void, }; pub const RPC_IF_CALLBACK_FN = switch (@import("builtin").zig_backend) { .stage1 => fn ( InterfaceUuid: ?*anyopaque, Context: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) RPC_STATUS, else => *const fn ( InterfaceUuid: ?*anyopaque, Context: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) RPC_STATUS, }; pub const RPC_SECURITY_CALLBACK_FN = switch (@import("builtin").zig_backend) { .stage1 => fn ( Context: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) void, else => *const fn ( Context: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) void, }; pub const RPC_STATS_VECTOR = extern struct { Count: u32, Stats: [1]u32, }; pub const RPC_IF_ID_VECTOR = extern struct { Count: u32, IfId: [1]?*RPC_IF_ID, }; pub const RPC_SECURITY_QOS = extern struct { Version: u32, Capabilities: RPC_C_QOS_CAPABILITIES, IdentityTracking: RPC_C_QOS_IDENTITY, ImpersonationType: RPC_C_IMP_LEVEL, }; pub const SEC_WINNT_AUTH_IDENTITY_W = extern struct { User: ?*u16, UserLength: u32, Domain: ?*u16, DomainLength: u32, Password: ?*u16, PasswordLength: u32, Flags: SEC_WINNT_AUTH_IDENTITY, }; pub const SEC_WINNT_AUTH_IDENTITY_A = extern struct { User: ?*u8, UserLength: u32, Domain: ?*u8, DomainLength: u32, Password: ?*u8, PasswordLength: u32, Flags: SEC_WINNT_AUTH_IDENTITY, }; pub const RPC_HTTP_TRANSPORT_CREDENTIALS_W = extern struct { TransportCredentials: ?*SEC_WINNT_AUTH_IDENTITY_W, Flags: RPC_C_HTTP_FLAGS, AuthenticationTarget: RPC_C_HTTP_AUTHN_TARGET, NumberOfAuthnSchemes: u32, AuthnSchemes: ?*u32, ServerCertificateSubject: ?*u16, }; pub const RPC_HTTP_TRANSPORT_CREDENTIALS_A = extern struct { TransportCredentials: ?*SEC_WINNT_AUTH_IDENTITY_A, Flags: RPC_C_HTTP_FLAGS, AuthenticationTarget: RPC_C_HTTP_AUTHN_TARGET, NumberOfAuthnSchemes: u32, AuthnSchemes: ?*u32, ServerCertificateSubject: ?*u8, }; pub const RPC_HTTP_TRANSPORT_CREDENTIALS_V2_W = extern struct { TransportCredentials: ?*SEC_WINNT_AUTH_IDENTITY_W, Flags: RPC_C_HTTP_FLAGS, AuthenticationTarget: RPC_C_HTTP_AUTHN_TARGET, NumberOfAuthnSchemes: u32, AuthnSchemes: ?*u32, ServerCertificateSubject: ?*u16, ProxyCredentials: ?*SEC_WINNT_AUTH_IDENTITY_W, NumberOfProxyAuthnSchemes: u32, ProxyAuthnSchemes: ?*u32, }; pub const RPC_HTTP_TRANSPORT_CREDENTIALS_V2_A = extern struct { TransportCredentials: ?*SEC_WINNT_AUTH_IDENTITY_A, Flags: RPC_C_HTTP_FLAGS, AuthenticationTarget: RPC_C_HTTP_AUTHN_TARGET, NumberOfAuthnSchemes: u32, AuthnSchemes: ?*u32, ServerCertificateSubject: ?*u8, ProxyCredentials: ?*SEC_WINNT_AUTH_IDENTITY_A, NumberOfProxyAuthnSchemes: u32, ProxyAuthnSchemes: ?*u32, }; pub const RPC_HTTP_TRANSPORT_CREDENTIALS_V3_W = extern struct { TransportCredentials: ?*anyopaque, Flags: RPC_C_HTTP_FLAGS, AuthenticationTarget: RPC_C_HTTP_AUTHN_TARGET, NumberOfAuthnSchemes: u32, AuthnSchemes: ?*u32, ServerCertificateSubject: ?*u16, ProxyCredentials: ?*anyopaque, NumberOfProxyAuthnSchemes: u32, ProxyAuthnSchemes: ?*u32, }; pub const RPC_HTTP_TRANSPORT_CREDENTIALS_V3_A = extern struct { TransportCredentials: ?*anyopaque, Flags: RPC_C_HTTP_FLAGS, AuthenticationTarget: RPC_C_HTTP_AUTHN_TARGET, NumberOfAuthnSchemes: u32, AuthnSchemes: ?*u32, ServerCertificateSubject: ?*u8, ProxyCredentials: ?*anyopaque, NumberOfProxyAuthnSchemes: u32, ProxyAuthnSchemes: ?*u32, }; pub const RPC_SECURITY_QOS_V2_W = extern struct { Version: u32, Capabilities: RPC_C_QOS_CAPABILITIES, IdentityTracking: RPC_C_QOS_IDENTITY, ImpersonationType: RPC_C_IMP_LEVEL, AdditionalSecurityInfoType: RPC_C_AUTHN_INFO_TYPE, u: extern union { HttpCredentials: ?*RPC_HTTP_TRANSPORT_CREDENTIALS_W, }, }; pub const RPC_SECURITY_QOS_V2_A = extern struct { Version: u32, Capabilities: RPC_C_QOS_CAPABILITIES, IdentityTracking: RPC_C_QOS_IDENTITY, ImpersonationType: RPC_C_IMP_LEVEL, AdditionalSecurityInfoType: RPC_C_AUTHN_INFO_TYPE, u: extern union { HttpCredentials: ?*RPC_HTTP_TRANSPORT_CREDENTIALS_A, }, }; pub const RPC_SECURITY_QOS_V3_W = extern struct { Version: u32, Capabilities: RPC_C_QOS_CAPABILITIES, IdentityTracking: RPC_C_QOS_IDENTITY, ImpersonationType: RPC_C_IMP_LEVEL, AdditionalSecurityInfoType: RPC_C_AUTHN_INFO_TYPE, u: extern union { HttpCredentials: ?*RPC_HTTP_TRANSPORT_CREDENTIALS_W, }, Sid: ?*anyopaque, }; pub const RPC_SECURITY_QOS_V3_A = extern struct { Version: u32, Capabilities: RPC_C_QOS_CAPABILITIES, IdentityTracking: RPC_C_QOS_IDENTITY, ImpersonationType: RPC_C_IMP_LEVEL, AdditionalSecurityInfoType: RPC_C_AUTHN_INFO_TYPE, u: extern union { HttpCredentials: ?*RPC_HTTP_TRANSPORT_CREDENTIALS_A, }, Sid: ?*anyopaque, }; pub const RPC_SECURITY_QOS_V4_W = extern struct { Version: u32, Capabilities: RPC_C_QOS_CAPABILITIES, IdentityTracking: RPC_C_QOS_IDENTITY, ImpersonationType: RPC_C_IMP_LEVEL, AdditionalSecurityInfoType: RPC_C_AUTHN_INFO_TYPE, u: extern union { HttpCredentials: ?*RPC_HTTP_TRANSPORT_CREDENTIALS_W, }, Sid: ?*anyopaque, EffectiveOnly: u32, }; pub const RPC_SECURITY_QOS_V4_A = extern struct { Version: u32, Capabilities: RPC_C_QOS_CAPABILITIES, IdentityTracking: RPC_C_QOS_IDENTITY, ImpersonationType: RPC_C_IMP_LEVEL, AdditionalSecurityInfoType: RPC_C_AUTHN_INFO_TYPE, u: extern union { HttpCredentials: ?*RPC_HTTP_TRANSPORT_CREDENTIALS_A, }, Sid: ?*anyopaque, EffectiveOnly: u32, }; pub const RPC_SECURITY_QOS_V5_W = extern struct { Version: u32, Capabilities: RPC_C_QOS_CAPABILITIES, IdentityTracking: RPC_C_QOS_IDENTITY, ImpersonationType: RPC_C_IMP_LEVEL, AdditionalSecurityInfoType: RPC_C_AUTHN_INFO_TYPE, u: extern union { HttpCredentials: ?*RPC_HTTP_TRANSPORT_CREDENTIALS_W, }, Sid: ?*anyopaque, EffectiveOnly: u32, ServerSecurityDescriptor: ?*anyopaque, }; pub const RPC_SECURITY_QOS_V5_A = extern struct { Version: u32, Capabilities: RPC_C_QOS_CAPABILITIES, IdentityTracking: RPC_C_QOS_IDENTITY, ImpersonationType: RPC_C_IMP_LEVEL, AdditionalSecurityInfoType: RPC_C_AUTHN_INFO_TYPE, u: extern union { HttpCredentials: ?*RPC_HTTP_TRANSPORT_CREDENTIALS_A, }, Sid: ?*anyopaque, EffectiveOnly: u32, ServerSecurityDescriptor: ?*anyopaque, }; pub const RPC_BINDING_HANDLE_TEMPLATE_V1_W = extern struct { Version: u32, Flags: u32, ProtocolSequence: u32, NetworkAddress: ?*u16, StringEndpoint: ?*u16, u1: extern union { Reserved: ?*u16, }, ObjectUuid: Guid, }; pub const RPC_BINDING_HANDLE_TEMPLATE_V1_A = extern struct { Version: u32, Flags: u32, ProtocolSequence: u32, NetworkAddress: ?*u8, StringEndpoint: ?*u8, u1: extern union { Reserved: ?*u8, }, ObjectUuid: Guid, }; pub const RPC_BINDING_HANDLE_SECURITY_V1_W = extern struct { Version: u32, ServerPrincName: ?*u16, AuthnLevel: u32, AuthnSvc: u32, AuthIdentity: ?*SEC_WINNT_AUTH_IDENTITY_W, SecurityQos: ?*RPC_SECURITY_QOS, }; pub const RPC_BINDING_HANDLE_SECURITY_V1_A = extern struct { Version: u32, ServerPrincName: ?*u8, AuthnLevel: u32, AuthnSvc: u32, AuthIdentity: ?*SEC_WINNT_AUTH_IDENTITY_A, SecurityQos: ?*RPC_SECURITY_QOS, }; pub const RPC_BINDING_HANDLE_OPTIONS_V1 = extern struct { Version: u32, Flags: RPC_BINDING_HANDLE_OPTIONS_FLAGS, ComTimeout: u32, CallTimeout: u32, }; pub const RPC_HTTP_REDIRECTOR_STAGE = enum(i32) { REDIRECT = 1, ACCESS_1 = 2, SESSION = 3, ACCESS_2 = 4, INTERFACE = 5, }; pub const RPCHTTP_RS_REDIRECT = RPC_HTTP_REDIRECTOR_STAGE.REDIRECT; pub const RPCHTTP_RS_ACCESS_1 = RPC_HTTP_REDIRECTOR_STAGE.ACCESS_1; pub const RPCHTTP_RS_SESSION = RPC_HTTP_REDIRECTOR_STAGE.SESSION; pub const RPCHTTP_RS_ACCESS_2 = RPC_HTTP_REDIRECTOR_STAGE.ACCESS_2; pub const RPCHTTP_RS_INTERFACE = RPC_HTTP_REDIRECTOR_STAGE.INTERFACE; pub const RPC_NEW_HTTP_PROXY_CHANNEL = switch (@import("builtin").zig_backend) { .stage1 => fn ( RedirectorStage: RPC_HTTP_REDIRECTOR_STAGE, ServerName: ?*u16, ServerPort: ?*u16, RemoteUser: ?*u16, AuthType: ?*u16, ResourceUuid: ?*anyopaque, SessionId: ?*anyopaque, Interface: ?*anyopaque, Reserved: ?*anyopaque, Flags: u32, NewServerName: ?*?*u16, NewServerPort: ?*?*u16, ) callconv(@import("std").os.windows.WINAPI) RPC_STATUS, else => *const fn ( RedirectorStage: RPC_HTTP_REDIRECTOR_STAGE, ServerName: ?*u16, ServerPort: ?*u16, RemoteUser: ?*u16, AuthType: ?*u16, ResourceUuid: ?*anyopaque, SessionId: ?*anyopaque, Interface: ?*anyopaque, Reserved: ?*anyopaque, Flags: u32, NewServerName: ?*?*u16, NewServerPort: ?*?*u16, ) callconv(@import("std").os.windows.WINAPI) RPC_STATUS, }; pub const RPC_HTTP_PROXY_FREE_STRING = switch (@import("builtin").zig_backend) { .stage1 => fn ( String: ?*u16, ) callconv(@import("std").os.windows.WINAPI) void, else => *const fn ( String: ?*u16, ) callconv(@import("std").os.windows.WINAPI) void, }; pub const RPC_AUTH_KEY_RETRIEVAL_FN = switch (@import("builtin").zig_backend) { .stage1 => fn ( Arg: ?*anyopaque, ServerPrincName: ?*u16, KeyVer: u32, Key: ?*?*anyopaque, Status: ?*RPC_STATUS, ) callconv(@import("std").os.windows.WINAPI) void, else => *const fn ( Arg: ?*anyopaque, ServerPrincName: ?*u16, KeyVer: u32, Key: ?*?*anyopaque, Status: ?*RPC_STATUS, ) callconv(@import("std").os.windows.WINAPI) void, }; pub const RPC_CLIENT_INFORMATION1 = extern struct { UserName: ?*u8, ComputerName: ?*u8, Privilege: u16, AuthFlags: u32, }; pub const RPC_MGMT_AUTHORIZATION_FN = switch (@import("builtin").zig_backend) { .stage1 => fn ( ClientBinding: ?*anyopaque, RequestedMgmtOperation: u32, Status: ?*RPC_STATUS, ) callconv(@import("std").os.windows.WINAPI) i32, else => *const fn ( ClientBinding: ?*anyopaque, RequestedMgmtOperation: u32, Status: ?*RPC_STATUS, ) callconv(@import("std").os.windows.WINAPI) i32, }; pub const RPC_ENDPOINT_TEMPLATEW = extern struct { Version: u32, ProtSeq: ?*u16, Endpoint: ?*u16, SecurityDescriptor: ?*anyopaque, Backlog: u32, }; pub const RPC_ENDPOINT_TEMPLATEA = extern struct { Version: u32, ProtSeq: ?*u8, Endpoint: ?*u8, SecurityDescriptor: ?*anyopaque, Backlog: u32, }; pub const RPC_INTERFACE_TEMPLATEA = extern struct { Version: u32, IfSpec: ?*anyopaque, MgrTypeUuid: ?*Guid, MgrEpv: ?*anyopaque, Flags: u32, MaxCalls: u32, MaxRpcSize: u32, IfCallback: ?RPC_IF_CALLBACK_FN, UuidVector: ?*UUID_VECTOR, Annotation: ?*u8, SecurityDescriptor: ?*anyopaque, }; pub const RPC_INTERFACE_TEMPLATEW = extern struct { Version: u32, IfSpec: ?*anyopaque, MgrTypeUuid: ?*Guid, MgrEpv: ?*anyopaque, Flags: u32, MaxCalls: u32, MaxRpcSize: u32, IfCallback: ?RPC_IF_CALLBACK_FN, UuidVector: ?*UUID_VECTOR, Annotation: ?*u16, SecurityDescriptor: ?*anyopaque, }; pub const RPC_INTERFACE_GROUP_IDLE_CALLBACK_FN = switch (@import("builtin").zig_backend) { .stage1 => fn ( IfGroup: ?*anyopaque, IdleCallbackContext: ?*anyopaque, IsGroupIdle: u32, ) callconv(@import("std").os.windows.WINAPI) void, else => *const fn ( IfGroup: ?*anyopaque, IdleCallbackContext: ?*anyopaque, IsGroupIdle: u32, ) callconv(@import("std").os.windows.WINAPI) void, }; pub const RPC_VERSION = extern struct { MajorVersion: u16, MinorVersion: u16, }; pub const RPC_SYNTAX_IDENTIFIER = extern struct { SyntaxGUID: Guid, SyntaxVersion: RPC_VERSION, }; pub const RPC_MESSAGE = extern struct { Handle: ?*anyopaque, DataRepresentation: u32, Buffer: ?*anyopaque, BufferLength: u32, ProcNum: u32, TransferSyntax: ?*RPC_SYNTAX_IDENTIFIER, RpcInterfaceInformation: ?*anyopaque, ReservedForRuntime: ?*anyopaque, ManagerEpv: ?*anyopaque, ImportContext: ?*anyopaque, RpcFlags: u32, }; pub const RPC_FORWARD_FUNCTION = switch (@import("builtin").zig_backend) { .stage1 => fn ( InterfaceId: ?*Guid, InterfaceVersion: ?*RPC_VERSION, ObjectId: ?*Guid, Rpcpro: ?*u8, ppDestEndpoint: ?*?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) RPC_STATUS, else => *const fn ( InterfaceId: ?*Guid, InterfaceVersion: ?*RPC_VERSION, ObjectId: ?*Guid, Rpcpro: ?*u8, ppDestEndpoint: ?*?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) RPC_STATUS, }; pub const RPC_ADDRESS_CHANGE_TYPE = enum(i32) { NOT_LOADED = 1, LOADED = 2, ADDRESS_CHANGE = 3, }; pub const PROTOCOL_NOT_LOADED = RPC_ADDRESS_CHANGE_TYPE.NOT_LOADED; pub const PROTOCOL_LOADED = RPC_ADDRESS_CHANGE_TYPE.LOADED; pub const PROTOCOL_ADDRESS_CHANGE = RPC_ADDRESS_CHANGE_TYPE.ADDRESS_CHANGE; pub const RPC_ADDRESS_CHANGE_FN = switch (@import("builtin").zig_backend) { .stage1 => fn ( arg: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) void, else => *const fn ( arg: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) void, }; pub const RPC_DISPATCH_FUNCTION = switch (@import("builtin").zig_backend) { .stage1 => fn ( Message: ?*RPC_MESSAGE, ) callconv(@import("std").os.windows.WINAPI) void, else => *const fn ( Message: ?*RPC_MESSAGE, ) callconv(@import("std").os.windows.WINAPI) void, }; pub const RPC_DISPATCH_TABLE = extern struct { DispatchTableCount: u32, DispatchTable: ?RPC_DISPATCH_FUNCTION, Reserved: isize, }; pub const RPC_PROTSEQ_ENDPOINT = extern struct { RpcProtocolSequence: ?*u8, Endpoint: ?*u8, }; pub const RPC_SERVER_INTERFACE = extern struct { Length: u32, InterfaceId: RPC_SYNTAX_IDENTIFIER, TransferSyntax: RPC_SYNTAX_IDENTIFIER, DispatchTable: ?*RPC_DISPATCH_TABLE, RpcProtseqEndpointCount: u32, RpcProtseqEndpoint: ?*RPC_PROTSEQ_ENDPOINT, DefaultManagerEpv: ?*anyopaque, InterpreterInfo: ?*const anyopaque, Flags: u32, }; pub const RPC_CLIENT_INTERFACE = extern struct { Length: u32, InterfaceId: RPC_SYNTAX_IDENTIFIER, TransferSyntax: RPC_SYNTAX_IDENTIFIER, DispatchTable: ?*RPC_DISPATCH_TABLE, RpcProtseqEndpointCount: u32, RpcProtseqEndpoint: ?*RPC_PROTSEQ_ENDPOINT, Reserved: usize, InterpreterInfo: ?*const anyopaque, Flags: u32, }; pub const LRPC_SYSTEM_HANDLE_MARSHAL_DIRECTION = enum(i32) { Marshal = 0, Unmarshal = 1, }; pub const MarshalDirectionMarshal = LRPC_SYSTEM_HANDLE_MARSHAL_DIRECTION.Marshal; pub const MarshalDirectionUnmarshal = LRPC_SYSTEM_HANDLE_MARSHAL_DIRECTION.Unmarshal; pub const PRPC_RUNDOWN = switch (@import("builtin").zig_backend) { .stage1 => fn ( AssociationContext: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) void, else => *const fn ( AssociationContext: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) void, }; pub const RPC_SEC_CONTEXT_KEY_INFO = extern struct { EncryptAlgorithm: u32, KeySize: u32, SignatureAlgorithm: u32, }; pub const RPC_TRANSFER_SYNTAX = extern struct { Uuid: Guid, VersMajor: u16, VersMinor: u16, }; pub const RPCLT_PDU_FILTER_FUNC = switch (@import("builtin").zig_backend) { .stage1 => fn ( Buffer: ?*anyopaque, BufferLength: u32, fDatagram: i32, ) callconv(@import("std").os.windows.WINAPI) void, else => *const fn ( Buffer: ?*anyopaque, BufferLength: u32, fDatagram: i32, ) callconv(@import("std").os.windows.WINAPI) void, }; pub const RPC_SETFILTER_FUNC = switch (@import("builtin").zig_backend) { .stage1 => fn ( pfnFilter: ?RPCLT_PDU_FILTER_FUNC, ) callconv(@import("std").os.windows.WINAPI) void, else => *const fn ( pfnFilter: ?RPCLT_PDU_FILTER_FUNC, ) callconv(@import("std").os.windows.WINAPI) void, }; pub const RPC_BLOCKING_FN = switch (@import("builtin").zig_backend) { .stage1 => fn ( hWnd: ?*anyopaque, Context: ?*anyopaque, hSyncEvent: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) RPC_STATUS, else => *const fn ( hWnd: ?*anyopaque, Context: ?*anyopaque, hSyncEvent: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) RPC_STATUS, }; pub const RPC_C_OPT_COOKIE_AUTH_DESCRIPTOR = extern struct { BufferSize: u32, Buffer: ?PSTR, }; pub const RDR_CALLOUT_STATE = extern struct { LastError: RPC_STATUS, LastEEInfo: ?*anyopaque, LastCalledStage: RPC_HTTP_REDIRECTOR_STAGE, ServerName: ?*u16, ServerPort: ?*u16, RemoteUser: ?*u16, AuthType: ?*u16, ResourceTypePresent: u8, SessionIdPresent: u8, InterfacePresent: u8, ResourceType: Guid, SessionId: Guid, Interface: RPC_SYNTAX_IDENTIFIER, CertContext: ?*anyopaque, }; pub const I_RpcProxyIsValidMachineFn = switch (@import("builtin").zig_backend) { .stage1 => fn ( Machine: ?*u16, DotMachine: ?*u16, PortNumber: u32, ) callconv(@import("std").os.windows.WINAPI) RPC_STATUS, else => *const fn ( Machine: ?*u16, DotMachine: ?*u16, PortNumber: u32, ) callconv(@import("std").os.windows.WINAPI) RPC_STATUS, }; pub const I_RpcProxyGetClientAddressFn = switch (@import("builtin").zig_backend) { .stage1 => fn ( Context: ?*anyopaque, Buffer: ?PSTR, BufferLength: ?*u32, ) callconv(@import("std").os.windows.WINAPI) RPC_STATUS, else => *const fn ( Context: ?*anyopaque, Buffer: ?PSTR, BufferLength: ?*u32, ) callconv(@import("std").os.windows.WINAPI) RPC_STATUS, }; pub const I_RpcProxyGetConnectionTimeoutFn = switch (@import("builtin").zig_backend) { .stage1 => fn ( ConnectionTimeout: ?*u32, ) callconv(@import("std").os.windows.WINAPI) RPC_STATUS, else => *const fn ( ConnectionTimeout: ?*u32, ) callconv(@import("std").os.windows.WINAPI) RPC_STATUS, }; pub const I_RpcPerformCalloutFn = switch (@import("builtin").zig_backend) { .stage1 => fn ( Context: ?*anyopaque, CallOutState: ?*RDR_CALLOUT_STATE, Stage: RPC_HTTP_REDIRECTOR_STAGE, ) callconv(@import("std").os.windows.WINAPI) RPC_STATUS, else => *const fn ( Context: ?*anyopaque, CallOutState: ?*RDR_CALLOUT_STATE, Stage: RPC_HTTP_REDIRECTOR_STAGE, ) callconv(@import("std").os.windows.WINAPI) RPC_STATUS, }; pub const I_RpcFreeCalloutStateFn = switch (@import("builtin").zig_backend) { .stage1 => fn ( CallOutState: ?*RDR_CALLOUT_STATE, ) callconv(@import("std").os.windows.WINAPI) void, else => *const fn ( CallOutState: ?*RDR_CALLOUT_STATE, ) callconv(@import("std").os.windows.WINAPI) void, }; pub const I_RpcProxyGetClientSessionAndResourceUUID = switch (@import("builtin").zig_backend) { .stage1 => fn ( Context: ?*anyopaque, SessionIdPresent: ?*i32, SessionId: ?*Guid, ResourceIdPresent: ?*i32, ResourceId: ?*Guid, ) callconv(@import("std").os.windows.WINAPI) RPC_STATUS, else => *const fn ( Context: ?*anyopaque, SessionIdPresent: ?*i32, SessionId: ?*Guid, ResourceIdPresent: ?*i32, ResourceId: ?*Guid, ) callconv(@import("std").os.windows.WINAPI) RPC_STATUS, }; pub const I_RpcProxyFilterIfFn = switch (@import("builtin").zig_backend) { .stage1 => fn ( Context: ?*anyopaque, IfUuid: ?*Guid, IfMajorVersion: u16, fAllow: ?*i32, ) callconv(@import("std").os.windows.WINAPI) RPC_STATUS, else => *const fn ( Context: ?*anyopaque, IfUuid: ?*Guid, IfMajorVersion: u16, fAllow: ?*i32, ) callconv(@import("std").os.windows.WINAPI) RPC_STATUS, }; pub const RpcProxyPerfCounters = enum(i32) { CurrentUniqueUser = 1, BackEndConnectionAttempts = 2, BackEndConnectionFailed = 3, RequestsPerSecond = 4, IncomingConnections = 5, IncomingBandwidth = 6, OutgoingBandwidth = 7, AttemptedLbsDecisions = 8, FailedLbsDecisions = 9, AttemptedLbsMessages = 10, FailedLbsMessages = 11, LastCounter = 12, }; pub const RpcCurrentUniqueUser = RpcProxyPerfCounters.CurrentUniqueUser; pub const RpcBackEndConnectionAttempts = RpcProxyPerfCounters.BackEndConnectionAttempts; pub const RpcBackEndConnectionFailed = RpcProxyPerfCounters.BackEndConnectionFailed; pub const RpcRequestsPerSecond = RpcProxyPerfCounters.RequestsPerSecond; pub const RpcIncomingConnections = RpcProxyPerfCounters.IncomingConnections; pub const RpcIncomingBandwidth = RpcProxyPerfCounters.IncomingBandwidth; pub const RpcOutgoingBandwidth = RpcProxyPerfCounters.OutgoingBandwidth; pub const RpcAttemptedLbsDecisions = RpcProxyPerfCounters.AttemptedLbsDecisions; pub const RpcFailedLbsDecisions = RpcProxyPerfCounters.FailedLbsDecisions; pub const RpcAttemptedLbsMessages = RpcProxyPerfCounters.AttemptedLbsMessages; pub const RpcFailedLbsMessages = RpcProxyPerfCounters.FailedLbsMessages; pub const RpcLastCounter = RpcProxyPerfCounters.LastCounter; pub const I_RpcProxyUpdatePerfCounterFn = switch (@import("builtin").zig_backend) { .stage1 => fn ( Counter: RpcProxyPerfCounters, ModifyTrend: i32, Size: u32, ) callconv(@import("std").os.windows.WINAPI) void, else => *const fn ( Counter: RpcProxyPerfCounters, ModifyTrend: i32, Size: u32, ) callconv(@import("std").os.windows.WINAPI) void, }; pub const I_RpcProxyUpdatePerfCounterBackendServerFn = switch (@import("builtin").zig_backend) { .stage1 => fn ( MachineName: ?*u16, IsConnectEvent: i32, ) callconv(@import("std").os.windows.WINAPI) void, else => *const fn ( MachineName: ?*u16, IsConnectEvent: i32, ) callconv(@import("std").os.windows.WINAPI) void, }; pub const I_RpcProxyCallbackInterface = extern struct { IsValidMachineFn: ?I_RpcProxyIsValidMachineFn, GetClientAddressFn: ?I_RpcProxyGetClientAddressFn, GetConnectionTimeoutFn: ?I_RpcProxyGetConnectionTimeoutFn, PerformCalloutFn: ?I_RpcPerformCalloutFn, FreeCalloutStateFn: ?I_RpcFreeCalloutStateFn, GetClientSessionAndResourceUUIDFn: ?I_RpcProxyGetClientSessionAndResourceUUID, ProxyFilterIfFn: ?I_RpcProxyFilterIfFn, RpcProxyUpdatePerfCounterFn: ?I_RpcProxyUpdatePerfCounterFn, RpcProxyUpdatePerfCounterBackendServerFn: ?I_RpcProxyUpdatePerfCounterBackendServerFn, }; pub const RPC_NOTIFICATION_TYPES = enum(i32) { None = 0, Event = 1, Apc = 2, Ioc = 3, Hwnd = 4, Callback = 5, }; pub const RpcNotificationTypeNone = RPC_NOTIFICATION_TYPES.None; pub const RpcNotificationTypeEvent = RPC_NOTIFICATION_TYPES.Event; pub const RpcNotificationTypeApc = RPC_NOTIFICATION_TYPES.Apc; pub const RpcNotificationTypeIoc = RPC_NOTIFICATION_TYPES.Ioc; pub const RpcNotificationTypeHwnd = RPC_NOTIFICATION_TYPES.Hwnd; pub const RpcNotificationTypeCallback = RPC_NOTIFICATION_TYPES.Callback; pub const RPC_ASYNC_EVENT = enum(i32) { CallComplete = 0, SendComplete = 1, ReceiveComplete = 2, ClientDisconnect = 3, ClientCancel = 4, }; pub const RpcCallComplete = RPC_ASYNC_EVENT.CallComplete; pub const RpcSendComplete = RPC_ASYNC_EVENT.SendComplete; pub const RpcReceiveComplete = RPC_ASYNC_EVENT.ReceiveComplete; pub const RpcClientDisconnect = RPC_ASYNC_EVENT.ClientDisconnect; pub const RpcClientCancel = RPC_ASYNC_EVENT.ClientCancel; // TODO: this function pointer causes dependency loop problems, so it's stubbed out pub const PFN_RPCNOTIFICATION_ROUTINE = switch (@import("builtin").zig_backend) { .stage1 => fn () callconv(@import("std").os.windows.WINAPI) void, else => *const fn () callconv(@import("std").os.windows.WINAPI) void, }; pub const RPC_ASYNC_NOTIFICATION_INFO = extern union { APC: extern struct { NotificationRoutine: ?PFN_RPCNOTIFICATION_ROUTINE, hThread: ?HANDLE, }, IOC: extern struct { hIOPort: ?HANDLE, dwNumberOfBytesTransferred: u32, dwCompletionKey: usize, lpOverlapped: ?*OVERLAPPED, }, IntPtr: extern struct { hWnd: ?HWND, Msg: u32, }, hEvent: ?HANDLE, NotificationRoutine: ?PFN_RPCNOTIFICATION_ROUTINE, }; pub const RPC_ASYNC_STATE = extern struct { Size: u32, Signature: u32, Lock: i32, Flags: u32, StubInfo: ?*anyopaque, UserInfo: ?*anyopaque, RuntimeInfo: ?*anyopaque, Event: RPC_ASYNC_EVENT, NotificationType: RPC_NOTIFICATION_TYPES, u: RPC_ASYNC_NOTIFICATION_INFO, Reserved: [4]isize, }; pub const ExtendedErrorParamTypes = enum(i32) { AnsiString = 1, UnicodeString = 2, LongVal = 3, ShortVal = 4, PointerVal = 5, None = 6, Binary = 7, }; pub const eeptAnsiString = ExtendedErrorParamTypes.AnsiString; pub const eeptUnicodeString = ExtendedErrorParamTypes.UnicodeString; pub const eeptLongVal = ExtendedErrorParamTypes.LongVal; pub const eeptShortVal = ExtendedErrorParamTypes.ShortVal; pub const eeptPointerVal = ExtendedErrorParamTypes.PointerVal; pub const eeptNone = ExtendedErrorParamTypes.None; pub const eeptBinary = ExtendedErrorParamTypes.Binary; pub const BinaryParam = extern struct { Buffer: ?*anyopaque, Size: i16, }; pub const RPC_EE_INFO_PARAM = extern struct { ParameterType: ExtendedErrorParamTypes, u: extern union { AnsiString: ?PSTR, UnicodeString: ?PWSTR, LVal: i32, SVal: i16, PVal: u64, BVal: BinaryParam, }, }; pub const RPC_EXTENDED_ERROR_INFO = extern struct { Version: u32, ComputerName: ?PWSTR, ProcessID: u32, u: extern union { SystemTime: SYSTEMTIME, FileTime: FILETIME, }, GeneratingComponent: u32, Status: u32, DetectionLocation: u16, Flags: u16, NumberOfParameters: i32, Parameters: [4]RPC_EE_INFO_PARAM, }; pub const RPC_ERROR_ENUM_HANDLE = extern struct { Signature: u32, CurrentPos: ?*anyopaque, Head: ?*anyopaque, }; pub const RpcLocalAddressFormat = enum(i32) { nvalid = 0, Pv4 = 1, Pv6 = 2, }; pub const rlafInvalid = RpcLocalAddressFormat.nvalid; pub const rlafIPv4 = RpcLocalAddressFormat.Pv4; pub const rlafIPv6 = RpcLocalAddressFormat.Pv6; pub const RPC_CALL_LOCAL_ADDRESS_V1 = extern struct { Version: u32, Buffer: ?*anyopaque, BufferSize: u32, AddressFormat: RpcLocalAddressFormat, }; pub const RPC_CALL_ATTRIBUTES_V1_W = extern struct { Version: u32, Flags: u32, ServerPrincipalNameBufferLength: u32, ServerPrincipalName: ?*u16, ClientPrincipalNameBufferLength: u32, ClientPrincipalName: ?*u16, AuthenticationLevel: u32, AuthenticationService: u32, NullSession: BOOL, }; pub const RPC_CALL_ATTRIBUTES_V1_A = extern struct { Version: u32, Flags: u32, ServerPrincipalNameBufferLength: u32, ServerPrincipalName: ?*u8, ClientPrincipalNameBufferLength: u32, ClientPrincipalName: ?*u8, AuthenticationLevel: u32, AuthenticationService: u32, NullSession: BOOL, }; pub const RpcCallType = enum(i32) { Invalid = 0, Normal = 1, Training = 2, Guaranteed = 3, }; pub const rctInvalid = RpcCallType.Invalid; pub const rctNormal = RpcCallType.Normal; pub const rctTraining = RpcCallType.Training; pub const rctGuaranteed = RpcCallType.Guaranteed; pub const RpcCallClientLocality = enum(i32) { Invalid = 0, Local = 1, Remote = 2, ClientUnknownLocality = 3, }; pub const rcclInvalid = RpcCallClientLocality.Invalid; pub const rcclLocal = RpcCallClientLocality.Local; pub const rcclRemote = RpcCallClientLocality.Remote; pub const rcclClientUnknownLocality = RpcCallClientLocality.ClientUnknownLocality; pub const RPC_CALL_ATTRIBUTES_V2_W = extern struct { Version: u32, Flags: u32, ServerPrincipalNameBufferLength: u32, ServerPrincipalName: ?*u16, ClientPrincipalNameBufferLength: u32, ClientPrincipalName: ?*u16, AuthenticationLevel: u32, AuthenticationService: u32, NullSession: BOOL, KernelModeCaller: BOOL, ProtocolSequence: u32, IsClientLocal: RpcCallClientLocality, ClientPID: ?HANDLE, CallStatus: u32, CallType: RpcCallType, CallLocalAddress: ?*RPC_CALL_LOCAL_ADDRESS_V1, OpNum: u16, InterfaceUuid: Guid, }; pub const RPC_CALL_ATTRIBUTES_V2_A = extern struct { Version: u32, Flags: u32, ServerPrincipalNameBufferLength: u32, ServerPrincipalName: ?*u8, ClientPrincipalNameBufferLength: u32, ClientPrincipalName: ?*u8, AuthenticationLevel: u32, AuthenticationService: u32, NullSession: BOOL, KernelModeCaller: BOOL, ProtocolSequence: u32, IsClientLocal: u32, ClientPID: ?HANDLE, CallStatus: u32, CallType: RpcCallType, CallLocalAddress: ?*RPC_CALL_LOCAL_ADDRESS_V1, OpNum: u16, InterfaceUuid: Guid, }; pub const RPC_CALL_ATTRIBUTES_V3_W = extern struct { Version: u32, Flags: u32, ServerPrincipalNameBufferLength: u32, ServerPrincipalName: ?*u16, ClientPrincipalNameBufferLength: u32, ClientPrincipalName: ?*u16, AuthenticationLevel: u32, AuthenticationService: u32, NullSession: BOOL, KernelModeCaller: BOOL, ProtocolSequence: u32, IsClientLocal: RpcCallClientLocality, ClientPID: ?HANDLE, CallStatus: u32, CallType: RpcCallType, CallLocalAddress: ?*RPC_CALL_LOCAL_ADDRESS_V1, OpNum: u16, InterfaceUuid: Guid, ClientIdentifierBufferLength: u32, ClientIdentifier: ?*u8, }; pub const RPC_CALL_ATTRIBUTES_V3_A = extern struct { Version: u32, Flags: u32, ServerPrincipalNameBufferLength: u32, ServerPrincipalName: ?*u8, ClientPrincipalNameBufferLength: u32, ClientPrincipalName: ?*u8, AuthenticationLevel: u32, AuthenticationService: u32, NullSession: BOOL, KernelModeCaller: BOOL, ProtocolSequence: u32, IsClientLocal: u32, ClientPID: ?HANDLE, CallStatus: u32, CallType: RpcCallType, CallLocalAddress: ?*RPC_CALL_LOCAL_ADDRESS_V1, OpNum: u16, InterfaceUuid: Guid, ClientIdentifierBufferLength: u32, ClientIdentifier: ?*u8, }; pub const RPC_NOTIFICATIONS = enum(i32) { allNone = 0, lientDisconnect = 1, allCancel = 2, }; pub const RpcNotificationCallNone = RPC_NOTIFICATIONS.allNone; pub const RpcNotificationClientDisconnect = RPC_NOTIFICATIONS.lientDisconnect; pub const RpcNotificationCallCancel = RPC_NOTIFICATIONS.allCancel; pub const RPC_IMPORT_CONTEXT_P = extern struct { LookupContext: ?*anyopaque, ProposedHandle: ?*anyopaque, Bindings: ?*RPC_BINDING_VECTOR, }; pub const _NDR_SCONTEXT = extern struct { pad: [2]?*anyopaque, userContext: ?*anyopaque, }; pub const NDR_RUNDOWN = switch (@import("builtin").zig_backend) { .stage1 => fn ( context: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) void, else => *const fn ( context: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) void, }; pub const NDR_NOTIFY_ROUTINE = switch (@import("builtin").zig_backend) { .stage1 => fn () callconv(@import("std").os.windows.WINAPI) void, else => *const fn () callconv(@import("std").os.windows.WINAPI) void, }; pub const NDR_NOTIFY2_ROUTINE = switch (@import("builtin").zig_backend) { .stage1 => fn ( flag: u8, ) callconv(@import("std").os.windows.WINAPI) void, else => *const fn ( flag: u8, ) callconv(@import("std").os.windows.WINAPI) void, }; pub const SCONTEXT_QUEUE = extern struct { NumberOfObjects: u32, ArrayOfObjects: ?*?*NDR_SCONTEXT_1, }; // TODO: this function pointer causes dependency loop problems, so it's stubbed out pub const EXPR_EVAL = switch (@import("builtin").zig_backend) { .stage1 => fn () callconv(@import("std").os.windows.WINAPI) void, else => *const fn () callconv(@import("std").os.windows.WINAPI) void, }; pub const ARRAY_INFO = extern struct { Dimension: i32, BufferConformanceMark: ?*u32, BufferVarianceMark: ?*u32, MaxCountArray: ?*u32, OffsetArray: ?*u32, ActualCountArray: ?*u32, }; pub const _NDR_ASYNC_MESSAGE = extern struct { placeholder: usize, // TODO: why is this type empty? }; pub const _NDR_CORRELATION_INFO = extern struct { placeholder: usize, // TODO: why is this type empty? }; pub const NDR_ALLOC_ALL_NODES_CONTEXT = extern struct { placeholder: usize, // TODO: why is this type empty? }; pub const NDR_POINTER_QUEUE_STATE = extern struct { placeholder: usize, // TODO: why is this type empty? }; pub const _NDR_PROC_CONTEXT = extern struct { placeholder: usize, // TODO: why is this type empty? }; pub const MIDL_STUB_MESSAGE = extern struct { RpcMsg: ?*RPC_MESSAGE, Buffer: ?*u8, BufferStart: ?*u8, BufferEnd: ?*u8, BufferMark: ?*u8, BufferLength: u32, MemorySize: u32, Memory: ?*u8, IsClient: u8, Pad: u8, uFlags2: u16, ReuseBuffer: i32, pAllocAllNodesContext: ?*NDR_ALLOC_ALL_NODES_CONTEXT, pPointerQueueState: ?*NDR_POINTER_QUEUE_STATE, IgnoreEmbeddedPointers: i32, PointerBufferMark: ?*u8, CorrDespIncrement: u8, uFlags: u8, UniquePtrCount: u16, MaxCount: usize, Offset: u32, ActualCount: u32, pfnAllocate: isize, pfnFree: isize, StackTop: ?*u8, pPresentedType: ?*u8, pTransmitType: ?*u8, SavedHandle: ?*anyopaque, StubDesc: ?*const MIDL_STUB_DESC, FullPtrXlatTables: ?*FULL_PTR_XLAT_TABLES, FullPtrRefId: u32, PointerLength: u32, _bitfield: i32, dwDestContext: u32, pvDestContext: ?*anyopaque, SavedContextHandles: ?*?*NDR_SCONTEXT_1, ParamNumber: i32, pRpcChannelBuffer: ?*IRpcChannelBuffer, pArrayInfo: ?*ARRAY_INFO, SizePtrCountArray: ?*u32, SizePtrOffsetArray: ?*u32, SizePtrLengthArray: ?*u32, pArgQueue: ?*anyopaque, dwStubPhase: u32, LowStackMark: ?*anyopaque, pAsyncMsg: ?*_NDR_ASYNC_MESSAGE, pCorrInfo: ?*_NDR_CORRELATION_INFO, pCorrMemory: ?*u8, pMemoryList: ?*anyopaque, pCSInfo: isize, ConformanceMark: ?*u8, VarianceMark: ?*u8, Unused: isize, pContext: ?*_NDR_PROC_CONTEXT, ContextHandleHash: ?*anyopaque, pUserMarshalList: ?*anyopaque, Reserved51_3: isize, Reserved51_4: isize, Reserved51_5: isize, }; pub const GENERIC_BINDING_ROUTINE = switch (@import("builtin").zig_backend) { .stage1 => fn ( param0: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) ?*anyopaque, else => *const fn ( param0: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) ?*anyopaque, }; pub const GENERIC_UNBIND_ROUTINE = switch (@import("builtin").zig_backend) { .stage1 => fn ( param0: ?*anyopaque, param1: ?*u8, ) callconv(@import("std").os.windows.WINAPI) void, else => *const fn ( param0: ?*anyopaque, param1: ?*u8, ) callconv(@import("std").os.windows.WINAPI) void, }; pub const GENERIC_BINDING_ROUTINE_PAIR = extern struct { pfnBind: ?GENERIC_BINDING_ROUTINE, pfnUnbind: ?GENERIC_UNBIND_ROUTINE, }; pub const GENERIC_BINDING_INFO = extern struct { pObj: ?*anyopaque, Size: u32, pfnBind: ?GENERIC_BINDING_ROUTINE, pfnUnbind: ?GENERIC_UNBIND_ROUTINE, }; // TODO: this function pointer causes dependency loop problems, so it's stubbed out pub const XMIT_HELPER_ROUTINE = switch (@import("builtin").zig_backend) { .stage1 => fn () callconv(@import("std").os.windows.WINAPI) void, else => *const fn () callconv(@import("std").os.windows.WINAPI) void, }; pub const XMIT_ROUTINE_QUINTUPLE = extern struct { pfnTranslateToXmit: ?XMIT_HELPER_ROUTINE, pfnTranslateFromXmit: ?XMIT_HELPER_ROUTINE, pfnFreeXmit: ?XMIT_HELPER_ROUTINE, pfnFreeInst: ?XMIT_HELPER_ROUTINE, }; pub const USER_MARSHAL_SIZING_ROUTINE = switch (@import("builtin").zig_backend) { .stage1 => fn ( param0: ?*u32, param1: u32, param2: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) u32, else => *const fn ( param0: ?*u32, param1: u32, param2: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) u32, }; pub const USER_MARSHAL_MARSHALLING_ROUTINE = switch (@import("builtin").zig_backend) { .stage1 => fn ( param0: ?*u32, param1: ?*u8, param2: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) ?*u8, else => *const fn ( param0: ?*u32, param1: ?*u8, param2: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) ?*u8, }; pub const USER_MARSHAL_UNMARSHALLING_ROUTINE = switch (@import("builtin").zig_backend) { .stage1 => fn ( param0: ?*u32, param1: ?*u8, param2: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) ?*u8, else => *const fn ( param0: ?*u32, param1: ?*u8, param2: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) ?*u8, }; pub const USER_MARSHAL_FREEING_ROUTINE = switch (@import("builtin").zig_backend) { .stage1 => fn ( param0: ?*u32, param1: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) void, else => *const fn ( param0: ?*u32, param1: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) void, }; pub const USER_MARSHAL_ROUTINE_QUADRUPLE = extern struct { pfnBufferSize: ?USER_MARSHAL_SIZING_ROUTINE, pfnMarshall: ?USER_MARSHAL_MARSHALLING_ROUTINE, pfnUnmarshall: ?USER_MARSHAL_UNMARSHALLING_ROUTINE, pfnFree: ?USER_MARSHAL_FREEING_ROUTINE, }; pub const USER_MARSHAL_CB_TYPE = enum(i32) { BUFFER_SIZE = 0, MARSHALL = 1, UNMARSHALL = 2, FREE = 3, }; pub const USER_MARSHAL_CB_BUFFER_SIZE = USER_MARSHAL_CB_TYPE.BUFFER_SIZE; pub const USER_MARSHAL_CB_MARSHALL = USER_MARSHAL_CB_TYPE.MARSHALL; pub const USER_MARSHAL_CB_UNMARSHALL = USER_MARSHAL_CB_TYPE.UNMARSHALL; pub const USER_MARSHAL_CB_FREE = USER_MARSHAL_CB_TYPE.FREE; pub const USER_MARSHAL_CB = extern struct { Flags: u32, pStubMsg: ?*MIDL_STUB_MESSAGE, pReserve: ?*u8, Signature: u32, CBType: USER_MARSHAL_CB_TYPE, pFormat: ?*u8, pTypeFormat: ?*u8, }; pub const MALLOC_FREE_STRUCT = extern struct { pfnAllocate: isize, pfnFree: isize, }; pub const COMM_FAULT_OFFSETS = extern struct { CommOffset: i16, FaultOffset: i16, }; pub const IDL_CS_CONVERT = enum(i32) { NO_CONVERT = 0, IN_PLACE_CONVERT = 1, NEW_BUFFER_CONVERT = 2, }; pub const IDL_CS_NO_CONVERT = IDL_CS_CONVERT.NO_CONVERT; pub const IDL_CS_IN_PLACE_CONVERT = IDL_CS_CONVERT.IN_PLACE_CONVERT; pub const IDL_CS_NEW_BUFFER_CONVERT = IDL_CS_CONVERT.NEW_BUFFER_CONVERT; pub const CS_TYPE_NET_SIZE_ROUTINE = switch (@import("builtin").zig_backend) { .stage1 => fn ( hBinding: ?*anyopaque, ulNetworkCodeSet: u32, ulLocalBufferSize: u32, conversionType: ?*IDL_CS_CONVERT, pulNetworkBufferSize: ?*u32, pStatus: ?*u32, ) callconv(@import("std").os.windows.WINAPI) void, else => *const fn ( hBinding: ?*anyopaque, ulNetworkCodeSet: u32, ulLocalBufferSize: u32, conversionType: ?*IDL_CS_CONVERT, pulNetworkBufferSize: ?*u32, pStatus: ?*u32, ) callconv(@import("std").os.windows.WINAPI) void, }; pub const CS_TYPE_LOCAL_SIZE_ROUTINE = switch (@import("builtin").zig_backend) { .stage1 => fn ( hBinding: ?*anyopaque, ulNetworkCodeSet: u32, ulNetworkBufferSize: u32, conversionType: ?*IDL_CS_CONVERT, pulLocalBufferSize: ?*u32, pStatus: ?*u32, ) callconv(@import("std").os.windows.WINAPI) void, else => *const fn ( hBinding: ?*anyopaque, ulNetworkCodeSet: u32, ulNetworkBufferSize: u32, conversionType: ?*IDL_CS_CONVERT, pulLocalBufferSize: ?*u32, pStatus: ?*u32, ) callconv(@import("std").os.windows.WINAPI) void, }; pub const CS_TYPE_TO_NETCS_ROUTINE = switch (@import("builtin").zig_backend) { .stage1 => fn ( hBinding: ?*anyopaque, ulNetworkCodeSet: u32, pLocalData: ?*anyopaque, ulLocalDataLength: u32, pNetworkData: ?*u8, pulNetworkDataLength: ?*u32, pStatus: ?*u32, ) callconv(@import("std").os.windows.WINAPI) void, else => *const fn ( hBinding: ?*anyopaque, ulNetworkCodeSet: u32, pLocalData: ?*anyopaque, ulLocalDataLength: u32, pNetworkData: ?*u8, pulNetworkDataLength: ?*u32, pStatus: ?*u32, ) callconv(@import("std").os.windows.WINAPI) void, }; pub const CS_TYPE_FROM_NETCS_ROUTINE = switch (@import("builtin").zig_backend) { .stage1 => fn ( hBinding: ?*anyopaque, ulNetworkCodeSet: u32, pNetworkData: ?*u8, ulNetworkDataLength: u32, ulLocalBufferSize: u32, pLocalData: ?*anyopaque, pulLocalDataLength: ?*u32, pStatus: ?*u32, ) callconv(@import("std").os.windows.WINAPI) void, else => *const fn ( hBinding: ?*anyopaque, ulNetworkCodeSet: u32, pNetworkData: ?*u8, ulNetworkDataLength: u32, ulLocalBufferSize: u32, pLocalData: ?*anyopaque, pulLocalDataLength: ?*u32, pStatus: ?*u32, ) callconv(@import("std").os.windows.WINAPI) void, }; pub const CS_TAG_GETTING_ROUTINE = switch (@import("builtin").zig_backend) { .stage1 => fn ( hBinding: ?*anyopaque, fServerSide: i32, pulSendingTag: ?*u32, pulDesiredReceivingTag: ?*u32, pulReceivingTag: ?*u32, pStatus: ?*u32, ) callconv(@import("std").os.windows.WINAPI) void, else => *const fn ( hBinding: ?*anyopaque, fServerSide: i32, pulSendingTag: ?*u32, pulDesiredReceivingTag: ?*u32, pulReceivingTag: ?*u32, pStatus: ?*u32, ) callconv(@import("std").os.windows.WINAPI) void, }; pub const NDR_CS_SIZE_CONVERT_ROUTINES = extern struct { pfnNetSize: ?CS_TYPE_NET_SIZE_ROUTINE, pfnToNetCs: ?CS_TYPE_TO_NETCS_ROUTINE, pfnLocalSize: ?CS_TYPE_LOCAL_SIZE_ROUTINE, pfnFromNetCs: ?CS_TYPE_FROM_NETCS_ROUTINE, }; pub const NDR_CS_ROUTINES = extern struct { pSizeConvertRoutines: ?*NDR_CS_SIZE_CONVERT_ROUTINES, pTagGettingRoutines: ?*?CS_TAG_GETTING_ROUTINE, }; pub const NDR_EXPR_DESC = extern struct { pOffset: ?*const u16, pFormatExpr: ?*u8, }; pub const MIDL_STUB_DESC = extern struct { RpcInterfaceInformation: ?*anyopaque, pfnAllocate: isize, pfnFree: isize, IMPLICIT_HANDLE_INFO: extern union { pAutoHandle: ?*?*anyopaque, pPrimitiveHandle: ?*?*anyopaque, pGenericBindingInfo: ?*GENERIC_BINDING_INFO, }, apfnNdrRundownRoutines: ?*const ?NDR_RUNDOWN, aGenericBindingRoutinePairs: ?*const GENERIC_BINDING_ROUTINE_PAIR, apfnExprEval: ?*const ?EXPR_EVAL, aXmitQuintuple: ?*const XMIT_ROUTINE_QUINTUPLE, pFormatTypes: ?*const u8, fCheckBounds: i32, Version: u32, pMallocFreeStruct: ?*MALLOC_FREE_STRUCT, MIDLVersion: i32, CommFaultOffsets: ?*const COMM_FAULT_OFFSETS, aUserMarshalQuadruple: ?*const USER_MARSHAL_ROUTINE_QUADRUPLE, NotifyRoutineTable: ?*const ?NDR_NOTIFY_ROUTINE, mFlags: usize, CsRoutineTables: ?*const NDR_CS_ROUTINES, ProxyServerInfo: ?*anyopaque, pExprInfo: ?*const NDR_EXPR_DESC, }; pub const MIDL_FORMAT_STRING = extern struct { Pad: i16, Format: [1]u8, }; pub const STUB_THUNK = switch (@import("builtin").zig_backend) { .stage1 => fn ( param0: ?*MIDL_STUB_MESSAGE, ) callconv(@import("std").os.windows.WINAPI) void, else => *const fn ( param0: ?*MIDL_STUB_MESSAGE, ) callconv(@import("std").os.windows.WINAPI) void, }; pub const SERVER_ROUTINE = switch (@import("builtin").zig_backend) { .stage1 => fn () callconv(@import("std").os.windows.WINAPI) i32, else => *const fn () callconv(@import("std").os.windows.WINAPI) i32, }; pub const MIDL_METHOD_PROPERTY = extern struct { Id: u32, Value: usize, }; pub const MIDL_METHOD_PROPERTY_MAP = extern struct { Count: u32, Properties: ?*const MIDL_METHOD_PROPERTY, }; pub const MIDL_INTERFACE_METHOD_PROPERTIES = extern struct { MethodCount: u16, MethodProperties: ?*const ?*MIDL_METHOD_PROPERTY_MAP, }; pub const MIDL_SERVER_INFO = extern struct { pStubDesc: ?*MIDL_STUB_DESC, DispatchTable: ?*const ?SERVER_ROUTINE, ProcString: ?*u8, FmtStringOffset: ?*const u16, ThunkTable: ?*const ?STUB_THUNK, pTransferSyntax: ?*RPC_SYNTAX_IDENTIFIER, nCount: usize, pSyntaxInfo: ?*MIDL_SYNTAX_INFO, }; pub const MIDL_STUBLESS_PROXY_INFO = extern struct { pStubDesc: ?*MIDL_STUB_DESC, ProcFormatString: ?*u8, FormatStringOffset: ?*const u16, pTransferSyntax: ?*RPC_SYNTAX_IDENTIFIER, nCount: usize, pSyntaxInfo: ?*MIDL_SYNTAX_INFO, }; pub const MIDL_SYNTAX_INFO = extern struct { TransferSyntax: RPC_SYNTAX_IDENTIFIER, DispatchTable: ?*RPC_DISPATCH_TABLE, ProcString: ?*u8, FmtStringOffset: ?*const u16, TypeString: ?*u8, aUserMarshalQuadruple: ?*const anyopaque, pMethodProperties: ?*const MIDL_INTERFACE_METHOD_PROPERTIES, pReserved2: usize, }; pub const CLIENT_CALL_RETURN = extern union { Pointer: ?*anyopaque, Simple: isize, }; pub const XLAT_SIDE = enum(i32) { SERVER = 1, CLIENT = 2, }; pub const XLAT_SERVER = XLAT_SIDE.SERVER; pub const XLAT_CLIENT = XLAT_SIDE.CLIENT; pub const FULL_PTR_XLAT_TABLES = extern struct { RefIdToPointer: ?*anyopaque, PointerToRefId: ?*anyopaque, NextRefId: u32, XlatSide: XLAT_SIDE, }; pub const system_handle_t = enum(i32) { FILE = 0, SEMAPHORE = 1, EVENT = 2, MUTEX = 3, PROCESS = 4, TOKEN = 5, SECTION = 6, REG_KEY = 7, THREAD = 8, COMPOSITION_OBJECT = 9, SOCKET = 10, JOB = 11, PIPE = 12, // MAX = 12, this enum value conflicts with PIPE INVALID = 255, }; pub const SYSTEM_HANDLE_FILE = system_handle_t.FILE; pub const SYSTEM_HANDLE_SEMAPHORE = system_handle_t.SEMAPHORE; pub const SYSTEM_HANDLE_EVENT = system_handle_t.EVENT; pub const SYSTEM_HANDLE_MUTEX = system_handle_t.MUTEX; pub const SYSTEM_HANDLE_PROCESS = system_handle_t.PROCESS; pub const SYSTEM_HANDLE_TOKEN = system_handle_t.TOKEN; pub const SYSTEM_HANDLE_SECTION = system_handle_t.SECTION; pub const SYSTEM_HANDLE_REG_KEY = system_handle_t.REG_KEY; pub const SYSTEM_HANDLE_THREAD = system_handle_t.THREAD; pub const SYSTEM_HANDLE_COMPOSITION_OBJECT = system_handle_t.COMPOSITION_OBJECT; pub const SYSTEM_HANDLE_SOCKET = system_handle_t.SOCKET; pub const SYSTEM_HANDLE_JOB = system_handle_t.JOB; pub const SYSTEM_HANDLE_PIPE = system_handle_t.PIPE; pub const SYSTEM_HANDLE_MAX = system_handle_t.PIPE; pub const SYSTEM_HANDLE_INVALID = system_handle_t.INVALID; pub const MIDL_INTERCEPTION_INFO = extern struct { Version: u32, ProcString: ?*u8, ProcFormatOffsetTable: ?*const u16, ProcCount: u32, TypeString: ?*u8, }; pub const MIDL_WINRT_TYPE_SERIALIZATION_INFO = extern struct { Version: u32, TypeFormatString: ?*u8, FormatStringSize: u16, TypeOffset: u16, StubDesc: ?*MIDL_STUB_DESC, }; pub const STUB_PHASE = enum(i32) { UNMARSHAL = 0, CALL_SERVER = 1, MARSHAL = 2, CALL_SERVER_NO_HRESULT = 3, }; pub const STUB_UNMARSHAL = STUB_PHASE.UNMARSHAL; pub const STUB_CALL_SERVER = STUB_PHASE.CALL_SERVER; pub const STUB_MARSHAL = STUB_PHASE.MARSHAL; pub const STUB_CALL_SERVER_NO_HRESULT = STUB_PHASE.CALL_SERVER_NO_HRESULT; pub const PROXY_PHASE = enum(i32) { CALCSIZE = 0, GETBUFFER = 1, MARSHAL = 2, SENDRECEIVE = 3, UNMARSHAL = 4, }; pub const PROXY_CALCSIZE = PROXY_PHASE.CALCSIZE; pub const PROXY_GETBUFFER = PROXY_PHASE.GETBUFFER; pub const PROXY_MARSHAL = PROXY_PHASE.MARSHAL; pub const PROXY_SENDRECEIVE = PROXY_PHASE.SENDRECEIVE; pub const PROXY_UNMARSHAL = PROXY_PHASE.UNMARSHAL; pub const RPC_CLIENT_ALLOC = switch (@import("builtin").zig_backend) { .stage1 => fn ( Size: usize, ) callconv(@import("std").os.windows.WINAPI) ?*anyopaque, else => *const fn ( Size: usize, ) callconv(@import("std").os.windows.WINAPI) ?*anyopaque, }; pub const RPC_CLIENT_FREE = switch (@import("builtin").zig_backend) { .stage1 => fn ( Ptr: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) void, else => *const fn ( Ptr: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) void, }; pub const NDR_USER_MARSHAL_INFO_LEVEL1 = extern struct { Buffer: ?*anyopaque, BufferSize: u32, pfnAllocate: isize, pfnFree: isize, pRpcChannelBuffer: ?*IRpcChannelBuffer, Reserved: [5]usize, }; pub const NDR_USER_MARSHAL_INFO = extern struct { InformationLevel: u32, Anonymous: extern union { Level1: NDR_USER_MARSHAL_INFO_LEVEL1, }, }; pub const MIDL_ES_CODE = enum(i32) { ENCODE = 0, DECODE = 1, ENCODE_NDR64 = 2, }; pub const MES_ENCODE = MIDL_ES_CODE.ENCODE; pub const MES_DECODE = MIDL_ES_CODE.DECODE; pub const MES_ENCODE_NDR64 = MIDL_ES_CODE.ENCODE_NDR64; pub const MIDL_ES_HANDLE_STYLE = enum(i32) { INCREMENTAL_HANDLE = 0, FIXED_BUFFER_HANDLE = 1, DYNAMIC_BUFFER_HANDLE = 2, }; pub const MES_INCREMENTAL_HANDLE = MIDL_ES_HANDLE_STYLE.INCREMENTAL_HANDLE; pub const MES_FIXED_BUFFER_HANDLE = MIDL_ES_HANDLE_STYLE.FIXED_BUFFER_HANDLE; pub const MES_DYNAMIC_BUFFER_HANDLE = MIDL_ES_HANDLE_STYLE.DYNAMIC_BUFFER_HANDLE; pub const MIDL_ES_ALLOC = switch (@import("builtin").zig_backend) { .stage1 => fn ( state: ?*anyopaque, pbuffer: ?*?*i8, psize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) void, else => *const fn ( state: ?*anyopaque, pbuffer: ?*?*i8, psize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) void, }; pub const MIDL_ES_WRITE = switch (@import("builtin").zig_backend) { .stage1 => fn ( state: ?*anyopaque, buffer: ?PSTR, size: u32, ) callconv(@import("std").os.windows.WINAPI) void, else => *const fn ( state: ?*anyopaque, buffer: ?PSTR, size: u32, ) callconv(@import("std").os.windows.WINAPI) void, }; pub const MIDL_ES_READ = switch (@import("builtin").zig_backend) { .stage1 => fn ( state: ?*anyopaque, pbuffer: ?*?*i8, psize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) void, else => *const fn ( state: ?*anyopaque, pbuffer: ?*?*i8, psize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) void, }; pub const MIDL_TYPE_PICKLING_INFO = extern struct { Version: u32, Flags: u32, Reserved: [3]usize, }; pub const NDR64_PROC_FLAGS = extern struct { _bitfield: u32, }; pub const NDR64_RPC_FLAGS = extern struct { _bitfield: u16, }; pub const NDR64_PROC_FORMAT = extern struct { Flags: u32, StackSize: u32, ConstantClientBufferSize: u32, ConstantServerBufferSize: u32, RpcFlags: u16, FloatDoubleMask: u16, NumberOfParams: u16, ExtensionSize: u16, }; pub const NDR64_PARAM_FLAGS = extern struct { _bitfield: u16, }; pub const NDR64_PARAM_FORMAT = extern struct { Type: ?*anyopaque, Attributes: NDR64_PARAM_FLAGS, Reserved: u16, StackOffset: u32, }; pub const NDR64_RANGE_FORMAT = extern struct { FormatCode: u8, RangeType: u8, Reserved: u16, MinValue: i64, MaxValue: i64, }; pub const NDR64_CONTEXT_HANDLE_FLAGS = extern struct { _bitfield: u8, }; pub const NDR64_CONTEXT_HANDLE_FORMAT = extern struct { FormatCode: u8, ContextFlags: u8, RundownRoutineIndex: u8, Ordinal: u8, }; pub const NDR64_BIND_PRIMITIVE = extern struct { HandleType: u8, Flags: u8, StackOffset: u16, Reserved: u16, }; pub const NDR64_BIND_GENERIC = extern struct { HandleType: u8, Flags: u8, StackOffset: u16, RoutineIndex: u8, Size: u8, }; pub const NDR64_BIND_CONTEXT = extern struct { HandleType: u8, Flags: u8, StackOffset: u16, RoutineIndex: u8, Ordinal: u8, }; pub const NDR64_BINDINGS = extern union { Primitive: NDR64_BIND_PRIMITIVE, Generic: NDR64_BIND_GENERIC, Context: NDR64_BIND_CONTEXT, }; pub const NDR64_BIND_AND_NOTIFY_EXTENSION = extern struct { Binding: NDR64_BIND_CONTEXT, NotifyIndex: u16, }; pub const NDR64_SYSTEM_HANDLE_FORMAT = extern struct { FormatCode: u8, HandleType: u8, DesiredAccess: u32, }; pub const NDR64_POINTER_FORMAT = extern struct { FormatCode: u8, Flags: u8, Reserved: u16, Pointee: ?*anyopaque, }; pub const NDR64_NO_REPEAT_FORMAT = extern struct { FormatCode: u8, Flags: u8, Reserved1: u16, Reserved2: u32, }; pub const NDR64_POINTER_INSTANCE_HEADER_FORMAT = extern struct { Offset: u32, Reserved: u32, }; pub const NDR64_POINTER_REPEAT_FLAGS = extern struct { _bitfield: u8, }; pub const NDR64_REPEAT_FORMAT = extern struct { FormatCode: u8, Flags: NDR64_POINTER_REPEAT_FLAGS, Reserved: u16, Increment: u32, OffsetToArray: u32, NumberOfPointers: u32, }; pub const NDR64_FIXED_REPEAT_FORMAT = extern struct { RepeatFormat: NDR64_REPEAT_FORMAT, Iterations: u32, Reserved: u32, }; pub const NDR64_IID_FLAGS = extern struct { _bitfield: u8, }; pub const NDR64_CONSTANT_IID_FORMAT = extern struct { FormatCode: u8, Flags: u8, Reserved: u16, Guid: Guid, }; pub const NDR64_IID_FORMAT = extern struct { FormatCode: u8, Flags: u8, Reserved: u16, IIDDescriptor: ?*anyopaque, }; pub const NDR64_STRUCTURE_FLAGS = extern struct { _bitfield: u8, }; pub const NDR64_STRUCTURE_HEADER_FORMAT = extern struct { FormatCode: u8, Alignment: u8, Flags: NDR64_STRUCTURE_FLAGS, Reserve: u8, MemorySize: u32, }; pub const NDR64_CONF_STRUCTURE_HEADER_FORMAT = extern struct { FormatCode: u8, Alignment: u8, Flags: NDR64_STRUCTURE_FLAGS, Reserve: u8, MemorySize: u32, ArrayDescription: ?*anyopaque, }; pub const NDR64_BOGUS_STRUCTURE_HEADER_FORMAT = extern struct { FormatCode: u8, Alignment: u8, Flags: NDR64_STRUCTURE_FLAGS, Reserve: u8, MemorySize: u32, OriginalMemberLayout: ?*anyopaque, OriginalPointerLayout: ?*anyopaque, PointerLayout: ?*anyopaque, }; pub const NDR64_CONF_BOGUS_STRUCTURE_HEADER_FORMAT = extern struct { FormatCode: u8, Alignment: u8, Flags: NDR64_STRUCTURE_FLAGS, Dimensions: u8, MemorySize: u32, OriginalMemberLayout: ?*anyopaque, OriginalPointerLayout: ?*anyopaque, PointerLayout: ?*anyopaque, ConfArrayDescription: ?*anyopaque, }; pub const NDR64_SIMPLE_MEMBER_FORMAT = extern struct { FormatCode: u8, Reserved1: u8, Reserved2: u16, Reserved3: u32, }; pub const NDR64_MEMPAD_FORMAT = extern struct { FormatCode: u8, Reserve1: u8, MemPad: u16, Reserved2: u32, }; pub const NDR64_EMBEDDED_COMPLEX_FORMAT = extern struct { FormatCode: u8, Reserve1: u8, Reserve2: u16, Type: ?*anyopaque, }; pub const NDR64_BUFFER_ALIGN_FORMAT = extern struct { FormatCode: u8, Alignment: u8, Reserved: u16, Reserved2: u32, }; pub const NDR64_SIMPLE_REGION_FORMAT = extern struct { FormatCode: u8, Alignment: u8, RegionSize: u16, Reserved: u32, }; pub const NDR64_ENCAPSULATED_UNION = extern struct { FormatCode: u8, Alignment: u8, Flags: u8, SwitchType: u8, MemoryOffset: u32, MemorySize: u32, Reserved: u32, }; pub const NDR64_NON_ENCAPSULATED_UNION = extern struct { FormatCode: u8, Alignment: u8, Flags: u8, SwitchType: u8, MemorySize: u32, Switch: ?*anyopaque, Reserved: u32, }; pub const NDR64_UNION_ARM_SELECTOR = extern struct { Reserved1: u8, Alignment: u8, Reserved2: u16, Arms: u32, }; pub const NDR64_UNION_ARM = extern struct { CaseValue: i64, Type: ?*anyopaque, Reserved: u32, }; pub const NDR64_ARRAY_FLAGS = extern struct { _bitfield: u8, }; pub const NDR64_ARRAY_ELEMENT_INFO = extern struct { ElementMemSize: u32, Element: ?*anyopaque, }; pub const NDR64_FIX_ARRAY_HEADER_FORMAT = extern struct { FormatCode: u8, Alignment: u8, Flags: NDR64_ARRAY_FLAGS, Reserved: u8, TotalSize: u32, }; pub const NDR64_CONF_ARRAY_HEADER_FORMAT = extern struct { FormatCode: u8, Alignment: u8, Flags: NDR64_ARRAY_FLAGS, Reserved: u8, ElementSize: u32, ConfDescriptor: ?*anyopaque, }; pub const NDR64_CONF_VAR_ARRAY_HEADER_FORMAT = extern struct { FormatCode: u8, Alignment: u8, Flags: NDR64_ARRAY_FLAGS, Reserved: u8, ElementSize: u32, ConfDescriptor: ?*anyopaque, VarDescriptor: ?*anyopaque, }; pub const NDR64_VAR_ARRAY_HEADER_FORMAT = extern struct { FormatCode: u8, Alignment: u8, Flags: NDR64_ARRAY_FLAGS, Reserved: u8, TotalSize: u32, ElementSize: u32, VarDescriptor: ?*anyopaque, }; pub const NDR64_BOGUS_ARRAY_HEADER_FORMAT = extern struct { FormatCode: u8, Alignment: u8, Flags: NDR64_ARRAY_FLAGS, NumberDims: u8, NumberElements: u32, Element: ?*anyopaque, }; pub const NDR64_CONF_VAR_BOGUS_ARRAY_HEADER_FORMAT = extern struct { FixedArrayFormat: NDR64_BOGUS_ARRAY_HEADER_FORMAT, ConfDescription: ?*anyopaque, VarDescription: ?*anyopaque, OffsetDescription: ?*anyopaque, }; pub const NDR64_STRING_FLAGS = extern struct { _bitfield: u8, }; pub const NDR64_STRING_HEADER_FORMAT = extern struct { FormatCode: u8, Flags: NDR64_STRING_FLAGS, ElementSize: u16, }; pub const NDR64_NON_CONFORMANT_STRING_FORMAT = extern struct { Header: NDR64_STRING_HEADER_FORMAT, TotalSize: u32, }; pub const NDR64_RANGED_STRING_FORMAT = extern struct { Header: NDR64_STRING_HEADER_FORMAT, Reserved: u32, Min: u64, Max: u64, }; pub const NDR64_CONFORMANT_STRING_FORMAT = extern struct { Header: NDR64_STRING_HEADER_FORMAT, }; pub const NDR64_SIZED_CONFORMANT_STRING_FORMAT = extern struct { Header: NDR64_STRING_HEADER_FORMAT, SizeDescription: ?*anyopaque, }; pub const EXPR_TOKEN = enum(i32) { START = 0, // ILLEGAL = 0, this enum value conflicts with START CONST32 = 1, CONST64 = 2, VAR = 3, OPER = 4, NOOP = 5, END = 6, }; pub const FC_EXPR_START = EXPR_TOKEN.START; pub const FC_EXPR_ILLEGAL = EXPR_TOKEN.START; pub const FC_EXPR_CONST32 = EXPR_TOKEN.CONST32; pub const FC_EXPR_CONST64 = EXPR_TOKEN.CONST64; pub const FC_EXPR_VAR = EXPR_TOKEN.VAR; pub const FC_EXPR_OPER = EXPR_TOKEN.OPER; pub const FC_EXPR_NOOP = EXPR_TOKEN.NOOP; pub const FC_EXPR_END = EXPR_TOKEN.END; pub const NDR64_EXPR_OPERATOR = extern struct { ExprType: u8, Operator: u8, CastType: u8, Reserved: u8, }; pub const NDR64_EXPR_CONST32 = extern struct { ExprType: u8, Reserved: u8, Reserved1: u16, ConstValue: u32, }; pub const NDR64_EXPR_CONST64 = extern struct { ExprType: u8, Reserved: u8, Reserved1: u16, ConstValue: i64, }; pub const NDR64_EXPR_VAR = extern struct { ExprType: u8, VarType: u8, Reserved: u16, Offset: u32, }; pub const NDR64_EXPR_NOOP = extern struct { ExprType: u8, Size: u8, Reserved: u16, }; pub const NDR64_TRANSMIT_AS_FLAGS = extern struct { _bitfield: u8, }; pub const NDR64_TRANSMIT_AS_FORMAT = extern struct { FormatCode: u8, Flags: u8, RoutineIndex: u16, TransmittedTypeWireAlignment: u16, MemoryAlignment: u16, PresentedTypeMemorySize: u32, TransmittedTypeBufferSize: u32, TransmittedType: ?*anyopaque, }; pub const NDR64_USER_MARSHAL_FLAGS = extern struct { _bitfield: u8, }; pub const NDR64_USER_MARSHAL_FORMAT = extern struct { FormatCode: u8, Flags: u8, RoutineIndex: u16, TransmittedTypeWireAlignment: u16, MemoryAlignment: u16, UserTypeMemorySize: u32, TransmittedTypeBufferSize: u32, TransmittedType: ?*anyopaque, }; pub const NDR64_PIPE_FLAGS = extern struct { _bitfield: u8, }; pub const NDR64_PIPE_FORMAT = extern struct { FormatCode: u8, Flags: u8, Alignment: u8, Reserved: u8, Type: ?*anyopaque, MemorySize: u32, BufferSize: u32, }; pub const NDR64_RANGE_PIPE_FORMAT = extern struct { FormatCode: u8, Flags: u8, Alignment: u8, Reserved: u8, Type: ?*anyopaque, MemorySize: u32, BufferSize: u32, MinValue: u32, MaxValue: u32, }; pub const NDR64_TYPE_STRICT_CONTEXT_HANDLE = extern struct { FormatCode: u8, RealFormatCode: u8, Reserved: u16, Type: ?*anyopaque, CtxtFlags: u32, CtxtID: u32, }; //-------------------------------------------------------------------------------- // Section: Functions (508) //-------------------------------------------------------------------------------- // TODO: this type is limited to platform 'windows5.0' pub extern "rpcrt4" fn IUnknown_QueryInterface_Proxy( This: ?*IUnknown, riid: ?*const Guid, ppvObject: ?*?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) HRESULT; // TODO: this type is limited to platform 'windows5.0' pub extern "rpcrt4" fn IUnknown_AddRef_Proxy( This: ?*IUnknown, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'windows5.0' pub extern "rpcrt4" fn IUnknown_Release_Proxy( This: ?*IUnknown, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'windows5.0' pub extern "rpcrt4" fn RpcBindingCopy( SourceBinding: ?*anyopaque, DestinationBinding: ?*?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) RPC_STATUS; // TODO: this type is limited to platform 'windows5.0' pub extern "rpcrt4" fn RpcBindingFree( Binding: ?*?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) RPC_STATUS; // TODO: this type is limited to platform 'windows5.0' pub extern "rpcrt4" fn RpcBindingSetOption( hBinding: ?*anyopaque, option: u32, optionValue: usize, ) callconv(@import("std").os.windows.WINAPI) RPC_STATUS; // TODO: this type is limited to platform 'windows5.0' pub extern "rpcrt4" fn RpcBindingInqOption( hBinding: ?*anyopaque, option: u32, pOptionValue: ?*usize, ) callconv(@import("std").os.windows.WINAPI) RPC_STATUS; // TODO: this type is limited to platform 'windows5.0' pub extern "rpcrt4" fn RpcBindingFromStringBindingA( StringBinding: ?*u8, Binding: ?*?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) RPC_STATUS; // TODO: this type is limited to platform 'windows5.0' pub extern "rpcrt4" fn RpcBindingFromStringBindingW( StringBinding: ?*u16, Binding: ?*?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) RPC_STATUS; pub extern "rpcrt4" fn RpcSsGetContextBinding( ContextHandle: ?*anyopaque, Binding: ?*?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) RPC_STATUS; pub extern "rpcrt4" fn RpcBindingInqMaxCalls( Binding: ?*anyopaque, MaxCalls: ?*u32, ) callconv(@import("std").os.windows.WINAPI) RPC_STATUS; // TODO: this type is limited to platform 'windows5.0' pub extern "rpcrt4" fn RpcBindingInqObject( Binding: ?*anyopaque, ObjectUuid: ?*Guid, ) callconv(@import("std").os.windows.WINAPI) RPC_STATUS; // TODO: this type is limited to platform 'windows5.0' pub extern "rpcrt4" fn RpcBindingReset( Binding: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) RPC_STATUS; // TODO: this type is limited to platform 'windows5.0' pub extern "rpcrt4" fn RpcBindingSetObject( Binding: ?*anyopaque, ObjectUuid: ?*Guid, ) callconv(@import("std").os.windows.WINAPI) RPC_STATUS; // TODO: this type is limited to platform 'windows5.0' pub extern "rpcrt4" fn RpcMgmtInqDefaultProtectLevel( AuthnSvc: u32, AuthnLevel: ?*u32, ) callconv(@import("std").os.windows.WINAPI) RPC_STATUS; // TODO: this type is limited to platform 'windows5.0' pub extern "rpcrt4" fn RpcBindingToStringBindingA( Binding: ?*anyopaque, StringBinding: ?*?*u8, ) callconv(@import("std").os.windows.WINAPI) RPC_STATUS; // TODO: this type is limited to platform 'windows5.0' pub extern "rpcrt4" fn RpcBindingToStringBindingW( Binding: ?*anyopaque, StringBinding: ?*?*u16, ) callconv(@import("std").os.windows.WINAPI) RPC_STATUS; // TODO: this type is limited to platform 'windows5.0' pub extern "rpcrt4" fn RpcBindingVectorFree( BindingVector: ?*?*RPC_BINDING_VECTOR, ) callconv(@import("std").os.windows.WINAPI) RPC_STATUS; // TODO: this type is limited to platform 'windows5.0' pub extern "rpcrt4" fn RpcStringBindingComposeA( ObjUuid: ?*u8, ProtSeq: ?*u8, NetworkAddr: ?*u8, Endpoint: ?*u8, Options: ?*u8, StringBinding: ?*?*u8, ) callconv(@import("std").os.windows.WINAPI) RPC_STATUS; // TODO: this type is limited to platform 'windows5.0' pub extern "rpcrt4" fn RpcStringBindingComposeW( ObjUuid: ?*u16, ProtSeq: ?*u16, NetworkAddr: ?*u16, Endpoint: ?*u16, Options: ?*u16, StringBinding: ?*?*u16, ) callconv(@import("std").os.windows.WINAPI) RPC_STATUS; // TODO: this type is limited to platform 'windows5.0' pub extern "rpcrt4" fn RpcStringBindingParseA( StringBinding: ?*u8, ObjUuid: ?*?*u8, Protseq: ?*?*u8, NetworkAddr: ?*?*u8, Endpoint: ?*?*u8, NetworkOptions: ?*?*u8, ) callconv(@import("std").os.windows.WINAPI) RPC_STATUS; // TODO: this type is limited to platform 'windows5.0' pub extern "rpcrt4" fn RpcStringBindingParseW( StringBinding: ?*u16, ObjUuid: ?*?*u16, Protseq: ?*?*u16, NetworkAddr: ?*?*u16, Endpoint: ?*?*u16, NetworkOptions: ?*?*u16, ) callconv(@import("std").os.windows.WINAPI) RPC_STATUS; // TODO: this type is limited to platform 'windows5.0' pub extern "rpcrt4" fn RpcStringFreeA( String: ?*?*u8, ) callconv(@import("std").os.windows.WINAPI) RPC_STATUS; // TODO: this type is limited to platform 'windows5.0' pub extern "rpcrt4" fn RpcStringFreeW( String: ?*?*u16, ) callconv(@import("std").os.windows.WINAPI) RPC_STATUS; // TODO: this type is limited to platform 'windows5.0' pub extern "rpcrt4" fn RpcIfInqId( RpcIfHandle: ?*anyopaque, RpcIfId: ?*RPC_IF_ID, ) callconv(@import("std").os.windows.WINAPI) RPC_STATUS; // TODO: this type is limited to platform 'windows5.0' pub extern "rpcrt4" fn RpcNetworkIsProtseqValidA( Protseq: ?*u8, ) callconv(@import("std").os.windows.WINAPI) RPC_STATUS; // TODO: this type is limited to platform 'windows5.0' pub extern "rpcrt4" fn RpcNetworkIsProtseqValidW( Protseq: ?*u16, ) callconv(@import("std").os.windows.WINAPI) RPC_STATUS; // TODO: this type is limited to platform 'windows5.0' pub extern "rpcrt4" fn RpcMgmtInqComTimeout( Binding: ?*anyopaque, Timeout: ?*u32, ) callconv(@import("std").os.windows.WINAPI) RPC_STATUS; // TODO: this type is limited to platform 'windows5.0' pub extern "rpcrt4" fn RpcMgmtSetComTimeout( Binding: ?*anyopaque, Timeout: u32, ) callconv(@import("std").os.windows.WINAPI) RPC_STATUS; // TODO: this type is limited to platform 'windows5.0' pub extern "rpcrt4" fn RpcMgmtSetCancelTimeout( Timeout: i32, ) callconv(@import("std").os.windows.WINAPI) RPC_STATUS; // TODO: this type is limited to platform 'windows5.0' pub extern "rpcrt4" fn RpcNetworkInqProtseqsA( ProtseqVector: ?*?*RPC_PROTSEQ_VECTORA, ) callconv(@import("std").os.windows.WINAPI) RPC_STATUS; // TODO: this type is limited to platform 'windows5.0' pub extern "rpcrt4" fn RpcNetworkInqProtseqsW( ProtseqVector: ?*?*RPC_PROTSEQ_VECTORW, ) callconv(@import("std").os.windows.WINAPI) RPC_STATUS; // TODO: this type is limited to platform 'windows5.0' pub extern "rpcrt4" fn RpcObjectInqType( ObjUuid: ?*Guid, TypeUuid: ?*Guid, ) callconv(@import("std").os.windows.WINAPI) RPC_STATUS; // TODO: this type is limited to platform 'windows5.0' pub extern "rpcrt4" fn RpcObjectSetInqFn( InquiryFn: ?RPC_OBJECT_INQ_FN, ) callconv(@import("std").os.windows.WINAPI) RPC_STATUS; // TODO: this type is limited to platform 'windows5.0' pub extern "rpcrt4" fn RpcObjectSetType( ObjUuid: ?*Guid, TypeUuid: ?*Guid, ) callconv(@import("std").os.windows.WINAPI) RPC_STATUS; // TODO: this type is limited to platform 'windows5.0' pub extern "rpcrt4" fn RpcProtseqVectorFreeA( ProtseqVector: ?*?*RPC_PROTSEQ_VECTORA, ) callconv(@import("std").os.windows.WINAPI) RPC_STATUS; // TODO: this type is limited to platform 'windows5.0' pub extern "rpcrt4" fn RpcProtseqVectorFreeW( ProtseqVector: ?*?*RPC_PROTSEQ_VECTORW, ) callconv(@import("std").os.windows.WINAPI) RPC_STATUS; // TODO: this type is limited to platform 'windows5.0' pub extern "rpcrt4" fn RpcServerInqBindings( BindingVector: ?*?*RPC_BINDING_VECTOR, ) callconv(@import("std").os.windows.WINAPI) RPC_STATUS; pub extern "rpcrt4" fn RpcServerInqBindingsEx( SecurityDescriptor: ?*anyopaque, BindingVector: ?*?*RPC_BINDING_VECTOR, ) callconv(@import("std").os.windows.WINAPI) RPC_STATUS; // TODO: this type is limited to platform 'windows5.0' pub extern "rpcrt4" fn RpcServerInqIf( IfSpec: ?*anyopaque, MgrTypeUuid: ?*Guid, MgrEpv: ?*?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) RPC_STATUS; // TODO: this type is limited to platform 'windows5.0' pub extern "rpcrt4" fn RpcServerListen( MinimumCallThreads: u32, MaxCalls: u32, DontWait: u32, ) callconv(@import("std").os.windows.WINAPI) RPC_STATUS; // TODO: this type is limited to platform 'windows5.0' pub extern "rpcrt4" fn RpcServerRegisterIf( IfSpec: ?*anyopaque, MgrTypeUuid: ?*Guid, MgrEpv: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) RPC_STATUS; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "rpcrt4" fn RpcServerRegisterIfEx( IfSpec: ?*anyopaque, MgrTypeUuid: ?*Guid, MgrEpv: ?*anyopaque, Flags: u32, MaxCalls: u32, IfCallback: ?RPC_IF_CALLBACK_FN, ) callconv(@import("std").os.windows.WINAPI) RPC_STATUS; // TODO: this type is limited to platform 'windows5.0' pub extern "rpcrt4" fn RpcServerRegisterIf2( IfSpec: ?*anyopaque, MgrTypeUuid: ?*Guid, MgrEpv: ?*anyopaque, Flags: u32, MaxCalls: u32, MaxRpcSize: u32, IfCallbackFn: ?RPC_IF_CALLBACK_FN, ) callconv(@import("std").os.windows.WINAPI) RPC_STATUS; // TODO: this type is limited to platform 'windows8.0' pub extern "rpcrt4" fn RpcServerRegisterIf3( IfSpec: ?*anyopaque, MgrTypeUuid: ?*Guid, MgrEpv: ?*anyopaque, Flags: u32, MaxCalls: u32, MaxRpcSize: u32, IfCallback: ?RPC_IF_CALLBACK_FN, SecurityDescriptor: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) RPC_STATUS; // TODO: this type is limited to platform 'windows5.0' pub extern "rpcrt4" fn RpcServerUnregisterIf( IfSpec: ?*anyopaque, MgrTypeUuid: ?*Guid, WaitForCallsToComplete: u32, ) callconv(@import("std").os.windows.WINAPI) RPC_STATUS; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "rpcrt4" fn RpcServerUnregisterIfEx( IfSpec: ?*anyopaque, MgrTypeUuid: ?*Guid, RundownContextHandles: i32, ) callconv(@import("std").os.windows.WINAPI) RPC_STATUS; // TODO: this type is limited to platform 'windows5.0' pub extern "rpcrt4" fn RpcServerUseAllProtseqs( MaxCalls: u32, SecurityDescriptor: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) RPC_STATUS; // TODO: this type is limited to platform 'windows5.0' pub extern "rpcrt4" fn RpcServerUseAllProtseqsEx( MaxCalls: u32, SecurityDescriptor: ?*anyopaque, Policy: ?*RPC_POLICY, ) callconv(@import("std").os.windows.WINAPI) RPC_STATUS; // TODO: this type is limited to platform 'windows5.0' pub extern "rpcrt4" fn RpcServerUseAllProtseqsIf( MaxCalls: u32, IfSpec: ?*anyopaque, SecurityDescriptor: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) RPC_STATUS; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "rpcrt4" fn RpcServerUseAllProtseqsIfEx( MaxCalls: u32, IfSpec: ?*anyopaque, SecurityDescriptor: ?*anyopaque, Policy: ?*RPC_POLICY, ) callconv(@import("std").os.windows.WINAPI) RPC_STATUS; // TODO: this type is limited to platform 'windows5.0' pub extern "rpcrt4" fn RpcServerUseProtseqA( Protseq: ?*u8, MaxCalls: u32, SecurityDescriptor: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) RPC_STATUS; // TODO: this type is limited to platform 'windows5.0' pub extern "rpcrt4" fn RpcServerUseProtseqExA( Protseq: ?*u8, MaxCalls: u32, SecurityDescriptor: ?*anyopaque, Policy: ?*RPC_POLICY, ) callconv(@import("std").os.windows.WINAPI) RPC_STATUS; // TODO: this type is limited to platform 'windows5.0' pub extern "rpcrt4" fn RpcServerUseProtseqW( Protseq: ?*u16, MaxCalls: u32, SecurityDescriptor: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) RPC_STATUS; // TODO: this type is limited to platform 'windows5.0' pub extern "rpcrt4" fn RpcServerUseProtseqExW( Protseq: ?*u16, MaxCalls: u32, SecurityDescriptor: ?*anyopaque, Policy: ?*RPC_POLICY, ) callconv(@import("std").os.windows.WINAPI) RPC_STATUS; // TODO: this type is limited to platform 'windows5.0' pub extern "rpcrt4" fn RpcServerUseProtseqEpA( Protseq: ?*u8, MaxCalls: u32, Endpoint: ?*u8, SecurityDescriptor: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) RPC_STATUS; // TODO: this type is limited to platform 'windows5.0' pub extern "rpcrt4" fn RpcServerUseProtseqEpExA( Protseq: ?*u8, MaxCalls: u32, Endpoint: ?*u8, SecurityDescriptor: ?*anyopaque, Policy: ?*RPC_POLICY, ) callconv(@import("std").os.windows.WINAPI) RPC_STATUS; // TODO: this type is limited to platform 'windows5.0' pub extern "rpcrt4" fn RpcServerUseProtseqEpW( Protseq: ?*u16, MaxCalls: u32, Endpoint: ?*u16, SecurityDescriptor: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) RPC_STATUS; // TODO: this type is limited to platform 'windows5.0' pub extern "rpcrt4" fn RpcServerUseProtseqEpExW( Protseq: ?*u16, MaxCalls: u32, Endpoint: ?*u16, SecurityDescriptor: ?*anyopaque, Policy: ?*RPC_POLICY, ) callconv(@import("std").os.windows.WINAPI) RPC_STATUS; // TODO: this type is limited to platform 'windows5.0' pub extern "rpcrt4" fn RpcServerUseProtseqIfA( Protseq: ?*u8, MaxCalls: u32, IfSpec: ?*anyopaque, SecurityDescriptor: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) RPC_STATUS; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "rpcrt4" fn RpcServerUseProtseqIfExA( Protseq: ?*u8, MaxCalls: u32, IfSpec: ?*anyopaque, SecurityDescriptor: ?*anyopaque, Policy: ?*RPC_POLICY, ) callconv(@import("std").os.windows.WINAPI) RPC_STATUS; // TODO: this type is limited to platform 'windows5.0' pub extern "rpcrt4" fn RpcServerUseProtseqIfW( Protseq: ?*u16, MaxCalls: u32, IfSpec: ?*anyopaque, SecurityDescriptor: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) RPC_STATUS; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "rpcrt4" fn RpcServerUseProtseqIfExW( Protseq: ?*u16, MaxCalls: u32, IfSpec: ?*anyopaque, SecurityDescriptor: ?*anyopaque, Policy: ?*RPC_POLICY, ) callconv(@import("std").os.windows.WINAPI) RPC_STATUS; pub extern "rpcrt4" fn RpcServerYield() callconv(@import("std").os.windows.WINAPI) void; // TODO: this type is limited to platform 'windows5.0' pub extern "rpcrt4" fn RpcMgmtStatsVectorFree( StatsVector: ?*?*RPC_STATS_VECTOR, ) callconv(@import("std").os.windows.WINAPI) RPC_STATUS; // TODO: this type is limited to platform 'windows5.0' pub extern "rpcrt4" fn RpcMgmtInqStats( Binding: ?*anyopaque, Statistics: ?*?*RPC_STATS_VECTOR, ) callconv(@import("std").os.windows.WINAPI) RPC_STATUS; // TODO: this type is limited to platform 'windows5.0' pub extern "rpcrt4" fn RpcMgmtIsServerListening( Binding: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) RPC_STATUS; // TODO: this type is limited to platform 'windows5.0' pub extern "rpcrt4" fn RpcMgmtStopServerListening( Binding: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) RPC_STATUS; // TODO: this type is limited to platform 'windows5.0' pub extern "rpcrt4" fn RpcMgmtWaitServerListen() callconv(@import("std").os.windows.WINAPI) RPC_STATUS; // TODO: this type is limited to platform 'windows5.0' pub extern "rpcrt4" fn RpcMgmtSetServerStackSize( ThreadStackSize: u32, ) callconv(@import("std").os.windows.WINAPI) RPC_STATUS; // TODO: this type is limited to platform 'windows5.0' pub extern "rpcrt4" fn RpcSsDontSerializeContext() callconv(@import("std").os.windows.WINAPI) void; // TODO: this type is limited to platform 'windows5.0' pub extern "rpcrt4" fn RpcMgmtEnableIdleCleanup() callconv(@import("std").os.windows.WINAPI) RPC_STATUS; // TODO: this type is limited to platform 'windows5.0' pub extern "rpcrt4" fn RpcMgmtInqIfIds( Binding: ?*anyopaque, IfIdVector: ?*?*RPC_IF_ID_VECTOR, ) callconv(@import("std").os.windows.WINAPI) RPC_STATUS; // TODO: this type is limited to platform 'windows5.0' pub extern "rpcns4" fn RpcIfIdVectorFree( IfIdVector: ?*?*RPC_IF_ID_VECTOR, ) callconv(@import("std").os.windows.WINAPI) RPC_STATUS; // TODO: this type is limited to platform 'windows5.0' pub extern "rpcrt4" fn RpcMgmtInqServerPrincNameA( Binding: ?*anyopaque, AuthnSvc: u32, ServerPrincName: ?*?*u8, ) callconv(@import("std").os.windows.WINAPI) RPC_STATUS; // TODO: this type is limited to platform 'windows5.0' pub extern "rpcrt4" fn RpcMgmtInqServerPrincNameW( Binding: ?*anyopaque, AuthnSvc: u32, ServerPrincName: ?*?*u16, ) callconv(@import("std").os.windows.WINAPI) RPC_STATUS; // TODO: this type is limited to platform 'windows5.0' pub extern "rpcrt4" fn RpcServerInqDefaultPrincNameA( AuthnSvc: u32, PrincName: ?*?*u8, ) callconv(@import("std").os.windows.WINAPI) RPC_STATUS; // TODO: this type is limited to platform 'windows5.0' pub extern "rpcrt4" fn RpcServerInqDefaultPrincNameW( AuthnSvc: u32, PrincName: ?*?*u16, ) callconv(@import("std").os.windows.WINAPI) RPC_STATUS; // TODO: this type is limited to platform 'windows5.0' pub extern "rpcrt4" fn RpcEpResolveBinding( Binding: ?*anyopaque, IfSpec: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) RPC_STATUS; // TODO: this type is limited to platform 'windows5.0' pub extern "rpcrt4" fn RpcNsBindingInqEntryNameA( Binding: ?*anyopaque, EntryNameSyntax: u32, EntryName: ?*?*u8, ) callconv(@import("std").os.windows.WINAPI) RPC_STATUS; // TODO: this type is limited to platform 'windows5.0' pub extern "rpcrt4" fn RpcNsBindingInqEntryNameW( Binding: ?*anyopaque, EntryNameSyntax: u32, EntryName: ?*?*u16, ) callconv(@import("std").os.windows.WINAPI) RPC_STATUS; // TODO: this type is limited to platform 'windows6.0.6000' pub extern "rpcrt4" fn RpcBindingCreateA( Template: ?*RPC_BINDING_HANDLE_TEMPLATE_V1_A, Security: ?*RPC_BINDING_HANDLE_SECURITY_V1_A, Options: ?*RPC_BINDING_HANDLE_OPTIONS_V1, Binding: ?*?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) RPC_STATUS; // TODO: this type is limited to platform 'windows6.0.6000' pub extern "rpcrt4" fn RpcBindingCreateW( Template: ?*RPC_BINDING_HANDLE_TEMPLATE_V1_W, Security: ?*RPC_BINDING_HANDLE_SECURITY_V1_W, Options: ?*RPC_BINDING_HANDLE_OPTIONS_V1, Binding: ?*?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) RPC_STATUS; // TODO: this type is limited to platform 'windows6.0.6000' pub extern "rpcrt4" fn RpcServerInqBindingHandle( Binding: ?*?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) RPC_STATUS; // TODO: this type is limited to platform 'windows5.0' pub extern "rpcrt4" fn RpcImpersonateClient( BindingHandle: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) RPC_STATUS; pub extern "rpcrt4" fn RpcImpersonateClient2( BindingHandle: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) RPC_STATUS; // TODO: this type is limited to platform 'windows5.0' pub extern "rpcrt4" fn RpcRevertToSelfEx( BindingHandle: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) RPC_STATUS; // TODO: this type is limited to platform 'windows5.0' pub extern "rpcrt4" fn RpcRevertToSelf() callconv(@import("std").os.windows.WINAPI) RPC_STATUS; // TODO: this type is limited to platform 'windows10.0.10240' pub extern "rpcrt4" fn RpcImpersonateClientContainer( BindingHandle: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) RPC_STATUS; // TODO: this type is limited to platform 'windows10.0.10240' pub extern "rpcrt4" fn RpcRevertContainerImpersonation() callconv(@import("std").os.windows.WINAPI) RPC_STATUS; // TODO: this type is limited to platform 'windows5.0' pub extern "rpcrt4" fn RpcBindingInqAuthClientA( ClientBinding: ?*anyopaque, Privs: ?*?*anyopaque, ServerPrincName: ?*?*u8, AuthnLevel: ?*u32, AuthnSvc: ?*u32, AuthzSvc: ?*u32, ) callconv(@import("std").os.windows.WINAPI) RPC_STATUS; // TODO: this type is limited to platform 'windows5.0' pub extern "rpcrt4" fn RpcBindingInqAuthClientW( ClientBinding: ?*anyopaque, Privs: ?*?*anyopaque, ServerPrincName: ?*?*u16, AuthnLevel: ?*u32, AuthnSvc: ?*u32, AuthzSvc: ?*u32, ) callconv(@import("std").os.windows.WINAPI) RPC_STATUS; // TODO: this type is limited to platform 'windows5.0' pub extern "rpcrt4" fn RpcBindingInqAuthClientExA( ClientBinding: ?*anyopaque, Privs: ?*?*anyopaque, ServerPrincName: ?*?*u8, AuthnLevel: ?*u32, AuthnSvc: ?*u32, AuthzSvc: ?*u32, Flags: u32, ) callconv(@import("std").os.windows.WINAPI) RPC_STATUS; // TODO: this type is limited to platform 'windows5.0' pub extern "rpcrt4" fn RpcBindingInqAuthClientExW( ClientBinding: ?*anyopaque, Privs: ?*?*anyopaque, ServerPrincName: ?*?*u16, AuthnLevel: ?*u32, AuthnSvc: ?*u32, AuthzSvc: ?*u32, Flags: u32, ) callconv(@import("std").os.windows.WINAPI) RPC_STATUS; // TODO: this type is limited to platform 'windows5.0' pub extern "rpcrt4" fn RpcBindingInqAuthInfoA( Binding: ?*anyopaque, ServerPrincName: ?*?*u8, AuthnLevel: ?*u32, AuthnSvc: ?*u32, AuthIdentity: ?*?*anyopaque, AuthzSvc: ?*u32, ) callconv(@import("std").os.windows.WINAPI) RPC_STATUS; // TODO: this type is limited to platform 'windows5.0' pub extern "rpcrt4" fn RpcBindingInqAuthInfoW( Binding: ?*anyopaque, ServerPrincName: ?*?*u16, AuthnLevel: ?*u32, AuthnSvc: ?*u32, AuthIdentity: ?*?*anyopaque, AuthzSvc: ?*u32, ) callconv(@import("std").os.windows.WINAPI) RPC_STATUS; // TODO: this type is limited to platform 'windows5.0' pub extern "rpcrt4" fn RpcBindingSetAuthInfoA( Binding: ?*anyopaque, ServerPrincName: ?*u8, AuthnLevel: u32, AuthnSvc: u32, AuthIdentity: ?*anyopaque, AuthzSvc: u32, ) callconv(@import("std").os.windows.WINAPI) RPC_STATUS; // TODO: this type is limited to platform 'windows5.0' pub extern "rpcrt4" fn RpcBindingSetAuthInfoExA( Binding: ?*anyopaque, ServerPrincName: ?*u8, AuthnLevel: u32, AuthnSvc: u32, AuthIdentity: ?*anyopaque, AuthzSvc: u32, SecurityQos: ?*RPC_SECURITY_QOS, ) callconv(@import("std").os.windows.WINAPI) RPC_STATUS; // TODO: this type is limited to platform 'windows5.0' pub extern "rpcrt4" fn RpcBindingSetAuthInfoW( Binding: ?*anyopaque, ServerPrincName: ?*u16, AuthnLevel: u32, AuthnSvc: u32, AuthIdentity: ?*anyopaque, AuthzSvc: u32, ) callconv(@import("std").os.windows.WINAPI) RPC_STATUS; // TODO: this type is limited to platform 'windows5.0' pub extern "rpcrt4" fn RpcBindingSetAuthInfoExW( Binding: ?*anyopaque, ServerPrincName: ?*u16, AuthnLevel: u32, AuthnSvc: u32, AuthIdentity: ?*anyopaque, AuthzSvc: u32, SecurityQOS: ?*RPC_SECURITY_QOS, ) callconv(@import("std").os.windows.WINAPI) RPC_STATUS; // TODO: this type is limited to platform 'windows5.0' pub extern "rpcrt4" fn RpcBindingInqAuthInfoExA( Binding: ?*anyopaque, ServerPrincName: ?*?*u8, AuthnLevel: ?*u32, AuthnSvc: ?*u32, AuthIdentity: ?*?*anyopaque, AuthzSvc: ?*u32, RpcQosVersion: u32, SecurityQOS: ?*RPC_SECURITY_QOS, ) callconv(@import("std").os.windows.WINAPI) RPC_STATUS; // TODO: this type is limited to platform 'windows5.0' pub extern "rpcrt4" fn RpcBindingInqAuthInfoExW( Binding: ?*anyopaque, ServerPrincName: ?*?*u16, AuthnLevel: ?*u32, AuthnSvc: ?*u32, AuthIdentity: ?*?*anyopaque, AuthzSvc: ?*u32, RpcQosVersion: u32, SecurityQOS: ?*RPC_SECURITY_QOS, ) callconv(@import("std").os.windows.WINAPI) RPC_STATUS; // TODO: this type is limited to platform 'windows5.0' pub extern "rpcrt4" fn RpcServerCompleteSecurityCallback( BindingHandle: ?*anyopaque, Status: RPC_STATUS, ) callconv(@import("std").os.windows.WINAPI) RPC_STATUS; // TODO: this type is limited to platform 'windows5.0' pub extern "rpcrt4" fn RpcServerRegisterAuthInfoA( ServerPrincName: ?*u8, AuthnSvc: u32, GetKeyFn: ?RPC_AUTH_KEY_RETRIEVAL_FN, Arg: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) RPC_STATUS; // TODO: this type is limited to platform 'windows5.0' pub extern "rpcrt4" fn RpcServerRegisterAuthInfoW( ServerPrincName: ?*u16, AuthnSvc: u32, GetKeyFn: ?RPC_AUTH_KEY_RETRIEVAL_FN, Arg: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) RPC_STATUS; // TODO: this type is limited to platform 'windows5.0' pub extern "rpcrt4" fn RpcBindingServerFromClient( ClientBinding: ?*anyopaque, ServerBinding: ?*?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) RPC_STATUS; // TODO: this type is limited to platform 'windows5.0' pub extern "rpcrt4" fn RpcRaiseException( exception: RPC_STATUS, ) callconv(@import("std").os.windows.WINAPI) void; // TODO: this type is limited to platform 'windows5.0' pub extern "rpcrt4" fn RpcTestCancel() callconv(@import("std").os.windows.WINAPI) RPC_STATUS; // TODO: this type is limited to platform 'windows5.0' pub extern "rpcrt4" fn RpcServerTestCancel( BindingHandle: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) RPC_STATUS; // TODO: this type is limited to platform 'windows5.0' pub extern "rpcrt4" fn RpcCancelThread( Thread: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) RPC_STATUS; // TODO: this type is limited to platform 'windows5.0' pub extern "rpcrt4" fn RpcCancelThreadEx( Thread: ?*anyopaque, Timeout: i32, ) callconv(@import("std").os.windows.WINAPI) RPC_STATUS; // TODO: this type is limited to platform 'windows5.0' pub extern "rpcrt4" fn UuidCreate( Uuid: ?*Guid, ) callconv(@import("std").os.windows.WINAPI) RPC_STATUS; // TODO: this type is limited to platform 'windows5.0' pub extern "rpcrt4" fn UuidCreateSequential( Uuid: ?*Guid, ) callconv(@import("std").os.windows.WINAPI) RPC_STATUS; // TODO: this type is limited to platform 'windows5.0' pub extern "rpcrt4" fn UuidToStringA( Uuid: ?*const Guid, StringUuid: ?*?*u8, ) callconv(@import("std").os.windows.WINAPI) RPC_STATUS; // TODO: this type is limited to platform 'windows5.0' pub extern "rpcrt4" fn UuidFromStringA( StringUuid: ?*u8, Uuid: ?*Guid, ) callconv(@import("std").os.windows.WINAPI) RPC_STATUS; // TODO: this type is limited to platform 'windows5.0' pub extern "rpcrt4" fn UuidToStringW( Uuid: ?*const Guid, StringUuid: ?*?*u16, ) callconv(@import("std").os.windows.WINAPI) RPC_STATUS; // TODO: this type is limited to platform 'windows5.0' pub extern "rpcrt4" fn UuidFromStringW( StringUuid: ?*u16, Uuid: ?*Guid, ) callconv(@import("std").os.windows.WINAPI) RPC_STATUS; // TODO: this type is limited to platform 'windows5.0' pub extern "rpcrt4" fn UuidCompare( Uuid1: ?*Guid, Uuid2: ?*Guid, Status: ?*RPC_STATUS, ) callconv(@import("std").os.windows.WINAPI) i32; // TODO: this type is limited to platform 'windows5.0' pub extern "rpcrt4" fn UuidCreateNil( NilUuid: ?*Guid, ) callconv(@import("std").os.windows.WINAPI) RPC_STATUS; // TODO: this type is limited to platform 'windows5.0' pub extern "rpcrt4" fn UuidEqual( Uuid1: ?*Guid, Uuid2: ?*Guid, Status: ?*RPC_STATUS, ) callconv(@import("std").os.windows.WINAPI) i32; // TODO: this type is limited to platform 'windows5.0' pub extern "rpcrt4" fn UuidHash( Uuid: ?*Guid, Status: ?*RPC_STATUS, ) callconv(@import("std").os.windows.WINAPI) u16; // TODO: this type is limited to platform 'windows5.0' pub extern "rpcrt4" fn UuidIsNil( Uuid: ?*Guid, Status: ?*RPC_STATUS, ) callconv(@import("std").os.windows.WINAPI) i32; // TODO: this type is limited to platform 'windows5.0' pub extern "rpcrt4" fn RpcEpRegisterNoReplaceA( IfSpec: ?*anyopaque, BindingVector: ?*RPC_BINDING_VECTOR, UuidVector: ?*UUID_VECTOR, Annotation: ?*u8, ) callconv(@import("std").os.windows.WINAPI) RPC_STATUS; // TODO: this type is limited to platform 'windows5.0' pub extern "rpcrt4" fn RpcEpRegisterNoReplaceW( IfSpec: ?*anyopaque, BindingVector: ?*RPC_BINDING_VECTOR, UuidVector: ?*UUID_VECTOR, Annotation: ?*u16, ) callconv(@import("std").os.windows.WINAPI) RPC_STATUS; // TODO: this type is limited to platform 'windows5.0' pub extern "rpcrt4" fn RpcEpRegisterA( IfSpec: ?*anyopaque, BindingVector: ?*RPC_BINDING_VECTOR, UuidVector: ?*UUID_VECTOR, Annotation: ?*u8, ) callconv(@import("std").os.windows.WINAPI) RPC_STATUS; // TODO: this type is limited to platform 'windows5.0' pub extern "rpcrt4" fn RpcEpRegisterW( IfSpec: ?*anyopaque, BindingVector: ?*RPC_BINDING_VECTOR, UuidVector: ?*UUID_VECTOR, Annotation: ?*u16, ) callconv(@import("std").os.windows.WINAPI) RPC_STATUS; // TODO: this type is limited to platform 'windows5.0' pub extern "rpcrt4" fn RpcEpUnregister( IfSpec: ?*anyopaque, BindingVector: ?*RPC_BINDING_VECTOR, UuidVector: ?*UUID_VECTOR, ) callconv(@import("std").os.windows.WINAPI) RPC_STATUS; // TODO: this type is limited to platform 'windows5.0' pub extern "rpcrt4" fn DceErrorInqTextA( RpcStatus: RPC_STATUS, ErrorText: *[256]u8, ) callconv(@import("std").os.windows.WINAPI) RPC_STATUS; // TODO: this type is limited to platform 'windows5.0' pub extern "rpcrt4" fn DceErrorInqTextW( RpcStatus: RPC_STATUS, ErrorText: *[256]u16, ) callconv(@import("std").os.windows.WINAPI) RPC_STATUS; // TODO: this type is limited to platform 'windows5.0' pub extern "rpcrt4" fn RpcMgmtEpEltInqBegin( EpBinding: ?*anyopaque, InquiryType: u32, IfId: ?*RPC_IF_ID, VersOption: u32, ObjectUuid: ?*Guid, InquiryContext: ?*?*?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) RPC_STATUS; // TODO: this type is limited to platform 'windows5.0' pub extern "rpcrt4" fn RpcMgmtEpEltInqDone( InquiryContext: ?*?*?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) RPC_STATUS; // TODO: this type is limited to platform 'windows5.0' pub extern "rpcrt4" fn RpcMgmtEpEltInqNextA( InquiryContext: ?*?*anyopaque, IfId: ?*RPC_IF_ID, Binding: ?*?*anyopaque, ObjectUuid: ?*Guid, Annotation: ?*?*u8, ) callconv(@import("std").os.windows.WINAPI) RPC_STATUS; // TODO: this type is limited to platform 'windows5.0' pub extern "rpcrt4" fn RpcMgmtEpEltInqNextW( InquiryContext: ?*?*anyopaque, IfId: ?*RPC_IF_ID, Binding: ?*?*anyopaque, ObjectUuid: ?*Guid, Annotation: ?*?*u16, ) callconv(@import("std").os.windows.WINAPI) RPC_STATUS; pub extern "rpcrt4" fn RpcMgmtEpUnregister( EpBinding: ?*anyopaque, IfId: ?*RPC_IF_ID, Binding: ?*anyopaque, ObjectUuid: ?*Guid, ) callconv(@import("std").os.windows.WINAPI) RPC_STATUS; // TODO: this type is limited to platform 'windows5.0' pub extern "rpcrt4" fn RpcMgmtSetAuthorizationFn( AuthorizationFn: ?RPC_MGMT_AUTHORIZATION_FN, ) callconv(@import("std").os.windows.WINAPI) RPC_STATUS; // TODO: this type is limited to platform 'windows6.0.6000' pub extern "rpcrt4" fn RpcExceptionFilter( ExceptionCode: u32, ) callconv(@import("std").os.windows.WINAPI) i32; // TODO: this type is limited to platform 'windows8.0' pub extern "rpcrt4" fn RpcServerInterfaceGroupCreateW( Interfaces: [*]RPC_INTERFACE_TEMPLATEW, NumIfs: u32, Endpoints: [*]RPC_ENDPOINT_TEMPLATEW, NumEndpoints: u32, IdlePeriod: u32, IdleCallbackFn: ?RPC_INTERFACE_GROUP_IDLE_CALLBACK_FN, IdleCallbackContext: ?*anyopaque, IfGroup: ?*?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) RPC_STATUS; // TODO: this type is limited to platform 'windows8.0' pub extern "rpcrt4" fn RpcServerInterfaceGroupCreateA( Interfaces: [*]RPC_INTERFACE_TEMPLATEA, NumIfs: u32, Endpoints: [*]RPC_ENDPOINT_TEMPLATEA, NumEndpoints: u32, IdlePeriod: u32, IdleCallbackFn: ?RPC_INTERFACE_GROUP_IDLE_CALLBACK_FN, IdleCallbackContext: ?*anyopaque, IfGroup: ?*?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) RPC_STATUS; // TODO: this type is limited to platform 'windows8.0' pub extern "rpcrt4" fn RpcServerInterfaceGroupClose( IfGroup: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) RPC_STATUS; // TODO: this type is limited to platform 'windows8.0' pub extern "rpcrt4" fn RpcServerInterfaceGroupActivate( IfGroup: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) RPC_STATUS; // TODO: this type is limited to platform 'windows8.0' pub extern "rpcrt4" fn RpcServerInterfaceGroupDeactivate( IfGroup: ?*anyopaque, ForceDeactivation: u32, ) callconv(@import("std").os.windows.WINAPI) RPC_STATUS; // TODO: this type is limited to platform 'windows8.0' pub extern "rpcrt4" fn RpcServerInterfaceGroupInqBindings( IfGroup: ?*anyopaque, BindingVector: ?*?*RPC_BINDING_VECTOR, ) callconv(@import("std").os.windows.WINAPI) RPC_STATUS; pub extern "rpcrt4" fn I_RpcNegotiateTransferSyntax( Message: ?*RPC_MESSAGE, ) callconv(@import("std").os.windows.WINAPI) RPC_STATUS; pub extern "rpcrt4" fn I_RpcGetBuffer( Message: ?*RPC_MESSAGE, ) callconv(@import("std").os.windows.WINAPI) RPC_STATUS; pub extern "rpcrt4" fn I_RpcGetBufferWithObject( Message: ?*RPC_MESSAGE, ObjectUuid: ?*Guid, ) callconv(@import("std").os.windows.WINAPI) RPC_STATUS; pub extern "rpcrt4" fn I_RpcSendReceive( Message: ?*RPC_MESSAGE, ) callconv(@import("std").os.windows.WINAPI) RPC_STATUS; pub extern "rpcrt4" fn I_RpcFreeBuffer( Message: ?*RPC_MESSAGE, ) callconv(@import("std").os.windows.WINAPI) RPC_STATUS; pub extern "rpcrt4" fn I_RpcSend( Message: ?*RPC_MESSAGE, ) callconv(@import("std").os.windows.WINAPI) RPC_STATUS; pub extern "rpcrt4" fn I_RpcReceive( Message: ?*RPC_MESSAGE, Size: u32, ) callconv(@import("std").os.windows.WINAPI) RPC_STATUS; pub extern "rpcrt4" fn I_RpcFreePipeBuffer( Message: ?*RPC_MESSAGE, ) callconv(@import("std").os.windows.WINAPI) RPC_STATUS; pub extern "rpcrt4" fn I_RpcReallocPipeBuffer( Message: ?*RPC_MESSAGE, NewSize: u32, ) callconv(@import("std").os.windows.WINAPI) RPC_STATUS; pub extern "rpcrt4" fn I_RpcRequestMutex( Mutex: ?*?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) void; pub extern "rpcrt4" fn I_RpcClearMutex( Mutex: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) void; pub extern "rpcrt4" fn I_RpcDeleteMutex( Mutex: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) void; pub extern "rpcrt4" fn I_RpcAllocate( Size: u32, ) callconv(@import("std").os.windows.WINAPI) ?*anyopaque; pub extern "rpcrt4" fn I_RpcFree( Object: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) void; pub extern "rpcrt4" fn I_RpcPauseExecution( Milliseconds: u32, ) callconv(@import("std").os.windows.WINAPI) void; pub extern "rpcrt4" fn I_RpcGetExtendedError() callconv(@import("std").os.windows.WINAPI) RPC_STATUS; pub extern "rpcrt4" fn I_RpcSystemHandleTypeSpecificWork( Handle: ?*anyopaque, ActualType: u8, IdlType: u8, MarshalDirection: LRPC_SYSTEM_HANDLE_MARSHAL_DIRECTION, ) callconv(@import("std").os.windows.WINAPI) RPC_STATUS; pub extern "rpcrt4" fn I_RpcGetCurrentCallHandle() callconv(@import("std").os.windows.WINAPI) ?*anyopaque; pub extern "rpcrt4" fn I_RpcNsInterfaceExported( EntryNameSyntax: u32, EntryName: ?*u16, RpcInterfaceInformation: ?*RPC_SERVER_INTERFACE, ) callconv(@import("std").os.windows.WINAPI) RPC_STATUS; pub extern "rpcrt4" fn I_RpcNsInterfaceUnexported( EntryNameSyntax: u32, EntryName: ?*u16, RpcInterfaceInformation: ?*RPC_SERVER_INTERFACE, ) callconv(@import("std").os.windows.WINAPI) RPC_STATUS; pub extern "rpcrt4" fn I_RpcBindingToStaticStringBindingW( Binding: ?*anyopaque, StringBinding: ?*?*u16, ) callconv(@import("std").os.windows.WINAPI) RPC_STATUS; pub extern "rpcrt4" fn I_RpcBindingInqSecurityContext( Binding: ?*anyopaque, SecurityContextHandle: ?*?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) RPC_STATUS; pub extern "rpcrt4" fn I_RpcBindingInqSecurityContextKeyInfo( Binding: ?*anyopaque, KeyInfo: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) RPC_STATUS; pub extern "rpcrt4" fn I_RpcBindingInqWireIdForSnego( Binding: ?*anyopaque, WireId: ?*u8, ) callconv(@import("std").os.windows.WINAPI) RPC_STATUS; pub extern "rpcrt4" fn I_RpcBindingInqMarshalledTargetInfo( Binding: ?*anyopaque, MarshalledTargetInfoSize: ?*u32, MarshalledTargetInfo: ?*?*u8, ) callconv(@import("std").os.windows.WINAPI) RPC_STATUS; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "rpcrt4" fn I_RpcBindingInqLocalClientPID( Binding: ?*anyopaque, Pid: ?*u32, ) callconv(@import("std").os.windows.WINAPI) RPC_STATUS; pub extern "rpcrt4" fn I_RpcBindingHandleToAsyncHandle( Binding: ?*anyopaque, AsyncHandle: ?*?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) RPC_STATUS; pub extern "rpcrt4" fn I_RpcNsBindingSetEntryNameW( Binding: ?*anyopaque, EntryNameSyntax: u32, EntryName: ?*u16, ) callconv(@import("std").os.windows.WINAPI) RPC_STATUS; pub extern "rpcrt4" fn I_RpcNsBindingSetEntryNameA( Binding: ?*anyopaque, EntryNameSyntax: u32, EntryName: ?*u8, ) callconv(@import("std").os.windows.WINAPI) RPC_STATUS; pub extern "rpcrt4" fn I_RpcServerUseProtseqEp2A( NetworkAddress: ?*u8, Protseq: ?*u8, MaxCalls: u32, Endpoint: ?*u8, SecurityDescriptor: ?*anyopaque, Policy: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) RPC_STATUS; pub extern "rpcrt4" fn I_RpcServerUseProtseqEp2W( NetworkAddress: ?*u16, Protseq: ?*u16, MaxCalls: u32, Endpoint: ?*u16, SecurityDescriptor: ?*anyopaque, Policy: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) RPC_STATUS; pub extern "rpcrt4" fn I_RpcServerUseProtseq2W( NetworkAddress: ?*u16, Protseq: ?*u16, MaxCalls: u32, SecurityDescriptor: ?*anyopaque, Policy: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) RPC_STATUS; pub extern "rpcrt4" fn I_RpcServerUseProtseq2A( NetworkAddress: ?*u8, Protseq: ?*u8, MaxCalls: u32, SecurityDescriptor: ?*anyopaque, Policy: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) RPC_STATUS; pub extern "rpcrt4" fn I_RpcServerStartService( Protseq: ?*u16, Endpoint: ?*u16, IfSpec: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) RPC_STATUS; pub extern "rpcrt4" fn I_RpcBindingInqDynamicEndpointW( Binding: ?*anyopaque, DynamicEndpoint: ?*?*u16, ) callconv(@import("std").os.windows.WINAPI) RPC_STATUS; pub extern "rpcrt4" fn I_RpcBindingInqDynamicEndpointA( Binding: ?*anyopaque, DynamicEndpoint: ?*?*u8, ) callconv(@import("std").os.windows.WINAPI) RPC_STATUS; pub extern "rpcrt4" fn I_RpcServerCheckClientRestriction( Context: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) RPC_STATUS; pub extern "rpcrt4" fn I_RpcBindingInqTransportType( Binding: ?*anyopaque, Type: ?*u32, ) callconv(@import("std").os.windows.WINAPI) RPC_STATUS; pub extern "rpcrt4" fn I_RpcIfInqTransferSyntaxes( RpcIfHandle: ?*anyopaque, TransferSyntaxes: ?*RPC_TRANSFER_SYNTAX, TransferSyntaxSize: u32, TransferSyntaxCount: ?*u32, ) callconv(@import("std").os.windows.WINAPI) RPC_STATUS; pub extern "rpcrt4" fn I_UuidCreate( Uuid: ?*Guid, ) callconv(@import("std").os.windows.WINAPI) RPC_STATUS; pub extern "rpcrt4" fn I_RpcBindingCopy( SourceBinding: ?*anyopaque, DestinationBinding: ?*?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) RPC_STATUS; pub extern "rpcrt4" fn I_RpcBindingIsClientLocal( BindingHandle: ?*anyopaque, ClientLocalFlag: ?*u32, ) callconv(@import("std").os.windows.WINAPI) RPC_STATUS; pub extern "rpcrt4" fn I_RpcBindingCreateNP( ServerName: ?*u16, ServiceName: ?*u16, NetworkOptions: ?*u16, Binding: ?*?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) RPC_STATUS; pub extern "rpcrt4" fn I_RpcSsDontSerializeContext() callconv(@import("std").os.windows.WINAPI) void; pub extern "rpcrt4" fn I_RpcServerRegisterForwardFunction( pForwardFunction: ?*?RPC_FORWARD_FUNCTION, ) callconv(@import("std").os.windows.WINAPI) RPC_STATUS; pub extern "rpcrt4" fn I_RpcServerInqAddressChangeFn() callconv(@import("std").os.windows.WINAPI) ?*?RPC_ADDRESS_CHANGE_FN; pub extern "rpcrt4" fn I_RpcServerSetAddressChangeFn( pAddressChangeFn: ?*?RPC_ADDRESS_CHANGE_FN, ) callconv(@import("std").os.windows.WINAPI) RPC_STATUS; pub extern "rpcrt4" fn I_RpcServerInqLocalConnAddress( Binding: ?*anyopaque, Buffer: ?*anyopaque, BufferSize: ?*u32, AddressFormat: ?*u32, ) callconv(@import("std").os.windows.WINAPI) RPC_STATUS; pub extern "rpcrt4" fn I_RpcServerInqRemoteConnAddress( Binding: ?*anyopaque, Buffer: ?*anyopaque, BufferSize: ?*u32, AddressFormat: ?*u32, ) callconv(@import("std").os.windows.WINAPI) RPC_STATUS; pub extern "rpcrt4" fn I_RpcSessionStrictContextHandle() callconv(@import("std").os.windows.WINAPI) void; pub extern "rpcrt4" fn I_RpcTurnOnEEInfoPropagation() callconv(@import("std").os.windows.WINAPI) RPC_STATUS; pub extern "rpcrt4" fn I_RpcServerInqTransportType( Type: ?*u32, ) callconv(@import("std").os.windows.WINAPI) RPC_STATUS; pub extern "rpcrt4" fn I_RpcMapWin32Status( Status: RPC_STATUS, ) callconv(@import("std").os.windows.WINAPI) i32; pub extern "rpcrt4" fn I_RpcRecordCalloutFailure( RpcStatus: RPC_STATUS, CallOutState: ?*RDR_CALLOUT_STATE, DllName: ?*u16, ) callconv(@import("std").os.windows.WINAPI) void; pub extern "rpcrt4" fn I_RpcMgmtEnableDedicatedThreadPool() callconv(@import("std").os.windows.WINAPI) RPC_STATUS; pub extern "rpcrt4" fn I_RpcGetDefaultSD( ppSecurityDescriptor: ?*?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) RPC_STATUS; pub extern "rpcrt4" fn I_RpcOpenClientProcess( Binding: ?*anyopaque, DesiredAccess: u32, ClientProcess: ?*?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) RPC_STATUS; pub extern "rpcrt4" fn I_RpcBindingIsServerLocal( Binding: ?*anyopaque, ServerLocalFlag: ?*u32, ) callconv(@import("std").os.windows.WINAPI) RPC_STATUS; pub extern "rpcrt4" fn I_RpcBindingSetPrivateOption( hBinding: ?*anyopaque, option: u32, optionValue: usize, ) callconv(@import("std").os.windows.WINAPI) RPC_STATUS; pub extern "rpcrt4" fn I_RpcServerSubscribeForDisconnectNotification( Binding: ?*anyopaque, hEvent: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) RPC_STATUS; pub extern "rpcrt4" fn I_RpcServerGetAssociationID( Binding: ?*anyopaque, AssociationID: ?*u32, ) callconv(@import("std").os.windows.WINAPI) RPC_STATUS; pub extern "rpcrt4" fn I_RpcServerDisableExceptionFilter() callconv(@import("std").os.windows.WINAPI) i32; pub extern "rpcrt4" fn I_RpcServerSubscribeForDisconnectNotification2( Binding: ?*anyopaque, hEvent: ?*anyopaque, SubscriptionId: ?*Guid, ) callconv(@import("std").os.windows.WINAPI) RPC_STATUS; pub extern "rpcrt4" fn I_RpcServerUnsubscribeForDisconnectNotification( Binding: ?*anyopaque, SubscriptionId: Guid, ) callconv(@import("std").os.windows.WINAPI) RPC_STATUS; // TODO: this type is limited to platform 'windows5.0' pub extern "rpcns4" fn RpcNsBindingExportA( EntryNameSyntax: u32, EntryName: ?*u8, IfSpec: ?*anyopaque, BindingVec: ?*RPC_BINDING_VECTOR, ObjectUuidVec: ?*UUID_VECTOR, ) callconv(@import("std").os.windows.WINAPI) RPC_STATUS; // TODO: this type is limited to platform 'windows5.0' pub extern "rpcns4" fn RpcNsBindingUnexportA( EntryNameSyntax: u32, EntryName: ?*u8, IfSpec: ?*anyopaque, ObjectUuidVec: ?*UUID_VECTOR, ) callconv(@import("std").os.windows.WINAPI) RPC_STATUS; // TODO: this type is limited to platform 'windows5.0' pub extern "rpcns4" fn RpcNsBindingExportW( EntryNameSyntax: u32, EntryName: ?*u16, IfSpec: ?*anyopaque, BindingVec: ?*RPC_BINDING_VECTOR, ObjectUuidVec: ?*UUID_VECTOR, ) callconv(@import("std").os.windows.WINAPI) RPC_STATUS; // TODO: this type is limited to platform 'windows5.0' pub extern "rpcns4" fn RpcNsBindingUnexportW( EntryNameSyntax: u32, EntryName: ?*u16, IfSpec: ?*anyopaque, ObjectUuidVec: ?*UUID_VECTOR, ) callconv(@import("std").os.windows.WINAPI) RPC_STATUS; // TODO: this type is limited to platform 'windows5.0' pub extern "rpcns4" fn RpcNsBindingExportPnPA( EntryNameSyntax: u32, EntryName: ?*u8, IfSpec: ?*anyopaque, ObjectVector: ?*UUID_VECTOR, ) callconv(@import("std").os.windows.WINAPI) RPC_STATUS; // TODO: this type is limited to platform 'windows5.0' pub extern "rpcns4" fn RpcNsBindingUnexportPnPA( EntryNameSyntax: u32, EntryName: ?*u8, IfSpec: ?*anyopaque, ObjectVector: ?*UUID_VECTOR, ) callconv(@import("std").os.windows.WINAPI) RPC_STATUS; // TODO: this type is limited to platform 'windows5.0' pub extern "rpcns4" fn RpcNsBindingExportPnPW( EntryNameSyntax: u32, EntryName: ?*u16, IfSpec: ?*anyopaque, ObjectVector: ?*UUID_VECTOR, ) callconv(@import("std").os.windows.WINAPI) RPC_STATUS; // TODO: this type is limited to platform 'windows5.0' pub extern "rpcns4" fn RpcNsBindingUnexportPnPW( EntryNameSyntax: u32, EntryName: ?*u16, IfSpec: ?*anyopaque, ObjectVector: ?*UUID_VECTOR, ) callconv(@import("std").os.windows.WINAPI) RPC_STATUS; // TODO: this type is limited to platform 'windows5.0' pub extern "rpcns4" fn RpcNsBindingLookupBeginA( EntryNameSyntax: u32, EntryName: ?*u8, IfSpec: ?*anyopaque, ObjUuid: ?*Guid, BindingMaxCount: u32, LookupContext: ?*?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) RPC_STATUS; // TODO: this type is limited to platform 'windows5.0' pub extern "rpcns4" fn RpcNsBindingLookupBeginW( EntryNameSyntax: u32, EntryName: ?*u16, IfSpec: ?*anyopaque, ObjUuid: ?*Guid, BindingMaxCount: u32, LookupContext: ?*?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) RPC_STATUS; // TODO: this type is limited to platform 'windows5.0' pub extern "rpcns4" fn RpcNsBindingLookupNext( LookupContext: ?*anyopaque, BindingVec: ?*?*RPC_BINDING_VECTOR, ) callconv(@import("std").os.windows.WINAPI) RPC_STATUS; // TODO: this type is limited to platform 'windows5.0' pub extern "rpcns4" fn RpcNsBindingLookupDone( LookupContext: ?*?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) RPC_STATUS; // TODO: this type is limited to platform 'windows5.0' pub extern "rpcns4" fn RpcNsGroupDeleteA( GroupNameSyntax: GROUP_NAME_SYNTAX, GroupName: ?*u8, ) callconv(@import("std").os.windows.WINAPI) RPC_STATUS; // TODO: this type is limited to platform 'windows5.0' pub extern "rpcns4" fn RpcNsGroupMbrAddA( GroupNameSyntax: u32, GroupName: ?*u8, MemberNameSyntax: u32, MemberName: ?*u8, ) callconv(@import("std").os.windows.WINAPI) RPC_STATUS; // TODO: this type is limited to platform 'windows5.0' pub extern "rpcns4" fn RpcNsGroupMbrRemoveA( GroupNameSyntax: u32, GroupName: ?*u8, MemberNameSyntax: u32, MemberName: ?*u8, ) callconv(@import("std").os.windows.WINAPI) RPC_STATUS; // TODO: this type is limited to platform 'windows5.0' pub extern "rpcns4" fn RpcNsGroupMbrInqBeginA( GroupNameSyntax: u32, GroupName: ?*u8, MemberNameSyntax: u32, InquiryContext: ?*?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) RPC_STATUS; // TODO: this type is limited to platform 'windows5.0' pub extern "rpcns4" fn RpcNsGroupMbrInqNextA( InquiryContext: ?*anyopaque, MemberName: ?*?*u8, ) callconv(@import("std").os.windows.WINAPI) RPC_STATUS; // TODO: this type is limited to platform 'windows5.0' pub extern "rpcns4" fn RpcNsGroupDeleteW( GroupNameSyntax: GROUP_NAME_SYNTAX, GroupName: ?*u16, ) callconv(@import("std").os.windows.WINAPI) RPC_STATUS; // TODO: this type is limited to platform 'windows5.0' pub extern "rpcns4" fn RpcNsGroupMbrAddW( GroupNameSyntax: u32, GroupName: ?*u16, MemberNameSyntax: u32, MemberName: ?*u16, ) callconv(@import("std").os.windows.WINAPI) RPC_STATUS; // TODO: this type is limited to platform 'windows5.0' pub extern "rpcns4" fn RpcNsGroupMbrRemoveW( GroupNameSyntax: u32, GroupName: ?*u16, MemberNameSyntax: u32, MemberName: ?*u16, ) callconv(@import("std").os.windows.WINAPI) RPC_STATUS; // TODO: this type is limited to platform 'windows5.0' pub extern "rpcns4" fn RpcNsGroupMbrInqBeginW( GroupNameSyntax: u32, GroupName: ?*u16, MemberNameSyntax: u32, InquiryContext: ?*?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) RPC_STATUS; // TODO: this type is limited to platform 'windows5.0' pub extern "rpcns4" fn RpcNsGroupMbrInqNextW( InquiryContext: ?*anyopaque, MemberName: ?*?*u16, ) callconv(@import("std").os.windows.WINAPI) RPC_STATUS; // TODO: this type is limited to platform 'windows5.0' pub extern "rpcns4" fn RpcNsGroupMbrInqDone( InquiryContext: ?*?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) RPC_STATUS; // TODO: this type is limited to platform 'windows5.0' pub extern "rpcns4" fn RpcNsProfileDeleteA( ProfileNameSyntax: u32, ProfileName: ?*u8, ) callconv(@import("std").os.windows.WINAPI) RPC_STATUS; // TODO: this type is limited to platform 'windows5.0' pub extern "rpcns4" fn RpcNsProfileEltAddA( ProfileNameSyntax: u32, ProfileName: ?*u8, IfId: ?*RPC_IF_ID, MemberNameSyntax: u32, MemberName: ?*u8, Priority: u32, Annotation: ?*u8, ) callconv(@import("std").os.windows.WINAPI) RPC_STATUS; // TODO: this type is limited to platform 'windows5.0' pub extern "rpcns4" fn RpcNsProfileEltRemoveA( ProfileNameSyntax: u32, ProfileName: ?*u8, IfId: ?*RPC_IF_ID, MemberNameSyntax: u32, MemberName: ?*u8, ) callconv(@import("std").os.windows.WINAPI) RPC_STATUS; // TODO: this type is limited to platform 'windows5.0' pub extern "rpcns4" fn RpcNsProfileEltInqBeginA( ProfileNameSyntax: u32, ProfileName: ?*u8, InquiryType: u32, IfId: ?*RPC_IF_ID, VersOption: u32, MemberNameSyntax: u32, MemberName: ?*u8, InquiryContext: ?*?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) RPC_STATUS; // TODO: this type is limited to platform 'windows5.0' pub extern "rpcns4" fn RpcNsProfileEltInqNextA( InquiryContext: ?*anyopaque, IfId: ?*RPC_IF_ID, MemberName: ?*?*u8, Priority: ?*u32, Annotation: ?*?*u8, ) callconv(@import("std").os.windows.WINAPI) RPC_STATUS; // TODO: this type is limited to platform 'windows5.0' pub extern "rpcns4" fn RpcNsProfileDeleteW( ProfileNameSyntax: u32, ProfileName: ?*u16, ) callconv(@import("std").os.windows.WINAPI) RPC_STATUS; // TODO: this type is limited to platform 'windows5.0' pub extern "rpcns4" fn RpcNsProfileEltAddW( ProfileNameSyntax: u32, ProfileName: ?*u16, IfId: ?*RPC_IF_ID, MemberNameSyntax: u32, MemberName: ?*u16, Priority: u32, Annotation: ?*u16, ) callconv(@import("std").os.windows.WINAPI) RPC_STATUS; // TODO: this type is limited to platform 'windows5.0' pub extern "rpcns4" fn RpcNsProfileEltRemoveW( ProfileNameSyntax: u32, ProfileName: ?*u16, IfId: ?*RPC_IF_ID, MemberNameSyntax: u32, MemberName: ?*u16, ) callconv(@import("std").os.windows.WINAPI) RPC_STATUS; // TODO: this type is limited to platform 'windows5.0' pub extern "rpcns4" fn RpcNsProfileEltInqBeginW( ProfileNameSyntax: u32, ProfileName: ?*u16, InquiryType: u32, IfId: ?*RPC_IF_ID, VersOption: u32, MemberNameSyntax: u32, MemberName: ?*u16, InquiryContext: ?*?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) RPC_STATUS; // TODO: this type is limited to platform 'windows5.0' pub extern "rpcns4" fn RpcNsProfileEltInqNextW( InquiryContext: ?*anyopaque, IfId: ?*RPC_IF_ID, MemberName: ?*?*u16, Priority: ?*u32, Annotation: ?*?*u16, ) callconv(@import("std").os.windows.WINAPI) RPC_STATUS; // TODO: this type is limited to platform 'windows5.0' pub extern "rpcns4" fn RpcNsProfileEltInqDone( InquiryContext: ?*?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) RPC_STATUS; // TODO: this type is limited to platform 'windows5.0' pub extern "rpcns4" fn RpcNsEntryObjectInqBeginA( EntryNameSyntax: u32, EntryName: ?*u8, InquiryContext: ?*?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) RPC_STATUS; // TODO: this type is limited to platform 'windows5.0' pub extern "rpcns4" fn RpcNsEntryObjectInqBeginW( EntryNameSyntax: u32, EntryName: ?*u16, InquiryContext: ?*?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) RPC_STATUS; // TODO: this type is limited to platform 'windows5.0' pub extern "rpcns4" fn RpcNsEntryObjectInqNext( InquiryContext: ?*anyopaque, ObjUuid: ?*Guid, ) callconv(@import("std").os.windows.WINAPI) RPC_STATUS; // TODO: this type is limited to platform 'windows5.0' pub extern "rpcns4" fn RpcNsEntryObjectInqDone( InquiryContext: ?*?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) RPC_STATUS; // TODO: this type is limited to platform 'windows5.0' pub extern "rpcns4" fn RpcNsEntryExpandNameA( EntryNameSyntax: u32, EntryName: ?*u8, ExpandedName: ?*?*u8, ) callconv(@import("std").os.windows.WINAPI) RPC_STATUS; // TODO: this type is limited to platform 'windows5.0' pub extern "rpcns4" fn RpcNsMgmtBindingUnexportA( EntryNameSyntax: u32, EntryName: ?*u8, IfId: ?*RPC_IF_ID, VersOption: u32, ObjectUuidVec: ?*UUID_VECTOR, ) callconv(@import("std").os.windows.WINAPI) RPC_STATUS; // TODO: this type is limited to platform 'windows5.0' pub extern "rpcns4" fn RpcNsMgmtEntryCreateA( EntryNameSyntax: u32, EntryName: ?*u8, ) callconv(@import("std").os.windows.WINAPI) RPC_STATUS; // TODO: this type is limited to platform 'windows5.0' pub extern "rpcns4" fn RpcNsMgmtEntryDeleteA( EntryNameSyntax: u32, EntryName: ?*u8, ) callconv(@import("std").os.windows.WINAPI) RPC_STATUS; // TODO: this type is limited to platform 'windows5.0' pub extern "rpcns4" fn RpcNsMgmtEntryInqIfIdsA( EntryNameSyntax: u32, EntryName: ?*u8, IfIdVec: ?*?*RPC_IF_ID_VECTOR, ) callconv(@import("std").os.windows.WINAPI) RPC_STATUS; // TODO: this type is limited to platform 'windows5.0' pub extern "rpcns4" fn RpcNsMgmtHandleSetExpAge( NsHandle: ?*anyopaque, ExpirationAge: u32, ) callconv(@import("std").os.windows.WINAPI) RPC_STATUS; // TODO: this type is limited to platform 'windows5.0' pub extern "rpcns4" fn RpcNsMgmtInqExpAge( ExpirationAge: ?*u32, ) callconv(@import("std").os.windows.WINAPI) RPC_STATUS; // TODO: this type is limited to platform 'windows5.0' pub extern "rpcns4" fn RpcNsMgmtSetExpAge( ExpirationAge: u32, ) callconv(@import("std").os.windows.WINAPI) RPC_STATUS; // TODO: this type is limited to platform 'windows5.0' pub extern "rpcns4" fn RpcNsEntryExpandNameW( EntryNameSyntax: u32, EntryName: ?*u16, ExpandedName: ?*?*u16, ) callconv(@import("std").os.windows.WINAPI) RPC_STATUS; // TODO: this type is limited to platform 'windows5.0' pub extern "rpcns4" fn RpcNsMgmtBindingUnexportW( EntryNameSyntax: u32, EntryName: ?*u16, IfId: ?*RPC_IF_ID, VersOption: u32, ObjectUuidVec: ?*UUID_VECTOR, ) callconv(@import("std").os.windows.WINAPI) RPC_STATUS; // TODO: this type is limited to platform 'windows5.0' pub extern "rpcns4" fn RpcNsMgmtEntryCreateW( EntryNameSyntax: u32, EntryName: ?*u16, ) callconv(@import("std").os.windows.WINAPI) RPC_STATUS; // TODO: this type is limited to platform 'windows5.0' pub extern "rpcns4" fn RpcNsMgmtEntryDeleteW( EntryNameSyntax: u32, EntryName: ?*u16, ) callconv(@import("std").os.windows.WINAPI) RPC_STATUS; // TODO: this type is limited to platform 'windows5.0' pub extern "rpcns4" fn RpcNsMgmtEntryInqIfIdsW( EntryNameSyntax: u32, EntryName: ?*u16, IfIdVec: ?*?*RPC_IF_ID_VECTOR, ) callconv(@import("std").os.windows.WINAPI) RPC_STATUS; // TODO: this type is limited to platform 'windows5.0' pub extern "rpcns4" fn RpcNsBindingImportBeginA( EntryNameSyntax: u32, EntryName: ?*u8, IfSpec: ?*anyopaque, ObjUuid: ?*Guid, ImportContext: ?*?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) RPC_STATUS; // TODO: this type is limited to platform 'windows5.0' pub extern "rpcns4" fn RpcNsBindingImportBeginW( EntryNameSyntax: u32, EntryName: ?*u16, IfSpec: ?*anyopaque, ObjUuid: ?*Guid, ImportContext: ?*?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) RPC_STATUS; // TODO: this type is limited to platform 'windows5.0' pub extern "rpcns4" fn RpcNsBindingImportNext( ImportContext: ?*anyopaque, Binding: ?*?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) RPC_STATUS; // TODO: this type is limited to platform 'windows5.0' pub extern "rpcns4" fn RpcNsBindingImportDone( ImportContext: ?*?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) RPC_STATUS; // TODO: this type is limited to platform 'windows5.0' pub extern "rpcns4" fn RpcNsBindingSelect( BindingVec: ?*RPC_BINDING_VECTOR, Binding: ?*?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) RPC_STATUS; // TODO: this type is limited to platform 'windows5.0' pub extern "rpcrt4" fn RpcAsyncRegisterInfo( pAsync: ?*RPC_ASYNC_STATE, ) callconv(@import("std").os.windows.WINAPI) RPC_STATUS; // TODO: this type is limited to platform 'windows5.0' pub extern "rpcrt4" fn RpcAsyncInitializeHandle( // TODO: what to do with BytesParamIndex 1? pAsync: ?*RPC_ASYNC_STATE, Size: u32, ) callconv(@import("std").os.windows.WINAPI) RPC_STATUS; // TODO: this type is limited to platform 'windows5.0' pub extern "rpcrt4" fn RpcAsyncGetCallStatus( pAsync: ?*RPC_ASYNC_STATE, ) callconv(@import("std").os.windows.WINAPI) RPC_STATUS; // TODO: this type is limited to platform 'windows5.0' pub extern "rpcrt4" fn RpcAsyncCompleteCall( pAsync: ?*RPC_ASYNC_STATE, Reply: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) RPC_STATUS; // TODO: this type is limited to platform 'windows5.0' pub extern "rpcrt4" fn RpcAsyncAbortCall( pAsync: ?*RPC_ASYNC_STATE, ExceptionCode: u32, ) callconv(@import("std").os.windows.WINAPI) RPC_STATUS; // TODO: this type is limited to platform 'windows5.0' pub extern "rpcrt4" fn RpcAsyncCancelCall( pAsync: ?*RPC_ASYNC_STATE, fAbort: BOOL, ) callconv(@import("std").os.windows.WINAPI) RPC_STATUS; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "rpcrt4" fn RpcErrorStartEnumeration( EnumHandle: ?*RPC_ERROR_ENUM_HANDLE, ) callconv(@import("std").os.windows.WINAPI) RPC_STATUS; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "rpcrt4" fn RpcErrorGetNextRecord( EnumHandle: ?*RPC_ERROR_ENUM_HANDLE, CopyStrings: BOOL, ErrorInfo: ?*RPC_EXTENDED_ERROR_INFO, ) callconv(@import("std").os.windows.WINAPI) RPC_STATUS; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "rpcrt4" fn RpcErrorEndEnumeration( EnumHandle: ?*RPC_ERROR_ENUM_HANDLE, ) callconv(@import("std").os.windows.WINAPI) RPC_STATUS; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "rpcrt4" fn RpcErrorResetEnumeration( EnumHandle: ?*RPC_ERROR_ENUM_HANDLE, ) callconv(@import("std").os.windows.WINAPI) RPC_STATUS; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "rpcrt4" fn RpcErrorGetNumberOfRecords( EnumHandle: ?*RPC_ERROR_ENUM_HANDLE, Records: ?*i32, ) callconv(@import("std").os.windows.WINAPI) RPC_STATUS; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "rpcrt4" fn RpcErrorSaveErrorInfo( EnumHandle: ?*RPC_ERROR_ENUM_HANDLE, ErrorBlob: ?*?*anyopaque, BlobSize: ?*usize, ) callconv(@import("std").os.windows.WINAPI) RPC_STATUS; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "rpcrt4" fn RpcErrorLoadErrorInfo( // TODO: what to do with BytesParamIndex 1? ErrorBlob: ?*anyopaque, BlobSize: usize, EnumHandle: ?*RPC_ERROR_ENUM_HANDLE, ) callconv(@import("std").os.windows.WINAPI) RPC_STATUS; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "rpcrt4" fn RpcErrorAddRecord( ErrorInfo: ?*RPC_EXTENDED_ERROR_INFO, ) callconv(@import("std").os.windows.WINAPI) RPC_STATUS; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "rpcrt4" fn RpcErrorClearInformation() callconv(@import("std").os.windows.WINAPI) void; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "rpcrt4" fn RpcGetAuthorizationContextForClient( ClientBinding: ?*anyopaque, ImpersonateOnReturn: BOOL, Reserved1: ?*anyopaque, pExpirationTime: ?*LARGE_INTEGER, Reserved2: LUID, Reserved3: u32, Reserved4: ?*anyopaque, pAuthzClientContext: ?*?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) RPC_STATUS; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "rpcrt4" fn RpcFreeAuthorizationContext( pAuthzClientContext: ?*?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) RPC_STATUS; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "rpcrt4" fn RpcSsContextLockExclusive( ServerBindingHandle: ?*anyopaque, UserContext: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) RPC_STATUS; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "rpcrt4" fn RpcSsContextLockShared( ServerBindingHandle: ?*anyopaque, UserContext: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) RPC_STATUS; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "rpcrt4" fn RpcServerInqCallAttributesW( ClientBinding: ?*anyopaque, RpcCallAttributes: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) RPC_STATUS; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "rpcrt4" fn RpcServerInqCallAttributesA( ClientBinding: ?*anyopaque, RpcCallAttributes: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) RPC_STATUS; // TODO: this type is limited to platform 'windows6.0.6000' pub extern "rpcrt4" fn RpcServerSubscribeForNotification( Binding: ?*anyopaque, Notification: RPC_NOTIFICATIONS, NotificationType: RPC_NOTIFICATION_TYPES, NotificationInfo: ?*RPC_ASYNC_NOTIFICATION_INFO, ) callconv(@import("std").os.windows.WINAPI) RPC_STATUS; // TODO: this type is limited to platform 'windows6.0.6000' pub extern "rpcrt4" fn RpcServerUnsubscribeForNotification( Binding: ?*anyopaque, Notification: RPC_NOTIFICATIONS, NotificationsQueued: ?*u32, ) callconv(@import("std").os.windows.WINAPI) RPC_STATUS; // TODO: this type is limited to platform 'windows6.0.6000' pub extern "rpcrt4" fn RpcBindingBind( pAsync: ?*RPC_ASYNC_STATE, Binding: ?*anyopaque, IfSpec: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) RPC_STATUS; // TODO: this type is limited to platform 'windows6.0.6000' pub extern "rpcrt4" fn RpcBindingUnbind( Binding: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) RPC_STATUS; pub extern "rpcrt4" fn I_RpcAsyncSetHandle( Message: ?*RPC_MESSAGE, pAsync: ?*RPC_ASYNC_STATE, ) callconv(@import("std").os.windows.WINAPI) RPC_STATUS; pub extern "rpcrt4" fn I_RpcAsyncAbortCall( pAsync: ?*RPC_ASYNC_STATE, ExceptionCode: u32, ) callconv(@import("std").os.windows.WINAPI) RPC_STATUS; pub extern "rpcrt4" fn I_RpcExceptionFilter( ExceptionCode: u32, ) callconv(@import("std").os.windows.WINAPI) i32; pub extern "rpcrt4" fn I_RpcBindingInqClientTokenAttributes( Binding: ?*anyopaque, TokenId: ?*LUID, AuthenticationId: ?*LUID, ModifiedId: ?*LUID, ) callconv(@import("std").os.windows.WINAPI) RPC_STATUS; pub extern "rpcns4" fn I_RpcNsGetBuffer( Message: ?*RPC_MESSAGE, ) callconv(@import("std").os.windows.WINAPI) RPC_STATUS; pub extern "rpcns4" fn I_RpcNsSendReceive( Message: ?*RPC_MESSAGE, Handle: ?*?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) RPC_STATUS; pub extern "rpcns4" fn I_RpcNsRaiseException( Message: ?*RPC_MESSAGE, Status: RPC_STATUS, ) callconv(@import("std").os.windows.WINAPI) void; pub extern "rpcns4" fn I_RpcReBindBuffer( Message: ?*RPC_MESSAGE, ) callconv(@import("std").os.windows.WINAPI) RPC_STATUS; pub extern "rpcrt4" fn NDRCContextBinding( CContext: isize, ) callconv(@import("std").os.windows.WINAPI) ?*anyopaque; pub extern "rpcrt4" fn NDRCContextMarshall( CContext: isize, pBuff: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) void; pub extern "rpcrt4" fn NDRCContextUnmarshall( pCContext: ?*isize, hBinding: ?*anyopaque, pBuff: ?*anyopaque, DataRepresentation: u32, ) callconv(@import("std").os.windows.WINAPI) void; pub extern "rpcrt4" fn NDRSContextMarshall( CContext: ?*NDR_SCONTEXT_1, pBuff: ?*anyopaque, userRunDownIn: ?NDR_RUNDOWN, ) callconv(@import("std").os.windows.WINAPI) void; pub extern "rpcrt4" fn NDRSContextUnmarshall( pBuff: ?*anyopaque, DataRepresentation: u32, ) callconv(@import("std").os.windows.WINAPI) ?*NDR_SCONTEXT_1; pub extern "rpcrt4" fn NDRSContextMarshallEx( BindingHandle: ?*anyopaque, CContext: ?*NDR_SCONTEXT_1, pBuff: ?*anyopaque, userRunDownIn: ?NDR_RUNDOWN, ) callconv(@import("std").os.windows.WINAPI) void; pub extern "rpcrt4" fn NDRSContextMarshall2( BindingHandle: ?*anyopaque, CContext: ?*NDR_SCONTEXT_1, pBuff: ?*anyopaque, userRunDownIn: ?NDR_RUNDOWN, CtxGuard: ?*anyopaque, Flags: u32, ) callconv(@import("std").os.windows.WINAPI) void; pub extern "rpcrt4" fn NDRSContextUnmarshallEx( BindingHandle: ?*anyopaque, pBuff: ?*anyopaque, DataRepresentation: u32, ) callconv(@import("std").os.windows.WINAPI) ?*NDR_SCONTEXT_1; pub extern "rpcrt4" fn NDRSContextUnmarshall2( BindingHandle: ?*anyopaque, pBuff: ?*anyopaque, DataRepresentation: u32, CtxGuard: ?*anyopaque, Flags: u32, ) callconv(@import("std").os.windows.WINAPI) ?*NDR_SCONTEXT_1; // TODO: this type is limited to platform 'windows5.0' pub extern "rpcrt4" fn RpcSsDestroyClientContext( ContextHandle: ?*?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) void; // TODO: this type is limited to platform 'windows5.0' pub extern "rpcrt4" fn NdrSimpleTypeMarshall( pStubMsg: ?*MIDL_STUB_MESSAGE, pMemory: ?*u8, FormatChar: u8, ) callconv(@import("std").os.windows.WINAPI) void; // TODO: this type is limited to platform 'windows5.0' pub extern "rpcrt4" fn NdrPointerMarshall( pStubMsg: ?*MIDL_STUB_MESSAGE, pMemory: ?*u8, pFormat: ?*u8, ) callconv(@import("std").os.windows.WINAPI) ?*u8; // TODO: this type is limited to platform 'windows5.0' pub extern "rpcrt4" fn NdrSimpleStructMarshall( pStubMsg: ?*MIDL_STUB_MESSAGE, pMemory: ?*u8, pFormat: ?*u8, ) callconv(@import("std").os.windows.WINAPI) ?*u8; pub extern "rpcrt4" fn NdrConformantStructMarshall( pStubMsg: ?*MIDL_STUB_MESSAGE, pMemory: ?*u8, pFormat: ?*u8, ) callconv(@import("std").os.windows.WINAPI) ?*u8; pub extern "rpcrt4" fn NdrConformantVaryingStructMarshall( pStubMsg: ?*MIDL_STUB_MESSAGE, pMemory: ?*u8, pFormat: ?*u8, ) callconv(@import("std").os.windows.WINAPI) ?*u8; // TODO: this type is limited to platform 'windows5.0' pub extern "rpcrt4" fn NdrComplexStructMarshall( pStubMsg: ?*MIDL_STUB_MESSAGE, pMemory: ?*u8, pFormat: ?*u8, ) callconv(@import("std").os.windows.WINAPI) ?*u8; pub extern "rpcrt4" fn NdrFixedArrayMarshall( pStubMsg: ?*MIDL_STUB_MESSAGE, pMemory: ?*u8, pFormat: ?*u8, ) callconv(@import("std").os.windows.WINAPI) ?*u8; pub extern "rpcrt4" fn NdrConformantArrayMarshall( pStubMsg: ?*MIDL_STUB_MESSAGE, pMemory: ?*u8, pFormat: ?*u8, ) callconv(@import("std").os.windows.WINAPI) ?*u8; pub extern "rpcrt4" fn NdrConformantVaryingArrayMarshall( pStubMsg: ?*MIDL_STUB_MESSAGE, pMemory: ?*u8, pFormat: ?*u8, ) callconv(@import("std").os.windows.WINAPI) ?*u8; pub extern "rpcrt4" fn NdrVaryingArrayMarshall( pStubMsg: ?*MIDL_STUB_MESSAGE, pMemory: ?*u8, pFormat: ?*u8, ) callconv(@import("std").os.windows.WINAPI) ?*u8; // TODO: this type is limited to platform 'windows5.0' pub extern "rpcrt4" fn NdrComplexArrayMarshall( pStubMsg: ?*MIDL_STUB_MESSAGE, pMemory: ?*u8, pFormat: ?*u8, ) callconv(@import("std").os.windows.WINAPI) ?*u8; pub extern "rpcrt4" fn NdrNonConformantStringMarshall( pStubMsg: ?*MIDL_STUB_MESSAGE, pMemory: ?*u8, pFormat: ?*u8, ) callconv(@import("std").os.windows.WINAPI) ?*u8; // TODO: this type is limited to platform 'windows5.0' pub extern "rpcrt4" fn NdrConformantStringMarshall( pStubMsg: ?*MIDL_STUB_MESSAGE, pMemory: ?*u8, pFormat: ?*u8, ) callconv(@import("std").os.windows.WINAPI) ?*u8; pub extern "rpcrt4" fn NdrEncapsulatedUnionMarshall( pStubMsg: ?*MIDL_STUB_MESSAGE, pMemory: ?*u8, pFormat: ?*u8, ) callconv(@import("std").os.windows.WINAPI) ?*u8; pub extern "rpcrt4" fn NdrNonEncapsulatedUnionMarshall( pStubMsg: ?*MIDL_STUB_MESSAGE, pMemory: ?*u8, pFormat: ?*u8, ) callconv(@import("std").os.windows.WINAPI) ?*u8; pub extern "rpcrt4" fn NdrByteCountPointerMarshall( pStubMsg: ?*MIDL_STUB_MESSAGE, pMemory: ?*u8, pFormat: ?*u8, ) callconv(@import("std").os.windows.WINAPI) ?*u8; pub extern "rpcrt4" fn NdrXmitOrRepAsMarshall( pStubMsg: ?*MIDL_STUB_MESSAGE, pMemory: ?*u8, pFormat: ?*u8, ) callconv(@import("std").os.windows.WINAPI) ?*u8; // TODO: this type is limited to platform 'windows5.0' pub extern "rpcrt4" fn NdrUserMarshalMarshall( pStubMsg: ?*MIDL_STUB_MESSAGE, pMemory: ?*u8, pFormat: ?*u8, ) callconv(@import("std").os.windows.WINAPI) ?*u8; // TODO: this type is limited to platform 'windows5.0' pub extern "rpcrt4" fn NdrInterfacePointerMarshall( pStubMsg: ?*MIDL_STUB_MESSAGE, pMemory: ?*u8, pFormat: ?*u8, ) callconv(@import("std").os.windows.WINAPI) ?*u8; pub extern "rpcrt4" fn NdrClientContextMarshall( pStubMsg: ?*MIDL_STUB_MESSAGE, ContextHandle: isize, fCheck: i32, ) callconv(@import("std").os.windows.WINAPI) void; pub extern "rpcrt4" fn NdrServerContextMarshall( pStubMsg: ?*MIDL_STUB_MESSAGE, ContextHandle: ?*NDR_SCONTEXT_1, RundownRoutine: ?NDR_RUNDOWN, ) callconv(@import("std").os.windows.WINAPI) void; pub extern "rpcrt4" fn NdrServerContextNewMarshall( pStubMsg: ?*MIDL_STUB_MESSAGE, ContextHandle: ?*NDR_SCONTEXT_1, RundownRoutine: ?NDR_RUNDOWN, pFormat: ?*u8, ) callconv(@import("std").os.windows.WINAPI) void; // TODO: this type is limited to platform 'windows5.0' pub extern "rpcrt4" fn NdrSimpleTypeUnmarshall( pStubMsg: ?*MIDL_STUB_MESSAGE, pMemory: ?*u8, FormatChar: u8, ) callconv(@import("std").os.windows.WINAPI) void; pub extern "rpcrt4" fn NdrRangeUnmarshall( pStubMsg: ?*MIDL_STUB_MESSAGE, ppMemory: ?*?*u8, pFormat: ?*u8, fMustAlloc: u8, ) callconv(@import("std").os.windows.WINAPI) ?*u8; pub extern "rpcrt4" fn NdrCorrelationInitialize( pStubMsg: ?*MIDL_STUB_MESSAGE, pMemory: ?*anyopaque, CacheSize: u32, flags: u32, ) callconv(@import("std").os.windows.WINAPI) void; pub extern "rpcrt4" fn NdrCorrelationPass( pStubMsg: ?*MIDL_STUB_MESSAGE, ) callconv(@import("std").os.windows.WINAPI) void; pub extern "rpcrt4" fn NdrCorrelationFree( pStubMsg: ?*MIDL_STUB_MESSAGE, ) callconv(@import("std").os.windows.WINAPI) void; // TODO: this type is limited to platform 'windows5.0' pub extern "rpcrt4" fn NdrPointerUnmarshall( pStubMsg: ?*MIDL_STUB_MESSAGE, ppMemory: ?*?*u8, pFormat: ?*u8, fMustAlloc: u8, ) callconv(@import("std").os.windows.WINAPI) ?*u8; // TODO: this type is limited to platform 'windows5.0' pub extern "rpcrt4" fn NdrSimpleStructUnmarshall( pStubMsg: ?*MIDL_STUB_MESSAGE, ppMemory: ?*?*u8, pFormat: ?*u8, fMustAlloc: u8, ) callconv(@import("std").os.windows.WINAPI) ?*u8; pub extern "rpcrt4" fn NdrConformantStructUnmarshall( pStubMsg: ?*MIDL_STUB_MESSAGE, ppMemory: ?*?*u8, pFormat: ?*u8, fMustAlloc: u8, ) callconv(@import("std").os.windows.WINAPI) ?*u8; pub extern "rpcrt4" fn NdrConformantVaryingStructUnmarshall( pStubMsg: ?*MIDL_STUB_MESSAGE, ppMemory: ?*?*u8, pFormat: ?*u8, fMustAlloc: u8, ) callconv(@import("std").os.windows.WINAPI) ?*u8; // TODO: this type is limited to platform 'windows5.0' pub extern "rpcrt4" fn NdrComplexStructUnmarshall( pStubMsg: ?*MIDL_STUB_MESSAGE, ppMemory: ?*?*u8, pFormat: ?*u8, fMustAlloc: u8, ) callconv(@import("std").os.windows.WINAPI) ?*u8; pub extern "rpcrt4" fn NdrFixedArrayUnmarshall( pStubMsg: ?*MIDL_STUB_MESSAGE, ppMemory: ?*?*u8, pFormat: ?*u8, fMustAlloc: u8, ) callconv(@import("std").os.windows.WINAPI) ?*u8; // TODO: this type is limited to platform 'windows5.0' pub extern "rpcrt4" fn NdrConformantArrayUnmarshall( pStubMsg: ?*MIDL_STUB_MESSAGE, ppMemory: ?*?*u8, pFormat: ?*u8, fMustAlloc: u8, ) callconv(@import("std").os.windows.WINAPI) ?*u8; pub extern "rpcrt4" fn NdrConformantVaryingArrayUnmarshall( pStubMsg: ?*MIDL_STUB_MESSAGE, ppMemory: ?*?*u8, pFormat: ?*u8, fMustAlloc: u8, ) callconv(@import("std").os.windows.WINAPI) ?*u8; pub extern "rpcrt4" fn NdrVaryingArrayUnmarshall( pStubMsg: ?*MIDL_STUB_MESSAGE, ppMemory: ?*?*u8, pFormat: ?*u8, fMustAlloc: u8, ) callconv(@import("std").os.windows.WINAPI) ?*u8; // TODO: this type is limited to platform 'windows5.0' pub extern "rpcrt4" fn NdrComplexArrayUnmarshall( pStubMsg: ?*MIDL_STUB_MESSAGE, ppMemory: ?*?*u8, pFormat: ?*u8, fMustAlloc: u8, ) callconv(@import("std").os.windows.WINAPI) ?*u8; pub extern "rpcrt4" fn NdrNonConformantStringUnmarshall( pStubMsg: ?*MIDL_STUB_MESSAGE, ppMemory: ?*?*u8, pFormat: ?*u8, fMustAlloc: u8, ) callconv(@import("std").os.windows.WINAPI) ?*u8; // TODO: this type is limited to platform 'windows5.0' pub extern "rpcrt4" fn NdrConformantStringUnmarshall( pStubMsg: ?*MIDL_STUB_MESSAGE, ppMemory: ?*?*u8, pFormat: ?*u8, fMustAlloc: u8, ) callconv(@import("std").os.windows.WINAPI) ?*u8; pub extern "rpcrt4" fn NdrEncapsulatedUnionUnmarshall( pStubMsg: ?*MIDL_STUB_MESSAGE, ppMemory: ?*?*u8, pFormat: ?*u8, fMustAlloc: u8, ) callconv(@import("std").os.windows.WINAPI) ?*u8; pub extern "rpcrt4" fn NdrNonEncapsulatedUnionUnmarshall( pStubMsg: ?*MIDL_STUB_MESSAGE, ppMemory: ?*?*u8, pFormat: ?*u8, fMustAlloc: u8, ) callconv(@import("std").os.windows.WINAPI) ?*u8; pub extern "rpcrt4" fn NdrByteCountPointerUnmarshall( pStubMsg: ?*MIDL_STUB_MESSAGE, ppMemory: ?*?*u8, pFormat: ?*u8, fMustAlloc: u8, ) callconv(@import("std").os.windows.WINAPI) ?*u8; pub extern "rpcrt4" fn NdrXmitOrRepAsUnmarshall( pStubMsg: ?*MIDL_STUB_MESSAGE, ppMemory: ?*?*u8, pFormat: ?*u8, fMustAlloc: u8, ) callconv(@import("std").os.windows.WINAPI) ?*u8; // TODO: this type is limited to platform 'windows5.0' pub extern "rpcrt4" fn NdrUserMarshalUnmarshall( pStubMsg: ?*MIDL_STUB_MESSAGE, ppMemory: ?*?*u8, pFormat: ?*u8, fMustAlloc: u8, ) callconv(@import("std").os.windows.WINAPI) ?*u8; // TODO: this type is limited to platform 'windows5.0' pub extern "rpcrt4" fn NdrInterfacePointerUnmarshall( pStubMsg: ?*MIDL_STUB_MESSAGE, ppMemory: ?*?*u8, pFormat: ?*u8, fMustAlloc: u8, ) callconv(@import("std").os.windows.WINAPI) ?*u8; pub extern "rpcrt4" fn NdrClientContextUnmarshall( pStubMsg: ?*MIDL_STUB_MESSAGE, pContextHandle: ?*isize, BindHandle: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) void; pub extern "rpcrt4" fn NdrServerContextUnmarshall( pStubMsg: ?*MIDL_STUB_MESSAGE, ) callconv(@import("std").os.windows.WINAPI) ?*NDR_SCONTEXT_1; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "rpcrt4" fn NdrContextHandleInitialize( pStubMsg: ?*MIDL_STUB_MESSAGE, pFormat: ?*u8, ) callconv(@import("std").os.windows.WINAPI) ?*NDR_SCONTEXT_1; pub extern "rpcrt4" fn NdrServerContextNewUnmarshall( pStubMsg: ?*MIDL_STUB_MESSAGE, pFormat: ?*u8, ) callconv(@import("std").os.windows.WINAPI) ?*NDR_SCONTEXT_1; // TODO: this type is limited to platform 'windows5.0' pub extern "rpcrt4" fn NdrPointerBufferSize( pStubMsg: ?*MIDL_STUB_MESSAGE, pMemory: ?*u8, pFormat: ?*u8, ) callconv(@import("std").os.windows.WINAPI) void; // TODO: this type is limited to platform 'windows5.0' pub extern "rpcrt4" fn NdrSimpleStructBufferSize( pStubMsg: ?*MIDL_STUB_MESSAGE, pMemory: ?*u8, pFormat: ?*u8, ) callconv(@import("std").os.windows.WINAPI) void; pub extern "rpcrt4" fn NdrConformantStructBufferSize( pStubMsg: ?*MIDL_STUB_MESSAGE, pMemory: ?*u8, pFormat: ?*u8, ) callconv(@import("std").os.windows.WINAPI) void; pub extern "rpcrt4" fn NdrConformantVaryingStructBufferSize( pStubMsg: ?*MIDL_STUB_MESSAGE, pMemory: ?*u8, pFormat: ?*u8, ) callconv(@import("std").os.windows.WINAPI) void; // TODO: this type is limited to platform 'windows5.0' pub extern "rpcrt4" fn NdrComplexStructBufferSize( pStubMsg: ?*MIDL_STUB_MESSAGE, pMemory: ?*u8, pFormat: ?*u8, ) callconv(@import("std").os.windows.WINAPI) void; pub extern "rpcrt4" fn NdrFixedArrayBufferSize( pStubMsg: ?*MIDL_STUB_MESSAGE, pMemory: ?*u8, pFormat: ?*u8, ) callconv(@import("std").os.windows.WINAPI) void; pub extern "rpcrt4" fn NdrConformantArrayBufferSize( pStubMsg: ?*MIDL_STUB_MESSAGE, pMemory: ?*u8, pFormat: ?*u8, ) callconv(@import("std").os.windows.WINAPI) void; pub extern "rpcrt4" fn NdrConformantVaryingArrayBufferSize( pStubMsg: ?*MIDL_STUB_MESSAGE, pMemory: ?*u8, pFormat: ?*u8, ) callconv(@import("std").os.windows.WINAPI) void; pub extern "rpcrt4" fn NdrVaryingArrayBufferSize( pStubMsg: ?*MIDL_STUB_MESSAGE, pMemory: ?*u8, pFormat: ?*u8, ) callconv(@import("std").os.windows.WINAPI) void; // TODO: this type is limited to platform 'windows5.0' pub extern "rpcrt4" fn NdrComplexArrayBufferSize( pStubMsg: ?*MIDL_STUB_MESSAGE, pMemory: ?*u8, pFormat: ?*u8, ) callconv(@import("std").os.windows.WINAPI) void; // TODO: this type is limited to platform 'windows5.0' pub extern "rpcrt4" fn NdrConformantStringBufferSize( pStubMsg: ?*MIDL_STUB_MESSAGE, pMemory: ?*u8, pFormat: ?*u8, ) callconv(@import("std").os.windows.WINAPI) void; pub extern "rpcrt4" fn NdrNonConformantStringBufferSize( pStubMsg: ?*MIDL_STUB_MESSAGE, pMemory: ?*u8, pFormat: ?*u8, ) callconv(@import("std").os.windows.WINAPI) void; pub extern "rpcrt4" fn NdrEncapsulatedUnionBufferSize( pStubMsg: ?*MIDL_STUB_MESSAGE, pMemory: ?*u8, pFormat: ?*u8, ) callconv(@import("std").os.windows.WINAPI) void; pub extern "rpcrt4" fn NdrNonEncapsulatedUnionBufferSize( pStubMsg: ?*MIDL_STUB_MESSAGE, pMemory: ?*u8, pFormat: ?*u8, ) callconv(@import("std").os.windows.WINAPI) void; pub extern "rpcrt4" fn NdrByteCountPointerBufferSize( pStubMsg: ?*MIDL_STUB_MESSAGE, pMemory: ?*u8, pFormat: ?*u8, ) callconv(@import("std").os.windows.WINAPI) void; pub extern "rpcrt4" fn NdrXmitOrRepAsBufferSize( pStubMsg: ?*MIDL_STUB_MESSAGE, pMemory: ?*u8, pFormat: ?*u8, ) callconv(@import("std").os.windows.WINAPI) void; // TODO: this type is limited to platform 'windows5.0' pub extern "rpcrt4" fn NdrUserMarshalBufferSize( pStubMsg: ?*MIDL_STUB_MESSAGE, pMemory: ?*u8, pFormat: ?*u8, ) callconv(@import("std").os.windows.WINAPI) void; // TODO: this type is limited to platform 'windows5.0' pub extern "rpcrt4" fn NdrInterfacePointerBufferSize( pStubMsg: ?*MIDL_STUB_MESSAGE, pMemory: ?*u8, pFormat: ?*u8, ) callconv(@import("std").os.windows.WINAPI) void; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "rpcrt4" fn NdrContextHandleSize( pStubMsg: ?*MIDL_STUB_MESSAGE, pMemory: ?*u8, pFormat: ?*u8, ) callconv(@import("std").os.windows.WINAPI) void; pub extern "rpcrt4" fn NdrPointerMemorySize( pStubMsg: ?*MIDL_STUB_MESSAGE, pFormat: ?*u8, ) callconv(@import("std").os.windows.WINAPI) u32; pub extern "rpcrt4" fn NdrSimpleStructMemorySize( pStubMsg: ?*MIDL_STUB_MESSAGE, pFormat: ?*u8, ) callconv(@import("std").os.windows.WINAPI) u32; pub extern "rpcrt4" fn NdrConformantStructMemorySize( pStubMsg: ?*MIDL_STUB_MESSAGE, pFormat: ?*u8, ) callconv(@import("std").os.windows.WINAPI) u32; pub extern "rpcrt4" fn NdrConformantVaryingStructMemorySize( pStubMsg: ?*MIDL_STUB_MESSAGE, pFormat: ?*u8, ) callconv(@import("std").os.windows.WINAPI) u32; pub extern "rpcrt4" fn NdrComplexStructMemorySize( pStubMsg: ?*MIDL_STUB_MESSAGE, pFormat: ?*u8, ) callconv(@import("std").os.windows.WINAPI) u32; pub extern "rpcrt4" fn NdrFixedArrayMemorySize( pStubMsg: ?*MIDL_STUB_MESSAGE, pFormat: ?*u8, ) callconv(@import("std").os.windows.WINAPI) u32; pub extern "rpcrt4" fn NdrConformantArrayMemorySize( pStubMsg: ?*MIDL_STUB_MESSAGE, pFormat: ?*u8, ) callconv(@import("std").os.windows.WINAPI) u32; pub extern "rpcrt4" fn NdrConformantVaryingArrayMemorySize( pStubMsg: ?*MIDL_STUB_MESSAGE, pFormat: ?*u8, ) callconv(@import("std").os.windows.WINAPI) u32; pub extern "rpcrt4" fn NdrVaryingArrayMemorySize( pStubMsg: ?*MIDL_STUB_MESSAGE, pFormat: ?*u8, ) callconv(@import("std").os.windows.WINAPI) u32; pub extern "rpcrt4" fn NdrComplexArrayMemorySize( pStubMsg: ?*MIDL_STUB_MESSAGE, pFormat: ?*u8, ) callconv(@import("std").os.windows.WINAPI) u32; pub extern "rpcrt4" fn NdrConformantStringMemorySize( pStubMsg: ?*MIDL_STUB_MESSAGE, pFormat: ?*u8, ) callconv(@import("std").os.windows.WINAPI) u32; pub extern "rpcrt4" fn NdrNonConformantStringMemorySize( pStubMsg: ?*MIDL_STUB_MESSAGE, pFormat: ?*u8, ) callconv(@import("std").os.windows.WINAPI) u32; pub extern "rpcrt4" fn NdrEncapsulatedUnionMemorySize( pStubMsg: ?*MIDL_STUB_MESSAGE, pFormat: ?*u8, ) callconv(@import("std").os.windows.WINAPI) u32; pub extern "rpcrt4" fn NdrNonEncapsulatedUnionMemorySize( pStubMsg: ?*MIDL_STUB_MESSAGE, pFormat: ?*u8, ) callconv(@import("std").os.windows.WINAPI) u32; pub extern "rpcrt4" fn NdrXmitOrRepAsMemorySize( pStubMsg: ?*MIDL_STUB_MESSAGE, pFormat: ?*u8, ) callconv(@import("std").os.windows.WINAPI) u32; pub extern "rpcrt4" fn NdrUserMarshalMemorySize( pStubMsg: ?*MIDL_STUB_MESSAGE, pFormat: ?*u8, ) callconv(@import("std").os.windows.WINAPI) u32; pub extern "rpcrt4" fn NdrInterfacePointerMemorySize( pStubMsg: ?*MIDL_STUB_MESSAGE, pFormat: ?*u8, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'windows5.0' pub extern "rpcrt4" fn NdrPointerFree( pStubMsg: ?*MIDL_STUB_MESSAGE, pMemory: ?*u8, pFormat: ?*u8, ) callconv(@import("std").os.windows.WINAPI) void; pub extern "rpcrt4" fn NdrSimpleStructFree( pStubMsg: ?*MIDL_STUB_MESSAGE, pMemory: ?*u8, pFormat: ?*u8, ) callconv(@import("std").os.windows.WINAPI) void; pub extern "rpcrt4" fn NdrConformantStructFree( pStubMsg: ?*MIDL_STUB_MESSAGE, pMemory: ?*u8, pFormat: ?*u8, ) callconv(@import("std").os.windows.WINAPI) void; pub extern "rpcrt4" fn NdrConformantVaryingStructFree( pStubMsg: ?*MIDL_STUB_MESSAGE, pMemory: ?*u8, pFormat: ?*u8, ) callconv(@import("std").os.windows.WINAPI) void; pub extern "rpcrt4" fn NdrComplexStructFree( pStubMsg: ?*MIDL_STUB_MESSAGE, pMemory: ?*u8, pFormat: ?*u8, ) callconv(@import("std").os.windows.WINAPI) void; pub extern "rpcrt4" fn NdrFixedArrayFree( pStubMsg: ?*MIDL_STUB_MESSAGE, pMemory: ?*u8, pFormat: ?*u8, ) callconv(@import("std").os.windows.WINAPI) void; pub extern "rpcrt4" fn NdrConformantArrayFree( pStubMsg: ?*MIDL_STUB_MESSAGE, pMemory: ?*u8, pFormat: ?*u8, ) callconv(@import("std").os.windows.WINAPI) void; pub extern "rpcrt4" fn NdrConformantVaryingArrayFree( pStubMsg: ?*MIDL_STUB_MESSAGE, pMemory: ?*u8, pFormat: ?*u8, ) callconv(@import("std").os.windows.WINAPI) void; pub extern "rpcrt4" fn NdrVaryingArrayFree( pStubMsg: ?*MIDL_STUB_MESSAGE, pMemory: ?*u8, pFormat: ?*u8, ) callconv(@import("std").os.windows.WINAPI) void; pub extern "rpcrt4" fn NdrComplexArrayFree( pStubMsg: ?*MIDL_STUB_MESSAGE, pMemory: ?*u8, pFormat: ?*u8, ) callconv(@import("std").os.windows.WINAPI) void; pub extern "rpcrt4" fn NdrEncapsulatedUnionFree( pStubMsg: ?*MIDL_STUB_MESSAGE, pMemory: ?*u8, pFormat: ?*u8, ) callconv(@import("std").os.windows.WINAPI) void; pub extern "rpcrt4" fn NdrNonEncapsulatedUnionFree( pStubMsg: ?*MIDL_STUB_MESSAGE, pMemory: ?*u8, pFormat: ?*u8, ) callconv(@import("std").os.windows.WINAPI) void; pub extern "rpcrt4" fn NdrByteCountPointerFree( pStubMsg: ?*MIDL_STUB_MESSAGE, pMemory: ?*u8, pFormat: ?*u8, ) callconv(@import("std").os.windows.WINAPI) void; pub extern "rpcrt4" fn NdrXmitOrRepAsFree( pStubMsg: ?*MIDL_STUB_MESSAGE, pMemory: ?*u8, pFormat: ?*u8, ) callconv(@import("std").os.windows.WINAPI) void; // TODO: this type is limited to platform 'windows5.0' pub extern "rpcrt4" fn NdrUserMarshalFree( pStubMsg: ?*MIDL_STUB_MESSAGE, pMemory: ?*u8, pFormat: ?*u8, ) callconv(@import("std").os.windows.WINAPI) void; // TODO: this type is limited to platform 'windows5.0' pub extern "rpcrt4" fn NdrInterfacePointerFree( pStubMsg: ?*MIDL_STUB_MESSAGE, pMemory: ?*u8, pFormat: ?*u8, ) callconv(@import("std").os.windows.WINAPI) void; pub extern "rpcrt4" fn NdrConvert2( pStubMsg: ?*MIDL_STUB_MESSAGE, pFormat: ?*u8, NumberParams: i32, ) callconv(@import("std").os.windows.WINAPI) void; // TODO: this type is limited to platform 'windows5.0' pub extern "rpcrt4" fn NdrConvert( pStubMsg: ?*MIDL_STUB_MESSAGE, pFormat: ?*u8, ) callconv(@import("std").os.windows.WINAPI) void; pub extern "rpcrt4" fn NdrUserMarshalSimpleTypeConvert( pFlags: ?*u32, pBuffer: ?*u8, FormatChar: u8, ) callconv(@import("std").os.windows.WINAPI) ?*u8; pub extern "rpcrt4" fn NdrClientInitializeNew( pRpcMsg: ?*RPC_MESSAGE, pStubMsg: ?*MIDL_STUB_MESSAGE, pStubDescriptor: ?*MIDL_STUB_DESC, ProcNum: u32, ) callconv(@import("std").os.windows.WINAPI) void; pub extern "rpcrt4" fn NdrServerInitializeNew( pRpcMsg: ?*RPC_MESSAGE, pStubMsg: ?*MIDL_STUB_MESSAGE, pStubDescriptor: ?*MIDL_STUB_DESC, ) callconv(@import("std").os.windows.WINAPI) ?*u8; pub extern "rpcrt4" fn NdrServerInitializePartial( pRpcMsg: ?*RPC_MESSAGE, pStubMsg: ?*MIDL_STUB_MESSAGE, pStubDescriptor: ?*MIDL_STUB_DESC, RequestedBufferSize: u32, ) callconv(@import("std").os.windows.WINAPI) void; pub extern "rpcrt4" fn NdrClientInitialize( pRpcMsg: ?*RPC_MESSAGE, pStubMsg: ?*MIDL_STUB_MESSAGE, pStubDescriptor: ?*MIDL_STUB_DESC, ProcNum: u32, ) callconv(@import("std").os.windows.WINAPI) void; pub extern "rpcrt4" fn NdrServerInitialize( pRpcMsg: ?*RPC_MESSAGE, pStubMsg: ?*MIDL_STUB_MESSAGE, pStubDescriptor: ?*MIDL_STUB_DESC, ) callconv(@import("std").os.windows.WINAPI) ?*u8; pub extern "rpcrt4" fn NdrServerInitializeUnmarshall( pStubMsg: ?*MIDL_STUB_MESSAGE, pStubDescriptor: ?*MIDL_STUB_DESC, pRpcMsg: ?*RPC_MESSAGE, ) callconv(@import("std").os.windows.WINAPI) ?*u8; pub extern "rpcrt4" fn NdrServerInitializeMarshall( pRpcMsg: ?*RPC_MESSAGE, pStubMsg: ?*MIDL_STUB_MESSAGE, ) callconv(@import("std").os.windows.WINAPI) void; pub extern "rpcrt4" fn NdrGetBuffer( pStubMsg: ?*MIDL_STUB_MESSAGE, BufferLength: u32, Handle: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) ?*u8; pub extern "rpcrt4" fn NdrNsGetBuffer( pStubMsg: ?*MIDL_STUB_MESSAGE, BufferLength: u32, Handle: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) ?*u8; pub extern "rpcrt4" fn NdrSendReceive( pStubMsg: ?*MIDL_STUB_MESSAGE, pBufferEnd: ?*u8, ) callconv(@import("std").os.windows.WINAPI) ?*u8; pub extern "rpcrt4" fn NdrNsSendReceive( pStubMsg: ?*MIDL_STUB_MESSAGE, pBufferEnd: ?*u8, pAutoHandle: ?*?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) ?*u8; pub extern "rpcrt4" fn NdrFreeBuffer( pStubMsg: ?*MIDL_STUB_MESSAGE, ) callconv(@import("std").os.windows.WINAPI) void; pub extern "rpcrt4" fn NdrGetDcomProtocolVersion( pStubMsg: ?*MIDL_STUB_MESSAGE, pVersion: ?*RPC_VERSION, ) callconv(@import("std").os.windows.WINAPI) HRESULT; // TODO: this type is limited to platform 'windows5.0' pub extern "rpcrt4" fn NdrClientCall2( pStubDescriptor: ?*MIDL_STUB_DESC, pFormat: ?*u8, ) callconv(@import("std").os.windows.WINAPI) CLIENT_CALL_RETURN; // TODO: this type is limited to platform 'windows5.0' pub extern "rpcrt4" fn NdrAsyncClientCall( pStubDescriptor: ?*MIDL_STUB_DESC, pFormat: ?*u8, ) callconv(@import("std").os.windows.WINAPI) CLIENT_CALL_RETURN; // TODO: this type is limited to platform 'windows5.0' pub extern "rpcrt4" fn NdrDcomAsyncClientCall( pStubDescriptor: ?*MIDL_STUB_DESC, pFormat: ?*u8, ) callconv(@import("std").os.windows.WINAPI) CLIENT_CALL_RETURN; // TODO: this type is limited to platform 'windows5.0' pub extern "rpcrt4" fn NdrAsyncServerCall( pRpcMsg: ?*RPC_MESSAGE, ) callconv(@import("std").os.windows.WINAPI) void; pub extern "rpcrt4" fn NdrDcomAsyncStubCall( pThis: ?*IRpcStubBuffer, pChannel: ?*IRpcChannelBuffer, pRpcMsg: ?*RPC_MESSAGE, pdwStubPhase: ?*u32, ) callconv(@import("std").os.windows.WINAPI) i32; // TODO: this type is limited to platform 'windows5.0' pub extern "rpcrt4" fn NdrStubCall2( pThis: ?*anyopaque, pChannel: ?*anyopaque, pRpcMsg: ?*RPC_MESSAGE, pdwStubPhase: ?*u32, ) callconv(@import("std").os.windows.WINAPI) i32; // TODO: this type is limited to platform 'windows5.0' pub extern "rpcrt4" fn NdrServerCall2( pRpcMsg: ?*RPC_MESSAGE, ) callconv(@import("std").os.windows.WINAPI) void; pub extern "rpcrt4" fn NdrMapCommAndFaultStatus( pStubMsg: ?*MIDL_STUB_MESSAGE, pCommStatus: ?*u32, pFaultStatus: ?*u32, Status: RPC_STATUS, ) callconv(@import("std").os.windows.WINAPI) RPC_STATUS; // TODO: this type is limited to platform 'windows5.0' pub extern "rpcrt4" fn RpcSsAllocate( Size: usize, ) callconv(@import("std").os.windows.WINAPI) ?*anyopaque; // TODO: this type is limited to platform 'windows5.0' pub extern "rpcrt4" fn RpcSsDisableAllocate() callconv(@import("std").os.windows.WINAPI) void; // TODO: this type is limited to platform 'windows5.0' pub extern "rpcrt4" fn RpcSsEnableAllocate() callconv(@import("std").os.windows.WINAPI) void; // TODO: this type is limited to platform 'windows5.0' pub extern "rpcrt4" fn RpcSsFree( NodeToFree: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) void; // TODO: this type is limited to platform 'windows5.0' pub extern "rpcrt4" fn RpcSsGetThreadHandle() callconv(@import("std").os.windows.WINAPI) ?*anyopaque; // TODO: this type is limited to platform 'windows5.0' pub extern "rpcrt4" fn RpcSsSetClientAllocFree( ClientAlloc: ?RPC_CLIENT_ALLOC, ClientFree: ?RPC_CLIENT_FREE, ) callconv(@import("std").os.windows.WINAPI) void; // TODO: this type is limited to platform 'windows5.0' pub extern "rpcrt4" fn RpcSsSetThreadHandle( Id: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) void; // TODO: this type is limited to platform 'windows5.0' pub extern "rpcrt4" fn RpcSsSwapClientAllocFree( ClientAlloc: ?RPC_CLIENT_ALLOC, ClientFree: ?RPC_CLIENT_FREE, OldClientAlloc: ?*?RPC_CLIENT_ALLOC, OldClientFree: ?*?RPC_CLIENT_FREE, ) callconv(@import("std").os.windows.WINAPI) void; // TODO: this type is limited to platform 'windows5.0' pub extern "rpcrt4" fn RpcSmAllocate( Size: usize, pStatus: ?*RPC_STATUS, ) callconv(@import("std").os.windows.WINAPI) ?*anyopaque; // TODO: this type is limited to platform 'windows5.0' pub extern "rpcrt4" fn RpcSmClientFree( pNodeToFree: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) RPC_STATUS; // TODO: this type is limited to platform 'windows5.0' pub extern "rpcrt4" fn RpcSmDestroyClientContext( ContextHandle: ?*?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) RPC_STATUS; // TODO: this type is limited to platform 'windows5.0' pub extern "rpcrt4" fn RpcSmDisableAllocate() callconv(@import("std").os.windows.WINAPI) RPC_STATUS; // TODO: this type is limited to platform 'windows5.0' pub extern "rpcrt4" fn RpcSmEnableAllocate() callconv(@import("std").os.windows.WINAPI) RPC_STATUS; // TODO: this type is limited to platform 'windows5.0' pub extern "rpcrt4" fn RpcSmFree( NodeToFree: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) RPC_STATUS; // TODO: this type is limited to platform 'windows5.0' pub extern "rpcrt4" fn RpcSmGetThreadHandle( pStatus: ?*RPC_STATUS, ) callconv(@import("std").os.windows.WINAPI) ?*anyopaque; // TODO: this type is limited to platform 'windows5.0' pub extern "rpcrt4" fn RpcSmSetClientAllocFree( ClientAlloc: ?RPC_CLIENT_ALLOC, ClientFree: ?RPC_CLIENT_FREE, ) callconv(@import("std").os.windows.WINAPI) RPC_STATUS; // TODO: this type is limited to platform 'windows5.0' pub extern "rpcrt4" fn RpcSmSetThreadHandle( Id: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) RPC_STATUS; // TODO: this type is limited to platform 'windows5.0' pub extern "rpcrt4" fn RpcSmSwapClientAllocFree( ClientAlloc: ?RPC_CLIENT_ALLOC, ClientFree: ?RPC_CLIENT_FREE, OldClientAlloc: ?*?RPC_CLIENT_ALLOC, OldClientFree: ?*?RPC_CLIENT_FREE, ) callconv(@import("std").os.windows.WINAPI) RPC_STATUS; pub extern "rpcrt4" fn NdrRpcSsEnableAllocate( pMessage: ?*MIDL_STUB_MESSAGE, ) callconv(@import("std").os.windows.WINAPI) void; pub extern "rpcrt4" fn NdrRpcSsDisableAllocate( pMessage: ?*MIDL_STUB_MESSAGE, ) callconv(@import("std").os.windows.WINAPI) void; pub extern "rpcrt4" fn NdrRpcSmSetClientToOsf( pMessage: ?*MIDL_STUB_MESSAGE, ) callconv(@import("std").os.windows.WINAPI) void; pub extern "rpcrt4" fn NdrRpcSmClientAllocate( Size: usize, ) callconv(@import("std").os.windows.WINAPI) ?*anyopaque; pub extern "rpcrt4" fn NdrRpcSmClientFree( NodeToFree: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) void; pub extern "rpcrt4" fn NdrRpcSsDefaultAllocate( Size: usize, ) callconv(@import("std").os.windows.WINAPI) ?*anyopaque; pub extern "rpcrt4" fn NdrRpcSsDefaultFree( NodeToFree: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) void; pub extern "rpcrt4" fn NdrFullPointerXlatInit( NumberOfPointers: u32, XlatSide: XLAT_SIDE, ) callconv(@import("std").os.windows.WINAPI) ?*FULL_PTR_XLAT_TABLES; pub extern "rpcrt4" fn NdrFullPointerXlatFree( pXlatTables: ?*FULL_PTR_XLAT_TABLES, ) callconv(@import("std").os.windows.WINAPI) void; pub extern "rpcrt4" fn NdrAllocate( pStubMsg: ?*MIDL_STUB_MESSAGE, Len: usize, ) callconv(@import("std").os.windows.WINAPI) ?*anyopaque; // TODO: this type is limited to platform 'windows5.0' pub extern "rpcrt4" fn NdrClearOutParameters( pStubMsg: ?*MIDL_STUB_MESSAGE, pFormat: ?*u8, ArgAddr: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) void; // TODO: this type is limited to platform 'windows5.0' pub extern "rpcrt4" fn NdrOleAllocate( Size: usize, ) callconv(@import("std").os.windows.WINAPI) ?*anyopaque; // TODO: this type is limited to platform 'windows5.0' pub extern "rpcrt4" fn NdrOleFree( NodeToFree: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) void; // TODO: this type is limited to platform 'windows5.0' pub extern "rpcrt4" fn NdrGetUserMarshalInfo( pFlags: ?*u32, InformationLevel: u32, pMarshalInfo: ?*NDR_USER_MARSHAL_INFO, ) callconv(@import("std").os.windows.WINAPI) RPC_STATUS; pub extern "rpcrt4" fn NdrCreateServerInterfaceFromStub( pStub: ?*IRpcStubBuffer, pServerIf: ?*RPC_SERVER_INTERFACE, ) callconv(@import("std").os.windows.WINAPI) RPC_STATUS; // TODO: this type is limited to platform 'windows5.0' pub extern "rpcrt4" fn NdrClientCall3( pProxyInfo: ?*MIDL_STUBLESS_PROXY_INFO, nProcNum: u32, pReturnValue: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) CLIENT_CALL_RETURN; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "rpcrt4" fn Ndr64AsyncClientCall( pProxyInfo: ?*MIDL_STUBLESS_PROXY_INFO, nProcNum: u32, pReturnValue: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) CLIENT_CALL_RETURN; pub extern "rpcrt4" fn Ndr64DcomAsyncClientCall( pProxyInfo: ?*MIDL_STUBLESS_PROXY_INFO, nProcNum: u32, pReturnValue: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) CLIENT_CALL_RETURN; pub extern "rpcrt4" fn Ndr64AsyncServerCall64( pRpcMsg: ?*RPC_MESSAGE, ) callconv(@import("std").os.windows.WINAPI) void; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "rpcrt4" fn Ndr64AsyncServerCallAll( pRpcMsg: ?*RPC_MESSAGE, ) callconv(@import("std").os.windows.WINAPI) void; pub extern "rpcrt4" fn Ndr64DcomAsyncStubCall( pThis: ?*IRpcStubBuffer, pChannel: ?*IRpcChannelBuffer, pRpcMsg: ?*RPC_MESSAGE, pdwStubPhase: ?*u32, ) callconv(@import("std").os.windows.WINAPI) i32; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "rpcrt4" fn NdrStubCall3( pThis: ?*anyopaque, pChannel: ?*anyopaque, pRpcMsg: ?*RPC_MESSAGE, pdwStubPhase: ?*u32, ) callconv(@import("std").os.windows.WINAPI) i32; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "rpcrt4" fn NdrServerCallAll( pRpcMsg: ?*RPC_MESSAGE, ) callconv(@import("std").os.windows.WINAPI) void; pub extern "rpcrt4" fn NdrServerCallNdr64( pRpcMsg: ?*RPC_MESSAGE, ) callconv(@import("std").os.windows.WINAPI) void; pub extern "rpcrt4" fn NdrPartialIgnoreClientMarshall( pStubMsg: ?*MIDL_STUB_MESSAGE, pMemory: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) void; pub extern "rpcrt4" fn NdrPartialIgnoreServerUnmarshall( pStubMsg: ?*MIDL_STUB_MESSAGE, ppMemory: ?*?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) void; pub extern "rpcrt4" fn NdrPartialIgnoreClientBufferSize( pStubMsg: ?*MIDL_STUB_MESSAGE, pMemory: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) void; pub extern "rpcrt4" fn NdrPartialIgnoreServerInitialize( pStubMsg: ?*MIDL_STUB_MESSAGE, ppMemory: ?*?*anyopaque, pFormat: ?*u8, ) callconv(@import("std").os.windows.WINAPI) void; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "rpcrt4" fn RpcUserFree( AsyncHandle: ?*anyopaque, pBuffer: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) void; // TODO: this type is limited to platform 'windows5.0' pub extern "rpcrt4" fn MesEncodeIncrementalHandleCreate( UserState: ?*anyopaque, AllocFn: ?MIDL_ES_ALLOC, WriteFn: ?MIDL_ES_WRITE, pHandle: ?*?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) RPC_STATUS; // TODO: this type is limited to platform 'windows5.0' pub extern "rpcrt4" fn MesDecodeIncrementalHandleCreate( UserState: ?*anyopaque, ReadFn: ?MIDL_ES_READ, pHandle: ?*?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) RPC_STATUS; // TODO: this type is limited to platform 'windows5.0' pub extern "rpcrt4" fn MesIncrementalHandleReset( Handle: ?*anyopaque, UserState: ?*anyopaque, AllocFn: ?MIDL_ES_ALLOC, WriteFn: ?MIDL_ES_WRITE, ReadFn: ?MIDL_ES_READ, Operation: MIDL_ES_CODE, ) callconv(@import("std").os.windows.WINAPI) RPC_STATUS; // TODO: this type is limited to platform 'windows5.0' pub extern "rpcrt4" fn MesEncodeFixedBufferHandleCreate( // TODO: what to do with BytesParamIndex 1? pBuffer: ?PSTR, BufferSize: u32, pEncodedSize: ?*u32, pHandle: ?*?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) RPC_STATUS; // TODO: this type is limited to platform 'windows5.0' pub extern "rpcrt4" fn MesEncodeDynBufferHandleCreate( pBuffer: ?*?*i8, pEncodedSize: ?*u32, pHandle: ?*?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) RPC_STATUS; // TODO: this type is limited to platform 'windows5.0' pub extern "rpcrt4" fn MesDecodeBufferHandleCreate( // TODO: what to do with BytesParamIndex 1? Buffer: ?PSTR, BufferSize: u32, pHandle: ?*?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) RPC_STATUS; // TODO: this type is limited to platform 'windows5.0' pub extern "rpcrt4" fn MesBufferHandleReset( Handle: ?*anyopaque, HandleStyle: u32, Operation: MIDL_ES_CODE, // TODO: what to do with BytesParamIndex 4? pBuffer: ?*?*i8, BufferSize: u32, pEncodedSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) RPC_STATUS; // TODO: this type is limited to platform 'windows5.0' pub extern "rpcrt4" fn MesHandleFree( Handle: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) RPC_STATUS; // TODO: this type is limited to platform 'windows5.0' pub extern "rpcrt4" fn MesInqProcEncodingId( Handle: ?*anyopaque, pInterfaceId: ?*RPC_SYNTAX_IDENTIFIER, pProcNum: ?*u32, ) callconv(@import("std").os.windows.WINAPI) RPC_STATUS; pub extern "rpcrt4" fn NdrMesSimpleTypeAlignSize( param0: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) usize; pub extern "rpcrt4" fn NdrMesSimpleTypeDecode( Handle: ?*anyopaque, pObject: ?*anyopaque, Size: i16, ) callconv(@import("std").os.windows.WINAPI) void; pub extern "rpcrt4" fn NdrMesSimpleTypeEncode( Handle: ?*anyopaque, pStubDesc: ?*const MIDL_STUB_DESC, pObject: ?*const anyopaque, Size: i16, ) callconv(@import("std").os.windows.WINAPI) void; pub extern "rpcrt4" fn NdrMesTypeAlignSize( Handle: ?*anyopaque, pStubDesc: ?*const MIDL_STUB_DESC, pFormatString: ?*u8, pObject: ?*const anyopaque, ) callconv(@import("std").os.windows.WINAPI) usize; pub extern "rpcrt4" fn NdrMesTypeEncode( Handle: ?*anyopaque, pStubDesc: ?*const MIDL_STUB_DESC, pFormatString: ?*u8, pObject: ?*const anyopaque, ) callconv(@import("std").os.windows.WINAPI) void; pub extern "rpcrt4" fn NdrMesTypeDecode( Handle: ?*anyopaque, pStubDesc: ?*const MIDL_STUB_DESC, pFormatString: ?*u8, pObject: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) void; pub extern "rpcrt4" fn NdrMesTypeAlignSize2( Handle: ?*anyopaque, pPicklingInfo: ?*const MIDL_TYPE_PICKLING_INFO, pStubDesc: ?*const MIDL_STUB_DESC, pFormatString: ?*u8, pObject: ?*const anyopaque, ) callconv(@import("std").os.windows.WINAPI) usize; pub extern "rpcrt4" fn NdrMesTypeEncode2( Handle: ?*anyopaque, pPicklingInfo: ?*const MIDL_TYPE_PICKLING_INFO, pStubDesc: ?*const MIDL_STUB_DESC, pFormatString: ?*u8, pObject: ?*const anyopaque, ) callconv(@import("std").os.windows.WINAPI) void; pub extern "rpcrt4" fn NdrMesTypeDecode2( Handle: ?*anyopaque, pPicklingInfo: ?*const MIDL_TYPE_PICKLING_INFO, pStubDesc: ?*const MIDL_STUB_DESC, pFormatString: ?*u8, pObject: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) void; pub extern "rpcrt4" fn NdrMesTypeFree2( Handle: ?*anyopaque, pPicklingInfo: ?*const MIDL_TYPE_PICKLING_INFO, pStubDesc: ?*const MIDL_STUB_DESC, pFormatString: ?*u8, pObject: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) void; pub extern "rpcrt4" fn NdrMesProcEncodeDecode( Handle: ?*anyopaque, pStubDesc: ?*const MIDL_STUB_DESC, pFormatString: ?*u8, ) callconv(@import("std").os.windows.WINAPI) void; // TODO: this type is limited to platform 'windows5.0' pub extern "rpcrt4" fn NdrMesProcEncodeDecode2( Handle: ?*anyopaque, pStubDesc: ?*const MIDL_STUB_DESC, pFormatString: ?*u8, ) callconv(@import("std").os.windows.WINAPI) CLIENT_CALL_RETURN; pub extern "rpcrt4" fn NdrMesTypeAlignSize3( Handle: ?*anyopaque, pPicklingInfo: ?*const MIDL_TYPE_PICKLING_INFO, pProxyInfo: ?*const MIDL_STUBLESS_PROXY_INFO, ArrTypeOffset: ?*const ?*u32, nTypeIndex: u32, pObject: ?*const anyopaque, ) callconv(@import("std").os.windows.WINAPI) usize; pub extern "rpcrt4" fn NdrMesTypeEncode3( Handle: ?*anyopaque, pPicklingInfo: ?*const MIDL_TYPE_PICKLING_INFO, pProxyInfo: ?*const MIDL_STUBLESS_PROXY_INFO, ArrTypeOffset: ?*const ?*u32, nTypeIndex: u32, pObject: ?*const anyopaque, ) callconv(@import("std").os.windows.WINAPI) void; pub extern "rpcrt4" fn NdrMesTypeDecode3( Handle: ?*anyopaque, pPicklingInfo: ?*const MIDL_TYPE_PICKLING_INFO, pProxyInfo: ?*const MIDL_STUBLESS_PROXY_INFO, ArrTypeOffset: ?*const ?*u32, nTypeIndex: u32, pObject: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) void; pub extern "rpcrt4" fn NdrMesTypeFree3( Handle: ?*anyopaque, pPicklingInfo: ?*const MIDL_TYPE_PICKLING_INFO, pProxyInfo: ?*const MIDL_STUBLESS_PROXY_INFO, ArrTypeOffset: ?*const ?*u32, nTypeIndex: u32, pObject: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) void; pub extern "rpcrt4" fn NdrMesProcEncodeDecode3( Handle: ?*anyopaque, pProxyInfo: ?*const MIDL_STUBLESS_PROXY_INFO, nProcNum: u32, pReturnValue: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) CLIENT_CALL_RETURN; pub extern "rpcrt4" fn NdrMesSimpleTypeDecodeAll( Handle: ?*anyopaque, pProxyInfo: ?*const MIDL_STUBLESS_PROXY_INFO, pObject: ?*anyopaque, Size: i16, ) callconv(@import("std").os.windows.WINAPI) void; pub extern "rpcrt4" fn NdrMesSimpleTypeEncodeAll( Handle: ?*anyopaque, pProxyInfo: ?*const MIDL_STUBLESS_PROXY_INFO, pObject: ?*const anyopaque, Size: i16, ) callconv(@import("std").os.windows.WINAPI) void; pub extern "rpcrt4" fn NdrMesSimpleTypeAlignSizeAll( Handle: ?*anyopaque, pProxyInfo: ?*const MIDL_STUBLESS_PROXY_INFO, ) callconv(@import("std").os.windows.WINAPI) usize; // TODO: this type is limited to platform 'windows5.0' pub extern "rpcrt4" fn RpcCertGeneratePrincipalNameW( Context: ?*const CERT_CONTEXT, Flags: u32, pBuffer: ?*?*u16, ) callconv(@import("std").os.windows.WINAPI) RPC_STATUS; // TODO: this type is limited to platform 'windows5.0' pub extern "rpcrt4" fn RpcCertGeneratePrincipalNameA( Context: ?*const CERT_CONTEXT, Flags: u32, pBuffer: ?*?*u8, ) callconv(@import("std").os.windows.WINAPI) RPC_STATUS; //-------------------------------------------------------------------------------- // Section: Unicode Aliases (76) //-------------------------------------------------------------------------------- const thismodule = @This(); pub usingnamespace switch (@import("../zig.zig").unicode_mode) { .ansi => struct { pub const RPC_PROTSEQ_VECTOR = thismodule.RPC_PROTSEQ_VECTORA; pub const SEC_WINNT_AUTH_IDENTITY_ = thismodule.SEC_WINNT_AUTH_IDENTITY_A; pub const RPC_HTTP_TRANSPORT_CREDENTIALS_ = thismodule.RPC_HTTP_TRANSPORT_CREDENTIALS_A; pub const RPC_HTTP_TRANSPORT_CREDENTIALS_V2_ = thismodule.RPC_HTTP_TRANSPORT_CREDENTIALS_V2_A; pub const RPC_HTTP_TRANSPORT_CREDENTIALS_V3_ = thismodule.RPC_HTTP_TRANSPORT_CREDENTIALS_V3_A; pub const RPC_SECURITY_QOS_V2_ = thismodule.RPC_SECURITY_QOS_V2_A; pub const RPC_SECURITY_QOS_V3_ = thismodule.RPC_SECURITY_QOS_V3_A; pub const RPC_SECURITY_QOS_V4_ = thismodule.RPC_SECURITY_QOS_V4_A; pub const RPC_SECURITY_QOS_V5_ = thismodule.RPC_SECURITY_QOS_V5_A; pub const RPC_BINDING_HANDLE_TEMPLATE_V1_ = thismodule.RPC_BINDING_HANDLE_TEMPLATE_V1_A; pub const RPC_BINDING_HANDLE_SECURITY_V1_ = thismodule.RPC_BINDING_HANDLE_SECURITY_V1_A; pub const RPC_ENDPOINT_TEMPLATE = thismodule.RPC_ENDPOINT_TEMPLATEA; pub const RPC_INTERFACE_TEMPLATE = thismodule.RPC_INTERFACE_TEMPLATEA; pub const RPC_CALL_ATTRIBUTES_V1_ = thismodule.RPC_CALL_ATTRIBUTES_V1_A; pub const RPC_CALL_ATTRIBUTES_V2_ = thismodule.RPC_CALL_ATTRIBUTES_V2_A; pub const RPC_CALL_ATTRIBUTES_V3_ = thismodule.RPC_CALL_ATTRIBUTES_V3_A; pub const RpcBindingFromStringBinding = thismodule.RpcBindingFromStringBindingA; pub const RpcBindingToStringBinding = thismodule.RpcBindingToStringBindingA; pub const RpcStringBindingCompose = thismodule.RpcStringBindingComposeA; pub const RpcStringBindingParse = thismodule.RpcStringBindingParseA; pub const RpcStringFree = thismodule.RpcStringFreeA; pub const RpcNetworkIsProtseqValid = thismodule.RpcNetworkIsProtseqValidA; pub const RpcNetworkInqProtseqs = thismodule.RpcNetworkInqProtseqsA; pub const RpcProtseqVectorFree = thismodule.RpcProtseqVectorFreeA; pub const RpcServerUseProtseq = thismodule.RpcServerUseProtseqA; pub const RpcServerUseProtseqEx = thismodule.RpcServerUseProtseqExA; pub const RpcServerUseProtseqEp = thismodule.RpcServerUseProtseqEpA; pub const RpcServerUseProtseqEpEx = thismodule.RpcServerUseProtseqEpExA; pub const RpcServerUseProtseqIf = thismodule.RpcServerUseProtseqIfA; pub const RpcServerUseProtseqIfEx = thismodule.RpcServerUseProtseqIfExA; pub const RpcMgmtInqServerPrincName = thismodule.RpcMgmtInqServerPrincNameA; pub const RpcServerInqDefaultPrincName = thismodule.RpcServerInqDefaultPrincNameA; pub const RpcNsBindingInqEntryName = thismodule.RpcNsBindingInqEntryNameA; pub const RpcBindingCreate = thismodule.RpcBindingCreateA; pub const RpcBindingInqAuthClient = thismodule.RpcBindingInqAuthClientA; pub const RpcBindingInqAuthClientEx = thismodule.RpcBindingInqAuthClientExA; pub const RpcBindingInqAuthInfo = thismodule.RpcBindingInqAuthInfoA; pub const RpcBindingSetAuthInfo = thismodule.RpcBindingSetAuthInfoA; pub const RpcBindingSetAuthInfoEx = thismodule.RpcBindingSetAuthInfoExA; pub const RpcBindingInqAuthInfoEx = thismodule.RpcBindingInqAuthInfoExA; pub const RpcServerRegisterAuthInfo = thismodule.RpcServerRegisterAuthInfoA; pub const UuidToString = thismodule.UuidToStringA; pub const UuidFromString = thismodule.UuidFromStringA; pub const RpcEpRegisterNoReplace = thismodule.RpcEpRegisterNoReplaceA; pub const RpcEpRegister = thismodule.RpcEpRegisterA; pub const DceErrorInqText = thismodule.DceErrorInqTextA; pub const RpcMgmtEpEltInqNext = thismodule.RpcMgmtEpEltInqNextA; pub const RpcServerInterfaceGroupCreate = thismodule.RpcServerInterfaceGroupCreateA; pub const I_RpcNsBindingSetEntryName = thismodule.I_RpcNsBindingSetEntryNameA; pub const I_RpcServerUseProtseqEp2 = thismodule.I_RpcServerUseProtseqEp2A; pub const I_RpcServerUseProtseq2 = thismodule.I_RpcServerUseProtseq2A; pub const I_RpcBindingInqDynamicEndpoint = thismodule.I_RpcBindingInqDynamicEndpointA; pub const RpcNsBindingExport = thismodule.RpcNsBindingExportA; pub const RpcNsBindingUnexport = thismodule.RpcNsBindingUnexportA; pub const RpcNsBindingExportPnP = thismodule.RpcNsBindingExportPnPA; pub const RpcNsBindingUnexportPnP = thismodule.RpcNsBindingUnexportPnPA; pub const RpcNsBindingLookupBegin = thismodule.RpcNsBindingLookupBeginA; pub const RpcNsGroupDelete = thismodule.RpcNsGroupDeleteA; pub const RpcNsGroupMbrAdd = thismodule.RpcNsGroupMbrAddA; pub const RpcNsGroupMbrRemove = thismodule.RpcNsGroupMbrRemoveA; pub const RpcNsGroupMbrInqBegin = thismodule.RpcNsGroupMbrInqBeginA; pub const RpcNsGroupMbrInqNext = thismodule.RpcNsGroupMbrInqNextA; pub const RpcNsProfileDelete = thismodule.RpcNsProfileDeleteA; pub const RpcNsProfileEltAdd = thismodule.RpcNsProfileEltAddA; pub const RpcNsProfileEltRemove = thismodule.RpcNsProfileEltRemoveA; pub const RpcNsProfileEltInqBegin = thismodule.RpcNsProfileEltInqBeginA; pub const RpcNsProfileEltInqNext = thismodule.RpcNsProfileEltInqNextA; pub const RpcNsEntryObjectInqBegin = thismodule.RpcNsEntryObjectInqBeginA; pub const RpcNsEntryExpandName = thismodule.RpcNsEntryExpandNameA; pub const RpcNsMgmtBindingUnexport = thismodule.RpcNsMgmtBindingUnexportA; pub const RpcNsMgmtEntryCreate = thismodule.RpcNsMgmtEntryCreateA; pub const RpcNsMgmtEntryDelete = thismodule.RpcNsMgmtEntryDeleteA; pub const RpcNsMgmtEntryInqIfIds = thismodule.RpcNsMgmtEntryInqIfIdsA; pub const RpcNsBindingImportBegin = thismodule.RpcNsBindingImportBeginA; pub const RpcServerInqCallAttributes = thismodule.RpcServerInqCallAttributesA; pub const RpcCertGeneratePrincipalName = thismodule.RpcCertGeneratePrincipalNameA; }, .wide => struct { pub const RPC_PROTSEQ_VECTOR = thismodule.RPC_PROTSEQ_VECTORW; pub const SEC_WINNT_AUTH_IDENTITY_ = thismodule.SEC_WINNT_AUTH_IDENTITY_W; pub const RPC_HTTP_TRANSPORT_CREDENTIALS_ = thismodule.RPC_HTTP_TRANSPORT_CREDENTIALS_W; pub const RPC_HTTP_TRANSPORT_CREDENTIALS_V2_ = thismodule.RPC_HTTP_TRANSPORT_CREDENTIALS_V2_W; pub const RPC_HTTP_TRANSPORT_CREDENTIALS_V3_ = thismodule.RPC_HTTP_TRANSPORT_CREDENTIALS_V3_W; pub const RPC_SECURITY_QOS_V2_ = thismodule.RPC_SECURITY_QOS_V2_W; pub const RPC_SECURITY_QOS_V3_ = thismodule.RPC_SECURITY_QOS_V3_W; pub const RPC_SECURITY_QOS_V4_ = thismodule.RPC_SECURITY_QOS_V4_W; pub const RPC_SECURITY_QOS_V5_ = thismodule.RPC_SECURITY_QOS_V5_W; pub const RPC_BINDING_HANDLE_TEMPLATE_V1_ = thismodule.RPC_BINDING_HANDLE_TEMPLATE_V1_W; pub const RPC_BINDING_HANDLE_SECURITY_V1_ = thismodule.RPC_BINDING_HANDLE_SECURITY_V1_W; pub const RPC_ENDPOINT_TEMPLATE = thismodule.RPC_ENDPOINT_TEMPLATEW; pub const RPC_INTERFACE_TEMPLATE = thismodule.RPC_INTERFACE_TEMPLATEW; pub const RPC_CALL_ATTRIBUTES_V1_ = thismodule.RPC_CALL_ATTRIBUTES_V1_W; pub const RPC_CALL_ATTRIBUTES_V2_ = thismodule.RPC_CALL_ATTRIBUTES_V2_W; pub const RPC_CALL_ATTRIBUTES_V3_ = thismodule.RPC_CALL_ATTRIBUTES_V3_W; pub const RpcBindingFromStringBinding = thismodule.RpcBindingFromStringBindingW; pub const RpcBindingToStringBinding = thismodule.RpcBindingToStringBindingW; pub const RpcStringBindingCompose = thismodule.RpcStringBindingComposeW; pub const RpcStringBindingParse = thismodule.RpcStringBindingParseW; pub const RpcStringFree = thismodule.RpcStringFreeW; pub const RpcNetworkIsProtseqValid = thismodule.RpcNetworkIsProtseqValidW; pub const RpcNetworkInqProtseqs = thismodule.RpcNetworkInqProtseqsW; pub const RpcProtseqVectorFree = thismodule.RpcProtseqVectorFreeW; pub const RpcServerUseProtseq = thismodule.RpcServerUseProtseqW; pub const RpcServerUseProtseqEx = thismodule.RpcServerUseProtseqExW; pub const RpcServerUseProtseqEp = thismodule.RpcServerUseProtseqEpW; pub const RpcServerUseProtseqEpEx = thismodule.RpcServerUseProtseqEpExW; pub const RpcServerUseProtseqIf = thismodule.RpcServerUseProtseqIfW; pub const RpcServerUseProtseqIfEx = thismodule.RpcServerUseProtseqIfExW; pub const RpcMgmtInqServerPrincName = thismodule.RpcMgmtInqServerPrincNameW; pub const RpcServerInqDefaultPrincName = thismodule.RpcServerInqDefaultPrincNameW; pub const RpcNsBindingInqEntryName = thismodule.RpcNsBindingInqEntryNameW; pub const RpcBindingCreate = thismodule.RpcBindingCreateW; pub const RpcBindingInqAuthClient = thismodule.RpcBindingInqAuthClientW; pub const RpcBindingInqAuthClientEx = thismodule.RpcBindingInqAuthClientExW; pub const RpcBindingInqAuthInfo = thismodule.RpcBindingInqAuthInfoW; pub const RpcBindingSetAuthInfo = thismodule.RpcBindingSetAuthInfoW; pub const RpcBindingSetAuthInfoEx = thismodule.RpcBindingSetAuthInfoExW; pub const RpcBindingInqAuthInfoEx = thismodule.RpcBindingInqAuthInfoExW; pub const RpcServerRegisterAuthInfo = thismodule.RpcServerRegisterAuthInfoW; pub const UuidToString = thismodule.UuidToStringW; pub const UuidFromString = thismodule.UuidFromStringW; pub const RpcEpRegisterNoReplace = thismodule.RpcEpRegisterNoReplaceW; pub const RpcEpRegister = thismodule.RpcEpRegisterW; pub const DceErrorInqText = thismodule.DceErrorInqTextW; pub const RpcMgmtEpEltInqNext = thismodule.RpcMgmtEpEltInqNextW; pub const RpcServerInterfaceGroupCreate = thismodule.RpcServerInterfaceGroupCreateW; pub const I_RpcNsBindingSetEntryName = thismodule.I_RpcNsBindingSetEntryNameW; pub const I_RpcServerUseProtseqEp2 = thismodule.I_RpcServerUseProtseqEp2W; pub const I_RpcServerUseProtseq2 = thismodule.I_RpcServerUseProtseq2W; pub const I_RpcBindingInqDynamicEndpoint = thismodule.I_RpcBindingInqDynamicEndpointW; pub const RpcNsBindingExport = thismodule.RpcNsBindingExportW; pub const RpcNsBindingUnexport = thismodule.RpcNsBindingUnexportW; pub const RpcNsBindingExportPnP = thismodule.RpcNsBindingExportPnPW; pub const RpcNsBindingUnexportPnP = thismodule.RpcNsBindingUnexportPnPW; pub const RpcNsBindingLookupBegin = thismodule.RpcNsBindingLookupBeginW; pub const RpcNsGroupDelete = thismodule.RpcNsGroupDeleteW; pub const RpcNsGroupMbrAdd = thismodule.RpcNsGroupMbrAddW; pub const RpcNsGroupMbrRemove = thismodule.RpcNsGroupMbrRemoveW; pub const RpcNsGroupMbrInqBegin = thismodule.RpcNsGroupMbrInqBeginW; pub const RpcNsGroupMbrInqNext = thismodule.RpcNsGroupMbrInqNextW; pub const RpcNsProfileDelete = thismodule.RpcNsProfileDeleteW; pub const RpcNsProfileEltAdd = thismodule.RpcNsProfileEltAddW; pub const RpcNsProfileEltRemove = thismodule.RpcNsProfileEltRemoveW; pub const RpcNsProfileEltInqBegin = thismodule.RpcNsProfileEltInqBeginW; pub const RpcNsProfileEltInqNext = thismodule.RpcNsProfileEltInqNextW; pub const RpcNsEntryObjectInqBegin = thismodule.RpcNsEntryObjectInqBeginW; pub const RpcNsEntryExpandName = thismodule.RpcNsEntryExpandNameW; pub const RpcNsMgmtBindingUnexport = thismodule.RpcNsMgmtBindingUnexportW; pub const RpcNsMgmtEntryCreate = thismodule.RpcNsMgmtEntryCreateW; pub const RpcNsMgmtEntryDelete = thismodule.RpcNsMgmtEntryDeleteW; pub const RpcNsMgmtEntryInqIfIds = thismodule.RpcNsMgmtEntryInqIfIdsW; pub const RpcNsBindingImportBegin = thismodule.RpcNsBindingImportBeginW; pub const RpcServerInqCallAttributes = thismodule.RpcServerInqCallAttributesW; pub const RpcCertGeneratePrincipalName = thismodule.RpcCertGeneratePrincipalNameW; }, .unspecified => if (@import("builtin").is_test) struct { pub const RPC_PROTSEQ_VECTOR = *opaque {}; pub const SEC_WINNT_AUTH_IDENTITY_ = *opaque {}; pub const RPC_HTTP_TRANSPORT_CREDENTIALS_ = *opaque {}; pub const RPC_HTTP_TRANSPORT_CREDENTIALS_V2_ = *opaque {}; pub const RPC_HTTP_TRANSPORT_CREDENTIALS_V3_ = *opaque {}; pub const RPC_SECURITY_QOS_V2_ = *opaque {}; pub const RPC_SECURITY_QOS_V3_ = *opaque {}; pub const RPC_SECURITY_QOS_V4_ = *opaque {}; pub const RPC_SECURITY_QOS_V5_ = *opaque {}; pub const RPC_BINDING_HANDLE_TEMPLATE_V1_ = *opaque {}; pub const RPC_BINDING_HANDLE_SECURITY_V1_ = *opaque {}; pub const RPC_ENDPOINT_TEMPLATE = *opaque {}; pub const RPC_INTERFACE_TEMPLATE = *opaque {}; pub const RPC_CALL_ATTRIBUTES_V1_ = *opaque {}; pub const RPC_CALL_ATTRIBUTES_V2_ = *opaque {}; pub const RPC_CALL_ATTRIBUTES_V3_ = *opaque {}; pub const RpcBindingFromStringBinding = *opaque {}; pub const RpcBindingToStringBinding = *opaque {}; pub const RpcStringBindingCompose = *opaque {}; pub const RpcStringBindingParse = *opaque {}; pub const RpcStringFree = *opaque {}; pub const RpcNetworkIsProtseqValid = *opaque {}; pub const RpcNetworkInqProtseqs = *opaque {}; pub const RpcProtseqVectorFree = *opaque {}; pub const RpcServerUseProtseq = *opaque {}; pub const RpcServerUseProtseqEx = *opaque {}; pub const RpcServerUseProtseqEp = *opaque {}; pub const RpcServerUseProtseqEpEx = *opaque {}; pub const RpcServerUseProtseqIf = *opaque {}; pub const RpcServerUseProtseqIfEx = *opaque {}; pub const RpcMgmtInqServerPrincName = *opaque {}; pub const RpcServerInqDefaultPrincName = *opaque {}; pub const RpcNsBindingInqEntryName = *opaque {}; pub const RpcBindingCreate = *opaque {}; pub const RpcBindingInqAuthClient = *opaque {}; pub const RpcBindingInqAuthClientEx = *opaque {}; pub const RpcBindingInqAuthInfo = *opaque {}; pub const RpcBindingSetAuthInfo = *opaque {}; pub const RpcBindingSetAuthInfoEx = *opaque {}; pub const RpcBindingInqAuthInfoEx = *opaque {}; pub const RpcServerRegisterAuthInfo = *opaque {}; pub const UuidToString = *opaque {}; pub const UuidFromString = *opaque {}; pub const RpcEpRegisterNoReplace = *opaque {}; pub const RpcEpRegister = *opaque {}; pub const DceErrorInqText = *opaque {}; pub const RpcMgmtEpEltInqNext = *opaque {}; pub const RpcServerInterfaceGroupCreate = *opaque {}; pub const I_RpcNsBindingSetEntryName = *opaque {}; pub const I_RpcServerUseProtseqEp2 = *opaque {}; pub const I_RpcServerUseProtseq2 = *opaque {}; pub const I_RpcBindingInqDynamicEndpoint = *opaque {}; pub const RpcNsBindingExport = *opaque {}; pub const RpcNsBindingUnexport = *opaque {}; pub const RpcNsBindingExportPnP = *opaque {}; pub const RpcNsBindingUnexportPnP = *opaque {}; pub const RpcNsBindingLookupBegin = *opaque {}; pub const RpcNsGroupDelete = *opaque {}; pub const RpcNsGroupMbrAdd = *opaque {}; pub const RpcNsGroupMbrRemove = *opaque {}; pub const RpcNsGroupMbrInqBegin = *opaque {}; pub const RpcNsGroupMbrInqNext = *opaque {}; pub const RpcNsProfileDelete = *opaque {}; pub const RpcNsProfileEltAdd = *opaque {}; pub const RpcNsProfileEltRemove = *opaque {}; pub const RpcNsProfileEltInqBegin = *opaque {}; pub const RpcNsProfileEltInqNext = *opaque {}; pub const RpcNsEntryObjectInqBegin = *opaque {}; pub const RpcNsEntryExpandName = *opaque {}; pub const RpcNsMgmtBindingUnexport = *opaque {}; pub const RpcNsMgmtEntryCreate = *opaque {}; pub const RpcNsMgmtEntryDelete = *opaque {}; pub const RpcNsMgmtEntryInqIfIds = *opaque {}; pub const RpcNsBindingImportBegin = *opaque {}; pub const RpcServerInqCallAttributes = *opaque {}; pub const RpcCertGeneratePrincipalName = *opaque {}; } else struct { pub const RPC_PROTSEQ_VECTOR = @compileError("'RPC_PROTSEQ_VECTOR' requires that UNICODE be set to true or false in the root module"); pub const SEC_WINNT_AUTH_IDENTITY_ = @compileError("'SEC_WINNT_AUTH_IDENTITY_' requires that UNICODE be set to true or false in the root module"); pub const RPC_HTTP_TRANSPORT_CREDENTIALS_ = @compileError("'RPC_HTTP_TRANSPORT_CREDENTIALS_' requires that UNICODE be set to true or false in the root module"); pub const RPC_HTTP_TRANSPORT_CREDENTIALS_V2_ = @compileError("'RPC_HTTP_TRANSPORT_CREDENTIALS_V2_' requires that UNICODE be set to true or false in the root module"); pub const RPC_HTTP_TRANSPORT_CREDENTIALS_V3_ = @compileError("'RPC_HTTP_TRANSPORT_CREDENTIALS_V3_' requires that UNICODE be set to true or false in the root module"); pub const RPC_SECURITY_QOS_V2_ = @compileError("'RPC_SECURITY_QOS_V2_' requires that UNICODE be set to true or false in the root module"); pub const RPC_SECURITY_QOS_V3_ = @compileError("'RPC_SECURITY_QOS_V3_' requires that UNICODE be set to true or false in the root module"); pub const RPC_SECURITY_QOS_V4_ = @compileError("'RPC_SECURITY_QOS_V4_' requires that UNICODE be set to true or false in the root module"); pub const RPC_SECURITY_QOS_V5_ = @compileError("'RPC_SECURITY_QOS_V5_' requires that UNICODE be set to true or false in the root module"); pub const RPC_BINDING_HANDLE_TEMPLATE_V1_ = @compileError("'RPC_BINDING_HANDLE_TEMPLATE_V1_' requires that UNICODE be set to true or false in the root module"); pub const RPC_BINDING_HANDLE_SECURITY_V1_ = @compileError("'RPC_BINDING_HANDLE_SECURITY_V1_' requires that UNICODE be set to true or false in the root module"); pub const RPC_ENDPOINT_TEMPLATE = @compileError("'RPC_ENDPOINT_TEMPLATE' requires that UNICODE be set to true or false in the root module"); pub const RPC_INTERFACE_TEMPLATE = @compileError("'RPC_INTERFACE_TEMPLATE' requires that UNICODE be set to true or false in the root module"); pub const RPC_CALL_ATTRIBUTES_V1_ = @compileError("'RPC_CALL_ATTRIBUTES_V1_' requires that UNICODE be set to true or false in the root module"); pub const RPC_CALL_ATTRIBUTES_V2_ = @compileError("'RPC_CALL_ATTRIBUTES_V2_' requires that UNICODE be set to true or false in the root module"); pub const RPC_CALL_ATTRIBUTES_V3_ = @compileError("'RPC_CALL_ATTRIBUTES_V3_' requires that UNICODE be set to true or false in the root module"); pub const RpcBindingFromStringBinding = @compileError("'RpcBindingFromStringBinding' requires that UNICODE be set to true or false in the root module"); pub const RpcBindingToStringBinding = @compileError("'RpcBindingToStringBinding' requires that UNICODE be set to true or false in the root module"); pub const RpcStringBindingCompose = @compileError("'RpcStringBindingCompose' requires that UNICODE be set to true or false in the root module"); pub const RpcStringBindingParse = @compileError("'RpcStringBindingParse' requires that UNICODE be set to true or false in the root module"); pub const RpcStringFree = @compileError("'RpcStringFree' requires that UNICODE be set to true or false in the root module"); pub const RpcNetworkIsProtseqValid = @compileError("'RpcNetworkIsProtseqValid' requires that UNICODE be set to true or false in the root module"); pub const RpcNetworkInqProtseqs = @compileError("'RpcNetworkInqProtseqs' requires that UNICODE be set to true or false in the root module"); pub const RpcProtseqVectorFree = @compileError("'RpcProtseqVectorFree' requires that UNICODE be set to true or false in the root module"); pub const RpcServerUseProtseq = @compileError("'RpcServerUseProtseq' requires that UNICODE be set to true or false in the root module"); pub const RpcServerUseProtseqEx = @compileError("'RpcServerUseProtseqEx' requires that UNICODE be set to true or false in the root module"); pub const RpcServerUseProtseqEp = @compileError("'RpcServerUseProtseqEp' requires that UNICODE be set to true or false in the root module"); pub const RpcServerUseProtseqEpEx = @compileError("'RpcServerUseProtseqEpEx' requires that UNICODE be set to true or false in the root module"); pub const RpcServerUseProtseqIf = @compileError("'RpcServerUseProtseqIf' requires that UNICODE be set to true or false in the root module"); pub const RpcServerUseProtseqIfEx = @compileError("'RpcServerUseProtseqIfEx' requires that UNICODE be set to true or false in the root module"); pub const RpcMgmtInqServerPrincName = @compileError("'RpcMgmtInqServerPrincName' requires that UNICODE be set to true or false in the root module"); pub const RpcServerInqDefaultPrincName = @compileError("'RpcServerInqDefaultPrincName' requires that UNICODE be set to true or false in the root module"); pub const RpcNsBindingInqEntryName = @compileError("'RpcNsBindingInqEntryName' requires that UNICODE be set to true or false in the root module"); pub const RpcBindingCreate = @compileError("'RpcBindingCreate' requires that UNICODE be set to true or false in the root module"); pub const RpcBindingInqAuthClient = @compileError("'RpcBindingInqAuthClient' requires that UNICODE be set to true or false in the root module"); pub const RpcBindingInqAuthClientEx = @compileError("'RpcBindingInqAuthClientEx' requires that UNICODE be set to true or false in the root module"); pub const RpcBindingInqAuthInfo = @compileError("'RpcBindingInqAuthInfo' requires that UNICODE be set to true or false in the root module"); pub const RpcBindingSetAuthInfo = @compileError("'RpcBindingSetAuthInfo' requires that UNICODE be set to true or false in the root module"); pub const RpcBindingSetAuthInfoEx = @compileError("'RpcBindingSetAuthInfoEx' requires that UNICODE be set to true or false in the root module"); pub const RpcBindingInqAuthInfoEx = @compileError("'RpcBindingInqAuthInfoEx' requires that UNICODE be set to true or false in the root module"); pub const RpcServerRegisterAuthInfo = @compileError("'RpcServerRegisterAuthInfo' requires that UNICODE be set to true or false in the root module"); pub const UuidToString = @compileError("'UuidToString' requires that UNICODE be set to true or false in the root module"); pub const UuidFromString = @compileError("'UuidFromString' requires that UNICODE be set to true or false in the root module"); pub const RpcEpRegisterNoReplace = @compileError("'RpcEpRegisterNoReplace' requires that UNICODE be set to true or false in the root module"); pub const RpcEpRegister = @compileError("'RpcEpRegister' requires that UNICODE be set to true or false in the root module"); pub const DceErrorInqText = @compileError("'DceErrorInqText' requires that UNICODE be set to true or false in the root module"); pub const RpcMgmtEpEltInqNext = @compileError("'RpcMgmtEpEltInqNext' requires that UNICODE be set to true or false in the root module"); pub const RpcServerInterfaceGroupCreate = @compileError("'RpcServerInterfaceGroupCreate' requires that UNICODE be set to true or false in the root module"); pub const I_RpcNsBindingSetEntryName = @compileError("'I_RpcNsBindingSetEntryName' requires that UNICODE be set to true or false in the root module"); pub const I_RpcServerUseProtseqEp2 = @compileError("'I_RpcServerUseProtseqEp2' requires that UNICODE be set to true or false in the root module"); pub const I_RpcServerUseProtseq2 = @compileError("'I_RpcServerUseProtseq2' requires that UNICODE be set to true or false in the root module"); pub const I_RpcBindingInqDynamicEndpoint = @compileError("'I_RpcBindingInqDynamicEndpoint' requires that UNICODE be set to true or false in the root module"); pub const RpcNsBindingExport = @compileError("'RpcNsBindingExport' requires that UNICODE be set to true or false in the root module"); pub const RpcNsBindingUnexport = @compileError("'RpcNsBindingUnexport' requires that UNICODE be set to true or false in the root module"); pub const RpcNsBindingExportPnP = @compileError("'RpcNsBindingExportPnP' requires that UNICODE be set to true or false in the root module"); pub const RpcNsBindingUnexportPnP = @compileError("'RpcNsBindingUnexportPnP' requires that UNICODE be set to true or false in the root module"); pub const RpcNsBindingLookupBegin = @compileError("'RpcNsBindingLookupBegin' requires that UNICODE be set to true or false in the root module"); pub const RpcNsGroupDelete = @compileError("'RpcNsGroupDelete' requires that UNICODE be set to true or false in the root module"); pub const RpcNsGroupMbrAdd = @compileError("'RpcNsGroupMbrAdd' requires that UNICODE be set to true or false in the root module"); pub const RpcNsGroupMbrRemove = @compileError("'RpcNsGroupMbrRemove' requires that UNICODE be set to true or false in the root module"); pub const RpcNsGroupMbrInqBegin = @compileError("'RpcNsGroupMbrInqBegin' requires that UNICODE be set to true or false in the root module"); pub const RpcNsGroupMbrInqNext = @compileError("'RpcNsGroupMbrInqNext' requires that UNICODE be set to true or false in the root module"); pub const RpcNsProfileDelete = @compileError("'RpcNsProfileDelete' requires that UNICODE be set to true or false in the root module"); pub const RpcNsProfileEltAdd = @compileError("'RpcNsProfileEltAdd' requires that UNICODE be set to true or false in the root module"); pub const RpcNsProfileEltRemove = @compileError("'RpcNsProfileEltRemove' requires that UNICODE be set to true or false in the root module"); pub const RpcNsProfileEltInqBegin = @compileError("'RpcNsProfileEltInqBegin' requires that UNICODE be set to true or false in the root module"); pub const RpcNsProfileEltInqNext = @compileError("'RpcNsProfileEltInqNext' requires that UNICODE be set to true or false in the root module"); pub const RpcNsEntryObjectInqBegin = @compileError("'RpcNsEntryObjectInqBegin' requires that UNICODE be set to true or false in the root module"); pub const RpcNsEntryExpandName = @compileError("'RpcNsEntryExpandName' requires that UNICODE be set to true or false in the root module"); pub const RpcNsMgmtBindingUnexport = @compileError("'RpcNsMgmtBindingUnexport' requires that UNICODE be set to true or false in the root module"); pub const RpcNsMgmtEntryCreate = @compileError("'RpcNsMgmtEntryCreate' requires that UNICODE be set to true or false in the root module"); pub const RpcNsMgmtEntryDelete = @compileError("'RpcNsMgmtEntryDelete' requires that UNICODE be set to true or false in the root module"); pub const RpcNsMgmtEntryInqIfIds = @compileError("'RpcNsMgmtEntryInqIfIds' requires that UNICODE be set to true or false in the root module"); pub const RpcNsBindingImportBegin = @compileError("'RpcNsBindingImportBegin' requires that UNICODE be set to true or false in the root module"); pub const RpcServerInqCallAttributes = @compileError("'RpcServerInqCallAttributes' requires that UNICODE be set to true or false in the root module"); pub const RpcCertGeneratePrincipalName = @compileError("'RpcCertGeneratePrincipalName' requires that UNICODE be set to true or false in the root module"); }, }; //-------------------------------------------------------------------------------- // Section: Imports (17) //-------------------------------------------------------------------------------- const Guid = @import("../zig.zig").Guid; const BOOL = @import("../foundation.zig").BOOL; const CERT_CONTEXT = @import("../security/cryptography.zig").CERT_CONTEXT; const FILETIME = @import("../foundation.zig").FILETIME; const HANDLE = @import("../foundation.zig").HANDLE; const HRESULT = @import("../foundation.zig").HRESULT; const HWND = @import("../foundation.zig").HWND; const IRpcChannelBuffer = @import("../system/com.zig").IRpcChannelBuffer; const IRpcStubBuffer = @import("../system/com.zig").IRpcStubBuffer; const IUnknown = @import("../system/com.zig").IUnknown; const LARGE_INTEGER = @import("../foundation.zig").LARGE_INTEGER; const LUID = @import("../foundation.zig").LUID; const OVERLAPPED = @import("../system/io.zig").OVERLAPPED; const PSTR = @import("../foundation.zig").PSTR; const PWSTR = @import("../foundation.zig").PWSTR; const RPC_C_IMP_LEVEL = @import("../system/com.zig").RPC_C_IMP_LEVEL; const SYSTEMTIME = @import("../foundation.zig").SYSTEMTIME; test { // The following '_ = <FuncPtrType>' lines are a workaround for https://github.com/ziglang/zig/issues/4476 if (@hasDecl(@This(), "RPC_OBJECT_INQ_FN")) { _ = RPC_OBJECT_INQ_FN; } if (@hasDecl(@This(), "RPC_IF_CALLBACK_FN")) { _ = RPC_IF_CALLBACK_FN; } if (@hasDecl(@This(), "RPC_SECURITY_CALLBACK_FN")) { _ = RPC_SECURITY_CALLBACK_FN; } if (@hasDecl(@This(), "RPC_NEW_HTTP_PROXY_CHANNEL")) { _ = RPC_NEW_HTTP_PROXY_CHANNEL; } if (@hasDecl(@This(), "RPC_HTTP_PROXY_FREE_STRING")) { _ = RPC_HTTP_PROXY_FREE_STRING; } if (@hasDecl(@This(), "RPC_AUTH_KEY_RETRIEVAL_FN")) { _ = RPC_AUTH_KEY_RETRIEVAL_FN; } if (@hasDecl(@This(), "RPC_MGMT_AUTHORIZATION_FN")) { _ = RPC_MGMT_AUTHORIZATION_FN; } if (@hasDecl(@This(), "RPC_INTERFACE_GROUP_IDLE_CALLBACK_FN")) { _ = RPC_INTERFACE_GROUP_IDLE_CALLBACK_FN; } if (@hasDecl(@This(), "RPC_FORWARD_FUNCTION")) { _ = RPC_FORWARD_FUNCTION; } if (@hasDecl(@This(), "RPC_ADDRESS_CHANGE_FN")) { _ = RPC_ADDRESS_CHANGE_FN; } if (@hasDecl(@This(), "RPC_DISPATCH_FUNCTION")) { _ = RPC_DISPATCH_FUNCTION; } if (@hasDecl(@This(), "PRPC_RUNDOWN")) { _ = PRPC_RUNDOWN; } if (@hasDecl(@This(), "RPCLT_PDU_FILTER_FUNC")) { _ = RPCLT_PDU_FILTER_FUNC; } if (@hasDecl(@This(), "RPC_SETFILTER_FUNC")) { _ = RPC_SETFILTER_FUNC; } if (@hasDecl(@This(), "RPC_BLOCKING_FN")) { _ = RPC_BLOCKING_FN; } if (@hasDecl(@This(), "I_RpcProxyIsValidMachineFn")) { _ = I_RpcProxyIsValidMachineFn; } if (@hasDecl(@This(), "I_RpcProxyGetClientAddressFn")) { _ = I_RpcProxyGetClientAddressFn; } if (@hasDecl(@This(), "I_RpcProxyGetConnectionTimeoutFn")) { _ = I_RpcProxyGetConnectionTimeoutFn; } if (@hasDecl(@This(), "I_RpcPerformCalloutFn")) { _ = I_RpcPerformCalloutFn; } if (@hasDecl(@This(), "I_RpcFreeCalloutStateFn")) { _ = I_RpcFreeCalloutStateFn; } if (@hasDecl(@This(), "I_RpcProxyGetClientSessionAndResourceUUID")) { _ = I_RpcProxyGetClientSessionAndResourceUUID; } if (@hasDecl(@This(), "I_RpcProxyFilterIfFn")) { _ = I_RpcProxyFilterIfFn; } if (@hasDecl(@This(), "I_RpcProxyUpdatePerfCounterFn")) { _ = I_RpcProxyUpdatePerfCounterFn; } if (@hasDecl(@This(), "I_RpcProxyUpdatePerfCounterBackendServerFn")) { _ = I_RpcProxyUpdatePerfCounterBackendServerFn; } if (@hasDecl(@This(), "NDR_RUNDOWN")) { _ = NDR_RUNDOWN; } if (@hasDecl(@This(), "NDR_NOTIFY_ROUTINE")) { _ = NDR_NOTIFY_ROUTINE; } if (@hasDecl(@This(), "NDR_NOTIFY2_ROUTINE")) { _ = NDR_NOTIFY2_ROUTINE; } if (@hasDecl(@This(), "GENERIC_BINDING_ROUTINE")) { _ = GENERIC_BINDING_ROUTINE; } if (@hasDecl(@This(), "GENERIC_UNBIND_ROUTINE")) { _ = GENERIC_UNBIND_ROUTINE; } if (@hasDecl(@This(), "USER_MARSHAL_SIZING_ROUTINE")) { _ = USER_MARSHAL_SIZING_ROUTINE; } if (@hasDecl(@This(), "USER_MARSHAL_MARSHALLING_ROUTINE")) { _ = USER_MARSHAL_MARSHALLING_ROUTINE; } if (@hasDecl(@This(), "USER_MARSHAL_UNMARSHALLING_ROUTINE")) { _ = USER_MARSHAL_UNMARSHALLING_ROUTINE; } if (@hasDecl(@This(), "USER_MARSHAL_FREEING_ROUTINE")) { _ = USER_MARSHAL_FREEING_ROUTINE; } if (@hasDecl(@This(), "CS_TYPE_NET_SIZE_ROUTINE")) { _ = CS_TYPE_NET_SIZE_ROUTINE; } if (@hasDecl(@This(), "CS_TYPE_LOCAL_SIZE_ROUTINE")) { _ = CS_TYPE_LOCAL_SIZE_ROUTINE; } if (@hasDecl(@This(), "CS_TYPE_TO_NETCS_ROUTINE")) { _ = CS_TYPE_TO_NETCS_ROUTINE; } if (@hasDecl(@This(), "CS_TYPE_FROM_NETCS_ROUTINE")) { _ = CS_TYPE_FROM_NETCS_ROUTINE; } if (@hasDecl(@This(), "CS_TAG_GETTING_ROUTINE")) { _ = CS_TAG_GETTING_ROUTINE; } if (@hasDecl(@This(), "STUB_THUNK")) { _ = STUB_THUNK; } if (@hasDecl(@This(), "SERVER_ROUTINE")) { _ = SERVER_ROUTINE; } if (@hasDecl(@This(), "RPC_CLIENT_ALLOC")) { _ = RPC_CLIENT_ALLOC; } if (@hasDecl(@This(), "RPC_CLIENT_FREE")) { _ = RPC_CLIENT_FREE; } if (@hasDecl(@This(), "MIDL_ES_ALLOC")) { _ = MIDL_ES_ALLOC; } if (@hasDecl(@This(), "MIDL_ES_WRITE")) { _ = MIDL_ES_WRITE; } if (@hasDecl(@This(), "MIDL_ES_READ")) { _ = MIDL_ES_READ; } @setEvalBranchQuota(comptime @import("std").meta.declarations(@This()).len * 3); // reference all the pub declarations if (!@import("builtin").is_test) return; inline for (comptime @import("std").meta.declarations(@This())) |decl| { if (decl.is_pub) { _ = @field(@This(), decl.name); } } }
0
repos/capy/vendor/zigwin32/win32
repos/capy/vendor/zigwin32/win32/system/ioctl.zig
//! NOTE: this file is autogenerated, DO NOT MODIFY //-------------------------------------------------------------------------------- // Section: Constants (1009) //-------------------------------------------------------------------------------- pub const IOCTL_STORAGE_BASE = @as(u32, 45); pub const IOCTL_SCMBUS_BASE = @as(u32, 89); pub const IOCTL_DISK_BASE = @as(u32, 7); pub const IOCTL_CHANGER_BASE = @as(u32, 48); pub const FILE_SPECIAL_ACCESS = @as(u32, 0); pub const FILE_DEVICE_UNKNOWN = @as(u32, 34); pub const GUID_DEVINTERFACE_DISK = Guid.initString("53f56307-b6bf-11d0-94f2-00a0c91efb8b"); pub const GUID_DEVINTERFACE_CDROM = Guid.initString("53f56308-b6bf-11d0-94f2-00a0c91efb8b"); pub const GUID_DEVINTERFACE_PARTITION = Guid.initString("53f5630a-b6bf-11d0-94f2-00a0c91efb8b"); pub const GUID_DEVINTERFACE_TAPE = Guid.initString("53f5630b-b6bf-11d0-94f2-00a0c91efb8b"); pub const GUID_DEVINTERFACE_WRITEONCEDISK = Guid.initString("53f5630c-b6bf-11d0-94f2-00a0c91efb8b"); pub const GUID_DEVINTERFACE_VOLUME = Guid.initString("53f5630d-b6bf-11d0-94f2-00a0c91efb8b"); pub const GUID_DEVINTERFACE_MEDIUMCHANGER = Guid.initString("53f56310-b6bf-11d0-94f2-00a0c91efb8b"); pub const GUID_DEVINTERFACE_FLOPPY = Guid.initString("53f56311-b6bf-11d0-94f2-00a0c91efb8b"); pub const GUID_DEVINTERFACE_CDCHANGER = Guid.initString("53f56312-b6bf-11d0-94f2-00a0c91efb8b"); pub const GUID_DEVINTERFACE_STORAGEPORT = Guid.initString("2accfe60-c130-11d2-b082-00a0c91efb8b"); pub const GUID_DEVINTERFACE_VMLUN = Guid.initString("6f416619-9f29-42a5-b20b-37e219ca02b0"); pub const GUID_DEVINTERFACE_SES = Guid.initString("1790c9ec-47d5-4df3-b5af-9adf3cf23e48"); pub const GUID_DEVINTERFACE_ZNSDISK = Guid.initString("b87941c5-ffdb-43c7-b6b1-20b632f0b109"); pub const GUID_DEVINTERFACE_SERVICE_VOLUME = Guid.initString("6ead3d82-25ec-46bc-b7fd-c1f0df8f5037"); pub const GUID_DEVINTERFACE_HIDDEN_VOLUME = Guid.initString("7f108a28-9833-4b3b-b780-2c6b5fa5c062"); pub const GUID_DEVINTERFACE_UNIFIED_ACCESS_RPMB = Guid.initString("27447c21-bcc3-4d07-a05b-a3395bb4eee7"); pub const GUID_DEVICEDUMP_STORAGE_DEVICE = Guid.initString("d8e2592f-1aab-4d56-a746-1f7585df40f4"); pub const GUID_DEVICEDUMP_DRIVER_STORAGE_PORT = Guid.initString("da82441d-7142-4bc1-b844-0807c5a4b67f"); pub const DEVPKEY_Storage_Portable = PROPERTYKEY{ .fmtid = Guid.initString("4d1ebee8-0803-4774-9842-b77db50265e9"), .pid = 2 }; pub const DEVPKEY_Storage_Removable_Media = PROPERTYKEY{ .fmtid = Guid.initString("4d1ebee8-0803-4774-9842-b77db50265e9"), .pid = 3 }; pub const DEVPKEY_Storage_System_Critical = PROPERTYKEY{ .fmtid = Guid.initString("4d1ebee8-0803-4774-9842-b77db50265e9"), .pid = 4 }; pub const DEVPKEY_Storage_Disk_Number = PROPERTYKEY{ .fmtid = Guid.initString("4d1ebee8-0803-4774-9842-b77db50265e9"), .pid = 5 }; pub const DEVPKEY_Storage_Partition_Number = PROPERTYKEY{ .fmtid = Guid.initString("4d1ebee8-0803-4774-9842-b77db50265e9"), .pid = 6 }; pub const DEVPKEY_Storage_Mbr_Type = PROPERTYKEY{ .fmtid = Guid.initString("4d1ebee8-0803-4774-9842-b77db50265e9"), .pid = 7 }; pub const DEVPKEY_Storage_Gpt_Type = PROPERTYKEY{ .fmtid = Guid.initString("4d1ebee8-0803-4774-9842-b77db50265e9"), .pid = 8 }; pub const DEVPKEY_Storage_Gpt_Name = PROPERTYKEY{ .fmtid = Guid.initString("4d1ebee8-0803-4774-9842-b77db50265e9"), .pid = 9 }; pub const IOCTL_STORAGE_CHECK_VERIFY = @as(u32, 2967552); pub const IOCTL_STORAGE_CHECK_VERIFY2 = @as(u32, 2951168); pub const IOCTL_STORAGE_MEDIA_REMOVAL = @as(u32, 2967556); pub const IOCTL_STORAGE_EJECT_MEDIA = @as(u32, 2967560); pub const IOCTL_STORAGE_LOAD_MEDIA = @as(u32, 2967564); pub const IOCTL_STORAGE_LOAD_MEDIA2 = @as(u32, 2951180); pub const IOCTL_STORAGE_RESERVE = @as(u32, 2967568); pub const IOCTL_STORAGE_RELEASE = @as(u32, 2967572); pub const IOCTL_STORAGE_FIND_NEW_DEVICES = @as(u32, 2967576); pub const IOCTL_STORAGE_MANAGE_BYPASS_IO = @as(u32, 2951360); pub const IOCTL_STORAGE_EJECTION_CONTROL = @as(u32, 2951488); pub const IOCTL_STORAGE_MCN_CONTROL = @as(u32, 2951492); pub const IOCTL_STORAGE_GET_MEDIA_TYPES = @as(u32, 2952192); pub const IOCTL_STORAGE_GET_MEDIA_TYPES_EX = @as(u32, 2952196); pub const IOCTL_STORAGE_GET_MEDIA_SERIAL_NUMBER = @as(u32, 2952208); pub const IOCTL_STORAGE_GET_HOTPLUG_INFO = @as(u32, 2952212); pub const IOCTL_STORAGE_SET_HOTPLUG_INFO = @as(u32, 3001368); pub const IOCTL_STORAGE_RESET_BUS = @as(u32, 2969600); pub const IOCTL_STORAGE_RESET_DEVICE = @as(u32, 2969604); pub const IOCTL_STORAGE_BREAK_RESERVATION = @as(u32, 2969620); pub const IOCTL_STORAGE_PERSISTENT_RESERVE_IN = @as(u32, 2969624); pub const IOCTL_STORAGE_PERSISTENT_RESERVE_OUT = @as(u32, 3002396); pub const IOCTL_STORAGE_GET_DEVICE_NUMBER = @as(u32, 2953344); pub const IOCTL_STORAGE_GET_DEVICE_NUMBER_EX = @as(u32, 2953348); pub const IOCTL_STORAGE_PREDICT_FAILURE = @as(u32, 2953472); pub const IOCTL_STORAGE_FAILURE_PREDICTION_CONFIG = @as(u32, 2953476); pub const IOCTL_STORAGE_GET_COUNTERS = @as(u32, 2953480); pub const IOCTL_STORAGE_READ_CAPACITY = @as(u32, 2969920); pub const IOCTL_STORAGE_GET_DEVICE_TELEMETRY = @as(u32, 3002816); pub const IOCTL_STORAGE_DEVICE_TELEMETRY_NOTIFY = @as(u32, 3002820); pub const IOCTL_STORAGE_DEVICE_TELEMETRY_QUERY_CAPS = @as(u32, 3002824); pub const IOCTL_STORAGE_GET_DEVICE_TELEMETRY_RAW = @as(u32, 3002828); pub const IOCTL_STORAGE_SET_TEMPERATURE_THRESHOLD = @as(u32, 3002880); pub const IOCTL_STORAGE_PROTOCOL_COMMAND = @as(u32, 3003328); pub const IOCTL_STORAGE_SET_PROPERTY = @as(u32, 2987004); pub const IOCTL_STORAGE_QUERY_PROPERTY = @as(u32, 2954240); pub const IOCTL_STORAGE_MANAGE_DATA_SET_ATTRIBUTES = @as(u32, 2987012); pub const IOCTL_STORAGE_GET_LB_PROVISIONING_MAP_RESOURCES = @as(u32, 2970632); pub const IOCTL_STORAGE_REINITIALIZE_MEDIA = @as(u32, 2987584); pub const IOCTL_STORAGE_GET_BC_PROPERTIES = @as(u32, 2971648); pub const IOCTL_STORAGE_ALLOCATE_BC_STREAM = @as(u32, 3004420); pub const IOCTL_STORAGE_FREE_BC_STREAM = @as(u32, 3004424); pub const IOCTL_STORAGE_CHECK_PRIORITY_HINT_SUPPORT = @as(u32, 2955392); pub const IOCTL_STORAGE_START_DATA_INTEGRITY_CHECK = @as(u32, 3004548); pub const IOCTL_STORAGE_STOP_DATA_INTEGRITY_CHECK = @as(u32, 3004552); pub const OBSOLETE_IOCTL_STORAGE_RESET_BUS = @as(u32, 3002368); pub const OBSOLETE_IOCTL_STORAGE_RESET_DEVICE = @as(u32, 3002372); pub const IOCTL_STORAGE_FIRMWARE_GET_INFO = @as(u32, 2956288); pub const IOCTL_STORAGE_FIRMWARE_DOWNLOAD = @as(u32, 3005444); pub const IOCTL_STORAGE_FIRMWARE_ACTIVATE = @as(u32, 3005448); pub const IOCTL_STORAGE_ENABLE_IDLE_POWER = @as(u32, 2956416); pub const IOCTL_STORAGE_GET_IDLE_POWERUP_REASON = @as(u32, 2956420); pub const IOCTL_STORAGE_POWER_ACTIVE = @as(u32, 2956424); pub const IOCTL_STORAGE_POWER_IDLE = @as(u32, 2956428); pub const IOCTL_STORAGE_EVENT_NOTIFICATION = @as(u32, 2956432); pub const IOCTL_STORAGE_DEVICE_POWER_CAP = @as(u32, 2956436); pub const IOCTL_STORAGE_RPMB_COMMAND = @as(u32, 2956440); pub const IOCTL_STORAGE_ATTRIBUTE_MANAGEMENT = @as(u32, 3005596); pub const IOCTL_STORAGE_DIAGNOSTIC = @as(u32, 2956448); pub const IOCTL_STORAGE_GET_PHYSICAL_ELEMENT_STATUS = @as(u32, 2956452); pub const IOCTL_STORAGE_REMOVE_ELEMENT_AND_TRUNCATE = @as(u32, 2956480); pub const IOCTL_STORAGE_GET_DEVICE_INTERNAL_LOG = @as(u32, 2956484); pub const STORAGE_DEVICE_FLAGS_RANDOM_DEVICEGUID_REASON_CONFLICT = @as(u32, 1); pub const STORAGE_DEVICE_FLAGS_RANDOM_DEVICEGUID_REASON_NOHWID = @as(u32, 2); pub const STORAGE_DEVICE_FLAGS_PAGE_83_DEVICEGUID = @as(u32, 4); pub const RECOVERED_WRITES_VALID = @as(u32, 1); pub const UNRECOVERED_WRITES_VALID = @as(u32, 2); pub const RECOVERED_READS_VALID = @as(u32, 4); pub const UNRECOVERED_READS_VALID = @as(u32, 8); pub const WRITE_COMPRESSION_INFO_VALID = @as(u32, 16); pub const READ_COMPRESSION_INFO_VALID = @as(u32, 32); pub const TAPE_RETURN_STATISTICS = @as(i32, 0); pub const TAPE_RETURN_ENV_INFO = @as(i32, 1); pub const TAPE_RESET_STATISTICS = @as(i32, 2); pub const MEDIA_ERASEABLE = @as(u32, 1); pub const MEDIA_WRITE_ONCE = @as(u32, 2); pub const MEDIA_READ_ONLY = @as(u32, 4); pub const MEDIA_READ_WRITE = @as(u32, 8); pub const MEDIA_WRITE_PROTECTED = @as(u32, 256); pub const MEDIA_CURRENTLY_MOUNTED = @as(u32, 2147483648); pub const STORAGE_FAILURE_PREDICTION_CONFIG_V1 = @as(u32, 1); pub const SRB_TYPE_SCSI_REQUEST_BLOCK = @as(u32, 0); pub const SRB_TYPE_STORAGE_REQUEST_BLOCK = @as(u32, 1); pub const STORAGE_ADDRESS_TYPE_BTL8 = @as(u32, 0); pub const STORAGE_RPMB_DESCRIPTOR_VERSION_1 = @as(u32, 1); pub const STORAGE_RPMB_MINIMUM_RELIABLE_WRITE_SIZE = @as(u32, 512); pub const STORAGE_CRYPTO_CAPABILITY_VERSION_1 = @as(u32, 1); pub const STORAGE_CRYPTO_DESCRIPTOR_VERSION_1 = @as(u32, 1); pub const STORAGE_TIER_NAME_LENGTH = @as(u32, 256); pub const STORAGE_TIER_DESCRIPTION_LENGTH = @as(u32, 512); pub const STORAGE_TIER_FLAG_NO_SEEK_PENALTY = @as(u32, 131072); pub const STORAGE_TIER_FLAG_WRITE_BACK_CACHE = @as(u32, 2097152); pub const STORAGE_TIER_FLAG_READ_CACHE = @as(u32, 4194304); pub const STORAGE_TIER_FLAG_PARITY = @as(u32, 8388608); pub const STORAGE_TIER_FLAG_SMR = @as(u32, 16777216); pub const STORAGE_TEMPERATURE_VALUE_NOT_REPORTED = @as(u32, 32768); pub const STORAGE_TEMPERATURE_THRESHOLD_FLAG_ADAPTER_REQUEST = @as(u32, 1); pub const STORAGE_COMPONENT_ROLE_CACHE = @as(u32, 1); pub const STORAGE_COMPONENT_ROLE_TIERING = @as(u32, 2); pub const STORAGE_COMPONENT_ROLE_DATA = @as(u32, 4); pub const STORAGE_ATTRIBUTE_BYTE_ADDRESSABLE_IO = @as(u32, 1); pub const STORAGE_ATTRIBUTE_BLOCK_IO = @as(u32, 2); pub const STORAGE_ATTRIBUTE_DYNAMIC_PERSISTENCE = @as(u32, 4); pub const STORAGE_ATTRIBUTE_VOLATILE = @as(u32, 8); pub const STORAGE_ATTRIBUTE_ASYNC_EVENT_NOTIFICATION = @as(u32, 16); pub const STORAGE_ATTRIBUTE_PERF_SIZE_INDEPENDENT = @as(u32, 32); pub const STORAGE_DEVICE_MAX_OPERATIONAL_STATUS = @as(u32, 16); pub const STORAGE_ADAPTER_SERIAL_NUMBER_V1_MAX_LENGTH = @as(u32, 128); pub const DeviceDsmActionFlag_NonDestructive = @as(u32, 2147483648); pub const DEVICE_DSM_FLAG_ENTIRE_DATA_SET_RANGE = @as(u32, 1); pub const DEVICE_DSM_FLAG_TRIM_NOT_FS_ALLOCATED = @as(u32, 2147483648); pub const DEVICE_DSM_FLAG_TRIM_BYPASS_RZAT = @as(u32, 1073741824); pub const DEVICE_DSM_NOTIFY_FLAG_BEGIN = @as(u32, 1); pub const DEVICE_DSM_NOTIFY_FLAG_END = @as(u32, 2); pub const STORAGE_OFFLOAD_MAX_TOKEN_LENGTH = @as(u32, 512); pub const STORAGE_OFFLOAD_TOKEN_ID_LENGTH = @as(u32, 504); pub const STORAGE_OFFLOAD_TOKEN_TYPE_ZERO_DATA = @as(u32, 4294901761); pub const STORAGE_OFFLOAD_READ_RANGE_TRUNCATED = @as(u32, 1); pub const STORAGE_OFFLOAD_WRITE_RANGE_TRUNCATED = @as(u32, 1); pub const STORAGE_OFFLOAD_TOKEN_INVALID = @as(u32, 2); pub const DEVICE_DSM_FLAG_ALLOCATION_CONSOLIDATEABLE_ONLY = @as(u32, 1073741824); pub const DEVICE_DSM_PARAMETERS_V1 = @as(u32, 1); pub const DEVICE_DATA_SET_LBP_STATE_PARAMETERS_VERSION_V1 = @as(u32, 1); pub const DEVICE_DSM_FLAG_REPAIR_INPUT_TOPOLOGY_ID_PRESENT = @as(u32, 1073741824); pub const DEVICE_DSM_FLAG_REPAIR_OUTPUT_PARITY_EXTENT = @as(u32, 536870912); pub const DEVICE_DSM_FLAG_SCRUB_SKIP_IN_SYNC = @as(u32, 268435456); pub const DEVICE_DSM_FLAG_SCRUB_OUTPUT_PARITY_EXTENT = @as(u32, 536870912); pub const DEVICE_DSM_FLAG_PHYSICAL_ADDRESSES_OMIT_TOTAL_RANGES = @as(u32, 268435456); pub const DEVICE_DSM_PHYSICAL_ADDRESSES_OUTPUT_V1 = @as(u32, 1); pub const DEVICE_DSM_PHYSICAL_ADDRESSES_OUTPUT_VERSION_V1 = @as(u32, 1); pub const DEVICE_STORAGE_NO_ERRORS = @as(u32, 1); pub const DEVICE_DSM_RANGE_ERROR_OUTPUT_V1 = @as(u32, 1); pub const DEVICE_DSM_RANGE_ERROR_INFO_VERSION_V1 = @as(u32, 1); pub const IOCTL_STORAGE_BC_VERSION = @as(u32, 1); pub const STORAGE_PRIORITY_HINT_SUPPORTED = @as(u32, 1); pub const STORAGE_DIAGNOSTIC_FLAG_ADAPTER_REQUEST = @as(u32, 1); pub const ERROR_HISTORY_DIRECTORY_ENTRY_DEFAULT_COUNT = @as(u32, 8); pub const DEVICEDUMP_STRUCTURE_VERSION_V1 = @as(u32, 1); pub const DEVICEDUMP_MAX_IDSTRING = @as(u32, 32); pub const MAX_FW_BUCKET_ID_LENGTH = @as(u32, 132); pub const DDUMP_FLAG_DATA_READ_FROM_DEVICE = @as(u32, 1); pub const FW_ISSUEID_NO_ISSUE = @as(u32, 0); pub const FW_ISSUEID_UNKNOWN = @as(u32, 4294967295); pub const TC_PUBLIC_DEVICEDUMP_CONTENT_SMART = @as(u32, 1); pub const TC_PUBLIC_DEVICEDUMP_CONTENT_GPLOG = @as(u32, 2); pub const TC_PUBLIC_DEVICEDUMP_CONTENT_GPLOG_MAX = @as(u32, 16); pub const TC_DEVICEDUMP_SUBSECTION_DESC_LENGTH = @as(u32, 16); pub const CDB_SIZE = @as(u32, 16); pub const TELEMETRY_COMMAND_SIZE = @as(u32, 16); pub const DEVICEDUMP_CAP_PRIVATE_SECTION = @as(u32, 1); pub const DEVICEDUMP_CAP_RESTRICTED_SECTION = @as(u32, 2); pub const STORAGE_IDLE_POWERUP_REASON_VERSION_V1 = @as(u32, 1); pub const STORAGE_DEVICE_POWER_CAP_VERSION_V1 = @as(u32, 1); pub const STORAGE_EVENT_NOTIFICATION_VERSION_V1 = @as(u32, 1); pub const STORAGE_EVENT_MEDIA_STATUS = @as(u64, 1); pub const STORAGE_EVENT_DEVICE_STATUS = @as(u64, 2); pub const STORAGE_EVENT_DEVICE_OPERATION = @as(u64, 4); pub const READ_COPY_NUMBER_KEY = @as(u32, 1380142592); pub const READ_COPY_NUMBER_BYPASS_CACHE_FLAG = @as(u32, 256); pub const STORAGE_HW_FIRMWARE_REQUEST_FLAG_CONTROLLER = @as(u32, 1); pub const STORAGE_HW_FIRMWARE_REQUEST_FLAG_LAST_SEGMENT = @as(u32, 2); pub const STORAGE_HW_FIRMWARE_REQUEST_FLAG_FIRST_SEGMENT = @as(u32, 4); pub const STORAGE_HW_FIRMWARE_REQUEST_FLAG_SWITCH_TO_EXISTING_FIRMWARE = @as(u32, 2147483648); pub const STORAGE_HW_FIRMWARE_INVALID_SLOT = @as(u32, 255); pub const STORAGE_HW_FIRMWARE_REVISION_LENGTH = @as(u32, 16); pub const STORAGE_PROTOCOL_STRUCTURE_VERSION = @as(u32, 1); pub const STORAGE_PROTOCOL_COMMAND_FLAG_ADAPTER_REQUEST = @as(u32, 2147483648); pub const STORAGE_PROTOCOL_STATUS_PENDING = @as(u32, 0); pub const STORAGE_PROTOCOL_STATUS_SUCCESS = @as(u32, 1); pub const STORAGE_PROTOCOL_STATUS_ERROR = @as(u32, 2); pub const STORAGE_PROTOCOL_STATUS_INVALID_REQUEST = @as(u32, 3); pub const STORAGE_PROTOCOL_STATUS_NO_DEVICE = @as(u32, 4); pub const STORAGE_PROTOCOL_STATUS_BUSY = @as(u32, 5); pub const STORAGE_PROTOCOL_STATUS_DATA_OVERRUN = @as(u32, 6); pub const STORAGE_PROTOCOL_STATUS_INSUFFICIENT_RESOURCES = @as(u32, 7); pub const STORAGE_PROTOCOL_STATUS_THROTTLED_REQUEST = @as(u32, 8); pub const STORAGE_PROTOCOL_STATUS_NOT_SUPPORTED = @as(u32, 255); pub const STORAGE_PROTOCOL_COMMAND_LENGTH_NVME = @as(u32, 64); pub const STORAGE_PROTOCOL_SPECIFIC_NVME_ADMIN_COMMAND = @as(u32, 1); pub const STORAGE_PROTOCOL_SPECIFIC_NVME_NVM_COMMAND = @as(u32, 2); pub const STORATTRIBUTE_NONE = @as(u32, 0); pub const STORATTRIBUTE_MANAGEMENT_STATE = @as(u32, 1); pub const STORAGE_SUPPORTED_FEATURES_BYPASS_IO = @as(u32, 1); pub const STORAGE_SUPPORTED_FEATURES_MASK = @as(u32, 1); pub const GUID_DEVINTERFACE_SCM_PHYSICAL_DEVICE = Guid.initString("4283609d-4dc2-43be-bbb4-4f15dfce2c61"); pub const GUID_SCM_PD_HEALTH_NOTIFICATION = Guid.initString("9da2d386-72f5-4ee3-8155-eca0678e3b06"); pub const GUID_SCM_PD_PASSTHROUGH_INVDIMM = Guid.initString("4309ac30-0d11-11e4-9191-0800200c9a66"); pub const GUID_DEVINTERFACE_COMPORT = Guid.initString("86e0d1e0-8089-11d0-9ce4-08003e301f73"); pub const GUID_DEVINTERFACE_SERENUM_BUS_ENUMERATOR = Guid.initString("4d36e978-e325-11ce-bfc1-08002be10318"); pub const FILE_DEVICE_BEEP = @as(u32, 1); pub const FILE_DEVICE_CD_ROM_FILE_SYSTEM = @as(u32, 3); pub const FILE_DEVICE_CONTROLLER = @as(u32, 4); pub const FILE_DEVICE_DATALINK = @as(u32, 5); pub const FILE_DEVICE_DFS = @as(u32, 6); pub const FILE_DEVICE_DISK_FILE_SYSTEM = @as(u32, 8); pub const FILE_DEVICE_FILE_SYSTEM = @as(u32, 9); pub const FILE_DEVICE_INPORT_PORT = @as(u32, 10); pub const FILE_DEVICE_KEYBOARD = @as(u32, 11); pub const FILE_DEVICE_MAILSLOT = @as(u32, 12); pub const FILE_DEVICE_MIDI_IN = @as(u32, 13); pub const FILE_DEVICE_MIDI_OUT = @as(u32, 14); pub const FILE_DEVICE_MOUSE = @as(u32, 15); pub const FILE_DEVICE_MULTI_UNC_PROVIDER = @as(u32, 16); pub const FILE_DEVICE_NAMED_PIPE = @as(u32, 17); pub const FILE_DEVICE_NETWORK = @as(u32, 18); pub const FILE_DEVICE_NETWORK_BROWSER = @as(u32, 19); pub const FILE_DEVICE_NETWORK_FILE_SYSTEM = @as(u32, 20); pub const FILE_DEVICE_NULL = @as(u32, 21); pub const FILE_DEVICE_PARALLEL_PORT = @as(u32, 22); pub const FILE_DEVICE_PHYSICAL_NETCARD = @as(u32, 23); pub const FILE_DEVICE_PRINTER = @as(u32, 24); pub const FILE_DEVICE_SCANNER = @as(u32, 25); pub const FILE_DEVICE_SERIAL_MOUSE_PORT = @as(u32, 26); pub const FILE_DEVICE_SERIAL_PORT = @as(u32, 27); pub const FILE_DEVICE_SCREEN = @as(u32, 28); pub const FILE_DEVICE_SOUND = @as(u32, 29); pub const FILE_DEVICE_STREAMS = @as(u32, 30); pub const FILE_DEVICE_TAPE_FILE_SYSTEM = @as(u32, 32); pub const FILE_DEVICE_TRANSPORT = @as(u32, 33); pub const FILE_DEVICE_VIDEO = @as(u32, 35); pub const FILE_DEVICE_VIRTUAL_DISK = @as(u32, 36); pub const FILE_DEVICE_WAVE_IN = @as(u32, 37); pub const FILE_DEVICE_WAVE_OUT = @as(u32, 38); pub const FILE_DEVICE_8042_PORT = @as(u32, 39); pub const FILE_DEVICE_NETWORK_REDIRECTOR = @as(u32, 40); pub const FILE_DEVICE_BATTERY = @as(u32, 41); pub const FILE_DEVICE_BUS_EXTENDER = @as(u32, 42); pub const FILE_DEVICE_MODEM = @as(u32, 43); pub const FILE_DEVICE_VDM = @as(u32, 44); pub const FILE_DEVICE_MASS_STORAGE = @as(u32, 45); pub const FILE_DEVICE_SMB = @as(u32, 46); pub const FILE_DEVICE_KS = @as(u32, 47); pub const FILE_DEVICE_CHANGER = @as(u32, 48); pub const FILE_DEVICE_ACPI = @as(u32, 50); pub const FILE_DEVICE_FULLSCREEN_VIDEO = @as(u32, 52); pub const FILE_DEVICE_DFS_FILE_SYSTEM = @as(u32, 53); pub const FILE_DEVICE_DFS_VOLUME = @as(u32, 54); pub const FILE_DEVICE_SERENUM = @as(u32, 55); pub const FILE_DEVICE_TERMSRV = @as(u32, 56); pub const FILE_DEVICE_KSEC = @as(u32, 57); pub const FILE_DEVICE_FIPS = @as(u32, 58); pub const FILE_DEVICE_INFINIBAND = @as(u32, 59); pub const FILE_DEVICE_VMBUS = @as(u32, 62); pub const FILE_DEVICE_CRYPT_PROVIDER = @as(u32, 63); pub const FILE_DEVICE_WPD = @as(u32, 64); pub const FILE_DEVICE_BLUETOOTH = @as(u32, 65); pub const FILE_DEVICE_MT_COMPOSITE = @as(u32, 66); pub const FILE_DEVICE_MT_TRANSPORT = @as(u32, 67); pub const FILE_DEVICE_BIOMETRIC = @as(u32, 68); pub const FILE_DEVICE_PMI = @as(u32, 69); pub const FILE_DEVICE_EHSTOR = @as(u32, 70); pub const FILE_DEVICE_DEVAPI = @as(u32, 71); pub const FILE_DEVICE_GPIO = @as(u32, 72); pub const FILE_DEVICE_USBEX = @as(u32, 73); pub const FILE_DEVICE_CONSOLE = @as(u32, 80); pub const FILE_DEVICE_NFP = @as(u32, 81); pub const FILE_DEVICE_SYSENV = @as(u32, 82); pub const FILE_DEVICE_VIRTUAL_BLOCK = @as(u32, 83); pub const FILE_DEVICE_POINT_OF_SERVICE = @as(u32, 84); pub const FILE_DEVICE_STORAGE_REPLICATION = @as(u32, 85); pub const FILE_DEVICE_TRUST_ENV = @as(u32, 86); pub const FILE_DEVICE_UCM = @as(u32, 87); pub const FILE_DEVICE_UCMTCPCI = @as(u32, 88); pub const FILE_DEVICE_PERSISTENT_MEMORY = @as(u32, 89); pub const FILE_DEVICE_NVDIMM = @as(u32, 90); pub const FILE_DEVICE_HOLOGRAPHIC = @as(u32, 91); pub const FILE_DEVICE_SDFXHCI = @as(u32, 92); pub const FILE_DEVICE_UCMUCSI = @as(u32, 93); pub const FILE_DEVICE_PRM = @as(u32, 94); pub const FILE_DEVICE_EVENT_COLLECTOR = @as(u32, 95); pub const FILE_DEVICE_USB4 = @as(u32, 96); pub const FILE_DEVICE_SOUNDWIRE = @as(u32, 97); pub const METHOD_BUFFERED = @as(u32, 0); pub const METHOD_IN_DIRECT = @as(u32, 1); pub const METHOD_OUT_DIRECT = @as(u32, 2); pub const METHOD_NEITHER = @as(u32, 3); pub const METHOD_DIRECT_TO_HARDWARE = @as(u32, 1); pub const METHOD_DIRECT_FROM_HARDWARE = @as(u32, 2); pub const FILE_ANY_ACCESS = @as(u32, 0); pub const FILE_READ_ACCESS = @as(u32, 1); pub const FILE_WRITE_ACCESS = @as(u32, 2); pub const STORAGE_DEVICE_NUMA_NODE_UNKNOWN = @as(u32, 4294967295); pub const IOCTL_SCMBUS_DEVICE_FUNCTION_BASE = @as(u32, 0); pub const IOCTL_SCM_LOGICAL_DEVICE_FUNCTION_BASE = @as(u32, 768); pub const IOCTL_SCM_PHYSICAL_DEVICE_FUNCTION_BASE = @as(u32, 1536); pub const IOCTL_SCM_BUS_GET_LOGICAL_DEVICES = @as(u32, 5832704); pub const IOCTL_SCM_BUS_GET_PHYSICAL_DEVICES = @as(u32, 5832708); pub const IOCTL_SCM_BUS_GET_REGIONS = @as(u32, 5832712); pub const IOCTL_SCM_BUS_QUERY_PROPERTY = @as(u32, 5832716); pub const IOCTL_SCM_BUS_SET_PROPERTY = @as(u32, 5865492); pub const IOCTL_SCM_BUS_RUNTIME_FW_ACTIVATE = @as(u32, 5865488); pub const IOCTL_SCM_LD_GET_INTERLEAVE_SET = @as(u32, 5835776); pub const IOCTL_SCM_PD_QUERY_PROPERTY = @as(u32, 5838848); pub const IOCTL_SCM_PD_FIRMWARE_DOWNLOAD = @as(u32, 5871620); pub const IOCTL_SCM_PD_FIRMWARE_ACTIVATE = @as(u32, 5871624); pub const IOCTL_SCM_PD_PASSTHROUGH = @as(u32, 5888012); pub const IOCTL_SCM_PD_UPDATE_MANAGEMENT_STATUS = @as(u32, 5838864); pub const IOCTL_SCM_PD_REINITIALIZE_MEDIA = @as(u32, 5871636); pub const IOCTL_SCM_PD_SET_PROPERTY = @as(u32, 5871640); pub const SCM_MAX_SYMLINK_LEN_IN_CHARS = @as(u32, 256); pub const MAX_INTERFACE_CODES = @as(u32, 8); pub const SCM_PD_FIRMWARE_REVISION_LENGTH_BYTES = @as(u32, 32); pub const SCM_PD_PROPERTY_NAME_LENGTH_IN_CHARS = @as(u32, 128); pub const SCM_PD_MAX_OPERATIONAL_STATUS = @as(u32, 16); pub const SCM_PD_FIRMWARE_LAST_DOWNLOAD = @as(u32, 1); pub const IOCTL_DISK_GET_DRIVE_GEOMETRY = @as(u32, 458752); pub const IOCTL_DISK_GET_PARTITION_INFO = @as(u32, 475140); pub const IOCTL_DISK_SET_PARTITION_INFO = @as(u32, 507912); pub const IOCTL_DISK_GET_DRIVE_LAYOUT = @as(u32, 475148); pub const IOCTL_DISK_SET_DRIVE_LAYOUT = @as(u32, 507920); pub const IOCTL_DISK_VERIFY = @as(u32, 458772); pub const IOCTL_DISK_FORMAT_TRACKS = @as(u32, 507928); pub const IOCTL_DISK_REASSIGN_BLOCKS = @as(u32, 507932); pub const IOCTL_DISK_PERFORMANCE = @as(u32, 458784); pub const IOCTL_DISK_IS_WRITABLE = @as(u32, 458788); pub const IOCTL_DISK_LOGGING = @as(u32, 458792); pub const IOCTL_DISK_FORMAT_TRACKS_EX = @as(u32, 507948); pub const IOCTL_DISK_HISTOGRAM_STRUCTURE = @as(u32, 458800); pub const IOCTL_DISK_HISTOGRAM_DATA = @as(u32, 458804); pub const IOCTL_DISK_HISTOGRAM_RESET = @as(u32, 458808); pub const IOCTL_DISK_REQUEST_STRUCTURE = @as(u32, 458812); pub const IOCTL_DISK_REQUEST_DATA = @as(u32, 458816); pub const IOCTL_DISK_PERFORMANCE_OFF = @as(u32, 458848); pub const IOCTL_DISK_CONTROLLER_NUMBER = @as(u32, 458820); pub const SMART_GET_VERSION = @as(u32, 475264); pub const SMART_SEND_DRIVE_COMMAND = @as(u32, 508036); pub const SMART_RCV_DRIVE_DATA = @as(u32, 508040); pub const SMART_RCV_DRIVE_DATA_EX = @as(u32, 458892); pub const IOCTL_DISK_GET_PARTITION_INFO_EX = @as(u32, 458824); pub const IOCTL_DISK_SET_PARTITION_INFO_EX = @as(u32, 507980); pub const IOCTL_DISK_GET_DRIVE_LAYOUT_EX = @as(u32, 458832); pub const IOCTL_DISK_SET_DRIVE_LAYOUT_EX = @as(u32, 507988); pub const IOCTL_DISK_CREATE_DISK = @as(u32, 507992); pub const IOCTL_DISK_GET_LENGTH_INFO = @as(u32, 475228); pub const IOCTL_DISK_GET_DRIVE_GEOMETRY_EX = @as(u32, 458912); pub const IOCTL_DISK_REASSIGN_BLOCKS_EX = @as(u32, 508068); pub const IOCTL_DISK_UPDATE_DRIVE_SIZE = @as(u32, 508104); pub const IOCTL_DISK_GROW_PARTITION = @as(u32, 508112); pub const IOCTL_DISK_GET_CACHE_INFORMATION = @as(u32, 475348); pub const IOCTL_DISK_SET_CACHE_INFORMATION = @as(u32, 508120); pub const IOCTL_DISK_GET_WRITE_CACHE_STATE = @as(u32, 475356); pub const OBSOLETE_DISK_GET_WRITE_CACHE_STATE = @as(u32, 475356); pub const IOCTL_DISK_DELETE_DRIVE_LAYOUT = @as(u32, 508160); pub const IOCTL_DISK_UPDATE_PROPERTIES = @as(u32, 459072); pub const IOCTL_DISK_FORMAT_DRIVE = @as(u32, 508876); pub const IOCTL_DISK_SENSE_DEVICE = @as(u32, 459744); pub const IOCTL_DISK_CHECK_VERIFY = @as(u32, 477184); pub const IOCTL_DISK_MEDIA_REMOVAL = @as(u32, 477188); pub const IOCTL_DISK_EJECT_MEDIA = @as(u32, 477192); pub const IOCTL_DISK_LOAD_MEDIA = @as(u32, 477196); pub const IOCTL_DISK_RESERVE = @as(u32, 477200); pub const IOCTL_DISK_RELEASE = @as(u32, 477204); pub const IOCTL_DISK_FIND_NEW_DEVICES = @as(u32, 477208); pub const IOCTL_DISK_GET_MEDIA_TYPES = @as(u32, 461824); pub const PARTITION_ENTRY_UNUSED = @as(u32, 0); pub const PARTITION_FAT_12 = @as(u32, 1); pub const PARTITION_XENIX_1 = @as(u32, 2); pub const PARTITION_XENIX_2 = @as(u32, 3); pub const PARTITION_FAT_16 = @as(u32, 4); pub const PARTITION_EXTENDED = @as(u32, 5); pub const PARTITION_HUGE = @as(u32, 6); pub const PARTITION_IFS = @as(u32, 7); pub const PARTITION_OS2BOOTMGR = @as(u32, 10); pub const PARTITION_FAT32 = @as(u32, 11); pub const PARTITION_FAT32_XINT13 = @as(u32, 12); pub const PARTITION_XINT13 = @as(u32, 14); pub const PARTITION_XINT13_EXTENDED = @as(u32, 15); pub const PARTITION_MSFT_RECOVERY = @as(u32, 39); pub const PARTITION_MAIN_OS = @as(u32, 40); pub const PARTIITON_OS_DATA = @as(u32, 41); pub const PARTITION_PRE_INSTALLED = @as(u32, 42); pub const PARTITION_BSP = @as(u32, 43); pub const PARTITION_DPP = @as(u32, 44); pub const PARTITION_WINDOWS_SYSTEM = @as(u32, 45); pub const PARTITION_PREP = @as(u32, 65); pub const PARTITION_LDM = @as(u32, 66); pub const PARTITION_DM = @as(u32, 84); pub const PARTITION_EZDRIVE = @as(u32, 85); pub const PARTITION_UNIX = @as(u32, 99); pub const PARTITION_SPACES_DATA = @as(u32, 215); pub const PARTITION_SPACES = @as(u32, 231); pub const PARTITION_GPT = @as(u32, 238); pub const PARTITION_SYSTEM = @as(u32, 239); pub const VALID_NTFT = @as(u32, 192); pub const PARTITION_NTFT = @as(u32, 128); pub const GPT_ATTRIBUTE_NO_BLOCK_IO_PROTOCOL = @as(u64, 2); pub const GPT_ATTRIBUTE_LEGACY_BIOS_BOOTABLE = @as(u64, 4); pub const GPT_BASIC_DATA_ATTRIBUTE_OFFLINE = @as(u64, 576460752303423488); pub const GPT_BASIC_DATA_ATTRIBUTE_DAX = @as(u64, 288230376151711744); pub const GPT_BASIC_DATA_ATTRIBUTE_SERVICE = @as(u64, 144115188075855872); pub const GPT_SPACES_ATTRIBUTE_NO_METADATA = @as(u64, 9223372036854775808); pub const HIST_NO_OF_BUCKETS = @as(u32, 24); pub const DISK_LOGGING_START = @as(u32, 0); pub const DISK_LOGGING_STOP = @as(u32, 1); pub const DISK_LOGGING_DUMP = @as(u32, 2); pub const DISK_BINNING = @as(u32, 3); pub const CAP_ATA_ID_CMD = @as(u32, 1); pub const CAP_ATAPI_ID_CMD = @as(u32, 2); pub const CAP_SMART_CMD = @as(u32, 4); pub const ATAPI_ID_CMD = @as(u32, 161); pub const ID_CMD = @as(u32, 236); pub const SMART_CMD = @as(u32, 176); pub const SMART_CYL_LOW = @as(u32, 79); pub const SMART_CYL_HI = @as(u32, 194); pub const SMART_NO_ERROR = @as(u32, 0); pub const SMART_IDE_ERROR = @as(u32, 1); pub const SMART_INVALID_FLAG = @as(u32, 2); pub const SMART_INVALID_COMMAND = @as(u32, 3); pub const SMART_INVALID_BUFFER = @as(u32, 4); pub const SMART_INVALID_DRIVE = @as(u32, 5); pub const SMART_INVALID_IOCTL = @as(u32, 6); pub const SMART_ERROR_NO_MEM = @as(u32, 7); pub const SMART_INVALID_REGISTER = @as(u32, 8); pub const SMART_NOT_SUPPORTED = @as(u32, 9); pub const SMART_NO_IDE_DEVICE = @as(u32, 10); pub const SMART_OFFLINE_ROUTINE_OFFLINE = @as(u32, 0); pub const SMART_SHORT_SELFTEST_OFFLINE = @as(u32, 1); pub const SMART_EXTENDED_SELFTEST_OFFLINE = @as(u32, 2); pub const SMART_ABORT_OFFLINE_SELFTEST = @as(u32, 127); pub const SMART_SHORT_SELFTEST_CAPTIVE = @as(u32, 129); pub const SMART_EXTENDED_SELFTEST_CAPTIVE = @as(u32, 130); pub const READ_ATTRIBUTE_BUFFER_SIZE = @as(u32, 512); pub const IDENTIFY_BUFFER_SIZE = @as(u32, 512); pub const READ_THRESHOLD_BUFFER_SIZE = @as(u32, 512); pub const SMART_LOG_SECTOR_SIZE = @as(u32, 512); pub const READ_ATTRIBUTES = @as(u32, 208); pub const READ_THRESHOLDS = @as(u32, 209); pub const ENABLE_DISABLE_AUTOSAVE = @as(u32, 210); pub const SAVE_ATTRIBUTE_VALUES = @as(u32, 211); pub const EXECUTE_OFFLINE_DIAGS = @as(u32, 212); pub const SMART_READ_LOG = @as(u32, 213); pub const SMART_WRITE_LOG = @as(u32, 214); pub const ENABLE_SMART = @as(u32, 216); pub const DISABLE_SMART = @as(u32, 217); pub const RETURN_SMART_STATUS = @as(u32, 218); pub const ENABLE_DISABLE_AUTO_OFFLINE = @as(u32, 219); pub const IOCTL_DISK_GET_DISK_ATTRIBUTES = @as(u32, 458992); pub const IOCTL_DISK_SET_DISK_ATTRIBUTES = @as(u32, 508148); pub const DISK_ATTRIBUTE_OFFLINE = @as(u64, 1); pub const DISK_ATTRIBUTE_READ_ONLY = @as(u64, 2); pub const IOCTL_DISK_RESET_SNAPSHOT_INFO = @as(u32, 508432); pub const IOCTL_CHANGER_GET_PARAMETERS = @as(u32, 3162112); pub const IOCTL_CHANGER_GET_STATUS = @as(u32, 3162116); pub const IOCTL_CHANGER_GET_PRODUCT_DATA = @as(u32, 3162120); pub const IOCTL_CHANGER_SET_ACCESS = @as(u32, 3194896); pub const IOCTL_CHANGER_GET_ELEMENT_STATUS = @as(u32, 3194900); pub const IOCTL_CHANGER_INITIALIZE_ELEMENT_STATUS = @as(u32, 3162136); pub const IOCTL_CHANGER_SET_POSITION = @as(u32, 3162140); pub const IOCTL_CHANGER_EXCHANGE_MEDIUM = @as(u32, 3162144); pub const IOCTL_CHANGER_MOVE_MEDIUM = @as(u32, 3162148); pub const IOCTL_CHANGER_REINITIALIZE_TRANSPORT = @as(u32, 3162152); pub const IOCTL_CHANGER_QUERY_VOLUME_TAGS = @as(u32, 3194924); pub const MAX_VOLUME_ID_SIZE = @as(u32, 36); pub const MAX_VOLUME_TEMPLATE_SIZE = @as(u32, 40); pub const VENDOR_ID_LENGTH = @as(u32, 8); pub const PRODUCT_ID_LENGTH = @as(u32, 16); pub const REVISION_LENGTH = @as(u32, 4); pub const SERIAL_NUMBER_LENGTH = @as(u32, 32); pub const CHANGER_RESERVED_BIT = @as(u32, 2147483648); pub const CHANGER_TO_TRANSPORT = @as(u32, 1); pub const CHANGER_TO_SLOT = @as(u32, 2); pub const CHANGER_TO_IEPORT = @as(u32, 4); pub const CHANGER_TO_DRIVE = @as(u32, 8); pub const LOCK_UNLOCK_IEPORT = @as(u32, 1); pub const LOCK_UNLOCK_DOOR = @as(u32, 2); pub const LOCK_UNLOCK_KEYPAD = @as(u32, 4); pub const LOCK_ELEMENT = @as(u32, 0); pub const UNLOCK_ELEMENT = @as(u32, 1); pub const EXTEND_IEPORT = @as(u32, 2); pub const RETRACT_IEPORT = @as(u32, 3); pub const ERROR_LABEL_UNREADABLE = @as(u32, 1); pub const ERROR_LABEL_QUESTIONABLE = @as(u32, 2); pub const ERROR_SLOT_NOT_PRESENT = @as(u32, 4); pub const ERROR_DRIVE_NOT_INSTALLED = @as(u32, 8); pub const ERROR_TRAY_MALFUNCTION = @as(u32, 16); pub const ERROR_INIT_STATUS_NEEDED = @as(u32, 17); pub const ERROR_UNHANDLED_ERROR = @as(u32, 4294967295); pub const SEARCH_ALL = @as(u32, 0); pub const SEARCH_PRIMARY = @as(u32, 1); pub const SEARCH_ALTERNATE = @as(u32, 2); pub const SEARCH_ALL_NO_SEQ = @as(u32, 4); pub const SEARCH_PRI_NO_SEQ = @as(u32, 5); pub const SEARCH_ALT_NO_SEQ = @as(u32, 6); pub const ASSERT_PRIMARY = @as(u32, 8); pub const ASSERT_ALTERNATE = @as(u32, 9); pub const REPLACE_PRIMARY = @as(u32, 10); pub const REPLACE_ALTERNATE = @as(u32, 11); pub const UNDEFINE_PRIMARY = @as(u32, 12); pub const UNDEFINE_ALTERNATE = @as(u32, 13); pub const IOCTL_SERIAL_LSRMST_INSERT = @as(u32, 1769596); pub const IOCTL_SERENUM_EXPOSE_HARDWARE = @as(u32, 3604992); pub const IOCTL_SERENUM_REMOVE_HARDWARE = @as(u32, 3604996); pub const IOCTL_SERENUM_PORT_DESC = @as(u32, 3605000); pub const IOCTL_SERENUM_GET_PORT_NAME = @as(u32, 3605004); pub const FSCTL_REQUEST_OPLOCK_LEVEL_1 = @as(u32, 589824); pub const FSCTL_REQUEST_OPLOCK_LEVEL_2 = @as(u32, 589828); pub const FSCTL_REQUEST_BATCH_OPLOCK = @as(u32, 589832); pub const FSCTL_OPLOCK_BREAK_ACKNOWLEDGE = @as(u32, 589836); pub const FSCTL_OPBATCH_ACK_CLOSE_PENDING = @as(u32, 589840); pub const FSCTL_OPLOCK_BREAK_NOTIFY = @as(u32, 589844); pub const FSCTL_LOCK_VOLUME = @as(u32, 589848); pub const FSCTL_UNLOCK_VOLUME = @as(u32, 589852); pub const FSCTL_DISMOUNT_VOLUME = @as(u32, 589856); pub const FSCTL_IS_VOLUME_MOUNTED = @as(u32, 589864); pub const FSCTL_IS_PATHNAME_VALID = @as(u32, 589868); pub const FSCTL_MARK_VOLUME_DIRTY = @as(u32, 589872); pub const FSCTL_QUERY_RETRIEVAL_POINTERS = @as(u32, 589883); pub const FSCTL_GET_COMPRESSION = @as(u32, 589884); pub const FSCTL_SET_COMPRESSION = @as(u32, 639040); pub const FSCTL_SET_BOOTLOADER_ACCESSED = @as(u32, 589903); pub const FSCTL_MARK_AS_SYSTEM_HIVE = @as(u32, 589903); pub const FSCTL_OPLOCK_BREAK_ACK_NO_2 = @as(u32, 589904); pub const FSCTL_INVALIDATE_VOLUMES = @as(u32, 589908); pub const FSCTL_QUERY_FAT_BPB = @as(u32, 589912); pub const FSCTL_REQUEST_FILTER_OPLOCK = @as(u32, 589916); pub const FSCTL_FILESYSTEM_GET_STATISTICS = @as(u32, 589920); pub const FSCTL_GET_NTFS_VOLUME_DATA = @as(u32, 589924); pub const FSCTL_GET_NTFS_FILE_RECORD = @as(u32, 589928); pub const FSCTL_GET_VOLUME_BITMAP = @as(u32, 589935); pub const FSCTL_GET_RETRIEVAL_POINTERS = @as(u32, 589939); pub const FSCTL_MOVE_FILE = @as(u32, 589940); pub const FSCTL_IS_VOLUME_DIRTY = @as(u32, 589944); pub const FSCTL_ALLOW_EXTENDED_DASD_IO = @as(u32, 589955); pub const FSCTL_FIND_FILES_BY_SID = @as(u32, 589967); pub const FSCTL_SET_OBJECT_ID = @as(u32, 589976); pub const FSCTL_GET_OBJECT_ID = @as(u32, 589980); pub const FSCTL_DELETE_OBJECT_ID = @as(u32, 589984); pub const FSCTL_SET_REPARSE_POINT = @as(u32, 589988); pub const FSCTL_GET_REPARSE_POINT = @as(u32, 589992); pub const FSCTL_DELETE_REPARSE_POINT = @as(u32, 589996); pub const FSCTL_ENUM_USN_DATA = @as(u32, 590003); pub const FSCTL_SECURITY_ID_CHECK = @as(u32, 606391); pub const FSCTL_READ_USN_JOURNAL = @as(u32, 590011); pub const FSCTL_SET_OBJECT_ID_EXTENDED = @as(u32, 590012); pub const FSCTL_CREATE_OR_GET_OBJECT_ID = @as(u32, 590016); pub const FSCTL_SET_SPARSE = @as(u32, 590020); pub const FSCTL_SET_ZERO_DATA = @as(u32, 622792); pub const FSCTL_QUERY_ALLOCATED_RANGES = @as(u32, 606415); pub const FSCTL_ENABLE_UPGRADE = @as(u32, 622800); pub const FSCTL_SET_ENCRYPTION = @as(u32, 590039); pub const FSCTL_ENCRYPTION_FSCTL_IO = @as(u32, 590043); pub const FSCTL_WRITE_RAW_ENCRYPTED = @as(u32, 590047); pub const FSCTL_READ_RAW_ENCRYPTED = @as(u32, 590051); pub const FSCTL_CREATE_USN_JOURNAL = @as(u32, 590055); pub const FSCTL_READ_FILE_USN_DATA = @as(u32, 590059); pub const FSCTL_WRITE_USN_CLOSE_RECORD = @as(u32, 590063); pub const FSCTL_EXTEND_VOLUME = @as(u32, 590064); pub const FSCTL_QUERY_USN_JOURNAL = @as(u32, 590068); pub const FSCTL_DELETE_USN_JOURNAL = @as(u32, 590072); pub const FSCTL_MARK_HANDLE = @as(u32, 590076); pub const FSCTL_SIS_COPYFILE = @as(u32, 590080); pub const FSCTL_SIS_LINK_FILES = @as(u32, 639236); pub const FSCTL_RECALL_FILE = @as(u32, 590103); pub const FSCTL_READ_FROM_PLEX = @as(u32, 606494); pub const FSCTL_FILE_PREFETCH = @as(u32, 590112); pub const FSCTL_MAKE_MEDIA_COMPATIBLE = @as(u32, 622896); pub const FSCTL_SET_DEFECT_MANAGEMENT = @as(u32, 622900); pub const FSCTL_QUERY_SPARING_INFO = @as(u32, 590136); pub const FSCTL_QUERY_ON_DISK_VOLUME_INFO = @as(u32, 590140); pub const FSCTL_SET_VOLUME_COMPRESSION_STATE = @as(u32, 590144); pub const FSCTL_TXFS_MODIFY_RM = @as(u32, 622916); pub const FSCTL_TXFS_QUERY_RM_INFORMATION = @as(u32, 606536); pub const FSCTL_TXFS_ROLLFORWARD_REDO = @as(u32, 622928); pub const FSCTL_TXFS_ROLLFORWARD_UNDO = @as(u32, 622932); pub const FSCTL_TXFS_START_RM = @as(u32, 622936); pub const FSCTL_TXFS_SHUTDOWN_RM = @as(u32, 622940); pub const FSCTL_TXFS_READ_BACKUP_INFORMATION = @as(u32, 606560); pub const FSCTL_TXFS_WRITE_BACKUP_INFORMATION = @as(u32, 622948); pub const FSCTL_TXFS_CREATE_SECONDARY_RM = @as(u32, 622952); pub const FSCTL_TXFS_GET_METADATA_INFO = @as(u32, 606572); pub const FSCTL_TXFS_GET_TRANSACTED_VERSION = @as(u32, 606576); pub const FSCTL_TXFS_SAVEPOINT_INFORMATION = @as(u32, 622968); pub const FSCTL_TXFS_CREATE_MINIVERSION = @as(u32, 622972); pub const FSCTL_TXFS_TRANSACTION_ACTIVE = @as(u32, 606604); pub const FSCTL_SET_ZERO_ON_DEALLOCATION = @as(u32, 590228); pub const FSCTL_SET_REPAIR = @as(u32, 590232); pub const FSCTL_GET_REPAIR = @as(u32, 590236); pub const FSCTL_WAIT_FOR_REPAIR = @as(u32, 590240); pub const FSCTL_INITIATE_REPAIR = @as(u32, 590248); pub const FSCTL_CSC_INTERNAL = @as(u32, 590255); pub const FSCTL_SHRINK_VOLUME = @as(u32, 590256); pub const FSCTL_SET_SHORT_NAME_BEHAVIOR = @as(u32, 590260); pub const FSCTL_DFSR_SET_GHOST_HANDLE_STATE = @as(u32, 590264); pub const FSCTL_TXFS_LIST_TRANSACTION_LOCKED_FILES = @as(u32, 606688); pub const FSCTL_TXFS_LIST_TRANSACTIONS = @as(u32, 606692); pub const FSCTL_QUERY_PAGEFILE_ENCRYPTION = @as(u32, 590312); pub const FSCTL_RESET_VOLUME_ALLOCATION_HINTS = @as(u32, 590316); pub const FSCTL_QUERY_DEPENDENT_VOLUME = @as(u32, 590320); pub const FSCTL_SD_GLOBAL_CHANGE = @as(u32, 590324); pub const FSCTL_TXFS_READ_BACKUP_INFORMATION2 = @as(u32, 590328); pub const FSCTL_LOOKUP_STREAM_FROM_CLUSTER = @as(u32, 590332); pub const FSCTL_TXFS_WRITE_BACKUP_INFORMATION2 = @as(u32, 590336); pub const FSCTL_FILE_TYPE_NOTIFICATION = @as(u32, 590340); pub const FSCTL_FILE_LEVEL_TRIM = @as(u32, 623112); pub const FSCTL_GET_BOOT_AREA_INFO = @as(u32, 590384); pub const FSCTL_GET_RETRIEVAL_POINTER_BASE = @as(u32, 590388); pub const FSCTL_SET_PERSISTENT_VOLUME_STATE = @as(u32, 590392); pub const FSCTL_QUERY_PERSISTENT_VOLUME_STATE = @as(u32, 590396); pub const FSCTL_REQUEST_OPLOCK = @as(u32, 590400); pub const FSCTL_CSV_TUNNEL_REQUEST = @as(u32, 590404); pub const FSCTL_IS_CSV_FILE = @as(u32, 590408); pub const FSCTL_QUERY_FILE_SYSTEM_RECOGNITION = @as(u32, 590412); pub const FSCTL_CSV_GET_VOLUME_PATH_NAME = @as(u32, 590416); pub const FSCTL_CSV_GET_VOLUME_NAME_FOR_VOLUME_MOUNT_POINT = @as(u32, 590420); pub const FSCTL_CSV_GET_VOLUME_PATH_NAMES_FOR_VOLUME_NAME = @as(u32, 590424); pub const FSCTL_IS_FILE_ON_CSV_VOLUME = @as(u32, 590428); pub const FSCTL_CORRUPTION_HANDLING = @as(u32, 590432); pub const FSCTL_OFFLOAD_READ = @as(u32, 606820); pub const FSCTL_OFFLOAD_WRITE = @as(u32, 623208); pub const FSCTL_CSV_INTERNAL = @as(u32, 590444); pub const FSCTL_SET_PURGE_FAILURE_MODE = @as(u32, 590448); pub const FSCTL_QUERY_FILE_LAYOUT = @as(u32, 590455); pub const FSCTL_IS_VOLUME_OWNED_BYCSVFS = @as(u32, 590456); pub const FSCTL_GET_INTEGRITY_INFORMATION = @as(u32, 590460); pub const FSCTL_SET_INTEGRITY_INFORMATION = @as(u32, 639616); pub const FSCTL_QUERY_FILE_REGIONS = @as(u32, 590468); pub const FSCTL_RKF_INTERNAL = @as(u32, 590511); pub const FSCTL_SCRUB_DATA = @as(u32, 590512); pub const FSCTL_REPAIR_COPIES = @as(u32, 639668); pub const FSCTL_DISABLE_LOCAL_BUFFERING = @as(u32, 590520); pub const FSCTL_CSV_MGMT_LOCK = @as(u32, 590524); pub const FSCTL_CSV_QUERY_DOWN_LEVEL_FILE_SYSTEM_CHARACTERISTICS = @as(u32, 590528); pub const FSCTL_ADVANCE_FILE_ID = @as(u32, 590532); pub const FSCTL_CSV_SYNC_TUNNEL_REQUEST = @as(u32, 590536); pub const FSCTL_CSV_QUERY_VETO_FILE_DIRECT_IO = @as(u32, 590540); pub const FSCTL_WRITE_USN_REASON = @as(u32, 590544); pub const FSCTL_CSV_CONTROL = @as(u32, 590548); pub const FSCTL_GET_REFS_VOLUME_DATA = @as(u32, 590552); pub const FSCTL_CSV_H_BREAKING_SYNC_TUNNEL_REQUEST = @as(u32, 590564); pub const FSCTL_QUERY_STORAGE_CLASSES = @as(u32, 590572); pub const FSCTL_QUERY_REGION_INFO = @as(u32, 590576); pub const FSCTL_USN_TRACK_MODIFIED_RANGES = @as(u32, 590580); pub const FSCTL_QUERY_SHARED_VIRTUAL_DISK_SUPPORT = @as(u32, 590592); pub const FSCTL_SVHDX_SYNC_TUNNEL_REQUEST = @as(u32, 590596); pub const FSCTL_SVHDX_SET_INITIATOR_INFORMATION = @as(u32, 590600); pub const FSCTL_SET_EXTERNAL_BACKING = @as(u32, 590604); pub const FSCTL_GET_EXTERNAL_BACKING = @as(u32, 590608); pub const FSCTL_DELETE_EXTERNAL_BACKING = @as(u32, 590612); pub const FSCTL_ENUM_EXTERNAL_BACKING = @as(u32, 590616); pub const FSCTL_ENUM_OVERLAY = @as(u32, 590623); pub const FSCTL_ADD_OVERLAY = @as(u32, 623408); pub const FSCTL_REMOVE_OVERLAY = @as(u32, 623412); pub const FSCTL_UPDATE_OVERLAY = @as(u32, 623416); pub const FSCTL_SHUFFLE_FILE = @as(u32, 639808); pub const FSCTL_DUPLICATE_EXTENTS_TO_FILE = @as(u32, 623428); pub const FSCTL_SPARSE_OVERALLOCATE = @as(u32, 590668); pub const FSCTL_STORAGE_QOS_CONTROL = @as(u32, 590672); pub const FSCTL_INITIATE_FILE_METADATA_OPTIMIZATION = @as(u32, 590684); pub const FSCTL_QUERY_FILE_METADATA_OPTIMIZATION = @as(u32, 590688); pub const FSCTL_SVHDX_ASYNC_TUNNEL_REQUEST = @as(u32, 590692); pub const FSCTL_GET_WOF_VERSION = @as(u32, 590696); pub const FSCTL_HCS_SYNC_TUNNEL_REQUEST = @as(u32, 590700); pub const FSCTL_HCS_ASYNC_TUNNEL_REQUEST = @as(u32, 590704); pub const FSCTL_QUERY_EXTENT_READ_CACHE_INFO = @as(u32, 590711); pub const FSCTL_QUERY_REFS_VOLUME_COUNTER_INFO = @as(u32, 590715); pub const FSCTL_CLEAN_VOLUME_METADATA = @as(u32, 590716); pub const FSCTL_SET_INTEGRITY_INFORMATION_EX = @as(u32, 590720); pub const FSCTL_SUSPEND_OVERLAY = @as(u32, 590724); pub const FSCTL_VIRTUAL_STORAGE_QUERY_PROPERTY = @as(u32, 590728); pub const FSCTL_FILESYSTEM_GET_STATISTICS_EX = @as(u32, 590732); pub const FSCTL_QUERY_VOLUME_CONTAINER_STATE = @as(u32, 590736); pub const FSCTL_SET_LAYER_ROOT = @as(u32, 590740); pub const FSCTL_QUERY_DIRECT_ACCESS_EXTENTS = @as(u32, 590747); pub const FSCTL_NOTIFY_STORAGE_SPACE_ALLOCATION = @as(u32, 590748); pub const FSCTL_SSDI_STORAGE_REQUEST = @as(u32, 590752); pub const FSCTL_QUERY_DIRECT_IMAGE_ORIGINAL_BASE = @as(u32, 590756); pub const FSCTL_READ_UNPRIVILEGED_USN_JOURNAL = @as(u32, 590763); pub const FSCTL_GHOST_FILE_EXTENTS = @as(u32, 623532); pub const FSCTL_QUERY_GHOSTED_FILE_EXTENTS = @as(u32, 590768); pub const FSCTL_UNMAP_SPACE = @as(u32, 590772); pub const FSCTL_HCS_SYNC_NO_WRITE_TUNNEL_REQUEST = @as(u32, 590776); pub const FSCTL_START_VIRTUALIZATION_INSTANCE = @as(u32, 590784); pub const FSCTL_GET_FILTER_FILE_IDENTIFIER = @as(u32, 590788); pub const FSCTL_STREAMS_QUERY_PARAMETERS = @as(u32, 590788); pub const FSCTL_STREAMS_ASSOCIATE_ID = @as(u32, 590792); pub const FSCTL_STREAMS_QUERY_ID = @as(u32, 590796); pub const FSCTL_GET_RETRIEVAL_POINTERS_AND_REFCOUNT = @as(u32, 590803); pub const FSCTL_QUERY_VOLUME_NUMA_INFO = @as(u32, 590804); pub const FSCTL_REFS_DEALLOCATE_RANGES = @as(u32, 590808); pub const FSCTL_QUERY_REFS_SMR_VOLUME_INFO = @as(u32, 590812); pub const FSCTL_SET_REFS_SMR_VOLUME_GC_PARAMETERS = @as(u32, 590816); pub const FSCTL_SET_REFS_FILE_STRICTLY_SEQUENTIAL = @as(u32, 590820); pub const FSCTL_DUPLICATE_EXTENTS_TO_FILE_EX = @as(u32, 623592); pub const FSCTL_QUERY_BAD_RANGES = @as(u32, 590828); pub const FSCTL_SET_DAX_ALLOC_ALIGNMENT_HINT = @as(u32, 590832); pub const FSCTL_DELETE_CORRUPTED_REFS_CONTAINER = @as(u32, 590836); pub const FSCTL_SCRUB_UNDISCOVERABLE_ID = @as(u32, 590840); pub const FSCTL_NOTIFY_DATA_CHANGE = @as(u32, 590844); pub const FSCTL_START_VIRTUALIZATION_INSTANCE_EX = @as(u32, 590848); pub const FSCTL_ENCRYPTION_KEY_CONTROL = @as(u32, 590852); pub const FSCTL_VIRTUAL_STORAGE_SET_BEHAVIOR = @as(u32, 590856); pub const FSCTL_SET_REPARSE_POINT_EX = @as(u32, 590860); pub const FSCTL_REARRANGE_FILE = @as(u32, 640032); pub const FSCTL_VIRTUAL_STORAGE_PASSTHROUGH = @as(u32, 590884); pub const FSCTL_GET_RETRIEVAL_POINTER_COUNT = @as(u32, 590891); pub const FSCTL_ENABLE_PER_IO_FLAGS = @as(u32, 590892); pub const FSCTL_QUERY_ASYNC_DUPLICATE_EXTENTS_STATUS = @as(u32, 590896); pub const FSCTL_SMB_SHARE_FLUSH_AND_PURGE = @as(u32, 590908); pub const FSCTL_REFS_STREAM_SNAPSHOT_MANAGEMENT = @as(u32, 590912); pub const FSCTL_MANAGE_BYPASS_IO = @as(u32, 590920); pub const GET_VOLUME_BITMAP_FLAG_MASK_METADATA = @as(u32, 1); pub const FLAG_USN_TRACK_MODIFIED_RANGES_ENABLE = @as(u32, 1); pub const USN_PAGE_SIZE = @as(u32, 4096); pub const USN_REASON_DATA_OVERWRITE = @as(u32, 1); pub const USN_REASON_DATA_EXTEND = @as(u32, 2); pub const USN_REASON_DATA_TRUNCATION = @as(u32, 4); pub const USN_REASON_NAMED_DATA_OVERWRITE = @as(u32, 16); pub const USN_REASON_NAMED_DATA_EXTEND = @as(u32, 32); pub const USN_REASON_NAMED_DATA_TRUNCATION = @as(u32, 64); pub const USN_REASON_FILE_CREATE = @as(u32, 256); pub const USN_REASON_FILE_DELETE = @as(u32, 512); pub const USN_REASON_EA_CHANGE = @as(u32, 1024); pub const USN_REASON_SECURITY_CHANGE = @as(u32, 2048); pub const USN_REASON_RENAME_OLD_NAME = @as(u32, 4096); pub const USN_REASON_RENAME_NEW_NAME = @as(u32, 8192); pub const USN_REASON_INDEXABLE_CHANGE = @as(u32, 16384); pub const USN_REASON_BASIC_INFO_CHANGE = @as(u32, 32768); pub const USN_REASON_HARD_LINK_CHANGE = @as(u32, 65536); pub const USN_REASON_COMPRESSION_CHANGE = @as(u32, 131072); pub const USN_REASON_ENCRYPTION_CHANGE = @as(u32, 262144); pub const USN_REASON_OBJECT_ID_CHANGE = @as(u32, 524288); pub const USN_REASON_REPARSE_POINT_CHANGE = @as(u32, 1048576); pub const USN_REASON_STREAM_CHANGE = @as(u32, 2097152); pub const USN_REASON_TRANSACTED_CHANGE = @as(u32, 4194304); pub const USN_REASON_INTEGRITY_CHANGE = @as(u32, 8388608); pub const USN_REASON_DESIRED_STORAGE_CLASS_CHANGE = @as(u32, 16777216); pub const USN_REASON_CLOSE = @as(u32, 2147483648); pub const USN_DELETE_VALID_FLAGS = @as(u32, 3); pub const MARK_HANDLE_PROTECT_CLUSTERS = @as(u32, 1); pub const MARK_HANDLE_TXF_SYSTEM_LOG = @as(u32, 4); pub const MARK_HANDLE_NOT_TXF_SYSTEM_LOG = @as(u32, 8); pub const MARK_HANDLE_REALTIME = @as(u32, 32); pub const MARK_HANDLE_NOT_REALTIME = @as(u32, 64); pub const MARK_HANDLE_CLOUD_SYNC = @as(u32, 2048); pub const MARK_HANDLE_READ_COPY = @as(u32, 128); pub const MARK_HANDLE_NOT_READ_COPY = @as(u32, 256); pub const MARK_HANDLE_FILTER_METADATA = @as(u32, 512); pub const MARK_HANDLE_RETURN_PURGE_FAILURE = @as(u32, 1024); pub const MARK_HANDLE_DISABLE_FILE_METADATA_OPTIMIZATION = @as(u32, 4096); pub const MARK_HANDLE_ENABLE_USN_SOURCE_ON_PAGING_IO = @as(u32, 8192); pub const MARK_HANDLE_SKIP_COHERENCY_SYNC_DISALLOW_WRITES = @as(u32, 16384); pub const MARK_HANDLE_SUPPRESS_VOLUME_OPEN_FLUSH = @as(u32, 32768); pub const MARK_HANDLE_ENABLE_CPU_CACHE = @as(u32, 268435456); pub const VOLUME_IS_DIRTY = @as(u32, 1); pub const VOLUME_UPGRADE_SCHEDULED = @as(u32, 2); pub const VOLUME_SESSION_OPEN = @as(u32, 4); pub const FILE_PREFETCH_TYPE_FOR_CREATE = @as(u32, 1); pub const FILE_PREFETCH_TYPE_FOR_DIRENUM = @as(u32, 2); pub const FILE_PREFETCH_TYPE_FOR_CREATE_EX = @as(u32, 3); pub const FILE_PREFETCH_TYPE_FOR_DIRENUM_EX = @as(u32, 4); pub const FILE_PREFETCH_TYPE_MAX = @as(u32, 4); pub const FILESYSTEM_STATISTICS_TYPE_REFS = @as(u32, 4); pub const FILE_ZERO_DATA_INFORMATION_FLAG_PRESERVE_CACHED_DATA = @as(u32, 1); pub const FILE_SET_ENCRYPTION = @as(u32, 1); pub const FILE_CLEAR_ENCRYPTION = @as(u32, 2); pub const STREAM_SET_ENCRYPTION = @as(u32, 3); pub const STREAM_CLEAR_ENCRYPTION = @as(u32, 4); pub const MAXIMUM_ENCRYPTION_VALUE = @as(u32, 4); pub const ENCRYPTION_FORMAT_DEFAULT = @as(u32, 1); pub const ENCRYPTED_DATA_INFO_SPARSE_FILE = @as(u32, 1); pub const COPYFILE_SIS_LINK = @as(u32, 1); pub const COPYFILE_SIS_REPLACE = @as(u32, 2); pub const COPYFILE_SIS_FLAGS = @as(u32, 3); pub const SET_REPAIR_ENABLED = @as(u32, 1); pub const SET_REPAIR_WARN_ABOUT_DATA_LOSS = @as(u32, 8); pub const SET_REPAIR_DISABLED_AND_BUGCHECK_ON_CORRUPT = @as(u32, 16); pub const SET_REPAIR_VALID_MASK = @as(u32, 25); pub const FILE_INITIATE_REPAIR_HINT1_FILE_RECORD_NOT_IN_USE = @as(u64, 1); pub const FILE_INITIATE_REPAIR_HINT1_FILE_RECORD_REUSED = @as(u64, 2); pub const FILE_INITIATE_REPAIR_HINT1_FILE_RECORD_NOT_EXIST = @as(u64, 4); pub const FILE_INITIATE_REPAIR_HINT1_FILE_RECORD_NOT_BASE_RECORD = @as(u64, 8); pub const FILE_INITIATE_REPAIR_HINT1_SYSTEM_FILE = @as(u64, 16); pub const FILE_INITIATE_REPAIR_HINT1_NOT_IMPLEMENTED = @as(u64, 32); pub const FILE_INITIATE_REPAIR_HINT1_UNABLE_TO_REPAIR = @as(u64, 64); pub const FILE_INITIATE_REPAIR_HINT1_REPAIR_DISABLED = @as(u64, 128); pub const FILE_INITIATE_REPAIR_HINT1_RECURSIVELY_CORRUPTED = @as(u64, 256); pub const FILE_INITIATE_REPAIR_HINT1_ORPHAN_GENERATED = @as(u64, 512); pub const FILE_INITIATE_REPAIR_HINT1_REPAIRED = @as(u64, 1024); pub const FILE_INITIATE_REPAIR_HINT1_NOTHING_WRONG = @as(u64, 2048); pub const FILE_INITIATE_REPAIR_HINT1_ATTRIBUTE_NOT_FOUND = @as(u64, 4096); pub const FILE_INITIATE_REPAIR_HINT1_POTENTIAL_CROSSLINK = @as(u64, 8192); pub const FILE_INITIATE_REPAIR_HINT1_STALE_INFORMATION = @as(u64, 16384); pub const FILE_INITIATE_REPAIR_HINT1_CLUSTERS_ALREADY_IN_USE = @as(u64, 32768); pub const FILE_INITIATE_REPAIR_HINT1_LCN_NOT_EXIST = @as(u64, 65536); pub const FILE_INITIATE_REPAIR_HINT1_INVALID_RUN_LENGTH = @as(u64, 131072); pub const FILE_INITIATE_REPAIR_HINT1_FILE_RECORD_NOT_ORPHAN = @as(u64, 262144); pub const FILE_INITIATE_REPAIR_HINT1_FILE_RECORD_IS_BASE_RECORD = @as(u64, 524288); pub const FILE_INITIATE_REPAIR_HINT1_INVALID_ARRAY_LENGTH_COUNT = @as(u64, 1048576); pub const FILE_INITIATE_REPAIR_HINT1_SID_VALID = @as(u64, 2097152); pub const FILE_INITIATE_REPAIR_HINT1_SID_MISMATCH = @as(u64, 4194304); pub const FILE_INITIATE_REPAIR_HINT1_INVALID_PARENT = @as(u64, 8388608); pub const FILE_INITIATE_REPAIR_HINT1_PARENT_FILE_RECORD_NOT_IN_USE = @as(u64, 16777216); pub const FILE_INITIATE_REPAIR_HINT1_PARENT_FILE_RECORD_REUSED = @as(u64, 33554432); pub const FILE_INITIATE_REPAIR_HINT1_PARENT_FILE_RECORD_NOT_EXIST = @as(u64, 67108864); pub const FILE_INITIATE_REPAIR_HINT1_PARENT_FILE_RECORD_NOT_BASE_RECORD = @as(u64, 134217728); pub const FILE_INITIATE_REPAIR_HINT1_PARENT_FILE_RECORD_NOT_INDEX = @as(u64, 268435456); pub const FILE_INITIATE_REPAIR_HINT1_VALID_INDEX_ENTRY = @as(u64, 536870912); pub const FILE_INITIATE_REPAIR_HINT1_OUT_OF_GENERIC_NAMES = @as(u64, 1073741824); pub const FILE_INITIATE_REPAIR_HINT1_OUT_OF_RESOURCE = @as(u64, 2147483648); pub const FILE_INITIATE_REPAIR_HINT1_INVALID_LCN = @as(u64, 4294967296); pub const FILE_INITIATE_REPAIR_HINT1_INVALID_VCN = @as(u64, 8589934592); pub const FILE_INITIATE_REPAIR_HINT1_NAME_CONFLICT = @as(u64, 17179869184); pub const FILE_INITIATE_REPAIR_HINT1_ORPHAN = @as(u64, 34359738368); pub const FILE_INITIATE_REPAIR_HINT1_ATTRIBUTE_TOO_SMALL = @as(u64, 68719476736); pub const FILE_INITIATE_REPAIR_HINT1_ATTRIBUTE_NON_RESIDENT = @as(u64, 137438953472); pub const FILE_INITIATE_REPAIR_HINT1_DENY_DEFRAG = @as(u64, 274877906944); pub const FILE_INITIATE_REPAIR_HINT1_PREVIOUS_PARENT_STILL_VALID = @as(u64, 549755813888); pub const FILE_INITIATE_REPAIR_HINT1_INDEX_ENTRY_MISMATCH = @as(u64, 1099511627776); pub const FILE_INITIATE_REPAIR_HINT1_INVALID_ORPHAN_RECOVERY_NAME = @as(u64, 2199023255552); pub const FILE_INITIATE_REPAIR_HINT1_MULTIPLE_FILE_NAME_ATTRIBUTES = @as(u64, 4398046511104); pub const TXFS_LOGGING_MODE_SIMPLE = @as(u32, 1); pub const TXFS_LOGGING_MODE_FULL = @as(u32, 2); pub const TXFS_TRANSACTION_STATE_NONE = @as(u32, 0); pub const TXFS_TRANSACTION_STATE_ACTIVE = @as(u32, 1); pub const TXFS_TRANSACTION_STATE_PREPARED = @as(u32, 2); pub const TXFS_TRANSACTION_STATE_NOTACTIVE = @as(u32, 3); pub const TXFS_RM_STATE_NOT_STARTED = @as(u32, 0); pub const TXFS_RM_STATE_STARTING = @as(u32, 1); pub const TXFS_RM_STATE_ACTIVE = @as(u32, 2); pub const TXFS_RM_STATE_SHUTTING_DOWN = @as(u32, 3); pub const TXFS_ROLLFORWARD_REDO_FLAG_USE_LAST_REDO_LSN = @as(u32, 1); pub const TXFS_ROLLFORWARD_REDO_FLAG_USE_LAST_VIRTUAL_CLOCK = @as(u32, 2); pub const TXFS_START_RM_FLAG_LOG_CONTAINER_COUNT_MAX = @as(u32, 1); pub const TXFS_START_RM_FLAG_LOG_CONTAINER_COUNT_MIN = @as(u32, 2); pub const TXFS_START_RM_FLAG_LOG_CONTAINER_SIZE = @as(u32, 4); pub const TXFS_START_RM_FLAG_LOG_GROWTH_INCREMENT_NUM_CONTAINERS = @as(u32, 8); pub const TXFS_START_RM_FLAG_LOG_GROWTH_INCREMENT_PERCENT = @as(u32, 16); pub const TXFS_START_RM_FLAG_LOG_AUTO_SHRINK_PERCENTAGE = @as(u32, 32); pub const TXFS_START_RM_FLAG_LOG_NO_CONTAINER_COUNT_MAX = @as(u32, 64); pub const TXFS_START_RM_FLAG_LOG_NO_CONTAINER_COUNT_MIN = @as(u32, 128); pub const TXFS_START_RM_FLAG_RECOVER_BEST_EFFORT = @as(u32, 512); pub const TXFS_START_RM_FLAG_LOGGING_MODE = @as(u32, 1024); pub const TXFS_START_RM_FLAG_PRESERVE_CHANGES = @as(u32, 2048); pub const TXFS_START_RM_FLAG_PREFER_CONSISTENCY = @as(u32, 4096); pub const TXFS_START_RM_FLAG_PREFER_AVAILABILITY = @as(u32, 8192); pub const TXFS_LIST_TRANSACTION_LOCKED_FILES_ENTRY_FLAG_CREATED = @as(u32, 1); pub const TXFS_LIST_TRANSACTION_LOCKED_FILES_ENTRY_FLAG_DELETED = @as(u32, 2); pub const TXFS_TRANSACTED_VERSION_NONTRANSACTED = @as(u32, 4294967294); pub const TXFS_TRANSACTED_VERSION_UNCOMMITTED = @as(u32, 4294967295); pub const TXFS_SAVEPOINT_SET = @as(u32, 1); pub const TXFS_SAVEPOINT_ROLLBACK = @as(u32, 2); pub const TXFS_SAVEPOINT_CLEAR = @as(u32, 4); pub const TXFS_SAVEPOINT_CLEAR_ALL = @as(u32, 16); pub const PERSISTENT_VOLUME_STATE_SHORT_NAME_CREATION_DISABLED = @as(u32, 1); pub const PERSISTENT_VOLUME_STATE_VOLUME_SCRUB_DISABLED = @as(u32, 2); pub const PERSISTENT_VOLUME_STATE_GLOBAL_METADATA_NO_SEEK_PENALTY = @as(u32, 4); pub const PERSISTENT_VOLUME_STATE_LOCAL_METADATA_NO_SEEK_PENALTY = @as(u32, 8); pub const PERSISTENT_VOLUME_STATE_NO_HEAT_GATHERING = @as(u32, 16); pub const PERSISTENT_VOLUME_STATE_CONTAINS_BACKING_WIM = @as(u32, 32); pub const PERSISTENT_VOLUME_STATE_BACKED_BY_WIM = @as(u32, 64); pub const PERSISTENT_VOLUME_STATE_NO_WRITE_AUTO_TIERING = @as(u32, 128); pub const PERSISTENT_VOLUME_STATE_TXF_DISABLED = @as(u32, 256); pub const PERSISTENT_VOLUME_STATE_REALLOCATE_ALL_DATA_WRITES = @as(u32, 512); pub const PERSISTENT_VOLUME_STATE_CHKDSK_RAN_ONCE = @as(u32, 1024); pub const PERSISTENT_VOLUME_STATE_MODIFIED_BY_CHKDSK = @as(u32, 2048); pub const PERSISTENT_VOLUME_STATE_DAX_FORMATTED = @as(u32, 4096); pub const OPLOCK_LEVEL_CACHE_READ = @as(u32, 1); pub const OPLOCK_LEVEL_CACHE_HANDLE = @as(u32, 2); pub const OPLOCK_LEVEL_CACHE_WRITE = @as(u32, 4); pub const REQUEST_OPLOCK_INPUT_FLAG_REQUEST = @as(u32, 1); pub const REQUEST_OPLOCK_INPUT_FLAG_ACK = @as(u32, 2); pub const REQUEST_OPLOCK_INPUT_FLAG_COMPLETE_ACK_ON_CLOSE = @as(u32, 4); pub const REQUEST_OPLOCK_CURRENT_VERSION = @as(u32, 1); pub const REQUEST_OPLOCK_OUTPUT_FLAG_ACK_REQUIRED = @as(u32, 1); pub const REQUEST_OPLOCK_OUTPUT_FLAG_MODES_PROVIDED = @as(u32, 2); pub const QUERY_DEPENDENT_VOLUME_REQUEST_FLAG_HOST_VOLUMES = @as(u32, 1); pub const QUERY_DEPENDENT_VOLUME_REQUEST_FLAG_GUEST_VOLUMES = @as(u32, 2); pub const SD_GLOBAL_CHANGE_TYPE_MACHINE_SID = @as(u32, 1); pub const SD_GLOBAL_CHANGE_TYPE_QUERY_STATS = @as(u32, 65536); pub const SD_GLOBAL_CHANGE_TYPE_ENUM_SDS = @as(u32, 131072); pub const LOOKUP_STREAM_FROM_CLUSTER_ENTRY_FLAG_PAGE_FILE = @as(u32, 1); pub const LOOKUP_STREAM_FROM_CLUSTER_ENTRY_FLAG_DENY_DEFRAG_SET = @as(u32, 2); pub const LOOKUP_STREAM_FROM_CLUSTER_ENTRY_FLAG_FS_SYSTEM_FILE = @as(u32, 4); pub const LOOKUP_STREAM_FROM_CLUSTER_ENTRY_FLAG_TXF_SYSTEM_FILE = @as(u32, 8); pub const LOOKUP_STREAM_FROM_CLUSTER_ENTRY_ATTRIBUTE_MASK = @as(u32, 4278190080); pub const LOOKUP_STREAM_FROM_CLUSTER_ENTRY_ATTRIBUTE_DATA = @as(u32, 16777216); pub const LOOKUP_STREAM_FROM_CLUSTER_ENTRY_ATTRIBUTE_INDEX = @as(u32, 33554432); pub const LOOKUP_STREAM_FROM_CLUSTER_ENTRY_ATTRIBUTE_SYSTEM = @as(u32, 50331648); pub const FILE_TYPE_NOTIFICATION_FLAG_USAGE_BEGIN = @as(u32, 1); pub const FILE_TYPE_NOTIFICATION_FLAG_USAGE_END = @as(u32, 2); pub const FILE_TYPE_NOTIFICATION_GUID_PAGE_FILE = Guid.initString("0d0a64a1-38fc-4db8-9fe7-3f4352cd7c5c"); pub const FILE_TYPE_NOTIFICATION_GUID_HIBERNATION_FILE = Guid.initString("b7624d64-b9a3-4cf8-8011-5b86c940e7b7"); pub const FILE_TYPE_NOTIFICATION_GUID_CRASHDUMP_FILE = Guid.initString("9d453eb7-d2a6-4dbd-a2e3-fbd0ed9109a9"); pub const CSV_MGMTLOCK_CHECK_VOLUME_REDIRECTED = @as(u32, 1); pub const CSV_INVALID_DEVICE_NUMBER = @as(u32, 4294967295); pub const CSV_QUERY_MDS_PATH_V2_VERSION_1 = @as(u32, 1); pub const CSV_QUERY_MDS_PATH_FLAG_STORAGE_ON_THIS_NODE_IS_CONNECTED = @as(u32, 1); pub const CSV_QUERY_MDS_PATH_FLAG_CSV_DIRECT_IO_ENABLED = @as(u32, 2); pub const CSV_QUERY_MDS_PATH_FLAG_SMB_BYPASS_CSV_ENABLED = @as(u32, 4); pub const QUERY_FILE_LAYOUT_RESTART = @as(u32, 1); pub const QUERY_FILE_LAYOUT_INCLUDE_NAMES = @as(u32, 2); pub const QUERY_FILE_LAYOUT_INCLUDE_STREAMS = @as(u32, 4); pub const QUERY_FILE_LAYOUT_INCLUDE_EXTENTS = @as(u32, 8); pub const QUERY_FILE_LAYOUT_INCLUDE_EXTRA_INFO = @as(u32, 16); pub const QUERY_FILE_LAYOUT_INCLUDE_STREAMS_WITH_NO_CLUSTERS_ALLOCATED = @as(u32, 32); pub const QUERY_FILE_LAYOUT_INCLUDE_FULL_PATH_IN_NAMES = @as(u32, 64); pub const QUERY_FILE_LAYOUT_INCLUDE_STREAM_INFORMATION = @as(u32, 128); pub const QUERY_FILE_LAYOUT_INCLUDE_STREAM_INFORMATION_FOR_DSC_ATTRIBUTE = @as(u32, 256); pub const QUERY_FILE_LAYOUT_INCLUDE_STREAM_INFORMATION_FOR_TXF_ATTRIBUTE = @as(u32, 512); pub const QUERY_FILE_LAYOUT_INCLUDE_STREAM_INFORMATION_FOR_EFS_ATTRIBUTE = @as(u32, 1024); pub const QUERY_FILE_LAYOUT_INCLUDE_ONLY_FILES_WITH_SPECIFIC_ATTRIBUTES = @as(u32, 2048); pub const QUERY_FILE_LAYOUT_INCLUDE_FILES_WITH_DSC_ATTRIBUTE = @as(u32, 4096); pub const QUERY_FILE_LAYOUT_INCLUDE_STREAM_INFORMATION_FOR_DATA_ATTRIBUTE = @as(u32, 8192); pub const QUERY_FILE_LAYOUT_INCLUDE_STREAM_INFORMATION_FOR_REPARSE_ATTRIBUTE = @as(u32, 16384); pub const QUERY_FILE_LAYOUT_INCLUDE_STREAM_INFORMATION_FOR_EA_ATTRIBUTE = @as(u32, 32768); pub const QUERY_FILE_LAYOUT_SINGLE_INSTANCED = @as(u32, 1); pub const FILE_LAYOUT_NAME_ENTRY_PRIMARY = @as(u32, 1); pub const FILE_LAYOUT_NAME_ENTRY_DOS = @as(u32, 2); pub const STREAM_LAYOUT_ENTRY_IMMOVABLE = @as(u32, 1); pub const STREAM_LAYOUT_ENTRY_PINNED = @as(u32, 2); pub const STREAM_LAYOUT_ENTRY_RESIDENT = @as(u32, 4); pub const STREAM_LAYOUT_ENTRY_NO_CLUSTERS_ALLOCATED = @as(u32, 8); pub const STREAM_LAYOUT_ENTRY_HAS_INFORMATION = @as(u32, 16); pub const STREAM_EXTENT_ENTRY_AS_RETRIEVAL_POINTERS = @as(u32, 1); pub const STREAM_EXTENT_ENTRY_ALL_EXTENTS = @as(u32, 2); pub const CHECKSUM_TYPE_UNCHANGED = @as(i32, -1); pub const CHECKSUM_TYPE_NONE = @as(u32, 0); pub const CHECKSUM_TYPE_CRC32 = @as(u32, 1); pub const CHECKSUM_TYPE_CRC64 = @as(u32, 2); pub const CHECKSUM_TYPE_ECC = @as(u32, 3); pub const CHECKSUM_TYPE_FIRST_UNUSED_TYPE = @as(u32, 4); pub const FSCTL_INTEGRITY_FLAG_CHECKSUM_ENFORCEMENT_OFF = @as(u32, 1); pub const OFFLOAD_READ_FLAG_ALL_ZERO_BEYOND_CURRENT_RANGE = @as(u32, 1); pub const SET_PURGE_FAILURE_MODE_ENABLED = @as(u32, 1); pub const SET_PURGE_FAILURE_MODE_DISABLED = @as(u32, 2); pub const FILE_REGION_USAGE_VALID_CACHED_DATA = @as(u32, 1); pub const FILE_REGION_USAGE_VALID_NONCACHED_DATA = @as(u32, 2); pub const FILE_REGION_USAGE_OTHER_PAGE_ALIGNMENT = @as(u32, 4); pub const FILE_REGION_USAGE_LARGE_PAGE_ALIGNMENT = @as(u32, 8); pub const FILE_REGION_USAGE_HUGE_PAGE_ALIGNMENT = @as(u32, 16); pub const FILE_REGION_USAGE_QUERY_ALIGNMENT = @as(u32, 8); pub const FILE_STORAGE_TIER_NAME_LENGTH = @as(u32, 256); pub const FILE_STORAGE_TIER_DESCRIPTION_LENGTH = @as(u32, 512); pub const FILE_STORAGE_TIER_FLAG_WRITE_BACK_CACHE = @as(u32, 2097152); pub const FILE_STORAGE_TIER_FLAG_READ_CACHE = @as(u32, 4194304); pub const FILE_STORAGE_TIER_FLAG_PARITY = @as(u32, 8388608); pub const FILE_STORAGE_TIER_FLAG_SMR = @as(u32, 16777216); pub const QUERY_STORAGE_CLASSES_FLAGS_MEASURE_WRITE = @as(u32, 2147483648); pub const QUERY_STORAGE_CLASSES_FLAGS_MEASURE_READ = @as(u32, 1073741824); pub const QUERY_STORAGE_CLASSES_FLAGS_NO_DEFRAG_VOLUME = @as(u32, 536870912); pub const QUERY_FILE_LAYOUT_REPARSE_DATA_INVALID = @as(u32, 1); pub const QUERY_FILE_LAYOUT_REPARSE_TAG_INVALID = @as(u32, 2); pub const DUPLICATE_EXTENTS_DATA_EX_SOURCE_ATOMIC = @as(u32, 1); pub const DUPLICATE_EXTENTS_DATA_EX_ASYNC = @as(u32, 2); pub const REFS_SMR_VOLUME_INFO_OUTPUT_VERSION_V0 = @as(u32, 0); pub const REFS_SMR_VOLUME_INFO_OUTPUT_VERSION_V1 = @as(u32, 1); pub const REFS_SMR_VOLUME_GC_PARAMETERS_VERSION_V1 = @as(u32, 1); pub const STREAMS_INVALID_ID = @as(u32, 0); pub const STREAMS_MAX_ID = @as(u32, 65535); pub const STREAMS_ASSOCIATE_ID_CLEAR = @as(u32, 1); pub const STREAMS_ASSOCIATE_ID_SET = @as(u32, 2); pub const DAX_ALLOC_ALIGNMENT_FLAG_MANDATORY = @as(u32, 1); pub const DAX_ALLOC_ALIGNMENT_FLAG_FALLBACK_SPECIFIED = @as(u32, 2); pub const WOF_CURRENT_VERSION = @as(u32, 1); pub const WOF_PROVIDER_CLOUD = @as(u32, 3); pub const WIM_PROVIDER_CURRENT_VERSION = @as(u32, 1); pub const WIM_PROVIDER_EXTERNAL_FLAG_NOT_ACTIVE = @as(u32, 1); pub const WIM_PROVIDER_EXTERNAL_FLAG_SUSPENDED = @as(u32, 2); pub const FILE_PROVIDER_CURRENT_VERSION = @as(u32, 1); pub const FILE_PROVIDER_SINGLE_FILE = @as(u32, 1); pub const FILE_PROVIDER_COMPRESSION_MAXIMUM = @as(u32, 4); pub const FILE_PROVIDER_FLAG_COMPRESS_ON_WRITE = @as(u32, 1); pub const CONTAINER_VOLUME_STATE_HOSTING_CONTAINER = @as(u32, 1); pub const CONTAINER_ROOT_INFO_FLAG_SCRATCH_ROOT = @as(u32, 1); pub const CONTAINER_ROOT_INFO_FLAG_LAYER_ROOT = @as(u32, 2); pub const CONTAINER_ROOT_INFO_FLAG_VIRTUALIZATION_ROOT = @as(u32, 4); pub const CONTAINER_ROOT_INFO_FLAG_VIRTUALIZATION_TARGET_ROOT = @as(u32, 8); pub const CONTAINER_ROOT_INFO_FLAG_VIRTUALIZATION_EXCEPTION_ROOT = @as(u32, 16); pub const CONTAINER_ROOT_INFO_FLAG_BIND_ROOT = @as(u32, 32); pub const CONTAINER_ROOT_INFO_FLAG_BIND_TARGET_ROOT = @as(u32, 64); pub const CONTAINER_ROOT_INFO_FLAG_BIND_EXCEPTION_ROOT = @as(u32, 128); pub const CONTAINER_ROOT_INFO_FLAG_BIND_DO_NOT_MAP_NAME = @as(u32, 256); pub const CONTAINER_ROOT_INFO_FLAG_UNION_LAYER_ROOT = @as(u32, 512); pub const CONTAINER_ROOT_INFO_VALID_FLAGS = @as(u32, 1023); pub const PROJFS_PROTOCOL_VERSION = @as(u32, 3); pub const EFS_TRACKED_OFFSET_HEADER_FLAG = @as(u32, 1); pub const SPACES_TRACKED_OFFSET_HEADER_FLAG = @as(u32, 2); //-------------------------------------------------------------------------------- // Section: Types (521) //-------------------------------------------------------------------------------- pub const GPT_ATTRIBUTES = enum(u64) { ATTRIBUTE_PLATFORM_REQUIRED = 1, BASIC_DATA_ATTRIBUTE_NO_DRIVE_LETTER = 9223372036854775808, BASIC_DATA_ATTRIBUTE_HIDDEN = 4611686018427387904, BASIC_DATA_ATTRIBUTE_SHADOW_COPY = 2305843009213693952, BASIC_DATA_ATTRIBUTE_READ_ONLY = 1152921504606846976, _, pub fn initFlags(o: struct { ATTRIBUTE_PLATFORM_REQUIRED: u1 = 0, BASIC_DATA_ATTRIBUTE_NO_DRIVE_LETTER: u1 = 0, BASIC_DATA_ATTRIBUTE_HIDDEN: u1 = 0, BASIC_DATA_ATTRIBUTE_SHADOW_COPY: u1 = 0, BASIC_DATA_ATTRIBUTE_READ_ONLY: u1 = 0, }) GPT_ATTRIBUTES { return @as(GPT_ATTRIBUTES, @enumFromInt((if (o.ATTRIBUTE_PLATFORM_REQUIRED == 1) @intFromEnum(GPT_ATTRIBUTES.ATTRIBUTE_PLATFORM_REQUIRED) else 0) | (if (o.BASIC_DATA_ATTRIBUTE_NO_DRIVE_LETTER == 1) @intFromEnum(GPT_ATTRIBUTES.BASIC_DATA_ATTRIBUTE_NO_DRIVE_LETTER) else 0) | (if (o.BASIC_DATA_ATTRIBUTE_HIDDEN == 1) @intFromEnum(GPT_ATTRIBUTES.BASIC_DATA_ATTRIBUTE_HIDDEN) else 0) | (if (o.BASIC_DATA_ATTRIBUTE_SHADOW_COPY == 1) @intFromEnum(GPT_ATTRIBUTES.BASIC_DATA_ATTRIBUTE_SHADOW_COPY) else 0) | (if (o.BASIC_DATA_ATTRIBUTE_READ_ONLY == 1) @intFromEnum(GPT_ATTRIBUTES.BASIC_DATA_ATTRIBUTE_READ_ONLY) else 0))); } }; pub const GPT_ATTRIBUTE_PLATFORM_REQUIRED = GPT_ATTRIBUTES.ATTRIBUTE_PLATFORM_REQUIRED; pub const GPT_BASIC_DATA_ATTRIBUTE_NO_DRIVE_LETTER = GPT_ATTRIBUTES.BASIC_DATA_ATTRIBUTE_NO_DRIVE_LETTER; pub const GPT_BASIC_DATA_ATTRIBUTE_HIDDEN = GPT_ATTRIBUTES.BASIC_DATA_ATTRIBUTE_HIDDEN; pub const GPT_BASIC_DATA_ATTRIBUTE_SHADOW_COPY = GPT_ATTRIBUTES.BASIC_DATA_ATTRIBUTE_SHADOW_COPY; pub const GPT_BASIC_DATA_ATTRIBUTE_READ_ONLY = GPT_ATTRIBUTES.BASIC_DATA_ATTRIBUTE_READ_ONLY; pub const USN_DELETE_FLAGS = enum(u32) { DELETE = 1, NOTIFY = 2, _, pub fn initFlags(o: struct { DELETE: u1 = 0, NOTIFY: u1 = 0, }) USN_DELETE_FLAGS { return @as(USN_DELETE_FLAGS, @enumFromInt((if (o.DELETE == 1) @intFromEnum(USN_DELETE_FLAGS.DELETE) else 0) | (if (o.NOTIFY == 1) @intFromEnum(USN_DELETE_FLAGS.NOTIFY) else 0))); } }; pub const USN_DELETE_FLAG_DELETE = USN_DELETE_FLAGS.DELETE; pub const USN_DELETE_FLAG_NOTIFY = USN_DELETE_FLAGS.NOTIFY; pub const CHANGER_FEATURES = enum(u32) { BAR_CODE_SCANNER_INSTALLED = 1, CARTRIDGE_MAGAZINE = 256, CLEANER_ACCESS_NOT_VALID = 262144, CLEANER_SLOT = 64, CLOSE_IEPORT = 4, DEVICE_REINITIALIZE_CAPABLE = 134217728, DRIVE_CLEANING_REQUIRED = 65536, DRIVE_EMPTY_ON_DOOR_ACCESS = 536870912, EXCHANGE_MEDIA = 32, INIT_ELEM_STAT_WITH_RANGE = 2, KEYPAD_ENABLE_DISABLE = 268435456, LOCK_UNLOCK = 128, MEDIUM_FLIP = 512, OPEN_IEPORT = 8, POSITION_TO_ELEMENT = 1024, PREDISMOUNT_EJECT_REQUIRED = 131072, PREMOUNT_EJECT_REQUIRED = 524288, REPORT_IEPORT_STATE = 2048, SERIAL_NUMBER_VALID = 67108864, STATUS_NON_VOLATILE = 16, STORAGE_DRIVE = 4096, STORAGE_IEPORT = 8192, STORAGE_SLOT = 16384, STORAGE_TRANSPORT = 32768, VOLUME_ASSERT = 4194304, VOLUME_IDENTIFICATION = 1048576, VOLUME_REPLACE = 8388608, VOLUME_SEARCH = 2097152, VOLUME_UNDEFINE = 16777216, _, pub fn initFlags(o: struct { BAR_CODE_SCANNER_INSTALLED: u1 = 0, CARTRIDGE_MAGAZINE: u1 = 0, CLEANER_ACCESS_NOT_VALID: u1 = 0, CLEANER_SLOT: u1 = 0, CLOSE_IEPORT: u1 = 0, DEVICE_REINITIALIZE_CAPABLE: u1 = 0, DRIVE_CLEANING_REQUIRED: u1 = 0, DRIVE_EMPTY_ON_DOOR_ACCESS: u1 = 0, EXCHANGE_MEDIA: u1 = 0, INIT_ELEM_STAT_WITH_RANGE: u1 = 0, KEYPAD_ENABLE_DISABLE: u1 = 0, LOCK_UNLOCK: u1 = 0, MEDIUM_FLIP: u1 = 0, OPEN_IEPORT: u1 = 0, POSITION_TO_ELEMENT: u1 = 0, PREDISMOUNT_EJECT_REQUIRED: u1 = 0, PREMOUNT_EJECT_REQUIRED: u1 = 0, REPORT_IEPORT_STATE: u1 = 0, SERIAL_NUMBER_VALID: u1 = 0, STATUS_NON_VOLATILE: u1 = 0, STORAGE_DRIVE: u1 = 0, STORAGE_IEPORT: u1 = 0, STORAGE_SLOT: u1 = 0, STORAGE_TRANSPORT: u1 = 0, VOLUME_ASSERT: u1 = 0, VOLUME_IDENTIFICATION: u1 = 0, VOLUME_REPLACE: u1 = 0, VOLUME_SEARCH: u1 = 0, VOLUME_UNDEFINE: u1 = 0, }) CHANGER_FEATURES { return @as(CHANGER_FEATURES, @enumFromInt((if (o.BAR_CODE_SCANNER_INSTALLED == 1) @intFromEnum(CHANGER_FEATURES.BAR_CODE_SCANNER_INSTALLED) else 0) | (if (o.CARTRIDGE_MAGAZINE == 1) @intFromEnum(CHANGER_FEATURES.CARTRIDGE_MAGAZINE) else 0) | (if (o.CLEANER_ACCESS_NOT_VALID == 1) @intFromEnum(CHANGER_FEATURES.CLEANER_ACCESS_NOT_VALID) else 0) | (if (o.CLEANER_SLOT == 1) @intFromEnum(CHANGER_FEATURES.CLEANER_SLOT) else 0) | (if (o.CLOSE_IEPORT == 1) @intFromEnum(CHANGER_FEATURES.CLOSE_IEPORT) else 0) | (if (o.DEVICE_REINITIALIZE_CAPABLE == 1) @intFromEnum(CHANGER_FEATURES.DEVICE_REINITIALIZE_CAPABLE) else 0) | (if (o.DRIVE_CLEANING_REQUIRED == 1) @intFromEnum(CHANGER_FEATURES.DRIVE_CLEANING_REQUIRED) else 0) | (if (o.DRIVE_EMPTY_ON_DOOR_ACCESS == 1) @intFromEnum(CHANGER_FEATURES.DRIVE_EMPTY_ON_DOOR_ACCESS) else 0) | (if (o.EXCHANGE_MEDIA == 1) @intFromEnum(CHANGER_FEATURES.EXCHANGE_MEDIA) else 0) | (if (o.INIT_ELEM_STAT_WITH_RANGE == 1) @intFromEnum(CHANGER_FEATURES.INIT_ELEM_STAT_WITH_RANGE) else 0) | (if (o.KEYPAD_ENABLE_DISABLE == 1) @intFromEnum(CHANGER_FEATURES.KEYPAD_ENABLE_DISABLE) else 0) | (if (o.LOCK_UNLOCK == 1) @intFromEnum(CHANGER_FEATURES.LOCK_UNLOCK) else 0) | (if (o.MEDIUM_FLIP == 1) @intFromEnum(CHANGER_FEATURES.MEDIUM_FLIP) else 0) | (if (o.OPEN_IEPORT == 1) @intFromEnum(CHANGER_FEATURES.OPEN_IEPORT) else 0) | (if (o.POSITION_TO_ELEMENT == 1) @intFromEnum(CHANGER_FEATURES.POSITION_TO_ELEMENT) else 0) | (if (o.PREDISMOUNT_EJECT_REQUIRED == 1) @intFromEnum(CHANGER_FEATURES.PREDISMOUNT_EJECT_REQUIRED) else 0) | (if (o.PREMOUNT_EJECT_REQUIRED == 1) @intFromEnum(CHANGER_FEATURES.PREMOUNT_EJECT_REQUIRED) else 0) | (if (o.REPORT_IEPORT_STATE == 1) @intFromEnum(CHANGER_FEATURES.REPORT_IEPORT_STATE) else 0) | (if (o.SERIAL_NUMBER_VALID == 1) @intFromEnum(CHANGER_FEATURES.SERIAL_NUMBER_VALID) else 0) | (if (o.STATUS_NON_VOLATILE == 1) @intFromEnum(CHANGER_FEATURES.STATUS_NON_VOLATILE) else 0) | (if (o.STORAGE_DRIVE == 1) @intFromEnum(CHANGER_FEATURES.STORAGE_DRIVE) else 0) | (if (o.STORAGE_IEPORT == 1) @intFromEnum(CHANGER_FEATURES.STORAGE_IEPORT) else 0) | (if (o.STORAGE_SLOT == 1) @intFromEnum(CHANGER_FEATURES.STORAGE_SLOT) else 0) | (if (o.STORAGE_TRANSPORT == 1) @intFromEnum(CHANGER_FEATURES.STORAGE_TRANSPORT) else 0) | (if (o.VOLUME_ASSERT == 1) @intFromEnum(CHANGER_FEATURES.VOLUME_ASSERT) else 0) | (if (o.VOLUME_IDENTIFICATION == 1) @intFromEnum(CHANGER_FEATURES.VOLUME_IDENTIFICATION) else 0) | (if (o.VOLUME_REPLACE == 1) @intFromEnum(CHANGER_FEATURES.VOLUME_REPLACE) else 0) | (if (o.VOLUME_SEARCH == 1) @intFromEnum(CHANGER_FEATURES.VOLUME_SEARCH) else 0) | (if (o.VOLUME_UNDEFINE == 1) @intFromEnum(CHANGER_FEATURES.VOLUME_UNDEFINE) else 0))); } }; pub const CHANGER_BAR_CODE_SCANNER_INSTALLED = CHANGER_FEATURES.BAR_CODE_SCANNER_INSTALLED; pub const CHANGER_CARTRIDGE_MAGAZINE = CHANGER_FEATURES.CARTRIDGE_MAGAZINE; pub const CHANGER_CLEANER_ACCESS_NOT_VALID = CHANGER_FEATURES.CLEANER_ACCESS_NOT_VALID; pub const CHANGER_CLEANER_SLOT = CHANGER_FEATURES.CLEANER_SLOT; pub const CHANGER_CLOSE_IEPORT = CHANGER_FEATURES.CLOSE_IEPORT; pub const CHANGER_DEVICE_REINITIALIZE_CAPABLE = CHANGER_FEATURES.DEVICE_REINITIALIZE_CAPABLE; pub const CHANGER_DRIVE_CLEANING_REQUIRED = CHANGER_FEATURES.DRIVE_CLEANING_REQUIRED; pub const CHANGER_DRIVE_EMPTY_ON_DOOR_ACCESS = CHANGER_FEATURES.DRIVE_EMPTY_ON_DOOR_ACCESS; pub const CHANGER_EXCHANGE_MEDIA = CHANGER_FEATURES.EXCHANGE_MEDIA; pub const CHANGER_INIT_ELEM_STAT_WITH_RANGE = CHANGER_FEATURES.INIT_ELEM_STAT_WITH_RANGE; pub const CHANGER_KEYPAD_ENABLE_DISABLE = CHANGER_FEATURES.KEYPAD_ENABLE_DISABLE; pub const CHANGER_LOCK_UNLOCK = CHANGER_FEATURES.LOCK_UNLOCK; pub const CHANGER_MEDIUM_FLIP = CHANGER_FEATURES.MEDIUM_FLIP; pub const CHANGER_OPEN_IEPORT = CHANGER_FEATURES.OPEN_IEPORT; pub const CHANGER_POSITION_TO_ELEMENT = CHANGER_FEATURES.POSITION_TO_ELEMENT; pub const CHANGER_PREDISMOUNT_EJECT_REQUIRED = CHANGER_FEATURES.PREDISMOUNT_EJECT_REQUIRED; pub const CHANGER_PREMOUNT_EJECT_REQUIRED = CHANGER_FEATURES.PREMOUNT_EJECT_REQUIRED; pub const CHANGER_REPORT_IEPORT_STATE = CHANGER_FEATURES.REPORT_IEPORT_STATE; pub const CHANGER_SERIAL_NUMBER_VALID = CHANGER_FEATURES.SERIAL_NUMBER_VALID; pub const CHANGER_STATUS_NON_VOLATILE = CHANGER_FEATURES.STATUS_NON_VOLATILE; pub const CHANGER_STORAGE_DRIVE = CHANGER_FEATURES.STORAGE_DRIVE; pub const CHANGER_STORAGE_IEPORT = CHANGER_FEATURES.STORAGE_IEPORT; pub const CHANGER_STORAGE_SLOT = CHANGER_FEATURES.STORAGE_SLOT; pub const CHANGER_STORAGE_TRANSPORT = CHANGER_FEATURES.STORAGE_TRANSPORT; pub const CHANGER_VOLUME_ASSERT = CHANGER_FEATURES.VOLUME_ASSERT; pub const CHANGER_VOLUME_IDENTIFICATION = CHANGER_FEATURES.VOLUME_IDENTIFICATION; pub const CHANGER_VOLUME_REPLACE = CHANGER_FEATURES.VOLUME_REPLACE; pub const CHANGER_VOLUME_SEARCH = CHANGER_FEATURES.VOLUME_SEARCH; pub const CHANGER_VOLUME_UNDEFINE = CHANGER_FEATURES.VOLUME_UNDEFINE; pub const TXFS_RMF_LAGS = enum(u32) { LOGGING_MODE = 1, RENAME_RM = 2, LOG_CONTAINER_COUNT_MAX = 4, LOG_CONTAINER_COUNT_MIN = 8, LOG_GROWTH_INCREMENT_NUM_CONTAINERS = 16, LOG_GROWTH_INCREMENT_PERCENT = 32, LOG_AUTO_SHRINK_PERCENTAGE = 64, LOG_NO_CONTAINER_COUNT_MAX = 128, LOG_NO_CONTAINER_COUNT_MIN = 256, GROW_LOG = 1024, SHRINK_LOG = 2048, ENFORCE_MINIMUM_SIZE = 4096, PRESERVE_CHANGES = 8192, RESET_RM_AT_NEXT_START = 16384, DO_NOT_RESET_RM_AT_NEXT_START = 32768, PREFER_CONSISTENCY = 65536, PREFER_AVAILABILITY = 131072, _, pub fn initFlags(o: struct { LOGGING_MODE: u1 = 0, RENAME_RM: u1 = 0, LOG_CONTAINER_COUNT_MAX: u1 = 0, LOG_CONTAINER_COUNT_MIN: u1 = 0, LOG_GROWTH_INCREMENT_NUM_CONTAINERS: u1 = 0, LOG_GROWTH_INCREMENT_PERCENT: u1 = 0, LOG_AUTO_SHRINK_PERCENTAGE: u1 = 0, LOG_NO_CONTAINER_COUNT_MAX: u1 = 0, LOG_NO_CONTAINER_COUNT_MIN: u1 = 0, GROW_LOG: u1 = 0, SHRINK_LOG: u1 = 0, ENFORCE_MINIMUM_SIZE: u1 = 0, PRESERVE_CHANGES: u1 = 0, RESET_RM_AT_NEXT_START: u1 = 0, DO_NOT_RESET_RM_AT_NEXT_START: u1 = 0, PREFER_CONSISTENCY: u1 = 0, PREFER_AVAILABILITY: u1 = 0, }) TXFS_RMF_LAGS { return @as(TXFS_RMF_LAGS, @enumFromInt((if (o.LOGGING_MODE == 1) @intFromEnum(TXFS_RMF_LAGS.LOGGING_MODE) else 0) | (if (o.RENAME_RM == 1) @intFromEnum(TXFS_RMF_LAGS.RENAME_RM) else 0) | (if (o.LOG_CONTAINER_COUNT_MAX == 1) @intFromEnum(TXFS_RMF_LAGS.LOG_CONTAINER_COUNT_MAX) else 0) | (if (o.LOG_CONTAINER_COUNT_MIN == 1) @intFromEnum(TXFS_RMF_LAGS.LOG_CONTAINER_COUNT_MIN) else 0) | (if (o.LOG_GROWTH_INCREMENT_NUM_CONTAINERS == 1) @intFromEnum(TXFS_RMF_LAGS.LOG_GROWTH_INCREMENT_NUM_CONTAINERS) else 0) | (if (o.LOG_GROWTH_INCREMENT_PERCENT == 1) @intFromEnum(TXFS_RMF_LAGS.LOG_GROWTH_INCREMENT_PERCENT) else 0) | (if (o.LOG_AUTO_SHRINK_PERCENTAGE == 1) @intFromEnum(TXFS_RMF_LAGS.LOG_AUTO_SHRINK_PERCENTAGE) else 0) | (if (o.LOG_NO_CONTAINER_COUNT_MAX == 1) @intFromEnum(TXFS_RMF_LAGS.LOG_NO_CONTAINER_COUNT_MAX) else 0) | (if (o.LOG_NO_CONTAINER_COUNT_MIN == 1) @intFromEnum(TXFS_RMF_LAGS.LOG_NO_CONTAINER_COUNT_MIN) else 0) | (if (o.GROW_LOG == 1) @intFromEnum(TXFS_RMF_LAGS.GROW_LOG) else 0) | (if (o.SHRINK_LOG == 1) @intFromEnum(TXFS_RMF_LAGS.SHRINK_LOG) else 0) | (if (o.ENFORCE_MINIMUM_SIZE == 1) @intFromEnum(TXFS_RMF_LAGS.ENFORCE_MINIMUM_SIZE) else 0) | (if (o.PRESERVE_CHANGES == 1) @intFromEnum(TXFS_RMF_LAGS.PRESERVE_CHANGES) else 0) | (if (o.RESET_RM_AT_NEXT_START == 1) @intFromEnum(TXFS_RMF_LAGS.RESET_RM_AT_NEXT_START) else 0) | (if (o.DO_NOT_RESET_RM_AT_NEXT_START == 1) @intFromEnum(TXFS_RMF_LAGS.DO_NOT_RESET_RM_AT_NEXT_START) else 0) | (if (o.PREFER_CONSISTENCY == 1) @intFromEnum(TXFS_RMF_LAGS.PREFER_CONSISTENCY) else 0) | (if (o.PREFER_AVAILABILITY == 1) @intFromEnum(TXFS_RMF_LAGS.PREFER_AVAILABILITY) else 0))); } }; pub const TXFS_RM_FLAG_LOGGING_MODE = TXFS_RMF_LAGS.LOGGING_MODE; pub const TXFS_RM_FLAG_RENAME_RM = TXFS_RMF_LAGS.RENAME_RM; pub const TXFS_RM_FLAG_LOG_CONTAINER_COUNT_MAX = TXFS_RMF_LAGS.LOG_CONTAINER_COUNT_MAX; pub const TXFS_RM_FLAG_LOG_CONTAINER_COUNT_MIN = TXFS_RMF_LAGS.LOG_CONTAINER_COUNT_MIN; pub const TXFS_RM_FLAG_LOG_GROWTH_INCREMENT_NUM_CONTAINERS = TXFS_RMF_LAGS.LOG_GROWTH_INCREMENT_NUM_CONTAINERS; pub const TXFS_RM_FLAG_LOG_GROWTH_INCREMENT_PERCENT = TXFS_RMF_LAGS.LOG_GROWTH_INCREMENT_PERCENT; pub const TXFS_RM_FLAG_LOG_AUTO_SHRINK_PERCENTAGE = TXFS_RMF_LAGS.LOG_AUTO_SHRINK_PERCENTAGE; pub const TXFS_RM_FLAG_LOG_NO_CONTAINER_COUNT_MAX = TXFS_RMF_LAGS.LOG_NO_CONTAINER_COUNT_MAX; pub const TXFS_RM_FLAG_LOG_NO_CONTAINER_COUNT_MIN = TXFS_RMF_LAGS.LOG_NO_CONTAINER_COUNT_MIN; pub const TXFS_RM_FLAG_GROW_LOG = TXFS_RMF_LAGS.GROW_LOG; pub const TXFS_RM_FLAG_SHRINK_LOG = TXFS_RMF_LAGS.SHRINK_LOG; pub const TXFS_RM_FLAG_ENFORCE_MINIMUM_SIZE = TXFS_RMF_LAGS.ENFORCE_MINIMUM_SIZE; pub const TXFS_RM_FLAG_PRESERVE_CHANGES = TXFS_RMF_LAGS.PRESERVE_CHANGES; pub const TXFS_RM_FLAG_RESET_RM_AT_NEXT_START = TXFS_RMF_LAGS.RESET_RM_AT_NEXT_START; pub const TXFS_RM_FLAG_DO_NOT_RESET_RM_AT_NEXT_START = TXFS_RMF_LAGS.DO_NOT_RESET_RM_AT_NEXT_START; pub const TXFS_RM_FLAG_PREFER_CONSISTENCY = TXFS_RMF_LAGS.PREFER_CONSISTENCY; pub const TXFS_RM_FLAG_PREFER_AVAILABILITY = TXFS_RMF_LAGS.PREFER_AVAILABILITY; pub const FILESYSTEM_STATISTICS_TYPE = enum(u16) { EXFAT = 3, FAT = 2, NTFS = 1, }; pub const FILESYSTEM_STATISTICS_TYPE_EXFAT = FILESYSTEM_STATISTICS_TYPE.EXFAT; pub const FILESYSTEM_STATISTICS_TYPE_FAT = FILESYSTEM_STATISTICS_TYPE.FAT; pub const FILESYSTEM_STATISTICS_TYPE_NTFS = FILESYSTEM_STATISTICS_TYPE.NTFS; pub const USN_SOURCE_INFO_ID = enum(u32) { AUXILIARY_DATA = 2, DATA_MANAGEMENT = 1, REPLICATION_MANAGEMENT = 4, CLIENT_REPLICATION_MANAGEMENT = 8, }; pub const USN_SOURCE_AUXILIARY_DATA = USN_SOURCE_INFO_ID.AUXILIARY_DATA; pub const USN_SOURCE_DATA_MANAGEMENT = USN_SOURCE_INFO_ID.DATA_MANAGEMENT; pub const USN_SOURCE_REPLICATION_MANAGEMENT = USN_SOURCE_INFO_ID.REPLICATION_MANAGEMENT; pub const USN_SOURCE_CLIENT_REPLICATION_MANAGEMENT = USN_SOURCE_INFO_ID.CLIENT_REPLICATION_MANAGEMENT; pub const FILE_STORAGE_TIER_FLAGS = enum(u32) { Y = 131072, _, pub fn initFlags(o: struct { Y: u1 = 0, }) FILE_STORAGE_TIER_FLAGS { return @as(FILE_STORAGE_TIER_FLAGS, @enumFromInt((if (o.Y == 1) @intFromEnum(FILE_STORAGE_TIER_FLAGS.Y) else 0))); } }; pub const FILE_STORAGE_TIER_FLAG_NO_SEEK_PENALTY = FILE_STORAGE_TIER_FLAGS.Y; pub const CHANGER_ELEMENT_STATUS_FLAGS = enum(u32) { ACCESS = 8, AVOLTAG = 536870912, EXCEPT = 4, EXENAB = 16, FULL = 1, ID_VALID = 8192, IMPEXP = 2, INENAB = 32, INVERT = 4194304, LUN_VALID = 4096, NOT_BUS = 32768, PVOLTAG = 268435456, SVALID = 8388608, PRODUCT_DATA = 64, _, pub fn initFlags(o: struct { ACCESS: u1 = 0, AVOLTAG: u1 = 0, EXCEPT: u1 = 0, EXENAB: u1 = 0, FULL: u1 = 0, ID_VALID: u1 = 0, IMPEXP: u1 = 0, INENAB: u1 = 0, INVERT: u1 = 0, LUN_VALID: u1 = 0, NOT_BUS: u1 = 0, PVOLTAG: u1 = 0, SVALID: u1 = 0, PRODUCT_DATA: u1 = 0, }) CHANGER_ELEMENT_STATUS_FLAGS { return @as(CHANGER_ELEMENT_STATUS_FLAGS, @enumFromInt((if (o.ACCESS == 1) @intFromEnum(CHANGER_ELEMENT_STATUS_FLAGS.ACCESS) else 0) | (if (o.AVOLTAG == 1) @intFromEnum(CHANGER_ELEMENT_STATUS_FLAGS.AVOLTAG) else 0) | (if (o.EXCEPT == 1) @intFromEnum(CHANGER_ELEMENT_STATUS_FLAGS.EXCEPT) else 0) | (if (o.EXENAB == 1) @intFromEnum(CHANGER_ELEMENT_STATUS_FLAGS.EXENAB) else 0) | (if (o.FULL == 1) @intFromEnum(CHANGER_ELEMENT_STATUS_FLAGS.FULL) else 0) | (if (o.ID_VALID == 1) @intFromEnum(CHANGER_ELEMENT_STATUS_FLAGS.ID_VALID) else 0) | (if (o.IMPEXP == 1) @intFromEnum(CHANGER_ELEMENT_STATUS_FLAGS.IMPEXP) else 0) | (if (o.INENAB == 1) @intFromEnum(CHANGER_ELEMENT_STATUS_FLAGS.INENAB) else 0) | (if (o.INVERT == 1) @intFromEnum(CHANGER_ELEMENT_STATUS_FLAGS.INVERT) else 0) | (if (o.LUN_VALID == 1) @intFromEnum(CHANGER_ELEMENT_STATUS_FLAGS.LUN_VALID) else 0) | (if (o.NOT_BUS == 1) @intFromEnum(CHANGER_ELEMENT_STATUS_FLAGS.NOT_BUS) else 0) | (if (o.PVOLTAG == 1) @intFromEnum(CHANGER_ELEMENT_STATUS_FLAGS.PVOLTAG) else 0) | (if (o.SVALID == 1) @intFromEnum(CHANGER_ELEMENT_STATUS_FLAGS.SVALID) else 0) | (if (o.PRODUCT_DATA == 1) @intFromEnum(CHANGER_ELEMENT_STATUS_FLAGS.PRODUCT_DATA) else 0))); } }; pub const ELEMENT_STATUS_ACCESS = CHANGER_ELEMENT_STATUS_FLAGS.ACCESS; pub const ELEMENT_STATUS_AVOLTAG = CHANGER_ELEMENT_STATUS_FLAGS.AVOLTAG; pub const ELEMENT_STATUS_EXCEPT = CHANGER_ELEMENT_STATUS_FLAGS.EXCEPT; pub const ELEMENT_STATUS_EXENAB = CHANGER_ELEMENT_STATUS_FLAGS.EXENAB; pub const ELEMENT_STATUS_FULL = CHANGER_ELEMENT_STATUS_FLAGS.FULL; pub const ELEMENT_STATUS_ID_VALID = CHANGER_ELEMENT_STATUS_FLAGS.ID_VALID; pub const ELEMENT_STATUS_IMPEXP = CHANGER_ELEMENT_STATUS_FLAGS.IMPEXP; pub const ELEMENT_STATUS_INENAB = CHANGER_ELEMENT_STATUS_FLAGS.INENAB; pub const ELEMENT_STATUS_INVERT = CHANGER_ELEMENT_STATUS_FLAGS.INVERT; pub const ELEMENT_STATUS_LUN_VALID = CHANGER_ELEMENT_STATUS_FLAGS.LUN_VALID; pub const ELEMENT_STATUS_NOT_BUS = CHANGER_ELEMENT_STATUS_FLAGS.NOT_BUS; pub const ELEMENT_STATUS_PVOLTAG = CHANGER_ELEMENT_STATUS_FLAGS.PVOLTAG; pub const ELEMENT_STATUS_SVALID = CHANGER_ELEMENT_STATUS_FLAGS.SVALID; pub const ELEMENT_STATUS_PRODUCT_DATA = CHANGER_ELEMENT_STATUS_FLAGS.PRODUCT_DATA; pub const GET_CHANGER_PARAMETERS_FEATURES1 = enum(u32) { CLEANER_AUTODISMOUNT = 2147483652, CLEANER_OPS_NOT_SUPPORTED = 2147483712, IEPORT_USER_CONTROL_CLOSE = 2147483904, IEPORT_USER_CONTROL_OPEN = 2147483776, MOVE_EXTENDS_IEPORT = 2147484160, MOVE_RETRACTS_IEPORT = 2147484672, PREDISMOUNT_ALIGN_TO_DRIVE = 2147483650, PREDISMOUNT_ALIGN_TO_SLOT = 2147483649, RTN_MEDIA_TO_ORIGINAL_ADDR = 2147483680, SLOTS_USE_TRAYS = 2147483664, TRUE_EXCHANGE_CAPABLE = 2147483656, _, pub fn initFlags(o: struct { CLEANER_AUTODISMOUNT: u1 = 0, CLEANER_OPS_NOT_SUPPORTED: u1 = 0, IEPORT_USER_CONTROL_CLOSE: u1 = 0, IEPORT_USER_CONTROL_OPEN: u1 = 0, MOVE_EXTENDS_IEPORT: u1 = 0, MOVE_RETRACTS_IEPORT: u1 = 0, PREDISMOUNT_ALIGN_TO_DRIVE: u1 = 0, PREDISMOUNT_ALIGN_TO_SLOT: u1 = 0, RTN_MEDIA_TO_ORIGINAL_ADDR: u1 = 0, SLOTS_USE_TRAYS: u1 = 0, TRUE_EXCHANGE_CAPABLE: u1 = 0, }) GET_CHANGER_PARAMETERS_FEATURES1 { return @as(GET_CHANGER_PARAMETERS_FEATURES1, @enumFromInt((if (o.CLEANER_AUTODISMOUNT == 1) @intFromEnum(GET_CHANGER_PARAMETERS_FEATURES1.CLEANER_AUTODISMOUNT) else 0) | (if (o.CLEANER_OPS_NOT_SUPPORTED == 1) @intFromEnum(GET_CHANGER_PARAMETERS_FEATURES1.CLEANER_OPS_NOT_SUPPORTED) else 0) | (if (o.IEPORT_USER_CONTROL_CLOSE == 1) @intFromEnum(GET_CHANGER_PARAMETERS_FEATURES1.IEPORT_USER_CONTROL_CLOSE) else 0) | (if (o.IEPORT_USER_CONTROL_OPEN == 1) @intFromEnum(GET_CHANGER_PARAMETERS_FEATURES1.IEPORT_USER_CONTROL_OPEN) else 0) | (if (o.MOVE_EXTENDS_IEPORT == 1) @intFromEnum(GET_CHANGER_PARAMETERS_FEATURES1.MOVE_EXTENDS_IEPORT) else 0) | (if (o.MOVE_RETRACTS_IEPORT == 1) @intFromEnum(GET_CHANGER_PARAMETERS_FEATURES1.MOVE_RETRACTS_IEPORT) else 0) | (if (o.PREDISMOUNT_ALIGN_TO_DRIVE == 1) @intFromEnum(GET_CHANGER_PARAMETERS_FEATURES1.PREDISMOUNT_ALIGN_TO_DRIVE) else 0) | (if (o.PREDISMOUNT_ALIGN_TO_SLOT == 1) @intFromEnum(GET_CHANGER_PARAMETERS_FEATURES1.PREDISMOUNT_ALIGN_TO_SLOT) else 0) | (if (o.RTN_MEDIA_TO_ORIGINAL_ADDR == 1) @intFromEnum(GET_CHANGER_PARAMETERS_FEATURES1.RTN_MEDIA_TO_ORIGINAL_ADDR) else 0) | (if (o.SLOTS_USE_TRAYS == 1) @intFromEnum(GET_CHANGER_PARAMETERS_FEATURES1.SLOTS_USE_TRAYS) else 0) | (if (o.TRUE_EXCHANGE_CAPABLE == 1) @intFromEnum(GET_CHANGER_PARAMETERS_FEATURES1.TRUE_EXCHANGE_CAPABLE) else 0))); } }; pub const CHANGER_CLEANER_AUTODISMOUNT = GET_CHANGER_PARAMETERS_FEATURES1.CLEANER_AUTODISMOUNT; pub const CHANGER_CLEANER_OPS_NOT_SUPPORTED = GET_CHANGER_PARAMETERS_FEATURES1.CLEANER_OPS_NOT_SUPPORTED; pub const CHANGER_IEPORT_USER_CONTROL_CLOSE = GET_CHANGER_PARAMETERS_FEATURES1.IEPORT_USER_CONTROL_CLOSE; pub const CHANGER_IEPORT_USER_CONTROL_OPEN = GET_CHANGER_PARAMETERS_FEATURES1.IEPORT_USER_CONTROL_OPEN; pub const CHANGER_MOVE_EXTENDS_IEPORT = GET_CHANGER_PARAMETERS_FEATURES1.MOVE_EXTENDS_IEPORT; pub const CHANGER_MOVE_RETRACTS_IEPORT = GET_CHANGER_PARAMETERS_FEATURES1.MOVE_RETRACTS_IEPORT; pub const CHANGER_PREDISMOUNT_ALIGN_TO_DRIVE = GET_CHANGER_PARAMETERS_FEATURES1.PREDISMOUNT_ALIGN_TO_DRIVE; pub const CHANGER_PREDISMOUNT_ALIGN_TO_SLOT = GET_CHANGER_PARAMETERS_FEATURES1.PREDISMOUNT_ALIGN_TO_SLOT; pub const CHANGER_RTN_MEDIA_TO_ORIGINAL_ADDR = GET_CHANGER_PARAMETERS_FEATURES1.RTN_MEDIA_TO_ORIGINAL_ADDR; pub const CHANGER_SLOTS_USE_TRAYS = GET_CHANGER_PARAMETERS_FEATURES1.SLOTS_USE_TRAYS; pub const CHANGER_TRUE_EXCHANGE_CAPABLE = GET_CHANGER_PARAMETERS_FEATURES1.TRUE_EXCHANGE_CAPABLE; pub const STORAGE_HOTPLUG_INFO = extern struct { Size: u32, MediaRemovable: BOOLEAN, MediaHotplug: BOOLEAN, DeviceHotplug: BOOLEAN, WriteCacheEnableOverride: BOOLEAN, }; pub const STORAGE_DEVICE_NUMBER = extern struct { DeviceType: u32, DeviceNumber: u32, PartitionNumber: u32, }; pub const STORAGE_DEVICE_NUMBERS = extern struct { Version: u32, Size: u32, NumberOfDevices: u32, Devices: [1]STORAGE_DEVICE_NUMBER, }; pub const STORAGE_DEVICE_NUMBER_EX = extern struct { Version: u32, Size: u32, Flags: u32, DeviceType: u32, DeviceNumber: u32, DeviceGuid: Guid, PartitionNumber: u32, }; pub const STORAGE_BUS_RESET_REQUEST = extern struct { PathId: u8, }; pub const STORAGE_BREAK_RESERVATION_REQUEST = extern struct { Length: u32, _unused: u8, PathId: u8, TargetId: u8, Lun: u8, }; pub const PREVENT_MEDIA_REMOVAL = extern struct { PreventMediaRemoval: BOOLEAN, }; pub const CLASS_MEDIA_CHANGE_CONTEXT = extern struct { MediaChangeCount: u32, NewState: u32, }; pub const TAPE_STATISTICS = extern struct { Version: u32, Flags: u32, RecoveredWrites: LARGE_INTEGER, UnrecoveredWrites: LARGE_INTEGER, RecoveredReads: LARGE_INTEGER, UnrecoveredReads: LARGE_INTEGER, CompressionRatioReads: u8, CompressionRatioWrites: u8, }; pub const TAPE_GET_STATISTICS = extern struct { Operation: u32, }; pub const STORAGE_MEDIA_TYPE = enum(i32) { DDS_4mm = 32, MiniQic = 33, Travan = 34, QIC = 35, MP_8mm = 36, AME_8mm = 37, AIT1_8mm = 38, DLT = 39, NCTP = 40, IBM_3480 = 41, IBM_3490E = 42, IBM_Magstar_3590 = 43, IBM_Magstar_MP = 44, STK_DATA_D3 = 45, SONY_DTF = 46, DV_6mm = 47, DMI = 48, SONY_D2 = 49, CLEANER_CARTRIDGE = 50, CD_ROM = 51, CD_R = 52, CD_RW = 53, DVD_ROM = 54, DVD_R = 55, DVD_RW = 56, MO_3_RW = 57, MO_5_WO = 58, MO_5_RW = 59, MO_5_LIMDOW = 60, PC_5_WO = 61, PC_5_RW = 62, PD_5_RW = 63, ABL_5_WO = 64, PINNACLE_APEX_5_RW = 65, SONY_12_WO = 66, PHILIPS_12_WO = 67, HITACHI_12_WO = 68, CYGNET_12_WO = 69, KODAK_14_WO = 70, MO_NFR_525 = 71, NIKON_12_RW = 72, IOMEGA_ZIP = 73, IOMEGA_JAZ = 74, SYQUEST_EZ135 = 75, SYQUEST_EZFLYER = 76, SYQUEST_SYJET = 77, AVATAR_F2 = 78, MP2_8mm = 79, DST_S = 80, DST_M = 81, DST_L = 82, VXATape_1 = 83, VXATape_2 = 84, STK_9840 = 85, LTO_Ultrium = 86, LTO_Accelis = 87, DVD_RAM = 88, AIT_8mm = 89, ADR_1 = 90, ADR_2 = 91, STK_9940 = 92, SAIT = 93, VXATape = 94, }; pub const DDS_4mm = STORAGE_MEDIA_TYPE.DDS_4mm; pub const MiniQic = STORAGE_MEDIA_TYPE.MiniQic; pub const Travan = STORAGE_MEDIA_TYPE.Travan; pub const QIC = STORAGE_MEDIA_TYPE.QIC; pub const MP_8mm = STORAGE_MEDIA_TYPE.MP_8mm; pub const AME_8mm = STORAGE_MEDIA_TYPE.AME_8mm; pub const AIT1_8mm = STORAGE_MEDIA_TYPE.AIT1_8mm; pub const DLT = STORAGE_MEDIA_TYPE.DLT; pub const NCTP = STORAGE_MEDIA_TYPE.NCTP; pub const IBM_3480 = STORAGE_MEDIA_TYPE.IBM_3480; pub const IBM_3490E = STORAGE_MEDIA_TYPE.IBM_3490E; pub const IBM_Magstar_3590 = STORAGE_MEDIA_TYPE.IBM_Magstar_3590; pub const IBM_Magstar_MP = STORAGE_MEDIA_TYPE.IBM_Magstar_MP; pub const STK_DATA_D3 = STORAGE_MEDIA_TYPE.STK_DATA_D3; pub const SONY_DTF = STORAGE_MEDIA_TYPE.SONY_DTF; pub const DV_6mm = STORAGE_MEDIA_TYPE.DV_6mm; pub const DMI = STORAGE_MEDIA_TYPE.DMI; pub const SONY_D2 = STORAGE_MEDIA_TYPE.SONY_D2; pub const CLEANER_CARTRIDGE = STORAGE_MEDIA_TYPE.CLEANER_CARTRIDGE; pub const CD_ROM = STORAGE_MEDIA_TYPE.CD_ROM; pub const CD_R = STORAGE_MEDIA_TYPE.CD_R; pub const CD_RW = STORAGE_MEDIA_TYPE.CD_RW; pub const DVD_ROM = STORAGE_MEDIA_TYPE.DVD_ROM; pub const DVD_R = STORAGE_MEDIA_TYPE.DVD_R; pub const DVD_RW = STORAGE_MEDIA_TYPE.DVD_RW; pub const MO_3_RW = STORAGE_MEDIA_TYPE.MO_3_RW; pub const MO_5_WO = STORAGE_MEDIA_TYPE.MO_5_WO; pub const MO_5_RW = STORAGE_MEDIA_TYPE.MO_5_RW; pub const MO_5_LIMDOW = STORAGE_MEDIA_TYPE.MO_5_LIMDOW; pub const PC_5_WO = STORAGE_MEDIA_TYPE.PC_5_WO; pub const PC_5_RW = STORAGE_MEDIA_TYPE.PC_5_RW; pub const PD_5_RW = STORAGE_MEDIA_TYPE.PD_5_RW; pub const ABL_5_WO = STORAGE_MEDIA_TYPE.ABL_5_WO; pub const PINNACLE_APEX_5_RW = STORAGE_MEDIA_TYPE.PINNACLE_APEX_5_RW; pub const SONY_12_WO = STORAGE_MEDIA_TYPE.SONY_12_WO; pub const PHILIPS_12_WO = STORAGE_MEDIA_TYPE.PHILIPS_12_WO; pub const HITACHI_12_WO = STORAGE_MEDIA_TYPE.HITACHI_12_WO; pub const CYGNET_12_WO = STORAGE_MEDIA_TYPE.CYGNET_12_WO; pub const KODAK_14_WO = STORAGE_MEDIA_TYPE.KODAK_14_WO; pub const MO_NFR_525 = STORAGE_MEDIA_TYPE.MO_NFR_525; pub const NIKON_12_RW = STORAGE_MEDIA_TYPE.NIKON_12_RW; pub const IOMEGA_ZIP = STORAGE_MEDIA_TYPE.IOMEGA_ZIP; pub const IOMEGA_JAZ = STORAGE_MEDIA_TYPE.IOMEGA_JAZ; pub const SYQUEST_EZ135 = STORAGE_MEDIA_TYPE.SYQUEST_EZ135; pub const SYQUEST_EZFLYER = STORAGE_MEDIA_TYPE.SYQUEST_EZFLYER; pub const SYQUEST_SYJET = STORAGE_MEDIA_TYPE.SYQUEST_SYJET; pub const AVATAR_F2 = STORAGE_MEDIA_TYPE.AVATAR_F2; pub const MP2_8mm = STORAGE_MEDIA_TYPE.MP2_8mm; pub const DST_S = STORAGE_MEDIA_TYPE.DST_S; pub const DST_M = STORAGE_MEDIA_TYPE.DST_M; pub const DST_L = STORAGE_MEDIA_TYPE.DST_L; pub const VXATape_1 = STORAGE_MEDIA_TYPE.VXATape_1; pub const VXATape_2 = STORAGE_MEDIA_TYPE.VXATape_2; pub const STK_9840 = STORAGE_MEDIA_TYPE.STK_9840; pub const LTO_Ultrium = STORAGE_MEDIA_TYPE.LTO_Ultrium; pub const LTO_Accelis = STORAGE_MEDIA_TYPE.LTO_Accelis; pub const DVD_RAM = STORAGE_MEDIA_TYPE.DVD_RAM; pub const AIT_8mm = STORAGE_MEDIA_TYPE.AIT_8mm; pub const ADR_1 = STORAGE_MEDIA_TYPE.ADR_1; pub const ADR_2 = STORAGE_MEDIA_TYPE.ADR_2; pub const STK_9940 = STORAGE_MEDIA_TYPE.STK_9940; pub const SAIT = STORAGE_MEDIA_TYPE.SAIT; pub const VXATape = STORAGE_MEDIA_TYPE.VXATape; pub const DEVICE_MEDIA_INFO = extern struct { DeviceSpecific: extern union { DiskInfo: extern struct { Cylinders: LARGE_INTEGER, MediaType: STORAGE_MEDIA_TYPE, TracksPerCylinder: u32, SectorsPerTrack: u32, BytesPerSector: u32, NumberMediaSides: u32, MediaCharacteristics: u32, }, RemovableDiskInfo: extern struct { Cylinders: LARGE_INTEGER, MediaType: STORAGE_MEDIA_TYPE, TracksPerCylinder: u32, SectorsPerTrack: u32, BytesPerSector: u32, NumberMediaSides: u32, MediaCharacteristics: u32, }, TapeInfo: extern struct { MediaType: STORAGE_MEDIA_TYPE, MediaCharacteristics: u32, CurrentBlockSize: u32, BusType: STORAGE_BUS_TYPE, BusSpecificData: extern union { ScsiInformation: extern struct { MediumType: u8, DensityCode: u8, }, }, }, }, }; pub const GET_MEDIA_TYPES = extern struct { DeviceType: u32, MediaInfoCount: u32, MediaInfo: [1]DEVICE_MEDIA_INFO, }; pub const STORAGE_PREDICT_FAILURE = extern struct { PredictFailure: u32, VendorSpecific: [512]u8, }; pub const STORAGE_FAILURE_PREDICTION_CONFIG = extern struct { Version: u32, Size: u32, Set: BOOLEAN, Enabled: BOOLEAN, Reserved: u16, }; pub const STORAGE_QUERY_TYPE = enum(i32) { StandardQuery = 0, ExistsQuery = 1, MaskQuery = 2, QueryMaxDefined = 3, }; pub const PropertyStandardQuery = STORAGE_QUERY_TYPE.StandardQuery; pub const PropertyExistsQuery = STORAGE_QUERY_TYPE.ExistsQuery; pub const PropertyMaskQuery = STORAGE_QUERY_TYPE.MaskQuery; pub const PropertyQueryMaxDefined = STORAGE_QUERY_TYPE.QueryMaxDefined; pub const STORAGE_SET_TYPE = enum(i32) { StandardSet = 0, ExistsSet = 1, SetMaxDefined = 2, }; pub const PropertyStandardSet = STORAGE_SET_TYPE.StandardSet; pub const PropertyExistsSet = STORAGE_SET_TYPE.ExistsSet; pub const PropertySetMaxDefined = STORAGE_SET_TYPE.SetMaxDefined; pub const STORAGE_PROPERTY_ID = enum(i32) { DeviceProperty = 0, AdapterProperty = 1, DeviceIdProperty = 2, DeviceUniqueIdProperty = 3, DeviceWriteCacheProperty = 4, MiniportProperty = 5, AccessAlignmentProperty = 6, DeviceSeekPenaltyProperty = 7, DeviceTrimProperty = 8, DeviceWriteAggregationProperty = 9, DeviceDeviceTelemetryProperty = 10, DeviceLBProvisioningProperty = 11, DevicePowerProperty = 12, DeviceCopyOffloadProperty = 13, DeviceResiliencyProperty = 14, DeviceMediumProductType = 15, AdapterRpmbProperty = 16, AdapterCryptoProperty = 17, DeviceIoCapabilityProperty = 48, AdapterProtocolSpecificProperty = 49, DeviceProtocolSpecificProperty = 50, AdapterTemperatureProperty = 51, DeviceTemperatureProperty = 52, AdapterPhysicalTopologyProperty = 53, DevicePhysicalTopologyProperty = 54, DeviceAttributesProperty = 55, DeviceManagementStatus = 56, AdapterSerialNumberProperty = 57, DeviceLocationProperty = 58, DeviceNumaProperty = 59, DeviceZonedDeviceProperty = 60, DeviceUnsafeShutdownCount = 61, DeviceEnduranceProperty = 62, DeviceLedStateProperty = 63, DeviceSelfEncryptionProperty = 64, FruIdProperty = 65, }; pub const StorageDeviceProperty = STORAGE_PROPERTY_ID.DeviceProperty; pub const StorageAdapterProperty = STORAGE_PROPERTY_ID.AdapterProperty; pub const StorageDeviceIdProperty = STORAGE_PROPERTY_ID.DeviceIdProperty; pub const StorageDeviceUniqueIdProperty = STORAGE_PROPERTY_ID.DeviceUniqueIdProperty; pub const StorageDeviceWriteCacheProperty = STORAGE_PROPERTY_ID.DeviceWriteCacheProperty; pub const StorageMiniportProperty = STORAGE_PROPERTY_ID.MiniportProperty; pub const StorageAccessAlignmentProperty = STORAGE_PROPERTY_ID.AccessAlignmentProperty; pub const StorageDeviceSeekPenaltyProperty = STORAGE_PROPERTY_ID.DeviceSeekPenaltyProperty; pub const StorageDeviceTrimProperty = STORAGE_PROPERTY_ID.DeviceTrimProperty; pub const StorageDeviceWriteAggregationProperty = STORAGE_PROPERTY_ID.DeviceWriteAggregationProperty; pub const StorageDeviceDeviceTelemetryProperty = STORAGE_PROPERTY_ID.DeviceDeviceTelemetryProperty; pub const StorageDeviceLBProvisioningProperty = STORAGE_PROPERTY_ID.DeviceLBProvisioningProperty; pub const StorageDevicePowerProperty = STORAGE_PROPERTY_ID.DevicePowerProperty; pub const StorageDeviceCopyOffloadProperty = STORAGE_PROPERTY_ID.DeviceCopyOffloadProperty; pub const StorageDeviceResiliencyProperty = STORAGE_PROPERTY_ID.DeviceResiliencyProperty; pub const StorageDeviceMediumProductType = STORAGE_PROPERTY_ID.DeviceMediumProductType; pub const StorageAdapterRpmbProperty = STORAGE_PROPERTY_ID.AdapterRpmbProperty; pub const StorageAdapterCryptoProperty = STORAGE_PROPERTY_ID.AdapterCryptoProperty; pub const StorageDeviceIoCapabilityProperty = STORAGE_PROPERTY_ID.DeviceIoCapabilityProperty; pub const StorageAdapterProtocolSpecificProperty = STORAGE_PROPERTY_ID.AdapterProtocolSpecificProperty; pub const StorageDeviceProtocolSpecificProperty = STORAGE_PROPERTY_ID.DeviceProtocolSpecificProperty; pub const StorageAdapterTemperatureProperty = STORAGE_PROPERTY_ID.AdapterTemperatureProperty; pub const StorageDeviceTemperatureProperty = STORAGE_PROPERTY_ID.DeviceTemperatureProperty; pub const StorageAdapterPhysicalTopologyProperty = STORAGE_PROPERTY_ID.AdapterPhysicalTopologyProperty; pub const StorageDevicePhysicalTopologyProperty = STORAGE_PROPERTY_ID.DevicePhysicalTopologyProperty; pub const StorageDeviceAttributesProperty = STORAGE_PROPERTY_ID.DeviceAttributesProperty; pub const StorageDeviceManagementStatus = STORAGE_PROPERTY_ID.DeviceManagementStatus; pub const StorageAdapterSerialNumberProperty = STORAGE_PROPERTY_ID.AdapterSerialNumberProperty; pub const StorageDeviceLocationProperty = STORAGE_PROPERTY_ID.DeviceLocationProperty; pub const StorageDeviceNumaProperty = STORAGE_PROPERTY_ID.DeviceNumaProperty; pub const StorageDeviceZonedDeviceProperty = STORAGE_PROPERTY_ID.DeviceZonedDeviceProperty; pub const StorageDeviceUnsafeShutdownCount = STORAGE_PROPERTY_ID.DeviceUnsafeShutdownCount; pub const StorageDeviceEnduranceProperty = STORAGE_PROPERTY_ID.DeviceEnduranceProperty; pub const StorageDeviceLedStateProperty = STORAGE_PROPERTY_ID.DeviceLedStateProperty; pub const StorageDeviceSelfEncryptionProperty = STORAGE_PROPERTY_ID.DeviceSelfEncryptionProperty; pub const StorageFruIdProperty = STORAGE_PROPERTY_ID.FruIdProperty; pub const STORAGE_PROPERTY_QUERY = extern struct { PropertyId: STORAGE_PROPERTY_ID, QueryType: STORAGE_QUERY_TYPE, AdditionalParameters: [1]u8, }; pub const STORAGE_PROPERTY_SET = extern struct { PropertyId: STORAGE_PROPERTY_ID, SetType: STORAGE_SET_TYPE, AdditionalParameters: [1]u8, }; pub const STORAGE_DESCRIPTOR_HEADER = extern struct { Version: u32, Size: u32, }; pub const STORAGE_DEVICE_DESCRIPTOR = extern struct { Version: u32, Size: u32, DeviceType: u8, DeviceTypeModifier: u8, RemovableMedia: BOOLEAN, CommandQueueing: BOOLEAN, VendorIdOffset: u32, ProductIdOffset: u32, ProductRevisionOffset: u32, SerialNumberOffset: u32, BusType: STORAGE_BUS_TYPE, RawPropertiesLength: u32, RawDeviceProperties: [1]u8, }; pub const STORAGE_ADAPTER_DESCRIPTOR = extern struct { Version: u32, Size: u32, MaximumTransferLength: u32, MaximumPhysicalPages: u32, AlignmentMask: u32, AdapterUsesPio: BOOLEAN, AdapterScansDown: BOOLEAN, CommandQueueing: BOOLEAN, AcceleratedTransfer: BOOLEAN, BusType: u8, BusMajorVersion: u16, BusMinorVersion: u16, SrbType: u8, AddressType: u8, }; pub const STORAGE_ACCESS_ALIGNMENT_DESCRIPTOR = extern struct { Version: u32, Size: u32, BytesPerCacheLine: u32, BytesOffsetForCacheAlignment: u32, BytesPerLogicalSector: u32, BytesPerPhysicalSector: u32, BytesOffsetForSectorAlignment: u32, }; pub const STORAGE_MEDIUM_PRODUCT_TYPE_DESCRIPTOR = extern struct { Version: u32, Size: u32, MediumProductType: u32, }; pub const STORAGE_PORT_CODE_SET = enum(i32) { Reserved = 0, Storport = 1, SCSIport = 2, Spaceport = 3, ATAport = 4, USBport = 5, SBP2port = 6, SDport = 7, }; pub const StoragePortCodeSetReserved = STORAGE_PORT_CODE_SET.Reserved; pub const StoragePortCodeSetStorport = STORAGE_PORT_CODE_SET.Storport; pub const StoragePortCodeSetSCSIport = STORAGE_PORT_CODE_SET.SCSIport; pub const StoragePortCodeSetSpaceport = STORAGE_PORT_CODE_SET.Spaceport; pub const StoragePortCodeSetATAport = STORAGE_PORT_CODE_SET.ATAport; pub const StoragePortCodeSetUSBport = STORAGE_PORT_CODE_SET.USBport; pub const StoragePortCodeSetSBP2port = STORAGE_PORT_CODE_SET.SBP2port; pub const StoragePortCodeSetSDport = STORAGE_PORT_CODE_SET.SDport; pub const STORAGE_MINIPORT_DESCRIPTOR = extern struct { Version: u32, Size: u32, Portdriver: STORAGE_PORT_CODE_SET, LUNResetSupported: BOOLEAN, TargetResetSupported: BOOLEAN, IoTimeoutValue: u16, ExtraIoInfoSupported: BOOLEAN, Flags: extern union { Anonymous: extern struct { _bitfield: u8, }, AsBYTE: u8, }, Reserved0: [2]u8, Reserved1: u32, }; pub const STORAGE_IDENTIFIER_CODE_SET = enum(i32) { Reserved = 0, Binary = 1, Ascii = 2, Utf8 = 3, }; pub const StorageIdCodeSetReserved = STORAGE_IDENTIFIER_CODE_SET.Reserved; pub const StorageIdCodeSetBinary = STORAGE_IDENTIFIER_CODE_SET.Binary; pub const StorageIdCodeSetAscii = STORAGE_IDENTIFIER_CODE_SET.Ascii; pub const StorageIdCodeSetUtf8 = STORAGE_IDENTIFIER_CODE_SET.Utf8; pub const STORAGE_IDENTIFIER_TYPE = enum(i32) { VendorSpecific = 0, VendorId = 1, EUI64 = 2, FCPHName = 3, PortRelative = 4, TargetPortGroup = 5, LogicalUnitGroup = 6, MD5LogicalUnitIdentifier = 7, ScsiNameString = 8, }; pub const StorageIdTypeVendorSpecific = STORAGE_IDENTIFIER_TYPE.VendorSpecific; pub const StorageIdTypeVendorId = STORAGE_IDENTIFIER_TYPE.VendorId; pub const StorageIdTypeEUI64 = STORAGE_IDENTIFIER_TYPE.EUI64; pub const StorageIdTypeFCPHName = STORAGE_IDENTIFIER_TYPE.FCPHName; pub const StorageIdTypePortRelative = STORAGE_IDENTIFIER_TYPE.PortRelative; pub const StorageIdTypeTargetPortGroup = STORAGE_IDENTIFIER_TYPE.TargetPortGroup; pub const StorageIdTypeLogicalUnitGroup = STORAGE_IDENTIFIER_TYPE.LogicalUnitGroup; pub const StorageIdTypeMD5LogicalUnitIdentifier = STORAGE_IDENTIFIER_TYPE.MD5LogicalUnitIdentifier; pub const StorageIdTypeScsiNameString = STORAGE_IDENTIFIER_TYPE.ScsiNameString; pub const STORAGE_ID_NAA_FORMAT = enum(i32) { Extended = 2, Registered = 3, ERegisteredExtended = 5, }; pub const StorageIdNAAFormatIEEEExtended = STORAGE_ID_NAA_FORMAT.Extended; pub const StorageIdNAAFormatIEEERegistered = STORAGE_ID_NAA_FORMAT.Registered; pub const StorageIdNAAFormatIEEEERegisteredExtended = STORAGE_ID_NAA_FORMAT.ERegisteredExtended; pub const STORAGE_ASSOCIATION_TYPE = enum(i32) { Device = 0, Port = 1, Target = 2, }; pub const StorageIdAssocDevice = STORAGE_ASSOCIATION_TYPE.Device; pub const StorageIdAssocPort = STORAGE_ASSOCIATION_TYPE.Port; pub const StorageIdAssocTarget = STORAGE_ASSOCIATION_TYPE.Target; pub const STORAGE_IDENTIFIER = extern struct { CodeSet: STORAGE_IDENTIFIER_CODE_SET, Type: STORAGE_IDENTIFIER_TYPE, IdentifierSize: u16, NextOffset: u16, Association: STORAGE_ASSOCIATION_TYPE, Identifier: [1]u8, }; pub const STORAGE_DEVICE_ID_DESCRIPTOR = extern struct { Version: u32, Size: u32, NumberOfIdentifiers: u32, Identifiers: [1]u8, }; pub const DEVICE_SEEK_PENALTY_DESCRIPTOR = extern struct { Version: u32, Size: u32, IncursSeekPenalty: BOOLEAN, }; pub const DEVICE_WRITE_AGGREGATION_DESCRIPTOR = extern struct { Version: u32, Size: u32, BenefitsFromWriteAggregation: BOOLEAN, }; pub const DEVICE_TRIM_DESCRIPTOR = extern struct { Version: u32, Size: u32, TrimEnabled: BOOLEAN, }; pub const DEVICE_LB_PROVISIONING_DESCRIPTOR = extern struct { Version: u32, Size: u32, _bitfield: u8, Reserved1: [7]u8, OptimalUnmapGranularity: u64, UnmapGranularityAlignment: u64, MaxUnmapLbaCount: u32, MaxUnmapBlockDescriptorCount: u32, }; pub const STORAGE_LB_PROVISIONING_MAP_RESOURCES = extern struct { Size: u32, Version: u32, _bitfield1: u8, Reserved1: [3]u8, _bitfield2: u8, Reserved3: [3]u8, AvailableMappingResources: u64, UsedMappingResources: u64, }; pub const DEVICE_POWER_DESCRIPTOR = extern struct { Version: u32, Size: u32, DeviceAttentionSupported: BOOLEAN, AsynchronousNotificationSupported: BOOLEAN, IdlePowerManagementEnabled: BOOLEAN, D3ColdEnabled: BOOLEAN, D3ColdSupported: BOOLEAN, NoVerifyDuringIdlePower: BOOLEAN, Reserved: [2]u8, IdleTimeoutInMS: u32, }; pub const DEVICE_COPY_OFFLOAD_DESCRIPTOR = extern struct { Version: u32, Size: u32, MaximumTokenLifetime: u32, DefaultTokenLifetime: u32, MaximumTransferSize: u64, OptimalTransferCount: u64, MaximumDataDescriptors: u32, MaximumTransferLengthPerDescriptor: u32, OptimalTransferLengthPerDescriptor: u32, OptimalTransferLengthGranularity: u16, Reserved: [2]u8, }; pub const STORAGE_DEVICE_RESILIENCY_DESCRIPTOR = extern struct { Version: u32, Size: u32, NameOffset: u32, NumberOfLogicalCopies: u32, NumberOfPhysicalCopies: u32, PhysicalDiskRedundancy: u32, NumberOfColumns: u32, Interleave: u32, }; pub const STORAGE_RPMB_FRAME_TYPE = enum(i32) { Unknown = 0, Standard = 1, Max = 2, }; pub const StorageRpmbFrameTypeUnknown = STORAGE_RPMB_FRAME_TYPE.Unknown; pub const StorageRpmbFrameTypeStandard = STORAGE_RPMB_FRAME_TYPE.Standard; pub const StorageRpmbFrameTypeMax = STORAGE_RPMB_FRAME_TYPE.Max; pub const STORAGE_RPMB_DESCRIPTOR = extern struct { Version: u32, Size: u32, SizeInBytes: u32, MaxReliableWriteSizeInBytes: u32, FrameFormat: STORAGE_RPMB_FRAME_TYPE, }; pub const STORAGE_CRYPTO_ALGORITHM_ID = enum(i32) { Unknown = 0, XTSAES = 1, BitlockerAESCBC = 2, AESECB = 3, ESSIVAESCBC = 4, Max = 5, }; pub const StorageCryptoAlgorithmUnknown = STORAGE_CRYPTO_ALGORITHM_ID.Unknown; pub const StorageCryptoAlgorithmXTSAES = STORAGE_CRYPTO_ALGORITHM_ID.XTSAES; pub const StorageCryptoAlgorithmBitlockerAESCBC = STORAGE_CRYPTO_ALGORITHM_ID.BitlockerAESCBC; pub const StorageCryptoAlgorithmAESECB = STORAGE_CRYPTO_ALGORITHM_ID.AESECB; pub const StorageCryptoAlgorithmESSIVAESCBC = STORAGE_CRYPTO_ALGORITHM_ID.ESSIVAESCBC; pub const StorageCryptoAlgorithmMax = STORAGE_CRYPTO_ALGORITHM_ID.Max; pub const STORAGE_CRYPTO_KEY_SIZE = enum(i32) { Unknown = 0, @"128Bits" = 1, @"192Bits" = 2, @"256Bits" = 3, @"512Bits" = 4, }; pub const StorageCryptoKeySizeUnknown = STORAGE_CRYPTO_KEY_SIZE.Unknown; pub const StorageCryptoKeySize128Bits = STORAGE_CRYPTO_KEY_SIZE.@"128Bits"; pub const StorageCryptoKeySize192Bits = STORAGE_CRYPTO_KEY_SIZE.@"192Bits"; pub const StorageCryptoKeySize256Bits = STORAGE_CRYPTO_KEY_SIZE.@"256Bits"; pub const StorageCryptoKeySize512Bits = STORAGE_CRYPTO_KEY_SIZE.@"512Bits"; pub const STORAGE_CRYPTO_CAPABILITY = extern struct { Version: u32, Size: u32, CryptoCapabilityIndex: u32, AlgorithmId: STORAGE_CRYPTO_ALGORITHM_ID, KeySize: STORAGE_CRYPTO_KEY_SIZE, DataUnitSizeBitmask: u32, }; pub const STORAGE_CRYPTO_DESCRIPTOR = extern struct { Version: u32, Size: u32, NumKeysSupported: u32, NumCryptoCapabilities: u32, CryptoCapabilities: [1]STORAGE_CRYPTO_CAPABILITY, }; pub const STORAGE_TIER_MEDIA_TYPE = enum(i32) { Unspecified = 0, Disk = 1, Ssd = 2, Scm = 4, Max = 5, }; pub const StorageTierMediaTypeUnspecified = STORAGE_TIER_MEDIA_TYPE.Unspecified; pub const StorageTierMediaTypeDisk = STORAGE_TIER_MEDIA_TYPE.Disk; pub const StorageTierMediaTypeSsd = STORAGE_TIER_MEDIA_TYPE.Ssd; pub const StorageTierMediaTypeScm = STORAGE_TIER_MEDIA_TYPE.Scm; pub const StorageTierMediaTypeMax = STORAGE_TIER_MEDIA_TYPE.Max; pub const STORAGE_TIER_CLASS = enum(i32) { Unspecified = 0, Capacity = 1, Performance = 2, Max = 3, }; pub const StorageTierClassUnspecified = STORAGE_TIER_CLASS.Unspecified; pub const StorageTierClassCapacity = STORAGE_TIER_CLASS.Capacity; pub const StorageTierClassPerformance = STORAGE_TIER_CLASS.Performance; pub const StorageTierClassMax = STORAGE_TIER_CLASS.Max; pub const STORAGE_TIER = extern struct { Id: Guid, Name: [256]u16, Description: [256]u16, Flags: u64, ProvisionedCapacity: u64, MediaType: STORAGE_TIER_MEDIA_TYPE, Class: STORAGE_TIER_CLASS, }; pub const STORAGE_DEVICE_TIERING_DESCRIPTOR = extern struct { Version: u32, Size: u32, Flags: u32, TotalNumberOfTiers: u32, NumberOfTiersReturned: u32, Tiers: [1]STORAGE_TIER, }; pub const STORAGE_DEVICE_FAULT_DOMAIN_DESCRIPTOR = extern struct { Version: u32, Size: u32, NumberOfFaultDomains: u32, FaultDomainIds: [1]Guid, }; pub const STORAGE_PROTOCOL_TYPE = enum(i32) { Unknown = 0, Scsi = 1, Ata = 2, Nvme = 3, Sd = 4, Ufs = 5, Proprietary = 126, MaxReserved = 127, }; pub const ProtocolTypeUnknown = STORAGE_PROTOCOL_TYPE.Unknown; pub const ProtocolTypeScsi = STORAGE_PROTOCOL_TYPE.Scsi; pub const ProtocolTypeAta = STORAGE_PROTOCOL_TYPE.Ata; pub const ProtocolTypeNvme = STORAGE_PROTOCOL_TYPE.Nvme; pub const ProtocolTypeSd = STORAGE_PROTOCOL_TYPE.Sd; pub const ProtocolTypeUfs = STORAGE_PROTOCOL_TYPE.Ufs; pub const ProtocolTypeProprietary = STORAGE_PROTOCOL_TYPE.Proprietary; pub const ProtocolTypeMaxReserved = STORAGE_PROTOCOL_TYPE.MaxReserved; pub const STORAGE_PROTOCOL_NVME_DATA_TYPE = enum(i32) { Unknown = 0, Identify = 1, LogPage = 2, Feature = 3, }; pub const NVMeDataTypeUnknown = STORAGE_PROTOCOL_NVME_DATA_TYPE.Unknown; pub const NVMeDataTypeIdentify = STORAGE_PROTOCOL_NVME_DATA_TYPE.Identify; pub const NVMeDataTypeLogPage = STORAGE_PROTOCOL_NVME_DATA_TYPE.LogPage; pub const NVMeDataTypeFeature = STORAGE_PROTOCOL_NVME_DATA_TYPE.Feature; pub const STORAGE_PROTOCOL_ATA_DATA_TYPE = enum(i32) { Unknown = 0, Identify = 1, LogPage = 2, }; pub const AtaDataTypeUnknown = STORAGE_PROTOCOL_ATA_DATA_TYPE.Unknown; pub const AtaDataTypeIdentify = STORAGE_PROTOCOL_ATA_DATA_TYPE.Identify; pub const AtaDataTypeLogPage = STORAGE_PROTOCOL_ATA_DATA_TYPE.LogPage; pub const STORAGE_PROTOCOL_UFS_DATA_TYPE = enum(i32) { Unknown = 0, QueryDescriptor = 1, QueryAttribute = 2, QueryFlag = 3, QueryDmeAttribute = 4, QueryDmePeerAttribute = 5, Max = 6, }; pub const UfsDataTypeUnknown = STORAGE_PROTOCOL_UFS_DATA_TYPE.Unknown; pub const UfsDataTypeQueryDescriptor = STORAGE_PROTOCOL_UFS_DATA_TYPE.QueryDescriptor; pub const UfsDataTypeQueryAttribute = STORAGE_PROTOCOL_UFS_DATA_TYPE.QueryAttribute; pub const UfsDataTypeQueryFlag = STORAGE_PROTOCOL_UFS_DATA_TYPE.QueryFlag; pub const UfsDataTypeQueryDmeAttribute = STORAGE_PROTOCOL_UFS_DATA_TYPE.QueryDmeAttribute; pub const UfsDataTypeQueryDmePeerAttribute = STORAGE_PROTOCOL_UFS_DATA_TYPE.QueryDmePeerAttribute; pub const UfsDataTypeMax = STORAGE_PROTOCOL_UFS_DATA_TYPE.Max; pub const STORAGE_PROTOCOL_DATA_SUBVALUE_GET_LOG_PAGE = extern union { Anonymous: extern struct { _bitfield: u32, }, AsUlong: u32, }; pub const STORAGE_PROTOCOL_SPECIFIC_DATA = extern struct { ProtocolType: STORAGE_PROTOCOL_TYPE, DataType: u32, ProtocolDataRequestValue: u32, ProtocolDataRequestSubValue: u32, ProtocolDataOffset: u32, ProtocolDataLength: u32, FixedProtocolReturnData: u32, ProtocolDataRequestSubValue2: u32, ProtocolDataRequestSubValue3: u32, ProtocolDataRequestSubValue4: u32, }; pub const STORAGE_PROTOCOL_SPECIFIC_DATA_EXT = extern struct { ProtocolType: STORAGE_PROTOCOL_TYPE, DataType: u32, ProtocolDataValue: u32, ProtocolDataSubValue: u32, ProtocolDataOffset: u32, ProtocolDataLength: u32, FixedProtocolReturnData: u32, ProtocolDataSubValue2: u32, ProtocolDataSubValue3: u32, ProtocolDataSubValue4: u32, ProtocolDataSubValue5: u32, Reserved: [5]u32, }; pub const STORAGE_PROTOCOL_DATA_DESCRIPTOR = extern struct { Version: u32, Size: u32, ProtocolSpecificData: STORAGE_PROTOCOL_SPECIFIC_DATA, }; pub const STORAGE_PROTOCOL_DATA_DESCRIPTOR_EXT = extern struct { Version: u32, Size: u32, ProtocolSpecificData: STORAGE_PROTOCOL_SPECIFIC_DATA_EXT, }; pub const STORAGE_TEMPERATURE_INFO = extern struct { Index: u16, Temperature: i16, OverThreshold: i16, UnderThreshold: i16, OverThresholdChangable: BOOLEAN, UnderThresholdChangable: BOOLEAN, EventGenerated: BOOLEAN, Reserved0: u8, Reserved1: u32, }; pub const STORAGE_TEMPERATURE_DATA_DESCRIPTOR = extern struct { Version: u32, Size: u32, CriticalTemperature: i16, WarningTemperature: i16, InfoCount: u16, Reserved0: [2]u8, Reserved1: [2]u32, TemperatureInfo: [1]STORAGE_TEMPERATURE_INFO, }; pub const STORAGE_TEMPERATURE_THRESHOLD = extern struct { Version: u32, Size: u32, Flags: u16, Index: u16, Threshold: i16, OverThreshold: BOOLEAN, Reserved: u8, }; pub const STORAGE_DEVICE_FORM_FACTOR = enum(i32) { Unknown = 0, @"3_5" = 1, @"2_5" = 2, @"1_8" = 3, @"1_8Less" = 4, Embedded = 5, MemoryCard = 6, mSata = 7, M_2 = 8, PCIeBoard = 9, Dimm = 10, }; pub const FormFactorUnknown = STORAGE_DEVICE_FORM_FACTOR.Unknown; pub const FormFactor3_5 = STORAGE_DEVICE_FORM_FACTOR.@"3_5"; pub const FormFactor2_5 = STORAGE_DEVICE_FORM_FACTOR.@"2_5"; pub const FormFactor1_8 = STORAGE_DEVICE_FORM_FACTOR.@"1_8"; pub const FormFactor1_8Less = STORAGE_DEVICE_FORM_FACTOR.@"1_8Less"; pub const FormFactorEmbedded = STORAGE_DEVICE_FORM_FACTOR.Embedded; pub const FormFactorMemoryCard = STORAGE_DEVICE_FORM_FACTOR.MemoryCard; pub const FormFactormSata = STORAGE_DEVICE_FORM_FACTOR.mSata; pub const FormFactorM_2 = STORAGE_DEVICE_FORM_FACTOR.M_2; pub const FormFactorPCIeBoard = STORAGE_DEVICE_FORM_FACTOR.PCIeBoard; pub const FormFactorDimm = STORAGE_DEVICE_FORM_FACTOR.Dimm; pub const STORAGE_COMPONENT_HEALTH_STATUS = enum(i32) { Unknown = 0, Normal = 1, Throttled = 2, Warning = 3, Disabled = 4, Failed = 5, }; pub const HealthStatusUnknown = STORAGE_COMPONENT_HEALTH_STATUS.Unknown; pub const HealthStatusNormal = STORAGE_COMPONENT_HEALTH_STATUS.Normal; pub const HealthStatusThrottled = STORAGE_COMPONENT_HEALTH_STATUS.Throttled; pub const HealthStatusWarning = STORAGE_COMPONENT_HEALTH_STATUS.Warning; pub const HealthStatusDisabled = STORAGE_COMPONENT_HEALTH_STATUS.Disabled; pub const HealthStatusFailed = STORAGE_COMPONENT_HEALTH_STATUS.Failed; pub const STORAGE_SPEC_VERSION = extern union { Anonymous: extern struct { MinorVersion: extern union { Anonymous: extern struct { SubMinor: u8, Minor: u8, }, AsUshort: u16, }, MajorVersion: u16, }, AsUlong: u32, }; pub const STORAGE_PHYSICAL_DEVICE_DATA = extern struct { DeviceId: u32, Role: u32, HealthStatus: STORAGE_COMPONENT_HEALTH_STATUS, CommandProtocol: STORAGE_PROTOCOL_TYPE, SpecVersion: STORAGE_SPEC_VERSION, FormFactor: STORAGE_DEVICE_FORM_FACTOR, Vendor: [8]u8, Model: [40]u8, FirmwareRevision: [16]u8, Capacity: u64, PhysicalLocation: [32]u8, Reserved: [2]u32, }; pub const STORAGE_PHYSICAL_ADAPTER_DATA = extern struct { AdapterId: u32, HealthStatus: STORAGE_COMPONENT_HEALTH_STATUS, CommandProtocol: STORAGE_PROTOCOL_TYPE, SpecVersion: STORAGE_SPEC_VERSION, Vendor: [8]u8, Model: [40]u8, FirmwareRevision: [16]u8, PhysicalLocation: [32]u8, ExpanderConnected: BOOLEAN, Reserved0: [3]u8, Reserved1: [3]u32, }; pub const STORAGE_PHYSICAL_NODE_DATA = extern struct { NodeId: u32, AdapterCount: u32, AdapterDataLength: u32, AdapterDataOffset: u32, DeviceCount: u32, DeviceDataLength: u32, DeviceDataOffset: u32, Reserved: [3]u32, }; pub const STORAGE_PHYSICAL_TOPOLOGY_DESCRIPTOR = extern struct { Version: u32, Size: u32, NodeCount: u32, Reserved: u32, Node: [1]STORAGE_PHYSICAL_NODE_DATA, }; pub const STORAGE_DEVICE_IO_CAPABILITY_DESCRIPTOR = extern struct { Version: u32, Size: u32, LunMaxIoCount: u32, AdapterMaxIoCount: u32, }; pub const STORAGE_DEVICE_ATTRIBUTES_DESCRIPTOR = extern struct { Version: u32, Size: u32, Attributes: u64, }; pub const STORAGE_DISK_HEALTH_STATUS = enum(i32) { Unknown = 0, Unhealthy = 1, Warning = 2, Healthy = 3, Max = 4, }; pub const DiskHealthUnknown = STORAGE_DISK_HEALTH_STATUS.Unknown; pub const DiskHealthUnhealthy = STORAGE_DISK_HEALTH_STATUS.Unhealthy; pub const DiskHealthWarning = STORAGE_DISK_HEALTH_STATUS.Warning; pub const DiskHealthHealthy = STORAGE_DISK_HEALTH_STATUS.Healthy; pub const DiskHealthMax = STORAGE_DISK_HEALTH_STATUS.Max; pub const STORAGE_DISK_OPERATIONAL_STATUS = enum(i32) { None = 0, Unknown = 1, Ok = 2, PredictingFailure = 3, InService = 4, HardwareError = 5, NotUsable = 6, TransientError = 7, Missing = 8, }; pub const DiskOpStatusNone = STORAGE_DISK_OPERATIONAL_STATUS.None; pub const DiskOpStatusUnknown = STORAGE_DISK_OPERATIONAL_STATUS.Unknown; pub const DiskOpStatusOk = STORAGE_DISK_OPERATIONAL_STATUS.Ok; pub const DiskOpStatusPredictingFailure = STORAGE_DISK_OPERATIONAL_STATUS.PredictingFailure; pub const DiskOpStatusInService = STORAGE_DISK_OPERATIONAL_STATUS.InService; pub const DiskOpStatusHardwareError = STORAGE_DISK_OPERATIONAL_STATUS.HardwareError; pub const DiskOpStatusNotUsable = STORAGE_DISK_OPERATIONAL_STATUS.NotUsable; pub const DiskOpStatusTransientError = STORAGE_DISK_OPERATIONAL_STATUS.TransientError; pub const DiskOpStatusMissing = STORAGE_DISK_OPERATIONAL_STATUS.Missing; pub const STORAGE_OPERATIONAL_STATUS_REASON = enum(i32) { Unknown = 0, ScsiSenseCode = 1, Media = 2, Io = 3, ThresholdExceeded = 4, LostData = 5, EnergySource = 6, Configuration = 7, DeviceController = 8, MediaController = 9, Component = 10, NVDIMM_N = 11, BackgroundOperation = 12, InvalidFirmware = 13, HealthCheck = 14, LostDataPersistence = 15, DisabledByPlatform = 16, LostWritePersistence = 17, DataPersistenceLossImminent = 18, WritePersistenceLossImminent = 19, Max = 20, }; pub const DiskOpReasonUnknown = STORAGE_OPERATIONAL_STATUS_REASON.Unknown; pub const DiskOpReasonScsiSenseCode = STORAGE_OPERATIONAL_STATUS_REASON.ScsiSenseCode; pub const DiskOpReasonMedia = STORAGE_OPERATIONAL_STATUS_REASON.Media; pub const DiskOpReasonIo = STORAGE_OPERATIONAL_STATUS_REASON.Io; pub const DiskOpReasonThresholdExceeded = STORAGE_OPERATIONAL_STATUS_REASON.ThresholdExceeded; pub const DiskOpReasonLostData = STORAGE_OPERATIONAL_STATUS_REASON.LostData; pub const DiskOpReasonEnergySource = STORAGE_OPERATIONAL_STATUS_REASON.EnergySource; pub const DiskOpReasonConfiguration = STORAGE_OPERATIONAL_STATUS_REASON.Configuration; pub const DiskOpReasonDeviceController = STORAGE_OPERATIONAL_STATUS_REASON.DeviceController; pub const DiskOpReasonMediaController = STORAGE_OPERATIONAL_STATUS_REASON.MediaController; pub const DiskOpReasonComponent = STORAGE_OPERATIONAL_STATUS_REASON.Component; pub const DiskOpReasonNVDIMM_N = STORAGE_OPERATIONAL_STATUS_REASON.NVDIMM_N; pub const DiskOpReasonBackgroundOperation = STORAGE_OPERATIONAL_STATUS_REASON.BackgroundOperation; pub const DiskOpReasonInvalidFirmware = STORAGE_OPERATIONAL_STATUS_REASON.InvalidFirmware; pub const DiskOpReasonHealthCheck = STORAGE_OPERATIONAL_STATUS_REASON.HealthCheck; pub const DiskOpReasonLostDataPersistence = STORAGE_OPERATIONAL_STATUS_REASON.LostDataPersistence; pub const DiskOpReasonDisabledByPlatform = STORAGE_OPERATIONAL_STATUS_REASON.DisabledByPlatform; pub const DiskOpReasonLostWritePersistence = STORAGE_OPERATIONAL_STATUS_REASON.LostWritePersistence; pub const DiskOpReasonDataPersistenceLossImminent = STORAGE_OPERATIONAL_STATUS_REASON.DataPersistenceLossImminent; pub const DiskOpReasonWritePersistenceLossImminent = STORAGE_OPERATIONAL_STATUS_REASON.WritePersistenceLossImminent; pub const DiskOpReasonMax = STORAGE_OPERATIONAL_STATUS_REASON.Max; pub const STORAGE_OPERATIONAL_REASON = extern struct { Version: u32, Size: u32, Reason: STORAGE_OPERATIONAL_STATUS_REASON, RawBytes: extern union { ScsiSenseKey: extern struct { SenseKey: u8, ASC: u8, ASCQ: u8, Reserved: u8, }, NVDIMM_N: extern struct { CriticalHealth: u8, ModuleHealth: [2]u8, ErrorThresholdStatus: u8, }, AsUlong: u32, }, }; pub const STORAGE_DEVICE_MANAGEMENT_STATUS = extern struct { Version: u32, Size: u32, Health: STORAGE_DISK_HEALTH_STATUS, NumberOfOperationalStatus: u32, NumberOfAdditionalReasons: u32, OperationalStatus: [16]STORAGE_DISK_OPERATIONAL_STATUS, AdditionalReasons: [1]STORAGE_OPERATIONAL_REASON, }; pub const STORAGE_ADAPTER_SERIAL_NUMBER = extern struct { Version: u32, Size: u32, SerialNumber: [128]u16, }; pub const STORAGE_ZONED_DEVICE_TYPES = enum(i32) { Unknown = 0, HostManaged = 1, HostAware = 2, DeviceManaged = 3, }; pub const ZonedDeviceTypeUnknown = STORAGE_ZONED_DEVICE_TYPES.Unknown; pub const ZonedDeviceTypeHostManaged = STORAGE_ZONED_DEVICE_TYPES.HostManaged; pub const ZonedDeviceTypeHostAware = STORAGE_ZONED_DEVICE_TYPES.HostAware; pub const ZonedDeviceTypeDeviceManaged = STORAGE_ZONED_DEVICE_TYPES.DeviceManaged; pub const STORAGE_ZONE_TYPES = enum(i32) { Unknown = 0, Conventional = 1, SequentialWriteRequired = 2, SequentialWritePreferred = 3, Max = 4, }; pub const ZoneTypeUnknown = STORAGE_ZONE_TYPES.Unknown; pub const ZoneTypeConventional = STORAGE_ZONE_TYPES.Conventional; pub const ZoneTypeSequentialWriteRequired = STORAGE_ZONE_TYPES.SequentialWriteRequired; pub const ZoneTypeSequentialWritePreferred = STORAGE_ZONE_TYPES.SequentialWritePreferred; pub const ZoneTypeMax = STORAGE_ZONE_TYPES.Max; pub const STORAGE_ZONE_GROUP = extern struct { ZoneCount: u32, ZoneType: STORAGE_ZONE_TYPES, ZoneSize: u64, }; pub const STORAGE_ZONED_DEVICE_DESCRIPTOR = extern struct { Version: u32, Size: u32, DeviceType: STORAGE_ZONED_DEVICE_TYPES, ZoneCount: u32, ZoneAttributes: extern union { SequentialRequiredZone: extern struct { MaxOpenZoneCount: u32, UnrestrictedRead: BOOLEAN, Reserved: [3]u8, }, SequentialPreferredZone: extern struct { OptimalOpenZoneCount: u32, Reserved: u32, }, }, ZoneGroupCount: u32, ZoneGroup: [1]STORAGE_ZONE_GROUP, }; pub const DEVICE_LOCATION = extern struct { Socket: u32, Slot: u32, Adapter: u32, Port: u32, Anonymous: extern union { Anonymous1: extern struct { Channel: u32, Device: u32, }, Anonymous2: extern struct { Target: u32, Lun: u32, }, }, }; pub const STORAGE_DEVICE_LOCATION_DESCRIPTOR = extern struct { Version: u32, Size: u32, Location: DEVICE_LOCATION, StringOffset: u32, }; pub const STORAGE_DEVICE_NUMA_PROPERTY = extern struct { Version: u32, Size: u32, NumaNode: u32, }; pub const STORAGE_DEVICE_UNSAFE_SHUTDOWN_COUNT = extern struct { Version: u32, Size: u32, UnsafeShutdownCount: u32, }; pub const STORAGE_HW_ENDURANCE_INFO = extern struct { ValidFields: u32, GroupId: u32, Flags: extern struct { _bitfield: u32, }, LifePercentage: u32, BytesReadCount: [16]u8, ByteWriteCount: [16]u8, }; pub const STORAGE_HW_ENDURANCE_DATA_DESCRIPTOR = extern struct { Version: u32, Size: u32, EnduranceInfo: STORAGE_HW_ENDURANCE_INFO, }; pub const STORAGE_DEVICE_LED_STATE_DESCRIPTOR = extern struct { Version: u32, Size: u32, State: u64, }; pub const STORAGE_DEVICE_SELF_ENCRYPTION_PROPERTY = extern struct { Version: u32, Size: u32, SupportsSelfEncryption: BOOLEAN, }; pub const STORAGE_FRU_ID_DESCRIPTOR = extern struct { Version: u32, Size: u32, IdentifierSize: u32, Identifier: [1]u8, }; pub const DEVICE_DATA_SET_RANGE = extern struct { StartingOffset: i64, LengthInBytes: u64, }; pub const DEVICE_MANAGE_DATA_SET_ATTRIBUTES = extern struct { Size: u32, Action: u32, Flags: u32, ParameterBlockOffset: u32, ParameterBlockLength: u32, DataSetRangesOffset: u32, DataSetRangesLength: u32, }; pub const DEVICE_MANAGE_DATA_SET_ATTRIBUTES_OUTPUT = extern struct { Size: u32, Action: u32, Flags: u32, OperationStatus: u32, ExtendedError: u32, TargetDetailedError: u32, ReservedStatus: u32, OutputBlockOffset: u32, OutputBlockLength: u32, }; pub const DEVICE_DSM_DEFINITION = extern struct { Action: u32, SingleRange: BOOLEAN, ParameterBlockAlignment: u32, ParameterBlockLength: u32, HasOutput: BOOLEAN, OutputBlockAlignment: u32, OutputBlockLength: u32, }; pub const DEVICE_DSM_NOTIFICATION_PARAMETERS = extern struct { Size: u32, Flags: u32, NumFileTypeIDs: u32, FileTypeID: [1]Guid, }; pub const STORAGE_OFFLOAD_TOKEN = extern struct { TokenType: [4]u8, Reserved: [2]u8, TokenIdLength: [2]u8, Anonymous: extern union { StorageOffloadZeroDataToken: extern struct { Reserved2: [504]u8, }, Token: [504]u8, }, }; pub const DEVICE_DSM_OFFLOAD_READ_PARAMETERS = extern struct { Flags: u32, TimeToLive: u32, Reserved: [2]u32, }; pub const STORAGE_OFFLOAD_READ_OUTPUT = extern struct { OffloadReadFlags: u32, Reserved: u32, LengthProtected: u64, TokenLength: u32, Token: STORAGE_OFFLOAD_TOKEN, }; pub const DEVICE_DSM_OFFLOAD_WRITE_PARAMETERS = extern struct { Flags: u32, Reserved: u32, TokenOffset: u64, Token: STORAGE_OFFLOAD_TOKEN, }; pub const STORAGE_OFFLOAD_WRITE_OUTPUT = extern struct { OffloadWriteFlags: u32, Reserved: u32, LengthCopied: u64, }; pub const DEVICE_DATA_SET_LBP_STATE_PARAMETERS = extern struct { Version: u32, Size: u32, Flags: u32, OutputVersion: u32, }; pub const DEVICE_DATA_SET_LB_PROVISIONING_STATE = extern struct { Size: u32, Version: u32, SlabSizeInBytes: u64, SlabOffsetDeltaInBytes: u32, SlabAllocationBitMapBitCount: u32, SlabAllocationBitMapLength: u32, SlabAllocationBitMap: [1]u32, }; pub const DEVICE_DATA_SET_LB_PROVISIONING_STATE_V2 = extern struct { Size: u32, Version: u32, SlabSizeInBytes: u64, SlabOffsetDeltaInBytes: u64, SlabAllocationBitMapBitCount: u32, SlabAllocationBitMapLength: u32, SlabAllocationBitMap: [1]u32, }; pub const DEVICE_DATA_SET_REPAIR_PARAMETERS = extern struct { NumberOfRepairCopies: u32, SourceCopy: u32, RepairCopies: [1]u32, }; pub const DEVICE_DATA_SET_REPAIR_OUTPUT = extern struct { ParityExtent: DEVICE_DATA_SET_RANGE, }; pub const DEVICE_DATA_SET_SCRUB_OUTPUT = extern struct { BytesProcessed: u64, BytesRepaired: u64, BytesFailed: u64, }; pub const DEVICE_DATA_SET_SCRUB_EX_OUTPUT = extern struct { BytesProcessed: u64, BytesRepaired: u64, BytesFailed: u64, ParityExtent: DEVICE_DATA_SET_RANGE, BytesScrubbed: u64, }; pub const DEVICE_DSM_TIERING_QUERY_INPUT = extern struct { Version: u32, Size: u32, Flags: u32, NumberOfTierIds: u32, TierIds: [1]Guid, }; pub const STORAGE_TIER_REGION = extern struct { TierId: Guid, Offset: u64, Length: u64, }; pub const DEVICE_DSM_TIERING_QUERY_OUTPUT = extern struct { Version: u32, Size: u32, Flags: u32, Reserved: u32, Alignment: u64, TotalNumberOfRegions: u32, NumberOfRegionsReturned: u32, Regions: [1]STORAGE_TIER_REGION, }; pub const DEVICE_DSM_NVCACHE_CHANGE_PRIORITY_PARAMETERS = extern struct { Size: u32, TargetPriority: u8, Reserved: [3]u8, }; pub const DEVICE_DATA_SET_TOPOLOGY_ID_QUERY_OUTPUT = extern struct { TopologyRangeBytes: u64, TopologyId: [16]u8, }; pub const DEVICE_STORAGE_ADDRESS_RANGE = extern struct { StartAddress: i64, LengthInBytes: u64, }; pub const DEVICE_DSM_PHYSICAL_ADDRESSES_OUTPUT = extern struct { Version: u32, Flags: u32, TotalNumberOfRanges: u32, NumberOfRangesReturned: u32, Ranges: [1]DEVICE_STORAGE_ADDRESS_RANGE, }; pub const DEVICE_DSM_REPORT_ZONES_PARAMETERS = extern struct { Size: u32, ReportOption: u8, Partial: u8, Reserved: [2]u8, }; pub const STORAGE_ZONES_ATTRIBUTES = enum(i32) { AndLengthMayDifferent = 0, SameLengthSame = 1, SameLastZoneLengthDifferent = 2, MayDifferentLengthSame = 3, }; pub const ZonesAttributeTypeAndLengthMayDifferent = STORAGE_ZONES_ATTRIBUTES.AndLengthMayDifferent; pub const ZonesAttributeTypeSameLengthSame = STORAGE_ZONES_ATTRIBUTES.SameLengthSame; pub const ZonesAttributeTypeSameLastZoneLengthDifferent = STORAGE_ZONES_ATTRIBUTES.SameLastZoneLengthDifferent; pub const ZonesAttributeTypeMayDifferentLengthSame = STORAGE_ZONES_ATTRIBUTES.MayDifferentLengthSame; pub const STORAGE_ZONE_CONDITION = enum(i32) { Conventional = 0, Empty = 1, ImplicitlyOpened = 2, ExplicitlyOpened = 3, Closed = 4, ReadOnly = 13, Full = 14, Offline = 15, }; pub const ZoneConditionConventional = STORAGE_ZONE_CONDITION.Conventional; pub const ZoneConditionEmpty = STORAGE_ZONE_CONDITION.Empty; pub const ZoneConditionImplicitlyOpened = STORAGE_ZONE_CONDITION.ImplicitlyOpened; pub const ZoneConditionExplicitlyOpened = STORAGE_ZONE_CONDITION.ExplicitlyOpened; pub const ZoneConditionClosed = STORAGE_ZONE_CONDITION.Closed; pub const ZoneConditionReadOnly = STORAGE_ZONE_CONDITION.ReadOnly; pub const ZoneConditionFull = STORAGE_ZONE_CONDITION.Full; pub const ZoneConditionOffline = STORAGE_ZONE_CONDITION.Offline; pub const STORAGE_ZONE_DESCRIPTOR = extern struct { Size: u32, ZoneType: STORAGE_ZONE_TYPES, ZoneCondition: STORAGE_ZONE_CONDITION, ResetWritePointerRecommend: BOOLEAN, Reserved0: [3]u8, ZoneSize: u64, WritePointerOffset: u64, }; pub const DEVICE_DSM_REPORT_ZONES_DATA = extern struct { Size: u32, ZoneCount: u32, Attributes: STORAGE_ZONES_ATTRIBUTES, Reserved0: u32, ZoneDescriptors: [1]STORAGE_ZONE_DESCRIPTOR, }; pub const DEVICE_STORAGE_RANGE_ATTRIBUTES = extern struct { LengthInBytes: u64, Anonymous: extern union { AllFlags: u32, Anonymous: extern struct { _bitfield: u32, }, }, Reserved: u32, }; pub const DEVICE_DSM_RANGE_ERROR_INFO = extern struct { Version: u32, Flags: u32, TotalNumberOfRanges: u32, NumberOfRangesReturned: u32, Ranges: [1]DEVICE_STORAGE_RANGE_ATTRIBUTES, }; pub const DEVICE_DSM_LOST_QUERY_PARAMETERS = extern struct { Version: u32, Granularity: u64, }; pub const DEVICE_DSM_LOST_QUERY_OUTPUT = extern struct { Version: u32, Size: u32, Alignment: u64, NumberOfBits: u32, BitMap: [1]u32, }; pub const DEVICE_DSM_FREE_SPACE_OUTPUT = extern struct { Version: u32, FreeSpace: u64, }; pub const DEVICE_DSM_CONVERSION_OUTPUT = extern struct { Version: u32, Source: Guid, }; pub const STORAGE_GET_BC_PROPERTIES_OUTPUT = extern struct { MaximumRequestsPerPeriod: u32, MinimumPeriod: u32, MaximumRequestSize: u64, EstimatedTimePerRequest: u32, NumOutStandingRequests: u32, RequestSize: u64, }; pub const STORAGE_ALLOCATE_BC_STREAM_INPUT = extern struct { Version: u32, RequestsPerPeriod: u32, Period: u32, RetryFailures: BOOLEAN, Discardable: BOOLEAN, Reserved1: [2]BOOLEAN, AccessType: u32, AccessMode: u32, }; pub const STORAGE_ALLOCATE_BC_STREAM_OUTPUT = extern struct { RequestSize: u64, NumOutStandingRequests: u32, }; pub const STORAGE_PRIORITY_HINT_SUPPORT = extern struct { SupportFlags: u32, }; pub const STORAGE_DIAGNOSTIC_LEVEL = enum(i32) { Default = 0, Max = 1, }; pub const StorageDiagnosticLevelDefault = STORAGE_DIAGNOSTIC_LEVEL.Default; pub const StorageDiagnosticLevelMax = STORAGE_DIAGNOSTIC_LEVEL.Max; pub const STORAGE_DIAGNOSTIC_TARGET_TYPE = enum(i32) { Undefined = 0, Port = 1, Miniport = 2, HbaFirmware = 3, Max = 4, }; pub const StorageDiagnosticTargetTypeUndefined = STORAGE_DIAGNOSTIC_TARGET_TYPE.Undefined; pub const StorageDiagnosticTargetTypePort = STORAGE_DIAGNOSTIC_TARGET_TYPE.Port; pub const StorageDiagnosticTargetTypeMiniport = STORAGE_DIAGNOSTIC_TARGET_TYPE.Miniport; pub const StorageDiagnosticTargetTypeHbaFirmware = STORAGE_DIAGNOSTIC_TARGET_TYPE.HbaFirmware; pub const StorageDiagnosticTargetTypeMax = STORAGE_DIAGNOSTIC_TARGET_TYPE.Max; pub const STORAGE_DIAGNOSTIC_REQUEST = extern struct { Version: u32, Size: u32, Flags: u32, TargetType: STORAGE_DIAGNOSTIC_TARGET_TYPE, Level: STORAGE_DIAGNOSTIC_LEVEL, }; pub const STORAGE_DIAGNOSTIC_DATA = extern struct { Version: u32, Size: u32, ProviderId: Guid, BufferSize: u32, Reserved: u32, DiagnosticDataBuffer: [1]u8, }; pub const PHYSICAL_ELEMENT_STATUS_REQUEST = extern struct { Version: u32, Size: u32, StartingElement: u32, Filter: u8, ReportType: u8, Reserved: [2]u8, }; pub const PHYSICAL_ELEMENT_STATUS_DESCRIPTOR = extern struct { Version: u32, Size: u32, ElementIdentifier: u32, PhysicalElementType: u8, PhysicalElementHealth: u8, Reserved1: [2]u8, AssociatedCapacity: u64, Reserved2: [4]u32, }; pub const PHYSICAL_ELEMENT_STATUS = extern struct { Version: u32, Size: u32, DescriptorCount: u32, ReturnedDescriptorCount: u32, ElementIdentifierBeingDepoped: u32, Reserved: u32, Descriptors: [1]PHYSICAL_ELEMENT_STATUS_DESCRIPTOR, }; pub const REMOVE_ELEMENT_AND_TRUNCATE_REQUEST = extern struct { Version: u32, Size: u32, RequestCapacity: u64, ElementIdentifier: u32, Reserved: u32, }; pub const DEVICE_INTERNAL_STATUS_DATA_REQUEST_TYPE = enum(i32) { InternalStatusDataRequestTypeUndefined = 0, CurrentInternalStatusDataHeader = 1, CurrentInternalStatusData = 2, SavedInternalStatusDataHeader = 3, SavedInternalStatusData = 4, }; pub const DeviceInternalStatusDataRequestTypeUndefined = DEVICE_INTERNAL_STATUS_DATA_REQUEST_TYPE.InternalStatusDataRequestTypeUndefined; pub const DeviceCurrentInternalStatusDataHeader = DEVICE_INTERNAL_STATUS_DATA_REQUEST_TYPE.CurrentInternalStatusDataHeader; pub const DeviceCurrentInternalStatusData = DEVICE_INTERNAL_STATUS_DATA_REQUEST_TYPE.CurrentInternalStatusData; pub const DeviceSavedInternalStatusDataHeader = DEVICE_INTERNAL_STATUS_DATA_REQUEST_TYPE.SavedInternalStatusDataHeader; pub const DeviceSavedInternalStatusData = DEVICE_INTERNAL_STATUS_DATA_REQUEST_TYPE.SavedInternalStatusData; pub const DEVICE_INTERNAL_STATUS_DATA_SET = enum(i32) { Undefined = 0, @"1" = 1, @"2" = 2, @"3" = 3, @"4" = 4, Max = 5, }; pub const DeviceStatusDataSetUndefined = DEVICE_INTERNAL_STATUS_DATA_SET.Undefined; pub const DeviceStatusDataSet1 = DEVICE_INTERNAL_STATUS_DATA_SET.@"1"; pub const DeviceStatusDataSet2 = DEVICE_INTERNAL_STATUS_DATA_SET.@"2"; pub const DeviceStatusDataSet3 = DEVICE_INTERNAL_STATUS_DATA_SET.@"3"; pub const DeviceStatusDataSet4 = DEVICE_INTERNAL_STATUS_DATA_SET.@"4"; pub const DeviceStatusDataSetMax = DEVICE_INTERNAL_STATUS_DATA_SET.Max; pub const GET_DEVICE_INTERNAL_STATUS_DATA_REQUEST = extern struct { Version: u32, Size: u32, RequestDataType: DEVICE_INTERNAL_STATUS_DATA_REQUEST_TYPE, RequestDataSet: DEVICE_INTERNAL_STATUS_DATA_SET, }; pub const DEVICE_INTERNAL_STATUS_DATA = extern struct { Version: u32, Size: u32, T10VendorId: u64, DataSet1Length: u32, DataSet2Length: u32, DataSet3Length: u32, DataSet4Length: u32, StatusDataVersion: u8, Reserved: [3]u8, ReasonIdentifier: [128]u8, StatusDataLength: u32, StatusData: [1]u8, }; pub const STORAGE_SANITIZE_METHOD = enum(i32) { Default = 0, BlockErase = 1, CryptoErase = 2, }; pub const StorageSanitizeMethodDefault = STORAGE_SANITIZE_METHOD.Default; pub const StorageSanitizeMethodBlockErase = STORAGE_SANITIZE_METHOD.BlockErase; pub const StorageSanitizeMethodCryptoErase = STORAGE_SANITIZE_METHOD.CryptoErase; pub const STORAGE_REINITIALIZE_MEDIA = extern struct { Version: u32, Size: u32, TimeoutInSeconds: u32, SanitizeOption: extern struct { _bitfield: u32, }, }; pub const STORAGE_MEDIA_SERIAL_NUMBER_DATA = extern struct { Reserved: u16, SerialNumberLength: u16, SerialNumber: [1]u8, }; pub const STORAGE_READ_CAPACITY = extern struct { Version: u32, Size: u32, BlockLength: u32, NumberOfBlocks: LARGE_INTEGER, DiskLength: LARGE_INTEGER, }; pub const WRITE_CACHE_TYPE = enum(i32) { Unknown = 0, None = 1, WriteBack = 2, WriteThrough = 3, }; pub const WriteCacheTypeUnknown = WRITE_CACHE_TYPE.Unknown; pub const WriteCacheTypeNone = WRITE_CACHE_TYPE.None; pub const WriteCacheTypeWriteBack = WRITE_CACHE_TYPE.WriteBack; pub const WriteCacheTypeWriteThrough = WRITE_CACHE_TYPE.WriteThrough; pub const WRITE_CACHE_ENABLE = enum(i32) { EnableUnknown = 0, Disabled = 1, Enabled = 2, }; pub const WriteCacheEnableUnknown = WRITE_CACHE_ENABLE.EnableUnknown; pub const WriteCacheDisabled = WRITE_CACHE_ENABLE.Disabled; pub const WriteCacheEnabled = WRITE_CACHE_ENABLE.Enabled; pub const WRITE_CACHE_CHANGE = enum(i32) { ChangeUnknown = 0, NotChangeable = 1, Changeable = 2, }; pub const WriteCacheChangeUnknown = WRITE_CACHE_CHANGE.ChangeUnknown; pub const WriteCacheNotChangeable = WRITE_CACHE_CHANGE.NotChangeable; pub const WriteCacheChangeable = WRITE_CACHE_CHANGE.Changeable; pub const WRITE_THROUGH = enum(i32) { Unknown = 0, NotSupported = 1, Supported = 2, }; pub const WriteThroughUnknown = WRITE_THROUGH.Unknown; pub const WriteThroughNotSupported = WRITE_THROUGH.NotSupported; pub const WriteThroughSupported = WRITE_THROUGH.Supported; pub const STORAGE_WRITE_CACHE_PROPERTY = extern struct { Version: u32, Size: u32, WriteCacheType: WRITE_CACHE_TYPE, WriteCacheEnabled: WRITE_CACHE_ENABLE, WriteCacheChangeable: WRITE_CACHE_CHANGE, WriteThroughSupported: WRITE_THROUGH, FlushCacheSupported: BOOLEAN, UserDefinedPowerProtection: BOOLEAN, NVCacheEnabled: BOOLEAN, }; pub const PERSISTENT_RESERVE_COMMAND = extern struct { Version: u32, Size: u32, Anonymous: extern union { PR_IN: extern struct { _bitfield: u8, AllocationLength: u16, }, PR_OUT: extern struct { _bitfield1: u8, _bitfield2: u8, ParameterList: [1]u8, }, }, }; pub const _DEVICEDUMP_COLLECTION_TYPE = enum(i32) { BugCheck = 1, ApplicationRequested = 2, DeviceRequested = 3, }; pub const TCCollectionBugCheck = _DEVICEDUMP_COLLECTION_TYPE.BugCheck; pub const TCCollectionApplicationRequested = _DEVICEDUMP_COLLECTION_TYPE.ApplicationRequested; pub const TCCollectionDeviceRequested = _DEVICEDUMP_COLLECTION_TYPE.DeviceRequested; pub const DEVICEDUMP_SUBSECTION_POINTER = extern struct { dwSize: u32 align(1), dwFlags: u32 align(1), dwOffset: u32 align(1), }; pub const DEVICEDUMP_STRUCTURE_VERSION = extern struct { dwSignature: u32 align(1), dwVersion: u32 align(1), dwSize: u32 align(1), }; pub const DEVICEDUMP_SECTION_HEADER = extern struct { guidDeviceDataId: Guid align(1), sOrganizationID: [16]u8 align(1), dwFirmwareRevision: u32 align(1), sModelNumber: [32]u8 align(1), szDeviceManufacturingID: [32]u8 align(1), dwFlags: u32 align(1), bRestrictedPrivateDataVersion: u32 align(1), dwFirmwareIssueId: u32 align(1), szIssueDescriptionString: [132]u8 align(1), }; pub const GP_LOG_PAGE_DESCRIPTOR = extern struct { LogAddress: u16 align(1), LogSectors: u16 align(1), }; pub const DEVICEDUMP_PUBLIC_SUBSECTION = extern struct { dwFlags: u32 align(1), GPLogTable: [16]GP_LOG_PAGE_DESCRIPTOR align(1), szDescription: [16]CHAR align(1), bData: [1]u8 align(1), }; pub const DEVICEDUMP_RESTRICTED_SUBSECTION = extern struct { bData: [1]u8, }; pub const DEVICEDUMP_PRIVATE_SUBSECTION = extern struct { dwFlags: u32 align(1), GPLogId: GP_LOG_PAGE_DESCRIPTOR align(1), bData: [1]u8 align(1), }; pub const DEVICEDUMP_STORAGEDEVICE_DATA = extern struct { Descriptor: DEVICEDUMP_STRUCTURE_VERSION align(1), SectionHeader: DEVICEDUMP_SECTION_HEADER align(1), dwBufferSize: u32 align(1), dwReasonForCollection: u32 align(1), PublicData: DEVICEDUMP_SUBSECTION_POINTER align(1), RestrictedData: DEVICEDUMP_SUBSECTION_POINTER align(1), PrivateData: DEVICEDUMP_SUBSECTION_POINTER align(1), }; pub const DEVICEDUMP_STORAGESTACK_PUBLIC_STATE_RECORD = extern struct { Cdb: [16]u8 align(1), Command: [16]u8 align(1), StartTime: u64 align(1), EndTime: u64 align(1), OperationStatus: u32 align(1), OperationError: u32 align(1), StackSpecific: extern union { ExternalStack: extern struct { dwReserved: u32 align(1), }, AtaPort: extern struct { dwAtaPortSpecific: u32 align(1), }, StorPort: extern struct { SrbTag: u32 align(1), }, } align(1), }; pub const DEVICEDUMP_STORAGESTACK_PUBLIC_DUMP = extern struct { Descriptor: DEVICEDUMP_STRUCTURE_VERSION align(1), dwReasonForCollection: u32 align(1), cDriverName: [16]u8 align(1), uiNumRecords: u32 align(1), RecordArray: [1]DEVICEDUMP_STORAGESTACK_PUBLIC_STATE_RECORD align(1), }; pub const STORAGE_IDLE_POWER = extern struct { Version: u32, Size: u32, _bitfield: u32, D3IdleTimeout: u32, }; pub const STORAGE_POWERUP_REASON_TYPE = enum(i32) { Unknown = 0, IO = 1, DeviceAttention = 2, }; pub const StoragePowerupUnknown = STORAGE_POWERUP_REASON_TYPE.Unknown; pub const StoragePowerupIO = STORAGE_POWERUP_REASON_TYPE.IO; pub const StoragePowerupDeviceAttention = STORAGE_POWERUP_REASON_TYPE.DeviceAttention; pub const STORAGE_IDLE_POWERUP_REASON = extern struct { Version: u32, Size: u32, PowerupReason: STORAGE_POWERUP_REASON_TYPE, }; pub const STORAGE_DEVICE_POWER_CAP_UNITS = enum(i32) { Percent = 0, Milliwatts = 1, }; pub const StorageDevicePowerCapUnitsPercent = STORAGE_DEVICE_POWER_CAP_UNITS.Percent; pub const StorageDevicePowerCapUnitsMilliwatts = STORAGE_DEVICE_POWER_CAP_UNITS.Milliwatts; pub const STORAGE_DEVICE_POWER_CAP = extern struct { Version: u32, Size: u32, Units: STORAGE_DEVICE_POWER_CAP_UNITS, MaxPower: u64, }; pub const STORAGE_RPMB_DATA_FRAME = extern struct { Stuff: [196]u8, KeyOrMAC: [32]u8, Data: [256]u8, Nonce: [16]u8, WriteCounter: [4]u8, Address: [2]u8, BlockCount: [2]u8, OperationResult: [2]u8, RequestOrResponseType: [2]u8, }; pub const STORAGE_RPMB_COMMAND_TYPE = enum(i32) { ProgramAuthKey = 1, QueryWriteCounter = 2, AuthenticatedWrite = 3, AuthenticatedRead = 4, ReadResultRequest = 5, AuthenticatedDeviceConfigWrite = 6, AuthenticatedDeviceConfigRead = 7, }; pub const StorRpmbProgramAuthKey = STORAGE_RPMB_COMMAND_TYPE.ProgramAuthKey; pub const StorRpmbQueryWriteCounter = STORAGE_RPMB_COMMAND_TYPE.QueryWriteCounter; pub const StorRpmbAuthenticatedWrite = STORAGE_RPMB_COMMAND_TYPE.AuthenticatedWrite; pub const StorRpmbAuthenticatedRead = STORAGE_RPMB_COMMAND_TYPE.AuthenticatedRead; pub const StorRpmbReadResultRequest = STORAGE_RPMB_COMMAND_TYPE.ReadResultRequest; pub const StorRpmbAuthenticatedDeviceConfigWrite = STORAGE_RPMB_COMMAND_TYPE.AuthenticatedDeviceConfigWrite; pub const StorRpmbAuthenticatedDeviceConfigRead = STORAGE_RPMB_COMMAND_TYPE.AuthenticatedDeviceConfigRead; pub const STORAGE_EVENT_NOTIFICATION = extern struct { Version: u32, Size: u32, Events: u64, }; pub const STORAGE_COUNTER_TYPE = enum(i32) { Unknown = 0, TemperatureCelsius = 1, TemperatureCelsiusMax = 2, ReadErrorsTotal = 3, ReadErrorsCorrected = 4, ReadErrorsUncorrected = 5, WriteErrorsTotal = 6, WriteErrorsCorrected = 7, WriteErrorsUncorrected = 8, ManufactureDate = 9, StartStopCycleCount = 10, StartStopCycleCountMax = 11, LoadUnloadCycleCount = 12, LoadUnloadCycleCountMax = 13, WearPercentage = 14, WearPercentageWarning = 15, WearPercentageMax = 16, PowerOnHours = 17, ReadLatency100NSMax = 18, WriteLatency100NSMax = 19, FlushLatency100NSMax = 20, Max = 21, }; pub const StorageCounterTypeUnknown = STORAGE_COUNTER_TYPE.Unknown; pub const StorageCounterTypeTemperatureCelsius = STORAGE_COUNTER_TYPE.TemperatureCelsius; pub const StorageCounterTypeTemperatureCelsiusMax = STORAGE_COUNTER_TYPE.TemperatureCelsiusMax; pub const StorageCounterTypeReadErrorsTotal = STORAGE_COUNTER_TYPE.ReadErrorsTotal; pub const StorageCounterTypeReadErrorsCorrected = STORAGE_COUNTER_TYPE.ReadErrorsCorrected; pub const StorageCounterTypeReadErrorsUncorrected = STORAGE_COUNTER_TYPE.ReadErrorsUncorrected; pub const StorageCounterTypeWriteErrorsTotal = STORAGE_COUNTER_TYPE.WriteErrorsTotal; pub const StorageCounterTypeWriteErrorsCorrected = STORAGE_COUNTER_TYPE.WriteErrorsCorrected; pub const StorageCounterTypeWriteErrorsUncorrected = STORAGE_COUNTER_TYPE.WriteErrorsUncorrected; pub const StorageCounterTypeManufactureDate = STORAGE_COUNTER_TYPE.ManufactureDate; pub const StorageCounterTypeStartStopCycleCount = STORAGE_COUNTER_TYPE.StartStopCycleCount; pub const StorageCounterTypeStartStopCycleCountMax = STORAGE_COUNTER_TYPE.StartStopCycleCountMax; pub const StorageCounterTypeLoadUnloadCycleCount = STORAGE_COUNTER_TYPE.LoadUnloadCycleCount; pub const StorageCounterTypeLoadUnloadCycleCountMax = STORAGE_COUNTER_TYPE.LoadUnloadCycleCountMax; pub const StorageCounterTypeWearPercentage = STORAGE_COUNTER_TYPE.WearPercentage; pub const StorageCounterTypeWearPercentageWarning = STORAGE_COUNTER_TYPE.WearPercentageWarning; pub const StorageCounterTypeWearPercentageMax = STORAGE_COUNTER_TYPE.WearPercentageMax; pub const StorageCounterTypePowerOnHours = STORAGE_COUNTER_TYPE.PowerOnHours; pub const StorageCounterTypeReadLatency100NSMax = STORAGE_COUNTER_TYPE.ReadLatency100NSMax; pub const StorageCounterTypeWriteLatency100NSMax = STORAGE_COUNTER_TYPE.WriteLatency100NSMax; pub const StorageCounterTypeFlushLatency100NSMax = STORAGE_COUNTER_TYPE.FlushLatency100NSMax; pub const StorageCounterTypeMax = STORAGE_COUNTER_TYPE.Max; pub const STORAGE_COUNTER = extern struct { Type: STORAGE_COUNTER_TYPE, Value: extern union { ManufactureDate: extern struct { Week: u32, Year: u32, }, AsUlonglong: u64, }, }; pub const STORAGE_COUNTERS = extern struct { Version: u32, Size: u32, NumberOfCounters: u32, Counters: [1]STORAGE_COUNTER, }; pub const STORAGE_HW_FIRMWARE_INFO_QUERY = extern struct { Version: u32, Size: u32, Flags: u32, Reserved: u32, }; pub const STORAGE_HW_FIRMWARE_SLOT_INFO = extern struct { Version: u32, Size: u32, SlotNumber: u8, _bitfield: u8, Reserved1: [6]u8, Revision: [16]u8, }; pub const STORAGE_HW_FIRMWARE_INFO = extern struct { Version: u32, Size: u32, _bitfield: u8, SlotCount: u8, ActiveSlot: u8, PendingActivateSlot: u8, FirmwareShared: BOOLEAN, Reserved: [3]u8, ImagePayloadAlignment: u32, ImagePayloadMaxSize: u32, Slot: [1]STORAGE_HW_FIRMWARE_SLOT_INFO, }; pub const STORAGE_HW_FIRMWARE_DOWNLOAD = extern struct { Version: u32, Size: u32, Flags: u32, Slot: u8, Reserved: [3]u8, Offset: u64, BufferSize: u64, ImageBuffer: [1]u8, }; pub const STORAGE_HW_FIRMWARE_DOWNLOAD_V2 = extern struct { Version: u32, Size: u32, Flags: u32, Slot: u8, Reserved: [3]u8, Offset: u64, BufferSize: u64, ImageSize: u32, Reserved2: u32, ImageBuffer: [1]u8, }; pub const STORAGE_HW_FIRMWARE_ACTIVATE = extern struct { Version: u32, Size: u32, Flags: u32, Slot: u8, Reserved0: [3]u8, }; pub const STORAGE_PROTOCOL_COMMAND = extern struct { Version: u32, Length: u32, ProtocolType: STORAGE_PROTOCOL_TYPE, Flags: u32, ReturnStatus: u32, ErrorCode: u32, CommandLength: u32, ErrorInfoLength: u32, DataToDeviceTransferLength: u32, DataFromDeviceTransferLength: u32, TimeOutValue: u32, ErrorInfoOffset: u32, DataToDeviceBufferOffset: u32, DataFromDeviceBufferOffset: u32, CommandSpecific: u32, Reserved0: u32, FixedProtocolReturnData: u32, Reserved1: [3]u32, Command: [1]u8, }; pub const STORAGE_ATTRIBUTE_MGMT_ACTION = enum(i32) { ClearAttribute = 0, SetAttribute = 1, ResetAttribute = 2, }; pub const StorAttributeMgmt_ClearAttribute = STORAGE_ATTRIBUTE_MGMT_ACTION.ClearAttribute; pub const StorAttributeMgmt_SetAttribute = STORAGE_ATTRIBUTE_MGMT_ACTION.SetAttribute; pub const StorAttributeMgmt_ResetAttribute = STORAGE_ATTRIBUTE_MGMT_ACTION.ResetAttribute; pub const STORAGE_ATTRIBUTE_MGMT = extern struct { Version: u32, Size: u32, Action: STORAGE_ATTRIBUTE_MGMT_ACTION, Attribute: u32, }; pub const SCM_PD_HEALTH_NOTIFICATION_DATA = extern struct { DeviceGuid: Guid, }; pub const SCM_LOGICAL_DEVICE_INSTANCE = extern struct { Version: u32, Size: u32, DeviceGuid: Guid, SymbolicLink: [256]u16, }; pub const SCM_LOGICAL_DEVICES = extern struct { Version: u32, Size: u32, DeviceCount: u32, Devices: [1]SCM_LOGICAL_DEVICE_INSTANCE, }; pub const SCM_PHYSICAL_DEVICE_INSTANCE = extern struct { Version: u32, Size: u32, NfitHandle: u32, SymbolicLink: [256]u16, }; pub const SCM_PHYSICAL_DEVICES = extern struct { Version: u32, Size: u32, DeviceCount: u32, Devices: [1]SCM_PHYSICAL_DEVICE_INSTANCE, }; pub const SCM_REGION_FLAG = enum(i32) { None = 0, Label = 1, }; pub const ScmRegionFlagNone = SCM_REGION_FLAG.None; pub const ScmRegionFlagLabel = SCM_REGION_FLAG.Label; pub const SCM_REGION = extern struct { Version: u32, Size: u32, Flags: u32, NfitHandle: u32, LogicalDeviceGuid: Guid, AddressRangeType: Guid, AssociatedId: u32, Length: u64, StartingDPA: u64, BaseSPA: u64, SPAOffset: u64, RegionOffset: u64, }; pub const SCM_REGIONS = extern struct { Version: u32, Size: u32, RegionCount: u32, Regions: [1]SCM_REGION, }; pub const SCM_BUS_QUERY_TYPE = enum(i32) { Descriptor = 0, IsSupported = 1, Max = 2, }; pub const ScmBusQuery_Descriptor = SCM_BUS_QUERY_TYPE.Descriptor; pub const ScmBusQuery_IsSupported = SCM_BUS_QUERY_TYPE.IsSupported; pub const ScmBusQuery_Max = SCM_BUS_QUERY_TYPE.Max; pub const SCM_BUS_SET_TYPE = enum(i32) { Descriptor = 0, IsSupported = 1, Max = 2, }; pub const ScmBusSet_Descriptor = SCM_BUS_SET_TYPE.Descriptor; pub const ScmBusSet_IsSupported = SCM_BUS_SET_TYPE.IsSupported; pub const ScmBusSet_Max = SCM_BUS_SET_TYPE.Max; pub const SCM_BUS_PROPERTY_ID = enum(i32) { RuntimeFwActivationInfo = 0, DedicatedMemoryInfo = 1, DedicatedMemoryState = 2, Max = 3, }; pub const ScmBusProperty_RuntimeFwActivationInfo = SCM_BUS_PROPERTY_ID.RuntimeFwActivationInfo; pub const ScmBusProperty_DedicatedMemoryInfo = SCM_BUS_PROPERTY_ID.DedicatedMemoryInfo; pub const ScmBusProperty_DedicatedMemoryState = SCM_BUS_PROPERTY_ID.DedicatedMemoryState; pub const ScmBusProperty_Max = SCM_BUS_PROPERTY_ID.Max; pub const SCM_BUS_PROPERTY_QUERY = extern struct { Version: u32, Size: u32, PropertyId: SCM_BUS_PROPERTY_ID, QueryType: SCM_BUS_QUERY_TYPE, AdditionalParameters: [1]u8, }; pub const SCM_BUS_FIRMWARE_ACTIVATION_STATE = enum(i32) { Idle = 0, Armed = 1, Busy = 2, }; pub const ScmBusFirmwareActivationState_Idle = SCM_BUS_FIRMWARE_ACTIVATION_STATE.Idle; pub const ScmBusFirmwareActivationState_Armed = SCM_BUS_FIRMWARE_ACTIVATION_STATE.Armed; pub const ScmBusFirmwareActivationState_Busy = SCM_BUS_FIRMWARE_ACTIVATION_STATE.Busy; pub const SCM_BUS_RUNTIME_FW_ACTIVATION_INFO = extern struct { Version: u32, Size: u32, RuntimeFwActivationSupported: BOOLEAN, FirmwareActivationState: SCM_BUS_FIRMWARE_ACTIVATION_STATE, FirmwareActivationCapability: extern struct { _bitfield: u32, }, EstimatedFirmwareActivationTimeInUSecs: u64, EstimatedProcessorAccessQuiesceTimeInUSecs: u64, EstimatedIOAccessQuiesceTimeInUSecs: u64, PlatformSupportedMaxIOAccessQuiesceTimeInUSecs: u64, }; pub const SCM_BUS_DEDICATED_MEMORY_DEVICE_INFO = extern struct { DeviceGuid: Guid, DeviceNumber: u32, Flags: extern struct { _bitfield: u32, }, DeviceSize: u64, }; pub const SCM_BUS_DEDICATED_MEMORY_DEVICES_INFO = extern struct { Version: u32, Size: u32, DeviceCount: u32, Devices: [1]SCM_BUS_DEDICATED_MEMORY_DEVICE_INFO, }; pub const SCM_BUS_PROPERTY_SET = extern struct { Version: u32, Size: u32, PropertyId: SCM_BUS_PROPERTY_ID, SetType: SCM_BUS_SET_TYPE, AdditionalParameters: [1]u8, }; pub const SCM_BUS_DEDICATED_MEMORY_STATE = extern struct { ActivateState: BOOLEAN, }; pub const SCM_INTERLEAVED_PD_INFO = extern struct { DeviceHandle: u32, DeviceGuid: Guid, }; pub const SCM_LD_INTERLEAVE_SET_INFO = extern struct { Version: u32, Size: u32, InterleaveSetSize: u32, InterleaveSet: [1]SCM_INTERLEAVED_PD_INFO, }; pub const SCM_PD_QUERY_TYPE = enum(i32) { Descriptor = 0, IsSupported = 1, Max = 2, }; pub const ScmPhysicalDeviceQuery_Descriptor = SCM_PD_QUERY_TYPE.Descriptor; pub const ScmPhysicalDeviceQuery_IsSupported = SCM_PD_QUERY_TYPE.IsSupported; pub const ScmPhysicalDeviceQuery_Max = SCM_PD_QUERY_TYPE.Max; pub const SCM_PD_SET_TYPE = enum(i32) { Descriptor = 0, IsSupported = 1, Max = 2, }; pub const ScmPhysicalDeviceSet_Descriptor = SCM_PD_SET_TYPE.Descriptor; pub const ScmPhysicalDeviceSet_IsSupported = SCM_PD_SET_TYPE.IsSupported; pub const ScmPhysicalDeviceSet_Max = SCM_PD_SET_TYPE.Max; pub const SCM_PD_PROPERTY_ID = enum(i32) { DeviceInfo = 0, ManagementStatus = 1, FirmwareInfo = 2, LocationString = 3, DeviceSpecificInfo = 4, DeviceHandle = 5, FruIdString = 6, RuntimeFwActivationInfo = 7, RuntimeFwActivationArmState = 8, Max = 9, }; pub const ScmPhysicalDeviceProperty_DeviceInfo = SCM_PD_PROPERTY_ID.DeviceInfo; pub const ScmPhysicalDeviceProperty_ManagementStatus = SCM_PD_PROPERTY_ID.ManagementStatus; pub const ScmPhysicalDeviceProperty_FirmwareInfo = SCM_PD_PROPERTY_ID.FirmwareInfo; pub const ScmPhysicalDeviceProperty_LocationString = SCM_PD_PROPERTY_ID.LocationString; pub const ScmPhysicalDeviceProperty_DeviceSpecificInfo = SCM_PD_PROPERTY_ID.DeviceSpecificInfo; pub const ScmPhysicalDeviceProperty_DeviceHandle = SCM_PD_PROPERTY_ID.DeviceHandle; pub const ScmPhysicalDeviceProperty_FruIdString = SCM_PD_PROPERTY_ID.FruIdString; pub const ScmPhysicalDeviceProperty_RuntimeFwActivationInfo = SCM_PD_PROPERTY_ID.RuntimeFwActivationInfo; pub const ScmPhysicalDeviceProperty_RuntimeFwActivationArmState = SCM_PD_PROPERTY_ID.RuntimeFwActivationArmState; pub const ScmPhysicalDeviceProperty_Max = SCM_PD_PROPERTY_ID.Max; pub const SCM_PD_PROPERTY_QUERY = extern struct { Version: u32, Size: u32, PropertyId: SCM_PD_PROPERTY_ID, QueryType: SCM_PD_QUERY_TYPE, AdditionalParameters: [1]u8, }; pub const SCM_PD_PROPERTY_SET = extern struct { Version: u32, Size: u32, PropertyId: SCM_PD_PROPERTY_ID, SetType: SCM_PD_SET_TYPE, AdditionalParameters: [1]u8, }; pub const SCM_PD_RUNTIME_FW_ACTIVATION_ARM_STATE = extern struct { ArmState: BOOLEAN, }; pub const SCM_PD_DESCRIPTOR_HEADER = extern struct { Version: u32, Size: u32, }; pub const SCM_PD_DEVICE_HANDLE = extern struct { Version: u32, Size: u32, DeviceGuid: Guid, DeviceHandle: u32, }; pub const SCM_PD_DEVICE_INFO = extern struct { Version: u32, Size: u32, DeviceGuid: Guid, UnsafeShutdownCount: u32, PersistentMemorySizeInBytes: u64, VolatileMemorySizeInBytes: u64, TotalMemorySizeInBytes: u64, SlotNumber: u32, DeviceHandle: u32, PhysicalId: u16, NumberOfFormatInterfaceCodes: u8, FormatInterfaceCodes: [8]u16, VendorId: u32, ProductId: u32, SubsystemDeviceId: u32, SubsystemVendorId: u32, ManufacturingLocation: u8, ManufacturingWeek: u8, ManufacturingYear: u8, SerialNumber4Byte: u32, SerialNumberLengthInChars: u32, SerialNumber: [1]CHAR, }; pub const SCM_PD_DEVICE_SPECIFIC_PROPERTY = extern struct { Name: [128]u16, Value: i64, }; pub const SCM_PD_DEVICE_SPECIFIC_INFO = extern struct { Version: u32, Size: u32, NumberOfProperties: u32, DeviceSpecificProperties: [1]SCM_PD_DEVICE_SPECIFIC_PROPERTY, }; pub const SCM_PD_FIRMWARE_SLOT_INFO = extern struct { Version: u32, Size: u32, SlotNumber: u8, _bitfield: u8, Reserved1: [6]u8, Revision: [32]u8, }; pub const SCM_PD_FIRMWARE_INFO = extern struct { Version: u32, Size: u32, ActiveSlot: u8, NextActiveSlot: u8, SlotCount: u8, Slots: [1]SCM_PD_FIRMWARE_SLOT_INFO, }; pub const SCM_PD_HEALTH_STATUS = enum(i32) { Unknown = 0, Unhealthy = 1, Warning = 2, Healthy = 3, Max = 4, }; pub const ScmPhysicalDeviceHealth_Unknown = SCM_PD_HEALTH_STATUS.Unknown; pub const ScmPhysicalDeviceHealth_Unhealthy = SCM_PD_HEALTH_STATUS.Unhealthy; pub const ScmPhysicalDeviceHealth_Warning = SCM_PD_HEALTH_STATUS.Warning; pub const ScmPhysicalDeviceHealth_Healthy = SCM_PD_HEALTH_STATUS.Healthy; pub const ScmPhysicalDeviceHealth_Max = SCM_PD_HEALTH_STATUS.Max; pub const SCM_PD_OPERATIONAL_STATUS = enum(i32) { Unknown = 0, Ok = 1, PredictingFailure = 2, InService = 3, HardwareError = 4, NotUsable = 5, TransientError = 6, Missing = 7, Max = 8, }; pub const ScmPhysicalDeviceOpStatus_Unknown = SCM_PD_OPERATIONAL_STATUS.Unknown; pub const ScmPhysicalDeviceOpStatus_Ok = SCM_PD_OPERATIONAL_STATUS.Ok; pub const ScmPhysicalDeviceOpStatus_PredictingFailure = SCM_PD_OPERATIONAL_STATUS.PredictingFailure; pub const ScmPhysicalDeviceOpStatus_InService = SCM_PD_OPERATIONAL_STATUS.InService; pub const ScmPhysicalDeviceOpStatus_HardwareError = SCM_PD_OPERATIONAL_STATUS.HardwareError; pub const ScmPhysicalDeviceOpStatus_NotUsable = SCM_PD_OPERATIONAL_STATUS.NotUsable; pub const ScmPhysicalDeviceOpStatus_TransientError = SCM_PD_OPERATIONAL_STATUS.TransientError; pub const ScmPhysicalDeviceOpStatus_Missing = SCM_PD_OPERATIONAL_STATUS.Missing; pub const ScmPhysicalDeviceOpStatus_Max = SCM_PD_OPERATIONAL_STATUS.Max; pub const SCM_PD_OPERATIONAL_STATUS_REASON = enum(i32) { Unknown = 0, Media = 1, ThresholdExceeded = 2, LostData = 3, EnergySource = 4, Configuration = 5, DeviceController = 6, MediaController = 7, Component = 8, BackgroundOperation = 9, InvalidFirmware = 10, HealthCheck = 11, LostDataPersistence = 12, DisabledByPlatform = 13, PermanentError = 14, LostWritePersistence = 15, FatalError = 16, DataPersistenceLossImminent = 17, WritePersistenceLossImminent = 18, MediaRemainingSpareBlock = 19, PerformanceDegradation = 20, ExcessiveTemperature = 21, InternalFailure = 22, Max = 23, }; pub const ScmPhysicalDeviceOpReason_Unknown = SCM_PD_OPERATIONAL_STATUS_REASON.Unknown; pub const ScmPhysicalDeviceOpReason_Media = SCM_PD_OPERATIONAL_STATUS_REASON.Media; pub const ScmPhysicalDeviceOpReason_ThresholdExceeded = SCM_PD_OPERATIONAL_STATUS_REASON.ThresholdExceeded; pub const ScmPhysicalDeviceOpReason_LostData = SCM_PD_OPERATIONAL_STATUS_REASON.LostData; pub const ScmPhysicalDeviceOpReason_EnergySource = SCM_PD_OPERATIONAL_STATUS_REASON.EnergySource; pub const ScmPhysicalDeviceOpReason_Configuration = SCM_PD_OPERATIONAL_STATUS_REASON.Configuration; pub const ScmPhysicalDeviceOpReason_DeviceController = SCM_PD_OPERATIONAL_STATUS_REASON.DeviceController; pub const ScmPhysicalDeviceOpReason_MediaController = SCM_PD_OPERATIONAL_STATUS_REASON.MediaController; pub const ScmPhysicalDeviceOpReason_Component = SCM_PD_OPERATIONAL_STATUS_REASON.Component; pub const ScmPhysicalDeviceOpReason_BackgroundOperation = SCM_PD_OPERATIONAL_STATUS_REASON.BackgroundOperation; pub const ScmPhysicalDeviceOpReason_InvalidFirmware = SCM_PD_OPERATIONAL_STATUS_REASON.InvalidFirmware; pub const ScmPhysicalDeviceOpReason_HealthCheck = SCM_PD_OPERATIONAL_STATUS_REASON.HealthCheck; pub const ScmPhysicalDeviceOpReason_LostDataPersistence = SCM_PD_OPERATIONAL_STATUS_REASON.LostDataPersistence; pub const ScmPhysicalDeviceOpReason_DisabledByPlatform = SCM_PD_OPERATIONAL_STATUS_REASON.DisabledByPlatform; pub const ScmPhysicalDeviceOpReason_PermanentError = SCM_PD_OPERATIONAL_STATUS_REASON.PermanentError; pub const ScmPhysicalDeviceOpReason_LostWritePersistence = SCM_PD_OPERATIONAL_STATUS_REASON.LostWritePersistence; pub const ScmPhysicalDeviceOpReason_FatalError = SCM_PD_OPERATIONAL_STATUS_REASON.FatalError; pub const ScmPhysicalDeviceOpReason_DataPersistenceLossImminent = SCM_PD_OPERATIONAL_STATUS_REASON.DataPersistenceLossImminent; pub const ScmPhysicalDeviceOpReason_WritePersistenceLossImminent = SCM_PD_OPERATIONAL_STATUS_REASON.WritePersistenceLossImminent; pub const ScmPhysicalDeviceOpReason_MediaRemainingSpareBlock = SCM_PD_OPERATIONAL_STATUS_REASON.MediaRemainingSpareBlock; pub const ScmPhysicalDeviceOpReason_PerformanceDegradation = SCM_PD_OPERATIONAL_STATUS_REASON.PerformanceDegradation; pub const ScmPhysicalDeviceOpReason_ExcessiveTemperature = SCM_PD_OPERATIONAL_STATUS_REASON.ExcessiveTemperature; pub const ScmPhysicalDeviceOpReason_InternalFailure = SCM_PD_OPERATIONAL_STATUS_REASON.InternalFailure; pub const ScmPhysicalDeviceOpReason_Max = SCM_PD_OPERATIONAL_STATUS_REASON.Max; pub const SCM_PD_MANAGEMENT_STATUS = extern struct { Version: u32, Size: u32, Health: SCM_PD_HEALTH_STATUS, NumberOfOperationalStatus: u32, NumberOfAdditionalReasons: u32, OperationalStatus: [16]SCM_PD_OPERATIONAL_STATUS, AdditionalReasons: [1]SCM_PD_OPERATIONAL_STATUS_REASON, }; pub const SCM_PD_LOCATION_STRING = extern struct { Version: u32, Size: u32, Location: [1]u16, }; pub const SCM_PD_FRU_ID_STRING = extern struct { Version: u32, Size: u32, IdentifierSize: u32, Identifier: [1]u8, }; pub const SCM_PD_FIRMWARE_DOWNLOAD = extern struct { Version: u32, Size: u32, Flags: u32, Slot: u8, Reserved: [3]u8, Offset: u64, FirmwareImageSizeInBytes: u32, FirmwareImage: [1]u8, }; pub const SCM_PD_FIRMWARE_ACTIVATE = extern struct { Version: u32, Size: u32, Flags: u32, Slot: u8, }; pub const SCM_PD_LAST_FW_ACTIVATION_STATUS = enum(i32) { tionStatus_None = 0, tionStatus_Success = 1, tionStatus_FwNotFound = 2, tionStatus_ColdRebootRequired = 3, itonStatus_ActivationInProgress = 4, itonStatus_Retry = 5, itonStatus_FwUnsupported = 6, itonStatus_UnknownError = 7, }; pub const ScmPdLastFwActivationStatus_None = SCM_PD_LAST_FW_ACTIVATION_STATUS.tionStatus_None; pub const ScmPdLastFwActivationStatus_Success = SCM_PD_LAST_FW_ACTIVATION_STATUS.tionStatus_Success; pub const ScmPdLastFwActivationStatus_FwNotFound = SCM_PD_LAST_FW_ACTIVATION_STATUS.tionStatus_FwNotFound; pub const ScmPdLastFwActivationStatus_ColdRebootRequired = SCM_PD_LAST_FW_ACTIVATION_STATUS.tionStatus_ColdRebootRequired; pub const ScmPdLastFwActivaitonStatus_ActivationInProgress = SCM_PD_LAST_FW_ACTIVATION_STATUS.itonStatus_ActivationInProgress; pub const ScmPdLastFwActivaitonStatus_Retry = SCM_PD_LAST_FW_ACTIVATION_STATUS.itonStatus_Retry; pub const ScmPdLastFwActivaitonStatus_FwUnsupported = SCM_PD_LAST_FW_ACTIVATION_STATUS.itonStatus_FwUnsupported; pub const ScmPdLastFwActivaitonStatus_UnknownError = SCM_PD_LAST_FW_ACTIVATION_STATUS.itonStatus_UnknownError; pub const SCM_PD_FIRMWARE_ACTIVATION_STATE = enum(i32) { Idle = 0, Armed = 1, Busy = 2, }; pub const ScmPdFirmwareActivationState_Idle = SCM_PD_FIRMWARE_ACTIVATION_STATE.Idle; pub const ScmPdFirmwareActivationState_Armed = SCM_PD_FIRMWARE_ACTIVATION_STATE.Armed; pub const ScmPdFirmwareActivationState_Busy = SCM_PD_FIRMWARE_ACTIVATION_STATE.Busy; pub const SCM_PD_RUNTIME_FW_ACTIVATION_INFO = extern struct { Version: u32, Size: u32, LastFirmwareActivationStatus: SCM_PD_LAST_FW_ACTIVATION_STATUS, FirmwareActivationState: SCM_PD_FIRMWARE_ACTIVATION_STATE, }; pub const SCM_PD_PASSTHROUGH_INPUT = extern struct { Version: u32, Size: u32, ProtocolGuid: Guid, DataSize: u32, Data: [1]u8, }; pub const SCM_PD_PASSTHROUGH_OUTPUT = extern struct { Version: u32, Size: u32, ProtocolGuid: Guid, DataSize: u32, Data: [1]u8, }; pub const SCM_PD_PASSTHROUGH_INVDIMM_INPUT = extern struct { Opcode: u32, OpcodeParametersLength: u32, OpcodeParameters: [1]u8, }; pub const SCM_PD_PASSTHROUGH_INVDIMM_OUTPUT = extern struct { GeneralStatus: u16, ExtendedStatus: u16, OutputDataLength: u32, OutputData: [1]u8, }; pub const SCM_PD_REINITIALIZE_MEDIA_INPUT = extern struct { Version: u32, Size: u32, Options: extern struct { _bitfield: u32, }, }; pub const SCM_PD_MEDIA_REINITIALIZATION_STATUS = enum(i32) { Success = 0, RebootNeeded = 1, ColdBootNeeded = 2, Max = 3, }; pub const ScmPhysicalDeviceReinit_Success = SCM_PD_MEDIA_REINITIALIZATION_STATUS.Success; pub const ScmPhysicalDeviceReinit_RebootNeeded = SCM_PD_MEDIA_REINITIALIZATION_STATUS.RebootNeeded; pub const ScmPhysicalDeviceReinit_ColdBootNeeded = SCM_PD_MEDIA_REINITIALIZATION_STATUS.ColdBootNeeded; pub const ScmPhysicalDeviceReinit_Max = SCM_PD_MEDIA_REINITIALIZATION_STATUS.Max; pub const SCM_PD_REINITIALIZE_MEDIA_OUTPUT = extern struct { Version: u32, Size: u32, Status: SCM_PD_MEDIA_REINITIALIZATION_STATUS, }; pub const MEDIA_TYPE = enum(i32) { Unknown = 0, F5_1Pt2_512 = 1, F3_1Pt44_512 = 2, F3_2Pt88_512 = 3, F3_20Pt8_512 = 4, F3_720_512 = 5, F5_360_512 = 6, F5_320_512 = 7, F5_320_1024 = 8, F5_180_512 = 9, F5_160_512 = 10, RemovableMedia = 11, FixedMedia = 12, F3_120M_512 = 13, F3_640_512 = 14, F5_640_512 = 15, F5_720_512 = 16, F3_1Pt2_512 = 17, F3_1Pt23_1024 = 18, F5_1Pt23_1024 = 19, F3_128Mb_512 = 20, F3_230Mb_512 = 21, F8_256_128 = 22, F3_200Mb_512 = 23, F3_240M_512 = 24, F3_32M_512 = 25, }; pub const Unknown = MEDIA_TYPE.Unknown; pub const F5_1Pt2_512 = MEDIA_TYPE.F5_1Pt2_512; pub const F3_1Pt44_512 = MEDIA_TYPE.F3_1Pt44_512; pub const F3_2Pt88_512 = MEDIA_TYPE.F3_2Pt88_512; pub const F3_20Pt8_512 = MEDIA_TYPE.F3_20Pt8_512; pub const F3_720_512 = MEDIA_TYPE.F3_720_512; pub const F5_360_512 = MEDIA_TYPE.F5_360_512; pub const F5_320_512 = MEDIA_TYPE.F5_320_512; pub const F5_320_1024 = MEDIA_TYPE.F5_320_1024; pub const F5_180_512 = MEDIA_TYPE.F5_180_512; pub const F5_160_512 = MEDIA_TYPE.F5_160_512; pub const RemovableMedia = MEDIA_TYPE.RemovableMedia; pub const FixedMedia = MEDIA_TYPE.FixedMedia; pub const F3_120M_512 = MEDIA_TYPE.F3_120M_512; pub const F3_640_512 = MEDIA_TYPE.F3_640_512; pub const F5_640_512 = MEDIA_TYPE.F5_640_512; pub const F5_720_512 = MEDIA_TYPE.F5_720_512; pub const F3_1Pt2_512 = MEDIA_TYPE.F3_1Pt2_512; pub const F3_1Pt23_1024 = MEDIA_TYPE.F3_1Pt23_1024; pub const F5_1Pt23_1024 = MEDIA_TYPE.F5_1Pt23_1024; pub const F3_128Mb_512 = MEDIA_TYPE.F3_128Mb_512; pub const F3_230Mb_512 = MEDIA_TYPE.F3_230Mb_512; pub const F8_256_128 = MEDIA_TYPE.F8_256_128; pub const F3_200Mb_512 = MEDIA_TYPE.F3_200Mb_512; pub const F3_240M_512 = MEDIA_TYPE.F3_240M_512; pub const F3_32M_512 = MEDIA_TYPE.F3_32M_512; pub const FORMAT_PARAMETERS = extern struct { MediaType: MEDIA_TYPE, StartCylinderNumber: u32, EndCylinderNumber: u32, StartHeadNumber: u32, EndHeadNumber: u32, }; pub const FORMAT_EX_PARAMETERS = extern struct { MediaType: MEDIA_TYPE, StartCylinderNumber: u32, EndCylinderNumber: u32, StartHeadNumber: u32, EndHeadNumber: u32, FormatGapLength: u16, SectorsPerTrack: u16, SectorNumber: [1]u16, }; pub const DISK_GEOMETRY = extern struct { Cylinders: LARGE_INTEGER, MediaType: MEDIA_TYPE, TracksPerCylinder: u32, SectorsPerTrack: u32, BytesPerSector: u32, }; pub const PARTITION_INFORMATION = extern struct { StartingOffset: LARGE_INTEGER, PartitionLength: LARGE_INTEGER, HiddenSectors: u32, PartitionNumber: u32, PartitionType: u8, BootIndicator: BOOLEAN, RecognizedPartition: BOOLEAN, RewritePartition: BOOLEAN, }; pub const SET_PARTITION_INFORMATION = extern struct { PartitionType: u8, }; pub const DRIVE_LAYOUT_INFORMATION = extern struct { PartitionCount: u32, Signature: u32, PartitionEntry: [1]PARTITION_INFORMATION, }; pub const VERIFY_INFORMATION = extern struct { StartingOffset: LARGE_INTEGER, Length: u32, }; pub const REASSIGN_BLOCKS = extern struct { Reserved: u16, Count: u16, BlockNumber: [1]u32, }; pub const REASSIGN_BLOCKS_EX = extern struct { Reserved: u16 align(1), Count: u16 align(1), BlockNumber: [1]LARGE_INTEGER align(1), }; pub const PARTITION_STYLE = enum(i32) { MBR = 0, GPT = 1, RAW = 2, }; pub const PARTITION_STYLE_MBR = PARTITION_STYLE.MBR; pub const PARTITION_STYLE_GPT = PARTITION_STYLE.GPT; pub const PARTITION_STYLE_RAW = PARTITION_STYLE.RAW; pub const PARTITION_INFORMATION_GPT = extern struct { PartitionType: Guid, PartitionId: Guid, Attributes: GPT_ATTRIBUTES, Name: [36]u16, }; pub const PARTITION_INFORMATION_MBR = extern struct { PartitionType: u8, BootIndicator: BOOLEAN, RecognizedPartition: BOOLEAN, HiddenSectors: u32, PartitionId: Guid, }; pub const SET_PARTITION_INFORMATION_EX = extern struct { PartitionStyle: PARTITION_STYLE, Anonymous: extern union { Mbr: SET_PARTITION_INFORMATION, Gpt: PARTITION_INFORMATION_GPT, }, }; pub const CREATE_DISK_GPT = extern struct { DiskId: Guid, MaxPartitionCount: u32, }; pub const CREATE_DISK_MBR = extern struct { Signature: u32, }; pub const CREATE_DISK = extern struct { PartitionStyle: PARTITION_STYLE, Anonymous: extern union { Mbr: CREATE_DISK_MBR, Gpt: CREATE_DISK_GPT, }, }; pub const GET_LENGTH_INFORMATION = extern struct { Length: LARGE_INTEGER, }; pub const PARTITION_INFORMATION_EX = extern struct { PartitionStyle: PARTITION_STYLE, StartingOffset: LARGE_INTEGER, PartitionLength: LARGE_INTEGER, PartitionNumber: u32, RewritePartition: BOOLEAN, IsServicePartition: BOOLEAN, Anonymous: extern union { Mbr: PARTITION_INFORMATION_MBR, Gpt: PARTITION_INFORMATION_GPT, }, }; pub const DRIVE_LAYOUT_INFORMATION_GPT = extern struct { DiskId: Guid, StartingUsableOffset: LARGE_INTEGER, UsableLength: LARGE_INTEGER, MaxPartitionCount: u32, }; pub const DRIVE_LAYOUT_INFORMATION_MBR = extern struct { Signature: u32, CheckSum: u32, }; pub const DRIVE_LAYOUT_INFORMATION_EX = extern struct { PartitionStyle: u32, PartitionCount: u32, Anonymous: extern union { Mbr: DRIVE_LAYOUT_INFORMATION_MBR, Gpt: DRIVE_LAYOUT_INFORMATION_GPT, }, PartitionEntry: [1]PARTITION_INFORMATION_EX, }; pub const DETECTION_TYPE = enum(i32) { None = 0, Int13 = 1, ExInt13 = 2, }; pub const DetectNone = DETECTION_TYPE.None; pub const DetectInt13 = DETECTION_TYPE.Int13; pub const DetectExInt13 = DETECTION_TYPE.ExInt13; pub const DISK_INT13_INFO = extern struct { DriveSelect: u16, MaxCylinders: u32, SectorsPerTrack: u16, MaxHeads: u16, NumberDrives: u16, }; pub const DISK_EX_INT13_INFO = extern struct { ExBufferSize: u16, ExFlags: u16, ExCylinders: u32, ExHeads: u32, ExSectorsPerTrack: u32, ExSectorsPerDrive: u64, ExSectorSize: u16, ExReserved: u16, }; pub const DISK_DETECTION_INFO = extern struct { SizeOfDetectInfo: u32, DetectionType: DETECTION_TYPE, Anonymous: extern union { Anonymous: extern struct { Int13: DISK_INT13_INFO, ExInt13: DISK_EX_INT13_INFO, }, }, }; pub const DISK_PARTITION_INFO = extern struct { SizeOfPartitionInfo: u32, PartitionStyle: PARTITION_STYLE, Anonymous: extern union { Mbr: extern struct { Signature: u32, CheckSum: u32, }, Gpt: extern struct { DiskId: Guid, }, }, }; pub const DISK_GEOMETRY_EX = extern struct { Geometry: DISK_GEOMETRY, DiskSize: LARGE_INTEGER, Data: [1]u8, }; pub const DISK_CONTROLLER_NUMBER = extern struct { ControllerNumber: u32, DiskNumber: u32, }; pub const DISK_CACHE_RETENTION_PRIORITY = enum(i32) { EqualPriority = 0, KeepPrefetchedData = 1, KeepReadData = 2, }; pub const EqualPriority = DISK_CACHE_RETENTION_PRIORITY.EqualPriority; pub const KeepPrefetchedData = DISK_CACHE_RETENTION_PRIORITY.KeepPrefetchedData; pub const KeepReadData = DISK_CACHE_RETENTION_PRIORITY.KeepReadData; pub const DISK_CACHE_INFORMATION = extern struct { ParametersSavable: BOOLEAN, ReadCacheEnabled: BOOLEAN, WriteCacheEnabled: BOOLEAN, ReadRetentionPriority: DISK_CACHE_RETENTION_PRIORITY, WriteRetentionPriority: DISK_CACHE_RETENTION_PRIORITY, DisablePrefetchTransferLength: u16, PrefetchScalar: BOOLEAN, Anonymous: extern union { ScalarPrefetch: extern struct { Minimum: u16, Maximum: u16, MaximumBlocks: u16, }, BlockPrefetch: extern struct { Minimum: u16, Maximum: u16, }, }, }; pub const DISK_GROW_PARTITION = extern struct { PartitionNumber: u32, BytesToGrow: LARGE_INTEGER, }; pub const HISTOGRAM_BUCKET = extern struct { Reads: u32, Writes: u32, }; pub const DISK_HISTOGRAM = extern struct { DiskSize: LARGE_INTEGER, Start: LARGE_INTEGER, End: LARGE_INTEGER, Average: LARGE_INTEGER, AverageRead: LARGE_INTEGER, AverageWrite: LARGE_INTEGER, Granularity: u32, Size: u32, ReadCount: u32, WriteCount: u32, Histogram: ?*HISTOGRAM_BUCKET, }; pub const DISK_PERFORMANCE = extern struct { BytesRead: LARGE_INTEGER, BytesWritten: LARGE_INTEGER, ReadTime: LARGE_INTEGER, WriteTime: LARGE_INTEGER, IdleTime: LARGE_INTEGER, ReadCount: u32, WriteCount: u32, QueueDepth: u32, SplitCount: u32, QueryTime: LARGE_INTEGER, StorageDeviceNumber: u32, StorageManagerName: [8]u16, }; pub const DISK_RECORD = extern struct { ByteOffset: LARGE_INTEGER, StartTime: LARGE_INTEGER, EndTime: LARGE_INTEGER, VirtualAddress: ?*anyopaque, NumberOfBytes: u32, DeviceNumber: u8, ReadRequest: BOOLEAN, }; pub const DISK_LOGGING = extern struct { Function: u8, BufferAddress: ?*anyopaque, BufferSize: u32, }; pub const BIN_TYPES = enum(i32) { Size = 0, Location = 1, }; pub const RequestSize = BIN_TYPES.Size; pub const RequestLocation = BIN_TYPES.Location; pub const BIN_RANGE = extern struct { StartValue: LARGE_INTEGER, Length: LARGE_INTEGER, }; pub const PERF_BIN = extern struct { NumberOfBins: u32, TypeOfBin: u32, BinsRanges: [1]BIN_RANGE, }; pub const BIN_COUNT = extern struct { BinRange: BIN_RANGE, BinCount: u32, }; pub const BIN_RESULTS = extern struct { NumberOfBins: u32, BinCounts: [1]BIN_COUNT, }; pub const GETVERSIONINPARAMS = extern struct { bVersion: u8 align(1), bRevision: u8 align(1), bReserved: u8 align(1), bIDEDeviceMap: u8 align(1), fCapabilities: u32 align(1), dwReserved: [4]u32 align(1), }; pub const IDEREGS = extern struct { bFeaturesReg: u8, bSectorCountReg: u8, bSectorNumberReg: u8, bCylLowReg: u8, bCylHighReg: u8, bDriveHeadReg: u8, bCommandReg: u8, bReserved: u8, }; pub const SENDCMDINPARAMS = extern struct { cBufferSize: u32 align(1), irDriveRegs: IDEREGS align(1), bDriveNumber: u8 align(1), bReserved: [3]u8 align(1), dwReserved: [4]u32 align(1), bBuffer: [1]u8 align(1), }; pub const DRIVERSTATUS = extern struct { bDriverError: u8 align(1), bIDEError: u8 align(1), bReserved: [2]u8 align(1), dwReserved: [2]u32 align(1), }; pub const SENDCMDOUTPARAMS = extern struct { cBufferSize: u32 align(1), DriverStatus: DRIVERSTATUS align(1), bBuffer: [1]u8 align(1), }; pub const GET_DISK_ATTRIBUTES = extern struct { Version: u32, Reserved1: u32, Attributes: u64, }; pub const SET_DISK_ATTRIBUTES = extern struct { Version: u32, Persist: BOOLEAN, Reserved1: [3]u8, Attributes: u64, AttributesMask: u64, Reserved2: [4]u32, }; pub const ELEMENT_TYPE = enum(i32) { AllElements = 0, ChangerTransport = 1, ChangerSlot = 2, ChangerIEPort = 3, ChangerDrive = 4, ChangerDoor = 5, ChangerKeypad = 6, ChangerMaxElement = 7, }; pub const AllElements = ELEMENT_TYPE.AllElements; pub const ChangerTransport = ELEMENT_TYPE.ChangerTransport; pub const ChangerSlot = ELEMENT_TYPE.ChangerSlot; pub const ChangerIEPort = ELEMENT_TYPE.ChangerIEPort; pub const ChangerDrive = ELEMENT_TYPE.ChangerDrive; pub const ChangerDoor = ELEMENT_TYPE.ChangerDoor; pub const ChangerKeypad = ELEMENT_TYPE.ChangerKeypad; pub const ChangerMaxElement = ELEMENT_TYPE.ChangerMaxElement; pub const CHANGER_ELEMENT = extern struct { ElementType: ELEMENT_TYPE, ElementAddress: u32, }; pub const CHANGER_ELEMENT_LIST = extern struct { Element: CHANGER_ELEMENT, NumberOfElements: u32, }; pub const GET_CHANGER_PARAMETERS = extern struct { Size: u32, NumberTransportElements: u16, NumberStorageElements: u16, NumberCleanerSlots: u16, NumberIEElements: u16, NumberDataTransferElements: u16, NumberOfDoors: u16, FirstSlotNumber: u16, FirstDriveNumber: u16, FirstTransportNumber: u16, FirstIEPortNumber: u16, FirstCleanerSlotAddress: u16, MagazineSize: u16, DriveCleanTimeout: u32, Features0: CHANGER_FEATURES, Features1: GET_CHANGER_PARAMETERS_FEATURES1, MoveFromTransport: u8, MoveFromSlot: u8, MoveFromIePort: u8, MoveFromDrive: u8, ExchangeFromTransport: u8, ExchangeFromSlot: u8, ExchangeFromIePort: u8, ExchangeFromDrive: u8, LockUnlockCapabilities: u8, PositionCapabilities: u8, Reserved1: [2]u8, Reserved2: [2]u32, }; pub const CHANGER_PRODUCT_DATA = extern struct { VendorId: [8]u8, ProductId: [16]u8, Revision: [4]u8, SerialNumber: [32]u8, DeviceType: u8, }; pub const CHANGER_SET_ACCESS = extern struct { Element: CHANGER_ELEMENT, Control: u32, }; pub const CHANGER_READ_ELEMENT_STATUS = extern struct { ElementList: CHANGER_ELEMENT_LIST, VolumeTagInfo: BOOLEAN, }; pub const CHANGER_ELEMENT_STATUS = extern struct { Element: CHANGER_ELEMENT, SrcElementAddress: CHANGER_ELEMENT, Flags: CHANGER_ELEMENT_STATUS_FLAGS, ExceptionCode: u32, TargetId: u8, Lun: u8, Reserved: u16, PrimaryVolumeID: [36]u8, AlternateVolumeID: [36]u8, }; pub const CHANGER_ELEMENT_STATUS_EX = extern struct { Element: CHANGER_ELEMENT, SrcElementAddress: CHANGER_ELEMENT, Flags: CHANGER_ELEMENT_STATUS_FLAGS, ExceptionCode: u32, TargetId: u8, Lun: u8, Reserved: u16, PrimaryVolumeID: [36]u8, AlternateVolumeID: [36]u8, VendorIdentification: [8]u8, ProductIdentification: [16]u8, SerialNumber: [32]u8, }; pub const CHANGER_INITIALIZE_ELEMENT_STATUS = extern struct { ElementList: CHANGER_ELEMENT_LIST, BarCodeScan: BOOLEAN, }; pub const CHANGER_SET_POSITION = extern struct { Transport: CHANGER_ELEMENT, Destination: CHANGER_ELEMENT, Flip: BOOLEAN, }; pub const CHANGER_EXCHANGE_MEDIUM = extern struct { Transport: CHANGER_ELEMENT, Source: CHANGER_ELEMENT, Destination1: CHANGER_ELEMENT, Destination2: CHANGER_ELEMENT, Flip1: BOOLEAN, Flip2: BOOLEAN, }; pub const CHANGER_MOVE_MEDIUM = extern struct { Transport: CHANGER_ELEMENT, Source: CHANGER_ELEMENT, Destination: CHANGER_ELEMENT, Flip: BOOLEAN, }; pub const CHANGER_SEND_VOLUME_TAG_INFORMATION = extern struct { StartingElement: CHANGER_ELEMENT, ActionCode: u32, VolumeIDTemplate: [40]u8, }; pub const READ_ELEMENT_ADDRESS_INFO = extern struct { NumberOfElements: u32, ElementStatus: [1]CHANGER_ELEMENT_STATUS, }; pub const CHANGER_DEVICE_PROBLEM_TYPE = enum(i32) { None = 0, Hardware = 1, CHMError = 2, DoorOpen = 3, CalibrationError = 4, TargetFailure = 5, CHMMoveError = 6, CHMZeroError = 7, CartridgeInsertError = 8, PositionError = 9, SensorError = 10, CartridgeEjectError = 11, GripperError = 12, DriveError = 13, }; pub const DeviceProblemNone = CHANGER_DEVICE_PROBLEM_TYPE.None; pub const DeviceProblemHardware = CHANGER_DEVICE_PROBLEM_TYPE.Hardware; pub const DeviceProblemCHMError = CHANGER_DEVICE_PROBLEM_TYPE.CHMError; pub const DeviceProblemDoorOpen = CHANGER_DEVICE_PROBLEM_TYPE.DoorOpen; pub const DeviceProblemCalibrationError = CHANGER_DEVICE_PROBLEM_TYPE.CalibrationError; pub const DeviceProblemTargetFailure = CHANGER_DEVICE_PROBLEM_TYPE.TargetFailure; pub const DeviceProblemCHMMoveError = CHANGER_DEVICE_PROBLEM_TYPE.CHMMoveError; pub const DeviceProblemCHMZeroError = CHANGER_DEVICE_PROBLEM_TYPE.CHMZeroError; pub const DeviceProblemCartridgeInsertError = CHANGER_DEVICE_PROBLEM_TYPE.CartridgeInsertError; pub const DeviceProblemPositionError = CHANGER_DEVICE_PROBLEM_TYPE.PositionError; pub const DeviceProblemSensorError = CHANGER_DEVICE_PROBLEM_TYPE.SensorError; pub const DeviceProblemCartridgeEjectError = CHANGER_DEVICE_PROBLEM_TYPE.CartridgeEjectError; pub const DeviceProblemGripperError = CHANGER_DEVICE_PROBLEM_TYPE.GripperError; pub const DeviceProblemDriveError = CHANGER_DEVICE_PROBLEM_TYPE.DriveError; pub const PATHNAME_BUFFER = extern struct { PathNameLength: u32, Name: [1]u16, }; pub const FSCTL_QUERY_FAT_BPB_BUFFER = extern struct { First0x24BytesOfBootSector: [36]u8, }; pub const NTFS_VOLUME_DATA_BUFFER = extern struct { VolumeSerialNumber: LARGE_INTEGER, NumberSectors: LARGE_INTEGER, TotalClusters: LARGE_INTEGER, FreeClusters: LARGE_INTEGER, TotalReserved: LARGE_INTEGER, BytesPerSector: u32, BytesPerCluster: u32, BytesPerFileRecordSegment: u32, ClustersPerFileRecordSegment: u32, MftValidDataLength: LARGE_INTEGER, MftStartLcn: LARGE_INTEGER, Mft2StartLcn: LARGE_INTEGER, MftZoneStart: LARGE_INTEGER, MftZoneEnd: LARGE_INTEGER, }; pub const NTFS_EXTENDED_VOLUME_DATA = extern struct { ByteCount: u32, MajorVersion: u16, MinorVersion: u16, BytesPerPhysicalSector: u32, LfsMajorVersion: u16, LfsMinorVersion: u16, MaxDeviceTrimExtentCount: u32, MaxDeviceTrimByteCount: u32, MaxVolumeTrimExtentCount: u32, MaxVolumeTrimByteCount: u32, }; pub const REFS_VOLUME_DATA_BUFFER = extern struct { ByteCount: u32, MajorVersion: u32, MinorVersion: u32, BytesPerPhysicalSector: u32, VolumeSerialNumber: LARGE_INTEGER, NumberSectors: LARGE_INTEGER, TotalClusters: LARGE_INTEGER, FreeClusters: LARGE_INTEGER, TotalReserved: LARGE_INTEGER, BytesPerSector: u32, BytesPerCluster: u32, MaximumSizeOfResidentFile: LARGE_INTEGER, FastTierDataFillRatio: u16, SlowTierDataFillRatio: u16, DestagesFastTierToSlowTierRate: u32, Reserved: [9]LARGE_INTEGER, }; pub const STARTING_LCN_INPUT_BUFFER = extern struct { StartingLcn: LARGE_INTEGER, }; pub const STARTING_LCN_INPUT_BUFFER_EX = extern struct { StartingLcn: LARGE_INTEGER, Flags: u32, }; pub const VOLUME_BITMAP_BUFFER = extern struct { StartingLcn: LARGE_INTEGER, BitmapSize: LARGE_INTEGER, Buffer: [1]u8, }; pub const STARTING_VCN_INPUT_BUFFER = extern struct { StartingVcn: LARGE_INTEGER, }; pub const RETRIEVAL_POINTERS_BUFFER = extern struct { ExtentCount: u32, StartingVcn: LARGE_INTEGER, Extents: [1]extern struct { NextVcn: LARGE_INTEGER, Lcn: LARGE_INTEGER, }, }; pub const RETRIEVAL_POINTERS_AND_REFCOUNT_BUFFER = extern struct { ExtentCount: u32, StartingVcn: LARGE_INTEGER, Extents: [1]extern struct { NextVcn: LARGE_INTEGER, Lcn: LARGE_INTEGER, ReferenceCount: u32, }, }; pub const RETRIEVAL_POINTER_COUNT = extern struct { ExtentCount: u32, }; pub const NTFS_FILE_RECORD_INPUT_BUFFER = extern struct { FileReferenceNumber: LARGE_INTEGER, }; pub const NTFS_FILE_RECORD_OUTPUT_BUFFER = extern struct { FileReferenceNumber: LARGE_INTEGER, FileRecordLength: u32, FileRecordBuffer: [1]u8, }; pub const MOVE_FILE_DATA = extern struct { FileHandle: ?HANDLE, StartingVcn: LARGE_INTEGER, StartingLcn: LARGE_INTEGER, ClusterCount: u32, }; pub const MOVE_FILE_RECORD_DATA = extern struct { FileHandle: ?HANDLE, SourceFileRecord: LARGE_INTEGER, TargetFileRecord: LARGE_INTEGER, }; pub const FIND_BY_SID_DATA = extern struct { Restart: u32, Sid: SID, }; pub const FIND_BY_SID_OUTPUT = extern struct { NextEntryOffset: u32, FileIndex: u32, FileNameLength: u32, FileName: [1]u16, }; pub const MFT_ENUM_DATA_V0 = extern struct { StartFileReferenceNumber: u64, LowUsn: i64, HighUsn: i64, }; pub const MFT_ENUM_DATA_V1 = extern struct { StartFileReferenceNumber: u64, LowUsn: i64, HighUsn: i64, MinMajorVersion: u16, MaxMajorVersion: u16, }; pub const CREATE_USN_JOURNAL_DATA = extern struct { MaximumSize: u64, AllocationDelta: u64, }; pub const READ_FILE_USN_DATA = extern struct { MinMajorVersion: u16, MaxMajorVersion: u16, }; pub const READ_USN_JOURNAL_DATA_V0 = extern struct { StartUsn: i64, ReasonMask: u32, ReturnOnlyOnClose: u32, Timeout: u64, BytesToWaitFor: u64, UsnJournalID: u64, }; pub const READ_USN_JOURNAL_DATA_V1 = extern struct { StartUsn: i64, ReasonMask: u32, ReturnOnlyOnClose: u32, Timeout: u64, BytesToWaitFor: u64, UsnJournalID: u64, MinMajorVersion: u16, MaxMajorVersion: u16, }; pub const USN_TRACK_MODIFIED_RANGES = extern struct { Flags: u32, Unused: u32, ChunkSize: u64, FileSizeThreshold: i64, }; pub const USN_RANGE_TRACK_OUTPUT = extern struct { Usn: i64, }; pub const USN_RECORD_V2 = extern struct { RecordLength: u32, MajorVersion: u16, MinorVersion: u16, FileReferenceNumber: u64, ParentFileReferenceNumber: u64, Usn: i64, TimeStamp: LARGE_INTEGER, Reason: u32, SourceInfo: u32, SecurityId: u32, FileAttributes: u32, FileNameLength: u16, FileNameOffset: u16, FileName: [1]u16, }; pub const USN_RECORD_V3 = extern struct { RecordLength: u32, MajorVersion: u16, MinorVersion: u16, FileReferenceNumber: FILE_ID_128, ParentFileReferenceNumber: FILE_ID_128, Usn: i64, TimeStamp: LARGE_INTEGER, Reason: u32, SourceInfo: u32, SecurityId: u32, FileAttributes: u32, FileNameLength: u16, FileNameOffset: u16, FileName: [1]u16, }; pub const USN_RECORD_COMMON_HEADER = extern struct { RecordLength: u32, MajorVersion: u16, MinorVersion: u16, }; pub const USN_RECORD_EXTENT = extern struct { Offset: i64, Length: i64, }; pub const USN_RECORD_V4 = extern struct { Header: USN_RECORD_COMMON_HEADER, FileReferenceNumber: FILE_ID_128, ParentFileReferenceNumber: FILE_ID_128, Usn: i64, Reason: u32, SourceInfo: USN_SOURCE_INFO_ID, RemainingExtents: u32, NumberOfExtents: u16, ExtentSize: u16, Extents: [1]USN_RECORD_EXTENT, }; pub const USN_RECORD_UNION = extern union { Header: USN_RECORD_COMMON_HEADER, V2: USN_RECORD_V2, V3: USN_RECORD_V3, V4: USN_RECORD_V4, }; pub const USN_JOURNAL_DATA_V0 = extern struct { UsnJournalID: u64, FirstUsn: i64, NextUsn: i64, LowestValidUsn: i64, MaxUsn: i64, MaximumSize: u64, AllocationDelta: u64, }; pub const USN_JOURNAL_DATA_V1 = extern struct { UsnJournalID: u64, FirstUsn: i64, NextUsn: i64, LowestValidUsn: i64, MaxUsn: i64, MaximumSize: u64, AllocationDelta: u64, MinSupportedMajorVersion: u16, MaxSupportedMajorVersion: u16, }; pub const USN_JOURNAL_DATA_V2 = extern struct { UsnJournalID: u64, FirstUsn: i64, NextUsn: i64, LowestValidUsn: i64, MaxUsn: i64, MaximumSize: u64, AllocationDelta: u64, MinSupportedMajorVersion: u16, MaxSupportedMajorVersion: u16, Flags: u32, RangeTrackChunkSize: u64, RangeTrackFileSizeThreshold: i64, }; pub const DELETE_USN_JOURNAL_DATA = extern struct { UsnJournalID: u64, DeleteFlags: USN_DELETE_FLAGS, }; pub const MARK_HANDLE_INFO = extern struct { Anonymous: extern union { UsnSourceInfo: u32, CopyNumber: u32, }, VolumeHandle: ?HANDLE, HandleInfo: u32, }; pub const BULK_SECURITY_TEST_DATA = extern struct { DesiredAccess: u32, SecurityIds: [1]u32, }; pub const FILE_PREFETCH = extern struct { Type: u32, Count: u32, Prefetch: [1]u64, }; pub const FILE_PREFETCH_EX = extern struct { Type: u32, Count: u32, Context: ?*anyopaque, Prefetch: [1]u64, }; pub const FILESYSTEM_STATISTICS = extern struct { FileSystemType: FILESYSTEM_STATISTICS_TYPE, Version: u16, SizeOfCompleteStructure: u32, UserFileReads: u32, UserFileReadBytes: u32, UserDiskReads: u32, UserFileWrites: u32, UserFileWriteBytes: u32, UserDiskWrites: u32, MetaDataReads: u32, MetaDataReadBytes: u32, MetaDataDiskReads: u32, MetaDataWrites: u32, MetaDataWriteBytes: u32, MetaDataDiskWrites: u32, }; pub const FAT_STATISTICS = extern struct { CreateHits: u32, SuccessfulCreates: u32, FailedCreates: u32, NonCachedReads: u32, NonCachedReadBytes: u32, NonCachedWrites: u32, NonCachedWriteBytes: u32, NonCachedDiskReads: u32, NonCachedDiskWrites: u32, }; pub const EXFAT_STATISTICS = extern struct { CreateHits: u32, SuccessfulCreates: u32, FailedCreates: u32, NonCachedReads: u32, NonCachedReadBytes: u32, NonCachedWrites: u32, NonCachedWriteBytes: u32, NonCachedDiskReads: u32, NonCachedDiskWrites: u32, }; pub const NTFS_STATISTICS = extern struct { LogFileFullExceptions: u32, OtherExceptions: u32, MftReads: u32, MftReadBytes: u32, MftWrites: u32, MftWriteBytes: u32, MftWritesUserLevel: extern struct { Write: u16, Create: u16, SetInfo: u16, Flush: u16, }, MftWritesFlushForLogFileFull: u16, MftWritesLazyWriter: u16, MftWritesUserRequest: u16, Mft2Writes: u32, Mft2WriteBytes: u32, Mft2WritesUserLevel: extern struct { Write: u16, Create: u16, SetInfo: u16, Flush: u16, }, Mft2WritesFlushForLogFileFull: u16, Mft2WritesLazyWriter: u16, Mft2WritesUserRequest: u16, RootIndexReads: u32, RootIndexReadBytes: u32, RootIndexWrites: u32, RootIndexWriteBytes: u32, BitmapReads: u32, BitmapReadBytes: u32, BitmapWrites: u32, BitmapWriteBytes: u32, BitmapWritesFlushForLogFileFull: u16, BitmapWritesLazyWriter: u16, BitmapWritesUserRequest: u16, BitmapWritesUserLevel: extern struct { Write: u16, Create: u16, SetInfo: u16, }, MftBitmapReads: u32, MftBitmapReadBytes: u32, MftBitmapWrites: u32, MftBitmapWriteBytes: u32, MftBitmapWritesFlushForLogFileFull: u16, MftBitmapWritesLazyWriter: u16, MftBitmapWritesUserRequest: u16, MftBitmapWritesUserLevel: extern struct { Write: u16, Create: u16, SetInfo: u16, Flush: u16, }, UserIndexReads: u32, UserIndexReadBytes: u32, UserIndexWrites: u32, UserIndexWriteBytes: u32, LogFileReads: u32, LogFileReadBytes: u32, LogFileWrites: u32, LogFileWriteBytes: u32, Allocate: extern struct { Calls: u32, Clusters: u32, Hints: u32, RunsReturned: u32, HintsHonored: u32, HintsClusters: u32, Cache: u32, CacheClusters: u32, CacheMiss: u32, CacheMissClusters: u32, }, DiskResourcesExhausted: u32, }; pub const FILESYSTEM_STATISTICS_EX = extern struct { FileSystemType: FILESYSTEM_STATISTICS_TYPE, Version: u16, SizeOfCompleteStructure: u32, UserFileReads: u64, UserFileReadBytes: u64, UserDiskReads: u64, UserFileWrites: u64, UserFileWriteBytes: u64, UserDiskWrites: u64, MetaDataReads: u64, MetaDataReadBytes: u64, MetaDataDiskReads: u64, MetaDataWrites: u64, MetaDataWriteBytes: u64, MetaDataDiskWrites: u64, }; pub const NTFS_STATISTICS_EX = extern struct { LogFileFullExceptions: u32, OtherExceptions: u32, MftReads: u64, MftReadBytes: u64, MftWrites: u64, MftWriteBytes: u64, MftWritesUserLevel: extern struct { Write: u32, Create: u32, SetInfo: u32, Flush: u32, }, MftWritesFlushForLogFileFull: u32, MftWritesLazyWriter: u32, MftWritesUserRequest: u32, Mft2Writes: u64, Mft2WriteBytes: u64, Mft2WritesUserLevel: extern struct { Write: u32, Create: u32, SetInfo: u32, Flush: u32, }, Mft2WritesFlushForLogFileFull: u32, Mft2WritesLazyWriter: u32, Mft2WritesUserRequest: u32, RootIndexReads: u64, RootIndexReadBytes: u64, RootIndexWrites: u64, RootIndexWriteBytes: u64, BitmapReads: u64, BitmapReadBytes: u64, BitmapWrites: u64, BitmapWriteBytes: u64, BitmapWritesFlushForLogFileFull: u32, BitmapWritesLazyWriter: u32, BitmapWritesUserRequest: u32, BitmapWritesUserLevel: extern struct { Write: u32, Create: u32, SetInfo: u32, Flush: u32, }, MftBitmapReads: u64, MftBitmapReadBytes: u64, MftBitmapWrites: u64, MftBitmapWriteBytes: u64, MftBitmapWritesFlushForLogFileFull: u32, MftBitmapWritesLazyWriter: u32, MftBitmapWritesUserRequest: u32, MftBitmapWritesUserLevel: extern struct { Write: u32, Create: u32, SetInfo: u32, Flush: u32, }, UserIndexReads: u64, UserIndexReadBytes: u64, UserIndexWrites: u64, UserIndexWriteBytes: u64, LogFileReads: u64, LogFileReadBytes: u64, LogFileWrites: u64, LogFileWriteBytes: u64, Allocate: extern struct { Calls: u32, RunsReturned: u32, Hints: u32, HintsHonored: u32, Cache: u32, CacheMiss: u32, Clusters: u64, HintsClusters: u64, CacheClusters: u64, CacheMissClusters: u64, }, DiskResourcesExhausted: u32, VolumeTrimCount: u64, VolumeTrimTime: u64, VolumeTrimByteCount: u64, FileLevelTrimCount: u64, FileLevelTrimTime: u64, FileLevelTrimByteCount: u64, VolumeTrimSkippedCount: u64, VolumeTrimSkippedByteCount: u64, NtfsFillStatInfoFromMftRecordCalledCount: u64, NtfsFillStatInfoFromMftRecordBailedBecauseOfAttributeListCount: u64, NtfsFillStatInfoFromMftRecordBailedBecauseOfNonResReparsePointCount: u64, }; pub const FILE_OBJECTID_BUFFER = extern struct { ObjectId: [16]u8, Anonymous: extern union { Anonymous: extern struct { BirthVolumeId: [16]u8, BirthObjectId: [16]u8, DomainId: [16]u8, }, ExtendedInfo: [48]u8, }, }; pub const FILE_SET_SPARSE_BUFFER = extern struct { SetSparse: BOOLEAN, }; pub const FILE_ZERO_DATA_INFORMATION = extern struct { FileOffset: LARGE_INTEGER, BeyondFinalZero: LARGE_INTEGER, }; pub const FILE_ZERO_DATA_INFORMATION_EX = extern struct { FileOffset: LARGE_INTEGER, BeyondFinalZero: LARGE_INTEGER, Flags: u32, }; pub const FILE_ALLOCATED_RANGE_BUFFER = extern struct { FileOffset: LARGE_INTEGER, Length: LARGE_INTEGER, }; pub const ENCRYPTION_BUFFER = extern struct { EncryptionOperation: u32, Private: [1]u8, }; pub const DECRYPTION_STATUS_BUFFER = extern struct { NoEncryptedStreams: BOOLEAN, }; pub const REQUEST_RAW_ENCRYPTED_DATA = extern struct { FileOffset: i64, Length: u32, }; pub const ENCRYPTED_DATA_INFO = extern struct { StartingFileOffset: u64, OutputBufferOffset: u32, BytesWithinFileSize: u32, BytesWithinValidDataLength: u32, CompressionFormat: u16, DataUnitShift: u8, ChunkShift: u8, ClusterShift: u8, EncryptionFormat: u8, NumberOfDataBlocks: u16, DataBlockSize: [1]u32, }; pub const EXTENDED_ENCRYPTED_DATA_INFO = extern struct { ExtendedCode: u32, Length: u32, Flags: u32, Reserved: u32, }; pub const PLEX_READ_DATA_REQUEST = extern struct { ByteOffset: LARGE_INTEGER, ByteLength: u32, PlexNumber: u32, }; pub const SI_COPYFILE = extern struct { SourceFileNameLength: u32, DestinationFileNameLength: u32, Flags: u32, FileNameBuffer: [1]u16, }; pub const FILE_MAKE_COMPATIBLE_BUFFER = extern struct { CloseDisc: BOOLEAN, }; pub const FILE_SET_DEFECT_MGMT_BUFFER = extern struct { Disable: BOOLEAN, }; pub const FILE_QUERY_SPARING_BUFFER = extern struct { SparingUnitBytes: u32, SoftwareSparing: BOOLEAN, TotalSpareBlocks: u32, FreeSpareBlocks: u32, }; pub const FILE_QUERY_ON_DISK_VOL_INFO_BUFFER = extern struct { DirectoryCount: LARGE_INTEGER, FileCount: LARGE_INTEGER, FsFormatMajVersion: u16, FsFormatMinVersion: u16, FsFormatName: [12]u16, FormatTime: LARGE_INTEGER, LastUpdateTime: LARGE_INTEGER, CopyrightInfo: [34]u16, AbstractInfo: [34]u16, FormattingImplementationInfo: [34]u16, LastModifyingImplementationInfo: [34]u16, }; pub const FILE_INITIATE_REPAIR_OUTPUT_BUFFER = extern struct { Hint1: u64, Hint2: u64, Clsn: u64, Status: u32, }; pub const SHRINK_VOLUME_REQUEST_TYPES = enum(i32) { Prepare = 1, Commit = 2, Abort = 3, }; pub const ShrinkPrepare = SHRINK_VOLUME_REQUEST_TYPES.Prepare; pub const ShrinkCommit = SHRINK_VOLUME_REQUEST_TYPES.Commit; pub const ShrinkAbort = SHRINK_VOLUME_REQUEST_TYPES.Abort; pub const SHRINK_VOLUME_INFORMATION = extern struct { ShrinkRequestType: SHRINK_VOLUME_REQUEST_TYPES, Flags: u64, NewNumberOfSectors: i64, }; pub const TXFS_MODIFY_RM = extern struct { Flags: TXFS_RMF_LAGS, LogContainerCountMax: u32, LogContainerCountMin: u32, LogContainerCount: u32, LogGrowthIncrement: u32, LogAutoShrinkPercentage: u32, Reserved: u64, LoggingMode: u16, }; pub const TXFS_QUERY_RM_INFORMATION = extern struct { BytesRequired: u32, TailLsn: u64, CurrentLsn: u64, ArchiveTailLsn: u64, LogContainerSize: u64, HighestVirtualClock: LARGE_INTEGER, LogContainerCount: u32, LogContainerCountMax: u32, LogContainerCountMin: u32, LogGrowthIncrement: u32, LogAutoShrinkPercentage: u32, Flags: TXFS_RMF_LAGS, LoggingMode: u16, Reserved: u16, RmState: u32, LogCapacity: u64, LogFree: u64, TopsSize: u64, TopsUsed: u64, TransactionCount: u64, OnePCCount: u64, TwoPCCount: u64, NumberLogFileFull: u64, OldestTransactionAge: u64, RMName: Guid, TmLogPathOffset: u32, }; pub const TXFS_ROLLFORWARD_REDO_INFORMATION = extern struct { LastVirtualClock: LARGE_INTEGER, LastRedoLsn: u64, HighestRecoveryLsn: u64, Flags: u32, }; pub const TXFS_START_RM_INFORMATION = extern struct { Flags: u32, LogContainerSize: u64, LogContainerCountMin: u32, LogContainerCountMax: u32, LogGrowthIncrement: u32, LogAutoShrinkPercentage: u32, TmLogPathOffset: u32, TmLogPathLength: u16, LoggingMode: u16, LogPathLength: u16, Reserved: u16, LogPath: [1]u16, }; pub const TXFS_GET_METADATA_INFO_OUT = extern struct { TxfFileId: extern struct { LowPart: i64, HighPart: i64, }, LockingTransaction: Guid, LastLsn: u64, TransactionState: u32, }; pub const TXFS_LIST_TRANSACTION_LOCKED_FILES_ENTRY = extern struct { Offset: u64, NameFlags: u32, FileId: i64, Reserved1: u32, Reserved2: u32, Reserved3: i64, FileName: [1]u16, }; pub const TXFS_LIST_TRANSACTION_LOCKED_FILES = extern struct { KtmTransaction: Guid, NumberOfFiles: u64, BufferSizeRequired: u64, Offset: u64, }; pub const TXFS_LIST_TRANSACTIONS_ENTRY = extern struct { TransactionId: Guid, TransactionState: u32, Reserved1: u32, Reserved2: u32, Reserved3: i64, }; pub const TXFS_LIST_TRANSACTIONS = extern struct { NumberOfTransactions: u64, BufferSizeRequired: u64, }; pub const TXFS_READ_BACKUP_INFORMATION_OUT = extern struct { Anonymous: extern union { BufferLength: u32, Buffer: [1]u8, }, }; pub const TXFS_WRITE_BACKUP_INFORMATION = extern struct { Buffer: [1]u8, }; pub const TXFS_GET_TRANSACTED_VERSION = extern struct { ThisBaseVersion: u32, LatestVersion: u32, ThisMiniVersion: u16, FirstMiniVersion: u16, LatestMiniVersion: u16, }; pub const TXFS_SAVEPOINT_INFORMATION = extern struct { KtmTransaction: ?HANDLE, ActionCode: u32, SavepointId: u32, }; pub const TXFS_CREATE_MINIVERSION_INFO = extern struct { StructureVersion: u16, StructureLength: u16, BaseVersion: u32, MiniVersion: u16, }; pub const TXFS_TRANSACTION_ACTIVE_INFO = extern struct { TransactionsActiveAtSnapshot: BOOLEAN, }; pub const BOOT_AREA_INFO = extern struct { BootSectorCount: u32, BootSectors: [2]extern struct { Offset: LARGE_INTEGER, }, }; pub const RETRIEVAL_POINTER_BASE = extern struct { FileAreaOffset: LARGE_INTEGER, }; pub const FILE_FS_PERSISTENT_VOLUME_INFORMATION = extern struct { VolumeFlags: u32, FlagMask: u32, Version: u32, Reserved: u32, }; pub const FILE_SYSTEM_RECOGNITION_INFORMATION = extern struct { FileSystem: [9]CHAR, }; pub const REQUEST_OPLOCK_INPUT_BUFFER = extern struct { StructureVersion: u16, StructureLength: u16, RequestedOplockLevel: u32, Flags: u32, }; pub const REQUEST_OPLOCK_OUTPUT_BUFFER = extern struct { StructureVersion: u16, StructureLength: u16, OriginalOplockLevel: u32, NewOplockLevel: u32, Flags: u32, AccessMode: u32, ShareMode: u16, }; pub const STORAGE_QUERY_DEPENDENT_VOLUME_REQUEST = extern struct { RequestLevel: u32, RequestFlags: u32, }; pub const STORAGE_QUERY_DEPENDENT_VOLUME_LEV1_ENTRY = extern struct { EntryLength: u32, DependencyTypeFlags: u32, ProviderSpecificFlags: u32, VirtualStorageType: VIRTUAL_STORAGE_TYPE, }; pub const STORAGE_QUERY_DEPENDENT_VOLUME_LEV2_ENTRY = extern struct { EntryLength: u32, DependencyTypeFlags: u32, ProviderSpecificFlags: u32, VirtualStorageType: VIRTUAL_STORAGE_TYPE, AncestorLevel: u32, HostVolumeNameOffset: u32, HostVolumeNameSize: u32, DependentVolumeNameOffset: u32, DependentVolumeNameSize: u32, RelativePathOffset: u32, RelativePathSize: u32, DependentDeviceNameOffset: u32, DependentDeviceNameSize: u32, }; pub const STORAGE_QUERY_DEPENDENT_VOLUME_RESPONSE = extern struct { ResponseLevel: u32, NumberEntries: u32, Anonymous: extern union { Lev1Depends: [1]STORAGE_QUERY_DEPENDENT_VOLUME_LEV1_ENTRY, Lev2Depends: [1]STORAGE_QUERY_DEPENDENT_VOLUME_LEV2_ENTRY, }, }; pub const SD_CHANGE_MACHINE_SID_INPUT = extern struct { CurrentMachineSIDOffset: u16, CurrentMachineSIDLength: u16, NewMachineSIDOffset: u16, NewMachineSIDLength: u16, }; pub const SD_CHANGE_MACHINE_SID_OUTPUT = extern struct { NumSDChangedSuccess: u64, NumSDChangedFail: u64, NumSDUnused: u64, NumSDTotal: u64, NumMftSDChangedSuccess: u64, NumMftSDChangedFail: u64, NumMftSDTotal: u64, }; pub const SD_QUERY_STATS_INPUT = extern struct { Reserved: u32, }; pub const SD_QUERY_STATS_OUTPUT = extern struct { SdsStreamSize: u64, SdsAllocationSize: u64, SiiStreamSize: u64, SiiAllocationSize: u64, SdhStreamSize: u64, SdhAllocationSize: u64, NumSDTotal: u64, NumSDUnused: u64, }; pub const SD_ENUM_SDS_INPUT = extern struct { StartingOffset: u64, MaxSDEntriesToReturn: u64, }; pub const SD_ENUM_SDS_ENTRY = extern struct { Hash: u32, SecurityId: u32, Offset: u64, Length: u32, Descriptor: [1]u8, }; pub const SD_ENUM_SDS_OUTPUT = extern struct { NextOffset: u64, NumSDEntriesReturned: u64, NumSDBytesReturned: u64, SDEntry: [1]SD_ENUM_SDS_ENTRY, }; pub const SD_GLOBAL_CHANGE_INPUT = extern struct { Flags: u32, ChangeType: u32, Anonymous: extern union { SdChange: SD_CHANGE_MACHINE_SID_INPUT, SdQueryStats: SD_QUERY_STATS_INPUT, SdEnumSds: SD_ENUM_SDS_INPUT, }, }; pub const SD_GLOBAL_CHANGE_OUTPUT = extern struct { Flags: u32, ChangeType: u32, Anonymous: extern union { SdChange: SD_CHANGE_MACHINE_SID_OUTPUT, SdQueryStats: SD_QUERY_STATS_OUTPUT, SdEnumSds: SD_ENUM_SDS_OUTPUT, }, }; pub const LOOKUP_STREAM_FROM_CLUSTER_INPUT = extern struct { Flags: u32, NumberOfClusters: u32, Cluster: [1]LARGE_INTEGER, }; pub const LOOKUP_STREAM_FROM_CLUSTER_OUTPUT = extern struct { Offset: u32, NumberOfMatches: u32, BufferSizeRequired: u32, }; pub const LOOKUP_STREAM_FROM_CLUSTER_ENTRY = extern struct { OffsetToNext: u32, Flags: u32, Reserved: LARGE_INTEGER, Cluster: LARGE_INTEGER, FileName: [1]u16, }; pub const FILE_TYPE_NOTIFICATION_INPUT = extern struct { Flags: u32, NumFileTypeIDs: u32, FileTypeID: [1]Guid, }; pub const CSV_MGMT_LOCK = extern struct { Flags: u32, }; pub const CSV_NAMESPACE_INFO = extern struct { Version: u32, DeviceNumber: u32, StartingOffset: LARGE_INTEGER, SectorSize: u32, }; pub const CSV_CONTROL_OP = enum(i32) { StartRedirectFile = 2, StopRedirectFile = 3, QueryRedirectState = 4, QueryFileRevision = 6, QueryMdsPath = 8, QueryFileRevisionFileId128 = 9, QueryVolumeRedirectState = 10, EnableUSNRangeModificationTracking = 13, MarkHandleLocalVolumeMount = 14, UnmarkHandleLocalVolumeMount = 15, GetCsvFsMdsPathV2 = 18, DisableCaching = 19, EnableCaching = 20, StartForceDFO = 21, StopForceDFO = 22, QueryMdsPathNoPause = 23, SetVolumeId = 24, QueryVolumeId = 25, }; pub const CsvControlStartRedirectFile = CSV_CONTROL_OP.StartRedirectFile; pub const CsvControlStopRedirectFile = CSV_CONTROL_OP.StopRedirectFile; pub const CsvControlQueryRedirectState = CSV_CONTROL_OP.QueryRedirectState; pub const CsvControlQueryFileRevision = CSV_CONTROL_OP.QueryFileRevision; pub const CsvControlQueryMdsPath = CSV_CONTROL_OP.QueryMdsPath; pub const CsvControlQueryFileRevisionFileId128 = CSV_CONTROL_OP.QueryFileRevisionFileId128; pub const CsvControlQueryVolumeRedirectState = CSV_CONTROL_OP.QueryVolumeRedirectState; pub const CsvControlEnableUSNRangeModificationTracking = CSV_CONTROL_OP.EnableUSNRangeModificationTracking; pub const CsvControlMarkHandleLocalVolumeMount = CSV_CONTROL_OP.MarkHandleLocalVolumeMount; pub const CsvControlUnmarkHandleLocalVolumeMount = CSV_CONTROL_OP.UnmarkHandleLocalVolumeMount; pub const CsvControlGetCsvFsMdsPathV2 = CSV_CONTROL_OP.GetCsvFsMdsPathV2; pub const CsvControlDisableCaching = CSV_CONTROL_OP.DisableCaching; pub const CsvControlEnableCaching = CSV_CONTROL_OP.EnableCaching; pub const CsvControlStartForceDFO = CSV_CONTROL_OP.StartForceDFO; pub const CsvControlStopForceDFO = CSV_CONTROL_OP.StopForceDFO; pub const CsvControlQueryMdsPathNoPause = CSV_CONTROL_OP.QueryMdsPathNoPause; pub const CsvControlSetVolumeId = CSV_CONTROL_OP.SetVolumeId; pub const CsvControlQueryVolumeId = CSV_CONTROL_OP.QueryVolumeId; pub const CSV_CONTROL_PARAM = extern struct { Operation: CSV_CONTROL_OP, Unused: i64, }; pub const CSV_QUERY_REDIRECT_STATE = extern struct { MdsNodeId: u32, DsNodeId: u32, FileRedirected: BOOLEAN, }; pub const CSV_QUERY_FILE_REVISION = extern struct { FileId: i64, FileRevision: [3]i64, }; pub const CSV_QUERY_FILE_REVISION_FILE_ID_128 = extern struct { FileId: FILE_ID_128, FileRevision: [3]i64, }; pub const CSV_QUERY_MDS_PATH = extern struct { MdsNodeId: u32, DsNodeId: u32, PathLength: u32, Path: [1]u16, }; pub const CSVFS_DISK_CONNECTIVITY = enum(i32) { None = 0, MdsNodeOnly = 1, SubsetOfNodes = 2, AllNodes = 3, }; pub const CsvFsDiskConnectivityNone = CSVFS_DISK_CONNECTIVITY.None; pub const CsvFsDiskConnectivityMdsNodeOnly = CSVFS_DISK_CONNECTIVITY.MdsNodeOnly; pub const CsvFsDiskConnectivitySubsetOfNodes = CSVFS_DISK_CONNECTIVITY.SubsetOfNodes; pub const CsvFsDiskConnectivityAllNodes = CSVFS_DISK_CONNECTIVITY.AllNodes; pub const CSV_QUERY_VOLUME_REDIRECT_STATE = extern struct { MdsNodeId: u32, DsNodeId: u32, IsDiskConnected: BOOLEAN, ClusterEnableDirectIo: BOOLEAN, DiskConnectivity: CSVFS_DISK_CONNECTIVITY, }; pub const CSV_QUERY_MDS_PATH_V2 = extern struct { Version: i64, RequiredSize: u32, MdsNodeId: u32, DsNodeId: u32, Flags: u32, DiskConnectivity: CSVFS_DISK_CONNECTIVITY, VolumeId: Guid, IpAddressOffset: u32, IpAddressLength: u32, PathOffset: u32, PathLength: u32, }; pub const CSV_SET_VOLUME_ID = extern struct { VolumeId: Guid, }; pub const CSV_QUERY_VOLUME_ID = extern struct { VolumeId: Guid, }; pub const CSV_QUERY_VETO_FILE_DIRECT_IO_OUTPUT = extern struct { VetoedFromAltitudeIntegral: u64, VetoedFromAltitudeDecimal: u64, Reason: [256]u16, }; pub const STORAGE_RESERVE_ID = enum(i32) { None = 0, Hard = 1, Soft = 2, UpdateScratch = 3, Max = 4, }; pub const StorageReserveIdNone = STORAGE_RESERVE_ID.None; pub const StorageReserveIdHard = STORAGE_RESERVE_ID.Hard; pub const StorageReserveIdSoft = STORAGE_RESERVE_ID.Soft; pub const StorageReserveIdUpdateScratch = STORAGE_RESERVE_ID.UpdateScratch; pub const StorageReserveIdMax = STORAGE_RESERVE_ID.Max; pub const CSV_IS_OWNED_BY_CSVFS = extern struct { OwnedByCSVFS: BOOLEAN, }; pub const FILE_LEVEL_TRIM_RANGE = extern struct { Offset: u64, Length: u64, }; pub const FILE_LEVEL_TRIM = extern struct { Key: u32, NumRanges: u32, Ranges: [1]FILE_LEVEL_TRIM_RANGE, }; pub const FILE_LEVEL_TRIM_OUTPUT = extern struct { NumRangesProcessed: u32, }; pub const QUERY_FILE_LAYOUT_FILTER_TYPE = enum(i32) { FILTER_TYPE_NONE = 0, FILTER_TYPE_CLUSTERS = 1, FILTER_TYPE_FILEID = 2, FILTER_TYPE_STORAGE_RESERVE_ID = 3, NUM_FILTER_TYPES = 4, }; pub const QUERY_FILE_LAYOUT_FILTER_TYPE_NONE = QUERY_FILE_LAYOUT_FILTER_TYPE.FILTER_TYPE_NONE; pub const QUERY_FILE_LAYOUT_FILTER_TYPE_CLUSTERS = QUERY_FILE_LAYOUT_FILTER_TYPE.FILTER_TYPE_CLUSTERS; pub const QUERY_FILE_LAYOUT_FILTER_TYPE_FILEID = QUERY_FILE_LAYOUT_FILTER_TYPE.FILTER_TYPE_FILEID; pub const QUERY_FILE_LAYOUT_FILTER_TYPE_STORAGE_RESERVE_ID = QUERY_FILE_LAYOUT_FILTER_TYPE.FILTER_TYPE_STORAGE_RESERVE_ID; pub const QUERY_FILE_LAYOUT_NUM_FILTER_TYPES = QUERY_FILE_LAYOUT_FILTER_TYPE.NUM_FILTER_TYPES; pub const CLUSTER_RANGE = extern struct { StartingCluster: LARGE_INTEGER, ClusterCount: LARGE_INTEGER, }; pub const FILE_REFERENCE_RANGE = extern struct { StartingFileReferenceNumber: u64, EndingFileReferenceNumber: u64, }; pub const QUERY_FILE_LAYOUT_INPUT = extern struct { Anonymous: extern union { FilterEntryCount: u32, NumberOfPairs: u32, }, Flags: u32, FilterType: QUERY_FILE_LAYOUT_FILTER_TYPE, Reserved: u32, Filter: extern union { ClusterRanges: [1]CLUSTER_RANGE, FileReferenceRanges: [1]FILE_REFERENCE_RANGE, StorageReserveIds: [1]STORAGE_RESERVE_ID, }, }; pub const QUERY_FILE_LAYOUT_OUTPUT = extern struct { FileEntryCount: u32, FirstFileOffset: u32, Flags: u32, Reserved: u32, }; pub const FILE_LAYOUT_ENTRY = extern struct { Version: u32, NextFileOffset: u32, Flags: u32, FileAttributes: u32, FileReferenceNumber: u64, FirstNameOffset: u32, FirstStreamOffset: u32, ExtraInfoOffset: u32, ExtraInfoLength: u32, }; pub const FILE_LAYOUT_NAME_ENTRY = extern struct { NextNameOffset: u32, Flags: u32, ParentFileReferenceNumber: u64, FileNameLength: u32, Reserved: u32, FileName: [1]u16, }; pub const FILE_LAYOUT_INFO_ENTRY = extern struct { BasicInformation: extern struct { CreationTime: LARGE_INTEGER, LastAccessTime: LARGE_INTEGER, LastWriteTime: LARGE_INTEGER, ChangeTime: LARGE_INTEGER, FileAttributes: u32, }, OwnerId: u32, SecurityId: u32, Usn: i64, StorageReserveId: STORAGE_RESERVE_ID, }; pub const STREAM_LAYOUT_ENTRY = extern struct { Version: u32, NextStreamOffset: u32, Flags: u32, ExtentInformationOffset: u32, AllocationSize: LARGE_INTEGER, EndOfFile: LARGE_INTEGER, StreamInformationOffset: u32, AttributeTypeCode: u32, AttributeFlags: u32, StreamIdentifierLength: u32, StreamIdentifier: [1]u16, }; pub const STREAM_EXTENT_ENTRY = extern struct { Flags: u32, ExtentInformation: extern union { RetrievalPointers: RETRIEVAL_POINTERS_BUFFER, }, }; pub const FSCTL_GET_INTEGRITY_INFORMATION_BUFFER = extern struct { ChecksumAlgorithm: u16, Reserved: u16, Flags: u32, ChecksumChunkSizeInBytes: u32, ClusterSizeInBytes: u32, }; pub const FSCTL_SET_INTEGRITY_INFORMATION_BUFFER = extern struct { ChecksumAlgorithm: u16, Reserved: u16, Flags: u32, }; pub const FSCTL_SET_INTEGRITY_INFORMATION_BUFFER_EX = extern struct { EnableIntegrity: u8, KeepIntegrityStateUnchanged: u8, Reserved: u16, Flags: u32, Version: u8, Reserved2: [7]u8, }; pub const FSCTL_OFFLOAD_READ_INPUT = extern struct { Size: u32, Flags: u32, TokenTimeToLive: u32, Reserved: u32, FileOffset: u64, CopyLength: u64, }; pub const FSCTL_OFFLOAD_READ_OUTPUT = extern struct { Size: u32, Flags: u32, TransferLength: u64, Token: [512]u8, }; pub const FSCTL_OFFLOAD_WRITE_INPUT = extern struct { Size: u32, Flags: u32, FileOffset: u64, CopyLength: u64, TransferOffset: u64, Token: [512]u8, }; pub const FSCTL_OFFLOAD_WRITE_OUTPUT = extern struct { Size: u32, Flags: u32, LengthWritten: u64, }; pub const SET_PURGE_FAILURE_MODE_INPUT = extern struct { Flags: u32, }; pub const REPAIR_COPIES_INPUT = extern struct { Size: u32, Flags: u32, FileOffset: LARGE_INTEGER, Length: u32, SourceCopy: u32, NumberOfRepairCopies: u32, RepairCopies: [1]u32, }; pub const REPAIR_COPIES_OUTPUT = extern struct { Size: u32, Status: u32, ResumeFileOffset: LARGE_INTEGER, }; pub const FILE_REGION_INFO = extern struct { FileOffset: i64, Length: i64, Usage: u32, Reserved: u32, }; pub const FILE_REGION_OUTPUT = extern struct { Flags: u32, TotalRegionEntryCount: u32, RegionEntryCount: u32, Reserved: u32, Region: [1]FILE_REGION_INFO, }; pub const FILE_REGION_INPUT = extern struct { FileOffset: i64, Length: i64, DesiredUsage: u32, }; pub const WRITE_USN_REASON_INPUT = extern struct { Flags: u32, UsnReasonToWrite: u32, }; pub const FILE_STORAGE_TIER_MEDIA_TYPE = enum(i32) { Unspecified = 0, Disk = 1, Ssd = 2, Scm = 4, Max = 5, }; pub const FileStorageTierMediaTypeUnspecified = FILE_STORAGE_TIER_MEDIA_TYPE.Unspecified; pub const FileStorageTierMediaTypeDisk = FILE_STORAGE_TIER_MEDIA_TYPE.Disk; pub const FileStorageTierMediaTypeSsd = FILE_STORAGE_TIER_MEDIA_TYPE.Ssd; pub const FileStorageTierMediaTypeScm = FILE_STORAGE_TIER_MEDIA_TYPE.Scm; pub const FileStorageTierMediaTypeMax = FILE_STORAGE_TIER_MEDIA_TYPE.Max; pub const FILE_STORAGE_TIER_CLASS = enum(i32) { Unspecified = 0, Capacity = 1, Performance = 2, Max = 3, }; pub const FileStorageTierClassUnspecified = FILE_STORAGE_TIER_CLASS.Unspecified; pub const FileStorageTierClassCapacity = FILE_STORAGE_TIER_CLASS.Capacity; pub const FileStorageTierClassPerformance = FILE_STORAGE_TIER_CLASS.Performance; pub const FileStorageTierClassMax = FILE_STORAGE_TIER_CLASS.Max; pub const FILE_STORAGE_TIER = extern struct { Id: Guid, Name: [256]u16, Description: [256]u16, Flags: FILE_STORAGE_TIER_FLAGS, ProvisionedCapacity: u64, MediaType: FILE_STORAGE_TIER_MEDIA_TYPE, Class: FILE_STORAGE_TIER_CLASS, }; pub const FSCTL_QUERY_STORAGE_CLASSES_OUTPUT = extern struct { Version: u32, Size: u32, Flags: FILE_STORAGE_TIER_FLAGS, TotalNumberOfTiers: u32, NumberOfTiersReturned: u32, Tiers: [1]FILE_STORAGE_TIER, }; pub const STREAM_INFORMATION_ENTRY = extern struct { pub const _StreamInformation = extern union { pub const _Reparse = extern struct { Length: u16, Flags: u16, ReparseDataSize: u32, ReparseDataOffset: u32, }; pub const _DesiredStorageClass = extern struct { Class: FILE_STORAGE_TIER_CLASS, Flags: u32, }; pub const _DataStream = extern struct { Length: u16, Flags: u16, Reserved: u32, Vdl: u64, }; pub const _Ea = extern struct { Length: u16, Flags: u16, EaSize: u32, EaInformationOffset: u32, }; DesiredStorageClass: _DesiredStorageClass, DataStream: _DataStream, Reparse: _Reparse, Ea: _Ea, }; Version: u32, Flags: u32, StreamInformation: _StreamInformation, }; pub const FSCTL_QUERY_REGION_INFO_INPUT = extern struct { Version: u32, Size: u32, Flags: u32, NumberOfTierIds: u32, TierIds: [1]Guid, }; pub const FILE_STORAGE_TIER_REGION = extern struct { TierId: Guid, Offset: u64, Length: u64, }; pub const FSCTL_QUERY_REGION_INFO_OUTPUT = extern struct { Version: u32, Size: u32, Flags: u32, Reserved: u32, Alignment: u64, TotalNumberOfRegions: u32, NumberOfRegionsReturned: u32, Regions: [1]FILE_STORAGE_TIER_REGION, }; pub const FILE_DESIRED_STORAGE_CLASS_INFORMATION = extern struct { Class: FILE_STORAGE_TIER_CLASS, Flags: u32, }; pub const DUPLICATE_EXTENTS_DATA = extern struct { FileHandle: ?HANDLE, SourceFileOffset: LARGE_INTEGER, TargetFileOffset: LARGE_INTEGER, ByteCount: LARGE_INTEGER, }; pub const DUPLICATE_EXTENTS_DATA_EX = extern struct { Size: usize, FileHandle: ?HANDLE, SourceFileOffset: LARGE_INTEGER, TargetFileOffset: LARGE_INTEGER, ByteCount: LARGE_INTEGER, Flags: u32, }; pub const DUPLICATE_EXTENTS_STATE = enum(i32) { Inactive = 0, Source = 1, Target = 2, }; pub const FileSnapStateInactive = DUPLICATE_EXTENTS_STATE.Inactive; pub const FileSnapStateSource = DUPLICATE_EXTENTS_STATE.Source; pub const FileSnapStateTarget = DUPLICATE_EXTENTS_STATE.Target; pub const ASYNC_DUPLICATE_EXTENTS_STATUS = extern struct { Version: u32, State: DUPLICATE_EXTENTS_STATE, SourceFileOffset: u64, TargetFileOffset: u64, ByteCount: u64, BytesDuplicated: u64, }; pub const REFS_SMR_VOLUME_GC_STATE = enum(i32) { Inactive = 0, Paused = 1, Active = 2, ActiveFullSpeed = 3, }; pub const SmrGcStateInactive = REFS_SMR_VOLUME_GC_STATE.Inactive; pub const SmrGcStatePaused = REFS_SMR_VOLUME_GC_STATE.Paused; pub const SmrGcStateActive = REFS_SMR_VOLUME_GC_STATE.Active; pub const SmrGcStateActiveFullSpeed = REFS_SMR_VOLUME_GC_STATE.ActiveFullSpeed; pub const REFS_SMR_VOLUME_INFO_OUTPUT = extern struct { Version: u32, Flags: u32, SizeOfRandomlyWritableTier: LARGE_INTEGER, FreeSpaceInRandomlyWritableTier: LARGE_INTEGER, SizeofSMRTier: LARGE_INTEGER, FreeSpaceInSMRTier: LARGE_INTEGER, UsableFreeSpaceInSMRTier: LARGE_INTEGER, VolumeGcState: REFS_SMR_VOLUME_GC_STATE, VolumeGcLastStatus: u32, CurrentGcBandFillPercentage: u32, Unused: [6]u64, }; pub const REFS_SMR_VOLUME_GC_ACTION = enum(i32) { Start = 1, StartFullSpeed = 2, Pause = 3, Stop = 4, }; pub const SmrGcActionStart = REFS_SMR_VOLUME_GC_ACTION.Start; pub const SmrGcActionStartFullSpeed = REFS_SMR_VOLUME_GC_ACTION.StartFullSpeed; pub const SmrGcActionPause = REFS_SMR_VOLUME_GC_ACTION.Pause; pub const SmrGcActionStop = REFS_SMR_VOLUME_GC_ACTION.Stop; pub const REFS_SMR_VOLUME_GC_METHOD = enum(i32) { Compaction = 1, Compression = 2, Rotation = 3, }; pub const SmrGcMethodCompaction = REFS_SMR_VOLUME_GC_METHOD.Compaction; pub const SmrGcMethodCompression = REFS_SMR_VOLUME_GC_METHOD.Compression; pub const SmrGcMethodRotation = REFS_SMR_VOLUME_GC_METHOD.Rotation; pub const REFS_SMR_VOLUME_GC_PARAMETERS = extern struct { Version: u32, Flags: u32, Action: REFS_SMR_VOLUME_GC_ACTION, Method: REFS_SMR_VOLUME_GC_METHOD, IoGranularity: u32, CompressionFormat: u32, Unused: [8]u64, }; pub const STREAMS_QUERY_PARAMETERS_OUTPUT_BUFFER = extern struct { OptimalWriteSize: u32, StreamGranularitySize: u32, StreamIdMin: u32, StreamIdMax: u32, }; pub const STREAMS_ASSOCIATE_ID_INPUT_BUFFER = extern struct { Flags: u32, StreamId: u32, }; pub const STREAMS_QUERY_ID_OUTPUT_BUFFER = extern struct { StreamId: u32, }; pub const QUERY_BAD_RANGES_INPUT_RANGE = extern struct { StartOffset: u64, LengthInBytes: u64, }; pub const QUERY_BAD_RANGES_INPUT = extern struct { Flags: u32, NumRanges: u32, Ranges: [1]QUERY_BAD_RANGES_INPUT_RANGE, }; pub const QUERY_BAD_RANGES_OUTPUT_RANGE = extern struct { Flags: u32, Reserved: u32, StartOffset: u64, LengthInBytes: u64, }; pub const QUERY_BAD_RANGES_OUTPUT = extern struct { Flags: u32, NumBadRanges: u32, NextOffsetToLookUp: u64, BadRanges: [1]QUERY_BAD_RANGES_OUTPUT_RANGE, }; pub const SET_DAX_ALLOC_ALIGNMENT_HINT_INPUT = extern struct { Flags: u32, AlignmentShift: u32, FileOffsetToAlign: u64, FallbackAlignmentShift: u32, }; pub const VIRTUAL_STORAGE_BEHAVIOR_CODE = enum(i32) { Undefined = 0, CacheWriteThrough = 1, CacheWriteBack = 2, StopIoProcessing = 3, RestartIoProcessing = 4, }; pub const VirtualStorageBehaviorUndefined = VIRTUAL_STORAGE_BEHAVIOR_CODE.Undefined; pub const VirtualStorageBehaviorCacheWriteThrough = VIRTUAL_STORAGE_BEHAVIOR_CODE.CacheWriteThrough; pub const VirtualStorageBehaviorCacheWriteBack = VIRTUAL_STORAGE_BEHAVIOR_CODE.CacheWriteBack; pub const VirtualStorageBehaviorStopIoProcessing = VIRTUAL_STORAGE_BEHAVIOR_CODE.StopIoProcessing; pub const VirtualStorageBehaviorRestartIoProcessing = VIRTUAL_STORAGE_BEHAVIOR_CODE.RestartIoProcessing; pub const VIRTUAL_STORAGE_SET_BEHAVIOR_INPUT = extern struct { Size: u32, BehaviorCode: VIRTUAL_STORAGE_BEHAVIOR_CODE, }; pub const ENCRYPTION_KEY_CTRL_INPUT = extern struct { HeaderSize: u32, StructureSize: u32, KeyOffset: u16, KeySize: u16, DplLock: u32, DplUserId: u64, DplCredentialId: u64, }; pub const WOF_EXTERNAL_INFO = extern struct { Version: u32, Provider: u32, }; pub const WOF_EXTERNAL_FILE_ID = extern struct { FileId: FILE_ID_128, }; pub const WOF_VERSION_INFO = extern struct { WofVersion: u32, }; pub const WIM_PROVIDER_EXTERNAL_INFO = extern struct { Version: u32, Flags: u32, DataSourceId: LARGE_INTEGER, ResourceHash: [20]u8, }; pub const WIM_PROVIDER_ADD_OVERLAY_INPUT = extern struct { WimType: u32, WimIndex: u32, WimFileNameOffset: u32, WimFileNameLength: u32, }; pub const WIM_PROVIDER_UPDATE_OVERLAY_INPUT = extern struct { DataSourceId: LARGE_INTEGER, WimFileNameOffset: u32, WimFileNameLength: u32, }; pub const WIM_PROVIDER_REMOVE_OVERLAY_INPUT = extern struct { DataSourceId: LARGE_INTEGER, }; pub const WIM_PROVIDER_SUSPEND_OVERLAY_INPUT = extern struct { DataSourceId: LARGE_INTEGER, }; pub const WIM_PROVIDER_OVERLAY_ENTRY = extern struct { NextEntryOffset: u32, DataSourceId: LARGE_INTEGER, WimGuid: Guid, WimFileNameOffset: u32, WimType: u32, WimIndex: u32, Flags: u32, }; pub const FILE_PROVIDER_EXTERNAL_INFO_V0 = extern struct { Version: u32, Algorithm: u32, }; pub const FILE_PROVIDER_EXTERNAL_INFO_V1 = extern struct { Version: u32, Algorithm: u32, Flags: u32, }; pub const CONTAINER_VOLUME_STATE = extern struct { Flags: u32, }; pub const CONTAINER_ROOT_INFO_INPUT = extern struct { Flags: u32, }; pub const CONTAINER_ROOT_INFO_OUTPUT = extern struct { ContainerRootIdLength: u16, ContainerRootId: [1]u8, }; pub const VIRTUALIZATION_INSTANCE_INFO_INPUT = extern struct { NumberOfWorkerThreads: u32, Flags: u32, }; pub const VIRTUALIZATION_INSTANCE_INFO_INPUT_EX = extern struct { HeaderSize: u16, Flags: u32, NotificationInfoSize: u32, NotificationInfoOffset: u16, ProviderMajorVersion: u16, }; pub const VIRTUALIZATION_INSTANCE_INFO_OUTPUT = extern struct { VirtualizationInstanceID: Guid, }; pub const GET_FILTER_FILE_IDENTIFIER_INPUT = extern struct { AltitudeLength: u16, Altitude: [1]u16, }; pub const GET_FILTER_FILE_IDENTIFIER_OUTPUT = extern struct { FilterFileIdentifierLength: u16, FilterFileIdentifier: [1]u8, }; pub const FS_BPIO_OPERATIONS = enum(i32) { ENABLE = 1, DISABLE = 2, QUERY = 3, VOLUME_STACK_PAUSE = 4, VOLUME_STACK_RESUME = 5, STREAM_PAUSE = 6, STREAM_RESUME = 7, GET_INFO = 8, MAX_OPERATION = 9, }; pub const FS_BPIO_OP_ENABLE = FS_BPIO_OPERATIONS.ENABLE; pub const FS_BPIO_OP_DISABLE = FS_BPIO_OPERATIONS.DISABLE; pub const FS_BPIO_OP_QUERY = FS_BPIO_OPERATIONS.QUERY; pub const FS_BPIO_OP_VOLUME_STACK_PAUSE = FS_BPIO_OPERATIONS.VOLUME_STACK_PAUSE; pub const FS_BPIO_OP_VOLUME_STACK_RESUME = FS_BPIO_OPERATIONS.VOLUME_STACK_RESUME; pub const FS_BPIO_OP_STREAM_PAUSE = FS_BPIO_OPERATIONS.STREAM_PAUSE; pub const FS_BPIO_OP_STREAM_RESUME = FS_BPIO_OPERATIONS.STREAM_RESUME; pub const FS_BPIO_OP_GET_INFO = FS_BPIO_OPERATIONS.GET_INFO; pub const FS_BPIO_OP_MAX_OPERATION = FS_BPIO_OPERATIONS.MAX_OPERATION; pub const FS_BPIO_INFLAGS = enum(i32) { None = 0, SKIP_STORAGE_STACK_QUERY = 1, }; pub const FSBPIO_INFL_None = FS_BPIO_INFLAGS.None; pub const FSBPIO_INFL_SKIP_STORAGE_STACK_QUERY = FS_BPIO_INFLAGS.SKIP_STORAGE_STACK_QUERY; pub const FS_BPIO_INPUT = extern struct { Operation: FS_BPIO_OPERATIONS, InFlags: FS_BPIO_INFLAGS, Reserved1: u64, Reserved2: u64, }; pub const FS_BPIO_OUTFLAGS = enum(i32) { None = 0, VOLUME_STACK_BYPASS_PAUSED = 1, STREAM_BYPASS_PAUSED = 2, FILTER_ATTACH_BLOCKED = 4, COMPATIBLE_STORAGE_DRIVER = 8, }; pub const FSBPIO_OUTFL_None = FS_BPIO_OUTFLAGS.None; pub const FSBPIO_OUTFL_VOLUME_STACK_BYPASS_PAUSED = FS_BPIO_OUTFLAGS.VOLUME_STACK_BYPASS_PAUSED; pub const FSBPIO_OUTFL_STREAM_BYPASS_PAUSED = FS_BPIO_OUTFLAGS.STREAM_BYPASS_PAUSED; pub const FSBPIO_OUTFL_FILTER_ATTACH_BLOCKED = FS_BPIO_OUTFLAGS.FILTER_ATTACH_BLOCKED; pub const FSBPIO_OUTFL_COMPATIBLE_STORAGE_DRIVER = FS_BPIO_OUTFLAGS.COMPATIBLE_STORAGE_DRIVER; pub const FS_BPIO_RESULTS = extern struct { OpStatus: u32, FailingDriverNameLen: u16, FailingDriverName: [32]u16, FailureReasonLen: u16, FailureReason: [128]u16, }; pub const FS_BPIO_INFO = extern struct { ActiveBypassIoCount: u32, StorageDriverNameLen: u16, StorageDriverName: [32]u16, }; pub const FS_BPIO_OUTPUT = extern struct { Operation: FS_BPIO_OPERATIONS, OutFlags: FS_BPIO_OUTFLAGS, Reserved1: u64, Reserved2: u64, Anonymous: extern union { Enable: FS_BPIO_RESULTS, Query: FS_BPIO_RESULTS, VolumeStackResume: FS_BPIO_RESULTS, StreamResume: FS_BPIO_RESULTS, GetInfo: FS_BPIO_INFO, }, }; pub const SMB_SHARE_FLUSH_AND_PURGE_INPUT = extern struct { Version: u16, }; pub const SMB_SHARE_FLUSH_AND_PURGE_OUTPUT = extern struct { cEntriesPurged: u32, }; pub const DISK_EXTENT = extern struct { DiskNumber: u32, StartingOffset: LARGE_INTEGER, ExtentLength: LARGE_INTEGER, }; pub const VOLUME_DISK_EXTENTS = extern struct { NumberOfDiskExtents: u32, Extents: [1]DISK_EXTENT, }; pub const VOLUME_GET_GPT_ATTRIBUTES_INFORMATION = extern struct { GptAttributes: u64, }; // TODO: this function pointer causes dependency loop problems, so it's stubbed out pub const PIO_IRP_EXT_PROCESS_TRACKED_OFFSET_CALLBACK = switch (@import("builtin").zig_backend) { .stage1 => fn () callconv(@import("std").os.windows.WINAPI) void, else => *const fn () callconv(@import("std").os.windows.WINAPI) void, }; pub const IO_IRP_EXT_TRACK_OFFSET_HEADER = extern struct { Validation: u16, Flags: u16, TrackedOffsetCallback: ?PIO_IRP_EXT_PROCESS_TRACKED_OFFSET_CALLBACK, }; pub const MOVE_FILE_DATA32 = switch (@import("../zig.zig").arch) { .X64, .Arm64 => extern struct { FileHandle: u32, StartingVcn: LARGE_INTEGER, StartingLcn: LARGE_INTEGER, ClusterCount: u32, }, else => usize, // NOTE: this should be a @compileError but can't because of https://github.com/ziglang/zig/issues/9682 }; pub const MARK_HANDLE_INFO32 = switch (@import("../zig.zig").arch) { .X64, .Arm64 => extern struct { Anonymous: extern union { UsnSourceInfo: u32, CopyNumber: u32, }, VolumeHandle: u32, HandleInfo: u32, }, else => usize, // NOTE: this should be a @compileError but can't because of https://github.com/ziglang/zig/issues/9682 }; pub const DUPLICATE_EXTENTS_DATA32 = switch (@import("../zig.zig").arch) { .X64, .Arm64 => extern struct { FileHandle: u32, SourceFileOffset: LARGE_INTEGER, TargetFileOffset: LARGE_INTEGER, ByteCount: LARGE_INTEGER, }, else => usize, // NOTE: this should be a @compileError but can't because of https://github.com/ziglang/zig/issues/9682 }; pub const DUPLICATE_EXTENTS_DATA_EX32 = switch (@import("../zig.zig").arch) { .X64, .Arm64 => extern struct { Size: u32, FileHandle: u32, SourceFileOffset: LARGE_INTEGER, TargetFileOffset: LARGE_INTEGER, ByteCount: LARGE_INTEGER, Flags: u32, }, else => usize, // NOTE: this should be a @compileError but can't because of https://github.com/ziglang/zig/issues/9682 }; //-------------------------------------------------------------------------------- // Section: Functions (0) //-------------------------------------------------------------------------------- //-------------------------------------------------------------------------------- // Section: Unicode Aliases (0) //-------------------------------------------------------------------------------- const thismodule = @This(); pub usingnamespace switch (@import("../zig.zig").unicode_mode) { .ansi => struct {}, .wide => struct {}, .unspecified => if (@import("builtin").is_test) struct {} else struct {}, }; //-------------------------------------------------------------------------------- // Section: Imports (10) //-------------------------------------------------------------------------------- const Guid = @import("../zig.zig").Guid; const BOOLEAN = @import("../foundation.zig").BOOLEAN; const CHAR = @import("../foundation.zig").CHAR; const FILE_ID_128 = @import("../storage/file_system.zig").FILE_ID_128; const HANDLE = @import("../foundation.zig").HANDLE; const LARGE_INTEGER = @import("../foundation.zig").LARGE_INTEGER; const PROPERTYKEY = @import("../ui/shell/properties_system.zig").PROPERTYKEY; const SID = @import("../security.zig").SID; const STORAGE_BUS_TYPE = @import("../storage/file_system.zig").STORAGE_BUS_TYPE; const VIRTUAL_STORAGE_TYPE = @import("../storage/vhd.zig").VIRTUAL_STORAGE_TYPE; test { @setEvalBranchQuota(comptime @import("std").meta.declarations(@This()).len * 3); // reference all the pub declarations if (!@import("builtin").is_test) return; inline for (comptime @import("std").meta.declarations(@This())) |decl| { if (decl.is_pub) { _ = @field(@This(), decl.name); } } }
0
repos/capy/vendor/zigwin32/win32
repos/capy/vendor/zigwin32/win32/system/parental_controls.zig
//! NOTE: this file is autogenerated, DO NOT MODIFY //-------------------------------------------------------------------------------- // Section: Constants (103) //-------------------------------------------------------------------------------- pub const ARRAY_SEP_CHAR = @as(u32, 9); pub const WPCCHANNEL = @as(u32, 16); pub const WPC_SETTINGS_LOCATE = @as(u32, 20); pub const WPC_SETTINGS_MODIFY = @as(u32, 21); pub const WPC_APP_LAUNCH = @as(u32, 22); pub const WPC_SYSTEM = @as(u32, 23); pub const WPC_WEB = @as(u32, 24); pub const WPCPROV_TASK_SettingChange = @as(u32, 1); pub const WPCPROV_TASK_GameStart = @as(u32, 2); pub const WPCPROV_TASK_UrlVisit = @as(u32, 3); pub const WPCPROV_TASK_EmailReceived = @as(u32, 4); pub const WPCPROV_TASK_EmailSent = @as(u32, 5); pub const WPCPROV_TASK_MediaPlayback = @as(u32, 6); pub const WPCPROV_TASK_IMInvitation = @as(u32, 7); pub const WPCPROV_TASK_IMJoin = @as(u32, 8); pub const WPCPROV_TASK_IMLeave = @as(u32, 9); pub const WPCPROV_TASK_FileDownload = @as(u32, 10); pub const WPCPROV_TASK_IMFeature = @as(u32, 11); pub const WPCPROV_TASK_Custom = @as(u32, 13); pub const WPCPROV_TASK_EmailContact = @as(u32, 14); pub const WPCPROV_TASK_IMContact = @as(u32, 15); pub const WPCPROV_TASK_AppBlocked = @as(u32, 16); pub const WPCPROV_TASK_AppOverride = @as(u32, 17); pub const WPCPROV_TASK_WebOverride = @as(u32, 18); pub const WPCPROV_TASK_WebsiteVisit = @as(u32, 19); pub const WPCPROV_TASK_Application = @as(u32, 20); pub const WPCPROV_TASK_ComputerUsage = @as(u32, 21); pub const WPCPROV_TASK_ContentUsage = @as(u32, 22); pub const WPCPROV_KEYWORD_WPC = @as(u32, 16); pub const WPCPROV_KEYWORD_ThirdParty = @as(u32, 32); pub const WPCEVENT_SYS_SETTINGCHANGE_value = @as(u32, 1); pub const WPCEVENT_GAME_START_value = @as(u32, 2); pub const WPCEVENT_WEB_URLVISIT_value = @as(u32, 3); pub const WPCEVENT_EMAIL_RECEIVED_value = @as(u32, 4); pub const WPCEVENT_EMAIL_SENT_value = @as(u32, 5); pub const WPCEVENT_MEDIA_PLAYBACK_value = @as(u32, 6); pub const WPCEVENT_IM_INVITATION_value = @as(u32, 7); pub const WPCEVENT_IM_JOIN_value = @as(u32, 8); pub const WPCEVENT_IM_LEAVE_value = @as(u32, 9); pub const WPCEVENT_WEB_FILEDOWNLOAD_value = @as(u32, 10); pub const WPCEVENT_IM_FEATURE_value = @as(u32, 11); pub const WPCEVENT_CUSTOM_value = @as(u32, 13); pub const WPCEVENT_EMAIL_CONTACT_value = @as(u32, 14); pub const WPCEVENT_IM_CONTACT_value = @as(u32, 15); pub const WPCEVENT_SYSTEM_APPBLOCKED_value = @as(u32, 16); pub const WPCEVENT_APPOVERRIDE_value = @as(u32, 17); pub const WPCEVENT_WEBOVERRIDE_value = @as(u32, 18); pub const WPCEVENT_WEB_WEBSITEVISIT_value = @as(u32, 19); pub const WPCEVENT_APPLICATION_value = @as(u32, 20); pub const WPCEVENT_COMPUTERUSAGE_value = @as(u32, 21); pub const WPCEVENT_CONTENTUSAGE_value = @as(u32, 22); pub const MSG_Keyword_WPC = @as(i32, 268435461); pub const MSG_Keyword_ThirdParty = @as(i32, 268435462); pub const MSG_Opcode_Locate = @as(i32, 805306388); pub const MSG_Opcode_Modify = @as(i32, 805306389); pub const MSG_Opcode_Launch = @as(i32, 805306390); pub const MSG_Opcode_System = @as(i32, 805306391); pub const MSG_Opcode_Web = @as(i32, 805306392); pub const MSG_Task_SettingChange = @as(i32, 1879048193); pub const MSG_Task_GameStart = @as(i32, 1879048194); pub const MSG_Task_UrlVisit = @as(i32, 1879048195); pub const MSG_Task_EmailReceived = @as(i32, 1879048196); pub const MSG_Task_EmailSent = @as(i32, 1879048197); pub const MSG_Task_MediaPlayback = @as(i32, 1879048198); pub const MSG_Task_IMInvitation = @as(i32, 1879048199); pub const MSG_Task_IMJoin = @as(i32, 1879048200); pub const MSG_Task_IMLeave = @as(i32, 1879048201); pub const MSG_Task_FileDownload = @as(i32, 1879048202); pub const MSG_Task_IMFeature = @as(i32, 1879048203); pub const MSG_Task_Custom = @as(i32, 1879048205); pub const MSG_Task_EmailContact = @as(i32, 1879048206); pub const MSG_Task_IMContact = @as(i32, 1879048207); pub const MSG_Task_AppBlocked = @as(i32, 1879048208); pub const MSG_Task_AppOverride = @as(i32, 1879048209); pub const MSG_Task_WebOverride = @as(i32, 1879048210); pub const MSG_Task_WebsiteVisit = @as(i32, 1879048211); pub const MSG_Task_Application = @as(i32, 1879048212); pub const MSG_Task_ComputerUsage = @as(i32, 1879048213); pub const MSG_Task_ContentUsage = @as(i32, 1879048214); pub const MSG_Publisher_Name = @as(i32, -1879048191); pub const MSG_Event_SettingChange = @as(i32, -1342177279); pub const MSG_Event_GameStart = @as(i32, -1342177278); pub const MSG_Event_UrlVisit = @as(i32, -1342177277); pub const MSG_Event_EmailReceived = @as(i32, -1342177276); pub const MSG_Event_EmailSent = @as(i32, -1342177275); pub const MSG_Event_MediaPlayback = @as(i32, -1342177274); pub const MSG_Event_IMInvitation = @as(i32, -1342177273); pub const MSG_Event_IMJoin = @as(i32, -1342177272); pub const MSG_Event_IMLeave = @as(i32, -1342177271); pub const MSG_Event_FileDownload = @as(i32, -1342177270); pub const MSG_Event_IMFeature = @as(i32, -1342177269); pub const MSG_Event_Custom = @as(i32, -1342177267); pub const MSG_Event_EmailContact = @as(i32, -1342177266); pub const MSG_Event_IMContact = @as(i32, -1342177265); pub const MSG_Event_AppBlocked = @as(i32, -1342177264); pub const MSG_Event_AppOverride = @as(i32, -1342177263); pub const MSG_Event_WebOverride = @as(i32, -1342177262); pub const MSG_Event_WebsiteVisit = @as(i32, -1342177261); pub const MSG_Event_Application = @as(i32, -1342177260); pub const MSG_Event_ComputerUsage = @as(i32, -1342177259); pub const MSG_Event_ContentUsage = @as(i32, -1342177258); pub const FACILITY_WPC = @as(u32, 2457); pub const WPCPROV = Guid.initString("01090065-b467-4503-9b28-533766761087"); //-------------------------------------------------------------------------------- // Section: Types (44) //-------------------------------------------------------------------------------- const CLSID_WpcSettingsProvider_Value = Guid.initString("355dffaa-3b9f-435c-b428-5d44290bc5f2"); pub const CLSID_WpcSettingsProvider = &CLSID_WpcSettingsProvider_Value; const CLSID_WpcProviderSupport_Value = Guid.initString("bb18c7a0-2186-4be0-97d8-04847b628e02"); pub const CLSID_WpcProviderSupport = &CLSID_WpcProviderSupport_Value; const CLSID_WindowsParentalControls_Value = Guid.initString("e77cc89b-7401-4c04-8ced-149db35add04"); pub const CLSID_WindowsParentalControls = &CLSID_WindowsParentalControls_Value; // TODO: this type is limited to platform 'windows6.1' const IID_IWPCProviderState_Value = Guid.initString("50b6a267-c4bd-450b-adb5-759073837c9e"); pub const IID_IWPCProviderState = &IID_IWPCProviderState_Value; pub const IWPCProviderState = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, Enable: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IWPCProviderState, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IWPCProviderState, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Disable: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IWPCProviderState, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IWPCProviderState, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWPCProviderState_Enable(self: *const T) HRESULT { return @as(*const IWPCProviderState.VTable, @ptrCast(self.vtable)).Enable(@as(*const IWPCProviderState, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWPCProviderState_Disable(self: *const T) HRESULT { return @as(*const IWPCProviderState.VTable, @ptrCast(self.vtable)).Disable(@as(*const IWPCProviderState, @ptrCast(self))); } }; } pub usingnamespace MethodMixin(@This()); }; pub const WPCFLAG_OVERRIDE = enum(i32) { N = 1, }; pub const WPCFLAG_APPLICATION = WPCFLAG_OVERRIDE.N; // TODO: this type is limited to platform 'windows6.1' const IID_IWPCProviderConfig_Value = Guid.initString("bef54196-2d02-4a26-b6e5-d65af295d0f1"); pub const IID_IWPCProviderConfig = &IID_IWPCProviderConfig_Value; pub const IWPCProviderConfig = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, GetUserSummary: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IWPCProviderConfig, bstrSID: ?BSTR, pbstrUserSummary: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IWPCProviderConfig, bstrSID: ?BSTR, pbstrUserSummary: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Configure: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IWPCProviderConfig, hWnd: ?HWND, bstrSID: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IWPCProviderConfig, hWnd: ?HWND, bstrSID: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, RequestOverride: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IWPCProviderConfig, hWnd: ?HWND, bstrPath: ?BSTR, dwFlags: WPCFLAG_RESTRICTION, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IWPCProviderConfig, hWnd: ?HWND, bstrPath: ?BSTR, dwFlags: WPCFLAG_RESTRICTION, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWPCProviderConfig_GetUserSummary(self: *const T, bstrSID: ?BSTR, pbstrUserSummary: ?*?BSTR) HRESULT { return @as(*const IWPCProviderConfig.VTable, @ptrCast(self.vtable)).GetUserSummary(@as(*const IWPCProviderConfig, @ptrCast(self)), bstrSID, pbstrUserSummary); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWPCProviderConfig_Configure(self: *const T, hWnd: ?HWND, bstrSID: ?BSTR) HRESULT { return @as(*const IWPCProviderConfig.VTable, @ptrCast(self.vtable)).Configure(@as(*const IWPCProviderConfig, @ptrCast(self)), hWnd, bstrSID); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWPCProviderConfig_RequestOverride(self: *const T, hWnd: ?HWND, bstrPath: ?BSTR, dwFlags: WPCFLAG_RESTRICTION) HRESULT { return @as(*const IWPCProviderConfig.VTable, @ptrCast(self.vtable)).RequestOverride(@as(*const IWPCProviderConfig, @ptrCast(self)), hWnd, bstrPath, dwFlags); } }; } pub usingnamespace MethodMixin(@This()); }; pub const WPCFLAG_RESTRICTION = enum(i32) { NO_RESTRICTION = 0, LOGGING_REQUIRED = 1, WEB_FILTERED = 2, HOURS_RESTRICTED = 4, GAMES_BLOCKED = 8, APPS_RESTRICTED = 16, TIME_ALLOWANCE_RESTRICTED = 32, GAMES_RESTRICTED = 64, }; pub const WPCFLAG_NO_RESTRICTION = WPCFLAG_RESTRICTION.NO_RESTRICTION; pub const WPCFLAG_LOGGING_REQUIRED = WPCFLAG_RESTRICTION.LOGGING_REQUIRED; pub const WPCFLAG_WEB_FILTERED = WPCFLAG_RESTRICTION.WEB_FILTERED; pub const WPCFLAG_HOURS_RESTRICTED = WPCFLAG_RESTRICTION.HOURS_RESTRICTED; pub const WPCFLAG_GAMES_BLOCKED = WPCFLAG_RESTRICTION.GAMES_BLOCKED; pub const WPCFLAG_APPS_RESTRICTED = WPCFLAG_RESTRICTION.APPS_RESTRICTED; pub const WPCFLAG_TIME_ALLOWANCE_RESTRICTED = WPCFLAG_RESTRICTION.TIME_ALLOWANCE_RESTRICTED; pub const WPCFLAG_GAMES_RESTRICTED = WPCFLAG_RESTRICTION.GAMES_RESTRICTED; // TODO: this type is limited to platform 'windows6.0.6000' const IID_IWPCSettings_Value = Guid.initString("8fdf6ca1-0189-47e4-b670-1a8a4636e340"); pub const IID_IWPCSettings = &IID_IWPCSettings_Value; pub const IWPCSettings = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, IsLoggingRequired: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IWPCSettings, pfRequired: ?*BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IWPCSettings, pfRequired: ?*BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetLastSettingsChangeTime: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IWPCSettings, pTime: ?*SYSTEMTIME, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IWPCSettings, pTime: ?*SYSTEMTIME, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetRestrictions: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IWPCSettings, pdwRestrictions: ?*WPCFLAG_RESTRICTION, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IWPCSettings, pdwRestrictions: ?*WPCFLAG_RESTRICTION, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWPCSettings_IsLoggingRequired(self: *const T, pfRequired: ?*BOOL) HRESULT { return @as(*const IWPCSettings.VTable, @ptrCast(self.vtable)).IsLoggingRequired(@as(*const IWPCSettings, @ptrCast(self)), pfRequired); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWPCSettings_GetLastSettingsChangeTime(self: *const T, pTime: ?*SYSTEMTIME) HRESULT { return @as(*const IWPCSettings.VTable, @ptrCast(self.vtable)).GetLastSettingsChangeTime(@as(*const IWPCSettings, @ptrCast(self)), pTime); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWPCSettings_GetRestrictions(self: *const T, pdwRestrictions: ?*WPCFLAG_RESTRICTION) HRESULT { return @as(*const IWPCSettings.VTable, @ptrCast(self.vtable)).GetRestrictions(@as(*const IWPCSettings, @ptrCast(self)), pdwRestrictions); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows6.0.6000' const IID_IWPCGamesSettings_Value = Guid.initString("95e87780-e158-489e-b452-bbb850790715"); pub const IID_IWPCGamesSettings = &IID_IWPCGamesSettings_Value; pub const IWPCGamesSettings = extern struct { pub const VTable = extern struct { base: IWPCSettings.VTable, IsBlocked: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IWPCGamesSettings, guidAppID: Guid, pdwReasons: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IWPCGamesSettings, guidAppID: Guid, pdwReasons: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IWPCSettings.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWPCGamesSettings_IsBlocked(self: *const T, guidAppID: Guid, pdwReasons: ?*u32) HRESULT { return @as(*const IWPCGamesSettings.VTable, @ptrCast(self.vtable)).IsBlocked(@as(*const IWPCGamesSettings, @ptrCast(self)), guidAppID, pdwReasons); } }; } pub usingnamespace MethodMixin(@This()); }; pub const WPCFLAG_WEB_SETTING = enum(i32) { NOTBLOCKED = 0, DOWNLOADSBLOCKED = 1, }; pub const WPCFLAG_WEB_SETTING_NOTBLOCKED = WPCFLAG_WEB_SETTING.NOTBLOCKED; pub const WPCFLAG_WEB_SETTING_DOWNLOADSBLOCKED = WPCFLAG_WEB_SETTING.DOWNLOADSBLOCKED; // TODO: this type is limited to platform 'windows6.0.6000' const IID_IWPCWebSettings_Value = Guid.initString("ffccbdb8-0992-4c30-b0f1-1cbb09c240aa"); pub const IID_IWPCWebSettings = &IID_IWPCWebSettings_Value; pub const IWPCWebSettings = extern struct { pub const VTable = extern struct { base: IWPCSettings.VTable, GetSettings: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IWPCWebSettings, pdwSettings: ?*WPCFLAG_WEB_SETTING, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IWPCWebSettings, pdwSettings: ?*WPCFLAG_WEB_SETTING, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, RequestURLOverride: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IWPCWebSettings, hWnd: ?HWND, pcszURL: ?[*:0]const u16, cURLs: u32, ppcszSubURLs: ?[*]?PWSTR, pfChanged: ?*BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IWPCWebSettings, hWnd: ?HWND, pcszURL: ?[*:0]const u16, cURLs: u32, ppcszSubURLs: ?[*]?PWSTR, pfChanged: ?*BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IWPCSettings.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWPCWebSettings_GetSettings(self: *const T, pdwSettings: ?*WPCFLAG_WEB_SETTING) HRESULT { return @as(*const IWPCWebSettings.VTable, @ptrCast(self.vtable)).GetSettings(@as(*const IWPCWebSettings, @ptrCast(self)), pdwSettings); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWPCWebSettings_RequestURLOverride(self: *const T, hWnd: ?HWND, pcszURL: ?[*:0]const u16, cURLs: u32, ppcszSubURLs: ?[*]?PWSTR, pfChanged: ?*BOOL) HRESULT { return @as(*const IWPCWebSettings.VTable, @ptrCast(self.vtable)).RequestURLOverride(@as(*const IWPCWebSettings, @ptrCast(self)), hWnd, pcszURL, cURLs, ppcszSubURLs, pfChanged); } }; } pub usingnamespace MethodMixin(@This()); }; pub const WPCFLAG_VISIBILITY = enum(i32) { VISIBLE = 0, HIDDEN = 1, }; pub const WPCFLAG_WPC_VISIBLE = WPCFLAG_VISIBILITY.VISIBLE; pub const WPCFLAG_WPC_HIDDEN = WPCFLAG_VISIBILITY.HIDDEN; // TODO: this type is limited to platform 'windows6.0.6000' const IID_IWindowsParentalControlsCore_Value = Guid.initString("4ff40a0f-3f3b-4d7c-a41b-4f39d7b44d05"); pub const IID_IWindowsParentalControlsCore = &IID_IWindowsParentalControlsCore_Value; pub const IWindowsParentalControlsCore = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, GetVisibility: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IWindowsParentalControlsCore, peVisibility: ?*WPCFLAG_VISIBILITY, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IWindowsParentalControlsCore, peVisibility: ?*WPCFLAG_VISIBILITY, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetUserSettings: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IWindowsParentalControlsCore, pcszSID: ?[*:0]const u16, ppSettings: ?*?*IWPCSettings, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IWindowsParentalControlsCore, pcszSID: ?[*:0]const u16, ppSettings: ?*?*IWPCSettings, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetWebSettings: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IWindowsParentalControlsCore, pcszSID: ?[*:0]const u16, ppSettings: ?*?*IWPCWebSettings, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IWindowsParentalControlsCore, pcszSID: ?[*:0]const u16, ppSettings: ?*?*IWPCWebSettings, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetWebFilterInfo: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IWindowsParentalControlsCore, pguidID: ?*Guid, ppszName: ?*?PWSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IWindowsParentalControlsCore, pguidID: ?*Guid, ppszName: ?*?PWSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWindowsParentalControlsCore_GetVisibility(self: *const T, peVisibility: ?*WPCFLAG_VISIBILITY) HRESULT { return @as(*const IWindowsParentalControlsCore.VTable, @ptrCast(self.vtable)).GetVisibility(@as(*const IWindowsParentalControlsCore, @ptrCast(self)), peVisibility); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWindowsParentalControlsCore_GetUserSettings(self: *const T, pcszSID: ?[*:0]const u16, ppSettings: ?*?*IWPCSettings) HRESULT { return @as(*const IWindowsParentalControlsCore.VTable, @ptrCast(self.vtable)).GetUserSettings(@as(*const IWindowsParentalControlsCore, @ptrCast(self)), pcszSID, ppSettings); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWindowsParentalControlsCore_GetWebSettings(self: *const T, pcszSID: ?[*:0]const u16, ppSettings: ?*?*IWPCWebSettings) HRESULT { return @as(*const IWindowsParentalControlsCore.VTable, @ptrCast(self.vtable)).GetWebSettings(@as(*const IWindowsParentalControlsCore, @ptrCast(self)), pcszSID, ppSettings); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWindowsParentalControlsCore_GetWebFilterInfo(self: *const T, pguidID: ?*Guid, ppszName: ?*?PWSTR) HRESULT { return @as(*const IWindowsParentalControlsCore.VTable, @ptrCast(self.vtable)).GetWebFilterInfo(@as(*const IWindowsParentalControlsCore, @ptrCast(self)), pguidID, ppszName); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows6.0.6000' const IID_IWindowsParentalControls_Value = Guid.initString("28b4d88b-e072-49e6-804d-26edbe21a7b9"); pub const IID_IWindowsParentalControls = &IID_IWindowsParentalControls_Value; pub const IWindowsParentalControls = extern struct { pub const VTable = extern struct { base: IWindowsParentalControlsCore.VTable, GetGamesSettings: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IWindowsParentalControls, pcszSID: ?[*:0]const u16, ppSettings: ?*?*IWPCGamesSettings, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IWindowsParentalControls, pcszSID: ?[*:0]const u16, ppSettings: ?*?*IWPCGamesSettings, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IWindowsParentalControlsCore.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWindowsParentalControls_GetGamesSettings(self: *const T, pcszSID: ?[*:0]const u16, ppSettings: ?*?*IWPCGamesSettings) HRESULT { return @as(*const IWindowsParentalControls.VTable, @ptrCast(self.vtable)).GetGamesSettings(@as(*const IWindowsParentalControls, @ptrCast(self)), pcszSID, ppSettings); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows6.1' const IID_IWPCProviderSupport_Value = Guid.initString("41eba572-23ed-4779-bec1-8df96206c44c"); pub const IID_IWPCProviderSupport = &IID_IWPCProviderSupport_Value; pub const IWPCProviderSupport = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, GetCurrent: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IWPCProviderSupport, pguidProvider: ?*Guid, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IWPCProviderSupport, pguidProvider: ?*Guid, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWPCProviderSupport_GetCurrent(self: *const T, pguidProvider: ?*Guid) HRESULT { return @as(*const IWPCProviderSupport.VTable, @ptrCast(self.vtable)).GetCurrent(@as(*const IWPCProviderSupport, @ptrCast(self)), pguidProvider); } }; } pub usingnamespace MethodMixin(@This()); }; pub const WPCFLAG_ISBLOCKED = enum(i32) { NOTBLOCKED = 0, IMBLOCKED = 1, EMAILBLOCKED = 2, MEDIAPLAYBACKBLOCKED = 4, WEBBLOCKED = 8, GAMESBLOCKED = 16, CONTACTBLOCKED = 32, FEATUREBLOCKED = 64, DOWNLOADBLOCKED = 128, RATINGBLOCKED = 256, DESCRIPTORBLOCKED = 512, EXPLICITBLOCK = 1024, BADPASS = 2048, MAXHOURS = 4096, SPECHOURS = 8192, SETTINGSCHANGEBLOCKED = 16384, ATTACHMENTBLOCKED = 32768, SENDERBLOCKED = 65536, RECEIVERBLOCKED = 131072, NOTEXPLICITLYALLOWED = 262144, NOTINLIST = 524288, CATEGORYBLOCKED = 1048576, CATEGORYNOTINLIST = 2097152, NOTKIDS = 4194304, UNRATED = 8388608, NOACCESS = 16777216, INTERNALERROR = -1, }; pub const WPCFLAG_ISBLOCKED_NOTBLOCKED = WPCFLAG_ISBLOCKED.NOTBLOCKED; pub const WPCFLAG_ISBLOCKED_IMBLOCKED = WPCFLAG_ISBLOCKED.IMBLOCKED; pub const WPCFLAG_ISBLOCKED_EMAILBLOCKED = WPCFLAG_ISBLOCKED.EMAILBLOCKED; pub const WPCFLAG_ISBLOCKED_MEDIAPLAYBACKBLOCKED = WPCFLAG_ISBLOCKED.MEDIAPLAYBACKBLOCKED; pub const WPCFLAG_ISBLOCKED_WEBBLOCKED = WPCFLAG_ISBLOCKED.WEBBLOCKED; pub const WPCFLAG_ISBLOCKED_GAMESBLOCKED = WPCFLAG_ISBLOCKED.GAMESBLOCKED; pub const WPCFLAG_ISBLOCKED_CONTACTBLOCKED = WPCFLAG_ISBLOCKED.CONTACTBLOCKED; pub const WPCFLAG_ISBLOCKED_FEATUREBLOCKED = WPCFLAG_ISBLOCKED.FEATUREBLOCKED; pub const WPCFLAG_ISBLOCKED_DOWNLOADBLOCKED = WPCFLAG_ISBLOCKED.DOWNLOADBLOCKED; pub const WPCFLAG_ISBLOCKED_RATINGBLOCKED = WPCFLAG_ISBLOCKED.RATINGBLOCKED; pub const WPCFLAG_ISBLOCKED_DESCRIPTORBLOCKED = WPCFLAG_ISBLOCKED.DESCRIPTORBLOCKED; pub const WPCFLAG_ISBLOCKED_EXPLICITBLOCK = WPCFLAG_ISBLOCKED.EXPLICITBLOCK; pub const WPCFLAG_ISBLOCKED_BADPASS = WPCFLAG_ISBLOCKED.BADPASS; pub const WPCFLAG_ISBLOCKED_MAXHOURS = WPCFLAG_ISBLOCKED.MAXHOURS; pub const WPCFLAG_ISBLOCKED_SPECHOURS = WPCFLAG_ISBLOCKED.SPECHOURS; pub const WPCFLAG_ISBLOCKED_SETTINGSCHANGEBLOCKED = WPCFLAG_ISBLOCKED.SETTINGSCHANGEBLOCKED; pub const WPCFLAG_ISBLOCKED_ATTACHMENTBLOCKED = WPCFLAG_ISBLOCKED.ATTACHMENTBLOCKED; pub const WPCFLAG_ISBLOCKED_SENDERBLOCKED = WPCFLAG_ISBLOCKED.SENDERBLOCKED; pub const WPCFLAG_ISBLOCKED_RECEIVERBLOCKED = WPCFLAG_ISBLOCKED.RECEIVERBLOCKED; pub const WPCFLAG_ISBLOCKED_NOTEXPLICITLYALLOWED = WPCFLAG_ISBLOCKED.NOTEXPLICITLYALLOWED; pub const WPCFLAG_ISBLOCKED_NOTINLIST = WPCFLAG_ISBLOCKED.NOTINLIST; pub const WPCFLAG_ISBLOCKED_CATEGORYBLOCKED = WPCFLAG_ISBLOCKED.CATEGORYBLOCKED; pub const WPCFLAG_ISBLOCKED_CATEGORYNOTINLIST = WPCFLAG_ISBLOCKED.CATEGORYNOTINLIST; pub const WPCFLAG_ISBLOCKED_NOTKIDS = WPCFLAG_ISBLOCKED.NOTKIDS; pub const WPCFLAG_ISBLOCKED_UNRATED = WPCFLAG_ISBLOCKED.UNRATED; pub const WPCFLAG_ISBLOCKED_NOACCESS = WPCFLAG_ISBLOCKED.NOACCESS; pub const WPCFLAG_ISBLOCKED_INTERNALERROR = WPCFLAG_ISBLOCKED.INTERNALERROR; pub const WPCFLAG_LOGOFF_TYPE = enum(i32) { LOGOUT = 0, RESTART = 1, SHUTDOWN = 2, FUS = 4, FORCEDFUS = 8, }; pub const WPCFLAG_LOGOFF_TYPE_LOGOUT = WPCFLAG_LOGOFF_TYPE.LOGOUT; pub const WPCFLAG_LOGOFF_TYPE_RESTART = WPCFLAG_LOGOFF_TYPE.RESTART; pub const WPCFLAG_LOGOFF_TYPE_SHUTDOWN = WPCFLAG_LOGOFF_TYPE.SHUTDOWN; pub const WPCFLAG_LOGOFF_TYPE_FUS = WPCFLAG_LOGOFF_TYPE.FUS; pub const WPCFLAG_LOGOFF_TYPE_FORCEDFUS = WPCFLAG_LOGOFF_TYPE.FORCEDFUS; pub const WPCFLAG_IM_LEAVE = enum(i32) { NORMAL = 0, FORCED = 1, CONVERSATION_END = 2, }; pub const WPCFLAG_IM_LEAVE_NORMAL = WPCFLAG_IM_LEAVE.NORMAL; pub const WPCFLAG_IM_LEAVE_FORCED = WPCFLAG_IM_LEAVE.FORCED; pub const WPCFLAG_IM_LEAVE_CONVERSATION_END = WPCFLAG_IM_LEAVE.CONVERSATION_END; pub const WPC_ARGS_SETTINGSCHANGEEVENT = enum(i32) { CLASS = 0, SETTING = 1, OWNER = 2, OLDVAL = 3, NEWVAL = 4, REASON = 5, OPTIONAL = 6, CARGS = 7, }; pub const WPC_ARGS_SETTINGSCHANGEEVENT_CLASS = WPC_ARGS_SETTINGSCHANGEEVENT.CLASS; pub const WPC_ARGS_SETTINGSCHANGEEVENT_SETTING = WPC_ARGS_SETTINGSCHANGEEVENT.SETTING; pub const WPC_ARGS_SETTINGSCHANGEEVENT_OWNER = WPC_ARGS_SETTINGSCHANGEEVENT.OWNER; pub const WPC_ARGS_SETTINGSCHANGEEVENT_OLDVAL = WPC_ARGS_SETTINGSCHANGEEVENT.OLDVAL; pub const WPC_ARGS_SETTINGSCHANGEEVENT_NEWVAL = WPC_ARGS_SETTINGSCHANGEEVENT.NEWVAL; pub const WPC_ARGS_SETTINGSCHANGEEVENT_REASON = WPC_ARGS_SETTINGSCHANGEEVENT.REASON; pub const WPC_ARGS_SETTINGSCHANGEEVENT_OPTIONAL = WPC_ARGS_SETTINGSCHANGEEVENT.OPTIONAL; pub const WPC_ARGS_SETTINGSCHANGEEVENT_CARGS = WPC_ARGS_SETTINGSCHANGEEVENT.CARGS; pub const WPC_ARGS_SAFERAPPBLOCKED = enum(i32) { TIMESTAMP = 0, USERID = 1, PATH = 2, RULEID = 3, CARGS = 4, }; pub const WPC_ARGS_SAFERAPPBLOCKED_TIMESTAMP = WPC_ARGS_SAFERAPPBLOCKED.TIMESTAMP; pub const WPC_ARGS_SAFERAPPBLOCKED_USERID = WPC_ARGS_SAFERAPPBLOCKED.USERID; pub const WPC_ARGS_SAFERAPPBLOCKED_PATH = WPC_ARGS_SAFERAPPBLOCKED.PATH; pub const WPC_ARGS_SAFERAPPBLOCKED_RULEID = WPC_ARGS_SAFERAPPBLOCKED.RULEID; pub const WPC_ARGS_SAFERAPPBLOCKED_CARGS = WPC_ARGS_SAFERAPPBLOCKED.CARGS; pub const WPC_ARGS_EMAILRECEIEVEDEVENT = enum(i32) { SENDER = 0, APPNAME = 1, APPVERSION = 2, SUBJECT = 3, REASON = 4, RECIPCOUNT = 5, RECIPIENT = 6, ATTACHCOUNT = 7, ATTACHMENTNAME = 8, RECEIVEDTIME = 9, EMAILACCOUNT = 10, CARGS = 11, }; pub const WPC_ARGS_EMAILRECEIEVEDEVENT_SENDER = WPC_ARGS_EMAILRECEIEVEDEVENT.SENDER; pub const WPC_ARGS_EMAILRECEIEVEDEVENT_APPNAME = WPC_ARGS_EMAILRECEIEVEDEVENT.APPNAME; pub const WPC_ARGS_EMAILRECEIEVEDEVENT_APPVERSION = WPC_ARGS_EMAILRECEIEVEDEVENT.APPVERSION; pub const WPC_ARGS_EMAILRECEIEVEDEVENT_SUBJECT = WPC_ARGS_EMAILRECEIEVEDEVENT.SUBJECT; pub const WPC_ARGS_EMAILRECEIEVEDEVENT_REASON = WPC_ARGS_EMAILRECEIEVEDEVENT.REASON; pub const WPC_ARGS_EMAILRECEIEVEDEVENT_RECIPCOUNT = WPC_ARGS_EMAILRECEIEVEDEVENT.RECIPCOUNT; pub const WPC_ARGS_EMAILRECEIEVEDEVENT_RECIPIENT = WPC_ARGS_EMAILRECEIEVEDEVENT.RECIPIENT; pub const WPC_ARGS_EMAILRECEIEVEDEVENT_ATTACHCOUNT = WPC_ARGS_EMAILRECEIEVEDEVENT.ATTACHCOUNT; pub const WPC_ARGS_EMAILRECEIEVEDEVENT_ATTACHMENTNAME = WPC_ARGS_EMAILRECEIEVEDEVENT.ATTACHMENTNAME; pub const WPC_ARGS_EMAILRECEIEVEDEVENT_RECEIVEDTIME = WPC_ARGS_EMAILRECEIEVEDEVENT.RECEIVEDTIME; pub const WPC_ARGS_EMAILRECEIEVEDEVENT_EMAILACCOUNT = WPC_ARGS_EMAILRECEIEVEDEVENT.EMAILACCOUNT; pub const WPC_ARGS_EMAILRECEIEVEDEVENT_CARGS = WPC_ARGS_EMAILRECEIEVEDEVENT.CARGS; pub const WPC_ARGS_EMAILSENTEVENT = enum(i32) { SENDER = 0, APPNAME = 1, APPVERSION = 2, SUBJECT = 3, REASON = 4, RECIPCOUNT = 5, RECIPIENT = 6, ATTACHCOUNT = 7, ATTACHMENTNAME = 8, EMAILACCOUNT = 9, CARGS = 10, }; pub const WPC_ARGS_EMAILSENTEVENT_SENDER = WPC_ARGS_EMAILSENTEVENT.SENDER; pub const WPC_ARGS_EMAILSENTEVENT_APPNAME = WPC_ARGS_EMAILSENTEVENT.APPNAME; pub const WPC_ARGS_EMAILSENTEVENT_APPVERSION = WPC_ARGS_EMAILSENTEVENT.APPVERSION; pub const WPC_ARGS_EMAILSENTEVENT_SUBJECT = WPC_ARGS_EMAILSENTEVENT.SUBJECT; pub const WPC_ARGS_EMAILSENTEVENT_REASON = WPC_ARGS_EMAILSENTEVENT.REASON; pub const WPC_ARGS_EMAILSENTEVENT_RECIPCOUNT = WPC_ARGS_EMAILSENTEVENT.RECIPCOUNT; pub const WPC_ARGS_EMAILSENTEVENT_RECIPIENT = WPC_ARGS_EMAILSENTEVENT.RECIPIENT; pub const WPC_ARGS_EMAILSENTEVENT_ATTACHCOUNT = WPC_ARGS_EMAILSENTEVENT.ATTACHCOUNT; pub const WPC_ARGS_EMAILSENTEVENT_ATTACHMENTNAME = WPC_ARGS_EMAILSENTEVENT.ATTACHMENTNAME; pub const WPC_ARGS_EMAILSENTEVENT_EMAILACCOUNT = WPC_ARGS_EMAILSENTEVENT.EMAILACCOUNT; pub const WPC_ARGS_EMAILSENTEVENT_CARGS = WPC_ARGS_EMAILSENTEVENT.CARGS; pub const WPC_ARGS_EMAILCONTACTEVENT = enum(i32) { APPNAME = 0, APPVERSION = 1, OLDNAME = 2, OLDID = 3, NEWNAME = 4, NEWID = 5, REASON = 6, EMAILACCOUNT = 7, CARGS = 8, }; pub const WPC_ARGS_EMAILCONTACTEVENT_APPNAME = WPC_ARGS_EMAILCONTACTEVENT.APPNAME; pub const WPC_ARGS_EMAILCONTACTEVENT_APPVERSION = WPC_ARGS_EMAILCONTACTEVENT.APPVERSION; pub const WPC_ARGS_EMAILCONTACTEVENT_OLDNAME = WPC_ARGS_EMAILCONTACTEVENT.OLDNAME; pub const WPC_ARGS_EMAILCONTACTEVENT_OLDID = WPC_ARGS_EMAILCONTACTEVENT.OLDID; pub const WPC_ARGS_EMAILCONTACTEVENT_NEWNAME = WPC_ARGS_EMAILCONTACTEVENT.NEWNAME; pub const WPC_ARGS_EMAILCONTACTEVENT_NEWID = WPC_ARGS_EMAILCONTACTEVENT.NEWID; pub const WPC_ARGS_EMAILCONTACTEVENT_REASON = WPC_ARGS_EMAILCONTACTEVENT.REASON; pub const WPC_ARGS_EMAILCONTACTEVENT_EMAILACCOUNT = WPC_ARGS_EMAILCONTACTEVENT.EMAILACCOUNT; pub const WPC_ARGS_EMAILCONTACTEVENT_CARGS = WPC_ARGS_EMAILCONTACTEVENT.CARGS; pub const WPC_MEDIA_TYPE = enum(i32) { OTHER = 0, DVD = 1, RECORDED_TV = 2, AUDIO_FILE = 3, CD_AUDIO = 4, VIDEO_FILE = 5, PICTURE_FILE = 6, MAX = 7, }; pub const WPC_MEDIA_TYPE_OTHER = WPC_MEDIA_TYPE.OTHER; pub const WPC_MEDIA_TYPE_DVD = WPC_MEDIA_TYPE.DVD; pub const WPC_MEDIA_TYPE_RECORDED_TV = WPC_MEDIA_TYPE.RECORDED_TV; pub const WPC_MEDIA_TYPE_AUDIO_FILE = WPC_MEDIA_TYPE.AUDIO_FILE; pub const WPC_MEDIA_TYPE_CD_AUDIO = WPC_MEDIA_TYPE.CD_AUDIO; pub const WPC_MEDIA_TYPE_VIDEO_FILE = WPC_MEDIA_TYPE.VIDEO_FILE; pub const WPC_MEDIA_TYPE_PICTURE_FILE = WPC_MEDIA_TYPE.PICTURE_FILE; pub const WPC_MEDIA_TYPE_MAX = WPC_MEDIA_TYPE.MAX; pub const WPC_MEDIA_EXPLICIT = enum(i32) { FALSE = 0, TRUE = 1, UNKNOWN = 2, }; pub const WPC_MEDIA_EXPLICIT_FALSE = WPC_MEDIA_EXPLICIT.FALSE; pub const WPC_MEDIA_EXPLICIT_TRUE = WPC_MEDIA_EXPLICIT.TRUE; pub const WPC_MEDIA_EXPLICIT_UNKNOWN = WPC_MEDIA_EXPLICIT.UNKNOWN; pub const WPC_ARGS_MEDIAPLAYBACKEVENT = enum(i32) { APPNAME = 0, APPVERSION = 1, MEDIATYPE = 2, PATH = 3, TITLE = 4, PML = 5, ALBUM = 6, EXPLICIT = 7, REASON = 8, CARGS = 9, }; pub const WPC_ARGS_MEDIAPLAYBACKEVENT_APPNAME = WPC_ARGS_MEDIAPLAYBACKEVENT.APPNAME; pub const WPC_ARGS_MEDIAPLAYBACKEVENT_APPVERSION = WPC_ARGS_MEDIAPLAYBACKEVENT.APPVERSION; pub const WPC_ARGS_MEDIAPLAYBACKEVENT_MEDIATYPE = WPC_ARGS_MEDIAPLAYBACKEVENT.MEDIATYPE; pub const WPC_ARGS_MEDIAPLAYBACKEVENT_PATH = WPC_ARGS_MEDIAPLAYBACKEVENT.PATH; pub const WPC_ARGS_MEDIAPLAYBACKEVENT_TITLE = WPC_ARGS_MEDIAPLAYBACKEVENT.TITLE; pub const WPC_ARGS_MEDIAPLAYBACKEVENT_PML = WPC_ARGS_MEDIAPLAYBACKEVENT.PML; pub const WPC_ARGS_MEDIAPLAYBACKEVENT_ALBUM = WPC_ARGS_MEDIAPLAYBACKEVENT.ALBUM; pub const WPC_ARGS_MEDIAPLAYBACKEVENT_EXPLICIT = WPC_ARGS_MEDIAPLAYBACKEVENT.EXPLICIT; pub const WPC_ARGS_MEDIAPLAYBACKEVENT_REASON = WPC_ARGS_MEDIAPLAYBACKEVENT.REASON; pub const WPC_ARGS_MEDIAPLAYBACKEVENT_CARGS = WPC_ARGS_MEDIAPLAYBACKEVENT.CARGS; pub const WPC_ARGS_MEDIADOWNLOADEVENT = enum(i32) { APPNAME = 0, APPVERSION = 1, MEDIATYPE = 2, PATH = 3, TITLE = 4, PML = 5, ALBUM = 6, EXPLICIT = 7, REASON = 8, CARGS = 9, }; pub const WPC_ARGS_MEDIADOWNLOADEVENT_APPNAME = WPC_ARGS_MEDIADOWNLOADEVENT.APPNAME; pub const WPC_ARGS_MEDIADOWNLOADEVENT_APPVERSION = WPC_ARGS_MEDIADOWNLOADEVENT.APPVERSION; pub const WPC_ARGS_MEDIADOWNLOADEVENT_MEDIATYPE = WPC_ARGS_MEDIADOWNLOADEVENT.MEDIATYPE; pub const WPC_ARGS_MEDIADOWNLOADEVENT_PATH = WPC_ARGS_MEDIADOWNLOADEVENT.PATH; pub const WPC_ARGS_MEDIADOWNLOADEVENT_TITLE = WPC_ARGS_MEDIADOWNLOADEVENT.TITLE; pub const WPC_ARGS_MEDIADOWNLOADEVENT_PML = WPC_ARGS_MEDIADOWNLOADEVENT.PML; pub const WPC_ARGS_MEDIADOWNLOADEVENT_ALBUM = WPC_ARGS_MEDIADOWNLOADEVENT.ALBUM; pub const WPC_ARGS_MEDIADOWNLOADEVENT_EXPLICIT = WPC_ARGS_MEDIADOWNLOADEVENT.EXPLICIT; pub const WPC_ARGS_MEDIADOWNLOADEVENT_REASON = WPC_ARGS_MEDIADOWNLOADEVENT.REASON; pub const WPC_ARGS_MEDIADOWNLOADEVENT_CARGS = WPC_ARGS_MEDIADOWNLOADEVENT.CARGS; pub const WPC_ARGS_CONVERSATIONINITEVENT = enum(i32) { APPNAME = 0, APPVERSION = 1, ACCOUNTNAME = 2, CONVID = 3, REQUESTINGIP = 4, SENDER = 5, REASON = 6, RECIPCOUNT = 7, RECIPIENT = 8, CARGS = 9, }; pub const WPC_ARGS_CONVERSATIONINITEVENT_APPNAME = WPC_ARGS_CONVERSATIONINITEVENT.APPNAME; pub const WPC_ARGS_CONVERSATIONINITEVENT_APPVERSION = WPC_ARGS_CONVERSATIONINITEVENT.APPVERSION; pub const WPC_ARGS_CONVERSATIONINITEVENT_ACCOUNTNAME = WPC_ARGS_CONVERSATIONINITEVENT.ACCOUNTNAME; pub const WPC_ARGS_CONVERSATIONINITEVENT_CONVID = WPC_ARGS_CONVERSATIONINITEVENT.CONVID; pub const WPC_ARGS_CONVERSATIONINITEVENT_REQUESTINGIP = WPC_ARGS_CONVERSATIONINITEVENT.REQUESTINGIP; pub const WPC_ARGS_CONVERSATIONINITEVENT_SENDER = WPC_ARGS_CONVERSATIONINITEVENT.SENDER; pub const WPC_ARGS_CONVERSATIONINITEVENT_REASON = WPC_ARGS_CONVERSATIONINITEVENT.REASON; pub const WPC_ARGS_CONVERSATIONINITEVENT_RECIPCOUNT = WPC_ARGS_CONVERSATIONINITEVENT.RECIPCOUNT; pub const WPC_ARGS_CONVERSATIONINITEVENT_RECIPIENT = WPC_ARGS_CONVERSATIONINITEVENT.RECIPIENT; pub const WPC_ARGS_CONVERSATIONINITEVENT_CARGS = WPC_ARGS_CONVERSATIONINITEVENT.CARGS; pub const WPC_ARGS_CONVERSATIONJOINEVENT = enum(i32) { APPNAME = 0, APPVERSION = 1, ACCOUNTNAME = 2, CONVID = 3, JOININGIP = 4, JOININGUSER = 5, REASON = 6, MEMBERCOUNT = 7, MEMBER = 8, SENDER = 9, CARGS = 10, }; pub const WPC_ARGS_CONVERSATIONJOINEVENT_APPNAME = WPC_ARGS_CONVERSATIONJOINEVENT.APPNAME; pub const WPC_ARGS_CONVERSATIONJOINEVENT_APPVERSION = WPC_ARGS_CONVERSATIONJOINEVENT.APPVERSION; pub const WPC_ARGS_CONVERSATIONJOINEVENT_ACCOUNTNAME = WPC_ARGS_CONVERSATIONJOINEVENT.ACCOUNTNAME; pub const WPC_ARGS_CONVERSATIONJOINEVENT_CONVID = WPC_ARGS_CONVERSATIONJOINEVENT.CONVID; pub const WPC_ARGS_CONVERSATIONJOINEVENT_JOININGIP = WPC_ARGS_CONVERSATIONJOINEVENT.JOININGIP; pub const WPC_ARGS_CONVERSATIONJOINEVENT_JOININGUSER = WPC_ARGS_CONVERSATIONJOINEVENT.JOININGUSER; pub const WPC_ARGS_CONVERSATIONJOINEVENT_REASON = WPC_ARGS_CONVERSATIONJOINEVENT.REASON; pub const WPC_ARGS_CONVERSATIONJOINEVENT_MEMBERCOUNT = WPC_ARGS_CONVERSATIONJOINEVENT.MEMBERCOUNT; pub const WPC_ARGS_CONVERSATIONJOINEVENT_MEMBER = WPC_ARGS_CONVERSATIONJOINEVENT.MEMBER; pub const WPC_ARGS_CONVERSATIONJOINEVENT_SENDER = WPC_ARGS_CONVERSATIONJOINEVENT.SENDER; pub const WPC_ARGS_CONVERSATIONJOINEVENT_CARGS = WPC_ARGS_CONVERSATIONJOINEVENT.CARGS; pub const WPC_ARGS_CONVERSATIONLEAVEEVENT = enum(i32) { APPNAME = 0, APPVERSION = 1, ACCOUNTNAME = 2, CONVID = 3, LEAVINGIP = 4, LEAVINGUSER = 5, REASON = 6, MEMBERCOUNT = 7, MEMBER = 8, FLAGS = 9, CARGS = 10, }; pub const WPC_ARGS_CONVERSATIONLEAVEEVENT_APPNAME = WPC_ARGS_CONVERSATIONLEAVEEVENT.APPNAME; pub const WPC_ARGS_CONVERSATIONLEAVEEVENT_APPVERSION = WPC_ARGS_CONVERSATIONLEAVEEVENT.APPVERSION; pub const WPC_ARGS_CONVERSATIONLEAVEEVENT_ACCOUNTNAME = WPC_ARGS_CONVERSATIONLEAVEEVENT.ACCOUNTNAME; pub const WPC_ARGS_CONVERSATIONLEAVEEVENT_CONVID = WPC_ARGS_CONVERSATIONLEAVEEVENT.CONVID; pub const WPC_ARGS_CONVERSATIONLEAVEEVENT_LEAVINGIP = WPC_ARGS_CONVERSATIONLEAVEEVENT.LEAVINGIP; pub const WPC_ARGS_CONVERSATIONLEAVEEVENT_LEAVINGUSER = WPC_ARGS_CONVERSATIONLEAVEEVENT.LEAVINGUSER; pub const WPC_ARGS_CONVERSATIONLEAVEEVENT_REASON = WPC_ARGS_CONVERSATIONLEAVEEVENT.REASON; pub const WPC_ARGS_CONVERSATIONLEAVEEVENT_MEMBERCOUNT = WPC_ARGS_CONVERSATIONLEAVEEVENT.MEMBERCOUNT; pub const WPC_ARGS_CONVERSATIONLEAVEEVENT_MEMBER = WPC_ARGS_CONVERSATIONLEAVEEVENT.MEMBER; pub const WPC_ARGS_CONVERSATIONLEAVEEVENT_FLAGS = WPC_ARGS_CONVERSATIONLEAVEEVENT.FLAGS; pub const WPC_ARGS_CONVERSATIONLEAVEEVENT_CARGS = WPC_ARGS_CONVERSATIONLEAVEEVENT.CARGS; pub const WPCFLAG_IM_FEATURE = enum(i32) { NONE = 0, VIDEO = 1, AUDIO = 2, GAME = 4, SMS = 8, FILESWAP = 16, URLSWAP = 32, SENDING = -2147483648, ALL = -1, }; pub const WPCFLAG_IM_FEATURE_NONE = WPCFLAG_IM_FEATURE.NONE; pub const WPCFLAG_IM_FEATURE_VIDEO = WPCFLAG_IM_FEATURE.VIDEO; pub const WPCFLAG_IM_FEATURE_AUDIO = WPCFLAG_IM_FEATURE.AUDIO; pub const WPCFLAG_IM_FEATURE_GAME = WPCFLAG_IM_FEATURE.GAME; pub const WPCFLAG_IM_FEATURE_SMS = WPCFLAG_IM_FEATURE.SMS; pub const WPCFLAG_IM_FEATURE_FILESWAP = WPCFLAG_IM_FEATURE.FILESWAP; pub const WPCFLAG_IM_FEATURE_URLSWAP = WPCFLAG_IM_FEATURE.URLSWAP; pub const WPCFLAG_IM_FEATURE_SENDING = WPCFLAG_IM_FEATURE.SENDING; pub const WPCFLAG_IM_FEATURE_ALL = WPCFLAG_IM_FEATURE.ALL; pub const WPC_ARGS_IMFEATUREEVENT = enum(i32) { APPNAME = 0, APPVERSION = 1, ACCOUNTNAME = 2, CONVID = 3, MEDIATYPE = 4, REASON = 5, RECIPCOUNT = 6, RECIPIENT = 7, SENDER = 8, SENDERIP = 9, DATA = 10, CARGS = 11, }; pub const WPC_ARGS_IMFEATUREEVENT_APPNAME = WPC_ARGS_IMFEATUREEVENT.APPNAME; pub const WPC_ARGS_IMFEATUREEVENT_APPVERSION = WPC_ARGS_IMFEATUREEVENT.APPVERSION; pub const WPC_ARGS_IMFEATUREEVENT_ACCOUNTNAME = WPC_ARGS_IMFEATUREEVENT.ACCOUNTNAME; pub const WPC_ARGS_IMFEATUREEVENT_CONVID = WPC_ARGS_IMFEATUREEVENT.CONVID; pub const WPC_ARGS_IMFEATUREEVENT_MEDIATYPE = WPC_ARGS_IMFEATUREEVENT.MEDIATYPE; pub const WPC_ARGS_IMFEATUREEVENT_REASON = WPC_ARGS_IMFEATUREEVENT.REASON; pub const WPC_ARGS_IMFEATUREEVENT_RECIPCOUNT = WPC_ARGS_IMFEATUREEVENT.RECIPCOUNT; pub const WPC_ARGS_IMFEATUREEVENT_RECIPIENT = WPC_ARGS_IMFEATUREEVENT.RECIPIENT; pub const WPC_ARGS_IMFEATUREEVENT_SENDER = WPC_ARGS_IMFEATUREEVENT.SENDER; pub const WPC_ARGS_IMFEATUREEVENT_SENDERIP = WPC_ARGS_IMFEATUREEVENT.SENDERIP; pub const WPC_ARGS_IMFEATUREEVENT_DATA = WPC_ARGS_IMFEATUREEVENT.DATA; pub const WPC_ARGS_IMFEATUREEVENT_CARGS = WPC_ARGS_IMFEATUREEVENT.CARGS; pub const WPC_ARGS_IMCONTACTEVENT = enum(i32) { APPNAME = 0, APPVERSION = 1, ACCOUNTNAME = 2, OLDNAME = 3, OLDID = 4, NEWNAME = 5, NEWID = 6, REASON = 7, CARGS = 8, }; pub const WPC_ARGS_IMCONTACTEVENT_APPNAME = WPC_ARGS_IMCONTACTEVENT.APPNAME; pub const WPC_ARGS_IMCONTACTEVENT_APPVERSION = WPC_ARGS_IMCONTACTEVENT.APPVERSION; pub const WPC_ARGS_IMCONTACTEVENT_ACCOUNTNAME = WPC_ARGS_IMCONTACTEVENT.ACCOUNTNAME; pub const WPC_ARGS_IMCONTACTEVENT_OLDNAME = WPC_ARGS_IMCONTACTEVENT.OLDNAME; pub const WPC_ARGS_IMCONTACTEVENT_OLDID = WPC_ARGS_IMCONTACTEVENT.OLDID; pub const WPC_ARGS_IMCONTACTEVENT_NEWNAME = WPC_ARGS_IMCONTACTEVENT.NEWNAME; pub const WPC_ARGS_IMCONTACTEVENT_NEWID = WPC_ARGS_IMCONTACTEVENT.NEWID; pub const WPC_ARGS_IMCONTACTEVENT_REASON = WPC_ARGS_IMCONTACTEVENT.REASON; pub const WPC_ARGS_IMCONTACTEVENT_CARGS = WPC_ARGS_IMCONTACTEVENT.CARGS; pub const WPC_ARGS_GAMESTARTEVENT = enum(i32) { APPID = 0, INSTANCEID = 1, APPVERSION = 2, PATH = 3, RATING = 4, RATINGSYSTEM = 5, REASON = 6, DESCCOUNT = 7, DESCRIPTOR = 8, PID = 9, CARGS = 10, }; pub const WPC_ARGS_GAMESTARTEVENT_APPID = WPC_ARGS_GAMESTARTEVENT.APPID; pub const WPC_ARGS_GAMESTARTEVENT_INSTANCEID = WPC_ARGS_GAMESTARTEVENT.INSTANCEID; pub const WPC_ARGS_GAMESTARTEVENT_APPVERSION = WPC_ARGS_GAMESTARTEVENT.APPVERSION; pub const WPC_ARGS_GAMESTARTEVENT_PATH = WPC_ARGS_GAMESTARTEVENT.PATH; pub const WPC_ARGS_GAMESTARTEVENT_RATING = WPC_ARGS_GAMESTARTEVENT.RATING; pub const WPC_ARGS_GAMESTARTEVENT_RATINGSYSTEM = WPC_ARGS_GAMESTARTEVENT.RATINGSYSTEM; pub const WPC_ARGS_GAMESTARTEVENT_REASON = WPC_ARGS_GAMESTARTEVENT.REASON; pub const WPC_ARGS_GAMESTARTEVENT_DESCCOUNT = WPC_ARGS_GAMESTARTEVENT.DESCCOUNT; pub const WPC_ARGS_GAMESTARTEVENT_DESCRIPTOR = WPC_ARGS_GAMESTARTEVENT.DESCRIPTOR; pub const WPC_ARGS_GAMESTARTEVENT_PID = WPC_ARGS_GAMESTARTEVENT.PID; pub const WPC_ARGS_GAMESTARTEVENT_CARGS = WPC_ARGS_GAMESTARTEVENT.CARGS; pub const WPC_ARGS_FILEDOWNLOADEVENT = enum(i32) { URL = 0, APPNAME = 1, VERSION = 2, BLOCKED = 3, PATH = 4, CARGS = 5, }; pub const WPC_ARGS_FILEDOWNLOADEVENT_URL = WPC_ARGS_FILEDOWNLOADEVENT.URL; pub const WPC_ARGS_FILEDOWNLOADEVENT_APPNAME = WPC_ARGS_FILEDOWNLOADEVENT.APPNAME; pub const WPC_ARGS_FILEDOWNLOADEVENT_VERSION = WPC_ARGS_FILEDOWNLOADEVENT.VERSION; pub const WPC_ARGS_FILEDOWNLOADEVENT_BLOCKED = WPC_ARGS_FILEDOWNLOADEVENT.BLOCKED; pub const WPC_ARGS_FILEDOWNLOADEVENT_PATH = WPC_ARGS_FILEDOWNLOADEVENT.PATH; pub const WPC_ARGS_FILEDOWNLOADEVENT_CARGS = WPC_ARGS_FILEDOWNLOADEVENT.CARGS; pub const WPC_ARGS_URLVISITEVENT = enum(i32) { URL = 0, APPNAME = 1, VERSION = 2, REASON = 3, RATINGSYSTEMID = 4, CATCOUNT = 5, CATEGORY = 6, CARGS = 7, }; pub const WPC_ARGS_URLVISITEVENT_URL = WPC_ARGS_URLVISITEVENT.URL; pub const WPC_ARGS_URLVISITEVENT_APPNAME = WPC_ARGS_URLVISITEVENT.APPNAME; pub const WPC_ARGS_URLVISITEVENT_VERSION = WPC_ARGS_URLVISITEVENT.VERSION; pub const WPC_ARGS_URLVISITEVENT_REASON = WPC_ARGS_URLVISITEVENT.REASON; pub const WPC_ARGS_URLVISITEVENT_RATINGSYSTEMID = WPC_ARGS_URLVISITEVENT.RATINGSYSTEMID; pub const WPC_ARGS_URLVISITEVENT_CATCOUNT = WPC_ARGS_URLVISITEVENT.CATCOUNT; pub const WPC_ARGS_URLVISITEVENT_CATEGORY = WPC_ARGS_URLVISITEVENT.CATEGORY; pub const WPC_ARGS_URLVISITEVENT_CARGS = WPC_ARGS_URLVISITEVENT.CARGS; pub const WPC_ARGS_WEBSITEVISITEVENT = enum(i32) { URL = 0, DECISION = 1, CATEGORIES = 2, BLOCKEDCATEGORIES = 3, SERIALIZEDAPPLICATION = 4, TITLE = 5, CONTENTTYPE = 6, REFERRER = 7, TELEMETRY = 8, CARGS = 9, }; pub const WPC_ARGS_WEBSITEVISITEVENT_URL = WPC_ARGS_WEBSITEVISITEVENT.URL; pub const WPC_ARGS_WEBSITEVISITEVENT_DECISION = WPC_ARGS_WEBSITEVISITEVENT.DECISION; pub const WPC_ARGS_WEBSITEVISITEVENT_CATEGORIES = WPC_ARGS_WEBSITEVISITEVENT.CATEGORIES; pub const WPC_ARGS_WEBSITEVISITEVENT_BLOCKEDCATEGORIES = WPC_ARGS_WEBSITEVISITEVENT.BLOCKEDCATEGORIES; pub const WPC_ARGS_WEBSITEVISITEVENT_SERIALIZEDAPPLICATION = WPC_ARGS_WEBSITEVISITEVENT.SERIALIZEDAPPLICATION; pub const WPC_ARGS_WEBSITEVISITEVENT_TITLE = WPC_ARGS_WEBSITEVISITEVENT.TITLE; pub const WPC_ARGS_WEBSITEVISITEVENT_CONTENTTYPE = WPC_ARGS_WEBSITEVISITEVENT.CONTENTTYPE; pub const WPC_ARGS_WEBSITEVISITEVENT_REFERRER = WPC_ARGS_WEBSITEVISITEVENT.REFERRER; pub const WPC_ARGS_WEBSITEVISITEVENT_TELEMETRY = WPC_ARGS_WEBSITEVISITEVENT.TELEMETRY; pub const WPC_ARGS_WEBSITEVISITEVENT_CARGS = WPC_ARGS_WEBSITEVISITEVENT.CARGS; pub const WPC_ARGS_APPLICATIONEVENT = enum(i32) { SERIALIZEDAPPLICATION = 0, DECISION = 1, PROCESSID = 2, CREATIONTIME = 3, TIMEUSED = 4, CARGS = 5, }; pub const WPC_ARGS_APPLICATIONEVENT_SERIALIZEDAPPLICATION = WPC_ARGS_APPLICATIONEVENT.SERIALIZEDAPPLICATION; pub const WPC_ARGS_APPLICATIONEVENT_DECISION = WPC_ARGS_APPLICATIONEVENT.DECISION; pub const WPC_ARGS_APPLICATIONEVENT_PROCESSID = WPC_ARGS_APPLICATIONEVENT.PROCESSID; pub const WPC_ARGS_APPLICATIONEVENT_CREATIONTIME = WPC_ARGS_APPLICATIONEVENT.CREATIONTIME; pub const WPC_ARGS_APPLICATIONEVENT_TIMEUSED = WPC_ARGS_APPLICATIONEVENT.TIMEUSED; pub const WPC_ARGS_APPLICATIONEVENT_CARGS = WPC_ARGS_APPLICATIONEVENT.CARGS; pub const WPC_ARGS_COMPUTERUSAGEEVENT = enum(i32) { ID = 0, TIMEUSED = 1, CARGS = 2, }; pub const WPC_ARGS_COMPUTERUSAGEEVENT_ID = WPC_ARGS_COMPUTERUSAGEEVENT.ID; pub const WPC_ARGS_COMPUTERUSAGEEVENT_TIMEUSED = WPC_ARGS_COMPUTERUSAGEEVENT.TIMEUSED; pub const WPC_ARGS_COMPUTERUSAGEEVENT_CARGS = WPC_ARGS_COMPUTERUSAGEEVENT.CARGS; pub const WPC_ARGS_CONTENTUSAGEEVENT = enum(i32) { CONTENTPROVIDERID = 0, CONTENTPROVIDERTITLE = 1, ID = 2, TITLE = 3, CATEGORY = 4, RATINGS = 5, DECISION = 6, CARGS = 7, }; pub const WPC_ARGS_CONTENTUSAGEEVENT_CONTENTPROVIDERID = WPC_ARGS_CONTENTUSAGEEVENT.CONTENTPROVIDERID; pub const WPC_ARGS_CONTENTUSAGEEVENT_CONTENTPROVIDERTITLE = WPC_ARGS_CONTENTUSAGEEVENT.CONTENTPROVIDERTITLE; pub const WPC_ARGS_CONTENTUSAGEEVENT_ID = WPC_ARGS_CONTENTUSAGEEVENT.ID; pub const WPC_ARGS_CONTENTUSAGEEVENT_TITLE = WPC_ARGS_CONTENTUSAGEEVENT.TITLE; pub const WPC_ARGS_CONTENTUSAGEEVENT_CATEGORY = WPC_ARGS_CONTENTUSAGEEVENT.CATEGORY; pub const WPC_ARGS_CONTENTUSAGEEVENT_RATINGS = WPC_ARGS_CONTENTUSAGEEVENT.RATINGS; pub const WPC_ARGS_CONTENTUSAGEEVENT_DECISION = WPC_ARGS_CONTENTUSAGEEVENT.DECISION; pub const WPC_ARGS_CONTENTUSAGEEVENT_CARGS = WPC_ARGS_CONTENTUSAGEEVENT.CARGS; pub const WPC_ARGS_CUSTOMEVENT = enum(i32) { PUBLISHER = 0, APPNAME = 1, APPVERSION = 2, EVENT = 3, VALUE1 = 4, VALUE2 = 5, VALUE3 = 6, BLOCKED = 7, REASON = 8, CARGS = 9, }; pub const WPC_ARGS_CUSTOMEVENT_PUBLISHER = WPC_ARGS_CUSTOMEVENT.PUBLISHER; pub const WPC_ARGS_CUSTOMEVENT_APPNAME = WPC_ARGS_CUSTOMEVENT.APPNAME; pub const WPC_ARGS_CUSTOMEVENT_APPVERSION = WPC_ARGS_CUSTOMEVENT.APPVERSION; pub const WPC_ARGS_CUSTOMEVENT_EVENT = WPC_ARGS_CUSTOMEVENT.EVENT; pub const WPC_ARGS_CUSTOMEVENT_VALUE1 = WPC_ARGS_CUSTOMEVENT.VALUE1; pub const WPC_ARGS_CUSTOMEVENT_VALUE2 = WPC_ARGS_CUSTOMEVENT.VALUE2; pub const WPC_ARGS_CUSTOMEVENT_VALUE3 = WPC_ARGS_CUSTOMEVENT.VALUE3; pub const WPC_ARGS_CUSTOMEVENT_BLOCKED = WPC_ARGS_CUSTOMEVENT.BLOCKED; pub const WPC_ARGS_CUSTOMEVENT_REASON = WPC_ARGS_CUSTOMEVENT.REASON; pub const WPC_ARGS_CUSTOMEVENT_CARGS = WPC_ARGS_CUSTOMEVENT.CARGS; pub const WPC_ARGS_WEBOVERRIDEEVENT = enum(i32) { USERID = 0, URL = 1, REASON = 2, CARGS = 3, }; pub const WPC_ARGS_WEBOVERRIDEEVENT_USERID = WPC_ARGS_WEBOVERRIDEEVENT.USERID; pub const WPC_ARGS_WEBOVERRIDEEVENT_URL = WPC_ARGS_WEBOVERRIDEEVENT.URL; pub const WPC_ARGS_WEBOVERRIDEEVENT_REASON = WPC_ARGS_WEBOVERRIDEEVENT.REASON; pub const WPC_ARGS_WEBOVERRIDEEVENT_CARGS = WPC_ARGS_WEBOVERRIDEEVENT.CARGS; pub const WPC_ARGS_APPOVERRIDEEVENT = enum(i32) { USERID = 0, PATH = 1, REASON = 2, CARGS = 3, }; pub const WPC_ARGS_APPOVERRIDEEVENT_USERID = WPC_ARGS_APPOVERRIDEEVENT.USERID; pub const WPC_ARGS_APPOVERRIDEEVENT_PATH = WPC_ARGS_APPOVERRIDEEVENT.PATH; pub const WPC_ARGS_APPOVERRIDEEVENT_REASON = WPC_ARGS_APPOVERRIDEEVENT.REASON; pub const WPC_ARGS_APPOVERRIDEEVENT_CARGS = WPC_ARGS_APPOVERRIDEEVENT.CARGS; pub const WPC_SETTINGS = enum(i32) { S_WPC_EXTENSION_PATH = 0, S_WPC_EXTENSION_SILO = 1, S_WPC_EXTENSION_IMAGE_PATH = 2, S_WPC_EXTENSION_DISABLEDIMAGE_PATH = 3, S_WPC_EXTENSION_NAME = 4, S_WPC_EXTENSION_SUB_TITLE = 5, S_SYSTEM_CURRENT_RATING_SYSTEM = 6, S_SYSTEM_LAST_LOG_VIEW = 7, S_SYSTEM_LOG_VIEW_REMINDER_INTERVAL = 8, S_SYSTEM_HTTP_EXEMPTION_LIST = 9, S_SYSTEM_URL_EXEMPTION_LIST = 10, S_SYSTEM_FILTER_ID = 11, S_SYSTEM_FILTER_NAME = 12, S_SYSTEM_LOCALE = 13, S_ALLOW_BLOCK = 14, S_GAME_BLOCKED = 15, S_GAME_ALLOW_UNRATED = 16, S_GAME_MAX_ALLOWED = 17, S_GAME_DENIED_DESCRIPTORS = 18, S_USER_WPC_ENABLED = 19, S_USER_LOGGING_REQUIRED = 20, S_USER_HOURLY_RESTRICTIONS = 21, S_USER_OVERRRIDE_REQUESTS = 22, S_USER_LOGON_HOURS = 23, S_USER_APP_RESTRICTIONS = 24, S_WEB_FILTER_ON = 25, S_WEB_DOWNLOAD_BLOCKED = 26, S_WEB_FILTER_LEVEL = 27, S_WEB_BLOCKED_CATEGORY_LIST = 28, S_WEB_BLOCK_UNRATED = 29, S_WPC_ENABLED = 30, S_WPC_LOGGING_REQUIRED = 31, S_RATING_SYSTEM_PATH = 32, S_WPC_PROVIDER_CURRENT = 33, S_USER_TIME_ALLOWANCE = 34, S_USER_TIME_ALLOWANCE_RESTRICTIONS = 35, S_GAME_RESTRICTED = 36, _COUNT = 37, }; pub const WPC_SETTINGS_WPC_EXTENSION_PATH = WPC_SETTINGS.S_WPC_EXTENSION_PATH; pub const WPC_SETTINGS_WPC_EXTENSION_SILO = WPC_SETTINGS.S_WPC_EXTENSION_SILO; pub const WPC_SETTINGS_WPC_EXTENSION_IMAGE_PATH = WPC_SETTINGS.S_WPC_EXTENSION_IMAGE_PATH; pub const WPC_SETTINGS_WPC_EXTENSION_DISABLEDIMAGE_PATH = WPC_SETTINGS.S_WPC_EXTENSION_DISABLEDIMAGE_PATH; pub const WPC_SETTINGS_WPC_EXTENSION_NAME = WPC_SETTINGS.S_WPC_EXTENSION_NAME; pub const WPC_SETTINGS_WPC_EXTENSION_SUB_TITLE = WPC_SETTINGS.S_WPC_EXTENSION_SUB_TITLE; pub const WPC_SETTINGS_SYSTEM_CURRENT_RATING_SYSTEM = WPC_SETTINGS.S_SYSTEM_CURRENT_RATING_SYSTEM; pub const WPC_SETTINGS_SYSTEM_LAST_LOG_VIEW = WPC_SETTINGS.S_SYSTEM_LAST_LOG_VIEW; pub const WPC_SETTINGS_SYSTEM_LOG_VIEW_REMINDER_INTERVAL = WPC_SETTINGS.S_SYSTEM_LOG_VIEW_REMINDER_INTERVAL; pub const WPC_SETTINGS_SYSTEM_HTTP_EXEMPTION_LIST = WPC_SETTINGS.S_SYSTEM_HTTP_EXEMPTION_LIST; pub const WPC_SETTINGS_SYSTEM_URL_EXEMPTION_LIST = WPC_SETTINGS.S_SYSTEM_URL_EXEMPTION_LIST; pub const WPC_SETTINGS_SYSTEM_FILTER_ID = WPC_SETTINGS.S_SYSTEM_FILTER_ID; pub const WPC_SETTINGS_SYSTEM_FILTER_NAME = WPC_SETTINGS.S_SYSTEM_FILTER_NAME; pub const WPC_SETTINGS_SYSTEM_LOCALE = WPC_SETTINGS.S_SYSTEM_LOCALE; pub const WPC_SETTINGS_ALLOW_BLOCK = WPC_SETTINGS.S_ALLOW_BLOCK; pub const WPC_SETTINGS_GAME_BLOCKED = WPC_SETTINGS.S_GAME_BLOCKED; pub const WPC_SETTINGS_GAME_ALLOW_UNRATED = WPC_SETTINGS.S_GAME_ALLOW_UNRATED; pub const WPC_SETTINGS_GAME_MAX_ALLOWED = WPC_SETTINGS.S_GAME_MAX_ALLOWED; pub const WPC_SETTINGS_GAME_DENIED_DESCRIPTORS = WPC_SETTINGS.S_GAME_DENIED_DESCRIPTORS; pub const WPC_SETTINGS_USER_WPC_ENABLED = WPC_SETTINGS.S_USER_WPC_ENABLED; pub const WPC_SETTINGS_USER_LOGGING_REQUIRED = WPC_SETTINGS.S_USER_LOGGING_REQUIRED; pub const WPC_SETTINGS_USER_HOURLY_RESTRICTIONS = WPC_SETTINGS.S_USER_HOURLY_RESTRICTIONS; pub const WPC_SETTINGS_USER_OVERRRIDE_REQUESTS = WPC_SETTINGS.S_USER_OVERRRIDE_REQUESTS; pub const WPC_SETTINGS_USER_LOGON_HOURS = WPC_SETTINGS.S_USER_LOGON_HOURS; pub const WPC_SETTINGS_USER_APP_RESTRICTIONS = WPC_SETTINGS.S_USER_APP_RESTRICTIONS; pub const WPC_SETTINGS_WEB_FILTER_ON = WPC_SETTINGS.S_WEB_FILTER_ON; pub const WPC_SETTINGS_WEB_DOWNLOAD_BLOCKED = WPC_SETTINGS.S_WEB_DOWNLOAD_BLOCKED; pub const WPC_SETTINGS_WEB_FILTER_LEVEL = WPC_SETTINGS.S_WEB_FILTER_LEVEL; pub const WPC_SETTINGS_WEB_BLOCKED_CATEGORY_LIST = WPC_SETTINGS.S_WEB_BLOCKED_CATEGORY_LIST; pub const WPC_SETTINGS_WEB_BLOCK_UNRATED = WPC_SETTINGS.S_WEB_BLOCK_UNRATED; pub const WPC_SETTINGS_WPC_ENABLED = WPC_SETTINGS.S_WPC_ENABLED; pub const WPC_SETTINGS_WPC_LOGGING_REQUIRED = WPC_SETTINGS.S_WPC_LOGGING_REQUIRED; pub const WPC_SETTINGS_RATING_SYSTEM_PATH = WPC_SETTINGS.S_RATING_SYSTEM_PATH; pub const WPC_SETTINGS_WPC_PROVIDER_CURRENT = WPC_SETTINGS.S_WPC_PROVIDER_CURRENT; pub const WPC_SETTINGS_USER_TIME_ALLOWANCE = WPC_SETTINGS.S_USER_TIME_ALLOWANCE; pub const WPC_SETTINGS_USER_TIME_ALLOWANCE_RESTRICTIONS = WPC_SETTINGS.S_USER_TIME_ALLOWANCE_RESTRICTIONS; pub const WPC_SETTINGS_GAME_RESTRICTED = WPC_SETTINGS.S_GAME_RESTRICTED; pub const WPC_SETTING_COUNT = WPC_SETTINGS._COUNT; //-------------------------------------------------------------------------------- // Section: Functions (0) //-------------------------------------------------------------------------------- //-------------------------------------------------------------------------------- // Section: Unicode Aliases (0) //-------------------------------------------------------------------------------- const thismodule = @This(); pub usingnamespace switch (@import("../zig.zig").unicode_mode) { .ansi => struct {}, .wide => struct {}, .unspecified => if (@import("builtin").is_test) struct {} else struct {}, }; //-------------------------------------------------------------------------------- // Section: Imports (8) //-------------------------------------------------------------------------------- const Guid = @import("../zig.zig").Guid; const BOOL = @import("../foundation.zig").BOOL; const BSTR = @import("../foundation.zig").BSTR; const HRESULT = @import("../foundation.zig").HRESULT; const HWND = @import("../foundation.zig").HWND; const IUnknown = @import("../system/com.zig").IUnknown; const PWSTR = @import("../foundation.zig").PWSTR; const SYSTEMTIME = @import("../foundation.zig").SYSTEMTIME; test { @setEvalBranchQuota(comptime @import("std").meta.declarations(@This()).len * 3); // reference all the pub declarations if (!@import("builtin").is_test) return; inline for (comptime @import("std").meta.declarations(@This())) |decl| { if (decl.is_pub) { _ = @field(@This(), decl.name); } } }
0
repos/capy/vendor/zigwin32/win32
repos/capy/vendor/zigwin32/win32/system/kernel.zig
//! NOTE: this file is autogenerated, DO NOT MODIFY //-------------------------------------------------------------------------------- // Section: Constants (17) //-------------------------------------------------------------------------------- pub const OBJ_HANDLE_TAGBITS = @as(i32, 3); pub const RTL_BALANCED_NODE_RESERVED_PARENT_MASK = @as(u32, 3); pub const OBJ_INHERIT = @as(i32, 2); pub const OBJ_PERMANENT = @as(i32, 16); pub const OBJ_EXCLUSIVE = @as(i32, 32); pub const OBJ_CASE_INSENSITIVE = @as(i32, 64); pub const OBJ_OPENIF = @as(i32, 128); pub const OBJ_OPENLINK = @as(i32, 256); pub const OBJ_KERNEL_HANDLE = @as(i32, 512); pub const OBJ_FORCE_ACCESS_CHECK = @as(i32, 1024); pub const OBJ_IGNORE_IMPERSONATED_DEVICEMAP = @as(i32, 2048); pub const OBJ_DONT_REPARSE = @as(i32, 4096); pub const OBJ_VALID_ATTRIBUTES = @as(i32, 8178); pub const NULL64 = @as(u32, 0); pub const MAXUCHAR = @as(u32, 255); pub const MAXUSHORT = @as(u32, 65535); pub const MAXULONG = @as(u32, 4294967295); //-------------------------------------------------------------------------------- // Section: Types (32) //-------------------------------------------------------------------------------- pub const EXCEPTION_DISPOSITION = enum(i32) { ContinueExecution = 0, ContinueSearch = 1, NestedException = 2, CollidedUnwind = 3, }; pub const ExceptionContinueExecution = EXCEPTION_DISPOSITION.ContinueExecution; pub const ExceptionContinueSearch = EXCEPTION_DISPOSITION.ContinueSearch; pub const ExceptionNestedException = EXCEPTION_DISPOSITION.NestedException; pub const ExceptionCollidedUnwind = EXCEPTION_DISPOSITION.CollidedUnwind; pub const SLIST_ENTRY = extern struct { Next: ?*SLIST_ENTRY, }; pub const QUAD = extern struct { Anonymous: extern union { UseThisFieldToCopy: i64, DoNotUseThisField: f64, }, }; pub const PROCESSOR_NUMBER = extern struct { Group: u16, Number: u8, Reserved: u8, }; pub const EVENT_TYPE = enum(i32) { NotificationEvent = 0, SynchronizationEvent = 1, }; pub const NotificationEvent = EVENT_TYPE.NotificationEvent; pub const SynchronizationEvent = EVENT_TYPE.SynchronizationEvent; pub const TIMER_TYPE = enum(i32) { NotificationTimer = 0, SynchronizationTimer = 1, }; pub const NotificationTimer = TIMER_TYPE.NotificationTimer; pub const SynchronizationTimer = TIMER_TYPE.SynchronizationTimer; pub const WAIT_TYPE = enum(i32) { All = 0, Any = 1, Notification = 2, Dequeue = 3, Dpc = 4, }; pub const WaitAll = WAIT_TYPE.All; pub const WaitAny = WAIT_TYPE.Any; pub const WaitNotification = WAIT_TYPE.Notification; pub const WaitDequeue = WAIT_TYPE.Dequeue; pub const WaitDpc = WAIT_TYPE.Dpc; pub const STRING = extern struct { Length: u16, MaximumLength: u16, Buffer: ?[*]u8, }; pub const CSTRING = extern struct { Length: u16, MaximumLength: u16, Buffer: ?[*:0]const u8, }; pub const LIST_ENTRY = extern struct { Flink: ?*LIST_ENTRY, Blink: ?*LIST_ENTRY, }; pub const SINGLE_LIST_ENTRY = extern struct { Next: ?*SINGLE_LIST_ENTRY, }; pub const RTL_BALANCED_NODE = extern struct { Anonymous1: extern union { Children: [2]?*RTL_BALANCED_NODE, Anonymous: extern struct { Left: ?*RTL_BALANCED_NODE, Right: ?*RTL_BALANCED_NODE, }, }, Anonymous2: extern union { _bitfield: u8, ParentValue: usize, }, }; pub const LIST_ENTRY32 = extern struct { Flink: u32, Blink: u32, }; pub const LIST_ENTRY64 = extern struct { Flink: u64, Blink: u64, }; pub const SINGLE_LIST_ENTRY32 = extern struct { Next: u32, }; pub const WNF_STATE_NAME = extern struct { Data: [2]u32, }; pub const STRING32 = extern struct { Length: u16, MaximumLength: u16, Buffer: u32, }; pub const STRING64 = extern struct { Length: u16, MaximumLength: u16, Buffer: u64, }; pub const OBJECT_ATTRIBUTES64 = extern struct { Length: u32, RootDirectory: u64, ObjectName: u64, Attributes: u32, SecurityDescriptor: u64, SecurityQualityOfService: u64, }; pub const OBJECT_ATTRIBUTES32 = extern struct { Length: u32, RootDirectory: u32, ObjectName: u32, Attributes: u32, SecurityDescriptor: u32, SecurityQualityOfService: u32, }; pub const OBJECTID = extern struct { Lineage: Guid, Uniquifier: u32, }; pub const EXCEPTION_ROUTINE = switch (@import("builtin").zig_backend) { .stage1 => fn ( ExceptionRecord: ?*EXCEPTION_RECORD, EstablisherFrame: ?*anyopaque, ContextRecord: ?*CONTEXT, DispatcherContext: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) EXCEPTION_DISPOSITION, else => *const fn ( ExceptionRecord: ?*EXCEPTION_RECORD, EstablisherFrame: ?*anyopaque, ContextRecord: ?*CONTEXT, DispatcherContext: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) EXCEPTION_DISPOSITION, }; pub const NT_PRODUCT_TYPE = enum(i32) { WinNt = 1, LanManNt = 2, Server = 3, }; pub const NtProductWinNt = NT_PRODUCT_TYPE.WinNt; pub const NtProductLanManNt = NT_PRODUCT_TYPE.LanManNt; pub const NtProductServer = NT_PRODUCT_TYPE.Server; pub const SUITE_TYPE = enum(i32) { SmallBusiness = 0, Enterprise = 1, BackOffice = 2, CommunicationServer = 3, TerminalServer = 4, SmallBusinessRestricted = 5, EmbeddedNT = 6, DataCenter = 7, SingleUserTS = 8, Personal = 9, Blade = 10, EmbeddedRestricted = 11, SecurityAppliance = 12, StorageServer = 13, ComputeServer = 14, WHServer = 15, PhoneNT = 16, MultiUserTS = 17, MaxSuiteType = 18, }; pub const SmallBusiness = SUITE_TYPE.SmallBusiness; pub const Enterprise = SUITE_TYPE.Enterprise; pub const BackOffice = SUITE_TYPE.BackOffice; pub const CommunicationServer = SUITE_TYPE.CommunicationServer; pub const TerminalServer = SUITE_TYPE.TerminalServer; pub const SmallBusinessRestricted = SUITE_TYPE.SmallBusinessRestricted; pub const EmbeddedNT = SUITE_TYPE.EmbeddedNT; pub const DataCenter = SUITE_TYPE.DataCenter; pub const SingleUserTS = SUITE_TYPE.SingleUserTS; pub const Personal = SUITE_TYPE.Personal; pub const Blade = SUITE_TYPE.Blade; pub const EmbeddedRestricted = SUITE_TYPE.EmbeddedRestricted; pub const SecurityAppliance = SUITE_TYPE.SecurityAppliance; pub const StorageServer = SUITE_TYPE.StorageServer; pub const ComputeServer = SUITE_TYPE.ComputeServer; pub const WHServer = SUITE_TYPE.WHServer; pub const PhoneNT = SUITE_TYPE.PhoneNT; pub const MultiUserTS = SUITE_TYPE.MultiUserTS; pub const MaxSuiteType = SUITE_TYPE.MaxSuiteType; pub const COMPARTMENT_ID = enum(i32) { UNSPECIFIED_COMPARTMENT_ID = 0, DEFAULT_COMPARTMENT_ID = 1, }; pub const UNSPECIFIED_COMPARTMENT_ID = COMPARTMENT_ID.UNSPECIFIED_COMPARTMENT_ID; pub const DEFAULT_COMPARTMENT_ID = COMPARTMENT_ID.DEFAULT_COMPARTMENT_ID; pub const EXCEPTION_REGISTRATION_RECORD = extern struct { Next: ?*EXCEPTION_REGISTRATION_RECORD, Handler: ?EXCEPTION_ROUTINE, }; pub const NT_TIB = extern struct { ExceptionList: ?*EXCEPTION_REGISTRATION_RECORD, StackBase: ?*anyopaque, StackLimit: ?*anyopaque, SubSystemTib: ?*anyopaque, Anonymous: extern union { FiberData: ?*anyopaque, Version: u32, }, ArbitraryUserPointer: ?*anyopaque, Self: ?*NT_TIB, }; pub const SLIST_HEADER = switch (@import("../zig.zig").arch) { .Arm64 => extern union { Anonymous: extern struct { Alignment: u64, Region: u64, }, HeaderArm64: extern struct { _bitfield1: u64, _bitfield2: u64, }, }, .X64 => extern union { Anonymous: extern struct { Alignment: u64, Region: u64, }, HeaderX64: extern struct { _bitfield1: u64, _bitfield2: u64, }, }, .X86 => extern union { Alignment: u64, Anonymous: extern struct { Next: SINGLE_LIST_ENTRY, Depth: u16, CpuId: u16, }, }, }; pub const FLOATING_SAVE_AREA = switch (@import("../zig.zig").arch) { .X64, .Arm64 => extern struct { ControlWord: u32, StatusWord: u32, TagWord: u32, ErrorOffset: u32, ErrorSelector: u32, DataOffset: u32, DataSelector: u32, RegisterArea: [80]u8, Cr0NpxState: u32, }, .X86 => extern struct { ControlWord: u32, StatusWord: u32, TagWord: u32, ErrorOffset: u32, ErrorSelector: u32, DataOffset: u32, DataSelector: u32, RegisterArea: [80]u8, Spare0: u32, }, }; //-------------------------------------------------------------------------------- // Section: Functions (7) //-------------------------------------------------------------------------------- // TODO: this type is limited to platform 'windows5.1.2600' pub extern "ntdll" fn RtlInitializeSListHead( ListHead: ?*SLIST_HEADER, ) callconv(@import("std").os.windows.WINAPI) void; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "ntdll" fn RtlFirstEntrySList( ListHead: ?*const SLIST_HEADER, ) callconv(@import("std").os.windows.WINAPI) ?*SLIST_ENTRY; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "ntdll" fn RtlInterlockedPopEntrySList( ListHead: ?*SLIST_HEADER, ) callconv(@import("std").os.windows.WINAPI) ?*SLIST_ENTRY; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "ntdll" fn RtlInterlockedPushEntrySList( ListHead: ?*SLIST_HEADER, ListEntry: ?*SLIST_ENTRY, ) callconv(@import("std").os.windows.WINAPI) ?*SLIST_ENTRY; pub extern "ntdll" fn RtlInterlockedPushListSListEx( ListHead: ?*SLIST_HEADER, List: ?*SLIST_ENTRY, ListEnd: ?*SLIST_ENTRY, Count: u32, ) callconv(@import("std").os.windows.WINAPI) ?*SLIST_ENTRY; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "ntdll" fn RtlInterlockedFlushSList( ListHead: ?*SLIST_HEADER, ) callconv(@import("std").os.windows.WINAPI) ?*SLIST_ENTRY; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "ntdll" fn RtlQueryDepthSList( ListHead: ?*SLIST_HEADER, ) callconv(@import("std").os.windows.WINAPI) u16; //-------------------------------------------------------------------------------- // Section: Unicode Aliases (0) //-------------------------------------------------------------------------------- const thismodule = @This(); pub usingnamespace switch (@import("../zig.zig").unicode_mode) { .ansi => struct {}, .wide => struct {}, .unspecified => if (@import("builtin").is_test) struct {} else struct {}, }; //-------------------------------------------------------------------------------- // Section: Imports (4) //-------------------------------------------------------------------------------- const Guid = @import("../zig.zig").Guid; const CONTEXT = @import("../system/diagnostics/debug.zig").CONTEXT; const EXCEPTION_RECORD = @import("../system/diagnostics/debug.zig").EXCEPTION_RECORD; const PSTR = @import("../foundation.zig").PSTR; test { // The following '_ = <FuncPtrType>' lines are a workaround for https://github.com/ziglang/zig/issues/4476 if (@hasDecl(@This(), "EXCEPTION_ROUTINE")) { _ = EXCEPTION_ROUTINE; } @setEvalBranchQuota(comptime @import("std").meta.declarations(@This()).len * 3); // reference all the pub declarations if (!@import("builtin").is_test) return; inline for (comptime @import("std").meta.declarations(@This())) |decl| { if (decl.is_pub) { _ = @field(@This(), decl.name); } } }
0
repos/capy/vendor/zigwin32/win32
repos/capy/vendor/zigwin32/win32/system/settings_management_infrastructure.zig
//! NOTE: this file is autogenerated, DO NOT MODIFY //-------------------------------------------------------------------------------- // Section: Constants (55) //-------------------------------------------------------------------------------- pub const WCM_SETTINGS_ID_FLAG_REFERENCE = @as(u32, 0); pub const WCM_SETTINGS_ID_FLAG_DEFINITION = @as(u32, 1); pub const LINK_STORE_TO_ENGINE_INSTANCE = @as(u32, 1); pub const LIMITED_VALIDATION_MODE = @as(u32, 1); pub const WCM_E_INTERNALERROR = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145255424)); pub const WCM_E_STATENODENOTFOUND = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145255423)); pub const WCM_E_STATENODENOTALLOWED = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145255422)); pub const WCM_E_ATTRIBUTENOTFOUND = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145255421)); pub const WCM_E_ATTRIBUTENOTALLOWED = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145255420)); pub const WCM_E_INVALIDVALUE = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145255419)); pub const WCM_E_INVALIDVALUEFORMAT = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145255418)); pub const WCM_E_TYPENOTSPECIFIED = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145255417)); pub const WCM_E_INVALIDDATATYPE = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145255416)); pub const WCM_E_NOTPOSITIONED = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145255415)); pub const WCM_E_READONLYITEM = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145255414)); pub const WCM_E_INVALIDPATH = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145255413)); pub const WCM_E_WRONGESCAPESTRING = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145255412)); pub const WCM_E_INVALIDVERSIONFORMAT = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145255411)); pub const WCM_E_INVALIDLANGUAGEFORMAT = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145255410)); pub const WCM_E_KEYNOTCHANGEABLE = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145255409)); pub const WCM_E_EXPRESSIONNOTFOUND = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145255408)); pub const WCM_E_SUBSTITUTIONNOTFOUND = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145255407)); pub const WCM_E_USERALREADYREGISTERED = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145255406)); pub const WCM_E_USERNOTFOUND = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145255405)); pub const WCM_E_NAMESPACENOTFOUND = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145255404)); pub const WCM_E_NAMESPACEALREADYREGISTERED = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145255403)); pub const WCM_E_STORECORRUPTED = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145255402)); pub const WCM_E_INVALIDEXPRESSIONSYNTAX = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145255401)); pub const WCM_E_NOTIFICATIONNOTFOUND = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145255400)); pub const WCM_E_CONFLICTINGASSERTION = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145255399)); pub const WCM_E_ASSERTIONFAILED = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145255398)); pub const WCM_E_DUPLICATENAME = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145255397)); pub const WCM_E_INVALIDKEY = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145255396)); pub const WCM_E_INVALIDSTREAM = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145255395)); pub const WCM_E_HANDLERNOTFOUND = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145255394)); pub const WCM_E_INVALIDHANDLERSYNTAX = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145255393)); pub const WCM_E_VALIDATIONFAILED = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145255392)); pub const WCM_E_RESTRICTIONFAILED = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145255391)); pub const WCM_E_MANIFESTCOMPILATIONFAILED = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145255390)); pub const WCM_E_CYCLICREFERENCE = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145255389)); pub const WCM_E_MIXTYPEASSERTION = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145255388)); pub const WCM_E_NOTSUPPORTEDFUNCTION = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145255387)); pub const WCM_E_VALUETOOBIG = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145255386)); pub const WCM_E_INVALIDATTRIBUTECOMBINATION = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145255385)); pub const WCM_E_ABORTOPERATION = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145255384)); pub const WCM_E_MISSINGCONFIGURATION = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145255383)); pub const WCM_E_INVALIDPROCESSORFORMAT = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145255382)); pub const WCM_E_SOURCEMANEMPTYVALUE = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145255381)); pub const WCM_S_INTERNALERROR = @import("../zig.zig").typedConst(HRESULT, @as(i32, 2232320)); pub const WCM_S_ATTRIBUTENOTFOUND = @import("../zig.zig").typedConst(HRESULT, @as(i32, 2232321)); pub const WCM_S_LEGACYSETTINGWARNING = @import("../zig.zig").typedConst(HRESULT, @as(i32, 2232322)); pub const WCM_S_INVALIDATTRIBUTECOMBINATION = @import("../zig.zig").typedConst(HRESULT, @as(i32, 2232324)); pub const WCM_S_ATTRIBUTENOTALLOWED = @import("../zig.zig").typedConst(HRESULT, @as(i32, 2232325)); pub const WCM_S_NAMESPACENOTFOUND = @import("../zig.zig").typedConst(HRESULT, @as(i32, 2232326)); pub const WCM_E_UNKNOWNRESULT = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145251325)); //-------------------------------------------------------------------------------- // Section: Types (16) //-------------------------------------------------------------------------------- const CLSID_SettingsEngine_Value = Guid.initString("9f7d7bb5-20b3-11da-81a5-0030f1642e3c"); pub const CLSID_SettingsEngine = &CLSID_SettingsEngine_Value; pub const WcmTargetMode = enum(i32) { fflineMode = 1, nlineMode = 2, }; pub const OfflineMode = WcmTargetMode.fflineMode; pub const OnlineMode = WcmTargetMode.nlineMode; pub const WcmNamespaceEnumerationFlags = enum(i32) { SharedEnumeration = 1, UserEnumeration = 2, AllEnumeration = 3, }; pub const SharedEnumeration = WcmNamespaceEnumerationFlags.SharedEnumeration; pub const UserEnumeration = WcmNamespaceEnumerationFlags.UserEnumeration; pub const AllEnumeration = WcmNamespaceEnumerationFlags.AllEnumeration; pub const WcmDataType = enum(i32) { Byte = 1, SByte = 2, UInt16 = 3, Int16 = 4, UInt32 = 5, Int32 = 6, UInt64 = 7, Int64 = 8, Boolean = 11, String = 12, FlagArray = 32768, }; pub const dataTypeByte = WcmDataType.Byte; pub const dataTypeSByte = WcmDataType.SByte; pub const dataTypeUInt16 = WcmDataType.UInt16; pub const dataTypeInt16 = WcmDataType.Int16; pub const dataTypeUInt32 = WcmDataType.UInt32; pub const dataTypeInt32 = WcmDataType.Int32; pub const dataTypeUInt64 = WcmDataType.UInt64; pub const dataTypeInt64 = WcmDataType.Int64; pub const dataTypeBoolean = WcmDataType.Boolean; pub const dataTypeString = WcmDataType.String; pub const dataTypeFlagArray = WcmDataType.FlagArray; pub const WcmSettingType = enum(i32) { Scalar = 1, Complex = 2, List = 3, }; pub const settingTypeScalar = WcmSettingType.Scalar; pub const settingTypeComplex = WcmSettingType.Complex; pub const settingTypeList = WcmSettingType.List; pub const WcmRestrictionFacets = enum(i32) { MaxLength = 1, Enumeration = 2, MaxInclusive = 4, MinInclusive = 8, }; pub const restrictionFacetMaxLength = WcmRestrictionFacets.MaxLength; pub const restrictionFacetEnumeration = WcmRestrictionFacets.Enumeration; pub const restrictionFacetMaxInclusive = WcmRestrictionFacets.MaxInclusive; pub const restrictionFacetMinInclusive = WcmRestrictionFacets.MinInclusive; pub const WcmUserStatus = enum(i32) { nknownStatus = 0, serRegistered = 1, serUnregistered = 2, serLoaded = 3, serUnloaded = 4, }; pub const UnknownStatus = WcmUserStatus.nknownStatus; pub const UserRegistered = WcmUserStatus.serRegistered; pub const UserUnregistered = WcmUserStatus.serUnregistered; pub const UserLoaded = WcmUserStatus.serLoaded; pub const UserUnloaded = WcmUserStatus.serUnloaded; pub const WcmNamespaceAccess = enum(i32) { OnlyAccess = 1, WriteAccess = 2, }; pub const ReadOnlyAccess = WcmNamespaceAccess.OnlyAccess; pub const ReadWriteAccess = WcmNamespaceAccess.WriteAccess; // TODO: this type is limited to platform 'windows6.0.6000' const IID_IItemEnumerator_Value = Guid.initString("9f7d7bb7-20b3-11da-81a5-0030f1642e3c"); pub const IID_IItemEnumerator = &IID_IItemEnumerator_Value; pub const IItemEnumerator = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, Current: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IItemEnumerator, Item: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IItemEnumerator, Item: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, MoveNext: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IItemEnumerator, ItemValid: ?*BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IItemEnumerator, ItemValid: ?*BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Reset: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IItemEnumerator, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IItemEnumerator, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IItemEnumerator_Current(self: *const T, Item: ?*VARIANT) HRESULT { return @as(*const IItemEnumerator.VTable, @ptrCast(self.vtable)).Current(@as(*const IItemEnumerator, @ptrCast(self)), Item); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IItemEnumerator_MoveNext(self: *const T, ItemValid: ?*BOOL) HRESULT { return @as(*const IItemEnumerator.VTable, @ptrCast(self.vtable)).MoveNext(@as(*const IItemEnumerator, @ptrCast(self)), ItemValid); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IItemEnumerator_Reset(self: *const T) HRESULT { return @as(*const IItemEnumerator.VTable, @ptrCast(self.vtable)).Reset(@as(*const IItemEnumerator, @ptrCast(self))); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows6.0.6000' const IID_ISettingsIdentity_Value = Guid.initString("9f7d7bb6-20b3-11da-81a5-0030f1642e3c"); pub const IID_ISettingsIdentity = &IID_ISettingsIdentity_Value; pub const ISettingsIdentity = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, GetAttribute: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ISettingsIdentity, Reserved: ?*anyopaque, Name: ?[*:0]const u16, Value: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ISettingsIdentity, Reserved: ?*anyopaque, Name: ?[*:0]const u16, Value: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetAttribute: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ISettingsIdentity, Reserved: ?*anyopaque, Name: ?[*:0]const u16, Value: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ISettingsIdentity, Reserved: ?*anyopaque, Name: ?[*:0]const u16, Value: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetFlags: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ISettingsIdentity, Flags: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ISettingsIdentity, Flags: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetFlags: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ISettingsIdentity, Flags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ISettingsIdentity, Flags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISettingsIdentity_GetAttribute(self: *const T, Reserved: ?*anyopaque, Name: ?[*:0]const u16, Value: ?*?BSTR) HRESULT { return @as(*const ISettingsIdentity.VTable, @ptrCast(self.vtable)).GetAttribute(@as(*const ISettingsIdentity, @ptrCast(self)), Reserved, Name, Value); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISettingsIdentity_SetAttribute(self: *const T, Reserved: ?*anyopaque, Name: ?[*:0]const u16, Value: ?[*:0]const u16) HRESULT { return @as(*const ISettingsIdentity.VTable, @ptrCast(self.vtable)).SetAttribute(@as(*const ISettingsIdentity, @ptrCast(self)), Reserved, Name, Value); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISettingsIdentity_GetFlags(self: *const T, Flags: ?*u32) HRESULT { return @as(*const ISettingsIdentity.VTable, @ptrCast(self.vtable)).GetFlags(@as(*const ISettingsIdentity, @ptrCast(self)), Flags); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISettingsIdentity_SetFlags(self: *const T, Flags: u32) HRESULT { return @as(*const ISettingsIdentity.VTable, @ptrCast(self.vtable)).SetFlags(@as(*const ISettingsIdentity, @ptrCast(self)), Flags); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows6.0.6000' const IID_ITargetInfo_Value = Guid.initString("9f7d7bb8-20b3-11da-81a5-0030f1642e3c"); pub const IID_ITargetInfo = &IID_ITargetInfo_Value; pub const ITargetInfo = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, GetTargetMode: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ITargetInfo, TargetMode: ?*WcmTargetMode, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ITargetInfo, TargetMode: ?*WcmTargetMode, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetTargetMode: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ITargetInfo, TargetMode: WcmTargetMode, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ITargetInfo, TargetMode: WcmTargetMode, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetTemporaryStoreLocation: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ITargetInfo, TemporaryStoreLocation: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ITargetInfo, TemporaryStoreLocation: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetTemporaryStoreLocation: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ITargetInfo, TemporaryStoreLocation: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ITargetInfo, TemporaryStoreLocation: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetTargetID: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ITargetInfo, TargetID: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ITargetInfo, TargetID: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetTargetID: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ITargetInfo, TargetID: Guid, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ITargetInfo, TargetID: Guid, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetTargetProcessorArchitecture: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ITargetInfo, ProcessorArchitecture: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ITargetInfo, ProcessorArchitecture: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetTargetProcessorArchitecture: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ITargetInfo, ProcessorArchitecture: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ITargetInfo, ProcessorArchitecture: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetProperty: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ITargetInfo, Offline: BOOL, Property: ?[*:0]const u16, Value: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ITargetInfo, Offline: BOOL, Property: ?[*:0]const u16, Value: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetProperty: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ITargetInfo, Offline: BOOL, Property: ?[*:0]const u16, Value: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ITargetInfo, Offline: BOOL, Property: ?[*:0]const u16, Value: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetEnumerator: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ITargetInfo, Enumerator: ?*?*IItemEnumerator, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ITargetInfo, Enumerator: ?*?*IItemEnumerator, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, ExpandTarget: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ITargetInfo, Offline: BOOL, Location: ?[*:0]const u16, ExpandedLocation: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ITargetInfo, Offline: BOOL, Location: ?[*:0]const u16, ExpandedLocation: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, ExpandTargetPath: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ITargetInfo, Offline: BOOL, Location: ?[*:0]const u16, ExpandedLocation: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ITargetInfo, Offline: BOOL, Location: ?[*:0]const u16, ExpandedLocation: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetModulePath: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ITargetInfo, Module: ?[*:0]const u16, Path: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ITargetInfo, Module: ?[*:0]const u16, Path: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, LoadModule: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ITargetInfo, Module: ?[*:0]const u16, ModuleHandle: ?*?HINSTANCE, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ITargetInfo, Module: ?[*:0]const u16, ModuleHandle: ?*?HINSTANCE, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetWow64Context: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ITargetInfo, InstallerModule: ?[*:0]const u16, Wow64Context: ?*u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ITargetInfo, InstallerModule: ?[*:0]const u16, Wow64Context: ?*u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, TranslateWow64: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ITargetInfo, ClientArchitecture: ?[*:0]const u16, Value: ?[*:0]const u16, TranslatedValue: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ITargetInfo, ClientArchitecture: ?[*:0]const u16, Value: ?[*:0]const u16, TranslatedValue: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetSchemaHiveLocation: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ITargetInfo, pwzHiveDir: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ITargetInfo, pwzHiveDir: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetSchemaHiveLocation: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ITargetInfo, pHiveLocation: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ITargetInfo, pHiveLocation: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetSchemaHiveMountName: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ITargetInfo, pwzMountName: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ITargetInfo, pwzMountName: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetSchemaHiveMountName: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ITargetInfo, pMountName: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ITargetInfo, pMountName: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITargetInfo_GetTargetMode(self: *const T, TargetMode: ?*WcmTargetMode) HRESULT { return @as(*const ITargetInfo.VTable, @ptrCast(self.vtable)).GetTargetMode(@as(*const ITargetInfo, @ptrCast(self)), TargetMode); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITargetInfo_SetTargetMode(self: *const T, TargetMode: WcmTargetMode) HRESULT { return @as(*const ITargetInfo.VTable, @ptrCast(self.vtable)).SetTargetMode(@as(*const ITargetInfo, @ptrCast(self)), TargetMode); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITargetInfo_GetTemporaryStoreLocation(self: *const T, TemporaryStoreLocation: ?*?BSTR) HRESULT { return @as(*const ITargetInfo.VTable, @ptrCast(self.vtable)).GetTemporaryStoreLocation(@as(*const ITargetInfo, @ptrCast(self)), TemporaryStoreLocation); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITargetInfo_SetTemporaryStoreLocation(self: *const T, TemporaryStoreLocation: ?[*:0]const u16) HRESULT { return @as(*const ITargetInfo.VTable, @ptrCast(self.vtable)).SetTemporaryStoreLocation(@as(*const ITargetInfo, @ptrCast(self)), TemporaryStoreLocation); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITargetInfo_GetTargetID(self: *const T, TargetID: ?*?BSTR) HRESULT { return @as(*const ITargetInfo.VTable, @ptrCast(self.vtable)).GetTargetID(@as(*const ITargetInfo, @ptrCast(self)), TargetID); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITargetInfo_SetTargetID(self: *const T, TargetID: Guid) HRESULT { return @as(*const ITargetInfo.VTable, @ptrCast(self.vtable)).SetTargetID(@as(*const ITargetInfo, @ptrCast(self)), TargetID); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITargetInfo_GetTargetProcessorArchitecture(self: *const T, ProcessorArchitecture: ?*?BSTR) HRESULT { return @as(*const ITargetInfo.VTable, @ptrCast(self.vtable)).GetTargetProcessorArchitecture(@as(*const ITargetInfo, @ptrCast(self)), ProcessorArchitecture); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITargetInfo_SetTargetProcessorArchitecture(self: *const T, ProcessorArchitecture: ?[*:0]const u16) HRESULT { return @as(*const ITargetInfo.VTable, @ptrCast(self.vtable)).SetTargetProcessorArchitecture(@as(*const ITargetInfo, @ptrCast(self)), ProcessorArchitecture); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITargetInfo_GetProperty(self: *const T, Offline: BOOL, Property: ?[*:0]const u16, Value: ?*?BSTR) HRESULT { return @as(*const ITargetInfo.VTable, @ptrCast(self.vtable)).GetProperty(@as(*const ITargetInfo, @ptrCast(self)), Offline, Property, Value); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITargetInfo_SetProperty(self: *const T, Offline: BOOL, Property: ?[*:0]const u16, Value: ?[*:0]const u16) HRESULT { return @as(*const ITargetInfo.VTable, @ptrCast(self.vtable)).SetProperty(@as(*const ITargetInfo, @ptrCast(self)), Offline, Property, Value); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITargetInfo_GetEnumerator(self: *const T, Enumerator: ?*?*IItemEnumerator) HRESULT { return @as(*const ITargetInfo.VTable, @ptrCast(self.vtable)).GetEnumerator(@as(*const ITargetInfo, @ptrCast(self)), Enumerator); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITargetInfo_ExpandTarget(self: *const T, Offline: BOOL, Location: ?[*:0]const u16, ExpandedLocation: ?*?BSTR) HRESULT { return @as(*const ITargetInfo.VTable, @ptrCast(self.vtable)).ExpandTarget(@as(*const ITargetInfo, @ptrCast(self)), Offline, Location, ExpandedLocation); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITargetInfo_ExpandTargetPath(self: *const T, Offline: BOOL, Location: ?[*:0]const u16, ExpandedLocation: ?*?BSTR) HRESULT { return @as(*const ITargetInfo.VTable, @ptrCast(self.vtable)).ExpandTargetPath(@as(*const ITargetInfo, @ptrCast(self)), Offline, Location, ExpandedLocation); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITargetInfo_SetModulePath(self: *const T, Module: ?[*:0]const u16, Path: ?[*:0]const u16) HRESULT { return @as(*const ITargetInfo.VTable, @ptrCast(self.vtable)).SetModulePath(@as(*const ITargetInfo, @ptrCast(self)), Module, Path); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITargetInfo_LoadModule(self: *const T, Module: ?[*:0]const u16, ModuleHandle: ?*?HINSTANCE) HRESULT { return @as(*const ITargetInfo.VTable, @ptrCast(self.vtable)).LoadModule(@as(*const ITargetInfo, @ptrCast(self)), Module, ModuleHandle); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITargetInfo_SetWow64Context(self: *const T, InstallerModule: ?[*:0]const u16, Wow64Context: ?*u8) HRESULT { return @as(*const ITargetInfo.VTable, @ptrCast(self.vtable)).SetWow64Context(@as(*const ITargetInfo, @ptrCast(self)), InstallerModule, Wow64Context); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITargetInfo_TranslateWow64(self: *const T, ClientArchitecture: ?[*:0]const u16, Value: ?[*:0]const u16, TranslatedValue: ?*?BSTR) HRESULT { return @as(*const ITargetInfo.VTable, @ptrCast(self.vtable)).TranslateWow64(@as(*const ITargetInfo, @ptrCast(self)), ClientArchitecture, Value, TranslatedValue); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITargetInfo_SetSchemaHiveLocation(self: *const T, pwzHiveDir: ?[*:0]const u16) HRESULT { return @as(*const ITargetInfo.VTable, @ptrCast(self.vtable)).SetSchemaHiveLocation(@as(*const ITargetInfo, @ptrCast(self)), pwzHiveDir); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITargetInfo_GetSchemaHiveLocation(self: *const T, pHiveLocation: ?*?BSTR) HRESULT { return @as(*const ITargetInfo.VTable, @ptrCast(self.vtable)).GetSchemaHiveLocation(@as(*const ITargetInfo, @ptrCast(self)), pHiveLocation); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITargetInfo_SetSchemaHiveMountName(self: *const T, pwzMountName: ?[*:0]const u16) HRESULT { return @as(*const ITargetInfo.VTable, @ptrCast(self.vtable)).SetSchemaHiveMountName(@as(*const ITargetInfo, @ptrCast(self)), pwzMountName); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITargetInfo_GetSchemaHiveMountName(self: *const T, pMountName: ?*?BSTR) HRESULT { return @as(*const ITargetInfo.VTable, @ptrCast(self.vtable)).GetSchemaHiveMountName(@as(*const ITargetInfo, @ptrCast(self)), pMountName); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows6.0.6000' const IID_ISettingsEngine_Value = Guid.initString("9f7d7bb9-20b3-11da-81a5-0030f1642e3c"); pub const IID_ISettingsEngine = &IID_ISettingsEngine_Value; pub const ISettingsEngine = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, GetNamespaces: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ISettingsEngine, Flags: WcmNamespaceEnumerationFlags, Reserved: ?*anyopaque, Namespaces: ?*?*IItemEnumerator, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ISettingsEngine, Flags: WcmNamespaceEnumerationFlags, Reserved: ?*anyopaque, Namespaces: ?*?*IItemEnumerator, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetNamespace: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ISettingsEngine, SettingsID: ?*ISettingsIdentity, Access: WcmNamespaceAccess, Reserved: ?*anyopaque, NamespaceItem: ?*?*ISettingsNamespace, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ISettingsEngine, SettingsID: ?*ISettingsIdentity, Access: WcmNamespaceAccess, Reserved: ?*anyopaque, NamespaceItem: ?*?*ISettingsNamespace, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetErrorDescription: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ISettingsEngine, HResult: i32, Message: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ISettingsEngine, HResult: i32, Message: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, CreateSettingsIdentity: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ISettingsEngine, SettingsID: ?*?*ISettingsIdentity, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ISettingsEngine, SettingsID: ?*?*ISettingsIdentity, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetStoreStatus: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ISettingsEngine, Reserved: ?*anyopaque, Status: ?*WcmUserStatus, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ISettingsEngine, Reserved: ?*anyopaque, Status: ?*WcmUserStatus, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, LoadStore: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ISettingsEngine, Flags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ISettingsEngine, Flags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, UnloadStore: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ISettingsEngine, Reserved: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ISettingsEngine, Reserved: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, RegisterNamespace: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ISettingsEngine, SettingsID: ?*ISettingsIdentity, Stream: ?*IStream, PushSettings: BOOL, Results: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ISettingsEngine, SettingsID: ?*ISettingsIdentity, Stream: ?*IStream, PushSettings: BOOL, Results: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, UnregisterNamespace: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ISettingsEngine, SettingsID: ?*ISettingsIdentity, RemoveSettings: BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ISettingsEngine, SettingsID: ?*ISettingsIdentity, RemoveSettings: BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, CreateTargetInfo: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ISettingsEngine, Target: ?*?*ITargetInfo, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ISettingsEngine, Target: ?*?*ITargetInfo, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetTargetInfo: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ISettingsEngine, Target: ?*?*ITargetInfo, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ISettingsEngine, Target: ?*?*ITargetInfo, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetTargetInfo: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ISettingsEngine, Target: ?*ITargetInfo, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ISettingsEngine, Target: ?*ITargetInfo, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, CreateSettingsContext: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ISettingsEngine, Flags: u32, Reserved: ?*anyopaque, SettingsContext: ?*?*ISettingsContext, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ISettingsEngine, Flags: u32, Reserved: ?*anyopaque, SettingsContext: ?*?*ISettingsContext, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetSettingsContext: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ISettingsEngine, SettingsContext: ?*ISettingsContext, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ISettingsEngine, SettingsContext: ?*ISettingsContext, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, ApplySettingsContext: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ISettingsEngine, SettingsContext: ?*ISettingsContext, pppwzIdentities: ?*?*?PWSTR, pcIdentities: ?*usize, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ISettingsEngine, SettingsContext: ?*ISettingsContext, pppwzIdentities: ?*?*?PWSTR, pcIdentities: ?*usize, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetSettingsContext: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ISettingsEngine, SettingsContext: ?*?*ISettingsContext, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ISettingsEngine, SettingsContext: ?*?*ISettingsContext, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISettingsEngine_GetNamespaces(self: *const T, Flags: WcmNamespaceEnumerationFlags, Reserved: ?*anyopaque, Namespaces: ?*?*IItemEnumerator) HRESULT { return @as(*const ISettingsEngine.VTable, @ptrCast(self.vtable)).GetNamespaces(@as(*const ISettingsEngine, @ptrCast(self)), Flags, Reserved, Namespaces); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISettingsEngine_GetNamespace(self: *const T, SettingsID: ?*ISettingsIdentity, Access: WcmNamespaceAccess, Reserved: ?*anyopaque, NamespaceItem: ?*?*ISettingsNamespace) HRESULT { return @as(*const ISettingsEngine.VTable, @ptrCast(self.vtable)).GetNamespace(@as(*const ISettingsEngine, @ptrCast(self)), SettingsID, Access, Reserved, NamespaceItem); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISettingsEngine_GetErrorDescription(self: *const T, HResult: i32, Message: ?*?BSTR) HRESULT { return @as(*const ISettingsEngine.VTable, @ptrCast(self.vtable)).GetErrorDescription(@as(*const ISettingsEngine, @ptrCast(self)), HResult, Message); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISettingsEngine_CreateSettingsIdentity(self: *const T, SettingsID: ?*?*ISettingsIdentity) HRESULT { return @as(*const ISettingsEngine.VTable, @ptrCast(self.vtable)).CreateSettingsIdentity(@as(*const ISettingsEngine, @ptrCast(self)), SettingsID); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISettingsEngine_GetStoreStatus(self: *const T, Reserved: ?*anyopaque, Status: ?*WcmUserStatus) HRESULT { return @as(*const ISettingsEngine.VTable, @ptrCast(self.vtable)).GetStoreStatus(@as(*const ISettingsEngine, @ptrCast(self)), Reserved, Status); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISettingsEngine_LoadStore(self: *const T, Flags: u32) HRESULT { return @as(*const ISettingsEngine.VTable, @ptrCast(self.vtable)).LoadStore(@as(*const ISettingsEngine, @ptrCast(self)), Flags); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISettingsEngine_UnloadStore(self: *const T, Reserved: ?*anyopaque) HRESULT { return @as(*const ISettingsEngine.VTable, @ptrCast(self.vtable)).UnloadStore(@as(*const ISettingsEngine, @ptrCast(self)), Reserved); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISettingsEngine_RegisterNamespace(self: *const T, SettingsID: ?*ISettingsIdentity, Stream: ?*IStream, PushSettings: BOOL, Results: ?*VARIANT) HRESULT { return @as(*const ISettingsEngine.VTable, @ptrCast(self.vtable)).RegisterNamespace(@as(*const ISettingsEngine, @ptrCast(self)), SettingsID, Stream, PushSettings, Results); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISettingsEngine_UnregisterNamespace(self: *const T, SettingsID: ?*ISettingsIdentity, RemoveSettings: BOOL) HRESULT { return @as(*const ISettingsEngine.VTable, @ptrCast(self.vtable)).UnregisterNamespace(@as(*const ISettingsEngine, @ptrCast(self)), SettingsID, RemoveSettings); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISettingsEngine_CreateTargetInfo(self: *const T, Target: ?*?*ITargetInfo) HRESULT { return @as(*const ISettingsEngine.VTable, @ptrCast(self.vtable)).CreateTargetInfo(@as(*const ISettingsEngine, @ptrCast(self)), Target); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISettingsEngine_GetTargetInfo(self: *const T, Target: ?*?*ITargetInfo) HRESULT { return @as(*const ISettingsEngine.VTable, @ptrCast(self.vtable)).GetTargetInfo(@as(*const ISettingsEngine, @ptrCast(self)), Target); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISettingsEngine_SetTargetInfo(self: *const T, Target: ?*ITargetInfo) HRESULT { return @as(*const ISettingsEngine.VTable, @ptrCast(self.vtable)).SetTargetInfo(@as(*const ISettingsEngine, @ptrCast(self)), Target); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISettingsEngine_CreateSettingsContext(self: *const T, Flags: u32, Reserved: ?*anyopaque, SettingsContext: ?*?*ISettingsContext) HRESULT { return @as(*const ISettingsEngine.VTable, @ptrCast(self.vtable)).CreateSettingsContext(@as(*const ISettingsEngine, @ptrCast(self)), Flags, Reserved, SettingsContext); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISettingsEngine_SetSettingsContext(self: *const T, SettingsContext: ?*ISettingsContext) HRESULT { return @as(*const ISettingsEngine.VTable, @ptrCast(self.vtable)).SetSettingsContext(@as(*const ISettingsEngine, @ptrCast(self)), SettingsContext); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISettingsEngine_ApplySettingsContext(self: *const T, SettingsContext: ?*ISettingsContext, pppwzIdentities: ?*?*?PWSTR, pcIdentities: ?*usize) HRESULT { return @as(*const ISettingsEngine.VTable, @ptrCast(self.vtable)).ApplySettingsContext(@as(*const ISettingsEngine, @ptrCast(self)), SettingsContext, pppwzIdentities, pcIdentities); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISettingsEngine_GetSettingsContext(self: *const T, SettingsContext: ?*?*ISettingsContext) HRESULT { return @as(*const ISettingsEngine.VTable, @ptrCast(self.vtable)).GetSettingsContext(@as(*const ISettingsEngine, @ptrCast(self)), SettingsContext); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows6.0.6000' const IID_ISettingsItem_Value = Guid.initString("9f7d7bbb-20b3-11da-81a5-0030f1642e3c"); pub const IID_ISettingsItem = &IID_ISettingsItem_Value; pub const ISettingsItem = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, GetName: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ISettingsItem, Name: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ISettingsItem, Name: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetValue: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ISettingsItem, Value: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ISettingsItem, Value: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetValue: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ISettingsItem, Value: ?*const VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ISettingsItem, Value: ?*const VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetSettingType: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ISettingsItem, Type: ?*WcmSettingType, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ISettingsItem, Type: ?*WcmSettingType, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetDataType: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ISettingsItem, Type: ?*WcmDataType, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ISettingsItem, Type: ?*WcmDataType, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetValueRaw: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ISettingsItem, Data: [*]?*u8, DataSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ISettingsItem, Data: [*]?*u8, DataSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetValueRaw: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ISettingsItem, DataType: i32, Data: [*:0]const u8, DataSize: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ISettingsItem, DataType: i32, Data: [*:0]const u8, DataSize: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, HasChild: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ISettingsItem, ItemHasChild: ?*BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ISettingsItem, ItemHasChild: ?*BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Children: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ISettingsItem, Children: ?*?*IItemEnumerator, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ISettingsItem, Children: ?*?*IItemEnumerator, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetChild: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ISettingsItem, Name: ?[*:0]const u16, Child: ?*?*ISettingsItem, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ISettingsItem, Name: ?[*:0]const u16, Child: ?*?*ISettingsItem, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetSettingByPath: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ISettingsItem, Path: ?[*:0]const u16, Setting: ?*?*ISettingsItem, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ISettingsItem, Path: ?[*:0]const u16, Setting: ?*?*ISettingsItem, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, CreateSettingByPath: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ISettingsItem, Path: ?[*:0]const u16, Setting: ?*?*ISettingsItem, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ISettingsItem, Path: ?[*:0]const u16, Setting: ?*?*ISettingsItem, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, RemoveSettingByPath: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ISettingsItem, Path: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ISettingsItem, Path: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetListKeyInformation: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ISettingsItem, KeyName: ?*?BSTR, DataType: ?*WcmDataType, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ISettingsItem, KeyName: ?*?BSTR, DataType: ?*WcmDataType, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, CreateListElement: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ISettingsItem, KeyData: ?*const VARIANT, Child: ?*?*ISettingsItem, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ISettingsItem, KeyData: ?*const VARIANT, Child: ?*?*ISettingsItem, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, RemoveListElement: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ISettingsItem, ElementName: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ISettingsItem, ElementName: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Attributes: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ISettingsItem, Attributes: ?*?*IItemEnumerator, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ISettingsItem, Attributes: ?*?*IItemEnumerator, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetAttribute: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ISettingsItem, Name: ?[*:0]const u16, Value: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ISettingsItem, Name: ?[*:0]const u16, Value: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetPath: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ISettingsItem, Path: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ISettingsItem, Path: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetRestrictionFacets: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ISettingsItem, RestrictionFacets: ?*WcmRestrictionFacets, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ISettingsItem, RestrictionFacets: ?*WcmRestrictionFacets, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetRestriction: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ISettingsItem, RestrictionFacet: WcmRestrictionFacets, FacetData: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ISettingsItem, RestrictionFacet: WcmRestrictionFacets, FacetData: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetKeyValue: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ISettingsItem, Value: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ISettingsItem, Value: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISettingsItem_GetName(self: *const T, Name: ?*?BSTR) HRESULT { return @as(*const ISettingsItem.VTable, @ptrCast(self.vtable)).GetName(@as(*const ISettingsItem, @ptrCast(self)), Name); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISettingsItem_GetValue(self: *const T, Value: ?*VARIANT) HRESULT { return @as(*const ISettingsItem.VTable, @ptrCast(self.vtable)).GetValue(@as(*const ISettingsItem, @ptrCast(self)), Value); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISettingsItem_SetValue(self: *const T, Value: ?*const VARIANT) HRESULT { return @as(*const ISettingsItem.VTable, @ptrCast(self.vtable)).SetValue(@as(*const ISettingsItem, @ptrCast(self)), Value); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISettingsItem_GetSettingType(self: *const T, Type: ?*WcmSettingType) HRESULT { return @as(*const ISettingsItem.VTable, @ptrCast(self.vtable)).GetSettingType(@as(*const ISettingsItem, @ptrCast(self)), Type); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISettingsItem_GetDataType(self: *const T, Type: ?*WcmDataType) HRESULT { return @as(*const ISettingsItem.VTable, @ptrCast(self.vtable)).GetDataType(@as(*const ISettingsItem, @ptrCast(self)), Type); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISettingsItem_GetValueRaw(self: *const T, Data: [*]?*u8, DataSize: ?*u32) HRESULT { return @as(*const ISettingsItem.VTable, @ptrCast(self.vtable)).GetValueRaw(@as(*const ISettingsItem, @ptrCast(self)), Data, DataSize); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISettingsItem_SetValueRaw(self: *const T, DataType: i32, Data: [*:0]const u8, DataSize: u32) HRESULT { return @as(*const ISettingsItem.VTable, @ptrCast(self.vtable)).SetValueRaw(@as(*const ISettingsItem, @ptrCast(self)), DataType, Data, DataSize); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISettingsItem_HasChild(self: *const T, ItemHasChild: ?*BOOL) HRESULT { return @as(*const ISettingsItem.VTable, @ptrCast(self.vtable)).HasChild(@as(*const ISettingsItem, @ptrCast(self)), ItemHasChild); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISettingsItem_Children(self: *const T, Children: ?*?*IItemEnumerator) HRESULT { return @as(*const ISettingsItem.VTable, @ptrCast(self.vtable)).Children(@as(*const ISettingsItem, @ptrCast(self)), Children); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISettingsItem_GetChild(self: *const T, Name: ?[*:0]const u16, Child: ?*?*ISettingsItem) HRESULT { return @as(*const ISettingsItem.VTable, @ptrCast(self.vtable)).GetChild(@as(*const ISettingsItem, @ptrCast(self)), Name, Child); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISettingsItem_GetSettingByPath(self: *const T, Path: ?[*:0]const u16, Setting: ?*?*ISettingsItem) HRESULT { return @as(*const ISettingsItem.VTable, @ptrCast(self.vtable)).GetSettingByPath(@as(*const ISettingsItem, @ptrCast(self)), Path, Setting); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISettingsItem_CreateSettingByPath(self: *const T, Path: ?[*:0]const u16, Setting: ?*?*ISettingsItem) HRESULT { return @as(*const ISettingsItem.VTable, @ptrCast(self.vtable)).CreateSettingByPath(@as(*const ISettingsItem, @ptrCast(self)), Path, Setting); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISettingsItem_RemoveSettingByPath(self: *const T, Path: ?[*:0]const u16) HRESULT { return @as(*const ISettingsItem.VTable, @ptrCast(self.vtable)).RemoveSettingByPath(@as(*const ISettingsItem, @ptrCast(self)), Path); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISettingsItem_GetListKeyInformation(self: *const T, KeyName: ?*?BSTR, DataType: ?*WcmDataType) HRESULT { return @as(*const ISettingsItem.VTable, @ptrCast(self.vtable)).GetListKeyInformation(@as(*const ISettingsItem, @ptrCast(self)), KeyName, DataType); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISettingsItem_CreateListElement(self: *const T, KeyData: ?*const VARIANT, Child: ?*?*ISettingsItem) HRESULT { return @as(*const ISettingsItem.VTable, @ptrCast(self.vtable)).CreateListElement(@as(*const ISettingsItem, @ptrCast(self)), KeyData, Child); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISettingsItem_RemoveListElement(self: *const T, ElementName: ?[*:0]const u16) HRESULT { return @as(*const ISettingsItem.VTable, @ptrCast(self.vtable)).RemoveListElement(@as(*const ISettingsItem, @ptrCast(self)), ElementName); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISettingsItem_Attributes(self: *const T, Attributes: ?*?*IItemEnumerator) HRESULT { return @as(*const ISettingsItem.VTable, @ptrCast(self.vtable)).Attributes(@as(*const ISettingsItem, @ptrCast(self)), Attributes); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISettingsItem_GetAttribute(self: *const T, Name: ?[*:0]const u16, Value: ?*VARIANT) HRESULT { return @as(*const ISettingsItem.VTable, @ptrCast(self.vtable)).GetAttribute(@as(*const ISettingsItem, @ptrCast(self)), Name, Value); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISettingsItem_GetPath(self: *const T, Path: ?*?BSTR) HRESULT { return @as(*const ISettingsItem.VTable, @ptrCast(self.vtable)).GetPath(@as(*const ISettingsItem, @ptrCast(self)), Path); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISettingsItem_GetRestrictionFacets(self: *const T, RestrictionFacets: ?*WcmRestrictionFacets) HRESULT { return @as(*const ISettingsItem.VTable, @ptrCast(self.vtable)).GetRestrictionFacets(@as(*const ISettingsItem, @ptrCast(self)), RestrictionFacets); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISettingsItem_GetRestriction(self: *const T, RestrictionFacet: WcmRestrictionFacets, FacetData: ?*VARIANT) HRESULT { return @as(*const ISettingsItem.VTable, @ptrCast(self.vtable)).GetRestriction(@as(*const ISettingsItem, @ptrCast(self)), RestrictionFacet, FacetData); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISettingsItem_GetKeyValue(self: *const T, Value: ?*VARIANT) HRESULT { return @as(*const ISettingsItem.VTable, @ptrCast(self.vtable)).GetKeyValue(@as(*const ISettingsItem, @ptrCast(self)), Value); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows6.0.6000' const IID_ISettingsNamespace_Value = Guid.initString("9f7d7bba-20b3-11da-81a5-0030f1642e3c"); pub const IID_ISettingsNamespace = &IID_ISettingsNamespace_Value; pub const ISettingsNamespace = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, GetIdentity: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ISettingsNamespace, SettingsID: ?*?*ISettingsIdentity, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ISettingsNamespace, SettingsID: ?*?*ISettingsIdentity, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Settings: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ISettingsNamespace, Settings: ?*?*IItemEnumerator, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ISettingsNamespace, Settings: ?*?*IItemEnumerator, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Save: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ISettingsNamespace, PushSettings: BOOL, Result: ?*?*ISettingsResult, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ISettingsNamespace, PushSettings: BOOL, Result: ?*?*ISettingsResult, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetSettingByPath: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ISettingsNamespace, Path: ?[*:0]const u16, Setting: ?*?*ISettingsItem, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ISettingsNamespace, Path: ?[*:0]const u16, Setting: ?*?*ISettingsItem, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, CreateSettingByPath: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ISettingsNamespace, Path: ?[*:0]const u16, Setting: ?*?*ISettingsItem, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ISettingsNamespace, Path: ?[*:0]const u16, Setting: ?*?*ISettingsItem, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, RemoveSettingByPath: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ISettingsNamespace, Path: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ISettingsNamespace, Path: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetAttribute: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ISettingsNamespace, Name: ?[*:0]const u16, Value: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ISettingsNamespace, Name: ?[*:0]const u16, Value: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISettingsNamespace_GetIdentity(self: *const T, SettingsID: ?*?*ISettingsIdentity) HRESULT { return @as(*const ISettingsNamespace.VTable, @ptrCast(self.vtable)).GetIdentity(@as(*const ISettingsNamespace, @ptrCast(self)), SettingsID); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISettingsNamespace_Settings(self: *const T, Settings: ?*?*IItemEnumerator) HRESULT { return @as(*const ISettingsNamespace.VTable, @ptrCast(self.vtable)).Settings(@as(*const ISettingsNamespace, @ptrCast(self)), Settings); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISettingsNamespace_Save(self: *const T, PushSettings: BOOL, Result: ?*?*ISettingsResult) HRESULT { return @as(*const ISettingsNamespace.VTable, @ptrCast(self.vtable)).Save(@as(*const ISettingsNamespace, @ptrCast(self)), PushSettings, Result); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISettingsNamespace_GetSettingByPath(self: *const T, Path: ?[*:0]const u16, Setting: ?*?*ISettingsItem) HRESULT { return @as(*const ISettingsNamespace.VTable, @ptrCast(self.vtable)).GetSettingByPath(@as(*const ISettingsNamespace, @ptrCast(self)), Path, Setting); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISettingsNamespace_CreateSettingByPath(self: *const T, Path: ?[*:0]const u16, Setting: ?*?*ISettingsItem) HRESULT { return @as(*const ISettingsNamespace.VTable, @ptrCast(self.vtable)).CreateSettingByPath(@as(*const ISettingsNamespace, @ptrCast(self)), Path, Setting); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISettingsNamespace_RemoveSettingByPath(self: *const T, Path: ?[*:0]const u16) HRESULT { return @as(*const ISettingsNamespace.VTable, @ptrCast(self.vtable)).RemoveSettingByPath(@as(*const ISettingsNamespace, @ptrCast(self)), Path); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISettingsNamespace_GetAttribute(self: *const T, Name: ?[*:0]const u16, Value: ?*VARIANT) HRESULT { return @as(*const ISettingsNamespace.VTable, @ptrCast(self.vtable)).GetAttribute(@as(*const ISettingsNamespace, @ptrCast(self)), Name, Value); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows6.0.6000' const IID_ISettingsResult_Value = Guid.initString("9f7d7bbc-20b3-11da-81a5-0030f1642e3c"); pub const IID_ISettingsResult = &IID_ISettingsResult_Value; pub const ISettingsResult = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, GetDescription: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ISettingsResult, description: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ISettingsResult, description: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetErrorCode: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ISettingsResult, hrOut: ?*HRESULT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ISettingsResult, hrOut: ?*HRESULT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetContextDescription: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ISettingsResult, description: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ISettingsResult, description: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetLine: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ISettingsResult, dwLine: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ISettingsResult, dwLine: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetColumn: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ISettingsResult, dwColumn: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ISettingsResult, dwColumn: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetSource: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ISettingsResult, file: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ISettingsResult, file: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISettingsResult_GetDescription(self: *const T, description: ?*?BSTR) HRESULT { return @as(*const ISettingsResult.VTable, @ptrCast(self.vtable)).GetDescription(@as(*const ISettingsResult, @ptrCast(self)), description); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISettingsResult_GetErrorCode(self: *const T, hrOut: ?*HRESULT) HRESULT { return @as(*const ISettingsResult.VTable, @ptrCast(self.vtable)).GetErrorCode(@as(*const ISettingsResult, @ptrCast(self)), hrOut); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISettingsResult_GetContextDescription(self: *const T, description: ?*?BSTR) HRESULT { return @as(*const ISettingsResult.VTable, @ptrCast(self.vtable)).GetContextDescription(@as(*const ISettingsResult, @ptrCast(self)), description); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISettingsResult_GetLine(self: *const T, dwLine: ?*u32) HRESULT { return @as(*const ISettingsResult.VTable, @ptrCast(self.vtable)).GetLine(@as(*const ISettingsResult, @ptrCast(self)), dwLine); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISettingsResult_GetColumn(self: *const T, dwColumn: ?*u32) HRESULT { return @as(*const ISettingsResult.VTable, @ptrCast(self.vtable)).GetColumn(@as(*const ISettingsResult, @ptrCast(self)), dwColumn); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISettingsResult_GetSource(self: *const T, file: ?*?BSTR) HRESULT { return @as(*const ISettingsResult.VTable, @ptrCast(self.vtable)).GetSource(@as(*const ISettingsResult, @ptrCast(self)), file); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows6.0.6000' const IID_ISettingsContext_Value = Guid.initString("9f7d7bbd-20b3-11da-81a5-0030f1642e3c"); pub const IID_ISettingsContext = &IID_ISettingsContext_Value; pub const ISettingsContext = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, Serialize: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ISettingsContext, pStream: ?*IStream, pTarget: ?*ITargetInfo, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ISettingsContext, pStream: ?*IStream, pTarget: ?*ITargetInfo, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Deserialize: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ISettingsContext, pStream: ?*IStream, pTarget: ?*ITargetInfo, pppResults: [*]?*?*ISettingsResult, pcResultCount: ?*usize, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ISettingsContext, pStream: ?*IStream, pTarget: ?*ITargetInfo, pppResults: [*]?*?*ISettingsResult, pcResultCount: ?*usize, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetUserData: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ISettingsContext, pUserData: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ISettingsContext, pUserData: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetUserData: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ISettingsContext, pUserData: ?*?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ISettingsContext, pUserData: ?*?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetNamespaces: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ISettingsContext, ppNamespaceIds: ?*?*IItemEnumerator, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ISettingsContext, ppNamespaceIds: ?*?*IItemEnumerator, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetStoredSettings: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ISettingsContext, pIdentity: ?*ISettingsIdentity, ppAddedSettings: ?*?*IItemEnumerator, ppModifiedSettings: ?*?*IItemEnumerator, ppDeletedSettings: ?*?*IItemEnumerator, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ISettingsContext, pIdentity: ?*ISettingsIdentity, ppAddedSettings: ?*?*IItemEnumerator, ppModifiedSettings: ?*?*IItemEnumerator, ppDeletedSettings: ?*?*IItemEnumerator, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, RevertSetting: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ISettingsContext, pIdentity: ?*ISettingsIdentity, pwzSetting: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ISettingsContext, pIdentity: ?*ISettingsIdentity, pwzSetting: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISettingsContext_Serialize(self: *const T, pStream: ?*IStream, pTarget: ?*ITargetInfo) HRESULT { return @as(*const ISettingsContext.VTable, @ptrCast(self.vtable)).Serialize(@as(*const ISettingsContext, @ptrCast(self)), pStream, pTarget); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISettingsContext_Deserialize(self: *const T, pStream: ?*IStream, pTarget: ?*ITargetInfo, pppResults: [*]?*?*ISettingsResult, pcResultCount: ?*usize) HRESULT { return @as(*const ISettingsContext.VTable, @ptrCast(self.vtable)).Deserialize(@as(*const ISettingsContext, @ptrCast(self)), pStream, pTarget, pppResults, pcResultCount); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISettingsContext_SetUserData(self: *const T, pUserData: ?*anyopaque) HRESULT { return @as(*const ISettingsContext.VTable, @ptrCast(self.vtable)).SetUserData(@as(*const ISettingsContext, @ptrCast(self)), pUserData); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISettingsContext_GetUserData(self: *const T, pUserData: ?*?*anyopaque) HRESULT { return @as(*const ISettingsContext.VTable, @ptrCast(self.vtable)).GetUserData(@as(*const ISettingsContext, @ptrCast(self)), pUserData); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISettingsContext_GetNamespaces(self: *const T, ppNamespaceIds: ?*?*IItemEnumerator) HRESULT { return @as(*const ISettingsContext.VTable, @ptrCast(self.vtable)).GetNamespaces(@as(*const ISettingsContext, @ptrCast(self)), ppNamespaceIds); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISettingsContext_GetStoredSettings(self: *const T, pIdentity: ?*ISettingsIdentity, ppAddedSettings: ?*?*IItemEnumerator, ppModifiedSettings: ?*?*IItemEnumerator, ppDeletedSettings: ?*?*IItemEnumerator) HRESULT { return @as(*const ISettingsContext.VTable, @ptrCast(self.vtable)).GetStoredSettings(@as(*const ISettingsContext, @ptrCast(self)), pIdentity, ppAddedSettings, ppModifiedSettings, ppDeletedSettings); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISettingsContext_RevertSetting(self: *const T, pIdentity: ?*ISettingsIdentity, pwzSetting: ?[*:0]const u16) HRESULT { return @as(*const ISettingsContext.VTable, @ptrCast(self.vtable)).RevertSetting(@as(*const ISettingsContext, @ptrCast(self)), pIdentity, pwzSetting); } }; } pub usingnamespace MethodMixin(@This()); }; //-------------------------------------------------------------------------------- // Section: Functions (0) //-------------------------------------------------------------------------------- //-------------------------------------------------------------------------------- // Section: Unicode Aliases (0) //-------------------------------------------------------------------------------- const thismodule = @This(); pub usingnamespace switch (@import("../zig.zig").unicode_mode) { .ansi => struct {}, .wide => struct {}, .unspecified => if (@import("builtin").is_test) struct {} else struct {}, }; //-------------------------------------------------------------------------------- // Section: Imports (9) //-------------------------------------------------------------------------------- const Guid = @import("../zig.zig").Guid; const BOOL = @import("../foundation.zig").BOOL; const BSTR = @import("../foundation.zig").BSTR; const HINSTANCE = @import("../foundation.zig").HINSTANCE; const HRESULT = @import("../foundation.zig").HRESULT; const IStream = @import("../system/com.zig").IStream; const IUnknown = @import("../system/com.zig").IUnknown; const PWSTR = @import("../foundation.zig").PWSTR; const VARIANT = @import("../system/com.zig").VARIANT; test { @setEvalBranchQuota(comptime @import("std").meta.declarations(@This()).len * 3); // reference all the pub declarations if (!@import("builtin").is_test) return; inline for (comptime @import("std").meta.declarations(@This())) |decl| { if (decl.is_pub) { _ = @field(@This(), decl.name); } } }
0
repos/capy/vendor/zigwin32/win32
repos/capy/vendor/zigwin32/win32/system/real_time_communications.zig
//! NOTE: this file is autogenerated, DO NOT MODIFY //-------------------------------------------------------------------------------- // Section: Constants (252) //-------------------------------------------------------------------------------- pub const RTCCS_FORCE_PROFILE = @as(u32, 1); pub const RTCCS_FAIL_ON_REDIRECT = @as(u32, 2); pub const RTCMT_AUDIO_SEND = @as(u32, 1); pub const RTCMT_AUDIO_RECEIVE = @as(u32, 2); pub const RTCMT_VIDEO_SEND = @as(u32, 4); pub const RTCMT_VIDEO_RECEIVE = @as(u32, 8); pub const RTCMT_T120_SENDRECV = @as(u32, 16); pub const RTCSI_PC_TO_PC = @as(u32, 1); pub const RTCSI_PC_TO_PHONE = @as(u32, 2); pub const RTCSI_PHONE_TO_PHONE = @as(u32, 4); pub const RTCSI_IM = @as(u32, 8); pub const RTCSI_MULTIPARTY_IM = @as(u32, 16); pub const RTCSI_APPLICATION = @as(u32, 32); pub const RTCTR_UDP = @as(u32, 1); pub const RTCTR_TCP = @as(u32, 2); pub const RTCTR_TLS = @as(u32, 4); pub const RTCAU_BASIC = @as(u32, 1); pub const RTCAU_DIGEST = @as(u32, 2); pub const RTCAU_NTLM = @as(u32, 4); pub const RTCAU_KERBEROS = @as(u32, 8); pub const RTCAU_USE_LOGON_CRED = @as(u32, 65536); pub const RTCRF_REGISTER_INVITE_SESSIONS = @as(u32, 1); pub const RTCRF_REGISTER_MESSAGE_SESSIONS = @as(u32, 2); pub const RTCRF_REGISTER_PRESENCE = @as(u32, 4); pub const RTCRF_REGISTER_NOTIFY = @as(u32, 8); pub const RTCRF_REGISTER_ALL = @as(u32, 15); pub const RTCRMF_BUDDY_ROAMING = @as(u32, 1); pub const RTCRMF_WATCHER_ROAMING = @as(u32, 2); pub const RTCRMF_PRESENCE_ROAMING = @as(u32, 4); pub const RTCRMF_PROFILE_ROAMING = @as(u32, 8); pub const RTCRMF_ALL_ROAMING = @as(u32, 15); pub const RTCEF_CLIENT = @as(u32, 1); pub const RTCEF_REGISTRATION_STATE_CHANGE = @as(u32, 2); pub const RTCEF_SESSION_STATE_CHANGE = @as(u32, 4); pub const RTCEF_SESSION_OPERATION_COMPLETE = @as(u32, 8); pub const RTCEF_PARTICIPANT_STATE_CHANGE = @as(u32, 16); pub const RTCEF_MEDIA = @as(u32, 32); pub const RTCEF_INTENSITY = @as(u32, 64); pub const RTCEF_MESSAGING = @as(u32, 128); pub const RTCEF_BUDDY = @as(u32, 256); pub const RTCEF_WATCHER = @as(u32, 512); pub const RTCEF_PROFILE = @as(u32, 1024); pub const RTCEF_USERSEARCH = @as(u32, 2048); pub const RTCEF_INFO = @as(u32, 4096); pub const RTCEF_GROUP = @as(u32, 8192); pub const RTCEF_MEDIA_REQUEST = @as(u32, 16384); pub const RTCEF_ROAMING = @as(u32, 65536); pub const RTCEF_PRESENCE_PROPERTY = @as(u32, 131072); pub const RTCEF_BUDDY2 = @as(u32, 262144); pub const RTCEF_WATCHER2 = @as(u32, 524288); pub const RTCEF_SESSION_REFER_STATUS = @as(u32, 1048576); pub const RTCEF_SESSION_REFERRED = @as(u32, 2097152); pub const RTCEF_REINVITE = @as(u32, 4194304); pub const RTCEF_PRESENCE_DATA = @as(u32, 8388608); pub const RTCEF_PRESENCE_STATUS = @as(u32, 16777216); pub const RTCEF_ALL = @as(u32, 33554431); pub const RTCIF_DISABLE_MEDIA = @as(u32, 1); pub const RTCIF_DISABLE_UPNP = @as(u32, 2); pub const RTCIF_ENABLE_SERVER_CLASS = @as(u32, 4); pub const RTCIF_DISABLE_STRICT_DNS = @as(u32, 8); pub const FACILITY_RTC_INTERFACE = @as(u32, 238); pub const FACILITY_SIP_STATUS_CODE = @as(u32, 239); pub const FACILITY_PINT_STATUS_CODE = @as(u32, 240); pub const STATUS_SEVERITY_RTC_ERROR = @as(u32, 2); pub const RTC_E_SIP_CODECS_DO_NOT_MATCH = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2131886080)); pub const RTC_E_SIP_STREAM_PRESENT = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2131886079)); pub const RTC_E_SIP_STREAM_NOT_PRESENT = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2131886078)); pub const RTC_E_SIP_NO_STREAM = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2131886077)); pub const RTC_E_SIP_PARSE_FAILED = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2131886076)); pub const RTC_E_SIP_HEADER_NOT_PRESENT = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2131886075)); pub const RTC_E_SDP_NOT_PRESENT = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2131886074)); pub const RTC_E_SDP_PARSE_FAILED = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2131886073)); pub const RTC_E_SDP_UPDATE_FAILED = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2131886072)); pub const RTC_E_SDP_MULTICAST = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2131886071)); pub const RTC_E_SDP_CONNECTION_ADDR = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2131886070)); pub const RTC_E_SDP_NO_MEDIA = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2131886069)); pub const RTC_E_SIP_TIMEOUT = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2131886068)); pub const RTC_E_SDP_FAILED_TO_BUILD = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2131886067)); pub const RTC_E_SIP_INVITE_TRANSACTION_PENDING = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2131886066)); pub const RTC_E_SIP_AUTH_HEADER_SENT = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2131886065)); pub const RTC_E_SIP_AUTH_TYPE_NOT_SUPPORTED = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2131886064)); pub const RTC_E_SIP_AUTH_FAILED = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2131886063)); pub const RTC_E_INVALID_SIP_URL = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2131886062)); pub const RTC_E_DESTINATION_ADDRESS_LOCAL = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2131886061)); pub const RTC_E_INVALID_ADDRESS_LOCAL = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2131886060)); pub const RTC_E_DESTINATION_ADDRESS_MULTICAST = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2131886059)); pub const RTC_E_INVALID_PROXY_ADDRESS = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2131886058)); pub const RTC_E_SIP_TRANSPORT_NOT_SUPPORTED = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2131886057)); pub const RTC_E_SIP_NEED_MORE_DATA = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2131886056)); pub const RTC_E_SIP_CALL_DISCONNECTED = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2131886055)); pub const RTC_E_SIP_REQUEST_DESTINATION_ADDR_NOT_PRESENT = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2131886054)); pub const RTC_E_SIP_UDP_SIZE_EXCEEDED = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2131886053)); pub const RTC_E_SIP_SSL_TUNNEL_FAILED = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2131886052)); pub const RTC_E_SIP_SSL_NEGOTIATION_TIMEOUT = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2131886051)); pub const RTC_E_SIP_STACK_SHUTDOWN = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2131886050)); pub const RTC_E_MEDIA_CONTROLLER_STATE = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2131886049)); pub const RTC_E_MEDIA_NEED_TERMINAL = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2131886048)); pub const RTC_E_MEDIA_AUDIO_DEVICE_NOT_AVAILABLE = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2131886047)); pub const RTC_E_MEDIA_VIDEO_DEVICE_NOT_AVAILABLE = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2131886046)); pub const RTC_E_START_STREAM = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2131886045)); pub const RTC_E_MEDIA_AEC = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2131886044)); pub const RTC_E_CLIENT_NOT_INITIALIZED = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2131886043)); pub const RTC_E_CLIENT_ALREADY_INITIALIZED = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2131886042)); pub const RTC_E_CLIENT_ALREADY_SHUT_DOWN = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2131886041)); pub const RTC_E_PRESENCE_NOT_ENABLED = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2131886040)); pub const RTC_E_INVALID_SESSION_TYPE = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2131886039)); pub const RTC_E_INVALID_SESSION_STATE = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2131886038)); pub const RTC_E_NO_PROFILE = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2131886037)); pub const RTC_E_LOCAL_PHONE_NEEDED = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2131886036)); pub const RTC_E_NO_DEVICE = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2131886035)); pub const RTC_E_INVALID_PROFILE = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2131886034)); pub const RTC_E_PROFILE_NO_PROVISION = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2131886033)); pub const RTC_E_PROFILE_NO_KEY = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2131886032)); pub const RTC_E_PROFILE_NO_NAME = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2131886031)); pub const RTC_E_PROFILE_NO_USER = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2131886030)); pub const RTC_E_PROFILE_NO_USER_URI = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2131886029)); pub const RTC_E_PROFILE_NO_SERVER = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2131886028)); pub const RTC_E_PROFILE_NO_SERVER_ADDRESS = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2131886027)); pub const RTC_E_PROFILE_NO_SERVER_PROTOCOL = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2131886026)); pub const RTC_E_PROFILE_INVALID_SERVER_PROTOCOL = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2131886025)); pub const RTC_E_PROFILE_INVALID_SERVER_AUTHMETHOD = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2131886024)); pub const RTC_E_PROFILE_INVALID_SERVER_ROLE = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2131886023)); pub const RTC_E_PROFILE_MULTIPLE_REGISTRARS = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2131886022)); pub const RTC_E_PROFILE_INVALID_SESSION = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2131886021)); pub const RTC_E_PROFILE_INVALID_SESSION_PARTY = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2131886020)); pub const RTC_E_PROFILE_INVALID_SESSION_TYPE = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2131886019)); pub const RTC_E_OPERATION_WITH_TOO_MANY_PARTICIPANTS = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2131886018)); pub const RTC_E_BASIC_AUTH_SET_TLS = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2131886017)); pub const RTC_E_SIP_HIGH_SECURITY_SET_TLS = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2131886016)); pub const RTC_S_ROAMING_NOT_SUPPORTED = @import("../zig.zig").typedConst(HRESULT, @as(i32, 15597633)); pub const RTC_E_PROFILE_SERVER_UNAUTHORIZED = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2131886014)); pub const RTC_E_DUPLICATE_REALM = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2131886013)); pub const RTC_E_POLICY_NOT_ALLOW = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2131886012)); pub const RTC_E_PORT_MAPPING_UNAVAILABLE = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2131886011)); pub const RTC_E_PORT_MAPPING_FAILED = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2131886010)); pub const RTC_E_SECURITY_LEVEL_NOT_COMPATIBLE = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2131886009)); pub const RTC_E_SECURITY_LEVEL_NOT_DEFINED = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2131886008)); pub const RTC_E_SECURITY_LEVEL_NOT_SUPPORTED_BY_PARTICIPANT = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2131886007)); pub const RTC_E_DUPLICATE_BUDDY = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2131886006)); pub const RTC_E_DUPLICATE_WATCHER = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2131886005)); pub const RTC_E_MALFORMED_XML = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2131886004)); pub const RTC_E_ROAMING_OPERATION_INTERRUPTED = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2131886003)); pub const RTC_E_ROAMING_FAILED = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2131886002)); pub const RTC_E_INVALID_BUDDY_LIST = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2131886001)); pub const RTC_E_INVALID_ACL_LIST = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2131886000)); pub const RTC_E_NO_GROUP = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2131885999)); pub const RTC_E_DUPLICATE_GROUP = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2131885998)); pub const RTC_E_TOO_MANY_GROUPS = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2131885997)); pub const RTC_E_NO_BUDDY = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2131885996)); pub const RTC_E_NO_WATCHER = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2131885995)); pub const RTC_E_NO_REALM = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2131885994)); pub const RTC_E_NO_TRANSPORT = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2131885993)); pub const RTC_E_NOT_EXIST = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2131885992)); pub const RTC_E_INVALID_PREFERENCE_LIST = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2131885991)); pub const RTC_E_MAX_PENDING_OPERATIONS = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2131885990)); pub const RTC_E_TOO_MANY_RETRIES = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2131885989)); pub const RTC_E_INVALID_PORTRANGE = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2131885988)); pub const RTC_E_SIP_CALL_CONNECTION_NOT_ESTABLISHED = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2131885987)); pub const RTC_E_SIP_ADDITIONAL_PARTY_IN_TWO_PARTY_SESSION = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2131885986)); pub const RTC_E_SIP_PARTY_ALREADY_IN_SESSION = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2131885985)); pub const RTC_E_SIP_OTHER_PARTY_JOIN_IN_PROGRESS = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2131885984)); pub const RTC_E_INVALID_OBJECT_STATE = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2131885983)); pub const RTC_E_PRESENCE_ENABLED = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2131885982)); pub const RTC_E_ROAMING_ENABLED = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2131885981)); pub const RTC_E_SIP_TLS_INCOMPATIBLE_ENCRYPTION = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2131885980)); pub const RTC_E_SIP_INVALID_CERTIFICATE = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2131885979)); pub const RTC_E_SIP_DNS_FAIL = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2131885978)); pub const RTC_E_SIP_TCP_FAIL = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2131885977)); pub const RTC_E_TOO_SMALL_EXPIRES_VALUE = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2131885976)); pub const RTC_E_SIP_TLS_FAIL = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2131885975)); pub const RTC_E_NOT_PRESENCE_PROFILE = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2131885974)); pub const RTC_E_SIP_INVITEE_PARTY_TIMEOUT = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2131885973)); pub const RTC_E_SIP_AUTH_TIME_SKEW = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2131885972)); pub const RTC_E_INVALID_REGISTRATION_STATE = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2131885971)); pub const RTC_E_MEDIA_DISABLED = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2131885970)); pub const RTC_E_MEDIA_ENABLED = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2131885969)); pub const RTC_E_REFER_NOT_ACCEPTED = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2131885968)); pub const RTC_E_REFER_NOT_ALLOWED = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2131885967)); pub const RTC_E_REFER_NOT_EXIST = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2131885966)); pub const RTC_E_SIP_HOLD_OPERATION_PENDING = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2131885965)); pub const RTC_E_SIP_UNHOLD_OPERATION_PENDING = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2131885964)); pub const RTC_E_MEDIA_SESSION_NOT_EXIST = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2131885963)); pub const RTC_E_MEDIA_SESSION_IN_HOLD = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2131885962)); pub const RTC_E_ANOTHER_MEDIA_SESSION_ACTIVE = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2131885961)); pub const RTC_E_MAX_REDIRECTS = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2131885960)); pub const RTC_E_REDIRECT_PROCESSING_FAILED = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2131885959)); pub const RTC_E_LISTENING_SOCKET_NOT_EXIST = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2131885958)); pub const RTC_E_INVALID_LISTEN_SOCKET = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2131885957)); pub const RTC_E_PORT_MANAGER_ALREADY_SET = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2131885956)); pub const RTC_E_SECURITY_LEVEL_ALREADY_SET = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2131885955)); pub const RTC_E_UDP_NOT_SUPPORTED = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2131885954)); pub const RTC_E_SIP_REFER_OPERATION_PENDING = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2131885953)); pub const RTC_E_PLATFORM_NOT_SUPPORTED = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2131885952)); pub const RTC_E_SIP_PEER_PARTICIPANT_IN_MULTIPARTY_SESSION = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2131885951)); pub const RTC_E_NOT_ALLOWED = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2131885950)); pub const RTC_E_REGISTRATION_DEACTIVATED = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2131885949)); pub const RTC_E_REGISTRATION_REJECTED = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2131885948)); pub const RTC_E_REGISTRATION_UNREGISTERED = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2131885947)); pub const RTC_E_STATUS_INFO_TRYING = @import("../zig.zig").typedConst(HRESULT, @as(i32, 15663204)); pub const RTC_E_STATUS_INFO_RINGING = @import("../zig.zig").typedConst(HRESULT, @as(i32, 15663284)); pub const RTC_E_STATUS_INFO_CALL_FORWARDING = @import("../zig.zig").typedConst(HRESULT, @as(i32, 15663285)); pub const RTC_E_STATUS_INFO_QUEUED = @import("../zig.zig").typedConst(HRESULT, @as(i32, 15663286)); pub const RTC_E_STATUS_SESSION_PROGRESS = @import("../zig.zig").typedConst(HRESULT, @as(i32, 15663287)); pub const RTC_E_STATUS_SUCCESS = @import("../zig.zig").typedConst(HRESULT, @as(i32, 15663304)); pub const RTC_E_STATUS_REDIRECT_MULTIPLE_CHOICES = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2131820244)); pub const RTC_E_STATUS_REDIRECT_MOVED_PERMANENTLY = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2131820243)); pub const RTC_E_STATUS_REDIRECT_MOVED_TEMPORARILY = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2131820242)); pub const RTC_E_STATUS_REDIRECT_SEE_OTHER = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2131820241)); pub const RTC_E_STATUS_REDIRECT_USE_PROXY = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2131820239)); pub const RTC_E_STATUS_REDIRECT_ALTERNATIVE_SERVICE = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2131820164)); pub const RTC_E_STATUS_CLIENT_BAD_REQUEST = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2131820144)); pub const RTC_E_STATUS_CLIENT_UNAUTHORIZED = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2131820143)); pub const RTC_E_STATUS_CLIENT_PAYMENT_REQUIRED = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2131820142)); pub const RTC_E_STATUS_CLIENT_FORBIDDEN = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2131820141)); pub const RTC_E_STATUS_CLIENT_NOT_FOUND = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2131820140)); pub const RTC_E_STATUS_CLIENT_METHOD_NOT_ALLOWED = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2131820139)); pub const RTC_E_STATUS_CLIENT_NOT_ACCEPTABLE = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2131820138)); pub const RTC_E_STATUS_CLIENT_PROXY_AUTHENTICATION_REQUIRED = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2131820137)); pub const RTC_E_STATUS_CLIENT_REQUEST_TIMEOUT = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2131820136)); pub const RTC_E_STATUS_CLIENT_CONFLICT = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2131820135)); pub const RTC_E_STATUS_CLIENT_GONE = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2131820134)); pub const RTC_E_STATUS_CLIENT_LENGTH_REQUIRED = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2131820133)); pub const RTC_E_STATUS_CLIENT_REQUEST_ENTITY_TOO_LARGE = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2131820131)); pub const RTC_E_STATUS_CLIENT_REQUEST_URI_TOO_LARGE = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2131820130)); pub const RTC_E_STATUS_CLIENT_UNSUPPORTED_MEDIA_TYPE = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2131820129)); pub const RTC_E_STATUS_CLIENT_BAD_EXTENSION = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2131820124)); pub const RTC_E_STATUS_CLIENT_TEMPORARILY_NOT_AVAILABLE = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2131820064)); pub const RTC_E_STATUS_CLIENT_TRANSACTION_DOES_NOT_EXIST = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2131820063)); pub const RTC_E_STATUS_CLIENT_LOOP_DETECTED = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2131820062)); pub const RTC_E_STATUS_CLIENT_TOO_MANY_HOPS = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2131820061)); pub const RTC_E_STATUS_CLIENT_ADDRESS_INCOMPLETE = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2131820060)); pub const RTC_E_STATUS_CLIENT_AMBIGUOUS = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2131820059)); pub const RTC_E_STATUS_CLIENT_BUSY_HERE = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2131820058)); pub const RTC_E_STATUS_REQUEST_TERMINATED = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2131820057)); pub const RTC_E_STATUS_NOT_ACCEPTABLE_HERE = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2131820056)); pub const RTC_E_STATUS_SERVER_INTERNAL_ERROR = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2131820044)); pub const RTC_E_STATUS_SERVER_NOT_IMPLEMENTED = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2131820043)); pub const RTC_E_STATUS_SERVER_BAD_GATEWAY = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2131820042)); pub const RTC_E_STATUS_SERVER_SERVICE_UNAVAILABLE = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2131820041)); pub const RTC_E_STATUS_SERVER_SERVER_TIMEOUT = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2131820040)); pub const RTC_E_STATUS_SERVER_VERSION_NOT_SUPPORTED = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2131820039)); pub const RTC_E_STATUS_GLOBAL_BUSY_EVERYWHERE = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2131819944)); pub const RTC_E_STATUS_GLOBAL_DECLINE = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2131819941)); pub const RTC_E_STATUS_GLOBAL_DOES_NOT_EXIST_ANYWHERE = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2131819940)); pub const RTC_E_STATUS_GLOBAL_NOT_ACCEPTABLE = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2131819938)); pub const RTC_E_PINT_STATUS_REJECTED_BUSY = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2131755003)); pub const RTC_E_PINT_STATUS_REJECTED_NO_ANSWER = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2131755002)); pub const RTC_E_PINT_STATUS_REJECTED_ALL_BUSY = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2131755001)); pub const RTC_E_PINT_STATUS_REJECTED_PL_FAILED = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2131755000)); pub const RTC_E_PINT_STATUS_REJECTED_SW_FAILED = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2131754999)); pub const RTC_E_PINT_STATUS_REJECTED_CANCELLED = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2131754998)); pub const RTC_E_PINT_STATUS_REJECTED_BADNUMBER = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2131754997)); //-------------------------------------------------------------------------------- // Section: Types (107) //-------------------------------------------------------------------------------- const CLSID_RTCClient_Value = Guid.initString("7a42ea29-a2b7-40c4-b091-f6f024aa89be"); pub const CLSID_RTCClient = &CLSID_RTCClient_Value; pub const RTC_AUDIO_DEVICE = enum(i32) { SPEAKER = 0, MICROPHONE = 1, }; pub const RTCAD_SPEAKER = RTC_AUDIO_DEVICE.SPEAKER; pub const RTCAD_MICROPHONE = RTC_AUDIO_DEVICE.MICROPHONE; pub const RTC_VIDEO_DEVICE = enum(i32) { RECEIVE = 0, PREVIEW = 1, }; pub const RTCVD_RECEIVE = RTC_VIDEO_DEVICE.RECEIVE; pub const RTCVD_PREVIEW = RTC_VIDEO_DEVICE.PREVIEW; pub const RTC_EVENT = enum(i32) { CLIENT = 0, REGISTRATION_STATE_CHANGE = 1, SESSION_STATE_CHANGE = 2, SESSION_OPERATION_COMPLETE = 3, PARTICIPANT_STATE_CHANGE = 4, MEDIA = 5, INTENSITY = 6, MESSAGING = 7, BUDDY = 8, WATCHER = 9, PROFILE = 10, USERSEARCH = 11, INFO = 12, GROUP = 13, MEDIA_REQUEST = 14, ROAMING = 15, PRESENCE_PROPERTY = 16, PRESENCE_DATA = 17, PRESENCE_STATUS = 18, SESSION_REFER_STATUS = 19, SESSION_REFERRED = 20, REINVITE = 21, }; pub const RTCE_CLIENT = RTC_EVENT.CLIENT; pub const RTCE_REGISTRATION_STATE_CHANGE = RTC_EVENT.REGISTRATION_STATE_CHANGE; pub const RTCE_SESSION_STATE_CHANGE = RTC_EVENT.SESSION_STATE_CHANGE; pub const RTCE_SESSION_OPERATION_COMPLETE = RTC_EVENT.SESSION_OPERATION_COMPLETE; pub const RTCE_PARTICIPANT_STATE_CHANGE = RTC_EVENT.PARTICIPANT_STATE_CHANGE; pub const RTCE_MEDIA = RTC_EVENT.MEDIA; pub const RTCE_INTENSITY = RTC_EVENT.INTENSITY; pub const RTCE_MESSAGING = RTC_EVENT.MESSAGING; pub const RTCE_BUDDY = RTC_EVENT.BUDDY; pub const RTCE_WATCHER = RTC_EVENT.WATCHER; pub const RTCE_PROFILE = RTC_EVENT.PROFILE; pub const RTCE_USERSEARCH = RTC_EVENT.USERSEARCH; pub const RTCE_INFO = RTC_EVENT.INFO; pub const RTCE_GROUP = RTC_EVENT.GROUP; pub const RTCE_MEDIA_REQUEST = RTC_EVENT.MEDIA_REQUEST; pub const RTCE_ROAMING = RTC_EVENT.ROAMING; pub const RTCE_PRESENCE_PROPERTY = RTC_EVENT.PRESENCE_PROPERTY; pub const RTCE_PRESENCE_DATA = RTC_EVENT.PRESENCE_DATA; pub const RTCE_PRESENCE_STATUS = RTC_EVENT.PRESENCE_STATUS; pub const RTCE_SESSION_REFER_STATUS = RTC_EVENT.SESSION_REFER_STATUS; pub const RTCE_SESSION_REFERRED = RTC_EVENT.SESSION_REFERRED; pub const RTCE_REINVITE = RTC_EVENT.REINVITE; pub const RTC_LISTEN_MODE = enum(i32) { NONE = 0, DYNAMIC = 1, BOTH = 2, }; pub const RTCLM_NONE = RTC_LISTEN_MODE.NONE; pub const RTCLM_DYNAMIC = RTC_LISTEN_MODE.DYNAMIC; pub const RTCLM_BOTH = RTC_LISTEN_MODE.BOTH; pub const RTC_CLIENT_EVENT_TYPE = enum(i32) { VOLUME_CHANGE = 0, DEVICE_CHANGE = 1, NETWORK_QUALITY_CHANGE = 2, ASYNC_CLEANUP_DONE = 3, }; pub const RTCCET_VOLUME_CHANGE = RTC_CLIENT_EVENT_TYPE.VOLUME_CHANGE; pub const RTCCET_DEVICE_CHANGE = RTC_CLIENT_EVENT_TYPE.DEVICE_CHANGE; pub const RTCCET_NETWORK_QUALITY_CHANGE = RTC_CLIENT_EVENT_TYPE.NETWORK_QUALITY_CHANGE; pub const RTCCET_ASYNC_CLEANUP_DONE = RTC_CLIENT_EVENT_TYPE.ASYNC_CLEANUP_DONE; pub const RTC_BUDDY_EVENT_TYPE = enum(i32) { ADD = 0, REMOVE = 1, UPDATE = 2, STATE_CHANGE = 3, ROAMED = 4, SUBSCRIBED = 5, }; pub const RTCBET_BUDDY_ADD = RTC_BUDDY_EVENT_TYPE.ADD; pub const RTCBET_BUDDY_REMOVE = RTC_BUDDY_EVENT_TYPE.REMOVE; pub const RTCBET_BUDDY_UPDATE = RTC_BUDDY_EVENT_TYPE.UPDATE; pub const RTCBET_BUDDY_STATE_CHANGE = RTC_BUDDY_EVENT_TYPE.STATE_CHANGE; pub const RTCBET_BUDDY_ROAMED = RTC_BUDDY_EVENT_TYPE.ROAMED; pub const RTCBET_BUDDY_SUBSCRIBED = RTC_BUDDY_EVENT_TYPE.SUBSCRIBED; pub const RTC_WATCHER_EVENT_TYPE = enum(i32) { ADD = 0, REMOVE = 1, UPDATE = 2, OFFERING = 3, ROAMED = 4, }; pub const RTCWET_WATCHER_ADD = RTC_WATCHER_EVENT_TYPE.ADD; pub const RTCWET_WATCHER_REMOVE = RTC_WATCHER_EVENT_TYPE.REMOVE; pub const RTCWET_WATCHER_UPDATE = RTC_WATCHER_EVENT_TYPE.UPDATE; pub const RTCWET_WATCHER_OFFERING = RTC_WATCHER_EVENT_TYPE.OFFERING; pub const RTCWET_WATCHER_ROAMED = RTC_WATCHER_EVENT_TYPE.ROAMED; pub const RTC_GROUP_EVENT_TYPE = enum(i32) { ADD = 0, REMOVE = 1, UPDATE = 2, BUDDY_ADD = 3, BUDDY_REMOVE = 4, ROAMED = 5, }; pub const RTCGET_GROUP_ADD = RTC_GROUP_EVENT_TYPE.ADD; pub const RTCGET_GROUP_REMOVE = RTC_GROUP_EVENT_TYPE.REMOVE; pub const RTCGET_GROUP_UPDATE = RTC_GROUP_EVENT_TYPE.UPDATE; pub const RTCGET_GROUP_BUDDY_ADD = RTC_GROUP_EVENT_TYPE.BUDDY_ADD; pub const RTCGET_GROUP_BUDDY_REMOVE = RTC_GROUP_EVENT_TYPE.BUDDY_REMOVE; pub const RTCGET_GROUP_ROAMED = RTC_GROUP_EVENT_TYPE.ROAMED; pub const RTC_TERMINATE_REASON = enum(i32) { NORMAL = 0, DND = 1, BUSY = 2, REJECT = 3, TIMEOUT = 4, SHUTDOWN = 5, INSUFFICIENT_SECURITY_LEVEL = 6, NOT_SUPPORTED = 7, }; pub const RTCTR_NORMAL = RTC_TERMINATE_REASON.NORMAL; pub const RTCTR_DND = RTC_TERMINATE_REASON.DND; pub const RTCTR_BUSY = RTC_TERMINATE_REASON.BUSY; pub const RTCTR_REJECT = RTC_TERMINATE_REASON.REJECT; pub const RTCTR_TIMEOUT = RTC_TERMINATE_REASON.TIMEOUT; pub const RTCTR_SHUTDOWN = RTC_TERMINATE_REASON.SHUTDOWN; pub const RTCTR_INSUFFICIENT_SECURITY_LEVEL = RTC_TERMINATE_REASON.INSUFFICIENT_SECURITY_LEVEL; pub const RTCTR_NOT_SUPPORTED = RTC_TERMINATE_REASON.NOT_SUPPORTED; pub const RTC_REGISTRATION_STATE = enum(i32) { NOT_REGISTERED = 0, REGISTERING = 1, REGISTERED = 2, REJECTED = 3, UNREGISTERING = 4, ERROR = 5, LOGGED_OFF = 6, LOCAL_PA_LOGGED_OFF = 7, REMOTE_PA_LOGGED_OFF = 8, }; pub const RTCRS_NOT_REGISTERED = RTC_REGISTRATION_STATE.NOT_REGISTERED; pub const RTCRS_REGISTERING = RTC_REGISTRATION_STATE.REGISTERING; pub const RTCRS_REGISTERED = RTC_REGISTRATION_STATE.REGISTERED; pub const RTCRS_REJECTED = RTC_REGISTRATION_STATE.REJECTED; pub const RTCRS_UNREGISTERING = RTC_REGISTRATION_STATE.UNREGISTERING; pub const RTCRS_ERROR = RTC_REGISTRATION_STATE.ERROR; pub const RTCRS_LOGGED_OFF = RTC_REGISTRATION_STATE.LOGGED_OFF; pub const RTCRS_LOCAL_PA_LOGGED_OFF = RTC_REGISTRATION_STATE.LOCAL_PA_LOGGED_OFF; pub const RTCRS_REMOTE_PA_LOGGED_OFF = RTC_REGISTRATION_STATE.REMOTE_PA_LOGGED_OFF; pub const RTC_SESSION_STATE = enum(i32) { IDLE = 0, INCOMING = 1, ANSWERING = 2, INPROGRESS = 3, CONNECTED = 4, DISCONNECTED = 5, HOLD = 6, REFER = 7, }; pub const RTCSS_IDLE = RTC_SESSION_STATE.IDLE; pub const RTCSS_INCOMING = RTC_SESSION_STATE.INCOMING; pub const RTCSS_ANSWERING = RTC_SESSION_STATE.ANSWERING; pub const RTCSS_INPROGRESS = RTC_SESSION_STATE.INPROGRESS; pub const RTCSS_CONNECTED = RTC_SESSION_STATE.CONNECTED; pub const RTCSS_DISCONNECTED = RTC_SESSION_STATE.DISCONNECTED; pub const RTCSS_HOLD = RTC_SESSION_STATE.HOLD; pub const RTCSS_REFER = RTC_SESSION_STATE.REFER; pub const RTC_PARTICIPANT_STATE = enum(i32) { IDLE = 0, PENDING = 1, INCOMING = 2, ANSWERING = 3, INPROGRESS = 4, ALERTING = 5, CONNECTED = 6, DISCONNECTING = 7, DISCONNECTED = 8, }; pub const RTCPS_IDLE = RTC_PARTICIPANT_STATE.IDLE; pub const RTCPS_PENDING = RTC_PARTICIPANT_STATE.PENDING; pub const RTCPS_INCOMING = RTC_PARTICIPANT_STATE.INCOMING; pub const RTCPS_ANSWERING = RTC_PARTICIPANT_STATE.ANSWERING; pub const RTCPS_INPROGRESS = RTC_PARTICIPANT_STATE.INPROGRESS; pub const RTCPS_ALERTING = RTC_PARTICIPANT_STATE.ALERTING; pub const RTCPS_CONNECTED = RTC_PARTICIPANT_STATE.CONNECTED; pub const RTCPS_DISCONNECTING = RTC_PARTICIPANT_STATE.DISCONNECTING; pub const RTCPS_DISCONNECTED = RTC_PARTICIPANT_STATE.DISCONNECTED; pub const RTC_WATCHER_STATE = enum(i32) { UNKNOWN = 0, OFFERING = 1, ALLOWED = 2, BLOCKED = 3, DENIED = 4, PROMPT = 5, }; pub const RTCWS_UNKNOWN = RTC_WATCHER_STATE.UNKNOWN; pub const RTCWS_OFFERING = RTC_WATCHER_STATE.OFFERING; pub const RTCWS_ALLOWED = RTC_WATCHER_STATE.ALLOWED; pub const RTCWS_BLOCKED = RTC_WATCHER_STATE.BLOCKED; pub const RTCWS_DENIED = RTC_WATCHER_STATE.DENIED; pub const RTCWS_PROMPT = RTC_WATCHER_STATE.PROMPT; pub const RTC_ACE_SCOPE = enum(i32) { USER = 0, DOMAIN = 1, ALL = 2, }; pub const RTCAS_SCOPE_USER = RTC_ACE_SCOPE.USER; pub const RTCAS_SCOPE_DOMAIN = RTC_ACE_SCOPE.DOMAIN; pub const RTCAS_SCOPE_ALL = RTC_ACE_SCOPE.ALL; pub const RTC_OFFER_WATCHER_MODE = enum(i32) { OFFER_WATCHER_EVENT = 0, AUTOMATICALLY_ADD_WATCHER = 1, }; pub const RTCOWM_OFFER_WATCHER_EVENT = RTC_OFFER_WATCHER_MODE.OFFER_WATCHER_EVENT; pub const RTCOWM_AUTOMATICALLY_ADD_WATCHER = RTC_OFFER_WATCHER_MODE.AUTOMATICALLY_ADD_WATCHER; pub const RTC_WATCHER_MATCH_MODE = enum(i32) { EXACT_MATCH = 0, BEST_ACE_MATCH = 1, }; pub const RTCWMM_EXACT_MATCH = RTC_WATCHER_MATCH_MODE.EXACT_MATCH; pub const RTCWMM_BEST_ACE_MATCH = RTC_WATCHER_MATCH_MODE.BEST_ACE_MATCH; pub const RTC_PRIVACY_MODE = enum(i32) { BLOCK_LIST_EXCLUDED = 0, ALLOW_LIST_ONLY = 1, }; pub const RTCPM_BLOCK_LIST_EXCLUDED = RTC_PRIVACY_MODE.BLOCK_LIST_EXCLUDED; pub const RTCPM_ALLOW_LIST_ONLY = RTC_PRIVACY_MODE.ALLOW_LIST_ONLY; pub const RTC_SESSION_TYPE = enum(i32) { PC_TO_PC = 0, PC_TO_PHONE = 1, PHONE_TO_PHONE = 2, IM = 3, MULTIPARTY_IM = 4, APPLICATION = 5, }; pub const RTCST_PC_TO_PC = RTC_SESSION_TYPE.PC_TO_PC; pub const RTCST_PC_TO_PHONE = RTC_SESSION_TYPE.PC_TO_PHONE; pub const RTCST_PHONE_TO_PHONE = RTC_SESSION_TYPE.PHONE_TO_PHONE; pub const RTCST_IM = RTC_SESSION_TYPE.IM; pub const RTCST_MULTIPARTY_IM = RTC_SESSION_TYPE.MULTIPARTY_IM; pub const RTCST_APPLICATION = RTC_SESSION_TYPE.APPLICATION; pub const RTC_PRESENCE_STATUS = enum(i32) { OFFLINE = 0, ONLINE = 1, AWAY = 2, IDLE = 3, BUSY = 4, BE_RIGHT_BACK = 5, ON_THE_PHONE = 6, OUT_TO_LUNCH = 7, }; pub const RTCXS_PRESENCE_OFFLINE = RTC_PRESENCE_STATUS.OFFLINE; pub const RTCXS_PRESENCE_ONLINE = RTC_PRESENCE_STATUS.ONLINE; pub const RTCXS_PRESENCE_AWAY = RTC_PRESENCE_STATUS.AWAY; pub const RTCXS_PRESENCE_IDLE = RTC_PRESENCE_STATUS.IDLE; pub const RTCXS_PRESENCE_BUSY = RTC_PRESENCE_STATUS.BUSY; pub const RTCXS_PRESENCE_BE_RIGHT_BACK = RTC_PRESENCE_STATUS.BE_RIGHT_BACK; pub const RTCXS_PRESENCE_ON_THE_PHONE = RTC_PRESENCE_STATUS.ON_THE_PHONE; pub const RTCXS_PRESENCE_OUT_TO_LUNCH = RTC_PRESENCE_STATUS.OUT_TO_LUNCH; pub const RTC_BUDDY_SUBSCRIPTION_TYPE = enum(i32) { SUBSCRIBED = 0, ALWAYS_OFFLINE = 1, ALWAYS_ONLINE = 2, POLL = 3, }; pub const RTCBT_SUBSCRIBED = RTC_BUDDY_SUBSCRIPTION_TYPE.SUBSCRIBED; pub const RTCBT_ALWAYS_OFFLINE = RTC_BUDDY_SUBSCRIPTION_TYPE.ALWAYS_OFFLINE; pub const RTCBT_ALWAYS_ONLINE = RTC_BUDDY_SUBSCRIPTION_TYPE.ALWAYS_ONLINE; pub const RTCBT_POLL = RTC_BUDDY_SUBSCRIPTION_TYPE.POLL; pub const RTC_MEDIA_EVENT_TYPE = enum(i32) { STOPPED = 0, STARTED = 1, FAILED = 2, }; pub const RTCMET_STOPPED = RTC_MEDIA_EVENT_TYPE.STOPPED; pub const RTCMET_STARTED = RTC_MEDIA_EVENT_TYPE.STARTED; pub const RTCMET_FAILED = RTC_MEDIA_EVENT_TYPE.FAILED; pub const RTC_MEDIA_EVENT_REASON = enum(i32) { NORMAL = 0, HOLD = 1, TIMEOUT = 2, BAD_DEVICE = 3, NO_PORT = 4, PORT_MAPPING_FAILED = 5, REMOTE_REQUEST = 6, }; pub const RTCMER_NORMAL = RTC_MEDIA_EVENT_REASON.NORMAL; pub const RTCMER_HOLD = RTC_MEDIA_EVENT_REASON.HOLD; pub const RTCMER_TIMEOUT = RTC_MEDIA_EVENT_REASON.TIMEOUT; pub const RTCMER_BAD_DEVICE = RTC_MEDIA_EVENT_REASON.BAD_DEVICE; pub const RTCMER_NO_PORT = RTC_MEDIA_EVENT_REASON.NO_PORT; pub const RTCMER_PORT_MAPPING_FAILED = RTC_MEDIA_EVENT_REASON.PORT_MAPPING_FAILED; pub const RTCMER_REMOTE_REQUEST = RTC_MEDIA_EVENT_REASON.REMOTE_REQUEST; pub const RTC_MESSAGING_EVENT_TYPE = enum(i32) { MESSAGE = 0, STATUS = 1, }; pub const RTCMSET_MESSAGE = RTC_MESSAGING_EVENT_TYPE.MESSAGE; pub const RTCMSET_STATUS = RTC_MESSAGING_EVENT_TYPE.STATUS; pub const RTC_MESSAGING_USER_STATUS = enum(i32) { IDLE = 0, TYPING = 1, }; pub const RTCMUS_IDLE = RTC_MESSAGING_USER_STATUS.IDLE; pub const RTCMUS_TYPING = RTC_MESSAGING_USER_STATUS.TYPING; pub const RTC_DTMF = enum(i32) { @"0" = 0, @"1" = 1, @"2" = 2, @"3" = 3, @"4" = 4, @"5" = 5, @"6" = 6, @"7" = 7, @"8" = 8, @"9" = 9, STAR = 10, POUND = 11, A = 12, B = 13, C = 14, D = 15, FLASH = 16, }; pub const RTC_DTMF_0 = RTC_DTMF.@"0"; pub const RTC_DTMF_1 = RTC_DTMF.@"1"; pub const RTC_DTMF_2 = RTC_DTMF.@"2"; pub const RTC_DTMF_3 = RTC_DTMF.@"3"; pub const RTC_DTMF_4 = RTC_DTMF.@"4"; pub const RTC_DTMF_5 = RTC_DTMF.@"5"; pub const RTC_DTMF_6 = RTC_DTMF.@"6"; pub const RTC_DTMF_7 = RTC_DTMF.@"7"; pub const RTC_DTMF_8 = RTC_DTMF.@"8"; pub const RTC_DTMF_9 = RTC_DTMF.@"9"; pub const RTC_DTMF_STAR = RTC_DTMF.STAR; pub const RTC_DTMF_POUND = RTC_DTMF.POUND; pub const RTC_DTMF_A = RTC_DTMF.A; pub const RTC_DTMF_B = RTC_DTMF.B; pub const RTC_DTMF_C = RTC_DTMF.C; pub const RTC_DTMF_D = RTC_DTMF.D; pub const RTC_DTMF_FLASH = RTC_DTMF.FLASH; pub const RTC_PROVIDER_URI = enum(i32) { HOMEPAGE = 0, HELPDESK = 1, PERSONALACCOUNT = 2, DISPLAYDURINGCALL = 3, DISPLAYDURINGIDLE = 4, }; pub const RTCPU_URIHOMEPAGE = RTC_PROVIDER_URI.HOMEPAGE; pub const RTCPU_URIHELPDESK = RTC_PROVIDER_URI.HELPDESK; pub const RTCPU_URIPERSONALACCOUNT = RTC_PROVIDER_URI.PERSONALACCOUNT; pub const RTCPU_URIDISPLAYDURINGCALL = RTC_PROVIDER_URI.DISPLAYDURINGCALL; pub const RTCPU_URIDISPLAYDURINGIDLE = RTC_PROVIDER_URI.DISPLAYDURINGIDLE; pub const RTC_RING_TYPE = enum(i32) { PHONE = 0, MESSAGE = 1, RINGBACK = 2, }; pub const RTCRT_PHONE = RTC_RING_TYPE.PHONE; pub const RTCRT_MESSAGE = RTC_RING_TYPE.MESSAGE; pub const RTCRT_RINGBACK = RTC_RING_TYPE.RINGBACK; pub const RTC_T120_APPLET = enum(i32) { WHITEBOARD = 0, APPSHARING = 1, }; pub const RTCTA_WHITEBOARD = RTC_T120_APPLET.WHITEBOARD; pub const RTCTA_APPSHARING = RTC_T120_APPLET.APPSHARING; pub const RTC_PORT_TYPE = enum(i32) { AUDIO_RTP = 0, AUDIO_RTCP = 1, VIDEO_RTP = 2, VIDEO_RTCP = 3, SIP = 4, }; pub const RTCPT_AUDIO_RTP = RTC_PORT_TYPE.AUDIO_RTP; pub const RTCPT_AUDIO_RTCP = RTC_PORT_TYPE.AUDIO_RTCP; pub const RTCPT_VIDEO_RTP = RTC_PORT_TYPE.VIDEO_RTP; pub const RTCPT_VIDEO_RTCP = RTC_PORT_TYPE.VIDEO_RTCP; pub const RTCPT_SIP = RTC_PORT_TYPE.SIP; pub const RTC_USER_SEARCH_COLUMN = enum(i32) { URI = 0, DISPLAYNAME = 1, TITLE = 2, OFFICE = 3, PHONE = 4, COMPANY = 5, CITY = 6, STATE = 7, COUNTRY = 8, EMAIL = 9, }; pub const RTCUSC_URI = RTC_USER_SEARCH_COLUMN.URI; pub const RTCUSC_DISPLAYNAME = RTC_USER_SEARCH_COLUMN.DISPLAYNAME; pub const RTCUSC_TITLE = RTC_USER_SEARCH_COLUMN.TITLE; pub const RTCUSC_OFFICE = RTC_USER_SEARCH_COLUMN.OFFICE; pub const RTCUSC_PHONE = RTC_USER_SEARCH_COLUMN.PHONE; pub const RTCUSC_COMPANY = RTC_USER_SEARCH_COLUMN.COMPANY; pub const RTCUSC_CITY = RTC_USER_SEARCH_COLUMN.CITY; pub const RTCUSC_STATE = RTC_USER_SEARCH_COLUMN.STATE; pub const RTCUSC_COUNTRY = RTC_USER_SEARCH_COLUMN.COUNTRY; pub const RTCUSC_EMAIL = RTC_USER_SEARCH_COLUMN.EMAIL; pub const RTC_USER_SEARCH_PREFERENCE = enum(i32) { MAX_MATCHES = 0, TIME_LIMIT = 1, }; pub const RTCUSP_MAX_MATCHES = RTC_USER_SEARCH_PREFERENCE.MAX_MATCHES; pub const RTCUSP_TIME_LIMIT = RTC_USER_SEARCH_PREFERENCE.TIME_LIMIT; pub const RTC_ROAMING_EVENT_TYPE = enum(i32) { BUDDY_ROAMING = 0, WATCHER_ROAMING = 1, PRESENCE_ROAMING = 2, PROFILE_ROAMING = 3, WPENDING_ROAMING = 4, }; pub const RTCRET_BUDDY_ROAMING = RTC_ROAMING_EVENT_TYPE.BUDDY_ROAMING; pub const RTCRET_WATCHER_ROAMING = RTC_ROAMING_EVENT_TYPE.WATCHER_ROAMING; pub const RTCRET_PRESENCE_ROAMING = RTC_ROAMING_EVENT_TYPE.PRESENCE_ROAMING; pub const RTCRET_PROFILE_ROAMING = RTC_ROAMING_EVENT_TYPE.PROFILE_ROAMING; pub const RTCRET_WPENDING_ROAMING = RTC_ROAMING_EVENT_TYPE.WPENDING_ROAMING; pub const RTC_PROFILE_EVENT_TYPE = enum(i32) { GET = 0, UPDATE = 1, }; pub const RTCPFET_PROFILE_GET = RTC_PROFILE_EVENT_TYPE.GET; pub const RTCPFET_PROFILE_UPDATE = RTC_PROFILE_EVENT_TYPE.UPDATE; pub const RTC_ANSWER_MODE = enum(i32) { OFFER_SESSION_EVENT = 0, AUTOMATICALLY_ACCEPT = 1, AUTOMATICALLY_REJECT = 2, NOT_SUPPORTED = 3, }; pub const RTCAM_OFFER_SESSION_EVENT = RTC_ANSWER_MODE.OFFER_SESSION_EVENT; pub const RTCAM_AUTOMATICALLY_ACCEPT = RTC_ANSWER_MODE.AUTOMATICALLY_ACCEPT; pub const RTCAM_AUTOMATICALLY_REJECT = RTC_ANSWER_MODE.AUTOMATICALLY_REJECT; pub const RTCAM_NOT_SUPPORTED = RTC_ANSWER_MODE.NOT_SUPPORTED; pub const RTC_SESSION_REFER_STATUS = enum(i32) { REFERRING = 0, ACCEPTED = 1, ERROR = 2, REJECTED = 3, DROPPED = 4, DONE = 5, }; pub const RTCSRS_REFERRING = RTC_SESSION_REFER_STATUS.REFERRING; pub const RTCSRS_ACCEPTED = RTC_SESSION_REFER_STATUS.ACCEPTED; pub const RTCSRS_ERROR = RTC_SESSION_REFER_STATUS.ERROR; pub const RTCSRS_REJECTED = RTC_SESSION_REFER_STATUS.REJECTED; pub const RTCSRS_DROPPED = RTC_SESSION_REFER_STATUS.DROPPED; pub const RTCSRS_DONE = RTC_SESSION_REFER_STATUS.DONE; pub const RTC_PRESENCE_PROPERTY = enum(i32) { PHONENUMBER = 0, DISPLAYNAME = 1, EMAIL = 2, DEVICE_NAME = 3, MULTIPLE = 4, }; pub const RTCPP_PHONENUMBER = RTC_PRESENCE_PROPERTY.PHONENUMBER; pub const RTCPP_DISPLAYNAME = RTC_PRESENCE_PROPERTY.DISPLAYNAME; pub const RTCPP_EMAIL = RTC_PRESENCE_PROPERTY.EMAIL; pub const RTCPP_DEVICE_NAME = RTC_PRESENCE_PROPERTY.DEVICE_NAME; pub const RTCPP_MULTIPLE = RTC_PRESENCE_PROPERTY.MULTIPLE; pub const RTC_SECURITY_TYPE = enum(i32) { AUDIO_VIDEO_MEDIA_ENCRYPTION = 0, T120_MEDIA_ENCRYPTION = 1, }; pub const RTCSECT_AUDIO_VIDEO_MEDIA_ENCRYPTION = RTC_SECURITY_TYPE.AUDIO_VIDEO_MEDIA_ENCRYPTION; pub const RTCSECT_T120_MEDIA_ENCRYPTION = RTC_SECURITY_TYPE.T120_MEDIA_ENCRYPTION; pub const RTC_SECURITY_LEVEL = enum(i32) { UNSUPPORTED = 1, SUPPORTED = 2, REQUIRED = 3, }; pub const RTCSECL_UNSUPPORTED = RTC_SECURITY_LEVEL.UNSUPPORTED; pub const RTCSECL_SUPPORTED = RTC_SECURITY_LEVEL.SUPPORTED; pub const RTCSECL_REQUIRED = RTC_SECURITY_LEVEL.REQUIRED; pub const RTC_REINVITE_STATE = enum(i32) { INCOMING = 0, SUCCEEDED = 1, FAIL = 2, }; pub const RTCRIN_INCOMING = RTC_REINVITE_STATE.INCOMING; pub const RTCRIN_SUCCEEDED = RTC_REINVITE_STATE.SUCCEEDED; pub const RTCRIN_FAIL = RTC_REINVITE_STATE.FAIL; const IID_IRTCClient_Value = Guid.initString("07829e45-9a34-408e-a011-bddf13487cd1"); pub const IID_IRTCClient = &IID_IRTCClient_Value; pub const IRTCClient = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, Initialize: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IRTCClient, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IRTCClient, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Shutdown: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IRTCClient, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IRTCClient, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, PrepareForShutdown: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IRTCClient, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IRTCClient, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_EventFilter: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IRTCClient, lFilter: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IRTCClient, lFilter: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_EventFilter: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IRTCClient, plFilter: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IRTCClient, plFilter: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetPreferredMediaTypes: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IRTCClient, lMediaTypes: i32, fPersistent: i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IRTCClient, lMediaTypes: i32, fPersistent: i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_PreferredMediaTypes: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IRTCClient, plMediaTypes: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IRTCClient, plMediaTypes: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_MediaCapabilities: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IRTCClient, plMediaTypes: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IRTCClient, plMediaTypes: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, CreateSession: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IRTCClient, enType: RTC_SESSION_TYPE, bstrLocalPhoneURI: ?BSTR, pProfile: ?*IRTCProfile, lFlags: i32, ppSession: ?*?*IRTCSession, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IRTCClient, enType: RTC_SESSION_TYPE, bstrLocalPhoneURI: ?BSTR, pProfile: ?*IRTCProfile, lFlags: i32, ppSession: ?*?*IRTCSession, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_ListenForIncomingSessions: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IRTCClient, enListen: RTC_LISTEN_MODE, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IRTCClient, enListen: RTC_LISTEN_MODE, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_ListenForIncomingSessions: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IRTCClient, penListen: ?*RTC_LISTEN_MODE, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IRTCClient, penListen: ?*RTC_LISTEN_MODE, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_NetworkAddresses: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IRTCClient, fTCP: i16, fExternal: i16, pvAddresses: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IRTCClient, fTCP: i16, fExternal: i16, pvAddresses: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_Volume: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IRTCClient, enDevice: RTC_AUDIO_DEVICE, lVolume: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IRTCClient, enDevice: RTC_AUDIO_DEVICE, lVolume: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Volume: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IRTCClient, enDevice: RTC_AUDIO_DEVICE, plVolume: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IRTCClient, enDevice: RTC_AUDIO_DEVICE, plVolume: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_AudioMuted: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IRTCClient, enDevice: RTC_AUDIO_DEVICE, fMuted: i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IRTCClient, enDevice: RTC_AUDIO_DEVICE, fMuted: i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_AudioMuted: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IRTCClient, enDevice: RTC_AUDIO_DEVICE, pfMuted: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IRTCClient, enDevice: RTC_AUDIO_DEVICE, pfMuted: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_IVideoWindow: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IRTCClient, enDevice: RTC_VIDEO_DEVICE, ppIVideoWindow: ?*?*IVideoWindow, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IRTCClient, enDevice: RTC_VIDEO_DEVICE, ppIVideoWindow: ?*?*IVideoWindow, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_PreferredAudioDevice: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IRTCClient, enDevice: RTC_AUDIO_DEVICE, bstrDeviceName: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IRTCClient, enDevice: RTC_AUDIO_DEVICE, bstrDeviceName: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_PreferredAudioDevice: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IRTCClient, enDevice: RTC_AUDIO_DEVICE, pbstrDeviceName: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IRTCClient, enDevice: RTC_AUDIO_DEVICE, pbstrDeviceName: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_PreferredVolume: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IRTCClient, enDevice: RTC_AUDIO_DEVICE, lVolume: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IRTCClient, enDevice: RTC_AUDIO_DEVICE, lVolume: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_PreferredVolume: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IRTCClient, enDevice: RTC_AUDIO_DEVICE, plVolume: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IRTCClient, enDevice: RTC_AUDIO_DEVICE, plVolume: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_PreferredAEC: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IRTCClient, bEnable: i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IRTCClient, bEnable: i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_PreferredAEC: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IRTCClient, pbEnabled: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IRTCClient, pbEnabled: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_PreferredVideoDevice: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IRTCClient, bstrDeviceName: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IRTCClient, bstrDeviceName: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_PreferredVideoDevice: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IRTCClient, pbstrDeviceName: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IRTCClient, pbstrDeviceName: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_ActiveMedia: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IRTCClient, plMediaType: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IRTCClient, plMediaType: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_MaxBitrate: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IRTCClient, lMaxBitrate: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IRTCClient, lMaxBitrate: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_MaxBitrate: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IRTCClient, plMaxBitrate: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IRTCClient, plMaxBitrate: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_TemporalSpatialTradeOff: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IRTCClient, lValue: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IRTCClient, lValue: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_TemporalSpatialTradeOff: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IRTCClient, plValue: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IRTCClient, plValue: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_NetworkQuality: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IRTCClient, plNetworkQuality: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IRTCClient, plNetworkQuality: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, StartT120Applet: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IRTCClient, enApplet: RTC_T120_APPLET, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IRTCClient, enApplet: RTC_T120_APPLET, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, StopT120Applets: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IRTCClient, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IRTCClient, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_IsT120AppletRunning: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IRTCClient, enApplet: RTC_T120_APPLET, pfRunning: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IRTCClient, enApplet: RTC_T120_APPLET, pfRunning: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_LocalUserURI: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IRTCClient, pbstrUserURI: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IRTCClient, pbstrUserURI: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_LocalUserURI: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IRTCClient, bstrUserURI: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IRTCClient, bstrUserURI: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_LocalUserName: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IRTCClient, pbstrUserName: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IRTCClient, pbstrUserName: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_LocalUserName: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IRTCClient, bstrUserName: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IRTCClient, bstrUserName: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, PlayRing: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IRTCClient, enType: RTC_RING_TYPE, bPlay: i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IRTCClient, enType: RTC_RING_TYPE, bPlay: i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SendDTMF: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IRTCClient, enDTMF: RTC_DTMF, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IRTCClient, enDTMF: RTC_DTMF, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, InvokeTuningWizard: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IRTCClient, hwndParent: isize, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IRTCClient, hwndParent: isize, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_IsTuned: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IRTCClient, pfTuned: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IRTCClient, pfTuned: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRTCClient_Initialize(self: *const T) HRESULT { return @as(*const IRTCClient.VTable, @ptrCast(self.vtable)).Initialize(@as(*const IRTCClient, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRTCClient_Shutdown(self: *const T) HRESULT { return @as(*const IRTCClient.VTable, @ptrCast(self.vtable)).Shutdown(@as(*const IRTCClient, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRTCClient_PrepareForShutdown(self: *const T) HRESULT { return @as(*const IRTCClient.VTable, @ptrCast(self.vtable)).PrepareForShutdown(@as(*const IRTCClient, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRTCClient_put_EventFilter(self: *const T, lFilter: i32) HRESULT { return @as(*const IRTCClient.VTable, @ptrCast(self.vtable)).put_EventFilter(@as(*const IRTCClient, @ptrCast(self)), lFilter); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRTCClient_get_EventFilter(self: *const T, plFilter: ?*i32) HRESULT { return @as(*const IRTCClient.VTable, @ptrCast(self.vtable)).get_EventFilter(@as(*const IRTCClient, @ptrCast(self)), plFilter); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRTCClient_SetPreferredMediaTypes(self: *const T, lMediaTypes: i32, fPersistent: i16) HRESULT { return @as(*const IRTCClient.VTable, @ptrCast(self.vtable)).SetPreferredMediaTypes(@as(*const IRTCClient, @ptrCast(self)), lMediaTypes, fPersistent); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRTCClient_get_PreferredMediaTypes(self: *const T, plMediaTypes: ?*i32) HRESULT { return @as(*const IRTCClient.VTable, @ptrCast(self.vtable)).get_PreferredMediaTypes(@as(*const IRTCClient, @ptrCast(self)), plMediaTypes); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRTCClient_get_MediaCapabilities(self: *const T, plMediaTypes: ?*i32) HRESULT { return @as(*const IRTCClient.VTable, @ptrCast(self.vtable)).get_MediaCapabilities(@as(*const IRTCClient, @ptrCast(self)), plMediaTypes); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRTCClient_CreateSession(self: *const T, enType: RTC_SESSION_TYPE, bstrLocalPhoneURI: ?BSTR, pProfile: ?*IRTCProfile, lFlags: i32, ppSession: ?*?*IRTCSession) HRESULT { return @as(*const IRTCClient.VTable, @ptrCast(self.vtable)).CreateSession(@as(*const IRTCClient, @ptrCast(self)), enType, bstrLocalPhoneURI, pProfile, lFlags, ppSession); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRTCClient_put_ListenForIncomingSessions(self: *const T, enListen: RTC_LISTEN_MODE) HRESULT { return @as(*const IRTCClient.VTable, @ptrCast(self.vtable)).put_ListenForIncomingSessions(@as(*const IRTCClient, @ptrCast(self)), enListen); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRTCClient_get_ListenForIncomingSessions(self: *const T, penListen: ?*RTC_LISTEN_MODE) HRESULT { return @as(*const IRTCClient.VTable, @ptrCast(self.vtable)).get_ListenForIncomingSessions(@as(*const IRTCClient, @ptrCast(self)), penListen); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRTCClient_get_NetworkAddresses(self: *const T, fTCP: i16, fExternal: i16, pvAddresses: ?*VARIANT) HRESULT { return @as(*const IRTCClient.VTable, @ptrCast(self.vtable)).get_NetworkAddresses(@as(*const IRTCClient, @ptrCast(self)), fTCP, fExternal, pvAddresses); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRTCClient_put_Volume(self: *const T, enDevice: RTC_AUDIO_DEVICE, lVolume: i32) HRESULT { return @as(*const IRTCClient.VTable, @ptrCast(self.vtable)).put_Volume(@as(*const IRTCClient, @ptrCast(self)), enDevice, lVolume); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRTCClient_get_Volume(self: *const T, enDevice: RTC_AUDIO_DEVICE, plVolume: ?*i32) HRESULT { return @as(*const IRTCClient.VTable, @ptrCast(self.vtable)).get_Volume(@as(*const IRTCClient, @ptrCast(self)), enDevice, plVolume); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRTCClient_put_AudioMuted(self: *const T, enDevice: RTC_AUDIO_DEVICE, fMuted: i16) HRESULT { return @as(*const IRTCClient.VTable, @ptrCast(self.vtable)).put_AudioMuted(@as(*const IRTCClient, @ptrCast(self)), enDevice, fMuted); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRTCClient_get_AudioMuted(self: *const T, enDevice: RTC_AUDIO_DEVICE, pfMuted: ?*i16) HRESULT { return @as(*const IRTCClient.VTable, @ptrCast(self.vtable)).get_AudioMuted(@as(*const IRTCClient, @ptrCast(self)), enDevice, pfMuted); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRTCClient_get_IVideoWindow(self: *const T, enDevice: RTC_VIDEO_DEVICE, ppIVideoWindow: ?*?*IVideoWindow) HRESULT { return @as(*const IRTCClient.VTable, @ptrCast(self.vtable)).get_IVideoWindow(@as(*const IRTCClient, @ptrCast(self)), enDevice, ppIVideoWindow); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRTCClient_put_PreferredAudioDevice(self: *const T, enDevice: RTC_AUDIO_DEVICE, bstrDeviceName: ?BSTR) HRESULT { return @as(*const IRTCClient.VTable, @ptrCast(self.vtable)).put_PreferredAudioDevice(@as(*const IRTCClient, @ptrCast(self)), enDevice, bstrDeviceName); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRTCClient_get_PreferredAudioDevice(self: *const T, enDevice: RTC_AUDIO_DEVICE, pbstrDeviceName: ?*?BSTR) HRESULT { return @as(*const IRTCClient.VTable, @ptrCast(self.vtable)).get_PreferredAudioDevice(@as(*const IRTCClient, @ptrCast(self)), enDevice, pbstrDeviceName); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRTCClient_put_PreferredVolume(self: *const T, enDevice: RTC_AUDIO_DEVICE, lVolume: i32) HRESULT { return @as(*const IRTCClient.VTable, @ptrCast(self.vtable)).put_PreferredVolume(@as(*const IRTCClient, @ptrCast(self)), enDevice, lVolume); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRTCClient_get_PreferredVolume(self: *const T, enDevice: RTC_AUDIO_DEVICE, plVolume: ?*i32) HRESULT { return @as(*const IRTCClient.VTable, @ptrCast(self.vtable)).get_PreferredVolume(@as(*const IRTCClient, @ptrCast(self)), enDevice, plVolume); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRTCClient_put_PreferredAEC(self: *const T, bEnable: i16) HRESULT { return @as(*const IRTCClient.VTable, @ptrCast(self.vtable)).put_PreferredAEC(@as(*const IRTCClient, @ptrCast(self)), bEnable); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRTCClient_get_PreferredAEC(self: *const T, pbEnabled: ?*i16) HRESULT { return @as(*const IRTCClient.VTable, @ptrCast(self.vtable)).get_PreferredAEC(@as(*const IRTCClient, @ptrCast(self)), pbEnabled); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRTCClient_put_PreferredVideoDevice(self: *const T, bstrDeviceName: ?BSTR) HRESULT { return @as(*const IRTCClient.VTable, @ptrCast(self.vtable)).put_PreferredVideoDevice(@as(*const IRTCClient, @ptrCast(self)), bstrDeviceName); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRTCClient_get_PreferredVideoDevice(self: *const T, pbstrDeviceName: ?*?BSTR) HRESULT { return @as(*const IRTCClient.VTable, @ptrCast(self.vtable)).get_PreferredVideoDevice(@as(*const IRTCClient, @ptrCast(self)), pbstrDeviceName); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRTCClient_get_ActiveMedia(self: *const T, plMediaType: ?*i32) HRESULT { return @as(*const IRTCClient.VTable, @ptrCast(self.vtable)).get_ActiveMedia(@as(*const IRTCClient, @ptrCast(self)), plMediaType); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRTCClient_put_MaxBitrate(self: *const T, lMaxBitrate: i32) HRESULT { return @as(*const IRTCClient.VTable, @ptrCast(self.vtable)).put_MaxBitrate(@as(*const IRTCClient, @ptrCast(self)), lMaxBitrate); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRTCClient_get_MaxBitrate(self: *const T, plMaxBitrate: ?*i32) HRESULT { return @as(*const IRTCClient.VTable, @ptrCast(self.vtable)).get_MaxBitrate(@as(*const IRTCClient, @ptrCast(self)), plMaxBitrate); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRTCClient_put_TemporalSpatialTradeOff(self: *const T, lValue: i32) HRESULT { return @as(*const IRTCClient.VTable, @ptrCast(self.vtable)).put_TemporalSpatialTradeOff(@as(*const IRTCClient, @ptrCast(self)), lValue); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRTCClient_get_TemporalSpatialTradeOff(self: *const T, plValue: ?*i32) HRESULT { return @as(*const IRTCClient.VTable, @ptrCast(self.vtable)).get_TemporalSpatialTradeOff(@as(*const IRTCClient, @ptrCast(self)), plValue); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRTCClient_get_NetworkQuality(self: *const T, plNetworkQuality: ?*i32) HRESULT { return @as(*const IRTCClient.VTable, @ptrCast(self.vtable)).get_NetworkQuality(@as(*const IRTCClient, @ptrCast(self)), plNetworkQuality); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRTCClient_StartT120Applet(self: *const T, enApplet: RTC_T120_APPLET) HRESULT { return @as(*const IRTCClient.VTable, @ptrCast(self.vtable)).StartT120Applet(@as(*const IRTCClient, @ptrCast(self)), enApplet); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRTCClient_StopT120Applets(self: *const T) HRESULT { return @as(*const IRTCClient.VTable, @ptrCast(self.vtable)).StopT120Applets(@as(*const IRTCClient, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRTCClient_get_IsT120AppletRunning(self: *const T, enApplet: RTC_T120_APPLET, pfRunning: ?*i16) HRESULT { return @as(*const IRTCClient.VTable, @ptrCast(self.vtable)).get_IsT120AppletRunning(@as(*const IRTCClient, @ptrCast(self)), enApplet, pfRunning); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRTCClient_get_LocalUserURI(self: *const T, pbstrUserURI: ?*?BSTR) HRESULT { return @as(*const IRTCClient.VTable, @ptrCast(self.vtable)).get_LocalUserURI(@as(*const IRTCClient, @ptrCast(self)), pbstrUserURI); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRTCClient_put_LocalUserURI(self: *const T, bstrUserURI: ?BSTR) HRESULT { return @as(*const IRTCClient.VTable, @ptrCast(self.vtable)).put_LocalUserURI(@as(*const IRTCClient, @ptrCast(self)), bstrUserURI); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRTCClient_get_LocalUserName(self: *const T, pbstrUserName: ?*?BSTR) HRESULT { return @as(*const IRTCClient.VTable, @ptrCast(self.vtable)).get_LocalUserName(@as(*const IRTCClient, @ptrCast(self)), pbstrUserName); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRTCClient_put_LocalUserName(self: *const T, bstrUserName: ?BSTR) HRESULT { return @as(*const IRTCClient.VTable, @ptrCast(self.vtable)).put_LocalUserName(@as(*const IRTCClient, @ptrCast(self)), bstrUserName); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRTCClient_PlayRing(self: *const T, enType: RTC_RING_TYPE, bPlay: i16) HRESULT { return @as(*const IRTCClient.VTable, @ptrCast(self.vtable)).PlayRing(@as(*const IRTCClient, @ptrCast(self)), enType, bPlay); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRTCClient_SendDTMF(self: *const T, enDTMF: RTC_DTMF) HRESULT { return @as(*const IRTCClient.VTable, @ptrCast(self.vtable)).SendDTMF(@as(*const IRTCClient, @ptrCast(self)), enDTMF); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRTCClient_InvokeTuningWizard(self: *const T, hwndParent: isize) HRESULT { return @as(*const IRTCClient.VTable, @ptrCast(self.vtable)).InvokeTuningWizard(@as(*const IRTCClient, @ptrCast(self)), hwndParent); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRTCClient_get_IsTuned(self: *const T, pfTuned: ?*i16) HRESULT { return @as(*const IRTCClient.VTable, @ptrCast(self.vtable)).get_IsTuned(@as(*const IRTCClient, @ptrCast(self)), pfTuned); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IRTCClient2_Value = Guid.initString("0c91d71d-1064-42da-bfa5-572beb8eea84"); pub const IID_IRTCClient2 = &IID_IRTCClient2_Value; pub const IRTCClient2 = extern struct { pub const VTable = extern struct { base: IRTCClient.VTable, // TODO: this function has a "SpecialName", should Zig do anything with this? put_AnswerMode: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IRTCClient2, enType: RTC_SESSION_TYPE, enMode: RTC_ANSWER_MODE, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IRTCClient2, enType: RTC_SESSION_TYPE, enMode: RTC_ANSWER_MODE, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_AnswerMode: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IRTCClient2, enType: RTC_SESSION_TYPE, penMode: ?*RTC_ANSWER_MODE, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IRTCClient2, enType: RTC_SESSION_TYPE, penMode: ?*RTC_ANSWER_MODE, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, InvokeTuningWizardEx: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IRTCClient2, hwndParent: isize, fAllowAudio: i16, fAllowVideo: i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IRTCClient2, hwndParent: isize, fAllowAudio: i16, fAllowVideo: i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Version: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IRTCClient2, plVersion: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IRTCClient2, plVersion: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_ClientName: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IRTCClient2, bstrClientName: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IRTCClient2, bstrClientName: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_ClientCurVer: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IRTCClient2, bstrClientCurVer: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IRTCClient2, bstrClientCurVer: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, InitializeEx: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IRTCClient2, lFlags: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IRTCClient2, lFlags: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, CreateSessionWithDescription: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IRTCClient2, bstrContentType: ?BSTR, bstrSessionDescription: ?BSTR, pProfile: ?*IRTCProfile, lFlags: i32, ppSession2: ?*?*IRTCSession2, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IRTCClient2, bstrContentType: ?BSTR, bstrSessionDescription: ?BSTR, pProfile: ?*IRTCProfile, lFlags: i32, ppSession2: ?*?*IRTCSession2, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetSessionDescriptionManager: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IRTCClient2, pSessionDescriptionManager: ?*IRTCSessionDescriptionManager, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IRTCClient2, pSessionDescriptionManager: ?*IRTCSessionDescriptionManager, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_PreferredSecurityLevel: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IRTCClient2, enSecurityType: RTC_SECURITY_TYPE, enSecurityLevel: RTC_SECURITY_LEVEL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IRTCClient2, enSecurityType: RTC_SECURITY_TYPE, enSecurityLevel: RTC_SECURITY_LEVEL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_PreferredSecurityLevel: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IRTCClient2, enSecurityType: RTC_SECURITY_TYPE, penSecurityLevel: ?*RTC_SECURITY_LEVEL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IRTCClient2, enSecurityType: RTC_SECURITY_TYPE, penSecurityLevel: ?*RTC_SECURITY_LEVEL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_AllowedPorts: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IRTCClient2, lTransport: i32, enListenMode: RTC_LISTEN_MODE, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IRTCClient2, lTransport: i32, enListenMode: RTC_LISTEN_MODE, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_AllowedPorts: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IRTCClient2, lTransport: i32, penListenMode: ?*RTC_LISTEN_MODE, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IRTCClient2, lTransport: i32, penListenMode: ?*RTC_LISTEN_MODE, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IRTCClient.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRTCClient2_put_AnswerMode(self: *const T, enType: RTC_SESSION_TYPE, enMode: RTC_ANSWER_MODE) HRESULT { return @as(*const IRTCClient2.VTable, @ptrCast(self.vtable)).put_AnswerMode(@as(*const IRTCClient2, @ptrCast(self)), enType, enMode); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRTCClient2_get_AnswerMode(self: *const T, enType: RTC_SESSION_TYPE, penMode: ?*RTC_ANSWER_MODE) HRESULT { return @as(*const IRTCClient2.VTable, @ptrCast(self.vtable)).get_AnswerMode(@as(*const IRTCClient2, @ptrCast(self)), enType, penMode); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRTCClient2_InvokeTuningWizardEx(self: *const T, hwndParent: isize, fAllowAudio: i16, fAllowVideo: i16) HRESULT { return @as(*const IRTCClient2.VTable, @ptrCast(self.vtable)).InvokeTuningWizardEx(@as(*const IRTCClient2, @ptrCast(self)), hwndParent, fAllowAudio, fAllowVideo); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRTCClient2_get_Version(self: *const T, plVersion: ?*i32) HRESULT { return @as(*const IRTCClient2.VTable, @ptrCast(self.vtable)).get_Version(@as(*const IRTCClient2, @ptrCast(self)), plVersion); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRTCClient2_put_ClientName(self: *const T, bstrClientName: ?BSTR) HRESULT { return @as(*const IRTCClient2.VTable, @ptrCast(self.vtable)).put_ClientName(@as(*const IRTCClient2, @ptrCast(self)), bstrClientName); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRTCClient2_put_ClientCurVer(self: *const T, bstrClientCurVer: ?BSTR) HRESULT { return @as(*const IRTCClient2.VTable, @ptrCast(self.vtable)).put_ClientCurVer(@as(*const IRTCClient2, @ptrCast(self)), bstrClientCurVer); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRTCClient2_InitializeEx(self: *const T, lFlags: i32) HRESULT { return @as(*const IRTCClient2.VTable, @ptrCast(self.vtable)).InitializeEx(@as(*const IRTCClient2, @ptrCast(self)), lFlags); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRTCClient2_CreateSessionWithDescription(self: *const T, bstrContentType: ?BSTR, bstrSessionDescription: ?BSTR, pProfile: ?*IRTCProfile, lFlags: i32, ppSession2: ?*?*IRTCSession2) HRESULT { return @as(*const IRTCClient2.VTable, @ptrCast(self.vtable)).CreateSessionWithDescription(@as(*const IRTCClient2, @ptrCast(self)), bstrContentType, bstrSessionDescription, pProfile, lFlags, ppSession2); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRTCClient2_SetSessionDescriptionManager(self: *const T, pSessionDescriptionManager: ?*IRTCSessionDescriptionManager) HRESULT { return @as(*const IRTCClient2.VTable, @ptrCast(self.vtable)).SetSessionDescriptionManager(@as(*const IRTCClient2, @ptrCast(self)), pSessionDescriptionManager); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRTCClient2_put_PreferredSecurityLevel(self: *const T, enSecurityType: RTC_SECURITY_TYPE, enSecurityLevel: RTC_SECURITY_LEVEL) HRESULT { return @as(*const IRTCClient2.VTable, @ptrCast(self.vtable)).put_PreferredSecurityLevel(@as(*const IRTCClient2, @ptrCast(self)), enSecurityType, enSecurityLevel); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRTCClient2_get_PreferredSecurityLevel(self: *const T, enSecurityType: RTC_SECURITY_TYPE, penSecurityLevel: ?*RTC_SECURITY_LEVEL) HRESULT { return @as(*const IRTCClient2.VTable, @ptrCast(self.vtable)).get_PreferredSecurityLevel(@as(*const IRTCClient2, @ptrCast(self)), enSecurityType, penSecurityLevel); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRTCClient2_put_AllowedPorts(self: *const T, lTransport: i32, enListenMode: RTC_LISTEN_MODE) HRESULT { return @as(*const IRTCClient2.VTable, @ptrCast(self.vtable)).put_AllowedPorts(@as(*const IRTCClient2, @ptrCast(self)), lTransport, enListenMode); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRTCClient2_get_AllowedPorts(self: *const T, lTransport: i32, penListenMode: ?*RTC_LISTEN_MODE) HRESULT { return @as(*const IRTCClient2.VTable, @ptrCast(self.vtable)).get_AllowedPorts(@as(*const IRTCClient2, @ptrCast(self)), lTransport, penListenMode); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IRTCClientPresence_Value = Guid.initString("11c3cbcc-0744-42d1-968a-51aa1bb274c6"); pub const IID_IRTCClientPresence = &IID_IRTCClientPresence_Value; pub const IRTCClientPresence = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, EnablePresence: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IRTCClientPresence, fUseStorage: i16, varStorage: VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IRTCClientPresence, fUseStorage: i16, varStorage: VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Export: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IRTCClientPresence, varStorage: VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IRTCClientPresence, varStorage: VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Import: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IRTCClientPresence, varStorage: VARIANT, fReplaceAll: i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IRTCClientPresence, varStorage: VARIANT, fReplaceAll: i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, EnumerateBuddies: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IRTCClientPresence, ppEnum: ?*?*IRTCEnumBuddies, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IRTCClientPresence, ppEnum: ?*?*IRTCEnumBuddies, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Buddies: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IRTCClientPresence, ppCollection: ?*?*IRTCCollection, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IRTCClientPresence, ppCollection: ?*?*IRTCCollection, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Buddy: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IRTCClientPresence, bstrPresentityURI: ?BSTR, ppBuddy: ?*?*IRTCBuddy, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IRTCClientPresence, bstrPresentityURI: ?BSTR, ppBuddy: ?*?*IRTCBuddy, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, AddBuddy: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IRTCClientPresence, bstrPresentityURI: ?BSTR, bstrUserName: ?BSTR, bstrData: ?BSTR, fPersistent: i16, pProfile: ?*IRTCProfile, lFlags: i32, ppBuddy: ?*?*IRTCBuddy, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IRTCClientPresence, bstrPresentityURI: ?BSTR, bstrUserName: ?BSTR, bstrData: ?BSTR, fPersistent: i16, pProfile: ?*IRTCProfile, lFlags: i32, ppBuddy: ?*?*IRTCBuddy, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, RemoveBuddy: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IRTCClientPresence, pBuddy: ?*IRTCBuddy, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IRTCClientPresence, pBuddy: ?*IRTCBuddy, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, EnumerateWatchers: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IRTCClientPresence, ppEnum: ?*?*IRTCEnumWatchers, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IRTCClientPresence, ppEnum: ?*?*IRTCEnumWatchers, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Watchers: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IRTCClientPresence, ppCollection: ?*?*IRTCCollection, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IRTCClientPresence, ppCollection: ?*?*IRTCCollection, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Watcher: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IRTCClientPresence, bstrPresentityURI: ?BSTR, ppWatcher: ?*?*IRTCWatcher, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IRTCClientPresence, bstrPresentityURI: ?BSTR, ppWatcher: ?*?*IRTCWatcher, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, AddWatcher: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IRTCClientPresence, bstrPresentityURI: ?BSTR, bstrUserName: ?BSTR, bstrData: ?BSTR, fBlocked: i16, fPersistent: i16, ppWatcher: ?*?*IRTCWatcher, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IRTCClientPresence, bstrPresentityURI: ?BSTR, bstrUserName: ?BSTR, bstrData: ?BSTR, fBlocked: i16, fPersistent: i16, ppWatcher: ?*?*IRTCWatcher, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, RemoveWatcher: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IRTCClientPresence, pWatcher: ?*IRTCWatcher, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IRTCClientPresence, pWatcher: ?*IRTCWatcher, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetLocalPresenceInfo: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IRTCClientPresence, enStatus: RTC_PRESENCE_STATUS, bstrNotes: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IRTCClientPresence, enStatus: RTC_PRESENCE_STATUS, bstrNotes: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_OfferWatcherMode: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IRTCClientPresence, penMode: ?*RTC_OFFER_WATCHER_MODE, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IRTCClientPresence, penMode: ?*RTC_OFFER_WATCHER_MODE, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_OfferWatcherMode: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IRTCClientPresence, enMode: RTC_OFFER_WATCHER_MODE, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IRTCClientPresence, enMode: RTC_OFFER_WATCHER_MODE, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_PrivacyMode: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IRTCClientPresence, penMode: ?*RTC_PRIVACY_MODE, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IRTCClientPresence, penMode: ?*RTC_PRIVACY_MODE, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_PrivacyMode: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IRTCClientPresence, enMode: RTC_PRIVACY_MODE, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IRTCClientPresence, enMode: RTC_PRIVACY_MODE, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRTCClientPresence_EnablePresence(self: *const T, fUseStorage: i16, varStorage: VARIANT) HRESULT { return @as(*const IRTCClientPresence.VTable, @ptrCast(self.vtable)).EnablePresence(@as(*const IRTCClientPresence, @ptrCast(self)), fUseStorage, varStorage); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRTCClientPresence_Export(self: *const T, varStorage: VARIANT) HRESULT { return @as(*const IRTCClientPresence.VTable, @ptrCast(self.vtable)).Export(@as(*const IRTCClientPresence, @ptrCast(self)), varStorage); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRTCClientPresence_Import(self: *const T, varStorage: VARIANT, fReplaceAll: i16) HRESULT { return @as(*const IRTCClientPresence.VTable, @ptrCast(self.vtable)).Import(@as(*const IRTCClientPresence, @ptrCast(self)), varStorage, fReplaceAll); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRTCClientPresence_EnumerateBuddies(self: *const T, ppEnum: ?*?*IRTCEnumBuddies) HRESULT { return @as(*const IRTCClientPresence.VTable, @ptrCast(self.vtable)).EnumerateBuddies(@as(*const IRTCClientPresence, @ptrCast(self)), ppEnum); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRTCClientPresence_get_Buddies(self: *const T, ppCollection: ?*?*IRTCCollection) HRESULT { return @as(*const IRTCClientPresence.VTable, @ptrCast(self.vtable)).get_Buddies(@as(*const IRTCClientPresence, @ptrCast(self)), ppCollection); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRTCClientPresence_get_Buddy(self: *const T, bstrPresentityURI: ?BSTR, ppBuddy: ?*?*IRTCBuddy) HRESULT { return @as(*const IRTCClientPresence.VTable, @ptrCast(self.vtable)).get_Buddy(@as(*const IRTCClientPresence, @ptrCast(self)), bstrPresentityURI, ppBuddy); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRTCClientPresence_AddBuddy(self: *const T, bstrPresentityURI: ?BSTR, bstrUserName: ?BSTR, bstrData: ?BSTR, fPersistent: i16, pProfile: ?*IRTCProfile, lFlags: i32, ppBuddy: ?*?*IRTCBuddy) HRESULT { return @as(*const IRTCClientPresence.VTable, @ptrCast(self.vtable)).AddBuddy(@as(*const IRTCClientPresence, @ptrCast(self)), bstrPresentityURI, bstrUserName, bstrData, fPersistent, pProfile, lFlags, ppBuddy); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRTCClientPresence_RemoveBuddy(self: *const T, pBuddy: ?*IRTCBuddy) HRESULT { return @as(*const IRTCClientPresence.VTable, @ptrCast(self.vtable)).RemoveBuddy(@as(*const IRTCClientPresence, @ptrCast(self)), pBuddy); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRTCClientPresence_EnumerateWatchers(self: *const T, ppEnum: ?*?*IRTCEnumWatchers) HRESULT { return @as(*const IRTCClientPresence.VTable, @ptrCast(self.vtable)).EnumerateWatchers(@as(*const IRTCClientPresence, @ptrCast(self)), ppEnum); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRTCClientPresence_get_Watchers(self: *const T, ppCollection: ?*?*IRTCCollection) HRESULT { return @as(*const IRTCClientPresence.VTable, @ptrCast(self.vtable)).get_Watchers(@as(*const IRTCClientPresence, @ptrCast(self)), ppCollection); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRTCClientPresence_get_Watcher(self: *const T, bstrPresentityURI: ?BSTR, ppWatcher: ?*?*IRTCWatcher) HRESULT { return @as(*const IRTCClientPresence.VTable, @ptrCast(self.vtable)).get_Watcher(@as(*const IRTCClientPresence, @ptrCast(self)), bstrPresentityURI, ppWatcher); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRTCClientPresence_AddWatcher(self: *const T, bstrPresentityURI: ?BSTR, bstrUserName: ?BSTR, bstrData: ?BSTR, fBlocked: i16, fPersistent: i16, ppWatcher: ?*?*IRTCWatcher) HRESULT { return @as(*const IRTCClientPresence.VTable, @ptrCast(self.vtable)).AddWatcher(@as(*const IRTCClientPresence, @ptrCast(self)), bstrPresentityURI, bstrUserName, bstrData, fBlocked, fPersistent, ppWatcher); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRTCClientPresence_RemoveWatcher(self: *const T, pWatcher: ?*IRTCWatcher) HRESULT { return @as(*const IRTCClientPresence.VTable, @ptrCast(self.vtable)).RemoveWatcher(@as(*const IRTCClientPresence, @ptrCast(self)), pWatcher); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRTCClientPresence_SetLocalPresenceInfo(self: *const T, enStatus: RTC_PRESENCE_STATUS, bstrNotes: ?BSTR) HRESULT { return @as(*const IRTCClientPresence.VTable, @ptrCast(self.vtable)).SetLocalPresenceInfo(@as(*const IRTCClientPresence, @ptrCast(self)), enStatus, bstrNotes); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRTCClientPresence_get_OfferWatcherMode(self: *const T, penMode: ?*RTC_OFFER_WATCHER_MODE) HRESULT { return @as(*const IRTCClientPresence.VTable, @ptrCast(self.vtable)).get_OfferWatcherMode(@as(*const IRTCClientPresence, @ptrCast(self)), penMode); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRTCClientPresence_put_OfferWatcherMode(self: *const T, enMode: RTC_OFFER_WATCHER_MODE) HRESULT { return @as(*const IRTCClientPresence.VTable, @ptrCast(self.vtable)).put_OfferWatcherMode(@as(*const IRTCClientPresence, @ptrCast(self)), enMode); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRTCClientPresence_get_PrivacyMode(self: *const T, penMode: ?*RTC_PRIVACY_MODE) HRESULT { return @as(*const IRTCClientPresence.VTable, @ptrCast(self.vtable)).get_PrivacyMode(@as(*const IRTCClientPresence, @ptrCast(self)), penMode); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRTCClientPresence_put_PrivacyMode(self: *const T, enMode: RTC_PRIVACY_MODE) HRESULT { return @as(*const IRTCClientPresence.VTable, @ptrCast(self.vtable)).put_PrivacyMode(@as(*const IRTCClientPresence, @ptrCast(self)), enMode); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IRTCClientPresence2_Value = Guid.initString("ad1809e8-62f7-4783-909a-29c9d2cb1d34"); pub const IID_IRTCClientPresence2 = &IID_IRTCClientPresence2_Value; pub const IRTCClientPresence2 = extern struct { pub const VTable = extern struct { base: IRTCClientPresence.VTable, EnablePresenceEx: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IRTCClientPresence2, pProfile: ?*IRTCProfile, varStorage: VARIANT, lFlags: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IRTCClientPresence2, pProfile: ?*IRTCProfile, varStorage: VARIANT, lFlags: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, DisablePresence: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IRTCClientPresence2, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IRTCClientPresence2, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, AddGroup: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IRTCClientPresence2, bstrGroupName: ?BSTR, bstrData: ?BSTR, pProfile: ?*IRTCProfile, lFlags: i32, ppGroup: ?*?*IRTCBuddyGroup, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IRTCClientPresence2, bstrGroupName: ?BSTR, bstrData: ?BSTR, pProfile: ?*IRTCProfile, lFlags: i32, ppGroup: ?*?*IRTCBuddyGroup, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, RemoveGroup: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IRTCClientPresence2, pGroup: ?*IRTCBuddyGroup, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IRTCClientPresence2, pGroup: ?*IRTCBuddyGroup, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, EnumerateGroups: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IRTCClientPresence2, ppEnum: ?*?*IRTCEnumGroups, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IRTCClientPresence2, ppEnum: ?*?*IRTCEnumGroups, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Groups: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IRTCClientPresence2, ppCollection: ?*?*IRTCCollection, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IRTCClientPresence2, ppCollection: ?*?*IRTCCollection, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Group: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IRTCClientPresence2, bstrGroupName: ?BSTR, ppGroup: ?*?*IRTCBuddyGroup, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IRTCClientPresence2, bstrGroupName: ?BSTR, ppGroup: ?*?*IRTCBuddyGroup, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, AddWatcherEx: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IRTCClientPresence2, bstrPresentityURI: ?BSTR, bstrUserName: ?BSTR, bstrData: ?BSTR, enState: RTC_WATCHER_STATE, fPersistent: i16, enScope: RTC_ACE_SCOPE, pProfile: ?*IRTCProfile, lFlags: i32, ppWatcher: ?*?*IRTCWatcher2, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IRTCClientPresence2, bstrPresentityURI: ?BSTR, bstrUserName: ?BSTR, bstrData: ?BSTR, enState: RTC_WATCHER_STATE, fPersistent: i16, enScope: RTC_ACE_SCOPE, pProfile: ?*IRTCProfile, lFlags: i32, ppWatcher: ?*?*IRTCWatcher2, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_WatcherEx: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IRTCClientPresence2, enMode: RTC_WATCHER_MATCH_MODE, bstrPresentityURI: ?BSTR, ppWatcher: ?*?*IRTCWatcher2, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IRTCClientPresence2, enMode: RTC_WATCHER_MATCH_MODE, bstrPresentityURI: ?BSTR, ppWatcher: ?*?*IRTCWatcher2, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_PresenceProperty: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IRTCClientPresence2, enProperty: RTC_PRESENCE_PROPERTY, bstrProperty: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IRTCClientPresence2, enProperty: RTC_PRESENCE_PROPERTY, bstrProperty: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_PresenceProperty: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IRTCClientPresence2, enProperty: RTC_PRESENCE_PROPERTY, pbstrProperty: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IRTCClientPresence2, enProperty: RTC_PRESENCE_PROPERTY, pbstrProperty: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetPresenceData: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IRTCClientPresence2, bstrNamespace: ?BSTR, bstrData: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IRTCClientPresence2, bstrNamespace: ?BSTR, bstrData: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetPresenceData: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IRTCClientPresence2, pbstrNamespace: ?*?BSTR, pbstrData: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IRTCClientPresence2, pbstrNamespace: ?*?BSTR, pbstrData: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetLocalPresenceInfo: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IRTCClientPresence2, penStatus: ?*RTC_PRESENCE_STATUS, pbstrNotes: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IRTCClientPresence2, penStatus: ?*RTC_PRESENCE_STATUS, pbstrNotes: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, AddBuddyEx: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IRTCClientPresence2, bstrPresentityURI: ?BSTR, bstrUserName: ?BSTR, bstrData: ?BSTR, fPersistent: i16, enSubscriptionType: RTC_BUDDY_SUBSCRIPTION_TYPE, pProfile: ?*IRTCProfile, lFlags: i32, ppBuddy: ?*?*IRTCBuddy2, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IRTCClientPresence2, bstrPresentityURI: ?BSTR, bstrUserName: ?BSTR, bstrData: ?BSTR, fPersistent: i16, enSubscriptionType: RTC_BUDDY_SUBSCRIPTION_TYPE, pProfile: ?*IRTCProfile, lFlags: i32, ppBuddy: ?*?*IRTCBuddy2, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IRTCClientPresence.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRTCClientPresence2_EnablePresenceEx(self: *const T, pProfile: ?*IRTCProfile, varStorage: VARIANT, lFlags: i32) HRESULT { return @as(*const IRTCClientPresence2.VTable, @ptrCast(self.vtable)).EnablePresenceEx(@as(*const IRTCClientPresence2, @ptrCast(self)), pProfile, varStorage, lFlags); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRTCClientPresence2_DisablePresence(self: *const T) HRESULT { return @as(*const IRTCClientPresence2.VTable, @ptrCast(self.vtable)).DisablePresence(@as(*const IRTCClientPresence2, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRTCClientPresence2_AddGroup(self: *const T, bstrGroupName: ?BSTR, bstrData: ?BSTR, pProfile: ?*IRTCProfile, lFlags: i32, ppGroup: ?*?*IRTCBuddyGroup) HRESULT { return @as(*const IRTCClientPresence2.VTable, @ptrCast(self.vtable)).AddGroup(@as(*const IRTCClientPresence2, @ptrCast(self)), bstrGroupName, bstrData, pProfile, lFlags, ppGroup); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRTCClientPresence2_RemoveGroup(self: *const T, pGroup: ?*IRTCBuddyGroup) HRESULT { return @as(*const IRTCClientPresence2.VTable, @ptrCast(self.vtable)).RemoveGroup(@as(*const IRTCClientPresence2, @ptrCast(self)), pGroup); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRTCClientPresence2_EnumerateGroups(self: *const T, ppEnum: ?*?*IRTCEnumGroups) HRESULT { return @as(*const IRTCClientPresence2.VTable, @ptrCast(self.vtable)).EnumerateGroups(@as(*const IRTCClientPresence2, @ptrCast(self)), ppEnum); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRTCClientPresence2_get_Groups(self: *const T, ppCollection: ?*?*IRTCCollection) HRESULT { return @as(*const IRTCClientPresence2.VTable, @ptrCast(self.vtable)).get_Groups(@as(*const IRTCClientPresence2, @ptrCast(self)), ppCollection); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRTCClientPresence2_get_Group(self: *const T, bstrGroupName: ?BSTR, ppGroup: ?*?*IRTCBuddyGroup) HRESULT { return @as(*const IRTCClientPresence2.VTable, @ptrCast(self.vtable)).get_Group(@as(*const IRTCClientPresence2, @ptrCast(self)), bstrGroupName, ppGroup); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRTCClientPresence2_AddWatcherEx(self: *const T, bstrPresentityURI: ?BSTR, bstrUserName: ?BSTR, bstrData: ?BSTR, enState: RTC_WATCHER_STATE, fPersistent: i16, enScope: RTC_ACE_SCOPE, pProfile: ?*IRTCProfile, lFlags: i32, ppWatcher: ?*?*IRTCWatcher2) HRESULT { return @as(*const IRTCClientPresence2.VTable, @ptrCast(self.vtable)).AddWatcherEx(@as(*const IRTCClientPresence2, @ptrCast(self)), bstrPresentityURI, bstrUserName, bstrData, enState, fPersistent, enScope, pProfile, lFlags, ppWatcher); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRTCClientPresence2_get_WatcherEx(self: *const T, enMode: RTC_WATCHER_MATCH_MODE, bstrPresentityURI: ?BSTR, ppWatcher: ?*?*IRTCWatcher2) HRESULT { return @as(*const IRTCClientPresence2.VTable, @ptrCast(self.vtable)).get_WatcherEx(@as(*const IRTCClientPresence2, @ptrCast(self)), enMode, bstrPresentityURI, ppWatcher); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRTCClientPresence2_put_PresenceProperty(self: *const T, enProperty: RTC_PRESENCE_PROPERTY, bstrProperty: ?BSTR) HRESULT { return @as(*const IRTCClientPresence2.VTable, @ptrCast(self.vtable)).put_PresenceProperty(@as(*const IRTCClientPresence2, @ptrCast(self)), enProperty, bstrProperty); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRTCClientPresence2_get_PresenceProperty(self: *const T, enProperty: RTC_PRESENCE_PROPERTY, pbstrProperty: ?*?BSTR) HRESULT { return @as(*const IRTCClientPresence2.VTable, @ptrCast(self.vtable)).get_PresenceProperty(@as(*const IRTCClientPresence2, @ptrCast(self)), enProperty, pbstrProperty); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRTCClientPresence2_SetPresenceData(self: *const T, bstrNamespace: ?BSTR, bstrData: ?BSTR) HRESULT { return @as(*const IRTCClientPresence2.VTable, @ptrCast(self.vtable)).SetPresenceData(@as(*const IRTCClientPresence2, @ptrCast(self)), bstrNamespace, bstrData); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRTCClientPresence2_GetPresenceData(self: *const T, pbstrNamespace: ?*?BSTR, pbstrData: ?*?BSTR) HRESULT { return @as(*const IRTCClientPresence2.VTable, @ptrCast(self.vtable)).GetPresenceData(@as(*const IRTCClientPresence2, @ptrCast(self)), pbstrNamespace, pbstrData); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRTCClientPresence2_GetLocalPresenceInfo(self: *const T, penStatus: ?*RTC_PRESENCE_STATUS, pbstrNotes: ?*?BSTR) HRESULT { return @as(*const IRTCClientPresence2.VTable, @ptrCast(self.vtable)).GetLocalPresenceInfo(@as(*const IRTCClientPresence2, @ptrCast(self)), penStatus, pbstrNotes); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRTCClientPresence2_AddBuddyEx(self: *const T, bstrPresentityURI: ?BSTR, bstrUserName: ?BSTR, bstrData: ?BSTR, fPersistent: i16, enSubscriptionType: RTC_BUDDY_SUBSCRIPTION_TYPE, pProfile: ?*IRTCProfile, lFlags: i32, ppBuddy: ?*?*IRTCBuddy2) HRESULT { return @as(*const IRTCClientPresence2.VTable, @ptrCast(self.vtable)).AddBuddyEx(@as(*const IRTCClientPresence2, @ptrCast(self)), bstrPresentityURI, bstrUserName, bstrData, fPersistent, enSubscriptionType, pProfile, lFlags, ppBuddy); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IRTCClientProvisioning_Value = Guid.initString("b9f5cf06-65b9-4a80-a0e6-73cae3ef3822"); pub const IID_IRTCClientProvisioning = &IID_IRTCClientProvisioning_Value; pub const IRTCClientProvisioning = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, CreateProfile: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IRTCClientProvisioning, bstrProfileXML: ?BSTR, ppProfile: ?*?*IRTCProfile, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IRTCClientProvisioning, bstrProfileXML: ?BSTR, ppProfile: ?*?*IRTCProfile, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, EnableProfile: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IRTCClientProvisioning, pProfile: ?*IRTCProfile, lRegisterFlags: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IRTCClientProvisioning, pProfile: ?*IRTCProfile, lRegisterFlags: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, DisableProfile: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IRTCClientProvisioning, pProfile: ?*IRTCProfile, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IRTCClientProvisioning, pProfile: ?*IRTCProfile, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, EnumerateProfiles: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IRTCClientProvisioning, ppEnum: ?*?*IRTCEnumProfiles, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IRTCClientProvisioning, ppEnum: ?*?*IRTCEnumProfiles, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Profiles: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IRTCClientProvisioning, ppCollection: ?*?*IRTCCollection, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IRTCClientProvisioning, ppCollection: ?*?*IRTCCollection, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetProfile: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IRTCClientProvisioning, bstrUserAccount: ?BSTR, bstrUserPassword: ?BSTR, bstrUserURI: ?BSTR, bstrServer: ?BSTR, lTransport: i32, lCookie: isize, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IRTCClientProvisioning, bstrUserAccount: ?BSTR, bstrUserPassword: ?BSTR, bstrUserURI: ?BSTR, bstrServer: ?BSTR, lTransport: i32, lCookie: isize, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_SessionCapabilities: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IRTCClientProvisioning, plSupportedSessions: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IRTCClientProvisioning, plSupportedSessions: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRTCClientProvisioning_CreateProfile(self: *const T, bstrProfileXML: ?BSTR, ppProfile: ?*?*IRTCProfile) HRESULT { return @as(*const IRTCClientProvisioning.VTable, @ptrCast(self.vtable)).CreateProfile(@as(*const IRTCClientProvisioning, @ptrCast(self)), bstrProfileXML, ppProfile); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRTCClientProvisioning_EnableProfile(self: *const T, pProfile: ?*IRTCProfile, lRegisterFlags: i32) HRESULT { return @as(*const IRTCClientProvisioning.VTable, @ptrCast(self.vtable)).EnableProfile(@as(*const IRTCClientProvisioning, @ptrCast(self)), pProfile, lRegisterFlags); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRTCClientProvisioning_DisableProfile(self: *const T, pProfile: ?*IRTCProfile) HRESULT { return @as(*const IRTCClientProvisioning.VTable, @ptrCast(self.vtable)).DisableProfile(@as(*const IRTCClientProvisioning, @ptrCast(self)), pProfile); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRTCClientProvisioning_EnumerateProfiles(self: *const T, ppEnum: ?*?*IRTCEnumProfiles) HRESULT { return @as(*const IRTCClientProvisioning.VTable, @ptrCast(self.vtable)).EnumerateProfiles(@as(*const IRTCClientProvisioning, @ptrCast(self)), ppEnum); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRTCClientProvisioning_get_Profiles(self: *const T, ppCollection: ?*?*IRTCCollection) HRESULT { return @as(*const IRTCClientProvisioning.VTable, @ptrCast(self.vtable)).get_Profiles(@as(*const IRTCClientProvisioning, @ptrCast(self)), ppCollection); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRTCClientProvisioning_GetProfile(self: *const T, bstrUserAccount: ?BSTR, bstrUserPassword: ?BSTR, bstrUserURI: ?BSTR, bstrServer: ?BSTR, lTransport: i32, lCookie: isize) HRESULT { return @as(*const IRTCClientProvisioning.VTable, @ptrCast(self.vtable)).GetProfile(@as(*const IRTCClientProvisioning, @ptrCast(self)), bstrUserAccount, bstrUserPassword, bstrUserURI, bstrServer, lTransport, lCookie); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRTCClientProvisioning_get_SessionCapabilities(self: *const T, plSupportedSessions: ?*i32) HRESULT { return @as(*const IRTCClientProvisioning.VTable, @ptrCast(self.vtable)).get_SessionCapabilities(@as(*const IRTCClientProvisioning, @ptrCast(self)), plSupportedSessions); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IRTCClientProvisioning2_Value = Guid.initString("a70909b5-f40e-4587-bb75-e6bc0845023e"); pub const IID_IRTCClientProvisioning2 = &IID_IRTCClientProvisioning2_Value; pub const IRTCClientProvisioning2 = extern struct { pub const VTable = extern struct { base: IRTCClientProvisioning.VTable, EnableProfileEx: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IRTCClientProvisioning2, pProfile: ?*IRTCProfile, lRegisterFlags: i32, lRoamingFlags: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IRTCClientProvisioning2, pProfile: ?*IRTCProfile, lRegisterFlags: i32, lRoamingFlags: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IRTCClientProvisioning.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRTCClientProvisioning2_EnableProfileEx(self: *const T, pProfile: ?*IRTCProfile, lRegisterFlags: i32, lRoamingFlags: i32) HRESULT { return @as(*const IRTCClientProvisioning2.VTable, @ptrCast(self.vtable)).EnableProfileEx(@as(*const IRTCClientProvisioning2, @ptrCast(self)), pProfile, lRegisterFlags, lRoamingFlags); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IRTCProfile_Value = Guid.initString("d07eca9e-4062-4dd4-9e7d-722a49ba7303"); pub const IID_IRTCProfile = &IID_IRTCProfile_Value; pub const IRTCProfile = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Key: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IRTCProfile, pbstrKey: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IRTCProfile, pbstrKey: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Name: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IRTCProfile, pbstrName: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IRTCProfile, pbstrName: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_XML: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IRTCProfile, pbstrXML: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IRTCProfile, pbstrXML: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_ProviderName: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IRTCProfile, pbstrName: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IRTCProfile, pbstrName: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_ProviderURI: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IRTCProfile, enURI: RTC_PROVIDER_URI, pbstrURI: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IRTCProfile, enURI: RTC_PROVIDER_URI, pbstrURI: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_ProviderData: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IRTCProfile, pbstrData: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IRTCProfile, pbstrData: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_ClientName: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IRTCProfile, pbstrName: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IRTCProfile, pbstrName: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_ClientBanner: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IRTCProfile, pfBanner: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IRTCProfile, pfBanner: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_ClientMinVer: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IRTCProfile, pbstrMinVer: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IRTCProfile, pbstrMinVer: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_ClientCurVer: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IRTCProfile, pbstrCurVer: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IRTCProfile, pbstrCurVer: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_ClientUpdateURI: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IRTCProfile, pbstrUpdateURI: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IRTCProfile, pbstrUpdateURI: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_ClientData: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IRTCProfile, pbstrData: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IRTCProfile, pbstrData: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_UserURI: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IRTCProfile, pbstrUserURI: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IRTCProfile, pbstrUserURI: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_UserName: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IRTCProfile, pbstrUserName: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IRTCProfile, pbstrUserName: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_UserAccount: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IRTCProfile, pbstrUserAccount: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IRTCProfile, pbstrUserAccount: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetCredentials: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IRTCProfile, bstrUserURI: ?BSTR, bstrUserAccount: ?BSTR, bstrPassword: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IRTCProfile, bstrUserURI: ?BSTR, bstrUserAccount: ?BSTR, bstrPassword: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_SessionCapabilities: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IRTCProfile, plSupportedSessions: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IRTCProfile, plSupportedSessions: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_State: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IRTCProfile, penState: ?*RTC_REGISTRATION_STATE, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IRTCProfile, penState: ?*RTC_REGISTRATION_STATE, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRTCProfile_get_Key(self: *const T, pbstrKey: ?*?BSTR) HRESULT { return @as(*const IRTCProfile.VTable, @ptrCast(self.vtable)).get_Key(@as(*const IRTCProfile, @ptrCast(self)), pbstrKey); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRTCProfile_get_Name(self: *const T, pbstrName: ?*?BSTR) HRESULT { return @as(*const IRTCProfile.VTable, @ptrCast(self.vtable)).get_Name(@as(*const IRTCProfile, @ptrCast(self)), pbstrName); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRTCProfile_get_XML(self: *const T, pbstrXML: ?*?BSTR) HRESULT { return @as(*const IRTCProfile.VTable, @ptrCast(self.vtable)).get_XML(@as(*const IRTCProfile, @ptrCast(self)), pbstrXML); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRTCProfile_get_ProviderName(self: *const T, pbstrName: ?*?BSTR) HRESULT { return @as(*const IRTCProfile.VTable, @ptrCast(self.vtable)).get_ProviderName(@as(*const IRTCProfile, @ptrCast(self)), pbstrName); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRTCProfile_get_ProviderURI(self: *const T, enURI: RTC_PROVIDER_URI, pbstrURI: ?*?BSTR) HRESULT { return @as(*const IRTCProfile.VTable, @ptrCast(self.vtable)).get_ProviderURI(@as(*const IRTCProfile, @ptrCast(self)), enURI, pbstrURI); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRTCProfile_get_ProviderData(self: *const T, pbstrData: ?*?BSTR) HRESULT { return @as(*const IRTCProfile.VTable, @ptrCast(self.vtable)).get_ProviderData(@as(*const IRTCProfile, @ptrCast(self)), pbstrData); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRTCProfile_get_ClientName(self: *const T, pbstrName: ?*?BSTR) HRESULT { return @as(*const IRTCProfile.VTable, @ptrCast(self.vtable)).get_ClientName(@as(*const IRTCProfile, @ptrCast(self)), pbstrName); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRTCProfile_get_ClientBanner(self: *const T, pfBanner: ?*i16) HRESULT { return @as(*const IRTCProfile.VTable, @ptrCast(self.vtable)).get_ClientBanner(@as(*const IRTCProfile, @ptrCast(self)), pfBanner); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRTCProfile_get_ClientMinVer(self: *const T, pbstrMinVer: ?*?BSTR) HRESULT { return @as(*const IRTCProfile.VTable, @ptrCast(self.vtable)).get_ClientMinVer(@as(*const IRTCProfile, @ptrCast(self)), pbstrMinVer); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRTCProfile_get_ClientCurVer(self: *const T, pbstrCurVer: ?*?BSTR) HRESULT { return @as(*const IRTCProfile.VTable, @ptrCast(self.vtable)).get_ClientCurVer(@as(*const IRTCProfile, @ptrCast(self)), pbstrCurVer); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRTCProfile_get_ClientUpdateURI(self: *const T, pbstrUpdateURI: ?*?BSTR) HRESULT { return @as(*const IRTCProfile.VTable, @ptrCast(self.vtable)).get_ClientUpdateURI(@as(*const IRTCProfile, @ptrCast(self)), pbstrUpdateURI); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRTCProfile_get_ClientData(self: *const T, pbstrData: ?*?BSTR) HRESULT { return @as(*const IRTCProfile.VTable, @ptrCast(self.vtable)).get_ClientData(@as(*const IRTCProfile, @ptrCast(self)), pbstrData); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRTCProfile_get_UserURI(self: *const T, pbstrUserURI: ?*?BSTR) HRESULT { return @as(*const IRTCProfile.VTable, @ptrCast(self.vtable)).get_UserURI(@as(*const IRTCProfile, @ptrCast(self)), pbstrUserURI); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRTCProfile_get_UserName(self: *const T, pbstrUserName: ?*?BSTR) HRESULT { return @as(*const IRTCProfile.VTable, @ptrCast(self.vtable)).get_UserName(@as(*const IRTCProfile, @ptrCast(self)), pbstrUserName); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRTCProfile_get_UserAccount(self: *const T, pbstrUserAccount: ?*?BSTR) HRESULT { return @as(*const IRTCProfile.VTable, @ptrCast(self.vtable)).get_UserAccount(@as(*const IRTCProfile, @ptrCast(self)), pbstrUserAccount); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRTCProfile_SetCredentials(self: *const T, bstrUserURI: ?BSTR, bstrUserAccount: ?BSTR, bstrPassword: ?BSTR) HRESULT { return @as(*const IRTCProfile.VTable, @ptrCast(self.vtable)).SetCredentials(@as(*const IRTCProfile, @ptrCast(self)), bstrUserURI, bstrUserAccount, bstrPassword); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRTCProfile_get_SessionCapabilities(self: *const T, plSupportedSessions: ?*i32) HRESULT { return @as(*const IRTCProfile.VTable, @ptrCast(self.vtable)).get_SessionCapabilities(@as(*const IRTCProfile, @ptrCast(self)), plSupportedSessions); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRTCProfile_get_State(self: *const T, penState: ?*RTC_REGISTRATION_STATE) HRESULT { return @as(*const IRTCProfile.VTable, @ptrCast(self.vtable)).get_State(@as(*const IRTCProfile, @ptrCast(self)), penState); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IRTCProfile2_Value = Guid.initString("4b81f84e-bdc7-4184-9154-3cb2dd7917fb"); pub const IID_IRTCProfile2 = &IID_IRTCProfile2_Value; pub const IRTCProfile2 = extern struct { pub const VTable = extern struct { base: IRTCProfile.VTable, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Realm: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IRTCProfile2, pbstrRealm: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IRTCProfile2, pbstrRealm: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_Realm: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IRTCProfile2, bstrRealm: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IRTCProfile2, bstrRealm: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_AllowedAuth: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IRTCProfile2, plAllowedAuth: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IRTCProfile2, plAllowedAuth: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_AllowedAuth: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IRTCProfile2, lAllowedAuth: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IRTCProfile2, lAllowedAuth: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IRTCProfile.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRTCProfile2_get_Realm(self: *const T, pbstrRealm: ?*?BSTR) HRESULT { return @as(*const IRTCProfile2.VTable, @ptrCast(self.vtable)).get_Realm(@as(*const IRTCProfile2, @ptrCast(self)), pbstrRealm); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRTCProfile2_put_Realm(self: *const T, bstrRealm: ?BSTR) HRESULT { return @as(*const IRTCProfile2.VTable, @ptrCast(self.vtable)).put_Realm(@as(*const IRTCProfile2, @ptrCast(self)), bstrRealm); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRTCProfile2_get_AllowedAuth(self: *const T, plAllowedAuth: ?*i32) HRESULT { return @as(*const IRTCProfile2.VTable, @ptrCast(self.vtable)).get_AllowedAuth(@as(*const IRTCProfile2, @ptrCast(self)), plAllowedAuth); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRTCProfile2_put_AllowedAuth(self: *const T, lAllowedAuth: i32) HRESULT { return @as(*const IRTCProfile2.VTable, @ptrCast(self.vtable)).put_AllowedAuth(@as(*const IRTCProfile2, @ptrCast(self)), lAllowedAuth); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IRTCSession_Value = Guid.initString("387c8086-99be-42fb-9973-7c0fc0ca9fa8"); pub const IID_IRTCSession = &IID_IRTCSession_Value; pub const IRTCSession = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Client: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IRTCSession, ppClient: ?*?*IRTCClient, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IRTCSession, ppClient: ?*?*IRTCClient, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_State: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IRTCSession, penState: ?*RTC_SESSION_STATE, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IRTCSession, penState: ?*RTC_SESSION_STATE, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Type: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IRTCSession, penType: ?*RTC_SESSION_TYPE, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IRTCSession, penType: ?*RTC_SESSION_TYPE, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Profile: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IRTCSession, ppProfile: ?*?*IRTCProfile, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IRTCSession, ppProfile: ?*?*IRTCProfile, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Participants: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IRTCSession, ppCollection: ?*?*IRTCCollection, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IRTCSession, ppCollection: ?*?*IRTCCollection, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Answer: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IRTCSession, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IRTCSession, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Terminate: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IRTCSession, enReason: RTC_TERMINATE_REASON, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IRTCSession, enReason: RTC_TERMINATE_REASON, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Redirect: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IRTCSession, enType: RTC_SESSION_TYPE, bstrLocalPhoneURI: ?BSTR, pProfile: ?*IRTCProfile, lFlags: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IRTCSession, enType: RTC_SESSION_TYPE, bstrLocalPhoneURI: ?BSTR, pProfile: ?*IRTCProfile, lFlags: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, AddParticipant: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IRTCSession, bstrAddress: ?BSTR, bstrName: ?BSTR, ppParticipant: ?*?*IRTCParticipant, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IRTCSession, bstrAddress: ?BSTR, bstrName: ?BSTR, ppParticipant: ?*?*IRTCParticipant, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, RemoveParticipant: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IRTCSession, pParticipant: ?*IRTCParticipant, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IRTCSession, pParticipant: ?*IRTCParticipant, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, EnumerateParticipants: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IRTCSession, ppEnum: ?*?*IRTCEnumParticipants, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IRTCSession, ppEnum: ?*?*IRTCEnumParticipants, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_CanAddParticipants: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IRTCSession, pfCanAdd: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IRTCSession, pfCanAdd: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_RedirectedUserURI: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IRTCSession, pbstrUserURI: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IRTCSession, pbstrUserURI: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_RedirectedUserName: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IRTCSession, pbstrUserName: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IRTCSession, pbstrUserName: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, NextRedirectedUser: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IRTCSession, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IRTCSession, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SendMessage: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IRTCSession, bstrMessageHeader: ?BSTR, bstrMessage: ?BSTR, lCookie: isize, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IRTCSession, bstrMessageHeader: ?BSTR, bstrMessage: ?BSTR, lCookie: isize, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SendMessageStatus: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IRTCSession, enUserStatus: RTC_MESSAGING_USER_STATUS, lCookie: isize, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IRTCSession, enUserStatus: RTC_MESSAGING_USER_STATUS, lCookie: isize, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, AddStream: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IRTCSession, lMediaType: i32, lCookie: isize, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IRTCSession, lMediaType: i32, lCookie: isize, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, RemoveStream: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IRTCSession, lMediaType: i32, lCookie: isize, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IRTCSession, lMediaType: i32, lCookie: isize, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_EncryptionKey: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IRTCSession, lMediaType: i32, EncryptionKey: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IRTCSession, lMediaType: i32, EncryptionKey: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRTCSession_get_Client(self: *const T, ppClient: ?*?*IRTCClient) HRESULT { return @as(*const IRTCSession.VTable, @ptrCast(self.vtable)).get_Client(@as(*const IRTCSession, @ptrCast(self)), ppClient); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRTCSession_get_State(self: *const T, penState: ?*RTC_SESSION_STATE) HRESULT { return @as(*const IRTCSession.VTable, @ptrCast(self.vtable)).get_State(@as(*const IRTCSession, @ptrCast(self)), penState); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRTCSession_get_Type(self: *const T, penType: ?*RTC_SESSION_TYPE) HRESULT { return @as(*const IRTCSession.VTable, @ptrCast(self.vtable)).get_Type(@as(*const IRTCSession, @ptrCast(self)), penType); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRTCSession_get_Profile(self: *const T, ppProfile: ?*?*IRTCProfile) HRESULT { return @as(*const IRTCSession.VTable, @ptrCast(self.vtable)).get_Profile(@as(*const IRTCSession, @ptrCast(self)), ppProfile); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRTCSession_get_Participants(self: *const T, ppCollection: ?*?*IRTCCollection) HRESULT { return @as(*const IRTCSession.VTable, @ptrCast(self.vtable)).get_Participants(@as(*const IRTCSession, @ptrCast(self)), ppCollection); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRTCSession_Answer(self: *const T) HRESULT { return @as(*const IRTCSession.VTable, @ptrCast(self.vtable)).Answer(@as(*const IRTCSession, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRTCSession_Terminate(self: *const T, enReason: RTC_TERMINATE_REASON) HRESULT { return @as(*const IRTCSession.VTable, @ptrCast(self.vtable)).Terminate(@as(*const IRTCSession, @ptrCast(self)), enReason); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRTCSession_Redirect(self: *const T, enType: RTC_SESSION_TYPE, bstrLocalPhoneURI: ?BSTR, pProfile: ?*IRTCProfile, lFlags: i32) HRESULT { return @as(*const IRTCSession.VTable, @ptrCast(self.vtable)).Redirect(@as(*const IRTCSession, @ptrCast(self)), enType, bstrLocalPhoneURI, pProfile, lFlags); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRTCSession_AddParticipant(self: *const T, bstrAddress: ?BSTR, bstrName: ?BSTR, ppParticipant: ?*?*IRTCParticipant) HRESULT { return @as(*const IRTCSession.VTable, @ptrCast(self.vtable)).AddParticipant(@as(*const IRTCSession, @ptrCast(self)), bstrAddress, bstrName, ppParticipant); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRTCSession_RemoveParticipant(self: *const T, pParticipant: ?*IRTCParticipant) HRESULT { return @as(*const IRTCSession.VTable, @ptrCast(self.vtable)).RemoveParticipant(@as(*const IRTCSession, @ptrCast(self)), pParticipant); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRTCSession_EnumerateParticipants(self: *const T, ppEnum: ?*?*IRTCEnumParticipants) HRESULT { return @as(*const IRTCSession.VTable, @ptrCast(self.vtable)).EnumerateParticipants(@as(*const IRTCSession, @ptrCast(self)), ppEnum); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRTCSession_get_CanAddParticipants(self: *const T, pfCanAdd: ?*i16) HRESULT { return @as(*const IRTCSession.VTable, @ptrCast(self.vtable)).get_CanAddParticipants(@as(*const IRTCSession, @ptrCast(self)), pfCanAdd); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRTCSession_get_RedirectedUserURI(self: *const T, pbstrUserURI: ?*?BSTR) HRESULT { return @as(*const IRTCSession.VTable, @ptrCast(self.vtable)).get_RedirectedUserURI(@as(*const IRTCSession, @ptrCast(self)), pbstrUserURI); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRTCSession_get_RedirectedUserName(self: *const T, pbstrUserName: ?*?BSTR) HRESULT { return @as(*const IRTCSession.VTable, @ptrCast(self.vtable)).get_RedirectedUserName(@as(*const IRTCSession, @ptrCast(self)), pbstrUserName); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRTCSession_NextRedirectedUser(self: *const T) HRESULT { return @as(*const IRTCSession.VTable, @ptrCast(self.vtable)).NextRedirectedUser(@as(*const IRTCSession, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRTCSession_SendMessage(self: *const T, bstrMessageHeader: ?BSTR, bstrMessage: ?BSTR, lCookie: isize) HRESULT { return @as(*const IRTCSession.VTable, @ptrCast(self.vtable)).SendMessage(@as(*const IRTCSession, @ptrCast(self)), bstrMessageHeader, bstrMessage, lCookie); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRTCSession_SendMessageStatus(self: *const T, enUserStatus: RTC_MESSAGING_USER_STATUS, lCookie: isize) HRESULT { return @as(*const IRTCSession.VTable, @ptrCast(self.vtable)).SendMessageStatus(@as(*const IRTCSession, @ptrCast(self)), enUserStatus, lCookie); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRTCSession_AddStream(self: *const T, lMediaType: i32, lCookie: isize) HRESULT { return @as(*const IRTCSession.VTable, @ptrCast(self.vtable)).AddStream(@as(*const IRTCSession, @ptrCast(self)), lMediaType, lCookie); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRTCSession_RemoveStream(self: *const T, lMediaType: i32, lCookie: isize) HRESULT { return @as(*const IRTCSession.VTable, @ptrCast(self.vtable)).RemoveStream(@as(*const IRTCSession, @ptrCast(self)), lMediaType, lCookie); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRTCSession_put_EncryptionKey(self: *const T, lMediaType: i32, EncryptionKey: ?BSTR) HRESULT { return @as(*const IRTCSession.VTable, @ptrCast(self.vtable)).put_EncryptionKey(@as(*const IRTCSession, @ptrCast(self)), lMediaType, EncryptionKey); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IRTCSession2_Value = Guid.initString("17d7cdfc-b007-484c-99d2-86a8a820991d"); pub const IID_IRTCSession2 = &IID_IRTCSession2_Value; pub const IRTCSession2 = extern struct { pub const VTable = extern struct { base: IRTCSession.VTable, SendInfo: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IRTCSession2, bstrInfoHeader: ?BSTR, bstrInfo: ?BSTR, lCookie: isize, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IRTCSession2, bstrInfoHeader: ?BSTR, bstrInfo: ?BSTR, lCookie: isize, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_PreferredSecurityLevel: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IRTCSession2, enSecurityType: RTC_SECURITY_TYPE, enSecurityLevel: RTC_SECURITY_LEVEL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IRTCSession2, enSecurityType: RTC_SECURITY_TYPE, enSecurityLevel: RTC_SECURITY_LEVEL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_PreferredSecurityLevel: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IRTCSession2, enSecurityType: RTC_SECURITY_TYPE, penSecurityLevel: ?*RTC_SECURITY_LEVEL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IRTCSession2, enSecurityType: RTC_SECURITY_TYPE, penSecurityLevel: ?*RTC_SECURITY_LEVEL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, IsSecurityEnabled: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IRTCSession2, enSecurityType: RTC_SECURITY_TYPE, pfSecurityEnabled: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IRTCSession2, enSecurityType: RTC_SECURITY_TYPE, pfSecurityEnabled: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, AnswerWithSessionDescription: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IRTCSession2, bstrContentType: ?BSTR, bstrSessionDescription: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IRTCSession2, bstrContentType: ?BSTR, bstrSessionDescription: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, ReInviteWithSessionDescription: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IRTCSession2, bstrContentType: ?BSTR, bstrSessionDescription: ?BSTR, lCookie: isize, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IRTCSession2, bstrContentType: ?BSTR, bstrSessionDescription: ?BSTR, lCookie: isize, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IRTCSession.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRTCSession2_SendInfo(self: *const T, bstrInfoHeader: ?BSTR, bstrInfo: ?BSTR, lCookie: isize) HRESULT { return @as(*const IRTCSession2.VTable, @ptrCast(self.vtable)).SendInfo(@as(*const IRTCSession2, @ptrCast(self)), bstrInfoHeader, bstrInfo, lCookie); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRTCSession2_put_PreferredSecurityLevel(self: *const T, enSecurityType: RTC_SECURITY_TYPE, enSecurityLevel: RTC_SECURITY_LEVEL) HRESULT { return @as(*const IRTCSession2.VTable, @ptrCast(self.vtable)).put_PreferredSecurityLevel(@as(*const IRTCSession2, @ptrCast(self)), enSecurityType, enSecurityLevel); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRTCSession2_get_PreferredSecurityLevel(self: *const T, enSecurityType: RTC_SECURITY_TYPE, penSecurityLevel: ?*RTC_SECURITY_LEVEL) HRESULT { return @as(*const IRTCSession2.VTable, @ptrCast(self.vtable)).get_PreferredSecurityLevel(@as(*const IRTCSession2, @ptrCast(self)), enSecurityType, penSecurityLevel); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRTCSession2_IsSecurityEnabled(self: *const T, enSecurityType: RTC_SECURITY_TYPE, pfSecurityEnabled: ?*i16) HRESULT { return @as(*const IRTCSession2.VTable, @ptrCast(self.vtable)).IsSecurityEnabled(@as(*const IRTCSession2, @ptrCast(self)), enSecurityType, pfSecurityEnabled); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRTCSession2_AnswerWithSessionDescription(self: *const T, bstrContentType: ?BSTR, bstrSessionDescription: ?BSTR) HRESULT { return @as(*const IRTCSession2.VTable, @ptrCast(self.vtable)).AnswerWithSessionDescription(@as(*const IRTCSession2, @ptrCast(self)), bstrContentType, bstrSessionDescription); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRTCSession2_ReInviteWithSessionDescription(self: *const T, bstrContentType: ?BSTR, bstrSessionDescription: ?BSTR, lCookie: isize) HRESULT { return @as(*const IRTCSession2.VTable, @ptrCast(self.vtable)).ReInviteWithSessionDescription(@as(*const IRTCSession2, @ptrCast(self)), bstrContentType, bstrSessionDescription, lCookie); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IRTCSessionCallControl_Value = Guid.initString("e9a50d94-190b-4f82-9530-3b8ebf60758a"); pub const IID_IRTCSessionCallControl = &IID_IRTCSessionCallControl_Value; pub const IRTCSessionCallControl = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, Hold: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IRTCSessionCallControl, lCookie: isize, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IRTCSessionCallControl, lCookie: isize, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, UnHold: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IRTCSessionCallControl, lCookie: isize, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IRTCSessionCallControl, lCookie: isize, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Forward: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IRTCSessionCallControl, bstrForwardToURI: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IRTCSessionCallControl, bstrForwardToURI: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Refer: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IRTCSessionCallControl, bstrReferToURI: ?BSTR, bstrReferCookie: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IRTCSessionCallControl, bstrReferToURI: ?BSTR, bstrReferCookie: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_ReferredByURI: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IRTCSessionCallControl, bstrReferredByURI: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IRTCSessionCallControl, bstrReferredByURI: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_ReferredByURI: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IRTCSessionCallControl, pbstrReferredByURI: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IRTCSessionCallControl, pbstrReferredByURI: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_ReferCookie: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IRTCSessionCallControl, bstrReferCookie: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IRTCSessionCallControl, bstrReferCookie: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_ReferCookie: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IRTCSessionCallControl, pbstrReferCookie: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IRTCSessionCallControl, pbstrReferCookie: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_IsReferred: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IRTCSessionCallControl, pfIsReferred: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IRTCSessionCallControl, pfIsReferred: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRTCSessionCallControl_Hold(self: *const T, lCookie: isize) HRESULT { return @as(*const IRTCSessionCallControl.VTable, @ptrCast(self.vtable)).Hold(@as(*const IRTCSessionCallControl, @ptrCast(self)), lCookie); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRTCSessionCallControl_UnHold(self: *const T, lCookie: isize) HRESULT { return @as(*const IRTCSessionCallControl.VTable, @ptrCast(self.vtable)).UnHold(@as(*const IRTCSessionCallControl, @ptrCast(self)), lCookie); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRTCSessionCallControl_Forward(self: *const T, bstrForwardToURI: ?BSTR) HRESULT { return @as(*const IRTCSessionCallControl.VTable, @ptrCast(self.vtable)).Forward(@as(*const IRTCSessionCallControl, @ptrCast(self)), bstrForwardToURI); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRTCSessionCallControl_Refer(self: *const T, bstrReferToURI: ?BSTR, bstrReferCookie: ?BSTR) HRESULT { return @as(*const IRTCSessionCallControl.VTable, @ptrCast(self.vtable)).Refer(@as(*const IRTCSessionCallControl, @ptrCast(self)), bstrReferToURI, bstrReferCookie); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRTCSessionCallControl_put_ReferredByURI(self: *const T, bstrReferredByURI: ?BSTR) HRESULT { return @as(*const IRTCSessionCallControl.VTable, @ptrCast(self.vtable)).put_ReferredByURI(@as(*const IRTCSessionCallControl, @ptrCast(self)), bstrReferredByURI); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRTCSessionCallControl_get_ReferredByURI(self: *const T, pbstrReferredByURI: ?*?BSTR) HRESULT { return @as(*const IRTCSessionCallControl.VTable, @ptrCast(self.vtable)).get_ReferredByURI(@as(*const IRTCSessionCallControl, @ptrCast(self)), pbstrReferredByURI); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRTCSessionCallControl_put_ReferCookie(self: *const T, bstrReferCookie: ?BSTR) HRESULT { return @as(*const IRTCSessionCallControl.VTable, @ptrCast(self.vtable)).put_ReferCookie(@as(*const IRTCSessionCallControl, @ptrCast(self)), bstrReferCookie); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRTCSessionCallControl_get_ReferCookie(self: *const T, pbstrReferCookie: ?*?BSTR) HRESULT { return @as(*const IRTCSessionCallControl.VTable, @ptrCast(self.vtable)).get_ReferCookie(@as(*const IRTCSessionCallControl, @ptrCast(self)), pbstrReferCookie); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRTCSessionCallControl_get_IsReferred(self: *const T, pfIsReferred: ?*i16) HRESULT { return @as(*const IRTCSessionCallControl.VTable, @ptrCast(self.vtable)).get_IsReferred(@as(*const IRTCSessionCallControl, @ptrCast(self)), pfIsReferred); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IRTCParticipant_Value = Guid.initString("ae86add5-26b1-4414-af1d-b94cd938d739"); pub const IID_IRTCParticipant = &IID_IRTCParticipant_Value; pub const IRTCParticipant = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, // TODO: this function has a "SpecialName", should Zig do anything with this? get_UserURI: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IRTCParticipant, pbstrUserURI: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IRTCParticipant, pbstrUserURI: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Name: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IRTCParticipant, pbstrName: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IRTCParticipant, pbstrName: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Removable: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IRTCParticipant, pfRemovable: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IRTCParticipant, pfRemovable: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_State: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IRTCParticipant, penState: ?*RTC_PARTICIPANT_STATE, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IRTCParticipant, penState: ?*RTC_PARTICIPANT_STATE, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Session: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IRTCParticipant, ppSession: ?*?*IRTCSession, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IRTCParticipant, ppSession: ?*?*IRTCSession, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRTCParticipant_get_UserURI(self: *const T, pbstrUserURI: ?*?BSTR) HRESULT { return @as(*const IRTCParticipant.VTable, @ptrCast(self.vtable)).get_UserURI(@as(*const IRTCParticipant, @ptrCast(self)), pbstrUserURI); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRTCParticipant_get_Name(self: *const T, pbstrName: ?*?BSTR) HRESULT { return @as(*const IRTCParticipant.VTable, @ptrCast(self.vtable)).get_Name(@as(*const IRTCParticipant, @ptrCast(self)), pbstrName); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRTCParticipant_get_Removable(self: *const T, pfRemovable: ?*i16) HRESULT { return @as(*const IRTCParticipant.VTable, @ptrCast(self.vtable)).get_Removable(@as(*const IRTCParticipant, @ptrCast(self)), pfRemovable); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRTCParticipant_get_State(self: *const T, penState: ?*RTC_PARTICIPANT_STATE) HRESULT { return @as(*const IRTCParticipant.VTable, @ptrCast(self.vtable)).get_State(@as(*const IRTCParticipant, @ptrCast(self)), penState); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRTCParticipant_get_Session(self: *const T, ppSession: ?*?*IRTCSession) HRESULT { return @as(*const IRTCParticipant.VTable, @ptrCast(self.vtable)).get_Session(@as(*const IRTCParticipant, @ptrCast(self)), ppSession); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IRTCRoamingEvent_Value = Guid.initString("79960a6b-0cb1-4dc8-a805-7318e99902e8"); pub const IID_IRTCRoamingEvent = &IID_IRTCRoamingEvent_Value; pub const IRTCRoamingEvent = extern struct { pub const VTable = extern struct { base: IDispatch.VTable, // TODO: this function has a "SpecialName", should Zig do anything with this? get_EventType: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IRTCRoamingEvent, pEventType: ?*RTC_ROAMING_EVENT_TYPE, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IRTCRoamingEvent, pEventType: ?*RTC_ROAMING_EVENT_TYPE, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Profile: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IRTCRoamingEvent, ppProfile: ?*?*IRTCProfile2, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IRTCRoamingEvent, ppProfile: ?*?*IRTCProfile2, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_StatusCode: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IRTCRoamingEvent, plStatusCode: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IRTCRoamingEvent, plStatusCode: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_StatusText: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IRTCRoamingEvent, pbstrStatusText: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IRTCRoamingEvent, pbstrStatusText: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IDispatch.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRTCRoamingEvent_get_EventType(self: *const T, pEventType: ?*RTC_ROAMING_EVENT_TYPE) HRESULT { return @as(*const IRTCRoamingEvent.VTable, @ptrCast(self.vtable)).get_EventType(@as(*const IRTCRoamingEvent, @ptrCast(self)), pEventType); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRTCRoamingEvent_get_Profile(self: *const T, ppProfile: ?*?*IRTCProfile2) HRESULT { return @as(*const IRTCRoamingEvent.VTable, @ptrCast(self.vtable)).get_Profile(@as(*const IRTCRoamingEvent, @ptrCast(self)), ppProfile); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRTCRoamingEvent_get_StatusCode(self: *const T, plStatusCode: ?*i32) HRESULT { return @as(*const IRTCRoamingEvent.VTable, @ptrCast(self.vtable)).get_StatusCode(@as(*const IRTCRoamingEvent, @ptrCast(self)), plStatusCode); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRTCRoamingEvent_get_StatusText(self: *const T, pbstrStatusText: ?*?BSTR) HRESULT { return @as(*const IRTCRoamingEvent.VTable, @ptrCast(self.vtable)).get_StatusText(@as(*const IRTCRoamingEvent, @ptrCast(self)), pbstrStatusText); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IRTCProfileEvent_Value = Guid.initString("d6d5ab3b-770e-43e8-800a-79b062395fca"); pub const IID_IRTCProfileEvent = &IID_IRTCProfileEvent_Value; pub const IRTCProfileEvent = extern struct { pub const VTable = extern struct { base: IDispatch.VTable, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Profile: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IRTCProfileEvent, ppProfile: ?*?*IRTCProfile, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IRTCProfileEvent, ppProfile: ?*?*IRTCProfile, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Cookie: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IRTCProfileEvent, plCookie: ?*isize, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IRTCProfileEvent, plCookie: ?*isize, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_StatusCode: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IRTCProfileEvent, plStatusCode: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IRTCProfileEvent, plStatusCode: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IDispatch.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRTCProfileEvent_get_Profile(self: *const T, ppProfile: ?*?*IRTCProfile) HRESULT { return @as(*const IRTCProfileEvent.VTable, @ptrCast(self.vtable)).get_Profile(@as(*const IRTCProfileEvent, @ptrCast(self)), ppProfile); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRTCProfileEvent_get_Cookie(self: *const T, plCookie: ?*isize) HRESULT { return @as(*const IRTCProfileEvent.VTable, @ptrCast(self.vtable)).get_Cookie(@as(*const IRTCProfileEvent, @ptrCast(self)), plCookie); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRTCProfileEvent_get_StatusCode(self: *const T, plStatusCode: ?*i32) HRESULT { return @as(*const IRTCProfileEvent.VTable, @ptrCast(self.vtable)).get_StatusCode(@as(*const IRTCProfileEvent, @ptrCast(self)), plStatusCode); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IRTCProfileEvent2_Value = Guid.initString("62e56edc-03fa-4121-94fb-23493fd0ae64"); pub const IID_IRTCProfileEvent2 = &IID_IRTCProfileEvent2_Value; pub const IRTCProfileEvent2 = extern struct { pub const VTable = extern struct { base: IRTCProfileEvent.VTable, // TODO: this function has a "SpecialName", should Zig do anything with this? get_EventType: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IRTCProfileEvent2, pEventType: ?*RTC_PROFILE_EVENT_TYPE, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IRTCProfileEvent2, pEventType: ?*RTC_PROFILE_EVENT_TYPE, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IRTCProfileEvent.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRTCProfileEvent2_get_EventType(self: *const T, pEventType: ?*RTC_PROFILE_EVENT_TYPE) HRESULT { return @as(*const IRTCProfileEvent2.VTable, @ptrCast(self.vtable)).get_EventType(@as(*const IRTCProfileEvent2, @ptrCast(self)), pEventType); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IRTCClientEvent_Value = Guid.initString("2b493b7a-3cba-4170-9c8b-76a9dacdd644"); pub const IID_IRTCClientEvent = &IID_IRTCClientEvent_Value; pub const IRTCClientEvent = extern struct { pub const VTable = extern struct { base: IDispatch.VTable, // TODO: this function has a "SpecialName", should Zig do anything with this? get_EventType: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IRTCClientEvent, penEventType: ?*RTC_CLIENT_EVENT_TYPE, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IRTCClientEvent, penEventType: ?*RTC_CLIENT_EVENT_TYPE, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Client: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IRTCClientEvent, ppClient: ?*?*IRTCClient, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IRTCClientEvent, ppClient: ?*?*IRTCClient, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IDispatch.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRTCClientEvent_get_EventType(self: *const T, penEventType: ?*RTC_CLIENT_EVENT_TYPE) HRESULT { return @as(*const IRTCClientEvent.VTable, @ptrCast(self.vtable)).get_EventType(@as(*const IRTCClientEvent, @ptrCast(self)), penEventType); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRTCClientEvent_get_Client(self: *const T, ppClient: ?*?*IRTCClient) HRESULT { return @as(*const IRTCClientEvent.VTable, @ptrCast(self.vtable)).get_Client(@as(*const IRTCClientEvent, @ptrCast(self)), ppClient); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IRTCRegistrationStateChangeEvent_Value = Guid.initString("62d0991b-50ab-4f02-b948-ca94f26f8f95"); pub const IID_IRTCRegistrationStateChangeEvent = &IID_IRTCRegistrationStateChangeEvent_Value; pub const IRTCRegistrationStateChangeEvent = extern struct { pub const VTable = extern struct { base: IDispatch.VTable, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Profile: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IRTCRegistrationStateChangeEvent, ppProfile: ?*?*IRTCProfile, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IRTCRegistrationStateChangeEvent, ppProfile: ?*?*IRTCProfile, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_State: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IRTCRegistrationStateChangeEvent, penState: ?*RTC_REGISTRATION_STATE, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IRTCRegistrationStateChangeEvent, penState: ?*RTC_REGISTRATION_STATE, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_StatusCode: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IRTCRegistrationStateChangeEvent, plStatusCode: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IRTCRegistrationStateChangeEvent, plStatusCode: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_StatusText: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IRTCRegistrationStateChangeEvent, pbstrStatusText: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IRTCRegistrationStateChangeEvent, pbstrStatusText: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IDispatch.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRTCRegistrationStateChangeEvent_get_Profile(self: *const T, ppProfile: ?*?*IRTCProfile) HRESULT { return @as(*const IRTCRegistrationStateChangeEvent.VTable, @ptrCast(self.vtable)).get_Profile(@as(*const IRTCRegistrationStateChangeEvent, @ptrCast(self)), ppProfile); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRTCRegistrationStateChangeEvent_get_State(self: *const T, penState: ?*RTC_REGISTRATION_STATE) HRESULT { return @as(*const IRTCRegistrationStateChangeEvent.VTable, @ptrCast(self.vtable)).get_State(@as(*const IRTCRegistrationStateChangeEvent, @ptrCast(self)), penState); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRTCRegistrationStateChangeEvent_get_StatusCode(self: *const T, plStatusCode: ?*i32) HRESULT { return @as(*const IRTCRegistrationStateChangeEvent.VTable, @ptrCast(self.vtable)).get_StatusCode(@as(*const IRTCRegistrationStateChangeEvent, @ptrCast(self)), plStatusCode); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRTCRegistrationStateChangeEvent_get_StatusText(self: *const T, pbstrStatusText: ?*?BSTR) HRESULT { return @as(*const IRTCRegistrationStateChangeEvent.VTable, @ptrCast(self.vtable)).get_StatusText(@as(*const IRTCRegistrationStateChangeEvent, @ptrCast(self)), pbstrStatusText); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IRTCSessionStateChangeEvent_Value = Guid.initString("b5bad703-5952-48b3-9321-7f4500521506"); pub const IID_IRTCSessionStateChangeEvent = &IID_IRTCSessionStateChangeEvent_Value; pub const IRTCSessionStateChangeEvent = extern struct { pub const VTable = extern struct { base: IDispatch.VTable, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Session: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IRTCSessionStateChangeEvent, ppSession: ?*?*IRTCSession, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IRTCSessionStateChangeEvent, ppSession: ?*?*IRTCSession, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_State: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IRTCSessionStateChangeEvent, penState: ?*RTC_SESSION_STATE, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IRTCSessionStateChangeEvent, penState: ?*RTC_SESSION_STATE, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_StatusCode: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IRTCSessionStateChangeEvent, plStatusCode: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IRTCSessionStateChangeEvent, plStatusCode: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_StatusText: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IRTCSessionStateChangeEvent, pbstrStatusText: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IRTCSessionStateChangeEvent, pbstrStatusText: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IDispatch.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRTCSessionStateChangeEvent_get_Session(self: *const T, ppSession: ?*?*IRTCSession) HRESULT { return @as(*const IRTCSessionStateChangeEvent.VTable, @ptrCast(self.vtable)).get_Session(@as(*const IRTCSessionStateChangeEvent, @ptrCast(self)), ppSession); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRTCSessionStateChangeEvent_get_State(self: *const T, penState: ?*RTC_SESSION_STATE) HRESULT { return @as(*const IRTCSessionStateChangeEvent.VTable, @ptrCast(self.vtable)).get_State(@as(*const IRTCSessionStateChangeEvent, @ptrCast(self)), penState); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRTCSessionStateChangeEvent_get_StatusCode(self: *const T, plStatusCode: ?*i32) HRESULT { return @as(*const IRTCSessionStateChangeEvent.VTable, @ptrCast(self.vtable)).get_StatusCode(@as(*const IRTCSessionStateChangeEvent, @ptrCast(self)), plStatusCode); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRTCSessionStateChangeEvent_get_StatusText(self: *const T, pbstrStatusText: ?*?BSTR) HRESULT { return @as(*const IRTCSessionStateChangeEvent.VTable, @ptrCast(self.vtable)).get_StatusText(@as(*const IRTCSessionStateChangeEvent, @ptrCast(self)), pbstrStatusText); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IRTCSessionStateChangeEvent2_Value = Guid.initString("4f933171-6f95-4880-80d9-2ec8d495d261"); pub const IID_IRTCSessionStateChangeEvent2 = &IID_IRTCSessionStateChangeEvent2_Value; pub const IRTCSessionStateChangeEvent2 = extern struct { pub const VTable = extern struct { base: IRTCSessionStateChangeEvent.VTable, // TODO: this function has a "SpecialName", should Zig do anything with this? get_MediaTypes: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IRTCSessionStateChangeEvent2, pMediaTypes: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IRTCSessionStateChangeEvent2, pMediaTypes: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_RemotePreferredSecurityLevel: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IRTCSessionStateChangeEvent2, enSecurityType: RTC_SECURITY_TYPE, penSecurityLevel: ?*RTC_SECURITY_LEVEL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IRTCSessionStateChangeEvent2, enSecurityType: RTC_SECURITY_TYPE, penSecurityLevel: ?*RTC_SECURITY_LEVEL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_IsForked: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IRTCSessionStateChangeEvent2, pfIsForked: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IRTCSessionStateChangeEvent2, pfIsForked: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetRemoteSessionDescription: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IRTCSessionStateChangeEvent2, pbstrContentType: ?*?BSTR, pbstrSessionDescription: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IRTCSessionStateChangeEvent2, pbstrContentType: ?*?BSTR, pbstrSessionDescription: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IRTCSessionStateChangeEvent.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRTCSessionStateChangeEvent2_get_MediaTypes(self: *const T, pMediaTypes: ?*i32) HRESULT { return @as(*const IRTCSessionStateChangeEvent2.VTable, @ptrCast(self.vtable)).get_MediaTypes(@as(*const IRTCSessionStateChangeEvent2, @ptrCast(self)), pMediaTypes); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRTCSessionStateChangeEvent2_get_RemotePreferredSecurityLevel(self: *const T, enSecurityType: RTC_SECURITY_TYPE, penSecurityLevel: ?*RTC_SECURITY_LEVEL) HRESULT { return @as(*const IRTCSessionStateChangeEvent2.VTable, @ptrCast(self.vtable)).get_RemotePreferredSecurityLevel(@as(*const IRTCSessionStateChangeEvent2, @ptrCast(self)), enSecurityType, penSecurityLevel); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRTCSessionStateChangeEvent2_get_IsForked(self: *const T, pfIsForked: ?*i16) HRESULT { return @as(*const IRTCSessionStateChangeEvent2.VTable, @ptrCast(self.vtable)).get_IsForked(@as(*const IRTCSessionStateChangeEvent2, @ptrCast(self)), pfIsForked); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRTCSessionStateChangeEvent2_GetRemoteSessionDescription(self: *const T, pbstrContentType: ?*?BSTR, pbstrSessionDescription: ?*?BSTR) HRESULT { return @as(*const IRTCSessionStateChangeEvent2.VTable, @ptrCast(self.vtable)).GetRemoteSessionDescription(@as(*const IRTCSessionStateChangeEvent2, @ptrCast(self)), pbstrContentType, pbstrSessionDescription); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IRTCSessionOperationCompleteEvent_Value = Guid.initString("a6bff4c0-f7c8-4d3c-9a41-3550f78a95b0"); pub const IID_IRTCSessionOperationCompleteEvent = &IID_IRTCSessionOperationCompleteEvent_Value; pub const IRTCSessionOperationCompleteEvent = extern struct { pub const VTable = extern struct { base: IDispatch.VTable, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Session: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IRTCSessionOperationCompleteEvent, ppSession: ?*?*IRTCSession, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IRTCSessionOperationCompleteEvent, ppSession: ?*?*IRTCSession, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Cookie: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IRTCSessionOperationCompleteEvent, plCookie: ?*isize, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IRTCSessionOperationCompleteEvent, plCookie: ?*isize, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_StatusCode: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IRTCSessionOperationCompleteEvent, plStatusCode: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IRTCSessionOperationCompleteEvent, plStatusCode: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_StatusText: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IRTCSessionOperationCompleteEvent, pbstrStatusText: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IRTCSessionOperationCompleteEvent, pbstrStatusText: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IDispatch.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRTCSessionOperationCompleteEvent_get_Session(self: *const T, ppSession: ?*?*IRTCSession) HRESULT { return @as(*const IRTCSessionOperationCompleteEvent.VTable, @ptrCast(self.vtable)).get_Session(@as(*const IRTCSessionOperationCompleteEvent, @ptrCast(self)), ppSession); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRTCSessionOperationCompleteEvent_get_Cookie(self: *const T, plCookie: ?*isize) HRESULT { return @as(*const IRTCSessionOperationCompleteEvent.VTable, @ptrCast(self.vtable)).get_Cookie(@as(*const IRTCSessionOperationCompleteEvent, @ptrCast(self)), plCookie); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRTCSessionOperationCompleteEvent_get_StatusCode(self: *const T, plStatusCode: ?*i32) HRESULT { return @as(*const IRTCSessionOperationCompleteEvent.VTable, @ptrCast(self.vtable)).get_StatusCode(@as(*const IRTCSessionOperationCompleteEvent, @ptrCast(self)), plStatusCode); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRTCSessionOperationCompleteEvent_get_StatusText(self: *const T, pbstrStatusText: ?*?BSTR) HRESULT { return @as(*const IRTCSessionOperationCompleteEvent.VTable, @ptrCast(self.vtable)).get_StatusText(@as(*const IRTCSessionOperationCompleteEvent, @ptrCast(self)), pbstrStatusText); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IRTCSessionOperationCompleteEvent2_Value = Guid.initString("f6fc2a9b-d5bc-4241-b436-1b8460c13832"); pub const IID_IRTCSessionOperationCompleteEvent2 = &IID_IRTCSessionOperationCompleteEvent2_Value; pub const IRTCSessionOperationCompleteEvent2 = extern struct { pub const VTable = extern struct { base: IRTCSessionOperationCompleteEvent.VTable, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Participant: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IRTCSessionOperationCompleteEvent2, ppParticipant: ?*?*IRTCParticipant, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IRTCSessionOperationCompleteEvent2, ppParticipant: ?*?*IRTCParticipant, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetRemoteSessionDescription: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IRTCSessionOperationCompleteEvent2, pbstrContentType: ?*?BSTR, pbstrSessionDescription: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IRTCSessionOperationCompleteEvent2, pbstrContentType: ?*?BSTR, pbstrSessionDescription: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IRTCSessionOperationCompleteEvent.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRTCSessionOperationCompleteEvent2_get_Participant(self: *const T, ppParticipant: ?*?*IRTCParticipant) HRESULT { return @as(*const IRTCSessionOperationCompleteEvent2.VTable, @ptrCast(self.vtable)).get_Participant(@as(*const IRTCSessionOperationCompleteEvent2, @ptrCast(self)), ppParticipant); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRTCSessionOperationCompleteEvent2_GetRemoteSessionDescription(self: *const T, pbstrContentType: ?*?BSTR, pbstrSessionDescription: ?*?BSTR) HRESULT { return @as(*const IRTCSessionOperationCompleteEvent2.VTable, @ptrCast(self.vtable)).GetRemoteSessionDescription(@as(*const IRTCSessionOperationCompleteEvent2, @ptrCast(self)), pbstrContentType, pbstrSessionDescription); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IRTCParticipantStateChangeEvent_Value = Guid.initString("09bcb597-f0fa-48f9-b420-468cea7fde04"); pub const IID_IRTCParticipantStateChangeEvent = &IID_IRTCParticipantStateChangeEvent_Value; pub const IRTCParticipantStateChangeEvent = extern struct { pub const VTable = extern struct { base: IDispatch.VTable, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Participant: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IRTCParticipantStateChangeEvent, ppParticipant: ?*?*IRTCParticipant, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IRTCParticipantStateChangeEvent, ppParticipant: ?*?*IRTCParticipant, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_State: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IRTCParticipantStateChangeEvent, penState: ?*RTC_PARTICIPANT_STATE, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IRTCParticipantStateChangeEvent, penState: ?*RTC_PARTICIPANT_STATE, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_StatusCode: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IRTCParticipantStateChangeEvent, plStatusCode: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IRTCParticipantStateChangeEvent, plStatusCode: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IDispatch.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRTCParticipantStateChangeEvent_get_Participant(self: *const T, ppParticipant: ?*?*IRTCParticipant) HRESULT { return @as(*const IRTCParticipantStateChangeEvent.VTable, @ptrCast(self.vtable)).get_Participant(@as(*const IRTCParticipantStateChangeEvent, @ptrCast(self)), ppParticipant); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRTCParticipantStateChangeEvent_get_State(self: *const T, penState: ?*RTC_PARTICIPANT_STATE) HRESULT { return @as(*const IRTCParticipantStateChangeEvent.VTable, @ptrCast(self.vtable)).get_State(@as(*const IRTCParticipantStateChangeEvent, @ptrCast(self)), penState); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRTCParticipantStateChangeEvent_get_StatusCode(self: *const T, plStatusCode: ?*i32) HRESULT { return @as(*const IRTCParticipantStateChangeEvent.VTable, @ptrCast(self.vtable)).get_StatusCode(@as(*const IRTCParticipantStateChangeEvent, @ptrCast(self)), plStatusCode); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IRTCMediaEvent_Value = Guid.initString("099944fb-bcda-453e-8c41-e13da2adf7f3"); pub const IID_IRTCMediaEvent = &IID_IRTCMediaEvent_Value; pub const IRTCMediaEvent = extern struct { pub const VTable = extern struct { base: IDispatch.VTable, // TODO: this function has a "SpecialName", should Zig do anything with this? get_MediaType: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IRTCMediaEvent, pMediaType: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IRTCMediaEvent, pMediaType: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_EventType: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IRTCMediaEvent, penEventType: ?*RTC_MEDIA_EVENT_TYPE, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IRTCMediaEvent, penEventType: ?*RTC_MEDIA_EVENT_TYPE, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_EventReason: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IRTCMediaEvent, penEventReason: ?*RTC_MEDIA_EVENT_REASON, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IRTCMediaEvent, penEventReason: ?*RTC_MEDIA_EVENT_REASON, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IDispatch.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRTCMediaEvent_get_MediaType(self: *const T, pMediaType: ?*i32) HRESULT { return @as(*const IRTCMediaEvent.VTable, @ptrCast(self.vtable)).get_MediaType(@as(*const IRTCMediaEvent, @ptrCast(self)), pMediaType); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRTCMediaEvent_get_EventType(self: *const T, penEventType: ?*RTC_MEDIA_EVENT_TYPE) HRESULT { return @as(*const IRTCMediaEvent.VTable, @ptrCast(self.vtable)).get_EventType(@as(*const IRTCMediaEvent, @ptrCast(self)), penEventType); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRTCMediaEvent_get_EventReason(self: *const T, penEventReason: ?*RTC_MEDIA_EVENT_REASON) HRESULT { return @as(*const IRTCMediaEvent.VTable, @ptrCast(self.vtable)).get_EventReason(@as(*const IRTCMediaEvent, @ptrCast(self)), penEventReason); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IRTCIntensityEvent_Value = Guid.initString("4c23bf51-390c-4992-a41d-41eec05b2a4b"); pub const IID_IRTCIntensityEvent = &IID_IRTCIntensityEvent_Value; pub const IRTCIntensityEvent = extern struct { pub const VTable = extern struct { base: IDispatch.VTable, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Level: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IRTCIntensityEvent, plLevel: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IRTCIntensityEvent, plLevel: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Min: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IRTCIntensityEvent, plMin: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IRTCIntensityEvent, plMin: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Max: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IRTCIntensityEvent, plMax: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IRTCIntensityEvent, plMax: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Direction: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IRTCIntensityEvent, penDirection: ?*RTC_AUDIO_DEVICE, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IRTCIntensityEvent, penDirection: ?*RTC_AUDIO_DEVICE, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IDispatch.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRTCIntensityEvent_get_Level(self: *const T, plLevel: ?*i32) HRESULT { return @as(*const IRTCIntensityEvent.VTable, @ptrCast(self.vtable)).get_Level(@as(*const IRTCIntensityEvent, @ptrCast(self)), plLevel); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRTCIntensityEvent_get_Min(self: *const T, plMin: ?*i32) HRESULT { return @as(*const IRTCIntensityEvent.VTable, @ptrCast(self.vtable)).get_Min(@as(*const IRTCIntensityEvent, @ptrCast(self)), plMin); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRTCIntensityEvent_get_Max(self: *const T, plMax: ?*i32) HRESULT { return @as(*const IRTCIntensityEvent.VTable, @ptrCast(self.vtable)).get_Max(@as(*const IRTCIntensityEvent, @ptrCast(self)), plMax); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRTCIntensityEvent_get_Direction(self: *const T, penDirection: ?*RTC_AUDIO_DEVICE) HRESULT { return @as(*const IRTCIntensityEvent.VTable, @ptrCast(self.vtable)).get_Direction(@as(*const IRTCIntensityEvent, @ptrCast(self)), penDirection); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IRTCMessagingEvent_Value = Guid.initString("d3609541-1b29-4de5-a4ad-5aebaf319512"); pub const IID_IRTCMessagingEvent = &IID_IRTCMessagingEvent_Value; pub const IRTCMessagingEvent = extern struct { pub const VTable = extern struct { base: IDispatch.VTable, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Session: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IRTCMessagingEvent, ppSession: ?*?*IRTCSession, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IRTCMessagingEvent, ppSession: ?*?*IRTCSession, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Participant: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IRTCMessagingEvent, ppParticipant: ?*?*IRTCParticipant, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IRTCMessagingEvent, ppParticipant: ?*?*IRTCParticipant, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_EventType: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IRTCMessagingEvent, penEventType: ?*RTC_MESSAGING_EVENT_TYPE, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IRTCMessagingEvent, penEventType: ?*RTC_MESSAGING_EVENT_TYPE, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Message: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IRTCMessagingEvent, pbstrMessage: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IRTCMessagingEvent, pbstrMessage: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_MessageHeader: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IRTCMessagingEvent, pbstrMessageHeader: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IRTCMessagingEvent, pbstrMessageHeader: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_UserStatus: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IRTCMessagingEvent, penUserStatus: ?*RTC_MESSAGING_USER_STATUS, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IRTCMessagingEvent, penUserStatus: ?*RTC_MESSAGING_USER_STATUS, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IDispatch.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRTCMessagingEvent_get_Session(self: *const T, ppSession: ?*?*IRTCSession) HRESULT { return @as(*const IRTCMessagingEvent.VTable, @ptrCast(self.vtable)).get_Session(@as(*const IRTCMessagingEvent, @ptrCast(self)), ppSession); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRTCMessagingEvent_get_Participant(self: *const T, ppParticipant: ?*?*IRTCParticipant) HRESULT { return @as(*const IRTCMessagingEvent.VTable, @ptrCast(self.vtable)).get_Participant(@as(*const IRTCMessagingEvent, @ptrCast(self)), ppParticipant); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRTCMessagingEvent_get_EventType(self: *const T, penEventType: ?*RTC_MESSAGING_EVENT_TYPE) HRESULT { return @as(*const IRTCMessagingEvent.VTable, @ptrCast(self.vtable)).get_EventType(@as(*const IRTCMessagingEvent, @ptrCast(self)), penEventType); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRTCMessagingEvent_get_Message(self: *const T, pbstrMessage: ?*?BSTR) HRESULT { return @as(*const IRTCMessagingEvent.VTable, @ptrCast(self.vtable)).get_Message(@as(*const IRTCMessagingEvent, @ptrCast(self)), pbstrMessage); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRTCMessagingEvent_get_MessageHeader(self: *const T, pbstrMessageHeader: ?*?BSTR) HRESULT { return @as(*const IRTCMessagingEvent.VTable, @ptrCast(self.vtable)).get_MessageHeader(@as(*const IRTCMessagingEvent, @ptrCast(self)), pbstrMessageHeader); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRTCMessagingEvent_get_UserStatus(self: *const T, penUserStatus: ?*RTC_MESSAGING_USER_STATUS) HRESULT { return @as(*const IRTCMessagingEvent.VTable, @ptrCast(self.vtable)).get_UserStatus(@as(*const IRTCMessagingEvent, @ptrCast(self)), penUserStatus); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IRTCBuddyEvent_Value = Guid.initString("f36d755d-17e6-404e-954f-0fc07574c78d"); pub const IID_IRTCBuddyEvent = &IID_IRTCBuddyEvent_Value; pub const IRTCBuddyEvent = extern struct { pub const VTable = extern struct { base: IDispatch.VTable, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Buddy: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IRTCBuddyEvent, ppBuddy: ?*?*IRTCBuddy, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IRTCBuddyEvent, ppBuddy: ?*?*IRTCBuddy, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IDispatch.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRTCBuddyEvent_get_Buddy(self: *const T, ppBuddy: ?*?*IRTCBuddy) HRESULT { return @as(*const IRTCBuddyEvent.VTable, @ptrCast(self.vtable)).get_Buddy(@as(*const IRTCBuddyEvent, @ptrCast(self)), ppBuddy); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IRTCBuddyEvent2_Value = Guid.initString("484a7f1e-73f0-4990-bfc2-60bc3978a720"); pub const IID_IRTCBuddyEvent2 = &IID_IRTCBuddyEvent2_Value; pub const IRTCBuddyEvent2 = extern struct { pub const VTable = extern struct { base: IRTCBuddyEvent.VTable, // TODO: this function has a "SpecialName", should Zig do anything with this? get_EventType: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IRTCBuddyEvent2, pEventType: ?*RTC_BUDDY_EVENT_TYPE, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IRTCBuddyEvent2, pEventType: ?*RTC_BUDDY_EVENT_TYPE, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_StatusCode: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IRTCBuddyEvent2, plStatusCode: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IRTCBuddyEvent2, plStatusCode: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_StatusText: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IRTCBuddyEvent2, pbstrStatusText: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IRTCBuddyEvent2, pbstrStatusText: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IRTCBuddyEvent.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRTCBuddyEvent2_get_EventType(self: *const T, pEventType: ?*RTC_BUDDY_EVENT_TYPE) HRESULT { return @as(*const IRTCBuddyEvent2.VTable, @ptrCast(self.vtable)).get_EventType(@as(*const IRTCBuddyEvent2, @ptrCast(self)), pEventType); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRTCBuddyEvent2_get_StatusCode(self: *const T, plStatusCode: ?*i32) HRESULT { return @as(*const IRTCBuddyEvent2.VTable, @ptrCast(self.vtable)).get_StatusCode(@as(*const IRTCBuddyEvent2, @ptrCast(self)), plStatusCode); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRTCBuddyEvent2_get_StatusText(self: *const T, pbstrStatusText: ?*?BSTR) HRESULT { return @as(*const IRTCBuddyEvent2.VTable, @ptrCast(self.vtable)).get_StatusText(@as(*const IRTCBuddyEvent2, @ptrCast(self)), pbstrStatusText); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IRTCWatcherEvent_Value = Guid.initString("f30d7261-587a-424f-822c-312788f43548"); pub const IID_IRTCWatcherEvent = &IID_IRTCWatcherEvent_Value; pub const IRTCWatcherEvent = extern struct { pub const VTable = extern struct { base: IDispatch.VTable, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Watcher: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IRTCWatcherEvent, ppWatcher: ?*?*IRTCWatcher, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IRTCWatcherEvent, ppWatcher: ?*?*IRTCWatcher, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IDispatch.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRTCWatcherEvent_get_Watcher(self: *const T, ppWatcher: ?*?*IRTCWatcher) HRESULT { return @as(*const IRTCWatcherEvent.VTable, @ptrCast(self.vtable)).get_Watcher(@as(*const IRTCWatcherEvent, @ptrCast(self)), ppWatcher); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IRTCWatcherEvent2_Value = Guid.initString("e52891e8-188c-49af-b005-98ed13f83f9c"); pub const IID_IRTCWatcherEvent2 = &IID_IRTCWatcherEvent2_Value; pub const IRTCWatcherEvent2 = extern struct { pub const VTable = extern struct { base: IRTCWatcherEvent.VTable, // TODO: this function has a "SpecialName", should Zig do anything with this? get_EventType: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IRTCWatcherEvent2, pEventType: ?*RTC_WATCHER_EVENT_TYPE, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IRTCWatcherEvent2, pEventType: ?*RTC_WATCHER_EVENT_TYPE, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_StatusCode: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IRTCWatcherEvent2, plStatusCode: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IRTCWatcherEvent2, plStatusCode: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IRTCWatcherEvent.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRTCWatcherEvent2_get_EventType(self: *const T, pEventType: ?*RTC_WATCHER_EVENT_TYPE) HRESULT { return @as(*const IRTCWatcherEvent2.VTable, @ptrCast(self.vtable)).get_EventType(@as(*const IRTCWatcherEvent2, @ptrCast(self)), pEventType); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRTCWatcherEvent2_get_StatusCode(self: *const T, plStatusCode: ?*i32) HRESULT { return @as(*const IRTCWatcherEvent2.VTable, @ptrCast(self.vtable)).get_StatusCode(@as(*const IRTCWatcherEvent2, @ptrCast(self)), plStatusCode); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IRTCBuddyGroupEvent_Value = Guid.initString("3a79e1d1-b736-4414-96f8-bbc7f08863e4"); pub const IID_IRTCBuddyGroupEvent = &IID_IRTCBuddyGroupEvent_Value; pub const IRTCBuddyGroupEvent = extern struct { pub const VTable = extern struct { base: IDispatch.VTable, // TODO: this function has a "SpecialName", should Zig do anything with this? get_EventType: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IRTCBuddyGroupEvent, pEventType: ?*RTC_GROUP_EVENT_TYPE, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IRTCBuddyGroupEvent, pEventType: ?*RTC_GROUP_EVENT_TYPE, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Group: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IRTCBuddyGroupEvent, ppGroup: ?*?*IRTCBuddyGroup, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IRTCBuddyGroupEvent, ppGroup: ?*?*IRTCBuddyGroup, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Buddy: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IRTCBuddyGroupEvent, ppBuddy: ?*?*IRTCBuddy2, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IRTCBuddyGroupEvent, ppBuddy: ?*?*IRTCBuddy2, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_StatusCode: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IRTCBuddyGroupEvent, plStatusCode: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IRTCBuddyGroupEvent, plStatusCode: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IDispatch.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRTCBuddyGroupEvent_get_EventType(self: *const T, pEventType: ?*RTC_GROUP_EVENT_TYPE) HRESULT { return @as(*const IRTCBuddyGroupEvent.VTable, @ptrCast(self.vtable)).get_EventType(@as(*const IRTCBuddyGroupEvent, @ptrCast(self)), pEventType); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRTCBuddyGroupEvent_get_Group(self: *const T, ppGroup: ?*?*IRTCBuddyGroup) HRESULT { return @as(*const IRTCBuddyGroupEvent.VTable, @ptrCast(self.vtable)).get_Group(@as(*const IRTCBuddyGroupEvent, @ptrCast(self)), ppGroup); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRTCBuddyGroupEvent_get_Buddy(self: *const T, ppBuddy: ?*?*IRTCBuddy2) HRESULT { return @as(*const IRTCBuddyGroupEvent.VTable, @ptrCast(self.vtable)).get_Buddy(@as(*const IRTCBuddyGroupEvent, @ptrCast(self)), ppBuddy); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRTCBuddyGroupEvent_get_StatusCode(self: *const T, plStatusCode: ?*i32) HRESULT { return @as(*const IRTCBuddyGroupEvent.VTable, @ptrCast(self.vtable)).get_StatusCode(@as(*const IRTCBuddyGroupEvent, @ptrCast(self)), plStatusCode); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IRTCInfoEvent_Value = Guid.initString("4e1d68ae-1912-4f49-b2c3-594fadfd425f"); pub const IID_IRTCInfoEvent = &IID_IRTCInfoEvent_Value; pub const IRTCInfoEvent = extern struct { pub const VTable = extern struct { base: IDispatch.VTable, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Session: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IRTCInfoEvent, ppSession: ?*?*IRTCSession2, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IRTCInfoEvent, ppSession: ?*?*IRTCSession2, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Participant: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IRTCInfoEvent, ppParticipant: ?*?*IRTCParticipant, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IRTCInfoEvent, ppParticipant: ?*?*IRTCParticipant, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Info: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IRTCInfoEvent, pbstrInfo: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IRTCInfoEvent, pbstrInfo: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_InfoHeader: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IRTCInfoEvent, pbstrInfoHeader: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IRTCInfoEvent, pbstrInfoHeader: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IDispatch.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRTCInfoEvent_get_Session(self: *const T, ppSession: ?*?*IRTCSession2) HRESULT { return @as(*const IRTCInfoEvent.VTable, @ptrCast(self.vtable)).get_Session(@as(*const IRTCInfoEvent, @ptrCast(self)), ppSession); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRTCInfoEvent_get_Participant(self: *const T, ppParticipant: ?*?*IRTCParticipant) HRESULT { return @as(*const IRTCInfoEvent.VTable, @ptrCast(self.vtable)).get_Participant(@as(*const IRTCInfoEvent, @ptrCast(self)), ppParticipant); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRTCInfoEvent_get_Info(self: *const T, pbstrInfo: ?*?BSTR) HRESULT { return @as(*const IRTCInfoEvent.VTable, @ptrCast(self.vtable)).get_Info(@as(*const IRTCInfoEvent, @ptrCast(self)), pbstrInfo); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRTCInfoEvent_get_InfoHeader(self: *const T, pbstrInfoHeader: ?*?BSTR) HRESULT { return @as(*const IRTCInfoEvent.VTable, @ptrCast(self.vtable)).get_InfoHeader(@as(*const IRTCInfoEvent, @ptrCast(self)), pbstrInfoHeader); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IRTCMediaRequestEvent_Value = Guid.initString("52572d15-148c-4d97-a36c-2da55c289d63"); pub const IID_IRTCMediaRequestEvent = &IID_IRTCMediaRequestEvent_Value; pub const IRTCMediaRequestEvent = extern struct { pub const VTable = extern struct { base: IDispatch.VTable, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Session: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IRTCMediaRequestEvent, ppSession: ?*?*IRTCSession2, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IRTCMediaRequestEvent, ppSession: ?*?*IRTCSession2, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_ProposedMedia: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IRTCMediaRequestEvent, plMediaTypes: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IRTCMediaRequestEvent, plMediaTypes: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_CurrentMedia: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IRTCMediaRequestEvent, plMediaTypes: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IRTCMediaRequestEvent, plMediaTypes: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Accept: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IRTCMediaRequestEvent, lMediaTypes: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IRTCMediaRequestEvent, lMediaTypes: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_RemotePreferredSecurityLevel: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IRTCMediaRequestEvent, enSecurityType: RTC_SECURITY_TYPE, penSecurityLevel: ?*RTC_SECURITY_LEVEL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IRTCMediaRequestEvent, enSecurityType: RTC_SECURITY_TYPE, penSecurityLevel: ?*RTC_SECURITY_LEVEL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Reject: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IRTCMediaRequestEvent, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IRTCMediaRequestEvent, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_State: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IRTCMediaRequestEvent, pState: ?*RTC_REINVITE_STATE, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IRTCMediaRequestEvent, pState: ?*RTC_REINVITE_STATE, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IDispatch.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRTCMediaRequestEvent_get_Session(self: *const T, ppSession: ?*?*IRTCSession2) HRESULT { return @as(*const IRTCMediaRequestEvent.VTable, @ptrCast(self.vtable)).get_Session(@as(*const IRTCMediaRequestEvent, @ptrCast(self)), ppSession); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRTCMediaRequestEvent_get_ProposedMedia(self: *const T, plMediaTypes: ?*i32) HRESULT { return @as(*const IRTCMediaRequestEvent.VTable, @ptrCast(self.vtable)).get_ProposedMedia(@as(*const IRTCMediaRequestEvent, @ptrCast(self)), plMediaTypes); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRTCMediaRequestEvent_get_CurrentMedia(self: *const T, plMediaTypes: ?*i32) HRESULT { return @as(*const IRTCMediaRequestEvent.VTable, @ptrCast(self.vtable)).get_CurrentMedia(@as(*const IRTCMediaRequestEvent, @ptrCast(self)), plMediaTypes); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRTCMediaRequestEvent_Accept(self: *const T, lMediaTypes: i32) HRESULT { return @as(*const IRTCMediaRequestEvent.VTable, @ptrCast(self.vtable)).Accept(@as(*const IRTCMediaRequestEvent, @ptrCast(self)), lMediaTypes); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRTCMediaRequestEvent_get_RemotePreferredSecurityLevel(self: *const T, enSecurityType: RTC_SECURITY_TYPE, penSecurityLevel: ?*RTC_SECURITY_LEVEL) HRESULT { return @as(*const IRTCMediaRequestEvent.VTable, @ptrCast(self.vtable)).get_RemotePreferredSecurityLevel(@as(*const IRTCMediaRequestEvent, @ptrCast(self)), enSecurityType, penSecurityLevel); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRTCMediaRequestEvent_Reject(self: *const T) HRESULT { return @as(*const IRTCMediaRequestEvent.VTable, @ptrCast(self.vtable)).Reject(@as(*const IRTCMediaRequestEvent, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRTCMediaRequestEvent_get_State(self: *const T, pState: ?*RTC_REINVITE_STATE) HRESULT { return @as(*const IRTCMediaRequestEvent.VTable, @ptrCast(self.vtable)).get_State(@as(*const IRTCMediaRequestEvent, @ptrCast(self)), pState); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IRTCReInviteEvent_Value = Guid.initString("11558d84-204c-43e7-99b0-2034e9417f7d"); pub const IID_IRTCReInviteEvent = &IID_IRTCReInviteEvent_Value; pub const IRTCReInviteEvent = extern struct { pub const VTable = extern struct { base: IDispatch.VTable, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Session: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IRTCReInviteEvent, ppSession2: ?*?*IRTCSession2, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IRTCReInviteEvent, ppSession2: ?*?*IRTCSession2, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Accept: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IRTCReInviteEvent, bstrContentType: ?BSTR, bstrSessionDescription: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IRTCReInviteEvent, bstrContentType: ?BSTR, bstrSessionDescription: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Reject: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IRTCReInviteEvent, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IRTCReInviteEvent, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_State: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IRTCReInviteEvent, pState: ?*RTC_REINVITE_STATE, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IRTCReInviteEvent, pState: ?*RTC_REINVITE_STATE, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetRemoteSessionDescription: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IRTCReInviteEvent, pbstrContentType: ?*?BSTR, pbstrSessionDescription: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IRTCReInviteEvent, pbstrContentType: ?*?BSTR, pbstrSessionDescription: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IDispatch.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRTCReInviteEvent_get_Session(self: *const T, ppSession2: ?*?*IRTCSession2) HRESULT { return @as(*const IRTCReInviteEvent.VTable, @ptrCast(self.vtable)).get_Session(@as(*const IRTCReInviteEvent, @ptrCast(self)), ppSession2); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRTCReInviteEvent_Accept(self: *const T, bstrContentType: ?BSTR, bstrSessionDescription: ?BSTR) HRESULT { return @as(*const IRTCReInviteEvent.VTable, @ptrCast(self.vtable)).Accept(@as(*const IRTCReInviteEvent, @ptrCast(self)), bstrContentType, bstrSessionDescription); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRTCReInviteEvent_Reject(self: *const T) HRESULT { return @as(*const IRTCReInviteEvent.VTable, @ptrCast(self.vtable)).Reject(@as(*const IRTCReInviteEvent, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRTCReInviteEvent_get_State(self: *const T, pState: ?*RTC_REINVITE_STATE) HRESULT { return @as(*const IRTCReInviteEvent.VTable, @ptrCast(self.vtable)).get_State(@as(*const IRTCReInviteEvent, @ptrCast(self)), pState); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRTCReInviteEvent_GetRemoteSessionDescription(self: *const T, pbstrContentType: ?*?BSTR, pbstrSessionDescription: ?*?BSTR) HRESULT { return @as(*const IRTCReInviteEvent.VTable, @ptrCast(self.vtable)).GetRemoteSessionDescription(@as(*const IRTCReInviteEvent, @ptrCast(self)), pbstrContentType, pbstrSessionDescription); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IRTCPresencePropertyEvent_Value = Guid.initString("f777f570-a820-49d5-86bd-e099493f1518"); pub const IID_IRTCPresencePropertyEvent = &IID_IRTCPresencePropertyEvent_Value; pub const IRTCPresencePropertyEvent = extern struct { pub const VTable = extern struct { base: IDispatch.VTable, // TODO: this function has a "SpecialName", should Zig do anything with this? get_StatusCode: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IRTCPresencePropertyEvent, plStatusCode: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IRTCPresencePropertyEvent, plStatusCode: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_StatusText: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IRTCPresencePropertyEvent, pbstrStatusText: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IRTCPresencePropertyEvent, pbstrStatusText: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_PresenceProperty: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IRTCPresencePropertyEvent, penPresProp: ?*RTC_PRESENCE_PROPERTY, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IRTCPresencePropertyEvent, penPresProp: ?*RTC_PRESENCE_PROPERTY, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Value: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IRTCPresencePropertyEvent, pbstrValue: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IRTCPresencePropertyEvent, pbstrValue: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IDispatch.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRTCPresencePropertyEvent_get_StatusCode(self: *const T, plStatusCode: ?*i32) HRESULT { return @as(*const IRTCPresencePropertyEvent.VTable, @ptrCast(self.vtable)).get_StatusCode(@as(*const IRTCPresencePropertyEvent, @ptrCast(self)), plStatusCode); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRTCPresencePropertyEvent_get_StatusText(self: *const T, pbstrStatusText: ?*?BSTR) HRESULT { return @as(*const IRTCPresencePropertyEvent.VTable, @ptrCast(self.vtable)).get_StatusText(@as(*const IRTCPresencePropertyEvent, @ptrCast(self)), pbstrStatusText); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRTCPresencePropertyEvent_get_PresenceProperty(self: *const T, penPresProp: ?*RTC_PRESENCE_PROPERTY) HRESULT { return @as(*const IRTCPresencePropertyEvent.VTable, @ptrCast(self.vtable)).get_PresenceProperty(@as(*const IRTCPresencePropertyEvent, @ptrCast(self)), penPresProp); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRTCPresencePropertyEvent_get_Value(self: *const T, pbstrValue: ?*?BSTR) HRESULT { return @as(*const IRTCPresencePropertyEvent.VTable, @ptrCast(self.vtable)).get_Value(@as(*const IRTCPresencePropertyEvent, @ptrCast(self)), pbstrValue); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IRTCPresenceDataEvent_Value = Guid.initString("38f0e78c-8b87-4c04-a82d-aedd83c909bb"); pub const IID_IRTCPresenceDataEvent = &IID_IRTCPresenceDataEvent_Value; pub const IRTCPresenceDataEvent = extern struct { pub const VTable = extern struct { base: IDispatch.VTable, // TODO: this function has a "SpecialName", should Zig do anything with this? get_StatusCode: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IRTCPresenceDataEvent, plStatusCode: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IRTCPresenceDataEvent, plStatusCode: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_StatusText: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IRTCPresenceDataEvent, pbstrStatusText: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IRTCPresenceDataEvent, pbstrStatusText: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetPresenceData: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IRTCPresenceDataEvent, pbstrNamespace: ?*?BSTR, pbstrData: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IRTCPresenceDataEvent, pbstrNamespace: ?*?BSTR, pbstrData: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IDispatch.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRTCPresenceDataEvent_get_StatusCode(self: *const T, plStatusCode: ?*i32) HRESULT { return @as(*const IRTCPresenceDataEvent.VTable, @ptrCast(self.vtable)).get_StatusCode(@as(*const IRTCPresenceDataEvent, @ptrCast(self)), plStatusCode); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRTCPresenceDataEvent_get_StatusText(self: *const T, pbstrStatusText: ?*?BSTR) HRESULT { return @as(*const IRTCPresenceDataEvent.VTable, @ptrCast(self.vtable)).get_StatusText(@as(*const IRTCPresenceDataEvent, @ptrCast(self)), pbstrStatusText); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRTCPresenceDataEvent_GetPresenceData(self: *const T, pbstrNamespace: ?*?BSTR, pbstrData: ?*?BSTR) HRESULT { return @as(*const IRTCPresenceDataEvent.VTable, @ptrCast(self.vtable)).GetPresenceData(@as(*const IRTCPresenceDataEvent, @ptrCast(self)), pbstrNamespace, pbstrData); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IRTCPresenceStatusEvent_Value = Guid.initString("78673f32-4a0f-462c-89aa-ee7706707678"); pub const IID_IRTCPresenceStatusEvent = &IID_IRTCPresenceStatusEvent_Value; pub const IRTCPresenceStatusEvent = extern struct { pub const VTable = extern struct { base: IDispatch.VTable, // TODO: this function has a "SpecialName", should Zig do anything with this? get_StatusCode: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IRTCPresenceStatusEvent, plStatusCode: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IRTCPresenceStatusEvent, plStatusCode: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_StatusText: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IRTCPresenceStatusEvent, pbstrStatusText: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IRTCPresenceStatusEvent, pbstrStatusText: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetLocalPresenceInfo: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IRTCPresenceStatusEvent, penStatus: ?*RTC_PRESENCE_STATUS, pbstrNotes: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IRTCPresenceStatusEvent, penStatus: ?*RTC_PRESENCE_STATUS, pbstrNotes: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IDispatch.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRTCPresenceStatusEvent_get_StatusCode(self: *const T, plStatusCode: ?*i32) HRESULT { return @as(*const IRTCPresenceStatusEvent.VTable, @ptrCast(self.vtable)).get_StatusCode(@as(*const IRTCPresenceStatusEvent, @ptrCast(self)), plStatusCode); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRTCPresenceStatusEvent_get_StatusText(self: *const T, pbstrStatusText: ?*?BSTR) HRESULT { return @as(*const IRTCPresenceStatusEvent.VTable, @ptrCast(self.vtable)).get_StatusText(@as(*const IRTCPresenceStatusEvent, @ptrCast(self)), pbstrStatusText); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRTCPresenceStatusEvent_GetLocalPresenceInfo(self: *const T, penStatus: ?*RTC_PRESENCE_STATUS, pbstrNotes: ?*?BSTR) HRESULT { return @as(*const IRTCPresenceStatusEvent.VTable, @ptrCast(self.vtable)).GetLocalPresenceInfo(@as(*const IRTCPresenceStatusEvent, @ptrCast(self)), penStatus, pbstrNotes); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IRTCCollection_Value = Guid.initString("ec7c8096-b918-4044-94f1-e4fba0361d5c"); pub const IID_IRTCCollection = &IID_IRTCCollection_Value; pub const IRTCCollection = extern struct { pub const VTable = extern struct { base: IDispatch.VTable, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Count: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IRTCCollection, lCount: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IRTCCollection, lCount: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Item: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IRTCCollection, Index: i32, pVariant: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IRTCCollection, Index: i32, pVariant: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get__NewEnum: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IRTCCollection, ppNewEnum: ?*?*IUnknown, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IRTCCollection, ppNewEnum: ?*?*IUnknown, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IDispatch.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRTCCollection_get_Count(self: *const T, lCount: ?*i32) HRESULT { return @as(*const IRTCCollection.VTable, @ptrCast(self.vtable)).get_Count(@as(*const IRTCCollection, @ptrCast(self)), lCount); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRTCCollection_get_Item(self: *const T, Index: i32, pVariant: ?*VARIANT) HRESULT { return @as(*const IRTCCollection.VTable, @ptrCast(self.vtable)).get_Item(@as(*const IRTCCollection, @ptrCast(self)), Index, pVariant); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRTCCollection_get__NewEnum(self: *const T, ppNewEnum: ?*?*IUnknown) HRESULT { return @as(*const IRTCCollection.VTable, @ptrCast(self.vtable)).get__NewEnum(@as(*const IRTCCollection, @ptrCast(self)), ppNewEnum); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IRTCEnumParticipants_Value = Guid.initString("fcd56f29-4a4f-41b2-ba5c-f5bccc060bf6"); pub const IID_IRTCEnumParticipants = &IID_IRTCEnumParticipants_Value; pub const IRTCEnumParticipants = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, Next: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IRTCEnumParticipants, celt: u32, ppElements: [*]?*IRTCParticipant, pceltFetched: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IRTCEnumParticipants, celt: u32, ppElements: [*]?*IRTCParticipant, pceltFetched: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Reset: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IRTCEnumParticipants, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IRTCEnumParticipants, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Skip: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IRTCEnumParticipants, celt: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IRTCEnumParticipants, celt: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Clone: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IRTCEnumParticipants, ppEnum: ?*?*IRTCEnumParticipants, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IRTCEnumParticipants, ppEnum: ?*?*IRTCEnumParticipants, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRTCEnumParticipants_Next(self: *const T, celt: u32, ppElements: [*]?*IRTCParticipant, pceltFetched: ?*u32) HRESULT { return @as(*const IRTCEnumParticipants.VTable, @ptrCast(self.vtable)).Next(@as(*const IRTCEnumParticipants, @ptrCast(self)), celt, ppElements, pceltFetched); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRTCEnumParticipants_Reset(self: *const T) HRESULT { return @as(*const IRTCEnumParticipants.VTable, @ptrCast(self.vtable)).Reset(@as(*const IRTCEnumParticipants, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRTCEnumParticipants_Skip(self: *const T, celt: u32) HRESULT { return @as(*const IRTCEnumParticipants.VTable, @ptrCast(self.vtable)).Skip(@as(*const IRTCEnumParticipants, @ptrCast(self)), celt); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRTCEnumParticipants_Clone(self: *const T, ppEnum: ?*?*IRTCEnumParticipants) HRESULT { return @as(*const IRTCEnumParticipants.VTable, @ptrCast(self.vtable)).Clone(@as(*const IRTCEnumParticipants, @ptrCast(self)), ppEnum); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IRTCEnumProfiles_Value = Guid.initString("29b7c41c-ed82-4bca-84ad-39d5101b58e3"); pub const IID_IRTCEnumProfiles = &IID_IRTCEnumProfiles_Value; pub const IRTCEnumProfiles = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, Next: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IRTCEnumProfiles, celt: u32, ppElements: [*]?*IRTCProfile, pceltFetched: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IRTCEnumProfiles, celt: u32, ppElements: [*]?*IRTCProfile, pceltFetched: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Reset: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IRTCEnumProfiles, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IRTCEnumProfiles, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Skip: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IRTCEnumProfiles, celt: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IRTCEnumProfiles, celt: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Clone: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IRTCEnumProfiles, ppEnum: ?*?*IRTCEnumProfiles, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IRTCEnumProfiles, ppEnum: ?*?*IRTCEnumProfiles, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRTCEnumProfiles_Next(self: *const T, celt: u32, ppElements: [*]?*IRTCProfile, pceltFetched: ?*u32) HRESULT { return @as(*const IRTCEnumProfiles.VTable, @ptrCast(self.vtable)).Next(@as(*const IRTCEnumProfiles, @ptrCast(self)), celt, ppElements, pceltFetched); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRTCEnumProfiles_Reset(self: *const T) HRESULT { return @as(*const IRTCEnumProfiles.VTable, @ptrCast(self.vtable)).Reset(@as(*const IRTCEnumProfiles, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRTCEnumProfiles_Skip(self: *const T, celt: u32) HRESULT { return @as(*const IRTCEnumProfiles.VTable, @ptrCast(self.vtable)).Skip(@as(*const IRTCEnumProfiles, @ptrCast(self)), celt); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRTCEnumProfiles_Clone(self: *const T, ppEnum: ?*?*IRTCEnumProfiles) HRESULT { return @as(*const IRTCEnumProfiles.VTable, @ptrCast(self.vtable)).Clone(@as(*const IRTCEnumProfiles, @ptrCast(self)), ppEnum); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IRTCEnumBuddies_Value = Guid.initString("f7296917-5569-4b3b-b3af-98d1144b2b87"); pub const IID_IRTCEnumBuddies = &IID_IRTCEnumBuddies_Value; pub const IRTCEnumBuddies = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, Next: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IRTCEnumBuddies, celt: u32, ppElements: [*]?*IRTCBuddy, pceltFetched: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IRTCEnumBuddies, celt: u32, ppElements: [*]?*IRTCBuddy, pceltFetched: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Reset: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IRTCEnumBuddies, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IRTCEnumBuddies, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Skip: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IRTCEnumBuddies, celt: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IRTCEnumBuddies, celt: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Clone: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IRTCEnumBuddies, ppEnum: ?*?*IRTCEnumBuddies, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IRTCEnumBuddies, ppEnum: ?*?*IRTCEnumBuddies, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRTCEnumBuddies_Next(self: *const T, celt: u32, ppElements: [*]?*IRTCBuddy, pceltFetched: ?*u32) HRESULT { return @as(*const IRTCEnumBuddies.VTable, @ptrCast(self.vtable)).Next(@as(*const IRTCEnumBuddies, @ptrCast(self)), celt, ppElements, pceltFetched); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRTCEnumBuddies_Reset(self: *const T) HRESULT { return @as(*const IRTCEnumBuddies.VTable, @ptrCast(self.vtable)).Reset(@as(*const IRTCEnumBuddies, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRTCEnumBuddies_Skip(self: *const T, celt: u32) HRESULT { return @as(*const IRTCEnumBuddies.VTable, @ptrCast(self.vtable)).Skip(@as(*const IRTCEnumBuddies, @ptrCast(self)), celt); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRTCEnumBuddies_Clone(self: *const T, ppEnum: ?*?*IRTCEnumBuddies) HRESULT { return @as(*const IRTCEnumBuddies.VTable, @ptrCast(self.vtable)).Clone(@as(*const IRTCEnumBuddies, @ptrCast(self)), ppEnum); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IRTCEnumWatchers_Value = Guid.initString("a87d55d7-db74-4ed1-9ca4-77a0e41b413e"); pub const IID_IRTCEnumWatchers = &IID_IRTCEnumWatchers_Value; pub const IRTCEnumWatchers = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, Next: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IRTCEnumWatchers, celt: u32, ppElements: [*]?*IRTCWatcher, pceltFetched: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IRTCEnumWatchers, celt: u32, ppElements: [*]?*IRTCWatcher, pceltFetched: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Reset: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IRTCEnumWatchers, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IRTCEnumWatchers, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Skip: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IRTCEnumWatchers, celt: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IRTCEnumWatchers, celt: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Clone: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IRTCEnumWatchers, ppEnum: ?*?*IRTCEnumWatchers, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IRTCEnumWatchers, ppEnum: ?*?*IRTCEnumWatchers, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRTCEnumWatchers_Next(self: *const T, celt: u32, ppElements: [*]?*IRTCWatcher, pceltFetched: ?*u32) HRESULT { return @as(*const IRTCEnumWatchers.VTable, @ptrCast(self.vtable)).Next(@as(*const IRTCEnumWatchers, @ptrCast(self)), celt, ppElements, pceltFetched); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRTCEnumWatchers_Reset(self: *const T) HRESULT { return @as(*const IRTCEnumWatchers.VTable, @ptrCast(self.vtable)).Reset(@as(*const IRTCEnumWatchers, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRTCEnumWatchers_Skip(self: *const T, celt: u32) HRESULT { return @as(*const IRTCEnumWatchers.VTable, @ptrCast(self.vtable)).Skip(@as(*const IRTCEnumWatchers, @ptrCast(self)), celt); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRTCEnumWatchers_Clone(self: *const T, ppEnum: ?*?*IRTCEnumWatchers) HRESULT { return @as(*const IRTCEnumWatchers.VTable, @ptrCast(self.vtable)).Clone(@as(*const IRTCEnumWatchers, @ptrCast(self)), ppEnum); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IRTCEnumGroups_Value = Guid.initString("742378d6-a141-4415-8f27-35d99076cf5d"); pub const IID_IRTCEnumGroups = &IID_IRTCEnumGroups_Value; pub const IRTCEnumGroups = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, Next: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IRTCEnumGroups, celt: u32, ppElements: [*]?*IRTCBuddyGroup, pceltFetched: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IRTCEnumGroups, celt: u32, ppElements: [*]?*IRTCBuddyGroup, pceltFetched: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Reset: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IRTCEnumGroups, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IRTCEnumGroups, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Skip: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IRTCEnumGroups, celt: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IRTCEnumGroups, celt: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Clone: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IRTCEnumGroups, ppEnum: ?*?*IRTCEnumGroups, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IRTCEnumGroups, ppEnum: ?*?*IRTCEnumGroups, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRTCEnumGroups_Next(self: *const T, celt: u32, ppElements: [*]?*IRTCBuddyGroup, pceltFetched: ?*u32) HRESULT { return @as(*const IRTCEnumGroups.VTable, @ptrCast(self.vtable)).Next(@as(*const IRTCEnumGroups, @ptrCast(self)), celt, ppElements, pceltFetched); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRTCEnumGroups_Reset(self: *const T) HRESULT { return @as(*const IRTCEnumGroups.VTable, @ptrCast(self.vtable)).Reset(@as(*const IRTCEnumGroups, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRTCEnumGroups_Skip(self: *const T, celt: u32) HRESULT { return @as(*const IRTCEnumGroups.VTable, @ptrCast(self.vtable)).Skip(@as(*const IRTCEnumGroups, @ptrCast(self)), celt); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRTCEnumGroups_Clone(self: *const T, ppEnum: ?*?*IRTCEnumGroups) HRESULT { return @as(*const IRTCEnumGroups.VTable, @ptrCast(self.vtable)).Clone(@as(*const IRTCEnumGroups, @ptrCast(self)), ppEnum); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IRTCPresenceContact_Value = Guid.initString("8b22f92c-cd90-42db-a733-212205c3e3df"); pub const IID_IRTCPresenceContact = &IID_IRTCPresenceContact_Value; pub const IRTCPresenceContact = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, // TODO: this function has a "SpecialName", should Zig do anything with this? get_PresentityURI: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IRTCPresenceContact, pbstrPresentityURI: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IRTCPresenceContact, pbstrPresentityURI: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_PresentityURI: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IRTCPresenceContact, bstrPresentityURI: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IRTCPresenceContact, bstrPresentityURI: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Name: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IRTCPresenceContact, pbstrName: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IRTCPresenceContact, pbstrName: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_Name: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IRTCPresenceContact, bstrName: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IRTCPresenceContact, bstrName: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Data: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IRTCPresenceContact, pbstrData: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IRTCPresenceContact, pbstrData: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_Data: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IRTCPresenceContact, bstrData: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IRTCPresenceContact, bstrData: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Persistent: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IRTCPresenceContact, pfPersistent: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IRTCPresenceContact, pfPersistent: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_Persistent: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IRTCPresenceContact, fPersistent: i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IRTCPresenceContact, fPersistent: i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRTCPresenceContact_get_PresentityURI(self: *const T, pbstrPresentityURI: ?*?BSTR) HRESULT { return @as(*const IRTCPresenceContact.VTable, @ptrCast(self.vtable)).get_PresentityURI(@as(*const IRTCPresenceContact, @ptrCast(self)), pbstrPresentityURI); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRTCPresenceContact_put_PresentityURI(self: *const T, bstrPresentityURI: ?BSTR) HRESULT { return @as(*const IRTCPresenceContact.VTable, @ptrCast(self.vtable)).put_PresentityURI(@as(*const IRTCPresenceContact, @ptrCast(self)), bstrPresentityURI); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRTCPresenceContact_get_Name(self: *const T, pbstrName: ?*?BSTR) HRESULT { return @as(*const IRTCPresenceContact.VTable, @ptrCast(self.vtable)).get_Name(@as(*const IRTCPresenceContact, @ptrCast(self)), pbstrName); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRTCPresenceContact_put_Name(self: *const T, bstrName: ?BSTR) HRESULT { return @as(*const IRTCPresenceContact.VTable, @ptrCast(self.vtable)).put_Name(@as(*const IRTCPresenceContact, @ptrCast(self)), bstrName); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRTCPresenceContact_get_Data(self: *const T, pbstrData: ?*?BSTR) HRESULT { return @as(*const IRTCPresenceContact.VTable, @ptrCast(self.vtable)).get_Data(@as(*const IRTCPresenceContact, @ptrCast(self)), pbstrData); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRTCPresenceContact_put_Data(self: *const T, bstrData: ?BSTR) HRESULT { return @as(*const IRTCPresenceContact.VTable, @ptrCast(self.vtable)).put_Data(@as(*const IRTCPresenceContact, @ptrCast(self)), bstrData); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRTCPresenceContact_get_Persistent(self: *const T, pfPersistent: ?*i16) HRESULT { return @as(*const IRTCPresenceContact.VTable, @ptrCast(self.vtable)).get_Persistent(@as(*const IRTCPresenceContact, @ptrCast(self)), pfPersistent); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRTCPresenceContact_put_Persistent(self: *const T, fPersistent: i16) HRESULT { return @as(*const IRTCPresenceContact.VTable, @ptrCast(self.vtable)).put_Persistent(@as(*const IRTCPresenceContact, @ptrCast(self)), fPersistent); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IRTCBuddy_Value = Guid.initString("fcb136c8-7b90-4e0c-befe-56edf0ba6f1c"); pub const IID_IRTCBuddy = &IID_IRTCBuddy_Value; pub const IRTCBuddy = extern struct { pub const VTable = extern struct { base: IRTCPresenceContact.VTable, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Status: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IRTCBuddy, penStatus: ?*RTC_PRESENCE_STATUS, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IRTCBuddy, penStatus: ?*RTC_PRESENCE_STATUS, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Notes: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IRTCBuddy, pbstrNotes: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IRTCBuddy, pbstrNotes: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IRTCPresenceContact.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRTCBuddy_get_Status(self: *const T, penStatus: ?*RTC_PRESENCE_STATUS) HRESULT { return @as(*const IRTCBuddy.VTable, @ptrCast(self.vtable)).get_Status(@as(*const IRTCBuddy, @ptrCast(self)), penStatus); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRTCBuddy_get_Notes(self: *const T, pbstrNotes: ?*?BSTR) HRESULT { return @as(*const IRTCBuddy.VTable, @ptrCast(self.vtable)).get_Notes(@as(*const IRTCBuddy, @ptrCast(self)), pbstrNotes); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IRTCBuddy2_Value = Guid.initString("102f9588-23e7-40e3-954d-cd7a1d5c0361"); pub const IID_IRTCBuddy2 = &IID_IRTCBuddy2_Value; pub const IRTCBuddy2 = extern struct { pub const VTable = extern struct { base: IRTCBuddy.VTable, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Profile: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IRTCBuddy2, ppProfile: ?*?*IRTCProfile2, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IRTCBuddy2, ppProfile: ?*?*IRTCProfile2, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Refresh: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IRTCBuddy2, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IRTCBuddy2, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, EnumerateGroups: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IRTCBuddy2, ppEnum: ?*?*IRTCEnumGroups, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IRTCBuddy2, ppEnum: ?*?*IRTCEnumGroups, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Groups: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IRTCBuddy2, ppCollection: ?*?*IRTCCollection, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IRTCBuddy2, ppCollection: ?*?*IRTCCollection, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_PresenceProperty: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IRTCBuddy2, enProperty: RTC_PRESENCE_PROPERTY, pbstrProperty: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IRTCBuddy2, enProperty: RTC_PRESENCE_PROPERTY, pbstrProperty: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, EnumeratePresenceDevices: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IRTCBuddy2, ppEnumDevices: ?*?*IRTCEnumPresenceDevices, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IRTCBuddy2, ppEnumDevices: ?*?*IRTCEnumPresenceDevices, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_PresenceDevices: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IRTCBuddy2, ppDevicesCollection: ?*?*IRTCCollection, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IRTCBuddy2, ppDevicesCollection: ?*?*IRTCCollection, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_SubscriptionType: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IRTCBuddy2, penSubscriptionType: ?*RTC_BUDDY_SUBSCRIPTION_TYPE, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IRTCBuddy2, penSubscriptionType: ?*RTC_BUDDY_SUBSCRIPTION_TYPE, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IRTCBuddy.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRTCBuddy2_get_Profile(self: *const T, ppProfile: ?*?*IRTCProfile2) HRESULT { return @as(*const IRTCBuddy2.VTable, @ptrCast(self.vtable)).get_Profile(@as(*const IRTCBuddy2, @ptrCast(self)), ppProfile); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRTCBuddy2_Refresh(self: *const T) HRESULT { return @as(*const IRTCBuddy2.VTable, @ptrCast(self.vtable)).Refresh(@as(*const IRTCBuddy2, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRTCBuddy2_EnumerateGroups(self: *const T, ppEnum: ?*?*IRTCEnumGroups) HRESULT { return @as(*const IRTCBuddy2.VTable, @ptrCast(self.vtable)).EnumerateGroups(@as(*const IRTCBuddy2, @ptrCast(self)), ppEnum); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRTCBuddy2_get_Groups(self: *const T, ppCollection: ?*?*IRTCCollection) HRESULT { return @as(*const IRTCBuddy2.VTable, @ptrCast(self.vtable)).get_Groups(@as(*const IRTCBuddy2, @ptrCast(self)), ppCollection); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRTCBuddy2_get_PresenceProperty(self: *const T, enProperty: RTC_PRESENCE_PROPERTY, pbstrProperty: ?*?BSTR) HRESULT { return @as(*const IRTCBuddy2.VTable, @ptrCast(self.vtable)).get_PresenceProperty(@as(*const IRTCBuddy2, @ptrCast(self)), enProperty, pbstrProperty); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRTCBuddy2_EnumeratePresenceDevices(self: *const T, ppEnumDevices: ?*?*IRTCEnumPresenceDevices) HRESULT { return @as(*const IRTCBuddy2.VTable, @ptrCast(self.vtable)).EnumeratePresenceDevices(@as(*const IRTCBuddy2, @ptrCast(self)), ppEnumDevices); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRTCBuddy2_get_PresenceDevices(self: *const T, ppDevicesCollection: ?*?*IRTCCollection) HRESULT { return @as(*const IRTCBuddy2.VTable, @ptrCast(self.vtable)).get_PresenceDevices(@as(*const IRTCBuddy2, @ptrCast(self)), ppDevicesCollection); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRTCBuddy2_get_SubscriptionType(self: *const T, penSubscriptionType: ?*RTC_BUDDY_SUBSCRIPTION_TYPE) HRESULT { return @as(*const IRTCBuddy2.VTable, @ptrCast(self.vtable)).get_SubscriptionType(@as(*const IRTCBuddy2, @ptrCast(self)), penSubscriptionType); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IRTCWatcher_Value = Guid.initString("c7cedad8-346b-4d1b-ac02-a2088df9be4f"); pub const IID_IRTCWatcher = &IID_IRTCWatcher_Value; pub const IRTCWatcher = extern struct { pub const VTable = extern struct { base: IRTCPresenceContact.VTable, // TODO: this function has a "SpecialName", should Zig do anything with this? get_State: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IRTCWatcher, penState: ?*RTC_WATCHER_STATE, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IRTCWatcher, penState: ?*RTC_WATCHER_STATE, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_State: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IRTCWatcher, enState: RTC_WATCHER_STATE, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IRTCWatcher, enState: RTC_WATCHER_STATE, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IRTCPresenceContact.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRTCWatcher_get_State(self: *const T, penState: ?*RTC_WATCHER_STATE) HRESULT { return @as(*const IRTCWatcher.VTable, @ptrCast(self.vtable)).get_State(@as(*const IRTCWatcher, @ptrCast(self)), penState); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRTCWatcher_put_State(self: *const T, enState: RTC_WATCHER_STATE) HRESULT { return @as(*const IRTCWatcher.VTable, @ptrCast(self.vtable)).put_State(@as(*const IRTCWatcher, @ptrCast(self)), enState); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IRTCWatcher2_Value = Guid.initString("d4d9967f-d011-4b1d-91e3-aba78f96393d"); pub const IID_IRTCWatcher2 = &IID_IRTCWatcher2_Value; pub const IRTCWatcher2 = extern struct { pub const VTable = extern struct { base: IRTCWatcher.VTable, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Profile: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IRTCWatcher2, ppProfile: ?*?*IRTCProfile2, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IRTCWatcher2, ppProfile: ?*?*IRTCProfile2, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Scope: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IRTCWatcher2, penScope: ?*RTC_ACE_SCOPE, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IRTCWatcher2, penScope: ?*RTC_ACE_SCOPE, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IRTCWatcher.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRTCWatcher2_get_Profile(self: *const T, ppProfile: ?*?*IRTCProfile2) HRESULT { return @as(*const IRTCWatcher2.VTable, @ptrCast(self.vtable)).get_Profile(@as(*const IRTCWatcher2, @ptrCast(self)), ppProfile); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRTCWatcher2_get_Scope(self: *const T, penScope: ?*RTC_ACE_SCOPE) HRESULT { return @as(*const IRTCWatcher2.VTable, @ptrCast(self.vtable)).get_Scope(@as(*const IRTCWatcher2, @ptrCast(self)), penScope); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IRTCBuddyGroup_Value = Guid.initString("60361e68-9164-4389-a4c6-d0b3925bda5e"); pub const IID_IRTCBuddyGroup = &IID_IRTCBuddyGroup_Value; pub const IRTCBuddyGroup = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Name: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IRTCBuddyGroup, pbstrGroupName: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IRTCBuddyGroup, pbstrGroupName: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_Name: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IRTCBuddyGroup, bstrGroupName: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IRTCBuddyGroup, bstrGroupName: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, AddBuddy: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IRTCBuddyGroup, pBuddy: ?*IRTCBuddy, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IRTCBuddyGroup, pBuddy: ?*IRTCBuddy, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, RemoveBuddy: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IRTCBuddyGroup, pBuddy: ?*IRTCBuddy, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IRTCBuddyGroup, pBuddy: ?*IRTCBuddy, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, EnumerateBuddies: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IRTCBuddyGroup, ppEnum: ?*?*IRTCEnumBuddies, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IRTCBuddyGroup, ppEnum: ?*?*IRTCEnumBuddies, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Buddies: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IRTCBuddyGroup, ppCollection: ?*?*IRTCCollection, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IRTCBuddyGroup, ppCollection: ?*?*IRTCCollection, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Data: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IRTCBuddyGroup, pbstrData: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IRTCBuddyGroup, pbstrData: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_Data: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IRTCBuddyGroup, bstrData: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IRTCBuddyGroup, bstrData: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Profile: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IRTCBuddyGroup, ppProfile: ?*?*IRTCProfile2, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IRTCBuddyGroup, ppProfile: ?*?*IRTCProfile2, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRTCBuddyGroup_get_Name(self: *const T, pbstrGroupName: ?*?BSTR) HRESULT { return @as(*const IRTCBuddyGroup.VTable, @ptrCast(self.vtable)).get_Name(@as(*const IRTCBuddyGroup, @ptrCast(self)), pbstrGroupName); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRTCBuddyGroup_put_Name(self: *const T, bstrGroupName: ?BSTR) HRESULT { return @as(*const IRTCBuddyGroup.VTable, @ptrCast(self.vtable)).put_Name(@as(*const IRTCBuddyGroup, @ptrCast(self)), bstrGroupName); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRTCBuddyGroup_AddBuddy(self: *const T, pBuddy: ?*IRTCBuddy) HRESULT { return @as(*const IRTCBuddyGroup.VTable, @ptrCast(self.vtable)).AddBuddy(@as(*const IRTCBuddyGroup, @ptrCast(self)), pBuddy); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRTCBuddyGroup_RemoveBuddy(self: *const T, pBuddy: ?*IRTCBuddy) HRESULT { return @as(*const IRTCBuddyGroup.VTable, @ptrCast(self.vtable)).RemoveBuddy(@as(*const IRTCBuddyGroup, @ptrCast(self)), pBuddy); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRTCBuddyGroup_EnumerateBuddies(self: *const T, ppEnum: ?*?*IRTCEnumBuddies) HRESULT { return @as(*const IRTCBuddyGroup.VTable, @ptrCast(self.vtable)).EnumerateBuddies(@as(*const IRTCBuddyGroup, @ptrCast(self)), ppEnum); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRTCBuddyGroup_get_Buddies(self: *const T, ppCollection: ?*?*IRTCCollection) HRESULT { return @as(*const IRTCBuddyGroup.VTable, @ptrCast(self.vtable)).get_Buddies(@as(*const IRTCBuddyGroup, @ptrCast(self)), ppCollection); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRTCBuddyGroup_get_Data(self: *const T, pbstrData: ?*?BSTR) HRESULT { return @as(*const IRTCBuddyGroup.VTable, @ptrCast(self.vtable)).get_Data(@as(*const IRTCBuddyGroup, @ptrCast(self)), pbstrData); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRTCBuddyGroup_put_Data(self: *const T, bstrData: ?BSTR) HRESULT { return @as(*const IRTCBuddyGroup.VTable, @ptrCast(self.vtable)).put_Data(@as(*const IRTCBuddyGroup, @ptrCast(self)), bstrData); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRTCBuddyGroup_get_Profile(self: *const T, ppProfile: ?*?*IRTCProfile2) HRESULT { return @as(*const IRTCBuddyGroup.VTable, @ptrCast(self.vtable)).get_Profile(@as(*const IRTCBuddyGroup, @ptrCast(self)), ppProfile); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IRTCEventNotification_Value = Guid.initString("13fa24c7-5748-4b21-91f5-7397609ce747"); pub const IID_IRTCEventNotification = &IID_IRTCEventNotification_Value; pub const IRTCEventNotification = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, Event: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IRTCEventNotification, RTCEvent: RTC_EVENT, pEvent: ?*IDispatch, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IRTCEventNotification, RTCEvent: RTC_EVENT, pEvent: ?*IDispatch, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRTCEventNotification_Event(self: *const T, RTCEvent: RTC_EVENT, pEvent: ?*IDispatch) HRESULT { return @as(*const IRTCEventNotification.VTable, @ptrCast(self.vtable)).Event(@as(*const IRTCEventNotification, @ptrCast(self)), RTCEvent, pEvent); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IRTCPortManager_Value = Guid.initString("da77c14b-6208-43ca-8ddf-5b60a0a69fac"); pub const IID_IRTCPortManager = &IID_IRTCPortManager_Value; pub const IRTCPortManager = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, GetMapping: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IRTCPortManager, bstrRemoteAddress: ?BSTR, enPortType: RTC_PORT_TYPE, pbstrInternalLocalAddress: ?*?BSTR, plInternalLocalPort: ?*i32, pbstrExternalLocalAddress: ?*?BSTR, plExternalLocalPort: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IRTCPortManager, bstrRemoteAddress: ?BSTR, enPortType: RTC_PORT_TYPE, pbstrInternalLocalAddress: ?*?BSTR, plInternalLocalPort: ?*i32, pbstrExternalLocalAddress: ?*?BSTR, plExternalLocalPort: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, UpdateRemoteAddress: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IRTCPortManager, bstrRemoteAddress: ?BSTR, bstrInternalLocalAddress: ?BSTR, lInternalLocalPort: i32, bstrExternalLocalAddress: ?BSTR, lExternalLocalPort: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IRTCPortManager, bstrRemoteAddress: ?BSTR, bstrInternalLocalAddress: ?BSTR, lInternalLocalPort: i32, bstrExternalLocalAddress: ?BSTR, lExternalLocalPort: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, ReleaseMapping: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IRTCPortManager, bstrInternalLocalAddress: ?BSTR, lInternalLocalPort: i32, bstrExternalLocalAddress: ?BSTR, lExternalLocalAddress: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IRTCPortManager, bstrInternalLocalAddress: ?BSTR, lInternalLocalPort: i32, bstrExternalLocalAddress: ?BSTR, lExternalLocalAddress: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRTCPortManager_GetMapping(self: *const T, bstrRemoteAddress: ?BSTR, enPortType: RTC_PORT_TYPE, pbstrInternalLocalAddress: ?*?BSTR, plInternalLocalPort: ?*i32, pbstrExternalLocalAddress: ?*?BSTR, plExternalLocalPort: ?*i32) HRESULT { return @as(*const IRTCPortManager.VTable, @ptrCast(self.vtable)).GetMapping(@as(*const IRTCPortManager, @ptrCast(self)), bstrRemoteAddress, enPortType, pbstrInternalLocalAddress, plInternalLocalPort, pbstrExternalLocalAddress, plExternalLocalPort); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRTCPortManager_UpdateRemoteAddress(self: *const T, bstrRemoteAddress: ?BSTR, bstrInternalLocalAddress: ?BSTR, lInternalLocalPort: i32, bstrExternalLocalAddress: ?BSTR, lExternalLocalPort: i32) HRESULT { return @as(*const IRTCPortManager.VTable, @ptrCast(self.vtable)).UpdateRemoteAddress(@as(*const IRTCPortManager, @ptrCast(self)), bstrRemoteAddress, bstrInternalLocalAddress, lInternalLocalPort, bstrExternalLocalAddress, lExternalLocalPort); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRTCPortManager_ReleaseMapping(self: *const T, bstrInternalLocalAddress: ?BSTR, lInternalLocalPort: i32, bstrExternalLocalAddress: ?BSTR, lExternalLocalAddress: i32) HRESULT { return @as(*const IRTCPortManager.VTable, @ptrCast(self.vtable)).ReleaseMapping(@as(*const IRTCPortManager, @ptrCast(self)), bstrInternalLocalAddress, lInternalLocalPort, bstrExternalLocalAddress, lExternalLocalAddress); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IRTCSessionPortManagement_Value = Guid.initString("a072f1d6-0286-4e1f-85f2-17a2948456ec"); pub const IID_IRTCSessionPortManagement = &IID_IRTCSessionPortManagement_Value; pub const IRTCSessionPortManagement = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, SetPortManager: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IRTCSessionPortManagement, pPortManager: ?*IRTCPortManager, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IRTCSessionPortManagement, pPortManager: ?*IRTCPortManager, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRTCSessionPortManagement_SetPortManager(self: *const T, pPortManager: ?*IRTCPortManager) HRESULT { return @as(*const IRTCSessionPortManagement.VTable, @ptrCast(self.vtable)).SetPortManager(@as(*const IRTCSessionPortManagement, @ptrCast(self)), pPortManager); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IRTCClientPortManagement_Value = Guid.initString("d5df3f03-4bde-4417-aefe-71177bdaea66"); pub const IID_IRTCClientPortManagement = &IID_IRTCClientPortManagement_Value; pub const IRTCClientPortManagement = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, StartListenAddressAndPort: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IRTCClientPortManagement, bstrInternalLocalAddress: ?BSTR, lInternalLocalPort: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IRTCClientPortManagement, bstrInternalLocalAddress: ?BSTR, lInternalLocalPort: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, StopListenAddressAndPort: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IRTCClientPortManagement, bstrInternalLocalAddress: ?BSTR, lInternalLocalPort: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IRTCClientPortManagement, bstrInternalLocalAddress: ?BSTR, lInternalLocalPort: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetPortRange: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IRTCClientPortManagement, enPortType: RTC_PORT_TYPE, plMinValue: ?*i32, plMaxValue: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IRTCClientPortManagement, enPortType: RTC_PORT_TYPE, plMinValue: ?*i32, plMaxValue: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRTCClientPortManagement_StartListenAddressAndPort(self: *const T, bstrInternalLocalAddress: ?BSTR, lInternalLocalPort: i32) HRESULT { return @as(*const IRTCClientPortManagement.VTable, @ptrCast(self.vtable)).StartListenAddressAndPort(@as(*const IRTCClientPortManagement, @ptrCast(self)), bstrInternalLocalAddress, lInternalLocalPort); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRTCClientPortManagement_StopListenAddressAndPort(self: *const T, bstrInternalLocalAddress: ?BSTR, lInternalLocalPort: i32) HRESULT { return @as(*const IRTCClientPortManagement.VTable, @ptrCast(self.vtable)).StopListenAddressAndPort(@as(*const IRTCClientPortManagement, @ptrCast(self)), bstrInternalLocalAddress, lInternalLocalPort); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRTCClientPortManagement_GetPortRange(self: *const T, enPortType: RTC_PORT_TYPE, plMinValue: ?*i32, plMaxValue: ?*i32) HRESULT { return @as(*const IRTCClientPortManagement.VTable, @ptrCast(self.vtable)).GetPortRange(@as(*const IRTCClientPortManagement, @ptrCast(self)), enPortType, plMinValue, plMaxValue); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IRTCUserSearch_Value = Guid.initString("b619882b-860c-4db4-be1b-693b6505bbe5"); pub const IID_IRTCUserSearch = &IID_IRTCUserSearch_Value; pub const IRTCUserSearch = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, CreateQuery: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IRTCUserSearch, ppQuery: ?*?*IRTCUserSearchQuery, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IRTCUserSearch, ppQuery: ?*?*IRTCUserSearchQuery, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, ExecuteSearch: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IRTCUserSearch, pQuery: ?*IRTCUserSearchQuery, pProfile: ?*IRTCProfile, lCookie: isize, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IRTCUserSearch, pQuery: ?*IRTCUserSearchQuery, pProfile: ?*IRTCProfile, lCookie: isize, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRTCUserSearch_CreateQuery(self: *const T, ppQuery: ?*?*IRTCUserSearchQuery) HRESULT { return @as(*const IRTCUserSearch.VTable, @ptrCast(self.vtable)).CreateQuery(@as(*const IRTCUserSearch, @ptrCast(self)), ppQuery); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRTCUserSearch_ExecuteSearch(self: *const T, pQuery: ?*IRTCUserSearchQuery, pProfile: ?*IRTCProfile, lCookie: isize) HRESULT { return @as(*const IRTCUserSearch.VTable, @ptrCast(self.vtable)).ExecuteSearch(@as(*const IRTCUserSearch, @ptrCast(self)), pQuery, pProfile, lCookie); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IRTCUserSearchQuery_Value = Guid.initString("288300f5-d23a-4365-9a73-9985c98c2881"); pub const IID_IRTCUserSearchQuery = &IID_IRTCUserSearchQuery_Value; pub const IRTCUserSearchQuery = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, // TODO: this function has a "SpecialName", should Zig do anything with this? put_SearchTerm: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IRTCUserSearchQuery, bstrName: ?BSTR, bstrValue: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IRTCUserSearchQuery, bstrName: ?BSTR, bstrValue: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_SearchTerm: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IRTCUserSearchQuery, bstrName: ?BSTR, pbstrValue: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IRTCUserSearchQuery, bstrName: ?BSTR, pbstrValue: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_SearchTerms: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IRTCUserSearchQuery, pbstrNames: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IRTCUserSearchQuery, pbstrNames: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_SearchPreference: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IRTCUserSearchQuery, enPreference: RTC_USER_SEARCH_PREFERENCE, lValue: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IRTCUserSearchQuery, enPreference: RTC_USER_SEARCH_PREFERENCE, lValue: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_SearchPreference: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IRTCUserSearchQuery, enPreference: RTC_USER_SEARCH_PREFERENCE, plValue: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IRTCUserSearchQuery, enPreference: RTC_USER_SEARCH_PREFERENCE, plValue: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_SearchDomain: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IRTCUserSearchQuery, bstrDomain: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IRTCUserSearchQuery, bstrDomain: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_SearchDomain: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IRTCUserSearchQuery, pbstrDomain: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IRTCUserSearchQuery, pbstrDomain: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRTCUserSearchQuery_put_SearchTerm(self: *const T, bstrName: ?BSTR, bstrValue: ?BSTR) HRESULT { return @as(*const IRTCUserSearchQuery.VTable, @ptrCast(self.vtable)).put_SearchTerm(@as(*const IRTCUserSearchQuery, @ptrCast(self)), bstrName, bstrValue); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRTCUserSearchQuery_get_SearchTerm(self: *const T, bstrName: ?BSTR, pbstrValue: ?*?BSTR) HRESULT { return @as(*const IRTCUserSearchQuery.VTable, @ptrCast(self.vtable)).get_SearchTerm(@as(*const IRTCUserSearchQuery, @ptrCast(self)), bstrName, pbstrValue); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRTCUserSearchQuery_get_SearchTerms(self: *const T, pbstrNames: ?*?BSTR) HRESULT { return @as(*const IRTCUserSearchQuery.VTable, @ptrCast(self.vtable)).get_SearchTerms(@as(*const IRTCUserSearchQuery, @ptrCast(self)), pbstrNames); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRTCUserSearchQuery_put_SearchPreference(self: *const T, enPreference: RTC_USER_SEARCH_PREFERENCE, lValue: i32) HRESULT { return @as(*const IRTCUserSearchQuery.VTable, @ptrCast(self.vtable)).put_SearchPreference(@as(*const IRTCUserSearchQuery, @ptrCast(self)), enPreference, lValue); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRTCUserSearchQuery_get_SearchPreference(self: *const T, enPreference: RTC_USER_SEARCH_PREFERENCE, plValue: ?*i32) HRESULT { return @as(*const IRTCUserSearchQuery.VTable, @ptrCast(self.vtable)).get_SearchPreference(@as(*const IRTCUserSearchQuery, @ptrCast(self)), enPreference, plValue); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRTCUserSearchQuery_put_SearchDomain(self: *const T, bstrDomain: ?BSTR) HRESULT { return @as(*const IRTCUserSearchQuery.VTable, @ptrCast(self.vtable)).put_SearchDomain(@as(*const IRTCUserSearchQuery, @ptrCast(self)), bstrDomain); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRTCUserSearchQuery_get_SearchDomain(self: *const T, pbstrDomain: ?*?BSTR) HRESULT { return @as(*const IRTCUserSearchQuery.VTable, @ptrCast(self.vtable)).get_SearchDomain(@as(*const IRTCUserSearchQuery, @ptrCast(self)), pbstrDomain); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IRTCUserSearchResult_Value = Guid.initString("851278b2-9592-480f-8db5-2de86b26b54d"); pub const IID_IRTCUserSearchResult = &IID_IRTCUserSearchResult_Value; pub const IRTCUserSearchResult = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Value: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IRTCUserSearchResult, enColumn: RTC_USER_SEARCH_COLUMN, pbstrValue: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IRTCUserSearchResult, enColumn: RTC_USER_SEARCH_COLUMN, pbstrValue: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRTCUserSearchResult_get_Value(self: *const T, enColumn: RTC_USER_SEARCH_COLUMN, pbstrValue: ?*?BSTR) HRESULT { return @as(*const IRTCUserSearchResult.VTable, @ptrCast(self.vtable)).get_Value(@as(*const IRTCUserSearchResult, @ptrCast(self)), enColumn, pbstrValue); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IRTCEnumUserSearchResults_Value = Guid.initString("83d4d877-aa5d-4a5b-8d0e-002a8067e0e8"); pub const IID_IRTCEnumUserSearchResults = &IID_IRTCEnumUserSearchResults_Value; pub const IRTCEnumUserSearchResults = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, Next: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IRTCEnumUserSearchResults, celt: u32, ppElements: [*]?*IRTCUserSearchResult, pceltFetched: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IRTCEnumUserSearchResults, celt: u32, ppElements: [*]?*IRTCUserSearchResult, pceltFetched: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Reset: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IRTCEnumUserSearchResults, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IRTCEnumUserSearchResults, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Skip: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IRTCEnumUserSearchResults, celt: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IRTCEnumUserSearchResults, celt: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Clone: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IRTCEnumUserSearchResults, ppEnum: ?*?*IRTCEnumUserSearchResults, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IRTCEnumUserSearchResults, ppEnum: ?*?*IRTCEnumUserSearchResults, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRTCEnumUserSearchResults_Next(self: *const T, celt: u32, ppElements: [*]?*IRTCUserSearchResult, pceltFetched: ?*u32) HRESULT { return @as(*const IRTCEnumUserSearchResults.VTable, @ptrCast(self.vtable)).Next(@as(*const IRTCEnumUserSearchResults, @ptrCast(self)), celt, ppElements, pceltFetched); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRTCEnumUserSearchResults_Reset(self: *const T) HRESULT { return @as(*const IRTCEnumUserSearchResults.VTable, @ptrCast(self.vtable)).Reset(@as(*const IRTCEnumUserSearchResults, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRTCEnumUserSearchResults_Skip(self: *const T, celt: u32) HRESULT { return @as(*const IRTCEnumUserSearchResults.VTable, @ptrCast(self.vtable)).Skip(@as(*const IRTCEnumUserSearchResults, @ptrCast(self)), celt); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRTCEnumUserSearchResults_Clone(self: *const T, ppEnum: ?*?*IRTCEnumUserSearchResults) HRESULT { return @as(*const IRTCEnumUserSearchResults.VTable, @ptrCast(self.vtable)).Clone(@as(*const IRTCEnumUserSearchResults, @ptrCast(self)), ppEnum); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IRTCUserSearchResultsEvent_Value = Guid.initString("d8c8c3cd-7fac-4088-81c5-c24cbc0938e3"); pub const IID_IRTCUserSearchResultsEvent = &IID_IRTCUserSearchResultsEvent_Value; pub const IRTCUserSearchResultsEvent = extern struct { pub const VTable = extern struct { base: IDispatch.VTable, EnumerateResults: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IRTCUserSearchResultsEvent, ppEnum: ?*?*IRTCEnumUserSearchResults, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IRTCUserSearchResultsEvent, ppEnum: ?*?*IRTCEnumUserSearchResults, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Results: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IRTCUserSearchResultsEvent, ppCollection: ?*?*IRTCCollection, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IRTCUserSearchResultsEvent, ppCollection: ?*?*IRTCCollection, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Profile: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IRTCUserSearchResultsEvent, ppProfile: ?*?*IRTCProfile2, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IRTCUserSearchResultsEvent, ppProfile: ?*?*IRTCProfile2, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Query: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IRTCUserSearchResultsEvent, ppQuery: ?*?*IRTCUserSearchQuery, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IRTCUserSearchResultsEvent, ppQuery: ?*?*IRTCUserSearchQuery, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Cookie: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IRTCUserSearchResultsEvent, plCookie: ?*isize, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IRTCUserSearchResultsEvent, plCookie: ?*isize, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_StatusCode: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IRTCUserSearchResultsEvent, plStatusCode: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IRTCUserSearchResultsEvent, plStatusCode: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_MoreAvailable: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IRTCUserSearchResultsEvent, pfMoreAvailable: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IRTCUserSearchResultsEvent, pfMoreAvailable: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IDispatch.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRTCUserSearchResultsEvent_EnumerateResults(self: *const T, ppEnum: ?*?*IRTCEnumUserSearchResults) HRESULT { return @as(*const IRTCUserSearchResultsEvent.VTable, @ptrCast(self.vtable)).EnumerateResults(@as(*const IRTCUserSearchResultsEvent, @ptrCast(self)), ppEnum); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRTCUserSearchResultsEvent_get_Results(self: *const T, ppCollection: ?*?*IRTCCollection) HRESULT { return @as(*const IRTCUserSearchResultsEvent.VTable, @ptrCast(self.vtable)).get_Results(@as(*const IRTCUserSearchResultsEvent, @ptrCast(self)), ppCollection); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRTCUserSearchResultsEvent_get_Profile(self: *const T, ppProfile: ?*?*IRTCProfile2) HRESULT { return @as(*const IRTCUserSearchResultsEvent.VTable, @ptrCast(self.vtable)).get_Profile(@as(*const IRTCUserSearchResultsEvent, @ptrCast(self)), ppProfile); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRTCUserSearchResultsEvent_get_Query(self: *const T, ppQuery: ?*?*IRTCUserSearchQuery) HRESULT { return @as(*const IRTCUserSearchResultsEvent.VTable, @ptrCast(self.vtable)).get_Query(@as(*const IRTCUserSearchResultsEvent, @ptrCast(self)), ppQuery); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRTCUserSearchResultsEvent_get_Cookie(self: *const T, plCookie: ?*isize) HRESULT { return @as(*const IRTCUserSearchResultsEvent.VTable, @ptrCast(self.vtable)).get_Cookie(@as(*const IRTCUserSearchResultsEvent, @ptrCast(self)), plCookie); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRTCUserSearchResultsEvent_get_StatusCode(self: *const T, plStatusCode: ?*i32) HRESULT { return @as(*const IRTCUserSearchResultsEvent.VTable, @ptrCast(self.vtable)).get_StatusCode(@as(*const IRTCUserSearchResultsEvent, @ptrCast(self)), plStatusCode); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRTCUserSearchResultsEvent_get_MoreAvailable(self: *const T, pfMoreAvailable: ?*i16) HRESULT { return @as(*const IRTCUserSearchResultsEvent.VTable, @ptrCast(self.vtable)).get_MoreAvailable(@as(*const IRTCUserSearchResultsEvent, @ptrCast(self)), pfMoreAvailable); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IRTCSessionReferStatusEvent_Value = Guid.initString("3d8fc2cd-5d76-44ab-bb68-2a80353b34a2"); pub const IID_IRTCSessionReferStatusEvent = &IID_IRTCSessionReferStatusEvent_Value; pub const IRTCSessionReferStatusEvent = extern struct { pub const VTable = extern struct { base: IDispatch.VTable, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Session: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IRTCSessionReferStatusEvent, ppSession: ?*?*IRTCSession2, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IRTCSessionReferStatusEvent, ppSession: ?*?*IRTCSession2, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_ReferStatus: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IRTCSessionReferStatusEvent, penReferStatus: ?*RTC_SESSION_REFER_STATUS, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IRTCSessionReferStatusEvent, penReferStatus: ?*RTC_SESSION_REFER_STATUS, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_StatusCode: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IRTCSessionReferStatusEvent, plStatusCode: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IRTCSessionReferStatusEvent, plStatusCode: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_StatusText: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IRTCSessionReferStatusEvent, pbstrStatusText: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IRTCSessionReferStatusEvent, pbstrStatusText: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IDispatch.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRTCSessionReferStatusEvent_get_Session(self: *const T, ppSession: ?*?*IRTCSession2) HRESULT { return @as(*const IRTCSessionReferStatusEvent.VTable, @ptrCast(self.vtable)).get_Session(@as(*const IRTCSessionReferStatusEvent, @ptrCast(self)), ppSession); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRTCSessionReferStatusEvent_get_ReferStatus(self: *const T, penReferStatus: ?*RTC_SESSION_REFER_STATUS) HRESULT { return @as(*const IRTCSessionReferStatusEvent.VTable, @ptrCast(self.vtable)).get_ReferStatus(@as(*const IRTCSessionReferStatusEvent, @ptrCast(self)), penReferStatus); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRTCSessionReferStatusEvent_get_StatusCode(self: *const T, plStatusCode: ?*i32) HRESULT { return @as(*const IRTCSessionReferStatusEvent.VTable, @ptrCast(self.vtable)).get_StatusCode(@as(*const IRTCSessionReferStatusEvent, @ptrCast(self)), plStatusCode); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRTCSessionReferStatusEvent_get_StatusText(self: *const T, pbstrStatusText: ?*?BSTR) HRESULT { return @as(*const IRTCSessionReferStatusEvent.VTable, @ptrCast(self.vtable)).get_StatusText(@as(*const IRTCSessionReferStatusEvent, @ptrCast(self)), pbstrStatusText); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IRTCSessionReferredEvent_Value = Guid.initString("176a6828-4fcc-4f28-a862-04597a6cf1c4"); pub const IID_IRTCSessionReferredEvent = &IID_IRTCSessionReferredEvent_Value; pub const IRTCSessionReferredEvent = extern struct { pub const VTable = extern struct { base: IDispatch.VTable, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Session: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IRTCSessionReferredEvent, ppSession: ?*?*IRTCSession2, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IRTCSessionReferredEvent, ppSession: ?*?*IRTCSession2, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_ReferredByURI: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IRTCSessionReferredEvent, pbstrReferredByURI: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IRTCSessionReferredEvent, pbstrReferredByURI: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_ReferToURI: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IRTCSessionReferredEvent, pbstrReferoURI: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IRTCSessionReferredEvent, pbstrReferoURI: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_ReferCookie: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IRTCSessionReferredEvent, pbstrReferCookie: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IRTCSessionReferredEvent, pbstrReferCookie: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Accept: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IRTCSessionReferredEvent, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IRTCSessionReferredEvent, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Reject: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IRTCSessionReferredEvent, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IRTCSessionReferredEvent, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetReferredSessionState: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IRTCSessionReferredEvent, enState: RTC_SESSION_STATE, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IRTCSessionReferredEvent, enState: RTC_SESSION_STATE, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IDispatch.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRTCSessionReferredEvent_get_Session(self: *const T, ppSession: ?*?*IRTCSession2) HRESULT { return @as(*const IRTCSessionReferredEvent.VTable, @ptrCast(self.vtable)).get_Session(@as(*const IRTCSessionReferredEvent, @ptrCast(self)), ppSession); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRTCSessionReferredEvent_get_ReferredByURI(self: *const T, pbstrReferredByURI: ?*?BSTR) HRESULT { return @as(*const IRTCSessionReferredEvent.VTable, @ptrCast(self.vtable)).get_ReferredByURI(@as(*const IRTCSessionReferredEvent, @ptrCast(self)), pbstrReferredByURI); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRTCSessionReferredEvent_get_ReferToURI(self: *const T, pbstrReferoURI: ?*?BSTR) HRESULT { return @as(*const IRTCSessionReferredEvent.VTable, @ptrCast(self.vtable)).get_ReferToURI(@as(*const IRTCSessionReferredEvent, @ptrCast(self)), pbstrReferoURI); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRTCSessionReferredEvent_get_ReferCookie(self: *const T, pbstrReferCookie: ?*?BSTR) HRESULT { return @as(*const IRTCSessionReferredEvent.VTable, @ptrCast(self.vtable)).get_ReferCookie(@as(*const IRTCSessionReferredEvent, @ptrCast(self)), pbstrReferCookie); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRTCSessionReferredEvent_Accept(self: *const T) HRESULT { return @as(*const IRTCSessionReferredEvent.VTable, @ptrCast(self.vtable)).Accept(@as(*const IRTCSessionReferredEvent, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRTCSessionReferredEvent_Reject(self: *const T) HRESULT { return @as(*const IRTCSessionReferredEvent.VTable, @ptrCast(self.vtable)).Reject(@as(*const IRTCSessionReferredEvent, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRTCSessionReferredEvent_SetReferredSessionState(self: *const T, enState: RTC_SESSION_STATE) HRESULT { return @as(*const IRTCSessionReferredEvent.VTable, @ptrCast(self.vtable)).SetReferredSessionState(@as(*const IRTCSessionReferredEvent, @ptrCast(self)), enState); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IRTCSessionDescriptionManager_Value = Guid.initString("ba7f518e-d336-4070-93a6-865395c843f9"); pub const IID_IRTCSessionDescriptionManager = &IID_IRTCSessionDescriptionManager_Value; pub const IRTCSessionDescriptionManager = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, EvaluateSessionDescription: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IRTCSessionDescriptionManager, bstrContentType: ?BSTR, bstrSessionDescription: ?BSTR, pfApplicationSession: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IRTCSessionDescriptionManager, bstrContentType: ?BSTR, bstrSessionDescription: ?BSTR, pfApplicationSession: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRTCSessionDescriptionManager_EvaluateSessionDescription(self: *const T, bstrContentType: ?BSTR, bstrSessionDescription: ?BSTR, pfApplicationSession: ?*i16) HRESULT { return @as(*const IRTCSessionDescriptionManager.VTable, @ptrCast(self.vtable)).EvaluateSessionDescription(@as(*const IRTCSessionDescriptionManager, @ptrCast(self)), bstrContentType, bstrSessionDescription, pfApplicationSession); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IRTCEnumPresenceDevices_Value = Guid.initString("708c2ab7-8bf8-42f8-8c7d-635197ad5539"); pub const IID_IRTCEnumPresenceDevices = &IID_IRTCEnumPresenceDevices_Value; pub const IRTCEnumPresenceDevices = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, Next: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IRTCEnumPresenceDevices, celt: u32, ppElements: [*]?*IRTCPresenceDevice, pceltFetched: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IRTCEnumPresenceDevices, celt: u32, ppElements: [*]?*IRTCPresenceDevice, pceltFetched: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Reset: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IRTCEnumPresenceDevices, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IRTCEnumPresenceDevices, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Skip: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IRTCEnumPresenceDevices, celt: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IRTCEnumPresenceDevices, celt: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Clone: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IRTCEnumPresenceDevices, ppEnum: ?*?*IRTCEnumPresenceDevices, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IRTCEnumPresenceDevices, ppEnum: ?*?*IRTCEnumPresenceDevices, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRTCEnumPresenceDevices_Next(self: *const T, celt: u32, ppElements: [*]?*IRTCPresenceDevice, pceltFetched: ?*u32) HRESULT { return @as(*const IRTCEnumPresenceDevices.VTable, @ptrCast(self.vtable)).Next(@as(*const IRTCEnumPresenceDevices, @ptrCast(self)), celt, ppElements, pceltFetched); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRTCEnumPresenceDevices_Reset(self: *const T) HRESULT { return @as(*const IRTCEnumPresenceDevices.VTable, @ptrCast(self.vtable)).Reset(@as(*const IRTCEnumPresenceDevices, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRTCEnumPresenceDevices_Skip(self: *const T, celt: u32) HRESULT { return @as(*const IRTCEnumPresenceDevices.VTable, @ptrCast(self.vtable)).Skip(@as(*const IRTCEnumPresenceDevices, @ptrCast(self)), celt); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRTCEnumPresenceDevices_Clone(self: *const T, ppEnum: ?*?*IRTCEnumPresenceDevices) HRESULT { return @as(*const IRTCEnumPresenceDevices.VTable, @ptrCast(self.vtable)).Clone(@as(*const IRTCEnumPresenceDevices, @ptrCast(self)), ppEnum); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IRTCPresenceDevice_Value = Guid.initString("bc6a90dd-ad9a-48da-9b0c-2515e38521ad"); pub const IID_IRTCPresenceDevice = &IID_IRTCPresenceDevice_Value; pub const IRTCPresenceDevice = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Status: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IRTCPresenceDevice, penStatus: ?*RTC_PRESENCE_STATUS, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IRTCPresenceDevice, penStatus: ?*RTC_PRESENCE_STATUS, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Notes: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IRTCPresenceDevice, pbstrNotes: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IRTCPresenceDevice, pbstrNotes: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_PresenceProperty: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IRTCPresenceDevice, enProperty: RTC_PRESENCE_PROPERTY, pbstrProperty: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IRTCPresenceDevice, enProperty: RTC_PRESENCE_PROPERTY, pbstrProperty: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetPresenceData: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IRTCPresenceDevice, pbstrNamespace: ?*?BSTR, pbstrData: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IRTCPresenceDevice, pbstrNamespace: ?*?BSTR, pbstrData: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRTCPresenceDevice_get_Status(self: *const T, penStatus: ?*RTC_PRESENCE_STATUS) HRESULT { return @as(*const IRTCPresenceDevice.VTable, @ptrCast(self.vtable)).get_Status(@as(*const IRTCPresenceDevice, @ptrCast(self)), penStatus); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRTCPresenceDevice_get_Notes(self: *const T, pbstrNotes: ?*?BSTR) HRESULT { return @as(*const IRTCPresenceDevice.VTable, @ptrCast(self.vtable)).get_Notes(@as(*const IRTCPresenceDevice, @ptrCast(self)), pbstrNotes); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRTCPresenceDevice_get_PresenceProperty(self: *const T, enProperty: RTC_PRESENCE_PROPERTY, pbstrProperty: ?*?BSTR) HRESULT { return @as(*const IRTCPresenceDevice.VTable, @ptrCast(self.vtable)).get_PresenceProperty(@as(*const IRTCPresenceDevice, @ptrCast(self)), enProperty, pbstrProperty); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRTCPresenceDevice_GetPresenceData(self: *const T, pbstrNamespace: ?*?BSTR, pbstrData: ?*?BSTR) HRESULT { return @as(*const IRTCPresenceDevice.VTable, @ptrCast(self.vtable)).GetPresenceData(@as(*const IRTCPresenceDevice, @ptrCast(self)), pbstrNamespace, pbstrData); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IRTCDispatchEventNotification_Value = Guid.initString("176ddfbe-fec0-4d55-bc87-84cff1ef7f91"); pub const IID_IRTCDispatchEventNotification = &IID_IRTCDispatchEventNotification_Value; pub const IRTCDispatchEventNotification = extern struct { pub const VTable = extern struct { base: IDispatch.VTable, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IDispatch.MethodMixin(T); }; } pub usingnamespace MethodMixin(@This()); }; pub const TRANSPORT_SETTING = extern struct { SettingId: TRANSPORT_SETTING_ID, Length: ?*u32, Value: ?*u8, }; const IID_ITransportSettingsInternal_Value = Guid.initString("5123e076-29e3-4bfd-84fe-0192d411e3e8"); pub const IID_ITransportSettingsInternal = &IID_ITransportSettingsInternal_Value; pub const ITransportSettingsInternal = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, ApplySetting: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ITransportSettingsInternal, Setting: ?*TRANSPORT_SETTING, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ITransportSettingsInternal, Setting: ?*TRANSPORT_SETTING, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, QuerySetting: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ITransportSettingsInternal, Setting: ?*TRANSPORT_SETTING, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ITransportSettingsInternal, Setting: ?*TRANSPORT_SETTING, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITransportSettingsInternal_ApplySetting(self: *const T, Setting: ?*TRANSPORT_SETTING) HRESULT { return @as(*const ITransportSettingsInternal.VTable, @ptrCast(self.vtable)).ApplySetting(@as(*const ITransportSettingsInternal, @ptrCast(self)), Setting); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITransportSettingsInternal_QuerySetting(self: *const T, Setting: ?*TRANSPORT_SETTING) HRESULT { return @as(*const ITransportSettingsInternal.VTable, @ptrCast(self.vtable)).QuerySetting(@as(*const ITransportSettingsInternal, @ptrCast(self)), Setting); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_INetworkTransportSettings_Value = Guid.initString("5e7abb2c-f2c1-4a61-bd35-deb7a08ab0f1"); pub const IID_INetworkTransportSettings = &IID_INetworkTransportSettings_Value; pub const INetworkTransportSettings = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, ApplySetting: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const INetworkTransportSettings, SettingId: ?*const TRANSPORT_SETTING_ID, LengthIn: u32, ValueIn: [*:0]const u8, LengthOut: ?*u32, ValueOut: [*]?*u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const INetworkTransportSettings, SettingId: ?*const TRANSPORT_SETTING_ID, LengthIn: u32, ValueIn: [*:0]const u8, LengthOut: ?*u32, ValueOut: [*]?*u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, QuerySetting: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const INetworkTransportSettings, SettingId: ?*const TRANSPORT_SETTING_ID, LengthIn: u32, ValueIn: [*:0]const u8, LengthOut: ?*u32, ValueOut: [*]?*u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const INetworkTransportSettings, SettingId: ?*const TRANSPORT_SETTING_ID, LengthIn: u32, ValueIn: [*:0]const u8, LengthOut: ?*u32, ValueOut: [*]?*u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn INetworkTransportSettings_ApplySetting(self: *const T, SettingId: ?*const TRANSPORT_SETTING_ID, LengthIn: u32, ValueIn: [*:0]const u8, LengthOut: ?*u32, ValueOut: [*]?*u8) HRESULT { return @as(*const INetworkTransportSettings.VTable, @ptrCast(self.vtable)).ApplySetting(@as(*const INetworkTransportSettings, @ptrCast(self)), SettingId, LengthIn, ValueIn, LengthOut, ValueOut); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn INetworkTransportSettings_QuerySetting(self: *const T, SettingId: ?*const TRANSPORT_SETTING_ID, LengthIn: u32, ValueIn: [*:0]const u8, LengthOut: ?*u32, ValueOut: [*]?*u8) HRESULT { return @as(*const INetworkTransportSettings.VTable, @ptrCast(self.vtable)).QuerySetting(@as(*const INetworkTransportSettings, @ptrCast(self)), SettingId, LengthIn, ValueIn, LengthOut, ValueOut); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_INotificationTransportSync_Value = Guid.initString("79eb1402-0ab8-49c0-9e14-a1ae4ba93058"); pub const IID_INotificationTransportSync = &IID_INotificationTransportSync_Value; pub const INotificationTransportSync = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, CompleteDelivery: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const INotificationTransportSync, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const INotificationTransportSync, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Flush: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const INotificationTransportSync, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const INotificationTransportSync, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn INotificationTransportSync_CompleteDelivery(self: *const T) HRESULT { return @as(*const INotificationTransportSync.VTable, @ptrCast(self.vtable)).CompleteDelivery(@as(*const INotificationTransportSync, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn INotificationTransportSync_Flush(self: *const T) HRESULT { return @as(*const INotificationTransportSync.VTable, @ptrCast(self.vtable)).Flush(@as(*const INotificationTransportSync, @ptrCast(self))); } }; } pub usingnamespace MethodMixin(@This()); }; //-------------------------------------------------------------------------------- // Section: Functions (0) //-------------------------------------------------------------------------------- //-------------------------------------------------------------------------------- // Section: Unicode Aliases (0) //-------------------------------------------------------------------------------- const thismodule = @This(); pub usingnamespace switch (@import("../zig.zig").unicode_mode) { .ansi => struct {}, .wide => struct {}, .unspecified => if (@import("builtin").is_test) struct {} else struct {}, }; //-------------------------------------------------------------------------------- // Section: Imports (8) //-------------------------------------------------------------------------------- const Guid = @import("../zig.zig").Guid; const BSTR = @import("../foundation.zig").BSTR; const HRESULT = @import("../foundation.zig").HRESULT; const IDispatch = @import("../system/com.zig").IDispatch; const IUnknown = @import("../system/com.zig").IUnknown; const IVideoWindow = @import("../media/direct_show.zig").IVideoWindow; const TRANSPORT_SETTING_ID = @import("../networking/win_sock.zig").TRANSPORT_SETTING_ID; const VARIANT = @import("../system/com.zig").VARIANT; test { @setEvalBranchQuota(comptime @import("std").meta.declarations(@This()).len * 3); // reference all the pub declarations if (!@import("builtin").is_test) return; inline for (comptime @import("std").meta.declarations(@This())) |decl| { if (decl.is_pub) { _ = @field(@This(), decl.name); } } }
0
repos/capy/vendor/zigwin32/win32
repos/capy/vendor/zigwin32/win32/system/environment.zig
//! NOTE: this file is autogenerated, DO NOT MODIFY //-------------------------------------------------------------------------------- // Section: Constants (16) //-------------------------------------------------------------------------------- pub const ENCLAVE_RUNTIME_POLICY_ALLOW_FULL_DEBUG = @as(u32, 1); pub const ENCLAVE_RUNTIME_POLICY_ALLOW_DYNAMIC_DEBUG = @as(u32, 2); pub const ENCLAVE_UNSEAL_FLAG_STALE_KEY = @as(u32, 1); pub const ENCLAVE_FLAG_FULL_DEBUG_ENABLED = @as(u32, 1); pub const ENCLAVE_FLAG_DYNAMIC_DEBUG_ENABLED = @as(u32, 2); pub const ENCLAVE_FLAG_DYNAMIC_DEBUG_ACTIVE = @as(u32, 4); pub const VBS_ENCLAVE_REPORT_PKG_HEADER_VERSION_CURRENT = @as(u32, 1); pub const VBS_ENCLAVE_REPORT_SIGNATURE_SCHEME_SHA256_RSA_PSS_SHA256 = @as(u32, 1); pub const VBS_ENCLAVE_REPORT_VERSION_CURRENT = @as(u32, 1); pub const ENCLAVE_REPORT_DATA_LENGTH = @as(u32, 64); pub const VBS_ENCLAVE_VARDATA_INVALID = @as(u32, 0); pub const VBS_ENCLAVE_VARDATA_MODULE = @as(u32, 1); pub const ENCLAVE_VBS_BASIC_KEY_FLAG_MEASUREMENT = @as(u32, 1); pub const ENCLAVE_VBS_BASIC_KEY_FLAG_FAMILY_ID = @as(u32, 2); pub const ENCLAVE_VBS_BASIC_KEY_FLAG_IMAGE_ID = @as(u32, 4); pub const ENCLAVE_VBS_BASIC_KEY_FLAG_DEBUG_KEY = @as(u32, 8); //-------------------------------------------------------------------------------- // Section: Types (29) //-------------------------------------------------------------------------------- pub const ENCLAVE_SEALING_IDENTITY_POLICY = enum(i32) { INVALID = 0, EXACT_CODE = 1, SAME_PRIMARY_CODE = 2, SAME_IMAGE = 3, SAME_FAMILY = 4, SAME_AUTHOR = 5, }; pub const ENCLAVE_IDENTITY_POLICY_SEAL_INVALID = ENCLAVE_SEALING_IDENTITY_POLICY.INVALID; pub const ENCLAVE_IDENTITY_POLICY_SEAL_EXACT_CODE = ENCLAVE_SEALING_IDENTITY_POLICY.EXACT_CODE; pub const ENCLAVE_IDENTITY_POLICY_SEAL_SAME_PRIMARY_CODE = ENCLAVE_SEALING_IDENTITY_POLICY.SAME_PRIMARY_CODE; pub const ENCLAVE_IDENTITY_POLICY_SEAL_SAME_IMAGE = ENCLAVE_SEALING_IDENTITY_POLICY.SAME_IMAGE; pub const ENCLAVE_IDENTITY_POLICY_SEAL_SAME_FAMILY = ENCLAVE_SEALING_IDENTITY_POLICY.SAME_FAMILY; pub const ENCLAVE_IDENTITY_POLICY_SEAL_SAME_AUTHOR = ENCLAVE_SEALING_IDENTITY_POLICY.SAME_AUTHOR; pub const ENCLAVE_IDENTITY = extern struct { OwnerId: [32]u8 align(1), UniqueId: [32]u8 align(1), AuthorId: [32]u8 align(1), FamilyId: [16]u8 align(1), ImageId: [16]u8 align(1), EnclaveSvn: u32 align(1), SecureKernelSvn: u32 align(1), PlatformSvn: u32 align(1), Flags: u32 align(1), SigningLevel: u32 align(1), EnclaveType: u32 align(1), }; pub const VBS_ENCLAVE_REPORT_PKG_HEADER = extern struct { PackageSize: u32 align(1), Version: u32 align(1), SignatureScheme: u32 align(1), SignedStatementSize: u32 align(1), SignatureSize: u32 align(1), Reserved: u32 align(1), }; pub const VBS_ENCLAVE_REPORT = extern struct { ReportSize: u32 align(1), ReportVersion: u32 align(1), EnclaveData: [64]u8 align(1), EnclaveIdentity: ENCLAVE_IDENTITY align(1), }; pub const VBS_ENCLAVE_REPORT_VARDATA_HEADER = extern struct { DataType: u32 align(1), Size: u32 align(1), }; pub const VBS_ENCLAVE_REPORT_MODULE = extern struct { Header: VBS_ENCLAVE_REPORT_VARDATA_HEADER align(1), UniqueId: [32]u8 align(1), AuthorId: [32]u8 align(1), FamilyId: [16]u8 align(1), ImageId: [16]u8 align(1), Svn: u32 align(1), ModuleName: [1]u16 align(1), }; pub const ENCLAVE_INFORMATION = extern struct { EnclaveType: u32, Reserved: u32, BaseAddress: ?*anyopaque, Size: usize, Identity: ENCLAVE_IDENTITY, }; pub const VBS_BASIC_ENCLAVE_THREAD_DESCRIPTOR32 = extern struct { ThreadContext: [4]u32, EntryPoint: u32, StackPointer: u32, ExceptionEntryPoint: u32, ExceptionStack: u32, ExceptionActive: u32, }; pub const VBS_BASIC_ENCLAVE_THREAD_DESCRIPTOR64 = extern struct { ThreadContext: [4]u64, EntryPoint: u64, StackPointer: u64, ExceptionEntryPoint: u64, ExceptionStack: u64, ExceptionActive: u32, }; pub const VBS_BASIC_ENCLAVE_EXCEPTION_AMD64 = extern struct { ExceptionCode: u32, NumberParameters: u32, ExceptionInformation: [3]usize, ExceptionRAX: usize, ExceptionRCX: usize, ExceptionRIP: usize, ExceptionRFLAGS: usize, ExceptionRSP: usize, }; pub const VBS_BASIC_ENCLAVE_BASIC_CALL_RETURN_FROM_ENCLAVE = switch (@import("builtin").zig_backend) { .stage1 => fn ( ReturnValue: usize, ) callconv(@import("std").os.windows.WINAPI) void, else => *const fn ( ReturnValue: usize, ) callconv(@import("std").os.windows.WINAPI) void, }; pub const VBS_BASIC_ENCLAVE_BASIC_CALL_COMMIT_PAGES = switch (@import("builtin").zig_backend) { .stage1 => fn ( EnclaveAddress: ?*anyopaque, NumberOfBytes: usize, SourceAddress: ?*anyopaque, PageProtection: u32, ) callconv(@import("std").os.windows.WINAPI) i32, else => *const fn ( EnclaveAddress: ?*anyopaque, NumberOfBytes: usize, SourceAddress: ?*anyopaque, PageProtection: u32, ) callconv(@import("std").os.windows.WINAPI) i32, }; pub const VBS_BASIC_ENCLAVE_BASIC_CALL_DECOMMIT_PAGES = switch (@import("builtin").zig_backend) { .stage1 => fn ( EnclaveAddress: ?*anyopaque, NumberOfBytes: usize, ) callconv(@import("std").os.windows.WINAPI) i32, else => *const fn ( EnclaveAddress: ?*anyopaque, NumberOfBytes: usize, ) callconv(@import("std").os.windows.WINAPI) i32, }; pub const VBS_BASIC_ENCLAVE_BASIC_CALL_PROTECT_PAGES = switch (@import("builtin").zig_backend) { .stage1 => fn ( EnclaveAddress: ?*anyopaque, NumberOfytes: usize, PageProtection: u32, ) callconv(@import("std").os.windows.WINAPI) i32, else => *const fn ( EnclaveAddress: ?*anyopaque, NumberOfytes: usize, PageProtection: u32, ) callconv(@import("std").os.windows.WINAPI) i32, }; pub const VBS_BASIC_ENCLAVE_BASIC_CALL_GET_ENCLAVE_INFORMATION = switch (@import("builtin").zig_backend) { .stage1 => fn ( EnclaveInfo: ?*ENCLAVE_INFORMATION, ) callconv(@import("std").os.windows.WINAPI) i32, else => *const fn ( EnclaveInfo: ?*ENCLAVE_INFORMATION, ) callconv(@import("std").os.windows.WINAPI) i32, }; pub const ENCLAVE_VBS_BASIC_KEY_REQUEST = extern struct { RequestSize: u32, Flags: u32, EnclaveSVN: u32, SystemKeyID: u32, CurrentSystemKeyID: u32, }; pub const VBS_BASIC_ENCLAVE_BASIC_CALL_GENERATE_KEY = switch (@import("builtin").zig_backend) { .stage1 => fn ( KeyRequest: ?*ENCLAVE_VBS_BASIC_KEY_REQUEST, RequestedKeySize: u32, ReturnedKey: [*:0]u8, ) callconv(@import("std").os.windows.WINAPI) i32, else => *const fn ( KeyRequest: ?*ENCLAVE_VBS_BASIC_KEY_REQUEST, RequestedKeySize: u32, ReturnedKey: [*:0]u8, ) callconv(@import("std").os.windows.WINAPI) i32, }; pub const VBS_BASIC_ENCLAVE_BASIC_CALL_GENERATE_REPORT = switch (@import("builtin").zig_backend) { .stage1 => fn ( EnclaveData: ?*const u8, // TODO: what to do with BytesParamIndex 2? Report: ?*anyopaque, BufferSize: u32, OutputSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) i32, else => *const fn ( EnclaveData: ?*const u8, // TODO: what to do with BytesParamIndex 2? Report: ?*anyopaque, BufferSize: u32, OutputSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) i32, }; pub const VBS_BASIC_ENCLAVE_BASIC_CALL_VERIFY_REPORT = switch (@import("builtin").zig_backend) { .stage1 => fn ( // TODO: what to do with BytesParamIndex 1? Report: ?*const anyopaque, ReportSize: u32, ) callconv(@import("std").os.windows.WINAPI) i32, else => *const fn ( // TODO: what to do with BytesParamIndex 1? Report: ?*const anyopaque, ReportSize: u32, ) callconv(@import("std").os.windows.WINAPI) i32, }; pub const VBS_BASIC_ENCLAVE_BASIC_CALL_GENERATE_RANDOM_DATA = switch (@import("builtin").zig_backend) { .stage1 => fn ( // TODO: what to do with BytesParamIndex 1? Buffer: ?*u8, NumberOfBytes: u32, Generation: ?*u64, ) callconv(@import("std").os.windows.WINAPI) i32, else => *const fn ( // TODO: what to do with BytesParamIndex 1? Buffer: ?*u8, NumberOfBytes: u32, Generation: ?*u64, ) callconv(@import("std").os.windows.WINAPI) i32, }; pub const VBS_BASIC_ENCLAVE_SYSCALL_PAGE = extern struct { ReturnFromEnclave: ?VBS_BASIC_ENCLAVE_BASIC_CALL_RETURN_FROM_ENCLAVE, ReturnFromException: ?VBS_BASIC_ENCLAVE_BASIC_CALL_RETURN_FROM_EXCEPTION, TerminateThread: ?VBS_BASIC_ENCLAVE_BASIC_CALL_TERMINATE_THREAD, InterruptThread: ?VBS_BASIC_ENCLAVE_BASIC_CALL_INTERRUPT_THREAD, CommitPages: ?VBS_BASIC_ENCLAVE_BASIC_CALL_COMMIT_PAGES, DecommitPages: ?VBS_BASIC_ENCLAVE_BASIC_CALL_DECOMMIT_PAGES, ProtectPages: ?VBS_BASIC_ENCLAVE_BASIC_CALL_PROTECT_PAGES, CreateThread: ?VBS_BASIC_ENCLAVE_BASIC_CALL_CREATE_THREAD, GetEnclaveInformation: ?VBS_BASIC_ENCLAVE_BASIC_CALL_GET_ENCLAVE_INFORMATION, GenerateKey: ?VBS_BASIC_ENCLAVE_BASIC_CALL_GENERATE_KEY, GenerateReport: ?VBS_BASIC_ENCLAVE_BASIC_CALL_GENERATE_REPORT, VerifyReport: ?VBS_BASIC_ENCLAVE_BASIC_CALL_VERIFY_REPORT, GenerateRandomData: ?VBS_BASIC_ENCLAVE_BASIC_CALL_GENERATE_RANDOM_DATA, }; pub const VBS_BASIC_ENCLAVE_BASIC_CALL_RETURN_FROM_EXCEPTION = switch (@import("../zig.zig").arch) { .X64 => switch (@import("builtin").zig_backend) { .stage1 => fn ( ExceptionRecord: ?*VBS_BASIC_ENCLAVE_EXCEPTION_AMD64, ) callconv(@import("std").os.windows.WINAPI) i32, else => *const fn ( ExceptionRecord: ?*VBS_BASIC_ENCLAVE_EXCEPTION_AMD64, ) callconv(@import("std").os.windows.WINAPI) i32, }, .X86, .Arm64 => switch (@import("builtin").zig_backend) { .stage1 => fn ( ExceptionRecord: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) i32, else => *const fn ( ExceptionRecord: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) i32, }, }; pub const VBS_BASIC_ENCLAVE_BASIC_CALL_TERMINATE_THREAD = switch (@import("../zig.zig").arch) { .X64, .Arm64 => switch (@import("builtin").zig_backend) { .stage1 => fn ( ThreadDescriptor: ?*VBS_BASIC_ENCLAVE_THREAD_DESCRIPTOR64, ) callconv(@import("std").os.windows.WINAPI) i32, else => *const fn ( ThreadDescriptor: ?*VBS_BASIC_ENCLAVE_THREAD_DESCRIPTOR64, ) callconv(@import("std").os.windows.WINAPI) i32, }, .X86 => switch (@import("builtin").zig_backend) { .stage1 => fn ( ThreadDescriptor: ?*VBS_BASIC_ENCLAVE_THREAD_DESCRIPTOR32, ) callconv(@import("std").os.windows.WINAPI) i32, else => *const fn ( ThreadDescriptor: ?*VBS_BASIC_ENCLAVE_THREAD_DESCRIPTOR32, ) callconv(@import("std").os.windows.WINAPI) i32, }, }; pub const VBS_BASIC_ENCLAVE_BASIC_CALL_INTERRUPT_THREAD = switch (@import("../zig.zig").arch) { .X64, .Arm64 => switch (@import("builtin").zig_backend) { .stage1 => fn ( ThreadDescriptor: ?*VBS_BASIC_ENCLAVE_THREAD_DESCRIPTOR64, ) callconv(@import("std").os.windows.WINAPI) i32, else => *const fn ( ThreadDescriptor: ?*VBS_BASIC_ENCLAVE_THREAD_DESCRIPTOR64, ) callconv(@import("std").os.windows.WINAPI) i32, }, .X86 => switch (@import("builtin").zig_backend) { .stage1 => fn ( ThreadDescriptor: ?*VBS_BASIC_ENCLAVE_THREAD_DESCRIPTOR32, ) callconv(@import("std").os.windows.WINAPI) i32, else => *const fn ( ThreadDescriptor: ?*VBS_BASIC_ENCLAVE_THREAD_DESCRIPTOR32, ) callconv(@import("std").os.windows.WINAPI) i32, }, }; pub const VBS_BASIC_ENCLAVE_BASIC_CALL_CREATE_THREAD = switch (@import("../zig.zig").arch) { .X64, .Arm64 => switch (@import("builtin").zig_backend) { .stage1 => fn ( ThreadDescriptor: ?*VBS_BASIC_ENCLAVE_THREAD_DESCRIPTOR64, ) callconv(@import("std").os.windows.WINAPI) i32, else => *const fn ( ThreadDescriptor: ?*VBS_BASIC_ENCLAVE_THREAD_DESCRIPTOR64, ) callconv(@import("std").os.windows.WINAPI) i32, }, .X86 => switch (@import("builtin").zig_backend) { .stage1 => fn ( ThreadDescriptor: ?*VBS_BASIC_ENCLAVE_THREAD_DESCRIPTOR32, ) callconv(@import("std").os.windows.WINAPI) i32, else => *const fn ( ThreadDescriptor: ?*VBS_BASIC_ENCLAVE_THREAD_DESCRIPTOR32, ) callconv(@import("std").os.windows.WINAPI) i32, }, }; //-------------------------------------------------------------------------------- // Section: Functions (37) //-------------------------------------------------------------------------------- pub extern "kernel32" fn SetEnvironmentStringsW( NewEnvironment: ?[*]u16, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "kernel32" fn GetCommandLineA() callconv(@import("std").os.windows.WINAPI) ?PSTR; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "kernel32" fn GetCommandLineW() callconv(@import("std").os.windows.WINAPI) ?PWSTR; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "kernel32" fn GetEnvironmentStrings() callconv(@import("std").os.windows.WINAPI) ?PSTR; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "kernel32" fn GetEnvironmentStringsW() callconv(@import("std").os.windows.WINAPI) ?PWSTR; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "kernel32" fn FreeEnvironmentStringsA( penv: ?[*]u8, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "kernel32" fn FreeEnvironmentStringsW( penv: ?[*]u16, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "kernel32" fn GetEnvironmentVariableA( lpName: ?[*:0]const u8, lpBuffer: ?[*:0]u8, nSize: u32, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "kernel32" fn GetEnvironmentVariableW( lpName: ?[*:0]const u16, lpBuffer: ?[*:0]u16, nSize: u32, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "kernel32" fn SetEnvironmentVariableA( lpName: ?[*:0]const u8, lpValue: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "kernel32" fn SetEnvironmentVariableW( lpName: ?[*:0]const u16, lpValue: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows5.0' pub extern "kernel32" fn ExpandEnvironmentStringsA( lpSrc: ?[*:0]const u8, lpDst: ?[*:0]u8, nSize: u32, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'windows5.0' pub extern "kernel32" fn ExpandEnvironmentStringsW( lpSrc: ?[*:0]const u16, lpDst: ?[*:0]u16, nSize: u32, ) callconv(@import("std").os.windows.WINAPI) u32; pub extern "kernel32" fn SetCurrentDirectoryA( lpPathName: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) BOOL; pub extern "kernel32" fn SetCurrentDirectoryW( lpPathName: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) BOOL; pub extern "kernel32" fn GetCurrentDirectoryA( nBufferLength: u32, lpBuffer: ?[*:0]u8, ) callconv(@import("std").os.windows.WINAPI) u32; pub extern "kernel32" fn GetCurrentDirectoryW( nBufferLength: u32, lpBuffer: ?[*:0]u16, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'windows6.0.6000' pub extern "kernel32" fn NeedCurrentDirectoryForExePathA( ExeName: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows6.0.6000' pub extern "kernel32" fn NeedCurrentDirectoryForExePathW( ExeName: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows5.0' pub extern "userenv" fn CreateEnvironmentBlock( lpEnvironment: ?*?*anyopaque, hToken: ?HANDLE, bInherit: BOOL, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows5.0' pub extern "userenv" fn DestroyEnvironmentBlock( lpEnvironment: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows5.0' pub extern "userenv" fn ExpandEnvironmentStringsForUserA( hToken: ?HANDLE, lpSrc: ?[*:0]const u8, lpDest: [*:0]u8, dwSize: u32, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows5.0' pub extern "userenv" fn ExpandEnvironmentStringsForUserW( hToken: ?HANDLE, lpSrc: ?[*:0]const u16, lpDest: [*:0]u16, dwSize: u32, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows10.0.10240' pub extern "kernel32" fn IsEnclaveTypeSupported( flEnclaveType: u32, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows10.0.10240' pub extern "kernel32" fn CreateEnclave( hProcess: ?HANDLE, lpAddress: ?*anyopaque, dwSize: usize, dwInitialCommitment: usize, flEnclaveType: u32, // TODO: what to do with BytesParamIndex 6? lpEnclaveInformation: ?*const anyopaque, dwInfoLength: u32, lpEnclaveError: ?*u32, ) callconv(@import("std").os.windows.WINAPI) ?*anyopaque; // TODO: this type is limited to platform 'windows10.0.10240' pub extern "kernel32" fn LoadEnclaveData( hProcess: ?HANDLE, lpAddress: ?*anyopaque, // TODO: what to do with BytesParamIndex 3? lpBuffer: ?*const anyopaque, nSize: usize, flProtect: u32, // TODO: what to do with BytesParamIndex 6? lpPageInformation: ?*const anyopaque, dwInfoLength: u32, lpNumberOfBytesWritten: ?*usize, lpEnclaveError: ?*u32, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows10.0.10240' pub extern "kernel32" fn InitializeEnclave( hProcess: ?HANDLE, lpAddress: ?*anyopaque, // TODO: what to do with BytesParamIndex 3? lpEnclaveInformation: ?*const anyopaque, dwInfoLength: u32, lpEnclaveError: ?*u32, ) callconv(@import("std").os.windows.WINAPI) BOOL; pub extern "api-ms-win-core-enclave-l1-1-1" fn LoadEnclaveImageA( lpEnclaveAddress: ?*anyopaque, lpImageName: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows10.0.16299' pub extern "api-ms-win-core-enclave-l1-1-1" fn LoadEnclaveImageW( lpEnclaveAddress: ?*anyopaque, lpImageName: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows10.0.16299' pub extern "vertdll" fn CallEnclave( lpRoutine: isize, lpParameter: ?*anyopaque, fWaitForThread: BOOL, lpReturnValue: ?*?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows10.0.16299' pub extern "vertdll" fn TerminateEnclave( lpAddress: ?*anyopaque, fWait: BOOL, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows10.0.16299' pub extern "api-ms-win-core-enclave-l1-1-1" fn DeleteEnclave( lpAddress: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows10.0.16299' pub extern "vertdll" fn EnclaveGetAttestationReport( EnclaveData: ?*const u8, // TODO: what to do with BytesParamIndex 2? Report: ?*anyopaque, BufferSize: u32, OutputSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT; // TODO: this type is limited to platform 'windows10.0.16299' pub extern "vertdll" fn EnclaveVerifyAttestationReport( EnclaveType: u32, // TODO: what to do with BytesParamIndex 2? Report: ?*const anyopaque, ReportSize: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT; // TODO: this type is limited to platform 'windows10.0.16299' pub extern "vertdll" fn EnclaveSealData( // TODO: what to do with BytesParamIndex 1? DataToEncrypt: ?*const anyopaque, DataToEncryptSize: u32, IdentityPolicy: ENCLAVE_SEALING_IDENTITY_POLICY, RuntimePolicy: u32, // TODO: what to do with BytesParamIndex 5? ProtectedBlob: ?*anyopaque, BufferSize: u32, ProtectedBlobSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT; // TODO: this type is limited to platform 'windows10.0.16299' pub extern "vertdll" fn EnclaveUnsealData( // TODO: what to do with BytesParamIndex 1? ProtectedBlob: ?*const anyopaque, ProtectedBlobSize: u32, // TODO: what to do with BytesParamIndex 3? DecryptedData: ?*anyopaque, BufferSize: u32, DecryptedDataSize: ?*u32, SealingIdentity: ?*ENCLAVE_IDENTITY, UnsealingFlags: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT; // TODO: this type is limited to platform 'windows10.0.16299' pub extern "vertdll" fn EnclaveGetEnclaveInformation( InformationSize: u32, // TODO: what to do with BytesParamIndex 0? EnclaveInformation: ?*ENCLAVE_INFORMATION, ) callconv(@import("std").os.windows.WINAPI) HRESULT; //-------------------------------------------------------------------------------- // Section: Unicode Aliases (10) //-------------------------------------------------------------------------------- const thismodule = @This(); pub usingnamespace switch (@import("../zig.zig").unicode_mode) { .ansi => struct { pub const GetCommandLine = thismodule.GetCommandLineA; pub const FreeEnvironmentStrings = thismodule.FreeEnvironmentStringsA; pub const GetEnvironmentVariable = thismodule.GetEnvironmentVariableA; pub const SetEnvironmentVariable = thismodule.SetEnvironmentVariableA; pub const ExpandEnvironmentStrings = thismodule.ExpandEnvironmentStringsA; pub const SetCurrentDirectory = thismodule.SetCurrentDirectoryA; pub const GetCurrentDirectory = thismodule.GetCurrentDirectoryA; pub const NeedCurrentDirectoryForExePath = thismodule.NeedCurrentDirectoryForExePathA; pub const ExpandEnvironmentStringsForUser = thismodule.ExpandEnvironmentStringsForUserA; pub const LoadEnclaveImage = thismodule.LoadEnclaveImageA; }, .wide => struct { pub const GetCommandLine = thismodule.GetCommandLineW; pub const FreeEnvironmentStrings = thismodule.FreeEnvironmentStringsW; pub const GetEnvironmentVariable = thismodule.GetEnvironmentVariableW; pub const SetEnvironmentVariable = thismodule.SetEnvironmentVariableW; pub const ExpandEnvironmentStrings = thismodule.ExpandEnvironmentStringsW; pub const SetCurrentDirectory = thismodule.SetCurrentDirectoryW; pub const GetCurrentDirectory = thismodule.GetCurrentDirectoryW; pub const NeedCurrentDirectoryForExePath = thismodule.NeedCurrentDirectoryForExePathW; pub const ExpandEnvironmentStringsForUser = thismodule.ExpandEnvironmentStringsForUserW; pub const LoadEnclaveImage = thismodule.LoadEnclaveImageW; }, .unspecified => if (@import("builtin").is_test) struct { pub const GetCommandLine = *opaque {}; pub const FreeEnvironmentStrings = *opaque {}; pub const GetEnvironmentVariable = *opaque {}; pub const SetEnvironmentVariable = *opaque {}; pub const ExpandEnvironmentStrings = *opaque {}; pub const SetCurrentDirectory = *opaque {}; pub const GetCurrentDirectory = *opaque {}; pub const NeedCurrentDirectoryForExePath = *opaque {}; pub const ExpandEnvironmentStringsForUser = *opaque {}; pub const LoadEnclaveImage = *opaque {}; } else struct { pub const GetCommandLine = @compileError("'GetCommandLine' requires that UNICODE be set to true or false in the root module"); pub const FreeEnvironmentStrings = @compileError("'FreeEnvironmentStrings' requires that UNICODE be set to true or false in the root module"); pub const GetEnvironmentVariable = @compileError("'GetEnvironmentVariable' requires that UNICODE be set to true or false in the root module"); pub const SetEnvironmentVariable = @compileError("'SetEnvironmentVariable' requires that UNICODE be set to true or false in the root module"); pub const ExpandEnvironmentStrings = @compileError("'ExpandEnvironmentStrings' requires that UNICODE be set to true or false in the root module"); pub const SetCurrentDirectory = @compileError("'SetCurrentDirectory' requires that UNICODE be set to true or false in the root module"); pub const GetCurrentDirectory = @compileError("'GetCurrentDirectory' requires that UNICODE be set to true or false in the root module"); pub const NeedCurrentDirectoryForExePath = @compileError("'NeedCurrentDirectoryForExePath' requires that UNICODE be set to true or false in the root module"); pub const ExpandEnvironmentStringsForUser = @compileError("'ExpandEnvironmentStringsForUser' requires that UNICODE be set to true or false in the root module"); pub const LoadEnclaveImage = @compileError("'LoadEnclaveImage' requires that UNICODE be set to true or false in the root module"); }, }; //-------------------------------------------------------------------------------- // Section: Imports (5) //-------------------------------------------------------------------------------- const BOOL = @import("../foundation.zig").BOOL; const HANDLE = @import("../foundation.zig").HANDLE; const HRESULT = @import("../foundation.zig").HRESULT; const PSTR = @import("../foundation.zig").PSTR; const PWSTR = @import("../foundation.zig").PWSTR; test { // The following '_ = <FuncPtrType>' lines are a workaround for https://github.com/ziglang/zig/issues/4476 if (@hasDecl(@This(), "VBS_BASIC_ENCLAVE_BASIC_CALL_RETURN_FROM_ENCLAVE")) { _ = VBS_BASIC_ENCLAVE_BASIC_CALL_RETURN_FROM_ENCLAVE; } if (@hasDecl(@This(), "VBS_BASIC_ENCLAVE_BASIC_CALL_COMMIT_PAGES")) { _ = VBS_BASIC_ENCLAVE_BASIC_CALL_COMMIT_PAGES; } if (@hasDecl(@This(), "VBS_BASIC_ENCLAVE_BASIC_CALL_DECOMMIT_PAGES")) { _ = VBS_BASIC_ENCLAVE_BASIC_CALL_DECOMMIT_PAGES; } if (@hasDecl(@This(), "VBS_BASIC_ENCLAVE_BASIC_CALL_PROTECT_PAGES")) { _ = VBS_BASIC_ENCLAVE_BASIC_CALL_PROTECT_PAGES; } if (@hasDecl(@This(), "VBS_BASIC_ENCLAVE_BASIC_CALL_GET_ENCLAVE_INFORMATION")) { _ = VBS_BASIC_ENCLAVE_BASIC_CALL_GET_ENCLAVE_INFORMATION; } if (@hasDecl(@This(), "VBS_BASIC_ENCLAVE_BASIC_CALL_GENERATE_KEY")) { _ = VBS_BASIC_ENCLAVE_BASIC_CALL_GENERATE_KEY; } if (@hasDecl(@This(), "VBS_BASIC_ENCLAVE_BASIC_CALL_GENERATE_REPORT")) { _ = VBS_BASIC_ENCLAVE_BASIC_CALL_GENERATE_REPORT; } if (@hasDecl(@This(), "VBS_BASIC_ENCLAVE_BASIC_CALL_VERIFY_REPORT")) { _ = VBS_BASIC_ENCLAVE_BASIC_CALL_VERIFY_REPORT; } if (@hasDecl(@This(), "VBS_BASIC_ENCLAVE_BASIC_CALL_GENERATE_RANDOM_DATA")) { _ = VBS_BASIC_ENCLAVE_BASIC_CALL_GENERATE_RANDOM_DATA; } if (@hasDecl(@This(), "VBS_BASIC_ENCLAVE_BASIC_CALL_RETURN_FROM_EXCEPTION")) { _ = VBS_BASIC_ENCLAVE_BASIC_CALL_RETURN_FROM_EXCEPTION; } if (@hasDecl(@This(), "VBS_BASIC_ENCLAVE_BASIC_CALL_RETURN_FROM_EXCEPTION")) { _ = VBS_BASIC_ENCLAVE_BASIC_CALL_RETURN_FROM_EXCEPTION; } if (@hasDecl(@This(), "VBS_BASIC_ENCLAVE_BASIC_CALL_TERMINATE_THREAD")) { _ = VBS_BASIC_ENCLAVE_BASIC_CALL_TERMINATE_THREAD; } if (@hasDecl(@This(), "VBS_BASIC_ENCLAVE_BASIC_CALL_TERMINATE_THREAD")) { _ = VBS_BASIC_ENCLAVE_BASIC_CALL_TERMINATE_THREAD; } if (@hasDecl(@This(), "VBS_BASIC_ENCLAVE_BASIC_CALL_INTERRUPT_THREAD")) { _ = VBS_BASIC_ENCLAVE_BASIC_CALL_INTERRUPT_THREAD; } if (@hasDecl(@This(), "VBS_BASIC_ENCLAVE_BASIC_CALL_INTERRUPT_THREAD")) { _ = VBS_BASIC_ENCLAVE_BASIC_CALL_INTERRUPT_THREAD; } if (@hasDecl(@This(), "VBS_BASIC_ENCLAVE_BASIC_CALL_CREATE_THREAD")) { _ = VBS_BASIC_ENCLAVE_BASIC_CALL_CREATE_THREAD; } if (@hasDecl(@This(), "VBS_BASIC_ENCLAVE_BASIC_CALL_CREATE_THREAD")) { _ = VBS_BASIC_ENCLAVE_BASIC_CALL_CREATE_THREAD; } @setEvalBranchQuota(comptime @import("std").meta.declarations(@This()).len * 3); // reference all the pub declarations if (!@import("builtin").is_test) return; inline for (comptime @import("std").meta.declarations(@This())) |decl| { if (decl.is_pub) { _ = @field(@This(), decl.name); } } }
0
repos/capy/vendor/zigwin32/win32
repos/capy/vendor/zigwin32/win32/system/remote_desktop.zig
//! NOTE: this file is autogenerated, DO NOT MODIFY //-------------------------------------------------------------------------------- // Section: Constants (259) //-------------------------------------------------------------------------------- pub const WTS_DOMAIN_LENGTH = @as(u32, 255); pub const WTS_USERNAME_LENGTH = @as(u32, 255); pub const WTS_PASSWORD_LENGTH = @as(u32, 255); pub const WTS_DIRECTORY_LENGTH = @as(u32, 256); pub const WTS_INITIALPROGRAM_LENGTH = @as(u32, 256); pub const WTS_PROTOCOL_NAME_LENGTH = @as(u32, 8); pub const WTS_DRIVER_NAME_LENGTH = @as(u32, 8); pub const WTS_DEVICE_NAME_LENGTH = @as(u32, 19); pub const WTS_IMEFILENAME_LENGTH = @as(u32, 32); pub const WTS_CLIENTNAME_LENGTH = @as(u32, 20); pub const WTS_CLIENTADDRESS_LENGTH = @as(u32, 30); pub const WTS_CLIENT_PRODUCT_ID_LENGTH = @as(u32, 32); pub const WTS_MAX_PROTOCOL_CACHE = @as(u32, 4); pub const WTS_MAX_CACHE_RESERVED = @as(u32, 20); pub const WTS_MAX_RESERVED = @as(u32, 100); pub const WTS_MAX_COUNTERS = @as(u32, 100); pub const WTS_MAX_DISPLAY_IOCTL_DATA = @as(u32, 256); pub const WTS_PERF_DISABLE_NOTHING = @as(u32, 0); pub const WTS_PERF_DISABLE_WALLPAPER = @as(u32, 1); pub const WTS_PERF_DISABLE_FULLWINDOWDRAG = @as(u32, 2); pub const WTS_PERF_DISABLE_MENUANIMATIONS = @as(u32, 4); pub const WTS_PERF_DISABLE_THEMING = @as(u32, 8); pub const WTS_PERF_ENABLE_ENHANCED_GRAPHICS = @as(u32, 16); pub const WTS_PERF_DISABLE_CURSOR_SHADOW = @as(u32, 32); pub const WTS_PERF_DISABLE_CURSORSETTINGS = @as(u32, 64); pub const WTS_PERF_ENABLE_FONT_SMOOTHING = @as(u32, 128); pub const WTS_PERF_ENABLE_DESKTOP_COMPOSITION = @as(u32, 256); pub const WTS_VALUE_TYPE_ULONG = @as(u32, 1); pub const WTS_VALUE_TYPE_STRING = @as(u32, 2); pub const WTS_VALUE_TYPE_BINARY = @as(u32, 3); pub const WTS_VALUE_TYPE_GUID = @as(u32, 4); pub const WTS_KEY_EXCHANGE_ALG_RSA = @as(u32, 1); pub const WTS_KEY_EXCHANGE_ALG_DH = @as(u32, 2); pub const WTS_LICENSE_PROTOCOL_VERSION = @as(u32, 65536); pub const WTS_LICENSE_PREAMBLE_VERSION = @as(u32, 3); pub const WRDS_DOMAIN_LENGTH = @as(u32, 255); pub const WRDS_USERNAME_LENGTH = @as(u32, 255); pub const WRDS_PASSWORD_LENGTH = @as(u32, 255); pub const WRDS_DIRECTORY_LENGTH = @as(u32, 256); pub const WRDS_INITIALPROGRAM_LENGTH = @as(u32, 256); pub const WRDS_PROTOCOL_NAME_LENGTH = @as(u32, 8); pub const WRDS_DRIVER_NAME_LENGTH = @as(u32, 8); pub const WRDS_DEVICE_NAME_LENGTH = @as(u32, 19); pub const WRDS_IMEFILENAME_LENGTH = @as(u32, 32); pub const WRDS_CLIENTNAME_LENGTH = @as(u32, 20); pub const WRDS_CLIENTADDRESS_LENGTH = @as(u32, 30); pub const WRDS_CLIENT_PRODUCT_ID_LENGTH = @as(u32, 32); pub const WRDS_MAX_PROTOCOL_CACHE = @as(u32, 4); pub const WRDS_MAX_CACHE_RESERVED = @as(u32, 20); pub const WRDS_MAX_RESERVED = @as(u32, 100); pub const WRDS_MAX_COUNTERS = @as(u32, 100); pub const WRDS_MAX_DISPLAY_IOCTL_DATA = @as(u32, 256); pub const WRDS_PERF_DISABLE_NOTHING = @as(u32, 0); pub const WRDS_PERF_DISABLE_WALLPAPER = @as(u32, 1); pub const WRDS_PERF_DISABLE_FULLWINDOWDRAG = @as(u32, 2); pub const WRDS_PERF_DISABLE_MENUANIMATIONS = @as(u32, 4); pub const WRDS_PERF_DISABLE_THEMING = @as(u32, 8); pub const WRDS_PERF_ENABLE_ENHANCED_GRAPHICS = @as(u32, 16); pub const WRDS_PERF_DISABLE_CURSOR_SHADOW = @as(u32, 32); pub const WRDS_PERF_DISABLE_CURSORSETTINGS = @as(u32, 64); pub const WRDS_PERF_ENABLE_FONT_SMOOTHING = @as(u32, 128); pub const WRDS_PERF_ENABLE_DESKTOP_COMPOSITION = @as(u32, 256); pub const WRDS_VALUE_TYPE_ULONG = @as(u32, 1); pub const WRDS_VALUE_TYPE_STRING = @as(u32, 2); pub const WRDS_VALUE_TYPE_BINARY = @as(u32, 3); pub const WRDS_VALUE_TYPE_GUID = @as(u32, 4); pub const WRDS_KEY_EXCHANGE_ALG_RSA = @as(u32, 1); pub const WRDS_KEY_EXCHANGE_ALG_DH = @as(u32, 2); pub const WRDS_LICENSE_PROTOCOL_VERSION = @as(u32, 65536); pub const WRDS_LICENSE_PREAMBLE_VERSION = @as(u32, 3); pub const SINGLE_SESSION = @as(u32, 1); pub const FORCE_REJOIN = @as(u32, 2); pub const FORCE_REJOIN_IN_CLUSTERMODE = @as(u32, 3); pub const RESERVED_FOR_LEGACY = @as(u32, 4); pub const KEEP_EXISTING_SESSIONS = @as(u32, 8); pub const CHANNEL_EVENT_INITIALIZED = @as(u32, 0); pub const CHANNEL_EVENT_CONNECTED = @as(u32, 1); pub const CHANNEL_EVENT_V1_CONNECTED = @as(u32, 2); pub const CHANNEL_EVENT_DISCONNECTED = @as(u32, 3); pub const CHANNEL_EVENT_TERMINATED = @as(u32, 4); pub const CHANNEL_EVENT_DATA_RECEIVED = @as(u32, 10); pub const CHANNEL_EVENT_WRITE_COMPLETE = @as(u32, 11); pub const CHANNEL_EVENT_WRITE_CANCELLED = @as(u32, 12); pub const CHANNEL_RC_OK = @as(u32, 0); pub const CHANNEL_RC_ALREADY_INITIALIZED = @as(u32, 1); pub const CHANNEL_RC_NOT_INITIALIZED = @as(u32, 2); pub const CHANNEL_RC_ALREADY_CONNECTED = @as(u32, 3); pub const CHANNEL_RC_NOT_CONNECTED = @as(u32, 4); pub const CHANNEL_RC_TOO_MANY_CHANNELS = @as(u32, 5); pub const CHANNEL_RC_BAD_CHANNEL = @as(u32, 6); pub const CHANNEL_RC_BAD_CHANNEL_HANDLE = @as(u32, 7); pub const CHANNEL_RC_NO_BUFFER = @as(u32, 8); pub const CHANNEL_RC_BAD_INIT_HANDLE = @as(u32, 9); pub const CHANNEL_RC_NOT_OPEN = @as(u32, 10); pub const CHANNEL_RC_BAD_PROC = @as(u32, 11); pub const CHANNEL_RC_NO_MEMORY = @as(u32, 12); pub const CHANNEL_RC_UNKNOWN_CHANNEL_NAME = @as(u32, 13); pub const CHANNEL_RC_ALREADY_OPEN = @as(u32, 14); pub const CHANNEL_RC_NOT_IN_VIRTUALCHANNELENTRY = @as(u32, 15); pub const CHANNEL_RC_NULL_DATA = @as(u32, 16); pub const CHANNEL_RC_ZERO_LENGTH = @as(u32, 17); pub const CHANNEL_RC_INVALID_INSTANCE = @as(u32, 18); pub const CHANNEL_RC_UNSUPPORTED_VERSION = @as(u32, 19); pub const CHANNEL_RC_INITIALIZATION_ERROR = @as(u32, 20); pub const VIRTUAL_CHANNEL_VERSION_WIN2000 = @as(u32, 1); pub const CHANNEL_CHUNK_LENGTH = @as(u32, 1600); pub const CHANNEL_BUFFER_SIZE = @as(u32, 65535); pub const CHANNEL_FLAG_FIRST = @as(u32, 1); pub const CHANNEL_FLAG_LAST = @as(u32, 2); pub const CHANNEL_FLAG_MIDDLE = @as(u32, 0); pub const CHANNEL_FLAG_FAIL = @as(u32, 256); pub const CHANNEL_OPTION_INITIALIZED = @as(u32, 2147483648); pub const CHANNEL_OPTION_ENCRYPT_RDP = @as(u32, 1073741824); pub const CHANNEL_OPTION_ENCRYPT_SC = @as(u32, 536870912); pub const CHANNEL_OPTION_ENCRYPT_CS = @as(u32, 268435456); pub const CHANNEL_OPTION_PRI_HIGH = @as(u32, 134217728); pub const CHANNEL_OPTION_PRI_MED = @as(u32, 67108864); pub const CHANNEL_OPTION_PRI_LOW = @as(u32, 33554432); pub const CHANNEL_OPTION_COMPRESS_RDP = @as(u32, 8388608); pub const CHANNEL_OPTION_COMPRESS = @as(u32, 4194304); pub const CHANNEL_OPTION_SHOW_PROTOCOL = @as(u32, 2097152); pub const CHANNEL_OPTION_REMOTE_CONTROL_PERSISTENT = @as(u32, 1048576); pub const CHANNEL_MAX_COUNT = @as(u32, 30); pub const CHANNEL_NAME_LEN = @as(u32, 7); pub const MAX_POLICY_ATTRIBUTES = @as(u32, 20); pub const WTS_CURRENT_SESSION = @as(u32, 4294967295); pub const USERNAME_LENGTH = @as(u32, 20); pub const CLIENTNAME_LENGTH = @as(u32, 20); pub const CLIENTADDRESS_LENGTH = @as(u32, 30); pub const WTS_WSD_LOGOFF = @as(u32, 1); pub const WTS_WSD_SHUTDOWN = @as(u32, 2); pub const WTS_WSD_REBOOT = @as(u32, 4); pub const WTS_WSD_POWEROFF = @as(u32, 8); pub const WTS_WSD_FASTREBOOT = @as(u32, 16); pub const MAX_ELAPSED_TIME_LENGTH = @as(u32, 15); pub const MAX_DATE_TIME_LENGTH = @as(u32, 56); pub const WINSTATIONNAME_LENGTH = @as(u32, 32); pub const DOMAIN_LENGTH = @as(u32, 17); pub const WTS_DRIVE_LENGTH = @as(u32, 3); pub const WTS_LISTENER_NAME_LENGTH = @as(u32, 32); pub const WTS_COMMENT_LENGTH = @as(u32, 60); pub const WTS_LISTENER_CREATE = @as(u32, 1); pub const WTS_LISTENER_UPDATE = @as(u32, 16); pub const WTS_SECURITY_QUERY_INFORMATION = @as(u32, 1); pub const WTS_SECURITY_SET_INFORMATION = @as(u32, 2); pub const WTS_SECURITY_RESET = @as(u32, 4); pub const WTS_SECURITY_VIRTUAL_CHANNELS = @as(u32, 8); pub const WTS_SECURITY_REMOTE_CONTROL = @as(u32, 16); pub const WTS_SECURITY_LOGON = @as(u32, 32); pub const WTS_SECURITY_LOGOFF = @as(u32, 64); pub const WTS_SECURITY_MESSAGE = @as(u32, 128); pub const WTS_SECURITY_CONNECT = @as(u32, 256); pub const WTS_SECURITY_DISCONNECT = @as(u32, 512); pub const WTS_SECURITY_GUEST_ACCESS = @as(u32, 32); pub const WTS_PROTOCOL_TYPE_CONSOLE = @as(u32, 0); pub const WTS_PROTOCOL_TYPE_ICA = @as(u32, 1); pub const WTS_PROTOCOL_TYPE_RDP = @as(u32, 2); pub const WTS_SESSIONSTATE_UNKNOWN = @as(u32, 4294967295); pub const WTS_SESSIONSTATE_LOCK = @as(u32, 0); pub const WTS_SESSIONSTATE_UNLOCK = @as(u32, 1); pub const PRODUCTINFO_COMPANYNAME_LENGTH = @as(u32, 256); pub const PRODUCTINFO_PRODUCTID_LENGTH = @as(u32, 4); pub const VALIDATIONINFORMATION_LICENSE_LENGTH = @as(u32, 16384); pub const VALIDATIONINFORMATION_HARDWAREID_LENGTH = @as(u32, 20); pub const WTS_EVENT_NONE = @as(u32, 0); pub const WTS_EVENT_CREATE = @as(u32, 1); pub const WTS_EVENT_DELETE = @as(u32, 2); pub const WTS_EVENT_RENAME = @as(u32, 4); pub const WTS_EVENT_CONNECT = @as(u32, 8); pub const WTS_EVENT_DISCONNECT = @as(u32, 16); pub const WTS_EVENT_LOGON = @as(u32, 32); pub const WTS_EVENT_LOGOFF = @as(u32, 64); pub const WTS_EVENT_STATECHANGE = @as(u32, 128); pub const WTS_EVENT_LICENSE = @as(u32, 256); pub const WTS_EVENT_ALL = @as(u32, 2147483647); pub const WTS_EVENT_FLUSH = @as(u32, 2147483648); pub const REMOTECONTROL_KBDSHIFT_HOTKEY = @as(u32, 1); pub const REMOTECONTROL_KBDCTRL_HOTKEY = @as(u32, 2); pub const REMOTECONTROL_KBDALT_HOTKEY = @as(u32, 4); pub const WTS_CHANNEL_OPTION_DYNAMIC = @as(u32, 1); pub const WTS_CHANNEL_OPTION_DYNAMIC_PRI_LOW = @as(u32, 0); pub const WTS_CHANNEL_OPTION_DYNAMIC_PRI_MED = @as(u32, 2); pub const WTS_CHANNEL_OPTION_DYNAMIC_PRI_HIGH = @as(u32, 4); pub const WTS_CHANNEL_OPTION_DYNAMIC_PRI_REAL = @as(u32, 6); pub const WTS_CHANNEL_OPTION_DYNAMIC_NO_COMPRESS = @as(u32, 8); pub const NOTIFY_FOR_ALL_SESSIONS = @as(u32, 1); pub const NOTIFY_FOR_THIS_SESSION = @as(u32, 0); pub const WTS_PROCESS_INFO_LEVEL_0 = @as(u32, 0); pub const WTS_PROCESS_INFO_LEVEL_1 = @as(u32, 1); pub const PLUGIN_CAPABILITY_EXTERNAL_REDIRECTION = @as(u32, 1); pub const MaxFQDN_Len = @as(u32, 256); pub const MaxNetBiosName_Len = @as(u32, 16); pub const MaxNumOfExposed_IPs = @as(u32, 12); pub const MaxUserName_Len = @as(u32, 104); pub const MaxDomainName_Len = @as(u32, 256); pub const MaxFarm_Len = @as(u32, 256); pub const MaxAppName_Len = @as(u32, 256); pub const WKS_FLAG_CLEAR_CREDS_ON_LAST_RESOURCE = @as(u32, 1); pub const WKS_FLAG_PASSWORD_ENCRYPTED = @as(u32, 2); pub const WKS_FLAG_CREDS_AUTHENTICATED = @as(u32, 4); pub const SB_SYNCH_CONFLICT_MAX_WRITE_ATTEMPTS = @as(u32, 100); pub const ACQUIRE_TARGET_LOCK_TIMEOUT = @as(u32, 300000); pub const RENDER_HINT_CLEAR = @as(u32, 0); pub const RENDER_HINT_VIDEO = @as(u32, 1); pub const RENDER_HINT_MAPPEDWINDOW = @as(u32, 2); pub const TS_VC_LISTENER_STATIC_CHANNEL = @as(u32, 1); pub const WRdsGraphicsChannels_LossyChannelMaxMessageSize = @as(u32, 988); pub const RFX_RDP_MSG_PREFIX = @as(u32, 0); pub const RFX_GFX_MSG_PREFIX = @as(u32, 48); pub const RFX_GFX_MSG_PREFIX_MASK = @as(u32, 48); pub const RFX_GFX_MAX_SUPPORTED_MONITORS = @as(u32, 16); pub const RFX_CLIENT_ID_LENGTH = @as(u32, 32); pub const DISPID_METHOD_REMOTEDESKTOPCLIENT_CONNECT = @as(u32, 701); pub const DISPID_METHOD_REMOTEDESKTOPCLIENT_DISCONNECT = @as(u32, 702); pub const DISPID_METHOD_REMOTEDESKTOPCLIENT_RECONNECT = @as(u32, 703); pub const DISPID_METHOD_REMOTEDESKTOPCLIENT_DELETE_SAVED_CREDENTIALS = @as(u32, 704); pub const DISPID_METHOD_REMOTEDESKTOPCLIENT_UPDATE_SESSION_DISPLAYSETTINGS = @as(u32, 705); pub const DISPID_METHOD_REMOTEDESKTOPCLIENT_ATTACH_EVENT = @as(u32, 706); pub const DISPID_METHOD_REMOTEDESKTOPCLIENT_DETACH_EVENT = @as(u32, 707); pub const DISPID_PROP_REMOTEDESKTOPCLIENT_SETTINGS = @as(u32, 710); pub const DISPID_PROP_REMOTEDESKTOPCLIENT_ACTIONS = @as(u32, 711); pub const DISPID_PROP_REMOTEDESKTOPCLIENT_TOUCH_POINTER = @as(u32, 712); pub const DISPID_METHOD_REMOTEDESKTOPCLIENT_SET_RDPPROPERTY = @as(u32, 720); pub const DISPID_METHOD_REMOTEDESKTOPCLIENT_GET_RDPPROPERTY = @as(u32, 721); pub const DISPID_METHOD_REMOTEDESKTOPCLIENT_APPLY_SETTINGS = @as(u32, 722); pub const DISPID_METHOD_REMOTEDESKTOPCLIENT_RETRIEVE_SETTINGS = @as(u32, 723); pub const DISPID_METHOD_REMOTEDESKTOPCLIENT_SUSPEND_SCREEN_UPDATES = @as(u32, 730); pub const DISPID_METHOD_REMOTEDESKTOPCLIENT_RESUME_SCREEN_UPDATES = @as(u32, 731); pub const DISPID_METHOD_REMOTEDESKTOPCLIENT_EXECUTE_REMOTE_ACTION = @as(u32, 732); pub const DISPID_METHOD_REMOTEDESKTOPCLIENT_GET_SNAPSHOT = @as(u32, 733); pub const DISPID_PROP_REMOTEDESKTOPCLIENT_TOUCHPOINTER_ENABLED = @as(u32, 740); pub const DISPID_PROP_REMOTEDESKTOPCLIENT_TOUCHPOINTER_EVENTSENABLED = @as(u32, 741); pub const DISPID_PROP_REMOTEDESKTOPCLIENT_TOUCHPOINTER_POINTERSPEED = @as(u32, 742); pub const DISPID_AX_CONNECTING = @as(u32, 750); pub const DISPID_AX_CONNECTED = @as(u32, 751); pub const DISPID_AX_LOGINCOMPLETED = @as(u32, 752); pub const DISPID_AX_DISCONNECTED = @as(u32, 753); pub const DISPID_AX_STATUSCHANGED = @as(u32, 754); pub const DISPID_AX_AUTORECONNECTING = @as(u32, 755); pub const DISPID_AX_AUTORECONNECTED = @as(u32, 756); pub const DISPID_AX_DIALOGDISPLAYING = @as(u32, 757); pub const DISPID_AX_DIALOGDISMISSED = @as(u32, 758); pub const DISPID_AX_NETWORKSTATUSCHANGED = @as(u32, 759); pub const DISPID_AX_ADMINMESSAGERECEIVED = @as(u32, 760); pub const DISPID_AX_KEYCOMBINATIONPRESSED = @as(u32, 761); pub const DISPID_AX_REMOTEDESKTOPSIZECHANGED = @as(u32, 762); pub const DISPID_AX_TOUCHPOINTERCURSORMOVED = @as(u32, 800); pub const RDCLIENT_BITMAP_RENDER_SERVICE = Guid.initString("e4cc08cb-942e-4b19-8504-bd5a89a747f5"); pub const WTS_QUERY_ALLOWED_INITIAL_APP = Guid.initString("c77d1b30-5be1-4c6b-a0e1-bd6d2e5c9fcc"); pub const WTS_QUERY_LOGON_SCREEN_SIZE = Guid.initString("8b8e0fe7-0804-4a0e-b279-8660b1df0049"); pub const WTS_QUERY_AUDIOENUM_DLL = Guid.initString("9bf4fa97-c883-4c2a-80ab-5a39c9af00db"); pub const WTS_QUERY_MF_FORMAT_SUPPORT = Guid.initString("41869ad0-6332-4dc8-95d5-db749e2f1d94"); pub const WRDS_SERVICE_ID_GRAPHICS_GUID = Guid.initString("d2993f4d-02cf-4280-8c48-1624b44f8706"); pub const PROPERTY_DYNAMIC_TIME_ZONE_INFORMATION = Guid.initString("0cdfd28e-d0b9-4c1f-a5eb-6d1f6c6535b9"); pub const PROPERTY_TYPE_GET_FAST_RECONNECT = Guid.initString("6212d757-0043-4862-99c3-9f3059ac2a3b"); pub const PROPERTY_TYPE_GET_FAST_RECONNECT_USER_SID = Guid.initString("197c427a-0135-4b6d-9c5e-e6579a0ab625"); pub const PROPERTY_TYPE_ENABLE_UNIVERSAL_APPS_FOR_CUSTOM_SHELL = Guid.initString("ed2c3fda-338d-4d3f-81a3-e767310d908e"); pub const CONNECTION_PROPERTY_IDLE_TIME_WARNING = Guid.initString("693f7ff5-0c4e-4d17-b8e0-1f70325e5d58"); pub const CONNECTION_PROPERTY_CURSOR_BLINK_DISABLED = Guid.initString("4b150580-fea4-4d3c-9de4-7433a66618f7"); //-------------------------------------------------------------------------------- // Section: Types (254) //-------------------------------------------------------------------------------- pub const AE_POSITION_FLAGS = enum(i32) { INVALID = 0, DISCONTINUOUS = 1, CONTINUOUS = 2, QPC_ERROR = 4, }; pub const POSITION_INVALID = AE_POSITION_FLAGS.INVALID; pub const POSITION_DISCONTINUOUS = AE_POSITION_FLAGS.DISCONTINUOUS; pub const POSITION_CONTINUOUS = AE_POSITION_FLAGS.CONTINUOUS; pub const POSITION_QPC_ERROR = AE_POSITION_FLAGS.QPC_ERROR; pub const AE_CURRENT_POSITION = extern struct { u64DevicePosition: u64, u64StreamPosition: u64, u64PaddingFrames: u64, hnsQPCPosition: i64, f32FramesPerSecond: f32, Flag: AE_POSITION_FLAGS, }; // TODO: this type is limited to platform 'windows6.1' const IID_IAudioEndpoint_Value = Guid.initString("30a99515-1527-4451-af9f-00c5f0234daf"); pub const IID_IAudioEndpoint = &IID_IAudioEndpoint_Value; pub const IAudioEndpoint = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, GetFrameFormat: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IAudioEndpoint, ppFormat: ?*?*WAVEFORMATEX, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IAudioEndpoint, ppFormat: ?*?*WAVEFORMATEX, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetFramesPerPacket: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IAudioEndpoint, pFramesPerPacket: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IAudioEndpoint, pFramesPerPacket: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetLatency: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IAudioEndpoint, pLatency: ?*i64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IAudioEndpoint, pLatency: ?*i64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetStreamFlags: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IAudioEndpoint, streamFlags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IAudioEndpoint, streamFlags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetEventHandle: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IAudioEndpoint, eventHandle: ?HANDLE, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IAudioEndpoint, eventHandle: ?HANDLE, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IAudioEndpoint_GetFrameFormat(self: *const T, ppFormat: ?*?*WAVEFORMATEX) HRESULT { return @as(*const IAudioEndpoint.VTable, @ptrCast(self.vtable)).GetFrameFormat(@as(*const IAudioEndpoint, @ptrCast(self)), ppFormat); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IAudioEndpoint_GetFramesPerPacket(self: *const T, pFramesPerPacket: ?*u32) HRESULT { return @as(*const IAudioEndpoint.VTable, @ptrCast(self.vtable)).GetFramesPerPacket(@as(*const IAudioEndpoint, @ptrCast(self)), pFramesPerPacket); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IAudioEndpoint_GetLatency(self: *const T, pLatency: ?*i64) HRESULT { return @as(*const IAudioEndpoint.VTable, @ptrCast(self.vtable)).GetLatency(@as(*const IAudioEndpoint, @ptrCast(self)), pLatency); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IAudioEndpoint_SetStreamFlags(self: *const T, streamFlags: u32) HRESULT { return @as(*const IAudioEndpoint.VTable, @ptrCast(self.vtable)).SetStreamFlags(@as(*const IAudioEndpoint, @ptrCast(self)), streamFlags); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IAudioEndpoint_SetEventHandle(self: *const T, eventHandle: ?HANDLE) HRESULT { return @as(*const IAudioEndpoint.VTable, @ptrCast(self.vtable)).SetEventHandle(@as(*const IAudioEndpoint, @ptrCast(self)), eventHandle); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows6.1' const IID_IAudioEndpointRT_Value = Guid.initString("dfd2005f-a6e5-4d39-a265-939ada9fbb4d"); pub const IID_IAudioEndpointRT = &IID_IAudioEndpointRT_Value; pub const IAudioEndpointRT = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, GetCurrentPadding: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IAudioEndpointRT, pPadding: ?*i64, pAeCurrentPosition: ?*AE_CURRENT_POSITION, ) callconv(@import("std").os.windows.WINAPI) void, else => *const fn ( self: *const IAudioEndpointRT, pPadding: ?*i64, pAeCurrentPosition: ?*AE_CURRENT_POSITION, ) callconv(@import("std").os.windows.WINAPI) void, }, ProcessingComplete: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IAudioEndpointRT, ) callconv(@import("std").os.windows.WINAPI) void, else => *const fn ( self: *const IAudioEndpointRT, ) callconv(@import("std").os.windows.WINAPI) void, }, SetPinInactive: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IAudioEndpointRT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IAudioEndpointRT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetPinActive: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IAudioEndpointRT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IAudioEndpointRT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IAudioEndpointRT_GetCurrentPadding(self: *const T, pPadding: ?*i64, pAeCurrentPosition: ?*AE_CURRENT_POSITION) void { return @as(*const IAudioEndpointRT.VTable, @ptrCast(self.vtable)).GetCurrentPadding(@as(*const IAudioEndpointRT, @ptrCast(self)), pPadding, pAeCurrentPosition); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IAudioEndpointRT_ProcessingComplete(self: *const T) void { return @as(*const IAudioEndpointRT.VTable, @ptrCast(self.vtable)).ProcessingComplete(@as(*const IAudioEndpointRT, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IAudioEndpointRT_SetPinInactive(self: *const T) HRESULT { return @as(*const IAudioEndpointRT.VTable, @ptrCast(self.vtable)).SetPinInactive(@as(*const IAudioEndpointRT, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IAudioEndpointRT_SetPinActive(self: *const T) HRESULT { return @as(*const IAudioEndpointRT.VTable, @ptrCast(self.vtable)).SetPinActive(@as(*const IAudioEndpointRT, @ptrCast(self))); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows6.1' const IID_IAudioInputEndpointRT_Value = Guid.initString("8026ab61-92b2-43c1-a1df-5c37ebd08d82"); pub const IID_IAudioInputEndpointRT = &IID_IAudioInputEndpointRT_Value; pub const IAudioInputEndpointRT = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, GetInputDataPointer: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IAudioInputEndpointRT, pConnectionProperty: ?*APO_CONNECTION_PROPERTY, pAeTimeStamp: ?*AE_CURRENT_POSITION, ) callconv(@import("std").os.windows.WINAPI) void, else => *const fn ( self: *const IAudioInputEndpointRT, pConnectionProperty: ?*APO_CONNECTION_PROPERTY, pAeTimeStamp: ?*AE_CURRENT_POSITION, ) callconv(@import("std").os.windows.WINAPI) void, }, ReleaseInputDataPointer: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IAudioInputEndpointRT, u32FrameCount: u32, pDataPointer: usize, ) callconv(@import("std").os.windows.WINAPI) void, else => *const fn ( self: *const IAudioInputEndpointRT, u32FrameCount: u32, pDataPointer: usize, ) callconv(@import("std").os.windows.WINAPI) void, }, PulseEndpoint: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IAudioInputEndpointRT, ) callconv(@import("std").os.windows.WINAPI) void, else => *const fn ( self: *const IAudioInputEndpointRT, ) callconv(@import("std").os.windows.WINAPI) void, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IAudioInputEndpointRT_GetInputDataPointer(self: *const T, pConnectionProperty: ?*APO_CONNECTION_PROPERTY, pAeTimeStamp: ?*AE_CURRENT_POSITION) void { return @as(*const IAudioInputEndpointRT.VTable, @ptrCast(self.vtable)).GetInputDataPointer(@as(*const IAudioInputEndpointRT, @ptrCast(self)), pConnectionProperty, pAeTimeStamp); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IAudioInputEndpointRT_ReleaseInputDataPointer(self: *const T, u32FrameCount: u32, pDataPointer: usize) void { return @as(*const IAudioInputEndpointRT.VTable, @ptrCast(self.vtable)).ReleaseInputDataPointer(@as(*const IAudioInputEndpointRT, @ptrCast(self)), u32FrameCount, pDataPointer); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IAudioInputEndpointRT_PulseEndpoint(self: *const T) void { return @as(*const IAudioInputEndpointRT.VTable, @ptrCast(self.vtable)).PulseEndpoint(@as(*const IAudioInputEndpointRT, @ptrCast(self))); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows6.1' const IID_IAudioOutputEndpointRT_Value = Guid.initString("8fa906e4-c31c-4e31-932e-19a66385e9aa"); pub const IID_IAudioOutputEndpointRT = &IID_IAudioOutputEndpointRT_Value; pub const IAudioOutputEndpointRT = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, GetOutputDataPointer: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IAudioOutputEndpointRT, u32FrameCount: u32, pAeTimeStamp: ?*AE_CURRENT_POSITION, ) callconv(@import("std").os.windows.WINAPI) usize, else => *const fn ( self: *const IAudioOutputEndpointRT, u32FrameCount: u32, pAeTimeStamp: ?*AE_CURRENT_POSITION, ) callconv(@import("std").os.windows.WINAPI) usize, }, ReleaseOutputDataPointer: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IAudioOutputEndpointRT, pConnectionProperty: ?*const APO_CONNECTION_PROPERTY, ) callconv(@import("std").os.windows.WINAPI) void, else => *const fn ( self: *const IAudioOutputEndpointRT, pConnectionProperty: ?*const APO_CONNECTION_PROPERTY, ) callconv(@import("std").os.windows.WINAPI) void, }, PulseEndpoint: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IAudioOutputEndpointRT, ) callconv(@import("std").os.windows.WINAPI) void, else => *const fn ( self: *const IAudioOutputEndpointRT, ) callconv(@import("std").os.windows.WINAPI) void, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IAudioOutputEndpointRT_GetOutputDataPointer(self: *const T, u32FrameCount: u32, pAeTimeStamp: ?*AE_CURRENT_POSITION) usize { return @as(*const IAudioOutputEndpointRT.VTable, @ptrCast(self.vtable)).GetOutputDataPointer(@as(*const IAudioOutputEndpointRT, @ptrCast(self)), u32FrameCount, pAeTimeStamp); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IAudioOutputEndpointRT_ReleaseOutputDataPointer(self: *const T, pConnectionProperty: ?*const APO_CONNECTION_PROPERTY) void { return @as(*const IAudioOutputEndpointRT.VTable, @ptrCast(self.vtable)).ReleaseOutputDataPointer(@as(*const IAudioOutputEndpointRT, @ptrCast(self)), pConnectionProperty); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IAudioOutputEndpointRT_PulseEndpoint(self: *const T) void { return @as(*const IAudioOutputEndpointRT.VTable, @ptrCast(self.vtable)).PulseEndpoint(@as(*const IAudioOutputEndpointRT, @ptrCast(self))); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows6.1' const IID_IAudioDeviceEndpoint_Value = Guid.initString("d4952f5a-a0b2-4cc4-8b82-9358488dd8ac"); pub const IID_IAudioDeviceEndpoint = &IID_IAudioDeviceEndpoint_Value; pub const IAudioDeviceEndpoint = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, SetBuffer: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IAudioDeviceEndpoint, MaxPeriod: i64, u32LatencyCoefficient: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IAudioDeviceEndpoint, MaxPeriod: i64, u32LatencyCoefficient: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetRTCaps: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IAudioDeviceEndpoint, pbIsRTCapable: ?*BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IAudioDeviceEndpoint, pbIsRTCapable: ?*BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetEventDrivenCapable: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IAudioDeviceEndpoint, pbisEventCapable: ?*BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IAudioDeviceEndpoint, pbisEventCapable: ?*BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, WriteExclusiveModeParametersToSharedMemory: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IAudioDeviceEndpoint, hTargetProcess: usize, hnsPeriod: i64, hnsBufferDuration: i64, u32LatencyCoefficient: u32, pu32SharedMemorySize: ?*u32, phSharedMemory: ?*usize, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IAudioDeviceEndpoint, hTargetProcess: usize, hnsPeriod: i64, hnsBufferDuration: i64, u32LatencyCoefficient: u32, pu32SharedMemorySize: ?*u32, phSharedMemory: ?*usize, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IAudioDeviceEndpoint_SetBuffer(self: *const T, MaxPeriod: i64, u32LatencyCoefficient: u32) HRESULT { return @as(*const IAudioDeviceEndpoint.VTable, @ptrCast(self.vtable)).SetBuffer(@as(*const IAudioDeviceEndpoint, @ptrCast(self)), MaxPeriod, u32LatencyCoefficient); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IAudioDeviceEndpoint_GetRTCaps(self: *const T, pbIsRTCapable: ?*BOOL) HRESULT { return @as(*const IAudioDeviceEndpoint.VTable, @ptrCast(self.vtable)).GetRTCaps(@as(*const IAudioDeviceEndpoint, @ptrCast(self)), pbIsRTCapable); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IAudioDeviceEndpoint_GetEventDrivenCapable(self: *const T, pbisEventCapable: ?*BOOL) HRESULT { return @as(*const IAudioDeviceEndpoint.VTable, @ptrCast(self.vtable)).GetEventDrivenCapable(@as(*const IAudioDeviceEndpoint, @ptrCast(self)), pbisEventCapable); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IAudioDeviceEndpoint_WriteExclusiveModeParametersToSharedMemory(self: *const T, hTargetProcess: usize, hnsPeriod: i64, hnsBufferDuration: i64, u32LatencyCoefficient: u32, pu32SharedMemorySize: ?*u32, phSharedMemory: ?*usize) HRESULT { return @as(*const IAudioDeviceEndpoint.VTable, @ptrCast(self.vtable)).WriteExclusiveModeParametersToSharedMemory(@as(*const IAudioDeviceEndpoint, @ptrCast(self)), hTargetProcess, hnsPeriod, hnsBufferDuration, u32LatencyCoefficient, pu32SharedMemorySize, phSharedMemory); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows6.1' const IID_IAudioEndpointControl_Value = Guid.initString("c684b72a-6df4-4774-bdf9-76b77509b653"); pub const IID_IAudioEndpointControl = &IID_IAudioEndpointControl_Value; pub const IAudioEndpointControl = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, Start: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IAudioEndpointControl, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IAudioEndpointControl, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Reset: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IAudioEndpointControl, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IAudioEndpointControl, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Stop: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IAudioEndpointControl, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IAudioEndpointControl, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IAudioEndpointControl_Start(self: *const T) HRESULT { return @as(*const IAudioEndpointControl.VTable, @ptrCast(self.vtable)).Start(@as(*const IAudioEndpointControl, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IAudioEndpointControl_Reset(self: *const T) HRESULT { return @as(*const IAudioEndpointControl.VTable, @ptrCast(self.vtable)).Reset(@as(*const IAudioEndpointControl, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IAudioEndpointControl_Stop(self: *const T) HRESULT { return @as(*const IAudioEndpointControl.VTable, @ptrCast(self.vtable)).Stop(@as(*const IAudioEndpointControl, @ptrCast(self))); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type has a FreeFunc 'WTSVirtualChannelClose', what can Zig do with this information? pub const HwtsVirtualChannelHandle = isize; const CLSID_TSUserExInterfaces_Value = Guid.initString("0910dd01-df8c-11d1-ae27-00c04fa35813"); pub const CLSID_TSUserExInterfaces = &CLSID_TSUserExInterfaces_Value; const CLSID_ADsTSUserEx_Value = Guid.initString("e2e9cae6-1e7b-4b8e-babd-e9bf6292ac29"); pub const CLSID_ADsTSUserEx = &CLSID_ADsTSUserEx_Value; // TODO: this type is limited to platform 'windows6.0.6000' const IID_IADsTSUserEx_Value = Guid.initString("c4930e79-2989-4462-8a60-2fcf2f2955ef"); pub const IID_IADsTSUserEx = &IID_IADsTSUserEx_Value; pub const IADsTSUserEx = extern struct { pub const VTable = extern struct { base: IDispatch.VTable, // TODO: this function has a "SpecialName", should Zig do anything with this? get_TerminalServicesProfilePath: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IADsTSUserEx, pVal: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IADsTSUserEx, pVal: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_TerminalServicesProfilePath: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IADsTSUserEx, pNewVal: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IADsTSUserEx, pNewVal: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_TerminalServicesHomeDirectory: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IADsTSUserEx, pVal: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IADsTSUserEx, pVal: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_TerminalServicesHomeDirectory: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IADsTSUserEx, pNewVal: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IADsTSUserEx, pNewVal: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_TerminalServicesHomeDrive: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IADsTSUserEx, pVal: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IADsTSUserEx, pVal: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_TerminalServicesHomeDrive: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IADsTSUserEx, pNewVal: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IADsTSUserEx, pNewVal: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_AllowLogon: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IADsTSUserEx, pVal: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IADsTSUserEx, pVal: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_AllowLogon: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IADsTSUserEx, NewVal: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IADsTSUserEx, NewVal: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_EnableRemoteControl: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IADsTSUserEx, pVal: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IADsTSUserEx, pVal: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_EnableRemoteControl: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IADsTSUserEx, NewVal: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IADsTSUserEx, NewVal: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_MaxDisconnectionTime: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IADsTSUserEx, pVal: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IADsTSUserEx, pVal: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_MaxDisconnectionTime: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IADsTSUserEx, NewVal: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IADsTSUserEx, NewVal: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_MaxConnectionTime: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IADsTSUserEx, pVal: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IADsTSUserEx, pVal: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_MaxConnectionTime: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IADsTSUserEx, NewVal: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IADsTSUserEx, NewVal: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_MaxIdleTime: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IADsTSUserEx, pVal: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IADsTSUserEx, pVal: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_MaxIdleTime: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IADsTSUserEx, NewVal: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IADsTSUserEx, NewVal: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_ReconnectionAction: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IADsTSUserEx, pNewVal: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IADsTSUserEx, pNewVal: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_ReconnectionAction: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IADsTSUserEx, NewVal: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IADsTSUserEx, NewVal: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_BrokenConnectionAction: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IADsTSUserEx, pNewVal: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IADsTSUserEx, pNewVal: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_BrokenConnectionAction: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IADsTSUserEx, NewVal: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IADsTSUserEx, NewVal: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_ConnectClientDrivesAtLogon: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IADsTSUserEx, pNewVal: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IADsTSUserEx, pNewVal: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_ConnectClientDrivesAtLogon: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IADsTSUserEx, NewVal: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IADsTSUserEx, NewVal: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_ConnectClientPrintersAtLogon: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IADsTSUserEx, pVal: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IADsTSUserEx, pVal: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_ConnectClientPrintersAtLogon: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IADsTSUserEx, NewVal: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IADsTSUserEx, NewVal: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_DefaultToMainPrinter: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IADsTSUserEx, pVal: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IADsTSUserEx, pVal: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_DefaultToMainPrinter: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IADsTSUserEx, NewVal: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IADsTSUserEx, NewVal: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_TerminalServicesWorkDirectory: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IADsTSUserEx, pVal: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IADsTSUserEx, pVal: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_TerminalServicesWorkDirectory: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IADsTSUserEx, pNewVal: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IADsTSUserEx, pNewVal: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_TerminalServicesInitialProgram: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IADsTSUserEx, pVal: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IADsTSUserEx, pVal: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_TerminalServicesInitialProgram: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IADsTSUserEx, pNewVal: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IADsTSUserEx, pNewVal: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IDispatch.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IADsTSUserEx_get_TerminalServicesProfilePath(self: *const T, pVal: ?*?BSTR) HRESULT { return @as(*const IADsTSUserEx.VTable, @ptrCast(self.vtable)).get_TerminalServicesProfilePath(@as(*const IADsTSUserEx, @ptrCast(self)), pVal); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IADsTSUserEx_put_TerminalServicesProfilePath(self: *const T, pNewVal: ?BSTR) HRESULT { return @as(*const IADsTSUserEx.VTable, @ptrCast(self.vtable)).put_TerminalServicesProfilePath(@as(*const IADsTSUserEx, @ptrCast(self)), pNewVal); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IADsTSUserEx_get_TerminalServicesHomeDirectory(self: *const T, pVal: ?*?BSTR) HRESULT { return @as(*const IADsTSUserEx.VTable, @ptrCast(self.vtable)).get_TerminalServicesHomeDirectory(@as(*const IADsTSUserEx, @ptrCast(self)), pVal); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IADsTSUserEx_put_TerminalServicesHomeDirectory(self: *const T, pNewVal: ?BSTR) HRESULT { return @as(*const IADsTSUserEx.VTable, @ptrCast(self.vtable)).put_TerminalServicesHomeDirectory(@as(*const IADsTSUserEx, @ptrCast(self)), pNewVal); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IADsTSUserEx_get_TerminalServicesHomeDrive(self: *const T, pVal: ?*?BSTR) HRESULT { return @as(*const IADsTSUserEx.VTable, @ptrCast(self.vtable)).get_TerminalServicesHomeDrive(@as(*const IADsTSUserEx, @ptrCast(self)), pVal); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IADsTSUserEx_put_TerminalServicesHomeDrive(self: *const T, pNewVal: ?BSTR) HRESULT { return @as(*const IADsTSUserEx.VTable, @ptrCast(self.vtable)).put_TerminalServicesHomeDrive(@as(*const IADsTSUserEx, @ptrCast(self)), pNewVal); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IADsTSUserEx_get_AllowLogon(self: *const T, pVal: ?*i32) HRESULT { return @as(*const IADsTSUserEx.VTable, @ptrCast(self.vtable)).get_AllowLogon(@as(*const IADsTSUserEx, @ptrCast(self)), pVal); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IADsTSUserEx_put_AllowLogon(self: *const T, NewVal: i32) HRESULT { return @as(*const IADsTSUserEx.VTable, @ptrCast(self.vtable)).put_AllowLogon(@as(*const IADsTSUserEx, @ptrCast(self)), NewVal); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IADsTSUserEx_get_EnableRemoteControl(self: *const T, pVal: ?*i32) HRESULT { return @as(*const IADsTSUserEx.VTable, @ptrCast(self.vtable)).get_EnableRemoteControl(@as(*const IADsTSUserEx, @ptrCast(self)), pVal); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IADsTSUserEx_put_EnableRemoteControl(self: *const T, NewVal: i32) HRESULT { return @as(*const IADsTSUserEx.VTable, @ptrCast(self.vtable)).put_EnableRemoteControl(@as(*const IADsTSUserEx, @ptrCast(self)), NewVal); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IADsTSUserEx_get_MaxDisconnectionTime(self: *const T, pVal: ?*i32) HRESULT { return @as(*const IADsTSUserEx.VTable, @ptrCast(self.vtable)).get_MaxDisconnectionTime(@as(*const IADsTSUserEx, @ptrCast(self)), pVal); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IADsTSUserEx_put_MaxDisconnectionTime(self: *const T, NewVal: i32) HRESULT { return @as(*const IADsTSUserEx.VTable, @ptrCast(self.vtable)).put_MaxDisconnectionTime(@as(*const IADsTSUserEx, @ptrCast(self)), NewVal); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IADsTSUserEx_get_MaxConnectionTime(self: *const T, pVal: ?*i32) HRESULT { return @as(*const IADsTSUserEx.VTable, @ptrCast(self.vtable)).get_MaxConnectionTime(@as(*const IADsTSUserEx, @ptrCast(self)), pVal); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IADsTSUserEx_put_MaxConnectionTime(self: *const T, NewVal: i32) HRESULT { return @as(*const IADsTSUserEx.VTable, @ptrCast(self.vtable)).put_MaxConnectionTime(@as(*const IADsTSUserEx, @ptrCast(self)), NewVal); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IADsTSUserEx_get_MaxIdleTime(self: *const T, pVal: ?*i32) HRESULT { return @as(*const IADsTSUserEx.VTable, @ptrCast(self.vtable)).get_MaxIdleTime(@as(*const IADsTSUserEx, @ptrCast(self)), pVal); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IADsTSUserEx_put_MaxIdleTime(self: *const T, NewVal: i32) HRESULT { return @as(*const IADsTSUserEx.VTable, @ptrCast(self.vtable)).put_MaxIdleTime(@as(*const IADsTSUserEx, @ptrCast(self)), NewVal); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IADsTSUserEx_get_ReconnectionAction(self: *const T, pNewVal: ?*i32) HRESULT { return @as(*const IADsTSUserEx.VTable, @ptrCast(self.vtable)).get_ReconnectionAction(@as(*const IADsTSUserEx, @ptrCast(self)), pNewVal); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IADsTSUserEx_put_ReconnectionAction(self: *const T, NewVal: i32) HRESULT { return @as(*const IADsTSUserEx.VTable, @ptrCast(self.vtable)).put_ReconnectionAction(@as(*const IADsTSUserEx, @ptrCast(self)), NewVal); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IADsTSUserEx_get_BrokenConnectionAction(self: *const T, pNewVal: ?*i32) HRESULT { return @as(*const IADsTSUserEx.VTable, @ptrCast(self.vtable)).get_BrokenConnectionAction(@as(*const IADsTSUserEx, @ptrCast(self)), pNewVal); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IADsTSUserEx_put_BrokenConnectionAction(self: *const T, NewVal: i32) HRESULT { return @as(*const IADsTSUserEx.VTable, @ptrCast(self.vtable)).put_BrokenConnectionAction(@as(*const IADsTSUserEx, @ptrCast(self)), NewVal); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IADsTSUserEx_get_ConnectClientDrivesAtLogon(self: *const T, pNewVal: ?*i32) HRESULT { return @as(*const IADsTSUserEx.VTable, @ptrCast(self.vtable)).get_ConnectClientDrivesAtLogon(@as(*const IADsTSUserEx, @ptrCast(self)), pNewVal); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IADsTSUserEx_put_ConnectClientDrivesAtLogon(self: *const T, NewVal: i32) HRESULT { return @as(*const IADsTSUserEx.VTable, @ptrCast(self.vtable)).put_ConnectClientDrivesAtLogon(@as(*const IADsTSUserEx, @ptrCast(self)), NewVal); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IADsTSUserEx_get_ConnectClientPrintersAtLogon(self: *const T, pVal: ?*i32) HRESULT { return @as(*const IADsTSUserEx.VTable, @ptrCast(self.vtable)).get_ConnectClientPrintersAtLogon(@as(*const IADsTSUserEx, @ptrCast(self)), pVal); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IADsTSUserEx_put_ConnectClientPrintersAtLogon(self: *const T, NewVal: i32) HRESULT { return @as(*const IADsTSUserEx.VTable, @ptrCast(self.vtable)).put_ConnectClientPrintersAtLogon(@as(*const IADsTSUserEx, @ptrCast(self)), NewVal); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IADsTSUserEx_get_DefaultToMainPrinter(self: *const T, pVal: ?*i32) HRESULT { return @as(*const IADsTSUserEx.VTable, @ptrCast(self.vtable)).get_DefaultToMainPrinter(@as(*const IADsTSUserEx, @ptrCast(self)), pVal); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IADsTSUserEx_put_DefaultToMainPrinter(self: *const T, NewVal: i32) HRESULT { return @as(*const IADsTSUserEx.VTable, @ptrCast(self.vtable)).put_DefaultToMainPrinter(@as(*const IADsTSUserEx, @ptrCast(self)), NewVal); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IADsTSUserEx_get_TerminalServicesWorkDirectory(self: *const T, pVal: ?*?BSTR) HRESULT { return @as(*const IADsTSUserEx.VTable, @ptrCast(self.vtable)).get_TerminalServicesWorkDirectory(@as(*const IADsTSUserEx, @ptrCast(self)), pVal); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IADsTSUserEx_put_TerminalServicesWorkDirectory(self: *const T, pNewVal: ?BSTR) HRESULT { return @as(*const IADsTSUserEx.VTable, @ptrCast(self.vtable)).put_TerminalServicesWorkDirectory(@as(*const IADsTSUserEx, @ptrCast(self)), pNewVal); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IADsTSUserEx_get_TerminalServicesInitialProgram(self: *const T, pVal: ?*?BSTR) HRESULT { return @as(*const IADsTSUserEx.VTable, @ptrCast(self.vtable)).get_TerminalServicesInitialProgram(@as(*const IADsTSUserEx, @ptrCast(self)), pVal); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IADsTSUserEx_put_TerminalServicesInitialProgram(self: *const T, pNewVal: ?BSTR) HRESULT { return @as(*const IADsTSUserEx.VTable, @ptrCast(self.vtable)).put_TerminalServicesInitialProgram(@as(*const IADsTSUserEx, @ptrCast(self)), pNewVal); } }; } pub usingnamespace MethodMixin(@This()); }; pub const AAAuthSchemes = enum(i32) { MIN = 0, BASIC = 1, NTLM = 2, SC = 3, LOGGEDONCREDENTIALS = 4, NEGOTIATE = 5, ANY = 6, COOKIE = 7, DIGEST = 8, ORGID = 9, CONID = 10, SSPI_NTLM = 11, MAX = 12, }; pub const AA_AUTH_MIN = AAAuthSchemes.MIN; pub const AA_AUTH_BASIC = AAAuthSchemes.BASIC; pub const AA_AUTH_NTLM = AAAuthSchemes.NTLM; pub const AA_AUTH_SC = AAAuthSchemes.SC; pub const AA_AUTH_LOGGEDONCREDENTIALS = AAAuthSchemes.LOGGEDONCREDENTIALS; pub const AA_AUTH_NEGOTIATE = AAAuthSchemes.NEGOTIATE; pub const AA_AUTH_ANY = AAAuthSchemes.ANY; pub const AA_AUTH_COOKIE = AAAuthSchemes.COOKIE; pub const AA_AUTH_DIGEST = AAAuthSchemes.DIGEST; pub const AA_AUTH_ORGID = AAAuthSchemes.ORGID; pub const AA_AUTH_CONID = AAAuthSchemes.CONID; pub const AA_AUTH_SSPI_NTLM = AAAuthSchemes.SSPI_NTLM; pub const AA_AUTH_MAX = AAAuthSchemes.MAX; pub const AAAccountingDataType = enum(i32) { MAIN_SESSION_CREATION = 0, SUB_SESSION_CREATION = 1, SUB_SESSION_CLOSED = 2, MAIN_SESSION_CLOSED = 3, }; pub const AA_MAIN_SESSION_CREATION = AAAccountingDataType.MAIN_SESSION_CREATION; pub const AA_SUB_SESSION_CREATION = AAAccountingDataType.SUB_SESSION_CREATION; pub const AA_SUB_SESSION_CLOSED = AAAccountingDataType.SUB_SESSION_CLOSED; pub const AA_MAIN_SESSION_CLOSED = AAAccountingDataType.MAIN_SESSION_CLOSED; pub const AAAccountingData = extern struct { userName: ?BSTR, clientName: ?BSTR, authType: AAAuthSchemes, resourceName: ?BSTR, portNumber: i32, protocolName: ?BSTR, numberOfBytesReceived: i32, numberOfBytesTransfered: i32, reasonForDisconnect: ?BSTR, mainSessionId: Guid, subSessionId: i32, }; pub const SESSION_TIMEOUT_ACTION_TYPE = enum(i32) { DISCONNECT = 0, SILENT_REAUTH = 1, }; pub const SESSION_TIMEOUT_ACTION_DISCONNECT = SESSION_TIMEOUT_ACTION_TYPE.DISCONNECT; pub const SESSION_TIMEOUT_ACTION_SILENT_REAUTH = SESSION_TIMEOUT_ACTION_TYPE.SILENT_REAUTH; pub const PolicyAttributeType = enum(i32) { EnableAllRedirections = 0, DisableAllRedirections = 1, DriveRedirectionDisabled = 2, PrinterRedirectionDisabled = 3, PortRedirectionDisabled = 4, ClipboardRedirectionDisabled = 5, PnpRedirectionDisabled = 6, AllowOnlySDRServers = 7, }; pub const EnableAllRedirections = PolicyAttributeType.EnableAllRedirections; pub const DisableAllRedirections = PolicyAttributeType.DisableAllRedirections; pub const DriveRedirectionDisabled = PolicyAttributeType.DriveRedirectionDisabled; pub const PrinterRedirectionDisabled = PolicyAttributeType.PrinterRedirectionDisabled; pub const PortRedirectionDisabled = PolicyAttributeType.PortRedirectionDisabled; pub const ClipboardRedirectionDisabled = PolicyAttributeType.ClipboardRedirectionDisabled; pub const PnpRedirectionDisabled = PolicyAttributeType.PnpRedirectionDisabled; pub const AllowOnlySDRServers = PolicyAttributeType.AllowOnlySDRServers; pub const AATrustClassID = enum(i32) { UNTRUSTED = 0, TRUSTEDUSER_UNTRUSTEDCLIENT = 1, TRUSTEDUSER_TRUSTEDCLIENT = 2, }; pub const AA_UNTRUSTED = AATrustClassID.UNTRUSTED; pub const AA_TRUSTEDUSER_UNTRUSTEDCLIENT = AATrustClassID.TRUSTEDUSER_UNTRUSTEDCLIENT; pub const AA_TRUSTEDUSER_TRUSTEDCLIENT = AATrustClassID.TRUSTEDUSER_TRUSTEDCLIENT; // TODO: this type is limited to platform 'windows6.1' const IID_ITSGAuthorizeConnectionSink_Value = Guid.initString("c27ece33-7781-4318-98ef-1cf2da7b7005"); pub const IID_ITSGAuthorizeConnectionSink = &IID_ITSGAuthorizeConnectionSink_Value; pub const ITSGAuthorizeConnectionSink = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, OnConnectionAuthorized: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ITSGAuthorizeConnectionSink, hrIn: HRESULT, mainSessionId: Guid, cbSoHResponse: u32, pbSoHResponse: [*:0]u8, idleTimeout: u32, sessionTimeout: u32, sessionTimeoutAction: SESSION_TIMEOUT_ACTION_TYPE, trustClass: AATrustClassID, policyAttributes: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ITSGAuthorizeConnectionSink, hrIn: HRESULT, mainSessionId: Guid, cbSoHResponse: u32, pbSoHResponse: [*:0]u8, idleTimeout: u32, sessionTimeout: u32, sessionTimeoutAction: SESSION_TIMEOUT_ACTION_TYPE, trustClass: AATrustClassID, policyAttributes: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITSGAuthorizeConnectionSink_OnConnectionAuthorized(self: *const T, hrIn: HRESULT, mainSessionId: Guid, cbSoHResponse: u32, pbSoHResponse: [*:0]u8, idleTimeout: u32, sessionTimeout: u32, sessionTimeoutAction: SESSION_TIMEOUT_ACTION_TYPE, trustClass: AATrustClassID, policyAttributes: ?*u32) HRESULT { return @as(*const ITSGAuthorizeConnectionSink.VTable, @ptrCast(self.vtable)).OnConnectionAuthorized(@as(*const ITSGAuthorizeConnectionSink, @ptrCast(self)), hrIn, mainSessionId, cbSoHResponse, pbSoHResponse, idleTimeout, sessionTimeout, sessionTimeoutAction, trustClass, policyAttributes); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows6.1' const IID_ITSGAuthorizeResourceSink_Value = Guid.initString("feddfcd4-fa12-4435-ae55-7ad1a9779af7"); pub const IID_ITSGAuthorizeResourceSink = &IID_ITSGAuthorizeResourceSink_Value; pub const ITSGAuthorizeResourceSink = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, OnChannelAuthorized: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ITSGAuthorizeResourceSink, hrIn: HRESULT, mainSessionId: Guid, subSessionId: i32, allowedResourceNames: [*]?BSTR, numAllowedResourceNames: u32, failedResourceNames: [*]?BSTR, numFailedResourceNames: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ITSGAuthorizeResourceSink, hrIn: HRESULT, mainSessionId: Guid, subSessionId: i32, allowedResourceNames: [*]?BSTR, numAllowedResourceNames: u32, failedResourceNames: [*]?BSTR, numFailedResourceNames: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITSGAuthorizeResourceSink_OnChannelAuthorized(self: *const T, hrIn: HRESULT, mainSessionId: Guid, subSessionId: i32, allowedResourceNames: [*]?BSTR, numAllowedResourceNames: u32, failedResourceNames: [*]?BSTR, numFailedResourceNames: u32) HRESULT { return @as(*const ITSGAuthorizeResourceSink.VTable, @ptrCast(self.vtable)).OnChannelAuthorized(@as(*const ITSGAuthorizeResourceSink, @ptrCast(self)), hrIn, mainSessionId, subSessionId, allowedResourceNames, numAllowedResourceNames, failedResourceNames, numFailedResourceNames); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows6.1' const IID_ITSGPolicyEngine_Value = Guid.initString("8bc24f08-6223-42f4-a5b4-8e37cd135bbd"); pub const IID_ITSGPolicyEngine = &IID_ITSGPolicyEngine_Value; pub const ITSGPolicyEngine = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, AuthorizeConnection: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ITSGPolicyEngine, mainSessionId: Guid, username: ?BSTR, authType: AAAuthSchemes, clientMachineIP: ?BSTR, clientMachineName: ?BSTR, sohData: [*:0]u8, numSOHBytes: u32, cookieData: [*:0]u8, numCookieBytes: u32, userToken: HANDLE_PTR, pSink: ?*ITSGAuthorizeConnectionSink, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ITSGPolicyEngine, mainSessionId: Guid, username: ?BSTR, authType: AAAuthSchemes, clientMachineIP: ?BSTR, clientMachineName: ?BSTR, sohData: [*:0]u8, numSOHBytes: u32, cookieData: [*:0]u8, numCookieBytes: u32, userToken: HANDLE_PTR, pSink: ?*ITSGAuthorizeConnectionSink, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, AuthorizeResource: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ITSGPolicyEngine, mainSessionId: Guid, subSessionId: i32, username: ?BSTR, resourceNames: [*]?BSTR, numResources: u32, alternateResourceNames: [*]?BSTR, numAlternateResourceName: u32, portNumber: u32, operation: ?BSTR, cookie: [*:0]u8, numBytesInCookie: u32, pSink: ?*ITSGAuthorizeResourceSink, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ITSGPolicyEngine, mainSessionId: Guid, subSessionId: i32, username: ?BSTR, resourceNames: [*]?BSTR, numResources: u32, alternateResourceNames: [*]?BSTR, numAlternateResourceName: u32, portNumber: u32, operation: ?BSTR, cookie: [*:0]u8, numBytesInCookie: u32, pSink: ?*ITSGAuthorizeResourceSink, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Refresh: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ITSGPolicyEngine, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ITSGPolicyEngine, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, IsQuarantineEnabled: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ITSGPolicyEngine, quarantineEnabled: ?*BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ITSGPolicyEngine, quarantineEnabled: ?*BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITSGPolicyEngine_AuthorizeConnection(self: *const T, mainSessionId: Guid, username: ?BSTR, authType: AAAuthSchemes, clientMachineIP: ?BSTR, clientMachineName: ?BSTR, sohData: [*:0]u8, numSOHBytes: u32, cookieData: [*:0]u8, numCookieBytes: u32, userToken: HANDLE_PTR, pSink: ?*ITSGAuthorizeConnectionSink) HRESULT { return @as(*const ITSGPolicyEngine.VTable, @ptrCast(self.vtable)).AuthorizeConnection(@as(*const ITSGPolicyEngine, @ptrCast(self)), mainSessionId, username, authType, clientMachineIP, clientMachineName, sohData, numSOHBytes, cookieData, numCookieBytes, userToken, pSink); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITSGPolicyEngine_AuthorizeResource(self: *const T, mainSessionId: Guid, subSessionId: i32, username: ?BSTR, resourceNames: [*]?BSTR, numResources: u32, alternateResourceNames: [*]?BSTR, numAlternateResourceName: u32, portNumber: u32, operation: ?BSTR, cookie: [*:0]u8, numBytesInCookie: u32, pSink: ?*ITSGAuthorizeResourceSink) HRESULT { return @as(*const ITSGPolicyEngine.VTable, @ptrCast(self.vtable)).AuthorizeResource(@as(*const ITSGPolicyEngine, @ptrCast(self)), mainSessionId, subSessionId, username, resourceNames, numResources, alternateResourceNames, numAlternateResourceName, portNumber, operation, cookie, numBytesInCookie, pSink); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITSGPolicyEngine_Refresh(self: *const T) HRESULT { return @as(*const ITSGPolicyEngine.VTable, @ptrCast(self.vtable)).Refresh(@as(*const ITSGPolicyEngine, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITSGPolicyEngine_IsQuarantineEnabled(self: *const T, quarantineEnabled: ?*BOOL) HRESULT { return @as(*const ITSGPolicyEngine.VTable, @ptrCast(self.vtable)).IsQuarantineEnabled(@as(*const ITSGPolicyEngine, @ptrCast(self)), quarantineEnabled); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows6.1' const IID_ITSGAccountingEngine_Value = Guid.initString("4ce2a0c9-e874-4f1a-86f4-06bbb9115338"); pub const IID_ITSGAccountingEngine = &IID_ITSGAccountingEngine_Value; pub const ITSGAccountingEngine = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, DoAccounting: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ITSGAccountingEngine, accountingDataType: AAAccountingDataType, accountingData: AAAccountingData, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ITSGAccountingEngine, accountingDataType: AAAccountingDataType, accountingData: AAAccountingData, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITSGAccountingEngine_DoAccounting(self: *const T, accountingDataType: AAAccountingDataType, accountingData: AAAccountingData) HRESULT { return @as(*const ITSGAccountingEngine.VTable, @ptrCast(self.vtable)).DoAccounting(@as(*const ITSGAccountingEngine, @ptrCast(self)), accountingDataType, accountingData); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows6.1' const IID_ITSGAuthenticateUserSink_Value = Guid.initString("2c3e2e73-a782-47f9-8dfb-77ee1ed27a03"); pub const IID_ITSGAuthenticateUserSink = &IID_ITSGAuthenticateUserSink_Value; pub const ITSGAuthenticateUserSink = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, OnUserAuthenticated: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ITSGAuthenticateUserSink, userName: ?BSTR, userDomain: ?BSTR, context: usize, userToken: HANDLE_PTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ITSGAuthenticateUserSink, userName: ?BSTR, userDomain: ?BSTR, context: usize, userToken: HANDLE_PTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, OnUserAuthenticationFailed: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ITSGAuthenticateUserSink, context: usize, genericErrorCode: HRESULT, specificErrorCode: HRESULT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ITSGAuthenticateUserSink, context: usize, genericErrorCode: HRESULT, specificErrorCode: HRESULT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, ReauthenticateUser: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ITSGAuthenticateUserSink, context: usize, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ITSGAuthenticateUserSink, context: usize, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, DisconnectUser: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ITSGAuthenticateUserSink, context: usize, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ITSGAuthenticateUserSink, context: usize, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITSGAuthenticateUserSink_OnUserAuthenticated(self: *const T, userName: ?BSTR, userDomain: ?BSTR, context: usize, userToken: HANDLE_PTR) HRESULT { return @as(*const ITSGAuthenticateUserSink.VTable, @ptrCast(self.vtable)).OnUserAuthenticated(@as(*const ITSGAuthenticateUserSink, @ptrCast(self)), userName, userDomain, context, userToken); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITSGAuthenticateUserSink_OnUserAuthenticationFailed(self: *const T, context: usize, genericErrorCode: HRESULT, specificErrorCode: HRESULT) HRESULT { return @as(*const ITSGAuthenticateUserSink.VTable, @ptrCast(self.vtable)).OnUserAuthenticationFailed(@as(*const ITSGAuthenticateUserSink, @ptrCast(self)), context, genericErrorCode, specificErrorCode); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITSGAuthenticateUserSink_ReauthenticateUser(self: *const T, context: usize) HRESULT { return @as(*const ITSGAuthenticateUserSink.VTable, @ptrCast(self.vtable)).ReauthenticateUser(@as(*const ITSGAuthenticateUserSink, @ptrCast(self)), context); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITSGAuthenticateUserSink_DisconnectUser(self: *const T, context: usize) HRESULT { return @as(*const ITSGAuthenticateUserSink.VTable, @ptrCast(self.vtable)).DisconnectUser(@as(*const ITSGAuthenticateUserSink, @ptrCast(self)), context); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows6.1' const IID_ITSGAuthenticationEngine_Value = Guid.initString("9ee3e5bf-04ab-4691-998c-d7f622321a56"); pub const IID_ITSGAuthenticationEngine = &IID_ITSGAuthenticationEngine_Value; pub const ITSGAuthenticationEngine = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, AuthenticateUser: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ITSGAuthenticationEngine, mainSessionId: Guid, cookieData: ?*u8, numCookieBytes: u32, context: usize, pSink: ?*ITSGAuthenticateUserSink, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ITSGAuthenticationEngine, mainSessionId: Guid, cookieData: ?*u8, numCookieBytes: u32, context: usize, pSink: ?*ITSGAuthenticateUserSink, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, CancelAuthentication: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ITSGAuthenticationEngine, mainSessionId: Guid, context: usize, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ITSGAuthenticationEngine, mainSessionId: Guid, context: usize, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITSGAuthenticationEngine_AuthenticateUser(self: *const T, mainSessionId: Guid, cookieData: ?*u8, numCookieBytes: u32, context: usize, pSink: ?*ITSGAuthenticateUserSink) HRESULT { return @as(*const ITSGAuthenticationEngine.VTable, @ptrCast(self.vtable)).AuthenticateUser(@as(*const ITSGAuthenticationEngine, @ptrCast(self)), mainSessionId, cookieData, numCookieBytes, context, pSink); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITSGAuthenticationEngine_CancelAuthentication(self: *const T, mainSessionId: Guid, context: usize) HRESULT { return @as(*const ITSGAuthenticationEngine.VTable, @ptrCast(self.vtable)).CancelAuthentication(@as(*const ITSGAuthenticationEngine, @ptrCast(self)), mainSessionId, context); } }; } pub usingnamespace MethodMixin(@This()); }; pub const WTS_CONNECTSTATE_CLASS = enum(i32) { Active = 0, Connected = 1, ConnectQuery = 2, Shadow = 3, Disconnected = 4, Idle = 5, Listen = 6, Reset = 7, Down = 8, Init = 9, }; pub const WTSActive = WTS_CONNECTSTATE_CLASS.Active; pub const WTSConnected = WTS_CONNECTSTATE_CLASS.Connected; pub const WTSConnectQuery = WTS_CONNECTSTATE_CLASS.ConnectQuery; pub const WTSShadow = WTS_CONNECTSTATE_CLASS.Shadow; pub const WTSDisconnected = WTS_CONNECTSTATE_CLASS.Disconnected; pub const WTSIdle = WTS_CONNECTSTATE_CLASS.Idle; pub const WTSListen = WTS_CONNECTSTATE_CLASS.Listen; pub const WTSReset = WTS_CONNECTSTATE_CLASS.Reset; pub const WTSDown = WTS_CONNECTSTATE_CLASS.Down; pub const WTSInit = WTS_CONNECTSTATE_CLASS.Init; pub const WTS_SERVER_INFOW = extern struct { pServerName: ?PWSTR, }; pub const WTS_SERVER_INFOA = extern struct { pServerName: ?PSTR, }; pub const WTS_SESSION_INFOW = extern struct { SessionId: u32, pWinStationName: ?PWSTR, State: WTS_CONNECTSTATE_CLASS, }; pub const WTS_SESSION_INFOA = extern struct { SessionId: u32, pWinStationName: ?PSTR, State: WTS_CONNECTSTATE_CLASS, }; pub const WTS_SESSION_INFO_1W = extern struct { ExecEnvId: u32, State: WTS_CONNECTSTATE_CLASS, SessionId: u32, pSessionName: ?PWSTR, pHostName: ?PWSTR, pUserName: ?PWSTR, pDomainName: ?PWSTR, pFarmName: ?PWSTR, }; pub const WTS_SESSION_INFO_1A = extern struct { ExecEnvId: u32, State: WTS_CONNECTSTATE_CLASS, SessionId: u32, pSessionName: ?PSTR, pHostName: ?PSTR, pUserName: ?PSTR, pDomainName: ?PSTR, pFarmName: ?PSTR, }; pub const WTS_PROCESS_INFOW = extern struct { SessionId: u32, ProcessId: u32, pProcessName: ?PWSTR, pUserSid: ?PSID, }; pub const WTS_PROCESS_INFOA = extern struct { SessionId: u32, ProcessId: u32, pProcessName: ?PSTR, pUserSid: ?PSID, }; pub const WTS_INFO_CLASS = enum(i32) { InitialProgram = 0, ApplicationName = 1, WorkingDirectory = 2, OEMId = 3, SessionId = 4, UserName = 5, WinStationName = 6, DomainName = 7, ConnectState = 8, ClientBuildNumber = 9, ClientName = 10, ClientDirectory = 11, ClientProductId = 12, ClientHardwareId = 13, ClientAddress = 14, ClientDisplay = 15, ClientProtocolType = 16, IdleTime = 17, LogonTime = 18, IncomingBytes = 19, OutgoingBytes = 20, IncomingFrames = 21, OutgoingFrames = 22, ClientInfo = 23, SessionInfo = 24, SessionInfoEx = 25, ConfigInfo = 26, ValidationInfo = 27, SessionAddressV4 = 28, IsRemoteSession = 29, }; pub const WTSInitialProgram = WTS_INFO_CLASS.InitialProgram; pub const WTSApplicationName = WTS_INFO_CLASS.ApplicationName; pub const WTSWorkingDirectory = WTS_INFO_CLASS.WorkingDirectory; pub const WTSOEMId = WTS_INFO_CLASS.OEMId; pub const WTSSessionId = WTS_INFO_CLASS.SessionId; pub const WTSUserName = WTS_INFO_CLASS.UserName; pub const WTSWinStationName = WTS_INFO_CLASS.WinStationName; pub const WTSDomainName = WTS_INFO_CLASS.DomainName; pub const WTSConnectState = WTS_INFO_CLASS.ConnectState; pub const WTSClientBuildNumber = WTS_INFO_CLASS.ClientBuildNumber; pub const WTSClientName = WTS_INFO_CLASS.ClientName; pub const WTSClientDirectory = WTS_INFO_CLASS.ClientDirectory; pub const WTSClientProductId = WTS_INFO_CLASS.ClientProductId; pub const WTSClientHardwareId = WTS_INFO_CLASS.ClientHardwareId; pub const WTSClientAddress = WTS_INFO_CLASS.ClientAddress; pub const WTSClientDisplay = WTS_INFO_CLASS.ClientDisplay; pub const WTSClientProtocolType = WTS_INFO_CLASS.ClientProtocolType; pub const WTSIdleTime = WTS_INFO_CLASS.IdleTime; pub const WTSLogonTime = WTS_INFO_CLASS.LogonTime; pub const WTSIncomingBytes = WTS_INFO_CLASS.IncomingBytes; pub const WTSOutgoingBytes = WTS_INFO_CLASS.OutgoingBytes; pub const WTSIncomingFrames = WTS_INFO_CLASS.IncomingFrames; pub const WTSOutgoingFrames = WTS_INFO_CLASS.OutgoingFrames; pub const WTSClientInfo = WTS_INFO_CLASS.ClientInfo; pub const WTSSessionInfo = WTS_INFO_CLASS.SessionInfo; pub const WTSSessionInfoEx = WTS_INFO_CLASS.SessionInfoEx; pub const WTSConfigInfo = WTS_INFO_CLASS.ConfigInfo; pub const WTSValidationInfo = WTS_INFO_CLASS.ValidationInfo; pub const WTSSessionAddressV4 = WTS_INFO_CLASS.SessionAddressV4; pub const WTSIsRemoteSession = WTS_INFO_CLASS.IsRemoteSession; pub const WTSCONFIGINFOW = extern struct { version: u32, fConnectClientDrivesAtLogon: u32, fConnectPrinterAtLogon: u32, fDisablePrinterRedirection: u32, fDisableDefaultMainClientPrinter: u32, ShadowSettings: u32, LogonUserName: [21]u16, LogonDomain: [18]u16, WorkDirectory: [261]u16, InitialProgram: [261]u16, ApplicationName: [261]u16, }; pub const WTSCONFIGINFOA = extern struct { version: u32, fConnectClientDrivesAtLogon: u32, fConnectPrinterAtLogon: u32, fDisablePrinterRedirection: u32, fDisableDefaultMainClientPrinter: u32, ShadowSettings: u32, LogonUserName: [21]CHAR, LogonDomain: [18]CHAR, WorkDirectory: [261]CHAR, InitialProgram: [261]CHAR, ApplicationName: [261]CHAR, }; pub const WTSINFOW = extern struct { State: WTS_CONNECTSTATE_CLASS, SessionId: u32, IncomingBytes: u32, OutgoingBytes: u32, IncomingFrames: u32, OutgoingFrames: u32, IncomingCompressedBytes: u32, OutgoingCompressedBytes: u32, WinStationName: [32]u16, Domain: [17]u16, UserName: [21]u16, ConnectTime: LARGE_INTEGER, DisconnectTime: LARGE_INTEGER, LastInputTime: LARGE_INTEGER, LogonTime: LARGE_INTEGER, CurrentTime: LARGE_INTEGER, }; pub const WTSINFOA = extern struct { State: WTS_CONNECTSTATE_CLASS, SessionId: u32, IncomingBytes: u32, OutgoingBytes: u32, IncomingFrames: u32, OutgoingFrames: u32, IncomingCompressedBytes: u32, OutgoingCompressedBy: u32, WinStationName: [32]CHAR, Domain: [17]CHAR, UserName: [21]CHAR, ConnectTime: LARGE_INTEGER, DisconnectTime: LARGE_INTEGER, LastInputTime: LARGE_INTEGER, LogonTime: LARGE_INTEGER, CurrentTime: LARGE_INTEGER, }; pub const WTSINFOEX_LEVEL1_W = extern struct { SessionId: u32, SessionState: WTS_CONNECTSTATE_CLASS, SessionFlags: i32, WinStationName: [33]u16, UserName: [21]u16, DomainName: [18]u16, LogonTime: LARGE_INTEGER, ConnectTime: LARGE_INTEGER, DisconnectTime: LARGE_INTEGER, LastInputTime: LARGE_INTEGER, CurrentTime: LARGE_INTEGER, IncomingBytes: u32, OutgoingBytes: u32, IncomingFrames: u32, OutgoingFrames: u32, IncomingCompressedBytes: u32, OutgoingCompressedBytes: u32, }; pub const WTSINFOEX_LEVEL1_A = extern struct { SessionId: u32, SessionState: WTS_CONNECTSTATE_CLASS, SessionFlags: i32, WinStationName: [33]CHAR, UserName: [21]CHAR, DomainName: [18]CHAR, LogonTime: LARGE_INTEGER, ConnectTime: LARGE_INTEGER, DisconnectTime: LARGE_INTEGER, LastInputTime: LARGE_INTEGER, CurrentTime: LARGE_INTEGER, IncomingBytes: u32, OutgoingBytes: u32, IncomingFrames: u32, OutgoingFrames: u32, IncomingCompressedBytes: u32, OutgoingCompressedBytes: u32, }; pub const WTSINFOEX_LEVEL_W = extern union { WTSInfoExLevel1: WTSINFOEX_LEVEL1_W, }; pub const WTSINFOEX_LEVEL_A = extern union { WTSInfoExLevel1: WTSINFOEX_LEVEL1_A, }; pub const WTSINFOEXW = extern struct { Level: u32, Data: WTSINFOEX_LEVEL_W, }; pub const WTSINFOEXA = extern struct { Level: u32, Data: WTSINFOEX_LEVEL_A, }; pub const WTSCLIENTW = extern struct { ClientName: [21]u16, Domain: [18]u16, UserName: [21]u16, WorkDirectory: [261]u16, InitialProgram: [261]u16, EncryptionLevel: u8, ClientAddressFamily: u32, ClientAddress: [31]u16, HRes: u16, VRes: u16, ColorDepth: u16, ClientDirectory: [261]u16, ClientBuildNumber: u32, ClientHardwareId: u32, ClientProductId: u16, OutBufCountHost: u16, OutBufCountClient: u16, OutBufLength: u16, DeviceId: [261]u16, }; pub const WTSCLIENTA = extern struct { ClientName: [21]CHAR, Domain: [18]CHAR, UserName: [21]CHAR, WorkDirectory: [261]CHAR, InitialProgram: [261]CHAR, EncryptionLevel: u8, ClientAddressFamily: u32, ClientAddress: [31]u16, HRes: u16, VRes: u16, ColorDepth: u16, ClientDirectory: [261]CHAR, ClientBuildNumber: u32, ClientHardwareId: u32, ClientProductId: u16, OutBufCountHost: u16, OutBufCountClient: u16, OutBufLength: u16, DeviceId: [261]CHAR, }; pub const _WTS_PRODUCT_INFOA = extern struct { CompanyName: [256]CHAR, ProductID: [4]CHAR, }; pub const _WTS_PRODUCT_INFOW = extern struct { CompanyName: [256]u16, ProductID: [4]u16, }; pub const WTS_VALIDATION_INFORMATIONA = extern struct { ProductInfo: _WTS_PRODUCT_INFOA, License: [16384]u8, LicenseLength: u32, HardwareID: [20]u8, HardwareIDLength: u32, }; pub const WTS_VALIDATION_INFORMATIONW = extern struct { ProductInfo: _WTS_PRODUCT_INFOW, License: [16384]u8, LicenseLength: u32, HardwareID: [20]u8, HardwareIDLength: u32, }; pub const WTS_CLIENT_ADDRESS = extern struct { AddressFamily: u32, Address: [20]u8, }; pub const WTS_CLIENT_DISPLAY = extern struct { HorizontalResolution: u32, VerticalResolution: u32, ColorDepth: u32, }; pub const WTS_CONFIG_CLASS = enum(i32) { InitialProgram = 0, WorkingDirectory = 1, fInheritInitialProgram = 2, fAllowLogonTerminalServer = 3, TimeoutSettingsConnections = 4, TimeoutSettingsDisconnections = 5, TimeoutSettingsIdle = 6, fDeviceClientDrives = 7, fDeviceClientPrinters = 8, fDeviceClientDefaultPrinter = 9, BrokenTimeoutSettings = 10, ReconnectSettings = 11, ModemCallbackSettings = 12, ModemCallbackPhoneNumber = 13, ShadowingSettings = 14, TerminalServerProfilePath = 15, TerminalServerHomeDir = 16, TerminalServerHomeDirDrive = 17, fTerminalServerRemoteHomeDir = 18, User = 19, }; pub const WTSUserConfigInitialProgram = WTS_CONFIG_CLASS.InitialProgram; pub const WTSUserConfigWorkingDirectory = WTS_CONFIG_CLASS.WorkingDirectory; pub const WTSUserConfigfInheritInitialProgram = WTS_CONFIG_CLASS.fInheritInitialProgram; pub const WTSUserConfigfAllowLogonTerminalServer = WTS_CONFIG_CLASS.fAllowLogonTerminalServer; pub const WTSUserConfigTimeoutSettingsConnections = WTS_CONFIG_CLASS.TimeoutSettingsConnections; pub const WTSUserConfigTimeoutSettingsDisconnections = WTS_CONFIG_CLASS.TimeoutSettingsDisconnections; pub const WTSUserConfigTimeoutSettingsIdle = WTS_CONFIG_CLASS.TimeoutSettingsIdle; pub const WTSUserConfigfDeviceClientDrives = WTS_CONFIG_CLASS.fDeviceClientDrives; pub const WTSUserConfigfDeviceClientPrinters = WTS_CONFIG_CLASS.fDeviceClientPrinters; pub const WTSUserConfigfDeviceClientDefaultPrinter = WTS_CONFIG_CLASS.fDeviceClientDefaultPrinter; pub const WTSUserConfigBrokenTimeoutSettings = WTS_CONFIG_CLASS.BrokenTimeoutSettings; pub const WTSUserConfigReconnectSettings = WTS_CONFIG_CLASS.ReconnectSettings; pub const WTSUserConfigModemCallbackSettings = WTS_CONFIG_CLASS.ModemCallbackSettings; pub const WTSUserConfigModemCallbackPhoneNumber = WTS_CONFIG_CLASS.ModemCallbackPhoneNumber; pub const WTSUserConfigShadowingSettings = WTS_CONFIG_CLASS.ShadowingSettings; pub const WTSUserConfigTerminalServerProfilePath = WTS_CONFIG_CLASS.TerminalServerProfilePath; pub const WTSUserConfigTerminalServerHomeDir = WTS_CONFIG_CLASS.TerminalServerHomeDir; pub const WTSUserConfigTerminalServerHomeDirDrive = WTS_CONFIG_CLASS.TerminalServerHomeDirDrive; pub const WTSUserConfigfTerminalServerRemoteHomeDir = WTS_CONFIG_CLASS.fTerminalServerRemoteHomeDir; pub const WTSUserConfigUser = WTS_CONFIG_CLASS.User; pub const WTS_CONFIG_SOURCE = enum(i32) { M = 0, }; pub const WTSUserConfigSourceSAM = WTS_CONFIG_SOURCE.M; pub const WTSUSERCONFIGA = extern struct { Source: u32, InheritInitialProgram: u32, AllowLogonTerminalServer: u32, TimeoutSettingsConnections: u32, TimeoutSettingsDisconnections: u32, TimeoutSettingsIdle: u32, DeviceClientDrives: u32, DeviceClientPrinters: u32, ClientDefaultPrinter: u32, BrokenTimeoutSettings: u32, ReconnectSettings: u32, ShadowingSettings: u32, TerminalServerRemoteHomeDir: u32, InitialProgram: [261]CHAR, WorkDirectory: [261]CHAR, TerminalServerProfilePath: [261]CHAR, TerminalServerHomeDir: [261]CHAR, TerminalServerHomeDirDrive: [4]CHAR, }; pub const WTSUSERCONFIGW = extern struct { Source: u32, InheritInitialProgram: u32, AllowLogonTerminalServer: u32, TimeoutSettingsConnections: u32, TimeoutSettingsDisconnections: u32, TimeoutSettingsIdle: u32, DeviceClientDrives: u32, DeviceClientPrinters: u32, ClientDefaultPrinter: u32, BrokenTimeoutSettings: u32, ReconnectSettings: u32, ShadowingSettings: u32, TerminalServerRemoteHomeDir: u32, InitialProgram: [261]u16, WorkDirectory: [261]u16, TerminalServerProfilePath: [261]u16, TerminalServerHomeDir: [261]u16, TerminalServerHomeDirDrive: [4]u16, }; pub const WTS_VIRTUAL_CLASS = enum(i32) { ClientData = 0, FileHandle = 1, }; pub const WTSVirtualClientData = WTS_VIRTUAL_CLASS.ClientData; pub const WTSVirtualFileHandle = WTS_VIRTUAL_CLASS.FileHandle; pub const WTS_SESSION_ADDRESS = extern struct { AddressFamily: u32, Address: [20]u8, }; pub const WTS_PROCESS_INFO_EXW = extern struct { SessionId: u32, ProcessId: u32, pProcessName: ?PWSTR, pUserSid: ?PSID, NumberOfThreads: u32, HandleCount: u32, PagefileUsage: u32, PeakPagefileUsage: u32, WorkingSetSize: u32, PeakWorkingSetSize: u32, UserTime: LARGE_INTEGER, KernelTime: LARGE_INTEGER, }; pub const WTS_PROCESS_INFO_EXA = extern struct { SessionId: u32, ProcessId: u32, pProcessName: ?PSTR, pUserSid: ?PSID, NumberOfThreads: u32, HandleCount: u32, PagefileUsage: u32, PeakPagefileUsage: u32, WorkingSetSize: u32, PeakWorkingSetSize: u32, UserTime: LARGE_INTEGER, KernelTime: LARGE_INTEGER, }; pub const WTS_TYPE_CLASS = enum(i32) { ProcessInfoLevel0 = 0, ProcessInfoLevel1 = 1, SessionInfoLevel1 = 2, }; pub const WTSTypeProcessInfoLevel0 = WTS_TYPE_CLASS.ProcessInfoLevel0; pub const WTSTypeProcessInfoLevel1 = WTS_TYPE_CLASS.ProcessInfoLevel1; pub const WTSTypeSessionInfoLevel1 = WTS_TYPE_CLASS.SessionInfoLevel1; pub const WTSLISTENERCONFIGW = extern struct { version: u32, fEnableListener: u32, MaxConnectionCount: u32, fPromptForPassword: u32, fInheritColorDepth: u32, ColorDepth: u32, fInheritBrokenTimeoutSettings: u32, BrokenTimeoutSettings: u32, fDisablePrinterRedirection: u32, fDisableDriveRedirection: u32, fDisableComPortRedirection: u32, fDisableLPTPortRedirection: u32, fDisableClipboardRedirection: u32, fDisableAudioRedirection: u32, fDisablePNPRedirection: u32, fDisableDefaultMainClientPrinter: u32, LanAdapter: u32, PortNumber: u32, fInheritShadowSettings: u32, ShadowSettings: u32, TimeoutSettingsConnection: u32, TimeoutSettingsDisconnection: u32, TimeoutSettingsIdle: u32, SecurityLayer: u32, MinEncryptionLevel: u32, UserAuthentication: u32, Comment: [61]u16, LogonUserName: [21]u16, LogonDomain: [18]u16, WorkDirectory: [261]u16, InitialProgram: [261]u16, }; pub const WTSLISTENERCONFIGA = extern struct { version: u32, fEnableListener: u32, MaxConnectionCount: u32, fPromptForPassword: u32, fInheritColorDepth: u32, ColorDepth: u32, fInheritBrokenTimeoutSettings: u32, BrokenTimeoutSettings: u32, fDisablePrinterRedirection: u32, fDisableDriveRedirection: u32, fDisableComPortRedirection: u32, fDisableLPTPortRedirection: u32, fDisableClipboardRedirection: u32, fDisableAudioRedirection: u32, fDisablePNPRedirection: u32, fDisableDefaultMainClientPrinter: u32, LanAdapter: u32, PortNumber: u32, fInheritShadowSettings: u32, ShadowSettings: u32, TimeoutSettingsConnection: u32, TimeoutSettingsDisconnection: u32, TimeoutSettingsIdle: u32, SecurityLayer: u32, MinEncryptionLevel: u32, UserAuthentication: u32, Comment: [61]CHAR, LogonUserName: [21]CHAR, LogonDomain: [18]CHAR, WorkDirectory: [261]CHAR, InitialProgram: [261]CHAR, }; pub const WTSSBX_MACHINE_DRAIN = enum(i32) { UNSPEC = 0, OFF = 1, ON = 2, }; pub const WTSSBX_MACHINE_DRAIN_UNSPEC = WTSSBX_MACHINE_DRAIN.UNSPEC; pub const WTSSBX_MACHINE_DRAIN_OFF = WTSSBX_MACHINE_DRAIN.OFF; pub const WTSSBX_MACHINE_DRAIN_ON = WTSSBX_MACHINE_DRAIN.ON; pub const WTSSBX_MACHINE_SESSION_MODE = enum(i32) { UNSPEC = 0, SINGLE = 1, MULTIPLE = 2, }; pub const WTSSBX_MACHINE_SESSION_MODE_UNSPEC = WTSSBX_MACHINE_SESSION_MODE.UNSPEC; pub const WTSSBX_MACHINE_SESSION_MODE_SINGLE = WTSSBX_MACHINE_SESSION_MODE.SINGLE; pub const WTSSBX_MACHINE_SESSION_MODE_MULTIPLE = WTSSBX_MACHINE_SESSION_MODE.MULTIPLE; pub const WTSSBX_ADDRESS_FAMILY = enum(i32) { UNSPEC = 0, INET = 1, INET6 = 2, IPX = 3, NETBIOS = 4, }; pub const WTSSBX_ADDRESS_FAMILY_AF_UNSPEC = WTSSBX_ADDRESS_FAMILY.UNSPEC; pub const WTSSBX_ADDRESS_FAMILY_AF_INET = WTSSBX_ADDRESS_FAMILY.INET; pub const WTSSBX_ADDRESS_FAMILY_AF_INET6 = WTSSBX_ADDRESS_FAMILY.INET6; pub const WTSSBX_ADDRESS_FAMILY_AF_IPX = WTSSBX_ADDRESS_FAMILY.IPX; pub const WTSSBX_ADDRESS_FAMILY_AF_NETBIOS = WTSSBX_ADDRESS_FAMILY.NETBIOS; pub const WTSSBX_IP_ADDRESS = extern struct { AddressFamily: WTSSBX_ADDRESS_FAMILY, Address: [16]u8, PortNumber: u16, dwScope: u32, }; pub const WTSSBX_MACHINE_STATE = enum(i32) { UNSPEC = 0, READY = 1, SYNCHRONIZING = 2, }; pub const WTSSBX_MACHINE_STATE_UNSPEC = WTSSBX_MACHINE_STATE.UNSPEC; pub const WTSSBX_MACHINE_STATE_READY = WTSSBX_MACHINE_STATE.READY; pub const WTSSBX_MACHINE_STATE_SYNCHRONIZING = WTSSBX_MACHINE_STATE.SYNCHRONIZING; pub const WTSSBX_MACHINE_CONNECT_INFO = extern struct { wczMachineFQDN: [257]u16, wczMachineNetBiosName: [17]u16, dwNumOfIPAddr: u32, IPaddr: [12]WTSSBX_IP_ADDRESS, }; pub const WTSSBX_MACHINE_INFO = extern struct { ClientConnectInfo: WTSSBX_MACHINE_CONNECT_INFO, wczFarmName: [257]u16, InternalIPAddress: WTSSBX_IP_ADDRESS, dwMaxSessionsLimit: u32, ServerWeight: u32, SingleSessionMode: WTSSBX_MACHINE_SESSION_MODE, InDrain: WTSSBX_MACHINE_DRAIN, MachineState: WTSSBX_MACHINE_STATE, }; pub const WTSSBX_SESSION_STATE = enum(i32) { UNSPEC = 0, ACTIVE = 1, DISCONNECTED = 2, }; pub const WTSSBX_SESSION_STATE_UNSPEC = WTSSBX_SESSION_STATE.UNSPEC; pub const WTSSBX_SESSION_STATE_ACTIVE = WTSSBX_SESSION_STATE.ACTIVE; pub const WTSSBX_SESSION_STATE_DISCONNECTED = WTSSBX_SESSION_STATE.DISCONNECTED; pub const WTSSBX_SESSION_INFO = extern struct { wszUserName: [105]u16, wszDomainName: [257]u16, ApplicationType: [257]u16, dwSessionId: u32, CreateTime: FILETIME, DisconnectTime: FILETIME, SessionState: WTSSBX_SESSION_STATE, }; pub const WTSSBX_NOTIFICATION_TYPE = enum(i32) { REMOVED = 1, CHANGED = 2, ADDED = 4, RESYNC = 8, }; pub const WTSSBX_NOTIFICATION_REMOVED = WTSSBX_NOTIFICATION_TYPE.REMOVED; pub const WTSSBX_NOTIFICATION_CHANGED = WTSSBX_NOTIFICATION_TYPE.CHANGED; pub const WTSSBX_NOTIFICATION_ADDED = WTSSBX_NOTIFICATION_TYPE.ADDED; pub const WTSSBX_NOTIFICATION_RESYNC = WTSSBX_NOTIFICATION_TYPE.RESYNC; // TODO: this type is limited to platform 'windowsServer2008' const IID_IWTSSBPlugin_Value = Guid.initString("dc44be78-b18d-4399-b210-641bf67a002c"); pub const IID_IWTSSBPlugin = &IID_IWTSSBPlugin_Value; pub const IWTSSBPlugin = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, Initialize: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IWTSSBPlugin, PluginCapabilities: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IWTSSBPlugin, PluginCapabilities: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, WTSSBX_MachineChangeNotification: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IWTSSBPlugin, NotificationType: WTSSBX_NOTIFICATION_TYPE, MachineId: i32, pMachineInfo: ?*WTSSBX_MACHINE_INFO, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IWTSSBPlugin, NotificationType: WTSSBX_NOTIFICATION_TYPE, MachineId: i32, pMachineInfo: ?*WTSSBX_MACHINE_INFO, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, WTSSBX_SessionChangeNotification: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IWTSSBPlugin, NotificationType: WTSSBX_NOTIFICATION_TYPE, MachineId: i32, NumOfSessions: u32, SessionInfo: [*]WTSSBX_SESSION_INFO, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IWTSSBPlugin, NotificationType: WTSSBX_NOTIFICATION_TYPE, MachineId: i32, NumOfSessions: u32, SessionInfo: [*]WTSSBX_SESSION_INFO, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, WTSSBX_GetMostSuitableServer: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IWTSSBPlugin, UserName: ?PWSTR, DomainName: ?PWSTR, ApplicationType: ?PWSTR, FarmName: ?PWSTR, pMachineId: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IWTSSBPlugin, UserName: ?PWSTR, DomainName: ?PWSTR, ApplicationType: ?PWSTR, FarmName: ?PWSTR, pMachineId: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Terminated: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IWTSSBPlugin, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IWTSSBPlugin, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, WTSSBX_GetUserExternalSession: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IWTSSBPlugin, UserName: ?PWSTR, DomainName: ?PWSTR, ApplicationType: ?PWSTR, RedirectorInternalIP: ?*WTSSBX_IP_ADDRESS, pSessionId: ?*u32, pMachineConnectInfo: ?*WTSSBX_MACHINE_CONNECT_INFO, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IWTSSBPlugin, UserName: ?PWSTR, DomainName: ?PWSTR, ApplicationType: ?PWSTR, RedirectorInternalIP: ?*WTSSBX_IP_ADDRESS, pSessionId: ?*u32, pMachineConnectInfo: ?*WTSSBX_MACHINE_CONNECT_INFO, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWTSSBPlugin_Initialize(self: *const T, PluginCapabilities: ?*u32) HRESULT { return @as(*const IWTSSBPlugin.VTable, @ptrCast(self.vtable)).Initialize(@as(*const IWTSSBPlugin, @ptrCast(self)), PluginCapabilities); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWTSSBPlugin_WTSSBX_MachineChangeNotification(self: *const T, NotificationType: WTSSBX_NOTIFICATION_TYPE, MachineId: i32, pMachineInfo: ?*WTSSBX_MACHINE_INFO) HRESULT { return @as(*const IWTSSBPlugin.VTable, @ptrCast(self.vtable)).WTSSBX_MachineChangeNotification(@as(*const IWTSSBPlugin, @ptrCast(self)), NotificationType, MachineId, pMachineInfo); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWTSSBPlugin_WTSSBX_SessionChangeNotification(self: *const T, NotificationType: WTSSBX_NOTIFICATION_TYPE, MachineId: i32, NumOfSessions: u32, SessionInfo: [*]WTSSBX_SESSION_INFO) HRESULT { return @as(*const IWTSSBPlugin.VTable, @ptrCast(self.vtable)).WTSSBX_SessionChangeNotification(@as(*const IWTSSBPlugin, @ptrCast(self)), NotificationType, MachineId, NumOfSessions, SessionInfo); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWTSSBPlugin_WTSSBX_GetMostSuitableServer(self: *const T, UserName: ?PWSTR, DomainName: ?PWSTR, ApplicationType: ?PWSTR, FarmName: ?PWSTR, pMachineId: ?*i32) HRESULT { return @as(*const IWTSSBPlugin.VTable, @ptrCast(self.vtable)).WTSSBX_GetMostSuitableServer(@as(*const IWTSSBPlugin, @ptrCast(self)), UserName, DomainName, ApplicationType, FarmName, pMachineId); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWTSSBPlugin_Terminated(self: *const T) HRESULT { return @as(*const IWTSSBPlugin.VTable, @ptrCast(self.vtable)).Terminated(@as(*const IWTSSBPlugin, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWTSSBPlugin_WTSSBX_GetUserExternalSession(self: *const T, UserName: ?PWSTR, DomainName: ?PWSTR, ApplicationType: ?PWSTR, RedirectorInternalIP: ?*WTSSBX_IP_ADDRESS, pSessionId: ?*u32, pMachineConnectInfo: ?*WTSSBX_MACHINE_CONNECT_INFO) HRESULT { return @as(*const IWTSSBPlugin.VTable, @ptrCast(self.vtable)).WTSSBX_GetUserExternalSession(@as(*const IWTSSBPlugin, @ptrCast(self)), UserName, DomainName, ApplicationType, RedirectorInternalIP, pSessionId, pMachineConnectInfo); } }; } pub usingnamespace MethodMixin(@This()); }; pub const CHANNEL_DEF = extern struct { name: [8]CHAR align(1), options: u32 align(1), }; pub const CHANNEL_PDU_HEADER = extern struct { length: u32, flags: u32, }; pub const PCHANNEL_INIT_EVENT_FN = switch (@import("builtin").zig_backend) { .stage1 => fn ( pInitHandle: ?*anyopaque, event: u32, pData: ?*anyopaque, dataLength: u32, ) callconv(@import("std").os.windows.WINAPI) void, else => *const fn ( pInitHandle: ?*anyopaque, event: u32, pData: ?*anyopaque, dataLength: u32, ) callconv(@import("std").os.windows.WINAPI) void, }; pub const PCHANNEL_OPEN_EVENT_FN = switch (@import("builtin").zig_backend) { .stage1 => fn ( openHandle: u32, event: u32, pData: ?*anyopaque, dataLength: u32, totalLength: u32, dataFlags: u32, ) callconv(@import("std").os.windows.WINAPI) void, else => *const fn ( openHandle: u32, event: u32, pData: ?*anyopaque, dataLength: u32, totalLength: u32, dataFlags: u32, ) callconv(@import("std").os.windows.WINAPI) void, }; pub const PVIRTUALCHANNELINIT = switch (@import("builtin").zig_backend) { .stage1 => fn ( ppInitHandle: ?*?*anyopaque, pChannel: ?*CHANNEL_DEF, channelCount: i32, versionRequested: u32, pChannelInitEventProc: ?PCHANNEL_INIT_EVENT_FN, ) callconv(@import("std").os.windows.WINAPI) u32, else => *const fn ( ppInitHandle: ?*?*anyopaque, pChannel: ?*CHANNEL_DEF, channelCount: i32, versionRequested: u32, pChannelInitEventProc: ?PCHANNEL_INIT_EVENT_FN, ) callconv(@import("std").os.windows.WINAPI) u32, }; pub const PVIRTUALCHANNELOPEN = switch (@import("builtin").zig_backend) { .stage1 => fn ( pInitHandle: ?*anyopaque, pOpenHandle: ?*u32, pChannelName: ?[*]u8, pChannelOpenEventProc: ?PCHANNEL_OPEN_EVENT_FN, ) callconv(@import("std").os.windows.WINAPI) u32, else => *const fn ( pInitHandle: ?*anyopaque, pOpenHandle: ?*u32, pChannelName: ?[*]u8, pChannelOpenEventProc: ?PCHANNEL_OPEN_EVENT_FN, ) callconv(@import("std").os.windows.WINAPI) u32, }; pub const PVIRTUALCHANNELCLOSE = switch (@import("builtin").zig_backend) { .stage1 => fn ( openHandle: u32, ) callconv(@import("std").os.windows.WINAPI) u32, else => *const fn ( openHandle: u32, ) callconv(@import("std").os.windows.WINAPI) u32, }; pub const PVIRTUALCHANNELWRITE = switch (@import("builtin").zig_backend) { .stage1 => fn ( openHandle: u32, pData: ?*anyopaque, dataLength: u32, pUserData: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) u32, else => *const fn ( openHandle: u32, pData: ?*anyopaque, dataLength: u32, pUserData: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) u32, }; pub const CHANNEL_ENTRY_POINTS = extern struct { cbSize: u32, protocolVersion: u32, pVirtualChannelInit: ?PVIRTUALCHANNELINIT, pVirtualChannelOpen: ?PVIRTUALCHANNELOPEN, pVirtualChannelClose: ?PVIRTUALCHANNELCLOSE, pVirtualChannelWrite: ?PVIRTUALCHANNELWRITE, }; pub const PVIRTUALCHANNELENTRY = switch (@import("builtin").zig_backend) { .stage1 => fn ( pEntryPoints: ?*CHANNEL_ENTRY_POINTS, ) callconv(@import("std").os.windows.WINAPI) BOOL, else => *const fn ( pEntryPoints: ?*CHANNEL_ENTRY_POINTS, ) callconv(@import("std").os.windows.WINAPI) BOOL, }; const CLSID_Workspace_Value = Guid.initString("4f1dfca6-3aad-48e1-8406-4bc21a501d7c"); pub const CLSID_Workspace = &CLSID_Workspace_Value; // TODO: this type is limited to platform 'windows6.1' const IID_IWorkspaceClientExt_Value = Guid.initString("12b952f4-41ca-4f21-a829-a6d07d9a16e5"); pub const IID_IWorkspaceClientExt = &IID_IWorkspaceClientExt_Value; pub const IWorkspaceClientExt = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, GetResourceId: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IWorkspaceClientExt, bstrWorkspaceId: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IWorkspaceClientExt, bstrWorkspaceId: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetResourceDisplayName: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IWorkspaceClientExt, bstrWorkspaceDisplayName: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IWorkspaceClientExt, bstrWorkspaceDisplayName: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, IssueDisconnect: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IWorkspaceClientExt, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IWorkspaceClientExt, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWorkspaceClientExt_GetResourceId(self: *const T, bstrWorkspaceId: ?*?BSTR) HRESULT { return @as(*const IWorkspaceClientExt.VTable, @ptrCast(self.vtable)).GetResourceId(@as(*const IWorkspaceClientExt, @ptrCast(self)), bstrWorkspaceId); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWorkspaceClientExt_GetResourceDisplayName(self: *const T, bstrWorkspaceDisplayName: ?*?BSTR) HRESULT { return @as(*const IWorkspaceClientExt.VTable, @ptrCast(self.vtable)).GetResourceDisplayName(@as(*const IWorkspaceClientExt, @ptrCast(self)), bstrWorkspaceDisplayName); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWorkspaceClientExt_IssueDisconnect(self: *const T) HRESULT { return @as(*const IWorkspaceClientExt.VTable, @ptrCast(self.vtable)).IssueDisconnect(@as(*const IWorkspaceClientExt, @ptrCast(self))); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows6.1' const IID_IWorkspace_Value = Guid.initString("b922bbb8-4c55-4fea-8496-beb0b44285e5"); pub const IID_IWorkspace = &IID_IWorkspace_Value; pub const IWorkspace = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, GetWorkspaceNames: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IWorkspace, psaWkspNames: ?*?*SAFEARRAY, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IWorkspace, psaWkspNames: ?*?*SAFEARRAY, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, StartRemoteApplication: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IWorkspace, bstrWorkspaceId: ?BSTR, psaParams: ?*SAFEARRAY, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IWorkspace, bstrWorkspaceId: ?BSTR, psaParams: ?*SAFEARRAY, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetProcessId: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IWorkspace, pulProcessId: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IWorkspace, pulProcessId: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWorkspace_GetWorkspaceNames(self: *const T, psaWkspNames: ?*?*SAFEARRAY) HRESULT { return @as(*const IWorkspace.VTable, @ptrCast(self.vtable)).GetWorkspaceNames(@as(*const IWorkspace, @ptrCast(self)), psaWkspNames); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWorkspace_StartRemoteApplication(self: *const T, bstrWorkspaceId: ?BSTR, psaParams: ?*SAFEARRAY) HRESULT { return @as(*const IWorkspace.VTable, @ptrCast(self.vtable)).StartRemoteApplication(@as(*const IWorkspace, @ptrCast(self)), bstrWorkspaceId, psaParams); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWorkspace_GetProcessId(self: *const T, pulProcessId: ?*u32) HRESULT { return @as(*const IWorkspace.VTable, @ptrCast(self.vtable)).GetProcessId(@as(*const IWorkspace, @ptrCast(self)), pulProcessId); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows8.0' const IID_IWorkspace2_Value = Guid.initString("96d8d7cf-783e-4286-834c-ebc0e95f783c"); pub const IID_IWorkspace2 = &IID_IWorkspace2_Value; pub const IWorkspace2 = extern struct { pub const VTable = extern struct { base: IWorkspace.VTable, StartRemoteApplicationEx: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IWorkspace2, bstrWorkspaceId: ?BSTR, bstrRequestingAppId: ?BSTR, bstrRequestingAppFamilyName: ?BSTR, bLaunchIntoImmersiveClient: i16, bstrImmersiveClientActivationContext: ?BSTR, psaParams: ?*SAFEARRAY, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IWorkspace2, bstrWorkspaceId: ?BSTR, bstrRequestingAppId: ?BSTR, bstrRequestingAppFamilyName: ?BSTR, bLaunchIntoImmersiveClient: i16, bstrImmersiveClientActivationContext: ?BSTR, psaParams: ?*SAFEARRAY, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IWorkspace.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWorkspace2_StartRemoteApplicationEx(self: *const T, bstrWorkspaceId: ?BSTR, bstrRequestingAppId: ?BSTR, bstrRequestingAppFamilyName: ?BSTR, bLaunchIntoImmersiveClient: i16, bstrImmersiveClientActivationContext: ?BSTR, psaParams: ?*SAFEARRAY) HRESULT { return @as(*const IWorkspace2.VTable, @ptrCast(self.vtable)).StartRemoteApplicationEx(@as(*const IWorkspace2, @ptrCast(self)), bstrWorkspaceId, bstrRequestingAppId, bstrRequestingAppFamilyName, bLaunchIntoImmersiveClient, bstrImmersiveClientActivationContext, psaParams); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows10.0.10240' const IID_IWorkspace3_Value = Guid.initString("1becbe4a-d654-423b-afeb-be8d532c13c6"); pub const IID_IWorkspace3 = &IID_IWorkspace3_Value; pub const IWorkspace3 = extern struct { pub const VTable = extern struct { base: IWorkspace2.VTable, GetClaimsToken2: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IWorkspace3, bstrClaimsHint: ?BSTR, bstrUserHint: ?BSTR, claimCookie: u32, hwndCredUiParent: u32, rectCredUiParent: RECT, pbstrAccessToken: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IWorkspace3, bstrClaimsHint: ?BSTR, bstrUserHint: ?BSTR, claimCookie: u32, hwndCredUiParent: u32, rectCredUiParent: RECT, pbstrAccessToken: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetClaimsToken: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IWorkspace3, bstrAccessToken: ?BSTR, ullAccessTokenExpiration: u64, bstrRefreshToken: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IWorkspace3, bstrAccessToken: ?BSTR, ullAccessTokenExpiration: u64, bstrRefreshToken: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IWorkspace2.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWorkspace3_GetClaimsToken2(self: *const T, bstrClaimsHint: ?BSTR, bstrUserHint: ?BSTR, claimCookie: u32, hwndCredUiParent: u32, rectCredUiParent: RECT, pbstrAccessToken: ?*?BSTR) HRESULT { return @as(*const IWorkspace3.VTable, @ptrCast(self.vtable)).GetClaimsToken2(@as(*const IWorkspace3, @ptrCast(self)), bstrClaimsHint, bstrUserHint, claimCookie, hwndCredUiParent, rectCredUiParent, pbstrAccessToken); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWorkspace3_SetClaimsToken(self: *const T, bstrAccessToken: ?BSTR, ullAccessTokenExpiration: u64, bstrRefreshToken: ?BSTR) HRESULT { return @as(*const IWorkspace3.VTable, @ptrCast(self.vtable)).SetClaimsToken(@as(*const IWorkspace3, @ptrCast(self)), bstrAccessToken, ullAccessTokenExpiration, bstrRefreshToken); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows6.1' const IID_IWorkspaceRegistration_Value = Guid.initString("b922bbb8-4c55-4fea-8496-beb0b44285e6"); pub const IID_IWorkspaceRegistration = &IID_IWorkspaceRegistration_Value; pub const IWorkspaceRegistration = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, AddResource: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IWorkspaceRegistration, pUnk: ?*IWorkspaceClientExt, pdwCookie: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IWorkspaceRegistration, pUnk: ?*IWorkspaceClientExt, pdwCookie: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, RemoveResource: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IWorkspaceRegistration, dwCookieConnection: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IWorkspaceRegistration, dwCookieConnection: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWorkspaceRegistration_AddResource(self: *const T, pUnk: ?*IWorkspaceClientExt, pdwCookie: ?*u32) HRESULT { return @as(*const IWorkspaceRegistration.VTable, @ptrCast(self.vtable)).AddResource(@as(*const IWorkspaceRegistration, @ptrCast(self)), pUnk, pdwCookie); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWorkspaceRegistration_RemoveResource(self: *const T, dwCookieConnection: u32) HRESULT { return @as(*const IWorkspaceRegistration.VTable, @ptrCast(self.vtable)).RemoveResource(@as(*const IWorkspaceRegistration, @ptrCast(self)), dwCookieConnection); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows8.1' const IID_IWorkspaceRegistration2_Value = Guid.initString("cf59f654-39bb-44d8-94d0-4635728957e9"); pub const IID_IWorkspaceRegistration2 = &IID_IWorkspaceRegistration2_Value; pub const IWorkspaceRegistration2 = extern struct { pub const VTable = extern struct { base: IWorkspaceRegistration.VTable, AddResourceEx: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IWorkspaceRegistration2, pUnk: ?*IWorkspaceClientExt, bstrEventLogUploadAddress: ?BSTR, pdwCookie: ?*u32, correlationId: Guid, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IWorkspaceRegistration2, pUnk: ?*IWorkspaceClientExt, bstrEventLogUploadAddress: ?BSTR, pdwCookie: ?*u32, correlationId: Guid, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, RemoveResourceEx: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IWorkspaceRegistration2, dwCookieConnection: u32, correlationId: Guid, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IWorkspaceRegistration2, dwCookieConnection: u32, correlationId: Guid, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IWorkspaceRegistration.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWorkspaceRegistration2_AddResourceEx(self: *const T, pUnk: ?*IWorkspaceClientExt, bstrEventLogUploadAddress: ?BSTR, pdwCookie: ?*u32, correlationId: Guid) HRESULT { return @as(*const IWorkspaceRegistration2.VTable, @ptrCast(self.vtable)).AddResourceEx(@as(*const IWorkspaceRegistration2, @ptrCast(self)), pUnk, bstrEventLogUploadAddress, pdwCookie, correlationId); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWorkspaceRegistration2_RemoveResourceEx(self: *const T, dwCookieConnection: u32, correlationId: Guid) HRESULT { return @as(*const IWorkspaceRegistration2.VTable, @ptrCast(self.vtable)).RemoveResourceEx(@as(*const IWorkspaceRegistration2, @ptrCast(self)), dwCookieConnection, correlationId); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows6.1' const IID_IWorkspaceScriptable_Value = Guid.initString("efea49a2-dda5-429d-8f42-b23b92c4c347"); pub const IID_IWorkspaceScriptable = &IID_IWorkspaceScriptable_Value; pub const IWorkspaceScriptable = extern struct { pub const VTable = extern struct { base: IDispatch.VTable, DisconnectWorkspace: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IWorkspaceScriptable, bstrWorkspaceId: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IWorkspaceScriptable, bstrWorkspaceId: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, StartWorkspace: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IWorkspaceScriptable, bstrWorkspaceId: ?BSTR, bstrUserName: ?BSTR, bstrPassword: ?BSTR, bstrWorkspaceParams: ?BSTR, lTimeout: i32, lFlags: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IWorkspaceScriptable, bstrWorkspaceId: ?BSTR, bstrUserName: ?BSTR, bstrPassword: ?BSTR, bstrWorkspaceParams: ?BSTR, lTimeout: i32, lFlags: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, IsWorkspaceCredentialSpecified: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IWorkspaceScriptable, bstrWorkspaceId: ?BSTR, bCountUnauthenticatedCredentials: i16, pbCredExist: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IWorkspaceScriptable, bstrWorkspaceId: ?BSTR, bCountUnauthenticatedCredentials: i16, pbCredExist: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, IsWorkspaceSSOEnabled: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IWorkspaceScriptable, pbSSOEnabled: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IWorkspaceScriptable, pbSSOEnabled: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, ClearWorkspaceCredential: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IWorkspaceScriptable, bstrWorkspaceId: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IWorkspaceScriptable, bstrWorkspaceId: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, OnAuthenticated: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IWorkspaceScriptable, bstrWorkspaceId: ?BSTR, bstrUserName: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IWorkspaceScriptable, bstrWorkspaceId: ?BSTR, bstrUserName: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, DisconnectWorkspaceByFriendlyName: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IWorkspaceScriptable, bstrWorkspaceFriendlyName: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IWorkspaceScriptable, bstrWorkspaceFriendlyName: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IDispatch.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWorkspaceScriptable_DisconnectWorkspace(self: *const T, bstrWorkspaceId: ?BSTR) HRESULT { return @as(*const IWorkspaceScriptable.VTable, @ptrCast(self.vtable)).DisconnectWorkspace(@as(*const IWorkspaceScriptable, @ptrCast(self)), bstrWorkspaceId); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWorkspaceScriptable_StartWorkspace(self: *const T, bstrWorkspaceId: ?BSTR, bstrUserName: ?BSTR, bstrPassword: ?BSTR, bstrWorkspaceParams: ?BSTR, lTimeout: i32, lFlags: i32) HRESULT { return @as(*const IWorkspaceScriptable.VTable, @ptrCast(self.vtable)).StartWorkspace(@as(*const IWorkspaceScriptable, @ptrCast(self)), bstrWorkspaceId, bstrUserName, bstrPassword, bstrWorkspaceParams, lTimeout, lFlags); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWorkspaceScriptable_IsWorkspaceCredentialSpecified(self: *const T, bstrWorkspaceId: ?BSTR, bCountUnauthenticatedCredentials: i16, pbCredExist: ?*i16) HRESULT { return @as(*const IWorkspaceScriptable.VTable, @ptrCast(self.vtable)).IsWorkspaceCredentialSpecified(@as(*const IWorkspaceScriptable, @ptrCast(self)), bstrWorkspaceId, bCountUnauthenticatedCredentials, pbCredExist); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWorkspaceScriptable_IsWorkspaceSSOEnabled(self: *const T, pbSSOEnabled: ?*i16) HRESULT { return @as(*const IWorkspaceScriptable.VTable, @ptrCast(self.vtable)).IsWorkspaceSSOEnabled(@as(*const IWorkspaceScriptable, @ptrCast(self)), pbSSOEnabled); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWorkspaceScriptable_ClearWorkspaceCredential(self: *const T, bstrWorkspaceId: ?BSTR) HRESULT { return @as(*const IWorkspaceScriptable.VTable, @ptrCast(self.vtable)).ClearWorkspaceCredential(@as(*const IWorkspaceScriptable, @ptrCast(self)), bstrWorkspaceId); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWorkspaceScriptable_OnAuthenticated(self: *const T, bstrWorkspaceId: ?BSTR, bstrUserName: ?BSTR) HRESULT { return @as(*const IWorkspaceScriptable.VTable, @ptrCast(self.vtable)).OnAuthenticated(@as(*const IWorkspaceScriptable, @ptrCast(self)), bstrWorkspaceId, bstrUserName); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWorkspaceScriptable_DisconnectWorkspaceByFriendlyName(self: *const T, bstrWorkspaceFriendlyName: ?BSTR) HRESULT { return @as(*const IWorkspaceScriptable.VTable, @ptrCast(self.vtable)).DisconnectWorkspaceByFriendlyName(@as(*const IWorkspaceScriptable, @ptrCast(self)), bstrWorkspaceFriendlyName); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows8.0' const IID_IWorkspaceScriptable2_Value = Guid.initString("efea49a2-dda5-429d-8f42-b33ba2c4c348"); pub const IID_IWorkspaceScriptable2 = &IID_IWorkspaceScriptable2_Value; pub const IWorkspaceScriptable2 = extern struct { pub const VTable = extern struct { base: IWorkspaceScriptable.VTable, StartWorkspaceEx: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IWorkspaceScriptable2, bstrWorkspaceId: ?BSTR, bstrWorkspaceFriendlyName: ?BSTR, bstrRedirectorName: ?BSTR, bstrUserName: ?BSTR, bstrPassword: ?BSTR, bstrAppContainer: ?BSTR, bstrWorkspaceParams: ?BSTR, lTimeout: i32, lFlags: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IWorkspaceScriptable2, bstrWorkspaceId: ?BSTR, bstrWorkspaceFriendlyName: ?BSTR, bstrRedirectorName: ?BSTR, bstrUserName: ?BSTR, bstrPassword: ?BSTR, bstrAppContainer: ?BSTR, bstrWorkspaceParams: ?BSTR, lTimeout: i32, lFlags: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, ResourceDismissed: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IWorkspaceScriptable2, bstrWorkspaceId: ?BSTR, bstrWorkspaceFriendlyName: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IWorkspaceScriptable2, bstrWorkspaceId: ?BSTR, bstrWorkspaceFriendlyName: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IWorkspaceScriptable.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWorkspaceScriptable2_StartWorkspaceEx(self: *const T, bstrWorkspaceId: ?BSTR, bstrWorkspaceFriendlyName: ?BSTR, bstrRedirectorName: ?BSTR, bstrUserName: ?BSTR, bstrPassword: ?BSTR, bstrAppContainer: ?BSTR, bstrWorkspaceParams: ?BSTR, lTimeout: i32, lFlags: i32) HRESULT { return @as(*const IWorkspaceScriptable2.VTable, @ptrCast(self.vtable)).StartWorkspaceEx(@as(*const IWorkspaceScriptable2, @ptrCast(self)), bstrWorkspaceId, bstrWorkspaceFriendlyName, bstrRedirectorName, bstrUserName, bstrPassword, bstrAppContainer, bstrWorkspaceParams, lTimeout, lFlags); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWorkspaceScriptable2_ResourceDismissed(self: *const T, bstrWorkspaceId: ?BSTR, bstrWorkspaceFriendlyName: ?BSTR) HRESULT { return @as(*const IWorkspaceScriptable2.VTable, @ptrCast(self.vtable)).ResourceDismissed(@as(*const IWorkspaceScriptable2, @ptrCast(self)), bstrWorkspaceId, bstrWorkspaceFriendlyName); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows8.1' const IID_IWorkspaceScriptable3_Value = Guid.initString("531e6512-2cbf-4bd2-80a5-d90a71636a9a"); pub const IID_IWorkspaceScriptable3 = &IID_IWorkspaceScriptable3_Value; pub const IWorkspaceScriptable3 = extern struct { pub const VTable = extern struct { base: IWorkspaceScriptable2.VTable, StartWorkspaceEx2: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IWorkspaceScriptable3, bstrWorkspaceId: ?BSTR, bstrWorkspaceFriendlyName: ?BSTR, bstrRedirectorName: ?BSTR, bstrUserName: ?BSTR, bstrPassword: ?BSTR, bstrAppContainer: ?BSTR, bstrWorkspaceParams: ?BSTR, lTimeout: i32, lFlags: i32, bstrEventLogUploadAddress: ?BSTR, correlationId: Guid, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IWorkspaceScriptable3, bstrWorkspaceId: ?BSTR, bstrWorkspaceFriendlyName: ?BSTR, bstrRedirectorName: ?BSTR, bstrUserName: ?BSTR, bstrPassword: ?BSTR, bstrAppContainer: ?BSTR, bstrWorkspaceParams: ?BSTR, lTimeout: i32, lFlags: i32, bstrEventLogUploadAddress: ?BSTR, correlationId: Guid, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IWorkspaceScriptable2.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWorkspaceScriptable3_StartWorkspaceEx2(self: *const T, bstrWorkspaceId: ?BSTR, bstrWorkspaceFriendlyName: ?BSTR, bstrRedirectorName: ?BSTR, bstrUserName: ?BSTR, bstrPassword: ?BSTR, bstrAppContainer: ?BSTR, bstrWorkspaceParams: ?BSTR, lTimeout: i32, lFlags: i32, bstrEventLogUploadAddress: ?BSTR, correlationId: Guid) HRESULT { return @as(*const IWorkspaceScriptable3.VTable, @ptrCast(self.vtable)).StartWorkspaceEx2(@as(*const IWorkspaceScriptable3, @ptrCast(self)), bstrWorkspaceId, bstrWorkspaceFriendlyName, bstrRedirectorName, bstrUserName, bstrPassword, bstrAppContainer, bstrWorkspaceParams, lTimeout, lFlags, bstrEventLogUploadAddress, correlationId); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows8.0' const IID_IWorkspaceReportMessage_Value = Guid.initString("a7c06739-500f-4e8c-99a8-2bd6955899eb"); pub const IID_IWorkspaceReportMessage = &IID_IWorkspaceReportMessage_Value; pub const IWorkspaceReportMessage = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, RegisterErrorLogMessage: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IWorkspaceReportMessage, bstrMessage: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IWorkspaceReportMessage, bstrMessage: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, IsErrorMessageRegistered: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IWorkspaceReportMessage, bstrWkspId: ?BSTR, dwErrorType: u32, bstrErrorMessageType: ?BSTR, dwErrorCode: u32, pfErrorExist: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IWorkspaceReportMessage, bstrWkspId: ?BSTR, dwErrorType: u32, bstrErrorMessageType: ?BSTR, dwErrorCode: u32, pfErrorExist: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, RegisterErrorEvent: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IWorkspaceReportMessage, bstrWkspId: ?BSTR, dwErrorType: u32, bstrErrorMessageType: ?BSTR, dwErrorCode: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IWorkspaceReportMessage, bstrWkspId: ?BSTR, dwErrorType: u32, bstrErrorMessageType: ?BSTR, dwErrorCode: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWorkspaceReportMessage_RegisterErrorLogMessage(self: *const T, bstrMessage: ?BSTR) HRESULT { return @as(*const IWorkspaceReportMessage.VTable, @ptrCast(self.vtable)).RegisterErrorLogMessage(@as(*const IWorkspaceReportMessage, @ptrCast(self)), bstrMessage); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWorkspaceReportMessage_IsErrorMessageRegistered(self: *const T, bstrWkspId: ?BSTR, dwErrorType: u32, bstrErrorMessageType: ?BSTR, dwErrorCode: u32, pfErrorExist: ?*i16) HRESULT { return @as(*const IWorkspaceReportMessage.VTable, @ptrCast(self.vtable)).IsErrorMessageRegistered(@as(*const IWorkspaceReportMessage, @ptrCast(self)), bstrWkspId, dwErrorType, bstrErrorMessageType, dwErrorCode, pfErrorExist); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWorkspaceReportMessage_RegisterErrorEvent(self: *const T, bstrWkspId: ?BSTR, dwErrorType: u32, bstrErrorMessageType: ?BSTR, dwErrorCode: u32) HRESULT { return @as(*const IWorkspaceReportMessage.VTable, @ptrCast(self.vtable)).RegisterErrorEvent(@as(*const IWorkspaceReportMessage, @ptrCast(self)), bstrWkspId, dwErrorType, bstrErrorMessageType, dwErrorCode); } }; } pub usingnamespace MethodMixin(@This()); }; const IID__ITSWkspEvents_Value = Guid.initString("b922bbb8-4c55-4fea-8496-beb0b44285e9"); pub const IID__ITSWkspEvents = &IID__ITSWkspEvents_Value; pub const _ITSWkspEvents = extern struct { pub const VTable = extern struct { base: IDispatch.VTable, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IDispatch.MethodMixin(T); }; } pub usingnamespace MethodMixin(@This()); }; pub const TSSD_AddrV46Type = enum(i32) { UNDEFINED = 0, IPv4 = 4, IPv6 = 6, }; pub const TSSD_ADDR_UNDEFINED = TSSD_AddrV46Type.UNDEFINED; pub const TSSD_ADDR_IPv4 = TSSD_AddrV46Type.IPv4; pub const TSSD_ADDR_IPv6 = TSSD_AddrV46Type.IPv6; pub const TSSB_NOTIFICATION_TYPE = enum(i32) { INVALID = 0, TARGET_CHANGE = 1, SESSION_CHANGE = 2, CONNECTION_REQUEST_CHANGE = 4, }; pub const TSSB_NOTIFY_INVALID = TSSB_NOTIFICATION_TYPE.INVALID; pub const TSSB_NOTIFY_TARGET_CHANGE = TSSB_NOTIFICATION_TYPE.TARGET_CHANGE; pub const TSSB_NOTIFY_SESSION_CHANGE = TSSB_NOTIFICATION_TYPE.SESSION_CHANGE; pub const TSSB_NOTIFY_CONNECTION_REQUEST_CHANGE = TSSB_NOTIFICATION_TYPE.CONNECTION_REQUEST_CHANGE; pub const TARGET_STATE = enum(i32) { UNKNOWN = 1, INITIALIZING = 2, RUNNING = 3, DOWN = 4, HIBERNATED = 5, CHECKED_OUT = 6, STOPPED = 7, INVALID = 8, STARTING = 9, STOPPING = 10, MAXSTATE = 11, }; pub const TARGET_UNKNOWN = TARGET_STATE.UNKNOWN; pub const TARGET_INITIALIZING = TARGET_STATE.INITIALIZING; pub const TARGET_RUNNING = TARGET_STATE.RUNNING; pub const TARGET_DOWN = TARGET_STATE.DOWN; pub const TARGET_HIBERNATED = TARGET_STATE.HIBERNATED; pub const TARGET_CHECKED_OUT = TARGET_STATE.CHECKED_OUT; pub const TARGET_STOPPED = TARGET_STATE.STOPPED; pub const TARGET_INVALID = TARGET_STATE.INVALID; pub const TARGET_STARTING = TARGET_STATE.STARTING; pub const TARGET_STOPPING = TARGET_STATE.STOPPING; pub const TARGET_MAXSTATE = TARGET_STATE.MAXSTATE; pub const TARGET_CHANGE_TYPE = enum(i32) { CHANGE_UNSPEC = 1, EXTERNALIP_CHANGED = 2, INTERNALIP_CHANGED = 4, JOINED = 8, REMOVED = 16, STATE_CHANGED = 32, IDLE = 64, PENDING = 128, INUSE = 256, PATCH_STATE_CHANGED = 512, FARM_MEMBERSHIP_CHANGED = 1024, }; pub const TARGET_CHANGE_UNSPEC = TARGET_CHANGE_TYPE.CHANGE_UNSPEC; pub const TARGET_EXTERNALIP_CHANGED = TARGET_CHANGE_TYPE.EXTERNALIP_CHANGED; pub const TARGET_INTERNALIP_CHANGED = TARGET_CHANGE_TYPE.INTERNALIP_CHANGED; pub const TARGET_JOINED = TARGET_CHANGE_TYPE.JOINED; pub const TARGET_REMOVED = TARGET_CHANGE_TYPE.REMOVED; pub const TARGET_STATE_CHANGED = TARGET_CHANGE_TYPE.STATE_CHANGED; pub const TARGET_IDLE = TARGET_CHANGE_TYPE.IDLE; pub const TARGET_PENDING = TARGET_CHANGE_TYPE.PENDING; pub const TARGET_INUSE = TARGET_CHANGE_TYPE.INUSE; pub const TARGET_PATCH_STATE_CHANGED = TARGET_CHANGE_TYPE.PATCH_STATE_CHANGED; pub const TARGET_FARM_MEMBERSHIP_CHANGED = TARGET_CHANGE_TYPE.FARM_MEMBERSHIP_CHANGED; pub const TARGET_TYPE = enum(i32) { UNKNOWN = 0, FARM = 1, NONFARM = 2, }; pub const UNKNOWN = TARGET_TYPE.UNKNOWN; pub const FARM = TARGET_TYPE.FARM; pub const NONFARM = TARGET_TYPE.NONFARM; pub const TARGET_PATCH_STATE = enum(i32) { UNKNOWN = 0, NOT_STARTED = 1, IN_PROGRESS = 2, COMPLETED = 3, FAILED = 4, }; pub const TARGET_PATCH_UNKNOWN = TARGET_PATCH_STATE.UNKNOWN; pub const TARGET_PATCH_NOT_STARTED = TARGET_PATCH_STATE.NOT_STARTED; pub const TARGET_PATCH_IN_PROGRESS = TARGET_PATCH_STATE.IN_PROGRESS; pub const TARGET_PATCH_COMPLETED = TARGET_PATCH_STATE.COMPLETED; pub const TARGET_PATCH_FAILED = TARGET_PATCH_STATE.FAILED; pub const CLIENT_MESSAGE_TYPE = enum(i32) { INVALID = 0, STATUS = 1, ERROR = 2, }; pub const CLIENT_MESSAGE_CONNECTION_INVALID = CLIENT_MESSAGE_TYPE.INVALID; pub const CLIENT_MESSAGE_CONNECTION_STATUS = CLIENT_MESSAGE_TYPE.STATUS; pub const CLIENT_MESSAGE_CONNECTION_ERROR = CLIENT_MESSAGE_TYPE.ERROR; pub const CONNECTION_CHANGE_NOTIFICATION = enum(i32) { INVALID = 0, PENDING = 1, FAILED = 2, TIMEDOUT = 3, SUCCEEDED = 4, CANCELLED = 5, LB_COMPLETED = 6, QUERY_PL_COMPLETED = 7, ORCH_COMPLETED = 8, }; pub const CONNECTION_REQUEST_INVALID = CONNECTION_CHANGE_NOTIFICATION.INVALID; pub const CONNECTION_REQUEST_PENDING = CONNECTION_CHANGE_NOTIFICATION.PENDING; pub const CONNECTION_REQUEST_FAILED = CONNECTION_CHANGE_NOTIFICATION.FAILED; pub const CONNECTION_REQUEST_TIMEDOUT = CONNECTION_CHANGE_NOTIFICATION.TIMEDOUT; pub const CONNECTION_REQUEST_SUCCEEDED = CONNECTION_CHANGE_NOTIFICATION.SUCCEEDED; pub const CONNECTION_REQUEST_CANCELLED = CONNECTION_CHANGE_NOTIFICATION.CANCELLED; pub const CONNECTION_REQUEST_LB_COMPLETED = CONNECTION_CHANGE_NOTIFICATION.LB_COMPLETED; pub const CONNECTION_REQUEST_QUERY_PL_COMPLETED = CONNECTION_CHANGE_NOTIFICATION.QUERY_PL_COMPLETED; pub const CONNECTION_REQUEST_ORCH_COMPLETED = CONNECTION_CHANGE_NOTIFICATION.ORCH_COMPLETED; pub const RD_FARM_TYPE = enum(i32) { RDSH = 0, TEMP_VM = 1, MANUAL_PERSONAL_VM = 2, AUTO_PERSONAL_VM = 3, MANUAL_PERSONAL_RDSH = 4, AUTO_PERSONAL_RDSH = 5, TYPE_UNKNOWN = -1, }; pub const RD_FARM_RDSH = RD_FARM_TYPE.RDSH; pub const RD_FARM_TEMP_VM = RD_FARM_TYPE.TEMP_VM; pub const RD_FARM_MANUAL_PERSONAL_VM = RD_FARM_TYPE.MANUAL_PERSONAL_VM; pub const RD_FARM_AUTO_PERSONAL_VM = RD_FARM_TYPE.AUTO_PERSONAL_VM; pub const RD_FARM_MANUAL_PERSONAL_RDSH = RD_FARM_TYPE.MANUAL_PERSONAL_RDSH; pub const RD_FARM_AUTO_PERSONAL_RDSH = RD_FARM_TYPE.AUTO_PERSONAL_RDSH; pub const RD_FARM_TYPE_UNKNOWN = RD_FARM_TYPE.TYPE_UNKNOWN; pub const PLUGIN_TYPE = enum(i32) { UNKNOWN_PLUGIN = 0, POLICY_PLUGIN = 1, RESOURCE_PLUGIN = 2, LOAD_BALANCING_PLUGIN = 4, PLACEMENT_PLUGIN = 8, ORCHESTRATION_PLUGIN = 16, PROVISIONING_PLUGIN = 32, TASK_PLUGIN = 64, }; pub const UNKNOWN_PLUGIN = PLUGIN_TYPE.UNKNOWN_PLUGIN; pub const POLICY_PLUGIN = PLUGIN_TYPE.POLICY_PLUGIN; pub const RESOURCE_PLUGIN = PLUGIN_TYPE.RESOURCE_PLUGIN; pub const LOAD_BALANCING_PLUGIN = PLUGIN_TYPE.LOAD_BALANCING_PLUGIN; pub const PLACEMENT_PLUGIN = PLUGIN_TYPE.PLACEMENT_PLUGIN; pub const ORCHESTRATION_PLUGIN = PLUGIN_TYPE.ORCHESTRATION_PLUGIN; pub const PROVISIONING_PLUGIN = PLUGIN_TYPE.PROVISIONING_PLUGIN; pub const TASK_PLUGIN = PLUGIN_TYPE.TASK_PLUGIN; pub const TSSESSION_STATE = enum(i32) { INVALID = -1, ACTIVE = 0, CONNECTED = 1, CONNECTQUERY = 2, SHADOW = 3, DISCONNECTED = 4, IDLE = 5, LISTEN = 6, RESET = 7, DOWN = 8, INIT = 9, MAX = 10, }; pub const STATE_INVALID = TSSESSION_STATE.INVALID; pub const STATE_ACTIVE = TSSESSION_STATE.ACTIVE; pub const STATE_CONNECTED = TSSESSION_STATE.CONNECTED; pub const STATE_CONNECTQUERY = TSSESSION_STATE.CONNECTQUERY; pub const STATE_SHADOW = TSSESSION_STATE.SHADOW; pub const STATE_DISCONNECTED = TSSESSION_STATE.DISCONNECTED; pub const STATE_IDLE = TSSESSION_STATE.IDLE; pub const STATE_LISTEN = TSSESSION_STATE.LISTEN; pub const STATE_RESET = TSSESSION_STATE.RESET; pub const STATE_DOWN = TSSESSION_STATE.DOWN; pub const STATE_INIT = TSSESSION_STATE.INIT; pub const STATE_MAX = TSSESSION_STATE.MAX; pub const TARGET_OWNER = enum(i32) { UNKNOWN = 0, MS_TS_PLUGIN = 1, MS_VM_PLUGIN = 2, }; pub const OWNER_UNKNOWN = TARGET_OWNER.UNKNOWN; pub const OWNER_MS_TS_PLUGIN = TARGET_OWNER.MS_TS_PLUGIN; pub const OWNER_MS_VM_PLUGIN = TARGET_OWNER.MS_VM_PLUGIN; pub const CLIENT_DISPLAY = extern struct { HorizontalResolution: u32, VerticalResolution: u32, ColorDepth: u32, }; pub const TSSD_ConnectionPoint = extern struct { ServerAddressB: [16]u8, AddressType: TSSD_AddrV46Type, PortNumber: u16, AddressScope: u32, }; pub const VM_NOTIFY_STATUS = enum(i32) { PENDING = 0, IN_PROGRESS = 1, COMPLETE = 2, FAILED = 3, CANCELED = 4, }; pub const VM_NOTIFY_STATUS_PENDING = VM_NOTIFY_STATUS.PENDING; pub const VM_NOTIFY_STATUS_IN_PROGRESS = VM_NOTIFY_STATUS.IN_PROGRESS; pub const VM_NOTIFY_STATUS_COMPLETE = VM_NOTIFY_STATUS.COMPLETE; pub const VM_NOTIFY_STATUS_FAILED = VM_NOTIFY_STATUS.FAILED; pub const VM_NOTIFY_STATUS_CANCELED = VM_NOTIFY_STATUS.CANCELED; pub const VM_NOTIFY_ENTRY = extern struct { VmName: [128]u16, VmHost: [128]u16, }; pub const VM_PATCH_INFO = extern struct { dwNumEntries: u32, pVmNames: ?*?PWSTR, }; pub const VM_NOTIFY_INFO = extern struct { dwNumEntries: u32, ppVmEntries: ?*?*VM_NOTIFY_ENTRY, }; pub const VM_HOST_NOTIFY_STATUS = enum(i32) { PENDING = 0, IN_PROGRESS = 1, COMPLETE = 2, FAILED = 3, }; pub const VM_HOST_STATUS_INIT_PENDING = VM_HOST_NOTIFY_STATUS.PENDING; pub const VM_HOST_STATUS_INIT_IN_PROGRESS = VM_HOST_NOTIFY_STATUS.IN_PROGRESS; pub const VM_HOST_STATUS_INIT_COMPLETE = VM_HOST_NOTIFY_STATUS.COMPLETE; pub const VM_HOST_STATUS_INIT_FAILED = VM_HOST_NOTIFY_STATUS.FAILED; pub const RDV_TASK_STATUS = enum(i32) { UNKNOWN = 0, SEARCHING = 1, DOWNLOADING = 2, APPLYING = 3, REBOOTING = 4, REBOOTED = 5, SUCCESS = 6, FAILED = 7, TIMEOUT = 8, }; pub const RDV_TASK_STATUS_UNKNOWN = RDV_TASK_STATUS.UNKNOWN; pub const RDV_TASK_STATUS_SEARCHING = RDV_TASK_STATUS.SEARCHING; pub const RDV_TASK_STATUS_DOWNLOADING = RDV_TASK_STATUS.DOWNLOADING; pub const RDV_TASK_STATUS_APPLYING = RDV_TASK_STATUS.APPLYING; pub const RDV_TASK_STATUS_REBOOTING = RDV_TASK_STATUS.REBOOTING; pub const RDV_TASK_STATUS_REBOOTED = RDV_TASK_STATUS.REBOOTED; pub const RDV_TASK_STATUS_SUCCESS = RDV_TASK_STATUS.SUCCESS; pub const RDV_TASK_STATUS_FAILED = RDV_TASK_STATUS.FAILED; pub const RDV_TASK_STATUS_TIMEOUT = RDV_TASK_STATUS.TIMEOUT; pub const TS_SB_SORT_BY = enum(i32) { NONE = 0, NAME = 1, PROP = 2, }; pub const TS_SB_SORT_BY_NONE = TS_SB_SORT_BY.NONE; pub const TS_SB_SORT_BY_NAME = TS_SB_SORT_BY.NAME; pub const TS_SB_SORT_BY_PROP = TS_SB_SORT_BY.PROP; // TODO: this type is limited to platform 'windowsServer2012' const IID_ITsSbPlugin_Value = Guid.initString("48cd7406-caab-465f-a5d6-baa863b9ea4f"); pub const IID_ITsSbPlugin = &IID_ITsSbPlugin_Value; pub const ITsSbPlugin = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, Initialize: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ITsSbPlugin, pProvider: ?*ITsSbProvider, pNotifySink: ?*ITsSbPluginNotifySink, pPropertySet: ?*ITsSbPluginPropertySet, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ITsSbPlugin, pProvider: ?*ITsSbProvider, pNotifySink: ?*ITsSbPluginNotifySink, pPropertySet: ?*ITsSbPluginPropertySet, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Terminate: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ITsSbPlugin, hr: HRESULT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ITsSbPlugin, hr: HRESULT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITsSbPlugin_Initialize(self: *const T, pProvider: ?*ITsSbProvider, pNotifySink: ?*ITsSbPluginNotifySink, pPropertySet: ?*ITsSbPluginPropertySet) HRESULT { return @as(*const ITsSbPlugin.VTable, @ptrCast(self.vtable)).Initialize(@as(*const ITsSbPlugin, @ptrCast(self)), pProvider, pNotifySink, pPropertySet); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITsSbPlugin_Terminate(self: *const T, hr: HRESULT) HRESULT { return @as(*const ITsSbPlugin.VTable, @ptrCast(self.vtable)).Terminate(@as(*const ITsSbPlugin, @ptrCast(self)), hr); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windowsServer2012' const IID_ITsSbResourcePlugin_Value = Guid.initString("ea8db42c-98ed-4535-a88b-2a164f35490f"); pub const IID_ITsSbResourcePlugin = &IID_ITsSbResourcePlugin_Value; pub const ITsSbResourcePlugin = extern struct { pub const VTable = extern struct { base: ITsSbPlugin.VTable, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace ITsSbPlugin.MethodMixin(T); }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windowsServer2012' const IID_ITsSbServiceNotification_Value = Guid.initString("86cb68ae-86e0-4f57-8a64-bb7406bc5550"); pub const IID_ITsSbServiceNotification = &IID_ITsSbServiceNotification_Value; pub const ITsSbServiceNotification = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, NotifyServiceFailure: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ITsSbServiceNotification, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ITsSbServiceNotification, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, NotifyServiceSuccess: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ITsSbServiceNotification, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ITsSbServiceNotification, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITsSbServiceNotification_NotifyServiceFailure(self: *const T) HRESULT { return @as(*const ITsSbServiceNotification.VTable, @ptrCast(self.vtable)).NotifyServiceFailure(@as(*const ITsSbServiceNotification, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITsSbServiceNotification_NotifyServiceSuccess(self: *const T) HRESULT { return @as(*const ITsSbServiceNotification.VTable, @ptrCast(self.vtable)).NotifyServiceSuccess(@as(*const ITsSbServiceNotification, @ptrCast(self))); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windowsServer2012' const IID_ITsSbLoadBalancing_Value = Guid.initString("24329274-9eb7-11dc-ae98-f2b456d89593"); pub const IID_ITsSbLoadBalancing = &IID_ITsSbLoadBalancing_Value; pub const ITsSbLoadBalancing = extern struct { pub const VTable = extern struct { base: ITsSbPlugin.VTable, GetMostSuitableTarget: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ITsSbLoadBalancing, pConnection: ?*ITsSbClientConnection, pLBSink: ?*ITsSbLoadBalancingNotifySink, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ITsSbLoadBalancing, pConnection: ?*ITsSbClientConnection, pLBSink: ?*ITsSbLoadBalancingNotifySink, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace ITsSbPlugin.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITsSbLoadBalancing_GetMostSuitableTarget(self: *const T, pConnection: ?*ITsSbClientConnection, pLBSink: ?*ITsSbLoadBalancingNotifySink) HRESULT { return @as(*const ITsSbLoadBalancing.VTable, @ptrCast(self.vtable)).GetMostSuitableTarget(@as(*const ITsSbLoadBalancing, @ptrCast(self)), pConnection, pLBSink); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windowsServer2012' const IID_ITsSbPlacement_Value = Guid.initString("daadee5f-6d32-480e-9e36-ddab2329f06d"); pub const IID_ITsSbPlacement = &IID_ITsSbPlacement_Value; pub const ITsSbPlacement = extern struct { pub const VTable = extern struct { base: ITsSbPlugin.VTable, QueryEnvironmentForTarget: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ITsSbPlacement, pConnection: ?*ITsSbClientConnection, pPlacementSink: ?*ITsSbPlacementNotifySink, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ITsSbPlacement, pConnection: ?*ITsSbClientConnection, pPlacementSink: ?*ITsSbPlacementNotifySink, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace ITsSbPlugin.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITsSbPlacement_QueryEnvironmentForTarget(self: *const T, pConnection: ?*ITsSbClientConnection, pPlacementSink: ?*ITsSbPlacementNotifySink) HRESULT { return @as(*const ITsSbPlacement.VTable, @ptrCast(self.vtable)).QueryEnvironmentForTarget(@as(*const ITsSbPlacement, @ptrCast(self)), pConnection, pPlacementSink); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windowsServer2012' const IID_ITsSbOrchestration_Value = Guid.initString("64fc1172-9eb7-11dc-8b00-3aba56d89593"); pub const IID_ITsSbOrchestration = &IID_ITsSbOrchestration_Value; pub const ITsSbOrchestration = extern struct { pub const VTable = extern struct { base: ITsSbPlugin.VTable, PrepareTargetForConnect: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ITsSbOrchestration, pConnection: ?*ITsSbClientConnection, pOrchestrationNotifySink: ?*ITsSbOrchestrationNotifySink, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ITsSbOrchestration, pConnection: ?*ITsSbClientConnection, pOrchestrationNotifySink: ?*ITsSbOrchestrationNotifySink, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace ITsSbPlugin.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITsSbOrchestration_PrepareTargetForConnect(self: *const T, pConnection: ?*ITsSbClientConnection, pOrchestrationNotifySink: ?*ITsSbOrchestrationNotifySink) HRESULT { return @as(*const ITsSbOrchestration.VTable, @ptrCast(self.vtable)).PrepareTargetForConnect(@as(*const ITsSbOrchestration, @ptrCast(self)), pConnection, pOrchestrationNotifySink); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windowsServer2012' const IID_ITsSbEnvironment_Value = Guid.initString("8c87f7f7-bf51-4a5c-87bf-8e94fb6e2256"); pub const IID_ITsSbEnvironment = &IID_ITsSbEnvironment_Value; pub const ITsSbEnvironment = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Name: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ITsSbEnvironment, pVal: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ITsSbEnvironment, pVal: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_ServerWeight: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ITsSbEnvironment, pVal: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ITsSbEnvironment, pVal: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_EnvironmentPropertySet: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ITsSbEnvironment, ppPropertySet: ?*?*ITsSbEnvironmentPropertySet, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ITsSbEnvironment, ppPropertySet: ?*?*ITsSbEnvironmentPropertySet, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_EnvironmentPropertySet: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ITsSbEnvironment, pVal: ?*ITsSbEnvironmentPropertySet, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ITsSbEnvironment, pVal: ?*ITsSbEnvironmentPropertySet, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITsSbEnvironment_get_Name(self: *const T, pVal: ?*?BSTR) HRESULT { return @as(*const ITsSbEnvironment.VTable, @ptrCast(self.vtable)).get_Name(@as(*const ITsSbEnvironment, @ptrCast(self)), pVal); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITsSbEnvironment_get_ServerWeight(self: *const T, pVal: ?*u32) HRESULT { return @as(*const ITsSbEnvironment.VTable, @ptrCast(self.vtable)).get_ServerWeight(@as(*const ITsSbEnvironment, @ptrCast(self)), pVal); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITsSbEnvironment_get_EnvironmentPropertySet(self: *const T, ppPropertySet: ?*?*ITsSbEnvironmentPropertySet) HRESULT { return @as(*const ITsSbEnvironment.VTable, @ptrCast(self.vtable)).get_EnvironmentPropertySet(@as(*const ITsSbEnvironment, @ptrCast(self)), ppPropertySet); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITsSbEnvironment_put_EnvironmentPropertySet(self: *const T, pVal: ?*ITsSbEnvironmentPropertySet) HRESULT { return @as(*const ITsSbEnvironment.VTable, @ptrCast(self.vtable)).put_EnvironmentPropertySet(@as(*const ITsSbEnvironment, @ptrCast(self)), pVal); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windowsServer2012' const IID_ITsSbLoadBalanceResult_Value = Guid.initString("24fdb7ac-fea6-11dc-9672-9a8956d89593"); pub const IID_ITsSbLoadBalanceResult = &IID_ITsSbLoadBalanceResult_Value; pub const ITsSbLoadBalanceResult = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, // TODO: this function has a "SpecialName", should Zig do anything with this? get_TargetName: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ITsSbLoadBalanceResult, pVal: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ITsSbLoadBalanceResult, pVal: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITsSbLoadBalanceResult_get_TargetName(self: *const T, pVal: ?*?BSTR) HRESULT { return @as(*const ITsSbLoadBalanceResult.VTable, @ptrCast(self.vtable)).get_TargetName(@as(*const ITsSbLoadBalanceResult, @ptrCast(self)), pVal); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windowsServer2012' const IID_ITsSbTarget_Value = Guid.initString("16616ecc-272d-411d-b324-126893033856"); pub const IID_ITsSbTarget = &IID_ITsSbTarget_Value; pub const ITsSbTarget = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, // TODO: this function has a "SpecialName", should Zig do anything with this? get_TargetName: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ITsSbTarget, pVal: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ITsSbTarget, pVal: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_TargetName: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ITsSbTarget, Val: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ITsSbTarget, Val: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_FarmName: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ITsSbTarget, pVal: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ITsSbTarget, pVal: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_FarmName: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ITsSbTarget, Val: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ITsSbTarget, Val: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_TargetFQDN: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ITsSbTarget, TargetFqdnName: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ITsSbTarget, TargetFqdnName: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_TargetFQDN: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ITsSbTarget, Val: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ITsSbTarget, Val: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_TargetNetbios: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ITsSbTarget, TargetNetbiosName: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ITsSbTarget, TargetNetbiosName: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_TargetNetbios: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ITsSbTarget, Val: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ITsSbTarget, Val: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_IpAddresses: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ITsSbTarget, SOCKADDR: [*]TSSD_ConnectionPoint, numAddresses: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ITsSbTarget, SOCKADDR: [*]TSSD_ConnectionPoint, numAddresses: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_IpAddresses: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ITsSbTarget, SOCKADDR: [*]TSSD_ConnectionPoint, numAddresses: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ITsSbTarget, SOCKADDR: [*]TSSD_ConnectionPoint, numAddresses: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_TargetState: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ITsSbTarget, pState: ?*TARGET_STATE, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ITsSbTarget, pState: ?*TARGET_STATE, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_TargetState: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ITsSbTarget, State: TARGET_STATE, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ITsSbTarget, State: TARGET_STATE, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_TargetPropertySet: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ITsSbTarget, ppPropertySet: ?*?*ITsSbTargetPropertySet, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ITsSbTarget, ppPropertySet: ?*?*ITsSbTargetPropertySet, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_TargetPropertySet: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ITsSbTarget, pVal: ?*ITsSbTargetPropertySet, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ITsSbTarget, pVal: ?*ITsSbTargetPropertySet, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_EnvironmentName: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ITsSbTarget, pVal: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ITsSbTarget, pVal: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_EnvironmentName: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ITsSbTarget, Val: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ITsSbTarget, Val: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_NumSessions: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ITsSbTarget, pNumSessions: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ITsSbTarget, pNumSessions: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_NumPendingConnections: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ITsSbTarget, pNumPendingConnections: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ITsSbTarget, pNumPendingConnections: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_TargetLoad: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ITsSbTarget, pTargetLoad: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ITsSbTarget, pTargetLoad: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITsSbTarget_get_TargetName(self: *const T, pVal: ?*?BSTR) HRESULT { return @as(*const ITsSbTarget.VTable, @ptrCast(self.vtable)).get_TargetName(@as(*const ITsSbTarget, @ptrCast(self)), pVal); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITsSbTarget_put_TargetName(self: *const T, Val: ?BSTR) HRESULT { return @as(*const ITsSbTarget.VTable, @ptrCast(self.vtable)).put_TargetName(@as(*const ITsSbTarget, @ptrCast(self)), Val); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITsSbTarget_get_FarmName(self: *const T, pVal: ?*?BSTR) HRESULT { return @as(*const ITsSbTarget.VTable, @ptrCast(self.vtable)).get_FarmName(@as(*const ITsSbTarget, @ptrCast(self)), pVal); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITsSbTarget_put_FarmName(self: *const T, Val: ?BSTR) HRESULT { return @as(*const ITsSbTarget.VTable, @ptrCast(self.vtable)).put_FarmName(@as(*const ITsSbTarget, @ptrCast(self)), Val); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITsSbTarget_get_TargetFQDN(self: *const T, TargetFqdnName: ?*?BSTR) HRESULT { return @as(*const ITsSbTarget.VTable, @ptrCast(self.vtable)).get_TargetFQDN(@as(*const ITsSbTarget, @ptrCast(self)), TargetFqdnName); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITsSbTarget_put_TargetFQDN(self: *const T, Val: ?BSTR) HRESULT { return @as(*const ITsSbTarget.VTable, @ptrCast(self.vtable)).put_TargetFQDN(@as(*const ITsSbTarget, @ptrCast(self)), Val); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITsSbTarget_get_TargetNetbios(self: *const T, TargetNetbiosName: ?*?BSTR) HRESULT { return @as(*const ITsSbTarget.VTable, @ptrCast(self.vtable)).get_TargetNetbios(@as(*const ITsSbTarget, @ptrCast(self)), TargetNetbiosName); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITsSbTarget_put_TargetNetbios(self: *const T, Val: ?BSTR) HRESULT { return @as(*const ITsSbTarget.VTable, @ptrCast(self.vtable)).put_TargetNetbios(@as(*const ITsSbTarget, @ptrCast(self)), Val); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITsSbTarget_get_IpAddresses(self: *const T, SOCKADDR: [*]TSSD_ConnectionPoint, numAddresses: ?*u32) HRESULT { return @as(*const ITsSbTarget.VTable, @ptrCast(self.vtable)).get_IpAddresses(@as(*const ITsSbTarget, @ptrCast(self)), SOCKADDR, numAddresses); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITsSbTarget_put_IpAddresses(self: *const T, SOCKADDR: [*]TSSD_ConnectionPoint, numAddresses: u32) HRESULT { return @as(*const ITsSbTarget.VTable, @ptrCast(self.vtable)).put_IpAddresses(@as(*const ITsSbTarget, @ptrCast(self)), SOCKADDR, numAddresses); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITsSbTarget_get_TargetState(self: *const T, pState: ?*TARGET_STATE) HRESULT { return @as(*const ITsSbTarget.VTable, @ptrCast(self.vtable)).get_TargetState(@as(*const ITsSbTarget, @ptrCast(self)), pState); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITsSbTarget_put_TargetState(self: *const T, State: TARGET_STATE) HRESULT { return @as(*const ITsSbTarget.VTable, @ptrCast(self.vtable)).put_TargetState(@as(*const ITsSbTarget, @ptrCast(self)), State); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITsSbTarget_get_TargetPropertySet(self: *const T, ppPropertySet: ?*?*ITsSbTargetPropertySet) HRESULT { return @as(*const ITsSbTarget.VTable, @ptrCast(self.vtable)).get_TargetPropertySet(@as(*const ITsSbTarget, @ptrCast(self)), ppPropertySet); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITsSbTarget_put_TargetPropertySet(self: *const T, pVal: ?*ITsSbTargetPropertySet) HRESULT { return @as(*const ITsSbTarget.VTable, @ptrCast(self.vtable)).put_TargetPropertySet(@as(*const ITsSbTarget, @ptrCast(self)), pVal); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITsSbTarget_get_EnvironmentName(self: *const T, pVal: ?*?BSTR) HRESULT { return @as(*const ITsSbTarget.VTable, @ptrCast(self.vtable)).get_EnvironmentName(@as(*const ITsSbTarget, @ptrCast(self)), pVal); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITsSbTarget_put_EnvironmentName(self: *const T, Val: ?BSTR) HRESULT { return @as(*const ITsSbTarget.VTable, @ptrCast(self.vtable)).put_EnvironmentName(@as(*const ITsSbTarget, @ptrCast(self)), Val); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITsSbTarget_get_NumSessions(self: *const T, pNumSessions: ?*u32) HRESULT { return @as(*const ITsSbTarget.VTable, @ptrCast(self.vtable)).get_NumSessions(@as(*const ITsSbTarget, @ptrCast(self)), pNumSessions); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITsSbTarget_get_NumPendingConnections(self: *const T, pNumPendingConnections: ?*u32) HRESULT { return @as(*const ITsSbTarget.VTable, @ptrCast(self.vtable)).get_NumPendingConnections(@as(*const ITsSbTarget, @ptrCast(self)), pNumPendingConnections); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITsSbTarget_get_TargetLoad(self: *const T, pTargetLoad: ?*u32) HRESULT { return @as(*const ITsSbTarget.VTable, @ptrCast(self.vtable)).get_TargetLoad(@as(*const ITsSbTarget, @ptrCast(self)), pTargetLoad); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windowsServer2012' const IID_ITsSbSession_Value = Guid.initString("d453aac7-b1d8-4c5e-ba34-9afb4c8c5510"); pub const IID_ITsSbSession = &IID_ITsSbSession_Value; pub const ITsSbSession = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, // TODO: this function has a "SpecialName", should Zig do anything with this? get_SessionId: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ITsSbSession, pVal: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ITsSbSession, pVal: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_TargetName: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ITsSbSession, targetName: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ITsSbSession, targetName: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_TargetName: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ITsSbSession, targetName: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ITsSbSession, targetName: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Username: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ITsSbSession, userName: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ITsSbSession, userName: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Domain: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ITsSbSession, domain: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ITsSbSession, domain: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_State: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ITsSbSession, pState: ?*TSSESSION_STATE, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ITsSbSession, pState: ?*TSSESSION_STATE, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_State: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ITsSbSession, State: TSSESSION_STATE, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ITsSbSession, State: TSSESSION_STATE, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_CreateTime: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ITsSbSession, pTime: ?*FILETIME, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ITsSbSession, pTime: ?*FILETIME, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_CreateTime: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ITsSbSession, Time: FILETIME, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ITsSbSession, Time: FILETIME, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_DisconnectTime: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ITsSbSession, pTime: ?*FILETIME, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ITsSbSession, pTime: ?*FILETIME, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_DisconnectTime: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ITsSbSession, Time: FILETIME, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ITsSbSession, Time: FILETIME, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_InitialProgram: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ITsSbSession, app: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ITsSbSession, app: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_InitialProgram: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ITsSbSession, Application: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ITsSbSession, Application: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_ClientDisplay: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ITsSbSession, pClientDisplay: ?*CLIENT_DISPLAY, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ITsSbSession, pClientDisplay: ?*CLIENT_DISPLAY, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_ClientDisplay: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ITsSbSession, pClientDisplay: CLIENT_DISPLAY, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ITsSbSession, pClientDisplay: CLIENT_DISPLAY, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_ProtocolType: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ITsSbSession, pVal: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ITsSbSession, pVal: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_ProtocolType: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ITsSbSession, Val: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ITsSbSession, Val: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITsSbSession_get_SessionId(self: *const T, pVal: ?*u32) HRESULT { return @as(*const ITsSbSession.VTable, @ptrCast(self.vtable)).get_SessionId(@as(*const ITsSbSession, @ptrCast(self)), pVal); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITsSbSession_get_TargetName(self: *const T, targetName: ?*?BSTR) HRESULT { return @as(*const ITsSbSession.VTable, @ptrCast(self.vtable)).get_TargetName(@as(*const ITsSbSession, @ptrCast(self)), targetName); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITsSbSession_put_TargetName(self: *const T, targetName: ?BSTR) HRESULT { return @as(*const ITsSbSession.VTable, @ptrCast(self.vtable)).put_TargetName(@as(*const ITsSbSession, @ptrCast(self)), targetName); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITsSbSession_get_Username(self: *const T, userName: ?*?BSTR) HRESULT { return @as(*const ITsSbSession.VTable, @ptrCast(self.vtable)).get_Username(@as(*const ITsSbSession, @ptrCast(self)), userName); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITsSbSession_get_Domain(self: *const T, domain: ?*?BSTR) HRESULT { return @as(*const ITsSbSession.VTable, @ptrCast(self.vtable)).get_Domain(@as(*const ITsSbSession, @ptrCast(self)), domain); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITsSbSession_get_State(self: *const T, pState: ?*TSSESSION_STATE) HRESULT { return @as(*const ITsSbSession.VTable, @ptrCast(self.vtable)).get_State(@as(*const ITsSbSession, @ptrCast(self)), pState); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITsSbSession_put_State(self: *const T, State: TSSESSION_STATE) HRESULT { return @as(*const ITsSbSession.VTable, @ptrCast(self.vtable)).put_State(@as(*const ITsSbSession, @ptrCast(self)), State); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITsSbSession_get_CreateTime(self: *const T, pTime: ?*FILETIME) HRESULT { return @as(*const ITsSbSession.VTable, @ptrCast(self.vtable)).get_CreateTime(@as(*const ITsSbSession, @ptrCast(self)), pTime); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITsSbSession_put_CreateTime(self: *const T, Time: FILETIME) HRESULT { return @as(*const ITsSbSession.VTable, @ptrCast(self.vtable)).put_CreateTime(@as(*const ITsSbSession, @ptrCast(self)), Time); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITsSbSession_get_DisconnectTime(self: *const T, pTime: ?*FILETIME) HRESULT { return @as(*const ITsSbSession.VTable, @ptrCast(self.vtable)).get_DisconnectTime(@as(*const ITsSbSession, @ptrCast(self)), pTime); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITsSbSession_put_DisconnectTime(self: *const T, Time: FILETIME) HRESULT { return @as(*const ITsSbSession.VTable, @ptrCast(self.vtable)).put_DisconnectTime(@as(*const ITsSbSession, @ptrCast(self)), Time); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITsSbSession_get_InitialProgram(self: *const T, app: ?*?BSTR) HRESULT { return @as(*const ITsSbSession.VTable, @ptrCast(self.vtable)).get_InitialProgram(@as(*const ITsSbSession, @ptrCast(self)), app); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITsSbSession_put_InitialProgram(self: *const T, Application: ?BSTR) HRESULT { return @as(*const ITsSbSession.VTable, @ptrCast(self.vtable)).put_InitialProgram(@as(*const ITsSbSession, @ptrCast(self)), Application); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITsSbSession_get_ClientDisplay(self: *const T, pClientDisplay: ?*CLIENT_DISPLAY) HRESULT { return @as(*const ITsSbSession.VTable, @ptrCast(self.vtable)).get_ClientDisplay(@as(*const ITsSbSession, @ptrCast(self)), pClientDisplay); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITsSbSession_put_ClientDisplay(self: *const T, pClientDisplay: CLIENT_DISPLAY) HRESULT { return @as(*const ITsSbSession.VTable, @ptrCast(self.vtable)).put_ClientDisplay(@as(*const ITsSbSession, @ptrCast(self)), pClientDisplay); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITsSbSession_get_ProtocolType(self: *const T, pVal: ?*u32) HRESULT { return @as(*const ITsSbSession.VTable, @ptrCast(self.vtable)).get_ProtocolType(@as(*const ITsSbSession, @ptrCast(self)), pVal); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITsSbSession_put_ProtocolType(self: *const T, Val: u32) HRESULT { return @as(*const ITsSbSession.VTable, @ptrCast(self.vtable)).put_ProtocolType(@as(*const ITsSbSession, @ptrCast(self)), Val); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windowsServer2012' const IID_ITsSbResourceNotification_Value = Guid.initString("65d3e85a-c39b-11dc-b92d-3cd255d89593"); pub const IID_ITsSbResourceNotification = &IID_ITsSbResourceNotification_Value; pub const ITsSbResourceNotification = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, NotifySessionChange: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ITsSbResourceNotification, changeType: TSSESSION_STATE, pSession: ?*ITsSbSession, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ITsSbResourceNotification, changeType: TSSESSION_STATE, pSession: ?*ITsSbSession, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, NotifyTargetChange: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ITsSbResourceNotification, TargetChangeType: u32, pTarget: ?*ITsSbTarget, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ITsSbResourceNotification, TargetChangeType: u32, pTarget: ?*ITsSbTarget, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, NotifyClientConnectionStateChange: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ITsSbResourceNotification, ChangeType: CONNECTION_CHANGE_NOTIFICATION, pConnection: ?*ITsSbClientConnection, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ITsSbResourceNotification, ChangeType: CONNECTION_CHANGE_NOTIFICATION, pConnection: ?*ITsSbClientConnection, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITsSbResourceNotification_NotifySessionChange(self: *const T, changeType: TSSESSION_STATE, pSession: ?*ITsSbSession) HRESULT { return @as(*const ITsSbResourceNotification.VTable, @ptrCast(self.vtable)).NotifySessionChange(@as(*const ITsSbResourceNotification, @ptrCast(self)), changeType, pSession); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITsSbResourceNotification_NotifyTargetChange(self: *const T, TargetChangeType: u32, pTarget: ?*ITsSbTarget) HRESULT { return @as(*const ITsSbResourceNotification.VTable, @ptrCast(self.vtable)).NotifyTargetChange(@as(*const ITsSbResourceNotification, @ptrCast(self)), TargetChangeType, pTarget); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITsSbResourceNotification_NotifyClientConnectionStateChange(self: *const T, ChangeType: CONNECTION_CHANGE_NOTIFICATION, pConnection: ?*ITsSbClientConnection) HRESULT { return @as(*const ITsSbResourceNotification.VTable, @ptrCast(self.vtable)).NotifyClientConnectionStateChange(@as(*const ITsSbResourceNotification, @ptrCast(self)), ChangeType, pConnection); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windowsServer2012' const IID_ITsSbResourceNotificationEx_Value = Guid.initString("a8a47fde-ca91-44d2-b897-3aa28a43b2b7"); pub const IID_ITsSbResourceNotificationEx = &IID_ITsSbResourceNotificationEx_Value; pub const ITsSbResourceNotificationEx = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, NotifySessionChangeEx: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ITsSbResourceNotificationEx, targetName: ?BSTR, userName: ?BSTR, domain: ?BSTR, sessionId: u32, sessionState: TSSESSION_STATE, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ITsSbResourceNotificationEx, targetName: ?BSTR, userName: ?BSTR, domain: ?BSTR, sessionId: u32, sessionState: TSSESSION_STATE, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, NotifyTargetChangeEx: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ITsSbResourceNotificationEx, targetName: ?BSTR, targetChangeType: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ITsSbResourceNotificationEx, targetName: ?BSTR, targetChangeType: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, NotifyClientConnectionStateChangeEx: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ITsSbResourceNotificationEx, userName: ?BSTR, domain: ?BSTR, initialProgram: ?BSTR, poolName: ?BSTR, targetName: ?BSTR, connectionChangeType: CONNECTION_CHANGE_NOTIFICATION, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ITsSbResourceNotificationEx, userName: ?BSTR, domain: ?BSTR, initialProgram: ?BSTR, poolName: ?BSTR, targetName: ?BSTR, connectionChangeType: CONNECTION_CHANGE_NOTIFICATION, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITsSbResourceNotificationEx_NotifySessionChangeEx(self: *const T, targetName: ?BSTR, userName: ?BSTR, domain: ?BSTR, sessionId: u32, sessionState: TSSESSION_STATE) HRESULT { return @as(*const ITsSbResourceNotificationEx.VTable, @ptrCast(self.vtable)).NotifySessionChangeEx(@as(*const ITsSbResourceNotificationEx, @ptrCast(self)), targetName, userName, domain, sessionId, sessionState); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITsSbResourceNotificationEx_NotifyTargetChangeEx(self: *const T, targetName: ?BSTR, targetChangeType: u32) HRESULT { return @as(*const ITsSbResourceNotificationEx.VTable, @ptrCast(self.vtable)).NotifyTargetChangeEx(@as(*const ITsSbResourceNotificationEx, @ptrCast(self)), targetName, targetChangeType); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITsSbResourceNotificationEx_NotifyClientConnectionStateChangeEx(self: *const T, userName: ?BSTR, domain: ?BSTR, initialProgram: ?BSTR, poolName: ?BSTR, targetName: ?BSTR, connectionChangeType: CONNECTION_CHANGE_NOTIFICATION) HRESULT { return @as(*const ITsSbResourceNotificationEx.VTable, @ptrCast(self.vtable)).NotifyClientConnectionStateChangeEx(@as(*const ITsSbResourceNotificationEx, @ptrCast(self)), userName, domain, initialProgram, poolName, targetName, connectionChangeType); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windowsServer2012' const IID_ITsSbTaskInfo_Value = Guid.initString("523d1083-89be-48dd-99ea-04e82ffa7265"); pub const IID_ITsSbTaskInfo = &IID_ITsSbTaskInfo_Value; pub const ITsSbTaskInfo = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, // TODO: this function has a "SpecialName", should Zig do anything with this? get_TargetId: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ITsSbTaskInfo, pName: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ITsSbTaskInfo, pName: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_StartTime: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ITsSbTaskInfo, pStartTime: ?*FILETIME, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ITsSbTaskInfo, pStartTime: ?*FILETIME, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_EndTime: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ITsSbTaskInfo, pEndTime: ?*FILETIME, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ITsSbTaskInfo, pEndTime: ?*FILETIME, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Deadline: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ITsSbTaskInfo, pDeadline: ?*FILETIME, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ITsSbTaskInfo, pDeadline: ?*FILETIME, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Identifier: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ITsSbTaskInfo, pIdentifier: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ITsSbTaskInfo, pIdentifier: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Label: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ITsSbTaskInfo, pLabel: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ITsSbTaskInfo, pLabel: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Context: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ITsSbTaskInfo, pContext: ?*?*SAFEARRAY, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ITsSbTaskInfo, pContext: ?*?*SAFEARRAY, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Plugin: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ITsSbTaskInfo, pPlugin: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ITsSbTaskInfo, pPlugin: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Status: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ITsSbTaskInfo, pStatus: ?*RDV_TASK_STATUS, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ITsSbTaskInfo, pStatus: ?*RDV_TASK_STATUS, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITsSbTaskInfo_get_TargetId(self: *const T, pName: ?*?BSTR) HRESULT { return @as(*const ITsSbTaskInfo.VTable, @ptrCast(self.vtable)).get_TargetId(@as(*const ITsSbTaskInfo, @ptrCast(self)), pName); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITsSbTaskInfo_get_StartTime(self: *const T, pStartTime: ?*FILETIME) HRESULT { return @as(*const ITsSbTaskInfo.VTable, @ptrCast(self.vtable)).get_StartTime(@as(*const ITsSbTaskInfo, @ptrCast(self)), pStartTime); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITsSbTaskInfo_get_EndTime(self: *const T, pEndTime: ?*FILETIME) HRESULT { return @as(*const ITsSbTaskInfo.VTable, @ptrCast(self.vtable)).get_EndTime(@as(*const ITsSbTaskInfo, @ptrCast(self)), pEndTime); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITsSbTaskInfo_get_Deadline(self: *const T, pDeadline: ?*FILETIME) HRESULT { return @as(*const ITsSbTaskInfo.VTable, @ptrCast(self.vtable)).get_Deadline(@as(*const ITsSbTaskInfo, @ptrCast(self)), pDeadline); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITsSbTaskInfo_get_Identifier(self: *const T, pIdentifier: ?*?BSTR) HRESULT { return @as(*const ITsSbTaskInfo.VTable, @ptrCast(self.vtable)).get_Identifier(@as(*const ITsSbTaskInfo, @ptrCast(self)), pIdentifier); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITsSbTaskInfo_get_Label(self: *const T, pLabel: ?*?BSTR) HRESULT { return @as(*const ITsSbTaskInfo.VTable, @ptrCast(self.vtable)).get_Label(@as(*const ITsSbTaskInfo, @ptrCast(self)), pLabel); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITsSbTaskInfo_get_Context(self: *const T, pContext: ?*?*SAFEARRAY) HRESULT { return @as(*const ITsSbTaskInfo.VTable, @ptrCast(self.vtable)).get_Context(@as(*const ITsSbTaskInfo, @ptrCast(self)), pContext); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITsSbTaskInfo_get_Plugin(self: *const T, pPlugin: ?*?BSTR) HRESULT { return @as(*const ITsSbTaskInfo.VTable, @ptrCast(self.vtable)).get_Plugin(@as(*const ITsSbTaskInfo, @ptrCast(self)), pPlugin); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITsSbTaskInfo_get_Status(self: *const T, pStatus: ?*RDV_TASK_STATUS) HRESULT { return @as(*const ITsSbTaskInfo.VTable, @ptrCast(self.vtable)).get_Status(@as(*const ITsSbTaskInfo, @ptrCast(self)), pStatus); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windowsServer2012' const IID_ITsSbTaskPlugin_Value = Guid.initString("fa22ef0f-8705-41be-93bc-44bdbcf1c9c4"); pub const IID_ITsSbTaskPlugin = &IID_ITsSbTaskPlugin_Value; pub const ITsSbTaskPlugin = extern struct { pub const VTable = extern struct { base: ITsSbPlugin.VTable, InitializeTaskPlugin: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ITsSbTaskPlugin, pITsSbTaskPluginNotifySink: ?*ITsSbTaskPluginNotifySink, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ITsSbTaskPlugin, pITsSbTaskPluginNotifySink: ?*ITsSbTaskPluginNotifySink, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetTaskQueue: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ITsSbTaskPlugin, pszHostName: ?BSTR, SbTaskInfoSize: u32, pITsSbTaskInfo: [*]?*ITsSbTaskInfo, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ITsSbTaskPlugin, pszHostName: ?BSTR, SbTaskInfoSize: u32, pITsSbTaskInfo: [*]?*ITsSbTaskInfo, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace ITsSbPlugin.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITsSbTaskPlugin_InitializeTaskPlugin(self: *const T, pITsSbTaskPluginNotifySink: ?*ITsSbTaskPluginNotifySink) HRESULT { return @as(*const ITsSbTaskPlugin.VTable, @ptrCast(self.vtable)).InitializeTaskPlugin(@as(*const ITsSbTaskPlugin, @ptrCast(self)), pITsSbTaskPluginNotifySink); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITsSbTaskPlugin_SetTaskQueue(self: *const T, pszHostName: ?BSTR, SbTaskInfoSize: u32, pITsSbTaskInfo: [*]?*ITsSbTaskInfo) HRESULT { return @as(*const ITsSbTaskPlugin.VTable, @ptrCast(self.vtable)).SetTaskQueue(@as(*const ITsSbTaskPlugin, @ptrCast(self)), pszHostName, SbTaskInfoSize, pITsSbTaskInfo); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windowsServer2012' const IID_ITsSbPropertySet_Value = Guid.initString("5c025171-bb1e-4baf-a212-6d5e9774b33b"); pub const IID_ITsSbPropertySet = &IID_ITsSbPropertySet_Value; pub const ITsSbPropertySet = extern struct { pub const VTable = extern struct { base: IPropertyBag.VTable, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IPropertyBag.MethodMixin(T); }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windowsServer2012' const IID_ITsSbPluginPropertySet_Value = Guid.initString("95006e34-7eff-4b6c-bb40-49a4fda7cea6"); pub const IID_ITsSbPluginPropertySet = &IID_ITsSbPluginPropertySet_Value; pub const ITsSbPluginPropertySet = extern struct { pub const VTable = extern struct { base: ITsSbPropertySet.VTable, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace ITsSbPropertySet.MethodMixin(T); }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windowsServer2012' const IID_ITsSbClientConnectionPropertySet_Value = Guid.initString("e51995b0-46d6-11dd-aa21-cedc55d89593"); pub const IID_ITsSbClientConnectionPropertySet = &IID_ITsSbClientConnectionPropertySet_Value; pub const ITsSbClientConnectionPropertySet = extern struct { pub const VTable = extern struct { base: ITsSbPropertySet.VTable, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace ITsSbPropertySet.MethodMixin(T); }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windowsServer2012' const IID_ITsSbTargetPropertySet_Value = Guid.initString("f7bda5d6-994c-4e11-a079-2763b61830ac"); pub const IID_ITsSbTargetPropertySet = &IID_ITsSbTargetPropertySet_Value; pub const ITsSbTargetPropertySet = extern struct { pub const VTable = extern struct { base: ITsSbPropertySet.VTable, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace ITsSbPropertySet.MethodMixin(T); }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windowsServer2012' const IID_ITsSbEnvironmentPropertySet_Value = Guid.initString("d0d1bf7e-7acf-11dd-a243-e51156d89593"); pub const IID_ITsSbEnvironmentPropertySet = &IID_ITsSbEnvironmentPropertySet_Value; pub const ITsSbEnvironmentPropertySet = extern struct { pub const VTable = extern struct { base: ITsSbPropertySet.VTable, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace ITsSbPropertySet.MethodMixin(T); }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windowsServer2012' const IID_ITsSbBaseNotifySink_Value = Guid.initString("808a6537-1282-4989-9e09-f43938b71722"); pub const IID_ITsSbBaseNotifySink = &IID_ITsSbBaseNotifySink_Value; pub const ITsSbBaseNotifySink = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, OnError: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ITsSbBaseNotifySink, hrError: HRESULT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ITsSbBaseNotifySink, hrError: HRESULT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, OnReportStatus: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ITsSbBaseNotifySink, messageType: CLIENT_MESSAGE_TYPE, messageID: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ITsSbBaseNotifySink, messageType: CLIENT_MESSAGE_TYPE, messageID: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITsSbBaseNotifySink_OnError(self: *const T, hrError: HRESULT) HRESULT { return @as(*const ITsSbBaseNotifySink.VTable, @ptrCast(self.vtable)).OnError(@as(*const ITsSbBaseNotifySink, @ptrCast(self)), hrError); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITsSbBaseNotifySink_OnReportStatus(self: *const T, messageType: CLIENT_MESSAGE_TYPE, messageID: u32) HRESULT { return @as(*const ITsSbBaseNotifySink.VTable, @ptrCast(self.vtable)).OnReportStatus(@as(*const ITsSbBaseNotifySink, @ptrCast(self)), messageType, messageID); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windowsServer2012' const IID_ITsSbPluginNotifySink_Value = Guid.initString("44dfe30b-c3be-40f5-bf82-7a95bb795adf"); pub const IID_ITsSbPluginNotifySink = &IID_ITsSbPluginNotifySink_Value; pub const ITsSbPluginNotifySink = extern struct { pub const VTable = extern struct { base: ITsSbBaseNotifySink.VTable, OnInitialized: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ITsSbPluginNotifySink, hr: HRESULT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ITsSbPluginNotifySink, hr: HRESULT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, OnTerminated: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ITsSbPluginNotifySink, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ITsSbPluginNotifySink, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace ITsSbBaseNotifySink.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITsSbPluginNotifySink_OnInitialized(self: *const T, hr: HRESULT) HRESULT { return @as(*const ITsSbPluginNotifySink.VTable, @ptrCast(self.vtable)).OnInitialized(@as(*const ITsSbPluginNotifySink, @ptrCast(self)), hr); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITsSbPluginNotifySink_OnTerminated(self: *const T) HRESULT { return @as(*const ITsSbPluginNotifySink.VTable, @ptrCast(self.vtable)).OnTerminated(@as(*const ITsSbPluginNotifySink, @ptrCast(self))); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windowsServer2012' const IID_ITsSbLoadBalancingNotifySink_Value = Guid.initString("5f8a8297-3244-4e6a-958a-27c822c1e141"); pub const IID_ITsSbLoadBalancingNotifySink = &IID_ITsSbLoadBalancingNotifySink_Value; pub const ITsSbLoadBalancingNotifySink = extern struct { pub const VTable = extern struct { base: ITsSbBaseNotifySink.VTable, OnGetMostSuitableTarget: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ITsSbLoadBalancingNotifySink, pLBResult: ?*ITsSbLoadBalanceResult, fIsNewConnection: BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ITsSbLoadBalancingNotifySink, pLBResult: ?*ITsSbLoadBalanceResult, fIsNewConnection: BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace ITsSbBaseNotifySink.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITsSbLoadBalancingNotifySink_OnGetMostSuitableTarget(self: *const T, pLBResult: ?*ITsSbLoadBalanceResult, fIsNewConnection: BOOL) HRESULT { return @as(*const ITsSbLoadBalancingNotifySink.VTable, @ptrCast(self.vtable)).OnGetMostSuitableTarget(@as(*const ITsSbLoadBalancingNotifySink, @ptrCast(self)), pLBResult, fIsNewConnection); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windowsServer2012' const IID_ITsSbPlacementNotifySink_Value = Guid.initString("68a0c487-2b4f-46c2-94a1-6ce685183634"); pub const IID_ITsSbPlacementNotifySink = &IID_ITsSbPlacementNotifySink_Value; pub const ITsSbPlacementNotifySink = extern struct { pub const VTable = extern struct { base: ITsSbBaseNotifySink.VTable, OnQueryEnvironmentCompleted: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ITsSbPlacementNotifySink, pEnvironment: ?*ITsSbEnvironment, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ITsSbPlacementNotifySink, pEnvironment: ?*ITsSbEnvironment, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace ITsSbBaseNotifySink.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITsSbPlacementNotifySink_OnQueryEnvironmentCompleted(self: *const T, pEnvironment: ?*ITsSbEnvironment) HRESULT { return @as(*const ITsSbPlacementNotifySink.VTable, @ptrCast(self.vtable)).OnQueryEnvironmentCompleted(@as(*const ITsSbPlacementNotifySink, @ptrCast(self)), pEnvironment); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windowsServer2012' const IID_ITsSbOrchestrationNotifySink_Value = Guid.initString("36c37d61-926b-442f-bca5-118c6d50dcf2"); pub const IID_ITsSbOrchestrationNotifySink = &IID_ITsSbOrchestrationNotifySink_Value; pub const ITsSbOrchestrationNotifySink = extern struct { pub const VTable = extern struct { base: ITsSbBaseNotifySink.VTable, OnReadyToConnect: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ITsSbOrchestrationNotifySink, pTarget: ?*ITsSbTarget, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ITsSbOrchestrationNotifySink, pTarget: ?*ITsSbTarget, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace ITsSbBaseNotifySink.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITsSbOrchestrationNotifySink_OnReadyToConnect(self: *const T, pTarget: ?*ITsSbTarget) HRESULT { return @as(*const ITsSbOrchestrationNotifySink.VTable, @ptrCast(self.vtable)).OnReadyToConnect(@as(*const ITsSbOrchestrationNotifySink, @ptrCast(self)), pTarget); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windowsServer2012' const IID_ITsSbTaskPluginNotifySink_Value = Guid.initString("6aaf899e-c2ec-45ee-aa37-45e60895261a"); pub const IID_ITsSbTaskPluginNotifySink = &IID_ITsSbTaskPluginNotifySink_Value; pub const ITsSbTaskPluginNotifySink = extern struct { pub const VTable = extern struct { base: ITsSbBaseNotifySink.VTable, OnSetTaskTime: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ITsSbTaskPluginNotifySink, szTargetName: ?BSTR, TaskStartTime: FILETIME, TaskEndTime: FILETIME, TaskDeadline: FILETIME, szTaskLabel: ?BSTR, szTaskIdentifier: ?BSTR, szTaskPlugin: ?BSTR, dwTaskStatus: u32, saContext: ?*SAFEARRAY, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ITsSbTaskPluginNotifySink, szTargetName: ?BSTR, TaskStartTime: FILETIME, TaskEndTime: FILETIME, TaskDeadline: FILETIME, szTaskLabel: ?BSTR, szTaskIdentifier: ?BSTR, szTaskPlugin: ?BSTR, dwTaskStatus: u32, saContext: ?*SAFEARRAY, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, OnDeleteTaskTime: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ITsSbTaskPluginNotifySink, szTargetName: ?BSTR, szTaskIdentifier: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ITsSbTaskPluginNotifySink, szTargetName: ?BSTR, szTaskIdentifier: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, OnUpdateTaskStatus: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ITsSbTaskPluginNotifySink, szTargetName: ?BSTR, TaskIdentifier: ?BSTR, TaskStatus: RDV_TASK_STATUS, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ITsSbTaskPluginNotifySink, szTargetName: ?BSTR, TaskIdentifier: ?BSTR, TaskStatus: RDV_TASK_STATUS, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, OnReportTasks: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ITsSbTaskPluginNotifySink, szHostName: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ITsSbTaskPluginNotifySink, szHostName: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace ITsSbBaseNotifySink.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITsSbTaskPluginNotifySink_OnSetTaskTime(self: *const T, szTargetName: ?BSTR, TaskStartTime: FILETIME, TaskEndTime: FILETIME, TaskDeadline: FILETIME, szTaskLabel: ?BSTR, szTaskIdentifier: ?BSTR, szTaskPlugin: ?BSTR, dwTaskStatus: u32, saContext: ?*SAFEARRAY) HRESULT { return @as(*const ITsSbTaskPluginNotifySink.VTable, @ptrCast(self.vtable)).OnSetTaskTime(@as(*const ITsSbTaskPluginNotifySink, @ptrCast(self)), szTargetName, TaskStartTime, TaskEndTime, TaskDeadline, szTaskLabel, szTaskIdentifier, szTaskPlugin, dwTaskStatus, saContext); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITsSbTaskPluginNotifySink_OnDeleteTaskTime(self: *const T, szTargetName: ?BSTR, szTaskIdentifier: ?BSTR) HRESULT { return @as(*const ITsSbTaskPluginNotifySink.VTable, @ptrCast(self.vtable)).OnDeleteTaskTime(@as(*const ITsSbTaskPluginNotifySink, @ptrCast(self)), szTargetName, szTaskIdentifier); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITsSbTaskPluginNotifySink_OnUpdateTaskStatus(self: *const T, szTargetName: ?BSTR, TaskIdentifier: ?BSTR, TaskStatus: RDV_TASK_STATUS) HRESULT { return @as(*const ITsSbTaskPluginNotifySink.VTable, @ptrCast(self.vtable)).OnUpdateTaskStatus(@as(*const ITsSbTaskPluginNotifySink, @ptrCast(self)), szTargetName, TaskIdentifier, TaskStatus); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITsSbTaskPluginNotifySink_OnReportTasks(self: *const T, szHostName: ?BSTR) HRESULT { return @as(*const ITsSbTaskPluginNotifySink.VTable, @ptrCast(self.vtable)).OnReportTasks(@as(*const ITsSbTaskPluginNotifySink, @ptrCast(self)), szHostName); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windowsServer2012' const IID_ITsSbClientConnection_Value = Guid.initString("18857499-ad61-4b1b-b7df-cbcd41fb8338"); pub const IID_ITsSbClientConnection = &IID_ITsSbClientConnection_Value; pub const ITsSbClientConnection = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, // TODO: this function has a "SpecialName", should Zig do anything with this? get_UserName: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ITsSbClientConnection, pVal: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ITsSbClientConnection, pVal: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Domain: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ITsSbClientConnection, pVal: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ITsSbClientConnection, pVal: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_InitialProgram: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ITsSbClientConnection, pVal: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ITsSbClientConnection, pVal: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_LoadBalanceResult: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ITsSbClientConnection, ppVal: ?*?*ITsSbLoadBalanceResult, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ITsSbClientConnection, ppVal: ?*?*ITsSbLoadBalanceResult, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_FarmName: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ITsSbClientConnection, pVal: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ITsSbClientConnection, pVal: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, PutContext: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ITsSbClientConnection, contextId: ?BSTR, context: VARIANT, existingContext: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ITsSbClientConnection, contextId: ?BSTR, context: VARIANT, existingContext: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetContext: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ITsSbClientConnection, contextId: ?BSTR, context: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ITsSbClientConnection, contextId: ?BSTR, context: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Environment: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ITsSbClientConnection, ppEnvironment: ?*?*ITsSbEnvironment, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ITsSbClientConnection, ppEnvironment: ?*?*ITsSbEnvironment, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_ConnectionError: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ITsSbClientConnection, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ITsSbClientConnection, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_SamUserAccount: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ITsSbClientConnection, pVal: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ITsSbClientConnection, pVal: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_ClientConnectionPropertySet: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ITsSbClientConnection, ppPropertySet: ?*?*ITsSbClientConnectionPropertySet, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ITsSbClientConnection, ppPropertySet: ?*?*ITsSbClientConnectionPropertySet, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_IsFirstAssignment: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ITsSbClientConnection, ppVal: ?*BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ITsSbClientConnection, ppVal: ?*BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_RdFarmType: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ITsSbClientConnection, pRdFarmType: ?*RD_FARM_TYPE, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ITsSbClientConnection, pRdFarmType: ?*RD_FARM_TYPE, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_UserSidString: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ITsSbClientConnection, pszUserSidString: ?*?*i8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ITsSbClientConnection, pszUserSidString: ?*?*i8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetDisconnectedSession: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ITsSbClientConnection, ppSession: ?*?*ITsSbSession, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ITsSbClientConnection, ppSession: ?*?*ITsSbSession, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITsSbClientConnection_get_UserName(self: *const T, pVal: ?*?BSTR) HRESULT { return @as(*const ITsSbClientConnection.VTable, @ptrCast(self.vtable)).get_UserName(@as(*const ITsSbClientConnection, @ptrCast(self)), pVal); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITsSbClientConnection_get_Domain(self: *const T, pVal: ?*?BSTR) HRESULT { return @as(*const ITsSbClientConnection.VTable, @ptrCast(self.vtable)).get_Domain(@as(*const ITsSbClientConnection, @ptrCast(self)), pVal); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITsSbClientConnection_get_InitialProgram(self: *const T, pVal: ?*?BSTR) HRESULT { return @as(*const ITsSbClientConnection.VTable, @ptrCast(self.vtable)).get_InitialProgram(@as(*const ITsSbClientConnection, @ptrCast(self)), pVal); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITsSbClientConnection_get_LoadBalanceResult(self: *const T, ppVal: ?*?*ITsSbLoadBalanceResult) HRESULT { return @as(*const ITsSbClientConnection.VTable, @ptrCast(self.vtable)).get_LoadBalanceResult(@as(*const ITsSbClientConnection, @ptrCast(self)), ppVal); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITsSbClientConnection_get_FarmName(self: *const T, pVal: ?*?BSTR) HRESULT { return @as(*const ITsSbClientConnection.VTable, @ptrCast(self.vtable)).get_FarmName(@as(*const ITsSbClientConnection, @ptrCast(self)), pVal); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITsSbClientConnection_PutContext(self: *const T, contextId: ?BSTR, context: VARIANT, existingContext: ?*VARIANT) HRESULT { return @as(*const ITsSbClientConnection.VTable, @ptrCast(self.vtable)).PutContext(@as(*const ITsSbClientConnection, @ptrCast(self)), contextId, context, existingContext); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITsSbClientConnection_GetContext(self: *const T, contextId: ?BSTR, context: ?*VARIANT) HRESULT { return @as(*const ITsSbClientConnection.VTable, @ptrCast(self.vtable)).GetContext(@as(*const ITsSbClientConnection, @ptrCast(self)), contextId, context); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITsSbClientConnection_get_Environment(self: *const T, ppEnvironment: ?*?*ITsSbEnvironment) HRESULT { return @as(*const ITsSbClientConnection.VTable, @ptrCast(self.vtable)).get_Environment(@as(*const ITsSbClientConnection, @ptrCast(self)), ppEnvironment); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITsSbClientConnection_get_ConnectionError(self: *const T) HRESULT { return @as(*const ITsSbClientConnection.VTable, @ptrCast(self.vtable)).get_ConnectionError(@as(*const ITsSbClientConnection, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITsSbClientConnection_get_SamUserAccount(self: *const T, pVal: ?*?BSTR) HRESULT { return @as(*const ITsSbClientConnection.VTable, @ptrCast(self.vtable)).get_SamUserAccount(@as(*const ITsSbClientConnection, @ptrCast(self)), pVal); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITsSbClientConnection_get_ClientConnectionPropertySet(self: *const T, ppPropertySet: ?*?*ITsSbClientConnectionPropertySet) HRESULT { return @as(*const ITsSbClientConnection.VTable, @ptrCast(self.vtable)).get_ClientConnectionPropertySet(@as(*const ITsSbClientConnection, @ptrCast(self)), ppPropertySet); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITsSbClientConnection_get_IsFirstAssignment(self: *const T, ppVal: ?*BOOL) HRESULT { return @as(*const ITsSbClientConnection.VTable, @ptrCast(self.vtable)).get_IsFirstAssignment(@as(*const ITsSbClientConnection, @ptrCast(self)), ppVal); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITsSbClientConnection_get_RdFarmType(self: *const T, pRdFarmType: ?*RD_FARM_TYPE) HRESULT { return @as(*const ITsSbClientConnection.VTable, @ptrCast(self.vtable)).get_RdFarmType(@as(*const ITsSbClientConnection, @ptrCast(self)), pRdFarmType); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITsSbClientConnection_get_UserSidString(self: *const T, pszUserSidString: ?*?*i8) HRESULT { return @as(*const ITsSbClientConnection.VTable, @ptrCast(self.vtable)).get_UserSidString(@as(*const ITsSbClientConnection, @ptrCast(self)), pszUserSidString); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITsSbClientConnection_GetDisconnectedSession(self: *const T, ppSession: ?*?*ITsSbSession) HRESULT { return @as(*const ITsSbClientConnection.VTable, @ptrCast(self.vtable)).GetDisconnectedSession(@as(*const ITsSbClientConnection, @ptrCast(self)), ppSession); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windowsServer2012' const IID_ITsSbProvider_Value = Guid.initString("87a4098f-6d7b-44dd-bc17-8ce44e370d52"); pub const IID_ITsSbProvider = &IID_ITsSbProvider_Value; pub const ITsSbProvider = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, CreateTargetObject: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ITsSbProvider, TargetName: ?BSTR, EnvironmentName: ?BSTR, ppTarget: ?*?*ITsSbTarget, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ITsSbProvider, TargetName: ?BSTR, EnvironmentName: ?BSTR, ppTarget: ?*?*ITsSbTarget, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, CreateLoadBalanceResultObject: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ITsSbProvider, TargetName: ?BSTR, ppLBResult: ?*?*ITsSbLoadBalanceResult, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ITsSbProvider, TargetName: ?BSTR, ppLBResult: ?*?*ITsSbLoadBalanceResult, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, CreateSessionObject: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ITsSbProvider, TargetName: ?BSTR, UserName: ?BSTR, Domain: ?BSTR, SessionId: u32, ppSession: ?*?*ITsSbSession, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ITsSbProvider, TargetName: ?BSTR, UserName: ?BSTR, Domain: ?BSTR, SessionId: u32, ppSession: ?*?*ITsSbSession, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, CreatePluginPropertySet: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ITsSbProvider, ppPropertySet: ?*?*ITsSbPluginPropertySet, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ITsSbProvider, ppPropertySet: ?*?*ITsSbPluginPropertySet, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, CreateTargetPropertySetObject: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ITsSbProvider, ppPropertySet: ?*?*ITsSbTargetPropertySet, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ITsSbProvider, ppPropertySet: ?*?*ITsSbTargetPropertySet, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, CreateEnvironmentObject: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ITsSbProvider, Name: ?BSTR, ServerWeight: u32, ppEnvironment: ?*?*ITsSbEnvironment, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ITsSbProvider, Name: ?BSTR, ServerWeight: u32, ppEnvironment: ?*?*ITsSbEnvironment, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetResourcePluginStore: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ITsSbProvider, ppStore: ?*?*ITsSbResourcePluginStore, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ITsSbProvider, ppStore: ?*?*ITsSbResourcePluginStore, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetFilterPluginStore: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ITsSbProvider, ppStore: ?*?*ITsSbFilterPluginStore, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ITsSbProvider, ppStore: ?*?*ITsSbFilterPluginStore, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, RegisterForNotification: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ITsSbProvider, notificationType: u32, ResourceToMonitor: ?BSTR, pPluginNotification: ?*ITsSbResourceNotification, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ITsSbProvider, notificationType: u32, ResourceToMonitor: ?BSTR, pPluginNotification: ?*ITsSbResourceNotification, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, UnRegisterForNotification: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ITsSbProvider, notificationType: u32, ResourceToMonitor: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ITsSbProvider, notificationType: u32, ResourceToMonitor: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetInstanceOfGlobalStore: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ITsSbProvider, ppGlobalStore: ?*?*ITsSbGlobalStore, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ITsSbProvider, ppGlobalStore: ?*?*ITsSbGlobalStore, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, CreateEnvironmentPropertySetObject: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ITsSbProvider, ppPropertySet: ?*?*ITsSbEnvironmentPropertySet, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ITsSbProvider, ppPropertySet: ?*?*ITsSbEnvironmentPropertySet, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITsSbProvider_CreateTargetObject(self: *const T, TargetName: ?BSTR, EnvironmentName: ?BSTR, ppTarget: ?*?*ITsSbTarget) HRESULT { return @as(*const ITsSbProvider.VTable, @ptrCast(self.vtable)).CreateTargetObject(@as(*const ITsSbProvider, @ptrCast(self)), TargetName, EnvironmentName, ppTarget); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITsSbProvider_CreateLoadBalanceResultObject(self: *const T, TargetName: ?BSTR, ppLBResult: ?*?*ITsSbLoadBalanceResult) HRESULT { return @as(*const ITsSbProvider.VTable, @ptrCast(self.vtable)).CreateLoadBalanceResultObject(@as(*const ITsSbProvider, @ptrCast(self)), TargetName, ppLBResult); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITsSbProvider_CreateSessionObject(self: *const T, TargetName: ?BSTR, UserName: ?BSTR, Domain: ?BSTR, SessionId: u32, ppSession: ?*?*ITsSbSession) HRESULT { return @as(*const ITsSbProvider.VTable, @ptrCast(self.vtable)).CreateSessionObject(@as(*const ITsSbProvider, @ptrCast(self)), TargetName, UserName, Domain, SessionId, ppSession); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITsSbProvider_CreatePluginPropertySet(self: *const T, ppPropertySet: ?*?*ITsSbPluginPropertySet) HRESULT { return @as(*const ITsSbProvider.VTable, @ptrCast(self.vtable)).CreatePluginPropertySet(@as(*const ITsSbProvider, @ptrCast(self)), ppPropertySet); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITsSbProvider_CreateTargetPropertySetObject(self: *const T, ppPropertySet: ?*?*ITsSbTargetPropertySet) HRESULT { return @as(*const ITsSbProvider.VTable, @ptrCast(self.vtable)).CreateTargetPropertySetObject(@as(*const ITsSbProvider, @ptrCast(self)), ppPropertySet); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITsSbProvider_CreateEnvironmentObject(self: *const T, Name: ?BSTR, ServerWeight: u32, ppEnvironment: ?*?*ITsSbEnvironment) HRESULT { return @as(*const ITsSbProvider.VTable, @ptrCast(self.vtable)).CreateEnvironmentObject(@as(*const ITsSbProvider, @ptrCast(self)), Name, ServerWeight, ppEnvironment); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITsSbProvider_GetResourcePluginStore(self: *const T, ppStore: ?*?*ITsSbResourcePluginStore) HRESULT { return @as(*const ITsSbProvider.VTable, @ptrCast(self.vtable)).GetResourcePluginStore(@as(*const ITsSbProvider, @ptrCast(self)), ppStore); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITsSbProvider_GetFilterPluginStore(self: *const T, ppStore: ?*?*ITsSbFilterPluginStore) HRESULT { return @as(*const ITsSbProvider.VTable, @ptrCast(self.vtable)).GetFilterPluginStore(@as(*const ITsSbProvider, @ptrCast(self)), ppStore); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITsSbProvider_RegisterForNotification(self: *const T, notificationType: u32, ResourceToMonitor: ?BSTR, pPluginNotification: ?*ITsSbResourceNotification) HRESULT { return @as(*const ITsSbProvider.VTable, @ptrCast(self.vtable)).RegisterForNotification(@as(*const ITsSbProvider, @ptrCast(self)), notificationType, ResourceToMonitor, pPluginNotification); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITsSbProvider_UnRegisterForNotification(self: *const T, notificationType: u32, ResourceToMonitor: ?BSTR) HRESULT { return @as(*const ITsSbProvider.VTable, @ptrCast(self.vtable)).UnRegisterForNotification(@as(*const ITsSbProvider, @ptrCast(self)), notificationType, ResourceToMonitor); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITsSbProvider_GetInstanceOfGlobalStore(self: *const T, ppGlobalStore: ?*?*ITsSbGlobalStore) HRESULT { return @as(*const ITsSbProvider.VTable, @ptrCast(self.vtable)).GetInstanceOfGlobalStore(@as(*const ITsSbProvider, @ptrCast(self)), ppGlobalStore); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITsSbProvider_CreateEnvironmentPropertySetObject(self: *const T, ppPropertySet: ?*?*ITsSbEnvironmentPropertySet) HRESULT { return @as(*const ITsSbProvider.VTable, @ptrCast(self.vtable)).CreateEnvironmentPropertySetObject(@as(*const ITsSbProvider, @ptrCast(self)), ppPropertySet); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windowsServer2012' const IID_ITsSbResourcePluginStore_Value = Guid.initString("5c38f65f-bcf1-4036-a6bf-9e3cccae0b63"); pub const IID_ITsSbResourcePluginStore = &IID_ITsSbResourcePluginStore_Value; pub const ITsSbResourcePluginStore = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, QueryTarget: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ITsSbResourcePluginStore, TargetName: ?BSTR, FarmName: ?BSTR, ppTarget: ?*?*ITsSbTarget, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ITsSbResourcePluginStore, TargetName: ?BSTR, FarmName: ?BSTR, ppTarget: ?*?*ITsSbTarget, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, QuerySessionBySessionId: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ITsSbResourcePluginStore, dwSessionId: u32, TargetName: ?BSTR, ppSession: ?*?*ITsSbSession, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ITsSbResourcePluginStore, dwSessionId: u32, TargetName: ?BSTR, ppSession: ?*?*ITsSbSession, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, AddTargetToStore: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ITsSbResourcePluginStore, pTarget: ?*ITsSbTarget, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ITsSbResourcePluginStore, pTarget: ?*ITsSbTarget, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, AddSessionToStore: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ITsSbResourcePluginStore, pSession: ?*ITsSbSession, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ITsSbResourcePluginStore, pSession: ?*ITsSbSession, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, AddEnvironmentToStore: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ITsSbResourcePluginStore, pEnvironment: ?*ITsSbEnvironment, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ITsSbResourcePluginStore, pEnvironment: ?*ITsSbEnvironment, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, RemoveEnvironmentFromStore: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ITsSbResourcePluginStore, EnvironmentName: ?BSTR, bIgnoreOwner: BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ITsSbResourcePluginStore, EnvironmentName: ?BSTR, bIgnoreOwner: BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, EnumerateFarms: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ITsSbResourcePluginStore, pdwCount: ?*u32, pVal: ?*?*SAFEARRAY, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ITsSbResourcePluginStore, pdwCount: ?*u32, pVal: ?*?*SAFEARRAY, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, QueryEnvironment: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ITsSbResourcePluginStore, EnvironmentName: ?BSTR, ppEnvironment: ?*?*ITsSbEnvironment, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ITsSbResourcePluginStore, EnvironmentName: ?BSTR, ppEnvironment: ?*?*ITsSbEnvironment, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, EnumerateEnvironments: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ITsSbResourcePluginStore, pdwCount: ?*u32, pVal: [*]?*?*ITsSbEnvironment, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ITsSbResourcePluginStore, pdwCount: ?*u32, pVal: [*]?*?*ITsSbEnvironment, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SaveTarget: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ITsSbResourcePluginStore, pTarget: ?*ITsSbTarget, bForceWrite: BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ITsSbResourcePluginStore, pTarget: ?*ITsSbTarget, bForceWrite: BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SaveEnvironment: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ITsSbResourcePluginStore, pEnvironment: ?*ITsSbEnvironment, bForceWrite: BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ITsSbResourcePluginStore, pEnvironment: ?*ITsSbEnvironment, bForceWrite: BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SaveSession: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ITsSbResourcePluginStore, pSession: ?*ITsSbSession, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ITsSbResourcePluginStore, pSession: ?*ITsSbSession, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetTargetProperty: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ITsSbResourcePluginStore, TargetName: ?BSTR, PropertyName: ?BSTR, pProperty: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ITsSbResourcePluginStore, TargetName: ?BSTR, PropertyName: ?BSTR, pProperty: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetEnvironmentProperty: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ITsSbResourcePluginStore, EnvironmentName: ?BSTR, PropertyName: ?BSTR, pProperty: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ITsSbResourcePluginStore, EnvironmentName: ?BSTR, PropertyName: ?BSTR, pProperty: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetTargetState: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ITsSbResourcePluginStore, targetName: ?BSTR, newState: TARGET_STATE, pOldState: ?*TARGET_STATE, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ITsSbResourcePluginStore, targetName: ?BSTR, newState: TARGET_STATE, pOldState: ?*TARGET_STATE, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetSessionState: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ITsSbResourcePluginStore, sbSession: ?*ITsSbSession, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ITsSbResourcePluginStore, sbSession: ?*ITsSbSession, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, EnumerateTargets: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ITsSbResourcePluginStore, FarmName: ?BSTR, EnvName: ?BSTR, sortByFieldId: TS_SB_SORT_BY, sortyByPropName: ?BSTR, pdwCount: ?*u32, pVal: [*]?*?*ITsSbTarget, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ITsSbResourcePluginStore, FarmName: ?BSTR, EnvName: ?BSTR, sortByFieldId: TS_SB_SORT_BY, sortyByPropName: ?BSTR, pdwCount: ?*u32, pVal: [*]?*?*ITsSbTarget, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, EnumerateSessions: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ITsSbResourcePluginStore, targetName: ?BSTR, userName: ?BSTR, userDomain: ?BSTR, poolName: ?BSTR, initialProgram: ?BSTR, pSessionState: ?*TSSESSION_STATE, pdwCount: ?*u32, ppVal: [*]?*?*ITsSbSession, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ITsSbResourcePluginStore, targetName: ?BSTR, userName: ?BSTR, userDomain: ?BSTR, poolName: ?BSTR, initialProgram: ?BSTR, pSessionState: ?*TSSESSION_STATE, pdwCount: ?*u32, ppVal: [*]?*?*ITsSbSession, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetFarmProperty: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ITsSbResourcePluginStore, farmName: ?BSTR, propertyName: ?BSTR, pVarValue: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ITsSbResourcePluginStore, farmName: ?BSTR, propertyName: ?BSTR, pVarValue: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, DeleteTarget: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ITsSbResourcePluginStore, targetName: ?BSTR, hostName: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ITsSbResourcePluginStore, targetName: ?BSTR, hostName: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetTargetPropertyWithVersionCheck: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ITsSbResourcePluginStore, pTarget: ?*ITsSbTarget, PropertyName: ?BSTR, pProperty: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ITsSbResourcePluginStore, pTarget: ?*ITsSbTarget, PropertyName: ?BSTR, pProperty: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetEnvironmentPropertyWithVersionCheck: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ITsSbResourcePluginStore, pEnvironment: ?*ITsSbEnvironment, PropertyName: ?BSTR, pProperty: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ITsSbResourcePluginStore, pEnvironment: ?*ITsSbEnvironment, PropertyName: ?BSTR, pProperty: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, AcquireTargetLock: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ITsSbResourcePluginStore, targetName: ?BSTR, dwTimeout: u32, ppContext: ?*?*IUnknown, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ITsSbResourcePluginStore, targetName: ?BSTR, dwTimeout: u32, ppContext: ?*?*IUnknown, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, ReleaseTargetLock: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ITsSbResourcePluginStore, pContext: ?*IUnknown, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ITsSbResourcePluginStore, pContext: ?*IUnknown, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, TestAndSetServerState: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ITsSbResourcePluginStore, PoolName: ?BSTR, ServerFQDN: ?BSTR, NewState: TARGET_STATE, TestState: TARGET_STATE, pInitState: ?*TARGET_STATE, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ITsSbResourcePluginStore, PoolName: ?BSTR, ServerFQDN: ?BSTR, NewState: TARGET_STATE, TestState: TARGET_STATE, pInitState: ?*TARGET_STATE, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetServerWaitingToStart: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ITsSbResourcePluginStore, PoolName: ?BSTR, serverName: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ITsSbResourcePluginStore, PoolName: ?BSTR, serverName: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetServerState: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ITsSbResourcePluginStore, PoolName: ?BSTR, ServerFQDN: ?BSTR, pState: ?*TARGET_STATE, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ITsSbResourcePluginStore, PoolName: ?BSTR, ServerFQDN: ?BSTR, pState: ?*TARGET_STATE, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetServerDrainMode: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ITsSbResourcePluginStore, ServerFQDN: ?BSTR, DrainMode: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ITsSbResourcePluginStore, ServerFQDN: ?BSTR, DrainMode: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITsSbResourcePluginStore_QueryTarget(self: *const T, TargetName: ?BSTR, FarmName: ?BSTR, ppTarget: ?*?*ITsSbTarget) HRESULT { return @as(*const ITsSbResourcePluginStore.VTable, @ptrCast(self.vtable)).QueryTarget(@as(*const ITsSbResourcePluginStore, @ptrCast(self)), TargetName, FarmName, ppTarget); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITsSbResourcePluginStore_QuerySessionBySessionId(self: *const T, dwSessionId: u32, TargetName: ?BSTR, ppSession: ?*?*ITsSbSession) HRESULT { return @as(*const ITsSbResourcePluginStore.VTable, @ptrCast(self.vtable)).QuerySessionBySessionId(@as(*const ITsSbResourcePluginStore, @ptrCast(self)), dwSessionId, TargetName, ppSession); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITsSbResourcePluginStore_AddTargetToStore(self: *const T, pTarget: ?*ITsSbTarget) HRESULT { return @as(*const ITsSbResourcePluginStore.VTable, @ptrCast(self.vtable)).AddTargetToStore(@as(*const ITsSbResourcePluginStore, @ptrCast(self)), pTarget); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITsSbResourcePluginStore_AddSessionToStore(self: *const T, pSession: ?*ITsSbSession) HRESULT { return @as(*const ITsSbResourcePluginStore.VTable, @ptrCast(self.vtable)).AddSessionToStore(@as(*const ITsSbResourcePluginStore, @ptrCast(self)), pSession); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITsSbResourcePluginStore_AddEnvironmentToStore(self: *const T, pEnvironment: ?*ITsSbEnvironment) HRESULT { return @as(*const ITsSbResourcePluginStore.VTable, @ptrCast(self.vtable)).AddEnvironmentToStore(@as(*const ITsSbResourcePluginStore, @ptrCast(self)), pEnvironment); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITsSbResourcePluginStore_RemoveEnvironmentFromStore(self: *const T, EnvironmentName: ?BSTR, bIgnoreOwner: BOOL) HRESULT { return @as(*const ITsSbResourcePluginStore.VTable, @ptrCast(self.vtable)).RemoveEnvironmentFromStore(@as(*const ITsSbResourcePluginStore, @ptrCast(self)), EnvironmentName, bIgnoreOwner); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITsSbResourcePluginStore_EnumerateFarms(self: *const T, pdwCount: ?*u32, pVal: ?*?*SAFEARRAY) HRESULT { return @as(*const ITsSbResourcePluginStore.VTable, @ptrCast(self.vtable)).EnumerateFarms(@as(*const ITsSbResourcePluginStore, @ptrCast(self)), pdwCount, pVal); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITsSbResourcePluginStore_QueryEnvironment(self: *const T, EnvironmentName: ?BSTR, ppEnvironment: ?*?*ITsSbEnvironment) HRESULT { return @as(*const ITsSbResourcePluginStore.VTable, @ptrCast(self.vtable)).QueryEnvironment(@as(*const ITsSbResourcePluginStore, @ptrCast(self)), EnvironmentName, ppEnvironment); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITsSbResourcePluginStore_EnumerateEnvironments(self: *const T, pdwCount: ?*u32, pVal: [*]?*?*ITsSbEnvironment) HRESULT { return @as(*const ITsSbResourcePluginStore.VTable, @ptrCast(self.vtable)).EnumerateEnvironments(@as(*const ITsSbResourcePluginStore, @ptrCast(self)), pdwCount, pVal); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITsSbResourcePluginStore_SaveTarget(self: *const T, pTarget: ?*ITsSbTarget, bForceWrite: BOOL) HRESULT { return @as(*const ITsSbResourcePluginStore.VTable, @ptrCast(self.vtable)).SaveTarget(@as(*const ITsSbResourcePluginStore, @ptrCast(self)), pTarget, bForceWrite); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITsSbResourcePluginStore_SaveEnvironment(self: *const T, pEnvironment: ?*ITsSbEnvironment, bForceWrite: BOOL) HRESULT { return @as(*const ITsSbResourcePluginStore.VTable, @ptrCast(self.vtable)).SaveEnvironment(@as(*const ITsSbResourcePluginStore, @ptrCast(self)), pEnvironment, bForceWrite); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITsSbResourcePluginStore_SaveSession(self: *const T, pSession: ?*ITsSbSession) HRESULT { return @as(*const ITsSbResourcePluginStore.VTable, @ptrCast(self.vtable)).SaveSession(@as(*const ITsSbResourcePluginStore, @ptrCast(self)), pSession); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITsSbResourcePluginStore_SetTargetProperty(self: *const T, TargetName: ?BSTR, PropertyName: ?BSTR, pProperty: ?*VARIANT) HRESULT { return @as(*const ITsSbResourcePluginStore.VTable, @ptrCast(self.vtable)).SetTargetProperty(@as(*const ITsSbResourcePluginStore, @ptrCast(self)), TargetName, PropertyName, pProperty); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITsSbResourcePluginStore_SetEnvironmentProperty(self: *const T, EnvironmentName: ?BSTR, PropertyName: ?BSTR, pProperty: ?*VARIANT) HRESULT { return @as(*const ITsSbResourcePluginStore.VTable, @ptrCast(self.vtable)).SetEnvironmentProperty(@as(*const ITsSbResourcePluginStore, @ptrCast(self)), EnvironmentName, PropertyName, pProperty); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITsSbResourcePluginStore_SetTargetState(self: *const T, targetName: ?BSTR, newState: TARGET_STATE, pOldState: ?*TARGET_STATE) HRESULT { return @as(*const ITsSbResourcePluginStore.VTable, @ptrCast(self.vtable)).SetTargetState(@as(*const ITsSbResourcePluginStore, @ptrCast(self)), targetName, newState, pOldState); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITsSbResourcePluginStore_SetSessionState(self: *const T, sbSession: ?*ITsSbSession) HRESULT { return @as(*const ITsSbResourcePluginStore.VTable, @ptrCast(self.vtable)).SetSessionState(@as(*const ITsSbResourcePluginStore, @ptrCast(self)), sbSession); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITsSbResourcePluginStore_EnumerateTargets(self: *const T, FarmName: ?BSTR, EnvName: ?BSTR, sortByFieldId: TS_SB_SORT_BY, sortyByPropName: ?BSTR, pdwCount: ?*u32, pVal: [*]?*?*ITsSbTarget) HRESULT { return @as(*const ITsSbResourcePluginStore.VTable, @ptrCast(self.vtable)).EnumerateTargets(@as(*const ITsSbResourcePluginStore, @ptrCast(self)), FarmName, EnvName, sortByFieldId, sortyByPropName, pdwCount, pVal); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITsSbResourcePluginStore_EnumerateSessions(self: *const T, targetName: ?BSTR, userName: ?BSTR, userDomain: ?BSTR, poolName: ?BSTR, initialProgram: ?BSTR, pSessionState: ?*TSSESSION_STATE, pdwCount: ?*u32, ppVal: [*]?*?*ITsSbSession) HRESULT { return @as(*const ITsSbResourcePluginStore.VTable, @ptrCast(self.vtable)).EnumerateSessions(@as(*const ITsSbResourcePluginStore, @ptrCast(self)), targetName, userName, userDomain, poolName, initialProgram, pSessionState, pdwCount, ppVal); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITsSbResourcePluginStore_GetFarmProperty(self: *const T, farmName: ?BSTR, propertyName: ?BSTR, pVarValue: ?*VARIANT) HRESULT { return @as(*const ITsSbResourcePluginStore.VTable, @ptrCast(self.vtable)).GetFarmProperty(@as(*const ITsSbResourcePluginStore, @ptrCast(self)), farmName, propertyName, pVarValue); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITsSbResourcePluginStore_DeleteTarget(self: *const T, targetName: ?BSTR, hostName: ?BSTR) HRESULT { return @as(*const ITsSbResourcePluginStore.VTable, @ptrCast(self.vtable)).DeleteTarget(@as(*const ITsSbResourcePluginStore, @ptrCast(self)), targetName, hostName); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITsSbResourcePluginStore_SetTargetPropertyWithVersionCheck(self: *const T, pTarget: ?*ITsSbTarget, PropertyName: ?BSTR, pProperty: ?*VARIANT) HRESULT { return @as(*const ITsSbResourcePluginStore.VTable, @ptrCast(self.vtable)).SetTargetPropertyWithVersionCheck(@as(*const ITsSbResourcePluginStore, @ptrCast(self)), pTarget, PropertyName, pProperty); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITsSbResourcePluginStore_SetEnvironmentPropertyWithVersionCheck(self: *const T, pEnvironment: ?*ITsSbEnvironment, PropertyName: ?BSTR, pProperty: ?*VARIANT) HRESULT { return @as(*const ITsSbResourcePluginStore.VTable, @ptrCast(self.vtable)).SetEnvironmentPropertyWithVersionCheck(@as(*const ITsSbResourcePluginStore, @ptrCast(self)), pEnvironment, PropertyName, pProperty); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITsSbResourcePluginStore_AcquireTargetLock(self: *const T, targetName: ?BSTR, dwTimeout: u32, ppContext: ?*?*IUnknown) HRESULT { return @as(*const ITsSbResourcePluginStore.VTable, @ptrCast(self.vtable)).AcquireTargetLock(@as(*const ITsSbResourcePluginStore, @ptrCast(self)), targetName, dwTimeout, ppContext); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITsSbResourcePluginStore_ReleaseTargetLock(self: *const T, pContext: ?*IUnknown) HRESULT { return @as(*const ITsSbResourcePluginStore.VTable, @ptrCast(self.vtable)).ReleaseTargetLock(@as(*const ITsSbResourcePluginStore, @ptrCast(self)), pContext); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITsSbResourcePluginStore_TestAndSetServerState(self: *const T, PoolName: ?BSTR, ServerFQDN: ?BSTR, NewState: TARGET_STATE, TestState: TARGET_STATE, pInitState: ?*TARGET_STATE) HRESULT { return @as(*const ITsSbResourcePluginStore.VTable, @ptrCast(self.vtable)).TestAndSetServerState(@as(*const ITsSbResourcePluginStore, @ptrCast(self)), PoolName, ServerFQDN, NewState, TestState, pInitState); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITsSbResourcePluginStore_SetServerWaitingToStart(self: *const T, PoolName: ?BSTR, serverName: ?BSTR) HRESULT { return @as(*const ITsSbResourcePluginStore.VTable, @ptrCast(self.vtable)).SetServerWaitingToStart(@as(*const ITsSbResourcePluginStore, @ptrCast(self)), PoolName, serverName); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITsSbResourcePluginStore_GetServerState(self: *const T, PoolName: ?BSTR, ServerFQDN: ?BSTR, pState: ?*TARGET_STATE) HRESULT { return @as(*const ITsSbResourcePluginStore.VTable, @ptrCast(self.vtable)).GetServerState(@as(*const ITsSbResourcePluginStore, @ptrCast(self)), PoolName, ServerFQDN, pState); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITsSbResourcePluginStore_SetServerDrainMode(self: *const T, ServerFQDN: ?BSTR, DrainMode: u32) HRESULT { return @as(*const ITsSbResourcePluginStore.VTable, @ptrCast(self.vtable)).SetServerDrainMode(@as(*const ITsSbResourcePluginStore, @ptrCast(self)), ServerFQDN, DrainMode); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windowsServer2012' const IID_ITsSbFilterPluginStore_Value = Guid.initString("85b44b0f-ed78-413f-9702-fa6d3b5ee755"); pub const IID_ITsSbFilterPluginStore = &IID_ITsSbFilterPluginStore_Value; pub const ITsSbFilterPluginStore = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, SaveProperties: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ITsSbFilterPluginStore, pPropertySet: ?*ITsSbPropertySet, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ITsSbFilterPluginStore, pPropertySet: ?*ITsSbPropertySet, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, EnumerateProperties: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ITsSbFilterPluginStore, ppPropertySet: ?*?*ITsSbPropertySet, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ITsSbFilterPluginStore, ppPropertySet: ?*?*ITsSbPropertySet, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, DeleteProperties: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ITsSbFilterPluginStore, propertyName: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ITsSbFilterPluginStore, propertyName: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITsSbFilterPluginStore_SaveProperties(self: *const T, pPropertySet: ?*ITsSbPropertySet) HRESULT { return @as(*const ITsSbFilterPluginStore.VTable, @ptrCast(self.vtable)).SaveProperties(@as(*const ITsSbFilterPluginStore, @ptrCast(self)), pPropertySet); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITsSbFilterPluginStore_EnumerateProperties(self: *const T, ppPropertySet: ?*?*ITsSbPropertySet) HRESULT { return @as(*const ITsSbFilterPluginStore.VTable, @ptrCast(self.vtable)).EnumerateProperties(@as(*const ITsSbFilterPluginStore, @ptrCast(self)), ppPropertySet); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITsSbFilterPluginStore_DeleteProperties(self: *const T, propertyName: ?BSTR) HRESULT { return @as(*const ITsSbFilterPluginStore.VTable, @ptrCast(self.vtable)).DeleteProperties(@as(*const ITsSbFilterPluginStore, @ptrCast(self)), propertyName); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windowsServer2012' const IID_ITsSbGlobalStore_Value = Guid.initString("9ab60f7b-bd72-4d9f-8a3a-a0ea5574e635"); pub const IID_ITsSbGlobalStore = &IID_ITsSbGlobalStore_Value; pub const ITsSbGlobalStore = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, QueryTarget: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ITsSbGlobalStore, ProviderName: ?BSTR, TargetName: ?BSTR, FarmName: ?BSTR, ppTarget: ?*?*ITsSbTarget, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ITsSbGlobalStore, ProviderName: ?BSTR, TargetName: ?BSTR, FarmName: ?BSTR, ppTarget: ?*?*ITsSbTarget, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, QuerySessionBySessionId: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ITsSbGlobalStore, ProviderName: ?BSTR, dwSessionId: u32, TargetName: ?BSTR, ppSession: ?*?*ITsSbSession, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ITsSbGlobalStore, ProviderName: ?BSTR, dwSessionId: u32, TargetName: ?BSTR, ppSession: ?*?*ITsSbSession, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, EnumerateFarms: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ITsSbGlobalStore, ProviderName: ?BSTR, pdwCount: ?*u32, pVal: ?*?*SAFEARRAY, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ITsSbGlobalStore, ProviderName: ?BSTR, pdwCount: ?*u32, pVal: ?*?*SAFEARRAY, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, EnumerateTargets: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ITsSbGlobalStore, ProviderName: ?BSTR, FarmName: ?BSTR, EnvName: ?BSTR, pdwCount: ?*u32, pVal: [*]?*?*ITsSbTarget, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ITsSbGlobalStore, ProviderName: ?BSTR, FarmName: ?BSTR, EnvName: ?BSTR, pdwCount: ?*u32, pVal: [*]?*?*ITsSbTarget, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, EnumerateEnvironmentsByProvider: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ITsSbGlobalStore, ProviderName: ?BSTR, pdwCount: ?*u32, ppVal: [*]?*?*ITsSbEnvironment, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ITsSbGlobalStore, ProviderName: ?BSTR, pdwCount: ?*u32, ppVal: [*]?*?*ITsSbEnvironment, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, EnumerateSessions: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ITsSbGlobalStore, ProviderName: ?BSTR, targetName: ?BSTR, userName: ?BSTR, userDomain: ?BSTR, poolName: ?BSTR, initialProgram: ?BSTR, pSessionState: ?*TSSESSION_STATE, pdwCount: ?*u32, ppVal: [*]?*?*ITsSbSession, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ITsSbGlobalStore, ProviderName: ?BSTR, targetName: ?BSTR, userName: ?BSTR, userDomain: ?BSTR, poolName: ?BSTR, initialProgram: ?BSTR, pSessionState: ?*TSSESSION_STATE, pdwCount: ?*u32, ppVal: [*]?*?*ITsSbSession, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetFarmProperty: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ITsSbGlobalStore, farmName: ?BSTR, propertyName: ?BSTR, pVarValue: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ITsSbGlobalStore, farmName: ?BSTR, propertyName: ?BSTR, pVarValue: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITsSbGlobalStore_QueryTarget(self: *const T, ProviderName: ?BSTR, TargetName: ?BSTR, FarmName: ?BSTR, ppTarget: ?*?*ITsSbTarget) HRESULT { return @as(*const ITsSbGlobalStore.VTable, @ptrCast(self.vtable)).QueryTarget(@as(*const ITsSbGlobalStore, @ptrCast(self)), ProviderName, TargetName, FarmName, ppTarget); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITsSbGlobalStore_QuerySessionBySessionId(self: *const T, ProviderName: ?BSTR, dwSessionId: u32, TargetName: ?BSTR, ppSession: ?*?*ITsSbSession) HRESULT { return @as(*const ITsSbGlobalStore.VTable, @ptrCast(self.vtable)).QuerySessionBySessionId(@as(*const ITsSbGlobalStore, @ptrCast(self)), ProviderName, dwSessionId, TargetName, ppSession); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITsSbGlobalStore_EnumerateFarms(self: *const T, ProviderName: ?BSTR, pdwCount: ?*u32, pVal: ?*?*SAFEARRAY) HRESULT { return @as(*const ITsSbGlobalStore.VTable, @ptrCast(self.vtable)).EnumerateFarms(@as(*const ITsSbGlobalStore, @ptrCast(self)), ProviderName, pdwCount, pVal); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITsSbGlobalStore_EnumerateTargets(self: *const T, ProviderName: ?BSTR, FarmName: ?BSTR, EnvName: ?BSTR, pdwCount: ?*u32, pVal: [*]?*?*ITsSbTarget) HRESULT { return @as(*const ITsSbGlobalStore.VTable, @ptrCast(self.vtable)).EnumerateTargets(@as(*const ITsSbGlobalStore, @ptrCast(self)), ProviderName, FarmName, EnvName, pdwCount, pVal); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITsSbGlobalStore_EnumerateEnvironmentsByProvider(self: *const T, ProviderName: ?BSTR, pdwCount: ?*u32, ppVal: [*]?*?*ITsSbEnvironment) HRESULT { return @as(*const ITsSbGlobalStore.VTable, @ptrCast(self.vtable)).EnumerateEnvironmentsByProvider(@as(*const ITsSbGlobalStore, @ptrCast(self)), ProviderName, pdwCount, ppVal); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITsSbGlobalStore_EnumerateSessions(self: *const T, ProviderName: ?BSTR, targetName: ?BSTR, userName: ?BSTR, userDomain: ?BSTR, poolName: ?BSTR, initialProgram: ?BSTR, pSessionState: ?*TSSESSION_STATE, pdwCount: ?*u32, ppVal: [*]?*?*ITsSbSession) HRESULT { return @as(*const ITsSbGlobalStore.VTable, @ptrCast(self.vtable)).EnumerateSessions(@as(*const ITsSbGlobalStore, @ptrCast(self)), ProviderName, targetName, userName, userDomain, poolName, initialProgram, pSessionState, pdwCount, ppVal); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITsSbGlobalStore_GetFarmProperty(self: *const T, farmName: ?BSTR, propertyName: ?BSTR, pVarValue: ?*VARIANT) HRESULT { return @as(*const ITsSbGlobalStore.VTable, @ptrCast(self.vtable)).GetFarmProperty(@as(*const ITsSbGlobalStore, @ptrCast(self)), farmName, propertyName, pVarValue); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windowsServer2012' const IID_ITsSbProvisioningPluginNotifySink_Value = Guid.initString("aca87a8e-818b-4581-a032-49c3dfb9c701"); pub const IID_ITsSbProvisioningPluginNotifySink = &IID_ITsSbProvisioningPluginNotifySink_Value; pub const ITsSbProvisioningPluginNotifySink = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, OnJobCreated: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ITsSbProvisioningPluginNotifySink, pVmNotifyInfo: ?*VM_NOTIFY_INFO, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ITsSbProvisioningPluginNotifySink, pVmNotifyInfo: ?*VM_NOTIFY_INFO, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, OnVirtualMachineStatusChanged: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ITsSbProvisioningPluginNotifySink, pVmNotifyEntry: ?*VM_NOTIFY_ENTRY, VmNotifyStatus: VM_NOTIFY_STATUS, ErrorCode: HRESULT, ErrorDescr: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ITsSbProvisioningPluginNotifySink, pVmNotifyEntry: ?*VM_NOTIFY_ENTRY, VmNotifyStatus: VM_NOTIFY_STATUS, ErrorCode: HRESULT, ErrorDescr: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, OnJobCompleted: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ITsSbProvisioningPluginNotifySink, ResultCode: HRESULT, ResultDescription: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ITsSbProvisioningPluginNotifySink, ResultCode: HRESULT, ResultDescription: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, OnJobCancelled: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ITsSbProvisioningPluginNotifySink, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ITsSbProvisioningPluginNotifySink, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, LockVirtualMachine: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ITsSbProvisioningPluginNotifySink, pVmNotifyEntry: ?*VM_NOTIFY_ENTRY, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ITsSbProvisioningPluginNotifySink, pVmNotifyEntry: ?*VM_NOTIFY_ENTRY, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, OnVirtualMachineHostStatusChanged: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ITsSbProvisioningPluginNotifySink, VmHost: ?BSTR, VmHostNotifyStatus: VM_HOST_NOTIFY_STATUS, ErrorCode: HRESULT, ErrorDescr: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ITsSbProvisioningPluginNotifySink, VmHost: ?BSTR, VmHostNotifyStatus: VM_HOST_NOTIFY_STATUS, ErrorCode: HRESULT, ErrorDescr: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITsSbProvisioningPluginNotifySink_OnJobCreated(self: *const T, pVmNotifyInfo: ?*VM_NOTIFY_INFO) HRESULT { return @as(*const ITsSbProvisioningPluginNotifySink.VTable, @ptrCast(self.vtable)).OnJobCreated(@as(*const ITsSbProvisioningPluginNotifySink, @ptrCast(self)), pVmNotifyInfo); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITsSbProvisioningPluginNotifySink_OnVirtualMachineStatusChanged(self: *const T, pVmNotifyEntry: ?*VM_NOTIFY_ENTRY, VmNotifyStatus: VM_NOTIFY_STATUS, ErrorCode: HRESULT, ErrorDescr: ?BSTR) HRESULT { return @as(*const ITsSbProvisioningPluginNotifySink.VTable, @ptrCast(self.vtable)).OnVirtualMachineStatusChanged(@as(*const ITsSbProvisioningPluginNotifySink, @ptrCast(self)), pVmNotifyEntry, VmNotifyStatus, ErrorCode, ErrorDescr); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITsSbProvisioningPluginNotifySink_OnJobCompleted(self: *const T, ResultCode: HRESULT, ResultDescription: ?BSTR) HRESULT { return @as(*const ITsSbProvisioningPluginNotifySink.VTable, @ptrCast(self.vtable)).OnJobCompleted(@as(*const ITsSbProvisioningPluginNotifySink, @ptrCast(self)), ResultCode, ResultDescription); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITsSbProvisioningPluginNotifySink_OnJobCancelled(self: *const T) HRESULT { return @as(*const ITsSbProvisioningPluginNotifySink.VTable, @ptrCast(self.vtable)).OnJobCancelled(@as(*const ITsSbProvisioningPluginNotifySink, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITsSbProvisioningPluginNotifySink_LockVirtualMachine(self: *const T, pVmNotifyEntry: ?*VM_NOTIFY_ENTRY) HRESULT { return @as(*const ITsSbProvisioningPluginNotifySink.VTable, @ptrCast(self.vtable)).LockVirtualMachine(@as(*const ITsSbProvisioningPluginNotifySink, @ptrCast(self)), pVmNotifyEntry); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITsSbProvisioningPluginNotifySink_OnVirtualMachineHostStatusChanged(self: *const T, VmHost: ?BSTR, VmHostNotifyStatus: VM_HOST_NOTIFY_STATUS, ErrorCode: HRESULT, ErrorDescr: ?BSTR) HRESULT { return @as(*const ITsSbProvisioningPluginNotifySink.VTable, @ptrCast(self.vtable)).OnVirtualMachineHostStatusChanged(@as(*const ITsSbProvisioningPluginNotifySink, @ptrCast(self)), VmHost, VmHostNotifyStatus, ErrorCode, ErrorDescr); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windowsServer2012' const IID_ITsSbProvisioning_Value = Guid.initString("2f6f0dbb-9e4f-462b-9c3f-fccc3dcb6232"); pub const IID_ITsSbProvisioning = &IID_ITsSbProvisioning_Value; pub const ITsSbProvisioning = extern struct { pub const VTable = extern struct { base: ITsSbPlugin.VTable, CreateVirtualMachines: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ITsSbProvisioning, JobXmlString: ?BSTR, JobGuid: ?BSTR, pSink: ?*ITsSbProvisioningPluginNotifySink, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ITsSbProvisioning, JobXmlString: ?BSTR, JobGuid: ?BSTR, pSink: ?*ITsSbProvisioningPluginNotifySink, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, PatchVirtualMachines: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ITsSbProvisioning, JobXmlString: ?BSTR, JobGuid: ?BSTR, pSink: ?*ITsSbProvisioningPluginNotifySink, pVMPatchInfo: ?*VM_PATCH_INFO, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ITsSbProvisioning, JobXmlString: ?BSTR, JobGuid: ?BSTR, pSink: ?*ITsSbProvisioningPluginNotifySink, pVMPatchInfo: ?*VM_PATCH_INFO, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, DeleteVirtualMachines: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ITsSbProvisioning, JobXmlString: ?BSTR, JobGuid: ?BSTR, pSink: ?*ITsSbProvisioningPluginNotifySink, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ITsSbProvisioning, JobXmlString: ?BSTR, JobGuid: ?BSTR, pSink: ?*ITsSbProvisioningPluginNotifySink, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, CancelJob: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ITsSbProvisioning, JobGuid: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ITsSbProvisioning, JobGuid: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace ITsSbPlugin.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITsSbProvisioning_CreateVirtualMachines(self: *const T, JobXmlString: ?BSTR, JobGuid: ?BSTR, pSink: ?*ITsSbProvisioningPluginNotifySink) HRESULT { return @as(*const ITsSbProvisioning.VTable, @ptrCast(self.vtable)).CreateVirtualMachines(@as(*const ITsSbProvisioning, @ptrCast(self)), JobXmlString, JobGuid, pSink); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITsSbProvisioning_PatchVirtualMachines(self: *const T, JobXmlString: ?BSTR, JobGuid: ?BSTR, pSink: ?*ITsSbProvisioningPluginNotifySink, pVMPatchInfo: ?*VM_PATCH_INFO) HRESULT { return @as(*const ITsSbProvisioning.VTable, @ptrCast(self.vtable)).PatchVirtualMachines(@as(*const ITsSbProvisioning, @ptrCast(self)), JobXmlString, JobGuid, pSink, pVMPatchInfo); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITsSbProvisioning_DeleteVirtualMachines(self: *const T, JobXmlString: ?BSTR, JobGuid: ?BSTR, pSink: ?*ITsSbProvisioningPluginNotifySink) HRESULT { return @as(*const ITsSbProvisioning.VTable, @ptrCast(self.vtable)).DeleteVirtualMachines(@as(*const ITsSbProvisioning, @ptrCast(self)), JobXmlString, JobGuid, pSink); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITsSbProvisioning_CancelJob(self: *const T, JobGuid: ?BSTR) HRESULT { return @as(*const ITsSbProvisioning.VTable, @ptrCast(self.vtable)).CancelJob(@as(*const ITsSbProvisioning, @ptrCast(self)), JobGuid); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windowsServer2016' const IID_ITsSbGenericNotifySink_Value = Guid.initString("4c4c8c4f-300b-46ad-9164-8468a7e7568c"); pub const IID_ITsSbGenericNotifySink = &IID_ITsSbGenericNotifySink_Value; pub const ITsSbGenericNotifySink = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, OnCompleted: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ITsSbGenericNotifySink, Status: HRESULT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ITsSbGenericNotifySink, Status: HRESULT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetWaitTimeout: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ITsSbGenericNotifySink, pftTimeout: ?*FILETIME, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ITsSbGenericNotifySink, pftTimeout: ?*FILETIME, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITsSbGenericNotifySink_OnCompleted(self: *const T, Status: HRESULT) HRESULT { return @as(*const ITsSbGenericNotifySink.VTable, @ptrCast(self.vtable)).OnCompleted(@as(*const ITsSbGenericNotifySink, @ptrCast(self)), Status); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITsSbGenericNotifySink_GetWaitTimeout(self: *const T, pftTimeout: ?*FILETIME) HRESULT { return @as(*const ITsSbGenericNotifySink.VTable, @ptrCast(self.vtable)).GetWaitTimeout(@as(*const ITsSbGenericNotifySink, @ptrCast(self)), pftTimeout); } }; } pub usingnamespace MethodMixin(@This()); }; pub const pluginResource = extern struct { alias: [256]u16, name: [256]u16, resourceFileContents: ?PWSTR, fileExtension: [256]u16, resourcePluginType: [256]u16, isDiscoverable: u8, resourceType: i32, pceIconSize: u32, iconContents: ?*u8, pcePluginBlobSize: u32, blobContents: ?*u8, }; // TODO: this type is limited to platform 'windowsServer2008' const IID_ItsPubPlugin_Value = Guid.initString("70c04b05-f347-412b-822f-36c99c54ca45"); pub const IID_ItsPubPlugin = &IID_ItsPubPlugin_Value; pub const ItsPubPlugin = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, GetResourceList: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ItsPubPlugin, userID: ?[*:0]const u16, pceAppListSize: ?*i32, resourceList: ?*?*pluginResource, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ItsPubPlugin, userID: ?[*:0]const u16, pceAppListSize: ?*i32, resourceList: ?*?*pluginResource, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetResource: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ItsPubPlugin, alias: ?[*:0]const u16, flags: i32, resource: ?*pluginResource, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ItsPubPlugin, alias: ?[*:0]const u16, flags: i32, resource: ?*pluginResource, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetCacheLastUpdateTime: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ItsPubPlugin, lastUpdateTime: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ItsPubPlugin, lastUpdateTime: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_pluginName: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ItsPubPlugin, pVal: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ItsPubPlugin, pVal: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_pluginVersion: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ItsPubPlugin, pVal: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ItsPubPlugin, pVal: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, ResolveResource: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ItsPubPlugin, resourceType: ?*u32, resourceLocation: ?PWSTR, endPointName: ?PWSTR, userID: ?PWSTR, alias: ?PWSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ItsPubPlugin, resourceType: ?*u32, resourceLocation: ?PWSTR, endPointName: ?PWSTR, userID: ?PWSTR, alias: ?PWSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ItsPubPlugin_GetResourceList(self: *const T, userID: ?[*:0]const u16, pceAppListSize: ?*i32, resourceList: ?*?*pluginResource) HRESULT { return @as(*const ItsPubPlugin.VTable, @ptrCast(self.vtable)).GetResourceList(@as(*const ItsPubPlugin, @ptrCast(self)), userID, pceAppListSize, resourceList); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ItsPubPlugin_GetResource(self: *const T, alias: ?[*:0]const u16, flags: i32, resource: ?*pluginResource) HRESULT { return @as(*const ItsPubPlugin.VTable, @ptrCast(self.vtable)).GetResource(@as(*const ItsPubPlugin, @ptrCast(self)), alias, flags, resource); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ItsPubPlugin_GetCacheLastUpdateTime(self: *const T, lastUpdateTime: ?*u64) HRESULT { return @as(*const ItsPubPlugin.VTable, @ptrCast(self.vtable)).GetCacheLastUpdateTime(@as(*const ItsPubPlugin, @ptrCast(self)), lastUpdateTime); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ItsPubPlugin_get_pluginName(self: *const T, pVal: ?*?BSTR) HRESULT { return @as(*const ItsPubPlugin.VTable, @ptrCast(self.vtable)).get_pluginName(@as(*const ItsPubPlugin, @ptrCast(self)), pVal); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ItsPubPlugin_get_pluginVersion(self: *const T, pVal: ?*?BSTR) HRESULT { return @as(*const ItsPubPlugin.VTable, @ptrCast(self.vtable)).get_pluginVersion(@as(*const ItsPubPlugin, @ptrCast(self)), pVal); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ItsPubPlugin_ResolveResource(self: *const T, resourceType: ?*u32, resourceLocation: ?PWSTR, endPointName: ?PWSTR, userID: ?PWSTR, alias: ?PWSTR) HRESULT { return @as(*const ItsPubPlugin.VTable, @ptrCast(self.vtable)).ResolveResource(@as(*const ItsPubPlugin, @ptrCast(self)), resourceType, resourceLocation, endPointName, userID, alias); } }; } pub usingnamespace MethodMixin(@This()); }; pub const pluginResource2FileAssociation = extern struct { extName: [256]u16, primaryHandler: u8, pceIconSize: u32, iconContents: ?*u8, }; pub const pluginResource2 = extern struct { resourceV1: pluginResource, pceFileAssocListSize: u32, fileAssocList: ?*pluginResource2FileAssociation, securityDescriptor: ?PWSTR, pceFolderListSize: u32, folderList: ?*?*u16, }; pub const TSPUB_PLUGIN_PD_RESOLUTION_TYPE = enum(i32) { OR_CREATE = 0, EXISTING = 1, }; pub const TSPUB_PLUGIN_PD_QUERY_OR_CREATE = TSPUB_PLUGIN_PD_RESOLUTION_TYPE.OR_CREATE; pub const TSPUB_PLUGIN_PD_QUERY_EXISTING = TSPUB_PLUGIN_PD_RESOLUTION_TYPE.EXISTING; pub const TSPUB_PLUGIN_PD_ASSIGNMENT_TYPE = enum(i32) { NEW = 0, EXISTING = 1, }; pub const TSPUB_PLUGIN_PD_ASSIGNMENT_NEW = TSPUB_PLUGIN_PD_ASSIGNMENT_TYPE.NEW; pub const TSPUB_PLUGIN_PD_ASSIGNMENT_EXISTING = TSPUB_PLUGIN_PD_ASSIGNMENT_TYPE.EXISTING; // TODO: this type is limited to platform 'windows8.0' const IID_ItsPubPlugin2_Value = Guid.initString("fa4ce418-aad7-4ec6-bad1-0a321ba465d5"); pub const IID_ItsPubPlugin2 = &IID_ItsPubPlugin2_Value; pub const ItsPubPlugin2 = extern struct { pub const VTable = extern struct { base: ItsPubPlugin.VTable, GetResource2List: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ItsPubPlugin2, userID: ?[*:0]const u16, pceAppListSize: ?*i32, resourceList: ?*?*pluginResource2, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ItsPubPlugin2, userID: ?[*:0]const u16, pceAppListSize: ?*i32, resourceList: ?*?*pluginResource2, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetResource2: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ItsPubPlugin2, alias: ?[*:0]const u16, flags: i32, resource: ?*pluginResource2, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ItsPubPlugin2, alias: ?[*:0]const u16, flags: i32, resource: ?*pluginResource2, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, ResolvePersonalDesktop: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ItsPubPlugin2, userId: ?[*:0]const u16, poolId: ?[*:0]const u16, ePdResolutionType: TSPUB_PLUGIN_PD_RESOLUTION_TYPE, pPdAssignmentType: ?*TSPUB_PLUGIN_PD_ASSIGNMENT_TYPE, endPointName: ?PWSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ItsPubPlugin2, userId: ?[*:0]const u16, poolId: ?[*:0]const u16, ePdResolutionType: TSPUB_PLUGIN_PD_RESOLUTION_TYPE, pPdAssignmentType: ?*TSPUB_PLUGIN_PD_ASSIGNMENT_TYPE, endPointName: ?PWSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, DeletePersonalDesktopAssignment: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ItsPubPlugin2, userId: ?[*:0]const u16, poolId: ?[*:0]const u16, endpointName: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ItsPubPlugin2, userId: ?[*:0]const u16, poolId: ?[*:0]const u16, endpointName: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace ItsPubPlugin.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ItsPubPlugin2_GetResource2List(self: *const T, userID: ?[*:0]const u16, pceAppListSize: ?*i32, resourceList: ?*?*pluginResource2) HRESULT { return @as(*const ItsPubPlugin2.VTable, @ptrCast(self.vtable)).GetResource2List(@as(*const ItsPubPlugin2, @ptrCast(self)), userID, pceAppListSize, resourceList); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ItsPubPlugin2_GetResource2(self: *const T, alias: ?[*:0]const u16, flags: i32, resource: ?*pluginResource2) HRESULT { return @as(*const ItsPubPlugin2.VTable, @ptrCast(self.vtable)).GetResource2(@as(*const ItsPubPlugin2, @ptrCast(self)), alias, flags, resource); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ItsPubPlugin2_ResolvePersonalDesktop(self: *const T, userId: ?[*:0]const u16, poolId: ?[*:0]const u16, ePdResolutionType: TSPUB_PLUGIN_PD_RESOLUTION_TYPE, pPdAssignmentType: ?*TSPUB_PLUGIN_PD_ASSIGNMENT_TYPE, endPointName: ?PWSTR) HRESULT { return @as(*const ItsPubPlugin2.VTable, @ptrCast(self.vtable)).ResolvePersonalDesktop(@as(*const ItsPubPlugin2, @ptrCast(self)), userId, poolId, ePdResolutionType, pPdAssignmentType, endPointName); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ItsPubPlugin2_DeletePersonalDesktopAssignment(self: *const T, userId: ?[*:0]const u16, poolId: ?[*:0]const u16, endpointName: ?[*:0]const u16) HRESULT { return @as(*const ItsPubPlugin2.VTable, @ptrCast(self.vtable)).DeletePersonalDesktopAssignment(@as(*const ItsPubPlugin2, @ptrCast(self)), userId, poolId, endpointName); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows6.1' const IID_IWorkspaceResTypeRegistry_Value = Guid.initString("1d428c79-6e2e-4351-a361-c0401a03a0ba"); pub const IID_IWorkspaceResTypeRegistry = &IID_IWorkspaceResTypeRegistry_Value; pub const IWorkspaceResTypeRegistry = extern struct { pub const VTable = extern struct { base: IDispatch.VTable, AddResourceType: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IWorkspaceResTypeRegistry, fMachineWide: i16, bstrFileExtension: ?BSTR, bstrLauncher: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IWorkspaceResTypeRegistry, fMachineWide: i16, bstrFileExtension: ?BSTR, bstrLauncher: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, DeleteResourceType: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IWorkspaceResTypeRegistry, fMachineWide: i16, bstrFileExtension: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IWorkspaceResTypeRegistry, fMachineWide: i16, bstrFileExtension: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetRegisteredFileExtensions: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IWorkspaceResTypeRegistry, fMachineWide: i16, psaFileExtensions: ?*?*SAFEARRAY, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IWorkspaceResTypeRegistry, fMachineWide: i16, psaFileExtensions: ?*?*SAFEARRAY, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetResourceTypeInfo: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IWorkspaceResTypeRegistry, fMachineWide: i16, bstrFileExtension: ?BSTR, pbstrLauncher: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IWorkspaceResTypeRegistry, fMachineWide: i16, bstrFileExtension: ?BSTR, pbstrLauncher: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, ModifyResourceType: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IWorkspaceResTypeRegistry, fMachineWide: i16, bstrFileExtension: ?BSTR, bstrLauncher: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IWorkspaceResTypeRegistry, fMachineWide: i16, bstrFileExtension: ?BSTR, bstrLauncher: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IDispatch.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWorkspaceResTypeRegistry_AddResourceType(self: *const T, fMachineWide: i16, bstrFileExtension: ?BSTR, bstrLauncher: ?BSTR) HRESULT { return @as(*const IWorkspaceResTypeRegistry.VTable, @ptrCast(self.vtable)).AddResourceType(@as(*const IWorkspaceResTypeRegistry, @ptrCast(self)), fMachineWide, bstrFileExtension, bstrLauncher); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWorkspaceResTypeRegistry_DeleteResourceType(self: *const T, fMachineWide: i16, bstrFileExtension: ?BSTR) HRESULT { return @as(*const IWorkspaceResTypeRegistry.VTable, @ptrCast(self.vtable)).DeleteResourceType(@as(*const IWorkspaceResTypeRegistry, @ptrCast(self)), fMachineWide, bstrFileExtension); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWorkspaceResTypeRegistry_GetRegisteredFileExtensions(self: *const T, fMachineWide: i16, psaFileExtensions: ?*?*SAFEARRAY) HRESULT { return @as(*const IWorkspaceResTypeRegistry.VTable, @ptrCast(self.vtable)).GetRegisteredFileExtensions(@as(*const IWorkspaceResTypeRegistry, @ptrCast(self)), fMachineWide, psaFileExtensions); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWorkspaceResTypeRegistry_GetResourceTypeInfo(self: *const T, fMachineWide: i16, bstrFileExtension: ?BSTR, pbstrLauncher: ?*?BSTR) HRESULT { return @as(*const IWorkspaceResTypeRegistry.VTable, @ptrCast(self.vtable)).GetResourceTypeInfo(@as(*const IWorkspaceResTypeRegistry, @ptrCast(self)), fMachineWide, bstrFileExtension, pbstrLauncher); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWorkspaceResTypeRegistry_ModifyResourceType(self: *const T, fMachineWide: i16, bstrFileExtension: ?BSTR, bstrLauncher: ?BSTR) HRESULT { return @as(*const IWorkspaceResTypeRegistry.VTable, @ptrCast(self.vtable)).ModifyResourceType(@as(*const IWorkspaceResTypeRegistry, @ptrCast(self)), fMachineWide, bstrFileExtension, bstrLauncher); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows6.0.6000' const IID_IWTSPlugin_Value = Guid.initString("a1230201-1439-4e62-a414-190d0ac3d40e"); pub const IID_IWTSPlugin = &IID_IWTSPlugin_Value; pub const IWTSPlugin = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, Initialize: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IWTSPlugin, pChannelMgr: ?*IWTSVirtualChannelManager, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IWTSPlugin, pChannelMgr: ?*IWTSVirtualChannelManager, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Connected: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IWTSPlugin, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IWTSPlugin, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Disconnected: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IWTSPlugin, dwDisconnectCode: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IWTSPlugin, dwDisconnectCode: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Terminated: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IWTSPlugin, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IWTSPlugin, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWTSPlugin_Initialize(self: *const T, pChannelMgr: ?*IWTSVirtualChannelManager) HRESULT { return @as(*const IWTSPlugin.VTable, @ptrCast(self.vtable)).Initialize(@as(*const IWTSPlugin, @ptrCast(self)), pChannelMgr); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWTSPlugin_Connected(self: *const T) HRESULT { return @as(*const IWTSPlugin.VTable, @ptrCast(self.vtable)).Connected(@as(*const IWTSPlugin, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWTSPlugin_Disconnected(self: *const T, dwDisconnectCode: u32) HRESULT { return @as(*const IWTSPlugin.VTable, @ptrCast(self.vtable)).Disconnected(@as(*const IWTSPlugin, @ptrCast(self)), dwDisconnectCode); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWTSPlugin_Terminated(self: *const T) HRESULT { return @as(*const IWTSPlugin.VTable, @ptrCast(self.vtable)).Terminated(@as(*const IWTSPlugin, @ptrCast(self))); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows6.0.6000' const IID_IWTSListener_Value = Guid.initString("a1230206-9a39-4d58-8674-cdb4dff4e73b"); pub const IID_IWTSListener = &IID_IWTSListener_Value; pub const IWTSListener = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, GetConfiguration: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IWTSListener, ppPropertyBag: ?*?*IPropertyBag, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IWTSListener, ppPropertyBag: ?*?*IPropertyBag, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWTSListener_GetConfiguration(self: *const T, ppPropertyBag: ?*?*IPropertyBag) HRESULT { return @as(*const IWTSListener.VTable, @ptrCast(self.vtable)).GetConfiguration(@as(*const IWTSListener, @ptrCast(self)), ppPropertyBag); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows6.0.6000' const IID_IWTSListenerCallback_Value = Guid.initString("a1230203-d6a7-11d8-b9fd-000bdbd1f198"); pub const IID_IWTSListenerCallback = &IID_IWTSListenerCallback_Value; pub const IWTSListenerCallback = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, OnNewChannelConnection: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IWTSListenerCallback, pChannel: ?*IWTSVirtualChannel, data: ?BSTR, pbAccept: ?*BOOL, ppCallback: ?*?*IWTSVirtualChannelCallback, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IWTSListenerCallback, pChannel: ?*IWTSVirtualChannel, data: ?BSTR, pbAccept: ?*BOOL, ppCallback: ?*?*IWTSVirtualChannelCallback, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWTSListenerCallback_OnNewChannelConnection(self: *const T, pChannel: ?*IWTSVirtualChannel, data: ?BSTR, pbAccept: ?*BOOL, ppCallback: ?*?*IWTSVirtualChannelCallback) HRESULT { return @as(*const IWTSListenerCallback.VTable, @ptrCast(self.vtable)).OnNewChannelConnection(@as(*const IWTSListenerCallback, @ptrCast(self)), pChannel, data, pbAccept, ppCallback); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows6.0.6000' const IID_IWTSVirtualChannelCallback_Value = Guid.initString("a1230204-d6a7-11d8-b9fd-000bdbd1f198"); pub const IID_IWTSVirtualChannelCallback = &IID_IWTSVirtualChannelCallback_Value; pub const IWTSVirtualChannelCallback = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, OnDataReceived: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IWTSVirtualChannelCallback, cbSize: u32, pBuffer: [*:0]u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IWTSVirtualChannelCallback, cbSize: u32, pBuffer: [*:0]u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, OnClose: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IWTSVirtualChannelCallback, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IWTSVirtualChannelCallback, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWTSVirtualChannelCallback_OnDataReceived(self: *const T, cbSize: u32, pBuffer: [*:0]u8) HRESULT { return @as(*const IWTSVirtualChannelCallback.VTable, @ptrCast(self.vtable)).OnDataReceived(@as(*const IWTSVirtualChannelCallback, @ptrCast(self)), cbSize, pBuffer); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWTSVirtualChannelCallback_OnClose(self: *const T) HRESULT { return @as(*const IWTSVirtualChannelCallback.VTable, @ptrCast(self.vtable)).OnClose(@as(*const IWTSVirtualChannelCallback, @ptrCast(self))); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows6.0.6000' const IID_IWTSVirtualChannelManager_Value = Guid.initString("a1230205-d6a7-11d8-b9fd-000bdbd1f198"); pub const IID_IWTSVirtualChannelManager = &IID_IWTSVirtualChannelManager_Value; pub const IWTSVirtualChannelManager = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, CreateListener: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IWTSVirtualChannelManager, pszChannelName: ?*const u8, uFlags: u32, pListenerCallback: ?*IWTSListenerCallback, ppListener: ?*?*IWTSListener, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IWTSVirtualChannelManager, pszChannelName: ?*const u8, uFlags: u32, pListenerCallback: ?*IWTSListenerCallback, ppListener: ?*?*IWTSListener, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWTSVirtualChannelManager_CreateListener(self: *const T, pszChannelName: ?*const u8, uFlags: u32, pListenerCallback: ?*IWTSListenerCallback, ppListener: ?*?*IWTSListener) HRESULT { return @as(*const IWTSVirtualChannelManager.VTable, @ptrCast(self.vtable)).CreateListener(@as(*const IWTSVirtualChannelManager, @ptrCast(self)), pszChannelName, uFlags, pListenerCallback, ppListener); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows6.0.6000' const IID_IWTSVirtualChannel_Value = Guid.initString("a1230207-d6a7-11d8-b9fd-000bdbd1f198"); pub const IID_IWTSVirtualChannel = &IID_IWTSVirtualChannel_Value; pub const IWTSVirtualChannel = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, Write: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IWTSVirtualChannel, cbSize: u32, pBuffer: [*:0]u8, pReserved: ?*IUnknown, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IWTSVirtualChannel, cbSize: u32, pBuffer: [*:0]u8, pReserved: ?*IUnknown, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Close: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IWTSVirtualChannel, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IWTSVirtualChannel, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWTSVirtualChannel_Write(self: *const T, cbSize: u32, pBuffer: [*:0]u8, pReserved: ?*IUnknown) HRESULT { return @as(*const IWTSVirtualChannel.VTable, @ptrCast(self.vtable)).Write(@as(*const IWTSVirtualChannel, @ptrCast(self)), cbSize, pBuffer, pReserved); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWTSVirtualChannel_Close(self: *const T) HRESULT { return @as(*const IWTSVirtualChannel.VTable, @ptrCast(self.vtable)).Close(@as(*const IWTSVirtualChannel, @ptrCast(self))); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows8.0' const IID_IWTSPluginServiceProvider_Value = Guid.initString("d3e07363-087c-476c-86a7-dbb15f46ddb4"); pub const IID_IWTSPluginServiceProvider = &IID_IWTSPluginServiceProvider_Value; pub const IWTSPluginServiceProvider = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, GetService: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IWTSPluginServiceProvider, ServiceId: Guid, ppunkObject: ?*?*IUnknown, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IWTSPluginServiceProvider, ServiceId: Guid, ppunkObject: ?*?*IUnknown, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWTSPluginServiceProvider_GetService(self: *const T, ServiceId: Guid, ppunkObject: ?*?*IUnknown) HRESULT { return @as(*const IWTSPluginServiceProvider.VTable, @ptrCast(self.vtable)).GetService(@as(*const IWTSPluginServiceProvider, @ptrCast(self)), ServiceId, ppunkObject); } }; } pub usingnamespace MethodMixin(@This()); }; pub const BITMAP_RENDERER_STATISTICS = extern struct { dwFramesDelivered: u32, dwFramesDropped: u32, }; // TODO: this type is limited to platform 'windows8.0' const IID_IWTSBitmapRenderer_Value = Guid.initString("5b7acc97-f3c9-46f7-8c5b-fa685d3441b1"); pub const IID_IWTSBitmapRenderer = &IID_IWTSBitmapRenderer_Value; pub const IWTSBitmapRenderer = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, Render: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IWTSBitmapRenderer, imageFormat: Guid, dwWidth: u32, dwHeight: u32, cbStride: i32, cbImageBuffer: u32, pImageBuffer: [*:0]u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IWTSBitmapRenderer, imageFormat: Guid, dwWidth: u32, dwHeight: u32, cbStride: i32, cbImageBuffer: u32, pImageBuffer: [*:0]u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetRendererStatistics: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IWTSBitmapRenderer, pStatistics: ?*BITMAP_RENDERER_STATISTICS, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IWTSBitmapRenderer, pStatistics: ?*BITMAP_RENDERER_STATISTICS, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, RemoveMapping: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IWTSBitmapRenderer, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IWTSBitmapRenderer, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWTSBitmapRenderer_Render(self: *const T, imageFormat: Guid, dwWidth: u32, dwHeight: u32, cbStride: i32, cbImageBuffer: u32, pImageBuffer: [*:0]u8) HRESULT { return @as(*const IWTSBitmapRenderer.VTable, @ptrCast(self.vtable)).Render(@as(*const IWTSBitmapRenderer, @ptrCast(self)), imageFormat, dwWidth, dwHeight, cbStride, cbImageBuffer, pImageBuffer); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWTSBitmapRenderer_GetRendererStatistics(self: *const T, pStatistics: ?*BITMAP_RENDERER_STATISTICS) HRESULT { return @as(*const IWTSBitmapRenderer.VTable, @ptrCast(self.vtable)).GetRendererStatistics(@as(*const IWTSBitmapRenderer, @ptrCast(self)), pStatistics); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWTSBitmapRenderer_RemoveMapping(self: *const T) HRESULT { return @as(*const IWTSBitmapRenderer.VTable, @ptrCast(self.vtable)).RemoveMapping(@as(*const IWTSBitmapRenderer, @ptrCast(self))); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows8.0' const IID_IWTSBitmapRendererCallback_Value = Guid.initString("d782928e-fe4e-4e77-ae90-9cd0b3e3b353"); pub const IID_IWTSBitmapRendererCallback = &IID_IWTSBitmapRendererCallback_Value; pub const IWTSBitmapRendererCallback = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, OnTargetSizeChanged: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IWTSBitmapRendererCallback, rcNewSize: RECT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IWTSBitmapRendererCallback, rcNewSize: RECT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWTSBitmapRendererCallback_OnTargetSizeChanged(self: *const T, rcNewSize: RECT) HRESULT { return @as(*const IWTSBitmapRendererCallback.VTable, @ptrCast(self.vtable)).OnTargetSizeChanged(@as(*const IWTSBitmapRendererCallback, @ptrCast(self)), rcNewSize); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows8.0' const IID_IWTSBitmapRenderService_Value = Guid.initString("ea326091-05fe-40c1-b49c-3d2ef4626a0e"); pub const IID_IWTSBitmapRenderService = &IID_IWTSBitmapRenderService_Value; pub const IWTSBitmapRenderService = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, GetMappedRenderer: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IWTSBitmapRenderService, mappingId: u64, pMappedRendererCallback: ?*IWTSBitmapRendererCallback, ppMappedRenderer: ?*?*IWTSBitmapRenderer, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IWTSBitmapRenderService, mappingId: u64, pMappedRendererCallback: ?*IWTSBitmapRendererCallback, ppMappedRenderer: ?*?*IWTSBitmapRenderer, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWTSBitmapRenderService_GetMappedRenderer(self: *const T, mappingId: u64, pMappedRendererCallback: ?*IWTSBitmapRendererCallback, ppMappedRenderer: ?*?*IWTSBitmapRenderer) HRESULT { return @as(*const IWTSBitmapRenderService.VTable, @ptrCast(self.vtable)).GetMappedRenderer(@as(*const IWTSBitmapRenderService, @ptrCast(self)), mappingId, pMappedRendererCallback, ppMappedRenderer); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows8.0' const IID_IWRdsGraphicsChannelEvents_Value = Guid.initString("67f2368c-d674-4fae-66a5-d20628a640d2"); pub const IID_IWRdsGraphicsChannelEvents = &IID_IWRdsGraphicsChannelEvents_Value; pub const IWRdsGraphicsChannelEvents = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, OnDataReceived: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IWRdsGraphicsChannelEvents, cbSize: u32, pBuffer: ?*u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IWRdsGraphicsChannelEvents, cbSize: u32, pBuffer: ?*u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, OnClose: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IWRdsGraphicsChannelEvents, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IWRdsGraphicsChannelEvents, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, OnChannelOpened: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IWRdsGraphicsChannelEvents, OpenResult: HRESULT, pOpenContext: ?*IUnknown, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IWRdsGraphicsChannelEvents, OpenResult: HRESULT, pOpenContext: ?*IUnknown, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, OnDataSent: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IWRdsGraphicsChannelEvents, pWriteContext: ?*IUnknown, bCancelled: BOOL, pBuffer: ?*u8, cbBuffer: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IWRdsGraphicsChannelEvents, pWriteContext: ?*IUnknown, bCancelled: BOOL, pBuffer: ?*u8, cbBuffer: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, OnMetricsUpdate: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IWRdsGraphicsChannelEvents, bandwidth: u32, RTT: u32, lastSentByteIndex: u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IWRdsGraphicsChannelEvents, bandwidth: u32, RTT: u32, lastSentByteIndex: u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWRdsGraphicsChannelEvents_OnDataReceived(self: *const T, cbSize: u32, pBuffer: ?*u8) HRESULT { return @as(*const IWRdsGraphicsChannelEvents.VTable, @ptrCast(self.vtable)).OnDataReceived(@as(*const IWRdsGraphicsChannelEvents, @ptrCast(self)), cbSize, pBuffer); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWRdsGraphicsChannelEvents_OnClose(self: *const T) HRESULT { return @as(*const IWRdsGraphicsChannelEvents.VTable, @ptrCast(self.vtable)).OnClose(@as(*const IWRdsGraphicsChannelEvents, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWRdsGraphicsChannelEvents_OnChannelOpened(self: *const T, OpenResult: HRESULT, pOpenContext: ?*IUnknown) HRESULT { return @as(*const IWRdsGraphicsChannelEvents.VTable, @ptrCast(self.vtable)).OnChannelOpened(@as(*const IWRdsGraphicsChannelEvents, @ptrCast(self)), OpenResult, pOpenContext); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWRdsGraphicsChannelEvents_OnDataSent(self: *const T, pWriteContext: ?*IUnknown, bCancelled: BOOL, pBuffer: ?*u8, cbBuffer: u32) HRESULT { return @as(*const IWRdsGraphicsChannelEvents.VTable, @ptrCast(self.vtable)).OnDataSent(@as(*const IWRdsGraphicsChannelEvents, @ptrCast(self)), pWriteContext, bCancelled, pBuffer, cbBuffer); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWRdsGraphicsChannelEvents_OnMetricsUpdate(self: *const T, bandwidth: u32, RTT: u32, lastSentByteIndex: u64) HRESULT { return @as(*const IWRdsGraphicsChannelEvents.VTable, @ptrCast(self.vtable)).OnMetricsUpdate(@as(*const IWRdsGraphicsChannelEvents, @ptrCast(self)), bandwidth, RTT, lastSentByteIndex); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows8.0' const IID_IWRdsGraphicsChannel_Value = Guid.initString("684b7a0b-edff-43ad-d5a2-4a8d5388f401"); pub const IID_IWRdsGraphicsChannel = &IID_IWRdsGraphicsChannel_Value; pub const IWRdsGraphicsChannel = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, Write: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IWRdsGraphicsChannel, cbSize: u32, pBuffer: ?*u8, pContext: ?*IUnknown, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IWRdsGraphicsChannel, cbSize: u32, pBuffer: ?*u8, pContext: ?*IUnknown, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Close: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IWRdsGraphicsChannel, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IWRdsGraphicsChannel, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Open: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IWRdsGraphicsChannel, pChannelEvents: ?*IWRdsGraphicsChannelEvents, pOpenContext: ?*IUnknown, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IWRdsGraphicsChannel, pChannelEvents: ?*IWRdsGraphicsChannelEvents, pOpenContext: ?*IUnknown, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWRdsGraphicsChannel_Write(self: *const T, cbSize: u32, pBuffer: ?*u8, pContext: ?*IUnknown) HRESULT { return @as(*const IWRdsGraphicsChannel.VTable, @ptrCast(self.vtable)).Write(@as(*const IWRdsGraphicsChannel, @ptrCast(self)), cbSize, pBuffer, pContext); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWRdsGraphicsChannel_Close(self: *const T) HRESULT { return @as(*const IWRdsGraphicsChannel.VTable, @ptrCast(self.vtable)).Close(@as(*const IWRdsGraphicsChannel, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWRdsGraphicsChannel_Open(self: *const T, pChannelEvents: ?*IWRdsGraphicsChannelEvents, pOpenContext: ?*IUnknown) HRESULT { return @as(*const IWRdsGraphicsChannel.VTable, @ptrCast(self.vtable)).Open(@as(*const IWRdsGraphicsChannel, @ptrCast(self)), pChannelEvents, pOpenContext); } }; } pub usingnamespace MethodMixin(@This()); }; pub const WRdsGraphicsChannelType = enum(i32) { GuaranteedDelivery = 0, BestEffortDelivery = 1, }; pub const WRdsGraphicsChannelType_GuaranteedDelivery = WRdsGraphicsChannelType.GuaranteedDelivery; pub const WRdsGraphicsChannelType_BestEffortDelivery = WRdsGraphicsChannelType.BestEffortDelivery; // TODO: this type is limited to platform 'windows8.0' const IID_IWRdsGraphicsChannelManager_Value = Guid.initString("0fd57159-e83e-476a-a8b9-4a7976e71e18"); pub const IID_IWRdsGraphicsChannelManager = &IID_IWRdsGraphicsChannelManager_Value; pub const IWRdsGraphicsChannelManager = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, CreateChannel: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IWRdsGraphicsChannelManager, pszChannelName: ?*const u8, channelType: WRdsGraphicsChannelType, ppVirtualChannel: ?*?*IWRdsGraphicsChannel, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IWRdsGraphicsChannelManager, pszChannelName: ?*const u8, channelType: WRdsGraphicsChannelType, ppVirtualChannel: ?*?*IWRdsGraphicsChannel, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWRdsGraphicsChannelManager_CreateChannel(self: *const T, pszChannelName: ?*const u8, channelType: WRdsGraphicsChannelType, ppVirtualChannel: ?*?*IWRdsGraphicsChannel) HRESULT { return @as(*const IWRdsGraphicsChannelManager.VTable, @ptrCast(self.vtable)).CreateChannel(@as(*const IWRdsGraphicsChannelManager, @ptrCast(self)), pszChannelName, channelType, ppVirtualChannel); } }; } pub usingnamespace MethodMixin(@This()); }; pub const RFX_GFX_RECT = extern struct { left: i32 align(1), top: i32 align(1), right: i32 align(1), bottom: i32 align(1), }; pub const RFX_GFX_MSG_HEADER = extern struct { uMSGType: u16 align(1), cbSize: u16 align(1), }; pub const RFX_GFX_MONITOR_INFO = extern struct { left: i32 align(1), top: i32 align(1), right: i32 align(1), bottom: i32 align(1), physicalWidth: u32 align(1), physicalHeight: u32 align(1), orientation: u32 align(1), primary: BOOL align(1), }; pub const RFX_GFX_MSG_CLIENT_DESKTOP_INFO_REQUEST = extern struct { channelHdr: RFX_GFX_MSG_HEADER, }; pub const RFX_GFX_MSG_CLIENT_DESKTOP_INFO_RESPONSE = extern struct { channelHdr: RFX_GFX_MSG_HEADER align(1), reserved: u32 align(1), monitorCount: u32 align(1), MonitorData: [16]RFX_GFX_MONITOR_INFO align(1), clientUniqueId: [32]u16 align(1), }; pub const RFX_GFX_MSG_DESKTOP_CONFIG_CHANGE_NOTIFY = extern struct { channelHdr: RFX_GFX_MSG_HEADER align(1), ulWidth: u32 align(1), ulHeight: u32 align(1), ulBpp: u32 align(1), Reserved: u32 align(1), }; pub const RFX_GFX_MSG_DESKTOP_CONFIG_CHANGE_CONFIRM = extern struct { channelHdr: RFX_GFX_MSG_HEADER, }; pub const RFX_GFX_MSG_DESKTOP_INPUT_RESET = extern struct { channelHdr: RFX_GFX_MSG_HEADER align(1), ulWidth: u32 align(1), ulHeight: u32 align(1), }; pub const RFX_GFX_MSG_DISCONNECT_NOTIFY = extern struct { channelHdr: RFX_GFX_MSG_HEADER align(1), DisconnectReason: u32 align(1), }; pub const RFX_GFX_MSG_DESKTOP_RESEND_REQUEST = extern struct { channelHdr: RFX_GFX_MSG_HEADER, RedrawRect: RFX_GFX_RECT, }; pub const RFX_GFX_MSG_RDP_DATA = extern struct { channelHdr: RFX_GFX_MSG_HEADER, rdpData: [1]u8, }; pub const WTS_SOCKADDR = extern struct { sin_family: u16, u: extern union { ipv4: extern struct { sin_port: u16, IN_ADDR: u32, sin_zero: [8]u8, }, ipv6: extern struct { sin6_port: u16, sin6_flowinfo: u32, sin6_addr: [8]u16, sin6_scope_id: u32, }, }, }; pub const WTS_SMALL_RECT = extern struct { Left: i16, Top: i16, Right: i16, Bottom: i16, }; pub const WTS_RCM_SERVICE_STATE = enum(i32) { NONE = 0, START = 1, STOP = 2, }; pub const WTS_SERVICE_NONE = WTS_RCM_SERVICE_STATE.NONE; pub const WTS_SERVICE_START = WTS_RCM_SERVICE_STATE.START; pub const WTS_SERVICE_STOP = WTS_RCM_SERVICE_STATE.STOP; pub const WTS_RCM_DRAIN_STATE = enum(i32) { STATE_NONE = 0, IN_DRAIN = 1, NOT_IN_DRAIN = 2, }; pub const WTS_DRAIN_STATE_NONE = WTS_RCM_DRAIN_STATE.STATE_NONE; pub const WTS_DRAIN_IN_DRAIN = WTS_RCM_DRAIN_STATE.IN_DRAIN; pub const WTS_DRAIN_NOT_IN_DRAIN = WTS_RCM_DRAIN_STATE.NOT_IN_DRAIN; pub const WTS_SERVICE_STATE = extern struct { RcmServiceState: WTS_RCM_SERVICE_STATE, RcmDrainState: WTS_RCM_DRAIN_STATE, }; pub const WTS_SESSION_ID = extern struct { SessionUniqueGuid: Guid, SessionId: u32, }; pub const WTS_USER_CREDENTIAL = extern struct { UserName: [256]u16, Password: [256]u16, Domain: [256]u16, }; pub const WTS_SYSTEMTIME = extern struct { wYear: u16, wMonth: u16, wDayOfWeek: u16, wDay: u16, wHour: u16, wMinute: u16, wSecond: u16, wMilliseconds: u16, }; pub const WTS_TIME_ZONE_INFORMATION = extern struct { Bias: i32, StandardName: [32]u16, StandardDate: WTS_SYSTEMTIME, StandardBias: i32, DaylightName: [32]u16, DaylightDate: WTS_SYSTEMTIME, DaylightBias: i32, }; pub const WRDS_DYNAMIC_TIME_ZONE_INFORMATION = extern struct { Bias: i32, StandardName: [32]u16, StandardDate: WTS_SYSTEMTIME, StandardBias: i32, DaylightName: [32]u16, DaylightDate: WTS_SYSTEMTIME, DaylightBias: i32, TimeZoneKeyName: [128]u16, DynamicDaylightTimeDisabled: u16, }; pub const WTS_CLIENT_DATA = extern struct { fDisableCtrlAltDel: BOOLEAN, fDoubleClickDetect: BOOLEAN, fEnableWindowsKey: BOOLEAN, fHideTitleBar: BOOLEAN, fInheritAutoLogon: BOOL, fPromptForPassword: BOOLEAN, fUsingSavedCreds: BOOLEAN, Domain: [256]u16, UserName: [256]u16, Password: [256]u16, fPasswordIsScPin: BOOLEAN, fInheritInitialProgram: BOOL, WorkDirectory: [257]u16, InitialProgram: [257]u16, fMaximizeShell: BOOLEAN, EncryptionLevel: u8, PerformanceFlags: u32, ProtocolName: [9]u16, ProtocolType: u16, fInheritColorDepth: BOOL, HRes: u16, VRes: u16, ColorDepth: u16, DisplayDriverName: [9]u16, DisplayDeviceName: [20]u16, fMouse: BOOLEAN, KeyboardLayout: u32, KeyboardType: u32, KeyboardSubType: u32, KeyboardFunctionKey: u32, imeFileName: [33]u16, ActiveInputLocale: u32, fNoAudioPlayback: BOOLEAN, fRemoteConsoleAudio: BOOLEAN, AudioDriverName: [9]u16, ClientTimeZone: WTS_TIME_ZONE_INFORMATION, ClientName: [21]u16, SerialNumber: u32, ClientAddressFamily: u32, ClientAddress: [31]u16, ClientSockAddress: WTS_SOCKADDR, ClientDirectory: [257]u16, ClientBuildNumber: u32, ClientProductId: u16, OutBufCountHost: u16, OutBufCountClient: u16, OutBufLength: u16, ClientSessionId: u32, ClientDigProductId: [33]u16, fDisableCpm: BOOLEAN, fDisableCdm: BOOLEAN, fDisableCcm: BOOLEAN, fDisableLPT: BOOLEAN, fDisableClip: BOOLEAN, fDisablePNP: BOOLEAN, }; pub const WTS_USER_DATA = extern struct { WorkDirectory: [257]u16, InitialProgram: [257]u16, UserTimeZone: WTS_TIME_ZONE_INFORMATION, }; pub const WTS_POLICY_DATA = extern struct { fDisableEncryption: BOOLEAN, fDisableAutoReconnect: BOOLEAN, ColorDepth: u32, MinEncryptionLevel: u8, fDisableCpm: BOOLEAN, fDisableCdm: BOOLEAN, fDisableCcm: BOOLEAN, fDisableLPT: BOOLEAN, fDisableClip: BOOLEAN, fDisablePNPRedir: BOOLEAN, }; pub const WTS_PROTOCOL_CACHE = extern struct { CacheReads: u32, CacheHits: u32, }; pub const WTS_CACHE_STATS_UN = extern union { ProtocolCache: [4]WTS_PROTOCOL_CACHE, TShareCacheStats: u32, Reserved: [20]u32, }; pub const WTS_CACHE_STATS = extern struct { Specific: u32, Data: WTS_CACHE_STATS_UN, ProtocolType: u16, Length: u16, }; pub const WTS_PROTOCOL_COUNTERS = extern struct { WdBytes: u32, WdFrames: u32, WaitForOutBuf: u32, Frames: u32, Bytes: u32, CompressedBytes: u32, CompressFlushes: u32, Errors: u32, Timeouts: u32, AsyncFramingError: u32, AsyncOverrunError: u32, AsyncOverflowError: u32, AsyncParityError: u32, TdErrors: u32, ProtocolType: u16, Length: u16, Specific: u16, Reserved: [100]u32, }; pub const WTS_PROTOCOL_STATUS = extern struct { Output: WTS_PROTOCOL_COUNTERS, Input: WTS_PROTOCOL_COUNTERS, Cache: WTS_CACHE_STATS, AsyncSignal: u32, AsyncSignalMask: u32, Counters: [100]LARGE_INTEGER, }; pub const WTS_DISPLAY_IOCTL = extern struct { pDisplayIOCtlData: [256]u8, cbDisplayIOCtlData: u32, }; pub const WTS_LOGON_ERROR_REDIRECTOR_RESPONSE = enum(i32) { INVALID = 0, NOT_HANDLED = 1, HANDLED_SHOW = 2, HANDLED_DONT_SHOW = 3, HANDLED_DONT_SHOW_START_OVER = 4, }; pub const WTS_LOGON_ERR_INVALID = WTS_LOGON_ERROR_REDIRECTOR_RESPONSE.INVALID; pub const WTS_LOGON_ERR_NOT_HANDLED = WTS_LOGON_ERROR_REDIRECTOR_RESPONSE.NOT_HANDLED; pub const WTS_LOGON_ERR_HANDLED_SHOW = WTS_LOGON_ERROR_REDIRECTOR_RESPONSE.HANDLED_SHOW; pub const WTS_LOGON_ERR_HANDLED_DONT_SHOW = WTS_LOGON_ERROR_REDIRECTOR_RESPONSE.HANDLED_DONT_SHOW; pub const WTS_LOGON_ERR_HANDLED_DONT_SHOW_START_OVER = WTS_LOGON_ERROR_REDIRECTOR_RESPONSE.HANDLED_DONT_SHOW_START_OVER; pub const WTS_PROPERTY_VALUE = extern struct { Type: u16, u: extern union { ulVal: u32, strVal: extern struct { size: u32, pstrVal: ?PWSTR, }, bVal: extern struct { size: u32, pbVal: ?PSTR, }, guidVal: Guid, }, }; pub const WTS_CERT_TYPE = enum(i32) { INVALID = 0, PROPRIETORY = 1, X509 = 2, }; pub const WTS_CERT_TYPE_INVALID = WTS_CERT_TYPE.INVALID; pub const WTS_CERT_TYPE_PROPRIETORY = WTS_CERT_TYPE.PROPRIETORY; pub const WTS_CERT_TYPE_X509 = WTS_CERT_TYPE.X509; pub const WTS_LICENSE_CAPABILITIES = extern struct { KeyExchangeAlg: u32, ProtocolVer: u32, fAuthenticateServer: BOOL, CertType: WTS_CERT_TYPE, cbClientName: u32, rgbClientName: [42]u8, }; pub const WRDS_CONNECTION_SETTING_LEVEL = enum(i32) { INVALID = 0, @"1" = 1, }; pub const WRDS_CONNECTION_SETTING_LEVEL_INVALID = WRDS_CONNECTION_SETTING_LEVEL.INVALID; pub const WRDS_CONNECTION_SETTING_LEVEL_1 = WRDS_CONNECTION_SETTING_LEVEL.@"1"; pub const WRDS_LISTENER_SETTING_LEVEL = enum(i32) { INVALID = 0, @"1" = 1, }; pub const WRDS_LISTENER_SETTING_LEVEL_INVALID = WRDS_LISTENER_SETTING_LEVEL.INVALID; pub const WRDS_LISTENER_SETTING_LEVEL_1 = WRDS_LISTENER_SETTING_LEVEL.@"1"; pub const WRDS_SETTING_TYPE = enum(i32) { INVALID = 0, MACHINE = 1, USER = 2, SAM = 3, }; pub const WRDS_SETTING_TYPE_INVALID = WRDS_SETTING_TYPE.INVALID; pub const WRDS_SETTING_TYPE_MACHINE = WRDS_SETTING_TYPE.MACHINE; pub const WRDS_SETTING_TYPE_USER = WRDS_SETTING_TYPE.USER; pub const WRDS_SETTING_TYPE_SAM = WRDS_SETTING_TYPE.SAM; pub const WRDS_SETTING_STATUS = enum(i32) { NOTAPPLICABLE = -1, DISABLED = 0, ENABLED = 1, NOTCONFIGURED = 2, }; pub const WRDS_SETTING_STATUS_NOTAPPLICABLE = WRDS_SETTING_STATUS.NOTAPPLICABLE; pub const WRDS_SETTING_STATUS_DISABLED = WRDS_SETTING_STATUS.DISABLED; pub const WRDS_SETTING_STATUS_ENABLED = WRDS_SETTING_STATUS.ENABLED; pub const WRDS_SETTING_STATUS_NOTCONFIGURED = WRDS_SETTING_STATUS.NOTCONFIGURED; pub const WRDS_SETTING_LEVEL = enum(i32) { INVALID = 0, @"1" = 1, }; pub const WRDS_SETTING_LEVEL_INVALID = WRDS_SETTING_LEVEL.INVALID; pub const WRDS_SETTING_LEVEL_1 = WRDS_SETTING_LEVEL.@"1"; pub const WRDS_LISTENER_SETTINGS_1 = extern struct { MaxProtocolListenerConnectionCount: u32, SecurityDescriptorSize: u32, pSecurityDescriptor: ?*u8, }; pub const WRDS_LISTENER_SETTING = extern union { WRdsListenerSettings1: WRDS_LISTENER_SETTINGS_1, }; pub const WRDS_LISTENER_SETTINGS = extern struct { WRdsListenerSettingLevel: WRDS_LISTENER_SETTING_LEVEL, WRdsListenerSetting: WRDS_LISTENER_SETTING, }; pub const WRDS_CONNECTION_SETTINGS_1 = extern struct { fInheritInitialProgram: BOOLEAN, fInheritColorDepth: BOOLEAN, fHideTitleBar: BOOLEAN, fInheritAutoLogon: BOOLEAN, fMaximizeShell: BOOLEAN, fDisablePNP: BOOLEAN, fPasswordIsScPin: BOOLEAN, fPromptForPassword: BOOLEAN, fDisableCpm: BOOLEAN, fDisableCdm: BOOLEAN, fDisableCcm: BOOLEAN, fDisableLPT: BOOLEAN, fDisableClip: BOOLEAN, fResetBroken: BOOLEAN, fDisableEncryption: BOOLEAN, fDisableAutoReconnect: BOOLEAN, fDisableCtrlAltDel: BOOLEAN, fDoubleClickDetect: BOOLEAN, fEnableWindowsKey: BOOLEAN, fUsingSavedCreds: BOOLEAN, fMouse: BOOLEAN, fNoAudioPlayback: BOOLEAN, fRemoteConsoleAudio: BOOLEAN, EncryptionLevel: u8, ColorDepth: u16, ProtocolType: u16, HRes: u16, VRes: u16, ClientProductId: u16, OutBufCountHost: u16, OutBufCountClient: u16, OutBufLength: u16, KeyboardLayout: u32, MaxConnectionTime: u32, MaxDisconnectionTime: u32, MaxIdleTime: u32, PerformanceFlags: u32, KeyboardType: u32, KeyboardSubType: u32, KeyboardFunctionKey: u32, ActiveInputLocale: u32, SerialNumber: u32, ClientAddressFamily: u32, ClientBuildNumber: u32, ClientSessionId: u32, WorkDirectory: [257]u16, InitialProgram: [257]u16, UserName: [256]u16, Domain: [256]u16, Password: [256]u16, ProtocolName: [9]u16, DisplayDriverName: [9]u16, DisplayDeviceName: [20]u16, imeFileName: [33]u16, AudioDriverName: [9]u16, ClientName: [21]u16, ClientAddress: [31]u16, ClientDirectory: [257]u16, ClientDigProductId: [33]u16, ClientSockAddress: WTS_SOCKADDR, ClientTimeZone: WTS_TIME_ZONE_INFORMATION, WRdsListenerSettings: WRDS_LISTENER_SETTINGS, EventLogActivityId: Guid, ContextSize: u32, ContextData: ?*u8, }; pub const WRDS_SETTINGS_1 = extern struct { WRdsDisableClipStatus: WRDS_SETTING_STATUS, WRdsDisableClipValue: u32, WRdsDisableLPTStatus: WRDS_SETTING_STATUS, WRdsDisableLPTValue: u32, WRdsDisableCcmStatus: WRDS_SETTING_STATUS, WRdsDisableCcmValue: u32, WRdsDisableCdmStatus: WRDS_SETTING_STATUS, WRdsDisableCdmValue: u32, WRdsDisableCpmStatus: WRDS_SETTING_STATUS, WRdsDisableCpmValue: u32, WRdsDisablePnpStatus: WRDS_SETTING_STATUS, WRdsDisablePnpValue: u32, WRdsEncryptionLevelStatus: WRDS_SETTING_STATUS, WRdsEncryptionValue: u32, WRdsColorDepthStatus: WRDS_SETTING_STATUS, WRdsColorDepthValue: u32, WRdsDisableAutoReconnecetStatus: WRDS_SETTING_STATUS, WRdsDisableAutoReconnecetValue: u32, WRdsDisableEncryptionStatus: WRDS_SETTING_STATUS, WRdsDisableEncryptionValue: u32, WRdsResetBrokenStatus: WRDS_SETTING_STATUS, WRdsResetBrokenValue: u32, WRdsMaxIdleTimeStatus: WRDS_SETTING_STATUS, WRdsMaxIdleTimeValue: u32, WRdsMaxDisconnectTimeStatus: WRDS_SETTING_STATUS, WRdsMaxDisconnectTimeValue: u32, WRdsMaxConnectTimeStatus: WRDS_SETTING_STATUS, WRdsMaxConnectTimeValue: u32, WRdsKeepAliveStatus: WRDS_SETTING_STATUS, WRdsKeepAliveStartValue: BOOLEAN, WRdsKeepAliveIntervalValue: u32, }; pub const WRDS_CONNECTION_SETTING = extern union { WRdsConnectionSettings1: WRDS_CONNECTION_SETTINGS_1, }; pub const WRDS_CONNECTION_SETTINGS = extern struct { WRdsConnectionSettingLevel: WRDS_CONNECTION_SETTING_LEVEL, WRdsConnectionSetting: WRDS_CONNECTION_SETTING, }; pub const WRDS_SETTING = extern union { WRdsSettings1: WRDS_SETTINGS_1, }; pub const WRDS_SETTINGS = extern struct { WRdsSettingType: WRDS_SETTING_TYPE, WRdsSettingLevel: WRDS_SETTING_LEVEL, WRdsSetting: WRDS_SETTING, }; // TODO: this type is limited to platform 'windowsServer2008' const IID_IWTSProtocolManager_Value = Guid.initString("f9eaf6cc-ed79-4f01-821d-1f881b9f66cc"); pub const IID_IWTSProtocolManager = &IID_IWTSProtocolManager_Value; pub const IWTSProtocolManager = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, CreateListener: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IWTSProtocolManager, wszListenerName: ?PWSTR, pProtocolListener: ?*?*IWTSProtocolListener, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IWTSProtocolManager, wszListenerName: ?PWSTR, pProtocolListener: ?*?*IWTSProtocolListener, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, NotifyServiceStateChange: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IWTSProtocolManager, pTSServiceStateChange: ?*WTS_SERVICE_STATE, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IWTSProtocolManager, pTSServiceStateChange: ?*WTS_SERVICE_STATE, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, NotifySessionOfServiceStart: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IWTSProtocolManager, SessionId: ?*WTS_SESSION_ID, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IWTSProtocolManager, SessionId: ?*WTS_SESSION_ID, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, NotifySessionOfServiceStop: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IWTSProtocolManager, SessionId: ?*WTS_SESSION_ID, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IWTSProtocolManager, SessionId: ?*WTS_SESSION_ID, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, NotifySessionStateChange: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IWTSProtocolManager, SessionId: ?*WTS_SESSION_ID, EventId: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IWTSProtocolManager, SessionId: ?*WTS_SESSION_ID, EventId: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWTSProtocolManager_CreateListener(self: *const T, wszListenerName: ?PWSTR, pProtocolListener: ?*?*IWTSProtocolListener) HRESULT { return @as(*const IWTSProtocolManager.VTable, @ptrCast(self.vtable)).CreateListener(@as(*const IWTSProtocolManager, @ptrCast(self)), wszListenerName, pProtocolListener); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWTSProtocolManager_NotifyServiceStateChange(self: *const T, pTSServiceStateChange: ?*WTS_SERVICE_STATE) HRESULT { return @as(*const IWTSProtocolManager.VTable, @ptrCast(self.vtable)).NotifyServiceStateChange(@as(*const IWTSProtocolManager, @ptrCast(self)), pTSServiceStateChange); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWTSProtocolManager_NotifySessionOfServiceStart(self: *const T, SessionId: ?*WTS_SESSION_ID) HRESULT { return @as(*const IWTSProtocolManager.VTable, @ptrCast(self.vtable)).NotifySessionOfServiceStart(@as(*const IWTSProtocolManager, @ptrCast(self)), SessionId); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWTSProtocolManager_NotifySessionOfServiceStop(self: *const T, SessionId: ?*WTS_SESSION_ID) HRESULT { return @as(*const IWTSProtocolManager.VTable, @ptrCast(self.vtable)).NotifySessionOfServiceStop(@as(*const IWTSProtocolManager, @ptrCast(self)), SessionId); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWTSProtocolManager_NotifySessionStateChange(self: *const T, SessionId: ?*WTS_SESSION_ID, EventId: u32) HRESULT { return @as(*const IWTSProtocolManager.VTable, @ptrCast(self.vtable)).NotifySessionStateChange(@as(*const IWTSProtocolManager, @ptrCast(self)), SessionId, EventId); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windowsServer2008' const IID_IWTSProtocolListener_Value = Guid.initString("23083765-45f0-4394-8f69-32b2bc0ef4ca"); pub const IID_IWTSProtocolListener = &IID_IWTSProtocolListener_Value; pub const IWTSProtocolListener = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, StartListen: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IWTSProtocolListener, pCallback: ?*IWTSProtocolListenerCallback, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IWTSProtocolListener, pCallback: ?*IWTSProtocolListenerCallback, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, StopListen: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IWTSProtocolListener, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IWTSProtocolListener, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWTSProtocolListener_StartListen(self: *const T, pCallback: ?*IWTSProtocolListenerCallback) HRESULT { return @as(*const IWTSProtocolListener.VTable, @ptrCast(self.vtable)).StartListen(@as(*const IWTSProtocolListener, @ptrCast(self)), pCallback); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWTSProtocolListener_StopListen(self: *const T) HRESULT { return @as(*const IWTSProtocolListener.VTable, @ptrCast(self.vtable)).StopListen(@as(*const IWTSProtocolListener, @ptrCast(self))); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windowsServer2008' const IID_IWTSProtocolListenerCallback_Value = Guid.initString("23083765-1a2d-4de2-97de-4a35f260f0b3"); pub const IID_IWTSProtocolListenerCallback = &IID_IWTSProtocolListenerCallback_Value; pub const IWTSProtocolListenerCallback = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, OnConnected: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IWTSProtocolListenerCallback, pConnection: ?*IWTSProtocolConnection, pCallback: ?*?*IWTSProtocolConnectionCallback, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IWTSProtocolListenerCallback, pConnection: ?*IWTSProtocolConnection, pCallback: ?*?*IWTSProtocolConnectionCallback, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWTSProtocolListenerCallback_OnConnected(self: *const T, pConnection: ?*IWTSProtocolConnection, pCallback: ?*?*IWTSProtocolConnectionCallback) HRESULT { return @as(*const IWTSProtocolListenerCallback.VTable, @ptrCast(self.vtable)).OnConnected(@as(*const IWTSProtocolListenerCallback, @ptrCast(self)), pConnection, pCallback); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windowsServer2008' const IID_IWTSProtocolConnection_Value = Guid.initString("23083765-9095-4648-98bf-ef81c914032d"); pub const IID_IWTSProtocolConnection = &IID_IWTSProtocolConnection_Value; pub const IWTSProtocolConnection = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, GetLogonErrorRedirector: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IWTSProtocolConnection, ppLogonErrorRedir: ?*?*IWTSProtocolLogonErrorRedirector, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IWTSProtocolConnection, ppLogonErrorRedir: ?*?*IWTSProtocolLogonErrorRedirector, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SendPolicyData: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IWTSProtocolConnection, pPolicyData: ?*WTS_POLICY_DATA, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IWTSProtocolConnection, pPolicyData: ?*WTS_POLICY_DATA, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, AcceptConnection: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IWTSProtocolConnection, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IWTSProtocolConnection, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetClientData: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IWTSProtocolConnection, pClientData: ?*WTS_CLIENT_DATA, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IWTSProtocolConnection, pClientData: ?*WTS_CLIENT_DATA, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetUserCredentials: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IWTSProtocolConnection, pUserCreds: ?*WTS_USER_CREDENTIAL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IWTSProtocolConnection, pUserCreds: ?*WTS_USER_CREDENTIAL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetLicenseConnection: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IWTSProtocolConnection, ppLicenseConnection: ?*?*IWTSProtocolLicenseConnection, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IWTSProtocolConnection, ppLicenseConnection: ?*?*IWTSProtocolLicenseConnection, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, AuthenticateClientToSession: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IWTSProtocolConnection, SessionId: ?*WTS_SESSION_ID, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IWTSProtocolConnection, SessionId: ?*WTS_SESSION_ID, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, NotifySessionId: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IWTSProtocolConnection, SessionId: ?*WTS_SESSION_ID, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IWTSProtocolConnection, SessionId: ?*WTS_SESSION_ID, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetProtocolHandles: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IWTSProtocolConnection, pKeyboardHandle: ?*HANDLE_PTR, pMouseHandle: ?*HANDLE_PTR, pBeepHandle: ?*HANDLE_PTR, pVideoHandle: ?*HANDLE_PTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IWTSProtocolConnection, pKeyboardHandle: ?*HANDLE_PTR, pMouseHandle: ?*HANDLE_PTR, pBeepHandle: ?*HANDLE_PTR, pVideoHandle: ?*HANDLE_PTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, ConnectNotify: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IWTSProtocolConnection, SessionId: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IWTSProtocolConnection, SessionId: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, IsUserAllowedToLogon: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IWTSProtocolConnection, SessionId: u32, UserToken: HANDLE_PTR, pDomainName: ?PWSTR, pUserName: ?PWSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IWTSProtocolConnection, SessionId: u32, UserToken: HANDLE_PTR, pDomainName: ?PWSTR, pUserName: ?PWSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SessionArbitrationEnumeration: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IWTSProtocolConnection, hUserToken: HANDLE_PTR, bSingleSessionPerUserEnabled: BOOL, pSessionIdArray: [*]u32, pdwSessionIdentifierCount: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IWTSProtocolConnection, hUserToken: HANDLE_PTR, bSingleSessionPerUserEnabled: BOOL, pSessionIdArray: [*]u32, pdwSessionIdentifierCount: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, LogonNotify: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IWTSProtocolConnection, hClientToken: HANDLE_PTR, wszUserName: ?PWSTR, wszDomainName: ?PWSTR, SessionId: ?*WTS_SESSION_ID, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IWTSProtocolConnection, hClientToken: HANDLE_PTR, wszUserName: ?PWSTR, wszDomainName: ?PWSTR, SessionId: ?*WTS_SESSION_ID, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetUserData: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IWTSProtocolConnection, pPolicyData: ?*WTS_POLICY_DATA, pClientData: ?*WTS_USER_DATA, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IWTSProtocolConnection, pPolicyData: ?*WTS_POLICY_DATA, pClientData: ?*WTS_USER_DATA, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, DisconnectNotify: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IWTSProtocolConnection, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IWTSProtocolConnection, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Close: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IWTSProtocolConnection, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IWTSProtocolConnection, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetProtocolStatus: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IWTSProtocolConnection, pProtocolStatus: ?*WTS_PROTOCOL_STATUS, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IWTSProtocolConnection, pProtocolStatus: ?*WTS_PROTOCOL_STATUS, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetLastInputTime: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IWTSProtocolConnection, pLastInputTime: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IWTSProtocolConnection, pLastInputTime: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetErrorInfo: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IWTSProtocolConnection, ulError: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IWTSProtocolConnection, ulError: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SendBeep: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IWTSProtocolConnection, Frequency: u32, Duration: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IWTSProtocolConnection, Frequency: u32, Duration: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, CreateVirtualChannel: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IWTSProtocolConnection, szEndpointName: ?PSTR, bStatic: BOOL, RequestedPriority: u32, phChannel: ?*usize, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IWTSProtocolConnection, szEndpointName: ?PSTR, bStatic: BOOL, RequestedPriority: u32, phChannel: ?*usize, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, QueryProperty: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IWTSProtocolConnection, QueryType: Guid, ulNumEntriesIn: u32, ulNumEntriesOut: u32, pPropertyEntriesIn: [*]WTS_PROPERTY_VALUE, pPropertyEntriesOut: [*]WTS_PROPERTY_VALUE, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IWTSProtocolConnection, QueryType: Guid, ulNumEntriesIn: u32, ulNumEntriesOut: u32, pPropertyEntriesIn: [*]WTS_PROPERTY_VALUE, pPropertyEntriesOut: [*]WTS_PROPERTY_VALUE, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetShadowConnection: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IWTSProtocolConnection, ppShadowConnection: ?*?*IWTSProtocolShadowConnection, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IWTSProtocolConnection, ppShadowConnection: ?*?*IWTSProtocolShadowConnection, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWTSProtocolConnection_GetLogonErrorRedirector(self: *const T, ppLogonErrorRedir: ?*?*IWTSProtocolLogonErrorRedirector) HRESULT { return @as(*const IWTSProtocolConnection.VTable, @ptrCast(self.vtable)).GetLogonErrorRedirector(@as(*const IWTSProtocolConnection, @ptrCast(self)), ppLogonErrorRedir); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWTSProtocolConnection_SendPolicyData(self: *const T, pPolicyData: ?*WTS_POLICY_DATA) HRESULT { return @as(*const IWTSProtocolConnection.VTable, @ptrCast(self.vtable)).SendPolicyData(@as(*const IWTSProtocolConnection, @ptrCast(self)), pPolicyData); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWTSProtocolConnection_AcceptConnection(self: *const T) HRESULT { return @as(*const IWTSProtocolConnection.VTable, @ptrCast(self.vtable)).AcceptConnection(@as(*const IWTSProtocolConnection, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWTSProtocolConnection_GetClientData(self: *const T, pClientData: ?*WTS_CLIENT_DATA) HRESULT { return @as(*const IWTSProtocolConnection.VTable, @ptrCast(self.vtable)).GetClientData(@as(*const IWTSProtocolConnection, @ptrCast(self)), pClientData); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWTSProtocolConnection_GetUserCredentials(self: *const T, pUserCreds: ?*WTS_USER_CREDENTIAL) HRESULT { return @as(*const IWTSProtocolConnection.VTable, @ptrCast(self.vtable)).GetUserCredentials(@as(*const IWTSProtocolConnection, @ptrCast(self)), pUserCreds); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWTSProtocolConnection_GetLicenseConnection(self: *const T, ppLicenseConnection: ?*?*IWTSProtocolLicenseConnection) HRESULT { return @as(*const IWTSProtocolConnection.VTable, @ptrCast(self.vtable)).GetLicenseConnection(@as(*const IWTSProtocolConnection, @ptrCast(self)), ppLicenseConnection); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWTSProtocolConnection_AuthenticateClientToSession(self: *const T, SessionId: ?*WTS_SESSION_ID) HRESULT { return @as(*const IWTSProtocolConnection.VTable, @ptrCast(self.vtable)).AuthenticateClientToSession(@as(*const IWTSProtocolConnection, @ptrCast(self)), SessionId); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWTSProtocolConnection_NotifySessionId(self: *const T, SessionId: ?*WTS_SESSION_ID) HRESULT { return @as(*const IWTSProtocolConnection.VTable, @ptrCast(self.vtable)).NotifySessionId(@as(*const IWTSProtocolConnection, @ptrCast(self)), SessionId); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWTSProtocolConnection_GetProtocolHandles(self: *const T, pKeyboardHandle: ?*HANDLE_PTR, pMouseHandle: ?*HANDLE_PTR, pBeepHandle: ?*HANDLE_PTR, pVideoHandle: ?*HANDLE_PTR) HRESULT { return @as(*const IWTSProtocolConnection.VTable, @ptrCast(self.vtable)).GetProtocolHandles(@as(*const IWTSProtocolConnection, @ptrCast(self)), pKeyboardHandle, pMouseHandle, pBeepHandle, pVideoHandle); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWTSProtocolConnection_ConnectNotify(self: *const T, SessionId: u32) HRESULT { return @as(*const IWTSProtocolConnection.VTable, @ptrCast(self.vtable)).ConnectNotify(@as(*const IWTSProtocolConnection, @ptrCast(self)), SessionId); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWTSProtocolConnection_IsUserAllowedToLogon(self: *const T, SessionId: u32, UserToken: HANDLE_PTR, pDomainName: ?PWSTR, pUserName: ?PWSTR) HRESULT { return @as(*const IWTSProtocolConnection.VTable, @ptrCast(self.vtable)).IsUserAllowedToLogon(@as(*const IWTSProtocolConnection, @ptrCast(self)), SessionId, UserToken, pDomainName, pUserName); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWTSProtocolConnection_SessionArbitrationEnumeration(self: *const T, hUserToken: HANDLE_PTR, bSingleSessionPerUserEnabled: BOOL, pSessionIdArray: [*]u32, pdwSessionIdentifierCount: ?*u32) HRESULT { return @as(*const IWTSProtocolConnection.VTable, @ptrCast(self.vtable)).SessionArbitrationEnumeration(@as(*const IWTSProtocolConnection, @ptrCast(self)), hUserToken, bSingleSessionPerUserEnabled, pSessionIdArray, pdwSessionIdentifierCount); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWTSProtocolConnection_LogonNotify(self: *const T, hClientToken: HANDLE_PTR, wszUserName: ?PWSTR, wszDomainName: ?PWSTR, SessionId: ?*WTS_SESSION_ID) HRESULT { return @as(*const IWTSProtocolConnection.VTable, @ptrCast(self.vtable)).LogonNotify(@as(*const IWTSProtocolConnection, @ptrCast(self)), hClientToken, wszUserName, wszDomainName, SessionId); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWTSProtocolConnection_GetUserData(self: *const T, pPolicyData: ?*WTS_POLICY_DATA, pClientData: ?*WTS_USER_DATA) HRESULT { return @as(*const IWTSProtocolConnection.VTable, @ptrCast(self.vtable)).GetUserData(@as(*const IWTSProtocolConnection, @ptrCast(self)), pPolicyData, pClientData); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWTSProtocolConnection_DisconnectNotify(self: *const T) HRESULT { return @as(*const IWTSProtocolConnection.VTable, @ptrCast(self.vtable)).DisconnectNotify(@as(*const IWTSProtocolConnection, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWTSProtocolConnection_Close(self: *const T) HRESULT { return @as(*const IWTSProtocolConnection.VTable, @ptrCast(self.vtable)).Close(@as(*const IWTSProtocolConnection, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWTSProtocolConnection_GetProtocolStatus(self: *const T, pProtocolStatus: ?*WTS_PROTOCOL_STATUS) HRESULT { return @as(*const IWTSProtocolConnection.VTable, @ptrCast(self.vtable)).GetProtocolStatus(@as(*const IWTSProtocolConnection, @ptrCast(self)), pProtocolStatus); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWTSProtocolConnection_GetLastInputTime(self: *const T, pLastInputTime: ?*u64) HRESULT { return @as(*const IWTSProtocolConnection.VTable, @ptrCast(self.vtable)).GetLastInputTime(@as(*const IWTSProtocolConnection, @ptrCast(self)), pLastInputTime); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWTSProtocolConnection_SetErrorInfo(self: *const T, ulError: u32) HRESULT { return @as(*const IWTSProtocolConnection.VTable, @ptrCast(self.vtable)).SetErrorInfo(@as(*const IWTSProtocolConnection, @ptrCast(self)), ulError); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWTSProtocolConnection_SendBeep(self: *const T, Frequency: u32, Duration: u32) HRESULT { return @as(*const IWTSProtocolConnection.VTable, @ptrCast(self.vtable)).SendBeep(@as(*const IWTSProtocolConnection, @ptrCast(self)), Frequency, Duration); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWTSProtocolConnection_CreateVirtualChannel(self: *const T, szEndpointName: ?PSTR, bStatic: BOOL, RequestedPriority: u32, phChannel: ?*usize) HRESULT { return @as(*const IWTSProtocolConnection.VTable, @ptrCast(self.vtable)).CreateVirtualChannel(@as(*const IWTSProtocolConnection, @ptrCast(self)), szEndpointName, bStatic, RequestedPriority, phChannel); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWTSProtocolConnection_QueryProperty(self: *const T, QueryType: Guid, ulNumEntriesIn: u32, ulNumEntriesOut: u32, pPropertyEntriesIn: [*]WTS_PROPERTY_VALUE, pPropertyEntriesOut: [*]WTS_PROPERTY_VALUE) HRESULT { return @as(*const IWTSProtocolConnection.VTable, @ptrCast(self.vtable)).QueryProperty(@as(*const IWTSProtocolConnection, @ptrCast(self)), QueryType, ulNumEntriesIn, ulNumEntriesOut, pPropertyEntriesIn, pPropertyEntriesOut); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWTSProtocolConnection_GetShadowConnection(self: *const T, ppShadowConnection: ?*?*IWTSProtocolShadowConnection) HRESULT { return @as(*const IWTSProtocolConnection.VTable, @ptrCast(self.vtable)).GetShadowConnection(@as(*const IWTSProtocolConnection, @ptrCast(self)), ppShadowConnection); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windowsServer2008' const IID_IWTSProtocolConnectionCallback_Value = Guid.initString("23083765-75eb-41fe-b4fb-e086242afa0f"); pub const IID_IWTSProtocolConnectionCallback = &IID_IWTSProtocolConnectionCallback_Value; pub const IWTSProtocolConnectionCallback = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, OnReady: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IWTSProtocolConnectionCallback, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IWTSProtocolConnectionCallback, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, BrokenConnection: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IWTSProtocolConnectionCallback, Reason: u32, Source: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IWTSProtocolConnectionCallback, Reason: u32, Source: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, StopScreenUpdates: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IWTSProtocolConnectionCallback, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IWTSProtocolConnectionCallback, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, RedrawWindow: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IWTSProtocolConnectionCallback, rect: ?*WTS_SMALL_RECT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IWTSProtocolConnectionCallback, rect: ?*WTS_SMALL_RECT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, DisplayIOCtl: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IWTSProtocolConnectionCallback, DisplayIOCtl: ?*WTS_DISPLAY_IOCTL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IWTSProtocolConnectionCallback, DisplayIOCtl: ?*WTS_DISPLAY_IOCTL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWTSProtocolConnectionCallback_OnReady(self: *const T) HRESULT { return @as(*const IWTSProtocolConnectionCallback.VTable, @ptrCast(self.vtable)).OnReady(@as(*const IWTSProtocolConnectionCallback, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWTSProtocolConnectionCallback_BrokenConnection(self: *const T, Reason: u32, Source: u32) HRESULT { return @as(*const IWTSProtocolConnectionCallback.VTable, @ptrCast(self.vtable)).BrokenConnection(@as(*const IWTSProtocolConnectionCallback, @ptrCast(self)), Reason, Source); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWTSProtocolConnectionCallback_StopScreenUpdates(self: *const T) HRESULT { return @as(*const IWTSProtocolConnectionCallback.VTable, @ptrCast(self.vtable)).StopScreenUpdates(@as(*const IWTSProtocolConnectionCallback, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWTSProtocolConnectionCallback_RedrawWindow(self: *const T, rect: ?*WTS_SMALL_RECT) HRESULT { return @as(*const IWTSProtocolConnectionCallback.VTable, @ptrCast(self.vtable)).RedrawWindow(@as(*const IWTSProtocolConnectionCallback, @ptrCast(self)), rect); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWTSProtocolConnectionCallback_DisplayIOCtl(self: *const T, DisplayIOCtl: ?*WTS_DISPLAY_IOCTL) HRESULT { return @as(*const IWTSProtocolConnectionCallback.VTable, @ptrCast(self.vtable)).DisplayIOCtl(@as(*const IWTSProtocolConnectionCallback, @ptrCast(self)), DisplayIOCtl); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windowsServer2008' const IID_IWTSProtocolShadowConnection_Value = Guid.initString("ee3b0c14-37fb-456b-bab3-6d6cd51e13bf"); pub const IID_IWTSProtocolShadowConnection = &IID_IWTSProtocolShadowConnection_Value; pub const IWTSProtocolShadowConnection = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, Start: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IWTSProtocolShadowConnection, pTargetServerName: ?PWSTR, TargetSessionId: u32, HotKeyVk: u8, HotkeyModifiers: u16, pShadowCallback: ?*IWTSProtocolShadowCallback, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IWTSProtocolShadowConnection, pTargetServerName: ?PWSTR, TargetSessionId: u32, HotKeyVk: u8, HotkeyModifiers: u16, pShadowCallback: ?*IWTSProtocolShadowCallback, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Stop: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IWTSProtocolShadowConnection, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IWTSProtocolShadowConnection, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, DoTarget: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IWTSProtocolShadowConnection, pParam1: [*:0]u8, Param1Size: u32, pParam2: [*:0]u8, Param2Size: u32, pParam3: [*:0]u8, Param3Size: u32, pParam4: [*:0]u8, Param4Size: u32, pClientName: ?PWSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IWTSProtocolShadowConnection, pParam1: [*:0]u8, Param1Size: u32, pParam2: [*:0]u8, Param2Size: u32, pParam3: [*:0]u8, Param3Size: u32, pParam4: [*:0]u8, Param4Size: u32, pClientName: ?PWSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWTSProtocolShadowConnection_Start(self: *const T, pTargetServerName: ?PWSTR, TargetSessionId: u32, HotKeyVk: u8, HotkeyModifiers: u16, pShadowCallback: ?*IWTSProtocolShadowCallback) HRESULT { return @as(*const IWTSProtocolShadowConnection.VTable, @ptrCast(self.vtable)).Start(@as(*const IWTSProtocolShadowConnection, @ptrCast(self)), pTargetServerName, TargetSessionId, HotKeyVk, HotkeyModifiers, pShadowCallback); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWTSProtocolShadowConnection_Stop(self: *const T) HRESULT { return @as(*const IWTSProtocolShadowConnection.VTable, @ptrCast(self.vtable)).Stop(@as(*const IWTSProtocolShadowConnection, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWTSProtocolShadowConnection_DoTarget(self: *const T, pParam1: [*:0]u8, Param1Size: u32, pParam2: [*:0]u8, Param2Size: u32, pParam3: [*:0]u8, Param3Size: u32, pParam4: [*:0]u8, Param4Size: u32, pClientName: ?PWSTR) HRESULT { return @as(*const IWTSProtocolShadowConnection.VTable, @ptrCast(self.vtable)).DoTarget(@as(*const IWTSProtocolShadowConnection, @ptrCast(self)), pParam1, Param1Size, pParam2, Param2Size, pParam3, Param3Size, pParam4, Param4Size, pClientName); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windowsServer2008' const IID_IWTSProtocolShadowCallback_Value = Guid.initString("503a2504-aae5-4ab1-93e0-6d1c4bc6f71a"); pub const IID_IWTSProtocolShadowCallback = &IID_IWTSProtocolShadowCallback_Value; pub const IWTSProtocolShadowCallback = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, StopShadow: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IWTSProtocolShadowCallback, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IWTSProtocolShadowCallback, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, InvokeTargetShadow: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IWTSProtocolShadowCallback, pTargetServerName: ?PWSTR, TargetSessionId: u32, pParam1: [*:0]u8, Param1Size: u32, pParam2: [*:0]u8, Param2Size: u32, pParam3: [*:0]u8, Param3Size: u32, pParam4: [*:0]u8, Param4Size: u32, pClientName: ?PWSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IWTSProtocolShadowCallback, pTargetServerName: ?PWSTR, TargetSessionId: u32, pParam1: [*:0]u8, Param1Size: u32, pParam2: [*:0]u8, Param2Size: u32, pParam3: [*:0]u8, Param3Size: u32, pParam4: [*:0]u8, Param4Size: u32, pClientName: ?PWSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWTSProtocolShadowCallback_StopShadow(self: *const T) HRESULT { return @as(*const IWTSProtocolShadowCallback.VTable, @ptrCast(self.vtable)).StopShadow(@as(*const IWTSProtocolShadowCallback, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWTSProtocolShadowCallback_InvokeTargetShadow(self: *const T, pTargetServerName: ?PWSTR, TargetSessionId: u32, pParam1: [*:0]u8, Param1Size: u32, pParam2: [*:0]u8, Param2Size: u32, pParam3: [*:0]u8, Param3Size: u32, pParam4: [*:0]u8, Param4Size: u32, pClientName: ?PWSTR) HRESULT { return @as(*const IWTSProtocolShadowCallback.VTable, @ptrCast(self.vtable)).InvokeTargetShadow(@as(*const IWTSProtocolShadowCallback, @ptrCast(self)), pTargetServerName, TargetSessionId, pParam1, Param1Size, pParam2, Param2Size, pParam3, Param3Size, pParam4, Param4Size, pClientName); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windowsServer2008' const IID_IWTSProtocolLicenseConnection_Value = Guid.initString("23083765-178c-4079-8e4a-fea6496a4d70"); pub const IID_IWTSProtocolLicenseConnection = &IID_IWTSProtocolLicenseConnection_Value; pub const IWTSProtocolLicenseConnection = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, RequestLicensingCapabilities: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IWTSProtocolLicenseConnection, ppLicenseCapabilities: ?*WTS_LICENSE_CAPABILITIES, pcbLicenseCapabilities: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IWTSProtocolLicenseConnection, ppLicenseCapabilities: ?*WTS_LICENSE_CAPABILITIES, pcbLicenseCapabilities: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SendClientLicense: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IWTSProtocolLicenseConnection, pClientLicense: [*:0]u8, cbClientLicense: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IWTSProtocolLicenseConnection, pClientLicense: [*:0]u8, cbClientLicense: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, RequestClientLicense: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IWTSProtocolLicenseConnection, Reserve1: [*:0]u8, Reserve2: u32, ppClientLicense: [*:0]u8, pcbClientLicense: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IWTSProtocolLicenseConnection, Reserve1: [*:0]u8, Reserve2: u32, ppClientLicense: [*:0]u8, pcbClientLicense: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, ProtocolComplete: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IWTSProtocolLicenseConnection, ulComplete: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IWTSProtocolLicenseConnection, ulComplete: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWTSProtocolLicenseConnection_RequestLicensingCapabilities(self: *const T, ppLicenseCapabilities: ?*WTS_LICENSE_CAPABILITIES, pcbLicenseCapabilities: ?*u32) HRESULT { return @as(*const IWTSProtocolLicenseConnection.VTable, @ptrCast(self.vtable)).RequestLicensingCapabilities(@as(*const IWTSProtocolLicenseConnection, @ptrCast(self)), ppLicenseCapabilities, pcbLicenseCapabilities); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWTSProtocolLicenseConnection_SendClientLicense(self: *const T, pClientLicense: [*:0]u8, cbClientLicense: u32) HRESULT { return @as(*const IWTSProtocolLicenseConnection.VTable, @ptrCast(self.vtable)).SendClientLicense(@as(*const IWTSProtocolLicenseConnection, @ptrCast(self)), pClientLicense, cbClientLicense); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWTSProtocolLicenseConnection_RequestClientLicense(self: *const T, Reserve1: [*:0]u8, Reserve2: u32, ppClientLicense: [*:0]u8, pcbClientLicense: ?*u32) HRESULT { return @as(*const IWTSProtocolLicenseConnection.VTable, @ptrCast(self.vtable)).RequestClientLicense(@as(*const IWTSProtocolLicenseConnection, @ptrCast(self)), Reserve1, Reserve2, ppClientLicense, pcbClientLicense); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWTSProtocolLicenseConnection_ProtocolComplete(self: *const T, ulComplete: u32) HRESULT { return @as(*const IWTSProtocolLicenseConnection.VTable, @ptrCast(self.vtable)).ProtocolComplete(@as(*const IWTSProtocolLicenseConnection, @ptrCast(self)), ulComplete); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windowsServer2008' const IID_IWTSProtocolLogonErrorRedirector_Value = Guid.initString("fd9b61a7-2916-4627-8dee-4328711ad6cb"); pub const IID_IWTSProtocolLogonErrorRedirector = &IID_IWTSProtocolLogonErrorRedirector_Value; pub const IWTSProtocolLogonErrorRedirector = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, OnBeginPainting: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IWTSProtocolLogonErrorRedirector, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IWTSProtocolLogonErrorRedirector, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, RedirectStatus: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IWTSProtocolLogonErrorRedirector, pszMessage: ?[*:0]const u16, pResponse: ?*WTS_LOGON_ERROR_REDIRECTOR_RESPONSE, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IWTSProtocolLogonErrorRedirector, pszMessage: ?[*:0]const u16, pResponse: ?*WTS_LOGON_ERROR_REDIRECTOR_RESPONSE, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, RedirectMessage: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IWTSProtocolLogonErrorRedirector, pszCaption: ?[*:0]const u16, pszMessage: ?[*:0]const u16, uType: u32, pResponse: ?*WTS_LOGON_ERROR_REDIRECTOR_RESPONSE, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IWTSProtocolLogonErrorRedirector, pszCaption: ?[*:0]const u16, pszMessage: ?[*:0]const u16, uType: u32, pResponse: ?*WTS_LOGON_ERROR_REDIRECTOR_RESPONSE, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, RedirectLogonError: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IWTSProtocolLogonErrorRedirector, ntsStatus: i32, ntsSubstatus: i32, pszCaption: ?[*:0]const u16, pszMessage: ?[*:0]const u16, uType: u32, pResponse: ?*WTS_LOGON_ERROR_REDIRECTOR_RESPONSE, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IWTSProtocolLogonErrorRedirector, ntsStatus: i32, ntsSubstatus: i32, pszCaption: ?[*:0]const u16, pszMessage: ?[*:0]const u16, uType: u32, pResponse: ?*WTS_LOGON_ERROR_REDIRECTOR_RESPONSE, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWTSProtocolLogonErrorRedirector_OnBeginPainting(self: *const T) HRESULT { return @as(*const IWTSProtocolLogonErrorRedirector.VTable, @ptrCast(self.vtable)).OnBeginPainting(@as(*const IWTSProtocolLogonErrorRedirector, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWTSProtocolLogonErrorRedirector_RedirectStatus(self: *const T, pszMessage: ?[*:0]const u16, pResponse: ?*WTS_LOGON_ERROR_REDIRECTOR_RESPONSE) HRESULT { return @as(*const IWTSProtocolLogonErrorRedirector.VTable, @ptrCast(self.vtable)).RedirectStatus(@as(*const IWTSProtocolLogonErrorRedirector, @ptrCast(self)), pszMessage, pResponse); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWTSProtocolLogonErrorRedirector_RedirectMessage(self: *const T, pszCaption: ?[*:0]const u16, pszMessage: ?[*:0]const u16, uType: u32, pResponse: ?*WTS_LOGON_ERROR_REDIRECTOR_RESPONSE) HRESULT { return @as(*const IWTSProtocolLogonErrorRedirector.VTable, @ptrCast(self.vtable)).RedirectMessage(@as(*const IWTSProtocolLogonErrorRedirector, @ptrCast(self)), pszCaption, pszMessage, uType, pResponse); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWTSProtocolLogonErrorRedirector_RedirectLogonError(self: *const T, ntsStatus: i32, ntsSubstatus: i32, pszCaption: ?[*:0]const u16, pszMessage: ?[*:0]const u16, uType: u32, pResponse: ?*WTS_LOGON_ERROR_REDIRECTOR_RESPONSE) HRESULT { return @as(*const IWTSProtocolLogonErrorRedirector.VTable, @ptrCast(self.vtable)).RedirectLogonError(@as(*const IWTSProtocolLogonErrorRedirector, @ptrCast(self)), ntsStatus, ntsSubstatus, pszCaption, pszMessage, uType, pResponse); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windowsServer2012' const IID_IWRdsProtocolSettings_Value = Guid.initString("654a5a6a-2550-47eb-b6f7-ebd637475265"); pub const IID_IWRdsProtocolSettings = &IID_IWRdsProtocolSettings_Value; pub const IWRdsProtocolSettings = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, GetSettings: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IWRdsProtocolSettings, WRdsSettingType: WRDS_SETTING_TYPE, WRdsSettingLevel: WRDS_SETTING_LEVEL, pWRdsSettings: ?*WRDS_SETTINGS, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IWRdsProtocolSettings, WRdsSettingType: WRDS_SETTING_TYPE, WRdsSettingLevel: WRDS_SETTING_LEVEL, pWRdsSettings: ?*WRDS_SETTINGS, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, MergeSettings: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IWRdsProtocolSettings, pWRdsSettings: ?*WRDS_SETTINGS, WRdsConnectionSettingLevel: WRDS_CONNECTION_SETTING_LEVEL, pWRdsConnectionSettings: ?*WRDS_CONNECTION_SETTINGS, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IWRdsProtocolSettings, pWRdsSettings: ?*WRDS_SETTINGS, WRdsConnectionSettingLevel: WRDS_CONNECTION_SETTING_LEVEL, pWRdsConnectionSettings: ?*WRDS_CONNECTION_SETTINGS, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWRdsProtocolSettings_GetSettings(self: *const T, WRdsSettingType: WRDS_SETTING_TYPE, WRdsSettingLevel: WRDS_SETTING_LEVEL, pWRdsSettings: ?*WRDS_SETTINGS) HRESULT { return @as(*const IWRdsProtocolSettings.VTable, @ptrCast(self.vtable)).GetSettings(@as(*const IWRdsProtocolSettings, @ptrCast(self)), WRdsSettingType, WRdsSettingLevel, pWRdsSettings); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWRdsProtocolSettings_MergeSettings(self: *const T, pWRdsSettings: ?*WRDS_SETTINGS, WRdsConnectionSettingLevel: WRDS_CONNECTION_SETTING_LEVEL, pWRdsConnectionSettings: ?*WRDS_CONNECTION_SETTINGS) HRESULT { return @as(*const IWRdsProtocolSettings.VTable, @ptrCast(self.vtable)).MergeSettings(@as(*const IWRdsProtocolSettings, @ptrCast(self)), pWRdsSettings, WRdsConnectionSettingLevel, pWRdsConnectionSettings); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windowsServer2012' const IID_IWRdsProtocolManager_Value = Guid.initString("dc796967-3abb-40cd-a446-105276b58950"); pub const IID_IWRdsProtocolManager = &IID_IWRdsProtocolManager_Value; pub const IWRdsProtocolManager = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, Initialize: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IWRdsProtocolManager, pIWRdsSettings: ?*IWRdsProtocolSettings, pWRdsSettings: ?*WRDS_SETTINGS, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IWRdsProtocolManager, pIWRdsSettings: ?*IWRdsProtocolSettings, pWRdsSettings: ?*WRDS_SETTINGS, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, CreateListener: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IWRdsProtocolManager, wszListenerName: ?PWSTR, pProtocolListener: ?*?*IWRdsProtocolListener, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IWRdsProtocolManager, wszListenerName: ?PWSTR, pProtocolListener: ?*?*IWRdsProtocolListener, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, NotifyServiceStateChange: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IWRdsProtocolManager, pTSServiceStateChange: ?*WTS_SERVICE_STATE, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IWRdsProtocolManager, pTSServiceStateChange: ?*WTS_SERVICE_STATE, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, NotifySessionOfServiceStart: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IWRdsProtocolManager, SessionId: ?*WTS_SESSION_ID, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IWRdsProtocolManager, SessionId: ?*WTS_SESSION_ID, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, NotifySessionOfServiceStop: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IWRdsProtocolManager, SessionId: ?*WTS_SESSION_ID, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IWRdsProtocolManager, SessionId: ?*WTS_SESSION_ID, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, NotifySessionStateChange: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IWRdsProtocolManager, SessionId: ?*WTS_SESSION_ID, EventId: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IWRdsProtocolManager, SessionId: ?*WTS_SESSION_ID, EventId: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, NotifySettingsChange: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IWRdsProtocolManager, pWRdsSettings: ?*WRDS_SETTINGS, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IWRdsProtocolManager, pWRdsSettings: ?*WRDS_SETTINGS, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Uninitialize: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IWRdsProtocolManager, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IWRdsProtocolManager, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWRdsProtocolManager_Initialize(self: *const T, pIWRdsSettings: ?*IWRdsProtocolSettings, pWRdsSettings: ?*WRDS_SETTINGS) HRESULT { return @as(*const IWRdsProtocolManager.VTable, @ptrCast(self.vtable)).Initialize(@as(*const IWRdsProtocolManager, @ptrCast(self)), pIWRdsSettings, pWRdsSettings); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWRdsProtocolManager_CreateListener(self: *const T, wszListenerName: ?PWSTR, pProtocolListener: ?*?*IWRdsProtocolListener) HRESULT { return @as(*const IWRdsProtocolManager.VTable, @ptrCast(self.vtable)).CreateListener(@as(*const IWRdsProtocolManager, @ptrCast(self)), wszListenerName, pProtocolListener); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWRdsProtocolManager_NotifyServiceStateChange(self: *const T, pTSServiceStateChange: ?*WTS_SERVICE_STATE) HRESULT { return @as(*const IWRdsProtocolManager.VTable, @ptrCast(self.vtable)).NotifyServiceStateChange(@as(*const IWRdsProtocolManager, @ptrCast(self)), pTSServiceStateChange); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWRdsProtocolManager_NotifySessionOfServiceStart(self: *const T, SessionId: ?*WTS_SESSION_ID) HRESULT { return @as(*const IWRdsProtocolManager.VTable, @ptrCast(self.vtable)).NotifySessionOfServiceStart(@as(*const IWRdsProtocolManager, @ptrCast(self)), SessionId); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWRdsProtocolManager_NotifySessionOfServiceStop(self: *const T, SessionId: ?*WTS_SESSION_ID) HRESULT { return @as(*const IWRdsProtocolManager.VTable, @ptrCast(self.vtable)).NotifySessionOfServiceStop(@as(*const IWRdsProtocolManager, @ptrCast(self)), SessionId); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWRdsProtocolManager_NotifySessionStateChange(self: *const T, SessionId: ?*WTS_SESSION_ID, EventId: u32) HRESULT { return @as(*const IWRdsProtocolManager.VTable, @ptrCast(self.vtable)).NotifySessionStateChange(@as(*const IWRdsProtocolManager, @ptrCast(self)), SessionId, EventId); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWRdsProtocolManager_NotifySettingsChange(self: *const T, pWRdsSettings: ?*WRDS_SETTINGS) HRESULT { return @as(*const IWRdsProtocolManager.VTable, @ptrCast(self.vtable)).NotifySettingsChange(@as(*const IWRdsProtocolManager, @ptrCast(self)), pWRdsSettings); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWRdsProtocolManager_Uninitialize(self: *const T) HRESULT { return @as(*const IWRdsProtocolManager.VTable, @ptrCast(self.vtable)).Uninitialize(@as(*const IWRdsProtocolManager, @ptrCast(self))); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windowsServer2012' const IID_IWRdsProtocolListener_Value = Guid.initString("fcbc131b-c686-451d-a773-e279e230f540"); pub const IID_IWRdsProtocolListener = &IID_IWRdsProtocolListener_Value; pub const IWRdsProtocolListener = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, GetSettings: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IWRdsProtocolListener, WRdsListenerSettingLevel: WRDS_LISTENER_SETTING_LEVEL, pWRdsListenerSettings: ?*WRDS_LISTENER_SETTINGS, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IWRdsProtocolListener, WRdsListenerSettingLevel: WRDS_LISTENER_SETTING_LEVEL, pWRdsListenerSettings: ?*WRDS_LISTENER_SETTINGS, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, StartListen: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IWRdsProtocolListener, pCallback: ?*IWRdsProtocolListenerCallback, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IWRdsProtocolListener, pCallback: ?*IWRdsProtocolListenerCallback, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, StopListen: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IWRdsProtocolListener, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IWRdsProtocolListener, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWRdsProtocolListener_GetSettings(self: *const T, WRdsListenerSettingLevel: WRDS_LISTENER_SETTING_LEVEL, pWRdsListenerSettings: ?*WRDS_LISTENER_SETTINGS) HRESULT { return @as(*const IWRdsProtocolListener.VTable, @ptrCast(self.vtable)).GetSettings(@as(*const IWRdsProtocolListener, @ptrCast(self)), WRdsListenerSettingLevel, pWRdsListenerSettings); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWRdsProtocolListener_StartListen(self: *const T, pCallback: ?*IWRdsProtocolListenerCallback) HRESULT { return @as(*const IWRdsProtocolListener.VTable, @ptrCast(self.vtable)).StartListen(@as(*const IWRdsProtocolListener, @ptrCast(self)), pCallback); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWRdsProtocolListener_StopListen(self: *const T) HRESULT { return @as(*const IWRdsProtocolListener.VTable, @ptrCast(self.vtable)).StopListen(@as(*const IWRdsProtocolListener, @ptrCast(self))); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windowsServer2012' const IID_IWRdsProtocolListenerCallback_Value = Guid.initString("3ab27e5b-4449-4dc1-b74a-91621d4fe984"); pub const IID_IWRdsProtocolListenerCallback = &IID_IWRdsProtocolListenerCallback_Value; pub const IWRdsProtocolListenerCallback = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, OnConnected: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IWRdsProtocolListenerCallback, pConnection: ?*IWRdsProtocolConnection, pWRdsConnectionSettings: ?*WRDS_CONNECTION_SETTINGS, pCallback: ?*?*IWRdsProtocolConnectionCallback, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IWRdsProtocolListenerCallback, pConnection: ?*IWRdsProtocolConnection, pWRdsConnectionSettings: ?*WRDS_CONNECTION_SETTINGS, pCallback: ?*?*IWRdsProtocolConnectionCallback, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWRdsProtocolListenerCallback_OnConnected(self: *const T, pConnection: ?*IWRdsProtocolConnection, pWRdsConnectionSettings: ?*WRDS_CONNECTION_SETTINGS, pCallback: ?*?*IWRdsProtocolConnectionCallback) HRESULT { return @as(*const IWRdsProtocolListenerCallback.VTable, @ptrCast(self.vtable)).OnConnected(@as(*const IWRdsProtocolListenerCallback, @ptrCast(self)), pConnection, pWRdsConnectionSettings, pCallback); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windowsServer2012' const IID_IWRdsProtocolConnection_Value = Guid.initString("324ed94f-fdaf-4ff6-81a8-42abe755830b"); pub const IID_IWRdsProtocolConnection = &IID_IWRdsProtocolConnection_Value; pub const IWRdsProtocolConnection = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, GetLogonErrorRedirector: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IWRdsProtocolConnection, ppLogonErrorRedir: ?*?*IWRdsProtocolLogonErrorRedirector, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IWRdsProtocolConnection, ppLogonErrorRedir: ?*?*IWRdsProtocolLogonErrorRedirector, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, AcceptConnection: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IWRdsProtocolConnection, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IWRdsProtocolConnection, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetClientData: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IWRdsProtocolConnection, pClientData: ?*WTS_CLIENT_DATA, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IWRdsProtocolConnection, pClientData: ?*WTS_CLIENT_DATA, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetClientMonitorData: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IWRdsProtocolConnection, pNumMonitors: ?*u32, pPrimaryMonitor: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IWRdsProtocolConnection, pNumMonitors: ?*u32, pPrimaryMonitor: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetUserCredentials: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IWRdsProtocolConnection, pUserCreds: ?*WTS_USER_CREDENTIAL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IWRdsProtocolConnection, pUserCreds: ?*WTS_USER_CREDENTIAL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetLicenseConnection: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IWRdsProtocolConnection, ppLicenseConnection: ?*?*IWRdsProtocolLicenseConnection, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IWRdsProtocolConnection, ppLicenseConnection: ?*?*IWRdsProtocolLicenseConnection, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, AuthenticateClientToSession: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IWRdsProtocolConnection, SessionId: ?*WTS_SESSION_ID, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IWRdsProtocolConnection, SessionId: ?*WTS_SESSION_ID, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, NotifySessionId: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IWRdsProtocolConnection, SessionId: ?*WTS_SESSION_ID, SessionHandle: HANDLE_PTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IWRdsProtocolConnection, SessionId: ?*WTS_SESSION_ID, SessionHandle: HANDLE_PTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetInputHandles: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IWRdsProtocolConnection, pKeyboardHandle: ?*HANDLE_PTR, pMouseHandle: ?*HANDLE_PTR, pBeepHandle: ?*HANDLE_PTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IWRdsProtocolConnection, pKeyboardHandle: ?*HANDLE_PTR, pMouseHandle: ?*HANDLE_PTR, pBeepHandle: ?*HANDLE_PTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetVideoHandle: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IWRdsProtocolConnection, pVideoHandle: ?*HANDLE_PTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IWRdsProtocolConnection, pVideoHandle: ?*HANDLE_PTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, ConnectNotify: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IWRdsProtocolConnection, SessionId: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IWRdsProtocolConnection, SessionId: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, IsUserAllowedToLogon: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IWRdsProtocolConnection, SessionId: u32, UserToken: HANDLE_PTR, pDomainName: ?PWSTR, pUserName: ?PWSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IWRdsProtocolConnection, SessionId: u32, UserToken: HANDLE_PTR, pDomainName: ?PWSTR, pUserName: ?PWSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SessionArbitrationEnumeration: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IWRdsProtocolConnection, hUserToken: HANDLE_PTR, bSingleSessionPerUserEnabled: BOOL, pSessionIdArray: [*]u32, pdwSessionIdentifierCount: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IWRdsProtocolConnection, hUserToken: HANDLE_PTR, bSingleSessionPerUserEnabled: BOOL, pSessionIdArray: [*]u32, pdwSessionIdentifierCount: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, LogonNotify: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IWRdsProtocolConnection, hClientToken: HANDLE_PTR, wszUserName: ?PWSTR, wszDomainName: ?PWSTR, SessionId: ?*WTS_SESSION_ID, pWRdsConnectionSettings: ?*WRDS_CONNECTION_SETTINGS, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IWRdsProtocolConnection, hClientToken: HANDLE_PTR, wszUserName: ?PWSTR, wszDomainName: ?PWSTR, SessionId: ?*WTS_SESSION_ID, pWRdsConnectionSettings: ?*WRDS_CONNECTION_SETTINGS, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, PreDisconnect: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IWRdsProtocolConnection, DisconnectReason: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IWRdsProtocolConnection, DisconnectReason: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, DisconnectNotify: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IWRdsProtocolConnection, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IWRdsProtocolConnection, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Close: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IWRdsProtocolConnection, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IWRdsProtocolConnection, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetProtocolStatus: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IWRdsProtocolConnection, pProtocolStatus: ?*WTS_PROTOCOL_STATUS, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IWRdsProtocolConnection, pProtocolStatus: ?*WTS_PROTOCOL_STATUS, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetLastInputTime: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IWRdsProtocolConnection, pLastInputTime: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IWRdsProtocolConnection, pLastInputTime: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetErrorInfo: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IWRdsProtocolConnection, ulError: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IWRdsProtocolConnection, ulError: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, CreateVirtualChannel: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IWRdsProtocolConnection, szEndpointName: ?PSTR, bStatic: BOOL, RequestedPriority: u32, phChannel: ?*usize, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IWRdsProtocolConnection, szEndpointName: ?PSTR, bStatic: BOOL, RequestedPriority: u32, phChannel: ?*usize, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, QueryProperty: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IWRdsProtocolConnection, QueryType: Guid, ulNumEntriesIn: u32, ulNumEntriesOut: u32, pPropertyEntriesIn: [*]WTS_PROPERTY_VALUE, pPropertyEntriesOut: [*]WTS_PROPERTY_VALUE, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IWRdsProtocolConnection, QueryType: Guid, ulNumEntriesIn: u32, ulNumEntriesOut: u32, pPropertyEntriesIn: [*]WTS_PROPERTY_VALUE, pPropertyEntriesOut: [*]WTS_PROPERTY_VALUE, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetShadowConnection: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IWRdsProtocolConnection, ppShadowConnection: ?*?*IWRdsProtocolShadowConnection, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IWRdsProtocolConnection, ppShadowConnection: ?*?*IWRdsProtocolShadowConnection, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, NotifyCommandProcessCreated: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IWRdsProtocolConnection, SessionId: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IWRdsProtocolConnection, SessionId: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWRdsProtocolConnection_GetLogonErrorRedirector(self: *const T, ppLogonErrorRedir: ?*?*IWRdsProtocolLogonErrorRedirector) HRESULT { return @as(*const IWRdsProtocolConnection.VTable, @ptrCast(self.vtable)).GetLogonErrorRedirector(@as(*const IWRdsProtocolConnection, @ptrCast(self)), ppLogonErrorRedir); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWRdsProtocolConnection_AcceptConnection(self: *const T) HRESULT { return @as(*const IWRdsProtocolConnection.VTable, @ptrCast(self.vtable)).AcceptConnection(@as(*const IWRdsProtocolConnection, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWRdsProtocolConnection_GetClientData(self: *const T, pClientData: ?*WTS_CLIENT_DATA) HRESULT { return @as(*const IWRdsProtocolConnection.VTable, @ptrCast(self.vtable)).GetClientData(@as(*const IWRdsProtocolConnection, @ptrCast(self)), pClientData); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWRdsProtocolConnection_GetClientMonitorData(self: *const T, pNumMonitors: ?*u32, pPrimaryMonitor: ?*u32) HRESULT { return @as(*const IWRdsProtocolConnection.VTable, @ptrCast(self.vtable)).GetClientMonitorData(@as(*const IWRdsProtocolConnection, @ptrCast(self)), pNumMonitors, pPrimaryMonitor); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWRdsProtocolConnection_GetUserCredentials(self: *const T, pUserCreds: ?*WTS_USER_CREDENTIAL) HRESULT { return @as(*const IWRdsProtocolConnection.VTable, @ptrCast(self.vtable)).GetUserCredentials(@as(*const IWRdsProtocolConnection, @ptrCast(self)), pUserCreds); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWRdsProtocolConnection_GetLicenseConnection(self: *const T, ppLicenseConnection: ?*?*IWRdsProtocolLicenseConnection) HRESULT { return @as(*const IWRdsProtocolConnection.VTable, @ptrCast(self.vtable)).GetLicenseConnection(@as(*const IWRdsProtocolConnection, @ptrCast(self)), ppLicenseConnection); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWRdsProtocolConnection_AuthenticateClientToSession(self: *const T, SessionId: ?*WTS_SESSION_ID) HRESULT { return @as(*const IWRdsProtocolConnection.VTable, @ptrCast(self.vtable)).AuthenticateClientToSession(@as(*const IWRdsProtocolConnection, @ptrCast(self)), SessionId); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWRdsProtocolConnection_NotifySessionId(self: *const T, SessionId: ?*WTS_SESSION_ID, SessionHandle: HANDLE_PTR) HRESULT { return @as(*const IWRdsProtocolConnection.VTable, @ptrCast(self.vtable)).NotifySessionId(@as(*const IWRdsProtocolConnection, @ptrCast(self)), SessionId, SessionHandle); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWRdsProtocolConnection_GetInputHandles(self: *const T, pKeyboardHandle: ?*HANDLE_PTR, pMouseHandle: ?*HANDLE_PTR, pBeepHandle: ?*HANDLE_PTR) HRESULT { return @as(*const IWRdsProtocolConnection.VTable, @ptrCast(self.vtable)).GetInputHandles(@as(*const IWRdsProtocolConnection, @ptrCast(self)), pKeyboardHandle, pMouseHandle, pBeepHandle); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWRdsProtocolConnection_GetVideoHandle(self: *const T, pVideoHandle: ?*HANDLE_PTR) HRESULT { return @as(*const IWRdsProtocolConnection.VTable, @ptrCast(self.vtable)).GetVideoHandle(@as(*const IWRdsProtocolConnection, @ptrCast(self)), pVideoHandle); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWRdsProtocolConnection_ConnectNotify(self: *const T, SessionId: u32) HRESULT { return @as(*const IWRdsProtocolConnection.VTable, @ptrCast(self.vtable)).ConnectNotify(@as(*const IWRdsProtocolConnection, @ptrCast(self)), SessionId); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWRdsProtocolConnection_IsUserAllowedToLogon(self: *const T, SessionId: u32, UserToken: HANDLE_PTR, pDomainName: ?PWSTR, pUserName: ?PWSTR) HRESULT { return @as(*const IWRdsProtocolConnection.VTable, @ptrCast(self.vtable)).IsUserAllowedToLogon(@as(*const IWRdsProtocolConnection, @ptrCast(self)), SessionId, UserToken, pDomainName, pUserName); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWRdsProtocolConnection_SessionArbitrationEnumeration(self: *const T, hUserToken: HANDLE_PTR, bSingleSessionPerUserEnabled: BOOL, pSessionIdArray: [*]u32, pdwSessionIdentifierCount: ?*u32) HRESULT { return @as(*const IWRdsProtocolConnection.VTable, @ptrCast(self.vtable)).SessionArbitrationEnumeration(@as(*const IWRdsProtocolConnection, @ptrCast(self)), hUserToken, bSingleSessionPerUserEnabled, pSessionIdArray, pdwSessionIdentifierCount); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWRdsProtocolConnection_LogonNotify(self: *const T, hClientToken: HANDLE_PTR, wszUserName: ?PWSTR, wszDomainName: ?PWSTR, SessionId: ?*WTS_SESSION_ID, pWRdsConnectionSettings: ?*WRDS_CONNECTION_SETTINGS) HRESULT { return @as(*const IWRdsProtocolConnection.VTable, @ptrCast(self.vtable)).LogonNotify(@as(*const IWRdsProtocolConnection, @ptrCast(self)), hClientToken, wszUserName, wszDomainName, SessionId, pWRdsConnectionSettings); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWRdsProtocolConnection_PreDisconnect(self: *const T, DisconnectReason: u32) HRESULT { return @as(*const IWRdsProtocolConnection.VTable, @ptrCast(self.vtable)).PreDisconnect(@as(*const IWRdsProtocolConnection, @ptrCast(self)), DisconnectReason); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWRdsProtocolConnection_DisconnectNotify(self: *const T) HRESULT { return @as(*const IWRdsProtocolConnection.VTable, @ptrCast(self.vtable)).DisconnectNotify(@as(*const IWRdsProtocolConnection, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWRdsProtocolConnection_Close(self: *const T) HRESULT { return @as(*const IWRdsProtocolConnection.VTable, @ptrCast(self.vtable)).Close(@as(*const IWRdsProtocolConnection, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWRdsProtocolConnection_GetProtocolStatus(self: *const T, pProtocolStatus: ?*WTS_PROTOCOL_STATUS) HRESULT { return @as(*const IWRdsProtocolConnection.VTable, @ptrCast(self.vtable)).GetProtocolStatus(@as(*const IWRdsProtocolConnection, @ptrCast(self)), pProtocolStatus); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWRdsProtocolConnection_GetLastInputTime(self: *const T, pLastInputTime: ?*u64) HRESULT { return @as(*const IWRdsProtocolConnection.VTable, @ptrCast(self.vtable)).GetLastInputTime(@as(*const IWRdsProtocolConnection, @ptrCast(self)), pLastInputTime); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWRdsProtocolConnection_SetErrorInfo(self: *const T, ulError: u32) HRESULT { return @as(*const IWRdsProtocolConnection.VTable, @ptrCast(self.vtable)).SetErrorInfo(@as(*const IWRdsProtocolConnection, @ptrCast(self)), ulError); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWRdsProtocolConnection_CreateVirtualChannel(self: *const T, szEndpointName: ?PSTR, bStatic: BOOL, RequestedPriority: u32, phChannel: ?*usize) HRESULT { return @as(*const IWRdsProtocolConnection.VTable, @ptrCast(self.vtable)).CreateVirtualChannel(@as(*const IWRdsProtocolConnection, @ptrCast(self)), szEndpointName, bStatic, RequestedPriority, phChannel); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWRdsProtocolConnection_QueryProperty(self: *const T, QueryType: Guid, ulNumEntriesIn: u32, ulNumEntriesOut: u32, pPropertyEntriesIn: [*]WTS_PROPERTY_VALUE, pPropertyEntriesOut: [*]WTS_PROPERTY_VALUE) HRESULT { return @as(*const IWRdsProtocolConnection.VTable, @ptrCast(self.vtable)).QueryProperty(@as(*const IWRdsProtocolConnection, @ptrCast(self)), QueryType, ulNumEntriesIn, ulNumEntriesOut, pPropertyEntriesIn, pPropertyEntriesOut); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWRdsProtocolConnection_GetShadowConnection(self: *const T, ppShadowConnection: ?*?*IWRdsProtocolShadowConnection) HRESULT { return @as(*const IWRdsProtocolConnection.VTable, @ptrCast(self.vtable)).GetShadowConnection(@as(*const IWRdsProtocolConnection, @ptrCast(self)), ppShadowConnection); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWRdsProtocolConnection_NotifyCommandProcessCreated(self: *const T, SessionId: u32) HRESULT { return @as(*const IWRdsProtocolConnection.VTable, @ptrCast(self.vtable)).NotifyCommandProcessCreated(@as(*const IWRdsProtocolConnection, @ptrCast(self)), SessionId); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windowsServer2012' const IID_IWRdsProtocolConnectionCallback_Value = Guid.initString("f1d70332-d070-4ef1-a088-78313536c2d6"); pub const IID_IWRdsProtocolConnectionCallback = &IID_IWRdsProtocolConnectionCallback_Value; pub const IWRdsProtocolConnectionCallback = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, OnReady: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IWRdsProtocolConnectionCallback, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IWRdsProtocolConnectionCallback, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, BrokenConnection: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IWRdsProtocolConnectionCallback, Reason: u32, Source: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IWRdsProtocolConnectionCallback, Reason: u32, Source: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, StopScreenUpdates: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IWRdsProtocolConnectionCallback, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IWRdsProtocolConnectionCallback, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, RedrawWindow: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IWRdsProtocolConnectionCallback, rect: ?*WTS_SMALL_RECT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IWRdsProtocolConnectionCallback, rect: ?*WTS_SMALL_RECT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetConnectionId: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IWRdsProtocolConnectionCallback, pConnectionId: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IWRdsProtocolConnectionCallback, pConnectionId: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWRdsProtocolConnectionCallback_OnReady(self: *const T) HRESULT { return @as(*const IWRdsProtocolConnectionCallback.VTable, @ptrCast(self.vtable)).OnReady(@as(*const IWRdsProtocolConnectionCallback, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWRdsProtocolConnectionCallback_BrokenConnection(self: *const T, Reason: u32, Source: u32) HRESULT { return @as(*const IWRdsProtocolConnectionCallback.VTable, @ptrCast(self.vtable)).BrokenConnection(@as(*const IWRdsProtocolConnectionCallback, @ptrCast(self)), Reason, Source); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWRdsProtocolConnectionCallback_StopScreenUpdates(self: *const T) HRESULT { return @as(*const IWRdsProtocolConnectionCallback.VTable, @ptrCast(self.vtable)).StopScreenUpdates(@as(*const IWRdsProtocolConnectionCallback, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWRdsProtocolConnectionCallback_RedrawWindow(self: *const T, rect: ?*WTS_SMALL_RECT) HRESULT { return @as(*const IWRdsProtocolConnectionCallback.VTable, @ptrCast(self.vtable)).RedrawWindow(@as(*const IWRdsProtocolConnectionCallback, @ptrCast(self)), rect); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWRdsProtocolConnectionCallback_GetConnectionId(self: *const T, pConnectionId: ?*u32) HRESULT { return @as(*const IWRdsProtocolConnectionCallback.VTable, @ptrCast(self.vtable)).GetConnectionId(@as(*const IWRdsProtocolConnectionCallback, @ptrCast(self)), pConnectionId); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windowsServer2012' const IID_IWRdsProtocolShadowConnection_Value = Guid.initString("9ae85ce6-cade-4548-8feb-99016597f60a"); pub const IID_IWRdsProtocolShadowConnection = &IID_IWRdsProtocolShadowConnection_Value; pub const IWRdsProtocolShadowConnection = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, Start: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IWRdsProtocolShadowConnection, pTargetServerName: ?PWSTR, TargetSessionId: u32, HotKeyVk: u8, HotkeyModifiers: u16, pShadowCallback: ?*IWRdsProtocolShadowCallback, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IWRdsProtocolShadowConnection, pTargetServerName: ?PWSTR, TargetSessionId: u32, HotKeyVk: u8, HotkeyModifiers: u16, pShadowCallback: ?*IWRdsProtocolShadowCallback, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Stop: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IWRdsProtocolShadowConnection, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IWRdsProtocolShadowConnection, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, DoTarget: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IWRdsProtocolShadowConnection, pParam1: [*:0]u8, Param1Size: u32, pParam2: [*:0]u8, Param2Size: u32, pParam3: [*:0]u8, Param3Size: u32, pParam4: [*:0]u8, Param4Size: u32, pClientName: ?PWSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IWRdsProtocolShadowConnection, pParam1: [*:0]u8, Param1Size: u32, pParam2: [*:0]u8, Param2Size: u32, pParam3: [*:0]u8, Param3Size: u32, pParam4: [*:0]u8, Param4Size: u32, pClientName: ?PWSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWRdsProtocolShadowConnection_Start(self: *const T, pTargetServerName: ?PWSTR, TargetSessionId: u32, HotKeyVk: u8, HotkeyModifiers: u16, pShadowCallback: ?*IWRdsProtocolShadowCallback) HRESULT { return @as(*const IWRdsProtocolShadowConnection.VTable, @ptrCast(self.vtable)).Start(@as(*const IWRdsProtocolShadowConnection, @ptrCast(self)), pTargetServerName, TargetSessionId, HotKeyVk, HotkeyModifiers, pShadowCallback); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWRdsProtocolShadowConnection_Stop(self: *const T) HRESULT { return @as(*const IWRdsProtocolShadowConnection.VTable, @ptrCast(self.vtable)).Stop(@as(*const IWRdsProtocolShadowConnection, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWRdsProtocolShadowConnection_DoTarget(self: *const T, pParam1: [*:0]u8, Param1Size: u32, pParam2: [*:0]u8, Param2Size: u32, pParam3: [*:0]u8, Param3Size: u32, pParam4: [*:0]u8, Param4Size: u32, pClientName: ?PWSTR) HRESULT { return @as(*const IWRdsProtocolShadowConnection.VTable, @ptrCast(self.vtable)).DoTarget(@as(*const IWRdsProtocolShadowConnection, @ptrCast(self)), pParam1, Param1Size, pParam2, Param2Size, pParam3, Param3Size, pParam4, Param4Size, pClientName); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windowsServer2012' const IID_IWRdsProtocolShadowCallback_Value = Guid.initString("e0667ce0-0372-40d6-adb2-a0f3322674d6"); pub const IID_IWRdsProtocolShadowCallback = &IID_IWRdsProtocolShadowCallback_Value; pub const IWRdsProtocolShadowCallback = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, StopShadow: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IWRdsProtocolShadowCallback, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IWRdsProtocolShadowCallback, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, InvokeTargetShadow: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IWRdsProtocolShadowCallback, pTargetServerName: ?PWSTR, TargetSessionId: u32, pParam1: [*:0]u8, Param1Size: u32, pParam2: [*:0]u8, Param2Size: u32, pParam3: [*:0]u8, Param3Size: u32, pParam4: [*:0]u8, Param4Size: u32, pClientName: ?PWSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IWRdsProtocolShadowCallback, pTargetServerName: ?PWSTR, TargetSessionId: u32, pParam1: [*:0]u8, Param1Size: u32, pParam2: [*:0]u8, Param2Size: u32, pParam3: [*:0]u8, Param3Size: u32, pParam4: [*:0]u8, Param4Size: u32, pClientName: ?PWSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWRdsProtocolShadowCallback_StopShadow(self: *const T) HRESULT { return @as(*const IWRdsProtocolShadowCallback.VTable, @ptrCast(self.vtable)).StopShadow(@as(*const IWRdsProtocolShadowCallback, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWRdsProtocolShadowCallback_InvokeTargetShadow(self: *const T, pTargetServerName: ?PWSTR, TargetSessionId: u32, pParam1: [*:0]u8, Param1Size: u32, pParam2: [*:0]u8, Param2Size: u32, pParam3: [*:0]u8, Param3Size: u32, pParam4: [*:0]u8, Param4Size: u32, pClientName: ?PWSTR) HRESULT { return @as(*const IWRdsProtocolShadowCallback.VTable, @ptrCast(self.vtable)).InvokeTargetShadow(@as(*const IWRdsProtocolShadowCallback, @ptrCast(self)), pTargetServerName, TargetSessionId, pParam1, Param1Size, pParam2, Param2Size, pParam3, Param3Size, pParam4, Param4Size, pClientName); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windowsServer2012' const IID_IWRdsProtocolLicenseConnection_Value = Guid.initString("1d6a145f-d095-4424-957a-407fae822d84"); pub const IID_IWRdsProtocolLicenseConnection = &IID_IWRdsProtocolLicenseConnection_Value; pub const IWRdsProtocolLicenseConnection = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, RequestLicensingCapabilities: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IWRdsProtocolLicenseConnection, ppLicenseCapabilities: ?*WTS_LICENSE_CAPABILITIES, pcbLicenseCapabilities: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IWRdsProtocolLicenseConnection, ppLicenseCapabilities: ?*WTS_LICENSE_CAPABILITIES, pcbLicenseCapabilities: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SendClientLicense: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IWRdsProtocolLicenseConnection, pClientLicense: [*:0]u8, cbClientLicense: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IWRdsProtocolLicenseConnection, pClientLicense: [*:0]u8, cbClientLicense: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, RequestClientLicense: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IWRdsProtocolLicenseConnection, Reserve1: [*:0]u8, Reserve2: u32, ppClientLicense: [*:0]u8, pcbClientLicense: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IWRdsProtocolLicenseConnection, Reserve1: [*:0]u8, Reserve2: u32, ppClientLicense: [*:0]u8, pcbClientLicense: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, ProtocolComplete: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IWRdsProtocolLicenseConnection, ulComplete: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IWRdsProtocolLicenseConnection, ulComplete: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWRdsProtocolLicenseConnection_RequestLicensingCapabilities(self: *const T, ppLicenseCapabilities: ?*WTS_LICENSE_CAPABILITIES, pcbLicenseCapabilities: ?*u32) HRESULT { return @as(*const IWRdsProtocolLicenseConnection.VTable, @ptrCast(self.vtable)).RequestLicensingCapabilities(@as(*const IWRdsProtocolLicenseConnection, @ptrCast(self)), ppLicenseCapabilities, pcbLicenseCapabilities); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWRdsProtocolLicenseConnection_SendClientLicense(self: *const T, pClientLicense: [*:0]u8, cbClientLicense: u32) HRESULT { return @as(*const IWRdsProtocolLicenseConnection.VTable, @ptrCast(self.vtable)).SendClientLicense(@as(*const IWRdsProtocolLicenseConnection, @ptrCast(self)), pClientLicense, cbClientLicense); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWRdsProtocolLicenseConnection_RequestClientLicense(self: *const T, Reserve1: [*:0]u8, Reserve2: u32, ppClientLicense: [*:0]u8, pcbClientLicense: ?*u32) HRESULT { return @as(*const IWRdsProtocolLicenseConnection.VTable, @ptrCast(self.vtable)).RequestClientLicense(@as(*const IWRdsProtocolLicenseConnection, @ptrCast(self)), Reserve1, Reserve2, ppClientLicense, pcbClientLicense); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWRdsProtocolLicenseConnection_ProtocolComplete(self: *const T, ulComplete: u32) HRESULT { return @as(*const IWRdsProtocolLicenseConnection.VTable, @ptrCast(self.vtable)).ProtocolComplete(@as(*const IWRdsProtocolLicenseConnection, @ptrCast(self)), ulComplete); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windowsServer2012' const IID_IWRdsProtocolLogonErrorRedirector_Value = Guid.initString("519fe83b-142a-4120-a3d5-a405d315281a"); pub const IID_IWRdsProtocolLogonErrorRedirector = &IID_IWRdsProtocolLogonErrorRedirector_Value; pub const IWRdsProtocolLogonErrorRedirector = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, OnBeginPainting: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IWRdsProtocolLogonErrorRedirector, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IWRdsProtocolLogonErrorRedirector, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, RedirectStatus: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IWRdsProtocolLogonErrorRedirector, pszMessage: ?[*:0]const u16, pResponse: ?*WTS_LOGON_ERROR_REDIRECTOR_RESPONSE, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IWRdsProtocolLogonErrorRedirector, pszMessage: ?[*:0]const u16, pResponse: ?*WTS_LOGON_ERROR_REDIRECTOR_RESPONSE, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, RedirectMessage: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IWRdsProtocolLogonErrorRedirector, pszCaption: ?[*:0]const u16, pszMessage: ?[*:0]const u16, uType: u32, pResponse: ?*WTS_LOGON_ERROR_REDIRECTOR_RESPONSE, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IWRdsProtocolLogonErrorRedirector, pszCaption: ?[*:0]const u16, pszMessage: ?[*:0]const u16, uType: u32, pResponse: ?*WTS_LOGON_ERROR_REDIRECTOR_RESPONSE, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, RedirectLogonError: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IWRdsProtocolLogonErrorRedirector, ntsStatus: i32, ntsSubstatus: i32, pszCaption: ?[*:0]const u16, pszMessage: ?[*:0]const u16, uType: u32, pResponse: ?*WTS_LOGON_ERROR_REDIRECTOR_RESPONSE, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IWRdsProtocolLogonErrorRedirector, ntsStatus: i32, ntsSubstatus: i32, pszCaption: ?[*:0]const u16, pszMessage: ?[*:0]const u16, uType: u32, pResponse: ?*WTS_LOGON_ERROR_REDIRECTOR_RESPONSE, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWRdsProtocolLogonErrorRedirector_OnBeginPainting(self: *const T) HRESULT { return @as(*const IWRdsProtocolLogonErrorRedirector.VTable, @ptrCast(self.vtable)).OnBeginPainting(@as(*const IWRdsProtocolLogonErrorRedirector, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWRdsProtocolLogonErrorRedirector_RedirectStatus(self: *const T, pszMessage: ?[*:0]const u16, pResponse: ?*WTS_LOGON_ERROR_REDIRECTOR_RESPONSE) HRESULT { return @as(*const IWRdsProtocolLogonErrorRedirector.VTable, @ptrCast(self.vtable)).RedirectStatus(@as(*const IWRdsProtocolLogonErrorRedirector, @ptrCast(self)), pszMessage, pResponse); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWRdsProtocolLogonErrorRedirector_RedirectMessage(self: *const T, pszCaption: ?[*:0]const u16, pszMessage: ?[*:0]const u16, uType: u32, pResponse: ?*WTS_LOGON_ERROR_REDIRECTOR_RESPONSE) HRESULT { return @as(*const IWRdsProtocolLogonErrorRedirector.VTable, @ptrCast(self.vtable)).RedirectMessage(@as(*const IWRdsProtocolLogonErrorRedirector, @ptrCast(self)), pszCaption, pszMessage, uType, pResponse); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWRdsProtocolLogonErrorRedirector_RedirectLogonError(self: *const T, ntsStatus: i32, ntsSubstatus: i32, pszCaption: ?[*:0]const u16, pszMessage: ?[*:0]const u16, uType: u32, pResponse: ?*WTS_LOGON_ERROR_REDIRECTOR_RESPONSE) HRESULT { return @as(*const IWRdsProtocolLogonErrorRedirector.VTable, @ptrCast(self.vtable)).RedirectLogonError(@as(*const IWRdsProtocolLogonErrorRedirector, @ptrCast(self)), ntsStatus, ntsSubstatus, pszCaption, pszMessage, uType, pResponse); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IWRdsWddmIddProps_Value = Guid.initString("1382df4d-a289-43d1-a184-144726f9af90"); pub const IID_IWRdsWddmIddProps = &IID_IWRdsWddmIddProps_Value; pub const IWRdsWddmIddProps = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, GetHardwareId: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IWRdsWddmIddProps, pDisplayDriverHardwareId: [*:0]u16, Count: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IWRdsWddmIddProps, pDisplayDriverHardwareId: [*:0]u16, Count: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, OnDriverLoad: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IWRdsWddmIddProps, SessionId: u32, DriverHandle: HANDLE_PTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IWRdsWddmIddProps, SessionId: u32, DriverHandle: HANDLE_PTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, OnDriverUnload: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IWRdsWddmIddProps, SessionId: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IWRdsWddmIddProps, SessionId: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, EnableWddmIdd: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IWRdsWddmIddProps, Enabled: BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IWRdsWddmIddProps, Enabled: BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWRdsWddmIddProps_GetHardwareId(self: *const T, pDisplayDriverHardwareId: [*:0]u16, Count: u32) HRESULT { return @as(*const IWRdsWddmIddProps.VTable, @ptrCast(self.vtable)).GetHardwareId(@as(*const IWRdsWddmIddProps, @ptrCast(self)), pDisplayDriverHardwareId, Count); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWRdsWddmIddProps_OnDriverLoad(self: *const T, SessionId: u32, DriverHandle: HANDLE_PTR) HRESULT { return @as(*const IWRdsWddmIddProps.VTable, @ptrCast(self.vtable)).OnDriverLoad(@as(*const IWRdsWddmIddProps, @ptrCast(self)), SessionId, DriverHandle); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWRdsWddmIddProps_OnDriverUnload(self: *const T, SessionId: u32) HRESULT { return @as(*const IWRdsWddmIddProps.VTable, @ptrCast(self.vtable)).OnDriverUnload(@as(*const IWRdsWddmIddProps, @ptrCast(self)), SessionId); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWRdsWddmIddProps_EnableWddmIdd(self: *const T, Enabled: BOOL) HRESULT { return @as(*const IWRdsWddmIddProps.VTable, @ptrCast(self.vtable)).EnableWddmIdd(@as(*const IWRdsWddmIddProps, @ptrCast(self)), Enabled); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IWRdsProtocolConnectionSettings_Value = Guid.initString("83fcf5d3-f6f4-ea94-9cd2-32f280e1e510"); pub const IID_IWRdsProtocolConnectionSettings = &IID_IWRdsProtocolConnectionSettings_Value; pub const IWRdsProtocolConnectionSettings = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, SetConnectionSetting: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IWRdsProtocolConnectionSettings, PropertyID: Guid, pPropertyEntriesIn: ?*WTS_PROPERTY_VALUE, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IWRdsProtocolConnectionSettings, PropertyID: Guid, pPropertyEntriesIn: ?*WTS_PROPERTY_VALUE, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetConnectionSetting: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IWRdsProtocolConnectionSettings, PropertyID: Guid, pPropertyEntriesOut: ?*WTS_PROPERTY_VALUE, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IWRdsProtocolConnectionSettings, PropertyID: Guid, pPropertyEntriesOut: ?*WTS_PROPERTY_VALUE, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWRdsProtocolConnectionSettings_SetConnectionSetting(self: *const T, PropertyID: Guid, pPropertyEntriesIn: ?*WTS_PROPERTY_VALUE) HRESULT { return @as(*const IWRdsProtocolConnectionSettings.VTable, @ptrCast(self.vtable)).SetConnectionSetting(@as(*const IWRdsProtocolConnectionSettings, @ptrCast(self)), PropertyID, pPropertyEntriesIn); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWRdsProtocolConnectionSettings_GetConnectionSetting(self: *const T, PropertyID: Guid, pPropertyEntriesOut: ?*WTS_PROPERTY_VALUE) HRESULT { return @as(*const IWRdsProtocolConnectionSettings.VTable, @ptrCast(self.vtable)).GetConnectionSetting(@as(*const IWRdsProtocolConnectionSettings, @ptrCast(self)), PropertyID, pPropertyEntriesOut); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IWRdsEnhancedFastReconnectArbitrator_Value = Guid.initString("5718ae9b-47f2-499f-b634-d8175bd51131"); pub const IID_IWRdsEnhancedFastReconnectArbitrator = &IID_IWRdsEnhancedFastReconnectArbitrator_Value; pub const IWRdsEnhancedFastReconnectArbitrator = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, GetSessionForEnhancedFastReconnect: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IWRdsEnhancedFastReconnectArbitrator, pSessionIdArray: ?*i32, dwSessionCount: u32, pResultSessionId: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IWRdsEnhancedFastReconnectArbitrator, pSessionIdArray: ?*i32, dwSessionCount: u32, pResultSessionId: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWRdsEnhancedFastReconnectArbitrator_GetSessionForEnhancedFastReconnect(self: *const T, pSessionIdArray: ?*i32, dwSessionCount: u32, pResultSessionId: ?*i32) HRESULT { return @as(*const IWRdsEnhancedFastReconnectArbitrator.VTable, @ptrCast(self.vtable)).GetSessionForEnhancedFastReconnect(@as(*const IWRdsEnhancedFastReconnectArbitrator, @ptrCast(self)), pSessionIdArray, dwSessionCount, pResultSessionId); } }; } pub usingnamespace MethodMixin(@This()); }; pub const PasswordEncodingType = enum(i32) { @"8" = 0, @"16LE" = 1, @"16BE" = 2, }; pub const PasswordEncodingUTF8 = PasswordEncodingType.@"8"; pub const PasswordEncodingUTF16LE = PasswordEncodingType.@"16LE"; pub const PasswordEncodingUTF16BE = PasswordEncodingType.@"16BE"; // TODO: this type is limited to platform 'windows8.0' const IID_IRemoteDesktopClientSettings_Value = Guid.initString("48a0f2a7-2713-431f-bbac-6f4558e7d64d"); pub const IID_IRemoteDesktopClientSettings = &IID_IRemoteDesktopClientSettings_Value; pub const IRemoteDesktopClientSettings = extern struct { pub const VTable = extern struct { base: IDispatch.VTable, ApplySettings: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IRemoteDesktopClientSettings, rdpFileContents: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IRemoteDesktopClientSettings, rdpFileContents: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, RetrieveSettings: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IRemoteDesktopClientSettings, rdpFileContents: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IRemoteDesktopClientSettings, rdpFileContents: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetRdpProperty: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IRemoteDesktopClientSettings, propertyName: ?BSTR, value: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IRemoteDesktopClientSettings, propertyName: ?BSTR, value: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetRdpProperty: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IRemoteDesktopClientSettings, propertyName: ?BSTR, value: VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IRemoteDesktopClientSettings, propertyName: ?BSTR, value: VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IDispatch.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRemoteDesktopClientSettings_ApplySettings(self: *const T, rdpFileContents: ?BSTR) HRESULT { return @as(*const IRemoteDesktopClientSettings.VTable, @ptrCast(self.vtable)).ApplySettings(@as(*const IRemoteDesktopClientSettings, @ptrCast(self)), rdpFileContents); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRemoteDesktopClientSettings_RetrieveSettings(self: *const T, rdpFileContents: ?*?BSTR) HRESULT { return @as(*const IRemoteDesktopClientSettings.VTable, @ptrCast(self.vtable)).RetrieveSettings(@as(*const IRemoteDesktopClientSettings, @ptrCast(self)), rdpFileContents); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRemoteDesktopClientSettings_GetRdpProperty(self: *const T, propertyName: ?BSTR, value: ?*VARIANT) HRESULT { return @as(*const IRemoteDesktopClientSettings.VTable, @ptrCast(self.vtable)).GetRdpProperty(@as(*const IRemoteDesktopClientSettings, @ptrCast(self)), propertyName, value); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRemoteDesktopClientSettings_SetRdpProperty(self: *const T, propertyName: ?BSTR, value: VARIANT) HRESULT { return @as(*const IRemoteDesktopClientSettings.VTable, @ptrCast(self.vtable)).SetRdpProperty(@as(*const IRemoteDesktopClientSettings, @ptrCast(self)), propertyName, value); } }; } pub usingnamespace MethodMixin(@This()); }; pub const RemoteActionType = enum(i32) { Charms = 0, Appbar = 1, Snap = 2, StartScreen = 3, AppSwitch = 4, }; pub const RemoteActionCharms = RemoteActionType.Charms; pub const RemoteActionAppbar = RemoteActionType.Appbar; pub const RemoteActionSnap = RemoteActionType.Snap; pub const RemoteActionStartScreen = RemoteActionType.StartScreen; pub const RemoteActionAppSwitch = RemoteActionType.AppSwitch; pub const SnapshotEncodingType = enum(i32) { i = 0, }; pub const SnapshotEncodingDataUri = SnapshotEncodingType.i; pub const SnapshotFormatType = enum(i32) { Png = 0, Jpeg = 1, Bmp = 2, }; pub const SnapshotFormatPng = SnapshotFormatType.Png; pub const SnapshotFormatJpeg = SnapshotFormatType.Jpeg; pub const SnapshotFormatBmp = SnapshotFormatType.Bmp; // TODO: this type is limited to platform 'windows8.0' const IID_IRemoteDesktopClientActions_Value = Guid.initString("7d54bc4e-1028-45d4-8b0a-b9b6bffba176"); pub const IID_IRemoteDesktopClientActions = &IID_IRemoteDesktopClientActions_Value; pub const IRemoteDesktopClientActions = extern struct { pub const VTable = extern struct { base: IDispatch.VTable, SuspendScreenUpdates: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IRemoteDesktopClientActions, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IRemoteDesktopClientActions, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, ResumeScreenUpdates: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IRemoteDesktopClientActions, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IRemoteDesktopClientActions, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, ExecuteRemoteAction: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IRemoteDesktopClientActions, remoteAction: RemoteActionType, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IRemoteDesktopClientActions, remoteAction: RemoteActionType, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetSnapshot: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IRemoteDesktopClientActions, snapshotEncoding: SnapshotEncodingType, snapshotFormat: SnapshotFormatType, snapshotWidth: u32, snapshotHeight: u32, snapshotData: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IRemoteDesktopClientActions, snapshotEncoding: SnapshotEncodingType, snapshotFormat: SnapshotFormatType, snapshotWidth: u32, snapshotHeight: u32, snapshotData: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IDispatch.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRemoteDesktopClientActions_SuspendScreenUpdates(self: *const T) HRESULT { return @as(*const IRemoteDesktopClientActions.VTable, @ptrCast(self.vtable)).SuspendScreenUpdates(@as(*const IRemoteDesktopClientActions, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRemoteDesktopClientActions_ResumeScreenUpdates(self: *const T) HRESULT { return @as(*const IRemoteDesktopClientActions.VTable, @ptrCast(self.vtable)).ResumeScreenUpdates(@as(*const IRemoteDesktopClientActions, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRemoteDesktopClientActions_ExecuteRemoteAction(self: *const T, remoteAction: RemoteActionType) HRESULT { return @as(*const IRemoteDesktopClientActions.VTable, @ptrCast(self.vtable)).ExecuteRemoteAction(@as(*const IRemoteDesktopClientActions, @ptrCast(self)), remoteAction); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRemoteDesktopClientActions_GetSnapshot(self: *const T, snapshotEncoding: SnapshotEncodingType, snapshotFormat: SnapshotFormatType, snapshotWidth: u32, snapshotHeight: u32, snapshotData: ?*?BSTR) HRESULT { return @as(*const IRemoteDesktopClientActions.VTable, @ptrCast(self.vtable)).GetSnapshot(@as(*const IRemoteDesktopClientActions, @ptrCast(self)), snapshotEncoding, snapshotFormat, snapshotWidth, snapshotHeight, snapshotData); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows8.0' const IID_IRemoteDesktopClientTouchPointer_Value = Guid.initString("260ec22d-8cbc-44b5-9e88-2a37f6c93ae9"); pub const IID_IRemoteDesktopClientTouchPointer = &IID_IRemoteDesktopClientTouchPointer_Value; pub const IRemoteDesktopClientTouchPointer = extern struct { pub const VTable = extern struct { base: IDispatch.VTable, // TODO: this function has a "SpecialName", should Zig do anything with this? put_Enabled: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IRemoteDesktopClientTouchPointer, enabled: i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IRemoteDesktopClientTouchPointer, enabled: i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Enabled: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IRemoteDesktopClientTouchPointer, enabled: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IRemoteDesktopClientTouchPointer, enabled: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_EventsEnabled: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IRemoteDesktopClientTouchPointer, eventsEnabled: i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IRemoteDesktopClientTouchPointer, eventsEnabled: i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_EventsEnabled: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IRemoteDesktopClientTouchPointer, eventsEnabled: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IRemoteDesktopClientTouchPointer, eventsEnabled: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_PointerSpeed: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IRemoteDesktopClientTouchPointer, pointerSpeed: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IRemoteDesktopClientTouchPointer, pointerSpeed: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_PointerSpeed: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IRemoteDesktopClientTouchPointer, pointerSpeed: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IRemoteDesktopClientTouchPointer, pointerSpeed: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IDispatch.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRemoteDesktopClientTouchPointer_put_Enabled(self: *const T, enabled: i16) HRESULT { return @as(*const IRemoteDesktopClientTouchPointer.VTable, @ptrCast(self.vtable)).put_Enabled(@as(*const IRemoteDesktopClientTouchPointer, @ptrCast(self)), enabled); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRemoteDesktopClientTouchPointer_get_Enabled(self: *const T, enabled: ?*i16) HRESULT { return @as(*const IRemoteDesktopClientTouchPointer.VTable, @ptrCast(self.vtable)).get_Enabled(@as(*const IRemoteDesktopClientTouchPointer, @ptrCast(self)), enabled); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRemoteDesktopClientTouchPointer_put_EventsEnabled(self: *const T, eventsEnabled: i16) HRESULT { return @as(*const IRemoteDesktopClientTouchPointer.VTable, @ptrCast(self.vtable)).put_EventsEnabled(@as(*const IRemoteDesktopClientTouchPointer, @ptrCast(self)), eventsEnabled); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRemoteDesktopClientTouchPointer_get_EventsEnabled(self: *const T, eventsEnabled: ?*i16) HRESULT { return @as(*const IRemoteDesktopClientTouchPointer.VTable, @ptrCast(self.vtable)).get_EventsEnabled(@as(*const IRemoteDesktopClientTouchPointer, @ptrCast(self)), eventsEnabled); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRemoteDesktopClientTouchPointer_put_PointerSpeed(self: *const T, pointerSpeed: u32) HRESULT { return @as(*const IRemoteDesktopClientTouchPointer.VTable, @ptrCast(self.vtable)).put_PointerSpeed(@as(*const IRemoteDesktopClientTouchPointer, @ptrCast(self)), pointerSpeed); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRemoteDesktopClientTouchPointer_get_PointerSpeed(self: *const T, pointerSpeed: ?*u32) HRESULT { return @as(*const IRemoteDesktopClientTouchPointer.VTable, @ptrCast(self.vtable)).get_PointerSpeed(@as(*const IRemoteDesktopClientTouchPointer, @ptrCast(self)), pointerSpeed); } }; } pub usingnamespace MethodMixin(@This()); }; pub const KeyCombinationType = enum(i32) { Home = 0, Left = 1, Up = 2, Right = 3, Down = 4, Scroll = 5, }; pub const KeyCombinationHome = KeyCombinationType.Home; pub const KeyCombinationLeft = KeyCombinationType.Left; pub const KeyCombinationUp = KeyCombinationType.Up; pub const KeyCombinationRight = KeyCombinationType.Right; pub const KeyCombinationDown = KeyCombinationType.Down; pub const KeyCombinationScroll = KeyCombinationType.Scroll; // TODO: this type is limited to platform 'windows8.0' const IID_IRemoteDesktopClient_Value = Guid.initString("57d25668-625a-4905-be4e-304caa13f89c"); pub const IID_IRemoteDesktopClient = &IID_IRemoteDesktopClient_Value; pub const IRemoteDesktopClient = extern struct { pub const VTable = extern struct { base: IDispatch.VTable, Connect: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IRemoteDesktopClient, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IRemoteDesktopClient, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Disconnect: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IRemoteDesktopClient, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IRemoteDesktopClient, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Reconnect: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IRemoteDesktopClient, width: u32, height: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IRemoteDesktopClient, width: u32, height: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Settings: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IRemoteDesktopClient, settings: ?*?*IRemoteDesktopClientSettings, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IRemoteDesktopClient, settings: ?*?*IRemoteDesktopClientSettings, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Actions: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IRemoteDesktopClient, actions: ?*?*IRemoteDesktopClientActions, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IRemoteDesktopClient, actions: ?*?*IRemoteDesktopClientActions, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_TouchPointer: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IRemoteDesktopClient, touchPointer: ?*?*IRemoteDesktopClientTouchPointer, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IRemoteDesktopClient, touchPointer: ?*?*IRemoteDesktopClientTouchPointer, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, DeleteSavedCredentials: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IRemoteDesktopClient, serverName: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IRemoteDesktopClient, serverName: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, UpdateSessionDisplaySettings: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IRemoteDesktopClient, width: u32, height: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IRemoteDesktopClient, width: u32, height: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, attachEvent: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IRemoteDesktopClient, eventName: ?BSTR, callback: ?*IDispatch, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IRemoteDesktopClient, eventName: ?BSTR, callback: ?*IDispatch, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, detachEvent: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IRemoteDesktopClient, eventName: ?BSTR, callback: ?*IDispatch, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IRemoteDesktopClient, eventName: ?BSTR, callback: ?*IDispatch, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IDispatch.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRemoteDesktopClient_Connect(self: *const T) HRESULT { return @as(*const IRemoteDesktopClient.VTable, @ptrCast(self.vtable)).Connect(@as(*const IRemoteDesktopClient, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRemoteDesktopClient_Disconnect(self: *const T) HRESULT { return @as(*const IRemoteDesktopClient.VTable, @ptrCast(self.vtable)).Disconnect(@as(*const IRemoteDesktopClient, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRemoteDesktopClient_Reconnect(self: *const T, width: u32, height: u32) HRESULT { return @as(*const IRemoteDesktopClient.VTable, @ptrCast(self.vtable)).Reconnect(@as(*const IRemoteDesktopClient, @ptrCast(self)), width, height); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRemoteDesktopClient_get_Settings(self: *const T, settings: ?*?*IRemoteDesktopClientSettings) HRESULT { return @as(*const IRemoteDesktopClient.VTable, @ptrCast(self.vtable)).get_Settings(@as(*const IRemoteDesktopClient, @ptrCast(self)), settings); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRemoteDesktopClient_get_Actions(self: *const T, actions: ?*?*IRemoteDesktopClientActions) HRESULT { return @as(*const IRemoteDesktopClient.VTable, @ptrCast(self.vtable)).get_Actions(@as(*const IRemoteDesktopClient, @ptrCast(self)), actions); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRemoteDesktopClient_get_TouchPointer(self: *const T, touchPointer: ?*?*IRemoteDesktopClientTouchPointer) HRESULT { return @as(*const IRemoteDesktopClient.VTable, @ptrCast(self.vtable)).get_TouchPointer(@as(*const IRemoteDesktopClient, @ptrCast(self)), touchPointer); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRemoteDesktopClient_DeleteSavedCredentials(self: *const T, serverName: ?BSTR) HRESULT { return @as(*const IRemoteDesktopClient.VTable, @ptrCast(self.vtable)).DeleteSavedCredentials(@as(*const IRemoteDesktopClient, @ptrCast(self)), serverName); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRemoteDesktopClient_UpdateSessionDisplaySettings(self: *const T, width: u32, height: u32) HRESULT { return @as(*const IRemoteDesktopClient.VTable, @ptrCast(self.vtable)).UpdateSessionDisplaySettings(@as(*const IRemoteDesktopClient, @ptrCast(self)), width, height); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRemoteDesktopClient_attachEvent(self: *const T, eventName: ?BSTR, callback: ?*IDispatch) HRESULT { return @as(*const IRemoteDesktopClient.VTable, @ptrCast(self.vtable)).attachEvent(@as(*const IRemoteDesktopClient, @ptrCast(self)), eventName, callback); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRemoteDesktopClient_detachEvent(self: *const T, eventName: ?BSTR, callback: ?*IDispatch) HRESULT { return @as(*const IRemoteDesktopClient.VTable, @ptrCast(self.vtable)).detachEvent(@as(*const IRemoteDesktopClient, @ptrCast(self)), eventName, callback); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IRemoteSystemAdditionalInfoProvider_Value = Guid.initString("eeaa3d5f-ec63-4d27-af38-e86b1d7292cb"); pub const IID_IRemoteSystemAdditionalInfoProvider = &IID_IRemoteSystemAdditionalInfoProvider_Value; pub const IRemoteSystemAdditionalInfoProvider = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, GetAdditionalInfo: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IRemoteSystemAdditionalInfoProvider, deduplicationId: ?*?HSTRING, riid: ?*const Guid, mapView: ?*?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IRemoteSystemAdditionalInfoProvider, deduplicationId: ?*?HSTRING, riid: ?*const Guid, mapView: ?*?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRemoteSystemAdditionalInfoProvider_GetAdditionalInfo(self: *const T, deduplicationId: ?*?HSTRING, riid: ?*const Guid, mapView: ?*?*anyopaque) HRESULT { return @as(*const IRemoteSystemAdditionalInfoProvider.VTable, @ptrCast(self.vtable)).GetAdditionalInfo(@as(*const IRemoteSystemAdditionalInfoProvider, @ptrCast(self)), deduplicationId, riid, mapView); } }; } pub usingnamespace MethodMixin(@This()); }; pub const WTSSESSION_NOTIFICATION = extern struct { cbSize: u32, dwSessionId: u32, }; //-------------------------------------------------------------------------------- // Section: Functions (65) //-------------------------------------------------------------------------------- // TODO: this type is limited to platform 'windows6.0.6000' pub extern "wtsapi32" fn WTSStopRemoteControlSession( LogonId: u32, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows6.0.6000' pub extern "wtsapi32" fn WTSStartRemoteControlSessionW( pTargetServerName: ?PWSTR, TargetLogonId: u32, HotkeyVk: u8, HotkeyModifiers: u16, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows6.0.6000' pub extern "wtsapi32" fn WTSStartRemoteControlSessionA( pTargetServerName: ?PSTR, TargetLogonId: u32, HotkeyVk: u8, HotkeyModifiers: u16, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows6.0.6000' pub extern "wtsapi32" fn WTSConnectSessionA( LogonId: u32, TargetLogonId: u32, pPassword: ?PSTR, bWait: BOOL, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows6.0.6000' pub extern "wtsapi32" fn WTSConnectSessionW( LogonId: u32, TargetLogonId: u32, pPassword: ?PWSTR, bWait: BOOL, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows6.0.6000' pub extern "wtsapi32" fn WTSEnumerateServersW( pDomainName: ?PWSTR, Reserved: u32, Version: u32, ppServerInfo: ?*?*WTS_SERVER_INFOW, pCount: ?*u32, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows6.0.6000' pub extern "wtsapi32" fn WTSEnumerateServersA( pDomainName: ?PSTR, Reserved: u32, Version: u32, ppServerInfo: ?*?*WTS_SERVER_INFOA, pCount: ?*u32, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows6.0.6000' pub extern "wtsapi32" fn WTSOpenServerW( pServerName: ?PWSTR, ) callconv(@import("std").os.windows.WINAPI) ?HANDLE; // TODO: this type is limited to platform 'windows6.0.6000' pub extern "wtsapi32" fn WTSOpenServerA( pServerName: ?PSTR, ) callconv(@import("std").os.windows.WINAPI) ?HANDLE; // TODO: this type is limited to platform 'windows6.1' pub extern "wtsapi32" fn WTSOpenServerExW( pServerName: ?PWSTR, ) callconv(@import("std").os.windows.WINAPI) ?HANDLE; // TODO: this type is limited to platform 'windows6.1' pub extern "wtsapi32" fn WTSOpenServerExA( pServerName: ?PSTR, ) callconv(@import("std").os.windows.WINAPI) ?HANDLE; // TODO: this type is limited to platform 'windows6.0.6000' pub extern "wtsapi32" fn WTSCloseServer( hServer: ?HANDLE, ) callconv(@import("std").os.windows.WINAPI) void; // TODO: this type is limited to platform 'windows6.0.6000' pub extern "wtsapi32" fn WTSEnumerateSessionsW( hServer: ?HANDLE, Reserved: u32, Version: u32, ppSessionInfo: ?*?*WTS_SESSION_INFOW, pCount: ?*u32, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows6.0.6000' pub extern "wtsapi32" fn WTSEnumerateSessionsA( hServer: ?HANDLE, Reserved: u32, Version: u32, ppSessionInfo: ?*?*WTS_SESSION_INFOA, pCount: ?*u32, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows6.1' pub extern "wtsapi32" fn WTSEnumerateSessionsExW( hServer: ?HANDLE, pLevel: ?*u32, Filter: u32, ppSessionInfo: ?*?*WTS_SESSION_INFO_1W, pCount: ?*u32, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows6.1' pub extern "wtsapi32" fn WTSEnumerateSessionsExA( hServer: ?HANDLE, pLevel: ?*u32, Filter: u32, ppSessionInfo: ?*?*WTS_SESSION_INFO_1A, pCount: ?*u32, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows6.0.6000' pub extern "wtsapi32" fn WTSEnumerateProcessesW( hServer: ?HANDLE, Reserved: u32, Version: u32, ppProcessInfo: ?*?*WTS_PROCESS_INFOW, pCount: ?*u32, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows6.0.6000' pub extern "wtsapi32" fn WTSEnumerateProcessesA( hServer: ?HANDLE, Reserved: u32, Version: u32, ppProcessInfo: ?*?*WTS_PROCESS_INFOA, pCount: ?*u32, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows6.0.6000' pub extern "wtsapi32" fn WTSTerminateProcess( hServer: ?HANDLE, ProcessId: u32, ExitCode: u32, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows6.0.6000' pub extern "wtsapi32" fn WTSQuerySessionInformationW( hServer: ?HANDLE, SessionId: u32, WTSInfoClass: WTS_INFO_CLASS, ppBuffer: ?*?PWSTR, pBytesReturned: ?*u32, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows6.0.6000' pub extern "wtsapi32" fn WTSQuerySessionInformationA( hServer: ?HANDLE, SessionId: u32, WTSInfoClass: WTS_INFO_CLASS, ppBuffer: ?*?PSTR, pBytesReturned: ?*u32, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows6.0.6000' pub extern "wtsapi32" fn WTSQueryUserConfigW( pServerName: ?PWSTR, pUserName: ?PWSTR, WTSConfigClass: WTS_CONFIG_CLASS, ppBuffer: ?*?PWSTR, pBytesReturned: ?*u32, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows6.0.6000' pub extern "wtsapi32" fn WTSQueryUserConfigA( pServerName: ?PSTR, pUserName: ?PSTR, WTSConfigClass: WTS_CONFIG_CLASS, ppBuffer: ?*?PSTR, pBytesReturned: ?*u32, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows6.0.6000' pub extern "wtsapi32" fn WTSSetUserConfigW( pServerName: ?PWSTR, pUserName: ?PWSTR, WTSConfigClass: WTS_CONFIG_CLASS, // TODO: what to do with BytesParamIndex 4? pBuffer: ?PWSTR, DataLength: u32, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows6.0.6000' pub extern "wtsapi32" fn WTSSetUserConfigA( pServerName: ?PSTR, pUserName: ?PSTR, WTSConfigClass: WTS_CONFIG_CLASS, // TODO: what to do with BytesParamIndex 4? pBuffer: ?PSTR, DataLength: u32, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows6.0.6000' pub extern "wtsapi32" fn WTSSendMessageW( hServer: ?HANDLE, SessionId: u32, // TODO: what to do with BytesParamIndex 3? pTitle: ?PWSTR, TitleLength: u32, // TODO: what to do with BytesParamIndex 5? pMessage: ?PWSTR, MessageLength: u32, Style: MESSAGEBOX_STYLE, Timeout: u32, pResponse: ?*MESSAGEBOX_RESULT, bWait: BOOL, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows6.0.6000' pub extern "wtsapi32" fn WTSSendMessageA( hServer: ?HANDLE, SessionId: u32, // TODO: what to do with BytesParamIndex 3? pTitle: ?PSTR, TitleLength: u32, // TODO: what to do with BytesParamIndex 5? pMessage: ?PSTR, MessageLength: u32, Style: MESSAGEBOX_STYLE, Timeout: u32, pResponse: ?*MESSAGEBOX_RESULT, bWait: BOOL, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows6.0.6000' pub extern "wtsapi32" fn WTSDisconnectSession( hServer: ?HANDLE, SessionId: u32, bWait: BOOL, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows6.0.6000' pub extern "wtsapi32" fn WTSLogoffSession( hServer: ?HANDLE, SessionId: u32, bWait: BOOL, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows6.0.6000' pub extern "wtsapi32" fn WTSShutdownSystem( hServer: ?HANDLE, ShutdownFlag: u32, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows6.0.6000' pub extern "wtsapi32" fn WTSWaitSystemEvent( hServer: ?HANDLE, EventMask: u32, pEventFlags: ?*u32, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows6.0.6000' pub extern "wtsapi32" fn WTSVirtualChannelOpen( hServer: ?HANDLE, SessionId: u32, pVirtualName: ?PSTR, ) callconv(@import("std").os.windows.WINAPI) HwtsVirtualChannelHandle; // TODO: this type is limited to platform 'windows6.0.6000' pub extern "wtsapi32" fn WTSVirtualChannelOpenEx( SessionId: u32, pVirtualName: ?PSTR, flags: u32, ) callconv(@import("std").os.windows.WINAPI) HwtsVirtualChannelHandle; // TODO: this type is limited to platform 'windows6.0.6000' pub extern "wtsapi32" fn WTSVirtualChannelClose( hChannelHandle: ?HANDLE, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows6.0.6000' pub extern "wtsapi32" fn WTSVirtualChannelRead( hChannelHandle: ?HANDLE, TimeOut: u32, // TODO: what to do with BytesParamIndex 3? Buffer: ?[*]u8, BufferSize: u32, pBytesRead: ?*u32, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows6.0.6000' pub extern "wtsapi32" fn WTSVirtualChannelWrite( hChannelHandle: ?HANDLE, // TODO: what to do with BytesParamIndex 2? Buffer: ?[*]u8, Length: u32, pBytesWritten: ?*u32, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows6.0.6000' pub extern "wtsapi32" fn WTSVirtualChannelPurgeInput( hChannelHandle: ?HANDLE, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows6.0.6000' pub extern "wtsapi32" fn WTSVirtualChannelPurgeOutput( hChannelHandle: ?HANDLE, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows6.0.6000' pub extern "wtsapi32" fn WTSVirtualChannelQuery( hChannelHandle: ?HANDLE, param1: WTS_VIRTUAL_CLASS, ppBuffer: ?*?*anyopaque, pBytesReturned: ?*u32, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows6.0.6000' pub extern "wtsapi32" fn WTSFreeMemory( pMemory: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) void; // TODO: this type is limited to platform 'windows6.0.6000' pub extern "wtsapi32" fn WTSRegisterSessionNotification( hWnd: ?HWND, dwFlags: u32, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows6.0.6000' pub extern "wtsapi32" fn WTSUnRegisterSessionNotification( hWnd: ?HWND, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows6.0.6000' pub extern "wtsapi32" fn WTSRegisterSessionNotificationEx( hServer: ?HANDLE, hWnd: ?HWND, dwFlags: u32, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows6.0.6000' pub extern "wtsapi32" fn WTSUnRegisterSessionNotificationEx( hServer: ?HANDLE, hWnd: ?HWND, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows6.0.6000' pub extern "wtsapi32" fn WTSQueryUserToken( SessionId: u32, phToken: ?*?HANDLE, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows6.1' pub extern "wtsapi32" fn WTSFreeMemoryExW( WTSTypeClass: WTS_TYPE_CLASS, pMemory: ?*anyopaque, NumberOfEntries: u32, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows6.1' pub extern "wtsapi32" fn WTSFreeMemoryExA( WTSTypeClass: WTS_TYPE_CLASS, pMemory: ?*anyopaque, NumberOfEntries: u32, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows6.1' pub extern "wtsapi32" fn WTSEnumerateProcessesExW( hServer: ?HANDLE, pLevel: ?*u32, SessionId: u32, ppProcessInfo: ?*?PWSTR, pCount: ?*u32, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows6.1' pub extern "wtsapi32" fn WTSEnumerateProcessesExA( hServer: ?HANDLE, pLevel: ?*u32, SessionId: u32, ppProcessInfo: ?*?PSTR, pCount: ?*u32, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows6.1' pub extern "wtsapi32" fn WTSEnumerateListenersW( hServer: ?HANDLE, pReserved: ?*anyopaque, Reserved: u32, pListeners: ?[*]?*u16, pCount: ?*u32, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows6.1' pub extern "wtsapi32" fn WTSEnumerateListenersA( hServer: ?HANDLE, pReserved: ?*anyopaque, Reserved: u32, pListeners: ?[*]?*i8, pCount: ?*u32, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows6.1' pub extern "wtsapi32" fn WTSQueryListenerConfigW( hServer: ?HANDLE, pReserved: ?*anyopaque, Reserved: u32, pListenerName: ?PWSTR, pBuffer: ?*WTSLISTENERCONFIGW, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows6.1' pub extern "wtsapi32" fn WTSQueryListenerConfigA( hServer: ?HANDLE, pReserved: ?*anyopaque, Reserved: u32, pListenerName: ?PSTR, pBuffer: ?*WTSLISTENERCONFIGA, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows6.1' pub extern "wtsapi32" fn WTSCreateListenerW( hServer: ?HANDLE, pReserved: ?*anyopaque, Reserved: u32, pListenerName: ?PWSTR, pBuffer: ?*WTSLISTENERCONFIGW, flag: u32, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows6.1' pub extern "wtsapi32" fn WTSCreateListenerA( hServer: ?HANDLE, pReserved: ?*anyopaque, Reserved: u32, pListenerName: ?PSTR, pBuffer: ?*WTSLISTENERCONFIGA, flag: u32, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows6.1' pub extern "wtsapi32" fn WTSSetListenerSecurityW( hServer: ?HANDLE, pReserved: ?*anyopaque, Reserved: u32, pListenerName: ?PWSTR, SecurityInformation: u32, pSecurityDescriptor: ?*SECURITY_DESCRIPTOR, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows6.1' pub extern "wtsapi32" fn WTSSetListenerSecurityA( hServer: ?HANDLE, pReserved: ?*anyopaque, Reserved: u32, pListenerName: ?PSTR, SecurityInformation: u32, pSecurityDescriptor: ?*SECURITY_DESCRIPTOR, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows6.1' pub extern "wtsapi32" fn WTSGetListenerSecurityW( hServer: ?HANDLE, pReserved: ?*anyopaque, Reserved: u32, pListenerName: ?PWSTR, SecurityInformation: u32, pSecurityDescriptor: ?*SECURITY_DESCRIPTOR, nLength: u32, lpnLengthNeeded: ?*u32, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows6.1' pub extern "wtsapi32" fn WTSGetListenerSecurityA( hServer: ?HANDLE, pReserved: ?*anyopaque, Reserved: u32, pListenerName: ?PSTR, SecurityInformation: u32, pSecurityDescriptor: ?*SECURITY_DESCRIPTOR, nLength: u32, lpnLengthNeeded: ?*u32, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows8.0' pub extern "wtsapi32" fn WTSEnableChildSessions( bEnable: BOOL, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows8.0' pub extern "wtsapi32" fn WTSIsChildSessionsEnabled( pbEnabled: ?*BOOL, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows8.0' pub extern "wtsapi32" fn WTSGetChildSessionId( pSessionId: ?*u32, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows8.0' pub extern "wtsapi32" fn WTSSetRenderHint( pRenderHintID: ?*u64, hwndOwner: ?HWND, renderHintType: u32, cbHintDataLength: u32, // TODO: what to do with BytesParamIndex 3? pHintData: ?*u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT; // TODO: this type is limited to platform 'windows6.0.6000' pub extern "kernel32" fn ProcessIdToSessionId( dwProcessId: u32, pSessionId: ?*u32, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows6.0.6000' pub extern "kernel32" fn WTSGetActiveConsoleSessionId() callconv(@import("std").os.windows.WINAPI) u32; //-------------------------------------------------------------------------------- // Section: Unicode Aliases (34) //-------------------------------------------------------------------------------- const thismodule = @This(); pub usingnamespace switch (@import("../zig.zig").unicode_mode) { .ansi => struct { pub const WTS_SERVER_INFO = thismodule.WTS_SERVER_INFOA; pub const WTS_SESSION_INFO = thismodule.WTS_SESSION_INFOA; pub const WTS_SESSION_INFO_1 = thismodule.WTS_SESSION_INFO_1A; pub const WTS_PROCESS_INFO = thismodule.WTS_PROCESS_INFOA; pub const WTSCONFIGINFO = thismodule.WTSCONFIGINFOA; pub const WTSINFO = thismodule.WTSINFOA; pub const WTSINFOEX_LEVEL1_ = thismodule.WTSINFOEX_LEVEL1_A; pub const WTSINFOEX_LEVEL_ = thismodule.WTSINFOEX_LEVEL_A; pub const WTSINFOEX = thismodule.WTSINFOEXA; pub const WTSCLIENT = thismodule.WTSCLIENTA; pub const _WTS_PRODUCT_INFO = thismodule._WTS_PRODUCT_INFOA; pub const WTS_VALIDATION_INFORMATION = thismodule.WTS_VALIDATION_INFORMATIONA; pub const WTSUSERCONFIG = thismodule.WTSUSERCONFIGA; pub const WTS_PROCESS_INFO_EX = thismodule.WTS_PROCESS_INFO_EXA; pub const WTSLISTENERCONFIG = thismodule.WTSLISTENERCONFIGA; pub const WTSStartRemoteControlSession = thismodule.WTSStartRemoteControlSessionA; pub const WTSConnectSession = thismodule.WTSConnectSessionA; pub const WTSEnumerateServers = thismodule.WTSEnumerateServersA; pub const WTSOpenServer = thismodule.WTSOpenServerA; pub const WTSOpenServerEx = thismodule.WTSOpenServerExA; pub const WTSEnumerateSessions = thismodule.WTSEnumerateSessionsA; pub const WTSEnumerateSessionsEx = thismodule.WTSEnumerateSessionsExA; pub const WTSEnumerateProcesses = thismodule.WTSEnumerateProcessesA; pub const WTSQuerySessionInformation = thismodule.WTSQuerySessionInformationA; pub const WTSQueryUserConfig = thismodule.WTSQueryUserConfigA; pub const WTSSetUserConfig = thismodule.WTSSetUserConfigA; pub const WTSSendMessage = thismodule.WTSSendMessageA; pub const WTSFreeMemoryEx = thismodule.WTSFreeMemoryExA; pub const WTSEnumerateProcessesEx = thismodule.WTSEnumerateProcessesExA; pub const WTSEnumerateListeners = thismodule.WTSEnumerateListenersA; pub const WTSQueryListenerConfig = thismodule.WTSQueryListenerConfigA; pub const WTSCreateListener = thismodule.WTSCreateListenerA; pub const WTSSetListenerSecurity = thismodule.WTSSetListenerSecurityA; pub const WTSGetListenerSecurity = thismodule.WTSGetListenerSecurityA; }, .wide => struct { pub const WTS_SERVER_INFO = thismodule.WTS_SERVER_INFOW; pub const WTS_SESSION_INFO = thismodule.WTS_SESSION_INFOW; pub const WTS_SESSION_INFO_1 = thismodule.WTS_SESSION_INFO_1W; pub const WTS_PROCESS_INFO = thismodule.WTS_PROCESS_INFOW; pub const WTSCONFIGINFO = thismodule.WTSCONFIGINFOW; pub const WTSINFO = thismodule.WTSINFOW; pub const WTSINFOEX_LEVEL1_ = thismodule.WTSINFOEX_LEVEL1_W; pub const WTSINFOEX_LEVEL_ = thismodule.WTSINFOEX_LEVEL_W; pub const WTSINFOEX = thismodule.WTSINFOEXW; pub const WTSCLIENT = thismodule.WTSCLIENTW; pub const _WTS_PRODUCT_INFO = thismodule._WTS_PRODUCT_INFOW; pub const WTS_VALIDATION_INFORMATION = thismodule.WTS_VALIDATION_INFORMATIONW; pub const WTSUSERCONFIG = thismodule.WTSUSERCONFIGW; pub const WTS_PROCESS_INFO_EX = thismodule.WTS_PROCESS_INFO_EXW; pub const WTSLISTENERCONFIG = thismodule.WTSLISTENERCONFIGW; pub const WTSStartRemoteControlSession = thismodule.WTSStartRemoteControlSessionW; pub const WTSConnectSession = thismodule.WTSConnectSessionW; pub const WTSEnumerateServers = thismodule.WTSEnumerateServersW; pub const WTSOpenServer = thismodule.WTSOpenServerW; pub const WTSOpenServerEx = thismodule.WTSOpenServerExW; pub const WTSEnumerateSessions = thismodule.WTSEnumerateSessionsW; pub const WTSEnumerateSessionsEx = thismodule.WTSEnumerateSessionsExW; pub const WTSEnumerateProcesses = thismodule.WTSEnumerateProcessesW; pub const WTSQuerySessionInformation = thismodule.WTSQuerySessionInformationW; pub const WTSQueryUserConfig = thismodule.WTSQueryUserConfigW; pub const WTSSetUserConfig = thismodule.WTSSetUserConfigW; pub const WTSSendMessage = thismodule.WTSSendMessageW; pub const WTSFreeMemoryEx = thismodule.WTSFreeMemoryExW; pub const WTSEnumerateProcessesEx = thismodule.WTSEnumerateProcessesExW; pub const WTSEnumerateListeners = thismodule.WTSEnumerateListenersW; pub const WTSQueryListenerConfig = thismodule.WTSQueryListenerConfigW; pub const WTSCreateListener = thismodule.WTSCreateListenerW; pub const WTSSetListenerSecurity = thismodule.WTSSetListenerSecurityW; pub const WTSGetListenerSecurity = thismodule.WTSGetListenerSecurityW; }, .unspecified => if (@import("builtin").is_test) struct { pub const WTS_SERVER_INFO = *opaque {}; pub const WTS_SESSION_INFO = *opaque {}; pub const WTS_SESSION_INFO_1 = *opaque {}; pub const WTS_PROCESS_INFO = *opaque {}; pub const WTSCONFIGINFO = *opaque {}; pub const WTSINFO = *opaque {}; pub const WTSINFOEX_LEVEL1_ = *opaque {}; pub const WTSINFOEX_LEVEL_ = *opaque {}; pub const WTSINFOEX = *opaque {}; pub const WTSCLIENT = *opaque {}; pub const _WTS_PRODUCT_INFO = *opaque {}; pub const WTS_VALIDATION_INFORMATION = *opaque {}; pub const WTSUSERCONFIG = *opaque {}; pub const WTS_PROCESS_INFO_EX = *opaque {}; pub const WTSLISTENERCONFIG = *opaque {}; pub const WTSStartRemoteControlSession = *opaque {}; pub const WTSConnectSession = *opaque {}; pub const WTSEnumerateServers = *opaque {}; pub const WTSOpenServer = *opaque {}; pub const WTSOpenServerEx = *opaque {}; pub const WTSEnumerateSessions = *opaque {}; pub const WTSEnumerateSessionsEx = *opaque {}; pub const WTSEnumerateProcesses = *opaque {}; pub const WTSQuerySessionInformation = *opaque {}; pub const WTSQueryUserConfig = *opaque {}; pub const WTSSetUserConfig = *opaque {}; pub const WTSSendMessage = *opaque {}; pub const WTSFreeMemoryEx = *opaque {}; pub const WTSEnumerateProcessesEx = *opaque {}; pub const WTSEnumerateListeners = *opaque {}; pub const WTSQueryListenerConfig = *opaque {}; pub const WTSCreateListener = *opaque {}; pub const WTSSetListenerSecurity = *opaque {}; pub const WTSGetListenerSecurity = *opaque {}; } else struct { pub const WTS_SERVER_INFO = @compileError("'WTS_SERVER_INFO' requires that UNICODE be set to true or false in the root module"); pub const WTS_SESSION_INFO = @compileError("'WTS_SESSION_INFO' requires that UNICODE be set to true or false in the root module"); pub const WTS_SESSION_INFO_1 = @compileError("'WTS_SESSION_INFO_1' requires that UNICODE be set to true or false in the root module"); pub const WTS_PROCESS_INFO = @compileError("'WTS_PROCESS_INFO' requires that UNICODE be set to true or false in the root module"); pub const WTSCONFIGINFO = @compileError("'WTSCONFIGINFO' requires that UNICODE be set to true or false in the root module"); pub const WTSINFO = @compileError("'WTSINFO' requires that UNICODE be set to true or false in the root module"); pub const WTSINFOEX_LEVEL1_ = @compileError("'WTSINFOEX_LEVEL1_' requires that UNICODE be set to true or false in the root module"); pub const WTSINFOEX_LEVEL_ = @compileError("'WTSINFOEX_LEVEL_' requires that UNICODE be set to true or false in the root module"); pub const WTSINFOEX = @compileError("'WTSINFOEX' requires that UNICODE be set to true or false in the root module"); pub const WTSCLIENT = @compileError("'WTSCLIENT' requires that UNICODE be set to true or false in the root module"); pub const _WTS_PRODUCT_INFO = @compileError("'_WTS_PRODUCT_INFO' requires that UNICODE be set to true or false in the root module"); pub const WTS_VALIDATION_INFORMATION = @compileError("'WTS_VALIDATION_INFORMATION' requires that UNICODE be set to true or false in the root module"); pub const WTSUSERCONFIG = @compileError("'WTSUSERCONFIG' requires that UNICODE be set to true or false in the root module"); pub const WTS_PROCESS_INFO_EX = @compileError("'WTS_PROCESS_INFO_EX' requires that UNICODE be set to true or false in the root module"); pub const WTSLISTENERCONFIG = @compileError("'WTSLISTENERCONFIG' requires that UNICODE be set to true or false in the root module"); pub const WTSStartRemoteControlSession = @compileError("'WTSStartRemoteControlSession' requires that UNICODE be set to true or false in the root module"); pub const WTSConnectSession = @compileError("'WTSConnectSession' requires that UNICODE be set to true or false in the root module"); pub const WTSEnumerateServers = @compileError("'WTSEnumerateServers' requires that UNICODE be set to true or false in the root module"); pub const WTSOpenServer = @compileError("'WTSOpenServer' requires that UNICODE be set to true or false in the root module"); pub const WTSOpenServerEx = @compileError("'WTSOpenServerEx' requires that UNICODE be set to true or false in the root module"); pub const WTSEnumerateSessions = @compileError("'WTSEnumerateSessions' requires that UNICODE be set to true or false in the root module"); pub const WTSEnumerateSessionsEx = @compileError("'WTSEnumerateSessionsEx' requires that UNICODE be set to true or false in the root module"); pub const WTSEnumerateProcesses = @compileError("'WTSEnumerateProcesses' requires that UNICODE be set to true or false in the root module"); pub const WTSQuerySessionInformation = @compileError("'WTSQuerySessionInformation' requires that UNICODE be set to true or false in the root module"); pub const WTSQueryUserConfig = @compileError("'WTSQueryUserConfig' requires that UNICODE be set to true or false in the root module"); pub const WTSSetUserConfig = @compileError("'WTSSetUserConfig' requires that UNICODE be set to true or false in the root module"); pub const WTSSendMessage = @compileError("'WTSSendMessage' requires that UNICODE be set to true or false in the root module"); pub const WTSFreeMemoryEx = @compileError("'WTSFreeMemoryEx' requires that UNICODE be set to true or false in the root module"); pub const WTSEnumerateProcessesEx = @compileError("'WTSEnumerateProcessesEx' requires that UNICODE be set to true or false in the root module"); pub const WTSEnumerateListeners = @compileError("'WTSEnumerateListeners' requires that UNICODE be set to true or false in the root module"); pub const WTSQueryListenerConfig = @compileError("'WTSQueryListenerConfig' requires that UNICODE be set to true or false in the root module"); pub const WTSCreateListener = @compileError("'WTSCreateListener' requires that UNICODE be set to true or false in the root module"); pub const WTSSetListenerSecurity = @compileError("'WTSSetListenerSecurity' requires that UNICODE be set to true or false in the root module"); pub const WTSGetListenerSecurity = @compileError("'WTSGetListenerSecurity' requires that UNICODE be set to true or false in the root module"); }, }; //-------------------------------------------------------------------------------- // Section: Imports (26) //-------------------------------------------------------------------------------- const Guid = @import("../zig.zig").Guid; const APO_CONNECTION_PROPERTY = @import("../media/audio/apo.zig").APO_CONNECTION_PROPERTY; const BOOL = @import("../foundation.zig").BOOL; const BOOLEAN = @import("../foundation.zig").BOOLEAN; const BSTR = @import("../foundation.zig").BSTR; const CHAR = @import("../foundation.zig").CHAR; const FILETIME = @import("../foundation.zig").FILETIME; const HANDLE = @import("../foundation.zig").HANDLE; const HANDLE_PTR = @import("../foundation.zig").HANDLE_PTR; const HRESULT = @import("../foundation.zig").HRESULT; const HSTRING = @import("../system/win_rt.zig").HSTRING; const HWND = @import("../foundation.zig").HWND; const IDispatch = @import("../system/com.zig").IDispatch; const IPropertyBag = @import("../system/com/structured_storage.zig").IPropertyBag; const IUnknown = @import("../system/com.zig").IUnknown; const LARGE_INTEGER = @import("../foundation.zig").LARGE_INTEGER; const MESSAGEBOX_RESULT = @import("../ui/windows_and_messaging.zig").MESSAGEBOX_RESULT; const MESSAGEBOX_STYLE = @import("../ui/windows_and_messaging.zig").MESSAGEBOX_STYLE; const PSID = @import("../foundation.zig").PSID; const PSTR = @import("../foundation.zig").PSTR; const PWSTR = @import("../foundation.zig").PWSTR; const RECT = @import("../foundation.zig").RECT; const SAFEARRAY = @import("../system/com.zig").SAFEARRAY; const SECURITY_DESCRIPTOR = @import("../security.zig").SECURITY_DESCRIPTOR; const VARIANT = @import("../system/com.zig").VARIANT; const WAVEFORMATEX = @import("../media/audio.zig").WAVEFORMATEX; test { // The following '_ = <FuncPtrType>' lines are a workaround for https://github.com/ziglang/zig/issues/4476 if (@hasDecl(@This(), "PCHANNEL_INIT_EVENT_FN")) { _ = PCHANNEL_INIT_EVENT_FN; } if (@hasDecl(@This(), "PCHANNEL_OPEN_EVENT_FN")) { _ = PCHANNEL_OPEN_EVENT_FN; } if (@hasDecl(@This(), "PVIRTUALCHANNELINIT")) { _ = PVIRTUALCHANNELINIT; } if (@hasDecl(@This(), "PVIRTUALCHANNELOPEN")) { _ = PVIRTUALCHANNELOPEN; } if (@hasDecl(@This(), "PVIRTUALCHANNELCLOSE")) { _ = PVIRTUALCHANNELCLOSE; } if (@hasDecl(@This(), "PVIRTUALCHANNELWRITE")) { _ = PVIRTUALCHANNELWRITE; } if (@hasDecl(@This(), "PVIRTUALCHANNELENTRY")) { _ = PVIRTUALCHANNELENTRY; } @setEvalBranchQuota(comptime @import("std").meta.declarations(@This()).len * 3); // reference all the pub declarations if (!@import("builtin").is_test) return; inline for (comptime @import("std").meta.declarations(@This())) |decl| { if (decl.is_pub) { _ = @field(@This(), decl.name); } } }
0
repos/capy/vendor/zigwin32/win32
repos/capy/vendor/zigwin32/win32/system/threading.zig
//! NOTE: this file is autogenerated, DO NOT MODIFY //-------------------------------------------------------------------------------- // Section: Constants (29) //-------------------------------------------------------------------------------- pub const WAIT_OBJECT_0 = @as(u32, 0); pub const WAIT_ABANDONED = @as(u32, 128); pub const WAIT_ABANDONED_0 = @as(u32, 128); pub const WAIT_IO_COMPLETION = @as(u32, 192); pub const PRIVATE_NAMESPACE_FLAG_DESTROY = @as(u32, 1); pub const PROC_THREAD_ATTRIBUTE_REPLACE_VALUE = @as(u32, 1); pub const THREAD_POWER_THROTTLING_CURRENT_VERSION = @as(u32, 1); pub const THREAD_POWER_THROTTLING_EXECUTION_SPEED = @as(u32, 1); pub const THREAD_POWER_THROTTLING_VALID_FLAGS = @as(u32, 1); pub const PME_CURRENT_VERSION = @as(u32, 1); pub const PME_FAILFAST_ON_COMMIT_FAIL_DISABLE = @as(u32, 0); pub const PME_FAILFAST_ON_COMMIT_FAIL_ENABLE = @as(u32, 1); pub const PROCESS_POWER_THROTTLING_CURRENT_VERSION = @as(u32, 1); pub const PROCESS_POWER_THROTTLING_EXECUTION_SPEED = @as(u32, 1); pub const PROCESS_POWER_THROTTLING_IGNORE_TIMER_RESOLUTION = @as(u32, 4); pub const PROCESS_LEAP_SECOND_INFO_FLAG_ENABLE_SIXTY_SECOND = @as(u32, 1); pub const PROCESS_LEAP_SECOND_INFO_VALID_FLAGS = @as(u32, 1); pub const INIT_ONCE_CHECK_ONLY = @as(u32, 1); pub const INIT_ONCE_ASYNC = @as(u32, 2); pub const INIT_ONCE_INIT_FAILED = @as(u32, 4); pub const INIT_ONCE_CTX_RESERVED_BITS = @as(u32, 2); pub const CONDITION_VARIABLE_LOCKMODE_SHARED = @as(u32, 1); pub const MUTEX_MODIFY_STATE = @as(u32, 1); pub const CREATE_MUTEX_INITIAL_OWNER = @as(u32, 1); pub const CREATE_WAITABLE_TIMER_MANUAL_RESET = @as(u32, 1); pub const CREATE_WAITABLE_TIMER_HIGH_RESOLUTION = @as(u32, 2); pub const SYNCHRONIZATION_BARRIER_FLAGS_SPIN_ONLY = @as(u32, 1); pub const SYNCHRONIZATION_BARRIER_FLAGS_BLOCK_ONLY = @as(u32, 2); pub const SYNCHRONIZATION_BARRIER_FLAGS_NO_DELETE = @as(u32, 4); //-------------------------------------------------------------------------------- // Section: Types (84) //-------------------------------------------------------------------------------- pub const THREAD_CREATION_FLAGS = enum(u32) { THREAD_CREATE_RUN_IMMEDIATELY = 0, THREAD_CREATE_SUSPENDED = 4, STACK_SIZE_PARAM_IS_A_RESERVATION = 65536, _, pub fn initFlags(o: struct { THREAD_CREATE_RUN_IMMEDIATELY: u1 = 0, THREAD_CREATE_SUSPENDED: u1 = 0, STACK_SIZE_PARAM_IS_A_RESERVATION: u1 = 0, }) THREAD_CREATION_FLAGS { return @as(THREAD_CREATION_FLAGS, @enumFromInt((if (o.THREAD_CREATE_RUN_IMMEDIATELY == 1) @intFromEnum(THREAD_CREATION_FLAGS.THREAD_CREATE_RUN_IMMEDIATELY) else 0) | (if (o.THREAD_CREATE_SUSPENDED == 1) @intFromEnum(THREAD_CREATION_FLAGS.THREAD_CREATE_SUSPENDED) else 0) | (if (o.STACK_SIZE_PARAM_IS_A_RESERVATION == 1) @intFromEnum(THREAD_CREATION_FLAGS.STACK_SIZE_PARAM_IS_A_RESERVATION) else 0))); } }; pub const THREAD_CREATE_RUN_IMMEDIATELY = THREAD_CREATION_FLAGS.THREAD_CREATE_RUN_IMMEDIATELY; pub const THREAD_CREATE_SUSPENDED = THREAD_CREATION_FLAGS.THREAD_CREATE_SUSPENDED; pub const STACK_SIZE_PARAM_IS_A_RESERVATION = THREAD_CREATION_FLAGS.STACK_SIZE_PARAM_IS_A_RESERVATION; pub const THREAD_PRIORITY = enum(i32) { MODE_BACKGROUND_BEGIN = 65536, MODE_BACKGROUND_END = 131072, PRIORITY_ABOVE_NORMAL = 1, PRIORITY_BELOW_NORMAL = -1, PRIORITY_HIGHEST = 2, PRIORITY_IDLE = -15, PRIORITY_MIN = -2, // PRIORITY_LOWEST = -2, this enum value conflicts with PRIORITY_MIN PRIORITY_NORMAL = 0, PRIORITY_TIME_CRITICAL = 15, }; pub const THREAD_MODE_BACKGROUND_BEGIN = THREAD_PRIORITY.MODE_BACKGROUND_BEGIN; pub const THREAD_MODE_BACKGROUND_END = THREAD_PRIORITY.MODE_BACKGROUND_END; pub const THREAD_PRIORITY_ABOVE_NORMAL = THREAD_PRIORITY.PRIORITY_ABOVE_NORMAL; pub const THREAD_PRIORITY_BELOW_NORMAL = THREAD_PRIORITY.PRIORITY_BELOW_NORMAL; pub const THREAD_PRIORITY_HIGHEST = THREAD_PRIORITY.PRIORITY_HIGHEST; pub const THREAD_PRIORITY_IDLE = THREAD_PRIORITY.PRIORITY_IDLE; pub const THREAD_PRIORITY_MIN = THREAD_PRIORITY.PRIORITY_MIN; pub const THREAD_PRIORITY_LOWEST = THREAD_PRIORITY.PRIORITY_MIN; pub const THREAD_PRIORITY_NORMAL = THREAD_PRIORITY.PRIORITY_NORMAL; pub const THREAD_PRIORITY_TIME_CRITICAL = THREAD_PRIORITY.PRIORITY_TIME_CRITICAL; pub const WORKER_THREAD_FLAGS = enum(u32) { EXECUTEDEFAULT = 0, EXECUTEINIOTHREAD = 1, EXECUTEINPERSISTENTTHREAD = 128, EXECUTEINWAITTHREAD = 4, EXECUTELONGFUNCTION = 16, EXECUTEONLYONCE = 8, TRANSFER_IMPERSONATION = 256, EXECUTEINTIMERTHREAD = 32, _, pub fn initFlags(o: struct { EXECUTEDEFAULT: u1 = 0, EXECUTEINIOTHREAD: u1 = 0, EXECUTEINPERSISTENTTHREAD: u1 = 0, EXECUTEINWAITTHREAD: u1 = 0, EXECUTELONGFUNCTION: u1 = 0, EXECUTEONLYONCE: u1 = 0, TRANSFER_IMPERSONATION: u1 = 0, EXECUTEINTIMERTHREAD: u1 = 0, }) WORKER_THREAD_FLAGS { return @as(WORKER_THREAD_FLAGS, @enumFromInt((if (o.EXECUTEDEFAULT == 1) @intFromEnum(WORKER_THREAD_FLAGS.EXECUTEDEFAULT) else 0) | (if (o.EXECUTEINIOTHREAD == 1) @intFromEnum(WORKER_THREAD_FLAGS.EXECUTEINIOTHREAD) else 0) | (if (o.EXECUTEINPERSISTENTTHREAD == 1) @intFromEnum(WORKER_THREAD_FLAGS.EXECUTEINPERSISTENTTHREAD) else 0) | (if (o.EXECUTEINWAITTHREAD == 1) @intFromEnum(WORKER_THREAD_FLAGS.EXECUTEINWAITTHREAD) else 0) | (if (o.EXECUTELONGFUNCTION == 1) @intFromEnum(WORKER_THREAD_FLAGS.EXECUTELONGFUNCTION) else 0) | (if (o.EXECUTEONLYONCE == 1) @intFromEnum(WORKER_THREAD_FLAGS.EXECUTEONLYONCE) else 0) | (if (o.TRANSFER_IMPERSONATION == 1) @intFromEnum(WORKER_THREAD_FLAGS.TRANSFER_IMPERSONATION) else 0) | (if (o.EXECUTEINTIMERTHREAD == 1) @intFromEnum(WORKER_THREAD_FLAGS.EXECUTEINTIMERTHREAD) else 0))); } }; pub const WT_EXECUTEDEFAULT = WORKER_THREAD_FLAGS.EXECUTEDEFAULT; pub const WT_EXECUTEINIOTHREAD = WORKER_THREAD_FLAGS.EXECUTEINIOTHREAD; pub const WT_EXECUTEINPERSISTENTTHREAD = WORKER_THREAD_FLAGS.EXECUTEINPERSISTENTTHREAD; pub const WT_EXECUTEINWAITTHREAD = WORKER_THREAD_FLAGS.EXECUTEINWAITTHREAD; pub const WT_EXECUTELONGFUNCTION = WORKER_THREAD_FLAGS.EXECUTELONGFUNCTION; pub const WT_EXECUTEONLYONCE = WORKER_THREAD_FLAGS.EXECUTEONLYONCE; pub const WT_TRANSFER_IMPERSONATION = WORKER_THREAD_FLAGS.TRANSFER_IMPERSONATION; pub const WT_EXECUTEINTIMERTHREAD = WORKER_THREAD_FLAGS.EXECUTEINTIMERTHREAD; pub const CREATE_EVENT = enum(u32) { INITIAL_SET = 2, MANUAL_RESET = 1, _, pub fn initFlags(o: struct { INITIAL_SET: u1 = 0, MANUAL_RESET: u1 = 0, }) CREATE_EVENT { return @as(CREATE_EVENT, @enumFromInt((if (o.INITIAL_SET == 1) @intFromEnum(CREATE_EVENT.INITIAL_SET) else 0) | (if (o.MANUAL_RESET == 1) @intFromEnum(CREATE_EVENT.MANUAL_RESET) else 0))); } }; pub const CREATE_EVENT_INITIAL_SET = CREATE_EVENT.INITIAL_SET; pub const CREATE_EVENT_MANUAL_RESET = CREATE_EVENT.MANUAL_RESET; pub const CREATE_PROCESS_LOGON_FLAGS = enum(u32) { WITH_PROFILE = 1, NETCREDENTIALS_ONLY = 2, }; pub const LOGON_WITH_PROFILE = CREATE_PROCESS_LOGON_FLAGS.WITH_PROFILE; pub const LOGON_NETCREDENTIALS_ONLY = CREATE_PROCESS_LOGON_FLAGS.NETCREDENTIALS_ONLY; pub const PROCESS_AFFINITY_AUTO_UPDATE_FLAGS = enum(u32) { DISABLE_AUTO_UPDATE = 0, ENABLE_AUTO_UPDATE = 1, }; pub const PROCESS_AFFINITY_DISABLE_AUTO_UPDATE = PROCESS_AFFINITY_AUTO_UPDATE_FLAGS.DISABLE_AUTO_UPDATE; pub const PROCESS_AFFINITY_ENABLE_AUTO_UPDATE = PROCESS_AFFINITY_AUTO_UPDATE_FLAGS.ENABLE_AUTO_UPDATE; pub const PROCESS_DEP_FLAGS = enum(u32) { ENABLE = 1, DISABLE_ATL_THUNK_EMULATION = 2, NONE = 0, _, pub fn initFlags(o: struct { ENABLE: u1 = 0, DISABLE_ATL_THUNK_EMULATION: u1 = 0, NONE: u1 = 0, }) PROCESS_DEP_FLAGS { return @as(PROCESS_DEP_FLAGS, @enumFromInt((if (o.ENABLE == 1) @intFromEnum(PROCESS_DEP_FLAGS.ENABLE) else 0) | (if (o.DISABLE_ATL_THUNK_EMULATION == 1) @intFromEnum(PROCESS_DEP_FLAGS.DISABLE_ATL_THUNK_EMULATION) else 0) | (if (o.NONE == 1) @intFromEnum(PROCESS_DEP_FLAGS.NONE) else 0))); } }; pub const PROCESS_DEP_ENABLE = PROCESS_DEP_FLAGS.ENABLE; pub const PROCESS_DEP_DISABLE_ATL_THUNK_EMULATION = PROCESS_DEP_FLAGS.DISABLE_ATL_THUNK_EMULATION; pub const PROCESS_DEP_NONE = PROCESS_DEP_FLAGS.NONE; pub const PROCESS_NAME_FORMAT = enum(u32) { WIN32 = 0, NATIVE = 1, }; pub const PROCESS_NAME_WIN32 = PROCESS_NAME_FORMAT.WIN32; pub const PROCESS_NAME_NATIVE = PROCESS_NAME_FORMAT.NATIVE; pub const PROCESSOR_FEATURE_ID = enum(u32) { ARM_64BIT_LOADSTORE_ATOMIC = 25, ARM_DIVIDE_INSTRUCTION_AVAILABLE = 24, ARM_EXTERNAL_CACHE_AVAILABLE = 26, ARM_FMAC_INSTRUCTIONS_AVAILABLE = 27, ARM_VFP_32_REGISTERS_AVAILABLE = 18, @"3DNOW_INSTRUCTIONS_AVAILABLE" = 7, CHANNELS_ENABLED = 16, COMPARE_EXCHANGE_DOUBLE = 2, COMPARE_EXCHANGE128 = 14, COMPARE64_EXCHANGE128 = 15, FASTFAIL_AVAILABLE = 23, FLOATING_POINT_EMULATED = 1, FLOATING_POINT_PRECISION_ERRATA = 0, MMX_INSTRUCTIONS_AVAILABLE = 3, NX_ENABLED = 12, PAE_ENABLED = 9, RDTSC_INSTRUCTION_AVAILABLE = 8, RDWRFSGSBASE_AVAILABLE = 22, SECOND_LEVEL_ADDRESS_TRANSLATION = 20, SSE3_INSTRUCTIONS_AVAILABLE = 13, VIRT_FIRMWARE_ENABLED = 21, XMMI_INSTRUCTIONS_AVAILABLE = 6, XMMI64_INSTRUCTIONS_AVAILABLE = 10, XSAVE_ENABLED = 17, ARM_V8_INSTRUCTIONS_AVAILABLE = 29, ARM_V8_CRYPTO_INSTRUCTIONS_AVAILABLE = 30, ARM_V8_CRC32_INSTRUCTIONS_AVAILABLE = 31, ARM_V81_ATOMIC_INSTRUCTIONS_AVAILABLE = 34, }; pub const PF_ARM_64BIT_LOADSTORE_ATOMIC = PROCESSOR_FEATURE_ID.ARM_64BIT_LOADSTORE_ATOMIC; pub const PF_ARM_DIVIDE_INSTRUCTION_AVAILABLE = PROCESSOR_FEATURE_ID.ARM_DIVIDE_INSTRUCTION_AVAILABLE; pub const PF_ARM_EXTERNAL_CACHE_AVAILABLE = PROCESSOR_FEATURE_ID.ARM_EXTERNAL_CACHE_AVAILABLE; pub const PF_ARM_FMAC_INSTRUCTIONS_AVAILABLE = PROCESSOR_FEATURE_ID.ARM_FMAC_INSTRUCTIONS_AVAILABLE; pub const PF_ARM_VFP_32_REGISTERS_AVAILABLE = PROCESSOR_FEATURE_ID.ARM_VFP_32_REGISTERS_AVAILABLE; pub const PF_3DNOW_INSTRUCTIONS_AVAILABLE = PROCESSOR_FEATURE_ID.@"3DNOW_INSTRUCTIONS_AVAILABLE"; pub const PF_CHANNELS_ENABLED = PROCESSOR_FEATURE_ID.CHANNELS_ENABLED; pub const PF_COMPARE_EXCHANGE_DOUBLE = PROCESSOR_FEATURE_ID.COMPARE_EXCHANGE_DOUBLE; pub const PF_COMPARE_EXCHANGE128 = PROCESSOR_FEATURE_ID.COMPARE_EXCHANGE128; pub const PF_COMPARE64_EXCHANGE128 = PROCESSOR_FEATURE_ID.COMPARE64_EXCHANGE128; pub const PF_FASTFAIL_AVAILABLE = PROCESSOR_FEATURE_ID.FASTFAIL_AVAILABLE; pub const PF_FLOATING_POINT_EMULATED = PROCESSOR_FEATURE_ID.FLOATING_POINT_EMULATED; pub const PF_FLOATING_POINT_PRECISION_ERRATA = PROCESSOR_FEATURE_ID.FLOATING_POINT_PRECISION_ERRATA; pub const PF_MMX_INSTRUCTIONS_AVAILABLE = PROCESSOR_FEATURE_ID.MMX_INSTRUCTIONS_AVAILABLE; pub const PF_NX_ENABLED = PROCESSOR_FEATURE_ID.NX_ENABLED; pub const PF_PAE_ENABLED = PROCESSOR_FEATURE_ID.PAE_ENABLED; pub const PF_RDTSC_INSTRUCTION_AVAILABLE = PROCESSOR_FEATURE_ID.RDTSC_INSTRUCTION_AVAILABLE; pub const PF_RDWRFSGSBASE_AVAILABLE = PROCESSOR_FEATURE_ID.RDWRFSGSBASE_AVAILABLE; pub const PF_SECOND_LEVEL_ADDRESS_TRANSLATION = PROCESSOR_FEATURE_ID.SECOND_LEVEL_ADDRESS_TRANSLATION; pub const PF_SSE3_INSTRUCTIONS_AVAILABLE = PROCESSOR_FEATURE_ID.SSE3_INSTRUCTIONS_AVAILABLE; pub const PF_VIRT_FIRMWARE_ENABLED = PROCESSOR_FEATURE_ID.VIRT_FIRMWARE_ENABLED; pub const PF_XMMI_INSTRUCTIONS_AVAILABLE = PROCESSOR_FEATURE_ID.XMMI_INSTRUCTIONS_AVAILABLE; pub const PF_XMMI64_INSTRUCTIONS_AVAILABLE = PROCESSOR_FEATURE_ID.XMMI64_INSTRUCTIONS_AVAILABLE; pub const PF_XSAVE_ENABLED = PROCESSOR_FEATURE_ID.XSAVE_ENABLED; pub const PF_ARM_V8_INSTRUCTIONS_AVAILABLE = PROCESSOR_FEATURE_ID.ARM_V8_INSTRUCTIONS_AVAILABLE; pub const PF_ARM_V8_CRYPTO_INSTRUCTIONS_AVAILABLE = PROCESSOR_FEATURE_ID.ARM_V8_CRYPTO_INSTRUCTIONS_AVAILABLE; pub const PF_ARM_V8_CRC32_INSTRUCTIONS_AVAILABLE = PROCESSOR_FEATURE_ID.ARM_V8_CRC32_INSTRUCTIONS_AVAILABLE; pub const PF_ARM_V81_ATOMIC_INSTRUCTIONS_AVAILABLE = PROCESSOR_FEATURE_ID.ARM_V81_ATOMIC_INSTRUCTIONS_AVAILABLE; pub const GET_GUI_RESOURCES_FLAGS = enum(u32) { GDIOBJECTS = 0, GDIOBJECTS_PEAK = 2, USEROBJECTS = 1, USEROBJECTS_PEAK = 4, }; pub const GR_GDIOBJECTS = GET_GUI_RESOURCES_FLAGS.GDIOBJECTS; pub const GR_GDIOBJECTS_PEAK = GET_GUI_RESOURCES_FLAGS.GDIOBJECTS_PEAK; pub const GR_USEROBJECTS = GET_GUI_RESOURCES_FLAGS.USEROBJECTS; pub const GR_USEROBJECTS_PEAK = GET_GUI_RESOURCES_FLAGS.USEROBJECTS_PEAK; pub const STARTUPINFOW_FLAGS = enum(u32) { FORCEONFEEDBACK = 64, FORCEOFFFEEDBACK = 128, PREVENTPINNING = 8192, RUNFULLSCREEN = 32, TITLEISAPPID = 4096, TITLEISLINKNAME = 2048, UNTRUSTEDSOURCE = 32768, USECOUNTCHARS = 8, USEFILLATTRIBUTE = 16, USEHOTKEY = 512, USEPOSITION = 4, USESHOWWINDOW = 1, USESIZE = 2, USESTDHANDLES = 256, _, pub fn initFlags(o: struct { FORCEONFEEDBACK: u1 = 0, FORCEOFFFEEDBACK: u1 = 0, PREVENTPINNING: u1 = 0, RUNFULLSCREEN: u1 = 0, TITLEISAPPID: u1 = 0, TITLEISLINKNAME: u1 = 0, UNTRUSTEDSOURCE: u1 = 0, USECOUNTCHARS: u1 = 0, USEFILLATTRIBUTE: u1 = 0, USEHOTKEY: u1 = 0, USEPOSITION: u1 = 0, USESHOWWINDOW: u1 = 0, USESIZE: u1 = 0, USESTDHANDLES: u1 = 0, }) STARTUPINFOW_FLAGS { return @as(STARTUPINFOW_FLAGS, @enumFromInt((if (o.FORCEONFEEDBACK == 1) @intFromEnum(STARTUPINFOW_FLAGS.FORCEONFEEDBACK) else 0) | (if (o.FORCEOFFFEEDBACK == 1) @intFromEnum(STARTUPINFOW_FLAGS.FORCEOFFFEEDBACK) else 0) | (if (o.PREVENTPINNING == 1) @intFromEnum(STARTUPINFOW_FLAGS.PREVENTPINNING) else 0) | (if (o.RUNFULLSCREEN == 1) @intFromEnum(STARTUPINFOW_FLAGS.RUNFULLSCREEN) else 0) | (if (o.TITLEISAPPID == 1) @intFromEnum(STARTUPINFOW_FLAGS.TITLEISAPPID) else 0) | (if (o.TITLEISLINKNAME == 1) @intFromEnum(STARTUPINFOW_FLAGS.TITLEISLINKNAME) else 0) | (if (o.UNTRUSTEDSOURCE == 1) @intFromEnum(STARTUPINFOW_FLAGS.UNTRUSTEDSOURCE) else 0) | (if (o.USECOUNTCHARS == 1) @intFromEnum(STARTUPINFOW_FLAGS.USECOUNTCHARS) else 0) | (if (o.USEFILLATTRIBUTE == 1) @intFromEnum(STARTUPINFOW_FLAGS.USEFILLATTRIBUTE) else 0) | (if (o.USEHOTKEY == 1) @intFromEnum(STARTUPINFOW_FLAGS.USEHOTKEY) else 0) | (if (o.USEPOSITION == 1) @intFromEnum(STARTUPINFOW_FLAGS.USEPOSITION) else 0) | (if (o.USESHOWWINDOW == 1) @intFromEnum(STARTUPINFOW_FLAGS.USESHOWWINDOW) else 0) | (if (o.USESIZE == 1) @intFromEnum(STARTUPINFOW_FLAGS.USESIZE) else 0) | (if (o.USESTDHANDLES == 1) @intFromEnum(STARTUPINFOW_FLAGS.USESTDHANDLES) else 0))); } }; pub const STARTF_FORCEONFEEDBACK = STARTUPINFOW_FLAGS.FORCEONFEEDBACK; pub const STARTF_FORCEOFFFEEDBACK = STARTUPINFOW_FLAGS.FORCEOFFFEEDBACK; pub const STARTF_PREVENTPINNING = STARTUPINFOW_FLAGS.PREVENTPINNING; pub const STARTF_RUNFULLSCREEN = STARTUPINFOW_FLAGS.RUNFULLSCREEN; pub const STARTF_TITLEISAPPID = STARTUPINFOW_FLAGS.TITLEISAPPID; pub const STARTF_TITLEISLINKNAME = STARTUPINFOW_FLAGS.TITLEISLINKNAME; pub const STARTF_UNTRUSTEDSOURCE = STARTUPINFOW_FLAGS.UNTRUSTEDSOURCE; pub const STARTF_USECOUNTCHARS = STARTUPINFOW_FLAGS.USECOUNTCHARS; pub const STARTF_USEFILLATTRIBUTE = STARTUPINFOW_FLAGS.USEFILLATTRIBUTE; pub const STARTF_USEHOTKEY = STARTUPINFOW_FLAGS.USEHOTKEY; pub const STARTF_USEPOSITION = STARTUPINFOW_FLAGS.USEPOSITION; pub const STARTF_USESHOWWINDOW = STARTUPINFOW_FLAGS.USESHOWWINDOW; pub const STARTF_USESIZE = STARTUPINFOW_FLAGS.USESIZE; pub const STARTF_USESTDHANDLES = STARTUPINFOW_FLAGS.USESTDHANDLES; pub const MEMORY_PRIORITY = enum(u32) { VERY_LOW = 1, LOW = 2, MEDIUM = 3, BELOW_NORMAL = 4, NORMAL = 5, }; pub const MEMORY_PRIORITY_VERY_LOW = MEMORY_PRIORITY.VERY_LOW; pub const MEMORY_PRIORITY_LOW = MEMORY_PRIORITY.LOW; pub const MEMORY_PRIORITY_MEDIUM = MEMORY_PRIORITY.MEDIUM; pub const MEMORY_PRIORITY_BELOW_NORMAL = MEMORY_PRIORITY.BELOW_NORMAL; pub const MEMORY_PRIORITY_NORMAL = MEMORY_PRIORITY.NORMAL; pub const PROCESS_PROTECTION_LEVEL = enum(u32) { WINTCB_LIGHT = 0, WINDOWS = 1, WINDOWS_LIGHT = 2, ANTIMALWARE_LIGHT = 3, LSA_LIGHT = 4, WINTCB = 5, CODEGEN_LIGHT = 6, AUTHENTICODE = 7, PPL_APP = 8, NONE = 4294967294, }; pub const PROTECTION_LEVEL_WINTCB_LIGHT = PROCESS_PROTECTION_LEVEL.WINTCB_LIGHT; pub const PROTECTION_LEVEL_WINDOWS = PROCESS_PROTECTION_LEVEL.WINDOWS; pub const PROTECTION_LEVEL_WINDOWS_LIGHT = PROCESS_PROTECTION_LEVEL.WINDOWS_LIGHT; pub const PROTECTION_LEVEL_ANTIMALWARE_LIGHT = PROCESS_PROTECTION_LEVEL.ANTIMALWARE_LIGHT; pub const PROTECTION_LEVEL_LSA_LIGHT = PROCESS_PROTECTION_LEVEL.LSA_LIGHT; pub const PROTECTION_LEVEL_WINTCB = PROCESS_PROTECTION_LEVEL.WINTCB; pub const PROTECTION_LEVEL_CODEGEN_LIGHT = PROCESS_PROTECTION_LEVEL.CODEGEN_LIGHT; pub const PROTECTION_LEVEL_AUTHENTICODE = PROCESS_PROTECTION_LEVEL.AUTHENTICODE; pub const PROTECTION_LEVEL_PPL_APP = PROCESS_PROTECTION_LEVEL.PPL_APP; pub const PROTECTION_LEVEL_NONE = PROCESS_PROTECTION_LEVEL.NONE; pub const POWER_REQUEST_CONTEXT_FLAGS = enum(u32) { DETAILED_STRING = 2, SIMPLE_STRING = 1, }; pub const POWER_REQUEST_CONTEXT_DETAILED_STRING = POWER_REQUEST_CONTEXT_FLAGS.DETAILED_STRING; pub const POWER_REQUEST_CONTEXT_SIMPLE_STRING = POWER_REQUEST_CONTEXT_FLAGS.SIMPLE_STRING; pub const THREAD_ACCESS_RIGHTS = enum(u32) { TERMINATE = 1, SUSPEND_RESUME = 2, GET_CONTEXT = 8, SET_CONTEXT = 16, SET_INFORMATION = 32, QUERY_INFORMATION = 64, SET_THREAD_TOKEN = 128, IMPERSONATE = 256, DIRECT_IMPERSONATION = 512, SET_LIMITED_INFORMATION = 1024, QUERY_LIMITED_INFORMATION = 2048, RESUME = 4096, ALL_ACCESS = 2097151, DELETE = 65536, READ_CONTROL = 131072, WRITE_DAC = 262144, WRITE_OWNER = 524288, SYNCHRONIZE = 1048576, STANDARD_RIGHTS_REQUIRED = 983040, _, pub fn initFlags(o: struct { TERMINATE: u1 = 0, SUSPEND_RESUME: u1 = 0, GET_CONTEXT: u1 = 0, SET_CONTEXT: u1 = 0, SET_INFORMATION: u1 = 0, QUERY_INFORMATION: u1 = 0, SET_THREAD_TOKEN: u1 = 0, IMPERSONATE: u1 = 0, DIRECT_IMPERSONATION: u1 = 0, SET_LIMITED_INFORMATION: u1 = 0, QUERY_LIMITED_INFORMATION: u1 = 0, RESUME: u1 = 0, ALL_ACCESS: u1 = 0, DELETE: u1 = 0, READ_CONTROL: u1 = 0, WRITE_DAC: u1 = 0, WRITE_OWNER: u1 = 0, SYNCHRONIZE: u1 = 0, STANDARD_RIGHTS_REQUIRED: u1 = 0, }) THREAD_ACCESS_RIGHTS { return @as(THREAD_ACCESS_RIGHTS, @enumFromInt((if (o.TERMINATE == 1) @intFromEnum(THREAD_ACCESS_RIGHTS.TERMINATE) else 0) | (if (o.SUSPEND_RESUME == 1) @intFromEnum(THREAD_ACCESS_RIGHTS.SUSPEND_RESUME) else 0) | (if (o.GET_CONTEXT == 1) @intFromEnum(THREAD_ACCESS_RIGHTS.GET_CONTEXT) else 0) | (if (o.SET_CONTEXT == 1) @intFromEnum(THREAD_ACCESS_RIGHTS.SET_CONTEXT) else 0) | (if (o.SET_INFORMATION == 1) @intFromEnum(THREAD_ACCESS_RIGHTS.SET_INFORMATION) else 0) | (if (o.QUERY_INFORMATION == 1) @intFromEnum(THREAD_ACCESS_RIGHTS.QUERY_INFORMATION) else 0) | (if (o.SET_THREAD_TOKEN == 1) @intFromEnum(THREAD_ACCESS_RIGHTS.SET_THREAD_TOKEN) else 0) | (if (o.IMPERSONATE == 1) @intFromEnum(THREAD_ACCESS_RIGHTS.IMPERSONATE) else 0) | (if (o.DIRECT_IMPERSONATION == 1) @intFromEnum(THREAD_ACCESS_RIGHTS.DIRECT_IMPERSONATION) else 0) | (if (o.SET_LIMITED_INFORMATION == 1) @intFromEnum(THREAD_ACCESS_RIGHTS.SET_LIMITED_INFORMATION) else 0) | (if (o.QUERY_LIMITED_INFORMATION == 1) @intFromEnum(THREAD_ACCESS_RIGHTS.QUERY_LIMITED_INFORMATION) else 0) | (if (o.RESUME == 1) @intFromEnum(THREAD_ACCESS_RIGHTS.RESUME) else 0) | (if (o.ALL_ACCESS == 1) @intFromEnum(THREAD_ACCESS_RIGHTS.ALL_ACCESS) else 0) | (if (o.DELETE == 1) @intFromEnum(THREAD_ACCESS_RIGHTS.DELETE) else 0) | (if (o.READ_CONTROL == 1) @intFromEnum(THREAD_ACCESS_RIGHTS.READ_CONTROL) else 0) | (if (o.WRITE_DAC == 1) @intFromEnum(THREAD_ACCESS_RIGHTS.WRITE_DAC) else 0) | (if (o.WRITE_OWNER == 1) @intFromEnum(THREAD_ACCESS_RIGHTS.WRITE_OWNER) else 0) | (if (o.SYNCHRONIZE == 1) @intFromEnum(THREAD_ACCESS_RIGHTS.SYNCHRONIZE) else 0) | (if (o.STANDARD_RIGHTS_REQUIRED == 1) @intFromEnum(THREAD_ACCESS_RIGHTS.STANDARD_RIGHTS_REQUIRED) else 0))); } }; pub const THREAD_TERMINATE = THREAD_ACCESS_RIGHTS.TERMINATE; pub const THREAD_SUSPEND_RESUME = THREAD_ACCESS_RIGHTS.SUSPEND_RESUME; pub const THREAD_GET_CONTEXT = THREAD_ACCESS_RIGHTS.GET_CONTEXT; pub const THREAD_SET_CONTEXT = THREAD_ACCESS_RIGHTS.SET_CONTEXT; pub const THREAD_SET_INFORMATION = THREAD_ACCESS_RIGHTS.SET_INFORMATION; pub const THREAD_QUERY_INFORMATION = THREAD_ACCESS_RIGHTS.QUERY_INFORMATION; pub const THREAD_SET_THREAD_TOKEN = THREAD_ACCESS_RIGHTS.SET_THREAD_TOKEN; pub const THREAD_IMPERSONATE = THREAD_ACCESS_RIGHTS.IMPERSONATE; pub const THREAD_DIRECT_IMPERSONATION = THREAD_ACCESS_RIGHTS.DIRECT_IMPERSONATION; pub const THREAD_SET_LIMITED_INFORMATION = THREAD_ACCESS_RIGHTS.SET_LIMITED_INFORMATION; pub const THREAD_QUERY_LIMITED_INFORMATION = THREAD_ACCESS_RIGHTS.QUERY_LIMITED_INFORMATION; pub const THREAD_RESUME = THREAD_ACCESS_RIGHTS.RESUME; pub const THREAD_ALL_ACCESS = THREAD_ACCESS_RIGHTS.ALL_ACCESS; pub const THREAD_DELETE = THREAD_ACCESS_RIGHTS.DELETE; pub const THREAD_READ_CONTROL = THREAD_ACCESS_RIGHTS.READ_CONTROL; pub const THREAD_WRITE_DAC = THREAD_ACCESS_RIGHTS.WRITE_DAC; pub const THREAD_WRITE_OWNER = THREAD_ACCESS_RIGHTS.WRITE_OWNER; pub const THREAD_SYNCHRONIZE = THREAD_ACCESS_RIGHTS.SYNCHRONIZE; pub const THREAD_STANDARD_RIGHTS_REQUIRED = THREAD_ACCESS_RIGHTS.STANDARD_RIGHTS_REQUIRED; pub const PROCESS_CREATION_FLAGS = enum(u32) { DEBUG_PROCESS = 1, DEBUG_ONLY_THIS_PROCESS = 2, CREATE_SUSPENDED = 4, DETACHED_PROCESS = 8, CREATE_NEW_CONSOLE = 16, NORMAL_PRIORITY_CLASS = 32, IDLE_PRIORITY_CLASS = 64, HIGH_PRIORITY_CLASS = 128, REALTIME_PRIORITY_CLASS = 256, CREATE_NEW_PROCESS_GROUP = 512, CREATE_UNICODE_ENVIRONMENT = 1024, CREATE_SEPARATE_WOW_VDM = 2048, CREATE_SHARED_WOW_VDM = 4096, CREATE_FORCEDOS = 8192, BELOW_NORMAL_PRIORITY_CLASS = 16384, ABOVE_NORMAL_PRIORITY_CLASS = 32768, INHERIT_PARENT_AFFINITY = 65536, INHERIT_CALLER_PRIORITY = 131072, CREATE_PROTECTED_PROCESS = 262144, EXTENDED_STARTUPINFO_PRESENT = 524288, PROCESS_MODE_BACKGROUND_BEGIN = 1048576, PROCESS_MODE_BACKGROUND_END = 2097152, CREATE_SECURE_PROCESS = 4194304, CREATE_BREAKAWAY_FROM_JOB = 16777216, CREATE_PRESERVE_CODE_AUTHZ_LEVEL = 33554432, CREATE_DEFAULT_ERROR_MODE = 67108864, CREATE_NO_WINDOW = 134217728, PROFILE_USER = 268435456, PROFILE_KERNEL = 536870912, PROFILE_SERVER = 1073741824, CREATE_IGNORE_SYSTEM_DEFAULT = 2147483648, _, pub fn initFlags(o: struct { DEBUG_PROCESS: u1 = 0, DEBUG_ONLY_THIS_PROCESS: u1 = 0, CREATE_SUSPENDED: u1 = 0, DETACHED_PROCESS: u1 = 0, CREATE_NEW_CONSOLE: u1 = 0, NORMAL_PRIORITY_CLASS: u1 = 0, IDLE_PRIORITY_CLASS: u1 = 0, HIGH_PRIORITY_CLASS: u1 = 0, REALTIME_PRIORITY_CLASS: u1 = 0, CREATE_NEW_PROCESS_GROUP: u1 = 0, CREATE_UNICODE_ENVIRONMENT: u1 = 0, CREATE_SEPARATE_WOW_VDM: u1 = 0, CREATE_SHARED_WOW_VDM: u1 = 0, CREATE_FORCEDOS: u1 = 0, BELOW_NORMAL_PRIORITY_CLASS: u1 = 0, ABOVE_NORMAL_PRIORITY_CLASS: u1 = 0, INHERIT_PARENT_AFFINITY: u1 = 0, INHERIT_CALLER_PRIORITY: u1 = 0, CREATE_PROTECTED_PROCESS: u1 = 0, EXTENDED_STARTUPINFO_PRESENT: u1 = 0, PROCESS_MODE_BACKGROUND_BEGIN: u1 = 0, PROCESS_MODE_BACKGROUND_END: u1 = 0, CREATE_SECURE_PROCESS: u1 = 0, CREATE_BREAKAWAY_FROM_JOB: u1 = 0, CREATE_PRESERVE_CODE_AUTHZ_LEVEL: u1 = 0, CREATE_DEFAULT_ERROR_MODE: u1 = 0, CREATE_NO_WINDOW: u1 = 0, PROFILE_USER: u1 = 0, PROFILE_KERNEL: u1 = 0, PROFILE_SERVER: u1 = 0, CREATE_IGNORE_SYSTEM_DEFAULT: u1 = 0, }) PROCESS_CREATION_FLAGS { return @as(PROCESS_CREATION_FLAGS, @enumFromInt((if (o.DEBUG_PROCESS == 1) @intFromEnum(PROCESS_CREATION_FLAGS.DEBUG_PROCESS) else 0) | (if (o.DEBUG_ONLY_THIS_PROCESS == 1) @intFromEnum(PROCESS_CREATION_FLAGS.DEBUG_ONLY_THIS_PROCESS) else 0) | (if (o.CREATE_SUSPENDED == 1) @intFromEnum(PROCESS_CREATION_FLAGS.CREATE_SUSPENDED) else 0) | (if (o.DETACHED_PROCESS == 1) @intFromEnum(PROCESS_CREATION_FLAGS.DETACHED_PROCESS) else 0) | (if (o.CREATE_NEW_CONSOLE == 1) @intFromEnum(PROCESS_CREATION_FLAGS.CREATE_NEW_CONSOLE) else 0) | (if (o.NORMAL_PRIORITY_CLASS == 1) @intFromEnum(PROCESS_CREATION_FLAGS.NORMAL_PRIORITY_CLASS) else 0) | (if (o.IDLE_PRIORITY_CLASS == 1) @intFromEnum(PROCESS_CREATION_FLAGS.IDLE_PRIORITY_CLASS) else 0) | (if (o.HIGH_PRIORITY_CLASS == 1) @intFromEnum(PROCESS_CREATION_FLAGS.HIGH_PRIORITY_CLASS) else 0) | (if (o.REALTIME_PRIORITY_CLASS == 1) @intFromEnum(PROCESS_CREATION_FLAGS.REALTIME_PRIORITY_CLASS) else 0) | (if (o.CREATE_NEW_PROCESS_GROUP == 1) @intFromEnum(PROCESS_CREATION_FLAGS.CREATE_NEW_PROCESS_GROUP) else 0) | (if (o.CREATE_UNICODE_ENVIRONMENT == 1) @intFromEnum(PROCESS_CREATION_FLAGS.CREATE_UNICODE_ENVIRONMENT) else 0) | (if (o.CREATE_SEPARATE_WOW_VDM == 1) @intFromEnum(PROCESS_CREATION_FLAGS.CREATE_SEPARATE_WOW_VDM) else 0) | (if (o.CREATE_SHARED_WOW_VDM == 1) @intFromEnum(PROCESS_CREATION_FLAGS.CREATE_SHARED_WOW_VDM) else 0) | (if (o.CREATE_FORCEDOS == 1) @intFromEnum(PROCESS_CREATION_FLAGS.CREATE_FORCEDOS) else 0) | (if (o.BELOW_NORMAL_PRIORITY_CLASS == 1) @intFromEnum(PROCESS_CREATION_FLAGS.BELOW_NORMAL_PRIORITY_CLASS) else 0) | (if (o.ABOVE_NORMAL_PRIORITY_CLASS == 1) @intFromEnum(PROCESS_CREATION_FLAGS.ABOVE_NORMAL_PRIORITY_CLASS) else 0) | (if (o.INHERIT_PARENT_AFFINITY == 1) @intFromEnum(PROCESS_CREATION_FLAGS.INHERIT_PARENT_AFFINITY) else 0) | (if (o.INHERIT_CALLER_PRIORITY == 1) @intFromEnum(PROCESS_CREATION_FLAGS.INHERIT_CALLER_PRIORITY) else 0) | (if (o.CREATE_PROTECTED_PROCESS == 1) @intFromEnum(PROCESS_CREATION_FLAGS.CREATE_PROTECTED_PROCESS) else 0) | (if (o.EXTENDED_STARTUPINFO_PRESENT == 1) @intFromEnum(PROCESS_CREATION_FLAGS.EXTENDED_STARTUPINFO_PRESENT) else 0) | (if (o.PROCESS_MODE_BACKGROUND_BEGIN == 1) @intFromEnum(PROCESS_CREATION_FLAGS.PROCESS_MODE_BACKGROUND_BEGIN) else 0) | (if (o.PROCESS_MODE_BACKGROUND_END == 1) @intFromEnum(PROCESS_CREATION_FLAGS.PROCESS_MODE_BACKGROUND_END) else 0) | (if (o.CREATE_SECURE_PROCESS == 1) @intFromEnum(PROCESS_CREATION_FLAGS.CREATE_SECURE_PROCESS) else 0) | (if (o.CREATE_BREAKAWAY_FROM_JOB == 1) @intFromEnum(PROCESS_CREATION_FLAGS.CREATE_BREAKAWAY_FROM_JOB) else 0) | (if (o.CREATE_PRESERVE_CODE_AUTHZ_LEVEL == 1) @intFromEnum(PROCESS_CREATION_FLAGS.CREATE_PRESERVE_CODE_AUTHZ_LEVEL) else 0) | (if (o.CREATE_DEFAULT_ERROR_MODE == 1) @intFromEnum(PROCESS_CREATION_FLAGS.CREATE_DEFAULT_ERROR_MODE) else 0) | (if (o.CREATE_NO_WINDOW == 1) @intFromEnum(PROCESS_CREATION_FLAGS.CREATE_NO_WINDOW) else 0) | (if (o.PROFILE_USER == 1) @intFromEnum(PROCESS_CREATION_FLAGS.PROFILE_USER) else 0) | (if (o.PROFILE_KERNEL == 1) @intFromEnum(PROCESS_CREATION_FLAGS.PROFILE_KERNEL) else 0) | (if (o.PROFILE_SERVER == 1) @intFromEnum(PROCESS_CREATION_FLAGS.PROFILE_SERVER) else 0) | (if (o.CREATE_IGNORE_SYSTEM_DEFAULT == 1) @intFromEnum(PROCESS_CREATION_FLAGS.CREATE_IGNORE_SYSTEM_DEFAULT) else 0))); } }; pub const DEBUG_PROCESS = PROCESS_CREATION_FLAGS.DEBUG_PROCESS; pub const DEBUG_ONLY_THIS_PROCESS = PROCESS_CREATION_FLAGS.DEBUG_ONLY_THIS_PROCESS; pub const CREATE_SUSPENDED = PROCESS_CREATION_FLAGS.CREATE_SUSPENDED; pub const DETACHED_PROCESS = PROCESS_CREATION_FLAGS.DETACHED_PROCESS; pub const CREATE_NEW_CONSOLE = PROCESS_CREATION_FLAGS.CREATE_NEW_CONSOLE; pub const NORMAL_PRIORITY_CLASS = PROCESS_CREATION_FLAGS.NORMAL_PRIORITY_CLASS; pub const IDLE_PRIORITY_CLASS = PROCESS_CREATION_FLAGS.IDLE_PRIORITY_CLASS; pub const HIGH_PRIORITY_CLASS = PROCESS_CREATION_FLAGS.HIGH_PRIORITY_CLASS; pub const REALTIME_PRIORITY_CLASS = PROCESS_CREATION_FLAGS.REALTIME_PRIORITY_CLASS; pub const CREATE_NEW_PROCESS_GROUP = PROCESS_CREATION_FLAGS.CREATE_NEW_PROCESS_GROUP; pub const CREATE_UNICODE_ENVIRONMENT = PROCESS_CREATION_FLAGS.CREATE_UNICODE_ENVIRONMENT; pub const CREATE_SEPARATE_WOW_VDM = PROCESS_CREATION_FLAGS.CREATE_SEPARATE_WOW_VDM; pub const CREATE_SHARED_WOW_VDM = PROCESS_CREATION_FLAGS.CREATE_SHARED_WOW_VDM; pub const CREATE_FORCEDOS = PROCESS_CREATION_FLAGS.CREATE_FORCEDOS; pub const BELOW_NORMAL_PRIORITY_CLASS = PROCESS_CREATION_FLAGS.BELOW_NORMAL_PRIORITY_CLASS; pub const ABOVE_NORMAL_PRIORITY_CLASS = PROCESS_CREATION_FLAGS.ABOVE_NORMAL_PRIORITY_CLASS; pub const INHERIT_PARENT_AFFINITY = PROCESS_CREATION_FLAGS.INHERIT_PARENT_AFFINITY; pub const INHERIT_CALLER_PRIORITY = PROCESS_CREATION_FLAGS.INHERIT_CALLER_PRIORITY; pub const CREATE_PROTECTED_PROCESS = PROCESS_CREATION_FLAGS.CREATE_PROTECTED_PROCESS; pub const EXTENDED_STARTUPINFO_PRESENT = PROCESS_CREATION_FLAGS.EXTENDED_STARTUPINFO_PRESENT; pub const PROCESS_MODE_BACKGROUND_BEGIN = PROCESS_CREATION_FLAGS.PROCESS_MODE_BACKGROUND_BEGIN; pub const PROCESS_MODE_BACKGROUND_END = PROCESS_CREATION_FLAGS.PROCESS_MODE_BACKGROUND_END; pub const CREATE_SECURE_PROCESS = PROCESS_CREATION_FLAGS.CREATE_SECURE_PROCESS; pub const CREATE_BREAKAWAY_FROM_JOB = PROCESS_CREATION_FLAGS.CREATE_BREAKAWAY_FROM_JOB; pub const CREATE_PRESERVE_CODE_AUTHZ_LEVEL = PROCESS_CREATION_FLAGS.CREATE_PRESERVE_CODE_AUTHZ_LEVEL; pub const CREATE_DEFAULT_ERROR_MODE = PROCESS_CREATION_FLAGS.CREATE_DEFAULT_ERROR_MODE; pub const CREATE_NO_WINDOW = PROCESS_CREATION_FLAGS.CREATE_NO_WINDOW; pub const PROFILE_USER = PROCESS_CREATION_FLAGS.PROFILE_USER; pub const PROFILE_KERNEL = PROCESS_CREATION_FLAGS.PROFILE_KERNEL; pub const PROFILE_SERVER = PROCESS_CREATION_FLAGS.PROFILE_SERVER; pub const CREATE_IGNORE_SYSTEM_DEFAULT = PROCESS_CREATION_FLAGS.CREATE_IGNORE_SYSTEM_DEFAULT; pub const PROCESS_ACCESS_RIGHTS = enum(u32) { TERMINATE = 1, CREATE_THREAD = 2, SET_SESSIONID = 4, VM_OPERATION = 8, VM_READ = 16, VM_WRITE = 32, DUP_HANDLE = 64, CREATE_PROCESS = 128, SET_QUOTA = 256, SET_INFORMATION = 512, QUERY_INFORMATION = 1024, SUSPEND_RESUME = 2048, QUERY_LIMITED_INFORMATION = 4096, SET_LIMITED_INFORMATION = 8192, ALL_ACCESS = 2097151, DELETE = 65536, READ_CONTROL = 131072, WRITE_DAC = 262144, WRITE_OWNER = 524288, SYNCHRONIZE = 1048576, STANDARD_RIGHTS_REQUIRED = 983040, _, pub fn initFlags(o: struct { TERMINATE: u1 = 0, CREATE_THREAD: u1 = 0, SET_SESSIONID: u1 = 0, VM_OPERATION: u1 = 0, VM_READ: u1 = 0, VM_WRITE: u1 = 0, DUP_HANDLE: u1 = 0, CREATE_PROCESS: u1 = 0, SET_QUOTA: u1 = 0, SET_INFORMATION: u1 = 0, QUERY_INFORMATION: u1 = 0, SUSPEND_RESUME: u1 = 0, QUERY_LIMITED_INFORMATION: u1 = 0, SET_LIMITED_INFORMATION: u1 = 0, ALL_ACCESS: u1 = 0, DELETE: u1 = 0, READ_CONTROL: u1 = 0, WRITE_DAC: u1 = 0, WRITE_OWNER: u1 = 0, SYNCHRONIZE: u1 = 0, STANDARD_RIGHTS_REQUIRED: u1 = 0, }) PROCESS_ACCESS_RIGHTS { return @as(PROCESS_ACCESS_RIGHTS, @enumFromInt((if (o.TERMINATE == 1) @intFromEnum(PROCESS_ACCESS_RIGHTS.TERMINATE) else 0) | (if (o.CREATE_THREAD == 1) @intFromEnum(PROCESS_ACCESS_RIGHTS.CREATE_THREAD) else 0) | (if (o.SET_SESSIONID == 1) @intFromEnum(PROCESS_ACCESS_RIGHTS.SET_SESSIONID) else 0) | (if (o.VM_OPERATION == 1) @intFromEnum(PROCESS_ACCESS_RIGHTS.VM_OPERATION) else 0) | (if (o.VM_READ == 1) @intFromEnum(PROCESS_ACCESS_RIGHTS.VM_READ) else 0) | (if (o.VM_WRITE == 1) @intFromEnum(PROCESS_ACCESS_RIGHTS.VM_WRITE) else 0) | (if (o.DUP_HANDLE == 1) @intFromEnum(PROCESS_ACCESS_RIGHTS.DUP_HANDLE) else 0) | (if (o.CREATE_PROCESS == 1) @intFromEnum(PROCESS_ACCESS_RIGHTS.CREATE_PROCESS) else 0) | (if (o.SET_QUOTA == 1) @intFromEnum(PROCESS_ACCESS_RIGHTS.SET_QUOTA) else 0) | (if (o.SET_INFORMATION == 1) @intFromEnum(PROCESS_ACCESS_RIGHTS.SET_INFORMATION) else 0) | (if (o.QUERY_INFORMATION == 1) @intFromEnum(PROCESS_ACCESS_RIGHTS.QUERY_INFORMATION) else 0) | (if (o.SUSPEND_RESUME == 1) @intFromEnum(PROCESS_ACCESS_RIGHTS.SUSPEND_RESUME) else 0) | (if (o.QUERY_LIMITED_INFORMATION == 1) @intFromEnum(PROCESS_ACCESS_RIGHTS.QUERY_LIMITED_INFORMATION) else 0) | (if (o.SET_LIMITED_INFORMATION == 1) @intFromEnum(PROCESS_ACCESS_RIGHTS.SET_LIMITED_INFORMATION) else 0) | (if (o.ALL_ACCESS == 1) @intFromEnum(PROCESS_ACCESS_RIGHTS.ALL_ACCESS) else 0) | (if (o.DELETE == 1) @intFromEnum(PROCESS_ACCESS_RIGHTS.DELETE) else 0) | (if (o.READ_CONTROL == 1) @intFromEnum(PROCESS_ACCESS_RIGHTS.READ_CONTROL) else 0) | (if (o.WRITE_DAC == 1) @intFromEnum(PROCESS_ACCESS_RIGHTS.WRITE_DAC) else 0) | (if (o.WRITE_OWNER == 1) @intFromEnum(PROCESS_ACCESS_RIGHTS.WRITE_OWNER) else 0) | (if (o.SYNCHRONIZE == 1) @intFromEnum(PROCESS_ACCESS_RIGHTS.SYNCHRONIZE) else 0) | (if (o.STANDARD_RIGHTS_REQUIRED == 1) @intFromEnum(PROCESS_ACCESS_RIGHTS.STANDARD_RIGHTS_REQUIRED) else 0))); } }; pub const PROCESS_TERMINATE = PROCESS_ACCESS_RIGHTS.TERMINATE; pub const PROCESS_CREATE_THREAD = PROCESS_ACCESS_RIGHTS.CREATE_THREAD; pub const PROCESS_SET_SESSIONID = PROCESS_ACCESS_RIGHTS.SET_SESSIONID; pub const PROCESS_VM_OPERATION = PROCESS_ACCESS_RIGHTS.VM_OPERATION; pub const PROCESS_VM_READ = PROCESS_ACCESS_RIGHTS.VM_READ; pub const PROCESS_VM_WRITE = PROCESS_ACCESS_RIGHTS.VM_WRITE; pub const PROCESS_DUP_HANDLE = PROCESS_ACCESS_RIGHTS.DUP_HANDLE; pub const PROCESS_CREATE_PROCESS = PROCESS_ACCESS_RIGHTS.CREATE_PROCESS; pub const PROCESS_SET_QUOTA = PROCESS_ACCESS_RIGHTS.SET_QUOTA; pub const PROCESS_SET_INFORMATION = PROCESS_ACCESS_RIGHTS.SET_INFORMATION; pub const PROCESS_QUERY_INFORMATION = PROCESS_ACCESS_RIGHTS.QUERY_INFORMATION; pub const PROCESS_SUSPEND_RESUME = PROCESS_ACCESS_RIGHTS.SUSPEND_RESUME; pub const PROCESS_QUERY_LIMITED_INFORMATION = PROCESS_ACCESS_RIGHTS.QUERY_LIMITED_INFORMATION; pub const PROCESS_SET_LIMITED_INFORMATION = PROCESS_ACCESS_RIGHTS.SET_LIMITED_INFORMATION; pub const PROCESS_ALL_ACCESS = PROCESS_ACCESS_RIGHTS.ALL_ACCESS; pub const PROCESS_DELETE = PROCESS_ACCESS_RIGHTS.DELETE; pub const PROCESS_READ_CONTROL = PROCESS_ACCESS_RIGHTS.READ_CONTROL; pub const PROCESS_WRITE_DAC = PROCESS_ACCESS_RIGHTS.WRITE_DAC; pub const PROCESS_WRITE_OWNER = PROCESS_ACCESS_RIGHTS.WRITE_OWNER; pub const PROCESS_SYNCHRONIZE = PROCESS_ACCESS_RIGHTS.SYNCHRONIZE; pub const PROCESS_STANDARD_RIGHTS_REQUIRED = PROCESS_ACCESS_RIGHTS.STANDARD_RIGHTS_REQUIRED; pub const TP_CALLBACK_INSTANCE = extern struct { placeholder: usize, // TODO: why is this type empty? }; pub const TP_WORK = extern struct { placeholder: usize, // TODO: why is this type empty? }; pub const TP_TIMER = extern struct { placeholder: usize, // TODO: why is this type empty? }; pub const TP_WAIT = extern struct { placeholder: usize, // TODO: why is this type empty? }; pub const TP_IO = extern struct { placeholder: usize, // TODO: why is this type empty? }; // TODO: this type has a FreeFunc 'DeleteTimerQueueEx', what can Zig do with this information? pub const TimerQueueHandle = isize; // TODO: this type has a FreeFunc 'CloseThreadpool', what can Zig do with this information? pub const PTP_POOL = isize; // TODO: this type has a FreeFunc 'ClosePrivateNamespace', what can Zig do with this information? pub const NamespaceHandle = isize; // TODO: this type has a FreeFunc 'DeleteBoundaryDescriptor', what can Zig do with this information? pub const BoundaryDescriptorHandle = isize; pub const LPPROC_THREAD_ATTRIBUTE_LIST = *anyopaque; pub const REASON_CONTEXT = extern struct { Version: u32, Flags: POWER_REQUEST_CONTEXT_FLAGS, Reason: extern union { Detailed: extern struct { LocalizedReasonModule: ?HINSTANCE, LocalizedReasonId: u32, ReasonStringCount: u32, ReasonStrings: ?*?PWSTR, }, SimpleReasonString: ?PWSTR, }, }; pub const LPTHREAD_START_ROUTINE = switch (@import("builtin").zig_backend) { .stage1 => fn ( lpThreadParameter: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) u32, else => *const fn ( lpThreadParameter: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) u32, }; pub const PINIT_ONCE_FN = switch (@import("builtin").zig_backend) { .stage1 => fn ( InitOnce: ?*RTL_RUN_ONCE, Parameter: ?*anyopaque, Context: ?*?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) BOOL, else => *const fn ( InitOnce: ?*RTL_RUN_ONCE, Parameter: ?*anyopaque, Context: ?*?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) BOOL, }; pub const PTIMERAPCROUTINE = switch (@import("builtin").zig_backend) { .stage1 => fn ( lpArgToCompletionRoutine: ?*anyopaque, dwTimerLowValue: u32, dwTimerHighValue: u32, ) callconv(@import("std").os.windows.WINAPI) void, else => *const fn ( lpArgToCompletionRoutine: ?*anyopaque, dwTimerLowValue: u32, dwTimerHighValue: u32, ) callconv(@import("std").os.windows.WINAPI) void, }; pub const PROCESS_INFORMATION = extern struct { hProcess: ?HANDLE, hThread: ?HANDLE, dwProcessId: u32, dwThreadId: u32, }; pub const STARTUPINFOA = extern struct { cb: u32, lpReserved: ?PSTR, lpDesktop: ?PSTR, lpTitle: ?PSTR, dwX: u32, dwY: u32, dwXSize: u32, dwYSize: u32, dwXCountChars: u32, dwYCountChars: u32, dwFillAttribute: u32, dwFlags: STARTUPINFOW_FLAGS, wShowWindow: u16, cbReserved2: u16, lpReserved2: ?*u8, hStdInput: ?HANDLE, hStdOutput: ?HANDLE, hStdError: ?HANDLE, }; pub const STARTUPINFOW = extern struct { cb: u32, lpReserved: ?PWSTR, lpDesktop: ?PWSTR, lpTitle: ?PWSTR, dwX: u32, dwY: u32, dwXSize: u32, dwYSize: u32, dwXCountChars: u32, dwYCountChars: u32, dwFillAttribute: u32, dwFlags: STARTUPINFOW_FLAGS, wShowWindow: u16, cbReserved2: u16, lpReserved2: ?*u8, hStdInput: ?HANDLE, hStdOutput: ?HANDLE, hStdError: ?HANDLE, }; pub const QUEUE_USER_APC_FLAGS = enum(i32) { NONE = 0, SPECIAL_USER_APC = 1, }; pub const QUEUE_USER_APC_FLAGS_NONE = QUEUE_USER_APC_FLAGS.NONE; pub const QUEUE_USER_APC_FLAGS_SPECIAL_USER_APC = QUEUE_USER_APC_FLAGS.SPECIAL_USER_APC; pub const THREAD_INFORMATION_CLASS = enum(i32) { MemoryPriority = 0, AbsoluteCpuPriority = 1, DynamicCodePolicy = 2, PowerThrottling = 3, InformationClassMax = 4, }; pub const ThreadMemoryPriority = THREAD_INFORMATION_CLASS.MemoryPriority; pub const ThreadAbsoluteCpuPriority = THREAD_INFORMATION_CLASS.AbsoluteCpuPriority; pub const ThreadDynamicCodePolicy = THREAD_INFORMATION_CLASS.DynamicCodePolicy; pub const ThreadPowerThrottling = THREAD_INFORMATION_CLASS.PowerThrottling; pub const ThreadInformationClassMax = THREAD_INFORMATION_CLASS.InformationClassMax; pub const MEMORY_PRIORITY_INFORMATION = extern struct { MemoryPriority: MEMORY_PRIORITY, }; pub const THREAD_POWER_THROTTLING_STATE = extern struct { Version: u32, ControlMask: u32, StateMask: u32, }; pub const PROCESS_INFORMATION_CLASS = enum(i32) { MemoryPriority = 0, MemoryExhaustionInfo = 1, AppMemoryInfo = 2, InPrivateInfo = 3, PowerThrottling = 4, ReservedValue1 = 5, TelemetryCoverageInfo = 6, ProtectionLevelInfo = 7, LeapSecondInfo = 8, MachineTypeInfo = 9, InformationClassMax = 10, }; pub const ProcessMemoryPriority = PROCESS_INFORMATION_CLASS.MemoryPriority; pub const ProcessMemoryExhaustionInfo = PROCESS_INFORMATION_CLASS.MemoryExhaustionInfo; pub const ProcessAppMemoryInfo = PROCESS_INFORMATION_CLASS.AppMemoryInfo; pub const ProcessInPrivateInfo = PROCESS_INFORMATION_CLASS.InPrivateInfo; pub const ProcessPowerThrottling = PROCESS_INFORMATION_CLASS.PowerThrottling; pub const ProcessReservedValue1 = PROCESS_INFORMATION_CLASS.ReservedValue1; pub const ProcessTelemetryCoverageInfo = PROCESS_INFORMATION_CLASS.TelemetryCoverageInfo; pub const ProcessProtectionLevelInfo = PROCESS_INFORMATION_CLASS.ProtectionLevelInfo; pub const ProcessLeapSecondInfo = PROCESS_INFORMATION_CLASS.LeapSecondInfo; pub const ProcessMachineTypeInfo = PROCESS_INFORMATION_CLASS.MachineTypeInfo; pub const ProcessInformationClassMax = PROCESS_INFORMATION_CLASS.InformationClassMax; pub const APP_MEMORY_INFORMATION = extern struct { AvailableCommit: u64, PrivateCommitUsage: u64, PeakPrivateCommitUsage: u64, TotalCommitUsage: u64, }; pub const MACHINE_ATTRIBUTES = enum(u32) { UserEnabled = 1, KernelEnabled = 2, Wow64Container = 4, _, pub fn initFlags(o: struct { UserEnabled: u1 = 0, KernelEnabled: u1 = 0, Wow64Container: u1 = 0, }) MACHINE_ATTRIBUTES { return @as(MACHINE_ATTRIBUTES, @enumFromInt((if (o.UserEnabled == 1) @intFromEnum(MACHINE_ATTRIBUTES.UserEnabled) else 0) | (if (o.KernelEnabled == 1) @intFromEnum(MACHINE_ATTRIBUTES.KernelEnabled) else 0) | (if (o.Wow64Container == 1) @intFromEnum(MACHINE_ATTRIBUTES.Wow64Container) else 0))); } }; pub const UserEnabled = MACHINE_ATTRIBUTES.UserEnabled; pub const KernelEnabled = MACHINE_ATTRIBUTES.KernelEnabled; pub const Wow64Container = MACHINE_ATTRIBUTES.Wow64Container; pub const PROCESS_MACHINE_INFORMATION = extern struct { ProcessMachine: u16, Res0: u16, MachineAttributes: MACHINE_ATTRIBUTES, }; pub const PROCESS_MEMORY_EXHAUSTION_TYPE = enum(i32) { FailFastOnCommitFailure = 0, Max = 1, }; pub const PMETypeFailFastOnCommitFailure = PROCESS_MEMORY_EXHAUSTION_TYPE.FailFastOnCommitFailure; pub const PMETypeMax = PROCESS_MEMORY_EXHAUSTION_TYPE.Max; pub const PROCESS_MEMORY_EXHAUSTION_INFO = extern struct { Version: u16, Reserved: u16, Type: PROCESS_MEMORY_EXHAUSTION_TYPE, Value: usize, }; pub const PROCESS_POWER_THROTTLING_STATE = extern struct { Version: u32, ControlMask: u32, StateMask: u32, }; pub const PROCESS_PROTECTION_LEVEL_INFORMATION = extern struct { ProtectionLevel: PROCESS_PROTECTION_LEVEL, }; pub const PROCESS_LEAP_SECOND_INFO = extern struct { Flags: u32, Reserved: u32, }; pub const PTP_WIN32_IO_CALLBACK = switch (@import("builtin").zig_backend) { .stage1 => fn ( Instance: ?*TP_CALLBACK_INSTANCE, Context: ?*anyopaque, Overlapped: ?*anyopaque, IoResult: u32, NumberOfBytesTransferred: usize, Io: ?*TP_IO, ) callconv(@import("std").os.windows.WINAPI) void, else => *const fn ( Instance: ?*TP_CALLBACK_INSTANCE, Context: ?*anyopaque, Overlapped: ?*anyopaque, IoResult: u32, NumberOfBytesTransferred: usize, Io: ?*TP_IO, ) callconv(@import("std").os.windows.WINAPI) void, }; pub const PROCESS_DYNAMIC_EH_CONTINUATION_TARGET = extern struct { TargetAddress: usize, Flags: usize, }; pub const PROCESS_DYNAMIC_EH_CONTINUATION_TARGETS_INFORMATION = extern struct { NumberOfTargets: u16, Reserved: u16, Reserved2: u32, Targets: ?*PROCESS_DYNAMIC_EH_CONTINUATION_TARGET, }; pub const PROCESS_DYNAMIC_ENFORCED_ADDRESS_RANGE = extern struct { BaseAddress: usize, Size: usize, Flags: u32, }; pub const PROCESS_DYNAMIC_ENFORCED_ADDRESS_RANGES_INFORMATION = extern struct { NumberOfRanges: u16, Reserved: u16, Reserved2: u32, Ranges: ?*PROCESS_DYNAMIC_ENFORCED_ADDRESS_RANGE, }; pub const IO_COUNTERS = extern struct { ReadOperationCount: u64, WriteOperationCount: u64, OtherOperationCount: u64, ReadTransferCount: u64, WriteTransferCount: u64, OtherTransferCount: u64, }; pub const PROCESS_MITIGATION_POLICY = enum(i32) { ProcessDEPPolicy = 0, ProcessASLRPolicy = 1, ProcessDynamicCodePolicy = 2, ProcessStrictHandleCheckPolicy = 3, ProcessSystemCallDisablePolicy = 4, ProcessMitigationOptionsMask = 5, ProcessExtensionPointDisablePolicy = 6, ProcessControlFlowGuardPolicy = 7, ProcessSignaturePolicy = 8, ProcessFontDisablePolicy = 9, ProcessImageLoadPolicy = 10, ProcessSystemCallFilterPolicy = 11, ProcessPayloadRestrictionPolicy = 12, ProcessChildProcessPolicy = 13, ProcessSideChannelIsolationPolicy = 14, ProcessUserShadowStackPolicy = 15, ProcessRedirectionTrustPolicy = 16, MaxProcessMitigationPolicy = 17, }; pub const ProcessDEPPolicy = PROCESS_MITIGATION_POLICY.ProcessDEPPolicy; pub const ProcessASLRPolicy = PROCESS_MITIGATION_POLICY.ProcessASLRPolicy; pub const ProcessDynamicCodePolicy = PROCESS_MITIGATION_POLICY.ProcessDynamicCodePolicy; pub const ProcessStrictHandleCheckPolicy = PROCESS_MITIGATION_POLICY.ProcessStrictHandleCheckPolicy; pub const ProcessSystemCallDisablePolicy = PROCESS_MITIGATION_POLICY.ProcessSystemCallDisablePolicy; pub const ProcessMitigationOptionsMask = PROCESS_MITIGATION_POLICY.ProcessMitigationOptionsMask; pub const ProcessExtensionPointDisablePolicy = PROCESS_MITIGATION_POLICY.ProcessExtensionPointDisablePolicy; pub const ProcessControlFlowGuardPolicy = PROCESS_MITIGATION_POLICY.ProcessControlFlowGuardPolicy; pub const ProcessSignaturePolicy = PROCESS_MITIGATION_POLICY.ProcessSignaturePolicy; pub const ProcessFontDisablePolicy = PROCESS_MITIGATION_POLICY.ProcessFontDisablePolicy; pub const ProcessImageLoadPolicy = PROCESS_MITIGATION_POLICY.ProcessImageLoadPolicy; pub const ProcessSystemCallFilterPolicy = PROCESS_MITIGATION_POLICY.ProcessSystemCallFilterPolicy; pub const ProcessPayloadRestrictionPolicy = PROCESS_MITIGATION_POLICY.ProcessPayloadRestrictionPolicy; pub const ProcessChildProcessPolicy = PROCESS_MITIGATION_POLICY.ProcessChildProcessPolicy; pub const ProcessSideChannelIsolationPolicy = PROCESS_MITIGATION_POLICY.ProcessSideChannelIsolationPolicy; pub const ProcessUserShadowStackPolicy = PROCESS_MITIGATION_POLICY.ProcessUserShadowStackPolicy; pub const ProcessRedirectionTrustPolicy = PROCESS_MITIGATION_POLICY.ProcessRedirectionTrustPolicy; pub const MaxProcessMitigationPolicy = PROCESS_MITIGATION_POLICY.MaxProcessMitigationPolicy; pub const RTL_RUN_ONCE = extern union { Ptr: ?*anyopaque, }; pub const RTL_BARRIER = extern struct { Reserved1: u32, Reserved2: u32, Reserved3: [2]usize, Reserved4: u32, Reserved5: u32, }; pub const RTL_UMS_THREAD_INFO_CLASS = enum(i32) { InvalidInfoClass = 0, UserContext = 1, Priority = 2, Affinity = 3, Teb = 4, IsSuspended = 5, IsTerminated = 6, MaxInfoClass = 7, }; pub const UmsThreadInvalidInfoClass = RTL_UMS_THREAD_INFO_CLASS.InvalidInfoClass; pub const UmsThreadUserContext = RTL_UMS_THREAD_INFO_CLASS.UserContext; pub const UmsThreadPriority = RTL_UMS_THREAD_INFO_CLASS.Priority; pub const UmsThreadAffinity = RTL_UMS_THREAD_INFO_CLASS.Affinity; pub const UmsThreadTeb = RTL_UMS_THREAD_INFO_CLASS.Teb; pub const UmsThreadIsSuspended = RTL_UMS_THREAD_INFO_CLASS.IsSuspended; pub const UmsThreadIsTerminated = RTL_UMS_THREAD_INFO_CLASS.IsTerminated; pub const UmsThreadMaxInfoClass = RTL_UMS_THREAD_INFO_CLASS.MaxInfoClass; pub const PRTL_UMS_SCHEDULER_ENTRY_POINT = switch (@import("builtin").zig_backend) { .stage1 => fn ( Reason: RTL_UMS_SCHEDULER_REASON, ActivationPayload: usize, SchedulerParam: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) void, else => *const fn ( Reason: RTL_UMS_SCHEDULER_REASON, ActivationPayload: usize, SchedulerParam: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) void, }; pub const RTL_CRITICAL_SECTION_DEBUG = extern struct { Type: u16, CreatorBackTraceIndex: u16, CriticalSection: ?*RTL_CRITICAL_SECTION, ProcessLocksList: LIST_ENTRY, EntryCount: u32, ContentionCount: u32, Flags: u32, CreatorBackTraceIndexHigh: u16, SpareWORD: u16, }; pub const RTL_CRITICAL_SECTION = extern struct { DebugInfo: ?*RTL_CRITICAL_SECTION_DEBUG, LockCount: i32, RecursionCount: i32, OwningThread: ?HANDLE, LockSemaphore: ?HANDLE, SpinCount: usize, }; pub const RTL_SRWLOCK = extern struct { Ptr: ?*anyopaque, }; pub const RTL_CONDITION_VARIABLE = extern struct { Ptr: ?*anyopaque, }; pub const WAITORTIMERCALLBACK = switch (@import("builtin").zig_backend) { .stage1 => fn ( param0: ?*anyopaque, param1: BOOLEAN, ) callconv(@import("std").os.windows.WINAPI) void, else => *const fn ( param0: ?*anyopaque, param1: BOOLEAN, ) callconv(@import("std").os.windows.WINAPI) void, }; pub const PFLS_CALLBACK_FUNCTION = switch (@import("builtin").zig_backend) { .stage1 => fn ( lpFlsData: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) void, else => *const fn ( lpFlsData: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) void, }; pub const PTP_SIMPLE_CALLBACK = switch (@import("builtin").zig_backend) { .stage1 => fn ( Instance: ?*TP_CALLBACK_INSTANCE, Context: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) void, else => *const fn ( Instance: ?*TP_CALLBACK_INSTANCE, Context: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) void, }; pub const TP_CALLBACK_PRIORITY = enum(i32) { HIGH = 0, NORMAL = 1, LOW = 2, INVALID = 3, // COUNT = 3, this enum value conflicts with INVALID }; pub const TP_CALLBACK_PRIORITY_HIGH = TP_CALLBACK_PRIORITY.HIGH; pub const TP_CALLBACK_PRIORITY_NORMAL = TP_CALLBACK_PRIORITY.NORMAL; pub const TP_CALLBACK_PRIORITY_LOW = TP_CALLBACK_PRIORITY.LOW; pub const TP_CALLBACK_PRIORITY_INVALID = TP_CALLBACK_PRIORITY.INVALID; pub const TP_CALLBACK_PRIORITY_COUNT = TP_CALLBACK_PRIORITY.INVALID; pub const TP_POOL_STACK_INFORMATION = extern struct { StackReserve: usize, StackCommit: usize, }; pub const PTP_CLEANUP_GROUP_CANCEL_CALLBACK = switch (@import("builtin").zig_backend) { .stage1 => fn ( ObjectContext: ?*anyopaque, CleanupContext: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) void, else => *const fn ( ObjectContext: ?*anyopaque, CleanupContext: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) void, }; pub const TP_CALLBACK_ENVIRON_V3 = extern struct { pub const _ACTIVATION_CONTEXT = extern struct { placeholder: usize, // TODO: why is this type empty? }; Version: u32, Pool: PTP_POOL, CleanupGroup: isize, CleanupGroupCancelCallback: ?PTP_CLEANUP_GROUP_CANCEL_CALLBACK, RaceDll: ?*anyopaque, ActivationContext: isize, FinalizationCallback: ?PTP_SIMPLE_CALLBACK, u: extern union { Flags: u32, s: extern struct { _bitfield: u32, }, }, CallbackPriority: TP_CALLBACK_PRIORITY, Size: u32, }; pub const PTP_WORK_CALLBACK = switch (@import("builtin").zig_backend) { .stage1 => fn ( Instance: ?*TP_CALLBACK_INSTANCE, Context: ?*anyopaque, Work: ?*TP_WORK, ) callconv(@import("std").os.windows.WINAPI) void, else => *const fn ( Instance: ?*TP_CALLBACK_INSTANCE, Context: ?*anyopaque, Work: ?*TP_WORK, ) callconv(@import("std").os.windows.WINAPI) void, }; pub const PTP_TIMER_CALLBACK = switch (@import("builtin").zig_backend) { .stage1 => fn ( Instance: ?*TP_CALLBACK_INSTANCE, Context: ?*anyopaque, Timer: ?*TP_TIMER, ) callconv(@import("std").os.windows.WINAPI) void, else => *const fn ( Instance: ?*TP_CALLBACK_INSTANCE, Context: ?*anyopaque, Timer: ?*TP_TIMER, ) callconv(@import("std").os.windows.WINAPI) void, }; pub const PTP_WAIT_CALLBACK = switch (@import("builtin").zig_backend) { .stage1 => fn ( Instance: ?*TP_CALLBACK_INSTANCE, Context: ?*anyopaque, Wait: ?*TP_WAIT, WaitResult: u32, ) callconv(@import("std").os.windows.WINAPI) void, else => *const fn ( Instance: ?*TP_CALLBACK_INSTANCE, Context: ?*anyopaque, Wait: ?*TP_WAIT, WaitResult: u32, ) callconv(@import("std").os.windows.WINAPI) void, }; pub const LPFIBER_START_ROUTINE = switch (@import("builtin").zig_backend) { .stage1 => fn ( lpFiberParameter: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) void, else => *const fn ( lpFiberParameter: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) void, }; pub const UMS_SCHEDULER_STARTUP_INFO = extern struct { UmsVersion: u32, CompletionList: ?*anyopaque, SchedulerProc: ?PRTL_UMS_SCHEDULER_ENTRY_POINT, SchedulerParam: ?*anyopaque, }; pub const UMS_SYSTEM_THREAD_INFORMATION = extern struct { UmsVersion: u32, Anonymous: extern union { Anonymous: extern struct { _bitfield: u32, }, ThreadUmsFlags: u32, }, }; pub const STARTUPINFOEXA = extern struct { StartupInfo: STARTUPINFOA, lpAttributeList: ?LPPROC_THREAD_ATTRIBUTE_LIST, }; pub const STARTUPINFOEXW = extern struct { StartupInfo: STARTUPINFOW, lpAttributeList: ?LPPROC_THREAD_ATTRIBUTE_LIST, }; pub const PEB_LDR_DATA = extern struct { Reserved1: [8]u8, Reserved2: [3]?*anyopaque, InMemoryOrderModuleList: LIST_ENTRY, }; pub const RTL_USER_PROCESS_PARAMETERS = extern struct { Reserved1: [16]u8, Reserved2: [10]?*anyopaque, ImagePathName: UNICODE_STRING, CommandLine: UNICODE_STRING, }; pub const PPS_POST_PROCESS_INIT_ROUTINE = switch (@import("builtin").zig_backend) { .stage1 => fn () callconv(@import("std").os.windows.WINAPI) void, else => *const fn () callconv(@import("std").os.windows.WINAPI) void, }; pub const PEB = extern struct { Reserved1: [2]u8, BeingDebugged: u8, Reserved2: [1]u8, Reserved3: [2]?*anyopaque, Ldr: ?*PEB_LDR_DATA, ProcessParameters: ?*RTL_USER_PROCESS_PARAMETERS, Reserved4: [3]?*anyopaque, AtlThunkSListPtr: ?*anyopaque, Reserved5: ?*anyopaque, Reserved6: u32, Reserved7: ?*anyopaque, Reserved8: u32, AtlThunkSListPtr32: u32, Reserved9: [45]?*anyopaque, Reserved10: [96]u8, PostProcessInitRoutine: ?PPS_POST_PROCESS_INIT_ROUTINE, Reserved11: [128]u8, Reserved12: [1]?*anyopaque, SessionId: u32, }; pub const PROCESS_BASIC_INFORMATION = extern struct { Reserved1: ?*anyopaque, PebBaseAddress: ?*PEB, Reserved2: [2]?*anyopaque, UniqueProcessId: usize, Reserved3: ?*anyopaque, }; pub const PROCESSINFOCLASS = enum(i32) { BasicInformation = 0, DebugPort = 7, Wow64Information = 26, ImageFileName = 27, BreakOnTermination = 29, }; pub const ProcessBasicInformation = PROCESSINFOCLASS.BasicInformation; pub const ProcessDebugPort = PROCESSINFOCLASS.DebugPort; pub const ProcessWow64Information = PROCESSINFOCLASS.Wow64Information; pub const ProcessImageFileName = PROCESSINFOCLASS.ImageFileName; pub const ProcessBreakOnTermination = PROCESSINFOCLASS.BreakOnTermination; pub const THREADINFOCLASS = enum(i32) { IsIoPending = 16, NameInformation = 38, }; pub const ThreadIsIoPending = THREADINFOCLASS.IsIoPending; pub const ThreadNameInformation = THREADINFOCLASS.NameInformation; //-------------------------------------------------------------------------------- // Section: Functions (284) //-------------------------------------------------------------------------------- // TODO: this type is limited to platform 'windows5.1.2600' pub extern "kernel32" fn GetProcessWorkingSetSize( hProcess: ?HANDLE, lpMinimumWorkingSetSize: ?*usize, lpMaximumWorkingSetSize: ?*usize, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "kernel32" fn SetProcessWorkingSetSize( hProcess: ?HANDLE, dwMinimumWorkingSetSize: usize, dwMaximumWorkingSetSize: usize, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows6.0.6000' pub extern "kernel32" fn FlsAlloc( lpCallback: ?PFLS_CALLBACK_FUNCTION, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'windows6.0.6000' pub extern "kernel32" fn FlsGetValue( dwFlsIndex: u32, ) callconv(@import("std").os.windows.WINAPI) ?*anyopaque; // TODO: this type is limited to platform 'windows6.0.6000' pub extern "kernel32" fn FlsSetValue( dwFlsIndex: u32, lpFlsData: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows6.0.6000' pub extern "kernel32" fn FlsFree( dwFlsIndex: u32, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows6.0.6000' pub extern "kernel32" fn IsThreadAFiber() callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows6.0.6000' pub extern "kernel32" fn InitializeSRWLock( SRWLock: ?*RTL_SRWLOCK, ) callconv(@import("std").os.windows.WINAPI) void; // TODO: this type is limited to platform 'windows6.0.6000' pub extern "kernel32" fn ReleaseSRWLockExclusive( SRWLock: ?*RTL_SRWLOCK, ) callconv(@import("std").os.windows.WINAPI) void; // TODO: this type is limited to platform 'windows6.0.6000' pub extern "kernel32" fn ReleaseSRWLockShared( SRWLock: ?*RTL_SRWLOCK, ) callconv(@import("std").os.windows.WINAPI) void; // TODO: this type is limited to platform 'windows6.0.6000' pub extern "kernel32" fn AcquireSRWLockExclusive( SRWLock: ?*RTL_SRWLOCK, ) callconv(@import("std").os.windows.WINAPI) void; // TODO: this type is limited to platform 'windows6.0.6000' pub extern "kernel32" fn AcquireSRWLockShared( SRWLock: ?*RTL_SRWLOCK, ) callconv(@import("std").os.windows.WINAPI) void; // TODO: this type is limited to platform 'windows6.1' pub extern "kernel32" fn TryAcquireSRWLockExclusive( SRWLock: ?*RTL_SRWLOCK, ) callconv(@import("std").os.windows.WINAPI) BOOLEAN; // TODO: this type is limited to platform 'windows6.1' pub extern "kernel32" fn TryAcquireSRWLockShared( SRWLock: ?*RTL_SRWLOCK, ) callconv(@import("std").os.windows.WINAPI) BOOLEAN; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "kernel32" fn InitializeCriticalSection( lpCriticalSection: ?*RTL_CRITICAL_SECTION, ) callconv(@import("std").os.windows.WINAPI) void; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "kernel32" fn EnterCriticalSection( lpCriticalSection: ?*RTL_CRITICAL_SECTION, ) callconv(@import("std").os.windows.WINAPI) void; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "kernel32" fn LeaveCriticalSection( lpCriticalSection: ?*RTL_CRITICAL_SECTION, ) callconv(@import("std").os.windows.WINAPI) void; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "kernel32" fn InitializeCriticalSectionAndSpinCount( lpCriticalSection: ?*RTL_CRITICAL_SECTION, dwSpinCount: u32, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows6.0.6000' pub extern "kernel32" fn InitializeCriticalSectionEx( lpCriticalSection: ?*RTL_CRITICAL_SECTION, dwSpinCount: u32, Flags: u32, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "kernel32" fn SetCriticalSectionSpinCount( lpCriticalSection: ?*RTL_CRITICAL_SECTION, dwSpinCount: u32, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "kernel32" fn TryEnterCriticalSection( lpCriticalSection: ?*RTL_CRITICAL_SECTION, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "kernel32" fn DeleteCriticalSection( lpCriticalSection: ?*RTL_CRITICAL_SECTION, ) callconv(@import("std").os.windows.WINAPI) void; // TODO: this type is limited to platform 'windows6.0.6000' pub extern "kernel32" fn InitOnceInitialize( InitOnce: ?*RTL_RUN_ONCE, ) callconv(@import("std").os.windows.WINAPI) void; // TODO: this type is limited to platform 'windows6.0.6000' pub extern "kernel32" fn InitOnceExecuteOnce( InitOnce: ?*RTL_RUN_ONCE, InitFn: ?PINIT_ONCE_FN, Parameter: ?*anyopaque, Context: ?*?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows6.0.6000' pub extern "kernel32" fn InitOnceBeginInitialize( lpInitOnce: ?*RTL_RUN_ONCE, dwFlags: u32, fPending: ?*BOOL, lpContext: ?*?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows6.0.6000' pub extern "kernel32" fn InitOnceComplete( lpInitOnce: ?*RTL_RUN_ONCE, dwFlags: u32, lpContext: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows6.0.6000' pub extern "kernel32" fn InitializeConditionVariable( ConditionVariable: ?*RTL_CONDITION_VARIABLE, ) callconv(@import("std").os.windows.WINAPI) void; // TODO: this type is limited to platform 'windows6.0.6000' pub extern "kernel32" fn WakeConditionVariable( ConditionVariable: ?*RTL_CONDITION_VARIABLE, ) callconv(@import("std").os.windows.WINAPI) void; // TODO: this type is limited to platform 'windows6.0.6000' pub extern "kernel32" fn WakeAllConditionVariable( ConditionVariable: ?*RTL_CONDITION_VARIABLE, ) callconv(@import("std").os.windows.WINAPI) void; // TODO: this type is limited to platform 'windows6.0.6000' pub extern "kernel32" fn SleepConditionVariableCS( ConditionVariable: ?*RTL_CONDITION_VARIABLE, CriticalSection: ?*RTL_CRITICAL_SECTION, dwMilliseconds: u32, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows6.0.6000' pub extern "kernel32" fn SleepConditionVariableSRW( ConditionVariable: ?*RTL_CONDITION_VARIABLE, SRWLock: ?*RTL_SRWLOCK, dwMilliseconds: u32, Flags: u32, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "kernel32" fn SetEvent( hEvent: ?HANDLE, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "kernel32" fn ResetEvent( hEvent: ?HANDLE, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "kernel32" fn ReleaseSemaphore( hSemaphore: ?HANDLE, lReleaseCount: i32, lpPreviousCount: ?*i32, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "kernel32" fn ReleaseMutex( hMutex: ?HANDLE, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "kernel32" fn WaitForSingleObject( hHandle: ?HANDLE, dwMilliseconds: u32, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "kernel32" fn SleepEx( dwMilliseconds: u32, bAlertable: BOOL, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "kernel32" fn WaitForSingleObjectEx( hHandle: ?HANDLE, dwMilliseconds: u32, bAlertable: BOOL, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "kernel32" fn WaitForMultipleObjectsEx( nCount: u32, lpHandles: [*]const ?HANDLE, bWaitAll: BOOL, dwMilliseconds: u32, bAlertable: BOOL, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "kernel32" fn CreateMutexA( lpMutexAttributes: ?*SECURITY_ATTRIBUTES, bInitialOwner: BOOL, lpName: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) ?HANDLE; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "kernel32" fn CreateMutexW( lpMutexAttributes: ?*SECURITY_ATTRIBUTES, bInitialOwner: BOOL, lpName: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) ?HANDLE; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "kernel32" fn OpenMutexW( dwDesiredAccess: u32, bInheritHandle: BOOL, lpName: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) ?HANDLE; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "kernel32" fn CreateEventA( lpEventAttributes: ?*SECURITY_ATTRIBUTES, bManualReset: BOOL, bInitialState: BOOL, lpName: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) ?HANDLE; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "kernel32" fn CreateEventW( lpEventAttributes: ?*SECURITY_ATTRIBUTES, bManualReset: BOOL, bInitialState: BOOL, lpName: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) ?HANDLE; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "kernel32" fn OpenEventA( dwDesiredAccess: u32, bInheritHandle: BOOL, lpName: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) ?HANDLE; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "kernel32" fn OpenEventW( dwDesiredAccess: u32, bInheritHandle: BOOL, lpName: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) ?HANDLE; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "kernel32" fn OpenSemaphoreW( dwDesiredAccess: u32, bInheritHandle: BOOL, lpName: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) ?HANDLE; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "kernel32" fn OpenWaitableTimerW( dwDesiredAccess: u32, bInheritHandle: BOOL, lpTimerName: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) ?HANDLE; // TODO: this type is limited to platform 'windows6.1' pub extern "kernel32" fn SetWaitableTimerEx( hTimer: ?HANDLE, lpDueTime: ?*const LARGE_INTEGER, lPeriod: i32, pfnCompletionRoutine: ?PTIMERAPCROUTINE, lpArgToCompletionRoutine: ?*anyopaque, WakeContext: ?*REASON_CONTEXT, TolerableDelay: u32, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "kernel32" fn SetWaitableTimer( hTimer: ?HANDLE, lpDueTime: ?*const LARGE_INTEGER, lPeriod: i32, pfnCompletionRoutine: ?PTIMERAPCROUTINE, lpArgToCompletionRoutine: ?*anyopaque, fResume: BOOL, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "kernel32" fn CancelWaitableTimer( hTimer: ?HANDLE, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows6.0.6000' pub extern "kernel32" fn CreateMutexExA( lpMutexAttributes: ?*SECURITY_ATTRIBUTES, lpName: ?[*:0]const u8, dwFlags: u32, dwDesiredAccess: u32, ) callconv(@import("std").os.windows.WINAPI) ?HANDLE; // TODO: this type is limited to platform 'windows6.0.6000' pub extern "kernel32" fn CreateMutexExW( lpMutexAttributes: ?*SECURITY_ATTRIBUTES, lpName: ?[*:0]const u16, dwFlags: u32, dwDesiredAccess: u32, ) callconv(@import("std").os.windows.WINAPI) ?HANDLE; // TODO: this type is limited to platform 'windows6.0.6000' pub extern "kernel32" fn CreateEventExA( lpEventAttributes: ?*SECURITY_ATTRIBUTES, lpName: ?[*:0]const u8, dwFlags: CREATE_EVENT, dwDesiredAccess: u32, ) callconv(@import("std").os.windows.WINAPI) ?HANDLE; // TODO: this type is limited to platform 'windows6.0.6000' pub extern "kernel32" fn CreateEventExW( lpEventAttributes: ?*SECURITY_ATTRIBUTES, lpName: ?[*:0]const u16, dwFlags: CREATE_EVENT, dwDesiredAccess: u32, ) callconv(@import("std").os.windows.WINAPI) ?HANDLE; // TODO: this type is limited to platform 'windows6.0.6000' pub extern "kernel32" fn CreateSemaphoreExW( lpSemaphoreAttributes: ?*SECURITY_ATTRIBUTES, lInitialCount: i32, lMaximumCount: i32, lpName: ?[*:0]const u16, dwFlags: u32, dwDesiredAccess: u32, ) callconv(@import("std").os.windows.WINAPI) ?HANDLE; // TODO: this type is limited to platform 'windows6.0.6000' pub extern "kernel32" fn CreateWaitableTimerExW( lpTimerAttributes: ?*SECURITY_ATTRIBUTES, lpTimerName: ?[*:0]const u16, dwFlags: u32, dwDesiredAccess: u32, ) callconv(@import("std").os.windows.WINAPI) ?HANDLE; // TODO: this type is limited to platform 'windows8.0' pub extern "kernel32" fn EnterSynchronizationBarrier( lpBarrier: ?*RTL_BARRIER, dwFlags: u32, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows8.0' pub extern "kernel32" fn InitializeSynchronizationBarrier( lpBarrier: ?*RTL_BARRIER, lTotalThreads: i32, lSpinCount: i32, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows8.0' pub extern "kernel32" fn DeleteSynchronizationBarrier( lpBarrier: ?*RTL_BARRIER, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "kernel32" fn Sleep( dwMilliseconds: u32, ) callconv(@import("std").os.windows.WINAPI) void; // TODO: this type is limited to platform 'windows8.0' pub extern "vertdll" fn WaitOnAddress( // TODO: what to do with BytesParamIndex 2? Address: ?*anyopaque, // TODO: what to do with BytesParamIndex 2? CompareAddress: ?*anyopaque, AddressSize: usize, dwMilliseconds: u32, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows8.0' pub extern "vertdll" fn WakeByAddressSingle( Address: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) void; // TODO: this type is limited to platform 'windows8.0' pub extern "vertdll" fn WakeByAddressAll( Address: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) void; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "kernel32" fn WaitForMultipleObjects( nCount: u32, lpHandles: [*]const ?HANDLE, bWaitAll: BOOL, dwMilliseconds: u32, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "kernel32" fn CreateSemaphoreW( lpSemaphoreAttributes: ?*SECURITY_ATTRIBUTES, lInitialCount: i32, lMaximumCount: i32, lpName: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) ?HANDLE; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "kernel32" fn CreateWaitableTimerW( lpTimerAttributes: ?*SECURITY_ATTRIBUTES, bManualReset: BOOL, lpTimerName: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) ?HANDLE; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "kernel32" fn InitializeSListHead( ListHead: ?*SLIST_HEADER, ) callconv(@import("std").os.windows.WINAPI) void; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "kernel32" fn InterlockedPopEntrySList( ListHead: ?*SLIST_HEADER, ) callconv(@import("std").os.windows.WINAPI) ?*SLIST_ENTRY; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "kernel32" fn InterlockedPushEntrySList( ListHead: ?*SLIST_HEADER, ListEntry: ?*SLIST_ENTRY, ) callconv(@import("std").os.windows.WINAPI) ?*SLIST_ENTRY; // TODO: this type is limited to platform 'windows8.0' pub extern "kernel32" fn InterlockedPushListSListEx( ListHead: ?*SLIST_HEADER, List: ?*SLIST_ENTRY, ListEnd: ?*SLIST_ENTRY, Count: u32, ) callconv(@import("std").os.windows.WINAPI) ?*SLIST_ENTRY; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "kernel32" fn InterlockedFlushSList( ListHead: ?*SLIST_HEADER, ) callconv(@import("std").os.windows.WINAPI) ?*SLIST_ENTRY; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "kernel32" fn QueryDepthSList( ListHead: ?*SLIST_HEADER, ) callconv(@import("std").os.windows.WINAPI) u16; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "kernel32" fn QueueUserAPC( pfnAPC: ?PAPCFUNC, hThread: ?HANDLE, dwData: usize, ) callconv(@import("std").os.windows.WINAPI) u32; pub extern "kernel32" fn QueueUserAPC2( ApcRoutine: ?PAPCFUNC, Thread: ?HANDLE, Data: usize, Flags: QUEUE_USER_APC_FLAGS, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "kernel32" fn GetProcessTimes( hProcess: ?HANDLE, lpCreationTime: ?*FILETIME, lpExitTime: ?*FILETIME, lpKernelTime: ?*FILETIME, lpUserTime: ?*FILETIME, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "kernel32" fn GetCurrentProcess() callconv(@import("std").os.windows.WINAPI) ?HANDLE; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "kernel32" fn GetCurrentProcessId() callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "kernel32" fn ExitProcess( uExitCode: u32, ) callconv(@import("std").os.windows.WINAPI) noreturn; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "kernel32" fn TerminateProcess( hProcess: ?HANDLE, uExitCode: u32, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "kernel32" fn GetExitCodeProcess( hProcess: ?HANDLE, lpExitCode: ?*u32, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "kernel32" fn SwitchToThread() callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "kernel32" fn CreateThread( lpThreadAttributes: ?*SECURITY_ATTRIBUTES, dwStackSize: usize, lpStartAddress: ?LPTHREAD_START_ROUTINE, lpParameter: ?*anyopaque, dwCreationFlags: THREAD_CREATION_FLAGS, lpThreadId: ?*u32, ) callconv(@import("std").os.windows.WINAPI) ?HANDLE; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "kernel32" fn CreateRemoteThread( hProcess: ?HANDLE, lpThreadAttributes: ?*SECURITY_ATTRIBUTES, dwStackSize: usize, lpStartAddress: ?LPTHREAD_START_ROUTINE, lpParameter: ?*anyopaque, dwCreationFlags: u32, lpThreadId: ?*u32, ) callconv(@import("std").os.windows.WINAPI) ?HANDLE; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "kernel32" fn GetCurrentThread() callconv(@import("std").os.windows.WINAPI) ?HANDLE; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "kernel32" fn GetCurrentThreadId() callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "kernel32" fn OpenThread( dwDesiredAccess: THREAD_ACCESS_RIGHTS, bInheritHandle: BOOL, dwThreadId: u32, ) callconv(@import("std").os.windows.WINAPI) ?HANDLE; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "kernel32" fn SetThreadPriority( hThread: ?HANDLE, nPriority: THREAD_PRIORITY, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "kernel32" fn SetThreadPriorityBoost( hThread: ?HANDLE, bDisablePriorityBoost: BOOL, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "kernel32" fn GetThreadPriorityBoost( hThread: ?HANDLE, pDisablePriorityBoost: ?*BOOL, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "kernel32" fn GetThreadPriority( hThread: ?HANDLE, ) callconv(@import("std").os.windows.WINAPI) i32; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "kernel32" fn ExitThread( dwExitCode: u32, ) callconv(@import("std").os.windows.WINAPI) void; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "kernel32" fn TerminateThread( hThread: ?HANDLE, dwExitCode: u32, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "kernel32" fn GetExitCodeThread( hThread: ?HANDLE, lpExitCode: ?*u32, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "kernel32" fn SuspendThread( hThread: ?HANDLE, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "kernel32" fn ResumeThread( hThread: ?HANDLE, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "kernel32" fn TlsAlloc() callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "kernel32" fn TlsGetValue( dwTlsIndex: u32, ) callconv(@import("std").os.windows.WINAPI) ?*anyopaque; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "kernel32" fn TlsSetValue( dwTlsIndex: u32, lpTlsValue: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "kernel32" fn TlsFree( dwTlsIndex: u32, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "kernel32" fn CreateProcessA( lpApplicationName: ?[*:0]const u8, lpCommandLine: ?PSTR, lpProcessAttributes: ?*SECURITY_ATTRIBUTES, lpThreadAttributes: ?*SECURITY_ATTRIBUTES, bInheritHandles: BOOL, dwCreationFlags: PROCESS_CREATION_FLAGS, lpEnvironment: ?*anyopaque, lpCurrentDirectory: ?[*:0]const u8, lpStartupInfo: ?*STARTUPINFOA, lpProcessInformation: ?*PROCESS_INFORMATION, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "kernel32" fn CreateProcessW( lpApplicationName: ?[*:0]const u16, lpCommandLine: ?PWSTR, lpProcessAttributes: ?*SECURITY_ATTRIBUTES, lpThreadAttributes: ?*SECURITY_ATTRIBUTES, bInheritHandles: BOOL, dwCreationFlags: PROCESS_CREATION_FLAGS, lpEnvironment: ?*anyopaque, lpCurrentDirectory: ?[*:0]const u16, lpStartupInfo: ?*STARTUPINFOW, lpProcessInformation: ?*PROCESS_INFORMATION, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "kernel32" fn SetProcessShutdownParameters( dwLevel: u32, dwFlags: u32, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "kernel32" fn GetProcessVersion( ProcessId: u32, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "kernel32" fn GetStartupInfoW( lpStartupInfo: ?*STARTUPINFOW, ) callconv(@import("std").os.windows.WINAPI) void; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "advapi32" fn CreateProcessAsUserW( hToken: ?HANDLE, lpApplicationName: ?[*:0]const u16, lpCommandLine: ?PWSTR, lpProcessAttributes: ?*SECURITY_ATTRIBUTES, lpThreadAttributes: ?*SECURITY_ATTRIBUTES, bInheritHandles: BOOL, dwCreationFlags: u32, lpEnvironment: ?*anyopaque, lpCurrentDirectory: ?[*:0]const u16, lpStartupInfo: ?*STARTUPINFOW, lpProcessInformation: ?*PROCESS_INFORMATION, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "advapi32" fn SetThreadToken( Thread: ?*?HANDLE, Token: ?HANDLE, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "advapi32" fn OpenProcessToken( ProcessHandle: ?HANDLE, DesiredAccess: TOKEN_ACCESS_MASK, TokenHandle: ?*?HANDLE, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "advapi32" fn OpenThreadToken( ThreadHandle: ?HANDLE, DesiredAccess: TOKEN_ACCESS_MASK, OpenAsSelf: BOOL, TokenHandle: ?*?HANDLE, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "kernel32" fn SetPriorityClass( hProcess: ?HANDLE, dwPriorityClass: PROCESS_CREATION_FLAGS, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "kernel32" fn GetPriorityClass( hProcess: ?HANDLE, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'windows6.0.6000' pub extern "kernel32" fn SetThreadStackGuarantee( StackSizeInBytes: ?*u32, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows6.0.6000' pub extern "kernel32" fn GetProcessId( Process: ?HANDLE, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'windows6.0.6000' pub extern "kernel32" fn GetThreadId( Thread: ?HANDLE, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'windows6.0.6000' pub extern "kernel32" fn FlushProcessWriteBuffers() callconv(@import("std").os.windows.WINAPI) void; // TODO: this type is limited to platform 'windows6.0.6000' pub extern "kernel32" fn GetProcessIdOfThread( Thread: ?HANDLE, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'windows6.0.6000' pub extern "kernel32" fn InitializeProcThreadAttributeList( // TODO: what to do with BytesParamIndex 3? lpAttributeList: ?LPPROC_THREAD_ATTRIBUTE_LIST, dwAttributeCount: u32, dwFlags: u32, lpSize: ?*usize, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows6.0.6000' pub extern "kernel32" fn DeleteProcThreadAttributeList( lpAttributeList: ?LPPROC_THREAD_ATTRIBUTE_LIST, ) callconv(@import("std").os.windows.WINAPI) void; // TODO: this type is limited to platform 'windows6.0.6000' pub extern "kernel32" fn UpdateProcThreadAttribute( lpAttributeList: ?LPPROC_THREAD_ATTRIBUTE_LIST, dwFlags: u32, Attribute: usize, // TODO: what to do with BytesParamIndex 4? lpValue: ?*anyopaque, cbSize: usize, // TODO: what to do with BytesParamIndex 4? lpPreviousValue: ?*anyopaque, lpReturnSize: ?*usize, ) callconv(@import("std").os.windows.WINAPI) BOOL; pub extern "kernel32" fn SetProcessDynamicEHContinuationTargets( Process: ?HANDLE, NumberOfTargets: u16, Targets: [*]PROCESS_DYNAMIC_EH_CONTINUATION_TARGET, ) callconv(@import("std").os.windows.WINAPI) BOOL; pub extern "kernel32" fn SetProcessDynamicEnforcedCetCompatibleRanges( Process: ?HANDLE, NumberOfRanges: u16, Ranges: [*]PROCESS_DYNAMIC_ENFORCED_ADDRESS_RANGE, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows6.0.6000' pub extern "kernel32" fn SetProcessAffinityUpdateMode( hProcess: ?HANDLE, dwFlags: PROCESS_AFFINITY_AUTO_UPDATE_FLAGS, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows6.0.6000' pub extern "kernel32" fn QueryProcessAffinityUpdateMode( hProcess: ?HANDLE, lpdwFlags: ?*PROCESS_AFFINITY_AUTO_UPDATE_FLAGS, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows6.1' pub extern "kernel32" fn CreateRemoteThreadEx( hProcess: ?HANDLE, lpThreadAttributes: ?*SECURITY_ATTRIBUTES, dwStackSize: usize, lpStartAddress: ?LPTHREAD_START_ROUTINE, lpParameter: ?*anyopaque, dwCreationFlags: u32, lpAttributeList: ?LPPROC_THREAD_ATTRIBUTE_LIST, lpThreadId: ?*u32, ) callconv(@import("std").os.windows.WINAPI) ?HANDLE; // TODO: this type is limited to platform 'windows8.0' pub extern "kernel32" fn GetCurrentThreadStackLimits( LowLimit: ?*usize, HighLimit: ?*usize, ) callconv(@import("std").os.windows.WINAPI) void; // TODO: this type is limited to platform 'windows8.0' pub extern "kernel32" fn GetProcessMitigationPolicy( hProcess: ?HANDLE, MitigationPolicy: PROCESS_MITIGATION_POLICY, // TODO: what to do with BytesParamIndex 3? lpBuffer: ?*anyopaque, dwLength: usize, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows8.0' pub extern "kernel32" fn SetProcessMitigationPolicy( MitigationPolicy: PROCESS_MITIGATION_POLICY, // TODO: what to do with BytesParamIndex 2? lpBuffer: ?*anyopaque, dwLength: usize, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "kernel32" fn GetThreadTimes( hThread: ?HANDLE, lpCreationTime: ?*FILETIME, lpExitTime: ?*FILETIME, lpKernelTime: ?*FILETIME, lpUserTime: ?*FILETIME, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "kernel32" fn OpenProcess( dwDesiredAccess: PROCESS_ACCESS_RIGHTS, bInheritHandle: BOOL, dwProcessId: u32, ) callconv(@import("std").os.windows.WINAPI) ?HANDLE; // TODO: this type is limited to platform 'windows5.0' pub extern "kernel32" fn IsProcessorFeaturePresent( ProcessorFeature: PROCESSOR_FEATURE_ID, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows6.0.6000' pub extern "kernel32" fn GetProcessHandleCount( hProcess: ?HANDLE, pdwHandleCount: ?*u32, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows6.0.6000' pub extern "kernel32" fn GetCurrentProcessorNumber() callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'windows6.1' pub extern "kernel32" fn SetThreadIdealProcessorEx( hThread: ?HANDLE, lpIdealProcessor: ?*PROCESSOR_NUMBER, lpPreviousIdealProcessor: ?*PROCESSOR_NUMBER, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows6.1' pub extern "kernel32" fn GetThreadIdealProcessorEx( hThread: ?HANDLE, lpIdealProcessor: ?*PROCESSOR_NUMBER, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows6.1' pub extern "kernel32" fn GetCurrentProcessorNumberEx( ProcNumber: ?*PROCESSOR_NUMBER, ) callconv(@import("std").os.windows.WINAPI) void; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "kernel32" fn GetProcessPriorityBoost( hProcess: ?HANDLE, pDisablePriorityBoost: ?*BOOL, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "kernel32" fn SetProcessPriorityBoost( hProcess: ?HANDLE, bDisablePriorityBoost: BOOL, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows6.0.6000' pub extern "kernel32" fn GetThreadIOPendingFlag( hThread: ?HANDLE, lpIOIsPending: ?*BOOL, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows6.0.6000' pub extern "kernel32" fn GetSystemTimes( lpIdleTime: ?*FILETIME, lpKernelTime: ?*FILETIME, lpUserTime: ?*FILETIME, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows8.0' pub extern "kernel32" fn GetThreadInformation( hThread: ?HANDLE, ThreadInformationClass: THREAD_INFORMATION_CLASS, // TODO: what to do with BytesParamIndex 3? ThreadInformation: ?*anyopaque, ThreadInformationSize: u32, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows8.0' pub extern "kernel32" fn SetThreadInformation( hThread: ?HANDLE, ThreadInformationClass: THREAD_INFORMATION_CLASS, // TODO: what to do with BytesParamIndex 3? ThreadInformation: ?*anyopaque, ThreadInformationSize: u32, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows8.1' pub extern "kernel32" fn IsProcessCritical( hProcess: ?HANDLE, Critical: ?*BOOL, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows8.1' pub extern "kernel32" fn SetProtectedPolicy( PolicyGuid: ?*const Guid, PolicyValue: usize, OldPolicyValue: ?*usize, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows8.1' pub extern "kernel32" fn QueryProtectedPolicy( PolicyGuid: ?*const Guid, PolicyValue: ?*usize, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "kernel32" fn SetThreadIdealProcessor( hThread: ?HANDLE, dwIdealProcessor: u32, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'windows8.0' pub extern "kernel32" fn SetProcessInformation( hProcess: ?HANDLE, ProcessInformationClass: PROCESS_INFORMATION_CLASS, // TODO: what to do with BytesParamIndex 3? ProcessInformation: ?*anyopaque, ProcessInformationSize: u32, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows8.0' pub extern "kernel32" fn GetProcessInformation( hProcess: ?HANDLE, ProcessInformationClass: PROCESS_INFORMATION_CLASS, // TODO: what to do with BytesParamIndex 3? ProcessInformation: ?*anyopaque, ProcessInformationSize: u32, ) callconv(@import("std").os.windows.WINAPI) BOOL; pub extern "kernel32" fn GetProcessDefaultCpuSets( Process: ?HANDLE, CpuSetIds: ?[*]u32, CpuSetIdCount: u32, RequiredIdCount: ?*u32, ) callconv(@import("std").os.windows.WINAPI) BOOL; pub extern "kernel32" fn SetProcessDefaultCpuSets( Process: ?HANDLE, CpuSetIds: ?[*]const u32, CpuSetIdCount: u32, ) callconv(@import("std").os.windows.WINAPI) BOOL; pub extern "kernel32" fn GetThreadSelectedCpuSets( Thread: ?HANDLE, CpuSetIds: ?[*]u32, CpuSetIdCount: u32, RequiredIdCount: ?*u32, ) callconv(@import("std").os.windows.WINAPI) BOOL; pub extern "kernel32" fn SetThreadSelectedCpuSets( Thread: ?HANDLE, CpuSetIds: [*]const u32, CpuSetIdCount: u32, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "advapi32" fn CreateProcessAsUserA( hToken: ?HANDLE, lpApplicationName: ?[*:0]const u8, lpCommandLine: ?PSTR, lpProcessAttributes: ?*SECURITY_ATTRIBUTES, lpThreadAttributes: ?*SECURITY_ATTRIBUTES, bInheritHandles: BOOL, dwCreationFlags: u32, lpEnvironment: ?*anyopaque, lpCurrentDirectory: ?[*:0]const u8, lpStartupInfo: ?*STARTUPINFOA, lpProcessInformation: ?*PROCESS_INFORMATION, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "kernel32" fn GetProcessShutdownParameters( lpdwLevel: ?*u32, lpdwFlags: ?*u32, ) callconv(@import("std").os.windows.WINAPI) BOOL; pub extern "kernel32" fn GetProcessDefaultCpuSetMasks( Process: ?HANDLE, CpuSetMasks: ?[*]GROUP_AFFINITY, CpuSetMaskCount: u16, RequiredMaskCount: ?*u16, ) callconv(@import("std").os.windows.WINAPI) BOOL; pub extern "kernel32" fn SetProcessDefaultCpuSetMasks( Process: ?HANDLE, CpuSetMasks: ?[*]GROUP_AFFINITY, CpuSetMaskCount: u16, ) callconv(@import("std").os.windows.WINAPI) BOOL; pub extern "kernel32" fn GetThreadSelectedCpuSetMasks( Thread: ?HANDLE, CpuSetMasks: ?[*]GROUP_AFFINITY, CpuSetMaskCount: u16, RequiredMaskCount: ?*u16, ) callconv(@import("std").os.windows.WINAPI) BOOL; pub extern "kernel32" fn SetThreadSelectedCpuSetMasks( Thread: ?HANDLE, CpuSetMasks: ?[*]GROUP_AFFINITY, CpuSetMaskCount: u16, ) callconv(@import("std").os.windows.WINAPI) BOOL; pub extern "kernel32" fn GetMachineTypeAttributes( Machine: u16, MachineTypeAttributes: ?*MACHINE_ATTRIBUTES, ) callconv(@import("std").os.windows.WINAPI) HRESULT; // TODO: this type is limited to platform 'windows10.0.14393' pub extern "kernel32" fn SetThreadDescription( hThread: ?HANDLE, lpThreadDescription: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT; // TODO: this type is limited to platform 'windows10.0.14393' pub extern "kernel32" fn GetThreadDescription( hThread: ?HANDLE, ppszThreadDescription: ?*?PWSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "kernel32" fn QueueUserWorkItem( Function: ?LPTHREAD_START_ROUTINE, Context: ?*anyopaque, Flags: WORKER_THREAD_FLAGS, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "kernel32" fn UnregisterWaitEx( WaitHandle: ?HANDLE, CompletionEvent: ?HANDLE, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "kernel32" fn CreateTimerQueue() callconv(@import("std").os.windows.WINAPI) ?HANDLE; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "kernel32" fn CreateTimerQueueTimer( phNewTimer: ?*?HANDLE, TimerQueue: ?HANDLE, Callback: ?WAITORTIMERCALLBACK, Parameter: ?*anyopaque, DueTime: u32, Period: u32, Flags: WORKER_THREAD_FLAGS, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "kernel32" fn ChangeTimerQueueTimer( TimerQueue: ?HANDLE, Timer: ?HANDLE, DueTime: u32, Period: u32, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "kernel32" fn DeleteTimerQueueTimer( TimerQueue: ?HANDLE, Timer: ?HANDLE, CompletionEvent: ?HANDLE, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "kernel32" fn DeleteTimerQueue( TimerQueue: ?HANDLE, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "kernel32" fn DeleteTimerQueueEx( TimerQueue: ?HANDLE, CompletionEvent: ?HANDLE, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows6.0.6000' pub extern "kernel32" fn CreateThreadpool( reserved: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) PTP_POOL; // TODO: this type is limited to platform 'windows6.0.6000' pub extern "kernel32" fn SetThreadpoolThreadMaximum( ptpp: PTP_POOL, cthrdMost: u32, ) callconv(@import("std").os.windows.WINAPI) void; // TODO: this type is limited to platform 'windows6.0.6000' pub extern "kernel32" fn SetThreadpoolThreadMinimum( ptpp: PTP_POOL, cthrdMic: u32, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows6.1' pub extern "kernel32" fn SetThreadpoolStackInformation( ptpp: PTP_POOL, ptpsi: ?*TP_POOL_STACK_INFORMATION, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows6.1' pub extern "kernel32" fn QueryThreadpoolStackInformation( ptpp: PTP_POOL, ptpsi: ?*TP_POOL_STACK_INFORMATION, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows6.0.6000' pub extern "kernel32" fn CloseThreadpool( ptpp: PTP_POOL, ) callconv(@import("std").os.windows.WINAPI) void; // TODO: this type is limited to platform 'windows6.0.6000' pub extern "kernel32" fn CreateThreadpoolCleanupGroup() callconv(@import("std").os.windows.WINAPI) isize; // TODO: this type is limited to platform 'windows6.0.6000' pub extern "kernel32" fn CloseThreadpoolCleanupGroupMembers( ptpcg: isize, fCancelPendingCallbacks: BOOL, pvCleanupContext: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) void; // TODO: this type is limited to platform 'windows6.0.6000' pub extern "kernel32" fn CloseThreadpoolCleanupGroup( ptpcg: isize, ) callconv(@import("std").os.windows.WINAPI) void; // TODO: this type is limited to platform 'windows6.0.6000' pub extern "kernel32" fn SetEventWhenCallbackReturns( pci: ?*TP_CALLBACK_INSTANCE, evt: ?HANDLE, ) callconv(@import("std").os.windows.WINAPI) void; // TODO: this type is limited to platform 'windows6.0.6000' pub extern "kernel32" fn ReleaseSemaphoreWhenCallbackReturns( pci: ?*TP_CALLBACK_INSTANCE, sem: ?HANDLE, crel: u32, ) callconv(@import("std").os.windows.WINAPI) void; // TODO: this type is limited to platform 'windows6.0.6000' pub extern "kernel32" fn ReleaseMutexWhenCallbackReturns( pci: ?*TP_CALLBACK_INSTANCE, mut: ?HANDLE, ) callconv(@import("std").os.windows.WINAPI) void; // TODO: this type is limited to platform 'windows6.0.6000' pub extern "kernel32" fn LeaveCriticalSectionWhenCallbackReturns( pci: ?*TP_CALLBACK_INSTANCE, pcs: ?*RTL_CRITICAL_SECTION, ) callconv(@import("std").os.windows.WINAPI) void; // TODO: this type is limited to platform 'windows6.0.6000' pub extern "kernel32" fn FreeLibraryWhenCallbackReturns( pci: ?*TP_CALLBACK_INSTANCE, mod: ?HINSTANCE, ) callconv(@import("std").os.windows.WINAPI) void; // TODO: this type is limited to platform 'windows6.0.6000' pub extern "kernel32" fn CallbackMayRunLong( pci: ?*TP_CALLBACK_INSTANCE, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows6.0.6000' pub extern "kernel32" fn DisassociateCurrentThreadFromCallback( pci: ?*TP_CALLBACK_INSTANCE, ) callconv(@import("std").os.windows.WINAPI) void; // TODO: this type is limited to platform 'windows6.0.6000' pub extern "kernel32" fn TrySubmitThreadpoolCallback( pfns: ?PTP_SIMPLE_CALLBACK, pv: ?*anyopaque, pcbe: ?*TP_CALLBACK_ENVIRON_V3, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows6.0.6000' pub extern "kernel32" fn CreateThreadpoolWork( pfnwk: ?PTP_WORK_CALLBACK, pv: ?*anyopaque, pcbe: ?*TP_CALLBACK_ENVIRON_V3, ) callconv(@import("std").os.windows.WINAPI) ?*TP_WORK; // TODO: this type is limited to platform 'windows6.0.6000' pub extern "kernel32" fn SubmitThreadpoolWork( pwk: ?*TP_WORK, ) callconv(@import("std").os.windows.WINAPI) void; // TODO: this type is limited to platform 'windows6.0.6000' pub extern "kernel32" fn WaitForThreadpoolWorkCallbacks( pwk: ?*TP_WORK, fCancelPendingCallbacks: BOOL, ) callconv(@import("std").os.windows.WINAPI) void; // TODO: this type is limited to platform 'windows6.0.6000' pub extern "kernel32" fn CloseThreadpoolWork( pwk: ?*TP_WORK, ) callconv(@import("std").os.windows.WINAPI) void; // TODO: this type is limited to platform 'windows6.0.6000' pub extern "kernel32" fn CreateThreadpoolTimer( pfnti: ?PTP_TIMER_CALLBACK, pv: ?*anyopaque, pcbe: ?*TP_CALLBACK_ENVIRON_V3, ) callconv(@import("std").os.windows.WINAPI) ?*TP_TIMER; // TODO: this type is limited to platform 'windows6.0.6000' pub extern "kernel32" fn SetThreadpoolTimer( pti: ?*TP_TIMER, pftDueTime: ?*FILETIME, msPeriod: u32, msWindowLength: u32, ) callconv(@import("std").os.windows.WINAPI) void; // TODO: this type is limited to platform 'windows6.0.6000' pub extern "kernel32" fn IsThreadpoolTimerSet( pti: ?*TP_TIMER, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows6.0.6000' pub extern "kernel32" fn WaitForThreadpoolTimerCallbacks( pti: ?*TP_TIMER, fCancelPendingCallbacks: BOOL, ) callconv(@import("std").os.windows.WINAPI) void; // TODO: this type is limited to platform 'windows6.0.6000' pub extern "kernel32" fn CloseThreadpoolTimer( pti: ?*TP_TIMER, ) callconv(@import("std").os.windows.WINAPI) void; // TODO: this type is limited to platform 'windows6.0.6000' pub extern "kernel32" fn CreateThreadpoolWait( pfnwa: ?PTP_WAIT_CALLBACK, pv: ?*anyopaque, pcbe: ?*TP_CALLBACK_ENVIRON_V3, ) callconv(@import("std").os.windows.WINAPI) ?*TP_WAIT; // TODO: this type is limited to platform 'windows6.0.6000' pub extern "kernel32" fn SetThreadpoolWait( pwa: ?*TP_WAIT, h: ?HANDLE, pftTimeout: ?*FILETIME, ) callconv(@import("std").os.windows.WINAPI) void; // TODO: this type is limited to platform 'windows6.0.6000' pub extern "kernel32" fn WaitForThreadpoolWaitCallbacks( pwa: ?*TP_WAIT, fCancelPendingCallbacks: BOOL, ) callconv(@import("std").os.windows.WINAPI) void; // TODO: this type is limited to platform 'windows6.0.6000' pub extern "kernel32" fn CloseThreadpoolWait( pwa: ?*TP_WAIT, ) callconv(@import("std").os.windows.WINAPI) void; // TODO: this type is limited to platform 'windows6.0.6000' pub extern "kernel32" fn CreateThreadpoolIo( fl: ?HANDLE, pfnio: ?PTP_WIN32_IO_CALLBACK, pv: ?*anyopaque, pcbe: ?*TP_CALLBACK_ENVIRON_V3, ) callconv(@import("std").os.windows.WINAPI) ?*TP_IO; // TODO: this type is limited to platform 'windows6.0.6000' pub extern "kernel32" fn StartThreadpoolIo( pio: ?*TP_IO, ) callconv(@import("std").os.windows.WINAPI) void; // TODO: this type is limited to platform 'windows6.0.6000' pub extern "kernel32" fn CancelThreadpoolIo( pio: ?*TP_IO, ) callconv(@import("std").os.windows.WINAPI) void; // TODO: this type is limited to platform 'windows6.0.6000' pub extern "kernel32" fn WaitForThreadpoolIoCallbacks( pio: ?*TP_IO, fCancelPendingCallbacks: BOOL, ) callconv(@import("std").os.windows.WINAPI) void; // TODO: this type is limited to platform 'windows6.0.6000' pub extern "kernel32" fn CloseThreadpoolIo( pio: ?*TP_IO, ) callconv(@import("std").os.windows.WINAPI) void; // TODO: this type is limited to platform 'windows8.0' pub extern "kernel32" fn SetThreadpoolTimerEx( pti: ?*TP_TIMER, pftDueTime: ?*FILETIME, msPeriod: u32, msWindowLength: u32, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows8.0' pub extern "kernel32" fn SetThreadpoolWaitEx( pwa: ?*TP_WAIT, h: ?HANDLE, pftTimeout: ?*FILETIME, Reserved: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows6.0.6000' pub extern "kernel32" fn IsWow64Process( hProcess: ?HANDLE, Wow64Process: ?*BOOL, ) callconv(@import("std").os.windows.WINAPI) BOOL; pub extern "api-ms-win-core-wow64-l1-1-1" fn Wow64SetThreadDefaultGuestMachine( Machine: u16, ) callconv(@import("std").os.windows.WINAPI) u16; // TODO: this type is limited to platform 'windows10.0.10586' pub extern "kernel32" fn IsWow64Process2( hProcess: ?HANDLE, pProcessMachine: ?*u16, pNativeMachine: ?*u16, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows6.0.6000' pub extern "kernel32" fn Wow64SuspendThread( hThread: ?HANDLE, ) callconv(@import("std").os.windows.WINAPI) u32; pub extern "kernel32" fn CreatePrivateNamespaceW( lpPrivateNamespaceAttributes: ?*SECURITY_ATTRIBUTES, lpBoundaryDescriptor: ?*anyopaque, lpAliasPrefix: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) NamespaceHandle; pub extern "kernel32" fn OpenPrivateNamespaceW( lpBoundaryDescriptor: ?*anyopaque, lpAliasPrefix: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) NamespaceHandle; // TODO: this type is limited to platform 'windows6.0.6000' pub extern "kernel32" fn ClosePrivateNamespace( Handle: NamespaceHandle, Flags: u32, ) callconv(@import("std").os.windows.WINAPI) BOOLEAN; pub extern "kernel32" fn CreateBoundaryDescriptorW( Name: ?[*:0]const u16, Flags: u32, ) callconv(@import("std").os.windows.WINAPI) BoundaryDescriptorHandle; // TODO: this type is limited to platform 'windows6.0.6000' pub extern "kernel32" fn AddSIDToBoundaryDescriptor( BoundaryDescriptor: ?*?HANDLE, RequiredSid: ?PSID, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows6.0.6000' pub extern "kernel32" fn DeleteBoundaryDescriptor( BoundaryDescriptor: BoundaryDescriptorHandle, ) callconv(@import("std").os.windows.WINAPI) void; // TODO: this type is limited to platform 'windows6.0.6000' pub extern "kernel32" fn GetNumaHighestNodeNumber( HighestNodeNumber: ?*u32, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows6.1' pub extern "kernel32" fn GetNumaNodeProcessorMaskEx( Node: u16, ProcessorMask: ?*GROUP_AFFINITY, ) callconv(@import("std").os.windows.WINAPI) BOOL; pub extern "kernel32" fn GetNumaNodeProcessorMask2( NodeNumber: u16, ProcessorMasks: ?[*]GROUP_AFFINITY, ProcessorMaskCount: u16, RequiredMaskCount: ?*u16, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows6.1' pub extern "kernel32" fn GetNumaProximityNodeEx( ProximityId: u32, NodeNumber: ?*u16, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows6.1' pub extern "kernel32" fn GetProcessGroupAffinity( hProcess: ?HANDLE, GroupCount: ?*u16, GroupArray: [*:0]u16, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows6.1' pub extern "kernel32" fn GetThreadGroupAffinity( hThread: ?HANDLE, GroupAffinity: ?*GROUP_AFFINITY, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows6.1' pub extern "kernel32" fn SetThreadGroupAffinity( hThread: ?HANDLE, GroupAffinity: ?*const GROUP_AFFINITY, PreviousGroupAffinity: ?*GROUP_AFFINITY, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "user32" fn AttachThreadInput( idAttach: u32, idAttachTo: u32, fAttach: BOOL, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "user32" fn WaitForInputIdle( hProcess: ?HANDLE, dwMilliseconds: u32, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "user32" fn GetGuiResources( hProcess: ?HANDLE, uiFlags: GET_GUI_RESOURCES_FLAGS, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'windows8.0' pub extern "user32" fn IsImmersiveProcess( hProcess: ?HANDLE, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows8.0' pub extern "user32" fn SetProcessRestrictionExemption( fEnableExemption: BOOL, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "kernel32" fn GetProcessAffinityMask( hProcess: ?HANDLE, lpProcessAffinityMask: ?*usize, lpSystemAffinityMask: ?*usize, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "kernel32" fn SetProcessAffinityMask( hProcess: ?HANDLE, dwProcessAffinityMask: usize, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "kernel32" fn GetProcessIoCounters( hProcess: ?HANDLE, lpIoCounters: ?*IO_COUNTERS, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "kernel32" fn SwitchToFiber( lpFiber: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) void; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "kernel32" fn DeleteFiber( lpFiber: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) void; // TODO: this type is limited to platform 'windows6.0.6000' pub extern "kernel32" fn ConvertFiberToThread() callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "kernel32" fn CreateFiberEx( dwStackCommitSize: usize, dwStackReserveSize: usize, dwFlags: u32, lpStartAddress: ?LPFIBER_START_ROUTINE, lpParameter: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) ?*anyopaque; // TODO: this type is limited to platform 'windows6.0.6000' pub extern "kernel32" fn ConvertThreadToFiberEx( lpParameter: ?*anyopaque, dwFlags: u32, ) callconv(@import("std").os.windows.WINAPI) ?*anyopaque; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "kernel32" fn CreateFiber( dwStackSize: usize, lpStartAddress: ?LPFIBER_START_ROUTINE, lpParameter: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) ?*anyopaque; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "kernel32" fn ConvertThreadToFiber( lpParameter: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) ?*anyopaque; // TODO: this type is limited to platform 'windows6.1' pub extern "kernel32" fn CreateUmsCompletionList( UmsCompletionList: ?*?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows6.1' pub extern "kernel32" fn DequeueUmsCompletionListItems( UmsCompletionList: ?*anyopaque, WaitTimeOut: u32, UmsThreadList: ?*?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows6.1' pub extern "kernel32" fn GetUmsCompletionListEvent( UmsCompletionList: ?*anyopaque, UmsCompletionEvent: ?*?HANDLE, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows6.1' pub extern "kernel32" fn ExecuteUmsThread( UmsThread: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows6.1' pub extern "kernel32" fn UmsThreadYield( SchedulerParam: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows6.1' pub extern "kernel32" fn DeleteUmsCompletionList( UmsCompletionList: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows6.1' pub extern "kernel32" fn GetCurrentUmsThread() callconv(@import("std").os.windows.WINAPI) ?*anyopaque; // TODO: this type is limited to platform 'windows6.1' pub extern "kernel32" fn GetNextUmsListItem( UmsContext: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) ?*anyopaque; // TODO: this type is limited to platform 'windows6.1' pub extern "kernel32" fn QueryUmsThreadInformation( UmsThread: ?*anyopaque, UmsThreadInfoClass: RTL_UMS_THREAD_INFO_CLASS, // TODO: what to do with BytesParamIndex 3? UmsThreadInformation: ?*anyopaque, UmsThreadInformationLength: u32, ReturnLength: ?*u32, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows6.1' pub extern "kernel32" fn SetUmsThreadInformation( UmsThread: ?*anyopaque, UmsThreadInfoClass: RTL_UMS_THREAD_INFO_CLASS, UmsThreadInformation: ?*anyopaque, UmsThreadInformationLength: u32, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows6.1' pub extern "kernel32" fn DeleteUmsThreadContext( UmsThread: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows6.1' pub extern "kernel32" fn CreateUmsThreadContext( lpUmsThread: ?*?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows6.1' pub extern "kernel32" fn EnterUmsSchedulingMode( SchedulerStartupInfo: ?*UMS_SCHEDULER_STARTUP_INFO, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows6.1' pub extern "kernel32" fn GetUmsSystemThreadInformation( ThreadHandle: ?HANDLE, SystemThreadInfo: ?*UMS_SYSTEM_THREAD_INFORMATION, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "kernel32" fn SetThreadAffinityMask( hThread: ?HANDLE, dwThreadAffinityMask: usize, ) callconv(@import("std").os.windows.WINAPI) usize; // TODO: this type is limited to platform 'windows6.0.6000' pub extern "kernel32" fn SetProcessDEPPolicy( dwFlags: PROCESS_DEP_FLAGS, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows6.0.6000' pub extern "kernel32" fn GetProcessDEPPolicy( hProcess: ?HANDLE, lpFlags: ?*u32, lpPermanent: ?*BOOL, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "kernel32" fn PulseEvent( hEvent: ?HANDLE, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "kernel32" fn WinExec( lpCmdLine: ?[*:0]const u8, uCmdShow: u32, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "kernel32" fn CreateSemaphoreA( lpSemaphoreAttributes: ?*SECURITY_ATTRIBUTES, lInitialCount: i32, lMaximumCount: i32, lpName: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) ?HANDLE; // TODO: this type is limited to platform 'windows6.0.6000' pub extern "kernel32" fn CreateSemaphoreExA( lpSemaphoreAttributes: ?*SECURITY_ATTRIBUTES, lInitialCount: i32, lMaximumCount: i32, lpName: ?[*:0]const u8, dwFlags: u32, dwDesiredAccess: u32, ) callconv(@import("std").os.windows.WINAPI) ?HANDLE; // TODO: this type is limited to platform 'windows6.0.6000' pub extern "kernel32" fn QueryFullProcessImageNameA( hProcess: ?HANDLE, dwFlags: PROCESS_NAME_FORMAT, lpExeName: [*:0]u8, lpdwSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows6.0.6000' pub extern "kernel32" fn QueryFullProcessImageNameW( hProcess: ?HANDLE, dwFlags: PROCESS_NAME_FORMAT, lpExeName: [*:0]u16, lpdwSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) BOOL; pub extern "kernel32" fn GetStartupInfoA( lpStartupInfo: ?*STARTUPINFOA, ) callconv(@import("std").os.windows.WINAPI) void; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "advapi32" fn CreateProcessWithLogonW( lpUsername: ?[*:0]const u16, lpDomain: ?[*:0]const u16, lpPassword: ?[*:0]const u16, dwLogonFlags: CREATE_PROCESS_LOGON_FLAGS, lpApplicationName: ?[*:0]const u16, lpCommandLine: ?PWSTR, dwCreationFlags: u32, lpEnvironment: ?*anyopaque, lpCurrentDirectory: ?[*:0]const u16, lpStartupInfo: ?*STARTUPINFOW, lpProcessInformation: ?*PROCESS_INFORMATION, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows6.0.6000' pub extern "advapi32" fn CreateProcessWithTokenW( hToken: ?HANDLE, dwLogonFlags: CREATE_PROCESS_LOGON_FLAGS, lpApplicationName: ?[*:0]const u16, lpCommandLine: ?PWSTR, dwCreationFlags: u32, lpEnvironment: ?*anyopaque, lpCurrentDirectory: ?[*:0]const u16, lpStartupInfo: ?*STARTUPINFOW, lpProcessInformation: ?*PROCESS_INFORMATION, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "kernel32" fn RegisterWaitForSingleObject( phNewWaitObject: ?*?HANDLE, hObject: ?HANDLE, Callback: ?WAITORTIMERCALLBACK, Context: ?*anyopaque, dwMilliseconds: u32, dwFlags: WORKER_THREAD_FLAGS, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "kernel32" fn UnregisterWait( WaitHandle: ?HANDLE, ) callconv(@import("std").os.windows.WINAPI) BOOL; pub extern "kernel32" fn SetTimerQueueTimer( TimerQueue: ?HANDLE, Callback: ?WAITORTIMERCALLBACK, Parameter: ?*anyopaque, DueTime: u32, Period: u32, PreferIo: BOOL, ) callconv(@import("std").os.windows.WINAPI) ?HANDLE; // TODO: this type is limited to platform 'windows6.0.6000' pub extern "kernel32" fn CreatePrivateNamespaceA( lpPrivateNamespaceAttributes: ?*SECURITY_ATTRIBUTES, lpBoundaryDescriptor: ?*anyopaque, lpAliasPrefix: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) NamespaceHandle; // TODO: this type is limited to platform 'windows6.0.6000' pub extern "kernel32" fn OpenPrivateNamespaceA( lpBoundaryDescriptor: ?*anyopaque, lpAliasPrefix: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) NamespaceHandle; // TODO: this type is limited to platform 'windows6.0.6000' pub extern "kernel32" fn CreateBoundaryDescriptorA( Name: ?[*:0]const u8, Flags: u32, ) callconv(@import("std").os.windows.WINAPI) BoundaryDescriptorHandle; // TODO: this type is limited to platform 'windows6.1' pub extern "kernel32" fn AddIntegrityLabelToBoundaryDescriptor( BoundaryDescriptor: ?*?HANDLE, IntegrityLabel: ?PSID, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows6.1' pub extern "kernel32" fn GetActiveProcessorGroupCount() callconv(@import("std").os.windows.WINAPI) u16; // TODO: this type is limited to platform 'windows6.1' pub extern "kernel32" fn GetMaximumProcessorGroupCount() callconv(@import("std").os.windows.WINAPI) u16; // TODO: this type is limited to platform 'windows6.1' pub extern "kernel32" fn GetActiveProcessorCount( GroupNumber: u16, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'windows6.1' pub extern "kernel32" fn GetMaximumProcessorCount( GroupNumber: u16, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'windows6.0.6000' pub extern "kernel32" fn GetNumaProcessorNode( Processor: u8, NodeNumber: ?*u8, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows6.1' pub extern "kernel32" fn GetNumaNodeNumberFromHandle( hFile: ?HANDLE, NodeNumber: ?*u16, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows6.1' pub extern "kernel32" fn GetNumaProcessorNodeEx( Processor: ?*PROCESSOR_NUMBER, NodeNumber: ?*u16, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows6.0.6000' pub extern "kernel32" fn GetNumaNodeProcessorMask( Node: u8, ProcessorMask: ?*u64, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows6.0.6000' pub extern "kernel32" fn GetNumaAvailableMemoryNode( Node: u8, AvailableBytes: ?*u64, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows6.1' pub extern "kernel32" fn GetNumaAvailableMemoryNodeEx( Node: u16, AvailableBytes: ?*u64, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows6.0.6000' pub extern "kernel32" fn GetNumaProximityNode( ProximityId: u32, NodeNumber: ?*u8, ) callconv(@import("std").os.windows.WINAPI) BOOL; pub extern "ntdll" fn NtQueryInformationProcess( ProcessHandle: ?HANDLE, ProcessInformationClass: PROCESSINFOCLASS, ProcessInformation: ?*anyopaque, ProcessInformationLength: u32, ReturnLength: ?*u32, ) callconv(@import("std").os.windows.WINAPI) NTSTATUS; pub extern "ntdll" fn NtQueryInformationThread( ThreadHandle: ?HANDLE, ThreadInformationClass: THREADINFOCLASS, ThreadInformation: ?*anyopaque, ThreadInformationLength: u32, ReturnLength: ?*u32, ) callconv(@import("std").os.windows.WINAPI) NTSTATUS; pub extern "ntdll" fn NtSetInformationThread( ThreadHandle: ?HANDLE, ThreadInformationClass: THREADINFOCLASS, // TODO: what to do with BytesParamIndex 3? ThreadInformation: ?*anyopaque, ThreadInformationLength: u32, ) callconv(@import("std").os.windows.WINAPI) NTSTATUS; //-------------------------------------------------------------------------------- // Section: Unicode Aliases (16) //-------------------------------------------------------------------------------- const thismodule = @This(); pub usingnamespace switch (@import("../zig.zig").unicode_mode) { .ansi => struct { pub const STARTUPINFO = thismodule.STARTUPINFOA; pub const STARTUPINFOEX = thismodule.STARTUPINFOEXA; pub const CreateMutex = thismodule.CreateMutexA; pub const CreateEvent = thismodule.CreateEventA; pub const OpenEvent = thismodule.OpenEventA; pub const CreateMutexEx = thismodule.CreateMutexExA; pub const CreateEventEx = thismodule.CreateEventExA; pub const CreateSemaphoreEx = thismodule.CreateSemaphoreExA; pub const CreateSemaphore = thismodule.CreateSemaphoreA; pub const CreateProcess = thismodule.CreateProcessA; pub const GetStartupInfo = thismodule.GetStartupInfoA; pub const CreateProcessAsUser = thismodule.CreateProcessAsUserA; pub const CreatePrivateNamespace = thismodule.CreatePrivateNamespaceA; pub const OpenPrivateNamespace = thismodule.OpenPrivateNamespaceA; pub const CreateBoundaryDescriptor = thismodule.CreateBoundaryDescriptorA; pub const QueryFullProcessImageName = thismodule.QueryFullProcessImageNameA; }, .wide => struct { pub const STARTUPINFO = thismodule.STARTUPINFOW; pub const STARTUPINFOEX = thismodule.STARTUPINFOEXW; pub const CreateMutex = thismodule.CreateMutexW; pub const CreateEvent = thismodule.CreateEventW; pub const OpenEvent = thismodule.OpenEventW; pub const CreateMutexEx = thismodule.CreateMutexExW; pub const CreateEventEx = thismodule.CreateEventExW; pub const CreateSemaphoreEx = thismodule.CreateSemaphoreExW; pub const CreateSemaphore = thismodule.CreateSemaphoreW; pub const CreateProcess = thismodule.CreateProcessW; pub const GetStartupInfo = thismodule.GetStartupInfoW; pub const CreateProcessAsUser = thismodule.CreateProcessAsUserW; pub const CreatePrivateNamespace = thismodule.CreatePrivateNamespaceW; pub const OpenPrivateNamespace = thismodule.OpenPrivateNamespaceW; pub const CreateBoundaryDescriptor = thismodule.CreateBoundaryDescriptorW; pub const QueryFullProcessImageName = thismodule.QueryFullProcessImageNameW; }, .unspecified => if (@import("builtin").is_test) struct { pub const STARTUPINFO = *opaque {}; pub const STARTUPINFOEX = *opaque {}; pub const CreateMutex = *opaque {}; pub const CreateEvent = *opaque {}; pub const OpenEvent = *opaque {}; pub const CreateMutexEx = *opaque {}; pub const CreateEventEx = *opaque {}; pub const CreateSemaphoreEx = *opaque {}; pub const CreateSemaphore = *opaque {}; pub const CreateProcess = *opaque {}; pub const GetStartupInfo = *opaque {}; pub const CreateProcessAsUser = *opaque {}; pub const CreatePrivateNamespace = *opaque {}; pub const OpenPrivateNamespace = *opaque {}; pub const CreateBoundaryDescriptor = *opaque {}; pub const QueryFullProcessImageName = *opaque {}; } else struct { pub const STARTUPINFO = @compileError("'STARTUPINFO' requires that UNICODE be set to true or false in the root module"); pub const STARTUPINFOEX = @compileError("'STARTUPINFOEX' requires that UNICODE be set to true or false in the root module"); pub const CreateMutex = @compileError("'CreateMutex' requires that UNICODE be set to true or false in the root module"); pub const CreateEvent = @compileError("'CreateEvent' requires that UNICODE be set to true or false in the root module"); pub const OpenEvent = @compileError("'OpenEvent' requires that UNICODE be set to true or false in the root module"); pub const CreateMutexEx = @compileError("'CreateMutexEx' requires that UNICODE be set to true or false in the root module"); pub const CreateEventEx = @compileError("'CreateEventEx' requires that UNICODE be set to true or false in the root module"); pub const CreateSemaphoreEx = @compileError("'CreateSemaphoreEx' requires that UNICODE be set to true or false in the root module"); pub const CreateSemaphore = @compileError("'CreateSemaphore' requires that UNICODE be set to true or false in the root module"); pub const CreateProcess = @compileError("'CreateProcess' requires that UNICODE be set to true or false in the root module"); pub const GetStartupInfo = @compileError("'GetStartupInfo' requires that UNICODE be set to true or false in the root module"); pub const CreateProcessAsUser = @compileError("'CreateProcessAsUser' requires that UNICODE be set to true or false in the root module"); pub const CreatePrivateNamespace = @compileError("'CreatePrivateNamespace' requires that UNICODE be set to true or false in the root module"); pub const OpenPrivateNamespace = @compileError("'OpenPrivateNamespace' requires that UNICODE be set to true or false in the root module"); pub const CreateBoundaryDescriptor = @compileError("'CreateBoundaryDescriptor' requires that UNICODE be set to true or false in the root module"); pub const QueryFullProcessImageName = @compileError("'QueryFullProcessImageName' requires that UNICODE be set to true or false in the root module"); }, }; //-------------------------------------------------------------------------------- // Section: Imports (22) //-------------------------------------------------------------------------------- const Guid = @import("../zig.zig").Guid; const BOOL = @import("../foundation.zig").BOOL; const BOOLEAN = @import("../foundation.zig").BOOLEAN; const FILETIME = @import("../foundation.zig").FILETIME; const GROUP_AFFINITY = @import("../system/system_information.zig").GROUP_AFFINITY; const HANDLE = @import("../foundation.zig").HANDLE; const HINSTANCE = @import("../foundation.zig").HINSTANCE; const HRESULT = @import("../foundation.zig").HRESULT; const LARGE_INTEGER = @import("../foundation.zig").LARGE_INTEGER; const LIST_ENTRY = @import("../system/kernel.zig").LIST_ENTRY; const NTSTATUS = @import("../foundation.zig").NTSTATUS; const PAPCFUNC = @import("../foundation.zig").PAPCFUNC; const PROCESSOR_NUMBER = @import("../system/kernel.zig").PROCESSOR_NUMBER; const PSID = @import("../foundation.zig").PSID; const PSTR = @import("../foundation.zig").PSTR; const PWSTR = @import("../foundation.zig").PWSTR; const RTL_UMS_SCHEDULER_REASON = @import("../system/system_services.zig").RTL_UMS_SCHEDULER_REASON; const SECURITY_ATTRIBUTES = @import("../security.zig").SECURITY_ATTRIBUTES; const SLIST_ENTRY = @import("../system/kernel.zig").SLIST_ENTRY; const SLIST_HEADER = @import("../system/kernel.zig").SLIST_HEADER; const TOKEN_ACCESS_MASK = @import("../security.zig").TOKEN_ACCESS_MASK; const UNICODE_STRING = @import("../foundation.zig").UNICODE_STRING; test { // The following '_ = <FuncPtrType>' lines are a workaround for https://github.com/ziglang/zig/issues/4476 if (@hasDecl(@This(), "LPTHREAD_START_ROUTINE")) { _ = LPTHREAD_START_ROUTINE; } if (@hasDecl(@This(), "PINIT_ONCE_FN")) { _ = PINIT_ONCE_FN; } if (@hasDecl(@This(), "PTIMERAPCROUTINE")) { _ = PTIMERAPCROUTINE; } if (@hasDecl(@This(), "PTP_WIN32_IO_CALLBACK")) { _ = PTP_WIN32_IO_CALLBACK; } if (@hasDecl(@This(), "PRTL_UMS_SCHEDULER_ENTRY_POINT")) { _ = PRTL_UMS_SCHEDULER_ENTRY_POINT; } if (@hasDecl(@This(), "WAITORTIMERCALLBACK")) { _ = WAITORTIMERCALLBACK; } if (@hasDecl(@This(), "PFLS_CALLBACK_FUNCTION")) { _ = PFLS_CALLBACK_FUNCTION; } if (@hasDecl(@This(), "PTP_SIMPLE_CALLBACK")) { _ = PTP_SIMPLE_CALLBACK; } if (@hasDecl(@This(), "PTP_CLEANUP_GROUP_CANCEL_CALLBACK")) { _ = PTP_CLEANUP_GROUP_CANCEL_CALLBACK; } if (@hasDecl(@This(), "PTP_WORK_CALLBACK")) { _ = PTP_WORK_CALLBACK; } if (@hasDecl(@This(), "PTP_TIMER_CALLBACK")) { _ = PTP_TIMER_CALLBACK; } if (@hasDecl(@This(), "PTP_WAIT_CALLBACK")) { _ = PTP_WAIT_CALLBACK; } if (@hasDecl(@This(), "LPFIBER_START_ROUTINE")) { _ = LPFIBER_START_ROUTINE; } if (@hasDecl(@This(), "PPS_POST_PROCESS_INIT_ROUTINE")) { _ = PPS_POST_PROCESS_INIT_ROUTINE; } @setEvalBranchQuota(comptime @import("std").meta.declarations(@This()).len * 3); // reference all the pub declarations if (!@import("builtin").is_test) return; inline for (comptime @import("std").meta.declarations(@This())) |decl| { if (decl.is_pub) { _ = @field(@This(), decl.name); } } }
0
repos/capy/vendor/zigwin32/win32
repos/capy/vendor/zigwin32/win32/system/user_access_logging.zig
//! NOTE: this file is autogenerated, DO NOT MODIFY //-------------------------------------------------------------------------------- // Section: Constants (0) //-------------------------------------------------------------------------------- //-------------------------------------------------------------------------------- // Section: Types (1) //-------------------------------------------------------------------------------- pub const UAL_DATA_BLOB = extern struct { Size: u32, RoleGuid: Guid, TenantId: Guid, Address: SOCKADDR_STORAGE, UserName: [260]u16, }; //-------------------------------------------------------------------------------- // Section: Functions (4) //-------------------------------------------------------------------------------- // TODO: this type is limited to platform 'windows8.0' pub extern "ualapi" fn UalStart( Data: ?*UAL_DATA_BLOB, ) callconv(@import("std").os.windows.WINAPI) HRESULT; // TODO: this type is limited to platform 'windows8.0' pub extern "ualapi" fn UalStop( Data: ?*UAL_DATA_BLOB, ) callconv(@import("std").os.windows.WINAPI) HRESULT; // TODO: this type is limited to platform 'windows8.0' pub extern "ualapi" fn UalInstrument( Data: ?*UAL_DATA_BLOB, ) callconv(@import("std").os.windows.WINAPI) HRESULT; // TODO: this type is limited to platform 'windows8.0' pub extern "ualapi" fn UalRegisterProduct( wszProductName: ?[*:0]const u16, wszRoleName: ?[*:0]const u16, wszGuid: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT; //-------------------------------------------------------------------------------- // Section: Unicode Aliases (0) //-------------------------------------------------------------------------------- const thismodule = @This(); pub usingnamespace switch (@import("../zig.zig").unicode_mode) { .ansi => struct {}, .wide => struct {}, .unspecified => if (@import("builtin").is_test) struct {} else struct {}, }; //-------------------------------------------------------------------------------- // Section: Imports (4) //-------------------------------------------------------------------------------- const Guid = @import("../zig.zig").Guid; const HRESULT = @import("../foundation.zig").HRESULT; const PWSTR = @import("../foundation.zig").PWSTR; const SOCKADDR_STORAGE = @import("../networking/win_sock.zig").SOCKADDR_STORAGE; test { @setEvalBranchQuota(comptime @import("std").meta.declarations(@This()).len * 3); // reference all the pub declarations if (!@import("builtin").is_test) return; inline for (comptime @import("std").meta.declarations(@This())) |decl| { if (decl.is_pub) { _ = @field(@This(), decl.name); } } }
0
repos/capy/vendor/zigwin32/win32
repos/capy/vendor/zigwin32/win32/system/tpm_base_services.zig
//! NOTE: this file is autogenerated, DO NOT MODIFY //-------------------------------------------------------------------------------- // Section: Constants (27) //-------------------------------------------------------------------------------- pub const TBS_CONTEXT_VERSION_ONE = @as(u32, 1); pub const TBS_SUCCESS = @as(u32, 0); pub const TBS_OWNERAUTH_TYPE_FULL = @as(u32, 1); pub const TBS_OWNERAUTH_TYPE_ADMIN = @as(u32, 2); pub const TBS_OWNERAUTH_TYPE_USER = @as(u32, 3); pub const TBS_OWNERAUTH_TYPE_ENDORSEMENT = @as(u32, 4); pub const TBS_OWNERAUTH_TYPE_ENDORSEMENT_20 = @as(u32, 12); pub const TBS_OWNERAUTH_TYPE_STORAGE_20 = @as(u32, 13); pub const TBS_CONTEXT_VERSION_TWO = @as(u32, 2); pub const TPM_WNF_INFO_CLEAR_SUCCESSFUL = @as(u32, 1); pub const TPM_WNF_INFO_OWNERSHIP_SUCCESSFUL = @as(u32, 2); pub const TPM_WNF_INFO_NO_REBOOT_REQUIRED = @as(u32, 1); pub const TPM_VERSION_UNKNOWN = @as(u32, 0); pub const TPM_VERSION_12 = @as(u32, 1); pub const TPM_VERSION_20 = @as(u32, 2); pub const TPM_IFTYPE_UNKNOWN = @as(u32, 0); pub const TPM_IFTYPE_1 = @as(u32, 1); pub const TPM_IFTYPE_TRUSTZONE = @as(u32, 2); pub const TPM_IFTYPE_HW = @as(u32, 3); pub const TPM_IFTYPE_EMULATOR = @as(u32, 4); pub const TPM_IFTYPE_SPB = @as(u32, 5); pub const TBS_TCGLOG_SRTM_CURRENT = @as(u32, 0); pub const TBS_TCGLOG_DRTM_CURRENT = @as(u32, 1); pub const TBS_TCGLOG_SRTM_BOOT = @as(u32, 2); pub const TBS_TCGLOG_SRTM_RESUME = @as(u32, 3); pub const TBS_TCGLOG_DRTM_BOOT = @as(u32, 4); pub const TBS_TCGLOG_DRTM_RESUME = @as(u32, 5); //-------------------------------------------------------------------------------- // Section: Types (6) //-------------------------------------------------------------------------------- pub const TBS_COMMAND_PRIORITY = enum(u32) { LOW = 100, NORMAL = 200, SYSTEM = 400, HIGH = 300, MAX = 2147483648, }; pub const TBS_COMMAND_PRIORITY_LOW = TBS_COMMAND_PRIORITY.LOW; pub const TBS_COMMAND_PRIORITY_NORMAL = TBS_COMMAND_PRIORITY.NORMAL; pub const TBS_COMMAND_PRIORITY_SYSTEM = TBS_COMMAND_PRIORITY.SYSTEM; pub const TBS_COMMAND_PRIORITY_HIGH = TBS_COMMAND_PRIORITY.HIGH; pub const TBS_COMMAND_PRIORITY_MAX = TBS_COMMAND_PRIORITY.MAX; pub const TBS_COMMAND_LOCALITY = enum(u32) { ZERO = 0, ONE = 1, TWO = 2, THREE = 3, FOUR = 4, }; pub const TBS_COMMAND_LOCALITY_ZERO = TBS_COMMAND_LOCALITY.ZERO; pub const TBS_COMMAND_LOCALITY_ONE = TBS_COMMAND_LOCALITY.ONE; pub const TBS_COMMAND_LOCALITY_TWO = TBS_COMMAND_LOCALITY.TWO; pub const TBS_COMMAND_LOCALITY_THREE = TBS_COMMAND_LOCALITY.THREE; pub const TBS_COMMAND_LOCALITY_FOUR = TBS_COMMAND_LOCALITY.FOUR; pub const TBS_CONTEXT_PARAMS = extern struct { version: u32, }; pub const TBS_CONTEXT_PARAMS2 = extern struct { version: u32, Anonymous: extern union { Anonymous: extern struct { _bitfield: u32, }, asUINT32: u32, }, }; pub const tdTPM_WNF_PROVISIONING = extern struct { status: u32, message: [28]u8, }; pub const TPM_DEVICE_INFO = extern struct { structVersion: u32, tpmVersion: u32, tpmInterfaceType: u32, tpmImpRevision: u32, }; //-------------------------------------------------------------------------------- // Section: Functions (13) //-------------------------------------------------------------------------------- // TODO: this type is limited to platform 'windows6.0.6000' pub extern "tbs" fn Tbsi_Context_Create( pContextParams: ?*TBS_CONTEXT_PARAMS, phContext: ?*?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'windows6.0.6000' pub extern "tbs" fn Tbsip_Context_Close( hContext: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'windows6.0.6000' pub extern "tbs" fn Tbsip_Submit_Command( hContext: ?*anyopaque, Locality: TBS_COMMAND_LOCALITY, Priority: TBS_COMMAND_PRIORITY, // TODO: what to do with BytesParamIndex 4? pabCommand: ?*u8, cbCommand: u32, // TODO: what to do with BytesParamIndex 6? pabResult: ?*u8, pcbResult: ?*u32, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'windows6.0.6000' pub extern "tbs" fn Tbsip_Cancel_Commands( hContext: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'windows6.0.6000' pub extern "tbs" fn Tbsi_Physical_Presence_Command( hContext: ?*anyopaque, // TODO: what to do with BytesParamIndex 2? pabInput: ?*u8, cbInput: u32, // TODO: what to do with BytesParamIndex 4? pabOutput: ?*u8, pcbOutput: ?*u32, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'windows6.0.6000' pub extern "tbs" fn Tbsi_Get_TCG_Log( hContext: ?*anyopaque, // TODO: what to do with BytesParamIndex 2? pOutputBuf: ?*u8, pOutputBufLen: ?*u32, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'windows8.0' pub extern "tbs" fn Tbsi_GetDeviceInfo( Size: u32, // TODO: what to do with BytesParamIndex 0? Info: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'windows8.0' pub extern "tbs" fn Tbsi_Get_OwnerAuth( hContext: ?*anyopaque, ownerauthType: u32, // TODO: what to do with BytesParamIndex 3? pOutputBuf: ?*u8, pOutputBufLen: ?*u32, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'windows8.0' pub extern "tbs" fn Tbsi_Revoke_Attestation() callconv(@import("std").os.windows.WINAPI) u32; pub extern "tbs" fn GetDeviceID( // TODO: what to do with BytesParamIndex 1? pbWindowsAIK: ?*u8, cbWindowsAIK: u32, pcbResult: ?*u32, pfProtectedByTPM: ?*BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT; pub extern "tbs" fn GetDeviceIDString( pszWindowsAIK: ?[*:0]u16, cchWindowsAIK: u32, pcchResult: ?*u32, pfProtectedByTPM: ?*BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT; pub extern "tbs" fn Tbsi_Create_Windows_Key( keyHandle: u32, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'windows10.0.17134' pub extern "tbs" fn Tbsi_Get_TCG_Log_Ex( logType: u32, // TODO: what to do with BytesParamIndex 2? pbOutput: ?*u8, pcbOutput: ?*u32, ) callconv(@import("std").os.windows.WINAPI) u32; //-------------------------------------------------------------------------------- // Section: Unicode Aliases (0) //-------------------------------------------------------------------------------- const thismodule = @This(); pub usingnamespace switch (@import("../zig.zig").unicode_mode) { .ansi => struct {}, .wide => struct {}, .unspecified => if (@import("builtin").is_test) struct {} else struct {}, }; //-------------------------------------------------------------------------------- // Section: Imports (2) //-------------------------------------------------------------------------------- const BOOL = @import("../foundation.zig").BOOL; const HRESULT = @import("../foundation.zig").HRESULT; test { @setEvalBranchQuota(comptime @import("std").meta.declarations(@This()).len * 3); // reference all the pub declarations if (!@import("builtin").is_test) return; inline for (comptime @import("std").meta.declarations(@This())) |decl| { if (decl.is_pub) { _ = @field(@This(), decl.name); } } }
0
repos/capy/vendor/zigwin32/win32
repos/capy/vendor/zigwin32/win32/system/performance.zig
//! NOTE: this file is autogenerated, DO NOT MODIFY //-------------------------------------------------------------------------------- // Section: Constants (183) //-------------------------------------------------------------------------------- pub const MAX_COUNTER_PATH = @as(u32, 256); pub const PDH_MAX_COUNTER_NAME = @as(u32, 1024); pub const PDH_MAX_INSTANCE_NAME = @as(u32, 1024); pub const PDH_MAX_COUNTER_PATH = @as(u32, 2048); pub const PDH_MAX_DATASOURCE_PATH = @as(u32, 1024); pub const H_WBEM_DATASOURCE = @as(i32, -1); pub const PDH_MAX_SCALE = @as(i32, 7); pub const PDH_MIN_SCALE = @as(i32, -7); pub const PDH_NOEXPANDCOUNTERS = @as(u32, 1); pub const PDH_NOEXPANDINSTANCES = @as(u32, 2); pub const PDH_REFRESHCOUNTERS = @as(u32, 4); pub const PDH_LOG_TYPE_RETIRED_BIN = @as(u32, 3); pub const PDH_LOG_TYPE_TRACE_KERNEL = @as(u32, 4); pub const PDH_LOG_TYPE_TRACE_GENERIC = @as(u32, 5); pub const PERF_PROVIDER_USER_MODE = @as(u32, 0); pub const PERF_PROVIDER_KERNEL_MODE = @as(u32, 1); pub const PERF_PROVIDER_DRIVER = @as(u32, 2); pub const PERF_COUNTERSET_FLAG_MULTIPLE = @as(u32, 2); pub const PERF_COUNTERSET_FLAG_AGGREGATE = @as(u32, 4); pub const PERF_COUNTERSET_FLAG_HISTORY = @as(u32, 8); pub const PERF_COUNTERSET_FLAG_INSTANCE = @as(u32, 16); pub const PERF_COUNTERSET_SINGLE_INSTANCE = @as(u32, 0); pub const PERF_COUNTERSET_MULTI_INSTANCES = @as(u32, 2); pub const PERF_COUNTERSET_SINGLE_AGGREGATE = @as(u32, 4); pub const PERF_AGGREGATE_MAX = @as(u32, 4); pub const PERF_ATTRIB_BY_REFERENCE = @as(u64, 1); pub const PERF_ATTRIB_NO_DISPLAYABLE = @as(u64, 2); pub const PERF_ATTRIB_NO_GROUP_SEPARATOR = @as(u64, 4); pub const PERF_ATTRIB_DISPLAY_AS_REAL = @as(u64, 8); pub const PERF_ATTRIB_DISPLAY_AS_HEX = @as(u64, 16); pub const PERF_WILDCARD_COUNTER = @as(u32, 4294967295); pub const PERF_MAX_INSTANCE_NAME = @as(u32, 1024); pub const PERF_ADD_COUNTER = @as(u32, 1); pub const PERF_REMOVE_COUNTER = @as(u32, 2); pub const PERF_ENUM_INSTANCES = @as(u32, 3); pub const PERF_COLLECT_START = @as(u32, 5); pub const PERF_COLLECT_END = @as(u32, 6); pub const PERF_FILTER = @as(u32, 9); pub const PERF_DATA_VERSION = @as(u32, 1); pub const PERF_DATA_REVISION = @as(u32, 1); pub const PERF_NO_INSTANCES = @as(i32, -1); pub const PERF_METADATA_MULTIPLE_INSTANCES = @as(i32, -2); pub const PERF_METADATA_NO_INSTANCES = @as(i32, -3); pub const PERF_SIZE_DWORD = @as(u32, 0); pub const PERF_SIZE_LARGE = @as(u32, 256); pub const PERF_SIZE_ZERO = @as(u32, 512); pub const PERF_SIZE_VARIABLE_LEN = @as(u32, 768); pub const PERF_TYPE_NUMBER = @as(u32, 0); pub const PERF_TYPE_COUNTER = @as(u32, 1024); pub const PERF_TYPE_TEXT = @as(u32, 2048); pub const PERF_TYPE_ZERO = @as(u32, 3072); pub const PERF_NUMBER_HEX = @as(u32, 0); pub const PERF_NUMBER_DECIMAL = @as(u32, 65536); pub const PERF_NUMBER_DEC_1000 = @as(u32, 131072); pub const PERF_COUNTER_VALUE = @as(u32, 0); pub const PERF_COUNTER_RATE = @as(u32, 65536); pub const PERF_COUNTER_FRACTION = @as(u32, 131072); pub const PERF_COUNTER_BASE = @as(u32, 196608); pub const PERF_COUNTER_ELAPSED = @as(u32, 262144); pub const PERF_COUNTER_QUEUELEN = @as(u32, 327680); pub const PERF_COUNTER_HISTOGRAM = @as(u32, 393216); pub const PERF_COUNTER_PRECISION = @as(u32, 458752); pub const PERF_TEXT_UNICODE = @as(u32, 0); pub const PERF_TEXT_ASCII = @as(u32, 65536); pub const PERF_TIMER_TICK = @as(u32, 0); pub const PERF_TIMER_100NS = @as(u32, 1048576); pub const PERF_OBJECT_TIMER = @as(u32, 2097152); pub const PERF_DELTA_COUNTER = @as(u32, 4194304); pub const PERF_DELTA_BASE = @as(u32, 8388608); pub const PERF_INVERSE_COUNTER = @as(u32, 16777216); pub const PERF_MULTI_COUNTER = @as(u32, 33554432); pub const PERF_DISPLAY_NO_SUFFIX = @as(u32, 0); pub const PERF_DISPLAY_PER_SEC = @as(u32, 268435456); pub const PERF_DISPLAY_PERCENT = @as(u32, 536870912); pub const PERF_DISPLAY_SECONDS = @as(u32, 805306368); pub const PERF_DISPLAY_NOSHOW = @as(u32, 1073741824); pub const PERF_COUNTER_HISTOGRAM_TYPE = @as(u32, 2147483648); pub const PERF_NO_UNIQUE_ID = @as(i32, -1); pub const MAX_PERF_OBJECTS_IN_QUERY_FUNCTION = @as(i32, 64); pub const WINPERF_LOG_NONE = @as(u32, 0); pub const WINPERF_LOG_USER = @as(u32, 1); pub const WINPERF_LOG_DEBUG = @as(u32, 2); pub const WINPERF_LOG_VERBOSE = @as(u32, 3); pub const LIBID_SystemMonitor = Guid.initString("1b773e42-2509-11cf-942f-008029004347"); pub const DIID_DICounterItem = Guid.initString("c08c4ff2-0e2e-11cf-942c-008029004347"); pub const DIID_DILogFileItem = Guid.initString("8d093ffc-f777-4917-82d1-833fbc54c58f"); pub const DIID_DISystemMonitor = Guid.initString("13d73d81-c32e-11cf-9398-00aa00a3ddea"); pub const DIID_DISystemMonitorInternal = Guid.initString("194eb242-c32c-11cf-9398-00aa00a3ddea"); pub const DIID_DISystemMonitorEvents = Guid.initString("84979930-4ab3-11cf-943a-008029004347"); pub const PDH_CSTATUS_VALID_DATA = @as(i32, 0); pub const PDH_CSTATUS_NEW_DATA = @as(i32, 1); pub const PDH_CSTATUS_NO_MACHINE = @as(i32, -2147481648); pub const PDH_CSTATUS_NO_INSTANCE = @as(i32, -2147481647); pub const PDH_MORE_DATA = @as(i32, -2147481646); pub const PDH_CSTATUS_ITEM_NOT_VALIDATED = @as(i32, -2147481645); pub const PDH_RETRY = @as(i32, -2147481644); pub const PDH_NO_DATA = @as(i32, -2147481643); pub const PDH_CALC_NEGATIVE_DENOMINATOR = @as(i32, -2147481642); pub const PDH_CALC_NEGATIVE_TIMEBASE = @as(i32, -2147481641); pub const PDH_CALC_NEGATIVE_VALUE = @as(i32, -2147481640); pub const PDH_DIALOG_CANCELLED = @as(i32, -2147481639); pub const PDH_END_OF_LOG_FILE = @as(i32, -2147481638); pub const PDH_ASYNC_QUERY_TIMEOUT = @as(i32, -2147481637); pub const PDH_CANNOT_SET_DEFAULT_REALTIME_DATASOURCE = @as(i32, -2147481636); pub const PDH_UNABLE_MAP_NAME_FILES = @as(i32, -2147480619); pub const PDH_PLA_VALIDATION_WARNING = @as(i32, -2147480589); pub const PDH_CSTATUS_NO_OBJECT = @as(i32, -1073738824); pub const PDH_CSTATUS_NO_COUNTER = @as(i32, -1073738823); pub const PDH_CSTATUS_INVALID_DATA = @as(i32, -1073738822); pub const PDH_MEMORY_ALLOCATION_FAILURE = @as(i32, -1073738821); pub const PDH_INVALID_HANDLE = @as(i32, -1073738820); pub const PDH_INVALID_ARGUMENT = @as(i32, -1073738819); pub const PDH_FUNCTION_NOT_FOUND = @as(i32, -1073738818); pub const PDH_CSTATUS_NO_COUNTERNAME = @as(i32, -1073738817); pub const PDH_CSTATUS_BAD_COUNTERNAME = @as(i32, -1073738816); pub const PDH_INVALID_BUFFER = @as(i32, -1073738815); pub const PDH_INSUFFICIENT_BUFFER = @as(i32, -1073738814); pub const PDH_CANNOT_CONNECT_MACHINE = @as(i32, -1073738813); pub const PDH_INVALID_PATH = @as(i32, -1073738812); pub const PDH_INVALID_INSTANCE = @as(i32, -1073738811); pub const PDH_INVALID_DATA = @as(i32, -1073738810); pub const PDH_NO_DIALOG_DATA = @as(i32, -1073738809); pub const PDH_CANNOT_READ_NAME_STRINGS = @as(i32, -1073738808); pub const PDH_LOG_FILE_CREATE_ERROR = @as(i32, -1073738807); pub const PDH_LOG_FILE_OPEN_ERROR = @as(i32, -1073738806); pub const PDH_LOG_TYPE_NOT_FOUND = @as(i32, -1073738805); pub const PDH_NO_MORE_DATA = @as(i32, -1073738804); pub const PDH_ENTRY_NOT_IN_LOG_FILE = @as(i32, -1073738803); pub const PDH_DATA_SOURCE_IS_LOG_FILE = @as(i32, -1073738802); pub const PDH_DATA_SOURCE_IS_REAL_TIME = @as(i32, -1073738801); pub const PDH_UNABLE_READ_LOG_HEADER = @as(i32, -1073738800); pub const PDH_FILE_NOT_FOUND = @as(i32, -1073738799); pub const PDH_FILE_ALREADY_EXISTS = @as(i32, -1073738798); pub const PDH_NOT_IMPLEMENTED = @as(i32, -1073738797); pub const PDH_STRING_NOT_FOUND = @as(i32, -1073738796); pub const PDH_UNKNOWN_LOG_FORMAT = @as(i32, -1073738794); pub const PDH_UNKNOWN_LOGSVC_COMMAND = @as(i32, -1073738793); pub const PDH_LOGSVC_QUERY_NOT_FOUND = @as(i32, -1073738792); pub const PDH_LOGSVC_NOT_OPENED = @as(i32, -1073738791); pub const PDH_WBEM_ERROR = @as(i32, -1073738790); pub const PDH_ACCESS_DENIED = @as(i32, -1073738789); pub const PDH_LOG_FILE_TOO_SMALL = @as(i32, -1073738788); pub const PDH_INVALID_DATASOURCE = @as(i32, -1073738787); pub const PDH_INVALID_SQLDB = @as(i32, -1073738786); pub const PDH_NO_COUNTERS = @as(i32, -1073738785); pub const PDH_SQL_ALLOC_FAILED = @as(i32, -1073738784); pub const PDH_SQL_ALLOCCON_FAILED = @as(i32, -1073738783); pub const PDH_SQL_EXEC_DIRECT_FAILED = @as(i32, -1073738782); pub const PDH_SQL_FETCH_FAILED = @as(i32, -1073738781); pub const PDH_SQL_ROWCOUNT_FAILED = @as(i32, -1073738780); pub const PDH_SQL_MORE_RESULTS_FAILED = @as(i32, -1073738779); pub const PDH_SQL_CONNECT_FAILED = @as(i32, -1073738778); pub const PDH_SQL_BIND_FAILED = @as(i32, -1073738777); pub const PDH_CANNOT_CONNECT_WMI_SERVER = @as(i32, -1073738776); pub const PDH_PLA_COLLECTION_ALREADY_RUNNING = @as(i32, -1073738775); pub const PDH_PLA_ERROR_SCHEDULE_OVERLAP = @as(i32, -1073738774); pub const PDH_PLA_COLLECTION_NOT_FOUND = @as(i32, -1073738773); pub const PDH_PLA_ERROR_SCHEDULE_ELAPSED = @as(i32, -1073738772); pub const PDH_PLA_ERROR_NOSTART = @as(i32, -1073738771); pub const PDH_PLA_ERROR_ALREADY_EXISTS = @as(i32, -1073738770); pub const PDH_PLA_ERROR_TYPE_MISMATCH = @as(i32, -1073738769); pub const PDH_PLA_ERROR_FILEPATH = @as(i32, -1073738768); pub const PDH_PLA_SERVICE_ERROR = @as(i32, -1073738767); pub const PDH_PLA_VALIDATION_ERROR = @as(i32, -1073738766); pub const PDH_PLA_ERROR_NAME_TOO_LONG = @as(i32, -1073738764); pub const PDH_INVALID_SQL_LOG_FORMAT = @as(i32, -1073738763); pub const PDH_COUNTER_ALREADY_IN_QUERY = @as(i32, -1073738762); pub const PDH_BINARY_LOG_CORRUPT = @as(i32, -1073738761); pub const PDH_LOG_SAMPLE_TOO_SMALL = @as(i32, -1073738760); pub const PDH_OS_LATER_VERSION = @as(i32, -1073738759); pub const PDH_OS_EARLIER_VERSION = @as(i32, -1073738758); pub const PDH_INCORRECT_APPEND_TIME = @as(i32, -1073738757); pub const PDH_UNMATCHED_APPEND_COUNTER = @as(i32, -1073738756); pub const PDH_SQL_ALTER_DETAIL_FAILED = @as(i32, -1073738755); pub const PDH_QUERY_PERF_DATA_TIMEOUT = @as(i32, -1073738754); pub const PLA_CAPABILITY_LOCAL = @as(u32, 268435456); pub const PLA_CAPABILITY_V1_SVC = @as(u32, 1); pub const PLA_CAPABILITY_V1_SESSION = @as(u32, 2); pub const PLA_CAPABILITY_V1_SYSTEM = @as(u32, 4); pub const PLA_CAPABILITY_LEGACY_SESSION = @as(u32, 8); pub const PLA_CAPABILITY_LEGACY_SVC = @as(u32, 16); pub const PLA_CAPABILITY_AUTOLOGGER = @as(u32, 32); pub const S_PDH = Guid.initString("04d66358-c4a1-419b-8023-23b73902de2c"); //-------------------------------------------------------------------------------- // Section: Types (144) //-------------------------------------------------------------------------------- pub const PERF_DETAIL = enum(u32) { NOVICE = 100, ADVANCED = 200, EXPERT = 300, WIZARD = 400, }; pub const PERF_DETAIL_NOVICE = PERF_DETAIL.NOVICE; pub const PERF_DETAIL_ADVANCED = PERF_DETAIL.ADVANCED; pub const PERF_DETAIL_EXPERT = PERF_DETAIL.EXPERT; pub const PERF_DETAIL_WIZARD = PERF_DETAIL.WIZARD; pub const REAL_TIME_DATA_SOURCE_ID_FLAGS = enum(u32) { REGISTRY = 1, WBEM = 4, }; pub const DATA_SOURCE_REGISTRY = REAL_TIME_DATA_SOURCE_ID_FLAGS.REGISTRY; pub const DATA_SOURCE_WBEM = REAL_TIME_DATA_SOURCE_ID_FLAGS.WBEM; pub const PDH_PATH_FLAGS = enum(u32) { RESULT = 1, INPUT = 2, NONE = 0, }; pub const PDH_PATH_WBEM_RESULT = PDH_PATH_FLAGS.RESULT; pub const PDH_PATH_WBEM_INPUT = PDH_PATH_FLAGS.INPUT; pub const PDH_PATH_WBEM_NONE = PDH_PATH_FLAGS.NONE; pub const PDH_FMT = enum(u32) { DOUBLE = 512, LARGE = 1024, LONG = 256, }; pub const PDH_FMT_DOUBLE = PDH_FMT.DOUBLE; pub const PDH_FMT_LARGE = PDH_FMT.LARGE; pub const PDH_FMT_LONG = PDH_FMT.LONG; pub const PDH_LOG_TYPE = enum(u32) { UNDEFINED = 0, CSV = 1, SQL = 7, TSV = 2, BINARY = 8, PERFMON = 6, }; pub const PDH_LOG_TYPE_UNDEFINED = PDH_LOG_TYPE.UNDEFINED; pub const PDH_LOG_TYPE_CSV = PDH_LOG_TYPE.CSV; pub const PDH_LOG_TYPE_SQL = PDH_LOG_TYPE.SQL; pub const PDH_LOG_TYPE_TSV = PDH_LOG_TYPE.TSV; pub const PDH_LOG_TYPE_BINARY = PDH_LOG_TYPE.BINARY; pub const PDH_LOG_TYPE_PERFMON = PDH_LOG_TYPE.PERFMON; pub const PDH_LOG = enum(u32) { READ_ACCESS = 65536, WRITE_ACCESS = 131072, UPDATE_ACCESS = 262144, }; pub const PDH_LOG_READ_ACCESS = PDH_LOG.READ_ACCESS; pub const PDH_LOG_WRITE_ACCESS = PDH_LOG.WRITE_ACCESS; pub const PDH_LOG_UPDATE_ACCESS = PDH_LOG.UPDATE_ACCESS; pub const PDH_SELECT_DATA_SOURCE_FLAGS = enum(u32) { FILE_BROWSER_ONLY = 1, NONE = 0, }; pub const PDH_FLAGS_FILE_BROWSER_ONLY = PDH_SELECT_DATA_SOURCE_FLAGS.FILE_BROWSER_ONLY; pub const PDH_FLAGS_NONE = PDH_SELECT_DATA_SOURCE_FLAGS.NONE; pub const PDH_DLL_VERSION = enum(u32) { CVERSION_WIN50 = 1280, VERSION = 1283, }; pub const PDH_CVERSION_WIN50 = PDH_DLL_VERSION.CVERSION_WIN50; pub const PDH_VERSION = PDH_DLL_VERSION.VERSION; pub const PERF_COUNTER_AGGREGATE_FUNC = enum(u32) { UNDEFINED = 0, TOTAL = 1, AVG = 2, MIN = 3, }; pub const PERF_AGGREGATE_UNDEFINED = PERF_COUNTER_AGGREGATE_FUNC.UNDEFINED; pub const PERF_AGGREGATE_TOTAL = PERF_COUNTER_AGGREGATE_FUNC.TOTAL; pub const PERF_AGGREGATE_AVG = PERF_COUNTER_AGGREGATE_FUNC.AVG; pub const PERF_AGGREGATE_MIN = PERF_COUNTER_AGGREGATE_FUNC.MIN; // TODO: this type has a FreeFunc 'PerfStopProvider', what can Zig do with this information? pub const PerfProviderHandle = isize; // TODO: this type has a FreeFunc 'PerfCloseQueryHandle', what can Zig do with this information? pub const PerfQueryHandle = isize; const CLSID_DataCollectorSet_Value = Guid.initString("03837521-098b-11d8-9414-505054503030"); pub const CLSID_DataCollectorSet = &CLSID_DataCollectorSet_Value; const CLSID_TraceSession_Value = Guid.initString("0383751c-098b-11d8-9414-505054503030"); pub const CLSID_TraceSession = &CLSID_TraceSession_Value; const CLSID_TraceSessionCollection_Value = Guid.initString("03837530-098b-11d8-9414-505054503030"); pub const CLSID_TraceSessionCollection = &CLSID_TraceSessionCollection_Value; const CLSID_TraceDataProvider_Value = Guid.initString("03837513-098b-11d8-9414-505054503030"); pub const CLSID_TraceDataProvider = &CLSID_TraceDataProvider_Value; const CLSID_TraceDataProviderCollection_Value = Guid.initString("03837511-098b-11d8-9414-505054503030"); pub const CLSID_TraceDataProviderCollection = &CLSID_TraceDataProviderCollection_Value; const CLSID_DataCollectorSetCollection_Value = Guid.initString("03837525-098b-11d8-9414-505054503030"); pub const CLSID_DataCollectorSetCollection = &CLSID_DataCollectorSetCollection_Value; const CLSID_LegacyDataCollectorSet_Value = Guid.initString("03837526-098b-11d8-9414-505054503030"); pub const CLSID_LegacyDataCollectorSet = &CLSID_LegacyDataCollectorSet_Value; const CLSID_LegacyDataCollectorSetCollection_Value = Guid.initString("03837527-098b-11d8-9414-505054503030"); pub const CLSID_LegacyDataCollectorSetCollection = &CLSID_LegacyDataCollectorSetCollection_Value; const CLSID_LegacyTraceSession_Value = Guid.initString("03837528-098b-11d8-9414-505054503030"); pub const CLSID_LegacyTraceSession = &CLSID_LegacyTraceSession_Value; const CLSID_LegacyTraceSessionCollection_Value = Guid.initString("03837529-098b-11d8-9414-505054503030"); pub const CLSID_LegacyTraceSessionCollection = &CLSID_LegacyTraceSessionCollection_Value; const CLSID_ServerDataCollectorSet_Value = Guid.initString("03837531-098b-11d8-9414-505054503030"); pub const CLSID_ServerDataCollectorSet = &CLSID_ServerDataCollectorSet_Value; const CLSID_ServerDataCollectorSetCollection_Value = Guid.initString("03837532-098b-11d8-9414-505054503030"); pub const CLSID_ServerDataCollectorSetCollection = &CLSID_ServerDataCollectorSetCollection_Value; const CLSID_SystemDataCollectorSet_Value = Guid.initString("03837546-098b-11d8-9414-505054503030"); pub const CLSID_SystemDataCollectorSet = &CLSID_SystemDataCollectorSet_Value; const CLSID_SystemDataCollectorSetCollection_Value = Guid.initString("03837547-098b-11d8-9414-505054503030"); pub const CLSID_SystemDataCollectorSetCollection = &CLSID_SystemDataCollectorSetCollection_Value; const CLSID_BootTraceSession_Value = Guid.initString("03837538-098b-11d8-9414-505054503030"); pub const CLSID_BootTraceSession = &CLSID_BootTraceSession_Value; const CLSID_BootTraceSessionCollection_Value = Guid.initString("03837539-098b-11d8-9414-505054503030"); pub const CLSID_BootTraceSessionCollection = &CLSID_BootTraceSessionCollection_Value; pub const DataCollectorType = enum(i32) { PerformanceCounter = 0, Trace = 1, Configuration = 2, Alert = 3, ApiTrace = 4, }; pub const plaPerformanceCounter = DataCollectorType.PerformanceCounter; pub const plaTrace = DataCollectorType.Trace; pub const plaConfiguration = DataCollectorType.Configuration; pub const plaAlert = DataCollectorType.Alert; pub const plaApiTrace = DataCollectorType.ApiTrace; pub const FileFormat = enum(i32) { CommaSeparated = 0, TabSeparated = 1, Sql = 2, Binary = 3, }; pub const plaCommaSeparated = FileFormat.CommaSeparated; pub const plaTabSeparated = FileFormat.TabSeparated; pub const plaSql = FileFormat.Sql; pub const plaBinary = FileFormat.Binary; pub const AutoPathFormat = enum(i32) { None = 0, Pattern = 1, Computer = 2, MonthDayHour = 256, SerialNumber = 512, YearDayOfYear = 1024, YearMonth = 2048, YearMonthDay = 4096, YearMonthDayHour = 8192, MonthDayHourMinute = 16384, }; pub const plaNone = AutoPathFormat.None; pub const plaPattern = AutoPathFormat.Pattern; pub const plaComputer = AutoPathFormat.Computer; pub const plaMonthDayHour = AutoPathFormat.MonthDayHour; pub const plaSerialNumber = AutoPathFormat.SerialNumber; pub const plaYearDayOfYear = AutoPathFormat.YearDayOfYear; pub const plaYearMonth = AutoPathFormat.YearMonth; pub const plaYearMonthDay = AutoPathFormat.YearMonthDay; pub const plaYearMonthDayHour = AutoPathFormat.YearMonthDayHour; pub const plaMonthDayHourMinute = AutoPathFormat.MonthDayHourMinute; pub const DataCollectorSetStatus = enum(i32) { Stopped = 0, Running = 1, Compiling = 2, Pending = 3, Undefined = 4, }; pub const plaStopped = DataCollectorSetStatus.Stopped; pub const plaRunning = DataCollectorSetStatus.Running; pub const plaCompiling = DataCollectorSetStatus.Compiling; pub const plaPending = DataCollectorSetStatus.Pending; pub const plaUndefined = DataCollectorSetStatus.Undefined; pub const ClockType = enum(i32) { TimeStamp = 0, Performance = 1, System = 2, Cycle = 3, }; pub const plaTimeStamp = ClockType.TimeStamp; pub const plaPerformance = ClockType.Performance; pub const plaSystem = ClockType.System; pub const plaCycle = ClockType.Cycle; pub const StreamMode = enum(i32) { File = 1, RealTime = 2, Both = 3, Buffering = 4, }; pub const plaFile = StreamMode.File; pub const plaRealTime = StreamMode.RealTime; pub const plaBoth = StreamMode.Both; pub const plaBuffering = StreamMode.Buffering; pub const CommitMode = enum(i32) { CreateNew = 1, Modify = 2, CreateOrModify = 3, UpdateRunningInstance = 16, FlushTrace = 32, ValidateOnly = 4096, }; pub const plaCreateNew = CommitMode.CreateNew; pub const plaModify = CommitMode.Modify; pub const plaCreateOrModify = CommitMode.CreateOrModify; pub const plaUpdateRunningInstance = CommitMode.UpdateRunningInstance; pub const plaFlushTrace = CommitMode.FlushTrace; pub const plaValidateOnly = CommitMode.ValidateOnly; pub const ValueMapType = enum(i32) { Index = 1, Flag = 2, FlagArray = 3, Validation = 4, }; pub const plaIndex = ValueMapType.Index; pub const plaFlag = ValueMapType.Flag; pub const plaFlagArray = ValueMapType.FlagArray; pub const plaValidation = ValueMapType.Validation; pub const WeekDays = enum(i32) { RunOnce = 0, Sunday = 1, Monday = 2, Tuesday = 4, Wednesday = 8, Thursday = 16, Friday = 32, Saturday = 64, Everyday = 127, }; pub const plaRunOnce = WeekDays.RunOnce; pub const plaSunday = WeekDays.Sunday; pub const plaMonday = WeekDays.Monday; pub const plaTuesday = WeekDays.Tuesday; pub const plaWednesday = WeekDays.Wednesday; pub const plaThursday = WeekDays.Thursday; pub const plaFriday = WeekDays.Friday; pub const plaSaturday = WeekDays.Saturday; pub const plaEveryday = WeekDays.Everyday; pub const ResourcePolicy = enum(i32) { Largest = 0, Oldest = 1, }; pub const plaDeleteLargest = ResourcePolicy.Largest; pub const plaDeleteOldest = ResourcePolicy.Oldest; pub const DataManagerSteps = enum(i32) { CreateReport = 1, RunRules = 2, CreateHtml = 4, FolderActions = 8, ResourceFreeing = 16, }; pub const plaCreateReport = DataManagerSteps.CreateReport; pub const plaRunRules = DataManagerSteps.RunRules; pub const plaCreateHtml = DataManagerSteps.CreateHtml; pub const plaFolderActions = DataManagerSteps.FolderActions; pub const plaResourceFreeing = DataManagerSteps.ResourceFreeing; pub const FolderActionSteps = enum(i32) { CreateCab = 1, DeleteData = 2, SendCab = 4, DeleteCab = 8, DeleteReport = 16, }; pub const plaCreateCab = FolderActionSteps.CreateCab; pub const plaDeleteData = FolderActionSteps.DeleteData; pub const plaSendCab = FolderActionSteps.SendCab; pub const plaDeleteCab = FolderActionSteps.DeleteCab; pub const plaDeleteReport = FolderActionSteps.DeleteReport; pub const PLA_CABEXTRACT_CALLBACK = switch (@import("builtin").zig_backend) { .stage1 => fn ( FileName: ?[*:0]const u16, Context: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) void, else => *const fn ( FileName: ?[*:0]const u16, Context: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) void, }; // TODO: this type is limited to platform 'windows6.0.6000' const IID_IDataCollectorSet_Value = Guid.initString("03837520-098b-11d8-9414-505054503030"); pub const IID_IDataCollectorSet = &IID_IDataCollectorSet_Value; pub const IDataCollectorSet = extern struct { pub const VTable = extern struct { base: IDispatch.VTable, // TODO: this function has a "SpecialName", should Zig do anything with this? get_DataCollectors: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IDataCollectorSet, collectors: ?*?*IDataCollectorCollection, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IDataCollectorSet, collectors: ?*?*IDataCollectorCollection, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Duration: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IDataCollectorSet, seconds: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IDataCollectorSet, seconds: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_Duration: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IDataCollectorSet, seconds: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IDataCollectorSet, seconds: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Description: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IDataCollectorSet, description: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IDataCollectorSet, description: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_Description: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IDataCollectorSet, description: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IDataCollectorSet, description: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_DescriptionUnresolved: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IDataCollectorSet, Descr: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IDataCollectorSet, Descr: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_DisplayName: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IDataCollectorSet, DisplayName: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IDataCollectorSet, DisplayName: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_DisplayName: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IDataCollectorSet, DisplayName: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IDataCollectorSet, DisplayName: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_DisplayNameUnresolved: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IDataCollectorSet, name: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IDataCollectorSet, name: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Keywords: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IDataCollectorSet, keywords: ?*?*SAFEARRAY, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IDataCollectorSet, keywords: ?*?*SAFEARRAY, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_Keywords: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IDataCollectorSet, keywords: ?*SAFEARRAY, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IDataCollectorSet, keywords: ?*SAFEARRAY, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_LatestOutputLocation: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IDataCollectorSet, path: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IDataCollectorSet, path: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_LatestOutputLocation: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IDataCollectorSet, path: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IDataCollectorSet, path: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Name: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IDataCollectorSet, name: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IDataCollectorSet, name: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_OutputLocation: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IDataCollectorSet, path: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IDataCollectorSet, path: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_RootPath: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IDataCollectorSet, folder: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IDataCollectorSet, folder: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_RootPath: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IDataCollectorSet, folder: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IDataCollectorSet, folder: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Segment: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IDataCollectorSet, segment: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IDataCollectorSet, segment: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_Segment: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IDataCollectorSet, segment: i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IDataCollectorSet, segment: i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_SegmentMaxDuration: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IDataCollectorSet, seconds: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IDataCollectorSet, seconds: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_SegmentMaxDuration: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IDataCollectorSet, seconds: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IDataCollectorSet, seconds: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_SegmentMaxSize: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IDataCollectorSet, size: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IDataCollectorSet, size: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_SegmentMaxSize: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IDataCollectorSet, size: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IDataCollectorSet, size: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_SerialNumber: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IDataCollectorSet, index: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IDataCollectorSet, index: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_SerialNumber: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IDataCollectorSet, index: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IDataCollectorSet, index: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Server: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IDataCollectorSet, server: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IDataCollectorSet, server: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Status: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IDataCollectorSet, status: ?*DataCollectorSetStatus, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IDataCollectorSet, status: ?*DataCollectorSetStatus, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Subdirectory: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IDataCollectorSet, folder: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IDataCollectorSet, folder: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_Subdirectory: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IDataCollectorSet, folder: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IDataCollectorSet, folder: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_SubdirectoryFormat: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IDataCollectorSet, format: ?*AutoPathFormat, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IDataCollectorSet, format: ?*AutoPathFormat, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_SubdirectoryFormat: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IDataCollectorSet, format: AutoPathFormat, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IDataCollectorSet, format: AutoPathFormat, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_SubdirectoryFormatPattern: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IDataCollectorSet, pattern: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IDataCollectorSet, pattern: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_SubdirectoryFormatPattern: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IDataCollectorSet, pattern: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IDataCollectorSet, pattern: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Task: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IDataCollectorSet, task: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IDataCollectorSet, task: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_Task: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IDataCollectorSet, task: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IDataCollectorSet, task: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_TaskRunAsSelf: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IDataCollectorSet, RunAsSelf: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IDataCollectorSet, RunAsSelf: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_TaskRunAsSelf: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IDataCollectorSet, RunAsSelf: i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IDataCollectorSet, RunAsSelf: i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_TaskArguments: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IDataCollectorSet, task: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IDataCollectorSet, task: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_TaskArguments: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IDataCollectorSet, task: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IDataCollectorSet, task: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_TaskUserTextArguments: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IDataCollectorSet, UserText: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IDataCollectorSet, UserText: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_TaskUserTextArguments: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IDataCollectorSet, UserText: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IDataCollectorSet, UserText: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Schedules: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IDataCollectorSet, ppSchedules: ?*?*IScheduleCollection, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IDataCollectorSet, ppSchedules: ?*?*IScheduleCollection, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_SchedulesEnabled: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IDataCollectorSet, enabled: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IDataCollectorSet, enabled: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_SchedulesEnabled: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IDataCollectorSet, enabled: i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IDataCollectorSet, enabled: i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_UserAccount: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IDataCollectorSet, user: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IDataCollectorSet, user: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Xml: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IDataCollectorSet, xml: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IDataCollectorSet, xml: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Security: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IDataCollectorSet, pbstrSecurity: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IDataCollectorSet, pbstrSecurity: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_Security: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IDataCollectorSet, bstrSecurity: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IDataCollectorSet, bstrSecurity: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_StopOnCompletion: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IDataCollectorSet, Stop: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IDataCollectorSet, Stop: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_StopOnCompletion: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IDataCollectorSet, Stop: i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IDataCollectorSet, Stop: i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_DataManager: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IDataCollectorSet, DataManager: ?*?*IDataManager, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IDataCollectorSet, DataManager: ?*?*IDataManager, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetCredentials: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDataCollectorSet, user: ?BSTR, password: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDataCollectorSet, user: ?BSTR, password: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Query: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDataCollectorSet, name: ?BSTR, server: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDataCollectorSet, name: ?BSTR, server: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Commit: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDataCollectorSet, name: ?BSTR, server: ?BSTR, mode: CommitMode, validation: ?*?*IValueMap, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDataCollectorSet, name: ?BSTR, server: ?BSTR, mode: CommitMode, validation: ?*?*IValueMap, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Delete: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDataCollectorSet, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDataCollectorSet, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Start: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDataCollectorSet, Synchronous: i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDataCollectorSet, Synchronous: i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Stop: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDataCollectorSet, Synchronous: i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDataCollectorSet, Synchronous: i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetXml: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDataCollectorSet, xml: ?BSTR, validation: ?*?*IValueMap, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDataCollectorSet, xml: ?BSTR, validation: ?*?*IValueMap, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetValue: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDataCollectorSet, key: ?BSTR, value: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDataCollectorSet, key: ?BSTR, value: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetValue: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDataCollectorSet, key: ?BSTR, value: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDataCollectorSet, key: ?BSTR, value: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IDispatch.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDataCollectorSet_get_DataCollectors(self: *const T, collectors: ?*?*IDataCollectorCollection) HRESULT { return @as(*const IDataCollectorSet.VTable, @ptrCast(self.vtable)).get_DataCollectors(@as(*const IDataCollectorSet, @ptrCast(self)), collectors); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDataCollectorSet_get_Duration(self: *const T, seconds: ?*u32) HRESULT { return @as(*const IDataCollectorSet.VTable, @ptrCast(self.vtable)).get_Duration(@as(*const IDataCollectorSet, @ptrCast(self)), seconds); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDataCollectorSet_put_Duration(self: *const T, seconds: u32) HRESULT { return @as(*const IDataCollectorSet.VTable, @ptrCast(self.vtable)).put_Duration(@as(*const IDataCollectorSet, @ptrCast(self)), seconds); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDataCollectorSet_get_Description(self: *const T, description: ?*?BSTR) HRESULT { return @as(*const IDataCollectorSet.VTable, @ptrCast(self.vtable)).get_Description(@as(*const IDataCollectorSet, @ptrCast(self)), description); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDataCollectorSet_put_Description(self: *const T, description: ?BSTR) HRESULT { return @as(*const IDataCollectorSet.VTable, @ptrCast(self.vtable)).put_Description(@as(*const IDataCollectorSet, @ptrCast(self)), description); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDataCollectorSet_get_DescriptionUnresolved(self: *const T, Descr: ?*?BSTR) HRESULT { return @as(*const IDataCollectorSet.VTable, @ptrCast(self.vtable)).get_DescriptionUnresolved(@as(*const IDataCollectorSet, @ptrCast(self)), Descr); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDataCollectorSet_get_DisplayName(self: *const T, DisplayName: ?*?BSTR) HRESULT { return @as(*const IDataCollectorSet.VTable, @ptrCast(self.vtable)).get_DisplayName(@as(*const IDataCollectorSet, @ptrCast(self)), DisplayName); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDataCollectorSet_put_DisplayName(self: *const T, DisplayName: ?BSTR) HRESULT { return @as(*const IDataCollectorSet.VTable, @ptrCast(self.vtable)).put_DisplayName(@as(*const IDataCollectorSet, @ptrCast(self)), DisplayName); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDataCollectorSet_get_DisplayNameUnresolved(self: *const T, name: ?*?BSTR) HRESULT { return @as(*const IDataCollectorSet.VTable, @ptrCast(self.vtable)).get_DisplayNameUnresolved(@as(*const IDataCollectorSet, @ptrCast(self)), name); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDataCollectorSet_get_Keywords(self: *const T, keywords: ?*?*SAFEARRAY) HRESULT { return @as(*const IDataCollectorSet.VTable, @ptrCast(self.vtable)).get_Keywords(@as(*const IDataCollectorSet, @ptrCast(self)), keywords); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDataCollectorSet_put_Keywords(self: *const T, keywords: ?*SAFEARRAY) HRESULT { return @as(*const IDataCollectorSet.VTable, @ptrCast(self.vtable)).put_Keywords(@as(*const IDataCollectorSet, @ptrCast(self)), keywords); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDataCollectorSet_get_LatestOutputLocation(self: *const T, path: ?*?BSTR) HRESULT { return @as(*const IDataCollectorSet.VTable, @ptrCast(self.vtable)).get_LatestOutputLocation(@as(*const IDataCollectorSet, @ptrCast(self)), path); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDataCollectorSet_put_LatestOutputLocation(self: *const T, path: ?BSTR) HRESULT { return @as(*const IDataCollectorSet.VTable, @ptrCast(self.vtable)).put_LatestOutputLocation(@as(*const IDataCollectorSet, @ptrCast(self)), path); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDataCollectorSet_get_Name(self: *const T, name: ?*?BSTR) HRESULT { return @as(*const IDataCollectorSet.VTable, @ptrCast(self.vtable)).get_Name(@as(*const IDataCollectorSet, @ptrCast(self)), name); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDataCollectorSet_get_OutputLocation(self: *const T, path: ?*?BSTR) HRESULT { return @as(*const IDataCollectorSet.VTable, @ptrCast(self.vtable)).get_OutputLocation(@as(*const IDataCollectorSet, @ptrCast(self)), path); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDataCollectorSet_get_RootPath(self: *const T, folder: ?*?BSTR) HRESULT { return @as(*const IDataCollectorSet.VTable, @ptrCast(self.vtable)).get_RootPath(@as(*const IDataCollectorSet, @ptrCast(self)), folder); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDataCollectorSet_put_RootPath(self: *const T, folder: ?BSTR) HRESULT { return @as(*const IDataCollectorSet.VTable, @ptrCast(self.vtable)).put_RootPath(@as(*const IDataCollectorSet, @ptrCast(self)), folder); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDataCollectorSet_get_Segment(self: *const T, segment: ?*i16) HRESULT { return @as(*const IDataCollectorSet.VTable, @ptrCast(self.vtable)).get_Segment(@as(*const IDataCollectorSet, @ptrCast(self)), segment); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDataCollectorSet_put_Segment(self: *const T, segment: i16) HRESULT { return @as(*const IDataCollectorSet.VTable, @ptrCast(self.vtable)).put_Segment(@as(*const IDataCollectorSet, @ptrCast(self)), segment); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDataCollectorSet_get_SegmentMaxDuration(self: *const T, seconds: ?*u32) HRESULT { return @as(*const IDataCollectorSet.VTable, @ptrCast(self.vtable)).get_SegmentMaxDuration(@as(*const IDataCollectorSet, @ptrCast(self)), seconds); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDataCollectorSet_put_SegmentMaxDuration(self: *const T, seconds: u32) HRESULT { return @as(*const IDataCollectorSet.VTable, @ptrCast(self.vtable)).put_SegmentMaxDuration(@as(*const IDataCollectorSet, @ptrCast(self)), seconds); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDataCollectorSet_get_SegmentMaxSize(self: *const T, size: ?*u32) HRESULT { return @as(*const IDataCollectorSet.VTable, @ptrCast(self.vtable)).get_SegmentMaxSize(@as(*const IDataCollectorSet, @ptrCast(self)), size); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDataCollectorSet_put_SegmentMaxSize(self: *const T, size: u32) HRESULT { return @as(*const IDataCollectorSet.VTable, @ptrCast(self.vtable)).put_SegmentMaxSize(@as(*const IDataCollectorSet, @ptrCast(self)), size); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDataCollectorSet_get_SerialNumber(self: *const T, index: ?*u32) HRESULT { return @as(*const IDataCollectorSet.VTable, @ptrCast(self.vtable)).get_SerialNumber(@as(*const IDataCollectorSet, @ptrCast(self)), index); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDataCollectorSet_put_SerialNumber(self: *const T, index: u32) HRESULT { return @as(*const IDataCollectorSet.VTable, @ptrCast(self.vtable)).put_SerialNumber(@as(*const IDataCollectorSet, @ptrCast(self)), index); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDataCollectorSet_get_Server(self: *const T, server: ?*?BSTR) HRESULT { return @as(*const IDataCollectorSet.VTable, @ptrCast(self.vtable)).get_Server(@as(*const IDataCollectorSet, @ptrCast(self)), server); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDataCollectorSet_get_Status(self: *const T, status: ?*DataCollectorSetStatus) HRESULT { return @as(*const IDataCollectorSet.VTable, @ptrCast(self.vtable)).get_Status(@as(*const IDataCollectorSet, @ptrCast(self)), status); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDataCollectorSet_get_Subdirectory(self: *const T, folder: ?*?BSTR) HRESULT { return @as(*const IDataCollectorSet.VTable, @ptrCast(self.vtable)).get_Subdirectory(@as(*const IDataCollectorSet, @ptrCast(self)), folder); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDataCollectorSet_put_Subdirectory(self: *const T, folder: ?BSTR) HRESULT { return @as(*const IDataCollectorSet.VTable, @ptrCast(self.vtable)).put_Subdirectory(@as(*const IDataCollectorSet, @ptrCast(self)), folder); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDataCollectorSet_get_SubdirectoryFormat(self: *const T, format: ?*AutoPathFormat) HRESULT { return @as(*const IDataCollectorSet.VTable, @ptrCast(self.vtable)).get_SubdirectoryFormat(@as(*const IDataCollectorSet, @ptrCast(self)), format); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDataCollectorSet_put_SubdirectoryFormat(self: *const T, format: AutoPathFormat) HRESULT { return @as(*const IDataCollectorSet.VTable, @ptrCast(self.vtable)).put_SubdirectoryFormat(@as(*const IDataCollectorSet, @ptrCast(self)), format); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDataCollectorSet_get_SubdirectoryFormatPattern(self: *const T, pattern: ?*?BSTR) HRESULT { return @as(*const IDataCollectorSet.VTable, @ptrCast(self.vtable)).get_SubdirectoryFormatPattern(@as(*const IDataCollectorSet, @ptrCast(self)), pattern); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDataCollectorSet_put_SubdirectoryFormatPattern(self: *const T, pattern: ?BSTR) HRESULT { return @as(*const IDataCollectorSet.VTable, @ptrCast(self.vtable)).put_SubdirectoryFormatPattern(@as(*const IDataCollectorSet, @ptrCast(self)), pattern); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDataCollectorSet_get_Task(self: *const T, task: ?*?BSTR) HRESULT { return @as(*const IDataCollectorSet.VTable, @ptrCast(self.vtable)).get_Task(@as(*const IDataCollectorSet, @ptrCast(self)), task); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDataCollectorSet_put_Task(self: *const T, task: ?BSTR) HRESULT { return @as(*const IDataCollectorSet.VTable, @ptrCast(self.vtable)).put_Task(@as(*const IDataCollectorSet, @ptrCast(self)), task); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDataCollectorSet_get_TaskRunAsSelf(self: *const T, RunAsSelf: ?*i16) HRESULT { return @as(*const IDataCollectorSet.VTable, @ptrCast(self.vtable)).get_TaskRunAsSelf(@as(*const IDataCollectorSet, @ptrCast(self)), RunAsSelf); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDataCollectorSet_put_TaskRunAsSelf(self: *const T, RunAsSelf: i16) HRESULT { return @as(*const IDataCollectorSet.VTable, @ptrCast(self.vtable)).put_TaskRunAsSelf(@as(*const IDataCollectorSet, @ptrCast(self)), RunAsSelf); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDataCollectorSet_get_TaskArguments(self: *const T, task: ?*?BSTR) HRESULT { return @as(*const IDataCollectorSet.VTable, @ptrCast(self.vtable)).get_TaskArguments(@as(*const IDataCollectorSet, @ptrCast(self)), task); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDataCollectorSet_put_TaskArguments(self: *const T, task: ?BSTR) HRESULT { return @as(*const IDataCollectorSet.VTable, @ptrCast(self.vtable)).put_TaskArguments(@as(*const IDataCollectorSet, @ptrCast(self)), task); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDataCollectorSet_get_TaskUserTextArguments(self: *const T, UserText: ?*?BSTR) HRESULT { return @as(*const IDataCollectorSet.VTable, @ptrCast(self.vtable)).get_TaskUserTextArguments(@as(*const IDataCollectorSet, @ptrCast(self)), UserText); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDataCollectorSet_put_TaskUserTextArguments(self: *const T, UserText: ?BSTR) HRESULT { return @as(*const IDataCollectorSet.VTable, @ptrCast(self.vtable)).put_TaskUserTextArguments(@as(*const IDataCollectorSet, @ptrCast(self)), UserText); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDataCollectorSet_get_Schedules(self: *const T, ppSchedules: ?*?*IScheduleCollection) HRESULT { return @as(*const IDataCollectorSet.VTable, @ptrCast(self.vtable)).get_Schedules(@as(*const IDataCollectorSet, @ptrCast(self)), ppSchedules); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDataCollectorSet_get_SchedulesEnabled(self: *const T, enabled: ?*i16) HRESULT { return @as(*const IDataCollectorSet.VTable, @ptrCast(self.vtable)).get_SchedulesEnabled(@as(*const IDataCollectorSet, @ptrCast(self)), enabled); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDataCollectorSet_put_SchedulesEnabled(self: *const T, enabled: i16) HRESULT { return @as(*const IDataCollectorSet.VTable, @ptrCast(self.vtable)).put_SchedulesEnabled(@as(*const IDataCollectorSet, @ptrCast(self)), enabled); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDataCollectorSet_get_UserAccount(self: *const T, user: ?*?BSTR) HRESULT { return @as(*const IDataCollectorSet.VTable, @ptrCast(self.vtable)).get_UserAccount(@as(*const IDataCollectorSet, @ptrCast(self)), user); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDataCollectorSet_get_Xml(self: *const T, xml: ?*?BSTR) HRESULT { return @as(*const IDataCollectorSet.VTable, @ptrCast(self.vtable)).get_Xml(@as(*const IDataCollectorSet, @ptrCast(self)), xml); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDataCollectorSet_get_Security(self: *const T, pbstrSecurity: ?*?BSTR) HRESULT { return @as(*const IDataCollectorSet.VTable, @ptrCast(self.vtable)).get_Security(@as(*const IDataCollectorSet, @ptrCast(self)), pbstrSecurity); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDataCollectorSet_put_Security(self: *const T, bstrSecurity: ?BSTR) HRESULT { return @as(*const IDataCollectorSet.VTable, @ptrCast(self.vtable)).put_Security(@as(*const IDataCollectorSet, @ptrCast(self)), bstrSecurity); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDataCollectorSet_get_StopOnCompletion(self: *const T, Stop: ?*i16) HRESULT { return @as(*const IDataCollectorSet.VTable, @ptrCast(self.vtable)).get_StopOnCompletion(@as(*const IDataCollectorSet, @ptrCast(self)), Stop); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDataCollectorSet_put_StopOnCompletion(self: *const T, Stop: i16) HRESULT { return @as(*const IDataCollectorSet.VTable, @ptrCast(self.vtable)).put_StopOnCompletion(@as(*const IDataCollectorSet, @ptrCast(self)), Stop); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDataCollectorSet_get_DataManager(self: *const T, DataManager: ?*?*IDataManager) HRESULT { return @as(*const IDataCollectorSet.VTable, @ptrCast(self.vtable)).get_DataManager(@as(*const IDataCollectorSet, @ptrCast(self)), DataManager); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDataCollectorSet_SetCredentials(self: *const T, user: ?BSTR, password: ?BSTR) HRESULT { return @as(*const IDataCollectorSet.VTable, @ptrCast(self.vtable)).SetCredentials(@as(*const IDataCollectorSet, @ptrCast(self)), user, password); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDataCollectorSet_Query(self: *const T, name: ?BSTR, server: ?BSTR) HRESULT { return @as(*const IDataCollectorSet.VTable, @ptrCast(self.vtable)).Query(@as(*const IDataCollectorSet, @ptrCast(self)), name, server); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDataCollectorSet_Commit(self: *const T, name: ?BSTR, server: ?BSTR, mode: CommitMode, validation: ?*?*IValueMap) HRESULT { return @as(*const IDataCollectorSet.VTable, @ptrCast(self.vtable)).Commit(@as(*const IDataCollectorSet, @ptrCast(self)), name, server, mode, validation); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDataCollectorSet_Delete(self: *const T) HRESULT { return @as(*const IDataCollectorSet.VTable, @ptrCast(self.vtable)).Delete(@as(*const IDataCollectorSet, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDataCollectorSet_Start(self: *const T, Synchronous: i16) HRESULT { return @as(*const IDataCollectorSet.VTable, @ptrCast(self.vtable)).Start(@as(*const IDataCollectorSet, @ptrCast(self)), Synchronous); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDataCollectorSet_Stop(self: *const T, Synchronous: i16) HRESULT { return @as(*const IDataCollectorSet.VTable, @ptrCast(self.vtable)).Stop(@as(*const IDataCollectorSet, @ptrCast(self)), Synchronous); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDataCollectorSet_SetXml(self: *const T, xml: ?BSTR, validation: ?*?*IValueMap) HRESULT { return @as(*const IDataCollectorSet.VTable, @ptrCast(self.vtable)).SetXml(@as(*const IDataCollectorSet, @ptrCast(self)), xml, validation); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDataCollectorSet_SetValue(self: *const T, key: ?BSTR, value: ?BSTR) HRESULT { return @as(*const IDataCollectorSet.VTable, @ptrCast(self.vtable)).SetValue(@as(*const IDataCollectorSet, @ptrCast(self)), key, value); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDataCollectorSet_GetValue(self: *const T, key: ?BSTR, value: ?*?BSTR) HRESULT { return @as(*const IDataCollectorSet.VTable, @ptrCast(self.vtable)).GetValue(@as(*const IDataCollectorSet, @ptrCast(self)), key, value); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows6.0.6000' const IID_IDataManager_Value = Guid.initString("03837541-098b-11d8-9414-505054503030"); pub const IID_IDataManager = &IID_IDataManager_Value; pub const IDataManager = extern struct { pub const VTable = extern struct { base: IDispatch.VTable, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Enabled: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IDataManager, pfEnabled: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IDataManager, pfEnabled: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_Enabled: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IDataManager, fEnabled: i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IDataManager, fEnabled: i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_CheckBeforeRunning: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IDataManager, pfCheck: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IDataManager, pfCheck: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_CheckBeforeRunning: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IDataManager, fCheck: i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IDataManager, fCheck: i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_MinFreeDisk: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IDataManager, MinFreeDisk: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IDataManager, MinFreeDisk: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_MinFreeDisk: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IDataManager, MinFreeDisk: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IDataManager, MinFreeDisk: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_MaxSize: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IDataManager, pulMaxSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IDataManager, pulMaxSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_MaxSize: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IDataManager, ulMaxSize: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IDataManager, ulMaxSize: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_MaxFolderCount: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IDataManager, pulMaxFolderCount: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IDataManager, pulMaxFolderCount: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_MaxFolderCount: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IDataManager, ulMaxFolderCount: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IDataManager, ulMaxFolderCount: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_ResourcePolicy: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IDataManager, pPolicy: ?*ResourcePolicy, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IDataManager, pPolicy: ?*ResourcePolicy, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_ResourcePolicy: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IDataManager, Policy: ResourcePolicy, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IDataManager, Policy: ResourcePolicy, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_FolderActions: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IDataManager, Actions: ?*?*IFolderActionCollection, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IDataManager, Actions: ?*?*IFolderActionCollection, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_ReportSchema: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IDataManager, ReportSchema: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IDataManager, ReportSchema: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_ReportSchema: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IDataManager, ReportSchema: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IDataManager, ReportSchema: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_ReportFileName: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IDataManager, pbstrFilename: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IDataManager, pbstrFilename: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_ReportFileName: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IDataManager, pbstrFilename: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IDataManager, pbstrFilename: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_RuleTargetFileName: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IDataManager, Filename: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IDataManager, Filename: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_RuleTargetFileName: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IDataManager, Filename: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IDataManager, Filename: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_EventsFileName: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IDataManager, pbstrFilename: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IDataManager, pbstrFilename: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_EventsFileName: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IDataManager, pbstrFilename: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IDataManager, pbstrFilename: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Rules: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IDataManager, pbstrXml: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IDataManager, pbstrXml: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_Rules: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IDataManager, bstrXml: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IDataManager, bstrXml: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Run: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDataManager, Steps: DataManagerSteps, bstrFolder: ?BSTR, Errors: ?*?*IValueMap, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDataManager, Steps: DataManagerSteps, bstrFolder: ?BSTR, Errors: ?*?*IValueMap, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Extract: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDataManager, CabFilename: ?BSTR, DestinationPath: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDataManager, CabFilename: ?BSTR, DestinationPath: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IDispatch.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDataManager_get_Enabled(self: *const T, pfEnabled: ?*i16) HRESULT { return @as(*const IDataManager.VTable, @ptrCast(self.vtable)).get_Enabled(@as(*const IDataManager, @ptrCast(self)), pfEnabled); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDataManager_put_Enabled(self: *const T, fEnabled: i16) HRESULT { return @as(*const IDataManager.VTable, @ptrCast(self.vtable)).put_Enabled(@as(*const IDataManager, @ptrCast(self)), fEnabled); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDataManager_get_CheckBeforeRunning(self: *const T, pfCheck: ?*i16) HRESULT { return @as(*const IDataManager.VTable, @ptrCast(self.vtable)).get_CheckBeforeRunning(@as(*const IDataManager, @ptrCast(self)), pfCheck); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDataManager_put_CheckBeforeRunning(self: *const T, fCheck: i16) HRESULT { return @as(*const IDataManager.VTable, @ptrCast(self.vtable)).put_CheckBeforeRunning(@as(*const IDataManager, @ptrCast(self)), fCheck); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDataManager_get_MinFreeDisk(self: *const T, MinFreeDisk: ?*u32) HRESULT { return @as(*const IDataManager.VTable, @ptrCast(self.vtable)).get_MinFreeDisk(@as(*const IDataManager, @ptrCast(self)), MinFreeDisk); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDataManager_put_MinFreeDisk(self: *const T, MinFreeDisk: u32) HRESULT { return @as(*const IDataManager.VTable, @ptrCast(self.vtable)).put_MinFreeDisk(@as(*const IDataManager, @ptrCast(self)), MinFreeDisk); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDataManager_get_MaxSize(self: *const T, pulMaxSize: ?*u32) HRESULT { return @as(*const IDataManager.VTable, @ptrCast(self.vtable)).get_MaxSize(@as(*const IDataManager, @ptrCast(self)), pulMaxSize); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDataManager_put_MaxSize(self: *const T, ulMaxSize: u32) HRESULT { return @as(*const IDataManager.VTable, @ptrCast(self.vtable)).put_MaxSize(@as(*const IDataManager, @ptrCast(self)), ulMaxSize); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDataManager_get_MaxFolderCount(self: *const T, pulMaxFolderCount: ?*u32) HRESULT { return @as(*const IDataManager.VTable, @ptrCast(self.vtable)).get_MaxFolderCount(@as(*const IDataManager, @ptrCast(self)), pulMaxFolderCount); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDataManager_put_MaxFolderCount(self: *const T, ulMaxFolderCount: u32) HRESULT { return @as(*const IDataManager.VTable, @ptrCast(self.vtable)).put_MaxFolderCount(@as(*const IDataManager, @ptrCast(self)), ulMaxFolderCount); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDataManager_get_ResourcePolicy(self: *const T, pPolicy: ?*ResourcePolicy) HRESULT { return @as(*const IDataManager.VTable, @ptrCast(self.vtable)).get_ResourcePolicy(@as(*const IDataManager, @ptrCast(self)), pPolicy); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDataManager_put_ResourcePolicy(self: *const T, Policy: ResourcePolicy) HRESULT { return @as(*const IDataManager.VTable, @ptrCast(self.vtable)).put_ResourcePolicy(@as(*const IDataManager, @ptrCast(self)), Policy); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDataManager_get_FolderActions(self: *const T, Actions: ?*?*IFolderActionCollection) HRESULT { return @as(*const IDataManager.VTable, @ptrCast(self.vtable)).get_FolderActions(@as(*const IDataManager, @ptrCast(self)), Actions); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDataManager_get_ReportSchema(self: *const T, ReportSchema: ?*?BSTR) HRESULT { return @as(*const IDataManager.VTable, @ptrCast(self.vtable)).get_ReportSchema(@as(*const IDataManager, @ptrCast(self)), ReportSchema); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDataManager_put_ReportSchema(self: *const T, ReportSchema: ?BSTR) HRESULT { return @as(*const IDataManager.VTable, @ptrCast(self.vtable)).put_ReportSchema(@as(*const IDataManager, @ptrCast(self)), ReportSchema); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDataManager_get_ReportFileName(self: *const T, pbstrFilename: ?*?BSTR) HRESULT { return @as(*const IDataManager.VTable, @ptrCast(self.vtable)).get_ReportFileName(@as(*const IDataManager, @ptrCast(self)), pbstrFilename); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDataManager_put_ReportFileName(self: *const T, pbstrFilename: ?BSTR) HRESULT { return @as(*const IDataManager.VTable, @ptrCast(self.vtable)).put_ReportFileName(@as(*const IDataManager, @ptrCast(self)), pbstrFilename); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDataManager_get_RuleTargetFileName(self: *const T, Filename: ?*?BSTR) HRESULT { return @as(*const IDataManager.VTable, @ptrCast(self.vtable)).get_RuleTargetFileName(@as(*const IDataManager, @ptrCast(self)), Filename); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDataManager_put_RuleTargetFileName(self: *const T, Filename: ?BSTR) HRESULT { return @as(*const IDataManager.VTable, @ptrCast(self.vtable)).put_RuleTargetFileName(@as(*const IDataManager, @ptrCast(self)), Filename); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDataManager_get_EventsFileName(self: *const T, pbstrFilename: ?*?BSTR) HRESULT { return @as(*const IDataManager.VTable, @ptrCast(self.vtable)).get_EventsFileName(@as(*const IDataManager, @ptrCast(self)), pbstrFilename); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDataManager_put_EventsFileName(self: *const T, pbstrFilename: ?BSTR) HRESULT { return @as(*const IDataManager.VTable, @ptrCast(self.vtable)).put_EventsFileName(@as(*const IDataManager, @ptrCast(self)), pbstrFilename); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDataManager_get_Rules(self: *const T, pbstrXml: ?*?BSTR) HRESULT { return @as(*const IDataManager.VTable, @ptrCast(self.vtable)).get_Rules(@as(*const IDataManager, @ptrCast(self)), pbstrXml); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDataManager_put_Rules(self: *const T, bstrXml: ?BSTR) HRESULT { return @as(*const IDataManager.VTable, @ptrCast(self.vtable)).put_Rules(@as(*const IDataManager, @ptrCast(self)), bstrXml); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDataManager_Run(self: *const T, Steps: DataManagerSteps, bstrFolder: ?BSTR, Errors: ?*?*IValueMap) HRESULT { return @as(*const IDataManager.VTable, @ptrCast(self.vtable)).Run(@as(*const IDataManager, @ptrCast(self)), Steps, bstrFolder, Errors); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDataManager_Extract(self: *const T, CabFilename: ?BSTR, DestinationPath: ?BSTR) HRESULT { return @as(*const IDataManager.VTable, @ptrCast(self.vtable)).Extract(@as(*const IDataManager, @ptrCast(self)), CabFilename, DestinationPath); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows6.0.6000' const IID_IFolderAction_Value = Guid.initString("03837543-098b-11d8-9414-505054503030"); pub const IID_IFolderAction = &IID_IFolderAction_Value; pub const IFolderAction = extern struct { pub const VTable = extern struct { base: IDispatch.VTable, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Age: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IFolderAction, pulAge: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IFolderAction, pulAge: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_Age: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IFolderAction, ulAge: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IFolderAction, ulAge: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Size: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IFolderAction, pulAge: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IFolderAction, pulAge: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_Size: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IFolderAction, ulAge: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IFolderAction, ulAge: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Actions: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IFolderAction, Steps: ?*FolderActionSteps, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IFolderAction, Steps: ?*FolderActionSteps, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_Actions: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IFolderAction, Steps: FolderActionSteps, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IFolderAction, Steps: FolderActionSteps, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_SendCabTo: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IFolderAction, pbstrDestination: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IFolderAction, pbstrDestination: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_SendCabTo: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IFolderAction, bstrDestination: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IFolderAction, bstrDestination: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IDispatch.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IFolderAction_get_Age(self: *const T, pulAge: ?*u32) HRESULT { return @as(*const IFolderAction.VTable, @ptrCast(self.vtable)).get_Age(@as(*const IFolderAction, @ptrCast(self)), pulAge); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IFolderAction_put_Age(self: *const T, ulAge: u32) HRESULT { return @as(*const IFolderAction.VTable, @ptrCast(self.vtable)).put_Age(@as(*const IFolderAction, @ptrCast(self)), ulAge); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IFolderAction_get_Size(self: *const T, pulAge: ?*u32) HRESULT { return @as(*const IFolderAction.VTable, @ptrCast(self.vtable)).get_Size(@as(*const IFolderAction, @ptrCast(self)), pulAge); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IFolderAction_put_Size(self: *const T, ulAge: u32) HRESULT { return @as(*const IFolderAction.VTable, @ptrCast(self.vtable)).put_Size(@as(*const IFolderAction, @ptrCast(self)), ulAge); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IFolderAction_get_Actions(self: *const T, Steps: ?*FolderActionSteps) HRESULT { return @as(*const IFolderAction.VTable, @ptrCast(self.vtable)).get_Actions(@as(*const IFolderAction, @ptrCast(self)), Steps); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IFolderAction_put_Actions(self: *const T, Steps: FolderActionSteps) HRESULT { return @as(*const IFolderAction.VTable, @ptrCast(self.vtable)).put_Actions(@as(*const IFolderAction, @ptrCast(self)), Steps); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IFolderAction_get_SendCabTo(self: *const T, pbstrDestination: ?*?BSTR) HRESULT { return @as(*const IFolderAction.VTable, @ptrCast(self.vtable)).get_SendCabTo(@as(*const IFolderAction, @ptrCast(self)), pbstrDestination); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IFolderAction_put_SendCabTo(self: *const T, bstrDestination: ?BSTR) HRESULT { return @as(*const IFolderAction.VTable, @ptrCast(self.vtable)).put_SendCabTo(@as(*const IFolderAction, @ptrCast(self)), bstrDestination); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows6.0.6000' const IID_IFolderActionCollection_Value = Guid.initString("03837544-098b-11d8-9414-505054503030"); pub const IID_IFolderActionCollection = &IID_IFolderActionCollection_Value; pub const IFolderActionCollection = extern struct { pub const VTable = extern struct { base: IDispatch.VTable, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Count: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IFolderActionCollection, Count: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IFolderActionCollection, Count: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Item: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IFolderActionCollection, Index: VARIANT, Action: ?*?*IFolderAction, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IFolderActionCollection, Index: VARIANT, Action: ?*?*IFolderAction, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get__NewEnum: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IFolderActionCollection, Enum: ?*?*IUnknown, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IFolderActionCollection, Enum: ?*?*IUnknown, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Add: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IFolderActionCollection, Action: ?*IFolderAction, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IFolderActionCollection, Action: ?*IFolderAction, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Remove: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IFolderActionCollection, Index: VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IFolderActionCollection, Index: VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Clear: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IFolderActionCollection, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IFolderActionCollection, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, AddRange: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IFolderActionCollection, Actions: ?*IFolderActionCollection, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IFolderActionCollection, Actions: ?*IFolderActionCollection, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, CreateFolderAction: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IFolderActionCollection, FolderAction: ?*?*IFolderAction, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IFolderActionCollection, FolderAction: ?*?*IFolderAction, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IDispatch.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IFolderActionCollection_get_Count(self: *const T, Count: ?*u32) HRESULT { return @as(*const IFolderActionCollection.VTable, @ptrCast(self.vtable)).get_Count(@as(*const IFolderActionCollection, @ptrCast(self)), Count); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IFolderActionCollection_get_Item(self: *const T, Index: VARIANT, Action: ?*?*IFolderAction) HRESULT { return @as(*const IFolderActionCollection.VTable, @ptrCast(self.vtable)).get_Item(@as(*const IFolderActionCollection, @ptrCast(self)), Index, Action); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IFolderActionCollection_get__NewEnum(self: *const T, Enum: ?*?*IUnknown) HRESULT { return @as(*const IFolderActionCollection.VTable, @ptrCast(self.vtable)).get__NewEnum(@as(*const IFolderActionCollection, @ptrCast(self)), Enum); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IFolderActionCollection_Add(self: *const T, Action: ?*IFolderAction) HRESULT { return @as(*const IFolderActionCollection.VTable, @ptrCast(self.vtable)).Add(@as(*const IFolderActionCollection, @ptrCast(self)), Action); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IFolderActionCollection_Remove(self: *const T, Index: VARIANT) HRESULT { return @as(*const IFolderActionCollection.VTable, @ptrCast(self.vtable)).Remove(@as(*const IFolderActionCollection, @ptrCast(self)), Index); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IFolderActionCollection_Clear(self: *const T) HRESULT { return @as(*const IFolderActionCollection.VTable, @ptrCast(self.vtable)).Clear(@as(*const IFolderActionCollection, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IFolderActionCollection_AddRange(self: *const T, Actions: ?*IFolderActionCollection) HRESULT { return @as(*const IFolderActionCollection.VTable, @ptrCast(self.vtable)).AddRange(@as(*const IFolderActionCollection, @ptrCast(self)), Actions); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IFolderActionCollection_CreateFolderAction(self: *const T, FolderAction: ?*?*IFolderAction) HRESULT { return @as(*const IFolderActionCollection.VTable, @ptrCast(self.vtable)).CreateFolderAction(@as(*const IFolderActionCollection, @ptrCast(self)), FolderAction); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows6.0.6000' const IID_IDataCollector_Value = Guid.initString("038374ff-098b-11d8-9414-505054503030"); pub const IID_IDataCollector = &IID_IDataCollector_Value; pub const IDataCollector = extern struct { pub const VTable = extern struct { base: IDispatch.VTable, // TODO: this function has a "SpecialName", should Zig do anything with this? get_DataCollectorSet: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IDataCollector, group: ?*?*IDataCollectorSet, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IDataCollector, group: ?*?*IDataCollectorSet, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_DataCollectorSet: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IDataCollector, group: ?*IDataCollectorSet, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IDataCollector, group: ?*IDataCollectorSet, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_DataCollectorType: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IDataCollector, type: ?*DataCollectorType, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IDataCollector, type: ?*DataCollectorType, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_FileName: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IDataCollector, name: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IDataCollector, name: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_FileName: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IDataCollector, name: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IDataCollector, name: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_FileNameFormat: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IDataCollector, format: ?*AutoPathFormat, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IDataCollector, format: ?*AutoPathFormat, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_FileNameFormat: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IDataCollector, format: AutoPathFormat, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IDataCollector, format: AutoPathFormat, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_FileNameFormatPattern: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IDataCollector, pattern: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IDataCollector, pattern: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_FileNameFormatPattern: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IDataCollector, pattern: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IDataCollector, pattern: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_LatestOutputLocation: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IDataCollector, path: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IDataCollector, path: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_LatestOutputLocation: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IDataCollector, path: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IDataCollector, path: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_LogAppend: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IDataCollector, append: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IDataCollector, append: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_LogAppend: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IDataCollector, append: i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IDataCollector, append: i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_LogCircular: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IDataCollector, circular: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IDataCollector, circular: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_LogCircular: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IDataCollector, circular: i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IDataCollector, circular: i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_LogOverwrite: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IDataCollector, overwrite: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IDataCollector, overwrite: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_LogOverwrite: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IDataCollector, overwrite: i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IDataCollector, overwrite: i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Name: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IDataCollector, name: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IDataCollector, name: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_Name: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IDataCollector, name: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IDataCollector, name: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_OutputLocation: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IDataCollector, path: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IDataCollector, path: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Index: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IDataCollector, index: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IDataCollector, index: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_Index: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IDataCollector, index: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IDataCollector, index: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Xml: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IDataCollector, Xml: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IDataCollector, Xml: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetXml: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDataCollector, Xml: ?BSTR, Validation: ?*?*IValueMap, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDataCollector, Xml: ?BSTR, Validation: ?*?*IValueMap, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, CreateOutputLocation: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDataCollector, Latest: i16, Location: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDataCollector, Latest: i16, Location: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IDispatch.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDataCollector_get_DataCollectorSet(self: *const T, group: ?*?*IDataCollectorSet) HRESULT { return @as(*const IDataCollector.VTable, @ptrCast(self.vtable)).get_DataCollectorSet(@as(*const IDataCollector, @ptrCast(self)), group); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDataCollector_put_DataCollectorSet(self: *const T, group: ?*IDataCollectorSet) HRESULT { return @as(*const IDataCollector.VTable, @ptrCast(self.vtable)).put_DataCollectorSet(@as(*const IDataCollector, @ptrCast(self)), group); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDataCollector_get_DataCollectorType(self: *const T, type_: ?*DataCollectorType) HRESULT { return @as(*const IDataCollector.VTable, @ptrCast(self.vtable)).get_DataCollectorType(@as(*const IDataCollector, @ptrCast(self)), type_); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDataCollector_get_FileName(self: *const T, name: ?*?BSTR) HRESULT { return @as(*const IDataCollector.VTable, @ptrCast(self.vtable)).get_FileName(@as(*const IDataCollector, @ptrCast(self)), name); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDataCollector_put_FileName(self: *const T, name: ?BSTR) HRESULT { return @as(*const IDataCollector.VTable, @ptrCast(self.vtable)).put_FileName(@as(*const IDataCollector, @ptrCast(self)), name); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDataCollector_get_FileNameFormat(self: *const T, format: ?*AutoPathFormat) HRESULT { return @as(*const IDataCollector.VTable, @ptrCast(self.vtable)).get_FileNameFormat(@as(*const IDataCollector, @ptrCast(self)), format); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDataCollector_put_FileNameFormat(self: *const T, format: AutoPathFormat) HRESULT { return @as(*const IDataCollector.VTable, @ptrCast(self.vtable)).put_FileNameFormat(@as(*const IDataCollector, @ptrCast(self)), format); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDataCollector_get_FileNameFormatPattern(self: *const T, pattern: ?*?BSTR) HRESULT { return @as(*const IDataCollector.VTable, @ptrCast(self.vtable)).get_FileNameFormatPattern(@as(*const IDataCollector, @ptrCast(self)), pattern); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDataCollector_put_FileNameFormatPattern(self: *const T, pattern: ?BSTR) HRESULT { return @as(*const IDataCollector.VTable, @ptrCast(self.vtable)).put_FileNameFormatPattern(@as(*const IDataCollector, @ptrCast(self)), pattern); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDataCollector_get_LatestOutputLocation(self: *const T, path: ?*?BSTR) HRESULT { return @as(*const IDataCollector.VTable, @ptrCast(self.vtable)).get_LatestOutputLocation(@as(*const IDataCollector, @ptrCast(self)), path); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDataCollector_put_LatestOutputLocation(self: *const T, path: ?BSTR) HRESULT { return @as(*const IDataCollector.VTable, @ptrCast(self.vtable)).put_LatestOutputLocation(@as(*const IDataCollector, @ptrCast(self)), path); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDataCollector_get_LogAppend(self: *const T, append: ?*i16) HRESULT { return @as(*const IDataCollector.VTable, @ptrCast(self.vtable)).get_LogAppend(@as(*const IDataCollector, @ptrCast(self)), append); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDataCollector_put_LogAppend(self: *const T, append: i16) HRESULT { return @as(*const IDataCollector.VTable, @ptrCast(self.vtable)).put_LogAppend(@as(*const IDataCollector, @ptrCast(self)), append); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDataCollector_get_LogCircular(self: *const T, circular: ?*i16) HRESULT { return @as(*const IDataCollector.VTable, @ptrCast(self.vtable)).get_LogCircular(@as(*const IDataCollector, @ptrCast(self)), circular); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDataCollector_put_LogCircular(self: *const T, circular: i16) HRESULT { return @as(*const IDataCollector.VTable, @ptrCast(self.vtable)).put_LogCircular(@as(*const IDataCollector, @ptrCast(self)), circular); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDataCollector_get_LogOverwrite(self: *const T, overwrite: ?*i16) HRESULT { return @as(*const IDataCollector.VTable, @ptrCast(self.vtable)).get_LogOverwrite(@as(*const IDataCollector, @ptrCast(self)), overwrite); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDataCollector_put_LogOverwrite(self: *const T, overwrite: i16) HRESULT { return @as(*const IDataCollector.VTable, @ptrCast(self.vtable)).put_LogOverwrite(@as(*const IDataCollector, @ptrCast(self)), overwrite); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDataCollector_get_Name(self: *const T, name: ?*?BSTR) HRESULT { return @as(*const IDataCollector.VTable, @ptrCast(self.vtable)).get_Name(@as(*const IDataCollector, @ptrCast(self)), name); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDataCollector_put_Name(self: *const T, name: ?BSTR) HRESULT { return @as(*const IDataCollector.VTable, @ptrCast(self.vtable)).put_Name(@as(*const IDataCollector, @ptrCast(self)), name); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDataCollector_get_OutputLocation(self: *const T, path: ?*?BSTR) HRESULT { return @as(*const IDataCollector.VTable, @ptrCast(self.vtable)).get_OutputLocation(@as(*const IDataCollector, @ptrCast(self)), path); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDataCollector_get_Index(self: *const T, index: ?*i32) HRESULT { return @as(*const IDataCollector.VTable, @ptrCast(self.vtable)).get_Index(@as(*const IDataCollector, @ptrCast(self)), index); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDataCollector_put_Index(self: *const T, index: i32) HRESULT { return @as(*const IDataCollector.VTable, @ptrCast(self.vtable)).put_Index(@as(*const IDataCollector, @ptrCast(self)), index); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDataCollector_get_Xml(self: *const T, Xml: ?*?BSTR) HRESULT { return @as(*const IDataCollector.VTable, @ptrCast(self.vtable)).get_Xml(@as(*const IDataCollector, @ptrCast(self)), Xml); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDataCollector_SetXml(self: *const T, Xml: ?BSTR, Validation: ?*?*IValueMap) HRESULT { return @as(*const IDataCollector.VTable, @ptrCast(self.vtable)).SetXml(@as(*const IDataCollector, @ptrCast(self)), Xml, Validation); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDataCollector_CreateOutputLocation(self: *const T, Latest: i16, Location: ?*?BSTR) HRESULT { return @as(*const IDataCollector.VTable, @ptrCast(self.vtable)).CreateOutputLocation(@as(*const IDataCollector, @ptrCast(self)), Latest, Location); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows6.0.6000' const IID_IPerformanceCounterDataCollector_Value = Guid.initString("03837506-098b-11d8-9414-505054503030"); pub const IID_IPerformanceCounterDataCollector = &IID_IPerformanceCounterDataCollector_Value; pub const IPerformanceCounterDataCollector = extern struct { pub const VTable = extern struct { base: IDataCollector.VTable, // TODO: this function has a "SpecialName", should Zig do anything with this? get_DataSourceName: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IPerformanceCounterDataCollector, dsn: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IPerformanceCounterDataCollector, dsn: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_DataSourceName: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IPerformanceCounterDataCollector, dsn: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IPerformanceCounterDataCollector, dsn: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_PerformanceCounters: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IPerformanceCounterDataCollector, counters: ?*?*SAFEARRAY, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IPerformanceCounterDataCollector, counters: ?*?*SAFEARRAY, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_PerformanceCounters: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IPerformanceCounterDataCollector, counters: ?*SAFEARRAY, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IPerformanceCounterDataCollector, counters: ?*SAFEARRAY, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_LogFileFormat: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IPerformanceCounterDataCollector, format: ?*FileFormat, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IPerformanceCounterDataCollector, format: ?*FileFormat, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_LogFileFormat: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IPerformanceCounterDataCollector, format: FileFormat, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IPerformanceCounterDataCollector, format: FileFormat, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_SampleInterval: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IPerformanceCounterDataCollector, interval: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IPerformanceCounterDataCollector, interval: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_SampleInterval: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IPerformanceCounterDataCollector, interval: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IPerformanceCounterDataCollector, interval: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_SegmentMaxRecords: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IPerformanceCounterDataCollector, records: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IPerformanceCounterDataCollector, records: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_SegmentMaxRecords: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IPerformanceCounterDataCollector, records: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IPerformanceCounterDataCollector, records: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IDataCollector.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPerformanceCounterDataCollector_get_DataSourceName(self: *const T, dsn: ?*?BSTR) HRESULT { return @as(*const IPerformanceCounterDataCollector.VTable, @ptrCast(self.vtable)).get_DataSourceName(@as(*const IPerformanceCounterDataCollector, @ptrCast(self)), dsn); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPerformanceCounterDataCollector_put_DataSourceName(self: *const T, dsn: ?BSTR) HRESULT { return @as(*const IPerformanceCounterDataCollector.VTable, @ptrCast(self.vtable)).put_DataSourceName(@as(*const IPerformanceCounterDataCollector, @ptrCast(self)), dsn); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPerformanceCounterDataCollector_get_PerformanceCounters(self: *const T, counters: ?*?*SAFEARRAY) HRESULT { return @as(*const IPerformanceCounterDataCollector.VTable, @ptrCast(self.vtable)).get_PerformanceCounters(@as(*const IPerformanceCounterDataCollector, @ptrCast(self)), counters); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPerformanceCounterDataCollector_put_PerformanceCounters(self: *const T, counters: ?*SAFEARRAY) HRESULT { return @as(*const IPerformanceCounterDataCollector.VTable, @ptrCast(self.vtable)).put_PerformanceCounters(@as(*const IPerformanceCounterDataCollector, @ptrCast(self)), counters); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPerformanceCounterDataCollector_get_LogFileFormat(self: *const T, format: ?*FileFormat) HRESULT { return @as(*const IPerformanceCounterDataCollector.VTable, @ptrCast(self.vtable)).get_LogFileFormat(@as(*const IPerformanceCounterDataCollector, @ptrCast(self)), format); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPerformanceCounterDataCollector_put_LogFileFormat(self: *const T, format: FileFormat) HRESULT { return @as(*const IPerformanceCounterDataCollector.VTable, @ptrCast(self.vtable)).put_LogFileFormat(@as(*const IPerformanceCounterDataCollector, @ptrCast(self)), format); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPerformanceCounterDataCollector_get_SampleInterval(self: *const T, interval: ?*u32) HRESULT { return @as(*const IPerformanceCounterDataCollector.VTable, @ptrCast(self.vtable)).get_SampleInterval(@as(*const IPerformanceCounterDataCollector, @ptrCast(self)), interval); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPerformanceCounterDataCollector_put_SampleInterval(self: *const T, interval: u32) HRESULT { return @as(*const IPerformanceCounterDataCollector.VTable, @ptrCast(self.vtable)).put_SampleInterval(@as(*const IPerformanceCounterDataCollector, @ptrCast(self)), interval); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPerformanceCounterDataCollector_get_SegmentMaxRecords(self: *const T, records: ?*u32) HRESULT { return @as(*const IPerformanceCounterDataCollector.VTable, @ptrCast(self.vtable)).get_SegmentMaxRecords(@as(*const IPerformanceCounterDataCollector, @ptrCast(self)), records); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPerformanceCounterDataCollector_put_SegmentMaxRecords(self: *const T, records: u32) HRESULT { return @as(*const IPerformanceCounterDataCollector.VTable, @ptrCast(self.vtable)).put_SegmentMaxRecords(@as(*const IPerformanceCounterDataCollector, @ptrCast(self)), records); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows6.0.6000' const IID_ITraceDataCollector_Value = Guid.initString("0383750b-098b-11d8-9414-505054503030"); pub const IID_ITraceDataCollector = &IID_ITraceDataCollector_Value; pub const ITraceDataCollector = extern struct { pub const VTable = extern struct { base: IDataCollector.VTable, // TODO: this function has a "SpecialName", should Zig do anything with this? get_BufferSize: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ITraceDataCollector, size: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ITraceDataCollector, size: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_BufferSize: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ITraceDataCollector, size: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ITraceDataCollector, size: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_BuffersLost: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ITraceDataCollector, buffers: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ITraceDataCollector, buffers: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_BuffersLost: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ITraceDataCollector, buffers: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ITraceDataCollector, buffers: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_BuffersWritten: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ITraceDataCollector, buffers: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ITraceDataCollector, buffers: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_BuffersWritten: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ITraceDataCollector, buffers: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ITraceDataCollector, buffers: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_ClockType: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ITraceDataCollector, clock: ?*ClockType, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ITraceDataCollector, clock: ?*ClockType, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_ClockType: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ITraceDataCollector, clock: ClockType, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ITraceDataCollector, clock: ClockType, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_EventsLost: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ITraceDataCollector, events: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ITraceDataCollector, events: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_EventsLost: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ITraceDataCollector, events: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ITraceDataCollector, events: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_ExtendedModes: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ITraceDataCollector, mode: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ITraceDataCollector, mode: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_ExtendedModes: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ITraceDataCollector, mode: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ITraceDataCollector, mode: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_FlushTimer: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ITraceDataCollector, seconds: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ITraceDataCollector, seconds: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_FlushTimer: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ITraceDataCollector, seconds: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ITraceDataCollector, seconds: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_FreeBuffers: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ITraceDataCollector, buffers: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ITraceDataCollector, buffers: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_FreeBuffers: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ITraceDataCollector, buffers: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ITraceDataCollector, buffers: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Guid: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ITraceDataCollector, guid: ?*Guid, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ITraceDataCollector, guid: ?*Guid, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_Guid: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ITraceDataCollector, guid: Guid, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ITraceDataCollector, guid: Guid, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_IsKernelTrace: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ITraceDataCollector, kernel: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ITraceDataCollector, kernel: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_MaximumBuffers: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ITraceDataCollector, buffers: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ITraceDataCollector, buffers: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_MaximumBuffers: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ITraceDataCollector, buffers: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ITraceDataCollector, buffers: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_MinimumBuffers: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ITraceDataCollector, buffers: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ITraceDataCollector, buffers: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_MinimumBuffers: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ITraceDataCollector, buffers: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ITraceDataCollector, buffers: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_NumberOfBuffers: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ITraceDataCollector, buffers: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ITraceDataCollector, buffers: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_NumberOfBuffers: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ITraceDataCollector, buffers: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ITraceDataCollector, buffers: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_PreallocateFile: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ITraceDataCollector, allocate: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ITraceDataCollector, allocate: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_PreallocateFile: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ITraceDataCollector, allocate: i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ITraceDataCollector, allocate: i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_ProcessMode: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ITraceDataCollector, process: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ITraceDataCollector, process: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_ProcessMode: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ITraceDataCollector, process: i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ITraceDataCollector, process: i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_RealTimeBuffersLost: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ITraceDataCollector, buffers: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ITraceDataCollector, buffers: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_RealTimeBuffersLost: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ITraceDataCollector, buffers: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ITraceDataCollector, buffers: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_SessionId: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ITraceDataCollector, id: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ITraceDataCollector, id: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_SessionId: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ITraceDataCollector, id: u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ITraceDataCollector, id: u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_SessionName: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ITraceDataCollector, name: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ITraceDataCollector, name: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_SessionName: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ITraceDataCollector, name: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ITraceDataCollector, name: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_SessionThreadId: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ITraceDataCollector, tid: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ITraceDataCollector, tid: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_SessionThreadId: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ITraceDataCollector, tid: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ITraceDataCollector, tid: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_StreamMode: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ITraceDataCollector, mode: ?*StreamMode, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ITraceDataCollector, mode: ?*StreamMode, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_StreamMode: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ITraceDataCollector, mode: StreamMode, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ITraceDataCollector, mode: StreamMode, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_TraceDataProviders: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ITraceDataCollector, providers: ?*?*ITraceDataProviderCollection, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ITraceDataCollector, providers: ?*?*ITraceDataProviderCollection, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IDataCollector.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITraceDataCollector_get_BufferSize(self: *const T, size: ?*u32) HRESULT { return @as(*const ITraceDataCollector.VTable, @ptrCast(self.vtable)).get_BufferSize(@as(*const ITraceDataCollector, @ptrCast(self)), size); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITraceDataCollector_put_BufferSize(self: *const T, size: u32) HRESULT { return @as(*const ITraceDataCollector.VTable, @ptrCast(self.vtable)).put_BufferSize(@as(*const ITraceDataCollector, @ptrCast(self)), size); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITraceDataCollector_get_BuffersLost(self: *const T, buffers: ?*u32) HRESULT { return @as(*const ITraceDataCollector.VTable, @ptrCast(self.vtable)).get_BuffersLost(@as(*const ITraceDataCollector, @ptrCast(self)), buffers); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITraceDataCollector_put_BuffersLost(self: *const T, buffers: u32) HRESULT { return @as(*const ITraceDataCollector.VTable, @ptrCast(self.vtable)).put_BuffersLost(@as(*const ITraceDataCollector, @ptrCast(self)), buffers); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITraceDataCollector_get_BuffersWritten(self: *const T, buffers: ?*u32) HRESULT { return @as(*const ITraceDataCollector.VTable, @ptrCast(self.vtable)).get_BuffersWritten(@as(*const ITraceDataCollector, @ptrCast(self)), buffers); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITraceDataCollector_put_BuffersWritten(self: *const T, buffers: u32) HRESULT { return @as(*const ITraceDataCollector.VTable, @ptrCast(self.vtable)).put_BuffersWritten(@as(*const ITraceDataCollector, @ptrCast(self)), buffers); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITraceDataCollector_get_ClockType(self: *const T, clock: ?*ClockType) HRESULT { return @as(*const ITraceDataCollector.VTable, @ptrCast(self.vtable)).get_ClockType(@as(*const ITraceDataCollector, @ptrCast(self)), clock); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITraceDataCollector_put_ClockType(self: *const T, clock: ClockType) HRESULT { return @as(*const ITraceDataCollector.VTable, @ptrCast(self.vtable)).put_ClockType(@as(*const ITraceDataCollector, @ptrCast(self)), clock); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITraceDataCollector_get_EventsLost(self: *const T, events: ?*u32) HRESULT { return @as(*const ITraceDataCollector.VTable, @ptrCast(self.vtable)).get_EventsLost(@as(*const ITraceDataCollector, @ptrCast(self)), events); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITraceDataCollector_put_EventsLost(self: *const T, events: u32) HRESULT { return @as(*const ITraceDataCollector.VTable, @ptrCast(self.vtable)).put_EventsLost(@as(*const ITraceDataCollector, @ptrCast(self)), events); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITraceDataCollector_get_ExtendedModes(self: *const T, mode: ?*u32) HRESULT { return @as(*const ITraceDataCollector.VTable, @ptrCast(self.vtable)).get_ExtendedModes(@as(*const ITraceDataCollector, @ptrCast(self)), mode); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITraceDataCollector_put_ExtendedModes(self: *const T, mode: u32) HRESULT { return @as(*const ITraceDataCollector.VTable, @ptrCast(self.vtable)).put_ExtendedModes(@as(*const ITraceDataCollector, @ptrCast(self)), mode); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITraceDataCollector_get_FlushTimer(self: *const T, seconds: ?*u32) HRESULT { return @as(*const ITraceDataCollector.VTable, @ptrCast(self.vtable)).get_FlushTimer(@as(*const ITraceDataCollector, @ptrCast(self)), seconds); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITraceDataCollector_put_FlushTimer(self: *const T, seconds: u32) HRESULT { return @as(*const ITraceDataCollector.VTable, @ptrCast(self.vtable)).put_FlushTimer(@as(*const ITraceDataCollector, @ptrCast(self)), seconds); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITraceDataCollector_get_FreeBuffers(self: *const T, buffers: ?*u32) HRESULT { return @as(*const ITraceDataCollector.VTable, @ptrCast(self.vtable)).get_FreeBuffers(@as(*const ITraceDataCollector, @ptrCast(self)), buffers); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITraceDataCollector_put_FreeBuffers(self: *const T, buffers: u32) HRESULT { return @as(*const ITraceDataCollector.VTable, @ptrCast(self.vtable)).put_FreeBuffers(@as(*const ITraceDataCollector, @ptrCast(self)), buffers); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITraceDataCollector_get_Guid(self: *const T, guid: ?*Guid) HRESULT { return @as(*const ITraceDataCollector.VTable, @ptrCast(self.vtable)).get_Guid(@as(*const ITraceDataCollector, @ptrCast(self)), guid); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITraceDataCollector_put_Guid(self: *const T, guid: Guid) HRESULT { return @as(*const ITraceDataCollector.VTable, @ptrCast(self.vtable)).put_Guid(@as(*const ITraceDataCollector, @ptrCast(self)), guid); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITraceDataCollector_get_IsKernelTrace(self: *const T, kernel: ?*i16) HRESULT { return @as(*const ITraceDataCollector.VTable, @ptrCast(self.vtable)).get_IsKernelTrace(@as(*const ITraceDataCollector, @ptrCast(self)), kernel); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITraceDataCollector_get_MaximumBuffers(self: *const T, buffers: ?*u32) HRESULT { return @as(*const ITraceDataCollector.VTable, @ptrCast(self.vtable)).get_MaximumBuffers(@as(*const ITraceDataCollector, @ptrCast(self)), buffers); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITraceDataCollector_put_MaximumBuffers(self: *const T, buffers: u32) HRESULT { return @as(*const ITraceDataCollector.VTable, @ptrCast(self.vtable)).put_MaximumBuffers(@as(*const ITraceDataCollector, @ptrCast(self)), buffers); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITraceDataCollector_get_MinimumBuffers(self: *const T, buffers: ?*u32) HRESULT { return @as(*const ITraceDataCollector.VTable, @ptrCast(self.vtable)).get_MinimumBuffers(@as(*const ITraceDataCollector, @ptrCast(self)), buffers); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITraceDataCollector_put_MinimumBuffers(self: *const T, buffers: u32) HRESULT { return @as(*const ITraceDataCollector.VTable, @ptrCast(self.vtable)).put_MinimumBuffers(@as(*const ITraceDataCollector, @ptrCast(self)), buffers); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITraceDataCollector_get_NumberOfBuffers(self: *const T, buffers: ?*u32) HRESULT { return @as(*const ITraceDataCollector.VTable, @ptrCast(self.vtable)).get_NumberOfBuffers(@as(*const ITraceDataCollector, @ptrCast(self)), buffers); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITraceDataCollector_put_NumberOfBuffers(self: *const T, buffers: u32) HRESULT { return @as(*const ITraceDataCollector.VTable, @ptrCast(self.vtable)).put_NumberOfBuffers(@as(*const ITraceDataCollector, @ptrCast(self)), buffers); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITraceDataCollector_get_PreallocateFile(self: *const T, allocate: ?*i16) HRESULT { return @as(*const ITraceDataCollector.VTable, @ptrCast(self.vtable)).get_PreallocateFile(@as(*const ITraceDataCollector, @ptrCast(self)), allocate); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITraceDataCollector_put_PreallocateFile(self: *const T, allocate: i16) HRESULT { return @as(*const ITraceDataCollector.VTable, @ptrCast(self.vtable)).put_PreallocateFile(@as(*const ITraceDataCollector, @ptrCast(self)), allocate); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITraceDataCollector_get_ProcessMode(self: *const T, process: ?*i16) HRESULT { return @as(*const ITraceDataCollector.VTable, @ptrCast(self.vtable)).get_ProcessMode(@as(*const ITraceDataCollector, @ptrCast(self)), process); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITraceDataCollector_put_ProcessMode(self: *const T, process: i16) HRESULT { return @as(*const ITraceDataCollector.VTable, @ptrCast(self.vtable)).put_ProcessMode(@as(*const ITraceDataCollector, @ptrCast(self)), process); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITraceDataCollector_get_RealTimeBuffersLost(self: *const T, buffers: ?*u32) HRESULT { return @as(*const ITraceDataCollector.VTable, @ptrCast(self.vtable)).get_RealTimeBuffersLost(@as(*const ITraceDataCollector, @ptrCast(self)), buffers); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITraceDataCollector_put_RealTimeBuffersLost(self: *const T, buffers: u32) HRESULT { return @as(*const ITraceDataCollector.VTable, @ptrCast(self.vtable)).put_RealTimeBuffersLost(@as(*const ITraceDataCollector, @ptrCast(self)), buffers); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITraceDataCollector_get_SessionId(self: *const T, id: ?*u64) HRESULT { return @as(*const ITraceDataCollector.VTable, @ptrCast(self.vtable)).get_SessionId(@as(*const ITraceDataCollector, @ptrCast(self)), id); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITraceDataCollector_put_SessionId(self: *const T, id: u64) HRESULT { return @as(*const ITraceDataCollector.VTable, @ptrCast(self.vtable)).put_SessionId(@as(*const ITraceDataCollector, @ptrCast(self)), id); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITraceDataCollector_get_SessionName(self: *const T, name: ?*?BSTR) HRESULT { return @as(*const ITraceDataCollector.VTable, @ptrCast(self.vtable)).get_SessionName(@as(*const ITraceDataCollector, @ptrCast(self)), name); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITraceDataCollector_put_SessionName(self: *const T, name: ?BSTR) HRESULT { return @as(*const ITraceDataCollector.VTable, @ptrCast(self.vtable)).put_SessionName(@as(*const ITraceDataCollector, @ptrCast(self)), name); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITraceDataCollector_get_SessionThreadId(self: *const T, tid: ?*u32) HRESULT { return @as(*const ITraceDataCollector.VTable, @ptrCast(self.vtable)).get_SessionThreadId(@as(*const ITraceDataCollector, @ptrCast(self)), tid); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITraceDataCollector_put_SessionThreadId(self: *const T, tid: u32) HRESULT { return @as(*const ITraceDataCollector.VTable, @ptrCast(self.vtable)).put_SessionThreadId(@as(*const ITraceDataCollector, @ptrCast(self)), tid); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITraceDataCollector_get_StreamMode(self: *const T, mode: ?*StreamMode) HRESULT { return @as(*const ITraceDataCollector.VTable, @ptrCast(self.vtable)).get_StreamMode(@as(*const ITraceDataCollector, @ptrCast(self)), mode); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITraceDataCollector_put_StreamMode(self: *const T, mode: StreamMode) HRESULT { return @as(*const ITraceDataCollector.VTable, @ptrCast(self.vtable)).put_StreamMode(@as(*const ITraceDataCollector, @ptrCast(self)), mode); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITraceDataCollector_get_TraceDataProviders(self: *const T, providers: ?*?*ITraceDataProviderCollection) HRESULT { return @as(*const ITraceDataCollector.VTable, @ptrCast(self.vtable)).get_TraceDataProviders(@as(*const ITraceDataCollector, @ptrCast(self)), providers); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows6.0.6000' const IID_IConfigurationDataCollector_Value = Guid.initString("03837514-098b-11d8-9414-505054503030"); pub const IID_IConfigurationDataCollector = &IID_IConfigurationDataCollector_Value; pub const IConfigurationDataCollector = extern struct { pub const VTable = extern struct { base: IDataCollector.VTable, // TODO: this function has a "SpecialName", should Zig do anything with this? get_FileMaxCount: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IConfigurationDataCollector, count: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IConfigurationDataCollector, count: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_FileMaxCount: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IConfigurationDataCollector, count: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IConfigurationDataCollector, count: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_FileMaxRecursiveDepth: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IConfigurationDataCollector, depth: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IConfigurationDataCollector, depth: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_FileMaxRecursiveDepth: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IConfigurationDataCollector, depth: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IConfigurationDataCollector, depth: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_FileMaxTotalSize: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IConfigurationDataCollector, size: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IConfigurationDataCollector, size: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_FileMaxTotalSize: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IConfigurationDataCollector, size: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IConfigurationDataCollector, size: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Files: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IConfigurationDataCollector, Files: ?*?*SAFEARRAY, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IConfigurationDataCollector, Files: ?*?*SAFEARRAY, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_Files: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IConfigurationDataCollector, Files: ?*SAFEARRAY, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IConfigurationDataCollector, Files: ?*SAFEARRAY, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_ManagementQueries: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IConfigurationDataCollector, Queries: ?*?*SAFEARRAY, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IConfigurationDataCollector, Queries: ?*?*SAFEARRAY, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_ManagementQueries: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IConfigurationDataCollector, Queries: ?*SAFEARRAY, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IConfigurationDataCollector, Queries: ?*SAFEARRAY, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_QueryNetworkAdapters: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IConfigurationDataCollector, network: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IConfigurationDataCollector, network: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_QueryNetworkAdapters: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IConfigurationDataCollector, network: i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IConfigurationDataCollector, network: i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_RegistryKeys: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IConfigurationDataCollector, query: ?*?*SAFEARRAY, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IConfigurationDataCollector, query: ?*?*SAFEARRAY, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_RegistryKeys: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IConfigurationDataCollector, query: ?*SAFEARRAY, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IConfigurationDataCollector, query: ?*SAFEARRAY, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_RegistryMaxRecursiveDepth: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IConfigurationDataCollector, depth: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IConfigurationDataCollector, depth: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_RegistryMaxRecursiveDepth: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IConfigurationDataCollector, depth: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IConfigurationDataCollector, depth: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_SystemStateFile: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IConfigurationDataCollector, FileName: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IConfigurationDataCollector, FileName: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_SystemStateFile: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IConfigurationDataCollector, FileName: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IConfigurationDataCollector, FileName: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IDataCollector.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IConfigurationDataCollector_get_FileMaxCount(self: *const T, count: ?*u32) HRESULT { return @as(*const IConfigurationDataCollector.VTable, @ptrCast(self.vtable)).get_FileMaxCount(@as(*const IConfigurationDataCollector, @ptrCast(self)), count); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IConfigurationDataCollector_put_FileMaxCount(self: *const T, count: u32) HRESULT { return @as(*const IConfigurationDataCollector.VTable, @ptrCast(self.vtable)).put_FileMaxCount(@as(*const IConfigurationDataCollector, @ptrCast(self)), count); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IConfigurationDataCollector_get_FileMaxRecursiveDepth(self: *const T, depth: ?*u32) HRESULT { return @as(*const IConfigurationDataCollector.VTable, @ptrCast(self.vtable)).get_FileMaxRecursiveDepth(@as(*const IConfigurationDataCollector, @ptrCast(self)), depth); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IConfigurationDataCollector_put_FileMaxRecursiveDepth(self: *const T, depth: u32) HRESULT { return @as(*const IConfigurationDataCollector.VTable, @ptrCast(self.vtable)).put_FileMaxRecursiveDepth(@as(*const IConfigurationDataCollector, @ptrCast(self)), depth); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IConfigurationDataCollector_get_FileMaxTotalSize(self: *const T, size: ?*u32) HRESULT { return @as(*const IConfigurationDataCollector.VTable, @ptrCast(self.vtable)).get_FileMaxTotalSize(@as(*const IConfigurationDataCollector, @ptrCast(self)), size); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IConfigurationDataCollector_put_FileMaxTotalSize(self: *const T, size: u32) HRESULT { return @as(*const IConfigurationDataCollector.VTable, @ptrCast(self.vtable)).put_FileMaxTotalSize(@as(*const IConfigurationDataCollector, @ptrCast(self)), size); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IConfigurationDataCollector_get_Files(self: *const T, Files: ?*?*SAFEARRAY) HRESULT { return @as(*const IConfigurationDataCollector.VTable, @ptrCast(self.vtable)).get_Files(@as(*const IConfigurationDataCollector, @ptrCast(self)), Files); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IConfigurationDataCollector_put_Files(self: *const T, Files: ?*SAFEARRAY) HRESULT { return @as(*const IConfigurationDataCollector.VTable, @ptrCast(self.vtable)).put_Files(@as(*const IConfigurationDataCollector, @ptrCast(self)), Files); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IConfigurationDataCollector_get_ManagementQueries(self: *const T, Queries: ?*?*SAFEARRAY) HRESULT { return @as(*const IConfigurationDataCollector.VTable, @ptrCast(self.vtable)).get_ManagementQueries(@as(*const IConfigurationDataCollector, @ptrCast(self)), Queries); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IConfigurationDataCollector_put_ManagementQueries(self: *const T, Queries: ?*SAFEARRAY) HRESULT { return @as(*const IConfigurationDataCollector.VTable, @ptrCast(self.vtable)).put_ManagementQueries(@as(*const IConfigurationDataCollector, @ptrCast(self)), Queries); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IConfigurationDataCollector_get_QueryNetworkAdapters(self: *const T, network: ?*i16) HRESULT { return @as(*const IConfigurationDataCollector.VTable, @ptrCast(self.vtable)).get_QueryNetworkAdapters(@as(*const IConfigurationDataCollector, @ptrCast(self)), network); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IConfigurationDataCollector_put_QueryNetworkAdapters(self: *const T, network: i16) HRESULT { return @as(*const IConfigurationDataCollector.VTable, @ptrCast(self.vtable)).put_QueryNetworkAdapters(@as(*const IConfigurationDataCollector, @ptrCast(self)), network); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IConfigurationDataCollector_get_RegistryKeys(self: *const T, query: ?*?*SAFEARRAY) HRESULT { return @as(*const IConfigurationDataCollector.VTable, @ptrCast(self.vtable)).get_RegistryKeys(@as(*const IConfigurationDataCollector, @ptrCast(self)), query); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IConfigurationDataCollector_put_RegistryKeys(self: *const T, query: ?*SAFEARRAY) HRESULT { return @as(*const IConfigurationDataCollector.VTable, @ptrCast(self.vtable)).put_RegistryKeys(@as(*const IConfigurationDataCollector, @ptrCast(self)), query); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IConfigurationDataCollector_get_RegistryMaxRecursiveDepth(self: *const T, depth: ?*u32) HRESULT { return @as(*const IConfigurationDataCollector.VTable, @ptrCast(self.vtable)).get_RegistryMaxRecursiveDepth(@as(*const IConfigurationDataCollector, @ptrCast(self)), depth); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IConfigurationDataCollector_put_RegistryMaxRecursiveDepth(self: *const T, depth: u32) HRESULT { return @as(*const IConfigurationDataCollector.VTable, @ptrCast(self.vtable)).put_RegistryMaxRecursiveDepth(@as(*const IConfigurationDataCollector, @ptrCast(self)), depth); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IConfigurationDataCollector_get_SystemStateFile(self: *const T, FileName: ?*?BSTR) HRESULT { return @as(*const IConfigurationDataCollector.VTable, @ptrCast(self.vtable)).get_SystemStateFile(@as(*const IConfigurationDataCollector, @ptrCast(self)), FileName); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IConfigurationDataCollector_put_SystemStateFile(self: *const T, FileName: ?BSTR) HRESULT { return @as(*const IConfigurationDataCollector.VTable, @ptrCast(self.vtable)).put_SystemStateFile(@as(*const IConfigurationDataCollector, @ptrCast(self)), FileName); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows6.0.6000' const IID_IAlertDataCollector_Value = Guid.initString("03837516-098b-11d8-9414-505054503030"); pub const IID_IAlertDataCollector = &IID_IAlertDataCollector_Value; pub const IAlertDataCollector = extern struct { pub const VTable = extern struct { base: IDataCollector.VTable, // TODO: this function has a "SpecialName", should Zig do anything with this? get_AlertThresholds: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IAlertDataCollector, alerts: ?*?*SAFEARRAY, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IAlertDataCollector, alerts: ?*?*SAFEARRAY, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_AlertThresholds: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IAlertDataCollector, alerts: ?*SAFEARRAY, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IAlertDataCollector, alerts: ?*SAFEARRAY, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_EventLog: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IAlertDataCollector, log: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IAlertDataCollector, log: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_EventLog: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IAlertDataCollector, log: i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IAlertDataCollector, log: i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_SampleInterval: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IAlertDataCollector, interval: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IAlertDataCollector, interval: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_SampleInterval: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IAlertDataCollector, interval: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IAlertDataCollector, interval: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Task: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IAlertDataCollector, task: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IAlertDataCollector, task: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_Task: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IAlertDataCollector, task: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IAlertDataCollector, task: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_TaskRunAsSelf: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IAlertDataCollector, RunAsSelf: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IAlertDataCollector, RunAsSelf: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_TaskRunAsSelf: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IAlertDataCollector, RunAsSelf: i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IAlertDataCollector, RunAsSelf: i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_TaskArguments: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IAlertDataCollector, task: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IAlertDataCollector, task: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_TaskArguments: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IAlertDataCollector, task: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IAlertDataCollector, task: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_TaskUserTextArguments: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IAlertDataCollector, task: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IAlertDataCollector, task: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_TaskUserTextArguments: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IAlertDataCollector, task: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IAlertDataCollector, task: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_TriggerDataCollectorSet: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IAlertDataCollector, name: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IAlertDataCollector, name: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_TriggerDataCollectorSet: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IAlertDataCollector, name: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IAlertDataCollector, name: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IDataCollector.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IAlertDataCollector_get_AlertThresholds(self: *const T, alerts: ?*?*SAFEARRAY) HRESULT { return @as(*const IAlertDataCollector.VTable, @ptrCast(self.vtable)).get_AlertThresholds(@as(*const IAlertDataCollector, @ptrCast(self)), alerts); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IAlertDataCollector_put_AlertThresholds(self: *const T, alerts: ?*SAFEARRAY) HRESULT { return @as(*const IAlertDataCollector.VTable, @ptrCast(self.vtable)).put_AlertThresholds(@as(*const IAlertDataCollector, @ptrCast(self)), alerts); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IAlertDataCollector_get_EventLog(self: *const T, log: ?*i16) HRESULT { return @as(*const IAlertDataCollector.VTable, @ptrCast(self.vtable)).get_EventLog(@as(*const IAlertDataCollector, @ptrCast(self)), log); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IAlertDataCollector_put_EventLog(self: *const T, log: i16) HRESULT { return @as(*const IAlertDataCollector.VTable, @ptrCast(self.vtable)).put_EventLog(@as(*const IAlertDataCollector, @ptrCast(self)), log); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IAlertDataCollector_get_SampleInterval(self: *const T, interval: ?*u32) HRESULT { return @as(*const IAlertDataCollector.VTable, @ptrCast(self.vtable)).get_SampleInterval(@as(*const IAlertDataCollector, @ptrCast(self)), interval); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IAlertDataCollector_put_SampleInterval(self: *const T, interval: u32) HRESULT { return @as(*const IAlertDataCollector.VTable, @ptrCast(self.vtable)).put_SampleInterval(@as(*const IAlertDataCollector, @ptrCast(self)), interval); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IAlertDataCollector_get_Task(self: *const T, task: ?*?BSTR) HRESULT { return @as(*const IAlertDataCollector.VTable, @ptrCast(self.vtable)).get_Task(@as(*const IAlertDataCollector, @ptrCast(self)), task); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IAlertDataCollector_put_Task(self: *const T, task: ?BSTR) HRESULT { return @as(*const IAlertDataCollector.VTable, @ptrCast(self.vtable)).put_Task(@as(*const IAlertDataCollector, @ptrCast(self)), task); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IAlertDataCollector_get_TaskRunAsSelf(self: *const T, RunAsSelf: ?*i16) HRESULT { return @as(*const IAlertDataCollector.VTable, @ptrCast(self.vtable)).get_TaskRunAsSelf(@as(*const IAlertDataCollector, @ptrCast(self)), RunAsSelf); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IAlertDataCollector_put_TaskRunAsSelf(self: *const T, RunAsSelf: i16) HRESULT { return @as(*const IAlertDataCollector.VTable, @ptrCast(self.vtable)).put_TaskRunAsSelf(@as(*const IAlertDataCollector, @ptrCast(self)), RunAsSelf); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IAlertDataCollector_get_TaskArguments(self: *const T, task: ?*?BSTR) HRESULT { return @as(*const IAlertDataCollector.VTable, @ptrCast(self.vtable)).get_TaskArguments(@as(*const IAlertDataCollector, @ptrCast(self)), task); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IAlertDataCollector_put_TaskArguments(self: *const T, task: ?BSTR) HRESULT { return @as(*const IAlertDataCollector.VTable, @ptrCast(self.vtable)).put_TaskArguments(@as(*const IAlertDataCollector, @ptrCast(self)), task); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IAlertDataCollector_get_TaskUserTextArguments(self: *const T, task: ?*?BSTR) HRESULT { return @as(*const IAlertDataCollector.VTable, @ptrCast(self.vtable)).get_TaskUserTextArguments(@as(*const IAlertDataCollector, @ptrCast(self)), task); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IAlertDataCollector_put_TaskUserTextArguments(self: *const T, task: ?BSTR) HRESULT { return @as(*const IAlertDataCollector.VTable, @ptrCast(self.vtable)).put_TaskUserTextArguments(@as(*const IAlertDataCollector, @ptrCast(self)), task); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IAlertDataCollector_get_TriggerDataCollectorSet(self: *const T, name: ?*?BSTR) HRESULT { return @as(*const IAlertDataCollector.VTable, @ptrCast(self.vtable)).get_TriggerDataCollectorSet(@as(*const IAlertDataCollector, @ptrCast(self)), name); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IAlertDataCollector_put_TriggerDataCollectorSet(self: *const T, name: ?BSTR) HRESULT { return @as(*const IAlertDataCollector.VTable, @ptrCast(self.vtable)).put_TriggerDataCollectorSet(@as(*const IAlertDataCollector, @ptrCast(self)), name); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows6.0.6000' const IID_IApiTracingDataCollector_Value = Guid.initString("0383751a-098b-11d8-9414-505054503030"); pub const IID_IApiTracingDataCollector = &IID_IApiTracingDataCollector_Value; pub const IApiTracingDataCollector = extern struct { pub const VTable = extern struct { base: IDataCollector.VTable, // TODO: this function has a "SpecialName", should Zig do anything with this? get_LogApiNamesOnly: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IApiTracingDataCollector, logapinames: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IApiTracingDataCollector, logapinames: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_LogApiNamesOnly: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IApiTracingDataCollector, logapinames: i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IApiTracingDataCollector, logapinames: i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_LogApisRecursively: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IApiTracingDataCollector, logrecursively: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IApiTracingDataCollector, logrecursively: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_LogApisRecursively: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IApiTracingDataCollector, logrecursively: i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IApiTracingDataCollector, logrecursively: i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_ExePath: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IApiTracingDataCollector, exepath: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IApiTracingDataCollector, exepath: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_ExePath: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IApiTracingDataCollector, exepath: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IApiTracingDataCollector, exepath: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_LogFilePath: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IApiTracingDataCollector, logfilepath: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IApiTracingDataCollector, logfilepath: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_LogFilePath: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IApiTracingDataCollector, logfilepath: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IApiTracingDataCollector, logfilepath: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_IncludeModules: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IApiTracingDataCollector, includemodules: ?*?*SAFEARRAY, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IApiTracingDataCollector, includemodules: ?*?*SAFEARRAY, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_IncludeModules: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IApiTracingDataCollector, includemodules: ?*SAFEARRAY, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IApiTracingDataCollector, includemodules: ?*SAFEARRAY, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_IncludeApis: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IApiTracingDataCollector, includeapis: ?*?*SAFEARRAY, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IApiTracingDataCollector, includeapis: ?*?*SAFEARRAY, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_IncludeApis: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IApiTracingDataCollector, includeapis: ?*SAFEARRAY, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IApiTracingDataCollector, includeapis: ?*SAFEARRAY, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_ExcludeApis: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IApiTracingDataCollector, excludeapis: ?*?*SAFEARRAY, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IApiTracingDataCollector, excludeapis: ?*?*SAFEARRAY, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_ExcludeApis: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IApiTracingDataCollector, excludeapis: ?*SAFEARRAY, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IApiTracingDataCollector, excludeapis: ?*SAFEARRAY, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IDataCollector.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IApiTracingDataCollector_get_LogApiNamesOnly(self: *const T, logapinames: ?*i16) HRESULT { return @as(*const IApiTracingDataCollector.VTable, @ptrCast(self.vtable)).get_LogApiNamesOnly(@as(*const IApiTracingDataCollector, @ptrCast(self)), logapinames); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IApiTracingDataCollector_put_LogApiNamesOnly(self: *const T, logapinames: i16) HRESULT { return @as(*const IApiTracingDataCollector.VTable, @ptrCast(self.vtable)).put_LogApiNamesOnly(@as(*const IApiTracingDataCollector, @ptrCast(self)), logapinames); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IApiTracingDataCollector_get_LogApisRecursively(self: *const T, logrecursively: ?*i16) HRESULT { return @as(*const IApiTracingDataCollector.VTable, @ptrCast(self.vtable)).get_LogApisRecursively(@as(*const IApiTracingDataCollector, @ptrCast(self)), logrecursively); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IApiTracingDataCollector_put_LogApisRecursively(self: *const T, logrecursively: i16) HRESULT { return @as(*const IApiTracingDataCollector.VTable, @ptrCast(self.vtable)).put_LogApisRecursively(@as(*const IApiTracingDataCollector, @ptrCast(self)), logrecursively); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IApiTracingDataCollector_get_ExePath(self: *const T, exepath: ?*?BSTR) HRESULT { return @as(*const IApiTracingDataCollector.VTable, @ptrCast(self.vtable)).get_ExePath(@as(*const IApiTracingDataCollector, @ptrCast(self)), exepath); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IApiTracingDataCollector_put_ExePath(self: *const T, exepath: ?BSTR) HRESULT { return @as(*const IApiTracingDataCollector.VTable, @ptrCast(self.vtable)).put_ExePath(@as(*const IApiTracingDataCollector, @ptrCast(self)), exepath); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IApiTracingDataCollector_get_LogFilePath(self: *const T, logfilepath: ?*?BSTR) HRESULT { return @as(*const IApiTracingDataCollector.VTable, @ptrCast(self.vtable)).get_LogFilePath(@as(*const IApiTracingDataCollector, @ptrCast(self)), logfilepath); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IApiTracingDataCollector_put_LogFilePath(self: *const T, logfilepath: ?BSTR) HRESULT { return @as(*const IApiTracingDataCollector.VTable, @ptrCast(self.vtable)).put_LogFilePath(@as(*const IApiTracingDataCollector, @ptrCast(self)), logfilepath); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IApiTracingDataCollector_get_IncludeModules(self: *const T, includemodules: ?*?*SAFEARRAY) HRESULT { return @as(*const IApiTracingDataCollector.VTable, @ptrCast(self.vtable)).get_IncludeModules(@as(*const IApiTracingDataCollector, @ptrCast(self)), includemodules); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IApiTracingDataCollector_put_IncludeModules(self: *const T, includemodules: ?*SAFEARRAY) HRESULT { return @as(*const IApiTracingDataCollector.VTable, @ptrCast(self.vtable)).put_IncludeModules(@as(*const IApiTracingDataCollector, @ptrCast(self)), includemodules); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IApiTracingDataCollector_get_IncludeApis(self: *const T, includeapis: ?*?*SAFEARRAY) HRESULT { return @as(*const IApiTracingDataCollector.VTable, @ptrCast(self.vtable)).get_IncludeApis(@as(*const IApiTracingDataCollector, @ptrCast(self)), includeapis); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IApiTracingDataCollector_put_IncludeApis(self: *const T, includeapis: ?*SAFEARRAY) HRESULT { return @as(*const IApiTracingDataCollector.VTable, @ptrCast(self.vtable)).put_IncludeApis(@as(*const IApiTracingDataCollector, @ptrCast(self)), includeapis); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IApiTracingDataCollector_get_ExcludeApis(self: *const T, excludeapis: ?*?*SAFEARRAY) HRESULT { return @as(*const IApiTracingDataCollector.VTable, @ptrCast(self.vtable)).get_ExcludeApis(@as(*const IApiTracingDataCollector, @ptrCast(self)), excludeapis); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IApiTracingDataCollector_put_ExcludeApis(self: *const T, excludeapis: ?*SAFEARRAY) HRESULT { return @as(*const IApiTracingDataCollector.VTable, @ptrCast(self.vtable)).put_ExcludeApis(@as(*const IApiTracingDataCollector, @ptrCast(self)), excludeapis); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows6.0.6000' const IID_IDataCollectorCollection_Value = Guid.initString("03837502-098b-11d8-9414-505054503030"); pub const IID_IDataCollectorCollection = &IID_IDataCollectorCollection_Value; pub const IDataCollectorCollection = extern struct { pub const VTable = extern struct { base: IDispatch.VTable, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Count: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IDataCollectorCollection, retVal: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IDataCollectorCollection, retVal: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Item: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IDataCollectorCollection, index: VARIANT, collector: ?*?*IDataCollector, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IDataCollectorCollection, index: VARIANT, collector: ?*?*IDataCollector, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get__NewEnum: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IDataCollectorCollection, retVal: ?*?*IUnknown, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IDataCollectorCollection, retVal: ?*?*IUnknown, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Add: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDataCollectorCollection, collector: ?*IDataCollector, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDataCollectorCollection, collector: ?*IDataCollector, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Remove: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDataCollectorCollection, collector: VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDataCollectorCollection, collector: VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Clear: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDataCollectorCollection, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDataCollectorCollection, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, AddRange: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDataCollectorCollection, collectors: ?*IDataCollectorCollection, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDataCollectorCollection, collectors: ?*IDataCollectorCollection, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, CreateDataCollectorFromXml: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDataCollectorCollection, bstrXml: ?BSTR, pValidation: ?*?*IValueMap, pCollector: ?*?*IDataCollector, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDataCollectorCollection, bstrXml: ?BSTR, pValidation: ?*?*IValueMap, pCollector: ?*?*IDataCollector, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, CreateDataCollector: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDataCollectorCollection, Type: DataCollectorType, Collector: ?*?*IDataCollector, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDataCollectorCollection, Type: DataCollectorType, Collector: ?*?*IDataCollector, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IDispatch.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDataCollectorCollection_get_Count(self: *const T, retVal: ?*i32) HRESULT { return @as(*const IDataCollectorCollection.VTable, @ptrCast(self.vtable)).get_Count(@as(*const IDataCollectorCollection, @ptrCast(self)), retVal); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDataCollectorCollection_get_Item(self: *const T, index: VARIANT, collector: ?*?*IDataCollector) HRESULT { return @as(*const IDataCollectorCollection.VTable, @ptrCast(self.vtable)).get_Item(@as(*const IDataCollectorCollection, @ptrCast(self)), index, collector); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDataCollectorCollection_get__NewEnum(self: *const T, retVal: ?*?*IUnknown) HRESULT { return @as(*const IDataCollectorCollection.VTable, @ptrCast(self.vtable)).get__NewEnum(@as(*const IDataCollectorCollection, @ptrCast(self)), retVal); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDataCollectorCollection_Add(self: *const T, collector: ?*IDataCollector) HRESULT { return @as(*const IDataCollectorCollection.VTable, @ptrCast(self.vtable)).Add(@as(*const IDataCollectorCollection, @ptrCast(self)), collector); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDataCollectorCollection_Remove(self: *const T, collector: VARIANT) HRESULT { return @as(*const IDataCollectorCollection.VTable, @ptrCast(self.vtable)).Remove(@as(*const IDataCollectorCollection, @ptrCast(self)), collector); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDataCollectorCollection_Clear(self: *const T) HRESULT { return @as(*const IDataCollectorCollection.VTable, @ptrCast(self.vtable)).Clear(@as(*const IDataCollectorCollection, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDataCollectorCollection_AddRange(self: *const T, collectors: ?*IDataCollectorCollection) HRESULT { return @as(*const IDataCollectorCollection.VTable, @ptrCast(self.vtable)).AddRange(@as(*const IDataCollectorCollection, @ptrCast(self)), collectors); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDataCollectorCollection_CreateDataCollectorFromXml(self: *const T, bstrXml: ?BSTR, pValidation: ?*?*IValueMap, pCollector: ?*?*IDataCollector) HRESULT { return @as(*const IDataCollectorCollection.VTable, @ptrCast(self.vtable)).CreateDataCollectorFromXml(@as(*const IDataCollectorCollection, @ptrCast(self)), bstrXml, pValidation, pCollector); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDataCollectorCollection_CreateDataCollector(self: *const T, Type: DataCollectorType, Collector: ?*?*IDataCollector) HRESULT { return @as(*const IDataCollectorCollection.VTable, @ptrCast(self.vtable)).CreateDataCollector(@as(*const IDataCollectorCollection, @ptrCast(self)), Type, Collector); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows6.0.6000' const IID_IDataCollectorSetCollection_Value = Guid.initString("03837524-098b-11d8-9414-505054503030"); pub const IID_IDataCollectorSetCollection = &IID_IDataCollectorSetCollection_Value; pub const IDataCollectorSetCollection = extern struct { pub const VTable = extern struct { base: IDispatch.VTable, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Count: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IDataCollectorSetCollection, retVal: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IDataCollectorSetCollection, retVal: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Item: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IDataCollectorSetCollection, index: VARIANT, set: ?*?*IDataCollectorSet, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IDataCollectorSetCollection, index: VARIANT, set: ?*?*IDataCollectorSet, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get__NewEnum: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IDataCollectorSetCollection, retVal: ?*?*IUnknown, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IDataCollectorSetCollection, retVal: ?*?*IUnknown, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Add: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDataCollectorSetCollection, set: ?*IDataCollectorSet, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDataCollectorSetCollection, set: ?*IDataCollectorSet, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Remove: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDataCollectorSetCollection, set: VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDataCollectorSetCollection, set: VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Clear: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDataCollectorSetCollection, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDataCollectorSetCollection, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, AddRange: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDataCollectorSetCollection, sets: ?*IDataCollectorSetCollection, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDataCollectorSetCollection, sets: ?*IDataCollectorSetCollection, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetDataCollectorSets: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDataCollectorSetCollection, server: ?BSTR, filter: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDataCollectorSetCollection, server: ?BSTR, filter: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IDispatch.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDataCollectorSetCollection_get_Count(self: *const T, retVal: ?*i32) HRESULT { return @as(*const IDataCollectorSetCollection.VTable, @ptrCast(self.vtable)).get_Count(@as(*const IDataCollectorSetCollection, @ptrCast(self)), retVal); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDataCollectorSetCollection_get_Item(self: *const T, index: VARIANT, set: ?*?*IDataCollectorSet) HRESULT { return @as(*const IDataCollectorSetCollection.VTable, @ptrCast(self.vtable)).get_Item(@as(*const IDataCollectorSetCollection, @ptrCast(self)), index, set); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDataCollectorSetCollection_get__NewEnum(self: *const T, retVal: ?*?*IUnknown) HRESULT { return @as(*const IDataCollectorSetCollection.VTable, @ptrCast(self.vtable)).get__NewEnum(@as(*const IDataCollectorSetCollection, @ptrCast(self)), retVal); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDataCollectorSetCollection_Add(self: *const T, set: ?*IDataCollectorSet) HRESULT { return @as(*const IDataCollectorSetCollection.VTable, @ptrCast(self.vtable)).Add(@as(*const IDataCollectorSetCollection, @ptrCast(self)), set); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDataCollectorSetCollection_Remove(self: *const T, set: VARIANT) HRESULT { return @as(*const IDataCollectorSetCollection.VTable, @ptrCast(self.vtable)).Remove(@as(*const IDataCollectorSetCollection, @ptrCast(self)), set); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDataCollectorSetCollection_Clear(self: *const T) HRESULT { return @as(*const IDataCollectorSetCollection.VTable, @ptrCast(self.vtable)).Clear(@as(*const IDataCollectorSetCollection, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDataCollectorSetCollection_AddRange(self: *const T, sets: ?*IDataCollectorSetCollection) HRESULT { return @as(*const IDataCollectorSetCollection.VTable, @ptrCast(self.vtable)).AddRange(@as(*const IDataCollectorSetCollection, @ptrCast(self)), sets); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDataCollectorSetCollection_GetDataCollectorSets(self: *const T, server: ?BSTR, filter: ?BSTR) HRESULT { return @as(*const IDataCollectorSetCollection.VTable, @ptrCast(self.vtable)).GetDataCollectorSets(@as(*const IDataCollectorSetCollection, @ptrCast(self)), server, filter); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows6.0.6000' const IID_ITraceDataProvider_Value = Guid.initString("03837512-098b-11d8-9414-505054503030"); pub const IID_ITraceDataProvider = &IID_ITraceDataProvider_Value; pub const ITraceDataProvider = extern struct { pub const VTable = extern struct { base: IDispatch.VTable, // TODO: this function has a "SpecialName", should Zig do anything with this? get_DisplayName: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ITraceDataProvider, name: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ITraceDataProvider, name: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_DisplayName: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ITraceDataProvider, name: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ITraceDataProvider, name: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Guid: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ITraceDataProvider, guid: ?*Guid, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ITraceDataProvider, guid: ?*Guid, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_Guid: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ITraceDataProvider, guid: Guid, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ITraceDataProvider, guid: Guid, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Level: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ITraceDataProvider, ppLevel: ?*?*IValueMap, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ITraceDataProvider, ppLevel: ?*?*IValueMap, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_KeywordsAny: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ITraceDataProvider, ppKeywords: ?*?*IValueMap, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ITraceDataProvider, ppKeywords: ?*?*IValueMap, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_KeywordsAll: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ITraceDataProvider, ppKeywords: ?*?*IValueMap, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ITraceDataProvider, ppKeywords: ?*?*IValueMap, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Properties: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ITraceDataProvider, ppProperties: ?*?*IValueMap, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ITraceDataProvider, ppProperties: ?*?*IValueMap, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_FilterEnabled: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ITraceDataProvider, FilterEnabled: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ITraceDataProvider, FilterEnabled: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_FilterEnabled: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ITraceDataProvider, FilterEnabled: i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ITraceDataProvider, FilterEnabled: i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_FilterType: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ITraceDataProvider, pulType: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ITraceDataProvider, pulType: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_FilterType: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ITraceDataProvider, ulType: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ITraceDataProvider, ulType: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_FilterData: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ITraceDataProvider, ppData: ?*?*SAFEARRAY, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ITraceDataProvider, ppData: ?*?*SAFEARRAY, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_FilterData: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ITraceDataProvider, pData: ?*SAFEARRAY, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ITraceDataProvider, pData: ?*SAFEARRAY, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Query: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ITraceDataProvider, bstrName: ?BSTR, bstrServer: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ITraceDataProvider, bstrName: ?BSTR, bstrServer: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Resolve: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ITraceDataProvider, pFrom: ?*IDispatch, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ITraceDataProvider, pFrom: ?*IDispatch, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetSecurity: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ITraceDataProvider, Sddl: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ITraceDataProvider, Sddl: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetSecurity: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ITraceDataProvider, SecurityInfo: u32, Sddl: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ITraceDataProvider, SecurityInfo: u32, Sddl: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetRegisteredProcesses: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ITraceDataProvider, Processes: ?*?*IValueMap, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ITraceDataProvider, Processes: ?*?*IValueMap, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IDispatch.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITraceDataProvider_get_DisplayName(self: *const T, name: ?*?BSTR) HRESULT { return @as(*const ITraceDataProvider.VTable, @ptrCast(self.vtable)).get_DisplayName(@as(*const ITraceDataProvider, @ptrCast(self)), name); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITraceDataProvider_put_DisplayName(self: *const T, name: ?BSTR) HRESULT { return @as(*const ITraceDataProvider.VTable, @ptrCast(self.vtable)).put_DisplayName(@as(*const ITraceDataProvider, @ptrCast(self)), name); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITraceDataProvider_get_Guid(self: *const T, guid: ?*Guid) HRESULT { return @as(*const ITraceDataProvider.VTable, @ptrCast(self.vtable)).get_Guid(@as(*const ITraceDataProvider, @ptrCast(self)), guid); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITraceDataProvider_put_Guid(self: *const T, guid: Guid) HRESULT { return @as(*const ITraceDataProvider.VTable, @ptrCast(self.vtable)).put_Guid(@as(*const ITraceDataProvider, @ptrCast(self)), guid); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITraceDataProvider_get_Level(self: *const T, ppLevel: ?*?*IValueMap) HRESULT { return @as(*const ITraceDataProvider.VTable, @ptrCast(self.vtable)).get_Level(@as(*const ITraceDataProvider, @ptrCast(self)), ppLevel); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITraceDataProvider_get_KeywordsAny(self: *const T, ppKeywords: ?*?*IValueMap) HRESULT { return @as(*const ITraceDataProvider.VTable, @ptrCast(self.vtable)).get_KeywordsAny(@as(*const ITraceDataProvider, @ptrCast(self)), ppKeywords); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITraceDataProvider_get_KeywordsAll(self: *const T, ppKeywords: ?*?*IValueMap) HRESULT { return @as(*const ITraceDataProvider.VTable, @ptrCast(self.vtable)).get_KeywordsAll(@as(*const ITraceDataProvider, @ptrCast(self)), ppKeywords); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITraceDataProvider_get_Properties(self: *const T, ppProperties: ?*?*IValueMap) HRESULT { return @as(*const ITraceDataProvider.VTable, @ptrCast(self.vtable)).get_Properties(@as(*const ITraceDataProvider, @ptrCast(self)), ppProperties); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITraceDataProvider_get_FilterEnabled(self: *const T, FilterEnabled: ?*i16) HRESULT { return @as(*const ITraceDataProvider.VTable, @ptrCast(self.vtable)).get_FilterEnabled(@as(*const ITraceDataProvider, @ptrCast(self)), FilterEnabled); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITraceDataProvider_put_FilterEnabled(self: *const T, FilterEnabled: i16) HRESULT { return @as(*const ITraceDataProvider.VTable, @ptrCast(self.vtable)).put_FilterEnabled(@as(*const ITraceDataProvider, @ptrCast(self)), FilterEnabled); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITraceDataProvider_get_FilterType(self: *const T, pulType: ?*u32) HRESULT { return @as(*const ITraceDataProvider.VTable, @ptrCast(self.vtable)).get_FilterType(@as(*const ITraceDataProvider, @ptrCast(self)), pulType); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITraceDataProvider_put_FilterType(self: *const T, ulType: u32) HRESULT { return @as(*const ITraceDataProvider.VTable, @ptrCast(self.vtable)).put_FilterType(@as(*const ITraceDataProvider, @ptrCast(self)), ulType); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITraceDataProvider_get_FilterData(self: *const T, ppData: ?*?*SAFEARRAY) HRESULT { return @as(*const ITraceDataProvider.VTable, @ptrCast(self.vtable)).get_FilterData(@as(*const ITraceDataProvider, @ptrCast(self)), ppData); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITraceDataProvider_put_FilterData(self: *const T, pData: ?*SAFEARRAY) HRESULT { return @as(*const ITraceDataProvider.VTable, @ptrCast(self.vtable)).put_FilterData(@as(*const ITraceDataProvider, @ptrCast(self)), pData); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITraceDataProvider_Query(self: *const T, bstrName: ?BSTR, bstrServer: ?BSTR) HRESULT { return @as(*const ITraceDataProvider.VTable, @ptrCast(self.vtable)).Query(@as(*const ITraceDataProvider, @ptrCast(self)), bstrName, bstrServer); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITraceDataProvider_Resolve(self: *const T, pFrom: ?*IDispatch) HRESULT { return @as(*const ITraceDataProvider.VTable, @ptrCast(self.vtable)).Resolve(@as(*const ITraceDataProvider, @ptrCast(self)), pFrom); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITraceDataProvider_SetSecurity(self: *const T, Sddl: ?BSTR) HRESULT { return @as(*const ITraceDataProvider.VTable, @ptrCast(self.vtable)).SetSecurity(@as(*const ITraceDataProvider, @ptrCast(self)), Sddl); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITraceDataProvider_GetSecurity(self: *const T, SecurityInfo: u32, Sddl: ?*?BSTR) HRESULT { return @as(*const ITraceDataProvider.VTable, @ptrCast(self.vtable)).GetSecurity(@as(*const ITraceDataProvider, @ptrCast(self)), SecurityInfo, Sddl); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITraceDataProvider_GetRegisteredProcesses(self: *const T, Processes: ?*?*IValueMap) HRESULT { return @as(*const ITraceDataProvider.VTable, @ptrCast(self.vtable)).GetRegisteredProcesses(@as(*const ITraceDataProvider, @ptrCast(self)), Processes); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows6.0.6000' const IID_ITraceDataProviderCollection_Value = Guid.initString("03837510-098b-11d8-9414-505054503030"); pub const IID_ITraceDataProviderCollection = &IID_ITraceDataProviderCollection_Value; pub const ITraceDataProviderCollection = extern struct { pub const VTable = extern struct { base: IDispatch.VTable, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Count: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ITraceDataProviderCollection, retVal: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ITraceDataProviderCollection, retVal: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Item: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ITraceDataProviderCollection, index: VARIANT, ppProvider: ?*?*ITraceDataProvider, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ITraceDataProviderCollection, index: VARIANT, ppProvider: ?*?*ITraceDataProvider, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get__NewEnum: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ITraceDataProviderCollection, retVal: ?*?*IUnknown, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ITraceDataProviderCollection, retVal: ?*?*IUnknown, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Add: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ITraceDataProviderCollection, pProvider: ?*ITraceDataProvider, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ITraceDataProviderCollection, pProvider: ?*ITraceDataProvider, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Remove: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ITraceDataProviderCollection, vProvider: VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ITraceDataProviderCollection, vProvider: VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Clear: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ITraceDataProviderCollection, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ITraceDataProviderCollection, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, AddRange: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ITraceDataProviderCollection, providers: ?*ITraceDataProviderCollection, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ITraceDataProviderCollection, providers: ?*ITraceDataProviderCollection, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, CreateTraceDataProvider: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ITraceDataProviderCollection, Provider: ?*?*ITraceDataProvider, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ITraceDataProviderCollection, Provider: ?*?*ITraceDataProvider, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetTraceDataProviders: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ITraceDataProviderCollection, server: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ITraceDataProviderCollection, server: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetTraceDataProvidersByProcess: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ITraceDataProviderCollection, Server: ?BSTR, Pid: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ITraceDataProviderCollection, Server: ?BSTR, Pid: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IDispatch.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITraceDataProviderCollection_get_Count(self: *const T, retVal: ?*i32) HRESULT { return @as(*const ITraceDataProviderCollection.VTable, @ptrCast(self.vtable)).get_Count(@as(*const ITraceDataProviderCollection, @ptrCast(self)), retVal); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITraceDataProviderCollection_get_Item(self: *const T, index: VARIANT, ppProvider: ?*?*ITraceDataProvider) HRESULT { return @as(*const ITraceDataProviderCollection.VTable, @ptrCast(self.vtable)).get_Item(@as(*const ITraceDataProviderCollection, @ptrCast(self)), index, ppProvider); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITraceDataProviderCollection_get__NewEnum(self: *const T, retVal: ?*?*IUnknown) HRESULT { return @as(*const ITraceDataProviderCollection.VTable, @ptrCast(self.vtable)).get__NewEnum(@as(*const ITraceDataProviderCollection, @ptrCast(self)), retVal); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITraceDataProviderCollection_Add(self: *const T, pProvider: ?*ITraceDataProvider) HRESULT { return @as(*const ITraceDataProviderCollection.VTable, @ptrCast(self.vtable)).Add(@as(*const ITraceDataProviderCollection, @ptrCast(self)), pProvider); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITraceDataProviderCollection_Remove(self: *const T, vProvider: VARIANT) HRESULT { return @as(*const ITraceDataProviderCollection.VTable, @ptrCast(self.vtable)).Remove(@as(*const ITraceDataProviderCollection, @ptrCast(self)), vProvider); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITraceDataProviderCollection_Clear(self: *const T) HRESULT { return @as(*const ITraceDataProviderCollection.VTable, @ptrCast(self.vtable)).Clear(@as(*const ITraceDataProviderCollection, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITraceDataProviderCollection_AddRange(self: *const T, providers: ?*ITraceDataProviderCollection) HRESULT { return @as(*const ITraceDataProviderCollection.VTable, @ptrCast(self.vtable)).AddRange(@as(*const ITraceDataProviderCollection, @ptrCast(self)), providers); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITraceDataProviderCollection_CreateTraceDataProvider(self: *const T, Provider: ?*?*ITraceDataProvider) HRESULT { return @as(*const ITraceDataProviderCollection.VTable, @ptrCast(self.vtable)).CreateTraceDataProvider(@as(*const ITraceDataProviderCollection, @ptrCast(self)), Provider); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITraceDataProviderCollection_GetTraceDataProviders(self: *const T, server: ?BSTR) HRESULT { return @as(*const ITraceDataProviderCollection.VTable, @ptrCast(self.vtable)).GetTraceDataProviders(@as(*const ITraceDataProviderCollection, @ptrCast(self)), server); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITraceDataProviderCollection_GetTraceDataProvidersByProcess(self: *const T, Server: ?BSTR, Pid: u32) HRESULT { return @as(*const ITraceDataProviderCollection.VTable, @ptrCast(self.vtable)).GetTraceDataProvidersByProcess(@as(*const ITraceDataProviderCollection, @ptrCast(self)), Server, Pid); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows6.0.6000' const IID_ISchedule_Value = Guid.initString("0383753a-098b-11d8-9414-505054503030"); pub const IID_ISchedule = &IID_ISchedule_Value; pub const ISchedule = extern struct { pub const VTable = extern struct { base: IDispatch.VTable, // TODO: this function has a "SpecialName", should Zig do anything with this? get_StartDate: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ISchedule, start: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ISchedule, start: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_StartDate: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ISchedule, start: VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ISchedule, start: VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_EndDate: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ISchedule, end: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ISchedule, end: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_EndDate: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ISchedule, end: VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ISchedule, end: VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_StartTime: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ISchedule, start: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ISchedule, start: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_StartTime: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ISchedule, start: VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ISchedule, start: VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Days: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ISchedule, days: ?*WeekDays, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ISchedule, days: ?*WeekDays, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_Days: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ISchedule, days: WeekDays, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ISchedule, days: WeekDays, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IDispatch.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISchedule_get_StartDate(self: *const T, start: ?*VARIANT) HRESULT { return @as(*const ISchedule.VTable, @ptrCast(self.vtable)).get_StartDate(@as(*const ISchedule, @ptrCast(self)), start); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISchedule_put_StartDate(self: *const T, start: VARIANT) HRESULT { return @as(*const ISchedule.VTable, @ptrCast(self.vtable)).put_StartDate(@as(*const ISchedule, @ptrCast(self)), start); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISchedule_get_EndDate(self: *const T, end: ?*VARIANT) HRESULT { return @as(*const ISchedule.VTable, @ptrCast(self.vtable)).get_EndDate(@as(*const ISchedule, @ptrCast(self)), end); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISchedule_put_EndDate(self: *const T, end: VARIANT) HRESULT { return @as(*const ISchedule.VTable, @ptrCast(self.vtable)).put_EndDate(@as(*const ISchedule, @ptrCast(self)), end); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISchedule_get_StartTime(self: *const T, start: ?*VARIANT) HRESULT { return @as(*const ISchedule.VTable, @ptrCast(self.vtable)).get_StartTime(@as(*const ISchedule, @ptrCast(self)), start); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISchedule_put_StartTime(self: *const T, start: VARIANT) HRESULT { return @as(*const ISchedule.VTable, @ptrCast(self.vtable)).put_StartTime(@as(*const ISchedule, @ptrCast(self)), start); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISchedule_get_Days(self: *const T, days: ?*WeekDays) HRESULT { return @as(*const ISchedule.VTable, @ptrCast(self.vtable)).get_Days(@as(*const ISchedule, @ptrCast(self)), days); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISchedule_put_Days(self: *const T, days: WeekDays) HRESULT { return @as(*const ISchedule.VTable, @ptrCast(self.vtable)).put_Days(@as(*const ISchedule, @ptrCast(self)), days); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows6.0.6000' const IID_IScheduleCollection_Value = Guid.initString("0383753d-098b-11d8-9414-505054503030"); pub const IID_IScheduleCollection = &IID_IScheduleCollection_Value; pub const IScheduleCollection = extern struct { pub const VTable = extern struct { base: IDispatch.VTable, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Count: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IScheduleCollection, retVal: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IScheduleCollection, retVal: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Item: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IScheduleCollection, index: VARIANT, ppSchedule: ?*?*ISchedule, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IScheduleCollection, index: VARIANT, ppSchedule: ?*?*ISchedule, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get__NewEnum: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IScheduleCollection, ienum: ?*?*IUnknown, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IScheduleCollection, ienum: ?*?*IUnknown, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Add: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IScheduleCollection, pSchedule: ?*ISchedule, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IScheduleCollection, pSchedule: ?*ISchedule, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Remove: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IScheduleCollection, vSchedule: VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IScheduleCollection, vSchedule: VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Clear: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IScheduleCollection, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IScheduleCollection, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, AddRange: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IScheduleCollection, pSchedules: ?*IScheduleCollection, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IScheduleCollection, pSchedules: ?*IScheduleCollection, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, CreateSchedule: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IScheduleCollection, Schedule: ?*?*ISchedule, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IScheduleCollection, Schedule: ?*?*ISchedule, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IDispatch.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IScheduleCollection_get_Count(self: *const T, retVal: ?*i32) HRESULT { return @as(*const IScheduleCollection.VTable, @ptrCast(self.vtable)).get_Count(@as(*const IScheduleCollection, @ptrCast(self)), retVal); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IScheduleCollection_get_Item(self: *const T, index: VARIANT, ppSchedule: ?*?*ISchedule) HRESULT { return @as(*const IScheduleCollection.VTable, @ptrCast(self.vtable)).get_Item(@as(*const IScheduleCollection, @ptrCast(self)), index, ppSchedule); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IScheduleCollection_get__NewEnum(self: *const T, ienum: ?*?*IUnknown) HRESULT { return @as(*const IScheduleCollection.VTable, @ptrCast(self.vtable)).get__NewEnum(@as(*const IScheduleCollection, @ptrCast(self)), ienum); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IScheduleCollection_Add(self: *const T, pSchedule: ?*ISchedule) HRESULT { return @as(*const IScheduleCollection.VTable, @ptrCast(self.vtable)).Add(@as(*const IScheduleCollection, @ptrCast(self)), pSchedule); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IScheduleCollection_Remove(self: *const T, vSchedule: VARIANT) HRESULT { return @as(*const IScheduleCollection.VTable, @ptrCast(self.vtable)).Remove(@as(*const IScheduleCollection, @ptrCast(self)), vSchedule); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IScheduleCollection_Clear(self: *const T) HRESULT { return @as(*const IScheduleCollection.VTable, @ptrCast(self.vtable)).Clear(@as(*const IScheduleCollection, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IScheduleCollection_AddRange(self: *const T, pSchedules: ?*IScheduleCollection) HRESULT { return @as(*const IScheduleCollection.VTable, @ptrCast(self.vtable)).AddRange(@as(*const IScheduleCollection, @ptrCast(self)), pSchedules); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IScheduleCollection_CreateSchedule(self: *const T, Schedule: ?*?*ISchedule) HRESULT { return @as(*const IScheduleCollection.VTable, @ptrCast(self.vtable)).CreateSchedule(@as(*const IScheduleCollection, @ptrCast(self)), Schedule); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows6.0.6000' const IID_IValueMapItem_Value = Guid.initString("03837533-098b-11d8-9414-505054503030"); pub const IID_IValueMapItem = &IID_IValueMapItem_Value; pub const IValueMapItem = extern struct { pub const VTable = extern struct { base: IDispatch.VTable, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Description: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IValueMapItem, description: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IValueMapItem, description: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_Description: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IValueMapItem, description: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IValueMapItem, description: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Enabled: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IValueMapItem, enabled: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IValueMapItem, enabled: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_Enabled: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IValueMapItem, enabled: i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IValueMapItem, enabled: i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Key: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IValueMapItem, key: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IValueMapItem, key: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_Key: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IValueMapItem, key: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IValueMapItem, key: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Value: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IValueMapItem, Value: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IValueMapItem, Value: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_Value: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IValueMapItem, Value: VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IValueMapItem, Value: VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_ValueMapType: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IValueMapItem, type: ?*ValueMapType, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IValueMapItem, type: ?*ValueMapType, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_ValueMapType: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IValueMapItem, type: ValueMapType, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IValueMapItem, type: ValueMapType, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IDispatch.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IValueMapItem_get_Description(self: *const T, description: ?*?BSTR) HRESULT { return @as(*const IValueMapItem.VTable, @ptrCast(self.vtable)).get_Description(@as(*const IValueMapItem, @ptrCast(self)), description); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IValueMapItem_put_Description(self: *const T, description: ?BSTR) HRESULT { return @as(*const IValueMapItem.VTable, @ptrCast(self.vtable)).put_Description(@as(*const IValueMapItem, @ptrCast(self)), description); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IValueMapItem_get_Enabled(self: *const T, enabled: ?*i16) HRESULT { return @as(*const IValueMapItem.VTable, @ptrCast(self.vtable)).get_Enabled(@as(*const IValueMapItem, @ptrCast(self)), enabled); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IValueMapItem_put_Enabled(self: *const T, enabled: i16) HRESULT { return @as(*const IValueMapItem.VTable, @ptrCast(self.vtable)).put_Enabled(@as(*const IValueMapItem, @ptrCast(self)), enabled); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IValueMapItem_get_Key(self: *const T, key: ?*?BSTR) HRESULT { return @as(*const IValueMapItem.VTable, @ptrCast(self.vtable)).get_Key(@as(*const IValueMapItem, @ptrCast(self)), key); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IValueMapItem_put_Key(self: *const T, key: ?BSTR) HRESULT { return @as(*const IValueMapItem.VTable, @ptrCast(self.vtable)).put_Key(@as(*const IValueMapItem, @ptrCast(self)), key); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IValueMapItem_get_Value(self: *const T, Value: ?*VARIANT) HRESULT { return @as(*const IValueMapItem.VTable, @ptrCast(self.vtable)).get_Value(@as(*const IValueMapItem, @ptrCast(self)), Value); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IValueMapItem_put_Value(self: *const T, Value: VARIANT) HRESULT { return @as(*const IValueMapItem.VTable, @ptrCast(self.vtable)).put_Value(@as(*const IValueMapItem, @ptrCast(self)), Value); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IValueMapItem_get_ValueMapType(self: *const T, type_: ?*ValueMapType) HRESULT { return @as(*const IValueMapItem.VTable, @ptrCast(self.vtable)).get_ValueMapType(@as(*const IValueMapItem, @ptrCast(self)), type_); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IValueMapItem_put_ValueMapType(self: *const T, type_: ValueMapType) HRESULT { return @as(*const IValueMapItem.VTable, @ptrCast(self.vtable)).put_ValueMapType(@as(*const IValueMapItem, @ptrCast(self)), type_); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows6.0.6000' const IID_IValueMap_Value = Guid.initString("03837534-098b-11d8-9414-505054503030"); pub const IID_IValueMap = &IID_IValueMap_Value; pub const IValueMap = extern struct { pub const VTable = extern struct { base: IDispatch.VTable, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Count: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IValueMap, retVal: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IValueMap, retVal: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Item: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IValueMap, index: VARIANT, value: ?*?*IValueMapItem, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IValueMap, index: VARIANT, value: ?*?*IValueMapItem, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get__NewEnum: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IValueMap, retVal: ?*?*IUnknown, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IValueMap, retVal: ?*?*IUnknown, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Description: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IValueMap, description: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IValueMap, description: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_Description: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IValueMap, description: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IValueMap, description: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Value: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IValueMap, Value: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IValueMap, Value: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_Value: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IValueMap, Value: VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IValueMap, Value: VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_ValueMapType: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IValueMap, type: ?*ValueMapType, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IValueMap, type: ?*ValueMapType, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_ValueMapType: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IValueMap, type: ValueMapType, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IValueMap, type: ValueMapType, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Add: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IValueMap, value: VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IValueMap, value: VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Remove: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IValueMap, value: VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IValueMap, value: VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Clear: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IValueMap, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IValueMap, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, AddRange: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IValueMap, map: ?*IValueMap, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IValueMap, map: ?*IValueMap, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, CreateValueMapItem: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IValueMap, Item: ?*?*IValueMapItem, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IValueMap, Item: ?*?*IValueMapItem, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IDispatch.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IValueMap_get_Count(self: *const T, retVal: ?*i32) HRESULT { return @as(*const IValueMap.VTable, @ptrCast(self.vtable)).get_Count(@as(*const IValueMap, @ptrCast(self)), retVal); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IValueMap_get_Item(self: *const T, index: VARIANT, value: ?*?*IValueMapItem) HRESULT { return @as(*const IValueMap.VTable, @ptrCast(self.vtable)).get_Item(@as(*const IValueMap, @ptrCast(self)), index, value); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IValueMap_get__NewEnum(self: *const T, retVal: ?*?*IUnknown) HRESULT { return @as(*const IValueMap.VTable, @ptrCast(self.vtable)).get__NewEnum(@as(*const IValueMap, @ptrCast(self)), retVal); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IValueMap_get_Description(self: *const T, description: ?*?BSTR) HRESULT { return @as(*const IValueMap.VTable, @ptrCast(self.vtable)).get_Description(@as(*const IValueMap, @ptrCast(self)), description); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IValueMap_put_Description(self: *const T, description: ?BSTR) HRESULT { return @as(*const IValueMap.VTable, @ptrCast(self.vtable)).put_Description(@as(*const IValueMap, @ptrCast(self)), description); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IValueMap_get_Value(self: *const T, Value: ?*VARIANT) HRESULT { return @as(*const IValueMap.VTable, @ptrCast(self.vtable)).get_Value(@as(*const IValueMap, @ptrCast(self)), Value); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IValueMap_put_Value(self: *const T, Value: VARIANT) HRESULT { return @as(*const IValueMap.VTable, @ptrCast(self.vtable)).put_Value(@as(*const IValueMap, @ptrCast(self)), Value); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IValueMap_get_ValueMapType(self: *const T, type_: ?*ValueMapType) HRESULT { return @as(*const IValueMap.VTable, @ptrCast(self.vtable)).get_ValueMapType(@as(*const IValueMap, @ptrCast(self)), type_); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IValueMap_put_ValueMapType(self: *const T, type_: ValueMapType) HRESULT { return @as(*const IValueMap.VTable, @ptrCast(self.vtable)).put_ValueMapType(@as(*const IValueMap, @ptrCast(self)), type_); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IValueMap_Add(self: *const T, value: VARIANT) HRESULT { return @as(*const IValueMap.VTable, @ptrCast(self.vtable)).Add(@as(*const IValueMap, @ptrCast(self)), value); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IValueMap_Remove(self: *const T, value: VARIANT) HRESULT { return @as(*const IValueMap.VTable, @ptrCast(self.vtable)).Remove(@as(*const IValueMap, @ptrCast(self)), value); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IValueMap_Clear(self: *const T) HRESULT { return @as(*const IValueMap.VTable, @ptrCast(self.vtable)).Clear(@as(*const IValueMap, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IValueMap_AddRange(self: *const T, map: ?*IValueMap) HRESULT { return @as(*const IValueMap.VTable, @ptrCast(self.vtable)).AddRange(@as(*const IValueMap, @ptrCast(self)), map); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IValueMap_CreateValueMapItem(self: *const T, Item: ?*?*IValueMapItem) HRESULT { return @as(*const IValueMap.VTable, @ptrCast(self.vtable)).CreateValueMapItem(@as(*const IValueMap, @ptrCast(self)), Item); } }; } pub usingnamespace MethodMixin(@This()); }; pub const PERF_COUNTERSET_INFO = extern struct { CounterSetGuid: Guid, ProviderGuid: Guid, NumCounters: u32, InstanceType: u32, }; pub const PERF_COUNTER_INFO = extern struct { CounterId: u32, Type: u32, Attrib: u64, Size: u32, DetailLevel: u32, Scale: i32, Offset: u32, }; pub const PERF_COUNTERSET_INSTANCE = extern struct { CounterSetGuid: Guid, dwSize: u32, InstanceId: u32, InstanceNameOffset: u32, InstanceNameSize: u32, }; pub const PERF_COUNTER_IDENTITY = extern struct { CounterSetGuid: Guid, BufferSize: u32, CounterId: u32, InstanceId: u32, MachineOffset: u32, NameOffset: u32, Reserved: u32, }; pub const PERFLIBREQUEST = switch (@import("builtin").zig_backend) { .stage1 => fn ( RequestCode: u32, Buffer: ?*anyopaque, BufferSize: u32, ) callconv(@import("std").os.windows.WINAPI) u32, else => *const fn ( RequestCode: u32, Buffer: ?*anyopaque, BufferSize: u32, ) callconv(@import("std").os.windows.WINAPI) u32, }; pub const PERF_MEM_ALLOC = switch (@import("builtin").zig_backend) { .stage1 => fn ( AllocSize: usize, pContext: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) ?*anyopaque, else => *const fn ( AllocSize: usize, pContext: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) ?*anyopaque, }; pub const PERF_MEM_FREE = switch (@import("builtin").zig_backend) { .stage1 => fn ( pBuffer: ?*anyopaque, pContext: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) void, else => *const fn ( pBuffer: ?*anyopaque, pContext: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) void, }; pub const PERF_PROVIDER_CONTEXT = extern struct { ContextSize: u32, Reserved: u32, ControlCallback: ?PERFLIBREQUEST, MemAllocRoutine: ?PERF_MEM_ALLOC, MemFreeRoutine: ?PERF_MEM_FREE, pMemContext: ?*anyopaque, }; pub const PERF_INSTANCE_HEADER = extern struct { Size: u32, InstanceId: u32, }; pub const PerfRegInfoType = enum(i32) { COUNTERSET_STRUCT = 1, COUNTER_STRUCT = 2, COUNTERSET_NAME_STRING = 3, COUNTERSET_HELP_STRING = 4, COUNTER_NAME_STRINGS = 5, COUNTER_HELP_STRINGS = 6, PROVIDER_NAME = 7, PROVIDER_GUID = 8, COUNTERSET_ENGLISH_NAME = 9, COUNTER_ENGLISH_NAMES = 10, }; pub const PERF_REG_COUNTERSET_STRUCT = PerfRegInfoType.COUNTERSET_STRUCT; pub const PERF_REG_COUNTER_STRUCT = PerfRegInfoType.COUNTER_STRUCT; pub const PERF_REG_COUNTERSET_NAME_STRING = PerfRegInfoType.COUNTERSET_NAME_STRING; pub const PERF_REG_COUNTERSET_HELP_STRING = PerfRegInfoType.COUNTERSET_HELP_STRING; pub const PERF_REG_COUNTER_NAME_STRINGS = PerfRegInfoType.COUNTER_NAME_STRINGS; pub const PERF_REG_COUNTER_HELP_STRINGS = PerfRegInfoType.COUNTER_HELP_STRINGS; pub const PERF_REG_PROVIDER_NAME = PerfRegInfoType.PROVIDER_NAME; pub const PERF_REG_PROVIDER_GUID = PerfRegInfoType.PROVIDER_GUID; pub const PERF_REG_COUNTERSET_ENGLISH_NAME = PerfRegInfoType.COUNTERSET_ENGLISH_NAME; pub const PERF_REG_COUNTER_ENGLISH_NAMES = PerfRegInfoType.COUNTER_ENGLISH_NAMES; pub const PERF_COUNTERSET_REG_INFO = extern struct { CounterSetGuid: Guid, CounterSetType: u32, DetailLevel: u32, NumCounters: u32, InstanceType: u32, }; pub const PERF_COUNTER_REG_INFO = extern struct { CounterId: u32, Type: u32, Attrib: u64, DetailLevel: u32, DefaultScale: i32, BaseCounterId: u32, PerfTimeId: u32, PerfFreqId: u32, MultiId: u32, AggregateFunc: PERF_COUNTER_AGGREGATE_FUNC, Reserved: u32, }; pub const PERF_STRING_BUFFER_HEADER = extern struct { dwSize: u32, dwCounters: u32, }; pub const PERF_STRING_COUNTER_HEADER = extern struct { dwCounterId: u32, dwOffset: u32, }; pub const PERF_COUNTER_IDENTIFIER = extern struct { CounterSetGuid: Guid, Status: u32, Size: u32, CounterId: u32, InstanceId: u32, Index: u32, Reserved: u32, }; pub const PERF_DATA_HEADER = extern struct { dwTotalSize: u32, dwNumCounters: u32, PerfTimeStamp: i64, PerfTime100NSec: i64, PerfFreq: i64, SystemTime: SYSTEMTIME, }; pub const PerfCounterDataType = enum(i32) { ERROR_RETURN = 0, SINGLE_COUNTER = 1, MULTIPLE_COUNTERS = 2, MULTIPLE_INSTANCES = 4, COUNTERSET = 6, }; pub const PERF_ERROR_RETURN = PerfCounterDataType.ERROR_RETURN; pub const PERF_SINGLE_COUNTER = PerfCounterDataType.SINGLE_COUNTER; pub const PERF_MULTIPLE_COUNTERS = PerfCounterDataType.MULTIPLE_COUNTERS; pub const PERF_MULTIPLE_INSTANCES = PerfCounterDataType.MULTIPLE_INSTANCES; pub const PERF_COUNTERSET = PerfCounterDataType.COUNTERSET; pub const PERF_COUNTER_HEADER = extern struct { dwStatus: u32, dwType: PerfCounterDataType, dwSize: u32, Reserved: u32, }; pub const PERF_MULTI_INSTANCES = extern struct { dwTotalSize: u32, dwInstances: u32, }; pub const PERF_MULTI_COUNTERS = extern struct { dwSize: u32, dwCounters: u32, }; pub const PERF_COUNTER_DATA = extern struct { dwDataSize: u32, dwSize: u32, }; pub const PERF_DATA_BLOCK = extern struct { Signature: [4]u16, LittleEndian: u32, Version: u32, Revision: u32, TotalByteLength: u32, HeaderLength: u32, NumObjectTypes: u32, DefaultObject: i32, SystemTime: SYSTEMTIME, PerfTime: LARGE_INTEGER, PerfFreq: LARGE_INTEGER, PerfTime100nSec: LARGE_INTEGER, SystemNameLength: u32, SystemNameOffset: u32, }; pub const PERF_INSTANCE_DEFINITION = extern struct { ByteLength: u32, ParentObjectTitleIndex: u32, ParentObjectInstance: u32, UniqueID: i32, NameOffset: u32, NameLength: u32, }; pub const PERF_COUNTER_BLOCK = extern struct { ByteLength: u32, }; pub const PM_OPEN_PROC = switch (@import("builtin").zig_backend) { .stage1 => fn ( pContext: ?PWSTR, ) callconv(@import("std").os.windows.WINAPI) u32, else => *const fn ( pContext: ?PWSTR, ) callconv(@import("std").os.windows.WINAPI) u32, }; pub const PM_COLLECT_PROC = switch (@import("builtin").zig_backend) { .stage1 => fn ( pValueName: ?PWSTR, ppData: ?*?*anyopaque, pcbTotalBytes: ?*u32, pNumObjectTypes: ?*u32, ) callconv(@import("std").os.windows.WINAPI) u32, else => *const fn ( pValueName: ?PWSTR, ppData: ?*?*anyopaque, pcbTotalBytes: ?*u32, pNumObjectTypes: ?*u32, ) callconv(@import("std").os.windows.WINAPI) u32, }; pub const PM_CLOSE_PROC = switch (@import("builtin").zig_backend) { .stage1 => fn () callconv(@import("std").os.windows.WINAPI) u32, else => *const fn () callconv(@import("std").os.windows.WINAPI) u32, }; pub const PDH_RAW_COUNTER = extern struct { CStatus: u32, TimeStamp: FILETIME, FirstValue: i64, SecondValue: i64, MultiCount: u32, }; pub const PDH_RAW_COUNTER_ITEM_A = extern struct { szName: ?PSTR, RawValue: PDH_RAW_COUNTER, }; pub const PDH_RAW_COUNTER_ITEM_W = extern struct { szName: ?PWSTR, RawValue: PDH_RAW_COUNTER, }; pub const PDH_FMT_COUNTERVALUE = extern struct { CStatus: u32, Anonymous: extern union { longValue: i32, doubleValue: f64, largeValue: i64, AnsiStringValue: ?[*:0]const u8, WideStringValue: ?[*:0]const u16, }, }; pub const PDH_FMT_COUNTERVALUE_ITEM_A = extern struct { szName: ?PSTR, FmtValue: PDH_FMT_COUNTERVALUE, }; pub const PDH_FMT_COUNTERVALUE_ITEM_W = extern struct { szName: ?PWSTR, FmtValue: PDH_FMT_COUNTERVALUE, }; pub const PDH_STATISTICS = extern struct { dwFormat: u32, count: u32, min: PDH_FMT_COUNTERVALUE, max: PDH_FMT_COUNTERVALUE, mean: PDH_FMT_COUNTERVALUE, }; pub const PDH_COUNTER_PATH_ELEMENTS_A = extern struct { szMachineName: ?PSTR, szObjectName: ?PSTR, szInstanceName: ?PSTR, szParentInstance: ?PSTR, dwInstanceIndex: u32, szCounterName: ?PSTR, }; pub const PDH_COUNTER_PATH_ELEMENTS_W = extern struct { szMachineName: ?PWSTR, szObjectName: ?PWSTR, szInstanceName: ?PWSTR, szParentInstance: ?PWSTR, dwInstanceIndex: u32, szCounterName: ?PWSTR, }; pub const PDH_DATA_ITEM_PATH_ELEMENTS_A = extern struct { szMachineName: ?PSTR, ObjectGUID: Guid, dwItemId: u32, szInstanceName: ?PSTR, }; pub const PDH_DATA_ITEM_PATH_ELEMENTS_W = extern struct { szMachineName: ?PWSTR, ObjectGUID: Guid, dwItemId: u32, szInstanceName: ?PWSTR, }; pub const PDH_COUNTER_INFO_A = extern struct { dwLength: u32, dwType: u32, CVersion: u32, CStatus: u32, lScale: i32, lDefaultScale: i32, dwUserData: usize, dwQueryUserData: usize, szFullPath: ?PSTR, Anonymous: extern union { DataItemPath: PDH_DATA_ITEM_PATH_ELEMENTS_A, CounterPath: PDH_COUNTER_PATH_ELEMENTS_A, Anonymous: extern struct { szMachineName: ?PSTR, szObjectName: ?PSTR, szInstanceName: ?PSTR, szParentInstance: ?PSTR, dwInstanceIndex: u32, szCounterName: ?PSTR, }, }, szExplainText: ?PSTR, DataBuffer: [1]u32, }; pub const PDH_COUNTER_INFO_W = extern struct { dwLength: u32, dwType: u32, CVersion: u32, CStatus: u32, lScale: i32, lDefaultScale: i32, dwUserData: usize, dwQueryUserData: usize, szFullPath: ?PWSTR, Anonymous: extern union { DataItemPath: PDH_DATA_ITEM_PATH_ELEMENTS_W, CounterPath: PDH_COUNTER_PATH_ELEMENTS_W, Anonymous: extern struct { szMachineName: ?PWSTR, szObjectName: ?PWSTR, szInstanceName: ?PWSTR, szParentInstance: ?PWSTR, dwInstanceIndex: u32, szCounterName: ?PWSTR, }, }, szExplainText: ?PWSTR, DataBuffer: [1]u32, }; pub const PDH_TIME_INFO = extern struct { StartTime: i64, EndTime: i64, SampleCount: u32, }; pub const PDH_RAW_LOG_RECORD = extern struct { dwStructureSize: u32, dwRecordType: PDH_LOG_TYPE, dwItems: u32, RawBytes: [1]u8, }; pub const PDH_LOG_SERVICE_QUERY_INFO_A = extern struct { dwSize: u32, dwFlags: u32, dwLogQuota: u32, szLogFileCaption: ?PSTR, szDefaultDir: ?PSTR, szBaseFileName: ?PSTR, dwFileType: u32, dwReserved: u32, Anonymous: extern union { Anonymous1: extern struct { PdlAutoNameInterval: u32, PdlAutoNameUnits: u32, PdlCommandFilename: ?PSTR, PdlCounterList: ?PSTR, PdlAutoNameFormat: u32, PdlSampleInterval: u32, PdlLogStartTime: FILETIME, PdlLogEndTime: FILETIME, }, Anonymous2: extern struct { TlNumberOfBuffers: u32, TlMinimumBuffers: u32, TlMaximumBuffers: u32, TlFreeBuffers: u32, TlBufferSize: u32, TlEventsLost: u32, TlLoggerThreadId: u32, TlBuffersWritten: u32, TlLogHandle: u32, TlLogFileName: ?PSTR, }, }, }; pub const PDH_LOG_SERVICE_QUERY_INFO_W = extern struct { dwSize: u32, dwFlags: u32, dwLogQuota: u32, szLogFileCaption: ?PWSTR, szDefaultDir: ?PWSTR, szBaseFileName: ?PWSTR, dwFileType: u32, dwReserved: u32, Anonymous: extern union { Anonymous1: extern struct { PdlAutoNameInterval: u32, PdlAutoNameUnits: u32, PdlCommandFilename: ?PWSTR, PdlCounterList: ?PWSTR, PdlAutoNameFormat: u32, PdlSampleInterval: u32, PdlLogStartTime: FILETIME, PdlLogEndTime: FILETIME, }, Anonymous2: extern struct { TlNumberOfBuffers: u32, TlMinimumBuffers: u32, TlMaximumBuffers: u32, TlFreeBuffers: u32, TlBufferSize: u32, TlEventsLost: u32, TlLoggerThreadId: u32, TlBuffersWritten: u32, TlLogHandle: u32, TlLogFileName: ?PWSTR, }, }, }; pub const CounterPathCallBack = switch (@import("builtin").zig_backend) { .stage1 => fn ( param0: usize, ) callconv(@import("std").os.windows.WINAPI) i32, else => *const fn ( param0: usize, ) callconv(@import("std").os.windows.WINAPI) i32, }; pub const PDH_BROWSE_DLG_CONFIG_HW = extern struct { _bitfield: u32, hWndOwner: ?HWND, hDataSource: isize, szReturnPathBuffer: ?PWSTR, cchReturnPathLength: u32, pCallBack: ?CounterPathCallBack, dwCallBackArg: usize, CallBackStatus: i32, dwDefaultDetailLevel: PERF_DETAIL, szDialogBoxCaption: ?PWSTR, }; pub const PDH_BROWSE_DLG_CONFIG_HA = extern struct { _bitfield: u32, hWndOwner: ?HWND, hDataSource: isize, szReturnPathBuffer: ?PSTR, cchReturnPathLength: u32, pCallBack: ?CounterPathCallBack, dwCallBackArg: usize, CallBackStatus: i32, dwDefaultDetailLevel: PERF_DETAIL, szDialogBoxCaption: ?PSTR, }; pub const PDH_BROWSE_DLG_CONFIG_W = extern struct { _bitfield: u32, hWndOwner: ?HWND, szDataSource: ?PWSTR, szReturnPathBuffer: ?PWSTR, cchReturnPathLength: u32, pCallBack: ?CounterPathCallBack, dwCallBackArg: usize, CallBackStatus: i32, dwDefaultDetailLevel: PERF_DETAIL, szDialogBoxCaption: ?PWSTR, }; pub const PDH_BROWSE_DLG_CONFIG_A = extern struct { _bitfield: u32, hWndOwner: ?HWND, szDataSource: ?PSTR, szReturnPathBuffer: ?PSTR, cchReturnPathLength: u32, pCallBack: ?CounterPathCallBack, dwCallBackArg: usize, CallBackStatus: i32, dwDefaultDetailLevel: PERF_DETAIL, szDialogBoxCaption: ?PSTR, }; const CLSID_SystemMonitor_Value = Guid.initString("c4d2d8e0-d1dd-11ce-940f-008029004347"); pub const CLSID_SystemMonitor = &CLSID_SystemMonitor_Value; const CLSID_CounterItem_Value = Guid.initString("c4d2d8e0-d1dd-11ce-940f-008029004348"); pub const CLSID_CounterItem = &CLSID_CounterItem_Value; const CLSID_Counters_Value = Guid.initString("b2b066d2-2aac-11cf-942f-008029004347"); pub const CLSID_Counters = &CLSID_Counters_Value; const CLSID_LogFileItem_Value = Guid.initString("16ec5be8-df93-4237-94e4-9ee918111d71"); pub const CLSID_LogFileItem = &CLSID_LogFileItem_Value; const CLSID_LogFiles_Value = Guid.initString("2735d9fd-f6b9-4f19-a5d9-e2d068584bc5"); pub const CLSID_LogFiles = &CLSID_LogFiles_Value; const CLSID_CounterItem2_Value = Guid.initString("43196c62-c31f-4ce3-a02e-79efe0f6a525"); pub const CLSID_CounterItem2 = &CLSID_CounterItem2_Value; const CLSID_SystemMonitor2_Value = Guid.initString("7f30578c-5f38-4612-acfe-6ed04c7b7af8"); pub const CLSID_SystemMonitor2 = &CLSID_SystemMonitor2_Value; const CLSID_AppearPropPage_Value = Guid.initString("e49741e9-93a8-4ab1-8e96-bf4482282e9c"); pub const CLSID_AppearPropPage = &CLSID_AppearPropPage_Value; const CLSID_GeneralPropPage_Value = Guid.initString("c3e5d3d2-1a03-11cf-942d-008029004347"); pub const CLSID_GeneralPropPage = &CLSID_GeneralPropPage_Value; const CLSID_GraphPropPage_Value = Guid.initString("c3e5d3d3-1a03-11cf-942d-008029004347"); pub const CLSID_GraphPropPage = &CLSID_GraphPropPage_Value; const CLSID_SourcePropPage_Value = Guid.initString("0cf32aa1-7571-11d0-93c4-00aa00a3ddea"); pub const CLSID_SourcePropPage = &CLSID_SourcePropPage_Value; const CLSID_CounterPropPage_Value = Guid.initString("cf948561-ede8-11ce-941e-008029004347"); pub const CLSID_CounterPropPage = &CLSID_CounterPropPage_Value; pub const DisplayTypeConstants = enum(i32) { LineGraph = 1, Histogram = 2, Report = 3, ChartArea = 4, ChartStackedArea = 5, }; pub const sysmonLineGraph = DisplayTypeConstants.LineGraph; pub const sysmonHistogram = DisplayTypeConstants.Histogram; pub const sysmonReport = DisplayTypeConstants.Report; pub const sysmonChartArea = DisplayTypeConstants.ChartArea; pub const sysmonChartStackedArea = DisplayTypeConstants.ChartStackedArea; pub const ReportValueTypeConstants = enum(i32) { DefaultValue = 0, CurrentValue = 1, Average = 2, Minimum = 3, Maximum = 4, }; pub const sysmonDefaultValue = ReportValueTypeConstants.DefaultValue; pub const sysmonCurrentValue = ReportValueTypeConstants.CurrentValue; pub const sysmonAverage = ReportValueTypeConstants.Average; pub const sysmonMinimum = ReportValueTypeConstants.Minimum; pub const sysmonMaximum = ReportValueTypeConstants.Maximum; pub const DataSourceTypeConstants = enum(i32) { NullDataSource = -1, CurrentActivity = 1, LogFiles = 2, SqlLog = 3, }; pub const sysmonNullDataSource = DataSourceTypeConstants.NullDataSource; pub const sysmonCurrentActivity = DataSourceTypeConstants.CurrentActivity; pub const sysmonLogFiles = DataSourceTypeConstants.LogFiles; pub const sysmonSqlLog = DataSourceTypeConstants.SqlLog; pub const SysmonFileType = enum(i32) { Html = 1, Report = 2, Csv = 3, Tsv = 4, Blg = 5, RetiredBlg = 6, Gif = 7, }; pub const sysmonFileHtml = SysmonFileType.Html; pub const sysmonFileReport = SysmonFileType.Report; pub const sysmonFileCsv = SysmonFileType.Csv; pub const sysmonFileTsv = SysmonFileType.Tsv; pub const sysmonFileBlg = SysmonFileType.Blg; pub const sysmonFileRetiredBlg = SysmonFileType.RetiredBlg; pub const sysmonFileGif = SysmonFileType.Gif; pub const SysmonDataType = enum(i32) { Avg = 1, Min = 2, Max = 3, Time = 4, Count = 5, }; pub const sysmonDataAvg = SysmonDataType.Avg; pub const sysmonDataMin = SysmonDataType.Min; pub const sysmonDataMax = SysmonDataType.Max; pub const sysmonDataTime = SysmonDataType.Time; pub const sysmonDataCount = SysmonDataType.Count; pub const SysmonBatchReason = enum(i32) { None = 0, AddFiles = 1, AddCounters = 2, AddFilesAutoCounters = 3, }; pub const sysmonBatchNone = SysmonBatchReason.None; pub const sysmonBatchAddFiles = SysmonBatchReason.AddFiles; pub const sysmonBatchAddCounters = SysmonBatchReason.AddCounters; pub const sysmonBatchAddFilesAutoCounters = SysmonBatchReason.AddFilesAutoCounters; const IID_ICounterItem_Value = Guid.initString("771a9520-ee28-11ce-941e-008029004347"); pub const IID_ICounterItem = &IID_ICounterItem_Value; pub const ICounterItem = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Value: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ICounterItem, pdblValue: ?*f64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ICounterItem, pdblValue: ?*f64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_Color: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ICounterItem, Color: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ICounterItem, Color: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Color: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ICounterItem, pColor: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ICounterItem, pColor: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_Width: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ICounterItem, iWidth: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ICounterItem, iWidth: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Width: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ICounterItem, piValue: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ICounterItem, piValue: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_LineStyle: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ICounterItem, iLineStyle: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ICounterItem, iLineStyle: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_LineStyle: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ICounterItem, piValue: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ICounterItem, piValue: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_ScaleFactor: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ICounterItem, iScale: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ICounterItem, iScale: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_ScaleFactor: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ICounterItem, piValue: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ICounterItem, piValue: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Path: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ICounterItem, pstrValue: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ICounterItem, pstrValue: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetValue: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ICounterItem, Value: ?*f64, Status: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ICounterItem, Value: ?*f64, Status: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetStatistics: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ICounterItem, Max: ?*f64, Min: ?*f64, Avg: ?*f64, Status: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ICounterItem, Max: ?*f64, Min: ?*f64, Avg: ?*f64, Status: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ICounterItem_get_Value(self: *const T, pdblValue: ?*f64) HRESULT { return @as(*const ICounterItem.VTable, @ptrCast(self.vtable)).get_Value(@as(*const ICounterItem, @ptrCast(self)), pdblValue); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ICounterItem_put_Color(self: *const T, Color: u32) HRESULT { return @as(*const ICounterItem.VTable, @ptrCast(self.vtable)).put_Color(@as(*const ICounterItem, @ptrCast(self)), Color); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ICounterItem_get_Color(self: *const T, pColor: ?*u32) HRESULT { return @as(*const ICounterItem.VTable, @ptrCast(self.vtable)).get_Color(@as(*const ICounterItem, @ptrCast(self)), pColor); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ICounterItem_put_Width(self: *const T, iWidth: i32) HRESULT { return @as(*const ICounterItem.VTable, @ptrCast(self.vtable)).put_Width(@as(*const ICounterItem, @ptrCast(self)), iWidth); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ICounterItem_get_Width(self: *const T, piValue: ?*i32) HRESULT { return @as(*const ICounterItem.VTable, @ptrCast(self.vtable)).get_Width(@as(*const ICounterItem, @ptrCast(self)), piValue); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ICounterItem_put_LineStyle(self: *const T, iLineStyle: i32) HRESULT { return @as(*const ICounterItem.VTable, @ptrCast(self.vtable)).put_LineStyle(@as(*const ICounterItem, @ptrCast(self)), iLineStyle); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ICounterItem_get_LineStyle(self: *const T, piValue: ?*i32) HRESULT { return @as(*const ICounterItem.VTable, @ptrCast(self.vtable)).get_LineStyle(@as(*const ICounterItem, @ptrCast(self)), piValue); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ICounterItem_put_ScaleFactor(self: *const T, iScale: i32) HRESULT { return @as(*const ICounterItem.VTable, @ptrCast(self.vtable)).put_ScaleFactor(@as(*const ICounterItem, @ptrCast(self)), iScale); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ICounterItem_get_ScaleFactor(self: *const T, piValue: ?*i32) HRESULT { return @as(*const ICounterItem.VTable, @ptrCast(self.vtable)).get_ScaleFactor(@as(*const ICounterItem, @ptrCast(self)), piValue); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ICounterItem_get_Path(self: *const T, pstrValue: ?*?BSTR) HRESULT { return @as(*const ICounterItem.VTable, @ptrCast(self.vtable)).get_Path(@as(*const ICounterItem, @ptrCast(self)), pstrValue); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ICounterItem_GetValue(self: *const T, Value: ?*f64, Status: ?*i32) HRESULT { return @as(*const ICounterItem.VTable, @ptrCast(self.vtable)).GetValue(@as(*const ICounterItem, @ptrCast(self)), Value, Status); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ICounterItem_GetStatistics(self: *const T, Max: ?*f64, Min: ?*f64, Avg: ?*f64, Status: ?*i32) HRESULT { return @as(*const ICounterItem.VTable, @ptrCast(self.vtable)).GetStatistics(@as(*const ICounterItem, @ptrCast(self)), Max, Min, Avg, Status); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_ICounterItem2_Value = Guid.initString("eefcd4e1-ea1c-4435-b7f4-e341ba03b4f9"); pub const IID_ICounterItem2 = &IID_ICounterItem2_Value; pub const ICounterItem2 = extern struct { pub const VTable = extern struct { base: ICounterItem.VTable, // TODO: this function has a "SpecialName", should Zig do anything with this? put_Selected: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ICounterItem2, bState: i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ICounterItem2, bState: i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Selected: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ICounterItem2, pbState: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ICounterItem2, pbState: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_Visible: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ICounterItem2, bState: i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ICounterItem2, bState: i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Visible: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ICounterItem2, pbState: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ICounterItem2, pbState: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetDataAt: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ICounterItem2, iIndex: i32, iWhich: SysmonDataType, pVariant: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ICounterItem2, iIndex: i32, iWhich: SysmonDataType, pVariant: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace ICounterItem.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ICounterItem2_put_Selected(self: *const T, bState: i16) HRESULT { return @as(*const ICounterItem2.VTable, @ptrCast(self.vtable)).put_Selected(@as(*const ICounterItem2, @ptrCast(self)), bState); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ICounterItem2_get_Selected(self: *const T, pbState: ?*i16) HRESULT { return @as(*const ICounterItem2.VTable, @ptrCast(self.vtable)).get_Selected(@as(*const ICounterItem2, @ptrCast(self)), pbState); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ICounterItem2_put_Visible(self: *const T, bState: i16) HRESULT { return @as(*const ICounterItem2.VTable, @ptrCast(self.vtable)).put_Visible(@as(*const ICounterItem2, @ptrCast(self)), bState); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ICounterItem2_get_Visible(self: *const T, pbState: ?*i16) HRESULT { return @as(*const ICounterItem2.VTable, @ptrCast(self.vtable)).get_Visible(@as(*const ICounterItem2, @ptrCast(self)), pbState); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ICounterItem2_GetDataAt(self: *const T, iIndex: i32, iWhich: SysmonDataType, pVariant: ?*VARIANT) HRESULT { return @as(*const ICounterItem2.VTable, @ptrCast(self.vtable)).GetDataAt(@as(*const ICounterItem2, @ptrCast(self)), iIndex, iWhich, pVariant); } }; } pub usingnamespace MethodMixin(@This()); }; const IID__ICounterItemUnion_Value = Guid.initString("de1a6b74-9182-4c41-8e2c-24c2cd30ee83"); pub const IID__ICounterItemUnion = &IID__ICounterItemUnion_Value; pub const _ICounterItemUnion = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Value: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const _ICounterItemUnion, pdblValue: ?*f64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const _ICounterItemUnion, pdblValue: ?*f64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_Color: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const _ICounterItemUnion, Color: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const _ICounterItemUnion, Color: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Color: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const _ICounterItemUnion, pColor: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const _ICounterItemUnion, pColor: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_Width: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const _ICounterItemUnion, iWidth: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const _ICounterItemUnion, iWidth: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Width: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const _ICounterItemUnion, piValue: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const _ICounterItemUnion, piValue: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_LineStyle: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const _ICounterItemUnion, iLineStyle: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const _ICounterItemUnion, iLineStyle: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_LineStyle: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const _ICounterItemUnion, piValue: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const _ICounterItemUnion, piValue: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_ScaleFactor: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const _ICounterItemUnion, iScale: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const _ICounterItemUnion, iScale: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_ScaleFactor: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const _ICounterItemUnion, piValue: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const _ICounterItemUnion, piValue: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Path: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const _ICounterItemUnion, pstrValue: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const _ICounterItemUnion, pstrValue: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetValue: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const _ICounterItemUnion, Value: ?*f64, Status: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const _ICounterItemUnion, Value: ?*f64, Status: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetStatistics: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const _ICounterItemUnion, Max: ?*f64, Min: ?*f64, Avg: ?*f64, Status: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const _ICounterItemUnion, Max: ?*f64, Min: ?*f64, Avg: ?*f64, Status: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_Selected: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const _ICounterItemUnion, bState: i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const _ICounterItemUnion, bState: i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Selected: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const _ICounterItemUnion, pbState: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const _ICounterItemUnion, pbState: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_Visible: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const _ICounterItemUnion, bState: i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const _ICounterItemUnion, bState: i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Visible: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const _ICounterItemUnion, pbState: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const _ICounterItemUnion, pbState: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetDataAt: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const _ICounterItemUnion, iIndex: i32, iWhich: SysmonDataType, pVariant: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const _ICounterItemUnion, iIndex: i32, iWhich: SysmonDataType, pVariant: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn _ICounterItemUnion_get_Value(self: *const T, pdblValue: ?*f64) HRESULT { return @as(*const _ICounterItemUnion.VTable, @ptrCast(self.vtable)).get_Value(@as(*const _ICounterItemUnion, @ptrCast(self)), pdblValue); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn _ICounterItemUnion_put_Color(self: *const T, Color: u32) HRESULT { return @as(*const _ICounterItemUnion.VTable, @ptrCast(self.vtable)).put_Color(@as(*const _ICounterItemUnion, @ptrCast(self)), Color); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn _ICounterItemUnion_get_Color(self: *const T, pColor: ?*u32) HRESULT { return @as(*const _ICounterItemUnion.VTable, @ptrCast(self.vtable)).get_Color(@as(*const _ICounterItemUnion, @ptrCast(self)), pColor); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn _ICounterItemUnion_put_Width(self: *const T, iWidth: i32) HRESULT { return @as(*const _ICounterItemUnion.VTable, @ptrCast(self.vtable)).put_Width(@as(*const _ICounterItemUnion, @ptrCast(self)), iWidth); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn _ICounterItemUnion_get_Width(self: *const T, piValue: ?*i32) HRESULT { return @as(*const _ICounterItemUnion.VTable, @ptrCast(self.vtable)).get_Width(@as(*const _ICounterItemUnion, @ptrCast(self)), piValue); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn _ICounterItemUnion_put_LineStyle(self: *const T, iLineStyle: i32) HRESULT { return @as(*const _ICounterItemUnion.VTable, @ptrCast(self.vtable)).put_LineStyle(@as(*const _ICounterItemUnion, @ptrCast(self)), iLineStyle); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn _ICounterItemUnion_get_LineStyle(self: *const T, piValue: ?*i32) HRESULT { return @as(*const _ICounterItemUnion.VTable, @ptrCast(self.vtable)).get_LineStyle(@as(*const _ICounterItemUnion, @ptrCast(self)), piValue); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn _ICounterItemUnion_put_ScaleFactor(self: *const T, iScale: i32) HRESULT { return @as(*const _ICounterItemUnion.VTable, @ptrCast(self.vtable)).put_ScaleFactor(@as(*const _ICounterItemUnion, @ptrCast(self)), iScale); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn _ICounterItemUnion_get_ScaleFactor(self: *const T, piValue: ?*i32) HRESULT { return @as(*const _ICounterItemUnion.VTable, @ptrCast(self.vtable)).get_ScaleFactor(@as(*const _ICounterItemUnion, @ptrCast(self)), piValue); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn _ICounterItemUnion_get_Path(self: *const T, pstrValue: ?*?BSTR) HRESULT { return @as(*const _ICounterItemUnion.VTable, @ptrCast(self.vtable)).get_Path(@as(*const _ICounterItemUnion, @ptrCast(self)), pstrValue); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn _ICounterItemUnion_GetValue(self: *const T, Value: ?*f64, Status: ?*i32) HRESULT { return @as(*const _ICounterItemUnion.VTable, @ptrCast(self.vtable)).GetValue(@as(*const _ICounterItemUnion, @ptrCast(self)), Value, Status); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn _ICounterItemUnion_GetStatistics(self: *const T, Max: ?*f64, Min: ?*f64, Avg: ?*f64, Status: ?*i32) HRESULT { return @as(*const _ICounterItemUnion.VTable, @ptrCast(self.vtable)).GetStatistics(@as(*const _ICounterItemUnion, @ptrCast(self)), Max, Min, Avg, Status); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn _ICounterItemUnion_put_Selected(self: *const T, bState: i16) HRESULT { return @as(*const _ICounterItemUnion.VTable, @ptrCast(self.vtable)).put_Selected(@as(*const _ICounterItemUnion, @ptrCast(self)), bState); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn _ICounterItemUnion_get_Selected(self: *const T, pbState: ?*i16) HRESULT { return @as(*const _ICounterItemUnion.VTable, @ptrCast(self.vtable)).get_Selected(@as(*const _ICounterItemUnion, @ptrCast(self)), pbState); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn _ICounterItemUnion_put_Visible(self: *const T, bState: i16) HRESULT { return @as(*const _ICounterItemUnion.VTable, @ptrCast(self.vtable)).put_Visible(@as(*const _ICounterItemUnion, @ptrCast(self)), bState); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn _ICounterItemUnion_get_Visible(self: *const T, pbState: ?*i16) HRESULT { return @as(*const _ICounterItemUnion.VTable, @ptrCast(self.vtable)).get_Visible(@as(*const _ICounterItemUnion, @ptrCast(self)), pbState); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn _ICounterItemUnion_GetDataAt(self: *const T, iIndex: i32, iWhich: SysmonDataType, pVariant: ?*VARIANT) HRESULT { return @as(*const _ICounterItemUnion.VTable, @ptrCast(self.vtable)).GetDataAt(@as(*const _ICounterItemUnion, @ptrCast(self)), iIndex, iWhich, pVariant); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_DICounterItem_Value = Guid.initString("c08c4ff2-0e2e-11cf-942c-008029004347"); pub const IID_DICounterItem = &IID_DICounterItem_Value; pub const DICounterItem = extern struct { pub const VTable = extern struct { base: IDispatch.VTable, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IDispatch.MethodMixin(T); }; } pub usingnamespace MethodMixin(@This()); }; const IID_ICounters_Value = Guid.initString("79167962-28fc-11cf-942f-008029004347"); pub const IID_ICounters = &IID_ICounters_Value; pub const ICounters = extern struct { pub const VTable = extern struct { base: IDispatch.VTable, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Count: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ICounters, pLong: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ICounters, pLong: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get__NewEnum: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ICounters, ppIunk: ?*?*IUnknown, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ICounters, ppIunk: ?*?*IUnknown, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Item: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ICounters, index: VARIANT, ppI: ?*?*DICounterItem, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ICounters, index: VARIANT, ppI: ?*?*DICounterItem, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Add: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ICounters, pathname: ?BSTR, ppI: ?*?*DICounterItem, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ICounters, pathname: ?BSTR, ppI: ?*?*DICounterItem, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Remove: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ICounters, index: VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ICounters, index: VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IDispatch.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ICounters_get_Count(self: *const T, pLong: ?*i32) HRESULT { return @as(*const ICounters.VTable, @ptrCast(self.vtable)).get_Count(@as(*const ICounters, @ptrCast(self)), pLong); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ICounters_get__NewEnum(self: *const T, ppIunk: ?*?*IUnknown) HRESULT { return @as(*const ICounters.VTable, @ptrCast(self.vtable)).get__NewEnum(@as(*const ICounters, @ptrCast(self)), ppIunk); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ICounters_get_Item(self: *const T, index: VARIANT, ppI: ?*?*DICounterItem) HRESULT { return @as(*const ICounters.VTable, @ptrCast(self.vtable)).get_Item(@as(*const ICounters, @ptrCast(self)), index, ppI); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ICounters_Add(self: *const T, pathname: ?BSTR, ppI: ?*?*DICounterItem) HRESULT { return @as(*const ICounters.VTable, @ptrCast(self.vtable)).Add(@as(*const ICounters, @ptrCast(self)), pathname, ppI); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ICounters_Remove(self: *const T, index: VARIANT) HRESULT { return @as(*const ICounters.VTable, @ptrCast(self.vtable)).Remove(@as(*const ICounters, @ptrCast(self)), index); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_ILogFileItem_Value = Guid.initString("d6b518dd-05c7-418a-89e6-4f9ce8c6841e"); pub const IID_ILogFileItem = &IID_ILogFileItem_Value; pub const ILogFileItem = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Path: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ILogFileItem, pstrValue: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ILogFileItem, pstrValue: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ILogFileItem_get_Path(self: *const T, pstrValue: ?*?BSTR) HRESULT { return @as(*const ILogFileItem.VTable, @ptrCast(self.vtable)).get_Path(@as(*const ILogFileItem, @ptrCast(self)), pstrValue); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_DILogFileItem_Value = Guid.initString("8d093ffc-f777-4917-82d1-833fbc54c58f"); pub const IID_DILogFileItem = &IID_DILogFileItem_Value; pub const DILogFileItem = extern struct { pub const VTable = extern struct { base: IDispatch.VTable, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IDispatch.MethodMixin(T); }; } pub usingnamespace MethodMixin(@This()); }; const IID_ILogFiles_Value = Guid.initString("6a2a97e6-6851-41ea-87ad-2a8225335865"); pub const IID_ILogFiles = &IID_ILogFiles_Value; pub const ILogFiles = extern struct { pub const VTable = extern struct { base: IDispatch.VTable, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Count: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ILogFiles, pLong: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ILogFiles, pLong: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get__NewEnum: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ILogFiles, ppIunk: ?*?*IUnknown, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ILogFiles, ppIunk: ?*?*IUnknown, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Item: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ILogFiles, index: VARIANT, ppI: ?*?*DILogFileItem, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ILogFiles, index: VARIANT, ppI: ?*?*DILogFileItem, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Add: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ILogFiles, pathname: ?BSTR, ppI: ?*?*DILogFileItem, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ILogFiles, pathname: ?BSTR, ppI: ?*?*DILogFileItem, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Remove: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ILogFiles, index: VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ILogFiles, index: VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IDispatch.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ILogFiles_get_Count(self: *const T, pLong: ?*i32) HRESULT { return @as(*const ILogFiles.VTable, @ptrCast(self.vtable)).get_Count(@as(*const ILogFiles, @ptrCast(self)), pLong); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ILogFiles_get__NewEnum(self: *const T, ppIunk: ?*?*IUnknown) HRESULT { return @as(*const ILogFiles.VTable, @ptrCast(self.vtable)).get__NewEnum(@as(*const ILogFiles, @ptrCast(self)), ppIunk); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ILogFiles_get_Item(self: *const T, index: VARIANT, ppI: ?*?*DILogFileItem) HRESULT { return @as(*const ILogFiles.VTable, @ptrCast(self.vtable)).get_Item(@as(*const ILogFiles, @ptrCast(self)), index, ppI); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ILogFiles_Add(self: *const T, pathname: ?BSTR, ppI: ?*?*DILogFileItem) HRESULT { return @as(*const ILogFiles.VTable, @ptrCast(self.vtable)).Add(@as(*const ILogFiles, @ptrCast(self)), pathname, ppI); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ILogFiles_Remove(self: *const T, index: VARIANT) HRESULT { return @as(*const ILogFiles.VTable, @ptrCast(self.vtable)).Remove(@as(*const ILogFiles, @ptrCast(self)), index); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_ISystemMonitor_Value = Guid.initString("194eb241-c32c-11cf-9398-00aa00a3ddea"); pub const IID_ISystemMonitor = &IID_ISystemMonitor_Value; pub const ISystemMonitor = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Appearance: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ISystemMonitor, iAppearance: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ISystemMonitor, iAppearance: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_Appearance: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ISystemMonitor, iAppearance: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ISystemMonitor, iAppearance: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_BackColor: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ISystemMonitor, pColor: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ISystemMonitor, pColor: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_BackColor: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ISystemMonitor, Color: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ISystemMonitor, Color: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_BorderStyle: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ISystemMonitor, iBorderStyle: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ISystemMonitor, iBorderStyle: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_BorderStyle: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ISystemMonitor, iBorderStyle: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ISystemMonitor, iBorderStyle: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_ForeColor: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ISystemMonitor, pColor: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ISystemMonitor, pColor: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_ForeColor: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ISystemMonitor, Color: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ISystemMonitor, Color: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Font: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ISystemMonitor, ppFont: ?*?*IFontDisp, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ISystemMonitor, ppFont: ?*?*IFontDisp, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, putref_Font: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ISystemMonitor, pFont: ?*IFontDisp, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ISystemMonitor, pFont: ?*IFontDisp, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Counters: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ISystemMonitor, ppICounters: ?*?*ICounters, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ISystemMonitor, ppICounters: ?*?*ICounters, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_ShowVerticalGrid: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ISystemMonitor, bState: i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ISystemMonitor, bState: i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_ShowVerticalGrid: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ISystemMonitor, pbState: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ISystemMonitor, pbState: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_ShowHorizontalGrid: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ISystemMonitor, bState: i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ISystemMonitor, bState: i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_ShowHorizontalGrid: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ISystemMonitor, pbState: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ISystemMonitor, pbState: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_ShowLegend: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ISystemMonitor, bState: i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ISystemMonitor, bState: i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_ShowLegend: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ISystemMonitor, pbState: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ISystemMonitor, pbState: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_ShowScaleLabels: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ISystemMonitor, bState: i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ISystemMonitor, bState: i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_ShowScaleLabels: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ISystemMonitor, pbState: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ISystemMonitor, pbState: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_ShowValueBar: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ISystemMonitor, bState: i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ISystemMonitor, bState: i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_ShowValueBar: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ISystemMonitor, pbState: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ISystemMonitor, pbState: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_MaximumScale: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ISystemMonitor, iValue: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ISystemMonitor, iValue: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_MaximumScale: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ISystemMonitor, piValue: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ISystemMonitor, piValue: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_MinimumScale: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ISystemMonitor, iValue: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ISystemMonitor, iValue: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_MinimumScale: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ISystemMonitor, piValue: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ISystemMonitor, piValue: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_UpdateInterval: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ISystemMonitor, fValue: f32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ISystemMonitor, fValue: f32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_UpdateInterval: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ISystemMonitor, pfValue: ?*f32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ISystemMonitor, pfValue: ?*f32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_DisplayType: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ISystemMonitor, eDisplayType: DisplayTypeConstants, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ISystemMonitor, eDisplayType: DisplayTypeConstants, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_DisplayType: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ISystemMonitor, peDisplayType: ?*DisplayTypeConstants, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ISystemMonitor, peDisplayType: ?*DisplayTypeConstants, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_ManualUpdate: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ISystemMonitor, bState: i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ISystemMonitor, bState: i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_ManualUpdate: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ISystemMonitor, pbState: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ISystemMonitor, pbState: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_GraphTitle: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ISystemMonitor, bsTitle: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ISystemMonitor, bsTitle: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_GraphTitle: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ISystemMonitor, pbsTitle: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ISystemMonitor, pbsTitle: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_YAxisLabel: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ISystemMonitor, bsTitle: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ISystemMonitor, bsTitle: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_YAxisLabel: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ISystemMonitor, pbsTitle: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ISystemMonitor, pbsTitle: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, CollectSample: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ISystemMonitor, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ISystemMonitor, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, UpdateGraph: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ISystemMonitor, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ISystemMonitor, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, BrowseCounters: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ISystemMonitor, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ISystemMonitor, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, DisplayProperties: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ISystemMonitor, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ISystemMonitor, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Counter: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ISystemMonitor, iIndex: i32, ppICounter: ?*?*ICounterItem, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ISystemMonitor, iIndex: i32, ppICounter: ?*?*ICounterItem, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, AddCounter: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ISystemMonitor, bsPath: ?BSTR, ppICounter: ?*?*ICounterItem, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ISystemMonitor, bsPath: ?BSTR, ppICounter: ?*?*ICounterItem, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, DeleteCounter: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ISystemMonitor, pCtr: ?*ICounterItem, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ISystemMonitor, pCtr: ?*ICounterItem, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_BackColorCtl: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ISystemMonitor, pColor: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ISystemMonitor, pColor: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_BackColorCtl: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ISystemMonitor, Color: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ISystemMonitor, Color: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_LogFileName: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ISystemMonitor, bsFileName: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ISystemMonitor, bsFileName: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_LogFileName: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ISystemMonitor, bsFileName: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ISystemMonitor, bsFileName: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_LogViewStart: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ISystemMonitor, StartTime: f64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ISystemMonitor, StartTime: f64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_LogViewStart: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ISystemMonitor, StartTime: ?*f64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ISystemMonitor, StartTime: ?*f64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_LogViewStop: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ISystemMonitor, StopTime: f64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ISystemMonitor, StopTime: f64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_LogViewStop: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ISystemMonitor, StopTime: ?*f64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ISystemMonitor, StopTime: ?*f64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_GridColor: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ISystemMonitor, pColor: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ISystemMonitor, pColor: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_GridColor: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ISystemMonitor, Color: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ISystemMonitor, Color: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_TimeBarColor: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ISystemMonitor, pColor: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ISystemMonitor, pColor: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_TimeBarColor: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ISystemMonitor, Color: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ISystemMonitor, Color: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Highlight: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ISystemMonitor, pbState: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ISystemMonitor, pbState: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_Highlight: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ISystemMonitor, bState: i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ISystemMonitor, bState: i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_ShowToolbar: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ISystemMonitor, pbState: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ISystemMonitor, pbState: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_ShowToolbar: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ISystemMonitor, bState: i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ISystemMonitor, bState: i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Paste: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ISystemMonitor, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ISystemMonitor, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Copy: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ISystemMonitor, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ISystemMonitor, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Reset: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ISystemMonitor, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ISystemMonitor, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_ReadOnly: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ISystemMonitor, bState: i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ISystemMonitor, bState: i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_ReadOnly: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ISystemMonitor, pbState: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ISystemMonitor, pbState: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_ReportValueType: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ISystemMonitor, eReportValueType: ReportValueTypeConstants, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ISystemMonitor, eReportValueType: ReportValueTypeConstants, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_ReportValueType: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ISystemMonitor, peReportValueType: ?*ReportValueTypeConstants, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ISystemMonitor, peReportValueType: ?*ReportValueTypeConstants, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_MonitorDuplicateInstances: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ISystemMonitor, bState: i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ISystemMonitor, bState: i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_MonitorDuplicateInstances: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ISystemMonitor, pbState: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ISystemMonitor, pbState: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_DisplayFilter: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ISystemMonitor, iValue: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ISystemMonitor, iValue: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_DisplayFilter: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ISystemMonitor, piValue: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ISystemMonitor, piValue: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_LogFiles: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ISystemMonitor, ppILogFiles: ?*?*ILogFiles, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ISystemMonitor, ppILogFiles: ?*?*ILogFiles, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_DataSourceType: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ISystemMonitor, eDataSourceType: DataSourceTypeConstants, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ISystemMonitor, eDataSourceType: DataSourceTypeConstants, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_DataSourceType: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ISystemMonitor, peDataSourceType: ?*DataSourceTypeConstants, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ISystemMonitor, peDataSourceType: ?*DataSourceTypeConstants, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_SqlDsnName: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ISystemMonitor, bsSqlDsnName: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ISystemMonitor, bsSqlDsnName: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_SqlDsnName: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ISystemMonitor, bsSqlDsnName: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ISystemMonitor, bsSqlDsnName: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_SqlLogSetName: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ISystemMonitor, bsSqlLogSetName: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ISystemMonitor, bsSqlLogSetName: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_SqlLogSetName: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ISystemMonitor, bsSqlLogSetName: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ISystemMonitor, bsSqlLogSetName: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISystemMonitor_get_Appearance(self: *const T, iAppearance: ?*i32) HRESULT { return @as(*const ISystemMonitor.VTable, @ptrCast(self.vtable)).get_Appearance(@as(*const ISystemMonitor, @ptrCast(self)), iAppearance); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISystemMonitor_put_Appearance(self: *const T, iAppearance: i32) HRESULT { return @as(*const ISystemMonitor.VTable, @ptrCast(self.vtable)).put_Appearance(@as(*const ISystemMonitor, @ptrCast(self)), iAppearance); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISystemMonitor_get_BackColor(self: *const T, pColor: ?*u32) HRESULT { return @as(*const ISystemMonitor.VTable, @ptrCast(self.vtable)).get_BackColor(@as(*const ISystemMonitor, @ptrCast(self)), pColor); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISystemMonitor_put_BackColor(self: *const T, Color: u32) HRESULT { return @as(*const ISystemMonitor.VTable, @ptrCast(self.vtable)).put_BackColor(@as(*const ISystemMonitor, @ptrCast(self)), Color); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISystemMonitor_get_BorderStyle(self: *const T, iBorderStyle: ?*i32) HRESULT { return @as(*const ISystemMonitor.VTable, @ptrCast(self.vtable)).get_BorderStyle(@as(*const ISystemMonitor, @ptrCast(self)), iBorderStyle); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISystemMonitor_put_BorderStyle(self: *const T, iBorderStyle: i32) HRESULT { return @as(*const ISystemMonitor.VTable, @ptrCast(self.vtable)).put_BorderStyle(@as(*const ISystemMonitor, @ptrCast(self)), iBorderStyle); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISystemMonitor_get_ForeColor(self: *const T, pColor: ?*u32) HRESULT { return @as(*const ISystemMonitor.VTable, @ptrCast(self.vtable)).get_ForeColor(@as(*const ISystemMonitor, @ptrCast(self)), pColor); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISystemMonitor_put_ForeColor(self: *const T, Color: u32) HRESULT { return @as(*const ISystemMonitor.VTable, @ptrCast(self.vtable)).put_ForeColor(@as(*const ISystemMonitor, @ptrCast(self)), Color); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISystemMonitor_get_Font(self: *const T, ppFont: ?*?*IFontDisp) HRESULT { return @as(*const ISystemMonitor.VTable, @ptrCast(self.vtable)).get_Font(@as(*const ISystemMonitor, @ptrCast(self)), ppFont); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISystemMonitor_putref_Font(self: *const T, pFont: ?*IFontDisp) HRESULT { return @as(*const ISystemMonitor.VTable, @ptrCast(self.vtable)).putref_Font(@as(*const ISystemMonitor, @ptrCast(self)), pFont); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISystemMonitor_get_Counters(self: *const T, ppICounters: ?*?*ICounters) HRESULT { return @as(*const ISystemMonitor.VTable, @ptrCast(self.vtable)).get_Counters(@as(*const ISystemMonitor, @ptrCast(self)), ppICounters); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISystemMonitor_put_ShowVerticalGrid(self: *const T, bState: i16) HRESULT { return @as(*const ISystemMonitor.VTable, @ptrCast(self.vtable)).put_ShowVerticalGrid(@as(*const ISystemMonitor, @ptrCast(self)), bState); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISystemMonitor_get_ShowVerticalGrid(self: *const T, pbState: ?*i16) HRESULT { return @as(*const ISystemMonitor.VTable, @ptrCast(self.vtable)).get_ShowVerticalGrid(@as(*const ISystemMonitor, @ptrCast(self)), pbState); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISystemMonitor_put_ShowHorizontalGrid(self: *const T, bState: i16) HRESULT { return @as(*const ISystemMonitor.VTable, @ptrCast(self.vtable)).put_ShowHorizontalGrid(@as(*const ISystemMonitor, @ptrCast(self)), bState); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISystemMonitor_get_ShowHorizontalGrid(self: *const T, pbState: ?*i16) HRESULT { return @as(*const ISystemMonitor.VTable, @ptrCast(self.vtable)).get_ShowHorizontalGrid(@as(*const ISystemMonitor, @ptrCast(self)), pbState); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISystemMonitor_put_ShowLegend(self: *const T, bState: i16) HRESULT { return @as(*const ISystemMonitor.VTable, @ptrCast(self.vtable)).put_ShowLegend(@as(*const ISystemMonitor, @ptrCast(self)), bState); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISystemMonitor_get_ShowLegend(self: *const T, pbState: ?*i16) HRESULT { return @as(*const ISystemMonitor.VTable, @ptrCast(self.vtable)).get_ShowLegend(@as(*const ISystemMonitor, @ptrCast(self)), pbState); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISystemMonitor_put_ShowScaleLabels(self: *const T, bState: i16) HRESULT { return @as(*const ISystemMonitor.VTable, @ptrCast(self.vtable)).put_ShowScaleLabels(@as(*const ISystemMonitor, @ptrCast(self)), bState); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISystemMonitor_get_ShowScaleLabels(self: *const T, pbState: ?*i16) HRESULT { return @as(*const ISystemMonitor.VTable, @ptrCast(self.vtable)).get_ShowScaleLabels(@as(*const ISystemMonitor, @ptrCast(self)), pbState); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISystemMonitor_put_ShowValueBar(self: *const T, bState: i16) HRESULT { return @as(*const ISystemMonitor.VTable, @ptrCast(self.vtable)).put_ShowValueBar(@as(*const ISystemMonitor, @ptrCast(self)), bState); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISystemMonitor_get_ShowValueBar(self: *const T, pbState: ?*i16) HRESULT { return @as(*const ISystemMonitor.VTable, @ptrCast(self.vtable)).get_ShowValueBar(@as(*const ISystemMonitor, @ptrCast(self)), pbState); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISystemMonitor_put_MaximumScale(self: *const T, iValue: i32) HRESULT { return @as(*const ISystemMonitor.VTable, @ptrCast(self.vtable)).put_MaximumScale(@as(*const ISystemMonitor, @ptrCast(self)), iValue); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISystemMonitor_get_MaximumScale(self: *const T, piValue: ?*i32) HRESULT { return @as(*const ISystemMonitor.VTable, @ptrCast(self.vtable)).get_MaximumScale(@as(*const ISystemMonitor, @ptrCast(self)), piValue); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISystemMonitor_put_MinimumScale(self: *const T, iValue: i32) HRESULT { return @as(*const ISystemMonitor.VTable, @ptrCast(self.vtable)).put_MinimumScale(@as(*const ISystemMonitor, @ptrCast(self)), iValue); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISystemMonitor_get_MinimumScale(self: *const T, piValue: ?*i32) HRESULT { return @as(*const ISystemMonitor.VTable, @ptrCast(self.vtable)).get_MinimumScale(@as(*const ISystemMonitor, @ptrCast(self)), piValue); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISystemMonitor_put_UpdateInterval(self: *const T, fValue: f32) HRESULT { return @as(*const ISystemMonitor.VTable, @ptrCast(self.vtable)).put_UpdateInterval(@as(*const ISystemMonitor, @ptrCast(self)), fValue); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISystemMonitor_get_UpdateInterval(self: *const T, pfValue: ?*f32) HRESULT { return @as(*const ISystemMonitor.VTable, @ptrCast(self.vtable)).get_UpdateInterval(@as(*const ISystemMonitor, @ptrCast(self)), pfValue); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISystemMonitor_put_DisplayType(self: *const T, eDisplayType: DisplayTypeConstants) HRESULT { return @as(*const ISystemMonitor.VTable, @ptrCast(self.vtable)).put_DisplayType(@as(*const ISystemMonitor, @ptrCast(self)), eDisplayType); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISystemMonitor_get_DisplayType(self: *const T, peDisplayType: ?*DisplayTypeConstants) HRESULT { return @as(*const ISystemMonitor.VTable, @ptrCast(self.vtable)).get_DisplayType(@as(*const ISystemMonitor, @ptrCast(self)), peDisplayType); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISystemMonitor_put_ManualUpdate(self: *const T, bState: i16) HRESULT { return @as(*const ISystemMonitor.VTable, @ptrCast(self.vtable)).put_ManualUpdate(@as(*const ISystemMonitor, @ptrCast(self)), bState); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISystemMonitor_get_ManualUpdate(self: *const T, pbState: ?*i16) HRESULT { return @as(*const ISystemMonitor.VTable, @ptrCast(self.vtable)).get_ManualUpdate(@as(*const ISystemMonitor, @ptrCast(self)), pbState); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISystemMonitor_put_GraphTitle(self: *const T, bsTitle: ?BSTR) HRESULT { return @as(*const ISystemMonitor.VTable, @ptrCast(self.vtable)).put_GraphTitle(@as(*const ISystemMonitor, @ptrCast(self)), bsTitle); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISystemMonitor_get_GraphTitle(self: *const T, pbsTitle: ?*?BSTR) HRESULT { return @as(*const ISystemMonitor.VTable, @ptrCast(self.vtable)).get_GraphTitle(@as(*const ISystemMonitor, @ptrCast(self)), pbsTitle); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISystemMonitor_put_YAxisLabel(self: *const T, bsTitle: ?BSTR) HRESULT { return @as(*const ISystemMonitor.VTable, @ptrCast(self.vtable)).put_YAxisLabel(@as(*const ISystemMonitor, @ptrCast(self)), bsTitle); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISystemMonitor_get_YAxisLabel(self: *const T, pbsTitle: ?*?BSTR) HRESULT { return @as(*const ISystemMonitor.VTable, @ptrCast(self.vtable)).get_YAxisLabel(@as(*const ISystemMonitor, @ptrCast(self)), pbsTitle); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISystemMonitor_CollectSample(self: *const T) HRESULT { return @as(*const ISystemMonitor.VTable, @ptrCast(self.vtable)).CollectSample(@as(*const ISystemMonitor, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISystemMonitor_UpdateGraph(self: *const T) HRESULT { return @as(*const ISystemMonitor.VTable, @ptrCast(self.vtable)).UpdateGraph(@as(*const ISystemMonitor, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISystemMonitor_BrowseCounters(self: *const T) HRESULT { return @as(*const ISystemMonitor.VTable, @ptrCast(self.vtable)).BrowseCounters(@as(*const ISystemMonitor, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISystemMonitor_DisplayProperties(self: *const T) HRESULT { return @as(*const ISystemMonitor.VTable, @ptrCast(self.vtable)).DisplayProperties(@as(*const ISystemMonitor, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISystemMonitor_Counter(self: *const T, iIndex: i32, ppICounter: ?*?*ICounterItem) HRESULT { return @as(*const ISystemMonitor.VTable, @ptrCast(self.vtable)).Counter(@as(*const ISystemMonitor, @ptrCast(self)), iIndex, ppICounter); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISystemMonitor_AddCounter(self: *const T, bsPath: ?BSTR, ppICounter: ?*?*ICounterItem) HRESULT { return @as(*const ISystemMonitor.VTable, @ptrCast(self.vtable)).AddCounter(@as(*const ISystemMonitor, @ptrCast(self)), bsPath, ppICounter); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISystemMonitor_DeleteCounter(self: *const T, pCtr: ?*ICounterItem) HRESULT { return @as(*const ISystemMonitor.VTable, @ptrCast(self.vtable)).DeleteCounter(@as(*const ISystemMonitor, @ptrCast(self)), pCtr); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISystemMonitor_get_BackColorCtl(self: *const T, pColor: ?*u32) HRESULT { return @as(*const ISystemMonitor.VTable, @ptrCast(self.vtable)).get_BackColorCtl(@as(*const ISystemMonitor, @ptrCast(self)), pColor); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISystemMonitor_put_BackColorCtl(self: *const T, Color: u32) HRESULT { return @as(*const ISystemMonitor.VTable, @ptrCast(self.vtable)).put_BackColorCtl(@as(*const ISystemMonitor, @ptrCast(self)), Color); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISystemMonitor_put_LogFileName(self: *const T, bsFileName: ?BSTR) HRESULT { return @as(*const ISystemMonitor.VTable, @ptrCast(self.vtable)).put_LogFileName(@as(*const ISystemMonitor, @ptrCast(self)), bsFileName); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISystemMonitor_get_LogFileName(self: *const T, bsFileName: ?*?BSTR) HRESULT { return @as(*const ISystemMonitor.VTable, @ptrCast(self.vtable)).get_LogFileName(@as(*const ISystemMonitor, @ptrCast(self)), bsFileName); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISystemMonitor_put_LogViewStart(self: *const T, StartTime: f64) HRESULT { return @as(*const ISystemMonitor.VTable, @ptrCast(self.vtable)).put_LogViewStart(@as(*const ISystemMonitor, @ptrCast(self)), StartTime); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISystemMonitor_get_LogViewStart(self: *const T, StartTime: ?*f64) HRESULT { return @as(*const ISystemMonitor.VTable, @ptrCast(self.vtable)).get_LogViewStart(@as(*const ISystemMonitor, @ptrCast(self)), StartTime); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISystemMonitor_put_LogViewStop(self: *const T, StopTime: f64) HRESULT { return @as(*const ISystemMonitor.VTable, @ptrCast(self.vtable)).put_LogViewStop(@as(*const ISystemMonitor, @ptrCast(self)), StopTime); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISystemMonitor_get_LogViewStop(self: *const T, StopTime: ?*f64) HRESULT { return @as(*const ISystemMonitor.VTable, @ptrCast(self.vtable)).get_LogViewStop(@as(*const ISystemMonitor, @ptrCast(self)), StopTime); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISystemMonitor_get_GridColor(self: *const T, pColor: ?*u32) HRESULT { return @as(*const ISystemMonitor.VTable, @ptrCast(self.vtable)).get_GridColor(@as(*const ISystemMonitor, @ptrCast(self)), pColor); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISystemMonitor_put_GridColor(self: *const T, Color: u32) HRESULT { return @as(*const ISystemMonitor.VTable, @ptrCast(self.vtable)).put_GridColor(@as(*const ISystemMonitor, @ptrCast(self)), Color); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISystemMonitor_get_TimeBarColor(self: *const T, pColor: ?*u32) HRESULT { return @as(*const ISystemMonitor.VTable, @ptrCast(self.vtable)).get_TimeBarColor(@as(*const ISystemMonitor, @ptrCast(self)), pColor); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISystemMonitor_put_TimeBarColor(self: *const T, Color: u32) HRESULT { return @as(*const ISystemMonitor.VTable, @ptrCast(self.vtable)).put_TimeBarColor(@as(*const ISystemMonitor, @ptrCast(self)), Color); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISystemMonitor_get_Highlight(self: *const T, pbState: ?*i16) HRESULT { return @as(*const ISystemMonitor.VTable, @ptrCast(self.vtable)).get_Highlight(@as(*const ISystemMonitor, @ptrCast(self)), pbState); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISystemMonitor_put_Highlight(self: *const T, bState: i16) HRESULT { return @as(*const ISystemMonitor.VTable, @ptrCast(self.vtable)).put_Highlight(@as(*const ISystemMonitor, @ptrCast(self)), bState); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISystemMonitor_get_ShowToolbar(self: *const T, pbState: ?*i16) HRESULT { return @as(*const ISystemMonitor.VTable, @ptrCast(self.vtable)).get_ShowToolbar(@as(*const ISystemMonitor, @ptrCast(self)), pbState); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISystemMonitor_put_ShowToolbar(self: *const T, bState: i16) HRESULT { return @as(*const ISystemMonitor.VTable, @ptrCast(self.vtable)).put_ShowToolbar(@as(*const ISystemMonitor, @ptrCast(self)), bState); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISystemMonitor_Paste(self: *const T) HRESULT { return @as(*const ISystemMonitor.VTable, @ptrCast(self.vtable)).Paste(@as(*const ISystemMonitor, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISystemMonitor_Copy(self: *const T) HRESULT { return @as(*const ISystemMonitor.VTable, @ptrCast(self.vtable)).Copy(@as(*const ISystemMonitor, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISystemMonitor_Reset(self: *const T) HRESULT { return @as(*const ISystemMonitor.VTable, @ptrCast(self.vtable)).Reset(@as(*const ISystemMonitor, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISystemMonitor_put_ReadOnly(self: *const T, bState: i16) HRESULT { return @as(*const ISystemMonitor.VTable, @ptrCast(self.vtable)).put_ReadOnly(@as(*const ISystemMonitor, @ptrCast(self)), bState); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISystemMonitor_get_ReadOnly(self: *const T, pbState: ?*i16) HRESULT { return @as(*const ISystemMonitor.VTable, @ptrCast(self.vtable)).get_ReadOnly(@as(*const ISystemMonitor, @ptrCast(self)), pbState); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISystemMonitor_put_ReportValueType(self: *const T, eReportValueType: ReportValueTypeConstants) HRESULT { return @as(*const ISystemMonitor.VTable, @ptrCast(self.vtable)).put_ReportValueType(@as(*const ISystemMonitor, @ptrCast(self)), eReportValueType); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISystemMonitor_get_ReportValueType(self: *const T, peReportValueType: ?*ReportValueTypeConstants) HRESULT { return @as(*const ISystemMonitor.VTable, @ptrCast(self.vtable)).get_ReportValueType(@as(*const ISystemMonitor, @ptrCast(self)), peReportValueType); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISystemMonitor_put_MonitorDuplicateInstances(self: *const T, bState: i16) HRESULT { return @as(*const ISystemMonitor.VTable, @ptrCast(self.vtable)).put_MonitorDuplicateInstances(@as(*const ISystemMonitor, @ptrCast(self)), bState); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISystemMonitor_get_MonitorDuplicateInstances(self: *const T, pbState: ?*i16) HRESULT { return @as(*const ISystemMonitor.VTable, @ptrCast(self.vtable)).get_MonitorDuplicateInstances(@as(*const ISystemMonitor, @ptrCast(self)), pbState); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISystemMonitor_put_DisplayFilter(self: *const T, iValue: i32) HRESULT { return @as(*const ISystemMonitor.VTable, @ptrCast(self.vtable)).put_DisplayFilter(@as(*const ISystemMonitor, @ptrCast(self)), iValue); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISystemMonitor_get_DisplayFilter(self: *const T, piValue: ?*i32) HRESULT { return @as(*const ISystemMonitor.VTable, @ptrCast(self.vtable)).get_DisplayFilter(@as(*const ISystemMonitor, @ptrCast(self)), piValue); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISystemMonitor_get_LogFiles(self: *const T, ppILogFiles: ?*?*ILogFiles) HRESULT { return @as(*const ISystemMonitor.VTable, @ptrCast(self.vtable)).get_LogFiles(@as(*const ISystemMonitor, @ptrCast(self)), ppILogFiles); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISystemMonitor_put_DataSourceType(self: *const T, eDataSourceType: DataSourceTypeConstants) HRESULT { return @as(*const ISystemMonitor.VTable, @ptrCast(self.vtable)).put_DataSourceType(@as(*const ISystemMonitor, @ptrCast(self)), eDataSourceType); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISystemMonitor_get_DataSourceType(self: *const T, peDataSourceType: ?*DataSourceTypeConstants) HRESULT { return @as(*const ISystemMonitor.VTable, @ptrCast(self.vtable)).get_DataSourceType(@as(*const ISystemMonitor, @ptrCast(self)), peDataSourceType); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISystemMonitor_put_SqlDsnName(self: *const T, bsSqlDsnName: ?BSTR) HRESULT { return @as(*const ISystemMonitor.VTable, @ptrCast(self.vtable)).put_SqlDsnName(@as(*const ISystemMonitor, @ptrCast(self)), bsSqlDsnName); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISystemMonitor_get_SqlDsnName(self: *const T, bsSqlDsnName: ?*?BSTR) HRESULT { return @as(*const ISystemMonitor.VTable, @ptrCast(self.vtable)).get_SqlDsnName(@as(*const ISystemMonitor, @ptrCast(self)), bsSqlDsnName); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISystemMonitor_put_SqlLogSetName(self: *const T, bsSqlLogSetName: ?BSTR) HRESULT { return @as(*const ISystemMonitor.VTable, @ptrCast(self.vtable)).put_SqlLogSetName(@as(*const ISystemMonitor, @ptrCast(self)), bsSqlLogSetName); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISystemMonitor_get_SqlLogSetName(self: *const T, bsSqlLogSetName: ?*?BSTR) HRESULT { return @as(*const ISystemMonitor.VTable, @ptrCast(self.vtable)).get_SqlLogSetName(@as(*const ISystemMonitor, @ptrCast(self)), bsSqlLogSetName); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_ISystemMonitor2_Value = Guid.initString("08e3206a-5fd2-4fde-a8a5-8cb3b63d2677"); pub const IID_ISystemMonitor2 = &IID_ISystemMonitor2_Value; pub const ISystemMonitor2 = extern struct { pub const VTable = extern struct { base: ISystemMonitor.VTable, // TODO: this function has a "SpecialName", should Zig do anything with this? put_EnableDigitGrouping: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ISystemMonitor2, bState: i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ISystemMonitor2, bState: i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_EnableDigitGrouping: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ISystemMonitor2, pbState: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ISystemMonitor2, pbState: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_EnableToolTips: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ISystemMonitor2, bState: i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ISystemMonitor2, bState: i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_EnableToolTips: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ISystemMonitor2, pbState: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ISystemMonitor2, pbState: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_ShowTimeAxisLabels: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ISystemMonitor2, bState: i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ISystemMonitor2, bState: i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_ShowTimeAxisLabels: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ISystemMonitor2, pbState: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ISystemMonitor2, pbState: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_ChartScroll: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ISystemMonitor2, bScroll: i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ISystemMonitor2, bScroll: i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_ChartScroll: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ISystemMonitor2, pbScroll: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ISystemMonitor2, pbScroll: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_DataPointCount: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ISystemMonitor2, iNewCount: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ISystemMonitor2, iNewCount: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_DataPointCount: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ISystemMonitor2, piDataPointCount: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ISystemMonitor2, piDataPointCount: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, ScaleToFit: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ISystemMonitor2, bSelectedCountersOnly: i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ISystemMonitor2, bSelectedCountersOnly: i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SaveAs: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ISystemMonitor2, bstrFileName: ?BSTR, eSysmonFileType: SysmonFileType, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ISystemMonitor2, bstrFileName: ?BSTR, eSysmonFileType: SysmonFileType, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Relog: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ISystemMonitor2, bstrFileName: ?BSTR, eSysmonFileType: SysmonFileType, iFilter: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ISystemMonitor2, bstrFileName: ?BSTR, eSysmonFileType: SysmonFileType, iFilter: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, ClearData: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ISystemMonitor2, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ISystemMonitor2, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_LogSourceStartTime: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ISystemMonitor2, pDate: ?*f64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ISystemMonitor2, pDate: ?*f64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_LogSourceStopTime: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ISystemMonitor2, pDate: ?*f64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ISystemMonitor2, pDate: ?*f64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetLogViewRange: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ISystemMonitor2, StartTime: f64, StopTime: f64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ISystemMonitor2, StartTime: f64, StopTime: f64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetLogViewRange: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ISystemMonitor2, StartTime: ?*f64, StopTime: ?*f64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ISystemMonitor2, StartTime: ?*f64, StopTime: ?*f64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, BatchingLock: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ISystemMonitor2, fLock: i16, eBatchReason: SysmonBatchReason, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ISystemMonitor2, fLock: i16, eBatchReason: SysmonBatchReason, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, LoadSettings: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ISystemMonitor2, bstrSettingFileName: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ISystemMonitor2, bstrSettingFileName: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace ISystemMonitor.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISystemMonitor2_put_EnableDigitGrouping(self: *const T, bState: i16) HRESULT { return @as(*const ISystemMonitor2.VTable, @ptrCast(self.vtable)).put_EnableDigitGrouping(@as(*const ISystemMonitor2, @ptrCast(self)), bState); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISystemMonitor2_get_EnableDigitGrouping(self: *const T, pbState: ?*i16) HRESULT { return @as(*const ISystemMonitor2.VTable, @ptrCast(self.vtable)).get_EnableDigitGrouping(@as(*const ISystemMonitor2, @ptrCast(self)), pbState); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISystemMonitor2_put_EnableToolTips(self: *const T, bState: i16) HRESULT { return @as(*const ISystemMonitor2.VTable, @ptrCast(self.vtable)).put_EnableToolTips(@as(*const ISystemMonitor2, @ptrCast(self)), bState); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISystemMonitor2_get_EnableToolTips(self: *const T, pbState: ?*i16) HRESULT { return @as(*const ISystemMonitor2.VTable, @ptrCast(self.vtable)).get_EnableToolTips(@as(*const ISystemMonitor2, @ptrCast(self)), pbState); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISystemMonitor2_put_ShowTimeAxisLabels(self: *const T, bState: i16) HRESULT { return @as(*const ISystemMonitor2.VTable, @ptrCast(self.vtable)).put_ShowTimeAxisLabels(@as(*const ISystemMonitor2, @ptrCast(self)), bState); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISystemMonitor2_get_ShowTimeAxisLabels(self: *const T, pbState: ?*i16) HRESULT { return @as(*const ISystemMonitor2.VTable, @ptrCast(self.vtable)).get_ShowTimeAxisLabels(@as(*const ISystemMonitor2, @ptrCast(self)), pbState); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISystemMonitor2_put_ChartScroll(self: *const T, bScroll: i16) HRESULT { return @as(*const ISystemMonitor2.VTable, @ptrCast(self.vtable)).put_ChartScroll(@as(*const ISystemMonitor2, @ptrCast(self)), bScroll); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISystemMonitor2_get_ChartScroll(self: *const T, pbScroll: ?*i16) HRESULT { return @as(*const ISystemMonitor2.VTable, @ptrCast(self.vtable)).get_ChartScroll(@as(*const ISystemMonitor2, @ptrCast(self)), pbScroll); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISystemMonitor2_put_DataPointCount(self: *const T, iNewCount: i32) HRESULT { return @as(*const ISystemMonitor2.VTable, @ptrCast(self.vtable)).put_DataPointCount(@as(*const ISystemMonitor2, @ptrCast(self)), iNewCount); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISystemMonitor2_get_DataPointCount(self: *const T, piDataPointCount: ?*i32) HRESULT { return @as(*const ISystemMonitor2.VTable, @ptrCast(self.vtable)).get_DataPointCount(@as(*const ISystemMonitor2, @ptrCast(self)), piDataPointCount); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISystemMonitor2_ScaleToFit(self: *const T, bSelectedCountersOnly: i16) HRESULT { return @as(*const ISystemMonitor2.VTable, @ptrCast(self.vtable)).ScaleToFit(@as(*const ISystemMonitor2, @ptrCast(self)), bSelectedCountersOnly); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISystemMonitor2_SaveAs(self: *const T, bstrFileName: ?BSTR, eSysmonFileType: SysmonFileType) HRESULT { return @as(*const ISystemMonitor2.VTable, @ptrCast(self.vtable)).SaveAs(@as(*const ISystemMonitor2, @ptrCast(self)), bstrFileName, eSysmonFileType); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISystemMonitor2_Relog(self: *const T, bstrFileName: ?BSTR, eSysmonFileType: SysmonFileType, iFilter: i32) HRESULT { return @as(*const ISystemMonitor2.VTable, @ptrCast(self.vtable)).Relog(@as(*const ISystemMonitor2, @ptrCast(self)), bstrFileName, eSysmonFileType, iFilter); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISystemMonitor2_ClearData(self: *const T) HRESULT { return @as(*const ISystemMonitor2.VTable, @ptrCast(self.vtable)).ClearData(@as(*const ISystemMonitor2, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISystemMonitor2_get_LogSourceStartTime(self: *const T, pDate: ?*f64) HRESULT { return @as(*const ISystemMonitor2.VTable, @ptrCast(self.vtable)).get_LogSourceStartTime(@as(*const ISystemMonitor2, @ptrCast(self)), pDate); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISystemMonitor2_get_LogSourceStopTime(self: *const T, pDate: ?*f64) HRESULT { return @as(*const ISystemMonitor2.VTable, @ptrCast(self.vtable)).get_LogSourceStopTime(@as(*const ISystemMonitor2, @ptrCast(self)), pDate); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISystemMonitor2_SetLogViewRange(self: *const T, StartTime: f64, StopTime: f64) HRESULT { return @as(*const ISystemMonitor2.VTable, @ptrCast(self.vtable)).SetLogViewRange(@as(*const ISystemMonitor2, @ptrCast(self)), StartTime, StopTime); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISystemMonitor2_GetLogViewRange(self: *const T, StartTime: ?*f64, StopTime: ?*f64) HRESULT { return @as(*const ISystemMonitor2.VTable, @ptrCast(self.vtable)).GetLogViewRange(@as(*const ISystemMonitor2, @ptrCast(self)), StartTime, StopTime); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISystemMonitor2_BatchingLock(self: *const T, fLock: i16, eBatchReason: SysmonBatchReason) HRESULT { return @as(*const ISystemMonitor2.VTable, @ptrCast(self.vtable)).BatchingLock(@as(*const ISystemMonitor2, @ptrCast(self)), fLock, eBatchReason); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISystemMonitor2_LoadSettings(self: *const T, bstrSettingFileName: ?BSTR) HRESULT { return @as(*const ISystemMonitor2.VTable, @ptrCast(self.vtable)).LoadSettings(@as(*const ISystemMonitor2, @ptrCast(self)), bstrSettingFileName); } }; } pub usingnamespace MethodMixin(@This()); }; const IID__ISystemMonitorUnion_Value = Guid.initString("c8a77338-265f-4de5-aa25-c7da1ce5a8f4"); pub const IID__ISystemMonitorUnion = &IID__ISystemMonitorUnion_Value; pub const _ISystemMonitorUnion = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Appearance: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const _ISystemMonitorUnion, iAppearance: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const _ISystemMonitorUnion, iAppearance: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_Appearance: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const _ISystemMonitorUnion, iAppearance: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const _ISystemMonitorUnion, iAppearance: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_BackColor: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const _ISystemMonitorUnion, pColor: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const _ISystemMonitorUnion, pColor: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_BackColor: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const _ISystemMonitorUnion, Color: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const _ISystemMonitorUnion, Color: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_BorderStyle: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const _ISystemMonitorUnion, iBorderStyle: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const _ISystemMonitorUnion, iBorderStyle: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_BorderStyle: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const _ISystemMonitorUnion, iBorderStyle: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const _ISystemMonitorUnion, iBorderStyle: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_ForeColor: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const _ISystemMonitorUnion, pColor: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const _ISystemMonitorUnion, pColor: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_ForeColor: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const _ISystemMonitorUnion, Color: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const _ISystemMonitorUnion, Color: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Font: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const _ISystemMonitorUnion, ppFont: ?*?*IFontDisp, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const _ISystemMonitorUnion, ppFont: ?*?*IFontDisp, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, putref_Font: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const _ISystemMonitorUnion, pFont: ?*IFontDisp, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const _ISystemMonitorUnion, pFont: ?*IFontDisp, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Counters: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const _ISystemMonitorUnion, ppICounters: ?*?*ICounters, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const _ISystemMonitorUnion, ppICounters: ?*?*ICounters, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_ShowVerticalGrid: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const _ISystemMonitorUnion, bState: i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const _ISystemMonitorUnion, bState: i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_ShowVerticalGrid: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const _ISystemMonitorUnion, pbState: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const _ISystemMonitorUnion, pbState: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_ShowHorizontalGrid: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const _ISystemMonitorUnion, bState: i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const _ISystemMonitorUnion, bState: i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_ShowHorizontalGrid: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const _ISystemMonitorUnion, pbState: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const _ISystemMonitorUnion, pbState: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_ShowLegend: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const _ISystemMonitorUnion, bState: i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const _ISystemMonitorUnion, bState: i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_ShowLegend: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const _ISystemMonitorUnion, pbState: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const _ISystemMonitorUnion, pbState: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_ShowScaleLabels: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const _ISystemMonitorUnion, bState: i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const _ISystemMonitorUnion, bState: i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_ShowScaleLabels: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const _ISystemMonitorUnion, pbState: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const _ISystemMonitorUnion, pbState: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_ShowValueBar: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const _ISystemMonitorUnion, bState: i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const _ISystemMonitorUnion, bState: i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_ShowValueBar: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const _ISystemMonitorUnion, pbState: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const _ISystemMonitorUnion, pbState: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_MaximumScale: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const _ISystemMonitorUnion, iValue: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const _ISystemMonitorUnion, iValue: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_MaximumScale: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const _ISystemMonitorUnion, piValue: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const _ISystemMonitorUnion, piValue: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_MinimumScale: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const _ISystemMonitorUnion, iValue: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const _ISystemMonitorUnion, iValue: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_MinimumScale: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const _ISystemMonitorUnion, piValue: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const _ISystemMonitorUnion, piValue: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_UpdateInterval: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const _ISystemMonitorUnion, fValue: f32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const _ISystemMonitorUnion, fValue: f32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_UpdateInterval: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const _ISystemMonitorUnion, pfValue: ?*f32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const _ISystemMonitorUnion, pfValue: ?*f32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_DisplayType: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const _ISystemMonitorUnion, eDisplayType: DisplayTypeConstants, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const _ISystemMonitorUnion, eDisplayType: DisplayTypeConstants, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_DisplayType: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const _ISystemMonitorUnion, peDisplayType: ?*DisplayTypeConstants, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const _ISystemMonitorUnion, peDisplayType: ?*DisplayTypeConstants, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_ManualUpdate: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const _ISystemMonitorUnion, bState: i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const _ISystemMonitorUnion, bState: i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_ManualUpdate: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const _ISystemMonitorUnion, pbState: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const _ISystemMonitorUnion, pbState: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_GraphTitle: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const _ISystemMonitorUnion, bsTitle: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const _ISystemMonitorUnion, bsTitle: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_GraphTitle: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const _ISystemMonitorUnion, pbsTitle: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const _ISystemMonitorUnion, pbsTitle: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_YAxisLabel: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const _ISystemMonitorUnion, bsTitle: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const _ISystemMonitorUnion, bsTitle: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_YAxisLabel: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const _ISystemMonitorUnion, pbsTitle: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const _ISystemMonitorUnion, pbsTitle: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, CollectSample: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const _ISystemMonitorUnion, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const _ISystemMonitorUnion, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, UpdateGraph: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const _ISystemMonitorUnion, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const _ISystemMonitorUnion, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, BrowseCounters: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const _ISystemMonitorUnion, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const _ISystemMonitorUnion, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, DisplayProperties: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const _ISystemMonitorUnion, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const _ISystemMonitorUnion, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Counter: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const _ISystemMonitorUnion, iIndex: i32, ppICounter: ?*?*ICounterItem, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const _ISystemMonitorUnion, iIndex: i32, ppICounter: ?*?*ICounterItem, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, AddCounter: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const _ISystemMonitorUnion, bsPath: ?BSTR, ppICounter: ?*?*ICounterItem, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const _ISystemMonitorUnion, bsPath: ?BSTR, ppICounter: ?*?*ICounterItem, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, DeleteCounter: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const _ISystemMonitorUnion, pCtr: ?*ICounterItem, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const _ISystemMonitorUnion, pCtr: ?*ICounterItem, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_BackColorCtl: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const _ISystemMonitorUnion, pColor: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const _ISystemMonitorUnion, pColor: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_BackColorCtl: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const _ISystemMonitorUnion, Color: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const _ISystemMonitorUnion, Color: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_LogFileName: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const _ISystemMonitorUnion, bsFileName: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const _ISystemMonitorUnion, bsFileName: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_LogFileName: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const _ISystemMonitorUnion, bsFileName: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const _ISystemMonitorUnion, bsFileName: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_LogViewStart: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const _ISystemMonitorUnion, StartTime: f64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const _ISystemMonitorUnion, StartTime: f64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_LogViewStart: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const _ISystemMonitorUnion, StartTime: ?*f64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const _ISystemMonitorUnion, StartTime: ?*f64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_LogViewStop: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const _ISystemMonitorUnion, StopTime: f64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const _ISystemMonitorUnion, StopTime: f64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_LogViewStop: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const _ISystemMonitorUnion, StopTime: ?*f64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const _ISystemMonitorUnion, StopTime: ?*f64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_GridColor: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const _ISystemMonitorUnion, pColor: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const _ISystemMonitorUnion, pColor: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_GridColor: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const _ISystemMonitorUnion, Color: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const _ISystemMonitorUnion, Color: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_TimeBarColor: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const _ISystemMonitorUnion, pColor: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const _ISystemMonitorUnion, pColor: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_TimeBarColor: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const _ISystemMonitorUnion, Color: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const _ISystemMonitorUnion, Color: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Highlight: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const _ISystemMonitorUnion, pbState: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const _ISystemMonitorUnion, pbState: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_Highlight: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const _ISystemMonitorUnion, bState: i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const _ISystemMonitorUnion, bState: i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_ShowToolbar: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const _ISystemMonitorUnion, pbState: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const _ISystemMonitorUnion, pbState: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_ShowToolbar: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const _ISystemMonitorUnion, bState: i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const _ISystemMonitorUnion, bState: i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Paste: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const _ISystemMonitorUnion, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const _ISystemMonitorUnion, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Copy: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const _ISystemMonitorUnion, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const _ISystemMonitorUnion, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Reset: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const _ISystemMonitorUnion, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const _ISystemMonitorUnion, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_ReadOnly: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const _ISystemMonitorUnion, bState: i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const _ISystemMonitorUnion, bState: i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_ReadOnly: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const _ISystemMonitorUnion, pbState: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const _ISystemMonitorUnion, pbState: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_ReportValueType: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const _ISystemMonitorUnion, eReportValueType: ReportValueTypeConstants, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const _ISystemMonitorUnion, eReportValueType: ReportValueTypeConstants, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_ReportValueType: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const _ISystemMonitorUnion, peReportValueType: ?*ReportValueTypeConstants, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const _ISystemMonitorUnion, peReportValueType: ?*ReportValueTypeConstants, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_MonitorDuplicateInstances: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const _ISystemMonitorUnion, bState: i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const _ISystemMonitorUnion, bState: i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_MonitorDuplicateInstances: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const _ISystemMonitorUnion, pbState: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const _ISystemMonitorUnion, pbState: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_DisplayFilter: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const _ISystemMonitorUnion, iValue: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const _ISystemMonitorUnion, iValue: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_DisplayFilter: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const _ISystemMonitorUnion, piValue: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const _ISystemMonitorUnion, piValue: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_LogFiles: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const _ISystemMonitorUnion, ppILogFiles: ?*?*ILogFiles, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const _ISystemMonitorUnion, ppILogFiles: ?*?*ILogFiles, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_DataSourceType: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const _ISystemMonitorUnion, eDataSourceType: DataSourceTypeConstants, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const _ISystemMonitorUnion, eDataSourceType: DataSourceTypeConstants, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_DataSourceType: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const _ISystemMonitorUnion, peDataSourceType: ?*DataSourceTypeConstants, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const _ISystemMonitorUnion, peDataSourceType: ?*DataSourceTypeConstants, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_SqlDsnName: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const _ISystemMonitorUnion, bsSqlDsnName: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const _ISystemMonitorUnion, bsSqlDsnName: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_SqlDsnName: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const _ISystemMonitorUnion, bsSqlDsnName: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const _ISystemMonitorUnion, bsSqlDsnName: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_SqlLogSetName: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const _ISystemMonitorUnion, bsSqlLogSetName: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const _ISystemMonitorUnion, bsSqlLogSetName: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_SqlLogSetName: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const _ISystemMonitorUnion, bsSqlLogSetName: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const _ISystemMonitorUnion, bsSqlLogSetName: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_EnableDigitGrouping: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const _ISystemMonitorUnion, bState: i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const _ISystemMonitorUnion, bState: i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_EnableDigitGrouping: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const _ISystemMonitorUnion, pbState: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const _ISystemMonitorUnion, pbState: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_EnableToolTips: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const _ISystemMonitorUnion, bState: i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const _ISystemMonitorUnion, bState: i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_EnableToolTips: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const _ISystemMonitorUnion, pbState: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const _ISystemMonitorUnion, pbState: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_ShowTimeAxisLabels: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const _ISystemMonitorUnion, bState: i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const _ISystemMonitorUnion, bState: i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_ShowTimeAxisLabels: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const _ISystemMonitorUnion, pbState: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const _ISystemMonitorUnion, pbState: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_ChartScroll: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const _ISystemMonitorUnion, bScroll: i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const _ISystemMonitorUnion, bScroll: i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_ChartScroll: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const _ISystemMonitorUnion, pbScroll: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const _ISystemMonitorUnion, pbScroll: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_DataPointCount: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const _ISystemMonitorUnion, iNewCount: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const _ISystemMonitorUnion, iNewCount: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_DataPointCount: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const _ISystemMonitorUnion, piDataPointCount: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const _ISystemMonitorUnion, piDataPointCount: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, ScaleToFit: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const _ISystemMonitorUnion, bSelectedCountersOnly: i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const _ISystemMonitorUnion, bSelectedCountersOnly: i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SaveAs: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const _ISystemMonitorUnion, bstrFileName: ?BSTR, eSysmonFileType: SysmonFileType, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const _ISystemMonitorUnion, bstrFileName: ?BSTR, eSysmonFileType: SysmonFileType, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Relog: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const _ISystemMonitorUnion, bstrFileName: ?BSTR, eSysmonFileType: SysmonFileType, iFilter: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const _ISystemMonitorUnion, bstrFileName: ?BSTR, eSysmonFileType: SysmonFileType, iFilter: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, ClearData: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const _ISystemMonitorUnion, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const _ISystemMonitorUnion, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_LogSourceStartTime: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const _ISystemMonitorUnion, pDate: ?*f64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const _ISystemMonitorUnion, pDate: ?*f64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_LogSourceStopTime: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const _ISystemMonitorUnion, pDate: ?*f64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const _ISystemMonitorUnion, pDate: ?*f64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetLogViewRange: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const _ISystemMonitorUnion, StartTime: f64, StopTime: f64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const _ISystemMonitorUnion, StartTime: f64, StopTime: f64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetLogViewRange: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const _ISystemMonitorUnion, StartTime: ?*f64, StopTime: ?*f64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const _ISystemMonitorUnion, StartTime: ?*f64, StopTime: ?*f64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, BatchingLock: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const _ISystemMonitorUnion, fLock: i16, eBatchReason: SysmonBatchReason, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const _ISystemMonitorUnion, fLock: i16, eBatchReason: SysmonBatchReason, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, LoadSettings: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const _ISystemMonitorUnion, bstrSettingFileName: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const _ISystemMonitorUnion, bstrSettingFileName: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn _ISystemMonitorUnion_get_Appearance(self: *const T, iAppearance: ?*i32) HRESULT { return @as(*const _ISystemMonitorUnion.VTable, @ptrCast(self.vtable)).get_Appearance(@as(*const _ISystemMonitorUnion, @ptrCast(self)), iAppearance); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn _ISystemMonitorUnion_put_Appearance(self: *const T, iAppearance: i32) HRESULT { return @as(*const _ISystemMonitorUnion.VTable, @ptrCast(self.vtable)).put_Appearance(@as(*const _ISystemMonitorUnion, @ptrCast(self)), iAppearance); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn _ISystemMonitorUnion_get_BackColor(self: *const T, pColor: ?*u32) HRESULT { return @as(*const _ISystemMonitorUnion.VTable, @ptrCast(self.vtable)).get_BackColor(@as(*const _ISystemMonitorUnion, @ptrCast(self)), pColor); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn _ISystemMonitorUnion_put_BackColor(self: *const T, Color: u32) HRESULT { return @as(*const _ISystemMonitorUnion.VTable, @ptrCast(self.vtable)).put_BackColor(@as(*const _ISystemMonitorUnion, @ptrCast(self)), Color); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn _ISystemMonitorUnion_get_BorderStyle(self: *const T, iBorderStyle: ?*i32) HRESULT { return @as(*const _ISystemMonitorUnion.VTable, @ptrCast(self.vtable)).get_BorderStyle(@as(*const _ISystemMonitorUnion, @ptrCast(self)), iBorderStyle); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn _ISystemMonitorUnion_put_BorderStyle(self: *const T, iBorderStyle: i32) HRESULT { return @as(*const _ISystemMonitorUnion.VTable, @ptrCast(self.vtable)).put_BorderStyle(@as(*const _ISystemMonitorUnion, @ptrCast(self)), iBorderStyle); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn _ISystemMonitorUnion_get_ForeColor(self: *const T, pColor: ?*u32) HRESULT { return @as(*const _ISystemMonitorUnion.VTable, @ptrCast(self.vtable)).get_ForeColor(@as(*const _ISystemMonitorUnion, @ptrCast(self)), pColor); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn _ISystemMonitorUnion_put_ForeColor(self: *const T, Color: u32) HRESULT { return @as(*const _ISystemMonitorUnion.VTable, @ptrCast(self.vtable)).put_ForeColor(@as(*const _ISystemMonitorUnion, @ptrCast(self)), Color); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn _ISystemMonitorUnion_get_Font(self: *const T, ppFont: ?*?*IFontDisp) HRESULT { return @as(*const _ISystemMonitorUnion.VTable, @ptrCast(self.vtable)).get_Font(@as(*const _ISystemMonitorUnion, @ptrCast(self)), ppFont); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn _ISystemMonitorUnion_putref_Font(self: *const T, pFont: ?*IFontDisp) HRESULT { return @as(*const _ISystemMonitorUnion.VTable, @ptrCast(self.vtable)).putref_Font(@as(*const _ISystemMonitorUnion, @ptrCast(self)), pFont); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn _ISystemMonitorUnion_get_Counters(self: *const T, ppICounters: ?*?*ICounters) HRESULT { return @as(*const _ISystemMonitorUnion.VTable, @ptrCast(self.vtable)).get_Counters(@as(*const _ISystemMonitorUnion, @ptrCast(self)), ppICounters); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn _ISystemMonitorUnion_put_ShowVerticalGrid(self: *const T, bState: i16) HRESULT { return @as(*const _ISystemMonitorUnion.VTable, @ptrCast(self.vtable)).put_ShowVerticalGrid(@as(*const _ISystemMonitorUnion, @ptrCast(self)), bState); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn _ISystemMonitorUnion_get_ShowVerticalGrid(self: *const T, pbState: ?*i16) HRESULT { return @as(*const _ISystemMonitorUnion.VTable, @ptrCast(self.vtable)).get_ShowVerticalGrid(@as(*const _ISystemMonitorUnion, @ptrCast(self)), pbState); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn _ISystemMonitorUnion_put_ShowHorizontalGrid(self: *const T, bState: i16) HRESULT { return @as(*const _ISystemMonitorUnion.VTable, @ptrCast(self.vtable)).put_ShowHorizontalGrid(@as(*const _ISystemMonitorUnion, @ptrCast(self)), bState); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn _ISystemMonitorUnion_get_ShowHorizontalGrid(self: *const T, pbState: ?*i16) HRESULT { return @as(*const _ISystemMonitorUnion.VTable, @ptrCast(self.vtable)).get_ShowHorizontalGrid(@as(*const _ISystemMonitorUnion, @ptrCast(self)), pbState); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn _ISystemMonitorUnion_put_ShowLegend(self: *const T, bState: i16) HRESULT { return @as(*const _ISystemMonitorUnion.VTable, @ptrCast(self.vtable)).put_ShowLegend(@as(*const _ISystemMonitorUnion, @ptrCast(self)), bState); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn _ISystemMonitorUnion_get_ShowLegend(self: *const T, pbState: ?*i16) HRESULT { return @as(*const _ISystemMonitorUnion.VTable, @ptrCast(self.vtable)).get_ShowLegend(@as(*const _ISystemMonitorUnion, @ptrCast(self)), pbState); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn _ISystemMonitorUnion_put_ShowScaleLabels(self: *const T, bState: i16) HRESULT { return @as(*const _ISystemMonitorUnion.VTable, @ptrCast(self.vtable)).put_ShowScaleLabels(@as(*const _ISystemMonitorUnion, @ptrCast(self)), bState); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn _ISystemMonitorUnion_get_ShowScaleLabels(self: *const T, pbState: ?*i16) HRESULT { return @as(*const _ISystemMonitorUnion.VTable, @ptrCast(self.vtable)).get_ShowScaleLabels(@as(*const _ISystemMonitorUnion, @ptrCast(self)), pbState); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn _ISystemMonitorUnion_put_ShowValueBar(self: *const T, bState: i16) HRESULT { return @as(*const _ISystemMonitorUnion.VTable, @ptrCast(self.vtable)).put_ShowValueBar(@as(*const _ISystemMonitorUnion, @ptrCast(self)), bState); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn _ISystemMonitorUnion_get_ShowValueBar(self: *const T, pbState: ?*i16) HRESULT { return @as(*const _ISystemMonitorUnion.VTable, @ptrCast(self.vtable)).get_ShowValueBar(@as(*const _ISystemMonitorUnion, @ptrCast(self)), pbState); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn _ISystemMonitorUnion_put_MaximumScale(self: *const T, iValue: i32) HRESULT { return @as(*const _ISystemMonitorUnion.VTable, @ptrCast(self.vtable)).put_MaximumScale(@as(*const _ISystemMonitorUnion, @ptrCast(self)), iValue); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn _ISystemMonitorUnion_get_MaximumScale(self: *const T, piValue: ?*i32) HRESULT { return @as(*const _ISystemMonitorUnion.VTable, @ptrCast(self.vtable)).get_MaximumScale(@as(*const _ISystemMonitorUnion, @ptrCast(self)), piValue); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn _ISystemMonitorUnion_put_MinimumScale(self: *const T, iValue: i32) HRESULT { return @as(*const _ISystemMonitorUnion.VTable, @ptrCast(self.vtable)).put_MinimumScale(@as(*const _ISystemMonitorUnion, @ptrCast(self)), iValue); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn _ISystemMonitorUnion_get_MinimumScale(self: *const T, piValue: ?*i32) HRESULT { return @as(*const _ISystemMonitorUnion.VTable, @ptrCast(self.vtable)).get_MinimumScale(@as(*const _ISystemMonitorUnion, @ptrCast(self)), piValue); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn _ISystemMonitorUnion_put_UpdateInterval(self: *const T, fValue: f32) HRESULT { return @as(*const _ISystemMonitorUnion.VTable, @ptrCast(self.vtable)).put_UpdateInterval(@as(*const _ISystemMonitorUnion, @ptrCast(self)), fValue); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn _ISystemMonitorUnion_get_UpdateInterval(self: *const T, pfValue: ?*f32) HRESULT { return @as(*const _ISystemMonitorUnion.VTable, @ptrCast(self.vtable)).get_UpdateInterval(@as(*const _ISystemMonitorUnion, @ptrCast(self)), pfValue); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn _ISystemMonitorUnion_put_DisplayType(self: *const T, eDisplayType: DisplayTypeConstants) HRESULT { return @as(*const _ISystemMonitorUnion.VTable, @ptrCast(self.vtable)).put_DisplayType(@as(*const _ISystemMonitorUnion, @ptrCast(self)), eDisplayType); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn _ISystemMonitorUnion_get_DisplayType(self: *const T, peDisplayType: ?*DisplayTypeConstants) HRESULT { return @as(*const _ISystemMonitorUnion.VTable, @ptrCast(self.vtable)).get_DisplayType(@as(*const _ISystemMonitorUnion, @ptrCast(self)), peDisplayType); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn _ISystemMonitorUnion_put_ManualUpdate(self: *const T, bState: i16) HRESULT { return @as(*const _ISystemMonitorUnion.VTable, @ptrCast(self.vtable)).put_ManualUpdate(@as(*const _ISystemMonitorUnion, @ptrCast(self)), bState); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn _ISystemMonitorUnion_get_ManualUpdate(self: *const T, pbState: ?*i16) HRESULT { return @as(*const _ISystemMonitorUnion.VTable, @ptrCast(self.vtable)).get_ManualUpdate(@as(*const _ISystemMonitorUnion, @ptrCast(self)), pbState); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn _ISystemMonitorUnion_put_GraphTitle(self: *const T, bsTitle: ?BSTR) HRESULT { return @as(*const _ISystemMonitorUnion.VTable, @ptrCast(self.vtable)).put_GraphTitle(@as(*const _ISystemMonitorUnion, @ptrCast(self)), bsTitle); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn _ISystemMonitorUnion_get_GraphTitle(self: *const T, pbsTitle: ?*?BSTR) HRESULT { return @as(*const _ISystemMonitorUnion.VTable, @ptrCast(self.vtable)).get_GraphTitle(@as(*const _ISystemMonitorUnion, @ptrCast(self)), pbsTitle); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn _ISystemMonitorUnion_put_YAxisLabel(self: *const T, bsTitle: ?BSTR) HRESULT { return @as(*const _ISystemMonitorUnion.VTable, @ptrCast(self.vtable)).put_YAxisLabel(@as(*const _ISystemMonitorUnion, @ptrCast(self)), bsTitle); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn _ISystemMonitorUnion_get_YAxisLabel(self: *const T, pbsTitle: ?*?BSTR) HRESULT { return @as(*const _ISystemMonitorUnion.VTable, @ptrCast(self.vtable)).get_YAxisLabel(@as(*const _ISystemMonitorUnion, @ptrCast(self)), pbsTitle); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn _ISystemMonitorUnion_CollectSample(self: *const T) HRESULT { return @as(*const _ISystemMonitorUnion.VTable, @ptrCast(self.vtable)).CollectSample(@as(*const _ISystemMonitorUnion, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn _ISystemMonitorUnion_UpdateGraph(self: *const T) HRESULT { return @as(*const _ISystemMonitorUnion.VTable, @ptrCast(self.vtable)).UpdateGraph(@as(*const _ISystemMonitorUnion, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn _ISystemMonitorUnion_BrowseCounters(self: *const T) HRESULT { return @as(*const _ISystemMonitorUnion.VTable, @ptrCast(self.vtable)).BrowseCounters(@as(*const _ISystemMonitorUnion, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn _ISystemMonitorUnion_DisplayProperties(self: *const T) HRESULT { return @as(*const _ISystemMonitorUnion.VTable, @ptrCast(self.vtable)).DisplayProperties(@as(*const _ISystemMonitorUnion, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn _ISystemMonitorUnion_Counter(self: *const T, iIndex: i32, ppICounter: ?*?*ICounterItem) HRESULT { return @as(*const _ISystemMonitorUnion.VTable, @ptrCast(self.vtable)).Counter(@as(*const _ISystemMonitorUnion, @ptrCast(self)), iIndex, ppICounter); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn _ISystemMonitorUnion_AddCounter(self: *const T, bsPath: ?BSTR, ppICounter: ?*?*ICounterItem) HRESULT { return @as(*const _ISystemMonitorUnion.VTable, @ptrCast(self.vtable)).AddCounter(@as(*const _ISystemMonitorUnion, @ptrCast(self)), bsPath, ppICounter); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn _ISystemMonitorUnion_DeleteCounter(self: *const T, pCtr: ?*ICounterItem) HRESULT { return @as(*const _ISystemMonitorUnion.VTable, @ptrCast(self.vtable)).DeleteCounter(@as(*const _ISystemMonitorUnion, @ptrCast(self)), pCtr); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn _ISystemMonitorUnion_get_BackColorCtl(self: *const T, pColor: ?*u32) HRESULT { return @as(*const _ISystemMonitorUnion.VTable, @ptrCast(self.vtable)).get_BackColorCtl(@as(*const _ISystemMonitorUnion, @ptrCast(self)), pColor); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn _ISystemMonitorUnion_put_BackColorCtl(self: *const T, Color: u32) HRESULT { return @as(*const _ISystemMonitorUnion.VTable, @ptrCast(self.vtable)).put_BackColorCtl(@as(*const _ISystemMonitorUnion, @ptrCast(self)), Color); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn _ISystemMonitorUnion_put_LogFileName(self: *const T, bsFileName: ?BSTR) HRESULT { return @as(*const _ISystemMonitorUnion.VTable, @ptrCast(self.vtable)).put_LogFileName(@as(*const _ISystemMonitorUnion, @ptrCast(self)), bsFileName); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn _ISystemMonitorUnion_get_LogFileName(self: *const T, bsFileName: ?*?BSTR) HRESULT { return @as(*const _ISystemMonitorUnion.VTable, @ptrCast(self.vtable)).get_LogFileName(@as(*const _ISystemMonitorUnion, @ptrCast(self)), bsFileName); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn _ISystemMonitorUnion_put_LogViewStart(self: *const T, StartTime: f64) HRESULT { return @as(*const _ISystemMonitorUnion.VTable, @ptrCast(self.vtable)).put_LogViewStart(@as(*const _ISystemMonitorUnion, @ptrCast(self)), StartTime); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn _ISystemMonitorUnion_get_LogViewStart(self: *const T, StartTime: ?*f64) HRESULT { return @as(*const _ISystemMonitorUnion.VTable, @ptrCast(self.vtable)).get_LogViewStart(@as(*const _ISystemMonitorUnion, @ptrCast(self)), StartTime); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn _ISystemMonitorUnion_put_LogViewStop(self: *const T, StopTime: f64) HRESULT { return @as(*const _ISystemMonitorUnion.VTable, @ptrCast(self.vtable)).put_LogViewStop(@as(*const _ISystemMonitorUnion, @ptrCast(self)), StopTime); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn _ISystemMonitorUnion_get_LogViewStop(self: *const T, StopTime: ?*f64) HRESULT { return @as(*const _ISystemMonitorUnion.VTable, @ptrCast(self.vtable)).get_LogViewStop(@as(*const _ISystemMonitorUnion, @ptrCast(self)), StopTime); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn _ISystemMonitorUnion_get_GridColor(self: *const T, pColor: ?*u32) HRESULT { return @as(*const _ISystemMonitorUnion.VTable, @ptrCast(self.vtable)).get_GridColor(@as(*const _ISystemMonitorUnion, @ptrCast(self)), pColor); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn _ISystemMonitorUnion_put_GridColor(self: *const T, Color: u32) HRESULT { return @as(*const _ISystemMonitorUnion.VTable, @ptrCast(self.vtable)).put_GridColor(@as(*const _ISystemMonitorUnion, @ptrCast(self)), Color); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn _ISystemMonitorUnion_get_TimeBarColor(self: *const T, pColor: ?*u32) HRESULT { return @as(*const _ISystemMonitorUnion.VTable, @ptrCast(self.vtable)).get_TimeBarColor(@as(*const _ISystemMonitorUnion, @ptrCast(self)), pColor); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn _ISystemMonitorUnion_put_TimeBarColor(self: *const T, Color: u32) HRESULT { return @as(*const _ISystemMonitorUnion.VTable, @ptrCast(self.vtable)).put_TimeBarColor(@as(*const _ISystemMonitorUnion, @ptrCast(self)), Color); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn _ISystemMonitorUnion_get_Highlight(self: *const T, pbState: ?*i16) HRESULT { return @as(*const _ISystemMonitorUnion.VTable, @ptrCast(self.vtable)).get_Highlight(@as(*const _ISystemMonitorUnion, @ptrCast(self)), pbState); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn _ISystemMonitorUnion_put_Highlight(self: *const T, bState: i16) HRESULT { return @as(*const _ISystemMonitorUnion.VTable, @ptrCast(self.vtable)).put_Highlight(@as(*const _ISystemMonitorUnion, @ptrCast(self)), bState); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn _ISystemMonitorUnion_get_ShowToolbar(self: *const T, pbState: ?*i16) HRESULT { return @as(*const _ISystemMonitorUnion.VTable, @ptrCast(self.vtable)).get_ShowToolbar(@as(*const _ISystemMonitorUnion, @ptrCast(self)), pbState); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn _ISystemMonitorUnion_put_ShowToolbar(self: *const T, bState: i16) HRESULT { return @as(*const _ISystemMonitorUnion.VTable, @ptrCast(self.vtable)).put_ShowToolbar(@as(*const _ISystemMonitorUnion, @ptrCast(self)), bState); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn _ISystemMonitorUnion_Paste(self: *const T) HRESULT { return @as(*const _ISystemMonitorUnion.VTable, @ptrCast(self.vtable)).Paste(@as(*const _ISystemMonitorUnion, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn _ISystemMonitorUnion_Copy(self: *const T) HRESULT { return @as(*const _ISystemMonitorUnion.VTable, @ptrCast(self.vtable)).Copy(@as(*const _ISystemMonitorUnion, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn _ISystemMonitorUnion_Reset(self: *const T) HRESULT { return @as(*const _ISystemMonitorUnion.VTable, @ptrCast(self.vtable)).Reset(@as(*const _ISystemMonitorUnion, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn _ISystemMonitorUnion_put_ReadOnly(self: *const T, bState: i16) HRESULT { return @as(*const _ISystemMonitorUnion.VTable, @ptrCast(self.vtable)).put_ReadOnly(@as(*const _ISystemMonitorUnion, @ptrCast(self)), bState); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn _ISystemMonitorUnion_get_ReadOnly(self: *const T, pbState: ?*i16) HRESULT { return @as(*const _ISystemMonitorUnion.VTable, @ptrCast(self.vtable)).get_ReadOnly(@as(*const _ISystemMonitorUnion, @ptrCast(self)), pbState); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn _ISystemMonitorUnion_put_ReportValueType(self: *const T, eReportValueType: ReportValueTypeConstants) HRESULT { return @as(*const _ISystemMonitorUnion.VTable, @ptrCast(self.vtable)).put_ReportValueType(@as(*const _ISystemMonitorUnion, @ptrCast(self)), eReportValueType); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn _ISystemMonitorUnion_get_ReportValueType(self: *const T, peReportValueType: ?*ReportValueTypeConstants) HRESULT { return @as(*const _ISystemMonitorUnion.VTable, @ptrCast(self.vtable)).get_ReportValueType(@as(*const _ISystemMonitorUnion, @ptrCast(self)), peReportValueType); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn _ISystemMonitorUnion_put_MonitorDuplicateInstances(self: *const T, bState: i16) HRESULT { return @as(*const _ISystemMonitorUnion.VTable, @ptrCast(self.vtable)).put_MonitorDuplicateInstances(@as(*const _ISystemMonitorUnion, @ptrCast(self)), bState); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn _ISystemMonitorUnion_get_MonitorDuplicateInstances(self: *const T, pbState: ?*i16) HRESULT { return @as(*const _ISystemMonitorUnion.VTable, @ptrCast(self.vtable)).get_MonitorDuplicateInstances(@as(*const _ISystemMonitorUnion, @ptrCast(self)), pbState); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn _ISystemMonitorUnion_put_DisplayFilter(self: *const T, iValue: i32) HRESULT { return @as(*const _ISystemMonitorUnion.VTable, @ptrCast(self.vtable)).put_DisplayFilter(@as(*const _ISystemMonitorUnion, @ptrCast(self)), iValue); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn _ISystemMonitorUnion_get_DisplayFilter(self: *const T, piValue: ?*i32) HRESULT { return @as(*const _ISystemMonitorUnion.VTable, @ptrCast(self.vtable)).get_DisplayFilter(@as(*const _ISystemMonitorUnion, @ptrCast(self)), piValue); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn _ISystemMonitorUnion_get_LogFiles(self: *const T, ppILogFiles: ?*?*ILogFiles) HRESULT { return @as(*const _ISystemMonitorUnion.VTable, @ptrCast(self.vtable)).get_LogFiles(@as(*const _ISystemMonitorUnion, @ptrCast(self)), ppILogFiles); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn _ISystemMonitorUnion_put_DataSourceType(self: *const T, eDataSourceType: DataSourceTypeConstants) HRESULT { return @as(*const _ISystemMonitorUnion.VTable, @ptrCast(self.vtable)).put_DataSourceType(@as(*const _ISystemMonitorUnion, @ptrCast(self)), eDataSourceType); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn _ISystemMonitorUnion_get_DataSourceType(self: *const T, peDataSourceType: ?*DataSourceTypeConstants) HRESULT { return @as(*const _ISystemMonitorUnion.VTable, @ptrCast(self.vtable)).get_DataSourceType(@as(*const _ISystemMonitorUnion, @ptrCast(self)), peDataSourceType); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn _ISystemMonitorUnion_put_SqlDsnName(self: *const T, bsSqlDsnName: ?BSTR) HRESULT { return @as(*const _ISystemMonitorUnion.VTable, @ptrCast(self.vtable)).put_SqlDsnName(@as(*const _ISystemMonitorUnion, @ptrCast(self)), bsSqlDsnName); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn _ISystemMonitorUnion_get_SqlDsnName(self: *const T, bsSqlDsnName: ?*?BSTR) HRESULT { return @as(*const _ISystemMonitorUnion.VTable, @ptrCast(self.vtable)).get_SqlDsnName(@as(*const _ISystemMonitorUnion, @ptrCast(self)), bsSqlDsnName); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn _ISystemMonitorUnion_put_SqlLogSetName(self: *const T, bsSqlLogSetName: ?BSTR) HRESULT { return @as(*const _ISystemMonitorUnion.VTable, @ptrCast(self.vtable)).put_SqlLogSetName(@as(*const _ISystemMonitorUnion, @ptrCast(self)), bsSqlLogSetName); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn _ISystemMonitorUnion_get_SqlLogSetName(self: *const T, bsSqlLogSetName: ?*?BSTR) HRESULT { return @as(*const _ISystemMonitorUnion.VTable, @ptrCast(self.vtable)).get_SqlLogSetName(@as(*const _ISystemMonitorUnion, @ptrCast(self)), bsSqlLogSetName); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn _ISystemMonitorUnion_put_EnableDigitGrouping(self: *const T, bState: i16) HRESULT { return @as(*const _ISystemMonitorUnion.VTable, @ptrCast(self.vtable)).put_EnableDigitGrouping(@as(*const _ISystemMonitorUnion, @ptrCast(self)), bState); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn _ISystemMonitorUnion_get_EnableDigitGrouping(self: *const T, pbState: ?*i16) HRESULT { return @as(*const _ISystemMonitorUnion.VTable, @ptrCast(self.vtable)).get_EnableDigitGrouping(@as(*const _ISystemMonitorUnion, @ptrCast(self)), pbState); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn _ISystemMonitorUnion_put_EnableToolTips(self: *const T, bState: i16) HRESULT { return @as(*const _ISystemMonitorUnion.VTable, @ptrCast(self.vtable)).put_EnableToolTips(@as(*const _ISystemMonitorUnion, @ptrCast(self)), bState); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn _ISystemMonitorUnion_get_EnableToolTips(self: *const T, pbState: ?*i16) HRESULT { return @as(*const _ISystemMonitorUnion.VTable, @ptrCast(self.vtable)).get_EnableToolTips(@as(*const _ISystemMonitorUnion, @ptrCast(self)), pbState); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn _ISystemMonitorUnion_put_ShowTimeAxisLabels(self: *const T, bState: i16) HRESULT { return @as(*const _ISystemMonitorUnion.VTable, @ptrCast(self.vtable)).put_ShowTimeAxisLabels(@as(*const _ISystemMonitorUnion, @ptrCast(self)), bState); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn _ISystemMonitorUnion_get_ShowTimeAxisLabels(self: *const T, pbState: ?*i16) HRESULT { return @as(*const _ISystemMonitorUnion.VTable, @ptrCast(self.vtable)).get_ShowTimeAxisLabels(@as(*const _ISystemMonitorUnion, @ptrCast(self)), pbState); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn _ISystemMonitorUnion_put_ChartScroll(self: *const T, bScroll: i16) HRESULT { return @as(*const _ISystemMonitorUnion.VTable, @ptrCast(self.vtable)).put_ChartScroll(@as(*const _ISystemMonitorUnion, @ptrCast(self)), bScroll); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn _ISystemMonitorUnion_get_ChartScroll(self: *const T, pbScroll: ?*i16) HRESULT { return @as(*const _ISystemMonitorUnion.VTable, @ptrCast(self.vtable)).get_ChartScroll(@as(*const _ISystemMonitorUnion, @ptrCast(self)), pbScroll); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn _ISystemMonitorUnion_put_DataPointCount(self: *const T, iNewCount: i32) HRESULT { return @as(*const _ISystemMonitorUnion.VTable, @ptrCast(self.vtable)).put_DataPointCount(@as(*const _ISystemMonitorUnion, @ptrCast(self)), iNewCount); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn _ISystemMonitorUnion_get_DataPointCount(self: *const T, piDataPointCount: ?*i32) HRESULT { return @as(*const _ISystemMonitorUnion.VTable, @ptrCast(self.vtable)).get_DataPointCount(@as(*const _ISystemMonitorUnion, @ptrCast(self)), piDataPointCount); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn _ISystemMonitorUnion_ScaleToFit(self: *const T, bSelectedCountersOnly: i16) HRESULT { return @as(*const _ISystemMonitorUnion.VTable, @ptrCast(self.vtable)).ScaleToFit(@as(*const _ISystemMonitorUnion, @ptrCast(self)), bSelectedCountersOnly); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn _ISystemMonitorUnion_SaveAs(self: *const T, bstrFileName: ?BSTR, eSysmonFileType: SysmonFileType) HRESULT { return @as(*const _ISystemMonitorUnion.VTable, @ptrCast(self.vtable)).SaveAs(@as(*const _ISystemMonitorUnion, @ptrCast(self)), bstrFileName, eSysmonFileType); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn _ISystemMonitorUnion_Relog(self: *const T, bstrFileName: ?BSTR, eSysmonFileType: SysmonFileType, iFilter: i32) HRESULT { return @as(*const _ISystemMonitorUnion.VTable, @ptrCast(self.vtable)).Relog(@as(*const _ISystemMonitorUnion, @ptrCast(self)), bstrFileName, eSysmonFileType, iFilter); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn _ISystemMonitorUnion_ClearData(self: *const T) HRESULT { return @as(*const _ISystemMonitorUnion.VTable, @ptrCast(self.vtable)).ClearData(@as(*const _ISystemMonitorUnion, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn _ISystemMonitorUnion_get_LogSourceStartTime(self: *const T, pDate: ?*f64) HRESULT { return @as(*const _ISystemMonitorUnion.VTable, @ptrCast(self.vtable)).get_LogSourceStartTime(@as(*const _ISystemMonitorUnion, @ptrCast(self)), pDate); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn _ISystemMonitorUnion_get_LogSourceStopTime(self: *const T, pDate: ?*f64) HRESULT { return @as(*const _ISystemMonitorUnion.VTable, @ptrCast(self.vtable)).get_LogSourceStopTime(@as(*const _ISystemMonitorUnion, @ptrCast(self)), pDate); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn _ISystemMonitorUnion_SetLogViewRange(self: *const T, StartTime: f64, StopTime: f64) HRESULT { return @as(*const _ISystemMonitorUnion.VTable, @ptrCast(self.vtable)).SetLogViewRange(@as(*const _ISystemMonitorUnion, @ptrCast(self)), StartTime, StopTime); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn _ISystemMonitorUnion_GetLogViewRange(self: *const T, StartTime: ?*f64, StopTime: ?*f64) HRESULT { return @as(*const _ISystemMonitorUnion.VTable, @ptrCast(self.vtable)).GetLogViewRange(@as(*const _ISystemMonitorUnion, @ptrCast(self)), StartTime, StopTime); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn _ISystemMonitorUnion_BatchingLock(self: *const T, fLock: i16, eBatchReason: SysmonBatchReason) HRESULT { return @as(*const _ISystemMonitorUnion.VTable, @ptrCast(self.vtable)).BatchingLock(@as(*const _ISystemMonitorUnion, @ptrCast(self)), fLock, eBatchReason); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn _ISystemMonitorUnion_LoadSettings(self: *const T, bstrSettingFileName: ?BSTR) HRESULT { return @as(*const _ISystemMonitorUnion.VTable, @ptrCast(self.vtable)).LoadSettings(@as(*const _ISystemMonitorUnion, @ptrCast(self)), bstrSettingFileName); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_DISystemMonitor_Value = Guid.initString("13d73d81-c32e-11cf-9398-00aa00a3ddea"); pub const IID_DISystemMonitor = &IID_DISystemMonitor_Value; pub const DISystemMonitor = extern struct { pub const VTable = extern struct { base: IDispatch.VTable, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IDispatch.MethodMixin(T); }; } pub usingnamespace MethodMixin(@This()); }; const IID_DISystemMonitorInternal_Value = Guid.initString("194eb242-c32c-11cf-9398-00aa00a3ddea"); pub const IID_DISystemMonitorInternal = &IID_DISystemMonitorInternal_Value; pub const DISystemMonitorInternal = extern struct { pub const VTable = extern struct { base: IDispatch.VTable, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IDispatch.MethodMixin(T); }; } pub usingnamespace MethodMixin(@This()); }; const IID_ISystemMonitorEvents_Value = Guid.initString("ee660ea0-4abd-11cf-943a-008029004347"); pub const IID_ISystemMonitorEvents = &IID_ISystemMonitorEvents_Value; pub const ISystemMonitorEvents = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, OnCounterSelected: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ISystemMonitorEvents, Index: i32, ) callconv(@import("std").os.windows.WINAPI) void, else => *const fn ( self: *const ISystemMonitorEvents, Index: i32, ) callconv(@import("std").os.windows.WINAPI) void, }, OnCounterAdded: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ISystemMonitorEvents, Index: i32, ) callconv(@import("std").os.windows.WINAPI) void, else => *const fn ( self: *const ISystemMonitorEvents, Index: i32, ) callconv(@import("std").os.windows.WINAPI) void, }, OnCounterDeleted: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ISystemMonitorEvents, Index: i32, ) callconv(@import("std").os.windows.WINAPI) void, else => *const fn ( self: *const ISystemMonitorEvents, Index: i32, ) callconv(@import("std").os.windows.WINAPI) void, }, OnSampleCollected: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ISystemMonitorEvents, ) callconv(@import("std").os.windows.WINAPI) void, else => *const fn ( self: *const ISystemMonitorEvents, ) callconv(@import("std").os.windows.WINAPI) void, }, OnDblClick: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ISystemMonitorEvents, Index: i32, ) callconv(@import("std").os.windows.WINAPI) void, else => *const fn ( self: *const ISystemMonitorEvents, Index: i32, ) callconv(@import("std").os.windows.WINAPI) void, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISystemMonitorEvents_OnCounterSelected(self: *const T, Index: i32) void { return @as(*const ISystemMonitorEvents.VTable, @ptrCast(self.vtable)).OnCounterSelected(@as(*const ISystemMonitorEvents, @ptrCast(self)), Index); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISystemMonitorEvents_OnCounterAdded(self: *const T, Index: i32) void { return @as(*const ISystemMonitorEvents.VTable, @ptrCast(self.vtable)).OnCounterAdded(@as(*const ISystemMonitorEvents, @ptrCast(self)), Index); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISystemMonitorEvents_OnCounterDeleted(self: *const T, Index: i32) void { return @as(*const ISystemMonitorEvents.VTable, @ptrCast(self.vtable)).OnCounterDeleted(@as(*const ISystemMonitorEvents, @ptrCast(self)), Index); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISystemMonitorEvents_OnSampleCollected(self: *const T) void { return @as(*const ISystemMonitorEvents.VTable, @ptrCast(self.vtable)).OnSampleCollected(@as(*const ISystemMonitorEvents, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISystemMonitorEvents_OnDblClick(self: *const T, Index: i32) void { return @as(*const ISystemMonitorEvents.VTable, @ptrCast(self.vtable)).OnDblClick(@as(*const ISystemMonitorEvents, @ptrCast(self)), Index); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_DISystemMonitorEvents_Value = Guid.initString("84979930-4ab3-11cf-943a-008029004347"); pub const IID_DISystemMonitorEvents = &IID_DISystemMonitorEvents_Value; pub const DISystemMonitorEvents = extern struct { pub const VTable = extern struct { base: IDispatch.VTable, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IDispatch.MethodMixin(T); }; } pub usingnamespace MethodMixin(@This()); }; pub const PERF_OBJECT_TYPE = switch (@import("../zig.zig").arch) { .X64, .Arm64 => extern struct { TotalByteLength: u32, DefinitionLength: u32, HeaderLength: u32, ObjectNameTitleIndex: u32, ObjectNameTitle: u32, ObjectHelpTitleIndex: u32, ObjectHelpTitle: u32, DetailLevel: u32, NumCounters: u32, DefaultCounter: i32, NumInstances: i32, CodePage: u32, PerfTime: LARGE_INTEGER, PerfFreq: LARGE_INTEGER, }, .X86 => extern struct { TotalByteLength: u32, DefinitionLength: u32, HeaderLength: u32, ObjectNameTitleIndex: u32, ObjectNameTitle: ?PWSTR, ObjectHelpTitleIndex: u32, ObjectHelpTitle: ?PWSTR, DetailLevel: u32, NumCounters: u32, DefaultCounter: i32, NumInstances: i32, CodePage: u32, PerfTime: LARGE_INTEGER, PerfFreq: LARGE_INTEGER, }, }; pub const PERF_COUNTER_DEFINITION = switch (@import("../zig.zig").arch) { .X64, .Arm64 => extern struct { ByteLength: u32, CounterNameTitleIndex: u32, CounterNameTitle: u32, CounterHelpTitleIndex: u32, CounterHelpTitle: u32, DefaultScale: i32, DetailLevel: u32, CounterType: u32, CounterSize: u32, CounterOffset: u32, }, .X86 => extern struct { ByteLength: u32, CounterNameTitleIndex: u32, CounterNameTitle: ?PWSTR, CounterHelpTitleIndex: u32, CounterHelpTitle: ?PWSTR, DefaultScale: i32, DetailLevel: u32, CounterType: u32, CounterSize: u32, CounterOffset: u32, }, }; //-------------------------------------------------------------------------------- // Section: Functions (135) //-------------------------------------------------------------------------------- // TODO: this type is limited to platform 'windows5.0' pub extern "kernel32" fn QueryPerformanceCounter( lpPerformanceCount: ?*LARGE_INTEGER, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows5.0' pub extern "kernel32" fn QueryPerformanceFrequency( lpFrequency: ?*LARGE_INTEGER, ) callconv(@import("std").os.windows.WINAPI) BOOL; pub extern "loadperf" fn InstallPerfDllW( szComputerName: ?[*:0]const u16, lpIniFile: ?[*:0]const u16, dwFlags: usize, ) callconv(@import("std").os.windows.WINAPI) u32; pub extern "loadperf" fn InstallPerfDllA( szComputerName: ?[*:0]const u8, lpIniFile: ?[*:0]const u8, dwFlags: usize, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "loadperf" fn LoadPerfCounterTextStringsA( lpCommandLine: ?PSTR, bQuietModeArg: BOOL, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "loadperf" fn LoadPerfCounterTextStringsW( lpCommandLine: ?PWSTR, bQuietModeArg: BOOL, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "loadperf" fn UnloadPerfCounterTextStringsW( lpCommandLine: ?PWSTR, bQuietModeArg: BOOL, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "loadperf" fn UnloadPerfCounterTextStringsA( lpCommandLine: ?PSTR, bQuietModeArg: BOOL, ) callconv(@import("std").os.windows.WINAPI) u32; pub extern "loadperf" fn UpdatePerfNameFilesA( szNewCtrFilePath: ?[*:0]const u8, szNewHlpFilePath: ?[*:0]const u8, szLanguageID: ?PSTR, dwFlags: usize, ) callconv(@import("std").os.windows.WINAPI) u32; pub extern "loadperf" fn UpdatePerfNameFilesW( szNewCtrFilePath: ?[*:0]const u16, szNewHlpFilePath: ?[*:0]const u16, szLanguageID: ?PWSTR, dwFlags: usize, ) callconv(@import("std").os.windows.WINAPI) u32; pub extern "loadperf" fn SetServiceAsTrustedA( szReserved: ?[*:0]const u8, szServiceName: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) u32; pub extern "loadperf" fn SetServiceAsTrustedW( szReserved: ?[*:0]const u16, szServiceName: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) u32; pub extern "loadperf" fn BackupPerfRegistryToFileW( szFileName: ?[*:0]const u16, szCommentString: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) u32; pub extern "loadperf" fn RestorePerfRegistryFromFileW( szFileName: ?[*:0]const u16, szLangId: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'windows6.0.6000' pub extern "advapi32" fn PerfStartProvider( ProviderGuid: ?*Guid, ControlCallback: ?PERFLIBREQUEST, phProvider: ?*PerfProviderHandle, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'windows6.0.6000' pub extern "advapi32" fn PerfStartProviderEx( ProviderGuid: ?*Guid, ProviderContext: ?*PERF_PROVIDER_CONTEXT, Provider: ?*PerfProviderHandle, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'windows6.0.6000' pub extern "advapi32" fn PerfStopProvider( ProviderHandle: PerfProviderHandle, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'windows6.0.6000' pub extern "advapi32" fn PerfSetCounterSetInfo( ProviderHandle: ?HANDLE, // TODO: what to do with BytesParamIndex 2? Template: ?*PERF_COUNTERSET_INFO, TemplateSize: u32, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'windows6.0.6000' pub extern "advapi32" fn PerfCreateInstance( ProviderHandle: PerfProviderHandle, CounterSetGuid: ?*const Guid, Name: ?[*:0]const u16, Id: u32, ) callconv(@import("std").os.windows.WINAPI) ?*PERF_COUNTERSET_INSTANCE; // TODO: this type is limited to platform 'windows6.0.6000' pub extern "advapi32" fn PerfDeleteInstance( Provider: PerfProviderHandle, InstanceBlock: ?*PERF_COUNTERSET_INSTANCE, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'windows6.0.6000' pub extern "advapi32" fn PerfQueryInstance( ProviderHandle: ?HANDLE, CounterSetGuid: ?*const Guid, Name: ?[*:0]const u16, Id: u32, ) callconv(@import("std").os.windows.WINAPI) ?*PERF_COUNTERSET_INSTANCE; // TODO: this type is limited to platform 'windows6.0.6000' pub extern "advapi32" fn PerfSetCounterRefValue( Provider: ?HANDLE, Instance: ?*PERF_COUNTERSET_INSTANCE, CounterId: u32, Address: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'windows6.0.6000' pub extern "advapi32" fn PerfSetULongCounterValue( Provider: ?HANDLE, Instance: ?*PERF_COUNTERSET_INSTANCE, CounterId: u32, Value: u32, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'windows6.0.6000' pub extern "advapi32" fn PerfSetULongLongCounterValue( Provider: ?HANDLE, Instance: ?*PERF_COUNTERSET_INSTANCE, CounterId: u32, Value: u64, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'windows6.0.6000' pub extern "advapi32" fn PerfIncrementULongCounterValue( Provider: ?HANDLE, Instance: ?*PERF_COUNTERSET_INSTANCE, CounterId: u32, Value: u32, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'windows6.0.6000' pub extern "advapi32" fn PerfIncrementULongLongCounterValue( Provider: ?HANDLE, Instance: ?*PERF_COUNTERSET_INSTANCE, CounterId: u32, Value: u64, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'windows6.0.6000' pub extern "advapi32" fn PerfDecrementULongCounterValue( Provider: ?HANDLE, Instance: ?*PERF_COUNTERSET_INSTANCE, CounterId: u32, Value: u32, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'windows6.0.6000' pub extern "advapi32" fn PerfDecrementULongLongCounterValue( Provider: ?HANDLE, Instance: ?*PERF_COUNTERSET_INSTANCE, CounterId: u32, Value: u64, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'windows10.0.14393' pub extern "advapi32" fn PerfEnumerateCounterSet( szMachine: ?[*:0]const u16, pCounterSetIds: ?[*]Guid, cCounterSetIds: u32, pcCounterSetIdsActual: ?*u32, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'windows10.0.14393' pub extern "advapi32" fn PerfEnumerateCounterSetInstances( szMachine: ?[*:0]const u16, pCounterSetId: ?*const Guid, // TODO: what to do with BytesParamIndex 3? pInstances: ?*PERF_INSTANCE_HEADER, cbInstances: u32, pcbInstancesActual: ?*u32, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'windows10.0.14393' pub extern "advapi32" fn PerfQueryCounterSetRegistrationInfo( szMachine: ?[*:0]const u16, pCounterSetId: ?*const Guid, requestCode: PerfRegInfoType, requestLangId: u32, // TODO: what to do with BytesParamIndex 5? pbRegInfo: ?*u8, cbRegInfo: u32, pcbRegInfoActual: ?*u32, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'windows10.0.14393' pub extern "advapi32" fn PerfOpenQueryHandle( szMachine: ?[*:0]const u16, phQuery: ?*PerfQueryHandle, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'windows10.0.14393' pub extern "advapi32" fn PerfCloseQueryHandle( hQuery: ?HANDLE, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'windows10.0.14393' pub extern "advapi32" fn PerfQueryCounterInfo( hQuery: PerfQueryHandle, // TODO: what to do with BytesParamIndex 2? pCounters: ?*PERF_COUNTER_IDENTIFIER, cbCounters: u32, pcbCountersActual: ?*u32, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'windows10.0.14393' pub extern "advapi32" fn PerfQueryCounterData( hQuery: PerfQueryHandle, // TODO: what to do with BytesParamIndex 2? pCounterBlock: ?*PERF_DATA_HEADER, cbCounterBlock: u32, pcbCounterBlockActual: ?*u32, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'windows10.0.14393' pub extern "advapi32" fn PerfAddCounters( hQuery: PerfQueryHandle, // TODO: what to do with BytesParamIndex 2? pCounters: ?*PERF_COUNTER_IDENTIFIER, cbCounters: u32, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'windows10.0.14393' pub extern "advapi32" fn PerfDeleteCounters( hQuery: PerfQueryHandle, // TODO: what to do with BytesParamIndex 2? pCounters: ?*PERF_COUNTER_IDENTIFIER, cbCounters: u32, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "pdh" fn PdhGetDllVersion( lpdwVersion: ?*PDH_DLL_VERSION, ) callconv(@import("std").os.windows.WINAPI) i32; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "pdh" fn PdhOpenQueryW( szDataSource: ?[*:0]const u16, dwUserData: usize, phQuery: ?*isize, ) callconv(@import("std").os.windows.WINAPI) i32; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "pdh" fn PdhOpenQueryA( szDataSource: ?[*:0]const u8, dwUserData: usize, phQuery: ?*isize, ) callconv(@import("std").os.windows.WINAPI) i32; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "pdh" fn PdhAddCounterW( hQuery: isize, szFullCounterPath: ?[*:0]const u16, dwUserData: usize, phCounter: ?*isize, ) callconv(@import("std").os.windows.WINAPI) i32; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "pdh" fn PdhAddCounterA( hQuery: isize, szFullCounterPath: ?[*:0]const u8, dwUserData: usize, phCounter: ?*isize, ) callconv(@import("std").os.windows.WINAPI) i32; // TODO: this type is limited to platform 'windows6.0.6000' pub extern "pdh" fn PdhAddEnglishCounterW( hQuery: isize, szFullCounterPath: ?[*:0]const u16, dwUserData: usize, phCounter: ?*isize, ) callconv(@import("std").os.windows.WINAPI) i32; // TODO: this type is limited to platform 'windows6.0.6000' pub extern "pdh" fn PdhAddEnglishCounterA( hQuery: isize, szFullCounterPath: ?[*:0]const u8, dwUserData: usize, phCounter: ?*isize, ) callconv(@import("std").os.windows.WINAPI) i32; // TODO: this type is limited to platform 'windows6.0.6000' pub extern "pdh" fn PdhCollectQueryDataWithTime( hQuery: isize, pllTimeStamp: ?*i64, ) callconv(@import("std").os.windows.WINAPI) i32; // TODO: this type is limited to platform 'windows6.0.6000' pub extern "pdh" fn PdhValidatePathExW( hDataSource: isize, szFullPathBuffer: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) i32; // TODO: this type is limited to platform 'windows6.0.6000' pub extern "pdh" fn PdhValidatePathExA( hDataSource: isize, szFullPathBuffer: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) i32; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "pdh" fn PdhRemoveCounter( hCounter: isize, ) callconv(@import("std").os.windows.WINAPI) i32; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "pdh" fn PdhCollectQueryData( hQuery: isize, ) callconv(@import("std").os.windows.WINAPI) i32; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "pdh" fn PdhCloseQuery( hQuery: isize, ) callconv(@import("std").os.windows.WINAPI) i32; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "pdh" fn PdhGetFormattedCounterValue( hCounter: isize, dwFormat: PDH_FMT, lpdwType: ?*u32, pValue: ?*PDH_FMT_COUNTERVALUE, ) callconv(@import("std").os.windows.WINAPI) i32; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "pdh" fn PdhGetFormattedCounterArrayA( hCounter: isize, dwFormat: PDH_FMT, lpdwBufferSize: ?*u32, lpdwItemCount: ?*u32, ItemBuffer: ?*PDH_FMT_COUNTERVALUE_ITEM_A, ) callconv(@import("std").os.windows.WINAPI) i32; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "pdh" fn PdhGetFormattedCounterArrayW( hCounter: isize, dwFormat: PDH_FMT, lpdwBufferSize: ?*u32, lpdwItemCount: ?*u32, ItemBuffer: ?*PDH_FMT_COUNTERVALUE_ITEM_W, ) callconv(@import("std").os.windows.WINAPI) i32; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "pdh" fn PdhGetRawCounterValue( hCounter: isize, lpdwType: ?*u32, pValue: ?*PDH_RAW_COUNTER, ) callconv(@import("std").os.windows.WINAPI) i32; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "pdh" fn PdhGetRawCounterArrayA( hCounter: isize, lpdwBufferSize: ?*u32, lpdwItemCount: ?*u32, ItemBuffer: ?*PDH_RAW_COUNTER_ITEM_A, ) callconv(@import("std").os.windows.WINAPI) i32; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "pdh" fn PdhGetRawCounterArrayW( hCounter: isize, lpdwBufferSize: ?*u32, lpdwItemCount: ?*u32, ItemBuffer: ?*PDH_RAW_COUNTER_ITEM_W, ) callconv(@import("std").os.windows.WINAPI) i32; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "pdh" fn PdhCalculateCounterFromRawValue( hCounter: isize, dwFormat: PDH_FMT, rawValue1: ?*PDH_RAW_COUNTER, rawValue2: ?*PDH_RAW_COUNTER, fmtValue: ?*PDH_FMT_COUNTERVALUE, ) callconv(@import("std").os.windows.WINAPI) i32; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "pdh" fn PdhComputeCounterStatistics( hCounter: isize, dwFormat: PDH_FMT, dwFirstEntry: u32, dwNumEntries: u32, lpRawValueArray: ?*PDH_RAW_COUNTER, data: ?*PDH_STATISTICS, ) callconv(@import("std").os.windows.WINAPI) i32; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "pdh" fn PdhGetCounterInfoW( hCounter: isize, bRetrieveExplainText: BOOLEAN, pdwBufferSize: ?*u32, lpBuffer: ?*PDH_COUNTER_INFO_W, ) callconv(@import("std").os.windows.WINAPI) i32; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "pdh" fn PdhGetCounterInfoA( hCounter: isize, bRetrieveExplainText: BOOLEAN, pdwBufferSize: ?*u32, lpBuffer: ?*PDH_COUNTER_INFO_A, ) callconv(@import("std").os.windows.WINAPI) i32; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "pdh" fn PdhSetCounterScaleFactor( hCounter: isize, lFactor: i32, ) callconv(@import("std").os.windows.WINAPI) i32; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "pdh" fn PdhConnectMachineW( szMachineName: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) i32; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "pdh" fn PdhConnectMachineA( szMachineName: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) i32; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "pdh" fn PdhEnumMachinesW( szDataSource: ?[*:0]const u16, mszMachineList: ?[*]u16, pcchBufferSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) i32; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "pdh" fn PdhEnumMachinesA( szDataSource: ?[*:0]const u8, mszMachineList: ?[*]u8, pcchBufferSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) i32; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "pdh" fn PdhEnumObjectsW( szDataSource: ?[*:0]const u16, szMachineName: ?[*:0]const u16, mszObjectList: ?[*]u16, pcchBufferSize: ?*u32, dwDetailLevel: PERF_DETAIL, bRefresh: BOOL, ) callconv(@import("std").os.windows.WINAPI) i32; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "pdh" fn PdhEnumObjectsA( szDataSource: ?[*:0]const u8, szMachineName: ?[*:0]const u8, mszObjectList: ?[*]u8, pcchBufferSize: ?*u32, dwDetailLevel: PERF_DETAIL, bRefresh: BOOL, ) callconv(@import("std").os.windows.WINAPI) i32; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "pdh" fn PdhEnumObjectItemsW( szDataSource: ?[*:0]const u16, szMachineName: ?[*:0]const u16, szObjectName: ?[*:0]const u16, mszCounterList: ?[*]u16, pcchCounterListLength: ?*u32, mszInstanceList: ?[*]u16, pcchInstanceListLength: ?*u32, dwDetailLevel: PERF_DETAIL, dwFlags: u32, ) callconv(@import("std").os.windows.WINAPI) i32; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "pdh" fn PdhEnumObjectItemsA( szDataSource: ?[*:0]const u8, szMachineName: ?[*:0]const u8, szObjectName: ?[*:0]const u8, mszCounterList: ?[*]u8, pcchCounterListLength: ?*u32, mszInstanceList: ?[*]u8, pcchInstanceListLength: ?*u32, dwDetailLevel: PERF_DETAIL, dwFlags: u32, ) callconv(@import("std").os.windows.WINAPI) i32; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "pdh" fn PdhMakeCounterPathW( pCounterPathElements: ?*PDH_COUNTER_PATH_ELEMENTS_W, szFullPathBuffer: ?PWSTR, pcchBufferSize: ?*u32, dwFlags: PDH_PATH_FLAGS, ) callconv(@import("std").os.windows.WINAPI) i32; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "pdh" fn PdhMakeCounterPathA( pCounterPathElements: ?*PDH_COUNTER_PATH_ELEMENTS_A, szFullPathBuffer: ?PSTR, pcchBufferSize: ?*u32, dwFlags: PDH_PATH_FLAGS, ) callconv(@import("std").os.windows.WINAPI) i32; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "pdh" fn PdhParseCounterPathW( szFullPathBuffer: ?[*:0]const u16, pCounterPathElements: ?*PDH_COUNTER_PATH_ELEMENTS_W, pdwBufferSize: ?*u32, dwFlags: u32, ) callconv(@import("std").os.windows.WINAPI) i32; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "pdh" fn PdhParseCounterPathA( szFullPathBuffer: ?[*:0]const u8, pCounterPathElements: ?*PDH_COUNTER_PATH_ELEMENTS_A, pdwBufferSize: ?*u32, dwFlags: u32, ) callconv(@import("std").os.windows.WINAPI) i32; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "pdh" fn PdhParseInstanceNameW( szInstanceString: ?[*:0]const u16, szInstanceName: ?PWSTR, pcchInstanceNameLength: ?*u32, szParentName: ?PWSTR, pcchParentNameLength: ?*u32, lpIndex: ?*u32, ) callconv(@import("std").os.windows.WINAPI) i32; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "pdh" fn PdhParseInstanceNameA( szInstanceString: ?[*:0]const u8, szInstanceName: ?PSTR, pcchInstanceNameLength: ?*u32, szParentName: ?PSTR, pcchParentNameLength: ?*u32, lpIndex: ?*u32, ) callconv(@import("std").os.windows.WINAPI) i32; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "pdh" fn PdhValidatePathW( szFullPathBuffer: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) i32; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "pdh" fn PdhValidatePathA( szFullPathBuffer: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) i32; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "pdh" fn PdhGetDefaultPerfObjectW( szDataSource: ?[*:0]const u16, szMachineName: ?[*:0]const u16, szDefaultObjectName: ?PWSTR, pcchBufferSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) i32; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "pdh" fn PdhGetDefaultPerfObjectA( szDataSource: ?[*:0]const u8, szMachineName: ?[*:0]const u8, szDefaultObjectName: ?PSTR, pcchBufferSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) i32; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "pdh" fn PdhGetDefaultPerfCounterW( szDataSource: ?[*:0]const u16, szMachineName: ?[*:0]const u16, szObjectName: ?[*:0]const u16, szDefaultCounterName: ?PWSTR, pcchBufferSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) i32; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "pdh" fn PdhGetDefaultPerfCounterA( szDataSource: ?[*:0]const u8, szMachineName: ?[*:0]const u8, szObjectName: ?[*:0]const u8, szDefaultCounterName: ?PSTR, pcchBufferSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) i32; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "pdh" fn PdhBrowseCountersW( pBrowseDlgData: ?*PDH_BROWSE_DLG_CONFIG_W, ) callconv(@import("std").os.windows.WINAPI) i32; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "pdh" fn PdhBrowseCountersA( pBrowseDlgData: ?*PDH_BROWSE_DLG_CONFIG_A, ) callconv(@import("std").os.windows.WINAPI) i32; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "pdh" fn PdhExpandCounterPathW( szWildCardPath: ?[*:0]const u16, mszExpandedPathList: ?[*]u16, pcchPathListLength: ?*u32, ) callconv(@import("std").os.windows.WINAPI) i32; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "pdh" fn PdhExpandCounterPathA( szWildCardPath: ?[*:0]const u8, mszExpandedPathList: ?[*]u8, pcchPathListLength: ?*u32, ) callconv(@import("std").os.windows.WINAPI) i32; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "pdh" fn PdhLookupPerfNameByIndexW( szMachineName: ?[*:0]const u16, dwNameIndex: u32, szNameBuffer: ?PWSTR, pcchNameBufferSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) i32; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "pdh" fn PdhLookupPerfNameByIndexA( szMachineName: ?[*:0]const u8, dwNameIndex: u32, szNameBuffer: ?PSTR, pcchNameBufferSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) i32; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "pdh" fn PdhLookupPerfIndexByNameW( szMachineName: ?[*:0]const u16, szNameBuffer: ?[*:0]const u16, pdwIndex: ?*u32, ) callconv(@import("std").os.windows.WINAPI) i32; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "pdh" fn PdhLookupPerfIndexByNameA( szMachineName: ?[*:0]const u8, szNameBuffer: ?[*:0]const u8, pdwIndex: ?*u32, ) callconv(@import("std").os.windows.WINAPI) i32; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "pdh" fn PdhExpandWildCardPathA( szDataSource: ?[*:0]const u8, szWildCardPath: ?[*:0]const u8, mszExpandedPathList: ?[*]u8, pcchPathListLength: ?*u32, dwFlags: u32, ) callconv(@import("std").os.windows.WINAPI) i32; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "pdh" fn PdhExpandWildCardPathW( szDataSource: ?[*:0]const u16, szWildCardPath: ?[*:0]const u16, mszExpandedPathList: ?[*]u16, pcchPathListLength: ?*u32, dwFlags: u32, ) callconv(@import("std").os.windows.WINAPI) i32; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "pdh" fn PdhOpenLogW( szLogFileName: ?[*:0]const u16, dwAccessFlags: PDH_LOG, lpdwLogType: ?*PDH_LOG_TYPE, hQuery: isize, dwMaxSize: u32, szUserCaption: ?[*:0]const u16, phLog: ?*isize, ) callconv(@import("std").os.windows.WINAPI) i32; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "pdh" fn PdhOpenLogA( szLogFileName: ?[*:0]const u8, dwAccessFlags: PDH_LOG, lpdwLogType: ?*PDH_LOG_TYPE, hQuery: isize, dwMaxSize: u32, szUserCaption: ?[*:0]const u8, phLog: ?*isize, ) callconv(@import("std").os.windows.WINAPI) i32; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "pdh" fn PdhUpdateLogW( hLog: isize, szUserString: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) i32; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "pdh" fn PdhUpdateLogA( hLog: isize, szUserString: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) i32; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "pdh" fn PdhUpdateLogFileCatalog( hLog: isize, ) callconv(@import("std").os.windows.WINAPI) i32; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "pdh" fn PdhGetLogFileSize( hLog: isize, llSize: ?*i64, ) callconv(@import("std").os.windows.WINAPI) i32; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "pdh" fn PdhCloseLog( hLog: isize, dwFlags: u32, ) callconv(@import("std").os.windows.WINAPI) i32; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "pdh" fn PdhSelectDataSourceW( hWndOwner: ?HWND, dwFlags: PDH_SELECT_DATA_SOURCE_FLAGS, szDataSource: ?PWSTR, pcchBufferLength: ?*u32, ) callconv(@import("std").os.windows.WINAPI) i32; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "pdh" fn PdhSelectDataSourceA( hWndOwner: ?HWND, dwFlags: PDH_SELECT_DATA_SOURCE_FLAGS, szDataSource: ?PSTR, pcchBufferLength: ?*u32, ) callconv(@import("std").os.windows.WINAPI) i32; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "pdh" fn PdhIsRealTimeQuery( hQuery: isize, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "pdh" fn PdhSetQueryTimeRange( hQuery: isize, pInfo: ?*PDH_TIME_INFO, ) callconv(@import("std").os.windows.WINAPI) i32; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "pdh" fn PdhGetDataSourceTimeRangeW( szDataSource: ?[*:0]const u16, pdwNumEntries: ?*u32, pInfo: ?*PDH_TIME_INFO, pdwBufferSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) i32; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "pdh" fn PdhGetDataSourceTimeRangeA( szDataSource: ?[*:0]const u8, pdwNumEntries: ?*u32, pInfo: ?*PDH_TIME_INFO, pdwBufferSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) i32; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "pdh" fn PdhCollectQueryDataEx( hQuery: isize, dwIntervalTime: u32, hNewDataEvent: ?HANDLE, ) callconv(@import("std").os.windows.WINAPI) i32; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "pdh" fn PdhFormatFromRawValue( dwCounterType: u32, dwFormat: PDH_FMT, pTimeBase: ?*i64, pRawValue1: ?*PDH_RAW_COUNTER, pRawValue2: ?*PDH_RAW_COUNTER, pFmtValue: ?*PDH_FMT_COUNTERVALUE, ) callconv(@import("std").os.windows.WINAPI) i32; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "pdh" fn PdhGetCounterTimeBase( hCounter: isize, pTimeBase: ?*i64, ) callconv(@import("std").os.windows.WINAPI) i32; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "pdh" fn PdhReadRawLogRecord( hLog: isize, ftRecord: FILETIME, pRawLogRecord: ?*PDH_RAW_LOG_RECORD, pdwBufferLength: ?*u32, ) callconv(@import("std").os.windows.WINAPI) i32; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "pdh" fn PdhSetDefaultRealTimeDataSource( dwDataSourceId: REAL_TIME_DATA_SOURCE_ID_FLAGS, ) callconv(@import("std").os.windows.WINAPI) i32; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "pdh" fn PdhBindInputDataSourceW( phDataSource: ?*isize, LogFileNameList: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) i32; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "pdh" fn PdhBindInputDataSourceA( phDataSource: ?*isize, LogFileNameList: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) i32; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "pdh" fn PdhOpenQueryH( hDataSource: isize, dwUserData: usize, phQuery: ?*isize, ) callconv(@import("std").os.windows.WINAPI) i32; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "pdh" fn PdhEnumMachinesHW( hDataSource: isize, mszMachineList: ?[*]u16, pcchBufferSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) i32; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "pdh" fn PdhEnumMachinesHA( hDataSource: isize, mszMachineList: ?[*]u8, pcchBufferSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) i32; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "pdh" fn PdhEnumObjectsHW( hDataSource: isize, szMachineName: ?[*:0]const u16, mszObjectList: ?[*]u16, pcchBufferSize: ?*u32, dwDetailLevel: PERF_DETAIL, bRefresh: BOOL, ) callconv(@import("std").os.windows.WINAPI) i32; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "pdh" fn PdhEnumObjectsHA( hDataSource: isize, szMachineName: ?[*:0]const u8, mszObjectList: ?[*]u8, pcchBufferSize: ?*u32, dwDetailLevel: PERF_DETAIL, bRefresh: BOOL, ) callconv(@import("std").os.windows.WINAPI) i32; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "pdh" fn PdhEnumObjectItemsHW( hDataSource: isize, szMachineName: ?[*:0]const u16, szObjectName: ?[*:0]const u16, mszCounterList: ?[*]u16, pcchCounterListLength: ?*u32, mszInstanceList: ?[*]u16, pcchInstanceListLength: ?*u32, dwDetailLevel: PERF_DETAIL, dwFlags: u32, ) callconv(@import("std").os.windows.WINAPI) i32; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "pdh" fn PdhEnumObjectItemsHA( hDataSource: isize, szMachineName: ?[*:0]const u8, szObjectName: ?[*:0]const u8, mszCounterList: ?[*]u8, pcchCounterListLength: ?*u32, mszInstanceList: ?[*]u8, pcchInstanceListLength: ?*u32, dwDetailLevel: PERF_DETAIL, dwFlags: u32, ) callconv(@import("std").os.windows.WINAPI) i32; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "pdh" fn PdhExpandWildCardPathHW( hDataSource: isize, szWildCardPath: ?[*:0]const u16, mszExpandedPathList: ?[*]u16, pcchPathListLength: ?*u32, dwFlags: u32, ) callconv(@import("std").os.windows.WINAPI) i32; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "pdh" fn PdhExpandWildCardPathHA( hDataSource: isize, szWildCardPath: ?[*:0]const u8, mszExpandedPathList: ?[*]u8, pcchPathListLength: ?*u32, dwFlags: u32, ) callconv(@import("std").os.windows.WINAPI) i32; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "pdh" fn PdhGetDataSourceTimeRangeH( hDataSource: isize, pdwNumEntries: ?*u32, pInfo: ?*PDH_TIME_INFO, pdwBufferSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) i32; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "pdh" fn PdhGetDefaultPerfObjectHW( hDataSource: isize, szMachineName: ?[*:0]const u16, szDefaultObjectName: ?PWSTR, pcchBufferSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) i32; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "pdh" fn PdhGetDefaultPerfObjectHA( hDataSource: isize, szMachineName: ?[*:0]const u8, szDefaultObjectName: ?PSTR, pcchBufferSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) i32; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "pdh" fn PdhGetDefaultPerfCounterHW( hDataSource: isize, szMachineName: ?[*:0]const u16, szObjectName: ?[*:0]const u16, szDefaultCounterName: ?PWSTR, pcchBufferSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) i32; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "pdh" fn PdhGetDefaultPerfCounterHA( hDataSource: isize, szMachineName: ?[*:0]const u8, szObjectName: ?[*:0]const u8, szDefaultCounterName: ?PSTR, pcchBufferSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) i32; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "pdh" fn PdhBrowseCountersHW( pBrowseDlgData: ?*PDH_BROWSE_DLG_CONFIG_HW, ) callconv(@import("std").os.windows.WINAPI) i32; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "pdh" fn PdhBrowseCountersHA( pBrowseDlgData: ?*PDH_BROWSE_DLG_CONFIG_HA, ) callconv(@import("std").os.windows.WINAPI) i32; pub extern "pdh" fn PdhVerifySQLDBW( szDataSource: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) i32; pub extern "pdh" fn PdhVerifySQLDBA( szDataSource: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) i32; pub extern "pdh" fn PdhCreateSQLTablesW( szDataSource: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) i32; pub extern "pdh" fn PdhCreateSQLTablesA( szDataSource: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) i32; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "pdh" fn PdhEnumLogSetNamesW( szDataSource: ?[*:0]const u16, mszDataSetNameList: ?[*]u16, pcchBufferLength: ?*u32, ) callconv(@import("std").os.windows.WINAPI) i32; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "pdh" fn PdhEnumLogSetNamesA( szDataSource: ?[*:0]const u8, mszDataSetNameList: ?[*]u8, pcchBufferLength: ?*u32, ) callconv(@import("std").os.windows.WINAPI) i32; pub extern "pdh" fn PdhGetLogSetGUID( hLog: isize, pGuid: ?*Guid, pRunId: ?*i32, ) callconv(@import("std").os.windows.WINAPI) i32; pub extern "pdh" fn PdhSetLogSetRunID( hLog: isize, RunId: i32, ) callconv(@import("std").os.windows.WINAPI) i32; //-------------------------------------------------------------------------------- // Section: Unicode Aliases (50) //-------------------------------------------------------------------------------- const thismodule = @This(); pub usingnamespace switch (@import("../zig.zig").unicode_mode) { .ansi => struct { pub const PDH_RAW_COUNTER_ITEM_ = thismodule.PDH_RAW_COUNTER_ITEM_A; pub const PDH_FMT_COUNTERVALUE_ITEM_ = thismodule.PDH_FMT_COUNTERVALUE_ITEM_A; pub const PDH_COUNTER_PATH_ELEMENTS_ = thismodule.PDH_COUNTER_PATH_ELEMENTS_A; pub const PDH_DATA_ITEM_PATH_ELEMENTS_ = thismodule.PDH_DATA_ITEM_PATH_ELEMENTS_A; pub const PDH_COUNTER_INFO_ = thismodule.PDH_COUNTER_INFO_A; pub const PDH_LOG_SERVICE_QUERY_INFO_ = thismodule.PDH_LOG_SERVICE_QUERY_INFO_A; pub const PDH_BROWSE_DLG_CONFIG_H = thismodule.PDH_BROWSE_DLG_CONFIG_HA; pub const PDH_BROWSE_DLG_CONFIG_ = thismodule.PDH_BROWSE_DLG_CONFIG_A; pub const InstallPerfDll = thismodule.InstallPerfDllA; pub const LoadPerfCounterTextStrings = thismodule.LoadPerfCounterTextStringsA; pub const UnloadPerfCounterTextStrings = thismodule.UnloadPerfCounterTextStringsA; pub const UpdatePerfNameFiles = thismodule.UpdatePerfNameFilesA; pub const SetServiceAsTrusted = thismodule.SetServiceAsTrustedA; pub const PdhOpenQuery = thismodule.PdhOpenQueryA; pub const PdhAddCounter = thismodule.PdhAddCounterA; pub const PdhAddEnglishCounter = thismodule.PdhAddEnglishCounterA; pub const PdhValidatePathEx = thismodule.PdhValidatePathExA; pub const PdhGetFormattedCounterArray = thismodule.PdhGetFormattedCounterArrayA; pub const PdhGetRawCounterArray = thismodule.PdhGetRawCounterArrayA; pub const PdhGetCounterInfo = thismodule.PdhGetCounterInfoA; pub const PdhConnectMachine = thismodule.PdhConnectMachineA; pub const PdhEnumMachines = thismodule.PdhEnumMachinesA; pub const PdhEnumObjects = thismodule.PdhEnumObjectsA; pub const PdhEnumObjectItems = thismodule.PdhEnumObjectItemsA; pub const PdhMakeCounterPath = thismodule.PdhMakeCounterPathA; pub const PdhParseCounterPath = thismodule.PdhParseCounterPathA; pub const PdhParseInstanceName = thismodule.PdhParseInstanceNameA; pub const PdhValidatePath = thismodule.PdhValidatePathA; pub const PdhGetDefaultPerfObject = thismodule.PdhGetDefaultPerfObjectA; pub const PdhGetDefaultPerfCounter = thismodule.PdhGetDefaultPerfCounterA; pub const PdhBrowseCounters = thismodule.PdhBrowseCountersA; pub const PdhExpandCounterPath = thismodule.PdhExpandCounterPathA; pub const PdhLookupPerfNameByIndex = thismodule.PdhLookupPerfNameByIndexA; pub const PdhLookupPerfIndexByName = thismodule.PdhLookupPerfIndexByNameA; pub const PdhExpandWildCardPath = thismodule.PdhExpandWildCardPathA; pub const PdhOpenLog = thismodule.PdhOpenLogA; pub const PdhUpdateLog = thismodule.PdhUpdateLogA; pub const PdhSelectDataSource = thismodule.PdhSelectDataSourceA; pub const PdhGetDataSourceTimeRange = thismodule.PdhGetDataSourceTimeRangeA; pub const PdhBindInputDataSource = thismodule.PdhBindInputDataSourceA; pub const PdhEnumMachinesH = thismodule.PdhEnumMachinesHA; pub const PdhEnumObjectsH = thismodule.PdhEnumObjectsHA; pub const PdhEnumObjectItemsH = thismodule.PdhEnumObjectItemsHA; pub const PdhExpandWildCardPathH = thismodule.PdhExpandWildCardPathHA; pub const PdhGetDefaultPerfObjectH = thismodule.PdhGetDefaultPerfObjectHA; pub const PdhGetDefaultPerfCounterH = thismodule.PdhGetDefaultPerfCounterHA; pub const PdhBrowseCountersH = thismodule.PdhBrowseCountersHA; pub const PdhVerifySQLDB = thismodule.PdhVerifySQLDBA; pub const PdhCreateSQLTables = thismodule.PdhCreateSQLTablesA; pub const PdhEnumLogSetNames = thismodule.PdhEnumLogSetNamesA; }, .wide => struct { pub const PDH_RAW_COUNTER_ITEM_ = thismodule.PDH_RAW_COUNTER_ITEM_W; pub const PDH_FMT_COUNTERVALUE_ITEM_ = thismodule.PDH_FMT_COUNTERVALUE_ITEM_W; pub const PDH_COUNTER_PATH_ELEMENTS_ = thismodule.PDH_COUNTER_PATH_ELEMENTS_W; pub const PDH_DATA_ITEM_PATH_ELEMENTS_ = thismodule.PDH_DATA_ITEM_PATH_ELEMENTS_W; pub const PDH_COUNTER_INFO_ = thismodule.PDH_COUNTER_INFO_W; pub const PDH_LOG_SERVICE_QUERY_INFO_ = thismodule.PDH_LOG_SERVICE_QUERY_INFO_W; pub const PDH_BROWSE_DLG_CONFIG_H = thismodule.PDH_BROWSE_DLG_CONFIG_HW; pub const PDH_BROWSE_DLG_CONFIG_ = thismodule.PDH_BROWSE_DLG_CONFIG_W; pub const InstallPerfDll = thismodule.InstallPerfDllW; pub const LoadPerfCounterTextStrings = thismodule.LoadPerfCounterTextStringsW; pub const UnloadPerfCounterTextStrings = thismodule.UnloadPerfCounterTextStringsW; pub const UpdatePerfNameFiles = thismodule.UpdatePerfNameFilesW; pub const SetServiceAsTrusted = thismodule.SetServiceAsTrustedW; pub const PdhOpenQuery = thismodule.PdhOpenQueryW; pub const PdhAddCounter = thismodule.PdhAddCounterW; pub const PdhAddEnglishCounter = thismodule.PdhAddEnglishCounterW; pub const PdhValidatePathEx = thismodule.PdhValidatePathExW; pub const PdhGetFormattedCounterArray = thismodule.PdhGetFormattedCounterArrayW; pub const PdhGetRawCounterArray = thismodule.PdhGetRawCounterArrayW; pub const PdhGetCounterInfo = thismodule.PdhGetCounterInfoW; pub const PdhConnectMachine = thismodule.PdhConnectMachineW; pub const PdhEnumMachines = thismodule.PdhEnumMachinesW; pub const PdhEnumObjects = thismodule.PdhEnumObjectsW; pub const PdhEnumObjectItems = thismodule.PdhEnumObjectItemsW; pub const PdhMakeCounterPath = thismodule.PdhMakeCounterPathW; pub const PdhParseCounterPath = thismodule.PdhParseCounterPathW; pub const PdhParseInstanceName = thismodule.PdhParseInstanceNameW; pub const PdhValidatePath = thismodule.PdhValidatePathW; pub const PdhGetDefaultPerfObject = thismodule.PdhGetDefaultPerfObjectW; pub const PdhGetDefaultPerfCounter = thismodule.PdhGetDefaultPerfCounterW; pub const PdhBrowseCounters = thismodule.PdhBrowseCountersW; pub const PdhExpandCounterPath = thismodule.PdhExpandCounterPathW; pub const PdhLookupPerfNameByIndex = thismodule.PdhLookupPerfNameByIndexW; pub const PdhLookupPerfIndexByName = thismodule.PdhLookupPerfIndexByNameW; pub const PdhExpandWildCardPath = thismodule.PdhExpandWildCardPathW; pub const PdhOpenLog = thismodule.PdhOpenLogW; pub const PdhUpdateLog = thismodule.PdhUpdateLogW; pub const PdhSelectDataSource = thismodule.PdhSelectDataSourceW; pub const PdhGetDataSourceTimeRange = thismodule.PdhGetDataSourceTimeRangeW; pub const PdhBindInputDataSource = thismodule.PdhBindInputDataSourceW; pub const PdhEnumMachinesH = thismodule.PdhEnumMachinesHW; pub const PdhEnumObjectsH = thismodule.PdhEnumObjectsHW; pub const PdhEnumObjectItemsH = thismodule.PdhEnumObjectItemsHW; pub const PdhExpandWildCardPathH = thismodule.PdhExpandWildCardPathHW; pub const PdhGetDefaultPerfObjectH = thismodule.PdhGetDefaultPerfObjectHW; pub const PdhGetDefaultPerfCounterH = thismodule.PdhGetDefaultPerfCounterHW; pub const PdhBrowseCountersH = thismodule.PdhBrowseCountersHW; pub const PdhVerifySQLDB = thismodule.PdhVerifySQLDBW; pub const PdhCreateSQLTables = thismodule.PdhCreateSQLTablesW; pub const PdhEnumLogSetNames = thismodule.PdhEnumLogSetNamesW; }, .unspecified => if (@import("builtin").is_test) struct { pub const PDH_RAW_COUNTER_ITEM_ = *opaque {}; pub const PDH_FMT_COUNTERVALUE_ITEM_ = *opaque {}; pub const PDH_COUNTER_PATH_ELEMENTS_ = *opaque {}; pub const PDH_DATA_ITEM_PATH_ELEMENTS_ = *opaque {}; pub const PDH_COUNTER_INFO_ = *opaque {}; pub const PDH_LOG_SERVICE_QUERY_INFO_ = *opaque {}; pub const PDH_BROWSE_DLG_CONFIG_H = *opaque {}; pub const PDH_BROWSE_DLG_CONFIG_ = *opaque {}; pub const InstallPerfDll = *opaque {}; pub const LoadPerfCounterTextStrings = *opaque {}; pub const UnloadPerfCounterTextStrings = *opaque {}; pub const UpdatePerfNameFiles = *opaque {}; pub const SetServiceAsTrusted = *opaque {}; pub const PdhOpenQuery = *opaque {}; pub const PdhAddCounter = *opaque {}; pub const PdhAddEnglishCounter = *opaque {}; pub const PdhValidatePathEx = *opaque {}; pub const PdhGetFormattedCounterArray = *opaque {}; pub const PdhGetRawCounterArray = *opaque {}; pub const PdhGetCounterInfo = *opaque {}; pub const PdhConnectMachine = *opaque {}; pub const PdhEnumMachines = *opaque {}; pub const PdhEnumObjects = *opaque {}; pub const PdhEnumObjectItems = *opaque {}; pub const PdhMakeCounterPath = *opaque {}; pub const PdhParseCounterPath = *opaque {}; pub const PdhParseInstanceName = *opaque {}; pub const PdhValidatePath = *opaque {}; pub const PdhGetDefaultPerfObject = *opaque {}; pub const PdhGetDefaultPerfCounter = *opaque {}; pub const PdhBrowseCounters = *opaque {}; pub const PdhExpandCounterPath = *opaque {}; pub const PdhLookupPerfNameByIndex = *opaque {}; pub const PdhLookupPerfIndexByName = *opaque {}; pub const PdhExpandWildCardPath = *opaque {}; pub const PdhOpenLog = *opaque {}; pub const PdhUpdateLog = *opaque {}; pub const PdhSelectDataSource = *opaque {}; pub const PdhGetDataSourceTimeRange = *opaque {}; pub const PdhBindInputDataSource = *opaque {}; pub const PdhEnumMachinesH = *opaque {}; pub const PdhEnumObjectsH = *opaque {}; pub const PdhEnumObjectItemsH = *opaque {}; pub const PdhExpandWildCardPathH = *opaque {}; pub const PdhGetDefaultPerfObjectH = *opaque {}; pub const PdhGetDefaultPerfCounterH = *opaque {}; pub const PdhBrowseCountersH = *opaque {}; pub const PdhVerifySQLDB = *opaque {}; pub const PdhCreateSQLTables = *opaque {}; pub const PdhEnumLogSetNames = *opaque {}; } else struct { pub const PDH_RAW_COUNTER_ITEM_ = @compileError("'PDH_RAW_COUNTER_ITEM_' requires that UNICODE be set to true or false in the root module"); pub const PDH_FMT_COUNTERVALUE_ITEM_ = @compileError("'PDH_FMT_COUNTERVALUE_ITEM_' requires that UNICODE be set to true or false in the root module"); pub const PDH_COUNTER_PATH_ELEMENTS_ = @compileError("'PDH_COUNTER_PATH_ELEMENTS_' requires that UNICODE be set to true or false in the root module"); pub const PDH_DATA_ITEM_PATH_ELEMENTS_ = @compileError("'PDH_DATA_ITEM_PATH_ELEMENTS_' requires that UNICODE be set to true or false in the root module"); pub const PDH_COUNTER_INFO_ = @compileError("'PDH_COUNTER_INFO_' requires that UNICODE be set to true or false in the root module"); pub const PDH_LOG_SERVICE_QUERY_INFO_ = @compileError("'PDH_LOG_SERVICE_QUERY_INFO_' requires that UNICODE be set to true or false in the root module"); pub const PDH_BROWSE_DLG_CONFIG_H = @compileError("'PDH_BROWSE_DLG_CONFIG_H' requires that UNICODE be set to true or false in the root module"); pub const PDH_BROWSE_DLG_CONFIG_ = @compileError("'PDH_BROWSE_DLG_CONFIG_' requires that UNICODE be set to true or false in the root module"); pub const InstallPerfDll = @compileError("'InstallPerfDll' requires that UNICODE be set to true or false in the root module"); pub const LoadPerfCounterTextStrings = @compileError("'LoadPerfCounterTextStrings' requires that UNICODE be set to true or false in the root module"); pub const UnloadPerfCounterTextStrings = @compileError("'UnloadPerfCounterTextStrings' requires that UNICODE be set to true or false in the root module"); pub const UpdatePerfNameFiles = @compileError("'UpdatePerfNameFiles' requires that UNICODE be set to true or false in the root module"); pub const SetServiceAsTrusted = @compileError("'SetServiceAsTrusted' requires that UNICODE be set to true or false in the root module"); pub const PdhOpenQuery = @compileError("'PdhOpenQuery' requires that UNICODE be set to true or false in the root module"); pub const PdhAddCounter = @compileError("'PdhAddCounter' requires that UNICODE be set to true or false in the root module"); pub const PdhAddEnglishCounter = @compileError("'PdhAddEnglishCounter' requires that UNICODE be set to true or false in the root module"); pub const PdhValidatePathEx = @compileError("'PdhValidatePathEx' requires that UNICODE be set to true or false in the root module"); pub const PdhGetFormattedCounterArray = @compileError("'PdhGetFormattedCounterArray' requires that UNICODE be set to true or false in the root module"); pub const PdhGetRawCounterArray = @compileError("'PdhGetRawCounterArray' requires that UNICODE be set to true or false in the root module"); pub const PdhGetCounterInfo = @compileError("'PdhGetCounterInfo' requires that UNICODE be set to true or false in the root module"); pub const PdhConnectMachine = @compileError("'PdhConnectMachine' requires that UNICODE be set to true or false in the root module"); pub const PdhEnumMachines = @compileError("'PdhEnumMachines' requires that UNICODE be set to true or false in the root module"); pub const PdhEnumObjects = @compileError("'PdhEnumObjects' requires that UNICODE be set to true or false in the root module"); pub const PdhEnumObjectItems = @compileError("'PdhEnumObjectItems' requires that UNICODE be set to true or false in the root module"); pub const PdhMakeCounterPath = @compileError("'PdhMakeCounterPath' requires that UNICODE be set to true or false in the root module"); pub const PdhParseCounterPath = @compileError("'PdhParseCounterPath' requires that UNICODE be set to true or false in the root module"); pub const PdhParseInstanceName = @compileError("'PdhParseInstanceName' requires that UNICODE be set to true or false in the root module"); pub const PdhValidatePath = @compileError("'PdhValidatePath' requires that UNICODE be set to true or false in the root module"); pub const PdhGetDefaultPerfObject = @compileError("'PdhGetDefaultPerfObject' requires that UNICODE be set to true or false in the root module"); pub const PdhGetDefaultPerfCounter = @compileError("'PdhGetDefaultPerfCounter' requires that UNICODE be set to true or false in the root module"); pub const PdhBrowseCounters = @compileError("'PdhBrowseCounters' requires that UNICODE be set to true or false in the root module"); pub const PdhExpandCounterPath = @compileError("'PdhExpandCounterPath' requires that UNICODE be set to true or false in the root module"); pub const PdhLookupPerfNameByIndex = @compileError("'PdhLookupPerfNameByIndex' requires that UNICODE be set to true or false in the root module"); pub const PdhLookupPerfIndexByName = @compileError("'PdhLookupPerfIndexByName' requires that UNICODE be set to true or false in the root module"); pub const PdhExpandWildCardPath = @compileError("'PdhExpandWildCardPath' requires that UNICODE be set to true or false in the root module"); pub const PdhOpenLog = @compileError("'PdhOpenLog' requires that UNICODE be set to true or false in the root module"); pub const PdhUpdateLog = @compileError("'PdhUpdateLog' requires that UNICODE be set to true or false in the root module"); pub const PdhSelectDataSource = @compileError("'PdhSelectDataSource' requires that UNICODE be set to true or false in the root module"); pub const PdhGetDataSourceTimeRange = @compileError("'PdhGetDataSourceTimeRange' requires that UNICODE be set to true or false in the root module"); pub const PdhBindInputDataSource = @compileError("'PdhBindInputDataSource' requires that UNICODE be set to true or false in the root module"); pub const PdhEnumMachinesH = @compileError("'PdhEnumMachinesH' requires that UNICODE be set to true or false in the root module"); pub const PdhEnumObjectsH = @compileError("'PdhEnumObjectsH' requires that UNICODE be set to true or false in the root module"); pub const PdhEnumObjectItemsH = @compileError("'PdhEnumObjectItemsH' requires that UNICODE be set to true or false in the root module"); pub const PdhExpandWildCardPathH = @compileError("'PdhExpandWildCardPathH' requires that UNICODE be set to true or false in the root module"); pub const PdhGetDefaultPerfObjectH = @compileError("'PdhGetDefaultPerfObjectH' requires that UNICODE be set to true or false in the root module"); pub const PdhGetDefaultPerfCounterH = @compileError("'PdhGetDefaultPerfCounterH' requires that UNICODE be set to true or false in the root module"); pub const PdhBrowseCountersH = @compileError("'PdhBrowseCountersH' requires that UNICODE be set to true or false in the root module"); pub const PdhVerifySQLDB = @compileError("'PdhVerifySQLDB' requires that UNICODE be set to true or false in the root module"); pub const PdhCreateSQLTables = @compileError("'PdhCreateSQLTables' requires that UNICODE be set to true or false in the root module"); pub const PdhEnumLogSetNames = @compileError("'PdhEnumLogSetNames' requires that UNICODE be set to true or false in the root module"); }, }; //-------------------------------------------------------------------------------- // Section: Imports (17) //-------------------------------------------------------------------------------- const Guid = @import("../zig.zig").Guid; const BOOL = @import("../foundation.zig").BOOL; const BOOLEAN = @import("../foundation.zig").BOOLEAN; const BSTR = @import("../foundation.zig").BSTR; const FILETIME = @import("../foundation.zig").FILETIME; const HANDLE = @import("../foundation.zig").HANDLE; const HRESULT = @import("../foundation.zig").HRESULT; const HWND = @import("../foundation.zig").HWND; const IDispatch = @import("../system/com.zig").IDispatch; const IFontDisp = @import("../system/ole.zig").IFontDisp; const IUnknown = @import("../system/com.zig").IUnknown; const LARGE_INTEGER = @import("../foundation.zig").LARGE_INTEGER; const PSTR = @import("../foundation.zig").PSTR; const PWSTR = @import("../foundation.zig").PWSTR; const SAFEARRAY = @import("../system/com.zig").SAFEARRAY; const SYSTEMTIME = @import("../foundation.zig").SYSTEMTIME; const VARIANT = @import("../system/com.zig").VARIANT; test { // The following '_ = <FuncPtrType>' lines are a workaround for https://github.com/ziglang/zig/issues/4476 if (@hasDecl(@This(), "PLA_CABEXTRACT_CALLBACK")) { _ = PLA_CABEXTRACT_CALLBACK; } if (@hasDecl(@This(), "PERFLIBREQUEST")) { _ = PERFLIBREQUEST; } if (@hasDecl(@This(), "PERF_MEM_ALLOC")) { _ = PERF_MEM_ALLOC; } if (@hasDecl(@This(), "PERF_MEM_FREE")) { _ = PERF_MEM_FREE; } if (@hasDecl(@This(), "PM_OPEN_PROC")) { _ = PM_OPEN_PROC; } if (@hasDecl(@This(), "PM_COLLECT_PROC")) { _ = PM_COLLECT_PROC; } if (@hasDecl(@This(), "PM_CLOSE_PROC")) { _ = PM_CLOSE_PROC; } if (@hasDecl(@This(), "CounterPathCallBack")) { _ = CounterPathCallBack; } @setEvalBranchQuota(comptime @import("std").meta.declarations(@This()).len * 3); // reference all the pub declarations if (!@import("builtin").is_test) return; inline for (comptime @import("std").meta.declarations(@This())) |decl| { if (decl.is_pub) { _ = @field(@This(), decl.name); } } } //-------------------------------------------------------------------------------- // Section: SubModules (1) //-------------------------------------------------------------------------------- pub const hardware_counter_profiling = @import("performance/hardware_counter_profiling.zig");
0
repos/capy/vendor/zigwin32/win32
repos/capy/vendor/zigwin32/win32/system/host_compute.zig
//! NOTE: this file is autogenerated, DO NOT MODIFY //-------------------------------------------------------------------------------- // Section: Constants (0) //-------------------------------------------------------------------------------- //-------------------------------------------------------------------------------- // Section: Types (1) //-------------------------------------------------------------------------------- pub const HCS_CALLBACK = isize; //-------------------------------------------------------------------------------- // Section: Functions (0) //-------------------------------------------------------------------------------- //-------------------------------------------------------------------------------- // Section: Unicode Aliases (0) //-------------------------------------------------------------------------------- const thismodule = @This(); pub usingnamespace switch (@import("../zig.zig").unicode_mode) { .ansi => struct {}, .wide => struct {}, .unspecified => if (@import("builtin").is_test) struct {} else struct {}, }; //-------------------------------------------------------------------------------- // Section: Imports (0) //-------------------------------------------------------------------------------- test { @setEvalBranchQuota(comptime @import("std").meta.declarations(@This()).len * 3); // reference all the pub declarations if (!@import("builtin").is_test) return; inline for (comptime @import("std").meta.declarations(@This())) |decl| { if (decl.is_pub) { _ = @field(@This(), decl.name); } } }
0
repos/capy/vendor/zigwin32/win32
repos/capy/vendor/zigwin32/win32/system/update_agent.zig
//! NOTE: this file is autogenerated, DO NOT MODIFY //-------------------------------------------------------------------------------- // Section: Constants (467) //-------------------------------------------------------------------------------- pub const LIBID_WUApiLib = Guid.initString("b596cc9f-56e5-419e-a622-e01bb457431e"); pub const UPDATE_LOCKDOWN_WEBSITE_ACCESS = @as(u32, 1); pub const WU_S_SERVICE_STOP = @import("../zig.zig").typedConst(HRESULT, @as(i32, 2359297)); pub const WU_S_SELFUPDATE = @import("../zig.zig").typedConst(HRESULT, @as(i32, 2359298)); pub const WU_S_UPDATE_ERROR = @import("../zig.zig").typedConst(HRESULT, @as(i32, 2359299)); pub const WU_S_MARKED_FOR_DISCONNECT = @import("../zig.zig").typedConst(HRESULT, @as(i32, 2359300)); pub const WU_S_REBOOT_REQUIRED = @import("../zig.zig").typedConst(HRESULT, @as(i32, 2359301)); pub const WU_S_ALREADY_INSTALLED = @import("../zig.zig").typedConst(HRESULT, @as(i32, 2359302)); pub const WU_S_ALREADY_UNINSTALLED = @import("../zig.zig").typedConst(HRESULT, @as(i32, 2359303)); pub const WU_S_ALREADY_DOWNLOADED = @import("../zig.zig").typedConst(HRESULT, @as(i32, 2359304)); pub const WU_S_SOME_UPDATES_SKIPPED_ON_BATTERY = @import("../zig.zig").typedConst(HRESULT, @as(i32, 2359305)); pub const WU_S_ALREADY_REVERTED = @import("../zig.zig").typedConst(HRESULT, @as(i32, 2359306)); pub const WU_S_SEARCH_CRITERIA_NOT_SUPPORTED = @import("../zig.zig").typedConst(HRESULT, @as(i32, 2359312)); pub const WU_S_UH_INSTALLSTILLPENDING = @import("../zig.zig").typedConst(HRESULT, @as(i32, 2367509)); pub const WU_S_UH_DOWNLOAD_SIZE_CALCULATED = @import("../zig.zig").typedConst(HRESULT, @as(i32, 2367510)); pub const WU_S_SIH_NOOP = @import("../zig.zig").typedConst(HRESULT, @as(i32, 2379777)); pub const WU_S_DM_ALREADYDOWNLOADING = @import("../zig.zig").typedConst(HRESULT, @as(i32, 2383873)); pub const WU_S_METADATA_SKIPPED_BY_ENFORCEMENTMODE = @import("../zig.zig").typedConst(HRESULT, @as(i32, 2388225)); pub const WU_S_METADATA_IGNORED_SIGNATURE_VERIFICATION = @import("../zig.zig").typedConst(HRESULT, @as(i32, 2388226)); pub const WU_S_SEARCH_LOAD_SHEDDING = @import("../zig.zig").typedConst(HRESULT, @as(i32, 2392065)); pub const WU_E_NO_SERVICE = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145124351)); pub const WU_E_MAX_CAPACITY_REACHED = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145124350)); pub const WU_E_UNKNOWN_ID = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145124349)); pub const WU_E_NOT_INITIALIZED = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145124348)); pub const WU_E_RANGEOVERLAP = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145124347)); pub const WU_E_TOOMANYRANGES = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145124346)); pub const WU_E_INVALIDINDEX = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145124345)); pub const WU_E_ITEMNOTFOUND = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145124344)); pub const WU_E_OPERATIONINPROGRESS = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145124343)); pub const WU_E_COULDNOTCANCEL = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145124342)); pub const WU_E_CALL_CANCELLED = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145124341)); pub const WU_E_NOOP = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145124340)); pub const WU_E_XML_MISSINGDATA = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145124339)); pub const WU_E_XML_INVALID = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145124338)); pub const WU_E_CYCLE_DETECTED = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145124337)); pub const WU_E_TOO_DEEP_RELATION = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145124336)); pub const WU_E_INVALID_RELATIONSHIP = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145124335)); pub const WU_E_REG_VALUE_INVALID = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145124334)); pub const WU_E_DUPLICATE_ITEM = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145124333)); pub const WU_E_INVALID_INSTALL_REQUESTED = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145124332)); pub const WU_E_INSTALL_NOT_ALLOWED = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145124330)); pub const WU_E_NOT_APPLICABLE = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145124329)); pub const WU_E_NO_USERTOKEN = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145124328)); pub const WU_E_EXCLUSIVE_INSTALL_CONFLICT = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145124327)); pub const WU_E_POLICY_NOT_SET = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145124326)); pub const WU_E_SELFUPDATE_IN_PROGRESS = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145124325)); pub const WU_E_INVALID_UPDATE = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145124323)); pub const WU_E_SERVICE_STOP = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145124322)); pub const WU_E_NO_CONNECTION = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145124321)); pub const WU_E_NO_INTERACTIVE_USER = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145124320)); pub const WU_E_TIME_OUT = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145124319)); pub const WU_E_ALL_UPDATES_FAILED = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145124318)); pub const WU_E_EULAS_DECLINED = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145124317)); pub const WU_E_NO_UPDATE = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145124316)); pub const WU_E_USER_ACCESS_DISABLED = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145124315)); pub const WU_E_INVALID_UPDATE_TYPE = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145124314)); pub const WU_E_URL_TOO_LONG = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145124313)); pub const WU_E_UNINSTALL_NOT_ALLOWED = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145124312)); pub const WU_E_INVALID_PRODUCT_LICENSE = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145124311)); pub const WU_E_MISSING_HANDLER = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145124310)); pub const WU_E_LEGACYSERVER = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145124309)); pub const WU_E_BIN_SOURCE_ABSENT = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145124308)); pub const WU_E_SOURCE_ABSENT = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145124307)); pub const WU_E_WU_DISABLED = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145124306)); pub const WU_E_CALL_CANCELLED_BY_POLICY = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145124305)); pub const WU_E_INVALID_PROXY_SERVER = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145124304)); pub const WU_E_INVALID_FILE = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145124303)); pub const WU_E_INVALID_CRITERIA = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145124302)); pub const WU_E_EULA_UNAVAILABLE = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145124301)); pub const WU_E_DOWNLOAD_FAILED = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145124300)); pub const WU_E_UPDATE_NOT_PROCESSED = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145124299)); pub const WU_E_INVALID_OPERATION = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145124298)); pub const WU_E_NOT_SUPPORTED = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145124297)); pub const WU_E_WINHTTP_INVALID_FILE = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145124296)); pub const WU_E_TOO_MANY_RESYNC = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145124295)); pub const WU_E_NO_SERVER_CORE_SUPPORT = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145124288)); pub const WU_E_SYSPREP_IN_PROGRESS = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145124287)); pub const WU_E_UNKNOWN_SERVICE = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145124286)); pub const WU_E_NO_UI_SUPPORT = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145124285)); pub const WU_E_PER_MACHINE_UPDATE_ACCESS_DENIED = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145124284)); pub const WU_E_UNSUPPORTED_SEARCHSCOPE = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145124283)); pub const WU_E_BAD_FILE_URL = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145124282)); pub const WU_E_REVERT_NOT_ALLOWED = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145124281)); pub const WU_E_INVALID_NOTIFICATION_INFO = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145124280)); pub const WU_E_OUTOFRANGE = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145124279)); pub const WU_E_SETUP_IN_PROGRESS = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145124278)); pub const WU_E_ORPHANED_DOWNLOAD_JOB = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145124277)); pub const WU_E_LOW_BATTERY = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145124276)); pub const WU_E_INFRASTRUCTUREFILE_INVALID_FORMAT = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145124275)); pub const WU_E_INFRASTRUCTUREFILE_REQUIRES_SSL = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145124274)); pub const WU_E_IDLESHUTDOWN_OPCOUNT_DISCOVERY = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145124273)); pub const WU_E_IDLESHUTDOWN_OPCOUNT_SEARCH = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145124272)); pub const WU_E_IDLESHUTDOWN_OPCOUNT_DOWNLOAD = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145124271)); pub const WU_E_IDLESHUTDOWN_OPCOUNT_INSTALL = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145124270)); pub const WU_E_IDLESHUTDOWN_OPCOUNT_OTHER = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145124269)); pub const WU_E_INTERACTIVE_CALL_CANCELLED = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145124268)); pub const WU_E_AU_CALL_CANCELLED = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145124267)); pub const WU_E_SYSTEM_UNSUPPORTED = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145124266)); pub const WU_E_NO_SUCH_HANDLER_PLUGIN = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145124265)); pub const WU_E_INVALID_SERIALIZATION_VERSION = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145124264)); pub const WU_E_NETWORK_COST_EXCEEDS_POLICY = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145124263)); pub const WU_E_CALL_CANCELLED_BY_HIDE = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145124262)); pub const WU_E_CALL_CANCELLED_BY_INVALID = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145124261)); pub const WU_E_INVALID_VOLUMEID = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145124260)); pub const WU_E_UNRECOGNIZED_VOLUMEID = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145124259)); pub const WU_E_EXTENDEDERROR_NOTSET = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145124258)); pub const WU_E_EXTENDEDERROR_FAILED = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145124257)); pub const WU_E_IDLESHUTDOWN_OPCOUNT_SERVICEREGISTRATION = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145124256)); pub const WU_E_FILETRUST_SHA2SIGNATURE_MISSING = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145124255)); pub const WU_E_UPDATE_NOT_APPROVED = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145124254)); pub const WU_E_CALL_CANCELLED_BY_INTERACTIVE_SEARCH = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145124253)); pub const WU_E_INSTALL_JOB_RESUME_NOT_ALLOWED = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145124252)); pub const WU_E_INSTALL_JOB_NOT_SUSPENDED = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145124251)); pub const WU_E_INSTALL_USERCONTEXT_ACCESSDENIED = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145124250)); pub const WU_E_UNEXPECTED = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145120257)); pub const WU_E_MSI_WRONG_VERSION = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145120255)); pub const WU_E_MSI_NOT_CONFIGURED = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145120254)); pub const WU_E_MSP_DISABLED = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145120253)); pub const WU_E_MSI_WRONG_APP_CONTEXT = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145120252)); pub const WU_E_MSI_NOT_PRESENT = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145120251)); pub const WU_E_MSP_UNEXPECTED = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145116161)); pub const WU_E_PT_SOAPCLIENT_BASE = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145107968)); pub const WU_E_PT_SOAPCLIENT_INITIALIZE = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145107967)); pub const WU_E_PT_SOAPCLIENT_OUTOFMEMORY = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145107966)); pub const WU_E_PT_SOAPCLIENT_GENERATE = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145107965)); pub const WU_E_PT_SOAPCLIENT_CONNECT = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145107964)); pub const WU_E_PT_SOAPCLIENT_SEND = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145107963)); pub const WU_E_PT_SOAPCLIENT_SERVER = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145107962)); pub const WU_E_PT_SOAPCLIENT_SOAPFAULT = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145107961)); pub const WU_E_PT_SOAPCLIENT_PARSEFAULT = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145107960)); pub const WU_E_PT_SOAPCLIENT_READ = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145107959)); pub const WU_E_PT_SOAPCLIENT_PARSE = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145107958)); pub const WU_E_PT_SOAP_VERSION = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145107957)); pub const WU_E_PT_SOAP_MUST_UNDERSTAND = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145107956)); pub const WU_E_PT_SOAP_CLIENT = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145107955)); pub const WU_E_PT_SOAP_SERVER = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145107954)); pub const WU_E_PT_WMI_ERROR = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145107953)); pub const WU_E_PT_EXCEEDED_MAX_SERVER_TRIPS = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145107952)); pub const WU_E_PT_SUS_SERVER_NOT_SET = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145107951)); pub const WU_E_PT_DOUBLE_INITIALIZATION = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145107950)); pub const WU_E_PT_INVALID_COMPUTER_NAME = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145107949)); pub const WU_E_PT_REFRESH_CACHE_REQUIRED = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145107947)); pub const WU_E_PT_HTTP_STATUS_BAD_REQUEST = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145107946)); pub const WU_E_PT_HTTP_STATUS_DENIED = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145107945)); pub const WU_E_PT_HTTP_STATUS_FORBIDDEN = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145107944)); pub const WU_E_PT_HTTP_STATUS_NOT_FOUND = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145107943)); pub const WU_E_PT_HTTP_STATUS_BAD_METHOD = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145107942)); pub const WU_E_PT_HTTP_STATUS_PROXY_AUTH_REQ = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145107941)); pub const WU_E_PT_HTTP_STATUS_REQUEST_TIMEOUT = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145107940)); pub const WU_E_PT_HTTP_STATUS_CONFLICT = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145107939)); pub const WU_E_PT_HTTP_STATUS_GONE = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145107938)); pub const WU_E_PT_HTTP_STATUS_SERVER_ERROR = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145107937)); pub const WU_E_PT_HTTP_STATUS_NOT_SUPPORTED = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145107936)); pub const WU_E_PT_HTTP_STATUS_BAD_GATEWAY = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145107935)); pub const WU_E_PT_HTTP_STATUS_SERVICE_UNAVAIL = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145107934)); pub const WU_E_PT_HTTP_STATUS_GATEWAY_TIMEOUT = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145107933)); pub const WU_E_PT_HTTP_STATUS_VERSION_NOT_SUP = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145107932)); pub const WU_E_PT_FILE_LOCATIONS_CHANGED = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145107931)); pub const WU_E_PT_REGISTRATION_NOT_SUPPORTED = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145107930)); pub const WU_E_PT_NO_AUTH_PLUGINS_REQUESTED = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145107929)); pub const WU_E_PT_NO_AUTH_COOKIES_CREATED = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145107928)); pub const WU_E_PT_INVALID_CONFIG_PROP = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145107927)); pub const WU_E_PT_CONFIG_PROP_MISSING = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145107926)); pub const WU_E_PT_HTTP_STATUS_NOT_MAPPED = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145107925)); pub const WU_E_PT_WINHTTP_NAME_NOT_RESOLVED = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145107924)); pub const WU_E_PT_LOAD_SHEDDING = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145107923)); pub const WU_E_PT_SAME_REDIR_ID = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145103827)); pub const WU_E_PT_NO_MANAGED_RECOVER = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145103826)); pub const WU_E_PT_ECP_SUCCEEDED_WITH_ERRORS = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145107921)); pub const WU_E_PT_ECP_INIT_FAILED = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145107920)); pub const WU_E_PT_ECP_INVALID_FILE_FORMAT = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145107919)); pub const WU_E_PT_ECP_INVALID_METADATA = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145107918)); pub const WU_E_PT_ECP_FAILURE_TO_EXTRACT_DIGEST = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145107917)); pub const WU_E_PT_ECP_FAILURE_TO_DECOMPRESS_CAB_FILE = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145107916)); pub const WU_E_PT_ECP_FILE_LOCATION_ERROR = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145107915)); pub const WU_E_PT_CATALOG_SYNC_REQUIRED = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145123274)); pub const WU_E_PT_SECURITY_VERIFICATION_FAILURE = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145123273)); pub const WU_E_PT_ENDPOINT_UNREACHABLE = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145123272)); pub const WU_E_PT_INVALID_FORMAT = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145123271)); pub const WU_E_PT_INVALID_URL = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145123270)); pub const WU_E_PT_NWS_NOT_LOADED = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145123269)); pub const WU_E_PT_PROXY_AUTH_SCHEME_NOT_SUPPORTED = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145123268)); pub const WU_E_SERVICEPROP_NOTAVAIL = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145123267)); pub const WU_E_PT_ENDPOINT_REFRESH_REQUIRED = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145123266)); pub const WU_E_PT_ENDPOINTURL_NOTAVAIL = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145123265)); pub const WU_E_PT_ENDPOINT_DISCONNECTED = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145123264)); pub const WU_E_PT_INVALID_OPERATION = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145123263)); pub const WU_E_PT_OBJECT_FAULTED = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145123262)); pub const WU_E_PT_NUMERIC_OVERFLOW = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145123261)); pub const WU_E_PT_OPERATION_ABORTED = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145123260)); pub const WU_E_PT_OPERATION_ABANDONED = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145123259)); pub const WU_E_PT_QUOTA_EXCEEDED = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145123258)); pub const WU_E_PT_NO_TRANSLATION_AVAILABLE = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145123257)); pub const WU_E_PT_ADDRESS_IN_USE = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145123256)); pub const WU_E_PT_ADDRESS_NOT_AVAILABLE = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145123255)); pub const WU_E_PT_OTHER = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145123254)); pub const WU_E_PT_SECURITY_SYSTEM_FAILURE = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145123253)); pub const WU_E_PT_UNEXPECTED = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145103873)); pub const WU_E_REDIRECTOR_LOAD_XML = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145103871)); pub const WU_E_REDIRECTOR_S_FALSE = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145103870)); pub const WU_E_REDIRECTOR_ID_SMALLER = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145103869)); pub const WU_E_REDIRECTOR_UNKNOWN_SERVICE = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145103868)); pub const WU_E_REDIRECTOR_UNSUPPORTED_CONTENTTYPE = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145103867)); pub const WU_E_REDIRECTOR_INVALID_RESPONSE = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145103866)); pub const WU_E_REDIRECTOR_ATTRPROVIDER_EXCEEDED_MAX_NAMEVALUE = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145103864)); pub const WU_E_REDIRECTOR_ATTRPROVIDER_INVALID_NAME = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145103863)); pub const WU_E_REDIRECTOR_ATTRPROVIDER_INVALID_VALUE = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145103862)); pub const WU_E_REDIRECTOR_SLS_GENERIC_ERROR = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145103861)); pub const WU_E_REDIRECTOR_CONNECT_POLICY = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145103860)); pub const WU_E_REDIRECTOR_ONLINE_DISALLOWED = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145103859)); pub const WU_E_REDIRECTOR_UNEXPECTED = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145103617)); pub const WU_E_SIH_VERIFY_DOWNLOAD_ENGINE = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145103615)); pub const WU_E_SIH_VERIFY_DOWNLOAD_PAYLOAD = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145103614)); pub const WU_E_SIH_VERIFY_STAGE_ENGINE = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145103613)); pub const WU_E_SIH_VERIFY_STAGE_PAYLOAD = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145103612)); pub const WU_E_SIH_ACTION_NOT_FOUND = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145103611)); pub const WU_E_SIH_SLS_PARSE = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145103610)); pub const WU_E_SIH_INVALIDHASH = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145103609)); pub const WU_E_SIH_NO_ENGINE = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145103608)); pub const WU_E_SIH_POST_REBOOT_INSTALL_FAILED = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145103607)); pub const WU_E_SIH_POST_REBOOT_NO_CACHED_SLS_RESPONSE = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145103606)); pub const WU_E_SIH_PARSE = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145103605)); pub const WU_E_SIH_SECURITY = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145103604)); pub const WU_E_SIH_PPL = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145103603)); pub const WU_E_SIH_POLICY = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145103602)); pub const WU_E_SIH_STDEXCEPTION = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145103601)); pub const WU_E_SIH_NONSTDEXCEPTION = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145103600)); pub const WU_E_SIH_ENGINE_EXCEPTION = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145103599)); pub const WU_E_SIH_BLOCKED_FOR_PLATFORM = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145103598)); pub const WU_E_SIH_ANOTHER_INSTANCE_RUNNING = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145103597)); pub const WU_E_SIH_DNSRESILIENCY_OFF = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145103596)); pub const WU_E_SIH_UNEXPECTED = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145103361)); pub const WU_E_DRV_PRUNED = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145075199)); pub const WU_E_DRV_NOPROP_OR_LEGACY = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145075198)); pub const WU_E_DRV_REG_MISMATCH = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145075197)); pub const WU_E_DRV_NO_METADATA = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145075196)); pub const WU_E_DRV_MISSING_ATTRIBUTE = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145075195)); pub const WU_E_DRV_SYNC_FAILED = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145075194)); pub const WU_E_DRV_NO_PRINTER_CONTENT = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145075193)); pub const WU_E_DRV_DEVICE_PROBLEM = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145075192)); pub const WU_E_DRV_UNEXPECTED = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145071105)); pub const WU_E_DS_SHUTDOWN = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145091584)); pub const WU_E_DS_INUSE = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145091583)); pub const WU_E_DS_INVALID = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145091582)); pub const WU_E_DS_TABLEMISSING = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145091581)); pub const WU_E_DS_TABLEINCORRECT = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145091580)); pub const WU_E_DS_INVALIDTABLENAME = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145091579)); pub const WU_E_DS_BADVERSION = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145091578)); pub const WU_E_DS_NODATA = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145091577)); pub const WU_E_DS_MISSINGDATA = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145091576)); pub const WU_E_DS_MISSINGREF = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145091575)); pub const WU_E_DS_UNKNOWNHANDLER = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145091574)); pub const WU_E_DS_CANTDELETE = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145091573)); pub const WU_E_DS_LOCKTIMEOUTEXPIRED = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145091572)); pub const WU_E_DS_NOCATEGORIES = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145091571)); pub const WU_E_DS_ROWEXISTS = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145091570)); pub const WU_E_DS_STOREFILELOCKED = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145091569)); pub const WU_E_DS_CANNOTREGISTER = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145091568)); pub const WU_E_DS_UNABLETOSTART = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145091567)); pub const WU_E_DS_DUPLICATEUPDATEID = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145091565)); pub const WU_E_DS_UNKNOWNSERVICE = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145091564)); pub const WU_E_DS_SERVICEEXPIRED = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145091563)); pub const WU_E_DS_DECLINENOTALLOWED = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145091562)); pub const WU_E_DS_TABLESESSIONMISMATCH = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145091561)); pub const WU_E_DS_SESSIONLOCKMISMATCH = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145091560)); pub const WU_E_DS_NEEDWINDOWSSERVICE = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145091559)); pub const WU_E_DS_INVALIDOPERATION = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145091558)); pub const WU_E_DS_SCHEMAMISMATCH = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145091557)); pub const WU_E_DS_RESETREQUIRED = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145091556)); pub const WU_E_DS_IMPERSONATED = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145091555)); pub const WU_E_DS_DATANOTAVAILABLE = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145091554)); pub const WU_E_DS_DATANOTLOADED = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145091553)); pub const WU_E_DS_NODATA_NOSUCHREVISION = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145091552)); pub const WU_E_DS_NODATA_NOSUCHUPDATE = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145091551)); pub const WU_E_DS_NODATA_EULA = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145091550)); pub const WU_E_DS_NODATA_SERVICE = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145091549)); pub const WU_E_DS_NODATA_COOKIE = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145091548)); pub const WU_E_DS_NODATA_TIMER = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145091547)); pub const WU_E_DS_NODATA_CCR = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145091546)); pub const WU_E_DS_NODATA_FILE = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145091545)); pub const WU_E_DS_NODATA_DOWNLOADJOB = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145091544)); pub const WU_E_DS_NODATA_TMI = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145091543)); pub const WU_E_DS_UNEXPECTED = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145087489)); pub const WU_E_INVENTORY_PARSEFAILED = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145087487)); pub const WU_E_INVENTORY_GET_INVENTORY_TYPE_FAILED = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145087486)); pub const WU_E_INVENTORY_RESULT_UPLOAD_FAILED = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145087485)); pub const WU_E_INVENTORY_UNEXPECTED = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145087484)); pub const WU_E_INVENTORY_WMI_ERROR = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145087483)); pub const WU_E_AU_NOSERVICE = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145083392)); pub const WU_E_AU_NONLEGACYSERVER = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145083390)); pub const WU_E_AU_LEGACYCLIENTDISABLED = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145083389)); pub const WU_E_AU_PAUSED = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145083388)); pub const WU_E_AU_NO_REGISTERED_SERVICE = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145083387)); pub const WU_E_AU_DETECT_SVCID_MISMATCH = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145083386)); pub const WU_E_REBOOT_IN_PROGRESS = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145083385)); pub const WU_E_AU_OOBE_IN_PROGRESS = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145083384)); pub const WU_E_AU_UNEXPECTED = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145079297)); pub const WU_E_UH_REMOTEUNAVAILABLE = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145116160)); pub const WU_E_UH_LOCALONLY = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145116159)); pub const WU_E_UH_UNKNOWNHANDLER = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145116158)); pub const WU_E_UH_REMOTEALREADYACTIVE = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145116157)); pub const WU_E_UH_DOESNOTSUPPORTACTION = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145116156)); pub const WU_E_UH_WRONGHANDLER = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145116155)); pub const WU_E_UH_INVALIDMETADATA = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145116154)); pub const WU_E_UH_INSTALLERHUNG = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145116153)); pub const WU_E_UH_OPERATIONCANCELLED = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145116152)); pub const WU_E_UH_BADHANDLERXML = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145116151)); pub const WU_E_UH_CANREQUIREINPUT = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145116150)); pub const WU_E_UH_INSTALLERFAILURE = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145116149)); pub const WU_E_UH_FALLBACKTOSELFCONTAINED = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145116148)); pub const WU_E_UH_NEEDANOTHERDOWNLOAD = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145116147)); pub const WU_E_UH_NOTIFYFAILURE = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145116146)); pub const WU_E_UH_INCONSISTENT_FILE_NAMES = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145116145)); pub const WU_E_UH_FALLBACKERROR = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145116144)); pub const WU_E_UH_TOOMANYDOWNLOADREQUESTS = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145116143)); pub const WU_E_UH_UNEXPECTEDCBSRESPONSE = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145116142)); pub const WU_E_UH_BADCBSPACKAGEID = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145116141)); pub const WU_E_UH_POSTREBOOTSTILLPENDING = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145116140)); pub const WU_E_UH_POSTREBOOTRESULTUNKNOWN = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145116139)); pub const WU_E_UH_POSTREBOOTUNEXPECTEDSTATE = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145116138)); pub const WU_E_UH_NEW_SERVICING_STACK_REQUIRED = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145116137)); pub const WU_E_UH_CALLED_BACK_FAILURE = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145116136)); pub const WU_E_UH_CUSTOMINSTALLER_INVALID_SIGNATURE = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145116135)); pub const WU_E_UH_UNSUPPORTED_INSTALLCONTEXT = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145116134)); pub const WU_E_UH_INVALID_TARGETSESSION = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145116133)); pub const WU_E_UH_DECRYPTFAILURE = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145116132)); pub const WU_E_UH_HANDLER_DISABLEDUNTILREBOOT = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145116131)); pub const WU_E_UH_APPX_NOT_PRESENT = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145116130)); pub const WU_E_UH_NOTREADYTOCOMMIT = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145116129)); pub const WU_E_UH_APPX_INVALID_PACKAGE_VOLUME = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145116128)); pub const WU_E_UH_APPX_DEFAULT_PACKAGE_VOLUME_UNAVAILABLE = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145116127)); pub const WU_E_UH_APPX_INSTALLED_PACKAGE_VOLUME_UNAVAILABLE = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145116126)); pub const WU_E_UH_APPX_PACKAGE_FAMILY_NOT_FOUND = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145116125)); pub const WU_E_UH_APPX_SYSTEM_VOLUME_NOT_FOUND = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145116124)); pub const WU_E_UH_UNEXPECTED = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145112065)); pub const WU_E_DM_URLNOTAVAILABLE = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145099775)); pub const WU_E_DM_INCORRECTFILEHASH = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145099774)); pub const WU_E_DM_UNKNOWNALGORITHM = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145099773)); pub const WU_E_DM_NEEDDOWNLOADREQUEST = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145099772)); pub const WU_E_DM_NONETWORK = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145099771)); pub const WU_E_DM_WRONGBITSVERSION = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145099770)); pub const WU_E_DM_NOTDOWNLOADED = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145099769)); pub const WU_E_DM_FAILTOCONNECTTOBITS = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145099768)); pub const WU_E_DM_BITSTRANSFERERROR = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145099767)); pub const WU_E_DM_DOWNLOADLOCATIONCHANGED = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145099766)); pub const WU_E_DM_CONTENTCHANGED = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145099765)); pub const WU_E_DM_DOWNLOADLIMITEDBYUPDATESIZE = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145099764)); pub const WU_E_DM_UNAUTHORIZED = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145099762)); pub const WU_E_DM_BG_ERROR_TOKEN_REQUIRED = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145099761)); pub const WU_E_DM_DOWNLOADSANDBOXNOTFOUND = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145099760)); pub const WU_E_DM_DOWNLOADFILEPATHUNKNOWN = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145099759)); pub const WU_E_DM_DOWNLOADFILEMISSING = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145099758)); pub const WU_E_DM_UPDATEREMOVED = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145099757)); pub const WU_E_DM_READRANGEFAILED = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145099756)); pub const WU_E_DM_UNAUTHORIZED_NO_USER = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145099754)); pub const WU_E_DM_UNAUTHORIZED_LOCAL_USER = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145099753)); pub const WU_E_DM_UNAUTHORIZED_DOMAIN_USER = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145099752)); pub const WU_E_DM_UNAUTHORIZED_MSA_USER = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145099751)); pub const WU_E_DM_FALLINGBACKTOBITS = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145099750)); pub const WU_E_DM_DOWNLOAD_VOLUME_CONFLICT = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145099749)); pub const WU_E_DM_SANDBOX_HASH_MISMATCH = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145099748)); pub const WU_E_DM_HARDRESERVEID_CONFLICT = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145099747)); pub const WU_E_DM_DOSVC_REQUIRED = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145099746)); pub const WU_E_DM_UNEXPECTED = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145095681)); pub const WU_E_SETUP_INVALID_INFDATA = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145071103)); pub const WU_E_SETUP_INVALID_IDENTDATA = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145071102)); pub const WU_E_SETUP_ALREADY_INITIALIZED = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145071101)); pub const WU_E_SETUP_NOT_INITIALIZED = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145071100)); pub const WU_E_SETUP_SOURCE_VERSION_MISMATCH = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145071099)); pub const WU_E_SETUP_TARGET_VERSION_GREATER = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145071098)); pub const WU_E_SETUP_REGISTRATION_FAILED = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145071097)); pub const WU_E_SELFUPDATE_SKIP_ON_FAILURE = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145071096)); pub const WU_E_SETUP_SKIP_UPDATE = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145071095)); pub const WU_E_SETUP_UNSUPPORTED_CONFIGURATION = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145071094)); pub const WU_E_SETUP_BLOCKED_CONFIGURATION = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145071093)); pub const WU_E_SETUP_REBOOT_TO_FIX = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145071092)); pub const WU_E_SETUP_ALREADYRUNNING = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145071091)); pub const WU_E_SETUP_REBOOTREQUIRED = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145071090)); pub const WU_E_SETUP_HANDLER_EXEC_FAILURE = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145071089)); pub const WU_E_SETUP_INVALID_REGISTRY_DATA = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145071088)); pub const WU_E_SELFUPDATE_REQUIRED = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145071087)); pub const WU_E_SELFUPDATE_REQUIRED_ADMIN = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145071086)); pub const WU_E_SETUP_WRONG_SERVER_VERSION = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145071085)); pub const WU_E_SETUP_DEFERRABLE_REBOOT_PENDING = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145071084)); pub const WU_E_SETUP_NON_DEFERRABLE_REBOOT_PENDING = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145071083)); pub const WU_E_SETUP_FAIL = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145071082)); pub const WU_E_SETUP_UNEXPECTED = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145067009)); pub const WU_E_EE_UNKNOWN_EXPRESSION = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145067007)); pub const WU_E_EE_INVALID_EXPRESSION = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145067006)); pub const WU_E_EE_MISSING_METADATA = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145067005)); pub const WU_E_EE_INVALID_VERSION = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145067004)); pub const WU_E_EE_NOT_INITIALIZED = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145067003)); pub const WU_E_EE_INVALID_ATTRIBUTEDATA = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145067002)); pub const WU_E_EE_CLUSTER_ERROR = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145067001)); pub const WU_E_EE_UNEXPECTED = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145062913)); pub const WU_E_INSTALLATION_RESULTS_UNKNOWN_VERSION = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145112063)); pub const WU_E_INSTALLATION_RESULTS_INVALID_DATA = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145112062)); pub const WU_E_INSTALLATION_RESULTS_NOT_FOUND = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145112061)); pub const WU_E_TRAYICON_FAILURE = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145112060)); pub const WU_E_NON_UI_MODE = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145107971)); pub const WU_E_WUCLTUI_UNSUPPORTED_VERSION = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145107970)); pub const WU_E_AUCLIENT_UNEXPECTED = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145107969)); pub const WU_E_REPORTER_EVENTCACHECORRUPT = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145062911)); pub const WU_E_REPORTER_EVENTNAMESPACEPARSEFAILED = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145062910)); pub const WU_E_INVALID_EVENT = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145062909)); pub const WU_E_SERVER_BUSY = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145062908)); pub const WU_E_CALLBACK_COOKIE_NOT_FOUND = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145062907)); pub const WU_E_REPORTER_UNEXPECTED = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145058817)); pub const WU_E_OL_INVALID_SCANFILE = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145095679)); pub const WU_E_OL_NEWCLIENT_REQUIRED = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145095678)); pub const WU_E_INVALID_EVENT_PAYLOAD = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145095677)); pub const WU_E_INVALID_EVENT_PAYLOADSIZE = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145095676)); pub const WU_E_SERVICE_NOT_REGISTERED = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145095675)); pub const WU_E_OL_UNEXPECTED = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145091585)); pub const WU_E_METADATA_NOOP = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145095424)); pub const WU_E_METADATA_CONFIG_INVALID_BINARY_ENCODING = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145095423)); pub const WU_E_METADATA_FETCH_CONFIG = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145095422)); pub const WU_E_METADATA_INVALID_PARAMETER = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145095420)); pub const WU_E_METADATA_UNEXPECTED = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145095419)); pub const WU_E_METADATA_NO_VERIFICATION_DATA = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145095418)); pub const WU_E_METADATA_BAD_FRAGMENTSIGNING_CONFIG = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145095417)); pub const WU_E_METADATA_FAILURE_PROCESSING_FRAGMENTSIGNING_CONFIG = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145095416)); pub const WU_E_METADATA_XML_MISSING = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145095392)); pub const WU_E_METADATA_XML_FRAGMENTSIGNING_MISSING = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145095391)); pub const WU_E_METADATA_XML_MODE_MISSING = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145095390)); pub const WU_E_METADATA_XML_MODE_INVALID = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145095389)); pub const WU_E_METADATA_XML_VALIDITY_INVALID = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145095388)); pub const WU_E_METADATA_XML_LEAFCERT_MISSING = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145095387)); pub const WU_E_METADATA_XML_INTERMEDIATECERT_MISSING = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145095386)); pub const WU_E_METADATA_XML_LEAFCERT_ID_MISSING = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145095385)); pub const WU_E_METADATA_XML_BASE64CERDATA_MISSING = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145095384)); pub const WU_E_METADATA_BAD_SIGNATURE = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145095360)); pub const WU_E_METADATA_UNSUPPORTED_HASH_ALG = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145095359)); pub const WU_E_METADATA_SIGNATURE_VERIFY_FAILED = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145095358)); pub const WU_E_METADATATRUST_CERTIFICATECHAIN_VERIFICATION = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145095344)); pub const WU_E_METADATATRUST_UNTRUSTED_CERTIFICATECHAIN = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145095343)); pub const WU_E_METADATA_TIMESTAMP_TOKEN_MISSING = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145095328)); pub const WU_E_METADATA_TIMESTAMP_TOKEN_VERIFICATION_FAILED = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145095327)); pub const WU_E_METADATA_TIMESTAMP_TOKEN_UNTRUSTED = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145095326)); pub const WU_E_METADATA_TIMESTAMP_TOKEN_VALIDITY_WINDOW = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145095325)); pub const WU_E_METADATA_TIMESTAMP_TOKEN_SIGNATURE = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145095324)); pub const WU_E_METADATA_TIMESTAMP_TOKEN_CERTCHAIN = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145095323)); pub const WU_E_METADATA_TIMESTAMP_TOKEN_REFRESHONLINE = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145095322)); pub const WU_E_METADATA_TIMESTAMP_TOKEN_ALL_BAD = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145095321)); pub const WU_E_METADATA_TIMESTAMP_TOKEN_NODATA = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145095320)); pub const WU_E_METADATA_TIMESTAMP_TOKEN_CACHELOOKUP = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145095319)); pub const WU_E_METADATA_TIMESTAMP_TOKEN_VALIDITYWINDOW_UNEXPECTED = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145095298)); pub const WU_E_METADATA_TIMESTAMP_TOKEN_UNEXPECTED = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145095297)); pub const WU_E_METADATA_CERT_MISSING = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145095296)); pub const WU_E_METADATA_LEAFCERT_BAD_TRANSPORT_ENCODING = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145095295)); pub const WU_E_METADATA_INTCERT_BAD_TRANSPORT_ENCODING = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145095294)); pub const WU_E_METADATA_CERT_UNTRUSTED = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145095293)); pub const WU_E_WUTASK_INPROGRESS = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145079295)); pub const WU_E_WUTASK_STATUS_DISABLED = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145079294)); pub const WU_E_WUTASK_NOT_STARTED = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145079293)); pub const WU_E_WUTASK_RETRY = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145079292)); pub const WU_E_WUTASK_CANCELINSTALL_DISALLOWED = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145079291)); pub const WU_E_UNKNOWN_HARDWARECAPABILITY = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145079039)); pub const WU_E_BAD_XML_HARDWARECAPABILITY = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145079038)); pub const WU_E_WMI_NOT_SUPPORTED = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145079037)); pub const WU_E_UPDATE_MERGE_NOT_ALLOWED = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145079036)); pub const WU_E_SKIPPED_UPDATE_INSTALLATION = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145079035)); pub const WU_E_SLS_INVALID_REVISION = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145078783)); pub const WU_E_FILETRUST_DUALSIGNATURE_RSA = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145078527)); pub const WU_E_FILETRUST_DUALSIGNATURE_ECC = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145078526)); pub const WU_E_TRUST_SUBJECT_NOT_TRUSTED = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145078525)); pub const WU_E_TRUST_PROVIDER_UNKNOWN = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2145078524)); //-------------------------------------------------------------------------------- // Section: Types (109) //-------------------------------------------------------------------------------- const CLSID_StringCollection_Value = Guid.initString("72c97d74-7c3b-40ae-b77d-abdb22eba6fb"); pub const CLSID_StringCollection = &CLSID_StringCollection_Value; const CLSID_UpdateSearcher_Value = Guid.initString("b699e5e8-67ff-4177-88b0-3684a3388bfb"); pub const CLSID_UpdateSearcher = &CLSID_UpdateSearcher_Value; const CLSID_WebProxy_Value = Guid.initString("650503cf-9108-4ddc-a2ce-6c2341e1c582"); pub const CLSID_WebProxy = &CLSID_WebProxy_Value; const CLSID_SystemInformation_Value = Guid.initString("c01b9ba0-bea7-41ba-b604-d0a36f469133"); pub const CLSID_SystemInformation = &CLSID_SystemInformation_Value; const CLSID_WindowsUpdateAgentInfo_Value = Guid.initString("c2e88c2f-6f5b-4aaa-894b-55c847ad3a2d"); pub const CLSID_WindowsUpdateAgentInfo = &CLSID_WindowsUpdateAgentInfo_Value; const CLSID_AutomaticUpdates_Value = Guid.initString("bfe18e9c-6d87-4450-b37c-e02f0b373803"); pub const CLSID_AutomaticUpdates = &CLSID_AutomaticUpdates_Value; const CLSID_UpdateCollection_Value = Guid.initString("13639463-00db-4646-803d-528026140d88"); pub const CLSID_UpdateCollection = &CLSID_UpdateCollection_Value; const CLSID_UpdateDownloader_Value = Guid.initString("5baf654a-5a07-4264-a255-9ff54c7151e7"); pub const CLSID_UpdateDownloader = &CLSID_UpdateDownloader_Value; const CLSID_UpdateInstaller_Value = Guid.initString("d2e0fe7f-d23e-48e1-93c0-6fa8cc346474"); pub const CLSID_UpdateInstaller = &CLSID_UpdateInstaller_Value; const CLSID_UpdateSession_Value = Guid.initString("4cb43d7f-7eee-4906-8698-60da1c38f2fe"); pub const CLSID_UpdateSession = &CLSID_UpdateSession_Value; const CLSID_UpdateServiceManager_Value = Guid.initString("f8d253d9-89a4-4daa-87b6-1168369f0b21"); pub const CLSID_UpdateServiceManager = &CLSID_UpdateServiceManager_Value; const CLSID_InstallationAgent_Value = Guid.initString("317e92fc-1679-46fd-a0b5-f08914dd8623"); pub const CLSID_InstallationAgent = &CLSID_InstallationAgent_Value; pub const AutomaticUpdatesNotificationLevel = enum(i32) { NotConfigured = 0, Disabled = 1, NotifyBeforeDownload = 2, NotifyBeforeInstallation = 3, ScheduledInstallation = 4, }; pub const aunlNotConfigured = AutomaticUpdatesNotificationLevel.NotConfigured; pub const aunlDisabled = AutomaticUpdatesNotificationLevel.Disabled; pub const aunlNotifyBeforeDownload = AutomaticUpdatesNotificationLevel.NotifyBeforeDownload; pub const aunlNotifyBeforeInstallation = AutomaticUpdatesNotificationLevel.NotifyBeforeInstallation; pub const aunlScheduledInstallation = AutomaticUpdatesNotificationLevel.ScheduledInstallation; pub const AutomaticUpdatesScheduledInstallationDay = enum(i32) { Day = 0, Sunday = 1, Monday = 2, Tuesday = 3, Wednesday = 4, Thursday = 5, Friday = 6, Saturday = 7, }; pub const ausidEveryDay = AutomaticUpdatesScheduledInstallationDay.Day; pub const ausidEverySunday = AutomaticUpdatesScheduledInstallationDay.Sunday; pub const ausidEveryMonday = AutomaticUpdatesScheduledInstallationDay.Monday; pub const ausidEveryTuesday = AutomaticUpdatesScheduledInstallationDay.Tuesday; pub const ausidEveryWednesday = AutomaticUpdatesScheduledInstallationDay.Wednesday; pub const ausidEveryThursday = AutomaticUpdatesScheduledInstallationDay.Thursday; pub const ausidEveryFriday = AutomaticUpdatesScheduledInstallationDay.Friday; pub const ausidEverySaturday = AutomaticUpdatesScheduledInstallationDay.Saturday; pub const DownloadPhase = enum(i32) { Initializing = 1, Downloading = 2, Verifying = 3, }; pub const dphInitializing = DownloadPhase.Initializing; pub const dphDownloading = DownloadPhase.Downloading; pub const dphVerifying = DownloadPhase.Verifying; pub const DownloadPriority = enum(i32) { Low = 1, Normal = 2, High = 3, ExtraHigh = 4, }; pub const dpLow = DownloadPriority.Low; pub const dpNormal = DownloadPriority.Normal; pub const dpHigh = DownloadPriority.High; pub const dpExtraHigh = DownloadPriority.ExtraHigh; pub const AutoSelectionMode = enum(i32) { LetWindowsUpdateDecide = 0, AutoSelectIfDownloaded = 1, NeverAutoSelect = 2, AlwaysAutoSelect = 3, }; pub const asLetWindowsUpdateDecide = AutoSelectionMode.LetWindowsUpdateDecide; pub const asAutoSelectIfDownloaded = AutoSelectionMode.AutoSelectIfDownloaded; pub const asNeverAutoSelect = AutoSelectionMode.NeverAutoSelect; pub const asAlwaysAutoSelect = AutoSelectionMode.AlwaysAutoSelect; pub const AutoDownloadMode = enum(i32) { LetWindowsUpdateDecide = 0, NeverAutoDownload = 1, AlwaysAutoDownload = 2, }; pub const adLetWindowsUpdateDecide = AutoDownloadMode.LetWindowsUpdateDecide; pub const adNeverAutoDownload = AutoDownloadMode.NeverAutoDownload; pub const adAlwaysAutoDownload = AutoDownloadMode.AlwaysAutoDownload; pub const InstallationImpact = enum(i32) { Normal = 0, Minor = 1, RequiresExclusiveHandling = 2, }; pub const iiNormal = InstallationImpact.Normal; pub const iiMinor = InstallationImpact.Minor; pub const iiRequiresExclusiveHandling = InstallationImpact.RequiresExclusiveHandling; pub const InstallationRebootBehavior = enum(i32) { NeverReboots = 0, AlwaysRequiresReboot = 1, CanRequestReboot = 2, }; pub const irbNeverReboots = InstallationRebootBehavior.NeverReboots; pub const irbAlwaysRequiresReboot = InstallationRebootBehavior.AlwaysRequiresReboot; pub const irbCanRequestReboot = InstallationRebootBehavior.CanRequestReboot; pub const OperationResultCode = enum(i32) { NotStarted = 0, InProgress = 1, Succeeded = 2, SucceededWithErrors = 3, Failed = 4, Aborted = 5, }; pub const orcNotStarted = OperationResultCode.NotStarted; pub const orcInProgress = OperationResultCode.InProgress; pub const orcSucceeded = OperationResultCode.Succeeded; pub const orcSucceededWithErrors = OperationResultCode.SucceededWithErrors; pub const orcFailed = OperationResultCode.Failed; pub const orcAborted = OperationResultCode.Aborted; pub const ServerSelection = enum(i32) { Default = 0, ManagedServer = 1, WindowsUpdate = 2, Others = 3, }; pub const ssDefault = ServerSelection.Default; pub const ssManagedServer = ServerSelection.ManagedServer; pub const ssWindowsUpdate = ServerSelection.WindowsUpdate; pub const ssOthers = ServerSelection.Others; pub const UpdateType = enum(i32) { Software = 1, Driver = 2, }; pub const utSoftware = UpdateType.Software; pub const utDriver = UpdateType.Driver; pub const UpdateOperation = enum(i32) { Installation = 1, Uninstallation = 2, }; pub const uoInstallation = UpdateOperation.Installation; pub const uoUninstallation = UpdateOperation.Uninstallation; pub const DeploymentAction = enum(i32) { None = 0, Installation = 1, Uninstallation = 2, Detection = 3, OptionalInstallation = 4, }; pub const daNone = DeploymentAction.None; pub const daInstallation = DeploymentAction.Installation; pub const daUninstallation = DeploymentAction.Uninstallation; pub const daDetection = DeploymentAction.Detection; pub const daOptionalInstallation = DeploymentAction.OptionalInstallation; pub const UpdateExceptionContext = enum(i32) { General = 1, WindowsDriver = 2, WindowsInstaller = 3, SearchIncomplete = 4, }; pub const uecGeneral = UpdateExceptionContext.General; pub const uecWindowsDriver = UpdateExceptionContext.WindowsDriver; pub const uecWindowsInstaller = UpdateExceptionContext.WindowsInstaller; pub const uecSearchIncomplete = UpdateExceptionContext.SearchIncomplete; pub const AutomaticUpdatesUserType = enum(i32) { CurrentUser = 1, LocalAdministrator = 2, }; pub const auutCurrentUser = AutomaticUpdatesUserType.CurrentUser; pub const auutLocalAdministrator = AutomaticUpdatesUserType.LocalAdministrator; pub const AutomaticUpdatesPermissionType = enum(i32) { SetNotificationLevel = 1, DisableAutomaticUpdates = 2, SetIncludeRecommendedUpdates = 3, SetFeaturedUpdatesEnabled = 4, SetNonAdministratorsElevated = 5, }; pub const auptSetNotificationLevel = AutomaticUpdatesPermissionType.SetNotificationLevel; pub const auptDisableAutomaticUpdates = AutomaticUpdatesPermissionType.DisableAutomaticUpdates; pub const auptSetIncludeRecommendedUpdates = AutomaticUpdatesPermissionType.SetIncludeRecommendedUpdates; pub const auptSetFeaturedUpdatesEnabled = AutomaticUpdatesPermissionType.SetFeaturedUpdatesEnabled; pub const auptSetNonAdministratorsElevated = AutomaticUpdatesPermissionType.SetNonAdministratorsElevated; pub const UpdateServiceRegistrationState = enum(i32) { NotRegistered = 1, RegistrationPending = 2, Registered = 3, }; pub const usrsNotRegistered = UpdateServiceRegistrationState.NotRegistered; pub const usrsRegistrationPending = UpdateServiceRegistrationState.RegistrationPending; pub const usrsRegistered = UpdateServiceRegistrationState.Registered; pub const SearchScope = enum(i32) { Default = 0, MachineOnly = 1, CurrentUserOnly = 2, MachineAndCurrentUser = 3, MachineAndAllUsers = 4, AllUsers = 5, }; pub const searchScopeDefault = SearchScope.Default; pub const searchScopeMachineOnly = SearchScope.MachineOnly; pub const searchScopeCurrentUserOnly = SearchScope.CurrentUserOnly; pub const searchScopeMachineAndCurrentUser = SearchScope.MachineAndCurrentUser; pub const searchScopeMachineAndAllUsers = SearchScope.MachineAndAllUsers; pub const searchScopeAllUsers = SearchScope.AllUsers; // TODO: this type is limited to platform 'windows5.1.2600' const IID_IUpdateLockdown_Value = Guid.initString("a976c28d-75a1-42aa-94ae-8af8b872089a"); pub const IID_IUpdateLockdown = &IID_IUpdateLockdown_Value; pub const IUpdateLockdown = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, LockDown: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IUpdateLockdown, flags: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IUpdateLockdown, flags: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IUpdateLockdown_LockDown(self: *const T, flags: i32) HRESULT { return @as(*const IUpdateLockdown.VTable, @ptrCast(self.vtable)).LockDown(@as(*const IUpdateLockdown, @ptrCast(self)), flags); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows5.1.2600' const IID_IStringCollection_Value = Guid.initString("eff90582-2ddc-480f-a06d-60f3fbc362c3"); pub const IID_IStringCollection = &IID_IStringCollection_Value; pub const IStringCollection = extern struct { pub const VTable = extern struct { base: IDispatch.VTable, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Item: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IStringCollection, index: i32, retval: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IStringCollection, index: i32, retval: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_Item: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IStringCollection, index: i32, value: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IStringCollection, index: i32, value: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get__NewEnum: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IStringCollection, retval: ?*?*IUnknown, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IStringCollection, retval: ?*?*IUnknown, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Count: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IStringCollection, retval: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IStringCollection, retval: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_ReadOnly: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IStringCollection, retval: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IStringCollection, retval: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Add: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IStringCollection, value: ?BSTR, retval: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IStringCollection, value: ?BSTR, retval: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Clear: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IStringCollection, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IStringCollection, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Copy: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IStringCollection, retval: ?*?*IStringCollection, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IStringCollection, retval: ?*?*IStringCollection, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Insert: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IStringCollection, index: i32, value: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IStringCollection, index: i32, value: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, RemoveAt: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IStringCollection, index: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IStringCollection, index: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IDispatch.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IStringCollection_get_Item(self: *const T, index: i32, retval: ?*?BSTR) HRESULT { return @as(*const IStringCollection.VTable, @ptrCast(self.vtable)).get_Item(@as(*const IStringCollection, @ptrCast(self)), index, retval); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IStringCollection_put_Item(self: *const T, index: i32, value: ?BSTR) HRESULT { return @as(*const IStringCollection.VTable, @ptrCast(self.vtable)).put_Item(@as(*const IStringCollection, @ptrCast(self)), index, value); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IStringCollection_get__NewEnum(self: *const T, retval: ?*?*IUnknown) HRESULT { return @as(*const IStringCollection.VTable, @ptrCast(self.vtable)).get__NewEnum(@as(*const IStringCollection, @ptrCast(self)), retval); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IStringCollection_get_Count(self: *const T, retval: ?*i32) HRESULT { return @as(*const IStringCollection.VTable, @ptrCast(self.vtable)).get_Count(@as(*const IStringCollection, @ptrCast(self)), retval); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IStringCollection_get_ReadOnly(self: *const T, retval: ?*i16) HRESULT { return @as(*const IStringCollection.VTable, @ptrCast(self.vtable)).get_ReadOnly(@as(*const IStringCollection, @ptrCast(self)), retval); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IStringCollection_Add(self: *const T, value: ?BSTR, retval: ?*i32) HRESULT { return @as(*const IStringCollection.VTable, @ptrCast(self.vtable)).Add(@as(*const IStringCollection, @ptrCast(self)), value, retval); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IStringCollection_Clear(self: *const T) HRESULT { return @as(*const IStringCollection.VTable, @ptrCast(self.vtable)).Clear(@as(*const IStringCollection, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IStringCollection_Copy(self: *const T, retval: ?*?*IStringCollection) HRESULT { return @as(*const IStringCollection.VTable, @ptrCast(self.vtable)).Copy(@as(*const IStringCollection, @ptrCast(self)), retval); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IStringCollection_Insert(self: *const T, index: i32, value: ?BSTR) HRESULT { return @as(*const IStringCollection.VTable, @ptrCast(self.vtable)).Insert(@as(*const IStringCollection, @ptrCast(self)), index, value); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IStringCollection_RemoveAt(self: *const T, index: i32) HRESULT { return @as(*const IStringCollection.VTable, @ptrCast(self.vtable)).RemoveAt(@as(*const IStringCollection, @ptrCast(self)), index); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows5.1.2600' const IID_IWebProxy_Value = Guid.initString("174c81fe-aecd-4dae-b8a0-2c6318dd86a8"); pub const IID_IWebProxy = &IID_IWebProxy_Value; pub const IWebProxy = extern struct { pub const VTable = extern struct { base: IDispatch.VTable, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Address: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IWebProxy, retval: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IWebProxy, retval: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_Address: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IWebProxy, value: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IWebProxy, value: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_BypassList: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IWebProxy, retval: ?*?*IStringCollection, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IWebProxy, retval: ?*?*IStringCollection, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_BypassList: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IWebProxy, value: ?*IStringCollection, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IWebProxy, value: ?*IStringCollection, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_BypassProxyOnLocal: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IWebProxy, retval: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IWebProxy, retval: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_BypassProxyOnLocal: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IWebProxy, value: i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IWebProxy, value: i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_ReadOnly: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IWebProxy, retval: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IWebProxy, retval: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_UserName: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IWebProxy, retval: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IWebProxy, retval: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_UserName: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IWebProxy, value: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IWebProxy, value: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetPassword: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IWebProxy, value: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IWebProxy, value: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, PromptForCredentials: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IWebProxy, parentWindow: ?*IUnknown, title: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IWebProxy, parentWindow: ?*IUnknown, title: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, PromptForCredentialsFromHwnd: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IWebProxy, parentWindow: ?HWND, title: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IWebProxy, parentWindow: ?HWND, title: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_AutoDetect: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IWebProxy, retval: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IWebProxy, retval: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_AutoDetect: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IWebProxy, value: i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IWebProxy, value: i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IDispatch.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWebProxy_get_Address(self: *const T, retval: ?*?BSTR) HRESULT { return @as(*const IWebProxy.VTable, @ptrCast(self.vtable)).get_Address(@as(*const IWebProxy, @ptrCast(self)), retval); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWebProxy_put_Address(self: *const T, value: ?BSTR) HRESULT { return @as(*const IWebProxy.VTable, @ptrCast(self.vtable)).put_Address(@as(*const IWebProxy, @ptrCast(self)), value); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWebProxy_get_BypassList(self: *const T, retval: ?*?*IStringCollection) HRESULT { return @as(*const IWebProxy.VTable, @ptrCast(self.vtable)).get_BypassList(@as(*const IWebProxy, @ptrCast(self)), retval); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWebProxy_put_BypassList(self: *const T, value: ?*IStringCollection) HRESULT { return @as(*const IWebProxy.VTable, @ptrCast(self.vtable)).put_BypassList(@as(*const IWebProxy, @ptrCast(self)), value); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWebProxy_get_BypassProxyOnLocal(self: *const T, retval: ?*i16) HRESULT { return @as(*const IWebProxy.VTable, @ptrCast(self.vtable)).get_BypassProxyOnLocal(@as(*const IWebProxy, @ptrCast(self)), retval); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWebProxy_put_BypassProxyOnLocal(self: *const T, value: i16) HRESULT { return @as(*const IWebProxy.VTable, @ptrCast(self.vtable)).put_BypassProxyOnLocal(@as(*const IWebProxy, @ptrCast(self)), value); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWebProxy_get_ReadOnly(self: *const T, retval: ?*i16) HRESULT { return @as(*const IWebProxy.VTable, @ptrCast(self.vtable)).get_ReadOnly(@as(*const IWebProxy, @ptrCast(self)), retval); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWebProxy_get_UserName(self: *const T, retval: ?*?BSTR) HRESULT { return @as(*const IWebProxy.VTable, @ptrCast(self.vtable)).get_UserName(@as(*const IWebProxy, @ptrCast(self)), retval); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWebProxy_put_UserName(self: *const T, value: ?BSTR) HRESULT { return @as(*const IWebProxy.VTable, @ptrCast(self.vtable)).put_UserName(@as(*const IWebProxy, @ptrCast(self)), value); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWebProxy_SetPassword(self: *const T, value: ?BSTR) HRESULT { return @as(*const IWebProxy.VTable, @ptrCast(self.vtable)).SetPassword(@as(*const IWebProxy, @ptrCast(self)), value); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWebProxy_PromptForCredentials(self: *const T, parentWindow: ?*IUnknown, title: ?BSTR) HRESULT { return @as(*const IWebProxy.VTable, @ptrCast(self.vtable)).PromptForCredentials(@as(*const IWebProxy, @ptrCast(self)), parentWindow, title); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWebProxy_PromptForCredentialsFromHwnd(self: *const T, parentWindow: ?HWND, title: ?BSTR) HRESULT { return @as(*const IWebProxy.VTable, @ptrCast(self.vtable)).PromptForCredentialsFromHwnd(@as(*const IWebProxy, @ptrCast(self)), parentWindow, title); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWebProxy_get_AutoDetect(self: *const T, retval: ?*i16) HRESULT { return @as(*const IWebProxy.VTable, @ptrCast(self.vtable)).get_AutoDetect(@as(*const IWebProxy, @ptrCast(self)), retval); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWebProxy_put_AutoDetect(self: *const T, value: i16) HRESULT { return @as(*const IWebProxy.VTable, @ptrCast(self.vtable)).put_AutoDetect(@as(*const IWebProxy, @ptrCast(self)), value); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows5.1.2600' const IID_ISystemInformation_Value = Guid.initString("ade87bf7-7b56-4275-8fab-b9b0e591844b"); pub const IID_ISystemInformation = &IID_ISystemInformation_Value; pub const ISystemInformation = extern struct { pub const VTable = extern struct { base: IDispatch.VTable, // TODO: this function has a "SpecialName", should Zig do anything with this? get_OemHardwareSupportLink: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ISystemInformation, retval: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ISystemInformation, retval: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_RebootRequired: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ISystemInformation, retval: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ISystemInformation, retval: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IDispatch.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISystemInformation_get_OemHardwareSupportLink(self: *const T, retval: ?*?BSTR) HRESULT { return @as(*const ISystemInformation.VTable, @ptrCast(self.vtable)).get_OemHardwareSupportLink(@as(*const ISystemInformation, @ptrCast(self)), retval); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISystemInformation_get_RebootRequired(self: *const T, retval: ?*i16) HRESULT { return @as(*const ISystemInformation.VTable, @ptrCast(self.vtable)).get_RebootRequired(@as(*const ISystemInformation, @ptrCast(self)), retval); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows5.1.2600' const IID_IWindowsUpdateAgentInfo_Value = Guid.initString("85713fa1-7796-4fa2-be3b-e2d6124dd373"); pub const IID_IWindowsUpdateAgentInfo = &IID_IWindowsUpdateAgentInfo_Value; pub const IWindowsUpdateAgentInfo = extern struct { pub const VTable = extern struct { base: IDispatch.VTable, GetInfo: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IWindowsUpdateAgentInfo, varInfoIdentifier: VARIANT, retval: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IWindowsUpdateAgentInfo, varInfoIdentifier: VARIANT, retval: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IDispatch.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWindowsUpdateAgentInfo_GetInfo(self: *const T, varInfoIdentifier: VARIANT, retval: ?*VARIANT) HRESULT { return @as(*const IWindowsUpdateAgentInfo.VTable, @ptrCast(self.vtable)).GetInfo(@as(*const IWindowsUpdateAgentInfo, @ptrCast(self)), varInfoIdentifier, retval); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows5.1.2600' const IID_IAutomaticUpdatesResults_Value = Guid.initString("e7a4d634-7942-4dd9-a111-82228ba33901"); pub const IID_IAutomaticUpdatesResults = &IID_IAutomaticUpdatesResults_Value; pub const IAutomaticUpdatesResults = extern struct { pub const VTable = extern struct { base: IDispatch.VTable, // TODO: this function has a "SpecialName", should Zig do anything with this? get_LastSearchSuccessDate: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IAutomaticUpdatesResults, retval: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IAutomaticUpdatesResults, retval: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_LastInstallationSuccessDate: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IAutomaticUpdatesResults, retval: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IAutomaticUpdatesResults, retval: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IDispatch.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IAutomaticUpdatesResults_get_LastSearchSuccessDate(self: *const T, retval: ?*VARIANT) HRESULT { return @as(*const IAutomaticUpdatesResults.VTable, @ptrCast(self.vtable)).get_LastSearchSuccessDate(@as(*const IAutomaticUpdatesResults, @ptrCast(self)), retval); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IAutomaticUpdatesResults_get_LastInstallationSuccessDate(self: *const T, retval: ?*VARIANT) HRESULT { return @as(*const IAutomaticUpdatesResults.VTable, @ptrCast(self.vtable)).get_LastInstallationSuccessDate(@as(*const IAutomaticUpdatesResults, @ptrCast(self)), retval); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows5.1.2600' const IID_IAutomaticUpdatesSettings_Value = Guid.initString("2ee48f22-af3c-405f-8970-f71be12ee9a2"); pub const IID_IAutomaticUpdatesSettings = &IID_IAutomaticUpdatesSettings_Value; pub const IAutomaticUpdatesSettings = extern struct { pub const VTable = extern struct { base: IDispatch.VTable, // TODO: this function has a "SpecialName", should Zig do anything with this? get_NotificationLevel: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IAutomaticUpdatesSettings, retval: ?*AutomaticUpdatesNotificationLevel, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IAutomaticUpdatesSettings, retval: ?*AutomaticUpdatesNotificationLevel, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_NotificationLevel: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IAutomaticUpdatesSettings, value: AutomaticUpdatesNotificationLevel, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IAutomaticUpdatesSettings, value: AutomaticUpdatesNotificationLevel, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_ReadOnly: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IAutomaticUpdatesSettings, retval: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IAutomaticUpdatesSettings, retval: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Required: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IAutomaticUpdatesSettings, retval: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IAutomaticUpdatesSettings, retval: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_ScheduledInstallationDay: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IAutomaticUpdatesSettings, retval: ?*AutomaticUpdatesScheduledInstallationDay, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IAutomaticUpdatesSettings, retval: ?*AutomaticUpdatesScheduledInstallationDay, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_ScheduledInstallationDay: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IAutomaticUpdatesSettings, value: AutomaticUpdatesScheduledInstallationDay, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IAutomaticUpdatesSettings, value: AutomaticUpdatesScheduledInstallationDay, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_ScheduledInstallationTime: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IAutomaticUpdatesSettings, retval: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IAutomaticUpdatesSettings, retval: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_ScheduledInstallationTime: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IAutomaticUpdatesSettings, value: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IAutomaticUpdatesSettings, value: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Refresh: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IAutomaticUpdatesSettings, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IAutomaticUpdatesSettings, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Save: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IAutomaticUpdatesSettings, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IAutomaticUpdatesSettings, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IDispatch.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IAutomaticUpdatesSettings_get_NotificationLevel(self: *const T, retval: ?*AutomaticUpdatesNotificationLevel) HRESULT { return @as(*const IAutomaticUpdatesSettings.VTable, @ptrCast(self.vtable)).get_NotificationLevel(@as(*const IAutomaticUpdatesSettings, @ptrCast(self)), retval); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IAutomaticUpdatesSettings_put_NotificationLevel(self: *const T, value: AutomaticUpdatesNotificationLevel) HRESULT { return @as(*const IAutomaticUpdatesSettings.VTable, @ptrCast(self.vtable)).put_NotificationLevel(@as(*const IAutomaticUpdatesSettings, @ptrCast(self)), value); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IAutomaticUpdatesSettings_get_ReadOnly(self: *const T, retval: ?*i16) HRESULT { return @as(*const IAutomaticUpdatesSettings.VTable, @ptrCast(self.vtable)).get_ReadOnly(@as(*const IAutomaticUpdatesSettings, @ptrCast(self)), retval); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IAutomaticUpdatesSettings_get_Required(self: *const T, retval: ?*i16) HRESULT { return @as(*const IAutomaticUpdatesSettings.VTable, @ptrCast(self.vtable)).get_Required(@as(*const IAutomaticUpdatesSettings, @ptrCast(self)), retval); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IAutomaticUpdatesSettings_get_ScheduledInstallationDay(self: *const T, retval: ?*AutomaticUpdatesScheduledInstallationDay) HRESULT { return @as(*const IAutomaticUpdatesSettings.VTable, @ptrCast(self.vtable)).get_ScheduledInstallationDay(@as(*const IAutomaticUpdatesSettings, @ptrCast(self)), retval); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IAutomaticUpdatesSettings_put_ScheduledInstallationDay(self: *const T, value: AutomaticUpdatesScheduledInstallationDay) HRESULT { return @as(*const IAutomaticUpdatesSettings.VTable, @ptrCast(self.vtable)).put_ScheduledInstallationDay(@as(*const IAutomaticUpdatesSettings, @ptrCast(self)), value); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IAutomaticUpdatesSettings_get_ScheduledInstallationTime(self: *const T, retval: ?*i32) HRESULT { return @as(*const IAutomaticUpdatesSettings.VTable, @ptrCast(self.vtable)).get_ScheduledInstallationTime(@as(*const IAutomaticUpdatesSettings, @ptrCast(self)), retval); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IAutomaticUpdatesSettings_put_ScheduledInstallationTime(self: *const T, value: i32) HRESULT { return @as(*const IAutomaticUpdatesSettings.VTable, @ptrCast(self.vtable)).put_ScheduledInstallationTime(@as(*const IAutomaticUpdatesSettings, @ptrCast(self)), value); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IAutomaticUpdatesSettings_Refresh(self: *const T) HRESULT { return @as(*const IAutomaticUpdatesSettings.VTable, @ptrCast(self.vtable)).Refresh(@as(*const IAutomaticUpdatesSettings, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IAutomaticUpdatesSettings_Save(self: *const T) HRESULT { return @as(*const IAutomaticUpdatesSettings.VTable, @ptrCast(self.vtable)).Save(@as(*const IAutomaticUpdatesSettings, @ptrCast(self))); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows5.1.2600' const IID_IAutomaticUpdatesSettings2_Value = Guid.initString("6abc136a-c3ca-4384-8171-cb2b1e59b8dc"); pub const IID_IAutomaticUpdatesSettings2 = &IID_IAutomaticUpdatesSettings2_Value; pub const IAutomaticUpdatesSettings2 = extern struct { pub const VTable = extern struct { base: IAutomaticUpdatesSettings.VTable, // TODO: this function has a "SpecialName", should Zig do anything with this? get_IncludeRecommendedUpdates: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IAutomaticUpdatesSettings2, retval: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IAutomaticUpdatesSettings2, retval: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_IncludeRecommendedUpdates: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IAutomaticUpdatesSettings2, value: i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IAutomaticUpdatesSettings2, value: i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, CheckPermission: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IAutomaticUpdatesSettings2, userType: AutomaticUpdatesUserType, permissionType: AutomaticUpdatesPermissionType, userHasPermission: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IAutomaticUpdatesSettings2, userType: AutomaticUpdatesUserType, permissionType: AutomaticUpdatesPermissionType, userHasPermission: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IAutomaticUpdatesSettings.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IAutomaticUpdatesSettings2_get_IncludeRecommendedUpdates(self: *const T, retval: ?*i16) HRESULT { return @as(*const IAutomaticUpdatesSettings2.VTable, @ptrCast(self.vtable)).get_IncludeRecommendedUpdates(@as(*const IAutomaticUpdatesSettings2, @ptrCast(self)), retval); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IAutomaticUpdatesSettings2_put_IncludeRecommendedUpdates(self: *const T, value: i16) HRESULT { return @as(*const IAutomaticUpdatesSettings2.VTable, @ptrCast(self.vtable)).put_IncludeRecommendedUpdates(@as(*const IAutomaticUpdatesSettings2, @ptrCast(self)), value); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IAutomaticUpdatesSettings2_CheckPermission(self: *const T, userType: AutomaticUpdatesUserType, permissionType: AutomaticUpdatesPermissionType, userHasPermission: ?*i16) HRESULT { return @as(*const IAutomaticUpdatesSettings2.VTable, @ptrCast(self.vtable)).CheckPermission(@as(*const IAutomaticUpdatesSettings2, @ptrCast(self)), userType, permissionType, userHasPermission); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows5.1.2600' const IID_IAutomaticUpdatesSettings3_Value = Guid.initString("b587f5c3-f57e-485f-bbf5-0d181c5cd0dc"); pub const IID_IAutomaticUpdatesSettings3 = &IID_IAutomaticUpdatesSettings3_Value; pub const IAutomaticUpdatesSettings3 = extern struct { pub const VTable = extern struct { base: IAutomaticUpdatesSettings2.VTable, // TODO: this function has a "SpecialName", should Zig do anything with this? get_NonAdministratorsElevated: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IAutomaticUpdatesSettings3, retval: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IAutomaticUpdatesSettings3, retval: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_NonAdministratorsElevated: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IAutomaticUpdatesSettings3, value: i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IAutomaticUpdatesSettings3, value: i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_FeaturedUpdatesEnabled: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IAutomaticUpdatesSettings3, retval: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IAutomaticUpdatesSettings3, retval: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_FeaturedUpdatesEnabled: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IAutomaticUpdatesSettings3, value: i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IAutomaticUpdatesSettings3, value: i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IAutomaticUpdatesSettings2.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IAutomaticUpdatesSettings3_get_NonAdministratorsElevated(self: *const T, retval: ?*i16) HRESULT { return @as(*const IAutomaticUpdatesSettings3.VTable, @ptrCast(self.vtable)).get_NonAdministratorsElevated(@as(*const IAutomaticUpdatesSettings3, @ptrCast(self)), retval); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IAutomaticUpdatesSettings3_put_NonAdministratorsElevated(self: *const T, value: i16) HRESULT { return @as(*const IAutomaticUpdatesSettings3.VTable, @ptrCast(self.vtable)).put_NonAdministratorsElevated(@as(*const IAutomaticUpdatesSettings3, @ptrCast(self)), value); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IAutomaticUpdatesSettings3_get_FeaturedUpdatesEnabled(self: *const T, retval: ?*i16) HRESULT { return @as(*const IAutomaticUpdatesSettings3.VTable, @ptrCast(self.vtable)).get_FeaturedUpdatesEnabled(@as(*const IAutomaticUpdatesSettings3, @ptrCast(self)), retval); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IAutomaticUpdatesSettings3_put_FeaturedUpdatesEnabled(self: *const T, value: i16) HRESULT { return @as(*const IAutomaticUpdatesSettings3.VTable, @ptrCast(self.vtable)).put_FeaturedUpdatesEnabled(@as(*const IAutomaticUpdatesSettings3, @ptrCast(self)), value); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows5.1.2600' const IID_IAutomaticUpdates_Value = Guid.initString("673425bf-c082-4c7c-bdfd-569464b8e0ce"); pub const IID_IAutomaticUpdates = &IID_IAutomaticUpdates_Value; pub const IAutomaticUpdates = extern struct { pub const VTable = extern struct { base: IDispatch.VTable, DetectNow: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IAutomaticUpdates, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IAutomaticUpdates, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Pause: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IAutomaticUpdates, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IAutomaticUpdates, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Resume: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IAutomaticUpdates, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IAutomaticUpdates, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, ShowSettingsDialog: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IAutomaticUpdates, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IAutomaticUpdates, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Settings: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IAutomaticUpdates, retval: ?*?*IAutomaticUpdatesSettings, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IAutomaticUpdates, retval: ?*?*IAutomaticUpdatesSettings, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_ServiceEnabled: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IAutomaticUpdates, retval: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IAutomaticUpdates, retval: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, EnableService: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IAutomaticUpdates, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IAutomaticUpdates, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IDispatch.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IAutomaticUpdates_DetectNow(self: *const T) HRESULT { return @as(*const IAutomaticUpdates.VTable, @ptrCast(self.vtable)).DetectNow(@as(*const IAutomaticUpdates, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IAutomaticUpdates_Pause(self: *const T) HRESULT { return @as(*const IAutomaticUpdates.VTable, @ptrCast(self.vtable)).Pause(@as(*const IAutomaticUpdates, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IAutomaticUpdates_Resume(self: *const T) HRESULT { return @as(*const IAutomaticUpdates.VTable, @ptrCast(self.vtable)).Resume(@as(*const IAutomaticUpdates, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IAutomaticUpdates_ShowSettingsDialog(self: *const T) HRESULT { return @as(*const IAutomaticUpdates.VTable, @ptrCast(self.vtable)).ShowSettingsDialog(@as(*const IAutomaticUpdates, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IAutomaticUpdates_get_Settings(self: *const T, retval: ?*?*IAutomaticUpdatesSettings) HRESULT { return @as(*const IAutomaticUpdates.VTable, @ptrCast(self.vtable)).get_Settings(@as(*const IAutomaticUpdates, @ptrCast(self)), retval); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IAutomaticUpdates_get_ServiceEnabled(self: *const T, retval: ?*i16) HRESULT { return @as(*const IAutomaticUpdates.VTable, @ptrCast(self.vtable)).get_ServiceEnabled(@as(*const IAutomaticUpdates, @ptrCast(self)), retval); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IAutomaticUpdates_EnableService(self: *const T) HRESULT { return @as(*const IAutomaticUpdates.VTable, @ptrCast(self.vtable)).EnableService(@as(*const IAutomaticUpdates, @ptrCast(self))); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows5.1.2600' const IID_IAutomaticUpdates2_Value = Guid.initString("4a2f5c31-cfd9-410e-b7fb-29a653973a0f"); pub const IID_IAutomaticUpdates2 = &IID_IAutomaticUpdates2_Value; pub const IAutomaticUpdates2 = extern struct { pub const VTable = extern struct { base: IAutomaticUpdates.VTable, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Results: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IAutomaticUpdates2, retval: ?*?*IAutomaticUpdatesResults, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IAutomaticUpdates2, retval: ?*?*IAutomaticUpdatesResults, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IAutomaticUpdates.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IAutomaticUpdates2_get_Results(self: *const T, retval: ?*?*IAutomaticUpdatesResults) HRESULT { return @as(*const IAutomaticUpdates2.VTable, @ptrCast(self.vtable)).get_Results(@as(*const IAutomaticUpdates2, @ptrCast(self)), retval); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows5.1.2600' const IID_IUpdateIdentity_Value = Guid.initString("46297823-9940-4c09-aed9-cd3ea6d05968"); pub const IID_IUpdateIdentity = &IID_IUpdateIdentity_Value; pub const IUpdateIdentity = extern struct { pub const VTable = extern struct { base: IDispatch.VTable, // TODO: this function has a "SpecialName", should Zig do anything with this? get_RevisionNumber: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IUpdateIdentity, retval: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IUpdateIdentity, retval: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_UpdateID: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IUpdateIdentity, retval: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IUpdateIdentity, retval: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IDispatch.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IUpdateIdentity_get_RevisionNumber(self: *const T, retval: ?*i32) HRESULT { return @as(*const IUpdateIdentity.VTable, @ptrCast(self.vtable)).get_RevisionNumber(@as(*const IUpdateIdentity, @ptrCast(self)), retval); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IUpdateIdentity_get_UpdateID(self: *const T, retval: ?*?BSTR) HRESULT { return @as(*const IUpdateIdentity.VTable, @ptrCast(self.vtable)).get_UpdateID(@as(*const IUpdateIdentity, @ptrCast(self)), retval); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows5.1.2600' const IID_IImageInformation_Value = Guid.initString("7c907864-346c-4aeb-8f3f-57da289f969f"); pub const IID_IImageInformation = &IID_IImageInformation_Value; pub const IImageInformation = extern struct { pub const VTable = extern struct { base: IDispatch.VTable, // TODO: this function has a "SpecialName", should Zig do anything with this? get_AltText: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IImageInformation, retval: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IImageInformation, retval: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Height: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IImageInformation, retval: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IImageInformation, retval: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Source: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IImageInformation, retval: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IImageInformation, retval: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Width: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IImageInformation, retval: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IImageInformation, retval: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IDispatch.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IImageInformation_get_AltText(self: *const T, retval: ?*?BSTR) HRESULT { return @as(*const IImageInformation.VTable, @ptrCast(self.vtable)).get_AltText(@as(*const IImageInformation, @ptrCast(self)), retval); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IImageInformation_get_Height(self: *const T, retval: ?*i32) HRESULT { return @as(*const IImageInformation.VTable, @ptrCast(self.vtable)).get_Height(@as(*const IImageInformation, @ptrCast(self)), retval); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IImageInformation_get_Source(self: *const T, retval: ?*?BSTR) HRESULT { return @as(*const IImageInformation.VTable, @ptrCast(self.vtable)).get_Source(@as(*const IImageInformation, @ptrCast(self)), retval); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IImageInformation_get_Width(self: *const T, retval: ?*i32) HRESULT { return @as(*const IImageInformation.VTable, @ptrCast(self.vtable)).get_Width(@as(*const IImageInformation, @ptrCast(self)), retval); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows5.1.2600' const IID_ICategory_Value = Guid.initString("81ddc1b8-9d35-47a6-b471-5b80f519223b"); pub const IID_ICategory = &IID_ICategory_Value; pub const ICategory = extern struct { pub const VTable = extern struct { base: IDispatch.VTable, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Name: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ICategory, retval: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ICategory, retval: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_CategoryID: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ICategory, retval: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ICategory, retval: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Children: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ICategory, retval: ?*?*ICategoryCollection, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ICategory, retval: ?*?*ICategoryCollection, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Description: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ICategory, retval: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ICategory, retval: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Image: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ICategory, retval: ?*?*IImageInformation, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ICategory, retval: ?*?*IImageInformation, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Order: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ICategory, retval: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ICategory, retval: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Parent: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ICategory, retval: ?*?*ICategory, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ICategory, retval: ?*?*ICategory, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Type: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ICategory, retval: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ICategory, retval: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Updates: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ICategory, retval: ?*?*IUpdateCollection, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ICategory, retval: ?*?*IUpdateCollection, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IDispatch.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ICategory_get_Name(self: *const T, retval: ?*?BSTR) HRESULT { return @as(*const ICategory.VTable, @ptrCast(self.vtable)).get_Name(@as(*const ICategory, @ptrCast(self)), retval); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ICategory_get_CategoryID(self: *const T, retval: ?*?BSTR) HRESULT { return @as(*const ICategory.VTable, @ptrCast(self.vtable)).get_CategoryID(@as(*const ICategory, @ptrCast(self)), retval); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ICategory_get_Children(self: *const T, retval: ?*?*ICategoryCollection) HRESULT { return @as(*const ICategory.VTable, @ptrCast(self.vtable)).get_Children(@as(*const ICategory, @ptrCast(self)), retval); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ICategory_get_Description(self: *const T, retval: ?*?BSTR) HRESULT { return @as(*const ICategory.VTable, @ptrCast(self.vtable)).get_Description(@as(*const ICategory, @ptrCast(self)), retval); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ICategory_get_Image(self: *const T, retval: ?*?*IImageInformation) HRESULT { return @as(*const ICategory.VTable, @ptrCast(self.vtable)).get_Image(@as(*const ICategory, @ptrCast(self)), retval); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ICategory_get_Order(self: *const T, retval: ?*i32) HRESULT { return @as(*const ICategory.VTable, @ptrCast(self.vtable)).get_Order(@as(*const ICategory, @ptrCast(self)), retval); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ICategory_get_Parent(self: *const T, retval: ?*?*ICategory) HRESULT { return @as(*const ICategory.VTable, @ptrCast(self.vtable)).get_Parent(@as(*const ICategory, @ptrCast(self)), retval); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ICategory_get_Type(self: *const T, retval: ?*?BSTR) HRESULT { return @as(*const ICategory.VTable, @ptrCast(self.vtable)).get_Type(@as(*const ICategory, @ptrCast(self)), retval); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ICategory_get_Updates(self: *const T, retval: ?*?*IUpdateCollection) HRESULT { return @as(*const ICategory.VTable, @ptrCast(self.vtable)).get_Updates(@as(*const ICategory, @ptrCast(self)), retval); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows5.1.2600' const IID_ICategoryCollection_Value = Guid.initString("3a56bfb8-576c-43f7-9335-fe4838fd7e37"); pub const IID_ICategoryCollection = &IID_ICategoryCollection_Value; pub const ICategoryCollection = extern struct { pub const VTable = extern struct { base: IDispatch.VTable, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Item: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ICategoryCollection, index: i32, retval: ?*?*ICategory, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ICategoryCollection, index: i32, retval: ?*?*ICategory, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get__NewEnum: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ICategoryCollection, retval: ?*?*IUnknown, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ICategoryCollection, retval: ?*?*IUnknown, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Count: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ICategoryCollection, retval: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ICategoryCollection, retval: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IDispatch.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ICategoryCollection_get_Item(self: *const T, index: i32, retval: ?*?*ICategory) HRESULT { return @as(*const ICategoryCollection.VTable, @ptrCast(self.vtable)).get_Item(@as(*const ICategoryCollection, @ptrCast(self)), index, retval); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ICategoryCollection_get__NewEnum(self: *const T, retval: ?*?*IUnknown) HRESULT { return @as(*const ICategoryCollection.VTable, @ptrCast(self.vtable)).get__NewEnum(@as(*const ICategoryCollection, @ptrCast(self)), retval); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ICategoryCollection_get_Count(self: *const T, retval: ?*i32) HRESULT { return @as(*const ICategoryCollection.VTable, @ptrCast(self.vtable)).get_Count(@as(*const ICategoryCollection, @ptrCast(self)), retval); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows5.1.2600' const IID_IInstallationBehavior_Value = Guid.initString("d9a59339-e245-4dbd-9686-4d5763e39624"); pub const IID_IInstallationBehavior = &IID_IInstallationBehavior_Value; pub const IInstallationBehavior = extern struct { pub const VTable = extern struct { base: IDispatch.VTable, // TODO: this function has a "SpecialName", should Zig do anything with this? get_CanRequestUserInput: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IInstallationBehavior, retval: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IInstallationBehavior, retval: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Impact: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IInstallationBehavior, retval: ?*InstallationImpact, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IInstallationBehavior, retval: ?*InstallationImpact, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_RebootBehavior: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IInstallationBehavior, retval: ?*InstallationRebootBehavior, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IInstallationBehavior, retval: ?*InstallationRebootBehavior, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_RequiresNetworkConnectivity: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IInstallationBehavior, retval: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IInstallationBehavior, retval: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IDispatch.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IInstallationBehavior_get_CanRequestUserInput(self: *const T, retval: ?*i16) HRESULT { return @as(*const IInstallationBehavior.VTable, @ptrCast(self.vtable)).get_CanRequestUserInput(@as(*const IInstallationBehavior, @ptrCast(self)), retval); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IInstallationBehavior_get_Impact(self: *const T, retval: ?*InstallationImpact) HRESULT { return @as(*const IInstallationBehavior.VTable, @ptrCast(self.vtable)).get_Impact(@as(*const IInstallationBehavior, @ptrCast(self)), retval); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IInstallationBehavior_get_RebootBehavior(self: *const T, retval: ?*InstallationRebootBehavior) HRESULT { return @as(*const IInstallationBehavior.VTable, @ptrCast(self.vtable)).get_RebootBehavior(@as(*const IInstallationBehavior, @ptrCast(self)), retval); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IInstallationBehavior_get_RequiresNetworkConnectivity(self: *const T, retval: ?*i16) HRESULT { return @as(*const IInstallationBehavior.VTable, @ptrCast(self.vtable)).get_RequiresNetworkConnectivity(@as(*const IInstallationBehavior, @ptrCast(self)), retval); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows5.1.2600' const IID_IUpdateDownloadContent_Value = Guid.initString("54a2cb2d-9a0c-48b6-8a50-9abb69ee2d02"); pub const IID_IUpdateDownloadContent = &IID_IUpdateDownloadContent_Value; pub const IUpdateDownloadContent = extern struct { pub const VTable = extern struct { base: IDispatch.VTable, // TODO: this function has a "SpecialName", should Zig do anything with this? get_DownloadUrl: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IUpdateDownloadContent, retval: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IUpdateDownloadContent, retval: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IDispatch.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IUpdateDownloadContent_get_DownloadUrl(self: *const T, retval: ?*?BSTR) HRESULT { return @as(*const IUpdateDownloadContent.VTable, @ptrCast(self.vtable)).get_DownloadUrl(@as(*const IUpdateDownloadContent, @ptrCast(self)), retval); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows5.1.2600' const IID_IUpdateDownloadContent2_Value = Guid.initString("c97ad11b-f257-420b-9d9f-377f733f6f68"); pub const IID_IUpdateDownloadContent2 = &IID_IUpdateDownloadContent2_Value; pub const IUpdateDownloadContent2 = extern struct { pub const VTable = extern struct { base: IUpdateDownloadContent.VTable, // TODO: this function has a "SpecialName", should Zig do anything with this? get_IsDeltaCompressedContent: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IUpdateDownloadContent2, retval: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IUpdateDownloadContent2, retval: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUpdateDownloadContent.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IUpdateDownloadContent2_get_IsDeltaCompressedContent(self: *const T, retval: ?*i16) HRESULT { return @as(*const IUpdateDownloadContent2.VTable, @ptrCast(self.vtable)).get_IsDeltaCompressedContent(@as(*const IUpdateDownloadContent2, @ptrCast(self)), retval); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows5.1.2600' const IID_IUpdateDownloadContentCollection_Value = Guid.initString("bc5513c8-b3b8-4bf7-a4d4-361c0d8c88ba"); pub const IID_IUpdateDownloadContentCollection = &IID_IUpdateDownloadContentCollection_Value; pub const IUpdateDownloadContentCollection = extern struct { pub const VTable = extern struct { base: IDispatch.VTable, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Item: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IUpdateDownloadContentCollection, index: i32, retval: ?*?*IUpdateDownloadContent, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IUpdateDownloadContentCollection, index: i32, retval: ?*?*IUpdateDownloadContent, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get__NewEnum: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IUpdateDownloadContentCollection, retval: ?*?*IUnknown, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IUpdateDownloadContentCollection, retval: ?*?*IUnknown, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Count: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IUpdateDownloadContentCollection, retval: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IUpdateDownloadContentCollection, retval: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IDispatch.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IUpdateDownloadContentCollection_get_Item(self: *const T, index: i32, retval: ?*?*IUpdateDownloadContent) HRESULT { return @as(*const IUpdateDownloadContentCollection.VTable, @ptrCast(self.vtable)).get_Item(@as(*const IUpdateDownloadContentCollection, @ptrCast(self)), index, retval); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IUpdateDownloadContentCollection_get__NewEnum(self: *const T, retval: ?*?*IUnknown) HRESULT { return @as(*const IUpdateDownloadContentCollection.VTable, @ptrCast(self.vtable)).get__NewEnum(@as(*const IUpdateDownloadContentCollection, @ptrCast(self)), retval); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IUpdateDownloadContentCollection_get_Count(self: *const T, retval: ?*i32) HRESULT { return @as(*const IUpdateDownloadContentCollection.VTable, @ptrCast(self.vtable)).get_Count(@as(*const IUpdateDownloadContentCollection, @ptrCast(self)), retval); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows5.1.2600' const IID_IUpdate_Value = Guid.initString("6a92b07a-d821-4682-b423-5c805022cc4d"); pub const IID_IUpdate = &IID_IUpdate_Value; pub const IUpdate = extern struct { pub const VTable = extern struct { base: IDispatch.VTable, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Title: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IUpdate, retval: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IUpdate, retval: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_AutoSelectOnWebSites: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IUpdate, retval: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IUpdate, retval: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_BundledUpdates: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IUpdate, retval: ?*?*IUpdateCollection, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IUpdate, retval: ?*?*IUpdateCollection, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_CanRequireSource: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IUpdate, retval: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IUpdate, retval: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Categories: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IUpdate, retval: ?*?*ICategoryCollection, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IUpdate, retval: ?*?*ICategoryCollection, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Deadline: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IUpdate, retval: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IUpdate, retval: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_DeltaCompressedContentAvailable: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IUpdate, retval: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IUpdate, retval: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_DeltaCompressedContentPreferred: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IUpdate, retval: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IUpdate, retval: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Description: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IUpdate, retval: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IUpdate, retval: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_EulaAccepted: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IUpdate, retval: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IUpdate, retval: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_EulaText: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IUpdate, retval: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IUpdate, retval: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_HandlerID: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IUpdate, retval: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IUpdate, retval: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Identity: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IUpdate, retval: ?*?*IUpdateIdentity, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IUpdate, retval: ?*?*IUpdateIdentity, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Image: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IUpdate, retval: ?*?*IImageInformation, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IUpdate, retval: ?*?*IImageInformation, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_InstallationBehavior: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IUpdate, retval: ?*?*IInstallationBehavior, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IUpdate, retval: ?*?*IInstallationBehavior, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_IsBeta: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IUpdate, retval: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IUpdate, retval: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_IsDownloaded: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IUpdate, retval: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IUpdate, retval: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_IsHidden: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IUpdate, retval: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IUpdate, retval: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_IsHidden: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IUpdate, value: i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IUpdate, value: i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_IsInstalled: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IUpdate, retval: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IUpdate, retval: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_IsMandatory: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IUpdate, retval: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IUpdate, retval: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_IsUninstallable: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IUpdate, retval: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IUpdate, retval: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Languages: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IUpdate, retval: ?*?*IStringCollection, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IUpdate, retval: ?*?*IStringCollection, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_LastDeploymentChangeTime: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IUpdate, retval: ?*f64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IUpdate, retval: ?*f64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_MaxDownloadSize: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IUpdate, retval: ?*DECIMAL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IUpdate, retval: ?*DECIMAL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_MinDownloadSize: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IUpdate, retval: ?*DECIMAL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IUpdate, retval: ?*DECIMAL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_MoreInfoUrls: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IUpdate, retval: ?*?*IStringCollection, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IUpdate, retval: ?*?*IStringCollection, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_MsrcSeverity: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IUpdate, retval: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IUpdate, retval: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_RecommendedCpuSpeed: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IUpdate, retval: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IUpdate, retval: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_RecommendedHardDiskSpace: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IUpdate, retval: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IUpdate, retval: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_RecommendedMemory: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IUpdate, retval: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IUpdate, retval: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_ReleaseNotes: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IUpdate, retval: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IUpdate, retval: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_SecurityBulletinIDs: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IUpdate, retval: ?*?*IStringCollection, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IUpdate, retval: ?*?*IStringCollection, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_SupersededUpdateIDs: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IUpdate, retval: ?*?*IStringCollection, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IUpdate, retval: ?*?*IStringCollection, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_SupportUrl: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IUpdate, retval: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IUpdate, retval: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Type: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IUpdate, retval: ?*UpdateType, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IUpdate, retval: ?*UpdateType, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_UninstallationNotes: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IUpdate, retval: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IUpdate, retval: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_UninstallationBehavior: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IUpdate, retval: ?*?*IInstallationBehavior, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IUpdate, retval: ?*?*IInstallationBehavior, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_UninstallationSteps: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IUpdate, retval: ?*?*IStringCollection, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IUpdate, retval: ?*?*IStringCollection, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_KBArticleIDs: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IUpdate, retval: ?*?*IStringCollection, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IUpdate, retval: ?*?*IStringCollection, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, AcceptEula: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IUpdate, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IUpdate, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_DeploymentAction: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IUpdate, retval: ?*DeploymentAction, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IUpdate, retval: ?*DeploymentAction, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, CopyFromCache: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IUpdate, path: ?BSTR, toExtractCabFiles: i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IUpdate, path: ?BSTR, toExtractCabFiles: i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_DownloadPriority: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IUpdate, retval: ?*DownloadPriority, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IUpdate, retval: ?*DownloadPriority, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_DownloadContents: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IUpdate, retval: ?*?*IUpdateDownloadContentCollection, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IUpdate, retval: ?*?*IUpdateDownloadContentCollection, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IDispatch.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IUpdate_get_Title(self: *const T, retval: ?*?BSTR) HRESULT { return @as(*const IUpdate.VTable, @ptrCast(self.vtable)).get_Title(@as(*const IUpdate, @ptrCast(self)), retval); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IUpdate_get_AutoSelectOnWebSites(self: *const T, retval: ?*i16) HRESULT { return @as(*const IUpdate.VTable, @ptrCast(self.vtable)).get_AutoSelectOnWebSites(@as(*const IUpdate, @ptrCast(self)), retval); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IUpdate_get_BundledUpdates(self: *const T, retval: ?*?*IUpdateCollection) HRESULT { return @as(*const IUpdate.VTable, @ptrCast(self.vtable)).get_BundledUpdates(@as(*const IUpdate, @ptrCast(self)), retval); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IUpdate_get_CanRequireSource(self: *const T, retval: ?*i16) HRESULT { return @as(*const IUpdate.VTable, @ptrCast(self.vtable)).get_CanRequireSource(@as(*const IUpdate, @ptrCast(self)), retval); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IUpdate_get_Categories(self: *const T, retval: ?*?*ICategoryCollection) HRESULT { return @as(*const IUpdate.VTable, @ptrCast(self.vtable)).get_Categories(@as(*const IUpdate, @ptrCast(self)), retval); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IUpdate_get_Deadline(self: *const T, retval: ?*VARIANT) HRESULT { return @as(*const IUpdate.VTable, @ptrCast(self.vtable)).get_Deadline(@as(*const IUpdate, @ptrCast(self)), retval); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IUpdate_get_DeltaCompressedContentAvailable(self: *const T, retval: ?*i16) HRESULT { return @as(*const IUpdate.VTable, @ptrCast(self.vtable)).get_DeltaCompressedContentAvailable(@as(*const IUpdate, @ptrCast(self)), retval); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IUpdate_get_DeltaCompressedContentPreferred(self: *const T, retval: ?*i16) HRESULT { return @as(*const IUpdate.VTable, @ptrCast(self.vtable)).get_DeltaCompressedContentPreferred(@as(*const IUpdate, @ptrCast(self)), retval); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IUpdate_get_Description(self: *const T, retval: ?*?BSTR) HRESULT { return @as(*const IUpdate.VTable, @ptrCast(self.vtable)).get_Description(@as(*const IUpdate, @ptrCast(self)), retval); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IUpdate_get_EulaAccepted(self: *const T, retval: ?*i16) HRESULT { return @as(*const IUpdate.VTable, @ptrCast(self.vtable)).get_EulaAccepted(@as(*const IUpdate, @ptrCast(self)), retval); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IUpdate_get_EulaText(self: *const T, retval: ?*?BSTR) HRESULT { return @as(*const IUpdate.VTable, @ptrCast(self.vtable)).get_EulaText(@as(*const IUpdate, @ptrCast(self)), retval); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IUpdate_get_HandlerID(self: *const T, retval: ?*?BSTR) HRESULT { return @as(*const IUpdate.VTable, @ptrCast(self.vtable)).get_HandlerID(@as(*const IUpdate, @ptrCast(self)), retval); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IUpdate_get_Identity(self: *const T, retval: ?*?*IUpdateIdentity) HRESULT { return @as(*const IUpdate.VTable, @ptrCast(self.vtable)).get_Identity(@as(*const IUpdate, @ptrCast(self)), retval); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IUpdate_get_Image(self: *const T, retval: ?*?*IImageInformation) HRESULT { return @as(*const IUpdate.VTable, @ptrCast(self.vtable)).get_Image(@as(*const IUpdate, @ptrCast(self)), retval); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IUpdate_get_InstallationBehavior(self: *const T, retval: ?*?*IInstallationBehavior) HRESULT { return @as(*const IUpdate.VTable, @ptrCast(self.vtable)).get_InstallationBehavior(@as(*const IUpdate, @ptrCast(self)), retval); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IUpdate_get_IsBeta(self: *const T, retval: ?*i16) HRESULT { return @as(*const IUpdate.VTable, @ptrCast(self.vtable)).get_IsBeta(@as(*const IUpdate, @ptrCast(self)), retval); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IUpdate_get_IsDownloaded(self: *const T, retval: ?*i16) HRESULT { return @as(*const IUpdate.VTable, @ptrCast(self.vtable)).get_IsDownloaded(@as(*const IUpdate, @ptrCast(self)), retval); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IUpdate_get_IsHidden(self: *const T, retval: ?*i16) HRESULT { return @as(*const IUpdate.VTable, @ptrCast(self.vtable)).get_IsHidden(@as(*const IUpdate, @ptrCast(self)), retval); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IUpdate_put_IsHidden(self: *const T, value: i16) HRESULT { return @as(*const IUpdate.VTable, @ptrCast(self.vtable)).put_IsHidden(@as(*const IUpdate, @ptrCast(self)), value); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IUpdate_get_IsInstalled(self: *const T, retval: ?*i16) HRESULT { return @as(*const IUpdate.VTable, @ptrCast(self.vtable)).get_IsInstalled(@as(*const IUpdate, @ptrCast(self)), retval); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IUpdate_get_IsMandatory(self: *const T, retval: ?*i16) HRESULT { return @as(*const IUpdate.VTable, @ptrCast(self.vtable)).get_IsMandatory(@as(*const IUpdate, @ptrCast(self)), retval); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IUpdate_get_IsUninstallable(self: *const T, retval: ?*i16) HRESULT { return @as(*const IUpdate.VTable, @ptrCast(self.vtable)).get_IsUninstallable(@as(*const IUpdate, @ptrCast(self)), retval); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IUpdate_get_Languages(self: *const T, retval: ?*?*IStringCollection) HRESULT { return @as(*const IUpdate.VTable, @ptrCast(self.vtable)).get_Languages(@as(*const IUpdate, @ptrCast(self)), retval); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IUpdate_get_LastDeploymentChangeTime(self: *const T, retval: ?*f64) HRESULT { return @as(*const IUpdate.VTable, @ptrCast(self.vtable)).get_LastDeploymentChangeTime(@as(*const IUpdate, @ptrCast(self)), retval); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IUpdate_get_MaxDownloadSize(self: *const T, retval: ?*DECIMAL) HRESULT { return @as(*const IUpdate.VTable, @ptrCast(self.vtable)).get_MaxDownloadSize(@as(*const IUpdate, @ptrCast(self)), retval); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IUpdate_get_MinDownloadSize(self: *const T, retval: ?*DECIMAL) HRESULT { return @as(*const IUpdate.VTable, @ptrCast(self.vtable)).get_MinDownloadSize(@as(*const IUpdate, @ptrCast(self)), retval); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IUpdate_get_MoreInfoUrls(self: *const T, retval: ?*?*IStringCollection) HRESULT { return @as(*const IUpdate.VTable, @ptrCast(self.vtable)).get_MoreInfoUrls(@as(*const IUpdate, @ptrCast(self)), retval); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IUpdate_get_MsrcSeverity(self: *const T, retval: ?*?BSTR) HRESULT { return @as(*const IUpdate.VTable, @ptrCast(self.vtable)).get_MsrcSeverity(@as(*const IUpdate, @ptrCast(self)), retval); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IUpdate_get_RecommendedCpuSpeed(self: *const T, retval: ?*i32) HRESULT { return @as(*const IUpdate.VTable, @ptrCast(self.vtable)).get_RecommendedCpuSpeed(@as(*const IUpdate, @ptrCast(self)), retval); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IUpdate_get_RecommendedHardDiskSpace(self: *const T, retval: ?*i32) HRESULT { return @as(*const IUpdate.VTable, @ptrCast(self.vtable)).get_RecommendedHardDiskSpace(@as(*const IUpdate, @ptrCast(self)), retval); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IUpdate_get_RecommendedMemory(self: *const T, retval: ?*i32) HRESULT { return @as(*const IUpdate.VTable, @ptrCast(self.vtable)).get_RecommendedMemory(@as(*const IUpdate, @ptrCast(self)), retval); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IUpdate_get_ReleaseNotes(self: *const T, retval: ?*?BSTR) HRESULT { return @as(*const IUpdate.VTable, @ptrCast(self.vtable)).get_ReleaseNotes(@as(*const IUpdate, @ptrCast(self)), retval); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IUpdate_get_SecurityBulletinIDs(self: *const T, retval: ?*?*IStringCollection) HRESULT { return @as(*const IUpdate.VTable, @ptrCast(self.vtable)).get_SecurityBulletinIDs(@as(*const IUpdate, @ptrCast(self)), retval); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IUpdate_get_SupersededUpdateIDs(self: *const T, retval: ?*?*IStringCollection) HRESULT { return @as(*const IUpdate.VTable, @ptrCast(self.vtable)).get_SupersededUpdateIDs(@as(*const IUpdate, @ptrCast(self)), retval); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IUpdate_get_SupportUrl(self: *const T, retval: ?*?BSTR) HRESULT { return @as(*const IUpdate.VTable, @ptrCast(self.vtable)).get_SupportUrl(@as(*const IUpdate, @ptrCast(self)), retval); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IUpdate_get_Type(self: *const T, retval: ?*UpdateType) HRESULT { return @as(*const IUpdate.VTable, @ptrCast(self.vtable)).get_Type(@as(*const IUpdate, @ptrCast(self)), retval); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IUpdate_get_UninstallationNotes(self: *const T, retval: ?*?BSTR) HRESULT { return @as(*const IUpdate.VTable, @ptrCast(self.vtable)).get_UninstallationNotes(@as(*const IUpdate, @ptrCast(self)), retval); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IUpdate_get_UninstallationBehavior(self: *const T, retval: ?*?*IInstallationBehavior) HRESULT { return @as(*const IUpdate.VTable, @ptrCast(self.vtable)).get_UninstallationBehavior(@as(*const IUpdate, @ptrCast(self)), retval); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IUpdate_get_UninstallationSteps(self: *const T, retval: ?*?*IStringCollection) HRESULT { return @as(*const IUpdate.VTable, @ptrCast(self.vtable)).get_UninstallationSteps(@as(*const IUpdate, @ptrCast(self)), retval); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IUpdate_get_KBArticleIDs(self: *const T, retval: ?*?*IStringCollection) HRESULT { return @as(*const IUpdate.VTable, @ptrCast(self.vtable)).get_KBArticleIDs(@as(*const IUpdate, @ptrCast(self)), retval); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IUpdate_AcceptEula(self: *const T) HRESULT { return @as(*const IUpdate.VTable, @ptrCast(self.vtable)).AcceptEula(@as(*const IUpdate, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IUpdate_get_DeploymentAction(self: *const T, retval: ?*DeploymentAction) HRESULT { return @as(*const IUpdate.VTable, @ptrCast(self.vtable)).get_DeploymentAction(@as(*const IUpdate, @ptrCast(self)), retval); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IUpdate_CopyFromCache(self: *const T, path: ?BSTR, toExtractCabFiles: i16) HRESULT { return @as(*const IUpdate.VTable, @ptrCast(self.vtable)).CopyFromCache(@as(*const IUpdate, @ptrCast(self)), path, toExtractCabFiles); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IUpdate_get_DownloadPriority(self: *const T, retval: ?*DownloadPriority) HRESULT { return @as(*const IUpdate.VTable, @ptrCast(self.vtable)).get_DownloadPriority(@as(*const IUpdate, @ptrCast(self)), retval); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IUpdate_get_DownloadContents(self: *const T, retval: ?*?*IUpdateDownloadContentCollection) HRESULT { return @as(*const IUpdate.VTable, @ptrCast(self.vtable)).get_DownloadContents(@as(*const IUpdate, @ptrCast(self)), retval); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows5.1.2600' const IID_IWindowsDriverUpdate_Value = Guid.initString("b383cd1a-5ce9-4504-9f63-764b1236f191"); pub const IID_IWindowsDriverUpdate = &IID_IWindowsDriverUpdate_Value; pub const IWindowsDriverUpdate = extern struct { pub const VTable = extern struct { base: IUpdate.VTable, // TODO: this function has a "SpecialName", should Zig do anything with this? get_DriverClass: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IWindowsDriverUpdate, retval: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IWindowsDriverUpdate, retval: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_DriverHardwareID: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IWindowsDriverUpdate, retval: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IWindowsDriverUpdate, retval: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_DriverManufacturer: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IWindowsDriverUpdate, retval: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IWindowsDriverUpdate, retval: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_DriverModel: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IWindowsDriverUpdate, retval: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IWindowsDriverUpdate, retval: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_DriverProvider: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IWindowsDriverUpdate, retval: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IWindowsDriverUpdate, retval: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_DriverVerDate: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IWindowsDriverUpdate, retval: ?*f64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IWindowsDriverUpdate, retval: ?*f64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_DeviceProblemNumber: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IWindowsDriverUpdate, retval: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IWindowsDriverUpdate, retval: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_DeviceStatus: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IWindowsDriverUpdate, retval: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IWindowsDriverUpdate, retval: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUpdate.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWindowsDriverUpdate_get_DriverClass(self: *const T, retval: ?*?BSTR) HRESULT { return @as(*const IWindowsDriverUpdate.VTable, @ptrCast(self.vtable)).get_DriverClass(@as(*const IWindowsDriverUpdate, @ptrCast(self)), retval); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWindowsDriverUpdate_get_DriverHardwareID(self: *const T, retval: ?*?BSTR) HRESULT { return @as(*const IWindowsDriverUpdate.VTable, @ptrCast(self.vtable)).get_DriverHardwareID(@as(*const IWindowsDriverUpdate, @ptrCast(self)), retval); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWindowsDriverUpdate_get_DriverManufacturer(self: *const T, retval: ?*?BSTR) HRESULT { return @as(*const IWindowsDriverUpdate.VTable, @ptrCast(self.vtable)).get_DriverManufacturer(@as(*const IWindowsDriverUpdate, @ptrCast(self)), retval); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWindowsDriverUpdate_get_DriverModel(self: *const T, retval: ?*?BSTR) HRESULT { return @as(*const IWindowsDriverUpdate.VTable, @ptrCast(self.vtable)).get_DriverModel(@as(*const IWindowsDriverUpdate, @ptrCast(self)), retval); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWindowsDriverUpdate_get_DriverProvider(self: *const T, retval: ?*?BSTR) HRESULT { return @as(*const IWindowsDriverUpdate.VTable, @ptrCast(self.vtable)).get_DriverProvider(@as(*const IWindowsDriverUpdate, @ptrCast(self)), retval); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWindowsDriverUpdate_get_DriverVerDate(self: *const T, retval: ?*f64) HRESULT { return @as(*const IWindowsDriverUpdate.VTable, @ptrCast(self.vtable)).get_DriverVerDate(@as(*const IWindowsDriverUpdate, @ptrCast(self)), retval); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWindowsDriverUpdate_get_DeviceProblemNumber(self: *const T, retval: ?*i32) HRESULT { return @as(*const IWindowsDriverUpdate.VTable, @ptrCast(self.vtable)).get_DeviceProblemNumber(@as(*const IWindowsDriverUpdate, @ptrCast(self)), retval); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWindowsDriverUpdate_get_DeviceStatus(self: *const T, retval: ?*i32) HRESULT { return @as(*const IWindowsDriverUpdate.VTable, @ptrCast(self.vtable)).get_DeviceStatus(@as(*const IWindowsDriverUpdate, @ptrCast(self)), retval); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows5.1.2600' const IID_IUpdate2_Value = Guid.initString("144fe9b0-d23d-4a8b-8634-fb4457533b7a"); pub const IID_IUpdate2 = &IID_IUpdate2_Value; pub const IUpdate2 = extern struct { pub const VTable = extern struct { base: IUpdate.VTable, // TODO: this function has a "SpecialName", should Zig do anything with this? get_RebootRequired: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IUpdate2, retval: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IUpdate2, retval: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_IsPresent: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IUpdate2, retval: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IUpdate2, retval: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_CveIDs: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IUpdate2, retval: ?*?*IStringCollection, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IUpdate2, retval: ?*?*IStringCollection, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, CopyToCache: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IUpdate2, pFiles: ?*IStringCollection, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IUpdate2, pFiles: ?*IStringCollection, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUpdate.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IUpdate2_get_RebootRequired(self: *const T, retval: ?*i16) HRESULT { return @as(*const IUpdate2.VTable, @ptrCast(self.vtable)).get_RebootRequired(@as(*const IUpdate2, @ptrCast(self)), retval); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IUpdate2_get_IsPresent(self: *const T, retval: ?*i16) HRESULT { return @as(*const IUpdate2.VTable, @ptrCast(self.vtable)).get_IsPresent(@as(*const IUpdate2, @ptrCast(self)), retval); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IUpdate2_get_CveIDs(self: *const T, retval: ?*?*IStringCollection) HRESULT { return @as(*const IUpdate2.VTable, @ptrCast(self.vtable)).get_CveIDs(@as(*const IUpdate2, @ptrCast(self)), retval); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IUpdate2_CopyToCache(self: *const T, pFiles: ?*IStringCollection) HRESULT { return @as(*const IUpdate2.VTable, @ptrCast(self.vtable)).CopyToCache(@as(*const IUpdate2, @ptrCast(self)), pFiles); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows5.1.2600' const IID_IUpdate3_Value = Guid.initString("112eda6b-95b3-476f-9d90-aee82c6b8181"); pub const IID_IUpdate3 = &IID_IUpdate3_Value; pub const IUpdate3 = extern struct { pub const VTable = extern struct { base: IUpdate2.VTable, // TODO: this function has a "SpecialName", should Zig do anything with this? get_BrowseOnly: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IUpdate3, retval: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IUpdate3, retval: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUpdate2.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IUpdate3_get_BrowseOnly(self: *const T, retval: ?*i16) HRESULT { return @as(*const IUpdate3.VTable, @ptrCast(self.vtable)).get_BrowseOnly(@as(*const IUpdate3, @ptrCast(self)), retval); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows5.1.2600' const IID_IUpdate4_Value = Guid.initString("27e94b0d-5139-49a2-9a61-93522dc54652"); pub const IID_IUpdate4 = &IID_IUpdate4_Value; pub const IUpdate4 = extern struct { pub const VTable = extern struct { base: IUpdate3.VTable, // TODO: this function has a "SpecialName", should Zig do anything with this? get_PerUser: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IUpdate4, retval: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IUpdate4, retval: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUpdate3.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IUpdate4_get_PerUser(self: *const T, retval: ?*i16) HRESULT { return @as(*const IUpdate4.VTable, @ptrCast(self.vtable)).get_PerUser(@as(*const IUpdate4, @ptrCast(self)), retval); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows5.1.2600' const IID_IUpdate5_Value = Guid.initString("c1c2f21a-d2f4-4902-b5c6-8a081c19a890"); pub const IID_IUpdate5 = &IID_IUpdate5_Value; pub const IUpdate5 = extern struct { pub const VTable = extern struct { base: IUpdate4.VTable, // TODO: this function has a "SpecialName", should Zig do anything with this? get_AutoSelection: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IUpdate5, retval: ?*AutoSelectionMode, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IUpdate5, retval: ?*AutoSelectionMode, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_AutoDownload: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IUpdate5, retval: ?*AutoDownloadMode, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IUpdate5, retval: ?*AutoDownloadMode, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUpdate4.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IUpdate5_get_AutoSelection(self: *const T, retval: ?*AutoSelectionMode) HRESULT { return @as(*const IUpdate5.VTable, @ptrCast(self.vtable)).get_AutoSelection(@as(*const IUpdate5, @ptrCast(self)), retval); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IUpdate5_get_AutoDownload(self: *const T, retval: ?*AutoDownloadMode) HRESULT { return @as(*const IUpdate5.VTable, @ptrCast(self.vtable)).get_AutoDownload(@as(*const IUpdate5, @ptrCast(self)), retval); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows5.1.2600' const IID_IWindowsDriverUpdate2_Value = Guid.initString("615c4269-7a48-43bd-96b7-bf6ca27d6c3e"); pub const IID_IWindowsDriverUpdate2 = &IID_IWindowsDriverUpdate2_Value; pub const IWindowsDriverUpdate2 = extern struct { pub const VTable = extern struct { base: IWindowsDriverUpdate.VTable, // TODO: this function has a "SpecialName", should Zig do anything with this? get_RebootRequired: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IWindowsDriverUpdate2, retval: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IWindowsDriverUpdate2, retval: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_IsPresent: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IWindowsDriverUpdate2, retval: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IWindowsDriverUpdate2, retval: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_CveIDs: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IWindowsDriverUpdate2, retval: ?*?*IStringCollection, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IWindowsDriverUpdate2, retval: ?*?*IStringCollection, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, CopyToCache: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IWindowsDriverUpdate2, pFiles: ?*IStringCollection, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IWindowsDriverUpdate2, pFiles: ?*IStringCollection, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IWindowsDriverUpdate.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWindowsDriverUpdate2_get_RebootRequired(self: *const T, retval: ?*i16) HRESULT { return @as(*const IWindowsDriverUpdate2.VTable, @ptrCast(self.vtable)).get_RebootRequired(@as(*const IWindowsDriverUpdate2, @ptrCast(self)), retval); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWindowsDriverUpdate2_get_IsPresent(self: *const T, retval: ?*i16) HRESULT { return @as(*const IWindowsDriverUpdate2.VTable, @ptrCast(self.vtable)).get_IsPresent(@as(*const IWindowsDriverUpdate2, @ptrCast(self)), retval); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWindowsDriverUpdate2_get_CveIDs(self: *const T, retval: ?*?*IStringCollection) HRESULT { return @as(*const IWindowsDriverUpdate2.VTable, @ptrCast(self.vtable)).get_CveIDs(@as(*const IWindowsDriverUpdate2, @ptrCast(self)), retval); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWindowsDriverUpdate2_CopyToCache(self: *const T, pFiles: ?*IStringCollection) HRESULT { return @as(*const IWindowsDriverUpdate2.VTable, @ptrCast(self.vtable)).CopyToCache(@as(*const IWindowsDriverUpdate2, @ptrCast(self)), pFiles); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows5.1.2600' const IID_IWindowsDriverUpdate3_Value = Guid.initString("49ebd502-4a96-41bd-9e3e-4c5057f4250c"); pub const IID_IWindowsDriverUpdate3 = &IID_IWindowsDriverUpdate3_Value; pub const IWindowsDriverUpdate3 = extern struct { pub const VTable = extern struct { base: IWindowsDriverUpdate2.VTable, // TODO: this function has a "SpecialName", should Zig do anything with this? get_BrowseOnly: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IWindowsDriverUpdate3, retval: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IWindowsDriverUpdate3, retval: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IWindowsDriverUpdate2.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWindowsDriverUpdate3_get_BrowseOnly(self: *const T, retval: ?*i16) HRESULT { return @as(*const IWindowsDriverUpdate3.VTable, @ptrCast(self.vtable)).get_BrowseOnly(@as(*const IWindowsDriverUpdate3, @ptrCast(self)), retval); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows5.1.2600' const IID_IWindowsDriverUpdateEntry_Value = Guid.initString("ed8bfe40-a60b-42ea-9652-817dfcfa23ec"); pub const IID_IWindowsDriverUpdateEntry = &IID_IWindowsDriverUpdateEntry_Value; pub const IWindowsDriverUpdateEntry = extern struct { pub const VTable = extern struct { base: IDispatch.VTable, // TODO: this function has a "SpecialName", should Zig do anything with this? get_DriverClass: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IWindowsDriverUpdateEntry, retval: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IWindowsDriverUpdateEntry, retval: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_DriverHardwareID: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IWindowsDriverUpdateEntry, retval: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IWindowsDriverUpdateEntry, retval: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_DriverManufacturer: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IWindowsDriverUpdateEntry, retval: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IWindowsDriverUpdateEntry, retval: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_DriverModel: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IWindowsDriverUpdateEntry, retval: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IWindowsDriverUpdateEntry, retval: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_DriverProvider: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IWindowsDriverUpdateEntry, retval: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IWindowsDriverUpdateEntry, retval: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_DriverVerDate: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IWindowsDriverUpdateEntry, retval: ?*f64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IWindowsDriverUpdateEntry, retval: ?*f64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_DeviceProblemNumber: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IWindowsDriverUpdateEntry, retval: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IWindowsDriverUpdateEntry, retval: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_DeviceStatus: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IWindowsDriverUpdateEntry, retval: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IWindowsDriverUpdateEntry, retval: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IDispatch.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWindowsDriverUpdateEntry_get_DriverClass(self: *const T, retval: ?*?BSTR) HRESULT { return @as(*const IWindowsDriverUpdateEntry.VTable, @ptrCast(self.vtable)).get_DriverClass(@as(*const IWindowsDriverUpdateEntry, @ptrCast(self)), retval); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWindowsDriverUpdateEntry_get_DriverHardwareID(self: *const T, retval: ?*?BSTR) HRESULT { return @as(*const IWindowsDriverUpdateEntry.VTable, @ptrCast(self.vtable)).get_DriverHardwareID(@as(*const IWindowsDriverUpdateEntry, @ptrCast(self)), retval); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWindowsDriverUpdateEntry_get_DriverManufacturer(self: *const T, retval: ?*?BSTR) HRESULT { return @as(*const IWindowsDriverUpdateEntry.VTable, @ptrCast(self.vtable)).get_DriverManufacturer(@as(*const IWindowsDriverUpdateEntry, @ptrCast(self)), retval); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWindowsDriverUpdateEntry_get_DriverModel(self: *const T, retval: ?*?BSTR) HRESULT { return @as(*const IWindowsDriverUpdateEntry.VTable, @ptrCast(self.vtable)).get_DriverModel(@as(*const IWindowsDriverUpdateEntry, @ptrCast(self)), retval); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWindowsDriverUpdateEntry_get_DriverProvider(self: *const T, retval: ?*?BSTR) HRESULT { return @as(*const IWindowsDriverUpdateEntry.VTable, @ptrCast(self.vtable)).get_DriverProvider(@as(*const IWindowsDriverUpdateEntry, @ptrCast(self)), retval); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWindowsDriverUpdateEntry_get_DriverVerDate(self: *const T, retval: ?*f64) HRESULT { return @as(*const IWindowsDriverUpdateEntry.VTable, @ptrCast(self.vtable)).get_DriverVerDate(@as(*const IWindowsDriverUpdateEntry, @ptrCast(self)), retval); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWindowsDriverUpdateEntry_get_DeviceProblemNumber(self: *const T, retval: ?*i32) HRESULT { return @as(*const IWindowsDriverUpdateEntry.VTable, @ptrCast(self.vtable)).get_DeviceProblemNumber(@as(*const IWindowsDriverUpdateEntry, @ptrCast(self)), retval); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWindowsDriverUpdateEntry_get_DeviceStatus(self: *const T, retval: ?*i32) HRESULT { return @as(*const IWindowsDriverUpdateEntry.VTable, @ptrCast(self.vtable)).get_DeviceStatus(@as(*const IWindowsDriverUpdateEntry, @ptrCast(self)), retval); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows5.1.2600' const IID_IWindowsDriverUpdateEntryCollection_Value = Guid.initString("0d521700-a372-4bef-828b-3d00c10adebd"); pub const IID_IWindowsDriverUpdateEntryCollection = &IID_IWindowsDriverUpdateEntryCollection_Value; pub const IWindowsDriverUpdateEntryCollection = extern struct { pub const VTable = extern struct { base: IDispatch.VTable, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Item: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IWindowsDriverUpdateEntryCollection, index: i32, retval: ?*?*IWindowsDriverUpdateEntry, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IWindowsDriverUpdateEntryCollection, index: i32, retval: ?*?*IWindowsDriverUpdateEntry, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get__NewEnum: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IWindowsDriverUpdateEntryCollection, retval: ?*?*IUnknown, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IWindowsDriverUpdateEntryCollection, retval: ?*?*IUnknown, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Count: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IWindowsDriverUpdateEntryCollection, retval: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IWindowsDriverUpdateEntryCollection, retval: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IDispatch.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWindowsDriverUpdateEntryCollection_get_Item(self: *const T, index: i32, retval: ?*?*IWindowsDriverUpdateEntry) HRESULT { return @as(*const IWindowsDriverUpdateEntryCollection.VTable, @ptrCast(self.vtable)).get_Item(@as(*const IWindowsDriverUpdateEntryCollection, @ptrCast(self)), index, retval); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWindowsDriverUpdateEntryCollection_get__NewEnum(self: *const T, retval: ?*?*IUnknown) HRESULT { return @as(*const IWindowsDriverUpdateEntryCollection.VTable, @ptrCast(self.vtable)).get__NewEnum(@as(*const IWindowsDriverUpdateEntryCollection, @ptrCast(self)), retval); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWindowsDriverUpdateEntryCollection_get_Count(self: *const T, retval: ?*i32) HRESULT { return @as(*const IWindowsDriverUpdateEntryCollection.VTable, @ptrCast(self.vtable)).get_Count(@as(*const IWindowsDriverUpdateEntryCollection, @ptrCast(self)), retval); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows5.1.2600' const IID_IWindowsDriverUpdate4_Value = Guid.initString("004c6a2b-0c19-4c69-9f5c-a269b2560db9"); pub const IID_IWindowsDriverUpdate4 = &IID_IWindowsDriverUpdate4_Value; pub const IWindowsDriverUpdate4 = extern struct { pub const VTable = extern struct { base: IWindowsDriverUpdate3.VTable, // TODO: this function has a "SpecialName", should Zig do anything with this? get_WindowsDriverUpdateEntries: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IWindowsDriverUpdate4, retval: ?*?*IWindowsDriverUpdateEntryCollection, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IWindowsDriverUpdate4, retval: ?*?*IWindowsDriverUpdateEntryCollection, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_PerUser: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IWindowsDriverUpdate4, retval: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IWindowsDriverUpdate4, retval: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IWindowsDriverUpdate3.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWindowsDriverUpdate4_get_WindowsDriverUpdateEntries(self: *const T, retval: ?*?*IWindowsDriverUpdateEntryCollection) HRESULT { return @as(*const IWindowsDriverUpdate4.VTable, @ptrCast(self.vtable)).get_WindowsDriverUpdateEntries(@as(*const IWindowsDriverUpdate4, @ptrCast(self)), retval); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWindowsDriverUpdate4_get_PerUser(self: *const T, retval: ?*i16) HRESULT { return @as(*const IWindowsDriverUpdate4.VTable, @ptrCast(self.vtable)).get_PerUser(@as(*const IWindowsDriverUpdate4, @ptrCast(self)), retval); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows5.1.2600' const IID_IWindowsDriverUpdate5_Value = Guid.initString("70cf5c82-8642-42bb-9dbc-0cfd263c6c4f"); pub const IID_IWindowsDriverUpdate5 = &IID_IWindowsDriverUpdate5_Value; pub const IWindowsDriverUpdate5 = extern struct { pub const VTable = extern struct { base: IWindowsDriverUpdate4.VTable, // TODO: this function has a "SpecialName", should Zig do anything with this? get_AutoSelection: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IWindowsDriverUpdate5, retval: ?*AutoSelectionMode, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IWindowsDriverUpdate5, retval: ?*AutoSelectionMode, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_AutoDownload: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IWindowsDriverUpdate5, retval: ?*AutoDownloadMode, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IWindowsDriverUpdate5, retval: ?*AutoDownloadMode, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IWindowsDriverUpdate4.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWindowsDriverUpdate5_get_AutoSelection(self: *const T, retval: ?*AutoSelectionMode) HRESULT { return @as(*const IWindowsDriverUpdate5.VTable, @ptrCast(self.vtable)).get_AutoSelection(@as(*const IWindowsDriverUpdate5, @ptrCast(self)), retval); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWindowsDriverUpdate5_get_AutoDownload(self: *const T, retval: ?*AutoDownloadMode) HRESULT { return @as(*const IWindowsDriverUpdate5.VTable, @ptrCast(self.vtable)).get_AutoDownload(@as(*const IWindowsDriverUpdate5, @ptrCast(self)), retval); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows5.1.2600' const IID_IUpdateCollection_Value = Guid.initString("07f7438c-7709-4ca5-b518-91279288134e"); pub const IID_IUpdateCollection = &IID_IUpdateCollection_Value; pub const IUpdateCollection = extern struct { pub const VTable = extern struct { base: IDispatch.VTable, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Item: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IUpdateCollection, index: i32, retval: ?*?*IUpdate, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IUpdateCollection, index: i32, retval: ?*?*IUpdate, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_Item: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IUpdateCollection, index: i32, value: ?*IUpdate, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IUpdateCollection, index: i32, value: ?*IUpdate, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get__NewEnum: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IUpdateCollection, retval: ?*?*IUnknown, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IUpdateCollection, retval: ?*?*IUnknown, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Count: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IUpdateCollection, retval: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IUpdateCollection, retval: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_ReadOnly: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IUpdateCollection, retval: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IUpdateCollection, retval: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Add: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IUpdateCollection, value: ?*IUpdate, retval: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IUpdateCollection, value: ?*IUpdate, retval: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Clear: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IUpdateCollection, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IUpdateCollection, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Copy: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IUpdateCollection, retval: ?*?*IUpdateCollection, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IUpdateCollection, retval: ?*?*IUpdateCollection, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Insert: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IUpdateCollection, index: i32, value: ?*IUpdate, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IUpdateCollection, index: i32, value: ?*IUpdate, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, RemoveAt: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IUpdateCollection, index: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IUpdateCollection, index: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IDispatch.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IUpdateCollection_get_Item(self: *const T, index: i32, retval: ?*?*IUpdate) HRESULT { return @as(*const IUpdateCollection.VTable, @ptrCast(self.vtable)).get_Item(@as(*const IUpdateCollection, @ptrCast(self)), index, retval); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IUpdateCollection_put_Item(self: *const T, index: i32, value: ?*IUpdate) HRESULT { return @as(*const IUpdateCollection.VTable, @ptrCast(self.vtable)).put_Item(@as(*const IUpdateCollection, @ptrCast(self)), index, value); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IUpdateCollection_get__NewEnum(self: *const T, retval: ?*?*IUnknown) HRESULT { return @as(*const IUpdateCollection.VTable, @ptrCast(self.vtable)).get__NewEnum(@as(*const IUpdateCollection, @ptrCast(self)), retval); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IUpdateCollection_get_Count(self: *const T, retval: ?*i32) HRESULT { return @as(*const IUpdateCollection.VTable, @ptrCast(self.vtable)).get_Count(@as(*const IUpdateCollection, @ptrCast(self)), retval); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IUpdateCollection_get_ReadOnly(self: *const T, retval: ?*i16) HRESULT { return @as(*const IUpdateCollection.VTable, @ptrCast(self.vtable)).get_ReadOnly(@as(*const IUpdateCollection, @ptrCast(self)), retval); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IUpdateCollection_Add(self: *const T, value: ?*IUpdate, retval: ?*i32) HRESULT { return @as(*const IUpdateCollection.VTable, @ptrCast(self.vtable)).Add(@as(*const IUpdateCollection, @ptrCast(self)), value, retval); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IUpdateCollection_Clear(self: *const T) HRESULT { return @as(*const IUpdateCollection.VTable, @ptrCast(self.vtable)).Clear(@as(*const IUpdateCollection, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IUpdateCollection_Copy(self: *const T, retval: ?*?*IUpdateCollection) HRESULT { return @as(*const IUpdateCollection.VTable, @ptrCast(self.vtable)).Copy(@as(*const IUpdateCollection, @ptrCast(self)), retval); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IUpdateCollection_Insert(self: *const T, index: i32, value: ?*IUpdate) HRESULT { return @as(*const IUpdateCollection.VTable, @ptrCast(self.vtable)).Insert(@as(*const IUpdateCollection, @ptrCast(self)), index, value); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IUpdateCollection_RemoveAt(self: *const T, index: i32) HRESULT { return @as(*const IUpdateCollection.VTable, @ptrCast(self.vtable)).RemoveAt(@as(*const IUpdateCollection, @ptrCast(self)), index); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows5.1.2600' const IID_IUpdateException_Value = Guid.initString("a376dd5e-09d4-427f-af7c-fed5b6e1c1d6"); pub const IID_IUpdateException = &IID_IUpdateException_Value; pub const IUpdateException = extern struct { pub const VTable = extern struct { base: IDispatch.VTable, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Message: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IUpdateException, retval: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IUpdateException, retval: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_HResult: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IUpdateException, retval: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IUpdateException, retval: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Context: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IUpdateException, retval: ?*UpdateExceptionContext, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IUpdateException, retval: ?*UpdateExceptionContext, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IDispatch.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IUpdateException_get_Message(self: *const T, retval: ?*?BSTR) HRESULT { return @as(*const IUpdateException.VTable, @ptrCast(self.vtable)).get_Message(@as(*const IUpdateException, @ptrCast(self)), retval); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IUpdateException_get_HResult(self: *const T, retval: ?*i32) HRESULT { return @as(*const IUpdateException.VTable, @ptrCast(self.vtable)).get_HResult(@as(*const IUpdateException, @ptrCast(self)), retval); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IUpdateException_get_Context(self: *const T, retval: ?*UpdateExceptionContext) HRESULT { return @as(*const IUpdateException.VTable, @ptrCast(self.vtable)).get_Context(@as(*const IUpdateException, @ptrCast(self)), retval); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows5.1.2600' const IID_IInvalidProductLicenseException_Value = Guid.initString("a37d00f5-7bb0-4953-b414-f9e98326f2e8"); pub const IID_IInvalidProductLicenseException = &IID_IInvalidProductLicenseException_Value; pub const IInvalidProductLicenseException = extern struct { pub const VTable = extern struct { base: IUpdateException.VTable, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Product: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IInvalidProductLicenseException, retval: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IInvalidProductLicenseException, retval: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUpdateException.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IInvalidProductLicenseException_get_Product(self: *const T, retval: ?*?BSTR) HRESULT { return @as(*const IInvalidProductLicenseException.VTable, @ptrCast(self.vtable)).get_Product(@as(*const IInvalidProductLicenseException, @ptrCast(self)), retval); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows5.1.2600' const IID_IUpdateExceptionCollection_Value = Guid.initString("503626a3-8e14-4729-9355-0fe664bd2321"); pub const IID_IUpdateExceptionCollection = &IID_IUpdateExceptionCollection_Value; pub const IUpdateExceptionCollection = extern struct { pub const VTable = extern struct { base: IDispatch.VTable, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Item: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IUpdateExceptionCollection, index: i32, retval: ?*?*IUpdateException, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IUpdateExceptionCollection, index: i32, retval: ?*?*IUpdateException, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get__NewEnum: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IUpdateExceptionCollection, retval: ?*?*IUnknown, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IUpdateExceptionCollection, retval: ?*?*IUnknown, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Count: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IUpdateExceptionCollection, retval: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IUpdateExceptionCollection, retval: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IDispatch.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IUpdateExceptionCollection_get_Item(self: *const T, index: i32, retval: ?*?*IUpdateException) HRESULT { return @as(*const IUpdateExceptionCollection.VTable, @ptrCast(self.vtable)).get_Item(@as(*const IUpdateExceptionCollection, @ptrCast(self)), index, retval); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IUpdateExceptionCollection_get__NewEnum(self: *const T, retval: ?*?*IUnknown) HRESULT { return @as(*const IUpdateExceptionCollection.VTable, @ptrCast(self.vtable)).get__NewEnum(@as(*const IUpdateExceptionCollection, @ptrCast(self)), retval); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IUpdateExceptionCollection_get_Count(self: *const T, retval: ?*i32) HRESULT { return @as(*const IUpdateExceptionCollection.VTable, @ptrCast(self.vtable)).get_Count(@as(*const IUpdateExceptionCollection, @ptrCast(self)), retval); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows5.1.2600' const IID_ISearchResult_Value = Guid.initString("d40cff62-e08c-4498-941a-01e25f0fd33c"); pub const IID_ISearchResult = &IID_ISearchResult_Value; pub const ISearchResult = extern struct { pub const VTable = extern struct { base: IDispatch.VTable, // TODO: this function has a "SpecialName", should Zig do anything with this? get_ResultCode: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ISearchResult, retval: ?*OperationResultCode, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ISearchResult, retval: ?*OperationResultCode, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_RootCategories: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ISearchResult, retval: ?*?*ICategoryCollection, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ISearchResult, retval: ?*?*ICategoryCollection, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Updates: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ISearchResult, retval: ?*?*IUpdateCollection, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ISearchResult, retval: ?*?*IUpdateCollection, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Warnings: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ISearchResult, retval: ?*?*IUpdateExceptionCollection, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ISearchResult, retval: ?*?*IUpdateExceptionCollection, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IDispatch.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISearchResult_get_ResultCode(self: *const T, retval: ?*OperationResultCode) HRESULT { return @as(*const ISearchResult.VTable, @ptrCast(self.vtable)).get_ResultCode(@as(*const ISearchResult, @ptrCast(self)), retval); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISearchResult_get_RootCategories(self: *const T, retval: ?*?*ICategoryCollection) HRESULT { return @as(*const ISearchResult.VTable, @ptrCast(self.vtable)).get_RootCategories(@as(*const ISearchResult, @ptrCast(self)), retval); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISearchResult_get_Updates(self: *const T, retval: ?*?*IUpdateCollection) HRESULT { return @as(*const ISearchResult.VTable, @ptrCast(self.vtable)).get_Updates(@as(*const ISearchResult, @ptrCast(self)), retval); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISearchResult_get_Warnings(self: *const T, retval: ?*?*IUpdateExceptionCollection) HRESULT { return @as(*const ISearchResult.VTable, @ptrCast(self.vtable)).get_Warnings(@as(*const ISearchResult, @ptrCast(self)), retval); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows5.1.2600' const IID_ISearchJob_Value = Guid.initString("7366ea16-7a1a-4ea2-b042-973d3e9cd99b"); pub const IID_ISearchJob = &IID_ISearchJob_Value; pub const ISearchJob = extern struct { pub const VTable = extern struct { base: IDispatch.VTable, // TODO: this function has a "SpecialName", should Zig do anything with this? get_AsyncState: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ISearchJob, retval: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ISearchJob, retval: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_IsCompleted: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ISearchJob, retval: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ISearchJob, retval: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, CleanUp: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ISearchJob, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ISearchJob, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, RequestAbort: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ISearchJob, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ISearchJob, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IDispatch.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISearchJob_get_AsyncState(self: *const T, retval: ?*VARIANT) HRESULT { return @as(*const ISearchJob.VTable, @ptrCast(self.vtable)).get_AsyncState(@as(*const ISearchJob, @ptrCast(self)), retval); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISearchJob_get_IsCompleted(self: *const T, retval: ?*i16) HRESULT { return @as(*const ISearchJob.VTable, @ptrCast(self.vtable)).get_IsCompleted(@as(*const ISearchJob, @ptrCast(self)), retval); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISearchJob_CleanUp(self: *const T) HRESULT { return @as(*const ISearchJob.VTable, @ptrCast(self.vtable)).CleanUp(@as(*const ISearchJob, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISearchJob_RequestAbort(self: *const T) HRESULT { return @as(*const ISearchJob.VTable, @ptrCast(self.vtable)).RequestAbort(@as(*const ISearchJob, @ptrCast(self))); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows5.1.2600' const IID_ISearchCompletedCallbackArgs_Value = Guid.initString("a700a634-2850-4c47-938a-9e4b6e5af9a6"); pub const IID_ISearchCompletedCallbackArgs = &IID_ISearchCompletedCallbackArgs_Value; pub const ISearchCompletedCallbackArgs = extern struct { pub const VTable = extern struct { base: IDispatch.VTable, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IDispatch.MethodMixin(T); }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows5.1.2600' const IID_ISearchCompletedCallback_Value = Guid.initString("88aee058-d4b0-4725-a2f1-814a67ae964c"); pub const IID_ISearchCompletedCallback = &IID_ISearchCompletedCallback_Value; pub const ISearchCompletedCallback = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, Invoke: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ISearchCompletedCallback, searchJob: ?*ISearchJob, callbackArgs: ?*ISearchCompletedCallbackArgs, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ISearchCompletedCallback, searchJob: ?*ISearchJob, callbackArgs: ?*ISearchCompletedCallbackArgs, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISearchCompletedCallback_Invoke(self: *const T, searchJob: ?*ISearchJob, callbackArgs: ?*ISearchCompletedCallbackArgs) HRESULT { return @as(*const ISearchCompletedCallback.VTable, @ptrCast(self.vtable)).Invoke(@as(*const ISearchCompletedCallback, @ptrCast(self)), searchJob, callbackArgs); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows5.1.2600' const IID_IUpdateHistoryEntry_Value = Guid.initString("be56a644-af0e-4e0e-a311-c1d8e695cbff"); pub const IID_IUpdateHistoryEntry = &IID_IUpdateHistoryEntry_Value; pub const IUpdateHistoryEntry = extern struct { pub const VTable = extern struct { base: IDispatch.VTable, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Operation: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IUpdateHistoryEntry, retval: ?*UpdateOperation, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IUpdateHistoryEntry, retval: ?*UpdateOperation, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_ResultCode: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IUpdateHistoryEntry, retval: ?*OperationResultCode, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IUpdateHistoryEntry, retval: ?*OperationResultCode, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_HResult: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IUpdateHistoryEntry, retval: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IUpdateHistoryEntry, retval: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Date: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IUpdateHistoryEntry, retval: ?*f64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IUpdateHistoryEntry, retval: ?*f64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_UpdateIdentity: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IUpdateHistoryEntry, retval: ?*?*IUpdateIdentity, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IUpdateHistoryEntry, retval: ?*?*IUpdateIdentity, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Title: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IUpdateHistoryEntry, retval: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IUpdateHistoryEntry, retval: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Description: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IUpdateHistoryEntry, retval: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IUpdateHistoryEntry, retval: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_UnmappedResultCode: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IUpdateHistoryEntry, retval: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IUpdateHistoryEntry, retval: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_ClientApplicationID: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IUpdateHistoryEntry, retval: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IUpdateHistoryEntry, retval: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_ServerSelection: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IUpdateHistoryEntry, retval: ?*ServerSelection, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IUpdateHistoryEntry, retval: ?*ServerSelection, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_ServiceID: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IUpdateHistoryEntry, retval: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IUpdateHistoryEntry, retval: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_UninstallationSteps: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IUpdateHistoryEntry, retval: ?*?*IStringCollection, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IUpdateHistoryEntry, retval: ?*?*IStringCollection, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_UninstallationNotes: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IUpdateHistoryEntry, retval: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IUpdateHistoryEntry, retval: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_SupportUrl: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IUpdateHistoryEntry, retval: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IUpdateHistoryEntry, retval: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IDispatch.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IUpdateHistoryEntry_get_Operation(self: *const T, retval: ?*UpdateOperation) HRESULT { return @as(*const IUpdateHistoryEntry.VTable, @ptrCast(self.vtable)).get_Operation(@as(*const IUpdateHistoryEntry, @ptrCast(self)), retval); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IUpdateHistoryEntry_get_ResultCode(self: *const T, retval: ?*OperationResultCode) HRESULT { return @as(*const IUpdateHistoryEntry.VTable, @ptrCast(self.vtable)).get_ResultCode(@as(*const IUpdateHistoryEntry, @ptrCast(self)), retval); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IUpdateHistoryEntry_get_HResult(self: *const T, retval: ?*i32) HRESULT { return @as(*const IUpdateHistoryEntry.VTable, @ptrCast(self.vtable)).get_HResult(@as(*const IUpdateHistoryEntry, @ptrCast(self)), retval); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IUpdateHistoryEntry_get_Date(self: *const T, retval: ?*f64) HRESULT { return @as(*const IUpdateHistoryEntry.VTable, @ptrCast(self.vtable)).get_Date(@as(*const IUpdateHistoryEntry, @ptrCast(self)), retval); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IUpdateHistoryEntry_get_UpdateIdentity(self: *const T, retval: ?*?*IUpdateIdentity) HRESULT { return @as(*const IUpdateHistoryEntry.VTable, @ptrCast(self.vtable)).get_UpdateIdentity(@as(*const IUpdateHistoryEntry, @ptrCast(self)), retval); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IUpdateHistoryEntry_get_Title(self: *const T, retval: ?*?BSTR) HRESULT { return @as(*const IUpdateHistoryEntry.VTable, @ptrCast(self.vtable)).get_Title(@as(*const IUpdateHistoryEntry, @ptrCast(self)), retval); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IUpdateHistoryEntry_get_Description(self: *const T, retval: ?*?BSTR) HRESULT { return @as(*const IUpdateHistoryEntry.VTable, @ptrCast(self.vtable)).get_Description(@as(*const IUpdateHistoryEntry, @ptrCast(self)), retval); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IUpdateHistoryEntry_get_UnmappedResultCode(self: *const T, retval: ?*i32) HRESULT { return @as(*const IUpdateHistoryEntry.VTable, @ptrCast(self.vtable)).get_UnmappedResultCode(@as(*const IUpdateHistoryEntry, @ptrCast(self)), retval); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IUpdateHistoryEntry_get_ClientApplicationID(self: *const T, retval: ?*?BSTR) HRESULT { return @as(*const IUpdateHistoryEntry.VTable, @ptrCast(self.vtable)).get_ClientApplicationID(@as(*const IUpdateHistoryEntry, @ptrCast(self)), retval); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IUpdateHistoryEntry_get_ServerSelection(self: *const T, retval: ?*ServerSelection) HRESULT { return @as(*const IUpdateHistoryEntry.VTable, @ptrCast(self.vtable)).get_ServerSelection(@as(*const IUpdateHistoryEntry, @ptrCast(self)), retval); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IUpdateHistoryEntry_get_ServiceID(self: *const T, retval: ?*?BSTR) HRESULT { return @as(*const IUpdateHistoryEntry.VTable, @ptrCast(self.vtable)).get_ServiceID(@as(*const IUpdateHistoryEntry, @ptrCast(self)), retval); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IUpdateHistoryEntry_get_UninstallationSteps(self: *const T, retval: ?*?*IStringCollection) HRESULT { return @as(*const IUpdateHistoryEntry.VTable, @ptrCast(self.vtable)).get_UninstallationSteps(@as(*const IUpdateHistoryEntry, @ptrCast(self)), retval); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IUpdateHistoryEntry_get_UninstallationNotes(self: *const T, retval: ?*?BSTR) HRESULT { return @as(*const IUpdateHistoryEntry.VTable, @ptrCast(self.vtable)).get_UninstallationNotes(@as(*const IUpdateHistoryEntry, @ptrCast(self)), retval); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IUpdateHistoryEntry_get_SupportUrl(self: *const T, retval: ?*?BSTR) HRESULT { return @as(*const IUpdateHistoryEntry.VTable, @ptrCast(self.vtable)).get_SupportUrl(@as(*const IUpdateHistoryEntry, @ptrCast(self)), retval); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows5.1.2600' const IID_IUpdateHistoryEntry2_Value = Guid.initString("c2bfb780-4539-4132-ab8c-0a8772013ab6"); pub const IID_IUpdateHistoryEntry2 = &IID_IUpdateHistoryEntry2_Value; pub const IUpdateHistoryEntry2 = extern struct { pub const VTable = extern struct { base: IUpdateHistoryEntry.VTable, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Categories: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IUpdateHistoryEntry2, retval: ?*?*ICategoryCollection, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IUpdateHistoryEntry2, retval: ?*?*ICategoryCollection, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUpdateHistoryEntry.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IUpdateHistoryEntry2_get_Categories(self: *const T, retval: ?*?*ICategoryCollection) HRESULT { return @as(*const IUpdateHistoryEntry2.VTable, @ptrCast(self.vtable)).get_Categories(@as(*const IUpdateHistoryEntry2, @ptrCast(self)), retval); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows5.1.2600' const IID_IUpdateHistoryEntryCollection_Value = Guid.initString("a7f04f3c-a290-435b-aadf-a116c3357a5c"); pub const IID_IUpdateHistoryEntryCollection = &IID_IUpdateHistoryEntryCollection_Value; pub const IUpdateHistoryEntryCollection = extern struct { pub const VTable = extern struct { base: IDispatch.VTable, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Item: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IUpdateHistoryEntryCollection, index: i32, retval: ?*?*IUpdateHistoryEntry, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IUpdateHistoryEntryCollection, index: i32, retval: ?*?*IUpdateHistoryEntry, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get__NewEnum: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IUpdateHistoryEntryCollection, retval: ?*?*IUnknown, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IUpdateHistoryEntryCollection, retval: ?*?*IUnknown, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Count: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IUpdateHistoryEntryCollection, retval: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IUpdateHistoryEntryCollection, retval: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IDispatch.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IUpdateHistoryEntryCollection_get_Item(self: *const T, index: i32, retval: ?*?*IUpdateHistoryEntry) HRESULT { return @as(*const IUpdateHistoryEntryCollection.VTable, @ptrCast(self.vtable)).get_Item(@as(*const IUpdateHistoryEntryCollection, @ptrCast(self)), index, retval); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IUpdateHistoryEntryCollection_get__NewEnum(self: *const T, retval: ?*?*IUnknown) HRESULT { return @as(*const IUpdateHistoryEntryCollection.VTable, @ptrCast(self.vtable)).get__NewEnum(@as(*const IUpdateHistoryEntryCollection, @ptrCast(self)), retval); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IUpdateHistoryEntryCollection_get_Count(self: *const T, retval: ?*i32) HRESULT { return @as(*const IUpdateHistoryEntryCollection.VTable, @ptrCast(self.vtable)).get_Count(@as(*const IUpdateHistoryEntryCollection, @ptrCast(self)), retval); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows5.1.2600' const IID_IUpdateSearcher_Value = Guid.initString("8f45abf1-f9ae-4b95-a933-f0f66e5056ea"); pub const IID_IUpdateSearcher = &IID_IUpdateSearcher_Value; pub const IUpdateSearcher = extern struct { pub const VTable = extern struct { base: IDispatch.VTable, // TODO: this function has a "SpecialName", should Zig do anything with this? get_CanAutomaticallyUpgradeService: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IUpdateSearcher, retval: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IUpdateSearcher, retval: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_CanAutomaticallyUpgradeService: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IUpdateSearcher, value: i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IUpdateSearcher, value: i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_ClientApplicationID: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IUpdateSearcher, retval: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IUpdateSearcher, retval: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_ClientApplicationID: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IUpdateSearcher, value: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IUpdateSearcher, value: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_IncludePotentiallySupersededUpdates: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IUpdateSearcher, retval: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IUpdateSearcher, retval: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_IncludePotentiallySupersededUpdates: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IUpdateSearcher, value: i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IUpdateSearcher, value: i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_ServerSelection: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IUpdateSearcher, retval: ?*ServerSelection, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IUpdateSearcher, retval: ?*ServerSelection, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_ServerSelection: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IUpdateSearcher, value: ServerSelection, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IUpdateSearcher, value: ServerSelection, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, BeginSearch: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IUpdateSearcher, criteria: ?BSTR, onCompleted: ?*IUnknown, state: VARIANT, retval: ?*?*ISearchJob, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IUpdateSearcher, criteria: ?BSTR, onCompleted: ?*IUnknown, state: VARIANT, retval: ?*?*ISearchJob, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, EndSearch: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IUpdateSearcher, searchJob: ?*ISearchJob, retval: ?*?*ISearchResult, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IUpdateSearcher, searchJob: ?*ISearchJob, retval: ?*?*ISearchResult, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, EscapeString: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IUpdateSearcher, unescaped: ?BSTR, retval: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IUpdateSearcher, unescaped: ?BSTR, retval: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, QueryHistory: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IUpdateSearcher, startIndex: i32, count: i32, retval: ?*?*IUpdateHistoryEntryCollection, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IUpdateSearcher, startIndex: i32, count: i32, retval: ?*?*IUpdateHistoryEntryCollection, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Search: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IUpdateSearcher, criteria: ?BSTR, retval: ?*?*ISearchResult, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IUpdateSearcher, criteria: ?BSTR, retval: ?*?*ISearchResult, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Online: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IUpdateSearcher, retval: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IUpdateSearcher, retval: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_Online: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IUpdateSearcher, value: i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IUpdateSearcher, value: i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetTotalHistoryCount: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IUpdateSearcher, retval: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IUpdateSearcher, retval: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_ServiceID: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IUpdateSearcher, retval: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IUpdateSearcher, retval: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_ServiceID: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IUpdateSearcher, value: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IUpdateSearcher, value: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IDispatch.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IUpdateSearcher_get_CanAutomaticallyUpgradeService(self: *const T, retval: ?*i16) HRESULT { return @as(*const IUpdateSearcher.VTable, @ptrCast(self.vtable)).get_CanAutomaticallyUpgradeService(@as(*const IUpdateSearcher, @ptrCast(self)), retval); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IUpdateSearcher_put_CanAutomaticallyUpgradeService(self: *const T, value: i16) HRESULT { return @as(*const IUpdateSearcher.VTable, @ptrCast(self.vtable)).put_CanAutomaticallyUpgradeService(@as(*const IUpdateSearcher, @ptrCast(self)), value); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IUpdateSearcher_get_ClientApplicationID(self: *const T, retval: ?*?BSTR) HRESULT { return @as(*const IUpdateSearcher.VTable, @ptrCast(self.vtable)).get_ClientApplicationID(@as(*const IUpdateSearcher, @ptrCast(self)), retval); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IUpdateSearcher_put_ClientApplicationID(self: *const T, value: ?BSTR) HRESULT { return @as(*const IUpdateSearcher.VTable, @ptrCast(self.vtable)).put_ClientApplicationID(@as(*const IUpdateSearcher, @ptrCast(self)), value); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IUpdateSearcher_get_IncludePotentiallySupersededUpdates(self: *const T, retval: ?*i16) HRESULT { return @as(*const IUpdateSearcher.VTable, @ptrCast(self.vtable)).get_IncludePotentiallySupersededUpdates(@as(*const IUpdateSearcher, @ptrCast(self)), retval); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IUpdateSearcher_put_IncludePotentiallySupersededUpdates(self: *const T, value: i16) HRESULT { return @as(*const IUpdateSearcher.VTable, @ptrCast(self.vtable)).put_IncludePotentiallySupersededUpdates(@as(*const IUpdateSearcher, @ptrCast(self)), value); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IUpdateSearcher_get_ServerSelection(self: *const T, retval: ?*ServerSelection) HRESULT { return @as(*const IUpdateSearcher.VTable, @ptrCast(self.vtable)).get_ServerSelection(@as(*const IUpdateSearcher, @ptrCast(self)), retval); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IUpdateSearcher_put_ServerSelection(self: *const T, value: ServerSelection) HRESULT { return @as(*const IUpdateSearcher.VTable, @ptrCast(self.vtable)).put_ServerSelection(@as(*const IUpdateSearcher, @ptrCast(self)), value); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IUpdateSearcher_BeginSearch(self: *const T, criteria: ?BSTR, onCompleted: ?*IUnknown, state: VARIANT, retval: ?*?*ISearchJob) HRESULT { return @as(*const IUpdateSearcher.VTable, @ptrCast(self.vtable)).BeginSearch(@as(*const IUpdateSearcher, @ptrCast(self)), criteria, onCompleted, state, retval); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IUpdateSearcher_EndSearch(self: *const T, searchJob: ?*ISearchJob, retval: ?*?*ISearchResult) HRESULT { return @as(*const IUpdateSearcher.VTable, @ptrCast(self.vtable)).EndSearch(@as(*const IUpdateSearcher, @ptrCast(self)), searchJob, retval); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IUpdateSearcher_EscapeString(self: *const T, unescaped: ?BSTR, retval: ?*?BSTR) HRESULT { return @as(*const IUpdateSearcher.VTable, @ptrCast(self.vtable)).EscapeString(@as(*const IUpdateSearcher, @ptrCast(self)), unescaped, retval); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IUpdateSearcher_QueryHistory(self: *const T, startIndex: i32, count: i32, retval: ?*?*IUpdateHistoryEntryCollection) HRESULT { return @as(*const IUpdateSearcher.VTable, @ptrCast(self.vtable)).QueryHistory(@as(*const IUpdateSearcher, @ptrCast(self)), startIndex, count, retval); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IUpdateSearcher_Search(self: *const T, criteria: ?BSTR, retval: ?*?*ISearchResult) HRESULT { return @as(*const IUpdateSearcher.VTable, @ptrCast(self.vtable)).Search(@as(*const IUpdateSearcher, @ptrCast(self)), criteria, retval); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IUpdateSearcher_get_Online(self: *const T, retval: ?*i16) HRESULT { return @as(*const IUpdateSearcher.VTable, @ptrCast(self.vtable)).get_Online(@as(*const IUpdateSearcher, @ptrCast(self)), retval); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IUpdateSearcher_put_Online(self: *const T, value: i16) HRESULT { return @as(*const IUpdateSearcher.VTable, @ptrCast(self.vtable)).put_Online(@as(*const IUpdateSearcher, @ptrCast(self)), value); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IUpdateSearcher_GetTotalHistoryCount(self: *const T, retval: ?*i32) HRESULT { return @as(*const IUpdateSearcher.VTable, @ptrCast(self.vtable)).GetTotalHistoryCount(@as(*const IUpdateSearcher, @ptrCast(self)), retval); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IUpdateSearcher_get_ServiceID(self: *const T, retval: ?*?BSTR) HRESULT { return @as(*const IUpdateSearcher.VTable, @ptrCast(self.vtable)).get_ServiceID(@as(*const IUpdateSearcher, @ptrCast(self)), retval); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IUpdateSearcher_put_ServiceID(self: *const T, value: ?BSTR) HRESULT { return @as(*const IUpdateSearcher.VTable, @ptrCast(self.vtable)).put_ServiceID(@as(*const IUpdateSearcher, @ptrCast(self)), value); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows5.1.2600' const IID_IUpdateSearcher2_Value = Guid.initString("4cbdcb2d-1589-4beb-bd1c-3e582ff0add0"); pub const IID_IUpdateSearcher2 = &IID_IUpdateSearcher2_Value; pub const IUpdateSearcher2 = extern struct { pub const VTable = extern struct { base: IUpdateSearcher.VTable, // TODO: this function has a "SpecialName", should Zig do anything with this? get_IgnoreDownloadPriority: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IUpdateSearcher2, retval: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IUpdateSearcher2, retval: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_IgnoreDownloadPriority: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IUpdateSearcher2, value: i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IUpdateSearcher2, value: i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUpdateSearcher.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IUpdateSearcher2_get_IgnoreDownloadPriority(self: *const T, retval: ?*i16) HRESULT { return @as(*const IUpdateSearcher2.VTable, @ptrCast(self.vtable)).get_IgnoreDownloadPriority(@as(*const IUpdateSearcher2, @ptrCast(self)), retval); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IUpdateSearcher2_put_IgnoreDownloadPriority(self: *const T, value: i16) HRESULT { return @as(*const IUpdateSearcher2.VTable, @ptrCast(self.vtable)).put_IgnoreDownloadPriority(@as(*const IUpdateSearcher2, @ptrCast(self)), value); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows5.1.2600' const IID_IUpdateSearcher3_Value = Guid.initString("04c6895d-eaf2-4034-97f3-311de9be413a"); pub const IID_IUpdateSearcher3 = &IID_IUpdateSearcher3_Value; pub const IUpdateSearcher3 = extern struct { pub const VTable = extern struct { base: IUpdateSearcher2.VTable, // TODO: this function has a "SpecialName", should Zig do anything with this? get_SearchScope: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IUpdateSearcher3, retval: ?*SearchScope, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IUpdateSearcher3, retval: ?*SearchScope, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_SearchScope: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IUpdateSearcher3, value: SearchScope, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IUpdateSearcher3, value: SearchScope, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUpdateSearcher2.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IUpdateSearcher3_get_SearchScope(self: *const T, retval: ?*SearchScope) HRESULT { return @as(*const IUpdateSearcher3.VTable, @ptrCast(self.vtable)).get_SearchScope(@as(*const IUpdateSearcher3, @ptrCast(self)), retval); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IUpdateSearcher3_put_SearchScope(self: *const T, value: SearchScope) HRESULT { return @as(*const IUpdateSearcher3.VTable, @ptrCast(self.vtable)).put_SearchScope(@as(*const IUpdateSearcher3, @ptrCast(self)), value); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows5.1.2600' const IID_IUpdateDownloadResult_Value = Guid.initString("bf99af76-b575-42ad-8aa4-33cbb5477af1"); pub const IID_IUpdateDownloadResult = &IID_IUpdateDownloadResult_Value; pub const IUpdateDownloadResult = extern struct { pub const VTable = extern struct { base: IDispatch.VTable, // TODO: this function has a "SpecialName", should Zig do anything with this? get_HResult: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IUpdateDownloadResult, retval: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IUpdateDownloadResult, retval: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_ResultCode: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IUpdateDownloadResult, retval: ?*OperationResultCode, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IUpdateDownloadResult, retval: ?*OperationResultCode, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IDispatch.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IUpdateDownloadResult_get_HResult(self: *const T, retval: ?*i32) HRESULT { return @as(*const IUpdateDownloadResult.VTable, @ptrCast(self.vtable)).get_HResult(@as(*const IUpdateDownloadResult, @ptrCast(self)), retval); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IUpdateDownloadResult_get_ResultCode(self: *const T, retval: ?*OperationResultCode) HRESULT { return @as(*const IUpdateDownloadResult.VTable, @ptrCast(self.vtable)).get_ResultCode(@as(*const IUpdateDownloadResult, @ptrCast(self)), retval); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows5.1.2600' const IID_IDownloadResult_Value = Guid.initString("daa4fdd0-4727-4dbe-a1e7-745dca317144"); pub const IID_IDownloadResult = &IID_IDownloadResult_Value; pub const IDownloadResult = extern struct { pub const VTable = extern struct { base: IDispatch.VTable, // TODO: this function has a "SpecialName", should Zig do anything with this? get_HResult: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IDownloadResult, retval: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IDownloadResult, retval: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_ResultCode: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IDownloadResult, retval: ?*OperationResultCode, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IDownloadResult, retval: ?*OperationResultCode, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetUpdateResult: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDownloadResult, updateIndex: i32, retval: ?*?*IUpdateDownloadResult, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDownloadResult, updateIndex: i32, retval: ?*?*IUpdateDownloadResult, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IDispatch.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDownloadResult_get_HResult(self: *const T, retval: ?*i32) HRESULT { return @as(*const IDownloadResult.VTable, @ptrCast(self.vtable)).get_HResult(@as(*const IDownloadResult, @ptrCast(self)), retval); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDownloadResult_get_ResultCode(self: *const T, retval: ?*OperationResultCode) HRESULT { return @as(*const IDownloadResult.VTable, @ptrCast(self.vtable)).get_ResultCode(@as(*const IDownloadResult, @ptrCast(self)), retval); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDownloadResult_GetUpdateResult(self: *const T, updateIndex: i32, retval: ?*?*IUpdateDownloadResult) HRESULT { return @as(*const IDownloadResult.VTable, @ptrCast(self.vtable)).GetUpdateResult(@as(*const IDownloadResult, @ptrCast(self)), updateIndex, retval); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows5.1.2600' const IID_IDownloadProgress_Value = Guid.initString("d31a5bac-f719-4178-9dbb-5e2cb47fd18a"); pub const IID_IDownloadProgress = &IID_IDownloadProgress_Value; pub const IDownloadProgress = extern struct { pub const VTable = extern struct { base: IDispatch.VTable, // TODO: this function has a "SpecialName", should Zig do anything with this? get_CurrentUpdateBytesDownloaded: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IDownloadProgress, retval: ?*DECIMAL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IDownloadProgress, retval: ?*DECIMAL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_CurrentUpdateBytesToDownload: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IDownloadProgress, retval: ?*DECIMAL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IDownloadProgress, retval: ?*DECIMAL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_CurrentUpdateIndex: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IDownloadProgress, retval: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IDownloadProgress, retval: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_PercentComplete: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IDownloadProgress, retval: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IDownloadProgress, retval: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_TotalBytesDownloaded: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IDownloadProgress, retval: ?*DECIMAL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IDownloadProgress, retval: ?*DECIMAL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_TotalBytesToDownload: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IDownloadProgress, retval: ?*DECIMAL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IDownloadProgress, retval: ?*DECIMAL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetUpdateResult: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDownloadProgress, updateIndex: i32, retval: ?*?*IUpdateDownloadResult, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDownloadProgress, updateIndex: i32, retval: ?*?*IUpdateDownloadResult, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_CurrentUpdateDownloadPhase: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IDownloadProgress, retval: ?*DownloadPhase, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IDownloadProgress, retval: ?*DownloadPhase, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_CurrentUpdatePercentComplete: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IDownloadProgress, retval: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IDownloadProgress, retval: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IDispatch.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDownloadProgress_get_CurrentUpdateBytesDownloaded(self: *const T, retval: ?*DECIMAL) HRESULT { return @as(*const IDownloadProgress.VTable, @ptrCast(self.vtable)).get_CurrentUpdateBytesDownloaded(@as(*const IDownloadProgress, @ptrCast(self)), retval); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDownloadProgress_get_CurrentUpdateBytesToDownload(self: *const T, retval: ?*DECIMAL) HRESULT { return @as(*const IDownloadProgress.VTable, @ptrCast(self.vtable)).get_CurrentUpdateBytesToDownload(@as(*const IDownloadProgress, @ptrCast(self)), retval); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDownloadProgress_get_CurrentUpdateIndex(self: *const T, retval: ?*i32) HRESULT { return @as(*const IDownloadProgress.VTable, @ptrCast(self.vtable)).get_CurrentUpdateIndex(@as(*const IDownloadProgress, @ptrCast(self)), retval); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDownloadProgress_get_PercentComplete(self: *const T, retval: ?*i32) HRESULT { return @as(*const IDownloadProgress.VTable, @ptrCast(self.vtable)).get_PercentComplete(@as(*const IDownloadProgress, @ptrCast(self)), retval); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDownloadProgress_get_TotalBytesDownloaded(self: *const T, retval: ?*DECIMAL) HRESULT { return @as(*const IDownloadProgress.VTable, @ptrCast(self.vtable)).get_TotalBytesDownloaded(@as(*const IDownloadProgress, @ptrCast(self)), retval); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDownloadProgress_get_TotalBytesToDownload(self: *const T, retval: ?*DECIMAL) HRESULT { return @as(*const IDownloadProgress.VTable, @ptrCast(self.vtable)).get_TotalBytesToDownload(@as(*const IDownloadProgress, @ptrCast(self)), retval); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDownloadProgress_GetUpdateResult(self: *const T, updateIndex: i32, retval: ?*?*IUpdateDownloadResult) HRESULT { return @as(*const IDownloadProgress.VTable, @ptrCast(self.vtable)).GetUpdateResult(@as(*const IDownloadProgress, @ptrCast(self)), updateIndex, retval); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDownloadProgress_get_CurrentUpdateDownloadPhase(self: *const T, retval: ?*DownloadPhase) HRESULT { return @as(*const IDownloadProgress.VTable, @ptrCast(self.vtable)).get_CurrentUpdateDownloadPhase(@as(*const IDownloadProgress, @ptrCast(self)), retval); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDownloadProgress_get_CurrentUpdatePercentComplete(self: *const T, retval: ?*i32) HRESULT { return @as(*const IDownloadProgress.VTable, @ptrCast(self.vtable)).get_CurrentUpdatePercentComplete(@as(*const IDownloadProgress, @ptrCast(self)), retval); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows5.1.2600' const IID_IDownloadJob_Value = Guid.initString("c574de85-7358-43f6-aae8-8697e62d8ba7"); pub const IID_IDownloadJob = &IID_IDownloadJob_Value; pub const IDownloadJob = extern struct { pub const VTable = extern struct { base: IDispatch.VTable, // TODO: this function has a "SpecialName", should Zig do anything with this? get_AsyncState: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IDownloadJob, retval: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IDownloadJob, retval: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_IsCompleted: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IDownloadJob, retval: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IDownloadJob, retval: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Updates: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IDownloadJob, retval: ?*?*IUpdateCollection, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IDownloadJob, retval: ?*?*IUpdateCollection, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, CleanUp: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDownloadJob, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDownloadJob, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetProgress: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDownloadJob, retval: ?*?*IDownloadProgress, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDownloadJob, retval: ?*?*IDownloadProgress, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, RequestAbort: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDownloadJob, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDownloadJob, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IDispatch.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDownloadJob_get_AsyncState(self: *const T, retval: ?*VARIANT) HRESULT { return @as(*const IDownloadJob.VTable, @ptrCast(self.vtable)).get_AsyncState(@as(*const IDownloadJob, @ptrCast(self)), retval); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDownloadJob_get_IsCompleted(self: *const T, retval: ?*i16) HRESULT { return @as(*const IDownloadJob.VTable, @ptrCast(self.vtable)).get_IsCompleted(@as(*const IDownloadJob, @ptrCast(self)), retval); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDownloadJob_get_Updates(self: *const T, retval: ?*?*IUpdateCollection) HRESULT { return @as(*const IDownloadJob.VTable, @ptrCast(self.vtable)).get_Updates(@as(*const IDownloadJob, @ptrCast(self)), retval); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDownloadJob_CleanUp(self: *const T) HRESULT { return @as(*const IDownloadJob.VTable, @ptrCast(self.vtable)).CleanUp(@as(*const IDownloadJob, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDownloadJob_GetProgress(self: *const T, retval: ?*?*IDownloadProgress) HRESULT { return @as(*const IDownloadJob.VTable, @ptrCast(self.vtable)).GetProgress(@as(*const IDownloadJob, @ptrCast(self)), retval); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDownloadJob_RequestAbort(self: *const T) HRESULT { return @as(*const IDownloadJob.VTable, @ptrCast(self.vtable)).RequestAbort(@as(*const IDownloadJob, @ptrCast(self))); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows5.1.2600' const IID_IDownloadCompletedCallbackArgs_Value = Guid.initString("fa565b23-498c-47a0-979d-e7d5b1813360"); pub const IID_IDownloadCompletedCallbackArgs = &IID_IDownloadCompletedCallbackArgs_Value; pub const IDownloadCompletedCallbackArgs = extern struct { pub const VTable = extern struct { base: IDispatch.VTable, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IDispatch.MethodMixin(T); }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows5.1.2600' const IID_IDownloadCompletedCallback_Value = Guid.initString("77254866-9f5b-4c8e-b9e2-c77a8530d64b"); pub const IID_IDownloadCompletedCallback = &IID_IDownloadCompletedCallback_Value; pub const IDownloadCompletedCallback = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, Invoke: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDownloadCompletedCallback, downloadJob: ?*IDownloadJob, callbackArgs: ?*IDownloadCompletedCallbackArgs, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDownloadCompletedCallback, downloadJob: ?*IDownloadJob, callbackArgs: ?*IDownloadCompletedCallbackArgs, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDownloadCompletedCallback_Invoke(self: *const T, downloadJob: ?*IDownloadJob, callbackArgs: ?*IDownloadCompletedCallbackArgs) HRESULT { return @as(*const IDownloadCompletedCallback.VTable, @ptrCast(self.vtable)).Invoke(@as(*const IDownloadCompletedCallback, @ptrCast(self)), downloadJob, callbackArgs); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows5.1.2600' const IID_IDownloadProgressChangedCallbackArgs_Value = Guid.initString("324ff2c6-4981-4b04-9412-57481745ab24"); pub const IID_IDownloadProgressChangedCallbackArgs = &IID_IDownloadProgressChangedCallbackArgs_Value; pub const IDownloadProgressChangedCallbackArgs = extern struct { pub const VTable = extern struct { base: IDispatch.VTable, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Progress: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IDownloadProgressChangedCallbackArgs, retval: ?*?*IDownloadProgress, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IDownloadProgressChangedCallbackArgs, retval: ?*?*IDownloadProgress, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IDispatch.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDownloadProgressChangedCallbackArgs_get_Progress(self: *const T, retval: ?*?*IDownloadProgress) HRESULT { return @as(*const IDownloadProgressChangedCallbackArgs.VTable, @ptrCast(self.vtable)).get_Progress(@as(*const IDownloadProgressChangedCallbackArgs, @ptrCast(self)), retval); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows5.1.2600' const IID_IDownloadProgressChangedCallback_Value = Guid.initString("8c3f1cdd-6173-4591-aebd-a56a53ca77c1"); pub const IID_IDownloadProgressChangedCallback = &IID_IDownloadProgressChangedCallback_Value; pub const IDownloadProgressChangedCallback = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, Invoke: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDownloadProgressChangedCallback, downloadJob: ?*IDownloadJob, callbackArgs: ?*IDownloadProgressChangedCallbackArgs, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDownloadProgressChangedCallback, downloadJob: ?*IDownloadJob, callbackArgs: ?*IDownloadProgressChangedCallbackArgs, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDownloadProgressChangedCallback_Invoke(self: *const T, downloadJob: ?*IDownloadJob, callbackArgs: ?*IDownloadProgressChangedCallbackArgs) HRESULT { return @as(*const IDownloadProgressChangedCallback.VTable, @ptrCast(self.vtable)).Invoke(@as(*const IDownloadProgressChangedCallback, @ptrCast(self)), downloadJob, callbackArgs); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows5.1.2600' const IID_IUpdateDownloader_Value = Guid.initString("68f1c6f9-7ecc-4666-a464-247fe12496c3"); pub const IID_IUpdateDownloader = &IID_IUpdateDownloader_Value; pub const IUpdateDownloader = extern struct { pub const VTable = extern struct { base: IDispatch.VTable, // TODO: this function has a "SpecialName", should Zig do anything with this? get_ClientApplicationID: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IUpdateDownloader, retval: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IUpdateDownloader, retval: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_ClientApplicationID: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IUpdateDownloader, value: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IUpdateDownloader, value: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_IsForced: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IUpdateDownloader, retval: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IUpdateDownloader, retval: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_IsForced: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IUpdateDownloader, value: i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IUpdateDownloader, value: i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Priority: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IUpdateDownloader, retval: ?*DownloadPriority, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IUpdateDownloader, retval: ?*DownloadPriority, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_Priority: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IUpdateDownloader, value: DownloadPriority, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IUpdateDownloader, value: DownloadPriority, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Updates: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IUpdateDownloader, retval: ?*?*IUpdateCollection, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IUpdateDownloader, retval: ?*?*IUpdateCollection, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_Updates: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IUpdateDownloader, value: ?*IUpdateCollection, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IUpdateDownloader, value: ?*IUpdateCollection, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, BeginDownload: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IUpdateDownloader, onProgressChanged: ?*IUnknown, onCompleted: ?*IUnknown, state: VARIANT, retval: ?*?*IDownloadJob, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IUpdateDownloader, onProgressChanged: ?*IUnknown, onCompleted: ?*IUnknown, state: VARIANT, retval: ?*?*IDownloadJob, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Download: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IUpdateDownloader, retval: ?*?*IDownloadResult, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IUpdateDownloader, retval: ?*?*IDownloadResult, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, EndDownload: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IUpdateDownloader, value: ?*IDownloadJob, retval: ?*?*IDownloadResult, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IUpdateDownloader, value: ?*IDownloadJob, retval: ?*?*IDownloadResult, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IDispatch.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IUpdateDownloader_get_ClientApplicationID(self: *const T, retval: ?*?BSTR) HRESULT { return @as(*const IUpdateDownloader.VTable, @ptrCast(self.vtable)).get_ClientApplicationID(@as(*const IUpdateDownloader, @ptrCast(self)), retval); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IUpdateDownloader_put_ClientApplicationID(self: *const T, value: ?BSTR) HRESULT { return @as(*const IUpdateDownloader.VTable, @ptrCast(self.vtable)).put_ClientApplicationID(@as(*const IUpdateDownloader, @ptrCast(self)), value); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IUpdateDownloader_get_IsForced(self: *const T, retval: ?*i16) HRESULT { return @as(*const IUpdateDownloader.VTable, @ptrCast(self.vtable)).get_IsForced(@as(*const IUpdateDownloader, @ptrCast(self)), retval); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IUpdateDownloader_put_IsForced(self: *const T, value: i16) HRESULT { return @as(*const IUpdateDownloader.VTable, @ptrCast(self.vtable)).put_IsForced(@as(*const IUpdateDownloader, @ptrCast(self)), value); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IUpdateDownloader_get_Priority(self: *const T, retval: ?*DownloadPriority) HRESULT { return @as(*const IUpdateDownloader.VTable, @ptrCast(self.vtable)).get_Priority(@as(*const IUpdateDownloader, @ptrCast(self)), retval); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IUpdateDownloader_put_Priority(self: *const T, value: DownloadPriority) HRESULT { return @as(*const IUpdateDownloader.VTable, @ptrCast(self.vtable)).put_Priority(@as(*const IUpdateDownloader, @ptrCast(self)), value); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IUpdateDownloader_get_Updates(self: *const T, retval: ?*?*IUpdateCollection) HRESULT { return @as(*const IUpdateDownloader.VTable, @ptrCast(self.vtable)).get_Updates(@as(*const IUpdateDownloader, @ptrCast(self)), retval); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IUpdateDownloader_put_Updates(self: *const T, value: ?*IUpdateCollection) HRESULT { return @as(*const IUpdateDownloader.VTable, @ptrCast(self.vtable)).put_Updates(@as(*const IUpdateDownloader, @ptrCast(self)), value); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IUpdateDownloader_BeginDownload(self: *const T, onProgressChanged: ?*IUnknown, onCompleted: ?*IUnknown, state: VARIANT, retval: ?*?*IDownloadJob) HRESULT { return @as(*const IUpdateDownloader.VTable, @ptrCast(self.vtable)).BeginDownload(@as(*const IUpdateDownloader, @ptrCast(self)), onProgressChanged, onCompleted, state, retval); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IUpdateDownloader_Download(self: *const T, retval: ?*?*IDownloadResult) HRESULT { return @as(*const IUpdateDownloader.VTable, @ptrCast(self.vtable)).Download(@as(*const IUpdateDownloader, @ptrCast(self)), retval); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IUpdateDownloader_EndDownload(self: *const T, value: ?*IDownloadJob, retval: ?*?*IDownloadResult) HRESULT { return @as(*const IUpdateDownloader.VTable, @ptrCast(self.vtable)).EndDownload(@as(*const IUpdateDownloader, @ptrCast(self)), value, retval); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows5.1.2600' const IID_IUpdateInstallationResult_Value = Guid.initString("d940f0f8-3cbb-4fd0-993f-471e7f2328ad"); pub const IID_IUpdateInstallationResult = &IID_IUpdateInstallationResult_Value; pub const IUpdateInstallationResult = extern struct { pub const VTable = extern struct { base: IDispatch.VTable, // TODO: this function has a "SpecialName", should Zig do anything with this? get_HResult: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IUpdateInstallationResult, retval: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IUpdateInstallationResult, retval: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_RebootRequired: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IUpdateInstallationResult, retval: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IUpdateInstallationResult, retval: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_ResultCode: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IUpdateInstallationResult, retval: ?*OperationResultCode, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IUpdateInstallationResult, retval: ?*OperationResultCode, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IDispatch.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IUpdateInstallationResult_get_HResult(self: *const T, retval: ?*i32) HRESULT { return @as(*const IUpdateInstallationResult.VTable, @ptrCast(self.vtable)).get_HResult(@as(*const IUpdateInstallationResult, @ptrCast(self)), retval); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IUpdateInstallationResult_get_RebootRequired(self: *const T, retval: ?*i16) HRESULT { return @as(*const IUpdateInstallationResult.VTable, @ptrCast(self.vtable)).get_RebootRequired(@as(*const IUpdateInstallationResult, @ptrCast(self)), retval); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IUpdateInstallationResult_get_ResultCode(self: *const T, retval: ?*OperationResultCode) HRESULT { return @as(*const IUpdateInstallationResult.VTable, @ptrCast(self.vtable)).get_ResultCode(@as(*const IUpdateInstallationResult, @ptrCast(self)), retval); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows5.1.2600' const IID_IInstallationResult_Value = Guid.initString("a43c56d6-7451-48d4-af96-b6cd2d0d9b7a"); pub const IID_IInstallationResult = &IID_IInstallationResult_Value; pub const IInstallationResult = extern struct { pub const VTable = extern struct { base: IDispatch.VTable, // TODO: this function has a "SpecialName", should Zig do anything with this? get_HResult: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IInstallationResult, retval: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IInstallationResult, retval: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_RebootRequired: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IInstallationResult, retval: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IInstallationResult, retval: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_ResultCode: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IInstallationResult, retval: ?*OperationResultCode, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IInstallationResult, retval: ?*OperationResultCode, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetUpdateResult: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IInstallationResult, updateIndex: i32, retval: ?*?*IUpdateInstallationResult, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IInstallationResult, updateIndex: i32, retval: ?*?*IUpdateInstallationResult, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IDispatch.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IInstallationResult_get_HResult(self: *const T, retval: ?*i32) HRESULT { return @as(*const IInstallationResult.VTable, @ptrCast(self.vtable)).get_HResult(@as(*const IInstallationResult, @ptrCast(self)), retval); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IInstallationResult_get_RebootRequired(self: *const T, retval: ?*i16) HRESULT { return @as(*const IInstallationResult.VTable, @ptrCast(self.vtable)).get_RebootRequired(@as(*const IInstallationResult, @ptrCast(self)), retval); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IInstallationResult_get_ResultCode(self: *const T, retval: ?*OperationResultCode) HRESULT { return @as(*const IInstallationResult.VTable, @ptrCast(self.vtable)).get_ResultCode(@as(*const IInstallationResult, @ptrCast(self)), retval); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IInstallationResult_GetUpdateResult(self: *const T, updateIndex: i32, retval: ?*?*IUpdateInstallationResult) HRESULT { return @as(*const IInstallationResult.VTable, @ptrCast(self.vtable)).GetUpdateResult(@as(*const IInstallationResult, @ptrCast(self)), updateIndex, retval); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows5.1.2600' const IID_IInstallationProgress_Value = Guid.initString("345c8244-43a3-4e32-a368-65f073b76f36"); pub const IID_IInstallationProgress = &IID_IInstallationProgress_Value; pub const IInstallationProgress = extern struct { pub const VTable = extern struct { base: IDispatch.VTable, // TODO: this function has a "SpecialName", should Zig do anything with this? get_CurrentUpdateIndex: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IInstallationProgress, retval: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IInstallationProgress, retval: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_CurrentUpdatePercentComplete: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IInstallationProgress, retval: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IInstallationProgress, retval: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_PercentComplete: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IInstallationProgress, retval: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IInstallationProgress, retval: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetUpdateResult: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IInstallationProgress, updateIndex: i32, retval: ?*?*IUpdateInstallationResult, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IInstallationProgress, updateIndex: i32, retval: ?*?*IUpdateInstallationResult, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IDispatch.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IInstallationProgress_get_CurrentUpdateIndex(self: *const T, retval: ?*i32) HRESULT { return @as(*const IInstallationProgress.VTable, @ptrCast(self.vtable)).get_CurrentUpdateIndex(@as(*const IInstallationProgress, @ptrCast(self)), retval); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IInstallationProgress_get_CurrentUpdatePercentComplete(self: *const T, retval: ?*i32) HRESULT { return @as(*const IInstallationProgress.VTable, @ptrCast(self.vtable)).get_CurrentUpdatePercentComplete(@as(*const IInstallationProgress, @ptrCast(self)), retval); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IInstallationProgress_get_PercentComplete(self: *const T, retval: ?*i32) HRESULT { return @as(*const IInstallationProgress.VTable, @ptrCast(self.vtable)).get_PercentComplete(@as(*const IInstallationProgress, @ptrCast(self)), retval); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IInstallationProgress_GetUpdateResult(self: *const T, updateIndex: i32, retval: ?*?*IUpdateInstallationResult) HRESULT { return @as(*const IInstallationProgress.VTable, @ptrCast(self.vtable)).GetUpdateResult(@as(*const IInstallationProgress, @ptrCast(self)), updateIndex, retval); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows5.1.2600' const IID_IInstallationJob_Value = Guid.initString("5c209f0b-bad5-432a-9556-4699bed2638a"); pub const IID_IInstallationJob = &IID_IInstallationJob_Value; pub const IInstallationJob = extern struct { pub const VTable = extern struct { base: IDispatch.VTable, // TODO: this function has a "SpecialName", should Zig do anything with this? get_AsyncState: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IInstallationJob, retval: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IInstallationJob, retval: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_IsCompleted: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IInstallationJob, retval: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IInstallationJob, retval: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Updates: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IInstallationJob, retval: ?*?*IUpdateCollection, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IInstallationJob, retval: ?*?*IUpdateCollection, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, CleanUp: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IInstallationJob, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IInstallationJob, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetProgress: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IInstallationJob, retval: ?*?*IInstallationProgress, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IInstallationJob, retval: ?*?*IInstallationProgress, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, RequestAbort: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IInstallationJob, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IInstallationJob, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IDispatch.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IInstallationJob_get_AsyncState(self: *const T, retval: ?*VARIANT) HRESULT { return @as(*const IInstallationJob.VTable, @ptrCast(self.vtable)).get_AsyncState(@as(*const IInstallationJob, @ptrCast(self)), retval); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IInstallationJob_get_IsCompleted(self: *const T, retval: ?*i16) HRESULT { return @as(*const IInstallationJob.VTable, @ptrCast(self.vtable)).get_IsCompleted(@as(*const IInstallationJob, @ptrCast(self)), retval); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IInstallationJob_get_Updates(self: *const T, retval: ?*?*IUpdateCollection) HRESULT { return @as(*const IInstallationJob.VTable, @ptrCast(self.vtable)).get_Updates(@as(*const IInstallationJob, @ptrCast(self)), retval); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IInstallationJob_CleanUp(self: *const T) HRESULT { return @as(*const IInstallationJob.VTable, @ptrCast(self.vtable)).CleanUp(@as(*const IInstallationJob, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IInstallationJob_GetProgress(self: *const T, retval: ?*?*IInstallationProgress) HRESULT { return @as(*const IInstallationJob.VTable, @ptrCast(self.vtable)).GetProgress(@as(*const IInstallationJob, @ptrCast(self)), retval); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IInstallationJob_RequestAbort(self: *const T) HRESULT { return @as(*const IInstallationJob.VTable, @ptrCast(self.vtable)).RequestAbort(@as(*const IInstallationJob, @ptrCast(self))); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows5.1.2600' const IID_IInstallationCompletedCallbackArgs_Value = Guid.initString("250e2106-8efb-4705-9653-ef13c581b6a1"); pub const IID_IInstallationCompletedCallbackArgs = &IID_IInstallationCompletedCallbackArgs_Value; pub const IInstallationCompletedCallbackArgs = extern struct { pub const VTable = extern struct { base: IDispatch.VTable, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IDispatch.MethodMixin(T); }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows5.1.2600' const IID_IInstallationCompletedCallback_Value = Guid.initString("45f4f6f3-d602-4f98-9a8a-3efa152ad2d3"); pub const IID_IInstallationCompletedCallback = &IID_IInstallationCompletedCallback_Value; pub const IInstallationCompletedCallback = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, Invoke: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IInstallationCompletedCallback, installationJob: ?*IInstallationJob, callbackArgs: ?*IInstallationCompletedCallbackArgs, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IInstallationCompletedCallback, installationJob: ?*IInstallationJob, callbackArgs: ?*IInstallationCompletedCallbackArgs, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IInstallationCompletedCallback_Invoke(self: *const T, installationJob: ?*IInstallationJob, callbackArgs: ?*IInstallationCompletedCallbackArgs) HRESULT { return @as(*const IInstallationCompletedCallback.VTable, @ptrCast(self.vtable)).Invoke(@as(*const IInstallationCompletedCallback, @ptrCast(self)), installationJob, callbackArgs); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows5.1.2600' const IID_IInstallationProgressChangedCallbackArgs_Value = Guid.initString("e4f14e1e-689d-4218-a0b9-bc189c484a01"); pub const IID_IInstallationProgressChangedCallbackArgs = &IID_IInstallationProgressChangedCallbackArgs_Value; pub const IInstallationProgressChangedCallbackArgs = extern struct { pub const VTable = extern struct { base: IDispatch.VTable, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Progress: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IInstallationProgressChangedCallbackArgs, retval: ?*?*IInstallationProgress, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IInstallationProgressChangedCallbackArgs, retval: ?*?*IInstallationProgress, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IDispatch.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IInstallationProgressChangedCallbackArgs_get_Progress(self: *const T, retval: ?*?*IInstallationProgress) HRESULT { return @as(*const IInstallationProgressChangedCallbackArgs.VTable, @ptrCast(self.vtable)).get_Progress(@as(*const IInstallationProgressChangedCallbackArgs, @ptrCast(self)), retval); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows5.1.2600' const IID_IInstallationProgressChangedCallback_Value = Guid.initString("e01402d5-f8da-43ba-a012-38894bd048f1"); pub const IID_IInstallationProgressChangedCallback = &IID_IInstallationProgressChangedCallback_Value; pub const IInstallationProgressChangedCallback = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, Invoke: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IInstallationProgressChangedCallback, installationJob: ?*IInstallationJob, callbackArgs: ?*IInstallationProgressChangedCallbackArgs, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IInstallationProgressChangedCallback, installationJob: ?*IInstallationJob, callbackArgs: ?*IInstallationProgressChangedCallbackArgs, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IInstallationProgressChangedCallback_Invoke(self: *const T, installationJob: ?*IInstallationJob, callbackArgs: ?*IInstallationProgressChangedCallbackArgs) HRESULT { return @as(*const IInstallationProgressChangedCallback.VTable, @ptrCast(self.vtable)).Invoke(@as(*const IInstallationProgressChangedCallback, @ptrCast(self)), installationJob, callbackArgs); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows5.1.2600' const IID_IUpdateInstaller_Value = Guid.initString("7b929c68-ccdc-4226-96b1-8724600b54c2"); pub const IID_IUpdateInstaller = &IID_IUpdateInstaller_Value; pub const IUpdateInstaller = extern struct { pub const VTable = extern struct { base: IDispatch.VTable, // TODO: this function has a "SpecialName", should Zig do anything with this? get_ClientApplicationID: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IUpdateInstaller, retval: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IUpdateInstaller, retval: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_ClientApplicationID: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IUpdateInstaller, value: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IUpdateInstaller, value: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_IsForced: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IUpdateInstaller, retval: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IUpdateInstaller, retval: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_IsForced: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IUpdateInstaller, value: i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IUpdateInstaller, value: i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_ParentHwnd: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IUpdateInstaller, retval: ?*?HWND, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IUpdateInstaller, retval: ?*?HWND, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_ParentHwnd: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IUpdateInstaller, value: ?HWND, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IUpdateInstaller, value: ?HWND, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_ParentWindow: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IUpdateInstaller, value: ?*IUnknown, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IUpdateInstaller, value: ?*IUnknown, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_ParentWindow: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IUpdateInstaller, retval: ?*?*IUnknown, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IUpdateInstaller, retval: ?*?*IUnknown, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Updates: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IUpdateInstaller, retval: ?*?*IUpdateCollection, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IUpdateInstaller, retval: ?*?*IUpdateCollection, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_Updates: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IUpdateInstaller, value: ?*IUpdateCollection, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IUpdateInstaller, value: ?*IUpdateCollection, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, BeginInstall: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IUpdateInstaller, onProgressChanged: ?*IUnknown, onCompleted: ?*IUnknown, state: VARIANT, retval: ?*?*IInstallationJob, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IUpdateInstaller, onProgressChanged: ?*IUnknown, onCompleted: ?*IUnknown, state: VARIANT, retval: ?*?*IInstallationJob, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, BeginUninstall: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IUpdateInstaller, onProgressChanged: ?*IUnknown, onCompleted: ?*IUnknown, state: VARIANT, retval: ?*?*IInstallationJob, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IUpdateInstaller, onProgressChanged: ?*IUnknown, onCompleted: ?*IUnknown, state: VARIANT, retval: ?*?*IInstallationJob, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, EndInstall: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IUpdateInstaller, value: ?*IInstallationJob, retval: ?*?*IInstallationResult, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IUpdateInstaller, value: ?*IInstallationJob, retval: ?*?*IInstallationResult, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, EndUninstall: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IUpdateInstaller, value: ?*IInstallationJob, retval: ?*?*IInstallationResult, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IUpdateInstaller, value: ?*IInstallationJob, retval: ?*?*IInstallationResult, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Install: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IUpdateInstaller, retval: ?*?*IInstallationResult, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IUpdateInstaller, retval: ?*?*IInstallationResult, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, RunWizard: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IUpdateInstaller, dialogTitle: ?BSTR, retval: ?*?*IInstallationResult, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IUpdateInstaller, dialogTitle: ?BSTR, retval: ?*?*IInstallationResult, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_IsBusy: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IUpdateInstaller, retval: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IUpdateInstaller, retval: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Uninstall: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IUpdateInstaller, retval: ?*?*IInstallationResult, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IUpdateInstaller, retval: ?*?*IInstallationResult, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_AllowSourcePrompts: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IUpdateInstaller, retval: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IUpdateInstaller, retval: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_AllowSourcePrompts: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IUpdateInstaller, value: i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IUpdateInstaller, value: i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_RebootRequiredBeforeInstallation: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IUpdateInstaller, retval: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IUpdateInstaller, retval: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IDispatch.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IUpdateInstaller_get_ClientApplicationID(self: *const T, retval: ?*?BSTR) HRESULT { return @as(*const IUpdateInstaller.VTable, @ptrCast(self.vtable)).get_ClientApplicationID(@as(*const IUpdateInstaller, @ptrCast(self)), retval); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IUpdateInstaller_put_ClientApplicationID(self: *const T, value: ?BSTR) HRESULT { return @as(*const IUpdateInstaller.VTable, @ptrCast(self.vtable)).put_ClientApplicationID(@as(*const IUpdateInstaller, @ptrCast(self)), value); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IUpdateInstaller_get_IsForced(self: *const T, retval: ?*i16) HRESULT { return @as(*const IUpdateInstaller.VTable, @ptrCast(self.vtable)).get_IsForced(@as(*const IUpdateInstaller, @ptrCast(self)), retval); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IUpdateInstaller_put_IsForced(self: *const T, value: i16) HRESULT { return @as(*const IUpdateInstaller.VTable, @ptrCast(self.vtable)).put_IsForced(@as(*const IUpdateInstaller, @ptrCast(self)), value); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IUpdateInstaller_get_ParentHwnd(self: *const T, retval: ?*?HWND) HRESULT { return @as(*const IUpdateInstaller.VTable, @ptrCast(self.vtable)).get_ParentHwnd(@as(*const IUpdateInstaller, @ptrCast(self)), retval); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IUpdateInstaller_put_ParentHwnd(self: *const T, value: ?HWND) HRESULT { return @as(*const IUpdateInstaller.VTable, @ptrCast(self.vtable)).put_ParentHwnd(@as(*const IUpdateInstaller, @ptrCast(self)), value); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IUpdateInstaller_put_ParentWindow(self: *const T, value: ?*IUnknown) HRESULT { return @as(*const IUpdateInstaller.VTable, @ptrCast(self.vtable)).put_ParentWindow(@as(*const IUpdateInstaller, @ptrCast(self)), value); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IUpdateInstaller_get_ParentWindow(self: *const T, retval: ?*?*IUnknown) HRESULT { return @as(*const IUpdateInstaller.VTable, @ptrCast(self.vtable)).get_ParentWindow(@as(*const IUpdateInstaller, @ptrCast(self)), retval); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IUpdateInstaller_get_Updates(self: *const T, retval: ?*?*IUpdateCollection) HRESULT { return @as(*const IUpdateInstaller.VTable, @ptrCast(self.vtable)).get_Updates(@as(*const IUpdateInstaller, @ptrCast(self)), retval); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IUpdateInstaller_put_Updates(self: *const T, value: ?*IUpdateCollection) HRESULT { return @as(*const IUpdateInstaller.VTable, @ptrCast(self.vtable)).put_Updates(@as(*const IUpdateInstaller, @ptrCast(self)), value); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IUpdateInstaller_BeginInstall(self: *const T, onProgressChanged: ?*IUnknown, onCompleted: ?*IUnknown, state: VARIANT, retval: ?*?*IInstallationJob) HRESULT { return @as(*const IUpdateInstaller.VTable, @ptrCast(self.vtable)).BeginInstall(@as(*const IUpdateInstaller, @ptrCast(self)), onProgressChanged, onCompleted, state, retval); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IUpdateInstaller_BeginUninstall(self: *const T, onProgressChanged: ?*IUnknown, onCompleted: ?*IUnknown, state: VARIANT, retval: ?*?*IInstallationJob) HRESULT { return @as(*const IUpdateInstaller.VTable, @ptrCast(self.vtable)).BeginUninstall(@as(*const IUpdateInstaller, @ptrCast(self)), onProgressChanged, onCompleted, state, retval); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IUpdateInstaller_EndInstall(self: *const T, value: ?*IInstallationJob, retval: ?*?*IInstallationResult) HRESULT { return @as(*const IUpdateInstaller.VTable, @ptrCast(self.vtable)).EndInstall(@as(*const IUpdateInstaller, @ptrCast(self)), value, retval); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IUpdateInstaller_EndUninstall(self: *const T, value: ?*IInstallationJob, retval: ?*?*IInstallationResult) HRESULT { return @as(*const IUpdateInstaller.VTable, @ptrCast(self.vtable)).EndUninstall(@as(*const IUpdateInstaller, @ptrCast(self)), value, retval); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IUpdateInstaller_Install(self: *const T, retval: ?*?*IInstallationResult) HRESULT { return @as(*const IUpdateInstaller.VTable, @ptrCast(self.vtable)).Install(@as(*const IUpdateInstaller, @ptrCast(self)), retval); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IUpdateInstaller_RunWizard(self: *const T, dialogTitle: ?BSTR, retval: ?*?*IInstallationResult) HRESULT { return @as(*const IUpdateInstaller.VTable, @ptrCast(self.vtable)).RunWizard(@as(*const IUpdateInstaller, @ptrCast(self)), dialogTitle, retval); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IUpdateInstaller_get_IsBusy(self: *const T, retval: ?*i16) HRESULT { return @as(*const IUpdateInstaller.VTable, @ptrCast(self.vtable)).get_IsBusy(@as(*const IUpdateInstaller, @ptrCast(self)), retval); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IUpdateInstaller_Uninstall(self: *const T, retval: ?*?*IInstallationResult) HRESULT { return @as(*const IUpdateInstaller.VTable, @ptrCast(self.vtable)).Uninstall(@as(*const IUpdateInstaller, @ptrCast(self)), retval); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IUpdateInstaller_get_AllowSourcePrompts(self: *const T, retval: ?*i16) HRESULT { return @as(*const IUpdateInstaller.VTable, @ptrCast(self.vtable)).get_AllowSourcePrompts(@as(*const IUpdateInstaller, @ptrCast(self)), retval); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IUpdateInstaller_put_AllowSourcePrompts(self: *const T, value: i16) HRESULT { return @as(*const IUpdateInstaller.VTable, @ptrCast(self.vtable)).put_AllowSourcePrompts(@as(*const IUpdateInstaller, @ptrCast(self)), value); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IUpdateInstaller_get_RebootRequiredBeforeInstallation(self: *const T, retval: ?*i16) HRESULT { return @as(*const IUpdateInstaller.VTable, @ptrCast(self.vtable)).get_RebootRequiredBeforeInstallation(@as(*const IUpdateInstaller, @ptrCast(self)), retval); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows5.1.2600' const IID_IUpdateInstaller2_Value = Guid.initString("3442d4fe-224d-4cee-98cf-30e0c4d229e6"); pub const IID_IUpdateInstaller2 = &IID_IUpdateInstaller2_Value; pub const IUpdateInstaller2 = extern struct { pub const VTable = extern struct { base: IUpdateInstaller.VTable, // TODO: this function has a "SpecialName", should Zig do anything with this? get_ForceQuiet: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IUpdateInstaller2, retval: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IUpdateInstaller2, retval: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_ForceQuiet: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IUpdateInstaller2, value: i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IUpdateInstaller2, value: i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUpdateInstaller.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IUpdateInstaller2_get_ForceQuiet(self: *const T, retval: ?*i16) HRESULT { return @as(*const IUpdateInstaller2.VTable, @ptrCast(self.vtable)).get_ForceQuiet(@as(*const IUpdateInstaller2, @ptrCast(self)), retval); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IUpdateInstaller2_put_ForceQuiet(self: *const T, value: i16) HRESULT { return @as(*const IUpdateInstaller2.VTable, @ptrCast(self.vtable)).put_ForceQuiet(@as(*const IUpdateInstaller2, @ptrCast(self)), value); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows10.0.17134' const IID_IUpdateInstaller3_Value = Guid.initString("16d11c35-099a-48d0-8338-5fae64047f8e"); pub const IID_IUpdateInstaller3 = &IID_IUpdateInstaller3_Value; pub const IUpdateInstaller3 = extern struct { pub const VTable = extern struct { base: IUpdateInstaller2.VTable, // TODO: this function has a "SpecialName", should Zig do anything with this? get_AttemptCloseAppsIfNecessary: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IUpdateInstaller3, retval: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IUpdateInstaller3, retval: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_AttemptCloseAppsIfNecessary: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IUpdateInstaller3, value: i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IUpdateInstaller3, value: i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUpdateInstaller2.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IUpdateInstaller3_get_AttemptCloseAppsIfNecessary(self: *const T, retval: ?*i16) HRESULT { return @as(*const IUpdateInstaller3.VTable, @ptrCast(self.vtable)).get_AttemptCloseAppsIfNecessary(@as(*const IUpdateInstaller3, @ptrCast(self)), retval); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IUpdateInstaller3_put_AttemptCloseAppsIfNecessary(self: *const T, value: i16) HRESULT { return @as(*const IUpdateInstaller3.VTable, @ptrCast(self.vtable)).put_AttemptCloseAppsIfNecessary(@as(*const IUpdateInstaller3, @ptrCast(self)), value); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows10.0.10240' const IID_IUpdateInstaller4_Value = Guid.initString("ef8208ea-2304-492d-9109-23813b0958e1"); pub const IID_IUpdateInstaller4 = &IID_IUpdateInstaller4_Value; pub const IUpdateInstaller4 = extern struct { pub const VTable = extern struct { base: IUpdateInstaller3.VTable, Commit: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IUpdateInstaller4, dwFlags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IUpdateInstaller4, dwFlags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUpdateInstaller3.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IUpdateInstaller4_Commit(self: *const T, dwFlags: u32) HRESULT { return @as(*const IUpdateInstaller4.VTable, @ptrCast(self.vtable)).Commit(@as(*const IUpdateInstaller4, @ptrCast(self)), dwFlags); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows5.1.2600' const IID_IUpdateSession_Value = Guid.initString("816858a4-260d-4260-933a-2585f1abc76b"); pub const IID_IUpdateSession = &IID_IUpdateSession_Value; pub const IUpdateSession = extern struct { pub const VTable = extern struct { base: IDispatch.VTable, // TODO: this function has a "SpecialName", should Zig do anything with this? get_ClientApplicationID: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IUpdateSession, retval: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IUpdateSession, retval: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_ClientApplicationID: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IUpdateSession, value: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IUpdateSession, value: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_ReadOnly: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IUpdateSession, retval: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IUpdateSession, retval: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_WebProxy: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IUpdateSession, retval: ?*?*IWebProxy, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IUpdateSession, retval: ?*?*IWebProxy, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_WebProxy: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IUpdateSession, value: ?*IWebProxy, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IUpdateSession, value: ?*IWebProxy, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, CreateUpdateSearcher: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IUpdateSession, retval: ?*?*IUpdateSearcher, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IUpdateSession, retval: ?*?*IUpdateSearcher, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, CreateUpdateDownloader: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IUpdateSession, retval: ?*?*IUpdateDownloader, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IUpdateSession, retval: ?*?*IUpdateDownloader, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, CreateUpdateInstaller: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IUpdateSession, retval: ?*?*IUpdateInstaller, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IUpdateSession, retval: ?*?*IUpdateInstaller, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IDispatch.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IUpdateSession_get_ClientApplicationID(self: *const T, retval: ?*?BSTR) HRESULT { return @as(*const IUpdateSession.VTable, @ptrCast(self.vtable)).get_ClientApplicationID(@as(*const IUpdateSession, @ptrCast(self)), retval); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IUpdateSession_put_ClientApplicationID(self: *const T, value: ?BSTR) HRESULT { return @as(*const IUpdateSession.VTable, @ptrCast(self.vtable)).put_ClientApplicationID(@as(*const IUpdateSession, @ptrCast(self)), value); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IUpdateSession_get_ReadOnly(self: *const T, retval: ?*i16) HRESULT { return @as(*const IUpdateSession.VTable, @ptrCast(self.vtable)).get_ReadOnly(@as(*const IUpdateSession, @ptrCast(self)), retval); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IUpdateSession_get_WebProxy(self: *const T, retval: ?*?*IWebProxy) HRESULT { return @as(*const IUpdateSession.VTable, @ptrCast(self.vtable)).get_WebProxy(@as(*const IUpdateSession, @ptrCast(self)), retval); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IUpdateSession_put_WebProxy(self: *const T, value: ?*IWebProxy) HRESULT { return @as(*const IUpdateSession.VTable, @ptrCast(self.vtable)).put_WebProxy(@as(*const IUpdateSession, @ptrCast(self)), value); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IUpdateSession_CreateUpdateSearcher(self: *const T, retval: ?*?*IUpdateSearcher) HRESULT { return @as(*const IUpdateSession.VTable, @ptrCast(self.vtable)).CreateUpdateSearcher(@as(*const IUpdateSession, @ptrCast(self)), retval); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IUpdateSession_CreateUpdateDownloader(self: *const T, retval: ?*?*IUpdateDownloader) HRESULT { return @as(*const IUpdateSession.VTable, @ptrCast(self.vtable)).CreateUpdateDownloader(@as(*const IUpdateSession, @ptrCast(self)), retval); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IUpdateSession_CreateUpdateInstaller(self: *const T, retval: ?*?*IUpdateInstaller) HRESULT { return @as(*const IUpdateSession.VTable, @ptrCast(self.vtable)).CreateUpdateInstaller(@as(*const IUpdateSession, @ptrCast(self)), retval); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows5.1.2600' const IID_IUpdateSession2_Value = Guid.initString("91caf7b0-eb23-49ed-9937-c52d817f46f7"); pub const IID_IUpdateSession2 = &IID_IUpdateSession2_Value; pub const IUpdateSession2 = extern struct { pub const VTable = extern struct { base: IUpdateSession.VTable, // TODO: this function has a "SpecialName", should Zig do anything with this? get_UserLocale: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IUpdateSession2, retval: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IUpdateSession2, retval: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_UserLocale: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IUpdateSession2, lcid: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IUpdateSession2, lcid: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUpdateSession.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IUpdateSession2_get_UserLocale(self: *const T, retval: ?*u32) HRESULT { return @as(*const IUpdateSession2.VTable, @ptrCast(self.vtable)).get_UserLocale(@as(*const IUpdateSession2, @ptrCast(self)), retval); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IUpdateSession2_put_UserLocale(self: *const T, lcid: u32) HRESULT { return @as(*const IUpdateSession2.VTable, @ptrCast(self.vtable)).put_UserLocale(@as(*const IUpdateSession2, @ptrCast(self)), lcid); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows5.1.2600' const IID_IUpdateSession3_Value = Guid.initString("918efd1e-b5d8-4c90-8540-aeb9bdc56f9d"); pub const IID_IUpdateSession3 = &IID_IUpdateSession3_Value; pub const IUpdateSession3 = extern struct { pub const VTable = extern struct { base: IUpdateSession2.VTable, CreateUpdateServiceManager: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IUpdateSession3, retval: ?*?*IUpdateServiceManager2, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IUpdateSession3, retval: ?*?*IUpdateServiceManager2, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, QueryHistory: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IUpdateSession3, criteria: ?BSTR, startIndex: i32, count: i32, retval: ?*?*IUpdateHistoryEntryCollection, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IUpdateSession3, criteria: ?BSTR, startIndex: i32, count: i32, retval: ?*?*IUpdateHistoryEntryCollection, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUpdateSession2.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IUpdateSession3_CreateUpdateServiceManager(self: *const T, retval: ?*?*IUpdateServiceManager2) HRESULT { return @as(*const IUpdateSession3.VTable, @ptrCast(self.vtable)).CreateUpdateServiceManager(@as(*const IUpdateSession3, @ptrCast(self)), retval); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IUpdateSession3_QueryHistory(self: *const T, criteria: ?BSTR, startIndex: i32, count: i32, retval: ?*?*IUpdateHistoryEntryCollection) HRESULT { return @as(*const IUpdateSession3.VTable, @ptrCast(self.vtable)).QueryHistory(@as(*const IUpdateSession3, @ptrCast(self)), criteria, startIndex, count, retval); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows5.1.2600' const IID_IUpdateService_Value = Guid.initString("76b3b17e-aed6-4da5-85f0-83587f81abe3"); pub const IID_IUpdateService = &IID_IUpdateService_Value; pub const IUpdateService = extern struct { pub const VTable = extern struct { base: IDispatch.VTable, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Name: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IUpdateService, retval: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IUpdateService, retval: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_ContentValidationCert: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IUpdateService, retval: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IUpdateService, retval: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_ExpirationDate: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IUpdateService, retval: ?*f64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IUpdateService, retval: ?*f64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_IsManaged: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IUpdateService, retval: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IUpdateService, retval: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_IsRegisteredWithAU: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IUpdateService, retval: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IUpdateService, retval: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_IssueDate: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IUpdateService, retval: ?*f64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IUpdateService, retval: ?*f64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_OffersWindowsUpdates: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IUpdateService, retval: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IUpdateService, retval: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_RedirectUrls: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IUpdateService, retval: ?*?*IStringCollection, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IUpdateService, retval: ?*?*IStringCollection, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_ServiceID: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IUpdateService, retval: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IUpdateService, retval: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_IsScanPackageService: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IUpdateService, retval: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IUpdateService, retval: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_CanRegisterWithAU: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IUpdateService, retval: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IUpdateService, retval: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_ServiceUrl: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IUpdateService, retval: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IUpdateService, retval: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_SetupPrefix: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IUpdateService, retval: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IUpdateService, retval: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IDispatch.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IUpdateService_get_Name(self: *const T, retval: ?*?BSTR) HRESULT { return @as(*const IUpdateService.VTable, @ptrCast(self.vtable)).get_Name(@as(*const IUpdateService, @ptrCast(self)), retval); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IUpdateService_get_ContentValidationCert(self: *const T, retval: ?*VARIANT) HRESULT { return @as(*const IUpdateService.VTable, @ptrCast(self.vtable)).get_ContentValidationCert(@as(*const IUpdateService, @ptrCast(self)), retval); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IUpdateService_get_ExpirationDate(self: *const T, retval: ?*f64) HRESULT { return @as(*const IUpdateService.VTable, @ptrCast(self.vtable)).get_ExpirationDate(@as(*const IUpdateService, @ptrCast(self)), retval); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IUpdateService_get_IsManaged(self: *const T, retval: ?*i16) HRESULT { return @as(*const IUpdateService.VTable, @ptrCast(self.vtable)).get_IsManaged(@as(*const IUpdateService, @ptrCast(self)), retval); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IUpdateService_get_IsRegisteredWithAU(self: *const T, retval: ?*i16) HRESULT { return @as(*const IUpdateService.VTable, @ptrCast(self.vtable)).get_IsRegisteredWithAU(@as(*const IUpdateService, @ptrCast(self)), retval); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IUpdateService_get_IssueDate(self: *const T, retval: ?*f64) HRESULT { return @as(*const IUpdateService.VTable, @ptrCast(self.vtable)).get_IssueDate(@as(*const IUpdateService, @ptrCast(self)), retval); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IUpdateService_get_OffersWindowsUpdates(self: *const T, retval: ?*i16) HRESULT { return @as(*const IUpdateService.VTable, @ptrCast(self.vtable)).get_OffersWindowsUpdates(@as(*const IUpdateService, @ptrCast(self)), retval); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IUpdateService_get_RedirectUrls(self: *const T, retval: ?*?*IStringCollection) HRESULT { return @as(*const IUpdateService.VTable, @ptrCast(self.vtable)).get_RedirectUrls(@as(*const IUpdateService, @ptrCast(self)), retval); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IUpdateService_get_ServiceID(self: *const T, retval: ?*?BSTR) HRESULT { return @as(*const IUpdateService.VTable, @ptrCast(self.vtable)).get_ServiceID(@as(*const IUpdateService, @ptrCast(self)), retval); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IUpdateService_get_IsScanPackageService(self: *const T, retval: ?*i16) HRESULT { return @as(*const IUpdateService.VTable, @ptrCast(self.vtable)).get_IsScanPackageService(@as(*const IUpdateService, @ptrCast(self)), retval); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IUpdateService_get_CanRegisterWithAU(self: *const T, retval: ?*i16) HRESULT { return @as(*const IUpdateService.VTable, @ptrCast(self.vtable)).get_CanRegisterWithAU(@as(*const IUpdateService, @ptrCast(self)), retval); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IUpdateService_get_ServiceUrl(self: *const T, retval: ?*?BSTR) HRESULT { return @as(*const IUpdateService.VTable, @ptrCast(self.vtable)).get_ServiceUrl(@as(*const IUpdateService, @ptrCast(self)), retval); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IUpdateService_get_SetupPrefix(self: *const T, retval: ?*?BSTR) HRESULT { return @as(*const IUpdateService.VTable, @ptrCast(self.vtable)).get_SetupPrefix(@as(*const IUpdateService, @ptrCast(self)), retval); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows5.1.2600' const IID_IUpdateService2_Value = Guid.initString("1518b460-6518-4172-940f-c75883b24ceb"); pub const IID_IUpdateService2 = &IID_IUpdateService2_Value; pub const IUpdateService2 = extern struct { pub const VTable = extern struct { base: IUpdateService.VTable, // TODO: this function has a "SpecialName", should Zig do anything with this? get_IsDefaultAUService: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IUpdateService2, retval: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IUpdateService2, retval: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUpdateService.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IUpdateService2_get_IsDefaultAUService(self: *const T, retval: ?*i16) HRESULT { return @as(*const IUpdateService2.VTable, @ptrCast(self.vtable)).get_IsDefaultAUService(@as(*const IUpdateService2, @ptrCast(self)), retval); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows5.1.2600' const IID_IUpdateServiceCollection_Value = Guid.initString("9b0353aa-0e52-44ff-b8b0-1f7fa0437f88"); pub const IID_IUpdateServiceCollection = &IID_IUpdateServiceCollection_Value; pub const IUpdateServiceCollection = extern struct { pub const VTable = extern struct { base: IDispatch.VTable, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Item: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IUpdateServiceCollection, index: i32, retval: ?*?*IUpdateService, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IUpdateServiceCollection, index: i32, retval: ?*?*IUpdateService, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get__NewEnum: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IUpdateServiceCollection, retval: ?*?*IUnknown, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IUpdateServiceCollection, retval: ?*?*IUnknown, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Count: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IUpdateServiceCollection, retval: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IUpdateServiceCollection, retval: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IDispatch.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IUpdateServiceCollection_get_Item(self: *const T, index: i32, retval: ?*?*IUpdateService) HRESULT { return @as(*const IUpdateServiceCollection.VTable, @ptrCast(self.vtable)).get_Item(@as(*const IUpdateServiceCollection, @ptrCast(self)), index, retval); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IUpdateServiceCollection_get__NewEnum(self: *const T, retval: ?*?*IUnknown) HRESULT { return @as(*const IUpdateServiceCollection.VTable, @ptrCast(self.vtable)).get__NewEnum(@as(*const IUpdateServiceCollection, @ptrCast(self)), retval); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IUpdateServiceCollection_get_Count(self: *const T, retval: ?*i32) HRESULT { return @as(*const IUpdateServiceCollection.VTable, @ptrCast(self.vtable)).get_Count(@as(*const IUpdateServiceCollection, @ptrCast(self)), retval); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows5.1.2600' const IID_IUpdateServiceRegistration_Value = Guid.initString("dde02280-12b3-4e0b-937b-6747f6acb286"); pub const IID_IUpdateServiceRegistration = &IID_IUpdateServiceRegistration_Value; pub const IUpdateServiceRegistration = extern struct { pub const VTable = extern struct { base: IDispatch.VTable, // TODO: this function has a "SpecialName", should Zig do anything with this? get_RegistrationState: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IUpdateServiceRegistration, retval: ?*UpdateServiceRegistrationState, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IUpdateServiceRegistration, retval: ?*UpdateServiceRegistrationState, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_ServiceID: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IUpdateServiceRegistration, retval: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IUpdateServiceRegistration, retval: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_IsPendingRegistrationWithAU: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IUpdateServiceRegistration, retval: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IUpdateServiceRegistration, retval: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Service: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IUpdateServiceRegistration, retval: ?*?*IUpdateService2, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IUpdateServiceRegistration, retval: ?*?*IUpdateService2, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IDispatch.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IUpdateServiceRegistration_get_RegistrationState(self: *const T, retval: ?*UpdateServiceRegistrationState) HRESULT { return @as(*const IUpdateServiceRegistration.VTable, @ptrCast(self.vtable)).get_RegistrationState(@as(*const IUpdateServiceRegistration, @ptrCast(self)), retval); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IUpdateServiceRegistration_get_ServiceID(self: *const T, retval: ?*?BSTR) HRESULT { return @as(*const IUpdateServiceRegistration.VTable, @ptrCast(self.vtable)).get_ServiceID(@as(*const IUpdateServiceRegistration, @ptrCast(self)), retval); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IUpdateServiceRegistration_get_IsPendingRegistrationWithAU(self: *const T, retval: ?*i16) HRESULT { return @as(*const IUpdateServiceRegistration.VTable, @ptrCast(self.vtable)).get_IsPendingRegistrationWithAU(@as(*const IUpdateServiceRegistration, @ptrCast(self)), retval); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IUpdateServiceRegistration_get_Service(self: *const T, retval: ?*?*IUpdateService2) HRESULT { return @as(*const IUpdateServiceRegistration.VTable, @ptrCast(self.vtable)).get_Service(@as(*const IUpdateServiceRegistration, @ptrCast(self)), retval); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows5.1.2600' const IID_IUpdateServiceManager_Value = Guid.initString("23857e3c-02ba-44a3-9423-b1c900805f37"); pub const IID_IUpdateServiceManager = &IID_IUpdateServiceManager_Value; pub const IUpdateServiceManager = extern struct { pub const VTable = extern struct { base: IDispatch.VTable, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Services: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IUpdateServiceManager, retval: ?*?*IUpdateServiceCollection, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IUpdateServiceManager, retval: ?*?*IUpdateServiceCollection, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, AddService: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IUpdateServiceManager, serviceID: ?BSTR, authorizationCabPath: ?BSTR, retval: ?*?*IUpdateService, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IUpdateServiceManager, serviceID: ?BSTR, authorizationCabPath: ?BSTR, retval: ?*?*IUpdateService, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, RegisterServiceWithAU: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IUpdateServiceManager, serviceID: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IUpdateServiceManager, serviceID: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, RemoveService: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IUpdateServiceManager, serviceID: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IUpdateServiceManager, serviceID: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, UnregisterServiceWithAU: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IUpdateServiceManager, serviceID: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IUpdateServiceManager, serviceID: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, AddScanPackageService: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IUpdateServiceManager, serviceName: ?BSTR, scanFileLocation: ?BSTR, flags: i32, ppService: ?*?*IUpdateService, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IUpdateServiceManager, serviceName: ?BSTR, scanFileLocation: ?BSTR, flags: i32, ppService: ?*?*IUpdateService, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetOption: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IUpdateServiceManager, optionName: ?BSTR, optionValue: VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IUpdateServiceManager, optionName: ?BSTR, optionValue: VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IDispatch.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IUpdateServiceManager_get_Services(self: *const T, retval: ?*?*IUpdateServiceCollection) HRESULT { return @as(*const IUpdateServiceManager.VTable, @ptrCast(self.vtable)).get_Services(@as(*const IUpdateServiceManager, @ptrCast(self)), retval); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IUpdateServiceManager_AddService(self: *const T, serviceID: ?BSTR, authorizationCabPath: ?BSTR, retval: ?*?*IUpdateService) HRESULT { return @as(*const IUpdateServiceManager.VTable, @ptrCast(self.vtable)).AddService(@as(*const IUpdateServiceManager, @ptrCast(self)), serviceID, authorizationCabPath, retval); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IUpdateServiceManager_RegisterServiceWithAU(self: *const T, serviceID: ?BSTR) HRESULT { return @as(*const IUpdateServiceManager.VTable, @ptrCast(self.vtable)).RegisterServiceWithAU(@as(*const IUpdateServiceManager, @ptrCast(self)), serviceID); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IUpdateServiceManager_RemoveService(self: *const T, serviceID: ?BSTR) HRESULT { return @as(*const IUpdateServiceManager.VTable, @ptrCast(self.vtable)).RemoveService(@as(*const IUpdateServiceManager, @ptrCast(self)), serviceID); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IUpdateServiceManager_UnregisterServiceWithAU(self: *const T, serviceID: ?BSTR) HRESULT { return @as(*const IUpdateServiceManager.VTable, @ptrCast(self.vtable)).UnregisterServiceWithAU(@as(*const IUpdateServiceManager, @ptrCast(self)), serviceID); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IUpdateServiceManager_AddScanPackageService(self: *const T, serviceName: ?BSTR, scanFileLocation: ?BSTR, flags: i32, ppService: ?*?*IUpdateService) HRESULT { return @as(*const IUpdateServiceManager.VTable, @ptrCast(self.vtable)).AddScanPackageService(@as(*const IUpdateServiceManager, @ptrCast(self)), serviceName, scanFileLocation, flags, ppService); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IUpdateServiceManager_SetOption(self: *const T, optionName: ?BSTR, optionValue: VARIANT) HRESULT { return @as(*const IUpdateServiceManager.VTable, @ptrCast(self.vtable)).SetOption(@as(*const IUpdateServiceManager, @ptrCast(self)), optionName, optionValue); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows5.1.2600' const IID_IUpdateServiceManager2_Value = Guid.initString("0bb8531d-7e8d-424f-986c-a0b8f60a3e7b"); pub const IID_IUpdateServiceManager2 = &IID_IUpdateServiceManager2_Value; pub const IUpdateServiceManager2 = extern struct { pub const VTable = extern struct { base: IUpdateServiceManager.VTable, // TODO: this function has a "SpecialName", should Zig do anything with this? get_ClientApplicationID: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IUpdateServiceManager2, retval: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IUpdateServiceManager2, retval: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_ClientApplicationID: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IUpdateServiceManager2, value: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IUpdateServiceManager2, value: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, QueryServiceRegistration: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IUpdateServiceManager2, serviceID: ?BSTR, retval: ?*?*IUpdateServiceRegistration, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IUpdateServiceManager2, serviceID: ?BSTR, retval: ?*?*IUpdateServiceRegistration, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, AddService2: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IUpdateServiceManager2, serviceID: ?BSTR, flags: i32, authorizationCabPath: ?BSTR, retval: ?*?*IUpdateServiceRegistration, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IUpdateServiceManager2, serviceID: ?BSTR, flags: i32, authorizationCabPath: ?BSTR, retval: ?*?*IUpdateServiceRegistration, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUpdateServiceManager.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IUpdateServiceManager2_get_ClientApplicationID(self: *const T, retval: ?*?BSTR) HRESULT { return @as(*const IUpdateServiceManager2.VTable, @ptrCast(self.vtable)).get_ClientApplicationID(@as(*const IUpdateServiceManager2, @ptrCast(self)), retval); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IUpdateServiceManager2_put_ClientApplicationID(self: *const T, value: ?BSTR) HRESULT { return @as(*const IUpdateServiceManager2.VTable, @ptrCast(self.vtable)).put_ClientApplicationID(@as(*const IUpdateServiceManager2, @ptrCast(self)), value); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IUpdateServiceManager2_QueryServiceRegistration(self: *const T, serviceID: ?BSTR, retval: ?*?*IUpdateServiceRegistration) HRESULT { return @as(*const IUpdateServiceManager2.VTable, @ptrCast(self.vtable)).QueryServiceRegistration(@as(*const IUpdateServiceManager2, @ptrCast(self)), serviceID, retval); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IUpdateServiceManager2_AddService2(self: *const T, serviceID: ?BSTR, flags: i32, authorizationCabPath: ?BSTR, retval: ?*?*IUpdateServiceRegistration) HRESULT { return @as(*const IUpdateServiceManager2.VTable, @ptrCast(self.vtable)).AddService2(@as(*const IUpdateServiceManager2, @ptrCast(self)), serviceID, flags, authorizationCabPath, retval); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows5.1.2600' const IID_IInstallationAgent_Value = Guid.initString("925cbc18-a2ea-4648-bf1c-ec8badcfe20a"); pub const IID_IInstallationAgent = &IID_IInstallationAgent_Value; pub const IInstallationAgent = extern struct { pub const VTable = extern struct { base: IDispatch.VTable, RecordInstallationResult: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IInstallationAgent, installationResultCookie: ?BSTR, hresult: i32, extendedReportingData: ?*IStringCollection, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IInstallationAgent, installationResultCookie: ?BSTR, hresult: i32, extendedReportingData: ?*IStringCollection, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IDispatch.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IInstallationAgent_RecordInstallationResult(self: *const T, installationResultCookie: ?BSTR, hresult: i32, extendedReportingData: ?*IStringCollection) HRESULT { return @as(*const IInstallationAgent.VTable, @ptrCast(self.vtable)).RecordInstallationResult(@as(*const IInstallationAgent, @ptrCast(self)), installationResultCookie, hresult, extendedReportingData); } }; } pub usingnamespace MethodMixin(@This()); }; pub const UpdateLockdownOption = enum(i32) { s = 1, }; pub const uloForWebsiteAccess = UpdateLockdownOption.s; pub const AddServiceFlag = enum(i32) { AllowPendingRegistration = 1, AllowOnlineRegistration = 2, RegisterServiceWithAU = 4, }; pub const asfAllowPendingRegistration = AddServiceFlag.AllowPendingRegistration; pub const asfAllowOnlineRegistration = AddServiceFlag.AllowOnlineRegistration; pub const asfRegisterServiceWithAU = AddServiceFlag.RegisterServiceWithAU; pub const UpdateServiceOption = enum(i32) { e = 1, }; pub const usoNonVolatileService = UpdateServiceOption.e; //-------------------------------------------------------------------------------- // Section: Functions (0) //-------------------------------------------------------------------------------- //-------------------------------------------------------------------------------- // Section: Unicode Aliases (0) //-------------------------------------------------------------------------------- const thismodule = @This(); pub usingnamespace switch (@import("../zig.zig").unicode_mode) { .ansi => struct {}, .wide => struct {}, .unspecified => if (@import("builtin").is_test) struct {} else struct {}, }; //-------------------------------------------------------------------------------- // Section: Imports (8) //-------------------------------------------------------------------------------- const Guid = @import("../zig.zig").Guid; const BSTR = @import("../foundation.zig").BSTR; const DECIMAL = @import("../foundation.zig").DECIMAL; const HRESULT = @import("../foundation.zig").HRESULT; const HWND = @import("../foundation.zig").HWND; const IDispatch = @import("../system/com.zig").IDispatch; const IUnknown = @import("../system/com.zig").IUnknown; const VARIANT = @import("../system/com.zig").VARIANT; test { @setEvalBranchQuota(comptime @import("std").meta.declarations(@This()).len * 3); // reference all the pub declarations if (!@import("builtin").is_test) return; inline for (comptime @import("std").meta.declarations(@This())) |decl| { if (decl.is_pub) { _ = @field(@This(), decl.name); } } }
0
repos/capy/vendor/zigwin32/win32
repos/capy/vendor/zigwin32/win32/system/virtual_dos_machines.zig
//! NOTE: this file is autogenerated, DO NOT MODIFY //-------------------------------------------------------------------------------- // Section: Constants (94) //-------------------------------------------------------------------------------- pub const VDMCONTEXT_i386 = @as(u32, 65536); pub const VDMCONTEXT_i486 = @as(u32, 65536); pub const VDM_KGDT_R3_CODE = @as(u32, 24); pub const VDM_MAXIMUM_SUPPORTED_EXTENSION = @as(u32, 512); pub const V86FLAGS_CARRY = @as(u32, 1); pub const V86FLAGS_PARITY = @as(u32, 4); pub const V86FLAGS_AUXCARRY = @as(u32, 16); pub const V86FLAGS_ZERO = @as(u32, 64); pub const V86FLAGS_SIGN = @as(u32, 128); pub const V86FLAGS_TRACE = @as(u32, 256); pub const V86FLAGS_INTERRUPT = @as(u32, 512); pub const V86FLAGS_DIRECTION = @as(u32, 1024); pub const V86FLAGS_OVERFLOW = @as(u32, 2048); pub const V86FLAGS_IOPL = @as(u32, 12288); pub const V86FLAGS_IOPL_BITS = @as(u32, 18); pub const V86FLAGS_RESUME = @as(u32, 65536); pub const V86FLAGS_V86 = @as(u32, 131072); pub const V86FLAGS_ALIGNMENT = @as(u32, 262144); pub const STATUS_VDM_EVENT = @as(i32, 1073741829); pub const DBG_SEGLOAD = @as(u32, 0); pub const DBG_SEGMOVE = @as(u32, 1); pub const DBG_SEGFREE = @as(u32, 2); pub const DBG_MODLOAD = @as(u32, 3); pub const DBG_MODFREE = @as(u32, 4); pub const DBG_SINGLESTEP = @as(u32, 5); pub const DBG_BREAK = @as(u32, 6); pub const DBG_GPFAULT = @as(u32, 7); pub const DBG_DIVOVERFLOW = @as(u32, 8); pub const DBG_INSTRFAULT = @as(u32, 9); pub const DBG_TASKSTART = @as(u32, 10); pub const DBG_TASKSTOP = @as(u32, 11); pub const DBG_DLLSTART = @as(u32, 12); pub const DBG_DLLSTOP = @as(u32, 13); pub const DBG_ATTACH = @as(u32, 14); pub const DBG_TOOLHELP = @as(u32, 15); pub const DBG_STACKFAULT = @as(u32, 16); pub const DBG_WOWINIT = @as(u32, 17); pub const DBG_TEMPBP = @as(u32, 18); pub const DBG_MODMOVE = @as(u32, 19); pub const DBG_INIT = @as(u32, 20); pub const DBG_GPFAULT2 = @as(u32, 21); pub const VDMEVENT_NEEDS_INTERACTIVE = @as(u32, 32768); pub const VDMEVENT_VERBOSE = @as(u32, 16384); pub const VDMEVENT_PE = @as(u32, 8192); pub const VDMEVENT_ALLFLAGS = @as(u32, 57344); pub const VDMEVENT_V86 = @as(u32, 1); pub const VDMEVENT_PM16 = @as(u32, 2); pub const MAX_MODULE_NAME = @as(u32, 9); pub const MAX_PATH16 = @as(u32, 255); pub const SN_CODE = @as(u32, 0); pub const SN_DATA = @as(u32, 1); pub const SN_V86 = @as(u32, 2); pub const GLOBAL_ALL = @as(u32, 0); pub const GLOBAL_LRU = @as(u32, 1); pub const GLOBAL_FREE = @as(u32, 2); pub const GT_UNKNOWN = @as(u32, 0); pub const GT_DGROUP = @as(u32, 1); pub const GT_DATA = @as(u32, 2); pub const GT_CODE = @as(u32, 3); pub const GT_TASK = @as(u32, 4); pub const GT_RESOURCE = @as(u32, 5); pub const GT_MODULE = @as(u32, 6); pub const GT_FREE = @as(u32, 7); pub const GT_INTERNAL = @as(u32, 8); pub const GT_SENTINEL = @as(u32, 9); pub const GT_BURGERMASTER = @as(u32, 10); pub const GD_USERDEFINED = @as(u32, 0); pub const GD_CURSORCOMPONENT = @as(u32, 1); pub const GD_BITMAP = @as(u32, 2); pub const GD_ICONCOMPONENT = @as(u32, 3); pub const GD_MENU = @as(u32, 4); pub const GD_DIALOG = @as(u32, 5); pub const GD_STRING = @as(u32, 6); pub const GD_FONTDIR = @as(u32, 7); pub const GD_FONT = @as(u32, 8); pub const GD_ACCELERATORS = @as(u32, 9); pub const GD_RCDATA = @as(u32, 10); pub const GD_ERRTABLE = @as(u32, 11); pub const GD_CURSOR = @as(u32, 12); pub const GD_ICON = @as(u32, 14); pub const GD_NAMETABLE = @as(u32, 15); pub const GD_MAX_RESOURCE = @as(u32, 15); pub const VDMDBG_BREAK_DOSTASK = @as(u32, 1); pub const VDMDBG_BREAK_WOWTASK = @as(u32, 2); pub const VDMDBG_BREAK_LOADDLL = @as(u32, 4); pub const VDMDBG_BREAK_EXCEPTIONS = @as(u32, 8); pub const VDMDBG_BREAK_DEBUGGER = @as(u32, 16); pub const VDMDBG_TRACE_HISTORY = @as(u32, 128); pub const VDMDBG_BREAK_DIVIDEBYZERO = @as(u32, 256); pub const VDMDBG_INITIAL_FLAGS = @as(u32, 256); pub const VDMDBG_MAX_SYMBOL_BUFFER = @as(u32, 256); pub const VDMADDR_V86 = @as(u32, 2); pub const VDMADDR_PM16 = @as(u32, 4); pub const VDMADDR_PM32 = @as(u32, 16); //-------------------------------------------------------------------------------- // Section: Types (41) //-------------------------------------------------------------------------------- pub const VDMCONTEXT_WITHOUT_XSAVE = extern struct { ContextFlags: u32, Dr0: u32, Dr1: u32, Dr2: u32, Dr3: u32, Dr6: u32, Dr7: u32, FloatSave: FLOATING_SAVE_AREA, SegGs: u32, SegFs: u32, SegEs: u32, SegDs: u32, Edi: u32, Esi: u32, Ebx: u32, Edx: u32, Ecx: u32, Eax: u32, Ebp: u32, Eip: u32, SegCs: u32, EFlags: u32, Esp: u32, SegSs: u32, }; pub const SEGMENT_NOTE = extern struct { Selector1: u16, Selector2: u16, Segment: u16, Module: [10]CHAR, FileName: [256]CHAR, Type: u16, Length: u32, }; pub const IMAGE_NOTE = extern struct { Module: [10]CHAR, FileName: [256]CHAR, hModule: u16, hTask: u16, }; pub const MODULEENTRY = extern struct { dwSize: u32 align(4), szModule: [10]CHAR align(4), hModule: ?HANDLE align(4), wcUsage: u16 align(4), szExePath: [256]CHAR align(4), wNext: u16 align(4), }; pub const TEMP_BP_NOTE = extern struct { Seg: u16, Offset: u32, bPM: BOOL, }; pub const VDM_SEGINFO = extern struct { Selector: u16, SegNumber: u16, Length: u32, Type: u16, ModuleName: [9]CHAR, FileName: [255]CHAR, }; pub const GLOBALENTRY = extern struct { dwSize: u32 align(4), dwAddress: u32 align(4), dwBlockSize: u32 align(4), hBlock: ?HANDLE align(4), wcLock: u16 align(4), wcPageLock: u16 align(4), wFlags: u16 align(4), wHeapPresent: BOOL align(4), hOwner: ?HANDLE align(4), wType: u16 align(4), wData: u16 align(4), dwNext: u32 align(4), dwNextAlt: u32 align(4), }; pub const DEBUGEVENTPROC = switch (@import("builtin").zig_backend) { .stage1 => fn ( param0: ?*DEBUG_EVENT, param1: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) u32, else => *const fn ( param0: ?*DEBUG_EVENT, param1: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) u32, }; pub const PROCESSENUMPROC = switch (@import("builtin").zig_backend) { .stage1 => fn ( dwProcessId: u32, dwAttributes: u32, lpUserDefined: LPARAM, ) callconv(@import("std").os.windows.WINAPI) BOOL, else => *const fn ( dwProcessId: u32, dwAttributes: u32, lpUserDefined: LPARAM, ) callconv(@import("std").os.windows.WINAPI) BOOL, }; pub const TASKENUMPROC = switch (@import("builtin").zig_backend) { .stage1 => fn ( dwThreadId: u32, hMod16: u16, hTask16: u16, lpUserDefined: LPARAM, ) callconv(@import("std").os.windows.WINAPI) BOOL, else => *const fn ( dwThreadId: u32, hMod16: u16, hTask16: u16, lpUserDefined: LPARAM, ) callconv(@import("std").os.windows.WINAPI) BOOL, }; pub const TASKENUMPROCEX = switch (@import("builtin").zig_backend) { .stage1 => fn ( dwThreadId: u32, hMod16: u16, hTask16: u16, pszModName: ?*i8, pszFileName: ?*i8, lpUserDefined: LPARAM, ) callconv(@import("std").os.windows.WINAPI) BOOL, else => *const fn ( dwThreadId: u32, hMod16: u16, hTask16: u16, pszModName: ?*i8, pszFileName: ?*i8, lpUserDefined: LPARAM, ) callconv(@import("std").os.windows.WINAPI) BOOL, }; pub const VDMPROCESSEXCEPTIONPROC = switch (@import("builtin").zig_backend) { .stage1 => fn ( param0: ?*DEBUG_EVENT, ) callconv(@import("std").os.windows.WINAPI) BOOL, else => *const fn ( param0: ?*DEBUG_EVENT, ) callconv(@import("std").os.windows.WINAPI) BOOL, }; pub const VDMGETPOINTERPROC = switch (@import("builtin").zig_backend) { .stage1 => fn ( param0: ?HANDLE, param1: ?HANDLE, param2: u16, param3: u32, param4: BOOL, ) callconv(@import("std").os.windows.WINAPI) u32, else => *const fn ( param0: ?HANDLE, param1: ?HANDLE, param2: u16, param3: u32, param4: BOOL, ) callconv(@import("std").os.windows.WINAPI) u32, }; pub const VDMKILLWOWPROC = switch (@import("builtin").zig_backend) { .stage1 => fn () callconv(@import("std").os.windows.WINAPI) BOOL, else => *const fn () callconv(@import("std").os.windows.WINAPI) BOOL, }; pub const VDMDETECTWOWPROC = switch (@import("builtin").zig_backend) { .stage1 => fn () callconv(@import("std").os.windows.WINAPI) BOOL, else => *const fn () callconv(@import("std").os.windows.WINAPI) BOOL, }; pub const VDMBREAKTHREADPROC = switch (@import("builtin").zig_backend) { .stage1 => fn ( param0: ?HANDLE, ) callconv(@import("std").os.windows.WINAPI) BOOL, else => *const fn ( param0: ?HANDLE, ) callconv(@import("std").os.windows.WINAPI) BOOL, }; pub const VDMGETSELECTORMODULEPROC = switch (@import("builtin").zig_backend) { .stage1 => fn ( param0: ?HANDLE, param1: ?HANDLE, param2: u16, param3: ?*u32, param4: ?PSTR, param5: u32, param6: ?PSTR, param7: u32, ) callconv(@import("std").os.windows.WINAPI) BOOL, else => *const fn ( param0: ?HANDLE, param1: ?HANDLE, param2: u16, param3: ?*u32, param4: ?PSTR, param5: u32, param6: ?PSTR, param7: u32, ) callconv(@import("std").os.windows.WINAPI) BOOL, }; pub const VDMGETMODULESELECTORPROC = switch (@import("builtin").zig_backend) { .stage1 => fn ( param0: ?HANDLE, param1: ?HANDLE, param2: u32, param3: ?PSTR, param4: ?*u16, ) callconv(@import("std").os.windows.WINAPI) BOOL, else => *const fn ( param0: ?HANDLE, param1: ?HANDLE, param2: u32, param3: ?PSTR, param4: ?*u16, ) callconv(@import("std").os.windows.WINAPI) BOOL, }; pub const VDMMODULEFIRSTPROC = switch (@import("builtin").zig_backend) { .stage1 => fn ( param0: ?HANDLE, param1: ?HANDLE, param2: ?*MODULEENTRY, param3: ?DEBUGEVENTPROC, param4: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) BOOL, else => *const fn ( param0: ?HANDLE, param1: ?HANDLE, param2: ?*MODULEENTRY, param3: ?DEBUGEVENTPROC, param4: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) BOOL, }; pub const VDMMODULENEXTPROC = switch (@import("builtin").zig_backend) { .stage1 => fn ( param0: ?HANDLE, param1: ?HANDLE, param2: ?*MODULEENTRY, param3: ?DEBUGEVENTPROC, param4: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) BOOL, else => *const fn ( param0: ?HANDLE, param1: ?HANDLE, param2: ?*MODULEENTRY, param3: ?DEBUGEVENTPROC, param4: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) BOOL, }; pub const VDMGLOBALFIRSTPROC = switch (@import("builtin").zig_backend) { .stage1 => fn ( param0: ?HANDLE, param1: ?HANDLE, param2: ?*GLOBALENTRY, param3: u16, param4: ?DEBUGEVENTPROC, param5: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) BOOL, else => *const fn ( param0: ?HANDLE, param1: ?HANDLE, param2: ?*GLOBALENTRY, param3: u16, param4: ?DEBUGEVENTPROC, param5: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) BOOL, }; pub const VDMGLOBALNEXTPROC = switch (@import("builtin").zig_backend) { .stage1 => fn ( param0: ?HANDLE, param1: ?HANDLE, param2: ?*GLOBALENTRY, param3: u16, param4: ?DEBUGEVENTPROC, param5: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) BOOL, else => *const fn ( param0: ?HANDLE, param1: ?HANDLE, param2: ?*GLOBALENTRY, param3: u16, param4: ?DEBUGEVENTPROC, param5: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) BOOL, }; pub const VDMENUMPROCESSWOWPROC = switch (@import("builtin").zig_backend) { .stage1 => fn ( param0: ?PROCESSENUMPROC, param1: LPARAM, ) callconv(@import("std").os.windows.WINAPI) i32, else => *const fn ( param0: ?PROCESSENUMPROC, param1: LPARAM, ) callconv(@import("std").os.windows.WINAPI) i32, }; pub const VDMENUMTASKWOWPROC = switch (@import("builtin").zig_backend) { .stage1 => fn ( param0: u32, param1: ?TASKENUMPROC, param2: LPARAM, ) callconv(@import("std").os.windows.WINAPI) i32, else => *const fn ( param0: u32, param1: ?TASKENUMPROC, param2: LPARAM, ) callconv(@import("std").os.windows.WINAPI) i32, }; pub const VDMENUMTASKWOWEXPROC = switch (@import("builtin").zig_backend) { .stage1 => fn ( param0: u32, param1: ?TASKENUMPROCEX, param2: LPARAM, ) callconv(@import("std").os.windows.WINAPI) i32, else => *const fn ( param0: u32, param1: ?TASKENUMPROCEX, param2: LPARAM, ) callconv(@import("std").os.windows.WINAPI) i32, }; pub const VDMTERMINATETASKINWOWPROC = switch (@import("builtin").zig_backend) { .stage1 => fn ( param0: u32, param1: u16, ) callconv(@import("std").os.windows.WINAPI) BOOL, else => *const fn ( param0: u32, param1: u16, ) callconv(@import("std").os.windows.WINAPI) BOOL, }; pub const VDMSTARTTASKINWOWPROC = switch (@import("builtin").zig_backend) { .stage1 => fn ( param0: u32, param1: ?PSTR, param2: u16, ) callconv(@import("std").os.windows.WINAPI) BOOL, else => *const fn ( param0: u32, param1: ?PSTR, param2: u16, ) callconv(@import("std").os.windows.WINAPI) BOOL, }; pub const VDMGETDBGFLAGSPROC = switch (@import("builtin").zig_backend) { .stage1 => fn ( param0: ?HANDLE, ) callconv(@import("std").os.windows.WINAPI) u32, else => *const fn ( param0: ?HANDLE, ) callconv(@import("std").os.windows.WINAPI) u32, }; pub const VDMSETDBGFLAGSPROC = switch (@import("builtin").zig_backend) { .stage1 => fn ( param0: ?HANDLE, param1: u32, ) callconv(@import("std").os.windows.WINAPI) BOOL, else => *const fn ( param0: ?HANDLE, param1: u32, ) callconv(@import("std").os.windows.WINAPI) BOOL, }; pub const VDMISMODULELOADEDPROC = switch (@import("builtin").zig_backend) { .stage1 => fn ( param0: ?PSTR, ) callconv(@import("std").os.windows.WINAPI) BOOL, else => *const fn ( param0: ?PSTR, ) callconv(@import("std").os.windows.WINAPI) BOOL, }; pub const VDMGETSEGMENTINFOPROC = switch (@import("builtin").zig_backend) { .stage1 => fn ( param0: u16, param1: u32, param2: BOOL, param3: VDM_SEGINFO, ) callconv(@import("std").os.windows.WINAPI) BOOL, else => *const fn ( param0: u16, param1: u32, param2: BOOL, param3: VDM_SEGINFO, ) callconv(@import("std").os.windows.WINAPI) BOOL, }; pub const VDMGETSYMBOLPROC = switch (@import("builtin").zig_backend) { .stage1 => fn ( param0: ?PSTR, param1: u16, param2: u32, param3: BOOL, param4: BOOL, param5: *[256]u8, param6: ?*u32, ) callconv(@import("std").os.windows.WINAPI) BOOL, else => *const fn ( param0: ?PSTR, param1: u16, param2: u32, param3: BOOL, param4: BOOL, param5: *[256]u8, param6: ?*u32, ) callconv(@import("std").os.windows.WINAPI) BOOL, }; pub const VDMGETADDREXPRESSIONPROC = switch (@import("builtin").zig_backend) { .stage1 => fn ( param0: ?PSTR, param1: ?PSTR, param2: ?*u16, param3: ?*u32, param4: ?*u16, ) callconv(@import("std").os.windows.WINAPI) BOOL, else => *const fn ( param0: ?PSTR, param1: ?PSTR, param2: ?*u16, param3: ?*u32, param4: ?*u16, ) callconv(@import("std").os.windows.WINAPI) BOOL, }; pub const VDMCONTEXT = switch (@import("../zig.zig").arch) { .X64, .Arm64 => extern struct { ContextFlags: u32, Dr0: u32, Dr1: u32, Dr2: u32, Dr3: u32, Dr6: u32, Dr7: u32, FloatSave: FLOATING_SAVE_AREA, SegGs: u32, SegFs: u32, SegEs: u32, SegDs: u32, Edi: u32, Esi: u32, Ebx: u32, Edx: u32, Ecx: u32, Eax: u32, Ebp: u32, Eip: u32, SegCs: u32, EFlags: u32, Esp: u32, SegSs: u32, ExtendedRegisters: [512]u8, }, else => usize, // NOTE: this should be a @compileError but can't because of https://github.com/ziglang/zig/issues/9682 }; pub const VDMLDT_ENTRY = switch (@import("../zig.zig").arch) { .X64, .Arm64 => extern struct { LimitLow: u16, BaseLow: u16, HighWord: extern union { Bytes: extern struct { BaseMid: u8, Flags1: u8, Flags2: u8, BaseHi: u8, }, Bits: extern struct { _bitfield: u32, }, }, }, else => usize, // NOTE: this should be a @compileError but can't because of https://github.com/ziglang/zig/issues/9682 }; pub const VDMGETTHREADSELECTORENTRYPROC = switch (@import("../zig.zig").arch) { .X64, .Arm64 => switch (@import("builtin").zig_backend) { .stage1 => fn ( param0: ?HANDLE, param1: ?HANDLE, param2: u32, param3: ?*VDMLDT_ENTRY, ) callconv(@import("std").os.windows.WINAPI) BOOL, else => *const fn ( param0: ?HANDLE, param1: ?HANDLE, param2: u32, param3: ?*VDMLDT_ENTRY, ) callconv(@import("std").os.windows.WINAPI) BOOL, }, .X86 => switch (@import("builtin").zig_backend) { .stage1 => fn ( param0: ?HANDLE, param1: ?HANDLE, param2: u32, param3: ?*LDT_ENTRY, ) callconv(@import("std").os.windows.WINAPI) BOOL, else => *const fn ( param0: ?HANDLE, param1: ?HANDLE, param2: u32, param3: ?*LDT_ENTRY, ) callconv(@import("std").os.windows.WINAPI) BOOL, }, }; pub const VDMGETCONTEXTPROC = switch (@import("../zig.zig").arch) { .X64, .Arm64 => switch (@import("builtin").zig_backend) { .stage1 => fn ( param0: ?HANDLE, param1: ?HANDLE, param2: ?*VDMCONTEXT, ) callconv(@import("std").os.windows.WINAPI) BOOL, else => *const fn ( param0: ?HANDLE, param1: ?HANDLE, param2: ?*VDMCONTEXT, ) callconv(@import("std").os.windows.WINAPI) BOOL, }, .X86 => switch (@import("builtin").zig_backend) { .stage1 => fn ( param0: ?HANDLE, param1: ?HANDLE, param2: ?*CONTEXT, ) callconv(@import("std").os.windows.WINAPI) BOOL, else => *const fn ( param0: ?HANDLE, param1: ?HANDLE, param2: ?*CONTEXT, ) callconv(@import("std").os.windows.WINAPI) BOOL, }, }; pub const VDMSETCONTEXTPROC = switch (@import("../zig.zig").arch) { .X64, .Arm64 => switch (@import("builtin").zig_backend) { .stage1 => fn ( param0: ?HANDLE, param1: ?HANDLE, param2: ?*VDMCONTEXT, ) callconv(@import("std").os.windows.WINAPI) BOOL, else => *const fn ( param0: ?HANDLE, param1: ?HANDLE, param2: ?*VDMCONTEXT, ) callconv(@import("std").os.windows.WINAPI) BOOL, }, .X86 => switch (@import("builtin").zig_backend) { .stage1 => fn ( param0: ?HANDLE, param1: ?HANDLE, param2: ?*CONTEXT, ) callconv(@import("std").os.windows.WINAPI) BOOL, else => *const fn ( param0: ?HANDLE, param1: ?HANDLE, param2: ?*CONTEXT, ) callconv(@import("std").os.windows.WINAPI) BOOL, }, }; //-------------------------------------------------------------------------------- // Section: Functions (0) //-------------------------------------------------------------------------------- //-------------------------------------------------------------------------------- // Section: Unicode Aliases (0) //-------------------------------------------------------------------------------- const thismodule = @This(); pub usingnamespace switch (@import("../zig.zig").unicode_mode) { .ansi => struct {}, .wide => struct {}, .unspecified => if (@import("builtin").is_test) struct {} else struct {}, }; //-------------------------------------------------------------------------------- // Section: Imports (9) //-------------------------------------------------------------------------------- const BOOL = @import("../foundation.zig").BOOL; const CHAR = @import("../foundation.zig").CHAR; const DEBUG_EVENT = @import("../system/diagnostics/debug.zig").DEBUG_EVENT; const FLOATING_SAVE_AREA = @import("../system/kernel.zig").FLOATING_SAVE_AREA; const HANDLE = @import("../foundation.zig").HANDLE; const LPARAM = @import("../foundation.zig").LPARAM; const PSTR = @import("../foundation.zig").PSTR; // 2 arch-specific imports const CONTEXT = switch (@import("../zig.zig").arch) { .X86 => @import("../system/diagnostics/debug.zig").CONTEXT, else => usize, // NOTE: this should be a @compileError but can't because of https://github.com/ziglang/zig/issues/9682 }; const LDT_ENTRY = switch (@import("../zig.zig").arch) { .X86 => @import("../system/diagnostics/debug.zig").LDT_ENTRY, else => usize, // NOTE: this should be a @compileError but can't because of https://github.com/ziglang/zig/issues/9682 }; test { // The following '_ = <FuncPtrType>' lines are a workaround for https://github.com/ziglang/zig/issues/4476 if (@hasDecl(@This(), "DEBUGEVENTPROC")) { _ = DEBUGEVENTPROC; } if (@hasDecl(@This(), "PROCESSENUMPROC")) { _ = PROCESSENUMPROC; } if (@hasDecl(@This(), "TASKENUMPROC")) { _ = TASKENUMPROC; } if (@hasDecl(@This(), "TASKENUMPROCEX")) { _ = TASKENUMPROCEX; } if (@hasDecl(@This(), "VDMPROCESSEXCEPTIONPROC")) { _ = VDMPROCESSEXCEPTIONPROC; } if (@hasDecl(@This(), "VDMGETPOINTERPROC")) { _ = VDMGETPOINTERPROC; } if (@hasDecl(@This(), "VDMKILLWOWPROC")) { _ = VDMKILLWOWPROC; } if (@hasDecl(@This(), "VDMDETECTWOWPROC")) { _ = VDMDETECTWOWPROC; } if (@hasDecl(@This(), "VDMBREAKTHREADPROC")) { _ = VDMBREAKTHREADPROC; } if (@hasDecl(@This(), "VDMGETSELECTORMODULEPROC")) { _ = VDMGETSELECTORMODULEPROC; } if (@hasDecl(@This(), "VDMGETMODULESELECTORPROC")) { _ = VDMGETMODULESELECTORPROC; } if (@hasDecl(@This(), "VDMMODULEFIRSTPROC")) { _ = VDMMODULEFIRSTPROC; } if (@hasDecl(@This(), "VDMMODULENEXTPROC")) { _ = VDMMODULENEXTPROC; } if (@hasDecl(@This(), "VDMGLOBALFIRSTPROC")) { _ = VDMGLOBALFIRSTPROC; } if (@hasDecl(@This(), "VDMGLOBALNEXTPROC")) { _ = VDMGLOBALNEXTPROC; } if (@hasDecl(@This(), "VDMENUMPROCESSWOWPROC")) { _ = VDMENUMPROCESSWOWPROC; } if (@hasDecl(@This(), "VDMENUMTASKWOWPROC")) { _ = VDMENUMTASKWOWPROC; } if (@hasDecl(@This(), "VDMENUMTASKWOWEXPROC")) { _ = VDMENUMTASKWOWEXPROC; } if (@hasDecl(@This(), "VDMTERMINATETASKINWOWPROC")) { _ = VDMTERMINATETASKINWOWPROC; } if (@hasDecl(@This(), "VDMSTARTTASKINWOWPROC")) { _ = VDMSTARTTASKINWOWPROC; } if (@hasDecl(@This(), "VDMGETDBGFLAGSPROC")) { _ = VDMGETDBGFLAGSPROC; } if (@hasDecl(@This(), "VDMSETDBGFLAGSPROC")) { _ = VDMSETDBGFLAGSPROC; } if (@hasDecl(@This(), "VDMISMODULELOADEDPROC")) { _ = VDMISMODULELOADEDPROC; } if (@hasDecl(@This(), "VDMGETSEGMENTINFOPROC")) { _ = VDMGETSEGMENTINFOPROC; } if (@hasDecl(@This(), "VDMGETSYMBOLPROC")) { _ = VDMGETSYMBOLPROC; } if (@hasDecl(@This(), "VDMGETADDREXPRESSIONPROC")) { _ = VDMGETADDREXPRESSIONPROC; } if (@hasDecl(@This(), "VDMGETTHREADSELECTORENTRYPROC")) { _ = VDMGETTHREADSELECTORENTRYPROC; } if (@hasDecl(@This(), "VDMGETTHREADSELECTORENTRYPROC")) { _ = VDMGETTHREADSELECTORENTRYPROC; } if (@hasDecl(@This(), "VDMGETCONTEXTPROC")) { _ = VDMGETCONTEXTPROC; } if (@hasDecl(@This(), "VDMGETCONTEXTPROC")) { _ = VDMGETCONTEXTPROC; } if (@hasDecl(@This(), "VDMSETCONTEXTPROC")) { _ = VDMSETCONTEXTPROC; } if (@hasDecl(@This(), "VDMSETCONTEXTPROC")) { _ = VDMSETCONTEXTPROC; } @setEvalBranchQuota(comptime @import("std").meta.declarations(@This()).len * 3); // reference all the pub declarations if (!@import("builtin").is_test) return; inline for (comptime @import("std").meta.declarations(@This())) |decl| { if (decl.is_pub) { _ = @field(@This(), decl.name); } } }
0
repos/capy/vendor/zigwin32/win32
repos/capy/vendor/zigwin32/win32/system/sql_lite.zig
//! NOTE: this file is autogenerated, DO NOT MODIFY //-------------------------------------------------------------------------------- // Section: Constants (383) //-------------------------------------------------------------------------------- pub const SQLITE_VERSION_NUMBER = @as(u32, 3029000); pub const SQLITE_OK = @as(u32, 0); pub const SQLITE_ERROR = @as(u32, 1); pub const SQLITE_INTERNAL = @as(u32, 2); pub const SQLITE_PERM = @as(u32, 3); pub const SQLITE_ABORT = @as(u32, 4); pub const SQLITE_BUSY = @as(u32, 5); pub const SQLITE_LOCKED = @as(u32, 6); pub const SQLITE_NOMEM = @as(u32, 7); pub const SQLITE_READONLY = @as(u32, 8); pub const SQLITE_INTERRUPT = @as(u32, 9); pub const SQLITE_IOERR = @as(u32, 10); pub const SQLITE_CORRUPT = @as(u32, 11); pub const SQLITE_NOTFOUND = @as(u32, 12); pub const SQLITE_FULL = @as(u32, 13); pub const SQLITE_CANTOPEN = @as(u32, 14); pub const SQLITE_PROTOCOL = @as(u32, 15); pub const SQLITE_EMPTY = @as(u32, 16); pub const SQLITE_SCHEMA = @as(u32, 17); pub const SQLITE_TOOBIG = @as(u32, 18); pub const SQLITE_CONSTRAINT = @as(u32, 19); pub const SQLITE_MISMATCH = @as(u32, 20); pub const SQLITE_MISUSE = @as(u32, 21); pub const SQLITE_NOLFS = @as(u32, 22); pub const SQLITE_AUTH = @as(u32, 23); pub const SQLITE_FORMAT = @as(u32, 24); pub const SQLITE_RANGE = @as(u32, 25); pub const SQLITE_NOTADB = @as(u32, 26); pub const SQLITE_NOTICE = @as(u32, 27); pub const SQLITE_WARNING = @as(u32, 28); pub const SQLITE_ROW = @as(u32, 100); pub const SQLITE_DONE = @as(u32, 101); pub const SQLITE_OPEN_READONLY = @as(u32, 1); pub const SQLITE_OPEN_READWRITE = @as(u32, 2); pub const SQLITE_OPEN_CREATE = @as(u32, 4); pub const SQLITE_OPEN_DELETEONCLOSE = @as(u32, 8); pub const SQLITE_OPEN_EXCLUSIVE = @as(u32, 16); pub const SQLITE_OPEN_AUTOPROXY = @as(u32, 32); pub const SQLITE_OPEN_URI = @as(u32, 64); pub const SQLITE_OPEN_MEMORY = @as(u32, 128); pub const SQLITE_OPEN_MAIN_DB = @as(u32, 256); pub const SQLITE_OPEN_TEMP_DB = @as(u32, 512); pub const SQLITE_OPEN_TRANSIENT_DB = @as(u32, 1024); pub const SQLITE_OPEN_MAIN_JOURNAL = @as(u32, 2048); pub const SQLITE_OPEN_TEMP_JOURNAL = @as(u32, 4096); pub const SQLITE_OPEN_SUBJOURNAL = @as(u32, 8192); pub const SQLITE_OPEN_SUPER_JOURNAL = @as(u32, 16384); pub const SQLITE_OPEN_NOMUTEX = @as(u32, 32768); pub const SQLITE_OPEN_FULLMUTEX = @as(u32, 65536); pub const SQLITE_OPEN_SHAREDCACHE = @as(u32, 131072); pub const SQLITE_OPEN_PRIVATECACHE = @as(u32, 262144); pub const SQLITE_OPEN_WAL = @as(u32, 524288); pub const SQLITE_OPEN_NOFOLLOW = @as(u32, 16777216); pub const SQLITE_OPEN_MASTER_JOURNAL = @as(u32, 16384); pub const SQLITE_IOCAP_ATOMIC = @as(u32, 1); pub const SQLITE_IOCAP_ATOMIC512 = @as(u32, 2); pub const SQLITE_IOCAP_ATOMIC1K = @as(u32, 4); pub const SQLITE_IOCAP_ATOMIC2K = @as(u32, 8); pub const SQLITE_IOCAP_ATOMIC4K = @as(u32, 16); pub const SQLITE_IOCAP_ATOMIC8K = @as(u32, 32); pub const SQLITE_IOCAP_ATOMIC16K = @as(u32, 64); pub const SQLITE_IOCAP_ATOMIC32K = @as(u32, 128); pub const SQLITE_IOCAP_ATOMIC64K = @as(u32, 256); pub const SQLITE_IOCAP_SAFE_APPEND = @as(u32, 512); pub const SQLITE_IOCAP_SEQUENTIAL = @as(u32, 1024); pub const SQLITE_IOCAP_UNDELETABLE_WHEN_OPEN = @as(u32, 2048); pub const SQLITE_IOCAP_POWERSAFE_OVERWRITE = @as(u32, 4096); pub const SQLITE_IOCAP_IMMUTABLE = @as(u32, 8192); pub const SQLITE_IOCAP_BATCH_ATOMIC = @as(u32, 16384); pub const SQLITE_LOCK_NONE = @as(u32, 0); pub const SQLITE_LOCK_SHARED = @as(u32, 1); pub const SQLITE_LOCK_RESERVED = @as(u32, 2); pub const SQLITE_LOCK_PENDING = @as(u32, 3); pub const SQLITE_LOCK_EXCLUSIVE = @as(u32, 4); pub const SQLITE_SYNC_NORMAL = @as(u32, 2); pub const SQLITE_SYNC_FULL = @as(u32, 3); pub const SQLITE_SYNC_DATAONLY = @as(u32, 16); pub const SQLITE_FCNTL_LOCKSTATE = @as(u32, 1); pub const SQLITE_FCNTL_GET_LOCKPROXYFILE = @as(u32, 2); pub const SQLITE_FCNTL_SET_LOCKPROXYFILE = @as(u32, 3); pub const SQLITE_FCNTL_LAST_ERRNO = @as(u32, 4); pub const SQLITE_FCNTL_SIZE_HINT = @as(u32, 5); pub const SQLITE_FCNTL_CHUNK_SIZE = @as(u32, 6); pub const SQLITE_FCNTL_FILE_POINTER = @as(u32, 7); pub const SQLITE_FCNTL_SYNC_OMITTED = @as(u32, 8); pub const SQLITE_FCNTL_WIN32_AV_RETRY = @as(u32, 9); pub const SQLITE_FCNTL_PERSIST_WAL = @as(u32, 10); pub const SQLITE_FCNTL_OVERWRITE = @as(u32, 11); pub const SQLITE_FCNTL_VFSNAME = @as(u32, 12); pub const SQLITE_FCNTL_POWERSAFE_OVERWRITE = @as(u32, 13); pub const SQLITE_FCNTL_PRAGMA = @as(u32, 14); pub const SQLITE_FCNTL_BUSYHANDLER = @as(u32, 15); pub const SQLITE_FCNTL_TEMPFILENAME = @as(u32, 16); pub const SQLITE_FCNTL_MMAP_SIZE = @as(u32, 18); pub const SQLITE_FCNTL_TRACE = @as(u32, 19); pub const SQLITE_FCNTL_HAS_MOVED = @as(u32, 20); pub const SQLITE_FCNTL_SYNC = @as(u32, 21); pub const SQLITE_FCNTL_COMMIT_PHASETWO = @as(u32, 22); pub const SQLITE_FCNTL_WIN32_SET_HANDLE = @as(u32, 23); pub const SQLITE_FCNTL_WAL_BLOCK = @as(u32, 24); pub const SQLITE_FCNTL_ZIPVFS = @as(u32, 25); pub const SQLITE_FCNTL_RBU = @as(u32, 26); pub const SQLITE_FCNTL_VFS_POINTER = @as(u32, 27); pub const SQLITE_FCNTL_JOURNAL_POINTER = @as(u32, 28); pub const SQLITE_FCNTL_WIN32_GET_HANDLE = @as(u32, 29); pub const SQLITE_FCNTL_PDB = @as(u32, 30); pub const SQLITE_FCNTL_BEGIN_ATOMIC_WRITE = @as(u32, 31); pub const SQLITE_FCNTL_COMMIT_ATOMIC_WRITE = @as(u32, 32); pub const SQLITE_FCNTL_ROLLBACK_ATOMIC_WRITE = @as(u32, 33); pub const SQLITE_FCNTL_LOCK_TIMEOUT = @as(u32, 34); pub const SQLITE_FCNTL_DATA_VERSION = @as(u32, 35); pub const SQLITE_FCNTL_SIZE_LIMIT = @as(u32, 36); pub const SQLITE_FCNTL_CKPT_DONE = @as(u32, 37); pub const SQLITE_FCNTL_RESERVE_BYTES = @as(u32, 38); pub const SQLITE_FCNTL_CKPT_START = @as(u32, 39); pub const SQLITE_GET_LOCKPROXYFILE = @as(u32, 2); pub const SQLITE_SET_LOCKPROXYFILE = @as(u32, 3); pub const SQLITE_LAST_ERRNO = @as(u32, 4); pub const SQLITE_ACCESS_EXISTS = @as(u32, 0); pub const SQLITE_ACCESS_READWRITE = @as(u32, 1); pub const SQLITE_ACCESS_READ = @as(u32, 2); pub const SQLITE_SHM_UNLOCK = @as(u32, 1); pub const SQLITE_SHM_LOCK = @as(u32, 2); pub const SQLITE_SHM_SHARED = @as(u32, 4); pub const SQLITE_SHM_EXCLUSIVE = @as(u32, 8); pub const SQLITE_SHM_NLOCK = @as(u32, 8); pub const SQLITE_CONFIG_SINGLETHREAD = @as(u32, 1); pub const SQLITE_CONFIG_MULTITHREAD = @as(u32, 2); pub const SQLITE_CONFIG_SERIALIZED = @as(u32, 3); pub const SQLITE_CONFIG_MALLOC = @as(u32, 4); pub const SQLITE_CONFIG_GETMALLOC = @as(u32, 5); pub const SQLITE_CONFIG_SCRATCH = @as(u32, 6); pub const SQLITE_CONFIG_PAGECACHE = @as(u32, 7); pub const SQLITE_CONFIG_HEAP = @as(u32, 8); pub const SQLITE_CONFIG_MEMSTATUS = @as(u32, 9); pub const SQLITE_CONFIG_MUTEX = @as(u32, 10); pub const SQLITE_CONFIG_GETMUTEX = @as(u32, 11); pub const SQLITE_CONFIG_LOOKASIDE = @as(u32, 13); pub const SQLITE_CONFIG_PCACHE = @as(u32, 14); pub const SQLITE_CONFIG_GETPCACHE = @as(u32, 15); pub const SQLITE_CONFIG_LOG = @as(u32, 16); pub const SQLITE_CONFIG_URI = @as(u32, 17); pub const SQLITE_CONFIG_PCACHE2 = @as(u32, 18); pub const SQLITE_CONFIG_GETPCACHE2 = @as(u32, 19); pub const SQLITE_CONFIG_COVERING_INDEX_SCAN = @as(u32, 20); pub const SQLITE_CONFIG_SQLLOG = @as(u32, 21); pub const SQLITE_CONFIG_MMAP_SIZE = @as(u32, 22); pub const SQLITE_CONFIG_WIN32_HEAPSIZE = @as(u32, 23); pub const SQLITE_CONFIG_PCACHE_HDRSZ = @as(u32, 24); pub const SQLITE_CONFIG_PMASZ = @as(u32, 25); pub const SQLITE_CONFIG_STMTJRNL_SPILL = @as(u32, 26); pub const SQLITE_CONFIG_SMALL_MALLOC = @as(u32, 27); pub const SQLITE_CONFIG_SORTERREF_SIZE = @as(u32, 28); pub const SQLITE_CONFIG_MEMDB_MAXSIZE = @as(u32, 29); pub const SQLITE_DBCONFIG_MAINDBNAME = @as(u32, 1000); pub const SQLITE_DBCONFIG_LOOKASIDE = @as(u32, 1001); pub const SQLITE_DBCONFIG_ENABLE_FKEY = @as(u32, 1002); pub const SQLITE_DBCONFIG_ENABLE_TRIGGER = @as(u32, 1003); pub const SQLITE_DBCONFIG_ENABLE_FTS3_TOKENIZER = @as(u32, 1004); pub const SQLITE_DBCONFIG_ENABLE_LOAD_EXTENSION = @as(u32, 1005); pub const SQLITE_DBCONFIG_NO_CKPT_ON_CLOSE = @as(u32, 1006); pub const SQLITE_DBCONFIG_ENABLE_QPSG = @as(u32, 1007); pub const SQLITE_DBCONFIG_TRIGGER_EQP = @as(u32, 1008); pub const SQLITE_DBCONFIG_RESET_DATABASE = @as(u32, 1009); pub const SQLITE_DBCONFIG_DEFENSIVE = @as(u32, 1010); pub const SQLITE_DBCONFIG_WRITABLE_SCHEMA = @as(u32, 1011); pub const SQLITE_DBCONFIG_LEGACY_ALTER_TABLE = @as(u32, 1012); pub const SQLITE_DBCONFIG_DQS_DML = @as(u32, 1013); pub const SQLITE_DBCONFIG_DQS_DDL = @as(u32, 1014); pub const SQLITE_DBCONFIG_ENABLE_VIEW = @as(u32, 1015); pub const SQLITE_DBCONFIG_LEGACY_FILE_FORMAT = @as(u32, 1016); pub const SQLITE_DBCONFIG_TRUSTED_SCHEMA = @as(u32, 1017); pub const SQLITE_DBCONFIG_MAX = @as(u32, 1017); pub const SQLITE_DENY = @as(u32, 1); pub const SQLITE_IGNORE = @as(u32, 2); pub const SQLITE_CREATE_INDEX = @as(u32, 1); pub const SQLITE_CREATE_TABLE = @as(u32, 2); pub const SQLITE_CREATE_TEMP_INDEX = @as(u32, 3); pub const SQLITE_CREATE_TEMP_TABLE = @as(u32, 4); pub const SQLITE_CREATE_TEMP_TRIGGER = @as(u32, 5); pub const SQLITE_CREATE_TEMP_VIEW = @as(u32, 6); pub const SQLITE_CREATE_TRIGGER = @as(u32, 7); pub const SQLITE_CREATE_VIEW = @as(u32, 8); pub const SQLITE_DELETE = @as(u32, 9); pub const SQLITE_DROP_INDEX = @as(u32, 10); pub const SQLITE_DROP_TABLE = @as(u32, 11); pub const SQLITE_DROP_TEMP_INDEX = @as(u32, 12); pub const SQLITE_DROP_TEMP_TABLE = @as(u32, 13); pub const SQLITE_DROP_TEMP_TRIGGER = @as(u32, 14); pub const SQLITE_DROP_TEMP_VIEW = @as(u32, 15); pub const SQLITE_DROP_TRIGGER = @as(u32, 16); pub const SQLITE_DROP_VIEW = @as(u32, 17); pub const SQLITE_INSERT = @as(u32, 18); pub const SQLITE_PRAGMA = @as(u32, 19); pub const SQLITE_READ = @as(u32, 20); pub const SQLITE_SELECT = @as(u32, 21); pub const SQLITE_TRANSACTION = @as(u32, 22); pub const SQLITE_UPDATE = @as(u32, 23); pub const SQLITE_ATTACH = @as(u32, 24); pub const SQLITE_DETACH = @as(u32, 25); pub const SQLITE_ALTER_TABLE = @as(u32, 26); pub const SQLITE_REINDEX = @as(u32, 27); pub const SQLITE_ANALYZE = @as(u32, 28); pub const SQLITE_CREATE_VTABLE = @as(u32, 29); pub const SQLITE_DROP_VTABLE = @as(u32, 30); pub const SQLITE_FUNCTION = @as(u32, 31); pub const SQLITE_SAVEPOINT = @as(u32, 32); pub const SQLITE_COPY = @as(u32, 0); pub const SQLITE_RECURSIVE = @as(u32, 33); pub const SQLITE_TRACE_STMT = @as(u32, 1); pub const SQLITE_TRACE_PROFILE = @as(u32, 2); pub const SQLITE_TRACE_ROW = @as(u32, 4); pub const SQLITE_TRACE_CLOSE = @as(u32, 8); pub const SQLITE_LIMIT_LENGTH = @as(u32, 0); pub const SQLITE_LIMIT_SQL_LENGTH = @as(u32, 1); pub const SQLITE_LIMIT_COLUMN = @as(u32, 2); pub const SQLITE_LIMIT_EXPR_DEPTH = @as(u32, 3); pub const SQLITE_LIMIT_COMPOUND_SELECT = @as(u32, 4); pub const SQLITE_LIMIT_VDBE_OP = @as(u32, 5); pub const SQLITE_LIMIT_FUNCTION_ARG = @as(u32, 6); pub const SQLITE_LIMIT_ATTACHED = @as(u32, 7); pub const SQLITE_LIMIT_LIKE_PATTERN_LENGTH = @as(u32, 8); pub const SQLITE_LIMIT_VARIABLE_NUMBER = @as(u32, 9); pub const SQLITE_LIMIT_TRIGGER_DEPTH = @as(u32, 10); pub const SQLITE_LIMIT_WORKER_THREADS = @as(u32, 11); pub const SQLITE_PREPARE_PERSISTENT = @as(u32, 1); pub const SQLITE_PREPARE_NORMALIZE = @as(u32, 2); pub const SQLITE_PREPARE_NO_VTAB = @as(u32, 4); pub const SQLITE_INTEGER = @as(u32, 1); pub const SQLITE_FLOAT = @as(u32, 2); pub const SQLITE_BLOB = @as(u32, 4); pub const SQLITE_NULL = @as(u32, 5); pub const SQLITE3_TEXT = @as(u32, 3); pub const SQLITE_UTF8 = @as(u32, 1); pub const SQLITE_UTF16LE = @as(u32, 2); pub const SQLITE_UTF16BE = @as(u32, 3); pub const SQLITE_UTF16 = @as(u32, 4); pub const SQLITE_ANY = @as(u32, 5); pub const SQLITE_UTF16_ALIGNED = @as(u32, 8); pub const SQLITE_DETERMINISTIC = @as(u64, 2048); pub const SQLITE_DIRECTONLY = @as(u64, 524288); pub const SQLITE_SUBTYPE = @as(u64, 1048576); pub const SQLITE_INNOCUOUS = @as(u64, 2097152); pub const SQLITE_WIN32_DATA_DIRECTORY_TYPE = @as(u32, 1); pub const SQLITE_WIN32_TEMP_DIRECTORY_TYPE = @as(u32, 2); pub const SQLITE_TXN_NONE = @as(u32, 0); pub const SQLITE_TXN_READ = @as(u32, 1); pub const SQLITE_TXN_WRITE = @as(u32, 2); pub const SQLITE_INDEX_SCAN_UNIQUE = @as(u32, 1); pub const SQLITE_INDEX_CONSTRAINT_EQ = @as(u32, 2); pub const SQLITE_INDEX_CONSTRAINT_GT = @as(u32, 4); pub const SQLITE_INDEX_CONSTRAINT_LE = @as(u32, 8); pub const SQLITE_INDEX_CONSTRAINT_LT = @as(u32, 16); pub const SQLITE_INDEX_CONSTRAINT_GE = @as(u32, 32); pub const SQLITE_INDEX_CONSTRAINT_MATCH = @as(u32, 64); pub const SQLITE_INDEX_CONSTRAINT_LIKE = @as(u32, 65); pub const SQLITE_INDEX_CONSTRAINT_GLOB = @as(u32, 66); pub const SQLITE_INDEX_CONSTRAINT_REGEXP = @as(u32, 67); pub const SQLITE_INDEX_CONSTRAINT_NE = @as(u32, 68); pub const SQLITE_INDEX_CONSTRAINT_ISNOT = @as(u32, 69); pub const SQLITE_INDEX_CONSTRAINT_ISNOTNULL = @as(u32, 70); pub const SQLITE_INDEX_CONSTRAINT_ISNULL = @as(u32, 71); pub const SQLITE_INDEX_CONSTRAINT_IS = @as(u32, 72); pub const SQLITE_INDEX_CONSTRAINT_FUNCTION = @as(u32, 150); pub const SQLITE_MUTEX_FAST = @as(u32, 0); pub const SQLITE_MUTEX_RECURSIVE = @as(u32, 1); pub const SQLITE_MUTEX_STATIC_MAIN = @as(u32, 2); pub const SQLITE_MUTEX_STATIC_MEM = @as(u32, 3); pub const SQLITE_MUTEX_STATIC_MEM2 = @as(u32, 4); pub const SQLITE_MUTEX_STATIC_OPEN = @as(u32, 4); pub const SQLITE_MUTEX_STATIC_PRNG = @as(u32, 5); pub const SQLITE_MUTEX_STATIC_LRU = @as(u32, 6); pub const SQLITE_MUTEX_STATIC_LRU2 = @as(u32, 7); pub const SQLITE_MUTEX_STATIC_PMEM = @as(u32, 7); pub const SQLITE_MUTEX_STATIC_APP1 = @as(u32, 8); pub const SQLITE_MUTEX_STATIC_APP2 = @as(u32, 9); pub const SQLITE_MUTEX_STATIC_APP3 = @as(u32, 10); pub const SQLITE_MUTEX_STATIC_VFS1 = @as(u32, 11); pub const SQLITE_MUTEX_STATIC_VFS2 = @as(u32, 12); pub const SQLITE_MUTEX_STATIC_VFS3 = @as(u32, 13); pub const SQLITE_MUTEX_STATIC_MASTER = @as(u32, 2); pub const SQLITE_TESTCTRL_FIRST = @as(u32, 5); pub const SQLITE_TESTCTRL_PRNG_SAVE = @as(u32, 5); pub const SQLITE_TESTCTRL_PRNG_RESTORE = @as(u32, 6); pub const SQLITE_TESTCTRL_PRNG_RESET = @as(u32, 7); pub const SQLITE_TESTCTRL_BITVEC_TEST = @as(u32, 8); pub const SQLITE_TESTCTRL_FAULT_INSTALL = @as(u32, 9); pub const SQLITE_TESTCTRL_BENIGN_MALLOC_HOOKS = @as(u32, 10); pub const SQLITE_TESTCTRL_PENDING_BYTE = @as(u32, 11); pub const SQLITE_TESTCTRL_ASSERT = @as(u32, 12); pub const SQLITE_TESTCTRL_ALWAYS = @as(u32, 13); pub const SQLITE_TESTCTRL_RESERVE = @as(u32, 14); pub const SQLITE_TESTCTRL_OPTIMIZATIONS = @as(u32, 15); pub const SQLITE_TESTCTRL_ISKEYWORD = @as(u32, 16); pub const SQLITE_TESTCTRL_SCRATCHMALLOC = @as(u32, 17); pub const SQLITE_TESTCTRL_INTERNAL_FUNCTIONS = @as(u32, 17); pub const SQLITE_TESTCTRL_LOCALTIME_FAULT = @as(u32, 18); pub const SQLITE_TESTCTRL_EXPLAIN_STMT = @as(u32, 19); pub const SQLITE_TESTCTRL_ONCE_RESET_THRESHOLD = @as(u32, 19); pub const SQLITE_TESTCTRL_NEVER_CORRUPT = @as(u32, 20); pub const SQLITE_TESTCTRL_VDBE_COVERAGE = @as(u32, 21); pub const SQLITE_TESTCTRL_BYTEORDER = @as(u32, 22); pub const SQLITE_TESTCTRL_ISINIT = @as(u32, 23); pub const SQLITE_TESTCTRL_SORTER_MMAP = @as(u32, 24); pub const SQLITE_TESTCTRL_IMPOSTER = @as(u32, 25); pub const SQLITE_TESTCTRL_PARSER_COVERAGE = @as(u32, 26); pub const SQLITE_TESTCTRL_RESULT_INTREAL = @as(u32, 27); pub const SQLITE_TESTCTRL_PRNG_SEED = @as(u32, 28); pub const SQLITE_TESTCTRL_EXTRA_SCHEMA_CHECKS = @as(u32, 29); pub const SQLITE_TESTCTRL_SEEK_COUNT = @as(u32, 30); pub const SQLITE_TESTCTRL_LAST = @as(u32, 30); pub const SQLITE_STATUS_MEMORY_USED = @as(u32, 0); pub const SQLITE_STATUS_PAGECACHE_USED = @as(u32, 1); pub const SQLITE_STATUS_PAGECACHE_OVERFLOW = @as(u32, 2); pub const SQLITE_STATUS_SCRATCH_USED = @as(u32, 3); pub const SQLITE_STATUS_SCRATCH_OVERFLOW = @as(u32, 4); pub const SQLITE_STATUS_MALLOC_SIZE = @as(u32, 5); pub const SQLITE_STATUS_PARSER_STACK = @as(u32, 6); pub const SQLITE_STATUS_PAGECACHE_SIZE = @as(u32, 7); pub const SQLITE_STATUS_SCRATCH_SIZE = @as(u32, 8); pub const SQLITE_STATUS_MALLOC_COUNT = @as(u32, 9); pub const SQLITE_DBSTATUS_LOOKASIDE_USED = @as(u32, 0); pub const SQLITE_DBSTATUS_CACHE_USED = @as(u32, 1); pub const SQLITE_DBSTATUS_SCHEMA_USED = @as(u32, 2); pub const SQLITE_DBSTATUS_STMT_USED = @as(u32, 3); pub const SQLITE_DBSTATUS_LOOKASIDE_HIT = @as(u32, 4); pub const SQLITE_DBSTATUS_LOOKASIDE_MISS_SIZE = @as(u32, 5); pub const SQLITE_DBSTATUS_LOOKASIDE_MISS_FULL = @as(u32, 6); pub const SQLITE_DBSTATUS_CACHE_HIT = @as(u32, 7); pub const SQLITE_DBSTATUS_CACHE_MISS = @as(u32, 8); pub const SQLITE_DBSTATUS_CACHE_WRITE = @as(u32, 9); pub const SQLITE_DBSTATUS_DEFERRED_FKS = @as(u32, 10); pub const SQLITE_DBSTATUS_CACHE_USED_SHARED = @as(u32, 11); pub const SQLITE_DBSTATUS_CACHE_SPILL = @as(u32, 12); pub const SQLITE_DBSTATUS_MAX = @as(u32, 12); pub const SQLITE_STMTSTATUS_FULLSCAN_STEP = @as(u32, 1); pub const SQLITE_STMTSTATUS_SORT = @as(u32, 2); pub const SQLITE_STMTSTATUS_AUTOINDEX = @as(u32, 3); pub const SQLITE_STMTSTATUS_VM_STEP = @as(u32, 4); pub const SQLITE_STMTSTATUS_REPREPARE = @as(u32, 5); pub const SQLITE_STMTSTATUS_RUN = @as(u32, 6); pub const SQLITE_STMTSTATUS_MEMUSED = @as(u32, 99); pub const SQLITE_CHECKPOINT_PASSIVE = @as(u32, 0); pub const SQLITE_CHECKPOINT_FULL = @as(u32, 1); pub const SQLITE_CHECKPOINT_RESTART = @as(u32, 2); pub const SQLITE_CHECKPOINT_TRUNCATE = @as(u32, 3); pub const SQLITE_VTAB_CONSTRAINT_SUPPORT = @as(u32, 1); pub const SQLITE_VTAB_INNOCUOUS = @as(u32, 2); pub const SQLITE_VTAB_DIRECTONLY = @as(u32, 3); pub const SQLITE_ROLLBACK = @as(u32, 1); pub const SQLITE_FAIL = @as(u32, 3); pub const SQLITE_REPLACE = @as(u32, 5); pub const SQLITE_SCANSTAT_NLOOP = @as(u32, 0); pub const SQLITE_SCANSTAT_NVISIT = @as(u32, 1); pub const SQLITE_SCANSTAT_EST = @as(u32, 2); pub const SQLITE_SCANSTAT_NAME = @as(u32, 3); pub const SQLITE_SCANSTAT_EXPLAIN = @as(u32, 4); pub const SQLITE_SCANSTAT_SELECTID = @as(u32, 5); pub const SQLITE_SERIALIZE_NOCOPY = @as(u32, 1); pub const SQLITE_DESERIALIZE_FREEONCLOSE = @as(u32, 1); pub const SQLITE_DESERIALIZE_RESIZEABLE = @as(u32, 2); pub const SQLITE_DESERIALIZE_READONLY = @as(u32, 4); pub const NOT_WITHIN = @as(u32, 0); pub const PARTLY_WITHIN = @as(u32, 1); pub const FULLY_WITHIN = @as(u32, 2); pub const __SQLITESESSION_H_ = @as(u32, 1); pub const SQLITE_CHANGESETSTART_INVERT = @as(u32, 2); pub const SQLITE_CHANGESETAPPLY_NOSAVEPOINT = @as(u32, 1); pub const SQLITE_CHANGESETAPPLY_INVERT = @as(u32, 2); pub const SQLITE_CHANGESET_DATA = @as(u32, 1); pub const SQLITE_CHANGESET_NOTFOUND = @as(u32, 2); pub const SQLITE_CHANGESET_CONFLICT = @as(u32, 3); pub const SQLITE_CHANGESET_CONSTRAINT = @as(u32, 4); pub const SQLITE_CHANGESET_FOREIGN_KEY = @as(u32, 5); pub const SQLITE_CHANGESET_OMIT = @as(u32, 0); pub const SQLITE_CHANGESET_REPLACE = @as(u32, 1); pub const SQLITE_CHANGESET_ABORT = @as(u32, 2); pub const SQLITE_SESSION_CONFIG_STRMSIZE = @as(u32, 1); pub const FTS5_TOKENIZE_QUERY = @as(u32, 1); pub const FTS5_TOKENIZE_PREFIX = @as(u32, 2); pub const FTS5_TOKENIZE_DOCUMENT = @as(u32, 4); pub const FTS5_TOKENIZE_AUX = @as(u32, 8); pub const FTS5_TOKEN_COLOCATED = @as(u32, 1); //-------------------------------------------------------------------------------- // Section: Types (37) //-------------------------------------------------------------------------------- pub const sqlite3 = extern struct { placeholder: usize, // TODO: why is this type empty? }; pub const sqlite3_mutex = extern struct { placeholder: usize, // TODO: why is this type empty? }; pub const sqlite3_stmt = extern struct { placeholder: usize, // TODO: why is this type empty? }; pub const sqlite3_value = extern struct { placeholder: usize, // TODO: why is this type empty? }; pub const sqlite3_context = extern struct { placeholder: usize, // TODO: why is this type empty? }; pub const sqlite3_blob = extern struct { placeholder: usize, // TODO: why is this type empty? }; pub const sqlite3_str = extern struct { placeholder: usize, // TODO: why is this type empty? }; pub const sqlite3_pcache = extern struct { placeholder: usize, // TODO: why is this type empty? }; pub const sqlite3_backup = extern struct { placeholder: usize, // TODO: why is this type empty? }; pub const Fts5Context = extern struct { placeholder: usize, // TODO: why is this type empty? }; pub const Fts5Tokenizer = extern struct { placeholder: usize, // TODO: why is this type empty? }; pub const sqlite3_callback = switch (@import("builtin").zig_backend) { .stage1 => fn ( param0: ?*anyopaque, param1: i32, param2: ?*?*i8, param3: ?*?*i8, ) callconv(@import("std").os.windows.WINAPI) i32, else => *const fn ( param0: ?*anyopaque, param1: i32, param2: ?*?*i8, param3: ?*?*i8, ) callconv(@import("std").os.windows.WINAPI) i32, }; pub const sqlite3_file = extern struct { pMethods: ?*const sqlite3_io_methods, }; pub const sqlite3_io_methods = extern struct { iVersion: i32, xClose: isize, xRead: isize, xWrite: isize, xTruncate: isize, xSync: isize, xFileSize: isize, xLock: isize, xUnlock: isize, xCheckReservedLock: isize, xFileControl: isize, xSectorSize: isize, xDeviceCharacteristics: isize, xShmMap: isize, xShmLock: isize, xShmBarrier: isize, xShmUnmap: isize, xFetch: isize, xUnfetch: isize, }; pub const sqlite3_syscall_ptr = switch (@import("builtin").zig_backend) { .stage1 => fn () callconv(@import("std").os.windows.WINAPI) void, else => *const fn () callconv(@import("std").os.windows.WINAPI) void, }; pub const sqlite3_vfs = extern struct { iVersion: i32, szOsFile: i32, mxPathname: i32, pNext: ?*sqlite3_vfs, zName: ?[*:0]const u8, pAppData: ?*anyopaque, xOpen: isize, xDelete: isize, xAccess: isize, xFullPathname: isize, xDlOpen: isize, xDlError: isize, xDlSym: isize, xDlClose: isize, xRandomness: isize, xSleep: isize, xCurrentTime: isize, xGetLastError: isize, xCurrentTimeInt64: isize, xSetSystemCall: isize, xGetSystemCall: isize, xNextSystemCall: isize, }; pub const sqlite3_mem_methods = extern struct { xMalloc: isize, xFree: isize, xRealloc: isize, xSize: isize, xRoundup: isize, xInit: isize, xShutdown: isize, pAppData: ?*anyopaque, }; pub const sqlite3_destructor_type = switch (@import("builtin").zig_backend) { .stage1 => fn ( param0: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) void, else => *const fn ( param0: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) void, }; pub const sqlite3_module = extern struct { iVersion: i32, xCreate: isize, xConnect: isize, xBestIndex: isize, xDisconnect: isize, xDestroy: isize, xOpen: isize, xClose: isize, xFilter: isize, xNext: isize, xEof: isize, xColumn: isize, xRowid: isize, xUpdate: isize, xBegin: isize, xSync: isize, xCommit: isize, xRollback: isize, xFindFunction: isize, xRename: isize, xSavepoint: isize, xRelease: isize, xRollbackTo: isize, xShadowName: isize, }; pub const sqlite3_index_info = extern struct { pub const sqlite3_index_orderby = extern struct { iColumn: i32, desc: u8, }; pub const sqlite3_index_constraint_usage = extern struct { argvIndex: i32, omit: u8, }; pub const sqlite3_index_constraint = extern struct { iColumn: i32, op: u8, usable: u8, iTermOffset: i32, }; nConstraint: i32, aConstraint: ?*sqlite3_index_constraint, nOrderBy: i32, aOrderBy: ?*sqlite3_index_orderby, aConstraintUsage: ?*sqlite3_index_constraint_usage, idxNum: i32, idxStr: ?PSTR, needToFreeIdxStr: i32, orderByConsumed: i32, estimatedCost: f64, estimatedRows: i64, idxFlags: i32, colUsed: u64, }; pub const sqlite3_vtab = extern struct { pModule: ?*const sqlite3_module, nRef: i32, zErrMsg: ?PSTR, }; pub const sqlite3_vtab_cursor = extern struct { pVtab: ?*sqlite3_vtab, }; pub const sqlite3_mutex_methods = extern struct { xMutexInit: isize, xMutexEnd: isize, xMutexAlloc: ?*?*?*?*?*?*?*?*?*sqlite3_mutex, xMutexFree: isize, xMutexEnter: isize, xMutexTry: isize, xMutexLeave: isize, xMutexHeld: isize, xMutexNotheld: isize, }; pub const sqlite3_pcache_page = extern struct { pBuf: ?*anyopaque, pExtra: ?*anyopaque, }; pub const sqlite3_pcache_methods2 = extern struct { iVersion: i32, pArg: ?*anyopaque, xInit: isize, xShutdown: isize, xCreate: ?*?*?*?*?*?*?*?*?*sqlite3_pcache, xCachesize: isize, xPagecount: isize, xFetch: ?*?*?*?*?*?*?*?*?*?*?*?*?*?*?*?*?*?*?*sqlite3_pcache_page, xUnpin: isize, xRekey: isize, xTruncate: isize, xDestroy: isize, xShrink: isize, }; pub const sqlite3_pcache_methods = extern struct { pArg: ?*anyopaque, xInit: isize, xShutdown: isize, xCreate: ?*?*?*?*?*?*?*?*?*sqlite3_pcache, xCachesize: isize, xPagecount: isize, xFetch: isize, xUnpin: isize, xRekey: isize, xTruncate: isize, xDestroy: isize, }; pub const sqlite3_snapshot = extern struct { hidden: [48]u8, }; pub const sqlite3_rtree_geometry = extern struct { pContext: ?*anyopaque, nParam: i32, aParam: ?*f64, pUser: ?*anyopaque, xDelUser: isize, }; pub const sqlite3_rtree_query_info = extern struct { pContext: ?*anyopaque, nParam: i32, aParam: ?*f64, pUser: ?*anyopaque, xDelUser: isize, aCoord: ?*f64, anQueue: ?*u32, nCoord: i32, iLevel: i32, mxLevel: i32, iRowid: i64, rParentScore: f64, eParentWithin: i32, eWithin: i32, rScore: f64, apSqlParam: ?*?*sqlite3_value, }; pub const fts5_extension_function = switch (@import("builtin").zig_backend) { .stage1 => fn ( pApi: ?*const Fts5ExtensionApi, pFts: ?*Fts5Context, pCtx: ?*sqlite3_context, nVal: i32, apVal: ?*?*sqlite3_value, ) callconv(@import("std").os.windows.WINAPI) void, else => *const fn ( pApi: ?*const Fts5ExtensionApi, pFts: ?*Fts5Context, pCtx: ?*sqlite3_context, nVal: i32, apVal: ?*?*sqlite3_value, ) callconv(@import("std").os.windows.WINAPI) void, }; pub const Fts5PhraseIter = extern struct { a: ?*const u8, b: ?*const u8, }; pub const Fts5ExtensionApi = extern struct { iVersion: i32, xUserData: isize, xColumnCount: isize, xRowCount: isize, xColumnTotalSize: isize, xTokenize: isize, xPhraseCount: isize, xPhraseSize: isize, xInstCount: isize, xInst: isize, xRowid: isize, xColumnText: isize, xColumnSize: isize, xQueryPhrase: isize, xSetAuxdata: isize, xGetAuxdata: isize, xPhraseFirst: isize, xPhraseNext: isize, xPhraseFirstColumn: isize, xPhraseNextColumn: isize, }; pub const fts5_tokenizer = extern struct { xCreate: isize, xDelete: isize, xTokenize: isize, }; pub const fts5_api = extern struct { iVersion: i32, xCreateTokenizer: isize, xFindTokenizer: isize, xCreateFunction: isize, }; pub const sqlite3_loadext_entry = switch (@import("builtin").zig_backend) { .stage1 => fn ( db: ?*sqlite3, pzErrMsg: ?*?*i8, pThunk: ?*const sqlite3_api_routines, ) callconv(@import("std").os.windows.WINAPI) i32, else => *const fn ( db: ?*sqlite3, pzErrMsg: ?*?*i8, pThunk: ?*const sqlite3_api_routines, ) callconv(@import("std").os.windows.WINAPI) i32, }; pub const sqlite3_api_routines = switch (@import("../zig.zig").arch) { .X64, .Arm64 => extern struct { aggregate_context: isize, aggregate_count: isize, bind_blob: isize, bind_double: isize, bind_int: isize, bind_int64: isize, bind_null: isize, bind_parameter_count: isize, bind_parameter_index: isize, bind_parameter_name: isize, bind_text: isize, bind_text16: isize, bind_value: isize, busy_handler: isize, busy_timeout: isize, changes: isize, close: isize, collation_needed: isize, collation_needed16: isize, column_blob: isize, column_bytes: isize, column_bytes16: isize, column_count: isize, column_database_name: isize, column_database_name16: isize, column_decltype: isize, column_decltype16: isize, column_double: isize, column_int: isize, column_int64: isize, column_name: isize, column_name16: isize, column_origin_name: isize, column_origin_name16: isize, column_table_name: isize, column_table_name16: isize, column_text: isize, column_text16: isize, column_type: isize, column_value: ?*?*?*?*?*?*?*?*?*?*?*?*?*?*?*?*?*sqlite3_value, commit_hook: isize, complete: isize, complete16: isize, create_collation: isize, create_collation16: isize, create_function: isize, create_function16: isize, create_module: isize, data_count: isize, db_handle: ?*?*?*?*?*?*?*?*?*?*?*?*?*?*?*?*?*sqlite3, declare_vtab: isize, enable_shared_cache: isize, errcode: isize, errmsg: isize, errmsg16: isize, exec: isize, expired: isize, finalize: isize, free: isize, free_table: isize, get_autocommit: isize, get_auxdata: isize, get_table: isize, global_recover: isize, interruptx: isize, last_insert_rowid: isize, libversion: isize, libversion_number: isize, malloc: isize, mprintf: isize, open: isize, open16: isize, prepare: isize, prepare16: isize, profile: isize, progress_handler: isize, realloc: isize, reset: isize, result_blob: isize, result_double: isize, result_error: isize, result_error16: isize, result_int: isize, result_int64: isize, result_null: isize, result_text: isize, result_text16: isize, result_text16be: isize, result_text16le: isize, result_value: isize, rollback_hook: isize, set_authorizer: isize, set_auxdata: isize, xsnprintf: isize, step: isize, table_column_metadata: isize, thread_cleanup: isize, total_changes: isize, trace: isize, transfer_bindings: isize, update_hook: isize, user_data: isize, value_blob: isize, value_bytes: isize, value_bytes16: isize, value_double: isize, value_int: isize, value_int64: isize, value_numeric_type: isize, value_text: isize, value_text16: isize, value_text16be: isize, value_text16le: isize, value_type: isize, vmprintf: isize, overload_function: isize, prepare_v2: isize, prepare16_v2: isize, clear_bindings: isize, create_module_v2: isize, bind_zeroblob: isize, blob_bytes: isize, blob_close: isize, blob_open: isize, blob_read: isize, blob_write: isize, create_collation_v2: isize, file_control: isize, memory_highwater: isize, memory_used: isize, mutex_alloc: ?*?*?*?*?*?*?*?*?*sqlite3_mutex, mutex_enter: isize, mutex_free: isize, mutex_leave: isize, mutex_try: isize, open_v2: isize, release_memory: isize, result_error_nomem: isize, result_error_toobig: isize, sleep: isize, soft_heap_limit: isize, vfs_find: ?*?*?*?*?*?*?*?*?*?*sqlite3_vfs, vfs_register: isize, vfs_unregister: isize, xthreadsafe: isize, result_zeroblob: isize, result_error_code: isize, test_control: isize, randomness: isize, context_db_handle: ?*?*?*?*?*?*?*?*?*?*?*?*?*?*?*?*?*?*?*?*sqlite3, extended_result_codes: isize, limit: isize, next_stmt: ?*?*?*?*?*?*?*?*?*?*?*?*sqlite3_stmt, sql: isize, status: isize, backup_finish: isize, backup_init: ?*?*?*?*?*?*?*?*?*?*?*?*sqlite3_backup, backup_pagecount: isize, backup_remaining: isize, backup_step: isize, compileoption_get: isize, compileoption_used: isize, create_function_v2: isize, db_config: isize, db_mutex: ?*?*?*?*?*?*?*?*?*?*?*?*sqlite3_mutex, db_status: isize, extended_errcode: isize, log: isize, soft_heap_limit64: isize, sourceid: isize, stmt_status: isize, strnicmp: isize, unlock_notify: isize, wal_autocheckpoint: isize, wal_checkpoint: isize, wal_hook: isize, blob_reopen: isize, vtab_config: isize, vtab_on_conflict: isize, close_v2: isize, db_filename: isize, db_readonly: isize, db_release_memory: isize, errstr: isize, stmt_busy: isize, stmt_readonly: isize, stricmp: isize, uri_boolean: isize, uri_int64: isize, uri_parameter: isize, xvsnprintf: isize, wal_checkpoint_v2: isize, auto_extension: isize, bind_blob64: isize, bind_text64: isize, cancel_auto_extension: isize, load_extension: isize, malloc64: isize, msize: isize, realloc64: isize, reset_auto_extension: isize, result_blob64: isize, result_text64: isize, strglob: isize, value_dup: ?*?*?*?*?*?*?*?*?*?*sqlite3_value, value_free: isize, result_zeroblob64: isize, bind_zeroblob64: isize, value_subtype: isize, result_subtype: isize, status64: isize, strlike: isize, db_cacheflush: isize, system_errno: isize, trace_v2: isize, expanded_sql: isize, set_last_insert_rowid: isize, prepare_v3: isize, prepare16_v3: isize, bind_pointer: isize, result_pointer: isize, value_pointer: isize, vtab_nochange: isize, value_nochange: isize, vtab_collation: isize, keyword_count: isize, keyword_name: isize, keyword_check: isize, str_new: ?*?*?*?*?*?*?*?*?*?*?*?*sqlite3_str, str_finish: isize, str_appendf: isize, str_vappendf: isize, str_append: isize, str_appendall: isize, str_appendchar: isize, str_reset: isize, str_errcode: isize, str_length: isize, str_value: isize, create_window_function: isize, normalized_sql: isize, stmt_isexplain: isize, value_frombind: isize, drop_modules: isize, hard_heap_limit64: isize, uri_key: isize, filename_database: isize, filename_journal: isize, filename_wal: isize, create_filename: isize, free_filename: isize, database_file_object: ?*?*?*?*?*?*?*?*?*?*sqlite3_file, txn_state: isize, }, .X86 => extern struct { aggregate_context: isize, aggregate_count: isize, bind_blob: isize, bind_double: isize, bind_int: isize, bind_int64: isize, bind_null: isize, bind_parameter_count: isize, bind_parameter_index: isize, bind_parameter_name: isize, bind_text: isize, bind_text16: isize, bind_value: isize, busy_handler: isize, busy_timeout: isize, changes: isize, close: isize, collation_needed: isize, collation_needed16: isize, column_blob: isize, column_bytes: isize, column_bytes16: isize, column_count: isize, column_database_name: isize, column_database_name16: isize, column_decltype: isize, column_decltype16: isize, column_double: isize, column_int: isize, column_int64: isize, column_name: isize, column_name16: isize, column_origin_name: isize, column_origin_name16: isize, column_table_name: isize, column_table_name16: isize, column_text: isize, column_text16: isize, column_type: isize, column_value: ?*?*?*?*?*?*?*?*?*?*?*?*?*?*?*?*?*sqlite3_value, commit_hook: isize, complete: isize, complete16: isize, create_collation: isize, create_collation16: isize, create_function: isize, create_function16: isize, create_module: isize, data_count: isize, db_handle: ?*?*?*?*?*?*?*?*?*?*?*?*?*?*?*?*?*sqlite3, declare_vtab: isize, enable_shared_cache: isize, errcode: isize, errmsg: isize, errmsg16: isize, exec: isize, expired: isize, finalize: isize, free: isize, free_table: isize, get_autocommit: isize, get_auxdata: isize, get_table: isize, global_recover: isize, interruptx: isize, last_insert_rowid: isize, libversion: isize, libversion_number: isize, malloc: isize, mprintf: isize, open: isize, open16: isize, prepare: isize, prepare16: isize, profile: isize, progress_handler: isize, realloc: isize, reset: isize, result_blob: isize, result_double: isize, result_error: isize, result_error16: isize, result_int: isize, result_int64: isize, result_null: isize, result_text: isize, result_text16: isize, result_text16be: isize, result_text16le: isize, result_value: isize, rollback_hook: isize, set_authorizer: isize, set_auxdata: isize, xsnprintf: isize, step: isize, table_column_metadata: isize, thread_cleanup: isize, total_changes: isize, trace: isize, transfer_bindings: isize, update_hook: isize, user_data: isize, value_blob: isize, value_bytes: isize, value_bytes16: isize, value_double: isize, value_int: isize, value_int64: isize, value_numeric_type: isize, value_text: isize, value_text16: isize, value_text16be: isize, value_text16le: isize, value_type: isize, vmprintf: isize, overload_function: isize, prepare_v2: isize, prepare16_v2: isize, clear_bindings: isize, create_module_v2: isize, bind_zeroblob: isize, blob_bytes: isize, blob_close: isize, blob_open: isize, blob_read: isize, blob_write: isize, create_collation_v2: isize, file_control: isize, memory_highwater: isize, memory_used: isize, mutex_alloc: ?*?*?*?*?*?*?*?*?*sqlite3_mutex, mutex_enter: isize, mutex_free: isize, mutex_leave: isize, mutex_try: isize, open_v2: isize, release_memory: isize, result_error_nomem: isize, result_error_toobig: isize, sleep: isize, soft_heap_limit: isize, vfs_find: ?*?*?*?*?*?*?*?*?*?*sqlite3_vfs, vfs_register: isize, vfs_unregister: isize, xthreadsafe: isize, result_zeroblob: isize, result_error_code: isize, test_control: isize, randomness: isize, context_db_handle: ?*?*?*?*?*?*?*?*?*?*?*?*?*?*?*?*?*?*?*?*sqlite3, extended_result_codes: isize, limit: isize, next_stmt: ?*?*?*?*?*?*?*?*?*?*?*?*sqlite3_stmt, sql: isize, status: isize, backup_finish: isize, backup_init: ?*?*?*?*?*?*?*?*?*?*?*?*sqlite3_backup, backup_pagecount: isize, backup_remaining: isize, backup_step: isize, compileoption_get: isize, compileoption_used: isize, create_function_v2: isize, db_config: isize, db_mutex: ?*?*?*?*?*?*?*?*?*?*?*?*sqlite3_mutex, db_status: isize, extended_errcode: isize, log: isize, soft_heap_limit64: isize, sourceid: isize, stmt_status: isize, strnicmp: isize, unlock_notify: isize, wal_autocheckpoint: isize, wal_checkpoint: isize, wal_hook: isize, blob_reopen: isize, vtab_config: isize, vtab_on_conflict: isize, close_v2: isize, db_filename: isize, db_readonly: isize, db_release_memory: isize, errstr: isize, stmt_busy: isize, stmt_readonly: isize, stricmp: isize, uri_boolean: isize, uri_int64: isize, uri_parameter: isize, xvsnprintf: isize, wal_checkpoint_v2: isize, auto_extension: isize, bind_blob64: isize, bind_text64: isize, cancel_auto_extension: isize, load_extension: isize, malloc64: isize, msize: isize, realloc64: isize, reset_auto_extension: isize, result_blob64: isize, result_text64: isize, strglob: isize, value_dup: ?*?*?*?*?*?*?*?*?*?*sqlite3_value, value_free: isize, result_zeroblob64: isize, bind_zeroblob64: isize, value_subtype: isize, result_subtype: isize, status64: isize, strlike: isize, db_cacheflush: isize, system_errno: isize, trace_v2: isize, expanded_sql: isize, set_last_insert_rowid: isize, prepare_v3: isize, prepare16_v3: isize, bind_pointer: isize, result_pointer: isize, value_pointer: isize, vtab_nochange: isize, value_nochange: isize, vtab_collation: isize, keyword_count: isize, keyword_name: isize, keyword_check: isize, str_new: ?*?*?*?*?*?*?*?*?*?*?*?*sqlite3_str, str_finish: isize, str_appendf: isize, str_vappendf: isize, str_append: isize, str_appendall: isize, str_appendchar: isize, str_reset: isize, str_errcode: isize, str_length: isize, str_value: isize, create_window_function: isize, normalized_sql: isize, stmt_isexplain: isize, value_frombind: isize, drop_modules: isize, hard_heap_limit64: isize, uri_key: isize, filename_database: isize, filename_journal: isize, filename_wal: isize, create_filename: isize, free_filename: isize, database_file_object: ?*?*?*?*?*?*?*?*?*?*sqlite3_file, txn_state: isize, }, }; //-------------------------------------------------------------------------------- // Section: Functions (265) //-------------------------------------------------------------------------------- pub extern "winsqlite3" fn sqlite3_libversion() callconv(@import("std").os.windows.WINAPI) ?PSTR; pub extern "winsqlite3" fn sqlite3_sourceid() callconv(@import("std").os.windows.WINAPI) ?PSTR; pub extern "winsqlite3" fn sqlite3_libversion_number() callconv(@import("std").os.windows.WINAPI) i32; pub extern "winsqlite3" fn sqlite3_compileoption_used( zOptName: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) i32; pub extern "winsqlite3" fn sqlite3_compileoption_get( N: i32, ) callconv(@import("std").os.windows.WINAPI) ?PSTR; pub extern "winsqlite3" fn sqlite3_threadsafe() callconv(@import("std").os.windows.WINAPI) i32; pub extern "winsqlite3" fn sqlite3_close( param0: ?*sqlite3, ) callconv(@import("std").os.windows.WINAPI) i32; pub extern "winsqlite3" fn sqlite3_close_v2( param0: ?*sqlite3, ) callconv(@import("std").os.windows.WINAPI) i32; pub extern "winsqlite3" fn sqlite3_exec( param0: ?*sqlite3, sql: ?[*:0]const u8, callback: isize, param3: ?*anyopaque, errmsg: ?*?*i8, ) callconv(@import("std").os.windows.WINAPI) i32; pub extern "winsqlite3" fn sqlite3_initialize() callconv(@import("std").os.windows.WINAPI) i32; pub extern "winsqlite3" fn sqlite3_shutdown() callconv(@import("std").os.windows.WINAPI) i32; pub extern "winsqlite3" fn sqlite3_os_init() callconv(@import("std").os.windows.WINAPI) i32; pub extern "winsqlite3" fn sqlite3_os_end() callconv(@import("std").os.windows.WINAPI) i32; pub extern "winsqlite3" fn sqlite3_config( param0: i32, ) callconv(@import("std").os.windows.WINAPI) i32; pub extern "winsqlite3" fn sqlite3_db_config( param0: ?*sqlite3, op: i32, ) callconv(@import("std").os.windows.WINAPI) i32; pub extern "winsqlite3" fn sqlite3_extended_result_codes( param0: ?*sqlite3, onoff: i32, ) callconv(@import("std").os.windows.WINAPI) i32; pub extern "winsqlite3" fn sqlite3_last_insert_rowid( param0: ?*sqlite3, ) callconv(@import("std").os.windows.WINAPI) i64; pub extern "winsqlite3" fn sqlite3_set_last_insert_rowid( param0: ?*sqlite3, param1: i64, ) callconv(@import("std").os.windows.WINAPI) void; pub extern "winsqlite3" fn sqlite3_changes( param0: ?*sqlite3, ) callconv(@import("std").os.windows.WINAPI) i32; pub extern "winsqlite3" fn sqlite3_total_changes( param0: ?*sqlite3, ) callconv(@import("std").os.windows.WINAPI) i32; pub extern "winsqlite3" fn sqlite3_interrupt( param0: ?*sqlite3, ) callconv(@import("std").os.windows.WINAPI) void; pub extern "winsqlite3" fn sqlite3_complete( sql: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) i32; pub extern "winsqlite3" fn sqlite3_complete16( sql: ?*const anyopaque, ) callconv(@import("std").os.windows.WINAPI) i32; pub extern "winsqlite3" fn sqlite3_busy_handler( param0: ?*sqlite3, param1: isize, param2: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) i32; pub extern "winsqlite3" fn sqlite3_busy_timeout( param0: ?*sqlite3, ms: i32, ) callconv(@import("std").os.windows.WINAPI) i32; pub extern "winsqlite3" fn sqlite3_get_table( db: ?*sqlite3, zSql: ?[*:0]const u8, pazResult: ?*?*?*i8, pnRow: ?*i32, pnColumn: ?*i32, pzErrmsg: ?*?*i8, ) callconv(@import("std").os.windows.WINAPI) i32; pub extern "winsqlite3" fn sqlite3_free_table( result: ?*?*i8, ) callconv(@import("std").os.windows.WINAPI) void; pub extern "winsqlite3" fn sqlite3_mprintf( param0: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) ?PSTR; pub extern "winsqlite3" fn sqlite3_vmprintf( param0: ?[*:0]const u8, param1: ?*i8, ) callconv(@import("std").os.windows.WINAPI) ?PSTR; pub extern "winsqlite3" fn sqlite3_snprintf( param0: i32, param1: ?PSTR, param2: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) ?PSTR; pub extern "winsqlite3" fn sqlite3_vsnprintf( param0: i32, param1: ?PSTR, param2: ?[*:0]const u8, param3: ?*i8, ) callconv(@import("std").os.windows.WINAPI) ?PSTR; pub extern "winsqlite3" fn sqlite3_malloc( param0: i32, ) callconv(@import("std").os.windows.WINAPI) ?*anyopaque; pub extern "winsqlite3" fn sqlite3_malloc64( param0: u64, ) callconv(@import("std").os.windows.WINAPI) ?*anyopaque; pub extern "winsqlite3" fn sqlite3_realloc( param0: ?*anyopaque, param1: i32, ) callconv(@import("std").os.windows.WINAPI) ?*anyopaque; pub extern "winsqlite3" fn sqlite3_realloc64( param0: ?*anyopaque, param1: u64, ) callconv(@import("std").os.windows.WINAPI) ?*anyopaque; pub extern "winsqlite3" fn sqlite3_free( param0: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) void; pub extern "winsqlite3" fn sqlite3_msize( param0: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) u64; pub extern "winsqlite3" fn sqlite3_memory_used() callconv(@import("std").os.windows.WINAPI) i64; pub extern "winsqlite3" fn sqlite3_memory_highwater( resetFlag: i32, ) callconv(@import("std").os.windows.WINAPI) i64; pub extern "winsqlite3" fn sqlite3_randomness( N: i32, P: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) void; pub extern "winsqlite3" fn sqlite3_set_authorizer( param0: ?*sqlite3, xAuth: isize, pUserData: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) i32; pub extern "winsqlite3" fn sqlite3_trace( param0: ?*sqlite3, xTrace: isize, param2: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) ?*anyopaque; pub extern "winsqlite3" fn sqlite3_profile( param0: ?*sqlite3, xProfile: isize, param2: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) ?*anyopaque; pub extern "winsqlite3" fn sqlite3_trace_v2( param0: ?*sqlite3, uMask: u32, xCallback: isize, pCtx: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) i32; pub extern "winsqlite3" fn sqlite3_progress_handler( param0: ?*sqlite3, param1: i32, param2: isize, param3: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) void; pub extern "winsqlite3" fn sqlite3_open( filename: ?[*:0]const u8, ppDb: ?*?*sqlite3, ) callconv(@import("std").os.windows.WINAPI) i32; pub extern "winsqlite3" fn sqlite3_open16( filename: ?*const anyopaque, ppDb: ?*?*sqlite3, ) callconv(@import("std").os.windows.WINAPI) i32; pub extern "winsqlite3" fn sqlite3_open_v2( filename: ?[*:0]const u8, ppDb: ?*?*sqlite3, flags: i32, zVfs: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) i32; pub extern "winsqlite3" fn sqlite3_uri_parameter( zFilename: ?[*:0]const u8, zParam: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) ?PSTR; pub extern "winsqlite3" fn sqlite3_uri_boolean( zFile: ?[*:0]const u8, zParam: ?[*:0]const u8, bDefault: i32, ) callconv(@import("std").os.windows.WINAPI) i32; pub extern "winsqlite3" fn sqlite3_uri_int64( param0: ?[*:0]const u8, param1: ?[*:0]const u8, param2: i64, ) callconv(@import("std").os.windows.WINAPI) i64; pub extern "winsqlite3" fn sqlite3_uri_key( zFilename: ?[*:0]const u8, N: i32, ) callconv(@import("std").os.windows.WINAPI) ?PSTR; pub extern "winsqlite3" fn sqlite3_filename_database( param0: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) ?PSTR; pub extern "winsqlite3" fn sqlite3_filename_journal( param0: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) ?PSTR; pub extern "winsqlite3" fn sqlite3_filename_wal( param0: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) ?PSTR; pub extern "winsqlite3" fn sqlite3_database_file_object( param0: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) ?*sqlite3_file; pub extern "winsqlite3" fn sqlite3_create_filename( zDatabase: ?[*:0]const u8, zJournal: ?[*:0]const u8, zWal: ?[*:0]const u8, nParam: i32, azParam: ?*const ?*i8, ) callconv(@import("std").os.windows.WINAPI) ?PSTR; pub extern "winsqlite3" fn sqlite3_free_filename( param0: ?PSTR, ) callconv(@import("std").os.windows.WINAPI) void; pub extern "winsqlite3" fn sqlite3_errcode( db: ?*sqlite3, ) callconv(@import("std").os.windows.WINAPI) i32; pub extern "winsqlite3" fn sqlite3_extended_errcode( db: ?*sqlite3, ) callconv(@import("std").os.windows.WINAPI) i32; pub extern "winsqlite3" fn sqlite3_errmsg( param0: ?*sqlite3, ) callconv(@import("std").os.windows.WINAPI) ?PSTR; pub extern "winsqlite3" fn sqlite3_errmsg16( param0: ?*sqlite3, ) callconv(@import("std").os.windows.WINAPI) ?*anyopaque; pub extern "winsqlite3" fn sqlite3_errstr( param0: i32, ) callconv(@import("std").os.windows.WINAPI) ?PSTR; pub extern "winsqlite3" fn sqlite3_limit( param0: ?*sqlite3, id: i32, newVal: i32, ) callconv(@import("std").os.windows.WINAPI) i32; pub extern "winsqlite3" fn sqlite3_prepare( db: ?*sqlite3, zSql: ?[*:0]const u8, nByte: i32, ppStmt: ?*?*sqlite3_stmt, pzTail: ?*const ?*i8, ) callconv(@import("std").os.windows.WINAPI) i32; pub extern "winsqlite3" fn sqlite3_prepare_v2( db: ?*sqlite3, zSql: ?[*:0]const u8, nByte: i32, ppStmt: ?*?*sqlite3_stmt, pzTail: ?*const ?*i8, ) callconv(@import("std").os.windows.WINAPI) i32; pub extern "winsqlite3" fn sqlite3_prepare_v3( db: ?*sqlite3, zSql: ?[*:0]const u8, nByte: i32, prepFlags: u32, ppStmt: ?*?*sqlite3_stmt, pzTail: ?*const ?*i8, ) callconv(@import("std").os.windows.WINAPI) i32; pub extern "winsqlite3" fn sqlite3_prepare16( db: ?*sqlite3, zSql: ?*const anyopaque, nByte: i32, ppStmt: ?*?*sqlite3_stmt, pzTail: ?*const ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) i32; pub extern "winsqlite3" fn sqlite3_prepare16_v2( db: ?*sqlite3, zSql: ?*const anyopaque, nByte: i32, ppStmt: ?*?*sqlite3_stmt, pzTail: ?*const ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) i32; pub extern "winsqlite3" fn sqlite3_prepare16_v3( db: ?*sqlite3, zSql: ?*const anyopaque, nByte: i32, prepFlags: u32, ppStmt: ?*?*sqlite3_stmt, pzTail: ?*const ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) i32; pub extern "winsqlite3" fn sqlite3_sql( pStmt: ?*sqlite3_stmt, ) callconv(@import("std").os.windows.WINAPI) ?PSTR; pub extern "winsqlite3" fn sqlite3_expanded_sql( pStmt: ?*sqlite3_stmt, ) callconv(@import("std").os.windows.WINAPI) ?PSTR; pub extern "winsqlite3" fn sqlite3_stmt_readonly( pStmt: ?*sqlite3_stmt, ) callconv(@import("std").os.windows.WINAPI) i32; pub extern "winsqlite3" fn sqlite3_stmt_isexplain( pStmt: ?*sqlite3_stmt, ) callconv(@import("std").os.windows.WINAPI) i32; pub extern "winsqlite3" fn sqlite3_stmt_busy( param0: ?*sqlite3_stmt, ) callconv(@import("std").os.windows.WINAPI) i32; pub extern "winsqlite3" fn sqlite3_bind_blob( param0: ?*sqlite3_stmt, param1: i32, param2: ?*const anyopaque, n: i32, param4: isize, ) callconv(@import("std").os.windows.WINAPI) i32; pub extern "winsqlite3" fn sqlite3_bind_blob64( param0: ?*sqlite3_stmt, param1: i32, param2: ?*const anyopaque, param3: u64, param4: isize, ) callconv(@import("std").os.windows.WINAPI) i32; pub extern "winsqlite3" fn sqlite3_bind_double( param0: ?*sqlite3_stmt, param1: i32, param2: f64, ) callconv(@import("std").os.windows.WINAPI) i32; pub extern "winsqlite3" fn sqlite3_bind_int( param0: ?*sqlite3_stmt, param1: i32, param2: i32, ) callconv(@import("std").os.windows.WINAPI) i32; pub extern "winsqlite3" fn sqlite3_bind_int64( param0: ?*sqlite3_stmt, param1: i32, param2: i64, ) callconv(@import("std").os.windows.WINAPI) i32; pub extern "winsqlite3" fn sqlite3_bind_null( param0: ?*sqlite3_stmt, param1: i32, ) callconv(@import("std").os.windows.WINAPI) i32; pub extern "winsqlite3" fn sqlite3_bind_text( param0: ?*sqlite3_stmt, param1: i32, param2: ?[*:0]const u8, param3: i32, param4: isize, ) callconv(@import("std").os.windows.WINAPI) i32; pub extern "winsqlite3" fn sqlite3_bind_text16( param0: ?*sqlite3_stmt, param1: i32, param2: ?*const anyopaque, param3: i32, param4: isize, ) callconv(@import("std").os.windows.WINAPI) i32; pub extern "winsqlite3" fn sqlite3_bind_text64( param0: ?*sqlite3_stmt, param1: i32, param2: ?[*:0]const u8, param3: u64, param4: isize, encoding: u8, ) callconv(@import("std").os.windows.WINAPI) i32; pub extern "winsqlite3" fn sqlite3_bind_value( param0: ?*sqlite3_stmt, param1: i32, param2: ?*const sqlite3_value, ) callconv(@import("std").os.windows.WINAPI) i32; pub extern "winsqlite3" fn sqlite3_bind_pointer( param0: ?*sqlite3_stmt, param1: i32, param2: ?*anyopaque, param3: ?[*:0]const u8, param4: isize, ) callconv(@import("std").os.windows.WINAPI) i32; pub extern "winsqlite3" fn sqlite3_bind_zeroblob( param0: ?*sqlite3_stmt, param1: i32, n: i32, ) callconv(@import("std").os.windows.WINAPI) i32; pub extern "winsqlite3" fn sqlite3_bind_zeroblob64( param0: ?*sqlite3_stmt, param1: i32, param2: u64, ) callconv(@import("std").os.windows.WINAPI) i32; pub extern "winsqlite3" fn sqlite3_bind_parameter_count( param0: ?*sqlite3_stmt, ) callconv(@import("std").os.windows.WINAPI) i32; pub extern "winsqlite3" fn sqlite3_bind_parameter_name( param0: ?*sqlite3_stmt, param1: i32, ) callconv(@import("std").os.windows.WINAPI) ?PSTR; pub extern "winsqlite3" fn sqlite3_bind_parameter_index( param0: ?*sqlite3_stmt, zName: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) i32; pub extern "winsqlite3" fn sqlite3_clear_bindings( param0: ?*sqlite3_stmt, ) callconv(@import("std").os.windows.WINAPI) i32; pub extern "winsqlite3" fn sqlite3_column_count( pStmt: ?*sqlite3_stmt, ) callconv(@import("std").os.windows.WINAPI) i32; pub extern "winsqlite3" fn sqlite3_column_name( param0: ?*sqlite3_stmt, N: i32, ) callconv(@import("std").os.windows.WINAPI) ?PSTR; pub extern "winsqlite3" fn sqlite3_column_name16( param0: ?*sqlite3_stmt, N: i32, ) callconv(@import("std").os.windows.WINAPI) ?*anyopaque; pub extern "winsqlite3" fn sqlite3_column_database_name( param0: ?*sqlite3_stmt, param1: i32, ) callconv(@import("std").os.windows.WINAPI) ?PSTR; pub extern "winsqlite3" fn sqlite3_column_database_name16( param0: ?*sqlite3_stmt, param1: i32, ) callconv(@import("std").os.windows.WINAPI) ?*anyopaque; pub extern "winsqlite3" fn sqlite3_column_table_name( param0: ?*sqlite3_stmt, param1: i32, ) callconv(@import("std").os.windows.WINAPI) ?PSTR; pub extern "winsqlite3" fn sqlite3_column_table_name16( param0: ?*sqlite3_stmt, param1: i32, ) callconv(@import("std").os.windows.WINAPI) ?*anyopaque; pub extern "winsqlite3" fn sqlite3_column_origin_name( param0: ?*sqlite3_stmt, param1: i32, ) callconv(@import("std").os.windows.WINAPI) ?PSTR; pub extern "winsqlite3" fn sqlite3_column_origin_name16( param0: ?*sqlite3_stmt, param1: i32, ) callconv(@import("std").os.windows.WINAPI) ?*anyopaque; pub extern "winsqlite3" fn sqlite3_column_decltype( param0: ?*sqlite3_stmt, param1: i32, ) callconv(@import("std").os.windows.WINAPI) ?PSTR; pub extern "winsqlite3" fn sqlite3_column_decltype16( param0: ?*sqlite3_stmt, param1: i32, ) callconv(@import("std").os.windows.WINAPI) ?*anyopaque; pub extern "winsqlite3" fn sqlite3_step( param0: ?*sqlite3_stmt, ) callconv(@import("std").os.windows.WINAPI) i32; pub extern "winsqlite3" fn sqlite3_data_count( pStmt: ?*sqlite3_stmt, ) callconv(@import("std").os.windows.WINAPI) i32; pub extern "winsqlite3" fn sqlite3_column_blob( param0: ?*sqlite3_stmt, iCol: i32, ) callconv(@import("std").os.windows.WINAPI) ?*anyopaque; pub extern "winsqlite3" fn sqlite3_column_double( param0: ?*sqlite3_stmt, iCol: i32, ) callconv(@import("std").os.windows.WINAPI) f64; pub extern "winsqlite3" fn sqlite3_column_int( param0: ?*sqlite3_stmt, iCol: i32, ) callconv(@import("std").os.windows.WINAPI) i32; pub extern "winsqlite3" fn sqlite3_column_int64( param0: ?*sqlite3_stmt, iCol: i32, ) callconv(@import("std").os.windows.WINAPI) i64; pub extern "winsqlite3" fn sqlite3_column_text( param0: ?*sqlite3_stmt, iCol: i32, ) callconv(@import("std").os.windows.WINAPI) ?*u8; pub extern "winsqlite3" fn sqlite3_column_text16( param0: ?*sqlite3_stmt, iCol: i32, ) callconv(@import("std").os.windows.WINAPI) ?*anyopaque; pub extern "winsqlite3" fn sqlite3_column_value( param0: ?*sqlite3_stmt, iCol: i32, ) callconv(@import("std").os.windows.WINAPI) ?*sqlite3_value; pub extern "winsqlite3" fn sqlite3_column_bytes( param0: ?*sqlite3_stmt, iCol: i32, ) callconv(@import("std").os.windows.WINAPI) i32; pub extern "winsqlite3" fn sqlite3_column_bytes16( param0: ?*sqlite3_stmt, iCol: i32, ) callconv(@import("std").os.windows.WINAPI) i32; pub extern "winsqlite3" fn sqlite3_column_type( param0: ?*sqlite3_stmt, iCol: i32, ) callconv(@import("std").os.windows.WINAPI) i32; pub extern "winsqlite3" fn sqlite3_finalize( pStmt: ?*sqlite3_stmt, ) callconv(@import("std").os.windows.WINAPI) i32; pub extern "winsqlite3" fn sqlite3_reset( pStmt: ?*sqlite3_stmt, ) callconv(@import("std").os.windows.WINAPI) i32; pub extern "winsqlite3" fn sqlite3_create_function( db: ?*sqlite3, zFunctionName: ?[*:0]const u8, nArg: i32, eTextRep: i32, pApp: ?*anyopaque, xFunc: isize, xStep: isize, xFinal: isize, ) callconv(@import("std").os.windows.WINAPI) i32; pub extern "winsqlite3" fn sqlite3_create_function16( db: ?*sqlite3, zFunctionName: ?*const anyopaque, nArg: i32, eTextRep: i32, pApp: ?*anyopaque, xFunc: isize, xStep: isize, xFinal: isize, ) callconv(@import("std").os.windows.WINAPI) i32; pub extern "winsqlite3" fn sqlite3_create_function_v2( db: ?*sqlite3, zFunctionName: ?[*:0]const u8, nArg: i32, eTextRep: i32, pApp: ?*anyopaque, xFunc: isize, xStep: isize, xFinal: isize, xDestroy: isize, ) callconv(@import("std").os.windows.WINAPI) i32; pub extern "winsqlite3" fn sqlite3_create_window_function( db: ?*sqlite3, zFunctionName: ?[*:0]const u8, nArg: i32, eTextRep: i32, pApp: ?*anyopaque, xStep: isize, xFinal: isize, xValue: isize, xInverse: isize, xDestroy: isize, ) callconv(@import("std").os.windows.WINAPI) i32; pub extern "winsqlite3" fn sqlite3_aggregate_count( param0: ?*sqlite3_context, ) callconv(@import("std").os.windows.WINAPI) i32; pub extern "winsqlite3" fn sqlite3_expired( param0: ?*sqlite3_stmt, ) callconv(@import("std").os.windows.WINAPI) i32; pub extern "winsqlite3" fn sqlite3_transfer_bindings( param0: ?*sqlite3_stmt, param1: ?*sqlite3_stmt, ) callconv(@import("std").os.windows.WINAPI) i32; pub extern "winsqlite3" fn sqlite3_global_recover() callconv(@import("std").os.windows.WINAPI) i32; pub extern "winsqlite3" fn sqlite3_thread_cleanup() callconv(@import("std").os.windows.WINAPI) void; pub extern "winsqlite3" fn sqlite3_memory_alarm( param0: isize, param1: ?*anyopaque, param2: i64, ) callconv(@import("std").os.windows.WINAPI) i32; pub extern "winsqlite3" fn sqlite3_value_blob( param0: ?*sqlite3_value, ) callconv(@import("std").os.windows.WINAPI) ?*anyopaque; pub extern "winsqlite3" fn sqlite3_value_double( param0: ?*sqlite3_value, ) callconv(@import("std").os.windows.WINAPI) f64; pub extern "winsqlite3" fn sqlite3_value_int( param0: ?*sqlite3_value, ) callconv(@import("std").os.windows.WINAPI) i32; pub extern "winsqlite3" fn sqlite3_value_int64( param0: ?*sqlite3_value, ) callconv(@import("std").os.windows.WINAPI) i64; pub extern "winsqlite3" fn sqlite3_value_pointer( param0: ?*sqlite3_value, param1: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) ?*anyopaque; pub extern "winsqlite3" fn sqlite3_value_text( param0: ?*sqlite3_value, ) callconv(@import("std").os.windows.WINAPI) ?*u8; pub extern "winsqlite3" fn sqlite3_value_text16( param0: ?*sqlite3_value, ) callconv(@import("std").os.windows.WINAPI) ?*anyopaque; pub extern "winsqlite3" fn sqlite3_value_text16le( param0: ?*sqlite3_value, ) callconv(@import("std").os.windows.WINAPI) ?*anyopaque; pub extern "winsqlite3" fn sqlite3_value_text16be( param0: ?*sqlite3_value, ) callconv(@import("std").os.windows.WINAPI) ?*anyopaque; pub extern "winsqlite3" fn sqlite3_value_bytes( param0: ?*sqlite3_value, ) callconv(@import("std").os.windows.WINAPI) i32; pub extern "winsqlite3" fn sqlite3_value_bytes16( param0: ?*sqlite3_value, ) callconv(@import("std").os.windows.WINAPI) i32; pub extern "winsqlite3" fn sqlite3_value_type( param0: ?*sqlite3_value, ) callconv(@import("std").os.windows.WINAPI) i32; pub extern "winsqlite3" fn sqlite3_value_numeric_type( param0: ?*sqlite3_value, ) callconv(@import("std").os.windows.WINAPI) i32; pub extern "winsqlite3" fn sqlite3_value_nochange( param0: ?*sqlite3_value, ) callconv(@import("std").os.windows.WINAPI) i32; pub extern "winsqlite3" fn sqlite3_value_frombind( param0: ?*sqlite3_value, ) callconv(@import("std").os.windows.WINAPI) i32; pub extern "winsqlite3" fn sqlite3_value_subtype( param0: ?*sqlite3_value, ) callconv(@import("std").os.windows.WINAPI) u32; pub extern "winsqlite3" fn sqlite3_value_dup( param0: ?*const sqlite3_value, ) callconv(@import("std").os.windows.WINAPI) ?*sqlite3_value; pub extern "winsqlite3" fn sqlite3_value_free( param0: ?*sqlite3_value, ) callconv(@import("std").os.windows.WINAPI) void; pub extern "winsqlite3" fn sqlite3_aggregate_context( param0: ?*sqlite3_context, nBytes: i32, ) callconv(@import("std").os.windows.WINAPI) ?*anyopaque; pub extern "winsqlite3" fn sqlite3_user_data( param0: ?*sqlite3_context, ) callconv(@import("std").os.windows.WINAPI) ?*anyopaque; pub extern "winsqlite3" fn sqlite3_context_db_handle( param0: ?*sqlite3_context, ) callconv(@import("std").os.windows.WINAPI) ?*sqlite3; pub extern "winsqlite3" fn sqlite3_get_auxdata( param0: ?*sqlite3_context, N: i32, ) callconv(@import("std").os.windows.WINAPI) ?*anyopaque; pub extern "winsqlite3" fn sqlite3_set_auxdata( param0: ?*sqlite3_context, N: i32, param2: ?*anyopaque, param3: isize, ) callconv(@import("std").os.windows.WINAPI) void; pub extern "winsqlite3" fn sqlite3_result_blob( param0: ?*sqlite3_context, param1: ?*const anyopaque, param2: i32, param3: isize, ) callconv(@import("std").os.windows.WINAPI) void; pub extern "winsqlite3" fn sqlite3_result_blob64( param0: ?*sqlite3_context, param1: ?*const anyopaque, param2: u64, param3: isize, ) callconv(@import("std").os.windows.WINAPI) void; pub extern "winsqlite3" fn sqlite3_result_double( param0: ?*sqlite3_context, param1: f64, ) callconv(@import("std").os.windows.WINAPI) void; pub extern "winsqlite3" fn sqlite3_result_error( param0: ?*sqlite3_context, param1: ?[*:0]const u8, param2: i32, ) callconv(@import("std").os.windows.WINAPI) void; pub extern "winsqlite3" fn sqlite3_result_error16( param0: ?*sqlite3_context, param1: ?*const anyopaque, param2: i32, ) callconv(@import("std").os.windows.WINAPI) void; pub extern "winsqlite3" fn sqlite3_result_error_toobig( param0: ?*sqlite3_context, ) callconv(@import("std").os.windows.WINAPI) void; pub extern "winsqlite3" fn sqlite3_result_error_nomem( param0: ?*sqlite3_context, ) callconv(@import("std").os.windows.WINAPI) void; pub extern "winsqlite3" fn sqlite3_result_error_code( param0: ?*sqlite3_context, param1: i32, ) callconv(@import("std").os.windows.WINAPI) void; pub extern "winsqlite3" fn sqlite3_result_int( param0: ?*sqlite3_context, param1: i32, ) callconv(@import("std").os.windows.WINAPI) void; pub extern "winsqlite3" fn sqlite3_result_int64( param0: ?*sqlite3_context, param1: i64, ) callconv(@import("std").os.windows.WINAPI) void; pub extern "winsqlite3" fn sqlite3_result_null( param0: ?*sqlite3_context, ) callconv(@import("std").os.windows.WINAPI) void; pub extern "winsqlite3" fn sqlite3_result_text( param0: ?*sqlite3_context, param1: ?[*:0]const u8, param2: i32, param3: isize, ) callconv(@import("std").os.windows.WINAPI) void; pub extern "winsqlite3" fn sqlite3_result_text64( param0: ?*sqlite3_context, param1: ?[*:0]const u8, param2: u64, param3: isize, encoding: u8, ) callconv(@import("std").os.windows.WINAPI) void; pub extern "winsqlite3" fn sqlite3_result_text16( param0: ?*sqlite3_context, param1: ?*const anyopaque, param2: i32, param3: isize, ) callconv(@import("std").os.windows.WINAPI) void; pub extern "winsqlite3" fn sqlite3_result_text16le( param0: ?*sqlite3_context, param1: ?*const anyopaque, param2: i32, param3: isize, ) callconv(@import("std").os.windows.WINAPI) void; pub extern "winsqlite3" fn sqlite3_result_text16be( param0: ?*sqlite3_context, param1: ?*const anyopaque, param2: i32, param3: isize, ) callconv(@import("std").os.windows.WINAPI) void; pub extern "winsqlite3" fn sqlite3_result_value( param0: ?*sqlite3_context, param1: ?*sqlite3_value, ) callconv(@import("std").os.windows.WINAPI) void; pub extern "winsqlite3" fn sqlite3_result_pointer( param0: ?*sqlite3_context, param1: ?*anyopaque, param2: ?[*:0]const u8, param3: isize, ) callconv(@import("std").os.windows.WINAPI) void; pub extern "winsqlite3" fn sqlite3_result_zeroblob( param0: ?*sqlite3_context, n: i32, ) callconv(@import("std").os.windows.WINAPI) void; pub extern "winsqlite3" fn sqlite3_result_zeroblob64( param0: ?*sqlite3_context, n: u64, ) callconv(@import("std").os.windows.WINAPI) i32; pub extern "winsqlite3" fn sqlite3_result_subtype( param0: ?*sqlite3_context, param1: u32, ) callconv(@import("std").os.windows.WINAPI) void; pub extern "winsqlite3" fn sqlite3_create_collation( param0: ?*sqlite3, zName: ?[*:0]const u8, eTextRep: i32, pArg: ?*anyopaque, xCompare: isize, ) callconv(@import("std").os.windows.WINAPI) i32; pub extern "winsqlite3" fn sqlite3_create_collation_v2( param0: ?*sqlite3, zName: ?[*:0]const u8, eTextRep: i32, pArg: ?*anyopaque, xCompare: isize, xDestroy: isize, ) callconv(@import("std").os.windows.WINAPI) i32; pub extern "winsqlite3" fn sqlite3_create_collation16( param0: ?*sqlite3, zName: ?*const anyopaque, eTextRep: i32, pArg: ?*anyopaque, xCompare: isize, ) callconv(@import("std").os.windows.WINAPI) i32; pub extern "winsqlite3" fn sqlite3_collation_needed( param0: ?*sqlite3, param1: ?*anyopaque, param2: isize, ) callconv(@import("std").os.windows.WINAPI) i32; pub extern "winsqlite3" fn sqlite3_collation_needed16( param0: ?*sqlite3, param1: ?*anyopaque, param2: isize, ) callconv(@import("std").os.windows.WINAPI) i32; pub extern "winsqlite3" fn sqlite3_sleep( param0: i32, ) callconv(@import("std").os.windows.WINAPI) i32; pub extern "winsqlite3" fn sqlite3_win32_set_directory( type: u32, zValue: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) i32; pub extern "winsqlite3" fn sqlite3_win32_set_directory8( type: u32, zValue: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) i32; pub extern "winsqlite3" fn sqlite3_win32_set_directory16( type: u32, zValue: ?*const anyopaque, ) callconv(@import("std").os.windows.WINAPI) i32; pub extern "winsqlite3" fn sqlite3_get_autocommit( param0: ?*sqlite3, ) callconv(@import("std").os.windows.WINAPI) i32; pub extern "winsqlite3" fn sqlite3_db_handle( param0: ?*sqlite3_stmt, ) callconv(@import("std").os.windows.WINAPI) ?*sqlite3; pub extern "winsqlite3" fn sqlite3_db_filename( db: ?*sqlite3, zDbName: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) ?PSTR; pub extern "winsqlite3" fn sqlite3_db_readonly( db: ?*sqlite3, zDbName: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) i32; pub extern "winsqlite3" fn sqlite3_txn_state( param0: ?*sqlite3, zSchema: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) i32; pub extern "winsqlite3" fn sqlite3_next_stmt( pDb: ?*sqlite3, pStmt: ?*sqlite3_stmt, ) callconv(@import("std").os.windows.WINAPI) ?*sqlite3_stmt; pub extern "winsqlite3" fn sqlite3_commit_hook( param0: ?*sqlite3, param1: isize, param2: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) ?*anyopaque; pub extern "winsqlite3" fn sqlite3_rollback_hook( param0: ?*sqlite3, param1: isize, param2: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) ?*anyopaque; pub extern "winsqlite3" fn sqlite3_update_hook( param0: ?*sqlite3, param1: isize, param2: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) ?*anyopaque; pub extern "winsqlite3" fn sqlite3_enable_shared_cache( param0: i32, ) callconv(@import("std").os.windows.WINAPI) i32; pub extern "winsqlite3" fn sqlite3_release_memory( param0: i32, ) callconv(@import("std").os.windows.WINAPI) i32; pub extern "winsqlite3" fn sqlite3_db_release_memory( param0: ?*sqlite3, ) callconv(@import("std").os.windows.WINAPI) i32; pub extern "winsqlite3" fn sqlite3_soft_heap_limit64( N: i64, ) callconv(@import("std").os.windows.WINAPI) i64; pub extern "winsqlite3" fn sqlite3_hard_heap_limit64( N: i64, ) callconv(@import("std").os.windows.WINAPI) i64; pub extern "winsqlite3" fn sqlite3_soft_heap_limit( N: i32, ) callconv(@import("std").os.windows.WINAPI) void; pub extern "winsqlite3" fn sqlite3_table_column_metadata( db: ?*sqlite3, zDbName: ?[*:0]const u8, zTableName: ?[*:0]const u8, zColumnName: ?[*:0]const u8, pzDataType: ?*const ?*i8, pzCollSeq: ?*const ?*i8, pNotNull: ?*i32, pPrimaryKey: ?*i32, pAutoinc: ?*i32, ) callconv(@import("std").os.windows.WINAPI) i32; pub extern "winsqlite3" fn sqlite3_load_extension( db: ?*sqlite3, zFile: ?[*:0]const u8, zProc: ?[*:0]const u8, pzErrMsg: ?*?*i8, ) callconv(@import("std").os.windows.WINAPI) i32; pub extern "winsqlite3" fn sqlite3_enable_load_extension( db: ?*sqlite3, onoff: i32, ) callconv(@import("std").os.windows.WINAPI) i32; pub extern "winsqlite3" fn sqlite3_auto_extension( xEntryPoint: isize, ) callconv(@import("std").os.windows.WINAPI) i32; pub extern "winsqlite3" fn sqlite3_cancel_auto_extension( xEntryPoint: isize, ) callconv(@import("std").os.windows.WINAPI) i32; pub extern "winsqlite3" fn sqlite3_reset_auto_extension() callconv(@import("std").os.windows.WINAPI) void; pub extern "winsqlite3" fn sqlite3_create_module( db: ?*sqlite3, zName: ?[*:0]const u8, p: ?*const sqlite3_module, pClientData: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) i32; pub extern "winsqlite3" fn sqlite3_create_module_v2( db: ?*sqlite3, zName: ?[*:0]const u8, p: ?*const sqlite3_module, pClientData: ?*anyopaque, xDestroy: isize, ) callconv(@import("std").os.windows.WINAPI) i32; pub extern "winsqlite3" fn sqlite3_drop_modules( db: ?*sqlite3, azKeep: ?*const ?*i8, ) callconv(@import("std").os.windows.WINAPI) i32; pub extern "winsqlite3" fn sqlite3_declare_vtab( param0: ?*sqlite3, zSQL: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) i32; pub extern "winsqlite3" fn sqlite3_overload_function( param0: ?*sqlite3, zFuncName: ?[*:0]const u8, nArg: i32, ) callconv(@import("std").os.windows.WINAPI) i32; pub extern "winsqlite3" fn sqlite3_blob_open( param0: ?*sqlite3, zDb: ?[*:0]const u8, zTable: ?[*:0]const u8, zColumn: ?[*:0]const u8, iRow: i64, flags: i32, ppBlob: ?*?*sqlite3_blob, ) callconv(@import("std").os.windows.WINAPI) i32; pub extern "winsqlite3" fn sqlite3_blob_reopen( param0: ?*sqlite3_blob, param1: i64, ) callconv(@import("std").os.windows.WINAPI) i32; pub extern "winsqlite3" fn sqlite3_blob_close( param0: ?*sqlite3_blob, ) callconv(@import("std").os.windows.WINAPI) i32; pub extern "winsqlite3" fn sqlite3_blob_bytes( param0: ?*sqlite3_blob, ) callconv(@import("std").os.windows.WINAPI) i32; pub extern "winsqlite3" fn sqlite3_blob_read( param0: ?*sqlite3_blob, Z: ?*anyopaque, N: i32, iOffset: i32, ) callconv(@import("std").os.windows.WINAPI) i32; pub extern "winsqlite3" fn sqlite3_blob_write( param0: ?*sqlite3_blob, z: ?*const anyopaque, n: i32, iOffset: i32, ) callconv(@import("std").os.windows.WINAPI) i32; pub extern "winsqlite3" fn sqlite3_vfs_find( zVfsName: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) ?*sqlite3_vfs; pub extern "winsqlite3" fn sqlite3_vfs_register( param0: ?*sqlite3_vfs, makeDflt: i32, ) callconv(@import("std").os.windows.WINAPI) i32; pub extern "winsqlite3" fn sqlite3_vfs_unregister( param0: ?*sqlite3_vfs, ) callconv(@import("std").os.windows.WINAPI) i32; pub extern "winsqlite3" fn sqlite3_mutex_alloc( param0: i32, ) callconv(@import("std").os.windows.WINAPI) ?*sqlite3_mutex; pub extern "winsqlite3" fn sqlite3_mutex_free( param0: ?*sqlite3_mutex, ) callconv(@import("std").os.windows.WINAPI) void; pub extern "winsqlite3" fn sqlite3_mutex_enter( param0: ?*sqlite3_mutex, ) callconv(@import("std").os.windows.WINAPI) void; pub extern "winsqlite3" fn sqlite3_mutex_try( param0: ?*sqlite3_mutex, ) callconv(@import("std").os.windows.WINAPI) i32; pub extern "winsqlite3" fn sqlite3_mutex_leave( param0: ?*sqlite3_mutex, ) callconv(@import("std").os.windows.WINAPI) void; pub extern "winsqlite3" fn sqlite3_db_mutex( param0: ?*sqlite3, ) callconv(@import("std").os.windows.WINAPI) ?*sqlite3_mutex; pub extern "winsqlite3" fn sqlite3_file_control( param0: ?*sqlite3, zDbName: ?[*:0]const u8, op: i32, param3: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) i32; pub extern "winsqlite3" fn sqlite3_test_control( op: i32, ) callconv(@import("std").os.windows.WINAPI) i32; pub extern "winsqlite3" fn sqlite3_keyword_count() callconv(@import("std").os.windows.WINAPI) i32; pub extern "winsqlite3" fn sqlite3_keyword_name( param0: i32, param1: ?*const ?*i8, param2: ?*i32, ) callconv(@import("std").os.windows.WINAPI) i32; pub extern "winsqlite3" fn sqlite3_keyword_check( param0: ?[*:0]const u8, param1: i32, ) callconv(@import("std").os.windows.WINAPI) i32; pub extern "winsqlite3" fn sqlite3_str_new( param0: ?*sqlite3, ) callconv(@import("std").os.windows.WINAPI) ?*sqlite3_str; pub extern "winsqlite3" fn sqlite3_str_finish( param0: ?*sqlite3_str, ) callconv(@import("std").os.windows.WINAPI) ?PSTR; pub extern "winsqlite3" fn sqlite3_str_appendf( param0: ?*sqlite3_str, zFormat: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) void; pub extern "winsqlite3" fn sqlite3_str_vappendf( param0: ?*sqlite3_str, zFormat: ?[*:0]const u8, param2: ?*i8, ) callconv(@import("std").os.windows.WINAPI) void; pub extern "winsqlite3" fn sqlite3_str_append( param0: ?*sqlite3_str, zIn: ?[*:0]const u8, N: i32, ) callconv(@import("std").os.windows.WINAPI) void; pub extern "winsqlite3" fn sqlite3_str_appendall( param0: ?*sqlite3_str, zIn: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) void; pub extern "winsqlite3" fn sqlite3_str_appendchar( param0: ?*sqlite3_str, N: i32, C: CHAR, ) callconv(@import("std").os.windows.WINAPI) void; pub extern "winsqlite3" fn sqlite3_str_reset( param0: ?*sqlite3_str, ) callconv(@import("std").os.windows.WINAPI) void; pub extern "winsqlite3" fn sqlite3_str_errcode( param0: ?*sqlite3_str, ) callconv(@import("std").os.windows.WINAPI) i32; pub extern "winsqlite3" fn sqlite3_str_length( param0: ?*sqlite3_str, ) callconv(@import("std").os.windows.WINAPI) i32; pub extern "winsqlite3" fn sqlite3_str_value( param0: ?*sqlite3_str, ) callconv(@import("std").os.windows.WINAPI) ?PSTR; pub extern "winsqlite3" fn sqlite3_status( op: i32, pCurrent: ?*i32, pHighwater: ?*i32, resetFlag: i32, ) callconv(@import("std").os.windows.WINAPI) i32; pub extern "winsqlite3" fn sqlite3_status64( op: i32, pCurrent: ?*i64, pHighwater: ?*i64, resetFlag: i32, ) callconv(@import("std").os.windows.WINAPI) i32; pub extern "winsqlite3" fn sqlite3_db_status( param0: ?*sqlite3, op: i32, pCur: ?*i32, pHiwtr: ?*i32, resetFlg: i32, ) callconv(@import("std").os.windows.WINAPI) i32; pub extern "winsqlite3" fn sqlite3_stmt_status( param0: ?*sqlite3_stmt, op: i32, resetFlg: i32, ) callconv(@import("std").os.windows.WINAPI) i32; pub extern "winsqlite3" fn sqlite3_backup_init( pDest: ?*sqlite3, zDestName: ?[*:0]const u8, pSource: ?*sqlite3, zSourceName: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) ?*sqlite3_backup; pub extern "winsqlite3" fn sqlite3_backup_step( p: ?*sqlite3_backup, nPage: i32, ) callconv(@import("std").os.windows.WINAPI) i32; pub extern "winsqlite3" fn sqlite3_backup_finish( p: ?*sqlite3_backup, ) callconv(@import("std").os.windows.WINAPI) i32; pub extern "winsqlite3" fn sqlite3_backup_remaining( p: ?*sqlite3_backup, ) callconv(@import("std").os.windows.WINAPI) i32; pub extern "winsqlite3" fn sqlite3_backup_pagecount( p: ?*sqlite3_backup, ) callconv(@import("std").os.windows.WINAPI) i32; pub extern "winsqlite3" fn sqlite3_stricmp( param0: ?[*:0]const u8, param1: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) i32; pub extern "winsqlite3" fn sqlite3_strnicmp( param0: ?[*:0]const u8, param1: ?[*:0]const u8, param2: i32, ) callconv(@import("std").os.windows.WINAPI) i32; pub extern "winsqlite3" fn sqlite3_strglob( zGlob: ?[*:0]const u8, zStr: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) i32; pub extern "winsqlite3" fn sqlite3_strlike( zGlob: ?[*:0]const u8, zStr: ?[*:0]const u8, cEsc: u32, ) callconv(@import("std").os.windows.WINAPI) i32; pub extern "winsqlite3" fn sqlite3_log( iErrCode: i32, zFormat: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) void; pub extern "winsqlite3" fn sqlite3_wal_hook( param0: ?*sqlite3, param1: isize, param2: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) ?*anyopaque; pub extern "winsqlite3" fn sqlite3_wal_autocheckpoint( db: ?*sqlite3, N: i32, ) callconv(@import("std").os.windows.WINAPI) i32; pub extern "winsqlite3" fn sqlite3_wal_checkpoint( db: ?*sqlite3, zDb: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) i32; pub extern "winsqlite3" fn sqlite3_wal_checkpoint_v2( db: ?*sqlite3, zDb: ?[*:0]const u8, eMode: i32, pnLog: ?*i32, pnCkpt: ?*i32, ) callconv(@import("std").os.windows.WINAPI) i32; pub extern "winsqlite3" fn sqlite3_vtab_config( param0: ?*sqlite3, op: i32, ) callconv(@import("std").os.windows.WINAPI) i32; pub extern "winsqlite3" fn sqlite3_vtab_on_conflict( param0: ?*sqlite3, ) callconv(@import("std").os.windows.WINAPI) i32; pub extern "winsqlite3" fn sqlite3_vtab_nochange( param0: ?*sqlite3_context, ) callconv(@import("std").os.windows.WINAPI) i32; pub extern "winsqlite3" fn sqlite3_vtab_collation( param0: ?*sqlite3_index_info, param1: i32, ) callconv(@import("std").os.windows.WINAPI) ?PSTR; pub extern "winsqlite3" fn sqlite3_db_cacheflush( param0: ?*sqlite3, ) callconv(@import("std").os.windows.WINAPI) i32; pub extern "winsqlite3" fn sqlite3_system_errno( param0: ?*sqlite3, ) callconv(@import("std").os.windows.WINAPI) i32; pub extern "winsqlite3" fn sqlite3_serialize( db: ?*sqlite3, zSchema: ?[*:0]const u8, piSize: ?*i64, mFlags: u32, ) callconv(@import("std").os.windows.WINAPI) ?*u8; pub extern "winsqlite3" fn sqlite3_deserialize( db: ?*sqlite3, zSchema: ?[*:0]const u8, pData: ?*u8, szDb: i64, szBuf: i64, mFlags: u32, ) callconv(@import("std").os.windows.WINAPI) i32; pub extern "winsqlite3" fn sqlite3_rtree_geometry_callback( db: ?*sqlite3, zGeom: ?[*:0]const u8, xGeom: isize, pContext: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) i32; pub extern "winsqlite3" fn sqlite3_rtree_query_callback( db: ?*sqlite3, zQueryFunc: ?[*:0]const u8, xQueryFunc: isize, pContext: ?*anyopaque, xDestructor: isize, ) callconv(@import("std").os.windows.WINAPI) i32; //-------------------------------------------------------------------------------- // Section: Unicode Aliases (0) //-------------------------------------------------------------------------------- const thismodule = @This(); pub usingnamespace switch (@import("../zig.zig").unicode_mode) { .ansi => struct {}, .wide => struct {}, .unspecified => if (@import("builtin").is_test) struct {} else struct {}, }; //-------------------------------------------------------------------------------- // Section: Imports (2) //-------------------------------------------------------------------------------- const CHAR = @import("../foundation.zig").CHAR; const PSTR = @import("../foundation.zig").PSTR; test { // The following '_ = <FuncPtrType>' lines are a workaround for https://github.com/ziglang/zig/issues/4476 if (@hasDecl(@This(), "sqlite3_callback")) { _ = sqlite3_callback; } if (@hasDecl(@This(), "sqlite3_syscall_ptr")) { _ = sqlite3_syscall_ptr; } if (@hasDecl(@This(), "sqlite3_destructor_type")) { _ = sqlite3_destructor_type; } if (@hasDecl(@This(), "fts5_extension_function")) { _ = fts5_extension_function; } if (@hasDecl(@This(), "sqlite3_loadext_entry")) { _ = sqlite3_loadext_entry; } @setEvalBranchQuota(comptime @import("std").meta.declarations(@This()).len * 3); // reference all the pub declarations if (!@import("builtin").is_test) return; inline for (comptime @import("std").meta.declarations(@This())) |decl| { if (decl.is_pub) { _ = @field(@This(), decl.name); } } }
0
repos/capy/vendor/zigwin32/win32/system
repos/capy/vendor/zigwin32/win32/system/search/common.zig
//! NOTE: this file is autogenerated, DO NOT MODIFY //-------------------------------------------------------------------------------- // Section: Constants (0) //-------------------------------------------------------------------------------- //-------------------------------------------------------------------------------- // Section: Types (2) //-------------------------------------------------------------------------------- pub const CONDITION_TYPE = enum(i32) { AND_CONDITION = 0, OR_CONDITION = 1, NOT_CONDITION = 2, LEAF_CONDITION = 3, }; pub const CT_AND_CONDITION = CONDITION_TYPE.AND_CONDITION; pub const CT_OR_CONDITION = CONDITION_TYPE.OR_CONDITION; pub const CT_NOT_CONDITION = CONDITION_TYPE.NOT_CONDITION; pub const CT_LEAF_CONDITION = CONDITION_TYPE.LEAF_CONDITION; pub const CONDITION_OPERATION = enum(i32) { IMPLICIT = 0, EQUAL = 1, NOTEQUAL = 2, LESSTHAN = 3, GREATERTHAN = 4, LESSTHANOREQUAL = 5, GREATERTHANOREQUAL = 6, VALUE_STARTSWITH = 7, VALUE_ENDSWITH = 8, VALUE_CONTAINS = 9, VALUE_NOTCONTAINS = 10, DOSWILDCARDS = 11, WORD_EQUAL = 12, WORD_STARTSWITH = 13, APPLICATION_SPECIFIC = 14, }; pub const COP_IMPLICIT = CONDITION_OPERATION.IMPLICIT; pub const COP_EQUAL = CONDITION_OPERATION.EQUAL; pub const COP_NOTEQUAL = CONDITION_OPERATION.NOTEQUAL; pub const COP_LESSTHAN = CONDITION_OPERATION.LESSTHAN; pub const COP_GREATERTHAN = CONDITION_OPERATION.GREATERTHAN; pub const COP_LESSTHANOREQUAL = CONDITION_OPERATION.LESSTHANOREQUAL; pub const COP_GREATERTHANOREQUAL = CONDITION_OPERATION.GREATERTHANOREQUAL; pub const COP_VALUE_STARTSWITH = CONDITION_OPERATION.VALUE_STARTSWITH; pub const COP_VALUE_ENDSWITH = CONDITION_OPERATION.VALUE_ENDSWITH; pub const COP_VALUE_CONTAINS = CONDITION_OPERATION.VALUE_CONTAINS; pub const COP_VALUE_NOTCONTAINS = CONDITION_OPERATION.VALUE_NOTCONTAINS; pub const COP_DOSWILDCARDS = CONDITION_OPERATION.DOSWILDCARDS; pub const COP_WORD_EQUAL = CONDITION_OPERATION.WORD_EQUAL; pub const COP_WORD_STARTSWITH = CONDITION_OPERATION.WORD_STARTSWITH; pub const COP_APPLICATION_SPECIFIC = CONDITION_OPERATION.APPLICATION_SPECIFIC; //-------------------------------------------------------------------------------- // Section: Functions (0) //-------------------------------------------------------------------------------- //-------------------------------------------------------------------------------- // Section: Unicode Aliases (0) //-------------------------------------------------------------------------------- const thismodule = @This(); pub usingnamespace switch (@import("../../zig.zig").unicode_mode) { .ansi => struct {}, .wide => struct {}, .unspecified => if (@import("builtin").is_test) struct {} else struct {}, }; //-------------------------------------------------------------------------------- // Section: Imports (0) //-------------------------------------------------------------------------------- test { @setEvalBranchQuota(comptime @import("std").meta.declarations(@This()).len * 3); // reference all the pub declarations if (!@import("builtin").is_test) return; inline for (comptime @import("std").meta.declarations(@This())) |decl| { if (decl.is_pub) { _ = @field(@This(), decl.name); } } }
0
repos/capy/vendor/zigwin32/win32/system
repos/capy/vendor/zigwin32/win32/system/com/ui.zig
//! NOTE: this file is autogenerated, DO NOT MODIFY //-------------------------------------------------------------------------------- // Section: Constants (0) //-------------------------------------------------------------------------------- //-------------------------------------------------------------------------------- // Section: Types (2) //-------------------------------------------------------------------------------- const IID_IThumbnailExtractor_Value = Guid.initString("969dc708-5c76-11d1-8d86-0000f804b057"); pub const IID_IThumbnailExtractor = &IID_IThumbnailExtractor_Value; pub const IThumbnailExtractor = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, ExtractThumbnail: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IThumbnailExtractor, pStg: ?*IStorage, ulLength: u32, ulHeight: u32, pulOutputLength: ?*u32, pulOutputHeight: ?*u32, phOutputBitmap: ?*?HBITMAP, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IThumbnailExtractor, pStg: ?*IStorage, ulLength: u32, ulHeight: u32, pulOutputLength: ?*u32, pulOutputHeight: ?*u32, phOutputBitmap: ?*?HBITMAP, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, OnFileUpdated: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IThumbnailExtractor, pStg: ?*IStorage, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IThumbnailExtractor, pStg: ?*IStorage, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IThumbnailExtractor_ExtractThumbnail(self: *const T, pStg: ?*IStorage, ulLength: u32, ulHeight: u32, pulOutputLength: ?*u32, pulOutputHeight: ?*u32, phOutputBitmap: ?*?HBITMAP) HRESULT { return @as(*const IThumbnailExtractor.VTable, @ptrCast(self.vtable)).ExtractThumbnail(@as(*const IThumbnailExtractor, @ptrCast(self)), pStg, ulLength, ulHeight, pulOutputLength, pulOutputHeight, phOutputBitmap); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IThumbnailExtractor_OnFileUpdated(self: *const T, pStg: ?*IStorage) HRESULT { return @as(*const IThumbnailExtractor.VTable, @ptrCast(self.vtable)).OnFileUpdated(@as(*const IThumbnailExtractor, @ptrCast(self)), pStg); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IDummyHICONIncluder_Value = Guid.initString("947990de-cc28-11d2-a0f7-00805f858fb1"); pub const IID_IDummyHICONIncluder = &IID_IDummyHICONIncluder_Value; pub const IDummyHICONIncluder = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, Dummy: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDummyHICONIncluder, h1: ?HICON, h2: ?HDC, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDummyHICONIncluder, h1: ?HICON, h2: ?HDC, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDummyHICONIncluder_Dummy(self: *const T, h1: ?HICON, h2: ?HDC) HRESULT { return @as(*const IDummyHICONIncluder.VTable, @ptrCast(self.vtable)).Dummy(@as(*const IDummyHICONIncluder, @ptrCast(self)), h1, h2); } }; } pub usingnamespace MethodMixin(@This()); }; //-------------------------------------------------------------------------------- // Section: Functions (0) //-------------------------------------------------------------------------------- //-------------------------------------------------------------------------------- // Section: Unicode Aliases (0) //-------------------------------------------------------------------------------- const thismodule = @This(); pub usingnamespace switch (@import("../../zig.zig").unicode_mode) { .ansi => struct {}, .wide => struct {}, .unspecified => if (@import("builtin").is_test) struct {} else struct {}, }; //-------------------------------------------------------------------------------- // Section: Imports (7) //-------------------------------------------------------------------------------- const Guid = @import("../../zig.zig").Guid; const HBITMAP = @import("../../graphics/gdi.zig").HBITMAP; const HDC = @import("../../graphics/gdi.zig").HDC; const HICON = @import("../../ui/windows_and_messaging.zig").HICON; const HRESULT = @import("../../foundation.zig").HRESULT; const IStorage = @import("../../system/com/structured_storage.zig").IStorage; const IUnknown = @import("../../system/com.zig").IUnknown; test { @setEvalBranchQuota(comptime @import("std").meta.declarations(@This()).len * 3); // reference all the pub declarations if (!@import("builtin").is_test) return; inline for (comptime @import("std").meta.declarations(@This())) |decl| { if (decl.is_pub) { _ = @field(@This(), decl.name); } } }
0
repos/capy/vendor/zigwin32/win32/system
repos/capy/vendor/zigwin32/win32/system/com/events.zig
//! NOTE: this file is autogenerated, DO NOT MODIFY //-------------------------------------------------------------------------------- // Section: Constants (0) //-------------------------------------------------------------------------------- //-------------------------------------------------------------------------------- // Section: Types (24) //-------------------------------------------------------------------------------- const CLSID_CEventSystem_Value = Guid.initString("4e14fba2-2e22-11d1-9964-00c04fbbb345"); pub const CLSID_CEventSystem = &CLSID_CEventSystem_Value; const CLSID_CEventPublisher_Value = Guid.initString("ab944620-79c6-11d1-88f9-0080c7d771bf"); pub const CLSID_CEventPublisher = &CLSID_CEventPublisher_Value; const CLSID_CEventClass_Value = Guid.initString("cdbec9c0-7a68-11d1-88f9-0080c7d771bf"); pub const CLSID_CEventClass = &CLSID_CEventClass_Value; const CLSID_CEventSubscription_Value = Guid.initString("7542e960-79c7-11d1-88f9-0080c7d771bf"); pub const CLSID_CEventSubscription = &CLSID_CEventSubscription_Value; const CLSID_EventObjectChange_Value = Guid.initString("d0565000-9df4-11d1-a281-00c04fca0aa7"); pub const CLSID_EventObjectChange = &CLSID_EventObjectChange_Value; const CLSID_EventObjectChange2_Value = Guid.initString("bb07bacd-cd56-4e63-a8ff-cbf0355fb9f4"); pub const CLSID_EventObjectChange2 = &CLSID_EventObjectChange2_Value; // TODO: this type is limited to platform 'windows5.0' const IID_IEventSystem_Value = Guid.initString("4e14fb9f-2e22-11d1-9964-00c04fbbb345"); pub const IID_IEventSystem = &IID_IEventSystem_Value; pub const IEventSystem = extern struct { pub const VTable = extern struct { base: IDispatch.VTable, Query: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IEventSystem, progID: ?BSTR, queryCriteria: ?BSTR, errorIndex: ?*i32, ppInterface: ?*?*IUnknown, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IEventSystem, progID: ?BSTR, queryCriteria: ?BSTR, errorIndex: ?*i32, ppInterface: ?*?*IUnknown, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Store: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IEventSystem, ProgID: ?BSTR, pInterface: ?*IUnknown, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IEventSystem, ProgID: ?BSTR, pInterface: ?*IUnknown, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Remove: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IEventSystem, progID: ?BSTR, queryCriteria: ?BSTR, errorIndex: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IEventSystem, progID: ?BSTR, queryCriteria: ?BSTR, errorIndex: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_EventObjectChangeEventClassID: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IEventSystem, pbstrEventClassID: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IEventSystem, pbstrEventClassID: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, QueryS: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IEventSystem, progID: ?BSTR, queryCriteria: ?BSTR, ppInterface: ?*?*IUnknown, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IEventSystem, progID: ?BSTR, queryCriteria: ?BSTR, ppInterface: ?*?*IUnknown, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, RemoveS: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IEventSystem, progID: ?BSTR, queryCriteria: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IEventSystem, progID: ?BSTR, queryCriteria: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IDispatch.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IEventSystem_Query(self: *const T, progID: ?BSTR, queryCriteria: ?BSTR, errorIndex: ?*i32, ppInterface: ?*?*IUnknown) HRESULT { return @as(*const IEventSystem.VTable, @ptrCast(self.vtable)).Query(@as(*const IEventSystem, @ptrCast(self)), progID, queryCriteria, errorIndex, ppInterface); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IEventSystem_Store(self: *const T, ProgID: ?BSTR, pInterface: ?*IUnknown) HRESULT { return @as(*const IEventSystem.VTable, @ptrCast(self.vtable)).Store(@as(*const IEventSystem, @ptrCast(self)), ProgID, pInterface); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IEventSystem_Remove(self: *const T, progID: ?BSTR, queryCriteria: ?BSTR, errorIndex: ?*i32) HRESULT { return @as(*const IEventSystem.VTable, @ptrCast(self.vtable)).Remove(@as(*const IEventSystem, @ptrCast(self)), progID, queryCriteria, errorIndex); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IEventSystem_get_EventObjectChangeEventClassID(self: *const T, pbstrEventClassID: ?*?BSTR) HRESULT { return @as(*const IEventSystem.VTable, @ptrCast(self.vtable)).get_EventObjectChangeEventClassID(@as(*const IEventSystem, @ptrCast(self)), pbstrEventClassID); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IEventSystem_QueryS(self: *const T, progID: ?BSTR, queryCriteria: ?BSTR, ppInterface: ?*?*IUnknown) HRESULT { return @as(*const IEventSystem.VTable, @ptrCast(self.vtable)).QueryS(@as(*const IEventSystem, @ptrCast(self)), progID, queryCriteria, ppInterface); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IEventSystem_RemoveS(self: *const T, progID: ?BSTR, queryCriteria: ?BSTR) HRESULT { return @as(*const IEventSystem.VTable, @ptrCast(self.vtable)).RemoveS(@as(*const IEventSystem, @ptrCast(self)), progID, queryCriteria); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows5.0' const IID_IEventPublisher_Value = Guid.initString("e341516b-2e32-11d1-9964-00c04fbbb345"); pub const IID_IEventPublisher = &IID_IEventPublisher_Value; pub const IEventPublisher = extern struct { pub const VTable = extern struct { base: IDispatch.VTable, // TODO: this function has a "SpecialName", should Zig do anything with this? get_PublisherID: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IEventPublisher, pbstrPublisherID: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IEventPublisher, pbstrPublisherID: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_PublisherID: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IEventPublisher, bstrPublisherID: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IEventPublisher, bstrPublisherID: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_PublisherName: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IEventPublisher, pbstrPublisherName: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IEventPublisher, pbstrPublisherName: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_PublisherName: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IEventPublisher, bstrPublisherName: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IEventPublisher, bstrPublisherName: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_PublisherType: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IEventPublisher, pbstrPublisherType: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IEventPublisher, pbstrPublisherType: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_PublisherType: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IEventPublisher, bstrPublisherType: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IEventPublisher, bstrPublisherType: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_OwnerSID: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IEventPublisher, pbstrOwnerSID: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IEventPublisher, pbstrOwnerSID: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_OwnerSID: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IEventPublisher, bstrOwnerSID: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IEventPublisher, bstrOwnerSID: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Description: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IEventPublisher, pbstrDescription: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IEventPublisher, pbstrDescription: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_Description: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IEventPublisher, bstrDescription: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IEventPublisher, bstrDescription: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetDefaultProperty: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IEventPublisher, bstrPropertyName: ?BSTR, propertyValue: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IEventPublisher, bstrPropertyName: ?BSTR, propertyValue: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, PutDefaultProperty: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IEventPublisher, bstrPropertyName: ?BSTR, propertyValue: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IEventPublisher, bstrPropertyName: ?BSTR, propertyValue: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, RemoveDefaultProperty: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IEventPublisher, bstrPropertyName: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IEventPublisher, bstrPropertyName: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetDefaultPropertyCollection: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IEventPublisher, collection: ?*?*IEventObjectCollection, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IEventPublisher, collection: ?*?*IEventObjectCollection, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IDispatch.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IEventPublisher_get_PublisherID(self: *const T, pbstrPublisherID: ?*?BSTR) HRESULT { return @as(*const IEventPublisher.VTable, @ptrCast(self.vtable)).get_PublisherID(@as(*const IEventPublisher, @ptrCast(self)), pbstrPublisherID); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IEventPublisher_put_PublisherID(self: *const T, bstrPublisherID: ?BSTR) HRESULT { return @as(*const IEventPublisher.VTable, @ptrCast(self.vtable)).put_PublisherID(@as(*const IEventPublisher, @ptrCast(self)), bstrPublisherID); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IEventPublisher_get_PublisherName(self: *const T, pbstrPublisherName: ?*?BSTR) HRESULT { return @as(*const IEventPublisher.VTable, @ptrCast(self.vtable)).get_PublisherName(@as(*const IEventPublisher, @ptrCast(self)), pbstrPublisherName); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IEventPublisher_put_PublisherName(self: *const T, bstrPublisherName: ?BSTR) HRESULT { return @as(*const IEventPublisher.VTable, @ptrCast(self.vtable)).put_PublisherName(@as(*const IEventPublisher, @ptrCast(self)), bstrPublisherName); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IEventPublisher_get_PublisherType(self: *const T, pbstrPublisherType: ?*?BSTR) HRESULT { return @as(*const IEventPublisher.VTable, @ptrCast(self.vtable)).get_PublisherType(@as(*const IEventPublisher, @ptrCast(self)), pbstrPublisherType); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IEventPublisher_put_PublisherType(self: *const T, bstrPublisherType: ?BSTR) HRESULT { return @as(*const IEventPublisher.VTable, @ptrCast(self.vtable)).put_PublisherType(@as(*const IEventPublisher, @ptrCast(self)), bstrPublisherType); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IEventPublisher_get_OwnerSID(self: *const T, pbstrOwnerSID: ?*?BSTR) HRESULT { return @as(*const IEventPublisher.VTable, @ptrCast(self.vtable)).get_OwnerSID(@as(*const IEventPublisher, @ptrCast(self)), pbstrOwnerSID); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IEventPublisher_put_OwnerSID(self: *const T, bstrOwnerSID: ?BSTR) HRESULT { return @as(*const IEventPublisher.VTable, @ptrCast(self.vtable)).put_OwnerSID(@as(*const IEventPublisher, @ptrCast(self)), bstrOwnerSID); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IEventPublisher_get_Description(self: *const T, pbstrDescription: ?*?BSTR) HRESULT { return @as(*const IEventPublisher.VTable, @ptrCast(self.vtable)).get_Description(@as(*const IEventPublisher, @ptrCast(self)), pbstrDescription); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IEventPublisher_put_Description(self: *const T, bstrDescription: ?BSTR) HRESULT { return @as(*const IEventPublisher.VTable, @ptrCast(self.vtable)).put_Description(@as(*const IEventPublisher, @ptrCast(self)), bstrDescription); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IEventPublisher_GetDefaultProperty(self: *const T, bstrPropertyName: ?BSTR, propertyValue: ?*VARIANT) HRESULT { return @as(*const IEventPublisher.VTable, @ptrCast(self.vtable)).GetDefaultProperty(@as(*const IEventPublisher, @ptrCast(self)), bstrPropertyName, propertyValue); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IEventPublisher_PutDefaultProperty(self: *const T, bstrPropertyName: ?BSTR, propertyValue: ?*VARIANT) HRESULT { return @as(*const IEventPublisher.VTable, @ptrCast(self.vtable)).PutDefaultProperty(@as(*const IEventPublisher, @ptrCast(self)), bstrPropertyName, propertyValue); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IEventPublisher_RemoveDefaultProperty(self: *const T, bstrPropertyName: ?BSTR) HRESULT { return @as(*const IEventPublisher.VTable, @ptrCast(self.vtable)).RemoveDefaultProperty(@as(*const IEventPublisher, @ptrCast(self)), bstrPropertyName); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IEventPublisher_GetDefaultPropertyCollection(self: *const T, collection: ?*?*IEventObjectCollection) HRESULT { return @as(*const IEventPublisher.VTable, @ptrCast(self.vtable)).GetDefaultPropertyCollection(@as(*const IEventPublisher, @ptrCast(self)), collection); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows5.0' const IID_IEventClass_Value = Guid.initString("fb2b72a0-7a68-11d1-88f9-0080c7d771bf"); pub const IID_IEventClass = &IID_IEventClass_Value; pub const IEventClass = extern struct { pub const VTable = extern struct { base: IDispatch.VTable, // TODO: this function has a "SpecialName", should Zig do anything with this? get_EventClassID: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IEventClass, pbstrEventClassID: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IEventClass, pbstrEventClassID: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_EventClassID: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IEventClass, bstrEventClassID: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IEventClass, bstrEventClassID: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_EventClassName: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IEventClass, pbstrEventClassName: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IEventClass, pbstrEventClassName: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_EventClassName: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IEventClass, bstrEventClassName: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IEventClass, bstrEventClassName: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_OwnerSID: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IEventClass, pbstrOwnerSID: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IEventClass, pbstrOwnerSID: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_OwnerSID: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IEventClass, bstrOwnerSID: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IEventClass, bstrOwnerSID: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_FiringInterfaceID: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IEventClass, pbstrFiringInterfaceID: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IEventClass, pbstrFiringInterfaceID: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_FiringInterfaceID: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IEventClass, bstrFiringInterfaceID: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IEventClass, bstrFiringInterfaceID: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Description: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IEventClass, pbstrDescription: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IEventClass, pbstrDescription: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_Description: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IEventClass, bstrDescription: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IEventClass, bstrDescription: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_CustomConfigCLSID: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IEventClass, pbstrCustomConfigCLSID: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IEventClass, pbstrCustomConfigCLSID: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_CustomConfigCLSID: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IEventClass, bstrCustomConfigCLSID: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IEventClass, bstrCustomConfigCLSID: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_TypeLib: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IEventClass, pbstrTypeLib: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IEventClass, pbstrTypeLib: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_TypeLib: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IEventClass, bstrTypeLib: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IEventClass, bstrTypeLib: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IDispatch.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IEventClass_get_EventClassID(self: *const T, pbstrEventClassID: ?*?BSTR) HRESULT { return @as(*const IEventClass.VTable, @ptrCast(self.vtable)).get_EventClassID(@as(*const IEventClass, @ptrCast(self)), pbstrEventClassID); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IEventClass_put_EventClassID(self: *const T, bstrEventClassID: ?BSTR) HRESULT { return @as(*const IEventClass.VTable, @ptrCast(self.vtable)).put_EventClassID(@as(*const IEventClass, @ptrCast(self)), bstrEventClassID); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IEventClass_get_EventClassName(self: *const T, pbstrEventClassName: ?*?BSTR) HRESULT { return @as(*const IEventClass.VTable, @ptrCast(self.vtable)).get_EventClassName(@as(*const IEventClass, @ptrCast(self)), pbstrEventClassName); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IEventClass_put_EventClassName(self: *const T, bstrEventClassName: ?BSTR) HRESULT { return @as(*const IEventClass.VTable, @ptrCast(self.vtable)).put_EventClassName(@as(*const IEventClass, @ptrCast(self)), bstrEventClassName); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IEventClass_get_OwnerSID(self: *const T, pbstrOwnerSID: ?*?BSTR) HRESULT { return @as(*const IEventClass.VTable, @ptrCast(self.vtable)).get_OwnerSID(@as(*const IEventClass, @ptrCast(self)), pbstrOwnerSID); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IEventClass_put_OwnerSID(self: *const T, bstrOwnerSID: ?BSTR) HRESULT { return @as(*const IEventClass.VTable, @ptrCast(self.vtable)).put_OwnerSID(@as(*const IEventClass, @ptrCast(self)), bstrOwnerSID); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IEventClass_get_FiringInterfaceID(self: *const T, pbstrFiringInterfaceID: ?*?BSTR) HRESULT { return @as(*const IEventClass.VTable, @ptrCast(self.vtable)).get_FiringInterfaceID(@as(*const IEventClass, @ptrCast(self)), pbstrFiringInterfaceID); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IEventClass_put_FiringInterfaceID(self: *const T, bstrFiringInterfaceID: ?BSTR) HRESULT { return @as(*const IEventClass.VTable, @ptrCast(self.vtable)).put_FiringInterfaceID(@as(*const IEventClass, @ptrCast(self)), bstrFiringInterfaceID); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IEventClass_get_Description(self: *const T, pbstrDescription: ?*?BSTR) HRESULT { return @as(*const IEventClass.VTable, @ptrCast(self.vtable)).get_Description(@as(*const IEventClass, @ptrCast(self)), pbstrDescription); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IEventClass_put_Description(self: *const T, bstrDescription: ?BSTR) HRESULT { return @as(*const IEventClass.VTable, @ptrCast(self.vtable)).put_Description(@as(*const IEventClass, @ptrCast(self)), bstrDescription); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IEventClass_get_CustomConfigCLSID(self: *const T, pbstrCustomConfigCLSID: ?*?BSTR) HRESULT { return @as(*const IEventClass.VTable, @ptrCast(self.vtable)).get_CustomConfigCLSID(@as(*const IEventClass, @ptrCast(self)), pbstrCustomConfigCLSID); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IEventClass_put_CustomConfigCLSID(self: *const T, bstrCustomConfigCLSID: ?BSTR) HRESULT { return @as(*const IEventClass.VTable, @ptrCast(self.vtable)).put_CustomConfigCLSID(@as(*const IEventClass, @ptrCast(self)), bstrCustomConfigCLSID); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IEventClass_get_TypeLib(self: *const T, pbstrTypeLib: ?*?BSTR) HRESULT { return @as(*const IEventClass.VTable, @ptrCast(self.vtable)).get_TypeLib(@as(*const IEventClass, @ptrCast(self)), pbstrTypeLib); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IEventClass_put_TypeLib(self: *const T, bstrTypeLib: ?BSTR) HRESULT { return @as(*const IEventClass.VTable, @ptrCast(self.vtable)).put_TypeLib(@as(*const IEventClass, @ptrCast(self)), bstrTypeLib); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows5.0' const IID_IEventClass2_Value = Guid.initString("fb2b72a1-7a68-11d1-88f9-0080c7d771bf"); pub const IID_IEventClass2 = &IID_IEventClass2_Value; pub const IEventClass2 = extern struct { pub const VTable = extern struct { base: IEventClass.VTable, // TODO: this function has a "SpecialName", should Zig do anything with this? get_PublisherID: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IEventClass2, pbstrPublisherID: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IEventClass2, pbstrPublisherID: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_PublisherID: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IEventClass2, bstrPublisherID: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IEventClass2, bstrPublisherID: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_MultiInterfacePublisherFilterCLSID: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IEventClass2, pbstrPubFilCLSID: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IEventClass2, pbstrPubFilCLSID: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_MultiInterfacePublisherFilterCLSID: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IEventClass2, bstrPubFilCLSID: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IEventClass2, bstrPubFilCLSID: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_AllowInprocActivation: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IEventClass2, pfAllowInprocActivation: ?*BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IEventClass2, pfAllowInprocActivation: ?*BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_AllowInprocActivation: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IEventClass2, fAllowInprocActivation: BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IEventClass2, fAllowInprocActivation: BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_FireInParallel: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IEventClass2, pfFireInParallel: ?*BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IEventClass2, pfFireInParallel: ?*BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_FireInParallel: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IEventClass2, fFireInParallel: BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IEventClass2, fFireInParallel: BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IEventClass.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IEventClass2_get_PublisherID(self: *const T, pbstrPublisherID: ?*?BSTR) HRESULT { return @as(*const IEventClass2.VTable, @ptrCast(self.vtable)).get_PublisherID(@as(*const IEventClass2, @ptrCast(self)), pbstrPublisherID); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IEventClass2_put_PublisherID(self: *const T, bstrPublisherID: ?BSTR) HRESULT { return @as(*const IEventClass2.VTable, @ptrCast(self.vtable)).put_PublisherID(@as(*const IEventClass2, @ptrCast(self)), bstrPublisherID); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IEventClass2_get_MultiInterfacePublisherFilterCLSID(self: *const T, pbstrPubFilCLSID: ?*?BSTR) HRESULT { return @as(*const IEventClass2.VTable, @ptrCast(self.vtable)).get_MultiInterfacePublisherFilterCLSID(@as(*const IEventClass2, @ptrCast(self)), pbstrPubFilCLSID); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IEventClass2_put_MultiInterfacePublisherFilterCLSID(self: *const T, bstrPubFilCLSID: ?BSTR) HRESULT { return @as(*const IEventClass2.VTable, @ptrCast(self.vtable)).put_MultiInterfacePublisherFilterCLSID(@as(*const IEventClass2, @ptrCast(self)), bstrPubFilCLSID); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IEventClass2_get_AllowInprocActivation(self: *const T, pfAllowInprocActivation: ?*BOOL) HRESULT { return @as(*const IEventClass2.VTable, @ptrCast(self.vtable)).get_AllowInprocActivation(@as(*const IEventClass2, @ptrCast(self)), pfAllowInprocActivation); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IEventClass2_put_AllowInprocActivation(self: *const T, fAllowInprocActivation: BOOL) HRESULT { return @as(*const IEventClass2.VTable, @ptrCast(self.vtable)).put_AllowInprocActivation(@as(*const IEventClass2, @ptrCast(self)), fAllowInprocActivation); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IEventClass2_get_FireInParallel(self: *const T, pfFireInParallel: ?*BOOL) HRESULT { return @as(*const IEventClass2.VTable, @ptrCast(self.vtable)).get_FireInParallel(@as(*const IEventClass2, @ptrCast(self)), pfFireInParallel); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IEventClass2_put_FireInParallel(self: *const T, fFireInParallel: BOOL) HRESULT { return @as(*const IEventClass2.VTable, @ptrCast(self.vtable)).put_FireInParallel(@as(*const IEventClass2, @ptrCast(self)), fFireInParallel); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows5.0' const IID_IEventSubscription_Value = Guid.initString("4a6b0e15-2e38-11d1-9965-00c04fbbb345"); pub const IID_IEventSubscription = &IID_IEventSubscription_Value; pub const IEventSubscription = extern struct { pub const VTable = extern struct { base: IDispatch.VTable, // TODO: this function has a "SpecialName", should Zig do anything with this? get_SubscriptionID: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IEventSubscription, pbstrSubscriptionID: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IEventSubscription, pbstrSubscriptionID: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_SubscriptionID: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IEventSubscription, bstrSubscriptionID: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IEventSubscription, bstrSubscriptionID: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_SubscriptionName: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IEventSubscription, pbstrSubscriptionName: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IEventSubscription, pbstrSubscriptionName: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_SubscriptionName: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IEventSubscription, bstrSubscriptionName: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IEventSubscription, bstrSubscriptionName: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_PublisherID: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IEventSubscription, pbstrPublisherID: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IEventSubscription, pbstrPublisherID: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_PublisherID: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IEventSubscription, bstrPublisherID: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IEventSubscription, bstrPublisherID: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_EventClassID: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IEventSubscription, pbstrEventClassID: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IEventSubscription, pbstrEventClassID: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_EventClassID: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IEventSubscription, bstrEventClassID: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IEventSubscription, bstrEventClassID: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_MethodName: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IEventSubscription, pbstrMethodName: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IEventSubscription, pbstrMethodName: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_MethodName: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IEventSubscription, bstrMethodName: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IEventSubscription, bstrMethodName: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_SubscriberCLSID: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IEventSubscription, pbstrSubscriberCLSID: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IEventSubscription, pbstrSubscriberCLSID: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_SubscriberCLSID: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IEventSubscription, bstrSubscriberCLSID: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IEventSubscription, bstrSubscriberCLSID: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_SubscriberInterface: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IEventSubscription, ppSubscriberInterface: ?*?*IUnknown, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IEventSubscription, ppSubscriberInterface: ?*?*IUnknown, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_SubscriberInterface: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IEventSubscription, pSubscriberInterface: ?*IUnknown, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IEventSubscription, pSubscriberInterface: ?*IUnknown, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_PerUser: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IEventSubscription, pfPerUser: ?*BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IEventSubscription, pfPerUser: ?*BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_PerUser: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IEventSubscription, fPerUser: BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IEventSubscription, fPerUser: BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_OwnerSID: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IEventSubscription, pbstrOwnerSID: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IEventSubscription, pbstrOwnerSID: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_OwnerSID: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IEventSubscription, bstrOwnerSID: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IEventSubscription, bstrOwnerSID: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Enabled: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IEventSubscription, pfEnabled: ?*BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IEventSubscription, pfEnabled: ?*BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_Enabled: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IEventSubscription, fEnabled: BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IEventSubscription, fEnabled: BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Description: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IEventSubscription, pbstrDescription: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IEventSubscription, pbstrDescription: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_Description: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IEventSubscription, bstrDescription: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IEventSubscription, bstrDescription: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_MachineName: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IEventSubscription, pbstrMachineName: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IEventSubscription, pbstrMachineName: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_MachineName: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IEventSubscription, bstrMachineName: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IEventSubscription, bstrMachineName: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetPublisherProperty: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IEventSubscription, bstrPropertyName: ?BSTR, propertyValue: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IEventSubscription, bstrPropertyName: ?BSTR, propertyValue: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, PutPublisherProperty: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IEventSubscription, bstrPropertyName: ?BSTR, propertyValue: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IEventSubscription, bstrPropertyName: ?BSTR, propertyValue: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, RemovePublisherProperty: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IEventSubscription, bstrPropertyName: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IEventSubscription, bstrPropertyName: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetPublisherPropertyCollection: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IEventSubscription, collection: ?*?*IEventObjectCollection, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IEventSubscription, collection: ?*?*IEventObjectCollection, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetSubscriberProperty: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IEventSubscription, bstrPropertyName: ?BSTR, propertyValue: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IEventSubscription, bstrPropertyName: ?BSTR, propertyValue: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, PutSubscriberProperty: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IEventSubscription, bstrPropertyName: ?BSTR, propertyValue: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IEventSubscription, bstrPropertyName: ?BSTR, propertyValue: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, RemoveSubscriberProperty: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IEventSubscription, bstrPropertyName: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IEventSubscription, bstrPropertyName: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetSubscriberPropertyCollection: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IEventSubscription, collection: ?*?*IEventObjectCollection, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IEventSubscription, collection: ?*?*IEventObjectCollection, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_InterfaceID: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IEventSubscription, pbstrInterfaceID: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IEventSubscription, pbstrInterfaceID: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_InterfaceID: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IEventSubscription, bstrInterfaceID: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IEventSubscription, bstrInterfaceID: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IDispatch.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IEventSubscription_get_SubscriptionID(self: *const T, pbstrSubscriptionID: ?*?BSTR) HRESULT { return @as(*const IEventSubscription.VTable, @ptrCast(self.vtable)).get_SubscriptionID(@as(*const IEventSubscription, @ptrCast(self)), pbstrSubscriptionID); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IEventSubscription_put_SubscriptionID(self: *const T, bstrSubscriptionID: ?BSTR) HRESULT { return @as(*const IEventSubscription.VTable, @ptrCast(self.vtable)).put_SubscriptionID(@as(*const IEventSubscription, @ptrCast(self)), bstrSubscriptionID); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IEventSubscription_get_SubscriptionName(self: *const T, pbstrSubscriptionName: ?*?BSTR) HRESULT { return @as(*const IEventSubscription.VTable, @ptrCast(self.vtable)).get_SubscriptionName(@as(*const IEventSubscription, @ptrCast(self)), pbstrSubscriptionName); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IEventSubscription_put_SubscriptionName(self: *const T, bstrSubscriptionName: ?BSTR) HRESULT { return @as(*const IEventSubscription.VTable, @ptrCast(self.vtable)).put_SubscriptionName(@as(*const IEventSubscription, @ptrCast(self)), bstrSubscriptionName); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IEventSubscription_get_PublisherID(self: *const T, pbstrPublisherID: ?*?BSTR) HRESULT { return @as(*const IEventSubscription.VTable, @ptrCast(self.vtable)).get_PublisherID(@as(*const IEventSubscription, @ptrCast(self)), pbstrPublisherID); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IEventSubscription_put_PublisherID(self: *const T, bstrPublisherID: ?BSTR) HRESULT { return @as(*const IEventSubscription.VTable, @ptrCast(self.vtable)).put_PublisherID(@as(*const IEventSubscription, @ptrCast(self)), bstrPublisherID); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IEventSubscription_get_EventClassID(self: *const T, pbstrEventClassID: ?*?BSTR) HRESULT { return @as(*const IEventSubscription.VTable, @ptrCast(self.vtable)).get_EventClassID(@as(*const IEventSubscription, @ptrCast(self)), pbstrEventClassID); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IEventSubscription_put_EventClassID(self: *const T, bstrEventClassID: ?BSTR) HRESULT { return @as(*const IEventSubscription.VTable, @ptrCast(self.vtable)).put_EventClassID(@as(*const IEventSubscription, @ptrCast(self)), bstrEventClassID); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IEventSubscription_get_MethodName(self: *const T, pbstrMethodName: ?*?BSTR) HRESULT { return @as(*const IEventSubscription.VTable, @ptrCast(self.vtable)).get_MethodName(@as(*const IEventSubscription, @ptrCast(self)), pbstrMethodName); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IEventSubscription_put_MethodName(self: *const T, bstrMethodName: ?BSTR) HRESULT { return @as(*const IEventSubscription.VTable, @ptrCast(self.vtable)).put_MethodName(@as(*const IEventSubscription, @ptrCast(self)), bstrMethodName); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IEventSubscription_get_SubscriberCLSID(self: *const T, pbstrSubscriberCLSID: ?*?BSTR) HRESULT { return @as(*const IEventSubscription.VTable, @ptrCast(self.vtable)).get_SubscriberCLSID(@as(*const IEventSubscription, @ptrCast(self)), pbstrSubscriberCLSID); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IEventSubscription_put_SubscriberCLSID(self: *const T, bstrSubscriberCLSID: ?BSTR) HRESULT { return @as(*const IEventSubscription.VTable, @ptrCast(self.vtable)).put_SubscriberCLSID(@as(*const IEventSubscription, @ptrCast(self)), bstrSubscriberCLSID); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IEventSubscription_get_SubscriberInterface(self: *const T, ppSubscriberInterface: ?*?*IUnknown) HRESULT { return @as(*const IEventSubscription.VTable, @ptrCast(self.vtable)).get_SubscriberInterface(@as(*const IEventSubscription, @ptrCast(self)), ppSubscriberInterface); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IEventSubscription_put_SubscriberInterface(self: *const T, pSubscriberInterface: ?*IUnknown) HRESULT { return @as(*const IEventSubscription.VTable, @ptrCast(self.vtable)).put_SubscriberInterface(@as(*const IEventSubscription, @ptrCast(self)), pSubscriberInterface); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IEventSubscription_get_PerUser(self: *const T, pfPerUser: ?*BOOL) HRESULT { return @as(*const IEventSubscription.VTable, @ptrCast(self.vtable)).get_PerUser(@as(*const IEventSubscription, @ptrCast(self)), pfPerUser); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IEventSubscription_put_PerUser(self: *const T, fPerUser: BOOL) HRESULT { return @as(*const IEventSubscription.VTable, @ptrCast(self.vtable)).put_PerUser(@as(*const IEventSubscription, @ptrCast(self)), fPerUser); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IEventSubscription_get_OwnerSID(self: *const T, pbstrOwnerSID: ?*?BSTR) HRESULT { return @as(*const IEventSubscription.VTable, @ptrCast(self.vtable)).get_OwnerSID(@as(*const IEventSubscription, @ptrCast(self)), pbstrOwnerSID); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IEventSubscription_put_OwnerSID(self: *const T, bstrOwnerSID: ?BSTR) HRESULT { return @as(*const IEventSubscription.VTable, @ptrCast(self.vtable)).put_OwnerSID(@as(*const IEventSubscription, @ptrCast(self)), bstrOwnerSID); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IEventSubscription_get_Enabled(self: *const T, pfEnabled: ?*BOOL) HRESULT { return @as(*const IEventSubscription.VTable, @ptrCast(self.vtable)).get_Enabled(@as(*const IEventSubscription, @ptrCast(self)), pfEnabled); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IEventSubscription_put_Enabled(self: *const T, fEnabled: BOOL) HRESULT { return @as(*const IEventSubscription.VTable, @ptrCast(self.vtable)).put_Enabled(@as(*const IEventSubscription, @ptrCast(self)), fEnabled); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IEventSubscription_get_Description(self: *const T, pbstrDescription: ?*?BSTR) HRESULT { return @as(*const IEventSubscription.VTable, @ptrCast(self.vtable)).get_Description(@as(*const IEventSubscription, @ptrCast(self)), pbstrDescription); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IEventSubscription_put_Description(self: *const T, bstrDescription: ?BSTR) HRESULT { return @as(*const IEventSubscription.VTable, @ptrCast(self.vtable)).put_Description(@as(*const IEventSubscription, @ptrCast(self)), bstrDescription); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IEventSubscription_get_MachineName(self: *const T, pbstrMachineName: ?*?BSTR) HRESULT { return @as(*const IEventSubscription.VTable, @ptrCast(self.vtable)).get_MachineName(@as(*const IEventSubscription, @ptrCast(self)), pbstrMachineName); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IEventSubscription_put_MachineName(self: *const T, bstrMachineName: ?BSTR) HRESULT { return @as(*const IEventSubscription.VTable, @ptrCast(self.vtable)).put_MachineName(@as(*const IEventSubscription, @ptrCast(self)), bstrMachineName); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IEventSubscription_GetPublisherProperty(self: *const T, bstrPropertyName: ?BSTR, propertyValue: ?*VARIANT) HRESULT { return @as(*const IEventSubscription.VTable, @ptrCast(self.vtable)).GetPublisherProperty(@as(*const IEventSubscription, @ptrCast(self)), bstrPropertyName, propertyValue); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IEventSubscription_PutPublisherProperty(self: *const T, bstrPropertyName: ?BSTR, propertyValue: ?*VARIANT) HRESULT { return @as(*const IEventSubscription.VTable, @ptrCast(self.vtable)).PutPublisherProperty(@as(*const IEventSubscription, @ptrCast(self)), bstrPropertyName, propertyValue); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IEventSubscription_RemovePublisherProperty(self: *const T, bstrPropertyName: ?BSTR) HRESULT { return @as(*const IEventSubscription.VTable, @ptrCast(self.vtable)).RemovePublisherProperty(@as(*const IEventSubscription, @ptrCast(self)), bstrPropertyName); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IEventSubscription_GetPublisherPropertyCollection(self: *const T, collection: ?*?*IEventObjectCollection) HRESULT { return @as(*const IEventSubscription.VTable, @ptrCast(self.vtable)).GetPublisherPropertyCollection(@as(*const IEventSubscription, @ptrCast(self)), collection); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IEventSubscription_GetSubscriberProperty(self: *const T, bstrPropertyName: ?BSTR, propertyValue: ?*VARIANT) HRESULT { return @as(*const IEventSubscription.VTable, @ptrCast(self.vtable)).GetSubscriberProperty(@as(*const IEventSubscription, @ptrCast(self)), bstrPropertyName, propertyValue); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IEventSubscription_PutSubscriberProperty(self: *const T, bstrPropertyName: ?BSTR, propertyValue: ?*VARIANT) HRESULT { return @as(*const IEventSubscription.VTable, @ptrCast(self.vtable)).PutSubscriberProperty(@as(*const IEventSubscription, @ptrCast(self)), bstrPropertyName, propertyValue); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IEventSubscription_RemoveSubscriberProperty(self: *const T, bstrPropertyName: ?BSTR) HRESULT { return @as(*const IEventSubscription.VTable, @ptrCast(self.vtable)).RemoveSubscriberProperty(@as(*const IEventSubscription, @ptrCast(self)), bstrPropertyName); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IEventSubscription_GetSubscriberPropertyCollection(self: *const T, collection: ?*?*IEventObjectCollection) HRESULT { return @as(*const IEventSubscription.VTable, @ptrCast(self.vtable)).GetSubscriberPropertyCollection(@as(*const IEventSubscription, @ptrCast(self)), collection); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IEventSubscription_get_InterfaceID(self: *const T, pbstrInterfaceID: ?*?BSTR) HRESULT { return @as(*const IEventSubscription.VTable, @ptrCast(self.vtable)).get_InterfaceID(@as(*const IEventSubscription, @ptrCast(self)), pbstrInterfaceID); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IEventSubscription_put_InterfaceID(self: *const T, bstrInterfaceID: ?BSTR) HRESULT { return @as(*const IEventSubscription.VTable, @ptrCast(self.vtable)).put_InterfaceID(@as(*const IEventSubscription, @ptrCast(self)), bstrInterfaceID); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows5.0' const IID_IFiringControl_Value = Guid.initString("e0498c93-4efe-11d1-9971-00c04fbbb345"); pub const IID_IFiringControl = &IID_IFiringControl_Value; pub const IFiringControl = extern struct { pub const VTable = extern struct { base: IDispatch.VTable, FireSubscription: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IFiringControl, subscription: ?*IEventSubscription, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IFiringControl, subscription: ?*IEventSubscription, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IDispatch.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IFiringControl_FireSubscription(self: *const T, subscription: ?*IEventSubscription) HRESULT { return @as(*const IFiringControl.VTable, @ptrCast(self.vtable)).FireSubscription(@as(*const IFiringControl, @ptrCast(self)), subscription); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows5.0' const IID_IPublisherFilter_Value = Guid.initString("465e5cc0-7b26-11d1-88fb-0080c7d771bf"); pub const IID_IPublisherFilter = &IID_IPublisherFilter_Value; pub const IPublisherFilter = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, Initialize: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IPublisherFilter, methodName: ?BSTR, dispUserDefined: ?*IDispatch, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IPublisherFilter, methodName: ?BSTR, dispUserDefined: ?*IDispatch, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, PrepareToFire: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IPublisherFilter, methodName: ?BSTR, firingControl: ?*IFiringControl, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IPublisherFilter, methodName: ?BSTR, firingControl: ?*IFiringControl, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPublisherFilter_Initialize(self: *const T, methodName: ?BSTR, dispUserDefined: ?*IDispatch) HRESULT { return @as(*const IPublisherFilter.VTable, @ptrCast(self.vtable)).Initialize(@as(*const IPublisherFilter, @ptrCast(self)), methodName, dispUserDefined); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPublisherFilter_PrepareToFire(self: *const T, methodName: ?BSTR, firingControl: ?*IFiringControl) HRESULT { return @as(*const IPublisherFilter.VTable, @ptrCast(self.vtable)).PrepareToFire(@as(*const IPublisherFilter, @ptrCast(self)), methodName, firingControl); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows5.0' const IID_IMultiInterfacePublisherFilter_Value = Guid.initString("465e5cc1-7b26-11d1-88fb-0080c7d771bf"); pub const IID_IMultiInterfacePublisherFilter = &IID_IMultiInterfacePublisherFilter_Value; pub const IMultiInterfacePublisherFilter = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, Initialize: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IMultiInterfacePublisherFilter, pEIC: ?*IMultiInterfaceEventControl, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IMultiInterfacePublisherFilter, pEIC: ?*IMultiInterfaceEventControl, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, PrepareToFire: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IMultiInterfacePublisherFilter, iid: ?*const Guid, methodName: ?BSTR, firingControl: ?*IFiringControl, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IMultiInterfacePublisherFilter, iid: ?*const Guid, methodName: ?BSTR, firingControl: ?*IFiringControl, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMultiInterfacePublisherFilter_Initialize(self: *const T, pEIC: ?*IMultiInterfaceEventControl) HRESULT { return @as(*const IMultiInterfacePublisherFilter.VTable, @ptrCast(self.vtable)).Initialize(@as(*const IMultiInterfacePublisherFilter, @ptrCast(self)), pEIC); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMultiInterfacePublisherFilter_PrepareToFire(self: *const T, iid: ?*const Guid, methodName: ?BSTR, firingControl: ?*IFiringControl) HRESULT { return @as(*const IMultiInterfacePublisherFilter.VTable, @ptrCast(self.vtable)).PrepareToFire(@as(*const IMultiInterfacePublisherFilter, @ptrCast(self)), iid, methodName, firingControl); } }; } pub usingnamespace MethodMixin(@This()); }; pub const EOC_ChangeType = enum(i32) { NewObject = 0, ModifiedObject = 1, DeletedObject = 2, }; pub const EOC_NewObject = EOC_ChangeType.NewObject; pub const EOC_ModifiedObject = EOC_ChangeType.ModifiedObject; pub const EOC_DeletedObject = EOC_ChangeType.DeletedObject; // TODO: this type is limited to platform 'windows5.0' const IID_IEventObjectChange_Value = Guid.initString("f4a07d70-2e25-11d1-9964-00c04fbbb345"); pub const IID_IEventObjectChange = &IID_IEventObjectChange_Value; pub const IEventObjectChange = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, ChangedSubscription: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IEventObjectChange, changeType: EOC_ChangeType, bstrSubscriptionID: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IEventObjectChange, changeType: EOC_ChangeType, bstrSubscriptionID: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, ChangedEventClass: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IEventObjectChange, changeType: EOC_ChangeType, bstrEventClassID: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IEventObjectChange, changeType: EOC_ChangeType, bstrEventClassID: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, ChangedPublisher: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IEventObjectChange, changeType: EOC_ChangeType, bstrPublisherID: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IEventObjectChange, changeType: EOC_ChangeType, bstrPublisherID: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IEventObjectChange_ChangedSubscription(self: *const T, changeType: EOC_ChangeType, bstrSubscriptionID: ?BSTR) HRESULT { return @as(*const IEventObjectChange.VTable, @ptrCast(self.vtable)).ChangedSubscription(@as(*const IEventObjectChange, @ptrCast(self)), changeType, bstrSubscriptionID); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IEventObjectChange_ChangedEventClass(self: *const T, changeType: EOC_ChangeType, bstrEventClassID: ?BSTR) HRESULT { return @as(*const IEventObjectChange.VTable, @ptrCast(self.vtable)).ChangedEventClass(@as(*const IEventObjectChange, @ptrCast(self)), changeType, bstrEventClassID); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IEventObjectChange_ChangedPublisher(self: *const T, changeType: EOC_ChangeType, bstrPublisherID: ?BSTR) HRESULT { return @as(*const IEventObjectChange.VTable, @ptrCast(self.vtable)).ChangedPublisher(@as(*const IEventObjectChange, @ptrCast(self)), changeType, bstrPublisherID); } }; } pub usingnamespace MethodMixin(@This()); }; pub const COMEVENTSYSCHANGEINFO = extern struct { cbSize: u32, changeType: EOC_ChangeType, objectId: ?BSTR, partitionId: ?BSTR, applicationId: ?BSTR, reserved: [10]Guid, }; // TODO: this type is limited to platform 'windows5.0' const IID_IEventObjectChange2_Value = Guid.initString("7701a9c3-bd68-438f-83e0-67bf4f53a422"); pub const IID_IEventObjectChange2 = &IID_IEventObjectChange2_Value; pub const IEventObjectChange2 = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, ChangedSubscription: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IEventObjectChange2, pInfo: ?*COMEVENTSYSCHANGEINFO, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IEventObjectChange2, pInfo: ?*COMEVENTSYSCHANGEINFO, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, ChangedEventClass: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IEventObjectChange2, pInfo: ?*COMEVENTSYSCHANGEINFO, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IEventObjectChange2, pInfo: ?*COMEVENTSYSCHANGEINFO, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IEventObjectChange2_ChangedSubscription(self: *const T, pInfo: ?*COMEVENTSYSCHANGEINFO) HRESULT { return @as(*const IEventObjectChange2.VTable, @ptrCast(self.vtable)).ChangedSubscription(@as(*const IEventObjectChange2, @ptrCast(self)), pInfo); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IEventObjectChange2_ChangedEventClass(self: *const T, pInfo: ?*COMEVENTSYSCHANGEINFO) HRESULT { return @as(*const IEventObjectChange2.VTable, @ptrCast(self.vtable)).ChangedEventClass(@as(*const IEventObjectChange2, @ptrCast(self)), pInfo); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows5.0' const IID_IEnumEventObject_Value = Guid.initString("f4a07d63-2e25-11d1-9964-00c04fbbb345"); pub const IID_IEnumEventObject = &IID_IEnumEventObject_Value; pub const IEnumEventObject = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, Clone: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IEnumEventObject, ppInterface: ?*?*IEnumEventObject, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IEnumEventObject, ppInterface: ?*?*IEnumEventObject, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Next: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IEnumEventObject, cReqElem: u32, ppInterface: [*]?*IUnknown, cRetElem: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IEnumEventObject, cReqElem: u32, ppInterface: [*]?*IUnknown, cRetElem: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Reset: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IEnumEventObject, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IEnumEventObject, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Skip: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IEnumEventObject, cSkipElem: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IEnumEventObject, cSkipElem: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IEnumEventObject_Clone(self: *const T, ppInterface: ?*?*IEnumEventObject) HRESULT { return @as(*const IEnumEventObject.VTable, @ptrCast(self.vtable)).Clone(@as(*const IEnumEventObject, @ptrCast(self)), ppInterface); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IEnumEventObject_Next(self: *const T, cReqElem: u32, ppInterface: [*]?*IUnknown, cRetElem: ?*u32) HRESULT { return @as(*const IEnumEventObject.VTable, @ptrCast(self.vtable)).Next(@as(*const IEnumEventObject, @ptrCast(self)), cReqElem, ppInterface, cRetElem); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IEnumEventObject_Reset(self: *const T) HRESULT { return @as(*const IEnumEventObject.VTable, @ptrCast(self.vtable)).Reset(@as(*const IEnumEventObject, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IEnumEventObject_Skip(self: *const T, cSkipElem: u32) HRESULT { return @as(*const IEnumEventObject.VTable, @ptrCast(self.vtable)).Skip(@as(*const IEnumEventObject, @ptrCast(self)), cSkipElem); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows5.0' const IID_IEventObjectCollection_Value = Guid.initString("f89ac270-d4eb-11d1-b682-00805fc79216"); pub const IID_IEventObjectCollection = &IID_IEventObjectCollection_Value; pub const IEventObjectCollection = extern struct { pub const VTable = extern struct { base: IDispatch.VTable, // TODO: this function has a "SpecialName", should Zig do anything with this? get__NewEnum: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IEventObjectCollection, ppUnkEnum: ?*?*IUnknown, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IEventObjectCollection, ppUnkEnum: ?*?*IUnknown, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Item: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IEventObjectCollection, objectID: ?BSTR, pItem: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IEventObjectCollection, objectID: ?BSTR, pItem: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_NewEnum: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IEventObjectCollection, ppEnum: ?*?*IEnumEventObject, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IEventObjectCollection, ppEnum: ?*?*IEnumEventObject, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Count: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IEventObjectCollection, pCount: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IEventObjectCollection, pCount: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Add: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IEventObjectCollection, item: ?*VARIANT, objectID: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IEventObjectCollection, item: ?*VARIANT, objectID: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Remove: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IEventObjectCollection, objectID: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IEventObjectCollection, objectID: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IDispatch.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IEventObjectCollection_get__NewEnum(self: *const T, ppUnkEnum: ?*?*IUnknown) HRESULT { return @as(*const IEventObjectCollection.VTable, @ptrCast(self.vtable)).get__NewEnum(@as(*const IEventObjectCollection, @ptrCast(self)), ppUnkEnum); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IEventObjectCollection_get_Item(self: *const T, objectID: ?BSTR, pItem: ?*VARIANT) HRESULT { return @as(*const IEventObjectCollection.VTable, @ptrCast(self.vtable)).get_Item(@as(*const IEventObjectCollection, @ptrCast(self)), objectID, pItem); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IEventObjectCollection_get_NewEnum(self: *const T, ppEnum: ?*?*IEnumEventObject) HRESULT { return @as(*const IEventObjectCollection.VTable, @ptrCast(self.vtable)).get_NewEnum(@as(*const IEventObjectCollection, @ptrCast(self)), ppEnum); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IEventObjectCollection_get_Count(self: *const T, pCount: ?*i32) HRESULT { return @as(*const IEventObjectCollection.VTable, @ptrCast(self.vtable)).get_Count(@as(*const IEventObjectCollection, @ptrCast(self)), pCount); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IEventObjectCollection_Add(self: *const T, item: ?*VARIANT, objectID: ?BSTR) HRESULT { return @as(*const IEventObjectCollection.VTable, @ptrCast(self.vtable)).Add(@as(*const IEventObjectCollection, @ptrCast(self)), item, objectID); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IEventObjectCollection_Remove(self: *const T, objectID: ?BSTR) HRESULT { return @as(*const IEventObjectCollection.VTable, @ptrCast(self.vtable)).Remove(@as(*const IEventObjectCollection, @ptrCast(self)), objectID); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows5.0' const IID_IEventProperty_Value = Guid.initString("da538ee2-f4de-11d1-b6bb-00805fc79216"); pub const IID_IEventProperty = &IID_IEventProperty_Value; pub const IEventProperty = extern struct { pub const VTable = extern struct { base: IDispatch.VTable, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Name: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IEventProperty, propertyName: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IEventProperty, propertyName: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_Name: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IEventProperty, propertyName: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IEventProperty, propertyName: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Value: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IEventProperty, propertyValue: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IEventProperty, propertyValue: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_Value: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IEventProperty, propertyValue: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IEventProperty, propertyValue: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IDispatch.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IEventProperty_get_Name(self: *const T, propertyName: ?*?BSTR) HRESULT { return @as(*const IEventProperty.VTable, @ptrCast(self.vtable)).get_Name(@as(*const IEventProperty, @ptrCast(self)), propertyName); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IEventProperty_put_Name(self: *const T, propertyName: ?BSTR) HRESULT { return @as(*const IEventProperty.VTable, @ptrCast(self.vtable)).put_Name(@as(*const IEventProperty, @ptrCast(self)), propertyName); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IEventProperty_get_Value(self: *const T, propertyValue: ?*VARIANT) HRESULT { return @as(*const IEventProperty.VTable, @ptrCast(self.vtable)).get_Value(@as(*const IEventProperty, @ptrCast(self)), propertyValue); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IEventProperty_put_Value(self: *const T, propertyValue: ?*VARIANT) HRESULT { return @as(*const IEventProperty.VTable, @ptrCast(self.vtable)).put_Value(@as(*const IEventProperty, @ptrCast(self)), propertyValue); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows5.0' const IID_IEventControl_Value = Guid.initString("0343e2f4-86f6-11d1-b760-00c04fb926af"); pub const IID_IEventControl = &IID_IEventControl_Value; pub const IEventControl = extern struct { pub const VTable = extern struct { base: IDispatch.VTable, SetPublisherFilter: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IEventControl, methodName: ?BSTR, pPublisherFilter: ?*IPublisherFilter, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IEventControl, methodName: ?BSTR, pPublisherFilter: ?*IPublisherFilter, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_AllowInprocActivation: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IEventControl, pfAllowInprocActivation: ?*BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IEventControl, pfAllowInprocActivation: ?*BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_AllowInprocActivation: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IEventControl, fAllowInprocActivation: BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IEventControl, fAllowInprocActivation: BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetSubscriptions: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IEventControl, methodName: ?BSTR, optionalCriteria: ?BSTR, optionalErrorIndex: ?*i32, ppCollection: ?*?*IEventObjectCollection, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IEventControl, methodName: ?BSTR, optionalCriteria: ?BSTR, optionalErrorIndex: ?*i32, ppCollection: ?*?*IEventObjectCollection, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetDefaultQuery: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IEventControl, methodName: ?BSTR, criteria: ?BSTR, errorIndex: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IEventControl, methodName: ?BSTR, criteria: ?BSTR, errorIndex: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IDispatch.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IEventControl_SetPublisherFilter(self: *const T, methodName: ?BSTR, pPublisherFilter: ?*IPublisherFilter) HRESULT { return @as(*const IEventControl.VTable, @ptrCast(self.vtable)).SetPublisherFilter(@as(*const IEventControl, @ptrCast(self)), methodName, pPublisherFilter); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IEventControl_get_AllowInprocActivation(self: *const T, pfAllowInprocActivation: ?*BOOL) HRESULT { return @as(*const IEventControl.VTable, @ptrCast(self.vtable)).get_AllowInprocActivation(@as(*const IEventControl, @ptrCast(self)), pfAllowInprocActivation); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IEventControl_put_AllowInprocActivation(self: *const T, fAllowInprocActivation: BOOL) HRESULT { return @as(*const IEventControl.VTable, @ptrCast(self.vtable)).put_AllowInprocActivation(@as(*const IEventControl, @ptrCast(self)), fAllowInprocActivation); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IEventControl_GetSubscriptions(self: *const T, methodName: ?BSTR, optionalCriteria: ?BSTR, optionalErrorIndex: ?*i32, ppCollection: ?*?*IEventObjectCollection) HRESULT { return @as(*const IEventControl.VTable, @ptrCast(self.vtable)).GetSubscriptions(@as(*const IEventControl, @ptrCast(self)), methodName, optionalCriteria, optionalErrorIndex, ppCollection); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IEventControl_SetDefaultQuery(self: *const T, methodName: ?BSTR, criteria: ?BSTR, errorIndex: ?*i32) HRESULT { return @as(*const IEventControl.VTable, @ptrCast(self.vtable)).SetDefaultQuery(@as(*const IEventControl, @ptrCast(self)), methodName, criteria, errorIndex); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows5.0' const IID_IMultiInterfaceEventControl_Value = Guid.initString("0343e2f5-86f6-11d1-b760-00c04fb926af"); pub const IID_IMultiInterfaceEventControl = &IID_IMultiInterfaceEventControl_Value; pub const IMultiInterfaceEventControl = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, SetMultiInterfacePublisherFilter: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IMultiInterfaceEventControl, classFilter: ?*IMultiInterfacePublisherFilter, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IMultiInterfaceEventControl, classFilter: ?*IMultiInterfacePublisherFilter, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetSubscriptions: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IMultiInterfaceEventControl, eventIID: ?*const Guid, bstrMethodName: ?BSTR, optionalCriteria: ?BSTR, optionalErrorIndex: ?*i32, ppCollection: ?*?*IEventObjectCollection, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IMultiInterfaceEventControl, eventIID: ?*const Guid, bstrMethodName: ?BSTR, optionalCriteria: ?BSTR, optionalErrorIndex: ?*i32, ppCollection: ?*?*IEventObjectCollection, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetDefaultQuery: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IMultiInterfaceEventControl, eventIID: ?*const Guid, bstrMethodName: ?BSTR, bstrCriteria: ?BSTR, errorIndex: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IMultiInterfaceEventControl, eventIID: ?*const Guid, bstrMethodName: ?BSTR, bstrCriteria: ?BSTR, errorIndex: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_AllowInprocActivation: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMultiInterfaceEventControl, pfAllowInprocActivation: ?*BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMultiInterfaceEventControl, pfAllowInprocActivation: ?*BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_AllowInprocActivation: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMultiInterfaceEventControl, fAllowInprocActivation: BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMultiInterfaceEventControl, fAllowInprocActivation: BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_FireInParallel: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMultiInterfaceEventControl, pfFireInParallel: ?*BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMultiInterfaceEventControl, pfFireInParallel: ?*BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_FireInParallel: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMultiInterfaceEventControl, fFireInParallel: BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMultiInterfaceEventControl, fFireInParallel: BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMultiInterfaceEventControl_SetMultiInterfacePublisherFilter(self: *const T, classFilter: ?*IMultiInterfacePublisherFilter) HRESULT { return @as(*const IMultiInterfaceEventControl.VTable, @ptrCast(self.vtable)).SetMultiInterfacePublisherFilter(@as(*const IMultiInterfaceEventControl, @ptrCast(self)), classFilter); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMultiInterfaceEventControl_GetSubscriptions(self: *const T, eventIID: ?*const Guid, bstrMethodName: ?BSTR, optionalCriteria: ?BSTR, optionalErrorIndex: ?*i32, ppCollection: ?*?*IEventObjectCollection) HRESULT { return @as(*const IMultiInterfaceEventControl.VTable, @ptrCast(self.vtable)).GetSubscriptions(@as(*const IMultiInterfaceEventControl, @ptrCast(self)), eventIID, bstrMethodName, optionalCriteria, optionalErrorIndex, ppCollection); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMultiInterfaceEventControl_SetDefaultQuery(self: *const T, eventIID: ?*const Guid, bstrMethodName: ?BSTR, bstrCriteria: ?BSTR, errorIndex: ?*i32) HRESULT { return @as(*const IMultiInterfaceEventControl.VTable, @ptrCast(self.vtable)).SetDefaultQuery(@as(*const IMultiInterfaceEventControl, @ptrCast(self)), eventIID, bstrMethodName, bstrCriteria, errorIndex); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMultiInterfaceEventControl_get_AllowInprocActivation(self: *const T, pfAllowInprocActivation: ?*BOOL) HRESULT { return @as(*const IMultiInterfaceEventControl.VTable, @ptrCast(self.vtable)).get_AllowInprocActivation(@as(*const IMultiInterfaceEventControl, @ptrCast(self)), pfAllowInprocActivation); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMultiInterfaceEventControl_put_AllowInprocActivation(self: *const T, fAllowInprocActivation: BOOL) HRESULT { return @as(*const IMultiInterfaceEventControl.VTable, @ptrCast(self.vtable)).put_AllowInprocActivation(@as(*const IMultiInterfaceEventControl, @ptrCast(self)), fAllowInprocActivation); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMultiInterfaceEventControl_get_FireInParallel(self: *const T, pfFireInParallel: ?*BOOL) HRESULT { return @as(*const IMultiInterfaceEventControl.VTable, @ptrCast(self.vtable)).get_FireInParallel(@as(*const IMultiInterfaceEventControl, @ptrCast(self)), pfFireInParallel); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMultiInterfaceEventControl_put_FireInParallel(self: *const T, fFireInParallel: BOOL) HRESULT { return @as(*const IMultiInterfaceEventControl.VTable, @ptrCast(self.vtable)).put_FireInParallel(@as(*const IMultiInterfaceEventControl, @ptrCast(self)), fFireInParallel); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IDontSupportEventSubscription_Value = Guid.initString("784121f1-62a6-4b89-855f-d65f296de83a"); pub const IID_IDontSupportEventSubscription = &IID_IDontSupportEventSubscription_Value; pub const IDontSupportEventSubscription = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); }; } pub usingnamespace MethodMixin(@This()); }; //-------------------------------------------------------------------------------- // Section: Functions (0) //-------------------------------------------------------------------------------- //-------------------------------------------------------------------------------- // Section: Unicode Aliases (0) //-------------------------------------------------------------------------------- const thismodule = @This(); pub usingnamespace switch (@import("../../zig.zig").unicode_mode) { .ansi => struct {}, .wide => struct {}, .unspecified => if (@import("builtin").is_test) struct {} else struct {}, }; //-------------------------------------------------------------------------------- // Section: Imports (7) //-------------------------------------------------------------------------------- const Guid = @import("../../zig.zig").Guid; const BOOL = @import("../../foundation.zig").BOOL; const BSTR = @import("../../foundation.zig").BSTR; const HRESULT = @import("../../foundation.zig").HRESULT; const IDispatch = @import("../../system/com.zig").IDispatch; const IUnknown = @import("../../system/com.zig").IUnknown; const VARIANT = @import("../../system/com.zig").VARIANT; test { @setEvalBranchQuota(comptime @import("std").meta.declarations(@This()).len * 3); // reference all the pub declarations if (!@import("builtin").is_test) return; inline for (comptime @import("std").meta.declarations(@This())) |decl| { if (decl.is_pub) { _ = @field(@This(), decl.name); } } }
0
repos/capy/vendor/zigwin32/win32/system
repos/capy/vendor/zigwin32/win32/system/com/structured_storage.zig
//! NOTE: this file is autogenerated, DO NOT MODIFY //-------------------------------------------------------------------------------- // Section: Constants (90) //-------------------------------------------------------------------------------- pub const PROPSETFLAG_DEFAULT = @as(u32, 0); pub const PROPSETFLAG_NONSIMPLE = @as(u32, 1); pub const PROPSETFLAG_ANSI = @as(u32, 2); pub const PROPSETFLAG_UNBUFFERED = @as(u32, 4); pub const PROPSETFLAG_CASE_SENSITIVE = @as(u32, 8); pub const PROPSET_BEHAVIOR_CASE_SENSITIVE = @as(u32, 1); pub const PID_DICTIONARY = @as(u32, 0); pub const PID_CODEPAGE = @as(u32, 1); pub const PID_FIRST_USABLE = @as(u32, 2); pub const PID_FIRST_NAME_DEFAULT = @as(u32, 4095); pub const PID_LOCALE = @as(u32, 2147483648); pub const PID_MODIFY_TIME = @as(u32, 2147483649); pub const PID_SECURITY = @as(u32, 2147483650); pub const PID_BEHAVIOR = @as(u32, 2147483651); pub const PID_ILLEGAL = @as(u32, 4294967295); pub const PID_MIN_READONLY = @as(u32, 2147483648); pub const PID_MAX_READONLY = @as(u32, 3221225471); pub const PRSPEC_INVALID = @as(u32, 4294967295); pub const PROPSETHDR_OSVERSION_UNKNOWN = @as(u32, 4294967295); pub const PIDDI_THUMBNAIL = @as(i32, 2); pub const PIDSI_TITLE = @as(i32, 2); pub const PIDSI_SUBJECT = @as(i32, 3); pub const PIDSI_AUTHOR = @as(i32, 4); pub const PIDSI_KEYWORDS = @as(i32, 5); pub const PIDSI_COMMENTS = @as(i32, 6); pub const PIDSI_TEMPLATE = @as(i32, 7); pub const PIDSI_LASTAUTHOR = @as(i32, 8); pub const PIDSI_REVNUMBER = @as(i32, 9); pub const PIDSI_EDITTIME = @as(i32, 10); pub const PIDSI_LASTPRINTED = @as(i32, 11); pub const PIDSI_CREATE_DTM = @as(i32, 12); pub const PIDSI_LASTSAVE_DTM = @as(i32, 13); pub const PIDSI_PAGECOUNT = @as(i32, 14); pub const PIDSI_WORDCOUNT = @as(i32, 15); pub const PIDSI_CHARCOUNT = @as(i32, 16); pub const PIDSI_THUMBNAIL = @as(i32, 17); pub const PIDSI_APPNAME = @as(i32, 18); pub const PIDSI_DOC_SECURITY = @as(i32, 19); pub const PIDDSI_CATEGORY = @as(u32, 2); pub const PIDDSI_PRESFORMAT = @as(u32, 3); pub const PIDDSI_BYTECOUNT = @as(u32, 4); pub const PIDDSI_LINECOUNT = @as(u32, 5); pub const PIDDSI_PARCOUNT = @as(u32, 6); pub const PIDDSI_SLIDECOUNT = @as(u32, 7); pub const PIDDSI_NOTECOUNT = @as(u32, 8); pub const PIDDSI_HIDDENCOUNT = @as(u32, 9); pub const PIDDSI_MMCLIPCOUNT = @as(u32, 10); pub const PIDDSI_SCALE = @as(u32, 11); pub const PIDDSI_HEADINGPAIR = @as(u32, 12); pub const PIDDSI_DOCPARTS = @as(u32, 13); pub const PIDDSI_MANAGER = @as(u32, 14); pub const PIDDSI_COMPANY = @as(u32, 15); pub const PIDDSI_LINKSDIRTY = @as(u32, 16); pub const PIDMSI_EDITOR = @as(i32, 2); pub const PIDMSI_SUPPLIER = @as(i32, 3); pub const PIDMSI_SOURCE = @as(i32, 4); pub const PIDMSI_SEQUENCE_NO = @as(i32, 5); pub const PIDMSI_PROJECT = @as(i32, 6); pub const PIDMSI_STATUS = @as(i32, 7); pub const PIDMSI_OWNER = @as(i32, 8); pub const PIDMSI_RATING = @as(i32, 9); pub const PIDMSI_PRODUCTION = @as(i32, 10); pub const PIDMSI_COPYRIGHT = @as(i32, 11); pub const CWCSTORAGENAME = @as(u32, 32); pub const STGM_DIRECT = @as(i32, 0); pub const STGM_TRANSACTED = @as(i32, 65536); pub const STGM_SIMPLE = @as(i32, 134217728); pub const STGM_READ = @as(i32, 0); pub const STGM_WRITE = @as(i32, 1); pub const STGM_READWRITE = @as(i32, 2); pub const STGM_SHARE_DENY_NONE = @as(i32, 64); pub const STGM_SHARE_DENY_READ = @as(i32, 48); pub const STGM_SHARE_DENY_WRITE = @as(i32, 32); pub const STGM_SHARE_EXCLUSIVE = @as(i32, 16); pub const STGM_PRIORITY = @as(i32, 262144); pub const STGM_DELETEONRELEASE = @as(i32, 67108864); pub const STGM_NOSCRATCH = @as(i32, 1048576); pub const STGM_CREATE = @as(i32, 4096); pub const STGM_CONVERT = @as(i32, 131072); pub const STGM_FAILIFTHERE = @as(i32, 0); pub const STGM_NOSNAPSHOT = @as(i32, 2097152); pub const STGM_DIRECT_SWMR = @as(i32, 4194304); pub const STGFMT_STORAGE = @as(u32, 0); pub const STGFMT_NATIVE = @as(u32, 1); pub const STGFMT_FILE = @as(u32, 3); pub const STGFMT_ANY = @as(u32, 4); pub const STGFMT_DOCFILE = @as(u32, 5); pub const STGFMT_DOCUMENT = @as(u32, 0); pub const STGOPTIONS_VERSION = @as(u32, 1); pub const CCH_MAX_PROPSTG_NAME = @as(u32, 31); //-------------------------------------------------------------------------------- // Section: Types (56) //-------------------------------------------------------------------------------- pub const PROPSPEC_KIND = enum(u32) { LPWSTR = 0, PROPID = 1, }; pub const PRSPEC_LPWSTR = PROPSPEC_KIND.LPWSTR; pub const PRSPEC_PROPID = PROPSPEC_KIND.PROPID; pub const STGC = enum(i32) { DEFAULT = 0, OVERWRITE = 1, ONLYIFCURRENT = 2, DANGEROUSLYCOMMITMERELYTODISKCACHE = 4, CONSOLIDATE = 8, }; pub const STGC_DEFAULT = STGC.DEFAULT; pub const STGC_OVERWRITE = STGC.OVERWRITE; pub const STGC_ONLYIFCURRENT = STGC.ONLYIFCURRENT; pub const STGC_DANGEROUSLYCOMMITMERELYTODISKCACHE = STGC.DANGEROUSLYCOMMITMERELYTODISKCACHE; pub const STGC_CONSOLIDATE = STGC.CONSOLIDATE; pub const STGMOVE = enum(i32) { MOVE = 0, COPY = 1, SHALLOWCOPY = 2, }; pub const STGMOVE_MOVE = STGMOVE.MOVE; pub const STGMOVE_COPY = STGMOVE.COPY; pub const STGMOVE_SHALLOWCOPY = STGMOVE.SHALLOWCOPY; pub const STATFLAG = enum(i32) { DEFAULT = 0, NONAME = 1, NOOPEN = 2, }; pub const STATFLAG_DEFAULT = STATFLAG.DEFAULT; pub const STATFLAG_NONAME = STATFLAG.NONAME; pub const STATFLAG_NOOPEN = STATFLAG.NOOPEN; pub const BSTRBLOB = extern struct { cbSize: u32, pData: ?*u8, }; pub const CLIPDATA = extern struct { cbSize: u32, ulClipFmt: i32, pClipData: ?*u8, }; pub const LOCKTYPE = enum(i32) { WRITE = 1, EXCLUSIVE = 2, ONLYONCE = 4, }; pub const LOCK_WRITE = LOCKTYPE.WRITE; pub const LOCK_EXCLUSIVE = LOCKTYPE.EXCLUSIVE; pub const LOCK_ONLYONCE = LOCKTYPE.ONLYONCE; // TODO: this type is limited to platform 'windows5.0' const IID_IEnumSTATSTG_Value = Guid.initString("0000000d-0000-0000-c000-000000000046"); pub const IID_IEnumSTATSTG = &IID_IEnumSTATSTG_Value; pub const IEnumSTATSTG = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, Next: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IEnumSTATSTG, celt: u32, rgelt: [*]STATSTG, pceltFetched: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IEnumSTATSTG, celt: u32, rgelt: [*]STATSTG, pceltFetched: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Skip: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IEnumSTATSTG, celt: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IEnumSTATSTG, celt: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Reset: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IEnumSTATSTG, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IEnumSTATSTG, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Clone: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IEnumSTATSTG, ppenum: ?*?*IEnumSTATSTG, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IEnumSTATSTG, ppenum: ?*?*IEnumSTATSTG, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IEnumSTATSTG_Next(self: *const T, celt: u32, rgelt: [*]STATSTG, pceltFetched: ?*u32) HRESULT { return @as(*const IEnumSTATSTG.VTable, @ptrCast(self.vtable)).Next(@as(*const IEnumSTATSTG, @ptrCast(self)), celt, rgelt, pceltFetched); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IEnumSTATSTG_Skip(self: *const T, celt: u32) HRESULT { return @as(*const IEnumSTATSTG.VTable, @ptrCast(self.vtable)).Skip(@as(*const IEnumSTATSTG, @ptrCast(self)), celt); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IEnumSTATSTG_Reset(self: *const T) HRESULT { return @as(*const IEnumSTATSTG.VTable, @ptrCast(self.vtable)).Reset(@as(*const IEnumSTATSTG, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IEnumSTATSTG_Clone(self: *const T, ppenum: ?*?*IEnumSTATSTG) HRESULT { return @as(*const IEnumSTATSTG.VTable, @ptrCast(self.vtable)).Clone(@as(*const IEnumSTATSTG, @ptrCast(self)), ppenum); } }; } pub usingnamespace MethodMixin(@This()); }; pub const RemSNB = extern struct { ulCntStr: u32, ulCntChar: u32, rgString: [1]u16, }; // TODO: this type is limited to platform 'windows5.0' const IID_IStorage_Value = Guid.initString("0000000b-0000-0000-c000-000000000046"); pub const IID_IStorage = &IID_IStorage_Value; pub const IStorage = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, CreateStream: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IStorage, pwcsName: ?[*:0]const u16, grfMode: u32, reserved1: u32, reserved2: u32, ppstm: ?*?*IStream, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IStorage, pwcsName: ?[*:0]const u16, grfMode: u32, reserved1: u32, reserved2: u32, ppstm: ?*?*IStream, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, OpenStream: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IStorage, pwcsName: ?[*:0]const u16, reserved1: ?*anyopaque, grfMode: u32, reserved2: u32, ppstm: ?*?*IStream, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IStorage, pwcsName: ?[*:0]const u16, reserved1: ?*anyopaque, grfMode: u32, reserved2: u32, ppstm: ?*?*IStream, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, CreateStorage: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IStorage, pwcsName: ?[*:0]const u16, grfMode: u32, reserved1: u32, reserved2: u32, ppstg: ?*?*IStorage, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IStorage, pwcsName: ?[*:0]const u16, grfMode: u32, reserved1: u32, reserved2: u32, ppstg: ?*?*IStorage, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, OpenStorage: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IStorage, pwcsName: ?[*:0]const u16, pstgPriority: ?*IStorage, grfMode: u32, snbExclude: ?*?*u16, reserved: u32, ppstg: ?*?*IStorage, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IStorage, pwcsName: ?[*:0]const u16, pstgPriority: ?*IStorage, grfMode: u32, snbExclude: ?*?*u16, reserved: u32, ppstg: ?*?*IStorage, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, CopyTo: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IStorage, ciidExclude: u32, rgiidExclude: ?[*]const Guid, snbExclude: ?*?*u16, pstgDest: ?*IStorage, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IStorage, ciidExclude: u32, rgiidExclude: ?[*]const Guid, snbExclude: ?*?*u16, pstgDest: ?*IStorage, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, MoveElementTo: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IStorage, pwcsName: ?[*:0]const u16, pstgDest: ?*IStorage, pwcsNewName: ?[*:0]const u16, grfFlags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IStorage, pwcsName: ?[*:0]const u16, pstgDest: ?*IStorage, pwcsNewName: ?[*:0]const u16, grfFlags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Commit: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IStorage, grfCommitFlags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IStorage, grfCommitFlags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Revert: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IStorage, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IStorage, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, EnumElements: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IStorage, reserved1: u32, reserved2: ?*anyopaque, reserved3: u32, ppenum: ?*?*IEnumSTATSTG, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IStorage, reserved1: u32, reserved2: ?*anyopaque, reserved3: u32, ppenum: ?*?*IEnumSTATSTG, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, DestroyElement: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IStorage, pwcsName: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IStorage, pwcsName: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, RenameElement: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IStorage, pwcsOldName: ?[*:0]const u16, pwcsNewName: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IStorage, pwcsOldName: ?[*:0]const u16, pwcsNewName: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetElementTimes: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IStorage, pwcsName: ?[*:0]const u16, pctime: ?*const FILETIME, patime: ?*const FILETIME, pmtime: ?*const FILETIME, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IStorage, pwcsName: ?[*:0]const u16, pctime: ?*const FILETIME, patime: ?*const FILETIME, pmtime: ?*const FILETIME, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetClass: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IStorage, clsid: ?*const Guid, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IStorage, clsid: ?*const Guid, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetStateBits: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IStorage, grfStateBits: u32, grfMask: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IStorage, grfStateBits: u32, grfMask: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Stat: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IStorage, pstatstg: ?*STATSTG, grfStatFlag: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IStorage, pstatstg: ?*STATSTG, grfStatFlag: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IStorage_CreateStream(self: *const T, pwcsName: ?[*:0]const u16, grfMode: u32, reserved1: u32, reserved2: u32, ppstm: ?*?*IStream) HRESULT { return @as(*const IStorage.VTable, @ptrCast(self.vtable)).CreateStream(@as(*const IStorage, @ptrCast(self)), pwcsName, grfMode, reserved1, reserved2, ppstm); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IStorage_OpenStream(self: *const T, pwcsName: ?[*:0]const u16, reserved1: ?*anyopaque, grfMode: u32, reserved2: u32, ppstm: ?*?*IStream) HRESULT { return @as(*const IStorage.VTable, @ptrCast(self.vtable)).OpenStream(@as(*const IStorage, @ptrCast(self)), pwcsName, reserved1, grfMode, reserved2, ppstm); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IStorage_CreateStorage(self: *const T, pwcsName: ?[*:0]const u16, grfMode: u32, reserved1: u32, reserved2: u32, ppstg: ?*?*IStorage) HRESULT { return @as(*const IStorage.VTable, @ptrCast(self.vtable)).CreateStorage(@as(*const IStorage, @ptrCast(self)), pwcsName, grfMode, reserved1, reserved2, ppstg); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IStorage_OpenStorage(self: *const T, pwcsName: ?[*:0]const u16, pstgPriority: ?*IStorage, grfMode: u32, snbExclude: ?*?*u16, reserved: u32, ppstg: ?*?*IStorage) HRESULT { return @as(*const IStorage.VTable, @ptrCast(self.vtable)).OpenStorage(@as(*const IStorage, @ptrCast(self)), pwcsName, pstgPriority, grfMode, snbExclude, reserved, ppstg); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IStorage_CopyTo(self: *const T, ciidExclude: u32, rgiidExclude: ?[*]const Guid, snbExclude: ?*?*u16, pstgDest: ?*IStorage) HRESULT { return @as(*const IStorage.VTable, @ptrCast(self.vtable)).CopyTo(@as(*const IStorage, @ptrCast(self)), ciidExclude, rgiidExclude, snbExclude, pstgDest); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IStorage_MoveElementTo(self: *const T, pwcsName: ?[*:0]const u16, pstgDest: ?*IStorage, pwcsNewName: ?[*:0]const u16, grfFlags: u32) HRESULT { return @as(*const IStorage.VTable, @ptrCast(self.vtable)).MoveElementTo(@as(*const IStorage, @ptrCast(self)), pwcsName, pstgDest, pwcsNewName, grfFlags); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IStorage_Commit(self: *const T, grfCommitFlags: u32) HRESULT { return @as(*const IStorage.VTable, @ptrCast(self.vtable)).Commit(@as(*const IStorage, @ptrCast(self)), grfCommitFlags); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IStorage_Revert(self: *const T) HRESULT { return @as(*const IStorage.VTable, @ptrCast(self.vtable)).Revert(@as(*const IStorage, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IStorage_EnumElements(self: *const T, reserved1: u32, reserved2: ?*anyopaque, reserved3: u32, ppenum: ?*?*IEnumSTATSTG) HRESULT { return @as(*const IStorage.VTable, @ptrCast(self.vtable)).EnumElements(@as(*const IStorage, @ptrCast(self)), reserved1, reserved2, reserved3, ppenum); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IStorage_DestroyElement(self: *const T, pwcsName: ?[*:0]const u16) HRESULT { return @as(*const IStorage.VTable, @ptrCast(self.vtable)).DestroyElement(@as(*const IStorage, @ptrCast(self)), pwcsName); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IStorage_RenameElement(self: *const T, pwcsOldName: ?[*:0]const u16, pwcsNewName: ?[*:0]const u16) HRESULT { return @as(*const IStorage.VTable, @ptrCast(self.vtable)).RenameElement(@as(*const IStorage, @ptrCast(self)), pwcsOldName, pwcsNewName); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IStorage_SetElementTimes(self: *const T, pwcsName: ?[*:0]const u16, pctime: ?*const FILETIME, patime: ?*const FILETIME, pmtime: ?*const FILETIME) HRESULT { return @as(*const IStorage.VTable, @ptrCast(self.vtable)).SetElementTimes(@as(*const IStorage, @ptrCast(self)), pwcsName, pctime, patime, pmtime); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IStorage_SetClass(self: *const T, clsid: ?*const Guid) HRESULT { return @as(*const IStorage.VTable, @ptrCast(self.vtable)).SetClass(@as(*const IStorage, @ptrCast(self)), clsid); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IStorage_SetStateBits(self: *const T, grfStateBits: u32, grfMask: u32) HRESULT { return @as(*const IStorage.VTable, @ptrCast(self.vtable)).SetStateBits(@as(*const IStorage, @ptrCast(self)), grfStateBits, grfMask); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IStorage_Stat(self: *const T, pstatstg: ?*STATSTG, grfStatFlag: u32) HRESULT { return @as(*const IStorage.VTable, @ptrCast(self.vtable)).Stat(@as(*const IStorage, @ptrCast(self)), pstatstg, grfStatFlag); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows5.0' const IID_IPersistStorage_Value = Guid.initString("0000010a-0000-0000-c000-000000000046"); pub const IID_IPersistStorage = &IID_IPersistStorage_Value; pub const IPersistStorage = extern struct { pub const VTable = extern struct { base: IPersist.VTable, IsDirty: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IPersistStorage, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IPersistStorage, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, InitNew: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IPersistStorage, pStg: ?*IStorage, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IPersistStorage, pStg: ?*IStorage, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Load: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IPersistStorage, pStg: ?*IStorage, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IPersistStorage, pStg: ?*IStorage, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Save: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IPersistStorage, pStgSave: ?*IStorage, fSameAsLoad: BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IPersistStorage, pStgSave: ?*IStorage, fSameAsLoad: BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SaveCompleted: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IPersistStorage, pStgNew: ?*IStorage, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IPersistStorage, pStgNew: ?*IStorage, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, HandsOffStorage: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IPersistStorage, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IPersistStorage, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IPersist.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPersistStorage_IsDirty(self: *const T) HRESULT { return @as(*const IPersistStorage.VTable, @ptrCast(self.vtable)).IsDirty(@as(*const IPersistStorage, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPersistStorage_InitNew(self: *const T, pStg: ?*IStorage) HRESULT { return @as(*const IPersistStorage.VTable, @ptrCast(self.vtable)).InitNew(@as(*const IPersistStorage, @ptrCast(self)), pStg); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPersistStorage_Load(self: *const T, pStg: ?*IStorage) HRESULT { return @as(*const IPersistStorage.VTable, @ptrCast(self.vtable)).Load(@as(*const IPersistStorage, @ptrCast(self)), pStg); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPersistStorage_Save(self: *const T, pStgSave: ?*IStorage, fSameAsLoad: BOOL) HRESULT { return @as(*const IPersistStorage.VTable, @ptrCast(self.vtable)).Save(@as(*const IPersistStorage, @ptrCast(self)), pStgSave, fSameAsLoad); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPersistStorage_SaveCompleted(self: *const T, pStgNew: ?*IStorage) HRESULT { return @as(*const IPersistStorage.VTable, @ptrCast(self.vtable)).SaveCompleted(@as(*const IPersistStorage, @ptrCast(self)), pStgNew); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPersistStorage_HandsOffStorage(self: *const T) HRESULT { return @as(*const IPersistStorage.VTable, @ptrCast(self.vtable)).HandsOffStorage(@as(*const IPersistStorage, @ptrCast(self))); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows5.0' const IID_ILockBytes_Value = Guid.initString("0000000a-0000-0000-c000-000000000046"); pub const IID_ILockBytes = &IID_ILockBytes_Value; pub const ILockBytes = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, ReadAt: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ILockBytes, ulOffset: ULARGE_INTEGER, // TODO: what to do with BytesParamIndex 2? pv: ?*anyopaque, cb: u32, pcbRead: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ILockBytes, ulOffset: ULARGE_INTEGER, // TODO: what to do with BytesParamIndex 2? pv: ?*anyopaque, cb: u32, pcbRead: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, WriteAt: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ILockBytes, ulOffset: ULARGE_INTEGER, // TODO: what to do with BytesParamIndex 2? pv: ?*const anyopaque, cb: u32, pcbWritten: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ILockBytes, ulOffset: ULARGE_INTEGER, // TODO: what to do with BytesParamIndex 2? pv: ?*const anyopaque, cb: u32, pcbWritten: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Flush: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ILockBytes, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ILockBytes, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetSize: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ILockBytes, cb: ULARGE_INTEGER, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ILockBytes, cb: ULARGE_INTEGER, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, LockRegion: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ILockBytes, libOffset: ULARGE_INTEGER, cb: ULARGE_INTEGER, dwLockType: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ILockBytes, libOffset: ULARGE_INTEGER, cb: ULARGE_INTEGER, dwLockType: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, UnlockRegion: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ILockBytes, libOffset: ULARGE_INTEGER, cb: ULARGE_INTEGER, dwLockType: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ILockBytes, libOffset: ULARGE_INTEGER, cb: ULARGE_INTEGER, dwLockType: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Stat: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ILockBytes, pstatstg: ?*STATSTG, grfStatFlag: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ILockBytes, pstatstg: ?*STATSTG, grfStatFlag: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ILockBytes_ReadAt(self: *const T, ulOffset: ULARGE_INTEGER, pv: ?*anyopaque, cb: u32, pcbRead: ?*u32) HRESULT { return @as(*const ILockBytes.VTable, @ptrCast(self.vtable)).ReadAt(@as(*const ILockBytes, @ptrCast(self)), ulOffset, pv, cb, pcbRead); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ILockBytes_WriteAt(self: *const T, ulOffset: ULARGE_INTEGER, pv: ?*const anyopaque, cb: u32, pcbWritten: ?*u32) HRESULT { return @as(*const ILockBytes.VTable, @ptrCast(self.vtable)).WriteAt(@as(*const ILockBytes, @ptrCast(self)), ulOffset, pv, cb, pcbWritten); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ILockBytes_Flush(self: *const T) HRESULT { return @as(*const ILockBytes.VTable, @ptrCast(self.vtable)).Flush(@as(*const ILockBytes, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ILockBytes_SetSize(self: *const T, cb: ULARGE_INTEGER) HRESULT { return @as(*const ILockBytes.VTable, @ptrCast(self.vtable)).SetSize(@as(*const ILockBytes, @ptrCast(self)), cb); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ILockBytes_LockRegion(self: *const T, libOffset: ULARGE_INTEGER, cb: ULARGE_INTEGER, dwLockType: u32) HRESULT { return @as(*const ILockBytes.VTable, @ptrCast(self.vtable)).LockRegion(@as(*const ILockBytes, @ptrCast(self)), libOffset, cb, dwLockType); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ILockBytes_UnlockRegion(self: *const T, libOffset: ULARGE_INTEGER, cb: ULARGE_INTEGER, dwLockType: u32) HRESULT { return @as(*const ILockBytes.VTable, @ptrCast(self.vtable)).UnlockRegion(@as(*const ILockBytes, @ptrCast(self)), libOffset, cb, dwLockType); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ILockBytes_Stat(self: *const T, pstatstg: ?*STATSTG, grfStatFlag: u32) HRESULT { return @as(*const ILockBytes.VTable, @ptrCast(self.vtable)).Stat(@as(*const ILockBytes, @ptrCast(self)), pstatstg, grfStatFlag); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows5.0' const IID_IRootStorage_Value = Guid.initString("00000012-0000-0000-c000-000000000046"); pub const IID_IRootStorage = &IID_IRootStorage_Value; pub const IRootStorage = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, SwitchToFile: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IRootStorage, pszFile: ?PWSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IRootStorage, pszFile: ?PWSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRootStorage_SwitchToFile(self: *const T, pszFile: ?PWSTR) HRESULT { return @as(*const IRootStorage.VTable, @ptrCast(self.vtable)).SwitchToFile(@as(*const IRootStorage, @ptrCast(self)), pszFile); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows5.0' const IID_IFillLockBytes_Value = Guid.initString("99caf010-415e-11cf-8814-00aa00b569f5"); pub const IID_IFillLockBytes = &IID_IFillLockBytes_Value; pub const IFillLockBytes = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, FillAppend: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IFillLockBytes, // TODO: what to do with BytesParamIndex 1? pv: ?*const anyopaque, cb: u32, pcbWritten: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IFillLockBytes, // TODO: what to do with BytesParamIndex 1? pv: ?*const anyopaque, cb: u32, pcbWritten: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, FillAt: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IFillLockBytes, ulOffset: ULARGE_INTEGER, // TODO: what to do with BytesParamIndex 2? pv: ?*const anyopaque, cb: u32, pcbWritten: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IFillLockBytes, ulOffset: ULARGE_INTEGER, // TODO: what to do with BytesParamIndex 2? pv: ?*const anyopaque, cb: u32, pcbWritten: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetFillSize: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IFillLockBytes, ulSize: ULARGE_INTEGER, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IFillLockBytes, ulSize: ULARGE_INTEGER, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Terminate: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IFillLockBytes, bCanceled: BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IFillLockBytes, bCanceled: BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IFillLockBytes_FillAppend(self: *const T, pv: ?*const anyopaque, cb: u32, pcbWritten: ?*u32) HRESULT { return @as(*const IFillLockBytes.VTable, @ptrCast(self.vtable)).FillAppend(@as(*const IFillLockBytes, @ptrCast(self)), pv, cb, pcbWritten); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IFillLockBytes_FillAt(self: *const T, ulOffset: ULARGE_INTEGER, pv: ?*const anyopaque, cb: u32, pcbWritten: ?*u32) HRESULT { return @as(*const IFillLockBytes.VTable, @ptrCast(self.vtable)).FillAt(@as(*const IFillLockBytes, @ptrCast(self)), ulOffset, pv, cb, pcbWritten); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IFillLockBytes_SetFillSize(self: *const T, ulSize: ULARGE_INTEGER) HRESULT { return @as(*const IFillLockBytes.VTable, @ptrCast(self.vtable)).SetFillSize(@as(*const IFillLockBytes, @ptrCast(self)), ulSize); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IFillLockBytes_Terminate(self: *const T, bCanceled: BOOL) HRESULT { return @as(*const IFillLockBytes.VTable, @ptrCast(self.vtable)).Terminate(@as(*const IFillLockBytes, @ptrCast(self)), bCanceled); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows5.0' const IID_ILayoutStorage_Value = Guid.initString("0e6d4d90-6738-11cf-9608-00aa00680db4"); pub const IID_ILayoutStorage = &IID_ILayoutStorage_Value; pub const ILayoutStorage = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, LayoutScript: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ILayoutStorage, pStorageLayout: [*]StorageLayout, nEntries: u32, glfInterleavedFlag: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ILayoutStorage, pStorageLayout: [*]StorageLayout, nEntries: u32, glfInterleavedFlag: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, BeginMonitor: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ILayoutStorage, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ILayoutStorage, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, EndMonitor: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ILayoutStorage, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ILayoutStorage, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, ReLayoutDocfile: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ILayoutStorage, pwcsNewDfName: ?PWSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ILayoutStorage, pwcsNewDfName: ?PWSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, ReLayoutDocfileOnILockBytes: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ILayoutStorage, pILockBytes: ?*ILockBytes, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ILayoutStorage, pILockBytes: ?*ILockBytes, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ILayoutStorage_LayoutScript(self: *const T, pStorageLayout: [*]StorageLayout, nEntries: u32, glfInterleavedFlag: u32) HRESULT { return @as(*const ILayoutStorage.VTable, @ptrCast(self.vtable)).LayoutScript(@as(*const ILayoutStorage, @ptrCast(self)), pStorageLayout, nEntries, glfInterleavedFlag); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ILayoutStorage_BeginMonitor(self: *const T) HRESULT { return @as(*const ILayoutStorage.VTable, @ptrCast(self.vtable)).BeginMonitor(@as(*const ILayoutStorage, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ILayoutStorage_EndMonitor(self: *const T) HRESULT { return @as(*const ILayoutStorage.VTable, @ptrCast(self.vtable)).EndMonitor(@as(*const ILayoutStorage, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ILayoutStorage_ReLayoutDocfile(self: *const T, pwcsNewDfName: ?PWSTR) HRESULT { return @as(*const ILayoutStorage.VTable, @ptrCast(self.vtable)).ReLayoutDocfile(@as(*const ILayoutStorage, @ptrCast(self)), pwcsNewDfName); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ILayoutStorage_ReLayoutDocfileOnILockBytes(self: *const T, pILockBytes: ?*ILockBytes) HRESULT { return @as(*const ILayoutStorage.VTable, @ptrCast(self.vtable)).ReLayoutDocfileOnILockBytes(@as(*const ILayoutStorage, @ptrCast(self)), pILockBytes); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows5.0' const IID_IDirectWriterLock_Value = Guid.initString("0e6d4d92-6738-11cf-9608-00aa00680db4"); pub const IID_IDirectWriterLock = &IID_IDirectWriterLock_Value; pub const IDirectWriterLock = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, WaitForWriteAccess: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDirectWriterLock, dwTimeout: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDirectWriterLock, dwTimeout: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, ReleaseWriteAccess: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDirectWriterLock, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDirectWriterLock, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, HaveWriteAccess: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDirectWriterLock, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDirectWriterLock, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDirectWriterLock_WaitForWriteAccess(self: *const T, dwTimeout: u32) HRESULT { return @as(*const IDirectWriterLock.VTable, @ptrCast(self.vtable)).WaitForWriteAccess(@as(*const IDirectWriterLock, @ptrCast(self)), dwTimeout); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDirectWriterLock_ReleaseWriteAccess(self: *const T) HRESULT { return @as(*const IDirectWriterLock.VTable, @ptrCast(self.vtable)).ReleaseWriteAccess(@as(*const IDirectWriterLock, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDirectWriterLock_HaveWriteAccess(self: *const T) HRESULT { return @as(*const IDirectWriterLock.VTable, @ptrCast(self.vtable)).HaveWriteAccess(@as(*const IDirectWriterLock, @ptrCast(self))); } }; } pub usingnamespace MethodMixin(@This()); }; pub const VERSIONEDSTREAM = extern struct { guidVersion: Guid, pStream: ?*IStream, }; pub const CAC = extern struct { cElems: u32, pElems: ?PSTR, }; pub const CAUB = extern struct { cElems: u32, pElems: ?*u8, }; pub const CAI = extern struct { cElems: u32, pElems: ?*i16, }; pub const CAUI = extern struct { cElems: u32, pElems: ?*u16, }; pub const CAL = extern struct { cElems: u32, pElems: ?*i32, }; pub const CAUL = extern struct { cElems: u32, pElems: ?*u32, }; pub const CAFLT = extern struct { cElems: u32, pElems: ?*f32, }; pub const CADBL = extern struct { cElems: u32, pElems: ?*f64, }; pub const CACY = extern struct { cElems: u32, pElems: ?*CY, }; pub const CADATE = extern struct { cElems: u32, pElems: ?*f64, }; pub const CABSTR = extern struct { cElems: u32, pElems: ?*?BSTR, }; pub const CABSTRBLOB = extern struct { cElems: u32, pElems: ?*BSTRBLOB, }; pub const CABOOL = extern struct { cElems: u32, pElems: ?*i16, }; pub const CASCODE = extern struct { cElems: u32, pElems: ?*i32, }; pub const CAPROPVARIANT = extern struct { cElems: u32, pElems: ?*PROPVARIANT, }; pub const CAH = extern struct { cElems: u32, pElems: ?*LARGE_INTEGER, }; pub const CAUH = extern struct { cElems: u32, pElems: ?*ULARGE_INTEGER, }; pub const CALPSTR = extern struct { cElems: u32, pElems: ?*?PSTR, }; pub const CALPWSTR = extern struct { cElems: u32, pElems: ?*?PWSTR, }; pub const CAFILETIME = extern struct { cElems: u32, pElems: ?*FILETIME, }; pub const CACLIPDATA = extern struct { cElems: u32, pElems: ?*CLIPDATA, }; pub const CACLSID = extern struct { cElems: u32, pElems: ?*Guid, }; pub const PROPVARIANT = extern struct { Anonymous: extern union { Anonymous: extern struct { vt: u16, wReserved1: u16, wReserved2: u16, wReserved3: u16, Anonymous: extern union { cVal: CHAR, bVal: u8, iVal: i16, uiVal: u16, lVal: i32, ulVal: u32, intVal: i32, uintVal: u32, hVal: LARGE_INTEGER, uhVal: ULARGE_INTEGER, fltVal: f32, dblVal: f64, boolVal: i16, __OBSOLETE__VARIANT_BOOL: i16, scode: i32, cyVal: CY, date: f64, filetime: FILETIME, puuid: ?*Guid, pclipdata: ?*CLIPDATA, bstrVal: ?BSTR, bstrblobVal: BSTRBLOB, blob: BLOB, pszVal: ?PSTR, pwszVal: ?PWSTR, punkVal: ?*IUnknown, pdispVal: ?*IDispatch, pStream: ?*IStream, pStorage: ?*IStorage, pVersionedStream: ?*VERSIONEDSTREAM, parray: ?*SAFEARRAY, cac: CAC, caub: CAUB, cai: CAI, caui: CAUI, cal: CAL, caul: CAUL, cah: CAH, cauh: CAUH, caflt: CAFLT, cadbl: CADBL, cabool: CABOOL, cascode: CASCODE, cacy: CACY, cadate: CADATE, cafiletime: CAFILETIME, cauuid: CACLSID, caclipdata: CACLIPDATA, cabstr: CABSTR, cabstrblob: CABSTRBLOB, calpstr: CALPSTR, calpwstr: CALPWSTR, capropvar: CAPROPVARIANT, pcVal: ?PSTR, pbVal: ?*u8, piVal: ?*i16, puiVal: ?*u16, plVal: ?*i32, pulVal: ?*u32, pintVal: ?*i32, puintVal: ?*u32, pfltVal: ?*f32, pdblVal: ?*f64, pboolVal: ?*i16, pdecVal: ?*DECIMAL, pscode: ?*i32, pcyVal: ?*CY, pdate: ?*f64, pbstrVal: ?*?BSTR, ppunkVal: ?*?*IUnknown, ppdispVal: ?*?*IDispatch, pparray: ?*?*SAFEARRAY, pvarVal: ?*PROPVARIANT, }, }, decVal: DECIMAL, }, }; pub const PROPSPEC = extern struct { ulKind: PROPSPEC_KIND, Anonymous: extern union { propid: u32, lpwstr: ?PWSTR, }, }; pub const STATPROPSTG = extern struct { lpwstrName: ?PWSTR, propid: u32, vt: u16, }; pub const STATPROPSETSTG = extern struct { fmtid: Guid, clsid: Guid, grfFlags: u32, mtime: FILETIME, ctime: FILETIME, atime: FILETIME, dwOSVersion: u32, }; // TODO: this type is limited to platform 'windows5.0' const IID_IPropertyStorage_Value = Guid.initString("00000138-0000-0000-c000-000000000046"); pub const IID_IPropertyStorage = &IID_IPropertyStorage_Value; pub const IPropertyStorage = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, ReadMultiple: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IPropertyStorage, cpspec: u32, rgpspec: [*]const PROPSPEC, rgpropvar: [*]PROPVARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IPropertyStorage, cpspec: u32, rgpspec: [*]const PROPSPEC, rgpropvar: [*]PROPVARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, WriteMultiple: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IPropertyStorage, cpspec: u32, rgpspec: [*]const PROPSPEC, rgpropvar: [*]const PROPVARIANT, propidNameFirst: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IPropertyStorage, cpspec: u32, rgpspec: [*]const PROPSPEC, rgpropvar: [*]const PROPVARIANT, propidNameFirst: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, DeleteMultiple: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IPropertyStorage, cpspec: u32, rgpspec: [*]const PROPSPEC, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IPropertyStorage, cpspec: u32, rgpspec: [*]const PROPSPEC, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, ReadPropertyNames: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IPropertyStorage, cpropid: u32, rgpropid: [*]const u32, rglpwstrName: [*]?PWSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IPropertyStorage, cpropid: u32, rgpropid: [*]const u32, rglpwstrName: [*]?PWSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, WritePropertyNames: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IPropertyStorage, cpropid: u32, rgpropid: [*]const u32, rglpwstrName: [*]const ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IPropertyStorage, cpropid: u32, rgpropid: [*]const u32, rglpwstrName: [*]const ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, DeletePropertyNames: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IPropertyStorage, cpropid: u32, rgpropid: [*]const u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IPropertyStorage, cpropid: u32, rgpropid: [*]const u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Commit: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IPropertyStorage, grfCommitFlags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IPropertyStorage, grfCommitFlags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Revert: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IPropertyStorage, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IPropertyStorage, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Enum: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IPropertyStorage, ppenum: ?*?*IEnumSTATPROPSTG, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IPropertyStorage, ppenum: ?*?*IEnumSTATPROPSTG, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetTimes: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IPropertyStorage, pctime: ?*const FILETIME, patime: ?*const FILETIME, pmtime: ?*const FILETIME, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IPropertyStorage, pctime: ?*const FILETIME, patime: ?*const FILETIME, pmtime: ?*const FILETIME, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetClass: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IPropertyStorage, clsid: ?*const Guid, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IPropertyStorage, clsid: ?*const Guid, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Stat: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IPropertyStorage, pstatpsstg: ?*STATPROPSETSTG, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IPropertyStorage, pstatpsstg: ?*STATPROPSETSTG, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPropertyStorage_ReadMultiple(self: *const T, cpspec: u32, rgpspec: [*]const PROPSPEC, rgpropvar: [*]PROPVARIANT) HRESULT { return @as(*const IPropertyStorage.VTable, @ptrCast(self.vtable)).ReadMultiple(@as(*const IPropertyStorage, @ptrCast(self)), cpspec, rgpspec, rgpropvar); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPropertyStorage_WriteMultiple(self: *const T, cpspec: u32, rgpspec: [*]const PROPSPEC, rgpropvar: [*]const PROPVARIANT, propidNameFirst: u32) HRESULT { return @as(*const IPropertyStorage.VTable, @ptrCast(self.vtable)).WriteMultiple(@as(*const IPropertyStorage, @ptrCast(self)), cpspec, rgpspec, rgpropvar, propidNameFirst); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPropertyStorage_DeleteMultiple(self: *const T, cpspec: u32, rgpspec: [*]const PROPSPEC) HRESULT { return @as(*const IPropertyStorage.VTable, @ptrCast(self.vtable)).DeleteMultiple(@as(*const IPropertyStorage, @ptrCast(self)), cpspec, rgpspec); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPropertyStorage_ReadPropertyNames(self: *const T, cpropid: u32, rgpropid: [*]const u32, rglpwstrName: [*]?PWSTR) HRESULT { return @as(*const IPropertyStorage.VTable, @ptrCast(self.vtable)).ReadPropertyNames(@as(*const IPropertyStorage, @ptrCast(self)), cpropid, rgpropid, rglpwstrName); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPropertyStorage_WritePropertyNames(self: *const T, cpropid: u32, rgpropid: [*]const u32, rglpwstrName: [*]const ?[*:0]const u16) HRESULT { return @as(*const IPropertyStorage.VTable, @ptrCast(self.vtable)).WritePropertyNames(@as(*const IPropertyStorage, @ptrCast(self)), cpropid, rgpropid, rglpwstrName); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPropertyStorage_DeletePropertyNames(self: *const T, cpropid: u32, rgpropid: [*]const u32) HRESULT { return @as(*const IPropertyStorage.VTable, @ptrCast(self.vtable)).DeletePropertyNames(@as(*const IPropertyStorage, @ptrCast(self)), cpropid, rgpropid); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPropertyStorage_Commit(self: *const T, grfCommitFlags: u32) HRESULT { return @as(*const IPropertyStorage.VTable, @ptrCast(self.vtable)).Commit(@as(*const IPropertyStorage, @ptrCast(self)), grfCommitFlags); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPropertyStorage_Revert(self: *const T) HRESULT { return @as(*const IPropertyStorage.VTable, @ptrCast(self.vtable)).Revert(@as(*const IPropertyStorage, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPropertyStorage_Enum(self: *const T, ppenum: ?*?*IEnumSTATPROPSTG) HRESULT { return @as(*const IPropertyStorage.VTable, @ptrCast(self.vtable)).Enum(@as(*const IPropertyStorage, @ptrCast(self)), ppenum); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPropertyStorage_SetTimes(self: *const T, pctime: ?*const FILETIME, patime: ?*const FILETIME, pmtime: ?*const FILETIME) HRESULT { return @as(*const IPropertyStorage.VTable, @ptrCast(self.vtable)).SetTimes(@as(*const IPropertyStorage, @ptrCast(self)), pctime, patime, pmtime); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPropertyStorage_SetClass(self: *const T, clsid: ?*const Guid) HRESULT { return @as(*const IPropertyStorage.VTable, @ptrCast(self.vtable)).SetClass(@as(*const IPropertyStorage, @ptrCast(self)), clsid); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPropertyStorage_Stat(self: *const T, pstatpsstg: ?*STATPROPSETSTG) HRESULT { return @as(*const IPropertyStorage.VTable, @ptrCast(self.vtable)).Stat(@as(*const IPropertyStorage, @ptrCast(self)), pstatpsstg); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows5.0' const IID_IPropertySetStorage_Value = Guid.initString("0000013a-0000-0000-c000-000000000046"); pub const IID_IPropertySetStorage = &IID_IPropertySetStorage_Value; pub const IPropertySetStorage = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, Create: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IPropertySetStorage, rfmtid: ?*const Guid, pclsid: ?*const Guid, grfFlags: u32, grfMode: u32, ppprstg: ?*?*IPropertyStorage, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IPropertySetStorage, rfmtid: ?*const Guid, pclsid: ?*const Guid, grfFlags: u32, grfMode: u32, ppprstg: ?*?*IPropertyStorage, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Open: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IPropertySetStorage, rfmtid: ?*const Guid, grfMode: u32, ppprstg: ?*?*IPropertyStorage, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IPropertySetStorage, rfmtid: ?*const Guid, grfMode: u32, ppprstg: ?*?*IPropertyStorage, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Delete: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IPropertySetStorage, rfmtid: ?*const Guid, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IPropertySetStorage, rfmtid: ?*const Guid, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Enum: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IPropertySetStorage, ppenum: ?*?*IEnumSTATPROPSETSTG, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IPropertySetStorage, ppenum: ?*?*IEnumSTATPROPSETSTG, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPropertySetStorage_Create(self: *const T, rfmtid: ?*const Guid, pclsid: ?*const Guid, grfFlags: u32, grfMode: u32, ppprstg: ?*?*IPropertyStorage) HRESULT { return @as(*const IPropertySetStorage.VTable, @ptrCast(self.vtable)).Create(@as(*const IPropertySetStorage, @ptrCast(self)), rfmtid, pclsid, grfFlags, grfMode, ppprstg); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPropertySetStorage_Open(self: *const T, rfmtid: ?*const Guid, grfMode: u32, ppprstg: ?*?*IPropertyStorage) HRESULT { return @as(*const IPropertySetStorage.VTable, @ptrCast(self.vtable)).Open(@as(*const IPropertySetStorage, @ptrCast(self)), rfmtid, grfMode, ppprstg); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPropertySetStorage_Delete(self: *const T, rfmtid: ?*const Guid) HRESULT { return @as(*const IPropertySetStorage.VTable, @ptrCast(self.vtable)).Delete(@as(*const IPropertySetStorage, @ptrCast(self)), rfmtid); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPropertySetStorage_Enum(self: *const T, ppenum: ?*?*IEnumSTATPROPSETSTG) HRESULT { return @as(*const IPropertySetStorage.VTable, @ptrCast(self.vtable)).Enum(@as(*const IPropertySetStorage, @ptrCast(self)), ppenum); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows5.0' const IID_IEnumSTATPROPSTG_Value = Guid.initString("00000139-0000-0000-c000-000000000046"); pub const IID_IEnumSTATPROPSTG = &IID_IEnumSTATPROPSTG_Value; pub const IEnumSTATPROPSTG = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, Next: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IEnumSTATPROPSTG, celt: u32, rgelt: [*]STATPROPSTG, pceltFetched: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IEnumSTATPROPSTG, celt: u32, rgelt: [*]STATPROPSTG, pceltFetched: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Skip: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IEnumSTATPROPSTG, celt: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IEnumSTATPROPSTG, celt: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Reset: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IEnumSTATPROPSTG, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IEnumSTATPROPSTG, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Clone: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IEnumSTATPROPSTG, ppenum: ?*?*IEnumSTATPROPSTG, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IEnumSTATPROPSTG, ppenum: ?*?*IEnumSTATPROPSTG, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IEnumSTATPROPSTG_Next(self: *const T, celt: u32, rgelt: [*]STATPROPSTG, pceltFetched: ?*u32) HRESULT { return @as(*const IEnumSTATPROPSTG.VTable, @ptrCast(self.vtable)).Next(@as(*const IEnumSTATPROPSTG, @ptrCast(self)), celt, rgelt, pceltFetched); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IEnumSTATPROPSTG_Skip(self: *const T, celt: u32) HRESULT { return @as(*const IEnumSTATPROPSTG.VTable, @ptrCast(self.vtable)).Skip(@as(*const IEnumSTATPROPSTG, @ptrCast(self)), celt); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IEnumSTATPROPSTG_Reset(self: *const T) HRESULT { return @as(*const IEnumSTATPROPSTG.VTable, @ptrCast(self.vtable)).Reset(@as(*const IEnumSTATPROPSTG, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IEnumSTATPROPSTG_Clone(self: *const T, ppenum: ?*?*IEnumSTATPROPSTG) HRESULT { return @as(*const IEnumSTATPROPSTG.VTable, @ptrCast(self.vtable)).Clone(@as(*const IEnumSTATPROPSTG, @ptrCast(self)), ppenum); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows5.0' const IID_IEnumSTATPROPSETSTG_Value = Guid.initString("0000013b-0000-0000-c000-000000000046"); pub const IID_IEnumSTATPROPSETSTG = &IID_IEnumSTATPROPSETSTG_Value; pub const IEnumSTATPROPSETSTG = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, Next: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IEnumSTATPROPSETSTG, celt: u32, rgelt: [*]STATPROPSETSTG, pceltFetched: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IEnumSTATPROPSETSTG, celt: u32, rgelt: [*]STATPROPSETSTG, pceltFetched: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Skip: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IEnumSTATPROPSETSTG, celt: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IEnumSTATPROPSETSTG, celt: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Reset: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IEnumSTATPROPSETSTG, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IEnumSTATPROPSETSTG, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Clone: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IEnumSTATPROPSETSTG, ppenum: ?*?*IEnumSTATPROPSETSTG, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IEnumSTATPROPSETSTG, ppenum: ?*?*IEnumSTATPROPSETSTG, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IEnumSTATPROPSETSTG_Next(self: *const T, celt: u32, rgelt: [*]STATPROPSETSTG, pceltFetched: ?*u32) HRESULT { return @as(*const IEnumSTATPROPSETSTG.VTable, @ptrCast(self.vtable)).Next(@as(*const IEnumSTATPROPSETSTG, @ptrCast(self)), celt, rgelt, pceltFetched); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IEnumSTATPROPSETSTG_Skip(self: *const T, celt: u32) HRESULT { return @as(*const IEnumSTATPROPSETSTG.VTable, @ptrCast(self.vtable)).Skip(@as(*const IEnumSTATPROPSETSTG, @ptrCast(self)), celt); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IEnumSTATPROPSETSTG_Reset(self: *const T) HRESULT { return @as(*const IEnumSTATPROPSETSTG.VTable, @ptrCast(self.vtable)).Reset(@as(*const IEnumSTATPROPSETSTG, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IEnumSTATPROPSETSTG_Clone(self: *const T, ppenum: ?*?*IEnumSTATPROPSETSTG) HRESULT { return @as(*const IEnumSTATPROPSETSTG.VTable, @ptrCast(self.vtable)).Clone(@as(*const IEnumSTATPROPSETSTG, @ptrCast(self)), ppenum); } }; } pub usingnamespace MethodMixin(@This()); }; pub const STGOPTIONS = extern struct { usVersion: u16, reserved: u16, ulSectorSize: u32, pwcsTemplateFile: ?[*:0]const u16, }; pub const PIDMSI_STATUS_VALUE = enum(i32) { NORMAL = 0, NEW = 1, PRELIM = 2, DRAFT = 3, INPROGRESS = 4, EDIT = 5, REVIEW = 6, PROOF = 7, FINAL = 8, OTHER = 32767, }; pub const PIDMSI_STATUS_NORMAL = PIDMSI_STATUS_VALUE.NORMAL; pub const PIDMSI_STATUS_NEW = PIDMSI_STATUS_VALUE.NEW; pub const PIDMSI_STATUS_PRELIM = PIDMSI_STATUS_VALUE.PRELIM; pub const PIDMSI_STATUS_DRAFT = PIDMSI_STATUS_VALUE.DRAFT; pub const PIDMSI_STATUS_INPROGRESS = PIDMSI_STATUS_VALUE.INPROGRESS; pub const PIDMSI_STATUS_EDIT = PIDMSI_STATUS_VALUE.EDIT; pub const PIDMSI_STATUS_REVIEW = PIDMSI_STATUS_VALUE.REVIEW; pub const PIDMSI_STATUS_PROOF = PIDMSI_STATUS_VALUE.PROOF; pub const PIDMSI_STATUS_FINAL = PIDMSI_STATUS_VALUE.FINAL; pub const PIDMSI_STATUS_OTHER = PIDMSI_STATUS_VALUE.OTHER; pub const SERIALIZEDPROPERTYVALUE = extern struct { dwType: u32, rgb: [1]u8, }; pub const PMemoryAllocator = extern struct { placeholder: usize, // TODO: why is this type empty? }; const IID_IPropertyBag_Value = Guid.initString("55272a00-42cb-11ce-8135-00aa004bb851"); pub const IID_IPropertyBag = &IID_IPropertyBag_Value; pub const IPropertyBag = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, Read: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IPropertyBag, pszPropName: ?[*:0]const u16, pVar: ?*VARIANT, pErrorLog: ?*IErrorLog, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IPropertyBag, pszPropName: ?[*:0]const u16, pVar: ?*VARIANT, pErrorLog: ?*IErrorLog, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Write: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IPropertyBag, pszPropName: ?[*:0]const u16, pVar: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IPropertyBag, pszPropName: ?[*:0]const u16, pVar: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPropertyBag_Read(self: *const T, pszPropName: ?[*:0]const u16, pVar: ?*VARIANT, pErrorLog: ?*IErrorLog) HRESULT { return @as(*const IPropertyBag.VTable, @ptrCast(self.vtable)).Read(@as(*const IPropertyBag, @ptrCast(self)), pszPropName, pVar, pErrorLog); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPropertyBag_Write(self: *const T, pszPropName: ?[*:0]const u16, pVar: ?*VARIANT) HRESULT { return @as(*const IPropertyBag.VTable, @ptrCast(self.vtable)).Write(@as(*const IPropertyBag, @ptrCast(self)), pszPropName, pVar); } }; } pub usingnamespace MethodMixin(@This()); }; pub const OLESTREAMVTBL = extern struct { Get: isize, Put: isize, }; pub const OLESTREAM = extern struct { lpstbl: ?*OLESTREAMVTBL, }; pub const PROPBAG2 = extern struct { dwType: u32, vt: u16, cfType: u16, dwHint: u32, pstrName: ?PWSTR, clsid: Guid, }; const IID_IPropertyBag2_Value = Guid.initString("22f55882-280b-11d0-a8a9-00a0c90c2004"); pub const IID_IPropertyBag2 = &IID_IPropertyBag2_Value; pub const IPropertyBag2 = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, Read: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IPropertyBag2, cProperties: u32, pPropBag: [*]PROPBAG2, pErrLog: ?*IErrorLog, pvarValue: [*]VARIANT, phrError: [*]HRESULT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IPropertyBag2, cProperties: u32, pPropBag: [*]PROPBAG2, pErrLog: ?*IErrorLog, pvarValue: [*]VARIANT, phrError: [*]HRESULT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Write: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IPropertyBag2, cProperties: u32, pPropBag: [*]PROPBAG2, pvarValue: [*]VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IPropertyBag2, cProperties: u32, pPropBag: [*]PROPBAG2, pvarValue: [*]VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, CountProperties: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IPropertyBag2, pcProperties: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IPropertyBag2, pcProperties: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetPropertyInfo: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IPropertyBag2, iProperty: u32, cProperties: u32, pPropBag: [*]PROPBAG2, pcProperties: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IPropertyBag2, iProperty: u32, cProperties: u32, pPropBag: [*]PROPBAG2, pcProperties: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, LoadObject: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IPropertyBag2, pstrName: ?[*:0]const u16, dwHint: u32, pUnkObject: ?*IUnknown, pErrLog: ?*IErrorLog, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IPropertyBag2, pstrName: ?[*:0]const u16, dwHint: u32, pUnkObject: ?*IUnknown, pErrLog: ?*IErrorLog, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPropertyBag2_Read(self: *const T, cProperties: u32, pPropBag: [*]PROPBAG2, pErrLog: ?*IErrorLog, pvarValue: [*]VARIANT, phrError: [*]HRESULT) HRESULT { return @as(*const IPropertyBag2.VTable, @ptrCast(self.vtable)).Read(@as(*const IPropertyBag2, @ptrCast(self)), cProperties, pPropBag, pErrLog, pvarValue, phrError); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPropertyBag2_Write(self: *const T, cProperties: u32, pPropBag: [*]PROPBAG2, pvarValue: [*]VARIANT) HRESULT { return @as(*const IPropertyBag2.VTable, @ptrCast(self.vtable)).Write(@as(*const IPropertyBag2, @ptrCast(self)), cProperties, pPropBag, pvarValue); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPropertyBag2_CountProperties(self: *const T, pcProperties: ?*u32) HRESULT { return @as(*const IPropertyBag2.VTable, @ptrCast(self.vtable)).CountProperties(@as(*const IPropertyBag2, @ptrCast(self)), pcProperties); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPropertyBag2_GetPropertyInfo(self: *const T, iProperty: u32, cProperties: u32, pPropBag: [*]PROPBAG2, pcProperties: ?*u32) HRESULT { return @as(*const IPropertyBag2.VTable, @ptrCast(self.vtable)).GetPropertyInfo(@as(*const IPropertyBag2, @ptrCast(self)), iProperty, cProperties, pPropBag, pcProperties); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPropertyBag2_LoadObject(self: *const T, pstrName: ?[*:0]const u16, dwHint: u32, pUnkObject: ?*IUnknown, pErrLog: ?*IErrorLog) HRESULT { return @as(*const IPropertyBag2.VTable, @ptrCast(self.vtable)).LoadObject(@as(*const IPropertyBag2, @ptrCast(self)), pstrName, dwHint, pUnkObject, pErrLog); } }; } pub usingnamespace MethodMixin(@This()); }; //-------------------------------------------------------------------------------- // Section: Functions (45) //-------------------------------------------------------------------------------- // TODO: this type is limited to platform 'windows5.0' pub extern "ole32" fn CoGetInstanceFromFile( pServerInfo: ?*COSERVERINFO, pClsid: ?*Guid, punkOuter: ?*IUnknown, dwClsCtx: CLSCTX, grfMode: u32, pwszName: ?PWSTR, dwCount: u32, pResults: [*]MULTI_QI, ) callconv(@import("std").os.windows.WINAPI) HRESULT; // TODO: this type is limited to platform 'windows5.0' pub extern "ole32" fn CoGetInstanceFromIStorage( pServerInfo: ?*COSERVERINFO, pClsid: ?*Guid, punkOuter: ?*IUnknown, dwClsCtx: CLSCTX, pstg: ?*IStorage, dwCount: u32, pResults: [*]MULTI_QI, ) callconv(@import("std").os.windows.WINAPI) HRESULT; pub extern "ole32" fn StgOpenAsyncDocfileOnIFillLockBytes( pflb: ?*IFillLockBytes, grfMode: u32, asyncFlags: u32, ppstgOpen: ?*?*IStorage, ) callconv(@import("std").os.windows.WINAPI) HRESULT; pub extern "ole32" fn StgGetIFillLockBytesOnILockBytes( pilb: ?*ILockBytes, ppflb: ?*?*IFillLockBytes, ) callconv(@import("std").os.windows.WINAPI) HRESULT; pub extern "ole32" fn StgGetIFillLockBytesOnFile( pwcsName: ?[*:0]const u16, ppflb: ?*?*IFillLockBytes, ) callconv(@import("std").os.windows.WINAPI) HRESULT; pub extern "dflayout" fn StgOpenLayoutDocfile( pwcsDfName: ?[*:0]const u16, grfMode: u32, reserved: u32, ppstgOpen: ?*?*IStorage, ) callconv(@import("std").os.windows.WINAPI) HRESULT; // TODO: this type is limited to platform 'windows5.0' pub extern "ole32" fn CreateStreamOnHGlobal( hGlobal: isize, fDeleteOnRelease: BOOL, ppstm: ?*?*IStream, ) callconv(@import("std").os.windows.WINAPI) HRESULT; // TODO: this type is limited to platform 'windows5.0' pub extern "ole32" fn GetHGlobalFromStream( pstm: ?*IStream, phglobal: ?*isize, ) callconv(@import("std").os.windows.WINAPI) HRESULT; // TODO: this type is limited to platform 'windows5.0' pub extern "ole32" fn CoGetInterfaceAndReleaseStream( pStm: ?*IStream, iid: ?*const Guid, ppv: ?*?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) HRESULT; // TODO: this type is limited to platform 'windows5.0' pub extern "ole32" fn PropVariantCopy( pvarDest: ?*PROPVARIANT, pvarSrc: ?*const PROPVARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT; // TODO: this type is limited to platform 'windows5.0' pub extern "ole32" fn PropVariantClear( pvar: ?*PROPVARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT; // TODO: this type is limited to platform 'windows5.0' pub extern "ole32" fn FreePropVariantArray( cVariants: u32, rgvars: [*]PROPVARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT; // TODO: this type is limited to platform 'windows5.0' pub extern "ole32" fn StgCreateDocfile( pwcsName: ?[*:0]const u16, grfMode: u32, reserved: u32, ppstgOpen: ?*?*IStorage, ) callconv(@import("std").os.windows.WINAPI) HRESULT; // TODO: this type is limited to platform 'windows5.0' pub extern "ole32" fn StgCreateDocfileOnILockBytes( plkbyt: ?*ILockBytes, grfMode: u32, reserved: u32, ppstgOpen: ?*?*IStorage, ) callconv(@import("std").os.windows.WINAPI) HRESULT; // TODO: this type is limited to platform 'windows5.0' pub extern "ole32" fn StgOpenStorage( pwcsName: ?[*:0]const u16, pstgPriority: ?*IStorage, grfMode: u32, snbExclude: ?*?*u16, reserved: u32, ppstgOpen: ?*?*IStorage, ) callconv(@import("std").os.windows.WINAPI) HRESULT; // TODO: this type is limited to platform 'windows5.0' pub extern "ole32" fn StgOpenStorageOnILockBytes( plkbyt: ?*ILockBytes, pstgPriority: ?*IStorage, grfMode: u32, snbExclude: ?*?*u16, reserved: u32, ppstgOpen: ?*?*IStorage, ) callconv(@import("std").os.windows.WINAPI) HRESULT; // TODO: this type is limited to platform 'windows5.0' pub extern "ole32" fn StgIsStorageFile( pwcsName: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT; // TODO: this type is limited to platform 'windows5.0' pub extern "ole32" fn StgIsStorageILockBytes( plkbyt: ?*ILockBytes, ) callconv(@import("std").os.windows.WINAPI) HRESULT; // TODO: this type is limited to platform 'windows5.0' pub extern "ole32" fn StgSetTimes( lpszName: ?[*:0]const u16, pctime: ?*const FILETIME, patime: ?*const FILETIME, pmtime: ?*const FILETIME, ) callconv(@import("std").os.windows.WINAPI) HRESULT; // TODO: this type is limited to platform 'windows5.0' pub extern "ole32" fn StgCreateStorageEx( pwcsName: ?[*:0]const u16, grfMode: u32, stgfmt: u32, grfAttrs: u32, pStgOptions: ?*STGOPTIONS, pSecurityDescriptor: ?*SECURITY_DESCRIPTOR, riid: ?*const Guid, ppObjectOpen: ?*?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) HRESULT; // TODO: this type is limited to platform 'windows5.0' pub extern "ole32" fn StgOpenStorageEx( pwcsName: ?[*:0]const u16, grfMode: u32, stgfmt: u32, grfAttrs: u32, pStgOptions: ?*STGOPTIONS, pSecurityDescriptor: ?*SECURITY_DESCRIPTOR, riid: ?*const Guid, ppObjectOpen: ?*?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) HRESULT; // TODO: this type is limited to platform 'windows5.0' pub extern "ole32" fn StgCreatePropStg( pUnk: ?*IUnknown, fmtid: ?*const Guid, pclsid: ?*const Guid, grfFlags: u32, dwReserved: u32, ppPropStg: ?*?*IPropertyStorage, ) callconv(@import("std").os.windows.WINAPI) HRESULT; // TODO: this type is limited to platform 'windows5.0' pub extern "ole32" fn StgOpenPropStg( pUnk: ?*IUnknown, fmtid: ?*const Guid, grfFlags: u32, dwReserved: u32, ppPropStg: ?*?*IPropertyStorage, ) callconv(@import("std").os.windows.WINAPI) HRESULT; // TODO: this type is limited to platform 'windows5.0' pub extern "ole32" fn StgCreatePropSetStg( pStorage: ?*IStorage, dwReserved: u32, ppPropSetStg: ?*?*IPropertySetStorage, ) callconv(@import("std").os.windows.WINAPI) HRESULT; // TODO: this type is limited to platform 'windows5.0' pub extern "ole32" fn FmtIdToPropStgName( pfmtid: ?*const Guid, oszName: ?PWSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT; // TODO: this type is limited to platform 'windows5.0' pub extern "ole32" fn PropStgNameToFmtId( oszName: ?[*:0]const u16, pfmtid: ?*Guid, ) callconv(@import("std").os.windows.WINAPI) HRESULT; // TODO: this type is limited to platform 'windows5.0' pub extern "ole32" fn ReadClassStg( pStg: ?*IStorage, pclsid: ?*Guid, ) callconv(@import("std").os.windows.WINAPI) HRESULT; // TODO: this type is limited to platform 'windows5.0' pub extern "ole32" fn WriteClassStg( pStg: ?*IStorage, rclsid: ?*const Guid, ) callconv(@import("std").os.windows.WINAPI) HRESULT; // TODO: this type is limited to platform 'windows5.0' pub extern "ole32" fn ReadClassStm( pStm: ?*IStream, pclsid: ?*Guid, ) callconv(@import("std").os.windows.WINAPI) HRESULT; // TODO: this type is limited to platform 'windows5.0' pub extern "ole32" fn WriteClassStm( pStm: ?*IStream, rclsid: ?*const Guid, ) callconv(@import("std").os.windows.WINAPI) HRESULT; // TODO: this type is limited to platform 'windows5.0' pub extern "ole32" fn GetHGlobalFromILockBytes( plkbyt: ?*ILockBytes, phglobal: ?*isize, ) callconv(@import("std").os.windows.WINAPI) HRESULT; // TODO: this type is limited to platform 'windows5.0' pub extern "ole32" fn CreateILockBytesOnHGlobal( hGlobal: isize, fDeleteOnRelease: BOOL, pplkbyt: ?*?*ILockBytes, ) callconv(@import("std").os.windows.WINAPI) HRESULT; // TODO: this type is limited to platform 'windows5.0' pub extern "ole32" fn GetConvertStg( pStg: ?*IStorage, ) callconv(@import("std").os.windows.WINAPI) HRESULT; // TODO: this type is limited to platform 'windows5.0' pub extern "ole32" fn StgConvertVariantToProperty( pvar: ?*const PROPVARIANT, CodePage: u16, // TODO: what to do with BytesParamIndex 3? pprop: ?*SERIALIZEDPROPERTYVALUE, pcb: ?*u32, pid: u32, fReserved: BOOLEAN, pcIndirect: ?*u32, ) callconv(@import("std").os.windows.WINAPI) ?*SERIALIZEDPROPERTYVALUE; // TODO: this type is limited to platform 'windows5.0' pub extern "ole32" fn StgConvertPropertyToVariant( pprop: ?*const SERIALIZEDPROPERTYVALUE, CodePage: u16, pvar: ?*PROPVARIANT, pma: ?*PMemoryAllocator, ) callconv(@import("std").os.windows.WINAPI) BOOLEAN; // TODO: this type is limited to platform 'windows5.0' pub extern "ole32" fn StgPropertyLengthAsVariant( // TODO: what to do with BytesParamIndex 1? pProp: ?*const SERIALIZEDPROPERTYVALUE, cbProp: u32, CodePage: u16, bReserved: u8, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'windows5.0' pub extern "ole32" fn WriteFmtUserTypeStg( pstg: ?*IStorage, cf: u16, lpszUserType: ?PWSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT; // TODO: this type is limited to platform 'windows5.0' pub extern "ole32" fn ReadFmtUserTypeStg( pstg: ?*IStorage, pcf: ?*u16, lplpszUserType: ?*?PWSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT; // TODO: this type is limited to platform 'windows5.0' pub extern "ole32" fn OleConvertOLESTREAMToIStorage( lpolestream: ?*OLESTREAM, pstg: ?*IStorage, ptd: ?*const DVTARGETDEVICE, ) callconv(@import("std").os.windows.WINAPI) HRESULT; // TODO: this type is limited to platform 'windows5.0' pub extern "ole32" fn OleConvertIStorageToOLESTREAM( pstg: ?*IStorage, lpolestream: ?*OLESTREAM, ) callconv(@import("std").os.windows.WINAPI) HRESULT; // TODO: this type is limited to platform 'windows5.0' pub extern "ole32" fn SetConvertStg( pStg: ?*IStorage, fConvert: BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT; // TODO: this type is limited to platform 'windows5.0' pub extern "ole32" fn OleConvertIStorageToOLESTREAMEx( pstg: ?*IStorage, cfFormat: u16, lWidth: i32, lHeight: i32, dwSize: u32, pmedium: ?*STGMEDIUM, polestm: ?*OLESTREAM, ) callconv(@import("std").os.windows.WINAPI) HRESULT; // TODO: this type is limited to platform 'windows5.0' pub extern "ole32" fn OleConvertOLESTREAMToIStorageEx( polestm: ?*OLESTREAM, pstg: ?*IStorage, pcfFormat: ?*u16, plwWidth: ?*i32, plHeight: ?*i32, pdwSize: ?*u32, pmedium: ?*STGMEDIUM, ) callconv(@import("std").os.windows.WINAPI) HRESULT; // TODO: this type is limited to platform 'windows5.0' pub extern "propsys" fn StgSerializePropVariant( ppropvar: ?*const PROPVARIANT, ppProp: ?*?*SERIALIZEDPROPERTYVALUE, pcb: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT; // TODO: this type is limited to platform 'windows5.0' pub extern "propsys" fn StgDeserializePropVariant( pprop: ?*const SERIALIZEDPROPERTYVALUE, cbMax: u32, ppropvar: ?*PROPVARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT; //-------------------------------------------------------------------------------- // Section: Unicode Aliases (0) //-------------------------------------------------------------------------------- const thismodule = @This(); pub usingnamespace switch (@import("../../zig.zig").unicode_mode) { .ansi => struct {}, .wide => struct {}, .unspecified => if (@import("builtin").is_test) struct {} else struct {}, }; //-------------------------------------------------------------------------------- // Section: Imports (29) //-------------------------------------------------------------------------------- const Guid = @import("../../zig.zig").Guid; const BLOB = @import("../../system/com.zig").BLOB; const BOOL = @import("../../foundation.zig").BOOL; const BOOLEAN = @import("../../foundation.zig").BOOLEAN; const BSTR = @import("../../foundation.zig").BSTR; const CHAR = @import("../../foundation.zig").CHAR; const CLSCTX = @import("../../system/com.zig").CLSCTX; const COSERVERINFO = @import("../../system/com.zig").COSERVERINFO; const CY = @import("../../system/com.zig").CY; const DECIMAL = @import("../../foundation.zig").DECIMAL; const DVTARGETDEVICE = @import("../../system/com.zig").DVTARGETDEVICE; const FILETIME = @import("../../foundation.zig").FILETIME; const HRESULT = @import("../../foundation.zig").HRESULT; const IDispatch = @import("../../system/com.zig").IDispatch; const IErrorLog = @import("../../system/com.zig").IErrorLog; const IPersist = @import("../../system/com.zig").IPersist; const IStream = @import("../../system/com.zig").IStream; const IUnknown = @import("../../system/com.zig").IUnknown; const LARGE_INTEGER = @import("../../foundation.zig").LARGE_INTEGER; const MULTI_QI = @import("../../system/com.zig").MULTI_QI; const PSTR = @import("../../foundation.zig").PSTR; const PWSTR = @import("../../foundation.zig").PWSTR; const SAFEARRAY = @import("../../system/com.zig").SAFEARRAY; const SECURITY_DESCRIPTOR = @import("../../security.zig").SECURITY_DESCRIPTOR; const STATSTG = @import("../../system/com.zig").STATSTG; const STGMEDIUM = @import("../../system/com.zig").STGMEDIUM; const StorageLayout = @import("../../system/com.zig").StorageLayout; const ULARGE_INTEGER = @import("../../foundation.zig").ULARGE_INTEGER; const VARIANT = @import("../../system/com.zig").VARIANT; test { @setEvalBranchQuota(comptime @import("std").meta.declarations(@This()).len * 3); // reference all the pub declarations if (!@import("builtin").is_test) return; inline for (comptime @import("std").meta.declarations(@This())) |decl| { if (decl.is_pub) { _ = @field(@This(), decl.name); } } }
0
repos/capy/vendor/zigwin32/win32/system
repos/capy/vendor/zigwin32/win32/system/com/channel_credentials.zig
//! NOTE: this file is autogenerated, DO NOT MODIFY //-------------------------------------------------------------------------------- // Section: Constants (0) //-------------------------------------------------------------------------------- //-------------------------------------------------------------------------------- // Section: Types (1) //-------------------------------------------------------------------------------- const IID_IChannelCredentials_Value = Guid.initString("181b448c-c17c-4b17-ac6d-06699b93198f"); pub const IID_IChannelCredentials = &IID_IChannelCredentials_Value; pub const IChannelCredentials = extern struct { pub const VTable = extern struct { base: IDispatch.VTable, SetWindowsCredential: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IChannelCredentials, domain: ?BSTR, username: ?BSTR, password: ?BSTR, impersonationLevel: i32, allowNtlm: BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IChannelCredentials, domain: ?BSTR, username: ?BSTR, password: ?BSTR, impersonationLevel: i32, allowNtlm: BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetUserNameCredential: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IChannelCredentials, username: ?BSTR, password: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IChannelCredentials, username: ?BSTR, password: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetClientCertificateFromStore: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IChannelCredentials, storeLocation: ?BSTR, storeName: ?BSTR, findYype: ?BSTR, findValue: VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IChannelCredentials, storeLocation: ?BSTR, storeName: ?BSTR, findYype: ?BSTR, findValue: VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetClientCertificateFromStoreByName: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IChannelCredentials, subjectName: ?BSTR, storeLocation: ?BSTR, storeName: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IChannelCredentials, subjectName: ?BSTR, storeLocation: ?BSTR, storeName: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetClientCertificateFromFile: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IChannelCredentials, filename: ?BSTR, password: ?BSTR, keystorageFlags: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IChannelCredentials, filename: ?BSTR, password: ?BSTR, keystorageFlags: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetDefaultServiceCertificateFromStore: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IChannelCredentials, storeLocation: ?BSTR, storeName: ?BSTR, findType: ?BSTR, findValue: VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IChannelCredentials, storeLocation: ?BSTR, storeName: ?BSTR, findType: ?BSTR, findValue: VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetDefaultServiceCertificateFromStoreByName: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IChannelCredentials, subjectName: ?BSTR, storeLocation: ?BSTR, storeName: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IChannelCredentials, subjectName: ?BSTR, storeLocation: ?BSTR, storeName: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetDefaultServiceCertificateFromFile: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IChannelCredentials, filename: ?BSTR, password: ?BSTR, keystorageFlags: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IChannelCredentials, filename: ?BSTR, password: ?BSTR, keystorageFlags: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetServiceCertificateAuthentication: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IChannelCredentials, storeLocation: ?BSTR, revocationMode: ?BSTR, certificateValidationMode: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IChannelCredentials, storeLocation: ?BSTR, revocationMode: ?BSTR, certificateValidationMode: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetIssuedToken: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IChannelCredentials, localIssuerAddres: ?BSTR, localIssuerBindingType: ?BSTR, localIssuerBinding: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IChannelCredentials, localIssuerAddres: ?BSTR, localIssuerBindingType: ?BSTR, localIssuerBinding: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IDispatch.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IChannelCredentials_SetWindowsCredential(self: *const T, domain: ?BSTR, username: ?BSTR, password: ?BSTR, impersonationLevel: i32, allowNtlm: BOOL) HRESULT { return @as(*const IChannelCredentials.VTable, @ptrCast(self.vtable)).SetWindowsCredential(@as(*const IChannelCredentials, @ptrCast(self)), domain, username, password, impersonationLevel, allowNtlm); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IChannelCredentials_SetUserNameCredential(self: *const T, username: ?BSTR, password: ?BSTR) HRESULT { return @as(*const IChannelCredentials.VTable, @ptrCast(self.vtable)).SetUserNameCredential(@as(*const IChannelCredentials, @ptrCast(self)), username, password); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IChannelCredentials_SetClientCertificateFromStore(self: *const T, storeLocation: ?BSTR, storeName: ?BSTR, findYype: ?BSTR, findValue: VARIANT) HRESULT { return @as(*const IChannelCredentials.VTable, @ptrCast(self.vtable)).SetClientCertificateFromStore(@as(*const IChannelCredentials, @ptrCast(self)), storeLocation, storeName, findYype, findValue); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IChannelCredentials_SetClientCertificateFromStoreByName(self: *const T, subjectName: ?BSTR, storeLocation: ?BSTR, storeName: ?BSTR) HRESULT { return @as(*const IChannelCredentials.VTable, @ptrCast(self.vtable)).SetClientCertificateFromStoreByName(@as(*const IChannelCredentials, @ptrCast(self)), subjectName, storeLocation, storeName); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IChannelCredentials_SetClientCertificateFromFile(self: *const T, filename: ?BSTR, password: ?BSTR, keystorageFlags: ?BSTR) HRESULT { return @as(*const IChannelCredentials.VTable, @ptrCast(self.vtable)).SetClientCertificateFromFile(@as(*const IChannelCredentials, @ptrCast(self)), filename, password, keystorageFlags); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IChannelCredentials_SetDefaultServiceCertificateFromStore(self: *const T, storeLocation: ?BSTR, storeName: ?BSTR, findType: ?BSTR, findValue: VARIANT) HRESULT { return @as(*const IChannelCredentials.VTable, @ptrCast(self.vtable)).SetDefaultServiceCertificateFromStore(@as(*const IChannelCredentials, @ptrCast(self)), storeLocation, storeName, findType, findValue); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IChannelCredentials_SetDefaultServiceCertificateFromStoreByName(self: *const T, subjectName: ?BSTR, storeLocation: ?BSTR, storeName: ?BSTR) HRESULT { return @as(*const IChannelCredentials.VTable, @ptrCast(self.vtable)).SetDefaultServiceCertificateFromStoreByName(@as(*const IChannelCredentials, @ptrCast(self)), subjectName, storeLocation, storeName); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IChannelCredentials_SetDefaultServiceCertificateFromFile(self: *const T, filename: ?BSTR, password: ?BSTR, keystorageFlags: ?BSTR) HRESULT { return @as(*const IChannelCredentials.VTable, @ptrCast(self.vtable)).SetDefaultServiceCertificateFromFile(@as(*const IChannelCredentials, @ptrCast(self)), filename, password, keystorageFlags); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IChannelCredentials_SetServiceCertificateAuthentication(self: *const T, storeLocation: ?BSTR, revocationMode: ?BSTR, certificateValidationMode: ?BSTR) HRESULT { return @as(*const IChannelCredentials.VTable, @ptrCast(self.vtable)).SetServiceCertificateAuthentication(@as(*const IChannelCredentials, @ptrCast(self)), storeLocation, revocationMode, certificateValidationMode); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IChannelCredentials_SetIssuedToken(self: *const T, localIssuerAddres: ?BSTR, localIssuerBindingType: ?BSTR, localIssuerBinding: ?BSTR) HRESULT { return @as(*const IChannelCredentials.VTable, @ptrCast(self.vtable)).SetIssuedToken(@as(*const IChannelCredentials, @ptrCast(self)), localIssuerAddres, localIssuerBindingType, localIssuerBinding); } }; } pub usingnamespace MethodMixin(@This()); }; //-------------------------------------------------------------------------------- // Section: Functions (0) //-------------------------------------------------------------------------------- //-------------------------------------------------------------------------------- // Section: Unicode Aliases (0) //-------------------------------------------------------------------------------- const thismodule = @This(); pub usingnamespace switch (@import("../../zig.zig").unicode_mode) { .ansi => struct {}, .wide => struct {}, .unspecified => if (@import("builtin").is_test) struct {} else struct {}, }; //-------------------------------------------------------------------------------- // Section: Imports (6) //-------------------------------------------------------------------------------- const Guid = @import("../../zig.zig").Guid; const BOOL = @import("../../foundation.zig").BOOL; const BSTR = @import("../../foundation.zig").BSTR; const HRESULT = @import("../../foundation.zig").HRESULT; const IDispatch = @import("../../system/com.zig").IDispatch; const VARIANT = @import("../../system/com.zig").VARIANT; test { @setEvalBranchQuota(comptime @import("std").meta.declarations(@This()).len * 3); // reference all the pub declarations if (!@import("builtin").is_test) return; inline for (comptime @import("std").meta.declarations(@This())) |decl| { if (decl.is_pub) { _ = @field(@This(), decl.name); } } }
0
repos/capy/vendor/zigwin32/win32/system
repos/capy/vendor/zigwin32/win32/system/com/marshal.zig
//! NOTE: this file is autogenerated, DO NOT MODIFY //-------------------------------------------------------------------------------- // Section: Constants (0) //-------------------------------------------------------------------------------- //-------------------------------------------------------------------------------- // Section: Types (4) //-------------------------------------------------------------------------------- // TODO: this type is limited to platform 'windows5.0' const IID_IMarshal_Value = Guid.initString("00000003-0000-0000-c000-000000000046"); pub const IID_IMarshal = &IID_IMarshal_Value; pub const IMarshal = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, GetUnmarshalClass: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IMarshal, riid: ?*const Guid, pv: ?*anyopaque, dwDestContext: u32, pvDestContext: ?*anyopaque, mshlflags: u32, pCid: ?*Guid, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IMarshal, riid: ?*const Guid, pv: ?*anyopaque, dwDestContext: u32, pvDestContext: ?*anyopaque, mshlflags: u32, pCid: ?*Guid, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetMarshalSizeMax: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IMarshal, riid: ?*const Guid, pv: ?*anyopaque, dwDestContext: u32, pvDestContext: ?*anyopaque, mshlflags: u32, pSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IMarshal, riid: ?*const Guid, pv: ?*anyopaque, dwDestContext: u32, pvDestContext: ?*anyopaque, mshlflags: u32, pSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, MarshalInterface: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IMarshal, pStm: ?*IStream, riid: ?*const Guid, pv: ?*anyopaque, dwDestContext: u32, pvDestContext: ?*anyopaque, mshlflags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IMarshal, pStm: ?*IStream, riid: ?*const Guid, pv: ?*anyopaque, dwDestContext: u32, pvDestContext: ?*anyopaque, mshlflags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, UnmarshalInterface: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IMarshal, pStm: ?*IStream, riid: ?*const Guid, ppv: ?*?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IMarshal, pStm: ?*IStream, riid: ?*const Guid, ppv: ?*?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, ReleaseMarshalData: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IMarshal, pStm: ?*IStream, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IMarshal, pStm: ?*IStream, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, DisconnectObject: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IMarshal, dwReserved: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IMarshal, dwReserved: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMarshal_GetUnmarshalClass(self: *const T, riid: ?*const Guid, pv: ?*anyopaque, dwDestContext: u32, pvDestContext: ?*anyopaque, mshlflags: u32, pCid: ?*Guid) HRESULT { return @as(*const IMarshal.VTable, @ptrCast(self.vtable)).GetUnmarshalClass(@as(*const IMarshal, @ptrCast(self)), riid, pv, dwDestContext, pvDestContext, mshlflags, pCid); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMarshal_GetMarshalSizeMax(self: *const T, riid: ?*const Guid, pv: ?*anyopaque, dwDestContext: u32, pvDestContext: ?*anyopaque, mshlflags: u32, pSize: ?*u32) HRESULT { return @as(*const IMarshal.VTable, @ptrCast(self.vtable)).GetMarshalSizeMax(@as(*const IMarshal, @ptrCast(self)), riid, pv, dwDestContext, pvDestContext, mshlflags, pSize); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMarshal_MarshalInterface(self: *const T, pStm: ?*IStream, riid: ?*const Guid, pv: ?*anyopaque, dwDestContext: u32, pvDestContext: ?*anyopaque, mshlflags: u32) HRESULT { return @as(*const IMarshal.VTable, @ptrCast(self.vtable)).MarshalInterface(@as(*const IMarshal, @ptrCast(self)), pStm, riid, pv, dwDestContext, pvDestContext, mshlflags); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMarshal_UnmarshalInterface(self: *const T, pStm: ?*IStream, riid: ?*const Guid, ppv: ?*?*anyopaque) HRESULT { return @as(*const IMarshal.VTable, @ptrCast(self.vtable)).UnmarshalInterface(@as(*const IMarshal, @ptrCast(self)), pStm, riid, ppv); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMarshal_ReleaseMarshalData(self: *const T, pStm: ?*IStream) HRESULT { return @as(*const IMarshal.VTable, @ptrCast(self.vtable)).ReleaseMarshalData(@as(*const IMarshal, @ptrCast(self)), pStm); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMarshal_DisconnectObject(self: *const T, dwReserved: u32) HRESULT { return @as(*const IMarshal.VTable, @ptrCast(self.vtable)).DisconnectObject(@as(*const IMarshal, @ptrCast(self)), dwReserved); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IMarshal2_Value = Guid.initString("000001cf-0000-0000-c000-000000000046"); pub const IID_IMarshal2 = &IID_IMarshal2_Value; pub const IMarshal2 = extern struct { pub const VTable = extern struct { base: IMarshal.VTable, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IMarshal.MethodMixin(T); }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows8.0' const IID_IMarshalingStream_Value = Guid.initString("d8f2f5e6-6102-4863-9f26-389a4676efde"); pub const IID_IMarshalingStream = &IID_IMarshalingStream_Value; pub const IMarshalingStream = extern struct { pub const VTable = extern struct { base: IStream.VTable, GetMarshalingContextAttribute: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IMarshalingStream, attribute: CO_MARSHALING_CONTEXT_ATTRIBUTES, pAttributeValue: ?*usize, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IMarshalingStream, attribute: CO_MARSHALING_CONTEXT_ATTRIBUTES, pAttributeValue: ?*usize, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IStream.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMarshalingStream_GetMarshalingContextAttribute(self: *const T, attribute: CO_MARSHALING_CONTEXT_ATTRIBUTES, pAttributeValue: ?*usize) HRESULT { return @as(*const IMarshalingStream.VTable, @ptrCast(self.vtable)).GetMarshalingContextAttribute(@as(*const IMarshalingStream, @ptrCast(self)), attribute, pAttributeValue); } }; } pub usingnamespace MethodMixin(@This()); }; pub const STDMSHLFLAGS = enum(i32) { SERVER = 1, HANDLER = 2, }; pub const SMEXF_SERVER = STDMSHLFLAGS.SERVER; pub const SMEXF_HANDLER = STDMSHLFLAGS.HANDLER; //-------------------------------------------------------------------------------- // Section: Functions (121) //-------------------------------------------------------------------------------- pub extern "oleaut32" fn BSTR_UserSize( param0: ?*u32, param1: u32, param2: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) u32; pub extern "oleaut32" fn BSTR_UserMarshal( param0: ?*u32, param1: ?*u8, param2: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) ?*u8; pub extern "oleaut32" fn BSTR_UserUnmarshal( param0: ?*u32, param1: [*:0]u8, param2: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) ?*u8; pub extern "oleaut32" fn BSTR_UserFree( param0: ?*u32, param1: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) void; pub extern "ole32" fn HWND_UserSize( param0: ?*u32, param1: u32, param2: ?*?HWND, ) callconv(@import("std").os.windows.WINAPI) u32; pub extern "ole32" fn HWND_UserMarshal( param0: ?*u32, param1: ?*u8, param2: ?*?HWND, ) callconv(@import("std").os.windows.WINAPI) ?*u8; pub extern "ole32" fn HWND_UserUnmarshal( param0: ?*u32, param1: [*:0]u8, param2: ?*?HWND, ) callconv(@import("std").os.windows.WINAPI) ?*u8; pub extern "ole32" fn HWND_UserFree( param0: ?*u32, param1: ?*?HWND, ) callconv(@import("std").os.windows.WINAPI) void; pub extern "oleaut32" fn VARIANT_UserSize( param0: ?*u32, param1: u32, param2: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) u32; pub extern "oleaut32" fn VARIANT_UserMarshal( param0: ?*u32, param1: ?*u8, param2: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) ?*u8; pub extern "oleaut32" fn VARIANT_UserUnmarshal( param0: ?*u32, param1: [*:0]u8, param2: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) ?*u8; pub extern "oleaut32" fn VARIANT_UserFree( param0: ?*u32, param1: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) void; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "oleaut32" fn BSTR_UserSize64( param0: ?*u32, param1: u32, param2: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "oleaut32" fn BSTR_UserMarshal64( param0: ?*u32, param1: ?*u8, param2: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) ?*u8; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "oleaut32" fn BSTR_UserUnmarshal64( param0: ?*u32, param1: [*:0]u8, param2: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) ?*u8; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "oleaut32" fn BSTR_UserFree64( param0: ?*u32, param1: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) void; pub extern "ole32" fn HWND_UserSize64( param0: ?*u32, param1: u32, param2: ?*?HWND, ) callconv(@import("std").os.windows.WINAPI) u32; pub extern "ole32" fn HWND_UserMarshal64( param0: ?*u32, param1: ?*u8, param2: ?*?HWND, ) callconv(@import("std").os.windows.WINAPI) ?*u8; pub extern "ole32" fn HWND_UserUnmarshal64( param0: ?*u32, param1: [*:0]u8, param2: ?*?HWND, ) callconv(@import("std").os.windows.WINAPI) ?*u8; pub extern "ole32" fn HWND_UserFree64( param0: ?*u32, param1: ?*?HWND, ) callconv(@import("std").os.windows.WINAPI) void; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "oleaut32" fn VARIANT_UserSize64( param0: ?*u32, param1: u32, param2: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "oleaut32" fn VARIANT_UserMarshal64( param0: ?*u32, param1: ?*u8, param2: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) ?*u8; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "oleaut32" fn VARIANT_UserUnmarshal64( param0: ?*u32, param1: [*:0]u8, param2: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) ?*u8; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "oleaut32" fn VARIANT_UserFree64( param0: ?*u32, param1: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) void; pub extern "ole32" fn CLIPFORMAT_UserSize( param0: ?*u32, param1: u32, param2: ?*u16, ) callconv(@import("std").os.windows.WINAPI) u32; pub extern "ole32" fn CLIPFORMAT_UserMarshal( param0: ?*u32, param1: ?*u8, param2: ?*u16, ) callconv(@import("std").os.windows.WINAPI) ?*u8; pub extern "ole32" fn CLIPFORMAT_UserUnmarshal( param0: ?*u32, param1: [*:0]u8, param2: ?*u16, ) callconv(@import("std").os.windows.WINAPI) ?*u8; pub extern "ole32" fn CLIPFORMAT_UserFree( param0: ?*u32, param1: ?*u16, ) callconv(@import("std").os.windows.WINAPI) void; pub extern "ole32" fn HBITMAP_UserSize( param0: ?*u32, param1: u32, param2: ?*?HBITMAP, ) callconv(@import("std").os.windows.WINAPI) u32; pub extern "ole32" fn HBITMAP_UserMarshal( param0: ?*u32, param1: ?*u8, param2: ?*?HBITMAP, ) callconv(@import("std").os.windows.WINAPI) ?*u8; pub extern "ole32" fn HBITMAP_UserUnmarshal( param0: ?*u32, param1: [*:0]u8, param2: ?*?HBITMAP, ) callconv(@import("std").os.windows.WINAPI) ?*u8; pub extern "ole32" fn HBITMAP_UserFree( param0: ?*u32, param1: ?*?HBITMAP, ) callconv(@import("std").os.windows.WINAPI) void; pub extern "ole32" fn HDC_UserSize( param0: ?*u32, param1: u32, param2: ?*?HDC, ) callconv(@import("std").os.windows.WINAPI) u32; pub extern "ole32" fn HDC_UserMarshal( param0: ?*u32, param1: ?*u8, param2: ?*?HDC, ) callconv(@import("std").os.windows.WINAPI) ?*u8; pub extern "ole32" fn HDC_UserUnmarshal( param0: ?*u32, param1: [*:0]u8, param2: ?*?HDC, ) callconv(@import("std").os.windows.WINAPI) ?*u8; pub extern "ole32" fn HDC_UserFree( param0: ?*u32, param1: ?*?HDC, ) callconv(@import("std").os.windows.WINAPI) void; pub extern "ole32" fn HICON_UserSize( param0: ?*u32, param1: u32, param2: ?*?HICON, ) callconv(@import("std").os.windows.WINAPI) u32; pub extern "ole32" fn HICON_UserMarshal( param0: ?*u32, param1: ?*u8, param2: ?*?HICON, ) callconv(@import("std").os.windows.WINAPI) ?*u8; pub extern "ole32" fn HICON_UserUnmarshal( param0: ?*u32, param1: [*:0]u8, param2: ?*?HICON, ) callconv(@import("std").os.windows.WINAPI) ?*u8; pub extern "ole32" fn HICON_UserFree( param0: ?*u32, param1: ?*?HICON, ) callconv(@import("std").os.windows.WINAPI) void; pub extern "ole32" fn SNB_UserSize( param0: ?*u32, param1: u32, param2: ?*?*?*u16, ) callconv(@import("std").os.windows.WINAPI) u32; pub extern "ole32" fn SNB_UserMarshal( param0: ?*u32, param1: ?*u8, param2: ?*?*?*u16, ) callconv(@import("std").os.windows.WINAPI) ?*u8; pub extern "ole32" fn SNB_UserUnmarshal( param0: ?*u32, param1: [*:0]u8, param2: ?*?*?*u16, ) callconv(@import("std").os.windows.WINAPI) ?*u8; pub extern "ole32" fn SNB_UserFree( param0: ?*u32, param1: ?*?*?*u16, ) callconv(@import("std").os.windows.WINAPI) void; pub extern "ole32" fn STGMEDIUM_UserSize( param0: ?*u32, param1: u32, param2: ?*STGMEDIUM, ) callconv(@import("std").os.windows.WINAPI) u32; pub extern "ole32" fn STGMEDIUM_UserMarshal( param0: ?*u32, param1: ?*u8, param2: ?*STGMEDIUM, ) callconv(@import("std").os.windows.WINAPI) ?*u8; pub extern "ole32" fn STGMEDIUM_UserUnmarshal( param0: ?*u32, param1: [*:0]u8, param2: ?*STGMEDIUM, ) callconv(@import("std").os.windows.WINAPI) ?*u8; pub extern "ole32" fn STGMEDIUM_UserFree( param0: ?*u32, param1: ?*STGMEDIUM, ) callconv(@import("std").os.windows.WINAPI) void; pub extern "ole32" fn CLIPFORMAT_UserSize64( param0: ?*u32, param1: u32, param2: ?*u16, ) callconv(@import("std").os.windows.WINAPI) u32; pub extern "ole32" fn CLIPFORMAT_UserMarshal64( param0: ?*u32, param1: ?*u8, param2: ?*u16, ) callconv(@import("std").os.windows.WINAPI) ?*u8; pub extern "ole32" fn CLIPFORMAT_UserUnmarshal64( param0: ?*u32, param1: [*:0]u8, param2: ?*u16, ) callconv(@import("std").os.windows.WINAPI) ?*u8; pub extern "ole32" fn CLIPFORMAT_UserFree64( param0: ?*u32, param1: ?*u16, ) callconv(@import("std").os.windows.WINAPI) void; pub extern "ole32" fn HBITMAP_UserSize64( param0: ?*u32, param1: u32, param2: ?*?HBITMAP, ) callconv(@import("std").os.windows.WINAPI) u32; pub extern "ole32" fn HBITMAP_UserMarshal64( param0: ?*u32, param1: ?*u8, param2: ?*?HBITMAP, ) callconv(@import("std").os.windows.WINAPI) ?*u8; pub extern "ole32" fn HBITMAP_UserUnmarshal64( param0: ?*u32, param1: [*:0]u8, param2: ?*?HBITMAP, ) callconv(@import("std").os.windows.WINAPI) ?*u8; pub extern "ole32" fn HBITMAP_UserFree64( param0: ?*u32, param1: ?*?HBITMAP, ) callconv(@import("std").os.windows.WINAPI) void; pub extern "ole32" fn HDC_UserSize64( param0: ?*u32, param1: u32, param2: ?*?HDC, ) callconv(@import("std").os.windows.WINAPI) u32; pub extern "ole32" fn HDC_UserMarshal64( param0: ?*u32, param1: ?*u8, param2: ?*?HDC, ) callconv(@import("std").os.windows.WINAPI) ?*u8; pub extern "ole32" fn HDC_UserUnmarshal64( param0: ?*u32, param1: [*:0]u8, param2: ?*?HDC, ) callconv(@import("std").os.windows.WINAPI) ?*u8; pub extern "ole32" fn HDC_UserFree64( param0: ?*u32, param1: ?*?HDC, ) callconv(@import("std").os.windows.WINAPI) void; pub extern "ole32" fn HICON_UserSize64( param0: ?*u32, param1: u32, param2: ?*?HICON, ) callconv(@import("std").os.windows.WINAPI) u32; pub extern "ole32" fn HICON_UserMarshal64( param0: ?*u32, param1: ?*u8, param2: ?*?HICON, ) callconv(@import("std").os.windows.WINAPI) ?*u8; pub extern "ole32" fn HICON_UserUnmarshal64( param0: ?*u32, param1: [*:0]u8, param2: ?*?HICON, ) callconv(@import("std").os.windows.WINAPI) ?*u8; pub extern "ole32" fn HICON_UserFree64( param0: ?*u32, param1: ?*?HICON, ) callconv(@import("std").os.windows.WINAPI) void; pub extern "ole32" fn SNB_UserSize64( param0: ?*u32, param1: u32, param2: ?*?*?*u16, ) callconv(@import("std").os.windows.WINAPI) u32; pub extern "ole32" fn SNB_UserMarshal64( param0: ?*u32, param1: ?*u8, param2: ?*?*?*u16, ) callconv(@import("std").os.windows.WINAPI) ?*u8; pub extern "ole32" fn SNB_UserUnmarshal64( param0: ?*u32, param1: [*:0]u8, param2: ?*?*?*u16, ) callconv(@import("std").os.windows.WINAPI) ?*u8; pub extern "ole32" fn SNB_UserFree64( param0: ?*u32, param1: ?*?*?*u16, ) callconv(@import("std").os.windows.WINAPI) void; pub extern "ole32" fn STGMEDIUM_UserSize64( param0: ?*u32, param1: u32, param2: ?*STGMEDIUM, ) callconv(@import("std").os.windows.WINAPI) u32; pub extern "ole32" fn STGMEDIUM_UserMarshal64( param0: ?*u32, param1: ?*u8, param2: ?*STGMEDIUM, ) callconv(@import("std").os.windows.WINAPI) ?*u8; pub extern "ole32" fn STGMEDIUM_UserUnmarshal64( param0: ?*u32, param1: [*:0]u8, param2: ?*STGMEDIUM, ) callconv(@import("std").os.windows.WINAPI) ?*u8; pub extern "ole32" fn STGMEDIUM_UserFree64( param0: ?*u32, param1: ?*STGMEDIUM, ) callconv(@import("std").os.windows.WINAPI) void; // TODO: this type is limited to platform 'windows5.0' pub extern "ole32" fn CoGetMarshalSizeMax( pulSize: ?*u32, riid: ?*const Guid, pUnk: ?*IUnknown, dwDestContext: u32, pvDestContext: ?*anyopaque, mshlflags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT; // TODO: this type is limited to platform 'windows5.0' pub extern "ole32" fn CoMarshalInterface( pStm: ?*IStream, riid: ?*const Guid, pUnk: ?*IUnknown, dwDestContext: u32, pvDestContext: ?*anyopaque, mshlflags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT; // TODO: this type is limited to platform 'windows5.0' pub extern "ole32" fn CoUnmarshalInterface( pStm: ?*IStream, riid: ?*const Guid, ppv: ?*?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) HRESULT; // TODO: this type is limited to platform 'windows5.0' pub extern "ole32" fn CoMarshalHresult( pstm: ?*IStream, hresult: HRESULT, ) callconv(@import("std").os.windows.WINAPI) HRESULT; // TODO: this type is limited to platform 'windows5.0' pub extern "ole32" fn CoUnmarshalHresult( pstm: ?*IStream, phresult: ?*HRESULT, ) callconv(@import("std").os.windows.WINAPI) HRESULT; // TODO: this type is limited to platform 'windows5.0' pub extern "ole32" fn CoReleaseMarshalData( pStm: ?*IStream, ) callconv(@import("std").os.windows.WINAPI) HRESULT; // TODO: this type is limited to platform 'windows5.0' pub extern "ole32" fn CoGetStandardMarshal( riid: ?*const Guid, pUnk: ?*IUnknown, dwDestContext: u32, pvDestContext: ?*anyopaque, mshlflags: u32, ppMarshal: ?*?*IMarshal, ) callconv(@import("std").os.windows.WINAPI) HRESULT; // TODO: this type is limited to platform 'windows5.0' pub extern "ole32" fn CoGetStdMarshalEx( pUnkOuter: ?*IUnknown, smexflags: u32, ppUnkInner: ?*?*IUnknown, ) callconv(@import("std").os.windows.WINAPI) HRESULT; // TODO: this type is limited to platform 'windows5.0' pub extern "ole32" fn CoMarshalInterThreadInterfaceInStream( riid: ?*const Guid, pUnk: ?*IUnknown, ppStm: ?*?*IStream, ) callconv(@import("std").os.windows.WINAPI) HRESULT; pub extern "oleaut32" fn LPSAFEARRAY_UserSize( param0: ?*u32, param1: u32, param2: ?*?*SAFEARRAY, ) callconv(@import("std").os.windows.WINAPI) u32; pub extern "oleaut32" fn LPSAFEARRAY_UserMarshal( param0: ?*u32, param1: ?*u8, param2: ?*?*SAFEARRAY, ) callconv(@import("std").os.windows.WINAPI) ?*u8; pub extern "oleaut32" fn LPSAFEARRAY_UserUnmarshal( param0: ?*u32, param1: [*:0]u8, param2: ?*?*SAFEARRAY, ) callconv(@import("std").os.windows.WINAPI) ?*u8; pub extern "oleaut32" fn LPSAFEARRAY_UserFree( param0: ?*u32, param1: ?*?*SAFEARRAY, ) callconv(@import("std").os.windows.WINAPI) void; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "oleaut32" fn LPSAFEARRAY_UserSize64( param0: ?*u32, param1: u32, param2: ?*?*SAFEARRAY, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "oleaut32" fn LPSAFEARRAY_UserMarshal64( param0: ?*u32, param1: ?*u8, param2: ?*?*SAFEARRAY, ) callconv(@import("std").os.windows.WINAPI) ?*u8; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "oleaut32" fn LPSAFEARRAY_UserUnmarshal64( param0: ?*u32, param1: [*:0]u8, param2: ?*?*SAFEARRAY, ) callconv(@import("std").os.windows.WINAPI) ?*u8; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "oleaut32" fn LPSAFEARRAY_UserFree64( param0: ?*u32, param1: ?*?*SAFEARRAY, ) callconv(@import("std").os.windows.WINAPI) void; pub extern "ole32" fn HACCEL_UserSize( param0: ?*u32, param1: u32, param2: ?*?HACCEL, ) callconv(@import("std").os.windows.WINAPI) u32; pub extern "ole32" fn HACCEL_UserMarshal( param0: ?*u32, param1: ?*u8, param2: ?*?HACCEL, ) callconv(@import("std").os.windows.WINAPI) ?*u8; pub extern "ole32" fn HACCEL_UserUnmarshal( param0: ?*u32, param1: [*:0]u8, param2: ?*?HACCEL, ) callconv(@import("std").os.windows.WINAPI) ?*u8; pub extern "ole32" fn HACCEL_UserFree( param0: ?*u32, param1: ?*?HACCEL, ) callconv(@import("std").os.windows.WINAPI) void; pub extern "ole32" fn HGLOBAL_UserSize( param0: ?*u32, param1: u32, param2: ?*isize, ) callconv(@import("std").os.windows.WINAPI) u32; pub extern "ole32" fn HGLOBAL_UserMarshal( param0: ?*u32, param1: ?*u8, param2: ?*isize, ) callconv(@import("std").os.windows.WINAPI) ?*u8; pub extern "ole32" fn HGLOBAL_UserUnmarshal( param0: ?*u32, param1: [*:0]u8, param2: ?*isize, ) callconv(@import("std").os.windows.WINAPI) ?*u8; pub extern "ole32" fn HGLOBAL_UserFree( param0: ?*u32, param1: ?*isize, ) callconv(@import("std").os.windows.WINAPI) void; pub extern "ole32" fn HMENU_UserSize( param0: ?*u32, param1: u32, param2: ?*?HMENU, ) callconv(@import("std").os.windows.WINAPI) u32; pub extern "ole32" fn HMENU_UserMarshal( param0: ?*u32, param1: ?*u8, param2: ?*?HMENU, ) callconv(@import("std").os.windows.WINAPI) ?*u8; pub extern "ole32" fn HMENU_UserUnmarshal( param0: ?*u32, param1: [*:0]u8, param2: ?*?HMENU, ) callconv(@import("std").os.windows.WINAPI) ?*u8; pub extern "ole32" fn HMENU_UserFree( param0: ?*u32, param1: ?*?HMENU, ) callconv(@import("std").os.windows.WINAPI) void; pub extern "ole32" fn HACCEL_UserSize64( param0: ?*u32, param1: u32, param2: ?*?HACCEL, ) callconv(@import("std").os.windows.WINAPI) u32; pub extern "ole32" fn HACCEL_UserMarshal64( param0: ?*u32, param1: ?*u8, param2: ?*?HACCEL, ) callconv(@import("std").os.windows.WINAPI) ?*u8; pub extern "ole32" fn HACCEL_UserUnmarshal64( param0: ?*u32, param1: [*:0]u8, param2: ?*?HACCEL, ) callconv(@import("std").os.windows.WINAPI) ?*u8; pub extern "ole32" fn HACCEL_UserFree64( param0: ?*u32, param1: ?*?HACCEL, ) callconv(@import("std").os.windows.WINAPI) void; pub extern "ole32" fn HGLOBAL_UserSize64( param0: ?*u32, param1: u32, param2: ?*isize, ) callconv(@import("std").os.windows.WINAPI) u32; pub extern "ole32" fn HGLOBAL_UserMarshal64( param0: ?*u32, param1: ?*u8, param2: ?*isize, ) callconv(@import("std").os.windows.WINAPI) ?*u8; pub extern "ole32" fn HGLOBAL_UserUnmarshal64( param0: ?*u32, param1: [*:0]u8, param2: ?*isize, ) callconv(@import("std").os.windows.WINAPI) ?*u8; pub extern "ole32" fn HGLOBAL_UserFree64( param0: ?*u32, param1: ?*isize, ) callconv(@import("std").os.windows.WINAPI) void; pub extern "ole32" fn HMENU_UserSize64( param0: ?*u32, param1: u32, param2: ?*?HMENU, ) callconv(@import("std").os.windows.WINAPI) u32; pub extern "ole32" fn HMENU_UserMarshal64( param0: ?*u32, param1: ?*u8, param2: ?*?HMENU, ) callconv(@import("std").os.windows.WINAPI) ?*u8; pub extern "ole32" fn HMENU_UserUnmarshal64( param0: ?*u32, param1: [*:0]u8, param2: ?*?HMENU, ) callconv(@import("std").os.windows.WINAPI) ?*u8; pub extern "ole32" fn HMENU_UserFree64( param0: ?*u32, param1: ?*?HMENU, ) callconv(@import("std").os.windows.WINAPI) void; pub extern "ole32" fn HPALETTE_UserSize( param0: ?*u32, param1: u32, param2: ?*?HPALETTE, ) callconv(@import("std").os.windows.WINAPI) u32; pub extern "ole32" fn HPALETTE_UserMarshal( param0: ?*u32, param1: ?*u8, param2: ?*?HPALETTE, ) callconv(@import("std").os.windows.WINAPI) ?*u8; pub extern "ole32" fn HPALETTE_UserUnmarshal( param0: ?*u32, param1: [*:0]u8, param2: ?*?HPALETTE, ) callconv(@import("std").os.windows.WINAPI) ?*u8; pub extern "ole32" fn HPALETTE_UserFree( param0: ?*u32, param1: ?*?HPALETTE, ) callconv(@import("std").os.windows.WINAPI) void; pub extern "ole32" fn HPALETTE_UserSize64( param0: ?*u32, param1: u32, param2: ?*?HPALETTE, ) callconv(@import("std").os.windows.WINAPI) u32; pub extern "ole32" fn HPALETTE_UserMarshal64( param0: ?*u32, param1: ?*u8, param2: ?*?HPALETTE, ) callconv(@import("std").os.windows.WINAPI) ?*u8; pub extern "ole32" fn HPALETTE_UserUnmarshal64( param0: ?*u32, param1: [*:0]u8, param2: ?*?HPALETTE, ) callconv(@import("std").os.windows.WINAPI) ?*u8; pub extern "ole32" fn HPALETTE_UserFree64( param0: ?*u32, param1: ?*?HPALETTE, ) callconv(@import("std").os.windows.WINAPI) void; //-------------------------------------------------------------------------------- // Section: Unicode Aliases (0) //-------------------------------------------------------------------------------- const thismodule = @This(); pub usingnamespace switch (@import("../../zig.zig").unicode_mode) { .ansi => struct {}, .wide => struct {}, .unspecified => if (@import("builtin").is_test) struct {} else struct {}, }; //-------------------------------------------------------------------------------- // Section: Imports (16) //-------------------------------------------------------------------------------- const Guid = @import("../../zig.zig").Guid; const BSTR = @import("../../foundation.zig").BSTR; const CO_MARSHALING_CONTEXT_ATTRIBUTES = @import("../../system/com.zig").CO_MARSHALING_CONTEXT_ATTRIBUTES; const HACCEL = @import("../../ui/windows_and_messaging.zig").HACCEL; const HBITMAP = @import("../../graphics/gdi.zig").HBITMAP; const HDC = @import("../../graphics/gdi.zig").HDC; const HICON = @import("../../ui/windows_and_messaging.zig").HICON; const HMENU = @import("../../ui/windows_and_messaging.zig").HMENU; const HPALETTE = @import("../../graphics/gdi.zig").HPALETTE; const HRESULT = @import("../../foundation.zig").HRESULT; const HWND = @import("../../foundation.zig").HWND; const IStream = @import("../../system/com.zig").IStream; const IUnknown = @import("../../system/com.zig").IUnknown; const SAFEARRAY = @import("../../system/com.zig").SAFEARRAY; const STGMEDIUM = @import("../../system/com.zig").STGMEDIUM; const VARIANT = @import("../../system/com.zig").VARIANT; test { @setEvalBranchQuota(comptime @import("std").meta.declarations(@This()).len * 3); // reference all the pub declarations if (!@import("builtin").is_test) return; inline for (comptime @import("std").meta.declarations(@This())) |decl| { if (decl.is_pub) { _ = @field(@This(), decl.name); } } }
0
repos/capy/vendor/zigwin32/win32/system
repos/capy/vendor/zigwin32/win32/system/com/call_obj.zig
//! NOTE: this file is autogenerated, DO NOT MODIFY //-------------------------------------------------------------------------------- // Section: Constants (0) //-------------------------------------------------------------------------------- //-------------------------------------------------------------------------------- // Section: Types (14) //-------------------------------------------------------------------------------- pub const CALLFRAMEINFO = extern struct { iMethod: u32, fHasInValues: BOOL, fHasInOutValues: BOOL, fHasOutValues: BOOL, fDerivesFromIDispatch: BOOL, cInInterfacesMax: i32, cInOutInterfacesMax: i32, cOutInterfacesMax: i32, cTopLevelInInterfaces: i32, iid: Guid, cMethod: u32, cParams: u32, }; pub const CALLFRAMEPARAMINFO = extern struct { fIn: BOOLEAN, fOut: BOOLEAN, stackOffset: u32, cbParam: u32, }; pub const CALLFRAME_COPY = enum(i32) { NESTED = 1, INDEPENDENT = 2, }; pub const CALLFRAME_COPY_NESTED = CALLFRAME_COPY.NESTED; pub const CALLFRAME_COPY_INDEPENDENT = CALLFRAME_COPY.INDEPENDENT; pub const CALLFRAME_FREE = enum(i32) { NONE = 0, IN = 1, INOUT = 2, OUT = 4, TOP_INOUT = 8, TOP_OUT = 16, ALL = 31, }; pub const CALLFRAME_FREE_NONE = CALLFRAME_FREE.NONE; pub const CALLFRAME_FREE_IN = CALLFRAME_FREE.IN; pub const CALLFRAME_FREE_INOUT = CALLFRAME_FREE.INOUT; pub const CALLFRAME_FREE_OUT = CALLFRAME_FREE.OUT; pub const CALLFRAME_FREE_TOP_INOUT = CALLFRAME_FREE.TOP_INOUT; pub const CALLFRAME_FREE_TOP_OUT = CALLFRAME_FREE.TOP_OUT; pub const CALLFRAME_FREE_ALL = CALLFRAME_FREE.ALL; pub const CALLFRAME_NULL = enum(i32) { NONE = 0, INOUT = 2, OUT = 4, ALL = 6, }; pub const CALLFRAME_NULL_NONE = CALLFRAME_NULL.NONE; pub const CALLFRAME_NULL_INOUT = CALLFRAME_NULL.INOUT; pub const CALLFRAME_NULL_OUT = CALLFRAME_NULL.OUT; pub const CALLFRAME_NULL_ALL = CALLFRAME_NULL.ALL; pub const CALLFRAME_WALK = enum(i32) { IN = 1, INOUT = 2, OUT = 4, }; pub const CALLFRAME_WALK_IN = CALLFRAME_WALK.IN; pub const CALLFRAME_WALK_INOUT = CALLFRAME_WALK.INOUT; pub const CALLFRAME_WALK_OUT = CALLFRAME_WALK.OUT; pub const CALLFRAME_MARSHALCONTEXT = extern struct { fIn: BOOLEAN, dwDestContext: u32, pvDestContext: ?*anyopaque, punkReserved: ?*IUnknown, guidTransferSyntax: Guid, }; // TODO: this type is limited to platform 'windows5.0' const IID_ICallFrame_Value = Guid.initString("d573b4b0-894e-11d2-b8b6-00c04fb9618a"); pub const IID_ICallFrame = &IID_ICallFrame_Value; pub const ICallFrame = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, GetInfo: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ICallFrame, pInfo: ?*CALLFRAMEINFO, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ICallFrame, pInfo: ?*CALLFRAMEINFO, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetIIDAndMethod: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ICallFrame, pIID: ?*Guid, piMethod: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ICallFrame, pIID: ?*Guid, piMethod: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetNames: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ICallFrame, pwszInterface: ?*?PWSTR, pwszMethod: ?*?PWSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ICallFrame, pwszInterface: ?*?PWSTR, pwszMethod: ?*?PWSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetStackLocation: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ICallFrame, ) callconv(@import("std").os.windows.WINAPI) ?*anyopaque, else => *const fn ( self: *const ICallFrame, ) callconv(@import("std").os.windows.WINAPI) ?*anyopaque, }, SetStackLocation: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ICallFrame, pvStack: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) void, else => *const fn ( self: *const ICallFrame, pvStack: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) void, }, SetReturnValue: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ICallFrame, hr: HRESULT, ) callconv(@import("std").os.windows.WINAPI) void, else => *const fn ( self: *const ICallFrame, hr: HRESULT, ) callconv(@import("std").os.windows.WINAPI) void, }, GetReturnValue: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ICallFrame, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ICallFrame, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetParamInfo: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ICallFrame, iparam: u32, pInfo: ?*CALLFRAMEPARAMINFO, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ICallFrame, iparam: u32, pInfo: ?*CALLFRAMEPARAMINFO, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetParam: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ICallFrame, iparam: u32, pvar: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ICallFrame, iparam: u32, pvar: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetParam: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ICallFrame, iparam: u32, pvar: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ICallFrame, iparam: u32, pvar: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Copy: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ICallFrame, copyControl: CALLFRAME_COPY, pWalker: ?*ICallFrameWalker, ppFrame: ?*?*ICallFrame, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ICallFrame, copyControl: CALLFRAME_COPY, pWalker: ?*ICallFrameWalker, ppFrame: ?*?*ICallFrame, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Free: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ICallFrame, pframeArgsDest: ?*ICallFrame, pWalkerDestFree: ?*ICallFrameWalker, pWalkerCopy: ?*ICallFrameWalker, freeFlags: u32, pWalkerFree: ?*ICallFrameWalker, nullFlags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ICallFrame, pframeArgsDest: ?*ICallFrame, pWalkerDestFree: ?*ICallFrameWalker, pWalkerCopy: ?*ICallFrameWalker, freeFlags: u32, pWalkerFree: ?*ICallFrameWalker, nullFlags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, FreeParam: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ICallFrame, iparam: u32, freeFlags: u32, pWalkerFree: ?*ICallFrameWalker, nullFlags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ICallFrame, iparam: u32, freeFlags: u32, pWalkerFree: ?*ICallFrameWalker, nullFlags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, WalkFrame: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ICallFrame, walkWhat: u32, pWalker: ?*ICallFrameWalker, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ICallFrame, walkWhat: u32, pWalker: ?*ICallFrameWalker, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetMarshalSizeMax: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ICallFrame, pmshlContext: ?*CALLFRAME_MARSHALCONTEXT, mshlflags: MSHLFLAGS, pcbBufferNeeded: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ICallFrame, pmshlContext: ?*CALLFRAME_MARSHALCONTEXT, mshlflags: MSHLFLAGS, pcbBufferNeeded: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Marshal: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ICallFrame, pmshlContext: ?*CALLFRAME_MARSHALCONTEXT, mshlflags: MSHLFLAGS, pBuffer: [*]u8, cbBuffer: u32, pcbBufferUsed: ?*u32, pdataRep: ?*u32, prpcFlags: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ICallFrame, pmshlContext: ?*CALLFRAME_MARSHALCONTEXT, mshlflags: MSHLFLAGS, pBuffer: [*]u8, cbBuffer: u32, pcbBufferUsed: ?*u32, pdataRep: ?*u32, prpcFlags: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Unmarshal: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ICallFrame, pBuffer: [*]u8, cbBuffer: u32, dataRep: u32, pcontext: ?*CALLFRAME_MARSHALCONTEXT, pcbUnmarshalled: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ICallFrame, pBuffer: [*]u8, cbBuffer: u32, dataRep: u32, pcontext: ?*CALLFRAME_MARSHALCONTEXT, pcbUnmarshalled: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, ReleaseMarshalData: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ICallFrame, pBuffer: [*]u8, cbBuffer: u32, ibFirstRelease: u32, dataRep: u32, pcontext: ?*CALLFRAME_MARSHALCONTEXT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ICallFrame, pBuffer: [*]u8, cbBuffer: u32, ibFirstRelease: u32, dataRep: u32, pcontext: ?*CALLFRAME_MARSHALCONTEXT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Invoke: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ICallFrame, pvReceiver: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ICallFrame, pvReceiver: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ICallFrame_GetInfo(self: *const T, pInfo: ?*CALLFRAMEINFO) HRESULT { return @as(*const ICallFrame.VTable, @ptrCast(self.vtable)).GetInfo(@as(*const ICallFrame, @ptrCast(self)), pInfo); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ICallFrame_GetIIDAndMethod(self: *const T, pIID: ?*Guid, piMethod: ?*u32) HRESULT { return @as(*const ICallFrame.VTable, @ptrCast(self.vtable)).GetIIDAndMethod(@as(*const ICallFrame, @ptrCast(self)), pIID, piMethod); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ICallFrame_GetNames(self: *const T, pwszInterface: ?*?PWSTR, pwszMethod: ?*?PWSTR) HRESULT { return @as(*const ICallFrame.VTable, @ptrCast(self.vtable)).GetNames(@as(*const ICallFrame, @ptrCast(self)), pwszInterface, pwszMethod); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ICallFrame_GetStackLocation(self: *const T) ?*anyopaque { return @as(*const ICallFrame.VTable, @ptrCast(self.vtable)).GetStackLocation(@as(*const ICallFrame, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ICallFrame_SetStackLocation(self: *const T, pvStack: ?*anyopaque) void { return @as(*const ICallFrame.VTable, @ptrCast(self.vtable)).SetStackLocation(@as(*const ICallFrame, @ptrCast(self)), pvStack); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ICallFrame_SetReturnValue(self: *const T, hr: HRESULT) void { return @as(*const ICallFrame.VTable, @ptrCast(self.vtable)).SetReturnValue(@as(*const ICallFrame, @ptrCast(self)), hr); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ICallFrame_GetReturnValue(self: *const T) HRESULT { return @as(*const ICallFrame.VTable, @ptrCast(self.vtable)).GetReturnValue(@as(*const ICallFrame, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ICallFrame_GetParamInfo(self: *const T, iparam: u32, pInfo: ?*CALLFRAMEPARAMINFO) HRESULT { return @as(*const ICallFrame.VTable, @ptrCast(self.vtable)).GetParamInfo(@as(*const ICallFrame, @ptrCast(self)), iparam, pInfo); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ICallFrame_SetParam(self: *const T, iparam: u32, pvar: ?*VARIANT) HRESULT { return @as(*const ICallFrame.VTable, @ptrCast(self.vtable)).SetParam(@as(*const ICallFrame, @ptrCast(self)), iparam, pvar); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ICallFrame_GetParam(self: *const T, iparam: u32, pvar: ?*VARIANT) HRESULT { return @as(*const ICallFrame.VTable, @ptrCast(self.vtable)).GetParam(@as(*const ICallFrame, @ptrCast(self)), iparam, pvar); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ICallFrame_Copy(self: *const T, copyControl: CALLFRAME_COPY, pWalker: ?*ICallFrameWalker, ppFrame: ?*?*ICallFrame) HRESULT { return @as(*const ICallFrame.VTable, @ptrCast(self.vtable)).Copy(@as(*const ICallFrame, @ptrCast(self)), copyControl, pWalker, ppFrame); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ICallFrame_Free(self: *const T, pframeArgsDest: ?*ICallFrame, pWalkerDestFree: ?*ICallFrameWalker, pWalkerCopy: ?*ICallFrameWalker, freeFlags: u32, pWalkerFree: ?*ICallFrameWalker, nullFlags: u32) HRESULT { return @as(*const ICallFrame.VTable, @ptrCast(self.vtable)).Free(@as(*const ICallFrame, @ptrCast(self)), pframeArgsDest, pWalkerDestFree, pWalkerCopy, freeFlags, pWalkerFree, nullFlags); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ICallFrame_FreeParam(self: *const T, iparam: u32, freeFlags: u32, pWalkerFree: ?*ICallFrameWalker, nullFlags: u32) HRESULT { return @as(*const ICallFrame.VTable, @ptrCast(self.vtable)).FreeParam(@as(*const ICallFrame, @ptrCast(self)), iparam, freeFlags, pWalkerFree, nullFlags); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ICallFrame_WalkFrame(self: *const T, walkWhat: u32, pWalker: ?*ICallFrameWalker) HRESULT { return @as(*const ICallFrame.VTable, @ptrCast(self.vtable)).WalkFrame(@as(*const ICallFrame, @ptrCast(self)), walkWhat, pWalker); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ICallFrame_GetMarshalSizeMax(self: *const T, pmshlContext: ?*CALLFRAME_MARSHALCONTEXT, mshlflags: MSHLFLAGS, pcbBufferNeeded: ?*u32) HRESULT { return @as(*const ICallFrame.VTable, @ptrCast(self.vtable)).GetMarshalSizeMax(@as(*const ICallFrame, @ptrCast(self)), pmshlContext, mshlflags, pcbBufferNeeded); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ICallFrame_Marshal(self: *const T, pmshlContext: ?*CALLFRAME_MARSHALCONTEXT, mshlflags: MSHLFLAGS, pBuffer: [*]u8, cbBuffer: u32, pcbBufferUsed: ?*u32, pdataRep: ?*u32, prpcFlags: ?*u32) HRESULT { return @as(*const ICallFrame.VTable, @ptrCast(self.vtable)).Marshal(@as(*const ICallFrame, @ptrCast(self)), pmshlContext, mshlflags, pBuffer, cbBuffer, pcbBufferUsed, pdataRep, prpcFlags); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ICallFrame_Unmarshal(self: *const T, pBuffer: [*]u8, cbBuffer: u32, dataRep: u32, pcontext: ?*CALLFRAME_MARSHALCONTEXT, pcbUnmarshalled: ?*u32) HRESULT { return @as(*const ICallFrame.VTable, @ptrCast(self.vtable)).Unmarshal(@as(*const ICallFrame, @ptrCast(self)), pBuffer, cbBuffer, dataRep, pcontext, pcbUnmarshalled); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ICallFrame_ReleaseMarshalData(self: *const T, pBuffer: [*]u8, cbBuffer: u32, ibFirstRelease: u32, dataRep: u32, pcontext: ?*CALLFRAME_MARSHALCONTEXT) HRESULT { return @as(*const ICallFrame.VTable, @ptrCast(self.vtable)).ReleaseMarshalData(@as(*const ICallFrame, @ptrCast(self)), pBuffer, cbBuffer, ibFirstRelease, dataRep, pcontext); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ICallFrame_Invoke(self: *const T, pvReceiver: ?*anyopaque) HRESULT { return @as(*const ICallFrame.VTable, @ptrCast(self.vtable)).Invoke(@as(*const ICallFrame, @ptrCast(self)), pvReceiver); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows5.0' const IID_ICallIndirect_Value = Guid.initString("d573b4b1-894e-11d2-b8b6-00c04fb9618a"); pub const IID_ICallIndirect = &IID_ICallIndirect_Value; pub const ICallIndirect = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, CallIndirect: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ICallIndirect, phrReturn: ?*HRESULT, iMethod: u32, pvArgs: ?*anyopaque, cbArgs: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ICallIndirect, phrReturn: ?*HRESULT, iMethod: u32, pvArgs: ?*anyopaque, cbArgs: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetMethodInfo: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ICallIndirect, iMethod: u32, pInfo: ?*CALLFRAMEINFO, pwszMethod: ?*?PWSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ICallIndirect, iMethod: u32, pInfo: ?*CALLFRAMEINFO, pwszMethod: ?*?PWSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetStackSize: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ICallIndirect, iMethod: u32, cbArgs: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ICallIndirect, iMethod: u32, cbArgs: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetIID: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ICallIndirect, piid: ?*Guid, pfDerivesFromIDispatch: ?*BOOL, pcMethod: ?*u32, pwszInterface: ?*?PWSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ICallIndirect, piid: ?*Guid, pfDerivesFromIDispatch: ?*BOOL, pcMethod: ?*u32, pwszInterface: ?*?PWSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ICallIndirect_CallIndirect(self: *const T, phrReturn: ?*HRESULT, iMethod: u32, pvArgs: ?*anyopaque, cbArgs: ?*u32) HRESULT { return @as(*const ICallIndirect.VTable, @ptrCast(self.vtable)).CallIndirect(@as(*const ICallIndirect, @ptrCast(self)), phrReturn, iMethod, pvArgs, cbArgs); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ICallIndirect_GetMethodInfo(self: *const T, iMethod: u32, pInfo: ?*CALLFRAMEINFO, pwszMethod: ?*?PWSTR) HRESULT { return @as(*const ICallIndirect.VTable, @ptrCast(self.vtable)).GetMethodInfo(@as(*const ICallIndirect, @ptrCast(self)), iMethod, pInfo, pwszMethod); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ICallIndirect_GetStackSize(self: *const T, iMethod: u32, cbArgs: ?*u32) HRESULT { return @as(*const ICallIndirect.VTable, @ptrCast(self.vtable)).GetStackSize(@as(*const ICallIndirect, @ptrCast(self)), iMethod, cbArgs); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ICallIndirect_GetIID(self: *const T, piid: ?*Guid, pfDerivesFromIDispatch: ?*BOOL, pcMethod: ?*u32, pwszInterface: ?*?PWSTR) HRESULT { return @as(*const ICallIndirect.VTable, @ptrCast(self.vtable)).GetIID(@as(*const ICallIndirect, @ptrCast(self)), piid, pfDerivesFromIDispatch, pcMethod, pwszInterface); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows5.0' const IID_ICallInterceptor_Value = Guid.initString("60c7ca75-896d-11d2-b8b6-00c04fb9618a"); pub const IID_ICallInterceptor = &IID_ICallInterceptor_Value; pub const ICallInterceptor = extern struct { pub const VTable = extern struct { base: ICallIndirect.VTable, RegisterSink: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ICallInterceptor, psink: ?*ICallFrameEvents, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ICallInterceptor, psink: ?*ICallFrameEvents, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetRegisteredSink: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ICallInterceptor, ppsink: ?*?*ICallFrameEvents, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ICallInterceptor, ppsink: ?*?*ICallFrameEvents, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace ICallIndirect.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ICallInterceptor_RegisterSink(self: *const T, psink: ?*ICallFrameEvents) HRESULT { return @as(*const ICallInterceptor.VTable, @ptrCast(self.vtable)).RegisterSink(@as(*const ICallInterceptor, @ptrCast(self)), psink); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ICallInterceptor_GetRegisteredSink(self: *const T, ppsink: ?*?*ICallFrameEvents) HRESULT { return @as(*const ICallInterceptor.VTable, @ptrCast(self.vtable)).GetRegisteredSink(@as(*const ICallInterceptor, @ptrCast(self)), ppsink); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows5.0' const IID_ICallFrameEvents_Value = Guid.initString("fd5e0843-fc91-11d0-97d7-00c04fb9618a"); pub const IID_ICallFrameEvents = &IID_ICallFrameEvents_Value; pub const ICallFrameEvents = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, OnCall: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ICallFrameEvents, pFrame: ?*ICallFrame, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ICallFrameEvents, pFrame: ?*ICallFrame, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ICallFrameEvents_OnCall(self: *const T, pFrame: ?*ICallFrame) HRESULT { return @as(*const ICallFrameEvents.VTable, @ptrCast(self.vtable)).OnCall(@as(*const ICallFrameEvents, @ptrCast(self)), pFrame); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows5.0' const IID_ICallUnmarshal_Value = Guid.initString("5333b003-2e42-11d2-b89d-00c04fb9618a"); pub const IID_ICallUnmarshal = &IID_ICallUnmarshal_Value; pub const ICallUnmarshal = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, Unmarshal: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ICallUnmarshal, iMethod: u32, pBuffer: [*]u8, cbBuffer: u32, fForceBufferCopy: BOOL, dataRep: u32, pcontext: ?*CALLFRAME_MARSHALCONTEXT, pcbUnmarshalled: ?*u32, ppFrame: ?*?*ICallFrame, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ICallUnmarshal, iMethod: u32, pBuffer: [*]u8, cbBuffer: u32, fForceBufferCopy: BOOL, dataRep: u32, pcontext: ?*CALLFRAME_MARSHALCONTEXT, pcbUnmarshalled: ?*u32, ppFrame: ?*?*ICallFrame, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, ReleaseMarshalData: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ICallUnmarshal, iMethod: u32, pBuffer: [*]u8, cbBuffer: u32, ibFirstRelease: u32, dataRep: u32, pcontext: ?*CALLFRAME_MARSHALCONTEXT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ICallUnmarshal, iMethod: u32, pBuffer: [*]u8, cbBuffer: u32, ibFirstRelease: u32, dataRep: u32, pcontext: ?*CALLFRAME_MARSHALCONTEXT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ICallUnmarshal_Unmarshal(self: *const T, iMethod: u32, pBuffer: [*]u8, cbBuffer: u32, fForceBufferCopy: BOOL, dataRep: u32, pcontext: ?*CALLFRAME_MARSHALCONTEXT, pcbUnmarshalled: ?*u32, ppFrame: ?*?*ICallFrame) HRESULT { return @as(*const ICallUnmarshal.VTable, @ptrCast(self.vtable)).Unmarshal(@as(*const ICallUnmarshal, @ptrCast(self)), iMethod, pBuffer, cbBuffer, fForceBufferCopy, dataRep, pcontext, pcbUnmarshalled, ppFrame); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ICallUnmarshal_ReleaseMarshalData(self: *const T, iMethod: u32, pBuffer: [*]u8, cbBuffer: u32, ibFirstRelease: u32, dataRep: u32, pcontext: ?*CALLFRAME_MARSHALCONTEXT) HRESULT { return @as(*const ICallUnmarshal.VTable, @ptrCast(self.vtable)).ReleaseMarshalData(@as(*const ICallUnmarshal, @ptrCast(self)), iMethod, pBuffer, cbBuffer, ibFirstRelease, dataRep, pcontext); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows5.0' const IID_ICallFrameWalker_Value = Guid.initString("08b23919-392d-11d2-b8a4-00c04fb9618a"); pub const IID_ICallFrameWalker = &IID_ICallFrameWalker_Value; pub const ICallFrameWalker = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, OnWalkInterface: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ICallFrameWalker, iid: ?*const Guid, ppvInterface: ?*?*anyopaque, fIn: BOOL, fOut: BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ICallFrameWalker, iid: ?*const Guid, ppvInterface: ?*?*anyopaque, fIn: BOOL, fOut: BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ICallFrameWalker_OnWalkInterface(self: *const T, iid: ?*const Guid, ppvInterface: ?*?*anyopaque, fIn: BOOL, fOut: BOOL) HRESULT { return @as(*const ICallFrameWalker.VTable, @ptrCast(self.vtable)).OnWalkInterface(@as(*const ICallFrameWalker, @ptrCast(self)), iid, ppvInterface, fIn, fOut); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IInterfaceRelated_Value = Guid.initString("d1fb5a79-7706-11d1-adba-00c04fc2adc0"); pub const IID_IInterfaceRelated = &IID_IInterfaceRelated_Value; pub const IInterfaceRelated = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, SetIID: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IInterfaceRelated, iid: ?*const Guid, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IInterfaceRelated, iid: ?*const Guid, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetIID: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IInterfaceRelated, piid: ?*Guid, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IInterfaceRelated, piid: ?*Guid, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IInterfaceRelated_SetIID(self: *const T, iid: ?*const Guid) HRESULT { return @as(*const IInterfaceRelated.VTable, @ptrCast(self.vtable)).SetIID(@as(*const IInterfaceRelated, @ptrCast(self)), iid); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IInterfaceRelated_GetIID(self: *const T, piid: ?*Guid) HRESULT { return @as(*const IInterfaceRelated.VTable, @ptrCast(self.vtable)).GetIID(@as(*const IInterfaceRelated, @ptrCast(self)), piid); } }; } pub usingnamespace MethodMixin(@This()); }; //-------------------------------------------------------------------------------- // Section: Functions (2) //-------------------------------------------------------------------------------- // TODO: this type is limited to platform 'windows5.0' pub extern "ole32" fn CoGetInterceptor( iidIntercepted: ?*const Guid, punkOuter: ?*IUnknown, iid: ?*const Guid, ppv: ?*?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) HRESULT; pub extern "ole32" fn CoGetInterceptorFromTypeInfo( iidIntercepted: ?*const Guid, punkOuter: ?*IUnknown, typeInfo: ?*ITypeInfo, iid: ?*const Guid, ppv: ?*?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) HRESULT; //-------------------------------------------------------------------------------- // Section: Unicode Aliases (0) //-------------------------------------------------------------------------------- const thismodule = @This(); pub usingnamespace switch (@import("../../zig.zig").unicode_mode) { .ansi => struct {}, .wide => struct {}, .unspecified => if (@import("builtin").is_test) struct {} else struct {}, }; //-------------------------------------------------------------------------------- // Section: Imports (9) //-------------------------------------------------------------------------------- const Guid = @import("../../zig.zig").Guid; const BOOL = @import("../../foundation.zig").BOOL; const BOOLEAN = @import("../../foundation.zig").BOOLEAN; const HRESULT = @import("../../foundation.zig").HRESULT; const ITypeInfo = @import("../../system/com.zig").ITypeInfo; const IUnknown = @import("../../system/com.zig").IUnknown; const MSHLFLAGS = @import("../../system/com.zig").MSHLFLAGS; const PWSTR = @import("../../foundation.zig").PWSTR; const VARIANT = @import("../../system/com.zig").VARIANT; test { @setEvalBranchQuota(comptime @import("std").meta.declarations(@This()).len * 3); // reference all the pub declarations if (!@import("builtin").is_test) return; inline for (comptime @import("std").meta.declarations(@This())) |decl| { if (decl.is_pub) { _ = @field(@This(), decl.name); } } }
0
repos/capy/vendor/zigwin32/win32/system
repos/capy/vendor/zigwin32/win32/system/com/urlmon.zig
//! NOTE: this file is autogenerated, DO NOT MODIFY //-------------------------------------------------------------------------------- // Section: Constants (301) //-------------------------------------------------------------------------------- pub const MKSYS_URLMONIKER = @as(u32, 6); pub const URL_MK_LEGACY = @as(u32, 0); pub const URL_MK_UNIFORM = @as(u32, 1); pub const URL_MK_NO_CANONICALIZE = @as(u32, 2); pub const FIEF_FLAG_FORCE_JITUI = @as(u32, 1); pub const FIEF_FLAG_PEEK = @as(u32, 2); pub const FIEF_FLAG_SKIP_INSTALLED_VERSION_CHECK = @as(u32, 4); pub const FIEF_FLAG_RESERVED_0 = @as(u32, 8); pub const FMFD_DEFAULT = @as(u32, 0); pub const FMFD_URLASFILENAME = @as(u32, 1); pub const FMFD_ENABLEMIMESNIFFING = @as(u32, 2); pub const FMFD_IGNOREMIMETEXTPLAIN = @as(u32, 4); pub const FMFD_SERVERMIME = @as(u32, 8); pub const FMFD_RESPECTTEXTPLAIN = @as(u32, 16); pub const FMFD_RETURNUPDATEDIMGMIMES = @as(u32, 32); pub const FMFD_RESERVED_1 = @as(u32, 64); pub const FMFD_RESERVED_2 = @as(u32, 128); pub const UAS_EXACTLEGACY = @as(u32, 4096); pub const URLMON_OPTION_USERAGENT = @as(u32, 268435457); pub const URLMON_OPTION_USERAGENT_REFRESH = @as(u32, 268435458); pub const URLMON_OPTION_URL_ENCODING = @as(u32, 268435460); pub const URLMON_OPTION_USE_BINDSTRINGCREDS = @as(u32, 268435464); pub const URLMON_OPTION_USE_BROWSERAPPSDOCUMENTS = @as(u32, 268435472); pub const CF_NULL = @as(u32, 0); pub const MK_S_ASYNCHRONOUS = @import("../../zig.zig").typedConst(HRESULT, @as(i32, 262632)); pub const S_ASYNCHRONOUS = @as(i32, 262632); pub const E_PENDING = @import("../../zig.zig").typedConst(HRESULT, @as(i32, -2147483638)); pub const INET_E_INVALID_URL = @import("../../zig.zig").typedConst(HRESULT, @as(i32, -2146697214)); pub const INET_E_NO_SESSION = @import("../../zig.zig").typedConst(HRESULT, @as(i32, -2146697213)); pub const INET_E_CANNOT_CONNECT = @import("../../zig.zig").typedConst(HRESULT, @as(i32, -2146697212)); pub const INET_E_RESOURCE_NOT_FOUND = @import("../../zig.zig").typedConst(HRESULT, @as(i32, -2146697211)); pub const INET_E_OBJECT_NOT_FOUND = @import("../../zig.zig").typedConst(HRESULT, @as(i32, -2146697210)); pub const INET_E_DATA_NOT_AVAILABLE = @import("../../zig.zig").typedConst(HRESULT, @as(i32, -2146697209)); pub const INET_E_DOWNLOAD_FAILURE = @import("../../zig.zig").typedConst(HRESULT, @as(i32, -2146697208)); pub const INET_E_AUTHENTICATION_REQUIRED = @import("../../zig.zig").typedConst(HRESULT, @as(i32, -2146697207)); pub const INET_E_NO_VALID_MEDIA = @import("../../zig.zig").typedConst(HRESULT, @as(i32, -2146697206)); pub const INET_E_CONNECTION_TIMEOUT = @import("../../zig.zig").typedConst(HRESULT, @as(i32, -2146697205)); pub const INET_E_INVALID_REQUEST = @import("../../zig.zig").typedConst(HRESULT, @as(i32, -2146697204)); pub const INET_E_UNKNOWN_PROTOCOL = @import("../../zig.zig").typedConst(HRESULT, @as(i32, -2146697203)); pub const INET_E_SECURITY_PROBLEM = @import("../../zig.zig").typedConst(HRESULT, @as(i32, -2146697202)); pub const INET_E_CANNOT_LOAD_DATA = @import("../../zig.zig").typedConst(HRESULT, @as(i32, -2146697201)); pub const INET_E_CANNOT_INSTANTIATE_OBJECT = @import("../../zig.zig").typedConst(HRESULT, @as(i32, -2146697200)); pub const INET_E_INVALID_CERTIFICATE = @import("../../zig.zig").typedConst(HRESULT, @as(i32, -2146697191)); pub const INET_E_REDIRECT_FAILED = @import("../../zig.zig").typedConst(HRESULT, @as(i32, -2146697196)); pub const INET_E_REDIRECT_TO_DIR = @import("../../zig.zig").typedConst(HRESULT, @as(i32, -2146697195)); pub const INET_E_CANNOT_LOCK_REQUEST = @import("../../zig.zig").typedConst(HRESULT, @as(i32, -2146697194)); pub const INET_E_USE_EXTEND_BINDING = @import("../../zig.zig").typedConst(HRESULT, @as(i32, -2146697193)); pub const INET_E_TERMINATED_BIND = @import("../../zig.zig").typedConst(HRESULT, @as(i32, -2146697192)); pub const INET_E_RESERVED_1 = @import("../../zig.zig").typedConst(HRESULT, @as(i32, -2146697190)); pub const INET_E_BLOCKED_REDIRECT_XSECURITYID = @import("../../zig.zig").typedConst(HRESULT, @as(i32, -2146697189)); pub const INET_E_DOMINJECTIONVALIDATION = @import("../../zig.zig").typedConst(HRESULT, @as(i32, -2146697188)); pub const INET_E_VTAB_SWITCH_FORCE_ENGINE = @import("../../zig.zig").typedConst(HRESULT, @as(i32, -2146697187)); pub const INET_E_HSTS_CERTIFICATE_ERROR = @import("../../zig.zig").typedConst(HRESULT, @as(i32, -2146697186)); pub const INET_E_RESERVED_2 = @import("../../zig.zig").typedConst(HRESULT, @as(i32, -2146697185)); pub const INET_E_RESERVED_3 = @import("../../zig.zig").typedConst(HRESULT, @as(i32, -2146697184)); pub const INET_E_RESERVED_4 = @import("../../zig.zig").typedConst(HRESULT, @as(i32, -2146697183)); pub const INET_E_RESERVED_5 = @import("../../zig.zig").typedConst(HRESULT, @as(i32, -2146697182)); pub const INET_E_ERROR_FIRST = @import("../../zig.zig").typedConst(HRESULT, @as(i32, -2146697214)); pub const INET_E_CODE_DOWNLOAD_DECLINED = @import("../../zig.zig").typedConst(HRESULT, @as(i32, -2146696960)); pub const INET_E_RESULT_DISPATCHED = @import("../../zig.zig").typedConst(HRESULT, @as(i32, -2146696704)); pub const INET_E_CANNOT_REPLACE_SFP_FILE = @import("../../zig.zig").typedConst(HRESULT, @as(i32, -2146696448)); pub const INET_E_CODE_INSTALL_SUPPRESSED = @import("../../zig.zig").typedConst(HRESULT, @as(i32, -2146696192)); pub const INET_E_CODE_INSTALL_BLOCKED_BY_HASH_POLICY = @import("../../zig.zig").typedConst(HRESULT, @as(i32, -2146695936)); pub const INET_E_DOWNLOAD_BLOCKED_BY_INPRIVATE = @import("../../zig.zig").typedConst(HRESULT, @as(i32, -2146695935)); pub const INET_E_CODE_INSTALL_BLOCKED_IMMERSIVE = @import("../../zig.zig").typedConst(HRESULT, @as(i32, -2146695934)); pub const INET_E_FORBIDFRAMING = @import("../../zig.zig").typedConst(HRESULT, @as(i32, -2146695933)); pub const INET_E_CODE_INSTALL_BLOCKED_ARM = @import("../../zig.zig").typedConst(HRESULT, @as(i32, -2146695932)); pub const INET_E_BLOCKED_PLUGGABLE_PROTOCOL = @import("../../zig.zig").typedConst(HRESULT, @as(i32, -2146695931)); pub const INET_E_BLOCKED_ENHANCEDPROTECTEDMODE = @import("../../zig.zig").typedConst(HRESULT, @as(i32, -2146695930)); pub const INET_E_CODE_INSTALL_BLOCKED_BITNESS = @import("../../zig.zig").typedConst(HRESULT, @as(i32, -2146695929)); pub const INET_E_DOWNLOAD_BLOCKED_BY_CSP = @import("../../zig.zig").typedConst(HRESULT, @as(i32, -2146695928)); pub const INET_E_ERROR_LAST = @as(i32, -2146695928); pub const Uri_DISPLAY_NO_FRAGMENT = @as(u32, 1); pub const Uri_PUNYCODE_IDN_HOST = @as(u32, 2); pub const Uri_DISPLAY_IDN_HOST = @as(u32, 4); pub const Uri_DISPLAY_NO_PUNYCODE = @as(u32, 8); pub const Uri_ENCODING_USER_INFO_AND_PATH_IS_PERCENT_ENCODED_UTF8 = @as(u32, 1); pub const Uri_ENCODING_USER_INFO_AND_PATH_IS_CP = @as(u32, 2); pub const Uri_ENCODING_HOST_IS_IDN = @as(u32, 4); pub const Uri_ENCODING_HOST_IS_PERCENT_ENCODED_UTF8 = @as(u32, 8); pub const Uri_ENCODING_HOST_IS_PERCENT_ENCODED_CP = @as(u32, 16); pub const Uri_ENCODING_QUERY_AND_FRAGMENT_IS_PERCENT_ENCODED_UTF8 = @as(u32, 32); pub const Uri_ENCODING_QUERY_AND_FRAGMENT_IS_CP = @as(u32, 64); pub const UriBuilder_USE_ORIGINAL_FLAGS = @as(u32, 1); pub const WININETINFO_OPTION_LOCK_HANDLE = @as(u32, 65534); pub const URLOSTRM_USECACHEDCOPY_ONLY = @as(u32, 1); pub const URLOSTRM_USECACHEDCOPY = @as(u32, 2); pub const URLOSTRM_GETNEWESTVERSION = @as(u32, 3); pub const SET_FEATURE_ON_THREAD = @as(u32, 1); pub const SET_FEATURE_ON_PROCESS = @as(u32, 2); pub const SET_FEATURE_IN_REGISTRY = @as(u32, 4); pub const SET_FEATURE_ON_THREAD_LOCALMACHINE = @as(u32, 8); pub const SET_FEATURE_ON_THREAD_INTRANET = @as(u32, 16); pub const SET_FEATURE_ON_THREAD_TRUSTED = @as(u32, 32); pub const SET_FEATURE_ON_THREAD_INTERNET = @as(u32, 64); pub const SET_FEATURE_ON_THREAD_RESTRICTED = @as(u32, 128); pub const GET_FEATURE_FROM_THREAD = @as(u32, 1); pub const GET_FEATURE_FROM_PROCESS = @as(u32, 2); pub const GET_FEATURE_FROM_REGISTRY = @as(u32, 4); pub const GET_FEATURE_FROM_THREAD_LOCALMACHINE = @as(u32, 8); pub const GET_FEATURE_FROM_THREAD_INTRANET = @as(u32, 16); pub const GET_FEATURE_FROM_THREAD_TRUSTED = @as(u32, 32); pub const GET_FEATURE_FROM_THREAD_INTERNET = @as(u32, 64); pub const GET_FEATURE_FROM_THREAD_RESTRICTED = @as(u32, 128); pub const INET_E_USE_DEFAULT_PROTOCOLHANDLER = @import("../../zig.zig").typedConst(HRESULT, @as(i32, -2146697199)); pub const INET_E_USE_DEFAULT_SETTING = @import("../../zig.zig").typedConst(HRESULT, @as(i32, -2146697198)); pub const INET_E_DEFAULT_ACTION = @as(i32, -2146697199); pub const INET_E_QUERYOPTION_UNKNOWN = @import("../../zig.zig").typedConst(HRESULT, @as(i32, -2146697197)); pub const INET_E_REDIRECTING = @import("../../zig.zig").typedConst(HRESULT, @as(i32, -2146697196)); pub const PROTOCOLFLAG_NO_PICS_CHECK = @as(u32, 1); pub const MUTZ_NOSAVEDFILECHECK = @as(u32, 1); pub const MUTZ_ISFILE = @as(u32, 2); pub const MUTZ_ACCEPT_WILDCARD_SCHEME = @as(u32, 128); pub const MUTZ_ENFORCERESTRICTED = @as(u32, 256); pub const MUTZ_RESERVED = @as(u32, 512); pub const MUTZ_REQUIRESAVEDFILECHECK = @as(u32, 1024); pub const MUTZ_DONT_UNESCAPE = @as(u32, 2048); pub const MUTZ_DONT_USE_CACHE = @as(u32, 4096); pub const MUTZ_FORCE_INTRANET_FLAGS = @as(u32, 8192); pub const MUTZ_IGNORE_ZONE_MAPPINGS = @as(u32, 16384); pub const MAX_SIZE_SECURITY_ID = @as(u32, 512); pub const URLACTION_MIN = @as(u32, 4096); pub const URLACTION_DOWNLOAD_MIN = @as(u32, 4096); pub const URLACTION_DOWNLOAD_SIGNED_ACTIVEX = @as(u32, 4097); pub const URLACTION_DOWNLOAD_UNSIGNED_ACTIVEX = @as(u32, 4100); pub const URLACTION_DOWNLOAD_CURR_MAX = @as(u32, 4100); pub const URLACTION_DOWNLOAD_MAX = @as(u32, 4607); pub const URLACTION_ACTIVEX_MIN = @as(u32, 4608); pub const URLACTION_ACTIVEX_RUN = @as(u32, 4608); pub const URLPOLICY_ACTIVEX_CHECK_LIST = @as(u32, 65536); pub const URLACTION_ACTIVEX_OVERRIDE_OBJECT_SAFETY = @as(u32, 4609); pub const URLACTION_ACTIVEX_OVERRIDE_DATA_SAFETY = @as(u32, 4610); pub const URLACTION_ACTIVEX_OVERRIDE_SCRIPT_SAFETY = @as(u32, 4611); pub const URLACTION_SCRIPT_OVERRIDE_SAFETY = @as(u32, 5121); pub const URLACTION_ACTIVEX_CONFIRM_NOOBJECTSAFETY = @as(u32, 4612); pub const URLACTION_ACTIVEX_TREATASUNTRUSTED = @as(u32, 4613); pub const URLACTION_ACTIVEX_NO_WEBOC_SCRIPT = @as(u32, 4614); pub const URLACTION_ACTIVEX_OVERRIDE_REPURPOSEDETECTION = @as(u32, 4615); pub const URLACTION_ACTIVEX_OVERRIDE_OPTIN = @as(u32, 4616); pub const URLACTION_ACTIVEX_SCRIPTLET_RUN = @as(u32, 4617); pub const URLACTION_ACTIVEX_DYNSRC_VIDEO_AND_ANIMATION = @as(u32, 4618); pub const URLACTION_ACTIVEX_OVERRIDE_DOMAINLIST = @as(u32, 4619); pub const URLACTION_ACTIVEX_ALLOW_TDC = @as(u32, 4620); pub const URLACTION_ACTIVEX_CURR_MAX = @as(u32, 4620); pub const URLACTION_ACTIVEX_MAX = @as(u32, 5119); pub const URLACTION_SCRIPT_MIN = @as(u32, 5120); pub const URLACTION_SCRIPT_RUN = @as(u32, 5120); pub const URLACTION_SCRIPT_JAVA_USE = @as(u32, 5122); pub const URLACTION_SCRIPT_SAFE_ACTIVEX = @as(u32, 5125); pub const URLACTION_CROSS_DOMAIN_DATA = @as(u32, 5126); pub const URLACTION_SCRIPT_PASTE = @as(u32, 5127); pub const URLACTION_ALLOW_XDOMAIN_SUBFRAME_RESIZE = @as(u32, 5128); pub const URLACTION_SCRIPT_XSSFILTER = @as(u32, 5129); pub const URLACTION_SCRIPT_NAVIGATE = @as(u32, 5130); pub const URLACTION_PLUGGABLE_PROTOCOL_XHR = @as(u32, 5131); pub const URLACTION_ALLOW_VBSCRIPT_IE = @as(u32, 5132); pub const URLACTION_ALLOW_JSCRIPT_IE = @as(u32, 5133); pub const URLACTION_SCRIPT_CURR_MAX = @as(u32, 5133); pub const URLACTION_SCRIPT_MAX = @as(u32, 5631); pub const URLACTION_HTML_MIN = @as(u32, 5632); pub const URLACTION_HTML_SUBMIT_FORMS = @as(u32, 5633); pub const URLACTION_HTML_SUBMIT_FORMS_FROM = @as(u32, 5634); pub const URLACTION_HTML_SUBMIT_FORMS_TO = @as(u32, 5635); pub const URLACTION_HTML_FONT_DOWNLOAD = @as(u32, 5636); pub const URLACTION_HTML_JAVA_RUN = @as(u32, 5637); pub const URLACTION_HTML_USERDATA_SAVE = @as(u32, 5638); pub const URLACTION_HTML_SUBFRAME_NAVIGATE = @as(u32, 5639); pub const URLACTION_HTML_META_REFRESH = @as(u32, 5640); pub const URLACTION_HTML_MIXED_CONTENT = @as(u32, 5641); pub const URLACTION_HTML_INCLUDE_FILE_PATH = @as(u32, 5642); pub const URLACTION_HTML_ALLOW_INJECTED_DYNAMIC_HTML = @as(u32, 5643); pub const URLACTION_HTML_REQUIRE_UTF8_DOCUMENT_CODEPAGE = @as(u32, 5644); pub const URLACTION_HTML_ALLOW_CROSS_DOMAIN_CANVAS = @as(u32, 5645); pub const URLACTION_HTML_ALLOW_WINDOW_CLOSE = @as(u32, 5646); pub const URLACTION_HTML_ALLOW_CROSS_DOMAIN_WEBWORKER = @as(u32, 5647); pub const URLACTION_HTML_ALLOW_CROSS_DOMAIN_TEXTTRACK = @as(u32, 5648); pub const URLACTION_HTML_ALLOW_INDEXEDDB = @as(u32, 5649); pub const URLACTION_HTML_MAX = @as(u32, 6143); pub const URLACTION_SHELL_MIN = @as(u32, 6144); pub const URLACTION_SHELL_INSTALL_DTITEMS = @as(u32, 6144); pub const URLACTION_SHELL_MOVE_OR_COPY = @as(u32, 6146); pub const URLACTION_SHELL_FILE_DOWNLOAD = @as(u32, 6147); pub const URLACTION_SHELL_VERB = @as(u32, 6148); pub const URLACTION_SHELL_WEBVIEW_VERB = @as(u32, 6149); pub const URLACTION_SHELL_SHELLEXECUTE = @as(u32, 6150); pub const URLACTION_SHELL_EXECUTE_HIGHRISK = @as(u32, 6150); pub const URLACTION_SHELL_EXECUTE_MODRISK = @as(u32, 6151); pub const URLACTION_SHELL_EXECUTE_LOWRISK = @as(u32, 6152); pub const URLACTION_SHELL_POPUPMGR = @as(u32, 6153); pub const URLACTION_SHELL_RTF_OBJECTS_LOAD = @as(u32, 6154); pub const URLACTION_SHELL_ENHANCED_DRAGDROP_SECURITY = @as(u32, 6155); pub const URLACTION_SHELL_EXTENSIONSECURITY = @as(u32, 6156); pub const URLACTION_SHELL_SECURE_DRAGSOURCE = @as(u32, 6157); pub const URLACTION_SHELL_REMOTEQUERY = @as(u32, 6158); pub const URLACTION_SHELL_PREVIEW = @as(u32, 6159); pub const URLACTION_SHELL_SHARE = @as(u32, 6160); pub const URLACTION_SHELL_ALLOW_CROSS_SITE_SHARE = @as(u32, 6161); pub const URLACTION_SHELL_TOCTOU_RISK = @as(u32, 6162); pub const URLACTION_SHELL_CURR_MAX = @as(u32, 6162); pub const URLACTION_SHELL_MAX = @as(u32, 6655); pub const URLACTION_NETWORK_MIN = @as(u32, 6656); pub const URLACTION_CREDENTIALS_USE = @as(u32, 6656); pub const URLPOLICY_CREDENTIALS_SILENT_LOGON_OK = @as(u32, 0); pub const URLPOLICY_CREDENTIALS_MUST_PROMPT_USER = @as(u32, 65536); pub const URLPOLICY_CREDENTIALS_CONDITIONAL_PROMPT = @as(u32, 131072); pub const URLPOLICY_CREDENTIALS_ANONYMOUS_ONLY = @as(u32, 196608); pub const URLACTION_AUTHENTICATE_CLIENT = @as(u32, 6657); pub const URLPOLICY_AUTHENTICATE_CLEARTEXT_OK = @as(u32, 0); pub const URLPOLICY_AUTHENTICATE_CHALLENGE_RESPONSE = @as(u32, 65536); pub const URLPOLICY_AUTHENTICATE_MUTUAL_ONLY = @as(u32, 196608); pub const URLACTION_COOKIES = @as(u32, 6658); pub const URLACTION_COOKIES_SESSION = @as(u32, 6659); pub const URLACTION_CLIENT_CERT_PROMPT = @as(u32, 6660); pub const URLACTION_COOKIES_THIRD_PARTY = @as(u32, 6661); pub const URLACTION_COOKIES_SESSION_THIRD_PARTY = @as(u32, 6662); pub const URLACTION_COOKIES_ENABLED = @as(u32, 6672); pub const URLACTION_NETWORK_CURR_MAX = @as(u32, 6672); pub const URLACTION_NETWORK_MAX = @as(u32, 7167); pub const URLACTION_JAVA_MIN = @as(u32, 7168); pub const URLACTION_JAVA_PERMISSIONS = @as(u32, 7168); pub const URLPOLICY_JAVA_PROHIBIT = @as(u32, 0); pub const URLPOLICY_JAVA_HIGH = @as(u32, 65536); pub const URLPOLICY_JAVA_MEDIUM = @as(u32, 131072); pub const URLPOLICY_JAVA_LOW = @as(u32, 196608); pub const URLPOLICY_JAVA_CUSTOM = @as(u32, 8388608); pub const URLACTION_JAVA_CURR_MAX = @as(u32, 7168); pub const URLACTION_JAVA_MAX = @as(u32, 7423); pub const URLACTION_INFODELIVERY_MIN = @as(u32, 7424); pub const URLACTION_INFODELIVERY_NO_ADDING_CHANNELS = @as(u32, 7424); pub const URLACTION_INFODELIVERY_NO_EDITING_CHANNELS = @as(u32, 7425); pub const URLACTION_INFODELIVERY_NO_REMOVING_CHANNELS = @as(u32, 7426); pub const URLACTION_INFODELIVERY_NO_ADDING_SUBSCRIPTIONS = @as(u32, 7427); pub const URLACTION_INFODELIVERY_NO_EDITING_SUBSCRIPTIONS = @as(u32, 7428); pub const URLACTION_INFODELIVERY_NO_REMOVING_SUBSCRIPTIONS = @as(u32, 7429); pub const URLACTION_INFODELIVERY_NO_CHANNEL_LOGGING = @as(u32, 7430); pub const URLACTION_INFODELIVERY_CURR_MAX = @as(u32, 7430); pub const URLACTION_INFODELIVERY_MAX = @as(u32, 7679); pub const URLACTION_CHANNEL_SOFTDIST_MIN = @as(u32, 7680); pub const URLACTION_CHANNEL_SOFTDIST_PERMISSIONS = @as(u32, 7685); pub const URLPOLICY_CHANNEL_SOFTDIST_PROHIBIT = @as(u32, 65536); pub const URLPOLICY_CHANNEL_SOFTDIST_PRECACHE = @as(u32, 131072); pub const URLPOLICY_CHANNEL_SOFTDIST_AUTOINSTALL = @as(u32, 196608); pub const URLACTION_CHANNEL_SOFTDIST_MAX = @as(u32, 7935); pub const URLACTION_DOTNET_USERCONTROLS = @as(u32, 8197); pub const URLACTION_BEHAVIOR_MIN = @as(u32, 8192); pub const URLACTION_BEHAVIOR_RUN = @as(u32, 8192); pub const URLPOLICY_BEHAVIOR_CHECK_LIST = @as(u32, 65536); pub const URLACTION_FEATURE_MIN = @as(u32, 8448); pub const URLACTION_FEATURE_MIME_SNIFFING = @as(u32, 8448); pub const URLACTION_FEATURE_ZONE_ELEVATION = @as(u32, 8449); pub const URLACTION_FEATURE_WINDOW_RESTRICTIONS = @as(u32, 8450); pub const URLACTION_FEATURE_SCRIPT_STATUS_BAR = @as(u32, 8451); pub const URLACTION_FEATURE_FORCE_ADDR_AND_STATUS = @as(u32, 8452); pub const URLACTION_FEATURE_BLOCK_INPUT_PROMPTS = @as(u32, 8453); pub const URLACTION_FEATURE_DATA_BINDING = @as(u32, 8454); pub const URLACTION_FEATURE_CROSSDOMAIN_FOCUS_CHANGE = @as(u32, 8455); pub const URLACTION_AUTOMATIC_DOWNLOAD_UI_MIN = @as(u32, 8704); pub const URLACTION_AUTOMATIC_DOWNLOAD_UI = @as(u32, 8704); pub const URLACTION_AUTOMATIC_ACTIVEX_UI = @as(u32, 8705); pub const URLACTION_ALLOW_RESTRICTEDPROTOCOLS = @as(u32, 8960); pub const URLACTION_ALLOW_APEVALUATION = @as(u32, 8961); pub const URLACTION_ALLOW_XHR_EVALUATION = @as(u32, 8962); pub const URLACTION_WINDOWS_BROWSER_APPLICATIONS = @as(u32, 9216); pub const URLACTION_XPS_DOCUMENTS = @as(u32, 9217); pub const URLACTION_LOOSE_XAML = @as(u32, 9218); pub const URLACTION_LOWRIGHTS = @as(u32, 9472); pub const URLACTION_WINFX_SETUP = @as(u32, 9728); pub const URLACTION_INPRIVATE_BLOCKING = @as(u32, 9984); pub const URLACTION_ALLOW_AUDIO_VIDEO = @as(u32, 9985); pub const URLACTION_ALLOW_ACTIVEX_FILTERING = @as(u32, 9986); pub const URLACTION_ALLOW_STRUCTURED_STORAGE_SNIFFING = @as(u32, 9987); pub const URLACTION_ALLOW_AUDIO_VIDEO_PLUGINS = @as(u32, 9988); pub const URLACTION_ALLOW_ZONE_ELEVATION_VIA_OPT_OUT = @as(u32, 9989); pub const URLACTION_ALLOW_ZONE_ELEVATION_OPT_OUT_ADDITION = @as(u32, 9990); pub const URLACTION_ALLOW_CROSSDOMAIN_DROP_WITHIN_WINDOW = @as(u32, 9992); pub const URLACTION_ALLOW_CROSSDOMAIN_DROP_ACROSS_WINDOWS = @as(u32, 9993); pub const URLACTION_ALLOW_CROSSDOMAIN_APPCACHE_MANIFEST = @as(u32, 9994); pub const URLACTION_ALLOW_RENDER_LEGACY_DXTFILTERS = @as(u32, 9995); pub const URLACTION_ALLOW_ANTIMALWARE_SCANNING_OF_ACTIVEX = @as(u32, 9996); pub const URLACTION_ALLOW_CSS_EXPRESSIONS = @as(u32, 9997); pub const URLPOLICY_ALLOW = @as(u32, 0); pub const URLPOLICY_QUERY = @as(u32, 1); pub const URLPOLICY_DISALLOW = @as(u32, 3); pub const URLPOLICY_NOTIFY_ON_ALLOW = @as(u32, 16); pub const URLPOLICY_NOTIFY_ON_DISALLOW = @as(u32, 32); pub const URLPOLICY_LOG_ON_ALLOW = @as(u32, 64); pub const URLPOLICY_LOG_ON_DISALLOW = @as(u32, 128); pub const URLPOLICY_MASK_PERMISSIONS = @as(u32, 15); pub const URLPOLICY_DONTCHECKDLGBOX = @as(u32, 256); pub const URLZONE_ESC_FLAG = @as(u32, 256); pub const SECURITY_IE_STATE_GREEN = @as(u32, 0); pub const SECURITY_IE_STATE_RED = @as(u32, 1); pub const SOFTDIST_FLAG_USAGE_EMAIL = @as(u32, 1); pub const SOFTDIST_FLAG_USAGE_PRECACHE = @as(u32, 2); pub const SOFTDIST_FLAG_USAGE_AUTOINSTALL = @as(u32, 4); pub const SOFTDIST_FLAG_DELETE_SUBSCRIPTION = @as(u32, 8); pub const SOFTDIST_ADSTATE_NONE = @as(u32, 0); pub const SOFTDIST_ADSTATE_AVAILABLE = @as(u32, 1); pub const SOFTDIST_ADSTATE_DOWNLOADED = @as(u32, 2); pub const SOFTDIST_ADSTATE_INSTALLED = @as(u32, 3); pub const CONFIRMSAFETYACTION_LOADOBJECT = @as(u32, 1); //-------------------------------------------------------------------------------- // Section: Types (88) //-------------------------------------------------------------------------------- pub const IEObjectType = enum(i32) { EVENT = 0, MUTEX = 1, SEMAPHORE = 2, SHARED_MEMORY = 3, WAITABLE_TIMER = 4, FILE = 5, NAMED_PIPE = 6, REGISTRY = 7, }; pub const IE_EPM_OBJECT_EVENT = IEObjectType.EVENT; pub const IE_EPM_OBJECT_MUTEX = IEObjectType.MUTEX; pub const IE_EPM_OBJECT_SEMAPHORE = IEObjectType.SEMAPHORE; pub const IE_EPM_OBJECT_SHARED_MEMORY = IEObjectType.SHARED_MEMORY; pub const IE_EPM_OBJECT_WAITABLE_TIMER = IEObjectType.WAITABLE_TIMER; pub const IE_EPM_OBJECT_FILE = IEObjectType.FILE; pub const IE_EPM_OBJECT_NAMED_PIPE = IEObjectType.NAMED_PIPE; pub const IE_EPM_OBJECT_REGISTRY = IEObjectType.REGISTRY; const IID_IPersistMoniker_Value = Guid.initString("79eac9c9-baf9-11ce-8c82-00aa004ba90b"); pub const IID_IPersistMoniker = &IID_IPersistMoniker_Value; pub const IPersistMoniker = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, GetClassID: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IPersistMoniker, pClassID: ?*Guid, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IPersistMoniker, pClassID: ?*Guid, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, IsDirty: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IPersistMoniker, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IPersistMoniker, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Load: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IPersistMoniker, fFullyAvailable: BOOL, pimkName: ?*IMoniker, pibc: ?*IBindCtx, grfMode: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IPersistMoniker, fFullyAvailable: BOOL, pimkName: ?*IMoniker, pibc: ?*IBindCtx, grfMode: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Save: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IPersistMoniker, pimkName: ?*IMoniker, pbc: ?*IBindCtx, fRemember: BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IPersistMoniker, pimkName: ?*IMoniker, pbc: ?*IBindCtx, fRemember: BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SaveCompleted: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IPersistMoniker, pimkName: ?*IMoniker, pibc: ?*IBindCtx, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IPersistMoniker, pimkName: ?*IMoniker, pibc: ?*IBindCtx, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetCurMoniker: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IPersistMoniker, ppimkName: ?*?*IMoniker, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IPersistMoniker, ppimkName: ?*?*IMoniker, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPersistMoniker_GetClassID(self: *const T, pClassID: ?*Guid) HRESULT { return @as(*const IPersistMoniker.VTable, @ptrCast(self.vtable)).GetClassID(@as(*const IPersistMoniker, @ptrCast(self)), pClassID); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPersistMoniker_IsDirty(self: *const T) HRESULT { return @as(*const IPersistMoniker.VTable, @ptrCast(self.vtable)).IsDirty(@as(*const IPersistMoniker, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPersistMoniker_Load(self: *const T, fFullyAvailable: BOOL, pimkName: ?*IMoniker, pibc: ?*IBindCtx, grfMode: u32) HRESULT { return @as(*const IPersistMoniker.VTable, @ptrCast(self.vtable)).Load(@as(*const IPersistMoniker, @ptrCast(self)), fFullyAvailable, pimkName, pibc, grfMode); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPersistMoniker_Save(self: *const T, pimkName: ?*IMoniker, pbc: ?*IBindCtx, fRemember: BOOL) HRESULT { return @as(*const IPersistMoniker.VTable, @ptrCast(self.vtable)).Save(@as(*const IPersistMoniker, @ptrCast(self)), pimkName, pbc, fRemember); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPersistMoniker_SaveCompleted(self: *const T, pimkName: ?*IMoniker, pibc: ?*IBindCtx) HRESULT { return @as(*const IPersistMoniker.VTable, @ptrCast(self.vtable)).SaveCompleted(@as(*const IPersistMoniker, @ptrCast(self)), pimkName, pibc); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPersistMoniker_GetCurMoniker(self: *const T, ppimkName: ?*?*IMoniker) HRESULT { return @as(*const IPersistMoniker.VTable, @ptrCast(self.vtable)).GetCurMoniker(@as(*const IPersistMoniker, @ptrCast(self)), ppimkName); } }; } pub usingnamespace MethodMixin(@This()); }; pub const MONIKERPROPERTY = enum(i32) { MIMETYPEPROP = 0, USE_SRC_URL = 1, CLASSIDPROP = 2, TRUSTEDDOWNLOADPROP = 3, POPUPLEVELPROP = 4, }; pub const MIMETYPEPROP = MONIKERPROPERTY.MIMETYPEPROP; pub const USE_SRC_URL = MONIKERPROPERTY.USE_SRC_URL; pub const CLASSIDPROP = MONIKERPROPERTY.CLASSIDPROP; pub const TRUSTEDDOWNLOADPROP = MONIKERPROPERTY.TRUSTEDDOWNLOADPROP; pub const POPUPLEVELPROP = MONIKERPROPERTY.POPUPLEVELPROP; const IID_IMonikerProp_Value = Guid.initString("a5ca5f7f-1847-4d87-9c5b-918509f7511d"); pub const IID_IMonikerProp = &IID_IMonikerProp_Value; pub const IMonikerProp = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, PutProperty: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IMonikerProp, mkp: MONIKERPROPERTY, val: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IMonikerProp, mkp: MONIKERPROPERTY, val: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMonikerProp_PutProperty(self: *const T, mkp: MONIKERPROPERTY, val: ?[*:0]const u16) HRESULT { return @as(*const IMonikerProp.VTable, @ptrCast(self.vtable)).PutProperty(@as(*const IMonikerProp, @ptrCast(self)), mkp, val); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IBindProtocol_Value = Guid.initString("79eac9cd-baf9-11ce-8c82-00aa004ba90b"); pub const IID_IBindProtocol = &IID_IBindProtocol_Value; pub const IBindProtocol = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, CreateBinding: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IBindProtocol, szUrl: ?[*:0]const u16, pbc: ?*IBindCtx, ppb: ?*?*IBinding, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IBindProtocol, szUrl: ?[*:0]const u16, pbc: ?*IBindCtx, ppb: ?*?*IBinding, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IBindProtocol_CreateBinding(self: *const T, szUrl: ?[*:0]const u16, pbc: ?*IBindCtx, ppb: ?*?*IBinding) HRESULT { return @as(*const IBindProtocol.VTable, @ptrCast(self.vtable)).CreateBinding(@as(*const IBindProtocol, @ptrCast(self)), szUrl, pbc, ppb); } }; } pub usingnamespace MethodMixin(@This()); }; pub const BINDVERB = enum(i32) { GET = 0, POST = 1, PUT = 2, CUSTOM = 3, RESERVED1 = 4, }; pub const BINDVERB_GET = BINDVERB.GET; pub const BINDVERB_POST = BINDVERB.POST; pub const BINDVERB_PUT = BINDVERB.PUT; pub const BINDVERB_CUSTOM = BINDVERB.CUSTOM; pub const BINDVERB_RESERVED1 = BINDVERB.RESERVED1; pub const BINDF = enum(i32) { ASYNCHRONOUS = 1, ASYNCSTORAGE = 2, NOPROGRESSIVERENDERING = 4, OFFLINEOPERATION = 8, GETNEWESTVERSION = 16, NOWRITECACHE = 32, NEEDFILE = 64, PULLDATA = 128, IGNORESECURITYPROBLEM = 256, RESYNCHRONIZE = 512, HYPERLINK = 1024, NO_UI = 2048, SILENTOPERATION = 4096, PRAGMA_NO_CACHE = 8192, GETCLASSOBJECT = 16384, RESERVED_1 = 32768, FREE_THREADED = 65536, DIRECT_READ = 131072, FORMS_SUBMIT = 262144, GETFROMCACHE_IF_NET_FAIL = 524288, FROMURLMON = 1048576, FWD_BACK = 2097152, PREFERDEFAULTHANDLER = 4194304, ENFORCERESTRICTED = 8388608, RESERVED_2 = -2147483648, RESERVED_3 = 16777216, RESERVED_4 = 33554432, RESERVED_5 = 67108864, RESERVED_6 = 134217728, RESERVED_7 = 1073741824, RESERVED_8 = 536870912, }; pub const BINDF_ASYNCHRONOUS = BINDF.ASYNCHRONOUS; pub const BINDF_ASYNCSTORAGE = BINDF.ASYNCSTORAGE; pub const BINDF_NOPROGRESSIVERENDERING = BINDF.NOPROGRESSIVERENDERING; pub const BINDF_OFFLINEOPERATION = BINDF.OFFLINEOPERATION; pub const BINDF_GETNEWESTVERSION = BINDF.GETNEWESTVERSION; pub const BINDF_NOWRITECACHE = BINDF.NOWRITECACHE; pub const BINDF_NEEDFILE = BINDF.NEEDFILE; pub const BINDF_PULLDATA = BINDF.PULLDATA; pub const BINDF_IGNORESECURITYPROBLEM = BINDF.IGNORESECURITYPROBLEM; pub const BINDF_RESYNCHRONIZE = BINDF.RESYNCHRONIZE; pub const BINDF_HYPERLINK = BINDF.HYPERLINK; pub const BINDF_NO_UI = BINDF.NO_UI; pub const BINDF_SILENTOPERATION = BINDF.SILENTOPERATION; pub const BINDF_PRAGMA_NO_CACHE = BINDF.PRAGMA_NO_CACHE; pub const BINDF_GETCLASSOBJECT = BINDF.GETCLASSOBJECT; pub const BINDF_RESERVED_1 = BINDF.RESERVED_1; pub const BINDF_FREE_THREADED = BINDF.FREE_THREADED; pub const BINDF_DIRECT_READ = BINDF.DIRECT_READ; pub const BINDF_FORMS_SUBMIT = BINDF.FORMS_SUBMIT; pub const BINDF_GETFROMCACHE_IF_NET_FAIL = BINDF.GETFROMCACHE_IF_NET_FAIL; pub const BINDF_FROMURLMON = BINDF.FROMURLMON; pub const BINDF_FWD_BACK = BINDF.FWD_BACK; pub const BINDF_PREFERDEFAULTHANDLER = BINDF.PREFERDEFAULTHANDLER; pub const BINDF_ENFORCERESTRICTED = BINDF.ENFORCERESTRICTED; pub const BINDF_RESERVED_2 = BINDF.RESERVED_2; pub const BINDF_RESERVED_3 = BINDF.RESERVED_3; pub const BINDF_RESERVED_4 = BINDF.RESERVED_4; pub const BINDF_RESERVED_5 = BINDF.RESERVED_5; pub const BINDF_RESERVED_6 = BINDF.RESERVED_6; pub const BINDF_RESERVED_7 = BINDF.RESERVED_7; pub const BINDF_RESERVED_8 = BINDF.RESERVED_8; pub const URL_ENCODING = enum(i32) { NONE = 0, ENABLE_UTF8 = 268435456, DISABLE_UTF8 = 536870912, }; pub const URL_ENCODING_NONE = URL_ENCODING.NONE; pub const URL_ENCODING_ENABLE_UTF8 = URL_ENCODING.ENABLE_UTF8; pub const URL_ENCODING_DISABLE_UTF8 = URL_ENCODING.DISABLE_UTF8; pub const REMSECURITY_ATTRIBUTES = extern struct { nLength: u32, lpSecurityDescriptor: u32, bInheritHandle: BOOL, }; pub const RemBINDINFO = extern struct { cbSize: u32, szExtraInfo: ?PWSTR, grfBindInfoF: u32, dwBindVerb: u32, szCustomVerb: ?PWSTR, cbstgmedData: u32, dwOptions: u32, dwOptionsFlags: u32, dwCodePage: u32, securityAttributes: REMSECURITY_ATTRIBUTES, iid: Guid, pUnk: ?*IUnknown, dwReserved: u32, }; pub const RemFORMATETC = extern struct { cfFormat: u32, ptd: u32, dwAspect: u32, lindex: i32, tymed: u32, }; pub const BINDINFO_OPTIONS = enum(i32) { OPTIONS_WININETFLAG = 65536, OPTIONS_ENABLE_UTF8 = 131072, OPTIONS_DISABLE_UTF8 = 262144, OPTIONS_USE_IE_ENCODING = 524288, OPTIONS_BINDTOOBJECT = 1048576, OPTIONS_SECURITYOPTOUT = 2097152, OPTIONS_IGNOREMIMETEXTPLAIN = 4194304, OPTIONS_USEBINDSTRINGCREDS = 8388608, OPTIONS_IGNOREHTTPHTTPSREDIRECTS = 16777216, OPTIONS_IGNORE_SSLERRORS_ONCE = 33554432, WPC_DOWNLOADBLOCKED = 134217728, WPC_LOGGING_ENABLED = 268435456, OPTIONS_ALLOWCONNECTDATA = 536870912, OPTIONS_DISABLEAUTOREDIRECTS = 1073741824, OPTIONS_SHDOCVW_NAVIGATE = -2147483648, }; pub const BINDINFO_OPTIONS_WININETFLAG = BINDINFO_OPTIONS.OPTIONS_WININETFLAG; pub const BINDINFO_OPTIONS_ENABLE_UTF8 = BINDINFO_OPTIONS.OPTIONS_ENABLE_UTF8; pub const BINDINFO_OPTIONS_DISABLE_UTF8 = BINDINFO_OPTIONS.OPTIONS_DISABLE_UTF8; pub const BINDINFO_OPTIONS_USE_IE_ENCODING = BINDINFO_OPTIONS.OPTIONS_USE_IE_ENCODING; pub const BINDINFO_OPTIONS_BINDTOOBJECT = BINDINFO_OPTIONS.OPTIONS_BINDTOOBJECT; pub const BINDINFO_OPTIONS_SECURITYOPTOUT = BINDINFO_OPTIONS.OPTIONS_SECURITYOPTOUT; pub const BINDINFO_OPTIONS_IGNOREMIMETEXTPLAIN = BINDINFO_OPTIONS.OPTIONS_IGNOREMIMETEXTPLAIN; pub const BINDINFO_OPTIONS_USEBINDSTRINGCREDS = BINDINFO_OPTIONS.OPTIONS_USEBINDSTRINGCREDS; pub const BINDINFO_OPTIONS_IGNOREHTTPHTTPSREDIRECTS = BINDINFO_OPTIONS.OPTIONS_IGNOREHTTPHTTPSREDIRECTS; pub const BINDINFO_OPTIONS_IGNORE_SSLERRORS_ONCE = BINDINFO_OPTIONS.OPTIONS_IGNORE_SSLERRORS_ONCE; pub const BINDINFO_WPC_DOWNLOADBLOCKED = BINDINFO_OPTIONS.WPC_DOWNLOADBLOCKED; pub const BINDINFO_WPC_LOGGING_ENABLED = BINDINFO_OPTIONS.WPC_LOGGING_ENABLED; pub const BINDINFO_OPTIONS_ALLOWCONNECTDATA = BINDINFO_OPTIONS.OPTIONS_ALLOWCONNECTDATA; pub const BINDINFO_OPTIONS_DISABLEAUTOREDIRECTS = BINDINFO_OPTIONS.OPTIONS_DISABLEAUTOREDIRECTS; pub const BINDINFO_OPTIONS_SHDOCVW_NAVIGATE = BINDINFO_OPTIONS.OPTIONS_SHDOCVW_NAVIGATE; pub const BSCF = enum(i32) { FIRSTDATANOTIFICATION = 1, INTERMEDIATEDATANOTIFICATION = 2, LASTDATANOTIFICATION = 4, DATAFULLYAVAILABLE = 8, AVAILABLEDATASIZEUNKNOWN = 16, SKIPDRAINDATAFORFILEURLS = 32, @"64BITLENGTHDOWNLOAD" = 64, }; pub const BSCF_FIRSTDATANOTIFICATION = BSCF.FIRSTDATANOTIFICATION; pub const BSCF_INTERMEDIATEDATANOTIFICATION = BSCF.INTERMEDIATEDATANOTIFICATION; pub const BSCF_LASTDATANOTIFICATION = BSCF.LASTDATANOTIFICATION; pub const BSCF_DATAFULLYAVAILABLE = BSCF.DATAFULLYAVAILABLE; pub const BSCF_AVAILABLEDATASIZEUNKNOWN = BSCF.AVAILABLEDATASIZEUNKNOWN; pub const BSCF_SKIPDRAINDATAFORFILEURLS = BSCF.SKIPDRAINDATAFORFILEURLS; pub const BSCF_64BITLENGTHDOWNLOAD = BSCF.@"64BITLENGTHDOWNLOAD"; pub const BINDSTATUS = enum(i32) { FINDINGRESOURCE = 1, CONNECTING = 2, REDIRECTING = 3, BEGINDOWNLOADDATA = 4, DOWNLOADINGDATA = 5, ENDDOWNLOADDATA = 6, BEGINDOWNLOADCOMPONENTS = 7, INSTALLINGCOMPONENTS = 8, ENDDOWNLOADCOMPONENTS = 9, USINGCACHEDCOPY = 10, SENDINGREQUEST = 11, CLASSIDAVAILABLE = 12, MIMETYPEAVAILABLE = 13, CACHEFILENAMEAVAILABLE = 14, BEGINSYNCOPERATION = 15, ENDSYNCOPERATION = 16, BEGINUPLOADDATA = 17, UPLOADINGDATA = 18, ENDUPLOADDATA = 19, PROTOCOLCLASSID = 20, ENCODING = 21, VERIFIEDMIMETYPEAVAILABLE = 22, CLASSINSTALLLOCATION = 23, DECODING = 24, LOADINGMIMEHANDLER = 25, CONTENTDISPOSITIONATTACH = 26, FILTERREPORTMIMETYPE = 27, CLSIDCANINSTANTIATE = 28, IUNKNOWNAVAILABLE = 29, DIRECTBIND = 30, RAWMIMETYPE = 31, PROXYDETECTING = 32, ACCEPTRANGES = 33, COOKIE_SENT = 34, COMPACT_POLICY_RECEIVED = 35, COOKIE_SUPPRESSED = 36, COOKIE_STATE_UNKNOWN = 37, COOKIE_STATE_ACCEPT = 38, COOKIE_STATE_REJECT = 39, COOKIE_STATE_PROMPT = 40, COOKIE_STATE_LEASH = 41, COOKIE_STATE_DOWNGRADE = 42, POLICY_HREF = 43, P3P_HEADER = 44, SESSION_COOKIE_RECEIVED = 45, PERSISTENT_COOKIE_RECEIVED = 46, SESSION_COOKIES_ALLOWED = 47, CACHECONTROL = 48, CONTENTDISPOSITIONFILENAME = 49, MIMETEXTPLAINMISMATCH = 50, PUBLISHERAVAILABLE = 51, DISPLAYNAMEAVAILABLE = 52, SSLUX_NAVBLOCKED = 53, SERVER_MIMETYPEAVAILABLE = 54, SNIFFED_CLASSIDAVAILABLE = 55, @"64BIT_PROGRESS" = 56, // LAST = 56, this enum value conflicts with @"64BIT_PROGRESS" RESERVED_0 = 57, RESERVED_1 = 58, RESERVED_2 = 59, RESERVED_3 = 60, RESERVED_4 = 61, RESERVED_5 = 62, RESERVED_6 = 63, RESERVED_7 = 64, RESERVED_8 = 65, RESERVED_9 = 66, RESERVED_A = 67, RESERVED_B = 68, RESERVED_C = 69, RESERVED_D = 70, RESERVED_E = 71, RESERVED_F = 72, RESERVED_10 = 73, RESERVED_11 = 74, RESERVED_12 = 75, RESERVED_13 = 76, RESERVED_14 = 77, // LAST_PRIVATE = 77, this enum value conflicts with RESERVED_14 }; pub const BINDSTATUS_FINDINGRESOURCE = BINDSTATUS.FINDINGRESOURCE; pub const BINDSTATUS_CONNECTING = BINDSTATUS.CONNECTING; pub const BINDSTATUS_REDIRECTING = BINDSTATUS.REDIRECTING; pub const BINDSTATUS_BEGINDOWNLOADDATA = BINDSTATUS.BEGINDOWNLOADDATA; pub const BINDSTATUS_DOWNLOADINGDATA = BINDSTATUS.DOWNLOADINGDATA; pub const BINDSTATUS_ENDDOWNLOADDATA = BINDSTATUS.ENDDOWNLOADDATA; pub const BINDSTATUS_BEGINDOWNLOADCOMPONENTS = BINDSTATUS.BEGINDOWNLOADCOMPONENTS; pub const BINDSTATUS_INSTALLINGCOMPONENTS = BINDSTATUS.INSTALLINGCOMPONENTS; pub const BINDSTATUS_ENDDOWNLOADCOMPONENTS = BINDSTATUS.ENDDOWNLOADCOMPONENTS; pub const BINDSTATUS_USINGCACHEDCOPY = BINDSTATUS.USINGCACHEDCOPY; pub const BINDSTATUS_SENDINGREQUEST = BINDSTATUS.SENDINGREQUEST; pub const BINDSTATUS_CLASSIDAVAILABLE = BINDSTATUS.CLASSIDAVAILABLE; pub const BINDSTATUS_MIMETYPEAVAILABLE = BINDSTATUS.MIMETYPEAVAILABLE; pub const BINDSTATUS_CACHEFILENAMEAVAILABLE = BINDSTATUS.CACHEFILENAMEAVAILABLE; pub const BINDSTATUS_BEGINSYNCOPERATION = BINDSTATUS.BEGINSYNCOPERATION; pub const BINDSTATUS_ENDSYNCOPERATION = BINDSTATUS.ENDSYNCOPERATION; pub const BINDSTATUS_BEGINUPLOADDATA = BINDSTATUS.BEGINUPLOADDATA; pub const BINDSTATUS_UPLOADINGDATA = BINDSTATUS.UPLOADINGDATA; pub const BINDSTATUS_ENDUPLOADDATA = BINDSTATUS.ENDUPLOADDATA; pub const BINDSTATUS_PROTOCOLCLASSID = BINDSTATUS.PROTOCOLCLASSID; pub const BINDSTATUS_ENCODING = BINDSTATUS.ENCODING; pub const BINDSTATUS_VERIFIEDMIMETYPEAVAILABLE = BINDSTATUS.VERIFIEDMIMETYPEAVAILABLE; pub const BINDSTATUS_CLASSINSTALLLOCATION = BINDSTATUS.CLASSINSTALLLOCATION; pub const BINDSTATUS_DECODING = BINDSTATUS.DECODING; pub const BINDSTATUS_LOADINGMIMEHANDLER = BINDSTATUS.LOADINGMIMEHANDLER; pub const BINDSTATUS_CONTENTDISPOSITIONATTACH = BINDSTATUS.CONTENTDISPOSITIONATTACH; pub const BINDSTATUS_FILTERREPORTMIMETYPE = BINDSTATUS.FILTERREPORTMIMETYPE; pub const BINDSTATUS_CLSIDCANINSTANTIATE = BINDSTATUS.CLSIDCANINSTANTIATE; pub const BINDSTATUS_IUNKNOWNAVAILABLE = BINDSTATUS.IUNKNOWNAVAILABLE; pub const BINDSTATUS_DIRECTBIND = BINDSTATUS.DIRECTBIND; pub const BINDSTATUS_RAWMIMETYPE = BINDSTATUS.RAWMIMETYPE; pub const BINDSTATUS_PROXYDETECTING = BINDSTATUS.PROXYDETECTING; pub const BINDSTATUS_ACCEPTRANGES = BINDSTATUS.ACCEPTRANGES; pub const BINDSTATUS_COOKIE_SENT = BINDSTATUS.COOKIE_SENT; pub const BINDSTATUS_COMPACT_POLICY_RECEIVED = BINDSTATUS.COMPACT_POLICY_RECEIVED; pub const BINDSTATUS_COOKIE_SUPPRESSED = BINDSTATUS.COOKIE_SUPPRESSED; pub const BINDSTATUS_COOKIE_STATE_UNKNOWN = BINDSTATUS.COOKIE_STATE_UNKNOWN; pub const BINDSTATUS_COOKIE_STATE_ACCEPT = BINDSTATUS.COOKIE_STATE_ACCEPT; pub const BINDSTATUS_COOKIE_STATE_REJECT = BINDSTATUS.COOKIE_STATE_REJECT; pub const BINDSTATUS_COOKIE_STATE_PROMPT = BINDSTATUS.COOKIE_STATE_PROMPT; pub const BINDSTATUS_COOKIE_STATE_LEASH = BINDSTATUS.COOKIE_STATE_LEASH; pub const BINDSTATUS_COOKIE_STATE_DOWNGRADE = BINDSTATUS.COOKIE_STATE_DOWNGRADE; pub const BINDSTATUS_POLICY_HREF = BINDSTATUS.POLICY_HREF; pub const BINDSTATUS_P3P_HEADER = BINDSTATUS.P3P_HEADER; pub const BINDSTATUS_SESSION_COOKIE_RECEIVED = BINDSTATUS.SESSION_COOKIE_RECEIVED; pub const BINDSTATUS_PERSISTENT_COOKIE_RECEIVED = BINDSTATUS.PERSISTENT_COOKIE_RECEIVED; pub const BINDSTATUS_SESSION_COOKIES_ALLOWED = BINDSTATUS.SESSION_COOKIES_ALLOWED; pub const BINDSTATUS_CACHECONTROL = BINDSTATUS.CACHECONTROL; pub const BINDSTATUS_CONTENTDISPOSITIONFILENAME = BINDSTATUS.CONTENTDISPOSITIONFILENAME; pub const BINDSTATUS_MIMETEXTPLAINMISMATCH = BINDSTATUS.MIMETEXTPLAINMISMATCH; pub const BINDSTATUS_PUBLISHERAVAILABLE = BINDSTATUS.PUBLISHERAVAILABLE; pub const BINDSTATUS_DISPLAYNAMEAVAILABLE = BINDSTATUS.DISPLAYNAMEAVAILABLE; pub const BINDSTATUS_SSLUX_NAVBLOCKED = BINDSTATUS.SSLUX_NAVBLOCKED; pub const BINDSTATUS_SERVER_MIMETYPEAVAILABLE = BINDSTATUS.SERVER_MIMETYPEAVAILABLE; pub const BINDSTATUS_SNIFFED_CLASSIDAVAILABLE = BINDSTATUS.SNIFFED_CLASSIDAVAILABLE; pub const BINDSTATUS_64BIT_PROGRESS = BINDSTATUS.@"64BIT_PROGRESS"; pub const BINDSTATUS_LAST = BINDSTATUS.@"64BIT_PROGRESS"; pub const BINDSTATUS_RESERVED_0 = BINDSTATUS.RESERVED_0; pub const BINDSTATUS_RESERVED_1 = BINDSTATUS.RESERVED_1; pub const BINDSTATUS_RESERVED_2 = BINDSTATUS.RESERVED_2; pub const BINDSTATUS_RESERVED_3 = BINDSTATUS.RESERVED_3; pub const BINDSTATUS_RESERVED_4 = BINDSTATUS.RESERVED_4; pub const BINDSTATUS_RESERVED_5 = BINDSTATUS.RESERVED_5; pub const BINDSTATUS_RESERVED_6 = BINDSTATUS.RESERVED_6; pub const BINDSTATUS_RESERVED_7 = BINDSTATUS.RESERVED_7; pub const BINDSTATUS_RESERVED_8 = BINDSTATUS.RESERVED_8; pub const BINDSTATUS_RESERVED_9 = BINDSTATUS.RESERVED_9; pub const BINDSTATUS_RESERVED_A = BINDSTATUS.RESERVED_A; pub const BINDSTATUS_RESERVED_B = BINDSTATUS.RESERVED_B; pub const BINDSTATUS_RESERVED_C = BINDSTATUS.RESERVED_C; pub const BINDSTATUS_RESERVED_D = BINDSTATUS.RESERVED_D; pub const BINDSTATUS_RESERVED_E = BINDSTATUS.RESERVED_E; pub const BINDSTATUS_RESERVED_F = BINDSTATUS.RESERVED_F; pub const BINDSTATUS_RESERVED_10 = BINDSTATUS.RESERVED_10; pub const BINDSTATUS_RESERVED_11 = BINDSTATUS.RESERVED_11; pub const BINDSTATUS_RESERVED_12 = BINDSTATUS.RESERVED_12; pub const BINDSTATUS_RESERVED_13 = BINDSTATUS.RESERVED_13; pub const BINDSTATUS_RESERVED_14 = BINDSTATUS.RESERVED_14; pub const BINDSTATUS_LAST_PRIVATE = BINDSTATUS.RESERVED_14; pub const BINDF2 = enum(i32) { DISABLEBASICOVERHTTP = 1, DISABLEAUTOCOOKIEHANDLING = 2, READ_DATA_GREATER_THAN_4GB = 4, DISABLE_HTTP_REDIRECT_XSECURITYID = 8, SETDOWNLOADMODE = 32, DISABLE_HTTP_REDIRECT_CACHING = 64, KEEP_CALLBACK_MODULE_LOADED = 128, ALLOW_PROXY_CRED_PROMPT = 256, RESERVED_17 = 512, RESERVED_16 = 1024, RESERVED_15 = 2048, RESERVED_14 = 4096, RESERVED_13 = 8192, RESERVED_12 = 16384, RESERVED_11 = 32768, RESERVED_10 = 65536, RESERVED_F = 131072, RESERVED_E = 262144, RESERVED_D = 524288, RESERVED_C = 1048576, RESERVED_B = 2097152, RESERVED_A = 4194304, RESERVED_9 = 8388608, RESERVED_8 = 16777216, RESERVED_7 = 33554432, RESERVED_6 = 67108864, RESERVED_5 = 134217728, RESERVED_4 = 268435456, RESERVED_3 = 536870912, RESERVED_2 = 1073741824, RESERVED_1 = -2147483648, }; pub const BINDF2_DISABLEBASICOVERHTTP = BINDF2.DISABLEBASICOVERHTTP; pub const BINDF2_DISABLEAUTOCOOKIEHANDLING = BINDF2.DISABLEAUTOCOOKIEHANDLING; pub const BINDF2_READ_DATA_GREATER_THAN_4GB = BINDF2.READ_DATA_GREATER_THAN_4GB; pub const BINDF2_DISABLE_HTTP_REDIRECT_XSECURITYID = BINDF2.DISABLE_HTTP_REDIRECT_XSECURITYID; pub const BINDF2_SETDOWNLOADMODE = BINDF2.SETDOWNLOADMODE; pub const BINDF2_DISABLE_HTTP_REDIRECT_CACHING = BINDF2.DISABLE_HTTP_REDIRECT_CACHING; pub const BINDF2_KEEP_CALLBACK_MODULE_LOADED = BINDF2.KEEP_CALLBACK_MODULE_LOADED; pub const BINDF2_ALLOW_PROXY_CRED_PROMPT = BINDF2.ALLOW_PROXY_CRED_PROMPT; pub const BINDF2_RESERVED_17 = BINDF2.RESERVED_17; pub const BINDF2_RESERVED_16 = BINDF2.RESERVED_16; pub const BINDF2_RESERVED_15 = BINDF2.RESERVED_15; pub const BINDF2_RESERVED_14 = BINDF2.RESERVED_14; pub const BINDF2_RESERVED_13 = BINDF2.RESERVED_13; pub const BINDF2_RESERVED_12 = BINDF2.RESERVED_12; pub const BINDF2_RESERVED_11 = BINDF2.RESERVED_11; pub const BINDF2_RESERVED_10 = BINDF2.RESERVED_10; pub const BINDF2_RESERVED_F = BINDF2.RESERVED_F; pub const BINDF2_RESERVED_E = BINDF2.RESERVED_E; pub const BINDF2_RESERVED_D = BINDF2.RESERVED_D; pub const BINDF2_RESERVED_C = BINDF2.RESERVED_C; pub const BINDF2_RESERVED_B = BINDF2.RESERVED_B; pub const BINDF2_RESERVED_A = BINDF2.RESERVED_A; pub const BINDF2_RESERVED_9 = BINDF2.RESERVED_9; pub const BINDF2_RESERVED_8 = BINDF2.RESERVED_8; pub const BINDF2_RESERVED_7 = BINDF2.RESERVED_7; pub const BINDF2_RESERVED_6 = BINDF2.RESERVED_6; pub const BINDF2_RESERVED_5 = BINDF2.RESERVED_5; pub const BINDF2_RESERVED_4 = BINDF2.RESERVED_4; pub const BINDF2_RESERVED_3 = BINDF2.RESERVED_3; pub const BINDF2_RESERVED_2 = BINDF2.RESERVED_2; pub const BINDF2_RESERVED_1 = BINDF2.RESERVED_1; pub const AUTHENTICATEF = enum(i32) { PROXY = 1, BASIC = 2, HTTP = 4, }; pub const AUTHENTICATEF_PROXY = AUTHENTICATEF.PROXY; pub const AUTHENTICATEF_BASIC = AUTHENTICATEF.BASIC; pub const AUTHENTICATEF_HTTP = AUTHENTICATEF.HTTP; const IID_IHttpNegotiate_Value = Guid.initString("79eac9d2-baf9-11ce-8c82-00aa004ba90b"); pub const IID_IHttpNegotiate = &IID_IHttpNegotiate_Value; pub const IHttpNegotiate = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, BeginningTransaction: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IHttpNegotiate, szURL: ?[*:0]const u16, szHeaders: ?[*:0]const u16, dwReserved: u32, pszAdditionalHeaders: ?*?PWSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IHttpNegotiate, szURL: ?[*:0]const u16, szHeaders: ?[*:0]const u16, dwReserved: u32, pszAdditionalHeaders: ?*?PWSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, OnResponse: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IHttpNegotiate, dwResponseCode: u32, szResponseHeaders: ?[*:0]const u16, szRequestHeaders: ?[*:0]const u16, pszAdditionalRequestHeaders: ?*?PWSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IHttpNegotiate, dwResponseCode: u32, szResponseHeaders: ?[*:0]const u16, szRequestHeaders: ?[*:0]const u16, pszAdditionalRequestHeaders: ?*?PWSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IHttpNegotiate_BeginningTransaction(self: *const T, szURL: ?[*:0]const u16, szHeaders: ?[*:0]const u16, dwReserved: u32, pszAdditionalHeaders: ?*?PWSTR) HRESULT { return @as(*const IHttpNegotiate.VTable, @ptrCast(self.vtable)).BeginningTransaction(@as(*const IHttpNegotiate, @ptrCast(self)), szURL, szHeaders, dwReserved, pszAdditionalHeaders); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IHttpNegotiate_OnResponse(self: *const T, dwResponseCode: u32, szResponseHeaders: ?[*:0]const u16, szRequestHeaders: ?[*:0]const u16, pszAdditionalRequestHeaders: ?*?PWSTR) HRESULT { return @as(*const IHttpNegotiate.VTable, @ptrCast(self.vtable)).OnResponse(@as(*const IHttpNegotiate, @ptrCast(self)), dwResponseCode, szResponseHeaders, szRequestHeaders, pszAdditionalRequestHeaders); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IHttpNegotiate2_Value = Guid.initString("4f9f9fcb-e0f4-48eb-b7ab-fa2ea9365cb4"); pub const IID_IHttpNegotiate2 = &IID_IHttpNegotiate2_Value; pub const IHttpNegotiate2 = extern struct { pub const VTable = extern struct { base: IHttpNegotiate.VTable, GetRootSecurityId: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IHttpNegotiate2, pbSecurityId: [*:0]u8, pcbSecurityId: ?*u32, dwReserved: usize, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IHttpNegotiate2, pbSecurityId: [*:0]u8, pcbSecurityId: ?*u32, dwReserved: usize, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IHttpNegotiate.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IHttpNegotiate2_GetRootSecurityId(self: *const T, pbSecurityId: [*:0]u8, pcbSecurityId: ?*u32, dwReserved: usize) HRESULT { return @as(*const IHttpNegotiate2.VTable, @ptrCast(self.vtable)).GetRootSecurityId(@as(*const IHttpNegotiate2, @ptrCast(self)), pbSecurityId, pcbSecurityId, dwReserved); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IHttpNegotiate3_Value = Guid.initString("57b6c80a-34c2-4602-bc26-66a02fc57153"); pub const IID_IHttpNegotiate3 = &IID_IHttpNegotiate3_Value; pub const IHttpNegotiate3 = extern struct { pub const VTable = extern struct { base: IHttpNegotiate2.VTable, GetSerializedClientCertContext: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IHttpNegotiate3, ppbCert: [*]?*u8, pcbCert: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IHttpNegotiate3, ppbCert: [*]?*u8, pcbCert: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IHttpNegotiate2.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IHttpNegotiate3_GetSerializedClientCertContext(self: *const T, ppbCert: [*]?*u8, pcbCert: ?*u32) HRESULT { return @as(*const IHttpNegotiate3.VTable, @ptrCast(self.vtable)).GetSerializedClientCertContext(@as(*const IHttpNegotiate3, @ptrCast(self)), ppbCert, pcbCert); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IWinInetFileStream_Value = Guid.initString("f134c4b7-b1f8-4e75-b886-74b90943becb"); pub const IID_IWinInetFileStream = &IID_IWinInetFileStream_Value; pub const IWinInetFileStream = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, SetHandleForUnlock: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IWinInetFileStream, hWinInetLockHandle: usize, dwReserved: usize, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IWinInetFileStream, hWinInetLockHandle: usize, dwReserved: usize, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetDeleteFile: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IWinInetFileStream, dwReserved: usize, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IWinInetFileStream, dwReserved: usize, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWinInetFileStream_SetHandleForUnlock(self: *const T, hWinInetLockHandle: usize, dwReserved: usize) HRESULT { return @as(*const IWinInetFileStream.VTable, @ptrCast(self.vtable)).SetHandleForUnlock(@as(*const IWinInetFileStream, @ptrCast(self)), hWinInetLockHandle, dwReserved); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWinInetFileStream_SetDeleteFile(self: *const T, dwReserved: usize) HRESULT { return @as(*const IWinInetFileStream.VTable, @ptrCast(self.vtable)).SetDeleteFile(@as(*const IWinInetFileStream, @ptrCast(self)), dwReserved); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IWindowForBindingUI_Value = Guid.initString("79eac9d5-bafa-11ce-8c82-00aa004ba90b"); pub const IID_IWindowForBindingUI = &IID_IWindowForBindingUI_Value; pub const IWindowForBindingUI = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, GetWindow: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IWindowForBindingUI, rguidReason: ?*const Guid, phwnd: ?*?HWND, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IWindowForBindingUI, rguidReason: ?*const Guid, phwnd: ?*?HWND, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWindowForBindingUI_GetWindow(self: *const T, rguidReason: ?*const Guid, phwnd: ?*?HWND) HRESULT { return @as(*const IWindowForBindingUI.VTable, @ptrCast(self.vtable)).GetWindow(@as(*const IWindowForBindingUI, @ptrCast(self)), rguidReason, phwnd); } }; } pub usingnamespace MethodMixin(@This()); }; pub const CIP_STATUS = enum(i32) { DISK_FULL = 0, ACCESS_DENIED = 1, NEWER_VERSION_EXISTS = 2, OLDER_VERSION_EXISTS = 3, NAME_CONFLICT = 4, TRUST_VERIFICATION_COMPONENT_MISSING = 5, EXE_SELF_REGISTERATION_TIMEOUT = 6, UNSAFE_TO_ABORT = 7, NEED_REBOOT = 8, NEED_REBOOT_UI_PERMISSION = 9, }; pub const CIP_DISK_FULL = CIP_STATUS.DISK_FULL; pub const CIP_ACCESS_DENIED = CIP_STATUS.ACCESS_DENIED; pub const CIP_NEWER_VERSION_EXISTS = CIP_STATUS.NEWER_VERSION_EXISTS; pub const CIP_OLDER_VERSION_EXISTS = CIP_STATUS.OLDER_VERSION_EXISTS; pub const CIP_NAME_CONFLICT = CIP_STATUS.NAME_CONFLICT; pub const CIP_TRUST_VERIFICATION_COMPONENT_MISSING = CIP_STATUS.TRUST_VERIFICATION_COMPONENT_MISSING; pub const CIP_EXE_SELF_REGISTERATION_TIMEOUT = CIP_STATUS.EXE_SELF_REGISTERATION_TIMEOUT; pub const CIP_UNSAFE_TO_ABORT = CIP_STATUS.UNSAFE_TO_ABORT; pub const CIP_NEED_REBOOT = CIP_STATUS.NEED_REBOOT; pub const CIP_NEED_REBOOT_UI_PERMISSION = CIP_STATUS.NEED_REBOOT_UI_PERMISSION; const IID_ICodeInstall_Value = Guid.initString("79eac9d1-baf9-11ce-8c82-00aa004ba90b"); pub const IID_ICodeInstall = &IID_ICodeInstall_Value; pub const ICodeInstall = extern struct { pub const VTable = extern struct { base: IWindowForBindingUI.VTable, OnCodeInstallProblem: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ICodeInstall, ulStatusCode: u32, szDestination: ?[*:0]const u16, szSource: ?[*:0]const u16, dwReserved: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ICodeInstall, ulStatusCode: u32, szDestination: ?[*:0]const u16, szSource: ?[*:0]const u16, dwReserved: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IWindowForBindingUI.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ICodeInstall_OnCodeInstallProblem(self: *const T, ulStatusCode: u32, szDestination: ?[*:0]const u16, szSource: ?[*:0]const u16, dwReserved: u32) HRESULT { return @as(*const ICodeInstall.VTable, @ptrCast(self.vtable)).OnCodeInstallProblem(@as(*const ICodeInstall, @ptrCast(self)), ulStatusCode, szDestination, szSource, dwReserved); } }; } pub usingnamespace MethodMixin(@This()); }; pub const Uri_HOST_TYPE = enum(i32) { UNKNOWN = 0, DNS = 1, IPV4 = 2, IPV6 = 3, IDN = 4, }; pub const Uri_HOST_UNKNOWN = Uri_HOST_TYPE.UNKNOWN; pub const Uri_HOST_DNS = Uri_HOST_TYPE.DNS; pub const Uri_HOST_IPV4 = Uri_HOST_TYPE.IPV4; pub const Uri_HOST_IPV6 = Uri_HOST_TYPE.IPV6; pub const Uri_HOST_IDN = Uri_HOST_TYPE.IDN; const IID_IUriContainer_Value = Guid.initString("a158a630-ed6f-45fb-b987-f68676f57752"); pub const IID_IUriContainer = &IID_IUriContainer_Value; pub const IUriContainer = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, GetIUri: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IUriContainer, ppIUri: ?*?*IUri, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IUriContainer, ppIUri: ?*?*IUri, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IUriContainer_GetIUri(self: *const T, ppIUri: ?*?*IUri) HRESULT { return @as(*const IUriContainer.VTable, @ptrCast(self.vtable)).GetIUri(@as(*const IUriContainer, @ptrCast(self)), ppIUri); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IUriBuilderFactory_Value = Guid.initString("e982ce48-0b96-440c-bc37-0c869b27a29e"); pub const IID_IUriBuilderFactory = &IID_IUriBuilderFactory_Value; pub const IUriBuilderFactory = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, CreateIUriBuilder: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IUriBuilderFactory, dwFlags: u32, dwReserved: usize, ppIUriBuilder: ?*?*IUriBuilder, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IUriBuilderFactory, dwFlags: u32, dwReserved: usize, ppIUriBuilder: ?*?*IUriBuilder, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, CreateInitializedIUriBuilder: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IUriBuilderFactory, dwFlags: u32, dwReserved: usize, ppIUriBuilder: ?*?*IUriBuilder, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IUriBuilderFactory, dwFlags: u32, dwReserved: usize, ppIUriBuilder: ?*?*IUriBuilder, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IUriBuilderFactory_CreateIUriBuilder(self: *const T, dwFlags: u32, dwReserved: usize, ppIUriBuilder: ?*?*IUriBuilder) HRESULT { return @as(*const IUriBuilderFactory.VTable, @ptrCast(self.vtable)).CreateIUriBuilder(@as(*const IUriBuilderFactory, @ptrCast(self)), dwFlags, dwReserved, ppIUriBuilder); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IUriBuilderFactory_CreateInitializedIUriBuilder(self: *const T, dwFlags: u32, dwReserved: usize, ppIUriBuilder: ?*?*IUriBuilder) HRESULT { return @as(*const IUriBuilderFactory.VTable, @ptrCast(self.vtable)).CreateInitializedIUriBuilder(@as(*const IUriBuilderFactory, @ptrCast(self)), dwFlags, dwReserved, ppIUriBuilder); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IWinInetInfo_Value = Guid.initString("79eac9d6-bafa-11ce-8c82-00aa004ba90b"); pub const IID_IWinInetInfo = &IID_IWinInetInfo_Value; pub const IWinInetInfo = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, QueryOption: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IWinInetInfo, dwOption: u32, pBuffer: [*]u8, pcbBuf: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IWinInetInfo, dwOption: u32, pBuffer: [*]u8, pcbBuf: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWinInetInfo_QueryOption(self: *const T, dwOption: u32, pBuffer: [*]u8, pcbBuf: ?*u32) HRESULT { return @as(*const IWinInetInfo.VTable, @ptrCast(self.vtable)).QueryOption(@as(*const IWinInetInfo, @ptrCast(self)), dwOption, pBuffer, pcbBuf); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IHttpSecurity_Value = Guid.initString("79eac9d7-bafa-11ce-8c82-00aa004ba90b"); pub const IID_IHttpSecurity = &IID_IHttpSecurity_Value; pub const IHttpSecurity = extern struct { pub const VTable = extern struct { base: IWindowForBindingUI.VTable, OnSecurityProblem: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IHttpSecurity, dwProblem: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IHttpSecurity, dwProblem: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IWindowForBindingUI.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IHttpSecurity_OnSecurityProblem(self: *const T, dwProblem: u32) HRESULT { return @as(*const IHttpSecurity.VTable, @ptrCast(self.vtable)).OnSecurityProblem(@as(*const IHttpSecurity, @ptrCast(self)), dwProblem); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IWinInetHttpInfo_Value = Guid.initString("79eac9d8-bafa-11ce-8c82-00aa004ba90b"); pub const IID_IWinInetHttpInfo = &IID_IWinInetHttpInfo_Value; pub const IWinInetHttpInfo = extern struct { pub const VTable = extern struct { base: IWinInetInfo.VTable, QueryInfo: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IWinInetHttpInfo, dwOption: u32, pBuffer: [*]u8, pcbBuf: ?*u32, pdwFlags: ?*u32, pdwReserved: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IWinInetHttpInfo, dwOption: u32, pBuffer: [*]u8, pcbBuf: ?*u32, pdwFlags: ?*u32, pdwReserved: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IWinInetInfo.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWinInetHttpInfo_QueryInfo(self: *const T, dwOption: u32, pBuffer: [*]u8, pcbBuf: ?*u32, pdwFlags: ?*u32, pdwReserved: ?*u32) HRESULT { return @as(*const IWinInetHttpInfo.VTable, @ptrCast(self.vtable)).QueryInfo(@as(*const IWinInetHttpInfo, @ptrCast(self)), dwOption, pBuffer, pcbBuf, pdwFlags, pdwReserved); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IWinInetHttpTimeouts_Value = Guid.initString("f286fa56-c1fd-4270-8e67-b3eb790a81e8"); pub const IID_IWinInetHttpTimeouts = &IID_IWinInetHttpTimeouts_Value; pub const IWinInetHttpTimeouts = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, GetRequestTimeouts: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IWinInetHttpTimeouts, pdwConnectTimeout: ?*u32, pdwSendTimeout: ?*u32, pdwReceiveTimeout: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IWinInetHttpTimeouts, pdwConnectTimeout: ?*u32, pdwSendTimeout: ?*u32, pdwReceiveTimeout: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWinInetHttpTimeouts_GetRequestTimeouts(self: *const T, pdwConnectTimeout: ?*u32, pdwSendTimeout: ?*u32, pdwReceiveTimeout: ?*u32) HRESULT { return @as(*const IWinInetHttpTimeouts.VTable, @ptrCast(self.vtable)).GetRequestTimeouts(@as(*const IWinInetHttpTimeouts, @ptrCast(self)), pdwConnectTimeout, pdwSendTimeout, pdwReceiveTimeout); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IWinInetCacheHints_Value = Guid.initString("dd1ec3b3-8391-4fdb-a9e6-347c3caaa7dd"); pub const IID_IWinInetCacheHints = &IID_IWinInetCacheHints_Value; pub const IWinInetCacheHints = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, SetCacheExtension: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IWinInetCacheHints, pwzExt: ?[*:0]const u16, pszCacheFile: [*]u8, pcbCacheFile: ?*u32, pdwWinInetError: ?*u32, pdwReserved: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IWinInetCacheHints, pwzExt: ?[*:0]const u16, pszCacheFile: [*]u8, pcbCacheFile: ?*u32, pdwWinInetError: ?*u32, pdwReserved: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWinInetCacheHints_SetCacheExtension(self: *const T, pwzExt: ?[*:0]const u16, pszCacheFile: [*]u8, pcbCacheFile: ?*u32, pdwWinInetError: ?*u32, pdwReserved: ?*u32) HRESULT { return @as(*const IWinInetCacheHints.VTable, @ptrCast(self.vtable)).SetCacheExtension(@as(*const IWinInetCacheHints, @ptrCast(self)), pwzExt, pszCacheFile, pcbCacheFile, pdwWinInetError, pdwReserved); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IWinInetCacheHints2_Value = Guid.initString("7857aeac-d31f-49bf-884e-dd46df36780a"); pub const IID_IWinInetCacheHints2 = &IID_IWinInetCacheHints2_Value; pub const IWinInetCacheHints2 = extern struct { pub const VTable = extern struct { base: IWinInetCacheHints.VTable, SetCacheExtension2: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IWinInetCacheHints2, pwzExt: ?[*:0]const u16, pwzCacheFile: ?PWSTR, pcchCacheFile: ?*u32, pdwWinInetError: ?*u32, pdwReserved: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IWinInetCacheHints2, pwzExt: ?[*:0]const u16, pwzCacheFile: ?PWSTR, pcchCacheFile: ?*u32, pdwWinInetError: ?*u32, pdwReserved: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IWinInetCacheHints.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWinInetCacheHints2_SetCacheExtension2(self: *const T, pwzExt: ?[*:0]const u16, pwzCacheFile: ?PWSTR, pcchCacheFile: ?*u32, pdwWinInetError: ?*u32, pdwReserved: ?*u32) HRESULT { return @as(*const IWinInetCacheHints2.VTable, @ptrCast(self.vtable)).SetCacheExtension2(@as(*const IWinInetCacheHints2, @ptrCast(self)), pwzExt, pwzCacheFile, pcchCacheFile, pdwWinInetError, pdwReserved); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IInternet_Value = Guid.initString("79eac9e0-baf9-11ce-8c82-00aa004ba90b"); pub const IID_IInternet = &IID_IInternet_Value; pub const IInternet = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); }; } pub usingnamespace MethodMixin(@This()); }; pub const BINDSTRING = enum(i32) { HEADERS = 1, ACCEPT_MIMES = 2, EXTRA_URL = 3, LANGUAGE = 4, USERNAME = 5, PASSWORD = 6, UA_PIXELS = 7, UA_COLOR = 8, OS = 9, USER_AGENT = 10, ACCEPT_ENCODINGS = 11, POST_COOKIE = 12, POST_DATA_MIME = 13, URL = 14, IID = 15, FLAG_BIND_TO_OBJECT = 16, PTR_BIND_CONTEXT = 17, XDR_ORIGIN = 18, DOWNLOADPATH = 19, ROOTDOC_URL = 20, INITIAL_FILENAME = 21, PROXY_USERNAME = 22, PROXY_PASSWORD = 23, ENTERPRISE_ID = 24, DOC_URL = 25, SAMESITE_COOKIE_LEVEL = 26, }; pub const BINDSTRING_HEADERS = BINDSTRING.HEADERS; pub const BINDSTRING_ACCEPT_MIMES = BINDSTRING.ACCEPT_MIMES; pub const BINDSTRING_EXTRA_URL = BINDSTRING.EXTRA_URL; pub const BINDSTRING_LANGUAGE = BINDSTRING.LANGUAGE; pub const BINDSTRING_USERNAME = BINDSTRING.USERNAME; pub const BINDSTRING_PASSWORD = BINDSTRING.PASSWORD; pub const BINDSTRING_UA_PIXELS = BINDSTRING.UA_PIXELS; pub const BINDSTRING_UA_COLOR = BINDSTRING.UA_COLOR; pub const BINDSTRING_OS = BINDSTRING.OS; pub const BINDSTRING_USER_AGENT = BINDSTRING.USER_AGENT; pub const BINDSTRING_ACCEPT_ENCODINGS = BINDSTRING.ACCEPT_ENCODINGS; pub const BINDSTRING_POST_COOKIE = BINDSTRING.POST_COOKIE; pub const BINDSTRING_POST_DATA_MIME = BINDSTRING.POST_DATA_MIME; pub const BINDSTRING_URL = BINDSTRING.URL; pub const BINDSTRING_IID = BINDSTRING.IID; pub const BINDSTRING_FLAG_BIND_TO_OBJECT = BINDSTRING.FLAG_BIND_TO_OBJECT; pub const BINDSTRING_PTR_BIND_CONTEXT = BINDSTRING.PTR_BIND_CONTEXT; pub const BINDSTRING_XDR_ORIGIN = BINDSTRING.XDR_ORIGIN; pub const BINDSTRING_DOWNLOADPATH = BINDSTRING.DOWNLOADPATH; pub const BINDSTRING_ROOTDOC_URL = BINDSTRING.ROOTDOC_URL; pub const BINDSTRING_INITIAL_FILENAME = BINDSTRING.INITIAL_FILENAME; pub const BINDSTRING_PROXY_USERNAME = BINDSTRING.PROXY_USERNAME; pub const BINDSTRING_PROXY_PASSWORD = BINDSTRING.PROXY_PASSWORD; pub const BINDSTRING_ENTERPRISE_ID = BINDSTRING.ENTERPRISE_ID; pub const BINDSTRING_DOC_URL = BINDSTRING.DOC_URL; pub const BINDSTRING_SAMESITE_COOKIE_LEVEL = BINDSTRING.SAMESITE_COOKIE_LEVEL; const IID_IInternetBindInfo_Value = Guid.initString("79eac9e1-baf9-11ce-8c82-00aa004ba90b"); pub const IID_IInternetBindInfo = &IID_IInternetBindInfo_Value; pub const IInternetBindInfo = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, GetBindInfo: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IInternetBindInfo, grfBINDF: ?*u32, pbindinfo: ?*BINDINFO, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IInternetBindInfo, grfBINDF: ?*u32, pbindinfo: ?*BINDINFO, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetBindString: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IInternetBindInfo, ulStringType: u32, ppwzStr: ?*?PWSTR, cEl: u32, pcElFetched: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IInternetBindInfo, ulStringType: u32, ppwzStr: ?*?PWSTR, cEl: u32, pcElFetched: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IInternetBindInfo_GetBindInfo(self: *const T, grfBINDF: ?*u32, pbindinfo: ?*BINDINFO) HRESULT { return @as(*const IInternetBindInfo.VTable, @ptrCast(self.vtable)).GetBindInfo(@as(*const IInternetBindInfo, @ptrCast(self)), grfBINDF, pbindinfo); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IInternetBindInfo_GetBindString(self: *const T, ulStringType: u32, ppwzStr: ?*?PWSTR, cEl: u32, pcElFetched: ?*u32) HRESULT { return @as(*const IInternetBindInfo.VTable, @ptrCast(self.vtable)).GetBindString(@as(*const IInternetBindInfo, @ptrCast(self)), ulStringType, ppwzStr, cEl, pcElFetched); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IInternetBindInfoEx_Value = Guid.initString("a3e015b7-a82c-4dcd-a150-569aeeed36ab"); pub const IID_IInternetBindInfoEx = &IID_IInternetBindInfoEx_Value; pub const IInternetBindInfoEx = extern struct { pub const VTable = extern struct { base: IInternetBindInfo.VTable, GetBindInfoEx: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IInternetBindInfoEx, grfBINDF: ?*u32, pbindinfo: ?*BINDINFO, grfBINDF2: ?*u32, pdwReserved: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IInternetBindInfoEx, grfBINDF: ?*u32, pbindinfo: ?*BINDINFO, grfBINDF2: ?*u32, pdwReserved: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IInternetBindInfo.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IInternetBindInfoEx_GetBindInfoEx(self: *const T, grfBINDF: ?*u32, pbindinfo: ?*BINDINFO, grfBINDF2: ?*u32, pdwReserved: ?*u32) HRESULT { return @as(*const IInternetBindInfoEx.VTable, @ptrCast(self.vtable)).GetBindInfoEx(@as(*const IInternetBindInfoEx, @ptrCast(self)), grfBINDF, pbindinfo, grfBINDF2, pdwReserved); } }; } pub usingnamespace MethodMixin(@This()); }; pub const PI_FLAGS = enum(i32) { I_PARSE_URL = 1, I_FILTER_MODE = 2, I_FORCE_ASYNC = 4, I_USE_WORKERTHREAD = 8, I_MIMEVERIFICATION = 16, I_CLSIDLOOKUP = 32, I_DATAPROGRESS = 64, I_SYNCHRONOUS = 128, I_APARTMENTTHREADED = 256, I_CLASSINSTALL = 512, I_PASSONBINDCTX = 8192, I_NOMIMEHANDLER = 32768, I_LOADAPPDIRECT = 16384, D_FORCE_SWITCH = 65536, I_PREFERDEFAULTHANDLER = 131072, }; pub const PI_PARSE_URL = PI_FLAGS.I_PARSE_URL; pub const PI_FILTER_MODE = PI_FLAGS.I_FILTER_MODE; pub const PI_FORCE_ASYNC = PI_FLAGS.I_FORCE_ASYNC; pub const PI_USE_WORKERTHREAD = PI_FLAGS.I_USE_WORKERTHREAD; pub const PI_MIMEVERIFICATION = PI_FLAGS.I_MIMEVERIFICATION; pub const PI_CLSIDLOOKUP = PI_FLAGS.I_CLSIDLOOKUP; pub const PI_DATAPROGRESS = PI_FLAGS.I_DATAPROGRESS; pub const PI_SYNCHRONOUS = PI_FLAGS.I_SYNCHRONOUS; pub const PI_APARTMENTTHREADED = PI_FLAGS.I_APARTMENTTHREADED; pub const PI_CLASSINSTALL = PI_FLAGS.I_CLASSINSTALL; pub const PI_PASSONBINDCTX = PI_FLAGS.I_PASSONBINDCTX; pub const PI_NOMIMEHANDLER = PI_FLAGS.I_NOMIMEHANDLER; pub const PI_LOADAPPDIRECT = PI_FLAGS.I_LOADAPPDIRECT; pub const PD_FORCE_SWITCH = PI_FLAGS.D_FORCE_SWITCH; pub const PI_PREFERDEFAULTHANDLER = PI_FLAGS.I_PREFERDEFAULTHANDLER; pub const PROTOCOLDATA = extern struct { grfFlags: u32, dwState: u32, pData: ?*anyopaque, cbData: u32, }; pub const StartParam = extern struct { iid: Guid, pIBindCtx: ?*IBindCtx, pItf: ?*IUnknown, }; const IID_IInternetProtocolRoot_Value = Guid.initString("79eac9e3-baf9-11ce-8c82-00aa004ba90b"); pub const IID_IInternetProtocolRoot = &IID_IInternetProtocolRoot_Value; pub const IInternetProtocolRoot = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, Start: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IInternetProtocolRoot, szUrl: ?[*:0]const u16, pOIProtSink: ?*IInternetProtocolSink, pOIBindInfo: ?*IInternetBindInfo, grfPI: u32, dwReserved: HANDLE_PTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IInternetProtocolRoot, szUrl: ?[*:0]const u16, pOIProtSink: ?*IInternetProtocolSink, pOIBindInfo: ?*IInternetBindInfo, grfPI: u32, dwReserved: HANDLE_PTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Continue: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IInternetProtocolRoot, pProtocolData: ?*PROTOCOLDATA, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IInternetProtocolRoot, pProtocolData: ?*PROTOCOLDATA, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Abort: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IInternetProtocolRoot, hrReason: HRESULT, dwOptions: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IInternetProtocolRoot, hrReason: HRESULT, dwOptions: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Terminate: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IInternetProtocolRoot, dwOptions: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IInternetProtocolRoot, dwOptions: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Suspend: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IInternetProtocolRoot, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IInternetProtocolRoot, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Resume: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IInternetProtocolRoot, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IInternetProtocolRoot, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IInternetProtocolRoot_Start(self: *const T, szUrl: ?[*:0]const u16, pOIProtSink: ?*IInternetProtocolSink, pOIBindInfo: ?*IInternetBindInfo, grfPI: u32, dwReserved: HANDLE_PTR) HRESULT { return @as(*const IInternetProtocolRoot.VTable, @ptrCast(self.vtable)).Start(@as(*const IInternetProtocolRoot, @ptrCast(self)), szUrl, pOIProtSink, pOIBindInfo, grfPI, dwReserved); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IInternetProtocolRoot_Continue(self: *const T, pProtocolData: ?*PROTOCOLDATA) HRESULT { return @as(*const IInternetProtocolRoot.VTable, @ptrCast(self.vtable)).Continue(@as(*const IInternetProtocolRoot, @ptrCast(self)), pProtocolData); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IInternetProtocolRoot_Abort(self: *const T, hrReason: HRESULT, dwOptions: u32) HRESULT { return @as(*const IInternetProtocolRoot.VTable, @ptrCast(self.vtable)).Abort(@as(*const IInternetProtocolRoot, @ptrCast(self)), hrReason, dwOptions); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IInternetProtocolRoot_Terminate(self: *const T, dwOptions: u32) HRESULT { return @as(*const IInternetProtocolRoot.VTable, @ptrCast(self.vtable)).Terminate(@as(*const IInternetProtocolRoot, @ptrCast(self)), dwOptions); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IInternetProtocolRoot_Suspend(self: *const T) HRESULT { return @as(*const IInternetProtocolRoot.VTable, @ptrCast(self.vtable)).Suspend(@as(*const IInternetProtocolRoot, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IInternetProtocolRoot_Resume(self: *const T) HRESULT { return @as(*const IInternetProtocolRoot.VTable, @ptrCast(self.vtable)).Resume(@as(*const IInternetProtocolRoot, @ptrCast(self))); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IInternetProtocol_Value = Guid.initString("79eac9e4-baf9-11ce-8c82-00aa004ba90b"); pub const IID_IInternetProtocol = &IID_IInternetProtocol_Value; pub const IInternetProtocol = extern struct { pub const VTable = extern struct { base: IInternetProtocolRoot.VTable, Read: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IInternetProtocol, pv: [*]u8, cb: u32, pcbRead: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IInternetProtocol, pv: [*]u8, cb: u32, pcbRead: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Seek: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IInternetProtocol, dlibMove: LARGE_INTEGER, dwOrigin: u32, plibNewPosition: ?*ULARGE_INTEGER, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IInternetProtocol, dlibMove: LARGE_INTEGER, dwOrigin: u32, plibNewPosition: ?*ULARGE_INTEGER, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, LockRequest: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IInternetProtocol, dwOptions: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IInternetProtocol, dwOptions: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, UnlockRequest: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IInternetProtocol, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IInternetProtocol, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IInternetProtocolRoot.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IInternetProtocol_Read(self: *const T, pv: [*]u8, cb: u32, pcbRead: ?*u32) HRESULT { return @as(*const IInternetProtocol.VTable, @ptrCast(self.vtable)).Read(@as(*const IInternetProtocol, @ptrCast(self)), pv, cb, pcbRead); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IInternetProtocol_Seek(self: *const T, dlibMove: LARGE_INTEGER, dwOrigin: u32, plibNewPosition: ?*ULARGE_INTEGER) HRESULT { return @as(*const IInternetProtocol.VTable, @ptrCast(self.vtable)).Seek(@as(*const IInternetProtocol, @ptrCast(self)), dlibMove, dwOrigin, plibNewPosition); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IInternetProtocol_LockRequest(self: *const T, dwOptions: u32) HRESULT { return @as(*const IInternetProtocol.VTable, @ptrCast(self.vtable)).LockRequest(@as(*const IInternetProtocol, @ptrCast(self)), dwOptions); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IInternetProtocol_UnlockRequest(self: *const T) HRESULT { return @as(*const IInternetProtocol.VTable, @ptrCast(self.vtable)).UnlockRequest(@as(*const IInternetProtocol, @ptrCast(self))); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IInternetProtocolEx_Value = Guid.initString("c7a98e66-1010-492c-a1c8-c809e1f75905"); pub const IID_IInternetProtocolEx = &IID_IInternetProtocolEx_Value; pub const IInternetProtocolEx = extern struct { pub const VTable = extern struct { base: IInternetProtocol.VTable, StartEx: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IInternetProtocolEx, pUri: ?*IUri, pOIProtSink: ?*IInternetProtocolSink, pOIBindInfo: ?*IInternetBindInfo, grfPI: u32, dwReserved: HANDLE_PTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IInternetProtocolEx, pUri: ?*IUri, pOIProtSink: ?*IInternetProtocolSink, pOIBindInfo: ?*IInternetBindInfo, grfPI: u32, dwReserved: HANDLE_PTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IInternetProtocol.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IInternetProtocolEx_StartEx(self: *const T, pUri: ?*IUri, pOIProtSink: ?*IInternetProtocolSink, pOIBindInfo: ?*IInternetBindInfo, grfPI: u32, dwReserved: HANDLE_PTR) HRESULT { return @as(*const IInternetProtocolEx.VTable, @ptrCast(self.vtable)).StartEx(@as(*const IInternetProtocolEx, @ptrCast(self)), pUri, pOIProtSink, pOIBindInfo, grfPI, dwReserved); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IInternetProtocolSink_Value = Guid.initString("79eac9e5-baf9-11ce-8c82-00aa004ba90b"); pub const IID_IInternetProtocolSink = &IID_IInternetProtocolSink_Value; pub const IInternetProtocolSink = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, Switch: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IInternetProtocolSink, pProtocolData: ?*PROTOCOLDATA, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IInternetProtocolSink, pProtocolData: ?*PROTOCOLDATA, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, ReportProgress: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IInternetProtocolSink, ulStatusCode: u32, szStatusText: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IInternetProtocolSink, ulStatusCode: u32, szStatusText: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, ReportData: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IInternetProtocolSink, grfBSCF: u32, ulProgress: u32, ulProgressMax: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IInternetProtocolSink, grfBSCF: u32, ulProgress: u32, ulProgressMax: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, ReportResult: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IInternetProtocolSink, hrResult: HRESULT, dwError: u32, szResult: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IInternetProtocolSink, hrResult: HRESULT, dwError: u32, szResult: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IInternetProtocolSink_Switch(self: *const T, pProtocolData: ?*PROTOCOLDATA) HRESULT { return @as(*const IInternetProtocolSink.VTable, @ptrCast(self.vtable)).Switch(@as(*const IInternetProtocolSink, @ptrCast(self)), pProtocolData); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IInternetProtocolSink_ReportProgress(self: *const T, ulStatusCode: u32, szStatusText: ?[*:0]const u16) HRESULT { return @as(*const IInternetProtocolSink.VTable, @ptrCast(self.vtable)).ReportProgress(@as(*const IInternetProtocolSink, @ptrCast(self)), ulStatusCode, szStatusText); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IInternetProtocolSink_ReportData(self: *const T, grfBSCF: u32, ulProgress: u32, ulProgressMax: u32) HRESULT { return @as(*const IInternetProtocolSink.VTable, @ptrCast(self.vtable)).ReportData(@as(*const IInternetProtocolSink, @ptrCast(self)), grfBSCF, ulProgress, ulProgressMax); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IInternetProtocolSink_ReportResult(self: *const T, hrResult: HRESULT, dwError: u32, szResult: ?[*:0]const u16) HRESULT { return @as(*const IInternetProtocolSink.VTable, @ptrCast(self.vtable)).ReportResult(@as(*const IInternetProtocolSink, @ptrCast(self)), hrResult, dwError, szResult); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IInternetProtocolSinkStackable_Value = Guid.initString("79eac9f0-baf9-11ce-8c82-00aa004ba90b"); pub const IID_IInternetProtocolSinkStackable = &IID_IInternetProtocolSinkStackable_Value; pub const IInternetProtocolSinkStackable = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, SwitchSink: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IInternetProtocolSinkStackable, pOIProtSink: ?*IInternetProtocolSink, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IInternetProtocolSinkStackable, pOIProtSink: ?*IInternetProtocolSink, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, CommitSwitch: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IInternetProtocolSinkStackable, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IInternetProtocolSinkStackable, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, RollbackSwitch: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IInternetProtocolSinkStackable, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IInternetProtocolSinkStackable, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IInternetProtocolSinkStackable_SwitchSink(self: *const T, pOIProtSink: ?*IInternetProtocolSink) HRESULT { return @as(*const IInternetProtocolSinkStackable.VTable, @ptrCast(self.vtable)).SwitchSink(@as(*const IInternetProtocolSinkStackable, @ptrCast(self)), pOIProtSink); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IInternetProtocolSinkStackable_CommitSwitch(self: *const T) HRESULT { return @as(*const IInternetProtocolSinkStackable.VTable, @ptrCast(self.vtable)).CommitSwitch(@as(*const IInternetProtocolSinkStackable, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IInternetProtocolSinkStackable_RollbackSwitch(self: *const T) HRESULT { return @as(*const IInternetProtocolSinkStackable.VTable, @ptrCast(self.vtable)).RollbackSwitch(@as(*const IInternetProtocolSinkStackable, @ptrCast(self))); } }; } pub usingnamespace MethodMixin(@This()); }; pub const OIBDG_FLAGS = enum(i32) { APARTMENTTHREADED = 256, DATAONLY = 4096, }; pub const OIBDG_APARTMENTTHREADED = OIBDG_FLAGS.APARTMENTTHREADED; pub const OIBDG_DATAONLY = OIBDG_FLAGS.DATAONLY; const IID_IInternetSession_Value = Guid.initString("79eac9e7-baf9-11ce-8c82-00aa004ba90b"); pub const IID_IInternetSession = &IID_IInternetSession_Value; pub const IInternetSession = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, RegisterNameSpace: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IInternetSession, pCF: ?*IClassFactory, rclsid: ?*const Guid, pwzProtocol: ?[*:0]const u16, cPatterns: u32, ppwzPatterns: ?*const ?PWSTR, dwReserved: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IInternetSession, pCF: ?*IClassFactory, rclsid: ?*const Guid, pwzProtocol: ?[*:0]const u16, cPatterns: u32, ppwzPatterns: ?*const ?PWSTR, dwReserved: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, UnregisterNameSpace: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IInternetSession, pCF: ?*IClassFactory, pszProtocol: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IInternetSession, pCF: ?*IClassFactory, pszProtocol: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, RegisterMimeFilter: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IInternetSession, pCF: ?*IClassFactory, rclsid: ?*const Guid, pwzType: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IInternetSession, pCF: ?*IClassFactory, rclsid: ?*const Guid, pwzType: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, UnregisterMimeFilter: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IInternetSession, pCF: ?*IClassFactory, pwzType: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IInternetSession, pCF: ?*IClassFactory, pwzType: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, CreateBinding: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IInternetSession, pBC: ?*IBindCtx, szUrl: ?[*:0]const u16, pUnkOuter: ?*IUnknown, ppUnk: ?*?*IUnknown, ppOInetProt: ?*?*IInternetProtocol, dwOption: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IInternetSession, pBC: ?*IBindCtx, szUrl: ?[*:0]const u16, pUnkOuter: ?*IUnknown, ppUnk: ?*?*IUnknown, ppOInetProt: ?*?*IInternetProtocol, dwOption: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetSessionOption: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IInternetSession, dwOption: u32, pBuffer: ?*anyopaque, dwBufferLength: u32, dwReserved: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IInternetSession, dwOption: u32, pBuffer: ?*anyopaque, dwBufferLength: u32, dwReserved: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetSessionOption: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IInternetSession, dwOption: u32, pBuffer: ?*anyopaque, pdwBufferLength: ?*u32, dwReserved: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IInternetSession, dwOption: u32, pBuffer: ?*anyopaque, pdwBufferLength: ?*u32, dwReserved: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IInternetSession_RegisterNameSpace(self: *const T, pCF: ?*IClassFactory, rclsid: ?*const Guid, pwzProtocol: ?[*:0]const u16, cPatterns: u32, ppwzPatterns: ?*const ?PWSTR, dwReserved: u32) HRESULT { return @as(*const IInternetSession.VTable, @ptrCast(self.vtable)).RegisterNameSpace(@as(*const IInternetSession, @ptrCast(self)), pCF, rclsid, pwzProtocol, cPatterns, ppwzPatterns, dwReserved); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IInternetSession_UnregisterNameSpace(self: *const T, pCF: ?*IClassFactory, pszProtocol: ?[*:0]const u16) HRESULT { return @as(*const IInternetSession.VTable, @ptrCast(self.vtable)).UnregisterNameSpace(@as(*const IInternetSession, @ptrCast(self)), pCF, pszProtocol); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IInternetSession_RegisterMimeFilter(self: *const T, pCF: ?*IClassFactory, rclsid: ?*const Guid, pwzType: ?[*:0]const u16) HRESULT { return @as(*const IInternetSession.VTable, @ptrCast(self.vtable)).RegisterMimeFilter(@as(*const IInternetSession, @ptrCast(self)), pCF, rclsid, pwzType); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IInternetSession_UnregisterMimeFilter(self: *const T, pCF: ?*IClassFactory, pwzType: ?[*:0]const u16) HRESULT { return @as(*const IInternetSession.VTable, @ptrCast(self.vtable)).UnregisterMimeFilter(@as(*const IInternetSession, @ptrCast(self)), pCF, pwzType); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IInternetSession_CreateBinding(self: *const T, pBC: ?*IBindCtx, szUrl: ?[*:0]const u16, pUnkOuter: ?*IUnknown, ppUnk: ?*?*IUnknown, ppOInetProt: ?*?*IInternetProtocol, dwOption: u32) HRESULT { return @as(*const IInternetSession.VTable, @ptrCast(self.vtable)).CreateBinding(@as(*const IInternetSession, @ptrCast(self)), pBC, szUrl, pUnkOuter, ppUnk, ppOInetProt, dwOption); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IInternetSession_SetSessionOption(self: *const T, dwOption: u32, pBuffer: ?*anyopaque, dwBufferLength: u32, dwReserved: u32) HRESULT { return @as(*const IInternetSession.VTable, @ptrCast(self.vtable)).SetSessionOption(@as(*const IInternetSession, @ptrCast(self)), dwOption, pBuffer, dwBufferLength, dwReserved); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IInternetSession_GetSessionOption(self: *const T, dwOption: u32, pBuffer: ?*anyopaque, pdwBufferLength: ?*u32, dwReserved: u32) HRESULT { return @as(*const IInternetSession.VTable, @ptrCast(self.vtable)).GetSessionOption(@as(*const IInternetSession, @ptrCast(self)), dwOption, pBuffer, pdwBufferLength, dwReserved); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IInternetThreadSwitch_Value = Guid.initString("79eac9e8-baf9-11ce-8c82-00aa004ba90b"); pub const IID_IInternetThreadSwitch = &IID_IInternetThreadSwitch_Value; pub const IInternetThreadSwitch = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, Prepare: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IInternetThreadSwitch, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IInternetThreadSwitch, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Continue: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IInternetThreadSwitch, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IInternetThreadSwitch, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IInternetThreadSwitch_Prepare(self: *const T) HRESULT { return @as(*const IInternetThreadSwitch.VTable, @ptrCast(self.vtable)).Prepare(@as(*const IInternetThreadSwitch, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IInternetThreadSwitch_Continue(self: *const T) HRESULT { return @as(*const IInternetThreadSwitch.VTable, @ptrCast(self.vtable)).Continue(@as(*const IInternetThreadSwitch, @ptrCast(self))); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IInternetPriority_Value = Guid.initString("79eac9eb-baf9-11ce-8c82-00aa004ba90b"); pub const IID_IInternetPriority = &IID_IInternetPriority_Value; pub const IInternetPriority = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, SetPriority: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IInternetPriority, nPriority: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IInternetPriority, nPriority: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetPriority: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IInternetPriority, pnPriority: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IInternetPriority, pnPriority: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IInternetPriority_SetPriority(self: *const T, nPriority: i32) HRESULT { return @as(*const IInternetPriority.VTable, @ptrCast(self.vtable)).SetPriority(@as(*const IInternetPriority, @ptrCast(self)), nPriority); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IInternetPriority_GetPriority(self: *const T, pnPriority: ?*i32) HRESULT { return @as(*const IInternetPriority.VTable, @ptrCast(self.vtable)).GetPriority(@as(*const IInternetPriority, @ptrCast(self)), pnPriority); } }; } pub usingnamespace MethodMixin(@This()); }; pub const PARSEACTION = enum(i32) { CANONICALIZE = 1, FRIENDLY = 2, SECURITY_URL = 3, ROOTDOCUMENT = 4, DOCUMENT = 5, ANCHOR = 6, ENCODE_IS_UNESCAPE = 7, DECODE_IS_ESCAPE = 8, PATH_FROM_URL = 9, URL_FROM_PATH = 10, MIME = 11, SERVER = 12, SCHEMA = 13, SITE = 14, DOMAIN = 15, LOCATION = 16, SECURITY_DOMAIN = 17, ESCAPE = 18, UNESCAPE = 19, }; pub const PARSE_CANONICALIZE = PARSEACTION.CANONICALIZE; pub const PARSE_FRIENDLY = PARSEACTION.FRIENDLY; pub const PARSE_SECURITY_URL = PARSEACTION.SECURITY_URL; pub const PARSE_ROOTDOCUMENT = PARSEACTION.ROOTDOCUMENT; pub const PARSE_DOCUMENT = PARSEACTION.DOCUMENT; pub const PARSE_ANCHOR = PARSEACTION.ANCHOR; pub const PARSE_ENCODE_IS_UNESCAPE = PARSEACTION.ENCODE_IS_UNESCAPE; pub const PARSE_DECODE_IS_ESCAPE = PARSEACTION.DECODE_IS_ESCAPE; pub const PARSE_PATH_FROM_URL = PARSEACTION.PATH_FROM_URL; pub const PARSE_URL_FROM_PATH = PARSEACTION.URL_FROM_PATH; pub const PARSE_MIME = PARSEACTION.MIME; pub const PARSE_SERVER = PARSEACTION.SERVER; pub const PARSE_SCHEMA = PARSEACTION.SCHEMA; pub const PARSE_SITE = PARSEACTION.SITE; pub const PARSE_DOMAIN = PARSEACTION.DOMAIN; pub const PARSE_LOCATION = PARSEACTION.LOCATION; pub const PARSE_SECURITY_DOMAIN = PARSEACTION.SECURITY_DOMAIN; pub const PARSE_ESCAPE = PARSEACTION.ESCAPE; pub const PARSE_UNESCAPE = PARSEACTION.UNESCAPE; pub const PSUACTION = enum(i32) { DEFAULT = 1, SECURITY_URL_ONLY = 2, }; pub const PSU_DEFAULT = PSUACTION.DEFAULT; pub const PSU_SECURITY_URL_ONLY = PSUACTION.SECURITY_URL_ONLY; pub const QUERYOPTION = enum(i32) { EXPIRATION_DATE = 1, TIME_OF_LAST_CHANGE = 2, CONTENT_ENCODING = 3, CONTENT_TYPE = 4, REFRESH = 5, RECOMBINE = 6, CAN_NAVIGATE = 7, USES_NETWORK = 8, IS_CACHED = 9, IS_INSTALLEDENTRY = 10, IS_CACHED_OR_MAPPED = 11, USES_CACHE = 12, IS_SECURE = 13, IS_SAFE = 14, USES_HISTORYFOLDER = 15, IS_CACHED_AND_USABLE_OFFLINE = 16, }; pub const QUERY_EXPIRATION_DATE = QUERYOPTION.EXPIRATION_DATE; pub const QUERY_TIME_OF_LAST_CHANGE = QUERYOPTION.TIME_OF_LAST_CHANGE; pub const QUERY_CONTENT_ENCODING = QUERYOPTION.CONTENT_ENCODING; pub const QUERY_CONTENT_TYPE = QUERYOPTION.CONTENT_TYPE; pub const QUERY_REFRESH = QUERYOPTION.REFRESH; pub const QUERY_RECOMBINE = QUERYOPTION.RECOMBINE; pub const QUERY_CAN_NAVIGATE = QUERYOPTION.CAN_NAVIGATE; pub const QUERY_USES_NETWORK = QUERYOPTION.USES_NETWORK; pub const QUERY_IS_CACHED = QUERYOPTION.IS_CACHED; pub const QUERY_IS_INSTALLEDENTRY = QUERYOPTION.IS_INSTALLEDENTRY; pub const QUERY_IS_CACHED_OR_MAPPED = QUERYOPTION.IS_CACHED_OR_MAPPED; pub const QUERY_USES_CACHE = QUERYOPTION.USES_CACHE; pub const QUERY_IS_SECURE = QUERYOPTION.IS_SECURE; pub const QUERY_IS_SAFE = QUERYOPTION.IS_SAFE; pub const QUERY_USES_HISTORYFOLDER = QUERYOPTION.USES_HISTORYFOLDER; pub const QUERY_IS_CACHED_AND_USABLE_OFFLINE = QUERYOPTION.IS_CACHED_AND_USABLE_OFFLINE; const IID_IInternetProtocolInfo_Value = Guid.initString("79eac9ec-baf9-11ce-8c82-00aa004ba90b"); pub const IID_IInternetProtocolInfo = &IID_IInternetProtocolInfo_Value; pub const IInternetProtocolInfo = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, ParseUrl: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IInternetProtocolInfo, pwzUrl: ?[*:0]const u16, ParseAction: PARSEACTION, dwParseFlags: u32, pwzResult: ?PWSTR, cchResult: u32, pcchResult: ?*u32, dwReserved: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IInternetProtocolInfo, pwzUrl: ?[*:0]const u16, ParseAction: PARSEACTION, dwParseFlags: u32, pwzResult: ?PWSTR, cchResult: u32, pcchResult: ?*u32, dwReserved: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, CombineUrl: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IInternetProtocolInfo, pwzBaseUrl: ?[*:0]const u16, pwzRelativeUrl: ?[*:0]const u16, dwCombineFlags: u32, pwzResult: ?PWSTR, cchResult: u32, pcchResult: ?*u32, dwReserved: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IInternetProtocolInfo, pwzBaseUrl: ?[*:0]const u16, pwzRelativeUrl: ?[*:0]const u16, dwCombineFlags: u32, pwzResult: ?PWSTR, cchResult: u32, pcchResult: ?*u32, dwReserved: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, CompareUrl: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IInternetProtocolInfo, pwzUrl1: ?[*:0]const u16, pwzUrl2: ?[*:0]const u16, dwCompareFlags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IInternetProtocolInfo, pwzUrl1: ?[*:0]const u16, pwzUrl2: ?[*:0]const u16, dwCompareFlags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, QueryInfo: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IInternetProtocolInfo, pwzUrl: ?[*:0]const u16, OueryOption: QUERYOPTION, dwQueryFlags: u32, pBuffer: [*]u8, cbBuffer: u32, pcbBuf: ?*u32, dwReserved: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IInternetProtocolInfo, pwzUrl: ?[*:0]const u16, OueryOption: QUERYOPTION, dwQueryFlags: u32, pBuffer: [*]u8, cbBuffer: u32, pcbBuf: ?*u32, dwReserved: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IInternetProtocolInfo_ParseUrl(self: *const T, pwzUrl: ?[*:0]const u16, ParseAction: PARSEACTION, dwParseFlags: u32, pwzResult: ?PWSTR, cchResult: u32, pcchResult: ?*u32, dwReserved: u32) HRESULT { return @as(*const IInternetProtocolInfo.VTable, @ptrCast(self.vtable)).ParseUrl(@as(*const IInternetProtocolInfo, @ptrCast(self)), pwzUrl, ParseAction, dwParseFlags, pwzResult, cchResult, pcchResult, dwReserved); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IInternetProtocolInfo_CombineUrl(self: *const T, pwzBaseUrl: ?[*:0]const u16, pwzRelativeUrl: ?[*:0]const u16, dwCombineFlags: u32, pwzResult: ?PWSTR, cchResult: u32, pcchResult: ?*u32, dwReserved: u32) HRESULT { return @as(*const IInternetProtocolInfo.VTable, @ptrCast(self.vtable)).CombineUrl(@as(*const IInternetProtocolInfo, @ptrCast(self)), pwzBaseUrl, pwzRelativeUrl, dwCombineFlags, pwzResult, cchResult, pcchResult, dwReserved); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IInternetProtocolInfo_CompareUrl(self: *const T, pwzUrl1: ?[*:0]const u16, pwzUrl2: ?[*:0]const u16, dwCompareFlags: u32) HRESULT { return @as(*const IInternetProtocolInfo.VTable, @ptrCast(self.vtable)).CompareUrl(@as(*const IInternetProtocolInfo, @ptrCast(self)), pwzUrl1, pwzUrl2, dwCompareFlags); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IInternetProtocolInfo_QueryInfo(self: *const T, pwzUrl: ?[*:0]const u16, OueryOption: QUERYOPTION, dwQueryFlags: u32, pBuffer: [*]u8, cbBuffer: u32, pcbBuf: ?*u32, dwReserved: u32) HRESULT { return @as(*const IInternetProtocolInfo.VTable, @ptrCast(self.vtable)).QueryInfo(@as(*const IInternetProtocolInfo, @ptrCast(self)), pwzUrl, OueryOption, dwQueryFlags, pBuffer, cbBuffer, pcbBuf, dwReserved); } }; } pub usingnamespace MethodMixin(@This()); }; pub const INTERNETFEATURELIST = enum(i32) { OBJECT_CACHING = 0, ZONE_ELEVATION = 1, MIME_HANDLING = 2, MIME_SNIFFING = 3, WINDOW_RESTRICTIONS = 4, WEBOC_POPUPMANAGEMENT = 5, BEHAVIORS = 6, DISABLE_MK_PROTOCOL = 7, LOCALMACHINE_LOCKDOWN = 8, SECURITYBAND = 9, RESTRICT_ACTIVEXINSTALL = 10, VALIDATE_NAVIGATE_URL = 11, RESTRICT_FILEDOWNLOAD = 12, ADDON_MANAGEMENT = 13, PROTOCOL_LOCKDOWN = 14, HTTP_USERNAME_PASSWORD_DISABLE = 15, SAFE_BINDTOOBJECT = 16, UNC_SAVEDFILECHECK = 17, GET_URL_DOM_FILEPATH_UNENCODED = 18, TABBED_BROWSING = 19, SSLUX = 20, DISABLE_NAVIGATION_SOUNDS = 21, DISABLE_LEGACY_COMPRESSION = 22, FORCE_ADDR_AND_STATUS = 23, XMLHTTP = 24, DISABLE_TELNET_PROTOCOL = 25, FEEDS = 26, BLOCK_INPUT_PROMPTS = 27, ENTRY_COUNT = 28, }; pub const FEATURE_OBJECT_CACHING = INTERNETFEATURELIST.OBJECT_CACHING; pub const FEATURE_ZONE_ELEVATION = INTERNETFEATURELIST.ZONE_ELEVATION; pub const FEATURE_MIME_HANDLING = INTERNETFEATURELIST.MIME_HANDLING; pub const FEATURE_MIME_SNIFFING = INTERNETFEATURELIST.MIME_SNIFFING; pub const FEATURE_WINDOW_RESTRICTIONS = INTERNETFEATURELIST.WINDOW_RESTRICTIONS; pub const FEATURE_WEBOC_POPUPMANAGEMENT = INTERNETFEATURELIST.WEBOC_POPUPMANAGEMENT; pub const FEATURE_BEHAVIORS = INTERNETFEATURELIST.BEHAVIORS; pub const FEATURE_DISABLE_MK_PROTOCOL = INTERNETFEATURELIST.DISABLE_MK_PROTOCOL; pub const FEATURE_LOCALMACHINE_LOCKDOWN = INTERNETFEATURELIST.LOCALMACHINE_LOCKDOWN; pub const FEATURE_SECURITYBAND = INTERNETFEATURELIST.SECURITYBAND; pub const FEATURE_RESTRICT_ACTIVEXINSTALL = INTERNETFEATURELIST.RESTRICT_ACTIVEXINSTALL; pub const FEATURE_VALIDATE_NAVIGATE_URL = INTERNETFEATURELIST.VALIDATE_NAVIGATE_URL; pub const FEATURE_RESTRICT_FILEDOWNLOAD = INTERNETFEATURELIST.RESTRICT_FILEDOWNLOAD; pub const FEATURE_ADDON_MANAGEMENT = INTERNETFEATURELIST.ADDON_MANAGEMENT; pub const FEATURE_PROTOCOL_LOCKDOWN = INTERNETFEATURELIST.PROTOCOL_LOCKDOWN; pub const FEATURE_HTTP_USERNAME_PASSWORD_DISABLE = INTERNETFEATURELIST.HTTP_USERNAME_PASSWORD_DISABLE; pub const FEATURE_SAFE_BINDTOOBJECT = INTERNETFEATURELIST.SAFE_BINDTOOBJECT; pub const FEATURE_UNC_SAVEDFILECHECK = INTERNETFEATURELIST.UNC_SAVEDFILECHECK; pub const FEATURE_GET_URL_DOM_FILEPATH_UNENCODED = INTERNETFEATURELIST.GET_URL_DOM_FILEPATH_UNENCODED; pub const FEATURE_TABBED_BROWSING = INTERNETFEATURELIST.TABBED_BROWSING; pub const FEATURE_SSLUX = INTERNETFEATURELIST.SSLUX; pub const FEATURE_DISABLE_NAVIGATION_SOUNDS = INTERNETFEATURELIST.DISABLE_NAVIGATION_SOUNDS; pub const FEATURE_DISABLE_LEGACY_COMPRESSION = INTERNETFEATURELIST.DISABLE_LEGACY_COMPRESSION; pub const FEATURE_FORCE_ADDR_AND_STATUS = INTERNETFEATURELIST.FORCE_ADDR_AND_STATUS; pub const FEATURE_XMLHTTP = INTERNETFEATURELIST.XMLHTTP; pub const FEATURE_DISABLE_TELNET_PROTOCOL = INTERNETFEATURELIST.DISABLE_TELNET_PROTOCOL; pub const FEATURE_FEEDS = INTERNETFEATURELIST.FEEDS; pub const FEATURE_BLOCK_INPUT_PROMPTS = INTERNETFEATURELIST.BLOCK_INPUT_PROMPTS; pub const FEATURE_ENTRY_COUNT = INTERNETFEATURELIST.ENTRY_COUNT; const IID_IInternetSecurityMgrSite_Value = Guid.initString("79eac9ed-baf9-11ce-8c82-00aa004ba90b"); pub const IID_IInternetSecurityMgrSite = &IID_IInternetSecurityMgrSite_Value; pub const IInternetSecurityMgrSite = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, GetWindow: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IInternetSecurityMgrSite, phwnd: ?*?HWND, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IInternetSecurityMgrSite, phwnd: ?*?HWND, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, EnableModeless: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IInternetSecurityMgrSite, fEnable: BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IInternetSecurityMgrSite, fEnable: BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IInternetSecurityMgrSite_GetWindow(self: *const T, phwnd: ?*?HWND) HRESULT { return @as(*const IInternetSecurityMgrSite.VTable, @ptrCast(self.vtable)).GetWindow(@as(*const IInternetSecurityMgrSite, @ptrCast(self)), phwnd); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IInternetSecurityMgrSite_EnableModeless(self: *const T, fEnable: BOOL) HRESULT { return @as(*const IInternetSecurityMgrSite.VTable, @ptrCast(self.vtable)).EnableModeless(@as(*const IInternetSecurityMgrSite, @ptrCast(self)), fEnable); } }; } pub usingnamespace MethodMixin(@This()); }; pub const PUAF = enum(i32) { DEFAULT = 0, NOUI = 1, ISFILE = 2, WARN_IF_DENIED = 4, FORCEUI_FOREGROUND = 8, CHECK_TIFS = 16, DONTCHECKBOXINDIALOG = 32, TRUSTED = 64, ACCEPT_WILDCARD_SCHEME = 128, ENFORCERESTRICTED = 256, NOSAVEDFILECHECK = 512, REQUIRESAVEDFILECHECK = 1024, DONT_USE_CACHE = 4096, RESERVED1 = 8192, RESERVED2 = 16384, LMZ_UNLOCKED = 65536, LMZ_LOCKED = 131072, DEFAULTZONEPOL = 262144, NPL_USE_LOCKED_IF_RESTRICTED = 524288, NOUIIFLOCKED = 1048576, DRAGPROTOCOLCHECK = 2097152, }; pub const PUAF_DEFAULT = PUAF.DEFAULT; pub const PUAF_NOUI = PUAF.NOUI; pub const PUAF_ISFILE = PUAF.ISFILE; pub const PUAF_WARN_IF_DENIED = PUAF.WARN_IF_DENIED; pub const PUAF_FORCEUI_FOREGROUND = PUAF.FORCEUI_FOREGROUND; pub const PUAF_CHECK_TIFS = PUAF.CHECK_TIFS; pub const PUAF_DONTCHECKBOXINDIALOG = PUAF.DONTCHECKBOXINDIALOG; pub const PUAF_TRUSTED = PUAF.TRUSTED; pub const PUAF_ACCEPT_WILDCARD_SCHEME = PUAF.ACCEPT_WILDCARD_SCHEME; pub const PUAF_ENFORCERESTRICTED = PUAF.ENFORCERESTRICTED; pub const PUAF_NOSAVEDFILECHECK = PUAF.NOSAVEDFILECHECK; pub const PUAF_REQUIRESAVEDFILECHECK = PUAF.REQUIRESAVEDFILECHECK; pub const PUAF_DONT_USE_CACHE = PUAF.DONT_USE_CACHE; pub const PUAF_RESERVED1 = PUAF.RESERVED1; pub const PUAF_RESERVED2 = PUAF.RESERVED2; pub const PUAF_LMZ_UNLOCKED = PUAF.LMZ_UNLOCKED; pub const PUAF_LMZ_LOCKED = PUAF.LMZ_LOCKED; pub const PUAF_DEFAULTZONEPOL = PUAF.DEFAULTZONEPOL; pub const PUAF_NPL_USE_LOCKED_IF_RESTRICTED = PUAF.NPL_USE_LOCKED_IF_RESTRICTED; pub const PUAF_NOUIIFLOCKED = PUAF.NOUIIFLOCKED; pub const PUAF_DRAGPROTOCOLCHECK = PUAF.DRAGPROTOCOLCHECK; pub const PUAFOUT = enum(i32) { DEFAULT = 0, ISLOCKZONEPOLICY = 1, }; pub const PUAFOUT_DEFAULT = PUAFOUT.DEFAULT; pub const PUAFOUT_ISLOCKZONEPOLICY = PUAFOUT.ISLOCKZONEPOLICY; pub const SZM_FLAGS = enum(i32) { CREATE = 0, DELETE = 1, }; pub const SZM_CREATE = SZM_FLAGS.CREATE; pub const SZM_DELETE = SZM_FLAGS.DELETE; const IID_IInternetSecurityManager_Value = Guid.initString("79eac9ee-baf9-11ce-8c82-00aa004ba90b"); pub const IID_IInternetSecurityManager = &IID_IInternetSecurityManager_Value; pub const IInternetSecurityManager = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, SetSecuritySite: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IInternetSecurityManager, pSite: ?*IInternetSecurityMgrSite, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IInternetSecurityManager, pSite: ?*IInternetSecurityMgrSite, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetSecuritySite: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IInternetSecurityManager, ppSite: ?*?*IInternetSecurityMgrSite, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IInternetSecurityManager, ppSite: ?*?*IInternetSecurityMgrSite, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, MapUrlToZone: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IInternetSecurityManager, pwszUrl: ?[*:0]const u16, pdwZone: ?*u32, dwFlags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IInternetSecurityManager, pwszUrl: ?[*:0]const u16, pdwZone: ?*u32, dwFlags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetSecurityId: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IInternetSecurityManager, pwszUrl: ?[*:0]const u16, pbSecurityId: *[512]u8, pcbSecurityId: ?*u32, dwReserved: usize, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IInternetSecurityManager, pwszUrl: ?[*:0]const u16, pbSecurityId: *[512]u8, pcbSecurityId: ?*u32, dwReserved: usize, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, ProcessUrlAction: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IInternetSecurityManager, pwszUrl: ?[*:0]const u16, dwAction: u32, pPolicy: [*:0]u8, cbPolicy: u32, pContext: ?*u8, cbContext: u32, dwFlags: u32, dwReserved: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IInternetSecurityManager, pwszUrl: ?[*:0]const u16, dwAction: u32, pPolicy: [*:0]u8, cbPolicy: u32, pContext: ?*u8, cbContext: u32, dwFlags: u32, dwReserved: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, QueryCustomPolicy: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IInternetSecurityManager, pwszUrl: ?[*:0]const u16, guidKey: ?*const Guid, ppPolicy: [*]?*u8, pcbPolicy: ?*u32, pContext: ?*u8, cbContext: u32, dwReserved: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IInternetSecurityManager, pwszUrl: ?[*:0]const u16, guidKey: ?*const Guid, ppPolicy: [*]?*u8, pcbPolicy: ?*u32, pContext: ?*u8, cbContext: u32, dwReserved: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetZoneMapping: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IInternetSecurityManager, dwZone: u32, lpszPattern: ?[*:0]const u16, dwFlags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IInternetSecurityManager, dwZone: u32, lpszPattern: ?[*:0]const u16, dwFlags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetZoneMappings: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IInternetSecurityManager, dwZone: u32, ppenumString: ?*?*IEnumString, dwFlags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IInternetSecurityManager, dwZone: u32, ppenumString: ?*?*IEnumString, dwFlags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IInternetSecurityManager_SetSecuritySite(self: *const T, pSite: ?*IInternetSecurityMgrSite) HRESULT { return @as(*const IInternetSecurityManager.VTable, @ptrCast(self.vtable)).SetSecuritySite(@as(*const IInternetSecurityManager, @ptrCast(self)), pSite); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IInternetSecurityManager_GetSecuritySite(self: *const T, ppSite: ?*?*IInternetSecurityMgrSite) HRESULT { return @as(*const IInternetSecurityManager.VTable, @ptrCast(self.vtable)).GetSecuritySite(@as(*const IInternetSecurityManager, @ptrCast(self)), ppSite); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IInternetSecurityManager_MapUrlToZone(self: *const T, pwszUrl: ?[*:0]const u16, pdwZone: ?*u32, dwFlags: u32) HRESULT { return @as(*const IInternetSecurityManager.VTable, @ptrCast(self.vtable)).MapUrlToZone(@as(*const IInternetSecurityManager, @ptrCast(self)), pwszUrl, pdwZone, dwFlags); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IInternetSecurityManager_GetSecurityId(self: *const T, pwszUrl: ?[*:0]const u16, pbSecurityId: *[512]u8, pcbSecurityId: ?*u32, dwReserved: usize) HRESULT { return @as(*const IInternetSecurityManager.VTable, @ptrCast(self.vtable)).GetSecurityId(@as(*const IInternetSecurityManager, @ptrCast(self)), pwszUrl, pbSecurityId, pcbSecurityId, dwReserved); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IInternetSecurityManager_ProcessUrlAction(self: *const T, pwszUrl: ?[*:0]const u16, dwAction: u32, pPolicy: [*:0]u8, cbPolicy: u32, pContext: ?*u8, cbContext: u32, dwFlags: u32, dwReserved: u32) HRESULT { return @as(*const IInternetSecurityManager.VTable, @ptrCast(self.vtable)).ProcessUrlAction(@as(*const IInternetSecurityManager, @ptrCast(self)), pwszUrl, dwAction, pPolicy, cbPolicy, pContext, cbContext, dwFlags, dwReserved); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IInternetSecurityManager_QueryCustomPolicy(self: *const T, pwszUrl: ?[*:0]const u16, guidKey: ?*const Guid, ppPolicy: [*]?*u8, pcbPolicy: ?*u32, pContext: ?*u8, cbContext: u32, dwReserved: u32) HRESULT { return @as(*const IInternetSecurityManager.VTable, @ptrCast(self.vtable)).QueryCustomPolicy(@as(*const IInternetSecurityManager, @ptrCast(self)), pwszUrl, guidKey, ppPolicy, pcbPolicy, pContext, cbContext, dwReserved); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IInternetSecurityManager_SetZoneMapping(self: *const T, dwZone: u32, lpszPattern: ?[*:0]const u16, dwFlags: u32) HRESULT { return @as(*const IInternetSecurityManager.VTable, @ptrCast(self.vtable)).SetZoneMapping(@as(*const IInternetSecurityManager, @ptrCast(self)), dwZone, lpszPattern, dwFlags); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IInternetSecurityManager_GetZoneMappings(self: *const T, dwZone: u32, ppenumString: ?*?*IEnumString, dwFlags: u32) HRESULT { return @as(*const IInternetSecurityManager.VTable, @ptrCast(self.vtable)).GetZoneMappings(@as(*const IInternetSecurityManager, @ptrCast(self)), dwZone, ppenumString, dwFlags); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IInternetSecurityManagerEx_Value = Guid.initString("f164edf1-cc7c-4f0d-9a94-34222625c393"); pub const IID_IInternetSecurityManagerEx = &IID_IInternetSecurityManagerEx_Value; pub const IInternetSecurityManagerEx = extern struct { pub const VTable = extern struct { base: IInternetSecurityManager.VTable, ProcessUrlActionEx: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IInternetSecurityManagerEx, pwszUrl: ?[*:0]const u16, dwAction: u32, pPolicy: [*:0]u8, cbPolicy: u32, pContext: ?*u8, cbContext: u32, dwFlags: u32, dwReserved: u32, pdwOutFlags: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IInternetSecurityManagerEx, pwszUrl: ?[*:0]const u16, dwAction: u32, pPolicy: [*:0]u8, cbPolicy: u32, pContext: ?*u8, cbContext: u32, dwFlags: u32, dwReserved: u32, pdwOutFlags: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IInternetSecurityManager.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IInternetSecurityManagerEx_ProcessUrlActionEx(self: *const T, pwszUrl: ?[*:0]const u16, dwAction: u32, pPolicy: [*:0]u8, cbPolicy: u32, pContext: ?*u8, cbContext: u32, dwFlags: u32, dwReserved: u32, pdwOutFlags: ?*u32) HRESULT { return @as(*const IInternetSecurityManagerEx.VTable, @ptrCast(self.vtable)).ProcessUrlActionEx(@as(*const IInternetSecurityManagerEx, @ptrCast(self)), pwszUrl, dwAction, pPolicy, cbPolicy, pContext, cbContext, dwFlags, dwReserved, pdwOutFlags); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IInternetSecurityManagerEx2_Value = Guid.initString("f1e50292-a795-4117-8e09-2b560a72ac60"); pub const IID_IInternetSecurityManagerEx2 = &IID_IInternetSecurityManagerEx2_Value; pub const IInternetSecurityManagerEx2 = extern struct { pub const VTable = extern struct { base: IInternetSecurityManagerEx.VTable, MapUrlToZoneEx2: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IInternetSecurityManagerEx2, pUri: ?*IUri, pdwZone: ?*u32, dwFlags: u32, ppwszMappedUrl: ?*?PWSTR, pdwOutFlags: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IInternetSecurityManagerEx2, pUri: ?*IUri, pdwZone: ?*u32, dwFlags: u32, ppwszMappedUrl: ?*?PWSTR, pdwOutFlags: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, ProcessUrlActionEx2: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IInternetSecurityManagerEx2, pUri: ?*IUri, dwAction: u32, pPolicy: [*:0]u8, cbPolicy: u32, pContext: ?*u8, cbContext: u32, dwFlags: u32, dwReserved: usize, pdwOutFlags: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IInternetSecurityManagerEx2, pUri: ?*IUri, dwAction: u32, pPolicy: [*:0]u8, cbPolicy: u32, pContext: ?*u8, cbContext: u32, dwFlags: u32, dwReserved: usize, pdwOutFlags: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetSecurityIdEx2: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IInternetSecurityManagerEx2, pUri: ?*IUri, pbSecurityId: *[512]u8, pcbSecurityId: ?*u32, dwReserved: usize, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IInternetSecurityManagerEx2, pUri: ?*IUri, pbSecurityId: *[512]u8, pcbSecurityId: ?*u32, dwReserved: usize, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, QueryCustomPolicyEx2: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IInternetSecurityManagerEx2, pUri: ?*IUri, guidKey: ?*const Guid, ppPolicy: [*]?*u8, pcbPolicy: ?*u32, pContext: ?*u8, cbContext: u32, dwReserved: usize, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IInternetSecurityManagerEx2, pUri: ?*IUri, guidKey: ?*const Guid, ppPolicy: [*]?*u8, pcbPolicy: ?*u32, pContext: ?*u8, cbContext: u32, dwReserved: usize, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IInternetSecurityManagerEx.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IInternetSecurityManagerEx2_MapUrlToZoneEx2(self: *const T, pUri: ?*IUri, pdwZone: ?*u32, dwFlags: u32, ppwszMappedUrl: ?*?PWSTR, pdwOutFlags: ?*u32) HRESULT { return @as(*const IInternetSecurityManagerEx2.VTable, @ptrCast(self.vtable)).MapUrlToZoneEx2(@as(*const IInternetSecurityManagerEx2, @ptrCast(self)), pUri, pdwZone, dwFlags, ppwszMappedUrl, pdwOutFlags); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IInternetSecurityManagerEx2_ProcessUrlActionEx2(self: *const T, pUri: ?*IUri, dwAction: u32, pPolicy: [*:0]u8, cbPolicy: u32, pContext: ?*u8, cbContext: u32, dwFlags: u32, dwReserved: usize, pdwOutFlags: ?*u32) HRESULT { return @as(*const IInternetSecurityManagerEx2.VTable, @ptrCast(self.vtable)).ProcessUrlActionEx2(@as(*const IInternetSecurityManagerEx2, @ptrCast(self)), pUri, dwAction, pPolicy, cbPolicy, pContext, cbContext, dwFlags, dwReserved, pdwOutFlags); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IInternetSecurityManagerEx2_GetSecurityIdEx2(self: *const T, pUri: ?*IUri, pbSecurityId: *[512]u8, pcbSecurityId: ?*u32, dwReserved: usize) HRESULT { return @as(*const IInternetSecurityManagerEx2.VTable, @ptrCast(self.vtable)).GetSecurityIdEx2(@as(*const IInternetSecurityManagerEx2, @ptrCast(self)), pUri, pbSecurityId, pcbSecurityId, dwReserved); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IInternetSecurityManagerEx2_QueryCustomPolicyEx2(self: *const T, pUri: ?*IUri, guidKey: ?*const Guid, ppPolicy: [*]?*u8, pcbPolicy: ?*u32, pContext: ?*u8, cbContext: u32, dwReserved: usize) HRESULT { return @as(*const IInternetSecurityManagerEx2.VTable, @ptrCast(self.vtable)).QueryCustomPolicyEx2(@as(*const IInternetSecurityManagerEx2, @ptrCast(self)), pUri, guidKey, ppPolicy, pcbPolicy, pContext, cbContext, dwReserved); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IZoneIdentifier_Value = Guid.initString("cd45f185-1b21-48e2-967b-ead743a8914e"); pub const IID_IZoneIdentifier = &IID_IZoneIdentifier_Value; pub const IZoneIdentifier = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, GetId: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IZoneIdentifier, pdwZone: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IZoneIdentifier, pdwZone: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetId: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IZoneIdentifier, dwZone: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IZoneIdentifier, dwZone: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Remove: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IZoneIdentifier, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IZoneIdentifier, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IZoneIdentifier_GetId(self: *const T, pdwZone: ?*u32) HRESULT { return @as(*const IZoneIdentifier.VTable, @ptrCast(self.vtable)).GetId(@as(*const IZoneIdentifier, @ptrCast(self)), pdwZone); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IZoneIdentifier_SetId(self: *const T, dwZone: u32) HRESULT { return @as(*const IZoneIdentifier.VTable, @ptrCast(self.vtable)).SetId(@as(*const IZoneIdentifier, @ptrCast(self)), dwZone); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IZoneIdentifier_Remove(self: *const T) HRESULT { return @as(*const IZoneIdentifier.VTable, @ptrCast(self.vtable)).Remove(@as(*const IZoneIdentifier, @ptrCast(self))); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IZoneIdentifier2_Value = Guid.initString("eb5e760c-09ef-45c0-b510-70830ce31e6a"); pub const IID_IZoneIdentifier2 = &IID_IZoneIdentifier2_Value; pub const IZoneIdentifier2 = extern struct { pub const VTable = extern struct { base: IZoneIdentifier.VTable, GetLastWriterPackageFamilyName: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IZoneIdentifier2, packageFamilyName: ?*?PWSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IZoneIdentifier2, packageFamilyName: ?*?PWSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetLastWriterPackageFamilyName: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IZoneIdentifier2, packageFamilyName: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IZoneIdentifier2, packageFamilyName: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, RemoveLastWriterPackageFamilyName: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IZoneIdentifier2, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IZoneIdentifier2, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetAppZoneId: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IZoneIdentifier2, zone: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IZoneIdentifier2, zone: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetAppZoneId: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IZoneIdentifier2, zone: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IZoneIdentifier2, zone: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, RemoveAppZoneId: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IZoneIdentifier2, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IZoneIdentifier2, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IZoneIdentifier.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IZoneIdentifier2_GetLastWriterPackageFamilyName(self: *const T, packageFamilyName: ?*?PWSTR) HRESULT { return @as(*const IZoneIdentifier2.VTable, @ptrCast(self.vtable)).GetLastWriterPackageFamilyName(@as(*const IZoneIdentifier2, @ptrCast(self)), packageFamilyName); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IZoneIdentifier2_SetLastWriterPackageFamilyName(self: *const T, packageFamilyName: ?[*:0]const u16) HRESULT { return @as(*const IZoneIdentifier2.VTable, @ptrCast(self.vtable)).SetLastWriterPackageFamilyName(@as(*const IZoneIdentifier2, @ptrCast(self)), packageFamilyName); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IZoneIdentifier2_RemoveLastWriterPackageFamilyName(self: *const T) HRESULT { return @as(*const IZoneIdentifier2.VTable, @ptrCast(self.vtable)).RemoveLastWriterPackageFamilyName(@as(*const IZoneIdentifier2, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IZoneIdentifier2_GetAppZoneId(self: *const T, zone: ?*u32) HRESULT { return @as(*const IZoneIdentifier2.VTable, @ptrCast(self.vtable)).GetAppZoneId(@as(*const IZoneIdentifier2, @ptrCast(self)), zone); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IZoneIdentifier2_SetAppZoneId(self: *const T, zone: u32) HRESULT { return @as(*const IZoneIdentifier2.VTable, @ptrCast(self.vtable)).SetAppZoneId(@as(*const IZoneIdentifier2, @ptrCast(self)), zone); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IZoneIdentifier2_RemoveAppZoneId(self: *const T) HRESULT { return @as(*const IZoneIdentifier2.VTable, @ptrCast(self.vtable)).RemoveAppZoneId(@as(*const IZoneIdentifier2, @ptrCast(self))); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IInternetHostSecurityManager_Value = Guid.initString("3af280b6-cb3f-11d0-891e-00c04fb6bfc4"); pub const IID_IInternetHostSecurityManager = &IID_IInternetHostSecurityManager_Value; pub const IInternetHostSecurityManager = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, GetSecurityId: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IInternetHostSecurityManager, pbSecurityId: [*:0]u8, pcbSecurityId: ?*u32, dwReserved: usize, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IInternetHostSecurityManager, pbSecurityId: [*:0]u8, pcbSecurityId: ?*u32, dwReserved: usize, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, ProcessUrlAction: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IInternetHostSecurityManager, dwAction: u32, pPolicy: ?*u8, cbPolicy: u32, pContext: ?[*:0]u8, cbContext: u32, dwFlags: u32, dwReserved: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IInternetHostSecurityManager, dwAction: u32, pPolicy: ?*u8, cbPolicy: u32, pContext: ?[*:0]u8, cbContext: u32, dwFlags: u32, dwReserved: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, QueryCustomPolicy: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IInternetHostSecurityManager, guidKey: ?*const Guid, ppPolicy: ?[*]?*u8, pcbPolicy: ?*u32, pContext: [*:0]u8, cbContext: u32, dwReserved: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IInternetHostSecurityManager, guidKey: ?*const Guid, ppPolicy: ?[*]?*u8, pcbPolicy: ?*u32, pContext: [*:0]u8, cbContext: u32, dwReserved: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IInternetHostSecurityManager_GetSecurityId(self: *const T, pbSecurityId: [*:0]u8, pcbSecurityId: ?*u32, dwReserved: usize) HRESULT { return @as(*const IInternetHostSecurityManager.VTable, @ptrCast(self.vtable)).GetSecurityId(@as(*const IInternetHostSecurityManager, @ptrCast(self)), pbSecurityId, pcbSecurityId, dwReserved); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IInternetHostSecurityManager_ProcessUrlAction(self: *const T, dwAction: u32, pPolicy: ?*u8, cbPolicy: u32, pContext: ?[*:0]u8, cbContext: u32, dwFlags: u32, dwReserved: u32) HRESULT { return @as(*const IInternetHostSecurityManager.VTable, @ptrCast(self.vtable)).ProcessUrlAction(@as(*const IInternetHostSecurityManager, @ptrCast(self)), dwAction, pPolicy, cbPolicy, pContext, cbContext, dwFlags, dwReserved); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IInternetHostSecurityManager_QueryCustomPolicy(self: *const T, guidKey: ?*const Guid, ppPolicy: ?[*]?*u8, pcbPolicy: ?*u32, pContext: [*:0]u8, cbContext: u32, dwReserved: u32) HRESULT { return @as(*const IInternetHostSecurityManager.VTable, @ptrCast(self.vtable)).QueryCustomPolicy(@as(*const IInternetHostSecurityManager, @ptrCast(self)), guidKey, ppPolicy, pcbPolicy, pContext, cbContext, dwReserved); } }; } pub usingnamespace MethodMixin(@This()); }; pub const URLZONE = enum(i32) { INVALID = -1, PREDEFINED_MIN = 0, // LOCAL_MACHINE = 0, this enum value conflicts with PREDEFINED_MIN INTRANET = 1, TRUSTED = 2, INTERNET = 3, UNTRUSTED = 4, PREDEFINED_MAX = 999, USER_MIN = 1000, USER_MAX = 10000, }; pub const URLZONE_INVALID = URLZONE.INVALID; pub const URLZONE_PREDEFINED_MIN = URLZONE.PREDEFINED_MIN; pub const URLZONE_LOCAL_MACHINE = URLZONE.PREDEFINED_MIN; pub const URLZONE_INTRANET = URLZONE.INTRANET; pub const URLZONE_TRUSTED = URLZONE.TRUSTED; pub const URLZONE_INTERNET = URLZONE.INTERNET; pub const URLZONE_UNTRUSTED = URLZONE.UNTRUSTED; pub const URLZONE_PREDEFINED_MAX = URLZONE.PREDEFINED_MAX; pub const URLZONE_USER_MIN = URLZONE.USER_MIN; pub const URLZONE_USER_MAX = URLZONE.USER_MAX; pub const URLTEMPLATE = enum(i32) { CUSTOM = 0, PREDEFINED_MIN = 65536, // LOW = 65536, this enum value conflicts with PREDEFINED_MIN MEDLOW = 66816, MEDIUM = 69632, MEDHIGH = 70912, HIGH = 73728, PREDEFINED_MAX = 131072, }; pub const URLTEMPLATE_CUSTOM = URLTEMPLATE.CUSTOM; pub const URLTEMPLATE_PREDEFINED_MIN = URLTEMPLATE.PREDEFINED_MIN; pub const URLTEMPLATE_LOW = URLTEMPLATE.PREDEFINED_MIN; pub const URLTEMPLATE_MEDLOW = URLTEMPLATE.MEDLOW; pub const URLTEMPLATE_MEDIUM = URLTEMPLATE.MEDIUM; pub const URLTEMPLATE_MEDHIGH = URLTEMPLATE.MEDHIGH; pub const URLTEMPLATE_HIGH = URLTEMPLATE.HIGH; pub const URLTEMPLATE_PREDEFINED_MAX = URLTEMPLATE.PREDEFINED_MAX; pub const INET_ZONE_MANAGER_CONSTANTS = enum(i32) { PATH = 260, DESCRIPTION = 200, }; pub const MAX_ZONE_PATH = INET_ZONE_MANAGER_CONSTANTS.PATH; pub const MAX_ZONE_DESCRIPTION = INET_ZONE_MANAGER_CONSTANTS.DESCRIPTION; pub const ZAFLAGS = enum(i32) { CUSTOM_EDIT = 1, ADD_SITES = 2, REQUIRE_VERIFICATION = 4, INCLUDE_PROXY_OVERRIDE = 8, INCLUDE_INTRANET_SITES = 16, NO_UI = 32, SUPPORTS_VERIFICATION = 64, UNC_AS_INTRANET = 128, DETECT_INTRANET = 256, USE_LOCKED_ZONES = 65536, VERIFY_TEMPLATE_SETTINGS = 131072, NO_CACHE = 262144, }; pub const ZAFLAGS_CUSTOM_EDIT = ZAFLAGS.CUSTOM_EDIT; pub const ZAFLAGS_ADD_SITES = ZAFLAGS.ADD_SITES; pub const ZAFLAGS_REQUIRE_VERIFICATION = ZAFLAGS.REQUIRE_VERIFICATION; pub const ZAFLAGS_INCLUDE_PROXY_OVERRIDE = ZAFLAGS.INCLUDE_PROXY_OVERRIDE; pub const ZAFLAGS_INCLUDE_INTRANET_SITES = ZAFLAGS.INCLUDE_INTRANET_SITES; pub const ZAFLAGS_NO_UI = ZAFLAGS.NO_UI; pub const ZAFLAGS_SUPPORTS_VERIFICATION = ZAFLAGS.SUPPORTS_VERIFICATION; pub const ZAFLAGS_UNC_AS_INTRANET = ZAFLAGS.UNC_AS_INTRANET; pub const ZAFLAGS_DETECT_INTRANET = ZAFLAGS.DETECT_INTRANET; pub const ZAFLAGS_USE_LOCKED_ZONES = ZAFLAGS.USE_LOCKED_ZONES; pub const ZAFLAGS_VERIFY_TEMPLATE_SETTINGS = ZAFLAGS.VERIFY_TEMPLATE_SETTINGS; pub const ZAFLAGS_NO_CACHE = ZAFLAGS.NO_CACHE; pub const ZONEATTRIBUTES = extern struct { cbSize: u32, szDisplayName: [260]u16, szDescription: [200]u16, szIconPath: [260]u16, dwTemplateMinLevel: u32, dwTemplateRecommended: u32, dwTemplateCurrentLevel: u32, dwFlags: u32, }; pub const URLZONEREG = enum(i32) { DEFAULT = 0, HKLM = 1, HKCU = 2, }; pub const URLZONEREG_DEFAULT = URLZONEREG.DEFAULT; pub const URLZONEREG_HKLM = URLZONEREG.HKLM; pub const URLZONEREG_HKCU = URLZONEREG.HKCU; const IID_IInternetZoneManager_Value = Guid.initString("79eac9ef-baf9-11ce-8c82-00aa004ba90b"); pub const IID_IInternetZoneManager = &IID_IInternetZoneManager_Value; pub const IInternetZoneManager = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, GetZoneAttributes: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IInternetZoneManager, dwZone: u32, pZoneAttributes: ?*ZONEATTRIBUTES, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IInternetZoneManager, dwZone: u32, pZoneAttributes: ?*ZONEATTRIBUTES, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetZoneAttributes: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IInternetZoneManager, dwZone: u32, pZoneAttributes: ?*ZONEATTRIBUTES, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IInternetZoneManager, dwZone: u32, pZoneAttributes: ?*ZONEATTRIBUTES, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetZoneCustomPolicy: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IInternetZoneManager, dwZone: u32, guidKey: ?*const Guid, ppPolicy: ?*?*u8, pcbPolicy: ?*u32, urlZoneReg: URLZONEREG, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IInternetZoneManager, dwZone: u32, guidKey: ?*const Guid, ppPolicy: ?*?*u8, pcbPolicy: ?*u32, urlZoneReg: URLZONEREG, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetZoneCustomPolicy: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IInternetZoneManager, dwZone: u32, guidKey: ?*const Guid, pPolicy: [*:0]u8, cbPolicy: u32, urlZoneReg: URLZONEREG, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IInternetZoneManager, dwZone: u32, guidKey: ?*const Guid, pPolicy: [*:0]u8, cbPolicy: u32, urlZoneReg: URLZONEREG, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetZoneActionPolicy: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IInternetZoneManager, dwZone: u32, dwAction: u32, pPolicy: [*:0]u8, cbPolicy: u32, urlZoneReg: URLZONEREG, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IInternetZoneManager, dwZone: u32, dwAction: u32, pPolicy: [*:0]u8, cbPolicy: u32, urlZoneReg: URLZONEREG, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetZoneActionPolicy: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IInternetZoneManager, dwZone: u32, dwAction: u32, pPolicy: [*:0]u8, cbPolicy: u32, urlZoneReg: URLZONEREG, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IInternetZoneManager, dwZone: u32, dwAction: u32, pPolicy: [*:0]u8, cbPolicy: u32, urlZoneReg: URLZONEREG, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, PromptAction: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IInternetZoneManager, dwAction: u32, hwndParent: ?HWND, pwszUrl: ?[*:0]const u16, pwszText: ?[*:0]const u16, dwPromptFlags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IInternetZoneManager, dwAction: u32, hwndParent: ?HWND, pwszUrl: ?[*:0]const u16, pwszText: ?[*:0]const u16, dwPromptFlags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, LogAction: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IInternetZoneManager, dwAction: u32, pwszUrl: ?[*:0]const u16, pwszText: ?[*:0]const u16, dwLogFlags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IInternetZoneManager, dwAction: u32, pwszUrl: ?[*:0]const u16, pwszText: ?[*:0]const u16, dwLogFlags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, CreateZoneEnumerator: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IInternetZoneManager, pdwEnum: ?*u32, pdwCount: ?*u32, dwFlags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IInternetZoneManager, pdwEnum: ?*u32, pdwCount: ?*u32, dwFlags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetZoneAt: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IInternetZoneManager, dwEnum: u32, dwIndex: u32, pdwZone: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IInternetZoneManager, dwEnum: u32, dwIndex: u32, pdwZone: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, DestroyZoneEnumerator: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IInternetZoneManager, dwEnum: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IInternetZoneManager, dwEnum: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, CopyTemplatePoliciesToZone: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IInternetZoneManager, dwTemplate: u32, dwZone: u32, dwReserved: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IInternetZoneManager, dwTemplate: u32, dwZone: u32, dwReserved: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IInternetZoneManager_GetZoneAttributes(self: *const T, dwZone: u32, pZoneAttributes: ?*ZONEATTRIBUTES) HRESULT { return @as(*const IInternetZoneManager.VTable, @ptrCast(self.vtable)).GetZoneAttributes(@as(*const IInternetZoneManager, @ptrCast(self)), dwZone, pZoneAttributes); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IInternetZoneManager_SetZoneAttributes(self: *const T, dwZone: u32, pZoneAttributes: ?*ZONEATTRIBUTES) HRESULT { return @as(*const IInternetZoneManager.VTable, @ptrCast(self.vtable)).SetZoneAttributes(@as(*const IInternetZoneManager, @ptrCast(self)), dwZone, pZoneAttributes); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IInternetZoneManager_GetZoneCustomPolicy(self: *const T, dwZone: u32, guidKey: ?*const Guid, ppPolicy: ?*?*u8, pcbPolicy: ?*u32, urlZoneReg: URLZONEREG) HRESULT { return @as(*const IInternetZoneManager.VTable, @ptrCast(self.vtable)).GetZoneCustomPolicy(@as(*const IInternetZoneManager, @ptrCast(self)), dwZone, guidKey, ppPolicy, pcbPolicy, urlZoneReg); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IInternetZoneManager_SetZoneCustomPolicy(self: *const T, dwZone: u32, guidKey: ?*const Guid, pPolicy: [*:0]u8, cbPolicy: u32, urlZoneReg: URLZONEREG) HRESULT { return @as(*const IInternetZoneManager.VTable, @ptrCast(self.vtable)).SetZoneCustomPolicy(@as(*const IInternetZoneManager, @ptrCast(self)), dwZone, guidKey, pPolicy, cbPolicy, urlZoneReg); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IInternetZoneManager_GetZoneActionPolicy(self: *const T, dwZone: u32, dwAction: u32, pPolicy: [*:0]u8, cbPolicy: u32, urlZoneReg: URLZONEREG) HRESULT { return @as(*const IInternetZoneManager.VTable, @ptrCast(self.vtable)).GetZoneActionPolicy(@as(*const IInternetZoneManager, @ptrCast(self)), dwZone, dwAction, pPolicy, cbPolicy, urlZoneReg); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IInternetZoneManager_SetZoneActionPolicy(self: *const T, dwZone: u32, dwAction: u32, pPolicy: [*:0]u8, cbPolicy: u32, urlZoneReg: URLZONEREG) HRESULT { return @as(*const IInternetZoneManager.VTable, @ptrCast(self.vtable)).SetZoneActionPolicy(@as(*const IInternetZoneManager, @ptrCast(self)), dwZone, dwAction, pPolicy, cbPolicy, urlZoneReg); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IInternetZoneManager_PromptAction(self: *const T, dwAction: u32, hwndParent: ?HWND, pwszUrl: ?[*:0]const u16, pwszText: ?[*:0]const u16, dwPromptFlags: u32) HRESULT { return @as(*const IInternetZoneManager.VTable, @ptrCast(self.vtable)).PromptAction(@as(*const IInternetZoneManager, @ptrCast(self)), dwAction, hwndParent, pwszUrl, pwszText, dwPromptFlags); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IInternetZoneManager_LogAction(self: *const T, dwAction: u32, pwszUrl: ?[*:0]const u16, pwszText: ?[*:0]const u16, dwLogFlags: u32) HRESULT { return @as(*const IInternetZoneManager.VTable, @ptrCast(self.vtable)).LogAction(@as(*const IInternetZoneManager, @ptrCast(self)), dwAction, pwszUrl, pwszText, dwLogFlags); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IInternetZoneManager_CreateZoneEnumerator(self: *const T, pdwEnum: ?*u32, pdwCount: ?*u32, dwFlags: u32) HRESULT { return @as(*const IInternetZoneManager.VTable, @ptrCast(self.vtable)).CreateZoneEnumerator(@as(*const IInternetZoneManager, @ptrCast(self)), pdwEnum, pdwCount, dwFlags); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IInternetZoneManager_GetZoneAt(self: *const T, dwEnum: u32, dwIndex: u32, pdwZone: ?*u32) HRESULT { return @as(*const IInternetZoneManager.VTable, @ptrCast(self.vtable)).GetZoneAt(@as(*const IInternetZoneManager, @ptrCast(self)), dwEnum, dwIndex, pdwZone); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IInternetZoneManager_DestroyZoneEnumerator(self: *const T, dwEnum: u32) HRESULT { return @as(*const IInternetZoneManager.VTable, @ptrCast(self.vtable)).DestroyZoneEnumerator(@as(*const IInternetZoneManager, @ptrCast(self)), dwEnum); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IInternetZoneManager_CopyTemplatePoliciesToZone(self: *const T, dwTemplate: u32, dwZone: u32, dwReserved: u32) HRESULT { return @as(*const IInternetZoneManager.VTable, @ptrCast(self.vtable)).CopyTemplatePoliciesToZone(@as(*const IInternetZoneManager, @ptrCast(self)), dwTemplate, dwZone, dwReserved); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IInternetZoneManagerEx_Value = Guid.initString("a4c23339-8e06-431e-9bf4-7e711c085648"); pub const IID_IInternetZoneManagerEx = &IID_IInternetZoneManagerEx_Value; pub const IInternetZoneManagerEx = extern struct { pub const VTable = extern struct { base: IInternetZoneManager.VTable, GetZoneActionPolicyEx: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IInternetZoneManagerEx, dwZone: u32, dwAction: u32, pPolicy: [*:0]u8, cbPolicy: u32, urlZoneReg: URLZONEREG, dwFlags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IInternetZoneManagerEx, dwZone: u32, dwAction: u32, pPolicy: [*:0]u8, cbPolicy: u32, urlZoneReg: URLZONEREG, dwFlags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetZoneActionPolicyEx: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IInternetZoneManagerEx, dwZone: u32, dwAction: u32, pPolicy: [*:0]u8, cbPolicy: u32, urlZoneReg: URLZONEREG, dwFlags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IInternetZoneManagerEx, dwZone: u32, dwAction: u32, pPolicy: [*:0]u8, cbPolicy: u32, urlZoneReg: URLZONEREG, dwFlags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IInternetZoneManager.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IInternetZoneManagerEx_GetZoneActionPolicyEx(self: *const T, dwZone: u32, dwAction: u32, pPolicy: [*:0]u8, cbPolicy: u32, urlZoneReg: URLZONEREG, dwFlags: u32) HRESULT { return @as(*const IInternetZoneManagerEx.VTable, @ptrCast(self.vtable)).GetZoneActionPolicyEx(@as(*const IInternetZoneManagerEx, @ptrCast(self)), dwZone, dwAction, pPolicy, cbPolicy, urlZoneReg, dwFlags); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IInternetZoneManagerEx_SetZoneActionPolicyEx(self: *const T, dwZone: u32, dwAction: u32, pPolicy: [*:0]u8, cbPolicy: u32, urlZoneReg: URLZONEREG, dwFlags: u32) HRESULT { return @as(*const IInternetZoneManagerEx.VTable, @ptrCast(self.vtable)).SetZoneActionPolicyEx(@as(*const IInternetZoneManagerEx, @ptrCast(self)), dwZone, dwAction, pPolicy, cbPolicy, urlZoneReg, dwFlags); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IInternetZoneManagerEx2_Value = Guid.initString("edc17559-dd5d-4846-8eef-8becba5a4abf"); pub const IID_IInternetZoneManagerEx2 = &IID_IInternetZoneManagerEx2_Value; pub const IInternetZoneManagerEx2 = extern struct { pub const VTable = extern struct { base: IInternetZoneManagerEx.VTable, GetZoneAttributesEx: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IInternetZoneManagerEx2, dwZone: u32, pZoneAttributes: ?*ZONEATTRIBUTES, dwFlags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IInternetZoneManagerEx2, dwZone: u32, pZoneAttributes: ?*ZONEATTRIBUTES, dwFlags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetZoneSecurityState: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IInternetZoneManagerEx2, dwZoneIndex: u32, fRespectPolicy: BOOL, pdwState: ?*u32, pfPolicyEncountered: ?*BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IInternetZoneManagerEx2, dwZoneIndex: u32, fRespectPolicy: BOOL, pdwState: ?*u32, pfPolicyEncountered: ?*BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetIESecurityState: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IInternetZoneManagerEx2, fRespectPolicy: BOOL, pdwState: ?*u32, pfPolicyEncountered: ?*BOOL, fNoCache: BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IInternetZoneManagerEx2, fRespectPolicy: BOOL, pdwState: ?*u32, pfPolicyEncountered: ?*BOOL, fNoCache: BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, FixUnsecureSettings: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IInternetZoneManagerEx2, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IInternetZoneManagerEx2, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IInternetZoneManagerEx.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IInternetZoneManagerEx2_GetZoneAttributesEx(self: *const T, dwZone: u32, pZoneAttributes: ?*ZONEATTRIBUTES, dwFlags: u32) HRESULT { return @as(*const IInternetZoneManagerEx2.VTable, @ptrCast(self.vtable)).GetZoneAttributesEx(@as(*const IInternetZoneManagerEx2, @ptrCast(self)), dwZone, pZoneAttributes, dwFlags); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IInternetZoneManagerEx2_GetZoneSecurityState(self: *const T, dwZoneIndex: u32, fRespectPolicy: BOOL, pdwState: ?*u32, pfPolicyEncountered: ?*BOOL) HRESULT { return @as(*const IInternetZoneManagerEx2.VTable, @ptrCast(self.vtable)).GetZoneSecurityState(@as(*const IInternetZoneManagerEx2, @ptrCast(self)), dwZoneIndex, fRespectPolicy, pdwState, pfPolicyEncountered); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IInternetZoneManagerEx2_GetIESecurityState(self: *const T, fRespectPolicy: BOOL, pdwState: ?*u32, pfPolicyEncountered: ?*BOOL, fNoCache: BOOL) HRESULT { return @as(*const IInternetZoneManagerEx2.VTable, @ptrCast(self.vtable)).GetIESecurityState(@as(*const IInternetZoneManagerEx2, @ptrCast(self)), fRespectPolicy, pdwState, pfPolicyEncountered, fNoCache); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IInternetZoneManagerEx2_FixUnsecureSettings(self: *const T) HRESULT { return @as(*const IInternetZoneManagerEx2.VTable, @ptrCast(self.vtable)).FixUnsecureSettings(@as(*const IInternetZoneManagerEx2, @ptrCast(self))); } }; } pub usingnamespace MethodMixin(@This()); }; pub const CODEBASEHOLD = extern struct { cbSize: u32, szDistUnit: ?PWSTR, szCodeBase: ?PWSTR, dwVersionMS: u32, dwVersionLS: u32, dwStyle: u32, }; pub const SOFTDISTINFO = extern struct { cbSize: u32, dwFlags: u32, dwAdState: u32, szTitle: ?PWSTR, szAbstract: ?PWSTR, szHREF: ?PWSTR, dwInstalledVersionMS: u32, dwInstalledVersionLS: u32, dwUpdateVersionMS: u32, dwUpdateVersionLS: u32, dwAdvertisedVersionMS: u32, dwAdvertisedVersionLS: u32, dwReserved: u32, }; const IID_ISoftDistExt_Value = Guid.initString("b15b8dc1-c7e1-11d0-8680-00aa00bdcb71"); pub const IID_ISoftDistExt = &IID_ISoftDistExt_Value; pub const ISoftDistExt = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, ProcessSoftDist: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ISoftDistExt, szCDFURL: ?[*:0]const u16, pSoftDistElement: ?*IXMLElement, lpsdi: ?*SOFTDISTINFO, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ISoftDistExt, szCDFURL: ?[*:0]const u16, pSoftDistElement: ?*IXMLElement, lpsdi: ?*SOFTDISTINFO, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetFirstCodeBase: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ISoftDistExt, szCodeBase: ?*?PWSTR, dwMaxSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ISoftDistExt, szCodeBase: ?*?PWSTR, dwMaxSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetNextCodeBase: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ISoftDistExt, szCodeBase: ?*?PWSTR, dwMaxSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ISoftDistExt, szCodeBase: ?*?PWSTR, dwMaxSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, AsyncInstallDistributionUnit: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ISoftDistExt, pbc: ?*IBindCtx, pvReserved: ?*anyopaque, flags: u32, lpcbh: ?*CODEBASEHOLD, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ISoftDistExt, pbc: ?*IBindCtx, pvReserved: ?*anyopaque, flags: u32, lpcbh: ?*CODEBASEHOLD, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISoftDistExt_ProcessSoftDist(self: *const T, szCDFURL: ?[*:0]const u16, pSoftDistElement: ?*IXMLElement, lpsdi: ?*SOFTDISTINFO) HRESULT { return @as(*const ISoftDistExt.VTable, @ptrCast(self.vtable)).ProcessSoftDist(@as(*const ISoftDistExt, @ptrCast(self)), szCDFURL, pSoftDistElement, lpsdi); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISoftDistExt_GetFirstCodeBase(self: *const T, szCodeBase: ?*?PWSTR, dwMaxSize: ?*u32) HRESULT { return @as(*const ISoftDistExt.VTable, @ptrCast(self.vtable)).GetFirstCodeBase(@as(*const ISoftDistExt, @ptrCast(self)), szCodeBase, dwMaxSize); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISoftDistExt_GetNextCodeBase(self: *const T, szCodeBase: ?*?PWSTR, dwMaxSize: ?*u32) HRESULT { return @as(*const ISoftDistExt.VTable, @ptrCast(self.vtable)).GetNextCodeBase(@as(*const ISoftDistExt, @ptrCast(self)), szCodeBase, dwMaxSize); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISoftDistExt_AsyncInstallDistributionUnit(self: *const T, pbc: ?*IBindCtx, pvReserved: ?*anyopaque, flags: u32, lpcbh: ?*CODEBASEHOLD) HRESULT { return @as(*const ISoftDistExt.VTable, @ptrCast(self.vtable)).AsyncInstallDistributionUnit(@as(*const ISoftDistExt, @ptrCast(self)), pbc, pvReserved, flags, lpcbh); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_ICatalogFileInfo_Value = Guid.initString("711c7600-6b48-11d1-b403-00aa00b92af1"); pub const IID_ICatalogFileInfo = &IID_ICatalogFileInfo_Value; pub const ICatalogFileInfo = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, GetCatalogFile: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ICatalogFileInfo, ppszCatalogFile: ?*?PSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ICatalogFileInfo, ppszCatalogFile: ?*?PSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetJavaTrust: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ICatalogFileInfo, ppJavaTrust: ?*?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ICatalogFileInfo, ppJavaTrust: ?*?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ICatalogFileInfo_GetCatalogFile(self: *const T, ppszCatalogFile: ?*?PSTR) HRESULT { return @as(*const ICatalogFileInfo.VTable, @ptrCast(self.vtable)).GetCatalogFile(@as(*const ICatalogFileInfo, @ptrCast(self)), ppszCatalogFile); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ICatalogFileInfo_GetJavaTrust(self: *const T, ppJavaTrust: ?*?*anyopaque) HRESULT { return @as(*const ICatalogFileInfo.VTable, @ptrCast(self.vtable)).GetJavaTrust(@as(*const ICatalogFileInfo, @ptrCast(self)), ppJavaTrust); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IDataFilter_Value = Guid.initString("69d14c80-c18e-11d0-a9ce-006097942311"); pub const IID_IDataFilter = &IID_IDataFilter_Value; pub const IDataFilter = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, DoEncode: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDataFilter, dwFlags: u32, lInBufferSize: i32, pbInBuffer: [*:0]u8, lOutBufferSize: i32, pbOutBuffer: [*:0]u8, lInBytesAvailable: i32, plInBytesRead: ?*i32, plOutBytesWritten: ?*i32, dwReserved: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDataFilter, dwFlags: u32, lInBufferSize: i32, pbInBuffer: [*:0]u8, lOutBufferSize: i32, pbOutBuffer: [*:0]u8, lInBytesAvailable: i32, plInBytesRead: ?*i32, plOutBytesWritten: ?*i32, dwReserved: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, DoDecode: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDataFilter, dwFlags: u32, lInBufferSize: i32, pbInBuffer: [*:0]u8, lOutBufferSize: i32, pbOutBuffer: [*:0]u8, lInBytesAvailable: i32, plInBytesRead: ?*i32, plOutBytesWritten: ?*i32, dwReserved: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDataFilter, dwFlags: u32, lInBufferSize: i32, pbInBuffer: [*:0]u8, lOutBufferSize: i32, pbOutBuffer: [*:0]u8, lInBytesAvailable: i32, plInBytesRead: ?*i32, plOutBytesWritten: ?*i32, dwReserved: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetEncodingLevel: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDataFilter, dwEncLevel: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDataFilter, dwEncLevel: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDataFilter_DoEncode(self: *const T, dwFlags: u32, lInBufferSize: i32, pbInBuffer: [*:0]u8, lOutBufferSize: i32, pbOutBuffer: [*:0]u8, lInBytesAvailable: i32, plInBytesRead: ?*i32, plOutBytesWritten: ?*i32, dwReserved: u32) HRESULT { return @as(*const IDataFilter.VTable, @ptrCast(self.vtable)).DoEncode(@as(*const IDataFilter, @ptrCast(self)), dwFlags, lInBufferSize, pbInBuffer, lOutBufferSize, pbOutBuffer, lInBytesAvailable, plInBytesRead, plOutBytesWritten, dwReserved); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDataFilter_DoDecode(self: *const T, dwFlags: u32, lInBufferSize: i32, pbInBuffer: [*:0]u8, lOutBufferSize: i32, pbOutBuffer: [*:0]u8, lInBytesAvailable: i32, plInBytesRead: ?*i32, plOutBytesWritten: ?*i32, dwReserved: u32) HRESULT { return @as(*const IDataFilter.VTable, @ptrCast(self.vtable)).DoDecode(@as(*const IDataFilter, @ptrCast(self)), dwFlags, lInBufferSize, pbInBuffer, lOutBufferSize, pbOutBuffer, lInBytesAvailable, plInBytesRead, plOutBytesWritten, dwReserved); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDataFilter_SetEncodingLevel(self: *const T, dwEncLevel: u32) HRESULT { return @as(*const IDataFilter.VTable, @ptrCast(self.vtable)).SetEncodingLevel(@as(*const IDataFilter, @ptrCast(self)), dwEncLevel); } }; } pub usingnamespace MethodMixin(@This()); }; pub const PROTOCOLFILTERDATA = extern struct { cbSize: u32, pProtocolSink: ?*IInternetProtocolSink, pProtocol: ?*IInternetProtocol, pUnk: ?*IUnknown, dwFilterFlags: u32, }; pub const DATAINFO = extern struct { ulTotalSize: u32, ulavrPacketSize: u32, ulConnectSpeed: u32, ulProcessorSpeed: u32, }; const IID_IEncodingFilterFactory_Value = Guid.initString("70bdde00-c18e-11d0-a9ce-006097942311"); pub const IID_IEncodingFilterFactory = &IID_IEncodingFilterFactory_Value; pub const IEncodingFilterFactory = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, FindBestFilter: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IEncodingFilterFactory, pwzCodeIn: ?[*:0]const u16, pwzCodeOut: ?[*:0]const u16, info: DATAINFO, ppDF: ?*?*IDataFilter, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IEncodingFilterFactory, pwzCodeIn: ?[*:0]const u16, pwzCodeOut: ?[*:0]const u16, info: DATAINFO, ppDF: ?*?*IDataFilter, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetDefaultFilter: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IEncodingFilterFactory, pwzCodeIn: ?[*:0]const u16, pwzCodeOut: ?[*:0]const u16, ppDF: ?*?*IDataFilter, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IEncodingFilterFactory, pwzCodeIn: ?[*:0]const u16, pwzCodeOut: ?[*:0]const u16, ppDF: ?*?*IDataFilter, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IEncodingFilterFactory_FindBestFilter(self: *const T, pwzCodeIn: ?[*:0]const u16, pwzCodeOut: ?[*:0]const u16, info: DATAINFO, ppDF: ?*?*IDataFilter) HRESULT { return @as(*const IEncodingFilterFactory.VTable, @ptrCast(self.vtable)).FindBestFilter(@as(*const IEncodingFilterFactory, @ptrCast(self)), pwzCodeIn, pwzCodeOut, info, ppDF); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IEncodingFilterFactory_GetDefaultFilter(self: *const T, pwzCodeIn: ?[*:0]const u16, pwzCodeOut: ?[*:0]const u16, ppDF: ?*?*IDataFilter) HRESULT { return @as(*const IEncodingFilterFactory.VTable, @ptrCast(self.vtable)).GetDefaultFilter(@as(*const IEncodingFilterFactory, @ptrCast(self)), pwzCodeIn, pwzCodeOut, ppDF); } }; } pub usingnamespace MethodMixin(@This()); }; pub const HIT_LOGGING_INFO = extern struct { dwStructSize: u32, lpszLoggedUrlName: ?PSTR, StartTime: SYSTEMTIME, EndTime: SYSTEMTIME, lpszExtendedInfo: ?PSTR, }; pub const CONFIRMSAFETY = extern struct { clsid: Guid, pUnk: ?*IUnknown, dwFlags: u32, }; const IID_IWrappedProtocol_Value = Guid.initString("53c84785-8425-4dc5-971b-e58d9c19f9b6"); pub const IID_IWrappedProtocol = &IID_IWrappedProtocol_Value; pub const IWrappedProtocol = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, GetWrapperCode: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IWrappedProtocol, pnCode: ?*i32, dwReserved: usize, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IWrappedProtocol, pnCode: ?*i32, dwReserved: usize, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWrappedProtocol_GetWrapperCode(self: *const T, pnCode: ?*i32, dwReserved: usize) HRESULT { return @as(*const IWrappedProtocol.VTable, @ptrCast(self.vtable)).GetWrapperCode(@as(*const IWrappedProtocol, @ptrCast(self)), pnCode, dwReserved); } }; } pub usingnamespace MethodMixin(@This()); }; pub const BINDHANDLETYPES = enum(i32) { APPCACHE = 0, DEPENDENCY = 1, COUNT = 2, }; pub const BINDHANDLETYPES_APPCACHE = BINDHANDLETYPES.APPCACHE; pub const BINDHANDLETYPES_DEPENDENCY = BINDHANDLETYPES.DEPENDENCY; pub const BINDHANDLETYPES_COUNT = BINDHANDLETYPES.COUNT; const IID_IGetBindHandle_Value = Guid.initString("af0ff408-129d-4b20-91f0-02bd23d88352"); pub const IID_IGetBindHandle = &IID_IGetBindHandle_Value; pub const IGetBindHandle = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, GetBindHandle: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IGetBindHandle, enumRequestedHandle: BINDHANDLETYPES, pRetHandle: ?*?HANDLE, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IGetBindHandle, enumRequestedHandle: BINDHANDLETYPES, pRetHandle: ?*?HANDLE, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IGetBindHandle_GetBindHandle(self: *const T, enumRequestedHandle: BINDHANDLETYPES, pRetHandle: ?*?HANDLE) HRESULT { return @as(*const IGetBindHandle.VTable, @ptrCast(self.vtable)).GetBindHandle(@as(*const IGetBindHandle, @ptrCast(self)), enumRequestedHandle, pRetHandle); } }; } pub usingnamespace MethodMixin(@This()); }; pub const PROTOCOL_ARGUMENT = extern struct { szMethod: ?[*:0]const u16, szTargetUrl: ?[*:0]const u16, }; const IID_IBindCallbackRedirect_Value = Guid.initString("11c81bc2-121e-4ed5-b9c4-b430bd54f2c0"); pub const IID_IBindCallbackRedirect = &IID_IBindCallbackRedirect_Value; pub const IBindCallbackRedirect = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, Redirect: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IBindCallbackRedirect, lpcUrl: ?[*:0]const u16, vbCancel: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IBindCallbackRedirect, lpcUrl: ?[*:0]const u16, vbCancel: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IBindCallbackRedirect_Redirect(self: *const T, lpcUrl: ?[*:0]const u16, vbCancel: ?*i16) HRESULT { return @as(*const IBindCallbackRedirect.VTable, @ptrCast(self.vtable)).Redirect(@as(*const IBindCallbackRedirect, @ptrCast(self)), lpcUrl, vbCancel); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IBindHttpSecurity_Value = Guid.initString("a9eda967-f50e-4a33-b358-206f6ef3086d"); pub const IID_IBindHttpSecurity = &IID_IBindHttpSecurity_Value; pub const IBindHttpSecurity = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, GetIgnoreCertMask: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IBindHttpSecurity, pdwIgnoreCertMask: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IBindHttpSecurity, pdwIgnoreCertMask: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IBindHttpSecurity_GetIgnoreCertMask(self: *const T, pdwIgnoreCertMask: ?*u32) HRESULT { return @as(*const IBindHttpSecurity.VTable, @ptrCast(self.vtable)).GetIgnoreCertMask(@as(*const IBindHttpSecurity, @ptrCast(self)), pdwIgnoreCertMask); } }; } pub usingnamespace MethodMixin(@This()); }; //-------------------------------------------------------------------------------- // Section: Functions (73) //-------------------------------------------------------------------------------- pub extern "urlmon" fn CreateURLMoniker( pMkCtx: ?*IMoniker, szURL: ?[*:0]const u16, ppmk: ?*?*IMoniker, ) callconv(@import("std").os.windows.WINAPI) HRESULT; pub extern "urlmon" fn CreateURLMonikerEx( pMkCtx: ?*IMoniker, szURL: ?[*:0]const u16, ppmk: ?*?*IMoniker, dwFlags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT; pub extern "urlmon" fn GetClassURL( szURL: ?[*:0]const u16, pClsID: ?*Guid, ) callconv(@import("std").os.windows.WINAPI) HRESULT; // TODO: this type is limited to platform 'windows5.0' pub extern "urlmon" fn CreateAsyncBindCtx( reserved: u32, pBSCb: ?*IBindStatusCallback, pEFetc: ?*IEnumFORMATETC, ppBC: ?*?*IBindCtx, ) callconv(@import("std").os.windows.WINAPI) HRESULT; pub extern "urlmon" fn CreateURLMonikerEx2( pMkCtx: ?*IMoniker, pUri: ?*IUri, ppmk: ?*?*IMoniker, dwFlags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT; pub extern "urlmon" fn CreateAsyncBindCtxEx( pbc: ?*IBindCtx, dwOptions: u32, pBSCb: ?*IBindStatusCallback, pEnum: ?*IEnumFORMATETC, ppBC: ?*?*IBindCtx, reserved: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT; pub extern "urlmon" fn MkParseDisplayNameEx( pbc: ?*IBindCtx, szDisplayName: ?[*:0]const u16, pchEaten: ?*u32, ppmk: ?*?*IMoniker, ) callconv(@import("std").os.windows.WINAPI) HRESULT; pub extern "urlmon" fn RegisterBindStatusCallback( pBC: ?*IBindCtx, pBSCb: ?*IBindStatusCallback, ppBSCBPrev: ?*?*IBindStatusCallback, dwReserved: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT; pub extern "urlmon" fn RevokeBindStatusCallback( pBC: ?*IBindCtx, pBSCb: ?*IBindStatusCallback, ) callconv(@import("std").os.windows.WINAPI) HRESULT; pub extern "urlmon" fn GetClassFileOrMime( pBC: ?*IBindCtx, szFilename: ?[*:0]const u16, // TODO: what to do with BytesParamIndex 3? pBuffer: ?*anyopaque, cbSize: u32, szMime: ?[*:0]const u16, dwReserved: u32, pclsid: ?*Guid, ) callconv(@import("std").os.windows.WINAPI) HRESULT; pub extern "urlmon" fn IsValidURL( pBC: ?*IBindCtx, szURL: ?[*:0]const u16, dwReserved: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT; pub extern "urlmon" fn CoGetClassObjectFromURL( rCLASSID: ?*const Guid, szCODE: ?[*:0]const u16, dwFileVersionMS: u32, dwFileVersionLS: u32, szTYPE: ?[*:0]const u16, pBindCtx: ?*IBindCtx, dwClsContext: CLSCTX, pvReserved: ?*anyopaque, riid: ?*const Guid, ppv: ?*?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) HRESULT; pub extern "urlmon" fn IEInstallScope( pdwScope: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT; pub extern "urlmon" fn FaultInIEFeature( hWnd: ?HWND, pClassSpec: ?*uCLSSPEC, pQuery: ?*QUERYCONTEXT, dwFlags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT; pub extern "urlmon" fn GetComponentIDFromCLSSPEC( pClassspec: ?*uCLSSPEC, ppszComponentID: ?*?PSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT; pub extern "urlmon" fn IsAsyncMoniker( pmk: ?*IMoniker, ) callconv(@import("std").os.windows.WINAPI) HRESULT; pub extern "urlmon" fn RegisterMediaTypes( ctypes: u32, rgszTypes: [*]const ?[*:0]const u8, rgcfTypes: [*:0]u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT; pub extern "urlmon" fn FindMediaType( rgszTypes: ?[*:0]const u8, rgcfTypes: ?*u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT; // TODO: this type is limited to platform 'windows5.0' pub extern "urlmon" fn CreateFormatEnumerator( cfmtetc: u32, rgfmtetc: [*]FORMATETC, ppenumfmtetc: ?*?*IEnumFORMATETC, ) callconv(@import("std").os.windows.WINAPI) HRESULT; pub extern "urlmon" fn RegisterFormatEnumerator( pBC: ?*IBindCtx, pEFetc: ?*IEnumFORMATETC, reserved: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT; pub extern "urlmon" fn RevokeFormatEnumerator( pBC: ?*IBindCtx, pEFetc: ?*IEnumFORMATETC, ) callconv(@import("std").os.windows.WINAPI) HRESULT; pub extern "urlmon" fn RegisterMediaTypeClass( pBC: ?*IBindCtx, ctypes: u32, rgszTypes: [*]const ?[*:0]const u8, rgclsID: [*]Guid, reserved: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT; pub extern "urlmon" fn FindMediaTypeClass( pBC: ?*IBindCtx, szType: ?[*:0]const u8, pclsID: ?*Guid, reserved: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT; pub extern "urlmon" fn UrlMkSetSessionOption( dwOption: u32, // TODO: what to do with BytesParamIndex 2? pBuffer: ?*anyopaque, dwBufferLength: u32, dwReserved: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT; pub extern "urlmon" fn UrlMkGetSessionOption( dwOption: u32, // TODO: what to do with BytesParamIndex 2? pBuffer: ?*anyopaque, dwBufferLength: u32, pdwBufferLengthOut: ?*u32, dwReserved: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT; pub extern "urlmon" fn FindMimeFromData( pBC: ?*IBindCtx, pwzUrl: ?[*:0]const u16, // TODO: what to do with BytesParamIndex 3? pBuffer: ?*anyopaque, cbSize: u32, pwzMimeProposed: ?[*:0]const u16, dwMimeFlags: u32, ppwzMimeOut: ?*?PWSTR, dwReserved: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT; pub extern "urlmon" fn ObtainUserAgentString( dwOption: u32, pszUAOut: [*:0]u8, cbSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT; pub extern "urlmon" fn CompareSecurityIds( pbSecurityId1: [*:0]u8, dwLen1: u32, pbSecurityId2: [*:0]u8, dwLen2: u32, dwReserved: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT; pub extern "urlmon" fn CompatFlagsFromClsid( pclsid: ?*Guid, pdwCompatFlags: ?*u32, pdwMiscStatusFlags: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT; pub extern "urlmon" fn SetAccessForIEAppContainer( hObject: ?HANDLE, ieObjectType: IEObjectType, dwAccessMask: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT; pub extern "urlmon" fn HlinkSimpleNavigateToString( szTarget: ?[*:0]const u16, szLocation: ?[*:0]const u16, szTargetFrameName: ?[*:0]const u16, pUnk: ?*IUnknown, pbc: ?*IBindCtx, param5: ?*IBindStatusCallback, grfHLNF: u32, dwReserved: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT; pub extern "urlmon" fn HlinkSimpleNavigateToMoniker( pmkTarget: ?*IMoniker, szLocation: ?[*:0]const u16, szTargetFrameName: ?[*:0]const u16, pUnk: ?*IUnknown, pbc: ?*IBindCtx, param5: ?*IBindStatusCallback, grfHLNF: u32, dwReserved: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT; pub extern "urlmon" fn URLOpenStreamA( param0: ?*IUnknown, param1: ?[*:0]const u8, param2: u32, param3: ?*IBindStatusCallback, ) callconv(@import("std").os.windows.WINAPI) HRESULT; pub extern "urlmon" fn URLOpenStreamW( param0: ?*IUnknown, param1: ?[*:0]const u16, param2: u32, param3: ?*IBindStatusCallback, ) callconv(@import("std").os.windows.WINAPI) HRESULT; pub extern "urlmon" fn URLOpenPullStreamA( param0: ?*IUnknown, param1: ?[*:0]const u8, param2: u32, param3: ?*IBindStatusCallback, ) callconv(@import("std").os.windows.WINAPI) HRESULT; pub extern "urlmon" fn URLOpenPullStreamW( param0: ?*IUnknown, param1: ?[*:0]const u16, param2: u32, param3: ?*IBindStatusCallback, ) callconv(@import("std").os.windows.WINAPI) HRESULT; pub extern "urlmon" fn URLDownloadToFileA( param0: ?*IUnknown, param1: ?[*:0]const u8, param2: ?[*:0]const u8, param3: u32, param4: ?*IBindStatusCallback, ) callconv(@import("std").os.windows.WINAPI) HRESULT; pub extern "urlmon" fn URLDownloadToFileW( param0: ?*IUnknown, param1: ?[*:0]const u16, param2: ?[*:0]const u16, param3: u32, param4: ?*IBindStatusCallback, ) callconv(@import("std").os.windows.WINAPI) HRESULT; pub extern "urlmon" fn URLDownloadToCacheFileA( param0: ?*IUnknown, param1: ?[*:0]const u8, param2: [*:0]u8, cchFileName: u32, param4: u32, param5: ?*IBindStatusCallback, ) callconv(@import("std").os.windows.WINAPI) HRESULT; pub extern "urlmon" fn URLDownloadToCacheFileW( param0: ?*IUnknown, param1: ?[*:0]const u16, param2: [*:0]u16, cchFileName: u32, param4: u32, param5: ?*IBindStatusCallback, ) callconv(@import("std").os.windows.WINAPI) HRESULT; pub extern "urlmon" fn URLOpenBlockingStreamA( param0: ?*IUnknown, param1: ?[*:0]const u8, param2: ?*?*IStream, param3: u32, param4: ?*IBindStatusCallback, ) callconv(@import("std").os.windows.WINAPI) HRESULT; pub extern "urlmon" fn URLOpenBlockingStreamW( param0: ?*IUnknown, param1: ?[*:0]const u16, param2: ?*?*IStream, param3: u32, param4: ?*IBindStatusCallback, ) callconv(@import("std").os.windows.WINAPI) HRESULT; pub extern "urlmon" fn HlinkGoBack( pUnk: ?*IUnknown, ) callconv(@import("std").os.windows.WINAPI) HRESULT; pub extern "urlmon" fn HlinkGoForward( pUnk: ?*IUnknown, ) callconv(@import("std").os.windows.WINAPI) HRESULT; pub extern "urlmon" fn HlinkNavigateString( pUnk: ?*IUnknown, szTarget: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT; pub extern "urlmon" fn HlinkNavigateMoniker( pUnk: ?*IUnknown, pmkTarget: ?*IMoniker, ) callconv(@import("std").os.windows.WINAPI) HRESULT; pub extern "urlmon" fn CoInternetParseUrl( pwzUrl: ?[*:0]const u16, ParseAction: PARSEACTION, dwFlags: u32, pszResult: [*:0]u16, cchResult: u32, pcchResult: ?*u32, dwReserved: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT; pub extern "urlmon" fn CoInternetParseIUri( pIUri: ?*IUri, ParseAction: PARSEACTION, dwFlags: u32, pwzResult: [*:0]u16, cchResult: u32, pcchResult: ?*u32, dwReserved: usize, ) callconv(@import("std").os.windows.WINAPI) HRESULT; pub extern "urlmon" fn CoInternetCombineUrl( pwzBaseUrl: ?[*:0]const u16, pwzRelativeUrl: ?[*:0]const u16, dwCombineFlags: u32, pszResult: [*:0]u16, cchResult: u32, pcchResult: ?*u32, dwReserved: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT; pub extern "urlmon" fn CoInternetCombineUrlEx( pBaseUri: ?*IUri, pwzRelativeUrl: ?[*:0]const u16, dwCombineFlags: u32, ppCombinedUri: ?*?*IUri, dwReserved: usize, ) callconv(@import("std").os.windows.WINAPI) HRESULT; pub extern "urlmon" fn CoInternetCombineIUri( pBaseUri: ?*IUri, pRelativeUri: ?*IUri, dwCombineFlags: u32, ppCombinedUri: ?*?*IUri, dwReserved: usize, ) callconv(@import("std").os.windows.WINAPI) HRESULT; pub extern "urlmon" fn CoInternetCompareUrl( pwzUrl1: ?[*:0]const u16, pwzUrl2: ?[*:0]const u16, dwFlags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT; pub extern "urlmon" fn CoInternetGetProtocolFlags( pwzUrl: ?[*:0]const u16, pdwFlags: ?*u32, dwReserved: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT; pub extern "urlmon" fn CoInternetQueryInfo( pwzUrl: ?[*:0]const u16, QueryOptions: QUERYOPTION, dwQueryFlags: u32, // TODO: what to do with BytesParamIndex 4? pvBuffer: ?*anyopaque, cbBuffer: u32, pcbBuffer: ?*u32, dwReserved: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT; pub extern "urlmon" fn CoInternetGetSession( dwSessionMode: u32, ppIInternetSession: ?*?*IInternetSession, dwReserved: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT; pub extern "urlmon" fn CoInternetGetSecurityUrl( pwszUrl: ?[*:0]const u16, ppwszSecUrl: ?*?PWSTR, psuAction: PSUACTION, dwReserved: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT; pub extern "urlmon" fn CoInternetGetSecurityUrlEx( pUri: ?*IUri, ppSecUri: ?*?*IUri, psuAction: PSUACTION, dwReserved: usize, ) callconv(@import("std").os.windows.WINAPI) HRESULT; pub extern "urlmon" fn CoInternetSetFeatureEnabled( FeatureEntry: INTERNETFEATURELIST, dwFlags: u32, fEnable: BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT; pub extern "urlmon" fn CoInternetIsFeatureEnabled( FeatureEntry: INTERNETFEATURELIST, dwFlags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT; pub extern "urlmon" fn CoInternetIsFeatureEnabledForUrl( FeatureEntry: INTERNETFEATURELIST, dwFlags: u32, szURL: ?[*:0]const u16, pSecMgr: ?*IInternetSecurityManager, ) callconv(@import("std").os.windows.WINAPI) HRESULT; pub extern "urlmon" fn CoInternetIsFeatureEnabledForIUri( FeatureEntry: INTERNETFEATURELIST, dwFlags: u32, pIUri: ?*IUri, pSecMgr: ?*IInternetSecurityManagerEx2, ) callconv(@import("std").os.windows.WINAPI) HRESULT; pub extern "urlmon" fn CoInternetIsFeatureZoneElevationEnabled( szFromURL: ?[*:0]const u16, szToURL: ?[*:0]const u16, pSecMgr: ?*IInternetSecurityManager, dwFlags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT; pub extern "urlmon" fn CopyStgMedium( pcstgmedSrc: ?*const STGMEDIUM, pstgmedDest: ?*STGMEDIUM, ) callconv(@import("std").os.windows.WINAPI) HRESULT; pub extern "urlmon" fn CopyBindInfo( pcbiSrc: ?*const BINDINFO, pbiDest: ?*BINDINFO, ) callconv(@import("std").os.windows.WINAPI) HRESULT; pub extern "urlmon" fn ReleaseBindInfo( pbindinfo: ?*BINDINFO, ) callconv(@import("std").os.windows.WINAPI) void; pub extern "urlmon" fn IEGetUserPrivateNamespaceName() callconv(@import("std").os.windows.WINAPI) ?PWSTR; pub extern "urlmon" fn CoInternetCreateSecurityManager( pSP: ?*IServiceProvider, ppSM: ?*?*IInternetSecurityManager, dwReserved: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT; pub extern "urlmon" fn CoInternetCreateZoneManager( pSP: ?*IServiceProvider, ppZM: ?*?*IInternetZoneManager, dwReserved: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT; pub extern "urlmon" fn GetSoftwareUpdateInfo( szDistUnit: ?[*:0]const u16, psdi: ?*SOFTDISTINFO, ) callconv(@import("std").os.windows.WINAPI) HRESULT; pub extern "urlmon" fn SetSoftwareUpdateAdvertisementState( szDistUnit: ?[*:0]const u16, dwAdState: u32, dwAdvertisedVersionMS: u32, dwAdvertisedVersionLS: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT; pub extern "urlmon" fn IsLoggingEnabledA( pszUrl: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) BOOL; pub extern "urlmon" fn IsLoggingEnabledW( pwszUrl: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) BOOL; pub extern "urlmon" fn WriteHitLogging( lpLogginginfo: ?*HIT_LOGGING_INFO, ) callconv(@import("std").os.windows.WINAPI) BOOL; //-------------------------------------------------------------------------------- // Section: Unicode Aliases (6) //-------------------------------------------------------------------------------- const thismodule = @This(); pub usingnamespace switch (@import("../../zig.zig").unicode_mode) { .ansi => struct { pub const URLOpenStream = thismodule.URLOpenStreamA; pub const URLOpenPullStream = thismodule.URLOpenPullStreamA; pub const URLDownloadToFile = thismodule.URLDownloadToFileA; pub const URLDownloadToCacheFile = thismodule.URLDownloadToCacheFileA; pub const URLOpenBlockingStream = thismodule.URLOpenBlockingStreamA; pub const IsLoggingEnabled = thismodule.IsLoggingEnabledA; }, .wide => struct { pub const URLOpenStream = thismodule.URLOpenStreamW; pub const URLOpenPullStream = thismodule.URLOpenPullStreamW; pub const URLDownloadToFile = thismodule.URLDownloadToFileW; pub const URLDownloadToCacheFile = thismodule.URLDownloadToCacheFileW; pub const URLOpenBlockingStream = thismodule.URLOpenBlockingStreamW; pub const IsLoggingEnabled = thismodule.IsLoggingEnabledW; }, .unspecified => if (@import("builtin").is_test) struct { pub const URLOpenStream = *opaque {}; pub const URLOpenPullStream = *opaque {}; pub const URLDownloadToFile = *opaque {}; pub const URLDownloadToCacheFile = *opaque {}; pub const URLOpenBlockingStream = *opaque {}; pub const IsLoggingEnabled = *opaque {}; } else struct { pub const URLOpenStream = @compileError("'URLOpenStream' requires that UNICODE be set to true or false in the root module"); pub const URLOpenPullStream = @compileError("'URLOpenPullStream' requires that UNICODE be set to true or false in the root module"); pub const URLDownloadToFile = @compileError("'URLDownloadToFile' requires that UNICODE be set to true or false in the root module"); pub const URLDownloadToCacheFile = @compileError("'URLDownloadToCacheFile' requires that UNICODE be set to true or false in the root module"); pub const URLOpenBlockingStream = @compileError("'URLOpenBlockingStream' requires that UNICODE be set to true or false in the root module"); pub const IsLoggingEnabled = @compileError("'IsLoggingEnabled' requires that UNICODE be set to true or false in the root module"); }, }; //-------------------------------------------------------------------------------- // Section: Imports (30) //-------------------------------------------------------------------------------- const Guid = @import("../../zig.zig").Guid; const BINDINFO = @import("../../system/com.zig").BINDINFO; const BOOL = @import("../../foundation.zig").BOOL; const CLSCTX = @import("../../system/com.zig").CLSCTX; const FORMATETC = @import("../../system/com.zig").FORMATETC; const HANDLE = @import("../../foundation.zig").HANDLE; const HANDLE_PTR = @import("../../foundation.zig").HANDLE_PTR; const HRESULT = @import("../../foundation.zig").HRESULT; const HWND = @import("../../foundation.zig").HWND; const IBindCtx = @import("../../system/com.zig").IBindCtx; const IBinding = @import("../../system/com.zig").IBinding; const IBindStatusCallback = @import("../../system/com.zig").IBindStatusCallback; const IClassFactory = @import("../../system/com.zig").IClassFactory; const IEnumFORMATETC = @import("../../system/com.zig").IEnumFORMATETC; const IEnumString = @import("../../system/com.zig").IEnumString; const IMoniker = @import("../../system/com.zig").IMoniker; const IServiceProvider = @import("../../system/com.zig").IServiceProvider; const IStream = @import("../../system/com.zig").IStream; const IUnknown = @import("../../system/com.zig").IUnknown; const IUri = @import("../../system/com.zig").IUri; const IUriBuilder = @import("../../system/com.zig").IUriBuilder; const IXMLElement = @import("../../data/xml/ms_xml.zig").IXMLElement; const LARGE_INTEGER = @import("../../foundation.zig").LARGE_INTEGER; const PSTR = @import("../../foundation.zig").PSTR; const PWSTR = @import("../../foundation.zig").PWSTR; const QUERYCONTEXT = @import("../../system/com.zig").QUERYCONTEXT; const STGMEDIUM = @import("../../system/com.zig").STGMEDIUM; const SYSTEMTIME = @import("../../foundation.zig").SYSTEMTIME; const uCLSSPEC = @import("../../system/com.zig").uCLSSPEC; const ULARGE_INTEGER = @import("../../foundation.zig").ULARGE_INTEGER; test { @setEvalBranchQuota(comptime @import("std").meta.declarations(@This()).len * 3); // reference all the pub declarations if (!@import("builtin").is_test) return; inline for (comptime @import("std").meta.declarations(@This())) |decl| { if (decl.is_pub) { _ = @field(@This(), decl.name); } } }
0
repos/capy/vendor/zigwin32/win32/system
repos/capy/vendor/zigwin32/win32/system/performance/hardware_counter_profiling.zig
//! NOTE: this file is autogenerated, DO NOT MODIFY //-------------------------------------------------------------------------------- // Section: Constants (0) //-------------------------------------------------------------------------------- //-------------------------------------------------------------------------------- // Section: Types (3) //-------------------------------------------------------------------------------- pub const HARDWARE_COUNTER_TYPE = enum(i32) { PMCCounter = 0, MaxHardwareCounterType = 1, }; pub const PMCCounter = HARDWARE_COUNTER_TYPE.PMCCounter; pub const MaxHardwareCounterType = HARDWARE_COUNTER_TYPE.MaxHardwareCounterType; pub const HARDWARE_COUNTER_DATA = extern struct { Type: HARDWARE_COUNTER_TYPE, Reserved: u32, Value: u64, }; pub const PERFORMANCE_DATA = extern struct { Size: u16, Version: u8, HwCountersCount: u8, ContextSwitchCount: u32, WaitReasonBitMap: u64, CycleTime: u64, RetryCount: u32, Reserved: u32, HwCounters: [16]HARDWARE_COUNTER_DATA, }; //-------------------------------------------------------------------------------- // Section: Functions (4) //-------------------------------------------------------------------------------- // TODO: this type is limited to platform 'windows6.1' pub extern "kernel32" fn EnableThreadProfiling( ThreadHandle: ?HANDLE, Flags: u32, HardwareCounters: u64, PerformanceDataHandle: ?*?HANDLE, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'windows6.1' pub extern "kernel32" fn DisableThreadProfiling( PerformanceDataHandle: ?HANDLE, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'windows6.1' pub extern "kernel32" fn QueryThreadProfiling( ThreadHandle: ?HANDLE, Enabled: ?*BOOLEAN, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'windows6.1' pub extern "kernel32" fn ReadThreadProfilingData( PerformanceDataHandle: ?HANDLE, Flags: u32, PerformanceData: ?*PERFORMANCE_DATA, ) callconv(@import("std").os.windows.WINAPI) u32; //-------------------------------------------------------------------------------- // Section: Unicode Aliases (0) //-------------------------------------------------------------------------------- const thismodule = @This(); pub usingnamespace switch (@import("../../zig.zig").unicode_mode) { .ansi => struct {}, .wide => struct {}, .unspecified => if (@import("builtin").is_test) struct {} else struct {}, }; //-------------------------------------------------------------------------------- // Section: Imports (2) //-------------------------------------------------------------------------------- const BOOLEAN = @import("../../foundation.zig").BOOLEAN; const HANDLE = @import("../../foundation.zig").HANDLE; test { @setEvalBranchQuota(comptime @import("std").meta.declarations(@This()).len * 3); // reference all the pub declarations if (!@import("builtin").is_test) return; inline for (comptime @import("std").meta.declarations(@This())) |decl| { if (decl.is_pub) { _ = @field(@This(), decl.name); } } }
0
repos/capy/vendor/zigwin32/win32/system
repos/capy/vendor/zigwin32/win32/system/memory/non_volatile.zig
//! NOTE: this file is autogenerated, DO NOT MODIFY //-------------------------------------------------------------------------------- // Section: Constants (0) //-------------------------------------------------------------------------------- //-------------------------------------------------------------------------------- // Section: Types (1) //-------------------------------------------------------------------------------- pub const NV_MEMORY_RANGE = extern struct { BaseAddress: ?*anyopaque, Length: usize, }; //-------------------------------------------------------------------------------- // Section: Functions (7) //-------------------------------------------------------------------------------- pub usingnamespace switch (@import("../../zig.zig").arch) { .X64, .Arm64 => struct { pub extern "ntdll" fn RtlGetNonVolatileToken( // TODO: what to do with BytesParamIndex 1? NvBuffer: ?*anyopaque, Size: usize, NvToken: ?*?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) u32; }, else => struct {}, }; pub usingnamespace switch (@import("../../zig.zig").arch) { .X64, .Arm64 => struct { pub extern "ntdll" fn RtlFreeNonVolatileToken( NvToken: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) u32; }, else => struct {}, }; pub usingnamespace switch (@import("../../zig.zig").arch) { .X64, .Arm64 => struct { pub extern "ntdll" fn RtlFlushNonVolatileMemory( NvToken: ?*anyopaque, // TODO: what to do with BytesParamIndex 2? NvBuffer: ?*anyopaque, Size: usize, Flags: u32, ) callconv(@import("std").os.windows.WINAPI) u32; }, else => struct {}, }; pub usingnamespace switch (@import("../../zig.zig").arch) { .X64, .Arm64 => struct { pub extern "ntdll" fn RtlDrainNonVolatileFlush( NvToken: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) u32; }, else => struct {}, }; pub usingnamespace switch (@import("../../zig.zig").arch) { .X64, .Arm64 => struct { pub extern "ntdll" fn RtlWriteNonVolatileMemory( NvToken: ?*anyopaque, // TODO: what to do with BytesParamIndex 3? NvDestination: ?*anyopaque, // TODO: what to do with BytesParamIndex 3? Source: ?*const anyopaque, Size: usize, Flags: u32, ) callconv(@import("std").os.windows.WINAPI) u32; }, else => struct {}, }; pub usingnamespace switch (@import("../../zig.zig").arch) { .X64, .Arm64 => struct { pub extern "ntdll" fn RtlFillNonVolatileMemory( NvToken: ?*anyopaque, // TODO: what to do with BytesParamIndex 2? NvDestination: ?*anyopaque, Size: usize, Value: u8, Flags: u32, ) callconv(@import("std").os.windows.WINAPI) u32; }, else => struct {}, }; pub usingnamespace switch (@import("../../zig.zig").arch) { .X64, .Arm64 => struct { pub extern "ntdll" fn RtlFlushNonVolatileMemoryRanges( NvToken: ?*anyopaque, NvRanges: [*]NV_MEMORY_RANGE, NumRanges: usize, Flags: u32, ) callconv(@import("std").os.windows.WINAPI) u32; }, else => struct {}, }; //-------------------------------------------------------------------------------- // Section: Unicode Aliases (0) //-------------------------------------------------------------------------------- const thismodule = @This(); pub usingnamespace switch (@import("../../zig.zig").unicode_mode) { .ansi => struct {}, .wide => struct {}, .unspecified => if (@import("builtin").is_test) struct {} else struct {}, }; //-------------------------------------------------------------------------------- // Section: Imports (0) //-------------------------------------------------------------------------------- test { @setEvalBranchQuota(comptime @import("std").meta.declarations(@This()).len * 3); // reference all the pub declarations if (!@import("builtin").is_test) return; inline for (comptime @import("std").meta.declarations(@This())) |decl| { if (decl.is_pub) { _ = @field(@This(), decl.name); } } }
0
repos/capy/vendor/zigwin32/win32/system
repos/capy/vendor/zigwin32/win32/system/diagnostics/debug.zig
//! NOTE: this file is autogenerated, DO NOT MODIFY //-------------------------------------------------------------------------------- // Section: Constants (1302) //-------------------------------------------------------------------------------- pub const WOW64_CONTEXT_i386 = @as(u32, 65536); pub const WOW64_CONTEXT_i486 = @as(u32, 65536); pub const WOW64_CONTEXT_EXCEPTION_ACTIVE = @as(u32, 134217728); pub const WOW64_CONTEXT_SERVICE_ACTIVE = @as(u32, 268435456); pub const WOW64_CONTEXT_EXCEPTION_REQUEST = @as(u32, 1073741824); pub const WOW64_CONTEXT_EXCEPTION_REPORTING = @as(u32, 2147483648); pub const WOW64_SIZE_OF_80387_REGISTERS = @as(u32, 80); pub const WOW64_MAXIMUM_SUPPORTED_EXTENSION = @as(u32, 512); pub const ERROR_DBG_CANCELLED = @as(u32, 3221226695); pub const ERROR_DBG_TIMEOUT = @as(u32, 3221226932); pub const DEBUG_GET_TEXT_COMPLETIONS_NO_DOT_COMMANDS = @as(u32, 1); pub const DEBUG_GET_TEXT_COMPLETIONS_NO_EXTENSION_COMMANDS = @as(u32, 2); pub const DEBUG_GET_TEXT_COMPLETIONS_NO_SYMBOLS = @as(u32, 4); pub const DEBUG_GET_TEXT_COMPLETIONS_IS_DOT_COMMAND = @as(u32, 1); pub const DEBUG_GET_TEXT_COMPLETIONS_IS_EXTENSION_COMMAND = @as(u32, 2); pub const DEBUG_GET_TEXT_COMPLETIONS_IS_SYMBOL = @as(u32, 4); pub const DEBUG_REQUEST_SOURCE_PATH_HAS_SOURCE_SERVER = @as(u32, 0); pub const DEBUG_REQUEST_TARGET_EXCEPTION_CONTEXT = @as(u32, 1); pub const DEBUG_REQUEST_TARGET_EXCEPTION_THREAD = @as(u32, 2); pub const DEBUG_REQUEST_TARGET_EXCEPTION_RECORD = @as(u32, 3); pub const DEBUG_REQUEST_GET_ADDITIONAL_CREATE_OPTIONS = @as(u32, 4); pub const DEBUG_REQUEST_SET_ADDITIONAL_CREATE_OPTIONS = @as(u32, 5); pub const DEBUG_REQUEST_GET_WIN32_MAJOR_MINOR_VERSIONS = @as(u32, 6); pub const DEBUG_REQUEST_READ_USER_MINIDUMP_STREAM = @as(u32, 7); pub const DEBUG_REQUEST_TARGET_CAN_DETACH = @as(u32, 8); pub const DEBUG_REQUEST_SET_LOCAL_IMPLICIT_COMMAND_LINE = @as(u32, 9); pub const DEBUG_REQUEST_GET_CAPTURED_EVENT_CODE_OFFSET = @as(u32, 10); pub const DEBUG_REQUEST_READ_CAPTURED_EVENT_CODE_STREAM = @as(u32, 11); pub const DEBUG_REQUEST_EXT_TYPED_DATA_ANSI = @as(u32, 12); pub const DEBUG_REQUEST_GET_EXTENSION_SEARCH_PATH_WIDE = @as(u32, 13); pub const DEBUG_REQUEST_GET_TEXT_COMPLETIONS_WIDE = @as(u32, 14); pub const DEBUG_REQUEST_GET_CACHED_SYMBOL_INFO = @as(u32, 15); pub const DEBUG_REQUEST_ADD_CACHED_SYMBOL_INFO = @as(u32, 16); pub const DEBUG_REQUEST_REMOVE_CACHED_SYMBOL_INFO = @as(u32, 17); pub const DEBUG_REQUEST_GET_TEXT_COMPLETIONS_ANSI = @as(u32, 18); pub const DEBUG_REQUEST_CURRENT_OUTPUT_CALLBACKS_ARE_DML_AWARE = @as(u32, 19); pub const DEBUG_REQUEST_GET_OFFSET_UNWIND_INFORMATION = @as(u32, 20); pub const DEBUG_REQUEST_GET_DUMP_HEADER = @as(u32, 21); pub const DEBUG_REQUEST_SET_DUMP_HEADER = @as(u32, 22); pub const DEBUG_REQUEST_MIDORI = @as(u32, 23); pub const DEBUG_REQUEST_PROCESS_DESCRIPTORS = @as(u32, 24); pub const DEBUG_REQUEST_MISC_INFORMATION = @as(u32, 25); pub const DEBUG_REQUEST_OPEN_PROCESS_TOKEN = @as(u32, 26); pub const DEBUG_REQUEST_OPEN_THREAD_TOKEN = @as(u32, 27); pub const DEBUG_REQUEST_DUPLICATE_TOKEN = @as(u32, 28); pub const DEBUG_REQUEST_QUERY_INFO_TOKEN = @as(u32, 29); pub const DEBUG_REQUEST_CLOSE_TOKEN = @as(u32, 30); pub const DEBUG_REQUEST_WOW_PROCESS = @as(u32, 31); pub const DEBUG_REQUEST_WOW_MODULE = @as(u32, 32); pub const DEBUG_LIVE_USER_NON_INVASIVE = @as(u32, 33); pub const DEBUG_REQUEST_RESUME_THREAD = @as(u32, 34); pub const DEBUG_REQUEST_INLINE_QUERY = @as(u32, 35); pub const DEBUG_REQUEST_TL_INSTRUMENTATION_AWARE = @as(u32, 36); pub const DEBUG_REQUEST_GET_INSTRUMENTATION_VERSION = @as(u32, 37); pub const DEBUG_REQUEST_GET_MODULE_ARCHITECTURE = @as(u32, 38); pub const DEBUG_SRCFILE_SYMBOL_TOKEN = @as(u32, 0); pub const DEBUG_SRCFILE_SYMBOL_TOKEN_SOURCE_COMMAND_WIDE = @as(u32, 1); pub const DEBUG_SRCFILE_SYMBOL_CHECKSUMINFO = @as(u32, 2); pub const DEBUG_SYMINFO_BREAKPOINT_SOURCE_LINE = @as(u32, 0); pub const DEBUG_SYMINFO_IMAGEHLP_MODULEW64 = @as(u32, 1); pub const DEBUG_SYMINFO_GET_SYMBOL_NAME_BY_OFFSET_AND_TAG_WIDE = @as(u32, 2); pub const DEBUG_SYMINFO_GET_MODULE_SYMBOL_NAMES_AND_OFFSETS = @as(u32, 3); pub const DEBUG_SYSOBJINFO_THREAD_BASIC_INFORMATION = @as(u32, 0); pub const DEBUG_SYSOBJINFO_THREAD_NAME_WIDE = @as(u32, 1); pub const DEBUG_SYSOBJINFO_CURRENT_PROCESS_COOKIE = @as(u32, 2); pub const DEBUG_TBINFO_EXIT_STATUS = @as(u32, 1); pub const DEBUG_TBINFO_PRIORITY_CLASS = @as(u32, 2); pub const DEBUG_TBINFO_PRIORITY = @as(u32, 4); pub const DEBUG_TBINFO_TIMES = @as(u32, 8); pub const DEBUG_TBINFO_START_OFFSET = @as(u32, 16); pub const DEBUG_TBINFO_AFFINITY = @as(u32, 32); pub const DEBUG_TBINFO_ALL = @as(u32, 63); pub const DEBUG_BREAKPOINT_CODE = @as(u32, 0); pub const DEBUG_BREAKPOINT_DATA = @as(u32, 1); pub const DEBUG_BREAKPOINT_TIME = @as(u32, 2); pub const DEBUG_BREAKPOINT_INLINE = @as(u32, 3); pub const DEBUG_BREAKPOINT_GO_ONLY = @as(u32, 1); pub const DEBUG_BREAKPOINT_DEFERRED = @as(u32, 2); pub const DEBUG_BREAKPOINT_ENABLED = @as(u32, 4); pub const DEBUG_BREAKPOINT_ADDER_ONLY = @as(u32, 8); pub const DEBUG_BREAKPOINT_ONE_SHOT = @as(u32, 16); pub const DEBUG_BREAK_READ = @as(u32, 1); pub const DEBUG_BREAK_WRITE = @as(u32, 2); pub const DEBUG_BREAK_EXECUTE = @as(u32, 4); pub const DEBUG_BREAK_IO = @as(u32, 8); pub const DEBUG_ATTACH_KERNEL_CONNECTION = @as(u32, 0); pub const DEBUG_ATTACH_LOCAL_KERNEL = @as(u32, 1); pub const DEBUG_ATTACH_EXDI_DRIVER = @as(u32, 2); pub const DEBUG_ATTACH_INSTALL_DRIVER = @as(u32, 4); pub const DEBUG_GET_PROC_DEFAULT = @as(u32, 0); pub const DEBUG_GET_PROC_FULL_MATCH = @as(u32, 1); pub const DEBUG_GET_PROC_ONLY_MATCH = @as(u32, 2); pub const DEBUG_GET_PROC_SERVICE_NAME = @as(u32, 4); pub const DEBUG_PROC_DESC_DEFAULT = @as(u32, 0); pub const DEBUG_PROC_DESC_NO_PATHS = @as(u32, 1); pub const DEBUG_PROC_DESC_NO_SERVICES = @as(u32, 2); pub const DEBUG_PROC_DESC_NO_MTS_PACKAGES = @as(u32, 4); pub const DEBUG_PROC_DESC_NO_COMMAND_LINE = @as(u32, 8); pub const DEBUG_PROC_DESC_NO_SESSION_ID = @as(u32, 16); pub const DEBUG_PROC_DESC_NO_USER_NAME = @as(u32, 32); pub const DEBUG_PROC_DESC_WITH_PACKAGEFAMILY = @as(u32, 64); pub const DEBUG_ATTACH_DEFAULT = @as(u32, 0); pub const DEBUG_ATTACH_NONINVASIVE = @as(u32, 1); pub const DEBUG_ATTACH_EXISTING = @as(u32, 2); pub const DEBUG_ATTACH_NONINVASIVE_NO_SUSPEND = @as(u32, 4); pub const DEBUG_ATTACH_INVASIVE_NO_INITIAL_BREAK = @as(u32, 8); pub const DEBUG_ATTACH_INVASIVE_RESUME_PROCESS = @as(u32, 16); pub const DEBUG_ATTACH_NONINVASIVE_ALLOW_PARTIAL = @as(u32, 32); pub const DEBUG_ECREATE_PROCESS_DEFAULT = @as(u32, 0); pub const DEBUG_ECREATE_PROCESS_INHERIT_HANDLES = @as(u32, 1); pub const DEBUG_ECREATE_PROCESS_USE_VERIFIER_FLAGS = @as(u32, 2); pub const DEBUG_ECREATE_PROCESS_USE_IMPLICIT_COMMAND_LINE = @as(u32, 4); pub const DEBUG_PROCESS_DETACH_ON_EXIT = @as(u32, 1); pub const DEBUG_PROCESS_ONLY_THIS_PROCESS = @as(u32, 2); pub const DEBUG_CONNECT_SESSION_DEFAULT = @as(u32, 0); pub const DEBUG_CONNECT_SESSION_NO_VERSION = @as(u32, 1); pub const DEBUG_CONNECT_SESSION_NO_ANNOUNCE = @as(u32, 2); pub const DEBUG_SERVERS_DEBUGGER = @as(u32, 1); pub const DEBUG_SERVERS_PROCESS = @as(u32, 2); pub const DEBUG_SERVERS_ALL = @as(u32, 3); pub const DEBUG_END_PASSIVE = @as(u32, 0); pub const DEBUG_END_ACTIVE_TERMINATE = @as(u32, 1); pub const DEBUG_END_ACTIVE_DETACH = @as(u32, 2); pub const DEBUG_END_REENTRANT = @as(u32, 3); pub const DEBUG_END_DISCONNECT = @as(u32, 4); pub const DEBUG_OUTPUT_NORMAL = @as(u32, 1); pub const DEBUG_OUTPUT_ERROR = @as(u32, 2); pub const DEBUG_OUTPUT_WARNING = @as(u32, 4); pub const DEBUG_OUTPUT_VERBOSE = @as(u32, 8); pub const DEBUG_OUTPUT_PROMPT = @as(u32, 16); pub const DEBUG_OUTPUT_PROMPT_REGISTERS = @as(u32, 32); pub const DEBUG_OUTPUT_EXTENSION_WARNING = @as(u32, 64); pub const DEBUG_OUTPUT_DEBUGGEE = @as(u32, 128); pub const DEBUG_OUTPUT_DEBUGGEE_PROMPT = @as(u32, 256); pub const DEBUG_OUTPUT_SYMBOLS = @as(u32, 512); pub const DEBUG_OUTPUT_STATUS = @as(u32, 1024); pub const DEBUG_OUTPUT_XML = @as(u32, 2048); pub const DEBUG_IOUTPUT_KD_PROTOCOL = @as(u32, 2147483648); pub const DEBUG_IOUTPUT_REMOTING = @as(u32, 1073741824); pub const DEBUG_IOUTPUT_BREAKPOINT = @as(u32, 536870912); pub const DEBUG_IOUTPUT_EVENT = @as(u32, 268435456); pub const DEBUG_IOUTPUT_ADDR_TRANSLATE = @as(u32, 134217728); pub const DEBUG_OUTPUT_IDENTITY_DEFAULT = @as(u32, 0); pub const DEBUG_CLIENT_UNKNOWN = @as(u32, 0); pub const DEBUG_CLIENT_VSINT = @as(u32, 1); pub const DEBUG_CLIENT_NTSD = @as(u32, 2); pub const DEBUG_CLIENT_NTKD = @as(u32, 3); pub const DEBUG_CLIENT_CDB = @as(u32, 4); pub const DEBUG_CLIENT_KD = @as(u32, 5); pub const DEBUG_CLIENT_WINDBG = @as(u32, 6); pub const DEBUG_CLIENT_WINIDE = @as(u32, 7); pub const DEBUG_FORMAT_DEFAULT = @as(u32, 0); pub const DEBUG_FORMAT_CAB_SECONDARY_ALL_IMAGES = @as(u32, 268435456); pub const DEBUG_FORMAT_WRITE_CAB = @as(u32, 536870912); pub const DEBUG_FORMAT_CAB_SECONDARY_FILES = @as(u32, 1073741824); pub const DEBUG_FORMAT_NO_OVERWRITE = @as(u32, 2147483648); pub const DEBUG_FORMAT_USER_SMALL_FULL_MEMORY = @as(u32, 1); pub const DEBUG_FORMAT_USER_SMALL_HANDLE_DATA = @as(u32, 2); pub const DEBUG_FORMAT_USER_SMALL_UNLOADED_MODULES = @as(u32, 4); pub const DEBUG_FORMAT_USER_SMALL_INDIRECT_MEMORY = @as(u32, 8); pub const DEBUG_FORMAT_USER_SMALL_DATA_SEGMENTS = @as(u32, 16); pub const DEBUG_FORMAT_USER_SMALL_FILTER_MEMORY = @as(u32, 32); pub const DEBUG_FORMAT_USER_SMALL_FILTER_PATHS = @as(u32, 64); pub const DEBUG_FORMAT_USER_SMALL_PROCESS_THREAD_DATA = @as(u32, 128); pub const DEBUG_FORMAT_USER_SMALL_PRIVATE_READ_WRITE_MEMORY = @as(u32, 256); pub const DEBUG_FORMAT_USER_SMALL_NO_OPTIONAL_DATA = @as(u32, 512); pub const DEBUG_FORMAT_USER_SMALL_FULL_MEMORY_INFO = @as(u32, 1024); pub const DEBUG_FORMAT_USER_SMALL_THREAD_INFO = @as(u32, 2048); pub const DEBUG_FORMAT_USER_SMALL_CODE_SEGMENTS = @as(u32, 4096); pub const DEBUG_FORMAT_USER_SMALL_NO_AUXILIARY_STATE = @as(u32, 8192); pub const DEBUG_FORMAT_USER_SMALL_FULL_AUXILIARY_STATE = @as(u32, 16384); pub const DEBUG_FORMAT_USER_SMALL_MODULE_HEADERS = @as(u32, 32768); pub const DEBUG_FORMAT_USER_SMALL_FILTER_TRIAGE = @as(u32, 65536); pub const DEBUG_FORMAT_USER_SMALL_ADD_AVX_XSTATE_CONTEXT = @as(u32, 131072); pub const DEBUG_FORMAT_USER_SMALL_IPT_TRACE = @as(u32, 262144); pub const DEBUG_FORMAT_USER_SMALL_IGNORE_INACCESSIBLE_MEM = @as(u32, 134217728); pub const DEBUG_FORMAT_USER_SMALL_SCAN_PARTIAL_PAGES = @as(u32, 268435456); pub const DEBUG_DUMP_FILE_BASE = @as(u32, 4294967295); pub const DEBUG_DUMP_FILE_PAGE_FILE_DUMP = @as(u32, 0); pub const DEBUG_DUMP_FILE_LOAD_FAILED_INDEX = @as(u32, 4294967295); pub const DEBUG_DUMP_FILE_ORIGINAL_CAB_INDEX = @as(u32, 4294967294); pub const DEBUG_STATUS_NO_CHANGE = @as(u32, 0); pub const DEBUG_STATUS_GO = @as(u32, 1); pub const DEBUG_STATUS_GO_HANDLED = @as(u32, 2); pub const DEBUG_STATUS_GO_NOT_HANDLED = @as(u32, 3); pub const DEBUG_STATUS_STEP_OVER = @as(u32, 4); pub const DEBUG_STATUS_STEP_INTO = @as(u32, 5); pub const DEBUG_STATUS_BREAK = @as(u32, 6); pub const DEBUG_STATUS_NO_DEBUGGEE = @as(u32, 7); pub const DEBUG_STATUS_STEP_BRANCH = @as(u32, 8); pub const DEBUG_STATUS_IGNORE_EVENT = @as(u32, 9); pub const DEBUG_STATUS_RESTART_REQUESTED = @as(u32, 10); pub const DEBUG_STATUS_REVERSE_GO = @as(u32, 11); pub const DEBUG_STATUS_REVERSE_STEP_BRANCH = @as(u32, 12); pub const DEBUG_STATUS_REVERSE_STEP_OVER = @as(u32, 13); pub const DEBUG_STATUS_REVERSE_STEP_INTO = @as(u32, 14); pub const DEBUG_STATUS_OUT_OF_SYNC = @as(u32, 15); pub const DEBUG_STATUS_WAIT_INPUT = @as(u32, 16); pub const DEBUG_STATUS_TIMEOUT = @as(u32, 17); pub const DEBUG_STATUS_MASK = @as(u32, 31); pub const DEBUG_STATUS_INSIDE_WAIT = @as(u64, 4294967296); pub const DEBUG_STATUS_WAIT_TIMEOUT = @as(u64, 8589934592); pub const DEBUG_OUTCTL_THIS_CLIENT = @as(u32, 0); pub const DEBUG_OUTCTL_ALL_CLIENTS = @as(u32, 1); pub const DEBUG_OUTCTL_ALL_OTHER_CLIENTS = @as(u32, 2); pub const DEBUG_OUTCTL_IGNORE = @as(u32, 3); pub const DEBUG_OUTCTL_LOG_ONLY = @as(u32, 4); pub const DEBUG_OUTCTL_SEND_MASK = @as(u32, 7); pub const DEBUG_OUTCTL_NOT_LOGGED = @as(u32, 8); pub const DEBUG_OUTCTL_OVERRIDE_MASK = @as(u32, 16); pub const DEBUG_OUTCTL_DML = @as(u32, 32); pub const DEBUG_OUTCTL_AMBIENT_DML = @as(u32, 4294967294); pub const DEBUG_OUTCTL_AMBIENT_TEXT = @as(u32, 4294967295); pub const DEBUG_OUTCTL_AMBIENT = @as(u32, 4294967295); pub const DEBUG_INTERRUPT_ACTIVE = @as(u32, 0); pub const DEBUG_INTERRUPT_PASSIVE = @as(u32, 1); pub const DEBUG_INTERRUPT_EXIT = @as(u32, 2); pub const DEBUG_CURRENT_DEFAULT = @as(u32, 15); pub const DEBUG_CURRENT_SYMBOL = @as(u32, 1); pub const DEBUG_CURRENT_DISASM = @as(u32, 2); pub const DEBUG_CURRENT_REGISTERS = @as(u32, 4); pub const DEBUG_CURRENT_SOURCE_LINE = @as(u32, 8); pub const DEBUG_DISASM_EFFECTIVE_ADDRESS = @as(u32, 1); pub const DEBUG_DISASM_MATCHING_SYMBOLS = @as(u32, 2); pub const DEBUG_DISASM_SOURCE_LINE_NUMBER = @as(u32, 4); pub const DEBUG_DISASM_SOURCE_FILE_NAME = @as(u32, 8); pub const DEBUG_LEVEL_SOURCE = @as(u32, 0); pub const DEBUG_LEVEL_ASSEMBLY = @as(u32, 1); pub const DEBUG_ENGOPT_IGNORE_DBGHELP_VERSION = @as(u32, 1); pub const DEBUG_ENGOPT_IGNORE_EXTENSION_VERSIONS = @as(u32, 2); pub const DEBUG_ENGOPT_ALLOW_NETWORK_PATHS = @as(u32, 4); pub const DEBUG_ENGOPT_DISALLOW_NETWORK_PATHS = @as(u32, 8); pub const DEBUG_ENGOPT_IGNORE_LOADER_EXCEPTIONS = @as(u32, 16); pub const DEBUG_ENGOPT_INITIAL_BREAK = @as(u32, 32); pub const DEBUG_ENGOPT_INITIAL_MODULE_BREAK = @as(u32, 64); pub const DEBUG_ENGOPT_FINAL_BREAK = @as(u32, 128); pub const DEBUG_ENGOPT_NO_EXECUTE_REPEAT = @as(u32, 256); pub const DEBUG_ENGOPT_FAIL_INCOMPLETE_INFORMATION = @as(u32, 512); pub const DEBUG_ENGOPT_ALLOW_READ_ONLY_BREAKPOINTS = @as(u32, 1024); pub const DEBUG_ENGOPT_SYNCHRONIZE_BREAKPOINTS = @as(u32, 2048); pub const DEBUG_ENGOPT_DISALLOW_SHELL_COMMANDS = @as(u32, 4096); pub const DEBUG_ENGOPT_KD_QUIET_MODE = @as(u32, 8192); pub const DEBUG_ENGOPT_DISABLE_MANAGED_SUPPORT = @as(u32, 16384); pub const DEBUG_ENGOPT_DISABLE_MODULE_SYMBOL_LOAD = @as(u32, 32768); pub const DEBUG_ENGOPT_DISABLE_EXECUTION_COMMANDS = @as(u32, 65536); pub const DEBUG_ENGOPT_DISALLOW_IMAGE_FILE_MAPPING = @as(u32, 131072); pub const DEBUG_ENGOPT_PREFER_DML = @as(u32, 262144); pub const DEBUG_ENGOPT_DISABLESQM = @as(u32, 524288); pub const DEBUG_ENGOPT_DISABLE_STEPLINES_OPTIONS = @as(u32, 2097152); pub const DEBUG_ENGOPT_DEBUGGING_SENSITIVE_DATA = @as(u32, 4194304); pub const DEBUG_ENGOPT_PREFER_TRACE_FILES = @as(u32, 8388608); pub const DEBUG_ENGOPT_ALL = @as(u32, 15728639); pub const DEBUG_ANY_ID = @as(u32, 4294967295); pub const DBG_FRAME_DEFAULT = @as(u32, 0); pub const DBG_FRAME_IGNORE_INLINE = @as(u32, 4294967295); pub const STACK_FRAME_TYPE_INIT = @as(u32, 0); pub const STACK_FRAME_TYPE_STACK = @as(u32, 1); pub const STACK_FRAME_TYPE_INLINE = @as(u32, 2); pub const STACK_FRAME_TYPE_RA = @as(u32, 128); pub const STACK_FRAME_TYPE_IGNORE = @as(u32, 255); pub const DEBUG_STACK_ARGUMENTS = @as(u32, 1); pub const DEBUG_STACK_FUNCTION_INFO = @as(u32, 2); pub const DEBUG_STACK_SOURCE_LINE = @as(u32, 4); pub const DEBUG_STACK_FRAME_ADDRESSES = @as(u32, 8); pub const DEBUG_STACK_COLUMN_NAMES = @as(u32, 16); pub const DEBUG_STACK_NONVOLATILE_REGISTERS = @as(u32, 32); pub const DEBUG_STACK_FRAME_NUMBERS = @as(u32, 64); pub const DEBUG_STACK_PARAMETERS = @as(u32, 128); pub const DEBUG_STACK_FRAME_ADDRESSES_RA_ONLY = @as(u32, 256); pub const DEBUG_STACK_FRAME_MEMORY_USAGE = @as(u32, 512); pub const DEBUG_STACK_PARAMETERS_NEWLINE = @as(u32, 1024); pub const DEBUG_STACK_DML = @as(u32, 2048); pub const DEBUG_STACK_FRAME_OFFSETS = @as(u32, 4096); pub const DEBUG_STACK_PROVIDER = @as(u32, 8192); pub const DEBUG_STACK_FRAME_ARCH = @as(u32, 16384); pub const DEBUG_CLASS_UNINITIALIZED = @as(u32, 0); pub const DEBUG_CLASS_KERNEL = @as(u32, 1); pub const DEBUG_CLASS_USER_WINDOWS = @as(u32, 2); pub const DEBUG_CLASS_IMAGE_FILE = @as(u32, 3); pub const DEBUG_DUMP_SMALL = @as(u32, 1024); pub const DEBUG_DUMP_DEFAULT = @as(u32, 1025); pub const DEBUG_DUMP_FULL = @as(u32, 1026); pub const DEBUG_DUMP_IMAGE_FILE = @as(u32, 1027); pub const DEBUG_DUMP_TRACE_LOG = @as(u32, 1028); pub const DEBUG_DUMP_WINDOWS_CE = @as(u32, 1029); pub const DEBUG_DUMP_ACTIVE = @as(u32, 1030); pub const DEBUG_KERNEL_CONNECTION = @as(u32, 0); pub const DEBUG_KERNEL_LOCAL = @as(u32, 1); pub const DEBUG_KERNEL_EXDI_DRIVER = @as(u32, 2); pub const DEBUG_KERNEL_IDNA = @as(u32, 3); pub const DEBUG_KERNEL_INSTALL_DRIVER = @as(u32, 4); pub const DEBUG_KERNEL_REPT = @as(u32, 5); pub const DEBUG_KERNEL_SMALL_DUMP = @as(u32, 1024); pub const DEBUG_KERNEL_DUMP = @as(u32, 1025); pub const DEBUG_KERNEL_ACTIVE_DUMP = @as(u32, 1030); pub const DEBUG_KERNEL_FULL_DUMP = @as(u32, 1026); pub const DEBUG_KERNEL_TRACE_LOG = @as(u32, 1028); pub const DEBUG_USER_WINDOWS_PROCESS = @as(u32, 0); pub const DEBUG_USER_WINDOWS_PROCESS_SERVER = @as(u32, 1); pub const DEBUG_USER_WINDOWS_IDNA = @as(u32, 2); pub const DEBUG_USER_WINDOWS_REPT = @as(u32, 3); pub const DEBUG_USER_WINDOWS_SMALL_DUMP = @as(u32, 1024); pub const DEBUG_USER_WINDOWS_DUMP = @as(u32, 1025); pub const DEBUG_USER_WINDOWS_DUMP_WINDOWS_CE = @as(u32, 1029); pub const DEBUG_EXTENSION_AT_ENGINE = @as(u32, 0); pub const DEBUG_EXECUTE_DEFAULT = @as(u32, 0); pub const DEBUG_EXECUTE_ECHO = @as(u32, 1); pub const DEBUG_EXECUTE_NOT_LOGGED = @as(u32, 2); pub const DEBUG_EXECUTE_NO_REPEAT = @as(u32, 4); pub const DEBUG_EXECUTE_USER_TYPED = @as(u32, 8); pub const DEBUG_EXECUTE_USER_CLICKED = @as(u32, 16); pub const DEBUG_EXECUTE_EXTENSION = @as(u32, 32); pub const DEBUG_EXECUTE_INTERNAL = @as(u32, 64); pub const DEBUG_EXECUTE_SCRIPT = @as(u32, 128); pub const DEBUG_EXECUTE_TOOLBAR = @as(u32, 256); pub const DEBUG_EXECUTE_MENU = @as(u32, 512); pub const DEBUG_EXECUTE_HOTKEY = @as(u32, 1024); pub const DEBUG_EXECUTE_EVENT = @as(u32, 2048); pub const DEBUG_FILTER_CREATE_THREAD = @as(u32, 0); pub const DEBUG_FILTER_EXIT_THREAD = @as(u32, 1); pub const DEBUG_FILTER_CREATE_PROCESS = @as(u32, 2); pub const DEBUG_FILTER_EXIT_PROCESS = @as(u32, 3); pub const DEBUG_FILTER_LOAD_MODULE = @as(u32, 4); pub const DEBUG_FILTER_UNLOAD_MODULE = @as(u32, 5); pub const DEBUG_FILTER_SYSTEM_ERROR = @as(u32, 6); pub const DEBUG_FILTER_INITIAL_BREAKPOINT = @as(u32, 7); pub const DEBUG_FILTER_INITIAL_MODULE_LOAD = @as(u32, 8); pub const DEBUG_FILTER_DEBUGGEE_OUTPUT = @as(u32, 9); pub const DEBUG_FILTER_BREAK = @as(u32, 0); pub const DEBUG_FILTER_SECOND_CHANCE_BREAK = @as(u32, 1); pub const DEBUG_FILTER_OUTPUT = @as(u32, 2); pub const DEBUG_FILTER_IGNORE = @as(u32, 3); pub const DEBUG_FILTER_REMOVE = @as(u32, 4); pub const DEBUG_FILTER_GO_HANDLED = @as(u32, 0); pub const DEBUG_FILTER_GO_NOT_HANDLED = @as(u32, 1); pub const DEBUG_WAIT_DEFAULT = @as(u32, 0); pub const DEBUG_VALUE_INVALID = @as(u32, 0); pub const DEBUG_VALUE_INT8 = @as(u32, 1); pub const DEBUG_VALUE_INT16 = @as(u32, 2); pub const DEBUG_VALUE_INT32 = @as(u32, 3); pub const DEBUG_VALUE_INT64 = @as(u32, 4); pub const DEBUG_VALUE_FLOAT32 = @as(u32, 5); pub const DEBUG_VALUE_FLOAT64 = @as(u32, 6); pub const DEBUG_VALUE_FLOAT80 = @as(u32, 7); pub const DEBUG_VALUE_FLOAT82 = @as(u32, 8); pub const DEBUG_VALUE_FLOAT128 = @as(u32, 9); pub const DEBUG_VALUE_VECTOR64 = @as(u32, 10); pub const DEBUG_VALUE_VECTOR128 = @as(u32, 11); pub const DEBUG_VALUE_TYPES = @as(u32, 12); pub const DEBUG_OUT_TEXT_REPL_DEFAULT = @as(u32, 0); pub const DEBUG_ASMOPT_DEFAULT = @as(u32, 0); pub const DEBUG_ASMOPT_VERBOSE = @as(u32, 1); pub const DEBUG_ASMOPT_NO_CODE_BYTES = @as(u32, 2); pub const DEBUG_ASMOPT_IGNORE_OUTPUT_WIDTH = @as(u32, 4); pub const DEBUG_ASMOPT_SOURCE_LINE_NUMBER = @as(u32, 8); pub const DEBUG_EXPR_MASM = @as(u32, 0); pub const DEBUG_EXPR_CPLUSPLUS = @as(u32, 1); pub const DEBUG_EINDEX_NAME = @as(u32, 0); pub const DEBUG_EINDEX_FROM_START = @as(u32, 0); pub const DEBUG_EINDEX_FROM_END = @as(u32, 1); pub const DEBUG_EINDEX_FROM_CURRENT = @as(u32, 2); pub const DEBUG_LOG_DEFAULT = @as(u32, 0); pub const DEBUG_LOG_APPEND = @as(u32, 1); pub const DEBUG_LOG_UNICODE = @as(u32, 2); pub const DEBUG_LOG_DML = @as(u32, 4); pub const DEBUG_SYSVERSTR_SERVICE_PACK = @as(u32, 0); pub const DEBUG_SYSVERSTR_BUILD = @as(u32, 1); pub const DEBUG_MANAGED_DISABLED = @as(u32, 0); pub const DEBUG_MANAGED_ALLOWED = @as(u32, 1); pub const DEBUG_MANAGED_DLL_LOADED = @as(u32, 2); pub const DEBUG_MANSTR_NONE = @as(u32, 0); pub const DEBUG_MANSTR_LOADED_SUPPORT_DLL = @as(u32, 1); pub const DEBUG_MANSTR_LOAD_STATUS = @as(u32, 2); pub const DEBUG_MANRESET_DEFAULT = @as(u32, 0); pub const DEBUG_MANRESET_LOAD_DLL = @as(u32, 1); pub const DEBUG_EXEC_FLAGS_NONBLOCK = @as(u32, 1); pub const DEBUG_DATA_SPACE_VIRTUAL = @as(u32, 0); pub const DEBUG_DATA_SPACE_PHYSICAL = @as(u32, 1); pub const DEBUG_DATA_SPACE_CONTROL = @as(u32, 2); pub const DEBUG_DATA_SPACE_IO = @as(u32, 3); pub const DEBUG_DATA_SPACE_MSR = @as(u32, 4); pub const DEBUG_DATA_SPACE_BUS_DATA = @as(u32, 5); pub const DEBUG_DATA_SPACE_DEBUGGER_DATA = @as(u32, 6); pub const DEBUG_DATA_SPACE_COUNT = @as(u32, 7); pub const DEBUG_DATA_KernBase = @as(u32, 24); pub const DEBUG_DATA_BreakpointWithStatusAddr = @as(u32, 32); pub const DEBUG_DATA_SavedContextAddr = @as(u32, 40); pub const DEBUG_DATA_KiCallUserModeAddr = @as(u32, 56); pub const DEBUG_DATA_KeUserCallbackDispatcherAddr = @as(u32, 64); pub const DEBUG_DATA_PsLoadedModuleListAddr = @as(u32, 72); pub const DEBUG_DATA_PsActiveProcessHeadAddr = @as(u32, 80); pub const DEBUG_DATA_PspCidTableAddr = @as(u32, 88); pub const DEBUG_DATA_ExpSystemResourcesListAddr = @as(u32, 96); pub const DEBUG_DATA_ExpPagedPoolDescriptorAddr = @as(u32, 104); pub const DEBUG_DATA_ExpNumberOfPagedPoolsAddr = @as(u32, 112); pub const DEBUG_DATA_KeTimeIncrementAddr = @as(u32, 120); pub const DEBUG_DATA_KeBugCheckCallbackListHeadAddr = @as(u32, 128); pub const DEBUG_DATA_KiBugcheckDataAddr = @as(u32, 136); pub const DEBUG_DATA_IopErrorLogListHeadAddr = @as(u32, 144); pub const DEBUG_DATA_ObpRootDirectoryObjectAddr = @as(u32, 152); pub const DEBUG_DATA_ObpTypeObjectTypeAddr = @as(u32, 160); pub const DEBUG_DATA_MmSystemCacheStartAddr = @as(u32, 168); pub const DEBUG_DATA_MmSystemCacheEndAddr = @as(u32, 176); pub const DEBUG_DATA_MmSystemCacheWsAddr = @as(u32, 184); pub const DEBUG_DATA_MmPfnDatabaseAddr = @as(u32, 192); pub const DEBUG_DATA_MmSystemPtesStartAddr = @as(u32, 200); pub const DEBUG_DATA_MmSystemPtesEndAddr = @as(u32, 208); pub const DEBUG_DATA_MmSubsectionBaseAddr = @as(u32, 216); pub const DEBUG_DATA_MmNumberOfPagingFilesAddr = @as(u32, 224); pub const DEBUG_DATA_MmLowestPhysicalPageAddr = @as(u32, 232); pub const DEBUG_DATA_MmHighestPhysicalPageAddr = @as(u32, 240); pub const DEBUG_DATA_MmNumberOfPhysicalPagesAddr = @as(u32, 248); pub const DEBUG_DATA_MmMaximumNonPagedPoolInBytesAddr = @as(u32, 256); pub const DEBUG_DATA_MmNonPagedSystemStartAddr = @as(u32, 264); pub const DEBUG_DATA_MmNonPagedPoolStartAddr = @as(u32, 272); pub const DEBUG_DATA_MmNonPagedPoolEndAddr = @as(u32, 280); pub const DEBUG_DATA_MmPagedPoolStartAddr = @as(u32, 288); pub const DEBUG_DATA_MmPagedPoolEndAddr = @as(u32, 296); pub const DEBUG_DATA_MmPagedPoolInformationAddr = @as(u32, 304); pub const DEBUG_DATA_MmPageSize = @as(u32, 312); pub const DEBUG_DATA_MmSizeOfPagedPoolInBytesAddr = @as(u32, 320); pub const DEBUG_DATA_MmTotalCommitLimitAddr = @as(u32, 328); pub const DEBUG_DATA_MmTotalCommittedPagesAddr = @as(u32, 336); pub const DEBUG_DATA_MmSharedCommitAddr = @as(u32, 344); pub const DEBUG_DATA_MmDriverCommitAddr = @as(u32, 352); pub const DEBUG_DATA_MmProcessCommitAddr = @as(u32, 360); pub const DEBUG_DATA_MmPagedPoolCommitAddr = @as(u32, 368); pub const DEBUG_DATA_MmExtendedCommitAddr = @as(u32, 376); pub const DEBUG_DATA_MmZeroedPageListHeadAddr = @as(u32, 384); pub const DEBUG_DATA_MmFreePageListHeadAddr = @as(u32, 392); pub const DEBUG_DATA_MmStandbyPageListHeadAddr = @as(u32, 400); pub const DEBUG_DATA_MmModifiedPageListHeadAddr = @as(u32, 408); pub const DEBUG_DATA_MmModifiedNoWritePageListHeadAddr = @as(u32, 416); pub const DEBUG_DATA_MmAvailablePagesAddr = @as(u32, 424); pub const DEBUG_DATA_MmResidentAvailablePagesAddr = @as(u32, 432); pub const DEBUG_DATA_PoolTrackTableAddr = @as(u32, 440); pub const DEBUG_DATA_NonPagedPoolDescriptorAddr = @as(u32, 448); pub const DEBUG_DATA_MmHighestUserAddressAddr = @as(u32, 456); pub const DEBUG_DATA_MmSystemRangeStartAddr = @as(u32, 464); pub const DEBUG_DATA_MmUserProbeAddressAddr = @as(u32, 472); pub const DEBUG_DATA_KdPrintCircularBufferAddr = @as(u32, 480); pub const DEBUG_DATA_KdPrintCircularBufferEndAddr = @as(u32, 488); pub const DEBUG_DATA_KdPrintWritePointerAddr = @as(u32, 496); pub const DEBUG_DATA_KdPrintRolloverCountAddr = @as(u32, 504); pub const DEBUG_DATA_MmLoadedUserImageListAddr = @as(u32, 512); pub const DEBUG_DATA_NtBuildLabAddr = @as(u32, 520); pub const DEBUG_DATA_KiNormalSystemCall = @as(u32, 528); pub const DEBUG_DATA_KiProcessorBlockAddr = @as(u32, 536); pub const DEBUG_DATA_MmUnloadedDriversAddr = @as(u32, 544); pub const DEBUG_DATA_MmLastUnloadedDriverAddr = @as(u32, 552); pub const DEBUG_DATA_MmTriageActionTakenAddr = @as(u32, 560); pub const DEBUG_DATA_MmSpecialPoolTagAddr = @as(u32, 568); pub const DEBUG_DATA_KernelVerifierAddr = @as(u32, 576); pub const DEBUG_DATA_MmVerifierDataAddr = @as(u32, 584); pub const DEBUG_DATA_MmAllocatedNonPagedPoolAddr = @as(u32, 592); pub const DEBUG_DATA_MmPeakCommitmentAddr = @as(u32, 600); pub const DEBUG_DATA_MmTotalCommitLimitMaximumAddr = @as(u32, 608); pub const DEBUG_DATA_CmNtCSDVersionAddr = @as(u32, 616); pub const DEBUG_DATA_MmPhysicalMemoryBlockAddr = @as(u32, 624); pub const DEBUG_DATA_MmSessionBase = @as(u32, 632); pub const DEBUG_DATA_MmSessionSize = @as(u32, 640); pub const DEBUG_DATA_MmSystemParentTablePage = @as(u32, 648); pub const DEBUG_DATA_MmVirtualTranslationBase = @as(u32, 656); pub const DEBUG_DATA_OffsetKThreadNextProcessor = @as(u32, 664); pub const DEBUG_DATA_OffsetKThreadTeb = @as(u32, 666); pub const DEBUG_DATA_OffsetKThreadKernelStack = @as(u32, 668); pub const DEBUG_DATA_OffsetKThreadInitialStack = @as(u32, 670); pub const DEBUG_DATA_OffsetKThreadApcProcess = @as(u32, 672); pub const DEBUG_DATA_OffsetKThreadState = @as(u32, 674); pub const DEBUG_DATA_OffsetKThreadBStore = @as(u32, 676); pub const DEBUG_DATA_OffsetKThreadBStoreLimit = @as(u32, 678); pub const DEBUG_DATA_SizeEProcess = @as(u32, 680); pub const DEBUG_DATA_OffsetEprocessPeb = @as(u32, 682); pub const DEBUG_DATA_OffsetEprocessParentCID = @as(u32, 684); pub const DEBUG_DATA_OffsetEprocessDirectoryTableBase = @as(u32, 686); pub const DEBUG_DATA_SizePrcb = @as(u32, 688); pub const DEBUG_DATA_OffsetPrcbDpcRoutine = @as(u32, 690); pub const DEBUG_DATA_OffsetPrcbCurrentThread = @as(u32, 692); pub const DEBUG_DATA_OffsetPrcbMhz = @as(u32, 694); pub const DEBUG_DATA_OffsetPrcbCpuType = @as(u32, 696); pub const DEBUG_DATA_OffsetPrcbVendorString = @as(u32, 698); pub const DEBUG_DATA_OffsetPrcbProcessorState = @as(u32, 700); pub const DEBUG_DATA_OffsetPrcbNumber = @as(u32, 702); pub const DEBUG_DATA_SizeEThread = @as(u32, 704); pub const DEBUG_DATA_KdPrintCircularBufferPtrAddr = @as(u32, 712); pub const DEBUG_DATA_KdPrintBufferSizeAddr = @as(u32, 720); pub const DEBUG_DATA_MmBadPagesDetected = @as(u32, 800); pub const DEBUG_DATA_EtwpDebuggerData = @as(u32, 816); pub const DEBUG_DATA_PteBase = @as(u32, 864); pub const DEBUG_DATA_PaeEnabled = @as(u32, 100000); pub const DEBUG_DATA_SharedUserData = @as(u32, 100008); pub const DEBUG_DATA_ProductType = @as(u32, 100016); pub const DEBUG_DATA_SuiteMask = @as(u32, 100024); pub const DEBUG_DATA_DumpWriterStatus = @as(u32, 100032); pub const DEBUG_DATA_DumpFormatVersion = @as(u32, 100040); pub const DEBUG_DATA_DumpWriterVersion = @as(u32, 100048); pub const DEBUG_DATA_DumpPowerState = @as(u32, 100056); pub const DEBUG_DATA_DumpMmStorage = @as(u32, 100064); pub const DEBUG_DATA_DumpAttributes = @as(u32, 100072); pub const DEBUG_DATA_KPCR_OFFSET = @as(u32, 0); pub const DEBUG_DATA_KPRCB_OFFSET = @as(u32, 1); pub const DEBUG_DATA_KTHREAD_OFFSET = @as(u32, 2); pub const DEBUG_DATA_BASE_TRANSLATION_VIRTUAL_OFFSET = @as(u32, 3); pub const DEBUG_DATA_PROCESSOR_IDENTIFICATION = @as(u32, 4); pub const DEBUG_DATA_PROCESSOR_SPEED = @as(u32, 5); pub const DEBUG_HANDLE_DATA_TYPE_BASIC = @as(u32, 0); pub const DEBUG_HANDLE_DATA_TYPE_TYPE_NAME = @as(u32, 1); pub const DEBUG_HANDLE_DATA_TYPE_OBJECT_NAME = @as(u32, 2); pub const DEBUG_HANDLE_DATA_TYPE_HANDLE_COUNT = @as(u32, 3); pub const DEBUG_HANDLE_DATA_TYPE_TYPE_NAME_WIDE = @as(u32, 4); pub const DEBUG_HANDLE_DATA_TYPE_OBJECT_NAME_WIDE = @as(u32, 5); pub const DEBUG_HANDLE_DATA_TYPE_MINI_THREAD_1 = @as(u32, 6); pub const DEBUG_HANDLE_DATA_TYPE_MINI_MUTANT_1 = @as(u32, 7); pub const DEBUG_HANDLE_DATA_TYPE_MINI_MUTANT_2 = @as(u32, 8); pub const DEBUG_HANDLE_DATA_TYPE_PER_HANDLE_OPERATIONS = @as(u32, 9); pub const DEBUG_HANDLE_DATA_TYPE_ALL_HANDLE_OPERATIONS = @as(u32, 10); pub const DEBUG_HANDLE_DATA_TYPE_MINI_PROCESS_1 = @as(u32, 11); pub const DEBUG_HANDLE_DATA_TYPE_MINI_PROCESS_2 = @as(u32, 12); pub const DEBUG_HANDLE_DATA_TYPE_MINI_EVENT_1 = @as(u32, 13); pub const DEBUG_HANDLE_DATA_TYPE_MINI_SECTION_1 = @as(u32, 14); pub const DEBUG_HANDLE_DATA_TYPE_MINI_SEMAPHORE_1 = @as(u32, 15); pub const DEBUG_OFFSINFO_VIRTUAL_SOURCE = @as(u32, 1); pub const DEBUG_VSOURCE_INVALID = @as(u32, 0); pub const DEBUG_VSOURCE_DEBUGGEE = @as(u32, 1); pub const DEBUG_VSOURCE_MAPPED_IMAGE = @as(u32, 2); pub const DEBUG_VSOURCE_DUMP_WITHOUT_MEMINFO = @as(u32, 3); pub const DEBUG_VSEARCH_DEFAULT = @as(u32, 0); pub const DEBUG_VSEARCH_WRITABLE_ONLY = @as(u32, 1); pub const DEBUG_PHYSICAL_DEFAULT = @as(u32, 0); pub const DEBUG_PHYSICAL_CACHED = @as(u32, 1); pub const DEBUG_PHYSICAL_UNCACHED = @as(u32, 2); pub const DEBUG_PHYSICAL_WRITE_COMBINED = @as(u32, 3); pub const DEBUG_EVENT_BREAKPOINT = @as(u32, 1); pub const DEBUG_EVENT_EXCEPTION = @as(u32, 2); pub const DEBUG_EVENT_CREATE_THREAD = @as(u32, 4); pub const DEBUG_EVENT_EXIT_THREAD = @as(u32, 8); pub const DEBUG_EVENT_CREATE_PROCESS = @as(u32, 16); pub const DEBUG_EVENT_EXIT_PROCESS = @as(u32, 32); pub const DEBUG_EVENT_LOAD_MODULE = @as(u32, 64); pub const DEBUG_EVENT_UNLOAD_MODULE = @as(u32, 128); pub const DEBUG_EVENT_SYSTEM_ERROR = @as(u32, 256); pub const DEBUG_EVENT_SESSION_STATUS = @as(u32, 512); pub const DEBUG_EVENT_CHANGE_DEBUGGEE_STATE = @as(u32, 1024); pub const DEBUG_EVENT_CHANGE_ENGINE_STATE = @as(u32, 2048); pub const DEBUG_EVENT_CHANGE_SYMBOL_STATE = @as(u32, 4096); pub const DEBUG_EVENT_SERVICE_EXCEPTION = @as(u32, 8192); pub const DEBUG_SESSION_ACTIVE = @as(u32, 0); pub const DEBUG_SESSION_END_SESSION_ACTIVE_TERMINATE = @as(u32, 1); pub const DEBUG_SESSION_END_SESSION_ACTIVE_DETACH = @as(u32, 2); pub const DEBUG_SESSION_END_SESSION_PASSIVE = @as(u32, 3); pub const DEBUG_SESSION_END = @as(u32, 4); pub const DEBUG_SESSION_REBOOT = @as(u32, 5); pub const DEBUG_SESSION_HIBERNATE = @as(u32, 6); pub const DEBUG_SESSION_FAILURE = @as(u32, 7); pub const DEBUG_CDS_ALL = @as(u32, 4294967295); pub const DEBUG_CDS_REGISTERS = @as(u32, 1); pub const DEBUG_CDS_DATA = @as(u32, 2); pub const DEBUG_CDS_REFRESH = @as(u32, 4); pub const DEBUG_CDS_REFRESH_EVALUATE = @as(u32, 1); pub const DEBUG_CDS_REFRESH_EXECUTE = @as(u32, 2); pub const DEBUG_CDS_REFRESH_EXECUTECOMMANDFILE = @as(u32, 3); pub const DEBUG_CDS_REFRESH_ADDBREAKPOINT = @as(u32, 4); pub const DEBUG_CDS_REFRESH_REMOVEBREAKPOINT = @as(u32, 5); pub const DEBUG_CDS_REFRESH_WRITEVIRTUAL = @as(u32, 6); pub const DEBUG_CDS_REFRESH_WRITEVIRTUALUNCACHED = @as(u32, 7); pub const DEBUG_CDS_REFRESH_WRITEPHYSICAL = @as(u32, 8); pub const DEBUG_CDS_REFRESH_WRITEPHYSICAL2 = @as(u32, 9); pub const DEBUG_CDS_REFRESH_SETVALUE = @as(u32, 10); pub const DEBUG_CDS_REFRESH_SETVALUE2 = @as(u32, 11); pub const DEBUG_CDS_REFRESH_SETSCOPE = @as(u32, 12); pub const DEBUG_CDS_REFRESH_SETSCOPEFRAMEBYINDEX = @as(u32, 13); pub const DEBUG_CDS_REFRESH_SETSCOPEFROMJITDEBUGINFO = @as(u32, 14); pub const DEBUG_CDS_REFRESH_SETSCOPEFROMSTOREDEVENT = @as(u32, 15); pub const DEBUG_CDS_REFRESH_INLINESTEP = @as(u32, 16); pub const DEBUG_CDS_REFRESH_INLINESTEP_PSEUDO = @as(u32, 17); pub const DEBUG_CES_ALL = @as(u32, 4294967295); pub const DEBUG_CES_CURRENT_THREAD = @as(u32, 1); pub const DEBUG_CES_EFFECTIVE_PROCESSOR = @as(u32, 2); pub const DEBUG_CES_BREAKPOINTS = @as(u32, 4); pub const DEBUG_CES_CODE_LEVEL = @as(u32, 8); pub const DEBUG_CES_EXECUTION_STATUS = @as(u32, 16); pub const DEBUG_CES_ENGINE_OPTIONS = @as(u32, 32); pub const DEBUG_CES_LOG_FILE = @as(u32, 64); pub const DEBUG_CES_RADIX = @as(u32, 128); pub const DEBUG_CES_EVENT_FILTERS = @as(u32, 256); pub const DEBUG_CES_PROCESS_OPTIONS = @as(u32, 512); pub const DEBUG_CES_EXTENSIONS = @as(u32, 1024); pub const DEBUG_CES_SYSTEMS = @as(u32, 2048); pub const DEBUG_CES_ASSEMBLY_OPTIONS = @as(u32, 4096); pub const DEBUG_CES_EXPRESSION_SYNTAX = @as(u32, 8192); pub const DEBUG_CES_TEXT_REPLACEMENTS = @as(u32, 16384); pub const DEBUG_CSS_ALL = @as(u32, 4294967295); pub const DEBUG_CSS_LOADS = @as(u32, 1); pub const DEBUG_CSS_UNLOADS = @as(u32, 2); pub const DEBUG_CSS_SCOPE = @as(u32, 4); pub const DEBUG_CSS_PATHS = @as(u32, 8); pub const DEBUG_CSS_SYMBOL_OPTIONS = @as(u32, 16); pub const DEBUG_CSS_TYPE_OPTIONS = @as(u32, 32); pub const DEBUG_CSS_COLLAPSE_CHILDREN = @as(u32, 64); pub const DEBUG_OUTCBI_EXPLICIT_FLUSH = @as(u32, 1); pub const DEBUG_OUTCBI_TEXT = @as(u32, 2); pub const DEBUG_OUTCBI_DML = @as(u32, 4); pub const DEBUG_OUTCBI_ANY_FORMAT = @as(u32, 6); pub const DEBUG_OUTCB_TEXT = @as(u32, 0); pub const DEBUG_OUTCB_DML = @as(u32, 1); pub const DEBUG_OUTCB_EXPLICIT_FLUSH = @as(u32, 2); pub const DEBUG_OUTCBF_COMBINED_EXPLICIT_FLUSH = @as(u32, 1); pub const DEBUG_OUTCBF_DML_HAS_TAGS = @as(u32, 2); pub const DEBUG_OUTCBF_DML_HAS_SPECIAL_CHARACTERS = @as(u32, 4); pub const DEBUG_REGISTERS_DEFAULT = @as(u32, 0); pub const DEBUG_REGISTERS_INT32 = @as(u32, 1); pub const DEBUG_REGISTERS_INT64 = @as(u32, 2); pub const DEBUG_REGISTERS_FLOAT = @as(u32, 4); pub const DEBUG_REGISTERS_ALL = @as(u32, 7); pub const DEBUG_REGISTER_SUB_REGISTER = @as(u32, 1); pub const DEBUG_REGSRC_DEBUGGEE = @as(u32, 0); pub const DEBUG_REGSRC_EXPLICIT = @as(u32, 1); pub const DEBUG_REGSRC_FRAME = @as(u32, 2); pub const DEBUG_OUTPUT_SYMBOLS_DEFAULT = @as(u32, 0); pub const DEBUG_OUTPUT_SYMBOLS_NO_NAMES = @as(u32, 1); pub const DEBUG_OUTPUT_SYMBOLS_NO_OFFSETS = @as(u32, 2); pub const DEBUG_OUTPUT_SYMBOLS_NO_VALUES = @as(u32, 4); pub const DEBUG_OUTPUT_SYMBOLS_NO_TYPES = @as(u32, 16); pub const DEBUG_SYMBOL_EXPANSION_LEVEL_MASK = @as(u32, 15); pub const DEBUG_SYMBOL_EXPANDED = @as(u32, 16); pub const DEBUG_SYMBOL_READ_ONLY = @as(u32, 32); pub const DEBUG_SYMBOL_IS_ARRAY = @as(u32, 64); pub const DEBUG_SYMBOL_IS_FLOAT = @as(u32, 128); pub const DEBUG_SYMBOL_IS_ARGUMENT = @as(u32, 256); pub const DEBUG_SYMBOL_IS_LOCAL = @as(u32, 512); pub const DEBUG_SYMENT_IS_CODE = @as(u32, 1); pub const DEBUG_SYMENT_IS_DATA = @as(u32, 2); pub const DEBUG_SYMENT_IS_PARAMETER = @as(u32, 4); pub const DEBUG_SYMENT_IS_LOCAL = @as(u32, 8); pub const DEBUG_SYMENT_IS_MANAGED = @as(u32, 16); pub const DEBUG_SYMENT_IS_SYNTHETIC = @as(u32, 32); pub const DEBUG_MODULE_LOADED = @as(u32, 0); pub const DEBUG_MODULE_UNLOADED = @as(u32, 1); pub const DEBUG_MODULE_USER_MODE = @as(u32, 2); pub const DEBUG_MODULE_EXE_MODULE = @as(u32, 4); pub const DEBUG_MODULE_EXPLICIT = @as(u32, 8); pub const DEBUG_MODULE_SECONDARY = @as(u32, 16); pub const DEBUG_MODULE_SYNTHETIC = @as(u32, 32); pub const DEBUG_MODULE_SYM_BAD_CHECKSUM = @as(u32, 65536); pub const DEBUG_SYMTYPE_NONE = @as(u32, 0); pub const DEBUG_SYMTYPE_COFF = @as(u32, 1); pub const DEBUG_SYMTYPE_CODEVIEW = @as(u32, 2); pub const DEBUG_SYMTYPE_PDB = @as(u32, 3); pub const DEBUG_SYMTYPE_EXPORT = @as(u32, 4); pub const DEBUG_SYMTYPE_DEFERRED = @as(u32, 5); pub const DEBUG_SYMTYPE_SYM = @as(u32, 6); pub const DEBUG_SYMTYPE_DIA = @as(u32, 7); pub const DEBUG_SCOPE_GROUP_ARGUMENTS = @as(u32, 1); pub const DEBUG_SCOPE_GROUP_LOCALS = @as(u32, 2); pub const DEBUG_SCOPE_GROUP_ALL = @as(u32, 3); pub const DEBUG_SCOPE_GROUP_BY_DATAMODEL = @as(u32, 4); pub const DEBUG_OUTTYPE_DEFAULT = @as(u32, 0); pub const DEBUG_OUTTYPE_NO_INDENT = @as(u32, 1); pub const DEBUG_OUTTYPE_NO_OFFSET = @as(u32, 2); pub const DEBUG_OUTTYPE_VERBOSE = @as(u32, 4); pub const DEBUG_OUTTYPE_COMPACT_OUTPUT = @as(u32, 8); pub const DEBUG_OUTTYPE_ADDRESS_OF_FIELD = @as(u32, 65536); pub const DEBUG_OUTTYPE_ADDRESS_AT_END = @as(u32, 131072); pub const DEBUG_OUTTYPE_BLOCK_RECURSE = @as(u32, 2097152); pub const DEBUG_FIND_SOURCE_DEFAULT = @as(u32, 0); pub const DEBUG_FIND_SOURCE_FULL_PATH = @as(u32, 1); pub const DEBUG_FIND_SOURCE_BEST_MATCH = @as(u32, 2); pub const DEBUG_FIND_SOURCE_NO_SRCSRV = @as(u32, 4); pub const DEBUG_FIND_SOURCE_TOKEN_LOOKUP = @as(u32, 8); pub const DEBUG_FIND_SOURCE_WITH_CHECKSUM = @as(u32, 16); pub const DEBUG_FIND_SOURCE_WITH_CHECKSUM_STRICT = @as(u32, 32); pub const MODULE_ORDERS_MASK = @as(u32, 4026531840); pub const MODULE_ORDERS_LOADTIME = @as(u32, 268435456); pub const MODULE_ORDERS_MODULENAME = @as(u32, 536870912); pub const DEBUG_MODNAME_IMAGE = @as(u32, 0); pub const DEBUG_MODNAME_MODULE = @as(u32, 1); pub const DEBUG_MODNAME_LOADED_IMAGE = @as(u32, 2); pub const DEBUG_MODNAME_SYMBOL_FILE = @as(u32, 3); pub const DEBUG_MODNAME_MAPPED_IMAGE = @as(u32, 4); pub const DEBUG_TYPEOPTS_UNICODE_DISPLAY = @as(u32, 1); pub const DEBUG_TYPEOPTS_LONGSTATUS_DISPLAY = @as(u32, 2); pub const DEBUG_TYPEOPTS_FORCERADIX_OUTPUT = @as(u32, 4); pub const DEBUG_TYPEOPTS_MATCH_MAXSIZE = @as(u32, 8); pub const DEBUG_GETMOD_DEFAULT = @as(u32, 0); pub const DEBUG_GETMOD_NO_LOADED_MODULES = @as(u32, 1); pub const DEBUG_GETMOD_NO_UNLOADED_MODULES = @as(u32, 2); pub const DEBUG_ADDSYNTHMOD_DEFAULT = @as(u32, 0); pub const DEBUG_ADDSYNTHMOD_ZEROBASE = @as(u32, 1); pub const DEBUG_ADDSYNTHSYM_DEFAULT = @as(u32, 0); pub const DEBUG_OUTSYM_DEFAULT = @as(u32, 0); pub const DEBUG_OUTSYM_FORCE_OFFSET = @as(u32, 1); pub const DEBUG_OUTSYM_SOURCE_LINE = @as(u32, 2); pub const DEBUG_OUTSYM_ALLOW_DISPLACEMENT = @as(u32, 4); pub const DEBUG_GETFNENT_DEFAULT = @as(u32, 0); pub const DEBUG_GETFNENT_RAW_ENTRY_ONLY = @as(u32, 1); pub const DEBUG_SOURCE_IS_STATEMENT = @as(u32, 1); pub const DEBUG_GSEL_DEFAULT = @as(u32, 0); pub const DEBUG_GSEL_NO_SYMBOL_LOADS = @as(u32, 1); pub const DEBUG_GSEL_ALLOW_LOWER = @as(u32, 2); pub const DEBUG_GSEL_ALLOW_HIGHER = @as(u32, 4); pub const DEBUG_GSEL_NEAREST_ONLY = @as(u32, 8); pub const DEBUG_GSEL_INLINE_CALLSITE = @as(u32, 16); pub const DEBUG_FRAME_DEFAULT = @as(u32, 0); pub const DEBUG_FRAME_IGNORE_INLINE = @as(u32, 1); pub const DEBUG_COMMAND_EXCEPTION_ID = @as(u32, 3688893886); pub const DEBUG_CMDEX_INVALID = @as(u32, 0); pub const DEBUG_CMDEX_ADD_EVENT_STRING = @as(u32, 1); pub const DEBUG_CMDEX_RESET_EVENT_STRINGS = @as(u32, 2); pub const DEBUG_EXTINIT_HAS_COMMAND_HELP = @as(u32, 1); pub const DEBUG_NOTIFY_SESSION_ACTIVE = @as(u32, 0); pub const DEBUG_NOTIFY_SESSION_INACTIVE = @as(u32, 1); pub const DEBUG_NOTIFY_SESSION_ACCESSIBLE = @as(u32, 2); pub const DEBUG_NOTIFY_SESSION_INACCESSIBLE = @as(u32, 3); pub const DEBUG_KNOWN_STRUCT_GET_NAMES = @as(u32, 1); pub const DEBUG_KNOWN_STRUCT_GET_SINGLE_LINE_OUTPUT = @as(u32, 2); pub const DEBUG_KNOWN_STRUCT_SUPPRESS_TYPE_NAME = @as(u32, 3); pub const DEBUG_EXT_QVALUE_DEFAULT = @as(u32, 0); pub const DEBUG_EXT_PVALUE_DEFAULT = @as(u32, 0); pub const DEBUG_EXT_PVTYPE_IS_VALUE = @as(u32, 0); pub const DEBUG_EXT_PVTYPE_IS_POINTER = @as(u32, 1); pub const CROSS_PLATFORM_MAXIMUM_PROCESSORS = @as(u32, 2048); pub const EXT_API_VERSION_NUMBER = @as(u32, 5); pub const EXT_API_VERSION_NUMBER32 = @as(u32, 5); pub const EXT_API_VERSION_NUMBER64 = @as(u32, 6); pub const IG_KD_CONTEXT = @as(u32, 1); pub const IG_READ_CONTROL_SPACE = @as(u32, 2); pub const IG_WRITE_CONTROL_SPACE = @as(u32, 3); pub const IG_READ_IO_SPACE = @as(u32, 4); pub const IG_WRITE_IO_SPACE = @as(u32, 5); pub const IG_READ_PHYSICAL = @as(u32, 6); pub const IG_WRITE_PHYSICAL = @as(u32, 7); pub const IG_READ_IO_SPACE_EX = @as(u32, 8); pub const IG_WRITE_IO_SPACE_EX = @as(u32, 9); pub const IG_KSTACK_HELP = @as(u32, 10); pub const IG_SET_THREAD = @as(u32, 11); pub const IG_READ_MSR = @as(u32, 12); pub const IG_WRITE_MSR = @as(u32, 13); pub const IG_GET_DEBUGGER_DATA = @as(u32, 14); pub const IG_GET_KERNEL_VERSION = @as(u32, 15); pub const IG_RELOAD_SYMBOLS = @as(u32, 16); pub const IG_GET_SET_SYMPATH = @as(u32, 17); pub const IG_GET_EXCEPTION_RECORD = @as(u32, 18); pub const IG_IS_PTR64 = @as(u32, 19); pub const IG_GET_BUS_DATA = @as(u32, 20); pub const IG_SET_BUS_DATA = @as(u32, 21); pub const IG_DUMP_SYMBOL_INFO = @as(u32, 22); pub const IG_LOWMEM_CHECK = @as(u32, 23); pub const IG_SEARCH_MEMORY = @as(u32, 24); pub const IG_GET_CURRENT_THREAD = @as(u32, 25); pub const IG_GET_CURRENT_PROCESS = @as(u32, 26); pub const IG_GET_TYPE_SIZE = @as(u32, 27); pub const IG_GET_CURRENT_PROCESS_HANDLE = @as(u32, 28); pub const IG_GET_INPUT_LINE = @as(u32, 29); pub const IG_GET_EXPRESSION_EX = @as(u32, 30); pub const IG_TRANSLATE_VIRTUAL_TO_PHYSICAL = @as(u32, 31); pub const IG_GET_CACHE_SIZE = @as(u32, 32); pub const IG_READ_PHYSICAL_WITH_FLAGS = @as(u32, 33); pub const IG_WRITE_PHYSICAL_WITH_FLAGS = @as(u32, 34); pub const IG_POINTER_SEARCH_PHYSICAL = @as(u32, 35); pub const IG_OBSOLETE_PLACEHOLDER_36 = @as(u32, 36); pub const IG_GET_THREAD_OS_INFO = @as(u32, 37); pub const IG_GET_CLR_DATA_INTERFACE = @as(u32, 38); pub const IG_MATCH_PATTERN_A = @as(u32, 39); pub const IG_FIND_FILE = @as(u32, 40); pub const IG_TYPED_DATA_OBSOLETE = @as(u32, 41); pub const IG_QUERY_TARGET_INTERFACE = @as(u32, 42); pub const IG_TYPED_DATA = @as(u32, 43); pub const IG_DISASSEMBLE_BUFFER = @as(u32, 44); pub const IG_GET_ANY_MODULE_IN_RANGE = @as(u32, 45); pub const IG_VIRTUAL_TO_PHYSICAL = @as(u32, 46); pub const IG_PHYSICAL_TO_VIRTUAL = @as(u32, 47); pub const IG_GET_CONTEXT_EX = @as(u32, 48); pub const IG_GET_TEB_ADDRESS = @as(u32, 128); pub const IG_GET_PEB_ADDRESS = @as(u32, 129); pub const PHYS_FLAG_DEFAULT = @as(u32, 0); pub const PHYS_FLAG_CACHED = @as(u32, 1); pub const PHYS_FLAG_UNCACHED = @as(u32, 2); pub const PHYS_FLAG_WRITE_COMBINED = @as(u32, 3); pub const PTR_SEARCH_PHYS_ALL_HITS = @as(u32, 1); pub const PTR_SEARCH_PHYS_PTE = @as(u32, 2); pub const PTR_SEARCH_PHYS_RANGE_CHECK_ONLY = @as(u32, 4); pub const PTR_SEARCH_PHYS_SIZE_SHIFT = @as(u32, 3); pub const PTR_SEARCH_NO_SYMBOL_CHECK = @as(u32, 2147483648); pub const EXT_FIND_FILE_ALLOW_GIVEN_PATH = @as(u32, 1); pub const DEBUG_TYPED_DATA_IS_IN_MEMORY = @as(u32, 1); pub const DEBUG_TYPED_DATA_PHYSICAL_DEFAULT = @as(u32, 2); pub const DEBUG_TYPED_DATA_PHYSICAL_CACHED = @as(u32, 4); pub const DEBUG_TYPED_DATA_PHYSICAL_UNCACHED = @as(u32, 6); pub const DEBUG_TYPED_DATA_PHYSICAL_WRITE_COMBINED = @as(u32, 8); pub const DEBUG_TYPED_DATA_PHYSICAL_MEMORY = @as(u32, 14); pub const EXT_TDF_PHYSICAL_DEFAULT = @as(u32, 2); pub const EXT_TDF_PHYSICAL_CACHED = @as(u32, 4); pub const EXT_TDF_PHYSICAL_UNCACHED = @as(u32, 6); pub const EXT_TDF_PHYSICAL_WRITE_COMBINED = @as(u32, 8); pub const EXT_TDF_PHYSICAL_MEMORY = @as(u32, 14); pub const WDBGEXTS_ADDRESS_DEFAULT = @as(u32, 0); pub const WDBGEXTS_ADDRESS_SEG16 = @as(u32, 1); pub const WDBGEXTS_ADDRESS_SEG32 = @as(u32, 2); pub const WDBGEXTS_ADDRESS_RESERVED0 = @as(u32, 2147483648); pub const DBGKD_VERS_FLAG_MP = @as(u32, 1); pub const DBGKD_VERS_FLAG_DATA = @as(u32, 2); pub const DBGKD_VERS_FLAG_PTR64 = @as(u32, 4); pub const DBGKD_VERS_FLAG_NOMM = @as(u32, 8); pub const DBGKD_VERS_FLAG_HSS = @as(u32, 16); pub const DBGKD_VERS_FLAG_PARTITIONS = @as(u32, 32); pub const DBGKD_VERS_FLAG_HAL_IN_NTOS = @as(u32, 64); pub const KD_SECONDARY_VERSION_DEFAULT = @as(u32, 0); pub const KD_SECONDARY_VERSION_AMD64_OBSOLETE_CONTEXT_1 = @as(u32, 0); pub const KD_SECONDARY_VERSION_AMD64_OBSOLETE_CONTEXT_2 = @as(u32, 1); pub const KD_SECONDARY_VERSION_AMD64_CONTEXT = @as(u32, 2); pub const CURRENT_KD_SECONDARY_VERSION = @as(u32, 2); pub const DBG_DUMP_NO_INDENT = @as(u32, 1); pub const DBG_DUMP_NO_OFFSET = @as(u32, 2); pub const DBG_DUMP_VERBOSE = @as(u32, 4); pub const DBG_DUMP_CALL_FOR_EACH = @as(u32, 8); pub const DBG_DUMP_LIST = @as(u32, 32); pub const DBG_DUMP_NO_PRINT = @as(u32, 64); pub const DBG_DUMP_GET_SIZE_ONLY = @as(u32, 128); pub const DBG_DUMP_COMPACT_OUT = @as(u32, 8192); pub const DBG_DUMP_ARRAY = @as(u32, 32768); pub const DBG_DUMP_ADDRESS_OF_FIELD = @as(u32, 65536); pub const DBG_DUMP_ADDRESS_AT_END = @as(u32, 131072); pub const DBG_DUMP_COPY_TYPE_DATA = @as(u32, 262144); pub const DBG_DUMP_READ_PHYSICAL = @as(u32, 524288); pub const DBG_DUMP_FUNCTION_FORMAT = @as(u32, 1048576); pub const DBG_DUMP_BLOCK_RECURSE = @as(u32, 2097152); pub const DBG_DUMP_MATCH_SIZE = @as(u32, 4194304); pub const DBG_RETURN_TYPE = @as(u32, 0); pub const DBG_RETURN_SUBTYPES = @as(u32, 0); pub const DBG_RETURN_TYPE_VALUES = @as(u32, 0); pub const DBG_DUMP_FIELD_CALL_BEFORE_PRINT = @as(u32, 1); pub const DBG_DUMP_FIELD_NO_CALLBACK_REQ = @as(u32, 2); pub const DBG_DUMP_FIELD_RECUR_ON_THIS = @as(u32, 4); pub const DBG_DUMP_FIELD_FULL_NAME = @as(u32, 8); pub const DBG_DUMP_FIELD_ARRAY = @as(u32, 16); pub const DBG_DUMP_FIELD_COPY_FIELD_DATA = @as(u32, 32); pub const DBG_DUMP_FIELD_RETURN_ADDRESS = @as(u32, 4096); pub const DBG_DUMP_FIELD_SIZE_IN_BITS = @as(u32, 8192); pub const DBG_DUMP_FIELD_NO_PRINT = @as(u32, 16384); pub const DBG_DUMP_FIELD_DEFAULT_STRING = @as(u32, 65536); pub const DBG_DUMP_FIELD_WCHAR_STRING = @as(u32, 131072); pub const DBG_DUMP_FIELD_MULTI_STRING = @as(u32, 262144); pub const DBG_DUMP_FIELD_GUID_STRING = @as(u32, 524288); pub const DBG_DUMP_FIELD_UTF32_STRING = @as(u32, 1048576); pub const MEMORY_READ_ERROR = @as(u32, 1); pub const SYMBOL_TYPE_INDEX_NOT_FOUND = @as(u32, 2); pub const SYMBOL_TYPE_INFO_NOT_FOUND = @as(u32, 3); pub const FIELDS_DID_NOT_MATCH = @as(u32, 4); pub const NULL_SYM_DUMP_PARAM = @as(u32, 5); pub const NULL_FIELD_NAME = @as(u32, 6); pub const INCORRECT_VERSION_INFO = @as(u32, 7); pub const EXIT_ON_CONTROLC = @as(u32, 8); pub const CANNOT_ALLOCATE_MEMORY = @as(u32, 9); pub const INSUFFICIENT_SPACE_TO_COPY = @as(u32, 10); pub const ADDRESS_TYPE_INDEX_NOT_FOUND = @as(u32, 11); pub const UNAVAILABLE_ERROR = @as(u32, 12); pub const CATID_ActiveScript = Guid.initString("f0b7a1a1-9847-11cf-8f20-00805f2cd064"); pub const CATID_ActiveScriptParse = Guid.initString("f0b7a1a2-9847-11cf-8f20-00805f2cd064"); pub const CATID_ActiveScriptEncode = Guid.initString("f0b7a1a3-9847-11cf-8f20-00805f2cd064"); pub const OID_VBSSIP = Guid.initString("1629f04e-2799-4db5-8fe5-ace10f17ebab"); pub const OID_JSSIP = Guid.initString("06c9e010-38ce-11d4-a2a3-00104bd35090"); pub const OID_WSFSIP = Guid.initString("1a610570-38ce-11d4-a2a3-00104bd35090"); pub const SCRIPTITEM_ISVISIBLE = @as(u32, 2); pub const SCRIPTITEM_ISSOURCE = @as(u32, 4); pub const SCRIPTITEM_GLOBALMEMBERS = @as(u32, 8); pub const SCRIPTITEM_ISPERSISTENT = @as(u32, 64); pub const SCRIPTITEM_CODEONLY = @as(u32, 512); pub const SCRIPTITEM_NOCODE = @as(u32, 1024); pub const SCRIPTTYPELIB_ISCONTROL = @as(u32, 16); pub const SCRIPTTYPELIB_ISPERSISTENT = @as(u32, 64); pub const SCRIPTTEXT_DELAYEXECUTION = @as(u32, 1); pub const SCRIPTTEXT_ISVISIBLE = @as(u32, 2); pub const SCRIPTTEXT_ISEXPRESSION = @as(u32, 32); pub const SCRIPTTEXT_ISPERSISTENT = @as(u32, 64); pub const SCRIPTTEXT_HOSTMANAGESSOURCE = @as(u32, 128); pub const SCRIPTTEXT_ISXDOMAIN = @as(u32, 256); pub const SCRIPTTEXT_ISNONUSERCODE = @as(u32, 512); pub const SCRIPTPROC_ISEXPRESSION = @as(u32, 32); pub const SCRIPTPROC_HOSTMANAGESSOURCE = @as(u32, 128); pub const SCRIPTPROC_IMPLICIT_THIS = @as(u32, 256); pub const SCRIPTPROC_IMPLICIT_PARENTS = @as(u32, 512); pub const SCRIPTPROC_ISXDOMAIN = @as(u32, 1024); pub const SCRIPTINFO_IUNKNOWN = @as(u32, 1); pub const SCRIPTINFO_ITYPEINFO = @as(u32, 2); pub const SCRIPTINTERRUPT_DEBUG = @as(u32, 1); pub const SCRIPTINTERRUPT_RAISEEXCEPTION = @as(u32, 2); pub const SCRIPTSTAT_STATEMENT_COUNT = @as(u32, 1); pub const SCRIPTSTAT_INSTRUCTION_COUNT = @as(u32, 2); pub const SCRIPTSTAT_INTSTRUCTION_TIME = @as(u32, 3); pub const SCRIPTSTAT_TOTAL_TIME = @as(u32, 4); pub const SCRIPT_ENCODE_SECTION = @as(u32, 1); pub const SCRIPT_ENCODE_DEFAULT_LANGUAGE = @as(u32, 1); pub const SCRIPT_ENCODE_NO_ASP_LANGUAGE = @as(u32, 2); pub const SCRIPTPROP_NAME = @as(u32, 0); pub const SCRIPTPROP_MAJORVERSION = @as(u32, 1); pub const SCRIPTPROP_MINORVERSION = @as(u32, 2); pub const SCRIPTPROP_BUILDNUMBER = @as(u32, 3); pub const SCRIPTPROP_DELAYEDEVENTSINKING = @as(u32, 4096); pub const SCRIPTPROP_CATCHEXCEPTION = @as(u32, 4097); pub const SCRIPTPROP_CONVERSIONLCID = @as(u32, 4098); pub const SCRIPTPROP_HOSTSTACKREQUIRED = @as(u32, 4099); pub const SCRIPTPROP_SCRIPTSAREFULLYTRUSTED = @as(u32, 4100); pub const SCRIPTPROP_DEBUGGER = @as(u32, 4352); pub const SCRIPTPROP_JITDEBUG = @as(u32, 4353); pub const SCRIPTPROP_GCCONTROLSOFTCLOSE = @as(u32, 8192); pub const SCRIPTPROP_INTEGERMODE = @as(u32, 12288); pub const SCRIPTPROP_STRINGCOMPAREINSTANCE = @as(u32, 12289); pub const SCRIPTPROP_INVOKEVERSIONING = @as(u32, 16384); pub const SCRIPTPROP_HACK_FIBERSUPPORT = @as(u32, 1879048192); pub const SCRIPTPROP_HACK_TRIDENTEVENTSINK = @as(u32, 1879048193); pub const SCRIPTPROP_ABBREVIATE_GLOBALNAME_RESOLUTION = @as(u32, 1879048194); pub const SCRIPTPROP_HOSTKEEPALIVE = @as(u32, 1879048196); pub const SCRIPT_E_RECORDED = @as(i32, -2040119292); pub const SCRIPT_E_REPORTED = @as(i32, -2147352319); pub const SCRIPT_E_PROPAGATE = @as(i32, -2147352318); pub const MINIDUMP_VERSION = @as(u32, 42899); pub const MINIDUMP_MISC1_PROCESSOR_POWER_INFO = @as(u32, 4); pub const MINIDUMP_MISC3_PROCESS_INTEGRITY = @as(u32, 16); pub const MINIDUMP_MISC3_PROCESS_EXECUTE_FLAGS = @as(u32, 32); pub const MINIDUMP_MISC3_TIMEZONE = @as(u32, 64); pub const MINIDUMP_MISC3_PROTECTED_PROCESS = @as(u32, 128); pub const MINIDUMP_MISC4_BUILDSTRING = @as(u32, 256); pub const MINIDUMP_MISC5_PROCESS_COOKIE = @as(u32, 512); pub const MINIDUMP_SYSMEMINFO1_FILECACHE_TRANSITIONREPURPOSECOUNT_FLAGS = @as(u32, 1); pub const MINIDUMP_SYSMEMINFO1_BASICPERF = @as(u32, 2); pub const MINIDUMP_SYSMEMINFO1_PERF_CCTOTALDIRTYPAGES_CCDIRTYPAGETHRESHOLD = @as(u32, 4); pub const MINIDUMP_SYSMEMINFO1_PERF_RESIDENTAVAILABLEPAGES_SHAREDCOMMITPAGES = @as(u32, 8); pub const MINIDUMP_PROCESS_VM_COUNTERS = @as(u32, 1); pub const MINIDUMP_PROCESS_VM_COUNTERS_VIRTUALSIZE = @as(u32, 2); pub const MINIDUMP_PROCESS_VM_COUNTERS_EX = @as(u32, 4); pub const MINIDUMP_PROCESS_VM_COUNTERS_EX2 = @as(u32, 8); pub const MINIDUMP_PROCESS_VM_COUNTERS_JOB = @as(u32, 16); pub const MAX_SYM_NAME = @as(u32, 2000); pub const BIND_NO_BOUND_IMPORTS = @as(u32, 1); pub const BIND_NO_UPDATE = @as(u32, 2); pub const BIND_ALL_IMAGES = @as(u32, 4); pub const BIND_CACHE_IMPORT_DLLS = @as(u32, 8); pub const BIND_REPORT_64BIT_VA = @as(u32, 16); pub const CHECKSUM_SUCCESS = @as(u32, 0); pub const CHECKSUM_OPEN_FAILURE = @as(u32, 1); pub const CHECKSUM_MAP_FAILURE = @as(u32, 2); pub const CHECKSUM_MAPVIEW_FAILURE = @as(u32, 3); pub const CHECKSUM_UNICODE_FAILURE = @as(u32, 4); pub const SPLITSYM_REMOVE_PRIVATE = @as(u32, 1); pub const SPLITSYM_EXTRACT_ALL = @as(u32, 2); pub const SPLITSYM_SYMBOLPATH_IS_SRC = @as(u32, 4); pub const CERT_PE_IMAGE_DIGEST_DEBUG_INFO = @as(u32, 1); pub const CERT_PE_IMAGE_DIGEST_RESOURCES = @as(u32, 2); pub const CERT_PE_IMAGE_DIGEST_ALL_IMPORT_INFO = @as(u32, 4); pub const CERT_PE_IMAGE_DIGEST_NON_PE_INFO = @as(u32, 8); pub const CERT_SECTION_TYPE_ANY = @as(u32, 255); pub const ERROR_IMAGE_NOT_STRIPPED = @as(u32, 34816); pub const ERROR_NO_DBG_POINTER = @as(u32, 34817); pub const ERROR_NO_PDB_POINTER = @as(u32, 34818); pub const UNDNAME_COMPLETE = @as(u32, 0); pub const UNDNAME_NO_LEADING_UNDERSCORES = @as(u32, 1); pub const UNDNAME_NO_MS_KEYWORDS = @as(u32, 2); pub const UNDNAME_NO_FUNCTION_RETURNS = @as(u32, 4); pub const UNDNAME_NO_ALLOCATION_MODEL = @as(u32, 8); pub const UNDNAME_NO_ALLOCATION_LANGUAGE = @as(u32, 16); pub const UNDNAME_NO_MS_THISTYPE = @as(u32, 32); pub const UNDNAME_NO_CV_THISTYPE = @as(u32, 64); pub const UNDNAME_NO_THISTYPE = @as(u32, 96); pub const UNDNAME_NO_ACCESS_SPECIFIERS = @as(u32, 128); pub const UNDNAME_NO_THROW_SIGNATURES = @as(u32, 256); pub const UNDNAME_NO_MEMBER_TYPE = @as(u32, 512); pub const UNDNAME_NO_RETURN_UDT_MODEL = @as(u32, 1024); pub const UNDNAME_32_BIT_DECODE = @as(u32, 2048); pub const UNDNAME_NAME_ONLY = @as(u32, 4096); pub const UNDNAME_NO_ARGUMENTS = @as(u32, 8192); pub const UNDNAME_NO_SPECIAL_SYMS = @as(u32, 16384); pub const DBHHEADER_PDBGUID = @as(u32, 3); pub const INLINE_FRAME_CONTEXT_INIT = @as(u32, 0); pub const INLINE_FRAME_CONTEXT_IGNORE = @as(u32, 4294967295); pub const SYM_STKWALK_DEFAULT = @as(u32, 0); pub const SYM_STKWALK_FORCE_FRAMEPTR = @as(u32, 1); pub const SYM_STKWALK_ZEROEXTEND_PTRS = @as(u32, 2); pub const API_VERSION_NUMBER = @as(u32, 12); pub const SYMFLAG_NULL = @as(u32, 524288); pub const SYMFLAG_FUNC_NO_RETURN = @as(u32, 1048576); pub const SYMFLAG_SYNTHETIC_ZEROBASE = @as(u32, 2097152); pub const SYMFLAG_PUBLIC_CODE = @as(u32, 4194304); pub const SYMFLAG_REGREL_ALIASINDIR = @as(u32, 8388608); pub const SYMFLAG_FIXUP_ARM64X = @as(u32, 16777216); pub const SYMFLAG_GLOBAL = @as(u32, 33554432); pub const SYMFLAG_RESET = @as(u32, 2147483648); pub const IMAGEHLP_MODULE_REGION_DLLBASE = @as(u32, 1); pub const IMAGEHLP_MODULE_REGION_DLLRANGE = @as(u32, 2); pub const IMAGEHLP_MODULE_REGION_ADDITIONAL = @as(u32, 4); pub const IMAGEHLP_MODULE_REGION_JIT = @as(u32, 8); pub const IMAGEHLP_MODULE_REGION_ALL = @as(u32, 255); pub const CBA_DEFERRED_SYMBOL_LOAD_START = @as(u32, 1); pub const CBA_DEFERRED_SYMBOL_LOAD_COMPLETE = @as(u32, 2); pub const CBA_DEFERRED_SYMBOL_LOAD_FAILURE = @as(u32, 3); pub const CBA_SYMBOLS_UNLOADED = @as(u32, 4); pub const CBA_DUPLICATE_SYMBOL = @as(u32, 5); pub const CBA_READ_MEMORY = @as(u32, 6); pub const CBA_DEFERRED_SYMBOL_LOAD_CANCEL = @as(u32, 7); pub const CBA_SET_OPTIONS = @as(u32, 8); pub const CBA_EVENT = @as(u32, 16); pub const CBA_DEFERRED_SYMBOL_LOAD_PARTIAL = @as(u32, 32); pub const CBA_DEBUG_INFO = @as(u32, 268435456); pub const CBA_SRCSRV_INFO = @as(u32, 536870912); pub const CBA_SRCSRV_EVENT = @as(u32, 1073741824); pub const CBA_UPDATE_STATUS_BAR = @as(u32, 1342177280); pub const CBA_ENGINE_PRESENT = @as(u32, 1610612736); pub const CBA_CHECK_ENGOPT_DISALLOW_NETWORK_PATHS = @as(u32, 1879048192); pub const CBA_CHECK_ARM_MACHINE_THUMB_TYPE_OVERRIDE = @as(u32, 2147483648); pub const CBA_XML_LOG = @as(u32, 2415919104); pub const CBA_MAP_JIT_SYMBOL = @as(u32, 2684354560); pub const EVENT_SRCSPEW_START = @as(u32, 100); pub const EVENT_SRCSPEW = @as(u32, 100); pub const EVENT_SRCSPEW_END = @as(u32, 199); pub const DSLFLAG_MISMATCHED_PDB = @as(u32, 1); pub const DSLFLAG_MISMATCHED_DBG = @as(u32, 2); pub const FLAG_ENGINE_PRESENT = @as(u32, 4); pub const FLAG_ENGOPT_DISALLOW_NETWORK_PATHS = @as(u32, 8); pub const FLAG_OVERRIDE_ARM_MACHINE_TYPE = @as(u32, 16); pub const SYMOPT_CASE_INSENSITIVE = @as(u32, 1); pub const SYMOPT_UNDNAME = @as(u32, 2); pub const SYMOPT_DEFERRED_LOADS = @as(u32, 4); pub const SYMOPT_NO_CPP = @as(u32, 8); pub const SYMOPT_LOAD_LINES = @as(u32, 16); pub const SYMOPT_OMAP_FIND_NEAREST = @as(u32, 32); pub const SYMOPT_LOAD_ANYTHING = @as(u32, 64); pub const SYMOPT_IGNORE_CVREC = @as(u32, 128); pub const SYMOPT_NO_UNQUALIFIED_LOADS = @as(u32, 256); pub const SYMOPT_FAIL_CRITICAL_ERRORS = @as(u32, 512); pub const SYMOPT_EXACT_SYMBOLS = @as(u32, 1024); pub const SYMOPT_ALLOW_ABSOLUTE_SYMBOLS = @as(u32, 2048); pub const SYMOPT_IGNORE_NT_SYMPATH = @as(u32, 4096); pub const SYMOPT_INCLUDE_32BIT_MODULES = @as(u32, 8192); pub const SYMOPT_PUBLICS_ONLY = @as(u32, 16384); pub const SYMOPT_NO_PUBLICS = @as(u32, 32768); pub const SYMOPT_AUTO_PUBLICS = @as(u32, 65536); pub const SYMOPT_NO_IMAGE_SEARCH = @as(u32, 131072); pub const SYMOPT_SECURE = @as(u32, 262144); pub const SYMOPT_NO_PROMPTS = @as(u32, 524288); pub const SYMOPT_OVERWRITE = @as(u32, 1048576); pub const SYMOPT_IGNORE_IMAGEDIR = @as(u32, 2097152); pub const SYMOPT_FLAT_DIRECTORY = @as(u32, 4194304); pub const SYMOPT_FAVOR_COMPRESSED = @as(u32, 8388608); pub const SYMOPT_ALLOW_ZERO_ADDRESS = @as(u32, 16777216); pub const SYMOPT_DISABLE_SYMSRV_AUTODETECT = @as(u32, 33554432); pub const SYMOPT_READONLY_CACHE = @as(u32, 67108864); pub const SYMOPT_SYMPATH_LAST = @as(u32, 134217728); pub const SYMOPT_DISABLE_FAST_SYMBOLS = @as(u32, 268435456); pub const SYMOPT_DISABLE_SYMSRV_TIMEOUT = @as(u32, 536870912); pub const SYMOPT_DISABLE_SRVSTAR_ON_STARTUP = @as(u32, 1073741824); pub const SYMOPT_DEBUG = @as(u32, 2147483648); pub const SYM_INLINE_COMP_ERROR = @as(u32, 0); pub const SYM_INLINE_COMP_IDENTICAL = @as(u32, 1); pub const SYM_INLINE_COMP_STEPIN = @as(u32, 2); pub const SYM_INLINE_COMP_STEPOUT = @as(u32, 3); pub const SYM_INLINE_COMP_STEPOVER = @as(u32, 4); pub const SYM_INLINE_COMP_DIFFERENT = @as(u32, 5); pub const ESLFLAG_FULLPATH = @as(u32, 1); pub const ESLFLAG_NEAREST = @as(u32, 2); pub const ESLFLAG_PREV = @as(u32, 4); pub const ESLFLAG_NEXT = @as(u32, 8); pub const ESLFLAG_INLINE_SITE = @as(u32, 16); pub const SYMENUM_OPTIONS_DEFAULT = @as(u32, 1); pub const SYMENUM_OPTIONS_INLINE = @as(u32, 2); pub const SYMSEARCH_MASKOBJS = @as(u32, 1); pub const SYMSEARCH_RECURSE = @as(u32, 2); pub const SYMSEARCH_GLOBALSONLY = @as(u32, 4); pub const SYMSEARCH_ALLITEMS = @as(u32, 8); pub const EXT_OUTPUT_VER = @as(u32, 1); pub const SYMSRV_VERSION = @as(u32, 2); pub const SSRVOPT_CALLBACK = @as(u32, 1); pub const SSRVOPT_OLDGUIDPTR = @as(u32, 16); pub const SSRVOPT_UNATTENDED = @as(u32, 32); pub const SSRVOPT_NOCOPY = @as(u32, 64); pub const SSRVOPT_GETPATH = @as(u32, 64); pub const SSRVOPT_PARENTWIN = @as(u32, 128); pub const SSRVOPT_PARAMTYPE = @as(u32, 256); pub const SSRVOPT_SECURE = @as(u32, 512); pub const SSRVOPT_TRACE = @as(u32, 1024); pub const SSRVOPT_SETCONTEXT = @as(u32, 2048); pub const SSRVOPT_PROXY = @as(u32, 4096); pub const SSRVOPT_DOWNSTREAM_STORE = @as(u32, 8192); pub const SSRVOPT_OVERWRITE = @as(u32, 16384); pub const SSRVOPT_RESETTOU = @as(u32, 32768); pub const SSRVOPT_CALLBACKW = @as(u32, 65536); pub const SSRVOPT_FLAT_DEFAULT_STORE = @as(u32, 131072); pub const SSRVOPT_PROXYW = @as(u32, 262144); pub const SSRVOPT_MESSAGE = @as(u32, 524288); pub const SSRVOPT_SERVICE = @as(u32, 1048576); pub const SSRVOPT_FAVOR_COMPRESSED = @as(u32, 2097152); pub const SSRVOPT_STRING = @as(u32, 4194304); pub const SSRVOPT_WINHTTP = @as(u32, 8388608); pub const SSRVOPT_WININET = @as(u32, 16777216); pub const SSRVOPT_DONT_UNCOMPRESS = @as(u32, 33554432); pub const SSRVOPT_DISABLE_PING_HOST = @as(u32, 67108864); pub const SSRVOPT_DISABLE_TIMEOUT = @as(u32, 134217728); pub const SSRVOPT_ENABLE_COMM_MSG = @as(u32, 268435456); pub const SSRVOPT_URI_FILTER = @as(u32, 536870912); pub const SSRVOPT_URI_TIERS = @as(u32, 1073741824); pub const SSRVOPT_RETRY_APP_HANG = @as(u32, 2147483648); pub const SSRVOPT_MAX = @as(u32, 2147483648); pub const NUM_SSRVOPTS = @as(u32, 32); pub const SSRVURI_HTTP_NORMAL = @as(u32, 1); pub const SSRVURI_HTTP_COMPRESSED = @as(u32, 2); pub const SSRVURI_HTTP_FILEPTR = @as(u32, 4); pub const SSRVURI_UNC_NORMAL = @as(u32, 16); pub const SSRVURI_UNC_COMPRESSED = @as(u32, 32); pub const SSRVURI_UNC_FILEPTR = @as(u32, 64); pub const SSRVURI_HTTP_MASK = @as(u32, 15); pub const SSRVURI_UNC_MASK = @as(u32, 240); pub const SSRVURI_ALL = @as(u32, 255); pub const SSRVURI_NORMAL = @as(u32, 1); pub const SSRVURI_COMPRESSED = @as(u32, 2); pub const SSRVURI_FILEPTR = @as(u32, 4); pub const SSRVACTION_TRACE = @as(u32, 1); pub const SSRVACTION_QUERYCANCEL = @as(u32, 2); pub const SSRVACTION_EVENT = @as(u32, 3); pub const SSRVACTION_EVENTW = @as(u32, 4); pub const SSRVACTION_SIZE = @as(u32, 5); pub const SSRVACTION_HTTPSTATUS = @as(u32, 6); pub const SSRVACTION_XMLOUTPUT = @as(u32, 7); pub const SSRVACTION_CHECKSUMSTATUS = @as(u32, 8); pub const SYMSTOREOPT_ALT_INDEX = @as(u32, 16); pub const SYMSTOREOPT_UNICODE = @as(u32, 32); pub const SYMF_OMAP_GENERATED = @as(u32, 1); pub const SYMF_OMAP_MODIFIED = @as(u32, 2); pub const SYMF_REGISTER = @as(u32, 8); pub const SYMF_REGREL = @as(u32, 16); pub const SYMF_FRAMEREL = @as(u32, 32); pub const SYMF_PARAMETER = @as(u32, 64); pub const SYMF_LOCAL = @as(u32, 128); pub const SYMF_CONSTANT = @as(u32, 256); pub const SYMF_EXPORT = @as(u32, 512); pub const SYMF_FORWARDER = @as(u32, 1024); pub const SYMF_FUNCTION = @as(u32, 2048); pub const SYMF_VIRTUAL = @as(u32, 4096); pub const SYMF_THUNK = @as(u32, 8192); pub const SYMF_TLSREL = @as(u32, 16384); pub const IMAGEHLP_SYMBOL_INFO_VALUEPRESENT = @as(u32, 1); pub const IMAGEHLP_SYMBOL_INFO_REGISTER = @as(u32, 8); pub const IMAGEHLP_SYMBOL_INFO_REGRELATIVE = @as(u32, 16); pub const IMAGEHLP_SYMBOL_INFO_FRAMERELATIVE = @as(u32, 32); pub const IMAGEHLP_SYMBOL_INFO_PARAMETER = @as(u32, 64); pub const IMAGEHLP_SYMBOL_INFO_LOCAL = @as(u32, 128); pub const IMAGEHLP_SYMBOL_INFO_CONSTANT = @as(u32, 256); pub const IMAGEHLP_SYMBOL_FUNCTION = @as(u32, 2048); pub const IMAGEHLP_SYMBOL_VIRTUAL = @as(u32, 4096); pub const IMAGEHLP_SYMBOL_THUNK = @as(u32, 8192); pub const IMAGEHLP_SYMBOL_INFO_TLSRELATIVE = @as(u32, 16384); pub const IMAGEHLP_RMAP_MAPPED_FLAT = @as(u32, 1); pub const IMAGEHLP_RMAP_BIG_ENDIAN = @as(u32, 2); pub const IMAGEHLP_RMAP_IGNORE_MISCOMPARE = @as(u32, 4); pub const IMAGEHLP_RMAP_FIXUP_ARM64X = @as(u32, 268435456); pub const IMAGEHLP_RMAP_LOAD_RW_DATA_SECTIONS = @as(u32, 536870912); pub const IMAGEHLP_RMAP_OMIT_SHARED_RW_DATA_SECTIONS = @as(u32, 1073741824); pub const IMAGEHLP_RMAP_FIXUP_IMAGEBASE = @as(u32, 2147483648); pub const WCT_MAX_NODE_COUNT = @as(u32, 16); pub const WCT_OBJNAME_LENGTH = @as(u32, 128); pub const WCT_NETWORK_IO_FLAG = @as(u32, 8); pub const APPBREAKFLAG_DEBUGGER_BLOCK = @as(u32, 1); pub const APPBREAKFLAG_DEBUGGER_HALT = @as(u32, 2); pub const APPBREAKFLAG_STEP = @as(u32, 65536); pub const APPBREAKFLAG_NESTED = @as(u32, 131072); pub const APPBREAKFLAG_STEPTYPE_SOURCE = @as(u32, 0); pub const APPBREAKFLAG_STEPTYPE_BYTECODE = @as(u32, 1048576); pub const APPBREAKFLAG_STEPTYPE_MACHINE = @as(u32, 2097152); pub const APPBREAKFLAG_STEPTYPE_MASK = @as(u32, 15728640); pub const APPBREAKFLAG_IN_BREAKPOINT = @as(u32, 2147483648); pub const SOURCETEXT_ATTR_KEYWORD = @as(u32, 1); pub const SOURCETEXT_ATTR_COMMENT = @as(u32, 2); pub const SOURCETEXT_ATTR_NONSOURCE = @as(u32, 4); pub const SOURCETEXT_ATTR_OPERATOR = @as(u32, 8); pub const SOURCETEXT_ATTR_NUMBER = @as(u32, 16); pub const SOURCETEXT_ATTR_STRING = @as(u32, 32); pub const SOURCETEXT_ATTR_FUNCTION_START = @as(u32, 64); pub const TEXT_DOC_ATTR_READONLY = @as(u32, 1); pub const TEXT_DOC_ATTR_TYPE_PRIMARY = @as(u32, 2); pub const TEXT_DOC_ATTR_TYPE_WORKER = @as(u32, 4); pub const TEXT_DOC_ATTR_TYPE_SCRIPT = @as(u32, 8); pub const DEBUG_TEXT_ISEXPRESSION = @as(u32, 1); pub const DEBUG_TEXT_RETURNVALUE = @as(u32, 2); pub const DEBUG_TEXT_NOSIDEEFFECTS = @as(u32, 4); pub const DEBUG_TEXT_ALLOWBREAKPOINTS = @as(u32, 8); pub const DEBUG_TEXT_ALLOWERRORREPORT = @as(u32, 16); pub const DEBUG_TEXT_EVALUATETOCODECONTEXT = @as(u32, 32); pub const DEBUG_TEXT_ISNONUSERCODE = @as(u32, 64); pub const THREAD_STATE_RUNNING = @as(u32, 1); pub const THREAD_STATE_SUSPENDED = @as(u32, 2); pub const THREAD_BLOCKED = @as(u32, 4); pub const THREAD_OUT_OF_CONTEXT = @as(u32, 8); pub const CATID_ActiveScriptAuthor = Guid.initString("0aee2a92-bcbb-11d0-8c72-00c04fc2b085"); pub const FACILITY_JsDEBUG = @as(u32, 3527); pub const E_JsDEBUG_MISMATCHED_RUNTIME = @import("../../zig.zig").typedConst(HRESULT, @as(i32, -1916338175)); pub const E_JsDEBUG_UNKNOWN_THREAD = @import("../../zig.zig").typedConst(HRESULT, @as(i32, -1916338174)); pub const E_JsDEBUG_OUTSIDE_OF_VM = @import("../../zig.zig").typedConst(HRESULT, @as(i32, -1916338172)); pub const E_JsDEBUG_INVALID_MEMORY_ADDRESS = @import("../../zig.zig").typedConst(HRESULT, @as(i32, -1916338171)); pub const E_JsDEBUG_SOURCE_LOCATION_NOT_FOUND = @import("../../zig.zig").typedConst(HRESULT, @as(i32, -1916338170)); pub const E_JsDEBUG_RUNTIME_NOT_IN_DEBUG_MODE = @import("../../zig.zig").typedConst(HRESULT, @as(i32, -1916338169)); pub const DMP_PHYSICAL_MEMORY_BLOCK_SIZE_32 = @as(u32, 700); pub const DMP_CONTEXT_RECORD_SIZE_32 = @as(u32, 1200); pub const DMP_RESERVED_0_SIZE_32 = @as(u32, 1760); pub const DMP_RESERVED_2_SIZE_32 = @as(u32, 16); pub const DMP_RESERVED_3_SIZE_32 = @as(u32, 56); pub const DMP_PHYSICAL_MEMORY_BLOCK_SIZE_64 = @as(u32, 700); pub const DMP_CONTEXT_RECORD_SIZE_64 = @as(u32, 3000); pub const DMP_RESERVED_0_SIZE_64 = @as(u32, 4008); pub const DMP_HEADER_COMMENT_SIZE = @as(u32, 128); pub const DUMP_SUMMARY_VALID_KERNEL_VA = @as(u32, 1); pub const DUMP_SUMMARY_VALID_CURRENT_USER_VA = @as(u32, 2); pub const INTERFACESAFE_FOR_UNTRUSTED_CALLER = @as(u32, 1); pub const INTERFACESAFE_FOR_UNTRUSTED_DATA = @as(u32, 2); pub const INTERFACE_USES_DISPEX = @as(u32, 4); pub const INTERFACE_USES_SECURITY_MANAGER = @as(u32, 8); pub const WHEA_ERROR_SOURCE_DESCRIPTOR_VERSION_10 = @as(u32, 10); pub const WHEA_ERROR_SOURCE_DESCRIPTOR_VERSION_11 = @as(u32, 11); pub const WHEA_MAX_MC_BANKS = @as(u32, 32); pub const WHEA_ERROR_SOURCE_FLAG_FIRMWAREFIRST = @as(u32, 1); pub const WHEA_ERROR_SOURCE_FLAG_GLOBAL = @as(u32, 2); pub const WHEA_ERROR_SOURCE_FLAG_GHES_ASSIST = @as(u32, 4); pub const WHEA_ERROR_SOURCE_FLAG_DEFAULTSOURCE = @as(u32, 2147483648); pub const WHEA_ERROR_SOURCE_INVALID_RELATED_SOURCE = @as(u32, 65535); pub const WHEA_ERROR_SOURCE_DESCRIPTOR_TYPE_XPFMCE = @as(u32, 0); pub const WHEA_ERROR_SOURCE_DESCRIPTOR_TYPE_XPFCMC = @as(u32, 1); pub const WHEA_ERROR_SOURCE_DESCRIPTOR_TYPE_XPFNMI = @as(u32, 2); pub const WHEA_ERROR_SOURCE_DESCRIPTOR_TYPE_IPFMCA = @as(u32, 3); pub const WHEA_ERROR_SOURCE_DESCRIPTOR_TYPE_IPFCMC = @as(u32, 4); pub const WHEA_ERROR_SOURCE_DESCRIPTOR_TYPE_IPFCPE = @as(u32, 5); pub const WHEA_ERROR_SOURCE_DESCRIPTOR_TYPE_AERROOTPORT = @as(u32, 6); pub const WHEA_ERROR_SOURCE_DESCRIPTOR_TYPE_AERENDPOINT = @as(u32, 7); pub const WHEA_ERROR_SOURCE_DESCRIPTOR_TYPE_AERBRIDGE = @as(u32, 8); pub const WHEA_ERROR_SOURCE_DESCRIPTOR_TYPE_GENERIC = @as(u32, 9); pub const WHEA_ERROR_SOURCE_DESCRIPTOR_TYPE_GENERIC_V2 = @as(u32, 10); pub const WHEA_XPF_MC_BANK_STATUSFORMAT_IA32MCA = @as(u32, 0); pub const WHEA_XPF_MC_BANK_STATUSFORMAT_Intel64MCA = @as(u32, 1); pub const WHEA_XPF_MC_BANK_STATUSFORMAT_AMD64MCA = @as(u32, 2); pub const WHEA_NOTIFICATION_TYPE_POLLED = @as(u32, 0); pub const WHEA_NOTIFICATION_TYPE_EXTERNALINTERRUPT = @as(u32, 1); pub const WHEA_NOTIFICATION_TYPE_LOCALINTERRUPT = @as(u32, 2); pub const WHEA_NOTIFICATION_TYPE_SCI = @as(u32, 3); pub const WHEA_NOTIFICATION_TYPE_NMI = @as(u32, 4); pub const WHEA_NOTIFICATION_TYPE_CMCI = @as(u32, 5); pub const WHEA_NOTIFICATION_TYPE_MCE = @as(u32, 6); pub const WHEA_NOTIFICATION_TYPE_GPIO_SIGNAL = @as(u32, 7); pub const WHEA_NOTIFICATION_TYPE_ARMV8_SEA = @as(u32, 8); pub const WHEA_NOTIFICATION_TYPE_ARMV8_SEI = @as(u32, 9); pub const WHEA_NOTIFICATION_TYPE_EXTERNALINTERRUPT_GSIV = @as(u32, 10); pub const WHEA_NOTIFICATION_TYPE_SDEI = @as(u32, 11); pub const WHEA_DEVICE_DRIVER_CONFIG_V1 = @as(u32, 1); pub const WHEA_DEVICE_DRIVER_CONFIG_V2 = @as(u32, 2); pub const WHEA_DEVICE_DRIVER_CONFIG_MIN = @as(u32, 1); pub const WHEA_DEVICE_DRIVER_CONFIG_MAX = @as(u32, 2); pub const WHEA_DEVICE_DRIVER_BUFFER_SET_V1 = @as(u32, 1); pub const WHEA_DEVICE_DRIVER_BUFFER_SET_MIN = @as(u32, 1); pub const WHEA_DEVICE_DRIVER_BUFFER_SET_MAX = @as(u32, 1); pub const WHEA_DISABLE_OFFLINE = @as(u32, 0); pub const WHEA_MEM_PERSISTOFFLINE = @as(u32, 1); pub const WHEA_MEM_PFA_DISABLE = @as(u32, 2); pub const WHEA_MEM_PFA_PAGECOUNT = @as(u32, 3); pub const WHEA_MEM_PFA_THRESHOLD = @as(u32, 4); pub const WHEA_MEM_PFA_TIMEOUT = @as(u32, 5); pub const WHEA_DISABLE_DUMMY_WRITE = @as(u32, 6); pub const WHEA_RESTORE_CMCI_ENABLED = @as(u32, 7); pub const WHEA_RESTORE_CMCI_ATTEMPTS = @as(u32, 8); pub const WHEA_RESTORE_CMCI_ERR_LIMIT = @as(u32, 9); pub const WHEA_CMCI_THRESHOLD_COUNT = @as(u32, 10); pub const WHEA_CMCI_THRESHOLD_TIME = @as(u32, 11); pub const WHEA_CMCI_THRESHOLD_POLL_COUNT = @as(u32, 12); pub const WHEA_PENDING_PAGE_LIST_SZ = @as(u32, 13); pub const WHEA_BAD_PAGE_LIST_MAX_SIZE = @as(u32, 14); pub const WHEA_BAD_PAGE_LIST_LOCATION = @as(u32, 15); pub const WHEA_NOTIFY_ALL_OFFLINES = @as(u32, 16); pub const IPMI_OS_SEL_RECORD_VERSION_1 = @as(u32, 1); pub const IPMI_OS_SEL_RECORD_VERSION = @as(u32, 1); pub const IPMI_IOCTL_INDEX = @as(u32, 1024); pub const IOCTL_IPMI_INTERNAL_RECORD_SEL_EVENT = @as(u32, 2232320); pub const IPMI_OS_SEL_RECORD_MASK = @as(u32, 65535); pub const DBGKD_SIMULATION_NONE = @as(i32, 0); pub const DBGKD_SIMULATION_EXDI = @as(i32, 1); pub const ACTIVPROF_E_PROFILER_PRESENT = @import("../../zig.zig").typedConst(HRESULT, @as(i32, -2147220992)); pub const ACTIVPROF_E_PROFILER_ABSENT = @import("../../zig.zig").typedConst(HRESULT, @as(i32, -2147220991)); pub const ACTIVPROF_E_UNABLE_TO_APPLY_ACTION = @import("../../zig.zig").typedConst(HRESULT, @as(i32, -2147220990)); pub const PROFILER_HEAP_OBJECT_NAME_ID_UNAVAILABLE = @as(u32, 4294967295); pub const sevMax = @as(i32, 4); pub const fasaPreferInternalHandler = @as(u32, 1); pub const fasaSupportInternalHandler = @as(u32, 2); pub const fasaCaseSensitive = @as(u32, 4); pub const SCRIPT_CMPL_NOLIST = @as(u32, 0); pub const SCRIPT_CMPL_MEMBERLIST = @as(u32, 1); pub const SCRIPT_CMPL_ENUMLIST = @as(u32, 2); pub const SCRIPT_CMPL_PARAMTIP = @as(u32, 4); pub const SCRIPT_CMPL_GLOBALLIST = @as(u32, 8); pub const SCRIPT_CMPL_ENUM_TRIGGER = @as(u32, 1); pub const SCRIPT_CMPL_MEMBER_TRIGGER = @as(u32, 2); pub const SCRIPT_CMPL_PARAM_TRIGGER = @as(u32, 3); pub const SCRIPT_CMPL_COMMIT = @as(u32, 4); pub const GETATTRTYPE_NORMAL = @as(u32, 0); pub const GETATTRTYPE_DEPSCAN = @as(u32, 1); pub const GETATTRFLAG_THIS = @as(u32, 256); pub const GETATTRFLAG_HUMANTEXT = @as(u32, 32768); pub const SOURCETEXT_ATTR_HUMANTEXT = @as(u32, 32768); pub const SOURCETEXT_ATTR_IDENTIFIER = @as(u32, 256); pub const SOURCETEXT_ATTR_MEMBERLOOKUP = @as(u32, 512); pub const SOURCETEXT_ATTR_THIS = @as(u32, 1024); //-------------------------------------------------------------------------------- // Section: Types (842) //-------------------------------------------------------------------------------- pub const SYM_LOAD_FLAGS = enum(u32) { NONE = 0, VIRTUAL = 1, ALT_INDEX = 2, NO_SYMBOLS = 4, _, pub fn initFlags(o: struct { NONE: u1 = 0, VIRTUAL: u1 = 0, ALT_INDEX: u1 = 0, NO_SYMBOLS: u1 = 0, }) SYM_LOAD_FLAGS { return @as(SYM_LOAD_FLAGS, @enumFromInt((if (o.NONE == 1) @intFromEnum(SYM_LOAD_FLAGS.NONE) else 0) | (if (o.VIRTUAL == 1) @intFromEnum(SYM_LOAD_FLAGS.VIRTUAL) else 0) | (if (o.ALT_INDEX == 1) @intFromEnum(SYM_LOAD_FLAGS.ALT_INDEX) else 0) | (if (o.NO_SYMBOLS == 1) @intFromEnum(SYM_LOAD_FLAGS.NO_SYMBOLS) else 0))); } }; pub const SLMFLAG_NONE = SYM_LOAD_FLAGS.NONE; pub const SLMFLAG_VIRTUAL = SYM_LOAD_FLAGS.VIRTUAL; pub const SLMFLAG_ALT_INDEX = SYM_LOAD_FLAGS.ALT_INDEX; pub const SLMFLAG_NO_SYMBOLS = SYM_LOAD_FLAGS.NO_SYMBOLS; pub const IMAGE_SECTION_CHARACTERISTICS = enum(u32) { TYPE_NO_PAD = 8, CNT_CODE = 32, CNT_INITIALIZED_DATA = 64, CNT_UNINITIALIZED_DATA = 128, LNK_OTHER = 256, LNK_INFO = 512, LNK_REMOVE = 2048, LNK_COMDAT = 4096, NO_DEFER_SPEC_EXC = 16384, GPREL = 32768, // MEM_FARDATA = 32768, this enum value conflicts with GPREL MEM_PURGEABLE = 131072, // MEM_16BIT = 131072, this enum value conflicts with MEM_PURGEABLE MEM_LOCKED = 262144, MEM_PRELOAD = 524288, ALIGN_1BYTES = 1048576, ALIGN_2BYTES = 2097152, ALIGN_4BYTES = 3145728, ALIGN_8BYTES = 4194304, ALIGN_16BYTES = 5242880, ALIGN_32BYTES = 6291456, ALIGN_64BYTES = 7340032, ALIGN_128BYTES = 8388608, ALIGN_256BYTES = 9437184, ALIGN_512BYTES = 10485760, ALIGN_1024BYTES = 11534336, ALIGN_2048BYTES = 12582912, ALIGN_4096BYTES = 13631488, ALIGN_8192BYTES = 14680064, ALIGN_MASK = 15728640, LNK_NRELOC_OVFL = 16777216, MEM_DISCARDABLE = 33554432, MEM_NOT_CACHED = 67108864, MEM_NOT_PAGED = 134217728, MEM_SHARED = 268435456, MEM_EXECUTE = 536870912, MEM_READ = 1073741824, MEM_WRITE = 2147483648, SCALE_INDEX = 1, _, pub fn initFlags(o: struct { TYPE_NO_PAD: u1 = 0, CNT_CODE: u1 = 0, CNT_INITIALIZED_DATA: u1 = 0, CNT_UNINITIALIZED_DATA: u1 = 0, LNK_OTHER: u1 = 0, LNK_INFO: u1 = 0, LNK_REMOVE: u1 = 0, LNK_COMDAT: u1 = 0, NO_DEFER_SPEC_EXC: u1 = 0, GPREL: u1 = 0, MEM_PURGEABLE: u1 = 0, MEM_LOCKED: u1 = 0, MEM_PRELOAD: u1 = 0, ALIGN_1BYTES: u1 = 0, ALIGN_2BYTES: u1 = 0, ALIGN_4BYTES: u1 = 0, ALIGN_8BYTES: u1 = 0, ALIGN_16BYTES: u1 = 0, ALIGN_32BYTES: u1 = 0, ALIGN_64BYTES: u1 = 0, ALIGN_128BYTES: u1 = 0, ALIGN_256BYTES: u1 = 0, ALIGN_512BYTES: u1 = 0, ALIGN_1024BYTES: u1 = 0, ALIGN_2048BYTES: u1 = 0, ALIGN_4096BYTES: u1 = 0, ALIGN_8192BYTES: u1 = 0, ALIGN_MASK: u1 = 0, LNK_NRELOC_OVFL: u1 = 0, MEM_DISCARDABLE: u1 = 0, MEM_NOT_CACHED: u1 = 0, MEM_NOT_PAGED: u1 = 0, MEM_SHARED: u1 = 0, MEM_EXECUTE: u1 = 0, MEM_READ: u1 = 0, MEM_WRITE: u1 = 0, SCALE_INDEX: u1 = 0, }) IMAGE_SECTION_CHARACTERISTICS { return @as(IMAGE_SECTION_CHARACTERISTICS, @enumFromInt((if (o.TYPE_NO_PAD == 1) @intFromEnum(IMAGE_SECTION_CHARACTERISTICS.TYPE_NO_PAD) else 0) | (if (o.CNT_CODE == 1) @intFromEnum(IMAGE_SECTION_CHARACTERISTICS.CNT_CODE) else 0) | (if (o.CNT_INITIALIZED_DATA == 1) @intFromEnum(IMAGE_SECTION_CHARACTERISTICS.CNT_INITIALIZED_DATA) else 0) | (if (o.CNT_UNINITIALIZED_DATA == 1) @intFromEnum(IMAGE_SECTION_CHARACTERISTICS.CNT_UNINITIALIZED_DATA) else 0) | (if (o.LNK_OTHER == 1) @intFromEnum(IMAGE_SECTION_CHARACTERISTICS.LNK_OTHER) else 0) | (if (o.LNK_INFO == 1) @intFromEnum(IMAGE_SECTION_CHARACTERISTICS.LNK_INFO) else 0) | (if (o.LNK_REMOVE == 1) @intFromEnum(IMAGE_SECTION_CHARACTERISTICS.LNK_REMOVE) else 0) | (if (o.LNK_COMDAT == 1) @intFromEnum(IMAGE_SECTION_CHARACTERISTICS.LNK_COMDAT) else 0) | (if (o.NO_DEFER_SPEC_EXC == 1) @intFromEnum(IMAGE_SECTION_CHARACTERISTICS.NO_DEFER_SPEC_EXC) else 0) | (if (o.GPREL == 1) @intFromEnum(IMAGE_SECTION_CHARACTERISTICS.GPREL) else 0) | (if (o.MEM_PURGEABLE == 1) @intFromEnum(IMAGE_SECTION_CHARACTERISTICS.MEM_PURGEABLE) else 0) | (if (o.MEM_LOCKED == 1) @intFromEnum(IMAGE_SECTION_CHARACTERISTICS.MEM_LOCKED) else 0) | (if (o.MEM_PRELOAD == 1) @intFromEnum(IMAGE_SECTION_CHARACTERISTICS.MEM_PRELOAD) else 0) | (if (o.ALIGN_1BYTES == 1) @intFromEnum(IMAGE_SECTION_CHARACTERISTICS.ALIGN_1BYTES) else 0) | (if (o.ALIGN_2BYTES == 1) @intFromEnum(IMAGE_SECTION_CHARACTERISTICS.ALIGN_2BYTES) else 0) | (if (o.ALIGN_4BYTES == 1) @intFromEnum(IMAGE_SECTION_CHARACTERISTICS.ALIGN_4BYTES) else 0) | (if (o.ALIGN_8BYTES == 1) @intFromEnum(IMAGE_SECTION_CHARACTERISTICS.ALIGN_8BYTES) else 0) | (if (o.ALIGN_16BYTES == 1) @intFromEnum(IMAGE_SECTION_CHARACTERISTICS.ALIGN_16BYTES) else 0) | (if (o.ALIGN_32BYTES == 1) @intFromEnum(IMAGE_SECTION_CHARACTERISTICS.ALIGN_32BYTES) else 0) | (if (o.ALIGN_64BYTES == 1) @intFromEnum(IMAGE_SECTION_CHARACTERISTICS.ALIGN_64BYTES) else 0) | (if (o.ALIGN_128BYTES == 1) @intFromEnum(IMAGE_SECTION_CHARACTERISTICS.ALIGN_128BYTES) else 0) | (if (o.ALIGN_256BYTES == 1) @intFromEnum(IMAGE_SECTION_CHARACTERISTICS.ALIGN_256BYTES) else 0) | (if (o.ALIGN_512BYTES == 1) @intFromEnum(IMAGE_SECTION_CHARACTERISTICS.ALIGN_512BYTES) else 0) | (if (o.ALIGN_1024BYTES == 1) @intFromEnum(IMAGE_SECTION_CHARACTERISTICS.ALIGN_1024BYTES) else 0) | (if (o.ALIGN_2048BYTES == 1) @intFromEnum(IMAGE_SECTION_CHARACTERISTICS.ALIGN_2048BYTES) else 0) | (if (o.ALIGN_4096BYTES == 1) @intFromEnum(IMAGE_SECTION_CHARACTERISTICS.ALIGN_4096BYTES) else 0) | (if (o.ALIGN_8192BYTES == 1) @intFromEnum(IMAGE_SECTION_CHARACTERISTICS.ALIGN_8192BYTES) else 0) | (if (o.ALIGN_MASK == 1) @intFromEnum(IMAGE_SECTION_CHARACTERISTICS.ALIGN_MASK) else 0) | (if (o.LNK_NRELOC_OVFL == 1) @intFromEnum(IMAGE_SECTION_CHARACTERISTICS.LNK_NRELOC_OVFL) else 0) | (if (o.MEM_DISCARDABLE == 1) @intFromEnum(IMAGE_SECTION_CHARACTERISTICS.MEM_DISCARDABLE) else 0) | (if (o.MEM_NOT_CACHED == 1) @intFromEnum(IMAGE_SECTION_CHARACTERISTICS.MEM_NOT_CACHED) else 0) | (if (o.MEM_NOT_PAGED == 1) @intFromEnum(IMAGE_SECTION_CHARACTERISTICS.MEM_NOT_PAGED) else 0) | (if (o.MEM_SHARED == 1) @intFromEnum(IMAGE_SECTION_CHARACTERISTICS.MEM_SHARED) else 0) | (if (o.MEM_EXECUTE == 1) @intFromEnum(IMAGE_SECTION_CHARACTERISTICS.MEM_EXECUTE) else 0) | (if (o.MEM_READ == 1) @intFromEnum(IMAGE_SECTION_CHARACTERISTICS.MEM_READ) else 0) | (if (o.MEM_WRITE == 1) @intFromEnum(IMAGE_SECTION_CHARACTERISTICS.MEM_WRITE) else 0) | (if (o.SCALE_INDEX == 1) @intFromEnum(IMAGE_SECTION_CHARACTERISTICS.SCALE_INDEX) else 0))); } }; pub const IMAGE_SCN_TYPE_NO_PAD = IMAGE_SECTION_CHARACTERISTICS.TYPE_NO_PAD; pub const IMAGE_SCN_CNT_CODE = IMAGE_SECTION_CHARACTERISTICS.CNT_CODE; pub const IMAGE_SCN_CNT_INITIALIZED_DATA = IMAGE_SECTION_CHARACTERISTICS.CNT_INITIALIZED_DATA; pub const IMAGE_SCN_CNT_UNINITIALIZED_DATA = IMAGE_SECTION_CHARACTERISTICS.CNT_UNINITIALIZED_DATA; pub const IMAGE_SCN_LNK_OTHER = IMAGE_SECTION_CHARACTERISTICS.LNK_OTHER; pub const IMAGE_SCN_LNK_INFO = IMAGE_SECTION_CHARACTERISTICS.LNK_INFO; pub const IMAGE_SCN_LNK_REMOVE = IMAGE_SECTION_CHARACTERISTICS.LNK_REMOVE; pub const IMAGE_SCN_LNK_COMDAT = IMAGE_SECTION_CHARACTERISTICS.LNK_COMDAT; pub const IMAGE_SCN_NO_DEFER_SPEC_EXC = IMAGE_SECTION_CHARACTERISTICS.NO_DEFER_SPEC_EXC; pub const IMAGE_SCN_GPREL = IMAGE_SECTION_CHARACTERISTICS.GPREL; pub const IMAGE_SCN_MEM_FARDATA = IMAGE_SECTION_CHARACTERISTICS.GPREL; pub const IMAGE_SCN_MEM_PURGEABLE = IMAGE_SECTION_CHARACTERISTICS.MEM_PURGEABLE; pub const IMAGE_SCN_MEM_16BIT = IMAGE_SECTION_CHARACTERISTICS.MEM_PURGEABLE; pub const IMAGE_SCN_MEM_LOCKED = IMAGE_SECTION_CHARACTERISTICS.MEM_LOCKED; pub const IMAGE_SCN_MEM_PRELOAD = IMAGE_SECTION_CHARACTERISTICS.MEM_PRELOAD; pub const IMAGE_SCN_ALIGN_1BYTES = IMAGE_SECTION_CHARACTERISTICS.ALIGN_1BYTES; pub const IMAGE_SCN_ALIGN_2BYTES = IMAGE_SECTION_CHARACTERISTICS.ALIGN_2BYTES; pub const IMAGE_SCN_ALIGN_4BYTES = IMAGE_SECTION_CHARACTERISTICS.ALIGN_4BYTES; pub const IMAGE_SCN_ALIGN_8BYTES = IMAGE_SECTION_CHARACTERISTICS.ALIGN_8BYTES; pub const IMAGE_SCN_ALIGN_16BYTES = IMAGE_SECTION_CHARACTERISTICS.ALIGN_16BYTES; pub const IMAGE_SCN_ALIGN_32BYTES = IMAGE_SECTION_CHARACTERISTICS.ALIGN_32BYTES; pub const IMAGE_SCN_ALIGN_64BYTES = IMAGE_SECTION_CHARACTERISTICS.ALIGN_64BYTES; pub const IMAGE_SCN_ALIGN_128BYTES = IMAGE_SECTION_CHARACTERISTICS.ALIGN_128BYTES; pub const IMAGE_SCN_ALIGN_256BYTES = IMAGE_SECTION_CHARACTERISTICS.ALIGN_256BYTES; pub const IMAGE_SCN_ALIGN_512BYTES = IMAGE_SECTION_CHARACTERISTICS.ALIGN_512BYTES; pub const IMAGE_SCN_ALIGN_1024BYTES = IMAGE_SECTION_CHARACTERISTICS.ALIGN_1024BYTES; pub const IMAGE_SCN_ALIGN_2048BYTES = IMAGE_SECTION_CHARACTERISTICS.ALIGN_2048BYTES; pub const IMAGE_SCN_ALIGN_4096BYTES = IMAGE_SECTION_CHARACTERISTICS.ALIGN_4096BYTES; pub const IMAGE_SCN_ALIGN_8192BYTES = IMAGE_SECTION_CHARACTERISTICS.ALIGN_8192BYTES; pub const IMAGE_SCN_ALIGN_MASK = IMAGE_SECTION_CHARACTERISTICS.ALIGN_MASK; pub const IMAGE_SCN_LNK_NRELOC_OVFL = IMAGE_SECTION_CHARACTERISTICS.LNK_NRELOC_OVFL; pub const IMAGE_SCN_MEM_DISCARDABLE = IMAGE_SECTION_CHARACTERISTICS.MEM_DISCARDABLE; pub const IMAGE_SCN_MEM_NOT_CACHED = IMAGE_SECTION_CHARACTERISTICS.MEM_NOT_CACHED; pub const IMAGE_SCN_MEM_NOT_PAGED = IMAGE_SECTION_CHARACTERISTICS.MEM_NOT_PAGED; pub const IMAGE_SCN_MEM_SHARED = IMAGE_SECTION_CHARACTERISTICS.MEM_SHARED; pub const IMAGE_SCN_MEM_EXECUTE = IMAGE_SECTION_CHARACTERISTICS.MEM_EXECUTE; pub const IMAGE_SCN_MEM_READ = IMAGE_SECTION_CHARACTERISTICS.MEM_READ; pub const IMAGE_SCN_MEM_WRITE = IMAGE_SECTION_CHARACTERISTICS.MEM_WRITE; pub const IMAGE_SCN_SCALE_INDEX = IMAGE_SECTION_CHARACTERISTICS.SCALE_INDEX; pub const IMAGE_FILE_MACHINE = enum(u16) { AXP64 = 644, I386 = 332, IA64 = 512, AMD64 = 34404, UNKNOWN = 0, TARGET_HOST = 1, R3000 = 354, R4000 = 358, R10000 = 360, WCEMIPSV2 = 361, ALPHA = 388, SH3 = 418, SH3DSP = 419, SH3E = 420, SH4 = 422, SH5 = 424, ARM = 448, THUMB = 450, ARMNT = 452, AM33 = 467, POWERPC = 496, POWERPCFP = 497, MIPS16 = 614, // ALPHA64 = 644, this enum value conflicts with AXP64 MIPSFPU = 870, MIPSFPU16 = 1126, TRICORE = 1312, CEF = 3311, EBC = 3772, M32R = 36929, ARM64 = 43620, CEE = 49390, }; pub const IMAGE_FILE_MACHINE_AXP64 = IMAGE_FILE_MACHINE.AXP64; pub const IMAGE_FILE_MACHINE_I386 = IMAGE_FILE_MACHINE.I386; pub const IMAGE_FILE_MACHINE_IA64 = IMAGE_FILE_MACHINE.IA64; pub const IMAGE_FILE_MACHINE_AMD64 = IMAGE_FILE_MACHINE.AMD64; pub const IMAGE_FILE_MACHINE_UNKNOWN = IMAGE_FILE_MACHINE.UNKNOWN; pub const IMAGE_FILE_MACHINE_TARGET_HOST = IMAGE_FILE_MACHINE.TARGET_HOST; pub const IMAGE_FILE_MACHINE_R3000 = IMAGE_FILE_MACHINE.R3000; pub const IMAGE_FILE_MACHINE_R4000 = IMAGE_FILE_MACHINE.R4000; pub const IMAGE_FILE_MACHINE_R10000 = IMAGE_FILE_MACHINE.R10000; pub const IMAGE_FILE_MACHINE_WCEMIPSV2 = IMAGE_FILE_MACHINE.WCEMIPSV2; pub const IMAGE_FILE_MACHINE_ALPHA = IMAGE_FILE_MACHINE.ALPHA; pub const IMAGE_FILE_MACHINE_SH3 = IMAGE_FILE_MACHINE.SH3; pub const IMAGE_FILE_MACHINE_SH3DSP = IMAGE_FILE_MACHINE.SH3DSP; pub const IMAGE_FILE_MACHINE_SH3E = IMAGE_FILE_MACHINE.SH3E; pub const IMAGE_FILE_MACHINE_SH4 = IMAGE_FILE_MACHINE.SH4; pub const IMAGE_FILE_MACHINE_SH5 = IMAGE_FILE_MACHINE.SH5; pub const IMAGE_FILE_MACHINE_ARM = IMAGE_FILE_MACHINE.ARM; pub const IMAGE_FILE_MACHINE_THUMB = IMAGE_FILE_MACHINE.THUMB; pub const IMAGE_FILE_MACHINE_ARMNT = IMAGE_FILE_MACHINE.ARMNT; pub const IMAGE_FILE_MACHINE_AM33 = IMAGE_FILE_MACHINE.AM33; pub const IMAGE_FILE_MACHINE_POWERPC = IMAGE_FILE_MACHINE.POWERPC; pub const IMAGE_FILE_MACHINE_POWERPCFP = IMAGE_FILE_MACHINE.POWERPCFP; pub const IMAGE_FILE_MACHINE_MIPS16 = IMAGE_FILE_MACHINE.MIPS16; pub const IMAGE_FILE_MACHINE_ALPHA64 = IMAGE_FILE_MACHINE.AXP64; pub const IMAGE_FILE_MACHINE_MIPSFPU = IMAGE_FILE_MACHINE.MIPSFPU; pub const IMAGE_FILE_MACHINE_MIPSFPU16 = IMAGE_FILE_MACHINE.MIPSFPU16; pub const IMAGE_FILE_MACHINE_TRICORE = IMAGE_FILE_MACHINE.TRICORE; pub const IMAGE_FILE_MACHINE_CEF = IMAGE_FILE_MACHINE.CEF; pub const IMAGE_FILE_MACHINE_EBC = IMAGE_FILE_MACHINE.EBC; pub const IMAGE_FILE_MACHINE_M32R = IMAGE_FILE_MACHINE.M32R; pub const IMAGE_FILE_MACHINE_ARM64 = IMAGE_FILE_MACHINE.ARM64; pub const IMAGE_FILE_MACHINE_CEE = IMAGE_FILE_MACHINE.CEE; pub const IMAGE_SUBSYSTEM = enum(u16) { UNKNOWN = 0, NATIVE = 1, WINDOWS_GUI = 2, WINDOWS_CUI = 3, OS2_CUI = 5, POSIX_CUI = 7, NATIVE_WINDOWS = 8, WINDOWS_CE_GUI = 9, EFI_APPLICATION = 10, EFI_BOOT_SERVICE_DRIVER = 11, EFI_RUNTIME_DRIVER = 12, EFI_ROM = 13, XBOX = 14, WINDOWS_BOOT_APPLICATION = 16, XBOX_CODE_CATALOG = 17, }; pub const IMAGE_SUBSYSTEM_UNKNOWN = IMAGE_SUBSYSTEM.UNKNOWN; pub const IMAGE_SUBSYSTEM_NATIVE = IMAGE_SUBSYSTEM.NATIVE; pub const IMAGE_SUBSYSTEM_WINDOWS_GUI = IMAGE_SUBSYSTEM.WINDOWS_GUI; pub const IMAGE_SUBSYSTEM_WINDOWS_CUI = IMAGE_SUBSYSTEM.WINDOWS_CUI; pub const IMAGE_SUBSYSTEM_OS2_CUI = IMAGE_SUBSYSTEM.OS2_CUI; pub const IMAGE_SUBSYSTEM_POSIX_CUI = IMAGE_SUBSYSTEM.POSIX_CUI; pub const IMAGE_SUBSYSTEM_NATIVE_WINDOWS = IMAGE_SUBSYSTEM.NATIVE_WINDOWS; pub const IMAGE_SUBSYSTEM_WINDOWS_CE_GUI = IMAGE_SUBSYSTEM.WINDOWS_CE_GUI; pub const IMAGE_SUBSYSTEM_EFI_APPLICATION = IMAGE_SUBSYSTEM.EFI_APPLICATION; pub const IMAGE_SUBSYSTEM_EFI_BOOT_SERVICE_DRIVER = IMAGE_SUBSYSTEM.EFI_BOOT_SERVICE_DRIVER; pub const IMAGE_SUBSYSTEM_EFI_RUNTIME_DRIVER = IMAGE_SUBSYSTEM.EFI_RUNTIME_DRIVER; pub const IMAGE_SUBSYSTEM_EFI_ROM = IMAGE_SUBSYSTEM.EFI_ROM; pub const IMAGE_SUBSYSTEM_XBOX = IMAGE_SUBSYSTEM.XBOX; pub const IMAGE_SUBSYSTEM_WINDOWS_BOOT_APPLICATION = IMAGE_SUBSYSTEM.WINDOWS_BOOT_APPLICATION; pub const IMAGE_SUBSYSTEM_XBOX_CODE_CATALOG = IMAGE_SUBSYSTEM.XBOX_CODE_CATALOG; pub const IMAGE_DLL_CHARACTERISTICS = enum(u16) { HIGH_ENTROPY_VA = 32, DYNAMIC_BASE = 64, FORCE_INTEGRITY = 128, NX_COMPAT = 256, NO_ISOLATION = 512, NO_SEH = 1024, NO_BIND = 2048, APPCONTAINER = 4096, WDM_DRIVER = 8192, GUARD_CF = 16384, TERMINAL_SERVER_AWARE = 32768, EX_CET_COMPAT = 1, EX_CET_COMPAT_STRICT_MODE = 2, EX_CET_SET_CONTEXT_IP_VALIDATION_RELAXED_MODE = 4, EX_CET_DYNAMIC_APIS_ALLOW_IN_PROC = 8, EX_CET_RESERVED_1 = 16, // EX_CET_RESERVED_2 = 32, this enum value conflicts with HIGH_ENTROPY_VA _, pub fn initFlags(o: struct { HIGH_ENTROPY_VA: u1 = 0, DYNAMIC_BASE: u1 = 0, FORCE_INTEGRITY: u1 = 0, NX_COMPAT: u1 = 0, NO_ISOLATION: u1 = 0, NO_SEH: u1 = 0, NO_BIND: u1 = 0, APPCONTAINER: u1 = 0, WDM_DRIVER: u1 = 0, GUARD_CF: u1 = 0, TERMINAL_SERVER_AWARE: u1 = 0, EX_CET_COMPAT: u1 = 0, EX_CET_COMPAT_STRICT_MODE: u1 = 0, EX_CET_SET_CONTEXT_IP_VALIDATION_RELAXED_MODE: u1 = 0, EX_CET_DYNAMIC_APIS_ALLOW_IN_PROC: u1 = 0, EX_CET_RESERVED_1: u1 = 0, }) IMAGE_DLL_CHARACTERISTICS { return @as(IMAGE_DLL_CHARACTERISTICS, @enumFromInt((if (o.HIGH_ENTROPY_VA == 1) @intFromEnum(IMAGE_DLL_CHARACTERISTICS.HIGH_ENTROPY_VA) else 0) | (if (o.DYNAMIC_BASE == 1) @intFromEnum(IMAGE_DLL_CHARACTERISTICS.DYNAMIC_BASE) else 0) | (if (o.FORCE_INTEGRITY == 1) @intFromEnum(IMAGE_DLL_CHARACTERISTICS.FORCE_INTEGRITY) else 0) | (if (o.NX_COMPAT == 1) @intFromEnum(IMAGE_DLL_CHARACTERISTICS.NX_COMPAT) else 0) | (if (o.NO_ISOLATION == 1) @intFromEnum(IMAGE_DLL_CHARACTERISTICS.NO_ISOLATION) else 0) | (if (o.NO_SEH == 1) @intFromEnum(IMAGE_DLL_CHARACTERISTICS.NO_SEH) else 0) | (if (o.NO_BIND == 1) @intFromEnum(IMAGE_DLL_CHARACTERISTICS.NO_BIND) else 0) | (if (o.APPCONTAINER == 1) @intFromEnum(IMAGE_DLL_CHARACTERISTICS.APPCONTAINER) else 0) | (if (o.WDM_DRIVER == 1) @intFromEnum(IMAGE_DLL_CHARACTERISTICS.WDM_DRIVER) else 0) | (if (o.GUARD_CF == 1) @intFromEnum(IMAGE_DLL_CHARACTERISTICS.GUARD_CF) else 0) | (if (o.TERMINAL_SERVER_AWARE == 1) @intFromEnum(IMAGE_DLL_CHARACTERISTICS.TERMINAL_SERVER_AWARE) else 0) | (if (o.EX_CET_COMPAT == 1) @intFromEnum(IMAGE_DLL_CHARACTERISTICS.EX_CET_COMPAT) else 0) | (if (o.EX_CET_COMPAT_STRICT_MODE == 1) @intFromEnum(IMAGE_DLL_CHARACTERISTICS.EX_CET_COMPAT_STRICT_MODE) else 0) | (if (o.EX_CET_SET_CONTEXT_IP_VALIDATION_RELAXED_MODE == 1) @intFromEnum(IMAGE_DLL_CHARACTERISTICS.EX_CET_SET_CONTEXT_IP_VALIDATION_RELAXED_MODE) else 0) | (if (o.EX_CET_DYNAMIC_APIS_ALLOW_IN_PROC == 1) @intFromEnum(IMAGE_DLL_CHARACTERISTICS.EX_CET_DYNAMIC_APIS_ALLOW_IN_PROC) else 0) | (if (o.EX_CET_RESERVED_1 == 1) @intFromEnum(IMAGE_DLL_CHARACTERISTICS.EX_CET_RESERVED_1) else 0))); } }; pub const IMAGE_DLLCHARACTERISTICS_HIGH_ENTROPY_VA = IMAGE_DLL_CHARACTERISTICS.HIGH_ENTROPY_VA; pub const IMAGE_DLLCHARACTERISTICS_DYNAMIC_BASE = IMAGE_DLL_CHARACTERISTICS.DYNAMIC_BASE; pub const IMAGE_DLLCHARACTERISTICS_FORCE_INTEGRITY = IMAGE_DLL_CHARACTERISTICS.FORCE_INTEGRITY; pub const IMAGE_DLLCHARACTERISTICS_NX_COMPAT = IMAGE_DLL_CHARACTERISTICS.NX_COMPAT; pub const IMAGE_DLLCHARACTERISTICS_NO_ISOLATION = IMAGE_DLL_CHARACTERISTICS.NO_ISOLATION; pub const IMAGE_DLLCHARACTERISTICS_NO_SEH = IMAGE_DLL_CHARACTERISTICS.NO_SEH; pub const IMAGE_DLLCHARACTERISTICS_NO_BIND = IMAGE_DLL_CHARACTERISTICS.NO_BIND; pub const IMAGE_DLLCHARACTERISTICS_APPCONTAINER = IMAGE_DLL_CHARACTERISTICS.APPCONTAINER; pub const IMAGE_DLLCHARACTERISTICS_WDM_DRIVER = IMAGE_DLL_CHARACTERISTICS.WDM_DRIVER; pub const IMAGE_DLLCHARACTERISTICS_GUARD_CF = IMAGE_DLL_CHARACTERISTICS.GUARD_CF; pub const IMAGE_DLLCHARACTERISTICS_TERMINAL_SERVER_AWARE = IMAGE_DLL_CHARACTERISTICS.TERMINAL_SERVER_AWARE; pub const IMAGE_DLLCHARACTERISTICS_EX_CET_COMPAT = IMAGE_DLL_CHARACTERISTICS.EX_CET_COMPAT; pub const IMAGE_DLLCHARACTERISTICS_EX_CET_COMPAT_STRICT_MODE = IMAGE_DLL_CHARACTERISTICS.EX_CET_COMPAT_STRICT_MODE; pub const IMAGE_DLLCHARACTERISTICS_EX_CET_SET_CONTEXT_IP_VALIDATION_RELAXED_MODE = IMAGE_DLL_CHARACTERISTICS.EX_CET_SET_CONTEXT_IP_VALIDATION_RELAXED_MODE; pub const IMAGE_DLLCHARACTERISTICS_EX_CET_DYNAMIC_APIS_ALLOW_IN_PROC = IMAGE_DLL_CHARACTERISTICS.EX_CET_DYNAMIC_APIS_ALLOW_IN_PROC; pub const IMAGE_DLLCHARACTERISTICS_EX_CET_RESERVED_1 = IMAGE_DLL_CHARACTERISTICS.EX_CET_RESERVED_1; pub const IMAGE_DLLCHARACTERISTICS_EX_CET_RESERVED_2 = IMAGE_DLL_CHARACTERISTICS.HIGH_ENTROPY_VA; pub const IMAGE_OPTIONAL_HEADER_MAGIC = enum(u16) { NT_OPTIONAL_HDR_MAGIC = 523, NT_OPTIONAL_HDR32_MAGIC = 267, // NT_OPTIONAL_HDR64_MAGIC = 523, this enum value conflicts with NT_OPTIONAL_HDR_MAGIC ROM_OPTIONAL_HDR_MAGIC = 263, }; pub const IMAGE_NT_OPTIONAL_HDR_MAGIC = IMAGE_OPTIONAL_HEADER_MAGIC.NT_OPTIONAL_HDR_MAGIC; pub const IMAGE_NT_OPTIONAL_HDR32_MAGIC = IMAGE_OPTIONAL_HEADER_MAGIC.NT_OPTIONAL_HDR32_MAGIC; pub const IMAGE_NT_OPTIONAL_HDR64_MAGIC = IMAGE_OPTIONAL_HEADER_MAGIC.NT_OPTIONAL_HDR_MAGIC; pub const IMAGE_ROM_OPTIONAL_HDR_MAGIC = IMAGE_OPTIONAL_HEADER_MAGIC.ROM_OPTIONAL_HDR_MAGIC; pub const BUGCHECK_ERROR = enum(u32) { HARDWARE_PROFILE_UNDOCKED_STRING = 1073807361, HARDWARE_PROFILE_DOCKED_STRING = 1073807362, HARDWARE_PROFILE_UNKNOWN_STRING = 1073807363, WINDOWS_NT_BANNER = 1073741950, WINDOWS_NT_CSD_STRING = 1073741959, WINDOWS_NT_INFO_STRING = 1073741960, WINDOWS_NT_MP_STRING = 1073741961, THREAD_TERMINATE_HELD_MUTEX = 1073741962, WINDOWS_NT_INFO_STRING_PLURAL = 1073741981, WINDOWS_NT_RC_STRING = 1073741982, APC_INDEX_MISMATCH = 1, DEVICE_QUEUE_NOT_BUSY = 2, INVALID_AFFINITY_SET = 3, INVALID_DATA_ACCESS_TRAP = 4, INVALID_PROCESS_ATTACH_ATTEMPT = 5, INVALID_PROCESS_DETACH_ATTEMPT = 6, INVALID_SOFTWARE_INTERRUPT = 7, IRQL_NOT_DISPATCH_LEVEL = 8, IRQL_NOT_GREATER_OR_EQUAL = 9, IRQL_NOT_LESS_OR_EQUAL = 10, NO_EXCEPTION_HANDLING_SUPPORT = 11, MAXIMUM_WAIT_OBJECTS_EXCEEDED = 12, MUTEX_LEVEL_NUMBER_VIOLATION = 13, NO_USER_MODE_CONTEXT = 14, SPIN_LOCK_ALREADY_OWNED = 15, SPIN_LOCK_NOT_OWNED = 16, THREAD_NOT_MUTEX_OWNER = 17, TRAP_CAUSE_UNKNOWN = 18, EMPTY_THREAD_REAPER_LIST = 19, CREATE_DELETE_LOCK_NOT_LOCKED = 20, LAST_CHANCE_CALLED_FROM_KMODE = 21, CID_HANDLE_CREATION = 22, CID_HANDLE_DELETION = 23, REFERENCE_BY_POINTER = 24, BAD_POOL_HEADER = 25, MEMORY_MANAGEMENT = 26, PFN_SHARE_COUNT = 27, PFN_REFERENCE_COUNT = 28, NO_SPIN_LOCK_AVAILABLE = 29, KMODE_EXCEPTION_NOT_HANDLED = 30, SHARED_RESOURCE_CONV_ERROR = 31, KERNEL_APC_PENDING_DURING_EXIT = 32, QUOTA_UNDERFLOW = 33, FILE_SYSTEM = 34, FAT_FILE_SYSTEM = 35, NTFS_FILE_SYSTEM = 36, NPFS_FILE_SYSTEM = 37, CDFS_FILE_SYSTEM = 38, RDR_FILE_SYSTEM = 39, CORRUPT_ACCESS_TOKEN = 40, SECURITY_SYSTEM = 41, INCONSISTENT_IRP = 42, PANIC_STACK_SWITCH = 43, PORT_DRIVER_INTERNAL = 44, SCSI_DISK_DRIVER_INTERNAL = 45, DATA_BUS_ERROR = 46, INSTRUCTION_BUS_ERROR = 47, SET_OF_INVALID_CONTEXT = 48, PHASE0_INITIALIZATION_FAILED = 49, PHASE1_INITIALIZATION_FAILED = 50, UNEXPECTED_INITIALIZATION_CALL = 51, CACHE_MANAGER = 52, NO_MORE_IRP_STACK_LOCATIONS = 53, DEVICE_REFERENCE_COUNT_NOT_ZERO = 54, FLOPPY_INTERNAL_ERROR = 55, SERIAL_DRIVER_INTERNAL = 56, SYSTEM_EXIT_OWNED_MUTEX = 57, SYSTEM_UNWIND_PREVIOUS_USER = 58, SYSTEM_SERVICE_EXCEPTION = 59, INTERRUPT_UNWIND_ATTEMPTED = 60, INTERRUPT_EXCEPTION_NOT_HANDLED = 61, MULTIPROCESSOR_CONFIGURATION_NOT_SUPPORTED = 62, NO_MORE_SYSTEM_PTES = 63, TARGET_MDL_TOO_SMALL = 64, MUST_SUCCEED_POOL_EMPTY = 65, ATDISK_DRIVER_INTERNAL = 66, NO_SUCH_PARTITION = 67, MULTIPLE_IRP_COMPLETE_REQUESTS = 68, INSUFFICIENT_SYSTEM_MAP_REGS = 69, DEREF_UNKNOWN_LOGON_SESSION = 70, REF_UNKNOWN_LOGON_SESSION = 71, CANCEL_STATE_IN_COMPLETED_IRP = 72, PAGE_FAULT_WITH_INTERRUPTS_OFF = 73, IRQL_GT_ZERO_AT_SYSTEM_SERVICE = 74, STREAMS_INTERNAL_ERROR = 75, FATAL_UNHANDLED_HARD_ERROR = 76, NO_PAGES_AVAILABLE = 77, PFN_LIST_CORRUPT = 78, NDIS_INTERNAL_ERROR = 79, PAGE_FAULT_IN_NONPAGED_AREA = 80, PAGE_FAULT_IN_NONPAGED_AREA_M = 268435536, REGISTRY_ERROR = 81, MAILSLOT_FILE_SYSTEM = 82, NO_BOOT_DEVICE = 83, LM_SERVER_INTERNAL_ERROR = 84, DATA_COHERENCY_EXCEPTION = 85, INSTRUCTION_COHERENCY_EXCEPTION = 86, XNS_INTERNAL_ERROR = 87, VOLMGRX_INTERNAL_ERROR = 88, PINBALL_FILE_SYSTEM = 89, CRITICAL_SERVICE_FAILED = 90, SET_ENV_VAR_FAILED = 91, HAL_INITIALIZATION_FAILED = 92, UNSUPPORTED_PROCESSOR = 93, OBJECT_INITIALIZATION_FAILED = 94, SECURITY_INITIALIZATION_FAILED = 95, PROCESS_INITIALIZATION_FAILED = 96, HAL1_INITIALIZATION_FAILED = 97, OBJECT1_INITIALIZATION_FAILED = 98, SECURITY1_INITIALIZATION_FAILED = 99, SYMBOLIC_INITIALIZATION_FAILED = 100, MEMORY1_INITIALIZATION_FAILED = 101, CACHE_INITIALIZATION_FAILED = 102, CONFIG_INITIALIZATION_FAILED = 103, FILE_INITIALIZATION_FAILED = 104, IO1_INITIALIZATION_FAILED = 105, LPC_INITIALIZATION_FAILED = 106, PROCESS1_INITIALIZATION_FAILED = 107, REFMON_INITIALIZATION_FAILED = 108, SESSION1_INITIALIZATION_FAILED = 109, BOOTPROC_INITIALIZATION_FAILED = 110, VSL_INITIALIZATION_FAILED = 111, SOFT_RESTART_FATAL_ERROR = 112, ASSIGN_DRIVE_LETTERS_FAILED = 114, CONFIG_LIST_FAILED = 115, BAD_SYSTEM_CONFIG_INFO = 116, CANNOT_WRITE_CONFIGURATION = 117, PROCESS_HAS_LOCKED_PAGES = 118, KERNEL_STACK_INPAGE_ERROR = 119, PHASE0_EXCEPTION = 120, MISMATCHED_HAL = 121, KERNEL_DATA_INPAGE_ERROR = 122, INACCESSIBLE_BOOT_DEVICE = 123, BUGCODE_NDIS_DRIVER = 124, INSTALL_MORE_MEMORY = 125, SYSTEM_THREAD_EXCEPTION_NOT_HANDLED = 126, SYSTEM_THREAD_EXCEPTION_NOT_HANDLED_M = 268435582, UNEXPECTED_KERNEL_MODE_TRAP = 127, UNEXPECTED_KERNEL_MODE_TRAP_M = 268435583, NMI_HARDWARE_FAILURE = 128, SPIN_LOCK_INIT_FAILURE = 129, DFS_FILE_SYSTEM = 130, OFS_FILE_SYSTEM = 131, RECOM_DRIVER = 132, SETUP_FAILURE = 133, AUDIT_FAILURE = 134, MBR_CHECKSUM_MISMATCH = 139, KERNEL_MODE_EXCEPTION_NOT_HANDLED = 142, KERNEL_MODE_EXCEPTION_NOT_HANDLED_M = 268435598, PP0_INITIALIZATION_FAILED = 143, PP1_INITIALIZATION_FAILED = 144, WIN32K_INIT_OR_RIT_FAILURE = 145, UP_DRIVER_ON_MP_SYSTEM = 146, INVALID_KERNEL_HANDLE = 147, KERNEL_STACK_LOCKED_AT_EXIT = 148, PNP_INTERNAL_ERROR = 149, INVALID_WORK_QUEUE_ITEM = 150, BOUND_IMAGE_UNSUPPORTED = 151, END_OF_NT_EVALUATION_PERIOD = 152, INVALID_REGION_OR_SEGMENT = 153, SYSTEM_LICENSE_VIOLATION = 154, UDFS_FILE_SYSTEM = 155, MACHINE_CHECK_EXCEPTION = 156, USER_MODE_HEALTH_MONITOR = 158, DRIVER_POWER_STATE_FAILURE = 159, INTERNAL_POWER_ERROR = 160, PCI_BUS_DRIVER_INTERNAL = 161, MEMORY_IMAGE_CORRUPT = 162, ACPI_DRIVER_INTERNAL = 163, CNSS_FILE_SYSTEM_FILTER = 164, ACPI_BIOS_ERROR = 165, FP_EMULATION_ERROR = 166, BAD_EXHANDLE = 167, BOOTING_IN_SAFEMODE_MINIMAL = 168, BOOTING_IN_SAFEMODE_NETWORK = 169, BOOTING_IN_SAFEMODE_DSREPAIR = 170, SESSION_HAS_VALID_POOL_ON_EXIT = 171, HAL_MEMORY_ALLOCATION = 172, VIDEO_DRIVER_DEBUG_REPORT_REQUEST = 1073741997, BGI_DETECTED_VIOLATION = 177, VIDEO_DRIVER_INIT_FAILURE = 180, BOOTLOG_LOADED = 181, BOOTLOG_NOT_LOADED = 182, BOOTLOG_ENABLED = 183, ATTEMPTED_SWITCH_FROM_DPC = 184, CHIPSET_DETECTED_ERROR = 185, SESSION_HAS_VALID_VIEWS_ON_EXIT = 186, NETWORK_BOOT_INITIALIZATION_FAILED = 187, NETWORK_BOOT_DUPLICATE_ADDRESS = 188, INVALID_HIBERNATED_STATE = 189, ATTEMPTED_WRITE_TO_READONLY_MEMORY = 190, MUTEX_ALREADY_OWNED = 191, PCI_CONFIG_SPACE_ACCESS_FAILURE = 192, SPECIAL_POOL_DETECTED_MEMORY_CORRUPTION = 193, BAD_POOL_CALLER = 194, SYSTEM_IMAGE_BAD_SIGNATURE = 195, DRIVER_VERIFIER_DETECTED_VIOLATION = 196, DRIVER_CORRUPTED_EXPOOL = 197, DRIVER_CAUGHT_MODIFYING_FREED_POOL = 198, TIMER_OR_DPC_INVALID = 199, IRQL_UNEXPECTED_VALUE = 200, DRIVER_VERIFIER_IOMANAGER_VIOLATION = 201, PNP_DETECTED_FATAL_ERROR = 202, DRIVER_LEFT_LOCKED_PAGES_IN_PROCESS = 203, PAGE_FAULT_IN_FREED_SPECIAL_POOL = 204, PAGE_FAULT_BEYOND_END_OF_ALLOCATION = 205, DRIVER_UNLOADED_WITHOUT_CANCELLING_PENDING_OPERATIONS = 206, TERMINAL_SERVER_DRIVER_MADE_INCORRECT_MEMORY_REFERENCE = 207, DRIVER_CORRUPTED_MMPOOL = 208, DRIVER_IRQL_NOT_LESS_OR_EQUAL = 209, BUGCODE_ID_DRIVER = 210, DRIVER_PORTION_MUST_BE_NONPAGED = 211, SYSTEM_SCAN_AT_RAISED_IRQL_CAUGHT_IMPROPER_DRIVER_UNLOAD = 212, DRIVER_PAGE_FAULT_IN_FREED_SPECIAL_POOL = 213, DRIVER_PAGE_FAULT_BEYOND_END_OF_ALLOCATION = 214, DRIVER_PAGE_FAULT_BEYOND_END_OF_ALLOCATION_M = 268435670, DRIVER_UNMAPPING_INVALID_VIEW = 215, DRIVER_USED_EXCESSIVE_PTES = 216, LOCKED_PAGES_TRACKER_CORRUPTION = 217, SYSTEM_PTE_MISUSE = 218, DRIVER_CORRUPTED_SYSPTES = 219, DRIVER_INVALID_STACK_ACCESS = 220, POOL_CORRUPTION_IN_FILE_AREA = 222, IMPERSONATING_WORKER_THREAD = 223, ACPI_BIOS_FATAL_ERROR = 224, WORKER_THREAD_RETURNED_AT_BAD_IRQL = 225, MANUALLY_INITIATED_CRASH = 226, RESOURCE_NOT_OWNED = 227, WORKER_INVALID = 228, POWER_FAILURE_SIMULATE = 229, DRIVER_VERIFIER_DMA_VIOLATION = 230, INVALID_FLOATING_POINT_STATE = 231, INVALID_CANCEL_OF_FILE_OPEN = 232, ACTIVE_EX_WORKER_THREAD_TERMINATION = 233, SAVER_UNSPECIFIED = 61440, SAVER_BLANKSCREEN = 61442, SAVER_INPUT = 61443, SAVER_WATCHDOG = 61444, SAVER_STARTNOTVISIBLE = 61445, SAVER_NAVIGATIONMODEL = 61446, SAVER_OUTOFMEMORY = 61447, SAVER_GRAPHICS = 61448, SAVER_NAVSERVERTIMEOUT = 61449, SAVER_CHROMEPROCESSCRASH = 61450, SAVER_NOTIFICATIONDISMISSAL = 61451, SAVER_SPEECHDISMISSAL = 61452, SAVER_CALLDISMISSAL = 61453, SAVER_APPBARDISMISSAL = 61454, SAVER_RILADAPTATIONCRASH = 61455, SAVER_APPLISTUNREACHABLE = 61456, SAVER_REPORTNOTIFICATIONFAILURE = 61457, SAVER_UNEXPECTEDSHUTDOWN = 61458, SAVER_RPCFAILURE = 61459, SAVER_AUXILIARYFULLDUMP = 61460, SAVER_ACCOUNTPROVSVCINITFAILURE = 61461, SAVER_MTBFCOMMANDTIMEOUT = 789, SAVER_MTBFCOMMANDHANG = 61697, SAVER_MTBFPASSBUGCHECK = 61698, SAVER_MTBFIOERROR = 61699, SAVER_RENDERTHREADHANG = 61952, SAVER_RENDERMOBILEUIOOM = 61953, SAVER_DEVICEUPDATEUNSPECIFIED = 62208, SAVER_AUDIODRIVERHANG = 62464, SAVER_BATTERYPULLOUT = 62720, SAVER_MEDIACORETESTHANG = 62976, SAVER_RESOURCEMANAGEMENT = 63232, SAVER_CAPTURESERVICE = 63488, SAVER_WAITFORSHELLREADY = 63744, SAVER_NONRESPONSIVEPROCESS = 404, SAVER_SICKAPPLICATION = 34918, THREAD_STUCK_IN_DEVICE_DRIVER = 234, THREAD_STUCK_IN_DEVICE_DRIVER_M = 268435690, DIRTY_MAPPED_PAGES_CONGESTION = 235, SESSION_HAS_VALID_SPECIAL_POOL_ON_EXIT = 236, UNMOUNTABLE_BOOT_VOLUME = 237, CRITICAL_PROCESS_DIED = 239, STORAGE_MINIPORT_ERROR = 240, SCSI_VERIFIER_DETECTED_VIOLATION = 241, HARDWARE_INTERRUPT_STORM = 242, DISORDERLY_SHUTDOWN = 243, CRITICAL_OBJECT_TERMINATION = 244, FLTMGR_FILE_SYSTEM = 245, PCI_VERIFIER_DETECTED_VIOLATION = 246, DRIVER_OVERRAN_STACK_BUFFER = 247, RAMDISK_BOOT_INITIALIZATION_FAILED = 248, DRIVER_RETURNED_STATUS_REPARSE_FOR_VOLUME_OPEN = 249, HTTP_DRIVER_CORRUPTED = 250, RECURSIVE_MACHINE_CHECK = 251, ATTEMPTED_EXECUTE_OF_NOEXECUTE_MEMORY = 252, DIRTY_NOWRITE_PAGES_CONGESTION = 253, BUGCODE_USB_DRIVER = 254, BC_BLUETOOTH_VERIFIER_FAULT = 3070, BC_BTHMINI_VERIFIER_FAULT = 3071, RESERVE_QUEUE_OVERFLOW = 255, LOADER_BLOCK_MISMATCH = 256, CLOCK_WATCHDOG_TIMEOUT = 257, DPC_WATCHDOG_TIMEOUT = 258, MUP_FILE_SYSTEM = 259, AGP_INVALID_ACCESS = 260, AGP_GART_CORRUPTION = 261, AGP_ILLEGALLY_REPROGRAMMED = 262, KERNEL_EXPAND_STACK_ACTIVE = 263, THIRD_PARTY_FILE_SYSTEM_FAILURE = 264, CRITICAL_STRUCTURE_CORRUPTION = 265, APP_TAGGING_INITIALIZATION_FAILED = 266, DFSC_FILE_SYSTEM = 267, FSRTL_EXTRA_CREATE_PARAMETER_VIOLATION = 268, WDF_VIOLATION = 269, VIDEO_MEMORY_MANAGEMENT_INTERNAL = 270, DRIVER_INVALID_CRUNTIME_PARAMETER = 272, RECURSIVE_NMI = 273, MSRPC_STATE_VIOLATION = 274, VIDEO_DXGKRNL_FATAL_ERROR = 275, VIDEO_SHADOW_DRIVER_FATAL_ERROR = 276, AGP_INTERNAL = 277, VIDEO_TDR_FAILURE = 278, VIDEO_TDR_TIMEOUT_DETECTED = 279, NTHV_GUEST_ERROR = 280, VIDEO_SCHEDULER_INTERNAL_ERROR = 281, EM_INITIALIZATION_ERROR = 282, DRIVER_RETURNED_HOLDING_CANCEL_LOCK = 283, ATTEMPTED_WRITE_TO_CM_PROTECTED_STORAGE = 284, EVENT_TRACING_FATAL_ERROR = 285, TOO_MANY_RECURSIVE_FAULTS = 286, INVALID_DRIVER_HANDLE = 287, BITLOCKER_FATAL_ERROR = 288, DRIVER_VIOLATION = 289, WHEA_INTERNAL_ERROR = 290, CRYPTO_SELF_TEST_FAILURE = 291, WHEA_UNCORRECTABLE_ERROR = 292, NMR_INVALID_STATE = 293, NETIO_INVALID_POOL_CALLER = 294, PAGE_NOT_ZERO = 295, WORKER_THREAD_RETURNED_WITH_BAD_IO_PRIORITY = 296, WORKER_THREAD_RETURNED_WITH_BAD_PAGING_IO_PRIORITY = 297, MUI_NO_VALID_SYSTEM_LANGUAGE = 298, FAULTY_HARDWARE_CORRUPTED_PAGE = 299, EXFAT_FILE_SYSTEM = 300, VOLSNAP_OVERLAPPED_TABLE_ACCESS = 301, INVALID_MDL_RANGE = 302, VHD_BOOT_INITIALIZATION_FAILED = 303, DYNAMIC_ADD_PROCESSOR_MISMATCH = 304, INVALID_EXTENDED_PROCESSOR_STATE = 305, RESOURCE_OWNER_POINTER_INVALID = 306, DPC_WATCHDOG_VIOLATION = 307, DRIVE_EXTENDER = 308, REGISTRY_FILTER_DRIVER_EXCEPTION = 309, VHD_BOOT_HOST_VOLUME_NOT_ENOUGH_SPACE = 310, WIN32K_HANDLE_MANAGER = 311, GPIO_CONTROLLER_DRIVER_ERROR = 312, KERNEL_SECURITY_CHECK_FAILURE = 313, KERNEL_MODE_HEAP_CORRUPTION = 314, PASSIVE_INTERRUPT_ERROR = 315, INVALID_IO_BOOST_STATE = 316, CRITICAL_INITIALIZATION_FAILURE = 317, ERRATA_WORKAROUND_UNSUCCESSFUL = 318, REGISTRY_CALLBACK_DRIVER_EXCEPTION = 319, STORAGE_DEVICE_ABNORMALITY_DETECTED = 320, VIDEO_ENGINE_TIMEOUT_DETECTED = 321, VIDEO_TDR_APPLICATION_BLOCKED = 322, PROCESSOR_DRIVER_INTERNAL = 323, BUGCODE_USB3_DRIVER = 324, SECURE_BOOT_VIOLATION = 325, NDIS_NET_BUFFER_LIST_INFO_ILLEGALLY_TRANSFERRED = 326, ABNORMAL_RESET_DETECTED = 327, IO_OBJECT_INVALID = 328, REFS_FILE_SYSTEM = 329, KERNEL_WMI_INTERNAL = 330, SOC_SUBSYSTEM_FAILURE = 331, FATAL_ABNORMAL_RESET_ERROR = 332, EXCEPTION_SCOPE_INVALID = 333, SOC_CRITICAL_DEVICE_REMOVED = 334, PDC_WATCHDOG_TIMEOUT = 335, TCPIP_AOAC_NIC_ACTIVE_REFERENCE_LEAK = 336, UNSUPPORTED_INSTRUCTION_MODE = 337, INVALID_PUSH_LOCK_FLAGS = 338, KERNEL_LOCK_ENTRY_LEAKED_ON_THREAD_TERMINATION = 339, UNEXPECTED_STORE_EXCEPTION = 340, OS_DATA_TAMPERING = 341, WINSOCK_DETECTED_HUNG_CLOSESOCKET_LIVEDUMP = 342, KERNEL_THREAD_PRIORITY_FLOOR_VIOLATION = 343, ILLEGAL_IOMMU_PAGE_FAULT = 344, HAL_ILLEGAL_IOMMU_PAGE_FAULT = 345, SDBUS_INTERNAL_ERROR = 346, WORKER_THREAD_RETURNED_WITH_SYSTEM_PAGE_PRIORITY_ACTIVE = 347, PDC_WATCHDOG_TIMEOUT_LIVEDUMP = 348, SOC_SUBSYSTEM_FAILURE_LIVEDUMP = 349, BUGCODE_NDIS_DRIVER_LIVE_DUMP = 350, CONNECTED_STANDBY_WATCHDOG_TIMEOUT_LIVEDUMP = 351, WIN32K_ATOMIC_CHECK_FAILURE = 352, LIVE_SYSTEM_DUMP = 353, KERNEL_AUTO_BOOST_INVALID_LOCK_RELEASE = 354, WORKER_THREAD_TEST_CONDITION = 355, WIN32K_CRITICAL_FAILURE = 356, CLUSTER_CSV_STATUS_IO_TIMEOUT_LIVEDUMP = 357, CLUSTER_RESOURCE_CALL_TIMEOUT_LIVEDUMP = 358, CLUSTER_CSV_SNAPSHOT_DEVICE_INFO_TIMEOUT_LIVEDUMP = 359, CLUSTER_CSV_STATE_TRANSITION_TIMEOUT_LIVEDUMP = 360, CLUSTER_CSV_VOLUME_ARRIVAL_LIVEDUMP = 361, CLUSTER_CSV_VOLUME_REMOVAL_LIVEDUMP = 362, CLUSTER_CSV_CLUSTER_WATCHDOG_LIVEDUMP = 363, INVALID_RUNDOWN_PROTECTION_FLAGS = 364, INVALID_SLOT_ALLOCATOR_FLAGS = 365, ERESOURCE_INVALID_RELEASE = 366, CLUSTER_CSV_STATE_TRANSITION_INTERVAL_TIMEOUT_LIVEDUMP = 367, CLUSTER_CSV_CLUSSVC_DISCONNECT_WATCHDOG = 368, CRYPTO_LIBRARY_INTERNAL_ERROR = 369, COREMSGCALL_INTERNAL_ERROR = 371, COREMSG_INTERNAL_ERROR = 372, PREVIOUS_FATAL_ABNORMAL_RESET_ERROR = 373, ELAM_DRIVER_DETECTED_FATAL_ERROR = 376, CLUSTER_CLUSPORT_STATUS_IO_TIMEOUT_LIVEDUMP = 377, PROFILER_CONFIGURATION_ILLEGAL = 379, PDC_LOCK_WATCHDOG_LIVEDUMP = 380, PDC_UNEXPECTED_REVOCATION_LIVEDUMP = 381, MICROCODE_REVISION_MISMATCH = 382, HYPERGUARD_INITIALIZATION_FAILURE = 383, WVR_LIVEDUMP_REPLICATION_IOCONTEXT_TIMEOUT = 384, WVR_LIVEDUMP_STATE_TRANSITION_TIMEOUT = 385, WVR_LIVEDUMP_RECOVERY_IOCONTEXT_TIMEOUT = 386, WVR_LIVEDUMP_APP_IO_TIMEOUT = 387, WVR_LIVEDUMP_MANUALLY_INITIATED = 388, WVR_LIVEDUMP_STATE_FAILURE = 389, WVR_LIVEDUMP_CRITICAL_ERROR = 390, VIDEO_DWMINIT_TIMEOUT_FALLBACK_BDD = 391, CLUSTER_CSVFS_LIVEDUMP = 392, BAD_OBJECT_HEADER = 393, SILO_CORRUPT = 394, SECURE_KERNEL_ERROR = 395, HYPERGUARD_VIOLATION = 396, SECURE_FAULT_UNHANDLED = 397, KERNEL_PARTITION_REFERENCE_VIOLATION = 398, SYNTHETIC_EXCEPTION_UNHANDLED = 399, WIN32K_CRITICAL_FAILURE_LIVEDUMP = 400, PF_DETECTED_CORRUPTION = 401, KERNEL_AUTO_BOOST_LOCK_ACQUISITION_WITH_RAISED_IRQL = 402, VIDEO_DXGKRNL_LIVEDUMP = 403, KERNEL_STORAGE_SLOT_IN_USE = 409, SMB_SERVER_LIVEDUMP = 405, LOADER_ROLLBACK_DETECTED = 406, WIN32K_SECURITY_FAILURE = 407, UFX_LIVEDUMP = 408, WORKER_THREAD_RETURNED_WHILE_ATTACHED_TO_SILO = 410, TTM_FATAL_ERROR = 411, WIN32K_POWER_WATCHDOG_TIMEOUT = 412, CLUSTER_SVHDX_LIVEDUMP = 413, BUGCODE_NETADAPTER_DRIVER = 414, PDC_PRIVILEGE_CHECK_LIVEDUMP = 415, TTM_WATCHDOG_TIMEOUT = 416, WIN32K_CALLOUT_WATCHDOG_LIVEDUMP = 417, WIN32K_CALLOUT_WATCHDOG_BUGCHECK = 418, CALL_HAS_NOT_RETURNED_WATCHDOG_TIMEOUT_LIVEDUMP = 419, DRIPS_SW_HW_DIVERGENCE_LIVEDUMP = 420, USB_DRIPS_BLOCKER_SURPRISE_REMOVAL_LIVEDUMP = 421, BLUETOOTH_ERROR_RECOVERY_LIVEDUMP = 422, SMB_REDIRECTOR_LIVEDUMP = 423, VIDEO_DXGKRNL_BLACK_SCREEN_LIVEDUMP = 424, DIRECTED_FX_TRANSITION_LIVEDUMP = 425, EXCEPTION_ON_INVALID_STACK = 426, UNWIND_ON_INVALID_STACK = 427, VIDEO_MINIPORT_FAILED_LIVEDUMP = 432, VIDEO_MINIPORT_BLACK_SCREEN_LIVEDUMP = 440, DRIVER_VERIFIER_DETECTED_VIOLATION_LIVEDUMP = 452, IO_THREADPOOL_DEADLOCK_LIVEDUMP = 453, FAST_ERESOURCE_PRECONDITION_VIOLATION = 454, STORE_DATA_STRUCTURE_CORRUPTION = 455, MANUALLY_INITIATED_POWER_BUTTON_HOLD = 456, USER_MODE_HEALTH_MONITOR_LIVEDUMP = 457, SYNTHETIC_WATCHDOG_TIMEOUT = 458, INVALID_SILO_DETACH = 459, EXRESOURCE_TIMEOUT_LIVEDUMP = 460, INVALID_CALLBACK_STACK_ADDRESS = 461, INVALID_KERNEL_STACK_ADDRESS = 462, HARDWARE_WATCHDOG_TIMEOUT = 463, ACPI_FIRMWARE_WATCHDOG_TIMEOUT = 464, TELEMETRY_ASSERTS_LIVEDUMP = 465, WORKER_THREAD_INVALID_STATE = 466, WFP_INVALID_OPERATION = 467, UCMUCSI_LIVEDUMP = 468, DRIVER_PNP_WATCHDOG = 469, WORKER_THREAD_RETURNED_WITH_NON_DEFAULT_WORKLOAD_CLASS = 470, EFS_FATAL_ERROR = 471, UCMUCSI_FAILURE = 472, HAL_IOMMU_INTERNAL_ERROR = 473, HAL_BLOCKED_PROCESSOR_INTERNAL_ERROR = 474, IPI_WATCHDOG_TIMEOUT = 475, DMA_COMMON_BUFFER_VECTOR_ERROR = 476, BUGCODE_MBBADAPTER_DRIVER = 477, BUGCODE_WIFIADAPTER_DRIVER = 478, PROCESSOR_START_TIMEOUT = 479, INVALID_ALTERNATE_SYSTEM_CALL_HANDLER_REGISTRATION = 480, DEVICE_DIAGNOSTIC_LOG_LIVEDUMP = 481, AZURE_DEVICE_FW_DUMP = 482, BREAKAWAY_CABLE_TRANSITION = 483, VIDEO_DXGKRNL_SYSMM_FATAL_ERROR = 484, DRIVER_VERIFIER_TRACKING_LIVE_DUMP = 485, CRASHDUMP_WATCHDOG_TIMEOUT = 486, REGISTRY_LIVE_DUMP = 487, INVALID_THREAD_AFFINITY_STATE = 488, ILLEGAL_ATS_INITIALIZATION = 489, SECURE_PCI_CONFIG_SPACE_ACCESS_VIOLATION = 490, DAM_WATCHDOG_TIMEOUT = 491, XBOX_VMCTRL_CS_TIMEOUT = 854, XBOX_CORRUPTED_IMAGE = 855, XBOX_INVERTED_FUNCTION_TABLE_OVERFLOW = 856, XBOX_CORRUPTED_IMAGE_BASE = 857, XBOX_XDS_WATCHDOG_TIMEOUT = 858, XBOX_SHUTDOWN_WATCHDOG_TIMEOUT = 859, XBOX_360_SYSTEM_CRASH = 864, XBOX_360_SYSTEM_CRASH_RESERVED = 1056, XBOX_SECURITY_FAILUE = 1057, KERNEL_CFG_INIT_FAILURE = 1058, MANUALLY_INITIATED_POWER_BUTTON_HOLD_LIVE_DUMP = 4552, HYPERVISOR_ERROR = 131073, WINLOGON_FATAL_ERROR = 3221226010, MANUALLY_INITIATED_CRASH1 = 3735936685, BUGCHECK_CONTEXT_MODIFIER = 2147483648, }; pub const HARDWARE_PROFILE_UNDOCKED_STRING = BUGCHECK_ERROR.HARDWARE_PROFILE_UNDOCKED_STRING; pub const HARDWARE_PROFILE_DOCKED_STRING = BUGCHECK_ERROR.HARDWARE_PROFILE_DOCKED_STRING; pub const HARDWARE_PROFILE_UNKNOWN_STRING = BUGCHECK_ERROR.HARDWARE_PROFILE_UNKNOWN_STRING; pub const WINDOWS_NT_BANNER = BUGCHECK_ERROR.WINDOWS_NT_BANNER; pub const WINDOWS_NT_CSD_STRING = BUGCHECK_ERROR.WINDOWS_NT_CSD_STRING; pub const WINDOWS_NT_INFO_STRING = BUGCHECK_ERROR.WINDOWS_NT_INFO_STRING; pub const WINDOWS_NT_MP_STRING = BUGCHECK_ERROR.WINDOWS_NT_MP_STRING; pub const THREAD_TERMINATE_HELD_MUTEX = BUGCHECK_ERROR.THREAD_TERMINATE_HELD_MUTEX; pub const WINDOWS_NT_INFO_STRING_PLURAL = BUGCHECK_ERROR.WINDOWS_NT_INFO_STRING_PLURAL; pub const WINDOWS_NT_RC_STRING = BUGCHECK_ERROR.WINDOWS_NT_RC_STRING; pub const APC_INDEX_MISMATCH = BUGCHECK_ERROR.APC_INDEX_MISMATCH; pub const DEVICE_QUEUE_NOT_BUSY = BUGCHECK_ERROR.DEVICE_QUEUE_NOT_BUSY; pub const INVALID_AFFINITY_SET = BUGCHECK_ERROR.INVALID_AFFINITY_SET; pub const INVALID_DATA_ACCESS_TRAP = BUGCHECK_ERROR.INVALID_DATA_ACCESS_TRAP; pub const INVALID_PROCESS_ATTACH_ATTEMPT = BUGCHECK_ERROR.INVALID_PROCESS_ATTACH_ATTEMPT; pub const INVALID_PROCESS_DETACH_ATTEMPT = BUGCHECK_ERROR.INVALID_PROCESS_DETACH_ATTEMPT; pub const INVALID_SOFTWARE_INTERRUPT = BUGCHECK_ERROR.INVALID_SOFTWARE_INTERRUPT; pub const IRQL_NOT_DISPATCH_LEVEL = BUGCHECK_ERROR.IRQL_NOT_DISPATCH_LEVEL; pub const IRQL_NOT_GREATER_OR_EQUAL = BUGCHECK_ERROR.IRQL_NOT_GREATER_OR_EQUAL; pub const IRQL_NOT_LESS_OR_EQUAL = BUGCHECK_ERROR.IRQL_NOT_LESS_OR_EQUAL; pub const NO_EXCEPTION_HANDLING_SUPPORT = BUGCHECK_ERROR.NO_EXCEPTION_HANDLING_SUPPORT; pub const MAXIMUM_WAIT_OBJECTS_EXCEEDED = BUGCHECK_ERROR.MAXIMUM_WAIT_OBJECTS_EXCEEDED; pub const MUTEX_LEVEL_NUMBER_VIOLATION = BUGCHECK_ERROR.MUTEX_LEVEL_NUMBER_VIOLATION; pub const NO_USER_MODE_CONTEXT = BUGCHECK_ERROR.NO_USER_MODE_CONTEXT; pub const SPIN_LOCK_ALREADY_OWNED = BUGCHECK_ERROR.SPIN_LOCK_ALREADY_OWNED; pub const SPIN_LOCK_NOT_OWNED = BUGCHECK_ERROR.SPIN_LOCK_NOT_OWNED; pub const THREAD_NOT_MUTEX_OWNER = BUGCHECK_ERROR.THREAD_NOT_MUTEX_OWNER; pub const TRAP_CAUSE_UNKNOWN = BUGCHECK_ERROR.TRAP_CAUSE_UNKNOWN; pub const EMPTY_THREAD_REAPER_LIST = BUGCHECK_ERROR.EMPTY_THREAD_REAPER_LIST; pub const CREATE_DELETE_LOCK_NOT_LOCKED = BUGCHECK_ERROR.CREATE_DELETE_LOCK_NOT_LOCKED; pub const LAST_CHANCE_CALLED_FROM_KMODE = BUGCHECK_ERROR.LAST_CHANCE_CALLED_FROM_KMODE; pub const CID_HANDLE_CREATION = BUGCHECK_ERROR.CID_HANDLE_CREATION; pub const CID_HANDLE_DELETION = BUGCHECK_ERROR.CID_HANDLE_DELETION; pub const REFERENCE_BY_POINTER = BUGCHECK_ERROR.REFERENCE_BY_POINTER; pub const BAD_POOL_HEADER = BUGCHECK_ERROR.BAD_POOL_HEADER; pub const MEMORY_MANAGEMENT = BUGCHECK_ERROR.MEMORY_MANAGEMENT; pub const PFN_SHARE_COUNT = BUGCHECK_ERROR.PFN_SHARE_COUNT; pub const PFN_REFERENCE_COUNT = BUGCHECK_ERROR.PFN_REFERENCE_COUNT; pub const NO_SPIN_LOCK_AVAILABLE = BUGCHECK_ERROR.NO_SPIN_LOCK_AVAILABLE; pub const KMODE_EXCEPTION_NOT_HANDLED = BUGCHECK_ERROR.KMODE_EXCEPTION_NOT_HANDLED; pub const SHARED_RESOURCE_CONV_ERROR = BUGCHECK_ERROR.SHARED_RESOURCE_CONV_ERROR; pub const KERNEL_APC_PENDING_DURING_EXIT = BUGCHECK_ERROR.KERNEL_APC_PENDING_DURING_EXIT; pub const QUOTA_UNDERFLOW = BUGCHECK_ERROR.QUOTA_UNDERFLOW; pub const FILE_SYSTEM = BUGCHECK_ERROR.FILE_SYSTEM; pub const FAT_FILE_SYSTEM = BUGCHECK_ERROR.FAT_FILE_SYSTEM; pub const NTFS_FILE_SYSTEM = BUGCHECK_ERROR.NTFS_FILE_SYSTEM; pub const NPFS_FILE_SYSTEM = BUGCHECK_ERROR.NPFS_FILE_SYSTEM; pub const CDFS_FILE_SYSTEM = BUGCHECK_ERROR.CDFS_FILE_SYSTEM; pub const RDR_FILE_SYSTEM = BUGCHECK_ERROR.RDR_FILE_SYSTEM; pub const CORRUPT_ACCESS_TOKEN = BUGCHECK_ERROR.CORRUPT_ACCESS_TOKEN; pub const SECURITY_SYSTEM = BUGCHECK_ERROR.SECURITY_SYSTEM; pub const INCONSISTENT_IRP = BUGCHECK_ERROR.INCONSISTENT_IRP; pub const PANIC_STACK_SWITCH = BUGCHECK_ERROR.PANIC_STACK_SWITCH; pub const PORT_DRIVER_INTERNAL = BUGCHECK_ERROR.PORT_DRIVER_INTERNAL; pub const SCSI_DISK_DRIVER_INTERNAL = BUGCHECK_ERROR.SCSI_DISK_DRIVER_INTERNAL; pub const DATA_BUS_ERROR = BUGCHECK_ERROR.DATA_BUS_ERROR; pub const INSTRUCTION_BUS_ERROR = BUGCHECK_ERROR.INSTRUCTION_BUS_ERROR; pub const SET_OF_INVALID_CONTEXT = BUGCHECK_ERROR.SET_OF_INVALID_CONTEXT; pub const PHASE0_INITIALIZATION_FAILED = BUGCHECK_ERROR.PHASE0_INITIALIZATION_FAILED; pub const PHASE1_INITIALIZATION_FAILED = BUGCHECK_ERROR.PHASE1_INITIALIZATION_FAILED; pub const UNEXPECTED_INITIALIZATION_CALL = BUGCHECK_ERROR.UNEXPECTED_INITIALIZATION_CALL; pub const CACHE_MANAGER = BUGCHECK_ERROR.CACHE_MANAGER; pub const NO_MORE_IRP_STACK_LOCATIONS = BUGCHECK_ERROR.NO_MORE_IRP_STACK_LOCATIONS; pub const DEVICE_REFERENCE_COUNT_NOT_ZERO = BUGCHECK_ERROR.DEVICE_REFERENCE_COUNT_NOT_ZERO; pub const FLOPPY_INTERNAL_ERROR = BUGCHECK_ERROR.FLOPPY_INTERNAL_ERROR; pub const SERIAL_DRIVER_INTERNAL = BUGCHECK_ERROR.SERIAL_DRIVER_INTERNAL; pub const SYSTEM_EXIT_OWNED_MUTEX = BUGCHECK_ERROR.SYSTEM_EXIT_OWNED_MUTEX; pub const SYSTEM_UNWIND_PREVIOUS_USER = BUGCHECK_ERROR.SYSTEM_UNWIND_PREVIOUS_USER; pub const SYSTEM_SERVICE_EXCEPTION = BUGCHECK_ERROR.SYSTEM_SERVICE_EXCEPTION; pub const INTERRUPT_UNWIND_ATTEMPTED = BUGCHECK_ERROR.INTERRUPT_UNWIND_ATTEMPTED; pub const INTERRUPT_EXCEPTION_NOT_HANDLED = BUGCHECK_ERROR.INTERRUPT_EXCEPTION_NOT_HANDLED; pub const MULTIPROCESSOR_CONFIGURATION_NOT_SUPPORTED = BUGCHECK_ERROR.MULTIPROCESSOR_CONFIGURATION_NOT_SUPPORTED; pub const NO_MORE_SYSTEM_PTES = BUGCHECK_ERROR.NO_MORE_SYSTEM_PTES; pub const TARGET_MDL_TOO_SMALL = BUGCHECK_ERROR.TARGET_MDL_TOO_SMALL; pub const MUST_SUCCEED_POOL_EMPTY = BUGCHECK_ERROR.MUST_SUCCEED_POOL_EMPTY; pub const ATDISK_DRIVER_INTERNAL = BUGCHECK_ERROR.ATDISK_DRIVER_INTERNAL; pub const NO_SUCH_PARTITION = BUGCHECK_ERROR.NO_SUCH_PARTITION; pub const MULTIPLE_IRP_COMPLETE_REQUESTS = BUGCHECK_ERROR.MULTIPLE_IRP_COMPLETE_REQUESTS; pub const INSUFFICIENT_SYSTEM_MAP_REGS = BUGCHECK_ERROR.INSUFFICIENT_SYSTEM_MAP_REGS; pub const DEREF_UNKNOWN_LOGON_SESSION = BUGCHECK_ERROR.DEREF_UNKNOWN_LOGON_SESSION; pub const REF_UNKNOWN_LOGON_SESSION = BUGCHECK_ERROR.REF_UNKNOWN_LOGON_SESSION; pub const CANCEL_STATE_IN_COMPLETED_IRP = BUGCHECK_ERROR.CANCEL_STATE_IN_COMPLETED_IRP; pub const PAGE_FAULT_WITH_INTERRUPTS_OFF = BUGCHECK_ERROR.PAGE_FAULT_WITH_INTERRUPTS_OFF; pub const IRQL_GT_ZERO_AT_SYSTEM_SERVICE = BUGCHECK_ERROR.IRQL_GT_ZERO_AT_SYSTEM_SERVICE; pub const STREAMS_INTERNAL_ERROR = BUGCHECK_ERROR.STREAMS_INTERNAL_ERROR; pub const FATAL_UNHANDLED_HARD_ERROR = BUGCHECK_ERROR.FATAL_UNHANDLED_HARD_ERROR; pub const NO_PAGES_AVAILABLE = BUGCHECK_ERROR.NO_PAGES_AVAILABLE; pub const PFN_LIST_CORRUPT = BUGCHECK_ERROR.PFN_LIST_CORRUPT; pub const NDIS_INTERNAL_ERROR = BUGCHECK_ERROR.NDIS_INTERNAL_ERROR; pub const PAGE_FAULT_IN_NONPAGED_AREA = BUGCHECK_ERROR.PAGE_FAULT_IN_NONPAGED_AREA; pub const PAGE_FAULT_IN_NONPAGED_AREA_M = BUGCHECK_ERROR.PAGE_FAULT_IN_NONPAGED_AREA_M; pub const REGISTRY_ERROR = BUGCHECK_ERROR.REGISTRY_ERROR; pub const MAILSLOT_FILE_SYSTEM = BUGCHECK_ERROR.MAILSLOT_FILE_SYSTEM; pub const NO_BOOT_DEVICE = BUGCHECK_ERROR.NO_BOOT_DEVICE; pub const LM_SERVER_INTERNAL_ERROR = BUGCHECK_ERROR.LM_SERVER_INTERNAL_ERROR; pub const DATA_COHERENCY_EXCEPTION = BUGCHECK_ERROR.DATA_COHERENCY_EXCEPTION; pub const INSTRUCTION_COHERENCY_EXCEPTION = BUGCHECK_ERROR.INSTRUCTION_COHERENCY_EXCEPTION; pub const XNS_INTERNAL_ERROR = BUGCHECK_ERROR.XNS_INTERNAL_ERROR; pub const VOLMGRX_INTERNAL_ERROR = BUGCHECK_ERROR.VOLMGRX_INTERNAL_ERROR; pub const PINBALL_FILE_SYSTEM = BUGCHECK_ERROR.PINBALL_FILE_SYSTEM; pub const CRITICAL_SERVICE_FAILED = BUGCHECK_ERROR.CRITICAL_SERVICE_FAILED; pub const SET_ENV_VAR_FAILED = BUGCHECK_ERROR.SET_ENV_VAR_FAILED; pub const HAL_INITIALIZATION_FAILED = BUGCHECK_ERROR.HAL_INITIALIZATION_FAILED; pub const UNSUPPORTED_PROCESSOR = BUGCHECK_ERROR.UNSUPPORTED_PROCESSOR; pub const OBJECT_INITIALIZATION_FAILED = BUGCHECK_ERROR.OBJECT_INITIALIZATION_FAILED; pub const SECURITY_INITIALIZATION_FAILED = BUGCHECK_ERROR.SECURITY_INITIALIZATION_FAILED; pub const PROCESS_INITIALIZATION_FAILED = BUGCHECK_ERROR.PROCESS_INITIALIZATION_FAILED; pub const HAL1_INITIALIZATION_FAILED = BUGCHECK_ERROR.HAL1_INITIALIZATION_FAILED; pub const OBJECT1_INITIALIZATION_FAILED = BUGCHECK_ERROR.OBJECT1_INITIALIZATION_FAILED; pub const SECURITY1_INITIALIZATION_FAILED = BUGCHECK_ERROR.SECURITY1_INITIALIZATION_FAILED; pub const SYMBOLIC_INITIALIZATION_FAILED = BUGCHECK_ERROR.SYMBOLIC_INITIALIZATION_FAILED; pub const MEMORY1_INITIALIZATION_FAILED = BUGCHECK_ERROR.MEMORY1_INITIALIZATION_FAILED; pub const CACHE_INITIALIZATION_FAILED = BUGCHECK_ERROR.CACHE_INITIALIZATION_FAILED; pub const CONFIG_INITIALIZATION_FAILED = BUGCHECK_ERROR.CONFIG_INITIALIZATION_FAILED; pub const FILE_INITIALIZATION_FAILED = BUGCHECK_ERROR.FILE_INITIALIZATION_FAILED; pub const IO1_INITIALIZATION_FAILED = BUGCHECK_ERROR.IO1_INITIALIZATION_FAILED; pub const LPC_INITIALIZATION_FAILED = BUGCHECK_ERROR.LPC_INITIALIZATION_FAILED; pub const PROCESS1_INITIALIZATION_FAILED = BUGCHECK_ERROR.PROCESS1_INITIALIZATION_FAILED; pub const REFMON_INITIALIZATION_FAILED = BUGCHECK_ERROR.REFMON_INITIALIZATION_FAILED; pub const SESSION1_INITIALIZATION_FAILED = BUGCHECK_ERROR.SESSION1_INITIALIZATION_FAILED; pub const BOOTPROC_INITIALIZATION_FAILED = BUGCHECK_ERROR.BOOTPROC_INITIALIZATION_FAILED; pub const VSL_INITIALIZATION_FAILED = BUGCHECK_ERROR.VSL_INITIALIZATION_FAILED; pub const SOFT_RESTART_FATAL_ERROR = BUGCHECK_ERROR.SOFT_RESTART_FATAL_ERROR; pub const ASSIGN_DRIVE_LETTERS_FAILED = BUGCHECK_ERROR.ASSIGN_DRIVE_LETTERS_FAILED; pub const CONFIG_LIST_FAILED = BUGCHECK_ERROR.CONFIG_LIST_FAILED; pub const BAD_SYSTEM_CONFIG_INFO = BUGCHECK_ERROR.BAD_SYSTEM_CONFIG_INFO; pub const CANNOT_WRITE_CONFIGURATION = BUGCHECK_ERROR.CANNOT_WRITE_CONFIGURATION; pub const PROCESS_HAS_LOCKED_PAGES = BUGCHECK_ERROR.PROCESS_HAS_LOCKED_PAGES; pub const KERNEL_STACK_INPAGE_ERROR = BUGCHECK_ERROR.KERNEL_STACK_INPAGE_ERROR; pub const PHASE0_EXCEPTION = BUGCHECK_ERROR.PHASE0_EXCEPTION; pub const MISMATCHED_HAL = BUGCHECK_ERROR.MISMATCHED_HAL; pub const KERNEL_DATA_INPAGE_ERROR = BUGCHECK_ERROR.KERNEL_DATA_INPAGE_ERROR; pub const INACCESSIBLE_BOOT_DEVICE = BUGCHECK_ERROR.INACCESSIBLE_BOOT_DEVICE; pub const BUGCODE_NDIS_DRIVER = BUGCHECK_ERROR.BUGCODE_NDIS_DRIVER; pub const INSTALL_MORE_MEMORY = BUGCHECK_ERROR.INSTALL_MORE_MEMORY; pub const SYSTEM_THREAD_EXCEPTION_NOT_HANDLED = BUGCHECK_ERROR.SYSTEM_THREAD_EXCEPTION_NOT_HANDLED; pub const SYSTEM_THREAD_EXCEPTION_NOT_HANDLED_M = BUGCHECK_ERROR.SYSTEM_THREAD_EXCEPTION_NOT_HANDLED_M; pub const UNEXPECTED_KERNEL_MODE_TRAP = BUGCHECK_ERROR.UNEXPECTED_KERNEL_MODE_TRAP; pub const UNEXPECTED_KERNEL_MODE_TRAP_M = BUGCHECK_ERROR.UNEXPECTED_KERNEL_MODE_TRAP_M; pub const NMI_HARDWARE_FAILURE = BUGCHECK_ERROR.NMI_HARDWARE_FAILURE; pub const SPIN_LOCK_INIT_FAILURE = BUGCHECK_ERROR.SPIN_LOCK_INIT_FAILURE; pub const DFS_FILE_SYSTEM = BUGCHECK_ERROR.DFS_FILE_SYSTEM; pub const OFS_FILE_SYSTEM = BUGCHECK_ERROR.OFS_FILE_SYSTEM; pub const RECOM_DRIVER = BUGCHECK_ERROR.RECOM_DRIVER; pub const SETUP_FAILURE = BUGCHECK_ERROR.SETUP_FAILURE; pub const AUDIT_FAILURE = BUGCHECK_ERROR.AUDIT_FAILURE; pub const MBR_CHECKSUM_MISMATCH = BUGCHECK_ERROR.MBR_CHECKSUM_MISMATCH; pub const KERNEL_MODE_EXCEPTION_NOT_HANDLED = BUGCHECK_ERROR.KERNEL_MODE_EXCEPTION_NOT_HANDLED; pub const KERNEL_MODE_EXCEPTION_NOT_HANDLED_M = BUGCHECK_ERROR.KERNEL_MODE_EXCEPTION_NOT_HANDLED_M; pub const PP0_INITIALIZATION_FAILED = BUGCHECK_ERROR.PP0_INITIALIZATION_FAILED; pub const PP1_INITIALIZATION_FAILED = BUGCHECK_ERROR.PP1_INITIALIZATION_FAILED; pub const WIN32K_INIT_OR_RIT_FAILURE = BUGCHECK_ERROR.WIN32K_INIT_OR_RIT_FAILURE; pub const UP_DRIVER_ON_MP_SYSTEM = BUGCHECK_ERROR.UP_DRIVER_ON_MP_SYSTEM; pub const INVALID_KERNEL_HANDLE = BUGCHECK_ERROR.INVALID_KERNEL_HANDLE; pub const KERNEL_STACK_LOCKED_AT_EXIT = BUGCHECK_ERROR.KERNEL_STACK_LOCKED_AT_EXIT; pub const PNP_INTERNAL_ERROR = BUGCHECK_ERROR.PNP_INTERNAL_ERROR; pub const INVALID_WORK_QUEUE_ITEM = BUGCHECK_ERROR.INVALID_WORK_QUEUE_ITEM; pub const BOUND_IMAGE_UNSUPPORTED = BUGCHECK_ERROR.BOUND_IMAGE_UNSUPPORTED; pub const END_OF_NT_EVALUATION_PERIOD = BUGCHECK_ERROR.END_OF_NT_EVALUATION_PERIOD; pub const INVALID_REGION_OR_SEGMENT = BUGCHECK_ERROR.INVALID_REGION_OR_SEGMENT; pub const SYSTEM_LICENSE_VIOLATION = BUGCHECK_ERROR.SYSTEM_LICENSE_VIOLATION; pub const UDFS_FILE_SYSTEM = BUGCHECK_ERROR.UDFS_FILE_SYSTEM; pub const MACHINE_CHECK_EXCEPTION = BUGCHECK_ERROR.MACHINE_CHECK_EXCEPTION; pub const USER_MODE_HEALTH_MONITOR = BUGCHECK_ERROR.USER_MODE_HEALTH_MONITOR; pub const DRIVER_POWER_STATE_FAILURE = BUGCHECK_ERROR.DRIVER_POWER_STATE_FAILURE; pub const INTERNAL_POWER_ERROR = BUGCHECK_ERROR.INTERNAL_POWER_ERROR; pub const PCI_BUS_DRIVER_INTERNAL = BUGCHECK_ERROR.PCI_BUS_DRIVER_INTERNAL; pub const MEMORY_IMAGE_CORRUPT = BUGCHECK_ERROR.MEMORY_IMAGE_CORRUPT; pub const ACPI_DRIVER_INTERNAL = BUGCHECK_ERROR.ACPI_DRIVER_INTERNAL; pub const CNSS_FILE_SYSTEM_FILTER = BUGCHECK_ERROR.CNSS_FILE_SYSTEM_FILTER; pub const ACPI_BIOS_ERROR = BUGCHECK_ERROR.ACPI_BIOS_ERROR; pub const FP_EMULATION_ERROR = BUGCHECK_ERROR.FP_EMULATION_ERROR; pub const BAD_EXHANDLE = BUGCHECK_ERROR.BAD_EXHANDLE; pub const BOOTING_IN_SAFEMODE_MINIMAL = BUGCHECK_ERROR.BOOTING_IN_SAFEMODE_MINIMAL; pub const BOOTING_IN_SAFEMODE_NETWORK = BUGCHECK_ERROR.BOOTING_IN_SAFEMODE_NETWORK; pub const BOOTING_IN_SAFEMODE_DSREPAIR = BUGCHECK_ERROR.BOOTING_IN_SAFEMODE_DSREPAIR; pub const SESSION_HAS_VALID_POOL_ON_EXIT = BUGCHECK_ERROR.SESSION_HAS_VALID_POOL_ON_EXIT; pub const HAL_MEMORY_ALLOCATION = BUGCHECK_ERROR.HAL_MEMORY_ALLOCATION; pub const VIDEO_DRIVER_DEBUG_REPORT_REQUEST = BUGCHECK_ERROR.VIDEO_DRIVER_DEBUG_REPORT_REQUEST; pub const BGI_DETECTED_VIOLATION = BUGCHECK_ERROR.BGI_DETECTED_VIOLATION; pub const VIDEO_DRIVER_INIT_FAILURE = BUGCHECK_ERROR.VIDEO_DRIVER_INIT_FAILURE; pub const BOOTLOG_LOADED = BUGCHECK_ERROR.BOOTLOG_LOADED; pub const BOOTLOG_NOT_LOADED = BUGCHECK_ERROR.BOOTLOG_NOT_LOADED; pub const BOOTLOG_ENABLED = BUGCHECK_ERROR.BOOTLOG_ENABLED; pub const ATTEMPTED_SWITCH_FROM_DPC = BUGCHECK_ERROR.ATTEMPTED_SWITCH_FROM_DPC; pub const CHIPSET_DETECTED_ERROR = BUGCHECK_ERROR.CHIPSET_DETECTED_ERROR; pub const SESSION_HAS_VALID_VIEWS_ON_EXIT = BUGCHECK_ERROR.SESSION_HAS_VALID_VIEWS_ON_EXIT; pub const NETWORK_BOOT_INITIALIZATION_FAILED = BUGCHECK_ERROR.NETWORK_BOOT_INITIALIZATION_FAILED; pub const NETWORK_BOOT_DUPLICATE_ADDRESS = BUGCHECK_ERROR.NETWORK_BOOT_DUPLICATE_ADDRESS; pub const INVALID_HIBERNATED_STATE = BUGCHECK_ERROR.INVALID_HIBERNATED_STATE; pub const ATTEMPTED_WRITE_TO_READONLY_MEMORY = BUGCHECK_ERROR.ATTEMPTED_WRITE_TO_READONLY_MEMORY; pub const MUTEX_ALREADY_OWNED = BUGCHECK_ERROR.MUTEX_ALREADY_OWNED; pub const PCI_CONFIG_SPACE_ACCESS_FAILURE = BUGCHECK_ERROR.PCI_CONFIG_SPACE_ACCESS_FAILURE; pub const SPECIAL_POOL_DETECTED_MEMORY_CORRUPTION = BUGCHECK_ERROR.SPECIAL_POOL_DETECTED_MEMORY_CORRUPTION; pub const BAD_POOL_CALLER = BUGCHECK_ERROR.BAD_POOL_CALLER; pub const SYSTEM_IMAGE_BAD_SIGNATURE = BUGCHECK_ERROR.SYSTEM_IMAGE_BAD_SIGNATURE; pub const DRIVER_VERIFIER_DETECTED_VIOLATION = BUGCHECK_ERROR.DRIVER_VERIFIER_DETECTED_VIOLATION; pub const DRIVER_CORRUPTED_EXPOOL = BUGCHECK_ERROR.DRIVER_CORRUPTED_EXPOOL; pub const DRIVER_CAUGHT_MODIFYING_FREED_POOL = BUGCHECK_ERROR.DRIVER_CAUGHT_MODIFYING_FREED_POOL; pub const TIMER_OR_DPC_INVALID = BUGCHECK_ERROR.TIMER_OR_DPC_INVALID; pub const IRQL_UNEXPECTED_VALUE = BUGCHECK_ERROR.IRQL_UNEXPECTED_VALUE; pub const DRIVER_VERIFIER_IOMANAGER_VIOLATION = BUGCHECK_ERROR.DRIVER_VERIFIER_IOMANAGER_VIOLATION; pub const PNP_DETECTED_FATAL_ERROR = BUGCHECK_ERROR.PNP_DETECTED_FATAL_ERROR; pub const DRIVER_LEFT_LOCKED_PAGES_IN_PROCESS = BUGCHECK_ERROR.DRIVER_LEFT_LOCKED_PAGES_IN_PROCESS; pub const PAGE_FAULT_IN_FREED_SPECIAL_POOL = BUGCHECK_ERROR.PAGE_FAULT_IN_FREED_SPECIAL_POOL; pub const PAGE_FAULT_BEYOND_END_OF_ALLOCATION = BUGCHECK_ERROR.PAGE_FAULT_BEYOND_END_OF_ALLOCATION; pub const DRIVER_UNLOADED_WITHOUT_CANCELLING_PENDING_OPERATIONS = BUGCHECK_ERROR.DRIVER_UNLOADED_WITHOUT_CANCELLING_PENDING_OPERATIONS; pub const TERMINAL_SERVER_DRIVER_MADE_INCORRECT_MEMORY_REFERENCE = BUGCHECK_ERROR.TERMINAL_SERVER_DRIVER_MADE_INCORRECT_MEMORY_REFERENCE; pub const DRIVER_CORRUPTED_MMPOOL = BUGCHECK_ERROR.DRIVER_CORRUPTED_MMPOOL; pub const DRIVER_IRQL_NOT_LESS_OR_EQUAL = BUGCHECK_ERROR.DRIVER_IRQL_NOT_LESS_OR_EQUAL; pub const BUGCODE_ID_DRIVER = BUGCHECK_ERROR.BUGCODE_ID_DRIVER; pub const DRIVER_PORTION_MUST_BE_NONPAGED = BUGCHECK_ERROR.DRIVER_PORTION_MUST_BE_NONPAGED; pub const SYSTEM_SCAN_AT_RAISED_IRQL_CAUGHT_IMPROPER_DRIVER_UNLOAD = BUGCHECK_ERROR.SYSTEM_SCAN_AT_RAISED_IRQL_CAUGHT_IMPROPER_DRIVER_UNLOAD; pub const DRIVER_PAGE_FAULT_IN_FREED_SPECIAL_POOL = BUGCHECK_ERROR.DRIVER_PAGE_FAULT_IN_FREED_SPECIAL_POOL; pub const DRIVER_PAGE_FAULT_BEYOND_END_OF_ALLOCATION = BUGCHECK_ERROR.DRIVER_PAGE_FAULT_BEYOND_END_OF_ALLOCATION; pub const DRIVER_PAGE_FAULT_BEYOND_END_OF_ALLOCATION_M = BUGCHECK_ERROR.DRIVER_PAGE_FAULT_BEYOND_END_OF_ALLOCATION_M; pub const DRIVER_UNMAPPING_INVALID_VIEW = BUGCHECK_ERROR.DRIVER_UNMAPPING_INVALID_VIEW; pub const DRIVER_USED_EXCESSIVE_PTES = BUGCHECK_ERROR.DRIVER_USED_EXCESSIVE_PTES; pub const LOCKED_PAGES_TRACKER_CORRUPTION = BUGCHECK_ERROR.LOCKED_PAGES_TRACKER_CORRUPTION; pub const SYSTEM_PTE_MISUSE = BUGCHECK_ERROR.SYSTEM_PTE_MISUSE; pub const DRIVER_CORRUPTED_SYSPTES = BUGCHECK_ERROR.DRIVER_CORRUPTED_SYSPTES; pub const DRIVER_INVALID_STACK_ACCESS = BUGCHECK_ERROR.DRIVER_INVALID_STACK_ACCESS; pub const POOL_CORRUPTION_IN_FILE_AREA = BUGCHECK_ERROR.POOL_CORRUPTION_IN_FILE_AREA; pub const IMPERSONATING_WORKER_THREAD = BUGCHECK_ERROR.IMPERSONATING_WORKER_THREAD; pub const ACPI_BIOS_FATAL_ERROR = BUGCHECK_ERROR.ACPI_BIOS_FATAL_ERROR; pub const WORKER_THREAD_RETURNED_AT_BAD_IRQL = BUGCHECK_ERROR.WORKER_THREAD_RETURNED_AT_BAD_IRQL; pub const MANUALLY_INITIATED_CRASH = BUGCHECK_ERROR.MANUALLY_INITIATED_CRASH; pub const RESOURCE_NOT_OWNED = BUGCHECK_ERROR.RESOURCE_NOT_OWNED; pub const WORKER_INVALID = BUGCHECK_ERROR.WORKER_INVALID; pub const POWER_FAILURE_SIMULATE = BUGCHECK_ERROR.POWER_FAILURE_SIMULATE; pub const DRIVER_VERIFIER_DMA_VIOLATION = BUGCHECK_ERROR.DRIVER_VERIFIER_DMA_VIOLATION; pub const INVALID_FLOATING_POINT_STATE = BUGCHECK_ERROR.INVALID_FLOATING_POINT_STATE; pub const INVALID_CANCEL_OF_FILE_OPEN = BUGCHECK_ERROR.INVALID_CANCEL_OF_FILE_OPEN; pub const ACTIVE_EX_WORKER_THREAD_TERMINATION = BUGCHECK_ERROR.ACTIVE_EX_WORKER_THREAD_TERMINATION; pub const SAVER_UNSPECIFIED = BUGCHECK_ERROR.SAVER_UNSPECIFIED; pub const SAVER_BLANKSCREEN = BUGCHECK_ERROR.SAVER_BLANKSCREEN; pub const SAVER_INPUT = BUGCHECK_ERROR.SAVER_INPUT; pub const SAVER_WATCHDOG = BUGCHECK_ERROR.SAVER_WATCHDOG; pub const SAVER_STARTNOTVISIBLE = BUGCHECK_ERROR.SAVER_STARTNOTVISIBLE; pub const SAVER_NAVIGATIONMODEL = BUGCHECK_ERROR.SAVER_NAVIGATIONMODEL; pub const SAVER_OUTOFMEMORY = BUGCHECK_ERROR.SAVER_OUTOFMEMORY; pub const SAVER_GRAPHICS = BUGCHECK_ERROR.SAVER_GRAPHICS; pub const SAVER_NAVSERVERTIMEOUT = BUGCHECK_ERROR.SAVER_NAVSERVERTIMEOUT; pub const SAVER_CHROMEPROCESSCRASH = BUGCHECK_ERROR.SAVER_CHROMEPROCESSCRASH; pub const SAVER_NOTIFICATIONDISMISSAL = BUGCHECK_ERROR.SAVER_NOTIFICATIONDISMISSAL; pub const SAVER_SPEECHDISMISSAL = BUGCHECK_ERROR.SAVER_SPEECHDISMISSAL; pub const SAVER_CALLDISMISSAL = BUGCHECK_ERROR.SAVER_CALLDISMISSAL; pub const SAVER_APPBARDISMISSAL = BUGCHECK_ERROR.SAVER_APPBARDISMISSAL; pub const SAVER_RILADAPTATIONCRASH = BUGCHECK_ERROR.SAVER_RILADAPTATIONCRASH; pub const SAVER_APPLISTUNREACHABLE = BUGCHECK_ERROR.SAVER_APPLISTUNREACHABLE; pub const SAVER_REPORTNOTIFICATIONFAILURE = BUGCHECK_ERROR.SAVER_REPORTNOTIFICATIONFAILURE; pub const SAVER_UNEXPECTEDSHUTDOWN = BUGCHECK_ERROR.SAVER_UNEXPECTEDSHUTDOWN; pub const SAVER_RPCFAILURE = BUGCHECK_ERROR.SAVER_RPCFAILURE; pub const SAVER_AUXILIARYFULLDUMP = BUGCHECK_ERROR.SAVER_AUXILIARYFULLDUMP; pub const SAVER_ACCOUNTPROVSVCINITFAILURE = BUGCHECK_ERROR.SAVER_ACCOUNTPROVSVCINITFAILURE; pub const SAVER_MTBFCOMMANDTIMEOUT = BUGCHECK_ERROR.SAVER_MTBFCOMMANDTIMEOUT; pub const SAVER_MTBFCOMMANDHANG = BUGCHECK_ERROR.SAVER_MTBFCOMMANDHANG; pub const SAVER_MTBFPASSBUGCHECK = BUGCHECK_ERROR.SAVER_MTBFPASSBUGCHECK; pub const SAVER_MTBFIOERROR = BUGCHECK_ERROR.SAVER_MTBFIOERROR; pub const SAVER_RENDERTHREADHANG = BUGCHECK_ERROR.SAVER_RENDERTHREADHANG; pub const SAVER_RENDERMOBILEUIOOM = BUGCHECK_ERROR.SAVER_RENDERMOBILEUIOOM; pub const SAVER_DEVICEUPDATEUNSPECIFIED = BUGCHECK_ERROR.SAVER_DEVICEUPDATEUNSPECIFIED; pub const SAVER_AUDIODRIVERHANG = BUGCHECK_ERROR.SAVER_AUDIODRIVERHANG; pub const SAVER_BATTERYPULLOUT = BUGCHECK_ERROR.SAVER_BATTERYPULLOUT; pub const SAVER_MEDIACORETESTHANG = BUGCHECK_ERROR.SAVER_MEDIACORETESTHANG; pub const SAVER_RESOURCEMANAGEMENT = BUGCHECK_ERROR.SAVER_RESOURCEMANAGEMENT; pub const SAVER_CAPTURESERVICE = BUGCHECK_ERROR.SAVER_CAPTURESERVICE; pub const SAVER_WAITFORSHELLREADY = BUGCHECK_ERROR.SAVER_WAITFORSHELLREADY; pub const SAVER_NONRESPONSIVEPROCESS = BUGCHECK_ERROR.SAVER_NONRESPONSIVEPROCESS; pub const SAVER_SICKAPPLICATION = BUGCHECK_ERROR.SAVER_SICKAPPLICATION; pub const THREAD_STUCK_IN_DEVICE_DRIVER = BUGCHECK_ERROR.THREAD_STUCK_IN_DEVICE_DRIVER; pub const THREAD_STUCK_IN_DEVICE_DRIVER_M = BUGCHECK_ERROR.THREAD_STUCK_IN_DEVICE_DRIVER_M; pub const DIRTY_MAPPED_PAGES_CONGESTION = BUGCHECK_ERROR.DIRTY_MAPPED_PAGES_CONGESTION; pub const SESSION_HAS_VALID_SPECIAL_POOL_ON_EXIT = BUGCHECK_ERROR.SESSION_HAS_VALID_SPECIAL_POOL_ON_EXIT; pub const UNMOUNTABLE_BOOT_VOLUME = BUGCHECK_ERROR.UNMOUNTABLE_BOOT_VOLUME; pub const CRITICAL_PROCESS_DIED = BUGCHECK_ERROR.CRITICAL_PROCESS_DIED; pub const STORAGE_MINIPORT_ERROR = BUGCHECK_ERROR.STORAGE_MINIPORT_ERROR; pub const SCSI_VERIFIER_DETECTED_VIOLATION = BUGCHECK_ERROR.SCSI_VERIFIER_DETECTED_VIOLATION; pub const HARDWARE_INTERRUPT_STORM = BUGCHECK_ERROR.HARDWARE_INTERRUPT_STORM; pub const DISORDERLY_SHUTDOWN = BUGCHECK_ERROR.DISORDERLY_SHUTDOWN; pub const CRITICAL_OBJECT_TERMINATION = BUGCHECK_ERROR.CRITICAL_OBJECT_TERMINATION; pub const FLTMGR_FILE_SYSTEM = BUGCHECK_ERROR.FLTMGR_FILE_SYSTEM; pub const PCI_VERIFIER_DETECTED_VIOLATION = BUGCHECK_ERROR.PCI_VERIFIER_DETECTED_VIOLATION; pub const DRIVER_OVERRAN_STACK_BUFFER = BUGCHECK_ERROR.DRIVER_OVERRAN_STACK_BUFFER; pub const RAMDISK_BOOT_INITIALIZATION_FAILED = BUGCHECK_ERROR.RAMDISK_BOOT_INITIALIZATION_FAILED; pub const DRIVER_RETURNED_STATUS_REPARSE_FOR_VOLUME_OPEN = BUGCHECK_ERROR.DRIVER_RETURNED_STATUS_REPARSE_FOR_VOLUME_OPEN; pub const HTTP_DRIVER_CORRUPTED = BUGCHECK_ERROR.HTTP_DRIVER_CORRUPTED; pub const RECURSIVE_MACHINE_CHECK = BUGCHECK_ERROR.RECURSIVE_MACHINE_CHECK; pub const ATTEMPTED_EXECUTE_OF_NOEXECUTE_MEMORY = BUGCHECK_ERROR.ATTEMPTED_EXECUTE_OF_NOEXECUTE_MEMORY; pub const DIRTY_NOWRITE_PAGES_CONGESTION = BUGCHECK_ERROR.DIRTY_NOWRITE_PAGES_CONGESTION; pub const BUGCODE_USB_DRIVER = BUGCHECK_ERROR.BUGCODE_USB_DRIVER; pub const BC_BLUETOOTH_VERIFIER_FAULT = BUGCHECK_ERROR.BC_BLUETOOTH_VERIFIER_FAULT; pub const BC_BTHMINI_VERIFIER_FAULT = BUGCHECK_ERROR.BC_BTHMINI_VERIFIER_FAULT; pub const RESERVE_QUEUE_OVERFLOW = BUGCHECK_ERROR.RESERVE_QUEUE_OVERFLOW; pub const LOADER_BLOCK_MISMATCH = BUGCHECK_ERROR.LOADER_BLOCK_MISMATCH; pub const CLOCK_WATCHDOG_TIMEOUT = BUGCHECK_ERROR.CLOCK_WATCHDOG_TIMEOUT; pub const DPC_WATCHDOG_TIMEOUT = BUGCHECK_ERROR.DPC_WATCHDOG_TIMEOUT; pub const MUP_FILE_SYSTEM = BUGCHECK_ERROR.MUP_FILE_SYSTEM; pub const AGP_INVALID_ACCESS = BUGCHECK_ERROR.AGP_INVALID_ACCESS; pub const AGP_GART_CORRUPTION = BUGCHECK_ERROR.AGP_GART_CORRUPTION; pub const AGP_ILLEGALLY_REPROGRAMMED = BUGCHECK_ERROR.AGP_ILLEGALLY_REPROGRAMMED; pub const KERNEL_EXPAND_STACK_ACTIVE = BUGCHECK_ERROR.KERNEL_EXPAND_STACK_ACTIVE; pub const THIRD_PARTY_FILE_SYSTEM_FAILURE = BUGCHECK_ERROR.THIRD_PARTY_FILE_SYSTEM_FAILURE; pub const CRITICAL_STRUCTURE_CORRUPTION = BUGCHECK_ERROR.CRITICAL_STRUCTURE_CORRUPTION; pub const APP_TAGGING_INITIALIZATION_FAILED = BUGCHECK_ERROR.APP_TAGGING_INITIALIZATION_FAILED; pub const DFSC_FILE_SYSTEM = BUGCHECK_ERROR.DFSC_FILE_SYSTEM; pub const FSRTL_EXTRA_CREATE_PARAMETER_VIOLATION = BUGCHECK_ERROR.FSRTL_EXTRA_CREATE_PARAMETER_VIOLATION; pub const WDF_VIOLATION = BUGCHECK_ERROR.WDF_VIOLATION; pub const VIDEO_MEMORY_MANAGEMENT_INTERNAL = BUGCHECK_ERROR.VIDEO_MEMORY_MANAGEMENT_INTERNAL; pub const DRIVER_INVALID_CRUNTIME_PARAMETER = BUGCHECK_ERROR.DRIVER_INVALID_CRUNTIME_PARAMETER; pub const RECURSIVE_NMI = BUGCHECK_ERROR.RECURSIVE_NMI; pub const MSRPC_STATE_VIOLATION = BUGCHECK_ERROR.MSRPC_STATE_VIOLATION; pub const VIDEO_DXGKRNL_FATAL_ERROR = BUGCHECK_ERROR.VIDEO_DXGKRNL_FATAL_ERROR; pub const VIDEO_SHADOW_DRIVER_FATAL_ERROR = BUGCHECK_ERROR.VIDEO_SHADOW_DRIVER_FATAL_ERROR; pub const AGP_INTERNAL = BUGCHECK_ERROR.AGP_INTERNAL; pub const VIDEO_TDR_FAILURE = BUGCHECK_ERROR.VIDEO_TDR_FAILURE; pub const VIDEO_TDR_TIMEOUT_DETECTED = BUGCHECK_ERROR.VIDEO_TDR_TIMEOUT_DETECTED; pub const NTHV_GUEST_ERROR = BUGCHECK_ERROR.NTHV_GUEST_ERROR; pub const VIDEO_SCHEDULER_INTERNAL_ERROR = BUGCHECK_ERROR.VIDEO_SCHEDULER_INTERNAL_ERROR; pub const EM_INITIALIZATION_ERROR = BUGCHECK_ERROR.EM_INITIALIZATION_ERROR; pub const DRIVER_RETURNED_HOLDING_CANCEL_LOCK = BUGCHECK_ERROR.DRIVER_RETURNED_HOLDING_CANCEL_LOCK; pub const ATTEMPTED_WRITE_TO_CM_PROTECTED_STORAGE = BUGCHECK_ERROR.ATTEMPTED_WRITE_TO_CM_PROTECTED_STORAGE; pub const EVENT_TRACING_FATAL_ERROR = BUGCHECK_ERROR.EVENT_TRACING_FATAL_ERROR; pub const TOO_MANY_RECURSIVE_FAULTS = BUGCHECK_ERROR.TOO_MANY_RECURSIVE_FAULTS; pub const INVALID_DRIVER_HANDLE = BUGCHECK_ERROR.INVALID_DRIVER_HANDLE; pub const BITLOCKER_FATAL_ERROR = BUGCHECK_ERROR.BITLOCKER_FATAL_ERROR; pub const DRIVER_VIOLATION = BUGCHECK_ERROR.DRIVER_VIOLATION; pub const WHEA_INTERNAL_ERROR = BUGCHECK_ERROR.WHEA_INTERNAL_ERROR; pub const CRYPTO_SELF_TEST_FAILURE = BUGCHECK_ERROR.CRYPTO_SELF_TEST_FAILURE; pub const WHEA_UNCORRECTABLE_ERROR = BUGCHECK_ERROR.WHEA_UNCORRECTABLE_ERROR; pub const NMR_INVALID_STATE = BUGCHECK_ERROR.NMR_INVALID_STATE; pub const NETIO_INVALID_POOL_CALLER = BUGCHECK_ERROR.NETIO_INVALID_POOL_CALLER; pub const PAGE_NOT_ZERO = BUGCHECK_ERROR.PAGE_NOT_ZERO; pub const WORKER_THREAD_RETURNED_WITH_BAD_IO_PRIORITY = BUGCHECK_ERROR.WORKER_THREAD_RETURNED_WITH_BAD_IO_PRIORITY; pub const WORKER_THREAD_RETURNED_WITH_BAD_PAGING_IO_PRIORITY = BUGCHECK_ERROR.WORKER_THREAD_RETURNED_WITH_BAD_PAGING_IO_PRIORITY; pub const MUI_NO_VALID_SYSTEM_LANGUAGE = BUGCHECK_ERROR.MUI_NO_VALID_SYSTEM_LANGUAGE; pub const FAULTY_HARDWARE_CORRUPTED_PAGE = BUGCHECK_ERROR.FAULTY_HARDWARE_CORRUPTED_PAGE; pub const EXFAT_FILE_SYSTEM = BUGCHECK_ERROR.EXFAT_FILE_SYSTEM; pub const VOLSNAP_OVERLAPPED_TABLE_ACCESS = BUGCHECK_ERROR.VOLSNAP_OVERLAPPED_TABLE_ACCESS; pub const INVALID_MDL_RANGE = BUGCHECK_ERROR.INVALID_MDL_RANGE; pub const VHD_BOOT_INITIALIZATION_FAILED = BUGCHECK_ERROR.VHD_BOOT_INITIALIZATION_FAILED; pub const DYNAMIC_ADD_PROCESSOR_MISMATCH = BUGCHECK_ERROR.DYNAMIC_ADD_PROCESSOR_MISMATCH; pub const INVALID_EXTENDED_PROCESSOR_STATE = BUGCHECK_ERROR.INVALID_EXTENDED_PROCESSOR_STATE; pub const RESOURCE_OWNER_POINTER_INVALID = BUGCHECK_ERROR.RESOURCE_OWNER_POINTER_INVALID; pub const DPC_WATCHDOG_VIOLATION = BUGCHECK_ERROR.DPC_WATCHDOG_VIOLATION; pub const DRIVE_EXTENDER = BUGCHECK_ERROR.DRIVE_EXTENDER; pub const REGISTRY_FILTER_DRIVER_EXCEPTION = BUGCHECK_ERROR.REGISTRY_FILTER_DRIVER_EXCEPTION; pub const VHD_BOOT_HOST_VOLUME_NOT_ENOUGH_SPACE = BUGCHECK_ERROR.VHD_BOOT_HOST_VOLUME_NOT_ENOUGH_SPACE; pub const WIN32K_HANDLE_MANAGER = BUGCHECK_ERROR.WIN32K_HANDLE_MANAGER; pub const GPIO_CONTROLLER_DRIVER_ERROR = BUGCHECK_ERROR.GPIO_CONTROLLER_DRIVER_ERROR; pub const KERNEL_SECURITY_CHECK_FAILURE = BUGCHECK_ERROR.KERNEL_SECURITY_CHECK_FAILURE; pub const KERNEL_MODE_HEAP_CORRUPTION = BUGCHECK_ERROR.KERNEL_MODE_HEAP_CORRUPTION; pub const PASSIVE_INTERRUPT_ERROR = BUGCHECK_ERROR.PASSIVE_INTERRUPT_ERROR; pub const INVALID_IO_BOOST_STATE = BUGCHECK_ERROR.INVALID_IO_BOOST_STATE; pub const CRITICAL_INITIALIZATION_FAILURE = BUGCHECK_ERROR.CRITICAL_INITIALIZATION_FAILURE; pub const ERRATA_WORKAROUND_UNSUCCESSFUL = BUGCHECK_ERROR.ERRATA_WORKAROUND_UNSUCCESSFUL; pub const REGISTRY_CALLBACK_DRIVER_EXCEPTION = BUGCHECK_ERROR.REGISTRY_CALLBACK_DRIVER_EXCEPTION; pub const STORAGE_DEVICE_ABNORMALITY_DETECTED = BUGCHECK_ERROR.STORAGE_DEVICE_ABNORMALITY_DETECTED; pub const VIDEO_ENGINE_TIMEOUT_DETECTED = BUGCHECK_ERROR.VIDEO_ENGINE_TIMEOUT_DETECTED; pub const VIDEO_TDR_APPLICATION_BLOCKED = BUGCHECK_ERROR.VIDEO_TDR_APPLICATION_BLOCKED; pub const PROCESSOR_DRIVER_INTERNAL = BUGCHECK_ERROR.PROCESSOR_DRIVER_INTERNAL; pub const BUGCODE_USB3_DRIVER = BUGCHECK_ERROR.BUGCODE_USB3_DRIVER; pub const SECURE_BOOT_VIOLATION = BUGCHECK_ERROR.SECURE_BOOT_VIOLATION; pub const NDIS_NET_BUFFER_LIST_INFO_ILLEGALLY_TRANSFERRED = BUGCHECK_ERROR.NDIS_NET_BUFFER_LIST_INFO_ILLEGALLY_TRANSFERRED; pub const ABNORMAL_RESET_DETECTED = BUGCHECK_ERROR.ABNORMAL_RESET_DETECTED; pub const IO_OBJECT_INVALID = BUGCHECK_ERROR.IO_OBJECT_INVALID; pub const REFS_FILE_SYSTEM = BUGCHECK_ERROR.REFS_FILE_SYSTEM; pub const KERNEL_WMI_INTERNAL = BUGCHECK_ERROR.KERNEL_WMI_INTERNAL; pub const SOC_SUBSYSTEM_FAILURE = BUGCHECK_ERROR.SOC_SUBSYSTEM_FAILURE; pub const FATAL_ABNORMAL_RESET_ERROR = BUGCHECK_ERROR.FATAL_ABNORMAL_RESET_ERROR; pub const EXCEPTION_SCOPE_INVALID = BUGCHECK_ERROR.EXCEPTION_SCOPE_INVALID; pub const SOC_CRITICAL_DEVICE_REMOVED = BUGCHECK_ERROR.SOC_CRITICAL_DEVICE_REMOVED; pub const PDC_WATCHDOG_TIMEOUT = BUGCHECK_ERROR.PDC_WATCHDOG_TIMEOUT; pub const TCPIP_AOAC_NIC_ACTIVE_REFERENCE_LEAK = BUGCHECK_ERROR.TCPIP_AOAC_NIC_ACTIVE_REFERENCE_LEAK; pub const UNSUPPORTED_INSTRUCTION_MODE = BUGCHECK_ERROR.UNSUPPORTED_INSTRUCTION_MODE; pub const INVALID_PUSH_LOCK_FLAGS = BUGCHECK_ERROR.INVALID_PUSH_LOCK_FLAGS; pub const KERNEL_LOCK_ENTRY_LEAKED_ON_THREAD_TERMINATION = BUGCHECK_ERROR.KERNEL_LOCK_ENTRY_LEAKED_ON_THREAD_TERMINATION; pub const UNEXPECTED_STORE_EXCEPTION = BUGCHECK_ERROR.UNEXPECTED_STORE_EXCEPTION; pub const OS_DATA_TAMPERING = BUGCHECK_ERROR.OS_DATA_TAMPERING; pub const WINSOCK_DETECTED_HUNG_CLOSESOCKET_LIVEDUMP = BUGCHECK_ERROR.WINSOCK_DETECTED_HUNG_CLOSESOCKET_LIVEDUMP; pub const KERNEL_THREAD_PRIORITY_FLOOR_VIOLATION = BUGCHECK_ERROR.KERNEL_THREAD_PRIORITY_FLOOR_VIOLATION; pub const ILLEGAL_IOMMU_PAGE_FAULT = BUGCHECK_ERROR.ILLEGAL_IOMMU_PAGE_FAULT; pub const HAL_ILLEGAL_IOMMU_PAGE_FAULT = BUGCHECK_ERROR.HAL_ILLEGAL_IOMMU_PAGE_FAULT; pub const SDBUS_INTERNAL_ERROR = BUGCHECK_ERROR.SDBUS_INTERNAL_ERROR; pub const WORKER_THREAD_RETURNED_WITH_SYSTEM_PAGE_PRIORITY_ACTIVE = BUGCHECK_ERROR.WORKER_THREAD_RETURNED_WITH_SYSTEM_PAGE_PRIORITY_ACTIVE; pub const PDC_WATCHDOG_TIMEOUT_LIVEDUMP = BUGCHECK_ERROR.PDC_WATCHDOG_TIMEOUT_LIVEDUMP; pub const SOC_SUBSYSTEM_FAILURE_LIVEDUMP = BUGCHECK_ERROR.SOC_SUBSYSTEM_FAILURE_LIVEDUMP; pub const BUGCODE_NDIS_DRIVER_LIVE_DUMP = BUGCHECK_ERROR.BUGCODE_NDIS_DRIVER_LIVE_DUMP; pub const CONNECTED_STANDBY_WATCHDOG_TIMEOUT_LIVEDUMP = BUGCHECK_ERROR.CONNECTED_STANDBY_WATCHDOG_TIMEOUT_LIVEDUMP; pub const WIN32K_ATOMIC_CHECK_FAILURE = BUGCHECK_ERROR.WIN32K_ATOMIC_CHECK_FAILURE; pub const LIVE_SYSTEM_DUMP = BUGCHECK_ERROR.LIVE_SYSTEM_DUMP; pub const KERNEL_AUTO_BOOST_INVALID_LOCK_RELEASE = BUGCHECK_ERROR.KERNEL_AUTO_BOOST_INVALID_LOCK_RELEASE; pub const WORKER_THREAD_TEST_CONDITION = BUGCHECK_ERROR.WORKER_THREAD_TEST_CONDITION; pub const WIN32K_CRITICAL_FAILURE = BUGCHECK_ERROR.WIN32K_CRITICAL_FAILURE; pub const CLUSTER_CSV_STATUS_IO_TIMEOUT_LIVEDUMP = BUGCHECK_ERROR.CLUSTER_CSV_STATUS_IO_TIMEOUT_LIVEDUMP; pub const CLUSTER_RESOURCE_CALL_TIMEOUT_LIVEDUMP = BUGCHECK_ERROR.CLUSTER_RESOURCE_CALL_TIMEOUT_LIVEDUMP; pub const CLUSTER_CSV_SNAPSHOT_DEVICE_INFO_TIMEOUT_LIVEDUMP = BUGCHECK_ERROR.CLUSTER_CSV_SNAPSHOT_DEVICE_INFO_TIMEOUT_LIVEDUMP; pub const CLUSTER_CSV_STATE_TRANSITION_TIMEOUT_LIVEDUMP = BUGCHECK_ERROR.CLUSTER_CSV_STATE_TRANSITION_TIMEOUT_LIVEDUMP; pub const CLUSTER_CSV_VOLUME_ARRIVAL_LIVEDUMP = BUGCHECK_ERROR.CLUSTER_CSV_VOLUME_ARRIVAL_LIVEDUMP; pub const CLUSTER_CSV_VOLUME_REMOVAL_LIVEDUMP = BUGCHECK_ERROR.CLUSTER_CSV_VOLUME_REMOVAL_LIVEDUMP; pub const CLUSTER_CSV_CLUSTER_WATCHDOG_LIVEDUMP = BUGCHECK_ERROR.CLUSTER_CSV_CLUSTER_WATCHDOG_LIVEDUMP; pub const INVALID_RUNDOWN_PROTECTION_FLAGS = BUGCHECK_ERROR.INVALID_RUNDOWN_PROTECTION_FLAGS; pub const INVALID_SLOT_ALLOCATOR_FLAGS = BUGCHECK_ERROR.INVALID_SLOT_ALLOCATOR_FLAGS; pub const ERESOURCE_INVALID_RELEASE = BUGCHECK_ERROR.ERESOURCE_INVALID_RELEASE; pub const CLUSTER_CSV_STATE_TRANSITION_INTERVAL_TIMEOUT_LIVEDUMP = BUGCHECK_ERROR.CLUSTER_CSV_STATE_TRANSITION_INTERVAL_TIMEOUT_LIVEDUMP; pub const CLUSTER_CSV_CLUSSVC_DISCONNECT_WATCHDOG = BUGCHECK_ERROR.CLUSTER_CSV_CLUSSVC_DISCONNECT_WATCHDOG; pub const CRYPTO_LIBRARY_INTERNAL_ERROR = BUGCHECK_ERROR.CRYPTO_LIBRARY_INTERNAL_ERROR; pub const COREMSGCALL_INTERNAL_ERROR = BUGCHECK_ERROR.COREMSGCALL_INTERNAL_ERROR; pub const COREMSG_INTERNAL_ERROR = BUGCHECK_ERROR.COREMSG_INTERNAL_ERROR; pub const PREVIOUS_FATAL_ABNORMAL_RESET_ERROR = BUGCHECK_ERROR.PREVIOUS_FATAL_ABNORMAL_RESET_ERROR; pub const ELAM_DRIVER_DETECTED_FATAL_ERROR = BUGCHECK_ERROR.ELAM_DRIVER_DETECTED_FATAL_ERROR; pub const CLUSTER_CLUSPORT_STATUS_IO_TIMEOUT_LIVEDUMP = BUGCHECK_ERROR.CLUSTER_CLUSPORT_STATUS_IO_TIMEOUT_LIVEDUMP; pub const PROFILER_CONFIGURATION_ILLEGAL = BUGCHECK_ERROR.PROFILER_CONFIGURATION_ILLEGAL; pub const PDC_LOCK_WATCHDOG_LIVEDUMP = BUGCHECK_ERROR.PDC_LOCK_WATCHDOG_LIVEDUMP; pub const PDC_UNEXPECTED_REVOCATION_LIVEDUMP = BUGCHECK_ERROR.PDC_UNEXPECTED_REVOCATION_LIVEDUMP; pub const MICROCODE_REVISION_MISMATCH = BUGCHECK_ERROR.MICROCODE_REVISION_MISMATCH; pub const HYPERGUARD_INITIALIZATION_FAILURE = BUGCHECK_ERROR.HYPERGUARD_INITIALIZATION_FAILURE; pub const WVR_LIVEDUMP_REPLICATION_IOCONTEXT_TIMEOUT = BUGCHECK_ERROR.WVR_LIVEDUMP_REPLICATION_IOCONTEXT_TIMEOUT; pub const WVR_LIVEDUMP_STATE_TRANSITION_TIMEOUT = BUGCHECK_ERROR.WVR_LIVEDUMP_STATE_TRANSITION_TIMEOUT; pub const WVR_LIVEDUMP_RECOVERY_IOCONTEXT_TIMEOUT = BUGCHECK_ERROR.WVR_LIVEDUMP_RECOVERY_IOCONTEXT_TIMEOUT; pub const WVR_LIVEDUMP_APP_IO_TIMEOUT = BUGCHECK_ERROR.WVR_LIVEDUMP_APP_IO_TIMEOUT; pub const WVR_LIVEDUMP_MANUALLY_INITIATED = BUGCHECK_ERROR.WVR_LIVEDUMP_MANUALLY_INITIATED; pub const WVR_LIVEDUMP_STATE_FAILURE = BUGCHECK_ERROR.WVR_LIVEDUMP_STATE_FAILURE; pub const WVR_LIVEDUMP_CRITICAL_ERROR = BUGCHECK_ERROR.WVR_LIVEDUMP_CRITICAL_ERROR; pub const VIDEO_DWMINIT_TIMEOUT_FALLBACK_BDD = BUGCHECK_ERROR.VIDEO_DWMINIT_TIMEOUT_FALLBACK_BDD; pub const CLUSTER_CSVFS_LIVEDUMP = BUGCHECK_ERROR.CLUSTER_CSVFS_LIVEDUMP; pub const BAD_OBJECT_HEADER = BUGCHECK_ERROR.BAD_OBJECT_HEADER; pub const SILO_CORRUPT = BUGCHECK_ERROR.SILO_CORRUPT; pub const SECURE_KERNEL_ERROR = BUGCHECK_ERROR.SECURE_KERNEL_ERROR; pub const HYPERGUARD_VIOLATION = BUGCHECK_ERROR.HYPERGUARD_VIOLATION; pub const SECURE_FAULT_UNHANDLED = BUGCHECK_ERROR.SECURE_FAULT_UNHANDLED; pub const KERNEL_PARTITION_REFERENCE_VIOLATION = BUGCHECK_ERROR.KERNEL_PARTITION_REFERENCE_VIOLATION; pub const SYNTHETIC_EXCEPTION_UNHANDLED = BUGCHECK_ERROR.SYNTHETIC_EXCEPTION_UNHANDLED; pub const WIN32K_CRITICAL_FAILURE_LIVEDUMP = BUGCHECK_ERROR.WIN32K_CRITICAL_FAILURE_LIVEDUMP; pub const PF_DETECTED_CORRUPTION = BUGCHECK_ERROR.PF_DETECTED_CORRUPTION; pub const KERNEL_AUTO_BOOST_LOCK_ACQUISITION_WITH_RAISED_IRQL = BUGCHECK_ERROR.KERNEL_AUTO_BOOST_LOCK_ACQUISITION_WITH_RAISED_IRQL; pub const VIDEO_DXGKRNL_LIVEDUMP = BUGCHECK_ERROR.VIDEO_DXGKRNL_LIVEDUMP; pub const KERNEL_STORAGE_SLOT_IN_USE = BUGCHECK_ERROR.KERNEL_STORAGE_SLOT_IN_USE; pub const SMB_SERVER_LIVEDUMP = BUGCHECK_ERROR.SMB_SERVER_LIVEDUMP; pub const LOADER_ROLLBACK_DETECTED = BUGCHECK_ERROR.LOADER_ROLLBACK_DETECTED; pub const WIN32K_SECURITY_FAILURE = BUGCHECK_ERROR.WIN32K_SECURITY_FAILURE; pub const UFX_LIVEDUMP = BUGCHECK_ERROR.UFX_LIVEDUMP; pub const WORKER_THREAD_RETURNED_WHILE_ATTACHED_TO_SILO = BUGCHECK_ERROR.WORKER_THREAD_RETURNED_WHILE_ATTACHED_TO_SILO; pub const TTM_FATAL_ERROR = BUGCHECK_ERROR.TTM_FATAL_ERROR; pub const WIN32K_POWER_WATCHDOG_TIMEOUT = BUGCHECK_ERROR.WIN32K_POWER_WATCHDOG_TIMEOUT; pub const CLUSTER_SVHDX_LIVEDUMP = BUGCHECK_ERROR.CLUSTER_SVHDX_LIVEDUMP; pub const BUGCODE_NETADAPTER_DRIVER = BUGCHECK_ERROR.BUGCODE_NETADAPTER_DRIVER; pub const PDC_PRIVILEGE_CHECK_LIVEDUMP = BUGCHECK_ERROR.PDC_PRIVILEGE_CHECK_LIVEDUMP; pub const TTM_WATCHDOG_TIMEOUT = BUGCHECK_ERROR.TTM_WATCHDOG_TIMEOUT; pub const WIN32K_CALLOUT_WATCHDOG_LIVEDUMP = BUGCHECK_ERROR.WIN32K_CALLOUT_WATCHDOG_LIVEDUMP; pub const WIN32K_CALLOUT_WATCHDOG_BUGCHECK = BUGCHECK_ERROR.WIN32K_CALLOUT_WATCHDOG_BUGCHECK; pub const CALL_HAS_NOT_RETURNED_WATCHDOG_TIMEOUT_LIVEDUMP = BUGCHECK_ERROR.CALL_HAS_NOT_RETURNED_WATCHDOG_TIMEOUT_LIVEDUMP; pub const DRIPS_SW_HW_DIVERGENCE_LIVEDUMP = BUGCHECK_ERROR.DRIPS_SW_HW_DIVERGENCE_LIVEDUMP; pub const USB_DRIPS_BLOCKER_SURPRISE_REMOVAL_LIVEDUMP = BUGCHECK_ERROR.USB_DRIPS_BLOCKER_SURPRISE_REMOVAL_LIVEDUMP; pub const BLUETOOTH_ERROR_RECOVERY_LIVEDUMP = BUGCHECK_ERROR.BLUETOOTH_ERROR_RECOVERY_LIVEDUMP; pub const SMB_REDIRECTOR_LIVEDUMP = BUGCHECK_ERROR.SMB_REDIRECTOR_LIVEDUMP; pub const VIDEO_DXGKRNL_BLACK_SCREEN_LIVEDUMP = BUGCHECK_ERROR.VIDEO_DXGKRNL_BLACK_SCREEN_LIVEDUMP; pub const DIRECTED_FX_TRANSITION_LIVEDUMP = BUGCHECK_ERROR.DIRECTED_FX_TRANSITION_LIVEDUMP; pub const EXCEPTION_ON_INVALID_STACK = BUGCHECK_ERROR.EXCEPTION_ON_INVALID_STACK; pub const UNWIND_ON_INVALID_STACK = BUGCHECK_ERROR.UNWIND_ON_INVALID_STACK; pub const VIDEO_MINIPORT_FAILED_LIVEDUMP = BUGCHECK_ERROR.VIDEO_MINIPORT_FAILED_LIVEDUMP; pub const VIDEO_MINIPORT_BLACK_SCREEN_LIVEDUMP = BUGCHECK_ERROR.VIDEO_MINIPORT_BLACK_SCREEN_LIVEDUMP; pub const DRIVER_VERIFIER_DETECTED_VIOLATION_LIVEDUMP = BUGCHECK_ERROR.DRIVER_VERIFIER_DETECTED_VIOLATION_LIVEDUMP; pub const IO_THREADPOOL_DEADLOCK_LIVEDUMP = BUGCHECK_ERROR.IO_THREADPOOL_DEADLOCK_LIVEDUMP; pub const FAST_ERESOURCE_PRECONDITION_VIOLATION = BUGCHECK_ERROR.FAST_ERESOURCE_PRECONDITION_VIOLATION; pub const STORE_DATA_STRUCTURE_CORRUPTION = BUGCHECK_ERROR.STORE_DATA_STRUCTURE_CORRUPTION; pub const MANUALLY_INITIATED_POWER_BUTTON_HOLD = BUGCHECK_ERROR.MANUALLY_INITIATED_POWER_BUTTON_HOLD; pub const USER_MODE_HEALTH_MONITOR_LIVEDUMP = BUGCHECK_ERROR.USER_MODE_HEALTH_MONITOR_LIVEDUMP; pub const SYNTHETIC_WATCHDOG_TIMEOUT = BUGCHECK_ERROR.SYNTHETIC_WATCHDOG_TIMEOUT; pub const INVALID_SILO_DETACH = BUGCHECK_ERROR.INVALID_SILO_DETACH; pub const EXRESOURCE_TIMEOUT_LIVEDUMP = BUGCHECK_ERROR.EXRESOURCE_TIMEOUT_LIVEDUMP; pub const INVALID_CALLBACK_STACK_ADDRESS = BUGCHECK_ERROR.INVALID_CALLBACK_STACK_ADDRESS; pub const INVALID_KERNEL_STACK_ADDRESS = BUGCHECK_ERROR.INVALID_KERNEL_STACK_ADDRESS; pub const HARDWARE_WATCHDOG_TIMEOUT = BUGCHECK_ERROR.HARDWARE_WATCHDOG_TIMEOUT; pub const ACPI_FIRMWARE_WATCHDOG_TIMEOUT = BUGCHECK_ERROR.ACPI_FIRMWARE_WATCHDOG_TIMEOUT; pub const TELEMETRY_ASSERTS_LIVEDUMP = BUGCHECK_ERROR.TELEMETRY_ASSERTS_LIVEDUMP; pub const WORKER_THREAD_INVALID_STATE = BUGCHECK_ERROR.WORKER_THREAD_INVALID_STATE; pub const WFP_INVALID_OPERATION = BUGCHECK_ERROR.WFP_INVALID_OPERATION; pub const UCMUCSI_LIVEDUMP = BUGCHECK_ERROR.UCMUCSI_LIVEDUMP; pub const DRIVER_PNP_WATCHDOG = BUGCHECK_ERROR.DRIVER_PNP_WATCHDOG; pub const WORKER_THREAD_RETURNED_WITH_NON_DEFAULT_WORKLOAD_CLASS = BUGCHECK_ERROR.WORKER_THREAD_RETURNED_WITH_NON_DEFAULT_WORKLOAD_CLASS; pub const EFS_FATAL_ERROR = BUGCHECK_ERROR.EFS_FATAL_ERROR; pub const UCMUCSI_FAILURE = BUGCHECK_ERROR.UCMUCSI_FAILURE; pub const HAL_IOMMU_INTERNAL_ERROR = BUGCHECK_ERROR.HAL_IOMMU_INTERNAL_ERROR; pub const HAL_BLOCKED_PROCESSOR_INTERNAL_ERROR = BUGCHECK_ERROR.HAL_BLOCKED_PROCESSOR_INTERNAL_ERROR; pub const IPI_WATCHDOG_TIMEOUT = BUGCHECK_ERROR.IPI_WATCHDOG_TIMEOUT; pub const DMA_COMMON_BUFFER_VECTOR_ERROR = BUGCHECK_ERROR.DMA_COMMON_BUFFER_VECTOR_ERROR; pub const BUGCODE_MBBADAPTER_DRIVER = BUGCHECK_ERROR.BUGCODE_MBBADAPTER_DRIVER; pub const BUGCODE_WIFIADAPTER_DRIVER = BUGCHECK_ERROR.BUGCODE_WIFIADAPTER_DRIVER; pub const PROCESSOR_START_TIMEOUT = BUGCHECK_ERROR.PROCESSOR_START_TIMEOUT; pub const INVALID_ALTERNATE_SYSTEM_CALL_HANDLER_REGISTRATION = BUGCHECK_ERROR.INVALID_ALTERNATE_SYSTEM_CALL_HANDLER_REGISTRATION; pub const DEVICE_DIAGNOSTIC_LOG_LIVEDUMP = BUGCHECK_ERROR.DEVICE_DIAGNOSTIC_LOG_LIVEDUMP; pub const AZURE_DEVICE_FW_DUMP = BUGCHECK_ERROR.AZURE_DEVICE_FW_DUMP; pub const BREAKAWAY_CABLE_TRANSITION = BUGCHECK_ERROR.BREAKAWAY_CABLE_TRANSITION; pub const VIDEO_DXGKRNL_SYSMM_FATAL_ERROR = BUGCHECK_ERROR.VIDEO_DXGKRNL_SYSMM_FATAL_ERROR; pub const DRIVER_VERIFIER_TRACKING_LIVE_DUMP = BUGCHECK_ERROR.DRIVER_VERIFIER_TRACKING_LIVE_DUMP; pub const CRASHDUMP_WATCHDOG_TIMEOUT = BUGCHECK_ERROR.CRASHDUMP_WATCHDOG_TIMEOUT; pub const REGISTRY_LIVE_DUMP = BUGCHECK_ERROR.REGISTRY_LIVE_DUMP; pub const INVALID_THREAD_AFFINITY_STATE = BUGCHECK_ERROR.INVALID_THREAD_AFFINITY_STATE; pub const ILLEGAL_ATS_INITIALIZATION = BUGCHECK_ERROR.ILLEGAL_ATS_INITIALIZATION; pub const SECURE_PCI_CONFIG_SPACE_ACCESS_VIOLATION = BUGCHECK_ERROR.SECURE_PCI_CONFIG_SPACE_ACCESS_VIOLATION; pub const DAM_WATCHDOG_TIMEOUT = BUGCHECK_ERROR.DAM_WATCHDOG_TIMEOUT; pub const XBOX_VMCTRL_CS_TIMEOUT = BUGCHECK_ERROR.XBOX_VMCTRL_CS_TIMEOUT; pub const XBOX_CORRUPTED_IMAGE = BUGCHECK_ERROR.XBOX_CORRUPTED_IMAGE; pub const XBOX_INVERTED_FUNCTION_TABLE_OVERFLOW = BUGCHECK_ERROR.XBOX_INVERTED_FUNCTION_TABLE_OVERFLOW; pub const XBOX_CORRUPTED_IMAGE_BASE = BUGCHECK_ERROR.XBOX_CORRUPTED_IMAGE_BASE; pub const XBOX_XDS_WATCHDOG_TIMEOUT = BUGCHECK_ERROR.XBOX_XDS_WATCHDOG_TIMEOUT; pub const XBOX_SHUTDOWN_WATCHDOG_TIMEOUT = BUGCHECK_ERROR.XBOX_SHUTDOWN_WATCHDOG_TIMEOUT; pub const XBOX_360_SYSTEM_CRASH = BUGCHECK_ERROR.XBOX_360_SYSTEM_CRASH; pub const XBOX_360_SYSTEM_CRASH_RESERVED = BUGCHECK_ERROR.XBOX_360_SYSTEM_CRASH_RESERVED; pub const XBOX_SECURITY_FAILUE = BUGCHECK_ERROR.XBOX_SECURITY_FAILUE; pub const KERNEL_CFG_INIT_FAILURE = BUGCHECK_ERROR.KERNEL_CFG_INIT_FAILURE; pub const MANUALLY_INITIATED_POWER_BUTTON_HOLD_LIVE_DUMP = BUGCHECK_ERROR.MANUALLY_INITIATED_POWER_BUTTON_HOLD_LIVE_DUMP; pub const HYPERVISOR_ERROR = BUGCHECK_ERROR.HYPERVISOR_ERROR; pub const WINLOGON_FATAL_ERROR = BUGCHECK_ERROR.WINLOGON_FATAL_ERROR; pub const MANUALLY_INITIATED_CRASH1 = BUGCHECK_ERROR.MANUALLY_INITIATED_CRASH1; pub const BUGCHECK_CONTEXT_MODIFIER = BUGCHECK_ERROR.BUGCHECK_CONTEXT_MODIFIER; pub const FACILITY_CODE = enum(u32) { NULL = 0, RPC = 1, DISPATCH = 2, STORAGE = 3, ITF = 4, WIN32 = 7, WINDOWS = 8, SSPI = 9, // SECURITY = 9, this enum value conflicts with SSPI CONTROL = 10, CERT = 11, INTERNET = 12, MEDIASERVER = 13, MSMQ = 14, SETUPAPI = 15, SCARD = 16, COMPLUS = 17, AAF = 18, URT = 19, ACS = 20, DPLAY = 21, UMI = 22, SXS = 23, WINDOWS_CE = 24, HTTP = 25, USERMODE_COMMONLOG = 26, WER = 27, USERMODE_FILTER_MANAGER = 31, BACKGROUNDCOPY = 32, CONFIGURATION = 33, // WIA = 33, this enum value conflicts with CONFIGURATION STATE_MANAGEMENT = 34, METADIRECTORY = 35, WINDOWSUPDATE = 36, DIRECTORYSERVICE = 37, GRAPHICS = 38, SHELL = 39, // NAP = 39, this enum value conflicts with SHELL TPM_SERVICES = 40, TPM_SOFTWARE = 41, UI = 42, XAML = 43, ACTION_QUEUE = 44, PLA = 48, // WINDOWS_SETUP = 48, this enum value conflicts with PLA FVE = 49, FWP = 50, WINRM = 51, NDIS = 52, USERMODE_HYPERVISOR = 53, CMI = 54, USERMODE_VIRTUALIZATION = 55, USERMODE_VOLMGR = 56, BCD = 57, USERMODE_VHD = 58, USERMODE_HNS = 59, SDIAG = 60, WEBSERVICES = 61, // WINPE = 61, this enum value conflicts with WEBSERVICES WPN = 62, WINDOWS_STORE = 63, INPUT = 64, QUIC = 65, EAP = 66, IORING = 70, WINDOWS_DEFENDER = 80, OPC = 81, XPS = 82, MBN = 84, // POWERSHELL = 84, this enum value conflicts with MBN RAS = 83, P2P_INT = 98, P2P = 99, DAF = 100, BLUETOOTH_ATT = 101, AUDIO = 102, STATEREPOSITORY = 103, VISUALCPP = 109, SCRIPT = 112, PARSE = 113, BLB = 120, BLB_CLI = 121, WSBAPP = 122, BLBUI = 128, USN = 129, USERMODE_VOLSNAP = 130, TIERING = 131, WSB_ONLINE = 133, ONLINE_ID = 134, DEVICE_UPDATE_AGENT = 135, DRVSERVICING = 136, DLS = 153, DELIVERY_OPTIMIZATION = 208, USERMODE_SPACES = 231, USER_MODE_SECURITY_CORE = 232, USERMODE_LICENSING = 234, SOS = 160, OCP_UPDATE_AGENT = 173, DEBUGGERS = 176, SPP = 256, // RESTORE = 256, this enum value conflicts with SPP // DMSERVER = 256, this enum value conflicts with SPP DEPLOYMENT_SERVICES_SERVER = 257, DEPLOYMENT_SERVICES_IMAGING = 258, DEPLOYMENT_SERVICES_MANAGEMENT = 259, DEPLOYMENT_SERVICES_UTIL = 260, DEPLOYMENT_SERVICES_BINLSVC = 261, DEPLOYMENT_SERVICES_PXE = 263, DEPLOYMENT_SERVICES_TFTP = 264, DEPLOYMENT_SERVICES_TRANSPORT_MANAGEMENT = 272, DEPLOYMENT_SERVICES_DRIVER_PROVISIONING = 278, DEPLOYMENT_SERVICES_MULTICAST_SERVER = 289, DEPLOYMENT_SERVICES_MULTICAST_CLIENT = 290, DEPLOYMENT_SERVICES_CONTENT_PROVIDER = 293, HSP_SERVICES = 296, HSP_SOFTWARE = 297, LINGUISTIC_SERVICES = 305, AUDIOSTREAMING = 1094, TTD = 1490, ACCELERATOR = 1536, WMAAECMA = 1996, DIRECTMUSIC = 2168, DIRECT3D10 = 2169, DXGI = 2170, DXGI_DDI = 2171, DIRECT3D11 = 2172, DIRECT3D11_DEBUG = 2173, DIRECT3D12 = 2174, DIRECT3D12_DEBUG = 2175, DXCORE = 2176, PRESENTATION = 2177, LEAP = 2184, AUDCLNT = 2185, WINCODEC_DWRITE_DWM = 2200, WINML = 2192, DIRECT2D = 2201, DEFRAG = 2304, USERMODE_SDBUS = 2305, JSCRIPT = 2306, PIDGENX = 2561, EAS = 85, WEB = 885, WEB_SOCKET = 886, MOBILE = 1793, SQLITE = 1967, SERVICE_FABRIC = 1968, UTC = 1989, WEP = 2049, SYNCENGINE = 2050, XBOX = 2339, GAME = 2340, PIX = 2748, NT_BIT = 268435456, }; pub const FACILITY_NULL = FACILITY_CODE.NULL; pub const FACILITY_RPC = FACILITY_CODE.RPC; pub const FACILITY_DISPATCH = FACILITY_CODE.DISPATCH; pub const FACILITY_STORAGE = FACILITY_CODE.STORAGE; pub const FACILITY_ITF = FACILITY_CODE.ITF; pub const FACILITY_WIN32 = FACILITY_CODE.WIN32; pub const FACILITY_WINDOWS = FACILITY_CODE.WINDOWS; pub const FACILITY_SSPI = FACILITY_CODE.SSPI; pub const FACILITY_SECURITY = FACILITY_CODE.SSPI; pub const FACILITY_CONTROL = FACILITY_CODE.CONTROL; pub const FACILITY_CERT = FACILITY_CODE.CERT; pub const FACILITY_INTERNET = FACILITY_CODE.INTERNET; pub const FACILITY_MEDIASERVER = FACILITY_CODE.MEDIASERVER; pub const FACILITY_MSMQ = FACILITY_CODE.MSMQ; pub const FACILITY_SETUPAPI = FACILITY_CODE.SETUPAPI; pub const FACILITY_SCARD = FACILITY_CODE.SCARD; pub const FACILITY_COMPLUS = FACILITY_CODE.COMPLUS; pub const FACILITY_AAF = FACILITY_CODE.AAF; pub const FACILITY_URT = FACILITY_CODE.URT; pub const FACILITY_ACS = FACILITY_CODE.ACS; pub const FACILITY_DPLAY = FACILITY_CODE.DPLAY; pub const FACILITY_UMI = FACILITY_CODE.UMI; pub const FACILITY_SXS = FACILITY_CODE.SXS; pub const FACILITY_WINDOWS_CE = FACILITY_CODE.WINDOWS_CE; pub const FACILITY_HTTP = FACILITY_CODE.HTTP; pub const FACILITY_USERMODE_COMMONLOG = FACILITY_CODE.USERMODE_COMMONLOG; pub const FACILITY_WER = FACILITY_CODE.WER; pub const FACILITY_USERMODE_FILTER_MANAGER = FACILITY_CODE.USERMODE_FILTER_MANAGER; pub const FACILITY_BACKGROUNDCOPY = FACILITY_CODE.BACKGROUNDCOPY; pub const FACILITY_CONFIGURATION = FACILITY_CODE.CONFIGURATION; pub const FACILITY_WIA = FACILITY_CODE.CONFIGURATION; pub const FACILITY_STATE_MANAGEMENT = FACILITY_CODE.STATE_MANAGEMENT; pub const FACILITY_METADIRECTORY = FACILITY_CODE.METADIRECTORY; pub const FACILITY_WINDOWSUPDATE = FACILITY_CODE.WINDOWSUPDATE; pub const FACILITY_DIRECTORYSERVICE = FACILITY_CODE.DIRECTORYSERVICE; pub const FACILITY_GRAPHICS = FACILITY_CODE.GRAPHICS; pub const FACILITY_SHELL = FACILITY_CODE.SHELL; pub const FACILITY_NAP = FACILITY_CODE.SHELL; pub const FACILITY_TPM_SERVICES = FACILITY_CODE.TPM_SERVICES; pub const FACILITY_TPM_SOFTWARE = FACILITY_CODE.TPM_SOFTWARE; pub const FACILITY_UI = FACILITY_CODE.UI; pub const FACILITY_XAML = FACILITY_CODE.XAML; pub const FACILITY_ACTION_QUEUE = FACILITY_CODE.ACTION_QUEUE; pub const FACILITY_PLA = FACILITY_CODE.PLA; pub const FACILITY_WINDOWS_SETUP = FACILITY_CODE.PLA; pub const FACILITY_FVE = FACILITY_CODE.FVE; pub const FACILITY_FWP = FACILITY_CODE.FWP; pub const FACILITY_WINRM = FACILITY_CODE.WINRM; pub const FACILITY_NDIS = FACILITY_CODE.NDIS; pub const FACILITY_USERMODE_HYPERVISOR = FACILITY_CODE.USERMODE_HYPERVISOR; pub const FACILITY_CMI = FACILITY_CODE.CMI; pub const FACILITY_USERMODE_VIRTUALIZATION = FACILITY_CODE.USERMODE_VIRTUALIZATION; pub const FACILITY_USERMODE_VOLMGR = FACILITY_CODE.USERMODE_VOLMGR; pub const FACILITY_BCD = FACILITY_CODE.BCD; pub const FACILITY_USERMODE_VHD = FACILITY_CODE.USERMODE_VHD; pub const FACILITY_USERMODE_HNS = FACILITY_CODE.USERMODE_HNS; pub const FACILITY_SDIAG = FACILITY_CODE.SDIAG; pub const FACILITY_WEBSERVICES = FACILITY_CODE.WEBSERVICES; pub const FACILITY_WINPE = FACILITY_CODE.WEBSERVICES; pub const FACILITY_WPN = FACILITY_CODE.WPN; pub const FACILITY_WINDOWS_STORE = FACILITY_CODE.WINDOWS_STORE; pub const FACILITY_INPUT = FACILITY_CODE.INPUT; pub const FACILITY_QUIC = FACILITY_CODE.QUIC; pub const FACILITY_EAP = FACILITY_CODE.EAP; pub const FACILITY_IORING = FACILITY_CODE.IORING; pub const FACILITY_WINDOWS_DEFENDER = FACILITY_CODE.WINDOWS_DEFENDER; pub const FACILITY_OPC = FACILITY_CODE.OPC; pub const FACILITY_XPS = FACILITY_CODE.XPS; pub const FACILITY_MBN = FACILITY_CODE.MBN; pub const FACILITY_POWERSHELL = FACILITY_CODE.MBN; pub const FACILITY_RAS = FACILITY_CODE.RAS; pub const FACILITY_P2P_INT = FACILITY_CODE.P2P_INT; pub const FACILITY_P2P = FACILITY_CODE.P2P; pub const FACILITY_DAF = FACILITY_CODE.DAF; pub const FACILITY_BLUETOOTH_ATT = FACILITY_CODE.BLUETOOTH_ATT; pub const FACILITY_AUDIO = FACILITY_CODE.AUDIO; pub const FACILITY_STATEREPOSITORY = FACILITY_CODE.STATEREPOSITORY; pub const FACILITY_VISUALCPP = FACILITY_CODE.VISUALCPP; pub const FACILITY_SCRIPT = FACILITY_CODE.SCRIPT; pub const FACILITY_PARSE = FACILITY_CODE.PARSE; pub const FACILITY_BLB = FACILITY_CODE.BLB; pub const FACILITY_BLB_CLI = FACILITY_CODE.BLB_CLI; pub const FACILITY_WSBAPP = FACILITY_CODE.WSBAPP; pub const FACILITY_BLBUI = FACILITY_CODE.BLBUI; pub const FACILITY_USN = FACILITY_CODE.USN; pub const FACILITY_USERMODE_VOLSNAP = FACILITY_CODE.USERMODE_VOLSNAP; pub const FACILITY_TIERING = FACILITY_CODE.TIERING; pub const FACILITY_WSB_ONLINE = FACILITY_CODE.WSB_ONLINE; pub const FACILITY_ONLINE_ID = FACILITY_CODE.ONLINE_ID; pub const FACILITY_DEVICE_UPDATE_AGENT = FACILITY_CODE.DEVICE_UPDATE_AGENT; pub const FACILITY_DRVSERVICING = FACILITY_CODE.DRVSERVICING; pub const FACILITY_DLS = FACILITY_CODE.DLS; pub const FACILITY_DELIVERY_OPTIMIZATION = FACILITY_CODE.DELIVERY_OPTIMIZATION; pub const FACILITY_USERMODE_SPACES = FACILITY_CODE.USERMODE_SPACES; pub const FACILITY_USER_MODE_SECURITY_CORE = FACILITY_CODE.USER_MODE_SECURITY_CORE; pub const FACILITY_USERMODE_LICENSING = FACILITY_CODE.USERMODE_LICENSING; pub const FACILITY_SOS = FACILITY_CODE.SOS; pub const FACILITY_OCP_UPDATE_AGENT = FACILITY_CODE.OCP_UPDATE_AGENT; pub const FACILITY_DEBUGGERS = FACILITY_CODE.DEBUGGERS; pub const FACILITY_SPP = FACILITY_CODE.SPP; pub const FACILITY_RESTORE = FACILITY_CODE.SPP; pub const FACILITY_DMSERVER = FACILITY_CODE.SPP; pub const FACILITY_DEPLOYMENT_SERVICES_SERVER = FACILITY_CODE.DEPLOYMENT_SERVICES_SERVER; pub const FACILITY_DEPLOYMENT_SERVICES_IMAGING = FACILITY_CODE.DEPLOYMENT_SERVICES_IMAGING; pub const FACILITY_DEPLOYMENT_SERVICES_MANAGEMENT = FACILITY_CODE.DEPLOYMENT_SERVICES_MANAGEMENT; pub const FACILITY_DEPLOYMENT_SERVICES_UTIL = FACILITY_CODE.DEPLOYMENT_SERVICES_UTIL; pub const FACILITY_DEPLOYMENT_SERVICES_BINLSVC = FACILITY_CODE.DEPLOYMENT_SERVICES_BINLSVC; pub const FACILITY_DEPLOYMENT_SERVICES_PXE = FACILITY_CODE.DEPLOYMENT_SERVICES_PXE; pub const FACILITY_DEPLOYMENT_SERVICES_TFTP = FACILITY_CODE.DEPLOYMENT_SERVICES_TFTP; pub const FACILITY_DEPLOYMENT_SERVICES_TRANSPORT_MANAGEMENT = FACILITY_CODE.DEPLOYMENT_SERVICES_TRANSPORT_MANAGEMENT; pub const FACILITY_DEPLOYMENT_SERVICES_DRIVER_PROVISIONING = FACILITY_CODE.DEPLOYMENT_SERVICES_DRIVER_PROVISIONING; pub const FACILITY_DEPLOYMENT_SERVICES_MULTICAST_SERVER = FACILITY_CODE.DEPLOYMENT_SERVICES_MULTICAST_SERVER; pub const FACILITY_DEPLOYMENT_SERVICES_MULTICAST_CLIENT = FACILITY_CODE.DEPLOYMENT_SERVICES_MULTICAST_CLIENT; pub const FACILITY_DEPLOYMENT_SERVICES_CONTENT_PROVIDER = FACILITY_CODE.DEPLOYMENT_SERVICES_CONTENT_PROVIDER; pub const FACILITY_HSP_SERVICES = FACILITY_CODE.HSP_SERVICES; pub const FACILITY_HSP_SOFTWARE = FACILITY_CODE.HSP_SOFTWARE; pub const FACILITY_LINGUISTIC_SERVICES = FACILITY_CODE.LINGUISTIC_SERVICES; pub const FACILITY_AUDIOSTREAMING = FACILITY_CODE.AUDIOSTREAMING; pub const FACILITY_TTD = FACILITY_CODE.TTD; pub const FACILITY_ACCELERATOR = FACILITY_CODE.ACCELERATOR; pub const FACILITY_WMAAECMA = FACILITY_CODE.WMAAECMA; pub const FACILITY_DIRECTMUSIC = FACILITY_CODE.DIRECTMUSIC; pub const FACILITY_DIRECT3D10 = FACILITY_CODE.DIRECT3D10; pub const FACILITY_DXGI = FACILITY_CODE.DXGI; pub const FACILITY_DXGI_DDI = FACILITY_CODE.DXGI_DDI; pub const FACILITY_DIRECT3D11 = FACILITY_CODE.DIRECT3D11; pub const FACILITY_DIRECT3D11_DEBUG = FACILITY_CODE.DIRECT3D11_DEBUG; pub const FACILITY_DIRECT3D12 = FACILITY_CODE.DIRECT3D12; pub const FACILITY_DIRECT3D12_DEBUG = FACILITY_CODE.DIRECT3D12_DEBUG; pub const FACILITY_DXCORE = FACILITY_CODE.DXCORE; pub const FACILITY_PRESENTATION = FACILITY_CODE.PRESENTATION; pub const FACILITY_LEAP = FACILITY_CODE.LEAP; pub const FACILITY_AUDCLNT = FACILITY_CODE.AUDCLNT; pub const FACILITY_WINCODEC_DWRITE_DWM = FACILITY_CODE.WINCODEC_DWRITE_DWM; pub const FACILITY_WINML = FACILITY_CODE.WINML; pub const FACILITY_DIRECT2D = FACILITY_CODE.DIRECT2D; pub const FACILITY_DEFRAG = FACILITY_CODE.DEFRAG; pub const FACILITY_USERMODE_SDBUS = FACILITY_CODE.USERMODE_SDBUS; pub const FACILITY_JSCRIPT = FACILITY_CODE.JSCRIPT; pub const FACILITY_PIDGENX = FACILITY_CODE.PIDGENX; pub const FACILITY_EAS = FACILITY_CODE.EAS; pub const FACILITY_WEB = FACILITY_CODE.WEB; pub const FACILITY_WEB_SOCKET = FACILITY_CODE.WEB_SOCKET; pub const FACILITY_MOBILE = FACILITY_CODE.MOBILE; pub const FACILITY_SQLITE = FACILITY_CODE.SQLITE; pub const FACILITY_SERVICE_FABRIC = FACILITY_CODE.SERVICE_FABRIC; pub const FACILITY_UTC = FACILITY_CODE.UTC; pub const FACILITY_WEP = FACILITY_CODE.WEP; pub const FACILITY_SYNCENGINE = FACILITY_CODE.SYNCENGINE; pub const FACILITY_XBOX = FACILITY_CODE.XBOX; pub const FACILITY_GAME = FACILITY_CODE.GAME; pub const FACILITY_PIX = FACILITY_CODE.PIX; pub const FACILITY_NT_BIT = FACILITY_CODE.NT_BIT; pub const THREAD_ERROR_MODE = enum(u32) { ALL_ERRORS = 0, FAILCRITICALERRORS = 1, NOGPFAULTERRORBOX = 2, NOOPENFILEERRORBOX = 32768, NOALIGNMENTFAULTEXCEPT = 4, _, pub fn initFlags(o: struct { ALL_ERRORS: u1 = 0, FAILCRITICALERRORS: u1 = 0, NOGPFAULTERRORBOX: u1 = 0, NOOPENFILEERRORBOX: u1 = 0, NOALIGNMENTFAULTEXCEPT: u1 = 0, }) THREAD_ERROR_MODE { return @as(THREAD_ERROR_MODE, @enumFromInt((if (o.ALL_ERRORS == 1) @intFromEnum(THREAD_ERROR_MODE.ALL_ERRORS) else 0) | (if (o.FAILCRITICALERRORS == 1) @intFromEnum(THREAD_ERROR_MODE.FAILCRITICALERRORS) else 0) | (if (o.NOGPFAULTERRORBOX == 1) @intFromEnum(THREAD_ERROR_MODE.NOGPFAULTERRORBOX) else 0) | (if (o.NOOPENFILEERRORBOX == 1) @intFromEnum(THREAD_ERROR_MODE.NOOPENFILEERRORBOX) else 0) | (if (o.NOALIGNMENTFAULTEXCEPT == 1) @intFromEnum(THREAD_ERROR_MODE.NOALIGNMENTFAULTEXCEPT) else 0))); } }; pub const SEM_ALL_ERRORS = THREAD_ERROR_MODE.ALL_ERRORS; pub const SEM_FAILCRITICALERRORS = THREAD_ERROR_MODE.FAILCRITICALERRORS; pub const SEM_NOGPFAULTERRORBOX = THREAD_ERROR_MODE.NOGPFAULTERRORBOX; pub const SEM_NOOPENFILEERRORBOX = THREAD_ERROR_MODE.NOOPENFILEERRORBOX; pub const SEM_NOALIGNMENTFAULTEXCEPT = THREAD_ERROR_MODE.NOALIGNMENTFAULTEXCEPT; pub const FORMAT_MESSAGE_OPTIONS = enum(u32) { ALLOCATE_BUFFER = 256, ARGUMENT_ARRAY = 8192, FROM_HMODULE = 2048, FROM_STRING = 1024, FROM_SYSTEM = 4096, IGNORE_INSERTS = 512, _, pub fn initFlags(o: struct { ALLOCATE_BUFFER: u1 = 0, ARGUMENT_ARRAY: u1 = 0, FROM_HMODULE: u1 = 0, FROM_STRING: u1 = 0, FROM_SYSTEM: u1 = 0, IGNORE_INSERTS: u1 = 0, }) FORMAT_MESSAGE_OPTIONS { return @as(FORMAT_MESSAGE_OPTIONS, @enumFromInt((if (o.ALLOCATE_BUFFER == 1) @intFromEnum(FORMAT_MESSAGE_OPTIONS.ALLOCATE_BUFFER) else 0) | (if (o.ARGUMENT_ARRAY == 1) @intFromEnum(FORMAT_MESSAGE_OPTIONS.ARGUMENT_ARRAY) else 0) | (if (o.FROM_HMODULE == 1) @intFromEnum(FORMAT_MESSAGE_OPTIONS.FROM_HMODULE) else 0) | (if (o.FROM_STRING == 1) @intFromEnum(FORMAT_MESSAGE_OPTIONS.FROM_STRING) else 0) | (if (o.FROM_SYSTEM == 1) @intFromEnum(FORMAT_MESSAGE_OPTIONS.FROM_SYSTEM) else 0) | (if (o.IGNORE_INSERTS == 1) @intFromEnum(FORMAT_MESSAGE_OPTIONS.IGNORE_INSERTS) else 0))); } }; pub const FORMAT_MESSAGE_ALLOCATE_BUFFER = FORMAT_MESSAGE_OPTIONS.ALLOCATE_BUFFER; pub const FORMAT_MESSAGE_ARGUMENT_ARRAY = FORMAT_MESSAGE_OPTIONS.ARGUMENT_ARRAY; pub const FORMAT_MESSAGE_FROM_HMODULE = FORMAT_MESSAGE_OPTIONS.FROM_HMODULE; pub const FORMAT_MESSAGE_FROM_STRING = FORMAT_MESSAGE_OPTIONS.FROM_STRING; pub const FORMAT_MESSAGE_FROM_SYSTEM = FORMAT_MESSAGE_OPTIONS.FROM_SYSTEM; pub const FORMAT_MESSAGE_IGNORE_INSERTS = FORMAT_MESSAGE_OPTIONS.IGNORE_INSERTS; pub const RTL_VIRTUAL_UNWIND_HANDLER_TYPE = enum(u32) { NHANDLER = 0, EHANDLER = 1, UHANDLER = 2, CHAININFO = 4, }; pub const UNW_FLAG_NHANDLER = RTL_VIRTUAL_UNWIND_HANDLER_TYPE.NHANDLER; pub const UNW_FLAG_EHANDLER = RTL_VIRTUAL_UNWIND_HANDLER_TYPE.EHANDLER; pub const UNW_FLAG_UHANDLER = RTL_VIRTUAL_UNWIND_HANDLER_TYPE.UHANDLER; pub const UNW_FLAG_CHAININFO = RTL_VIRTUAL_UNWIND_HANDLER_TYPE.CHAININFO; pub const OPEN_THREAD_WAIT_CHAIN_SESSION_FLAGS = enum(u32) { G = 1, }; pub const WCT_ASYNC_OPEN_FLAG = OPEN_THREAD_WAIT_CHAIN_SESSION_FLAGS.G; pub const SYM_SRV_STORE_FILE_FLAGS = enum(u32) { COMPRESS = 1, OVERWRITE = 2, PASS_IF_EXISTS = 64, POINTER = 8, RETURNINDEX = 4, }; pub const SYMSTOREOPT_COMPRESS = SYM_SRV_STORE_FILE_FLAGS.COMPRESS; pub const SYMSTOREOPT_OVERWRITE = SYM_SRV_STORE_FILE_FLAGS.OVERWRITE; pub const SYMSTOREOPT_PASS_IF_EXISTS = SYM_SRV_STORE_FILE_FLAGS.PASS_IF_EXISTS; pub const SYMSTOREOPT_POINTER = SYM_SRV_STORE_FILE_FLAGS.POINTER; pub const SYMSTOREOPT_RETURNINDEX = SYM_SRV_STORE_FILE_FLAGS.RETURNINDEX; pub const PROCESSOR_ARCHITECTURE = enum(u16) { AMD64 = 9, IA64 = 6, INTEL = 0, ARM = 5, UNKNOWN = 65535, }; pub const PROCESSOR_ARCHITECTURE_AMD64 = PROCESSOR_ARCHITECTURE.AMD64; pub const PROCESSOR_ARCHITECTURE_IA64 = PROCESSOR_ARCHITECTURE.IA64; pub const PROCESSOR_ARCHITECTURE_INTEL = PROCESSOR_ARCHITECTURE.INTEL; pub const PROCESSOR_ARCHITECTURE_ARM = PROCESSOR_ARCHITECTURE.ARM; pub const PROCESSOR_ARCHITECTURE_UNKNOWN = PROCESSOR_ARCHITECTURE.UNKNOWN; pub const IMAGE_DIRECTORY_ENTRY = enum(u32) { ARCHITECTURE = 7, BASERELOC = 5, BOUND_IMPORT = 11, COM_DESCRIPTOR = 14, DEBUG = 6, DELAY_IMPORT = 13, EXCEPTION = 3, EXPORT = 0, GLOBALPTR = 8, IAT = 12, IMPORT = 1, LOAD_CONFIG = 10, RESOURCE = 2, SECURITY = 4, TLS = 9, }; pub const IMAGE_DIRECTORY_ENTRY_ARCHITECTURE = IMAGE_DIRECTORY_ENTRY.ARCHITECTURE; pub const IMAGE_DIRECTORY_ENTRY_BASERELOC = IMAGE_DIRECTORY_ENTRY.BASERELOC; pub const IMAGE_DIRECTORY_ENTRY_BOUND_IMPORT = IMAGE_DIRECTORY_ENTRY.BOUND_IMPORT; pub const IMAGE_DIRECTORY_ENTRY_COM_DESCRIPTOR = IMAGE_DIRECTORY_ENTRY.COM_DESCRIPTOR; pub const IMAGE_DIRECTORY_ENTRY_DEBUG = IMAGE_DIRECTORY_ENTRY.DEBUG; pub const IMAGE_DIRECTORY_ENTRY_DELAY_IMPORT = IMAGE_DIRECTORY_ENTRY.DELAY_IMPORT; pub const IMAGE_DIRECTORY_ENTRY_EXCEPTION = IMAGE_DIRECTORY_ENTRY.EXCEPTION; pub const IMAGE_DIRECTORY_ENTRY_EXPORT = IMAGE_DIRECTORY_ENTRY.EXPORT; pub const IMAGE_DIRECTORY_ENTRY_GLOBALPTR = IMAGE_DIRECTORY_ENTRY.GLOBALPTR; pub const IMAGE_DIRECTORY_ENTRY_IAT = IMAGE_DIRECTORY_ENTRY.IAT; pub const IMAGE_DIRECTORY_ENTRY_IMPORT = IMAGE_DIRECTORY_ENTRY.IMPORT; pub const IMAGE_DIRECTORY_ENTRY_LOAD_CONFIG = IMAGE_DIRECTORY_ENTRY.LOAD_CONFIG; pub const IMAGE_DIRECTORY_ENTRY_RESOURCE = IMAGE_DIRECTORY_ENTRY.RESOURCE; pub const IMAGE_DIRECTORY_ENTRY_SECURITY = IMAGE_DIRECTORY_ENTRY.SECURITY; pub const IMAGE_DIRECTORY_ENTRY_TLS = IMAGE_DIRECTORY_ENTRY.TLS; pub const WAIT_CHAIN_THREAD_OPTIONS = enum(u32) { COM_FLAG = 2, CS_FLAG = 4, FLAG = 1, }; pub const WCT_OUT_OF_PROC_COM_FLAG = WAIT_CHAIN_THREAD_OPTIONS.COM_FLAG; pub const WCT_OUT_OF_PROC_CS_FLAG = WAIT_CHAIN_THREAD_OPTIONS.CS_FLAG; pub const WCT_OUT_OF_PROC_FLAG = WAIT_CHAIN_THREAD_OPTIONS.FLAG; pub const SYM_FIND_ID_OPTION = enum(u32) { DWORD = 2, DWORDPTR = 4, GUIDPTR = 8, }; pub const SSRVOPT_DWORD = SYM_FIND_ID_OPTION.DWORD; pub const SSRVOPT_DWORDPTR = SYM_FIND_ID_OPTION.DWORDPTR; pub const SSRVOPT_GUIDPTR = SYM_FIND_ID_OPTION.GUIDPTR; pub const IMAGE_FILE_CHARACTERISTICS = enum(u16) { RELOCS_STRIPPED = 1, EXECUTABLE_IMAGE = 2, LINE_NUMS_STRIPPED = 4, LOCAL_SYMS_STRIPPED = 8, AGGRESIVE_WS_TRIM = 16, LARGE_ADDRESS_AWARE = 32, BYTES_REVERSED_LO = 128, @"32BIT_MACHINE" = 256, DEBUG_STRIPPED = 512, REMOVABLE_RUN_FROM_SWAP = 1024, NET_RUN_FROM_SWAP = 2048, SYSTEM = 4096, DLL = 8192, UP_SYSTEM_ONLY = 16384, BYTES_REVERSED_HI = 32768, _, pub fn initFlags(o: struct { RELOCS_STRIPPED: u1 = 0, EXECUTABLE_IMAGE: u1 = 0, LINE_NUMS_STRIPPED: u1 = 0, LOCAL_SYMS_STRIPPED: u1 = 0, AGGRESIVE_WS_TRIM: u1 = 0, LARGE_ADDRESS_AWARE: u1 = 0, BYTES_REVERSED_LO: u1 = 0, @"32BIT_MACHINE": u1 = 0, DEBUG_STRIPPED: u1 = 0, REMOVABLE_RUN_FROM_SWAP: u1 = 0, NET_RUN_FROM_SWAP: u1 = 0, SYSTEM: u1 = 0, DLL: u1 = 0, UP_SYSTEM_ONLY: u1 = 0, BYTES_REVERSED_HI: u1 = 0, }) IMAGE_FILE_CHARACTERISTICS { return @as(IMAGE_FILE_CHARACTERISTICS, @enumFromInt((if (o.RELOCS_STRIPPED == 1) @intFromEnum(IMAGE_FILE_CHARACTERISTICS.RELOCS_STRIPPED) else 0) | (if (o.EXECUTABLE_IMAGE == 1) @intFromEnum(IMAGE_FILE_CHARACTERISTICS.EXECUTABLE_IMAGE) else 0) | (if (o.LINE_NUMS_STRIPPED == 1) @intFromEnum(IMAGE_FILE_CHARACTERISTICS.LINE_NUMS_STRIPPED) else 0) | (if (o.LOCAL_SYMS_STRIPPED == 1) @intFromEnum(IMAGE_FILE_CHARACTERISTICS.LOCAL_SYMS_STRIPPED) else 0) | (if (o.AGGRESIVE_WS_TRIM == 1) @intFromEnum(IMAGE_FILE_CHARACTERISTICS.AGGRESIVE_WS_TRIM) else 0) | (if (o.LARGE_ADDRESS_AWARE == 1) @intFromEnum(IMAGE_FILE_CHARACTERISTICS.LARGE_ADDRESS_AWARE) else 0) | (if (o.BYTES_REVERSED_LO == 1) @intFromEnum(IMAGE_FILE_CHARACTERISTICS.BYTES_REVERSED_LO) else 0) | (if (o.@"32BIT_MACHINE" == 1) @intFromEnum(IMAGE_FILE_CHARACTERISTICS.@"32BIT_MACHINE") else 0) | (if (o.DEBUG_STRIPPED == 1) @intFromEnum(IMAGE_FILE_CHARACTERISTICS.DEBUG_STRIPPED) else 0) | (if (o.REMOVABLE_RUN_FROM_SWAP == 1) @intFromEnum(IMAGE_FILE_CHARACTERISTICS.REMOVABLE_RUN_FROM_SWAP) else 0) | (if (o.NET_RUN_FROM_SWAP == 1) @intFromEnum(IMAGE_FILE_CHARACTERISTICS.NET_RUN_FROM_SWAP) else 0) | (if (o.SYSTEM == 1) @intFromEnum(IMAGE_FILE_CHARACTERISTICS.SYSTEM) else 0) | (if (o.DLL == 1) @intFromEnum(IMAGE_FILE_CHARACTERISTICS.DLL) else 0) | (if (o.UP_SYSTEM_ONLY == 1) @intFromEnum(IMAGE_FILE_CHARACTERISTICS.UP_SYSTEM_ONLY) else 0) | (if (o.BYTES_REVERSED_HI == 1) @intFromEnum(IMAGE_FILE_CHARACTERISTICS.BYTES_REVERSED_HI) else 0))); } }; pub const IMAGE_FILE_RELOCS_STRIPPED = IMAGE_FILE_CHARACTERISTICS.RELOCS_STRIPPED; pub const IMAGE_FILE_EXECUTABLE_IMAGE = IMAGE_FILE_CHARACTERISTICS.EXECUTABLE_IMAGE; pub const IMAGE_FILE_LINE_NUMS_STRIPPED = IMAGE_FILE_CHARACTERISTICS.LINE_NUMS_STRIPPED; pub const IMAGE_FILE_LOCAL_SYMS_STRIPPED = IMAGE_FILE_CHARACTERISTICS.LOCAL_SYMS_STRIPPED; pub const IMAGE_FILE_AGGRESIVE_WS_TRIM = IMAGE_FILE_CHARACTERISTICS.AGGRESIVE_WS_TRIM; pub const IMAGE_FILE_LARGE_ADDRESS_AWARE = IMAGE_FILE_CHARACTERISTICS.LARGE_ADDRESS_AWARE; pub const IMAGE_FILE_BYTES_REVERSED_LO = IMAGE_FILE_CHARACTERISTICS.BYTES_REVERSED_LO; pub const IMAGE_FILE_32BIT_MACHINE = IMAGE_FILE_CHARACTERISTICS.@"32BIT_MACHINE"; pub const IMAGE_FILE_DEBUG_STRIPPED = IMAGE_FILE_CHARACTERISTICS.DEBUG_STRIPPED; pub const IMAGE_FILE_REMOVABLE_RUN_FROM_SWAP = IMAGE_FILE_CHARACTERISTICS.REMOVABLE_RUN_FROM_SWAP; pub const IMAGE_FILE_NET_RUN_FROM_SWAP = IMAGE_FILE_CHARACTERISTICS.NET_RUN_FROM_SWAP; pub const IMAGE_FILE_SYSTEM = IMAGE_FILE_CHARACTERISTICS.SYSTEM; pub const IMAGE_FILE_DLL = IMAGE_FILE_CHARACTERISTICS.DLL; pub const IMAGE_FILE_UP_SYSTEM_ONLY = IMAGE_FILE_CHARACTERISTICS.UP_SYSTEM_ONLY; pub const IMAGE_FILE_BYTES_REVERSED_HI = IMAGE_FILE_CHARACTERISTICS.BYTES_REVERSED_HI; pub const IMAGE_FILE_CHARACTERISTICS2 = enum(u32) { RELOCS_STRIPPED2 = 1, EXECUTABLE_IMAGE2 = 2, LINE_NUMS_STRIPPED2 = 4, LOCAL_SYMS_STRIPPED2 = 8, AGGRESIVE_WS_TRIM2 = 16, LARGE_ADDRESS_AWARE2 = 32, BYTES_REVERSED_LO2 = 128, @"32BIT_MACHINE2" = 256, DEBUG_STRIPPED2 = 512, REMOVABLE_RUN_FROM_SWAP2 = 1024, NET_RUN_FROM_SWAP2 = 2048, SYSTEM_2 = 4096, DLL_2 = 8192, UP_SYSTEM_ONLY_2 = 16384, BYTES_REVERSED_HI_2 = 32768, _, pub fn initFlags(o: struct { RELOCS_STRIPPED2: u1 = 0, EXECUTABLE_IMAGE2: u1 = 0, LINE_NUMS_STRIPPED2: u1 = 0, LOCAL_SYMS_STRIPPED2: u1 = 0, AGGRESIVE_WS_TRIM2: u1 = 0, LARGE_ADDRESS_AWARE2: u1 = 0, BYTES_REVERSED_LO2: u1 = 0, @"32BIT_MACHINE2": u1 = 0, DEBUG_STRIPPED2: u1 = 0, REMOVABLE_RUN_FROM_SWAP2: u1 = 0, NET_RUN_FROM_SWAP2: u1 = 0, SYSTEM_2: u1 = 0, DLL_2: u1 = 0, UP_SYSTEM_ONLY_2: u1 = 0, BYTES_REVERSED_HI_2: u1 = 0, }) IMAGE_FILE_CHARACTERISTICS2 { return @as(IMAGE_FILE_CHARACTERISTICS2, @enumFromInt((if (o.RELOCS_STRIPPED2 == 1) @intFromEnum(IMAGE_FILE_CHARACTERISTICS2.RELOCS_STRIPPED2) else 0) | (if (o.EXECUTABLE_IMAGE2 == 1) @intFromEnum(IMAGE_FILE_CHARACTERISTICS2.EXECUTABLE_IMAGE2) else 0) | (if (o.LINE_NUMS_STRIPPED2 == 1) @intFromEnum(IMAGE_FILE_CHARACTERISTICS2.LINE_NUMS_STRIPPED2) else 0) | (if (o.LOCAL_SYMS_STRIPPED2 == 1) @intFromEnum(IMAGE_FILE_CHARACTERISTICS2.LOCAL_SYMS_STRIPPED2) else 0) | (if (o.AGGRESIVE_WS_TRIM2 == 1) @intFromEnum(IMAGE_FILE_CHARACTERISTICS2.AGGRESIVE_WS_TRIM2) else 0) | (if (o.LARGE_ADDRESS_AWARE2 == 1) @intFromEnum(IMAGE_FILE_CHARACTERISTICS2.LARGE_ADDRESS_AWARE2) else 0) | (if (o.BYTES_REVERSED_LO2 == 1) @intFromEnum(IMAGE_FILE_CHARACTERISTICS2.BYTES_REVERSED_LO2) else 0) | (if (o.@"32BIT_MACHINE2" == 1) @intFromEnum(IMAGE_FILE_CHARACTERISTICS2.@"32BIT_MACHINE2") else 0) | (if (o.DEBUG_STRIPPED2 == 1) @intFromEnum(IMAGE_FILE_CHARACTERISTICS2.DEBUG_STRIPPED2) else 0) | (if (o.REMOVABLE_RUN_FROM_SWAP2 == 1) @intFromEnum(IMAGE_FILE_CHARACTERISTICS2.REMOVABLE_RUN_FROM_SWAP2) else 0) | (if (o.NET_RUN_FROM_SWAP2 == 1) @intFromEnum(IMAGE_FILE_CHARACTERISTICS2.NET_RUN_FROM_SWAP2) else 0) | (if (o.SYSTEM_2 == 1) @intFromEnum(IMAGE_FILE_CHARACTERISTICS2.SYSTEM_2) else 0) | (if (o.DLL_2 == 1) @intFromEnum(IMAGE_FILE_CHARACTERISTICS2.DLL_2) else 0) | (if (o.UP_SYSTEM_ONLY_2 == 1) @intFromEnum(IMAGE_FILE_CHARACTERISTICS2.UP_SYSTEM_ONLY_2) else 0) | (if (o.BYTES_REVERSED_HI_2 == 1) @intFromEnum(IMAGE_FILE_CHARACTERISTICS2.BYTES_REVERSED_HI_2) else 0))); } }; pub const IMAGE_FILE_RELOCS_STRIPPED2 = IMAGE_FILE_CHARACTERISTICS2.RELOCS_STRIPPED2; pub const IMAGE_FILE_EXECUTABLE_IMAGE2 = IMAGE_FILE_CHARACTERISTICS2.EXECUTABLE_IMAGE2; pub const IMAGE_FILE_LINE_NUMS_STRIPPED2 = IMAGE_FILE_CHARACTERISTICS2.LINE_NUMS_STRIPPED2; pub const IMAGE_FILE_LOCAL_SYMS_STRIPPED2 = IMAGE_FILE_CHARACTERISTICS2.LOCAL_SYMS_STRIPPED2; pub const IMAGE_FILE_AGGRESIVE_WS_TRIM2 = IMAGE_FILE_CHARACTERISTICS2.AGGRESIVE_WS_TRIM2; pub const IMAGE_FILE_LARGE_ADDRESS_AWARE2 = IMAGE_FILE_CHARACTERISTICS2.LARGE_ADDRESS_AWARE2; pub const IMAGE_FILE_BYTES_REVERSED_LO2 = IMAGE_FILE_CHARACTERISTICS2.BYTES_REVERSED_LO2; pub const IMAGE_FILE_32BIT_MACHINE2 = IMAGE_FILE_CHARACTERISTICS2.@"32BIT_MACHINE2"; pub const IMAGE_FILE_DEBUG_STRIPPED2 = IMAGE_FILE_CHARACTERISTICS2.DEBUG_STRIPPED2; pub const IMAGE_FILE_REMOVABLE_RUN_FROM_SWAP2 = IMAGE_FILE_CHARACTERISTICS2.REMOVABLE_RUN_FROM_SWAP2; pub const IMAGE_FILE_NET_RUN_FROM_SWAP2 = IMAGE_FILE_CHARACTERISTICS2.NET_RUN_FROM_SWAP2; pub const IMAGE_FILE_SYSTEM_2 = IMAGE_FILE_CHARACTERISTICS2.SYSTEM_2; pub const IMAGE_FILE_DLL_2 = IMAGE_FILE_CHARACTERISTICS2.DLL_2; pub const IMAGE_FILE_UP_SYSTEM_ONLY_2 = IMAGE_FILE_CHARACTERISTICS2.UP_SYSTEM_ONLY_2; pub const IMAGE_FILE_BYTES_REVERSED_HI_2 = IMAGE_FILE_CHARACTERISTICS2.BYTES_REVERSED_HI_2; pub const SYMBOL_INFO_FLAGS = enum(u32) { CLR_TOKEN = 262144, CONSTANT = 256, EXPORT = 512, FORWARDER = 1024, FRAMEREL = 32, FUNCTION = 2048, ILREL = 65536, LOCAL = 128, METADATA = 131072, PARAMETER = 64, REGISTER = 8, REGREL = 16, SLOT = 32768, THUNK = 8192, TLSREL = 16384, VALUEPRESENT = 1, VIRTUAL = 4096, _, pub fn initFlags(o: struct { CLR_TOKEN: u1 = 0, CONSTANT: u1 = 0, EXPORT: u1 = 0, FORWARDER: u1 = 0, FRAMEREL: u1 = 0, FUNCTION: u1 = 0, ILREL: u1 = 0, LOCAL: u1 = 0, METADATA: u1 = 0, PARAMETER: u1 = 0, REGISTER: u1 = 0, REGREL: u1 = 0, SLOT: u1 = 0, THUNK: u1 = 0, TLSREL: u1 = 0, VALUEPRESENT: u1 = 0, VIRTUAL: u1 = 0, }) SYMBOL_INFO_FLAGS { return @as(SYMBOL_INFO_FLAGS, @enumFromInt((if (o.CLR_TOKEN == 1) @intFromEnum(SYMBOL_INFO_FLAGS.CLR_TOKEN) else 0) | (if (o.CONSTANT == 1) @intFromEnum(SYMBOL_INFO_FLAGS.CONSTANT) else 0) | (if (o.EXPORT == 1) @intFromEnum(SYMBOL_INFO_FLAGS.EXPORT) else 0) | (if (o.FORWARDER == 1) @intFromEnum(SYMBOL_INFO_FLAGS.FORWARDER) else 0) | (if (o.FRAMEREL == 1) @intFromEnum(SYMBOL_INFO_FLAGS.FRAMEREL) else 0) | (if (o.FUNCTION == 1) @intFromEnum(SYMBOL_INFO_FLAGS.FUNCTION) else 0) | (if (o.ILREL == 1) @intFromEnum(SYMBOL_INFO_FLAGS.ILREL) else 0) | (if (o.LOCAL == 1) @intFromEnum(SYMBOL_INFO_FLAGS.LOCAL) else 0) | (if (o.METADATA == 1) @intFromEnum(SYMBOL_INFO_FLAGS.METADATA) else 0) | (if (o.PARAMETER == 1) @intFromEnum(SYMBOL_INFO_FLAGS.PARAMETER) else 0) | (if (o.REGISTER == 1) @intFromEnum(SYMBOL_INFO_FLAGS.REGISTER) else 0) | (if (o.REGREL == 1) @intFromEnum(SYMBOL_INFO_FLAGS.REGREL) else 0) | (if (o.SLOT == 1) @intFromEnum(SYMBOL_INFO_FLAGS.SLOT) else 0) | (if (o.THUNK == 1) @intFromEnum(SYMBOL_INFO_FLAGS.THUNK) else 0) | (if (o.TLSREL == 1) @intFromEnum(SYMBOL_INFO_FLAGS.TLSREL) else 0) | (if (o.VALUEPRESENT == 1) @intFromEnum(SYMBOL_INFO_FLAGS.VALUEPRESENT) else 0) | (if (o.VIRTUAL == 1) @intFromEnum(SYMBOL_INFO_FLAGS.VIRTUAL) else 0))); } }; pub const SYMFLAG_CLR_TOKEN = SYMBOL_INFO_FLAGS.CLR_TOKEN; pub const SYMFLAG_CONSTANT = SYMBOL_INFO_FLAGS.CONSTANT; pub const SYMFLAG_EXPORT = SYMBOL_INFO_FLAGS.EXPORT; pub const SYMFLAG_FORWARDER = SYMBOL_INFO_FLAGS.FORWARDER; pub const SYMFLAG_FRAMEREL = SYMBOL_INFO_FLAGS.FRAMEREL; pub const SYMFLAG_FUNCTION = SYMBOL_INFO_FLAGS.FUNCTION; pub const SYMFLAG_ILREL = SYMBOL_INFO_FLAGS.ILREL; pub const SYMFLAG_LOCAL = SYMBOL_INFO_FLAGS.LOCAL; pub const SYMFLAG_METADATA = SYMBOL_INFO_FLAGS.METADATA; pub const SYMFLAG_PARAMETER = SYMBOL_INFO_FLAGS.PARAMETER; pub const SYMFLAG_REGISTER = SYMBOL_INFO_FLAGS.REGISTER; pub const SYMFLAG_REGREL = SYMBOL_INFO_FLAGS.REGREL; pub const SYMFLAG_SLOT = SYMBOL_INFO_FLAGS.SLOT; pub const SYMFLAG_THUNK = SYMBOL_INFO_FLAGS.THUNK; pub const SYMFLAG_TLSREL = SYMBOL_INFO_FLAGS.TLSREL; pub const SYMFLAG_VALUEPRESENT = SYMBOL_INFO_FLAGS.VALUEPRESENT; pub const SYMFLAG_VIRTUAL = SYMBOL_INFO_FLAGS.VIRTUAL; pub const IMAGEHLP_CBA_EVENT_SEVERITY = enum(u32) { Info = 0, Problem = 1, Attn = 2, Fatal = 3, }; // TODO: enum 'IMAGEHLP_CBA_EVENT_SEVERITY' has known issues with its value aliases pub const IMAGEHLP_GET_TYPE_INFO_FLAGS = enum(u32) { CHILDREN = 2, UNCACHED = 1, }; pub const IMAGEHLP_GET_TYPE_INFO_CHILDREN = IMAGEHLP_GET_TYPE_INFO_FLAGS.CHILDREN; pub const IMAGEHLP_GET_TYPE_INFO_UNCACHED = IMAGEHLP_GET_TYPE_INFO_FLAGS.UNCACHED; pub const RIP_INFO_TYPE = enum(u32) { ERROR = 1, MINORERROR = 2, WARNING = 3, }; pub const SLE_ERROR = RIP_INFO_TYPE.ERROR; pub const SLE_MINORERROR = RIP_INFO_TYPE.MINORERROR; pub const SLE_WARNING = RIP_INFO_TYPE.WARNING; pub const VER_PLATFORM = enum(u32) { s = 0, _WINDOWS = 1, _NT = 2, }; pub const VER_PLATFORM_WIN32s = VER_PLATFORM.s; pub const VER_PLATFORM_WIN32_WINDOWS = VER_PLATFORM._WINDOWS; pub const VER_PLATFORM_WIN32_NT = VER_PLATFORM._NT; pub const IMAGE_DEBUG_TYPE = enum(u32) { UNKNOWN = 0, COFF = 1, CODEVIEW = 2, FPO = 3, MISC = 4, EXCEPTION = 5, FIXUP = 6, BORLAND = 9, }; pub const IMAGE_DEBUG_TYPE_UNKNOWN = IMAGE_DEBUG_TYPE.UNKNOWN; pub const IMAGE_DEBUG_TYPE_COFF = IMAGE_DEBUG_TYPE.COFF; pub const IMAGE_DEBUG_TYPE_CODEVIEW = IMAGE_DEBUG_TYPE.CODEVIEW; pub const IMAGE_DEBUG_TYPE_FPO = IMAGE_DEBUG_TYPE.FPO; pub const IMAGE_DEBUG_TYPE_MISC = IMAGE_DEBUG_TYPE.MISC; pub const IMAGE_DEBUG_TYPE_EXCEPTION = IMAGE_DEBUG_TYPE.EXCEPTION; pub const IMAGE_DEBUG_TYPE_FIXUP = IMAGE_DEBUG_TYPE.FIXUP; pub const IMAGE_DEBUG_TYPE_BORLAND = IMAGE_DEBUG_TYPE.BORLAND; pub const MINIDUMP_THREAD_INFO_DUMP_FLAGS = enum(u32) { ERROR_THREAD = 1, EXITED_THREAD = 4, INVALID_CONTEXT = 16, INVALID_INFO = 8, INVALID_TEB = 32, WRITING_THREAD = 2, }; pub const MINIDUMP_THREAD_INFO_ERROR_THREAD = MINIDUMP_THREAD_INFO_DUMP_FLAGS.ERROR_THREAD; pub const MINIDUMP_THREAD_INFO_EXITED_THREAD = MINIDUMP_THREAD_INFO_DUMP_FLAGS.EXITED_THREAD; pub const MINIDUMP_THREAD_INFO_INVALID_CONTEXT = MINIDUMP_THREAD_INFO_DUMP_FLAGS.INVALID_CONTEXT; pub const MINIDUMP_THREAD_INFO_INVALID_INFO = MINIDUMP_THREAD_INFO_DUMP_FLAGS.INVALID_INFO; pub const MINIDUMP_THREAD_INFO_INVALID_TEB = MINIDUMP_THREAD_INFO_DUMP_FLAGS.INVALID_TEB; pub const MINIDUMP_THREAD_INFO_WRITING_THREAD = MINIDUMP_THREAD_INFO_DUMP_FLAGS.WRITING_THREAD; pub const DEBUG_EVENT_CODE = enum(u32) { CREATE_PROCESS_DEBUG_EVENT = 3, CREATE_THREAD_DEBUG_EVENT = 2, EXCEPTION_DEBUG_EVENT = 1, EXIT_PROCESS_DEBUG_EVENT = 5, EXIT_THREAD_DEBUG_EVENT = 4, LOAD_DLL_DEBUG_EVENT = 6, OUTPUT_DEBUG_STRING_EVENT = 8, RIP_EVENT = 9, UNLOAD_DLL_DEBUG_EVENT = 7, }; pub const CREATE_PROCESS_DEBUG_EVENT = DEBUG_EVENT_CODE.CREATE_PROCESS_DEBUG_EVENT; pub const CREATE_THREAD_DEBUG_EVENT = DEBUG_EVENT_CODE.CREATE_THREAD_DEBUG_EVENT; pub const EXCEPTION_DEBUG_EVENT = DEBUG_EVENT_CODE.EXCEPTION_DEBUG_EVENT; pub const EXIT_PROCESS_DEBUG_EVENT = DEBUG_EVENT_CODE.EXIT_PROCESS_DEBUG_EVENT; pub const EXIT_THREAD_DEBUG_EVENT = DEBUG_EVENT_CODE.EXIT_THREAD_DEBUG_EVENT; pub const LOAD_DLL_DEBUG_EVENT = DEBUG_EVENT_CODE.LOAD_DLL_DEBUG_EVENT; pub const OUTPUT_DEBUG_STRING_EVENT = DEBUG_EVENT_CODE.OUTPUT_DEBUG_STRING_EVENT; pub const RIP_EVENT = DEBUG_EVENT_CODE.RIP_EVENT; pub const UNLOAD_DLL_DEBUG_EVENT = DEBUG_EVENT_CODE.UNLOAD_DLL_DEBUG_EVENT; pub const MINIDUMP_MISC_INFO_FLAGS = enum(u32) { ID = 1, TIMES = 2, _, pub fn initFlags(o: struct { ID: u1 = 0, TIMES: u1 = 0, }) MINIDUMP_MISC_INFO_FLAGS { return @as(MINIDUMP_MISC_INFO_FLAGS, @enumFromInt((if (o.ID == 1) @intFromEnum(MINIDUMP_MISC_INFO_FLAGS.ID) else 0) | (if (o.TIMES == 1) @intFromEnum(MINIDUMP_MISC_INFO_FLAGS.TIMES) else 0))); } }; pub const MINIDUMP_MISC1_PROCESS_ID = MINIDUMP_MISC_INFO_FLAGS.ID; pub const MINIDUMP_MISC1_PROCESS_TIMES = MINIDUMP_MISC_INFO_FLAGS.TIMES; pub const MODLOAD_DATA_TYPE = enum(u32) { DEBUGDIRS = 1, CVMISC = 2, }; pub const DBHHEADER_DEBUGDIRS = MODLOAD_DATA_TYPE.DEBUGDIRS; pub const DBHHEADER_CVMISC = MODLOAD_DATA_TYPE.CVMISC; pub const EXCEPTION_DEBUG_INFO = extern struct { ExceptionRecord: EXCEPTION_RECORD, dwFirstChance: u32, }; pub const CREATE_THREAD_DEBUG_INFO = extern struct { hThread: ?HANDLE, lpThreadLocalBase: ?*anyopaque, lpStartAddress: ?LPTHREAD_START_ROUTINE, }; pub const CREATE_PROCESS_DEBUG_INFO = extern struct { hFile: ?HANDLE, hProcess: ?HANDLE, hThread: ?HANDLE, lpBaseOfImage: ?*anyopaque, dwDebugInfoFileOffset: u32, nDebugInfoSize: u32, lpThreadLocalBase: ?*anyopaque, lpStartAddress: ?LPTHREAD_START_ROUTINE, lpImageName: ?*anyopaque, fUnicode: u16, }; pub const EXIT_THREAD_DEBUG_INFO = extern struct { dwExitCode: u32, }; pub const EXIT_PROCESS_DEBUG_INFO = extern struct { dwExitCode: u32, }; pub const LOAD_DLL_DEBUG_INFO = extern struct { hFile: ?HANDLE, lpBaseOfDll: ?*anyopaque, dwDebugInfoFileOffset: u32, nDebugInfoSize: u32, lpImageName: ?*anyopaque, fUnicode: u16, }; pub const UNLOAD_DLL_DEBUG_INFO = extern struct { lpBaseOfDll: ?*anyopaque, }; pub const OUTPUT_DEBUG_STRING_INFO = extern struct { lpDebugStringData: ?PSTR, fUnicode: u16, nDebugStringLength: u16, }; pub const RIP_INFO = extern struct { dwError: u32, dwType: RIP_INFO_TYPE, }; pub const DEBUG_EVENT = extern struct { dwDebugEventCode: DEBUG_EVENT_CODE, dwProcessId: u32, dwThreadId: u32, u: extern union { Exception: EXCEPTION_DEBUG_INFO, CreateThread: CREATE_THREAD_DEBUG_INFO, CreateProcessInfo: CREATE_PROCESS_DEBUG_INFO, ExitThread: EXIT_THREAD_DEBUG_INFO, ExitProcess: EXIT_PROCESS_DEBUG_INFO, LoadDll: LOAD_DLL_DEBUG_INFO, UnloadDll: UNLOAD_DLL_DEBUG_INFO, DebugString: OUTPUT_DEBUG_STRING_INFO, RipInfo: RIP_INFO, }, }; pub const DEBUG_OFFSET_REGION = extern struct { Base: u64, Size: u64, }; const IID_IDebugAdvanced_Value = Guid.initString("f2df5f53-071f-47bd-9de6-5734c3fed689"); pub const IID_IDebugAdvanced = &IID_IDebugAdvanced_Value; pub const IDebugAdvanced = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, GetThreadContext: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugAdvanced, // TODO: what to do with BytesParamIndex 1? Context: ?*anyopaque, ContextSize: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugAdvanced, // TODO: what to do with BytesParamIndex 1? Context: ?*anyopaque, ContextSize: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetThreadContext: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugAdvanced, // TODO: what to do with BytesParamIndex 1? Context: ?*anyopaque, ContextSize: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugAdvanced, // TODO: what to do with BytesParamIndex 1? Context: ?*anyopaque, ContextSize: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugAdvanced_GetThreadContext(self: *const T, Context: ?*anyopaque, ContextSize: u32) HRESULT { return @as(*const IDebugAdvanced.VTable, @ptrCast(self.vtable)).GetThreadContext(@as(*const IDebugAdvanced, @ptrCast(self)), Context, ContextSize); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugAdvanced_SetThreadContext(self: *const T, Context: ?*anyopaque, ContextSize: u32) HRESULT { return @as(*const IDebugAdvanced.VTable, @ptrCast(self.vtable)).SetThreadContext(@as(*const IDebugAdvanced, @ptrCast(self)), Context, ContextSize); } }; } pub usingnamespace MethodMixin(@This()); }; pub const DEBUG_READ_USER_MINIDUMP_STREAM = extern struct { StreamType: u32, Flags: u32, Offset: u64, Buffer: ?*anyopaque, BufferSize: u32, BufferUsed: u32, }; pub const DEBUG_GET_TEXT_COMPLETIONS_IN = extern struct { Flags: u32, MatchCountLimit: u32, Reserved: [3]u64, }; pub const DEBUG_GET_TEXT_COMPLETIONS_OUT = extern struct { Flags: u32, ReplaceIndex: u32, MatchCount: u32, Reserved1: u32, Reserved2: [2]u64, }; pub const DEBUG_CACHED_SYMBOL_INFO = extern struct { ModBase: u64, Arg1: u64, Arg2: u64, Id: u32, Arg3: u32, }; pub const PROCESS_NAME_ENTRY = extern struct { ProcessId: u32, NameOffset: u32, NameSize: u32, NextEntry: u32, }; pub const DEBUG_THREAD_BASIC_INFORMATION = extern struct { Valid: u32, ExitStatus: u32, PriorityClass: u32, Priority: u32, CreateTime: u64, ExitTime: u64, KernelTime: u64, UserTime: u64, StartOffset: u64, Affinity: u64, }; const IID_IDebugAdvanced2_Value = Guid.initString("716d14c9-119b-4ba5-af1f-0890e672416a"); pub const IID_IDebugAdvanced2 = &IID_IDebugAdvanced2_Value; pub const IDebugAdvanced2 = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, GetThreadContext: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugAdvanced2, // TODO: what to do with BytesParamIndex 1? Context: ?*anyopaque, ContextSize: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugAdvanced2, // TODO: what to do with BytesParamIndex 1? Context: ?*anyopaque, ContextSize: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetThreadContext: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugAdvanced2, // TODO: what to do with BytesParamIndex 1? Context: ?*anyopaque, ContextSize: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugAdvanced2, // TODO: what to do with BytesParamIndex 1? Context: ?*anyopaque, ContextSize: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Request: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugAdvanced2, Request: u32, // TODO: what to do with BytesParamIndex 2? InBuffer: ?*anyopaque, InBufferSize: u32, // TODO: what to do with BytesParamIndex 4? OutBuffer: ?*anyopaque, OutBufferSize: u32, OutSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugAdvanced2, Request: u32, // TODO: what to do with BytesParamIndex 2? InBuffer: ?*anyopaque, InBufferSize: u32, // TODO: what to do with BytesParamIndex 4? OutBuffer: ?*anyopaque, OutBufferSize: u32, OutSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetSourceFileInformation: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugAdvanced2, Which: u32, SourceFile: ?PSTR, Arg64: u64, Arg32: u32, // TODO: what to do with BytesParamIndex 5? Buffer: ?*anyopaque, BufferSize: u32, InfoSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugAdvanced2, Which: u32, SourceFile: ?PSTR, Arg64: u64, Arg32: u32, // TODO: what to do with BytesParamIndex 5? Buffer: ?*anyopaque, BufferSize: u32, InfoSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, FindSourceFileAndToken: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugAdvanced2, StartElement: u32, ModAddr: u64, File: ?[*:0]const u8, Flags: u32, // TODO: what to do with BytesParamIndex 5? FileToken: ?*anyopaque, FileTokenSize: u32, FoundElement: ?*u32, Buffer: ?[*:0]u8, BufferSize: u32, FoundSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugAdvanced2, StartElement: u32, ModAddr: u64, File: ?[*:0]const u8, Flags: u32, // TODO: what to do with BytesParamIndex 5? FileToken: ?*anyopaque, FileTokenSize: u32, FoundElement: ?*u32, Buffer: ?[*:0]u8, BufferSize: u32, FoundSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetSymbolInformation: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugAdvanced2, Which: u32, Arg64: u64, Arg32: u32, // TODO: what to do with BytesParamIndex 4? Buffer: ?*anyopaque, BufferSize: u32, InfoSize: ?*u32, StringBuffer: ?[*:0]u8, StringBufferSize: u32, StringSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugAdvanced2, Which: u32, Arg64: u64, Arg32: u32, // TODO: what to do with BytesParamIndex 4? Buffer: ?*anyopaque, BufferSize: u32, InfoSize: ?*u32, StringBuffer: ?[*:0]u8, StringBufferSize: u32, StringSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetSystemObjectInformation: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugAdvanced2, Which: u32, Arg64: u64, Arg32: u32, // TODO: what to do with BytesParamIndex 4? Buffer: ?*anyopaque, BufferSize: u32, InfoSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugAdvanced2, Which: u32, Arg64: u64, Arg32: u32, // TODO: what to do with BytesParamIndex 4? Buffer: ?*anyopaque, BufferSize: u32, InfoSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugAdvanced2_GetThreadContext(self: *const T, Context: ?*anyopaque, ContextSize: u32) HRESULT { return @as(*const IDebugAdvanced2.VTable, @ptrCast(self.vtable)).GetThreadContext(@as(*const IDebugAdvanced2, @ptrCast(self)), Context, ContextSize); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugAdvanced2_SetThreadContext(self: *const T, Context: ?*anyopaque, ContextSize: u32) HRESULT { return @as(*const IDebugAdvanced2.VTable, @ptrCast(self.vtable)).SetThreadContext(@as(*const IDebugAdvanced2, @ptrCast(self)), Context, ContextSize); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugAdvanced2_Request(self: *const T, Request: u32, InBuffer: ?*anyopaque, InBufferSize: u32, OutBuffer: ?*anyopaque, OutBufferSize: u32, OutSize: ?*u32) HRESULT { return @as(*const IDebugAdvanced2.VTable, @ptrCast(self.vtable)).Request(@as(*const IDebugAdvanced2, @ptrCast(self)), Request, InBuffer, InBufferSize, OutBuffer, OutBufferSize, OutSize); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugAdvanced2_GetSourceFileInformation(self: *const T, Which: u32, SourceFile: ?PSTR, Arg64: u64, Arg32: u32, Buffer: ?*anyopaque, BufferSize: u32, InfoSize: ?*u32) HRESULT { return @as(*const IDebugAdvanced2.VTable, @ptrCast(self.vtable)).GetSourceFileInformation(@as(*const IDebugAdvanced2, @ptrCast(self)), Which, SourceFile, Arg64, Arg32, Buffer, BufferSize, InfoSize); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugAdvanced2_FindSourceFileAndToken(self: *const T, StartElement: u32, ModAddr: u64, File: ?[*:0]const u8, Flags: u32, FileToken: ?*anyopaque, FileTokenSize: u32, FoundElement: ?*u32, Buffer: ?[*:0]u8, BufferSize: u32, FoundSize: ?*u32) HRESULT { return @as(*const IDebugAdvanced2.VTable, @ptrCast(self.vtable)).FindSourceFileAndToken(@as(*const IDebugAdvanced2, @ptrCast(self)), StartElement, ModAddr, File, Flags, FileToken, FileTokenSize, FoundElement, Buffer, BufferSize, FoundSize); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugAdvanced2_GetSymbolInformation(self: *const T, Which: u32, Arg64: u64, Arg32: u32, Buffer: ?*anyopaque, BufferSize: u32, InfoSize: ?*u32, StringBuffer: ?[*:0]u8, StringBufferSize: u32, StringSize: ?*u32) HRESULT { return @as(*const IDebugAdvanced2.VTable, @ptrCast(self.vtable)).GetSymbolInformation(@as(*const IDebugAdvanced2, @ptrCast(self)), Which, Arg64, Arg32, Buffer, BufferSize, InfoSize, StringBuffer, StringBufferSize, StringSize); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugAdvanced2_GetSystemObjectInformation(self: *const T, Which: u32, Arg64: u64, Arg32: u32, Buffer: ?*anyopaque, BufferSize: u32, InfoSize: ?*u32) HRESULT { return @as(*const IDebugAdvanced2.VTable, @ptrCast(self.vtable)).GetSystemObjectInformation(@as(*const IDebugAdvanced2, @ptrCast(self)), Which, Arg64, Arg32, Buffer, BufferSize, InfoSize); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IDebugAdvanced3_Value = Guid.initString("cba4abb4-84c4-444d-87ca-a04e13286739"); pub const IID_IDebugAdvanced3 = &IID_IDebugAdvanced3_Value; pub const IDebugAdvanced3 = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, GetThreadContext: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugAdvanced3, // TODO: what to do with BytesParamIndex 1? Context: ?*anyopaque, ContextSize: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugAdvanced3, // TODO: what to do with BytesParamIndex 1? Context: ?*anyopaque, ContextSize: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetThreadContext: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugAdvanced3, // TODO: what to do with BytesParamIndex 1? Context: ?*anyopaque, ContextSize: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugAdvanced3, // TODO: what to do with BytesParamIndex 1? Context: ?*anyopaque, ContextSize: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Request: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugAdvanced3, Request: u32, // TODO: what to do with BytesParamIndex 2? InBuffer: ?*anyopaque, InBufferSize: u32, // TODO: what to do with BytesParamIndex 4? OutBuffer: ?*anyopaque, OutBufferSize: u32, OutSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugAdvanced3, Request: u32, // TODO: what to do with BytesParamIndex 2? InBuffer: ?*anyopaque, InBufferSize: u32, // TODO: what to do with BytesParamIndex 4? OutBuffer: ?*anyopaque, OutBufferSize: u32, OutSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetSourceFileInformation: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugAdvanced3, Which: u32, SourceFile: ?PSTR, Arg64: u64, Arg32: u32, // TODO: what to do with BytesParamIndex 5? Buffer: ?*anyopaque, BufferSize: u32, InfoSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugAdvanced3, Which: u32, SourceFile: ?PSTR, Arg64: u64, Arg32: u32, // TODO: what to do with BytesParamIndex 5? Buffer: ?*anyopaque, BufferSize: u32, InfoSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, FindSourceFileAndToken: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugAdvanced3, StartElement: u32, ModAddr: u64, File: ?[*:0]const u8, Flags: u32, // TODO: what to do with BytesParamIndex 5? FileToken: ?*anyopaque, FileTokenSize: u32, FoundElement: ?*u32, Buffer: ?[*:0]u8, BufferSize: u32, FoundSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugAdvanced3, StartElement: u32, ModAddr: u64, File: ?[*:0]const u8, Flags: u32, // TODO: what to do with BytesParamIndex 5? FileToken: ?*anyopaque, FileTokenSize: u32, FoundElement: ?*u32, Buffer: ?[*:0]u8, BufferSize: u32, FoundSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetSymbolInformation: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugAdvanced3, Which: u32, Arg64: u64, Arg32: u32, // TODO: what to do with BytesParamIndex 4? Buffer: ?*anyopaque, BufferSize: u32, InfoSize: ?*u32, StringBuffer: ?[*:0]u8, StringBufferSize: u32, StringSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugAdvanced3, Which: u32, Arg64: u64, Arg32: u32, // TODO: what to do with BytesParamIndex 4? Buffer: ?*anyopaque, BufferSize: u32, InfoSize: ?*u32, StringBuffer: ?[*:0]u8, StringBufferSize: u32, StringSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetSystemObjectInformation: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugAdvanced3, Which: u32, Arg64: u64, Arg32: u32, // TODO: what to do with BytesParamIndex 4? Buffer: ?*anyopaque, BufferSize: u32, InfoSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugAdvanced3, Which: u32, Arg64: u64, Arg32: u32, // TODO: what to do with BytesParamIndex 4? Buffer: ?*anyopaque, BufferSize: u32, InfoSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetSourceFileInformationWide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugAdvanced3, Which: u32, SourceFile: ?PWSTR, Arg64: u64, Arg32: u32, // TODO: what to do with BytesParamIndex 5? Buffer: ?*anyopaque, BufferSize: u32, InfoSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugAdvanced3, Which: u32, SourceFile: ?PWSTR, Arg64: u64, Arg32: u32, // TODO: what to do with BytesParamIndex 5? Buffer: ?*anyopaque, BufferSize: u32, InfoSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, FindSourceFileAndTokenWide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugAdvanced3, StartElement: u32, ModAddr: u64, File: ?[*:0]const u16, Flags: u32, // TODO: what to do with BytesParamIndex 5? FileToken: ?*anyopaque, FileTokenSize: u32, FoundElement: ?*u32, Buffer: ?[*:0]u16, BufferSize: u32, FoundSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugAdvanced3, StartElement: u32, ModAddr: u64, File: ?[*:0]const u16, Flags: u32, // TODO: what to do with BytesParamIndex 5? FileToken: ?*anyopaque, FileTokenSize: u32, FoundElement: ?*u32, Buffer: ?[*:0]u16, BufferSize: u32, FoundSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetSymbolInformationWide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugAdvanced3, Which: u32, Arg64: u64, Arg32: u32, // TODO: what to do with BytesParamIndex 4? Buffer: ?*anyopaque, BufferSize: u32, InfoSize: ?*u32, StringBuffer: ?[*:0]u16, StringBufferSize: u32, StringSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugAdvanced3, Which: u32, Arg64: u64, Arg32: u32, // TODO: what to do with BytesParamIndex 4? Buffer: ?*anyopaque, BufferSize: u32, InfoSize: ?*u32, StringBuffer: ?[*:0]u16, StringBufferSize: u32, StringSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugAdvanced3_GetThreadContext(self: *const T, Context: ?*anyopaque, ContextSize: u32) HRESULT { return @as(*const IDebugAdvanced3.VTable, @ptrCast(self.vtable)).GetThreadContext(@as(*const IDebugAdvanced3, @ptrCast(self)), Context, ContextSize); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugAdvanced3_SetThreadContext(self: *const T, Context: ?*anyopaque, ContextSize: u32) HRESULT { return @as(*const IDebugAdvanced3.VTable, @ptrCast(self.vtable)).SetThreadContext(@as(*const IDebugAdvanced3, @ptrCast(self)), Context, ContextSize); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugAdvanced3_Request(self: *const T, Request: u32, InBuffer: ?*anyopaque, InBufferSize: u32, OutBuffer: ?*anyopaque, OutBufferSize: u32, OutSize: ?*u32) HRESULT { return @as(*const IDebugAdvanced3.VTable, @ptrCast(self.vtable)).Request(@as(*const IDebugAdvanced3, @ptrCast(self)), Request, InBuffer, InBufferSize, OutBuffer, OutBufferSize, OutSize); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugAdvanced3_GetSourceFileInformation(self: *const T, Which: u32, SourceFile: ?PSTR, Arg64: u64, Arg32: u32, Buffer: ?*anyopaque, BufferSize: u32, InfoSize: ?*u32) HRESULT { return @as(*const IDebugAdvanced3.VTable, @ptrCast(self.vtable)).GetSourceFileInformation(@as(*const IDebugAdvanced3, @ptrCast(self)), Which, SourceFile, Arg64, Arg32, Buffer, BufferSize, InfoSize); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugAdvanced3_FindSourceFileAndToken(self: *const T, StartElement: u32, ModAddr: u64, File: ?[*:0]const u8, Flags: u32, FileToken: ?*anyopaque, FileTokenSize: u32, FoundElement: ?*u32, Buffer: ?[*:0]u8, BufferSize: u32, FoundSize: ?*u32) HRESULT { return @as(*const IDebugAdvanced3.VTable, @ptrCast(self.vtable)).FindSourceFileAndToken(@as(*const IDebugAdvanced3, @ptrCast(self)), StartElement, ModAddr, File, Flags, FileToken, FileTokenSize, FoundElement, Buffer, BufferSize, FoundSize); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugAdvanced3_GetSymbolInformation(self: *const T, Which: u32, Arg64: u64, Arg32: u32, Buffer: ?*anyopaque, BufferSize: u32, InfoSize: ?*u32, StringBuffer: ?[*:0]u8, StringBufferSize: u32, StringSize: ?*u32) HRESULT { return @as(*const IDebugAdvanced3.VTable, @ptrCast(self.vtable)).GetSymbolInformation(@as(*const IDebugAdvanced3, @ptrCast(self)), Which, Arg64, Arg32, Buffer, BufferSize, InfoSize, StringBuffer, StringBufferSize, StringSize); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugAdvanced3_GetSystemObjectInformation(self: *const T, Which: u32, Arg64: u64, Arg32: u32, Buffer: ?*anyopaque, BufferSize: u32, InfoSize: ?*u32) HRESULT { return @as(*const IDebugAdvanced3.VTable, @ptrCast(self.vtable)).GetSystemObjectInformation(@as(*const IDebugAdvanced3, @ptrCast(self)), Which, Arg64, Arg32, Buffer, BufferSize, InfoSize); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugAdvanced3_GetSourceFileInformationWide(self: *const T, Which: u32, SourceFile: ?PWSTR, Arg64: u64, Arg32: u32, Buffer: ?*anyopaque, BufferSize: u32, InfoSize: ?*u32) HRESULT { return @as(*const IDebugAdvanced3.VTable, @ptrCast(self.vtable)).GetSourceFileInformationWide(@as(*const IDebugAdvanced3, @ptrCast(self)), Which, SourceFile, Arg64, Arg32, Buffer, BufferSize, InfoSize); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugAdvanced3_FindSourceFileAndTokenWide(self: *const T, StartElement: u32, ModAddr: u64, File: ?[*:0]const u16, Flags: u32, FileToken: ?*anyopaque, FileTokenSize: u32, FoundElement: ?*u32, Buffer: ?[*:0]u16, BufferSize: u32, FoundSize: ?*u32) HRESULT { return @as(*const IDebugAdvanced3.VTable, @ptrCast(self.vtable)).FindSourceFileAndTokenWide(@as(*const IDebugAdvanced3, @ptrCast(self)), StartElement, ModAddr, File, Flags, FileToken, FileTokenSize, FoundElement, Buffer, BufferSize, FoundSize); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugAdvanced3_GetSymbolInformationWide(self: *const T, Which: u32, Arg64: u64, Arg32: u32, Buffer: ?*anyopaque, BufferSize: u32, InfoSize: ?*u32, StringBuffer: ?[*:0]u16, StringBufferSize: u32, StringSize: ?*u32) HRESULT { return @as(*const IDebugAdvanced3.VTable, @ptrCast(self.vtable)).GetSymbolInformationWide(@as(*const IDebugAdvanced3, @ptrCast(self)), Which, Arg64, Arg32, Buffer, BufferSize, InfoSize, StringBuffer, StringBufferSize, StringSize); } }; } pub usingnamespace MethodMixin(@This()); }; pub const SYMBOL_INFO_EX = extern struct { SizeOfStruct: u32, TypeOfInfo: u32, Offset: u64, Line: u32, Displacement: u32, Reserved: [4]u32, }; const IID_IDebugAdvanced4_Value = Guid.initString("d1069067-2a65-4bf0-ae97-76184b67856b"); pub const IID_IDebugAdvanced4 = &IID_IDebugAdvanced4_Value; pub const IDebugAdvanced4 = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, GetThreadContext: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugAdvanced4, // TODO: what to do with BytesParamIndex 1? Context: ?*anyopaque, ContextSize: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugAdvanced4, // TODO: what to do with BytesParamIndex 1? Context: ?*anyopaque, ContextSize: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetThreadContext: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugAdvanced4, // TODO: what to do with BytesParamIndex 1? Context: ?*anyopaque, ContextSize: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugAdvanced4, // TODO: what to do with BytesParamIndex 1? Context: ?*anyopaque, ContextSize: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Request: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugAdvanced4, Request: u32, // TODO: what to do with BytesParamIndex 2? InBuffer: ?*anyopaque, InBufferSize: u32, // TODO: what to do with BytesParamIndex 4? OutBuffer: ?*anyopaque, OutBufferSize: u32, OutSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugAdvanced4, Request: u32, // TODO: what to do with BytesParamIndex 2? InBuffer: ?*anyopaque, InBufferSize: u32, // TODO: what to do with BytesParamIndex 4? OutBuffer: ?*anyopaque, OutBufferSize: u32, OutSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetSourceFileInformation: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugAdvanced4, Which: u32, SourceFile: ?PSTR, Arg64: u64, Arg32: u32, // TODO: what to do with BytesParamIndex 5? Buffer: ?*anyopaque, BufferSize: u32, InfoSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugAdvanced4, Which: u32, SourceFile: ?PSTR, Arg64: u64, Arg32: u32, // TODO: what to do with BytesParamIndex 5? Buffer: ?*anyopaque, BufferSize: u32, InfoSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, FindSourceFileAndToken: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugAdvanced4, StartElement: u32, ModAddr: u64, File: ?[*:0]const u8, Flags: u32, // TODO: what to do with BytesParamIndex 5? FileToken: ?*anyopaque, FileTokenSize: u32, FoundElement: ?*u32, Buffer: ?[*:0]u8, BufferSize: u32, FoundSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugAdvanced4, StartElement: u32, ModAddr: u64, File: ?[*:0]const u8, Flags: u32, // TODO: what to do with BytesParamIndex 5? FileToken: ?*anyopaque, FileTokenSize: u32, FoundElement: ?*u32, Buffer: ?[*:0]u8, BufferSize: u32, FoundSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetSymbolInformation: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugAdvanced4, Which: u32, Arg64: u64, Arg32: u32, // TODO: what to do with BytesParamIndex 4? Buffer: ?*anyopaque, BufferSize: u32, InfoSize: ?*u32, StringBuffer: ?[*:0]u8, StringBufferSize: u32, StringSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugAdvanced4, Which: u32, Arg64: u64, Arg32: u32, // TODO: what to do with BytesParamIndex 4? Buffer: ?*anyopaque, BufferSize: u32, InfoSize: ?*u32, StringBuffer: ?[*:0]u8, StringBufferSize: u32, StringSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetSystemObjectInformation: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugAdvanced4, Which: u32, Arg64: u64, Arg32: u32, // TODO: what to do with BytesParamIndex 4? Buffer: ?*anyopaque, BufferSize: u32, InfoSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugAdvanced4, Which: u32, Arg64: u64, Arg32: u32, // TODO: what to do with BytesParamIndex 4? Buffer: ?*anyopaque, BufferSize: u32, InfoSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetSourceFileInformationWide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugAdvanced4, Which: u32, SourceFile: ?PWSTR, Arg64: u64, Arg32: u32, // TODO: what to do with BytesParamIndex 5? Buffer: ?*anyopaque, BufferSize: u32, InfoSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugAdvanced4, Which: u32, SourceFile: ?PWSTR, Arg64: u64, Arg32: u32, // TODO: what to do with BytesParamIndex 5? Buffer: ?*anyopaque, BufferSize: u32, InfoSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, FindSourceFileAndTokenWide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugAdvanced4, StartElement: u32, ModAddr: u64, File: ?[*:0]const u16, Flags: u32, // TODO: what to do with BytesParamIndex 5? FileToken: ?*anyopaque, FileTokenSize: u32, FoundElement: ?*u32, Buffer: ?[*:0]u16, BufferSize: u32, FoundSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugAdvanced4, StartElement: u32, ModAddr: u64, File: ?[*:0]const u16, Flags: u32, // TODO: what to do with BytesParamIndex 5? FileToken: ?*anyopaque, FileTokenSize: u32, FoundElement: ?*u32, Buffer: ?[*:0]u16, BufferSize: u32, FoundSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetSymbolInformationWide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugAdvanced4, Which: u32, Arg64: u64, Arg32: u32, // TODO: what to do with BytesParamIndex 4? Buffer: ?*anyopaque, BufferSize: u32, InfoSize: ?*u32, StringBuffer: ?[*:0]u16, StringBufferSize: u32, StringSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugAdvanced4, Which: u32, Arg64: u64, Arg32: u32, // TODO: what to do with BytesParamIndex 4? Buffer: ?*anyopaque, BufferSize: u32, InfoSize: ?*u32, StringBuffer: ?[*:0]u16, StringBufferSize: u32, StringSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetSymbolInformationWideEx: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugAdvanced4, Which: u32, Arg64: u64, Arg32: u32, // TODO: what to do with BytesParamIndex 4? Buffer: ?*anyopaque, BufferSize: u32, InfoSize: ?*u32, StringBuffer: ?[*:0]u16, StringBufferSize: u32, StringSize: ?*u32, pInfoEx: ?*SYMBOL_INFO_EX, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugAdvanced4, Which: u32, Arg64: u64, Arg32: u32, // TODO: what to do with BytesParamIndex 4? Buffer: ?*anyopaque, BufferSize: u32, InfoSize: ?*u32, StringBuffer: ?[*:0]u16, StringBufferSize: u32, StringSize: ?*u32, pInfoEx: ?*SYMBOL_INFO_EX, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugAdvanced4_GetThreadContext(self: *const T, Context: ?*anyopaque, ContextSize: u32) HRESULT { return @as(*const IDebugAdvanced4.VTable, @ptrCast(self.vtable)).GetThreadContext(@as(*const IDebugAdvanced4, @ptrCast(self)), Context, ContextSize); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugAdvanced4_SetThreadContext(self: *const T, Context: ?*anyopaque, ContextSize: u32) HRESULT { return @as(*const IDebugAdvanced4.VTable, @ptrCast(self.vtable)).SetThreadContext(@as(*const IDebugAdvanced4, @ptrCast(self)), Context, ContextSize); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugAdvanced4_Request(self: *const T, Request: u32, InBuffer: ?*anyopaque, InBufferSize: u32, OutBuffer: ?*anyopaque, OutBufferSize: u32, OutSize: ?*u32) HRESULT { return @as(*const IDebugAdvanced4.VTable, @ptrCast(self.vtable)).Request(@as(*const IDebugAdvanced4, @ptrCast(self)), Request, InBuffer, InBufferSize, OutBuffer, OutBufferSize, OutSize); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugAdvanced4_GetSourceFileInformation(self: *const T, Which: u32, SourceFile: ?PSTR, Arg64: u64, Arg32: u32, Buffer: ?*anyopaque, BufferSize: u32, InfoSize: ?*u32) HRESULT { return @as(*const IDebugAdvanced4.VTable, @ptrCast(self.vtable)).GetSourceFileInformation(@as(*const IDebugAdvanced4, @ptrCast(self)), Which, SourceFile, Arg64, Arg32, Buffer, BufferSize, InfoSize); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugAdvanced4_FindSourceFileAndToken(self: *const T, StartElement: u32, ModAddr: u64, File: ?[*:0]const u8, Flags: u32, FileToken: ?*anyopaque, FileTokenSize: u32, FoundElement: ?*u32, Buffer: ?[*:0]u8, BufferSize: u32, FoundSize: ?*u32) HRESULT { return @as(*const IDebugAdvanced4.VTable, @ptrCast(self.vtable)).FindSourceFileAndToken(@as(*const IDebugAdvanced4, @ptrCast(self)), StartElement, ModAddr, File, Flags, FileToken, FileTokenSize, FoundElement, Buffer, BufferSize, FoundSize); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugAdvanced4_GetSymbolInformation(self: *const T, Which: u32, Arg64: u64, Arg32: u32, Buffer: ?*anyopaque, BufferSize: u32, InfoSize: ?*u32, StringBuffer: ?[*:0]u8, StringBufferSize: u32, StringSize: ?*u32) HRESULT { return @as(*const IDebugAdvanced4.VTable, @ptrCast(self.vtable)).GetSymbolInformation(@as(*const IDebugAdvanced4, @ptrCast(self)), Which, Arg64, Arg32, Buffer, BufferSize, InfoSize, StringBuffer, StringBufferSize, StringSize); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugAdvanced4_GetSystemObjectInformation(self: *const T, Which: u32, Arg64: u64, Arg32: u32, Buffer: ?*anyopaque, BufferSize: u32, InfoSize: ?*u32) HRESULT { return @as(*const IDebugAdvanced4.VTable, @ptrCast(self.vtable)).GetSystemObjectInformation(@as(*const IDebugAdvanced4, @ptrCast(self)), Which, Arg64, Arg32, Buffer, BufferSize, InfoSize); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugAdvanced4_GetSourceFileInformationWide(self: *const T, Which: u32, SourceFile: ?PWSTR, Arg64: u64, Arg32: u32, Buffer: ?*anyopaque, BufferSize: u32, InfoSize: ?*u32) HRESULT { return @as(*const IDebugAdvanced4.VTable, @ptrCast(self.vtable)).GetSourceFileInformationWide(@as(*const IDebugAdvanced4, @ptrCast(self)), Which, SourceFile, Arg64, Arg32, Buffer, BufferSize, InfoSize); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugAdvanced4_FindSourceFileAndTokenWide(self: *const T, StartElement: u32, ModAddr: u64, File: ?[*:0]const u16, Flags: u32, FileToken: ?*anyopaque, FileTokenSize: u32, FoundElement: ?*u32, Buffer: ?[*:0]u16, BufferSize: u32, FoundSize: ?*u32) HRESULT { return @as(*const IDebugAdvanced4.VTable, @ptrCast(self.vtable)).FindSourceFileAndTokenWide(@as(*const IDebugAdvanced4, @ptrCast(self)), StartElement, ModAddr, File, Flags, FileToken, FileTokenSize, FoundElement, Buffer, BufferSize, FoundSize); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugAdvanced4_GetSymbolInformationWide(self: *const T, Which: u32, Arg64: u64, Arg32: u32, Buffer: ?*anyopaque, BufferSize: u32, InfoSize: ?*u32, StringBuffer: ?[*:0]u16, StringBufferSize: u32, StringSize: ?*u32) HRESULT { return @as(*const IDebugAdvanced4.VTable, @ptrCast(self.vtable)).GetSymbolInformationWide(@as(*const IDebugAdvanced4, @ptrCast(self)), Which, Arg64, Arg32, Buffer, BufferSize, InfoSize, StringBuffer, StringBufferSize, StringSize); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugAdvanced4_GetSymbolInformationWideEx(self: *const T, Which: u32, Arg64: u64, Arg32: u32, Buffer: ?*anyopaque, BufferSize: u32, InfoSize: ?*u32, StringBuffer: ?[*:0]u16, StringBufferSize: u32, StringSize: ?*u32, pInfoEx: ?*SYMBOL_INFO_EX) HRESULT { return @as(*const IDebugAdvanced4.VTable, @ptrCast(self.vtable)).GetSymbolInformationWideEx(@as(*const IDebugAdvanced4, @ptrCast(self)), Which, Arg64, Arg32, Buffer, BufferSize, InfoSize, StringBuffer, StringBufferSize, StringSize, pInfoEx); } }; } pub usingnamespace MethodMixin(@This()); }; pub const DEBUG_BREAKPOINT_PARAMETERS = extern struct { Offset: u64, Id: u32, BreakType: u32, ProcType: u32, Flags: u32, DataSize: u32, DataAccessType: u32, PassCount: u32, CurrentPassCount: u32, MatchThread: u32, CommandSize: u32, OffsetExpressionSize: u32, }; const IID_IDebugBreakpoint_Value = Guid.initString("5bd9d474-5975-423a-b88b-65a8e7110e65"); pub const IID_IDebugBreakpoint = &IID_IDebugBreakpoint_Value; pub const IDebugBreakpoint = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, GetId: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugBreakpoint, Id: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugBreakpoint, Id: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetType: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugBreakpoint, BreakType: ?*u32, ProcType: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugBreakpoint, BreakType: ?*u32, ProcType: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetAdder: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugBreakpoint, Adder: ?*?*IDebugClient, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugBreakpoint, Adder: ?*?*IDebugClient, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetFlags: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugBreakpoint, Flags: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugBreakpoint, Flags: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, AddFlags: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugBreakpoint, Flags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugBreakpoint, Flags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, RemoveFlags: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugBreakpoint, Flags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugBreakpoint, Flags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetFlags: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugBreakpoint, Flags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugBreakpoint, Flags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetOffset: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugBreakpoint, Offset: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugBreakpoint, Offset: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetOffset: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugBreakpoint, Offset: u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugBreakpoint, Offset: u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetDataParameters: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugBreakpoint, Size: ?*u32, AccessType: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugBreakpoint, Size: ?*u32, AccessType: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetDataParameters: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugBreakpoint, Size: u32, AccessType: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugBreakpoint, Size: u32, AccessType: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetPassCount: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugBreakpoint, Count: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugBreakpoint, Count: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetPassCount: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugBreakpoint, Count: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugBreakpoint, Count: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetCurrentPassCount: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugBreakpoint, Count: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugBreakpoint, Count: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetMatchThreadId: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugBreakpoint, Id: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugBreakpoint, Id: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetMatchThreadId: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugBreakpoint, Thread: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugBreakpoint, Thread: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetCommand: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugBreakpoint, Buffer: ?[*:0]u8, BufferSize: u32, CommandSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugBreakpoint, Buffer: ?[*:0]u8, BufferSize: u32, CommandSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetCommand: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugBreakpoint, Command: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugBreakpoint, Command: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetOffsetExpression: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugBreakpoint, Buffer: ?[*:0]u8, BufferSize: u32, ExpressionSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugBreakpoint, Buffer: ?[*:0]u8, BufferSize: u32, ExpressionSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetOffsetExpression: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugBreakpoint, Expression: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugBreakpoint, Expression: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetParameters: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugBreakpoint, Params: ?*DEBUG_BREAKPOINT_PARAMETERS, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugBreakpoint, Params: ?*DEBUG_BREAKPOINT_PARAMETERS, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugBreakpoint_GetId(self: *const T, Id: ?*u32) HRESULT { return @as(*const IDebugBreakpoint.VTable, @ptrCast(self.vtable)).GetId(@as(*const IDebugBreakpoint, @ptrCast(self)), Id); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugBreakpoint_GetType(self: *const T, BreakType: ?*u32, ProcType: ?*u32) HRESULT { return @as(*const IDebugBreakpoint.VTable, @ptrCast(self.vtable)).GetType(@as(*const IDebugBreakpoint, @ptrCast(self)), BreakType, ProcType); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugBreakpoint_GetAdder(self: *const T, Adder: ?*?*IDebugClient) HRESULT { return @as(*const IDebugBreakpoint.VTable, @ptrCast(self.vtable)).GetAdder(@as(*const IDebugBreakpoint, @ptrCast(self)), Adder); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugBreakpoint_GetFlags(self: *const T, Flags: ?*u32) HRESULT { return @as(*const IDebugBreakpoint.VTable, @ptrCast(self.vtable)).GetFlags(@as(*const IDebugBreakpoint, @ptrCast(self)), Flags); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugBreakpoint_AddFlags(self: *const T, Flags: u32) HRESULT { return @as(*const IDebugBreakpoint.VTable, @ptrCast(self.vtable)).AddFlags(@as(*const IDebugBreakpoint, @ptrCast(self)), Flags); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugBreakpoint_RemoveFlags(self: *const T, Flags: u32) HRESULT { return @as(*const IDebugBreakpoint.VTable, @ptrCast(self.vtable)).RemoveFlags(@as(*const IDebugBreakpoint, @ptrCast(self)), Flags); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugBreakpoint_SetFlags(self: *const T, Flags: u32) HRESULT { return @as(*const IDebugBreakpoint.VTable, @ptrCast(self.vtable)).SetFlags(@as(*const IDebugBreakpoint, @ptrCast(self)), Flags); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugBreakpoint_GetOffset(self: *const T, Offset: ?*u64) HRESULT { return @as(*const IDebugBreakpoint.VTable, @ptrCast(self.vtable)).GetOffset(@as(*const IDebugBreakpoint, @ptrCast(self)), Offset); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugBreakpoint_SetOffset(self: *const T, Offset: u64) HRESULT { return @as(*const IDebugBreakpoint.VTable, @ptrCast(self.vtable)).SetOffset(@as(*const IDebugBreakpoint, @ptrCast(self)), Offset); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugBreakpoint_GetDataParameters(self: *const T, Size: ?*u32, AccessType: ?*u32) HRESULT { return @as(*const IDebugBreakpoint.VTable, @ptrCast(self.vtable)).GetDataParameters(@as(*const IDebugBreakpoint, @ptrCast(self)), Size, AccessType); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugBreakpoint_SetDataParameters(self: *const T, Size: u32, AccessType: u32) HRESULT { return @as(*const IDebugBreakpoint.VTable, @ptrCast(self.vtable)).SetDataParameters(@as(*const IDebugBreakpoint, @ptrCast(self)), Size, AccessType); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugBreakpoint_GetPassCount(self: *const T, Count: ?*u32) HRESULT { return @as(*const IDebugBreakpoint.VTable, @ptrCast(self.vtable)).GetPassCount(@as(*const IDebugBreakpoint, @ptrCast(self)), Count); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugBreakpoint_SetPassCount(self: *const T, Count: u32) HRESULT { return @as(*const IDebugBreakpoint.VTable, @ptrCast(self.vtable)).SetPassCount(@as(*const IDebugBreakpoint, @ptrCast(self)), Count); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugBreakpoint_GetCurrentPassCount(self: *const T, Count: ?*u32) HRESULT { return @as(*const IDebugBreakpoint.VTable, @ptrCast(self.vtable)).GetCurrentPassCount(@as(*const IDebugBreakpoint, @ptrCast(self)), Count); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugBreakpoint_GetMatchThreadId(self: *const T, Id: ?*u32) HRESULT { return @as(*const IDebugBreakpoint.VTable, @ptrCast(self.vtable)).GetMatchThreadId(@as(*const IDebugBreakpoint, @ptrCast(self)), Id); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugBreakpoint_SetMatchThreadId(self: *const T, Thread: u32) HRESULT { return @as(*const IDebugBreakpoint.VTable, @ptrCast(self.vtable)).SetMatchThreadId(@as(*const IDebugBreakpoint, @ptrCast(self)), Thread); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugBreakpoint_GetCommand(self: *const T, Buffer: ?[*:0]u8, BufferSize: u32, CommandSize: ?*u32) HRESULT { return @as(*const IDebugBreakpoint.VTable, @ptrCast(self.vtable)).GetCommand(@as(*const IDebugBreakpoint, @ptrCast(self)), Buffer, BufferSize, CommandSize); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugBreakpoint_SetCommand(self: *const T, Command: ?[*:0]const u8) HRESULT { return @as(*const IDebugBreakpoint.VTable, @ptrCast(self.vtable)).SetCommand(@as(*const IDebugBreakpoint, @ptrCast(self)), Command); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugBreakpoint_GetOffsetExpression(self: *const T, Buffer: ?[*:0]u8, BufferSize: u32, ExpressionSize: ?*u32) HRESULT { return @as(*const IDebugBreakpoint.VTable, @ptrCast(self.vtable)).GetOffsetExpression(@as(*const IDebugBreakpoint, @ptrCast(self)), Buffer, BufferSize, ExpressionSize); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugBreakpoint_SetOffsetExpression(self: *const T, Expression: ?[*:0]const u8) HRESULT { return @as(*const IDebugBreakpoint.VTable, @ptrCast(self.vtable)).SetOffsetExpression(@as(*const IDebugBreakpoint, @ptrCast(self)), Expression); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugBreakpoint_GetParameters(self: *const T, Params: ?*DEBUG_BREAKPOINT_PARAMETERS) HRESULT { return @as(*const IDebugBreakpoint.VTable, @ptrCast(self.vtable)).GetParameters(@as(*const IDebugBreakpoint, @ptrCast(self)), Params); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IDebugBreakpoint2_Value = Guid.initString("1b278d20-79f2-426e-a3f9-c1ddf375d48e"); pub const IID_IDebugBreakpoint2 = &IID_IDebugBreakpoint2_Value; pub const IDebugBreakpoint2 = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, GetId: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugBreakpoint2, Id: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugBreakpoint2, Id: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetType: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugBreakpoint2, BreakType: ?*u32, ProcType: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugBreakpoint2, BreakType: ?*u32, ProcType: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetAdder: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugBreakpoint2, Adder: ?*?*IDebugClient, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugBreakpoint2, Adder: ?*?*IDebugClient, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetFlags: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugBreakpoint2, Flags: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugBreakpoint2, Flags: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, AddFlags: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugBreakpoint2, Flags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugBreakpoint2, Flags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, RemoveFlags: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugBreakpoint2, Flags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugBreakpoint2, Flags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetFlags: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugBreakpoint2, Flags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugBreakpoint2, Flags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetOffset: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugBreakpoint2, Offset: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugBreakpoint2, Offset: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetOffset: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugBreakpoint2, Offset: u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugBreakpoint2, Offset: u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetDataParameters: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugBreakpoint2, Size: ?*u32, AccessType: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugBreakpoint2, Size: ?*u32, AccessType: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetDataParameters: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugBreakpoint2, Size: u32, AccessType: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugBreakpoint2, Size: u32, AccessType: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetPassCount: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugBreakpoint2, Count: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugBreakpoint2, Count: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetPassCount: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugBreakpoint2, Count: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugBreakpoint2, Count: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetCurrentPassCount: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugBreakpoint2, Count: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugBreakpoint2, Count: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetMatchThreadId: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugBreakpoint2, Id: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugBreakpoint2, Id: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetMatchThreadId: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugBreakpoint2, Thread: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugBreakpoint2, Thread: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetCommand: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugBreakpoint2, Buffer: ?[*:0]u8, BufferSize: u32, CommandSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugBreakpoint2, Buffer: ?[*:0]u8, BufferSize: u32, CommandSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetCommand: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugBreakpoint2, Command: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugBreakpoint2, Command: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetOffsetExpression: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugBreakpoint2, Buffer: ?[*:0]u8, BufferSize: u32, ExpressionSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugBreakpoint2, Buffer: ?[*:0]u8, BufferSize: u32, ExpressionSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetOffsetExpression: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugBreakpoint2, Expression: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugBreakpoint2, Expression: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetParameters: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugBreakpoint2, Params: ?*DEBUG_BREAKPOINT_PARAMETERS, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugBreakpoint2, Params: ?*DEBUG_BREAKPOINT_PARAMETERS, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetCommandWide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugBreakpoint2, Buffer: ?[*:0]u16, BufferSize: u32, CommandSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugBreakpoint2, Buffer: ?[*:0]u16, BufferSize: u32, CommandSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetCommandWide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugBreakpoint2, Command: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugBreakpoint2, Command: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetOffsetExpressionWide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugBreakpoint2, Buffer: ?[*:0]u16, BufferSize: u32, ExpressionSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugBreakpoint2, Buffer: ?[*:0]u16, BufferSize: u32, ExpressionSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetOffsetExpressionWide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugBreakpoint2, Expression: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugBreakpoint2, Expression: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugBreakpoint2_GetId(self: *const T, Id: ?*u32) HRESULT { return @as(*const IDebugBreakpoint2.VTable, @ptrCast(self.vtable)).GetId(@as(*const IDebugBreakpoint2, @ptrCast(self)), Id); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugBreakpoint2_GetType(self: *const T, BreakType: ?*u32, ProcType: ?*u32) HRESULT { return @as(*const IDebugBreakpoint2.VTable, @ptrCast(self.vtable)).GetType(@as(*const IDebugBreakpoint2, @ptrCast(self)), BreakType, ProcType); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugBreakpoint2_GetAdder(self: *const T, Adder: ?*?*IDebugClient) HRESULT { return @as(*const IDebugBreakpoint2.VTable, @ptrCast(self.vtable)).GetAdder(@as(*const IDebugBreakpoint2, @ptrCast(self)), Adder); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugBreakpoint2_GetFlags(self: *const T, Flags: ?*u32) HRESULT { return @as(*const IDebugBreakpoint2.VTable, @ptrCast(self.vtable)).GetFlags(@as(*const IDebugBreakpoint2, @ptrCast(self)), Flags); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugBreakpoint2_AddFlags(self: *const T, Flags: u32) HRESULT { return @as(*const IDebugBreakpoint2.VTable, @ptrCast(self.vtable)).AddFlags(@as(*const IDebugBreakpoint2, @ptrCast(self)), Flags); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugBreakpoint2_RemoveFlags(self: *const T, Flags: u32) HRESULT { return @as(*const IDebugBreakpoint2.VTable, @ptrCast(self.vtable)).RemoveFlags(@as(*const IDebugBreakpoint2, @ptrCast(self)), Flags); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugBreakpoint2_SetFlags(self: *const T, Flags: u32) HRESULT { return @as(*const IDebugBreakpoint2.VTable, @ptrCast(self.vtable)).SetFlags(@as(*const IDebugBreakpoint2, @ptrCast(self)), Flags); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugBreakpoint2_GetOffset(self: *const T, Offset: ?*u64) HRESULT { return @as(*const IDebugBreakpoint2.VTable, @ptrCast(self.vtable)).GetOffset(@as(*const IDebugBreakpoint2, @ptrCast(self)), Offset); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugBreakpoint2_SetOffset(self: *const T, Offset: u64) HRESULT { return @as(*const IDebugBreakpoint2.VTable, @ptrCast(self.vtable)).SetOffset(@as(*const IDebugBreakpoint2, @ptrCast(self)), Offset); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugBreakpoint2_GetDataParameters(self: *const T, Size: ?*u32, AccessType: ?*u32) HRESULT { return @as(*const IDebugBreakpoint2.VTable, @ptrCast(self.vtable)).GetDataParameters(@as(*const IDebugBreakpoint2, @ptrCast(self)), Size, AccessType); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugBreakpoint2_SetDataParameters(self: *const T, Size: u32, AccessType: u32) HRESULT { return @as(*const IDebugBreakpoint2.VTable, @ptrCast(self.vtable)).SetDataParameters(@as(*const IDebugBreakpoint2, @ptrCast(self)), Size, AccessType); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugBreakpoint2_GetPassCount(self: *const T, Count: ?*u32) HRESULT { return @as(*const IDebugBreakpoint2.VTable, @ptrCast(self.vtable)).GetPassCount(@as(*const IDebugBreakpoint2, @ptrCast(self)), Count); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugBreakpoint2_SetPassCount(self: *const T, Count: u32) HRESULT { return @as(*const IDebugBreakpoint2.VTable, @ptrCast(self.vtable)).SetPassCount(@as(*const IDebugBreakpoint2, @ptrCast(self)), Count); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugBreakpoint2_GetCurrentPassCount(self: *const T, Count: ?*u32) HRESULT { return @as(*const IDebugBreakpoint2.VTable, @ptrCast(self.vtable)).GetCurrentPassCount(@as(*const IDebugBreakpoint2, @ptrCast(self)), Count); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugBreakpoint2_GetMatchThreadId(self: *const T, Id: ?*u32) HRESULT { return @as(*const IDebugBreakpoint2.VTable, @ptrCast(self.vtable)).GetMatchThreadId(@as(*const IDebugBreakpoint2, @ptrCast(self)), Id); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugBreakpoint2_SetMatchThreadId(self: *const T, Thread: u32) HRESULT { return @as(*const IDebugBreakpoint2.VTable, @ptrCast(self.vtable)).SetMatchThreadId(@as(*const IDebugBreakpoint2, @ptrCast(self)), Thread); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugBreakpoint2_GetCommand(self: *const T, Buffer: ?[*:0]u8, BufferSize: u32, CommandSize: ?*u32) HRESULT { return @as(*const IDebugBreakpoint2.VTable, @ptrCast(self.vtable)).GetCommand(@as(*const IDebugBreakpoint2, @ptrCast(self)), Buffer, BufferSize, CommandSize); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugBreakpoint2_SetCommand(self: *const T, Command: ?[*:0]const u8) HRESULT { return @as(*const IDebugBreakpoint2.VTable, @ptrCast(self.vtable)).SetCommand(@as(*const IDebugBreakpoint2, @ptrCast(self)), Command); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugBreakpoint2_GetOffsetExpression(self: *const T, Buffer: ?[*:0]u8, BufferSize: u32, ExpressionSize: ?*u32) HRESULT { return @as(*const IDebugBreakpoint2.VTable, @ptrCast(self.vtable)).GetOffsetExpression(@as(*const IDebugBreakpoint2, @ptrCast(self)), Buffer, BufferSize, ExpressionSize); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugBreakpoint2_SetOffsetExpression(self: *const T, Expression: ?[*:0]const u8) HRESULT { return @as(*const IDebugBreakpoint2.VTable, @ptrCast(self.vtable)).SetOffsetExpression(@as(*const IDebugBreakpoint2, @ptrCast(self)), Expression); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugBreakpoint2_GetParameters(self: *const T, Params: ?*DEBUG_BREAKPOINT_PARAMETERS) HRESULT { return @as(*const IDebugBreakpoint2.VTable, @ptrCast(self.vtable)).GetParameters(@as(*const IDebugBreakpoint2, @ptrCast(self)), Params); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugBreakpoint2_GetCommandWide(self: *const T, Buffer: ?[*:0]u16, BufferSize: u32, CommandSize: ?*u32) HRESULT { return @as(*const IDebugBreakpoint2.VTable, @ptrCast(self.vtable)).GetCommandWide(@as(*const IDebugBreakpoint2, @ptrCast(self)), Buffer, BufferSize, CommandSize); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugBreakpoint2_SetCommandWide(self: *const T, Command: ?[*:0]const u16) HRESULT { return @as(*const IDebugBreakpoint2.VTable, @ptrCast(self.vtable)).SetCommandWide(@as(*const IDebugBreakpoint2, @ptrCast(self)), Command); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugBreakpoint2_GetOffsetExpressionWide(self: *const T, Buffer: ?[*:0]u16, BufferSize: u32, ExpressionSize: ?*u32) HRESULT { return @as(*const IDebugBreakpoint2.VTable, @ptrCast(self.vtable)).GetOffsetExpressionWide(@as(*const IDebugBreakpoint2, @ptrCast(self)), Buffer, BufferSize, ExpressionSize); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugBreakpoint2_SetOffsetExpressionWide(self: *const T, Expression: ?[*:0]const u16) HRESULT { return @as(*const IDebugBreakpoint2.VTable, @ptrCast(self.vtable)).SetOffsetExpressionWide(@as(*const IDebugBreakpoint2, @ptrCast(self)), Expression); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IDebugBreakpoint3_Value = Guid.initString("38f5c249-b448-43bb-9835-579d4ec02249"); pub const IID_IDebugBreakpoint3 = &IID_IDebugBreakpoint3_Value; pub const IDebugBreakpoint3 = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, GetId: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugBreakpoint3, Id: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugBreakpoint3, Id: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetType: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugBreakpoint3, BreakType: ?*u32, ProcType: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugBreakpoint3, BreakType: ?*u32, ProcType: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetAdder: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugBreakpoint3, Adder: ?*?*IDebugClient, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugBreakpoint3, Adder: ?*?*IDebugClient, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetFlags: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugBreakpoint3, Flags: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugBreakpoint3, Flags: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, AddFlags: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugBreakpoint3, Flags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugBreakpoint3, Flags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, RemoveFlags: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugBreakpoint3, Flags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugBreakpoint3, Flags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetFlags: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugBreakpoint3, Flags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugBreakpoint3, Flags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetOffset: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugBreakpoint3, Offset: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugBreakpoint3, Offset: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetOffset: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugBreakpoint3, Offset: u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugBreakpoint3, Offset: u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetDataParameters: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugBreakpoint3, Size: ?*u32, AccessType: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugBreakpoint3, Size: ?*u32, AccessType: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetDataParameters: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugBreakpoint3, Size: u32, AccessType: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugBreakpoint3, Size: u32, AccessType: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetPassCount: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugBreakpoint3, Count: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugBreakpoint3, Count: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetPassCount: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugBreakpoint3, Count: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugBreakpoint3, Count: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetCurrentPassCount: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugBreakpoint3, Count: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugBreakpoint3, Count: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetMatchThreadId: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugBreakpoint3, Id: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugBreakpoint3, Id: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetMatchThreadId: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugBreakpoint3, Thread: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugBreakpoint3, Thread: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetCommand: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugBreakpoint3, Buffer: ?[*:0]u8, BufferSize: u32, CommandSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugBreakpoint3, Buffer: ?[*:0]u8, BufferSize: u32, CommandSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetCommand: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugBreakpoint3, Command: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugBreakpoint3, Command: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetOffsetExpression: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugBreakpoint3, Buffer: ?[*:0]u8, BufferSize: u32, ExpressionSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugBreakpoint3, Buffer: ?[*:0]u8, BufferSize: u32, ExpressionSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetOffsetExpression: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugBreakpoint3, Expression: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugBreakpoint3, Expression: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetParameters: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugBreakpoint3, Params: ?*DEBUG_BREAKPOINT_PARAMETERS, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugBreakpoint3, Params: ?*DEBUG_BREAKPOINT_PARAMETERS, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetCommandWide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugBreakpoint3, Buffer: ?[*:0]u16, BufferSize: u32, CommandSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugBreakpoint3, Buffer: ?[*:0]u16, BufferSize: u32, CommandSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetCommandWide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugBreakpoint3, Command: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugBreakpoint3, Command: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetOffsetExpressionWide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugBreakpoint3, Buffer: ?[*:0]u16, BufferSize: u32, ExpressionSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugBreakpoint3, Buffer: ?[*:0]u16, BufferSize: u32, ExpressionSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetOffsetExpressionWide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugBreakpoint3, Expression: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugBreakpoint3, Expression: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetGuid: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugBreakpoint3, Guid: ?*Guid, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugBreakpoint3, Guid: ?*Guid, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugBreakpoint3_GetId(self: *const T, Id: ?*u32) HRESULT { return @as(*const IDebugBreakpoint3.VTable, @ptrCast(self.vtable)).GetId(@as(*const IDebugBreakpoint3, @ptrCast(self)), Id); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugBreakpoint3_GetType(self: *const T, BreakType: ?*u32, ProcType: ?*u32) HRESULT { return @as(*const IDebugBreakpoint3.VTable, @ptrCast(self.vtable)).GetType(@as(*const IDebugBreakpoint3, @ptrCast(self)), BreakType, ProcType); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugBreakpoint3_GetAdder(self: *const T, Adder: ?*?*IDebugClient) HRESULT { return @as(*const IDebugBreakpoint3.VTable, @ptrCast(self.vtable)).GetAdder(@as(*const IDebugBreakpoint3, @ptrCast(self)), Adder); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugBreakpoint3_GetFlags(self: *const T, Flags: ?*u32) HRESULT { return @as(*const IDebugBreakpoint3.VTable, @ptrCast(self.vtable)).GetFlags(@as(*const IDebugBreakpoint3, @ptrCast(self)), Flags); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugBreakpoint3_AddFlags(self: *const T, Flags: u32) HRESULT { return @as(*const IDebugBreakpoint3.VTable, @ptrCast(self.vtable)).AddFlags(@as(*const IDebugBreakpoint3, @ptrCast(self)), Flags); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugBreakpoint3_RemoveFlags(self: *const T, Flags: u32) HRESULT { return @as(*const IDebugBreakpoint3.VTable, @ptrCast(self.vtable)).RemoveFlags(@as(*const IDebugBreakpoint3, @ptrCast(self)), Flags); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugBreakpoint3_SetFlags(self: *const T, Flags: u32) HRESULT { return @as(*const IDebugBreakpoint3.VTable, @ptrCast(self.vtable)).SetFlags(@as(*const IDebugBreakpoint3, @ptrCast(self)), Flags); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugBreakpoint3_GetOffset(self: *const T, Offset: ?*u64) HRESULT { return @as(*const IDebugBreakpoint3.VTable, @ptrCast(self.vtable)).GetOffset(@as(*const IDebugBreakpoint3, @ptrCast(self)), Offset); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugBreakpoint3_SetOffset(self: *const T, Offset: u64) HRESULT { return @as(*const IDebugBreakpoint3.VTable, @ptrCast(self.vtable)).SetOffset(@as(*const IDebugBreakpoint3, @ptrCast(self)), Offset); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugBreakpoint3_GetDataParameters(self: *const T, Size: ?*u32, AccessType: ?*u32) HRESULT { return @as(*const IDebugBreakpoint3.VTable, @ptrCast(self.vtable)).GetDataParameters(@as(*const IDebugBreakpoint3, @ptrCast(self)), Size, AccessType); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugBreakpoint3_SetDataParameters(self: *const T, Size: u32, AccessType: u32) HRESULT { return @as(*const IDebugBreakpoint3.VTable, @ptrCast(self.vtable)).SetDataParameters(@as(*const IDebugBreakpoint3, @ptrCast(self)), Size, AccessType); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugBreakpoint3_GetPassCount(self: *const T, Count: ?*u32) HRESULT { return @as(*const IDebugBreakpoint3.VTable, @ptrCast(self.vtable)).GetPassCount(@as(*const IDebugBreakpoint3, @ptrCast(self)), Count); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugBreakpoint3_SetPassCount(self: *const T, Count: u32) HRESULT { return @as(*const IDebugBreakpoint3.VTable, @ptrCast(self.vtable)).SetPassCount(@as(*const IDebugBreakpoint3, @ptrCast(self)), Count); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugBreakpoint3_GetCurrentPassCount(self: *const T, Count: ?*u32) HRESULT { return @as(*const IDebugBreakpoint3.VTable, @ptrCast(self.vtable)).GetCurrentPassCount(@as(*const IDebugBreakpoint3, @ptrCast(self)), Count); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugBreakpoint3_GetMatchThreadId(self: *const T, Id: ?*u32) HRESULT { return @as(*const IDebugBreakpoint3.VTable, @ptrCast(self.vtable)).GetMatchThreadId(@as(*const IDebugBreakpoint3, @ptrCast(self)), Id); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugBreakpoint3_SetMatchThreadId(self: *const T, Thread: u32) HRESULT { return @as(*const IDebugBreakpoint3.VTable, @ptrCast(self.vtable)).SetMatchThreadId(@as(*const IDebugBreakpoint3, @ptrCast(self)), Thread); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugBreakpoint3_GetCommand(self: *const T, Buffer: ?[*:0]u8, BufferSize: u32, CommandSize: ?*u32) HRESULT { return @as(*const IDebugBreakpoint3.VTable, @ptrCast(self.vtable)).GetCommand(@as(*const IDebugBreakpoint3, @ptrCast(self)), Buffer, BufferSize, CommandSize); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugBreakpoint3_SetCommand(self: *const T, Command: ?[*:0]const u8) HRESULT { return @as(*const IDebugBreakpoint3.VTable, @ptrCast(self.vtable)).SetCommand(@as(*const IDebugBreakpoint3, @ptrCast(self)), Command); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugBreakpoint3_GetOffsetExpression(self: *const T, Buffer: ?[*:0]u8, BufferSize: u32, ExpressionSize: ?*u32) HRESULT { return @as(*const IDebugBreakpoint3.VTable, @ptrCast(self.vtable)).GetOffsetExpression(@as(*const IDebugBreakpoint3, @ptrCast(self)), Buffer, BufferSize, ExpressionSize); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugBreakpoint3_SetOffsetExpression(self: *const T, Expression: ?[*:0]const u8) HRESULT { return @as(*const IDebugBreakpoint3.VTable, @ptrCast(self.vtable)).SetOffsetExpression(@as(*const IDebugBreakpoint3, @ptrCast(self)), Expression); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugBreakpoint3_GetParameters(self: *const T, Params: ?*DEBUG_BREAKPOINT_PARAMETERS) HRESULT { return @as(*const IDebugBreakpoint3.VTable, @ptrCast(self.vtable)).GetParameters(@as(*const IDebugBreakpoint3, @ptrCast(self)), Params); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugBreakpoint3_GetCommandWide(self: *const T, Buffer: ?[*:0]u16, BufferSize: u32, CommandSize: ?*u32) HRESULT { return @as(*const IDebugBreakpoint3.VTable, @ptrCast(self.vtable)).GetCommandWide(@as(*const IDebugBreakpoint3, @ptrCast(self)), Buffer, BufferSize, CommandSize); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugBreakpoint3_SetCommandWide(self: *const T, Command: ?[*:0]const u16) HRESULT { return @as(*const IDebugBreakpoint3.VTable, @ptrCast(self.vtable)).SetCommandWide(@as(*const IDebugBreakpoint3, @ptrCast(self)), Command); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugBreakpoint3_GetOffsetExpressionWide(self: *const T, Buffer: ?[*:0]u16, BufferSize: u32, ExpressionSize: ?*u32) HRESULT { return @as(*const IDebugBreakpoint3.VTable, @ptrCast(self.vtable)).GetOffsetExpressionWide(@as(*const IDebugBreakpoint3, @ptrCast(self)), Buffer, BufferSize, ExpressionSize); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugBreakpoint3_SetOffsetExpressionWide(self: *const T, Expression: ?[*:0]const u16) HRESULT { return @as(*const IDebugBreakpoint3.VTable, @ptrCast(self.vtable)).SetOffsetExpressionWide(@as(*const IDebugBreakpoint3, @ptrCast(self)), Expression); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugBreakpoint3_GetGuid(self: *const T, _param_Guid: ?*Guid) HRESULT { return @as(*const IDebugBreakpoint3.VTable, @ptrCast(self.vtable)).GetGuid(@as(*const IDebugBreakpoint3, @ptrCast(self)), _param_Guid); } }; } pub usingnamespace MethodMixin(@This()); }; pub const DEBUG_CREATE_PROCESS_OPTIONS = extern struct { CreateFlags: u32, EngCreateFlags: u32, VerifierFlags: u32, Reserved: u32, }; pub const DEBUG_CLIENT_CONTEXT = extern struct { cbSize: u32, eClient: u32, }; const IID_IDebugClient_Value = Guid.initString("27fe5639-8407-4f47-8364-ee118fb08ac8"); pub const IID_IDebugClient = &IID_IDebugClient_Value; pub const IDebugClient = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, AttachKernel: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient, Flags: u32, ConnectOptions: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient, Flags: u32, ConnectOptions: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetKernelConnectionOptions: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient, Buffer: ?[*:0]u8, BufferSize: u32, OptionsSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient, Buffer: ?[*:0]u8, BufferSize: u32, OptionsSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetKernelConnectionOptions: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient, Options: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient, Options: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, StartProcessServer: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient, Flags: u32, Options: ?[*:0]const u8, Reserved: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient, Flags: u32, Options: ?[*:0]const u8, Reserved: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, ConnectProcessServer: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient, RemoteOptions: ?[*:0]const u8, Server: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient, RemoteOptions: ?[*:0]const u8, Server: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, DisconnectProcessServer: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient, Server: u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient, Server: u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetRunningProcessSystemIds: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient, Server: u64, Ids: ?[*]u32, Count: u32, ActualCount: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient, Server: u64, Ids: ?[*]u32, Count: u32, ActualCount: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetRunningProcessSystemIdByExecutableName: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient, Server: u64, ExeName: ?[*:0]const u8, Flags: u32, Id: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient, Server: u64, ExeName: ?[*:0]const u8, Flags: u32, Id: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetRunningProcessDescription: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient, Server: u64, SystemId: u32, Flags: u32, ExeName: ?[*:0]u8, ExeNameSize: u32, ActualExeNameSize: ?*u32, Description: ?[*:0]u8, DescriptionSize: u32, ActualDescriptionSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient, Server: u64, SystemId: u32, Flags: u32, ExeName: ?[*:0]u8, ExeNameSize: u32, ActualExeNameSize: ?*u32, Description: ?[*:0]u8, DescriptionSize: u32, ActualDescriptionSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, AttachProcess: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient, Server: u64, ProcessId: u32, AttachFlags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient, Server: u64, ProcessId: u32, AttachFlags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, CreateProcessA: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient, Server: u64, CommandLine: ?PSTR, CreateFlags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient, Server: u64, CommandLine: ?PSTR, CreateFlags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, CreateProcessAndAttach: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient, Server: u64, CommandLine: ?PSTR, CreateFlags: u32, ProcessId: u32, AttachFlags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient, Server: u64, CommandLine: ?PSTR, CreateFlags: u32, ProcessId: u32, AttachFlags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetProcessOptions: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient, Options: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient, Options: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, AddProcessOptions: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient, Options: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient, Options: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, RemoveProcessOptions: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient, Options: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient, Options: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetProcessOptions: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient, Options: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient, Options: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, OpenDumpFile: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient, DumpFile: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient, DumpFile: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, WriteDumpFile: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient, DumpFile: ?[*:0]const u8, Qualifier: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient, DumpFile: ?[*:0]const u8, Qualifier: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, ConnectSession: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient, Flags: u32, HistoryLimit: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient, Flags: u32, HistoryLimit: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, StartServer: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient, Options: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient, Options: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, OutputServers: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient, OutputControl: u32, Machine: ?[*:0]const u8, Flags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient, OutputControl: u32, Machine: ?[*:0]const u8, Flags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, TerminateProcesses: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, DetachProcesses: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, EndSession: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient, Flags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient, Flags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetExitCode: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient, Code: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient, Code: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, DispatchCallbacks: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient, Timeout: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient, Timeout: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, ExitDispatch: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient, Client: ?*IDebugClient, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient, Client: ?*IDebugClient, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, CreateClient: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient, Client: ?*?*IDebugClient, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient, Client: ?*?*IDebugClient, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetInputCallbacks: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient, Callbacks: ?*?*IDebugInputCallbacks, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient, Callbacks: ?*?*IDebugInputCallbacks, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetInputCallbacks: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient, Callbacks: ?*IDebugInputCallbacks, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient, Callbacks: ?*IDebugInputCallbacks, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetOutputCallbacks: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient, Callbacks: ?*?*IDebugOutputCallbacks, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient, Callbacks: ?*?*IDebugOutputCallbacks, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetOutputCallbacks: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient, Callbacks: ?*IDebugOutputCallbacks, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient, Callbacks: ?*IDebugOutputCallbacks, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetOutputMask: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient, Mask: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient, Mask: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetOutputMask: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient, Mask: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient, Mask: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetOtherOutputMask: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient, Client: ?*IDebugClient, Mask: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient, Client: ?*IDebugClient, Mask: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetOtherOutputMask: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient, Client: ?*IDebugClient, Mask: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient, Client: ?*IDebugClient, Mask: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetOutputWidth: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient, Columns: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient, Columns: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetOutputWidth: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient, Columns: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient, Columns: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetOutputLinePrefix: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient, Buffer: ?[*:0]u8, BufferSize: u32, PrefixSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient, Buffer: ?[*:0]u8, BufferSize: u32, PrefixSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetOutputLinePrefix: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient, Prefix: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient, Prefix: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetIdentity: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient, Buffer: ?[*:0]u8, BufferSize: u32, IdentitySize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient, Buffer: ?[*:0]u8, BufferSize: u32, IdentitySize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, OutputIdentity: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient, OutputControl: u32, Flags: u32, Format: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient, OutputControl: u32, Flags: u32, Format: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetEventCallbacks: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient, Callbacks: ?*?*IDebugEventCallbacks, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient, Callbacks: ?*?*IDebugEventCallbacks, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetEventCallbacks: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient, Callbacks: ?*IDebugEventCallbacks, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient, Callbacks: ?*IDebugEventCallbacks, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, FlushCallbacks: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient_AttachKernel(self: *const T, Flags: u32, ConnectOptions: ?[*:0]const u8) HRESULT { return @as(*const IDebugClient.VTable, @ptrCast(self.vtable)).AttachKernel(@as(*const IDebugClient, @ptrCast(self)), Flags, ConnectOptions); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient_GetKernelConnectionOptions(self: *const T, Buffer: ?[*:0]u8, BufferSize: u32, OptionsSize: ?*u32) HRESULT { return @as(*const IDebugClient.VTable, @ptrCast(self.vtable)).GetKernelConnectionOptions(@as(*const IDebugClient, @ptrCast(self)), Buffer, BufferSize, OptionsSize); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient_SetKernelConnectionOptions(self: *const T, Options: ?[*:0]const u8) HRESULT { return @as(*const IDebugClient.VTable, @ptrCast(self.vtable)).SetKernelConnectionOptions(@as(*const IDebugClient, @ptrCast(self)), Options); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient_StartProcessServer(self: *const T, Flags: u32, Options: ?[*:0]const u8, Reserved: ?*anyopaque) HRESULT { return @as(*const IDebugClient.VTable, @ptrCast(self.vtable)).StartProcessServer(@as(*const IDebugClient, @ptrCast(self)), Flags, Options, Reserved); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient_ConnectProcessServer(self: *const T, RemoteOptions: ?[*:0]const u8, Server: ?*u64) HRESULT { return @as(*const IDebugClient.VTable, @ptrCast(self.vtable)).ConnectProcessServer(@as(*const IDebugClient, @ptrCast(self)), RemoteOptions, Server); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient_DisconnectProcessServer(self: *const T, Server: u64) HRESULT { return @as(*const IDebugClient.VTable, @ptrCast(self.vtable)).DisconnectProcessServer(@as(*const IDebugClient, @ptrCast(self)), Server); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient_GetRunningProcessSystemIds(self: *const T, Server: u64, Ids: ?[*]u32, Count: u32, ActualCount: ?*u32) HRESULT { return @as(*const IDebugClient.VTable, @ptrCast(self.vtable)).GetRunningProcessSystemIds(@as(*const IDebugClient, @ptrCast(self)), Server, Ids, Count, ActualCount); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient_GetRunningProcessSystemIdByExecutableName(self: *const T, Server: u64, ExeName: ?[*:0]const u8, Flags: u32, Id: ?*u32) HRESULT { return @as(*const IDebugClient.VTable, @ptrCast(self.vtable)).GetRunningProcessSystemIdByExecutableName(@as(*const IDebugClient, @ptrCast(self)), Server, ExeName, Flags, Id); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient_GetRunningProcessDescription(self: *const T, Server: u64, SystemId: u32, Flags: u32, ExeName: ?[*:0]u8, ExeNameSize: u32, ActualExeNameSize: ?*u32, Description: ?[*:0]u8, DescriptionSize: u32, ActualDescriptionSize: ?*u32) HRESULT { return @as(*const IDebugClient.VTable, @ptrCast(self.vtable)).GetRunningProcessDescription(@as(*const IDebugClient, @ptrCast(self)), Server, SystemId, Flags, ExeName, ExeNameSize, ActualExeNameSize, Description, DescriptionSize, ActualDescriptionSize); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient_AttachProcess(self: *const T, Server: u64, ProcessId: u32, AttachFlags: u32) HRESULT { return @as(*const IDebugClient.VTable, @ptrCast(self.vtable)).AttachProcess(@as(*const IDebugClient, @ptrCast(self)), Server, ProcessId, AttachFlags); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient_CreateProcessA(self: *const T, Server: u64, CommandLine: ?PSTR, CreateFlags: u32) HRESULT { return @as(*const IDebugClient.VTable, @ptrCast(self.vtable)).CreateProcessA(@as(*const IDebugClient, @ptrCast(self)), Server, CommandLine, CreateFlags); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient_CreateProcessAndAttach(self: *const T, Server: u64, CommandLine: ?PSTR, CreateFlags: u32, ProcessId: u32, AttachFlags: u32) HRESULT { return @as(*const IDebugClient.VTable, @ptrCast(self.vtable)).CreateProcessAndAttach(@as(*const IDebugClient, @ptrCast(self)), Server, CommandLine, CreateFlags, ProcessId, AttachFlags); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient_GetProcessOptions(self: *const T, Options: ?*u32) HRESULT { return @as(*const IDebugClient.VTable, @ptrCast(self.vtable)).GetProcessOptions(@as(*const IDebugClient, @ptrCast(self)), Options); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient_AddProcessOptions(self: *const T, Options: u32) HRESULT { return @as(*const IDebugClient.VTable, @ptrCast(self.vtable)).AddProcessOptions(@as(*const IDebugClient, @ptrCast(self)), Options); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient_RemoveProcessOptions(self: *const T, Options: u32) HRESULT { return @as(*const IDebugClient.VTable, @ptrCast(self.vtable)).RemoveProcessOptions(@as(*const IDebugClient, @ptrCast(self)), Options); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient_SetProcessOptions(self: *const T, Options: u32) HRESULT { return @as(*const IDebugClient.VTable, @ptrCast(self.vtable)).SetProcessOptions(@as(*const IDebugClient, @ptrCast(self)), Options); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient_OpenDumpFile(self: *const T, DumpFile: ?[*:0]const u8) HRESULT { return @as(*const IDebugClient.VTable, @ptrCast(self.vtable)).OpenDumpFile(@as(*const IDebugClient, @ptrCast(self)), DumpFile); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient_WriteDumpFile(self: *const T, DumpFile: ?[*:0]const u8, Qualifier: u32) HRESULT { return @as(*const IDebugClient.VTable, @ptrCast(self.vtable)).WriteDumpFile(@as(*const IDebugClient, @ptrCast(self)), DumpFile, Qualifier); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient_ConnectSession(self: *const T, Flags: u32, HistoryLimit: u32) HRESULT { return @as(*const IDebugClient.VTable, @ptrCast(self.vtable)).ConnectSession(@as(*const IDebugClient, @ptrCast(self)), Flags, HistoryLimit); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient_StartServer(self: *const T, Options: ?[*:0]const u8) HRESULT { return @as(*const IDebugClient.VTable, @ptrCast(self.vtable)).StartServer(@as(*const IDebugClient, @ptrCast(self)), Options); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient_OutputServers(self: *const T, OutputControl: u32, Machine: ?[*:0]const u8, Flags: u32) HRESULT { return @as(*const IDebugClient.VTable, @ptrCast(self.vtable)).OutputServers(@as(*const IDebugClient, @ptrCast(self)), OutputControl, Machine, Flags); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient_TerminateProcesses(self: *const T) HRESULT { return @as(*const IDebugClient.VTable, @ptrCast(self.vtable)).TerminateProcesses(@as(*const IDebugClient, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient_DetachProcesses(self: *const T) HRESULT { return @as(*const IDebugClient.VTable, @ptrCast(self.vtable)).DetachProcesses(@as(*const IDebugClient, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient_EndSession(self: *const T, Flags: u32) HRESULT { return @as(*const IDebugClient.VTable, @ptrCast(self.vtable)).EndSession(@as(*const IDebugClient, @ptrCast(self)), Flags); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient_GetExitCode(self: *const T, Code: ?*u32) HRESULT { return @as(*const IDebugClient.VTable, @ptrCast(self.vtable)).GetExitCode(@as(*const IDebugClient, @ptrCast(self)), Code); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient_DispatchCallbacks(self: *const T, Timeout: u32) HRESULT { return @as(*const IDebugClient.VTable, @ptrCast(self.vtable)).DispatchCallbacks(@as(*const IDebugClient, @ptrCast(self)), Timeout); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient_ExitDispatch(self: *const T, Client: ?*IDebugClient) HRESULT { return @as(*const IDebugClient.VTable, @ptrCast(self.vtable)).ExitDispatch(@as(*const IDebugClient, @ptrCast(self)), Client); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient_CreateClient(self: *const T, Client: ?*?*IDebugClient) HRESULT { return @as(*const IDebugClient.VTable, @ptrCast(self.vtable)).CreateClient(@as(*const IDebugClient, @ptrCast(self)), Client); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient_GetInputCallbacks(self: *const T, Callbacks: ?*?*IDebugInputCallbacks) HRESULT { return @as(*const IDebugClient.VTable, @ptrCast(self.vtable)).GetInputCallbacks(@as(*const IDebugClient, @ptrCast(self)), Callbacks); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient_SetInputCallbacks(self: *const T, Callbacks: ?*IDebugInputCallbacks) HRESULT { return @as(*const IDebugClient.VTable, @ptrCast(self.vtable)).SetInputCallbacks(@as(*const IDebugClient, @ptrCast(self)), Callbacks); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient_GetOutputCallbacks(self: *const T, Callbacks: ?*?*IDebugOutputCallbacks) HRESULT { return @as(*const IDebugClient.VTable, @ptrCast(self.vtable)).GetOutputCallbacks(@as(*const IDebugClient, @ptrCast(self)), Callbacks); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient_SetOutputCallbacks(self: *const T, Callbacks: ?*IDebugOutputCallbacks) HRESULT { return @as(*const IDebugClient.VTable, @ptrCast(self.vtable)).SetOutputCallbacks(@as(*const IDebugClient, @ptrCast(self)), Callbacks); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient_GetOutputMask(self: *const T, Mask: ?*u32) HRESULT { return @as(*const IDebugClient.VTable, @ptrCast(self.vtable)).GetOutputMask(@as(*const IDebugClient, @ptrCast(self)), Mask); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient_SetOutputMask(self: *const T, Mask: u32) HRESULT { return @as(*const IDebugClient.VTable, @ptrCast(self.vtable)).SetOutputMask(@as(*const IDebugClient, @ptrCast(self)), Mask); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient_GetOtherOutputMask(self: *const T, Client: ?*IDebugClient, Mask: ?*u32) HRESULT { return @as(*const IDebugClient.VTable, @ptrCast(self.vtable)).GetOtherOutputMask(@as(*const IDebugClient, @ptrCast(self)), Client, Mask); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient_SetOtherOutputMask(self: *const T, Client: ?*IDebugClient, Mask: u32) HRESULT { return @as(*const IDebugClient.VTable, @ptrCast(self.vtable)).SetOtherOutputMask(@as(*const IDebugClient, @ptrCast(self)), Client, Mask); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient_GetOutputWidth(self: *const T, Columns: ?*u32) HRESULT { return @as(*const IDebugClient.VTable, @ptrCast(self.vtable)).GetOutputWidth(@as(*const IDebugClient, @ptrCast(self)), Columns); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient_SetOutputWidth(self: *const T, Columns: u32) HRESULT { return @as(*const IDebugClient.VTable, @ptrCast(self.vtable)).SetOutputWidth(@as(*const IDebugClient, @ptrCast(self)), Columns); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient_GetOutputLinePrefix(self: *const T, Buffer: ?[*:0]u8, BufferSize: u32, PrefixSize: ?*u32) HRESULT { return @as(*const IDebugClient.VTable, @ptrCast(self.vtable)).GetOutputLinePrefix(@as(*const IDebugClient, @ptrCast(self)), Buffer, BufferSize, PrefixSize); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient_SetOutputLinePrefix(self: *const T, Prefix: ?[*:0]const u8) HRESULT { return @as(*const IDebugClient.VTable, @ptrCast(self.vtable)).SetOutputLinePrefix(@as(*const IDebugClient, @ptrCast(self)), Prefix); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient_GetIdentity(self: *const T, Buffer: ?[*:0]u8, BufferSize: u32, IdentitySize: ?*u32) HRESULT { return @as(*const IDebugClient.VTable, @ptrCast(self.vtable)).GetIdentity(@as(*const IDebugClient, @ptrCast(self)), Buffer, BufferSize, IdentitySize); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient_OutputIdentity(self: *const T, OutputControl: u32, Flags: u32, Format: ?[*:0]const u8) HRESULT { return @as(*const IDebugClient.VTable, @ptrCast(self.vtable)).OutputIdentity(@as(*const IDebugClient, @ptrCast(self)), OutputControl, Flags, Format); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient_GetEventCallbacks(self: *const T, Callbacks: ?*?*IDebugEventCallbacks) HRESULT { return @as(*const IDebugClient.VTable, @ptrCast(self.vtable)).GetEventCallbacks(@as(*const IDebugClient, @ptrCast(self)), Callbacks); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient_SetEventCallbacks(self: *const T, Callbacks: ?*IDebugEventCallbacks) HRESULT { return @as(*const IDebugClient.VTable, @ptrCast(self.vtable)).SetEventCallbacks(@as(*const IDebugClient, @ptrCast(self)), Callbacks); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient_FlushCallbacks(self: *const T) HRESULT { return @as(*const IDebugClient.VTable, @ptrCast(self.vtable)).FlushCallbacks(@as(*const IDebugClient, @ptrCast(self))); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IDebugClient2_Value = Guid.initString("edbed635-372e-4dab-bbfe-ed0d2f63be81"); pub const IID_IDebugClient2 = &IID_IDebugClient2_Value; pub const IDebugClient2 = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, AttachKernel: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient2, Flags: u32, ConnectOptions: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient2, Flags: u32, ConnectOptions: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetKernelConnectionOptions: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient2, Buffer: ?[*:0]u8, BufferSize: u32, OptionsSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient2, Buffer: ?[*:0]u8, BufferSize: u32, OptionsSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetKernelConnectionOptions: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient2, Options: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient2, Options: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, StartProcessServer: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient2, Flags: u32, Options: ?[*:0]const u8, Reserved: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient2, Flags: u32, Options: ?[*:0]const u8, Reserved: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, ConnectProcessServer: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient2, RemoteOptions: ?[*:0]const u8, Server: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient2, RemoteOptions: ?[*:0]const u8, Server: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, DisconnectProcessServer: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient2, Server: u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient2, Server: u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetRunningProcessSystemIds: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient2, Server: u64, Ids: ?[*]u32, Count: u32, ActualCount: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient2, Server: u64, Ids: ?[*]u32, Count: u32, ActualCount: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetRunningProcessSystemIdByExecutableName: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient2, Server: u64, ExeName: ?[*:0]const u8, Flags: u32, Id: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient2, Server: u64, ExeName: ?[*:0]const u8, Flags: u32, Id: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetRunningProcessDescription: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient2, Server: u64, SystemId: u32, Flags: u32, ExeName: ?[*:0]u8, ExeNameSize: u32, ActualExeNameSize: ?*u32, Description: ?[*:0]u8, DescriptionSize: u32, ActualDescriptionSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient2, Server: u64, SystemId: u32, Flags: u32, ExeName: ?[*:0]u8, ExeNameSize: u32, ActualExeNameSize: ?*u32, Description: ?[*:0]u8, DescriptionSize: u32, ActualDescriptionSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, AttachProcess: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient2, Server: u64, ProcessId: u32, AttachFlags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient2, Server: u64, ProcessId: u32, AttachFlags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, CreateProcessA: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient2, Server: u64, CommandLine: ?PSTR, CreateFlags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient2, Server: u64, CommandLine: ?PSTR, CreateFlags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, CreateProcessAndAttach: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient2, Server: u64, CommandLine: ?PSTR, CreateFlags: u32, ProcessId: u32, AttachFlags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient2, Server: u64, CommandLine: ?PSTR, CreateFlags: u32, ProcessId: u32, AttachFlags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetProcessOptions: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient2, Options: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient2, Options: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, AddProcessOptions: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient2, Options: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient2, Options: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, RemoveProcessOptions: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient2, Options: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient2, Options: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetProcessOptions: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient2, Options: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient2, Options: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, OpenDumpFile: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient2, DumpFile: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient2, DumpFile: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, WriteDumpFile: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient2, DumpFile: ?[*:0]const u8, Qualifier: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient2, DumpFile: ?[*:0]const u8, Qualifier: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, ConnectSession: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient2, Flags: u32, HistoryLimit: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient2, Flags: u32, HistoryLimit: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, StartServer: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient2, Options: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient2, Options: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, OutputServers: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient2, OutputControl: u32, Machine: ?[*:0]const u8, Flags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient2, OutputControl: u32, Machine: ?[*:0]const u8, Flags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, TerminateProcesses: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient2, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient2, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, DetachProcesses: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient2, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient2, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, EndSession: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient2, Flags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient2, Flags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetExitCode: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient2, Code: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient2, Code: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, DispatchCallbacks: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient2, Timeout: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient2, Timeout: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, ExitDispatch: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient2, Client: ?*IDebugClient, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient2, Client: ?*IDebugClient, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, CreateClient: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient2, Client: ?*?*IDebugClient, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient2, Client: ?*?*IDebugClient, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetInputCallbacks: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient2, Callbacks: ?*?*IDebugInputCallbacks, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient2, Callbacks: ?*?*IDebugInputCallbacks, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetInputCallbacks: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient2, Callbacks: ?*IDebugInputCallbacks, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient2, Callbacks: ?*IDebugInputCallbacks, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetOutputCallbacks: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient2, Callbacks: ?*?*IDebugOutputCallbacks, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient2, Callbacks: ?*?*IDebugOutputCallbacks, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetOutputCallbacks: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient2, Callbacks: ?*IDebugOutputCallbacks, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient2, Callbacks: ?*IDebugOutputCallbacks, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetOutputMask: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient2, Mask: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient2, Mask: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetOutputMask: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient2, Mask: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient2, Mask: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetOtherOutputMask: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient2, Client: ?*IDebugClient, Mask: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient2, Client: ?*IDebugClient, Mask: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetOtherOutputMask: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient2, Client: ?*IDebugClient, Mask: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient2, Client: ?*IDebugClient, Mask: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetOutputWidth: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient2, Columns: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient2, Columns: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetOutputWidth: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient2, Columns: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient2, Columns: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetOutputLinePrefix: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient2, Buffer: ?[*:0]u8, BufferSize: u32, PrefixSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient2, Buffer: ?[*:0]u8, BufferSize: u32, PrefixSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetOutputLinePrefix: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient2, Prefix: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient2, Prefix: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetIdentity: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient2, Buffer: ?[*:0]u8, BufferSize: u32, IdentitySize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient2, Buffer: ?[*:0]u8, BufferSize: u32, IdentitySize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, OutputIdentity: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient2, OutputControl: u32, Flags: u32, Format: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient2, OutputControl: u32, Flags: u32, Format: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetEventCallbacks: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient2, Callbacks: ?*?*IDebugEventCallbacks, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient2, Callbacks: ?*?*IDebugEventCallbacks, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetEventCallbacks: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient2, Callbacks: ?*IDebugEventCallbacks, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient2, Callbacks: ?*IDebugEventCallbacks, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, FlushCallbacks: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient2, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient2, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, WriteDumpFile2: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient2, DumpFile: ?[*:0]const u8, Qualifier: u32, FormatFlags: u32, Comment: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient2, DumpFile: ?[*:0]const u8, Qualifier: u32, FormatFlags: u32, Comment: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, AddDumpInformationFile: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient2, InfoFile: ?[*:0]const u8, Type: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient2, InfoFile: ?[*:0]const u8, Type: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, EndProcessServer: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient2, Server: u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient2, Server: u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, WaitForProcessServerEnd: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient2, Timeout: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient2, Timeout: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, IsKernelDebuggerEnabled: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient2, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient2, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, TerminateCurrentProcess: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient2, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient2, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, DetachCurrentProcess: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient2, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient2, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, AbandonCurrentProcess: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient2, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient2, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient2_AttachKernel(self: *const T, Flags: u32, ConnectOptions: ?[*:0]const u8) HRESULT { return @as(*const IDebugClient2.VTable, @ptrCast(self.vtable)).AttachKernel(@as(*const IDebugClient2, @ptrCast(self)), Flags, ConnectOptions); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient2_GetKernelConnectionOptions(self: *const T, Buffer: ?[*:0]u8, BufferSize: u32, OptionsSize: ?*u32) HRESULT { return @as(*const IDebugClient2.VTable, @ptrCast(self.vtable)).GetKernelConnectionOptions(@as(*const IDebugClient2, @ptrCast(self)), Buffer, BufferSize, OptionsSize); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient2_SetKernelConnectionOptions(self: *const T, Options: ?[*:0]const u8) HRESULT { return @as(*const IDebugClient2.VTable, @ptrCast(self.vtable)).SetKernelConnectionOptions(@as(*const IDebugClient2, @ptrCast(self)), Options); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient2_StartProcessServer(self: *const T, Flags: u32, Options: ?[*:0]const u8, Reserved: ?*anyopaque) HRESULT { return @as(*const IDebugClient2.VTable, @ptrCast(self.vtable)).StartProcessServer(@as(*const IDebugClient2, @ptrCast(self)), Flags, Options, Reserved); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient2_ConnectProcessServer(self: *const T, RemoteOptions: ?[*:0]const u8, Server: ?*u64) HRESULT { return @as(*const IDebugClient2.VTable, @ptrCast(self.vtable)).ConnectProcessServer(@as(*const IDebugClient2, @ptrCast(self)), RemoteOptions, Server); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient2_DisconnectProcessServer(self: *const T, Server: u64) HRESULT { return @as(*const IDebugClient2.VTable, @ptrCast(self.vtable)).DisconnectProcessServer(@as(*const IDebugClient2, @ptrCast(self)), Server); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient2_GetRunningProcessSystemIds(self: *const T, Server: u64, Ids: ?[*]u32, Count: u32, ActualCount: ?*u32) HRESULT { return @as(*const IDebugClient2.VTable, @ptrCast(self.vtable)).GetRunningProcessSystemIds(@as(*const IDebugClient2, @ptrCast(self)), Server, Ids, Count, ActualCount); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient2_GetRunningProcessSystemIdByExecutableName(self: *const T, Server: u64, ExeName: ?[*:0]const u8, Flags: u32, Id: ?*u32) HRESULT { return @as(*const IDebugClient2.VTable, @ptrCast(self.vtable)).GetRunningProcessSystemIdByExecutableName(@as(*const IDebugClient2, @ptrCast(self)), Server, ExeName, Flags, Id); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient2_GetRunningProcessDescription(self: *const T, Server: u64, SystemId: u32, Flags: u32, ExeName: ?[*:0]u8, ExeNameSize: u32, ActualExeNameSize: ?*u32, Description: ?[*:0]u8, DescriptionSize: u32, ActualDescriptionSize: ?*u32) HRESULT { return @as(*const IDebugClient2.VTable, @ptrCast(self.vtable)).GetRunningProcessDescription(@as(*const IDebugClient2, @ptrCast(self)), Server, SystemId, Flags, ExeName, ExeNameSize, ActualExeNameSize, Description, DescriptionSize, ActualDescriptionSize); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient2_AttachProcess(self: *const T, Server: u64, ProcessId: u32, AttachFlags: u32) HRESULT { return @as(*const IDebugClient2.VTable, @ptrCast(self.vtable)).AttachProcess(@as(*const IDebugClient2, @ptrCast(self)), Server, ProcessId, AttachFlags); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient2_CreateProcessA(self: *const T, Server: u64, CommandLine: ?PSTR, CreateFlags: u32) HRESULT { return @as(*const IDebugClient2.VTable, @ptrCast(self.vtable)).CreateProcessA(@as(*const IDebugClient2, @ptrCast(self)), Server, CommandLine, CreateFlags); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient2_CreateProcessAndAttach(self: *const T, Server: u64, CommandLine: ?PSTR, CreateFlags: u32, ProcessId: u32, AttachFlags: u32) HRESULT { return @as(*const IDebugClient2.VTable, @ptrCast(self.vtable)).CreateProcessAndAttach(@as(*const IDebugClient2, @ptrCast(self)), Server, CommandLine, CreateFlags, ProcessId, AttachFlags); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient2_GetProcessOptions(self: *const T, Options: ?*u32) HRESULT { return @as(*const IDebugClient2.VTable, @ptrCast(self.vtable)).GetProcessOptions(@as(*const IDebugClient2, @ptrCast(self)), Options); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient2_AddProcessOptions(self: *const T, Options: u32) HRESULT { return @as(*const IDebugClient2.VTable, @ptrCast(self.vtable)).AddProcessOptions(@as(*const IDebugClient2, @ptrCast(self)), Options); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient2_RemoveProcessOptions(self: *const T, Options: u32) HRESULT { return @as(*const IDebugClient2.VTable, @ptrCast(self.vtable)).RemoveProcessOptions(@as(*const IDebugClient2, @ptrCast(self)), Options); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient2_SetProcessOptions(self: *const T, Options: u32) HRESULT { return @as(*const IDebugClient2.VTable, @ptrCast(self.vtable)).SetProcessOptions(@as(*const IDebugClient2, @ptrCast(self)), Options); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient2_OpenDumpFile(self: *const T, DumpFile: ?[*:0]const u8) HRESULT { return @as(*const IDebugClient2.VTable, @ptrCast(self.vtable)).OpenDumpFile(@as(*const IDebugClient2, @ptrCast(self)), DumpFile); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient2_WriteDumpFile(self: *const T, DumpFile: ?[*:0]const u8, Qualifier: u32) HRESULT { return @as(*const IDebugClient2.VTable, @ptrCast(self.vtable)).WriteDumpFile(@as(*const IDebugClient2, @ptrCast(self)), DumpFile, Qualifier); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient2_ConnectSession(self: *const T, Flags: u32, HistoryLimit: u32) HRESULT { return @as(*const IDebugClient2.VTable, @ptrCast(self.vtable)).ConnectSession(@as(*const IDebugClient2, @ptrCast(self)), Flags, HistoryLimit); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient2_StartServer(self: *const T, Options: ?[*:0]const u8) HRESULT { return @as(*const IDebugClient2.VTable, @ptrCast(self.vtable)).StartServer(@as(*const IDebugClient2, @ptrCast(self)), Options); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient2_OutputServers(self: *const T, OutputControl: u32, Machine: ?[*:0]const u8, Flags: u32) HRESULT { return @as(*const IDebugClient2.VTable, @ptrCast(self.vtable)).OutputServers(@as(*const IDebugClient2, @ptrCast(self)), OutputControl, Machine, Flags); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient2_TerminateProcesses(self: *const T) HRESULT { return @as(*const IDebugClient2.VTable, @ptrCast(self.vtable)).TerminateProcesses(@as(*const IDebugClient2, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient2_DetachProcesses(self: *const T) HRESULT { return @as(*const IDebugClient2.VTable, @ptrCast(self.vtable)).DetachProcesses(@as(*const IDebugClient2, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient2_EndSession(self: *const T, Flags: u32) HRESULT { return @as(*const IDebugClient2.VTable, @ptrCast(self.vtable)).EndSession(@as(*const IDebugClient2, @ptrCast(self)), Flags); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient2_GetExitCode(self: *const T, Code: ?*u32) HRESULT { return @as(*const IDebugClient2.VTable, @ptrCast(self.vtable)).GetExitCode(@as(*const IDebugClient2, @ptrCast(self)), Code); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient2_DispatchCallbacks(self: *const T, Timeout: u32) HRESULT { return @as(*const IDebugClient2.VTable, @ptrCast(self.vtable)).DispatchCallbacks(@as(*const IDebugClient2, @ptrCast(self)), Timeout); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient2_ExitDispatch(self: *const T, Client: ?*IDebugClient) HRESULT { return @as(*const IDebugClient2.VTable, @ptrCast(self.vtable)).ExitDispatch(@as(*const IDebugClient2, @ptrCast(self)), Client); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient2_CreateClient(self: *const T, Client: ?*?*IDebugClient) HRESULT { return @as(*const IDebugClient2.VTable, @ptrCast(self.vtable)).CreateClient(@as(*const IDebugClient2, @ptrCast(self)), Client); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient2_GetInputCallbacks(self: *const T, Callbacks: ?*?*IDebugInputCallbacks) HRESULT { return @as(*const IDebugClient2.VTable, @ptrCast(self.vtable)).GetInputCallbacks(@as(*const IDebugClient2, @ptrCast(self)), Callbacks); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient2_SetInputCallbacks(self: *const T, Callbacks: ?*IDebugInputCallbacks) HRESULT { return @as(*const IDebugClient2.VTable, @ptrCast(self.vtable)).SetInputCallbacks(@as(*const IDebugClient2, @ptrCast(self)), Callbacks); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient2_GetOutputCallbacks(self: *const T, Callbacks: ?*?*IDebugOutputCallbacks) HRESULT { return @as(*const IDebugClient2.VTable, @ptrCast(self.vtable)).GetOutputCallbacks(@as(*const IDebugClient2, @ptrCast(self)), Callbacks); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient2_SetOutputCallbacks(self: *const T, Callbacks: ?*IDebugOutputCallbacks) HRESULT { return @as(*const IDebugClient2.VTable, @ptrCast(self.vtable)).SetOutputCallbacks(@as(*const IDebugClient2, @ptrCast(self)), Callbacks); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient2_GetOutputMask(self: *const T, Mask: ?*u32) HRESULT { return @as(*const IDebugClient2.VTable, @ptrCast(self.vtable)).GetOutputMask(@as(*const IDebugClient2, @ptrCast(self)), Mask); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient2_SetOutputMask(self: *const T, Mask: u32) HRESULT { return @as(*const IDebugClient2.VTable, @ptrCast(self.vtable)).SetOutputMask(@as(*const IDebugClient2, @ptrCast(self)), Mask); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient2_GetOtherOutputMask(self: *const T, Client: ?*IDebugClient, Mask: ?*u32) HRESULT { return @as(*const IDebugClient2.VTable, @ptrCast(self.vtable)).GetOtherOutputMask(@as(*const IDebugClient2, @ptrCast(self)), Client, Mask); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient2_SetOtherOutputMask(self: *const T, Client: ?*IDebugClient, Mask: u32) HRESULT { return @as(*const IDebugClient2.VTable, @ptrCast(self.vtable)).SetOtherOutputMask(@as(*const IDebugClient2, @ptrCast(self)), Client, Mask); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient2_GetOutputWidth(self: *const T, Columns: ?*u32) HRESULT { return @as(*const IDebugClient2.VTable, @ptrCast(self.vtable)).GetOutputWidth(@as(*const IDebugClient2, @ptrCast(self)), Columns); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient2_SetOutputWidth(self: *const T, Columns: u32) HRESULT { return @as(*const IDebugClient2.VTable, @ptrCast(self.vtable)).SetOutputWidth(@as(*const IDebugClient2, @ptrCast(self)), Columns); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient2_GetOutputLinePrefix(self: *const T, Buffer: ?[*:0]u8, BufferSize: u32, PrefixSize: ?*u32) HRESULT { return @as(*const IDebugClient2.VTable, @ptrCast(self.vtable)).GetOutputLinePrefix(@as(*const IDebugClient2, @ptrCast(self)), Buffer, BufferSize, PrefixSize); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient2_SetOutputLinePrefix(self: *const T, Prefix: ?[*:0]const u8) HRESULT { return @as(*const IDebugClient2.VTable, @ptrCast(self.vtable)).SetOutputLinePrefix(@as(*const IDebugClient2, @ptrCast(self)), Prefix); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient2_GetIdentity(self: *const T, Buffer: ?[*:0]u8, BufferSize: u32, IdentitySize: ?*u32) HRESULT { return @as(*const IDebugClient2.VTable, @ptrCast(self.vtable)).GetIdentity(@as(*const IDebugClient2, @ptrCast(self)), Buffer, BufferSize, IdentitySize); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient2_OutputIdentity(self: *const T, OutputControl: u32, Flags: u32, Format: ?[*:0]const u8) HRESULT { return @as(*const IDebugClient2.VTable, @ptrCast(self.vtable)).OutputIdentity(@as(*const IDebugClient2, @ptrCast(self)), OutputControl, Flags, Format); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient2_GetEventCallbacks(self: *const T, Callbacks: ?*?*IDebugEventCallbacks) HRESULT { return @as(*const IDebugClient2.VTable, @ptrCast(self.vtable)).GetEventCallbacks(@as(*const IDebugClient2, @ptrCast(self)), Callbacks); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient2_SetEventCallbacks(self: *const T, Callbacks: ?*IDebugEventCallbacks) HRESULT { return @as(*const IDebugClient2.VTable, @ptrCast(self.vtable)).SetEventCallbacks(@as(*const IDebugClient2, @ptrCast(self)), Callbacks); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient2_FlushCallbacks(self: *const T) HRESULT { return @as(*const IDebugClient2.VTable, @ptrCast(self.vtable)).FlushCallbacks(@as(*const IDebugClient2, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient2_WriteDumpFile2(self: *const T, DumpFile: ?[*:0]const u8, Qualifier: u32, FormatFlags: u32, Comment: ?[*:0]const u8) HRESULT { return @as(*const IDebugClient2.VTable, @ptrCast(self.vtable)).WriteDumpFile2(@as(*const IDebugClient2, @ptrCast(self)), DumpFile, Qualifier, FormatFlags, Comment); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient2_AddDumpInformationFile(self: *const T, InfoFile: ?[*:0]const u8, Type: u32) HRESULT { return @as(*const IDebugClient2.VTable, @ptrCast(self.vtable)).AddDumpInformationFile(@as(*const IDebugClient2, @ptrCast(self)), InfoFile, Type); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient2_EndProcessServer(self: *const T, Server: u64) HRESULT { return @as(*const IDebugClient2.VTable, @ptrCast(self.vtable)).EndProcessServer(@as(*const IDebugClient2, @ptrCast(self)), Server); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient2_WaitForProcessServerEnd(self: *const T, Timeout: u32) HRESULT { return @as(*const IDebugClient2.VTable, @ptrCast(self.vtable)).WaitForProcessServerEnd(@as(*const IDebugClient2, @ptrCast(self)), Timeout); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient2_IsKernelDebuggerEnabled(self: *const T) HRESULT { return @as(*const IDebugClient2.VTable, @ptrCast(self.vtable)).IsKernelDebuggerEnabled(@as(*const IDebugClient2, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient2_TerminateCurrentProcess(self: *const T) HRESULT { return @as(*const IDebugClient2.VTable, @ptrCast(self.vtable)).TerminateCurrentProcess(@as(*const IDebugClient2, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient2_DetachCurrentProcess(self: *const T) HRESULT { return @as(*const IDebugClient2.VTable, @ptrCast(self.vtable)).DetachCurrentProcess(@as(*const IDebugClient2, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient2_AbandonCurrentProcess(self: *const T) HRESULT { return @as(*const IDebugClient2.VTable, @ptrCast(self.vtable)).AbandonCurrentProcess(@as(*const IDebugClient2, @ptrCast(self))); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IDebugClient3_Value = Guid.initString("dd492d7f-71b8-4ad6-a8dc-1c887479ff91"); pub const IID_IDebugClient3 = &IID_IDebugClient3_Value; pub const IDebugClient3 = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, AttachKernel: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient3, Flags: u32, ConnectOptions: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient3, Flags: u32, ConnectOptions: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetKernelConnectionOptions: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient3, Buffer: ?[*:0]u8, BufferSize: u32, OptionsSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient3, Buffer: ?[*:0]u8, BufferSize: u32, OptionsSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetKernelConnectionOptions: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient3, Options: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient3, Options: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, StartProcessServer: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient3, Flags: u32, Options: ?[*:0]const u8, Reserved: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient3, Flags: u32, Options: ?[*:0]const u8, Reserved: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, ConnectProcessServer: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient3, RemoteOptions: ?[*:0]const u8, Server: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient3, RemoteOptions: ?[*:0]const u8, Server: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, DisconnectProcessServer: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient3, Server: u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient3, Server: u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetRunningProcessSystemIds: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient3, Server: u64, Ids: ?[*]u32, Count: u32, ActualCount: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient3, Server: u64, Ids: ?[*]u32, Count: u32, ActualCount: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetRunningProcessSystemIdByExecutableName: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient3, Server: u64, ExeName: ?[*:0]const u8, Flags: u32, Id: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient3, Server: u64, ExeName: ?[*:0]const u8, Flags: u32, Id: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetRunningProcessDescription: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient3, Server: u64, SystemId: u32, Flags: u32, ExeName: ?[*:0]u8, ExeNameSize: u32, ActualExeNameSize: ?*u32, Description: ?[*:0]u8, DescriptionSize: u32, ActualDescriptionSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient3, Server: u64, SystemId: u32, Flags: u32, ExeName: ?[*:0]u8, ExeNameSize: u32, ActualExeNameSize: ?*u32, Description: ?[*:0]u8, DescriptionSize: u32, ActualDescriptionSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, AttachProcess: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient3, Server: u64, ProcessId: u32, AttachFlags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient3, Server: u64, ProcessId: u32, AttachFlags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, CreateProcessA: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient3, Server: u64, CommandLine: ?PSTR, CreateFlags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient3, Server: u64, CommandLine: ?PSTR, CreateFlags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, CreateProcessAndAttach: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient3, Server: u64, CommandLine: ?PSTR, CreateFlags: u32, ProcessId: u32, AttachFlags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient3, Server: u64, CommandLine: ?PSTR, CreateFlags: u32, ProcessId: u32, AttachFlags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetProcessOptions: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient3, Options: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient3, Options: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, AddProcessOptions: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient3, Options: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient3, Options: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, RemoveProcessOptions: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient3, Options: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient3, Options: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetProcessOptions: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient3, Options: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient3, Options: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, OpenDumpFile: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient3, DumpFile: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient3, DumpFile: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, WriteDumpFile: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient3, DumpFile: ?[*:0]const u8, Qualifier: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient3, DumpFile: ?[*:0]const u8, Qualifier: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, ConnectSession: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient3, Flags: u32, HistoryLimit: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient3, Flags: u32, HistoryLimit: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, StartServer: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient3, Options: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient3, Options: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, OutputServers: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient3, OutputControl: u32, Machine: ?[*:0]const u8, Flags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient3, OutputControl: u32, Machine: ?[*:0]const u8, Flags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, TerminateProcesses: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient3, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient3, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, DetachProcesses: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient3, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient3, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, EndSession: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient3, Flags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient3, Flags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetExitCode: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient3, Code: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient3, Code: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, DispatchCallbacks: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient3, Timeout: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient3, Timeout: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, ExitDispatch: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient3, Client: ?*IDebugClient, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient3, Client: ?*IDebugClient, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, CreateClient: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient3, Client: ?*?*IDebugClient, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient3, Client: ?*?*IDebugClient, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetInputCallbacks: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient3, Callbacks: ?*?*IDebugInputCallbacks, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient3, Callbacks: ?*?*IDebugInputCallbacks, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetInputCallbacks: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient3, Callbacks: ?*IDebugInputCallbacks, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient3, Callbacks: ?*IDebugInputCallbacks, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetOutputCallbacks: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient3, Callbacks: ?*?*IDebugOutputCallbacks, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient3, Callbacks: ?*?*IDebugOutputCallbacks, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetOutputCallbacks: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient3, Callbacks: ?*IDebugOutputCallbacks, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient3, Callbacks: ?*IDebugOutputCallbacks, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetOutputMask: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient3, Mask: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient3, Mask: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetOutputMask: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient3, Mask: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient3, Mask: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetOtherOutputMask: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient3, Client: ?*IDebugClient, Mask: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient3, Client: ?*IDebugClient, Mask: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetOtherOutputMask: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient3, Client: ?*IDebugClient, Mask: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient3, Client: ?*IDebugClient, Mask: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetOutputWidth: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient3, Columns: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient3, Columns: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetOutputWidth: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient3, Columns: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient3, Columns: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetOutputLinePrefix: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient3, Buffer: ?[*:0]u8, BufferSize: u32, PrefixSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient3, Buffer: ?[*:0]u8, BufferSize: u32, PrefixSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetOutputLinePrefix: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient3, Prefix: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient3, Prefix: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetIdentity: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient3, Buffer: ?[*:0]u8, BufferSize: u32, IdentitySize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient3, Buffer: ?[*:0]u8, BufferSize: u32, IdentitySize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, OutputIdentity: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient3, OutputControl: u32, Flags: u32, Format: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient3, OutputControl: u32, Flags: u32, Format: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetEventCallbacks: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient3, Callbacks: ?*?*IDebugEventCallbacks, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient3, Callbacks: ?*?*IDebugEventCallbacks, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetEventCallbacks: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient3, Callbacks: ?*IDebugEventCallbacks, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient3, Callbacks: ?*IDebugEventCallbacks, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, FlushCallbacks: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient3, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient3, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, WriteDumpFile2: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient3, DumpFile: ?[*:0]const u8, Qualifier: u32, FormatFlags: u32, Comment: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient3, DumpFile: ?[*:0]const u8, Qualifier: u32, FormatFlags: u32, Comment: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, AddDumpInformationFile: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient3, InfoFile: ?[*:0]const u8, Type: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient3, InfoFile: ?[*:0]const u8, Type: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, EndProcessServer: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient3, Server: u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient3, Server: u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, WaitForProcessServerEnd: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient3, Timeout: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient3, Timeout: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, IsKernelDebuggerEnabled: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient3, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient3, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, TerminateCurrentProcess: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient3, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient3, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, DetachCurrentProcess: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient3, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient3, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, AbandonCurrentProcess: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient3, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient3, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetRunningProcessSystemIdByExecutableNameWide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient3, Server: u64, ExeName: ?[*:0]const u16, Flags: u32, Id: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient3, Server: u64, ExeName: ?[*:0]const u16, Flags: u32, Id: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetRunningProcessDescriptionWide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient3, Server: u64, SystemId: u32, Flags: u32, ExeName: ?[*:0]u16, ExeNameSize: u32, ActualExeNameSize: ?*u32, Description: ?[*:0]u16, DescriptionSize: u32, ActualDescriptionSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient3, Server: u64, SystemId: u32, Flags: u32, ExeName: ?[*:0]u16, ExeNameSize: u32, ActualExeNameSize: ?*u32, Description: ?[*:0]u16, DescriptionSize: u32, ActualDescriptionSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, CreateProcessWide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient3, Server: u64, CommandLine: ?PWSTR, CreateFlags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient3, Server: u64, CommandLine: ?PWSTR, CreateFlags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, CreateProcessAndAttachWide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient3, Server: u64, CommandLine: ?PWSTR, CreateFlags: u32, ProcessId: u32, AttachFlags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient3, Server: u64, CommandLine: ?PWSTR, CreateFlags: u32, ProcessId: u32, AttachFlags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient3_AttachKernel(self: *const T, Flags: u32, ConnectOptions: ?[*:0]const u8) HRESULT { return @as(*const IDebugClient3.VTable, @ptrCast(self.vtable)).AttachKernel(@as(*const IDebugClient3, @ptrCast(self)), Flags, ConnectOptions); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient3_GetKernelConnectionOptions(self: *const T, Buffer: ?[*:0]u8, BufferSize: u32, OptionsSize: ?*u32) HRESULT { return @as(*const IDebugClient3.VTable, @ptrCast(self.vtable)).GetKernelConnectionOptions(@as(*const IDebugClient3, @ptrCast(self)), Buffer, BufferSize, OptionsSize); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient3_SetKernelConnectionOptions(self: *const T, Options: ?[*:0]const u8) HRESULT { return @as(*const IDebugClient3.VTable, @ptrCast(self.vtable)).SetKernelConnectionOptions(@as(*const IDebugClient3, @ptrCast(self)), Options); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient3_StartProcessServer(self: *const T, Flags: u32, Options: ?[*:0]const u8, Reserved: ?*anyopaque) HRESULT { return @as(*const IDebugClient3.VTable, @ptrCast(self.vtable)).StartProcessServer(@as(*const IDebugClient3, @ptrCast(self)), Flags, Options, Reserved); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient3_ConnectProcessServer(self: *const T, RemoteOptions: ?[*:0]const u8, Server: ?*u64) HRESULT { return @as(*const IDebugClient3.VTable, @ptrCast(self.vtable)).ConnectProcessServer(@as(*const IDebugClient3, @ptrCast(self)), RemoteOptions, Server); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient3_DisconnectProcessServer(self: *const T, Server: u64) HRESULT { return @as(*const IDebugClient3.VTable, @ptrCast(self.vtable)).DisconnectProcessServer(@as(*const IDebugClient3, @ptrCast(self)), Server); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient3_GetRunningProcessSystemIds(self: *const T, Server: u64, Ids: ?[*]u32, Count: u32, ActualCount: ?*u32) HRESULT { return @as(*const IDebugClient3.VTable, @ptrCast(self.vtable)).GetRunningProcessSystemIds(@as(*const IDebugClient3, @ptrCast(self)), Server, Ids, Count, ActualCount); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient3_GetRunningProcessSystemIdByExecutableName(self: *const T, Server: u64, ExeName: ?[*:0]const u8, Flags: u32, Id: ?*u32) HRESULT { return @as(*const IDebugClient3.VTable, @ptrCast(self.vtable)).GetRunningProcessSystemIdByExecutableName(@as(*const IDebugClient3, @ptrCast(self)), Server, ExeName, Flags, Id); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient3_GetRunningProcessDescription(self: *const T, Server: u64, SystemId: u32, Flags: u32, ExeName: ?[*:0]u8, ExeNameSize: u32, ActualExeNameSize: ?*u32, Description: ?[*:0]u8, DescriptionSize: u32, ActualDescriptionSize: ?*u32) HRESULT { return @as(*const IDebugClient3.VTable, @ptrCast(self.vtable)).GetRunningProcessDescription(@as(*const IDebugClient3, @ptrCast(self)), Server, SystemId, Flags, ExeName, ExeNameSize, ActualExeNameSize, Description, DescriptionSize, ActualDescriptionSize); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient3_AttachProcess(self: *const T, Server: u64, ProcessId: u32, AttachFlags: u32) HRESULT { return @as(*const IDebugClient3.VTable, @ptrCast(self.vtable)).AttachProcess(@as(*const IDebugClient3, @ptrCast(self)), Server, ProcessId, AttachFlags); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient3_CreateProcessA(self: *const T, Server: u64, CommandLine: ?PSTR, CreateFlags: u32) HRESULT { return @as(*const IDebugClient3.VTable, @ptrCast(self.vtable)).CreateProcessA(@as(*const IDebugClient3, @ptrCast(self)), Server, CommandLine, CreateFlags); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient3_CreateProcessAndAttach(self: *const T, Server: u64, CommandLine: ?PSTR, CreateFlags: u32, ProcessId: u32, AttachFlags: u32) HRESULT { return @as(*const IDebugClient3.VTable, @ptrCast(self.vtable)).CreateProcessAndAttach(@as(*const IDebugClient3, @ptrCast(self)), Server, CommandLine, CreateFlags, ProcessId, AttachFlags); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient3_GetProcessOptions(self: *const T, Options: ?*u32) HRESULT { return @as(*const IDebugClient3.VTable, @ptrCast(self.vtable)).GetProcessOptions(@as(*const IDebugClient3, @ptrCast(self)), Options); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient3_AddProcessOptions(self: *const T, Options: u32) HRESULT { return @as(*const IDebugClient3.VTable, @ptrCast(self.vtable)).AddProcessOptions(@as(*const IDebugClient3, @ptrCast(self)), Options); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient3_RemoveProcessOptions(self: *const T, Options: u32) HRESULT { return @as(*const IDebugClient3.VTable, @ptrCast(self.vtable)).RemoveProcessOptions(@as(*const IDebugClient3, @ptrCast(self)), Options); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient3_SetProcessOptions(self: *const T, Options: u32) HRESULT { return @as(*const IDebugClient3.VTable, @ptrCast(self.vtable)).SetProcessOptions(@as(*const IDebugClient3, @ptrCast(self)), Options); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient3_OpenDumpFile(self: *const T, DumpFile: ?[*:0]const u8) HRESULT { return @as(*const IDebugClient3.VTable, @ptrCast(self.vtable)).OpenDumpFile(@as(*const IDebugClient3, @ptrCast(self)), DumpFile); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient3_WriteDumpFile(self: *const T, DumpFile: ?[*:0]const u8, Qualifier: u32) HRESULT { return @as(*const IDebugClient3.VTable, @ptrCast(self.vtable)).WriteDumpFile(@as(*const IDebugClient3, @ptrCast(self)), DumpFile, Qualifier); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient3_ConnectSession(self: *const T, Flags: u32, HistoryLimit: u32) HRESULT { return @as(*const IDebugClient3.VTable, @ptrCast(self.vtable)).ConnectSession(@as(*const IDebugClient3, @ptrCast(self)), Flags, HistoryLimit); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient3_StartServer(self: *const T, Options: ?[*:0]const u8) HRESULT { return @as(*const IDebugClient3.VTable, @ptrCast(self.vtable)).StartServer(@as(*const IDebugClient3, @ptrCast(self)), Options); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient3_OutputServers(self: *const T, OutputControl: u32, Machine: ?[*:0]const u8, Flags: u32) HRESULT { return @as(*const IDebugClient3.VTable, @ptrCast(self.vtable)).OutputServers(@as(*const IDebugClient3, @ptrCast(self)), OutputControl, Machine, Flags); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient3_TerminateProcesses(self: *const T) HRESULT { return @as(*const IDebugClient3.VTable, @ptrCast(self.vtable)).TerminateProcesses(@as(*const IDebugClient3, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient3_DetachProcesses(self: *const T) HRESULT { return @as(*const IDebugClient3.VTable, @ptrCast(self.vtable)).DetachProcesses(@as(*const IDebugClient3, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient3_EndSession(self: *const T, Flags: u32) HRESULT { return @as(*const IDebugClient3.VTable, @ptrCast(self.vtable)).EndSession(@as(*const IDebugClient3, @ptrCast(self)), Flags); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient3_GetExitCode(self: *const T, Code: ?*u32) HRESULT { return @as(*const IDebugClient3.VTable, @ptrCast(self.vtable)).GetExitCode(@as(*const IDebugClient3, @ptrCast(self)), Code); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient3_DispatchCallbacks(self: *const T, Timeout: u32) HRESULT { return @as(*const IDebugClient3.VTable, @ptrCast(self.vtable)).DispatchCallbacks(@as(*const IDebugClient3, @ptrCast(self)), Timeout); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient3_ExitDispatch(self: *const T, Client: ?*IDebugClient) HRESULT { return @as(*const IDebugClient3.VTable, @ptrCast(self.vtable)).ExitDispatch(@as(*const IDebugClient3, @ptrCast(self)), Client); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient3_CreateClient(self: *const T, Client: ?*?*IDebugClient) HRESULT { return @as(*const IDebugClient3.VTable, @ptrCast(self.vtable)).CreateClient(@as(*const IDebugClient3, @ptrCast(self)), Client); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient3_GetInputCallbacks(self: *const T, Callbacks: ?*?*IDebugInputCallbacks) HRESULT { return @as(*const IDebugClient3.VTable, @ptrCast(self.vtable)).GetInputCallbacks(@as(*const IDebugClient3, @ptrCast(self)), Callbacks); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient3_SetInputCallbacks(self: *const T, Callbacks: ?*IDebugInputCallbacks) HRESULT { return @as(*const IDebugClient3.VTable, @ptrCast(self.vtable)).SetInputCallbacks(@as(*const IDebugClient3, @ptrCast(self)), Callbacks); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient3_GetOutputCallbacks(self: *const T, Callbacks: ?*?*IDebugOutputCallbacks) HRESULT { return @as(*const IDebugClient3.VTable, @ptrCast(self.vtable)).GetOutputCallbacks(@as(*const IDebugClient3, @ptrCast(self)), Callbacks); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient3_SetOutputCallbacks(self: *const T, Callbacks: ?*IDebugOutputCallbacks) HRESULT { return @as(*const IDebugClient3.VTable, @ptrCast(self.vtable)).SetOutputCallbacks(@as(*const IDebugClient3, @ptrCast(self)), Callbacks); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient3_GetOutputMask(self: *const T, Mask: ?*u32) HRESULT { return @as(*const IDebugClient3.VTable, @ptrCast(self.vtable)).GetOutputMask(@as(*const IDebugClient3, @ptrCast(self)), Mask); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient3_SetOutputMask(self: *const T, Mask: u32) HRESULT { return @as(*const IDebugClient3.VTable, @ptrCast(self.vtable)).SetOutputMask(@as(*const IDebugClient3, @ptrCast(self)), Mask); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient3_GetOtherOutputMask(self: *const T, Client: ?*IDebugClient, Mask: ?*u32) HRESULT { return @as(*const IDebugClient3.VTable, @ptrCast(self.vtable)).GetOtherOutputMask(@as(*const IDebugClient3, @ptrCast(self)), Client, Mask); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient3_SetOtherOutputMask(self: *const T, Client: ?*IDebugClient, Mask: u32) HRESULT { return @as(*const IDebugClient3.VTable, @ptrCast(self.vtable)).SetOtherOutputMask(@as(*const IDebugClient3, @ptrCast(self)), Client, Mask); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient3_GetOutputWidth(self: *const T, Columns: ?*u32) HRESULT { return @as(*const IDebugClient3.VTable, @ptrCast(self.vtable)).GetOutputWidth(@as(*const IDebugClient3, @ptrCast(self)), Columns); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient3_SetOutputWidth(self: *const T, Columns: u32) HRESULT { return @as(*const IDebugClient3.VTable, @ptrCast(self.vtable)).SetOutputWidth(@as(*const IDebugClient3, @ptrCast(self)), Columns); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient3_GetOutputLinePrefix(self: *const T, Buffer: ?[*:0]u8, BufferSize: u32, PrefixSize: ?*u32) HRESULT { return @as(*const IDebugClient3.VTable, @ptrCast(self.vtable)).GetOutputLinePrefix(@as(*const IDebugClient3, @ptrCast(self)), Buffer, BufferSize, PrefixSize); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient3_SetOutputLinePrefix(self: *const T, Prefix: ?[*:0]const u8) HRESULT { return @as(*const IDebugClient3.VTable, @ptrCast(self.vtable)).SetOutputLinePrefix(@as(*const IDebugClient3, @ptrCast(self)), Prefix); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient3_GetIdentity(self: *const T, Buffer: ?[*:0]u8, BufferSize: u32, IdentitySize: ?*u32) HRESULT { return @as(*const IDebugClient3.VTable, @ptrCast(self.vtable)).GetIdentity(@as(*const IDebugClient3, @ptrCast(self)), Buffer, BufferSize, IdentitySize); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient3_OutputIdentity(self: *const T, OutputControl: u32, Flags: u32, Format: ?[*:0]const u8) HRESULT { return @as(*const IDebugClient3.VTable, @ptrCast(self.vtable)).OutputIdentity(@as(*const IDebugClient3, @ptrCast(self)), OutputControl, Flags, Format); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient3_GetEventCallbacks(self: *const T, Callbacks: ?*?*IDebugEventCallbacks) HRESULT { return @as(*const IDebugClient3.VTable, @ptrCast(self.vtable)).GetEventCallbacks(@as(*const IDebugClient3, @ptrCast(self)), Callbacks); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient3_SetEventCallbacks(self: *const T, Callbacks: ?*IDebugEventCallbacks) HRESULT { return @as(*const IDebugClient3.VTable, @ptrCast(self.vtable)).SetEventCallbacks(@as(*const IDebugClient3, @ptrCast(self)), Callbacks); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient3_FlushCallbacks(self: *const T) HRESULT { return @as(*const IDebugClient3.VTable, @ptrCast(self.vtable)).FlushCallbacks(@as(*const IDebugClient3, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient3_WriteDumpFile2(self: *const T, DumpFile: ?[*:0]const u8, Qualifier: u32, FormatFlags: u32, Comment: ?[*:0]const u8) HRESULT { return @as(*const IDebugClient3.VTable, @ptrCast(self.vtable)).WriteDumpFile2(@as(*const IDebugClient3, @ptrCast(self)), DumpFile, Qualifier, FormatFlags, Comment); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient3_AddDumpInformationFile(self: *const T, InfoFile: ?[*:0]const u8, Type: u32) HRESULT { return @as(*const IDebugClient3.VTable, @ptrCast(self.vtable)).AddDumpInformationFile(@as(*const IDebugClient3, @ptrCast(self)), InfoFile, Type); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient3_EndProcessServer(self: *const T, Server: u64) HRESULT { return @as(*const IDebugClient3.VTable, @ptrCast(self.vtable)).EndProcessServer(@as(*const IDebugClient3, @ptrCast(self)), Server); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient3_WaitForProcessServerEnd(self: *const T, Timeout: u32) HRESULT { return @as(*const IDebugClient3.VTable, @ptrCast(self.vtable)).WaitForProcessServerEnd(@as(*const IDebugClient3, @ptrCast(self)), Timeout); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient3_IsKernelDebuggerEnabled(self: *const T) HRESULT { return @as(*const IDebugClient3.VTable, @ptrCast(self.vtable)).IsKernelDebuggerEnabled(@as(*const IDebugClient3, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient3_TerminateCurrentProcess(self: *const T) HRESULT { return @as(*const IDebugClient3.VTable, @ptrCast(self.vtable)).TerminateCurrentProcess(@as(*const IDebugClient3, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient3_DetachCurrentProcess(self: *const T) HRESULT { return @as(*const IDebugClient3.VTable, @ptrCast(self.vtable)).DetachCurrentProcess(@as(*const IDebugClient3, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient3_AbandonCurrentProcess(self: *const T) HRESULT { return @as(*const IDebugClient3.VTable, @ptrCast(self.vtable)).AbandonCurrentProcess(@as(*const IDebugClient3, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient3_GetRunningProcessSystemIdByExecutableNameWide(self: *const T, Server: u64, ExeName: ?[*:0]const u16, Flags: u32, Id: ?*u32) HRESULT { return @as(*const IDebugClient3.VTable, @ptrCast(self.vtable)).GetRunningProcessSystemIdByExecutableNameWide(@as(*const IDebugClient3, @ptrCast(self)), Server, ExeName, Flags, Id); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient3_GetRunningProcessDescriptionWide(self: *const T, Server: u64, SystemId: u32, Flags: u32, ExeName: ?[*:0]u16, ExeNameSize: u32, ActualExeNameSize: ?*u32, Description: ?[*:0]u16, DescriptionSize: u32, ActualDescriptionSize: ?*u32) HRESULT { return @as(*const IDebugClient3.VTable, @ptrCast(self.vtable)).GetRunningProcessDescriptionWide(@as(*const IDebugClient3, @ptrCast(self)), Server, SystemId, Flags, ExeName, ExeNameSize, ActualExeNameSize, Description, DescriptionSize, ActualDescriptionSize); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient3_CreateProcessWide(self: *const T, Server: u64, CommandLine: ?PWSTR, CreateFlags: u32) HRESULT { return @as(*const IDebugClient3.VTable, @ptrCast(self.vtable)).CreateProcessWide(@as(*const IDebugClient3, @ptrCast(self)), Server, CommandLine, CreateFlags); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient3_CreateProcessAndAttachWide(self: *const T, Server: u64, CommandLine: ?PWSTR, CreateFlags: u32, ProcessId: u32, AttachFlags: u32) HRESULT { return @as(*const IDebugClient3.VTable, @ptrCast(self.vtable)).CreateProcessAndAttachWide(@as(*const IDebugClient3, @ptrCast(self)), Server, CommandLine, CreateFlags, ProcessId, AttachFlags); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IDebugClient4_Value = Guid.initString("ca83c3de-5089-4cf8-93c8-d892387f2a5e"); pub const IID_IDebugClient4 = &IID_IDebugClient4_Value; pub const IDebugClient4 = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, AttachKernel: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient4, Flags: u32, ConnectOptions: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient4, Flags: u32, ConnectOptions: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetKernelConnectionOptions: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient4, Buffer: ?[*:0]u8, BufferSize: u32, OptionsSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient4, Buffer: ?[*:0]u8, BufferSize: u32, OptionsSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetKernelConnectionOptions: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient4, Options: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient4, Options: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, StartProcessServer: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient4, Flags: u32, Options: ?[*:0]const u8, Reserved: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient4, Flags: u32, Options: ?[*:0]const u8, Reserved: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, ConnectProcessServer: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient4, RemoteOptions: ?[*:0]const u8, Server: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient4, RemoteOptions: ?[*:0]const u8, Server: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, DisconnectProcessServer: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient4, Server: u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient4, Server: u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetRunningProcessSystemIds: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient4, Server: u64, Ids: ?[*]u32, Count: u32, ActualCount: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient4, Server: u64, Ids: ?[*]u32, Count: u32, ActualCount: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetRunningProcessSystemIdByExecutableName: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient4, Server: u64, ExeName: ?[*:0]const u8, Flags: u32, Id: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient4, Server: u64, ExeName: ?[*:0]const u8, Flags: u32, Id: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetRunningProcessDescription: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient4, Server: u64, SystemId: u32, Flags: u32, ExeName: ?[*:0]u8, ExeNameSize: u32, ActualExeNameSize: ?*u32, Description: ?[*:0]u8, DescriptionSize: u32, ActualDescriptionSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient4, Server: u64, SystemId: u32, Flags: u32, ExeName: ?[*:0]u8, ExeNameSize: u32, ActualExeNameSize: ?*u32, Description: ?[*:0]u8, DescriptionSize: u32, ActualDescriptionSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, AttachProcess: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient4, Server: u64, ProcessId: u32, AttachFlags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient4, Server: u64, ProcessId: u32, AttachFlags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, CreateProcessA: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient4, Server: u64, CommandLine: ?PSTR, CreateFlags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient4, Server: u64, CommandLine: ?PSTR, CreateFlags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, CreateProcessAndAttach: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient4, Server: u64, CommandLine: ?PSTR, CreateFlags: u32, ProcessId: u32, AttachFlags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient4, Server: u64, CommandLine: ?PSTR, CreateFlags: u32, ProcessId: u32, AttachFlags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetProcessOptions: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient4, Options: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient4, Options: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, AddProcessOptions: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient4, Options: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient4, Options: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, RemoveProcessOptions: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient4, Options: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient4, Options: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetProcessOptions: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient4, Options: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient4, Options: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, OpenDumpFile: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient4, DumpFile: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient4, DumpFile: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, WriteDumpFile: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient4, DumpFile: ?[*:0]const u8, Qualifier: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient4, DumpFile: ?[*:0]const u8, Qualifier: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, ConnectSession: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient4, Flags: u32, HistoryLimit: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient4, Flags: u32, HistoryLimit: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, StartServer: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient4, Options: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient4, Options: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, OutputServers: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient4, OutputControl: u32, Machine: ?[*:0]const u8, Flags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient4, OutputControl: u32, Machine: ?[*:0]const u8, Flags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, TerminateProcesses: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient4, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient4, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, DetachProcesses: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient4, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient4, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, EndSession: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient4, Flags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient4, Flags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetExitCode: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient4, Code: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient4, Code: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, DispatchCallbacks: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient4, Timeout: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient4, Timeout: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, ExitDispatch: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient4, Client: ?*IDebugClient, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient4, Client: ?*IDebugClient, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, CreateClient: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient4, Client: ?*?*IDebugClient, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient4, Client: ?*?*IDebugClient, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetInputCallbacks: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient4, Callbacks: ?*?*IDebugInputCallbacks, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient4, Callbacks: ?*?*IDebugInputCallbacks, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetInputCallbacks: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient4, Callbacks: ?*IDebugInputCallbacks, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient4, Callbacks: ?*IDebugInputCallbacks, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetOutputCallbacks: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient4, Callbacks: ?*?*IDebugOutputCallbacks, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient4, Callbacks: ?*?*IDebugOutputCallbacks, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetOutputCallbacks: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient4, Callbacks: ?*IDebugOutputCallbacks, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient4, Callbacks: ?*IDebugOutputCallbacks, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetOutputMask: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient4, Mask: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient4, Mask: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetOutputMask: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient4, Mask: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient4, Mask: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetOtherOutputMask: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient4, Client: ?*IDebugClient, Mask: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient4, Client: ?*IDebugClient, Mask: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetOtherOutputMask: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient4, Client: ?*IDebugClient, Mask: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient4, Client: ?*IDebugClient, Mask: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetOutputWidth: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient4, Columns: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient4, Columns: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetOutputWidth: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient4, Columns: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient4, Columns: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetOutputLinePrefix: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient4, Buffer: ?[*:0]u8, BufferSize: u32, PrefixSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient4, Buffer: ?[*:0]u8, BufferSize: u32, PrefixSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetOutputLinePrefix: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient4, Prefix: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient4, Prefix: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetIdentity: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient4, Buffer: ?[*:0]u8, BufferSize: u32, IdentitySize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient4, Buffer: ?[*:0]u8, BufferSize: u32, IdentitySize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, OutputIdentity: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient4, OutputControl: u32, Flags: u32, Format: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient4, OutputControl: u32, Flags: u32, Format: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetEventCallbacks: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient4, Callbacks: ?*?*IDebugEventCallbacks, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient4, Callbacks: ?*?*IDebugEventCallbacks, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetEventCallbacks: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient4, Callbacks: ?*IDebugEventCallbacks, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient4, Callbacks: ?*IDebugEventCallbacks, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, FlushCallbacks: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient4, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient4, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, WriteDumpFile2: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient4, DumpFile: ?[*:0]const u8, Qualifier: u32, FormatFlags: u32, Comment: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient4, DumpFile: ?[*:0]const u8, Qualifier: u32, FormatFlags: u32, Comment: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, AddDumpInformationFile: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient4, InfoFile: ?[*:0]const u8, Type: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient4, InfoFile: ?[*:0]const u8, Type: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, EndProcessServer: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient4, Server: u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient4, Server: u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, WaitForProcessServerEnd: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient4, Timeout: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient4, Timeout: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, IsKernelDebuggerEnabled: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient4, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient4, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, TerminateCurrentProcess: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient4, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient4, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, DetachCurrentProcess: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient4, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient4, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, AbandonCurrentProcess: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient4, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient4, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetRunningProcessSystemIdByExecutableNameWide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient4, Server: u64, ExeName: ?[*:0]const u16, Flags: u32, Id: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient4, Server: u64, ExeName: ?[*:0]const u16, Flags: u32, Id: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetRunningProcessDescriptionWide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient4, Server: u64, SystemId: u32, Flags: u32, ExeName: ?[*:0]u16, ExeNameSize: u32, ActualExeNameSize: ?*u32, Description: ?[*:0]u16, DescriptionSize: u32, ActualDescriptionSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient4, Server: u64, SystemId: u32, Flags: u32, ExeName: ?[*:0]u16, ExeNameSize: u32, ActualExeNameSize: ?*u32, Description: ?[*:0]u16, DescriptionSize: u32, ActualDescriptionSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, CreateProcessWide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient4, Server: u64, CommandLine: ?PWSTR, CreateFlags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient4, Server: u64, CommandLine: ?PWSTR, CreateFlags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, CreateProcessAndAttachWide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient4, Server: u64, CommandLine: ?PWSTR, CreateFlags: u32, ProcessId: u32, AttachFlags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient4, Server: u64, CommandLine: ?PWSTR, CreateFlags: u32, ProcessId: u32, AttachFlags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, OpenDumpFileWide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient4, FileName: ?[*:0]const u16, FileHandle: u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient4, FileName: ?[*:0]const u16, FileHandle: u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, WriteDumpFileWide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient4, FileName: ?[*:0]const u16, FileHandle: u64, Qualifier: u32, FormatFlags: u32, Comment: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient4, FileName: ?[*:0]const u16, FileHandle: u64, Qualifier: u32, FormatFlags: u32, Comment: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, AddDumpInformationFileWide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient4, FileName: ?[*:0]const u16, FileHandle: u64, Type: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient4, FileName: ?[*:0]const u16, FileHandle: u64, Type: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetNumberDumpFiles: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient4, Number: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient4, Number: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetDumpFile: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient4, Index: u32, Buffer: ?[*:0]u8, BufferSize: u32, NameSize: ?*u32, Handle: ?*u64, Type: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient4, Index: u32, Buffer: ?[*:0]u8, BufferSize: u32, NameSize: ?*u32, Handle: ?*u64, Type: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetDumpFileWide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient4, Index: u32, Buffer: ?[*:0]u16, BufferSize: u32, NameSize: ?*u32, Handle: ?*u64, Type: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient4, Index: u32, Buffer: ?[*:0]u16, BufferSize: u32, NameSize: ?*u32, Handle: ?*u64, Type: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient4_AttachKernel(self: *const T, Flags: u32, ConnectOptions: ?[*:0]const u8) HRESULT { return @as(*const IDebugClient4.VTable, @ptrCast(self.vtable)).AttachKernel(@as(*const IDebugClient4, @ptrCast(self)), Flags, ConnectOptions); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient4_GetKernelConnectionOptions(self: *const T, Buffer: ?[*:0]u8, BufferSize: u32, OptionsSize: ?*u32) HRESULT { return @as(*const IDebugClient4.VTable, @ptrCast(self.vtable)).GetKernelConnectionOptions(@as(*const IDebugClient4, @ptrCast(self)), Buffer, BufferSize, OptionsSize); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient4_SetKernelConnectionOptions(self: *const T, Options: ?[*:0]const u8) HRESULT { return @as(*const IDebugClient4.VTable, @ptrCast(self.vtable)).SetKernelConnectionOptions(@as(*const IDebugClient4, @ptrCast(self)), Options); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient4_StartProcessServer(self: *const T, Flags: u32, Options: ?[*:0]const u8, Reserved: ?*anyopaque) HRESULT { return @as(*const IDebugClient4.VTable, @ptrCast(self.vtable)).StartProcessServer(@as(*const IDebugClient4, @ptrCast(self)), Flags, Options, Reserved); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient4_ConnectProcessServer(self: *const T, RemoteOptions: ?[*:0]const u8, Server: ?*u64) HRESULT { return @as(*const IDebugClient4.VTable, @ptrCast(self.vtable)).ConnectProcessServer(@as(*const IDebugClient4, @ptrCast(self)), RemoteOptions, Server); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient4_DisconnectProcessServer(self: *const T, Server: u64) HRESULT { return @as(*const IDebugClient4.VTable, @ptrCast(self.vtable)).DisconnectProcessServer(@as(*const IDebugClient4, @ptrCast(self)), Server); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient4_GetRunningProcessSystemIds(self: *const T, Server: u64, Ids: ?[*]u32, Count: u32, ActualCount: ?*u32) HRESULT { return @as(*const IDebugClient4.VTable, @ptrCast(self.vtable)).GetRunningProcessSystemIds(@as(*const IDebugClient4, @ptrCast(self)), Server, Ids, Count, ActualCount); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient4_GetRunningProcessSystemIdByExecutableName(self: *const T, Server: u64, ExeName: ?[*:0]const u8, Flags: u32, Id: ?*u32) HRESULT { return @as(*const IDebugClient4.VTable, @ptrCast(self.vtable)).GetRunningProcessSystemIdByExecutableName(@as(*const IDebugClient4, @ptrCast(self)), Server, ExeName, Flags, Id); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient4_GetRunningProcessDescription(self: *const T, Server: u64, SystemId: u32, Flags: u32, ExeName: ?[*:0]u8, ExeNameSize: u32, ActualExeNameSize: ?*u32, Description: ?[*:0]u8, DescriptionSize: u32, ActualDescriptionSize: ?*u32) HRESULT { return @as(*const IDebugClient4.VTable, @ptrCast(self.vtable)).GetRunningProcessDescription(@as(*const IDebugClient4, @ptrCast(self)), Server, SystemId, Flags, ExeName, ExeNameSize, ActualExeNameSize, Description, DescriptionSize, ActualDescriptionSize); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient4_AttachProcess(self: *const T, Server: u64, ProcessId: u32, AttachFlags: u32) HRESULT { return @as(*const IDebugClient4.VTable, @ptrCast(self.vtable)).AttachProcess(@as(*const IDebugClient4, @ptrCast(self)), Server, ProcessId, AttachFlags); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient4_CreateProcessA(self: *const T, Server: u64, CommandLine: ?PSTR, CreateFlags: u32) HRESULT { return @as(*const IDebugClient4.VTable, @ptrCast(self.vtable)).CreateProcessA(@as(*const IDebugClient4, @ptrCast(self)), Server, CommandLine, CreateFlags); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient4_CreateProcessAndAttach(self: *const T, Server: u64, CommandLine: ?PSTR, CreateFlags: u32, ProcessId: u32, AttachFlags: u32) HRESULT { return @as(*const IDebugClient4.VTable, @ptrCast(self.vtable)).CreateProcessAndAttach(@as(*const IDebugClient4, @ptrCast(self)), Server, CommandLine, CreateFlags, ProcessId, AttachFlags); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient4_GetProcessOptions(self: *const T, Options: ?*u32) HRESULT { return @as(*const IDebugClient4.VTable, @ptrCast(self.vtable)).GetProcessOptions(@as(*const IDebugClient4, @ptrCast(self)), Options); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient4_AddProcessOptions(self: *const T, Options: u32) HRESULT { return @as(*const IDebugClient4.VTable, @ptrCast(self.vtable)).AddProcessOptions(@as(*const IDebugClient4, @ptrCast(self)), Options); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient4_RemoveProcessOptions(self: *const T, Options: u32) HRESULT { return @as(*const IDebugClient4.VTable, @ptrCast(self.vtable)).RemoveProcessOptions(@as(*const IDebugClient4, @ptrCast(self)), Options); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient4_SetProcessOptions(self: *const T, Options: u32) HRESULT { return @as(*const IDebugClient4.VTable, @ptrCast(self.vtable)).SetProcessOptions(@as(*const IDebugClient4, @ptrCast(self)), Options); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient4_OpenDumpFile(self: *const T, DumpFile: ?[*:0]const u8) HRESULT { return @as(*const IDebugClient4.VTable, @ptrCast(self.vtable)).OpenDumpFile(@as(*const IDebugClient4, @ptrCast(self)), DumpFile); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient4_WriteDumpFile(self: *const T, DumpFile: ?[*:0]const u8, Qualifier: u32) HRESULT { return @as(*const IDebugClient4.VTable, @ptrCast(self.vtable)).WriteDumpFile(@as(*const IDebugClient4, @ptrCast(self)), DumpFile, Qualifier); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient4_ConnectSession(self: *const T, Flags: u32, HistoryLimit: u32) HRESULT { return @as(*const IDebugClient4.VTable, @ptrCast(self.vtable)).ConnectSession(@as(*const IDebugClient4, @ptrCast(self)), Flags, HistoryLimit); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient4_StartServer(self: *const T, Options: ?[*:0]const u8) HRESULT { return @as(*const IDebugClient4.VTable, @ptrCast(self.vtable)).StartServer(@as(*const IDebugClient4, @ptrCast(self)), Options); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient4_OutputServers(self: *const T, OutputControl: u32, Machine: ?[*:0]const u8, Flags: u32) HRESULT { return @as(*const IDebugClient4.VTable, @ptrCast(self.vtable)).OutputServers(@as(*const IDebugClient4, @ptrCast(self)), OutputControl, Machine, Flags); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient4_TerminateProcesses(self: *const T) HRESULT { return @as(*const IDebugClient4.VTable, @ptrCast(self.vtable)).TerminateProcesses(@as(*const IDebugClient4, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient4_DetachProcesses(self: *const T) HRESULT { return @as(*const IDebugClient4.VTable, @ptrCast(self.vtable)).DetachProcesses(@as(*const IDebugClient4, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient4_EndSession(self: *const T, Flags: u32) HRESULT { return @as(*const IDebugClient4.VTable, @ptrCast(self.vtable)).EndSession(@as(*const IDebugClient4, @ptrCast(self)), Flags); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient4_GetExitCode(self: *const T, Code: ?*u32) HRESULT { return @as(*const IDebugClient4.VTable, @ptrCast(self.vtable)).GetExitCode(@as(*const IDebugClient4, @ptrCast(self)), Code); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient4_DispatchCallbacks(self: *const T, Timeout: u32) HRESULT { return @as(*const IDebugClient4.VTable, @ptrCast(self.vtable)).DispatchCallbacks(@as(*const IDebugClient4, @ptrCast(self)), Timeout); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient4_ExitDispatch(self: *const T, Client: ?*IDebugClient) HRESULT { return @as(*const IDebugClient4.VTable, @ptrCast(self.vtable)).ExitDispatch(@as(*const IDebugClient4, @ptrCast(self)), Client); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient4_CreateClient(self: *const T, Client: ?*?*IDebugClient) HRESULT { return @as(*const IDebugClient4.VTable, @ptrCast(self.vtable)).CreateClient(@as(*const IDebugClient4, @ptrCast(self)), Client); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient4_GetInputCallbacks(self: *const T, Callbacks: ?*?*IDebugInputCallbacks) HRESULT { return @as(*const IDebugClient4.VTable, @ptrCast(self.vtable)).GetInputCallbacks(@as(*const IDebugClient4, @ptrCast(self)), Callbacks); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient4_SetInputCallbacks(self: *const T, Callbacks: ?*IDebugInputCallbacks) HRESULT { return @as(*const IDebugClient4.VTable, @ptrCast(self.vtable)).SetInputCallbacks(@as(*const IDebugClient4, @ptrCast(self)), Callbacks); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient4_GetOutputCallbacks(self: *const T, Callbacks: ?*?*IDebugOutputCallbacks) HRESULT { return @as(*const IDebugClient4.VTable, @ptrCast(self.vtable)).GetOutputCallbacks(@as(*const IDebugClient4, @ptrCast(self)), Callbacks); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient4_SetOutputCallbacks(self: *const T, Callbacks: ?*IDebugOutputCallbacks) HRESULT { return @as(*const IDebugClient4.VTable, @ptrCast(self.vtable)).SetOutputCallbacks(@as(*const IDebugClient4, @ptrCast(self)), Callbacks); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient4_GetOutputMask(self: *const T, Mask: ?*u32) HRESULT { return @as(*const IDebugClient4.VTable, @ptrCast(self.vtable)).GetOutputMask(@as(*const IDebugClient4, @ptrCast(self)), Mask); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient4_SetOutputMask(self: *const T, Mask: u32) HRESULT { return @as(*const IDebugClient4.VTable, @ptrCast(self.vtable)).SetOutputMask(@as(*const IDebugClient4, @ptrCast(self)), Mask); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient4_GetOtherOutputMask(self: *const T, Client: ?*IDebugClient, Mask: ?*u32) HRESULT { return @as(*const IDebugClient4.VTable, @ptrCast(self.vtable)).GetOtherOutputMask(@as(*const IDebugClient4, @ptrCast(self)), Client, Mask); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient4_SetOtherOutputMask(self: *const T, Client: ?*IDebugClient, Mask: u32) HRESULT { return @as(*const IDebugClient4.VTable, @ptrCast(self.vtable)).SetOtherOutputMask(@as(*const IDebugClient4, @ptrCast(self)), Client, Mask); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient4_GetOutputWidth(self: *const T, Columns: ?*u32) HRESULT { return @as(*const IDebugClient4.VTable, @ptrCast(self.vtable)).GetOutputWidth(@as(*const IDebugClient4, @ptrCast(self)), Columns); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient4_SetOutputWidth(self: *const T, Columns: u32) HRESULT { return @as(*const IDebugClient4.VTable, @ptrCast(self.vtable)).SetOutputWidth(@as(*const IDebugClient4, @ptrCast(self)), Columns); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient4_GetOutputLinePrefix(self: *const T, Buffer: ?[*:0]u8, BufferSize: u32, PrefixSize: ?*u32) HRESULT { return @as(*const IDebugClient4.VTable, @ptrCast(self.vtable)).GetOutputLinePrefix(@as(*const IDebugClient4, @ptrCast(self)), Buffer, BufferSize, PrefixSize); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient4_SetOutputLinePrefix(self: *const T, Prefix: ?[*:0]const u8) HRESULT { return @as(*const IDebugClient4.VTable, @ptrCast(self.vtable)).SetOutputLinePrefix(@as(*const IDebugClient4, @ptrCast(self)), Prefix); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient4_GetIdentity(self: *const T, Buffer: ?[*:0]u8, BufferSize: u32, IdentitySize: ?*u32) HRESULT { return @as(*const IDebugClient4.VTable, @ptrCast(self.vtable)).GetIdentity(@as(*const IDebugClient4, @ptrCast(self)), Buffer, BufferSize, IdentitySize); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient4_OutputIdentity(self: *const T, OutputControl: u32, Flags: u32, Format: ?[*:0]const u8) HRESULT { return @as(*const IDebugClient4.VTable, @ptrCast(self.vtable)).OutputIdentity(@as(*const IDebugClient4, @ptrCast(self)), OutputControl, Flags, Format); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient4_GetEventCallbacks(self: *const T, Callbacks: ?*?*IDebugEventCallbacks) HRESULT { return @as(*const IDebugClient4.VTable, @ptrCast(self.vtable)).GetEventCallbacks(@as(*const IDebugClient4, @ptrCast(self)), Callbacks); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient4_SetEventCallbacks(self: *const T, Callbacks: ?*IDebugEventCallbacks) HRESULT { return @as(*const IDebugClient4.VTable, @ptrCast(self.vtable)).SetEventCallbacks(@as(*const IDebugClient4, @ptrCast(self)), Callbacks); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient4_FlushCallbacks(self: *const T) HRESULT { return @as(*const IDebugClient4.VTable, @ptrCast(self.vtable)).FlushCallbacks(@as(*const IDebugClient4, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient4_WriteDumpFile2(self: *const T, DumpFile: ?[*:0]const u8, Qualifier: u32, FormatFlags: u32, Comment: ?[*:0]const u8) HRESULT { return @as(*const IDebugClient4.VTable, @ptrCast(self.vtable)).WriteDumpFile2(@as(*const IDebugClient4, @ptrCast(self)), DumpFile, Qualifier, FormatFlags, Comment); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient4_AddDumpInformationFile(self: *const T, InfoFile: ?[*:0]const u8, Type: u32) HRESULT { return @as(*const IDebugClient4.VTable, @ptrCast(self.vtable)).AddDumpInformationFile(@as(*const IDebugClient4, @ptrCast(self)), InfoFile, Type); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient4_EndProcessServer(self: *const T, Server: u64) HRESULT { return @as(*const IDebugClient4.VTable, @ptrCast(self.vtable)).EndProcessServer(@as(*const IDebugClient4, @ptrCast(self)), Server); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient4_WaitForProcessServerEnd(self: *const T, Timeout: u32) HRESULT { return @as(*const IDebugClient4.VTable, @ptrCast(self.vtable)).WaitForProcessServerEnd(@as(*const IDebugClient4, @ptrCast(self)), Timeout); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient4_IsKernelDebuggerEnabled(self: *const T) HRESULT { return @as(*const IDebugClient4.VTable, @ptrCast(self.vtable)).IsKernelDebuggerEnabled(@as(*const IDebugClient4, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient4_TerminateCurrentProcess(self: *const T) HRESULT { return @as(*const IDebugClient4.VTable, @ptrCast(self.vtable)).TerminateCurrentProcess(@as(*const IDebugClient4, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient4_DetachCurrentProcess(self: *const T) HRESULT { return @as(*const IDebugClient4.VTable, @ptrCast(self.vtable)).DetachCurrentProcess(@as(*const IDebugClient4, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient4_AbandonCurrentProcess(self: *const T) HRESULT { return @as(*const IDebugClient4.VTable, @ptrCast(self.vtable)).AbandonCurrentProcess(@as(*const IDebugClient4, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient4_GetRunningProcessSystemIdByExecutableNameWide(self: *const T, Server: u64, ExeName: ?[*:0]const u16, Flags: u32, Id: ?*u32) HRESULT { return @as(*const IDebugClient4.VTable, @ptrCast(self.vtable)).GetRunningProcessSystemIdByExecutableNameWide(@as(*const IDebugClient4, @ptrCast(self)), Server, ExeName, Flags, Id); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient4_GetRunningProcessDescriptionWide(self: *const T, Server: u64, SystemId: u32, Flags: u32, ExeName: ?[*:0]u16, ExeNameSize: u32, ActualExeNameSize: ?*u32, Description: ?[*:0]u16, DescriptionSize: u32, ActualDescriptionSize: ?*u32) HRESULT { return @as(*const IDebugClient4.VTable, @ptrCast(self.vtable)).GetRunningProcessDescriptionWide(@as(*const IDebugClient4, @ptrCast(self)), Server, SystemId, Flags, ExeName, ExeNameSize, ActualExeNameSize, Description, DescriptionSize, ActualDescriptionSize); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient4_CreateProcessWide(self: *const T, Server: u64, CommandLine: ?PWSTR, CreateFlags: u32) HRESULT { return @as(*const IDebugClient4.VTable, @ptrCast(self.vtable)).CreateProcessWide(@as(*const IDebugClient4, @ptrCast(self)), Server, CommandLine, CreateFlags); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient4_CreateProcessAndAttachWide(self: *const T, Server: u64, CommandLine: ?PWSTR, CreateFlags: u32, ProcessId: u32, AttachFlags: u32) HRESULT { return @as(*const IDebugClient4.VTable, @ptrCast(self.vtable)).CreateProcessAndAttachWide(@as(*const IDebugClient4, @ptrCast(self)), Server, CommandLine, CreateFlags, ProcessId, AttachFlags); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient4_OpenDumpFileWide(self: *const T, FileName: ?[*:0]const u16, FileHandle: u64) HRESULT { return @as(*const IDebugClient4.VTable, @ptrCast(self.vtable)).OpenDumpFileWide(@as(*const IDebugClient4, @ptrCast(self)), FileName, FileHandle); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient4_WriteDumpFileWide(self: *const T, FileName: ?[*:0]const u16, FileHandle: u64, Qualifier: u32, FormatFlags: u32, Comment: ?[*:0]const u16) HRESULT { return @as(*const IDebugClient4.VTable, @ptrCast(self.vtable)).WriteDumpFileWide(@as(*const IDebugClient4, @ptrCast(self)), FileName, FileHandle, Qualifier, FormatFlags, Comment); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient4_AddDumpInformationFileWide(self: *const T, FileName: ?[*:0]const u16, FileHandle: u64, Type: u32) HRESULT { return @as(*const IDebugClient4.VTable, @ptrCast(self.vtable)).AddDumpInformationFileWide(@as(*const IDebugClient4, @ptrCast(self)), FileName, FileHandle, Type); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient4_GetNumberDumpFiles(self: *const T, Number: ?*u32) HRESULT { return @as(*const IDebugClient4.VTable, @ptrCast(self.vtable)).GetNumberDumpFiles(@as(*const IDebugClient4, @ptrCast(self)), Number); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient4_GetDumpFile(self: *const T, Index: u32, Buffer: ?[*:0]u8, BufferSize: u32, NameSize: ?*u32, Handle: ?*u64, Type: ?*u32) HRESULT { return @as(*const IDebugClient4.VTable, @ptrCast(self.vtable)).GetDumpFile(@as(*const IDebugClient4, @ptrCast(self)), Index, Buffer, BufferSize, NameSize, Handle, Type); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient4_GetDumpFileWide(self: *const T, Index: u32, Buffer: ?[*:0]u16, BufferSize: u32, NameSize: ?*u32, Handle: ?*u64, Type: ?*u32) HRESULT { return @as(*const IDebugClient4.VTable, @ptrCast(self.vtable)).GetDumpFileWide(@as(*const IDebugClient4, @ptrCast(self)), Index, Buffer, BufferSize, NameSize, Handle, Type); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IDebugClient5_Value = Guid.initString("e3acb9d7-7ec2-4f0c-a0da-e81e0cbbe628"); pub const IID_IDebugClient5 = &IID_IDebugClient5_Value; pub const IDebugClient5 = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, AttachKernel: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient5, Flags: u32, ConnectOptions: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient5, Flags: u32, ConnectOptions: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetKernelConnectionOptions: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient5, Buffer: ?[*:0]u8, BufferSize: u32, OptionsSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient5, Buffer: ?[*:0]u8, BufferSize: u32, OptionsSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetKernelConnectionOptions: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient5, Options: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient5, Options: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, StartProcessServer: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient5, Flags: u32, Options: ?[*:0]const u8, Reserved: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient5, Flags: u32, Options: ?[*:0]const u8, Reserved: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, ConnectProcessServer: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient5, RemoteOptions: ?[*:0]const u8, Server: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient5, RemoteOptions: ?[*:0]const u8, Server: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, DisconnectProcessServer: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient5, Server: u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient5, Server: u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetRunningProcessSystemIds: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient5, Server: u64, Ids: ?[*]u32, Count: u32, ActualCount: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient5, Server: u64, Ids: ?[*]u32, Count: u32, ActualCount: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetRunningProcessSystemIdByExecutableName: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient5, Server: u64, ExeName: ?[*:0]const u8, Flags: u32, Id: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient5, Server: u64, ExeName: ?[*:0]const u8, Flags: u32, Id: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetRunningProcessDescription: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient5, Server: u64, SystemId: u32, Flags: u32, ExeName: ?[*:0]u8, ExeNameSize: u32, ActualExeNameSize: ?*u32, Description: ?[*:0]u8, DescriptionSize: u32, ActualDescriptionSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient5, Server: u64, SystemId: u32, Flags: u32, ExeName: ?[*:0]u8, ExeNameSize: u32, ActualExeNameSize: ?*u32, Description: ?[*:0]u8, DescriptionSize: u32, ActualDescriptionSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, AttachProcess: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient5, Server: u64, ProcessId: u32, AttachFlags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient5, Server: u64, ProcessId: u32, AttachFlags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, CreateProcessA: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient5, Server: u64, CommandLine: ?PSTR, CreateFlags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient5, Server: u64, CommandLine: ?PSTR, CreateFlags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, CreateProcessAndAttach: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient5, Server: u64, CommandLine: ?PSTR, CreateFlags: u32, ProcessId: u32, AttachFlags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient5, Server: u64, CommandLine: ?PSTR, CreateFlags: u32, ProcessId: u32, AttachFlags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetProcessOptions: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient5, Options: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient5, Options: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, AddProcessOptions: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient5, Options: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient5, Options: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, RemoveProcessOptions: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient5, Options: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient5, Options: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetProcessOptions: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient5, Options: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient5, Options: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, OpenDumpFile: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient5, DumpFile: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient5, DumpFile: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, WriteDumpFile: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient5, DumpFile: ?[*:0]const u8, Qualifier: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient5, DumpFile: ?[*:0]const u8, Qualifier: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, ConnectSession: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient5, Flags: u32, HistoryLimit: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient5, Flags: u32, HistoryLimit: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, StartServer: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient5, Options: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient5, Options: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, OutputServers: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient5, OutputControl: u32, Machine: ?[*:0]const u8, Flags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient5, OutputControl: u32, Machine: ?[*:0]const u8, Flags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, TerminateProcesses: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient5, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient5, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, DetachProcesses: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient5, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient5, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, EndSession: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient5, Flags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient5, Flags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetExitCode: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient5, Code: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient5, Code: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, DispatchCallbacks: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient5, Timeout: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient5, Timeout: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, ExitDispatch: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient5, Client: ?*IDebugClient, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient5, Client: ?*IDebugClient, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, CreateClient: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient5, Client: ?*?*IDebugClient, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient5, Client: ?*?*IDebugClient, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetInputCallbacks: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient5, Callbacks: ?*?*IDebugInputCallbacks, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient5, Callbacks: ?*?*IDebugInputCallbacks, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetInputCallbacks: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient5, Callbacks: ?*IDebugInputCallbacks, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient5, Callbacks: ?*IDebugInputCallbacks, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetOutputCallbacks: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient5, Callbacks: ?*?*IDebugOutputCallbacks, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient5, Callbacks: ?*?*IDebugOutputCallbacks, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetOutputCallbacks: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient5, Callbacks: ?*IDebugOutputCallbacks, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient5, Callbacks: ?*IDebugOutputCallbacks, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetOutputMask: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient5, Mask: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient5, Mask: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetOutputMask: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient5, Mask: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient5, Mask: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetOtherOutputMask: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient5, Client: ?*IDebugClient, Mask: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient5, Client: ?*IDebugClient, Mask: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetOtherOutputMask: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient5, Client: ?*IDebugClient, Mask: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient5, Client: ?*IDebugClient, Mask: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetOutputWidth: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient5, Columns: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient5, Columns: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetOutputWidth: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient5, Columns: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient5, Columns: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetOutputLinePrefix: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient5, Buffer: ?[*:0]u8, BufferSize: u32, PrefixSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient5, Buffer: ?[*:0]u8, BufferSize: u32, PrefixSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetOutputLinePrefix: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient5, Prefix: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient5, Prefix: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetIdentity: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient5, Buffer: ?[*:0]u8, BufferSize: u32, IdentitySize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient5, Buffer: ?[*:0]u8, BufferSize: u32, IdentitySize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, OutputIdentity: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient5, OutputControl: u32, Flags: u32, Format: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient5, OutputControl: u32, Flags: u32, Format: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetEventCallbacks: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient5, Callbacks: ?*?*IDebugEventCallbacks, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient5, Callbacks: ?*?*IDebugEventCallbacks, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetEventCallbacks: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient5, Callbacks: ?*IDebugEventCallbacks, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient5, Callbacks: ?*IDebugEventCallbacks, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, FlushCallbacks: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient5, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient5, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, WriteDumpFile2: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient5, DumpFile: ?[*:0]const u8, Qualifier: u32, FormatFlags: u32, Comment: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient5, DumpFile: ?[*:0]const u8, Qualifier: u32, FormatFlags: u32, Comment: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, AddDumpInformationFile: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient5, InfoFile: ?[*:0]const u8, Type: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient5, InfoFile: ?[*:0]const u8, Type: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, EndProcessServer: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient5, Server: u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient5, Server: u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, WaitForProcessServerEnd: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient5, Timeout: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient5, Timeout: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, IsKernelDebuggerEnabled: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient5, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient5, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, TerminateCurrentProcess: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient5, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient5, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, DetachCurrentProcess: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient5, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient5, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, AbandonCurrentProcess: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient5, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient5, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetRunningProcessSystemIdByExecutableNameWide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient5, Server: u64, ExeName: ?[*:0]const u16, Flags: u32, Id: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient5, Server: u64, ExeName: ?[*:0]const u16, Flags: u32, Id: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetRunningProcessDescriptionWide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient5, Server: u64, SystemId: u32, Flags: u32, ExeName: ?[*:0]u16, ExeNameSize: u32, ActualExeNameSize: ?*u32, Description: ?[*:0]u16, DescriptionSize: u32, ActualDescriptionSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient5, Server: u64, SystemId: u32, Flags: u32, ExeName: ?[*:0]u16, ExeNameSize: u32, ActualExeNameSize: ?*u32, Description: ?[*:0]u16, DescriptionSize: u32, ActualDescriptionSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, CreateProcessWide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient5, Server: u64, CommandLine: ?PWSTR, CreateFlags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient5, Server: u64, CommandLine: ?PWSTR, CreateFlags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, CreateProcessAndAttachWide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient5, Server: u64, CommandLine: ?PWSTR, CreateFlags: u32, ProcessId: u32, AttachFlags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient5, Server: u64, CommandLine: ?PWSTR, CreateFlags: u32, ProcessId: u32, AttachFlags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, OpenDumpFileWide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient5, FileName: ?[*:0]const u16, FileHandle: u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient5, FileName: ?[*:0]const u16, FileHandle: u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, WriteDumpFileWide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient5, FileName: ?[*:0]const u16, FileHandle: u64, Qualifier: u32, FormatFlags: u32, Comment: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient5, FileName: ?[*:0]const u16, FileHandle: u64, Qualifier: u32, FormatFlags: u32, Comment: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, AddDumpInformationFileWide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient5, FileName: ?[*:0]const u16, FileHandle: u64, Type: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient5, FileName: ?[*:0]const u16, FileHandle: u64, Type: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetNumberDumpFiles: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient5, Number: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient5, Number: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetDumpFile: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient5, Index: u32, Buffer: ?[*:0]u8, BufferSize: u32, NameSize: ?*u32, Handle: ?*u64, Type: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient5, Index: u32, Buffer: ?[*:0]u8, BufferSize: u32, NameSize: ?*u32, Handle: ?*u64, Type: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetDumpFileWide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient5, Index: u32, Buffer: ?[*:0]u16, BufferSize: u32, NameSize: ?*u32, Handle: ?*u64, Type: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient5, Index: u32, Buffer: ?[*:0]u16, BufferSize: u32, NameSize: ?*u32, Handle: ?*u64, Type: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, AttachKernelWide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient5, Flags: u32, ConnectOptions: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient5, Flags: u32, ConnectOptions: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetKernelConnectionOptionsWide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient5, Buffer: ?[*:0]u16, BufferSize: u32, OptionsSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient5, Buffer: ?[*:0]u16, BufferSize: u32, OptionsSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetKernelConnectionOptionsWide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient5, Options: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient5, Options: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, StartProcessServerWide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient5, Flags: u32, Options: ?[*:0]const u16, Reserved: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient5, Flags: u32, Options: ?[*:0]const u16, Reserved: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, ConnectProcessServerWide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient5, RemoteOptions: ?[*:0]const u16, Server: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient5, RemoteOptions: ?[*:0]const u16, Server: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, StartServerWide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient5, Options: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient5, Options: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, OutputServersWide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient5, OutputControl: u32, Machine: ?[*:0]const u16, Flags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient5, OutputControl: u32, Machine: ?[*:0]const u16, Flags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetOutputCallbacksWide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient5, Callbacks: ?*?*IDebugOutputCallbacksWide, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient5, Callbacks: ?*?*IDebugOutputCallbacksWide, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetOutputCallbacksWide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient5, Callbacks: ?*IDebugOutputCallbacksWide, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient5, Callbacks: ?*IDebugOutputCallbacksWide, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetOutputLinePrefixWide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient5, Buffer: ?[*:0]u16, BufferSize: u32, PrefixSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient5, Buffer: ?[*:0]u16, BufferSize: u32, PrefixSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetOutputLinePrefixWide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient5, Prefix: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient5, Prefix: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetIdentityWide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient5, Buffer: ?[*:0]u16, BufferSize: u32, IdentitySize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient5, Buffer: ?[*:0]u16, BufferSize: u32, IdentitySize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, OutputIdentityWide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient5, OutputControl: u32, Flags: u32, Format: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient5, OutputControl: u32, Flags: u32, Format: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetEventCallbacksWide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient5, Callbacks: ?*?*IDebugEventCallbacksWide, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient5, Callbacks: ?*?*IDebugEventCallbacksWide, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetEventCallbacksWide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient5, Callbacks: ?*IDebugEventCallbacksWide, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient5, Callbacks: ?*IDebugEventCallbacksWide, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, CreateProcess2: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient5, Server: u64, CommandLine: ?PSTR, // TODO: what to do with BytesParamIndex 3? OptionsBuffer: ?*anyopaque, OptionsBufferSize: u32, InitialDirectory: ?[*:0]const u8, Environment: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient5, Server: u64, CommandLine: ?PSTR, // TODO: what to do with BytesParamIndex 3? OptionsBuffer: ?*anyopaque, OptionsBufferSize: u32, InitialDirectory: ?[*:0]const u8, Environment: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, CreateProcess2Wide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient5, Server: u64, CommandLine: ?PWSTR, // TODO: what to do with BytesParamIndex 3? OptionsBuffer: ?*anyopaque, OptionsBufferSize: u32, InitialDirectory: ?[*:0]const u16, Environment: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient5, Server: u64, CommandLine: ?PWSTR, // TODO: what to do with BytesParamIndex 3? OptionsBuffer: ?*anyopaque, OptionsBufferSize: u32, InitialDirectory: ?[*:0]const u16, Environment: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, CreateProcessAndAttach2: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient5, Server: u64, CommandLine: ?PSTR, // TODO: what to do with BytesParamIndex 3? OptionsBuffer: ?*anyopaque, OptionsBufferSize: u32, InitialDirectory: ?[*:0]const u8, Environment: ?[*:0]const u8, ProcessId: u32, AttachFlags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient5, Server: u64, CommandLine: ?PSTR, // TODO: what to do with BytesParamIndex 3? OptionsBuffer: ?*anyopaque, OptionsBufferSize: u32, InitialDirectory: ?[*:0]const u8, Environment: ?[*:0]const u8, ProcessId: u32, AttachFlags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, CreateProcessAndAttach2Wide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient5, Server: u64, CommandLine: ?PWSTR, // TODO: what to do with BytesParamIndex 3? OptionsBuffer: ?*anyopaque, OptionsBufferSize: u32, InitialDirectory: ?[*:0]const u16, Environment: ?[*:0]const u16, ProcessId: u32, AttachFlags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient5, Server: u64, CommandLine: ?PWSTR, // TODO: what to do with BytesParamIndex 3? OptionsBuffer: ?*anyopaque, OptionsBufferSize: u32, InitialDirectory: ?[*:0]const u16, Environment: ?[*:0]const u16, ProcessId: u32, AttachFlags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, PushOutputLinePrefix: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient5, NewPrefix: ?[*:0]const u8, Handle: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient5, NewPrefix: ?[*:0]const u8, Handle: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, PushOutputLinePrefixWide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient5, NewPrefix: ?[*:0]const u16, Handle: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient5, NewPrefix: ?[*:0]const u16, Handle: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, PopOutputLinePrefix: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient5, Handle: u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient5, Handle: u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetNumberInputCallbacks: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient5, Count: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient5, Count: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetNumberOutputCallbacks: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient5, Count: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient5, Count: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetNumberEventCallbacks: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient5, EventFlags: u32, Count: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient5, EventFlags: u32, Count: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetQuitLockString: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient5, Buffer: ?[*:0]u8, BufferSize: u32, StringSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient5, Buffer: ?[*:0]u8, BufferSize: u32, StringSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetQuitLockString: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient5, String: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient5, String: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetQuitLockStringWide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient5, Buffer: ?[*:0]u16, BufferSize: u32, StringSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient5, Buffer: ?[*:0]u16, BufferSize: u32, StringSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetQuitLockStringWide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient5, String: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient5, String: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient5_AttachKernel(self: *const T, Flags: u32, ConnectOptions: ?[*:0]const u8) HRESULT { return @as(*const IDebugClient5.VTable, @ptrCast(self.vtable)).AttachKernel(@as(*const IDebugClient5, @ptrCast(self)), Flags, ConnectOptions); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient5_GetKernelConnectionOptions(self: *const T, Buffer: ?[*:0]u8, BufferSize: u32, OptionsSize: ?*u32) HRESULT { return @as(*const IDebugClient5.VTable, @ptrCast(self.vtable)).GetKernelConnectionOptions(@as(*const IDebugClient5, @ptrCast(self)), Buffer, BufferSize, OptionsSize); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient5_SetKernelConnectionOptions(self: *const T, Options: ?[*:0]const u8) HRESULT { return @as(*const IDebugClient5.VTable, @ptrCast(self.vtable)).SetKernelConnectionOptions(@as(*const IDebugClient5, @ptrCast(self)), Options); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient5_StartProcessServer(self: *const T, Flags: u32, Options: ?[*:0]const u8, Reserved: ?*anyopaque) HRESULT { return @as(*const IDebugClient5.VTable, @ptrCast(self.vtable)).StartProcessServer(@as(*const IDebugClient5, @ptrCast(self)), Flags, Options, Reserved); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient5_ConnectProcessServer(self: *const T, RemoteOptions: ?[*:0]const u8, Server: ?*u64) HRESULT { return @as(*const IDebugClient5.VTable, @ptrCast(self.vtable)).ConnectProcessServer(@as(*const IDebugClient5, @ptrCast(self)), RemoteOptions, Server); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient5_DisconnectProcessServer(self: *const T, Server: u64) HRESULT { return @as(*const IDebugClient5.VTable, @ptrCast(self.vtable)).DisconnectProcessServer(@as(*const IDebugClient5, @ptrCast(self)), Server); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient5_GetRunningProcessSystemIds(self: *const T, Server: u64, Ids: ?[*]u32, Count: u32, ActualCount: ?*u32) HRESULT { return @as(*const IDebugClient5.VTable, @ptrCast(self.vtable)).GetRunningProcessSystemIds(@as(*const IDebugClient5, @ptrCast(self)), Server, Ids, Count, ActualCount); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient5_GetRunningProcessSystemIdByExecutableName(self: *const T, Server: u64, ExeName: ?[*:0]const u8, Flags: u32, Id: ?*u32) HRESULT { return @as(*const IDebugClient5.VTable, @ptrCast(self.vtable)).GetRunningProcessSystemIdByExecutableName(@as(*const IDebugClient5, @ptrCast(self)), Server, ExeName, Flags, Id); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient5_GetRunningProcessDescription(self: *const T, Server: u64, SystemId: u32, Flags: u32, ExeName: ?[*:0]u8, ExeNameSize: u32, ActualExeNameSize: ?*u32, Description: ?[*:0]u8, DescriptionSize: u32, ActualDescriptionSize: ?*u32) HRESULT { return @as(*const IDebugClient5.VTable, @ptrCast(self.vtable)).GetRunningProcessDescription(@as(*const IDebugClient5, @ptrCast(self)), Server, SystemId, Flags, ExeName, ExeNameSize, ActualExeNameSize, Description, DescriptionSize, ActualDescriptionSize); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient5_AttachProcess(self: *const T, Server: u64, ProcessId: u32, AttachFlags: u32) HRESULT { return @as(*const IDebugClient5.VTable, @ptrCast(self.vtable)).AttachProcess(@as(*const IDebugClient5, @ptrCast(self)), Server, ProcessId, AttachFlags); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient5_CreateProcessA(self: *const T, Server: u64, CommandLine: ?PSTR, CreateFlags: u32) HRESULT { return @as(*const IDebugClient5.VTable, @ptrCast(self.vtable)).CreateProcessA(@as(*const IDebugClient5, @ptrCast(self)), Server, CommandLine, CreateFlags); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient5_CreateProcessAndAttach(self: *const T, Server: u64, CommandLine: ?PSTR, CreateFlags: u32, ProcessId: u32, AttachFlags: u32) HRESULT { return @as(*const IDebugClient5.VTable, @ptrCast(self.vtable)).CreateProcessAndAttach(@as(*const IDebugClient5, @ptrCast(self)), Server, CommandLine, CreateFlags, ProcessId, AttachFlags); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient5_GetProcessOptions(self: *const T, Options: ?*u32) HRESULT { return @as(*const IDebugClient5.VTable, @ptrCast(self.vtable)).GetProcessOptions(@as(*const IDebugClient5, @ptrCast(self)), Options); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient5_AddProcessOptions(self: *const T, Options: u32) HRESULT { return @as(*const IDebugClient5.VTable, @ptrCast(self.vtable)).AddProcessOptions(@as(*const IDebugClient5, @ptrCast(self)), Options); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient5_RemoveProcessOptions(self: *const T, Options: u32) HRESULT { return @as(*const IDebugClient5.VTable, @ptrCast(self.vtable)).RemoveProcessOptions(@as(*const IDebugClient5, @ptrCast(self)), Options); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient5_SetProcessOptions(self: *const T, Options: u32) HRESULT { return @as(*const IDebugClient5.VTable, @ptrCast(self.vtable)).SetProcessOptions(@as(*const IDebugClient5, @ptrCast(self)), Options); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient5_OpenDumpFile(self: *const T, DumpFile: ?[*:0]const u8) HRESULT { return @as(*const IDebugClient5.VTable, @ptrCast(self.vtable)).OpenDumpFile(@as(*const IDebugClient5, @ptrCast(self)), DumpFile); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient5_WriteDumpFile(self: *const T, DumpFile: ?[*:0]const u8, Qualifier: u32) HRESULT { return @as(*const IDebugClient5.VTable, @ptrCast(self.vtable)).WriteDumpFile(@as(*const IDebugClient5, @ptrCast(self)), DumpFile, Qualifier); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient5_ConnectSession(self: *const T, Flags: u32, HistoryLimit: u32) HRESULT { return @as(*const IDebugClient5.VTable, @ptrCast(self.vtable)).ConnectSession(@as(*const IDebugClient5, @ptrCast(self)), Flags, HistoryLimit); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient5_StartServer(self: *const T, Options: ?[*:0]const u8) HRESULT { return @as(*const IDebugClient5.VTable, @ptrCast(self.vtable)).StartServer(@as(*const IDebugClient5, @ptrCast(self)), Options); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient5_OutputServers(self: *const T, OutputControl: u32, Machine: ?[*:0]const u8, Flags: u32) HRESULT { return @as(*const IDebugClient5.VTable, @ptrCast(self.vtable)).OutputServers(@as(*const IDebugClient5, @ptrCast(self)), OutputControl, Machine, Flags); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient5_TerminateProcesses(self: *const T) HRESULT { return @as(*const IDebugClient5.VTable, @ptrCast(self.vtable)).TerminateProcesses(@as(*const IDebugClient5, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient5_DetachProcesses(self: *const T) HRESULT { return @as(*const IDebugClient5.VTable, @ptrCast(self.vtable)).DetachProcesses(@as(*const IDebugClient5, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient5_EndSession(self: *const T, Flags: u32) HRESULT { return @as(*const IDebugClient5.VTable, @ptrCast(self.vtable)).EndSession(@as(*const IDebugClient5, @ptrCast(self)), Flags); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient5_GetExitCode(self: *const T, Code: ?*u32) HRESULT { return @as(*const IDebugClient5.VTable, @ptrCast(self.vtable)).GetExitCode(@as(*const IDebugClient5, @ptrCast(self)), Code); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient5_DispatchCallbacks(self: *const T, Timeout: u32) HRESULT { return @as(*const IDebugClient5.VTable, @ptrCast(self.vtable)).DispatchCallbacks(@as(*const IDebugClient5, @ptrCast(self)), Timeout); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient5_ExitDispatch(self: *const T, Client: ?*IDebugClient) HRESULT { return @as(*const IDebugClient5.VTable, @ptrCast(self.vtable)).ExitDispatch(@as(*const IDebugClient5, @ptrCast(self)), Client); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient5_CreateClient(self: *const T, Client: ?*?*IDebugClient) HRESULT { return @as(*const IDebugClient5.VTable, @ptrCast(self.vtable)).CreateClient(@as(*const IDebugClient5, @ptrCast(self)), Client); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient5_GetInputCallbacks(self: *const T, Callbacks: ?*?*IDebugInputCallbacks) HRESULT { return @as(*const IDebugClient5.VTable, @ptrCast(self.vtable)).GetInputCallbacks(@as(*const IDebugClient5, @ptrCast(self)), Callbacks); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient5_SetInputCallbacks(self: *const T, Callbacks: ?*IDebugInputCallbacks) HRESULT { return @as(*const IDebugClient5.VTable, @ptrCast(self.vtable)).SetInputCallbacks(@as(*const IDebugClient5, @ptrCast(self)), Callbacks); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient5_GetOutputCallbacks(self: *const T, Callbacks: ?*?*IDebugOutputCallbacks) HRESULT { return @as(*const IDebugClient5.VTable, @ptrCast(self.vtable)).GetOutputCallbacks(@as(*const IDebugClient5, @ptrCast(self)), Callbacks); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient5_SetOutputCallbacks(self: *const T, Callbacks: ?*IDebugOutputCallbacks) HRESULT { return @as(*const IDebugClient5.VTable, @ptrCast(self.vtable)).SetOutputCallbacks(@as(*const IDebugClient5, @ptrCast(self)), Callbacks); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient5_GetOutputMask(self: *const T, Mask: ?*u32) HRESULT { return @as(*const IDebugClient5.VTable, @ptrCast(self.vtable)).GetOutputMask(@as(*const IDebugClient5, @ptrCast(self)), Mask); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient5_SetOutputMask(self: *const T, Mask: u32) HRESULT { return @as(*const IDebugClient5.VTable, @ptrCast(self.vtable)).SetOutputMask(@as(*const IDebugClient5, @ptrCast(self)), Mask); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient5_GetOtherOutputMask(self: *const T, Client: ?*IDebugClient, Mask: ?*u32) HRESULT { return @as(*const IDebugClient5.VTable, @ptrCast(self.vtable)).GetOtherOutputMask(@as(*const IDebugClient5, @ptrCast(self)), Client, Mask); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient5_SetOtherOutputMask(self: *const T, Client: ?*IDebugClient, Mask: u32) HRESULT { return @as(*const IDebugClient5.VTable, @ptrCast(self.vtable)).SetOtherOutputMask(@as(*const IDebugClient5, @ptrCast(self)), Client, Mask); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient5_GetOutputWidth(self: *const T, Columns: ?*u32) HRESULT { return @as(*const IDebugClient5.VTable, @ptrCast(self.vtable)).GetOutputWidth(@as(*const IDebugClient5, @ptrCast(self)), Columns); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient5_SetOutputWidth(self: *const T, Columns: u32) HRESULT { return @as(*const IDebugClient5.VTable, @ptrCast(self.vtable)).SetOutputWidth(@as(*const IDebugClient5, @ptrCast(self)), Columns); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient5_GetOutputLinePrefix(self: *const T, Buffer: ?[*:0]u8, BufferSize: u32, PrefixSize: ?*u32) HRESULT { return @as(*const IDebugClient5.VTable, @ptrCast(self.vtable)).GetOutputLinePrefix(@as(*const IDebugClient5, @ptrCast(self)), Buffer, BufferSize, PrefixSize); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient5_SetOutputLinePrefix(self: *const T, Prefix: ?[*:0]const u8) HRESULT { return @as(*const IDebugClient5.VTable, @ptrCast(self.vtable)).SetOutputLinePrefix(@as(*const IDebugClient5, @ptrCast(self)), Prefix); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient5_GetIdentity(self: *const T, Buffer: ?[*:0]u8, BufferSize: u32, IdentitySize: ?*u32) HRESULT { return @as(*const IDebugClient5.VTable, @ptrCast(self.vtable)).GetIdentity(@as(*const IDebugClient5, @ptrCast(self)), Buffer, BufferSize, IdentitySize); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient5_OutputIdentity(self: *const T, OutputControl: u32, Flags: u32, Format: ?[*:0]const u8) HRESULT { return @as(*const IDebugClient5.VTable, @ptrCast(self.vtable)).OutputIdentity(@as(*const IDebugClient5, @ptrCast(self)), OutputControl, Flags, Format); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient5_GetEventCallbacks(self: *const T, Callbacks: ?*?*IDebugEventCallbacks) HRESULT { return @as(*const IDebugClient5.VTable, @ptrCast(self.vtable)).GetEventCallbacks(@as(*const IDebugClient5, @ptrCast(self)), Callbacks); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient5_SetEventCallbacks(self: *const T, Callbacks: ?*IDebugEventCallbacks) HRESULT { return @as(*const IDebugClient5.VTable, @ptrCast(self.vtable)).SetEventCallbacks(@as(*const IDebugClient5, @ptrCast(self)), Callbacks); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient5_FlushCallbacks(self: *const T) HRESULT { return @as(*const IDebugClient5.VTable, @ptrCast(self.vtable)).FlushCallbacks(@as(*const IDebugClient5, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient5_WriteDumpFile2(self: *const T, DumpFile: ?[*:0]const u8, Qualifier: u32, FormatFlags: u32, Comment: ?[*:0]const u8) HRESULT { return @as(*const IDebugClient5.VTable, @ptrCast(self.vtable)).WriteDumpFile2(@as(*const IDebugClient5, @ptrCast(self)), DumpFile, Qualifier, FormatFlags, Comment); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient5_AddDumpInformationFile(self: *const T, InfoFile: ?[*:0]const u8, Type: u32) HRESULT { return @as(*const IDebugClient5.VTable, @ptrCast(self.vtable)).AddDumpInformationFile(@as(*const IDebugClient5, @ptrCast(self)), InfoFile, Type); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient5_EndProcessServer(self: *const T, Server: u64) HRESULT { return @as(*const IDebugClient5.VTable, @ptrCast(self.vtable)).EndProcessServer(@as(*const IDebugClient5, @ptrCast(self)), Server); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient5_WaitForProcessServerEnd(self: *const T, Timeout: u32) HRESULT { return @as(*const IDebugClient5.VTable, @ptrCast(self.vtable)).WaitForProcessServerEnd(@as(*const IDebugClient5, @ptrCast(self)), Timeout); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient5_IsKernelDebuggerEnabled(self: *const T) HRESULT { return @as(*const IDebugClient5.VTable, @ptrCast(self.vtable)).IsKernelDebuggerEnabled(@as(*const IDebugClient5, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient5_TerminateCurrentProcess(self: *const T) HRESULT { return @as(*const IDebugClient5.VTable, @ptrCast(self.vtable)).TerminateCurrentProcess(@as(*const IDebugClient5, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient5_DetachCurrentProcess(self: *const T) HRESULT { return @as(*const IDebugClient5.VTable, @ptrCast(self.vtable)).DetachCurrentProcess(@as(*const IDebugClient5, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient5_AbandonCurrentProcess(self: *const T) HRESULT { return @as(*const IDebugClient5.VTable, @ptrCast(self.vtable)).AbandonCurrentProcess(@as(*const IDebugClient5, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient5_GetRunningProcessSystemIdByExecutableNameWide(self: *const T, Server: u64, ExeName: ?[*:0]const u16, Flags: u32, Id: ?*u32) HRESULT { return @as(*const IDebugClient5.VTable, @ptrCast(self.vtable)).GetRunningProcessSystemIdByExecutableNameWide(@as(*const IDebugClient5, @ptrCast(self)), Server, ExeName, Flags, Id); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient5_GetRunningProcessDescriptionWide(self: *const T, Server: u64, SystemId: u32, Flags: u32, ExeName: ?[*:0]u16, ExeNameSize: u32, ActualExeNameSize: ?*u32, Description: ?[*:0]u16, DescriptionSize: u32, ActualDescriptionSize: ?*u32) HRESULT { return @as(*const IDebugClient5.VTable, @ptrCast(self.vtable)).GetRunningProcessDescriptionWide(@as(*const IDebugClient5, @ptrCast(self)), Server, SystemId, Flags, ExeName, ExeNameSize, ActualExeNameSize, Description, DescriptionSize, ActualDescriptionSize); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient5_CreateProcessWide(self: *const T, Server: u64, CommandLine: ?PWSTR, CreateFlags: u32) HRESULT { return @as(*const IDebugClient5.VTable, @ptrCast(self.vtable)).CreateProcessWide(@as(*const IDebugClient5, @ptrCast(self)), Server, CommandLine, CreateFlags); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient5_CreateProcessAndAttachWide(self: *const T, Server: u64, CommandLine: ?PWSTR, CreateFlags: u32, ProcessId: u32, AttachFlags: u32) HRESULT { return @as(*const IDebugClient5.VTable, @ptrCast(self.vtable)).CreateProcessAndAttachWide(@as(*const IDebugClient5, @ptrCast(self)), Server, CommandLine, CreateFlags, ProcessId, AttachFlags); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient5_OpenDumpFileWide(self: *const T, FileName: ?[*:0]const u16, FileHandle: u64) HRESULT { return @as(*const IDebugClient5.VTable, @ptrCast(self.vtable)).OpenDumpFileWide(@as(*const IDebugClient5, @ptrCast(self)), FileName, FileHandle); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient5_WriteDumpFileWide(self: *const T, FileName: ?[*:0]const u16, FileHandle: u64, Qualifier: u32, FormatFlags: u32, Comment: ?[*:0]const u16) HRESULT { return @as(*const IDebugClient5.VTable, @ptrCast(self.vtable)).WriteDumpFileWide(@as(*const IDebugClient5, @ptrCast(self)), FileName, FileHandle, Qualifier, FormatFlags, Comment); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient5_AddDumpInformationFileWide(self: *const T, FileName: ?[*:0]const u16, FileHandle: u64, Type: u32) HRESULT { return @as(*const IDebugClient5.VTable, @ptrCast(self.vtable)).AddDumpInformationFileWide(@as(*const IDebugClient5, @ptrCast(self)), FileName, FileHandle, Type); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient5_GetNumberDumpFiles(self: *const T, Number: ?*u32) HRESULT { return @as(*const IDebugClient5.VTable, @ptrCast(self.vtable)).GetNumberDumpFiles(@as(*const IDebugClient5, @ptrCast(self)), Number); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient5_GetDumpFile(self: *const T, Index: u32, Buffer: ?[*:0]u8, BufferSize: u32, NameSize: ?*u32, Handle: ?*u64, Type: ?*u32) HRESULT { return @as(*const IDebugClient5.VTable, @ptrCast(self.vtable)).GetDumpFile(@as(*const IDebugClient5, @ptrCast(self)), Index, Buffer, BufferSize, NameSize, Handle, Type); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient5_GetDumpFileWide(self: *const T, Index: u32, Buffer: ?[*:0]u16, BufferSize: u32, NameSize: ?*u32, Handle: ?*u64, Type: ?*u32) HRESULT { return @as(*const IDebugClient5.VTable, @ptrCast(self.vtable)).GetDumpFileWide(@as(*const IDebugClient5, @ptrCast(self)), Index, Buffer, BufferSize, NameSize, Handle, Type); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient5_AttachKernelWide(self: *const T, Flags: u32, ConnectOptions: ?[*:0]const u16) HRESULT { return @as(*const IDebugClient5.VTable, @ptrCast(self.vtable)).AttachKernelWide(@as(*const IDebugClient5, @ptrCast(self)), Flags, ConnectOptions); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient5_GetKernelConnectionOptionsWide(self: *const T, Buffer: ?[*:0]u16, BufferSize: u32, OptionsSize: ?*u32) HRESULT { return @as(*const IDebugClient5.VTable, @ptrCast(self.vtable)).GetKernelConnectionOptionsWide(@as(*const IDebugClient5, @ptrCast(self)), Buffer, BufferSize, OptionsSize); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient5_SetKernelConnectionOptionsWide(self: *const T, Options: ?[*:0]const u16) HRESULT { return @as(*const IDebugClient5.VTable, @ptrCast(self.vtable)).SetKernelConnectionOptionsWide(@as(*const IDebugClient5, @ptrCast(self)), Options); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient5_StartProcessServerWide(self: *const T, Flags: u32, Options: ?[*:0]const u16, Reserved: ?*anyopaque) HRESULT { return @as(*const IDebugClient5.VTable, @ptrCast(self.vtable)).StartProcessServerWide(@as(*const IDebugClient5, @ptrCast(self)), Flags, Options, Reserved); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient5_ConnectProcessServerWide(self: *const T, RemoteOptions: ?[*:0]const u16, Server: ?*u64) HRESULT { return @as(*const IDebugClient5.VTable, @ptrCast(self.vtable)).ConnectProcessServerWide(@as(*const IDebugClient5, @ptrCast(self)), RemoteOptions, Server); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient5_StartServerWide(self: *const T, Options: ?[*:0]const u16) HRESULT { return @as(*const IDebugClient5.VTable, @ptrCast(self.vtable)).StartServerWide(@as(*const IDebugClient5, @ptrCast(self)), Options); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient5_OutputServersWide(self: *const T, OutputControl: u32, Machine: ?[*:0]const u16, Flags: u32) HRESULT { return @as(*const IDebugClient5.VTable, @ptrCast(self.vtable)).OutputServersWide(@as(*const IDebugClient5, @ptrCast(self)), OutputControl, Machine, Flags); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient5_GetOutputCallbacksWide(self: *const T, Callbacks: ?*?*IDebugOutputCallbacksWide) HRESULT { return @as(*const IDebugClient5.VTable, @ptrCast(self.vtable)).GetOutputCallbacksWide(@as(*const IDebugClient5, @ptrCast(self)), Callbacks); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient5_SetOutputCallbacksWide(self: *const T, Callbacks: ?*IDebugOutputCallbacksWide) HRESULT { return @as(*const IDebugClient5.VTable, @ptrCast(self.vtable)).SetOutputCallbacksWide(@as(*const IDebugClient5, @ptrCast(self)), Callbacks); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient5_GetOutputLinePrefixWide(self: *const T, Buffer: ?[*:0]u16, BufferSize: u32, PrefixSize: ?*u32) HRESULT { return @as(*const IDebugClient5.VTable, @ptrCast(self.vtable)).GetOutputLinePrefixWide(@as(*const IDebugClient5, @ptrCast(self)), Buffer, BufferSize, PrefixSize); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient5_SetOutputLinePrefixWide(self: *const T, Prefix: ?[*:0]const u16) HRESULT { return @as(*const IDebugClient5.VTable, @ptrCast(self.vtable)).SetOutputLinePrefixWide(@as(*const IDebugClient5, @ptrCast(self)), Prefix); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient5_GetIdentityWide(self: *const T, Buffer: ?[*:0]u16, BufferSize: u32, IdentitySize: ?*u32) HRESULT { return @as(*const IDebugClient5.VTable, @ptrCast(self.vtable)).GetIdentityWide(@as(*const IDebugClient5, @ptrCast(self)), Buffer, BufferSize, IdentitySize); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient5_OutputIdentityWide(self: *const T, OutputControl: u32, Flags: u32, Format: ?[*:0]const u16) HRESULT { return @as(*const IDebugClient5.VTable, @ptrCast(self.vtable)).OutputIdentityWide(@as(*const IDebugClient5, @ptrCast(self)), OutputControl, Flags, Format); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient5_GetEventCallbacksWide(self: *const T, Callbacks: ?*?*IDebugEventCallbacksWide) HRESULT { return @as(*const IDebugClient5.VTable, @ptrCast(self.vtable)).GetEventCallbacksWide(@as(*const IDebugClient5, @ptrCast(self)), Callbacks); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient5_SetEventCallbacksWide(self: *const T, Callbacks: ?*IDebugEventCallbacksWide) HRESULT { return @as(*const IDebugClient5.VTable, @ptrCast(self.vtable)).SetEventCallbacksWide(@as(*const IDebugClient5, @ptrCast(self)), Callbacks); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient5_CreateProcess2(self: *const T, Server: u64, CommandLine: ?PSTR, OptionsBuffer: ?*anyopaque, OptionsBufferSize: u32, InitialDirectory: ?[*:0]const u8, Environment: ?[*:0]const u8) HRESULT { return @as(*const IDebugClient5.VTable, @ptrCast(self.vtable)).CreateProcess2(@as(*const IDebugClient5, @ptrCast(self)), Server, CommandLine, OptionsBuffer, OptionsBufferSize, InitialDirectory, Environment); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient5_CreateProcess2Wide(self: *const T, Server: u64, CommandLine: ?PWSTR, OptionsBuffer: ?*anyopaque, OptionsBufferSize: u32, InitialDirectory: ?[*:0]const u16, Environment: ?[*:0]const u16) HRESULT { return @as(*const IDebugClient5.VTable, @ptrCast(self.vtable)).CreateProcess2Wide(@as(*const IDebugClient5, @ptrCast(self)), Server, CommandLine, OptionsBuffer, OptionsBufferSize, InitialDirectory, Environment); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient5_CreateProcessAndAttach2(self: *const T, Server: u64, CommandLine: ?PSTR, OptionsBuffer: ?*anyopaque, OptionsBufferSize: u32, InitialDirectory: ?[*:0]const u8, Environment: ?[*:0]const u8, ProcessId: u32, AttachFlags: u32) HRESULT { return @as(*const IDebugClient5.VTable, @ptrCast(self.vtable)).CreateProcessAndAttach2(@as(*const IDebugClient5, @ptrCast(self)), Server, CommandLine, OptionsBuffer, OptionsBufferSize, InitialDirectory, Environment, ProcessId, AttachFlags); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient5_CreateProcessAndAttach2Wide(self: *const T, Server: u64, CommandLine: ?PWSTR, OptionsBuffer: ?*anyopaque, OptionsBufferSize: u32, InitialDirectory: ?[*:0]const u16, Environment: ?[*:0]const u16, ProcessId: u32, AttachFlags: u32) HRESULT { return @as(*const IDebugClient5.VTable, @ptrCast(self.vtable)).CreateProcessAndAttach2Wide(@as(*const IDebugClient5, @ptrCast(self)), Server, CommandLine, OptionsBuffer, OptionsBufferSize, InitialDirectory, Environment, ProcessId, AttachFlags); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient5_PushOutputLinePrefix(self: *const T, NewPrefix: ?[*:0]const u8, Handle: ?*u64) HRESULT { return @as(*const IDebugClient5.VTable, @ptrCast(self.vtable)).PushOutputLinePrefix(@as(*const IDebugClient5, @ptrCast(self)), NewPrefix, Handle); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient5_PushOutputLinePrefixWide(self: *const T, NewPrefix: ?[*:0]const u16, Handle: ?*u64) HRESULT { return @as(*const IDebugClient5.VTable, @ptrCast(self.vtable)).PushOutputLinePrefixWide(@as(*const IDebugClient5, @ptrCast(self)), NewPrefix, Handle); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient5_PopOutputLinePrefix(self: *const T, Handle: u64) HRESULT { return @as(*const IDebugClient5.VTable, @ptrCast(self.vtable)).PopOutputLinePrefix(@as(*const IDebugClient5, @ptrCast(self)), Handle); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient5_GetNumberInputCallbacks(self: *const T, Count: ?*u32) HRESULT { return @as(*const IDebugClient5.VTable, @ptrCast(self.vtable)).GetNumberInputCallbacks(@as(*const IDebugClient5, @ptrCast(self)), Count); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient5_GetNumberOutputCallbacks(self: *const T, Count: ?*u32) HRESULT { return @as(*const IDebugClient5.VTable, @ptrCast(self.vtable)).GetNumberOutputCallbacks(@as(*const IDebugClient5, @ptrCast(self)), Count); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient5_GetNumberEventCallbacks(self: *const T, EventFlags: u32, Count: ?*u32) HRESULT { return @as(*const IDebugClient5.VTable, @ptrCast(self.vtable)).GetNumberEventCallbacks(@as(*const IDebugClient5, @ptrCast(self)), EventFlags, Count); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient5_GetQuitLockString(self: *const T, Buffer: ?[*:0]u8, BufferSize: u32, StringSize: ?*u32) HRESULT { return @as(*const IDebugClient5.VTable, @ptrCast(self.vtable)).GetQuitLockString(@as(*const IDebugClient5, @ptrCast(self)), Buffer, BufferSize, StringSize); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient5_SetQuitLockString(self: *const T, String: ?[*:0]const u8) HRESULT { return @as(*const IDebugClient5.VTable, @ptrCast(self.vtable)).SetQuitLockString(@as(*const IDebugClient5, @ptrCast(self)), String); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient5_GetQuitLockStringWide(self: *const T, Buffer: ?[*:0]u16, BufferSize: u32, StringSize: ?*u32) HRESULT { return @as(*const IDebugClient5.VTable, @ptrCast(self.vtable)).GetQuitLockStringWide(@as(*const IDebugClient5, @ptrCast(self)), Buffer, BufferSize, StringSize); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient5_SetQuitLockStringWide(self: *const T, String: ?[*:0]const u16) HRESULT { return @as(*const IDebugClient5.VTable, @ptrCast(self.vtable)).SetQuitLockStringWide(@as(*const IDebugClient5, @ptrCast(self)), String); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IDebugClient6_Value = Guid.initString("fd28b4c5-c498-4686-a28e-62cad2154eb3"); pub const IID_IDebugClient6 = &IID_IDebugClient6_Value; pub const IDebugClient6 = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, AttachKernel: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient6, Flags: u32, ConnectOptions: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient6, Flags: u32, ConnectOptions: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetKernelConnectionOptions: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient6, Buffer: ?[*:0]u8, BufferSize: u32, OptionsSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient6, Buffer: ?[*:0]u8, BufferSize: u32, OptionsSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetKernelConnectionOptions: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient6, Options: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient6, Options: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, StartProcessServer: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient6, Flags: u32, Options: ?[*:0]const u8, Reserved: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient6, Flags: u32, Options: ?[*:0]const u8, Reserved: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, ConnectProcessServer: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient6, RemoteOptions: ?[*:0]const u8, Server: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient6, RemoteOptions: ?[*:0]const u8, Server: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, DisconnectProcessServer: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient6, Server: u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient6, Server: u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetRunningProcessSystemIds: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient6, Server: u64, Ids: ?[*]u32, Count: u32, ActualCount: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient6, Server: u64, Ids: ?[*]u32, Count: u32, ActualCount: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetRunningProcessSystemIdByExecutableName: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient6, Server: u64, ExeName: ?[*:0]const u8, Flags: u32, Id: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient6, Server: u64, ExeName: ?[*:0]const u8, Flags: u32, Id: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetRunningProcessDescription: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient6, Server: u64, SystemId: u32, Flags: u32, ExeName: ?[*:0]u8, ExeNameSize: u32, ActualExeNameSize: ?*u32, Description: ?[*:0]u8, DescriptionSize: u32, ActualDescriptionSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient6, Server: u64, SystemId: u32, Flags: u32, ExeName: ?[*:0]u8, ExeNameSize: u32, ActualExeNameSize: ?*u32, Description: ?[*:0]u8, DescriptionSize: u32, ActualDescriptionSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, AttachProcess: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient6, Server: u64, ProcessId: u32, AttachFlags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient6, Server: u64, ProcessId: u32, AttachFlags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, CreateProcessA: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient6, Server: u64, CommandLine: ?PSTR, CreateFlags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient6, Server: u64, CommandLine: ?PSTR, CreateFlags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, CreateProcessAndAttach: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient6, Server: u64, CommandLine: ?PSTR, CreateFlags: u32, ProcessId: u32, AttachFlags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient6, Server: u64, CommandLine: ?PSTR, CreateFlags: u32, ProcessId: u32, AttachFlags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetProcessOptions: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient6, Options: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient6, Options: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, AddProcessOptions: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient6, Options: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient6, Options: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, RemoveProcessOptions: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient6, Options: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient6, Options: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetProcessOptions: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient6, Options: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient6, Options: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, OpenDumpFile: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient6, DumpFile: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient6, DumpFile: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, WriteDumpFile: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient6, DumpFile: ?[*:0]const u8, Qualifier: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient6, DumpFile: ?[*:0]const u8, Qualifier: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, ConnectSession: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient6, Flags: u32, HistoryLimit: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient6, Flags: u32, HistoryLimit: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, StartServer: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient6, Options: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient6, Options: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, OutputServers: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient6, OutputControl: u32, Machine: ?[*:0]const u8, Flags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient6, OutputControl: u32, Machine: ?[*:0]const u8, Flags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, TerminateProcesses: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient6, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient6, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, DetachProcesses: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient6, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient6, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, EndSession: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient6, Flags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient6, Flags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetExitCode: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient6, Code: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient6, Code: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, DispatchCallbacks: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient6, Timeout: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient6, Timeout: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, ExitDispatch: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient6, Client: ?*IDebugClient, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient6, Client: ?*IDebugClient, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, CreateClient: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient6, Client: ?*?*IDebugClient, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient6, Client: ?*?*IDebugClient, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetInputCallbacks: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient6, Callbacks: ?*?*IDebugInputCallbacks, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient6, Callbacks: ?*?*IDebugInputCallbacks, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetInputCallbacks: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient6, Callbacks: ?*IDebugInputCallbacks, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient6, Callbacks: ?*IDebugInputCallbacks, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetOutputCallbacks: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient6, Callbacks: ?*?*IDebugOutputCallbacks, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient6, Callbacks: ?*?*IDebugOutputCallbacks, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetOutputCallbacks: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient6, Callbacks: ?*IDebugOutputCallbacks, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient6, Callbacks: ?*IDebugOutputCallbacks, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetOutputMask: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient6, Mask: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient6, Mask: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetOutputMask: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient6, Mask: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient6, Mask: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetOtherOutputMask: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient6, Client: ?*IDebugClient, Mask: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient6, Client: ?*IDebugClient, Mask: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetOtherOutputMask: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient6, Client: ?*IDebugClient, Mask: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient6, Client: ?*IDebugClient, Mask: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetOutputWidth: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient6, Columns: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient6, Columns: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetOutputWidth: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient6, Columns: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient6, Columns: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetOutputLinePrefix: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient6, Buffer: ?[*:0]u8, BufferSize: u32, PrefixSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient6, Buffer: ?[*:0]u8, BufferSize: u32, PrefixSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetOutputLinePrefix: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient6, Prefix: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient6, Prefix: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetIdentity: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient6, Buffer: ?[*:0]u8, BufferSize: u32, IdentitySize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient6, Buffer: ?[*:0]u8, BufferSize: u32, IdentitySize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, OutputIdentity: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient6, OutputControl: u32, Flags: u32, Format: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient6, OutputControl: u32, Flags: u32, Format: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetEventCallbacks: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient6, Callbacks: ?*?*IDebugEventCallbacks, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient6, Callbacks: ?*?*IDebugEventCallbacks, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetEventCallbacks: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient6, Callbacks: ?*IDebugEventCallbacks, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient6, Callbacks: ?*IDebugEventCallbacks, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, FlushCallbacks: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient6, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient6, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, WriteDumpFile2: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient6, DumpFile: ?[*:0]const u8, Qualifier: u32, FormatFlags: u32, Comment: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient6, DumpFile: ?[*:0]const u8, Qualifier: u32, FormatFlags: u32, Comment: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, AddDumpInformationFile: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient6, InfoFile: ?[*:0]const u8, Type: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient6, InfoFile: ?[*:0]const u8, Type: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, EndProcessServer: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient6, Server: u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient6, Server: u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, WaitForProcessServerEnd: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient6, Timeout: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient6, Timeout: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, IsKernelDebuggerEnabled: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient6, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient6, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, TerminateCurrentProcess: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient6, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient6, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, DetachCurrentProcess: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient6, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient6, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, AbandonCurrentProcess: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient6, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient6, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetRunningProcessSystemIdByExecutableNameWide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient6, Server: u64, ExeName: ?[*:0]const u16, Flags: u32, Id: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient6, Server: u64, ExeName: ?[*:0]const u16, Flags: u32, Id: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetRunningProcessDescriptionWide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient6, Server: u64, SystemId: u32, Flags: u32, ExeName: ?[*:0]u16, ExeNameSize: u32, ActualExeNameSize: ?*u32, Description: ?[*:0]u16, DescriptionSize: u32, ActualDescriptionSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient6, Server: u64, SystemId: u32, Flags: u32, ExeName: ?[*:0]u16, ExeNameSize: u32, ActualExeNameSize: ?*u32, Description: ?[*:0]u16, DescriptionSize: u32, ActualDescriptionSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, CreateProcessWide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient6, Server: u64, CommandLine: ?PWSTR, CreateFlags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient6, Server: u64, CommandLine: ?PWSTR, CreateFlags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, CreateProcessAndAttachWide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient6, Server: u64, CommandLine: ?PWSTR, CreateFlags: u32, ProcessId: u32, AttachFlags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient6, Server: u64, CommandLine: ?PWSTR, CreateFlags: u32, ProcessId: u32, AttachFlags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, OpenDumpFileWide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient6, FileName: ?[*:0]const u16, FileHandle: u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient6, FileName: ?[*:0]const u16, FileHandle: u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, WriteDumpFileWide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient6, FileName: ?[*:0]const u16, FileHandle: u64, Qualifier: u32, FormatFlags: u32, Comment: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient6, FileName: ?[*:0]const u16, FileHandle: u64, Qualifier: u32, FormatFlags: u32, Comment: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, AddDumpInformationFileWide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient6, FileName: ?[*:0]const u16, FileHandle: u64, Type: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient6, FileName: ?[*:0]const u16, FileHandle: u64, Type: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetNumberDumpFiles: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient6, Number: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient6, Number: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetDumpFile: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient6, Index: u32, Buffer: ?[*:0]u8, BufferSize: u32, NameSize: ?*u32, Handle: ?*u64, Type: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient6, Index: u32, Buffer: ?[*:0]u8, BufferSize: u32, NameSize: ?*u32, Handle: ?*u64, Type: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetDumpFileWide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient6, Index: u32, Buffer: ?[*:0]u16, BufferSize: u32, NameSize: ?*u32, Handle: ?*u64, Type: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient6, Index: u32, Buffer: ?[*:0]u16, BufferSize: u32, NameSize: ?*u32, Handle: ?*u64, Type: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, AttachKernelWide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient6, Flags: u32, ConnectOptions: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient6, Flags: u32, ConnectOptions: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetKernelConnectionOptionsWide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient6, Buffer: ?[*:0]u16, BufferSize: u32, OptionsSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient6, Buffer: ?[*:0]u16, BufferSize: u32, OptionsSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetKernelConnectionOptionsWide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient6, Options: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient6, Options: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, StartProcessServerWide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient6, Flags: u32, Options: ?[*:0]const u16, Reserved: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient6, Flags: u32, Options: ?[*:0]const u16, Reserved: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, ConnectProcessServerWide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient6, RemoteOptions: ?[*:0]const u16, Server: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient6, RemoteOptions: ?[*:0]const u16, Server: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, StartServerWide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient6, Options: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient6, Options: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, OutputServersWide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient6, OutputControl: u32, Machine: ?[*:0]const u16, Flags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient6, OutputControl: u32, Machine: ?[*:0]const u16, Flags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetOutputCallbacksWide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient6, Callbacks: ?*?*IDebugOutputCallbacksWide, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient6, Callbacks: ?*?*IDebugOutputCallbacksWide, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetOutputCallbacksWide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient6, Callbacks: ?*IDebugOutputCallbacksWide, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient6, Callbacks: ?*IDebugOutputCallbacksWide, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetOutputLinePrefixWide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient6, Buffer: ?[*:0]u16, BufferSize: u32, PrefixSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient6, Buffer: ?[*:0]u16, BufferSize: u32, PrefixSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetOutputLinePrefixWide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient6, Prefix: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient6, Prefix: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetIdentityWide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient6, Buffer: ?[*:0]u16, BufferSize: u32, IdentitySize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient6, Buffer: ?[*:0]u16, BufferSize: u32, IdentitySize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, OutputIdentityWide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient6, OutputControl: u32, Flags: u32, Format: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient6, OutputControl: u32, Flags: u32, Format: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetEventCallbacksWide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient6, Callbacks: ?*?*IDebugEventCallbacksWide, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient6, Callbacks: ?*?*IDebugEventCallbacksWide, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetEventCallbacksWide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient6, Callbacks: ?*IDebugEventCallbacksWide, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient6, Callbacks: ?*IDebugEventCallbacksWide, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, CreateProcess2: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient6, Server: u64, CommandLine: ?PSTR, // TODO: what to do with BytesParamIndex 3? OptionsBuffer: ?*anyopaque, OptionsBufferSize: u32, InitialDirectory: ?[*:0]const u8, Environment: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient6, Server: u64, CommandLine: ?PSTR, // TODO: what to do with BytesParamIndex 3? OptionsBuffer: ?*anyopaque, OptionsBufferSize: u32, InitialDirectory: ?[*:0]const u8, Environment: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, CreateProcess2Wide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient6, Server: u64, CommandLine: ?PWSTR, // TODO: what to do with BytesParamIndex 3? OptionsBuffer: ?*anyopaque, OptionsBufferSize: u32, InitialDirectory: ?[*:0]const u16, Environment: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient6, Server: u64, CommandLine: ?PWSTR, // TODO: what to do with BytesParamIndex 3? OptionsBuffer: ?*anyopaque, OptionsBufferSize: u32, InitialDirectory: ?[*:0]const u16, Environment: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, CreateProcessAndAttach2: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient6, Server: u64, CommandLine: ?PSTR, // TODO: what to do with BytesParamIndex 3? OptionsBuffer: ?*anyopaque, OptionsBufferSize: u32, InitialDirectory: ?[*:0]const u8, Environment: ?[*:0]const u8, ProcessId: u32, AttachFlags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient6, Server: u64, CommandLine: ?PSTR, // TODO: what to do with BytesParamIndex 3? OptionsBuffer: ?*anyopaque, OptionsBufferSize: u32, InitialDirectory: ?[*:0]const u8, Environment: ?[*:0]const u8, ProcessId: u32, AttachFlags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, CreateProcessAndAttach2Wide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient6, Server: u64, CommandLine: ?PWSTR, // TODO: what to do with BytesParamIndex 3? OptionsBuffer: ?*anyopaque, OptionsBufferSize: u32, InitialDirectory: ?[*:0]const u16, Environment: ?[*:0]const u16, ProcessId: u32, AttachFlags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient6, Server: u64, CommandLine: ?PWSTR, // TODO: what to do with BytesParamIndex 3? OptionsBuffer: ?*anyopaque, OptionsBufferSize: u32, InitialDirectory: ?[*:0]const u16, Environment: ?[*:0]const u16, ProcessId: u32, AttachFlags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, PushOutputLinePrefix: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient6, NewPrefix: ?[*:0]const u8, Handle: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient6, NewPrefix: ?[*:0]const u8, Handle: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, PushOutputLinePrefixWide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient6, NewPrefix: ?[*:0]const u16, Handle: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient6, NewPrefix: ?[*:0]const u16, Handle: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, PopOutputLinePrefix: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient6, Handle: u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient6, Handle: u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetNumberInputCallbacks: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient6, Count: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient6, Count: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetNumberOutputCallbacks: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient6, Count: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient6, Count: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetNumberEventCallbacks: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient6, EventFlags: u32, Count: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient6, EventFlags: u32, Count: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetQuitLockString: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient6, Buffer: ?[*:0]u8, BufferSize: u32, StringSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient6, Buffer: ?[*:0]u8, BufferSize: u32, StringSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetQuitLockString: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient6, String: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient6, String: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetQuitLockStringWide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient6, Buffer: ?[*:0]u16, BufferSize: u32, StringSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient6, Buffer: ?[*:0]u16, BufferSize: u32, StringSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetQuitLockStringWide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient6, String: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient6, String: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetEventContextCallbacks: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient6, Callbacks: ?*IDebugEventContextCallbacks, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient6, Callbacks: ?*IDebugEventContextCallbacks, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient6_AttachKernel(self: *const T, Flags: u32, ConnectOptions: ?[*:0]const u8) HRESULT { return @as(*const IDebugClient6.VTable, @ptrCast(self.vtable)).AttachKernel(@as(*const IDebugClient6, @ptrCast(self)), Flags, ConnectOptions); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient6_GetKernelConnectionOptions(self: *const T, Buffer: ?[*:0]u8, BufferSize: u32, OptionsSize: ?*u32) HRESULT { return @as(*const IDebugClient6.VTable, @ptrCast(self.vtable)).GetKernelConnectionOptions(@as(*const IDebugClient6, @ptrCast(self)), Buffer, BufferSize, OptionsSize); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient6_SetKernelConnectionOptions(self: *const T, Options: ?[*:0]const u8) HRESULT { return @as(*const IDebugClient6.VTable, @ptrCast(self.vtable)).SetKernelConnectionOptions(@as(*const IDebugClient6, @ptrCast(self)), Options); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient6_StartProcessServer(self: *const T, Flags: u32, Options: ?[*:0]const u8, Reserved: ?*anyopaque) HRESULT { return @as(*const IDebugClient6.VTable, @ptrCast(self.vtable)).StartProcessServer(@as(*const IDebugClient6, @ptrCast(self)), Flags, Options, Reserved); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient6_ConnectProcessServer(self: *const T, RemoteOptions: ?[*:0]const u8, Server: ?*u64) HRESULT { return @as(*const IDebugClient6.VTable, @ptrCast(self.vtable)).ConnectProcessServer(@as(*const IDebugClient6, @ptrCast(self)), RemoteOptions, Server); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient6_DisconnectProcessServer(self: *const T, Server: u64) HRESULT { return @as(*const IDebugClient6.VTable, @ptrCast(self.vtable)).DisconnectProcessServer(@as(*const IDebugClient6, @ptrCast(self)), Server); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient6_GetRunningProcessSystemIds(self: *const T, Server: u64, Ids: ?[*]u32, Count: u32, ActualCount: ?*u32) HRESULT { return @as(*const IDebugClient6.VTable, @ptrCast(self.vtable)).GetRunningProcessSystemIds(@as(*const IDebugClient6, @ptrCast(self)), Server, Ids, Count, ActualCount); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient6_GetRunningProcessSystemIdByExecutableName(self: *const T, Server: u64, ExeName: ?[*:0]const u8, Flags: u32, Id: ?*u32) HRESULT { return @as(*const IDebugClient6.VTable, @ptrCast(self.vtable)).GetRunningProcessSystemIdByExecutableName(@as(*const IDebugClient6, @ptrCast(self)), Server, ExeName, Flags, Id); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient6_GetRunningProcessDescription(self: *const T, Server: u64, SystemId: u32, Flags: u32, ExeName: ?[*:0]u8, ExeNameSize: u32, ActualExeNameSize: ?*u32, Description: ?[*:0]u8, DescriptionSize: u32, ActualDescriptionSize: ?*u32) HRESULT { return @as(*const IDebugClient6.VTable, @ptrCast(self.vtable)).GetRunningProcessDescription(@as(*const IDebugClient6, @ptrCast(self)), Server, SystemId, Flags, ExeName, ExeNameSize, ActualExeNameSize, Description, DescriptionSize, ActualDescriptionSize); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient6_AttachProcess(self: *const T, Server: u64, ProcessId: u32, AttachFlags: u32) HRESULT { return @as(*const IDebugClient6.VTable, @ptrCast(self.vtable)).AttachProcess(@as(*const IDebugClient6, @ptrCast(self)), Server, ProcessId, AttachFlags); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient6_CreateProcessA(self: *const T, Server: u64, CommandLine: ?PSTR, CreateFlags: u32) HRESULT { return @as(*const IDebugClient6.VTable, @ptrCast(self.vtable)).CreateProcessA(@as(*const IDebugClient6, @ptrCast(self)), Server, CommandLine, CreateFlags); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient6_CreateProcessAndAttach(self: *const T, Server: u64, CommandLine: ?PSTR, CreateFlags: u32, ProcessId: u32, AttachFlags: u32) HRESULT { return @as(*const IDebugClient6.VTable, @ptrCast(self.vtable)).CreateProcessAndAttach(@as(*const IDebugClient6, @ptrCast(self)), Server, CommandLine, CreateFlags, ProcessId, AttachFlags); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient6_GetProcessOptions(self: *const T, Options: ?*u32) HRESULT { return @as(*const IDebugClient6.VTable, @ptrCast(self.vtable)).GetProcessOptions(@as(*const IDebugClient6, @ptrCast(self)), Options); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient6_AddProcessOptions(self: *const T, Options: u32) HRESULT { return @as(*const IDebugClient6.VTable, @ptrCast(self.vtable)).AddProcessOptions(@as(*const IDebugClient6, @ptrCast(self)), Options); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient6_RemoveProcessOptions(self: *const T, Options: u32) HRESULT { return @as(*const IDebugClient6.VTable, @ptrCast(self.vtable)).RemoveProcessOptions(@as(*const IDebugClient6, @ptrCast(self)), Options); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient6_SetProcessOptions(self: *const T, Options: u32) HRESULT { return @as(*const IDebugClient6.VTable, @ptrCast(self.vtable)).SetProcessOptions(@as(*const IDebugClient6, @ptrCast(self)), Options); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient6_OpenDumpFile(self: *const T, DumpFile: ?[*:0]const u8) HRESULT { return @as(*const IDebugClient6.VTable, @ptrCast(self.vtable)).OpenDumpFile(@as(*const IDebugClient6, @ptrCast(self)), DumpFile); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient6_WriteDumpFile(self: *const T, DumpFile: ?[*:0]const u8, Qualifier: u32) HRESULT { return @as(*const IDebugClient6.VTable, @ptrCast(self.vtable)).WriteDumpFile(@as(*const IDebugClient6, @ptrCast(self)), DumpFile, Qualifier); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient6_ConnectSession(self: *const T, Flags: u32, HistoryLimit: u32) HRESULT { return @as(*const IDebugClient6.VTable, @ptrCast(self.vtable)).ConnectSession(@as(*const IDebugClient6, @ptrCast(self)), Flags, HistoryLimit); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient6_StartServer(self: *const T, Options: ?[*:0]const u8) HRESULT { return @as(*const IDebugClient6.VTable, @ptrCast(self.vtable)).StartServer(@as(*const IDebugClient6, @ptrCast(self)), Options); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient6_OutputServers(self: *const T, OutputControl: u32, Machine: ?[*:0]const u8, Flags: u32) HRESULT { return @as(*const IDebugClient6.VTable, @ptrCast(self.vtable)).OutputServers(@as(*const IDebugClient6, @ptrCast(self)), OutputControl, Machine, Flags); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient6_TerminateProcesses(self: *const T) HRESULT { return @as(*const IDebugClient6.VTable, @ptrCast(self.vtable)).TerminateProcesses(@as(*const IDebugClient6, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient6_DetachProcesses(self: *const T) HRESULT { return @as(*const IDebugClient6.VTable, @ptrCast(self.vtable)).DetachProcesses(@as(*const IDebugClient6, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient6_EndSession(self: *const T, Flags: u32) HRESULT { return @as(*const IDebugClient6.VTable, @ptrCast(self.vtable)).EndSession(@as(*const IDebugClient6, @ptrCast(self)), Flags); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient6_GetExitCode(self: *const T, Code: ?*u32) HRESULT { return @as(*const IDebugClient6.VTable, @ptrCast(self.vtable)).GetExitCode(@as(*const IDebugClient6, @ptrCast(self)), Code); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient6_DispatchCallbacks(self: *const T, Timeout: u32) HRESULT { return @as(*const IDebugClient6.VTable, @ptrCast(self.vtable)).DispatchCallbacks(@as(*const IDebugClient6, @ptrCast(self)), Timeout); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient6_ExitDispatch(self: *const T, Client: ?*IDebugClient) HRESULT { return @as(*const IDebugClient6.VTable, @ptrCast(self.vtable)).ExitDispatch(@as(*const IDebugClient6, @ptrCast(self)), Client); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient6_CreateClient(self: *const T, Client: ?*?*IDebugClient) HRESULT { return @as(*const IDebugClient6.VTable, @ptrCast(self.vtable)).CreateClient(@as(*const IDebugClient6, @ptrCast(self)), Client); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient6_GetInputCallbacks(self: *const T, Callbacks: ?*?*IDebugInputCallbacks) HRESULT { return @as(*const IDebugClient6.VTable, @ptrCast(self.vtable)).GetInputCallbacks(@as(*const IDebugClient6, @ptrCast(self)), Callbacks); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient6_SetInputCallbacks(self: *const T, Callbacks: ?*IDebugInputCallbacks) HRESULT { return @as(*const IDebugClient6.VTable, @ptrCast(self.vtable)).SetInputCallbacks(@as(*const IDebugClient6, @ptrCast(self)), Callbacks); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient6_GetOutputCallbacks(self: *const T, Callbacks: ?*?*IDebugOutputCallbacks) HRESULT { return @as(*const IDebugClient6.VTable, @ptrCast(self.vtable)).GetOutputCallbacks(@as(*const IDebugClient6, @ptrCast(self)), Callbacks); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient6_SetOutputCallbacks(self: *const T, Callbacks: ?*IDebugOutputCallbacks) HRESULT { return @as(*const IDebugClient6.VTable, @ptrCast(self.vtable)).SetOutputCallbacks(@as(*const IDebugClient6, @ptrCast(self)), Callbacks); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient6_GetOutputMask(self: *const T, Mask: ?*u32) HRESULT { return @as(*const IDebugClient6.VTable, @ptrCast(self.vtable)).GetOutputMask(@as(*const IDebugClient6, @ptrCast(self)), Mask); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient6_SetOutputMask(self: *const T, Mask: u32) HRESULT { return @as(*const IDebugClient6.VTable, @ptrCast(self.vtable)).SetOutputMask(@as(*const IDebugClient6, @ptrCast(self)), Mask); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient6_GetOtherOutputMask(self: *const T, Client: ?*IDebugClient, Mask: ?*u32) HRESULT { return @as(*const IDebugClient6.VTable, @ptrCast(self.vtable)).GetOtherOutputMask(@as(*const IDebugClient6, @ptrCast(self)), Client, Mask); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient6_SetOtherOutputMask(self: *const T, Client: ?*IDebugClient, Mask: u32) HRESULT { return @as(*const IDebugClient6.VTable, @ptrCast(self.vtable)).SetOtherOutputMask(@as(*const IDebugClient6, @ptrCast(self)), Client, Mask); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient6_GetOutputWidth(self: *const T, Columns: ?*u32) HRESULT { return @as(*const IDebugClient6.VTable, @ptrCast(self.vtable)).GetOutputWidth(@as(*const IDebugClient6, @ptrCast(self)), Columns); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient6_SetOutputWidth(self: *const T, Columns: u32) HRESULT { return @as(*const IDebugClient6.VTable, @ptrCast(self.vtable)).SetOutputWidth(@as(*const IDebugClient6, @ptrCast(self)), Columns); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient6_GetOutputLinePrefix(self: *const T, Buffer: ?[*:0]u8, BufferSize: u32, PrefixSize: ?*u32) HRESULT { return @as(*const IDebugClient6.VTable, @ptrCast(self.vtable)).GetOutputLinePrefix(@as(*const IDebugClient6, @ptrCast(self)), Buffer, BufferSize, PrefixSize); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient6_SetOutputLinePrefix(self: *const T, Prefix: ?[*:0]const u8) HRESULT { return @as(*const IDebugClient6.VTable, @ptrCast(self.vtable)).SetOutputLinePrefix(@as(*const IDebugClient6, @ptrCast(self)), Prefix); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient6_GetIdentity(self: *const T, Buffer: ?[*:0]u8, BufferSize: u32, IdentitySize: ?*u32) HRESULT { return @as(*const IDebugClient6.VTable, @ptrCast(self.vtable)).GetIdentity(@as(*const IDebugClient6, @ptrCast(self)), Buffer, BufferSize, IdentitySize); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient6_OutputIdentity(self: *const T, OutputControl: u32, Flags: u32, Format: ?[*:0]const u8) HRESULT { return @as(*const IDebugClient6.VTable, @ptrCast(self.vtable)).OutputIdentity(@as(*const IDebugClient6, @ptrCast(self)), OutputControl, Flags, Format); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient6_GetEventCallbacks(self: *const T, Callbacks: ?*?*IDebugEventCallbacks) HRESULT { return @as(*const IDebugClient6.VTable, @ptrCast(self.vtable)).GetEventCallbacks(@as(*const IDebugClient6, @ptrCast(self)), Callbacks); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient6_SetEventCallbacks(self: *const T, Callbacks: ?*IDebugEventCallbacks) HRESULT { return @as(*const IDebugClient6.VTable, @ptrCast(self.vtable)).SetEventCallbacks(@as(*const IDebugClient6, @ptrCast(self)), Callbacks); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient6_FlushCallbacks(self: *const T) HRESULT { return @as(*const IDebugClient6.VTable, @ptrCast(self.vtable)).FlushCallbacks(@as(*const IDebugClient6, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient6_WriteDumpFile2(self: *const T, DumpFile: ?[*:0]const u8, Qualifier: u32, FormatFlags: u32, Comment: ?[*:0]const u8) HRESULT { return @as(*const IDebugClient6.VTable, @ptrCast(self.vtable)).WriteDumpFile2(@as(*const IDebugClient6, @ptrCast(self)), DumpFile, Qualifier, FormatFlags, Comment); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient6_AddDumpInformationFile(self: *const T, InfoFile: ?[*:0]const u8, Type: u32) HRESULT { return @as(*const IDebugClient6.VTable, @ptrCast(self.vtable)).AddDumpInformationFile(@as(*const IDebugClient6, @ptrCast(self)), InfoFile, Type); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient6_EndProcessServer(self: *const T, Server: u64) HRESULT { return @as(*const IDebugClient6.VTable, @ptrCast(self.vtable)).EndProcessServer(@as(*const IDebugClient6, @ptrCast(self)), Server); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient6_WaitForProcessServerEnd(self: *const T, Timeout: u32) HRESULT { return @as(*const IDebugClient6.VTable, @ptrCast(self.vtable)).WaitForProcessServerEnd(@as(*const IDebugClient6, @ptrCast(self)), Timeout); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient6_IsKernelDebuggerEnabled(self: *const T) HRESULT { return @as(*const IDebugClient6.VTable, @ptrCast(self.vtable)).IsKernelDebuggerEnabled(@as(*const IDebugClient6, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient6_TerminateCurrentProcess(self: *const T) HRESULT { return @as(*const IDebugClient6.VTable, @ptrCast(self.vtable)).TerminateCurrentProcess(@as(*const IDebugClient6, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient6_DetachCurrentProcess(self: *const T) HRESULT { return @as(*const IDebugClient6.VTable, @ptrCast(self.vtable)).DetachCurrentProcess(@as(*const IDebugClient6, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient6_AbandonCurrentProcess(self: *const T) HRESULT { return @as(*const IDebugClient6.VTable, @ptrCast(self.vtable)).AbandonCurrentProcess(@as(*const IDebugClient6, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient6_GetRunningProcessSystemIdByExecutableNameWide(self: *const T, Server: u64, ExeName: ?[*:0]const u16, Flags: u32, Id: ?*u32) HRESULT { return @as(*const IDebugClient6.VTable, @ptrCast(self.vtable)).GetRunningProcessSystemIdByExecutableNameWide(@as(*const IDebugClient6, @ptrCast(self)), Server, ExeName, Flags, Id); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient6_GetRunningProcessDescriptionWide(self: *const T, Server: u64, SystemId: u32, Flags: u32, ExeName: ?[*:0]u16, ExeNameSize: u32, ActualExeNameSize: ?*u32, Description: ?[*:0]u16, DescriptionSize: u32, ActualDescriptionSize: ?*u32) HRESULT { return @as(*const IDebugClient6.VTable, @ptrCast(self.vtable)).GetRunningProcessDescriptionWide(@as(*const IDebugClient6, @ptrCast(self)), Server, SystemId, Flags, ExeName, ExeNameSize, ActualExeNameSize, Description, DescriptionSize, ActualDescriptionSize); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient6_CreateProcessWide(self: *const T, Server: u64, CommandLine: ?PWSTR, CreateFlags: u32) HRESULT { return @as(*const IDebugClient6.VTable, @ptrCast(self.vtable)).CreateProcessWide(@as(*const IDebugClient6, @ptrCast(self)), Server, CommandLine, CreateFlags); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient6_CreateProcessAndAttachWide(self: *const T, Server: u64, CommandLine: ?PWSTR, CreateFlags: u32, ProcessId: u32, AttachFlags: u32) HRESULT { return @as(*const IDebugClient6.VTable, @ptrCast(self.vtable)).CreateProcessAndAttachWide(@as(*const IDebugClient6, @ptrCast(self)), Server, CommandLine, CreateFlags, ProcessId, AttachFlags); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient6_OpenDumpFileWide(self: *const T, FileName: ?[*:0]const u16, FileHandle: u64) HRESULT { return @as(*const IDebugClient6.VTable, @ptrCast(self.vtable)).OpenDumpFileWide(@as(*const IDebugClient6, @ptrCast(self)), FileName, FileHandle); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient6_WriteDumpFileWide(self: *const T, FileName: ?[*:0]const u16, FileHandle: u64, Qualifier: u32, FormatFlags: u32, Comment: ?[*:0]const u16) HRESULT { return @as(*const IDebugClient6.VTable, @ptrCast(self.vtable)).WriteDumpFileWide(@as(*const IDebugClient6, @ptrCast(self)), FileName, FileHandle, Qualifier, FormatFlags, Comment); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient6_AddDumpInformationFileWide(self: *const T, FileName: ?[*:0]const u16, FileHandle: u64, Type: u32) HRESULT { return @as(*const IDebugClient6.VTable, @ptrCast(self.vtable)).AddDumpInformationFileWide(@as(*const IDebugClient6, @ptrCast(self)), FileName, FileHandle, Type); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient6_GetNumberDumpFiles(self: *const T, Number: ?*u32) HRESULT { return @as(*const IDebugClient6.VTable, @ptrCast(self.vtable)).GetNumberDumpFiles(@as(*const IDebugClient6, @ptrCast(self)), Number); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient6_GetDumpFile(self: *const T, Index: u32, Buffer: ?[*:0]u8, BufferSize: u32, NameSize: ?*u32, Handle: ?*u64, Type: ?*u32) HRESULT { return @as(*const IDebugClient6.VTable, @ptrCast(self.vtable)).GetDumpFile(@as(*const IDebugClient6, @ptrCast(self)), Index, Buffer, BufferSize, NameSize, Handle, Type); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient6_GetDumpFileWide(self: *const T, Index: u32, Buffer: ?[*:0]u16, BufferSize: u32, NameSize: ?*u32, Handle: ?*u64, Type: ?*u32) HRESULT { return @as(*const IDebugClient6.VTable, @ptrCast(self.vtable)).GetDumpFileWide(@as(*const IDebugClient6, @ptrCast(self)), Index, Buffer, BufferSize, NameSize, Handle, Type); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient6_AttachKernelWide(self: *const T, Flags: u32, ConnectOptions: ?[*:0]const u16) HRESULT { return @as(*const IDebugClient6.VTable, @ptrCast(self.vtable)).AttachKernelWide(@as(*const IDebugClient6, @ptrCast(self)), Flags, ConnectOptions); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient6_GetKernelConnectionOptionsWide(self: *const T, Buffer: ?[*:0]u16, BufferSize: u32, OptionsSize: ?*u32) HRESULT { return @as(*const IDebugClient6.VTable, @ptrCast(self.vtable)).GetKernelConnectionOptionsWide(@as(*const IDebugClient6, @ptrCast(self)), Buffer, BufferSize, OptionsSize); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient6_SetKernelConnectionOptionsWide(self: *const T, Options: ?[*:0]const u16) HRESULT { return @as(*const IDebugClient6.VTable, @ptrCast(self.vtable)).SetKernelConnectionOptionsWide(@as(*const IDebugClient6, @ptrCast(self)), Options); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient6_StartProcessServerWide(self: *const T, Flags: u32, Options: ?[*:0]const u16, Reserved: ?*anyopaque) HRESULT { return @as(*const IDebugClient6.VTable, @ptrCast(self.vtable)).StartProcessServerWide(@as(*const IDebugClient6, @ptrCast(self)), Flags, Options, Reserved); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient6_ConnectProcessServerWide(self: *const T, RemoteOptions: ?[*:0]const u16, Server: ?*u64) HRESULT { return @as(*const IDebugClient6.VTable, @ptrCast(self.vtable)).ConnectProcessServerWide(@as(*const IDebugClient6, @ptrCast(self)), RemoteOptions, Server); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient6_StartServerWide(self: *const T, Options: ?[*:0]const u16) HRESULT { return @as(*const IDebugClient6.VTable, @ptrCast(self.vtable)).StartServerWide(@as(*const IDebugClient6, @ptrCast(self)), Options); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient6_OutputServersWide(self: *const T, OutputControl: u32, Machine: ?[*:0]const u16, Flags: u32) HRESULT { return @as(*const IDebugClient6.VTable, @ptrCast(self.vtable)).OutputServersWide(@as(*const IDebugClient6, @ptrCast(self)), OutputControl, Machine, Flags); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient6_GetOutputCallbacksWide(self: *const T, Callbacks: ?*?*IDebugOutputCallbacksWide) HRESULT { return @as(*const IDebugClient6.VTable, @ptrCast(self.vtable)).GetOutputCallbacksWide(@as(*const IDebugClient6, @ptrCast(self)), Callbacks); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient6_SetOutputCallbacksWide(self: *const T, Callbacks: ?*IDebugOutputCallbacksWide) HRESULT { return @as(*const IDebugClient6.VTable, @ptrCast(self.vtable)).SetOutputCallbacksWide(@as(*const IDebugClient6, @ptrCast(self)), Callbacks); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient6_GetOutputLinePrefixWide(self: *const T, Buffer: ?[*:0]u16, BufferSize: u32, PrefixSize: ?*u32) HRESULT { return @as(*const IDebugClient6.VTable, @ptrCast(self.vtable)).GetOutputLinePrefixWide(@as(*const IDebugClient6, @ptrCast(self)), Buffer, BufferSize, PrefixSize); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient6_SetOutputLinePrefixWide(self: *const T, Prefix: ?[*:0]const u16) HRESULT { return @as(*const IDebugClient6.VTable, @ptrCast(self.vtable)).SetOutputLinePrefixWide(@as(*const IDebugClient6, @ptrCast(self)), Prefix); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient6_GetIdentityWide(self: *const T, Buffer: ?[*:0]u16, BufferSize: u32, IdentitySize: ?*u32) HRESULT { return @as(*const IDebugClient6.VTable, @ptrCast(self.vtable)).GetIdentityWide(@as(*const IDebugClient6, @ptrCast(self)), Buffer, BufferSize, IdentitySize); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient6_OutputIdentityWide(self: *const T, OutputControl: u32, Flags: u32, Format: ?[*:0]const u16) HRESULT { return @as(*const IDebugClient6.VTable, @ptrCast(self.vtable)).OutputIdentityWide(@as(*const IDebugClient6, @ptrCast(self)), OutputControl, Flags, Format); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient6_GetEventCallbacksWide(self: *const T, Callbacks: ?*?*IDebugEventCallbacksWide) HRESULT { return @as(*const IDebugClient6.VTable, @ptrCast(self.vtable)).GetEventCallbacksWide(@as(*const IDebugClient6, @ptrCast(self)), Callbacks); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient6_SetEventCallbacksWide(self: *const T, Callbacks: ?*IDebugEventCallbacksWide) HRESULT { return @as(*const IDebugClient6.VTable, @ptrCast(self.vtable)).SetEventCallbacksWide(@as(*const IDebugClient6, @ptrCast(self)), Callbacks); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient6_CreateProcess2(self: *const T, Server: u64, CommandLine: ?PSTR, OptionsBuffer: ?*anyopaque, OptionsBufferSize: u32, InitialDirectory: ?[*:0]const u8, Environment: ?[*:0]const u8) HRESULT { return @as(*const IDebugClient6.VTable, @ptrCast(self.vtable)).CreateProcess2(@as(*const IDebugClient6, @ptrCast(self)), Server, CommandLine, OptionsBuffer, OptionsBufferSize, InitialDirectory, Environment); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient6_CreateProcess2Wide(self: *const T, Server: u64, CommandLine: ?PWSTR, OptionsBuffer: ?*anyopaque, OptionsBufferSize: u32, InitialDirectory: ?[*:0]const u16, Environment: ?[*:0]const u16) HRESULT { return @as(*const IDebugClient6.VTable, @ptrCast(self.vtable)).CreateProcess2Wide(@as(*const IDebugClient6, @ptrCast(self)), Server, CommandLine, OptionsBuffer, OptionsBufferSize, InitialDirectory, Environment); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient6_CreateProcessAndAttach2(self: *const T, Server: u64, CommandLine: ?PSTR, OptionsBuffer: ?*anyopaque, OptionsBufferSize: u32, InitialDirectory: ?[*:0]const u8, Environment: ?[*:0]const u8, ProcessId: u32, AttachFlags: u32) HRESULT { return @as(*const IDebugClient6.VTable, @ptrCast(self.vtable)).CreateProcessAndAttach2(@as(*const IDebugClient6, @ptrCast(self)), Server, CommandLine, OptionsBuffer, OptionsBufferSize, InitialDirectory, Environment, ProcessId, AttachFlags); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient6_CreateProcessAndAttach2Wide(self: *const T, Server: u64, CommandLine: ?PWSTR, OptionsBuffer: ?*anyopaque, OptionsBufferSize: u32, InitialDirectory: ?[*:0]const u16, Environment: ?[*:0]const u16, ProcessId: u32, AttachFlags: u32) HRESULT { return @as(*const IDebugClient6.VTable, @ptrCast(self.vtable)).CreateProcessAndAttach2Wide(@as(*const IDebugClient6, @ptrCast(self)), Server, CommandLine, OptionsBuffer, OptionsBufferSize, InitialDirectory, Environment, ProcessId, AttachFlags); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient6_PushOutputLinePrefix(self: *const T, NewPrefix: ?[*:0]const u8, Handle: ?*u64) HRESULT { return @as(*const IDebugClient6.VTable, @ptrCast(self.vtable)).PushOutputLinePrefix(@as(*const IDebugClient6, @ptrCast(self)), NewPrefix, Handle); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient6_PushOutputLinePrefixWide(self: *const T, NewPrefix: ?[*:0]const u16, Handle: ?*u64) HRESULT { return @as(*const IDebugClient6.VTable, @ptrCast(self.vtable)).PushOutputLinePrefixWide(@as(*const IDebugClient6, @ptrCast(self)), NewPrefix, Handle); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient6_PopOutputLinePrefix(self: *const T, Handle: u64) HRESULT { return @as(*const IDebugClient6.VTable, @ptrCast(self.vtable)).PopOutputLinePrefix(@as(*const IDebugClient6, @ptrCast(self)), Handle); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient6_GetNumberInputCallbacks(self: *const T, Count: ?*u32) HRESULT { return @as(*const IDebugClient6.VTable, @ptrCast(self.vtable)).GetNumberInputCallbacks(@as(*const IDebugClient6, @ptrCast(self)), Count); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient6_GetNumberOutputCallbacks(self: *const T, Count: ?*u32) HRESULT { return @as(*const IDebugClient6.VTable, @ptrCast(self.vtable)).GetNumberOutputCallbacks(@as(*const IDebugClient6, @ptrCast(self)), Count); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient6_GetNumberEventCallbacks(self: *const T, EventFlags: u32, Count: ?*u32) HRESULT { return @as(*const IDebugClient6.VTable, @ptrCast(self.vtable)).GetNumberEventCallbacks(@as(*const IDebugClient6, @ptrCast(self)), EventFlags, Count); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient6_GetQuitLockString(self: *const T, Buffer: ?[*:0]u8, BufferSize: u32, StringSize: ?*u32) HRESULT { return @as(*const IDebugClient6.VTable, @ptrCast(self.vtable)).GetQuitLockString(@as(*const IDebugClient6, @ptrCast(self)), Buffer, BufferSize, StringSize); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient6_SetQuitLockString(self: *const T, String: ?[*:0]const u8) HRESULT { return @as(*const IDebugClient6.VTable, @ptrCast(self.vtable)).SetQuitLockString(@as(*const IDebugClient6, @ptrCast(self)), String); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient6_GetQuitLockStringWide(self: *const T, Buffer: ?[*:0]u16, BufferSize: u32, StringSize: ?*u32) HRESULT { return @as(*const IDebugClient6.VTable, @ptrCast(self.vtable)).GetQuitLockStringWide(@as(*const IDebugClient6, @ptrCast(self)), Buffer, BufferSize, StringSize); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient6_SetQuitLockStringWide(self: *const T, String: ?[*:0]const u16) HRESULT { return @as(*const IDebugClient6.VTable, @ptrCast(self.vtable)).SetQuitLockStringWide(@as(*const IDebugClient6, @ptrCast(self)), String); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient6_SetEventContextCallbacks(self: *const T, Callbacks: ?*IDebugEventContextCallbacks) HRESULT { return @as(*const IDebugClient6.VTable, @ptrCast(self.vtable)).SetEventContextCallbacks(@as(*const IDebugClient6, @ptrCast(self)), Callbacks); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IDebugClient7_Value = Guid.initString("13586be3-542e-481e-b1f2-8497ba74f9a9"); pub const IID_IDebugClient7 = &IID_IDebugClient7_Value; pub const IDebugClient7 = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, AttachKernel: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient7, Flags: u32, ConnectOptions: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient7, Flags: u32, ConnectOptions: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetKernelConnectionOptions: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient7, Buffer: ?[*:0]u8, BufferSize: u32, OptionsSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient7, Buffer: ?[*:0]u8, BufferSize: u32, OptionsSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetKernelConnectionOptions: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient7, Options: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient7, Options: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, StartProcessServer: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient7, Flags: u32, Options: ?[*:0]const u8, Reserved: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient7, Flags: u32, Options: ?[*:0]const u8, Reserved: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, ConnectProcessServer: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient7, RemoteOptions: ?[*:0]const u8, Server: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient7, RemoteOptions: ?[*:0]const u8, Server: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, DisconnectProcessServer: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient7, Server: u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient7, Server: u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetRunningProcessSystemIds: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient7, Server: u64, Ids: ?[*]u32, Count: u32, ActualCount: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient7, Server: u64, Ids: ?[*]u32, Count: u32, ActualCount: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetRunningProcessSystemIdByExecutableName: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient7, Server: u64, ExeName: ?[*:0]const u8, Flags: u32, Id: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient7, Server: u64, ExeName: ?[*:0]const u8, Flags: u32, Id: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetRunningProcessDescription: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient7, Server: u64, SystemId: u32, Flags: u32, ExeName: ?[*:0]u8, ExeNameSize: u32, ActualExeNameSize: ?*u32, Description: ?[*:0]u8, DescriptionSize: u32, ActualDescriptionSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient7, Server: u64, SystemId: u32, Flags: u32, ExeName: ?[*:0]u8, ExeNameSize: u32, ActualExeNameSize: ?*u32, Description: ?[*:0]u8, DescriptionSize: u32, ActualDescriptionSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, AttachProcess: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient7, Server: u64, ProcessId: u32, AttachFlags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient7, Server: u64, ProcessId: u32, AttachFlags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, CreateProcessA: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient7, Server: u64, CommandLine: ?PSTR, CreateFlags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient7, Server: u64, CommandLine: ?PSTR, CreateFlags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, CreateProcessAndAttach: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient7, Server: u64, CommandLine: ?PSTR, CreateFlags: u32, ProcessId: u32, AttachFlags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient7, Server: u64, CommandLine: ?PSTR, CreateFlags: u32, ProcessId: u32, AttachFlags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetProcessOptions: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient7, Options: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient7, Options: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, AddProcessOptions: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient7, Options: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient7, Options: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, RemoveProcessOptions: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient7, Options: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient7, Options: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetProcessOptions: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient7, Options: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient7, Options: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, OpenDumpFile: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient7, DumpFile: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient7, DumpFile: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, WriteDumpFile: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient7, DumpFile: ?[*:0]const u8, Qualifier: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient7, DumpFile: ?[*:0]const u8, Qualifier: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, ConnectSession: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient7, Flags: u32, HistoryLimit: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient7, Flags: u32, HistoryLimit: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, StartServer: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient7, Options: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient7, Options: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, OutputServers: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient7, OutputControl: u32, Machine: ?[*:0]const u8, Flags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient7, OutputControl: u32, Machine: ?[*:0]const u8, Flags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, TerminateProcesses: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient7, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient7, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, DetachProcesses: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient7, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient7, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, EndSession: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient7, Flags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient7, Flags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetExitCode: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient7, Code: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient7, Code: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, DispatchCallbacks: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient7, Timeout: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient7, Timeout: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, ExitDispatch: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient7, Client: ?*IDebugClient, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient7, Client: ?*IDebugClient, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, CreateClient: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient7, Client: ?*?*IDebugClient, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient7, Client: ?*?*IDebugClient, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetInputCallbacks: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient7, Callbacks: ?*?*IDebugInputCallbacks, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient7, Callbacks: ?*?*IDebugInputCallbacks, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetInputCallbacks: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient7, Callbacks: ?*IDebugInputCallbacks, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient7, Callbacks: ?*IDebugInputCallbacks, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetOutputCallbacks: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient7, Callbacks: ?*?*IDebugOutputCallbacks, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient7, Callbacks: ?*?*IDebugOutputCallbacks, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetOutputCallbacks: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient7, Callbacks: ?*IDebugOutputCallbacks, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient7, Callbacks: ?*IDebugOutputCallbacks, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetOutputMask: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient7, Mask: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient7, Mask: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetOutputMask: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient7, Mask: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient7, Mask: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetOtherOutputMask: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient7, Client: ?*IDebugClient, Mask: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient7, Client: ?*IDebugClient, Mask: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetOtherOutputMask: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient7, Client: ?*IDebugClient, Mask: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient7, Client: ?*IDebugClient, Mask: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetOutputWidth: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient7, Columns: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient7, Columns: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetOutputWidth: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient7, Columns: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient7, Columns: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetOutputLinePrefix: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient7, Buffer: ?[*:0]u8, BufferSize: u32, PrefixSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient7, Buffer: ?[*:0]u8, BufferSize: u32, PrefixSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetOutputLinePrefix: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient7, Prefix: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient7, Prefix: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetIdentity: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient7, Buffer: ?[*:0]u8, BufferSize: u32, IdentitySize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient7, Buffer: ?[*:0]u8, BufferSize: u32, IdentitySize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, OutputIdentity: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient7, OutputControl: u32, Flags: u32, Format: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient7, OutputControl: u32, Flags: u32, Format: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetEventCallbacks: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient7, Callbacks: ?*?*IDebugEventCallbacks, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient7, Callbacks: ?*?*IDebugEventCallbacks, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetEventCallbacks: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient7, Callbacks: ?*IDebugEventCallbacks, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient7, Callbacks: ?*IDebugEventCallbacks, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, FlushCallbacks: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient7, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient7, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, WriteDumpFile2: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient7, DumpFile: ?[*:0]const u8, Qualifier: u32, FormatFlags: u32, Comment: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient7, DumpFile: ?[*:0]const u8, Qualifier: u32, FormatFlags: u32, Comment: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, AddDumpInformationFile: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient7, InfoFile: ?[*:0]const u8, Type: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient7, InfoFile: ?[*:0]const u8, Type: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, EndProcessServer: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient7, Server: u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient7, Server: u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, WaitForProcessServerEnd: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient7, Timeout: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient7, Timeout: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, IsKernelDebuggerEnabled: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient7, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient7, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, TerminateCurrentProcess: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient7, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient7, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, DetachCurrentProcess: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient7, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient7, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, AbandonCurrentProcess: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient7, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient7, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetRunningProcessSystemIdByExecutableNameWide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient7, Server: u64, ExeName: ?[*:0]const u16, Flags: u32, Id: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient7, Server: u64, ExeName: ?[*:0]const u16, Flags: u32, Id: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetRunningProcessDescriptionWide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient7, Server: u64, SystemId: u32, Flags: u32, ExeName: ?[*:0]u16, ExeNameSize: u32, ActualExeNameSize: ?*u32, Description: ?[*:0]u16, DescriptionSize: u32, ActualDescriptionSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient7, Server: u64, SystemId: u32, Flags: u32, ExeName: ?[*:0]u16, ExeNameSize: u32, ActualExeNameSize: ?*u32, Description: ?[*:0]u16, DescriptionSize: u32, ActualDescriptionSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, CreateProcessWide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient7, Server: u64, CommandLine: ?PWSTR, CreateFlags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient7, Server: u64, CommandLine: ?PWSTR, CreateFlags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, CreateProcessAndAttachWide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient7, Server: u64, CommandLine: ?PWSTR, CreateFlags: u32, ProcessId: u32, AttachFlags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient7, Server: u64, CommandLine: ?PWSTR, CreateFlags: u32, ProcessId: u32, AttachFlags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, OpenDumpFileWide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient7, FileName: ?[*:0]const u16, FileHandle: u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient7, FileName: ?[*:0]const u16, FileHandle: u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, WriteDumpFileWide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient7, FileName: ?[*:0]const u16, FileHandle: u64, Qualifier: u32, FormatFlags: u32, Comment: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient7, FileName: ?[*:0]const u16, FileHandle: u64, Qualifier: u32, FormatFlags: u32, Comment: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, AddDumpInformationFileWide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient7, FileName: ?[*:0]const u16, FileHandle: u64, Type: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient7, FileName: ?[*:0]const u16, FileHandle: u64, Type: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetNumberDumpFiles: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient7, Number: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient7, Number: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetDumpFile: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient7, Index: u32, Buffer: ?[*:0]u8, BufferSize: u32, NameSize: ?*u32, Handle: ?*u64, Type: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient7, Index: u32, Buffer: ?[*:0]u8, BufferSize: u32, NameSize: ?*u32, Handle: ?*u64, Type: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetDumpFileWide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient7, Index: u32, Buffer: ?[*:0]u16, BufferSize: u32, NameSize: ?*u32, Handle: ?*u64, Type: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient7, Index: u32, Buffer: ?[*:0]u16, BufferSize: u32, NameSize: ?*u32, Handle: ?*u64, Type: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, AttachKernelWide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient7, Flags: u32, ConnectOptions: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient7, Flags: u32, ConnectOptions: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetKernelConnectionOptionsWide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient7, Buffer: ?[*:0]u16, BufferSize: u32, OptionsSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient7, Buffer: ?[*:0]u16, BufferSize: u32, OptionsSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetKernelConnectionOptionsWide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient7, Options: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient7, Options: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, StartProcessServerWide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient7, Flags: u32, Options: ?[*:0]const u16, Reserved: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient7, Flags: u32, Options: ?[*:0]const u16, Reserved: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, ConnectProcessServerWide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient7, RemoteOptions: ?[*:0]const u16, Server: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient7, RemoteOptions: ?[*:0]const u16, Server: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, StartServerWide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient7, Options: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient7, Options: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, OutputServersWide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient7, OutputControl: u32, Machine: ?[*:0]const u16, Flags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient7, OutputControl: u32, Machine: ?[*:0]const u16, Flags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetOutputCallbacksWide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient7, Callbacks: ?*?*IDebugOutputCallbacksWide, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient7, Callbacks: ?*?*IDebugOutputCallbacksWide, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetOutputCallbacksWide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient7, Callbacks: ?*IDebugOutputCallbacksWide, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient7, Callbacks: ?*IDebugOutputCallbacksWide, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetOutputLinePrefixWide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient7, Buffer: ?[*:0]u16, BufferSize: u32, PrefixSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient7, Buffer: ?[*:0]u16, BufferSize: u32, PrefixSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetOutputLinePrefixWide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient7, Prefix: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient7, Prefix: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetIdentityWide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient7, Buffer: ?[*:0]u16, BufferSize: u32, IdentitySize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient7, Buffer: ?[*:0]u16, BufferSize: u32, IdentitySize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, OutputIdentityWide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient7, OutputControl: u32, Flags: u32, Format: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient7, OutputControl: u32, Flags: u32, Format: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetEventCallbacksWide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient7, Callbacks: ?*?*IDebugEventCallbacksWide, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient7, Callbacks: ?*?*IDebugEventCallbacksWide, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetEventCallbacksWide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient7, Callbacks: ?*IDebugEventCallbacksWide, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient7, Callbacks: ?*IDebugEventCallbacksWide, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, CreateProcess2: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient7, Server: u64, CommandLine: ?PSTR, // TODO: what to do with BytesParamIndex 3? OptionsBuffer: ?*anyopaque, OptionsBufferSize: u32, InitialDirectory: ?[*:0]const u8, Environment: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient7, Server: u64, CommandLine: ?PSTR, // TODO: what to do with BytesParamIndex 3? OptionsBuffer: ?*anyopaque, OptionsBufferSize: u32, InitialDirectory: ?[*:0]const u8, Environment: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, CreateProcess2Wide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient7, Server: u64, CommandLine: ?PWSTR, // TODO: what to do with BytesParamIndex 3? OptionsBuffer: ?*anyopaque, OptionsBufferSize: u32, InitialDirectory: ?[*:0]const u16, Environment: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient7, Server: u64, CommandLine: ?PWSTR, // TODO: what to do with BytesParamIndex 3? OptionsBuffer: ?*anyopaque, OptionsBufferSize: u32, InitialDirectory: ?[*:0]const u16, Environment: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, CreateProcessAndAttach2: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient7, Server: u64, CommandLine: ?PSTR, // TODO: what to do with BytesParamIndex 3? OptionsBuffer: ?*anyopaque, OptionsBufferSize: u32, InitialDirectory: ?[*:0]const u8, Environment: ?[*:0]const u8, ProcessId: u32, AttachFlags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient7, Server: u64, CommandLine: ?PSTR, // TODO: what to do with BytesParamIndex 3? OptionsBuffer: ?*anyopaque, OptionsBufferSize: u32, InitialDirectory: ?[*:0]const u8, Environment: ?[*:0]const u8, ProcessId: u32, AttachFlags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, CreateProcessAndAttach2Wide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient7, Server: u64, CommandLine: ?PWSTR, // TODO: what to do with BytesParamIndex 3? OptionsBuffer: ?*anyopaque, OptionsBufferSize: u32, InitialDirectory: ?[*:0]const u16, Environment: ?[*:0]const u16, ProcessId: u32, AttachFlags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient7, Server: u64, CommandLine: ?PWSTR, // TODO: what to do with BytesParamIndex 3? OptionsBuffer: ?*anyopaque, OptionsBufferSize: u32, InitialDirectory: ?[*:0]const u16, Environment: ?[*:0]const u16, ProcessId: u32, AttachFlags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, PushOutputLinePrefix: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient7, NewPrefix: ?[*:0]const u8, Handle: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient7, NewPrefix: ?[*:0]const u8, Handle: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, PushOutputLinePrefixWide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient7, NewPrefix: ?[*:0]const u16, Handle: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient7, NewPrefix: ?[*:0]const u16, Handle: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, PopOutputLinePrefix: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient7, Handle: u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient7, Handle: u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetNumberInputCallbacks: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient7, Count: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient7, Count: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetNumberOutputCallbacks: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient7, Count: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient7, Count: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetNumberEventCallbacks: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient7, EventFlags: u32, Count: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient7, EventFlags: u32, Count: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetQuitLockString: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient7, Buffer: ?[*:0]u8, BufferSize: u32, StringSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient7, Buffer: ?[*:0]u8, BufferSize: u32, StringSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetQuitLockString: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient7, String: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient7, String: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetQuitLockStringWide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient7, Buffer: ?[*:0]u16, BufferSize: u32, StringSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient7, Buffer: ?[*:0]u16, BufferSize: u32, StringSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetQuitLockStringWide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient7, String: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient7, String: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetEventContextCallbacks: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient7, Callbacks: ?*IDebugEventContextCallbacks, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient7, Callbacks: ?*IDebugEventContextCallbacks, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetClientContext: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient7, // TODO: what to do with BytesParamIndex 1? Context: ?*anyopaque, ContextSize: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient7, // TODO: what to do with BytesParamIndex 1? Context: ?*anyopaque, ContextSize: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient7_AttachKernel(self: *const T, Flags: u32, ConnectOptions: ?[*:0]const u8) HRESULT { return @as(*const IDebugClient7.VTable, @ptrCast(self.vtable)).AttachKernel(@as(*const IDebugClient7, @ptrCast(self)), Flags, ConnectOptions); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient7_GetKernelConnectionOptions(self: *const T, Buffer: ?[*:0]u8, BufferSize: u32, OptionsSize: ?*u32) HRESULT { return @as(*const IDebugClient7.VTable, @ptrCast(self.vtable)).GetKernelConnectionOptions(@as(*const IDebugClient7, @ptrCast(self)), Buffer, BufferSize, OptionsSize); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient7_SetKernelConnectionOptions(self: *const T, Options: ?[*:0]const u8) HRESULT { return @as(*const IDebugClient7.VTable, @ptrCast(self.vtable)).SetKernelConnectionOptions(@as(*const IDebugClient7, @ptrCast(self)), Options); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient7_StartProcessServer(self: *const T, Flags: u32, Options: ?[*:0]const u8, Reserved: ?*anyopaque) HRESULT { return @as(*const IDebugClient7.VTable, @ptrCast(self.vtable)).StartProcessServer(@as(*const IDebugClient7, @ptrCast(self)), Flags, Options, Reserved); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient7_ConnectProcessServer(self: *const T, RemoteOptions: ?[*:0]const u8, Server: ?*u64) HRESULT { return @as(*const IDebugClient7.VTable, @ptrCast(self.vtable)).ConnectProcessServer(@as(*const IDebugClient7, @ptrCast(self)), RemoteOptions, Server); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient7_DisconnectProcessServer(self: *const T, Server: u64) HRESULT { return @as(*const IDebugClient7.VTable, @ptrCast(self.vtable)).DisconnectProcessServer(@as(*const IDebugClient7, @ptrCast(self)), Server); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient7_GetRunningProcessSystemIds(self: *const T, Server: u64, Ids: ?[*]u32, Count: u32, ActualCount: ?*u32) HRESULT { return @as(*const IDebugClient7.VTable, @ptrCast(self.vtable)).GetRunningProcessSystemIds(@as(*const IDebugClient7, @ptrCast(self)), Server, Ids, Count, ActualCount); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient7_GetRunningProcessSystemIdByExecutableName(self: *const T, Server: u64, ExeName: ?[*:0]const u8, Flags: u32, Id: ?*u32) HRESULT { return @as(*const IDebugClient7.VTable, @ptrCast(self.vtable)).GetRunningProcessSystemIdByExecutableName(@as(*const IDebugClient7, @ptrCast(self)), Server, ExeName, Flags, Id); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient7_GetRunningProcessDescription(self: *const T, Server: u64, SystemId: u32, Flags: u32, ExeName: ?[*:0]u8, ExeNameSize: u32, ActualExeNameSize: ?*u32, Description: ?[*:0]u8, DescriptionSize: u32, ActualDescriptionSize: ?*u32) HRESULT { return @as(*const IDebugClient7.VTable, @ptrCast(self.vtable)).GetRunningProcessDescription(@as(*const IDebugClient7, @ptrCast(self)), Server, SystemId, Flags, ExeName, ExeNameSize, ActualExeNameSize, Description, DescriptionSize, ActualDescriptionSize); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient7_AttachProcess(self: *const T, Server: u64, ProcessId: u32, AttachFlags: u32) HRESULT { return @as(*const IDebugClient7.VTable, @ptrCast(self.vtable)).AttachProcess(@as(*const IDebugClient7, @ptrCast(self)), Server, ProcessId, AttachFlags); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient7_CreateProcessA(self: *const T, Server: u64, CommandLine: ?PSTR, CreateFlags: u32) HRESULT { return @as(*const IDebugClient7.VTable, @ptrCast(self.vtable)).CreateProcessA(@as(*const IDebugClient7, @ptrCast(self)), Server, CommandLine, CreateFlags); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient7_CreateProcessAndAttach(self: *const T, Server: u64, CommandLine: ?PSTR, CreateFlags: u32, ProcessId: u32, AttachFlags: u32) HRESULT { return @as(*const IDebugClient7.VTable, @ptrCast(self.vtable)).CreateProcessAndAttach(@as(*const IDebugClient7, @ptrCast(self)), Server, CommandLine, CreateFlags, ProcessId, AttachFlags); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient7_GetProcessOptions(self: *const T, Options: ?*u32) HRESULT { return @as(*const IDebugClient7.VTable, @ptrCast(self.vtable)).GetProcessOptions(@as(*const IDebugClient7, @ptrCast(self)), Options); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient7_AddProcessOptions(self: *const T, Options: u32) HRESULT { return @as(*const IDebugClient7.VTable, @ptrCast(self.vtable)).AddProcessOptions(@as(*const IDebugClient7, @ptrCast(self)), Options); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient7_RemoveProcessOptions(self: *const T, Options: u32) HRESULT { return @as(*const IDebugClient7.VTable, @ptrCast(self.vtable)).RemoveProcessOptions(@as(*const IDebugClient7, @ptrCast(self)), Options); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient7_SetProcessOptions(self: *const T, Options: u32) HRESULT { return @as(*const IDebugClient7.VTable, @ptrCast(self.vtable)).SetProcessOptions(@as(*const IDebugClient7, @ptrCast(self)), Options); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient7_OpenDumpFile(self: *const T, DumpFile: ?[*:0]const u8) HRESULT { return @as(*const IDebugClient7.VTable, @ptrCast(self.vtable)).OpenDumpFile(@as(*const IDebugClient7, @ptrCast(self)), DumpFile); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient7_WriteDumpFile(self: *const T, DumpFile: ?[*:0]const u8, Qualifier: u32) HRESULT { return @as(*const IDebugClient7.VTable, @ptrCast(self.vtable)).WriteDumpFile(@as(*const IDebugClient7, @ptrCast(self)), DumpFile, Qualifier); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient7_ConnectSession(self: *const T, Flags: u32, HistoryLimit: u32) HRESULT { return @as(*const IDebugClient7.VTable, @ptrCast(self.vtable)).ConnectSession(@as(*const IDebugClient7, @ptrCast(self)), Flags, HistoryLimit); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient7_StartServer(self: *const T, Options: ?[*:0]const u8) HRESULT { return @as(*const IDebugClient7.VTable, @ptrCast(self.vtable)).StartServer(@as(*const IDebugClient7, @ptrCast(self)), Options); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient7_OutputServers(self: *const T, OutputControl: u32, Machine: ?[*:0]const u8, Flags: u32) HRESULT { return @as(*const IDebugClient7.VTable, @ptrCast(self.vtable)).OutputServers(@as(*const IDebugClient7, @ptrCast(self)), OutputControl, Machine, Flags); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient7_TerminateProcesses(self: *const T) HRESULT { return @as(*const IDebugClient7.VTable, @ptrCast(self.vtable)).TerminateProcesses(@as(*const IDebugClient7, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient7_DetachProcesses(self: *const T) HRESULT { return @as(*const IDebugClient7.VTable, @ptrCast(self.vtable)).DetachProcesses(@as(*const IDebugClient7, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient7_EndSession(self: *const T, Flags: u32) HRESULT { return @as(*const IDebugClient7.VTable, @ptrCast(self.vtable)).EndSession(@as(*const IDebugClient7, @ptrCast(self)), Flags); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient7_GetExitCode(self: *const T, Code: ?*u32) HRESULT { return @as(*const IDebugClient7.VTable, @ptrCast(self.vtable)).GetExitCode(@as(*const IDebugClient7, @ptrCast(self)), Code); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient7_DispatchCallbacks(self: *const T, Timeout: u32) HRESULT { return @as(*const IDebugClient7.VTable, @ptrCast(self.vtable)).DispatchCallbacks(@as(*const IDebugClient7, @ptrCast(self)), Timeout); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient7_ExitDispatch(self: *const T, Client: ?*IDebugClient) HRESULT { return @as(*const IDebugClient7.VTable, @ptrCast(self.vtable)).ExitDispatch(@as(*const IDebugClient7, @ptrCast(self)), Client); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient7_CreateClient(self: *const T, Client: ?*?*IDebugClient) HRESULT { return @as(*const IDebugClient7.VTable, @ptrCast(self.vtable)).CreateClient(@as(*const IDebugClient7, @ptrCast(self)), Client); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient7_GetInputCallbacks(self: *const T, Callbacks: ?*?*IDebugInputCallbacks) HRESULT { return @as(*const IDebugClient7.VTable, @ptrCast(self.vtable)).GetInputCallbacks(@as(*const IDebugClient7, @ptrCast(self)), Callbacks); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient7_SetInputCallbacks(self: *const T, Callbacks: ?*IDebugInputCallbacks) HRESULT { return @as(*const IDebugClient7.VTable, @ptrCast(self.vtable)).SetInputCallbacks(@as(*const IDebugClient7, @ptrCast(self)), Callbacks); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient7_GetOutputCallbacks(self: *const T, Callbacks: ?*?*IDebugOutputCallbacks) HRESULT { return @as(*const IDebugClient7.VTable, @ptrCast(self.vtable)).GetOutputCallbacks(@as(*const IDebugClient7, @ptrCast(self)), Callbacks); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient7_SetOutputCallbacks(self: *const T, Callbacks: ?*IDebugOutputCallbacks) HRESULT { return @as(*const IDebugClient7.VTable, @ptrCast(self.vtable)).SetOutputCallbacks(@as(*const IDebugClient7, @ptrCast(self)), Callbacks); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient7_GetOutputMask(self: *const T, Mask: ?*u32) HRESULT { return @as(*const IDebugClient7.VTable, @ptrCast(self.vtable)).GetOutputMask(@as(*const IDebugClient7, @ptrCast(self)), Mask); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient7_SetOutputMask(self: *const T, Mask: u32) HRESULT { return @as(*const IDebugClient7.VTable, @ptrCast(self.vtable)).SetOutputMask(@as(*const IDebugClient7, @ptrCast(self)), Mask); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient7_GetOtherOutputMask(self: *const T, Client: ?*IDebugClient, Mask: ?*u32) HRESULT { return @as(*const IDebugClient7.VTable, @ptrCast(self.vtable)).GetOtherOutputMask(@as(*const IDebugClient7, @ptrCast(self)), Client, Mask); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient7_SetOtherOutputMask(self: *const T, Client: ?*IDebugClient, Mask: u32) HRESULT { return @as(*const IDebugClient7.VTable, @ptrCast(self.vtable)).SetOtherOutputMask(@as(*const IDebugClient7, @ptrCast(self)), Client, Mask); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient7_GetOutputWidth(self: *const T, Columns: ?*u32) HRESULT { return @as(*const IDebugClient7.VTable, @ptrCast(self.vtable)).GetOutputWidth(@as(*const IDebugClient7, @ptrCast(self)), Columns); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient7_SetOutputWidth(self: *const T, Columns: u32) HRESULT { return @as(*const IDebugClient7.VTable, @ptrCast(self.vtable)).SetOutputWidth(@as(*const IDebugClient7, @ptrCast(self)), Columns); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient7_GetOutputLinePrefix(self: *const T, Buffer: ?[*:0]u8, BufferSize: u32, PrefixSize: ?*u32) HRESULT { return @as(*const IDebugClient7.VTable, @ptrCast(self.vtable)).GetOutputLinePrefix(@as(*const IDebugClient7, @ptrCast(self)), Buffer, BufferSize, PrefixSize); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient7_SetOutputLinePrefix(self: *const T, Prefix: ?[*:0]const u8) HRESULT { return @as(*const IDebugClient7.VTable, @ptrCast(self.vtable)).SetOutputLinePrefix(@as(*const IDebugClient7, @ptrCast(self)), Prefix); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient7_GetIdentity(self: *const T, Buffer: ?[*:0]u8, BufferSize: u32, IdentitySize: ?*u32) HRESULT { return @as(*const IDebugClient7.VTable, @ptrCast(self.vtable)).GetIdentity(@as(*const IDebugClient7, @ptrCast(self)), Buffer, BufferSize, IdentitySize); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient7_OutputIdentity(self: *const T, OutputControl: u32, Flags: u32, Format: ?[*:0]const u8) HRESULT { return @as(*const IDebugClient7.VTable, @ptrCast(self.vtable)).OutputIdentity(@as(*const IDebugClient7, @ptrCast(self)), OutputControl, Flags, Format); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient7_GetEventCallbacks(self: *const T, Callbacks: ?*?*IDebugEventCallbacks) HRESULT { return @as(*const IDebugClient7.VTable, @ptrCast(self.vtable)).GetEventCallbacks(@as(*const IDebugClient7, @ptrCast(self)), Callbacks); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient7_SetEventCallbacks(self: *const T, Callbacks: ?*IDebugEventCallbacks) HRESULT { return @as(*const IDebugClient7.VTable, @ptrCast(self.vtable)).SetEventCallbacks(@as(*const IDebugClient7, @ptrCast(self)), Callbacks); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient7_FlushCallbacks(self: *const T) HRESULT { return @as(*const IDebugClient7.VTable, @ptrCast(self.vtable)).FlushCallbacks(@as(*const IDebugClient7, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient7_WriteDumpFile2(self: *const T, DumpFile: ?[*:0]const u8, Qualifier: u32, FormatFlags: u32, Comment: ?[*:0]const u8) HRESULT { return @as(*const IDebugClient7.VTable, @ptrCast(self.vtable)).WriteDumpFile2(@as(*const IDebugClient7, @ptrCast(self)), DumpFile, Qualifier, FormatFlags, Comment); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient7_AddDumpInformationFile(self: *const T, InfoFile: ?[*:0]const u8, Type: u32) HRESULT { return @as(*const IDebugClient7.VTable, @ptrCast(self.vtable)).AddDumpInformationFile(@as(*const IDebugClient7, @ptrCast(self)), InfoFile, Type); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient7_EndProcessServer(self: *const T, Server: u64) HRESULT { return @as(*const IDebugClient7.VTable, @ptrCast(self.vtable)).EndProcessServer(@as(*const IDebugClient7, @ptrCast(self)), Server); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient7_WaitForProcessServerEnd(self: *const T, Timeout: u32) HRESULT { return @as(*const IDebugClient7.VTable, @ptrCast(self.vtable)).WaitForProcessServerEnd(@as(*const IDebugClient7, @ptrCast(self)), Timeout); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient7_IsKernelDebuggerEnabled(self: *const T) HRESULT { return @as(*const IDebugClient7.VTable, @ptrCast(self.vtable)).IsKernelDebuggerEnabled(@as(*const IDebugClient7, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient7_TerminateCurrentProcess(self: *const T) HRESULT { return @as(*const IDebugClient7.VTable, @ptrCast(self.vtable)).TerminateCurrentProcess(@as(*const IDebugClient7, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient7_DetachCurrentProcess(self: *const T) HRESULT { return @as(*const IDebugClient7.VTable, @ptrCast(self.vtable)).DetachCurrentProcess(@as(*const IDebugClient7, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient7_AbandonCurrentProcess(self: *const T) HRESULT { return @as(*const IDebugClient7.VTable, @ptrCast(self.vtable)).AbandonCurrentProcess(@as(*const IDebugClient7, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient7_GetRunningProcessSystemIdByExecutableNameWide(self: *const T, Server: u64, ExeName: ?[*:0]const u16, Flags: u32, Id: ?*u32) HRESULT { return @as(*const IDebugClient7.VTable, @ptrCast(self.vtable)).GetRunningProcessSystemIdByExecutableNameWide(@as(*const IDebugClient7, @ptrCast(self)), Server, ExeName, Flags, Id); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient7_GetRunningProcessDescriptionWide(self: *const T, Server: u64, SystemId: u32, Flags: u32, ExeName: ?[*:0]u16, ExeNameSize: u32, ActualExeNameSize: ?*u32, Description: ?[*:0]u16, DescriptionSize: u32, ActualDescriptionSize: ?*u32) HRESULT { return @as(*const IDebugClient7.VTable, @ptrCast(self.vtable)).GetRunningProcessDescriptionWide(@as(*const IDebugClient7, @ptrCast(self)), Server, SystemId, Flags, ExeName, ExeNameSize, ActualExeNameSize, Description, DescriptionSize, ActualDescriptionSize); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient7_CreateProcessWide(self: *const T, Server: u64, CommandLine: ?PWSTR, CreateFlags: u32) HRESULT { return @as(*const IDebugClient7.VTable, @ptrCast(self.vtable)).CreateProcessWide(@as(*const IDebugClient7, @ptrCast(self)), Server, CommandLine, CreateFlags); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient7_CreateProcessAndAttachWide(self: *const T, Server: u64, CommandLine: ?PWSTR, CreateFlags: u32, ProcessId: u32, AttachFlags: u32) HRESULT { return @as(*const IDebugClient7.VTable, @ptrCast(self.vtable)).CreateProcessAndAttachWide(@as(*const IDebugClient7, @ptrCast(self)), Server, CommandLine, CreateFlags, ProcessId, AttachFlags); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient7_OpenDumpFileWide(self: *const T, FileName: ?[*:0]const u16, FileHandle: u64) HRESULT { return @as(*const IDebugClient7.VTable, @ptrCast(self.vtable)).OpenDumpFileWide(@as(*const IDebugClient7, @ptrCast(self)), FileName, FileHandle); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient7_WriteDumpFileWide(self: *const T, FileName: ?[*:0]const u16, FileHandle: u64, Qualifier: u32, FormatFlags: u32, Comment: ?[*:0]const u16) HRESULT { return @as(*const IDebugClient7.VTable, @ptrCast(self.vtable)).WriteDumpFileWide(@as(*const IDebugClient7, @ptrCast(self)), FileName, FileHandle, Qualifier, FormatFlags, Comment); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient7_AddDumpInformationFileWide(self: *const T, FileName: ?[*:0]const u16, FileHandle: u64, Type: u32) HRESULT { return @as(*const IDebugClient7.VTable, @ptrCast(self.vtable)).AddDumpInformationFileWide(@as(*const IDebugClient7, @ptrCast(self)), FileName, FileHandle, Type); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient7_GetNumberDumpFiles(self: *const T, Number: ?*u32) HRESULT { return @as(*const IDebugClient7.VTable, @ptrCast(self.vtable)).GetNumberDumpFiles(@as(*const IDebugClient7, @ptrCast(self)), Number); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient7_GetDumpFile(self: *const T, Index: u32, Buffer: ?[*:0]u8, BufferSize: u32, NameSize: ?*u32, Handle: ?*u64, Type: ?*u32) HRESULT { return @as(*const IDebugClient7.VTable, @ptrCast(self.vtable)).GetDumpFile(@as(*const IDebugClient7, @ptrCast(self)), Index, Buffer, BufferSize, NameSize, Handle, Type); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient7_GetDumpFileWide(self: *const T, Index: u32, Buffer: ?[*:0]u16, BufferSize: u32, NameSize: ?*u32, Handle: ?*u64, Type: ?*u32) HRESULT { return @as(*const IDebugClient7.VTable, @ptrCast(self.vtable)).GetDumpFileWide(@as(*const IDebugClient7, @ptrCast(self)), Index, Buffer, BufferSize, NameSize, Handle, Type); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient7_AttachKernelWide(self: *const T, Flags: u32, ConnectOptions: ?[*:0]const u16) HRESULT { return @as(*const IDebugClient7.VTable, @ptrCast(self.vtable)).AttachKernelWide(@as(*const IDebugClient7, @ptrCast(self)), Flags, ConnectOptions); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient7_GetKernelConnectionOptionsWide(self: *const T, Buffer: ?[*:0]u16, BufferSize: u32, OptionsSize: ?*u32) HRESULT { return @as(*const IDebugClient7.VTable, @ptrCast(self.vtable)).GetKernelConnectionOptionsWide(@as(*const IDebugClient7, @ptrCast(self)), Buffer, BufferSize, OptionsSize); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient7_SetKernelConnectionOptionsWide(self: *const T, Options: ?[*:0]const u16) HRESULT { return @as(*const IDebugClient7.VTable, @ptrCast(self.vtable)).SetKernelConnectionOptionsWide(@as(*const IDebugClient7, @ptrCast(self)), Options); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient7_StartProcessServerWide(self: *const T, Flags: u32, Options: ?[*:0]const u16, Reserved: ?*anyopaque) HRESULT { return @as(*const IDebugClient7.VTable, @ptrCast(self.vtable)).StartProcessServerWide(@as(*const IDebugClient7, @ptrCast(self)), Flags, Options, Reserved); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient7_ConnectProcessServerWide(self: *const T, RemoteOptions: ?[*:0]const u16, Server: ?*u64) HRESULT { return @as(*const IDebugClient7.VTable, @ptrCast(self.vtable)).ConnectProcessServerWide(@as(*const IDebugClient7, @ptrCast(self)), RemoteOptions, Server); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient7_StartServerWide(self: *const T, Options: ?[*:0]const u16) HRESULT { return @as(*const IDebugClient7.VTable, @ptrCast(self.vtable)).StartServerWide(@as(*const IDebugClient7, @ptrCast(self)), Options); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient7_OutputServersWide(self: *const T, OutputControl: u32, Machine: ?[*:0]const u16, Flags: u32) HRESULT { return @as(*const IDebugClient7.VTable, @ptrCast(self.vtable)).OutputServersWide(@as(*const IDebugClient7, @ptrCast(self)), OutputControl, Machine, Flags); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient7_GetOutputCallbacksWide(self: *const T, Callbacks: ?*?*IDebugOutputCallbacksWide) HRESULT { return @as(*const IDebugClient7.VTable, @ptrCast(self.vtable)).GetOutputCallbacksWide(@as(*const IDebugClient7, @ptrCast(self)), Callbacks); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient7_SetOutputCallbacksWide(self: *const T, Callbacks: ?*IDebugOutputCallbacksWide) HRESULT { return @as(*const IDebugClient7.VTable, @ptrCast(self.vtable)).SetOutputCallbacksWide(@as(*const IDebugClient7, @ptrCast(self)), Callbacks); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient7_GetOutputLinePrefixWide(self: *const T, Buffer: ?[*:0]u16, BufferSize: u32, PrefixSize: ?*u32) HRESULT { return @as(*const IDebugClient7.VTable, @ptrCast(self.vtable)).GetOutputLinePrefixWide(@as(*const IDebugClient7, @ptrCast(self)), Buffer, BufferSize, PrefixSize); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient7_SetOutputLinePrefixWide(self: *const T, Prefix: ?[*:0]const u16) HRESULT { return @as(*const IDebugClient7.VTable, @ptrCast(self.vtable)).SetOutputLinePrefixWide(@as(*const IDebugClient7, @ptrCast(self)), Prefix); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient7_GetIdentityWide(self: *const T, Buffer: ?[*:0]u16, BufferSize: u32, IdentitySize: ?*u32) HRESULT { return @as(*const IDebugClient7.VTable, @ptrCast(self.vtable)).GetIdentityWide(@as(*const IDebugClient7, @ptrCast(self)), Buffer, BufferSize, IdentitySize); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient7_OutputIdentityWide(self: *const T, OutputControl: u32, Flags: u32, Format: ?[*:0]const u16) HRESULT { return @as(*const IDebugClient7.VTable, @ptrCast(self.vtable)).OutputIdentityWide(@as(*const IDebugClient7, @ptrCast(self)), OutputControl, Flags, Format); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient7_GetEventCallbacksWide(self: *const T, Callbacks: ?*?*IDebugEventCallbacksWide) HRESULT { return @as(*const IDebugClient7.VTable, @ptrCast(self.vtable)).GetEventCallbacksWide(@as(*const IDebugClient7, @ptrCast(self)), Callbacks); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient7_SetEventCallbacksWide(self: *const T, Callbacks: ?*IDebugEventCallbacksWide) HRESULT { return @as(*const IDebugClient7.VTable, @ptrCast(self.vtable)).SetEventCallbacksWide(@as(*const IDebugClient7, @ptrCast(self)), Callbacks); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient7_CreateProcess2(self: *const T, Server: u64, CommandLine: ?PSTR, OptionsBuffer: ?*anyopaque, OptionsBufferSize: u32, InitialDirectory: ?[*:0]const u8, Environment: ?[*:0]const u8) HRESULT { return @as(*const IDebugClient7.VTable, @ptrCast(self.vtable)).CreateProcess2(@as(*const IDebugClient7, @ptrCast(self)), Server, CommandLine, OptionsBuffer, OptionsBufferSize, InitialDirectory, Environment); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient7_CreateProcess2Wide(self: *const T, Server: u64, CommandLine: ?PWSTR, OptionsBuffer: ?*anyopaque, OptionsBufferSize: u32, InitialDirectory: ?[*:0]const u16, Environment: ?[*:0]const u16) HRESULT { return @as(*const IDebugClient7.VTable, @ptrCast(self.vtable)).CreateProcess2Wide(@as(*const IDebugClient7, @ptrCast(self)), Server, CommandLine, OptionsBuffer, OptionsBufferSize, InitialDirectory, Environment); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient7_CreateProcessAndAttach2(self: *const T, Server: u64, CommandLine: ?PSTR, OptionsBuffer: ?*anyopaque, OptionsBufferSize: u32, InitialDirectory: ?[*:0]const u8, Environment: ?[*:0]const u8, ProcessId: u32, AttachFlags: u32) HRESULT { return @as(*const IDebugClient7.VTable, @ptrCast(self.vtable)).CreateProcessAndAttach2(@as(*const IDebugClient7, @ptrCast(self)), Server, CommandLine, OptionsBuffer, OptionsBufferSize, InitialDirectory, Environment, ProcessId, AttachFlags); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient7_CreateProcessAndAttach2Wide(self: *const T, Server: u64, CommandLine: ?PWSTR, OptionsBuffer: ?*anyopaque, OptionsBufferSize: u32, InitialDirectory: ?[*:0]const u16, Environment: ?[*:0]const u16, ProcessId: u32, AttachFlags: u32) HRESULT { return @as(*const IDebugClient7.VTable, @ptrCast(self.vtable)).CreateProcessAndAttach2Wide(@as(*const IDebugClient7, @ptrCast(self)), Server, CommandLine, OptionsBuffer, OptionsBufferSize, InitialDirectory, Environment, ProcessId, AttachFlags); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient7_PushOutputLinePrefix(self: *const T, NewPrefix: ?[*:0]const u8, Handle: ?*u64) HRESULT { return @as(*const IDebugClient7.VTable, @ptrCast(self.vtable)).PushOutputLinePrefix(@as(*const IDebugClient7, @ptrCast(self)), NewPrefix, Handle); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient7_PushOutputLinePrefixWide(self: *const T, NewPrefix: ?[*:0]const u16, Handle: ?*u64) HRESULT { return @as(*const IDebugClient7.VTable, @ptrCast(self.vtable)).PushOutputLinePrefixWide(@as(*const IDebugClient7, @ptrCast(self)), NewPrefix, Handle); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient7_PopOutputLinePrefix(self: *const T, Handle: u64) HRESULT { return @as(*const IDebugClient7.VTable, @ptrCast(self.vtable)).PopOutputLinePrefix(@as(*const IDebugClient7, @ptrCast(self)), Handle); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient7_GetNumberInputCallbacks(self: *const T, Count: ?*u32) HRESULT { return @as(*const IDebugClient7.VTable, @ptrCast(self.vtable)).GetNumberInputCallbacks(@as(*const IDebugClient7, @ptrCast(self)), Count); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient7_GetNumberOutputCallbacks(self: *const T, Count: ?*u32) HRESULT { return @as(*const IDebugClient7.VTable, @ptrCast(self.vtable)).GetNumberOutputCallbacks(@as(*const IDebugClient7, @ptrCast(self)), Count); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient7_GetNumberEventCallbacks(self: *const T, EventFlags: u32, Count: ?*u32) HRESULT { return @as(*const IDebugClient7.VTable, @ptrCast(self.vtable)).GetNumberEventCallbacks(@as(*const IDebugClient7, @ptrCast(self)), EventFlags, Count); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient7_GetQuitLockString(self: *const T, Buffer: ?[*:0]u8, BufferSize: u32, StringSize: ?*u32) HRESULT { return @as(*const IDebugClient7.VTable, @ptrCast(self.vtable)).GetQuitLockString(@as(*const IDebugClient7, @ptrCast(self)), Buffer, BufferSize, StringSize); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient7_SetQuitLockString(self: *const T, String: ?[*:0]const u8) HRESULT { return @as(*const IDebugClient7.VTable, @ptrCast(self.vtable)).SetQuitLockString(@as(*const IDebugClient7, @ptrCast(self)), String); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient7_GetQuitLockStringWide(self: *const T, Buffer: ?[*:0]u16, BufferSize: u32, StringSize: ?*u32) HRESULT { return @as(*const IDebugClient7.VTable, @ptrCast(self.vtable)).GetQuitLockStringWide(@as(*const IDebugClient7, @ptrCast(self)), Buffer, BufferSize, StringSize); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient7_SetQuitLockStringWide(self: *const T, String: ?[*:0]const u16) HRESULT { return @as(*const IDebugClient7.VTable, @ptrCast(self.vtable)).SetQuitLockStringWide(@as(*const IDebugClient7, @ptrCast(self)), String); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient7_SetEventContextCallbacks(self: *const T, Callbacks: ?*IDebugEventContextCallbacks) HRESULT { return @as(*const IDebugClient7.VTable, @ptrCast(self.vtable)).SetEventContextCallbacks(@as(*const IDebugClient7, @ptrCast(self)), Callbacks); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient7_SetClientContext(self: *const T, Context: ?*anyopaque, ContextSize: u32) HRESULT { return @as(*const IDebugClient7.VTable, @ptrCast(self.vtable)).SetClientContext(@as(*const IDebugClient7, @ptrCast(self)), Context, ContextSize); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IDebugClient8_Value = Guid.initString("cec43add-6375-469e-83d5-414e4033c19a"); pub const IID_IDebugClient8 = &IID_IDebugClient8_Value; pub const IDebugClient8 = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, AttachKernel: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient8, Flags: u32, ConnectOptions: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient8, Flags: u32, ConnectOptions: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetKernelConnectionOptions: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient8, Buffer: ?[*:0]u8, BufferSize: u32, OptionsSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient8, Buffer: ?[*:0]u8, BufferSize: u32, OptionsSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetKernelConnectionOptions: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient8, Options: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient8, Options: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, StartProcessServer: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient8, Flags: u32, Options: ?[*:0]const u8, Reserved: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient8, Flags: u32, Options: ?[*:0]const u8, Reserved: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, ConnectProcessServer: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient8, RemoteOptions: ?[*:0]const u8, Server: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient8, RemoteOptions: ?[*:0]const u8, Server: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, DisconnectProcessServer: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient8, Server: u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient8, Server: u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetRunningProcessSystemIds: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient8, Server: u64, Ids: ?[*]u32, Count: u32, ActualCount: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient8, Server: u64, Ids: ?[*]u32, Count: u32, ActualCount: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetRunningProcessSystemIdByExecutableName: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient8, Server: u64, ExeName: ?[*:0]const u8, Flags: u32, Id: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient8, Server: u64, ExeName: ?[*:0]const u8, Flags: u32, Id: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetRunningProcessDescription: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient8, Server: u64, SystemId: u32, Flags: u32, ExeName: ?[*:0]u8, ExeNameSize: u32, ActualExeNameSize: ?*u32, Description: ?[*:0]u8, DescriptionSize: u32, ActualDescriptionSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient8, Server: u64, SystemId: u32, Flags: u32, ExeName: ?[*:0]u8, ExeNameSize: u32, ActualExeNameSize: ?*u32, Description: ?[*:0]u8, DescriptionSize: u32, ActualDescriptionSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, AttachProcess: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient8, Server: u64, ProcessId: u32, AttachFlags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient8, Server: u64, ProcessId: u32, AttachFlags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, CreateProcessA: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient8, Server: u64, CommandLine: ?PSTR, CreateFlags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient8, Server: u64, CommandLine: ?PSTR, CreateFlags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, CreateProcessAndAttach: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient8, Server: u64, CommandLine: ?PSTR, CreateFlags: u32, ProcessId: u32, AttachFlags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient8, Server: u64, CommandLine: ?PSTR, CreateFlags: u32, ProcessId: u32, AttachFlags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetProcessOptions: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient8, Options: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient8, Options: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, AddProcessOptions: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient8, Options: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient8, Options: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, RemoveProcessOptions: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient8, Options: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient8, Options: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetProcessOptions: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient8, Options: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient8, Options: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, OpenDumpFile: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient8, DumpFile: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient8, DumpFile: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, WriteDumpFile: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient8, DumpFile: ?[*:0]const u8, Qualifier: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient8, DumpFile: ?[*:0]const u8, Qualifier: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, ConnectSession: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient8, Flags: u32, HistoryLimit: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient8, Flags: u32, HistoryLimit: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, StartServer: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient8, Options: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient8, Options: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, OutputServers: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient8, OutputControl: u32, Machine: ?[*:0]const u8, Flags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient8, OutputControl: u32, Machine: ?[*:0]const u8, Flags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, TerminateProcesses: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, DetachProcesses: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, EndSession: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient8, Flags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient8, Flags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetExitCode: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient8, Code: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient8, Code: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, DispatchCallbacks: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient8, Timeout: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient8, Timeout: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, ExitDispatch: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient8, Client: ?*IDebugClient, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient8, Client: ?*IDebugClient, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, CreateClient: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient8, Client: ?*?*IDebugClient, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient8, Client: ?*?*IDebugClient, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetInputCallbacks: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient8, Callbacks: ?*?*IDebugInputCallbacks, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient8, Callbacks: ?*?*IDebugInputCallbacks, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetInputCallbacks: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient8, Callbacks: ?*IDebugInputCallbacks, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient8, Callbacks: ?*IDebugInputCallbacks, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetOutputCallbacks: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient8, Callbacks: ?*?*IDebugOutputCallbacks, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient8, Callbacks: ?*?*IDebugOutputCallbacks, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetOutputCallbacks: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient8, Callbacks: ?*IDebugOutputCallbacks, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient8, Callbacks: ?*IDebugOutputCallbacks, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetOutputMask: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient8, Mask: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient8, Mask: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetOutputMask: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient8, Mask: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient8, Mask: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetOtherOutputMask: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient8, Client: ?*IDebugClient, Mask: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient8, Client: ?*IDebugClient, Mask: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetOtherOutputMask: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient8, Client: ?*IDebugClient, Mask: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient8, Client: ?*IDebugClient, Mask: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetOutputWidth: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient8, Columns: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient8, Columns: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetOutputWidth: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient8, Columns: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient8, Columns: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetOutputLinePrefix: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient8, Buffer: ?[*:0]u8, BufferSize: u32, PrefixSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient8, Buffer: ?[*:0]u8, BufferSize: u32, PrefixSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetOutputLinePrefix: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient8, Prefix: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient8, Prefix: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetIdentity: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient8, Buffer: ?[*:0]u8, BufferSize: u32, IdentitySize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient8, Buffer: ?[*:0]u8, BufferSize: u32, IdentitySize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, OutputIdentity: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient8, OutputControl: u32, Flags: u32, Format: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient8, OutputControl: u32, Flags: u32, Format: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetEventCallbacks: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient8, Callbacks: ?*?*IDebugEventCallbacks, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient8, Callbacks: ?*?*IDebugEventCallbacks, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetEventCallbacks: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient8, Callbacks: ?*IDebugEventCallbacks, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient8, Callbacks: ?*IDebugEventCallbacks, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, FlushCallbacks: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, WriteDumpFile2: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient8, DumpFile: ?[*:0]const u8, Qualifier: u32, FormatFlags: u32, Comment: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient8, DumpFile: ?[*:0]const u8, Qualifier: u32, FormatFlags: u32, Comment: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, AddDumpInformationFile: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient8, InfoFile: ?[*:0]const u8, Type: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient8, InfoFile: ?[*:0]const u8, Type: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, EndProcessServer: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient8, Server: u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient8, Server: u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, WaitForProcessServerEnd: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient8, Timeout: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient8, Timeout: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, IsKernelDebuggerEnabled: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, TerminateCurrentProcess: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, DetachCurrentProcess: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, AbandonCurrentProcess: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetRunningProcessSystemIdByExecutableNameWide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient8, Server: u64, ExeName: ?[*:0]const u16, Flags: u32, Id: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient8, Server: u64, ExeName: ?[*:0]const u16, Flags: u32, Id: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetRunningProcessDescriptionWide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient8, Server: u64, SystemId: u32, Flags: u32, ExeName: ?[*:0]u16, ExeNameSize: u32, ActualExeNameSize: ?*u32, Description: ?[*:0]u16, DescriptionSize: u32, ActualDescriptionSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient8, Server: u64, SystemId: u32, Flags: u32, ExeName: ?[*:0]u16, ExeNameSize: u32, ActualExeNameSize: ?*u32, Description: ?[*:0]u16, DescriptionSize: u32, ActualDescriptionSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, CreateProcessWide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient8, Server: u64, CommandLine: ?PWSTR, CreateFlags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient8, Server: u64, CommandLine: ?PWSTR, CreateFlags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, CreateProcessAndAttachWide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient8, Server: u64, CommandLine: ?PWSTR, CreateFlags: u32, ProcessId: u32, AttachFlags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient8, Server: u64, CommandLine: ?PWSTR, CreateFlags: u32, ProcessId: u32, AttachFlags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, OpenDumpFileWide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient8, FileName: ?[*:0]const u16, FileHandle: u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient8, FileName: ?[*:0]const u16, FileHandle: u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, WriteDumpFileWide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient8, FileName: ?[*:0]const u16, FileHandle: u64, Qualifier: u32, FormatFlags: u32, Comment: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient8, FileName: ?[*:0]const u16, FileHandle: u64, Qualifier: u32, FormatFlags: u32, Comment: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, AddDumpInformationFileWide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient8, FileName: ?[*:0]const u16, FileHandle: u64, Type: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient8, FileName: ?[*:0]const u16, FileHandle: u64, Type: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetNumberDumpFiles: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient8, Number: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient8, Number: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetDumpFile: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient8, Index: u32, Buffer: ?[*:0]u8, BufferSize: u32, NameSize: ?*u32, Handle: ?*u64, Type: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient8, Index: u32, Buffer: ?[*:0]u8, BufferSize: u32, NameSize: ?*u32, Handle: ?*u64, Type: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetDumpFileWide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient8, Index: u32, Buffer: ?[*:0]u16, BufferSize: u32, NameSize: ?*u32, Handle: ?*u64, Type: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient8, Index: u32, Buffer: ?[*:0]u16, BufferSize: u32, NameSize: ?*u32, Handle: ?*u64, Type: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, AttachKernelWide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient8, Flags: u32, ConnectOptions: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient8, Flags: u32, ConnectOptions: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetKernelConnectionOptionsWide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient8, Buffer: ?[*:0]u16, BufferSize: u32, OptionsSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient8, Buffer: ?[*:0]u16, BufferSize: u32, OptionsSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetKernelConnectionOptionsWide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient8, Options: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient8, Options: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, StartProcessServerWide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient8, Flags: u32, Options: ?[*:0]const u16, Reserved: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient8, Flags: u32, Options: ?[*:0]const u16, Reserved: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, ConnectProcessServerWide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient8, RemoteOptions: ?[*:0]const u16, Server: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient8, RemoteOptions: ?[*:0]const u16, Server: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, StartServerWide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient8, Options: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient8, Options: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, OutputServersWide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient8, OutputControl: u32, Machine: ?[*:0]const u16, Flags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient8, OutputControl: u32, Machine: ?[*:0]const u16, Flags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetOutputCallbacksWide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient8, Callbacks: ?*?*IDebugOutputCallbacksWide, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient8, Callbacks: ?*?*IDebugOutputCallbacksWide, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetOutputCallbacksWide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient8, Callbacks: ?*IDebugOutputCallbacksWide, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient8, Callbacks: ?*IDebugOutputCallbacksWide, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetOutputLinePrefixWide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient8, Buffer: ?[*:0]u16, BufferSize: u32, PrefixSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient8, Buffer: ?[*:0]u16, BufferSize: u32, PrefixSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetOutputLinePrefixWide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient8, Prefix: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient8, Prefix: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetIdentityWide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient8, Buffer: ?[*:0]u16, BufferSize: u32, IdentitySize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient8, Buffer: ?[*:0]u16, BufferSize: u32, IdentitySize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, OutputIdentityWide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient8, OutputControl: u32, Flags: u32, Format: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient8, OutputControl: u32, Flags: u32, Format: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetEventCallbacksWide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient8, Callbacks: ?*?*IDebugEventCallbacksWide, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient8, Callbacks: ?*?*IDebugEventCallbacksWide, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetEventCallbacksWide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient8, Callbacks: ?*IDebugEventCallbacksWide, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient8, Callbacks: ?*IDebugEventCallbacksWide, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, CreateProcess2: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient8, Server: u64, CommandLine: ?PSTR, // TODO: what to do with BytesParamIndex 3? OptionsBuffer: ?*anyopaque, OptionsBufferSize: u32, InitialDirectory: ?[*:0]const u8, Environment: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient8, Server: u64, CommandLine: ?PSTR, // TODO: what to do with BytesParamIndex 3? OptionsBuffer: ?*anyopaque, OptionsBufferSize: u32, InitialDirectory: ?[*:0]const u8, Environment: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, CreateProcess2Wide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient8, Server: u64, CommandLine: ?PWSTR, // TODO: what to do with BytesParamIndex 3? OptionsBuffer: ?*anyopaque, OptionsBufferSize: u32, InitialDirectory: ?[*:0]const u16, Environment: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient8, Server: u64, CommandLine: ?PWSTR, // TODO: what to do with BytesParamIndex 3? OptionsBuffer: ?*anyopaque, OptionsBufferSize: u32, InitialDirectory: ?[*:0]const u16, Environment: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, CreateProcessAndAttach2: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient8, Server: u64, CommandLine: ?PSTR, // TODO: what to do with BytesParamIndex 3? OptionsBuffer: ?*anyopaque, OptionsBufferSize: u32, InitialDirectory: ?[*:0]const u8, Environment: ?[*:0]const u8, ProcessId: u32, AttachFlags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient8, Server: u64, CommandLine: ?PSTR, // TODO: what to do with BytesParamIndex 3? OptionsBuffer: ?*anyopaque, OptionsBufferSize: u32, InitialDirectory: ?[*:0]const u8, Environment: ?[*:0]const u8, ProcessId: u32, AttachFlags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, CreateProcessAndAttach2Wide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient8, Server: u64, CommandLine: ?PWSTR, // TODO: what to do with BytesParamIndex 3? OptionsBuffer: ?*anyopaque, OptionsBufferSize: u32, InitialDirectory: ?[*:0]const u16, Environment: ?[*:0]const u16, ProcessId: u32, AttachFlags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient8, Server: u64, CommandLine: ?PWSTR, // TODO: what to do with BytesParamIndex 3? OptionsBuffer: ?*anyopaque, OptionsBufferSize: u32, InitialDirectory: ?[*:0]const u16, Environment: ?[*:0]const u16, ProcessId: u32, AttachFlags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, PushOutputLinePrefix: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient8, NewPrefix: ?[*:0]const u8, Handle: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient8, NewPrefix: ?[*:0]const u8, Handle: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, PushOutputLinePrefixWide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient8, NewPrefix: ?[*:0]const u16, Handle: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient8, NewPrefix: ?[*:0]const u16, Handle: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, PopOutputLinePrefix: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient8, Handle: u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient8, Handle: u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetNumberInputCallbacks: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient8, Count: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient8, Count: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetNumberOutputCallbacks: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient8, Count: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient8, Count: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetNumberEventCallbacks: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient8, EventFlags: u32, Count: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient8, EventFlags: u32, Count: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetQuitLockString: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient8, Buffer: ?[*:0]u8, BufferSize: u32, StringSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient8, Buffer: ?[*:0]u8, BufferSize: u32, StringSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetQuitLockString: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient8, String: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient8, String: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetQuitLockStringWide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient8, Buffer: ?[*:0]u16, BufferSize: u32, StringSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient8, Buffer: ?[*:0]u16, BufferSize: u32, StringSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetQuitLockStringWide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient8, String: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient8, String: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetEventContextCallbacks: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient8, Callbacks: ?*IDebugEventContextCallbacks, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient8, Callbacks: ?*IDebugEventContextCallbacks, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetClientContext: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient8, // TODO: what to do with BytesParamIndex 1? Context: ?*anyopaque, ContextSize: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient8, // TODO: what to do with BytesParamIndex 1? Context: ?*anyopaque, ContextSize: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, OpenDumpFileWide2: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugClient8, FileName: ?[*:0]const u16, FileHandle: u64, AlternateArch: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugClient8, FileName: ?[*:0]const u16, FileHandle: u64, AlternateArch: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient8_AttachKernel(self: *const T, Flags: u32, ConnectOptions: ?[*:0]const u8) HRESULT { return @as(*const IDebugClient8.VTable, @ptrCast(self.vtable)).AttachKernel(@as(*const IDebugClient8, @ptrCast(self)), Flags, ConnectOptions); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient8_GetKernelConnectionOptions(self: *const T, Buffer: ?[*:0]u8, BufferSize: u32, OptionsSize: ?*u32) HRESULT { return @as(*const IDebugClient8.VTable, @ptrCast(self.vtable)).GetKernelConnectionOptions(@as(*const IDebugClient8, @ptrCast(self)), Buffer, BufferSize, OptionsSize); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient8_SetKernelConnectionOptions(self: *const T, Options: ?[*:0]const u8) HRESULT { return @as(*const IDebugClient8.VTable, @ptrCast(self.vtable)).SetKernelConnectionOptions(@as(*const IDebugClient8, @ptrCast(self)), Options); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient8_StartProcessServer(self: *const T, Flags: u32, Options: ?[*:0]const u8, Reserved: ?*anyopaque) HRESULT { return @as(*const IDebugClient8.VTable, @ptrCast(self.vtable)).StartProcessServer(@as(*const IDebugClient8, @ptrCast(self)), Flags, Options, Reserved); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient8_ConnectProcessServer(self: *const T, RemoteOptions: ?[*:0]const u8, Server: ?*u64) HRESULT { return @as(*const IDebugClient8.VTable, @ptrCast(self.vtable)).ConnectProcessServer(@as(*const IDebugClient8, @ptrCast(self)), RemoteOptions, Server); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient8_DisconnectProcessServer(self: *const T, Server: u64) HRESULT { return @as(*const IDebugClient8.VTable, @ptrCast(self.vtable)).DisconnectProcessServer(@as(*const IDebugClient8, @ptrCast(self)), Server); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient8_GetRunningProcessSystemIds(self: *const T, Server: u64, Ids: ?[*]u32, Count: u32, ActualCount: ?*u32) HRESULT { return @as(*const IDebugClient8.VTable, @ptrCast(self.vtable)).GetRunningProcessSystemIds(@as(*const IDebugClient8, @ptrCast(self)), Server, Ids, Count, ActualCount); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient8_GetRunningProcessSystemIdByExecutableName(self: *const T, Server: u64, ExeName: ?[*:0]const u8, Flags: u32, Id: ?*u32) HRESULT { return @as(*const IDebugClient8.VTable, @ptrCast(self.vtable)).GetRunningProcessSystemIdByExecutableName(@as(*const IDebugClient8, @ptrCast(self)), Server, ExeName, Flags, Id); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient8_GetRunningProcessDescription(self: *const T, Server: u64, SystemId: u32, Flags: u32, ExeName: ?[*:0]u8, ExeNameSize: u32, ActualExeNameSize: ?*u32, Description: ?[*:0]u8, DescriptionSize: u32, ActualDescriptionSize: ?*u32) HRESULT { return @as(*const IDebugClient8.VTable, @ptrCast(self.vtable)).GetRunningProcessDescription(@as(*const IDebugClient8, @ptrCast(self)), Server, SystemId, Flags, ExeName, ExeNameSize, ActualExeNameSize, Description, DescriptionSize, ActualDescriptionSize); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient8_AttachProcess(self: *const T, Server: u64, ProcessId: u32, AttachFlags: u32) HRESULT { return @as(*const IDebugClient8.VTable, @ptrCast(self.vtable)).AttachProcess(@as(*const IDebugClient8, @ptrCast(self)), Server, ProcessId, AttachFlags); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient8_CreateProcessA(self: *const T, Server: u64, CommandLine: ?PSTR, CreateFlags: u32) HRESULT { return @as(*const IDebugClient8.VTable, @ptrCast(self.vtable)).CreateProcessA(@as(*const IDebugClient8, @ptrCast(self)), Server, CommandLine, CreateFlags); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient8_CreateProcessAndAttach(self: *const T, Server: u64, CommandLine: ?PSTR, CreateFlags: u32, ProcessId: u32, AttachFlags: u32) HRESULT { return @as(*const IDebugClient8.VTable, @ptrCast(self.vtable)).CreateProcessAndAttach(@as(*const IDebugClient8, @ptrCast(self)), Server, CommandLine, CreateFlags, ProcessId, AttachFlags); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient8_GetProcessOptions(self: *const T, Options: ?*u32) HRESULT { return @as(*const IDebugClient8.VTable, @ptrCast(self.vtable)).GetProcessOptions(@as(*const IDebugClient8, @ptrCast(self)), Options); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient8_AddProcessOptions(self: *const T, Options: u32) HRESULT { return @as(*const IDebugClient8.VTable, @ptrCast(self.vtable)).AddProcessOptions(@as(*const IDebugClient8, @ptrCast(self)), Options); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient8_RemoveProcessOptions(self: *const T, Options: u32) HRESULT { return @as(*const IDebugClient8.VTable, @ptrCast(self.vtable)).RemoveProcessOptions(@as(*const IDebugClient8, @ptrCast(self)), Options); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient8_SetProcessOptions(self: *const T, Options: u32) HRESULT { return @as(*const IDebugClient8.VTable, @ptrCast(self.vtable)).SetProcessOptions(@as(*const IDebugClient8, @ptrCast(self)), Options); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient8_OpenDumpFile(self: *const T, DumpFile: ?[*:0]const u8) HRESULT { return @as(*const IDebugClient8.VTable, @ptrCast(self.vtable)).OpenDumpFile(@as(*const IDebugClient8, @ptrCast(self)), DumpFile); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient8_WriteDumpFile(self: *const T, DumpFile: ?[*:0]const u8, Qualifier: u32) HRESULT { return @as(*const IDebugClient8.VTable, @ptrCast(self.vtable)).WriteDumpFile(@as(*const IDebugClient8, @ptrCast(self)), DumpFile, Qualifier); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient8_ConnectSession(self: *const T, Flags: u32, HistoryLimit: u32) HRESULT { return @as(*const IDebugClient8.VTable, @ptrCast(self.vtable)).ConnectSession(@as(*const IDebugClient8, @ptrCast(self)), Flags, HistoryLimit); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient8_StartServer(self: *const T, Options: ?[*:0]const u8) HRESULT { return @as(*const IDebugClient8.VTable, @ptrCast(self.vtable)).StartServer(@as(*const IDebugClient8, @ptrCast(self)), Options); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient8_OutputServers(self: *const T, OutputControl: u32, Machine: ?[*:0]const u8, Flags: u32) HRESULT { return @as(*const IDebugClient8.VTable, @ptrCast(self.vtable)).OutputServers(@as(*const IDebugClient8, @ptrCast(self)), OutputControl, Machine, Flags); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient8_TerminateProcesses(self: *const T) HRESULT { return @as(*const IDebugClient8.VTable, @ptrCast(self.vtable)).TerminateProcesses(@as(*const IDebugClient8, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient8_DetachProcesses(self: *const T) HRESULT { return @as(*const IDebugClient8.VTable, @ptrCast(self.vtable)).DetachProcesses(@as(*const IDebugClient8, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient8_EndSession(self: *const T, Flags: u32) HRESULT { return @as(*const IDebugClient8.VTable, @ptrCast(self.vtable)).EndSession(@as(*const IDebugClient8, @ptrCast(self)), Flags); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient8_GetExitCode(self: *const T, Code: ?*u32) HRESULT { return @as(*const IDebugClient8.VTable, @ptrCast(self.vtable)).GetExitCode(@as(*const IDebugClient8, @ptrCast(self)), Code); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient8_DispatchCallbacks(self: *const T, Timeout: u32) HRESULT { return @as(*const IDebugClient8.VTable, @ptrCast(self.vtable)).DispatchCallbacks(@as(*const IDebugClient8, @ptrCast(self)), Timeout); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient8_ExitDispatch(self: *const T, Client: ?*IDebugClient) HRESULT { return @as(*const IDebugClient8.VTable, @ptrCast(self.vtable)).ExitDispatch(@as(*const IDebugClient8, @ptrCast(self)), Client); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient8_CreateClient(self: *const T, Client: ?*?*IDebugClient) HRESULT { return @as(*const IDebugClient8.VTable, @ptrCast(self.vtable)).CreateClient(@as(*const IDebugClient8, @ptrCast(self)), Client); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient8_GetInputCallbacks(self: *const T, Callbacks: ?*?*IDebugInputCallbacks) HRESULT { return @as(*const IDebugClient8.VTable, @ptrCast(self.vtable)).GetInputCallbacks(@as(*const IDebugClient8, @ptrCast(self)), Callbacks); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient8_SetInputCallbacks(self: *const T, Callbacks: ?*IDebugInputCallbacks) HRESULT { return @as(*const IDebugClient8.VTable, @ptrCast(self.vtable)).SetInputCallbacks(@as(*const IDebugClient8, @ptrCast(self)), Callbacks); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient8_GetOutputCallbacks(self: *const T, Callbacks: ?*?*IDebugOutputCallbacks) HRESULT { return @as(*const IDebugClient8.VTable, @ptrCast(self.vtable)).GetOutputCallbacks(@as(*const IDebugClient8, @ptrCast(self)), Callbacks); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient8_SetOutputCallbacks(self: *const T, Callbacks: ?*IDebugOutputCallbacks) HRESULT { return @as(*const IDebugClient8.VTable, @ptrCast(self.vtable)).SetOutputCallbacks(@as(*const IDebugClient8, @ptrCast(self)), Callbacks); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient8_GetOutputMask(self: *const T, Mask: ?*u32) HRESULT { return @as(*const IDebugClient8.VTable, @ptrCast(self.vtable)).GetOutputMask(@as(*const IDebugClient8, @ptrCast(self)), Mask); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient8_SetOutputMask(self: *const T, Mask: u32) HRESULT { return @as(*const IDebugClient8.VTable, @ptrCast(self.vtable)).SetOutputMask(@as(*const IDebugClient8, @ptrCast(self)), Mask); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient8_GetOtherOutputMask(self: *const T, Client: ?*IDebugClient, Mask: ?*u32) HRESULT { return @as(*const IDebugClient8.VTable, @ptrCast(self.vtable)).GetOtherOutputMask(@as(*const IDebugClient8, @ptrCast(self)), Client, Mask); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient8_SetOtherOutputMask(self: *const T, Client: ?*IDebugClient, Mask: u32) HRESULT { return @as(*const IDebugClient8.VTable, @ptrCast(self.vtable)).SetOtherOutputMask(@as(*const IDebugClient8, @ptrCast(self)), Client, Mask); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient8_GetOutputWidth(self: *const T, Columns: ?*u32) HRESULT { return @as(*const IDebugClient8.VTable, @ptrCast(self.vtable)).GetOutputWidth(@as(*const IDebugClient8, @ptrCast(self)), Columns); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient8_SetOutputWidth(self: *const T, Columns: u32) HRESULT { return @as(*const IDebugClient8.VTable, @ptrCast(self.vtable)).SetOutputWidth(@as(*const IDebugClient8, @ptrCast(self)), Columns); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient8_GetOutputLinePrefix(self: *const T, Buffer: ?[*:0]u8, BufferSize: u32, PrefixSize: ?*u32) HRESULT { return @as(*const IDebugClient8.VTable, @ptrCast(self.vtable)).GetOutputLinePrefix(@as(*const IDebugClient8, @ptrCast(self)), Buffer, BufferSize, PrefixSize); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient8_SetOutputLinePrefix(self: *const T, Prefix: ?[*:0]const u8) HRESULT { return @as(*const IDebugClient8.VTable, @ptrCast(self.vtable)).SetOutputLinePrefix(@as(*const IDebugClient8, @ptrCast(self)), Prefix); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient8_GetIdentity(self: *const T, Buffer: ?[*:0]u8, BufferSize: u32, IdentitySize: ?*u32) HRESULT { return @as(*const IDebugClient8.VTable, @ptrCast(self.vtable)).GetIdentity(@as(*const IDebugClient8, @ptrCast(self)), Buffer, BufferSize, IdentitySize); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient8_OutputIdentity(self: *const T, OutputControl: u32, Flags: u32, Format: ?[*:0]const u8) HRESULT { return @as(*const IDebugClient8.VTable, @ptrCast(self.vtable)).OutputIdentity(@as(*const IDebugClient8, @ptrCast(self)), OutputControl, Flags, Format); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient8_GetEventCallbacks(self: *const T, Callbacks: ?*?*IDebugEventCallbacks) HRESULT { return @as(*const IDebugClient8.VTable, @ptrCast(self.vtable)).GetEventCallbacks(@as(*const IDebugClient8, @ptrCast(self)), Callbacks); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient8_SetEventCallbacks(self: *const T, Callbacks: ?*IDebugEventCallbacks) HRESULT { return @as(*const IDebugClient8.VTable, @ptrCast(self.vtable)).SetEventCallbacks(@as(*const IDebugClient8, @ptrCast(self)), Callbacks); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient8_FlushCallbacks(self: *const T) HRESULT { return @as(*const IDebugClient8.VTable, @ptrCast(self.vtable)).FlushCallbacks(@as(*const IDebugClient8, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient8_WriteDumpFile2(self: *const T, DumpFile: ?[*:0]const u8, Qualifier: u32, FormatFlags: u32, Comment: ?[*:0]const u8) HRESULT { return @as(*const IDebugClient8.VTable, @ptrCast(self.vtable)).WriteDumpFile2(@as(*const IDebugClient8, @ptrCast(self)), DumpFile, Qualifier, FormatFlags, Comment); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient8_AddDumpInformationFile(self: *const T, InfoFile: ?[*:0]const u8, Type: u32) HRESULT { return @as(*const IDebugClient8.VTable, @ptrCast(self.vtable)).AddDumpInformationFile(@as(*const IDebugClient8, @ptrCast(self)), InfoFile, Type); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient8_EndProcessServer(self: *const T, Server: u64) HRESULT { return @as(*const IDebugClient8.VTable, @ptrCast(self.vtable)).EndProcessServer(@as(*const IDebugClient8, @ptrCast(self)), Server); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient8_WaitForProcessServerEnd(self: *const T, Timeout: u32) HRESULT { return @as(*const IDebugClient8.VTable, @ptrCast(self.vtable)).WaitForProcessServerEnd(@as(*const IDebugClient8, @ptrCast(self)), Timeout); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient8_IsKernelDebuggerEnabled(self: *const T) HRESULT { return @as(*const IDebugClient8.VTable, @ptrCast(self.vtable)).IsKernelDebuggerEnabled(@as(*const IDebugClient8, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient8_TerminateCurrentProcess(self: *const T) HRESULT { return @as(*const IDebugClient8.VTable, @ptrCast(self.vtable)).TerminateCurrentProcess(@as(*const IDebugClient8, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient8_DetachCurrentProcess(self: *const T) HRESULT { return @as(*const IDebugClient8.VTable, @ptrCast(self.vtable)).DetachCurrentProcess(@as(*const IDebugClient8, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient8_AbandonCurrentProcess(self: *const T) HRESULT { return @as(*const IDebugClient8.VTable, @ptrCast(self.vtable)).AbandonCurrentProcess(@as(*const IDebugClient8, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient8_GetRunningProcessSystemIdByExecutableNameWide(self: *const T, Server: u64, ExeName: ?[*:0]const u16, Flags: u32, Id: ?*u32) HRESULT { return @as(*const IDebugClient8.VTable, @ptrCast(self.vtable)).GetRunningProcessSystemIdByExecutableNameWide(@as(*const IDebugClient8, @ptrCast(self)), Server, ExeName, Flags, Id); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient8_GetRunningProcessDescriptionWide(self: *const T, Server: u64, SystemId: u32, Flags: u32, ExeName: ?[*:0]u16, ExeNameSize: u32, ActualExeNameSize: ?*u32, Description: ?[*:0]u16, DescriptionSize: u32, ActualDescriptionSize: ?*u32) HRESULT { return @as(*const IDebugClient8.VTable, @ptrCast(self.vtable)).GetRunningProcessDescriptionWide(@as(*const IDebugClient8, @ptrCast(self)), Server, SystemId, Flags, ExeName, ExeNameSize, ActualExeNameSize, Description, DescriptionSize, ActualDescriptionSize); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient8_CreateProcessWide(self: *const T, Server: u64, CommandLine: ?PWSTR, CreateFlags: u32) HRESULT { return @as(*const IDebugClient8.VTable, @ptrCast(self.vtable)).CreateProcessWide(@as(*const IDebugClient8, @ptrCast(self)), Server, CommandLine, CreateFlags); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient8_CreateProcessAndAttachWide(self: *const T, Server: u64, CommandLine: ?PWSTR, CreateFlags: u32, ProcessId: u32, AttachFlags: u32) HRESULT { return @as(*const IDebugClient8.VTable, @ptrCast(self.vtable)).CreateProcessAndAttachWide(@as(*const IDebugClient8, @ptrCast(self)), Server, CommandLine, CreateFlags, ProcessId, AttachFlags); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient8_OpenDumpFileWide(self: *const T, FileName: ?[*:0]const u16, FileHandle: u64) HRESULT { return @as(*const IDebugClient8.VTable, @ptrCast(self.vtable)).OpenDumpFileWide(@as(*const IDebugClient8, @ptrCast(self)), FileName, FileHandle); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient8_WriteDumpFileWide(self: *const T, FileName: ?[*:0]const u16, FileHandle: u64, Qualifier: u32, FormatFlags: u32, Comment: ?[*:0]const u16) HRESULT { return @as(*const IDebugClient8.VTable, @ptrCast(self.vtable)).WriteDumpFileWide(@as(*const IDebugClient8, @ptrCast(self)), FileName, FileHandle, Qualifier, FormatFlags, Comment); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient8_AddDumpInformationFileWide(self: *const T, FileName: ?[*:0]const u16, FileHandle: u64, Type: u32) HRESULT { return @as(*const IDebugClient8.VTable, @ptrCast(self.vtable)).AddDumpInformationFileWide(@as(*const IDebugClient8, @ptrCast(self)), FileName, FileHandle, Type); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient8_GetNumberDumpFiles(self: *const T, Number: ?*u32) HRESULT { return @as(*const IDebugClient8.VTable, @ptrCast(self.vtable)).GetNumberDumpFiles(@as(*const IDebugClient8, @ptrCast(self)), Number); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient8_GetDumpFile(self: *const T, Index: u32, Buffer: ?[*:0]u8, BufferSize: u32, NameSize: ?*u32, Handle: ?*u64, Type: ?*u32) HRESULT { return @as(*const IDebugClient8.VTable, @ptrCast(self.vtable)).GetDumpFile(@as(*const IDebugClient8, @ptrCast(self)), Index, Buffer, BufferSize, NameSize, Handle, Type); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient8_GetDumpFileWide(self: *const T, Index: u32, Buffer: ?[*:0]u16, BufferSize: u32, NameSize: ?*u32, Handle: ?*u64, Type: ?*u32) HRESULT { return @as(*const IDebugClient8.VTable, @ptrCast(self.vtable)).GetDumpFileWide(@as(*const IDebugClient8, @ptrCast(self)), Index, Buffer, BufferSize, NameSize, Handle, Type); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient8_AttachKernelWide(self: *const T, Flags: u32, ConnectOptions: ?[*:0]const u16) HRESULT { return @as(*const IDebugClient8.VTable, @ptrCast(self.vtable)).AttachKernelWide(@as(*const IDebugClient8, @ptrCast(self)), Flags, ConnectOptions); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient8_GetKernelConnectionOptionsWide(self: *const T, Buffer: ?[*:0]u16, BufferSize: u32, OptionsSize: ?*u32) HRESULT { return @as(*const IDebugClient8.VTable, @ptrCast(self.vtable)).GetKernelConnectionOptionsWide(@as(*const IDebugClient8, @ptrCast(self)), Buffer, BufferSize, OptionsSize); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient8_SetKernelConnectionOptionsWide(self: *const T, Options: ?[*:0]const u16) HRESULT { return @as(*const IDebugClient8.VTable, @ptrCast(self.vtable)).SetKernelConnectionOptionsWide(@as(*const IDebugClient8, @ptrCast(self)), Options); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient8_StartProcessServerWide(self: *const T, Flags: u32, Options: ?[*:0]const u16, Reserved: ?*anyopaque) HRESULT { return @as(*const IDebugClient8.VTable, @ptrCast(self.vtable)).StartProcessServerWide(@as(*const IDebugClient8, @ptrCast(self)), Flags, Options, Reserved); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient8_ConnectProcessServerWide(self: *const T, RemoteOptions: ?[*:0]const u16, Server: ?*u64) HRESULT { return @as(*const IDebugClient8.VTable, @ptrCast(self.vtable)).ConnectProcessServerWide(@as(*const IDebugClient8, @ptrCast(self)), RemoteOptions, Server); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient8_StartServerWide(self: *const T, Options: ?[*:0]const u16) HRESULT { return @as(*const IDebugClient8.VTable, @ptrCast(self.vtable)).StartServerWide(@as(*const IDebugClient8, @ptrCast(self)), Options); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient8_OutputServersWide(self: *const T, OutputControl: u32, Machine: ?[*:0]const u16, Flags: u32) HRESULT { return @as(*const IDebugClient8.VTable, @ptrCast(self.vtable)).OutputServersWide(@as(*const IDebugClient8, @ptrCast(self)), OutputControl, Machine, Flags); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient8_GetOutputCallbacksWide(self: *const T, Callbacks: ?*?*IDebugOutputCallbacksWide) HRESULT { return @as(*const IDebugClient8.VTable, @ptrCast(self.vtable)).GetOutputCallbacksWide(@as(*const IDebugClient8, @ptrCast(self)), Callbacks); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient8_SetOutputCallbacksWide(self: *const T, Callbacks: ?*IDebugOutputCallbacksWide) HRESULT { return @as(*const IDebugClient8.VTable, @ptrCast(self.vtable)).SetOutputCallbacksWide(@as(*const IDebugClient8, @ptrCast(self)), Callbacks); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient8_GetOutputLinePrefixWide(self: *const T, Buffer: ?[*:0]u16, BufferSize: u32, PrefixSize: ?*u32) HRESULT { return @as(*const IDebugClient8.VTable, @ptrCast(self.vtable)).GetOutputLinePrefixWide(@as(*const IDebugClient8, @ptrCast(self)), Buffer, BufferSize, PrefixSize); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient8_SetOutputLinePrefixWide(self: *const T, Prefix: ?[*:0]const u16) HRESULT { return @as(*const IDebugClient8.VTable, @ptrCast(self.vtable)).SetOutputLinePrefixWide(@as(*const IDebugClient8, @ptrCast(self)), Prefix); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient8_GetIdentityWide(self: *const T, Buffer: ?[*:0]u16, BufferSize: u32, IdentitySize: ?*u32) HRESULT { return @as(*const IDebugClient8.VTable, @ptrCast(self.vtable)).GetIdentityWide(@as(*const IDebugClient8, @ptrCast(self)), Buffer, BufferSize, IdentitySize); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient8_OutputIdentityWide(self: *const T, OutputControl: u32, Flags: u32, Format: ?[*:0]const u16) HRESULT { return @as(*const IDebugClient8.VTable, @ptrCast(self.vtable)).OutputIdentityWide(@as(*const IDebugClient8, @ptrCast(self)), OutputControl, Flags, Format); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient8_GetEventCallbacksWide(self: *const T, Callbacks: ?*?*IDebugEventCallbacksWide) HRESULT { return @as(*const IDebugClient8.VTable, @ptrCast(self.vtable)).GetEventCallbacksWide(@as(*const IDebugClient8, @ptrCast(self)), Callbacks); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient8_SetEventCallbacksWide(self: *const T, Callbacks: ?*IDebugEventCallbacksWide) HRESULT { return @as(*const IDebugClient8.VTable, @ptrCast(self.vtable)).SetEventCallbacksWide(@as(*const IDebugClient8, @ptrCast(self)), Callbacks); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient8_CreateProcess2(self: *const T, Server: u64, CommandLine: ?PSTR, OptionsBuffer: ?*anyopaque, OptionsBufferSize: u32, InitialDirectory: ?[*:0]const u8, Environment: ?[*:0]const u8) HRESULT { return @as(*const IDebugClient8.VTable, @ptrCast(self.vtable)).CreateProcess2(@as(*const IDebugClient8, @ptrCast(self)), Server, CommandLine, OptionsBuffer, OptionsBufferSize, InitialDirectory, Environment); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient8_CreateProcess2Wide(self: *const T, Server: u64, CommandLine: ?PWSTR, OptionsBuffer: ?*anyopaque, OptionsBufferSize: u32, InitialDirectory: ?[*:0]const u16, Environment: ?[*:0]const u16) HRESULT { return @as(*const IDebugClient8.VTable, @ptrCast(self.vtable)).CreateProcess2Wide(@as(*const IDebugClient8, @ptrCast(self)), Server, CommandLine, OptionsBuffer, OptionsBufferSize, InitialDirectory, Environment); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient8_CreateProcessAndAttach2(self: *const T, Server: u64, CommandLine: ?PSTR, OptionsBuffer: ?*anyopaque, OptionsBufferSize: u32, InitialDirectory: ?[*:0]const u8, Environment: ?[*:0]const u8, ProcessId: u32, AttachFlags: u32) HRESULT { return @as(*const IDebugClient8.VTable, @ptrCast(self.vtable)).CreateProcessAndAttach2(@as(*const IDebugClient8, @ptrCast(self)), Server, CommandLine, OptionsBuffer, OptionsBufferSize, InitialDirectory, Environment, ProcessId, AttachFlags); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient8_CreateProcessAndAttach2Wide(self: *const T, Server: u64, CommandLine: ?PWSTR, OptionsBuffer: ?*anyopaque, OptionsBufferSize: u32, InitialDirectory: ?[*:0]const u16, Environment: ?[*:0]const u16, ProcessId: u32, AttachFlags: u32) HRESULT { return @as(*const IDebugClient8.VTable, @ptrCast(self.vtable)).CreateProcessAndAttach2Wide(@as(*const IDebugClient8, @ptrCast(self)), Server, CommandLine, OptionsBuffer, OptionsBufferSize, InitialDirectory, Environment, ProcessId, AttachFlags); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient8_PushOutputLinePrefix(self: *const T, NewPrefix: ?[*:0]const u8, Handle: ?*u64) HRESULT { return @as(*const IDebugClient8.VTable, @ptrCast(self.vtable)).PushOutputLinePrefix(@as(*const IDebugClient8, @ptrCast(self)), NewPrefix, Handle); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient8_PushOutputLinePrefixWide(self: *const T, NewPrefix: ?[*:0]const u16, Handle: ?*u64) HRESULT { return @as(*const IDebugClient8.VTable, @ptrCast(self.vtable)).PushOutputLinePrefixWide(@as(*const IDebugClient8, @ptrCast(self)), NewPrefix, Handle); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient8_PopOutputLinePrefix(self: *const T, Handle: u64) HRESULT { return @as(*const IDebugClient8.VTable, @ptrCast(self.vtable)).PopOutputLinePrefix(@as(*const IDebugClient8, @ptrCast(self)), Handle); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient8_GetNumberInputCallbacks(self: *const T, Count: ?*u32) HRESULT { return @as(*const IDebugClient8.VTable, @ptrCast(self.vtable)).GetNumberInputCallbacks(@as(*const IDebugClient8, @ptrCast(self)), Count); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient8_GetNumberOutputCallbacks(self: *const T, Count: ?*u32) HRESULT { return @as(*const IDebugClient8.VTable, @ptrCast(self.vtable)).GetNumberOutputCallbacks(@as(*const IDebugClient8, @ptrCast(self)), Count); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient8_GetNumberEventCallbacks(self: *const T, EventFlags: u32, Count: ?*u32) HRESULT { return @as(*const IDebugClient8.VTable, @ptrCast(self.vtable)).GetNumberEventCallbacks(@as(*const IDebugClient8, @ptrCast(self)), EventFlags, Count); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient8_GetQuitLockString(self: *const T, Buffer: ?[*:0]u8, BufferSize: u32, StringSize: ?*u32) HRESULT { return @as(*const IDebugClient8.VTable, @ptrCast(self.vtable)).GetQuitLockString(@as(*const IDebugClient8, @ptrCast(self)), Buffer, BufferSize, StringSize); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient8_SetQuitLockString(self: *const T, String: ?[*:0]const u8) HRESULT { return @as(*const IDebugClient8.VTable, @ptrCast(self.vtable)).SetQuitLockString(@as(*const IDebugClient8, @ptrCast(self)), String); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient8_GetQuitLockStringWide(self: *const T, Buffer: ?[*:0]u16, BufferSize: u32, StringSize: ?*u32) HRESULT { return @as(*const IDebugClient8.VTable, @ptrCast(self.vtable)).GetQuitLockStringWide(@as(*const IDebugClient8, @ptrCast(self)), Buffer, BufferSize, StringSize); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient8_SetQuitLockStringWide(self: *const T, String: ?[*:0]const u16) HRESULT { return @as(*const IDebugClient8.VTable, @ptrCast(self.vtable)).SetQuitLockStringWide(@as(*const IDebugClient8, @ptrCast(self)), String); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient8_SetEventContextCallbacks(self: *const T, Callbacks: ?*IDebugEventContextCallbacks) HRESULT { return @as(*const IDebugClient8.VTable, @ptrCast(self.vtable)).SetEventContextCallbacks(@as(*const IDebugClient8, @ptrCast(self)), Callbacks); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient8_SetClientContext(self: *const T, Context: ?*anyopaque, ContextSize: u32) HRESULT { return @as(*const IDebugClient8.VTable, @ptrCast(self.vtable)).SetClientContext(@as(*const IDebugClient8, @ptrCast(self)), Context, ContextSize); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugClient8_OpenDumpFileWide2(self: *const T, FileName: ?[*:0]const u16, FileHandle: u64, AlternateArch: u32) HRESULT { return @as(*const IDebugClient8.VTable, @ptrCast(self.vtable)).OpenDumpFileWide2(@as(*const IDebugClient8, @ptrCast(self)), FileName, FileHandle, AlternateArch); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IDebugPlmClient_Value = Guid.initString("a02b66c4-aea3-4234-a9f7-fe4c383d4e29"); pub const IID_IDebugPlmClient = &IID_IDebugPlmClient_Value; pub const IDebugPlmClient = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, LaunchPlmPackageForDebugWide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugPlmClient, Server: u64, Timeout: u32, PackageFullName: ?[*:0]const u16, AppName: ?[*:0]const u16, Arguments: ?[*:0]const u16, ProcessId: ?*u32, ThreadId: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugPlmClient, Server: u64, Timeout: u32, PackageFullName: ?[*:0]const u16, AppName: ?[*:0]const u16, Arguments: ?[*:0]const u16, ProcessId: ?*u32, ThreadId: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugPlmClient_LaunchPlmPackageForDebugWide(self: *const T, Server: u64, Timeout: u32, PackageFullName: ?[*:0]const u16, AppName: ?[*:0]const u16, Arguments: ?[*:0]const u16, ProcessId: ?*u32, ThreadId: ?*u32) HRESULT { return @as(*const IDebugPlmClient.VTable, @ptrCast(self.vtable)).LaunchPlmPackageForDebugWide(@as(*const IDebugPlmClient, @ptrCast(self)), Server, Timeout, PackageFullName, AppName, Arguments, ProcessId, ThreadId); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IDebugPlmClient2_Value = Guid.initString("597c980d-e7bd-4309-962c-9d9b69a7372c"); pub const IID_IDebugPlmClient2 = &IID_IDebugPlmClient2_Value; pub const IDebugPlmClient2 = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, LaunchPlmPackageForDebugWide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugPlmClient2, Server: u64, Timeout: u32, PackageFullName: ?[*:0]const u16, AppName: ?[*:0]const u16, Arguments: ?[*:0]const u16, ProcessId: ?*u32, ThreadId: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugPlmClient2, Server: u64, Timeout: u32, PackageFullName: ?[*:0]const u16, AppName: ?[*:0]const u16, Arguments: ?[*:0]const u16, ProcessId: ?*u32, ThreadId: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, LaunchPlmBgTaskForDebugWide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugPlmClient2, Server: u64, Timeout: u32, PackageFullName: ?[*:0]const u16, BackgroundTaskId: ?[*:0]const u16, ProcessId: ?*u32, ThreadId: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugPlmClient2, Server: u64, Timeout: u32, PackageFullName: ?[*:0]const u16, BackgroundTaskId: ?[*:0]const u16, ProcessId: ?*u32, ThreadId: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugPlmClient2_LaunchPlmPackageForDebugWide(self: *const T, Server: u64, Timeout: u32, PackageFullName: ?[*:0]const u16, AppName: ?[*:0]const u16, Arguments: ?[*:0]const u16, ProcessId: ?*u32, ThreadId: ?*u32) HRESULT { return @as(*const IDebugPlmClient2.VTable, @ptrCast(self.vtable)).LaunchPlmPackageForDebugWide(@as(*const IDebugPlmClient2, @ptrCast(self)), Server, Timeout, PackageFullName, AppName, Arguments, ProcessId, ThreadId); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugPlmClient2_LaunchPlmBgTaskForDebugWide(self: *const T, Server: u64, Timeout: u32, PackageFullName: ?[*:0]const u16, BackgroundTaskId: ?[*:0]const u16, ProcessId: ?*u32, ThreadId: ?*u32) HRESULT { return @as(*const IDebugPlmClient2.VTable, @ptrCast(self.vtable)).LaunchPlmBgTaskForDebugWide(@as(*const IDebugPlmClient2, @ptrCast(self)), Server, Timeout, PackageFullName, BackgroundTaskId, ProcessId, ThreadId); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IDebugPlmClient3_Value = Guid.initString("d4a5dbd1-ca02-4d90-856a-2a92bfd0f20f"); pub const IID_IDebugPlmClient3 = &IID_IDebugPlmClient3_Value; pub const IDebugPlmClient3 = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, LaunchPlmPackageForDebugWide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugPlmClient3, Server: u64, Timeout: u32, PackageFullName: ?[*:0]const u16, AppName: ?[*:0]const u16, Arguments: ?[*:0]const u16, ProcessId: ?*u32, ThreadId: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugPlmClient3, Server: u64, Timeout: u32, PackageFullName: ?[*:0]const u16, AppName: ?[*:0]const u16, Arguments: ?[*:0]const u16, ProcessId: ?*u32, ThreadId: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, LaunchPlmBgTaskForDebugWide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugPlmClient3, Server: u64, Timeout: u32, PackageFullName: ?[*:0]const u16, BackgroundTaskId: ?[*:0]const u16, ProcessId: ?*u32, ThreadId: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugPlmClient3, Server: u64, Timeout: u32, PackageFullName: ?[*:0]const u16, BackgroundTaskId: ?[*:0]const u16, ProcessId: ?*u32, ThreadId: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, QueryPlmPackageWide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugPlmClient3, Server: u64, PackageFullName: ?[*:0]const u16, Stream: ?*IDebugOutputStream, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugPlmClient3, Server: u64, PackageFullName: ?[*:0]const u16, Stream: ?*IDebugOutputStream, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, QueryPlmPackageList: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugPlmClient3, Server: u64, Stream: ?*IDebugOutputStream, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugPlmClient3, Server: u64, Stream: ?*IDebugOutputStream, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, EnablePlmPackageDebugWide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugPlmClient3, Server: u64, PackageFullName: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugPlmClient3, Server: u64, PackageFullName: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, DisablePlmPackageDebugWide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugPlmClient3, Server: u64, PackageFullName: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugPlmClient3, Server: u64, PackageFullName: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SuspendPlmPackageWide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugPlmClient3, Server: u64, PackageFullName: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugPlmClient3, Server: u64, PackageFullName: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, ResumePlmPackageWide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugPlmClient3, Server: u64, PackageFullName: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugPlmClient3, Server: u64, PackageFullName: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, TerminatePlmPackageWide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugPlmClient3, Server: u64, PackageFullName: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugPlmClient3, Server: u64, PackageFullName: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, LaunchAndDebugPlmAppWide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugPlmClient3, Server: u64, PackageFullName: ?[*:0]const u16, AppName: ?[*:0]const u16, Arguments: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugPlmClient3, Server: u64, PackageFullName: ?[*:0]const u16, AppName: ?[*:0]const u16, Arguments: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, ActivateAndDebugPlmBgTaskWide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugPlmClient3, Server: u64, PackageFullName: ?[*:0]const u16, BackgroundTaskId: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugPlmClient3, Server: u64, PackageFullName: ?[*:0]const u16, BackgroundTaskId: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugPlmClient3_LaunchPlmPackageForDebugWide(self: *const T, Server: u64, Timeout: u32, PackageFullName: ?[*:0]const u16, AppName: ?[*:0]const u16, Arguments: ?[*:0]const u16, ProcessId: ?*u32, ThreadId: ?*u32) HRESULT { return @as(*const IDebugPlmClient3.VTable, @ptrCast(self.vtable)).LaunchPlmPackageForDebugWide(@as(*const IDebugPlmClient3, @ptrCast(self)), Server, Timeout, PackageFullName, AppName, Arguments, ProcessId, ThreadId); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugPlmClient3_LaunchPlmBgTaskForDebugWide(self: *const T, Server: u64, Timeout: u32, PackageFullName: ?[*:0]const u16, BackgroundTaskId: ?[*:0]const u16, ProcessId: ?*u32, ThreadId: ?*u32) HRESULT { return @as(*const IDebugPlmClient3.VTable, @ptrCast(self.vtable)).LaunchPlmBgTaskForDebugWide(@as(*const IDebugPlmClient3, @ptrCast(self)), Server, Timeout, PackageFullName, BackgroundTaskId, ProcessId, ThreadId); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugPlmClient3_QueryPlmPackageWide(self: *const T, Server: u64, PackageFullName: ?[*:0]const u16, Stream: ?*IDebugOutputStream) HRESULT { return @as(*const IDebugPlmClient3.VTable, @ptrCast(self.vtable)).QueryPlmPackageWide(@as(*const IDebugPlmClient3, @ptrCast(self)), Server, PackageFullName, Stream); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugPlmClient3_QueryPlmPackageList(self: *const T, Server: u64, Stream: ?*IDebugOutputStream) HRESULT { return @as(*const IDebugPlmClient3.VTable, @ptrCast(self.vtable)).QueryPlmPackageList(@as(*const IDebugPlmClient3, @ptrCast(self)), Server, Stream); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugPlmClient3_EnablePlmPackageDebugWide(self: *const T, Server: u64, PackageFullName: ?[*:0]const u16) HRESULT { return @as(*const IDebugPlmClient3.VTable, @ptrCast(self.vtable)).EnablePlmPackageDebugWide(@as(*const IDebugPlmClient3, @ptrCast(self)), Server, PackageFullName); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugPlmClient3_DisablePlmPackageDebugWide(self: *const T, Server: u64, PackageFullName: ?[*:0]const u16) HRESULT { return @as(*const IDebugPlmClient3.VTable, @ptrCast(self.vtable)).DisablePlmPackageDebugWide(@as(*const IDebugPlmClient3, @ptrCast(self)), Server, PackageFullName); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugPlmClient3_SuspendPlmPackageWide(self: *const T, Server: u64, PackageFullName: ?[*:0]const u16) HRESULT { return @as(*const IDebugPlmClient3.VTable, @ptrCast(self.vtable)).SuspendPlmPackageWide(@as(*const IDebugPlmClient3, @ptrCast(self)), Server, PackageFullName); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugPlmClient3_ResumePlmPackageWide(self: *const T, Server: u64, PackageFullName: ?[*:0]const u16) HRESULT { return @as(*const IDebugPlmClient3.VTable, @ptrCast(self.vtable)).ResumePlmPackageWide(@as(*const IDebugPlmClient3, @ptrCast(self)), Server, PackageFullName); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugPlmClient3_TerminatePlmPackageWide(self: *const T, Server: u64, PackageFullName: ?[*:0]const u16) HRESULT { return @as(*const IDebugPlmClient3.VTable, @ptrCast(self.vtable)).TerminatePlmPackageWide(@as(*const IDebugPlmClient3, @ptrCast(self)), Server, PackageFullName); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugPlmClient3_LaunchAndDebugPlmAppWide(self: *const T, Server: u64, PackageFullName: ?[*:0]const u16, AppName: ?[*:0]const u16, Arguments: ?[*:0]const u16) HRESULT { return @as(*const IDebugPlmClient3.VTable, @ptrCast(self.vtable)).LaunchAndDebugPlmAppWide(@as(*const IDebugPlmClient3, @ptrCast(self)), Server, PackageFullName, AppName, Arguments); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugPlmClient3_ActivateAndDebugPlmBgTaskWide(self: *const T, Server: u64, PackageFullName: ?[*:0]const u16, BackgroundTaskId: ?[*:0]const u16) HRESULT { return @as(*const IDebugPlmClient3.VTable, @ptrCast(self.vtable)).ActivateAndDebugPlmBgTaskWide(@as(*const IDebugPlmClient3, @ptrCast(self)), Server, PackageFullName, BackgroundTaskId); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IDebugOutputStream_Value = Guid.initString("7782d8f2-2b85-4059-ab88-28ceddca1c80"); pub const IID_IDebugOutputStream = &IID_IDebugOutputStream_Value; pub const IDebugOutputStream = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, Write: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugOutputStream, psz: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugOutputStream, psz: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugOutputStream_Write(self: *const T, psz: ?[*:0]const u16) HRESULT { return @as(*const IDebugOutputStream.VTable, @ptrCast(self.vtable)).Write(@as(*const IDebugOutputStream, @ptrCast(self)), psz); } }; } pub usingnamespace MethodMixin(@This()); }; pub const DEBUG_STACK_FRAME = extern struct { InstructionOffset: u64, ReturnOffset: u64, FrameOffset: u64, StackOffset: u64, FuncTableEntry: u64, Params: [4]u64, Reserved: [6]u64, Virtual: BOOL, FrameNumber: u32, }; pub const DEBUG_STACK_FRAME_EX = extern struct { InstructionOffset: u64, ReturnOffset: u64, FrameOffset: u64, StackOffset: u64, FuncTableEntry: u64, Params: [4]u64, Reserved: [6]u64, Virtual: BOOL, FrameNumber: u32, InlineFrameContext: u32, Reserved1: u32, }; pub const INLINE_FRAME_CONTEXT = extern union { ContextValue: u32, Anonymous: extern struct { FrameId: u8, FrameType: u8, FrameSignature: u16, }, }; pub const STACK_SRC_INFO = extern struct { ImagePath: ?[*:0]const u16, ModuleName: ?[*:0]const u16, Function: ?[*:0]const u16, Displacement: u32, Row: u32, Column: u32, }; pub const STACK_SYM_FRAME_INFO = extern struct { StackFrameEx: DEBUG_STACK_FRAME_EX, SrcInfo: STACK_SRC_INFO, }; pub const DEBUG_SPECIFIC_FILTER_PARAMETERS = extern struct { ExecutionOption: u32, ContinueOption: u32, TextSize: u32, CommandSize: u32, ArgumentSize: u32, }; pub const DEBUG_EXCEPTION_FILTER_PARAMETERS = extern struct { ExecutionOption: u32, ContinueOption: u32, TextSize: u32, CommandSize: u32, SecondCommandSize: u32, ExceptionCode: u32, }; pub const DEBUG_LAST_EVENT_INFO_BREAKPOINT = extern struct { Id: u32, }; pub const DEBUG_LAST_EVENT_INFO_EXCEPTION = extern struct { ExceptionRecord: EXCEPTION_RECORD64, FirstChance: u32, }; pub const DEBUG_LAST_EVENT_INFO_EXIT_THREAD = extern struct { ExitCode: u32, }; pub const DEBUG_LAST_EVENT_INFO_EXIT_PROCESS = extern struct { ExitCode: u32, }; pub const DEBUG_LAST_EVENT_INFO_LOAD_MODULE = extern struct { Base: u64, }; pub const DEBUG_LAST_EVENT_INFO_UNLOAD_MODULE = extern struct { Base: u64, }; pub const DEBUG_LAST_EVENT_INFO_SYSTEM_ERROR = extern struct { Error: u32, Level: u32, }; pub const DEBUG_LAST_EVENT_INFO_SERVICE_EXCEPTION = extern struct { Kind: u32, DataSize: u32, Address: u64, }; pub const DEBUG_VALUE = extern struct { Anonymous: extern union { I8: u8, I16: u16, I32: u32, Anonymous: extern struct { I64: u64, Nat: BOOL, }, F32: f32, F64: f64, F80Bytes: [10]u8, F82Bytes: [11]u8, F128Bytes: [16]u8, VI8: [16]u8, VI16: [8]u16, VI32: [4]u32, VI64: [2]u64, VF32: [4]f32, VF64: [2]f64, I64Parts32: extern struct { LowPart: u32, HighPart: u32, }, F128Parts64: extern struct { LowPart: u64, HighPart: i64, }, RawBytes: [24]u8, }, TailOfRawBytes: u32, Type: u32, }; const IID_IDebugControl_Value = Guid.initString("5182e668-105e-416e-ad92-24ef800424ba"); pub const IID_IDebugControl = &IID_IDebugControl_Value; pub const IDebugControl = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, GetInterrupt: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetInterrupt: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl, Flags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl, Flags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetInterruptTimeout: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl, Seconds: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl, Seconds: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetInterruptTimeout: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl, Seconds: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl, Seconds: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetLogFile: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl, Buffer: ?[*:0]u8, BufferSize: u32, FileSize: ?*u32, Append: ?*BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl, Buffer: ?[*:0]u8, BufferSize: u32, FileSize: ?*u32, Append: ?*BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, OpenLogFile: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl, File: ?[*:0]const u8, Append: BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl, File: ?[*:0]const u8, Append: BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, CloseLogFile: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetLogMask: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl, Mask: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl, Mask: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetLogMask: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl, Mask: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl, Mask: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Input: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl, Buffer: [*:0]u8, BufferSize: u32, InputSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl, Buffer: [*:0]u8, BufferSize: u32, InputSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, ReturnInput: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl, Buffer: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl, Buffer: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Output: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl, Mask: u32, Format: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl, Mask: u32, Format: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, OutputVaList: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl, Mask: u32, Format: ?[*:0]const u8, Args: ?*i8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl, Mask: u32, Format: ?[*:0]const u8, Args: ?*i8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, ControlledOutput: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl, OutputControl: u32, Mask: u32, Format: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl, OutputControl: u32, Mask: u32, Format: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, ControlledOutputVaList: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl, OutputControl: u32, Mask: u32, Format: ?[*:0]const u8, Args: ?*i8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl, OutputControl: u32, Mask: u32, Format: ?[*:0]const u8, Args: ?*i8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, OutputPrompt: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl, OutputControl: u32, Format: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl, OutputControl: u32, Format: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, OutputPromptVaList: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl, OutputControl: u32, Format: ?[*:0]const u8, Args: ?*i8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl, OutputControl: u32, Format: ?[*:0]const u8, Args: ?*i8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetPromptText: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl, Buffer: ?[*:0]u8, BufferSize: u32, TextSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl, Buffer: ?[*:0]u8, BufferSize: u32, TextSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, OutputCurrentState: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl, OutputControl: u32, Flags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl, OutputControl: u32, Flags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, OutputVersionInformation: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl, OutputControl: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl, OutputControl: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetNotifyEventHandle: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl, Handle: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl, Handle: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetNotifyEventHandle: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl, Handle: u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl, Handle: u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Assemble: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl, Offset: u64, Instr: ?[*:0]const u8, EndOffset: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl, Offset: u64, Instr: ?[*:0]const u8, EndOffset: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Disassemble: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl, Offset: u64, Flags: u32, Buffer: ?[*:0]u8, BufferSize: u32, DisassemblySize: ?*u32, EndOffset: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl, Offset: u64, Flags: u32, Buffer: ?[*:0]u8, BufferSize: u32, DisassemblySize: ?*u32, EndOffset: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetDisassembleEffectiveOffset: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl, Offset: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl, Offset: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, OutputDisassembly: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl, OutputControl: u32, Offset: u64, Flags: u32, EndOffset: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl, OutputControl: u32, Offset: u64, Flags: u32, EndOffset: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, OutputDisassemblyLines: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl, OutputControl: u32, PreviousLines: u32, TotalLines: u32, Offset: u64, Flags: u32, OffsetLine: ?*u32, StartOffset: ?*u64, EndOffset: ?*u64, LineOffsets: ?[*]u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl, OutputControl: u32, PreviousLines: u32, TotalLines: u32, Offset: u64, Flags: u32, OffsetLine: ?*u32, StartOffset: ?*u64, EndOffset: ?*u64, LineOffsets: ?[*]u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetNearInstruction: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl, Offset: u64, Delta: i32, NearOffset: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl, Offset: u64, Delta: i32, NearOffset: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetStackTrace: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl, FrameOffset: u64, StackOffset: u64, InstructionOffset: u64, Frames: [*]DEBUG_STACK_FRAME, FramesSize: u32, FramesFilled: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl, FrameOffset: u64, StackOffset: u64, InstructionOffset: u64, Frames: [*]DEBUG_STACK_FRAME, FramesSize: u32, FramesFilled: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetReturnOffset: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl, Offset: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl, Offset: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, OutputStackTrace: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl, OutputControl: u32, Frames: ?[*]DEBUG_STACK_FRAME, FramesSize: u32, Flags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl, OutputControl: u32, Frames: ?[*]DEBUG_STACK_FRAME, FramesSize: u32, Flags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetDebuggeeType: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl, Class: ?*u32, Qualifier: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl, Class: ?*u32, Qualifier: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetActualProcessorType: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl, Type: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl, Type: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetExecutingProcessorType: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl, Type: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl, Type: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetNumberPossibleExecutingProcessorTypes: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl, Number: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl, Number: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetPossibleExecutingProcessorTypes: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl, Start: u32, Count: u32, Types: [*]u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl, Start: u32, Count: u32, Types: [*]u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetNumberProcessors: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl, Number: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl, Number: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetSystemVersion: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl, PlatformId: ?*u32, Major: ?*u32, Minor: ?*u32, ServicePackString: ?[*:0]u8, ServicePackStringSize: u32, ServicePackStringUsed: ?*u32, ServicePackNumber: ?*u32, BuildString: ?[*:0]u8, BuildStringSize: u32, BuildStringUsed: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl, PlatformId: ?*u32, Major: ?*u32, Minor: ?*u32, ServicePackString: ?[*:0]u8, ServicePackStringSize: u32, ServicePackStringUsed: ?*u32, ServicePackNumber: ?*u32, BuildString: ?[*:0]u8, BuildStringSize: u32, BuildStringUsed: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetPageSize: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl, Size: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl, Size: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, IsPointer64Bit: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, ReadBugCheckData: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl, Code: ?*u32, Arg1: ?*u64, Arg2: ?*u64, Arg3: ?*u64, Arg4: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl, Code: ?*u32, Arg1: ?*u64, Arg2: ?*u64, Arg3: ?*u64, Arg4: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetNumberSupportedProcessorTypes: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl, Number: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl, Number: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetSupportedProcessorTypes: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl, Start: u32, Count: u32, Types: [*]u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl, Start: u32, Count: u32, Types: [*]u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetProcessorTypeNames: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl, Type: u32, FullNameBuffer: ?[*:0]u8, FullNameBufferSize: u32, FullNameSize: ?*u32, AbbrevNameBuffer: ?[*:0]u8, AbbrevNameBufferSize: u32, AbbrevNameSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl, Type: u32, FullNameBuffer: ?[*:0]u8, FullNameBufferSize: u32, FullNameSize: ?*u32, AbbrevNameBuffer: ?[*:0]u8, AbbrevNameBufferSize: u32, AbbrevNameSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetEffectiveProcessorType: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl, Type: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl, Type: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetEffectiveProcessorType: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl, Type: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl, Type: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetExecutionStatus: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl, Status: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl, Status: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetExecutionStatus: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl, Status: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl, Status: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetCodeLevel: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl, Level: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl, Level: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetCodeLevel: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl, Level: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl, Level: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetEngineOptions: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl, Options: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl, Options: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, AddEngineOptions: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl, Options: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl, Options: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, RemoveEngineOptions: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl, Options: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl, Options: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetEngineOptions: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl, Options: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl, Options: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetSystemErrorControl: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl, OutputLevel: ?*u32, BreakLevel: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl, OutputLevel: ?*u32, BreakLevel: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetSystemErrorControl: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl, OutputLevel: u32, BreakLevel: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl, OutputLevel: u32, BreakLevel: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetTextMacro: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl, Slot: u32, Buffer: ?[*:0]u8, BufferSize: u32, MacroSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl, Slot: u32, Buffer: ?[*:0]u8, BufferSize: u32, MacroSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetTextMacro: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl, Slot: u32, Macro: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl, Slot: u32, Macro: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetRadix: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl, Radix: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl, Radix: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetRadix: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl, Radix: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl, Radix: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Evaluate: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl, Expression: ?[*:0]const u8, DesiredType: u32, Value: ?*DEBUG_VALUE, RemainderIndex: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl, Expression: ?[*:0]const u8, DesiredType: u32, Value: ?*DEBUG_VALUE, RemainderIndex: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, CoerceValue: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl, In: ?*DEBUG_VALUE, OutType: u32, Out: ?*DEBUG_VALUE, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl, In: ?*DEBUG_VALUE, OutType: u32, Out: ?*DEBUG_VALUE, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, CoerceValues: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl, Count: u32, In: [*]DEBUG_VALUE, OutTypes: [*]u32, Out: [*]DEBUG_VALUE, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl, Count: u32, In: [*]DEBUG_VALUE, OutTypes: [*]u32, Out: [*]DEBUG_VALUE, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Execute: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl, OutputControl: u32, Command: ?[*:0]const u8, Flags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl, OutputControl: u32, Command: ?[*:0]const u8, Flags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, ExecuteCommandFile: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl, OutputControl: u32, CommandFile: ?[*:0]const u8, Flags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl, OutputControl: u32, CommandFile: ?[*:0]const u8, Flags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetNumberBreakpoints: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl, Number: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl, Number: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetBreakpointByIndex: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl, Index: u32, Bp: ?*?*IDebugBreakpoint, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl, Index: u32, Bp: ?*?*IDebugBreakpoint, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetBreakpointById: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl, Id: u32, Bp: ?*?*IDebugBreakpoint, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl, Id: u32, Bp: ?*?*IDebugBreakpoint, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetBreakpointParameters: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl, Count: u32, Ids: ?[*]u32, Start: u32, Params: [*]DEBUG_BREAKPOINT_PARAMETERS, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl, Count: u32, Ids: ?[*]u32, Start: u32, Params: [*]DEBUG_BREAKPOINT_PARAMETERS, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, AddBreakpoint: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl, Type: u32, DesiredId: u32, Bp: ?*?*IDebugBreakpoint, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl, Type: u32, DesiredId: u32, Bp: ?*?*IDebugBreakpoint, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, RemoveBreakpoint: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl, Bp: ?*IDebugBreakpoint, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl, Bp: ?*IDebugBreakpoint, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, AddExtension: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl, Path: ?[*:0]const u8, Flags: u32, Handle: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl, Path: ?[*:0]const u8, Flags: u32, Handle: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, RemoveExtension: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl, Handle: u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl, Handle: u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetExtensionByPath: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl, Path: ?[*:0]const u8, Handle: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl, Path: ?[*:0]const u8, Handle: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, CallExtension: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl, Handle: u64, Function: ?[*:0]const u8, Arguments: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl, Handle: u64, Function: ?[*:0]const u8, Arguments: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetExtensionFunction: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl, Handle: u64, FuncName: ?[*:0]const u8, Function: ?*?FARPROC, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl, Handle: u64, FuncName: ?[*:0]const u8, Function: ?*?FARPROC, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetWindbgExtensionApis32: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl, Api: ?*WINDBG_EXTENSION_APIS32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl, Api: ?*WINDBG_EXTENSION_APIS32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetWindbgExtensionApis64: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl, Api: ?*WINDBG_EXTENSION_APIS64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl, Api: ?*WINDBG_EXTENSION_APIS64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetNumberEventFilters: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl, SpecificEvents: ?*u32, SpecificExceptions: ?*u32, ArbitraryExceptions: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl, SpecificEvents: ?*u32, SpecificExceptions: ?*u32, ArbitraryExceptions: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetEventFilterText: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl, Index: u32, Buffer: ?[*:0]u8, BufferSize: u32, TextSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl, Index: u32, Buffer: ?[*:0]u8, BufferSize: u32, TextSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetEventFilterCommand: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl, Index: u32, Buffer: ?[*:0]u8, BufferSize: u32, CommandSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl, Index: u32, Buffer: ?[*:0]u8, BufferSize: u32, CommandSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetEventFilterCommand: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl, Index: u32, Command: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl, Index: u32, Command: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetSpecificFilterParameters: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl, Start: u32, Count: u32, Params: [*]DEBUG_SPECIFIC_FILTER_PARAMETERS, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl, Start: u32, Count: u32, Params: [*]DEBUG_SPECIFIC_FILTER_PARAMETERS, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetSpecificFilterParameters: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl, Start: u32, Count: u32, Params: [*]DEBUG_SPECIFIC_FILTER_PARAMETERS, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl, Start: u32, Count: u32, Params: [*]DEBUG_SPECIFIC_FILTER_PARAMETERS, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetSpecificFilterArgument: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl, Index: u32, Buffer: ?[*:0]u8, BufferSize: u32, ArgumentSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl, Index: u32, Buffer: ?[*:0]u8, BufferSize: u32, ArgumentSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetSpecificFilterArgument: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl, Index: u32, Argument: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl, Index: u32, Argument: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetExceptionFilterParameters: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl, Count: u32, Codes: ?[*]u32, Start: u32, Params: [*]DEBUG_EXCEPTION_FILTER_PARAMETERS, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl, Count: u32, Codes: ?[*]u32, Start: u32, Params: [*]DEBUG_EXCEPTION_FILTER_PARAMETERS, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetExceptionFilterParameters: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl, Count: u32, Params: [*]DEBUG_EXCEPTION_FILTER_PARAMETERS, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl, Count: u32, Params: [*]DEBUG_EXCEPTION_FILTER_PARAMETERS, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetExceptionFilterSecondCommand: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl, Index: u32, Buffer: ?[*:0]u8, BufferSize: u32, CommandSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl, Index: u32, Buffer: ?[*:0]u8, BufferSize: u32, CommandSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetExceptionFilterSecondCommand: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl, Index: u32, Command: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl, Index: u32, Command: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, WaitForEvent: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl, Flags: u32, Timeout: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl, Flags: u32, Timeout: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetLastEventInformation: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl, Type: ?*u32, ProcessId: ?*u32, ThreadId: ?*u32, // TODO: what to do with BytesParamIndex 4? ExtraInformation: ?*anyopaque, ExtraInformationSize: u32, ExtraInformationUsed: ?*u32, Description: ?[*:0]u8, DescriptionSize: u32, DescriptionUsed: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl, Type: ?*u32, ProcessId: ?*u32, ThreadId: ?*u32, // TODO: what to do with BytesParamIndex 4? ExtraInformation: ?*anyopaque, ExtraInformationSize: u32, ExtraInformationUsed: ?*u32, Description: ?[*:0]u8, DescriptionSize: u32, DescriptionUsed: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl_GetInterrupt(self: *const T) HRESULT { return @as(*const IDebugControl.VTable, @ptrCast(self.vtable)).GetInterrupt(@as(*const IDebugControl, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl_SetInterrupt(self: *const T, Flags: u32) HRESULT { return @as(*const IDebugControl.VTable, @ptrCast(self.vtable)).SetInterrupt(@as(*const IDebugControl, @ptrCast(self)), Flags); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl_GetInterruptTimeout(self: *const T, Seconds: ?*u32) HRESULT { return @as(*const IDebugControl.VTable, @ptrCast(self.vtable)).GetInterruptTimeout(@as(*const IDebugControl, @ptrCast(self)), Seconds); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl_SetInterruptTimeout(self: *const T, Seconds: u32) HRESULT { return @as(*const IDebugControl.VTable, @ptrCast(self.vtable)).SetInterruptTimeout(@as(*const IDebugControl, @ptrCast(self)), Seconds); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl_GetLogFile(self: *const T, Buffer: ?[*:0]u8, BufferSize: u32, FileSize: ?*u32, Append: ?*BOOL) HRESULT { return @as(*const IDebugControl.VTable, @ptrCast(self.vtable)).GetLogFile(@as(*const IDebugControl, @ptrCast(self)), Buffer, BufferSize, FileSize, Append); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl_OpenLogFile(self: *const T, File: ?[*:0]const u8, Append: BOOL) HRESULT { return @as(*const IDebugControl.VTable, @ptrCast(self.vtable)).OpenLogFile(@as(*const IDebugControl, @ptrCast(self)), File, Append); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl_CloseLogFile(self: *const T) HRESULT { return @as(*const IDebugControl.VTable, @ptrCast(self.vtable)).CloseLogFile(@as(*const IDebugControl, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl_GetLogMask(self: *const T, Mask: ?*u32) HRESULT { return @as(*const IDebugControl.VTable, @ptrCast(self.vtable)).GetLogMask(@as(*const IDebugControl, @ptrCast(self)), Mask); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl_SetLogMask(self: *const T, Mask: u32) HRESULT { return @as(*const IDebugControl.VTable, @ptrCast(self.vtable)).SetLogMask(@as(*const IDebugControl, @ptrCast(self)), Mask); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl_Input(self: *const T, Buffer: [*:0]u8, BufferSize: u32, InputSize: ?*u32) HRESULT { return @as(*const IDebugControl.VTable, @ptrCast(self.vtable)).Input(@as(*const IDebugControl, @ptrCast(self)), Buffer, BufferSize, InputSize); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl_ReturnInput(self: *const T, Buffer: ?[*:0]const u8) HRESULT { return @as(*const IDebugControl.VTable, @ptrCast(self.vtable)).ReturnInput(@as(*const IDebugControl, @ptrCast(self)), Buffer); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl_Output(self: *const T, Mask: u32, Format: ?[*:0]const u8) HRESULT { return @as(*const IDebugControl.VTable, @ptrCast(self.vtable)).Output(@as(*const IDebugControl, @ptrCast(self)), Mask, Format); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl_OutputVaList(self: *const T, Mask: u32, Format: ?[*:0]const u8, Args: ?*i8) HRESULT { return @as(*const IDebugControl.VTable, @ptrCast(self.vtable)).OutputVaList(@as(*const IDebugControl, @ptrCast(self)), Mask, Format, Args); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl_ControlledOutput(self: *const T, OutputControl: u32, Mask: u32, Format: ?[*:0]const u8) HRESULT { return @as(*const IDebugControl.VTable, @ptrCast(self.vtable)).ControlledOutput(@as(*const IDebugControl, @ptrCast(self)), OutputControl, Mask, Format); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl_ControlledOutputVaList(self: *const T, OutputControl: u32, Mask: u32, Format: ?[*:0]const u8, Args: ?*i8) HRESULT { return @as(*const IDebugControl.VTable, @ptrCast(self.vtable)).ControlledOutputVaList(@as(*const IDebugControl, @ptrCast(self)), OutputControl, Mask, Format, Args); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl_OutputPrompt(self: *const T, OutputControl: u32, Format: ?[*:0]const u8) HRESULT { return @as(*const IDebugControl.VTable, @ptrCast(self.vtable)).OutputPrompt(@as(*const IDebugControl, @ptrCast(self)), OutputControl, Format); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl_OutputPromptVaList(self: *const T, OutputControl: u32, Format: ?[*:0]const u8, Args: ?*i8) HRESULT { return @as(*const IDebugControl.VTable, @ptrCast(self.vtable)).OutputPromptVaList(@as(*const IDebugControl, @ptrCast(self)), OutputControl, Format, Args); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl_GetPromptText(self: *const T, Buffer: ?[*:0]u8, BufferSize: u32, TextSize: ?*u32) HRESULT { return @as(*const IDebugControl.VTable, @ptrCast(self.vtable)).GetPromptText(@as(*const IDebugControl, @ptrCast(self)), Buffer, BufferSize, TextSize); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl_OutputCurrentState(self: *const T, OutputControl: u32, Flags: u32) HRESULT { return @as(*const IDebugControl.VTable, @ptrCast(self.vtable)).OutputCurrentState(@as(*const IDebugControl, @ptrCast(self)), OutputControl, Flags); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl_OutputVersionInformation(self: *const T, OutputControl: u32) HRESULT { return @as(*const IDebugControl.VTable, @ptrCast(self.vtable)).OutputVersionInformation(@as(*const IDebugControl, @ptrCast(self)), OutputControl); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl_GetNotifyEventHandle(self: *const T, Handle: ?*u64) HRESULT { return @as(*const IDebugControl.VTable, @ptrCast(self.vtable)).GetNotifyEventHandle(@as(*const IDebugControl, @ptrCast(self)), Handle); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl_SetNotifyEventHandle(self: *const T, Handle: u64) HRESULT { return @as(*const IDebugControl.VTable, @ptrCast(self.vtable)).SetNotifyEventHandle(@as(*const IDebugControl, @ptrCast(self)), Handle); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl_Assemble(self: *const T, Offset: u64, Instr: ?[*:0]const u8, EndOffset: ?*u64) HRESULT { return @as(*const IDebugControl.VTable, @ptrCast(self.vtable)).Assemble(@as(*const IDebugControl, @ptrCast(self)), Offset, Instr, EndOffset); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl_Disassemble(self: *const T, Offset: u64, Flags: u32, Buffer: ?[*:0]u8, BufferSize: u32, DisassemblySize: ?*u32, EndOffset: ?*u64) HRESULT { return @as(*const IDebugControl.VTable, @ptrCast(self.vtable)).Disassemble(@as(*const IDebugControl, @ptrCast(self)), Offset, Flags, Buffer, BufferSize, DisassemblySize, EndOffset); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl_GetDisassembleEffectiveOffset(self: *const T, Offset: ?*u64) HRESULT { return @as(*const IDebugControl.VTable, @ptrCast(self.vtable)).GetDisassembleEffectiveOffset(@as(*const IDebugControl, @ptrCast(self)), Offset); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl_OutputDisassembly(self: *const T, OutputControl: u32, Offset: u64, Flags: u32, EndOffset: ?*u64) HRESULT { return @as(*const IDebugControl.VTable, @ptrCast(self.vtable)).OutputDisassembly(@as(*const IDebugControl, @ptrCast(self)), OutputControl, Offset, Flags, EndOffset); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl_OutputDisassemblyLines(self: *const T, OutputControl: u32, PreviousLines: u32, TotalLines: u32, Offset: u64, Flags: u32, OffsetLine: ?*u32, StartOffset: ?*u64, EndOffset: ?*u64, LineOffsets: ?[*]u64) HRESULT { return @as(*const IDebugControl.VTable, @ptrCast(self.vtable)).OutputDisassemblyLines(@as(*const IDebugControl, @ptrCast(self)), OutputControl, PreviousLines, TotalLines, Offset, Flags, OffsetLine, StartOffset, EndOffset, LineOffsets); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl_GetNearInstruction(self: *const T, Offset: u64, Delta: i32, NearOffset: ?*u64) HRESULT { return @as(*const IDebugControl.VTable, @ptrCast(self.vtable)).GetNearInstruction(@as(*const IDebugControl, @ptrCast(self)), Offset, Delta, NearOffset); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl_GetStackTrace(self: *const T, FrameOffset: u64, StackOffset: u64, InstructionOffset: u64, Frames: [*]DEBUG_STACK_FRAME, FramesSize: u32, FramesFilled: ?*u32) HRESULT { return @as(*const IDebugControl.VTable, @ptrCast(self.vtable)).GetStackTrace(@as(*const IDebugControl, @ptrCast(self)), FrameOffset, StackOffset, InstructionOffset, Frames, FramesSize, FramesFilled); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl_GetReturnOffset(self: *const T, Offset: ?*u64) HRESULT { return @as(*const IDebugControl.VTable, @ptrCast(self.vtable)).GetReturnOffset(@as(*const IDebugControl, @ptrCast(self)), Offset); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl_OutputStackTrace(self: *const T, OutputControl: u32, Frames: ?[*]DEBUG_STACK_FRAME, FramesSize: u32, Flags: u32) HRESULT { return @as(*const IDebugControl.VTable, @ptrCast(self.vtable)).OutputStackTrace(@as(*const IDebugControl, @ptrCast(self)), OutputControl, Frames, FramesSize, Flags); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl_GetDebuggeeType(self: *const T, Class: ?*u32, Qualifier: ?*u32) HRESULT { return @as(*const IDebugControl.VTable, @ptrCast(self.vtable)).GetDebuggeeType(@as(*const IDebugControl, @ptrCast(self)), Class, Qualifier); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl_GetActualProcessorType(self: *const T, Type: ?*u32) HRESULT { return @as(*const IDebugControl.VTable, @ptrCast(self.vtable)).GetActualProcessorType(@as(*const IDebugControl, @ptrCast(self)), Type); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl_GetExecutingProcessorType(self: *const T, Type: ?*u32) HRESULT { return @as(*const IDebugControl.VTable, @ptrCast(self.vtable)).GetExecutingProcessorType(@as(*const IDebugControl, @ptrCast(self)), Type); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl_GetNumberPossibleExecutingProcessorTypes(self: *const T, Number: ?*u32) HRESULT { return @as(*const IDebugControl.VTable, @ptrCast(self.vtable)).GetNumberPossibleExecutingProcessorTypes(@as(*const IDebugControl, @ptrCast(self)), Number); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl_GetPossibleExecutingProcessorTypes(self: *const T, Start: u32, Count: u32, Types: [*]u32) HRESULT { return @as(*const IDebugControl.VTable, @ptrCast(self.vtable)).GetPossibleExecutingProcessorTypes(@as(*const IDebugControl, @ptrCast(self)), Start, Count, Types); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl_GetNumberProcessors(self: *const T, Number: ?*u32) HRESULT { return @as(*const IDebugControl.VTable, @ptrCast(self.vtable)).GetNumberProcessors(@as(*const IDebugControl, @ptrCast(self)), Number); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl_GetSystemVersion(self: *const T, PlatformId: ?*u32, Major: ?*u32, Minor: ?*u32, ServicePackString: ?[*:0]u8, ServicePackStringSize: u32, ServicePackStringUsed: ?*u32, ServicePackNumber: ?*u32, BuildString: ?[*:0]u8, BuildStringSize: u32, BuildStringUsed: ?*u32) HRESULT { return @as(*const IDebugControl.VTable, @ptrCast(self.vtable)).GetSystemVersion(@as(*const IDebugControl, @ptrCast(self)), PlatformId, Major, Minor, ServicePackString, ServicePackStringSize, ServicePackStringUsed, ServicePackNumber, BuildString, BuildStringSize, BuildStringUsed); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl_GetPageSize(self: *const T, Size: ?*u32) HRESULT { return @as(*const IDebugControl.VTable, @ptrCast(self.vtable)).GetPageSize(@as(*const IDebugControl, @ptrCast(self)), Size); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl_IsPointer64Bit(self: *const T) HRESULT { return @as(*const IDebugControl.VTable, @ptrCast(self.vtable)).IsPointer64Bit(@as(*const IDebugControl, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl_ReadBugCheckData(self: *const T, Code: ?*u32, Arg1: ?*u64, Arg2: ?*u64, Arg3: ?*u64, Arg4: ?*u64) HRESULT { return @as(*const IDebugControl.VTable, @ptrCast(self.vtable)).ReadBugCheckData(@as(*const IDebugControl, @ptrCast(self)), Code, Arg1, Arg2, Arg3, Arg4); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl_GetNumberSupportedProcessorTypes(self: *const T, Number: ?*u32) HRESULT { return @as(*const IDebugControl.VTable, @ptrCast(self.vtable)).GetNumberSupportedProcessorTypes(@as(*const IDebugControl, @ptrCast(self)), Number); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl_GetSupportedProcessorTypes(self: *const T, Start: u32, Count: u32, Types: [*]u32) HRESULT { return @as(*const IDebugControl.VTable, @ptrCast(self.vtable)).GetSupportedProcessorTypes(@as(*const IDebugControl, @ptrCast(self)), Start, Count, Types); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl_GetProcessorTypeNames(self: *const T, Type: u32, FullNameBuffer: ?[*:0]u8, FullNameBufferSize: u32, FullNameSize: ?*u32, AbbrevNameBuffer: ?[*:0]u8, AbbrevNameBufferSize: u32, AbbrevNameSize: ?*u32) HRESULT { return @as(*const IDebugControl.VTable, @ptrCast(self.vtable)).GetProcessorTypeNames(@as(*const IDebugControl, @ptrCast(self)), Type, FullNameBuffer, FullNameBufferSize, FullNameSize, AbbrevNameBuffer, AbbrevNameBufferSize, AbbrevNameSize); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl_GetEffectiveProcessorType(self: *const T, Type: ?*u32) HRESULT { return @as(*const IDebugControl.VTable, @ptrCast(self.vtable)).GetEffectiveProcessorType(@as(*const IDebugControl, @ptrCast(self)), Type); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl_SetEffectiveProcessorType(self: *const T, Type: u32) HRESULT { return @as(*const IDebugControl.VTable, @ptrCast(self.vtable)).SetEffectiveProcessorType(@as(*const IDebugControl, @ptrCast(self)), Type); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl_GetExecutionStatus(self: *const T, Status: ?*u32) HRESULT { return @as(*const IDebugControl.VTable, @ptrCast(self.vtable)).GetExecutionStatus(@as(*const IDebugControl, @ptrCast(self)), Status); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl_SetExecutionStatus(self: *const T, Status: u32) HRESULT { return @as(*const IDebugControl.VTable, @ptrCast(self.vtable)).SetExecutionStatus(@as(*const IDebugControl, @ptrCast(self)), Status); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl_GetCodeLevel(self: *const T, Level: ?*u32) HRESULT { return @as(*const IDebugControl.VTable, @ptrCast(self.vtable)).GetCodeLevel(@as(*const IDebugControl, @ptrCast(self)), Level); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl_SetCodeLevel(self: *const T, Level: u32) HRESULT { return @as(*const IDebugControl.VTable, @ptrCast(self.vtable)).SetCodeLevel(@as(*const IDebugControl, @ptrCast(self)), Level); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl_GetEngineOptions(self: *const T, Options: ?*u32) HRESULT { return @as(*const IDebugControl.VTable, @ptrCast(self.vtable)).GetEngineOptions(@as(*const IDebugControl, @ptrCast(self)), Options); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl_AddEngineOptions(self: *const T, Options: u32) HRESULT { return @as(*const IDebugControl.VTable, @ptrCast(self.vtable)).AddEngineOptions(@as(*const IDebugControl, @ptrCast(self)), Options); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl_RemoveEngineOptions(self: *const T, Options: u32) HRESULT { return @as(*const IDebugControl.VTable, @ptrCast(self.vtable)).RemoveEngineOptions(@as(*const IDebugControl, @ptrCast(self)), Options); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl_SetEngineOptions(self: *const T, Options: u32) HRESULT { return @as(*const IDebugControl.VTable, @ptrCast(self.vtable)).SetEngineOptions(@as(*const IDebugControl, @ptrCast(self)), Options); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl_GetSystemErrorControl(self: *const T, OutputLevel: ?*u32, BreakLevel: ?*u32) HRESULT { return @as(*const IDebugControl.VTable, @ptrCast(self.vtable)).GetSystemErrorControl(@as(*const IDebugControl, @ptrCast(self)), OutputLevel, BreakLevel); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl_SetSystemErrorControl(self: *const T, OutputLevel: u32, BreakLevel: u32) HRESULT { return @as(*const IDebugControl.VTable, @ptrCast(self.vtable)).SetSystemErrorControl(@as(*const IDebugControl, @ptrCast(self)), OutputLevel, BreakLevel); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl_GetTextMacro(self: *const T, Slot: u32, Buffer: ?[*:0]u8, BufferSize: u32, MacroSize: ?*u32) HRESULT { return @as(*const IDebugControl.VTable, @ptrCast(self.vtable)).GetTextMacro(@as(*const IDebugControl, @ptrCast(self)), Slot, Buffer, BufferSize, MacroSize); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl_SetTextMacro(self: *const T, Slot: u32, Macro: ?[*:0]const u8) HRESULT { return @as(*const IDebugControl.VTable, @ptrCast(self.vtable)).SetTextMacro(@as(*const IDebugControl, @ptrCast(self)), Slot, Macro); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl_GetRadix(self: *const T, Radix: ?*u32) HRESULT { return @as(*const IDebugControl.VTable, @ptrCast(self.vtable)).GetRadix(@as(*const IDebugControl, @ptrCast(self)), Radix); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl_SetRadix(self: *const T, Radix: u32) HRESULT { return @as(*const IDebugControl.VTable, @ptrCast(self.vtable)).SetRadix(@as(*const IDebugControl, @ptrCast(self)), Radix); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl_Evaluate(self: *const T, Expression: ?[*:0]const u8, DesiredType: u32, Value: ?*DEBUG_VALUE, RemainderIndex: ?*u32) HRESULT { return @as(*const IDebugControl.VTable, @ptrCast(self.vtable)).Evaluate(@as(*const IDebugControl, @ptrCast(self)), Expression, DesiredType, Value, RemainderIndex); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl_CoerceValue(self: *const T, In: ?*DEBUG_VALUE, OutType: u32, Out: ?*DEBUG_VALUE) HRESULT { return @as(*const IDebugControl.VTable, @ptrCast(self.vtable)).CoerceValue(@as(*const IDebugControl, @ptrCast(self)), In, OutType, Out); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl_CoerceValues(self: *const T, Count: u32, In: [*]DEBUG_VALUE, OutTypes: [*]u32, Out: [*]DEBUG_VALUE) HRESULT { return @as(*const IDebugControl.VTable, @ptrCast(self.vtable)).CoerceValues(@as(*const IDebugControl, @ptrCast(self)), Count, In, OutTypes, Out); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl_Execute(self: *const T, OutputControl: u32, Command: ?[*:0]const u8, Flags: u32) HRESULT { return @as(*const IDebugControl.VTable, @ptrCast(self.vtable)).Execute(@as(*const IDebugControl, @ptrCast(self)), OutputControl, Command, Flags); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl_ExecuteCommandFile(self: *const T, OutputControl: u32, CommandFile: ?[*:0]const u8, Flags: u32) HRESULT { return @as(*const IDebugControl.VTable, @ptrCast(self.vtable)).ExecuteCommandFile(@as(*const IDebugControl, @ptrCast(self)), OutputControl, CommandFile, Flags); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl_GetNumberBreakpoints(self: *const T, Number: ?*u32) HRESULT { return @as(*const IDebugControl.VTable, @ptrCast(self.vtable)).GetNumberBreakpoints(@as(*const IDebugControl, @ptrCast(self)), Number); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl_GetBreakpointByIndex(self: *const T, Index: u32, Bp: ?*?*IDebugBreakpoint) HRESULT { return @as(*const IDebugControl.VTable, @ptrCast(self.vtable)).GetBreakpointByIndex(@as(*const IDebugControl, @ptrCast(self)), Index, Bp); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl_GetBreakpointById(self: *const T, Id: u32, Bp: ?*?*IDebugBreakpoint) HRESULT { return @as(*const IDebugControl.VTable, @ptrCast(self.vtable)).GetBreakpointById(@as(*const IDebugControl, @ptrCast(self)), Id, Bp); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl_GetBreakpointParameters(self: *const T, Count: u32, Ids: ?[*]u32, Start: u32, Params: [*]DEBUG_BREAKPOINT_PARAMETERS) HRESULT { return @as(*const IDebugControl.VTable, @ptrCast(self.vtable)).GetBreakpointParameters(@as(*const IDebugControl, @ptrCast(self)), Count, Ids, Start, Params); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl_AddBreakpoint(self: *const T, Type: u32, DesiredId: u32, Bp: ?*?*IDebugBreakpoint) HRESULT { return @as(*const IDebugControl.VTable, @ptrCast(self.vtable)).AddBreakpoint(@as(*const IDebugControl, @ptrCast(self)), Type, DesiredId, Bp); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl_RemoveBreakpoint(self: *const T, Bp: ?*IDebugBreakpoint) HRESULT { return @as(*const IDebugControl.VTable, @ptrCast(self.vtable)).RemoveBreakpoint(@as(*const IDebugControl, @ptrCast(self)), Bp); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl_AddExtension(self: *const T, Path: ?[*:0]const u8, Flags: u32, Handle: ?*u64) HRESULT { return @as(*const IDebugControl.VTable, @ptrCast(self.vtable)).AddExtension(@as(*const IDebugControl, @ptrCast(self)), Path, Flags, Handle); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl_RemoveExtension(self: *const T, Handle: u64) HRESULT { return @as(*const IDebugControl.VTable, @ptrCast(self.vtable)).RemoveExtension(@as(*const IDebugControl, @ptrCast(self)), Handle); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl_GetExtensionByPath(self: *const T, Path: ?[*:0]const u8, Handle: ?*u64) HRESULT { return @as(*const IDebugControl.VTable, @ptrCast(self.vtable)).GetExtensionByPath(@as(*const IDebugControl, @ptrCast(self)), Path, Handle); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl_CallExtension(self: *const T, Handle: u64, Function: ?[*:0]const u8, Arguments: ?[*:0]const u8) HRESULT { return @as(*const IDebugControl.VTable, @ptrCast(self.vtable)).CallExtension(@as(*const IDebugControl, @ptrCast(self)), Handle, Function, Arguments); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl_GetExtensionFunction(self: *const T, Handle: u64, FuncName: ?[*:0]const u8, Function: ?*?FARPROC) HRESULT { return @as(*const IDebugControl.VTable, @ptrCast(self.vtable)).GetExtensionFunction(@as(*const IDebugControl, @ptrCast(self)), Handle, FuncName, Function); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl_GetWindbgExtensionApis32(self: *const T, Api: ?*WINDBG_EXTENSION_APIS32) HRESULT { return @as(*const IDebugControl.VTable, @ptrCast(self.vtable)).GetWindbgExtensionApis32(@as(*const IDebugControl, @ptrCast(self)), Api); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl_GetWindbgExtensionApis64(self: *const T, Api: ?*WINDBG_EXTENSION_APIS64) HRESULT { return @as(*const IDebugControl.VTable, @ptrCast(self.vtable)).GetWindbgExtensionApis64(@as(*const IDebugControl, @ptrCast(self)), Api); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl_GetNumberEventFilters(self: *const T, SpecificEvents: ?*u32, SpecificExceptions: ?*u32, ArbitraryExceptions: ?*u32) HRESULT { return @as(*const IDebugControl.VTable, @ptrCast(self.vtable)).GetNumberEventFilters(@as(*const IDebugControl, @ptrCast(self)), SpecificEvents, SpecificExceptions, ArbitraryExceptions); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl_GetEventFilterText(self: *const T, Index: u32, Buffer: ?[*:0]u8, BufferSize: u32, TextSize: ?*u32) HRESULT { return @as(*const IDebugControl.VTable, @ptrCast(self.vtable)).GetEventFilterText(@as(*const IDebugControl, @ptrCast(self)), Index, Buffer, BufferSize, TextSize); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl_GetEventFilterCommand(self: *const T, Index: u32, Buffer: ?[*:0]u8, BufferSize: u32, CommandSize: ?*u32) HRESULT { return @as(*const IDebugControl.VTable, @ptrCast(self.vtable)).GetEventFilterCommand(@as(*const IDebugControl, @ptrCast(self)), Index, Buffer, BufferSize, CommandSize); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl_SetEventFilterCommand(self: *const T, Index: u32, Command: ?[*:0]const u8) HRESULT { return @as(*const IDebugControl.VTable, @ptrCast(self.vtable)).SetEventFilterCommand(@as(*const IDebugControl, @ptrCast(self)), Index, Command); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl_GetSpecificFilterParameters(self: *const T, Start: u32, Count: u32, Params: [*]DEBUG_SPECIFIC_FILTER_PARAMETERS) HRESULT { return @as(*const IDebugControl.VTable, @ptrCast(self.vtable)).GetSpecificFilterParameters(@as(*const IDebugControl, @ptrCast(self)), Start, Count, Params); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl_SetSpecificFilterParameters(self: *const T, Start: u32, Count: u32, Params: [*]DEBUG_SPECIFIC_FILTER_PARAMETERS) HRESULT { return @as(*const IDebugControl.VTable, @ptrCast(self.vtable)).SetSpecificFilterParameters(@as(*const IDebugControl, @ptrCast(self)), Start, Count, Params); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl_GetSpecificFilterArgument(self: *const T, Index: u32, Buffer: ?[*:0]u8, BufferSize: u32, ArgumentSize: ?*u32) HRESULT { return @as(*const IDebugControl.VTable, @ptrCast(self.vtable)).GetSpecificFilterArgument(@as(*const IDebugControl, @ptrCast(self)), Index, Buffer, BufferSize, ArgumentSize); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl_SetSpecificFilterArgument(self: *const T, Index: u32, Argument: ?[*:0]const u8) HRESULT { return @as(*const IDebugControl.VTable, @ptrCast(self.vtable)).SetSpecificFilterArgument(@as(*const IDebugControl, @ptrCast(self)), Index, Argument); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl_GetExceptionFilterParameters(self: *const T, Count: u32, Codes: ?[*]u32, Start: u32, Params: [*]DEBUG_EXCEPTION_FILTER_PARAMETERS) HRESULT { return @as(*const IDebugControl.VTable, @ptrCast(self.vtable)).GetExceptionFilterParameters(@as(*const IDebugControl, @ptrCast(self)), Count, Codes, Start, Params); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl_SetExceptionFilterParameters(self: *const T, Count: u32, Params: [*]DEBUG_EXCEPTION_FILTER_PARAMETERS) HRESULT { return @as(*const IDebugControl.VTable, @ptrCast(self.vtable)).SetExceptionFilterParameters(@as(*const IDebugControl, @ptrCast(self)), Count, Params); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl_GetExceptionFilterSecondCommand(self: *const T, Index: u32, Buffer: ?[*:0]u8, BufferSize: u32, CommandSize: ?*u32) HRESULT { return @as(*const IDebugControl.VTable, @ptrCast(self.vtable)).GetExceptionFilterSecondCommand(@as(*const IDebugControl, @ptrCast(self)), Index, Buffer, BufferSize, CommandSize); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl_SetExceptionFilterSecondCommand(self: *const T, Index: u32, Command: ?[*:0]const u8) HRESULT { return @as(*const IDebugControl.VTable, @ptrCast(self.vtable)).SetExceptionFilterSecondCommand(@as(*const IDebugControl, @ptrCast(self)), Index, Command); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl_WaitForEvent(self: *const T, Flags: u32, Timeout: u32) HRESULT { return @as(*const IDebugControl.VTable, @ptrCast(self.vtable)).WaitForEvent(@as(*const IDebugControl, @ptrCast(self)), Flags, Timeout); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl_GetLastEventInformation(self: *const T, Type: ?*u32, ProcessId: ?*u32, ThreadId: ?*u32, ExtraInformation: ?*anyopaque, ExtraInformationSize: u32, ExtraInformationUsed: ?*u32, Description: ?[*:0]u8, DescriptionSize: u32, DescriptionUsed: ?*u32) HRESULT { return @as(*const IDebugControl.VTable, @ptrCast(self.vtable)).GetLastEventInformation(@as(*const IDebugControl, @ptrCast(self)), Type, ProcessId, ThreadId, ExtraInformation, ExtraInformationSize, ExtraInformationUsed, Description, DescriptionSize, DescriptionUsed); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IDebugControl2_Value = Guid.initString("d4366723-44df-4bed-8c7e-4c05424f4588"); pub const IID_IDebugControl2 = &IID_IDebugControl2_Value; pub const IDebugControl2 = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, GetInterrupt: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl2, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl2, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetInterrupt: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl2, Flags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl2, Flags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetInterruptTimeout: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl2, Seconds: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl2, Seconds: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetInterruptTimeout: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl2, Seconds: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl2, Seconds: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetLogFile: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl2, Buffer: ?[*:0]u8, BufferSize: u32, FileSize: ?*u32, Append: ?*BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl2, Buffer: ?[*:0]u8, BufferSize: u32, FileSize: ?*u32, Append: ?*BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, OpenLogFile: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl2, File: ?[*:0]const u8, Append: BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl2, File: ?[*:0]const u8, Append: BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, CloseLogFile: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl2, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl2, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetLogMask: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl2, Mask: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl2, Mask: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetLogMask: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl2, Mask: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl2, Mask: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Input: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl2, Buffer: [*:0]u8, BufferSize: u32, InputSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl2, Buffer: [*:0]u8, BufferSize: u32, InputSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, ReturnInput: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl2, Buffer: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl2, Buffer: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Output: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl2, Mask: u32, Format: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl2, Mask: u32, Format: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, OutputVaList: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl2, Mask: u32, Format: ?[*:0]const u8, Args: ?*i8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl2, Mask: u32, Format: ?[*:0]const u8, Args: ?*i8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, ControlledOutput: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl2, OutputControl: u32, Mask: u32, Format: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl2, OutputControl: u32, Mask: u32, Format: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, ControlledOutputVaList: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl2, OutputControl: u32, Mask: u32, Format: ?[*:0]const u8, Args: ?*i8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl2, OutputControl: u32, Mask: u32, Format: ?[*:0]const u8, Args: ?*i8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, OutputPrompt: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl2, OutputControl: u32, Format: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl2, OutputControl: u32, Format: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, OutputPromptVaList: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl2, OutputControl: u32, Format: ?[*:0]const u8, Args: ?*i8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl2, OutputControl: u32, Format: ?[*:0]const u8, Args: ?*i8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetPromptText: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl2, Buffer: ?[*:0]u8, BufferSize: u32, TextSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl2, Buffer: ?[*:0]u8, BufferSize: u32, TextSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, OutputCurrentState: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl2, OutputControl: u32, Flags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl2, OutputControl: u32, Flags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, OutputVersionInformation: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl2, OutputControl: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl2, OutputControl: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetNotifyEventHandle: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl2, Handle: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl2, Handle: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetNotifyEventHandle: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl2, Handle: u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl2, Handle: u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Assemble: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl2, Offset: u64, Instr: ?[*:0]const u8, EndOffset: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl2, Offset: u64, Instr: ?[*:0]const u8, EndOffset: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Disassemble: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl2, Offset: u64, Flags: u32, Buffer: ?[*:0]u8, BufferSize: u32, DisassemblySize: ?*u32, EndOffset: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl2, Offset: u64, Flags: u32, Buffer: ?[*:0]u8, BufferSize: u32, DisassemblySize: ?*u32, EndOffset: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetDisassembleEffectiveOffset: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl2, Offset: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl2, Offset: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, OutputDisassembly: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl2, OutputControl: u32, Offset: u64, Flags: u32, EndOffset: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl2, OutputControl: u32, Offset: u64, Flags: u32, EndOffset: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, OutputDisassemblyLines: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl2, OutputControl: u32, PreviousLines: u32, TotalLines: u32, Offset: u64, Flags: u32, OffsetLine: ?*u32, StartOffset: ?*u64, EndOffset: ?*u64, LineOffsets: ?[*]u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl2, OutputControl: u32, PreviousLines: u32, TotalLines: u32, Offset: u64, Flags: u32, OffsetLine: ?*u32, StartOffset: ?*u64, EndOffset: ?*u64, LineOffsets: ?[*]u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetNearInstruction: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl2, Offset: u64, Delta: i32, NearOffset: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl2, Offset: u64, Delta: i32, NearOffset: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetStackTrace: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl2, FrameOffset: u64, StackOffset: u64, InstructionOffset: u64, Frames: [*]DEBUG_STACK_FRAME, FramesSize: u32, FramesFilled: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl2, FrameOffset: u64, StackOffset: u64, InstructionOffset: u64, Frames: [*]DEBUG_STACK_FRAME, FramesSize: u32, FramesFilled: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetReturnOffset: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl2, Offset: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl2, Offset: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, OutputStackTrace: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl2, OutputControl: u32, Frames: ?[*]DEBUG_STACK_FRAME, FramesSize: u32, Flags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl2, OutputControl: u32, Frames: ?[*]DEBUG_STACK_FRAME, FramesSize: u32, Flags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetDebuggeeType: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl2, Class: ?*u32, Qualifier: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl2, Class: ?*u32, Qualifier: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetActualProcessorType: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl2, Type: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl2, Type: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetExecutingProcessorType: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl2, Type: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl2, Type: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetNumberPossibleExecutingProcessorTypes: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl2, Number: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl2, Number: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetPossibleExecutingProcessorTypes: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl2, Start: u32, Count: u32, Types: [*]u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl2, Start: u32, Count: u32, Types: [*]u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetNumberProcessors: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl2, Number: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl2, Number: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetSystemVersion: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl2, PlatformId: ?*u32, Major: ?*u32, Minor: ?*u32, ServicePackString: ?[*:0]u8, ServicePackStringSize: u32, ServicePackStringUsed: ?*u32, ServicePackNumber: ?*u32, BuildString: ?[*:0]u8, BuildStringSize: u32, BuildStringUsed: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl2, PlatformId: ?*u32, Major: ?*u32, Minor: ?*u32, ServicePackString: ?[*:0]u8, ServicePackStringSize: u32, ServicePackStringUsed: ?*u32, ServicePackNumber: ?*u32, BuildString: ?[*:0]u8, BuildStringSize: u32, BuildStringUsed: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetPageSize: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl2, Size: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl2, Size: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, IsPointer64Bit: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl2, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl2, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, ReadBugCheckData: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl2, Code: ?*u32, Arg1: ?*u64, Arg2: ?*u64, Arg3: ?*u64, Arg4: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl2, Code: ?*u32, Arg1: ?*u64, Arg2: ?*u64, Arg3: ?*u64, Arg4: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetNumberSupportedProcessorTypes: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl2, Number: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl2, Number: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetSupportedProcessorTypes: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl2, Start: u32, Count: u32, Types: [*]u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl2, Start: u32, Count: u32, Types: [*]u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetProcessorTypeNames: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl2, Type: u32, FullNameBuffer: ?[*:0]u8, FullNameBufferSize: u32, FullNameSize: ?*u32, AbbrevNameBuffer: ?[*:0]u8, AbbrevNameBufferSize: u32, AbbrevNameSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl2, Type: u32, FullNameBuffer: ?[*:0]u8, FullNameBufferSize: u32, FullNameSize: ?*u32, AbbrevNameBuffer: ?[*:0]u8, AbbrevNameBufferSize: u32, AbbrevNameSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetEffectiveProcessorType: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl2, Type: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl2, Type: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetEffectiveProcessorType: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl2, Type: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl2, Type: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetExecutionStatus: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl2, Status: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl2, Status: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetExecutionStatus: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl2, Status: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl2, Status: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetCodeLevel: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl2, Level: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl2, Level: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetCodeLevel: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl2, Level: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl2, Level: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetEngineOptions: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl2, Options: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl2, Options: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, AddEngineOptions: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl2, Options: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl2, Options: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, RemoveEngineOptions: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl2, Options: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl2, Options: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetEngineOptions: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl2, Options: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl2, Options: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetSystemErrorControl: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl2, OutputLevel: ?*u32, BreakLevel: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl2, OutputLevel: ?*u32, BreakLevel: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetSystemErrorControl: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl2, OutputLevel: u32, BreakLevel: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl2, OutputLevel: u32, BreakLevel: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetTextMacro: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl2, Slot: u32, Buffer: ?[*:0]u8, BufferSize: u32, MacroSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl2, Slot: u32, Buffer: ?[*:0]u8, BufferSize: u32, MacroSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetTextMacro: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl2, Slot: u32, Macro: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl2, Slot: u32, Macro: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetRadix: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl2, Radix: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl2, Radix: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetRadix: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl2, Radix: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl2, Radix: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Evaluate: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl2, Expression: ?[*:0]const u8, DesiredType: u32, Value: ?*DEBUG_VALUE, RemainderIndex: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl2, Expression: ?[*:0]const u8, DesiredType: u32, Value: ?*DEBUG_VALUE, RemainderIndex: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, CoerceValue: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl2, In: ?*DEBUG_VALUE, OutType: u32, Out: ?*DEBUG_VALUE, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl2, In: ?*DEBUG_VALUE, OutType: u32, Out: ?*DEBUG_VALUE, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, CoerceValues: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl2, Count: u32, In: [*]DEBUG_VALUE, OutTypes: [*]u32, Out: [*]DEBUG_VALUE, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl2, Count: u32, In: [*]DEBUG_VALUE, OutTypes: [*]u32, Out: [*]DEBUG_VALUE, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Execute: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl2, OutputControl: u32, Command: ?[*:0]const u8, Flags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl2, OutputControl: u32, Command: ?[*:0]const u8, Flags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, ExecuteCommandFile: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl2, OutputControl: u32, CommandFile: ?[*:0]const u8, Flags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl2, OutputControl: u32, CommandFile: ?[*:0]const u8, Flags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetNumberBreakpoints: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl2, Number: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl2, Number: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetBreakpointByIndex: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl2, Index: u32, Bp: ?*?*IDebugBreakpoint, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl2, Index: u32, Bp: ?*?*IDebugBreakpoint, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetBreakpointById: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl2, Id: u32, Bp: ?*?*IDebugBreakpoint, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl2, Id: u32, Bp: ?*?*IDebugBreakpoint, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetBreakpointParameters: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl2, Count: u32, Ids: ?[*]u32, Start: u32, Params: [*]DEBUG_BREAKPOINT_PARAMETERS, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl2, Count: u32, Ids: ?[*]u32, Start: u32, Params: [*]DEBUG_BREAKPOINT_PARAMETERS, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, AddBreakpoint: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl2, Type: u32, DesiredId: u32, Bp: ?*?*IDebugBreakpoint, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl2, Type: u32, DesiredId: u32, Bp: ?*?*IDebugBreakpoint, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, RemoveBreakpoint: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl2, Bp: ?*IDebugBreakpoint, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl2, Bp: ?*IDebugBreakpoint, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, AddExtension: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl2, Path: ?[*:0]const u8, Flags: u32, Handle: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl2, Path: ?[*:0]const u8, Flags: u32, Handle: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, RemoveExtension: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl2, Handle: u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl2, Handle: u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetExtensionByPath: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl2, Path: ?[*:0]const u8, Handle: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl2, Path: ?[*:0]const u8, Handle: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, CallExtension: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl2, Handle: u64, Function: ?[*:0]const u8, Arguments: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl2, Handle: u64, Function: ?[*:0]const u8, Arguments: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetExtensionFunction: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl2, Handle: u64, FuncName: ?[*:0]const u8, Function: ?*?FARPROC, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl2, Handle: u64, FuncName: ?[*:0]const u8, Function: ?*?FARPROC, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetWindbgExtensionApis32: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl2, Api: ?*WINDBG_EXTENSION_APIS32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl2, Api: ?*WINDBG_EXTENSION_APIS32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetWindbgExtensionApis64: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl2, Api: ?*WINDBG_EXTENSION_APIS64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl2, Api: ?*WINDBG_EXTENSION_APIS64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetNumberEventFilters: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl2, SpecificEvents: ?*u32, SpecificExceptions: ?*u32, ArbitraryExceptions: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl2, SpecificEvents: ?*u32, SpecificExceptions: ?*u32, ArbitraryExceptions: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetEventFilterText: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl2, Index: u32, Buffer: ?[*:0]u8, BufferSize: u32, TextSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl2, Index: u32, Buffer: ?[*:0]u8, BufferSize: u32, TextSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetEventFilterCommand: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl2, Index: u32, Buffer: ?[*:0]u8, BufferSize: u32, CommandSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl2, Index: u32, Buffer: ?[*:0]u8, BufferSize: u32, CommandSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetEventFilterCommand: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl2, Index: u32, Command: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl2, Index: u32, Command: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetSpecificFilterParameters: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl2, Start: u32, Count: u32, Params: [*]DEBUG_SPECIFIC_FILTER_PARAMETERS, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl2, Start: u32, Count: u32, Params: [*]DEBUG_SPECIFIC_FILTER_PARAMETERS, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetSpecificFilterParameters: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl2, Start: u32, Count: u32, Params: [*]DEBUG_SPECIFIC_FILTER_PARAMETERS, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl2, Start: u32, Count: u32, Params: [*]DEBUG_SPECIFIC_FILTER_PARAMETERS, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetSpecificFilterArgument: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl2, Index: u32, Buffer: ?[*:0]u8, BufferSize: u32, ArgumentSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl2, Index: u32, Buffer: ?[*:0]u8, BufferSize: u32, ArgumentSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetSpecificFilterArgument: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl2, Index: u32, Argument: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl2, Index: u32, Argument: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetExceptionFilterParameters: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl2, Count: u32, Codes: ?[*]u32, Start: u32, Params: [*]DEBUG_EXCEPTION_FILTER_PARAMETERS, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl2, Count: u32, Codes: ?[*]u32, Start: u32, Params: [*]DEBUG_EXCEPTION_FILTER_PARAMETERS, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetExceptionFilterParameters: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl2, Count: u32, Params: [*]DEBUG_EXCEPTION_FILTER_PARAMETERS, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl2, Count: u32, Params: [*]DEBUG_EXCEPTION_FILTER_PARAMETERS, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetExceptionFilterSecondCommand: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl2, Index: u32, Buffer: ?[*:0]u8, BufferSize: u32, CommandSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl2, Index: u32, Buffer: ?[*:0]u8, BufferSize: u32, CommandSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetExceptionFilterSecondCommand: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl2, Index: u32, Command: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl2, Index: u32, Command: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, WaitForEvent: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl2, Flags: u32, Timeout: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl2, Flags: u32, Timeout: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetLastEventInformation: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl2, Type: ?*u32, ProcessId: ?*u32, ThreadId: ?*u32, // TODO: what to do with BytesParamIndex 4? ExtraInformation: ?*anyopaque, ExtraInformationSize: u32, ExtraInformationUsed: ?*u32, Description: ?[*:0]u8, DescriptionSize: u32, DescriptionUsed: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl2, Type: ?*u32, ProcessId: ?*u32, ThreadId: ?*u32, // TODO: what to do with BytesParamIndex 4? ExtraInformation: ?*anyopaque, ExtraInformationSize: u32, ExtraInformationUsed: ?*u32, Description: ?[*:0]u8, DescriptionSize: u32, DescriptionUsed: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetCurrentTimeDate: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl2, TimeDate: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl2, TimeDate: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetCurrentSystemUpTime: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl2, UpTime: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl2, UpTime: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetDumpFormatFlags: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl2, FormatFlags: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl2, FormatFlags: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetNumberTextReplacements: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl2, NumRepl: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl2, NumRepl: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetTextReplacement: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl2, SrcText: ?[*:0]const u8, Index: u32, SrcBuffer: ?[*:0]u8, SrcBufferSize: u32, SrcSize: ?*u32, DstBuffer: ?[*:0]u8, DstBufferSize: u32, DstSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl2, SrcText: ?[*:0]const u8, Index: u32, SrcBuffer: ?[*:0]u8, SrcBufferSize: u32, SrcSize: ?*u32, DstBuffer: ?[*:0]u8, DstBufferSize: u32, DstSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetTextReplacement: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl2, SrcText: ?[*:0]const u8, DstText: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl2, SrcText: ?[*:0]const u8, DstText: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, RemoveTextReplacements: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl2, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl2, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, OutputTextReplacements: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl2, OutputControl: u32, Flags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl2, OutputControl: u32, Flags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl2_GetInterrupt(self: *const T) HRESULT { return @as(*const IDebugControl2.VTable, @ptrCast(self.vtable)).GetInterrupt(@as(*const IDebugControl2, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl2_SetInterrupt(self: *const T, Flags: u32) HRESULT { return @as(*const IDebugControl2.VTable, @ptrCast(self.vtable)).SetInterrupt(@as(*const IDebugControl2, @ptrCast(self)), Flags); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl2_GetInterruptTimeout(self: *const T, Seconds: ?*u32) HRESULT { return @as(*const IDebugControl2.VTable, @ptrCast(self.vtable)).GetInterruptTimeout(@as(*const IDebugControl2, @ptrCast(self)), Seconds); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl2_SetInterruptTimeout(self: *const T, Seconds: u32) HRESULT { return @as(*const IDebugControl2.VTable, @ptrCast(self.vtable)).SetInterruptTimeout(@as(*const IDebugControl2, @ptrCast(self)), Seconds); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl2_GetLogFile(self: *const T, Buffer: ?[*:0]u8, BufferSize: u32, FileSize: ?*u32, Append: ?*BOOL) HRESULT { return @as(*const IDebugControl2.VTable, @ptrCast(self.vtable)).GetLogFile(@as(*const IDebugControl2, @ptrCast(self)), Buffer, BufferSize, FileSize, Append); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl2_OpenLogFile(self: *const T, File: ?[*:0]const u8, Append: BOOL) HRESULT { return @as(*const IDebugControl2.VTable, @ptrCast(self.vtable)).OpenLogFile(@as(*const IDebugControl2, @ptrCast(self)), File, Append); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl2_CloseLogFile(self: *const T) HRESULT { return @as(*const IDebugControl2.VTable, @ptrCast(self.vtable)).CloseLogFile(@as(*const IDebugControl2, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl2_GetLogMask(self: *const T, Mask: ?*u32) HRESULT { return @as(*const IDebugControl2.VTable, @ptrCast(self.vtable)).GetLogMask(@as(*const IDebugControl2, @ptrCast(self)), Mask); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl2_SetLogMask(self: *const T, Mask: u32) HRESULT { return @as(*const IDebugControl2.VTable, @ptrCast(self.vtable)).SetLogMask(@as(*const IDebugControl2, @ptrCast(self)), Mask); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl2_Input(self: *const T, Buffer: [*:0]u8, BufferSize: u32, InputSize: ?*u32) HRESULT { return @as(*const IDebugControl2.VTable, @ptrCast(self.vtable)).Input(@as(*const IDebugControl2, @ptrCast(self)), Buffer, BufferSize, InputSize); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl2_ReturnInput(self: *const T, Buffer: ?[*:0]const u8) HRESULT { return @as(*const IDebugControl2.VTable, @ptrCast(self.vtable)).ReturnInput(@as(*const IDebugControl2, @ptrCast(self)), Buffer); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl2_Output(self: *const T, Mask: u32, Format: ?[*:0]const u8) HRESULT { return @as(*const IDebugControl2.VTable, @ptrCast(self.vtable)).Output(@as(*const IDebugControl2, @ptrCast(self)), Mask, Format); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl2_OutputVaList(self: *const T, Mask: u32, Format: ?[*:0]const u8, Args: ?*i8) HRESULT { return @as(*const IDebugControl2.VTable, @ptrCast(self.vtable)).OutputVaList(@as(*const IDebugControl2, @ptrCast(self)), Mask, Format, Args); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl2_ControlledOutput(self: *const T, OutputControl: u32, Mask: u32, Format: ?[*:0]const u8) HRESULT { return @as(*const IDebugControl2.VTable, @ptrCast(self.vtable)).ControlledOutput(@as(*const IDebugControl2, @ptrCast(self)), OutputControl, Mask, Format); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl2_ControlledOutputVaList(self: *const T, OutputControl: u32, Mask: u32, Format: ?[*:0]const u8, Args: ?*i8) HRESULT { return @as(*const IDebugControl2.VTable, @ptrCast(self.vtable)).ControlledOutputVaList(@as(*const IDebugControl2, @ptrCast(self)), OutputControl, Mask, Format, Args); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl2_OutputPrompt(self: *const T, OutputControl: u32, Format: ?[*:0]const u8) HRESULT { return @as(*const IDebugControl2.VTable, @ptrCast(self.vtable)).OutputPrompt(@as(*const IDebugControl2, @ptrCast(self)), OutputControl, Format); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl2_OutputPromptVaList(self: *const T, OutputControl: u32, Format: ?[*:0]const u8, Args: ?*i8) HRESULT { return @as(*const IDebugControl2.VTable, @ptrCast(self.vtable)).OutputPromptVaList(@as(*const IDebugControl2, @ptrCast(self)), OutputControl, Format, Args); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl2_GetPromptText(self: *const T, Buffer: ?[*:0]u8, BufferSize: u32, TextSize: ?*u32) HRESULT { return @as(*const IDebugControl2.VTable, @ptrCast(self.vtable)).GetPromptText(@as(*const IDebugControl2, @ptrCast(self)), Buffer, BufferSize, TextSize); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl2_OutputCurrentState(self: *const T, OutputControl: u32, Flags: u32) HRESULT { return @as(*const IDebugControl2.VTable, @ptrCast(self.vtable)).OutputCurrentState(@as(*const IDebugControl2, @ptrCast(self)), OutputControl, Flags); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl2_OutputVersionInformation(self: *const T, OutputControl: u32) HRESULT { return @as(*const IDebugControl2.VTable, @ptrCast(self.vtable)).OutputVersionInformation(@as(*const IDebugControl2, @ptrCast(self)), OutputControl); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl2_GetNotifyEventHandle(self: *const T, Handle: ?*u64) HRESULT { return @as(*const IDebugControl2.VTable, @ptrCast(self.vtable)).GetNotifyEventHandle(@as(*const IDebugControl2, @ptrCast(self)), Handle); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl2_SetNotifyEventHandle(self: *const T, Handle: u64) HRESULT { return @as(*const IDebugControl2.VTable, @ptrCast(self.vtable)).SetNotifyEventHandle(@as(*const IDebugControl2, @ptrCast(self)), Handle); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl2_Assemble(self: *const T, Offset: u64, Instr: ?[*:0]const u8, EndOffset: ?*u64) HRESULT { return @as(*const IDebugControl2.VTable, @ptrCast(self.vtable)).Assemble(@as(*const IDebugControl2, @ptrCast(self)), Offset, Instr, EndOffset); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl2_Disassemble(self: *const T, Offset: u64, Flags: u32, Buffer: ?[*:0]u8, BufferSize: u32, DisassemblySize: ?*u32, EndOffset: ?*u64) HRESULT { return @as(*const IDebugControl2.VTable, @ptrCast(self.vtable)).Disassemble(@as(*const IDebugControl2, @ptrCast(self)), Offset, Flags, Buffer, BufferSize, DisassemblySize, EndOffset); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl2_GetDisassembleEffectiveOffset(self: *const T, Offset: ?*u64) HRESULT { return @as(*const IDebugControl2.VTable, @ptrCast(self.vtable)).GetDisassembleEffectiveOffset(@as(*const IDebugControl2, @ptrCast(self)), Offset); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl2_OutputDisassembly(self: *const T, OutputControl: u32, Offset: u64, Flags: u32, EndOffset: ?*u64) HRESULT { return @as(*const IDebugControl2.VTable, @ptrCast(self.vtable)).OutputDisassembly(@as(*const IDebugControl2, @ptrCast(self)), OutputControl, Offset, Flags, EndOffset); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl2_OutputDisassemblyLines(self: *const T, OutputControl: u32, PreviousLines: u32, TotalLines: u32, Offset: u64, Flags: u32, OffsetLine: ?*u32, StartOffset: ?*u64, EndOffset: ?*u64, LineOffsets: ?[*]u64) HRESULT { return @as(*const IDebugControl2.VTable, @ptrCast(self.vtable)).OutputDisassemblyLines(@as(*const IDebugControl2, @ptrCast(self)), OutputControl, PreviousLines, TotalLines, Offset, Flags, OffsetLine, StartOffset, EndOffset, LineOffsets); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl2_GetNearInstruction(self: *const T, Offset: u64, Delta: i32, NearOffset: ?*u64) HRESULT { return @as(*const IDebugControl2.VTable, @ptrCast(self.vtable)).GetNearInstruction(@as(*const IDebugControl2, @ptrCast(self)), Offset, Delta, NearOffset); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl2_GetStackTrace(self: *const T, FrameOffset: u64, StackOffset: u64, InstructionOffset: u64, Frames: [*]DEBUG_STACK_FRAME, FramesSize: u32, FramesFilled: ?*u32) HRESULT { return @as(*const IDebugControl2.VTable, @ptrCast(self.vtable)).GetStackTrace(@as(*const IDebugControl2, @ptrCast(self)), FrameOffset, StackOffset, InstructionOffset, Frames, FramesSize, FramesFilled); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl2_GetReturnOffset(self: *const T, Offset: ?*u64) HRESULT { return @as(*const IDebugControl2.VTable, @ptrCast(self.vtable)).GetReturnOffset(@as(*const IDebugControl2, @ptrCast(self)), Offset); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl2_OutputStackTrace(self: *const T, OutputControl: u32, Frames: ?[*]DEBUG_STACK_FRAME, FramesSize: u32, Flags: u32) HRESULT { return @as(*const IDebugControl2.VTable, @ptrCast(self.vtable)).OutputStackTrace(@as(*const IDebugControl2, @ptrCast(self)), OutputControl, Frames, FramesSize, Flags); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl2_GetDebuggeeType(self: *const T, Class: ?*u32, Qualifier: ?*u32) HRESULT { return @as(*const IDebugControl2.VTable, @ptrCast(self.vtable)).GetDebuggeeType(@as(*const IDebugControl2, @ptrCast(self)), Class, Qualifier); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl2_GetActualProcessorType(self: *const T, Type: ?*u32) HRESULT { return @as(*const IDebugControl2.VTable, @ptrCast(self.vtable)).GetActualProcessorType(@as(*const IDebugControl2, @ptrCast(self)), Type); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl2_GetExecutingProcessorType(self: *const T, Type: ?*u32) HRESULT { return @as(*const IDebugControl2.VTable, @ptrCast(self.vtable)).GetExecutingProcessorType(@as(*const IDebugControl2, @ptrCast(self)), Type); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl2_GetNumberPossibleExecutingProcessorTypes(self: *const T, Number: ?*u32) HRESULT { return @as(*const IDebugControl2.VTable, @ptrCast(self.vtable)).GetNumberPossibleExecutingProcessorTypes(@as(*const IDebugControl2, @ptrCast(self)), Number); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl2_GetPossibleExecutingProcessorTypes(self: *const T, Start: u32, Count: u32, Types: [*]u32) HRESULT { return @as(*const IDebugControl2.VTable, @ptrCast(self.vtable)).GetPossibleExecutingProcessorTypes(@as(*const IDebugControl2, @ptrCast(self)), Start, Count, Types); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl2_GetNumberProcessors(self: *const T, Number: ?*u32) HRESULT { return @as(*const IDebugControl2.VTable, @ptrCast(self.vtable)).GetNumberProcessors(@as(*const IDebugControl2, @ptrCast(self)), Number); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl2_GetSystemVersion(self: *const T, PlatformId: ?*u32, Major: ?*u32, Minor: ?*u32, ServicePackString: ?[*:0]u8, ServicePackStringSize: u32, ServicePackStringUsed: ?*u32, ServicePackNumber: ?*u32, BuildString: ?[*:0]u8, BuildStringSize: u32, BuildStringUsed: ?*u32) HRESULT { return @as(*const IDebugControl2.VTable, @ptrCast(self.vtable)).GetSystemVersion(@as(*const IDebugControl2, @ptrCast(self)), PlatformId, Major, Minor, ServicePackString, ServicePackStringSize, ServicePackStringUsed, ServicePackNumber, BuildString, BuildStringSize, BuildStringUsed); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl2_GetPageSize(self: *const T, Size: ?*u32) HRESULT { return @as(*const IDebugControl2.VTable, @ptrCast(self.vtable)).GetPageSize(@as(*const IDebugControl2, @ptrCast(self)), Size); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl2_IsPointer64Bit(self: *const T) HRESULT { return @as(*const IDebugControl2.VTable, @ptrCast(self.vtable)).IsPointer64Bit(@as(*const IDebugControl2, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl2_ReadBugCheckData(self: *const T, Code: ?*u32, Arg1: ?*u64, Arg2: ?*u64, Arg3: ?*u64, Arg4: ?*u64) HRESULT { return @as(*const IDebugControl2.VTable, @ptrCast(self.vtable)).ReadBugCheckData(@as(*const IDebugControl2, @ptrCast(self)), Code, Arg1, Arg2, Arg3, Arg4); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl2_GetNumberSupportedProcessorTypes(self: *const T, Number: ?*u32) HRESULT { return @as(*const IDebugControl2.VTable, @ptrCast(self.vtable)).GetNumberSupportedProcessorTypes(@as(*const IDebugControl2, @ptrCast(self)), Number); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl2_GetSupportedProcessorTypes(self: *const T, Start: u32, Count: u32, Types: [*]u32) HRESULT { return @as(*const IDebugControl2.VTable, @ptrCast(self.vtable)).GetSupportedProcessorTypes(@as(*const IDebugControl2, @ptrCast(self)), Start, Count, Types); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl2_GetProcessorTypeNames(self: *const T, Type: u32, FullNameBuffer: ?[*:0]u8, FullNameBufferSize: u32, FullNameSize: ?*u32, AbbrevNameBuffer: ?[*:0]u8, AbbrevNameBufferSize: u32, AbbrevNameSize: ?*u32) HRESULT { return @as(*const IDebugControl2.VTable, @ptrCast(self.vtable)).GetProcessorTypeNames(@as(*const IDebugControl2, @ptrCast(self)), Type, FullNameBuffer, FullNameBufferSize, FullNameSize, AbbrevNameBuffer, AbbrevNameBufferSize, AbbrevNameSize); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl2_GetEffectiveProcessorType(self: *const T, Type: ?*u32) HRESULT { return @as(*const IDebugControl2.VTable, @ptrCast(self.vtable)).GetEffectiveProcessorType(@as(*const IDebugControl2, @ptrCast(self)), Type); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl2_SetEffectiveProcessorType(self: *const T, Type: u32) HRESULT { return @as(*const IDebugControl2.VTable, @ptrCast(self.vtable)).SetEffectiveProcessorType(@as(*const IDebugControl2, @ptrCast(self)), Type); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl2_GetExecutionStatus(self: *const T, Status: ?*u32) HRESULT { return @as(*const IDebugControl2.VTable, @ptrCast(self.vtable)).GetExecutionStatus(@as(*const IDebugControl2, @ptrCast(self)), Status); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl2_SetExecutionStatus(self: *const T, Status: u32) HRESULT { return @as(*const IDebugControl2.VTable, @ptrCast(self.vtable)).SetExecutionStatus(@as(*const IDebugControl2, @ptrCast(self)), Status); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl2_GetCodeLevel(self: *const T, Level: ?*u32) HRESULT { return @as(*const IDebugControl2.VTable, @ptrCast(self.vtable)).GetCodeLevel(@as(*const IDebugControl2, @ptrCast(self)), Level); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl2_SetCodeLevel(self: *const T, Level: u32) HRESULT { return @as(*const IDebugControl2.VTable, @ptrCast(self.vtable)).SetCodeLevel(@as(*const IDebugControl2, @ptrCast(self)), Level); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl2_GetEngineOptions(self: *const T, Options: ?*u32) HRESULT { return @as(*const IDebugControl2.VTable, @ptrCast(self.vtable)).GetEngineOptions(@as(*const IDebugControl2, @ptrCast(self)), Options); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl2_AddEngineOptions(self: *const T, Options: u32) HRESULT { return @as(*const IDebugControl2.VTable, @ptrCast(self.vtable)).AddEngineOptions(@as(*const IDebugControl2, @ptrCast(self)), Options); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl2_RemoveEngineOptions(self: *const T, Options: u32) HRESULT { return @as(*const IDebugControl2.VTable, @ptrCast(self.vtable)).RemoveEngineOptions(@as(*const IDebugControl2, @ptrCast(self)), Options); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl2_SetEngineOptions(self: *const T, Options: u32) HRESULT { return @as(*const IDebugControl2.VTable, @ptrCast(self.vtable)).SetEngineOptions(@as(*const IDebugControl2, @ptrCast(self)), Options); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl2_GetSystemErrorControl(self: *const T, OutputLevel: ?*u32, BreakLevel: ?*u32) HRESULT { return @as(*const IDebugControl2.VTable, @ptrCast(self.vtable)).GetSystemErrorControl(@as(*const IDebugControl2, @ptrCast(self)), OutputLevel, BreakLevel); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl2_SetSystemErrorControl(self: *const T, OutputLevel: u32, BreakLevel: u32) HRESULT { return @as(*const IDebugControl2.VTable, @ptrCast(self.vtable)).SetSystemErrorControl(@as(*const IDebugControl2, @ptrCast(self)), OutputLevel, BreakLevel); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl2_GetTextMacro(self: *const T, Slot: u32, Buffer: ?[*:0]u8, BufferSize: u32, MacroSize: ?*u32) HRESULT { return @as(*const IDebugControl2.VTable, @ptrCast(self.vtable)).GetTextMacro(@as(*const IDebugControl2, @ptrCast(self)), Slot, Buffer, BufferSize, MacroSize); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl2_SetTextMacro(self: *const T, Slot: u32, Macro: ?[*:0]const u8) HRESULT { return @as(*const IDebugControl2.VTable, @ptrCast(self.vtable)).SetTextMacro(@as(*const IDebugControl2, @ptrCast(self)), Slot, Macro); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl2_GetRadix(self: *const T, Radix: ?*u32) HRESULT { return @as(*const IDebugControl2.VTable, @ptrCast(self.vtable)).GetRadix(@as(*const IDebugControl2, @ptrCast(self)), Radix); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl2_SetRadix(self: *const T, Radix: u32) HRESULT { return @as(*const IDebugControl2.VTable, @ptrCast(self.vtable)).SetRadix(@as(*const IDebugControl2, @ptrCast(self)), Radix); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl2_Evaluate(self: *const T, Expression: ?[*:0]const u8, DesiredType: u32, Value: ?*DEBUG_VALUE, RemainderIndex: ?*u32) HRESULT { return @as(*const IDebugControl2.VTable, @ptrCast(self.vtable)).Evaluate(@as(*const IDebugControl2, @ptrCast(self)), Expression, DesiredType, Value, RemainderIndex); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl2_CoerceValue(self: *const T, In: ?*DEBUG_VALUE, OutType: u32, Out: ?*DEBUG_VALUE) HRESULT { return @as(*const IDebugControl2.VTable, @ptrCast(self.vtable)).CoerceValue(@as(*const IDebugControl2, @ptrCast(self)), In, OutType, Out); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl2_CoerceValues(self: *const T, Count: u32, In: [*]DEBUG_VALUE, OutTypes: [*]u32, Out: [*]DEBUG_VALUE) HRESULT { return @as(*const IDebugControl2.VTable, @ptrCast(self.vtable)).CoerceValues(@as(*const IDebugControl2, @ptrCast(self)), Count, In, OutTypes, Out); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl2_Execute(self: *const T, OutputControl: u32, Command: ?[*:0]const u8, Flags: u32) HRESULT { return @as(*const IDebugControl2.VTable, @ptrCast(self.vtable)).Execute(@as(*const IDebugControl2, @ptrCast(self)), OutputControl, Command, Flags); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl2_ExecuteCommandFile(self: *const T, OutputControl: u32, CommandFile: ?[*:0]const u8, Flags: u32) HRESULT { return @as(*const IDebugControl2.VTable, @ptrCast(self.vtable)).ExecuteCommandFile(@as(*const IDebugControl2, @ptrCast(self)), OutputControl, CommandFile, Flags); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl2_GetNumberBreakpoints(self: *const T, Number: ?*u32) HRESULT { return @as(*const IDebugControl2.VTable, @ptrCast(self.vtable)).GetNumberBreakpoints(@as(*const IDebugControl2, @ptrCast(self)), Number); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl2_GetBreakpointByIndex(self: *const T, Index: u32, Bp: ?*?*IDebugBreakpoint) HRESULT { return @as(*const IDebugControl2.VTable, @ptrCast(self.vtable)).GetBreakpointByIndex(@as(*const IDebugControl2, @ptrCast(self)), Index, Bp); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl2_GetBreakpointById(self: *const T, Id: u32, Bp: ?*?*IDebugBreakpoint) HRESULT { return @as(*const IDebugControl2.VTable, @ptrCast(self.vtable)).GetBreakpointById(@as(*const IDebugControl2, @ptrCast(self)), Id, Bp); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl2_GetBreakpointParameters(self: *const T, Count: u32, Ids: ?[*]u32, Start: u32, Params: [*]DEBUG_BREAKPOINT_PARAMETERS) HRESULT { return @as(*const IDebugControl2.VTable, @ptrCast(self.vtable)).GetBreakpointParameters(@as(*const IDebugControl2, @ptrCast(self)), Count, Ids, Start, Params); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl2_AddBreakpoint(self: *const T, Type: u32, DesiredId: u32, Bp: ?*?*IDebugBreakpoint) HRESULT { return @as(*const IDebugControl2.VTable, @ptrCast(self.vtable)).AddBreakpoint(@as(*const IDebugControl2, @ptrCast(self)), Type, DesiredId, Bp); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl2_RemoveBreakpoint(self: *const T, Bp: ?*IDebugBreakpoint) HRESULT { return @as(*const IDebugControl2.VTable, @ptrCast(self.vtable)).RemoveBreakpoint(@as(*const IDebugControl2, @ptrCast(self)), Bp); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl2_AddExtension(self: *const T, Path: ?[*:0]const u8, Flags: u32, Handle: ?*u64) HRESULT { return @as(*const IDebugControl2.VTable, @ptrCast(self.vtable)).AddExtension(@as(*const IDebugControl2, @ptrCast(self)), Path, Flags, Handle); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl2_RemoveExtension(self: *const T, Handle: u64) HRESULT { return @as(*const IDebugControl2.VTable, @ptrCast(self.vtable)).RemoveExtension(@as(*const IDebugControl2, @ptrCast(self)), Handle); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl2_GetExtensionByPath(self: *const T, Path: ?[*:0]const u8, Handle: ?*u64) HRESULT { return @as(*const IDebugControl2.VTable, @ptrCast(self.vtable)).GetExtensionByPath(@as(*const IDebugControl2, @ptrCast(self)), Path, Handle); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl2_CallExtension(self: *const T, Handle: u64, Function: ?[*:0]const u8, Arguments: ?[*:0]const u8) HRESULT { return @as(*const IDebugControl2.VTable, @ptrCast(self.vtable)).CallExtension(@as(*const IDebugControl2, @ptrCast(self)), Handle, Function, Arguments); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl2_GetExtensionFunction(self: *const T, Handle: u64, FuncName: ?[*:0]const u8, Function: ?*?FARPROC) HRESULT { return @as(*const IDebugControl2.VTable, @ptrCast(self.vtable)).GetExtensionFunction(@as(*const IDebugControl2, @ptrCast(self)), Handle, FuncName, Function); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl2_GetWindbgExtensionApis32(self: *const T, Api: ?*WINDBG_EXTENSION_APIS32) HRESULT { return @as(*const IDebugControl2.VTable, @ptrCast(self.vtable)).GetWindbgExtensionApis32(@as(*const IDebugControl2, @ptrCast(self)), Api); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl2_GetWindbgExtensionApis64(self: *const T, Api: ?*WINDBG_EXTENSION_APIS64) HRESULT { return @as(*const IDebugControl2.VTable, @ptrCast(self.vtable)).GetWindbgExtensionApis64(@as(*const IDebugControl2, @ptrCast(self)), Api); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl2_GetNumberEventFilters(self: *const T, SpecificEvents: ?*u32, SpecificExceptions: ?*u32, ArbitraryExceptions: ?*u32) HRESULT { return @as(*const IDebugControl2.VTable, @ptrCast(self.vtable)).GetNumberEventFilters(@as(*const IDebugControl2, @ptrCast(self)), SpecificEvents, SpecificExceptions, ArbitraryExceptions); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl2_GetEventFilterText(self: *const T, Index: u32, Buffer: ?[*:0]u8, BufferSize: u32, TextSize: ?*u32) HRESULT { return @as(*const IDebugControl2.VTable, @ptrCast(self.vtable)).GetEventFilterText(@as(*const IDebugControl2, @ptrCast(self)), Index, Buffer, BufferSize, TextSize); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl2_GetEventFilterCommand(self: *const T, Index: u32, Buffer: ?[*:0]u8, BufferSize: u32, CommandSize: ?*u32) HRESULT { return @as(*const IDebugControl2.VTable, @ptrCast(self.vtable)).GetEventFilterCommand(@as(*const IDebugControl2, @ptrCast(self)), Index, Buffer, BufferSize, CommandSize); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl2_SetEventFilterCommand(self: *const T, Index: u32, Command: ?[*:0]const u8) HRESULT { return @as(*const IDebugControl2.VTable, @ptrCast(self.vtable)).SetEventFilterCommand(@as(*const IDebugControl2, @ptrCast(self)), Index, Command); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl2_GetSpecificFilterParameters(self: *const T, Start: u32, Count: u32, Params: [*]DEBUG_SPECIFIC_FILTER_PARAMETERS) HRESULT { return @as(*const IDebugControl2.VTable, @ptrCast(self.vtable)).GetSpecificFilterParameters(@as(*const IDebugControl2, @ptrCast(self)), Start, Count, Params); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl2_SetSpecificFilterParameters(self: *const T, Start: u32, Count: u32, Params: [*]DEBUG_SPECIFIC_FILTER_PARAMETERS) HRESULT { return @as(*const IDebugControl2.VTable, @ptrCast(self.vtable)).SetSpecificFilterParameters(@as(*const IDebugControl2, @ptrCast(self)), Start, Count, Params); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl2_GetSpecificFilterArgument(self: *const T, Index: u32, Buffer: ?[*:0]u8, BufferSize: u32, ArgumentSize: ?*u32) HRESULT { return @as(*const IDebugControl2.VTable, @ptrCast(self.vtable)).GetSpecificFilterArgument(@as(*const IDebugControl2, @ptrCast(self)), Index, Buffer, BufferSize, ArgumentSize); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl2_SetSpecificFilterArgument(self: *const T, Index: u32, Argument: ?[*:0]const u8) HRESULT { return @as(*const IDebugControl2.VTable, @ptrCast(self.vtable)).SetSpecificFilterArgument(@as(*const IDebugControl2, @ptrCast(self)), Index, Argument); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl2_GetExceptionFilterParameters(self: *const T, Count: u32, Codes: ?[*]u32, Start: u32, Params: [*]DEBUG_EXCEPTION_FILTER_PARAMETERS) HRESULT { return @as(*const IDebugControl2.VTable, @ptrCast(self.vtable)).GetExceptionFilterParameters(@as(*const IDebugControl2, @ptrCast(self)), Count, Codes, Start, Params); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl2_SetExceptionFilterParameters(self: *const T, Count: u32, Params: [*]DEBUG_EXCEPTION_FILTER_PARAMETERS) HRESULT { return @as(*const IDebugControl2.VTable, @ptrCast(self.vtable)).SetExceptionFilterParameters(@as(*const IDebugControl2, @ptrCast(self)), Count, Params); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl2_GetExceptionFilterSecondCommand(self: *const T, Index: u32, Buffer: ?[*:0]u8, BufferSize: u32, CommandSize: ?*u32) HRESULT { return @as(*const IDebugControl2.VTable, @ptrCast(self.vtable)).GetExceptionFilterSecondCommand(@as(*const IDebugControl2, @ptrCast(self)), Index, Buffer, BufferSize, CommandSize); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl2_SetExceptionFilterSecondCommand(self: *const T, Index: u32, Command: ?[*:0]const u8) HRESULT { return @as(*const IDebugControl2.VTable, @ptrCast(self.vtable)).SetExceptionFilterSecondCommand(@as(*const IDebugControl2, @ptrCast(self)), Index, Command); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl2_WaitForEvent(self: *const T, Flags: u32, Timeout: u32) HRESULT { return @as(*const IDebugControl2.VTable, @ptrCast(self.vtable)).WaitForEvent(@as(*const IDebugControl2, @ptrCast(self)), Flags, Timeout); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl2_GetLastEventInformation(self: *const T, Type: ?*u32, ProcessId: ?*u32, ThreadId: ?*u32, ExtraInformation: ?*anyopaque, ExtraInformationSize: u32, ExtraInformationUsed: ?*u32, Description: ?[*:0]u8, DescriptionSize: u32, DescriptionUsed: ?*u32) HRESULT { return @as(*const IDebugControl2.VTable, @ptrCast(self.vtable)).GetLastEventInformation(@as(*const IDebugControl2, @ptrCast(self)), Type, ProcessId, ThreadId, ExtraInformation, ExtraInformationSize, ExtraInformationUsed, Description, DescriptionSize, DescriptionUsed); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl2_GetCurrentTimeDate(self: *const T, TimeDate: ?*u32) HRESULT { return @as(*const IDebugControl2.VTable, @ptrCast(self.vtable)).GetCurrentTimeDate(@as(*const IDebugControl2, @ptrCast(self)), TimeDate); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl2_GetCurrentSystemUpTime(self: *const T, UpTime: ?*u32) HRESULT { return @as(*const IDebugControl2.VTable, @ptrCast(self.vtable)).GetCurrentSystemUpTime(@as(*const IDebugControl2, @ptrCast(self)), UpTime); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl2_GetDumpFormatFlags(self: *const T, FormatFlags: ?*u32) HRESULT { return @as(*const IDebugControl2.VTable, @ptrCast(self.vtable)).GetDumpFormatFlags(@as(*const IDebugControl2, @ptrCast(self)), FormatFlags); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl2_GetNumberTextReplacements(self: *const T, NumRepl: ?*u32) HRESULT { return @as(*const IDebugControl2.VTable, @ptrCast(self.vtable)).GetNumberTextReplacements(@as(*const IDebugControl2, @ptrCast(self)), NumRepl); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl2_GetTextReplacement(self: *const T, SrcText: ?[*:0]const u8, Index: u32, SrcBuffer: ?[*:0]u8, SrcBufferSize: u32, SrcSize: ?*u32, DstBuffer: ?[*:0]u8, DstBufferSize: u32, DstSize: ?*u32) HRESULT { return @as(*const IDebugControl2.VTable, @ptrCast(self.vtable)).GetTextReplacement(@as(*const IDebugControl2, @ptrCast(self)), SrcText, Index, SrcBuffer, SrcBufferSize, SrcSize, DstBuffer, DstBufferSize, DstSize); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl2_SetTextReplacement(self: *const T, SrcText: ?[*:0]const u8, DstText: ?[*:0]const u8) HRESULT { return @as(*const IDebugControl2.VTable, @ptrCast(self.vtable)).SetTextReplacement(@as(*const IDebugControl2, @ptrCast(self)), SrcText, DstText); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl2_RemoveTextReplacements(self: *const T) HRESULT { return @as(*const IDebugControl2.VTable, @ptrCast(self.vtable)).RemoveTextReplacements(@as(*const IDebugControl2, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl2_OutputTextReplacements(self: *const T, OutputControl: u32, Flags: u32) HRESULT { return @as(*const IDebugControl2.VTable, @ptrCast(self.vtable)).OutputTextReplacements(@as(*const IDebugControl2, @ptrCast(self)), OutputControl, Flags); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IDebugControl3_Value = Guid.initString("7df74a86-b03f-407f-90ab-a20dadcead08"); pub const IID_IDebugControl3 = &IID_IDebugControl3_Value; pub const IDebugControl3 = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, GetInterrupt: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl3, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl3, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetInterrupt: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl3, Flags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl3, Flags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetInterruptTimeout: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl3, Seconds: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl3, Seconds: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetInterruptTimeout: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl3, Seconds: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl3, Seconds: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetLogFile: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl3, Buffer: ?[*:0]u8, BufferSize: u32, FileSize: ?*u32, Append: ?*BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl3, Buffer: ?[*:0]u8, BufferSize: u32, FileSize: ?*u32, Append: ?*BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, OpenLogFile: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl3, File: ?[*:0]const u8, Append: BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl3, File: ?[*:0]const u8, Append: BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, CloseLogFile: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl3, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl3, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetLogMask: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl3, Mask: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl3, Mask: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetLogMask: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl3, Mask: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl3, Mask: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Input: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl3, Buffer: [*:0]u8, BufferSize: u32, InputSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl3, Buffer: [*:0]u8, BufferSize: u32, InputSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, ReturnInput: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl3, Buffer: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl3, Buffer: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Output: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl3, Mask: u32, Format: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl3, Mask: u32, Format: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, OutputVaList: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl3, Mask: u32, Format: ?[*:0]const u8, Args: ?*i8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl3, Mask: u32, Format: ?[*:0]const u8, Args: ?*i8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, ControlledOutput: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl3, OutputControl: u32, Mask: u32, Format: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl3, OutputControl: u32, Mask: u32, Format: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, ControlledOutputVaList: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl3, OutputControl: u32, Mask: u32, Format: ?[*:0]const u8, Args: ?*i8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl3, OutputControl: u32, Mask: u32, Format: ?[*:0]const u8, Args: ?*i8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, OutputPrompt: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl3, OutputControl: u32, Format: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl3, OutputControl: u32, Format: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, OutputPromptVaList: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl3, OutputControl: u32, Format: ?[*:0]const u8, Args: ?*i8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl3, OutputControl: u32, Format: ?[*:0]const u8, Args: ?*i8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetPromptText: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl3, Buffer: ?[*:0]u8, BufferSize: u32, TextSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl3, Buffer: ?[*:0]u8, BufferSize: u32, TextSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, OutputCurrentState: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl3, OutputControl: u32, Flags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl3, OutputControl: u32, Flags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, OutputVersionInformation: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl3, OutputControl: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl3, OutputControl: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetNotifyEventHandle: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl3, Handle: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl3, Handle: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetNotifyEventHandle: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl3, Handle: u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl3, Handle: u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Assemble: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl3, Offset: u64, Instr: ?[*:0]const u8, EndOffset: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl3, Offset: u64, Instr: ?[*:0]const u8, EndOffset: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Disassemble: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl3, Offset: u64, Flags: u32, Buffer: ?[*:0]u8, BufferSize: u32, DisassemblySize: ?*u32, EndOffset: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl3, Offset: u64, Flags: u32, Buffer: ?[*:0]u8, BufferSize: u32, DisassemblySize: ?*u32, EndOffset: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetDisassembleEffectiveOffset: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl3, Offset: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl3, Offset: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, OutputDisassembly: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl3, OutputControl: u32, Offset: u64, Flags: u32, EndOffset: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl3, OutputControl: u32, Offset: u64, Flags: u32, EndOffset: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, OutputDisassemblyLines: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl3, OutputControl: u32, PreviousLines: u32, TotalLines: u32, Offset: u64, Flags: u32, OffsetLine: ?*u32, StartOffset: ?*u64, EndOffset: ?*u64, LineOffsets: ?[*]u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl3, OutputControl: u32, PreviousLines: u32, TotalLines: u32, Offset: u64, Flags: u32, OffsetLine: ?*u32, StartOffset: ?*u64, EndOffset: ?*u64, LineOffsets: ?[*]u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetNearInstruction: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl3, Offset: u64, Delta: i32, NearOffset: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl3, Offset: u64, Delta: i32, NearOffset: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetStackTrace: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl3, FrameOffset: u64, StackOffset: u64, InstructionOffset: u64, Frames: [*]DEBUG_STACK_FRAME, FramesSize: u32, FramesFilled: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl3, FrameOffset: u64, StackOffset: u64, InstructionOffset: u64, Frames: [*]DEBUG_STACK_FRAME, FramesSize: u32, FramesFilled: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetReturnOffset: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl3, Offset: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl3, Offset: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, OutputStackTrace: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl3, OutputControl: u32, Frames: ?[*]DEBUG_STACK_FRAME, FramesSize: u32, Flags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl3, OutputControl: u32, Frames: ?[*]DEBUG_STACK_FRAME, FramesSize: u32, Flags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetDebuggeeType: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl3, Class: ?*u32, Qualifier: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl3, Class: ?*u32, Qualifier: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetActualProcessorType: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl3, Type: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl3, Type: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetExecutingProcessorType: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl3, Type: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl3, Type: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetNumberPossibleExecutingProcessorTypes: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl3, Number: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl3, Number: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetPossibleExecutingProcessorTypes: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl3, Start: u32, Count: u32, Types: [*]u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl3, Start: u32, Count: u32, Types: [*]u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetNumberProcessors: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl3, Number: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl3, Number: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetSystemVersion: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl3, PlatformId: ?*u32, Major: ?*u32, Minor: ?*u32, ServicePackString: ?[*:0]u8, ServicePackStringSize: u32, ServicePackStringUsed: ?*u32, ServicePackNumber: ?*u32, BuildString: ?[*:0]u8, BuildStringSize: u32, BuildStringUsed: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl3, PlatformId: ?*u32, Major: ?*u32, Minor: ?*u32, ServicePackString: ?[*:0]u8, ServicePackStringSize: u32, ServicePackStringUsed: ?*u32, ServicePackNumber: ?*u32, BuildString: ?[*:0]u8, BuildStringSize: u32, BuildStringUsed: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetPageSize: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl3, Size: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl3, Size: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, IsPointer64Bit: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl3, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl3, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, ReadBugCheckData: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl3, Code: ?*u32, Arg1: ?*u64, Arg2: ?*u64, Arg3: ?*u64, Arg4: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl3, Code: ?*u32, Arg1: ?*u64, Arg2: ?*u64, Arg3: ?*u64, Arg4: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetNumberSupportedProcessorTypes: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl3, Number: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl3, Number: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetSupportedProcessorTypes: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl3, Start: u32, Count: u32, Types: [*]u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl3, Start: u32, Count: u32, Types: [*]u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetProcessorTypeNames: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl3, Type: u32, FullNameBuffer: ?[*:0]u8, FullNameBufferSize: u32, FullNameSize: ?*u32, AbbrevNameBuffer: ?[*:0]u8, AbbrevNameBufferSize: u32, AbbrevNameSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl3, Type: u32, FullNameBuffer: ?[*:0]u8, FullNameBufferSize: u32, FullNameSize: ?*u32, AbbrevNameBuffer: ?[*:0]u8, AbbrevNameBufferSize: u32, AbbrevNameSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetEffectiveProcessorType: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl3, Type: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl3, Type: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetEffectiveProcessorType: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl3, Type: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl3, Type: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetExecutionStatus: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl3, Status: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl3, Status: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetExecutionStatus: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl3, Status: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl3, Status: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetCodeLevel: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl3, Level: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl3, Level: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetCodeLevel: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl3, Level: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl3, Level: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetEngineOptions: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl3, Options: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl3, Options: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, AddEngineOptions: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl3, Options: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl3, Options: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, RemoveEngineOptions: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl3, Options: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl3, Options: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetEngineOptions: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl3, Options: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl3, Options: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetSystemErrorControl: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl3, OutputLevel: ?*u32, BreakLevel: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl3, OutputLevel: ?*u32, BreakLevel: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetSystemErrorControl: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl3, OutputLevel: u32, BreakLevel: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl3, OutputLevel: u32, BreakLevel: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetTextMacro: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl3, Slot: u32, Buffer: ?[*:0]u8, BufferSize: u32, MacroSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl3, Slot: u32, Buffer: ?[*:0]u8, BufferSize: u32, MacroSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetTextMacro: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl3, Slot: u32, Macro: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl3, Slot: u32, Macro: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetRadix: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl3, Radix: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl3, Radix: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetRadix: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl3, Radix: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl3, Radix: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Evaluate: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl3, Expression: ?[*:0]const u8, DesiredType: u32, Value: ?*DEBUG_VALUE, RemainderIndex: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl3, Expression: ?[*:0]const u8, DesiredType: u32, Value: ?*DEBUG_VALUE, RemainderIndex: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, CoerceValue: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl3, In: ?*DEBUG_VALUE, OutType: u32, Out: ?*DEBUG_VALUE, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl3, In: ?*DEBUG_VALUE, OutType: u32, Out: ?*DEBUG_VALUE, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, CoerceValues: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl3, Count: u32, In: [*]DEBUG_VALUE, OutTypes: [*]u32, Out: [*]DEBUG_VALUE, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl3, Count: u32, In: [*]DEBUG_VALUE, OutTypes: [*]u32, Out: [*]DEBUG_VALUE, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Execute: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl3, OutputControl: u32, Command: ?[*:0]const u8, Flags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl3, OutputControl: u32, Command: ?[*:0]const u8, Flags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, ExecuteCommandFile: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl3, OutputControl: u32, CommandFile: ?[*:0]const u8, Flags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl3, OutputControl: u32, CommandFile: ?[*:0]const u8, Flags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetNumberBreakpoints: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl3, Number: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl3, Number: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetBreakpointByIndex: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl3, Index: u32, Bp: ?*?*IDebugBreakpoint, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl3, Index: u32, Bp: ?*?*IDebugBreakpoint, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetBreakpointById: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl3, Id: u32, Bp: ?*?*IDebugBreakpoint, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl3, Id: u32, Bp: ?*?*IDebugBreakpoint, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetBreakpointParameters: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl3, Count: u32, Ids: ?[*]u32, Start: u32, Params: [*]DEBUG_BREAKPOINT_PARAMETERS, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl3, Count: u32, Ids: ?[*]u32, Start: u32, Params: [*]DEBUG_BREAKPOINT_PARAMETERS, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, AddBreakpoint: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl3, Type: u32, DesiredId: u32, Bp: ?*?*IDebugBreakpoint, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl3, Type: u32, DesiredId: u32, Bp: ?*?*IDebugBreakpoint, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, RemoveBreakpoint: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl3, Bp: ?*IDebugBreakpoint, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl3, Bp: ?*IDebugBreakpoint, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, AddExtension: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl3, Path: ?[*:0]const u8, Flags: u32, Handle: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl3, Path: ?[*:0]const u8, Flags: u32, Handle: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, RemoveExtension: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl3, Handle: u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl3, Handle: u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetExtensionByPath: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl3, Path: ?[*:0]const u8, Handle: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl3, Path: ?[*:0]const u8, Handle: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, CallExtension: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl3, Handle: u64, Function: ?[*:0]const u8, Arguments: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl3, Handle: u64, Function: ?[*:0]const u8, Arguments: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetExtensionFunction: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl3, Handle: u64, FuncName: ?[*:0]const u8, Function: ?*?FARPROC, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl3, Handle: u64, FuncName: ?[*:0]const u8, Function: ?*?FARPROC, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetWindbgExtensionApis32: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl3, Api: ?*WINDBG_EXTENSION_APIS32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl3, Api: ?*WINDBG_EXTENSION_APIS32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetWindbgExtensionApis64: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl3, Api: ?*WINDBG_EXTENSION_APIS64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl3, Api: ?*WINDBG_EXTENSION_APIS64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetNumberEventFilters: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl3, SpecificEvents: ?*u32, SpecificExceptions: ?*u32, ArbitraryExceptions: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl3, SpecificEvents: ?*u32, SpecificExceptions: ?*u32, ArbitraryExceptions: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetEventFilterText: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl3, Index: u32, Buffer: ?[*:0]u8, BufferSize: u32, TextSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl3, Index: u32, Buffer: ?[*:0]u8, BufferSize: u32, TextSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetEventFilterCommand: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl3, Index: u32, Buffer: ?[*:0]u8, BufferSize: u32, CommandSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl3, Index: u32, Buffer: ?[*:0]u8, BufferSize: u32, CommandSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetEventFilterCommand: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl3, Index: u32, Command: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl3, Index: u32, Command: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetSpecificFilterParameters: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl3, Start: u32, Count: u32, Params: [*]DEBUG_SPECIFIC_FILTER_PARAMETERS, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl3, Start: u32, Count: u32, Params: [*]DEBUG_SPECIFIC_FILTER_PARAMETERS, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetSpecificFilterParameters: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl3, Start: u32, Count: u32, Params: [*]DEBUG_SPECIFIC_FILTER_PARAMETERS, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl3, Start: u32, Count: u32, Params: [*]DEBUG_SPECIFIC_FILTER_PARAMETERS, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetSpecificFilterArgument: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl3, Index: u32, Buffer: ?[*:0]u8, BufferSize: u32, ArgumentSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl3, Index: u32, Buffer: ?[*:0]u8, BufferSize: u32, ArgumentSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetSpecificFilterArgument: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl3, Index: u32, Argument: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl3, Index: u32, Argument: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetExceptionFilterParameters: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl3, Count: u32, Codes: ?[*]u32, Start: u32, Params: [*]DEBUG_EXCEPTION_FILTER_PARAMETERS, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl3, Count: u32, Codes: ?[*]u32, Start: u32, Params: [*]DEBUG_EXCEPTION_FILTER_PARAMETERS, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetExceptionFilterParameters: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl3, Count: u32, Params: [*]DEBUG_EXCEPTION_FILTER_PARAMETERS, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl3, Count: u32, Params: [*]DEBUG_EXCEPTION_FILTER_PARAMETERS, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetExceptionFilterSecondCommand: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl3, Index: u32, Buffer: ?[*:0]u8, BufferSize: u32, CommandSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl3, Index: u32, Buffer: ?[*:0]u8, BufferSize: u32, CommandSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetExceptionFilterSecondCommand: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl3, Index: u32, Command: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl3, Index: u32, Command: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, WaitForEvent: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl3, Flags: u32, Timeout: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl3, Flags: u32, Timeout: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetLastEventInformation: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl3, Type: ?*u32, ProcessId: ?*u32, ThreadId: ?*u32, // TODO: what to do with BytesParamIndex 4? ExtraInformation: ?*anyopaque, ExtraInformationSize: u32, ExtraInformationUsed: ?*u32, Description: ?[*:0]u8, DescriptionSize: u32, DescriptionUsed: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl3, Type: ?*u32, ProcessId: ?*u32, ThreadId: ?*u32, // TODO: what to do with BytesParamIndex 4? ExtraInformation: ?*anyopaque, ExtraInformationSize: u32, ExtraInformationUsed: ?*u32, Description: ?[*:0]u8, DescriptionSize: u32, DescriptionUsed: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetCurrentTimeDate: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl3, TimeDate: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl3, TimeDate: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetCurrentSystemUpTime: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl3, UpTime: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl3, UpTime: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetDumpFormatFlags: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl3, FormatFlags: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl3, FormatFlags: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetNumberTextReplacements: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl3, NumRepl: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl3, NumRepl: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetTextReplacement: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl3, SrcText: ?[*:0]const u8, Index: u32, SrcBuffer: ?[*:0]u8, SrcBufferSize: u32, SrcSize: ?*u32, DstBuffer: ?[*:0]u8, DstBufferSize: u32, DstSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl3, SrcText: ?[*:0]const u8, Index: u32, SrcBuffer: ?[*:0]u8, SrcBufferSize: u32, SrcSize: ?*u32, DstBuffer: ?[*:0]u8, DstBufferSize: u32, DstSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetTextReplacement: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl3, SrcText: ?[*:0]const u8, DstText: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl3, SrcText: ?[*:0]const u8, DstText: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, RemoveTextReplacements: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl3, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl3, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, OutputTextReplacements: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl3, OutputControl: u32, Flags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl3, OutputControl: u32, Flags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetAssemblyOptions: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl3, Options: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl3, Options: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, AddAssemblyOptions: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl3, Options: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl3, Options: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, RemoveAssemblyOptions: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl3, Options: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl3, Options: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetAssemblyOptions: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl3, Options: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl3, Options: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetExpressionSyntax: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl3, Flags: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl3, Flags: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetExpressionSyntax: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl3, Flags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl3, Flags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetExpressionSyntaxByName: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl3, AbbrevName: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl3, AbbrevName: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetNumberExpressionSyntaxes: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl3, Number: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl3, Number: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetExpressionSyntaxNames: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl3, Index: u32, FullNameBuffer: ?[*:0]u8, FullNameBufferSize: u32, FullNameSize: ?*u32, AbbrevNameBuffer: ?[*:0]u8, AbbrevNameBufferSize: u32, AbbrevNameSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl3, Index: u32, FullNameBuffer: ?[*:0]u8, FullNameBufferSize: u32, FullNameSize: ?*u32, AbbrevNameBuffer: ?[*:0]u8, AbbrevNameBufferSize: u32, AbbrevNameSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetNumberEvents: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl3, Events: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl3, Events: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetEventIndexDescription: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl3, Index: u32, Which: u32, Buffer: ?PSTR, BufferSize: u32, DescSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl3, Index: u32, Which: u32, Buffer: ?PSTR, BufferSize: u32, DescSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetCurrentEventIndex: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl3, Index: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl3, Index: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetNextEventIndex: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl3, Relation: u32, Value: u32, NextIndex: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl3, Relation: u32, Value: u32, NextIndex: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl3_GetInterrupt(self: *const T) HRESULT { return @as(*const IDebugControl3.VTable, @ptrCast(self.vtable)).GetInterrupt(@as(*const IDebugControl3, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl3_SetInterrupt(self: *const T, Flags: u32) HRESULT { return @as(*const IDebugControl3.VTable, @ptrCast(self.vtable)).SetInterrupt(@as(*const IDebugControl3, @ptrCast(self)), Flags); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl3_GetInterruptTimeout(self: *const T, Seconds: ?*u32) HRESULT { return @as(*const IDebugControl3.VTable, @ptrCast(self.vtable)).GetInterruptTimeout(@as(*const IDebugControl3, @ptrCast(self)), Seconds); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl3_SetInterruptTimeout(self: *const T, Seconds: u32) HRESULT { return @as(*const IDebugControl3.VTable, @ptrCast(self.vtable)).SetInterruptTimeout(@as(*const IDebugControl3, @ptrCast(self)), Seconds); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl3_GetLogFile(self: *const T, Buffer: ?[*:0]u8, BufferSize: u32, FileSize: ?*u32, Append: ?*BOOL) HRESULT { return @as(*const IDebugControl3.VTable, @ptrCast(self.vtable)).GetLogFile(@as(*const IDebugControl3, @ptrCast(self)), Buffer, BufferSize, FileSize, Append); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl3_OpenLogFile(self: *const T, File: ?[*:0]const u8, Append: BOOL) HRESULT { return @as(*const IDebugControl3.VTable, @ptrCast(self.vtable)).OpenLogFile(@as(*const IDebugControl3, @ptrCast(self)), File, Append); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl3_CloseLogFile(self: *const T) HRESULT { return @as(*const IDebugControl3.VTable, @ptrCast(self.vtable)).CloseLogFile(@as(*const IDebugControl3, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl3_GetLogMask(self: *const T, Mask: ?*u32) HRESULT { return @as(*const IDebugControl3.VTable, @ptrCast(self.vtable)).GetLogMask(@as(*const IDebugControl3, @ptrCast(self)), Mask); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl3_SetLogMask(self: *const T, Mask: u32) HRESULT { return @as(*const IDebugControl3.VTable, @ptrCast(self.vtable)).SetLogMask(@as(*const IDebugControl3, @ptrCast(self)), Mask); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl3_Input(self: *const T, Buffer: [*:0]u8, BufferSize: u32, InputSize: ?*u32) HRESULT { return @as(*const IDebugControl3.VTable, @ptrCast(self.vtable)).Input(@as(*const IDebugControl3, @ptrCast(self)), Buffer, BufferSize, InputSize); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl3_ReturnInput(self: *const T, Buffer: ?[*:0]const u8) HRESULT { return @as(*const IDebugControl3.VTable, @ptrCast(self.vtable)).ReturnInput(@as(*const IDebugControl3, @ptrCast(self)), Buffer); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl3_Output(self: *const T, Mask: u32, Format: ?[*:0]const u8) HRESULT { return @as(*const IDebugControl3.VTable, @ptrCast(self.vtable)).Output(@as(*const IDebugControl3, @ptrCast(self)), Mask, Format); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl3_OutputVaList(self: *const T, Mask: u32, Format: ?[*:0]const u8, Args: ?*i8) HRESULT { return @as(*const IDebugControl3.VTable, @ptrCast(self.vtable)).OutputVaList(@as(*const IDebugControl3, @ptrCast(self)), Mask, Format, Args); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl3_ControlledOutput(self: *const T, OutputControl: u32, Mask: u32, Format: ?[*:0]const u8) HRESULT { return @as(*const IDebugControl3.VTable, @ptrCast(self.vtable)).ControlledOutput(@as(*const IDebugControl3, @ptrCast(self)), OutputControl, Mask, Format); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl3_ControlledOutputVaList(self: *const T, OutputControl: u32, Mask: u32, Format: ?[*:0]const u8, Args: ?*i8) HRESULT { return @as(*const IDebugControl3.VTable, @ptrCast(self.vtable)).ControlledOutputVaList(@as(*const IDebugControl3, @ptrCast(self)), OutputControl, Mask, Format, Args); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl3_OutputPrompt(self: *const T, OutputControl: u32, Format: ?[*:0]const u8) HRESULT { return @as(*const IDebugControl3.VTable, @ptrCast(self.vtable)).OutputPrompt(@as(*const IDebugControl3, @ptrCast(self)), OutputControl, Format); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl3_OutputPromptVaList(self: *const T, OutputControl: u32, Format: ?[*:0]const u8, Args: ?*i8) HRESULT { return @as(*const IDebugControl3.VTable, @ptrCast(self.vtable)).OutputPromptVaList(@as(*const IDebugControl3, @ptrCast(self)), OutputControl, Format, Args); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl3_GetPromptText(self: *const T, Buffer: ?[*:0]u8, BufferSize: u32, TextSize: ?*u32) HRESULT { return @as(*const IDebugControl3.VTable, @ptrCast(self.vtable)).GetPromptText(@as(*const IDebugControl3, @ptrCast(self)), Buffer, BufferSize, TextSize); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl3_OutputCurrentState(self: *const T, OutputControl: u32, Flags: u32) HRESULT { return @as(*const IDebugControl3.VTable, @ptrCast(self.vtable)).OutputCurrentState(@as(*const IDebugControl3, @ptrCast(self)), OutputControl, Flags); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl3_OutputVersionInformation(self: *const T, OutputControl: u32) HRESULT { return @as(*const IDebugControl3.VTable, @ptrCast(self.vtable)).OutputVersionInformation(@as(*const IDebugControl3, @ptrCast(self)), OutputControl); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl3_GetNotifyEventHandle(self: *const T, Handle: ?*u64) HRESULT { return @as(*const IDebugControl3.VTable, @ptrCast(self.vtable)).GetNotifyEventHandle(@as(*const IDebugControl3, @ptrCast(self)), Handle); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl3_SetNotifyEventHandle(self: *const T, Handle: u64) HRESULT { return @as(*const IDebugControl3.VTable, @ptrCast(self.vtable)).SetNotifyEventHandle(@as(*const IDebugControl3, @ptrCast(self)), Handle); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl3_Assemble(self: *const T, Offset: u64, Instr: ?[*:0]const u8, EndOffset: ?*u64) HRESULT { return @as(*const IDebugControl3.VTable, @ptrCast(self.vtable)).Assemble(@as(*const IDebugControl3, @ptrCast(self)), Offset, Instr, EndOffset); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl3_Disassemble(self: *const T, Offset: u64, Flags: u32, Buffer: ?[*:0]u8, BufferSize: u32, DisassemblySize: ?*u32, EndOffset: ?*u64) HRESULT { return @as(*const IDebugControl3.VTable, @ptrCast(self.vtable)).Disassemble(@as(*const IDebugControl3, @ptrCast(self)), Offset, Flags, Buffer, BufferSize, DisassemblySize, EndOffset); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl3_GetDisassembleEffectiveOffset(self: *const T, Offset: ?*u64) HRESULT { return @as(*const IDebugControl3.VTable, @ptrCast(self.vtable)).GetDisassembleEffectiveOffset(@as(*const IDebugControl3, @ptrCast(self)), Offset); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl3_OutputDisassembly(self: *const T, OutputControl: u32, Offset: u64, Flags: u32, EndOffset: ?*u64) HRESULT { return @as(*const IDebugControl3.VTable, @ptrCast(self.vtable)).OutputDisassembly(@as(*const IDebugControl3, @ptrCast(self)), OutputControl, Offset, Flags, EndOffset); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl3_OutputDisassemblyLines(self: *const T, OutputControl: u32, PreviousLines: u32, TotalLines: u32, Offset: u64, Flags: u32, OffsetLine: ?*u32, StartOffset: ?*u64, EndOffset: ?*u64, LineOffsets: ?[*]u64) HRESULT { return @as(*const IDebugControl3.VTable, @ptrCast(self.vtable)).OutputDisassemblyLines(@as(*const IDebugControl3, @ptrCast(self)), OutputControl, PreviousLines, TotalLines, Offset, Flags, OffsetLine, StartOffset, EndOffset, LineOffsets); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl3_GetNearInstruction(self: *const T, Offset: u64, Delta: i32, NearOffset: ?*u64) HRESULT { return @as(*const IDebugControl3.VTable, @ptrCast(self.vtable)).GetNearInstruction(@as(*const IDebugControl3, @ptrCast(self)), Offset, Delta, NearOffset); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl3_GetStackTrace(self: *const T, FrameOffset: u64, StackOffset: u64, InstructionOffset: u64, Frames: [*]DEBUG_STACK_FRAME, FramesSize: u32, FramesFilled: ?*u32) HRESULT { return @as(*const IDebugControl3.VTable, @ptrCast(self.vtable)).GetStackTrace(@as(*const IDebugControl3, @ptrCast(self)), FrameOffset, StackOffset, InstructionOffset, Frames, FramesSize, FramesFilled); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl3_GetReturnOffset(self: *const T, Offset: ?*u64) HRESULT { return @as(*const IDebugControl3.VTable, @ptrCast(self.vtable)).GetReturnOffset(@as(*const IDebugControl3, @ptrCast(self)), Offset); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl3_OutputStackTrace(self: *const T, OutputControl: u32, Frames: ?[*]DEBUG_STACK_FRAME, FramesSize: u32, Flags: u32) HRESULT { return @as(*const IDebugControl3.VTable, @ptrCast(self.vtable)).OutputStackTrace(@as(*const IDebugControl3, @ptrCast(self)), OutputControl, Frames, FramesSize, Flags); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl3_GetDebuggeeType(self: *const T, Class: ?*u32, Qualifier: ?*u32) HRESULT { return @as(*const IDebugControl3.VTable, @ptrCast(self.vtable)).GetDebuggeeType(@as(*const IDebugControl3, @ptrCast(self)), Class, Qualifier); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl3_GetActualProcessorType(self: *const T, Type: ?*u32) HRESULT { return @as(*const IDebugControl3.VTable, @ptrCast(self.vtable)).GetActualProcessorType(@as(*const IDebugControl3, @ptrCast(self)), Type); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl3_GetExecutingProcessorType(self: *const T, Type: ?*u32) HRESULT { return @as(*const IDebugControl3.VTable, @ptrCast(self.vtable)).GetExecutingProcessorType(@as(*const IDebugControl3, @ptrCast(self)), Type); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl3_GetNumberPossibleExecutingProcessorTypes(self: *const T, Number: ?*u32) HRESULT { return @as(*const IDebugControl3.VTable, @ptrCast(self.vtable)).GetNumberPossibleExecutingProcessorTypes(@as(*const IDebugControl3, @ptrCast(self)), Number); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl3_GetPossibleExecutingProcessorTypes(self: *const T, Start: u32, Count: u32, Types: [*]u32) HRESULT { return @as(*const IDebugControl3.VTable, @ptrCast(self.vtable)).GetPossibleExecutingProcessorTypes(@as(*const IDebugControl3, @ptrCast(self)), Start, Count, Types); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl3_GetNumberProcessors(self: *const T, Number: ?*u32) HRESULT { return @as(*const IDebugControl3.VTable, @ptrCast(self.vtable)).GetNumberProcessors(@as(*const IDebugControl3, @ptrCast(self)), Number); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl3_GetSystemVersion(self: *const T, PlatformId: ?*u32, Major: ?*u32, Minor: ?*u32, ServicePackString: ?[*:0]u8, ServicePackStringSize: u32, ServicePackStringUsed: ?*u32, ServicePackNumber: ?*u32, BuildString: ?[*:0]u8, BuildStringSize: u32, BuildStringUsed: ?*u32) HRESULT { return @as(*const IDebugControl3.VTable, @ptrCast(self.vtable)).GetSystemVersion(@as(*const IDebugControl3, @ptrCast(self)), PlatformId, Major, Minor, ServicePackString, ServicePackStringSize, ServicePackStringUsed, ServicePackNumber, BuildString, BuildStringSize, BuildStringUsed); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl3_GetPageSize(self: *const T, Size: ?*u32) HRESULT { return @as(*const IDebugControl3.VTable, @ptrCast(self.vtable)).GetPageSize(@as(*const IDebugControl3, @ptrCast(self)), Size); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl3_IsPointer64Bit(self: *const T) HRESULT { return @as(*const IDebugControl3.VTable, @ptrCast(self.vtable)).IsPointer64Bit(@as(*const IDebugControl3, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl3_ReadBugCheckData(self: *const T, Code: ?*u32, Arg1: ?*u64, Arg2: ?*u64, Arg3: ?*u64, Arg4: ?*u64) HRESULT { return @as(*const IDebugControl3.VTable, @ptrCast(self.vtable)).ReadBugCheckData(@as(*const IDebugControl3, @ptrCast(self)), Code, Arg1, Arg2, Arg3, Arg4); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl3_GetNumberSupportedProcessorTypes(self: *const T, Number: ?*u32) HRESULT { return @as(*const IDebugControl3.VTable, @ptrCast(self.vtable)).GetNumberSupportedProcessorTypes(@as(*const IDebugControl3, @ptrCast(self)), Number); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl3_GetSupportedProcessorTypes(self: *const T, Start: u32, Count: u32, Types: [*]u32) HRESULT { return @as(*const IDebugControl3.VTable, @ptrCast(self.vtable)).GetSupportedProcessorTypes(@as(*const IDebugControl3, @ptrCast(self)), Start, Count, Types); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl3_GetProcessorTypeNames(self: *const T, Type: u32, FullNameBuffer: ?[*:0]u8, FullNameBufferSize: u32, FullNameSize: ?*u32, AbbrevNameBuffer: ?[*:0]u8, AbbrevNameBufferSize: u32, AbbrevNameSize: ?*u32) HRESULT { return @as(*const IDebugControl3.VTable, @ptrCast(self.vtable)).GetProcessorTypeNames(@as(*const IDebugControl3, @ptrCast(self)), Type, FullNameBuffer, FullNameBufferSize, FullNameSize, AbbrevNameBuffer, AbbrevNameBufferSize, AbbrevNameSize); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl3_GetEffectiveProcessorType(self: *const T, Type: ?*u32) HRESULT { return @as(*const IDebugControl3.VTable, @ptrCast(self.vtable)).GetEffectiveProcessorType(@as(*const IDebugControl3, @ptrCast(self)), Type); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl3_SetEffectiveProcessorType(self: *const T, Type: u32) HRESULT { return @as(*const IDebugControl3.VTable, @ptrCast(self.vtable)).SetEffectiveProcessorType(@as(*const IDebugControl3, @ptrCast(self)), Type); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl3_GetExecutionStatus(self: *const T, Status: ?*u32) HRESULT { return @as(*const IDebugControl3.VTable, @ptrCast(self.vtable)).GetExecutionStatus(@as(*const IDebugControl3, @ptrCast(self)), Status); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl3_SetExecutionStatus(self: *const T, Status: u32) HRESULT { return @as(*const IDebugControl3.VTable, @ptrCast(self.vtable)).SetExecutionStatus(@as(*const IDebugControl3, @ptrCast(self)), Status); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl3_GetCodeLevel(self: *const T, Level: ?*u32) HRESULT { return @as(*const IDebugControl3.VTable, @ptrCast(self.vtable)).GetCodeLevel(@as(*const IDebugControl3, @ptrCast(self)), Level); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl3_SetCodeLevel(self: *const T, Level: u32) HRESULT { return @as(*const IDebugControl3.VTable, @ptrCast(self.vtable)).SetCodeLevel(@as(*const IDebugControl3, @ptrCast(self)), Level); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl3_GetEngineOptions(self: *const T, Options: ?*u32) HRESULT { return @as(*const IDebugControl3.VTable, @ptrCast(self.vtable)).GetEngineOptions(@as(*const IDebugControl3, @ptrCast(self)), Options); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl3_AddEngineOptions(self: *const T, Options: u32) HRESULT { return @as(*const IDebugControl3.VTable, @ptrCast(self.vtable)).AddEngineOptions(@as(*const IDebugControl3, @ptrCast(self)), Options); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl3_RemoveEngineOptions(self: *const T, Options: u32) HRESULT { return @as(*const IDebugControl3.VTable, @ptrCast(self.vtable)).RemoveEngineOptions(@as(*const IDebugControl3, @ptrCast(self)), Options); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl3_SetEngineOptions(self: *const T, Options: u32) HRESULT { return @as(*const IDebugControl3.VTable, @ptrCast(self.vtable)).SetEngineOptions(@as(*const IDebugControl3, @ptrCast(self)), Options); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl3_GetSystemErrorControl(self: *const T, OutputLevel: ?*u32, BreakLevel: ?*u32) HRESULT { return @as(*const IDebugControl3.VTable, @ptrCast(self.vtable)).GetSystemErrorControl(@as(*const IDebugControl3, @ptrCast(self)), OutputLevel, BreakLevel); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl3_SetSystemErrorControl(self: *const T, OutputLevel: u32, BreakLevel: u32) HRESULT { return @as(*const IDebugControl3.VTable, @ptrCast(self.vtable)).SetSystemErrorControl(@as(*const IDebugControl3, @ptrCast(self)), OutputLevel, BreakLevel); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl3_GetTextMacro(self: *const T, Slot: u32, Buffer: ?[*:0]u8, BufferSize: u32, MacroSize: ?*u32) HRESULT { return @as(*const IDebugControl3.VTable, @ptrCast(self.vtable)).GetTextMacro(@as(*const IDebugControl3, @ptrCast(self)), Slot, Buffer, BufferSize, MacroSize); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl3_SetTextMacro(self: *const T, Slot: u32, Macro: ?[*:0]const u8) HRESULT { return @as(*const IDebugControl3.VTable, @ptrCast(self.vtable)).SetTextMacro(@as(*const IDebugControl3, @ptrCast(self)), Slot, Macro); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl3_GetRadix(self: *const T, Radix: ?*u32) HRESULT { return @as(*const IDebugControl3.VTable, @ptrCast(self.vtable)).GetRadix(@as(*const IDebugControl3, @ptrCast(self)), Radix); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl3_SetRadix(self: *const T, Radix: u32) HRESULT { return @as(*const IDebugControl3.VTable, @ptrCast(self.vtable)).SetRadix(@as(*const IDebugControl3, @ptrCast(self)), Radix); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl3_Evaluate(self: *const T, Expression: ?[*:0]const u8, DesiredType: u32, Value: ?*DEBUG_VALUE, RemainderIndex: ?*u32) HRESULT { return @as(*const IDebugControl3.VTable, @ptrCast(self.vtable)).Evaluate(@as(*const IDebugControl3, @ptrCast(self)), Expression, DesiredType, Value, RemainderIndex); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl3_CoerceValue(self: *const T, In: ?*DEBUG_VALUE, OutType: u32, Out: ?*DEBUG_VALUE) HRESULT { return @as(*const IDebugControl3.VTable, @ptrCast(self.vtable)).CoerceValue(@as(*const IDebugControl3, @ptrCast(self)), In, OutType, Out); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl3_CoerceValues(self: *const T, Count: u32, In: [*]DEBUG_VALUE, OutTypes: [*]u32, Out: [*]DEBUG_VALUE) HRESULT { return @as(*const IDebugControl3.VTable, @ptrCast(self.vtable)).CoerceValues(@as(*const IDebugControl3, @ptrCast(self)), Count, In, OutTypes, Out); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl3_Execute(self: *const T, OutputControl: u32, Command: ?[*:0]const u8, Flags: u32) HRESULT { return @as(*const IDebugControl3.VTable, @ptrCast(self.vtable)).Execute(@as(*const IDebugControl3, @ptrCast(self)), OutputControl, Command, Flags); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl3_ExecuteCommandFile(self: *const T, OutputControl: u32, CommandFile: ?[*:0]const u8, Flags: u32) HRESULT { return @as(*const IDebugControl3.VTable, @ptrCast(self.vtable)).ExecuteCommandFile(@as(*const IDebugControl3, @ptrCast(self)), OutputControl, CommandFile, Flags); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl3_GetNumberBreakpoints(self: *const T, Number: ?*u32) HRESULT { return @as(*const IDebugControl3.VTable, @ptrCast(self.vtable)).GetNumberBreakpoints(@as(*const IDebugControl3, @ptrCast(self)), Number); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl3_GetBreakpointByIndex(self: *const T, Index: u32, Bp: ?*?*IDebugBreakpoint) HRESULT { return @as(*const IDebugControl3.VTable, @ptrCast(self.vtable)).GetBreakpointByIndex(@as(*const IDebugControl3, @ptrCast(self)), Index, Bp); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl3_GetBreakpointById(self: *const T, Id: u32, Bp: ?*?*IDebugBreakpoint) HRESULT { return @as(*const IDebugControl3.VTable, @ptrCast(self.vtable)).GetBreakpointById(@as(*const IDebugControl3, @ptrCast(self)), Id, Bp); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl3_GetBreakpointParameters(self: *const T, Count: u32, Ids: ?[*]u32, Start: u32, Params: [*]DEBUG_BREAKPOINT_PARAMETERS) HRESULT { return @as(*const IDebugControl3.VTable, @ptrCast(self.vtable)).GetBreakpointParameters(@as(*const IDebugControl3, @ptrCast(self)), Count, Ids, Start, Params); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl3_AddBreakpoint(self: *const T, Type: u32, DesiredId: u32, Bp: ?*?*IDebugBreakpoint) HRESULT { return @as(*const IDebugControl3.VTable, @ptrCast(self.vtable)).AddBreakpoint(@as(*const IDebugControl3, @ptrCast(self)), Type, DesiredId, Bp); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl3_RemoveBreakpoint(self: *const T, Bp: ?*IDebugBreakpoint) HRESULT { return @as(*const IDebugControl3.VTable, @ptrCast(self.vtable)).RemoveBreakpoint(@as(*const IDebugControl3, @ptrCast(self)), Bp); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl3_AddExtension(self: *const T, Path: ?[*:0]const u8, Flags: u32, Handle: ?*u64) HRESULT { return @as(*const IDebugControl3.VTable, @ptrCast(self.vtable)).AddExtension(@as(*const IDebugControl3, @ptrCast(self)), Path, Flags, Handle); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl3_RemoveExtension(self: *const T, Handle: u64) HRESULT { return @as(*const IDebugControl3.VTable, @ptrCast(self.vtable)).RemoveExtension(@as(*const IDebugControl3, @ptrCast(self)), Handle); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl3_GetExtensionByPath(self: *const T, Path: ?[*:0]const u8, Handle: ?*u64) HRESULT { return @as(*const IDebugControl3.VTable, @ptrCast(self.vtable)).GetExtensionByPath(@as(*const IDebugControl3, @ptrCast(self)), Path, Handle); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl3_CallExtension(self: *const T, Handle: u64, Function: ?[*:0]const u8, Arguments: ?[*:0]const u8) HRESULT { return @as(*const IDebugControl3.VTable, @ptrCast(self.vtable)).CallExtension(@as(*const IDebugControl3, @ptrCast(self)), Handle, Function, Arguments); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl3_GetExtensionFunction(self: *const T, Handle: u64, FuncName: ?[*:0]const u8, Function: ?*?FARPROC) HRESULT { return @as(*const IDebugControl3.VTable, @ptrCast(self.vtable)).GetExtensionFunction(@as(*const IDebugControl3, @ptrCast(self)), Handle, FuncName, Function); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl3_GetWindbgExtensionApis32(self: *const T, Api: ?*WINDBG_EXTENSION_APIS32) HRESULT { return @as(*const IDebugControl3.VTable, @ptrCast(self.vtable)).GetWindbgExtensionApis32(@as(*const IDebugControl3, @ptrCast(self)), Api); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl3_GetWindbgExtensionApis64(self: *const T, Api: ?*WINDBG_EXTENSION_APIS64) HRESULT { return @as(*const IDebugControl3.VTable, @ptrCast(self.vtable)).GetWindbgExtensionApis64(@as(*const IDebugControl3, @ptrCast(self)), Api); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl3_GetNumberEventFilters(self: *const T, SpecificEvents: ?*u32, SpecificExceptions: ?*u32, ArbitraryExceptions: ?*u32) HRESULT { return @as(*const IDebugControl3.VTable, @ptrCast(self.vtable)).GetNumberEventFilters(@as(*const IDebugControl3, @ptrCast(self)), SpecificEvents, SpecificExceptions, ArbitraryExceptions); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl3_GetEventFilterText(self: *const T, Index: u32, Buffer: ?[*:0]u8, BufferSize: u32, TextSize: ?*u32) HRESULT { return @as(*const IDebugControl3.VTable, @ptrCast(self.vtable)).GetEventFilterText(@as(*const IDebugControl3, @ptrCast(self)), Index, Buffer, BufferSize, TextSize); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl3_GetEventFilterCommand(self: *const T, Index: u32, Buffer: ?[*:0]u8, BufferSize: u32, CommandSize: ?*u32) HRESULT { return @as(*const IDebugControl3.VTable, @ptrCast(self.vtable)).GetEventFilterCommand(@as(*const IDebugControl3, @ptrCast(self)), Index, Buffer, BufferSize, CommandSize); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl3_SetEventFilterCommand(self: *const T, Index: u32, Command: ?[*:0]const u8) HRESULT { return @as(*const IDebugControl3.VTable, @ptrCast(self.vtable)).SetEventFilterCommand(@as(*const IDebugControl3, @ptrCast(self)), Index, Command); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl3_GetSpecificFilterParameters(self: *const T, Start: u32, Count: u32, Params: [*]DEBUG_SPECIFIC_FILTER_PARAMETERS) HRESULT { return @as(*const IDebugControl3.VTable, @ptrCast(self.vtable)).GetSpecificFilterParameters(@as(*const IDebugControl3, @ptrCast(self)), Start, Count, Params); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl3_SetSpecificFilterParameters(self: *const T, Start: u32, Count: u32, Params: [*]DEBUG_SPECIFIC_FILTER_PARAMETERS) HRESULT { return @as(*const IDebugControl3.VTable, @ptrCast(self.vtable)).SetSpecificFilterParameters(@as(*const IDebugControl3, @ptrCast(self)), Start, Count, Params); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl3_GetSpecificFilterArgument(self: *const T, Index: u32, Buffer: ?[*:0]u8, BufferSize: u32, ArgumentSize: ?*u32) HRESULT { return @as(*const IDebugControl3.VTable, @ptrCast(self.vtable)).GetSpecificFilterArgument(@as(*const IDebugControl3, @ptrCast(self)), Index, Buffer, BufferSize, ArgumentSize); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl3_SetSpecificFilterArgument(self: *const T, Index: u32, Argument: ?[*:0]const u8) HRESULT { return @as(*const IDebugControl3.VTable, @ptrCast(self.vtable)).SetSpecificFilterArgument(@as(*const IDebugControl3, @ptrCast(self)), Index, Argument); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl3_GetExceptionFilterParameters(self: *const T, Count: u32, Codes: ?[*]u32, Start: u32, Params: [*]DEBUG_EXCEPTION_FILTER_PARAMETERS) HRESULT { return @as(*const IDebugControl3.VTable, @ptrCast(self.vtable)).GetExceptionFilterParameters(@as(*const IDebugControl3, @ptrCast(self)), Count, Codes, Start, Params); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl3_SetExceptionFilterParameters(self: *const T, Count: u32, Params: [*]DEBUG_EXCEPTION_FILTER_PARAMETERS) HRESULT { return @as(*const IDebugControl3.VTable, @ptrCast(self.vtable)).SetExceptionFilterParameters(@as(*const IDebugControl3, @ptrCast(self)), Count, Params); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl3_GetExceptionFilterSecondCommand(self: *const T, Index: u32, Buffer: ?[*:0]u8, BufferSize: u32, CommandSize: ?*u32) HRESULT { return @as(*const IDebugControl3.VTable, @ptrCast(self.vtable)).GetExceptionFilterSecondCommand(@as(*const IDebugControl3, @ptrCast(self)), Index, Buffer, BufferSize, CommandSize); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl3_SetExceptionFilterSecondCommand(self: *const T, Index: u32, Command: ?[*:0]const u8) HRESULT { return @as(*const IDebugControl3.VTable, @ptrCast(self.vtable)).SetExceptionFilterSecondCommand(@as(*const IDebugControl3, @ptrCast(self)), Index, Command); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl3_WaitForEvent(self: *const T, Flags: u32, Timeout: u32) HRESULT { return @as(*const IDebugControl3.VTable, @ptrCast(self.vtable)).WaitForEvent(@as(*const IDebugControl3, @ptrCast(self)), Flags, Timeout); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl3_GetLastEventInformation(self: *const T, Type: ?*u32, ProcessId: ?*u32, ThreadId: ?*u32, ExtraInformation: ?*anyopaque, ExtraInformationSize: u32, ExtraInformationUsed: ?*u32, Description: ?[*:0]u8, DescriptionSize: u32, DescriptionUsed: ?*u32) HRESULT { return @as(*const IDebugControl3.VTable, @ptrCast(self.vtable)).GetLastEventInformation(@as(*const IDebugControl3, @ptrCast(self)), Type, ProcessId, ThreadId, ExtraInformation, ExtraInformationSize, ExtraInformationUsed, Description, DescriptionSize, DescriptionUsed); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl3_GetCurrentTimeDate(self: *const T, TimeDate: ?*u32) HRESULT { return @as(*const IDebugControl3.VTable, @ptrCast(self.vtable)).GetCurrentTimeDate(@as(*const IDebugControl3, @ptrCast(self)), TimeDate); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl3_GetCurrentSystemUpTime(self: *const T, UpTime: ?*u32) HRESULT { return @as(*const IDebugControl3.VTable, @ptrCast(self.vtable)).GetCurrentSystemUpTime(@as(*const IDebugControl3, @ptrCast(self)), UpTime); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl3_GetDumpFormatFlags(self: *const T, FormatFlags: ?*u32) HRESULT { return @as(*const IDebugControl3.VTable, @ptrCast(self.vtable)).GetDumpFormatFlags(@as(*const IDebugControl3, @ptrCast(self)), FormatFlags); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl3_GetNumberTextReplacements(self: *const T, NumRepl: ?*u32) HRESULT { return @as(*const IDebugControl3.VTable, @ptrCast(self.vtable)).GetNumberTextReplacements(@as(*const IDebugControl3, @ptrCast(self)), NumRepl); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl3_GetTextReplacement(self: *const T, SrcText: ?[*:0]const u8, Index: u32, SrcBuffer: ?[*:0]u8, SrcBufferSize: u32, SrcSize: ?*u32, DstBuffer: ?[*:0]u8, DstBufferSize: u32, DstSize: ?*u32) HRESULT { return @as(*const IDebugControl3.VTable, @ptrCast(self.vtable)).GetTextReplacement(@as(*const IDebugControl3, @ptrCast(self)), SrcText, Index, SrcBuffer, SrcBufferSize, SrcSize, DstBuffer, DstBufferSize, DstSize); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl3_SetTextReplacement(self: *const T, SrcText: ?[*:0]const u8, DstText: ?[*:0]const u8) HRESULT { return @as(*const IDebugControl3.VTable, @ptrCast(self.vtable)).SetTextReplacement(@as(*const IDebugControl3, @ptrCast(self)), SrcText, DstText); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl3_RemoveTextReplacements(self: *const T) HRESULT { return @as(*const IDebugControl3.VTable, @ptrCast(self.vtable)).RemoveTextReplacements(@as(*const IDebugControl3, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl3_OutputTextReplacements(self: *const T, OutputControl: u32, Flags: u32) HRESULT { return @as(*const IDebugControl3.VTable, @ptrCast(self.vtable)).OutputTextReplacements(@as(*const IDebugControl3, @ptrCast(self)), OutputControl, Flags); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl3_GetAssemblyOptions(self: *const T, Options: ?*u32) HRESULT { return @as(*const IDebugControl3.VTable, @ptrCast(self.vtable)).GetAssemblyOptions(@as(*const IDebugControl3, @ptrCast(self)), Options); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl3_AddAssemblyOptions(self: *const T, Options: u32) HRESULT { return @as(*const IDebugControl3.VTable, @ptrCast(self.vtable)).AddAssemblyOptions(@as(*const IDebugControl3, @ptrCast(self)), Options); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl3_RemoveAssemblyOptions(self: *const T, Options: u32) HRESULT { return @as(*const IDebugControl3.VTable, @ptrCast(self.vtable)).RemoveAssemblyOptions(@as(*const IDebugControl3, @ptrCast(self)), Options); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl3_SetAssemblyOptions(self: *const T, Options: u32) HRESULT { return @as(*const IDebugControl3.VTable, @ptrCast(self.vtable)).SetAssemblyOptions(@as(*const IDebugControl3, @ptrCast(self)), Options); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl3_GetExpressionSyntax(self: *const T, Flags: ?*u32) HRESULT { return @as(*const IDebugControl3.VTable, @ptrCast(self.vtable)).GetExpressionSyntax(@as(*const IDebugControl3, @ptrCast(self)), Flags); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl3_SetExpressionSyntax(self: *const T, Flags: u32) HRESULT { return @as(*const IDebugControl3.VTable, @ptrCast(self.vtable)).SetExpressionSyntax(@as(*const IDebugControl3, @ptrCast(self)), Flags); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl3_SetExpressionSyntaxByName(self: *const T, AbbrevName: ?[*:0]const u8) HRESULT { return @as(*const IDebugControl3.VTable, @ptrCast(self.vtable)).SetExpressionSyntaxByName(@as(*const IDebugControl3, @ptrCast(self)), AbbrevName); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl3_GetNumberExpressionSyntaxes(self: *const T, Number: ?*u32) HRESULT { return @as(*const IDebugControl3.VTable, @ptrCast(self.vtable)).GetNumberExpressionSyntaxes(@as(*const IDebugControl3, @ptrCast(self)), Number); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl3_GetExpressionSyntaxNames(self: *const T, Index: u32, FullNameBuffer: ?[*:0]u8, FullNameBufferSize: u32, FullNameSize: ?*u32, AbbrevNameBuffer: ?[*:0]u8, AbbrevNameBufferSize: u32, AbbrevNameSize: ?*u32) HRESULT { return @as(*const IDebugControl3.VTable, @ptrCast(self.vtable)).GetExpressionSyntaxNames(@as(*const IDebugControl3, @ptrCast(self)), Index, FullNameBuffer, FullNameBufferSize, FullNameSize, AbbrevNameBuffer, AbbrevNameBufferSize, AbbrevNameSize); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl3_GetNumberEvents(self: *const T, Events: ?*u32) HRESULT { return @as(*const IDebugControl3.VTable, @ptrCast(self.vtable)).GetNumberEvents(@as(*const IDebugControl3, @ptrCast(self)), Events); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl3_GetEventIndexDescription(self: *const T, Index: u32, Which: u32, Buffer: ?PSTR, BufferSize: u32, DescSize: ?*u32) HRESULT { return @as(*const IDebugControl3.VTable, @ptrCast(self.vtable)).GetEventIndexDescription(@as(*const IDebugControl3, @ptrCast(self)), Index, Which, Buffer, BufferSize, DescSize); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl3_GetCurrentEventIndex(self: *const T, Index: ?*u32) HRESULT { return @as(*const IDebugControl3.VTable, @ptrCast(self.vtable)).GetCurrentEventIndex(@as(*const IDebugControl3, @ptrCast(self)), Index); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl3_SetNextEventIndex(self: *const T, Relation: u32, Value: u32, NextIndex: ?*u32) HRESULT { return @as(*const IDebugControl3.VTable, @ptrCast(self.vtable)).SetNextEventIndex(@as(*const IDebugControl3, @ptrCast(self)), Relation, Value, NextIndex); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IDebugControl4_Value = Guid.initString("94e60ce9-9b41-4b19-9fc0-6d9eb35272b3"); pub const IID_IDebugControl4 = &IID_IDebugControl4_Value; pub const IDebugControl4 = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, GetInterrupt: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl4, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl4, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetInterrupt: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl4, Flags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl4, Flags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetInterruptTimeout: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl4, Seconds: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl4, Seconds: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetInterruptTimeout: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl4, Seconds: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl4, Seconds: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetLogFile: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl4, Buffer: ?[*:0]u8, BufferSize: u32, FileSize: ?*u32, Append: ?*BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl4, Buffer: ?[*:0]u8, BufferSize: u32, FileSize: ?*u32, Append: ?*BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, OpenLogFile: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl4, File: ?[*:0]const u8, Append: BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl4, File: ?[*:0]const u8, Append: BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, CloseLogFile: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl4, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl4, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetLogMask: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl4, Mask: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl4, Mask: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetLogMask: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl4, Mask: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl4, Mask: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Input: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl4, Buffer: [*:0]u8, BufferSize: u32, InputSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl4, Buffer: [*:0]u8, BufferSize: u32, InputSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, ReturnInput: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl4, Buffer: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl4, Buffer: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Output: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl4, Mask: u32, Format: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl4, Mask: u32, Format: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, OutputVaList: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl4, Mask: u32, Format: ?[*:0]const u8, Args: ?*i8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl4, Mask: u32, Format: ?[*:0]const u8, Args: ?*i8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, ControlledOutput: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl4, OutputControl: u32, Mask: u32, Format: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl4, OutputControl: u32, Mask: u32, Format: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, ControlledOutputVaList: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl4, OutputControl: u32, Mask: u32, Format: ?[*:0]const u8, Args: ?*i8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl4, OutputControl: u32, Mask: u32, Format: ?[*:0]const u8, Args: ?*i8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, OutputPrompt: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl4, OutputControl: u32, Format: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl4, OutputControl: u32, Format: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, OutputPromptVaList: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl4, OutputControl: u32, Format: ?[*:0]const u8, Args: ?*i8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl4, OutputControl: u32, Format: ?[*:0]const u8, Args: ?*i8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetPromptText: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl4, Buffer: ?[*:0]u8, BufferSize: u32, TextSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl4, Buffer: ?[*:0]u8, BufferSize: u32, TextSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, OutputCurrentState: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl4, OutputControl: u32, Flags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl4, OutputControl: u32, Flags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, OutputVersionInformation: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl4, OutputControl: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl4, OutputControl: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetNotifyEventHandle: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl4, Handle: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl4, Handle: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetNotifyEventHandle: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl4, Handle: u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl4, Handle: u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Assemble: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl4, Offset: u64, Instr: ?[*:0]const u8, EndOffset: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl4, Offset: u64, Instr: ?[*:0]const u8, EndOffset: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Disassemble: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl4, Offset: u64, Flags: u32, Buffer: ?[*:0]u8, BufferSize: u32, DisassemblySize: ?*u32, EndOffset: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl4, Offset: u64, Flags: u32, Buffer: ?[*:0]u8, BufferSize: u32, DisassemblySize: ?*u32, EndOffset: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetDisassembleEffectiveOffset: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl4, Offset: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl4, Offset: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, OutputDisassembly: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl4, OutputControl: u32, Offset: u64, Flags: u32, EndOffset: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl4, OutputControl: u32, Offset: u64, Flags: u32, EndOffset: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, OutputDisassemblyLines: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl4, OutputControl: u32, PreviousLines: u32, TotalLines: u32, Offset: u64, Flags: u32, OffsetLine: ?*u32, StartOffset: ?*u64, EndOffset: ?*u64, LineOffsets: ?[*]u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl4, OutputControl: u32, PreviousLines: u32, TotalLines: u32, Offset: u64, Flags: u32, OffsetLine: ?*u32, StartOffset: ?*u64, EndOffset: ?*u64, LineOffsets: ?[*]u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetNearInstruction: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl4, Offset: u64, Delta: i32, NearOffset: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl4, Offset: u64, Delta: i32, NearOffset: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetStackTrace: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl4, FrameOffset: u64, StackOffset: u64, InstructionOffset: u64, Frames: [*]DEBUG_STACK_FRAME, FramesSize: u32, FramesFilled: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl4, FrameOffset: u64, StackOffset: u64, InstructionOffset: u64, Frames: [*]DEBUG_STACK_FRAME, FramesSize: u32, FramesFilled: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetReturnOffset: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl4, Offset: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl4, Offset: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, OutputStackTrace: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl4, OutputControl: u32, Frames: ?[*]DEBUG_STACK_FRAME, FramesSize: u32, Flags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl4, OutputControl: u32, Frames: ?[*]DEBUG_STACK_FRAME, FramesSize: u32, Flags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetDebuggeeType: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl4, Class: ?*u32, Qualifier: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl4, Class: ?*u32, Qualifier: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetActualProcessorType: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl4, Type: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl4, Type: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetExecutingProcessorType: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl4, Type: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl4, Type: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetNumberPossibleExecutingProcessorTypes: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl4, Number: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl4, Number: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetPossibleExecutingProcessorTypes: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl4, Start: u32, Count: u32, Types: [*]u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl4, Start: u32, Count: u32, Types: [*]u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetNumberProcessors: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl4, Number: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl4, Number: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetSystemVersion: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl4, PlatformId: ?*u32, Major: ?*u32, Minor: ?*u32, ServicePackString: ?[*:0]u8, ServicePackStringSize: u32, ServicePackStringUsed: ?*u32, ServicePackNumber: ?*u32, BuildString: ?[*:0]u8, BuildStringSize: u32, BuildStringUsed: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl4, PlatformId: ?*u32, Major: ?*u32, Minor: ?*u32, ServicePackString: ?[*:0]u8, ServicePackStringSize: u32, ServicePackStringUsed: ?*u32, ServicePackNumber: ?*u32, BuildString: ?[*:0]u8, BuildStringSize: u32, BuildStringUsed: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetPageSize: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl4, Size: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl4, Size: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, IsPointer64Bit: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl4, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl4, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, ReadBugCheckData: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl4, Code: ?*u32, Arg1: ?*u64, Arg2: ?*u64, Arg3: ?*u64, Arg4: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl4, Code: ?*u32, Arg1: ?*u64, Arg2: ?*u64, Arg3: ?*u64, Arg4: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetNumberSupportedProcessorTypes: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl4, Number: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl4, Number: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetSupportedProcessorTypes: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl4, Start: u32, Count: u32, Types: [*]u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl4, Start: u32, Count: u32, Types: [*]u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetProcessorTypeNames: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl4, Type: u32, FullNameBuffer: ?[*:0]u8, FullNameBufferSize: u32, FullNameSize: ?*u32, AbbrevNameBuffer: ?[*:0]u8, AbbrevNameBufferSize: u32, AbbrevNameSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl4, Type: u32, FullNameBuffer: ?[*:0]u8, FullNameBufferSize: u32, FullNameSize: ?*u32, AbbrevNameBuffer: ?[*:0]u8, AbbrevNameBufferSize: u32, AbbrevNameSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetEffectiveProcessorType: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl4, Type: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl4, Type: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetEffectiveProcessorType: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl4, Type: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl4, Type: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetExecutionStatus: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl4, Status: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl4, Status: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetExecutionStatus: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl4, Status: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl4, Status: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetCodeLevel: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl4, Level: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl4, Level: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetCodeLevel: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl4, Level: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl4, Level: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetEngineOptions: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl4, Options: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl4, Options: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, AddEngineOptions: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl4, Options: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl4, Options: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, RemoveEngineOptions: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl4, Options: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl4, Options: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetEngineOptions: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl4, Options: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl4, Options: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetSystemErrorControl: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl4, OutputLevel: ?*u32, BreakLevel: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl4, OutputLevel: ?*u32, BreakLevel: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetSystemErrorControl: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl4, OutputLevel: u32, BreakLevel: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl4, OutputLevel: u32, BreakLevel: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetTextMacro: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl4, Slot: u32, Buffer: ?[*:0]u8, BufferSize: u32, MacroSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl4, Slot: u32, Buffer: ?[*:0]u8, BufferSize: u32, MacroSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetTextMacro: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl4, Slot: u32, Macro: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl4, Slot: u32, Macro: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetRadix: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl4, Radix: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl4, Radix: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetRadix: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl4, Radix: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl4, Radix: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Evaluate: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl4, Expression: ?[*:0]const u8, DesiredType: u32, Value: ?*DEBUG_VALUE, RemainderIndex: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl4, Expression: ?[*:0]const u8, DesiredType: u32, Value: ?*DEBUG_VALUE, RemainderIndex: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, CoerceValue: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl4, In: ?*DEBUG_VALUE, OutType: u32, Out: ?*DEBUG_VALUE, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl4, In: ?*DEBUG_VALUE, OutType: u32, Out: ?*DEBUG_VALUE, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, CoerceValues: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl4, Count: u32, In: [*]DEBUG_VALUE, OutTypes: [*]u32, Out: [*]DEBUG_VALUE, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl4, Count: u32, In: [*]DEBUG_VALUE, OutTypes: [*]u32, Out: [*]DEBUG_VALUE, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Execute: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl4, OutputControl: u32, Command: ?[*:0]const u8, Flags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl4, OutputControl: u32, Command: ?[*:0]const u8, Flags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, ExecuteCommandFile: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl4, OutputControl: u32, CommandFile: ?[*:0]const u8, Flags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl4, OutputControl: u32, CommandFile: ?[*:0]const u8, Flags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetNumberBreakpoints: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl4, Number: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl4, Number: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetBreakpointByIndex: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl4, Index: u32, Bp: ?*?*IDebugBreakpoint, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl4, Index: u32, Bp: ?*?*IDebugBreakpoint, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetBreakpointById: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl4, Id: u32, Bp: ?*?*IDebugBreakpoint, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl4, Id: u32, Bp: ?*?*IDebugBreakpoint, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetBreakpointParameters: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl4, Count: u32, Ids: ?[*]u32, Start: u32, Params: [*]DEBUG_BREAKPOINT_PARAMETERS, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl4, Count: u32, Ids: ?[*]u32, Start: u32, Params: [*]DEBUG_BREAKPOINT_PARAMETERS, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, AddBreakpoint: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl4, Type: u32, DesiredId: u32, Bp: ?*?*IDebugBreakpoint, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl4, Type: u32, DesiredId: u32, Bp: ?*?*IDebugBreakpoint, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, RemoveBreakpoint: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl4, Bp: ?*IDebugBreakpoint, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl4, Bp: ?*IDebugBreakpoint, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, AddExtension: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl4, Path: ?[*:0]const u8, Flags: u32, Handle: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl4, Path: ?[*:0]const u8, Flags: u32, Handle: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, RemoveExtension: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl4, Handle: u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl4, Handle: u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetExtensionByPath: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl4, Path: ?[*:0]const u8, Handle: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl4, Path: ?[*:0]const u8, Handle: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, CallExtension: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl4, Handle: u64, Function: ?[*:0]const u8, Arguments: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl4, Handle: u64, Function: ?[*:0]const u8, Arguments: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetExtensionFunction: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl4, Handle: u64, FuncName: ?[*:0]const u8, Function: ?*?FARPROC, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl4, Handle: u64, FuncName: ?[*:0]const u8, Function: ?*?FARPROC, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetWindbgExtensionApis32: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl4, Api: ?*WINDBG_EXTENSION_APIS32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl4, Api: ?*WINDBG_EXTENSION_APIS32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetWindbgExtensionApis64: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl4, Api: ?*WINDBG_EXTENSION_APIS64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl4, Api: ?*WINDBG_EXTENSION_APIS64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetNumberEventFilters: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl4, SpecificEvents: ?*u32, SpecificExceptions: ?*u32, ArbitraryExceptions: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl4, SpecificEvents: ?*u32, SpecificExceptions: ?*u32, ArbitraryExceptions: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetEventFilterText: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl4, Index: u32, Buffer: ?[*:0]u8, BufferSize: u32, TextSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl4, Index: u32, Buffer: ?[*:0]u8, BufferSize: u32, TextSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetEventFilterCommand: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl4, Index: u32, Buffer: ?[*:0]u8, BufferSize: u32, CommandSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl4, Index: u32, Buffer: ?[*:0]u8, BufferSize: u32, CommandSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetEventFilterCommand: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl4, Index: u32, Command: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl4, Index: u32, Command: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetSpecificFilterParameters: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl4, Start: u32, Count: u32, Params: [*]DEBUG_SPECIFIC_FILTER_PARAMETERS, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl4, Start: u32, Count: u32, Params: [*]DEBUG_SPECIFIC_FILTER_PARAMETERS, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetSpecificFilterParameters: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl4, Start: u32, Count: u32, Params: [*]DEBUG_SPECIFIC_FILTER_PARAMETERS, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl4, Start: u32, Count: u32, Params: [*]DEBUG_SPECIFIC_FILTER_PARAMETERS, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetSpecificFilterArgument: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl4, Index: u32, Buffer: ?[*:0]u8, BufferSize: u32, ArgumentSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl4, Index: u32, Buffer: ?[*:0]u8, BufferSize: u32, ArgumentSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetSpecificFilterArgument: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl4, Index: u32, Argument: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl4, Index: u32, Argument: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetExceptionFilterParameters: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl4, Count: u32, Codes: ?[*]u32, Start: u32, Params: [*]DEBUG_EXCEPTION_FILTER_PARAMETERS, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl4, Count: u32, Codes: ?[*]u32, Start: u32, Params: [*]DEBUG_EXCEPTION_FILTER_PARAMETERS, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetExceptionFilterParameters: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl4, Count: u32, Params: [*]DEBUG_EXCEPTION_FILTER_PARAMETERS, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl4, Count: u32, Params: [*]DEBUG_EXCEPTION_FILTER_PARAMETERS, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetExceptionFilterSecondCommand: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl4, Index: u32, Buffer: ?[*:0]u8, BufferSize: u32, CommandSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl4, Index: u32, Buffer: ?[*:0]u8, BufferSize: u32, CommandSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetExceptionFilterSecondCommand: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl4, Index: u32, Command: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl4, Index: u32, Command: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, WaitForEvent: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl4, Flags: u32, Timeout: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl4, Flags: u32, Timeout: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetLastEventInformation: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl4, Type: ?*u32, ProcessId: ?*u32, ThreadId: ?*u32, // TODO: what to do with BytesParamIndex 4? ExtraInformation: ?*anyopaque, ExtraInformationSize: u32, ExtraInformationUsed: ?*u32, Description: ?[*:0]u8, DescriptionSize: u32, DescriptionUsed: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl4, Type: ?*u32, ProcessId: ?*u32, ThreadId: ?*u32, // TODO: what to do with BytesParamIndex 4? ExtraInformation: ?*anyopaque, ExtraInformationSize: u32, ExtraInformationUsed: ?*u32, Description: ?[*:0]u8, DescriptionSize: u32, DescriptionUsed: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetCurrentTimeDate: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl4, TimeDate: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl4, TimeDate: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetCurrentSystemUpTime: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl4, UpTime: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl4, UpTime: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetDumpFormatFlags: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl4, FormatFlags: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl4, FormatFlags: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetNumberTextReplacements: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl4, NumRepl: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl4, NumRepl: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetTextReplacement: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl4, SrcText: ?[*:0]const u8, Index: u32, SrcBuffer: ?[*:0]u8, SrcBufferSize: u32, SrcSize: ?*u32, DstBuffer: ?[*:0]u8, DstBufferSize: u32, DstSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl4, SrcText: ?[*:0]const u8, Index: u32, SrcBuffer: ?[*:0]u8, SrcBufferSize: u32, SrcSize: ?*u32, DstBuffer: ?[*:0]u8, DstBufferSize: u32, DstSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetTextReplacement: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl4, SrcText: ?[*:0]const u8, DstText: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl4, SrcText: ?[*:0]const u8, DstText: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, RemoveTextReplacements: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl4, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl4, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, OutputTextReplacements: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl4, OutputControl: u32, Flags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl4, OutputControl: u32, Flags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetAssemblyOptions: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl4, Options: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl4, Options: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, AddAssemblyOptions: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl4, Options: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl4, Options: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, RemoveAssemblyOptions: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl4, Options: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl4, Options: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetAssemblyOptions: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl4, Options: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl4, Options: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetExpressionSyntax: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl4, Flags: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl4, Flags: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetExpressionSyntax: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl4, Flags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl4, Flags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetExpressionSyntaxByName: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl4, AbbrevName: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl4, AbbrevName: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetNumberExpressionSyntaxes: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl4, Number: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl4, Number: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetExpressionSyntaxNames: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl4, Index: u32, FullNameBuffer: ?[*:0]u8, FullNameBufferSize: u32, FullNameSize: ?*u32, AbbrevNameBuffer: ?[*:0]u8, AbbrevNameBufferSize: u32, AbbrevNameSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl4, Index: u32, FullNameBuffer: ?[*:0]u8, FullNameBufferSize: u32, FullNameSize: ?*u32, AbbrevNameBuffer: ?[*:0]u8, AbbrevNameBufferSize: u32, AbbrevNameSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetNumberEvents: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl4, Events: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl4, Events: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetEventIndexDescription: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl4, Index: u32, Which: u32, Buffer: ?PSTR, BufferSize: u32, DescSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl4, Index: u32, Which: u32, Buffer: ?PSTR, BufferSize: u32, DescSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetCurrentEventIndex: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl4, Index: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl4, Index: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetNextEventIndex: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl4, Relation: u32, Value: u32, NextIndex: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl4, Relation: u32, Value: u32, NextIndex: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetLogFileWide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl4, Buffer: ?[*:0]u16, BufferSize: u32, FileSize: ?*u32, Append: ?*BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl4, Buffer: ?[*:0]u16, BufferSize: u32, FileSize: ?*u32, Append: ?*BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, OpenLogFileWide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl4, File: ?[*:0]const u16, Append: BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl4, File: ?[*:0]const u16, Append: BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, InputWide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl4, Buffer: [*:0]u16, BufferSize: u32, InputSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl4, Buffer: [*:0]u16, BufferSize: u32, InputSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, ReturnInputWide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl4, Buffer: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl4, Buffer: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, OutputWide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl4, Mask: u32, Format: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl4, Mask: u32, Format: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, OutputVaListWide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl4, Mask: u32, Format: ?[*:0]const u16, Args: ?*i8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl4, Mask: u32, Format: ?[*:0]const u16, Args: ?*i8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, ControlledOutputWide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl4, OutputControl: u32, Mask: u32, Format: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl4, OutputControl: u32, Mask: u32, Format: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, ControlledOutputVaListWide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl4, OutputControl: u32, Mask: u32, Format: ?[*:0]const u16, Args: ?*i8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl4, OutputControl: u32, Mask: u32, Format: ?[*:0]const u16, Args: ?*i8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, OutputPromptWide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl4, OutputControl: u32, Format: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl4, OutputControl: u32, Format: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, OutputPromptVaListWide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl4, OutputControl: u32, Format: ?[*:0]const u16, Args: ?*i8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl4, OutputControl: u32, Format: ?[*:0]const u16, Args: ?*i8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetPromptTextWide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl4, Buffer: ?[*:0]u16, BufferSize: u32, TextSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl4, Buffer: ?[*:0]u16, BufferSize: u32, TextSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, AssembleWide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl4, Offset: u64, Instr: ?[*:0]const u16, EndOffset: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl4, Offset: u64, Instr: ?[*:0]const u16, EndOffset: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, DisassembleWide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl4, Offset: u64, Flags: u32, Buffer: ?[*:0]u16, BufferSize: u32, DisassemblySize: ?*u32, EndOffset: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl4, Offset: u64, Flags: u32, Buffer: ?[*:0]u16, BufferSize: u32, DisassemblySize: ?*u32, EndOffset: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetProcessorTypeNamesWide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl4, Type: u32, FullNameBuffer: ?[*:0]u16, FullNameBufferSize: u32, FullNameSize: ?*u32, AbbrevNameBuffer: ?[*:0]u16, AbbrevNameBufferSize: u32, AbbrevNameSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl4, Type: u32, FullNameBuffer: ?[*:0]u16, FullNameBufferSize: u32, FullNameSize: ?*u32, AbbrevNameBuffer: ?[*:0]u16, AbbrevNameBufferSize: u32, AbbrevNameSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetTextMacroWide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl4, Slot: u32, Buffer: ?[*:0]u16, BufferSize: u32, MacroSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl4, Slot: u32, Buffer: ?[*:0]u16, BufferSize: u32, MacroSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetTextMacroWide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl4, Slot: u32, Macro: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl4, Slot: u32, Macro: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, EvaluateWide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl4, Expression: ?[*:0]const u16, DesiredType: u32, Value: ?*DEBUG_VALUE, RemainderIndex: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl4, Expression: ?[*:0]const u16, DesiredType: u32, Value: ?*DEBUG_VALUE, RemainderIndex: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, ExecuteWide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl4, OutputControl: u32, Command: ?[*:0]const u16, Flags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl4, OutputControl: u32, Command: ?[*:0]const u16, Flags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, ExecuteCommandFileWide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl4, OutputControl: u32, CommandFile: ?[*:0]const u16, Flags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl4, OutputControl: u32, CommandFile: ?[*:0]const u16, Flags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetBreakpointByIndex2: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl4, Index: u32, Bp: ?*?*IDebugBreakpoint2, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl4, Index: u32, Bp: ?*?*IDebugBreakpoint2, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetBreakpointById2: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl4, Id: u32, Bp: ?*?*IDebugBreakpoint2, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl4, Id: u32, Bp: ?*?*IDebugBreakpoint2, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, AddBreakpoint2: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl4, Type: u32, DesiredId: u32, Bp: ?*?*IDebugBreakpoint2, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl4, Type: u32, DesiredId: u32, Bp: ?*?*IDebugBreakpoint2, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, RemoveBreakpoint2: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl4, Bp: ?*IDebugBreakpoint2, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl4, Bp: ?*IDebugBreakpoint2, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, AddExtensionWide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl4, Path: ?[*:0]const u16, Flags: u32, Handle: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl4, Path: ?[*:0]const u16, Flags: u32, Handle: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetExtensionByPathWide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl4, Path: ?[*:0]const u16, Handle: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl4, Path: ?[*:0]const u16, Handle: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, CallExtensionWide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl4, Handle: u64, Function: ?[*:0]const u16, Arguments: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl4, Handle: u64, Function: ?[*:0]const u16, Arguments: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetExtensionFunctionWide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl4, Handle: u64, FuncName: ?[*:0]const u16, Function: ?*?FARPROC, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl4, Handle: u64, FuncName: ?[*:0]const u16, Function: ?*?FARPROC, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetEventFilterTextWide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl4, Index: u32, Buffer: ?[*:0]u16, BufferSize: u32, TextSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl4, Index: u32, Buffer: ?[*:0]u16, BufferSize: u32, TextSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetEventFilterCommandWide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl4, Index: u32, Buffer: ?[*:0]u16, BufferSize: u32, CommandSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl4, Index: u32, Buffer: ?[*:0]u16, BufferSize: u32, CommandSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetEventFilterCommandWide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl4, Index: u32, Command: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl4, Index: u32, Command: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetSpecificFilterArgumentWide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl4, Index: u32, Buffer: ?[*:0]u16, BufferSize: u32, ArgumentSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl4, Index: u32, Buffer: ?[*:0]u16, BufferSize: u32, ArgumentSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetSpecificFilterArgumentWide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl4, Index: u32, Argument: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl4, Index: u32, Argument: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetExceptionFilterSecondCommandWide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl4, Index: u32, Buffer: ?[*:0]u16, BufferSize: u32, CommandSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl4, Index: u32, Buffer: ?[*:0]u16, BufferSize: u32, CommandSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetExceptionFilterSecondCommandWide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl4, Index: u32, Command: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl4, Index: u32, Command: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetLastEventInformationWide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl4, Type: ?*u32, ProcessId: ?*u32, ThreadId: ?*u32, // TODO: what to do with BytesParamIndex 4? ExtraInformation: ?*anyopaque, ExtraInformationSize: u32, ExtraInformationUsed: ?*u32, Description: ?[*:0]u16, DescriptionSize: u32, DescriptionUsed: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl4, Type: ?*u32, ProcessId: ?*u32, ThreadId: ?*u32, // TODO: what to do with BytesParamIndex 4? ExtraInformation: ?*anyopaque, ExtraInformationSize: u32, ExtraInformationUsed: ?*u32, Description: ?[*:0]u16, DescriptionSize: u32, DescriptionUsed: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetTextReplacementWide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl4, SrcText: ?[*:0]const u16, Index: u32, SrcBuffer: ?[*:0]u16, SrcBufferSize: u32, SrcSize: ?*u32, DstBuffer: ?[*:0]u16, DstBufferSize: u32, DstSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl4, SrcText: ?[*:0]const u16, Index: u32, SrcBuffer: ?[*:0]u16, SrcBufferSize: u32, SrcSize: ?*u32, DstBuffer: ?[*:0]u16, DstBufferSize: u32, DstSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetTextReplacementWide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl4, SrcText: ?[*:0]const u16, DstText: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl4, SrcText: ?[*:0]const u16, DstText: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetExpressionSyntaxByNameWide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl4, AbbrevName: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl4, AbbrevName: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetExpressionSyntaxNamesWide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl4, Index: u32, FullNameBuffer: ?[*:0]u16, FullNameBufferSize: u32, FullNameSize: ?*u32, AbbrevNameBuffer: ?[*:0]u16, AbbrevNameBufferSize: u32, AbbrevNameSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl4, Index: u32, FullNameBuffer: ?[*:0]u16, FullNameBufferSize: u32, FullNameSize: ?*u32, AbbrevNameBuffer: ?[*:0]u16, AbbrevNameBufferSize: u32, AbbrevNameSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetEventIndexDescriptionWide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl4, Index: u32, Which: u32, Buffer: ?PWSTR, BufferSize: u32, DescSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl4, Index: u32, Which: u32, Buffer: ?PWSTR, BufferSize: u32, DescSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetLogFile2: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl4, Buffer: ?[*:0]u8, BufferSize: u32, FileSize: ?*u32, Flags: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl4, Buffer: ?[*:0]u8, BufferSize: u32, FileSize: ?*u32, Flags: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, OpenLogFile2: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl4, File: ?[*:0]const u8, Flags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl4, File: ?[*:0]const u8, Flags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetLogFile2Wide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl4, Buffer: ?[*:0]u16, BufferSize: u32, FileSize: ?*u32, Flags: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl4, Buffer: ?[*:0]u16, BufferSize: u32, FileSize: ?*u32, Flags: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, OpenLogFile2Wide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl4, File: ?[*:0]const u16, Flags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl4, File: ?[*:0]const u16, Flags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetSystemVersionValues: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl4, PlatformId: ?*u32, Win32Major: ?*u32, Win32Minor: ?*u32, KdMajor: ?*u32, KdMinor: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl4, PlatformId: ?*u32, Win32Major: ?*u32, Win32Minor: ?*u32, KdMajor: ?*u32, KdMinor: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetSystemVersionString: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl4, Which: u32, Buffer: ?[*:0]u8, BufferSize: u32, StringSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl4, Which: u32, Buffer: ?[*:0]u8, BufferSize: u32, StringSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetSystemVersionStringWide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl4, Which: u32, Buffer: ?[*:0]u16, BufferSize: u32, StringSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl4, Which: u32, Buffer: ?[*:0]u16, BufferSize: u32, StringSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetContextStackTrace: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl4, // TODO: what to do with BytesParamIndex 1? StartContext: ?*anyopaque, StartContextSize: u32, Frames: ?[*]DEBUG_STACK_FRAME, FramesSize: u32, // TODO: what to do with BytesParamIndex 5? FrameContexts: ?*anyopaque, FrameContextsSize: u32, FrameContextsEntrySize: u32, FramesFilled: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl4, // TODO: what to do with BytesParamIndex 1? StartContext: ?*anyopaque, StartContextSize: u32, Frames: ?[*]DEBUG_STACK_FRAME, FramesSize: u32, // TODO: what to do with BytesParamIndex 5? FrameContexts: ?*anyopaque, FrameContextsSize: u32, FrameContextsEntrySize: u32, FramesFilled: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, OutputContextStackTrace: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl4, OutputControl: u32, Frames: [*]DEBUG_STACK_FRAME, FramesSize: u32, // TODO: what to do with BytesParamIndex 4? FrameContexts: ?*anyopaque, FrameContextsSize: u32, FrameContextsEntrySize: u32, Flags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl4, OutputControl: u32, Frames: [*]DEBUG_STACK_FRAME, FramesSize: u32, // TODO: what to do with BytesParamIndex 4? FrameContexts: ?*anyopaque, FrameContextsSize: u32, FrameContextsEntrySize: u32, Flags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetStoredEventInformation: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl4, Type: ?*u32, ProcessId: ?*u32, ThreadId: ?*u32, // TODO: what to do with BytesParamIndex 4? Context: ?*anyopaque, ContextSize: u32, ContextUsed: ?*u32, // TODO: what to do with BytesParamIndex 7? ExtraInformation: ?*anyopaque, ExtraInformationSize: u32, ExtraInformationUsed: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl4, Type: ?*u32, ProcessId: ?*u32, ThreadId: ?*u32, // TODO: what to do with BytesParamIndex 4? Context: ?*anyopaque, ContextSize: u32, ContextUsed: ?*u32, // TODO: what to do with BytesParamIndex 7? ExtraInformation: ?*anyopaque, ExtraInformationSize: u32, ExtraInformationUsed: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetManagedStatus: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl4, Flags: ?*u32, WhichString: u32, String: ?[*:0]u8, StringSize: u32, StringNeeded: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl4, Flags: ?*u32, WhichString: u32, String: ?[*:0]u8, StringSize: u32, StringNeeded: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetManagedStatusWide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl4, Flags: ?*u32, WhichString: u32, String: ?[*:0]u16, StringSize: u32, StringNeeded: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl4, Flags: ?*u32, WhichString: u32, String: ?[*:0]u16, StringSize: u32, StringNeeded: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, ResetManagedStatus: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl4, Flags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl4, Flags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl4_GetInterrupt(self: *const T) HRESULT { return @as(*const IDebugControl4.VTable, @ptrCast(self.vtable)).GetInterrupt(@as(*const IDebugControl4, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl4_SetInterrupt(self: *const T, Flags: u32) HRESULT { return @as(*const IDebugControl4.VTable, @ptrCast(self.vtable)).SetInterrupt(@as(*const IDebugControl4, @ptrCast(self)), Flags); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl4_GetInterruptTimeout(self: *const T, Seconds: ?*u32) HRESULT { return @as(*const IDebugControl4.VTable, @ptrCast(self.vtable)).GetInterruptTimeout(@as(*const IDebugControl4, @ptrCast(self)), Seconds); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl4_SetInterruptTimeout(self: *const T, Seconds: u32) HRESULT { return @as(*const IDebugControl4.VTable, @ptrCast(self.vtable)).SetInterruptTimeout(@as(*const IDebugControl4, @ptrCast(self)), Seconds); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl4_GetLogFile(self: *const T, Buffer: ?[*:0]u8, BufferSize: u32, FileSize: ?*u32, Append: ?*BOOL) HRESULT { return @as(*const IDebugControl4.VTable, @ptrCast(self.vtable)).GetLogFile(@as(*const IDebugControl4, @ptrCast(self)), Buffer, BufferSize, FileSize, Append); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl4_OpenLogFile(self: *const T, File: ?[*:0]const u8, Append: BOOL) HRESULT { return @as(*const IDebugControl4.VTable, @ptrCast(self.vtable)).OpenLogFile(@as(*const IDebugControl4, @ptrCast(self)), File, Append); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl4_CloseLogFile(self: *const T) HRESULT { return @as(*const IDebugControl4.VTable, @ptrCast(self.vtable)).CloseLogFile(@as(*const IDebugControl4, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl4_GetLogMask(self: *const T, Mask: ?*u32) HRESULT { return @as(*const IDebugControl4.VTable, @ptrCast(self.vtable)).GetLogMask(@as(*const IDebugControl4, @ptrCast(self)), Mask); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl4_SetLogMask(self: *const T, Mask: u32) HRESULT { return @as(*const IDebugControl4.VTable, @ptrCast(self.vtable)).SetLogMask(@as(*const IDebugControl4, @ptrCast(self)), Mask); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl4_Input(self: *const T, Buffer: [*:0]u8, BufferSize: u32, InputSize: ?*u32) HRESULT { return @as(*const IDebugControl4.VTable, @ptrCast(self.vtable)).Input(@as(*const IDebugControl4, @ptrCast(self)), Buffer, BufferSize, InputSize); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl4_ReturnInput(self: *const T, Buffer: ?[*:0]const u8) HRESULT { return @as(*const IDebugControl4.VTable, @ptrCast(self.vtable)).ReturnInput(@as(*const IDebugControl4, @ptrCast(self)), Buffer); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl4_Output(self: *const T, Mask: u32, Format: ?[*:0]const u8) HRESULT { return @as(*const IDebugControl4.VTable, @ptrCast(self.vtable)).Output(@as(*const IDebugControl4, @ptrCast(self)), Mask, Format); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl4_OutputVaList(self: *const T, Mask: u32, Format: ?[*:0]const u8, Args: ?*i8) HRESULT { return @as(*const IDebugControl4.VTable, @ptrCast(self.vtable)).OutputVaList(@as(*const IDebugControl4, @ptrCast(self)), Mask, Format, Args); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl4_ControlledOutput(self: *const T, OutputControl: u32, Mask: u32, Format: ?[*:0]const u8) HRESULT { return @as(*const IDebugControl4.VTable, @ptrCast(self.vtable)).ControlledOutput(@as(*const IDebugControl4, @ptrCast(self)), OutputControl, Mask, Format); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl4_ControlledOutputVaList(self: *const T, OutputControl: u32, Mask: u32, Format: ?[*:0]const u8, Args: ?*i8) HRESULT { return @as(*const IDebugControl4.VTable, @ptrCast(self.vtable)).ControlledOutputVaList(@as(*const IDebugControl4, @ptrCast(self)), OutputControl, Mask, Format, Args); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl4_OutputPrompt(self: *const T, OutputControl: u32, Format: ?[*:0]const u8) HRESULT { return @as(*const IDebugControl4.VTable, @ptrCast(self.vtable)).OutputPrompt(@as(*const IDebugControl4, @ptrCast(self)), OutputControl, Format); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl4_OutputPromptVaList(self: *const T, OutputControl: u32, Format: ?[*:0]const u8, Args: ?*i8) HRESULT { return @as(*const IDebugControl4.VTable, @ptrCast(self.vtable)).OutputPromptVaList(@as(*const IDebugControl4, @ptrCast(self)), OutputControl, Format, Args); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl4_GetPromptText(self: *const T, Buffer: ?[*:0]u8, BufferSize: u32, TextSize: ?*u32) HRESULT { return @as(*const IDebugControl4.VTable, @ptrCast(self.vtable)).GetPromptText(@as(*const IDebugControl4, @ptrCast(self)), Buffer, BufferSize, TextSize); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl4_OutputCurrentState(self: *const T, OutputControl: u32, Flags: u32) HRESULT { return @as(*const IDebugControl4.VTable, @ptrCast(self.vtable)).OutputCurrentState(@as(*const IDebugControl4, @ptrCast(self)), OutputControl, Flags); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl4_OutputVersionInformation(self: *const T, OutputControl: u32) HRESULT { return @as(*const IDebugControl4.VTable, @ptrCast(self.vtable)).OutputVersionInformation(@as(*const IDebugControl4, @ptrCast(self)), OutputControl); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl4_GetNotifyEventHandle(self: *const T, Handle: ?*u64) HRESULT { return @as(*const IDebugControl4.VTable, @ptrCast(self.vtable)).GetNotifyEventHandle(@as(*const IDebugControl4, @ptrCast(self)), Handle); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl4_SetNotifyEventHandle(self: *const T, Handle: u64) HRESULT { return @as(*const IDebugControl4.VTable, @ptrCast(self.vtable)).SetNotifyEventHandle(@as(*const IDebugControl4, @ptrCast(self)), Handle); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl4_Assemble(self: *const T, Offset: u64, Instr: ?[*:0]const u8, EndOffset: ?*u64) HRESULT { return @as(*const IDebugControl4.VTable, @ptrCast(self.vtable)).Assemble(@as(*const IDebugControl4, @ptrCast(self)), Offset, Instr, EndOffset); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl4_Disassemble(self: *const T, Offset: u64, Flags: u32, Buffer: ?[*:0]u8, BufferSize: u32, DisassemblySize: ?*u32, EndOffset: ?*u64) HRESULT { return @as(*const IDebugControl4.VTable, @ptrCast(self.vtable)).Disassemble(@as(*const IDebugControl4, @ptrCast(self)), Offset, Flags, Buffer, BufferSize, DisassemblySize, EndOffset); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl4_GetDisassembleEffectiveOffset(self: *const T, Offset: ?*u64) HRESULT { return @as(*const IDebugControl4.VTable, @ptrCast(self.vtable)).GetDisassembleEffectiveOffset(@as(*const IDebugControl4, @ptrCast(self)), Offset); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl4_OutputDisassembly(self: *const T, OutputControl: u32, Offset: u64, Flags: u32, EndOffset: ?*u64) HRESULT { return @as(*const IDebugControl4.VTable, @ptrCast(self.vtable)).OutputDisassembly(@as(*const IDebugControl4, @ptrCast(self)), OutputControl, Offset, Flags, EndOffset); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl4_OutputDisassemblyLines(self: *const T, OutputControl: u32, PreviousLines: u32, TotalLines: u32, Offset: u64, Flags: u32, OffsetLine: ?*u32, StartOffset: ?*u64, EndOffset: ?*u64, LineOffsets: ?[*]u64) HRESULT { return @as(*const IDebugControl4.VTable, @ptrCast(self.vtable)).OutputDisassemblyLines(@as(*const IDebugControl4, @ptrCast(self)), OutputControl, PreviousLines, TotalLines, Offset, Flags, OffsetLine, StartOffset, EndOffset, LineOffsets); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl4_GetNearInstruction(self: *const T, Offset: u64, Delta: i32, NearOffset: ?*u64) HRESULT { return @as(*const IDebugControl4.VTable, @ptrCast(self.vtable)).GetNearInstruction(@as(*const IDebugControl4, @ptrCast(self)), Offset, Delta, NearOffset); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl4_GetStackTrace(self: *const T, FrameOffset: u64, StackOffset: u64, InstructionOffset: u64, Frames: [*]DEBUG_STACK_FRAME, FramesSize: u32, FramesFilled: ?*u32) HRESULT { return @as(*const IDebugControl4.VTable, @ptrCast(self.vtable)).GetStackTrace(@as(*const IDebugControl4, @ptrCast(self)), FrameOffset, StackOffset, InstructionOffset, Frames, FramesSize, FramesFilled); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl4_GetReturnOffset(self: *const T, Offset: ?*u64) HRESULT { return @as(*const IDebugControl4.VTable, @ptrCast(self.vtable)).GetReturnOffset(@as(*const IDebugControl4, @ptrCast(self)), Offset); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl4_OutputStackTrace(self: *const T, OutputControl: u32, Frames: ?[*]DEBUG_STACK_FRAME, FramesSize: u32, Flags: u32) HRESULT { return @as(*const IDebugControl4.VTable, @ptrCast(self.vtable)).OutputStackTrace(@as(*const IDebugControl4, @ptrCast(self)), OutputControl, Frames, FramesSize, Flags); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl4_GetDebuggeeType(self: *const T, Class: ?*u32, Qualifier: ?*u32) HRESULT { return @as(*const IDebugControl4.VTable, @ptrCast(self.vtable)).GetDebuggeeType(@as(*const IDebugControl4, @ptrCast(self)), Class, Qualifier); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl4_GetActualProcessorType(self: *const T, Type: ?*u32) HRESULT { return @as(*const IDebugControl4.VTable, @ptrCast(self.vtable)).GetActualProcessorType(@as(*const IDebugControl4, @ptrCast(self)), Type); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl4_GetExecutingProcessorType(self: *const T, Type: ?*u32) HRESULT { return @as(*const IDebugControl4.VTable, @ptrCast(self.vtable)).GetExecutingProcessorType(@as(*const IDebugControl4, @ptrCast(self)), Type); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl4_GetNumberPossibleExecutingProcessorTypes(self: *const T, Number: ?*u32) HRESULT { return @as(*const IDebugControl4.VTable, @ptrCast(self.vtable)).GetNumberPossibleExecutingProcessorTypes(@as(*const IDebugControl4, @ptrCast(self)), Number); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl4_GetPossibleExecutingProcessorTypes(self: *const T, Start: u32, Count: u32, Types: [*]u32) HRESULT { return @as(*const IDebugControl4.VTable, @ptrCast(self.vtable)).GetPossibleExecutingProcessorTypes(@as(*const IDebugControl4, @ptrCast(self)), Start, Count, Types); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl4_GetNumberProcessors(self: *const T, Number: ?*u32) HRESULT { return @as(*const IDebugControl4.VTable, @ptrCast(self.vtable)).GetNumberProcessors(@as(*const IDebugControl4, @ptrCast(self)), Number); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl4_GetSystemVersion(self: *const T, PlatformId: ?*u32, Major: ?*u32, Minor: ?*u32, ServicePackString: ?[*:0]u8, ServicePackStringSize: u32, ServicePackStringUsed: ?*u32, ServicePackNumber: ?*u32, BuildString: ?[*:0]u8, BuildStringSize: u32, BuildStringUsed: ?*u32) HRESULT { return @as(*const IDebugControl4.VTable, @ptrCast(self.vtable)).GetSystemVersion(@as(*const IDebugControl4, @ptrCast(self)), PlatformId, Major, Minor, ServicePackString, ServicePackStringSize, ServicePackStringUsed, ServicePackNumber, BuildString, BuildStringSize, BuildStringUsed); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl4_GetPageSize(self: *const T, Size: ?*u32) HRESULT { return @as(*const IDebugControl4.VTable, @ptrCast(self.vtable)).GetPageSize(@as(*const IDebugControl4, @ptrCast(self)), Size); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl4_IsPointer64Bit(self: *const T) HRESULT { return @as(*const IDebugControl4.VTable, @ptrCast(self.vtable)).IsPointer64Bit(@as(*const IDebugControl4, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl4_ReadBugCheckData(self: *const T, Code: ?*u32, Arg1: ?*u64, Arg2: ?*u64, Arg3: ?*u64, Arg4: ?*u64) HRESULT { return @as(*const IDebugControl4.VTable, @ptrCast(self.vtable)).ReadBugCheckData(@as(*const IDebugControl4, @ptrCast(self)), Code, Arg1, Arg2, Arg3, Arg4); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl4_GetNumberSupportedProcessorTypes(self: *const T, Number: ?*u32) HRESULT { return @as(*const IDebugControl4.VTable, @ptrCast(self.vtable)).GetNumberSupportedProcessorTypes(@as(*const IDebugControl4, @ptrCast(self)), Number); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl4_GetSupportedProcessorTypes(self: *const T, Start: u32, Count: u32, Types: [*]u32) HRESULT { return @as(*const IDebugControl4.VTable, @ptrCast(self.vtable)).GetSupportedProcessorTypes(@as(*const IDebugControl4, @ptrCast(self)), Start, Count, Types); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl4_GetProcessorTypeNames(self: *const T, Type: u32, FullNameBuffer: ?[*:0]u8, FullNameBufferSize: u32, FullNameSize: ?*u32, AbbrevNameBuffer: ?[*:0]u8, AbbrevNameBufferSize: u32, AbbrevNameSize: ?*u32) HRESULT { return @as(*const IDebugControl4.VTable, @ptrCast(self.vtable)).GetProcessorTypeNames(@as(*const IDebugControl4, @ptrCast(self)), Type, FullNameBuffer, FullNameBufferSize, FullNameSize, AbbrevNameBuffer, AbbrevNameBufferSize, AbbrevNameSize); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl4_GetEffectiveProcessorType(self: *const T, Type: ?*u32) HRESULT { return @as(*const IDebugControl4.VTable, @ptrCast(self.vtable)).GetEffectiveProcessorType(@as(*const IDebugControl4, @ptrCast(self)), Type); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl4_SetEffectiveProcessorType(self: *const T, Type: u32) HRESULT { return @as(*const IDebugControl4.VTable, @ptrCast(self.vtable)).SetEffectiveProcessorType(@as(*const IDebugControl4, @ptrCast(self)), Type); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl4_GetExecutionStatus(self: *const T, Status: ?*u32) HRESULT { return @as(*const IDebugControl4.VTable, @ptrCast(self.vtable)).GetExecutionStatus(@as(*const IDebugControl4, @ptrCast(self)), Status); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl4_SetExecutionStatus(self: *const T, Status: u32) HRESULT { return @as(*const IDebugControl4.VTable, @ptrCast(self.vtable)).SetExecutionStatus(@as(*const IDebugControl4, @ptrCast(self)), Status); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl4_GetCodeLevel(self: *const T, Level: ?*u32) HRESULT { return @as(*const IDebugControl4.VTable, @ptrCast(self.vtable)).GetCodeLevel(@as(*const IDebugControl4, @ptrCast(self)), Level); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl4_SetCodeLevel(self: *const T, Level: u32) HRESULT { return @as(*const IDebugControl4.VTable, @ptrCast(self.vtable)).SetCodeLevel(@as(*const IDebugControl4, @ptrCast(self)), Level); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl4_GetEngineOptions(self: *const T, Options: ?*u32) HRESULT { return @as(*const IDebugControl4.VTable, @ptrCast(self.vtable)).GetEngineOptions(@as(*const IDebugControl4, @ptrCast(self)), Options); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl4_AddEngineOptions(self: *const T, Options: u32) HRESULT { return @as(*const IDebugControl4.VTable, @ptrCast(self.vtable)).AddEngineOptions(@as(*const IDebugControl4, @ptrCast(self)), Options); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl4_RemoveEngineOptions(self: *const T, Options: u32) HRESULT { return @as(*const IDebugControl4.VTable, @ptrCast(self.vtable)).RemoveEngineOptions(@as(*const IDebugControl4, @ptrCast(self)), Options); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl4_SetEngineOptions(self: *const T, Options: u32) HRESULT { return @as(*const IDebugControl4.VTable, @ptrCast(self.vtable)).SetEngineOptions(@as(*const IDebugControl4, @ptrCast(self)), Options); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl4_GetSystemErrorControl(self: *const T, OutputLevel: ?*u32, BreakLevel: ?*u32) HRESULT { return @as(*const IDebugControl4.VTable, @ptrCast(self.vtable)).GetSystemErrorControl(@as(*const IDebugControl4, @ptrCast(self)), OutputLevel, BreakLevel); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl4_SetSystemErrorControl(self: *const T, OutputLevel: u32, BreakLevel: u32) HRESULT { return @as(*const IDebugControl4.VTable, @ptrCast(self.vtable)).SetSystemErrorControl(@as(*const IDebugControl4, @ptrCast(self)), OutputLevel, BreakLevel); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl4_GetTextMacro(self: *const T, Slot: u32, Buffer: ?[*:0]u8, BufferSize: u32, MacroSize: ?*u32) HRESULT { return @as(*const IDebugControl4.VTable, @ptrCast(self.vtable)).GetTextMacro(@as(*const IDebugControl4, @ptrCast(self)), Slot, Buffer, BufferSize, MacroSize); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl4_SetTextMacro(self: *const T, Slot: u32, Macro: ?[*:0]const u8) HRESULT { return @as(*const IDebugControl4.VTable, @ptrCast(self.vtable)).SetTextMacro(@as(*const IDebugControl4, @ptrCast(self)), Slot, Macro); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl4_GetRadix(self: *const T, Radix: ?*u32) HRESULT { return @as(*const IDebugControl4.VTable, @ptrCast(self.vtable)).GetRadix(@as(*const IDebugControl4, @ptrCast(self)), Radix); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl4_SetRadix(self: *const T, Radix: u32) HRESULT { return @as(*const IDebugControl4.VTable, @ptrCast(self.vtable)).SetRadix(@as(*const IDebugControl4, @ptrCast(self)), Radix); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl4_Evaluate(self: *const T, Expression: ?[*:0]const u8, DesiredType: u32, Value: ?*DEBUG_VALUE, RemainderIndex: ?*u32) HRESULT { return @as(*const IDebugControl4.VTable, @ptrCast(self.vtable)).Evaluate(@as(*const IDebugControl4, @ptrCast(self)), Expression, DesiredType, Value, RemainderIndex); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl4_CoerceValue(self: *const T, In: ?*DEBUG_VALUE, OutType: u32, Out: ?*DEBUG_VALUE) HRESULT { return @as(*const IDebugControl4.VTable, @ptrCast(self.vtable)).CoerceValue(@as(*const IDebugControl4, @ptrCast(self)), In, OutType, Out); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl4_CoerceValues(self: *const T, Count: u32, In: [*]DEBUG_VALUE, OutTypes: [*]u32, Out: [*]DEBUG_VALUE) HRESULT { return @as(*const IDebugControl4.VTable, @ptrCast(self.vtable)).CoerceValues(@as(*const IDebugControl4, @ptrCast(self)), Count, In, OutTypes, Out); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl4_Execute(self: *const T, OutputControl: u32, Command: ?[*:0]const u8, Flags: u32) HRESULT { return @as(*const IDebugControl4.VTable, @ptrCast(self.vtable)).Execute(@as(*const IDebugControl4, @ptrCast(self)), OutputControl, Command, Flags); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl4_ExecuteCommandFile(self: *const T, OutputControl: u32, CommandFile: ?[*:0]const u8, Flags: u32) HRESULT { return @as(*const IDebugControl4.VTable, @ptrCast(self.vtable)).ExecuteCommandFile(@as(*const IDebugControl4, @ptrCast(self)), OutputControl, CommandFile, Flags); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl4_GetNumberBreakpoints(self: *const T, Number: ?*u32) HRESULT { return @as(*const IDebugControl4.VTable, @ptrCast(self.vtable)).GetNumberBreakpoints(@as(*const IDebugControl4, @ptrCast(self)), Number); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl4_GetBreakpointByIndex(self: *const T, Index: u32, Bp: ?*?*IDebugBreakpoint) HRESULT { return @as(*const IDebugControl4.VTable, @ptrCast(self.vtable)).GetBreakpointByIndex(@as(*const IDebugControl4, @ptrCast(self)), Index, Bp); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl4_GetBreakpointById(self: *const T, Id: u32, Bp: ?*?*IDebugBreakpoint) HRESULT { return @as(*const IDebugControl4.VTable, @ptrCast(self.vtable)).GetBreakpointById(@as(*const IDebugControl4, @ptrCast(self)), Id, Bp); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl4_GetBreakpointParameters(self: *const T, Count: u32, Ids: ?[*]u32, Start: u32, Params: [*]DEBUG_BREAKPOINT_PARAMETERS) HRESULT { return @as(*const IDebugControl4.VTable, @ptrCast(self.vtable)).GetBreakpointParameters(@as(*const IDebugControl4, @ptrCast(self)), Count, Ids, Start, Params); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl4_AddBreakpoint(self: *const T, Type: u32, DesiredId: u32, Bp: ?*?*IDebugBreakpoint) HRESULT { return @as(*const IDebugControl4.VTable, @ptrCast(self.vtable)).AddBreakpoint(@as(*const IDebugControl4, @ptrCast(self)), Type, DesiredId, Bp); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl4_RemoveBreakpoint(self: *const T, Bp: ?*IDebugBreakpoint) HRESULT { return @as(*const IDebugControl4.VTable, @ptrCast(self.vtable)).RemoveBreakpoint(@as(*const IDebugControl4, @ptrCast(self)), Bp); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl4_AddExtension(self: *const T, Path: ?[*:0]const u8, Flags: u32, Handle: ?*u64) HRESULT { return @as(*const IDebugControl4.VTable, @ptrCast(self.vtable)).AddExtension(@as(*const IDebugControl4, @ptrCast(self)), Path, Flags, Handle); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl4_RemoveExtension(self: *const T, Handle: u64) HRESULT { return @as(*const IDebugControl4.VTable, @ptrCast(self.vtable)).RemoveExtension(@as(*const IDebugControl4, @ptrCast(self)), Handle); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl4_GetExtensionByPath(self: *const T, Path: ?[*:0]const u8, Handle: ?*u64) HRESULT { return @as(*const IDebugControl4.VTable, @ptrCast(self.vtable)).GetExtensionByPath(@as(*const IDebugControl4, @ptrCast(self)), Path, Handle); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl4_CallExtension(self: *const T, Handle: u64, Function: ?[*:0]const u8, Arguments: ?[*:0]const u8) HRESULT { return @as(*const IDebugControl4.VTable, @ptrCast(self.vtable)).CallExtension(@as(*const IDebugControl4, @ptrCast(self)), Handle, Function, Arguments); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl4_GetExtensionFunction(self: *const T, Handle: u64, FuncName: ?[*:0]const u8, Function: ?*?FARPROC) HRESULT { return @as(*const IDebugControl4.VTable, @ptrCast(self.vtable)).GetExtensionFunction(@as(*const IDebugControl4, @ptrCast(self)), Handle, FuncName, Function); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl4_GetWindbgExtensionApis32(self: *const T, Api: ?*WINDBG_EXTENSION_APIS32) HRESULT { return @as(*const IDebugControl4.VTable, @ptrCast(self.vtable)).GetWindbgExtensionApis32(@as(*const IDebugControl4, @ptrCast(self)), Api); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl4_GetWindbgExtensionApis64(self: *const T, Api: ?*WINDBG_EXTENSION_APIS64) HRESULT { return @as(*const IDebugControl4.VTable, @ptrCast(self.vtable)).GetWindbgExtensionApis64(@as(*const IDebugControl4, @ptrCast(self)), Api); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl4_GetNumberEventFilters(self: *const T, SpecificEvents: ?*u32, SpecificExceptions: ?*u32, ArbitraryExceptions: ?*u32) HRESULT { return @as(*const IDebugControl4.VTable, @ptrCast(self.vtable)).GetNumberEventFilters(@as(*const IDebugControl4, @ptrCast(self)), SpecificEvents, SpecificExceptions, ArbitraryExceptions); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl4_GetEventFilterText(self: *const T, Index: u32, Buffer: ?[*:0]u8, BufferSize: u32, TextSize: ?*u32) HRESULT { return @as(*const IDebugControl4.VTable, @ptrCast(self.vtable)).GetEventFilterText(@as(*const IDebugControl4, @ptrCast(self)), Index, Buffer, BufferSize, TextSize); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl4_GetEventFilterCommand(self: *const T, Index: u32, Buffer: ?[*:0]u8, BufferSize: u32, CommandSize: ?*u32) HRESULT { return @as(*const IDebugControl4.VTable, @ptrCast(self.vtable)).GetEventFilterCommand(@as(*const IDebugControl4, @ptrCast(self)), Index, Buffer, BufferSize, CommandSize); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl4_SetEventFilterCommand(self: *const T, Index: u32, Command: ?[*:0]const u8) HRESULT { return @as(*const IDebugControl4.VTable, @ptrCast(self.vtable)).SetEventFilterCommand(@as(*const IDebugControl4, @ptrCast(self)), Index, Command); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl4_GetSpecificFilterParameters(self: *const T, Start: u32, Count: u32, Params: [*]DEBUG_SPECIFIC_FILTER_PARAMETERS) HRESULT { return @as(*const IDebugControl4.VTable, @ptrCast(self.vtable)).GetSpecificFilterParameters(@as(*const IDebugControl4, @ptrCast(self)), Start, Count, Params); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl4_SetSpecificFilterParameters(self: *const T, Start: u32, Count: u32, Params: [*]DEBUG_SPECIFIC_FILTER_PARAMETERS) HRESULT { return @as(*const IDebugControl4.VTable, @ptrCast(self.vtable)).SetSpecificFilterParameters(@as(*const IDebugControl4, @ptrCast(self)), Start, Count, Params); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl4_GetSpecificFilterArgument(self: *const T, Index: u32, Buffer: ?[*:0]u8, BufferSize: u32, ArgumentSize: ?*u32) HRESULT { return @as(*const IDebugControl4.VTable, @ptrCast(self.vtable)).GetSpecificFilterArgument(@as(*const IDebugControl4, @ptrCast(self)), Index, Buffer, BufferSize, ArgumentSize); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl4_SetSpecificFilterArgument(self: *const T, Index: u32, Argument: ?[*:0]const u8) HRESULT { return @as(*const IDebugControl4.VTable, @ptrCast(self.vtable)).SetSpecificFilterArgument(@as(*const IDebugControl4, @ptrCast(self)), Index, Argument); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl4_GetExceptionFilterParameters(self: *const T, Count: u32, Codes: ?[*]u32, Start: u32, Params: [*]DEBUG_EXCEPTION_FILTER_PARAMETERS) HRESULT { return @as(*const IDebugControl4.VTable, @ptrCast(self.vtable)).GetExceptionFilterParameters(@as(*const IDebugControl4, @ptrCast(self)), Count, Codes, Start, Params); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl4_SetExceptionFilterParameters(self: *const T, Count: u32, Params: [*]DEBUG_EXCEPTION_FILTER_PARAMETERS) HRESULT { return @as(*const IDebugControl4.VTable, @ptrCast(self.vtable)).SetExceptionFilterParameters(@as(*const IDebugControl4, @ptrCast(self)), Count, Params); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl4_GetExceptionFilterSecondCommand(self: *const T, Index: u32, Buffer: ?[*:0]u8, BufferSize: u32, CommandSize: ?*u32) HRESULT { return @as(*const IDebugControl4.VTable, @ptrCast(self.vtable)).GetExceptionFilterSecondCommand(@as(*const IDebugControl4, @ptrCast(self)), Index, Buffer, BufferSize, CommandSize); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl4_SetExceptionFilterSecondCommand(self: *const T, Index: u32, Command: ?[*:0]const u8) HRESULT { return @as(*const IDebugControl4.VTable, @ptrCast(self.vtable)).SetExceptionFilterSecondCommand(@as(*const IDebugControl4, @ptrCast(self)), Index, Command); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl4_WaitForEvent(self: *const T, Flags: u32, Timeout: u32) HRESULT { return @as(*const IDebugControl4.VTable, @ptrCast(self.vtable)).WaitForEvent(@as(*const IDebugControl4, @ptrCast(self)), Flags, Timeout); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl4_GetLastEventInformation(self: *const T, Type: ?*u32, ProcessId: ?*u32, ThreadId: ?*u32, ExtraInformation: ?*anyopaque, ExtraInformationSize: u32, ExtraInformationUsed: ?*u32, Description: ?[*:0]u8, DescriptionSize: u32, DescriptionUsed: ?*u32) HRESULT { return @as(*const IDebugControl4.VTable, @ptrCast(self.vtable)).GetLastEventInformation(@as(*const IDebugControl4, @ptrCast(self)), Type, ProcessId, ThreadId, ExtraInformation, ExtraInformationSize, ExtraInformationUsed, Description, DescriptionSize, DescriptionUsed); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl4_GetCurrentTimeDate(self: *const T, TimeDate: ?*u32) HRESULT { return @as(*const IDebugControl4.VTable, @ptrCast(self.vtable)).GetCurrentTimeDate(@as(*const IDebugControl4, @ptrCast(self)), TimeDate); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl4_GetCurrentSystemUpTime(self: *const T, UpTime: ?*u32) HRESULT { return @as(*const IDebugControl4.VTable, @ptrCast(self.vtable)).GetCurrentSystemUpTime(@as(*const IDebugControl4, @ptrCast(self)), UpTime); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl4_GetDumpFormatFlags(self: *const T, FormatFlags: ?*u32) HRESULT { return @as(*const IDebugControl4.VTable, @ptrCast(self.vtable)).GetDumpFormatFlags(@as(*const IDebugControl4, @ptrCast(self)), FormatFlags); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl4_GetNumberTextReplacements(self: *const T, NumRepl: ?*u32) HRESULT { return @as(*const IDebugControl4.VTable, @ptrCast(self.vtable)).GetNumberTextReplacements(@as(*const IDebugControl4, @ptrCast(self)), NumRepl); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl4_GetTextReplacement(self: *const T, SrcText: ?[*:0]const u8, Index: u32, SrcBuffer: ?[*:0]u8, SrcBufferSize: u32, SrcSize: ?*u32, DstBuffer: ?[*:0]u8, DstBufferSize: u32, DstSize: ?*u32) HRESULT { return @as(*const IDebugControl4.VTable, @ptrCast(self.vtable)).GetTextReplacement(@as(*const IDebugControl4, @ptrCast(self)), SrcText, Index, SrcBuffer, SrcBufferSize, SrcSize, DstBuffer, DstBufferSize, DstSize); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl4_SetTextReplacement(self: *const T, SrcText: ?[*:0]const u8, DstText: ?[*:0]const u8) HRESULT { return @as(*const IDebugControl4.VTable, @ptrCast(self.vtable)).SetTextReplacement(@as(*const IDebugControl4, @ptrCast(self)), SrcText, DstText); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl4_RemoveTextReplacements(self: *const T) HRESULT { return @as(*const IDebugControl4.VTable, @ptrCast(self.vtable)).RemoveTextReplacements(@as(*const IDebugControl4, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl4_OutputTextReplacements(self: *const T, OutputControl: u32, Flags: u32) HRESULT { return @as(*const IDebugControl4.VTable, @ptrCast(self.vtable)).OutputTextReplacements(@as(*const IDebugControl4, @ptrCast(self)), OutputControl, Flags); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl4_GetAssemblyOptions(self: *const T, Options: ?*u32) HRESULT { return @as(*const IDebugControl4.VTable, @ptrCast(self.vtable)).GetAssemblyOptions(@as(*const IDebugControl4, @ptrCast(self)), Options); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl4_AddAssemblyOptions(self: *const T, Options: u32) HRESULT { return @as(*const IDebugControl4.VTable, @ptrCast(self.vtable)).AddAssemblyOptions(@as(*const IDebugControl4, @ptrCast(self)), Options); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl4_RemoveAssemblyOptions(self: *const T, Options: u32) HRESULT { return @as(*const IDebugControl4.VTable, @ptrCast(self.vtable)).RemoveAssemblyOptions(@as(*const IDebugControl4, @ptrCast(self)), Options); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl4_SetAssemblyOptions(self: *const T, Options: u32) HRESULT { return @as(*const IDebugControl4.VTable, @ptrCast(self.vtable)).SetAssemblyOptions(@as(*const IDebugControl4, @ptrCast(self)), Options); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl4_GetExpressionSyntax(self: *const T, Flags: ?*u32) HRESULT { return @as(*const IDebugControl4.VTable, @ptrCast(self.vtable)).GetExpressionSyntax(@as(*const IDebugControl4, @ptrCast(self)), Flags); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl4_SetExpressionSyntax(self: *const T, Flags: u32) HRESULT { return @as(*const IDebugControl4.VTable, @ptrCast(self.vtable)).SetExpressionSyntax(@as(*const IDebugControl4, @ptrCast(self)), Flags); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl4_SetExpressionSyntaxByName(self: *const T, AbbrevName: ?[*:0]const u8) HRESULT { return @as(*const IDebugControl4.VTable, @ptrCast(self.vtable)).SetExpressionSyntaxByName(@as(*const IDebugControl4, @ptrCast(self)), AbbrevName); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl4_GetNumberExpressionSyntaxes(self: *const T, Number: ?*u32) HRESULT { return @as(*const IDebugControl4.VTable, @ptrCast(self.vtable)).GetNumberExpressionSyntaxes(@as(*const IDebugControl4, @ptrCast(self)), Number); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl4_GetExpressionSyntaxNames(self: *const T, Index: u32, FullNameBuffer: ?[*:0]u8, FullNameBufferSize: u32, FullNameSize: ?*u32, AbbrevNameBuffer: ?[*:0]u8, AbbrevNameBufferSize: u32, AbbrevNameSize: ?*u32) HRESULT { return @as(*const IDebugControl4.VTable, @ptrCast(self.vtable)).GetExpressionSyntaxNames(@as(*const IDebugControl4, @ptrCast(self)), Index, FullNameBuffer, FullNameBufferSize, FullNameSize, AbbrevNameBuffer, AbbrevNameBufferSize, AbbrevNameSize); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl4_GetNumberEvents(self: *const T, Events: ?*u32) HRESULT { return @as(*const IDebugControl4.VTable, @ptrCast(self.vtable)).GetNumberEvents(@as(*const IDebugControl4, @ptrCast(self)), Events); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl4_GetEventIndexDescription(self: *const T, Index: u32, Which: u32, Buffer: ?PSTR, BufferSize: u32, DescSize: ?*u32) HRESULT { return @as(*const IDebugControl4.VTable, @ptrCast(self.vtable)).GetEventIndexDescription(@as(*const IDebugControl4, @ptrCast(self)), Index, Which, Buffer, BufferSize, DescSize); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl4_GetCurrentEventIndex(self: *const T, Index: ?*u32) HRESULT { return @as(*const IDebugControl4.VTable, @ptrCast(self.vtable)).GetCurrentEventIndex(@as(*const IDebugControl4, @ptrCast(self)), Index); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl4_SetNextEventIndex(self: *const T, Relation: u32, Value: u32, NextIndex: ?*u32) HRESULT { return @as(*const IDebugControl4.VTable, @ptrCast(self.vtable)).SetNextEventIndex(@as(*const IDebugControl4, @ptrCast(self)), Relation, Value, NextIndex); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl4_GetLogFileWide(self: *const T, Buffer: ?[*:0]u16, BufferSize: u32, FileSize: ?*u32, Append: ?*BOOL) HRESULT { return @as(*const IDebugControl4.VTable, @ptrCast(self.vtable)).GetLogFileWide(@as(*const IDebugControl4, @ptrCast(self)), Buffer, BufferSize, FileSize, Append); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl4_OpenLogFileWide(self: *const T, File: ?[*:0]const u16, Append: BOOL) HRESULT { return @as(*const IDebugControl4.VTable, @ptrCast(self.vtable)).OpenLogFileWide(@as(*const IDebugControl4, @ptrCast(self)), File, Append); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl4_InputWide(self: *const T, Buffer: [*:0]u16, BufferSize: u32, InputSize: ?*u32) HRESULT { return @as(*const IDebugControl4.VTable, @ptrCast(self.vtable)).InputWide(@as(*const IDebugControl4, @ptrCast(self)), Buffer, BufferSize, InputSize); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl4_ReturnInputWide(self: *const T, Buffer: ?[*:0]const u16) HRESULT { return @as(*const IDebugControl4.VTable, @ptrCast(self.vtable)).ReturnInputWide(@as(*const IDebugControl4, @ptrCast(self)), Buffer); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl4_OutputWide(self: *const T, Mask: u32, Format: ?[*:0]const u16) HRESULT { return @as(*const IDebugControl4.VTable, @ptrCast(self.vtable)).OutputWide(@as(*const IDebugControl4, @ptrCast(self)), Mask, Format); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl4_OutputVaListWide(self: *const T, Mask: u32, Format: ?[*:0]const u16, Args: ?*i8) HRESULT { return @as(*const IDebugControl4.VTable, @ptrCast(self.vtable)).OutputVaListWide(@as(*const IDebugControl4, @ptrCast(self)), Mask, Format, Args); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl4_ControlledOutputWide(self: *const T, OutputControl: u32, Mask: u32, Format: ?[*:0]const u16) HRESULT { return @as(*const IDebugControl4.VTable, @ptrCast(self.vtable)).ControlledOutputWide(@as(*const IDebugControl4, @ptrCast(self)), OutputControl, Mask, Format); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl4_ControlledOutputVaListWide(self: *const T, OutputControl: u32, Mask: u32, Format: ?[*:0]const u16, Args: ?*i8) HRESULT { return @as(*const IDebugControl4.VTable, @ptrCast(self.vtable)).ControlledOutputVaListWide(@as(*const IDebugControl4, @ptrCast(self)), OutputControl, Mask, Format, Args); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl4_OutputPromptWide(self: *const T, OutputControl: u32, Format: ?[*:0]const u16) HRESULT { return @as(*const IDebugControl4.VTable, @ptrCast(self.vtable)).OutputPromptWide(@as(*const IDebugControl4, @ptrCast(self)), OutputControl, Format); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl4_OutputPromptVaListWide(self: *const T, OutputControl: u32, Format: ?[*:0]const u16, Args: ?*i8) HRESULT { return @as(*const IDebugControl4.VTable, @ptrCast(self.vtable)).OutputPromptVaListWide(@as(*const IDebugControl4, @ptrCast(self)), OutputControl, Format, Args); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl4_GetPromptTextWide(self: *const T, Buffer: ?[*:0]u16, BufferSize: u32, TextSize: ?*u32) HRESULT { return @as(*const IDebugControl4.VTable, @ptrCast(self.vtable)).GetPromptTextWide(@as(*const IDebugControl4, @ptrCast(self)), Buffer, BufferSize, TextSize); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl4_AssembleWide(self: *const T, Offset: u64, Instr: ?[*:0]const u16, EndOffset: ?*u64) HRESULT { return @as(*const IDebugControl4.VTable, @ptrCast(self.vtable)).AssembleWide(@as(*const IDebugControl4, @ptrCast(self)), Offset, Instr, EndOffset); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl4_DisassembleWide(self: *const T, Offset: u64, Flags: u32, Buffer: ?[*:0]u16, BufferSize: u32, DisassemblySize: ?*u32, EndOffset: ?*u64) HRESULT { return @as(*const IDebugControl4.VTable, @ptrCast(self.vtable)).DisassembleWide(@as(*const IDebugControl4, @ptrCast(self)), Offset, Flags, Buffer, BufferSize, DisassemblySize, EndOffset); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl4_GetProcessorTypeNamesWide(self: *const T, Type: u32, FullNameBuffer: ?[*:0]u16, FullNameBufferSize: u32, FullNameSize: ?*u32, AbbrevNameBuffer: ?[*:0]u16, AbbrevNameBufferSize: u32, AbbrevNameSize: ?*u32) HRESULT { return @as(*const IDebugControl4.VTable, @ptrCast(self.vtable)).GetProcessorTypeNamesWide(@as(*const IDebugControl4, @ptrCast(self)), Type, FullNameBuffer, FullNameBufferSize, FullNameSize, AbbrevNameBuffer, AbbrevNameBufferSize, AbbrevNameSize); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl4_GetTextMacroWide(self: *const T, Slot: u32, Buffer: ?[*:0]u16, BufferSize: u32, MacroSize: ?*u32) HRESULT { return @as(*const IDebugControl4.VTable, @ptrCast(self.vtable)).GetTextMacroWide(@as(*const IDebugControl4, @ptrCast(self)), Slot, Buffer, BufferSize, MacroSize); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl4_SetTextMacroWide(self: *const T, Slot: u32, Macro: ?[*:0]const u16) HRESULT { return @as(*const IDebugControl4.VTable, @ptrCast(self.vtable)).SetTextMacroWide(@as(*const IDebugControl4, @ptrCast(self)), Slot, Macro); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl4_EvaluateWide(self: *const T, Expression: ?[*:0]const u16, DesiredType: u32, Value: ?*DEBUG_VALUE, RemainderIndex: ?*u32) HRESULT { return @as(*const IDebugControl4.VTable, @ptrCast(self.vtable)).EvaluateWide(@as(*const IDebugControl4, @ptrCast(self)), Expression, DesiredType, Value, RemainderIndex); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl4_ExecuteWide(self: *const T, OutputControl: u32, Command: ?[*:0]const u16, Flags: u32) HRESULT { return @as(*const IDebugControl4.VTable, @ptrCast(self.vtable)).ExecuteWide(@as(*const IDebugControl4, @ptrCast(self)), OutputControl, Command, Flags); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl4_ExecuteCommandFileWide(self: *const T, OutputControl: u32, CommandFile: ?[*:0]const u16, Flags: u32) HRESULT { return @as(*const IDebugControl4.VTable, @ptrCast(self.vtable)).ExecuteCommandFileWide(@as(*const IDebugControl4, @ptrCast(self)), OutputControl, CommandFile, Flags); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl4_GetBreakpointByIndex2(self: *const T, Index: u32, Bp: ?*?*IDebugBreakpoint2) HRESULT { return @as(*const IDebugControl4.VTable, @ptrCast(self.vtable)).GetBreakpointByIndex2(@as(*const IDebugControl4, @ptrCast(self)), Index, Bp); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl4_GetBreakpointById2(self: *const T, Id: u32, Bp: ?*?*IDebugBreakpoint2) HRESULT { return @as(*const IDebugControl4.VTable, @ptrCast(self.vtable)).GetBreakpointById2(@as(*const IDebugControl4, @ptrCast(self)), Id, Bp); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl4_AddBreakpoint2(self: *const T, Type: u32, DesiredId: u32, Bp: ?*?*IDebugBreakpoint2) HRESULT { return @as(*const IDebugControl4.VTable, @ptrCast(self.vtable)).AddBreakpoint2(@as(*const IDebugControl4, @ptrCast(self)), Type, DesiredId, Bp); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl4_RemoveBreakpoint2(self: *const T, Bp: ?*IDebugBreakpoint2) HRESULT { return @as(*const IDebugControl4.VTable, @ptrCast(self.vtable)).RemoveBreakpoint2(@as(*const IDebugControl4, @ptrCast(self)), Bp); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl4_AddExtensionWide(self: *const T, Path: ?[*:0]const u16, Flags: u32, Handle: ?*u64) HRESULT { return @as(*const IDebugControl4.VTable, @ptrCast(self.vtable)).AddExtensionWide(@as(*const IDebugControl4, @ptrCast(self)), Path, Flags, Handle); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl4_GetExtensionByPathWide(self: *const T, Path: ?[*:0]const u16, Handle: ?*u64) HRESULT { return @as(*const IDebugControl4.VTable, @ptrCast(self.vtable)).GetExtensionByPathWide(@as(*const IDebugControl4, @ptrCast(self)), Path, Handle); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl4_CallExtensionWide(self: *const T, Handle: u64, Function: ?[*:0]const u16, Arguments: ?[*:0]const u16) HRESULT { return @as(*const IDebugControl4.VTable, @ptrCast(self.vtable)).CallExtensionWide(@as(*const IDebugControl4, @ptrCast(self)), Handle, Function, Arguments); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl4_GetExtensionFunctionWide(self: *const T, Handle: u64, FuncName: ?[*:0]const u16, Function: ?*?FARPROC) HRESULT { return @as(*const IDebugControl4.VTable, @ptrCast(self.vtable)).GetExtensionFunctionWide(@as(*const IDebugControl4, @ptrCast(self)), Handle, FuncName, Function); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl4_GetEventFilterTextWide(self: *const T, Index: u32, Buffer: ?[*:0]u16, BufferSize: u32, TextSize: ?*u32) HRESULT { return @as(*const IDebugControl4.VTable, @ptrCast(self.vtable)).GetEventFilterTextWide(@as(*const IDebugControl4, @ptrCast(self)), Index, Buffer, BufferSize, TextSize); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl4_GetEventFilterCommandWide(self: *const T, Index: u32, Buffer: ?[*:0]u16, BufferSize: u32, CommandSize: ?*u32) HRESULT { return @as(*const IDebugControl4.VTable, @ptrCast(self.vtable)).GetEventFilterCommandWide(@as(*const IDebugControl4, @ptrCast(self)), Index, Buffer, BufferSize, CommandSize); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl4_SetEventFilterCommandWide(self: *const T, Index: u32, Command: ?[*:0]const u16) HRESULT { return @as(*const IDebugControl4.VTable, @ptrCast(self.vtable)).SetEventFilterCommandWide(@as(*const IDebugControl4, @ptrCast(self)), Index, Command); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl4_GetSpecificFilterArgumentWide(self: *const T, Index: u32, Buffer: ?[*:0]u16, BufferSize: u32, ArgumentSize: ?*u32) HRESULT { return @as(*const IDebugControl4.VTable, @ptrCast(self.vtable)).GetSpecificFilterArgumentWide(@as(*const IDebugControl4, @ptrCast(self)), Index, Buffer, BufferSize, ArgumentSize); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl4_SetSpecificFilterArgumentWide(self: *const T, Index: u32, Argument: ?[*:0]const u16) HRESULT { return @as(*const IDebugControl4.VTable, @ptrCast(self.vtable)).SetSpecificFilterArgumentWide(@as(*const IDebugControl4, @ptrCast(self)), Index, Argument); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl4_GetExceptionFilterSecondCommandWide(self: *const T, Index: u32, Buffer: ?[*:0]u16, BufferSize: u32, CommandSize: ?*u32) HRESULT { return @as(*const IDebugControl4.VTable, @ptrCast(self.vtable)).GetExceptionFilterSecondCommandWide(@as(*const IDebugControl4, @ptrCast(self)), Index, Buffer, BufferSize, CommandSize); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl4_SetExceptionFilterSecondCommandWide(self: *const T, Index: u32, Command: ?[*:0]const u16) HRESULT { return @as(*const IDebugControl4.VTable, @ptrCast(self.vtable)).SetExceptionFilterSecondCommandWide(@as(*const IDebugControl4, @ptrCast(self)), Index, Command); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl4_GetLastEventInformationWide(self: *const T, Type: ?*u32, ProcessId: ?*u32, ThreadId: ?*u32, ExtraInformation: ?*anyopaque, ExtraInformationSize: u32, ExtraInformationUsed: ?*u32, Description: ?[*:0]u16, DescriptionSize: u32, DescriptionUsed: ?*u32) HRESULT { return @as(*const IDebugControl4.VTable, @ptrCast(self.vtable)).GetLastEventInformationWide(@as(*const IDebugControl4, @ptrCast(self)), Type, ProcessId, ThreadId, ExtraInformation, ExtraInformationSize, ExtraInformationUsed, Description, DescriptionSize, DescriptionUsed); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl4_GetTextReplacementWide(self: *const T, SrcText: ?[*:0]const u16, Index: u32, SrcBuffer: ?[*:0]u16, SrcBufferSize: u32, SrcSize: ?*u32, DstBuffer: ?[*:0]u16, DstBufferSize: u32, DstSize: ?*u32) HRESULT { return @as(*const IDebugControl4.VTable, @ptrCast(self.vtable)).GetTextReplacementWide(@as(*const IDebugControl4, @ptrCast(self)), SrcText, Index, SrcBuffer, SrcBufferSize, SrcSize, DstBuffer, DstBufferSize, DstSize); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl4_SetTextReplacementWide(self: *const T, SrcText: ?[*:0]const u16, DstText: ?[*:0]const u16) HRESULT { return @as(*const IDebugControl4.VTable, @ptrCast(self.vtable)).SetTextReplacementWide(@as(*const IDebugControl4, @ptrCast(self)), SrcText, DstText); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl4_SetExpressionSyntaxByNameWide(self: *const T, AbbrevName: ?[*:0]const u16) HRESULT { return @as(*const IDebugControl4.VTable, @ptrCast(self.vtable)).SetExpressionSyntaxByNameWide(@as(*const IDebugControl4, @ptrCast(self)), AbbrevName); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl4_GetExpressionSyntaxNamesWide(self: *const T, Index: u32, FullNameBuffer: ?[*:0]u16, FullNameBufferSize: u32, FullNameSize: ?*u32, AbbrevNameBuffer: ?[*:0]u16, AbbrevNameBufferSize: u32, AbbrevNameSize: ?*u32) HRESULT { return @as(*const IDebugControl4.VTable, @ptrCast(self.vtable)).GetExpressionSyntaxNamesWide(@as(*const IDebugControl4, @ptrCast(self)), Index, FullNameBuffer, FullNameBufferSize, FullNameSize, AbbrevNameBuffer, AbbrevNameBufferSize, AbbrevNameSize); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl4_GetEventIndexDescriptionWide(self: *const T, Index: u32, Which: u32, Buffer: ?PWSTR, BufferSize: u32, DescSize: ?*u32) HRESULT { return @as(*const IDebugControl4.VTable, @ptrCast(self.vtable)).GetEventIndexDescriptionWide(@as(*const IDebugControl4, @ptrCast(self)), Index, Which, Buffer, BufferSize, DescSize); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl4_GetLogFile2(self: *const T, Buffer: ?[*:0]u8, BufferSize: u32, FileSize: ?*u32, Flags: ?*u32) HRESULT { return @as(*const IDebugControl4.VTable, @ptrCast(self.vtable)).GetLogFile2(@as(*const IDebugControl4, @ptrCast(self)), Buffer, BufferSize, FileSize, Flags); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl4_OpenLogFile2(self: *const T, File: ?[*:0]const u8, Flags: u32) HRESULT { return @as(*const IDebugControl4.VTable, @ptrCast(self.vtable)).OpenLogFile2(@as(*const IDebugControl4, @ptrCast(self)), File, Flags); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl4_GetLogFile2Wide(self: *const T, Buffer: ?[*:0]u16, BufferSize: u32, FileSize: ?*u32, Flags: ?*u32) HRESULT { return @as(*const IDebugControl4.VTable, @ptrCast(self.vtable)).GetLogFile2Wide(@as(*const IDebugControl4, @ptrCast(self)), Buffer, BufferSize, FileSize, Flags); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl4_OpenLogFile2Wide(self: *const T, File: ?[*:0]const u16, Flags: u32) HRESULT { return @as(*const IDebugControl4.VTable, @ptrCast(self.vtable)).OpenLogFile2Wide(@as(*const IDebugControl4, @ptrCast(self)), File, Flags); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl4_GetSystemVersionValues(self: *const T, PlatformId: ?*u32, Win32Major: ?*u32, Win32Minor: ?*u32, KdMajor: ?*u32, KdMinor: ?*u32) HRESULT { return @as(*const IDebugControl4.VTable, @ptrCast(self.vtable)).GetSystemVersionValues(@as(*const IDebugControl4, @ptrCast(self)), PlatformId, Win32Major, Win32Minor, KdMajor, KdMinor); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl4_GetSystemVersionString(self: *const T, Which: u32, Buffer: ?[*:0]u8, BufferSize: u32, StringSize: ?*u32) HRESULT { return @as(*const IDebugControl4.VTable, @ptrCast(self.vtable)).GetSystemVersionString(@as(*const IDebugControl4, @ptrCast(self)), Which, Buffer, BufferSize, StringSize); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl4_GetSystemVersionStringWide(self: *const T, Which: u32, Buffer: ?[*:0]u16, BufferSize: u32, StringSize: ?*u32) HRESULT { return @as(*const IDebugControl4.VTable, @ptrCast(self.vtable)).GetSystemVersionStringWide(@as(*const IDebugControl4, @ptrCast(self)), Which, Buffer, BufferSize, StringSize); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl4_GetContextStackTrace(self: *const T, StartContext: ?*anyopaque, StartContextSize: u32, Frames: ?[*]DEBUG_STACK_FRAME, FramesSize: u32, FrameContexts: ?*anyopaque, FrameContextsSize: u32, FrameContextsEntrySize: u32, FramesFilled: ?*u32) HRESULT { return @as(*const IDebugControl4.VTable, @ptrCast(self.vtable)).GetContextStackTrace(@as(*const IDebugControl4, @ptrCast(self)), StartContext, StartContextSize, Frames, FramesSize, FrameContexts, FrameContextsSize, FrameContextsEntrySize, FramesFilled); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl4_OutputContextStackTrace(self: *const T, OutputControl: u32, Frames: [*]DEBUG_STACK_FRAME, FramesSize: u32, FrameContexts: ?*anyopaque, FrameContextsSize: u32, FrameContextsEntrySize: u32, Flags: u32) HRESULT { return @as(*const IDebugControl4.VTable, @ptrCast(self.vtable)).OutputContextStackTrace(@as(*const IDebugControl4, @ptrCast(self)), OutputControl, Frames, FramesSize, FrameContexts, FrameContextsSize, FrameContextsEntrySize, Flags); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl4_GetStoredEventInformation(self: *const T, Type: ?*u32, ProcessId: ?*u32, ThreadId: ?*u32, Context: ?*anyopaque, ContextSize: u32, ContextUsed: ?*u32, ExtraInformation: ?*anyopaque, ExtraInformationSize: u32, ExtraInformationUsed: ?*u32) HRESULT { return @as(*const IDebugControl4.VTable, @ptrCast(self.vtable)).GetStoredEventInformation(@as(*const IDebugControl4, @ptrCast(self)), Type, ProcessId, ThreadId, Context, ContextSize, ContextUsed, ExtraInformation, ExtraInformationSize, ExtraInformationUsed); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl4_GetManagedStatus(self: *const T, Flags: ?*u32, WhichString: u32, String: ?[*:0]u8, StringSize: u32, StringNeeded: ?*u32) HRESULT { return @as(*const IDebugControl4.VTable, @ptrCast(self.vtable)).GetManagedStatus(@as(*const IDebugControl4, @ptrCast(self)), Flags, WhichString, String, StringSize, StringNeeded); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl4_GetManagedStatusWide(self: *const T, Flags: ?*u32, WhichString: u32, String: ?[*:0]u16, StringSize: u32, StringNeeded: ?*u32) HRESULT { return @as(*const IDebugControl4.VTable, @ptrCast(self.vtable)).GetManagedStatusWide(@as(*const IDebugControl4, @ptrCast(self)), Flags, WhichString, String, StringSize, StringNeeded); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl4_ResetManagedStatus(self: *const T, Flags: u32) HRESULT { return @as(*const IDebugControl4.VTable, @ptrCast(self.vtable)).ResetManagedStatus(@as(*const IDebugControl4, @ptrCast(self)), Flags); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IDebugControl5_Value = Guid.initString("b2ffe162-2412-429f-8d1d-5bf6dd824696"); pub const IID_IDebugControl5 = &IID_IDebugControl5_Value; pub const IDebugControl5 = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, GetInterrupt: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl5, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl5, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetInterrupt: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl5, Flags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl5, Flags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetInterruptTimeout: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl5, Seconds: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl5, Seconds: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetInterruptTimeout: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl5, Seconds: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl5, Seconds: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetLogFile: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl5, Buffer: ?[*:0]u8, BufferSize: u32, FileSize: ?*u32, Append: ?*BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl5, Buffer: ?[*:0]u8, BufferSize: u32, FileSize: ?*u32, Append: ?*BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, OpenLogFile: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl5, File: ?[*:0]const u8, Append: BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl5, File: ?[*:0]const u8, Append: BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, CloseLogFile: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl5, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl5, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetLogMask: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl5, Mask: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl5, Mask: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetLogMask: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl5, Mask: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl5, Mask: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Input: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl5, Buffer: [*:0]u8, BufferSize: u32, InputSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl5, Buffer: [*:0]u8, BufferSize: u32, InputSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, ReturnInput: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl5, Buffer: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl5, Buffer: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Output: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl5, Mask: u32, Format: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl5, Mask: u32, Format: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, OutputVaList: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl5, Mask: u32, Format: ?[*:0]const u8, Args: ?*i8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl5, Mask: u32, Format: ?[*:0]const u8, Args: ?*i8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, ControlledOutput: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl5, OutputControl: u32, Mask: u32, Format: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl5, OutputControl: u32, Mask: u32, Format: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, ControlledOutputVaList: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl5, OutputControl: u32, Mask: u32, Format: ?[*:0]const u8, Args: ?*i8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl5, OutputControl: u32, Mask: u32, Format: ?[*:0]const u8, Args: ?*i8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, OutputPrompt: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl5, OutputControl: u32, Format: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl5, OutputControl: u32, Format: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, OutputPromptVaList: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl5, OutputControl: u32, Format: ?[*:0]const u8, Args: ?*i8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl5, OutputControl: u32, Format: ?[*:0]const u8, Args: ?*i8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetPromptText: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl5, Buffer: ?[*:0]u8, BufferSize: u32, TextSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl5, Buffer: ?[*:0]u8, BufferSize: u32, TextSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, OutputCurrentState: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl5, OutputControl: u32, Flags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl5, OutputControl: u32, Flags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, OutputVersionInformation: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl5, OutputControl: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl5, OutputControl: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetNotifyEventHandle: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl5, Handle: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl5, Handle: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetNotifyEventHandle: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl5, Handle: u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl5, Handle: u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Assemble: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl5, Offset: u64, Instr: ?[*:0]const u8, EndOffset: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl5, Offset: u64, Instr: ?[*:0]const u8, EndOffset: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Disassemble: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl5, Offset: u64, Flags: u32, Buffer: ?[*:0]u8, BufferSize: u32, DisassemblySize: ?*u32, EndOffset: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl5, Offset: u64, Flags: u32, Buffer: ?[*:0]u8, BufferSize: u32, DisassemblySize: ?*u32, EndOffset: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetDisassembleEffectiveOffset: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl5, Offset: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl5, Offset: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, OutputDisassembly: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl5, OutputControl: u32, Offset: u64, Flags: u32, EndOffset: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl5, OutputControl: u32, Offset: u64, Flags: u32, EndOffset: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, OutputDisassemblyLines: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl5, OutputControl: u32, PreviousLines: u32, TotalLines: u32, Offset: u64, Flags: u32, OffsetLine: ?*u32, StartOffset: ?*u64, EndOffset: ?*u64, LineOffsets: ?[*]u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl5, OutputControl: u32, PreviousLines: u32, TotalLines: u32, Offset: u64, Flags: u32, OffsetLine: ?*u32, StartOffset: ?*u64, EndOffset: ?*u64, LineOffsets: ?[*]u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetNearInstruction: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl5, Offset: u64, Delta: i32, NearOffset: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl5, Offset: u64, Delta: i32, NearOffset: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetStackTrace: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl5, FrameOffset: u64, StackOffset: u64, InstructionOffset: u64, Frames: [*]DEBUG_STACK_FRAME, FramesSize: u32, FramesFilled: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl5, FrameOffset: u64, StackOffset: u64, InstructionOffset: u64, Frames: [*]DEBUG_STACK_FRAME, FramesSize: u32, FramesFilled: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetReturnOffset: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl5, Offset: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl5, Offset: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, OutputStackTrace: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl5, OutputControl: u32, Frames: ?[*]DEBUG_STACK_FRAME, FramesSize: u32, Flags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl5, OutputControl: u32, Frames: ?[*]DEBUG_STACK_FRAME, FramesSize: u32, Flags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetDebuggeeType: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl5, Class: ?*u32, Qualifier: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl5, Class: ?*u32, Qualifier: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetActualProcessorType: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl5, Type: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl5, Type: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetExecutingProcessorType: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl5, Type: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl5, Type: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetNumberPossibleExecutingProcessorTypes: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl5, Number: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl5, Number: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetPossibleExecutingProcessorTypes: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl5, Start: u32, Count: u32, Types: [*]u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl5, Start: u32, Count: u32, Types: [*]u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetNumberProcessors: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl5, Number: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl5, Number: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetSystemVersion: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl5, PlatformId: ?*u32, Major: ?*u32, Minor: ?*u32, ServicePackString: ?[*:0]u8, ServicePackStringSize: u32, ServicePackStringUsed: ?*u32, ServicePackNumber: ?*u32, BuildString: ?[*:0]u8, BuildStringSize: u32, BuildStringUsed: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl5, PlatformId: ?*u32, Major: ?*u32, Minor: ?*u32, ServicePackString: ?[*:0]u8, ServicePackStringSize: u32, ServicePackStringUsed: ?*u32, ServicePackNumber: ?*u32, BuildString: ?[*:0]u8, BuildStringSize: u32, BuildStringUsed: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetPageSize: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl5, Size: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl5, Size: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, IsPointer64Bit: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl5, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl5, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, ReadBugCheckData: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl5, Code: ?*u32, Arg1: ?*u64, Arg2: ?*u64, Arg3: ?*u64, Arg4: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl5, Code: ?*u32, Arg1: ?*u64, Arg2: ?*u64, Arg3: ?*u64, Arg4: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetNumberSupportedProcessorTypes: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl5, Number: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl5, Number: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetSupportedProcessorTypes: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl5, Start: u32, Count: u32, Types: [*]u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl5, Start: u32, Count: u32, Types: [*]u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetProcessorTypeNames: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl5, Type: u32, FullNameBuffer: ?[*:0]u8, FullNameBufferSize: u32, FullNameSize: ?*u32, AbbrevNameBuffer: ?[*:0]u8, AbbrevNameBufferSize: u32, AbbrevNameSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl5, Type: u32, FullNameBuffer: ?[*:0]u8, FullNameBufferSize: u32, FullNameSize: ?*u32, AbbrevNameBuffer: ?[*:0]u8, AbbrevNameBufferSize: u32, AbbrevNameSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetEffectiveProcessorType: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl5, Type: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl5, Type: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetEffectiveProcessorType: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl5, Type: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl5, Type: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetExecutionStatus: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl5, Status: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl5, Status: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetExecutionStatus: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl5, Status: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl5, Status: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetCodeLevel: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl5, Level: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl5, Level: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetCodeLevel: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl5, Level: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl5, Level: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetEngineOptions: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl5, Options: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl5, Options: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, AddEngineOptions: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl5, Options: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl5, Options: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, RemoveEngineOptions: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl5, Options: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl5, Options: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetEngineOptions: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl5, Options: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl5, Options: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetSystemErrorControl: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl5, OutputLevel: ?*u32, BreakLevel: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl5, OutputLevel: ?*u32, BreakLevel: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetSystemErrorControl: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl5, OutputLevel: u32, BreakLevel: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl5, OutputLevel: u32, BreakLevel: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetTextMacro: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl5, Slot: u32, Buffer: ?[*:0]u8, BufferSize: u32, MacroSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl5, Slot: u32, Buffer: ?[*:0]u8, BufferSize: u32, MacroSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetTextMacro: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl5, Slot: u32, Macro: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl5, Slot: u32, Macro: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetRadix: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl5, Radix: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl5, Radix: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetRadix: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl5, Radix: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl5, Radix: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Evaluate: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl5, Expression: ?[*:0]const u8, DesiredType: u32, Value: ?*DEBUG_VALUE, RemainderIndex: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl5, Expression: ?[*:0]const u8, DesiredType: u32, Value: ?*DEBUG_VALUE, RemainderIndex: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, CoerceValue: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl5, In: ?*DEBUG_VALUE, OutType: u32, Out: ?*DEBUG_VALUE, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl5, In: ?*DEBUG_VALUE, OutType: u32, Out: ?*DEBUG_VALUE, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, CoerceValues: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl5, Count: u32, In: [*]DEBUG_VALUE, OutTypes: [*]u32, Out: [*]DEBUG_VALUE, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl5, Count: u32, In: [*]DEBUG_VALUE, OutTypes: [*]u32, Out: [*]DEBUG_VALUE, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Execute: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl5, OutputControl: u32, Command: ?[*:0]const u8, Flags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl5, OutputControl: u32, Command: ?[*:0]const u8, Flags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, ExecuteCommandFile: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl5, OutputControl: u32, CommandFile: ?[*:0]const u8, Flags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl5, OutputControl: u32, CommandFile: ?[*:0]const u8, Flags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetNumberBreakpoints: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl5, Number: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl5, Number: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetBreakpointByIndex: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl5, Index: u32, Bp: ?*?*IDebugBreakpoint, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl5, Index: u32, Bp: ?*?*IDebugBreakpoint, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetBreakpointById: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl5, Id: u32, Bp: ?*?*IDebugBreakpoint, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl5, Id: u32, Bp: ?*?*IDebugBreakpoint, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetBreakpointParameters: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl5, Count: u32, Ids: ?[*]u32, Start: u32, Params: [*]DEBUG_BREAKPOINT_PARAMETERS, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl5, Count: u32, Ids: ?[*]u32, Start: u32, Params: [*]DEBUG_BREAKPOINT_PARAMETERS, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, AddBreakpoint: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl5, Type: u32, DesiredId: u32, Bp: ?*?*IDebugBreakpoint, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl5, Type: u32, DesiredId: u32, Bp: ?*?*IDebugBreakpoint, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, RemoveBreakpoint: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl5, Bp: ?*IDebugBreakpoint, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl5, Bp: ?*IDebugBreakpoint, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, AddExtension: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl5, Path: ?[*:0]const u8, Flags: u32, Handle: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl5, Path: ?[*:0]const u8, Flags: u32, Handle: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, RemoveExtension: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl5, Handle: u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl5, Handle: u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetExtensionByPath: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl5, Path: ?[*:0]const u8, Handle: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl5, Path: ?[*:0]const u8, Handle: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, CallExtension: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl5, Handle: u64, Function: ?[*:0]const u8, Arguments: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl5, Handle: u64, Function: ?[*:0]const u8, Arguments: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetExtensionFunction: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl5, Handle: u64, FuncName: ?[*:0]const u8, Function: ?*?FARPROC, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl5, Handle: u64, FuncName: ?[*:0]const u8, Function: ?*?FARPROC, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetWindbgExtensionApis32: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl5, Api: ?*WINDBG_EXTENSION_APIS32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl5, Api: ?*WINDBG_EXTENSION_APIS32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetWindbgExtensionApis64: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl5, Api: ?*WINDBG_EXTENSION_APIS64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl5, Api: ?*WINDBG_EXTENSION_APIS64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetNumberEventFilters: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl5, SpecificEvents: ?*u32, SpecificExceptions: ?*u32, ArbitraryExceptions: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl5, SpecificEvents: ?*u32, SpecificExceptions: ?*u32, ArbitraryExceptions: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetEventFilterText: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl5, Index: u32, Buffer: ?[*:0]u8, BufferSize: u32, TextSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl5, Index: u32, Buffer: ?[*:0]u8, BufferSize: u32, TextSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetEventFilterCommand: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl5, Index: u32, Buffer: ?[*:0]u8, BufferSize: u32, CommandSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl5, Index: u32, Buffer: ?[*:0]u8, BufferSize: u32, CommandSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetEventFilterCommand: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl5, Index: u32, Command: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl5, Index: u32, Command: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetSpecificFilterParameters: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl5, Start: u32, Count: u32, Params: [*]DEBUG_SPECIFIC_FILTER_PARAMETERS, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl5, Start: u32, Count: u32, Params: [*]DEBUG_SPECIFIC_FILTER_PARAMETERS, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetSpecificFilterParameters: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl5, Start: u32, Count: u32, Params: [*]DEBUG_SPECIFIC_FILTER_PARAMETERS, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl5, Start: u32, Count: u32, Params: [*]DEBUG_SPECIFIC_FILTER_PARAMETERS, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetSpecificFilterArgument: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl5, Index: u32, Buffer: ?[*:0]u8, BufferSize: u32, ArgumentSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl5, Index: u32, Buffer: ?[*:0]u8, BufferSize: u32, ArgumentSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetSpecificFilterArgument: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl5, Index: u32, Argument: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl5, Index: u32, Argument: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetExceptionFilterParameters: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl5, Count: u32, Codes: ?[*]u32, Start: u32, Params: [*]DEBUG_EXCEPTION_FILTER_PARAMETERS, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl5, Count: u32, Codes: ?[*]u32, Start: u32, Params: [*]DEBUG_EXCEPTION_FILTER_PARAMETERS, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetExceptionFilterParameters: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl5, Count: u32, Params: [*]DEBUG_EXCEPTION_FILTER_PARAMETERS, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl5, Count: u32, Params: [*]DEBUG_EXCEPTION_FILTER_PARAMETERS, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetExceptionFilterSecondCommand: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl5, Index: u32, Buffer: ?[*:0]u8, BufferSize: u32, CommandSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl5, Index: u32, Buffer: ?[*:0]u8, BufferSize: u32, CommandSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetExceptionFilterSecondCommand: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl5, Index: u32, Command: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl5, Index: u32, Command: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, WaitForEvent: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl5, Flags: u32, Timeout: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl5, Flags: u32, Timeout: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetLastEventInformation: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl5, Type: ?*u32, ProcessId: ?*u32, ThreadId: ?*u32, // TODO: what to do with BytesParamIndex 4? ExtraInformation: ?*anyopaque, ExtraInformationSize: u32, ExtraInformationUsed: ?*u32, Description: ?[*:0]u8, DescriptionSize: u32, DescriptionUsed: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl5, Type: ?*u32, ProcessId: ?*u32, ThreadId: ?*u32, // TODO: what to do with BytesParamIndex 4? ExtraInformation: ?*anyopaque, ExtraInformationSize: u32, ExtraInformationUsed: ?*u32, Description: ?[*:0]u8, DescriptionSize: u32, DescriptionUsed: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetCurrentTimeDate: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl5, TimeDate: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl5, TimeDate: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetCurrentSystemUpTime: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl5, UpTime: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl5, UpTime: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetDumpFormatFlags: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl5, FormatFlags: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl5, FormatFlags: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetNumberTextReplacements: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl5, NumRepl: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl5, NumRepl: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetTextReplacement: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl5, SrcText: ?[*:0]const u8, Index: u32, SrcBuffer: ?[*:0]u8, SrcBufferSize: u32, SrcSize: ?*u32, DstBuffer: ?[*:0]u8, DstBufferSize: u32, DstSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl5, SrcText: ?[*:0]const u8, Index: u32, SrcBuffer: ?[*:0]u8, SrcBufferSize: u32, SrcSize: ?*u32, DstBuffer: ?[*:0]u8, DstBufferSize: u32, DstSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetTextReplacement: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl5, SrcText: ?[*:0]const u8, DstText: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl5, SrcText: ?[*:0]const u8, DstText: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, RemoveTextReplacements: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl5, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl5, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, OutputTextReplacements: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl5, OutputControl: u32, Flags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl5, OutputControl: u32, Flags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetAssemblyOptions: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl5, Options: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl5, Options: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, AddAssemblyOptions: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl5, Options: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl5, Options: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, RemoveAssemblyOptions: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl5, Options: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl5, Options: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetAssemblyOptions: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl5, Options: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl5, Options: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetExpressionSyntax: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl5, Flags: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl5, Flags: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetExpressionSyntax: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl5, Flags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl5, Flags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetExpressionSyntaxByName: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl5, AbbrevName: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl5, AbbrevName: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetNumberExpressionSyntaxes: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl5, Number: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl5, Number: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetExpressionSyntaxNames: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl5, Index: u32, FullNameBuffer: ?[*:0]u8, FullNameBufferSize: u32, FullNameSize: ?*u32, AbbrevNameBuffer: ?[*:0]u8, AbbrevNameBufferSize: u32, AbbrevNameSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl5, Index: u32, FullNameBuffer: ?[*:0]u8, FullNameBufferSize: u32, FullNameSize: ?*u32, AbbrevNameBuffer: ?[*:0]u8, AbbrevNameBufferSize: u32, AbbrevNameSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetNumberEvents: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl5, Events: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl5, Events: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetEventIndexDescription: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl5, Index: u32, Which: u32, Buffer: ?PSTR, BufferSize: u32, DescSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl5, Index: u32, Which: u32, Buffer: ?PSTR, BufferSize: u32, DescSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetCurrentEventIndex: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl5, Index: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl5, Index: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetNextEventIndex: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl5, Relation: u32, Value: u32, NextIndex: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl5, Relation: u32, Value: u32, NextIndex: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetLogFileWide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl5, Buffer: ?[*:0]u16, BufferSize: u32, FileSize: ?*u32, Append: ?*BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl5, Buffer: ?[*:0]u16, BufferSize: u32, FileSize: ?*u32, Append: ?*BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, OpenLogFileWide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl5, File: ?[*:0]const u16, Append: BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl5, File: ?[*:0]const u16, Append: BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, InputWide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl5, Buffer: [*:0]u16, BufferSize: u32, InputSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl5, Buffer: [*:0]u16, BufferSize: u32, InputSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, ReturnInputWide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl5, Buffer: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl5, Buffer: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, OutputWide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl5, Mask: u32, Format: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl5, Mask: u32, Format: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, OutputVaListWide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl5, Mask: u32, Format: ?[*:0]const u16, Args: ?*i8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl5, Mask: u32, Format: ?[*:0]const u16, Args: ?*i8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, ControlledOutputWide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl5, OutputControl: u32, Mask: u32, Format: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl5, OutputControl: u32, Mask: u32, Format: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, ControlledOutputVaListWide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl5, OutputControl: u32, Mask: u32, Format: ?[*:0]const u16, Args: ?*i8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl5, OutputControl: u32, Mask: u32, Format: ?[*:0]const u16, Args: ?*i8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, OutputPromptWide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl5, OutputControl: u32, Format: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl5, OutputControl: u32, Format: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, OutputPromptVaListWide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl5, OutputControl: u32, Format: ?[*:0]const u16, Args: ?*i8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl5, OutputControl: u32, Format: ?[*:0]const u16, Args: ?*i8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetPromptTextWide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl5, Buffer: ?[*:0]u16, BufferSize: u32, TextSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl5, Buffer: ?[*:0]u16, BufferSize: u32, TextSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, AssembleWide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl5, Offset: u64, Instr: ?[*:0]const u16, EndOffset: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl5, Offset: u64, Instr: ?[*:0]const u16, EndOffset: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, DisassembleWide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl5, Offset: u64, Flags: u32, Buffer: ?[*:0]u16, BufferSize: u32, DisassemblySize: ?*u32, EndOffset: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl5, Offset: u64, Flags: u32, Buffer: ?[*:0]u16, BufferSize: u32, DisassemblySize: ?*u32, EndOffset: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetProcessorTypeNamesWide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl5, Type: u32, FullNameBuffer: ?[*:0]u16, FullNameBufferSize: u32, FullNameSize: ?*u32, AbbrevNameBuffer: ?[*:0]u16, AbbrevNameBufferSize: u32, AbbrevNameSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl5, Type: u32, FullNameBuffer: ?[*:0]u16, FullNameBufferSize: u32, FullNameSize: ?*u32, AbbrevNameBuffer: ?[*:0]u16, AbbrevNameBufferSize: u32, AbbrevNameSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetTextMacroWide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl5, Slot: u32, Buffer: ?[*:0]u16, BufferSize: u32, MacroSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl5, Slot: u32, Buffer: ?[*:0]u16, BufferSize: u32, MacroSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetTextMacroWide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl5, Slot: u32, Macro: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl5, Slot: u32, Macro: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, EvaluateWide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl5, Expression: ?[*:0]const u16, DesiredType: u32, Value: ?*DEBUG_VALUE, RemainderIndex: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl5, Expression: ?[*:0]const u16, DesiredType: u32, Value: ?*DEBUG_VALUE, RemainderIndex: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, ExecuteWide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl5, OutputControl: u32, Command: ?[*:0]const u16, Flags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl5, OutputControl: u32, Command: ?[*:0]const u16, Flags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, ExecuteCommandFileWide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl5, OutputControl: u32, CommandFile: ?[*:0]const u16, Flags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl5, OutputControl: u32, CommandFile: ?[*:0]const u16, Flags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetBreakpointByIndex2: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl5, Index: u32, Bp: ?*?*IDebugBreakpoint2, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl5, Index: u32, Bp: ?*?*IDebugBreakpoint2, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetBreakpointById2: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl5, Id: u32, Bp: ?*?*IDebugBreakpoint2, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl5, Id: u32, Bp: ?*?*IDebugBreakpoint2, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, AddBreakpoint2: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl5, Type: u32, DesiredId: u32, Bp: ?*?*IDebugBreakpoint2, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl5, Type: u32, DesiredId: u32, Bp: ?*?*IDebugBreakpoint2, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, RemoveBreakpoint2: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl5, Bp: ?*IDebugBreakpoint2, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl5, Bp: ?*IDebugBreakpoint2, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, AddExtensionWide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl5, Path: ?[*:0]const u16, Flags: u32, Handle: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl5, Path: ?[*:0]const u16, Flags: u32, Handle: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetExtensionByPathWide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl5, Path: ?[*:0]const u16, Handle: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl5, Path: ?[*:0]const u16, Handle: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, CallExtensionWide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl5, Handle: u64, Function: ?[*:0]const u16, Arguments: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl5, Handle: u64, Function: ?[*:0]const u16, Arguments: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetExtensionFunctionWide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl5, Handle: u64, FuncName: ?[*:0]const u16, Function: ?*?FARPROC, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl5, Handle: u64, FuncName: ?[*:0]const u16, Function: ?*?FARPROC, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetEventFilterTextWide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl5, Index: u32, Buffer: ?[*:0]u16, BufferSize: u32, TextSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl5, Index: u32, Buffer: ?[*:0]u16, BufferSize: u32, TextSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetEventFilterCommandWide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl5, Index: u32, Buffer: ?[*:0]u16, BufferSize: u32, CommandSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl5, Index: u32, Buffer: ?[*:0]u16, BufferSize: u32, CommandSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetEventFilterCommandWide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl5, Index: u32, Command: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl5, Index: u32, Command: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetSpecificFilterArgumentWide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl5, Index: u32, Buffer: ?[*:0]u16, BufferSize: u32, ArgumentSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl5, Index: u32, Buffer: ?[*:0]u16, BufferSize: u32, ArgumentSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetSpecificFilterArgumentWide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl5, Index: u32, Argument: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl5, Index: u32, Argument: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetExceptionFilterSecondCommandWide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl5, Index: u32, Buffer: ?[*:0]u16, BufferSize: u32, CommandSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl5, Index: u32, Buffer: ?[*:0]u16, BufferSize: u32, CommandSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetExceptionFilterSecondCommandWide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl5, Index: u32, Command: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl5, Index: u32, Command: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetLastEventInformationWide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl5, Type: ?*u32, ProcessId: ?*u32, ThreadId: ?*u32, // TODO: what to do with BytesParamIndex 4? ExtraInformation: ?*anyopaque, ExtraInformationSize: u32, ExtraInformationUsed: ?*u32, Description: ?[*:0]u16, DescriptionSize: u32, DescriptionUsed: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl5, Type: ?*u32, ProcessId: ?*u32, ThreadId: ?*u32, // TODO: what to do with BytesParamIndex 4? ExtraInformation: ?*anyopaque, ExtraInformationSize: u32, ExtraInformationUsed: ?*u32, Description: ?[*:0]u16, DescriptionSize: u32, DescriptionUsed: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetTextReplacementWide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl5, SrcText: ?[*:0]const u16, Index: u32, SrcBuffer: ?[*:0]u16, SrcBufferSize: u32, SrcSize: ?*u32, DstBuffer: ?[*:0]u16, DstBufferSize: u32, DstSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl5, SrcText: ?[*:0]const u16, Index: u32, SrcBuffer: ?[*:0]u16, SrcBufferSize: u32, SrcSize: ?*u32, DstBuffer: ?[*:0]u16, DstBufferSize: u32, DstSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetTextReplacementWide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl5, SrcText: ?[*:0]const u16, DstText: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl5, SrcText: ?[*:0]const u16, DstText: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetExpressionSyntaxByNameWide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl5, AbbrevName: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl5, AbbrevName: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetExpressionSyntaxNamesWide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl5, Index: u32, FullNameBuffer: ?[*:0]u16, FullNameBufferSize: u32, FullNameSize: ?*u32, AbbrevNameBuffer: ?[*:0]u16, AbbrevNameBufferSize: u32, AbbrevNameSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl5, Index: u32, FullNameBuffer: ?[*:0]u16, FullNameBufferSize: u32, FullNameSize: ?*u32, AbbrevNameBuffer: ?[*:0]u16, AbbrevNameBufferSize: u32, AbbrevNameSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetEventIndexDescriptionWide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl5, Index: u32, Which: u32, Buffer: ?PWSTR, BufferSize: u32, DescSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl5, Index: u32, Which: u32, Buffer: ?PWSTR, BufferSize: u32, DescSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetLogFile2: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl5, Buffer: ?[*:0]u8, BufferSize: u32, FileSize: ?*u32, Flags: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl5, Buffer: ?[*:0]u8, BufferSize: u32, FileSize: ?*u32, Flags: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, OpenLogFile2: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl5, File: ?[*:0]const u8, Flags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl5, File: ?[*:0]const u8, Flags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetLogFile2Wide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl5, Buffer: ?[*:0]u16, BufferSize: u32, FileSize: ?*u32, Flags: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl5, Buffer: ?[*:0]u16, BufferSize: u32, FileSize: ?*u32, Flags: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, OpenLogFile2Wide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl5, File: ?[*:0]const u16, Flags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl5, File: ?[*:0]const u16, Flags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetSystemVersionValues: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl5, PlatformId: ?*u32, Win32Major: ?*u32, Win32Minor: ?*u32, KdMajor: ?*u32, KdMinor: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl5, PlatformId: ?*u32, Win32Major: ?*u32, Win32Minor: ?*u32, KdMajor: ?*u32, KdMinor: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetSystemVersionString: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl5, Which: u32, Buffer: ?[*:0]u8, BufferSize: u32, StringSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl5, Which: u32, Buffer: ?[*:0]u8, BufferSize: u32, StringSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetSystemVersionStringWide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl5, Which: u32, Buffer: ?[*:0]u16, BufferSize: u32, StringSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl5, Which: u32, Buffer: ?[*:0]u16, BufferSize: u32, StringSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetContextStackTrace: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl5, // TODO: what to do with BytesParamIndex 1? StartContext: ?*anyopaque, StartContextSize: u32, Frames: ?[*]DEBUG_STACK_FRAME, FramesSize: u32, // TODO: what to do with BytesParamIndex 5? FrameContexts: ?*anyopaque, FrameContextsSize: u32, FrameContextsEntrySize: u32, FramesFilled: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl5, // TODO: what to do with BytesParamIndex 1? StartContext: ?*anyopaque, StartContextSize: u32, Frames: ?[*]DEBUG_STACK_FRAME, FramesSize: u32, // TODO: what to do with BytesParamIndex 5? FrameContexts: ?*anyopaque, FrameContextsSize: u32, FrameContextsEntrySize: u32, FramesFilled: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, OutputContextStackTrace: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl5, OutputControl: u32, Frames: [*]DEBUG_STACK_FRAME, FramesSize: u32, // TODO: what to do with BytesParamIndex 4? FrameContexts: ?*anyopaque, FrameContextsSize: u32, FrameContextsEntrySize: u32, Flags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl5, OutputControl: u32, Frames: [*]DEBUG_STACK_FRAME, FramesSize: u32, // TODO: what to do with BytesParamIndex 4? FrameContexts: ?*anyopaque, FrameContextsSize: u32, FrameContextsEntrySize: u32, Flags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetStoredEventInformation: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl5, Type: ?*u32, ProcessId: ?*u32, ThreadId: ?*u32, // TODO: what to do with BytesParamIndex 4? Context: ?*anyopaque, ContextSize: u32, ContextUsed: ?*u32, // TODO: what to do with BytesParamIndex 7? ExtraInformation: ?*anyopaque, ExtraInformationSize: u32, ExtraInformationUsed: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl5, Type: ?*u32, ProcessId: ?*u32, ThreadId: ?*u32, // TODO: what to do with BytesParamIndex 4? Context: ?*anyopaque, ContextSize: u32, ContextUsed: ?*u32, // TODO: what to do with BytesParamIndex 7? ExtraInformation: ?*anyopaque, ExtraInformationSize: u32, ExtraInformationUsed: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetManagedStatus: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl5, Flags: ?*u32, WhichString: u32, String: ?[*:0]u8, StringSize: u32, StringNeeded: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl5, Flags: ?*u32, WhichString: u32, String: ?[*:0]u8, StringSize: u32, StringNeeded: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetManagedStatusWide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl5, Flags: ?*u32, WhichString: u32, String: ?[*:0]u16, StringSize: u32, StringNeeded: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl5, Flags: ?*u32, WhichString: u32, String: ?[*:0]u16, StringSize: u32, StringNeeded: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, ResetManagedStatus: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl5, Flags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl5, Flags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetStackTraceEx: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl5, FrameOffset: u64, StackOffset: u64, InstructionOffset: u64, Frames: [*]DEBUG_STACK_FRAME_EX, FramesSize: u32, FramesFilled: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl5, FrameOffset: u64, StackOffset: u64, InstructionOffset: u64, Frames: [*]DEBUG_STACK_FRAME_EX, FramesSize: u32, FramesFilled: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, OutputStackTraceEx: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl5, OutputControl: u32, Frames: ?[*]DEBUG_STACK_FRAME_EX, FramesSize: u32, Flags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl5, OutputControl: u32, Frames: ?[*]DEBUG_STACK_FRAME_EX, FramesSize: u32, Flags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetContextStackTraceEx: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl5, // TODO: what to do with BytesParamIndex 1? StartContext: ?*anyopaque, StartContextSize: u32, Frames: ?[*]DEBUG_STACK_FRAME_EX, FramesSize: u32, // TODO: what to do with BytesParamIndex 5? FrameContexts: ?*anyopaque, FrameContextsSize: u32, FrameContextsEntrySize: u32, FramesFilled: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl5, // TODO: what to do with BytesParamIndex 1? StartContext: ?*anyopaque, StartContextSize: u32, Frames: ?[*]DEBUG_STACK_FRAME_EX, FramesSize: u32, // TODO: what to do with BytesParamIndex 5? FrameContexts: ?*anyopaque, FrameContextsSize: u32, FrameContextsEntrySize: u32, FramesFilled: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, OutputContextStackTraceEx: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl5, OutputControl: u32, Frames: [*]DEBUG_STACK_FRAME_EX, FramesSize: u32, // TODO: what to do with BytesParamIndex 4? FrameContexts: ?*anyopaque, FrameContextsSize: u32, FrameContextsEntrySize: u32, Flags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl5, OutputControl: u32, Frames: [*]DEBUG_STACK_FRAME_EX, FramesSize: u32, // TODO: what to do with BytesParamIndex 4? FrameContexts: ?*anyopaque, FrameContextsSize: u32, FrameContextsEntrySize: u32, Flags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetBreakpointByGuid: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl5, Guid: ?*Guid, Bp: ?*?*IDebugBreakpoint3, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl5, Guid: ?*Guid, Bp: ?*?*IDebugBreakpoint3, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl5_GetInterrupt(self: *const T) HRESULT { return @as(*const IDebugControl5.VTable, @ptrCast(self.vtable)).GetInterrupt(@as(*const IDebugControl5, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl5_SetInterrupt(self: *const T, Flags: u32) HRESULT { return @as(*const IDebugControl5.VTable, @ptrCast(self.vtable)).SetInterrupt(@as(*const IDebugControl5, @ptrCast(self)), Flags); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl5_GetInterruptTimeout(self: *const T, Seconds: ?*u32) HRESULT { return @as(*const IDebugControl5.VTable, @ptrCast(self.vtable)).GetInterruptTimeout(@as(*const IDebugControl5, @ptrCast(self)), Seconds); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl5_SetInterruptTimeout(self: *const T, Seconds: u32) HRESULT { return @as(*const IDebugControl5.VTable, @ptrCast(self.vtable)).SetInterruptTimeout(@as(*const IDebugControl5, @ptrCast(self)), Seconds); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl5_GetLogFile(self: *const T, Buffer: ?[*:0]u8, BufferSize: u32, FileSize: ?*u32, Append: ?*BOOL) HRESULT { return @as(*const IDebugControl5.VTable, @ptrCast(self.vtable)).GetLogFile(@as(*const IDebugControl5, @ptrCast(self)), Buffer, BufferSize, FileSize, Append); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl5_OpenLogFile(self: *const T, File: ?[*:0]const u8, Append: BOOL) HRESULT { return @as(*const IDebugControl5.VTable, @ptrCast(self.vtable)).OpenLogFile(@as(*const IDebugControl5, @ptrCast(self)), File, Append); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl5_CloseLogFile(self: *const T) HRESULT { return @as(*const IDebugControl5.VTable, @ptrCast(self.vtable)).CloseLogFile(@as(*const IDebugControl5, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl5_GetLogMask(self: *const T, Mask: ?*u32) HRESULT { return @as(*const IDebugControl5.VTable, @ptrCast(self.vtable)).GetLogMask(@as(*const IDebugControl5, @ptrCast(self)), Mask); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl5_SetLogMask(self: *const T, Mask: u32) HRESULT { return @as(*const IDebugControl5.VTable, @ptrCast(self.vtable)).SetLogMask(@as(*const IDebugControl5, @ptrCast(self)), Mask); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl5_Input(self: *const T, Buffer: [*:0]u8, BufferSize: u32, InputSize: ?*u32) HRESULT { return @as(*const IDebugControl5.VTable, @ptrCast(self.vtable)).Input(@as(*const IDebugControl5, @ptrCast(self)), Buffer, BufferSize, InputSize); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl5_ReturnInput(self: *const T, Buffer: ?[*:0]const u8) HRESULT { return @as(*const IDebugControl5.VTable, @ptrCast(self.vtable)).ReturnInput(@as(*const IDebugControl5, @ptrCast(self)), Buffer); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl5_Output(self: *const T, Mask: u32, Format: ?[*:0]const u8) HRESULT { return @as(*const IDebugControl5.VTable, @ptrCast(self.vtable)).Output(@as(*const IDebugControl5, @ptrCast(self)), Mask, Format); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl5_OutputVaList(self: *const T, Mask: u32, Format: ?[*:0]const u8, Args: ?*i8) HRESULT { return @as(*const IDebugControl5.VTable, @ptrCast(self.vtable)).OutputVaList(@as(*const IDebugControl5, @ptrCast(self)), Mask, Format, Args); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl5_ControlledOutput(self: *const T, OutputControl: u32, Mask: u32, Format: ?[*:0]const u8) HRESULT { return @as(*const IDebugControl5.VTable, @ptrCast(self.vtable)).ControlledOutput(@as(*const IDebugControl5, @ptrCast(self)), OutputControl, Mask, Format); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl5_ControlledOutputVaList(self: *const T, OutputControl: u32, Mask: u32, Format: ?[*:0]const u8, Args: ?*i8) HRESULT { return @as(*const IDebugControl5.VTable, @ptrCast(self.vtable)).ControlledOutputVaList(@as(*const IDebugControl5, @ptrCast(self)), OutputControl, Mask, Format, Args); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl5_OutputPrompt(self: *const T, OutputControl: u32, Format: ?[*:0]const u8) HRESULT { return @as(*const IDebugControl5.VTable, @ptrCast(self.vtable)).OutputPrompt(@as(*const IDebugControl5, @ptrCast(self)), OutputControl, Format); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl5_OutputPromptVaList(self: *const T, OutputControl: u32, Format: ?[*:0]const u8, Args: ?*i8) HRESULT { return @as(*const IDebugControl5.VTable, @ptrCast(self.vtable)).OutputPromptVaList(@as(*const IDebugControl5, @ptrCast(self)), OutputControl, Format, Args); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl5_GetPromptText(self: *const T, Buffer: ?[*:0]u8, BufferSize: u32, TextSize: ?*u32) HRESULT { return @as(*const IDebugControl5.VTable, @ptrCast(self.vtable)).GetPromptText(@as(*const IDebugControl5, @ptrCast(self)), Buffer, BufferSize, TextSize); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl5_OutputCurrentState(self: *const T, OutputControl: u32, Flags: u32) HRESULT { return @as(*const IDebugControl5.VTable, @ptrCast(self.vtable)).OutputCurrentState(@as(*const IDebugControl5, @ptrCast(self)), OutputControl, Flags); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl5_OutputVersionInformation(self: *const T, OutputControl: u32) HRESULT { return @as(*const IDebugControl5.VTable, @ptrCast(self.vtable)).OutputVersionInformation(@as(*const IDebugControl5, @ptrCast(self)), OutputControl); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl5_GetNotifyEventHandle(self: *const T, Handle: ?*u64) HRESULT { return @as(*const IDebugControl5.VTable, @ptrCast(self.vtable)).GetNotifyEventHandle(@as(*const IDebugControl5, @ptrCast(self)), Handle); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl5_SetNotifyEventHandle(self: *const T, Handle: u64) HRESULT { return @as(*const IDebugControl5.VTable, @ptrCast(self.vtable)).SetNotifyEventHandle(@as(*const IDebugControl5, @ptrCast(self)), Handle); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl5_Assemble(self: *const T, Offset: u64, Instr: ?[*:0]const u8, EndOffset: ?*u64) HRESULT { return @as(*const IDebugControl5.VTable, @ptrCast(self.vtable)).Assemble(@as(*const IDebugControl5, @ptrCast(self)), Offset, Instr, EndOffset); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl5_Disassemble(self: *const T, Offset: u64, Flags: u32, Buffer: ?[*:0]u8, BufferSize: u32, DisassemblySize: ?*u32, EndOffset: ?*u64) HRESULT { return @as(*const IDebugControl5.VTable, @ptrCast(self.vtable)).Disassemble(@as(*const IDebugControl5, @ptrCast(self)), Offset, Flags, Buffer, BufferSize, DisassemblySize, EndOffset); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl5_GetDisassembleEffectiveOffset(self: *const T, Offset: ?*u64) HRESULT { return @as(*const IDebugControl5.VTable, @ptrCast(self.vtable)).GetDisassembleEffectiveOffset(@as(*const IDebugControl5, @ptrCast(self)), Offset); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl5_OutputDisassembly(self: *const T, OutputControl: u32, Offset: u64, Flags: u32, EndOffset: ?*u64) HRESULT { return @as(*const IDebugControl5.VTable, @ptrCast(self.vtable)).OutputDisassembly(@as(*const IDebugControl5, @ptrCast(self)), OutputControl, Offset, Flags, EndOffset); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl5_OutputDisassemblyLines(self: *const T, OutputControl: u32, PreviousLines: u32, TotalLines: u32, Offset: u64, Flags: u32, OffsetLine: ?*u32, StartOffset: ?*u64, EndOffset: ?*u64, LineOffsets: ?[*]u64) HRESULT { return @as(*const IDebugControl5.VTable, @ptrCast(self.vtable)).OutputDisassemblyLines(@as(*const IDebugControl5, @ptrCast(self)), OutputControl, PreviousLines, TotalLines, Offset, Flags, OffsetLine, StartOffset, EndOffset, LineOffsets); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl5_GetNearInstruction(self: *const T, Offset: u64, Delta: i32, NearOffset: ?*u64) HRESULT { return @as(*const IDebugControl5.VTable, @ptrCast(self.vtable)).GetNearInstruction(@as(*const IDebugControl5, @ptrCast(self)), Offset, Delta, NearOffset); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl5_GetStackTrace(self: *const T, FrameOffset: u64, StackOffset: u64, InstructionOffset: u64, Frames: [*]DEBUG_STACK_FRAME, FramesSize: u32, FramesFilled: ?*u32) HRESULT { return @as(*const IDebugControl5.VTable, @ptrCast(self.vtable)).GetStackTrace(@as(*const IDebugControl5, @ptrCast(self)), FrameOffset, StackOffset, InstructionOffset, Frames, FramesSize, FramesFilled); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl5_GetReturnOffset(self: *const T, Offset: ?*u64) HRESULT { return @as(*const IDebugControl5.VTable, @ptrCast(self.vtable)).GetReturnOffset(@as(*const IDebugControl5, @ptrCast(self)), Offset); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl5_OutputStackTrace(self: *const T, OutputControl: u32, Frames: ?[*]DEBUG_STACK_FRAME, FramesSize: u32, Flags: u32) HRESULT { return @as(*const IDebugControl5.VTable, @ptrCast(self.vtable)).OutputStackTrace(@as(*const IDebugControl5, @ptrCast(self)), OutputControl, Frames, FramesSize, Flags); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl5_GetDebuggeeType(self: *const T, Class: ?*u32, Qualifier: ?*u32) HRESULT { return @as(*const IDebugControl5.VTable, @ptrCast(self.vtable)).GetDebuggeeType(@as(*const IDebugControl5, @ptrCast(self)), Class, Qualifier); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl5_GetActualProcessorType(self: *const T, Type: ?*u32) HRESULT { return @as(*const IDebugControl5.VTable, @ptrCast(self.vtable)).GetActualProcessorType(@as(*const IDebugControl5, @ptrCast(self)), Type); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl5_GetExecutingProcessorType(self: *const T, Type: ?*u32) HRESULT { return @as(*const IDebugControl5.VTable, @ptrCast(self.vtable)).GetExecutingProcessorType(@as(*const IDebugControl5, @ptrCast(self)), Type); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl5_GetNumberPossibleExecutingProcessorTypes(self: *const T, Number: ?*u32) HRESULT { return @as(*const IDebugControl5.VTable, @ptrCast(self.vtable)).GetNumberPossibleExecutingProcessorTypes(@as(*const IDebugControl5, @ptrCast(self)), Number); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl5_GetPossibleExecutingProcessorTypes(self: *const T, Start: u32, Count: u32, Types: [*]u32) HRESULT { return @as(*const IDebugControl5.VTable, @ptrCast(self.vtable)).GetPossibleExecutingProcessorTypes(@as(*const IDebugControl5, @ptrCast(self)), Start, Count, Types); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl5_GetNumberProcessors(self: *const T, Number: ?*u32) HRESULT { return @as(*const IDebugControl5.VTable, @ptrCast(self.vtable)).GetNumberProcessors(@as(*const IDebugControl5, @ptrCast(self)), Number); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl5_GetSystemVersion(self: *const T, PlatformId: ?*u32, Major: ?*u32, Minor: ?*u32, ServicePackString: ?[*:0]u8, ServicePackStringSize: u32, ServicePackStringUsed: ?*u32, ServicePackNumber: ?*u32, BuildString: ?[*:0]u8, BuildStringSize: u32, BuildStringUsed: ?*u32) HRESULT { return @as(*const IDebugControl5.VTable, @ptrCast(self.vtable)).GetSystemVersion(@as(*const IDebugControl5, @ptrCast(self)), PlatformId, Major, Minor, ServicePackString, ServicePackStringSize, ServicePackStringUsed, ServicePackNumber, BuildString, BuildStringSize, BuildStringUsed); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl5_GetPageSize(self: *const T, Size: ?*u32) HRESULT { return @as(*const IDebugControl5.VTable, @ptrCast(self.vtable)).GetPageSize(@as(*const IDebugControl5, @ptrCast(self)), Size); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl5_IsPointer64Bit(self: *const T) HRESULT { return @as(*const IDebugControl5.VTable, @ptrCast(self.vtable)).IsPointer64Bit(@as(*const IDebugControl5, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl5_ReadBugCheckData(self: *const T, Code: ?*u32, Arg1: ?*u64, Arg2: ?*u64, Arg3: ?*u64, Arg4: ?*u64) HRESULT { return @as(*const IDebugControl5.VTable, @ptrCast(self.vtable)).ReadBugCheckData(@as(*const IDebugControl5, @ptrCast(self)), Code, Arg1, Arg2, Arg3, Arg4); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl5_GetNumberSupportedProcessorTypes(self: *const T, Number: ?*u32) HRESULT { return @as(*const IDebugControl5.VTable, @ptrCast(self.vtable)).GetNumberSupportedProcessorTypes(@as(*const IDebugControl5, @ptrCast(self)), Number); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl5_GetSupportedProcessorTypes(self: *const T, Start: u32, Count: u32, Types: [*]u32) HRESULT { return @as(*const IDebugControl5.VTable, @ptrCast(self.vtable)).GetSupportedProcessorTypes(@as(*const IDebugControl5, @ptrCast(self)), Start, Count, Types); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl5_GetProcessorTypeNames(self: *const T, Type: u32, FullNameBuffer: ?[*:0]u8, FullNameBufferSize: u32, FullNameSize: ?*u32, AbbrevNameBuffer: ?[*:0]u8, AbbrevNameBufferSize: u32, AbbrevNameSize: ?*u32) HRESULT { return @as(*const IDebugControl5.VTable, @ptrCast(self.vtable)).GetProcessorTypeNames(@as(*const IDebugControl5, @ptrCast(self)), Type, FullNameBuffer, FullNameBufferSize, FullNameSize, AbbrevNameBuffer, AbbrevNameBufferSize, AbbrevNameSize); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl5_GetEffectiveProcessorType(self: *const T, Type: ?*u32) HRESULT { return @as(*const IDebugControl5.VTable, @ptrCast(self.vtable)).GetEffectiveProcessorType(@as(*const IDebugControl5, @ptrCast(self)), Type); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl5_SetEffectiveProcessorType(self: *const T, Type: u32) HRESULT { return @as(*const IDebugControl5.VTable, @ptrCast(self.vtable)).SetEffectiveProcessorType(@as(*const IDebugControl5, @ptrCast(self)), Type); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl5_GetExecutionStatus(self: *const T, Status: ?*u32) HRESULT { return @as(*const IDebugControl5.VTable, @ptrCast(self.vtable)).GetExecutionStatus(@as(*const IDebugControl5, @ptrCast(self)), Status); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl5_SetExecutionStatus(self: *const T, Status: u32) HRESULT { return @as(*const IDebugControl5.VTable, @ptrCast(self.vtable)).SetExecutionStatus(@as(*const IDebugControl5, @ptrCast(self)), Status); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl5_GetCodeLevel(self: *const T, Level: ?*u32) HRESULT { return @as(*const IDebugControl5.VTable, @ptrCast(self.vtable)).GetCodeLevel(@as(*const IDebugControl5, @ptrCast(self)), Level); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl5_SetCodeLevel(self: *const T, Level: u32) HRESULT { return @as(*const IDebugControl5.VTable, @ptrCast(self.vtable)).SetCodeLevel(@as(*const IDebugControl5, @ptrCast(self)), Level); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl5_GetEngineOptions(self: *const T, Options: ?*u32) HRESULT { return @as(*const IDebugControl5.VTable, @ptrCast(self.vtable)).GetEngineOptions(@as(*const IDebugControl5, @ptrCast(self)), Options); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl5_AddEngineOptions(self: *const T, Options: u32) HRESULT { return @as(*const IDebugControl5.VTable, @ptrCast(self.vtable)).AddEngineOptions(@as(*const IDebugControl5, @ptrCast(self)), Options); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl5_RemoveEngineOptions(self: *const T, Options: u32) HRESULT { return @as(*const IDebugControl5.VTable, @ptrCast(self.vtable)).RemoveEngineOptions(@as(*const IDebugControl5, @ptrCast(self)), Options); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl5_SetEngineOptions(self: *const T, Options: u32) HRESULT { return @as(*const IDebugControl5.VTable, @ptrCast(self.vtable)).SetEngineOptions(@as(*const IDebugControl5, @ptrCast(self)), Options); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl5_GetSystemErrorControl(self: *const T, OutputLevel: ?*u32, BreakLevel: ?*u32) HRESULT { return @as(*const IDebugControl5.VTable, @ptrCast(self.vtable)).GetSystemErrorControl(@as(*const IDebugControl5, @ptrCast(self)), OutputLevel, BreakLevel); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl5_SetSystemErrorControl(self: *const T, OutputLevel: u32, BreakLevel: u32) HRESULT { return @as(*const IDebugControl5.VTable, @ptrCast(self.vtable)).SetSystemErrorControl(@as(*const IDebugControl5, @ptrCast(self)), OutputLevel, BreakLevel); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl5_GetTextMacro(self: *const T, Slot: u32, Buffer: ?[*:0]u8, BufferSize: u32, MacroSize: ?*u32) HRESULT { return @as(*const IDebugControl5.VTable, @ptrCast(self.vtable)).GetTextMacro(@as(*const IDebugControl5, @ptrCast(self)), Slot, Buffer, BufferSize, MacroSize); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl5_SetTextMacro(self: *const T, Slot: u32, Macro: ?[*:0]const u8) HRESULT { return @as(*const IDebugControl5.VTable, @ptrCast(self.vtable)).SetTextMacro(@as(*const IDebugControl5, @ptrCast(self)), Slot, Macro); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl5_GetRadix(self: *const T, Radix: ?*u32) HRESULT { return @as(*const IDebugControl5.VTable, @ptrCast(self.vtable)).GetRadix(@as(*const IDebugControl5, @ptrCast(self)), Radix); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl5_SetRadix(self: *const T, Radix: u32) HRESULT { return @as(*const IDebugControl5.VTable, @ptrCast(self.vtable)).SetRadix(@as(*const IDebugControl5, @ptrCast(self)), Radix); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl5_Evaluate(self: *const T, Expression: ?[*:0]const u8, DesiredType: u32, Value: ?*DEBUG_VALUE, RemainderIndex: ?*u32) HRESULT { return @as(*const IDebugControl5.VTable, @ptrCast(self.vtable)).Evaluate(@as(*const IDebugControl5, @ptrCast(self)), Expression, DesiredType, Value, RemainderIndex); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl5_CoerceValue(self: *const T, In: ?*DEBUG_VALUE, OutType: u32, Out: ?*DEBUG_VALUE) HRESULT { return @as(*const IDebugControl5.VTable, @ptrCast(self.vtable)).CoerceValue(@as(*const IDebugControl5, @ptrCast(self)), In, OutType, Out); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl5_CoerceValues(self: *const T, Count: u32, In: [*]DEBUG_VALUE, OutTypes: [*]u32, Out: [*]DEBUG_VALUE) HRESULT { return @as(*const IDebugControl5.VTable, @ptrCast(self.vtable)).CoerceValues(@as(*const IDebugControl5, @ptrCast(self)), Count, In, OutTypes, Out); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl5_Execute(self: *const T, OutputControl: u32, Command: ?[*:0]const u8, Flags: u32) HRESULT { return @as(*const IDebugControl5.VTable, @ptrCast(self.vtable)).Execute(@as(*const IDebugControl5, @ptrCast(self)), OutputControl, Command, Flags); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl5_ExecuteCommandFile(self: *const T, OutputControl: u32, CommandFile: ?[*:0]const u8, Flags: u32) HRESULT { return @as(*const IDebugControl5.VTable, @ptrCast(self.vtable)).ExecuteCommandFile(@as(*const IDebugControl5, @ptrCast(self)), OutputControl, CommandFile, Flags); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl5_GetNumberBreakpoints(self: *const T, Number: ?*u32) HRESULT { return @as(*const IDebugControl5.VTable, @ptrCast(self.vtable)).GetNumberBreakpoints(@as(*const IDebugControl5, @ptrCast(self)), Number); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl5_GetBreakpointByIndex(self: *const T, Index: u32, Bp: ?*?*IDebugBreakpoint) HRESULT { return @as(*const IDebugControl5.VTable, @ptrCast(self.vtable)).GetBreakpointByIndex(@as(*const IDebugControl5, @ptrCast(self)), Index, Bp); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl5_GetBreakpointById(self: *const T, Id: u32, Bp: ?*?*IDebugBreakpoint) HRESULT { return @as(*const IDebugControl5.VTable, @ptrCast(self.vtable)).GetBreakpointById(@as(*const IDebugControl5, @ptrCast(self)), Id, Bp); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl5_GetBreakpointParameters(self: *const T, Count: u32, Ids: ?[*]u32, Start: u32, Params: [*]DEBUG_BREAKPOINT_PARAMETERS) HRESULT { return @as(*const IDebugControl5.VTable, @ptrCast(self.vtable)).GetBreakpointParameters(@as(*const IDebugControl5, @ptrCast(self)), Count, Ids, Start, Params); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl5_AddBreakpoint(self: *const T, Type: u32, DesiredId: u32, Bp: ?*?*IDebugBreakpoint) HRESULT { return @as(*const IDebugControl5.VTable, @ptrCast(self.vtable)).AddBreakpoint(@as(*const IDebugControl5, @ptrCast(self)), Type, DesiredId, Bp); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl5_RemoveBreakpoint(self: *const T, Bp: ?*IDebugBreakpoint) HRESULT { return @as(*const IDebugControl5.VTable, @ptrCast(self.vtable)).RemoveBreakpoint(@as(*const IDebugControl5, @ptrCast(self)), Bp); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl5_AddExtension(self: *const T, Path: ?[*:0]const u8, Flags: u32, Handle: ?*u64) HRESULT { return @as(*const IDebugControl5.VTable, @ptrCast(self.vtable)).AddExtension(@as(*const IDebugControl5, @ptrCast(self)), Path, Flags, Handle); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl5_RemoveExtension(self: *const T, Handle: u64) HRESULT { return @as(*const IDebugControl5.VTable, @ptrCast(self.vtable)).RemoveExtension(@as(*const IDebugControl5, @ptrCast(self)), Handle); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl5_GetExtensionByPath(self: *const T, Path: ?[*:0]const u8, Handle: ?*u64) HRESULT { return @as(*const IDebugControl5.VTable, @ptrCast(self.vtable)).GetExtensionByPath(@as(*const IDebugControl5, @ptrCast(self)), Path, Handle); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl5_CallExtension(self: *const T, Handle: u64, Function: ?[*:0]const u8, Arguments: ?[*:0]const u8) HRESULT { return @as(*const IDebugControl5.VTable, @ptrCast(self.vtable)).CallExtension(@as(*const IDebugControl5, @ptrCast(self)), Handle, Function, Arguments); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl5_GetExtensionFunction(self: *const T, Handle: u64, FuncName: ?[*:0]const u8, Function: ?*?FARPROC) HRESULT { return @as(*const IDebugControl5.VTable, @ptrCast(self.vtable)).GetExtensionFunction(@as(*const IDebugControl5, @ptrCast(self)), Handle, FuncName, Function); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl5_GetWindbgExtensionApis32(self: *const T, Api: ?*WINDBG_EXTENSION_APIS32) HRESULT { return @as(*const IDebugControl5.VTable, @ptrCast(self.vtable)).GetWindbgExtensionApis32(@as(*const IDebugControl5, @ptrCast(self)), Api); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl5_GetWindbgExtensionApis64(self: *const T, Api: ?*WINDBG_EXTENSION_APIS64) HRESULT { return @as(*const IDebugControl5.VTable, @ptrCast(self.vtable)).GetWindbgExtensionApis64(@as(*const IDebugControl5, @ptrCast(self)), Api); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl5_GetNumberEventFilters(self: *const T, SpecificEvents: ?*u32, SpecificExceptions: ?*u32, ArbitraryExceptions: ?*u32) HRESULT { return @as(*const IDebugControl5.VTable, @ptrCast(self.vtable)).GetNumberEventFilters(@as(*const IDebugControl5, @ptrCast(self)), SpecificEvents, SpecificExceptions, ArbitraryExceptions); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl5_GetEventFilterText(self: *const T, Index: u32, Buffer: ?[*:0]u8, BufferSize: u32, TextSize: ?*u32) HRESULT { return @as(*const IDebugControl5.VTable, @ptrCast(self.vtable)).GetEventFilterText(@as(*const IDebugControl5, @ptrCast(self)), Index, Buffer, BufferSize, TextSize); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl5_GetEventFilterCommand(self: *const T, Index: u32, Buffer: ?[*:0]u8, BufferSize: u32, CommandSize: ?*u32) HRESULT { return @as(*const IDebugControl5.VTable, @ptrCast(self.vtable)).GetEventFilterCommand(@as(*const IDebugControl5, @ptrCast(self)), Index, Buffer, BufferSize, CommandSize); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl5_SetEventFilterCommand(self: *const T, Index: u32, Command: ?[*:0]const u8) HRESULT { return @as(*const IDebugControl5.VTable, @ptrCast(self.vtable)).SetEventFilterCommand(@as(*const IDebugControl5, @ptrCast(self)), Index, Command); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl5_GetSpecificFilterParameters(self: *const T, Start: u32, Count: u32, Params: [*]DEBUG_SPECIFIC_FILTER_PARAMETERS) HRESULT { return @as(*const IDebugControl5.VTable, @ptrCast(self.vtable)).GetSpecificFilterParameters(@as(*const IDebugControl5, @ptrCast(self)), Start, Count, Params); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl5_SetSpecificFilterParameters(self: *const T, Start: u32, Count: u32, Params: [*]DEBUG_SPECIFIC_FILTER_PARAMETERS) HRESULT { return @as(*const IDebugControl5.VTable, @ptrCast(self.vtable)).SetSpecificFilterParameters(@as(*const IDebugControl5, @ptrCast(self)), Start, Count, Params); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl5_GetSpecificFilterArgument(self: *const T, Index: u32, Buffer: ?[*:0]u8, BufferSize: u32, ArgumentSize: ?*u32) HRESULT { return @as(*const IDebugControl5.VTable, @ptrCast(self.vtable)).GetSpecificFilterArgument(@as(*const IDebugControl5, @ptrCast(self)), Index, Buffer, BufferSize, ArgumentSize); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl5_SetSpecificFilterArgument(self: *const T, Index: u32, Argument: ?[*:0]const u8) HRESULT { return @as(*const IDebugControl5.VTable, @ptrCast(self.vtable)).SetSpecificFilterArgument(@as(*const IDebugControl5, @ptrCast(self)), Index, Argument); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl5_GetExceptionFilterParameters(self: *const T, Count: u32, Codes: ?[*]u32, Start: u32, Params: [*]DEBUG_EXCEPTION_FILTER_PARAMETERS) HRESULT { return @as(*const IDebugControl5.VTable, @ptrCast(self.vtable)).GetExceptionFilterParameters(@as(*const IDebugControl5, @ptrCast(self)), Count, Codes, Start, Params); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl5_SetExceptionFilterParameters(self: *const T, Count: u32, Params: [*]DEBUG_EXCEPTION_FILTER_PARAMETERS) HRESULT { return @as(*const IDebugControl5.VTable, @ptrCast(self.vtable)).SetExceptionFilterParameters(@as(*const IDebugControl5, @ptrCast(self)), Count, Params); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl5_GetExceptionFilterSecondCommand(self: *const T, Index: u32, Buffer: ?[*:0]u8, BufferSize: u32, CommandSize: ?*u32) HRESULT { return @as(*const IDebugControl5.VTable, @ptrCast(self.vtable)).GetExceptionFilterSecondCommand(@as(*const IDebugControl5, @ptrCast(self)), Index, Buffer, BufferSize, CommandSize); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl5_SetExceptionFilterSecondCommand(self: *const T, Index: u32, Command: ?[*:0]const u8) HRESULT { return @as(*const IDebugControl5.VTable, @ptrCast(self.vtable)).SetExceptionFilterSecondCommand(@as(*const IDebugControl5, @ptrCast(self)), Index, Command); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl5_WaitForEvent(self: *const T, Flags: u32, Timeout: u32) HRESULT { return @as(*const IDebugControl5.VTable, @ptrCast(self.vtable)).WaitForEvent(@as(*const IDebugControl5, @ptrCast(self)), Flags, Timeout); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl5_GetLastEventInformation(self: *const T, Type: ?*u32, ProcessId: ?*u32, ThreadId: ?*u32, ExtraInformation: ?*anyopaque, ExtraInformationSize: u32, ExtraInformationUsed: ?*u32, Description: ?[*:0]u8, DescriptionSize: u32, DescriptionUsed: ?*u32) HRESULT { return @as(*const IDebugControl5.VTable, @ptrCast(self.vtable)).GetLastEventInformation(@as(*const IDebugControl5, @ptrCast(self)), Type, ProcessId, ThreadId, ExtraInformation, ExtraInformationSize, ExtraInformationUsed, Description, DescriptionSize, DescriptionUsed); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl5_GetCurrentTimeDate(self: *const T, TimeDate: ?*u32) HRESULT { return @as(*const IDebugControl5.VTable, @ptrCast(self.vtable)).GetCurrentTimeDate(@as(*const IDebugControl5, @ptrCast(self)), TimeDate); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl5_GetCurrentSystemUpTime(self: *const T, UpTime: ?*u32) HRESULT { return @as(*const IDebugControl5.VTable, @ptrCast(self.vtable)).GetCurrentSystemUpTime(@as(*const IDebugControl5, @ptrCast(self)), UpTime); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl5_GetDumpFormatFlags(self: *const T, FormatFlags: ?*u32) HRESULT { return @as(*const IDebugControl5.VTable, @ptrCast(self.vtable)).GetDumpFormatFlags(@as(*const IDebugControl5, @ptrCast(self)), FormatFlags); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl5_GetNumberTextReplacements(self: *const T, NumRepl: ?*u32) HRESULT { return @as(*const IDebugControl5.VTable, @ptrCast(self.vtable)).GetNumberTextReplacements(@as(*const IDebugControl5, @ptrCast(self)), NumRepl); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl5_GetTextReplacement(self: *const T, SrcText: ?[*:0]const u8, Index: u32, SrcBuffer: ?[*:0]u8, SrcBufferSize: u32, SrcSize: ?*u32, DstBuffer: ?[*:0]u8, DstBufferSize: u32, DstSize: ?*u32) HRESULT { return @as(*const IDebugControl5.VTable, @ptrCast(self.vtable)).GetTextReplacement(@as(*const IDebugControl5, @ptrCast(self)), SrcText, Index, SrcBuffer, SrcBufferSize, SrcSize, DstBuffer, DstBufferSize, DstSize); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl5_SetTextReplacement(self: *const T, SrcText: ?[*:0]const u8, DstText: ?[*:0]const u8) HRESULT { return @as(*const IDebugControl5.VTable, @ptrCast(self.vtable)).SetTextReplacement(@as(*const IDebugControl5, @ptrCast(self)), SrcText, DstText); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl5_RemoveTextReplacements(self: *const T) HRESULT { return @as(*const IDebugControl5.VTable, @ptrCast(self.vtable)).RemoveTextReplacements(@as(*const IDebugControl5, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl5_OutputTextReplacements(self: *const T, OutputControl: u32, Flags: u32) HRESULT { return @as(*const IDebugControl5.VTable, @ptrCast(self.vtable)).OutputTextReplacements(@as(*const IDebugControl5, @ptrCast(self)), OutputControl, Flags); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl5_GetAssemblyOptions(self: *const T, Options: ?*u32) HRESULT { return @as(*const IDebugControl5.VTable, @ptrCast(self.vtable)).GetAssemblyOptions(@as(*const IDebugControl5, @ptrCast(self)), Options); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl5_AddAssemblyOptions(self: *const T, Options: u32) HRESULT { return @as(*const IDebugControl5.VTable, @ptrCast(self.vtable)).AddAssemblyOptions(@as(*const IDebugControl5, @ptrCast(self)), Options); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl5_RemoveAssemblyOptions(self: *const T, Options: u32) HRESULT { return @as(*const IDebugControl5.VTable, @ptrCast(self.vtable)).RemoveAssemblyOptions(@as(*const IDebugControl5, @ptrCast(self)), Options); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl5_SetAssemblyOptions(self: *const T, Options: u32) HRESULT { return @as(*const IDebugControl5.VTable, @ptrCast(self.vtable)).SetAssemblyOptions(@as(*const IDebugControl5, @ptrCast(self)), Options); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl5_GetExpressionSyntax(self: *const T, Flags: ?*u32) HRESULT { return @as(*const IDebugControl5.VTable, @ptrCast(self.vtable)).GetExpressionSyntax(@as(*const IDebugControl5, @ptrCast(self)), Flags); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl5_SetExpressionSyntax(self: *const T, Flags: u32) HRESULT { return @as(*const IDebugControl5.VTable, @ptrCast(self.vtable)).SetExpressionSyntax(@as(*const IDebugControl5, @ptrCast(self)), Flags); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl5_SetExpressionSyntaxByName(self: *const T, AbbrevName: ?[*:0]const u8) HRESULT { return @as(*const IDebugControl5.VTable, @ptrCast(self.vtable)).SetExpressionSyntaxByName(@as(*const IDebugControl5, @ptrCast(self)), AbbrevName); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl5_GetNumberExpressionSyntaxes(self: *const T, Number: ?*u32) HRESULT { return @as(*const IDebugControl5.VTable, @ptrCast(self.vtable)).GetNumberExpressionSyntaxes(@as(*const IDebugControl5, @ptrCast(self)), Number); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl5_GetExpressionSyntaxNames(self: *const T, Index: u32, FullNameBuffer: ?[*:0]u8, FullNameBufferSize: u32, FullNameSize: ?*u32, AbbrevNameBuffer: ?[*:0]u8, AbbrevNameBufferSize: u32, AbbrevNameSize: ?*u32) HRESULT { return @as(*const IDebugControl5.VTable, @ptrCast(self.vtable)).GetExpressionSyntaxNames(@as(*const IDebugControl5, @ptrCast(self)), Index, FullNameBuffer, FullNameBufferSize, FullNameSize, AbbrevNameBuffer, AbbrevNameBufferSize, AbbrevNameSize); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl5_GetNumberEvents(self: *const T, Events: ?*u32) HRESULT { return @as(*const IDebugControl5.VTable, @ptrCast(self.vtable)).GetNumberEvents(@as(*const IDebugControl5, @ptrCast(self)), Events); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl5_GetEventIndexDescription(self: *const T, Index: u32, Which: u32, Buffer: ?PSTR, BufferSize: u32, DescSize: ?*u32) HRESULT { return @as(*const IDebugControl5.VTable, @ptrCast(self.vtable)).GetEventIndexDescription(@as(*const IDebugControl5, @ptrCast(self)), Index, Which, Buffer, BufferSize, DescSize); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl5_GetCurrentEventIndex(self: *const T, Index: ?*u32) HRESULT { return @as(*const IDebugControl5.VTable, @ptrCast(self.vtable)).GetCurrentEventIndex(@as(*const IDebugControl5, @ptrCast(self)), Index); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl5_SetNextEventIndex(self: *const T, Relation: u32, Value: u32, NextIndex: ?*u32) HRESULT { return @as(*const IDebugControl5.VTable, @ptrCast(self.vtable)).SetNextEventIndex(@as(*const IDebugControl5, @ptrCast(self)), Relation, Value, NextIndex); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl5_GetLogFileWide(self: *const T, Buffer: ?[*:0]u16, BufferSize: u32, FileSize: ?*u32, Append: ?*BOOL) HRESULT { return @as(*const IDebugControl5.VTable, @ptrCast(self.vtable)).GetLogFileWide(@as(*const IDebugControl5, @ptrCast(self)), Buffer, BufferSize, FileSize, Append); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl5_OpenLogFileWide(self: *const T, File: ?[*:0]const u16, Append: BOOL) HRESULT { return @as(*const IDebugControl5.VTable, @ptrCast(self.vtable)).OpenLogFileWide(@as(*const IDebugControl5, @ptrCast(self)), File, Append); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl5_InputWide(self: *const T, Buffer: [*:0]u16, BufferSize: u32, InputSize: ?*u32) HRESULT { return @as(*const IDebugControl5.VTable, @ptrCast(self.vtable)).InputWide(@as(*const IDebugControl5, @ptrCast(self)), Buffer, BufferSize, InputSize); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl5_ReturnInputWide(self: *const T, Buffer: ?[*:0]const u16) HRESULT { return @as(*const IDebugControl5.VTable, @ptrCast(self.vtable)).ReturnInputWide(@as(*const IDebugControl5, @ptrCast(self)), Buffer); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl5_OutputWide(self: *const T, Mask: u32, Format: ?[*:0]const u16) HRESULT { return @as(*const IDebugControl5.VTable, @ptrCast(self.vtable)).OutputWide(@as(*const IDebugControl5, @ptrCast(self)), Mask, Format); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl5_OutputVaListWide(self: *const T, Mask: u32, Format: ?[*:0]const u16, Args: ?*i8) HRESULT { return @as(*const IDebugControl5.VTable, @ptrCast(self.vtable)).OutputVaListWide(@as(*const IDebugControl5, @ptrCast(self)), Mask, Format, Args); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl5_ControlledOutputWide(self: *const T, OutputControl: u32, Mask: u32, Format: ?[*:0]const u16) HRESULT { return @as(*const IDebugControl5.VTable, @ptrCast(self.vtable)).ControlledOutputWide(@as(*const IDebugControl5, @ptrCast(self)), OutputControl, Mask, Format); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl5_ControlledOutputVaListWide(self: *const T, OutputControl: u32, Mask: u32, Format: ?[*:0]const u16, Args: ?*i8) HRESULT { return @as(*const IDebugControl5.VTable, @ptrCast(self.vtable)).ControlledOutputVaListWide(@as(*const IDebugControl5, @ptrCast(self)), OutputControl, Mask, Format, Args); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl5_OutputPromptWide(self: *const T, OutputControl: u32, Format: ?[*:0]const u16) HRESULT { return @as(*const IDebugControl5.VTable, @ptrCast(self.vtable)).OutputPromptWide(@as(*const IDebugControl5, @ptrCast(self)), OutputControl, Format); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl5_OutputPromptVaListWide(self: *const T, OutputControl: u32, Format: ?[*:0]const u16, Args: ?*i8) HRESULT { return @as(*const IDebugControl5.VTable, @ptrCast(self.vtable)).OutputPromptVaListWide(@as(*const IDebugControl5, @ptrCast(self)), OutputControl, Format, Args); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl5_GetPromptTextWide(self: *const T, Buffer: ?[*:0]u16, BufferSize: u32, TextSize: ?*u32) HRESULT { return @as(*const IDebugControl5.VTable, @ptrCast(self.vtable)).GetPromptTextWide(@as(*const IDebugControl5, @ptrCast(self)), Buffer, BufferSize, TextSize); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl5_AssembleWide(self: *const T, Offset: u64, Instr: ?[*:0]const u16, EndOffset: ?*u64) HRESULT { return @as(*const IDebugControl5.VTable, @ptrCast(self.vtable)).AssembleWide(@as(*const IDebugControl5, @ptrCast(self)), Offset, Instr, EndOffset); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl5_DisassembleWide(self: *const T, Offset: u64, Flags: u32, Buffer: ?[*:0]u16, BufferSize: u32, DisassemblySize: ?*u32, EndOffset: ?*u64) HRESULT { return @as(*const IDebugControl5.VTable, @ptrCast(self.vtable)).DisassembleWide(@as(*const IDebugControl5, @ptrCast(self)), Offset, Flags, Buffer, BufferSize, DisassemblySize, EndOffset); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl5_GetProcessorTypeNamesWide(self: *const T, Type: u32, FullNameBuffer: ?[*:0]u16, FullNameBufferSize: u32, FullNameSize: ?*u32, AbbrevNameBuffer: ?[*:0]u16, AbbrevNameBufferSize: u32, AbbrevNameSize: ?*u32) HRESULT { return @as(*const IDebugControl5.VTable, @ptrCast(self.vtable)).GetProcessorTypeNamesWide(@as(*const IDebugControl5, @ptrCast(self)), Type, FullNameBuffer, FullNameBufferSize, FullNameSize, AbbrevNameBuffer, AbbrevNameBufferSize, AbbrevNameSize); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl5_GetTextMacroWide(self: *const T, Slot: u32, Buffer: ?[*:0]u16, BufferSize: u32, MacroSize: ?*u32) HRESULT { return @as(*const IDebugControl5.VTable, @ptrCast(self.vtable)).GetTextMacroWide(@as(*const IDebugControl5, @ptrCast(self)), Slot, Buffer, BufferSize, MacroSize); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl5_SetTextMacroWide(self: *const T, Slot: u32, Macro: ?[*:0]const u16) HRESULT { return @as(*const IDebugControl5.VTable, @ptrCast(self.vtable)).SetTextMacroWide(@as(*const IDebugControl5, @ptrCast(self)), Slot, Macro); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl5_EvaluateWide(self: *const T, Expression: ?[*:0]const u16, DesiredType: u32, Value: ?*DEBUG_VALUE, RemainderIndex: ?*u32) HRESULT { return @as(*const IDebugControl5.VTable, @ptrCast(self.vtable)).EvaluateWide(@as(*const IDebugControl5, @ptrCast(self)), Expression, DesiredType, Value, RemainderIndex); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl5_ExecuteWide(self: *const T, OutputControl: u32, Command: ?[*:0]const u16, Flags: u32) HRESULT { return @as(*const IDebugControl5.VTable, @ptrCast(self.vtable)).ExecuteWide(@as(*const IDebugControl5, @ptrCast(self)), OutputControl, Command, Flags); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl5_ExecuteCommandFileWide(self: *const T, OutputControl: u32, CommandFile: ?[*:0]const u16, Flags: u32) HRESULT { return @as(*const IDebugControl5.VTable, @ptrCast(self.vtable)).ExecuteCommandFileWide(@as(*const IDebugControl5, @ptrCast(self)), OutputControl, CommandFile, Flags); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl5_GetBreakpointByIndex2(self: *const T, Index: u32, Bp: ?*?*IDebugBreakpoint2) HRESULT { return @as(*const IDebugControl5.VTable, @ptrCast(self.vtable)).GetBreakpointByIndex2(@as(*const IDebugControl5, @ptrCast(self)), Index, Bp); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl5_GetBreakpointById2(self: *const T, Id: u32, Bp: ?*?*IDebugBreakpoint2) HRESULT { return @as(*const IDebugControl5.VTable, @ptrCast(self.vtable)).GetBreakpointById2(@as(*const IDebugControl5, @ptrCast(self)), Id, Bp); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl5_AddBreakpoint2(self: *const T, Type: u32, DesiredId: u32, Bp: ?*?*IDebugBreakpoint2) HRESULT { return @as(*const IDebugControl5.VTable, @ptrCast(self.vtable)).AddBreakpoint2(@as(*const IDebugControl5, @ptrCast(self)), Type, DesiredId, Bp); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl5_RemoveBreakpoint2(self: *const T, Bp: ?*IDebugBreakpoint2) HRESULT { return @as(*const IDebugControl5.VTable, @ptrCast(self.vtable)).RemoveBreakpoint2(@as(*const IDebugControl5, @ptrCast(self)), Bp); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl5_AddExtensionWide(self: *const T, Path: ?[*:0]const u16, Flags: u32, Handle: ?*u64) HRESULT { return @as(*const IDebugControl5.VTable, @ptrCast(self.vtable)).AddExtensionWide(@as(*const IDebugControl5, @ptrCast(self)), Path, Flags, Handle); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl5_GetExtensionByPathWide(self: *const T, Path: ?[*:0]const u16, Handle: ?*u64) HRESULT { return @as(*const IDebugControl5.VTable, @ptrCast(self.vtable)).GetExtensionByPathWide(@as(*const IDebugControl5, @ptrCast(self)), Path, Handle); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl5_CallExtensionWide(self: *const T, Handle: u64, Function: ?[*:0]const u16, Arguments: ?[*:0]const u16) HRESULT { return @as(*const IDebugControl5.VTable, @ptrCast(self.vtable)).CallExtensionWide(@as(*const IDebugControl5, @ptrCast(self)), Handle, Function, Arguments); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl5_GetExtensionFunctionWide(self: *const T, Handle: u64, FuncName: ?[*:0]const u16, Function: ?*?FARPROC) HRESULT { return @as(*const IDebugControl5.VTable, @ptrCast(self.vtable)).GetExtensionFunctionWide(@as(*const IDebugControl5, @ptrCast(self)), Handle, FuncName, Function); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl5_GetEventFilterTextWide(self: *const T, Index: u32, Buffer: ?[*:0]u16, BufferSize: u32, TextSize: ?*u32) HRESULT { return @as(*const IDebugControl5.VTable, @ptrCast(self.vtable)).GetEventFilterTextWide(@as(*const IDebugControl5, @ptrCast(self)), Index, Buffer, BufferSize, TextSize); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl5_GetEventFilterCommandWide(self: *const T, Index: u32, Buffer: ?[*:0]u16, BufferSize: u32, CommandSize: ?*u32) HRESULT { return @as(*const IDebugControl5.VTable, @ptrCast(self.vtable)).GetEventFilterCommandWide(@as(*const IDebugControl5, @ptrCast(self)), Index, Buffer, BufferSize, CommandSize); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl5_SetEventFilterCommandWide(self: *const T, Index: u32, Command: ?[*:0]const u16) HRESULT { return @as(*const IDebugControl5.VTable, @ptrCast(self.vtable)).SetEventFilterCommandWide(@as(*const IDebugControl5, @ptrCast(self)), Index, Command); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl5_GetSpecificFilterArgumentWide(self: *const T, Index: u32, Buffer: ?[*:0]u16, BufferSize: u32, ArgumentSize: ?*u32) HRESULT { return @as(*const IDebugControl5.VTable, @ptrCast(self.vtable)).GetSpecificFilterArgumentWide(@as(*const IDebugControl5, @ptrCast(self)), Index, Buffer, BufferSize, ArgumentSize); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl5_SetSpecificFilterArgumentWide(self: *const T, Index: u32, Argument: ?[*:0]const u16) HRESULT { return @as(*const IDebugControl5.VTable, @ptrCast(self.vtable)).SetSpecificFilterArgumentWide(@as(*const IDebugControl5, @ptrCast(self)), Index, Argument); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl5_GetExceptionFilterSecondCommandWide(self: *const T, Index: u32, Buffer: ?[*:0]u16, BufferSize: u32, CommandSize: ?*u32) HRESULT { return @as(*const IDebugControl5.VTable, @ptrCast(self.vtable)).GetExceptionFilterSecondCommandWide(@as(*const IDebugControl5, @ptrCast(self)), Index, Buffer, BufferSize, CommandSize); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl5_SetExceptionFilterSecondCommandWide(self: *const T, Index: u32, Command: ?[*:0]const u16) HRESULT { return @as(*const IDebugControl5.VTable, @ptrCast(self.vtable)).SetExceptionFilterSecondCommandWide(@as(*const IDebugControl5, @ptrCast(self)), Index, Command); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl5_GetLastEventInformationWide(self: *const T, Type: ?*u32, ProcessId: ?*u32, ThreadId: ?*u32, ExtraInformation: ?*anyopaque, ExtraInformationSize: u32, ExtraInformationUsed: ?*u32, Description: ?[*:0]u16, DescriptionSize: u32, DescriptionUsed: ?*u32) HRESULT { return @as(*const IDebugControl5.VTable, @ptrCast(self.vtable)).GetLastEventInformationWide(@as(*const IDebugControl5, @ptrCast(self)), Type, ProcessId, ThreadId, ExtraInformation, ExtraInformationSize, ExtraInformationUsed, Description, DescriptionSize, DescriptionUsed); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl5_GetTextReplacementWide(self: *const T, SrcText: ?[*:0]const u16, Index: u32, SrcBuffer: ?[*:0]u16, SrcBufferSize: u32, SrcSize: ?*u32, DstBuffer: ?[*:0]u16, DstBufferSize: u32, DstSize: ?*u32) HRESULT { return @as(*const IDebugControl5.VTable, @ptrCast(self.vtable)).GetTextReplacementWide(@as(*const IDebugControl5, @ptrCast(self)), SrcText, Index, SrcBuffer, SrcBufferSize, SrcSize, DstBuffer, DstBufferSize, DstSize); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl5_SetTextReplacementWide(self: *const T, SrcText: ?[*:0]const u16, DstText: ?[*:0]const u16) HRESULT { return @as(*const IDebugControl5.VTable, @ptrCast(self.vtable)).SetTextReplacementWide(@as(*const IDebugControl5, @ptrCast(self)), SrcText, DstText); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl5_SetExpressionSyntaxByNameWide(self: *const T, AbbrevName: ?[*:0]const u16) HRESULT { return @as(*const IDebugControl5.VTable, @ptrCast(self.vtable)).SetExpressionSyntaxByNameWide(@as(*const IDebugControl5, @ptrCast(self)), AbbrevName); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl5_GetExpressionSyntaxNamesWide(self: *const T, Index: u32, FullNameBuffer: ?[*:0]u16, FullNameBufferSize: u32, FullNameSize: ?*u32, AbbrevNameBuffer: ?[*:0]u16, AbbrevNameBufferSize: u32, AbbrevNameSize: ?*u32) HRESULT { return @as(*const IDebugControl5.VTable, @ptrCast(self.vtable)).GetExpressionSyntaxNamesWide(@as(*const IDebugControl5, @ptrCast(self)), Index, FullNameBuffer, FullNameBufferSize, FullNameSize, AbbrevNameBuffer, AbbrevNameBufferSize, AbbrevNameSize); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl5_GetEventIndexDescriptionWide(self: *const T, Index: u32, Which: u32, Buffer: ?PWSTR, BufferSize: u32, DescSize: ?*u32) HRESULT { return @as(*const IDebugControl5.VTable, @ptrCast(self.vtable)).GetEventIndexDescriptionWide(@as(*const IDebugControl5, @ptrCast(self)), Index, Which, Buffer, BufferSize, DescSize); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl5_GetLogFile2(self: *const T, Buffer: ?[*:0]u8, BufferSize: u32, FileSize: ?*u32, Flags: ?*u32) HRESULT { return @as(*const IDebugControl5.VTable, @ptrCast(self.vtable)).GetLogFile2(@as(*const IDebugControl5, @ptrCast(self)), Buffer, BufferSize, FileSize, Flags); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl5_OpenLogFile2(self: *const T, File: ?[*:0]const u8, Flags: u32) HRESULT { return @as(*const IDebugControl5.VTable, @ptrCast(self.vtable)).OpenLogFile2(@as(*const IDebugControl5, @ptrCast(self)), File, Flags); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl5_GetLogFile2Wide(self: *const T, Buffer: ?[*:0]u16, BufferSize: u32, FileSize: ?*u32, Flags: ?*u32) HRESULT { return @as(*const IDebugControl5.VTable, @ptrCast(self.vtable)).GetLogFile2Wide(@as(*const IDebugControl5, @ptrCast(self)), Buffer, BufferSize, FileSize, Flags); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl5_OpenLogFile2Wide(self: *const T, File: ?[*:0]const u16, Flags: u32) HRESULT { return @as(*const IDebugControl5.VTable, @ptrCast(self.vtable)).OpenLogFile2Wide(@as(*const IDebugControl5, @ptrCast(self)), File, Flags); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl5_GetSystemVersionValues(self: *const T, PlatformId: ?*u32, Win32Major: ?*u32, Win32Minor: ?*u32, KdMajor: ?*u32, KdMinor: ?*u32) HRESULT { return @as(*const IDebugControl5.VTable, @ptrCast(self.vtable)).GetSystemVersionValues(@as(*const IDebugControl5, @ptrCast(self)), PlatformId, Win32Major, Win32Minor, KdMajor, KdMinor); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl5_GetSystemVersionString(self: *const T, Which: u32, Buffer: ?[*:0]u8, BufferSize: u32, StringSize: ?*u32) HRESULT { return @as(*const IDebugControl5.VTable, @ptrCast(self.vtable)).GetSystemVersionString(@as(*const IDebugControl5, @ptrCast(self)), Which, Buffer, BufferSize, StringSize); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl5_GetSystemVersionStringWide(self: *const T, Which: u32, Buffer: ?[*:0]u16, BufferSize: u32, StringSize: ?*u32) HRESULT { return @as(*const IDebugControl5.VTable, @ptrCast(self.vtable)).GetSystemVersionStringWide(@as(*const IDebugControl5, @ptrCast(self)), Which, Buffer, BufferSize, StringSize); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl5_GetContextStackTrace(self: *const T, StartContext: ?*anyopaque, StartContextSize: u32, Frames: ?[*]DEBUG_STACK_FRAME, FramesSize: u32, FrameContexts: ?*anyopaque, FrameContextsSize: u32, FrameContextsEntrySize: u32, FramesFilled: ?*u32) HRESULT { return @as(*const IDebugControl5.VTable, @ptrCast(self.vtable)).GetContextStackTrace(@as(*const IDebugControl5, @ptrCast(self)), StartContext, StartContextSize, Frames, FramesSize, FrameContexts, FrameContextsSize, FrameContextsEntrySize, FramesFilled); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl5_OutputContextStackTrace(self: *const T, OutputControl: u32, Frames: [*]DEBUG_STACK_FRAME, FramesSize: u32, FrameContexts: ?*anyopaque, FrameContextsSize: u32, FrameContextsEntrySize: u32, Flags: u32) HRESULT { return @as(*const IDebugControl5.VTable, @ptrCast(self.vtable)).OutputContextStackTrace(@as(*const IDebugControl5, @ptrCast(self)), OutputControl, Frames, FramesSize, FrameContexts, FrameContextsSize, FrameContextsEntrySize, Flags); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl5_GetStoredEventInformation(self: *const T, Type: ?*u32, ProcessId: ?*u32, ThreadId: ?*u32, Context: ?*anyopaque, ContextSize: u32, ContextUsed: ?*u32, ExtraInformation: ?*anyopaque, ExtraInformationSize: u32, ExtraInformationUsed: ?*u32) HRESULT { return @as(*const IDebugControl5.VTable, @ptrCast(self.vtable)).GetStoredEventInformation(@as(*const IDebugControl5, @ptrCast(self)), Type, ProcessId, ThreadId, Context, ContextSize, ContextUsed, ExtraInformation, ExtraInformationSize, ExtraInformationUsed); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl5_GetManagedStatus(self: *const T, Flags: ?*u32, WhichString: u32, String: ?[*:0]u8, StringSize: u32, StringNeeded: ?*u32) HRESULT { return @as(*const IDebugControl5.VTable, @ptrCast(self.vtable)).GetManagedStatus(@as(*const IDebugControl5, @ptrCast(self)), Flags, WhichString, String, StringSize, StringNeeded); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl5_GetManagedStatusWide(self: *const T, Flags: ?*u32, WhichString: u32, String: ?[*:0]u16, StringSize: u32, StringNeeded: ?*u32) HRESULT { return @as(*const IDebugControl5.VTable, @ptrCast(self.vtable)).GetManagedStatusWide(@as(*const IDebugControl5, @ptrCast(self)), Flags, WhichString, String, StringSize, StringNeeded); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl5_ResetManagedStatus(self: *const T, Flags: u32) HRESULT { return @as(*const IDebugControl5.VTable, @ptrCast(self.vtable)).ResetManagedStatus(@as(*const IDebugControl5, @ptrCast(self)), Flags); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl5_GetStackTraceEx(self: *const T, FrameOffset: u64, StackOffset: u64, InstructionOffset: u64, Frames: [*]DEBUG_STACK_FRAME_EX, FramesSize: u32, FramesFilled: ?*u32) HRESULT { return @as(*const IDebugControl5.VTable, @ptrCast(self.vtable)).GetStackTraceEx(@as(*const IDebugControl5, @ptrCast(self)), FrameOffset, StackOffset, InstructionOffset, Frames, FramesSize, FramesFilled); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl5_OutputStackTraceEx(self: *const T, OutputControl: u32, Frames: ?[*]DEBUG_STACK_FRAME_EX, FramesSize: u32, Flags: u32) HRESULT { return @as(*const IDebugControl5.VTable, @ptrCast(self.vtable)).OutputStackTraceEx(@as(*const IDebugControl5, @ptrCast(self)), OutputControl, Frames, FramesSize, Flags); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl5_GetContextStackTraceEx(self: *const T, StartContext: ?*anyopaque, StartContextSize: u32, Frames: ?[*]DEBUG_STACK_FRAME_EX, FramesSize: u32, FrameContexts: ?*anyopaque, FrameContextsSize: u32, FrameContextsEntrySize: u32, FramesFilled: ?*u32) HRESULT { return @as(*const IDebugControl5.VTable, @ptrCast(self.vtable)).GetContextStackTraceEx(@as(*const IDebugControl5, @ptrCast(self)), StartContext, StartContextSize, Frames, FramesSize, FrameContexts, FrameContextsSize, FrameContextsEntrySize, FramesFilled); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl5_OutputContextStackTraceEx(self: *const T, OutputControl: u32, Frames: [*]DEBUG_STACK_FRAME_EX, FramesSize: u32, FrameContexts: ?*anyopaque, FrameContextsSize: u32, FrameContextsEntrySize: u32, Flags: u32) HRESULT { return @as(*const IDebugControl5.VTable, @ptrCast(self.vtable)).OutputContextStackTraceEx(@as(*const IDebugControl5, @ptrCast(self)), OutputControl, Frames, FramesSize, FrameContexts, FrameContextsSize, FrameContextsEntrySize, Flags); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl5_GetBreakpointByGuid(self: *const T, _param_Guid: ?*Guid, Bp: ?*?*IDebugBreakpoint3) HRESULT { return @as(*const IDebugControl5.VTable, @ptrCast(self.vtable)).GetBreakpointByGuid(@as(*const IDebugControl5, @ptrCast(self)), _param_Guid, Bp); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IDebugControl6_Value = Guid.initString("bc0d583f-126d-43a1-9cc4-a860ab1d537b"); pub const IID_IDebugControl6 = &IID_IDebugControl6_Value; pub const IDebugControl6 = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, GetInterrupt: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl6, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl6, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetInterrupt: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl6, Flags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl6, Flags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetInterruptTimeout: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl6, Seconds: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl6, Seconds: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetInterruptTimeout: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl6, Seconds: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl6, Seconds: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetLogFile: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl6, Buffer: ?[*:0]u8, BufferSize: u32, FileSize: ?*u32, Append: ?*BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl6, Buffer: ?[*:0]u8, BufferSize: u32, FileSize: ?*u32, Append: ?*BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, OpenLogFile: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl6, File: ?[*:0]const u8, Append: BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl6, File: ?[*:0]const u8, Append: BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, CloseLogFile: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl6, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl6, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetLogMask: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl6, Mask: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl6, Mask: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetLogMask: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl6, Mask: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl6, Mask: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Input: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl6, Buffer: [*:0]u8, BufferSize: u32, InputSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl6, Buffer: [*:0]u8, BufferSize: u32, InputSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, ReturnInput: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl6, Buffer: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl6, Buffer: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Output: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl6, Mask: u32, Format: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl6, Mask: u32, Format: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, OutputVaList: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl6, Mask: u32, Format: ?[*:0]const u8, Args: ?*i8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl6, Mask: u32, Format: ?[*:0]const u8, Args: ?*i8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, ControlledOutput: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl6, OutputControl: u32, Mask: u32, Format: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl6, OutputControl: u32, Mask: u32, Format: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, ControlledOutputVaList: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl6, OutputControl: u32, Mask: u32, Format: ?[*:0]const u8, Args: ?*i8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl6, OutputControl: u32, Mask: u32, Format: ?[*:0]const u8, Args: ?*i8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, OutputPrompt: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl6, OutputControl: u32, Format: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl6, OutputControl: u32, Format: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, OutputPromptVaList: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl6, OutputControl: u32, Format: ?[*:0]const u8, Args: ?*i8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl6, OutputControl: u32, Format: ?[*:0]const u8, Args: ?*i8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetPromptText: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl6, Buffer: ?[*:0]u8, BufferSize: u32, TextSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl6, Buffer: ?[*:0]u8, BufferSize: u32, TextSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, OutputCurrentState: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl6, OutputControl: u32, Flags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl6, OutputControl: u32, Flags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, OutputVersionInformation: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl6, OutputControl: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl6, OutputControl: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetNotifyEventHandle: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl6, Handle: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl6, Handle: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetNotifyEventHandle: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl6, Handle: u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl6, Handle: u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Assemble: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl6, Offset: u64, Instr: ?[*:0]const u8, EndOffset: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl6, Offset: u64, Instr: ?[*:0]const u8, EndOffset: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Disassemble: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl6, Offset: u64, Flags: u32, Buffer: ?[*:0]u8, BufferSize: u32, DisassemblySize: ?*u32, EndOffset: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl6, Offset: u64, Flags: u32, Buffer: ?[*:0]u8, BufferSize: u32, DisassemblySize: ?*u32, EndOffset: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetDisassembleEffectiveOffset: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl6, Offset: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl6, Offset: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, OutputDisassembly: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl6, OutputControl: u32, Offset: u64, Flags: u32, EndOffset: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl6, OutputControl: u32, Offset: u64, Flags: u32, EndOffset: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, OutputDisassemblyLines: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl6, OutputControl: u32, PreviousLines: u32, TotalLines: u32, Offset: u64, Flags: u32, OffsetLine: ?*u32, StartOffset: ?*u64, EndOffset: ?*u64, LineOffsets: ?[*]u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl6, OutputControl: u32, PreviousLines: u32, TotalLines: u32, Offset: u64, Flags: u32, OffsetLine: ?*u32, StartOffset: ?*u64, EndOffset: ?*u64, LineOffsets: ?[*]u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetNearInstruction: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl6, Offset: u64, Delta: i32, NearOffset: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl6, Offset: u64, Delta: i32, NearOffset: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetStackTrace: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl6, FrameOffset: u64, StackOffset: u64, InstructionOffset: u64, Frames: [*]DEBUG_STACK_FRAME, FramesSize: u32, FramesFilled: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl6, FrameOffset: u64, StackOffset: u64, InstructionOffset: u64, Frames: [*]DEBUG_STACK_FRAME, FramesSize: u32, FramesFilled: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetReturnOffset: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl6, Offset: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl6, Offset: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, OutputStackTrace: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl6, OutputControl: u32, Frames: ?[*]DEBUG_STACK_FRAME, FramesSize: u32, Flags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl6, OutputControl: u32, Frames: ?[*]DEBUG_STACK_FRAME, FramesSize: u32, Flags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetDebuggeeType: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl6, Class: ?*u32, Qualifier: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl6, Class: ?*u32, Qualifier: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetActualProcessorType: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl6, Type: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl6, Type: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetExecutingProcessorType: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl6, Type: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl6, Type: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetNumberPossibleExecutingProcessorTypes: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl6, Number: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl6, Number: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetPossibleExecutingProcessorTypes: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl6, Start: u32, Count: u32, Types: [*]u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl6, Start: u32, Count: u32, Types: [*]u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetNumberProcessors: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl6, Number: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl6, Number: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetSystemVersion: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl6, PlatformId: ?*u32, Major: ?*u32, Minor: ?*u32, ServicePackString: ?[*:0]u8, ServicePackStringSize: u32, ServicePackStringUsed: ?*u32, ServicePackNumber: ?*u32, BuildString: ?[*:0]u8, BuildStringSize: u32, BuildStringUsed: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl6, PlatformId: ?*u32, Major: ?*u32, Minor: ?*u32, ServicePackString: ?[*:0]u8, ServicePackStringSize: u32, ServicePackStringUsed: ?*u32, ServicePackNumber: ?*u32, BuildString: ?[*:0]u8, BuildStringSize: u32, BuildStringUsed: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetPageSize: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl6, Size: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl6, Size: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, IsPointer64Bit: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl6, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl6, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, ReadBugCheckData: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl6, Code: ?*u32, Arg1: ?*u64, Arg2: ?*u64, Arg3: ?*u64, Arg4: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl6, Code: ?*u32, Arg1: ?*u64, Arg2: ?*u64, Arg3: ?*u64, Arg4: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetNumberSupportedProcessorTypes: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl6, Number: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl6, Number: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetSupportedProcessorTypes: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl6, Start: u32, Count: u32, Types: [*]u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl6, Start: u32, Count: u32, Types: [*]u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetProcessorTypeNames: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl6, Type: u32, FullNameBuffer: ?[*:0]u8, FullNameBufferSize: u32, FullNameSize: ?*u32, AbbrevNameBuffer: ?[*:0]u8, AbbrevNameBufferSize: u32, AbbrevNameSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl6, Type: u32, FullNameBuffer: ?[*:0]u8, FullNameBufferSize: u32, FullNameSize: ?*u32, AbbrevNameBuffer: ?[*:0]u8, AbbrevNameBufferSize: u32, AbbrevNameSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetEffectiveProcessorType: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl6, Type: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl6, Type: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetEffectiveProcessorType: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl6, Type: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl6, Type: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetExecutionStatus: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl6, Status: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl6, Status: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetExecutionStatus: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl6, Status: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl6, Status: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetCodeLevel: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl6, Level: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl6, Level: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetCodeLevel: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl6, Level: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl6, Level: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetEngineOptions: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl6, Options: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl6, Options: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, AddEngineOptions: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl6, Options: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl6, Options: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, RemoveEngineOptions: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl6, Options: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl6, Options: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetEngineOptions: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl6, Options: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl6, Options: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetSystemErrorControl: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl6, OutputLevel: ?*u32, BreakLevel: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl6, OutputLevel: ?*u32, BreakLevel: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetSystemErrorControl: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl6, OutputLevel: u32, BreakLevel: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl6, OutputLevel: u32, BreakLevel: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetTextMacro: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl6, Slot: u32, Buffer: ?[*:0]u8, BufferSize: u32, MacroSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl6, Slot: u32, Buffer: ?[*:0]u8, BufferSize: u32, MacroSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetTextMacro: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl6, Slot: u32, Macro: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl6, Slot: u32, Macro: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetRadix: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl6, Radix: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl6, Radix: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetRadix: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl6, Radix: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl6, Radix: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Evaluate: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl6, Expression: ?[*:0]const u8, DesiredType: u32, Value: ?*DEBUG_VALUE, RemainderIndex: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl6, Expression: ?[*:0]const u8, DesiredType: u32, Value: ?*DEBUG_VALUE, RemainderIndex: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, CoerceValue: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl6, In: ?*DEBUG_VALUE, OutType: u32, Out: ?*DEBUG_VALUE, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl6, In: ?*DEBUG_VALUE, OutType: u32, Out: ?*DEBUG_VALUE, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, CoerceValues: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl6, Count: u32, In: [*]DEBUG_VALUE, OutTypes: [*]u32, Out: [*]DEBUG_VALUE, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl6, Count: u32, In: [*]DEBUG_VALUE, OutTypes: [*]u32, Out: [*]DEBUG_VALUE, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Execute: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl6, OutputControl: u32, Command: ?[*:0]const u8, Flags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl6, OutputControl: u32, Command: ?[*:0]const u8, Flags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, ExecuteCommandFile: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl6, OutputControl: u32, CommandFile: ?[*:0]const u8, Flags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl6, OutputControl: u32, CommandFile: ?[*:0]const u8, Flags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetNumberBreakpoints: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl6, Number: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl6, Number: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetBreakpointByIndex: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl6, Index: u32, Bp: ?*?*IDebugBreakpoint, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl6, Index: u32, Bp: ?*?*IDebugBreakpoint, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetBreakpointById: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl6, Id: u32, Bp: ?*?*IDebugBreakpoint, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl6, Id: u32, Bp: ?*?*IDebugBreakpoint, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetBreakpointParameters: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl6, Count: u32, Ids: ?[*]u32, Start: u32, Params: [*]DEBUG_BREAKPOINT_PARAMETERS, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl6, Count: u32, Ids: ?[*]u32, Start: u32, Params: [*]DEBUG_BREAKPOINT_PARAMETERS, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, AddBreakpoint: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl6, Type: u32, DesiredId: u32, Bp: ?*?*IDebugBreakpoint, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl6, Type: u32, DesiredId: u32, Bp: ?*?*IDebugBreakpoint, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, RemoveBreakpoint: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl6, Bp: ?*IDebugBreakpoint, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl6, Bp: ?*IDebugBreakpoint, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, AddExtension: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl6, Path: ?[*:0]const u8, Flags: u32, Handle: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl6, Path: ?[*:0]const u8, Flags: u32, Handle: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, RemoveExtension: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl6, Handle: u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl6, Handle: u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetExtensionByPath: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl6, Path: ?[*:0]const u8, Handle: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl6, Path: ?[*:0]const u8, Handle: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, CallExtension: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl6, Handle: u64, Function: ?[*:0]const u8, Arguments: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl6, Handle: u64, Function: ?[*:0]const u8, Arguments: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetExtensionFunction: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl6, Handle: u64, FuncName: ?[*:0]const u8, Function: ?*?FARPROC, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl6, Handle: u64, FuncName: ?[*:0]const u8, Function: ?*?FARPROC, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetWindbgExtensionApis32: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl6, Api: ?*WINDBG_EXTENSION_APIS32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl6, Api: ?*WINDBG_EXTENSION_APIS32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetWindbgExtensionApis64: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl6, Api: ?*WINDBG_EXTENSION_APIS64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl6, Api: ?*WINDBG_EXTENSION_APIS64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetNumberEventFilters: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl6, SpecificEvents: ?*u32, SpecificExceptions: ?*u32, ArbitraryExceptions: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl6, SpecificEvents: ?*u32, SpecificExceptions: ?*u32, ArbitraryExceptions: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetEventFilterText: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl6, Index: u32, Buffer: ?[*:0]u8, BufferSize: u32, TextSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl6, Index: u32, Buffer: ?[*:0]u8, BufferSize: u32, TextSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetEventFilterCommand: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl6, Index: u32, Buffer: ?[*:0]u8, BufferSize: u32, CommandSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl6, Index: u32, Buffer: ?[*:0]u8, BufferSize: u32, CommandSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetEventFilterCommand: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl6, Index: u32, Command: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl6, Index: u32, Command: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetSpecificFilterParameters: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl6, Start: u32, Count: u32, Params: [*]DEBUG_SPECIFIC_FILTER_PARAMETERS, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl6, Start: u32, Count: u32, Params: [*]DEBUG_SPECIFIC_FILTER_PARAMETERS, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetSpecificFilterParameters: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl6, Start: u32, Count: u32, Params: [*]DEBUG_SPECIFIC_FILTER_PARAMETERS, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl6, Start: u32, Count: u32, Params: [*]DEBUG_SPECIFIC_FILTER_PARAMETERS, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetSpecificFilterArgument: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl6, Index: u32, Buffer: ?[*:0]u8, BufferSize: u32, ArgumentSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl6, Index: u32, Buffer: ?[*:0]u8, BufferSize: u32, ArgumentSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetSpecificFilterArgument: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl6, Index: u32, Argument: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl6, Index: u32, Argument: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetExceptionFilterParameters: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl6, Count: u32, Codes: ?[*]u32, Start: u32, Params: [*]DEBUG_EXCEPTION_FILTER_PARAMETERS, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl6, Count: u32, Codes: ?[*]u32, Start: u32, Params: [*]DEBUG_EXCEPTION_FILTER_PARAMETERS, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetExceptionFilterParameters: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl6, Count: u32, Params: [*]DEBUG_EXCEPTION_FILTER_PARAMETERS, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl6, Count: u32, Params: [*]DEBUG_EXCEPTION_FILTER_PARAMETERS, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetExceptionFilterSecondCommand: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl6, Index: u32, Buffer: ?[*:0]u8, BufferSize: u32, CommandSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl6, Index: u32, Buffer: ?[*:0]u8, BufferSize: u32, CommandSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetExceptionFilterSecondCommand: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl6, Index: u32, Command: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl6, Index: u32, Command: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, WaitForEvent: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl6, Flags: u32, Timeout: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl6, Flags: u32, Timeout: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetLastEventInformation: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl6, Type: ?*u32, ProcessId: ?*u32, ThreadId: ?*u32, // TODO: what to do with BytesParamIndex 4? ExtraInformation: ?*anyopaque, ExtraInformationSize: u32, ExtraInformationUsed: ?*u32, Description: ?[*:0]u8, DescriptionSize: u32, DescriptionUsed: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl6, Type: ?*u32, ProcessId: ?*u32, ThreadId: ?*u32, // TODO: what to do with BytesParamIndex 4? ExtraInformation: ?*anyopaque, ExtraInformationSize: u32, ExtraInformationUsed: ?*u32, Description: ?[*:0]u8, DescriptionSize: u32, DescriptionUsed: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetCurrentTimeDate: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl6, TimeDate: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl6, TimeDate: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetCurrentSystemUpTime: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl6, UpTime: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl6, UpTime: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetDumpFormatFlags: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl6, FormatFlags: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl6, FormatFlags: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetNumberTextReplacements: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl6, NumRepl: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl6, NumRepl: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetTextReplacement: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl6, SrcText: ?[*:0]const u8, Index: u32, SrcBuffer: ?[*:0]u8, SrcBufferSize: u32, SrcSize: ?*u32, DstBuffer: ?[*:0]u8, DstBufferSize: u32, DstSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl6, SrcText: ?[*:0]const u8, Index: u32, SrcBuffer: ?[*:0]u8, SrcBufferSize: u32, SrcSize: ?*u32, DstBuffer: ?[*:0]u8, DstBufferSize: u32, DstSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetTextReplacement: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl6, SrcText: ?[*:0]const u8, DstText: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl6, SrcText: ?[*:0]const u8, DstText: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, RemoveTextReplacements: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl6, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl6, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, OutputTextReplacements: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl6, OutputControl: u32, Flags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl6, OutputControl: u32, Flags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetAssemblyOptions: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl6, Options: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl6, Options: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, AddAssemblyOptions: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl6, Options: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl6, Options: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, RemoveAssemblyOptions: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl6, Options: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl6, Options: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetAssemblyOptions: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl6, Options: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl6, Options: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetExpressionSyntax: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl6, Flags: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl6, Flags: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetExpressionSyntax: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl6, Flags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl6, Flags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetExpressionSyntaxByName: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl6, AbbrevName: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl6, AbbrevName: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetNumberExpressionSyntaxes: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl6, Number: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl6, Number: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetExpressionSyntaxNames: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl6, Index: u32, FullNameBuffer: ?[*:0]u8, FullNameBufferSize: u32, FullNameSize: ?*u32, AbbrevNameBuffer: ?[*:0]u8, AbbrevNameBufferSize: u32, AbbrevNameSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl6, Index: u32, FullNameBuffer: ?[*:0]u8, FullNameBufferSize: u32, FullNameSize: ?*u32, AbbrevNameBuffer: ?[*:0]u8, AbbrevNameBufferSize: u32, AbbrevNameSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetNumberEvents: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl6, Events: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl6, Events: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetEventIndexDescription: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl6, Index: u32, Which: u32, Buffer: ?PSTR, BufferSize: u32, DescSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl6, Index: u32, Which: u32, Buffer: ?PSTR, BufferSize: u32, DescSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetCurrentEventIndex: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl6, Index: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl6, Index: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetNextEventIndex: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl6, Relation: u32, Value: u32, NextIndex: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl6, Relation: u32, Value: u32, NextIndex: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetLogFileWide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl6, Buffer: ?[*:0]u16, BufferSize: u32, FileSize: ?*u32, Append: ?*BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl6, Buffer: ?[*:0]u16, BufferSize: u32, FileSize: ?*u32, Append: ?*BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, OpenLogFileWide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl6, File: ?[*:0]const u16, Append: BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl6, File: ?[*:0]const u16, Append: BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, InputWide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl6, Buffer: [*:0]u16, BufferSize: u32, InputSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl6, Buffer: [*:0]u16, BufferSize: u32, InputSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, ReturnInputWide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl6, Buffer: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl6, Buffer: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, OutputWide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl6, Mask: u32, Format: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl6, Mask: u32, Format: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, OutputVaListWide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl6, Mask: u32, Format: ?[*:0]const u16, Args: ?*i8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl6, Mask: u32, Format: ?[*:0]const u16, Args: ?*i8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, ControlledOutputWide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl6, OutputControl: u32, Mask: u32, Format: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl6, OutputControl: u32, Mask: u32, Format: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, ControlledOutputVaListWide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl6, OutputControl: u32, Mask: u32, Format: ?[*:0]const u16, Args: ?*i8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl6, OutputControl: u32, Mask: u32, Format: ?[*:0]const u16, Args: ?*i8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, OutputPromptWide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl6, OutputControl: u32, Format: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl6, OutputControl: u32, Format: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, OutputPromptVaListWide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl6, OutputControl: u32, Format: ?[*:0]const u16, Args: ?*i8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl6, OutputControl: u32, Format: ?[*:0]const u16, Args: ?*i8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetPromptTextWide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl6, Buffer: ?[*:0]u16, BufferSize: u32, TextSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl6, Buffer: ?[*:0]u16, BufferSize: u32, TextSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, AssembleWide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl6, Offset: u64, Instr: ?[*:0]const u16, EndOffset: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl6, Offset: u64, Instr: ?[*:0]const u16, EndOffset: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, DisassembleWide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl6, Offset: u64, Flags: u32, Buffer: ?[*:0]u16, BufferSize: u32, DisassemblySize: ?*u32, EndOffset: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl6, Offset: u64, Flags: u32, Buffer: ?[*:0]u16, BufferSize: u32, DisassemblySize: ?*u32, EndOffset: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetProcessorTypeNamesWide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl6, Type: u32, FullNameBuffer: ?[*:0]u16, FullNameBufferSize: u32, FullNameSize: ?*u32, AbbrevNameBuffer: ?[*:0]u16, AbbrevNameBufferSize: u32, AbbrevNameSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl6, Type: u32, FullNameBuffer: ?[*:0]u16, FullNameBufferSize: u32, FullNameSize: ?*u32, AbbrevNameBuffer: ?[*:0]u16, AbbrevNameBufferSize: u32, AbbrevNameSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetTextMacroWide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl6, Slot: u32, Buffer: ?[*:0]u16, BufferSize: u32, MacroSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl6, Slot: u32, Buffer: ?[*:0]u16, BufferSize: u32, MacroSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetTextMacroWide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl6, Slot: u32, Macro: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl6, Slot: u32, Macro: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, EvaluateWide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl6, Expression: ?[*:0]const u16, DesiredType: u32, Value: ?*DEBUG_VALUE, RemainderIndex: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl6, Expression: ?[*:0]const u16, DesiredType: u32, Value: ?*DEBUG_VALUE, RemainderIndex: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, ExecuteWide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl6, OutputControl: u32, Command: ?[*:0]const u16, Flags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl6, OutputControl: u32, Command: ?[*:0]const u16, Flags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, ExecuteCommandFileWide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl6, OutputControl: u32, CommandFile: ?[*:0]const u16, Flags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl6, OutputControl: u32, CommandFile: ?[*:0]const u16, Flags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetBreakpointByIndex2: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl6, Index: u32, Bp: ?*?*IDebugBreakpoint2, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl6, Index: u32, Bp: ?*?*IDebugBreakpoint2, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetBreakpointById2: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl6, Id: u32, Bp: ?*?*IDebugBreakpoint2, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl6, Id: u32, Bp: ?*?*IDebugBreakpoint2, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, AddBreakpoint2: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl6, Type: u32, DesiredId: u32, Bp: ?*?*IDebugBreakpoint2, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl6, Type: u32, DesiredId: u32, Bp: ?*?*IDebugBreakpoint2, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, RemoveBreakpoint2: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl6, Bp: ?*IDebugBreakpoint2, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl6, Bp: ?*IDebugBreakpoint2, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, AddExtensionWide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl6, Path: ?[*:0]const u16, Flags: u32, Handle: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl6, Path: ?[*:0]const u16, Flags: u32, Handle: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetExtensionByPathWide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl6, Path: ?[*:0]const u16, Handle: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl6, Path: ?[*:0]const u16, Handle: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, CallExtensionWide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl6, Handle: u64, Function: ?[*:0]const u16, Arguments: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl6, Handle: u64, Function: ?[*:0]const u16, Arguments: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetExtensionFunctionWide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl6, Handle: u64, FuncName: ?[*:0]const u16, Function: ?*?FARPROC, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl6, Handle: u64, FuncName: ?[*:0]const u16, Function: ?*?FARPROC, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetEventFilterTextWide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl6, Index: u32, Buffer: ?[*:0]u16, BufferSize: u32, TextSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl6, Index: u32, Buffer: ?[*:0]u16, BufferSize: u32, TextSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetEventFilterCommandWide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl6, Index: u32, Buffer: ?[*:0]u16, BufferSize: u32, CommandSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl6, Index: u32, Buffer: ?[*:0]u16, BufferSize: u32, CommandSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetEventFilterCommandWide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl6, Index: u32, Command: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl6, Index: u32, Command: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetSpecificFilterArgumentWide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl6, Index: u32, Buffer: ?[*:0]u16, BufferSize: u32, ArgumentSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl6, Index: u32, Buffer: ?[*:0]u16, BufferSize: u32, ArgumentSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetSpecificFilterArgumentWide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl6, Index: u32, Argument: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl6, Index: u32, Argument: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetExceptionFilterSecondCommandWide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl6, Index: u32, Buffer: ?[*:0]u16, BufferSize: u32, CommandSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl6, Index: u32, Buffer: ?[*:0]u16, BufferSize: u32, CommandSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetExceptionFilterSecondCommandWide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl6, Index: u32, Command: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl6, Index: u32, Command: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetLastEventInformationWide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl6, Type: ?*u32, ProcessId: ?*u32, ThreadId: ?*u32, // TODO: what to do with BytesParamIndex 4? ExtraInformation: ?*anyopaque, ExtraInformationSize: u32, ExtraInformationUsed: ?*u32, Description: ?[*:0]u16, DescriptionSize: u32, DescriptionUsed: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl6, Type: ?*u32, ProcessId: ?*u32, ThreadId: ?*u32, // TODO: what to do with BytesParamIndex 4? ExtraInformation: ?*anyopaque, ExtraInformationSize: u32, ExtraInformationUsed: ?*u32, Description: ?[*:0]u16, DescriptionSize: u32, DescriptionUsed: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetTextReplacementWide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl6, SrcText: ?[*:0]const u16, Index: u32, SrcBuffer: ?[*:0]u16, SrcBufferSize: u32, SrcSize: ?*u32, DstBuffer: ?[*:0]u16, DstBufferSize: u32, DstSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl6, SrcText: ?[*:0]const u16, Index: u32, SrcBuffer: ?[*:0]u16, SrcBufferSize: u32, SrcSize: ?*u32, DstBuffer: ?[*:0]u16, DstBufferSize: u32, DstSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetTextReplacementWide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl6, SrcText: ?[*:0]const u16, DstText: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl6, SrcText: ?[*:0]const u16, DstText: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetExpressionSyntaxByNameWide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl6, AbbrevName: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl6, AbbrevName: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetExpressionSyntaxNamesWide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl6, Index: u32, FullNameBuffer: ?[*:0]u16, FullNameBufferSize: u32, FullNameSize: ?*u32, AbbrevNameBuffer: ?[*:0]u16, AbbrevNameBufferSize: u32, AbbrevNameSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl6, Index: u32, FullNameBuffer: ?[*:0]u16, FullNameBufferSize: u32, FullNameSize: ?*u32, AbbrevNameBuffer: ?[*:0]u16, AbbrevNameBufferSize: u32, AbbrevNameSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetEventIndexDescriptionWide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl6, Index: u32, Which: u32, Buffer: ?PWSTR, BufferSize: u32, DescSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl6, Index: u32, Which: u32, Buffer: ?PWSTR, BufferSize: u32, DescSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetLogFile2: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl6, Buffer: ?[*:0]u8, BufferSize: u32, FileSize: ?*u32, Flags: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl6, Buffer: ?[*:0]u8, BufferSize: u32, FileSize: ?*u32, Flags: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, OpenLogFile2: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl6, File: ?[*:0]const u8, Flags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl6, File: ?[*:0]const u8, Flags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetLogFile2Wide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl6, Buffer: ?[*:0]u16, BufferSize: u32, FileSize: ?*u32, Flags: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl6, Buffer: ?[*:0]u16, BufferSize: u32, FileSize: ?*u32, Flags: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, OpenLogFile2Wide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl6, File: ?[*:0]const u16, Flags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl6, File: ?[*:0]const u16, Flags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetSystemVersionValues: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl6, PlatformId: ?*u32, Win32Major: ?*u32, Win32Minor: ?*u32, KdMajor: ?*u32, KdMinor: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl6, PlatformId: ?*u32, Win32Major: ?*u32, Win32Minor: ?*u32, KdMajor: ?*u32, KdMinor: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetSystemVersionString: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl6, Which: u32, Buffer: ?[*:0]u8, BufferSize: u32, StringSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl6, Which: u32, Buffer: ?[*:0]u8, BufferSize: u32, StringSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetSystemVersionStringWide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl6, Which: u32, Buffer: ?[*:0]u16, BufferSize: u32, StringSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl6, Which: u32, Buffer: ?[*:0]u16, BufferSize: u32, StringSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetContextStackTrace: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl6, // TODO: what to do with BytesParamIndex 1? StartContext: ?*anyopaque, StartContextSize: u32, Frames: ?[*]DEBUG_STACK_FRAME, FramesSize: u32, // TODO: what to do with BytesParamIndex 5? FrameContexts: ?*anyopaque, FrameContextsSize: u32, FrameContextsEntrySize: u32, FramesFilled: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl6, // TODO: what to do with BytesParamIndex 1? StartContext: ?*anyopaque, StartContextSize: u32, Frames: ?[*]DEBUG_STACK_FRAME, FramesSize: u32, // TODO: what to do with BytesParamIndex 5? FrameContexts: ?*anyopaque, FrameContextsSize: u32, FrameContextsEntrySize: u32, FramesFilled: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, OutputContextStackTrace: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl6, OutputControl: u32, Frames: [*]DEBUG_STACK_FRAME, FramesSize: u32, // TODO: what to do with BytesParamIndex 4? FrameContexts: ?*anyopaque, FrameContextsSize: u32, FrameContextsEntrySize: u32, Flags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl6, OutputControl: u32, Frames: [*]DEBUG_STACK_FRAME, FramesSize: u32, // TODO: what to do with BytesParamIndex 4? FrameContexts: ?*anyopaque, FrameContextsSize: u32, FrameContextsEntrySize: u32, Flags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetStoredEventInformation: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl6, Type: ?*u32, ProcessId: ?*u32, ThreadId: ?*u32, // TODO: what to do with BytesParamIndex 4? Context: ?*anyopaque, ContextSize: u32, ContextUsed: ?*u32, // TODO: what to do with BytesParamIndex 7? ExtraInformation: ?*anyopaque, ExtraInformationSize: u32, ExtraInformationUsed: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl6, Type: ?*u32, ProcessId: ?*u32, ThreadId: ?*u32, // TODO: what to do with BytesParamIndex 4? Context: ?*anyopaque, ContextSize: u32, ContextUsed: ?*u32, // TODO: what to do with BytesParamIndex 7? ExtraInformation: ?*anyopaque, ExtraInformationSize: u32, ExtraInformationUsed: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetManagedStatus: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl6, Flags: ?*u32, WhichString: u32, String: ?[*:0]u8, StringSize: u32, StringNeeded: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl6, Flags: ?*u32, WhichString: u32, String: ?[*:0]u8, StringSize: u32, StringNeeded: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetManagedStatusWide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl6, Flags: ?*u32, WhichString: u32, String: ?[*:0]u16, StringSize: u32, StringNeeded: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl6, Flags: ?*u32, WhichString: u32, String: ?[*:0]u16, StringSize: u32, StringNeeded: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, ResetManagedStatus: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl6, Flags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl6, Flags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetStackTraceEx: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl6, FrameOffset: u64, StackOffset: u64, InstructionOffset: u64, Frames: [*]DEBUG_STACK_FRAME_EX, FramesSize: u32, FramesFilled: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl6, FrameOffset: u64, StackOffset: u64, InstructionOffset: u64, Frames: [*]DEBUG_STACK_FRAME_EX, FramesSize: u32, FramesFilled: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, OutputStackTraceEx: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl6, OutputControl: u32, Frames: ?[*]DEBUG_STACK_FRAME_EX, FramesSize: u32, Flags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl6, OutputControl: u32, Frames: ?[*]DEBUG_STACK_FRAME_EX, FramesSize: u32, Flags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetContextStackTraceEx: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl6, // TODO: what to do with BytesParamIndex 1? StartContext: ?*anyopaque, StartContextSize: u32, Frames: ?[*]DEBUG_STACK_FRAME_EX, FramesSize: u32, // TODO: what to do with BytesParamIndex 5? FrameContexts: ?*anyopaque, FrameContextsSize: u32, FrameContextsEntrySize: u32, FramesFilled: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl6, // TODO: what to do with BytesParamIndex 1? StartContext: ?*anyopaque, StartContextSize: u32, Frames: ?[*]DEBUG_STACK_FRAME_EX, FramesSize: u32, // TODO: what to do with BytesParamIndex 5? FrameContexts: ?*anyopaque, FrameContextsSize: u32, FrameContextsEntrySize: u32, FramesFilled: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, OutputContextStackTraceEx: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl6, OutputControl: u32, Frames: [*]DEBUG_STACK_FRAME_EX, FramesSize: u32, // TODO: what to do with BytesParamIndex 4? FrameContexts: ?*anyopaque, FrameContextsSize: u32, FrameContextsEntrySize: u32, Flags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl6, OutputControl: u32, Frames: [*]DEBUG_STACK_FRAME_EX, FramesSize: u32, // TODO: what to do with BytesParamIndex 4? FrameContexts: ?*anyopaque, FrameContextsSize: u32, FrameContextsEntrySize: u32, Flags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetBreakpointByGuid: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl6, Guid: ?*Guid, Bp: ?*?*IDebugBreakpoint3, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl6, Guid: ?*Guid, Bp: ?*?*IDebugBreakpoint3, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetExecutionStatusEx: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl6, Status: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl6, Status: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetSynchronizationStatus: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl6, SendsAttempted: ?*u32, SecondsSinceLastResponse: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl6, SendsAttempted: ?*u32, SecondsSinceLastResponse: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl6_GetInterrupt(self: *const T) HRESULT { return @as(*const IDebugControl6.VTable, @ptrCast(self.vtable)).GetInterrupt(@as(*const IDebugControl6, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl6_SetInterrupt(self: *const T, Flags: u32) HRESULT { return @as(*const IDebugControl6.VTable, @ptrCast(self.vtable)).SetInterrupt(@as(*const IDebugControl6, @ptrCast(self)), Flags); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl6_GetInterruptTimeout(self: *const T, Seconds: ?*u32) HRESULT { return @as(*const IDebugControl6.VTable, @ptrCast(self.vtable)).GetInterruptTimeout(@as(*const IDebugControl6, @ptrCast(self)), Seconds); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl6_SetInterruptTimeout(self: *const T, Seconds: u32) HRESULT { return @as(*const IDebugControl6.VTable, @ptrCast(self.vtable)).SetInterruptTimeout(@as(*const IDebugControl6, @ptrCast(self)), Seconds); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl6_GetLogFile(self: *const T, Buffer: ?[*:0]u8, BufferSize: u32, FileSize: ?*u32, Append: ?*BOOL) HRESULT { return @as(*const IDebugControl6.VTable, @ptrCast(self.vtable)).GetLogFile(@as(*const IDebugControl6, @ptrCast(self)), Buffer, BufferSize, FileSize, Append); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl6_OpenLogFile(self: *const T, File: ?[*:0]const u8, Append: BOOL) HRESULT { return @as(*const IDebugControl6.VTable, @ptrCast(self.vtable)).OpenLogFile(@as(*const IDebugControl6, @ptrCast(self)), File, Append); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl6_CloseLogFile(self: *const T) HRESULT { return @as(*const IDebugControl6.VTable, @ptrCast(self.vtable)).CloseLogFile(@as(*const IDebugControl6, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl6_GetLogMask(self: *const T, Mask: ?*u32) HRESULT { return @as(*const IDebugControl6.VTable, @ptrCast(self.vtable)).GetLogMask(@as(*const IDebugControl6, @ptrCast(self)), Mask); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl6_SetLogMask(self: *const T, Mask: u32) HRESULT { return @as(*const IDebugControl6.VTable, @ptrCast(self.vtable)).SetLogMask(@as(*const IDebugControl6, @ptrCast(self)), Mask); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl6_Input(self: *const T, Buffer: [*:0]u8, BufferSize: u32, InputSize: ?*u32) HRESULT { return @as(*const IDebugControl6.VTable, @ptrCast(self.vtable)).Input(@as(*const IDebugControl6, @ptrCast(self)), Buffer, BufferSize, InputSize); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl6_ReturnInput(self: *const T, Buffer: ?[*:0]const u8) HRESULT { return @as(*const IDebugControl6.VTable, @ptrCast(self.vtable)).ReturnInput(@as(*const IDebugControl6, @ptrCast(self)), Buffer); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl6_Output(self: *const T, Mask: u32, Format: ?[*:0]const u8) HRESULT { return @as(*const IDebugControl6.VTable, @ptrCast(self.vtable)).Output(@as(*const IDebugControl6, @ptrCast(self)), Mask, Format); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl6_OutputVaList(self: *const T, Mask: u32, Format: ?[*:0]const u8, Args: ?*i8) HRESULT { return @as(*const IDebugControl6.VTable, @ptrCast(self.vtable)).OutputVaList(@as(*const IDebugControl6, @ptrCast(self)), Mask, Format, Args); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl6_ControlledOutput(self: *const T, OutputControl: u32, Mask: u32, Format: ?[*:0]const u8) HRESULT { return @as(*const IDebugControl6.VTable, @ptrCast(self.vtable)).ControlledOutput(@as(*const IDebugControl6, @ptrCast(self)), OutputControl, Mask, Format); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl6_ControlledOutputVaList(self: *const T, OutputControl: u32, Mask: u32, Format: ?[*:0]const u8, Args: ?*i8) HRESULT { return @as(*const IDebugControl6.VTable, @ptrCast(self.vtable)).ControlledOutputVaList(@as(*const IDebugControl6, @ptrCast(self)), OutputControl, Mask, Format, Args); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl6_OutputPrompt(self: *const T, OutputControl: u32, Format: ?[*:0]const u8) HRESULT { return @as(*const IDebugControl6.VTable, @ptrCast(self.vtable)).OutputPrompt(@as(*const IDebugControl6, @ptrCast(self)), OutputControl, Format); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl6_OutputPromptVaList(self: *const T, OutputControl: u32, Format: ?[*:0]const u8, Args: ?*i8) HRESULT { return @as(*const IDebugControl6.VTable, @ptrCast(self.vtable)).OutputPromptVaList(@as(*const IDebugControl6, @ptrCast(self)), OutputControl, Format, Args); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl6_GetPromptText(self: *const T, Buffer: ?[*:0]u8, BufferSize: u32, TextSize: ?*u32) HRESULT { return @as(*const IDebugControl6.VTable, @ptrCast(self.vtable)).GetPromptText(@as(*const IDebugControl6, @ptrCast(self)), Buffer, BufferSize, TextSize); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl6_OutputCurrentState(self: *const T, OutputControl: u32, Flags: u32) HRESULT { return @as(*const IDebugControl6.VTable, @ptrCast(self.vtable)).OutputCurrentState(@as(*const IDebugControl6, @ptrCast(self)), OutputControl, Flags); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl6_OutputVersionInformation(self: *const T, OutputControl: u32) HRESULT { return @as(*const IDebugControl6.VTable, @ptrCast(self.vtable)).OutputVersionInformation(@as(*const IDebugControl6, @ptrCast(self)), OutputControl); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl6_GetNotifyEventHandle(self: *const T, Handle: ?*u64) HRESULT { return @as(*const IDebugControl6.VTable, @ptrCast(self.vtable)).GetNotifyEventHandle(@as(*const IDebugControl6, @ptrCast(self)), Handle); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl6_SetNotifyEventHandle(self: *const T, Handle: u64) HRESULT { return @as(*const IDebugControl6.VTable, @ptrCast(self.vtable)).SetNotifyEventHandle(@as(*const IDebugControl6, @ptrCast(self)), Handle); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl6_Assemble(self: *const T, Offset: u64, Instr: ?[*:0]const u8, EndOffset: ?*u64) HRESULT { return @as(*const IDebugControl6.VTable, @ptrCast(self.vtable)).Assemble(@as(*const IDebugControl6, @ptrCast(self)), Offset, Instr, EndOffset); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl6_Disassemble(self: *const T, Offset: u64, Flags: u32, Buffer: ?[*:0]u8, BufferSize: u32, DisassemblySize: ?*u32, EndOffset: ?*u64) HRESULT { return @as(*const IDebugControl6.VTable, @ptrCast(self.vtable)).Disassemble(@as(*const IDebugControl6, @ptrCast(self)), Offset, Flags, Buffer, BufferSize, DisassemblySize, EndOffset); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl6_GetDisassembleEffectiveOffset(self: *const T, Offset: ?*u64) HRESULT { return @as(*const IDebugControl6.VTable, @ptrCast(self.vtable)).GetDisassembleEffectiveOffset(@as(*const IDebugControl6, @ptrCast(self)), Offset); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl6_OutputDisassembly(self: *const T, OutputControl: u32, Offset: u64, Flags: u32, EndOffset: ?*u64) HRESULT { return @as(*const IDebugControl6.VTable, @ptrCast(self.vtable)).OutputDisassembly(@as(*const IDebugControl6, @ptrCast(self)), OutputControl, Offset, Flags, EndOffset); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl6_OutputDisassemblyLines(self: *const T, OutputControl: u32, PreviousLines: u32, TotalLines: u32, Offset: u64, Flags: u32, OffsetLine: ?*u32, StartOffset: ?*u64, EndOffset: ?*u64, LineOffsets: ?[*]u64) HRESULT { return @as(*const IDebugControl6.VTable, @ptrCast(self.vtable)).OutputDisassemblyLines(@as(*const IDebugControl6, @ptrCast(self)), OutputControl, PreviousLines, TotalLines, Offset, Flags, OffsetLine, StartOffset, EndOffset, LineOffsets); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl6_GetNearInstruction(self: *const T, Offset: u64, Delta: i32, NearOffset: ?*u64) HRESULT { return @as(*const IDebugControl6.VTable, @ptrCast(self.vtable)).GetNearInstruction(@as(*const IDebugControl6, @ptrCast(self)), Offset, Delta, NearOffset); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl6_GetStackTrace(self: *const T, FrameOffset: u64, StackOffset: u64, InstructionOffset: u64, Frames: [*]DEBUG_STACK_FRAME, FramesSize: u32, FramesFilled: ?*u32) HRESULT { return @as(*const IDebugControl6.VTable, @ptrCast(self.vtable)).GetStackTrace(@as(*const IDebugControl6, @ptrCast(self)), FrameOffset, StackOffset, InstructionOffset, Frames, FramesSize, FramesFilled); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl6_GetReturnOffset(self: *const T, Offset: ?*u64) HRESULT { return @as(*const IDebugControl6.VTable, @ptrCast(self.vtable)).GetReturnOffset(@as(*const IDebugControl6, @ptrCast(self)), Offset); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl6_OutputStackTrace(self: *const T, OutputControl: u32, Frames: ?[*]DEBUG_STACK_FRAME, FramesSize: u32, Flags: u32) HRESULT { return @as(*const IDebugControl6.VTable, @ptrCast(self.vtable)).OutputStackTrace(@as(*const IDebugControl6, @ptrCast(self)), OutputControl, Frames, FramesSize, Flags); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl6_GetDebuggeeType(self: *const T, Class: ?*u32, Qualifier: ?*u32) HRESULT { return @as(*const IDebugControl6.VTable, @ptrCast(self.vtable)).GetDebuggeeType(@as(*const IDebugControl6, @ptrCast(self)), Class, Qualifier); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl6_GetActualProcessorType(self: *const T, Type: ?*u32) HRESULT { return @as(*const IDebugControl6.VTable, @ptrCast(self.vtable)).GetActualProcessorType(@as(*const IDebugControl6, @ptrCast(self)), Type); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl6_GetExecutingProcessorType(self: *const T, Type: ?*u32) HRESULT { return @as(*const IDebugControl6.VTable, @ptrCast(self.vtable)).GetExecutingProcessorType(@as(*const IDebugControl6, @ptrCast(self)), Type); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl6_GetNumberPossibleExecutingProcessorTypes(self: *const T, Number: ?*u32) HRESULT { return @as(*const IDebugControl6.VTable, @ptrCast(self.vtable)).GetNumberPossibleExecutingProcessorTypes(@as(*const IDebugControl6, @ptrCast(self)), Number); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl6_GetPossibleExecutingProcessorTypes(self: *const T, Start: u32, Count: u32, Types: [*]u32) HRESULT { return @as(*const IDebugControl6.VTable, @ptrCast(self.vtable)).GetPossibleExecutingProcessorTypes(@as(*const IDebugControl6, @ptrCast(self)), Start, Count, Types); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl6_GetNumberProcessors(self: *const T, Number: ?*u32) HRESULT { return @as(*const IDebugControl6.VTable, @ptrCast(self.vtable)).GetNumberProcessors(@as(*const IDebugControl6, @ptrCast(self)), Number); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl6_GetSystemVersion(self: *const T, PlatformId: ?*u32, Major: ?*u32, Minor: ?*u32, ServicePackString: ?[*:0]u8, ServicePackStringSize: u32, ServicePackStringUsed: ?*u32, ServicePackNumber: ?*u32, BuildString: ?[*:0]u8, BuildStringSize: u32, BuildStringUsed: ?*u32) HRESULT { return @as(*const IDebugControl6.VTable, @ptrCast(self.vtable)).GetSystemVersion(@as(*const IDebugControl6, @ptrCast(self)), PlatformId, Major, Minor, ServicePackString, ServicePackStringSize, ServicePackStringUsed, ServicePackNumber, BuildString, BuildStringSize, BuildStringUsed); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl6_GetPageSize(self: *const T, Size: ?*u32) HRESULT { return @as(*const IDebugControl6.VTable, @ptrCast(self.vtable)).GetPageSize(@as(*const IDebugControl6, @ptrCast(self)), Size); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl6_IsPointer64Bit(self: *const T) HRESULT { return @as(*const IDebugControl6.VTable, @ptrCast(self.vtable)).IsPointer64Bit(@as(*const IDebugControl6, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl6_ReadBugCheckData(self: *const T, Code: ?*u32, Arg1: ?*u64, Arg2: ?*u64, Arg3: ?*u64, Arg4: ?*u64) HRESULT { return @as(*const IDebugControl6.VTable, @ptrCast(self.vtable)).ReadBugCheckData(@as(*const IDebugControl6, @ptrCast(self)), Code, Arg1, Arg2, Arg3, Arg4); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl6_GetNumberSupportedProcessorTypes(self: *const T, Number: ?*u32) HRESULT { return @as(*const IDebugControl6.VTable, @ptrCast(self.vtable)).GetNumberSupportedProcessorTypes(@as(*const IDebugControl6, @ptrCast(self)), Number); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl6_GetSupportedProcessorTypes(self: *const T, Start: u32, Count: u32, Types: [*]u32) HRESULT { return @as(*const IDebugControl6.VTable, @ptrCast(self.vtable)).GetSupportedProcessorTypes(@as(*const IDebugControl6, @ptrCast(self)), Start, Count, Types); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl6_GetProcessorTypeNames(self: *const T, Type: u32, FullNameBuffer: ?[*:0]u8, FullNameBufferSize: u32, FullNameSize: ?*u32, AbbrevNameBuffer: ?[*:0]u8, AbbrevNameBufferSize: u32, AbbrevNameSize: ?*u32) HRESULT { return @as(*const IDebugControl6.VTable, @ptrCast(self.vtable)).GetProcessorTypeNames(@as(*const IDebugControl6, @ptrCast(self)), Type, FullNameBuffer, FullNameBufferSize, FullNameSize, AbbrevNameBuffer, AbbrevNameBufferSize, AbbrevNameSize); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl6_GetEffectiveProcessorType(self: *const T, Type: ?*u32) HRESULT { return @as(*const IDebugControl6.VTable, @ptrCast(self.vtable)).GetEffectiveProcessorType(@as(*const IDebugControl6, @ptrCast(self)), Type); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl6_SetEffectiveProcessorType(self: *const T, Type: u32) HRESULT { return @as(*const IDebugControl6.VTable, @ptrCast(self.vtable)).SetEffectiveProcessorType(@as(*const IDebugControl6, @ptrCast(self)), Type); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl6_GetExecutionStatus(self: *const T, Status: ?*u32) HRESULT { return @as(*const IDebugControl6.VTable, @ptrCast(self.vtable)).GetExecutionStatus(@as(*const IDebugControl6, @ptrCast(self)), Status); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl6_SetExecutionStatus(self: *const T, Status: u32) HRESULT { return @as(*const IDebugControl6.VTable, @ptrCast(self.vtable)).SetExecutionStatus(@as(*const IDebugControl6, @ptrCast(self)), Status); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl6_GetCodeLevel(self: *const T, Level: ?*u32) HRESULT { return @as(*const IDebugControl6.VTable, @ptrCast(self.vtable)).GetCodeLevel(@as(*const IDebugControl6, @ptrCast(self)), Level); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl6_SetCodeLevel(self: *const T, Level: u32) HRESULT { return @as(*const IDebugControl6.VTable, @ptrCast(self.vtable)).SetCodeLevel(@as(*const IDebugControl6, @ptrCast(self)), Level); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl6_GetEngineOptions(self: *const T, Options: ?*u32) HRESULT { return @as(*const IDebugControl6.VTable, @ptrCast(self.vtable)).GetEngineOptions(@as(*const IDebugControl6, @ptrCast(self)), Options); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl6_AddEngineOptions(self: *const T, Options: u32) HRESULT { return @as(*const IDebugControl6.VTable, @ptrCast(self.vtable)).AddEngineOptions(@as(*const IDebugControl6, @ptrCast(self)), Options); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl6_RemoveEngineOptions(self: *const T, Options: u32) HRESULT { return @as(*const IDebugControl6.VTable, @ptrCast(self.vtable)).RemoveEngineOptions(@as(*const IDebugControl6, @ptrCast(self)), Options); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl6_SetEngineOptions(self: *const T, Options: u32) HRESULT { return @as(*const IDebugControl6.VTable, @ptrCast(self.vtable)).SetEngineOptions(@as(*const IDebugControl6, @ptrCast(self)), Options); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl6_GetSystemErrorControl(self: *const T, OutputLevel: ?*u32, BreakLevel: ?*u32) HRESULT { return @as(*const IDebugControl6.VTable, @ptrCast(self.vtable)).GetSystemErrorControl(@as(*const IDebugControl6, @ptrCast(self)), OutputLevel, BreakLevel); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl6_SetSystemErrorControl(self: *const T, OutputLevel: u32, BreakLevel: u32) HRESULT { return @as(*const IDebugControl6.VTable, @ptrCast(self.vtable)).SetSystemErrorControl(@as(*const IDebugControl6, @ptrCast(self)), OutputLevel, BreakLevel); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl6_GetTextMacro(self: *const T, Slot: u32, Buffer: ?[*:0]u8, BufferSize: u32, MacroSize: ?*u32) HRESULT { return @as(*const IDebugControl6.VTable, @ptrCast(self.vtable)).GetTextMacro(@as(*const IDebugControl6, @ptrCast(self)), Slot, Buffer, BufferSize, MacroSize); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl6_SetTextMacro(self: *const T, Slot: u32, Macro: ?[*:0]const u8) HRESULT { return @as(*const IDebugControl6.VTable, @ptrCast(self.vtable)).SetTextMacro(@as(*const IDebugControl6, @ptrCast(self)), Slot, Macro); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl6_GetRadix(self: *const T, Radix: ?*u32) HRESULT { return @as(*const IDebugControl6.VTable, @ptrCast(self.vtable)).GetRadix(@as(*const IDebugControl6, @ptrCast(self)), Radix); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl6_SetRadix(self: *const T, Radix: u32) HRESULT { return @as(*const IDebugControl6.VTable, @ptrCast(self.vtable)).SetRadix(@as(*const IDebugControl6, @ptrCast(self)), Radix); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl6_Evaluate(self: *const T, Expression: ?[*:0]const u8, DesiredType: u32, Value: ?*DEBUG_VALUE, RemainderIndex: ?*u32) HRESULT { return @as(*const IDebugControl6.VTable, @ptrCast(self.vtable)).Evaluate(@as(*const IDebugControl6, @ptrCast(self)), Expression, DesiredType, Value, RemainderIndex); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl6_CoerceValue(self: *const T, In: ?*DEBUG_VALUE, OutType: u32, Out: ?*DEBUG_VALUE) HRESULT { return @as(*const IDebugControl6.VTable, @ptrCast(self.vtable)).CoerceValue(@as(*const IDebugControl6, @ptrCast(self)), In, OutType, Out); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl6_CoerceValues(self: *const T, Count: u32, In: [*]DEBUG_VALUE, OutTypes: [*]u32, Out: [*]DEBUG_VALUE) HRESULT { return @as(*const IDebugControl6.VTable, @ptrCast(self.vtable)).CoerceValues(@as(*const IDebugControl6, @ptrCast(self)), Count, In, OutTypes, Out); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl6_Execute(self: *const T, OutputControl: u32, Command: ?[*:0]const u8, Flags: u32) HRESULT { return @as(*const IDebugControl6.VTable, @ptrCast(self.vtable)).Execute(@as(*const IDebugControl6, @ptrCast(self)), OutputControl, Command, Flags); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl6_ExecuteCommandFile(self: *const T, OutputControl: u32, CommandFile: ?[*:0]const u8, Flags: u32) HRESULT { return @as(*const IDebugControl6.VTable, @ptrCast(self.vtable)).ExecuteCommandFile(@as(*const IDebugControl6, @ptrCast(self)), OutputControl, CommandFile, Flags); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl6_GetNumberBreakpoints(self: *const T, Number: ?*u32) HRESULT { return @as(*const IDebugControl6.VTable, @ptrCast(self.vtable)).GetNumberBreakpoints(@as(*const IDebugControl6, @ptrCast(self)), Number); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl6_GetBreakpointByIndex(self: *const T, Index: u32, Bp: ?*?*IDebugBreakpoint) HRESULT { return @as(*const IDebugControl6.VTable, @ptrCast(self.vtable)).GetBreakpointByIndex(@as(*const IDebugControl6, @ptrCast(self)), Index, Bp); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl6_GetBreakpointById(self: *const T, Id: u32, Bp: ?*?*IDebugBreakpoint) HRESULT { return @as(*const IDebugControl6.VTable, @ptrCast(self.vtable)).GetBreakpointById(@as(*const IDebugControl6, @ptrCast(self)), Id, Bp); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl6_GetBreakpointParameters(self: *const T, Count: u32, Ids: ?[*]u32, Start: u32, Params: [*]DEBUG_BREAKPOINT_PARAMETERS) HRESULT { return @as(*const IDebugControl6.VTable, @ptrCast(self.vtable)).GetBreakpointParameters(@as(*const IDebugControl6, @ptrCast(self)), Count, Ids, Start, Params); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl6_AddBreakpoint(self: *const T, Type: u32, DesiredId: u32, Bp: ?*?*IDebugBreakpoint) HRESULT { return @as(*const IDebugControl6.VTable, @ptrCast(self.vtable)).AddBreakpoint(@as(*const IDebugControl6, @ptrCast(self)), Type, DesiredId, Bp); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl6_RemoveBreakpoint(self: *const T, Bp: ?*IDebugBreakpoint) HRESULT { return @as(*const IDebugControl6.VTable, @ptrCast(self.vtable)).RemoveBreakpoint(@as(*const IDebugControl6, @ptrCast(self)), Bp); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl6_AddExtension(self: *const T, Path: ?[*:0]const u8, Flags: u32, Handle: ?*u64) HRESULT { return @as(*const IDebugControl6.VTable, @ptrCast(self.vtable)).AddExtension(@as(*const IDebugControl6, @ptrCast(self)), Path, Flags, Handle); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl6_RemoveExtension(self: *const T, Handle: u64) HRESULT { return @as(*const IDebugControl6.VTable, @ptrCast(self.vtable)).RemoveExtension(@as(*const IDebugControl6, @ptrCast(self)), Handle); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl6_GetExtensionByPath(self: *const T, Path: ?[*:0]const u8, Handle: ?*u64) HRESULT { return @as(*const IDebugControl6.VTable, @ptrCast(self.vtable)).GetExtensionByPath(@as(*const IDebugControl6, @ptrCast(self)), Path, Handle); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl6_CallExtension(self: *const T, Handle: u64, Function: ?[*:0]const u8, Arguments: ?[*:0]const u8) HRESULT { return @as(*const IDebugControl6.VTable, @ptrCast(self.vtable)).CallExtension(@as(*const IDebugControl6, @ptrCast(self)), Handle, Function, Arguments); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl6_GetExtensionFunction(self: *const T, Handle: u64, FuncName: ?[*:0]const u8, Function: ?*?FARPROC) HRESULT { return @as(*const IDebugControl6.VTable, @ptrCast(self.vtable)).GetExtensionFunction(@as(*const IDebugControl6, @ptrCast(self)), Handle, FuncName, Function); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl6_GetWindbgExtensionApis32(self: *const T, Api: ?*WINDBG_EXTENSION_APIS32) HRESULT { return @as(*const IDebugControl6.VTable, @ptrCast(self.vtable)).GetWindbgExtensionApis32(@as(*const IDebugControl6, @ptrCast(self)), Api); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl6_GetWindbgExtensionApis64(self: *const T, Api: ?*WINDBG_EXTENSION_APIS64) HRESULT { return @as(*const IDebugControl6.VTable, @ptrCast(self.vtable)).GetWindbgExtensionApis64(@as(*const IDebugControl6, @ptrCast(self)), Api); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl6_GetNumberEventFilters(self: *const T, SpecificEvents: ?*u32, SpecificExceptions: ?*u32, ArbitraryExceptions: ?*u32) HRESULT { return @as(*const IDebugControl6.VTable, @ptrCast(self.vtable)).GetNumberEventFilters(@as(*const IDebugControl6, @ptrCast(self)), SpecificEvents, SpecificExceptions, ArbitraryExceptions); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl6_GetEventFilterText(self: *const T, Index: u32, Buffer: ?[*:0]u8, BufferSize: u32, TextSize: ?*u32) HRESULT { return @as(*const IDebugControl6.VTable, @ptrCast(self.vtable)).GetEventFilterText(@as(*const IDebugControl6, @ptrCast(self)), Index, Buffer, BufferSize, TextSize); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl6_GetEventFilterCommand(self: *const T, Index: u32, Buffer: ?[*:0]u8, BufferSize: u32, CommandSize: ?*u32) HRESULT { return @as(*const IDebugControl6.VTable, @ptrCast(self.vtable)).GetEventFilterCommand(@as(*const IDebugControl6, @ptrCast(self)), Index, Buffer, BufferSize, CommandSize); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl6_SetEventFilterCommand(self: *const T, Index: u32, Command: ?[*:0]const u8) HRESULT { return @as(*const IDebugControl6.VTable, @ptrCast(self.vtable)).SetEventFilterCommand(@as(*const IDebugControl6, @ptrCast(self)), Index, Command); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl6_GetSpecificFilterParameters(self: *const T, Start: u32, Count: u32, Params: [*]DEBUG_SPECIFIC_FILTER_PARAMETERS) HRESULT { return @as(*const IDebugControl6.VTable, @ptrCast(self.vtable)).GetSpecificFilterParameters(@as(*const IDebugControl6, @ptrCast(self)), Start, Count, Params); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl6_SetSpecificFilterParameters(self: *const T, Start: u32, Count: u32, Params: [*]DEBUG_SPECIFIC_FILTER_PARAMETERS) HRESULT { return @as(*const IDebugControl6.VTable, @ptrCast(self.vtable)).SetSpecificFilterParameters(@as(*const IDebugControl6, @ptrCast(self)), Start, Count, Params); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl6_GetSpecificFilterArgument(self: *const T, Index: u32, Buffer: ?[*:0]u8, BufferSize: u32, ArgumentSize: ?*u32) HRESULT { return @as(*const IDebugControl6.VTable, @ptrCast(self.vtable)).GetSpecificFilterArgument(@as(*const IDebugControl6, @ptrCast(self)), Index, Buffer, BufferSize, ArgumentSize); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl6_SetSpecificFilterArgument(self: *const T, Index: u32, Argument: ?[*:0]const u8) HRESULT { return @as(*const IDebugControl6.VTable, @ptrCast(self.vtable)).SetSpecificFilterArgument(@as(*const IDebugControl6, @ptrCast(self)), Index, Argument); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl6_GetExceptionFilterParameters(self: *const T, Count: u32, Codes: ?[*]u32, Start: u32, Params: [*]DEBUG_EXCEPTION_FILTER_PARAMETERS) HRESULT { return @as(*const IDebugControl6.VTable, @ptrCast(self.vtable)).GetExceptionFilterParameters(@as(*const IDebugControl6, @ptrCast(self)), Count, Codes, Start, Params); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl6_SetExceptionFilterParameters(self: *const T, Count: u32, Params: [*]DEBUG_EXCEPTION_FILTER_PARAMETERS) HRESULT { return @as(*const IDebugControl6.VTable, @ptrCast(self.vtable)).SetExceptionFilterParameters(@as(*const IDebugControl6, @ptrCast(self)), Count, Params); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl6_GetExceptionFilterSecondCommand(self: *const T, Index: u32, Buffer: ?[*:0]u8, BufferSize: u32, CommandSize: ?*u32) HRESULT { return @as(*const IDebugControl6.VTable, @ptrCast(self.vtable)).GetExceptionFilterSecondCommand(@as(*const IDebugControl6, @ptrCast(self)), Index, Buffer, BufferSize, CommandSize); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl6_SetExceptionFilterSecondCommand(self: *const T, Index: u32, Command: ?[*:0]const u8) HRESULT { return @as(*const IDebugControl6.VTable, @ptrCast(self.vtable)).SetExceptionFilterSecondCommand(@as(*const IDebugControl6, @ptrCast(self)), Index, Command); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl6_WaitForEvent(self: *const T, Flags: u32, Timeout: u32) HRESULT { return @as(*const IDebugControl6.VTable, @ptrCast(self.vtable)).WaitForEvent(@as(*const IDebugControl6, @ptrCast(self)), Flags, Timeout); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl6_GetLastEventInformation(self: *const T, Type: ?*u32, ProcessId: ?*u32, ThreadId: ?*u32, ExtraInformation: ?*anyopaque, ExtraInformationSize: u32, ExtraInformationUsed: ?*u32, Description: ?[*:0]u8, DescriptionSize: u32, DescriptionUsed: ?*u32) HRESULT { return @as(*const IDebugControl6.VTable, @ptrCast(self.vtable)).GetLastEventInformation(@as(*const IDebugControl6, @ptrCast(self)), Type, ProcessId, ThreadId, ExtraInformation, ExtraInformationSize, ExtraInformationUsed, Description, DescriptionSize, DescriptionUsed); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl6_GetCurrentTimeDate(self: *const T, TimeDate: ?*u32) HRESULT { return @as(*const IDebugControl6.VTable, @ptrCast(self.vtable)).GetCurrentTimeDate(@as(*const IDebugControl6, @ptrCast(self)), TimeDate); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl6_GetCurrentSystemUpTime(self: *const T, UpTime: ?*u32) HRESULT { return @as(*const IDebugControl6.VTable, @ptrCast(self.vtable)).GetCurrentSystemUpTime(@as(*const IDebugControl6, @ptrCast(self)), UpTime); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl6_GetDumpFormatFlags(self: *const T, FormatFlags: ?*u32) HRESULT { return @as(*const IDebugControl6.VTable, @ptrCast(self.vtable)).GetDumpFormatFlags(@as(*const IDebugControl6, @ptrCast(self)), FormatFlags); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl6_GetNumberTextReplacements(self: *const T, NumRepl: ?*u32) HRESULT { return @as(*const IDebugControl6.VTable, @ptrCast(self.vtable)).GetNumberTextReplacements(@as(*const IDebugControl6, @ptrCast(self)), NumRepl); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl6_GetTextReplacement(self: *const T, SrcText: ?[*:0]const u8, Index: u32, SrcBuffer: ?[*:0]u8, SrcBufferSize: u32, SrcSize: ?*u32, DstBuffer: ?[*:0]u8, DstBufferSize: u32, DstSize: ?*u32) HRESULT { return @as(*const IDebugControl6.VTable, @ptrCast(self.vtable)).GetTextReplacement(@as(*const IDebugControl6, @ptrCast(self)), SrcText, Index, SrcBuffer, SrcBufferSize, SrcSize, DstBuffer, DstBufferSize, DstSize); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl6_SetTextReplacement(self: *const T, SrcText: ?[*:0]const u8, DstText: ?[*:0]const u8) HRESULT { return @as(*const IDebugControl6.VTable, @ptrCast(self.vtable)).SetTextReplacement(@as(*const IDebugControl6, @ptrCast(self)), SrcText, DstText); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl6_RemoveTextReplacements(self: *const T) HRESULT { return @as(*const IDebugControl6.VTable, @ptrCast(self.vtable)).RemoveTextReplacements(@as(*const IDebugControl6, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl6_OutputTextReplacements(self: *const T, OutputControl: u32, Flags: u32) HRESULT { return @as(*const IDebugControl6.VTable, @ptrCast(self.vtable)).OutputTextReplacements(@as(*const IDebugControl6, @ptrCast(self)), OutputControl, Flags); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl6_GetAssemblyOptions(self: *const T, Options: ?*u32) HRESULT { return @as(*const IDebugControl6.VTable, @ptrCast(self.vtable)).GetAssemblyOptions(@as(*const IDebugControl6, @ptrCast(self)), Options); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl6_AddAssemblyOptions(self: *const T, Options: u32) HRESULT { return @as(*const IDebugControl6.VTable, @ptrCast(self.vtable)).AddAssemblyOptions(@as(*const IDebugControl6, @ptrCast(self)), Options); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl6_RemoveAssemblyOptions(self: *const T, Options: u32) HRESULT { return @as(*const IDebugControl6.VTable, @ptrCast(self.vtable)).RemoveAssemblyOptions(@as(*const IDebugControl6, @ptrCast(self)), Options); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl6_SetAssemblyOptions(self: *const T, Options: u32) HRESULT { return @as(*const IDebugControl6.VTable, @ptrCast(self.vtable)).SetAssemblyOptions(@as(*const IDebugControl6, @ptrCast(self)), Options); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl6_GetExpressionSyntax(self: *const T, Flags: ?*u32) HRESULT { return @as(*const IDebugControl6.VTable, @ptrCast(self.vtable)).GetExpressionSyntax(@as(*const IDebugControl6, @ptrCast(self)), Flags); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl6_SetExpressionSyntax(self: *const T, Flags: u32) HRESULT { return @as(*const IDebugControl6.VTable, @ptrCast(self.vtable)).SetExpressionSyntax(@as(*const IDebugControl6, @ptrCast(self)), Flags); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl6_SetExpressionSyntaxByName(self: *const T, AbbrevName: ?[*:0]const u8) HRESULT { return @as(*const IDebugControl6.VTable, @ptrCast(self.vtable)).SetExpressionSyntaxByName(@as(*const IDebugControl6, @ptrCast(self)), AbbrevName); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl6_GetNumberExpressionSyntaxes(self: *const T, Number: ?*u32) HRESULT { return @as(*const IDebugControl6.VTable, @ptrCast(self.vtable)).GetNumberExpressionSyntaxes(@as(*const IDebugControl6, @ptrCast(self)), Number); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl6_GetExpressionSyntaxNames(self: *const T, Index: u32, FullNameBuffer: ?[*:0]u8, FullNameBufferSize: u32, FullNameSize: ?*u32, AbbrevNameBuffer: ?[*:0]u8, AbbrevNameBufferSize: u32, AbbrevNameSize: ?*u32) HRESULT { return @as(*const IDebugControl6.VTable, @ptrCast(self.vtable)).GetExpressionSyntaxNames(@as(*const IDebugControl6, @ptrCast(self)), Index, FullNameBuffer, FullNameBufferSize, FullNameSize, AbbrevNameBuffer, AbbrevNameBufferSize, AbbrevNameSize); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl6_GetNumberEvents(self: *const T, Events: ?*u32) HRESULT { return @as(*const IDebugControl6.VTable, @ptrCast(self.vtable)).GetNumberEvents(@as(*const IDebugControl6, @ptrCast(self)), Events); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl6_GetEventIndexDescription(self: *const T, Index: u32, Which: u32, Buffer: ?PSTR, BufferSize: u32, DescSize: ?*u32) HRESULT { return @as(*const IDebugControl6.VTable, @ptrCast(self.vtable)).GetEventIndexDescription(@as(*const IDebugControl6, @ptrCast(self)), Index, Which, Buffer, BufferSize, DescSize); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl6_GetCurrentEventIndex(self: *const T, Index: ?*u32) HRESULT { return @as(*const IDebugControl6.VTable, @ptrCast(self.vtable)).GetCurrentEventIndex(@as(*const IDebugControl6, @ptrCast(self)), Index); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl6_SetNextEventIndex(self: *const T, Relation: u32, Value: u32, NextIndex: ?*u32) HRESULT { return @as(*const IDebugControl6.VTable, @ptrCast(self.vtable)).SetNextEventIndex(@as(*const IDebugControl6, @ptrCast(self)), Relation, Value, NextIndex); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl6_GetLogFileWide(self: *const T, Buffer: ?[*:0]u16, BufferSize: u32, FileSize: ?*u32, Append: ?*BOOL) HRESULT { return @as(*const IDebugControl6.VTable, @ptrCast(self.vtable)).GetLogFileWide(@as(*const IDebugControl6, @ptrCast(self)), Buffer, BufferSize, FileSize, Append); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl6_OpenLogFileWide(self: *const T, File: ?[*:0]const u16, Append: BOOL) HRESULT { return @as(*const IDebugControl6.VTable, @ptrCast(self.vtable)).OpenLogFileWide(@as(*const IDebugControl6, @ptrCast(self)), File, Append); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl6_InputWide(self: *const T, Buffer: [*:0]u16, BufferSize: u32, InputSize: ?*u32) HRESULT { return @as(*const IDebugControl6.VTable, @ptrCast(self.vtable)).InputWide(@as(*const IDebugControl6, @ptrCast(self)), Buffer, BufferSize, InputSize); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl6_ReturnInputWide(self: *const T, Buffer: ?[*:0]const u16) HRESULT { return @as(*const IDebugControl6.VTable, @ptrCast(self.vtable)).ReturnInputWide(@as(*const IDebugControl6, @ptrCast(self)), Buffer); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl6_OutputWide(self: *const T, Mask: u32, Format: ?[*:0]const u16) HRESULT { return @as(*const IDebugControl6.VTable, @ptrCast(self.vtable)).OutputWide(@as(*const IDebugControl6, @ptrCast(self)), Mask, Format); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl6_OutputVaListWide(self: *const T, Mask: u32, Format: ?[*:0]const u16, Args: ?*i8) HRESULT { return @as(*const IDebugControl6.VTable, @ptrCast(self.vtable)).OutputVaListWide(@as(*const IDebugControl6, @ptrCast(self)), Mask, Format, Args); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl6_ControlledOutputWide(self: *const T, OutputControl: u32, Mask: u32, Format: ?[*:0]const u16) HRESULT { return @as(*const IDebugControl6.VTable, @ptrCast(self.vtable)).ControlledOutputWide(@as(*const IDebugControl6, @ptrCast(self)), OutputControl, Mask, Format); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl6_ControlledOutputVaListWide(self: *const T, OutputControl: u32, Mask: u32, Format: ?[*:0]const u16, Args: ?*i8) HRESULT { return @as(*const IDebugControl6.VTable, @ptrCast(self.vtable)).ControlledOutputVaListWide(@as(*const IDebugControl6, @ptrCast(self)), OutputControl, Mask, Format, Args); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl6_OutputPromptWide(self: *const T, OutputControl: u32, Format: ?[*:0]const u16) HRESULT { return @as(*const IDebugControl6.VTable, @ptrCast(self.vtable)).OutputPromptWide(@as(*const IDebugControl6, @ptrCast(self)), OutputControl, Format); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl6_OutputPromptVaListWide(self: *const T, OutputControl: u32, Format: ?[*:0]const u16, Args: ?*i8) HRESULT { return @as(*const IDebugControl6.VTable, @ptrCast(self.vtable)).OutputPromptVaListWide(@as(*const IDebugControl6, @ptrCast(self)), OutputControl, Format, Args); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl6_GetPromptTextWide(self: *const T, Buffer: ?[*:0]u16, BufferSize: u32, TextSize: ?*u32) HRESULT { return @as(*const IDebugControl6.VTable, @ptrCast(self.vtable)).GetPromptTextWide(@as(*const IDebugControl6, @ptrCast(self)), Buffer, BufferSize, TextSize); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl6_AssembleWide(self: *const T, Offset: u64, Instr: ?[*:0]const u16, EndOffset: ?*u64) HRESULT { return @as(*const IDebugControl6.VTable, @ptrCast(self.vtable)).AssembleWide(@as(*const IDebugControl6, @ptrCast(self)), Offset, Instr, EndOffset); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl6_DisassembleWide(self: *const T, Offset: u64, Flags: u32, Buffer: ?[*:0]u16, BufferSize: u32, DisassemblySize: ?*u32, EndOffset: ?*u64) HRESULT { return @as(*const IDebugControl6.VTable, @ptrCast(self.vtable)).DisassembleWide(@as(*const IDebugControl6, @ptrCast(self)), Offset, Flags, Buffer, BufferSize, DisassemblySize, EndOffset); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl6_GetProcessorTypeNamesWide(self: *const T, Type: u32, FullNameBuffer: ?[*:0]u16, FullNameBufferSize: u32, FullNameSize: ?*u32, AbbrevNameBuffer: ?[*:0]u16, AbbrevNameBufferSize: u32, AbbrevNameSize: ?*u32) HRESULT { return @as(*const IDebugControl6.VTable, @ptrCast(self.vtable)).GetProcessorTypeNamesWide(@as(*const IDebugControl6, @ptrCast(self)), Type, FullNameBuffer, FullNameBufferSize, FullNameSize, AbbrevNameBuffer, AbbrevNameBufferSize, AbbrevNameSize); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl6_GetTextMacroWide(self: *const T, Slot: u32, Buffer: ?[*:0]u16, BufferSize: u32, MacroSize: ?*u32) HRESULT { return @as(*const IDebugControl6.VTable, @ptrCast(self.vtable)).GetTextMacroWide(@as(*const IDebugControl6, @ptrCast(self)), Slot, Buffer, BufferSize, MacroSize); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl6_SetTextMacroWide(self: *const T, Slot: u32, Macro: ?[*:0]const u16) HRESULT { return @as(*const IDebugControl6.VTable, @ptrCast(self.vtable)).SetTextMacroWide(@as(*const IDebugControl6, @ptrCast(self)), Slot, Macro); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl6_EvaluateWide(self: *const T, Expression: ?[*:0]const u16, DesiredType: u32, Value: ?*DEBUG_VALUE, RemainderIndex: ?*u32) HRESULT { return @as(*const IDebugControl6.VTable, @ptrCast(self.vtable)).EvaluateWide(@as(*const IDebugControl6, @ptrCast(self)), Expression, DesiredType, Value, RemainderIndex); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl6_ExecuteWide(self: *const T, OutputControl: u32, Command: ?[*:0]const u16, Flags: u32) HRESULT { return @as(*const IDebugControl6.VTable, @ptrCast(self.vtable)).ExecuteWide(@as(*const IDebugControl6, @ptrCast(self)), OutputControl, Command, Flags); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl6_ExecuteCommandFileWide(self: *const T, OutputControl: u32, CommandFile: ?[*:0]const u16, Flags: u32) HRESULT { return @as(*const IDebugControl6.VTable, @ptrCast(self.vtable)).ExecuteCommandFileWide(@as(*const IDebugControl6, @ptrCast(self)), OutputControl, CommandFile, Flags); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl6_GetBreakpointByIndex2(self: *const T, Index: u32, Bp: ?*?*IDebugBreakpoint2) HRESULT { return @as(*const IDebugControl6.VTable, @ptrCast(self.vtable)).GetBreakpointByIndex2(@as(*const IDebugControl6, @ptrCast(self)), Index, Bp); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl6_GetBreakpointById2(self: *const T, Id: u32, Bp: ?*?*IDebugBreakpoint2) HRESULT { return @as(*const IDebugControl6.VTable, @ptrCast(self.vtable)).GetBreakpointById2(@as(*const IDebugControl6, @ptrCast(self)), Id, Bp); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl6_AddBreakpoint2(self: *const T, Type: u32, DesiredId: u32, Bp: ?*?*IDebugBreakpoint2) HRESULT { return @as(*const IDebugControl6.VTable, @ptrCast(self.vtable)).AddBreakpoint2(@as(*const IDebugControl6, @ptrCast(self)), Type, DesiredId, Bp); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl6_RemoveBreakpoint2(self: *const T, Bp: ?*IDebugBreakpoint2) HRESULT { return @as(*const IDebugControl6.VTable, @ptrCast(self.vtable)).RemoveBreakpoint2(@as(*const IDebugControl6, @ptrCast(self)), Bp); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl6_AddExtensionWide(self: *const T, Path: ?[*:0]const u16, Flags: u32, Handle: ?*u64) HRESULT { return @as(*const IDebugControl6.VTable, @ptrCast(self.vtable)).AddExtensionWide(@as(*const IDebugControl6, @ptrCast(self)), Path, Flags, Handle); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl6_GetExtensionByPathWide(self: *const T, Path: ?[*:0]const u16, Handle: ?*u64) HRESULT { return @as(*const IDebugControl6.VTable, @ptrCast(self.vtable)).GetExtensionByPathWide(@as(*const IDebugControl6, @ptrCast(self)), Path, Handle); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl6_CallExtensionWide(self: *const T, Handle: u64, Function: ?[*:0]const u16, Arguments: ?[*:0]const u16) HRESULT { return @as(*const IDebugControl6.VTable, @ptrCast(self.vtable)).CallExtensionWide(@as(*const IDebugControl6, @ptrCast(self)), Handle, Function, Arguments); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl6_GetExtensionFunctionWide(self: *const T, Handle: u64, FuncName: ?[*:0]const u16, Function: ?*?FARPROC) HRESULT { return @as(*const IDebugControl6.VTable, @ptrCast(self.vtable)).GetExtensionFunctionWide(@as(*const IDebugControl6, @ptrCast(self)), Handle, FuncName, Function); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl6_GetEventFilterTextWide(self: *const T, Index: u32, Buffer: ?[*:0]u16, BufferSize: u32, TextSize: ?*u32) HRESULT { return @as(*const IDebugControl6.VTable, @ptrCast(self.vtable)).GetEventFilterTextWide(@as(*const IDebugControl6, @ptrCast(self)), Index, Buffer, BufferSize, TextSize); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl6_GetEventFilterCommandWide(self: *const T, Index: u32, Buffer: ?[*:0]u16, BufferSize: u32, CommandSize: ?*u32) HRESULT { return @as(*const IDebugControl6.VTable, @ptrCast(self.vtable)).GetEventFilterCommandWide(@as(*const IDebugControl6, @ptrCast(self)), Index, Buffer, BufferSize, CommandSize); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl6_SetEventFilterCommandWide(self: *const T, Index: u32, Command: ?[*:0]const u16) HRESULT { return @as(*const IDebugControl6.VTable, @ptrCast(self.vtable)).SetEventFilterCommandWide(@as(*const IDebugControl6, @ptrCast(self)), Index, Command); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl6_GetSpecificFilterArgumentWide(self: *const T, Index: u32, Buffer: ?[*:0]u16, BufferSize: u32, ArgumentSize: ?*u32) HRESULT { return @as(*const IDebugControl6.VTable, @ptrCast(self.vtable)).GetSpecificFilterArgumentWide(@as(*const IDebugControl6, @ptrCast(self)), Index, Buffer, BufferSize, ArgumentSize); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl6_SetSpecificFilterArgumentWide(self: *const T, Index: u32, Argument: ?[*:0]const u16) HRESULT { return @as(*const IDebugControl6.VTable, @ptrCast(self.vtable)).SetSpecificFilterArgumentWide(@as(*const IDebugControl6, @ptrCast(self)), Index, Argument); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl6_GetExceptionFilterSecondCommandWide(self: *const T, Index: u32, Buffer: ?[*:0]u16, BufferSize: u32, CommandSize: ?*u32) HRESULT { return @as(*const IDebugControl6.VTable, @ptrCast(self.vtable)).GetExceptionFilterSecondCommandWide(@as(*const IDebugControl6, @ptrCast(self)), Index, Buffer, BufferSize, CommandSize); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl6_SetExceptionFilterSecondCommandWide(self: *const T, Index: u32, Command: ?[*:0]const u16) HRESULT { return @as(*const IDebugControl6.VTable, @ptrCast(self.vtable)).SetExceptionFilterSecondCommandWide(@as(*const IDebugControl6, @ptrCast(self)), Index, Command); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl6_GetLastEventInformationWide(self: *const T, Type: ?*u32, ProcessId: ?*u32, ThreadId: ?*u32, ExtraInformation: ?*anyopaque, ExtraInformationSize: u32, ExtraInformationUsed: ?*u32, Description: ?[*:0]u16, DescriptionSize: u32, DescriptionUsed: ?*u32) HRESULT { return @as(*const IDebugControl6.VTable, @ptrCast(self.vtable)).GetLastEventInformationWide(@as(*const IDebugControl6, @ptrCast(self)), Type, ProcessId, ThreadId, ExtraInformation, ExtraInformationSize, ExtraInformationUsed, Description, DescriptionSize, DescriptionUsed); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl6_GetTextReplacementWide(self: *const T, SrcText: ?[*:0]const u16, Index: u32, SrcBuffer: ?[*:0]u16, SrcBufferSize: u32, SrcSize: ?*u32, DstBuffer: ?[*:0]u16, DstBufferSize: u32, DstSize: ?*u32) HRESULT { return @as(*const IDebugControl6.VTable, @ptrCast(self.vtable)).GetTextReplacementWide(@as(*const IDebugControl6, @ptrCast(self)), SrcText, Index, SrcBuffer, SrcBufferSize, SrcSize, DstBuffer, DstBufferSize, DstSize); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl6_SetTextReplacementWide(self: *const T, SrcText: ?[*:0]const u16, DstText: ?[*:0]const u16) HRESULT { return @as(*const IDebugControl6.VTable, @ptrCast(self.vtable)).SetTextReplacementWide(@as(*const IDebugControl6, @ptrCast(self)), SrcText, DstText); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl6_SetExpressionSyntaxByNameWide(self: *const T, AbbrevName: ?[*:0]const u16) HRESULT { return @as(*const IDebugControl6.VTable, @ptrCast(self.vtable)).SetExpressionSyntaxByNameWide(@as(*const IDebugControl6, @ptrCast(self)), AbbrevName); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl6_GetExpressionSyntaxNamesWide(self: *const T, Index: u32, FullNameBuffer: ?[*:0]u16, FullNameBufferSize: u32, FullNameSize: ?*u32, AbbrevNameBuffer: ?[*:0]u16, AbbrevNameBufferSize: u32, AbbrevNameSize: ?*u32) HRESULT { return @as(*const IDebugControl6.VTable, @ptrCast(self.vtable)).GetExpressionSyntaxNamesWide(@as(*const IDebugControl6, @ptrCast(self)), Index, FullNameBuffer, FullNameBufferSize, FullNameSize, AbbrevNameBuffer, AbbrevNameBufferSize, AbbrevNameSize); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl6_GetEventIndexDescriptionWide(self: *const T, Index: u32, Which: u32, Buffer: ?PWSTR, BufferSize: u32, DescSize: ?*u32) HRESULT { return @as(*const IDebugControl6.VTable, @ptrCast(self.vtable)).GetEventIndexDescriptionWide(@as(*const IDebugControl6, @ptrCast(self)), Index, Which, Buffer, BufferSize, DescSize); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl6_GetLogFile2(self: *const T, Buffer: ?[*:0]u8, BufferSize: u32, FileSize: ?*u32, Flags: ?*u32) HRESULT { return @as(*const IDebugControl6.VTable, @ptrCast(self.vtable)).GetLogFile2(@as(*const IDebugControl6, @ptrCast(self)), Buffer, BufferSize, FileSize, Flags); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl6_OpenLogFile2(self: *const T, File: ?[*:0]const u8, Flags: u32) HRESULT { return @as(*const IDebugControl6.VTable, @ptrCast(self.vtable)).OpenLogFile2(@as(*const IDebugControl6, @ptrCast(self)), File, Flags); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl6_GetLogFile2Wide(self: *const T, Buffer: ?[*:0]u16, BufferSize: u32, FileSize: ?*u32, Flags: ?*u32) HRESULT { return @as(*const IDebugControl6.VTable, @ptrCast(self.vtable)).GetLogFile2Wide(@as(*const IDebugControl6, @ptrCast(self)), Buffer, BufferSize, FileSize, Flags); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl6_OpenLogFile2Wide(self: *const T, File: ?[*:0]const u16, Flags: u32) HRESULT { return @as(*const IDebugControl6.VTable, @ptrCast(self.vtable)).OpenLogFile2Wide(@as(*const IDebugControl6, @ptrCast(self)), File, Flags); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl6_GetSystemVersionValues(self: *const T, PlatformId: ?*u32, Win32Major: ?*u32, Win32Minor: ?*u32, KdMajor: ?*u32, KdMinor: ?*u32) HRESULT { return @as(*const IDebugControl6.VTable, @ptrCast(self.vtable)).GetSystemVersionValues(@as(*const IDebugControl6, @ptrCast(self)), PlatformId, Win32Major, Win32Minor, KdMajor, KdMinor); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl6_GetSystemVersionString(self: *const T, Which: u32, Buffer: ?[*:0]u8, BufferSize: u32, StringSize: ?*u32) HRESULT { return @as(*const IDebugControl6.VTable, @ptrCast(self.vtable)).GetSystemVersionString(@as(*const IDebugControl6, @ptrCast(self)), Which, Buffer, BufferSize, StringSize); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl6_GetSystemVersionStringWide(self: *const T, Which: u32, Buffer: ?[*:0]u16, BufferSize: u32, StringSize: ?*u32) HRESULT { return @as(*const IDebugControl6.VTable, @ptrCast(self.vtable)).GetSystemVersionStringWide(@as(*const IDebugControl6, @ptrCast(self)), Which, Buffer, BufferSize, StringSize); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl6_GetContextStackTrace(self: *const T, StartContext: ?*anyopaque, StartContextSize: u32, Frames: ?[*]DEBUG_STACK_FRAME, FramesSize: u32, FrameContexts: ?*anyopaque, FrameContextsSize: u32, FrameContextsEntrySize: u32, FramesFilled: ?*u32) HRESULT { return @as(*const IDebugControl6.VTable, @ptrCast(self.vtable)).GetContextStackTrace(@as(*const IDebugControl6, @ptrCast(self)), StartContext, StartContextSize, Frames, FramesSize, FrameContexts, FrameContextsSize, FrameContextsEntrySize, FramesFilled); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl6_OutputContextStackTrace(self: *const T, OutputControl: u32, Frames: [*]DEBUG_STACK_FRAME, FramesSize: u32, FrameContexts: ?*anyopaque, FrameContextsSize: u32, FrameContextsEntrySize: u32, Flags: u32) HRESULT { return @as(*const IDebugControl6.VTable, @ptrCast(self.vtable)).OutputContextStackTrace(@as(*const IDebugControl6, @ptrCast(self)), OutputControl, Frames, FramesSize, FrameContexts, FrameContextsSize, FrameContextsEntrySize, Flags); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl6_GetStoredEventInformation(self: *const T, Type: ?*u32, ProcessId: ?*u32, ThreadId: ?*u32, Context: ?*anyopaque, ContextSize: u32, ContextUsed: ?*u32, ExtraInformation: ?*anyopaque, ExtraInformationSize: u32, ExtraInformationUsed: ?*u32) HRESULT { return @as(*const IDebugControl6.VTable, @ptrCast(self.vtable)).GetStoredEventInformation(@as(*const IDebugControl6, @ptrCast(self)), Type, ProcessId, ThreadId, Context, ContextSize, ContextUsed, ExtraInformation, ExtraInformationSize, ExtraInformationUsed); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl6_GetManagedStatus(self: *const T, Flags: ?*u32, WhichString: u32, String: ?[*:0]u8, StringSize: u32, StringNeeded: ?*u32) HRESULT { return @as(*const IDebugControl6.VTable, @ptrCast(self.vtable)).GetManagedStatus(@as(*const IDebugControl6, @ptrCast(self)), Flags, WhichString, String, StringSize, StringNeeded); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl6_GetManagedStatusWide(self: *const T, Flags: ?*u32, WhichString: u32, String: ?[*:0]u16, StringSize: u32, StringNeeded: ?*u32) HRESULT { return @as(*const IDebugControl6.VTable, @ptrCast(self.vtable)).GetManagedStatusWide(@as(*const IDebugControl6, @ptrCast(self)), Flags, WhichString, String, StringSize, StringNeeded); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl6_ResetManagedStatus(self: *const T, Flags: u32) HRESULT { return @as(*const IDebugControl6.VTable, @ptrCast(self.vtable)).ResetManagedStatus(@as(*const IDebugControl6, @ptrCast(self)), Flags); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl6_GetStackTraceEx(self: *const T, FrameOffset: u64, StackOffset: u64, InstructionOffset: u64, Frames: [*]DEBUG_STACK_FRAME_EX, FramesSize: u32, FramesFilled: ?*u32) HRESULT { return @as(*const IDebugControl6.VTable, @ptrCast(self.vtable)).GetStackTraceEx(@as(*const IDebugControl6, @ptrCast(self)), FrameOffset, StackOffset, InstructionOffset, Frames, FramesSize, FramesFilled); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl6_OutputStackTraceEx(self: *const T, OutputControl: u32, Frames: ?[*]DEBUG_STACK_FRAME_EX, FramesSize: u32, Flags: u32) HRESULT { return @as(*const IDebugControl6.VTable, @ptrCast(self.vtable)).OutputStackTraceEx(@as(*const IDebugControl6, @ptrCast(self)), OutputControl, Frames, FramesSize, Flags); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl6_GetContextStackTraceEx(self: *const T, StartContext: ?*anyopaque, StartContextSize: u32, Frames: ?[*]DEBUG_STACK_FRAME_EX, FramesSize: u32, FrameContexts: ?*anyopaque, FrameContextsSize: u32, FrameContextsEntrySize: u32, FramesFilled: ?*u32) HRESULT { return @as(*const IDebugControl6.VTable, @ptrCast(self.vtable)).GetContextStackTraceEx(@as(*const IDebugControl6, @ptrCast(self)), StartContext, StartContextSize, Frames, FramesSize, FrameContexts, FrameContextsSize, FrameContextsEntrySize, FramesFilled); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl6_OutputContextStackTraceEx(self: *const T, OutputControl: u32, Frames: [*]DEBUG_STACK_FRAME_EX, FramesSize: u32, FrameContexts: ?*anyopaque, FrameContextsSize: u32, FrameContextsEntrySize: u32, Flags: u32) HRESULT { return @as(*const IDebugControl6.VTable, @ptrCast(self.vtable)).OutputContextStackTraceEx(@as(*const IDebugControl6, @ptrCast(self)), OutputControl, Frames, FramesSize, FrameContexts, FrameContextsSize, FrameContextsEntrySize, Flags); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl6_GetBreakpointByGuid(self: *const T, _param_Guid: ?*Guid, Bp: ?*?*IDebugBreakpoint3) HRESULT { return @as(*const IDebugControl6.VTable, @ptrCast(self.vtable)).GetBreakpointByGuid(@as(*const IDebugControl6, @ptrCast(self)), _param_Guid, Bp); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl6_GetExecutionStatusEx(self: *const T, Status: ?*u32) HRESULT { return @as(*const IDebugControl6.VTable, @ptrCast(self.vtable)).GetExecutionStatusEx(@as(*const IDebugControl6, @ptrCast(self)), Status); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl6_GetSynchronizationStatus(self: *const T, SendsAttempted: ?*u32, SecondsSinceLastResponse: ?*u32) HRESULT { return @as(*const IDebugControl6.VTable, @ptrCast(self.vtable)).GetSynchronizationStatus(@as(*const IDebugControl6, @ptrCast(self)), SendsAttempted, SecondsSinceLastResponse); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IDebugControl7_Value = Guid.initString("b86fb3b1-80d4-475b-aea3-cf06539cf63a"); pub const IID_IDebugControl7 = &IID_IDebugControl7_Value; pub const IDebugControl7 = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, GetInterrupt: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl7, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl7, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetInterrupt: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl7, Flags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl7, Flags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetInterruptTimeout: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl7, Seconds: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl7, Seconds: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetInterruptTimeout: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl7, Seconds: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl7, Seconds: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetLogFile: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl7, Buffer: ?[*:0]u8, BufferSize: u32, FileSize: ?*u32, Append: ?*BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl7, Buffer: ?[*:0]u8, BufferSize: u32, FileSize: ?*u32, Append: ?*BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, OpenLogFile: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl7, File: ?[*:0]const u8, Append: BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl7, File: ?[*:0]const u8, Append: BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, CloseLogFile: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl7, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl7, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetLogMask: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl7, Mask: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl7, Mask: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetLogMask: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl7, Mask: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl7, Mask: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Input: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl7, Buffer: [*:0]u8, BufferSize: u32, InputSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl7, Buffer: [*:0]u8, BufferSize: u32, InputSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, ReturnInput: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl7, Buffer: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl7, Buffer: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Output: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl7, Mask: u32, Format: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl7, Mask: u32, Format: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, OutputVaList: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl7, Mask: u32, Format: ?[*:0]const u8, Args: ?*i8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl7, Mask: u32, Format: ?[*:0]const u8, Args: ?*i8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, ControlledOutput: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl7, OutputControl: u32, Mask: u32, Format: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl7, OutputControl: u32, Mask: u32, Format: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, ControlledOutputVaList: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl7, OutputControl: u32, Mask: u32, Format: ?[*:0]const u8, Args: ?*i8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl7, OutputControl: u32, Mask: u32, Format: ?[*:0]const u8, Args: ?*i8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, OutputPrompt: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl7, OutputControl: u32, Format: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl7, OutputControl: u32, Format: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, OutputPromptVaList: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl7, OutputControl: u32, Format: ?[*:0]const u8, Args: ?*i8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl7, OutputControl: u32, Format: ?[*:0]const u8, Args: ?*i8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetPromptText: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl7, Buffer: ?[*:0]u8, BufferSize: u32, TextSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl7, Buffer: ?[*:0]u8, BufferSize: u32, TextSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, OutputCurrentState: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl7, OutputControl: u32, Flags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl7, OutputControl: u32, Flags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, OutputVersionInformation: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl7, OutputControl: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl7, OutputControl: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetNotifyEventHandle: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl7, Handle: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl7, Handle: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetNotifyEventHandle: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl7, Handle: u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl7, Handle: u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Assemble: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl7, Offset: u64, Instr: ?[*:0]const u8, EndOffset: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl7, Offset: u64, Instr: ?[*:0]const u8, EndOffset: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Disassemble: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl7, Offset: u64, Flags: u32, Buffer: ?[*:0]u8, BufferSize: u32, DisassemblySize: ?*u32, EndOffset: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl7, Offset: u64, Flags: u32, Buffer: ?[*:0]u8, BufferSize: u32, DisassemblySize: ?*u32, EndOffset: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetDisassembleEffectiveOffset: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl7, Offset: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl7, Offset: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, OutputDisassembly: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl7, OutputControl: u32, Offset: u64, Flags: u32, EndOffset: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl7, OutputControl: u32, Offset: u64, Flags: u32, EndOffset: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, OutputDisassemblyLines: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl7, OutputControl: u32, PreviousLines: u32, TotalLines: u32, Offset: u64, Flags: u32, OffsetLine: ?*u32, StartOffset: ?*u64, EndOffset: ?*u64, LineOffsets: ?[*]u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl7, OutputControl: u32, PreviousLines: u32, TotalLines: u32, Offset: u64, Flags: u32, OffsetLine: ?*u32, StartOffset: ?*u64, EndOffset: ?*u64, LineOffsets: ?[*]u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetNearInstruction: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl7, Offset: u64, Delta: i32, NearOffset: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl7, Offset: u64, Delta: i32, NearOffset: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetStackTrace: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl7, FrameOffset: u64, StackOffset: u64, InstructionOffset: u64, Frames: [*]DEBUG_STACK_FRAME, FramesSize: u32, FramesFilled: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl7, FrameOffset: u64, StackOffset: u64, InstructionOffset: u64, Frames: [*]DEBUG_STACK_FRAME, FramesSize: u32, FramesFilled: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetReturnOffset: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl7, Offset: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl7, Offset: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, OutputStackTrace: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl7, OutputControl: u32, Frames: ?[*]DEBUG_STACK_FRAME, FramesSize: u32, Flags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl7, OutputControl: u32, Frames: ?[*]DEBUG_STACK_FRAME, FramesSize: u32, Flags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetDebuggeeType: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl7, Class: ?*u32, Qualifier: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl7, Class: ?*u32, Qualifier: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetActualProcessorType: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl7, Type: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl7, Type: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetExecutingProcessorType: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl7, Type: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl7, Type: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetNumberPossibleExecutingProcessorTypes: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl7, Number: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl7, Number: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetPossibleExecutingProcessorTypes: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl7, Start: u32, Count: u32, Types: [*]u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl7, Start: u32, Count: u32, Types: [*]u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetNumberProcessors: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl7, Number: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl7, Number: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetSystemVersion: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl7, PlatformId: ?*u32, Major: ?*u32, Minor: ?*u32, ServicePackString: ?[*:0]u8, ServicePackStringSize: u32, ServicePackStringUsed: ?*u32, ServicePackNumber: ?*u32, BuildString: ?[*:0]u8, BuildStringSize: u32, BuildStringUsed: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl7, PlatformId: ?*u32, Major: ?*u32, Minor: ?*u32, ServicePackString: ?[*:0]u8, ServicePackStringSize: u32, ServicePackStringUsed: ?*u32, ServicePackNumber: ?*u32, BuildString: ?[*:0]u8, BuildStringSize: u32, BuildStringUsed: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetPageSize: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl7, Size: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl7, Size: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, IsPointer64Bit: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl7, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl7, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, ReadBugCheckData: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl7, Code: ?*u32, Arg1: ?*u64, Arg2: ?*u64, Arg3: ?*u64, Arg4: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl7, Code: ?*u32, Arg1: ?*u64, Arg2: ?*u64, Arg3: ?*u64, Arg4: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetNumberSupportedProcessorTypes: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl7, Number: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl7, Number: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetSupportedProcessorTypes: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl7, Start: u32, Count: u32, Types: [*]u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl7, Start: u32, Count: u32, Types: [*]u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetProcessorTypeNames: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl7, Type: u32, FullNameBuffer: ?[*:0]u8, FullNameBufferSize: u32, FullNameSize: ?*u32, AbbrevNameBuffer: ?[*:0]u8, AbbrevNameBufferSize: u32, AbbrevNameSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl7, Type: u32, FullNameBuffer: ?[*:0]u8, FullNameBufferSize: u32, FullNameSize: ?*u32, AbbrevNameBuffer: ?[*:0]u8, AbbrevNameBufferSize: u32, AbbrevNameSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetEffectiveProcessorType: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl7, Type: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl7, Type: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetEffectiveProcessorType: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl7, Type: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl7, Type: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetExecutionStatus: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl7, Status: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl7, Status: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetExecutionStatus: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl7, Status: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl7, Status: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetCodeLevel: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl7, Level: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl7, Level: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetCodeLevel: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl7, Level: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl7, Level: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetEngineOptions: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl7, Options: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl7, Options: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, AddEngineOptions: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl7, Options: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl7, Options: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, RemoveEngineOptions: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl7, Options: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl7, Options: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetEngineOptions: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl7, Options: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl7, Options: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetSystemErrorControl: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl7, OutputLevel: ?*u32, BreakLevel: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl7, OutputLevel: ?*u32, BreakLevel: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetSystemErrorControl: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl7, OutputLevel: u32, BreakLevel: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl7, OutputLevel: u32, BreakLevel: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetTextMacro: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl7, Slot: u32, Buffer: ?[*:0]u8, BufferSize: u32, MacroSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl7, Slot: u32, Buffer: ?[*:0]u8, BufferSize: u32, MacroSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetTextMacro: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl7, Slot: u32, Macro: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl7, Slot: u32, Macro: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetRadix: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl7, Radix: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl7, Radix: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetRadix: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl7, Radix: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl7, Radix: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Evaluate: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl7, Expression: ?[*:0]const u8, DesiredType: u32, Value: ?*DEBUG_VALUE, RemainderIndex: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl7, Expression: ?[*:0]const u8, DesiredType: u32, Value: ?*DEBUG_VALUE, RemainderIndex: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, CoerceValue: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl7, In: ?*DEBUG_VALUE, OutType: u32, Out: ?*DEBUG_VALUE, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl7, In: ?*DEBUG_VALUE, OutType: u32, Out: ?*DEBUG_VALUE, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, CoerceValues: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl7, Count: u32, In: [*]DEBUG_VALUE, OutTypes: [*]u32, Out: [*]DEBUG_VALUE, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl7, Count: u32, In: [*]DEBUG_VALUE, OutTypes: [*]u32, Out: [*]DEBUG_VALUE, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Execute: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl7, OutputControl: u32, Command: ?[*:0]const u8, Flags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl7, OutputControl: u32, Command: ?[*:0]const u8, Flags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, ExecuteCommandFile: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl7, OutputControl: u32, CommandFile: ?[*:0]const u8, Flags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl7, OutputControl: u32, CommandFile: ?[*:0]const u8, Flags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetNumberBreakpoints: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl7, Number: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl7, Number: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetBreakpointByIndex: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl7, Index: u32, Bp: ?*?*IDebugBreakpoint, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl7, Index: u32, Bp: ?*?*IDebugBreakpoint, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetBreakpointById: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl7, Id: u32, Bp: ?*?*IDebugBreakpoint, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl7, Id: u32, Bp: ?*?*IDebugBreakpoint, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetBreakpointParameters: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl7, Count: u32, Ids: ?[*]u32, Start: u32, Params: [*]DEBUG_BREAKPOINT_PARAMETERS, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl7, Count: u32, Ids: ?[*]u32, Start: u32, Params: [*]DEBUG_BREAKPOINT_PARAMETERS, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, AddBreakpoint: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl7, Type: u32, DesiredId: u32, Bp: ?*?*IDebugBreakpoint, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl7, Type: u32, DesiredId: u32, Bp: ?*?*IDebugBreakpoint, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, RemoveBreakpoint: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl7, Bp: ?*IDebugBreakpoint, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl7, Bp: ?*IDebugBreakpoint, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, AddExtension: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl7, Path: ?[*:0]const u8, Flags: u32, Handle: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl7, Path: ?[*:0]const u8, Flags: u32, Handle: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, RemoveExtension: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl7, Handle: u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl7, Handle: u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetExtensionByPath: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl7, Path: ?[*:0]const u8, Handle: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl7, Path: ?[*:0]const u8, Handle: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, CallExtension: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl7, Handle: u64, Function: ?[*:0]const u8, Arguments: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl7, Handle: u64, Function: ?[*:0]const u8, Arguments: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetExtensionFunction: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl7, Handle: u64, FuncName: ?[*:0]const u8, Function: ?*?FARPROC, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl7, Handle: u64, FuncName: ?[*:0]const u8, Function: ?*?FARPROC, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetWindbgExtensionApis32: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl7, Api: ?*WINDBG_EXTENSION_APIS32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl7, Api: ?*WINDBG_EXTENSION_APIS32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetWindbgExtensionApis64: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl7, Api: ?*WINDBG_EXTENSION_APIS64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl7, Api: ?*WINDBG_EXTENSION_APIS64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetNumberEventFilters: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl7, SpecificEvents: ?*u32, SpecificExceptions: ?*u32, ArbitraryExceptions: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl7, SpecificEvents: ?*u32, SpecificExceptions: ?*u32, ArbitraryExceptions: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetEventFilterText: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl7, Index: u32, Buffer: ?[*:0]u8, BufferSize: u32, TextSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl7, Index: u32, Buffer: ?[*:0]u8, BufferSize: u32, TextSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetEventFilterCommand: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl7, Index: u32, Buffer: ?[*:0]u8, BufferSize: u32, CommandSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl7, Index: u32, Buffer: ?[*:0]u8, BufferSize: u32, CommandSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetEventFilterCommand: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl7, Index: u32, Command: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl7, Index: u32, Command: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetSpecificFilterParameters: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl7, Start: u32, Count: u32, Params: [*]DEBUG_SPECIFIC_FILTER_PARAMETERS, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl7, Start: u32, Count: u32, Params: [*]DEBUG_SPECIFIC_FILTER_PARAMETERS, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetSpecificFilterParameters: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl7, Start: u32, Count: u32, Params: [*]DEBUG_SPECIFIC_FILTER_PARAMETERS, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl7, Start: u32, Count: u32, Params: [*]DEBUG_SPECIFIC_FILTER_PARAMETERS, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetSpecificFilterArgument: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl7, Index: u32, Buffer: ?[*:0]u8, BufferSize: u32, ArgumentSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl7, Index: u32, Buffer: ?[*:0]u8, BufferSize: u32, ArgumentSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetSpecificFilterArgument: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl7, Index: u32, Argument: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl7, Index: u32, Argument: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetExceptionFilterParameters: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl7, Count: u32, Codes: ?[*]u32, Start: u32, Params: [*]DEBUG_EXCEPTION_FILTER_PARAMETERS, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl7, Count: u32, Codes: ?[*]u32, Start: u32, Params: [*]DEBUG_EXCEPTION_FILTER_PARAMETERS, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetExceptionFilterParameters: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl7, Count: u32, Params: [*]DEBUG_EXCEPTION_FILTER_PARAMETERS, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl7, Count: u32, Params: [*]DEBUG_EXCEPTION_FILTER_PARAMETERS, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetExceptionFilterSecondCommand: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl7, Index: u32, Buffer: ?[*:0]u8, BufferSize: u32, CommandSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl7, Index: u32, Buffer: ?[*:0]u8, BufferSize: u32, CommandSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetExceptionFilterSecondCommand: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl7, Index: u32, Command: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl7, Index: u32, Command: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, WaitForEvent: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl7, Flags: u32, Timeout: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl7, Flags: u32, Timeout: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetLastEventInformation: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl7, Type: ?*u32, ProcessId: ?*u32, ThreadId: ?*u32, // TODO: what to do with BytesParamIndex 4? ExtraInformation: ?*anyopaque, ExtraInformationSize: u32, ExtraInformationUsed: ?*u32, Description: ?[*:0]u8, DescriptionSize: u32, DescriptionUsed: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl7, Type: ?*u32, ProcessId: ?*u32, ThreadId: ?*u32, // TODO: what to do with BytesParamIndex 4? ExtraInformation: ?*anyopaque, ExtraInformationSize: u32, ExtraInformationUsed: ?*u32, Description: ?[*:0]u8, DescriptionSize: u32, DescriptionUsed: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetCurrentTimeDate: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl7, TimeDate: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl7, TimeDate: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetCurrentSystemUpTime: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl7, UpTime: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl7, UpTime: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetDumpFormatFlags: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl7, FormatFlags: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl7, FormatFlags: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetNumberTextReplacements: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl7, NumRepl: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl7, NumRepl: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetTextReplacement: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl7, SrcText: ?[*:0]const u8, Index: u32, SrcBuffer: ?[*:0]u8, SrcBufferSize: u32, SrcSize: ?*u32, DstBuffer: ?[*:0]u8, DstBufferSize: u32, DstSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl7, SrcText: ?[*:0]const u8, Index: u32, SrcBuffer: ?[*:0]u8, SrcBufferSize: u32, SrcSize: ?*u32, DstBuffer: ?[*:0]u8, DstBufferSize: u32, DstSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetTextReplacement: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl7, SrcText: ?[*:0]const u8, DstText: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl7, SrcText: ?[*:0]const u8, DstText: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, RemoveTextReplacements: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl7, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl7, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, OutputTextReplacements: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl7, OutputControl: u32, Flags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl7, OutputControl: u32, Flags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetAssemblyOptions: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl7, Options: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl7, Options: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, AddAssemblyOptions: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl7, Options: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl7, Options: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, RemoveAssemblyOptions: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl7, Options: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl7, Options: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetAssemblyOptions: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl7, Options: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl7, Options: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetExpressionSyntax: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl7, Flags: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl7, Flags: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetExpressionSyntax: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl7, Flags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl7, Flags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetExpressionSyntaxByName: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl7, AbbrevName: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl7, AbbrevName: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetNumberExpressionSyntaxes: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl7, Number: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl7, Number: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetExpressionSyntaxNames: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl7, Index: u32, FullNameBuffer: ?[*:0]u8, FullNameBufferSize: u32, FullNameSize: ?*u32, AbbrevNameBuffer: ?[*:0]u8, AbbrevNameBufferSize: u32, AbbrevNameSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl7, Index: u32, FullNameBuffer: ?[*:0]u8, FullNameBufferSize: u32, FullNameSize: ?*u32, AbbrevNameBuffer: ?[*:0]u8, AbbrevNameBufferSize: u32, AbbrevNameSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetNumberEvents: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl7, Events: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl7, Events: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetEventIndexDescription: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl7, Index: u32, Which: u32, Buffer: ?PSTR, BufferSize: u32, DescSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl7, Index: u32, Which: u32, Buffer: ?PSTR, BufferSize: u32, DescSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetCurrentEventIndex: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl7, Index: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl7, Index: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetNextEventIndex: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl7, Relation: u32, Value: u32, NextIndex: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl7, Relation: u32, Value: u32, NextIndex: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetLogFileWide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl7, Buffer: ?[*:0]u16, BufferSize: u32, FileSize: ?*u32, Append: ?*BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl7, Buffer: ?[*:0]u16, BufferSize: u32, FileSize: ?*u32, Append: ?*BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, OpenLogFileWide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl7, File: ?[*:0]const u16, Append: BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl7, File: ?[*:0]const u16, Append: BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, InputWide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl7, Buffer: [*:0]u16, BufferSize: u32, InputSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl7, Buffer: [*:0]u16, BufferSize: u32, InputSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, ReturnInputWide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl7, Buffer: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl7, Buffer: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, OutputWide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl7, Mask: u32, Format: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl7, Mask: u32, Format: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, OutputVaListWide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl7, Mask: u32, Format: ?[*:0]const u16, Args: ?*i8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl7, Mask: u32, Format: ?[*:0]const u16, Args: ?*i8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, ControlledOutputWide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl7, OutputControl: u32, Mask: u32, Format: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl7, OutputControl: u32, Mask: u32, Format: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, ControlledOutputVaListWide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl7, OutputControl: u32, Mask: u32, Format: ?[*:0]const u16, Args: ?*i8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl7, OutputControl: u32, Mask: u32, Format: ?[*:0]const u16, Args: ?*i8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, OutputPromptWide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl7, OutputControl: u32, Format: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl7, OutputControl: u32, Format: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, OutputPromptVaListWide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl7, OutputControl: u32, Format: ?[*:0]const u16, Args: ?*i8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl7, OutputControl: u32, Format: ?[*:0]const u16, Args: ?*i8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetPromptTextWide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl7, Buffer: ?[*:0]u16, BufferSize: u32, TextSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl7, Buffer: ?[*:0]u16, BufferSize: u32, TextSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, AssembleWide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl7, Offset: u64, Instr: ?[*:0]const u16, EndOffset: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl7, Offset: u64, Instr: ?[*:0]const u16, EndOffset: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, DisassembleWide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl7, Offset: u64, Flags: u32, Buffer: ?[*:0]u16, BufferSize: u32, DisassemblySize: ?*u32, EndOffset: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl7, Offset: u64, Flags: u32, Buffer: ?[*:0]u16, BufferSize: u32, DisassemblySize: ?*u32, EndOffset: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetProcessorTypeNamesWide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl7, Type: u32, FullNameBuffer: ?[*:0]u16, FullNameBufferSize: u32, FullNameSize: ?*u32, AbbrevNameBuffer: ?[*:0]u16, AbbrevNameBufferSize: u32, AbbrevNameSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl7, Type: u32, FullNameBuffer: ?[*:0]u16, FullNameBufferSize: u32, FullNameSize: ?*u32, AbbrevNameBuffer: ?[*:0]u16, AbbrevNameBufferSize: u32, AbbrevNameSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetTextMacroWide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl7, Slot: u32, Buffer: ?[*:0]u16, BufferSize: u32, MacroSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl7, Slot: u32, Buffer: ?[*:0]u16, BufferSize: u32, MacroSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetTextMacroWide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl7, Slot: u32, Macro: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl7, Slot: u32, Macro: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, EvaluateWide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl7, Expression: ?[*:0]const u16, DesiredType: u32, Value: ?*DEBUG_VALUE, RemainderIndex: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl7, Expression: ?[*:0]const u16, DesiredType: u32, Value: ?*DEBUG_VALUE, RemainderIndex: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, ExecuteWide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl7, OutputControl: u32, Command: ?[*:0]const u16, Flags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl7, OutputControl: u32, Command: ?[*:0]const u16, Flags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, ExecuteCommandFileWide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl7, OutputControl: u32, CommandFile: ?[*:0]const u16, Flags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl7, OutputControl: u32, CommandFile: ?[*:0]const u16, Flags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetBreakpointByIndex2: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl7, Index: u32, Bp: ?*?*IDebugBreakpoint2, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl7, Index: u32, Bp: ?*?*IDebugBreakpoint2, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetBreakpointById2: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl7, Id: u32, Bp: ?*?*IDebugBreakpoint2, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl7, Id: u32, Bp: ?*?*IDebugBreakpoint2, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, AddBreakpoint2: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl7, Type: u32, DesiredId: u32, Bp: ?*?*IDebugBreakpoint2, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl7, Type: u32, DesiredId: u32, Bp: ?*?*IDebugBreakpoint2, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, RemoveBreakpoint2: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl7, Bp: ?*IDebugBreakpoint2, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl7, Bp: ?*IDebugBreakpoint2, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, AddExtensionWide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl7, Path: ?[*:0]const u16, Flags: u32, Handle: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl7, Path: ?[*:0]const u16, Flags: u32, Handle: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetExtensionByPathWide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl7, Path: ?[*:0]const u16, Handle: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl7, Path: ?[*:0]const u16, Handle: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, CallExtensionWide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl7, Handle: u64, Function: ?[*:0]const u16, Arguments: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl7, Handle: u64, Function: ?[*:0]const u16, Arguments: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetExtensionFunctionWide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl7, Handle: u64, FuncName: ?[*:0]const u16, Function: ?*?FARPROC, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl7, Handle: u64, FuncName: ?[*:0]const u16, Function: ?*?FARPROC, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetEventFilterTextWide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl7, Index: u32, Buffer: ?[*:0]u16, BufferSize: u32, TextSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl7, Index: u32, Buffer: ?[*:0]u16, BufferSize: u32, TextSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetEventFilterCommandWide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl7, Index: u32, Buffer: ?[*:0]u16, BufferSize: u32, CommandSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl7, Index: u32, Buffer: ?[*:0]u16, BufferSize: u32, CommandSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetEventFilterCommandWide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl7, Index: u32, Command: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl7, Index: u32, Command: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetSpecificFilterArgumentWide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl7, Index: u32, Buffer: ?[*:0]u16, BufferSize: u32, ArgumentSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl7, Index: u32, Buffer: ?[*:0]u16, BufferSize: u32, ArgumentSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetSpecificFilterArgumentWide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl7, Index: u32, Argument: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl7, Index: u32, Argument: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetExceptionFilterSecondCommandWide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl7, Index: u32, Buffer: ?[*:0]u16, BufferSize: u32, CommandSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl7, Index: u32, Buffer: ?[*:0]u16, BufferSize: u32, CommandSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetExceptionFilterSecondCommandWide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl7, Index: u32, Command: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl7, Index: u32, Command: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetLastEventInformationWide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl7, Type: ?*u32, ProcessId: ?*u32, ThreadId: ?*u32, // TODO: what to do with BytesParamIndex 4? ExtraInformation: ?*anyopaque, ExtraInformationSize: u32, ExtraInformationUsed: ?*u32, Description: ?[*:0]u16, DescriptionSize: u32, DescriptionUsed: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl7, Type: ?*u32, ProcessId: ?*u32, ThreadId: ?*u32, // TODO: what to do with BytesParamIndex 4? ExtraInformation: ?*anyopaque, ExtraInformationSize: u32, ExtraInformationUsed: ?*u32, Description: ?[*:0]u16, DescriptionSize: u32, DescriptionUsed: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetTextReplacementWide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl7, SrcText: ?[*:0]const u16, Index: u32, SrcBuffer: ?[*:0]u16, SrcBufferSize: u32, SrcSize: ?*u32, DstBuffer: ?[*:0]u16, DstBufferSize: u32, DstSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl7, SrcText: ?[*:0]const u16, Index: u32, SrcBuffer: ?[*:0]u16, SrcBufferSize: u32, SrcSize: ?*u32, DstBuffer: ?[*:0]u16, DstBufferSize: u32, DstSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetTextReplacementWide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl7, SrcText: ?[*:0]const u16, DstText: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl7, SrcText: ?[*:0]const u16, DstText: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetExpressionSyntaxByNameWide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl7, AbbrevName: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl7, AbbrevName: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetExpressionSyntaxNamesWide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl7, Index: u32, FullNameBuffer: ?[*:0]u16, FullNameBufferSize: u32, FullNameSize: ?*u32, AbbrevNameBuffer: ?[*:0]u16, AbbrevNameBufferSize: u32, AbbrevNameSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl7, Index: u32, FullNameBuffer: ?[*:0]u16, FullNameBufferSize: u32, FullNameSize: ?*u32, AbbrevNameBuffer: ?[*:0]u16, AbbrevNameBufferSize: u32, AbbrevNameSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetEventIndexDescriptionWide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl7, Index: u32, Which: u32, Buffer: ?PWSTR, BufferSize: u32, DescSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl7, Index: u32, Which: u32, Buffer: ?PWSTR, BufferSize: u32, DescSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetLogFile2: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl7, Buffer: ?[*:0]u8, BufferSize: u32, FileSize: ?*u32, Flags: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl7, Buffer: ?[*:0]u8, BufferSize: u32, FileSize: ?*u32, Flags: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, OpenLogFile2: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl7, File: ?[*:0]const u8, Flags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl7, File: ?[*:0]const u8, Flags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetLogFile2Wide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl7, Buffer: ?[*:0]u16, BufferSize: u32, FileSize: ?*u32, Flags: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl7, Buffer: ?[*:0]u16, BufferSize: u32, FileSize: ?*u32, Flags: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, OpenLogFile2Wide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl7, File: ?[*:0]const u16, Flags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl7, File: ?[*:0]const u16, Flags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetSystemVersionValues: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl7, PlatformId: ?*u32, Win32Major: ?*u32, Win32Minor: ?*u32, KdMajor: ?*u32, KdMinor: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl7, PlatformId: ?*u32, Win32Major: ?*u32, Win32Minor: ?*u32, KdMajor: ?*u32, KdMinor: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetSystemVersionString: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl7, Which: u32, Buffer: ?[*:0]u8, BufferSize: u32, StringSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl7, Which: u32, Buffer: ?[*:0]u8, BufferSize: u32, StringSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetSystemVersionStringWide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl7, Which: u32, Buffer: ?[*:0]u16, BufferSize: u32, StringSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl7, Which: u32, Buffer: ?[*:0]u16, BufferSize: u32, StringSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetContextStackTrace: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl7, // TODO: what to do with BytesParamIndex 1? StartContext: ?*anyopaque, StartContextSize: u32, Frames: ?[*]DEBUG_STACK_FRAME, FramesSize: u32, // TODO: what to do with BytesParamIndex 5? FrameContexts: ?*anyopaque, FrameContextsSize: u32, FrameContextsEntrySize: u32, FramesFilled: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl7, // TODO: what to do with BytesParamIndex 1? StartContext: ?*anyopaque, StartContextSize: u32, Frames: ?[*]DEBUG_STACK_FRAME, FramesSize: u32, // TODO: what to do with BytesParamIndex 5? FrameContexts: ?*anyopaque, FrameContextsSize: u32, FrameContextsEntrySize: u32, FramesFilled: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, OutputContextStackTrace: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl7, OutputControl: u32, Frames: [*]DEBUG_STACK_FRAME, FramesSize: u32, // TODO: what to do with BytesParamIndex 4? FrameContexts: ?*anyopaque, FrameContextsSize: u32, FrameContextsEntrySize: u32, Flags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl7, OutputControl: u32, Frames: [*]DEBUG_STACK_FRAME, FramesSize: u32, // TODO: what to do with BytesParamIndex 4? FrameContexts: ?*anyopaque, FrameContextsSize: u32, FrameContextsEntrySize: u32, Flags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetStoredEventInformation: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl7, Type: ?*u32, ProcessId: ?*u32, ThreadId: ?*u32, // TODO: what to do with BytesParamIndex 4? Context: ?*anyopaque, ContextSize: u32, ContextUsed: ?*u32, // TODO: what to do with BytesParamIndex 7? ExtraInformation: ?*anyopaque, ExtraInformationSize: u32, ExtraInformationUsed: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl7, Type: ?*u32, ProcessId: ?*u32, ThreadId: ?*u32, // TODO: what to do with BytesParamIndex 4? Context: ?*anyopaque, ContextSize: u32, ContextUsed: ?*u32, // TODO: what to do with BytesParamIndex 7? ExtraInformation: ?*anyopaque, ExtraInformationSize: u32, ExtraInformationUsed: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetManagedStatus: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl7, Flags: ?*u32, WhichString: u32, String: ?[*:0]u8, StringSize: u32, StringNeeded: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl7, Flags: ?*u32, WhichString: u32, String: ?[*:0]u8, StringSize: u32, StringNeeded: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetManagedStatusWide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl7, Flags: ?*u32, WhichString: u32, String: ?[*:0]u16, StringSize: u32, StringNeeded: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl7, Flags: ?*u32, WhichString: u32, String: ?[*:0]u16, StringSize: u32, StringNeeded: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, ResetManagedStatus: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl7, Flags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl7, Flags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetStackTraceEx: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl7, FrameOffset: u64, StackOffset: u64, InstructionOffset: u64, Frames: [*]DEBUG_STACK_FRAME_EX, FramesSize: u32, FramesFilled: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl7, FrameOffset: u64, StackOffset: u64, InstructionOffset: u64, Frames: [*]DEBUG_STACK_FRAME_EX, FramesSize: u32, FramesFilled: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, OutputStackTraceEx: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl7, OutputControl: u32, Frames: ?[*]DEBUG_STACK_FRAME_EX, FramesSize: u32, Flags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl7, OutputControl: u32, Frames: ?[*]DEBUG_STACK_FRAME_EX, FramesSize: u32, Flags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetContextStackTraceEx: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl7, // TODO: what to do with BytesParamIndex 1? StartContext: ?*anyopaque, StartContextSize: u32, Frames: ?[*]DEBUG_STACK_FRAME_EX, FramesSize: u32, // TODO: what to do with BytesParamIndex 5? FrameContexts: ?*anyopaque, FrameContextsSize: u32, FrameContextsEntrySize: u32, FramesFilled: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl7, // TODO: what to do with BytesParamIndex 1? StartContext: ?*anyopaque, StartContextSize: u32, Frames: ?[*]DEBUG_STACK_FRAME_EX, FramesSize: u32, // TODO: what to do with BytesParamIndex 5? FrameContexts: ?*anyopaque, FrameContextsSize: u32, FrameContextsEntrySize: u32, FramesFilled: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, OutputContextStackTraceEx: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl7, OutputControl: u32, Frames: [*]DEBUG_STACK_FRAME_EX, FramesSize: u32, // TODO: what to do with BytesParamIndex 4? FrameContexts: ?*anyopaque, FrameContextsSize: u32, FrameContextsEntrySize: u32, Flags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl7, OutputControl: u32, Frames: [*]DEBUG_STACK_FRAME_EX, FramesSize: u32, // TODO: what to do with BytesParamIndex 4? FrameContexts: ?*anyopaque, FrameContextsSize: u32, FrameContextsEntrySize: u32, Flags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetBreakpointByGuid: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl7, Guid: ?*Guid, Bp: ?*?*IDebugBreakpoint3, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl7, Guid: ?*Guid, Bp: ?*?*IDebugBreakpoint3, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetExecutionStatusEx: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl7, Status: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl7, Status: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetSynchronizationStatus: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl7, SendsAttempted: ?*u32, SecondsSinceLastResponse: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl7, SendsAttempted: ?*u32, SecondsSinceLastResponse: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetDebuggeeType2: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugControl7, Flags: u32, Class: ?*u32, Qualifier: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugControl7, Flags: u32, Class: ?*u32, Qualifier: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl7_GetInterrupt(self: *const T) HRESULT { return @as(*const IDebugControl7.VTable, @ptrCast(self.vtable)).GetInterrupt(@as(*const IDebugControl7, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl7_SetInterrupt(self: *const T, Flags: u32) HRESULT { return @as(*const IDebugControl7.VTable, @ptrCast(self.vtable)).SetInterrupt(@as(*const IDebugControl7, @ptrCast(self)), Flags); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl7_GetInterruptTimeout(self: *const T, Seconds: ?*u32) HRESULT { return @as(*const IDebugControl7.VTable, @ptrCast(self.vtable)).GetInterruptTimeout(@as(*const IDebugControl7, @ptrCast(self)), Seconds); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl7_SetInterruptTimeout(self: *const T, Seconds: u32) HRESULT { return @as(*const IDebugControl7.VTable, @ptrCast(self.vtable)).SetInterruptTimeout(@as(*const IDebugControl7, @ptrCast(self)), Seconds); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl7_GetLogFile(self: *const T, Buffer: ?[*:0]u8, BufferSize: u32, FileSize: ?*u32, Append: ?*BOOL) HRESULT { return @as(*const IDebugControl7.VTable, @ptrCast(self.vtable)).GetLogFile(@as(*const IDebugControl7, @ptrCast(self)), Buffer, BufferSize, FileSize, Append); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl7_OpenLogFile(self: *const T, File: ?[*:0]const u8, Append: BOOL) HRESULT { return @as(*const IDebugControl7.VTable, @ptrCast(self.vtable)).OpenLogFile(@as(*const IDebugControl7, @ptrCast(self)), File, Append); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl7_CloseLogFile(self: *const T) HRESULT { return @as(*const IDebugControl7.VTable, @ptrCast(self.vtable)).CloseLogFile(@as(*const IDebugControl7, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl7_GetLogMask(self: *const T, Mask: ?*u32) HRESULT { return @as(*const IDebugControl7.VTable, @ptrCast(self.vtable)).GetLogMask(@as(*const IDebugControl7, @ptrCast(self)), Mask); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl7_SetLogMask(self: *const T, Mask: u32) HRESULT { return @as(*const IDebugControl7.VTable, @ptrCast(self.vtable)).SetLogMask(@as(*const IDebugControl7, @ptrCast(self)), Mask); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl7_Input(self: *const T, Buffer: [*:0]u8, BufferSize: u32, InputSize: ?*u32) HRESULT { return @as(*const IDebugControl7.VTable, @ptrCast(self.vtable)).Input(@as(*const IDebugControl7, @ptrCast(self)), Buffer, BufferSize, InputSize); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl7_ReturnInput(self: *const T, Buffer: ?[*:0]const u8) HRESULT { return @as(*const IDebugControl7.VTable, @ptrCast(self.vtable)).ReturnInput(@as(*const IDebugControl7, @ptrCast(self)), Buffer); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl7_Output(self: *const T, Mask: u32, Format: ?[*:0]const u8) HRESULT { return @as(*const IDebugControl7.VTable, @ptrCast(self.vtable)).Output(@as(*const IDebugControl7, @ptrCast(self)), Mask, Format); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl7_OutputVaList(self: *const T, Mask: u32, Format: ?[*:0]const u8, Args: ?*i8) HRESULT { return @as(*const IDebugControl7.VTable, @ptrCast(self.vtable)).OutputVaList(@as(*const IDebugControl7, @ptrCast(self)), Mask, Format, Args); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl7_ControlledOutput(self: *const T, OutputControl: u32, Mask: u32, Format: ?[*:0]const u8) HRESULT { return @as(*const IDebugControl7.VTable, @ptrCast(self.vtable)).ControlledOutput(@as(*const IDebugControl7, @ptrCast(self)), OutputControl, Mask, Format); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl7_ControlledOutputVaList(self: *const T, OutputControl: u32, Mask: u32, Format: ?[*:0]const u8, Args: ?*i8) HRESULT { return @as(*const IDebugControl7.VTable, @ptrCast(self.vtable)).ControlledOutputVaList(@as(*const IDebugControl7, @ptrCast(self)), OutputControl, Mask, Format, Args); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl7_OutputPrompt(self: *const T, OutputControl: u32, Format: ?[*:0]const u8) HRESULT { return @as(*const IDebugControl7.VTable, @ptrCast(self.vtable)).OutputPrompt(@as(*const IDebugControl7, @ptrCast(self)), OutputControl, Format); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl7_OutputPromptVaList(self: *const T, OutputControl: u32, Format: ?[*:0]const u8, Args: ?*i8) HRESULT { return @as(*const IDebugControl7.VTable, @ptrCast(self.vtable)).OutputPromptVaList(@as(*const IDebugControl7, @ptrCast(self)), OutputControl, Format, Args); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl7_GetPromptText(self: *const T, Buffer: ?[*:0]u8, BufferSize: u32, TextSize: ?*u32) HRESULT { return @as(*const IDebugControl7.VTable, @ptrCast(self.vtable)).GetPromptText(@as(*const IDebugControl7, @ptrCast(self)), Buffer, BufferSize, TextSize); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl7_OutputCurrentState(self: *const T, OutputControl: u32, Flags: u32) HRESULT { return @as(*const IDebugControl7.VTable, @ptrCast(self.vtable)).OutputCurrentState(@as(*const IDebugControl7, @ptrCast(self)), OutputControl, Flags); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl7_OutputVersionInformation(self: *const T, OutputControl: u32) HRESULT { return @as(*const IDebugControl7.VTable, @ptrCast(self.vtable)).OutputVersionInformation(@as(*const IDebugControl7, @ptrCast(self)), OutputControl); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl7_GetNotifyEventHandle(self: *const T, Handle: ?*u64) HRESULT { return @as(*const IDebugControl7.VTable, @ptrCast(self.vtable)).GetNotifyEventHandle(@as(*const IDebugControl7, @ptrCast(self)), Handle); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl7_SetNotifyEventHandle(self: *const T, Handle: u64) HRESULT { return @as(*const IDebugControl7.VTable, @ptrCast(self.vtable)).SetNotifyEventHandle(@as(*const IDebugControl7, @ptrCast(self)), Handle); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl7_Assemble(self: *const T, Offset: u64, Instr: ?[*:0]const u8, EndOffset: ?*u64) HRESULT { return @as(*const IDebugControl7.VTable, @ptrCast(self.vtable)).Assemble(@as(*const IDebugControl7, @ptrCast(self)), Offset, Instr, EndOffset); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl7_Disassemble(self: *const T, Offset: u64, Flags: u32, Buffer: ?[*:0]u8, BufferSize: u32, DisassemblySize: ?*u32, EndOffset: ?*u64) HRESULT { return @as(*const IDebugControl7.VTable, @ptrCast(self.vtable)).Disassemble(@as(*const IDebugControl7, @ptrCast(self)), Offset, Flags, Buffer, BufferSize, DisassemblySize, EndOffset); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl7_GetDisassembleEffectiveOffset(self: *const T, Offset: ?*u64) HRESULT { return @as(*const IDebugControl7.VTable, @ptrCast(self.vtable)).GetDisassembleEffectiveOffset(@as(*const IDebugControl7, @ptrCast(self)), Offset); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl7_OutputDisassembly(self: *const T, OutputControl: u32, Offset: u64, Flags: u32, EndOffset: ?*u64) HRESULT { return @as(*const IDebugControl7.VTable, @ptrCast(self.vtable)).OutputDisassembly(@as(*const IDebugControl7, @ptrCast(self)), OutputControl, Offset, Flags, EndOffset); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl7_OutputDisassemblyLines(self: *const T, OutputControl: u32, PreviousLines: u32, TotalLines: u32, Offset: u64, Flags: u32, OffsetLine: ?*u32, StartOffset: ?*u64, EndOffset: ?*u64, LineOffsets: ?[*]u64) HRESULT { return @as(*const IDebugControl7.VTable, @ptrCast(self.vtable)).OutputDisassemblyLines(@as(*const IDebugControl7, @ptrCast(self)), OutputControl, PreviousLines, TotalLines, Offset, Flags, OffsetLine, StartOffset, EndOffset, LineOffsets); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl7_GetNearInstruction(self: *const T, Offset: u64, Delta: i32, NearOffset: ?*u64) HRESULT { return @as(*const IDebugControl7.VTable, @ptrCast(self.vtable)).GetNearInstruction(@as(*const IDebugControl7, @ptrCast(self)), Offset, Delta, NearOffset); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl7_GetStackTrace(self: *const T, FrameOffset: u64, StackOffset: u64, InstructionOffset: u64, Frames: [*]DEBUG_STACK_FRAME, FramesSize: u32, FramesFilled: ?*u32) HRESULT { return @as(*const IDebugControl7.VTable, @ptrCast(self.vtable)).GetStackTrace(@as(*const IDebugControl7, @ptrCast(self)), FrameOffset, StackOffset, InstructionOffset, Frames, FramesSize, FramesFilled); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl7_GetReturnOffset(self: *const T, Offset: ?*u64) HRESULT { return @as(*const IDebugControl7.VTable, @ptrCast(self.vtable)).GetReturnOffset(@as(*const IDebugControl7, @ptrCast(self)), Offset); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl7_OutputStackTrace(self: *const T, OutputControl: u32, Frames: ?[*]DEBUG_STACK_FRAME, FramesSize: u32, Flags: u32) HRESULT { return @as(*const IDebugControl7.VTable, @ptrCast(self.vtable)).OutputStackTrace(@as(*const IDebugControl7, @ptrCast(self)), OutputControl, Frames, FramesSize, Flags); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl7_GetDebuggeeType(self: *const T, Class: ?*u32, Qualifier: ?*u32) HRESULT { return @as(*const IDebugControl7.VTable, @ptrCast(self.vtable)).GetDebuggeeType(@as(*const IDebugControl7, @ptrCast(self)), Class, Qualifier); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl7_GetActualProcessorType(self: *const T, Type: ?*u32) HRESULT { return @as(*const IDebugControl7.VTable, @ptrCast(self.vtable)).GetActualProcessorType(@as(*const IDebugControl7, @ptrCast(self)), Type); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl7_GetExecutingProcessorType(self: *const T, Type: ?*u32) HRESULT { return @as(*const IDebugControl7.VTable, @ptrCast(self.vtable)).GetExecutingProcessorType(@as(*const IDebugControl7, @ptrCast(self)), Type); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl7_GetNumberPossibleExecutingProcessorTypes(self: *const T, Number: ?*u32) HRESULT { return @as(*const IDebugControl7.VTable, @ptrCast(self.vtable)).GetNumberPossibleExecutingProcessorTypes(@as(*const IDebugControl7, @ptrCast(self)), Number); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl7_GetPossibleExecutingProcessorTypes(self: *const T, Start: u32, Count: u32, Types: [*]u32) HRESULT { return @as(*const IDebugControl7.VTable, @ptrCast(self.vtable)).GetPossibleExecutingProcessorTypes(@as(*const IDebugControl7, @ptrCast(self)), Start, Count, Types); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl7_GetNumberProcessors(self: *const T, Number: ?*u32) HRESULT { return @as(*const IDebugControl7.VTable, @ptrCast(self.vtable)).GetNumberProcessors(@as(*const IDebugControl7, @ptrCast(self)), Number); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl7_GetSystemVersion(self: *const T, PlatformId: ?*u32, Major: ?*u32, Minor: ?*u32, ServicePackString: ?[*:0]u8, ServicePackStringSize: u32, ServicePackStringUsed: ?*u32, ServicePackNumber: ?*u32, BuildString: ?[*:0]u8, BuildStringSize: u32, BuildStringUsed: ?*u32) HRESULT { return @as(*const IDebugControl7.VTable, @ptrCast(self.vtable)).GetSystemVersion(@as(*const IDebugControl7, @ptrCast(self)), PlatformId, Major, Minor, ServicePackString, ServicePackStringSize, ServicePackStringUsed, ServicePackNumber, BuildString, BuildStringSize, BuildStringUsed); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl7_GetPageSize(self: *const T, Size: ?*u32) HRESULT { return @as(*const IDebugControl7.VTable, @ptrCast(self.vtable)).GetPageSize(@as(*const IDebugControl7, @ptrCast(self)), Size); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl7_IsPointer64Bit(self: *const T) HRESULT { return @as(*const IDebugControl7.VTable, @ptrCast(self.vtable)).IsPointer64Bit(@as(*const IDebugControl7, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl7_ReadBugCheckData(self: *const T, Code: ?*u32, Arg1: ?*u64, Arg2: ?*u64, Arg3: ?*u64, Arg4: ?*u64) HRESULT { return @as(*const IDebugControl7.VTable, @ptrCast(self.vtable)).ReadBugCheckData(@as(*const IDebugControl7, @ptrCast(self)), Code, Arg1, Arg2, Arg3, Arg4); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl7_GetNumberSupportedProcessorTypes(self: *const T, Number: ?*u32) HRESULT { return @as(*const IDebugControl7.VTable, @ptrCast(self.vtable)).GetNumberSupportedProcessorTypes(@as(*const IDebugControl7, @ptrCast(self)), Number); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl7_GetSupportedProcessorTypes(self: *const T, Start: u32, Count: u32, Types: [*]u32) HRESULT { return @as(*const IDebugControl7.VTable, @ptrCast(self.vtable)).GetSupportedProcessorTypes(@as(*const IDebugControl7, @ptrCast(self)), Start, Count, Types); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl7_GetProcessorTypeNames(self: *const T, Type: u32, FullNameBuffer: ?[*:0]u8, FullNameBufferSize: u32, FullNameSize: ?*u32, AbbrevNameBuffer: ?[*:0]u8, AbbrevNameBufferSize: u32, AbbrevNameSize: ?*u32) HRESULT { return @as(*const IDebugControl7.VTable, @ptrCast(self.vtable)).GetProcessorTypeNames(@as(*const IDebugControl7, @ptrCast(self)), Type, FullNameBuffer, FullNameBufferSize, FullNameSize, AbbrevNameBuffer, AbbrevNameBufferSize, AbbrevNameSize); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl7_GetEffectiveProcessorType(self: *const T, Type: ?*u32) HRESULT { return @as(*const IDebugControl7.VTable, @ptrCast(self.vtable)).GetEffectiveProcessorType(@as(*const IDebugControl7, @ptrCast(self)), Type); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl7_SetEffectiveProcessorType(self: *const T, Type: u32) HRESULT { return @as(*const IDebugControl7.VTable, @ptrCast(self.vtable)).SetEffectiveProcessorType(@as(*const IDebugControl7, @ptrCast(self)), Type); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl7_GetExecutionStatus(self: *const T, Status: ?*u32) HRESULT { return @as(*const IDebugControl7.VTable, @ptrCast(self.vtable)).GetExecutionStatus(@as(*const IDebugControl7, @ptrCast(self)), Status); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl7_SetExecutionStatus(self: *const T, Status: u32) HRESULT { return @as(*const IDebugControl7.VTable, @ptrCast(self.vtable)).SetExecutionStatus(@as(*const IDebugControl7, @ptrCast(self)), Status); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl7_GetCodeLevel(self: *const T, Level: ?*u32) HRESULT { return @as(*const IDebugControl7.VTable, @ptrCast(self.vtable)).GetCodeLevel(@as(*const IDebugControl7, @ptrCast(self)), Level); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl7_SetCodeLevel(self: *const T, Level: u32) HRESULT { return @as(*const IDebugControl7.VTable, @ptrCast(self.vtable)).SetCodeLevel(@as(*const IDebugControl7, @ptrCast(self)), Level); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl7_GetEngineOptions(self: *const T, Options: ?*u32) HRESULT { return @as(*const IDebugControl7.VTable, @ptrCast(self.vtable)).GetEngineOptions(@as(*const IDebugControl7, @ptrCast(self)), Options); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl7_AddEngineOptions(self: *const T, Options: u32) HRESULT { return @as(*const IDebugControl7.VTable, @ptrCast(self.vtable)).AddEngineOptions(@as(*const IDebugControl7, @ptrCast(self)), Options); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl7_RemoveEngineOptions(self: *const T, Options: u32) HRESULT { return @as(*const IDebugControl7.VTable, @ptrCast(self.vtable)).RemoveEngineOptions(@as(*const IDebugControl7, @ptrCast(self)), Options); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl7_SetEngineOptions(self: *const T, Options: u32) HRESULT { return @as(*const IDebugControl7.VTable, @ptrCast(self.vtable)).SetEngineOptions(@as(*const IDebugControl7, @ptrCast(self)), Options); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl7_GetSystemErrorControl(self: *const T, OutputLevel: ?*u32, BreakLevel: ?*u32) HRESULT { return @as(*const IDebugControl7.VTable, @ptrCast(self.vtable)).GetSystemErrorControl(@as(*const IDebugControl7, @ptrCast(self)), OutputLevel, BreakLevel); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl7_SetSystemErrorControl(self: *const T, OutputLevel: u32, BreakLevel: u32) HRESULT { return @as(*const IDebugControl7.VTable, @ptrCast(self.vtable)).SetSystemErrorControl(@as(*const IDebugControl7, @ptrCast(self)), OutputLevel, BreakLevel); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl7_GetTextMacro(self: *const T, Slot: u32, Buffer: ?[*:0]u8, BufferSize: u32, MacroSize: ?*u32) HRESULT { return @as(*const IDebugControl7.VTable, @ptrCast(self.vtable)).GetTextMacro(@as(*const IDebugControl7, @ptrCast(self)), Slot, Buffer, BufferSize, MacroSize); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl7_SetTextMacro(self: *const T, Slot: u32, Macro: ?[*:0]const u8) HRESULT { return @as(*const IDebugControl7.VTable, @ptrCast(self.vtable)).SetTextMacro(@as(*const IDebugControl7, @ptrCast(self)), Slot, Macro); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl7_GetRadix(self: *const T, Radix: ?*u32) HRESULT { return @as(*const IDebugControl7.VTable, @ptrCast(self.vtable)).GetRadix(@as(*const IDebugControl7, @ptrCast(self)), Radix); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl7_SetRadix(self: *const T, Radix: u32) HRESULT { return @as(*const IDebugControl7.VTable, @ptrCast(self.vtable)).SetRadix(@as(*const IDebugControl7, @ptrCast(self)), Radix); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl7_Evaluate(self: *const T, Expression: ?[*:0]const u8, DesiredType: u32, Value: ?*DEBUG_VALUE, RemainderIndex: ?*u32) HRESULT { return @as(*const IDebugControl7.VTable, @ptrCast(self.vtable)).Evaluate(@as(*const IDebugControl7, @ptrCast(self)), Expression, DesiredType, Value, RemainderIndex); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl7_CoerceValue(self: *const T, In: ?*DEBUG_VALUE, OutType: u32, Out: ?*DEBUG_VALUE) HRESULT { return @as(*const IDebugControl7.VTable, @ptrCast(self.vtable)).CoerceValue(@as(*const IDebugControl7, @ptrCast(self)), In, OutType, Out); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl7_CoerceValues(self: *const T, Count: u32, In: [*]DEBUG_VALUE, OutTypes: [*]u32, Out: [*]DEBUG_VALUE) HRESULT { return @as(*const IDebugControl7.VTable, @ptrCast(self.vtable)).CoerceValues(@as(*const IDebugControl7, @ptrCast(self)), Count, In, OutTypes, Out); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl7_Execute(self: *const T, OutputControl: u32, Command: ?[*:0]const u8, Flags: u32) HRESULT { return @as(*const IDebugControl7.VTable, @ptrCast(self.vtable)).Execute(@as(*const IDebugControl7, @ptrCast(self)), OutputControl, Command, Flags); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl7_ExecuteCommandFile(self: *const T, OutputControl: u32, CommandFile: ?[*:0]const u8, Flags: u32) HRESULT { return @as(*const IDebugControl7.VTable, @ptrCast(self.vtable)).ExecuteCommandFile(@as(*const IDebugControl7, @ptrCast(self)), OutputControl, CommandFile, Flags); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl7_GetNumberBreakpoints(self: *const T, Number: ?*u32) HRESULT { return @as(*const IDebugControl7.VTable, @ptrCast(self.vtable)).GetNumberBreakpoints(@as(*const IDebugControl7, @ptrCast(self)), Number); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl7_GetBreakpointByIndex(self: *const T, Index: u32, Bp: ?*?*IDebugBreakpoint) HRESULT { return @as(*const IDebugControl7.VTable, @ptrCast(self.vtable)).GetBreakpointByIndex(@as(*const IDebugControl7, @ptrCast(self)), Index, Bp); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl7_GetBreakpointById(self: *const T, Id: u32, Bp: ?*?*IDebugBreakpoint) HRESULT { return @as(*const IDebugControl7.VTable, @ptrCast(self.vtable)).GetBreakpointById(@as(*const IDebugControl7, @ptrCast(self)), Id, Bp); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl7_GetBreakpointParameters(self: *const T, Count: u32, Ids: ?[*]u32, Start: u32, Params: [*]DEBUG_BREAKPOINT_PARAMETERS) HRESULT { return @as(*const IDebugControl7.VTable, @ptrCast(self.vtable)).GetBreakpointParameters(@as(*const IDebugControl7, @ptrCast(self)), Count, Ids, Start, Params); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl7_AddBreakpoint(self: *const T, Type: u32, DesiredId: u32, Bp: ?*?*IDebugBreakpoint) HRESULT { return @as(*const IDebugControl7.VTable, @ptrCast(self.vtable)).AddBreakpoint(@as(*const IDebugControl7, @ptrCast(self)), Type, DesiredId, Bp); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl7_RemoveBreakpoint(self: *const T, Bp: ?*IDebugBreakpoint) HRESULT { return @as(*const IDebugControl7.VTable, @ptrCast(self.vtable)).RemoveBreakpoint(@as(*const IDebugControl7, @ptrCast(self)), Bp); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl7_AddExtension(self: *const T, Path: ?[*:0]const u8, Flags: u32, Handle: ?*u64) HRESULT { return @as(*const IDebugControl7.VTable, @ptrCast(self.vtable)).AddExtension(@as(*const IDebugControl7, @ptrCast(self)), Path, Flags, Handle); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl7_RemoveExtension(self: *const T, Handle: u64) HRESULT { return @as(*const IDebugControl7.VTable, @ptrCast(self.vtable)).RemoveExtension(@as(*const IDebugControl7, @ptrCast(self)), Handle); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl7_GetExtensionByPath(self: *const T, Path: ?[*:0]const u8, Handle: ?*u64) HRESULT { return @as(*const IDebugControl7.VTable, @ptrCast(self.vtable)).GetExtensionByPath(@as(*const IDebugControl7, @ptrCast(self)), Path, Handle); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl7_CallExtension(self: *const T, Handle: u64, Function: ?[*:0]const u8, Arguments: ?[*:0]const u8) HRESULT { return @as(*const IDebugControl7.VTable, @ptrCast(self.vtable)).CallExtension(@as(*const IDebugControl7, @ptrCast(self)), Handle, Function, Arguments); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl7_GetExtensionFunction(self: *const T, Handle: u64, FuncName: ?[*:0]const u8, Function: ?*?FARPROC) HRESULT { return @as(*const IDebugControl7.VTable, @ptrCast(self.vtable)).GetExtensionFunction(@as(*const IDebugControl7, @ptrCast(self)), Handle, FuncName, Function); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl7_GetWindbgExtensionApis32(self: *const T, Api: ?*WINDBG_EXTENSION_APIS32) HRESULT { return @as(*const IDebugControl7.VTable, @ptrCast(self.vtable)).GetWindbgExtensionApis32(@as(*const IDebugControl7, @ptrCast(self)), Api); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl7_GetWindbgExtensionApis64(self: *const T, Api: ?*WINDBG_EXTENSION_APIS64) HRESULT { return @as(*const IDebugControl7.VTable, @ptrCast(self.vtable)).GetWindbgExtensionApis64(@as(*const IDebugControl7, @ptrCast(self)), Api); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl7_GetNumberEventFilters(self: *const T, SpecificEvents: ?*u32, SpecificExceptions: ?*u32, ArbitraryExceptions: ?*u32) HRESULT { return @as(*const IDebugControl7.VTable, @ptrCast(self.vtable)).GetNumberEventFilters(@as(*const IDebugControl7, @ptrCast(self)), SpecificEvents, SpecificExceptions, ArbitraryExceptions); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl7_GetEventFilterText(self: *const T, Index: u32, Buffer: ?[*:0]u8, BufferSize: u32, TextSize: ?*u32) HRESULT { return @as(*const IDebugControl7.VTable, @ptrCast(self.vtable)).GetEventFilterText(@as(*const IDebugControl7, @ptrCast(self)), Index, Buffer, BufferSize, TextSize); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl7_GetEventFilterCommand(self: *const T, Index: u32, Buffer: ?[*:0]u8, BufferSize: u32, CommandSize: ?*u32) HRESULT { return @as(*const IDebugControl7.VTable, @ptrCast(self.vtable)).GetEventFilterCommand(@as(*const IDebugControl7, @ptrCast(self)), Index, Buffer, BufferSize, CommandSize); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl7_SetEventFilterCommand(self: *const T, Index: u32, Command: ?[*:0]const u8) HRESULT { return @as(*const IDebugControl7.VTable, @ptrCast(self.vtable)).SetEventFilterCommand(@as(*const IDebugControl7, @ptrCast(self)), Index, Command); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl7_GetSpecificFilterParameters(self: *const T, Start: u32, Count: u32, Params: [*]DEBUG_SPECIFIC_FILTER_PARAMETERS) HRESULT { return @as(*const IDebugControl7.VTable, @ptrCast(self.vtable)).GetSpecificFilterParameters(@as(*const IDebugControl7, @ptrCast(self)), Start, Count, Params); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl7_SetSpecificFilterParameters(self: *const T, Start: u32, Count: u32, Params: [*]DEBUG_SPECIFIC_FILTER_PARAMETERS) HRESULT { return @as(*const IDebugControl7.VTable, @ptrCast(self.vtable)).SetSpecificFilterParameters(@as(*const IDebugControl7, @ptrCast(self)), Start, Count, Params); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl7_GetSpecificFilterArgument(self: *const T, Index: u32, Buffer: ?[*:0]u8, BufferSize: u32, ArgumentSize: ?*u32) HRESULT { return @as(*const IDebugControl7.VTable, @ptrCast(self.vtable)).GetSpecificFilterArgument(@as(*const IDebugControl7, @ptrCast(self)), Index, Buffer, BufferSize, ArgumentSize); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl7_SetSpecificFilterArgument(self: *const T, Index: u32, Argument: ?[*:0]const u8) HRESULT { return @as(*const IDebugControl7.VTable, @ptrCast(self.vtable)).SetSpecificFilterArgument(@as(*const IDebugControl7, @ptrCast(self)), Index, Argument); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl7_GetExceptionFilterParameters(self: *const T, Count: u32, Codes: ?[*]u32, Start: u32, Params: [*]DEBUG_EXCEPTION_FILTER_PARAMETERS) HRESULT { return @as(*const IDebugControl7.VTable, @ptrCast(self.vtable)).GetExceptionFilterParameters(@as(*const IDebugControl7, @ptrCast(self)), Count, Codes, Start, Params); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl7_SetExceptionFilterParameters(self: *const T, Count: u32, Params: [*]DEBUG_EXCEPTION_FILTER_PARAMETERS) HRESULT { return @as(*const IDebugControl7.VTable, @ptrCast(self.vtable)).SetExceptionFilterParameters(@as(*const IDebugControl7, @ptrCast(self)), Count, Params); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl7_GetExceptionFilterSecondCommand(self: *const T, Index: u32, Buffer: ?[*:0]u8, BufferSize: u32, CommandSize: ?*u32) HRESULT { return @as(*const IDebugControl7.VTable, @ptrCast(self.vtable)).GetExceptionFilterSecondCommand(@as(*const IDebugControl7, @ptrCast(self)), Index, Buffer, BufferSize, CommandSize); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl7_SetExceptionFilterSecondCommand(self: *const T, Index: u32, Command: ?[*:0]const u8) HRESULT { return @as(*const IDebugControl7.VTable, @ptrCast(self.vtable)).SetExceptionFilterSecondCommand(@as(*const IDebugControl7, @ptrCast(self)), Index, Command); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl7_WaitForEvent(self: *const T, Flags: u32, Timeout: u32) HRESULT { return @as(*const IDebugControl7.VTable, @ptrCast(self.vtable)).WaitForEvent(@as(*const IDebugControl7, @ptrCast(self)), Flags, Timeout); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl7_GetLastEventInformation(self: *const T, Type: ?*u32, ProcessId: ?*u32, ThreadId: ?*u32, ExtraInformation: ?*anyopaque, ExtraInformationSize: u32, ExtraInformationUsed: ?*u32, Description: ?[*:0]u8, DescriptionSize: u32, DescriptionUsed: ?*u32) HRESULT { return @as(*const IDebugControl7.VTable, @ptrCast(self.vtable)).GetLastEventInformation(@as(*const IDebugControl7, @ptrCast(self)), Type, ProcessId, ThreadId, ExtraInformation, ExtraInformationSize, ExtraInformationUsed, Description, DescriptionSize, DescriptionUsed); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl7_GetCurrentTimeDate(self: *const T, TimeDate: ?*u32) HRESULT { return @as(*const IDebugControl7.VTable, @ptrCast(self.vtable)).GetCurrentTimeDate(@as(*const IDebugControl7, @ptrCast(self)), TimeDate); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl7_GetCurrentSystemUpTime(self: *const T, UpTime: ?*u32) HRESULT { return @as(*const IDebugControl7.VTable, @ptrCast(self.vtable)).GetCurrentSystemUpTime(@as(*const IDebugControl7, @ptrCast(self)), UpTime); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl7_GetDumpFormatFlags(self: *const T, FormatFlags: ?*u32) HRESULT { return @as(*const IDebugControl7.VTable, @ptrCast(self.vtable)).GetDumpFormatFlags(@as(*const IDebugControl7, @ptrCast(self)), FormatFlags); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl7_GetNumberTextReplacements(self: *const T, NumRepl: ?*u32) HRESULT { return @as(*const IDebugControl7.VTable, @ptrCast(self.vtable)).GetNumberTextReplacements(@as(*const IDebugControl7, @ptrCast(self)), NumRepl); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl7_GetTextReplacement(self: *const T, SrcText: ?[*:0]const u8, Index: u32, SrcBuffer: ?[*:0]u8, SrcBufferSize: u32, SrcSize: ?*u32, DstBuffer: ?[*:0]u8, DstBufferSize: u32, DstSize: ?*u32) HRESULT { return @as(*const IDebugControl7.VTable, @ptrCast(self.vtable)).GetTextReplacement(@as(*const IDebugControl7, @ptrCast(self)), SrcText, Index, SrcBuffer, SrcBufferSize, SrcSize, DstBuffer, DstBufferSize, DstSize); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl7_SetTextReplacement(self: *const T, SrcText: ?[*:0]const u8, DstText: ?[*:0]const u8) HRESULT { return @as(*const IDebugControl7.VTable, @ptrCast(self.vtable)).SetTextReplacement(@as(*const IDebugControl7, @ptrCast(self)), SrcText, DstText); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl7_RemoveTextReplacements(self: *const T) HRESULT { return @as(*const IDebugControl7.VTable, @ptrCast(self.vtable)).RemoveTextReplacements(@as(*const IDebugControl7, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl7_OutputTextReplacements(self: *const T, OutputControl: u32, Flags: u32) HRESULT { return @as(*const IDebugControl7.VTable, @ptrCast(self.vtable)).OutputTextReplacements(@as(*const IDebugControl7, @ptrCast(self)), OutputControl, Flags); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl7_GetAssemblyOptions(self: *const T, Options: ?*u32) HRESULT { return @as(*const IDebugControl7.VTable, @ptrCast(self.vtable)).GetAssemblyOptions(@as(*const IDebugControl7, @ptrCast(self)), Options); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl7_AddAssemblyOptions(self: *const T, Options: u32) HRESULT { return @as(*const IDebugControl7.VTable, @ptrCast(self.vtable)).AddAssemblyOptions(@as(*const IDebugControl7, @ptrCast(self)), Options); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl7_RemoveAssemblyOptions(self: *const T, Options: u32) HRESULT { return @as(*const IDebugControl7.VTable, @ptrCast(self.vtable)).RemoveAssemblyOptions(@as(*const IDebugControl7, @ptrCast(self)), Options); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl7_SetAssemblyOptions(self: *const T, Options: u32) HRESULT { return @as(*const IDebugControl7.VTable, @ptrCast(self.vtable)).SetAssemblyOptions(@as(*const IDebugControl7, @ptrCast(self)), Options); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl7_GetExpressionSyntax(self: *const T, Flags: ?*u32) HRESULT { return @as(*const IDebugControl7.VTable, @ptrCast(self.vtable)).GetExpressionSyntax(@as(*const IDebugControl7, @ptrCast(self)), Flags); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl7_SetExpressionSyntax(self: *const T, Flags: u32) HRESULT { return @as(*const IDebugControl7.VTable, @ptrCast(self.vtable)).SetExpressionSyntax(@as(*const IDebugControl7, @ptrCast(self)), Flags); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl7_SetExpressionSyntaxByName(self: *const T, AbbrevName: ?[*:0]const u8) HRESULT { return @as(*const IDebugControl7.VTable, @ptrCast(self.vtable)).SetExpressionSyntaxByName(@as(*const IDebugControl7, @ptrCast(self)), AbbrevName); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl7_GetNumberExpressionSyntaxes(self: *const T, Number: ?*u32) HRESULT { return @as(*const IDebugControl7.VTable, @ptrCast(self.vtable)).GetNumberExpressionSyntaxes(@as(*const IDebugControl7, @ptrCast(self)), Number); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl7_GetExpressionSyntaxNames(self: *const T, Index: u32, FullNameBuffer: ?[*:0]u8, FullNameBufferSize: u32, FullNameSize: ?*u32, AbbrevNameBuffer: ?[*:0]u8, AbbrevNameBufferSize: u32, AbbrevNameSize: ?*u32) HRESULT { return @as(*const IDebugControl7.VTable, @ptrCast(self.vtable)).GetExpressionSyntaxNames(@as(*const IDebugControl7, @ptrCast(self)), Index, FullNameBuffer, FullNameBufferSize, FullNameSize, AbbrevNameBuffer, AbbrevNameBufferSize, AbbrevNameSize); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl7_GetNumberEvents(self: *const T, Events: ?*u32) HRESULT { return @as(*const IDebugControl7.VTable, @ptrCast(self.vtable)).GetNumberEvents(@as(*const IDebugControl7, @ptrCast(self)), Events); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl7_GetEventIndexDescription(self: *const T, Index: u32, Which: u32, Buffer: ?PSTR, BufferSize: u32, DescSize: ?*u32) HRESULT { return @as(*const IDebugControl7.VTable, @ptrCast(self.vtable)).GetEventIndexDescription(@as(*const IDebugControl7, @ptrCast(self)), Index, Which, Buffer, BufferSize, DescSize); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl7_GetCurrentEventIndex(self: *const T, Index: ?*u32) HRESULT { return @as(*const IDebugControl7.VTable, @ptrCast(self.vtable)).GetCurrentEventIndex(@as(*const IDebugControl7, @ptrCast(self)), Index); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl7_SetNextEventIndex(self: *const T, Relation: u32, Value: u32, NextIndex: ?*u32) HRESULT { return @as(*const IDebugControl7.VTable, @ptrCast(self.vtable)).SetNextEventIndex(@as(*const IDebugControl7, @ptrCast(self)), Relation, Value, NextIndex); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl7_GetLogFileWide(self: *const T, Buffer: ?[*:0]u16, BufferSize: u32, FileSize: ?*u32, Append: ?*BOOL) HRESULT { return @as(*const IDebugControl7.VTable, @ptrCast(self.vtable)).GetLogFileWide(@as(*const IDebugControl7, @ptrCast(self)), Buffer, BufferSize, FileSize, Append); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl7_OpenLogFileWide(self: *const T, File: ?[*:0]const u16, Append: BOOL) HRESULT { return @as(*const IDebugControl7.VTable, @ptrCast(self.vtable)).OpenLogFileWide(@as(*const IDebugControl7, @ptrCast(self)), File, Append); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl7_InputWide(self: *const T, Buffer: [*:0]u16, BufferSize: u32, InputSize: ?*u32) HRESULT { return @as(*const IDebugControl7.VTable, @ptrCast(self.vtable)).InputWide(@as(*const IDebugControl7, @ptrCast(self)), Buffer, BufferSize, InputSize); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl7_ReturnInputWide(self: *const T, Buffer: ?[*:0]const u16) HRESULT { return @as(*const IDebugControl7.VTable, @ptrCast(self.vtable)).ReturnInputWide(@as(*const IDebugControl7, @ptrCast(self)), Buffer); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl7_OutputWide(self: *const T, Mask: u32, Format: ?[*:0]const u16) HRESULT { return @as(*const IDebugControl7.VTable, @ptrCast(self.vtable)).OutputWide(@as(*const IDebugControl7, @ptrCast(self)), Mask, Format); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl7_OutputVaListWide(self: *const T, Mask: u32, Format: ?[*:0]const u16, Args: ?*i8) HRESULT { return @as(*const IDebugControl7.VTable, @ptrCast(self.vtable)).OutputVaListWide(@as(*const IDebugControl7, @ptrCast(self)), Mask, Format, Args); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl7_ControlledOutputWide(self: *const T, OutputControl: u32, Mask: u32, Format: ?[*:0]const u16) HRESULT { return @as(*const IDebugControl7.VTable, @ptrCast(self.vtable)).ControlledOutputWide(@as(*const IDebugControl7, @ptrCast(self)), OutputControl, Mask, Format); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl7_ControlledOutputVaListWide(self: *const T, OutputControl: u32, Mask: u32, Format: ?[*:0]const u16, Args: ?*i8) HRESULT { return @as(*const IDebugControl7.VTable, @ptrCast(self.vtable)).ControlledOutputVaListWide(@as(*const IDebugControl7, @ptrCast(self)), OutputControl, Mask, Format, Args); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl7_OutputPromptWide(self: *const T, OutputControl: u32, Format: ?[*:0]const u16) HRESULT { return @as(*const IDebugControl7.VTable, @ptrCast(self.vtable)).OutputPromptWide(@as(*const IDebugControl7, @ptrCast(self)), OutputControl, Format); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl7_OutputPromptVaListWide(self: *const T, OutputControl: u32, Format: ?[*:0]const u16, Args: ?*i8) HRESULT { return @as(*const IDebugControl7.VTable, @ptrCast(self.vtable)).OutputPromptVaListWide(@as(*const IDebugControl7, @ptrCast(self)), OutputControl, Format, Args); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl7_GetPromptTextWide(self: *const T, Buffer: ?[*:0]u16, BufferSize: u32, TextSize: ?*u32) HRESULT { return @as(*const IDebugControl7.VTable, @ptrCast(self.vtable)).GetPromptTextWide(@as(*const IDebugControl7, @ptrCast(self)), Buffer, BufferSize, TextSize); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl7_AssembleWide(self: *const T, Offset: u64, Instr: ?[*:0]const u16, EndOffset: ?*u64) HRESULT { return @as(*const IDebugControl7.VTable, @ptrCast(self.vtable)).AssembleWide(@as(*const IDebugControl7, @ptrCast(self)), Offset, Instr, EndOffset); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl7_DisassembleWide(self: *const T, Offset: u64, Flags: u32, Buffer: ?[*:0]u16, BufferSize: u32, DisassemblySize: ?*u32, EndOffset: ?*u64) HRESULT { return @as(*const IDebugControl7.VTable, @ptrCast(self.vtable)).DisassembleWide(@as(*const IDebugControl7, @ptrCast(self)), Offset, Flags, Buffer, BufferSize, DisassemblySize, EndOffset); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl7_GetProcessorTypeNamesWide(self: *const T, Type: u32, FullNameBuffer: ?[*:0]u16, FullNameBufferSize: u32, FullNameSize: ?*u32, AbbrevNameBuffer: ?[*:0]u16, AbbrevNameBufferSize: u32, AbbrevNameSize: ?*u32) HRESULT { return @as(*const IDebugControl7.VTable, @ptrCast(self.vtable)).GetProcessorTypeNamesWide(@as(*const IDebugControl7, @ptrCast(self)), Type, FullNameBuffer, FullNameBufferSize, FullNameSize, AbbrevNameBuffer, AbbrevNameBufferSize, AbbrevNameSize); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl7_GetTextMacroWide(self: *const T, Slot: u32, Buffer: ?[*:0]u16, BufferSize: u32, MacroSize: ?*u32) HRESULT { return @as(*const IDebugControl7.VTable, @ptrCast(self.vtable)).GetTextMacroWide(@as(*const IDebugControl7, @ptrCast(self)), Slot, Buffer, BufferSize, MacroSize); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl7_SetTextMacroWide(self: *const T, Slot: u32, Macro: ?[*:0]const u16) HRESULT { return @as(*const IDebugControl7.VTable, @ptrCast(self.vtable)).SetTextMacroWide(@as(*const IDebugControl7, @ptrCast(self)), Slot, Macro); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl7_EvaluateWide(self: *const T, Expression: ?[*:0]const u16, DesiredType: u32, Value: ?*DEBUG_VALUE, RemainderIndex: ?*u32) HRESULT { return @as(*const IDebugControl7.VTable, @ptrCast(self.vtable)).EvaluateWide(@as(*const IDebugControl7, @ptrCast(self)), Expression, DesiredType, Value, RemainderIndex); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl7_ExecuteWide(self: *const T, OutputControl: u32, Command: ?[*:0]const u16, Flags: u32) HRESULT { return @as(*const IDebugControl7.VTable, @ptrCast(self.vtable)).ExecuteWide(@as(*const IDebugControl7, @ptrCast(self)), OutputControl, Command, Flags); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl7_ExecuteCommandFileWide(self: *const T, OutputControl: u32, CommandFile: ?[*:0]const u16, Flags: u32) HRESULT { return @as(*const IDebugControl7.VTable, @ptrCast(self.vtable)).ExecuteCommandFileWide(@as(*const IDebugControl7, @ptrCast(self)), OutputControl, CommandFile, Flags); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl7_GetBreakpointByIndex2(self: *const T, Index: u32, Bp: ?*?*IDebugBreakpoint2) HRESULT { return @as(*const IDebugControl7.VTable, @ptrCast(self.vtable)).GetBreakpointByIndex2(@as(*const IDebugControl7, @ptrCast(self)), Index, Bp); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl7_GetBreakpointById2(self: *const T, Id: u32, Bp: ?*?*IDebugBreakpoint2) HRESULT { return @as(*const IDebugControl7.VTable, @ptrCast(self.vtable)).GetBreakpointById2(@as(*const IDebugControl7, @ptrCast(self)), Id, Bp); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl7_AddBreakpoint2(self: *const T, Type: u32, DesiredId: u32, Bp: ?*?*IDebugBreakpoint2) HRESULT { return @as(*const IDebugControl7.VTable, @ptrCast(self.vtable)).AddBreakpoint2(@as(*const IDebugControl7, @ptrCast(self)), Type, DesiredId, Bp); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl7_RemoveBreakpoint2(self: *const T, Bp: ?*IDebugBreakpoint2) HRESULT { return @as(*const IDebugControl7.VTable, @ptrCast(self.vtable)).RemoveBreakpoint2(@as(*const IDebugControl7, @ptrCast(self)), Bp); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl7_AddExtensionWide(self: *const T, Path: ?[*:0]const u16, Flags: u32, Handle: ?*u64) HRESULT { return @as(*const IDebugControl7.VTable, @ptrCast(self.vtable)).AddExtensionWide(@as(*const IDebugControl7, @ptrCast(self)), Path, Flags, Handle); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl7_GetExtensionByPathWide(self: *const T, Path: ?[*:0]const u16, Handle: ?*u64) HRESULT { return @as(*const IDebugControl7.VTable, @ptrCast(self.vtable)).GetExtensionByPathWide(@as(*const IDebugControl7, @ptrCast(self)), Path, Handle); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl7_CallExtensionWide(self: *const T, Handle: u64, Function: ?[*:0]const u16, Arguments: ?[*:0]const u16) HRESULT { return @as(*const IDebugControl7.VTable, @ptrCast(self.vtable)).CallExtensionWide(@as(*const IDebugControl7, @ptrCast(self)), Handle, Function, Arguments); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl7_GetExtensionFunctionWide(self: *const T, Handle: u64, FuncName: ?[*:0]const u16, Function: ?*?FARPROC) HRESULT { return @as(*const IDebugControl7.VTable, @ptrCast(self.vtable)).GetExtensionFunctionWide(@as(*const IDebugControl7, @ptrCast(self)), Handle, FuncName, Function); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl7_GetEventFilterTextWide(self: *const T, Index: u32, Buffer: ?[*:0]u16, BufferSize: u32, TextSize: ?*u32) HRESULT { return @as(*const IDebugControl7.VTable, @ptrCast(self.vtable)).GetEventFilterTextWide(@as(*const IDebugControl7, @ptrCast(self)), Index, Buffer, BufferSize, TextSize); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl7_GetEventFilterCommandWide(self: *const T, Index: u32, Buffer: ?[*:0]u16, BufferSize: u32, CommandSize: ?*u32) HRESULT { return @as(*const IDebugControl7.VTable, @ptrCast(self.vtable)).GetEventFilterCommandWide(@as(*const IDebugControl7, @ptrCast(self)), Index, Buffer, BufferSize, CommandSize); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl7_SetEventFilterCommandWide(self: *const T, Index: u32, Command: ?[*:0]const u16) HRESULT { return @as(*const IDebugControl7.VTable, @ptrCast(self.vtable)).SetEventFilterCommandWide(@as(*const IDebugControl7, @ptrCast(self)), Index, Command); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl7_GetSpecificFilterArgumentWide(self: *const T, Index: u32, Buffer: ?[*:0]u16, BufferSize: u32, ArgumentSize: ?*u32) HRESULT { return @as(*const IDebugControl7.VTable, @ptrCast(self.vtable)).GetSpecificFilterArgumentWide(@as(*const IDebugControl7, @ptrCast(self)), Index, Buffer, BufferSize, ArgumentSize); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl7_SetSpecificFilterArgumentWide(self: *const T, Index: u32, Argument: ?[*:0]const u16) HRESULT { return @as(*const IDebugControl7.VTable, @ptrCast(self.vtable)).SetSpecificFilterArgumentWide(@as(*const IDebugControl7, @ptrCast(self)), Index, Argument); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl7_GetExceptionFilterSecondCommandWide(self: *const T, Index: u32, Buffer: ?[*:0]u16, BufferSize: u32, CommandSize: ?*u32) HRESULT { return @as(*const IDebugControl7.VTable, @ptrCast(self.vtable)).GetExceptionFilterSecondCommandWide(@as(*const IDebugControl7, @ptrCast(self)), Index, Buffer, BufferSize, CommandSize); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl7_SetExceptionFilterSecondCommandWide(self: *const T, Index: u32, Command: ?[*:0]const u16) HRESULT { return @as(*const IDebugControl7.VTable, @ptrCast(self.vtable)).SetExceptionFilterSecondCommandWide(@as(*const IDebugControl7, @ptrCast(self)), Index, Command); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl7_GetLastEventInformationWide(self: *const T, Type: ?*u32, ProcessId: ?*u32, ThreadId: ?*u32, ExtraInformation: ?*anyopaque, ExtraInformationSize: u32, ExtraInformationUsed: ?*u32, Description: ?[*:0]u16, DescriptionSize: u32, DescriptionUsed: ?*u32) HRESULT { return @as(*const IDebugControl7.VTable, @ptrCast(self.vtable)).GetLastEventInformationWide(@as(*const IDebugControl7, @ptrCast(self)), Type, ProcessId, ThreadId, ExtraInformation, ExtraInformationSize, ExtraInformationUsed, Description, DescriptionSize, DescriptionUsed); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl7_GetTextReplacementWide(self: *const T, SrcText: ?[*:0]const u16, Index: u32, SrcBuffer: ?[*:0]u16, SrcBufferSize: u32, SrcSize: ?*u32, DstBuffer: ?[*:0]u16, DstBufferSize: u32, DstSize: ?*u32) HRESULT { return @as(*const IDebugControl7.VTable, @ptrCast(self.vtable)).GetTextReplacementWide(@as(*const IDebugControl7, @ptrCast(self)), SrcText, Index, SrcBuffer, SrcBufferSize, SrcSize, DstBuffer, DstBufferSize, DstSize); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl7_SetTextReplacementWide(self: *const T, SrcText: ?[*:0]const u16, DstText: ?[*:0]const u16) HRESULT { return @as(*const IDebugControl7.VTable, @ptrCast(self.vtable)).SetTextReplacementWide(@as(*const IDebugControl7, @ptrCast(self)), SrcText, DstText); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl7_SetExpressionSyntaxByNameWide(self: *const T, AbbrevName: ?[*:0]const u16) HRESULT { return @as(*const IDebugControl7.VTable, @ptrCast(self.vtable)).SetExpressionSyntaxByNameWide(@as(*const IDebugControl7, @ptrCast(self)), AbbrevName); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl7_GetExpressionSyntaxNamesWide(self: *const T, Index: u32, FullNameBuffer: ?[*:0]u16, FullNameBufferSize: u32, FullNameSize: ?*u32, AbbrevNameBuffer: ?[*:0]u16, AbbrevNameBufferSize: u32, AbbrevNameSize: ?*u32) HRESULT { return @as(*const IDebugControl7.VTable, @ptrCast(self.vtable)).GetExpressionSyntaxNamesWide(@as(*const IDebugControl7, @ptrCast(self)), Index, FullNameBuffer, FullNameBufferSize, FullNameSize, AbbrevNameBuffer, AbbrevNameBufferSize, AbbrevNameSize); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl7_GetEventIndexDescriptionWide(self: *const T, Index: u32, Which: u32, Buffer: ?PWSTR, BufferSize: u32, DescSize: ?*u32) HRESULT { return @as(*const IDebugControl7.VTable, @ptrCast(self.vtable)).GetEventIndexDescriptionWide(@as(*const IDebugControl7, @ptrCast(self)), Index, Which, Buffer, BufferSize, DescSize); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl7_GetLogFile2(self: *const T, Buffer: ?[*:0]u8, BufferSize: u32, FileSize: ?*u32, Flags: ?*u32) HRESULT { return @as(*const IDebugControl7.VTable, @ptrCast(self.vtable)).GetLogFile2(@as(*const IDebugControl7, @ptrCast(self)), Buffer, BufferSize, FileSize, Flags); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl7_OpenLogFile2(self: *const T, File: ?[*:0]const u8, Flags: u32) HRESULT { return @as(*const IDebugControl7.VTable, @ptrCast(self.vtable)).OpenLogFile2(@as(*const IDebugControl7, @ptrCast(self)), File, Flags); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl7_GetLogFile2Wide(self: *const T, Buffer: ?[*:0]u16, BufferSize: u32, FileSize: ?*u32, Flags: ?*u32) HRESULT { return @as(*const IDebugControl7.VTable, @ptrCast(self.vtable)).GetLogFile2Wide(@as(*const IDebugControl7, @ptrCast(self)), Buffer, BufferSize, FileSize, Flags); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl7_OpenLogFile2Wide(self: *const T, File: ?[*:0]const u16, Flags: u32) HRESULT { return @as(*const IDebugControl7.VTable, @ptrCast(self.vtable)).OpenLogFile2Wide(@as(*const IDebugControl7, @ptrCast(self)), File, Flags); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl7_GetSystemVersionValues(self: *const T, PlatformId: ?*u32, Win32Major: ?*u32, Win32Minor: ?*u32, KdMajor: ?*u32, KdMinor: ?*u32) HRESULT { return @as(*const IDebugControl7.VTable, @ptrCast(self.vtable)).GetSystemVersionValues(@as(*const IDebugControl7, @ptrCast(self)), PlatformId, Win32Major, Win32Minor, KdMajor, KdMinor); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl7_GetSystemVersionString(self: *const T, Which: u32, Buffer: ?[*:0]u8, BufferSize: u32, StringSize: ?*u32) HRESULT { return @as(*const IDebugControl7.VTable, @ptrCast(self.vtable)).GetSystemVersionString(@as(*const IDebugControl7, @ptrCast(self)), Which, Buffer, BufferSize, StringSize); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl7_GetSystemVersionStringWide(self: *const T, Which: u32, Buffer: ?[*:0]u16, BufferSize: u32, StringSize: ?*u32) HRESULT { return @as(*const IDebugControl7.VTable, @ptrCast(self.vtable)).GetSystemVersionStringWide(@as(*const IDebugControl7, @ptrCast(self)), Which, Buffer, BufferSize, StringSize); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl7_GetContextStackTrace(self: *const T, StartContext: ?*anyopaque, StartContextSize: u32, Frames: ?[*]DEBUG_STACK_FRAME, FramesSize: u32, FrameContexts: ?*anyopaque, FrameContextsSize: u32, FrameContextsEntrySize: u32, FramesFilled: ?*u32) HRESULT { return @as(*const IDebugControl7.VTable, @ptrCast(self.vtable)).GetContextStackTrace(@as(*const IDebugControl7, @ptrCast(self)), StartContext, StartContextSize, Frames, FramesSize, FrameContexts, FrameContextsSize, FrameContextsEntrySize, FramesFilled); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl7_OutputContextStackTrace(self: *const T, OutputControl: u32, Frames: [*]DEBUG_STACK_FRAME, FramesSize: u32, FrameContexts: ?*anyopaque, FrameContextsSize: u32, FrameContextsEntrySize: u32, Flags: u32) HRESULT { return @as(*const IDebugControl7.VTable, @ptrCast(self.vtable)).OutputContextStackTrace(@as(*const IDebugControl7, @ptrCast(self)), OutputControl, Frames, FramesSize, FrameContexts, FrameContextsSize, FrameContextsEntrySize, Flags); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl7_GetStoredEventInformation(self: *const T, Type: ?*u32, ProcessId: ?*u32, ThreadId: ?*u32, Context: ?*anyopaque, ContextSize: u32, ContextUsed: ?*u32, ExtraInformation: ?*anyopaque, ExtraInformationSize: u32, ExtraInformationUsed: ?*u32) HRESULT { return @as(*const IDebugControl7.VTable, @ptrCast(self.vtable)).GetStoredEventInformation(@as(*const IDebugControl7, @ptrCast(self)), Type, ProcessId, ThreadId, Context, ContextSize, ContextUsed, ExtraInformation, ExtraInformationSize, ExtraInformationUsed); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl7_GetManagedStatus(self: *const T, Flags: ?*u32, WhichString: u32, String: ?[*:0]u8, StringSize: u32, StringNeeded: ?*u32) HRESULT { return @as(*const IDebugControl7.VTable, @ptrCast(self.vtable)).GetManagedStatus(@as(*const IDebugControl7, @ptrCast(self)), Flags, WhichString, String, StringSize, StringNeeded); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl7_GetManagedStatusWide(self: *const T, Flags: ?*u32, WhichString: u32, String: ?[*:0]u16, StringSize: u32, StringNeeded: ?*u32) HRESULT { return @as(*const IDebugControl7.VTable, @ptrCast(self.vtable)).GetManagedStatusWide(@as(*const IDebugControl7, @ptrCast(self)), Flags, WhichString, String, StringSize, StringNeeded); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl7_ResetManagedStatus(self: *const T, Flags: u32) HRESULT { return @as(*const IDebugControl7.VTable, @ptrCast(self.vtable)).ResetManagedStatus(@as(*const IDebugControl7, @ptrCast(self)), Flags); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl7_GetStackTraceEx(self: *const T, FrameOffset: u64, StackOffset: u64, InstructionOffset: u64, Frames: [*]DEBUG_STACK_FRAME_EX, FramesSize: u32, FramesFilled: ?*u32) HRESULT { return @as(*const IDebugControl7.VTable, @ptrCast(self.vtable)).GetStackTraceEx(@as(*const IDebugControl7, @ptrCast(self)), FrameOffset, StackOffset, InstructionOffset, Frames, FramesSize, FramesFilled); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl7_OutputStackTraceEx(self: *const T, OutputControl: u32, Frames: ?[*]DEBUG_STACK_FRAME_EX, FramesSize: u32, Flags: u32) HRESULT { return @as(*const IDebugControl7.VTable, @ptrCast(self.vtable)).OutputStackTraceEx(@as(*const IDebugControl7, @ptrCast(self)), OutputControl, Frames, FramesSize, Flags); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl7_GetContextStackTraceEx(self: *const T, StartContext: ?*anyopaque, StartContextSize: u32, Frames: ?[*]DEBUG_STACK_FRAME_EX, FramesSize: u32, FrameContexts: ?*anyopaque, FrameContextsSize: u32, FrameContextsEntrySize: u32, FramesFilled: ?*u32) HRESULT { return @as(*const IDebugControl7.VTable, @ptrCast(self.vtable)).GetContextStackTraceEx(@as(*const IDebugControl7, @ptrCast(self)), StartContext, StartContextSize, Frames, FramesSize, FrameContexts, FrameContextsSize, FrameContextsEntrySize, FramesFilled); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl7_OutputContextStackTraceEx(self: *const T, OutputControl: u32, Frames: [*]DEBUG_STACK_FRAME_EX, FramesSize: u32, FrameContexts: ?*anyopaque, FrameContextsSize: u32, FrameContextsEntrySize: u32, Flags: u32) HRESULT { return @as(*const IDebugControl7.VTable, @ptrCast(self.vtable)).OutputContextStackTraceEx(@as(*const IDebugControl7, @ptrCast(self)), OutputControl, Frames, FramesSize, FrameContexts, FrameContextsSize, FrameContextsEntrySize, Flags); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl7_GetBreakpointByGuid(self: *const T, _param_Guid: ?*Guid, Bp: ?*?*IDebugBreakpoint3) HRESULT { return @as(*const IDebugControl7.VTable, @ptrCast(self.vtable)).GetBreakpointByGuid(@as(*const IDebugControl7, @ptrCast(self)), _param_Guid, Bp); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl7_GetExecutionStatusEx(self: *const T, Status: ?*u32) HRESULT { return @as(*const IDebugControl7.VTable, @ptrCast(self.vtable)).GetExecutionStatusEx(@as(*const IDebugControl7, @ptrCast(self)), Status); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl7_GetSynchronizationStatus(self: *const T, SendsAttempted: ?*u32, SecondsSinceLastResponse: ?*u32) HRESULT { return @as(*const IDebugControl7.VTable, @ptrCast(self.vtable)).GetSynchronizationStatus(@as(*const IDebugControl7, @ptrCast(self)), SendsAttempted, SecondsSinceLastResponse); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugControl7_GetDebuggeeType2(self: *const T, Flags: u32, Class: ?*u32, Qualifier: ?*u32) HRESULT { return @as(*const IDebugControl7.VTable, @ptrCast(self.vtable)).GetDebuggeeType2(@as(*const IDebugControl7, @ptrCast(self)), Flags, Class, Qualifier); } }; } pub usingnamespace MethodMixin(@This()); }; pub const DEBUG_PROCESSOR_IDENTIFICATION_ALPHA = extern struct { Type: u32, Revision: u32, }; pub const DEBUG_PROCESSOR_IDENTIFICATION_AMD64 = extern struct { Family: u32, Model: u32, Stepping: u32, VendorString: [16]CHAR, }; pub const DEBUG_PROCESSOR_IDENTIFICATION_IA64 = extern struct { Model: u32, Revision: u32, Family: u32, ArchRev: u32, VendorString: [16]CHAR, }; pub const DEBUG_PROCESSOR_IDENTIFICATION_X86 = extern struct { Family: u32, Model: u32, Stepping: u32, VendorString: [16]CHAR, }; pub const DEBUG_PROCESSOR_IDENTIFICATION_ARM = extern struct { Model: u32, Revision: u32, VendorString: [16]CHAR, }; pub const DEBUG_PROCESSOR_IDENTIFICATION_ARM64 = extern struct { Model: u32, Revision: u32, VendorString: [16]CHAR, }; pub const DEBUG_PROCESSOR_IDENTIFICATION_ALL = extern union { Alpha: DEBUG_PROCESSOR_IDENTIFICATION_ALPHA, Amd64: DEBUG_PROCESSOR_IDENTIFICATION_AMD64, Ia64: DEBUG_PROCESSOR_IDENTIFICATION_IA64, X86: DEBUG_PROCESSOR_IDENTIFICATION_X86, Arm: DEBUG_PROCESSOR_IDENTIFICATION_ARM, Arm64: DEBUG_PROCESSOR_IDENTIFICATION_ARM64, }; const IID_IDebugDataSpaces_Value = Guid.initString("88f7dfab-3ea7-4c3a-aefb-c4e8106173aa"); pub const IID_IDebugDataSpaces = &IID_IDebugDataSpaces_Value; pub const IDebugDataSpaces = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, ReadVirtual: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugDataSpaces, Offset: u64, // TODO: what to do with BytesParamIndex 2? Buffer: ?*anyopaque, BufferSize: u32, BytesRead: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugDataSpaces, Offset: u64, // TODO: what to do with BytesParamIndex 2? Buffer: ?*anyopaque, BufferSize: u32, BytesRead: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, WriteVirtual: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugDataSpaces, Offset: u64, // TODO: what to do with BytesParamIndex 2? Buffer: ?*anyopaque, BufferSize: u32, BytesWritten: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugDataSpaces, Offset: u64, // TODO: what to do with BytesParamIndex 2? Buffer: ?*anyopaque, BufferSize: u32, BytesWritten: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SearchVirtual: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugDataSpaces, Offset: u64, Length: u64, // TODO: what to do with BytesParamIndex 3? Pattern: ?*anyopaque, PatternSize: u32, PatternGranularity: u32, MatchOffset: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugDataSpaces, Offset: u64, Length: u64, // TODO: what to do with BytesParamIndex 3? Pattern: ?*anyopaque, PatternSize: u32, PatternGranularity: u32, MatchOffset: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, ReadVirtualUncached: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugDataSpaces, Offset: u64, // TODO: what to do with BytesParamIndex 2? Buffer: ?*anyopaque, BufferSize: u32, BytesRead: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugDataSpaces, Offset: u64, // TODO: what to do with BytesParamIndex 2? Buffer: ?*anyopaque, BufferSize: u32, BytesRead: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, WriteVirtualUncached: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugDataSpaces, Offset: u64, // TODO: what to do with BytesParamIndex 2? Buffer: ?*anyopaque, BufferSize: u32, BytesWritten: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugDataSpaces, Offset: u64, // TODO: what to do with BytesParamIndex 2? Buffer: ?*anyopaque, BufferSize: u32, BytesWritten: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, ReadPointersVirtual: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugDataSpaces, Count: u32, Offset: u64, Ptrs: [*]u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugDataSpaces, Count: u32, Offset: u64, Ptrs: [*]u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, WritePointersVirtual: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugDataSpaces, Count: u32, Offset: u64, Ptrs: [*]u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugDataSpaces, Count: u32, Offset: u64, Ptrs: [*]u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, ReadPhysical: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugDataSpaces, Offset: u64, // TODO: what to do with BytesParamIndex 2? Buffer: ?*anyopaque, BufferSize: u32, BytesRead: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugDataSpaces, Offset: u64, // TODO: what to do with BytesParamIndex 2? Buffer: ?*anyopaque, BufferSize: u32, BytesRead: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, WritePhysical: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugDataSpaces, Offset: u64, // TODO: what to do with BytesParamIndex 2? Buffer: ?*anyopaque, BufferSize: u32, BytesWritten: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugDataSpaces, Offset: u64, // TODO: what to do with BytesParamIndex 2? Buffer: ?*anyopaque, BufferSize: u32, BytesWritten: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, ReadControl: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugDataSpaces, Processor: u32, Offset: u64, // TODO: what to do with BytesParamIndex 3? Buffer: ?*anyopaque, BufferSize: u32, BytesRead: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugDataSpaces, Processor: u32, Offset: u64, // TODO: what to do with BytesParamIndex 3? Buffer: ?*anyopaque, BufferSize: u32, BytesRead: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, WriteControl: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugDataSpaces, Processor: u32, Offset: u64, // TODO: what to do with BytesParamIndex 3? Buffer: ?*anyopaque, BufferSize: u32, BytesWritten: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugDataSpaces, Processor: u32, Offset: u64, // TODO: what to do with BytesParamIndex 3? Buffer: ?*anyopaque, BufferSize: u32, BytesWritten: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, ReadIo: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugDataSpaces, InterfaceType: u32, BusNumber: u32, AddressSpace: u32, Offset: u64, // TODO: what to do with BytesParamIndex 5? Buffer: ?*anyopaque, BufferSize: u32, BytesRead: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugDataSpaces, InterfaceType: u32, BusNumber: u32, AddressSpace: u32, Offset: u64, // TODO: what to do with BytesParamIndex 5? Buffer: ?*anyopaque, BufferSize: u32, BytesRead: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, WriteIo: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugDataSpaces, InterfaceType: u32, BusNumber: u32, AddressSpace: u32, Offset: u64, // TODO: what to do with BytesParamIndex 5? Buffer: ?*anyopaque, BufferSize: u32, BytesWritten: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugDataSpaces, InterfaceType: u32, BusNumber: u32, AddressSpace: u32, Offset: u64, // TODO: what to do with BytesParamIndex 5? Buffer: ?*anyopaque, BufferSize: u32, BytesWritten: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, ReadMsr: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugDataSpaces, Msr: u32, Value: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugDataSpaces, Msr: u32, Value: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, WriteMsr: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugDataSpaces, Msr: u32, Value: u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugDataSpaces, Msr: u32, Value: u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, ReadBusData: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugDataSpaces, BusDataType: u32, BusNumber: u32, SlotNumber: u32, Offset: u32, // TODO: what to do with BytesParamIndex 5? Buffer: ?*anyopaque, BufferSize: u32, BytesRead: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugDataSpaces, BusDataType: u32, BusNumber: u32, SlotNumber: u32, Offset: u32, // TODO: what to do with BytesParamIndex 5? Buffer: ?*anyopaque, BufferSize: u32, BytesRead: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, WriteBusData: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugDataSpaces, BusDataType: u32, BusNumber: u32, SlotNumber: u32, Offset: u32, // TODO: what to do with BytesParamIndex 5? Buffer: ?*anyopaque, BufferSize: u32, BytesWritten: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugDataSpaces, BusDataType: u32, BusNumber: u32, SlotNumber: u32, Offset: u32, // TODO: what to do with BytesParamIndex 5? Buffer: ?*anyopaque, BufferSize: u32, BytesWritten: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, CheckLowMemory: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugDataSpaces, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugDataSpaces, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, ReadDebuggerData: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugDataSpaces, Index: u32, // TODO: what to do with BytesParamIndex 2? Buffer: ?*anyopaque, BufferSize: u32, DataSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugDataSpaces, Index: u32, // TODO: what to do with BytesParamIndex 2? Buffer: ?*anyopaque, BufferSize: u32, DataSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, ReadProcessorSystemData: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugDataSpaces, Processor: u32, Index: u32, // TODO: what to do with BytesParamIndex 3? Buffer: ?*anyopaque, BufferSize: u32, DataSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugDataSpaces, Processor: u32, Index: u32, // TODO: what to do with BytesParamIndex 3? Buffer: ?*anyopaque, BufferSize: u32, DataSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugDataSpaces_ReadVirtual(self: *const T, Offset: u64, Buffer: ?*anyopaque, BufferSize: u32, BytesRead: ?*u32) HRESULT { return @as(*const IDebugDataSpaces.VTable, @ptrCast(self.vtable)).ReadVirtual(@as(*const IDebugDataSpaces, @ptrCast(self)), Offset, Buffer, BufferSize, BytesRead); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugDataSpaces_WriteVirtual(self: *const T, Offset: u64, Buffer: ?*anyopaque, BufferSize: u32, BytesWritten: ?*u32) HRESULT { return @as(*const IDebugDataSpaces.VTable, @ptrCast(self.vtable)).WriteVirtual(@as(*const IDebugDataSpaces, @ptrCast(self)), Offset, Buffer, BufferSize, BytesWritten); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugDataSpaces_SearchVirtual(self: *const T, Offset: u64, Length: u64, Pattern: ?*anyopaque, PatternSize: u32, PatternGranularity: u32, MatchOffset: ?*u64) HRESULT { return @as(*const IDebugDataSpaces.VTable, @ptrCast(self.vtable)).SearchVirtual(@as(*const IDebugDataSpaces, @ptrCast(self)), Offset, Length, Pattern, PatternSize, PatternGranularity, MatchOffset); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugDataSpaces_ReadVirtualUncached(self: *const T, Offset: u64, Buffer: ?*anyopaque, BufferSize: u32, BytesRead: ?*u32) HRESULT { return @as(*const IDebugDataSpaces.VTable, @ptrCast(self.vtable)).ReadVirtualUncached(@as(*const IDebugDataSpaces, @ptrCast(self)), Offset, Buffer, BufferSize, BytesRead); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugDataSpaces_WriteVirtualUncached(self: *const T, Offset: u64, Buffer: ?*anyopaque, BufferSize: u32, BytesWritten: ?*u32) HRESULT { return @as(*const IDebugDataSpaces.VTable, @ptrCast(self.vtable)).WriteVirtualUncached(@as(*const IDebugDataSpaces, @ptrCast(self)), Offset, Buffer, BufferSize, BytesWritten); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugDataSpaces_ReadPointersVirtual(self: *const T, Count: u32, Offset: u64, Ptrs: [*]u64) HRESULT { return @as(*const IDebugDataSpaces.VTable, @ptrCast(self.vtable)).ReadPointersVirtual(@as(*const IDebugDataSpaces, @ptrCast(self)), Count, Offset, Ptrs); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugDataSpaces_WritePointersVirtual(self: *const T, Count: u32, Offset: u64, Ptrs: [*]u64) HRESULT { return @as(*const IDebugDataSpaces.VTable, @ptrCast(self.vtable)).WritePointersVirtual(@as(*const IDebugDataSpaces, @ptrCast(self)), Count, Offset, Ptrs); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugDataSpaces_ReadPhysical(self: *const T, Offset: u64, Buffer: ?*anyopaque, BufferSize: u32, BytesRead: ?*u32) HRESULT { return @as(*const IDebugDataSpaces.VTable, @ptrCast(self.vtable)).ReadPhysical(@as(*const IDebugDataSpaces, @ptrCast(self)), Offset, Buffer, BufferSize, BytesRead); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugDataSpaces_WritePhysical(self: *const T, Offset: u64, Buffer: ?*anyopaque, BufferSize: u32, BytesWritten: ?*u32) HRESULT { return @as(*const IDebugDataSpaces.VTable, @ptrCast(self.vtable)).WritePhysical(@as(*const IDebugDataSpaces, @ptrCast(self)), Offset, Buffer, BufferSize, BytesWritten); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugDataSpaces_ReadControl(self: *const T, Processor: u32, Offset: u64, Buffer: ?*anyopaque, BufferSize: u32, BytesRead: ?*u32) HRESULT { return @as(*const IDebugDataSpaces.VTable, @ptrCast(self.vtable)).ReadControl(@as(*const IDebugDataSpaces, @ptrCast(self)), Processor, Offset, Buffer, BufferSize, BytesRead); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugDataSpaces_WriteControl(self: *const T, Processor: u32, Offset: u64, Buffer: ?*anyopaque, BufferSize: u32, BytesWritten: ?*u32) HRESULT { return @as(*const IDebugDataSpaces.VTable, @ptrCast(self.vtable)).WriteControl(@as(*const IDebugDataSpaces, @ptrCast(self)), Processor, Offset, Buffer, BufferSize, BytesWritten); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugDataSpaces_ReadIo(self: *const T, InterfaceType: u32, BusNumber: u32, AddressSpace: u32, Offset: u64, Buffer: ?*anyopaque, BufferSize: u32, BytesRead: ?*u32) HRESULT { return @as(*const IDebugDataSpaces.VTable, @ptrCast(self.vtable)).ReadIo(@as(*const IDebugDataSpaces, @ptrCast(self)), InterfaceType, BusNumber, AddressSpace, Offset, Buffer, BufferSize, BytesRead); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugDataSpaces_WriteIo(self: *const T, InterfaceType: u32, BusNumber: u32, AddressSpace: u32, Offset: u64, Buffer: ?*anyopaque, BufferSize: u32, BytesWritten: ?*u32) HRESULT { return @as(*const IDebugDataSpaces.VTable, @ptrCast(self.vtable)).WriteIo(@as(*const IDebugDataSpaces, @ptrCast(self)), InterfaceType, BusNumber, AddressSpace, Offset, Buffer, BufferSize, BytesWritten); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugDataSpaces_ReadMsr(self: *const T, Msr: u32, Value: ?*u64) HRESULT { return @as(*const IDebugDataSpaces.VTable, @ptrCast(self.vtable)).ReadMsr(@as(*const IDebugDataSpaces, @ptrCast(self)), Msr, Value); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugDataSpaces_WriteMsr(self: *const T, Msr: u32, Value: u64) HRESULT { return @as(*const IDebugDataSpaces.VTable, @ptrCast(self.vtable)).WriteMsr(@as(*const IDebugDataSpaces, @ptrCast(self)), Msr, Value); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugDataSpaces_ReadBusData(self: *const T, BusDataType: u32, BusNumber: u32, SlotNumber: u32, Offset: u32, Buffer: ?*anyopaque, BufferSize: u32, BytesRead: ?*u32) HRESULT { return @as(*const IDebugDataSpaces.VTable, @ptrCast(self.vtable)).ReadBusData(@as(*const IDebugDataSpaces, @ptrCast(self)), BusDataType, BusNumber, SlotNumber, Offset, Buffer, BufferSize, BytesRead); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugDataSpaces_WriteBusData(self: *const T, BusDataType: u32, BusNumber: u32, SlotNumber: u32, Offset: u32, Buffer: ?*anyopaque, BufferSize: u32, BytesWritten: ?*u32) HRESULT { return @as(*const IDebugDataSpaces.VTable, @ptrCast(self.vtable)).WriteBusData(@as(*const IDebugDataSpaces, @ptrCast(self)), BusDataType, BusNumber, SlotNumber, Offset, Buffer, BufferSize, BytesWritten); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugDataSpaces_CheckLowMemory(self: *const T) HRESULT { return @as(*const IDebugDataSpaces.VTable, @ptrCast(self.vtable)).CheckLowMemory(@as(*const IDebugDataSpaces, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugDataSpaces_ReadDebuggerData(self: *const T, Index: u32, Buffer: ?*anyopaque, BufferSize: u32, DataSize: ?*u32) HRESULT { return @as(*const IDebugDataSpaces.VTable, @ptrCast(self.vtable)).ReadDebuggerData(@as(*const IDebugDataSpaces, @ptrCast(self)), Index, Buffer, BufferSize, DataSize); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugDataSpaces_ReadProcessorSystemData(self: *const T, Processor: u32, Index: u32, Buffer: ?*anyopaque, BufferSize: u32, DataSize: ?*u32) HRESULT { return @as(*const IDebugDataSpaces.VTable, @ptrCast(self.vtable)).ReadProcessorSystemData(@as(*const IDebugDataSpaces, @ptrCast(self)), Processor, Index, Buffer, BufferSize, DataSize); } }; } pub usingnamespace MethodMixin(@This()); }; pub const DEBUG_HANDLE_DATA_BASIC = extern struct { TypeNameSize: u32, ObjectNameSize: u32, Attributes: u32, GrantedAccess: u32, HandleCount: u32, PointerCount: u32, }; const IID_IDebugDataSpaces2_Value = Guid.initString("7a5e852f-96e9-468f-ac1b-0b3addc4a049"); pub const IID_IDebugDataSpaces2 = &IID_IDebugDataSpaces2_Value; pub const IDebugDataSpaces2 = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, ReadVirtual: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugDataSpaces2, Offset: u64, // TODO: what to do with BytesParamIndex 2? Buffer: ?*anyopaque, BufferSize: u32, BytesRead: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugDataSpaces2, Offset: u64, // TODO: what to do with BytesParamIndex 2? Buffer: ?*anyopaque, BufferSize: u32, BytesRead: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, WriteVirtual: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugDataSpaces2, Offset: u64, // TODO: what to do with BytesParamIndex 2? Buffer: ?*anyopaque, BufferSize: u32, BytesWritten: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugDataSpaces2, Offset: u64, // TODO: what to do with BytesParamIndex 2? Buffer: ?*anyopaque, BufferSize: u32, BytesWritten: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SearchVirtual: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugDataSpaces2, Offset: u64, Length: u64, // TODO: what to do with BytesParamIndex 3? Pattern: ?*anyopaque, PatternSize: u32, PatternGranularity: u32, MatchOffset: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugDataSpaces2, Offset: u64, Length: u64, // TODO: what to do with BytesParamIndex 3? Pattern: ?*anyopaque, PatternSize: u32, PatternGranularity: u32, MatchOffset: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, ReadVirtualUncached: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugDataSpaces2, Offset: u64, // TODO: what to do with BytesParamIndex 2? Buffer: ?*anyopaque, BufferSize: u32, BytesRead: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugDataSpaces2, Offset: u64, // TODO: what to do with BytesParamIndex 2? Buffer: ?*anyopaque, BufferSize: u32, BytesRead: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, WriteVirtualUncached: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugDataSpaces2, Offset: u64, // TODO: what to do with BytesParamIndex 2? Buffer: ?*anyopaque, BufferSize: u32, BytesWritten: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugDataSpaces2, Offset: u64, // TODO: what to do with BytesParamIndex 2? Buffer: ?*anyopaque, BufferSize: u32, BytesWritten: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, ReadPointersVirtual: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugDataSpaces2, Count: u32, Offset: u64, Ptrs: [*]u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugDataSpaces2, Count: u32, Offset: u64, Ptrs: [*]u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, WritePointersVirtual: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugDataSpaces2, Count: u32, Offset: u64, Ptrs: [*]u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugDataSpaces2, Count: u32, Offset: u64, Ptrs: [*]u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, ReadPhysical: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugDataSpaces2, Offset: u64, // TODO: what to do with BytesParamIndex 2? Buffer: ?*anyopaque, BufferSize: u32, BytesRead: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugDataSpaces2, Offset: u64, // TODO: what to do with BytesParamIndex 2? Buffer: ?*anyopaque, BufferSize: u32, BytesRead: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, WritePhysical: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugDataSpaces2, Offset: u64, // TODO: what to do with BytesParamIndex 2? Buffer: ?*anyopaque, BufferSize: u32, BytesWritten: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugDataSpaces2, Offset: u64, // TODO: what to do with BytesParamIndex 2? Buffer: ?*anyopaque, BufferSize: u32, BytesWritten: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, ReadControl: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugDataSpaces2, Processor: u32, Offset: u64, // TODO: what to do with BytesParamIndex 3? Buffer: ?*anyopaque, BufferSize: u32, BytesRead: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugDataSpaces2, Processor: u32, Offset: u64, // TODO: what to do with BytesParamIndex 3? Buffer: ?*anyopaque, BufferSize: u32, BytesRead: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, WriteControl: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugDataSpaces2, Processor: u32, Offset: u64, // TODO: what to do with BytesParamIndex 3? Buffer: ?*anyopaque, BufferSize: u32, BytesWritten: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugDataSpaces2, Processor: u32, Offset: u64, // TODO: what to do with BytesParamIndex 3? Buffer: ?*anyopaque, BufferSize: u32, BytesWritten: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, ReadIo: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugDataSpaces2, InterfaceType: u32, BusNumber: u32, AddressSpace: u32, Offset: u64, // TODO: what to do with BytesParamIndex 5? Buffer: ?*anyopaque, BufferSize: u32, BytesRead: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugDataSpaces2, InterfaceType: u32, BusNumber: u32, AddressSpace: u32, Offset: u64, // TODO: what to do with BytesParamIndex 5? Buffer: ?*anyopaque, BufferSize: u32, BytesRead: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, WriteIo: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugDataSpaces2, InterfaceType: u32, BusNumber: u32, AddressSpace: u32, Offset: u64, // TODO: what to do with BytesParamIndex 5? Buffer: ?*anyopaque, BufferSize: u32, BytesWritten: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugDataSpaces2, InterfaceType: u32, BusNumber: u32, AddressSpace: u32, Offset: u64, // TODO: what to do with BytesParamIndex 5? Buffer: ?*anyopaque, BufferSize: u32, BytesWritten: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, ReadMsr: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugDataSpaces2, Msr: u32, Value: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugDataSpaces2, Msr: u32, Value: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, WriteMsr: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugDataSpaces2, Msr: u32, Value: u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugDataSpaces2, Msr: u32, Value: u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, ReadBusData: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugDataSpaces2, BusDataType: u32, BusNumber: u32, SlotNumber: u32, Offset: u32, // TODO: what to do with BytesParamIndex 5? Buffer: ?*anyopaque, BufferSize: u32, BytesRead: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugDataSpaces2, BusDataType: u32, BusNumber: u32, SlotNumber: u32, Offset: u32, // TODO: what to do with BytesParamIndex 5? Buffer: ?*anyopaque, BufferSize: u32, BytesRead: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, WriteBusData: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugDataSpaces2, BusDataType: u32, BusNumber: u32, SlotNumber: u32, Offset: u32, // TODO: what to do with BytesParamIndex 5? Buffer: ?*anyopaque, BufferSize: u32, BytesWritten: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugDataSpaces2, BusDataType: u32, BusNumber: u32, SlotNumber: u32, Offset: u32, // TODO: what to do with BytesParamIndex 5? Buffer: ?*anyopaque, BufferSize: u32, BytesWritten: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, CheckLowMemory: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugDataSpaces2, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugDataSpaces2, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, ReadDebuggerData: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugDataSpaces2, Index: u32, // TODO: what to do with BytesParamIndex 2? Buffer: ?*anyopaque, BufferSize: u32, DataSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugDataSpaces2, Index: u32, // TODO: what to do with BytesParamIndex 2? Buffer: ?*anyopaque, BufferSize: u32, DataSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, ReadProcessorSystemData: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugDataSpaces2, Processor: u32, Index: u32, // TODO: what to do with BytesParamIndex 3? Buffer: ?*anyopaque, BufferSize: u32, DataSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugDataSpaces2, Processor: u32, Index: u32, // TODO: what to do with BytesParamIndex 3? Buffer: ?*anyopaque, BufferSize: u32, DataSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, VirtualToPhysical: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugDataSpaces2, Virtual: u64, Physical: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugDataSpaces2, Virtual: u64, Physical: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetVirtualTranslationPhysicalOffsets: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugDataSpaces2, Virtual: u64, Offsets: ?[*]u64, OffsetsSize: u32, Levels: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugDataSpaces2, Virtual: u64, Offsets: ?[*]u64, OffsetsSize: u32, Levels: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, ReadHandleData: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugDataSpaces2, Handle: u64, DataType: u32, // TODO: what to do with BytesParamIndex 3? Buffer: ?*anyopaque, BufferSize: u32, DataSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugDataSpaces2, Handle: u64, DataType: u32, // TODO: what to do with BytesParamIndex 3? Buffer: ?*anyopaque, BufferSize: u32, DataSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, FillVirtual: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugDataSpaces2, Start: u64, Size: u32, // TODO: what to do with BytesParamIndex 3? Pattern: ?*anyopaque, PatternSize: u32, Filled: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugDataSpaces2, Start: u64, Size: u32, // TODO: what to do with BytesParamIndex 3? Pattern: ?*anyopaque, PatternSize: u32, Filled: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, FillPhysical: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugDataSpaces2, Start: u64, Size: u32, // TODO: what to do with BytesParamIndex 3? Pattern: ?*anyopaque, PatternSize: u32, Filled: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugDataSpaces2, Start: u64, Size: u32, // TODO: what to do with BytesParamIndex 3? Pattern: ?*anyopaque, PatternSize: u32, Filled: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, QueryVirtual: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugDataSpaces2, Offset: u64, Info: ?*MEMORY_BASIC_INFORMATION64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugDataSpaces2, Offset: u64, Info: ?*MEMORY_BASIC_INFORMATION64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugDataSpaces2_ReadVirtual(self: *const T, Offset: u64, Buffer: ?*anyopaque, BufferSize: u32, BytesRead: ?*u32) HRESULT { return @as(*const IDebugDataSpaces2.VTable, @ptrCast(self.vtable)).ReadVirtual(@as(*const IDebugDataSpaces2, @ptrCast(self)), Offset, Buffer, BufferSize, BytesRead); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugDataSpaces2_WriteVirtual(self: *const T, Offset: u64, Buffer: ?*anyopaque, BufferSize: u32, BytesWritten: ?*u32) HRESULT { return @as(*const IDebugDataSpaces2.VTable, @ptrCast(self.vtable)).WriteVirtual(@as(*const IDebugDataSpaces2, @ptrCast(self)), Offset, Buffer, BufferSize, BytesWritten); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugDataSpaces2_SearchVirtual(self: *const T, Offset: u64, Length: u64, Pattern: ?*anyopaque, PatternSize: u32, PatternGranularity: u32, MatchOffset: ?*u64) HRESULT { return @as(*const IDebugDataSpaces2.VTable, @ptrCast(self.vtable)).SearchVirtual(@as(*const IDebugDataSpaces2, @ptrCast(self)), Offset, Length, Pattern, PatternSize, PatternGranularity, MatchOffset); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugDataSpaces2_ReadVirtualUncached(self: *const T, Offset: u64, Buffer: ?*anyopaque, BufferSize: u32, BytesRead: ?*u32) HRESULT { return @as(*const IDebugDataSpaces2.VTable, @ptrCast(self.vtable)).ReadVirtualUncached(@as(*const IDebugDataSpaces2, @ptrCast(self)), Offset, Buffer, BufferSize, BytesRead); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugDataSpaces2_WriteVirtualUncached(self: *const T, Offset: u64, Buffer: ?*anyopaque, BufferSize: u32, BytesWritten: ?*u32) HRESULT { return @as(*const IDebugDataSpaces2.VTable, @ptrCast(self.vtable)).WriteVirtualUncached(@as(*const IDebugDataSpaces2, @ptrCast(self)), Offset, Buffer, BufferSize, BytesWritten); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugDataSpaces2_ReadPointersVirtual(self: *const T, Count: u32, Offset: u64, Ptrs: [*]u64) HRESULT { return @as(*const IDebugDataSpaces2.VTable, @ptrCast(self.vtable)).ReadPointersVirtual(@as(*const IDebugDataSpaces2, @ptrCast(self)), Count, Offset, Ptrs); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugDataSpaces2_WritePointersVirtual(self: *const T, Count: u32, Offset: u64, Ptrs: [*]u64) HRESULT { return @as(*const IDebugDataSpaces2.VTable, @ptrCast(self.vtable)).WritePointersVirtual(@as(*const IDebugDataSpaces2, @ptrCast(self)), Count, Offset, Ptrs); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugDataSpaces2_ReadPhysical(self: *const T, Offset: u64, Buffer: ?*anyopaque, BufferSize: u32, BytesRead: ?*u32) HRESULT { return @as(*const IDebugDataSpaces2.VTable, @ptrCast(self.vtable)).ReadPhysical(@as(*const IDebugDataSpaces2, @ptrCast(self)), Offset, Buffer, BufferSize, BytesRead); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugDataSpaces2_WritePhysical(self: *const T, Offset: u64, Buffer: ?*anyopaque, BufferSize: u32, BytesWritten: ?*u32) HRESULT { return @as(*const IDebugDataSpaces2.VTable, @ptrCast(self.vtable)).WritePhysical(@as(*const IDebugDataSpaces2, @ptrCast(self)), Offset, Buffer, BufferSize, BytesWritten); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugDataSpaces2_ReadControl(self: *const T, Processor: u32, Offset: u64, Buffer: ?*anyopaque, BufferSize: u32, BytesRead: ?*u32) HRESULT { return @as(*const IDebugDataSpaces2.VTable, @ptrCast(self.vtable)).ReadControl(@as(*const IDebugDataSpaces2, @ptrCast(self)), Processor, Offset, Buffer, BufferSize, BytesRead); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugDataSpaces2_WriteControl(self: *const T, Processor: u32, Offset: u64, Buffer: ?*anyopaque, BufferSize: u32, BytesWritten: ?*u32) HRESULT { return @as(*const IDebugDataSpaces2.VTable, @ptrCast(self.vtable)).WriteControl(@as(*const IDebugDataSpaces2, @ptrCast(self)), Processor, Offset, Buffer, BufferSize, BytesWritten); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugDataSpaces2_ReadIo(self: *const T, InterfaceType: u32, BusNumber: u32, AddressSpace: u32, Offset: u64, Buffer: ?*anyopaque, BufferSize: u32, BytesRead: ?*u32) HRESULT { return @as(*const IDebugDataSpaces2.VTable, @ptrCast(self.vtable)).ReadIo(@as(*const IDebugDataSpaces2, @ptrCast(self)), InterfaceType, BusNumber, AddressSpace, Offset, Buffer, BufferSize, BytesRead); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugDataSpaces2_WriteIo(self: *const T, InterfaceType: u32, BusNumber: u32, AddressSpace: u32, Offset: u64, Buffer: ?*anyopaque, BufferSize: u32, BytesWritten: ?*u32) HRESULT { return @as(*const IDebugDataSpaces2.VTable, @ptrCast(self.vtable)).WriteIo(@as(*const IDebugDataSpaces2, @ptrCast(self)), InterfaceType, BusNumber, AddressSpace, Offset, Buffer, BufferSize, BytesWritten); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugDataSpaces2_ReadMsr(self: *const T, Msr: u32, Value: ?*u64) HRESULT { return @as(*const IDebugDataSpaces2.VTable, @ptrCast(self.vtable)).ReadMsr(@as(*const IDebugDataSpaces2, @ptrCast(self)), Msr, Value); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugDataSpaces2_WriteMsr(self: *const T, Msr: u32, Value: u64) HRESULT { return @as(*const IDebugDataSpaces2.VTable, @ptrCast(self.vtable)).WriteMsr(@as(*const IDebugDataSpaces2, @ptrCast(self)), Msr, Value); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugDataSpaces2_ReadBusData(self: *const T, BusDataType: u32, BusNumber: u32, SlotNumber: u32, Offset: u32, Buffer: ?*anyopaque, BufferSize: u32, BytesRead: ?*u32) HRESULT { return @as(*const IDebugDataSpaces2.VTable, @ptrCast(self.vtable)).ReadBusData(@as(*const IDebugDataSpaces2, @ptrCast(self)), BusDataType, BusNumber, SlotNumber, Offset, Buffer, BufferSize, BytesRead); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugDataSpaces2_WriteBusData(self: *const T, BusDataType: u32, BusNumber: u32, SlotNumber: u32, Offset: u32, Buffer: ?*anyopaque, BufferSize: u32, BytesWritten: ?*u32) HRESULT { return @as(*const IDebugDataSpaces2.VTable, @ptrCast(self.vtable)).WriteBusData(@as(*const IDebugDataSpaces2, @ptrCast(self)), BusDataType, BusNumber, SlotNumber, Offset, Buffer, BufferSize, BytesWritten); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugDataSpaces2_CheckLowMemory(self: *const T) HRESULT { return @as(*const IDebugDataSpaces2.VTable, @ptrCast(self.vtable)).CheckLowMemory(@as(*const IDebugDataSpaces2, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugDataSpaces2_ReadDebuggerData(self: *const T, Index: u32, Buffer: ?*anyopaque, BufferSize: u32, DataSize: ?*u32) HRESULT { return @as(*const IDebugDataSpaces2.VTable, @ptrCast(self.vtable)).ReadDebuggerData(@as(*const IDebugDataSpaces2, @ptrCast(self)), Index, Buffer, BufferSize, DataSize); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugDataSpaces2_ReadProcessorSystemData(self: *const T, Processor: u32, Index: u32, Buffer: ?*anyopaque, BufferSize: u32, DataSize: ?*u32) HRESULT { return @as(*const IDebugDataSpaces2.VTable, @ptrCast(self.vtable)).ReadProcessorSystemData(@as(*const IDebugDataSpaces2, @ptrCast(self)), Processor, Index, Buffer, BufferSize, DataSize); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugDataSpaces2_VirtualToPhysical(self: *const T, Virtual: u64, Physical: ?*u64) HRESULT { return @as(*const IDebugDataSpaces2.VTable, @ptrCast(self.vtable)).VirtualToPhysical(@as(*const IDebugDataSpaces2, @ptrCast(self)), Virtual, Physical); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugDataSpaces2_GetVirtualTranslationPhysicalOffsets(self: *const T, Virtual: u64, Offsets: ?[*]u64, OffsetsSize: u32, Levels: ?*u32) HRESULT { return @as(*const IDebugDataSpaces2.VTable, @ptrCast(self.vtable)).GetVirtualTranslationPhysicalOffsets(@as(*const IDebugDataSpaces2, @ptrCast(self)), Virtual, Offsets, OffsetsSize, Levels); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugDataSpaces2_ReadHandleData(self: *const T, Handle: u64, DataType: u32, Buffer: ?*anyopaque, BufferSize: u32, DataSize: ?*u32) HRESULT { return @as(*const IDebugDataSpaces2.VTable, @ptrCast(self.vtable)).ReadHandleData(@as(*const IDebugDataSpaces2, @ptrCast(self)), Handle, DataType, Buffer, BufferSize, DataSize); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugDataSpaces2_FillVirtual(self: *const T, Start: u64, Size: u32, Pattern: ?*anyopaque, PatternSize: u32, Filled: ?*u32) HRESULT { return @as(*const IDebugDataSpaces2.VTable, @ptrCast(self.vtable)).FillVirtual(@as(*const IDebugDataSpaces2, @ptrCast(self)), Start, Size, Pattern, PatternSize, Filled); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugDataSpaces2_FillPhysical(self: *const T, Start: u64, Size: u32, Pattern: ?*anyopaque, PatternSize: u32, Filled: ?*u32) HRESULT { return @as(*const IDebugDataSpaces2.VTable, @ptrCast(self.vtable)).FillPhysical(@as(*const IDebugDataSpaces2, @ptrCast(self)), Start, Size, Pattern, PatternSize, Filled); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugDataSpaces2_QueryVirtual(self: *const T, Offset: u64, Info: ?*MEMORY_BASIC_INFORMATION64) HRESULT { return @as(*const IDebugDataSpaces2.VTable, @ptrCast(self.vtable)).QueryVirtual(@as(*const IDebugDataSpaces2, @ptrCast(self)), Offset, Info); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IDebugDataSpaces3_Value = Guid.initString("23f79d6c-8aaf-4f7c-a607-9995f5407e63"); pub const IID_IDebugDataSpaces3 = &IID_IDebugDataSpaces3_Value; pub const IDebugDataSpaces3 = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, ReadVirtual: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugDataSpaces3, Offset: u64, // TODO: what to do with BytesParamIndex 2? Buffer: ?*anyopaque, BufferSize: u32, BytesRead: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugDataSpaces3, Offset: u64, // TODO: what to do with BytesParamIndex 2? Buffer: ?*anyopaque, BufferSize: u32, BytesRead: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, WriteVirtual: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugDataSpaces3, Offset: u64, // TODO: what to do with BytesParamIndex 2? Buffer: ?*anyopaque, BufferSize: u32, BytesWritten: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugDataSpaces3, Offset: u64, // TODO: what to do with BytesParamIndex 2? Buffer: ?*anyopaque, BufferSize: u32, BytesWritten: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SearchVirtual: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugDataSpaces3, Offset: u64, Length: u64, // TODO: what to do with BytesParamIndex 3? Pattern: ?*anyopaque, PatternSize: u32, PatternGranularity: u32, MatchOffset: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugDataSpaces3, Offset: u64, Length: u64, // TODO: what to do with BytesParamIndex 3? Pattern: ?*anyopaque, PatternSize: u32, PatternGranularity: u32, MatchOffset: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, ReadVirtualUncached: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugDataSpaces3, Offset: u64, // TODO: what to do with BytesParamIndex 2? Buffer: ?*anyopaque, BufferSize: u32, BytesRead: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugDataSpaces3, Offset: u64, // TODO: what to do with BytesParamIndex 2? Buffer: ?*anyopaque, BufferSize: u32, BytesRead: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, WriteVirtualUncached: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugDataSpaces3, Offset: u64, // TODO: what to do with BytesParamIndex 2? Buffer: ?*anyopaque, BufferSize: u32, BytesWritten: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugDataSpaces3, Offset: u64, // TODO: what to do with BytesParamIndex 2? Buffer: ?*anyopaque, BufferSize: u32, BytesWritten: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, ReadPointersVirtual: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugDataSpaces3, Count: u32, Offset: u64, Ptrs: [*]u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugDataSpaces3, Count: u32, Offset: u64, Ptrs: [*]u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, WritePointersVirtual: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugDataSpaces3, Count: u32, Offset: u64, Ptrs: [*]u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugDataSpaces3, Count: u32, Offset: u64, Ptrs: [*]u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, ReadPhysical: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugDataSpaces3, Offset: u64, // TODO: what to do with BytesParamIndex 2? Buffer: ?*anyopaque, BufferSize: u32, BytesRead: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugDataSpaces3, Offset: u64, // TODO: what to do with BytesParamIndex 2? Buffer: ?*anyopaque, BufferSize: u32, BytesRead: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, WritePhysical: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugDataSpaces3, Offset: u64, // TODO: what to do with BytesParamIndex 2? Buffer: ?*anyopaque, BufferSize: u32, BytesWritten: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugDataSpaces3, Offset: u64, // TODO: what to do with BytesParamIndex 2? Buffer: ?*anyopaque, BufferSize: u32, BytesWritten: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, ReadControl: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugDataSpaces3, Processor: u32, Offset: u64, // TODO: what to do with BytesParamIndex 3? Buffer: ?*anyopaque, BufferSize: u32, BytesRead: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugDataSpaces3, Processor: u32, Offset: u64, // TODO: what to do with BytesParamIndex 3? Buffer: ?*anyopaque, BufferSize: u32, BytesRead: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, WriteControl: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugDataSpaces3, Processor: u32, Offset: u64, // TODO: what to do with BytesParamIndex 3? Buffer: ?*anyopaque, BufferSize: u32, BytesWritten: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugDataSpaces3, Processor: u32, Offset: u64, // TODO: what to do with BytesParamIndex 3? Buffer: ?*anyopaque, BufferSize: u32, BytesWritten: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, ReadIo: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugDataSpaces3, InterfaceType: u32, BusNumber: u32, AddressSpace: u32, Offset: u64, // TODO: what to do with BytesParamIndex 5? Buffer: ?*anyopaque, BufferSize: u32, BytesRead: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugDataSpaces3, InterfaceType: u32, BusNumber: u32, AddressSpace: u32, Offset: u64, // TODO: what to do with BytesParamIndex 5? Buffer: ?*anyopaque, BufferSize: u32, BytesRead: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, WriteIo: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugDataSpaces3, InterfaceType: u32, BusNumber: u32, AddressSpace: u32, Offset: u64, // TODO: what to do with BytesParamIndex 5? Buffer: ?*anyopaque, BufferSize: u32, BytesWritten: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugDataSpaces3, InterfaceType: u32, BusNumber: u32, AddressSpace: u32, Offset: u64, // TODO: what to do with BytesParamIndex 5? Buffer: ?*anyopaque, BufferSize: u32, BytesWritten: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, ReadMsr: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugDataSpaces3, Msr: u32, Value: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugDataSpaces3, Msr: u32, Value: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, WriteMsr: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugDataSpaces3, Msr: u32, Value: u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugDataSpaces3, Msr: u32, Value: u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, ReadBusData: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugDataSpaces3, BusDataType: u32, BusNumber: u32, SlotNumber: u32, Offset: u32, // TODO: what to do with BytesParamIndex 5? Buffer: ?*anyopaque, BufferSize: u32, BytesRead: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugDataSpaces3, BusDataType: u32, BusNumber: u32, SlotNumber: u32, Offset: u32, // TODO: what to do with BytesParamIndex 5? Buffer: ?*anyopaque, BufferSize: u32, BytesRead: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, WriteBusData: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugDataSpaces3, BusDataType: u32, BusNumber: u32, SlotNumber: u32, Offset: u32, // TODO: what to do with BytesParamIndex 5? Buffer: ?*anyopaque, BufferSize: u32, BytesWritten: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugDataSpaces3, BusDataType: u32, BusNumber: u32, SlotNumber: u32, Offset: u32, // TODO: what to do with BytesParamIndex 5? Buffer: ?*anyopaque, BufferSize: u32, BytesWritten: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, CheckLowMemory: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugDataSpaces3, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugDataSpaces3, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, ReadDebuggerData: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugDataSpaces3, Index: u32, // TODO: what to do with BytesParamIndex 2? Buffer: ?*anyopaque, BufferSize: u32, DataSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugDataSpaces3, Index: u32, // TODO: what to do with BytesParamIndex 2? Buffer: ?*anyopaque, BufferSize: u32, DataSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, ReadProcessorSystemData: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugDataSpaces3, Processor: u32, Index: u32, // TODO: what to do with BytesParamIndex 3? Buffer: ?*anyopaque, BufferSize: u32, DataSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugDataSpaces3, Processor: u32, Index: u32, // TODO: what to do with BytesParamIndex 3? Buffer: ?*anyopaque, BufferSize: u32, DataSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, VirtualToPhysical: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugDataSpaces3, Virtual: u64, Physical: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugDataSpaces3, Virtual: u64, Physical: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetVirtualTranslationPhysicalOffsets: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugDataSpaces3, Virtual: u64, Offsets: ?[*]u64, OffsetsSize: u32, Levels: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugDataSpaces3, Virtual: u64, Offsets: ?[*]u64, OffsetsSize: u32, Levels: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, ReadHandleData: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugDataSpaces3, Handle: u64, DataType: u32, // TODO: what to do with BytesParamIndex 3? Buffer: ?*anyopaque, BufferSize: u32, DataSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugDataSpaces3, Handle: u64, DataType: u32, // TODO: what to do with BytesParamIndex 3? Buffer: ?*anyopaque, BufferSize: u32, DataSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, FillVirtual: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugDataSpaces3, Start: u64, Size: u32, // TODO: what to do with BytesParamIndex 3? Pattern: ?*anyopaque, PatternSize: u32, Filled: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugDataSpaces3, Start: u64, Size: u32, // TODO: what to do with BytesParamIndex 3? Pattern: ?*anyopaque, PatternSize: u32, Filled: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, FillPhysical: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugDataSpaces3, Start: u64, Size: u32, // TODO: what to do with BytesParamIndex 3? Pattern: ?*anyopaque, PatternSize: u32, Filled: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugDataSpaces3, Start: u64, Size: u32, // TODO: what to do with BytesParamIndex 3? Pattern: ?*anyopaque, PatternSize: u32, Filled: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, QueryVirtual: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugDataSpaces3, Offset: u64, Info: ?*MEMORY_BASIC_INFORMATION64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugDataSpaces3, Offset: u64, Info: ?*MEMORY_BASIC_INFORMATION64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, ReadImageNtHeaders: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugDataSpaces3, ImageBase: u64, Headers: ?*IMAGE_NT_HEADERS64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugDataSpaces3, ImageBase: u64, Headers: ?*IMAGE_NT_HEADERS64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, ReadTagged: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugDataSpaces3, Tag: ?*Guid, Offset: u32, // TODO: what to do with BytesParamIndex 3? Buffer: ?*anyopaque, BufferSize: u32, TotalSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugDataSpaces3, Tag: ?*Guid, Offset: u32, // TODO: what to do with BytesParamIndex 3? Buffer: ?*anyopaque, BufferSize: u32, TotalSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, StartEnumTagged: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugDataSpaces3, Handle: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugDataSpaces3, Handle: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetNextTagged: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugDataSpaces3, Handle: u64, Tag: ?*Guid, Size: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugDataSpaces3, Handle: u64, Tag: ?*Guid, Size: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, EndEnumTagged: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugDataSpaces3, Handle: u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugDataSpaces3, Handle: u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugDataSpaces3_ReadVirtual(self: *const T, Offset: u64, Buffer: ?*anyopaque, BufferSize: u32, BytesRead: ?*u32) HRESULT { return @as(*const IDebugDataSpaces3.VTable, @ptrCast(self.vtable)).ReadVirtual(@as(*const IDebugDataSpaces3, @ptrCast(self)), Offset, Buffer, BufferSize, BytesRead); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugDataSpaces3_WriteVirtual(self: *const T, Offset: u64, Buffer: ?*anyopaque, BufferSize: u32, BytesWritten: ?*u32) HRESULT { return @as(*const IDebugDataSpaces3.VTable, @ptrCast(self.vtable)).WriteVirtual(@as(*const IDebugDataSpaces3, @ptrCast(self)), Offset, Buffer, BufferSize, BytesWritten); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugDataSpaces3_SearchVirtual(self: *const T, Offset: u64, Length: u64, Pattern: ?*anyopaque, PatternSize: u32, PatternGranularity: u32, MatchOffset: ?*u64) HRESULT { return @as(*const IDebugDataSpaces3.VTable, @ptrCast(self.vtable)).SearchVirtual(@as(*const IDebugDataSpaces3, @ptrCast(self)), Offset, Length, Pattern, PatternSize, PatternGranularity, MatchOffset); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugDataSpaces3_ReadVirtualUncached(self: *const T, Offset: u64, Buffer: ?*anyopaque, BufferSize: u32, BytesRead: ?*u32) HRESULT { return @as(*const IDebugDataSpaces3.VTable, @ptrCast(self.vtable)).ReadVirtualUncached(@as(*const IDebugDataSpaces3, @ptrCast(self)), Offset, Buffer, BufferSize, BytesRead); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugDataSpaces3_WriteVirtualUncached(self: *const T, Offset: u64, Buffer: ?*anyopaque, BufferSize: u32, BytesWritten: ?*u32) HRESULT { return @as(*const IDebugDataSpaces3.VTable, @ptrCast(self.vtable)).WriteVirtualUncached(@as(*const IDebugDataSpaces3, @ptrCast(self)), Offset, Buffer, BufferSize, BytesWritten); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugDataSpaces3_ReadPointersVirtual(self: *const T, Count: u32, Offset: u64, Ptrs: [*]u64) HRESULT { return @as(*const IDebugDataSpaces3.VTable, @ptrCast(self.vtable)).ReadPointersVirtual(@as(*const IDebugDataSpaces3, @ptrCast(self)), Count, Offset, Ptrs); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugDataSpaces3_WritePointersVirtual(self: *const T, Count: u32, Offset: u64, Ptrs: [*]u64) HRESULT { return @as(*const IDebugDataSpaces3.VTable, @ptrCast(self.vtable)).WritePointersVirtual(@as(*const IDebugDataSpaces3, @ptrCast(self)), Count, Offset, Ptrs); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugDataSpaces3_ReadPhysical(self: *const T, Offset: u64, Buffer: ?*anyopaque, BufferSize: u32, BytesRead: ?*u32) HRESULT { return @as(*const IDebugDataSpaces3.VTable, @ptrCast(self.vtable)).ReadPhysical(@as(*const IDebugDataSpaces3, @ptrCast(self)), Offset, Buffer, BufferSize, BytesRead); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugDataSpaces3_WritePhysical(self: *const T, Offset: u64, Buffer: ?*anyopaque, BufferSize: u32, BytesWritten: ?*u32) HRESULT { return @as(*const IDebugDataSpaces3.VTable, @ptrCast(self.vtable)).WritePhysical(@as(*const IDebugDataSpaces3, @ptrCast(self)), Offset, Buffer, BufferSize, BytesWritten); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugDataSpaces3_ReadControl(self: *const T, Processor: u32, Offset: u64, Buffer: ?*anyopaque, BufferSize: u32, BytesRead: ?*u32) HRESULT { return @as(*const IDebugDataSpaces3.VTable, @ptrCast(self.vtable)).ReadControl(@as(*const IDebugDataSpaces3, @ptrCast(self)), Processor, Offset, Buffer, BufferSize, BytesRead); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugDataSpaces3_WriteControl(self: *const T, Processor: u32, Offset: u64, Buffer: ?*anyopaque, BufferSize: u32, BytesWritten: ?*u32) HRESULT { return @as(*const IDebugDataSpaces3.VTable, @ptrCast(self.vtable)).WriteControl(@as(*const IDebugDataSpaces3, @ptrCast(self)), Processor, Offset, Buffer, BufferSize, BytesWritten); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugDataSpaces3_ReadIo(self: *const T, InterfaceType: u32, BusNumber: u32, AddressSpace: u32, Offset: u64, Buffer: ?*anyopaque, BufferSize: u32, BytesRead: ?*u32) HRESULT { return @as(*const IDebugDataSpaces3.VTable, @ptrCast(self.vtable)).ReadIo(@as(*const IDebugDataSpaces3, @ptrCast(self)), InterfaceType, BusNumber, AddressSpace, Offset, Buffer, BufferSize, BytesRead); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugDataSpaces3_WriteIo(self: *const T, InterfaceType: u32, BusNumber: u32, AddressSpace: u32, Offset: u64, Buffer: ?*anyopaque, BufferSize: u32, BytesWritten: ?*u32) HRESULT { return @as(*const IDebugDataSpaces3.VTable, @ptrCast(self.vtable)).WriteIo(@as(*const IDebugDataSpaces3, @ptrCast(self)), InterfaceType, BusNumber, AddressSpace, Offset, Buffer, BufferSize, BytesWritten); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugDataSpaces3_ReadMsr(self: *const T, Msr: u32, Value: ?*u64) HRESULT { return @as(*const IDebugDataSpaces3.VTable, @ptrCast(self.vtable)).ReadMsr(@as(*const IDebugDataSpaces3, @ptrCast(self)), Msr, Value); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugDataSpaces3_WriteMsr(self: *const T, Msr: u32, Value: u64) HRESULT { return @as(*const IDebugDataSpaces3.VTable, @ptrCast(self.vtable)).WriteMsr(@as(*const IDebugDataSpaces3, @ptrCast(self)), Msr, Value); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugDataSpaces3_ReadBusData(self: *const T, BusDataType: u32, BusNumber: u32, SlotNumber: u32, Offset: u32, Buffer: ?*anyopaque, BufferSize: u32, BytesRead: ?*u32) HRESULT { return @as(*const IDebugDataSpaces3.VTable, @ptrCast(self.vtable)).ReadBusData(@as(*const IDebugDataSpaces3, @ptrCast(self)), BusDataType, BusNumber, SlotNumber, Offset, Buffer, BufferSize, BytesRead); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugDataSpaces3_WriteBusData(self: *const T, BusDataType: u32, BusNumber: u32, SlotNumber: u32, Offset: u32, Buffer: ?*anyopaque, BufferSize: u32, BytesWritten: ?*u32) HRESULT { return @as(*const IDebugDataSpaces3.VTable, @ptrCast(self.vtable)).WriteBusData(@as(*const IDebugDataSpaces3, @ptrCast(self)), BusDataType, BusNumber, SlotNumber, Offset, Buffer, BufferSize, BytesWritten); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugDataSpaces3_CheckLowMemory(self: *const T) HRESULT { return @as(*const IDebugDataSpaces3.VTable, @ptrCast(self.vtable)).CheckLowMemory(@as(*const IDebugDataSpaces3, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugDataSpaces3_ReadDebuggerData(self: *const T, Index: u32, Buffer: ?*anyopaque, BufferSize: u32, DataSize: ?*u32) HRESULT { return @as(*const IDebugDataSpaces3.VTable, @ptrCast(self.vtable)).ReadDebuggerData(@as(*const IDebugDataSpaces3, @ptrCast(self)), Index, Buffer, BufferSize, DataSize); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugDataSpaces3_ReadProcessorSystemData(self: *const T, Processor: u32, Index: u32, Buffer: ?*anyopaque, BufferSize: u32, DataSize: ?*u32) HRESULT { return @as(*const IDebugDataSpaces3.VTable, @ptrCast(self.vtable)).ReadProcessorSystemData(@as(*const IDebugDataSpaces3, @ptrCast(self)), Processor, Index, Buffer, BufferSize, DataSize); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugDataSpaces3_VirtualToPhysical(self: *const T, Virtual: u64, Physical: ?*u64) HRESULT { return @as(*const IDebugDataSpaces3.VTable, @ptrCast(self.vtable)).VirtualToPhysical(@as(*const IDebugDataSpaces3, @ptrCast(self)), Virtual, Physical); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugDataSpaces3_GetVirtualTranslationPhysicalOffsets(self: *const T, Virtual: u64, Offsets: ?[*]u64, OffsetsSize: u32, Levels: ?*u32) HRESULT { return @as(*const IDebugDataSpaces3.VTable, @ptrCast(self.vtable)).GetVirtualTranslationPhysicalOffsets(@as(*const IDebugDataSpaces3, @ptrCast(self)), Virtual, Offsets, OffsetsSize, Levels); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugDataSpaces3_ReadHandleData(self: *const T, Handle: u64, DataType: u32, Buffer: ?*anyopaque, BufferSize: u32, DataSize: ?*u32) HRESULT { return @as(*const IDebugDataSpaces3.VTable, @ptrCast(self.vtable)).ReadHandleData(@as(*const IDebugDataSpaces3, @ptrCast(self)), Handle, DataType, Buffer, BufferSize, DataSize); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugDataSpaces3_FillVirtual(self: *const T, Start: u64, Size: u32, Pattern: ?*anyopaque, PatternSize: u32, Filled: ?*u32) HRESULT { return @as(*const IDebugDataSpaces3.VTable, @ptrCast(self.vtable)).FillVirtual(@as(*const IDebugDataSpaces3, @ptrCast(self)), Start, Size, Pattern, PatternSize, Filled); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugDataSpaces3_FillPhysical(self: *const T, Start: u64, Size: u32, Pattern: ?*anyopaque, PatternSize: u32, Filled: ?*u32) HRESULT { return @as(*const IDebugDataSpaces3.VTable, @ptrCast(self.vtable)).FillPhysical(@as(*const IDebugDataSpaces3, @ptrCast(self)), Start, Size, Pattern, PatternSize, Filled); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugDataSpaces3_QueryVirtual(self: *const T, Offset: u64, Info: ?*MEMORY_BASIC_INFORMATION64) HRESULT { return @as(*const IDebugDataSpaces3.VTable, @ptrCast(self.vtable)).QueryVirtual(@as(*const IDebugDataSpaces3, @ptrCast(self)), Offset, Info); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugDataSpaces3_ReadImageNtHeaders(self: *const T, ImageBase: u64, Headers: ?*IMAGE_NT_HEADERS64) HRESULT { return @as(*const IDebugDataSpaces3.VTable, @ptrCast(self.vtable)).ReadImageNtHeaders(@as(*const IDebugDataSpaces3, @ptrCast(self)), ImageBase, Headers); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugDataSpaces3_ReadTagged(self: *const T, Tag: ?*Guid, Offset: u32, Buffer: ?*anyopaque, BufferSize: u32, TotalSize: ?*u32) HRESULT { return @as(*const IDebugDataSpaces3.VTable, @ptrCast(self.vtable)).ReadTagged(@as(*const IDebugDataSpaces3, @ptrCast(self)), Tag, Offset, Buffer, BufferSize, TotalSize); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugDataSpaces3_StartEnumTagged(self: *const T, Handle: ?*u64) HRESULT { return @as(*const IDebugDataSpaces3.VTable, @ptrCast(self.vtable)).StartEnumTagged(@as(*const IDebugDataSpaces3, @ptrCast(self)), Handle); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugDataSpaces3_GetNextTagged(self: *const T, Handle: u64, Tag: ?*Guid, Size: ?*u32) HRESULT { return @as(*const IDebugDataSpaces3.VTable, @ptrCast(self.vtable)).GetNextTagged(@as(*const IDebugDataSpaces3, @ptrCast(self)), Handle, Tag, Size); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugDataSpaces3_EndEnumTagged(self: *const T, Handle: u64) HRESULT { return @as(*const IDebugDataSpaces3.VTable, @ptrCast(self.vtable)).EndEnumTagged(@as(*const IDebugDataSpaces3, @ptrCast(self)), Handle); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IDebugDataSpaces4_Value = Guid.initString("d98ada1f-29e9-4ef5-a6c0-e53349883212"); pub const IID_IDebugDataSpaces4 = &IID_IDebugDataSpaces4_Value; pub const IDebugDataSpaces4 = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, ReadVirtual: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugDataSpaces4, Offset: u64, // TODO: what to do with BytesParamIndex 2? Buffer: ?*anyopaque, BufferSize: u32, BytesRead: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugDataSpaces4, Offset: u64, // TODO: what to do with BytesParamIndex 2? Buffer: ?*anyopaque, BufferSize: u32, BytesRead: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, WriteVirtual: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugDataSpaces4, Offset: u64, // TODO: what to do with BytesParamIndex 2? Buffer: ?*anyopaque, BufferSize: u32, BytesWritten: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugDataSpaces4, Offset: u64, // TODO: what to do with BytesParamIndex 2? Buffer: ?*anyopaque, BufferSize: u32, BytesWritten: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SearchVirtual: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugDataSpaces4, Offset: u64, Length: u64, // TODO: what to do with BytesParamIndex 3? Pattern: ?*anyopaque, PatternSize: u32, PatternGranularity: u32, MatchOffset: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugDataSpaces4, Offset: u64, Length: u64, // TODO: what to do with BytesParamIndex 3? Pattern: ?*anyopaque, PatternSize: u32, PatternGranularity: u32, MatchOffset: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, ReadVirtualUncached: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugDataSpaces4, Offset: u64, // TODO: what to do with BytesParamIndex 2? Buffer: ?*anyopaque, BufferSize: u32, BytesRead: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugDataSpaces4, Offset: u64, // TODO: what to do with BytesParamIndex 2? Buffer: ?*anyopaque, BufferSize: u32, BytesRead: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, WriteVirtualUncached: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugDataSpaces4, Offset: u64, // TODO: what to do with BytesParamIndex 2? Buffer: ?*anyopaque, BufferSize: u32, BytesWritten: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugDataSpaces4, Offset: u64, // TODO: what to do with BytesParamIndex 2? Buffer: ?*anyopaque, BufferSize: u32, BytesWritten: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, ReadPointersVirtual: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugDataSpaces4, Count: u32, Offset: u64, Ptrs: [*]u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugDataSpaces4, Count: u32, Offset: u64, Ptrs: [*]u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, WritePointersVirtual: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugDataSpaces4, Count: u32, Offset: u64, Ptrs: [*]u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugDataSpaces4, Count: u32, Offset: u64, Ptrs: [*]u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, ReadPhysical: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugDataSpaces4, Offset: u64, // TODO: what to do with BytesParamIndex 2? Buffer: ?*anyopaque, BufferSize: u32, BytesRead: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugDataSpaces4, Offset: u64, // TODO: what to do with BytesParamIndex 2? Buffer: ?*anyopaque, BufferSize: u32, BytesRead: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, WritePhysical: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugDataSpaces4, Offset: u64, // TODO: what to do with BytesParamIndex 2? Buffer: ?*anyopaque, BufferSize: u32, BytesWritten: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugDataSpaces4, Offset: u64, // TODO: what to do with BytesParamIndex 2? Buffer: ?*anyopaque, BufferSize: u32, BytesWritten: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, ReadControl: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugDataSpaces4, Processor: u32, Offset: u64, // TODO: what to do with BytesParamIndex 3? Buffer: ?*anyopaque, BufferSize: u32, BytesRead: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugDataSpaces4, Processor: u32, Offset: u64, // TODO: what to do with BytesParamIndex 3? Buffer: ?*anyopaque, BufferSize: u32, BytesRead: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, WriteControl: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugDataSpaces4, Processor: u32, Offset: u64, // TODO: what to do with BytesParamIndex 3? Buffer: ?*anyopaque, BufferSize: u32, BytesWritten: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugDataSpaces4, Processor: u32, Offset: u64, // TODO: what to do with BytesParamIndex 3? Buffer: ?*anyopaque, BufferSize: u32, BytesWritten: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, ReadIo: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugDataSpaces4, InterfaceType: u32, BusNumber: u32, AddressSpace: u32, Offset: u64, // TODO: what to do with BytesParamIndex 5? Buffer: ?*anyopaque, BufferSize: u32, BytesRead: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugDataSpaces4, InterfaceType: u32, BusNumber: u32, AddressSpace: u32, Offset: u64, // TODO: what to do with BytesParamIndex 5? Buffer: ?*anyopaque, BufferSize: u32, BytesRead: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, WriteIo: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugDataSpaces4, InterfaceType: u32, BusNumber: u32, AddressSpace: u32, Offset: u64, // TODO: what to do with BytesParamIndex 5? Buffer: ?*anyopaque, BufferSize: u32, BytesWritten: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugDataSpaces4, InterfaceType: u32, BusNumber: u32, AddressSpace: u32, Offset: u64, // TODO: what to do with BytesParamIndex 5? Buffer: ?*anyopaque, BufferSize: u32, BytesWritten: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, ReadMsr: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugDataSpaces4, Msr: u32, Value: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugDataSpaces4, Msr: u32, Value: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, WriteMsr: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugDataSpaces4, Msr: u32, Value: u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugDataSpaces4, Msr: u32, Value: u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, ReadBusData: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugDataSpaces4, BusDataType: u32, BusNumber: u32, SlotNumber: u32, Offset: u32, // TODO: what to do with BytesParamIndex 5? Buffer: ?*anyopaque, BufferSize: u32, BytesRead: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugDataSpaces4, BusDataType: u32, BusNumber: u32, SlotNumber: u32, Offset: u32, // TODO: what to do with BytesParamIndex 5? Buffer: ?*anyopaque, BufferSize: u32, BytesRead: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, WriteBusData: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugDataSpaces4, BusDataType: u32, BusNumber: u32, SlotNumber: u32, Offset: u32, // TODO: what to do with BytesParamIndex 5? Buffer: ?*anyopaque, BufferSize: u32, BytesWritten: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugDataSpaces4, BusDataType: u32, BusNumber: u32, SlotNumber: u32, Offset: u32, // TODO: what to do with BytesParamIndex 5? Buffer: ?*anyopaque, BufferSize: u32, BytesWritten: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, CheckLowMemory: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugDataSpaces4, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugDataSpaces4, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, ReadDebuggerData: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugDataSpaces4, Index: u32, // TODO: what to do with BytesParamIndex 2? Buffer: ?*anyopaque, BufferSize: u32, DataSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugDataSpaces4, Index: u32, // TODO: what to do with BytesParamIndex 2? Buffer: ?*anyopaque, BufferSize: u32, DataSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, ReadProcessorSystemData: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugDataSpaces4, Processor: u32, Index: u32, // TODO: what to do with BytesParamIndex 3? Buffer: ?*anyopaque, BufferSize: u32, DataSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugDataSpaces4, Processor: u32, Index: u32, // TODO: what to do with BytesParamIndex 3? Buffer: ?*anyopaque, BufferSize: u32, DataSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, VirtualToPhysical: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugDataSpaces4, Virtual: u64, Physical: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugDataSpaces4, Virtual: u64, Physical: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetVirtualTranslationPhysicalOffsets: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugDataSpaces4, Virtual: u64, Offsets: ?[*]u64, OffsetsSize: u32, Levels: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugDataSpaces4, Virtual: u64, Offsets: ?[*]u64, OffsetsSize: u32, Levels: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, ReadHandleData: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugDataSpaces4, Handle: u64, DataType: u32, // TODO: what to do with BytesParamIndex 3? Buffer: ?*anyopaque, BufferSize: u32, DataSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugDataSpaces4, Handle: u64, DataType: u32, // TODO: what to do with BytesParamIndex 3? Buffer: ?*anyopaque, BufferSize: u32, DataSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, FillVirtual: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugDataSpaces4, Start: u64, Size: u32, // TODO: what to do with BytesParamIndex 3? Pattern: ?*anyopaque, PatternSize: u32, Filled: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugDataSpaces4, Start: u64, Size: u32, // TODO: what to do with BytesParamIndex 3? Pattern: ?*anyopaque, PatternSize: u32, Filled: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, FillPhysical: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugDataSpaces4, Start: u64, Size: u32, // TODO: what to do with BytesParamIndex 3? Pattern: ?*anyopaque, PatternSize: u32, Filled: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugDataSpaces4, Start: u64, Size: u32, // TODO: what to do with BytesParamIndex 3? Pattern: ?*anyopaque, PatternSize: u32, Filled: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, QueryVirtual: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugDataSpaces4, Offset: u64, Info: ?*MEMORY_BASIC_INFORMATION64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugDataSpaces4, Offset: u64, Info: ?*MEMORY_BASIC_INFORMATION64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, ReadImageNtHeaders: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugDataSpaces4, ImageBase: u64, Headers: ?*IMAGE_NT_HEADERS64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugDataSpaces4, ImageBase: u64, Headers: ?*IMAGE_NT_HEADERS64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, ReadTagged: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugDataSpaces4, Tag: ?*Guid, Offset: u32, // TODO: what to do with BytesParamIndex 3? Buffer: ?*anyopaque, BufferSize: u32, TotalSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugDataSpaces4, Tag: ?*Guid, Offset: u32, // TODO: what to do with BytesParamIndex 3? Buffer: ?*anyopaque, BufferSize: u32, TotalSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, StartEnumTagged: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugDataSpaces4, Handle: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugDataSpaces4, Handle: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetNextTagged: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugDataSpaces4, Handle: u64, Tag: ?*Guid, Size: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugDataSpaces4, Handle: u64, Tag: ?*Guid, Size: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, EndEnumTagged: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugDataSpaces4, Handle: u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugDataSpaces4, Handle: u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetOffsetInformation: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugDataSpaces4, Space: u32, Which: u32, Offset: u64, // TODO: what to do with BytesParamIndex 4? Buffer: ?*anyopaque, BufferSize: u32, InfoSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugDataSpaces4, Space: u32, Which: u32, Offset: u64, // TODO: what to do with BytesParamIndex 4? Buffer: ?*anyopaque, BufferSize: u32, InfoSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetNextDifferentlyValidOffsetVirtual: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugDataSpaces4, Offset: u64, NextOffset: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugDataSpaces4, Offset: u64, NextOffset: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetValidRegionVirtual: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugDataSpaces4, Base: u64, Size: u32, ValidBase: ?*u64, ValidSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugDataSpaces4, Base: u64, Size: u32, ValidBase: ?*u64, ValidSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SearchVirtual2: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugDataSpaces4, Offset: u64, Length: u64, Flags: u32, // TODO: what to do with BytesParamIndex 4? Pattern: ?*anyopaque, PatternSize: u32, PatternGranularity: u32, MatchOffset: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugDataSpaces4, Offset: u64, Length: u64, Flags: u32, // TODO: what to do with BytesParamIndex 4? Pattern: ?*anyopaque, PatternSize: u32, PatternGranularity: u32, MatchOffset: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, ReadMultiByteStringVirtual: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugDataSpaces4, Offset: u64, MaxBytes: u32, Buffer: ?[*:0]u8, BufferSize: u32, StringBytes: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugDataSpaces4, Offset: u64, MaxBytes: u32, Buffer: ?[*:0]u8, BufferSize: u32, StringBytes: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, ReadMultiByteStringVirtualWide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugDataSpaces4, Offset: u64, MaxBytes: u32, CodePage: u32, Buffer: ?[*:0]u16, BufferSize: u32, StringBytes: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugDataSpaces4, Offset: u64, MaxBytes: u32, CodePage: u32, Buffer: ?[*:0]u16, BufferSize: u32, StringBytes: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, ReadUnicodeStringVirtual: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugDataSpaces4, Offset: u64, MaxBytes: u32, CodePage: u32, Buffer: ?[*:0]u8, BufferSize: u32, StringBytes: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugDataSpaces4, Offset: u64, MaxBytes: u32, CodePage: u32, Buffer: ?[*:0]u8, BufferSize: u32, StringBytes: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, ReadUnicodeStringVirtualWide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugDataSpaces4, Offset: u64, MaxBytes: u32, Buffer: ?[*:0]u16, BufferSize: u32, StringBytes: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugDataSpaces4, Offset: u64, MaxBytes: u32, Buffer: ?[*:0]u16, BufferSize: u32, StringBytes: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, ReadPhysical2: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugDataSpaces4, Offset: u64, Flags: u32, // TODO: what to do with BytesParamIndex 3? Buffer: ?*anyopaque, BufferSize: u32, BytesRead: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugDataSpaces4, Offset: u64, Flags: u32, // TODO: what to do with BytesParamIndex 3? Buffer: ?*anyopaque, BufferSize: u32, BytesRead: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, WritePhysical2: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugDataSpaces4, Offset: u64, Flags: u32, // TODO: what to do with BytesParamIndex 3? Buffer: ?*anyopaque, BufferSize: u32, BytesWritten: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugDataSpaces4, Offset: u64, Flags: u32, // TODO: what to do with BytesParamIndex 3? Buffer: ?*anyopaque, BufferSize: u32, BytesWritten: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugDataSpaces4_ReadVirtual(self: *const T, Offset: u64, Buffer: ?*anyopaque, BufferSize: u32, BytesRead: ?*u32) HRESULT { return @as(*const IDebugDataSpaces4.VTable, @ptrCast(self.vtable)).ReadVirtual(@as(*const IDebugDataSpaces4, @ptrCast(self)), Offset, Buffer, BufferSize, BytesRead); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugDataSpaces4_WriteVirtual(self: *const T, Offset: u64, Buffer: ?*anyopaque, BufferSize: u32, BytesWritten: ?*u32) HRESULT { return @as(*const IDebugDataSpaces4.VTable, @ptrCast(self.vtable)).WriteVirtual(@as(*const IDebugDataSpaces4, @ptrCast(self)), Offset, Buffer, BufferSize, BytesWritten); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugDataSpaces4_SearchVirtual(self: *const T, Offset: u64, Length: u64, Pattern: ?*anyopaque, PatternSize: u32, PatternGranularity: u32, MatchOffset: ?*u64) HRESULT { return @as(*const IDebugDataSpaces4.VTable, @ptrCast(self.vtable)).SearchVirtual(@as(*const IDebugDataSpaces4, @ptrCast(self)), Offset, Length, Pattern, PatternSize, PatternGranularity, MatchOffset); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugDataSpaces4_ReadVirtualUncached(self: *const T, Offset: u64, Buffer: ?*anyopaque, BufferSize: u32, BytesRead: ?*u32) HRESULT { return @as(*const IDebugDataSpaces4.VTable, @ptrCast(self.vtable)).ReadVirtualUncached(@as(*const IDebugDataSpaces4, @ptrCast(self)), Offset, Buffer, BufferSize, BytesRead); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugDataSpaces4_WriteVirtualUncached(self: *const T, Offset: u64, Buffer: ?*anyopaque, BufferSize: u32, BytesWritten: ?*u32) HRESULT { return @as(*const IDebugDataSpaces4.VTable, @ptrCast(self.vtable)).WriteVirtualUncached(@as(*const IDebugDataSpaces4, @ptrCast(self)), Offset, Buffer, BufferSize, BytesWritten); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugDataSpaces4_ReadPointersVirtual(self: *const T, Count: u32, Offset: u64, Ptrs: [*]u64) HRESULT { return @as(*const IDebugDataSpaces4.VTable, @ptrCast(self.vtable)).ReadPointersVirtual(@as(*const IDebugDataSpaces4, @ptrCast(self)), Count, Offset, Ptrs); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugDataSpaces4_WritePointersVirtual(self: *const T, Count: u32, Offset: u64, Ptrs: [*]u64) HRESULT { return @as(*const IDebugDataSpaces4.VTable, @ptrCast(self.vtable)).WritePointersVirtual(@as(*const IDebugDataSpaces4, @ptrCast(self)), Count, Offset, Ptrs); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugDataSpaces4_ReadPhysical(self: *const T, Offset: u64, Buffer: ?*anyopaque, BufferSize: u32, BytesRead: ?*u32) HRESULT { return @as(*const IDebugDataSpaces4.VTable, @ptrCast(self.vtable)).ReadPhysical(@as(*const IDebugDataSpaces4, @ptrCast(self)), Offset, Buffer, BufferSize, BytesRead); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugDataSpaces4_WritePhysical(self: *const T, Offset: u64, Buffer: ?*anyopaque, BufferSize: u32, BytesWritten: ?*u32) HRESULT { return @as(*const IDebugDataSpaces4.VTable, @ptrCast(self.vtable)).WritePhysical(@as(*const IDebugDataSpaces4, @ptrCast(self)), Offset, Buffer, BufferSize, BytesWritten); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugDataSpaces4_ReadControl(self: *const T, Processor: u32, Offset: u64, Buffer: ?*anyopaque, BufferSize: u32, BytesRead: ?*u32) HRESULT { return @as(*const IDebugDataSpaces4.VTable, @ptrCast(self.vtable)).ReadControl(@as(*const IDebugDataSpaces4, @ptrCast(self)), Processor, Offset, Buffer, BufferSize, BytesRead); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugDataSpaces4_WriteControl(self: *const T, Processor: u32, Offset: u64, Buffer: ?*anyopaque, BufferSize: u32, BytesWritten: ?*u32) HRESULT { return @as(*const IDebugDataSpaces4.VTable, @ptrCast(self.vtable)).WriteControl(@as(*const IDebugDataSpaces4, @ptrCast(self)), Processor, Offset, Buffer, BufferSize, BytesWritten); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugDataSpaces4_ReadIo(self: *const T, InterfaceType: u32, BusNumber: u32, AddressSpace: u32, Offset: u64, Buffer: ?*anyopaque, BufferSize: u32, BytesRead: ?*u32) HRESULT { return @as(*const IDebugDataSpaces4.VTable, @ptrCast(self.vtable)).ReadIo(@as(*const IDebugDataSpaces4, @ptrCast(self)), InterfaceType, BusNumber, AddressSpace, Offset, Buffer, BufferSize, BytesRead); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugDataSpaces4_WriteIo(self: *const T, InterfaceType: u32, BusNumber: u32, AddressSpace: u32, Offset: u64, Buffer: ?*anyopaque, BufferSize: u32, BytesWritten: ?*u32) HRESULT { return @as(*const IDebugDataSpaces4.VTable, @ptrCast(self.vtable)).WriteIo(@as(*const IDebugDataSpaces4, @ptrCast(self)), InterfaceType, BusNumber, AddressSpace, Offset, Buffer, BufferSize, BytesWritten); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugDataSpaces4_ReadMsr(self: *const T, Msr: u32, Value: ?*u64) HRESULT { return @as(*const IDebugDataSpaces4.VTable, @ptrCast(self.vtable)).ReadMsr(@as(*const IDebugDataSpaces4, @ptrCast(self)), Msr, Value); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugDataSpaces4_WriteMsr(self: *const T, Msr: u32, Value: u64) HRESULT { return @as(*const IDebugDataSpaces4.VTable, @ptrCast(self.vtable)).WriteMsr(@as(*const IDebugDataSpaces4, @ptrCast(self)), Msr, Value); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugDataSpaces4_ReadBusData(self: *const T, BusDataType: u32, BusNumber: u32, SlotNumber: u32, Offset: u32, Buffer: ?*anyopaque, BufferSize: u32, BytesRead: ?*u32) HRESULT { return @as(*const IDebugDataSpaces4.VTable, @ptrCast(self.vtable)).ReadBusData(@as(*const IDebugDataSpaces4, @ptrCast(self)), BusDataType, BusNumber, SlotNumber, Offset, Buffer, BufferSize, BytesRead); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugDataSpaces4_WriteBusData(self: *const T, BusDataType: u32, BusNumber: u32, SlotNumber: u32, Offset: u32, Buffer: ?*anyopaque, BufferSize: u32, BytesWritten: ?*u32) HRESULT { return @as(*const IDebugDataSpaces4.VTable, @ptrCast(self.vtable)).WriteBusData(@as(*const IDebugDataSpaces4, @ptrCast(self)), BusDataType, BusNumber, SlotNumber, Offset, Buffer, BufferSize, BytesWritten); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugDataSpaces4_CheckLowMemory(self: *const T) HRESULT { return @as(*const IDebugDataSpaces4.VTable, @ptrCast(self.vtable)).CheckLowMemory(@as(*const IDebugDataSpaces4, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugDataSpaces4_ReadDebuggerData(self: *const T, Index: u32, Buffer: ?*anyopaque, BufferSize: u32, DataSize: ?*u32) HRESULT { return @as(*const IDebugDataSpaces4.VTable, @ptrCast(self.vtable)).ReadDebuggerData(@as(*const IDebugDataSpaces4, @ptrCast(self)), Index, Buffer, BufferSize, DataSize); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugDataSpaces4_ReadProcessorSystemData(self: *const T, Processor: u32, Index: u32, Buffer: ?*anyopaque, BufferSize: u32, DataSize: ?*u32) HRESULT { return @as(*const IDebugDataSpaces4.VTable, @ptrCast(self.vtable)).ReadProcessorSystemData(@as(*const IDebugDataSpaces4, @ptrCast(self)), Processor, Index, Buffer, BufferSize, DataSize); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugDataSpaces4_VirtualToPhysical(self: *const T, Virtual: u64, Physical: ?*u64) HRESULT { return @as(*const IDebugDataSpaces4.VTable, @ptrCast(self.vtable)).VirtualToPhysical(@as(*const IDebugDataSpaces4, @ptrCast(self)), Virtual, Physical); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugDataSpaces4_GetVirtualTranslationPhysicalOffsets(self: *const T, Virtual: u64, Offsets: ?[*]u64, OffsetsSize: u32, Levels: ?*u32) HRESULT { return @as(*const IDebugDataSpaces4.VTable, @ptrCast(self.vtable)).GetVirtualTranslationPhysicalOffsets(@as(*const IDebugDataSpaces4, @ptrCast(self)), Virtual, Offsets, OffsetsSize, Levels); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugDataSpaces4_ReadHandleData(self: *const T, Handle: u64, DataType: u32, Buffer: ?*anyopaque, BufferSize: u32, DataSize: ?*u32) HRESULT { return @as(*const IDebugDataSpaces4.VTable, @ptrCast(self.vtable)).ReadHandleData(@as(*const IDebugDataSpaces4, @ptrCast(self)), Handle, DataType, Buffer, BufferSize, DataSize); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugDataSpaces4_FillVirtual(self: *const T, Start: u64, Size: u32, Pattern: ?*anyopaque, PatternSize: u32, Filled: ?*u32) HRESULT { return @as(*const IDebugDataSpaces4.VTable, @ptrCast(self.vtable)).FillVirtual(@as(*const IDebugDataSpaces4, @ptrCast(self)), Start, Size, Pattern, PatternSize, Filled); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugDataSpaces4_FillPhysical(self: *const T, Start: u64, Size: u32, Pattern: ?*anyopaque, PatternSize: u32, Filled: ?*u32) HRESULT { return @as(*const IDebugDataSpaces4.VTable, @ptrCast(self.vtable)).FillPhysical(@as(*const IDebugDataSpaces4, @ptrCast(self)), Start, Size, Pattern, PatternSize, Filled); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugDataSpaces4_QueryVirtual(self: *const T, Offset: u64, Info: ?*MEMORY_BASIC_INFORMATION64) HRESULT { return @as(*const IDebugDataSpaces4.VTable, @ptrCast(self.vtable)).QueryVirtual(@as(*const IDebugDataSpaces4, @ptrCast(self)), Offset, Info); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugDataSpaces4_ReadImageNtHeaders(self: *const T, ImageBase: u64, Headers: ?*IMAGE_NT_HEADERS64) HRESULT { return @as(*const IDebugDataSpaces4.VTable, @ptrCast(self.vtable)).ReadImageNtHeaders(@as(*const IDebugDataSpaces4, @ptrCast(self)), ImageBase, Headers); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugDataSpaces4_ReadTagged(self: *const T, Tag: ?*Guid, Offset: u32, Buffer: ?*anyopaque, BufferSize: u32, TotalSize: ?*u32) HRESULT { return @as(*const IDebugDataSpaces4.VTable, @ptrCast(self.vtable)).ReadTagged(@as(*const IDebugDataSpaces4, @ptrCast(self)), Tag, Offset, Buffer, BufferSize, TotalSize); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugDataSpaces4_StartEnumTagged(self: *const T, Handle: ?*u64) HRESULT { return @as(*const IDebugDataSpaces4.VTable, @ptrCast(self.vtable)).StartEnumTagged(@as(*const IDebugDataSpaces4, @ptrCast(self)), Handle); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugDataSpaces4_GetNextTagged(self: *const T, Handle: u64, Tag: ?*Guid, Size: ?*u32) HRESULT { return @as(*const IDebugDataSpaces4.VTable, @ptrCast(self.vtable)).GetNextTagged(@as(*const IDebugDataSpaces4, @ptrCast(self)), Handle, Tag, Size); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugDataSpaces4_EndEnumTagged(self: *const T, Handle: u64) HRESULT { return @as(*const IDebugDataSpaces4.VTable, @ptrCast(self.vtable)).EndEnumTagged(@as(*const IDebugDataSpaces4, @ptrCast(self)), Handle); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugDataSpaces4_GetOffsetInformation(self: *const T, Space: u32, Which: u32, Offset: u64, Buffer: ?*anyopaque, BufferSize: u32, InfoSize: ?*u32) HRESULT { return @as(*const IDebugDataSpaces4.VTable, @ptrCast(self.vtable)).GetOffsetInformation(@as(*const IDebugDataSpaces4, @ptrCast(self)), Space, Which, Offset, Buffer, BufferSize, InfoSize); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugDataSpaces4_GetNextDifferentlyValidOffsetVirtual(self: *const T, Offset: u64, NextOffset: ?*u64) HRESULT { return @as(*const IDebugDataSpaces4.VTable, @ptrCast(self.vtable)).GetNextDifferentlyValidOffsetVirtual(@as(*const IDebugDataSpaces4, @ptrCast(self)), Offset, NextOffset); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugDataSpaces4_GetValidRegionVirtual(self: *const T, Base: u64, Size: u32, ValidBase: ?*u64, ValidSize: ?*u32) HRESULT { return @as(*const IDebugDataSpaces4.VTable, @ptrCast(self.vtable)).GetValidRegionVirtual(@as(*const IDebugDataSpaces4, @ptrCast(self)), Base, Size, ValidBase, ValidSize); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugDataSpaces4_SearchVirtual2(self: *const T, Offset: u64, Length: u64, Flags: u32, Pattern: ?*anyopaque, PatternSize: u32, PatternGranularity: u32, MatchOffset: ?*u64) HRESULT { return @as(*const IDebugDataSpaces4.VTable, @ptrCast(self.vtable)).SearchVirtual2(@as(*const IDebugDataSpaces4, @ptrCast(self)), Offset, Length, Flags, Pattern, PatternSize, PatternGranularity, MatchOffset); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugDataSpaces4_ReadMultiByteStringVirtual(self: *const T, Offset: u64, MaxBytes: u32, Buffer: ?[*:0]u8, BufferSize: u32, StringBytes: ?*u32) HRESULT { return @as(*const IDebugDataSpaces4.VTable, @ptrCast(self.vtable)).ReadMultiByteStringVirtual(@as(*const IDebugDataSpaces4, @ptrCast(self)), Offset, MaxBytes, Buffer, BufferSize, StringBytes); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugDataSpaces4_ReadMultiByteStringVirtualWide(self: *const T, Offset: u64, MaxBytes: u32, CodePage: u32, Buffer: ?[*:0]u16, BufferSize: u32, StringBytes: ?*u32) HRESULT { return @as(*const IDebugDataSpaces4.VTable, @ptrCast(self.vtable)).ReadMultiByteStringVirtualWide(@as(*const IDebugDataSpaces4, @ptrCast(self)), Offset, MaxBytes, CodePage, Buffer, BufferSize, StringBytes); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugDataSpaces4_ReadUnicodeStringVirtual(self: *const T, Offset: u64, MaxBytes: u32, CodePage: u32, Buffer: ?[*:0]u8, BufferSize: u32, StringBytes: ?*u32) HRESULT { return @as(*const IDebugDataSpaces4.VTable, @ptrCast(self.vtable)).ReadUnicodeStringVirtual(@as(*const IDebugDataSpaces4, @ptrCast(self)), Offset, MaxBytes, CodePage, Buffer, BufferSize, StringBytes); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugDataSpaces4_ReadUnicodeStringVirtualWide(self: *const T, Offset: u64, MaxBytes: u32, Buffer: ?[*:0]u16, BufferSize: u32, StringBytes: ?*u32) HRESULT { return @as(*const IDebugDataSpaces4.VTable, @ptrCast(self.vtable)).ReadUnicodeStringVirtualWide(@as(*const IDebugDataSpaces4, @ptrCast(self)), Offset, MaxBytes, Buffer, BufferSize, StringBytes); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugDataSpaces4_ReadPhysical2(self: *const T, Offset: u64, Flags: u32, Buffer: ?*anyopaque, BufferSize: u32, BytesRead: ?*u32) HRESULT { return @as(*const IDebugDataSpaces4.VTable, @ptrCast(self.vtable)).ReadPhysical2(@as(*const IDebugDataSpaces4, @ptrCast(self)), Offset, Flags, Buffer, BufferSize, BytesRead); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugDataSpaces4_WritePhysical2(self: *const T, Offset: u64, Flags: u32, Buffer: ?*anyopaque, BufferSize: u32, BytesWritten: ?*u32) HRESULT { return @as(*const IDebugDataSpaces4.VTable, @ptrCast(self.vtable)).WritePhysical2(@as(*const IDebugDataSpaces4, @ptrCast(self)), Offset, Flags, Buffer, BufferSize, BytesWritten); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IDebugEventCallbacks_Value = Guid.initString("337be28b-5036-4d72-b6bf-c45fbb9f2eaa"); pub const IID_IDebugEventCallbacks = &IID_IDebugEventCallbacks_Value; pub const IDebugEventCallbacks = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, GetInterestMask: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugEventCallbacks, Mask: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugEventCallbacks, Mask: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Breakpoint: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugEventCallbacks, Bp: ?*IDebugBreakpoint, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugEventCallbacks, Bp: ?*IDebugBreakpoint, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Exception: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugEventCallbacks, Exception: ?*EXCEPTION_RECORD64, FirstChance: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugEventCallbacks, Exception: ?*EXCEPTION_RECORD64, FirstChance: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, CreateThread: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugEventCallbacks, Handle: u64, DataOffset: u64, StartOffset: u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugEventCallbacks, Handle: u64, DataOffset: u64, StartOffset: u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, ExitThread: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugEventCallbacks, ExitCode: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugEventCallbacks, ExitCode: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, CreateProcessA: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugEventCallbacks, ImageFileHandle: u64, Handle: u64, BaseOffset: u64, ModuleSize: u32, ModuleName: ?[*:0]const u8, ImageName: ?[*:0]const u8, CheckSum: u32, TimeDateStamp: u32, InitialThreadHandle: u64, ThreadDataOffset: u64, StartOffset: u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugEventCallbacks, ImageFileHandle: u64, Handle: u64, BaseOffset: u64, ModuleSize: u32, ModuleName: ?[*:0]const u8, ImageName: ?[*:0]const u8, CheckSum: u32, TimeDateStamp: u32, InitialThreadHandle: u64, ThreadDataOffset: u64, StartOffset: u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, ExitProcess: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugEventCallbacks, ExitCode: u32, ) callconv(@import("std").os.windows.WINAPI) noreturn, else => *const fn ( self: *const IDebugEventCallbacks, ExitCode: u32, ) callconv(@import("std").os.windows.WINAPI) noreturn, }, LoadModule: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugEventCallbacks, ImageFileHandle: u64, BaseOffset: u64, ModuleSize: u32, ModuleName: ?[*:0]const u8, ImageName: ?[*:0]const u8, CheckSum: u32, TimeDateStamp: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugEventCallbacks, ImageFileHandle: u64, BaseOffset: u64, ModuleSize: u32, ModuleName: ?[*:0]const u8, ImageName: ?[*:0]const u8, CheckSum: u32, TimeDateStamp: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, UnloadModule: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugEventCallbacks, ImageBaseName: ?[*:0]const u8, BaseOffset: u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugEventCallbacks, ImageBaseName: ?[*:0]const u8, BaseOffset: u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SystemError: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugEventCallbacks, Error: u32, Level: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugEventCallbacks, Error: u32, Level: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SessionStatus: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugEventCallbacks, Status: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugEventCallbacks, Status: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, ChangeDebuggeeState: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugEventCallbacks, Flags: u32, Argument: u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugEventCallbacks, Flags: u32, Argument: u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, ChangeEngineState: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugEventCallbacks, Flags: u32, Argument: u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugEventCallbacks, Flags: u32, Argument: u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, ChangeSymbolState: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugEventCallbacks, Flags: u32, Argument: u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugEventCallbacks, Flags: u32, Argument: u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugEventCallbacks_GetInterestMask(self: *const T, Mask: ?*u32) HRESULT { return @as(*const IDebugEventCallbacks.VTable, @ptrCast(self.vtable)).GetInterestMask(@as(*const IDebugEventCallbacks, @ptrCast(self)), Mask); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugEventCallbacks_Breakpoint(self: *const T, Bp: ?*IDebugBreakpoint) HRESULT { return @as(*const IDebugEventCallbacks.VTable, @ptrCast(self.vtable)).Breakpoint(@as(*const IDebugEventCallbacks, @ptrCast(self)), Bp); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugEventCallbacks_Exception(self: *const T, Exception: ?*EXCEPTION_RECORD64, FirstChance: u32) HRESULT { return @as(*const IDebugEventCallbacks.VTable, @ptrCast(self.vtable)).Exception(@as(*const IDebugEventCallbacks, @ptrCast(self)), Exception, FirstChance); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugEventCallbacks_CreateThread(self: *const T, Handle: u64, DataOffset: u64, StartOffset: u64) HRESULT { return @as(*const IDebugEventCallbacks.VTable, @ptrCast(self.vtable)).CreateThread(@as(*const IDebugEventCallbacks, @ptrCast(self)), Handle, DataOffset, StartOffset); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugEventCallbacks_ExitThread(self: *const T, ExitCode: u32) HRESULT { return @as(*const IDebugEventCallbacks.VTable, @ptrCast(self.vtable)).ExitThread(@as(*const IDebugEventCallbacks, @ptrCast(self)), ExitCode); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugEventCallbacks_CreateProcessA(self: *const T, ImageFileHandle: u64, Handle: u64, BaseOffset: u64, ModuleSize: u32, ModuleName: ?[*:0]const u8, ImageName: ?[*:0]const u8, CheckSum: u32, TimeDateStamp: u32, InitialThreadHandle: u64, ThreadDataOffset: u64, StartOffset: u64) HRESULT { return @as(*const IDebugEventCallbacks.VTable, @ptrCast(self.vtable)).CreateProcessA(@as(*const IDebugEventCallbacks, @ptrCast(self)), ImageFileHandle, Handle, BaseOffset, ModuleSize, ModuleName, ImageName, CheckSum, TimeDateStamp, InitialThreadHandle, ThreadDataOffset, StartOffset); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugEventCallbacks_ExitProcess(self: *const T, ExitCode: u32) HRESULT { return @as(*const IDebugEventCallbacks.VTable, @ptrCast(self.vtable)).ExitProcess(@as(*const IDebugEventCallbacks, @ptrCast(self)), ExitCode); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugEventCallbacks_LoadModule(self: *const T, ImageFileHandle: u64, BaseOffset: u64, ModuleSize: u32, ModuleName: ?[*:0]const u8, ImageName: ?[*:0]const u8, CheckSum: u32, TimeDateStamp: u32) HRESULT { return @as(*const IDebugEventCallbacks.VTable, @ptrCast(self.vtable)).LoadModule(@as(*const IDebugEventCallbacks, @ptrCast(self)), ImageFileHandle, BaseOffset, ModuleSize, ModuleName, ImageName, CheckSum, TimeDateStamp); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugEventCallbacks_UnloadModule(self: *const T, ImageBaseName: ?[*:0]const u8, BaseOffset: u64) HRESULT { return @as(*const IDebugEventCallbacks.VTable, @ptrCast(self.vtable)).UnloadModule(@as(*const IDebugEventCallbacks, @ptrCast(self)), ImageBaseName, BaseOffset); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugEventCallbacks_SystemError(self: *const T, Error: u32, Level: u32) HRESULT { return @as(*const IDebugEventCallbacks.VTable, @ptrCast(self.vtable)).SystemError(@as(*const IDebugEventCallbacks, @ptrCast(self)), Error, Level); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugEventCallbacks_SessionStatus(self: *const T, Status: u32) HRESULT { return @as(*const IDebugEventCallbacks.VTable, @ptrCast(self.vtable)).SessionStatus(@as(*const IDebugEventCallbacks, @ptrCast(self)), Status); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugEventCallbacks_ChangeDebuggeeState(self: *const T, Flags: u32, Argument: u64) HRESULT { return @as(*const IDebugEventCallbacks.VTable, @ptrCast(self.vtable)).ChangeDebuggeeState(@as(*const IDebugEventCallbacks, @ptrCast(self)), Flags, Argument); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugEventCallbacks_ChangeEngineState(self: *const T, Flags: u32, Argument: u64) HRESULT { return @as(*const IDebugEventCallbacks.VTable, @ptrCast(self.vtable)).ChangeEngineState(@as(*const IDebugEventCallbacks, @ptrCast(self)), Flags, Argument); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugEventCallbacks_ChangeSymbolState(self: *const T, Flags: u32, Argument: u64) HRESULT { return @as(*const IDebugEventCallbacks.VTable, @ptrCast(self.vtable)).ChangeSymbolState(@as(*const IDebugEventCallbacks, @ptrCast(self)), Flags, Argument); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IDebugEventCallbacksWide_Value = Guid.initString("0690e046-9c23-45ac-a04f-987ac29ad0d3"); pub const IID_IDebugEventCallbacksWide = &IID_IDebugEventCallbacksWide_Value; pub const IDebugEventCallbacksWide = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, GetInterestMask: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugEventCallbacksWide, Mask: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugEventCallbacksWide, Mask: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Breakpoint: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugEventCallbacksWide, Bp: ?*IDebugBreakpoint2, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugEventCallbacksWide, Bp: ?*IDebugBreakpoint2, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Exception: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugEventCallbacksWide, Exception: ?*EXCEPTION_RECORD64, FirstChance: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugEventCallbacksWide, Exception: ?*EXCEPTION_RECORD64, FirstChance: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, CreateThread: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugEventCallbacksWide, Handle: u64, DataOffset: u64, StartOffset: u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugEventCallbacksWide, Handle: u64, DataOffset: u64, StartOffset: u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, ExitThread: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugEventCallbacksWide, ExitCode: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugEventCallbacksWide, ExitCode: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, CreateProcessA: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugEventCallbacksWide, ImageFileHandle: u64, Handle: u64, BaseOffset: u64, ModuleSize: u32, ModuleName: ?[*:0]const u16, ImageName: ?[*:0]const u16, CheckSum: u32, TimeDateStamp: u32, InitialThreadHandle: u64, ThreadDataOffset: u64, StartOffset: u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugEventCallbacksWide, ImageFileHandle: u64, Handle: u64, BaseOffset: u64, ModuleSize: u32, ModuleName: ?[*:0]const u16, ImageName: ?[*:0]const u16, CheckSum: u32, TimeDateStamp: u32, InitialThreadHandle: u64, ThreadDataOffset: u64, StartOffset: u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, ExitProcess: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugEventCallbacksWide, ExitCode: u32, ) callconv(@import("std").os.windows.WINAPI) noreturn, else => *const fn ( self: *const IDebugEventCallbacksWide, ExitCode: u32, ) callconv(@import("std").os.windows.WINAPI) noreturn, }, LoadModule: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugEventCallbacksWide, ImageFileHandle: u64, BaseOffset: u64, ModuleSize: u32, ModuleName: ?[*:0]const u16, ImageName: ?[*:0]const u16, CheckSum: u32, TimeDateStamp: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugEventCallbacksWide, ImageFileHandle: u64, BaseOffset: u64, ModuleSize: u32, ModuleName: ?[*:0]const u16, ImageName: ?[*:0]const u16, CheckSum: u32, TimeDateStamp: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, UnloadModule: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugEventCallbacksWide, ImageBaseName: ?[*:0]const u16, BaseOffset: u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugEventCallbacksWide, ImageBaseName: ?[*:0]const u16, BaseOffset: u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SystemError: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugEventCallbacksWide, Error: u32, Level: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugEventCallbacksWide, Error: u32, Level: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SessionStatus: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugEventCallbacksWide, Status: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugEventCallbacksWide, Status: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, ChangeDebuggeeState: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugEventCallbacksWide, Flags: u32, Argument: u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugEventCallbacksWide, Flags: u32, Argument: u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, ChangeEngineState: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugEventCallbacksWide, Flags: u32, Argument: u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugEventCallbacksWide, Flags: u32, Argument: u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, ChangeSymbolState: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugEventCallbacksWide, Flags: u32, Argument: u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugEventCallbacksWide, Flags: u32, Argument: u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugEventCallbacksWide_GetInterestMask(self: *const T, Mask: ?*u32) HRESULT { return @as(*const IDebugEventCallbacksWide.VTable, @ptrCast(self.vtable)).GetInterestMask(@as(*const IDebugEventCallbacksWide, @ptrCast(self)), Mask); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugEventCallbacksWide_Breakpoint(self: *const T, Bp: ?*IDebugBreakpoint2) HRESULT { return @as(*const IDebugEventCallbacksWide.VTable, @ptrCast(self.vtable)).Breakpoint(@as(*const IDebugEventCallbacksWide, @ptrCast(self)), Bp); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugEventCallbacksWide_Exception(self: *const T, Exception: ?*EXCEPTION_RECORD64, FirstChance: u32) HRESULT { return @as(*const IDebugEventCallbacksWide.VTable, @ptrCast(self.vtable)).Exception(@as(*const IDebugEventCallbacksWide, @ptrCast(self)), Exception, FirstChance); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugEventCallbacksWide_CreateThread(self: *const T, Handle: u64, DataOffset: u64, StartOffset: u64) HRESULT { return @as(*const IDebugEventCallbacksWide.VTable, @ptrCast(self.vtable)).CreateThread(@as(*const IDebugEventCallbacksWide, @ptrCast(self)), Handle, DataOffset, StartOffset); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugEventCallbacksWide_ExitThread(self: *const T, ExitCode: u32) HRESULT { return @as(*const IDebugEventCallbacksWide.VTable, @ptrCast(self.vtable)).ExitThread(@as(*const IDebugEventCallbacksWide, @ptrCast(self)), ExitCode); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugEventCallbacksWide_CreateProcessA(self: *const T, ImageFileHandle: u64, Handle: u64, BaseOffset: u64, ModuleSize: u32, ModuleName: ?[*:0]const u16, ImageName: ?[*:0]const u16, CheckSum: u32, TimeDateStamp: u32, InitialThreadHandle: u64, ThreadDataOffset: u64, StartOffset: u64) HRESULT { return @as(*const IDebugEventCallbacksWide.VTable, @ptrCast(self.vtable)).CreateProcessA(@as(*const IDebugEventCallbacksWide, @ptrCast(self)), ImageFileHandle, Handle, BaseOffset, ModuleSize, ModuleName, ImageName, CheckSum, TimeDateStamp, InitialThreadHandle, ThreadDataOffset, StartOffset); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugEventCallbacksWide_ExitProcess(self: *const T, ExitCode: u32) HRESULT { return @as(*const IDebugEventCallbacksWide.VTable, @ptrCast(self.vtable)).ExitProcess(@as(*const IDebugEventCallbacksWide, @ptrCast(self)), ExitCode); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugEventCallbacksWide_LoadModule(self: *const T, ImageFileHandle: u64, BaseOffset: u64, ModuleSize: u32, ModuleName: ?[*:0]const u16, ImageName: ?[*:0]const u16, CheckSum: u32, TimeDateStamp: u32) HRESULT { return @as(*const IDebugEventCallbacksWide.VTable, @ptrCast(self.vtable)).LoadModule(@as(*const IDebugEventCallbacksWide, @ptrCast(self)), ImageFileHandle, BaseOffset, ModuleSize, ModuleName, ImageName, CheckSum, TimeDateStamp); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugEventCallbacksWide_UnloadModule(self: *const T, ImageBaseName: ?[*:0]const u16, BaseOffset: u64) HRESULT { return @as(*const IDebugEventCallbacksWide.VTable, @ptrCast(self.vtable)).UnloadModule(@as(*const IDebugEventCallbacksWide, @ptrCast(self)), ImageBaseName, BaseOffset); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugEventCallbacksWide_SystemError(self: *const T, Error: u32, Level: u32) HRESULT { return @as(*const IDebugEventCallbacksWide.VTable, @ptrCast(self.vtable)).SystemError(@as(*const IDebugEventCallbacksWide, @ptrCast(self)), Error, Level); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugEventCallbacksWide_SessionStatus(self: *const T, Status: u32) HRESULT { return @as(*const IDebugEventCallbacksWide.VTable, @ptrCast(self.vtable)).SessionStatus(@as(*const IDebugEventCallbacksWide, @ptrCast(self)), Status); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugEventCallbacksWide_ChangeDebuggeeState(self: *const T, Flags: u32, Argument: u64) HRESULT { return @as(*const IDebugEventCallbacksWide.VTable, @ptrCast(self.vtable)).ChangeDebuggeeState(@as(*const IDebugEventCallbacksWide, @ptrCast(self)), Flags, Argument); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugEventCallbacksWide_ChangeEngineState(self: *const T, Flags: u32, Argument: u64) HRESULT { return @as(*const IDebugEventCallbacksWide.VTable, @ptrCast(self.vtable)).ChangeEngineState(@as(*const IDebugEventCallbacksWide, @ptrCast(self)), Flags, Argument); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugEventCallbacksWide_ChangeSymbolState(self: *const T, Flags: u32, Argument: u64) HRESULT { return @as(*const IDebugEventCallbacksWide.VTable, @ptrCast(self.vtable)).ChangeSymbolState(@as(*const IDebugEventCallbacksWide, @ptrCast(self)), Flags, Argument); } }; } pub usingnamespace MethodMixin(@This()); }; pub const DEBUG_EVENT_CONTEXT = extern struct { Size: u32, ProcessEngineId: u32, ThreadEngineId: u32, FrameEngineId: u32, }; const IID_IDebugEventContextCallbacks_Value = Guid.initString("61a4905b-23f9-4247-b3c5-53d087529ab7"); pub const IID_IDebugEventContextCallbacks = &IID_IDebugEventContextCallbacks_Value; pub const IDebugEventContextCallbacks = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, GetInterestMask: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugEventContextCallbacks, Mask: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugEventContextCallbacks, Mask: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Breakpoint: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugEventContextCallbacks, Bp: ?*IDebugBreakpoint2, // TODO: what to do with BytesParamIndex 2? Context: ?*anyopaque, ContextSize: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugEventContextCallbacks, Bp: ?*IDebugBreakpoint2, // TODO: what to do with BytesParamIndex 2? Context: ?*anyopaque, ContextSize: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Exception: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugEventContextCallbacks, Exception: ?*EXCEPTION_RECORD64, FirstChance: u32, // TODO: what to do with BytesParamIndex 3? Context: ?*anyopaque, ContextSize: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugEventContextCallbacks, Exception: ?*EXCEPTION_RECORD64, FirstChance: u32, // TODO: what to do with BytesParamIndex 3? Context: ?*anyopaque, ContextSize: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, CreateThread: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugEventContextCallbacks, Handle: u64, DataOffset: u64, StartOffset: u64, // TODO: what to do with BytesParamIndex 4? Context: ?*anyopaque, ContextSize: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugEventContextCallbacks, Handle: u64, DataOffset: u64, StartOffset: u64, // TODO: what to do with BytesParamIndex 4? Context: ?*anyopaque, ContextSize: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, ExitThread: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugEventContextCallbacks, ExitCode: u32, // TODO: what to do with BytesParamIndex 2? Context: ?*anyopaque, ContextSize: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugEventContextCallbacks, ExitCode: u32, // TODO: what to do with BytesParamIndex 2? Context: ?*anyopaque, ContextSize: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, CreateProcessA: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugEventContextCallbacks, ImageFileHandle: u64, Handle: u64, BaseOffset: u64, ModuleSize: u32, ModuleName: ?[*:0]const u16, ImageName: ?[*:0]const u16, CheckSum: u32, TimeDateStamp: u32, InitialThreadHandle: u64, ThreadDataOffset: u64, StartOffset: u64, // TODO: what to do with BytesParamIndex 12? Context: ?*anyopaque, ContextSize: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugEventContextCallbacks, ImageFileHandle: u64, Handle: u64, BaseOffset: u64, ModuleSize: u32, ModuleName: ?[*:0]const u16, ImageName: ?[*:0]const u16, CheckSum: u32, TimeDateStamp: u32, InitialThreadHandle: u64, ThreadDataOffset: u64, StartOffset: u64, // TODO: what to do with BytesParamIndex 12? Context: ?*anyopaque, ContextSize: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, ExitProcess: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugEventContextCallbacks, ExitCode: u32, // TODO: what to do with BytesParamIndex 2? Context: ?*anyopaque, ContextSize: u32, ) callconv(@import("std").os.windows.WINAPI) noreturn, else => *const fn ( self: *const IDebugEventContextCallbacks, ExitCode: u32, // TODO: what to do with BytesParamIndex 2? Context: ?*anyopaque, ContextSize: u32, ) callconv(@import("std").os.windows.WINAPI) noreturn, }, LoadModule: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugEventContextCallbacks, ImageFileHandle: u64, BaseOffset: u64, ModuleSize: u32, ModuleName: ?[*:0]const u16, ImageName: ?[*:0]const u16, CheckSum: u32, TimeDateStamp: u32, // TODO: what to do with BytesParamIndex 8? Context: ?*anyopaque, ContextSize: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugEventContextCallbacks, ImageFileHandle: u64, BaseOffset: u64, ModuleSize: u32, ModuleName: ?[*:0]const u16, ImageName: ?[*:0]const u16, CheckSum: u32, TimeDateStamp: u32, // TODO: what to do with BytesParamIndex 8? Context: ?*anyopaque, ContextSize: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, UnloadModule: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugEventContextCallbacks, ImageBaseName: ?[*:0]const u16, BaseOffset: u64, // TODO: what to do with BytesParamIndex 3? Context: ?*anyopaque, ContextSize: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugEventContextCallbacks, ImageBaseName: ?[*:0]const u16, BaseOffset: u64, // TODO: what to do with BytesParamIndex 3? Context: ?*anyopaque, ContextSize: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SystemError: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugEventContextCallbacks, Error: u32, Level: u32, // TODO: what to do with BytesParamIndex 3? Context: ?*anyopaque, ContextSize: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugEventContextCallbacks, Error: u32, Level: u32, // TODO: what to do with BytesParamIndex 3? Context: ?*anyopaque, ContextSize: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SessionStatus: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugEventContextCallbacks, Status: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugEventContextCallbacks, Status: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, ChangeDebuggeeState: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugEventContextCallbacks, Flags: u32, Argument: u64, // TODO: what to do with BytesParamIndex 3? Context: ?*anyopaque, ContextSize: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugEventContextCallbacks, Flags: u32, Argument: u64, // TODO: what to do with BytesParamIndex 3? Context: ?*anyopaque, ContextSize: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, ChangeEngineState: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugEventContextCallbacks, Flags: u32, Argument: u64, // TODO: what to do with BytesParamIndex 3? Context: ?*anyopaque, ContextSize: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugEventContextCallbacks, Flags: u32, Argument: u64, // TODO: what to do with BytesParamIndex 3? Context: ?*anyopaque, ContextSize: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, ChangeSymbolState: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugEventContextCallbacks, Flags: u32, Argument: u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugEventContextCallbacks, Flags: u32, Argument: u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugEventContextCallbacks_GetInterestMask(self: *const T, Mask: ?*u32) HRESULT { return @as(*const IDebugEventContextCallbacks.VTable, @ptrCast(self.vtable)).GetInterestMask(@as(*const IDebugEventContextCallbacks, @ptrCast(self)), Mask); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugEventContextCallbacks_Breakpoint(self: *const T, Bp: ?*IDebugBreakpoint2, Context: ?*anyopaque, ContextSize: u32) HRESULT { return @as(*const IDebugEventContextCallbacks.VTable, @ptrCast(self.vtable)).Breakpoint(@as(*const IDebugEventContextCallbacks, @ptrCast(self)), Bp, Context, ContextSize); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugEventContextCallbacks_Exception(self: *const T, Exception: ?*EXCEPTION_RECORD64, FirstChance: u32, Context: ?*anyopaque, ContextSize: u32) HRESULT { return @as(*const IDebugEventContextCallbacks.VTable, @ptrCast(self.vtable)).Exception(@as(*const IDebugEventContextCallbacks, @ptrCast(self)), Exception, FirstChance, Context, ContextSize); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugEventContextCallbacks_CreateThread(self: *const T, Handle: u64, DataOffset: u64, StartOffset: u64, Context: ?*anyopaque, ContextSize: u32) HRESULT { return @as(*const IDebugEventContextCallbacks.VTable, @ptrCast(self.vtable)).CreateThread(@as(*const IDebugEventContextCallbacks, @ptrCast(self)), Handle, DataOffset, StartOffset, Context, ContextSize); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugEventContextCallbacks_ExitThread(self: *const T, ExitCode: u32, Context: ?*anyopaque, ContextSize: u32) HRESULT { return @as(*const IDebugEventContextCallbacks.VTable, @ptrCast(self.vtable)).ExitThread(@as(*const IDebugEventContextCallbacks, @ptrCast(self)), ExitCode, Context, ContextSize); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugEventContextCallbacks_CreateProcessA(self: *const T, ImageFileHandle: u64, Handle: u64, BaseOffset: u64, ModuleSize: u32, ModuleName: ?[*:0]const u16, ImageName: ?[*:0]const u16, CheckSum: u32, TimeDateStamp: u32, InitialThreadHandle: u64, ThreadDataOffset: u64, StartOffset: u64, Context: ?*anyopaque, ContextSize: u32) HRESULT { return @as(*const IDebugEventContextCallbacks.VTable, @ptrCast(self.vtable)).CreateProcessA(@as(*const IDebugEventContextCallbacks, @ptrCast(self)), ImageFileHandle, Handle, BaseOffset, ModuleSize, ModuleName, ImageName, CheckSum, TimeDateStamp, InitialThreadHandle, ThreadDataOffset, StartOffset, Context, ContextSize); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugEventContextCallbacks_ExitProcess(self: *const T, ExitCode: u32, Context: ?*anyopaque, ContextSize: u32) HRESULT { return @as(*const IDebugEventContextCallbacks.VTable, @ptrCast(self.vtable)).ExitProcess(@as(*const IDebugEventContextCallbacks, @ptrCast(self)), ExitCode, Context, ContextSize); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugEventContextCallbacks_LoadModule(self: *const T, ImageFileHandle: u64, BaseOffset: u64, ModuleSize: u32, ModuleName: ?[*:0]const u16, ImageName: ?[*:0]const u16, CheckSum: u32, TimeDateStamp: u32, Context: ?*anyopaque, ContextSize: u32) HRESULT { return @as(*const IDebugEventContextCallbacks.VTable, @ptrCast(self.vtable)).LoadModule(@as(*const IDebugEventContextCallbacks, @ptrCast(self)), ImageFileHandle, BaseOffset, ModuleSize, ModuleName, ImageName, CheckSum, TimeDateStamp, Context, ContextSize); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugEventContextCallbacks_UnloadModule(self: *const T, ImageBaseName: ?[*:0]const u16, BaseOffset: u64, Context: ?*anyopaque, ContextSize: u32) HRESULT { return @as(*const IDebugEventContextCallbacks.VTable, @ptrCast(self.vtable)).UnloadModule(@as(*const IDebugEventContextCallbacks, @ptrCast(self)), ImageBaseName, BaseOffset, Context, ContextSize); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugEventContextCallbacks_SystemError(self: *const T, Error: u32, Level: u32, Context: ?*anyopaque, ContextSize: u32) HRESULT { return @as(*const IDebugEventContextCallbacks.VTable, @ptrCast(self.vtable)).SystemError(@as(*const IDebugEventContextCallbacks, @ptrCast(self)), Error, Level, Context, ContextSize); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugEventContextCallbacks_SessionStatus(self: *const T, Status: u32) HRESULT { return @as(*const IDebugEventContextCallbacks.VTable, @ptrCast(self.vtable)).SessionStatus(@as(*const IDebugEventContextCallbacks, @ptrCast(self)), Status); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugEventContextCallbacks_ChangeDebuggeeState(self: *const T, Flags: u32, Argument: u64, Context: ?*anyopaque, ContextSize: u32) HRESULT { return @as(*const IDebugEventContextCallbacks.VTable, @ptrCast(self.vtable)).ChangeDebuggeeState(@as(*const IDebugEventContextCallbacks, @ptrCast(self)), Flags, Argument, Context, ContextSize); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugEventContextCallbacks_ChangeEngineState(self: *const T, Flags: u32, Argument: u64, Context: ?*anyopaque, ContextSize: u32) HRESULT { return @as(*const IDebugEventContextCallbacks.VTable, @ptrCast(self.vtable)).ChangeEngineState(@as(*const IDebugEventContextCallbacks, @ptrCast(self)), Flags, Argument, Context, ContextSize); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugEventContextCallbacks_ChangeSymbolState(self: *const T, Flags: u32, Argument: u64) HRESULT { return @as(*const IDebugEventContextCallbacks.VTable, @ptrCast(self.vtable)).ChangeSymbolState(@as(*const IDebugEventContextCallbacks, @ptrCast(self)), Flags, Argument); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IDebugInputCallbacks_Value = Guid.initString("9f50e42c-f136-499e-9a97-73036c94ed2d"); pub const IID_IDebugInputCallbacks = &IID_IDebugInputCallbacks_Value; pub const IDebugInputCallbacks = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, StartInput: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugInputCallbacks, BufferSize: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugInputCallbacks, BufferSize: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, EndInput: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugInputCallbacks, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugInputCallbacks, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugInputCallbacks_StartInput(self: *const T, BufferSize: u32) HRESULT { return @as(*const IDebugInputCallbacks.VTable, @ptrCast(self.vtable)).StartInput(@as(*const IDebugInputCallbacks, @ptrCast(self)), BufferSize); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugInputCallbacks_EndInput(self: *const T) HRESULT { return @as(*const IDebugInputCallbacks.VTable, @ptrCast(self.vtable)).EndInput(@as(*const IDebugInputCallbacks, @ptrCast(self))); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IDebugOutputCallbacks_Value = Guid.initString("4bf58045-d654-4c40-b0af-683090f356dc"); pub const IID_IDebugOutputCallbacks = &IID_IDebugOutputCallbacks_Value; pub const IDebugOutputCallbacks = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, Output: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugOutputCallbacks, Mask: u32, Text: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugOutputCallbacks, Mask: u32, Text: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugOutputCallbacks_Output(self: *const T, Mask: u32, Text: ?[*:0]const u8) HRESULT { return @as(*const IDebugOutputCallbacks.VTable, @ptrCast(self.vtable)).Output(@as(*const IDebugOutputCallbacks, @ptrCast(self)), Mask, Text); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IDebugOutputCallbacksWide_Value = Guid.initString("4c7fd663-c394-4e26-8ef1-34ad5ed3764c"); pub const IID_IDebugOutputCallbacksWide = &IID_IDebugOutputCallbacksWide_Value; pub const IDebugOutputCallbacksWide = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, Output: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugOutputCallbacksWide, Mask: u32, Text: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugOutputCallbacksWide, Mask: u32, Text: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugOutputCallbacksWide_Output(self: *const T, Mask: u32, Text: ?[*:0]const u16) HRESULT { return @as(*const IDebugOutputCallbacksWide.VTable, @ptrCast(self.vtable)).Output(@as(*const IDebugOutputCallbacksWide, @ptrCast(self)), Mask, Text); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IDebugOutputCallbacks2_Value = Guid.initString("67721fe9-56d2-4a44-a325-2b65513ce6eb"); pub const IID_IDebugOutputCallbacks2 = &IID_IDebugOutputCallbacks2_Value; pub const IDebugOutputCallbacks2 = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, Output: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugOutputCallbacks2, Mask: u32, Text: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugOutputCallbacks2, Mask: u32, Text: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetInterestMask: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugOutputCallbacks2, Mask: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugOutputCallbacks2, Mask: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Output2: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugOutputCallbacks2, Which: u32, Flags: u32, Arg: u64, Text: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugOutputCallbacks2, Which: u32, Flags: u32, Arg: u64, Text: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugOutputCallbacks2_Output(self: *const T, Mask: u32, Text: ?[*:0]const u8) HRESULT { return @as(*const IDebugOutputCallbacks2.VTable, @ptrCast(self.vtable)).Output(@as(*const IDebugOutputCallbacks2, @ptrCast(self)), Mask, Text); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugOutputCallbacks2_GetInterestMask(self: *const T, Mask: ?*u32) HRESULT { return @as(*const IDebugOutputCallbacks2.VTable, @ptrCast(self.vtable)).GetInterestMask(@as(*const IDebugOutputCallbacks2, @ptrCast(self)), Mask); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugOutputCallbacks2_Output2(self: *const T, Which: u32, Flags: u32, Arg: u64, Text: ?[*:0]const u16) HRESULT { return @as(*const IDebugOutputCallbacks2.VTable, @ptrCast(self.vtable)).Output2(@as(*const IDebugOutputCallbacks2, @ptrCast(self)), Which, Flags, Arg, Text); } }; } pub usingnamespace MethodMixin(@This()); }; pub const DEBUG_REGISTER_DESCRIPTION = extern struct { Type: u32, Flags: u32, SubregMaster: u32, SubregLength: u32, SubregMask: u64, SubregShift: u32, Reserved0: u32, }; const IID_IDebugRegisters_Value = Guid.initString("ce289126-9e84-45a7-937e-67bb18691493"); pub const IID_IDebugRegisters = &IID_IDebugRegisters_Value; pub const IDebugRegisters = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, GetNumberRegisters: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugRegisters, Number: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugRegisters, Number: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetDescription: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugRegisters, Register: u32, NameBuffer: ?[*:0]u8, NameBufferSize: u32, NameSize: ?*u32, Desc: ?*DEBUG_REGISTER_DESCRIPTION, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugRegisters, Register: u32, NameBuffer: ?[*:0]u8, NameBufferSize: u32, NameSize: ?*u32, Desc: ?*DEBUG_REGISTER_DESCRIPTION, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetIndexByName: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugRegisters, Name: ?[*:0]const u8, Index: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugRegisters, Name: ?[*:0]const u8, Index: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetValue: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugRegisters, Register: u32, Value: ?*DEBUG_VALUE, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugRegisters, Register: u32, Value: ?*DEBUG_VALUE, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetValue: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugRegisters, Register: u32, Value: ?*DEBUG_VALUE, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugRegisters, Register: u32, Value: ?*DEBUG_VALUE, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetValues: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugRegisters, Count: u32, Indices: ?[*]u32, Start: u32, Values: [*]DEBUG_VALUE, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugRegisters, Count: u32, Indices: ?[*]u32, Start: u32, Values: [*]DEBUG_VALUE, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetValues: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugRegisters, Count: u32, Indices: ?[*]u32, Start: u32, Values: [*]DEBUG_VALUE, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugRegisters, Count: u32, Indices: ?[*]u32, Start: u32, Values: [*]DEBUG_VALUE, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, OutputRegisters: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugRegisters, OutputControl: u32, Flags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugRegisters, OutputControl: u32, Flags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetInstructionOffset: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugRegisters, Offset: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugRegisters, Offset: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetStackOffset: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugRegisters, Offset: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugRegisters, Offset: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetFrameOffset: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugRegisters, Offset: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugRegisters, Offset: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugRegisters_GetNumberRegisters(self: *const T, Number: ?*u32) HRESULT { return @as(*const IDebugRegisters.VTable, @ptrCast(self.vtable)).GetNumberRegisters(@as(*const IDebugRegisters, @ptrCast(self)), Number); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugRegisters_GetDescription(self: *const T, Register: u32, NameBuffer: ?[*:0]u8, NameBufferSize: u32, NameSize: ?*u32, Desc: ?*DEBUG_REGISTER_DESCRIPTION) HRESULT { return @as(*const IDebugRegisters.VTable, @ptrCast(self.vtable)).GetDescription(@as(*const IDebugRegisters, @ptrCast(self)), Register, NameBuffer, NameBufferSize, NameSize, Desc); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugRegisters_GetIndexByName(self: *const T, Name: ?[*:0]const u8, Index: ?*u32) HRESULT { return @as(*const IDebugRegisters.VTable, @ptrCast(self.vtable)).GetIndexByName(@as(*const IDebugRegisters, @ptrCast(self)), Name, Index); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugRegisters_GetValue(self: *const T, Register: u32, Value: ?*DEBUG_VALUE) HRESULT { return @as(*const IDebugRegisters.VTable, @ptrCast(self.vtable)).GetValue(@as(*const IDebugRegisters, @ptrCast(self)), Register, Value); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugRegisters_SetValue(self: *const T, Register: u32, Value: ?*DEBUG_VALUE) HRESULT { return @as(*const IDebugRegisters.VTable, @ptrCast(self.vtable)).SetValue(@as(*const IDebugRegisters, @ptrCast(self)), Register, Value); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugRegisters_GetValues(self: *const T, Count: u32, Indices: ?[*]u32, Start: u32, Values: [*]DEBUG_VALUE) HRESULT { return @as(*const IDebugRegisters.VTable, @ptrCast(self.vtable)).GetValues(@as(*const IDebugRegisters, @ptrCast(self)), Count, Indices, Start, Values); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugRegisters_SetValues(self: *const T, Count: u32, Indices: ?[*]u32, Start: u32, Values: [*]DEBUG_VALUE) HRESULT { return @as(*const IDebugRegisters.VTable, @ptrCast(self.vtable)).SetValues(@as(*const IDebugRegisters, @ptrCast(self)), Count, Indices, Start, Values); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugRegisters_OutputRegisters(self: *const T, OutputControl: u32, Flags: u32) HRESULT { return @as(*const IDebugRegisters.VTable, @ptrCast(self.vtable)).OutputRegisters(@as(*const IDebugRegisters, @ptrCast(self)), OutputControl, Flags); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugRegisters_GetInstructionOffset(self: *const T, Offset: ?*u64) HRESULT { return @as(*const IDebugRegisters.VTable, @ptrCast(self.vtable)).GetInstructionOffset(@as(*const IDebugRegisters, @ptrCast(self)), Offset); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugRegisters_GetStackOffset(self: *const T, Offset: ?*u64) HRESULT { return @as(*const IDebugRegisters.VTable, @ptrCast(self.vtable)).GetStackOffset(@as(*const IDebugRegisters, @ptrCast(self)), Offset); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugRegisters_GetFrameOffset(self: *const T, Offset: ?*u64) HRESULT { return @as(*const IDebugRegisters.VTable, @ptrCast(self.vtable)).GetFrameOffset(@as(*const IDebugRegisters, @ptrCast(self)), Offset); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IDebugRegisters2_Value = Guid.initString("1656afa9-19c6-4e3a-97e7-5dc9160cf9c4"); pub const IID_IDebugRegisters2 = &IID_IDebugRegisters2_Value; pub const IDebugRegisters2 = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, GetNumberRegisters: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugRegisters2, Number: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugRegisters2, Number: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetDescription: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugRegisters2, Register: u32, NameBuffer: ?[*:0]u8, NameBufferSize: u32, NameSize: ?*u32, Desc: ?*DEBUG_REGISTER_DESCRIPTION, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugRegisters2, Register: u32, NameBuffer: ?[*:0]u8, NameBufferSize: u32, NameSize: ?*u32, Desc: ?*DEBUG_REGISTER_DESCRIPTION, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetIndexByName: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugRegisters2, Name: ?[*:0]const u8, Index: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugRegisters2, Name: ?[*:0]const u8, Index: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetValue: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugRegisters2, Register: u32, Value: ?*DEBUG_VALUE, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugRegisters2, Register: u32, Value: ?*DEBUG_VALUE, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetValue: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugRegisters2, Register: u32, Value: ?*DEBUG_VALUE, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugRegisters2, Register: u32, Value: ?*DEBUG_VALUE, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetValues: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugRegisters2, Count: u32, Indices: ?[*]u32, Start: u32, Values: [*]DEBUG_VALUE, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugRegisters2, Count: u32, Indices: ?[*]u32, Start: u32, Values: [*]DEBUG_VALUE, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetValues: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugRegisters2, Count: u32, Indices: ?[*]u32, Start: u32, Values: [*]DEBUG_VALUE, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugRegisters2, Count: u32, Indices: ?[*]u32, Start: u32, Values: [*]DEBUG_VALUE, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, OutputRegisters: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugRegisters2, OutputControl: u32, Flags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugRegisters2, OutputControl: u32, Flags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetInstructionOffset: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugRegisters2, Offset: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugRegisters2, Offset: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetStackOffset: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugRegisters2, Offset: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugRegisters2, Offset: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetFrameOffset: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugRegisters2, Offset: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugRegisters2, Offset: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetDescriptionWide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugRegisters2, Register: u32, NameBuffer: ?[*:0]u16, NameBufferSize: u32, NameSize: ?*u32, Desc: ?*DEBUG_REGISTER_DESCRIPTION, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugRegisters2, Register: u32, NameBuffer: ?[*:0]u16, NameBufferSize: u32, NameSize: ?*u32, Desc: ?*DEBUG_REGISTER_DESCRIPTION, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetIndexByNameWide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugRegisters2, Name: ?[*:0]const u16, Index: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugRegisters2, Name: ?[*:0]const u16, Index: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetNumberPseudoRegisters: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugRegisters2, Number: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugRegisters2, Number: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetPseudoDescription: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugRegisters2, Register: u32, NameBuffer: ?[*:0]u8, NameBufferSize: u32, NameSize: ?*u32, TypeModule: ?*u64, TypeId: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugRegisters2, Register: u32, NameBuffer: ?[*:0]u8, NameBufferSize: u32, NameSize: ?*u32, TypeModule: ?*u64, TypeId: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetPseudoDescriptionWide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugRegisters2, Register: u32, NameBuffer: ?[*:0]u16, NameBufferSize: u32, NameSize: ?*u32, TypeModule: ?*u64, TypeId: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugRegisters2, Register: u32, NameBuffer: ?[*:0]u16, NameBufferSize: u32, NameSize: ?*u32, TypeModule: ?*u64, TypeId: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetPseudoIndexByName: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugRegisters2, Name: ?[*:0]const u8, Index: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugRegisters2, Name: ?[*:0]const u8, Index: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetPseudoIndexByNameWide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugRegisters2, Name: ?[*:0]const u16, Index: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugRegisters2, Name: ?[*:0]const u16, Index: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetPseudoValues: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugRegisters2, Source: u32, Count: u32, Indices: ?[*]u32, Start: u32, Values: [*]DEBUG_VALUE, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugRegisters2, Source: u32, Count: u32, Indices: ?[*]u32, Start: u32, Values: [*]DEBUG_VALUE, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetPseudoValues: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugRegisters2, Source: u32, Count: u32, Indices: ?[*]u32, Start: u32, Values: [*]DEBUG_VALUE, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugRegisters2, Source: u32, Count: u32, Indices: ?[*]u32, Start: u32, Values: [*]DEBUG_VALUE, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetValues2: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugRegisters2, Source: u32, Count: u32, Indices: ?[*]u32, Start: u32, Values: [*]DEBUG_VALUE, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugRegisters2, Source: u32, Count: u32, Indices: ?[*]u32, Start: u32, Values: [*]DEBUG_VALUE, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetValues2: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugRegisters2, Source: u32, Count: u32, Indices: ?[*]u32, Start: u32, Values: [*]DEBUG_VALUE, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugRegisters2, Source: u32, Count: u32, Indices: ?[*]u32, Start: u32, Values: [*]DEBUG_VALUE, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, OutputRegisters2: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugRegisters2, OutputControl: u32, Source: u32, Flags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugRegisters2, OutputControl: u32, Source: u32, Flags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetInstructionOffset2: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugRegisters2, Source: u32, Offset: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugRegisters2, Source: u32, Offset: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetStackOffset2: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugRegisters2, Source: u32, Offset: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugRegisters2, Source: u32, Offset: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetFrameOffset2: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugRegisters2, Source: u32, Offset: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugRegisters2, Source: u32, Offset: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugRegisters2_GetNumberRegisters(self: *const T, Number: ?*u32) HRESULT { return @as(*const IDebugRegisters2.VTable, @ptrCast(self.vtable)).GetNumberRegisters(@as(*const IDebugRegisters2, @ptrCast(self)), Number); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugRegisters2_GetDescription(self: *const T, Register: u32, NameBuffer: ?[*:0]u8, NameBufferSize: u32, NameSize: ?*u32, Desc: ?*DEBUG_REGISTER_DESCRIPTION) HRESULT { return @as(*const IDebugRegisters2.VTable, @ptrCast(self.vtable)).GetDescription(@as(*const IDebugRegisters2, @ptrCast(self)), Register, NameBuffer, NameBufferSize, NameSize, Desc); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugRegisters2_GetIndexByName(self: *const T, Name: ?[*:0]const u8, Index: ?*u32) HRESULT { return @as(*const IDebugRegisters2.VTable, @ptrCast(self.vtable)).GetIndexByName(@as(*const IDebugRegisters2, @ptrCast(self)), Name, Index); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugRegisters2_GetValue(self: *const T, Register: u32, Value: ?*DEBUG_VALUE) HRESULT { return @as(*const IDebugRegisters2.VTable, @ptrCast(self.vtable)).GetValue(@as(*const IDebugRegisters2, @ptrCast(self)), Register, Value); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugRegisters2_SetValue(self: *const T, Register: u32, Value: ?*DEBUG_VALUE) HRESULT { return @as(*const IDebugRegisters2.VTable, @ptrCast(self.vtable)).SetValue(@as(*const IDebugRegisters2, @ptrCast(self)), Register, Value); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugRegisters2_GetValues(self: *const T, Count: u32, Indices: ?[*]u32, Start: u32, Values: [*]DEBUG_VALUE) HRESULT { return @as(*const IDebugRegisters2.VTable, @ptrCast(self.vtable)).GetValues(@as(*const IDebugRegisters2, @ptrCast(self)), Count, Indices, Start, Values); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugRegisters2_SetValues(self: *const T, Count: u32, Indices: ?[*]u32, Start: u32, Values: [*]DEBUG_VALUE) HRESULT { return @as(*const IDebugRegisters2.VTable, @ptrCast(self.vtable)).SetValues(@as(*const IDebugRegisters2, @ptrCast(self)), Count, Indices, Start, Values); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugRegisters2_OutputRegisters(self: *const T, OutputControl: u32, Flags: u32) HRESULT { return @as(*const IDebugRegisters2.VTable, @ptrCast(self.vtable)).OutputRegisters(@as(*const IDebugRegisters2, @ptrCast(self)), OutputControl, Flags); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugRegisters2_GetInstructionOffset(self: *const T, Offset: ?*u64) HRESULT { return @as(*const IDebugRegisters2.VTable, @ptrCast(self.vtable)).GetInstructionOffset(@as(*const IDebugRegisters2, @ptrCast(self)), Offset); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugRegisters2_GetStackOffset(self: *const T, Offset: ?*u64) HRESULT { return @as(*const IDebugRegisters2.VTable, @ptrCast(self.vtable)).GetStackOffset(@as(*const IDebugRegisters2, @ptrCast(self)), Offset); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugRegisters2_GetFrameOffset(self: *const T, Offset: ?*u64) HRESULT { return @as(*const IDebugRegisters2.VTable, @ptrCast(self.vtable)).GetFrameOffset(@as(*const IDebugRegisters2, @ptrCast(self)), Offset); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugRegisters2_GetDescriptionWide(self: *const T, Register: u32, NameBuffer: ?[*:0]u16, NameBufferSize: u32, NameSize: ?*u32, Desc: ?*DEBUG_REGISTER_DESCRIPTION) HRESULT { return @as(*const IDebugRegisters2.VTable, @ptrCast(self.vtable)).GetDescriptionWide(@as(*const IDebugRegisters2, @ptrCast(self)), Register, NameBuffer, NameBufferSize, NameSize, Desc); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugRegisters2_GetIndexByNameWide(self: *const T, Name: ?[*:0]const u16, Index: ?*u32) HRESULT { return @as(*const IDebugRegisters2.VTable, @ptrCast(self.vtable)).GetIndexByNameWide(@as(*const IDebugRegisters2, @ptrCast(self)), Name, Index); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugRegisters2_GetNumberPseudoRegisters(self: *const T, Number: ?*u32) HRESULT { return @as(*const IDebugRegisters2.VTable, @ptrCast(self.vtable)).GetNumberPseudoRegisters(@as(*const IDebugRegisters2, @ptrCast(self)), Number); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugRegisters2_GetPseudoDescription(self: *const T, Register: u32, NameBuffer: ?[*:0]u8, NameBufferSize: u32, NameSize: ?*u32, TypeModule: ?*u64, TypeId: ?*u32) HRESULT { return @as(*const IDebugRegisters2.VTable, @ptrCast(self.vtable)).GetPseudoDescription(@as(*const IDebugRegisters2, @ptrCast(self)), Register, NameBuffer, NameBufferSize, NameSize, TypeModule, TypeId); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugRegisters2_GetPseudoDescriptionWide(self: *const T, Register: u32, NameBuffer: ?[*:0]u16, NameBufferSize: u32, NameSize: ?*u32, TypeModule: ?*u64, TypeId: ?*u32) HRESULT { return @as(*const IDebugRegisters2.VTable, @ptrCast(self.vtable)).GetPseudoDescriptionWide(@as(*const IDebugRegisters2, @ptrCast(self)), Register, NameBuffer, NameBufferSize, NameSize, TypeModule, TypeId); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugRegisters2_GetPseudoIndexByName(self: *const T, Name: ?[*:0]const u8, Index: ?*u32) HRESULT { return @as(*const IDebugRegisters2.VTable, @ptrCast(self.vtable)).GetPseudoIndexByName(@as(*const IDebugRegisters2, @ptrCast(self)), Name, Index); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugRegisters2_GetPseudoIndexByNameWide(self: *const T, Name: ?[*:0]const u16, Index: ?*u32) HRESULT { return @as(*const IDebugRegisters2.VTable, @ptrCast(self.vtable)).GetPseudoIndexByNameWide(@as(*const IDebugRegisters2, @ptrCast(self)), Name, Index); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugRegisters2_GetPseudoValues(self: *const T, Source: u32, Count: u32, Indices: ?[*]u32, Start: u32, Values: [*]DEBUG_VALUE) HRESULT { return @as(*const IDebugRegisters2.VTable, @ptrCast(self.vtable)).GetPseudoValues(@as(*const IDebugRegisters2, @ptrCast(self)), Source, Count, Indices, Start, Values); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugRegisters2_SetPseudoValues(self: *const T, Source: u32, Count: u32, Indices: ?[*]u32, Start: u32, Values: [*]DEBUG_VALUE) HRESULT { return @as(*const IDebugRegisters2.VTable, @ptrCast(self.vtable)).SetPseudoValues(@as(*const IDebugRegisters2, @ptrCast(self)), Source, Count, Indices, Start, Values); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugRegisters2_GetValues2(self: *const T, Source: u32, Count: u32, Indices: ?[*]u32, Start: u32, Values: [*]DEBUG_VALUE) HRESULT { return @as(*const IDebugRegisters2.VTable, @ptrCast(self.vtable)).GetValues2(@as(*const IDebugRegisters2, @ptrCast(self)), Source, Count, Indices, Start, Values); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugRegisters2_SetValues2(self: *const T, Source: u32, Count: u32, Indices: ?[*]u32, Start: u32, Values: [*]DEBUG_VALUE) HRESULT { return @as(*const IDebugRegisters2.VTable, @ptrCast(self.vtable)).SetValues2(@as(*const IDebugRegisters2, @ptrCast(self)), Source, Count, Indices, Start, Values); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugRegisters2_OutputRegisters2(self: *const T, OutputControl: u32, Source: u32, Flags: u32) HRESULT { return @as(*const IDebugRegisters2.VTable, @ptrCast(self.vtable)).OutputRegisters2(@as(*const IDebugRegisters2, @ptrCast(self)), OutputControl, Source, Flags); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugRegisters2_GetInstructionOffset2(self: *const T, Source: u32, Offset: ?*u64) HRESULT { return @as(*const IDebugRegisters2.VTable, @ptrCast(self.vtable)).GetInstructionOffset2(@as(*const IDebugRegisters2, @ptrCast(self)), Source, Offset); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugRegisters2_GetStackOffset2(self: *const T, Source: u32, Offset: ?*u64) HRESULT { return @as(*const IDebugRegisters2.VTable, @ptrCast(self.vtable)).GetStackOffset2(@as(*const IDebugRegisters2, @ptrCast(self)), Source, Offset); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugRegisters2_GetFrameOffset2(self: *const T, Source: u32, Offset: ?*u64) HRESULT { return @as(*const IDebugRegisters2.VTable, @ptrCast(self.vtable)).GetFrameOffset2(@as(*const IDebugRegisters2, @ptrCast(self)), Source, Offset); } }; } pub usingnamespace MethodMixin(@This()); }; pub const DEBUG_SYMBOL_PARAMETERS = extern struct { Module: u64, TypeId: u32, ParentSymbol: u32, SubElements: u32, Flags: u32, Reserved: u64, }; const IID_IDebugSymbolGroup_Value = Guid.initString("f2528316-0f1a-4431-aeed-11d096e1e2ab"); pub const IID_IDebugSymbolGroup = &IID_IDebugSymbolGroup_Value; pub const IDebugSymbolGroup = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, GetNumberSymbols: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbolGroup, Number: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbolGroup, Number: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, AddSymbol: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbolGroup, Name: ?[*:0]const u8, Index: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbolGroup, Name: ?[*:0]const u8, Index: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, RemoveSymbolByName: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbolGroup, Name: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbolGroup, Name: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, RemoveSymbolByIndex: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbolGroup, Index: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbolGroup, Index: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetSymbolName: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbolGroup, Index: u32, Buffer: ?[*:0]u8, BufferSize: u32, NameSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbolGroup, Index: u32, Buffer: ?[*:0]u8, BufferSize: u32, NameSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetSymbolParameters: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbolGroup, Start: u32, Count: u32, Params: [*]DEBUG_SYMBOL_PARAMETERS, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbolGroup, Start: u32, Count: u32, Params: [*]DEBUG_SYMBOL_PARAMETERS, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, ExpandSymbol: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbolGroup, Index: u32, Expand: BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbolGroup, Index: u32, Expand: BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, OutputSymbols: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbolGroup, OutputControl: u32, Flags: u32, Start: u32, Count: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbolGroup, OutputControl: u32, Flags: u32, Start: u32, Count: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, WriteSymbol: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbolGroup, Index: u32, Value: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbolGroup, Index: u32, Value: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, OutputAsType: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbolGroup, Index: u32, Type: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbolGroup, Index: u32, Type: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbolGroup_GetNumberSymbols(self: *const T, Number: ?*u32) HRESULT { return @as(*const IDebugSymbolGroup.VTable, @ptrCast(self.vtable)).GetNumberSymbols(@as(*const IDebugSymbolGroup, @ptrCast(self)), Number); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbolGroup_AddSymbol(self: *const T, Name: ?[*:0]const u8, Index: ?*u32) HRESULT { return @as(*const IDebugSymbolGroup.VTable, @ptrCast(self.vtable)).AddSymbol(@as(*const IDebugSymbolGroup, @ptrCast(self)), Name, Index); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbolGroup_RemoveSymbolByName(self: *const T, Name: ?[*:0]const u8) HRESULT { return @as(*const IDebugSymbolGroup.VTable, @ptrCast(self.vtable)).RemoveSymbolByName(@as(*const IDebugSymbolGroup, @ptrCast(self)), Name); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbolGroup_RemoveSymbolByIndex(self: *const T, Index: u32) HRESULT { return @as(*const IDebugSymbolGroup.VTable, @ptrCast(self.vtable)).RemoveSymbolByIndex(@as(*const IDebugSymbolGroup, @ptrCast(self)), Index); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbolGroup_GetSymbolName(self: *const T, Index: u32, Buffer: ?[*:0]u8, BufferSize: u32, NameSize: ?*u32) HRESULT { return @as(*const IDebugSymbolGroup.VTable, @ptrCast(self.vtable)).GetSymbolName(@as(*const IDebugSymbolGroup, @ptrCast(self)), Index, Buffer, BufferSize, NameSize); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbolGroup_GetSymbolParameters(self: *const T, Start: u32, Count: u32, Params: [*]DEBUG_SYMBOL_PARAMETERS) HRESULT { return @as(*const IDebugSymbolGroup.VTable, @ptrCast(self.vtable)).GetSymbolParameters(@as(*const IDebugSymbolGroup, @ptrCast(self)), Start, Count, Params); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbolGroup_ExpandSymbol(self: *const T, Index: u32, Expand: BOOL) HRESULT { return @as(*const IDebugSymbolGroup.VTable, @ptrCast(self.vtable)).ExpandSymbol(@as(*const IDebugSymbolGroup, @ptrCast(self)), Index, Expand); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbolGroup_OutputSymbols(self: *const T, OutputControl: u32, Flags: u32, Start: u32, Count: u32) HRESULT { return @as(*const IDebugSymbolGroup.VTable, @ptrCast(self.vtable)).OutputSymbols(@as(*const IDebugSymbolGroup, @ptrCast(self)), OutputControl, Flags, Start, Count); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbolGroup_WriteSymbol(self: *const T, Index: u32, Value: ?[*:0]const u8) HRESULT { return @as(*const IDebugSymbolGroup.VTable, @ptrCast(self.vtable)).WriteSymbol(@as(*const IDebugSymbolGroup, @ptrCast(self)), Index, Value); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbolGroup_OutputAsType(self: *const T, Index: u32, Type: ?[*:0]const u8) HRESULT { return @as(*const IDebugSymbolGroup.VTable, @ptrCast(self.vtable)).OutputAsType(@as(*const IDebugSymbolGroup, @ptrCast(self)), Index, Type); } }; } pub usingnamespace MethodMixin(@This()); }; pub const DEBUG_SYMBOL_ENTRY = extern struct { ModuleBase: u64, Offset: u64, Id: u64, Arg64: u64, Size: u32, Flags: u32, TypeId: u32, NameSize: u32, Token: u32, Tag: u32, Arg32: u32, Reserved: u32, }; const IID_IDebugSymbolGroup2_Value = Guid.initString("6a7ccc5f-fb5e-4dcc-b41c-6c20307bccc7"); pub const IID_IDebugSymbolGroup2 = &IID_IDebugSymbolGroup2_Value; pub const IDebugSymbolGroup2 = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, GetNumberSymbols: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbolGroup2, Number: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbolGroup2, Number: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, AddSymbol: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbolGroup2, Name: ?[*:0]const u8, Index: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbolGroup2, Name: ?[*:0]const u8, Index: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, RemoveSymbolByName: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbolGroup2, Name: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbolGroup2, Name: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, RemoveSymbolByIndex: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbolGroup2, Index: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbolGroup2, Index: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetSymbolName: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbolGroup2, Index: u32, Buffer: ?[*:0]u8, BufferSize: u32, NameSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbolGroup2, Index: u32, Buffer: ?[*:0]u8, BufferSize: u32, NameSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetSymbolParameters: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbolGroup2, Start: u32, Count: u32, Params: [*]DEBUG_SYMBOL_PARAMETERS, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbolGroup2, Start: u32, Count: u32, Params: [*]DEBUG_SYMBOL_PARAMETERS, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, ExpandSymbol: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbolGroup2, Index: u32, Expand: BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbolGroup2, Index: u32, Expand: BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, OutputSymbols: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbolGroup2, OutputControl: u32, Flags: u32, Start: u32, Count: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbolGroup2, OutputControl: u32, Flags: u32, Start: u32, Count: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, WriteSymbol: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbolGroup2, Index: u32, Value: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbolGroup2, Index: u32, Value: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, OutputAsType: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbolGroup2, Index: u32, Type: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbolGroup2, Index: u32, Type: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, AddSymbolWide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbolGroup2, Name: ?[*:0]const u16, Index: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbolGroup2, Name: ?[*:0]const u16, Index: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, RemoveSymbolByNameWide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbolGroup2, Name: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbolGroup2, Name: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetSymbolNameWide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbolGroup2, Index: u32, Buffer: ?[*:0]u16, BufferSize: u32, NameSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbolGroup2, Index: u32, Buffer: ?[*:0]u16, BufferSize: u32, NameSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, WriteSymbolWide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbolGroup2, Index: u32, Value: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbolGroup2, Index: u32, Value: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, OutputAsTypeWide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbolGroup2, Index: u32, Type: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbolGroup2, Index: u32, Type: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetSymbolTypeName: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbolGroup2, Index: u32, Buffer: ?[*:0]u8, BufferSize: u32, NameSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbolGroup2, Index: u32, Buffer: ?[*:0]u8, BufferSize: u32, NameSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetSymbolTypeNameWide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbolGroup2, Index: u32, Buffer: ?[*:0]u16, BufferSize: u32, NameSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbolGroup2, Index: u32, Buffer: ?[*:0]u16, BufferSize: u32, NameSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetSymbolSize: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbolGroup2, Index: u32, Size: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbolGroup2, Index: u32, Size: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetSymbolOffset: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbolGroup2, Index: u32, Offset: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbolGroup2, Index: u32, Offset: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetSymbolRegister: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbolGroup2, Index: u32, Register: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbolGroup2, Index: u32, Register: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetSymbolValueText: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbolGroup2, Index: u32, Buffer: ?[*:0]u8, BufferSize: u32, NameSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbolGroup2, Index: u32, Buffer: ?[*:0]u8, BufferSize: u32, NameSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetSymbolValueTextWide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbolGroup2, Index: u32, Buffer: ?[*:0]u16, BufferSize: u32, NameSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbolGroup2, Index: u32, Buffer: ?[*:0]u16, BufferSize: u32, NameSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetSymbolEntryInformation: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbolGroup2, Index: u32, Entry: ?*DEBUG_SYMBOL_ENTRY, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbolGroup2, Index: u32, Entry: ?*DEBUG_SYMBOL_ENTRY, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbolGroup2_GetNumberSymbols(self: *const T, Number: ?*u32) HRESULT { return @as(*const IDebugSymbolGroup2.VTable, @ptrCast(self.vtable)).GetNumberSymbols(@as(*const IDebugSymbolGroup2, @ptrCast(self)), Number); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbolGroup2_AddSymbol(self: *const T, Name: ?[*:0]const u8, Index: ?*u32) HRESULT { return @as(*const IDebugSymbolGroup2.VTable, @ptrCast(self.vtable)).AddSymbol(@as(*const IDebugSymbolGroup2, @ptrCast(self)), Name, Index); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbolGroup2_RemoveSymbolByName(self: *const T, Name: ?[*:0]const u8) HRESULT { return @as(*const IDebugSymbolGroup2.VTable, @ptrCast(self.vtable)).RemoveSymbolByName(@as(*const IDebugSymbolGroup2, @ptrCast(self)), Name); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbolGroup2_RemoveSymbolByIndex(self: *const T, Index: u32) HRESULT { return @as(*const IDebugSymbolGroup2.VTable, @ptrCast(self.vtable)).RemoveSymbolByIndex(@as(*const IDebugSymbolGroup2, @ptrCast(self)), Index); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbolGroup2_GetSymbolName(self: *const T, Index: u32, Buffer: ?[*:0]u8, BufferSize: u32, NameSize: ?*u32) HRESULT { return @as(*const IDebugSymbolGroup2.VTable, @ptrCast(self.vtable)).GetSymbolName(@as(*const IDebugSymbolGroup2, @ptrCast(self)), Index, Buffer, BufferSize, NameSize); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbolGroup2_GetSymbolParameters(self: *const T, Start: u32, Count: u32, Params: [*]DEBUG_SYMBOL_PARAMETERS) HRESULT { return @as(*const IDebugSymbolGroup2.VTable, @ptrCast(self.vtable)).GetSymbolParameters(@as(*const IDebugSymbolGroup2, @ptrCast(self)), Start, Count, Params); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbolGroup2_ExpandSymbol(self: *const T, Index: u32, Expand: BOOL) HRESULT { return @as(*const IDebugSymbolGroup2.VTable, @ptrCast(self.vtable)).ExpandSymbol(@as(*const IDebugSymbolGroup2, @ptrCast(self)), Index, Expand); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbolGroup2_OutputSymbols(self: *const T, OutputControl: u32, Flags: u32, Start: u32, Count: u32) HRESULT { return @as(*const IDebugSymbolGroup2.VTable, @ptrCast(self.vtable)).OutputSymbols(@as(*const IDebugSymbolGroup2, @ptrCast(self)), OutputControl, Flags, Start, Count); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbolGroup2_WriteSymbol(self: *const T, Index: u32, Value: ?[*:0]const u8) HRESULT { return @as(*const IDebugSymbolGroup2.VTable, @ptrCast(self.vtable)).WriteSymbol(@as(*const IDebugSymbolGroup2, @ptrCast(self)), Index, Value); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbolGroup2_OutputAsType(self: *const T, Index: u32, Type: ?[*:0]const u8) HRESULT { return @as(*const IDebugSymbolGroup2.VTable, @ptrCast(self.vtable)).OutputAsType(@as(*const IDebugSymbolGroup2, @ptrCast(self)), Index, Type); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbolGroup2_AddSymbolWide(self: *const T, Name: ?[*:0]const u16, Index: ?*u32) HRESULT { return @as(*const IDebugSymbolGroup2.VTable, @ptrCast(self.vtable)).AddSymbolWide(@as(*const IDebugSymbolGroup2, @ptrCast(self)), Name, Index); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbolGroup2_RemoveSymbolByNameWide(self: *const T, Name: ?[*:0]const u16) HRESULT { return @as(*const IDebugSymbolGroup2.VTable, @ptrCast(self.vtable)).RemoveSymbolByNameWide(@as(*const IDebugSymbolGroup2, @ptrCast(self)), Name); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbolGroup2_GetSymbolNameWide(self: *const T, Index: u32, Buffer: ?[*:0]u16, BufferSize: u32, NameSize: ?*u32) HRESULT { return @as(*const IDebugSymbolGroup2.VTable, @ptrCast(self.vtable)).GetSymbolNameWide(@as(*const IDebugSymbolGroup2, @ptrCast(self)), Index, Buffer, BufferSize, NameSize); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbolGroup2_WriteSymbolWide(self: *const T, Index: u32, Value: ?[*:0]const u16) HRESULT { return @as(*const IDebugSymbolGroup2.VTable, @ptrCast(self.vtable)).WriteSymbolWide(@as(*const IDebugSymbolGroup2, @ptrCast(self)), Index, Value); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbolGroup2_OutputAsTypeWide(self: *const T, Index: u32, Type: ?[*:0]const u16) HRESULT { return @as(*const IDebugSymbolGroup2.VTable, @ptrCast(self.vtable)).OutputAsTypeWide(@as(*const IDebugSymbolGroup2, @ptrCast(self)), Index, Type); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbolGroup2_GetSymbolTypeName(self: *const T, Index: u32, Buffer: ?[*:0]u8, BufferSize: u32, NameSize: ?*u32) HRESULT { return @as(*const IDebugSymbolGroup2.VTable, @ptrCast(self.vtable)).GetSymbolTypeName(@as(*const IDebugSymbolGroup2, @ptrCast(self)), Index, Buffer, BufferSize, NameSize); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbolGroup2_GetSymbolTypeNameWide(self: *const T, Index: u32, Buffer: ?[*:0]u16, BufferSize: u32, NameSize: ?*u32) HRESULT { return @as(*const IDebugSymbolGroup2.VTable, @ptrCast(self.vtable)).GetSymbolTypeNameWide(@as(*const IDebugSymbolGroup2, @ptrCast(self)), Index, Buffer, BufferSize, NameSize); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbolGroup2_GetSymbolSize(self: *const T, Index: u32, Size: ?*u32) HRESULT { return @as(*const IDebugSymbolGroup2.VTable, @ptrCast(self.vtable)).GetSymbolSize(@as(*const IDebugSymbolGroup2, @ptrCast(self)), Index, Size); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbolGroup2_GetSymbolOffset(self: *const T, Index: u32, Offset: ?*u64) HRESULT { return @as(*const IDebugSymbolGroup2.VTable, @ptrCast(self.vtable)).GetSymbolOffset(@as(*const IDebugSymbolGroup2, @ptrCast(self)), Index, Offset); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbolGroup2_GetSymbolRegister(self: *const T, Index: u32, Register: ?*u32) HRESULT { return @as(*const IDebugSymbolGroup2.VTable, @ptrCast(self.vtable)).GetSymbolRegister(@as(*const IDebugSymbolGroup2, @ptrCast(self)), Index, Register); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbolGroup2_GetSymbolValueText(self: *const T, Index: u32, Buffer: ?[*:0]u8, BufferSize: u32, NameSize: ?*u32) HRESULT { return @as(*const IDebugSymbolGroup2.VTable, @ptrCast(self.vtable)).GetSymbolValueText(@as(*const IDebugSymbolGroup2, @ptrCast(self)), Index, Buffer, BufferSize, NameSize); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbolGroup2_GetSymbolValueTextWide(self: *const T, Index: u32, Buffer: ?[*:0]u16, BufferSize: u32, NameSize: ?*u32) HRESULT { return @as(*const IDebugSymbolGroup2.VTable, @ptrCast(self.vtable)).GetSymbolValueTextWide(@as(*const IDebugSymbolGroup2, @ptrCast(self)), Index, Buffer, BufferSize, NameSize); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbolGroup2_GetSymbolEntryInformation(self: *const T, Index: u32, Entry: ?*DEBUG_SYMBOL_ENTRY) HRESULT { return @as(*const IDebugSymbolGroup2.VTable, @ptrCast(self.vtable)).GetSymbolEntryInformation(@as(*const IDebugSymbolGroup2, @ptrCast(self)), Index, Entry); } }; } pub usingnamespace MethodMixin(@This()); }; pub const DEBUG_MODULE_PARAMETERS = extern struct { Base: u64, Size: u32, TimeDateStamp: u32, Checksum: u32, Flags: u32, SymbolType: u32, ImageNameSize: u32, ModuleNameSize: u32, LoadedImageNameSize: u32, SymbolFileNameSize: u32, MappedImageNameSize: u32, Reserved: [2]u64, }; const IID_IDebugSymbols_Value = Guid.initString("8c31e98c-983a-48a5-9016-6fe5d667a950"); pub const IID_IDebugSymbols = &IID_IDebugSymbols_Value; pub const IDebugSymbols = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, GetSymbolOptions: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols, Options: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols, Options: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, AddSymbolOptions: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols, Options: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols, Options: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, RemoveSymbolOptions: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols, Options: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols, Options: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetSymbolOptions: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols, Options: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols, Options: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetNameByOffset: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols, Offset: u64, NameBuffer: ?[*:0]u8, NameBufferSize: u32, NameSize: ?*u32, Displacement: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols, Offset: u64, NameBuffer: ?[*:0]u8, NameBufferSize: u32, NameSize: ?*u32, Displacement: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetOffsetByName: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols, Symbol: ?[*:0]const u8, Offset: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols, Symbol: ?[*:0]const u8, Offset: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetNearNameByOffset: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols, Offset: u64, Delta: i32, NameBuffer: ?[*:0]u8, NameBufferSize: u32, NameSize: ?*u32, Displacement: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols, Offset: u64, Delta: i32, NameBuffer: ?[*:0]u8, NameBufferSize: u32, NameSize: ?*u32, Displacement: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetLineByOffset: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols, Offset: u64, Line: ?*u32, FileBuffer: ?[*:0]u8, FileBufferSize: u32, FileSize: ?*u32, Displacement: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols, Offset: u64, Line: ?*u32, FileBuffer: ?[*:0]u8, FileBufferSize: u32, FileSize: ?*u32, Displacement: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetOffsetByLine: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols, Line: u32, File: ?[*:0]const u8, Offset: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols, Line: u32, File: ?[*:0]const u8, Offset: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetNumberModules: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols, Loaded: ?*u32, Unloaded: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols, Loaded: ?*u32, Unloaded: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetModuleByIndex: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols, Index: u32, Base: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols, Index: u32, Base: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetModuleByModuleName: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols, Name: ?[*:0]const u8, StartIndex: u32, Index: ?*u32, Base: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols, Name: ?[*:0]const u8, StartIndex: u32, Index: ?*u32, Base: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetModuleByOffset: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols, Offset: u64, StartIndex: u32, Index: ?*u32, Base: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols, Offset: u64, StartIndex: u32, Index: ?*u32, Base: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetModuleNames: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols, Index: u32, Base: u64, ImageNameBuffer: ?[*:0]u8, ImageNameBufferSize: u32, ImageNameSize: ?*u32, ModuleNameBuffer: ?[*:0]u8, ModuleNameBufferSize: u32, ModuleNameSize: ?*u32, LoadedImageNameBuffer: ?[*:0]u8, LoadedImageNameBufferSize: u32, LoadedImageNameSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols, Index: u32, Base: u64, ImageNameBuffer: ?[*:0]u8, ImageNameBufferSize: u32, ImageNameSize: ?*u32, ModuleNameBuffer: ?[*:0]u8, ModuleNameBufferSize: u32, ModuleNameSize: ?*u32, LoadedImageNameBuffer: ?[*:0]u8, LoadedImageNameBufferSize: u32, LoadedImageNameSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetModuleParameters: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols, Count: u32, Bases: ?[*]u64, Start: u32, Params: [*]DEBUG_MODULE_PARAMETERS, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols, Count: u32, Bases: ?[*]u64, Start: u32, Params: [*]DEBUG_MODULE_PARAMETERS, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetSymbolModule: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols, Symbol: ?[*:0]const u8, Base: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols, Symbol: ?[*:0]const u8, Base: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetTypeName: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols, Module: u64, TypeId: u32, NameBuffer: ?[*:0]u8, NameBufferSize: u32, NameSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols, Module: u64, TypeId: u32, NameBuffer: ?[*:0]u8, NameBufferSize: u32, NameSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetTypeId: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols, Module: u64, Name: ?[*:0]const u8, TypeId: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols, Module: u64, Name: ?[*:0]const u8, TypeId: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetTypeSize: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols, Module: u64, TypeId: u32, Size: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols, Module: u64, TypeId: u32, Size: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetFieldOffset: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols, Module: u64, TypeId: u32, Field: ?[*:0]const u8, Offset: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols, Module: u64, TypeId: u32, Field: ?[*:0]const u8, Offset: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetSymbolTypeId: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols, Symbol: ?[*:0]const u8, TypeId: ?*u32, Module: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols, Symbol: ?[*:0]const u8, TypeId: ?*u32, Module: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetOffsetTypeId: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols, Offset: u64, TypeId: ?*u32, Module: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols, Offset: u64, TypeId: ?*u32, Module: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, ReadTypedDataVirtual: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols, Offset: u64, Module: u64, TypeId: u32, // TODO: what to do with BytesParamIndex 4? Buffer: ?*anyopaque, BufferSize: u32, BytesRead: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols, Offset: u64, Module: u64, TypeId: u32, // TODO: what to do with BytesParamIndex 4? Buffer: ?*anyopaque, BufferSize: u32, BytesRead: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, WriteTypedDataVirtual: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols, Offset: u64, Module: u64, TypeId: u32, // TODO: what to do with BytesParamIndex 4? Buffer: ?*anyopaque, BufferSize: u32, BytesWritten: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols, Offset: u64, Module: u64, TypeId: u32, // TODO: what to do with BytesParamIndex 4? Buffer: ?*anyopaque, BufferSize: u32, BytesWritten: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, OutputTypedDataVirtual: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols, OutputControl: u32, Offset: u64, Module: u64, TypeId: u32, Flags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols, OutputControl: u32, Offset: u64, Module: u64, TypeId: u32, Flags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, ReadTypedDataPhysical: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols, Offset: u64, Module: u64, TypeId: u32, // TODO: what to do with BytesParamIndex 4? Buffer: ?*anyopaque, BufferSize: u32, BytesRead: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols, Offset: u64, Module: u64, TypeId: u32, // TODO: what to do with BytesParamIndex 4? Buffer: ?*anyopaque, BufferSize: u32, BytesRead: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, WriteTypedDataPhysical: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols, Offset: u64, Module: u64, TypeId: u32, // TODO: what to do with BytesParamIndex 4? Buffer: ?*anyopaque, BufferSize: u32, BytesWritten: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols, Offset: u64, Module: u64, TypeId: u32, // TODO: what to do with BytesParamIndex 4? Buffer: ?*anyopaque, BufferSize: u32, BytesWritten: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, OutputTypedDataPhysical: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols, OutputControl: u32, Offset: u64, Module: u64, TypeId: u32, Flags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols, OutputControl: u32, Offset: u64, Module: u64, TypeId: u32, Flags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetScope: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols, InstructionOffset: ?*u64, ScopeFrame: ?*DEBUG_STACK_FRAME, // TODO: what to do with BytesParamIndex 3? ScopeContext: ?*anyopaque, ScopeContextSize: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols, InstructionOffset: ?*u64, ScopeFrame: ?*DEBUG_STACK_FRAME, // TODO: what to do with BytesParamIndex 3? ScopeContext: ?*anyopaque, ScopeContextSize: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetScope: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols, InstructionOffset: u64, ScopeFrame: ?*DEBUG_STACK_FRAME, // TODO: what to do with BytesParamIndex 3? ScopeContext: ?*anyopaque, ScopeContextSize: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols, InstructionOffset: u64, ScopeFrame: ?*DEBUG_STACK_FRAME, // TODO: what to do with BytesParamIndex 3? ScopeContext: ?*anyopaque, ScopeContextSize: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, ResetScope: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetScopeSymbolGroup: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols, Flags: u32, Update: ?*IDebugSymbolGroup, Symbols: ?*?*IDebugSymbolGroup, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols, Flags: u32, Update: ?*IDebugSymbolGroup, Symbols: ?*?*IDebugSymbolGroup, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, CreateSymbolGroup: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols, Group: ?*?*IDebugSymbolGroup, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols, Group: ?*?*IDebugSymbolGroup, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, StartSymbolMatch: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols, Pattern: ?[*:0]const u8, Handle: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols, Pattern: ?[*:0]const u8, Handle: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetNextSymbolMatch: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols, Handle: u64, Buffer: ?[*:0]u8, BufferSize: u32, MatchSize: ?*u32, Offset: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols, Handle: u64, Buffer: ?[*:0]u8, BufferSize: u32, MatchSize: ?*u32, Offset: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, EndSymbolMatch: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols, Handle: u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols, Handle: u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Reload: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols, Module: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols, Module: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetSymbolPath: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols, Buffer: ?[*:0]u8, BufferSize: u32, PathSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols, Buffer: ?[*:0]u8, BufferSize: u32, PathSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetSymbolPath: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols, Path: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols, Path: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, AppendSymbolPath: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols, Addition: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols, Addition: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetImagePath: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols, Buffer: ?[*:0]u8, BufferSize: u32, PathSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols, Buffer: ?[*:0]u8, BufferSize: u32, PathSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetImagePath: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols, Path: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols, Path: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, AppendImagePath: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols, Addition: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols, Addition: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetSourcePath: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols, Buffer: ?[*:0]u8, BufferSize: u32, PathSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols, Buffer: ?[*:0]u8, BufferSize: u32, PathSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetSourcePathElement: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols, Index: u32, Buffer: ?[*:0]u8, BufferSize: u32, ElementSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols, Index: u32, Buffer: ?[*:0]u8, BufferSize: u32, ElementSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetSourcePath: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols, Path: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols, Path: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, AppendSourcePath: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols, Addition: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols, Addition: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, FindSourceFile: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols, StartElement: u32, File: ?[*:0]const u8, Flags: u32, FoundElement: ?*u32, Buffer: ?[*:0]u8, BufferSize: u32, FoundSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols, StartElement: u32, File: ?[*:0]const u8, Flags: u32, FoundElement: ?*u32, Buffer: ?[*:0]u8, BufferSize: u32, FoundSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetSourceFileLineOffsets: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols, File: ?[*:0]const u8, Buffer: ?[*]u64, BufferLines: u32, FileLines: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols, File: ?[*:0]const u8, Buffer: ?[*]u64, BufferLines: u32, FileLines: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols_GetSymbolOptions(self: *const T, Options: ?*u32) HRESULT { return @as(*const IDebugSymbols.VTable, @ptrCast(self.vtable)).GetSymbolOptions(@as(*const IDebugSymbols, @ptrCast(self)), Options); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols_AddSymbolOptions(self: *const T, Options: u32) HRESULT { return @as(*const IDebugSymbols.VTable, @ptrCast(self.vtable)).AddSymbolOptions(@as(*const IDebugSymbols, @ptrCast(self)), Options); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols_RemoveSymbolOptions(self: *const T, Options: u32) HRESULT { return @as(*const IDebugSymbols.VTable, @ptrCast(self.vtable)).RemoveSymbolOptions(@as(*const IDebugSymbols, @ptrCast(self)), Options); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols_SetSymbolOptions(self: *const T, Options: u32) HRESULT { return @as(*const IDebugSymbols.VTable, @ptrCast(self.vtable)).SetSymbolOptions(@as(*const IDebugSymbols, @ptrCast(self)), Options); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols_GetNameByOffset(self: *const T, Offset: u64, NameBuffer: ?[*:0]u8, NameBufferSize: u32, NameSize: ?*u32, Displacement: ?*u64) HRESULT { return @as(*const IDebugSymbols.VTable, @ptrCast(self.vtable)).GetNameByOffset(@as(*const IDebugSymbols, @ptrCast(self)), Offset, NameBuffer, NameBufferSize, NameSize, Displacement); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols_GetOffsetByName(self: *const T, _param_Symbol: ?[*:0]const u8, Offset: ?*u64) HRESULT { return @as(*const IDebugSymbols.VTable, @ptrCast(self.vtable)).GetOffsetByName(@as(*const IDebugSymbols, @ptrCast(self)), _param_Symbol, Offset); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols_GetNearNameByOffset(self: *const T, Offset: u64, Delta: i32, NameBuffer: ?[*:0]u8, NameBufferSize: u32, NameSize: ?*u32, Displacement: ?*u64) HRESULT { return @as(*const IDebugSymbols.VTable, @ptrCast(self.vtable)).GetNearNameByOffset(@as(*const IDebugSymbols, @ptrCast(self)), Offset, Delta, NameBuffer, NameBufferSize, NameSize, Displacement); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols_GetLineByOffset(self: *const T, Offset: u64, Line: ?*u32, FileBuffer: ?[*:0]u8, FileBufferSize: u32, FileSize: ?*u32, Displacement: ?*u64) HRESULT { return @as(*const IDebugSymbols.VTable, @ptrCast(self.vtable)).GetLineByOffset(@as(*const IDebugSymbols, @ptrCast(self)), Offset, Line, FileBuffer, FileBufferSize, FileSize, Displacement); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols_GetOffsetByLine(self: *const T, Line: u32, File: ?[*:0]const u8, Offset: ?*u64) HRESULT { return @as(*const IDebugSymbols.VTable, @ptrCast(self.vtable)).GetOffsetByLine(@as(*const IDebugSymbols, @ptrCast(self)), Line, File, Offset); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols_GetNumberModules(self: *const T, Loaded: ?*u32, Unloaded: ?*u32) HRESULT { return @as(*const IDebugSymbols.VTable, @ptrCast(self.vtable)).GetNumberModules(@as(*const IDebugSymbols, @ptrCast(self)), Loaded, Unloaded); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols_GetModuleByIndex(self: *const T, Index: u32, Base: ?*u64) HRESULT { return @as(*const IDebugSymbols.VTable, @ptrCast(self.vtable)).GetModuleByIndex(@as(*const IDebugSymbols, @ptrCast(self)), Index, Base); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols_GetModuleByModuleName(self: *const T, Name: ?[*:0]const u8, StartIndex: u32, Index: ?*u32, Base: ?*u64) HRESULT { return @as(*const IDebugSymbols.VTable, @ptrCast(self.vtable)).GetModuleByModuleName(@as(*const IDebugSymbols, @ptrCast(self)), Name, StartIndex, Index, Base); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols_GetModuleByOffset(self: *const T, Offset: u64, StartIndex: u32, Index: ?*u32, Base: ?*u64) HRESULT { return @as(*const IDebugSymbols.VTable, @ptrCast(self.vtable)).GetModuleByOffset(@as(*const IDebugSymbols, @ptrCast(self)), Offset, StartIndex, Index, Base); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols_GetModuleNames(self: *const T, Index: u32, Base: u64, ImageNameBuffer: ?[*:0]u8, ImageNameBufferSize: u32, ImageNameSize: ?*u32, ModuleNameBuffer: ?[*:0]u8, ModuleNameBufferSize: u32, ModuleNameSize: ?*u32, LoadedImageNameBuffer: ?[*:0]u8, LoadedImageNameBufferSize: u32, LoadedImageNameSize: ?*u32) HRESULT { return @as(*const IDebugSymbols.VTable, @ptrCast(self.vtable)).GetModuleNames(@as(*const IDebugSymbols, @ptrCast(self)), Index, Base, ImageNameBuffer, ImageNameBufferSize, ImageNameSize, ModuleNameBuffer, ModuleNameBufferSize, ModuleNameSize, LoadedImageNameBuffer, LoadedImageNameBufferSize, LoadedImageNameSize); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols_GetModuleParameters(self: *const T, Count: u32, Bases: ?[*]u64, Start: u32, Params: [*]DEBUG_MODULE_PARAMETERS) HRESULT { return @as(*const IDebugSymbols.VTable, @ptrCast(self.vtable)).GetModuleParameters(@as(*const IDebugSymbols, @ptrCast(self)), Count, Bases, Start, Params); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols_GetSymbolModule(self: *const T, _param_Symbol: ?[*:0]const u8, Base: ?*u64) HRESULT { return @as(*const IDebugSymbols.VTable, @ptrCast(self.vtable)).GetSymbolModule(@as(*const IDebugSymbols, @ptrCast(self)), _param_Symbol, Base); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols_GetTypeName(self: *const T, Module: u64, TypeId: u32, NameBuffer: ?[*:0]u8, NameBufferSize: u32, NameSize: ?*u32) HRESULT { return @as(*const IDebugSymbols.VTable, @ptrCast(self.vtable)).GetTypeName(@as(*const IDebugSymbols, @ptrCast(self)), Module, TypeId, NameBuffer, NameBufferSize, NameSize); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols_GetTypeId(self: *const T, Module: u64, Name: ?[*:0]const u8, TypeId: ?*u32) HRESULT { return @as(*const IDebugSymbols.VTable, @ptrCast(self.vtable)).GetTypeId(@as(*const IDebugSymbols, @ptrCast(self)), Module, Name, TypeId); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols_GetTypeSize(self: *const T, Module: u64, TypeId: u32, Size: ?*u32) HRESULT { return @as(*const IDebugSymbols.VTable, @ptrCast(self.vtable)).GetTypeSize(@as(*const IDebugSymbols, @ptrCast(self)), Module, TypeId, Size); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols_GetFieldOffset(self: *const T, Module: u64, TypeId: u32, Field: ?[*:0]const u8, Offset: ?*u32) HRESULT { return @as(*const IDebugSymbols.VTable, @ptrCast(self.vtable)).GetFieldOffset(@as(*const IDebugSymbols, @ptrCast(self)), Module, TypeId, Field, Offset); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols_GetSymbolTypeId(self: *const T, _param_Symbol: ?[*:0]const u8, TypeId: ?*u32, Module: ?*u64) HRESULT { return @as(*const IDebugSymbols.VTable, @ptrCast(self.vtable)).GetSymbolTypeId(@as(*const IDebugSymbols, @ptrCast(self)), _param_Symbol, TypeId, Module); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols_GetOffsetTypeId(self: *const T, Offset: u64, TypeId: ?*u32, Module: ?*u64) HRESULT { return @as(*const IDebugSymbols.VTable, @ptrCast(self.vtable)).GetOffsetTypeId(@as(*const IDebugSymbols, @ptrCast(self)), Offset, TypeId, Module); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols_ReadTypedDataVirtual(self: *const T, Offset: u64, Module: u64, TypeId: u32, Buffer: ?*anyopaque, BufferSize: u32, BytesRead: ?*u32) HRESULT { return @as(*const IDebugSymbols.VTable, @ptrCast(self.vtable)).ReadTypedDataVirtual(@as(*const IDebugSymbols, @ptrCast(self)), Offset, Module, TypeId, Buffer, BufferSize, BytesRead); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols_WriteTypedDataVirtual(self: *const T, Offset: u64, Module: u64, TypeId: u32, Buffer: ?*anyopaque, BufferSize: u32, BytesWritten: ?*u32) HRESULT { return @as(*const IDebugSymbols.VTable, @ptrCast(self.vtable)).WriteTypedDataVirtual(@as(*const IDebugSymbols, @ptrCast(self)), Offset, Module, TypeId, Buffer, BufferSize, BytesWritten); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols_OutputTypedDataVirtual(self: *const T, OutputControl: u32, Offset: u64, Module: u64, TypeId: u32, Flags: u32) HRESULT { return @as(*const IDebugSymbols.VTable, @ptrCast(self.vtable)).OutputTypedDataVirtual(@as(*const IDebugSymbols, @ptrCast(self)), OutputControl, Offset, Module, TypeId, Flags); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols_ReadTypedDataPhysical(self: *const T, Offset: u64, Module: u64, TypeId: u32, Buffer: ?*anyopaque, BufferSize: u32, BytesRead: ?*u32) HRESULT { return @as(*const IDebugSymbols.VTable, @ptrCast(self.vtable)).ReadTypedDataPhysical(@as(*const IDebugSymbols, @ptrCast(self)), Offset, Module, TypeId, Buffer, BufferSize, BytesRead); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols_WriteTypedDataPhysical(self: *const T, Offset: u64, Module: u64, TypeId: u32, Buffer: ?*anyopaque, BufferSize: u32, BytesWritten: ?*u32) HRESULT { return @as(*const IDebugSymbols.VTable, @ptrCast(self.vtable)).WriteTypedDataPhysical(@as(*const IDebugSymbols, @ptrCast(self)), Offset, Module, TypeId, Buffer, BufferSize, BytesWritten); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols_OutputTypedDataPhysical(self: *const T, OutputControl: u32, Offset: u64, Module: u64, TypeId: u32, Flags: u32) HRESULT { return @as(*const IDebugSymbols.VTable, @ptrCast(self.vtable)).OutputTypedDataPhysical(@as(*const IDebugSymbols, @ptrCast(self)), OutputControl, Offset, Module, TypeId, Flags); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols_GetScope(self: *const T, InstructionOffset: ?*u64, ScopeFrame: ?*DEBUG_STACK_FRAME, ScopeContext: ?*anyopaque, ScopeContextSize: u32) HRESULT { return @as(*const IDebugSymbols.VTable, @ptrCast(self.vtable)).GetScope(@as(*const IDebugSymbols, @ptrCast(self)), InstructionOffset, ScopeFrame, ScopeContext, ScopeContextSize); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols_SetScope(self: *const T, InstructionOffset: u64, ScopeFrame: ?*DEBUG_STACK_FRAME, ScopeContext: ?*anyopaque, ScopeContextSize: u32) HRESULT { return @as(*const IDebugSymbols.VTable, @ptrCast(self.vtable)).SetScope(@as(*const IDebugSymbols, @ptrCast(self)), InstructionOffset, ScopeFrame, ScopeContext, ScopeContextSize); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols_ResetScope(self: *const T) HRESULT { return @as(*const IDebugSymbols.VTable, @ptrCast(self.vtable)).ResetScope(@as(*const IDebugSymbols, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols_GetScopeSymbolGroup(self: *const T, Flags: u32, Update: ?*IDebugSymbolGroup, Symbols: ?*?*IDebugSymbolGroup) HRESULT { return @as(*const IDebugSymbols.VTable, @ptrCast(self.vtable)).GetScopeSymbolGroup(@as(*const IDebugSymbols, @ptrCast(self)), Flags, Update, Symbols); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols_CreateSymbolGroup(self: *const T, Group: ?*?*IDebugSymbolGroup) HRESULT { return @as(*const IDebugSymbols.VTable, @ptrCast(self.vtable)).CreateSymbolGroup(@as(*const IDebugSymbols, @ptrCast(self)), Group); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols_StartSymbolMatch(self: *const T, Pattern: ?[*:0]const u8, Handle: ?*u64) HRESULT { return @as(*const IDebugSymbols.VTable, @ptrCast(self.vtable)).StartSymbolMatch(@as(*const IDebugSymbols, @ptrCast(self)), Pattern, Handle); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols_GetNextSymbolMatch(self: *const T, Handle: u64, Buffer: ?[*:0]u8, BufferSize: u32, MatchSize: ?*u32, Offset: ?*u64) HRESULT { return @as(*const IDebugSymbols.VTable, @ptrCast(self.vtable)).GetNextSymbolMatch(@as(*const IDebugSymbols, @ptrCast(self)), Handle, Buffer, BufferSize, MatchSize, Offset); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols_EndSymbolMatch(self: *const T, Handle: u64) HRESULT { return @as(*const IDebugSymbols.VTable, @ptrCast(self.vtable)).EndSymbolMatch(@as(*const IDebugSymbols, @ptrCast(self)), Handle); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols_Reload(self: *const T, Module: ?[*:0]const u8) HRESULT { return @as(*const IDebugSymbols.VTable, @ptrCast(self.vtable)).Reload(@as(*const IDebugSymbols, @ptrCast(self)), Module); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols_GetSymbolPath(self: *const T, Buffer: ?[*:0]u8, BufferSize: u32, PathSize: ?*u32) HRESULT { return @as(*const IDebugSymbols.VTable, @ptrCast(self.vtable)).GetSymbolPath(@as(*const IDebugSymbols, @ptrCast(self)), Buffer, BufferSize, PathSize); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols_SetSymbolPath(self: *const T, Path: ?[*:0]const u8) HRESULT { return @as(*const IDebugSymbols.VTable, @ptrCast(self.vtable)).SetSymbolPath(@as(*const IDebugSymbols, @ptrCast(self)), Path); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols_AppendSymbolPath(self: *const T, Addition: ?[*:0]const u8) HRESULT { return @as(*const IDebugSymbols.VTable, @ptrCast(self.vtable)).AppendSymbolPath(@as(*const IDebugSymbols, @ptrCast(self)), Addition); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols_GetImagePath(self: *const T, Buffer: ?[*:0]u8, BufferSize: u32, PathSize: ?*u32) HRESULT { return @as(*const IDebugSymbols.VTable, @ptrCast(self.vtable)).GetImagePath(@as(*const IDebugSymbols, @ptrCast(self)), Buffer, BufferSize, PathSize); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols_SetImagePath(self: *const T, Path: ?[*:0]const u8) HRESULT { return @as(*const IDebugSymbols.VTable, @ptrCast(self.vtable)).SetImagePath(@as(*const IDebugSymbols, @ptrCast(self)), Path); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols_AppendImagePath(self: *const T, Addition: ?[*:0]const u8) HRESULT { return @as(*const IDebugSymbols.VTable, @ptrCast(self.vtable)).AppendImagePath(@as(*const IDebugSymbols, @ptrCast(self)), Addition); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols_GetSourcePath(self: *const T, Buffer: ?[*:0]u8, BufferSize: u32, PathSize: ?*u32) HRESULT { return @as(*const IDebugSymbols.VTable, @ptrCast(self.vtable)).GetSourcePath(@as(*const IDebugSymbols, @ptrCast(self)), Buffer, BufferSize, PathSize); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols_GetSourcePathElement(self: *const T, Index: u32, Buffer: ?[*:0]u8, BufferSize: u32, ElementSize: ?*u32) HRESULT { return @as(*const IDebugSymbols.VTable, @ptrCast(self.vtable)).GetSourcePathElement(@as(*const IDebugSymbols, @ptrCast(self)), Index, Buffer, BufferSize, ElementSize); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols_SetSourcePath(self: *const T, Path: ?[*:0]const u8) HRESULT { return @as(*const IDebugSymbols.VTable, @ptrCast(self.vtable)).SetSourcePath(@as(*const IDebugSymbols, @ptrCast(self)), Path); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols_AppendSourcePath(self: *const T, Addition: ?[*:0]const u8) HRESULT { return @as(*const IDebugSymbols.VTable, @ptrCast(self.vtable)).AppendSourcePath(@as(*const IDebugSymbols, @ptrCast(self)), Addition); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols_FindSourceFile(self: *const T, StartElement: u32, File: ?[*:0]const u8, Flags: u32, FoundElement: ?*u32, Buffer: ?[*:0]u8, BufferSize: u32, FoundSize: ?*u32) HRESULT { return @as(*const IDebugSymbols.VTable, @ptrCast(self.vtable)).FindSourceFile(@as(*const IDebugSymbols, @ptrCast(self)), StartElement, File, Flags, FoundElement, Buffer, BufferSize, FoundSize); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols_GetSourceFileLineOffsets(self: *const T, File: ?[*:0]const u8, Buffer: ?[*]u64, BufferLines: u32, FileLines: ?*u32) HRESULT { return @as(*const IDebugSymbols.VTable, @ptrCast(self.vtable)).GetSourceFileLineOffsets(@as(*const IDebugSymbols, @ptrCast(self)), File, Buffer, BufferLines, FileLines); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IDebugSymbols2_Value = Guid.initString("3a707211-afdd-4495-ad4f-56fecdf8163f"); pub const IID_IDebugSymbols2 = &IID_IDebugSymbols2_Value; pub const IDebugSymbols2 = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, GetSymbolOptions: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols2, Options: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols2, Options: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, AddSymbolOptions: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols2, Options: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols2, Options: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, RemoveSymbolOptions: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols2, Options: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols2, Options: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetSymbolOptions: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols2, Options: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols2, Options: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetNameByOffset: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols2, Offset: u64, NameBuffer: ?[*:0]u8, NameBufferSize: u32, NameSize: ?*u32, Displacement: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols2, Offset: u64, NameBuffer: ?[*:0]u8, NameBufferSize: u32, NameSize: ?*u32, Displacement: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetOffsetByName: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols2, Symbol: ?[*:0]const u8, Offset: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols2, Symbol: ?[*:0]const u8, Offset: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetNearNameByOffset: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols2, Offset: u64, Delta: i32, NameBuffer: ?[*:0]u8, NameBufferSize: u32, NameSize: ?*u32, Displacement: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols2, Offset: u64, Delta: i32, NameBuffer: ?[*:0]u8, NameBufferSize: u32, NameSize: ?*u32, Displacement: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetLineByOffset: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols2, Offset: u64, Line: ?*u32, FileBuffer: ?[*:0]u8, FileBufferSize: u32, FileSize: ?*u32, Displacement: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols2, Offset: u64, Line: ?*u32, FileBuffer: ?[*:0]u8, FileBufferSize: u32, FileSize: ?*u32, Displacement: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetOffsetByLine: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols2, Line: u32, File: ?[*:0]const u8, Offset: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols2, Line: u32, File: ?[*:0]const u8, Offset: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetNumberModules: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols2, Loaded: ?*u32, Unloaded: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols2, Loaded: ?*u32, Unloaded: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetModuleByIndex: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols2, Index: u32, Base: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols2, Index: u32, Base: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetModuleByModuleName: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols2, Name: ?[*:0]const u8, StartIndex: u32, Index: ?*u32, Base: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols2, Name: ?[*:0]const u8, StartIndex: u32, Index: ?*u32, Base: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetModuleByOffset: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols2, Offset: u64, StartIndex: u32, Index: ?*u32, Base: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols2, Offset: u64, StartIndex: u32, Index: ?*u32, Base: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetModuleNames: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols2, Index: u32, Base: u64, ImageNameBuffer: ?[*:0]u8, ImageNameBufferSize: u32, ImageNameSize: ?*u32, ModuleNameBuffer: ?[*:0]u8, ModuleNameBufferSize: u32, ModuleNameSize: ?*u32, LoadedImageNameBuffer: ?[*:0]u8, LoadedImageNameBufferSize: u32, LoadedImageNameSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols2, Index: u32, Base: u64, ImageNameBuffer: ?[*:0]u8, ImageNameBufferSize: u32, ImageNameSize: ?*u32, ModuleNameBuffer: ?[*:0]u8, ModuleNameBufferSize: u32, ModuleNameSize: ?*u32, LoadedImageNameBuffer: ?[*:0]u8, LoadedImageNameBufferSize: u32, LoadedImageNameSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetModuleParameters: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols2, Count: u32, Bases: ?[*]u64, Start: u32, Params: [*]DEBUG_MODULE_PARAMETERS, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols2, Count: u32, Bases: ?[*]u64, Start: u32, Params: [*]DEBUG_MODULE_PARAMETERS, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetSymbolModule: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols2, Symbol: ?[*:0]const u8, Base: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols2, Symbol: ?[*:0]const u8, Base: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetTypeName: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols2, Module: u64, TypeId: u32, NameBuffer: ?[*:0]u8, NameBufferSize: u32, NameSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols2, Module: u64, TypeId: u32, NameBuffer: ?[*:0]u8, NameBufferSize: u32, NameSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetTypeId: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols2, Module: u64, Name: ?[*:0]const u8, TypeId: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols2, Module: u64, Name: ?[*:0]const u8, TypeId: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetTypeSize: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols2, Module: u64, TypeId: u32, Size: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols2, Module: u64, TypeId: u32, Size: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetFieldOffset: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols2, Module: u64, TypeId: u32, Field: ?[*:0]const u8, Offset: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols2, Module: u64, TypeId: u32, Field: ?[*:0]const u8, Offset: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetSymbolTypeId: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols2, Symbol: ?[*:0]const u8, TypeId: ?*u32, Module: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols2, Symbol: ?[*:0]const u8, TypeId: ?*u32, Module: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetOffsetTypeId: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols2, Offset: u64, TypeId: ?*u32, Module: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols2, Offset: u64, TypeId: ?*u32, Module: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, ReadTypedDataVirtual: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols2, Offset: u64, Module: u64, TypeId: u32, // TODO: what to do with BytesParamIndex 4? Buffer: ?*anyopaque, BufferSize: u32, BytesRead: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols2, Offset: u64, Module: u64, TypeId: u32, // TODO: what to do with BytesParamIndex 4? Buffer: ?*anyopaque, BufferSize: u32, BytesRead: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, WriteTypedDataVirtual: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols2, Offset: u64, Module: u64, TypeId: u32, // TODO: what to do with BytesParamIndex 4? Buffer: ?*anyopaque, BufferSize: u32, BytesWritten: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols2, Offset: u64, Module: u64, TypeId: u32, // TODO: what to do with BytesParamIndex 4? Buffer: ?*anyopaque, BufferSize: u32, BytesWritten: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, OutputTypedDataVirtual: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols2, OutputControl: u32, Offset: u64, Module: u64, TypeId: u32, Flags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols2, OutputControl: u32, Offset: u64, Module: u64, TypeId: u32, Flags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, ReadTypedDataPhysical: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols2, Offset: u64, Module: u64, TypeId: u32, // TODO: what to do with BytesParamIndex 4? Buffer: ?*anyopaque, BufferSize: u32, BytesRead: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols2, Offset: u64, Module: u64, TypeId: u32, // TODO: what to do with BytesParamIndex 4? Buffer: ?*anyopaque, BufferSize: u32, BytesRead: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, WriteTypedDataPhysical: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols2, Offset: u64, Module: u64, TypeId: u32, // TODO: what to do with BytesParamIndex 4? Buffer: ?*anyopaque, BufferSize: u32, BytesWritten: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols2, Offset: u64, Module: u64, TypeId: u32, // TODO: what to do with BytesParamIndex 4? Buffer: ?*anyopaque, BufferSize: u32, BytesWritten: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, OutputTypedDataPhysical: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols2, OutputControl: u32, Offset: u64, Module: u64, TypeId: u32, Flags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols2, OutputControl: u32, Offset: u64, Module: u64, TypeId: u32, Flags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetScope: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols2, InstructionOffset: ?*u64, ScopeFrame: ?*DEBUG_STACK_FRAME, // TODO: what to do with BytesParamIndex 3? ScopeContext: ?*anyopaque, ScopeContextSize: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols2, InstructionOffset: ?*u64, ScopeFrame: ?*DEBUG_STACK_FRAME, // TODO: what to do with BytesParamIndex 3? ScopeContext: ?*anyopaque, ScopeContextSize: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetScope: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols2, InstructionOffset: u64, ScopeFrame: ?*DEBUG_STACK_FRAME, // TODO: what to do with BytesParamIndex 3? ScopeContext: ?*anyopaque, ScopeContextSize: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols2, InstructionOffset: u64, ScopeFrame: ?*DEBUG_STACK_FRAME, // TODO: what to do with BytesParamIndex 3? ScopeContext: ?*anyopaque, ScopeContextSize: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, ResetScope: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols2, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols2, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetScopeSymbolGroup: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols2, Flags: u32, Update: ?*IDebugSymbolGroup, Symbols: ?*?*IDebugSymbolGroup, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols2, Flags: u32, Update: ?*IDebugSymbolGroup, Symbols: ?*?*IDebugSymbolGroup, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, CreateSymbolGroup: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols2, Group: ?*?*IDebugSymbolGroup, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols2, Group: ?*?*IDebugSymbolGroup, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, StartSymbolMatch: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols2, Pattern: ?[*:0]const u8, Handle: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols2, Pattern: ?[*:0]const u8, Handle: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetNextSymbolMatch: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols2, Handle: u64, Buffer: ?[*:0]u8, BufferSize: u32, MatchSize: ?*u32, Offset: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols2, Handle: u64, Buffer: ?[*:0]u8, BufferSize: u32, MatchSize: ?*u32, Offset: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, EndSymbolMatch: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols2, Handle: u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols2, Handle: u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Reload: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols2, Module: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols2, Module: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetSymbolPath: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols2, Buffer: ?[*:0]u8, BufferSize: u32, PathSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols2, Buffer: ?[*:0]u8, BufferSize: u32, PathSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetSymbolPath: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols2, Path: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols2, Path: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, AppendSymbolPath: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols2, Addition: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols2, Addition: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetImagePath: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols2, Buffer: ?[*:0]u8, BufferSize: u32, PathSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols2, Buffer: ?[*:0]u8, BufferSize: u32, PathSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetImagePath: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols2, Path: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols2, Path: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, AppendImagePath: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols2, Addition: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols2, Addition: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetSourcePath: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols2, Buffer: ?[*:0]u8, BufferSize: u32, PathSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols2, Buffer: ?[*:0]u8, BufferSize: u32, PathSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetSourcePathElement: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols2, Index: u32, Buffer: ?[*:0]u8, BufferSize: u32, ElementSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols2, Index: u32, Buffer: ?[*:0]u8, BufferSize: u32, ElementSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetSourcePath: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols2, Path: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols2, Path: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, AppendSourcePath: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols2, Addition: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols2, Addition: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, FindSourceFile: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols2, StartElement: u32, File: ?[*:0]const u8, Flags: u32, FoundElement: ?*u32, Buffer: ?[*:0]u8, BufferSize: u32, FoundSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols2, StartElement: u32, File: ?[*:0]const u8, Flags: u32, FoundElement: ?*u32, Buffer: ?[*:0]u8, BufferSize: u32, FoundSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetSourceFileLineOffsets: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols2, File: ?[*:0]const u8, Buffer: ?[*]u64, BufferLines: u32, FileLines: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols2, File: ?[*:0]const u8, Buffer: ?[*]u64, BufferLines: u32, FileLines: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetModuleVersionInformation: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols2, Index: u32, Base: u64, Item: ?[*:0]const u8, // TODO: what to do with BytesParamIndex 4? Buffer: ?*anyopaque, BufferSize: u32, VerInfoSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols2, Index: u32, Base: u64, Item: ?[*:0]const u8, // TODO: what to do with BytesParamIndex 4? Buffer: ?*anyopaque, BufferSize: u32, VerInfoSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetModuleNameString: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols2, Which: u32, Index: u32, Base: u64, Buffer: ?[*:0]u8, BufferSize: u32, NameSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols2, Which: u32, Index: u32, Base: u64, Buffer: ?[*:0]u8, BufferSize: u32, NameSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetConstantName: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols2, Module: u64, TypeId: u32, Value: u64, NameBuffer: ?[*:0]u8, NameBufferSize: u32, NameSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols2, Module: u64, TypeId: u32, Value: u64, NameBuffer: ?[*:0]u8, NameBufferSize: u32, NameSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetFieldName: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols2, Module: u64, TypeId: u32, FieldIndex: u32, NameBuffer: ?[*:0]u8, NameBufferSize: u32, NameSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols2, Module: u64, TypeId: u32, FieldIndex: u32, NameBuffer: ?[*:0]u8, NameBufferSize: u32, NameSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetTypeOptions: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols2, Options: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols2, Options: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, AddTypeOptions: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols2, Options: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols2, Options: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, RemoveTypeOptions: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols2, Options: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols2, Options: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetTypeOptions: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols2, Options: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols2, Options: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols2_GetSymbolOptions(self: *const T, Options: ?*u32) HRESULT { return @as(*const IDebugSymbols2.VTable, @ptrCast(self.vtable)).GetSymbolOptions(@as(*const IDebugSymbols2, @ptrCast(self)), Options); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols2_AddSymbolOptions(self: *const T, Options: u32) HRESULT { return @as(*const IDebugSymbols2.VTable, @ptrCast(self.vtable)).AddSymbolOptions(@as(*const IDebugSymbols2, @ptrCast(self)), Options); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols2_RemoveSymbolOptions(self: *const T, Options: u32) HRESULT { return @as(*const IDebugSymbols2.VTable, @ptrCast(self.vtable)).RemoveSymbolOptions(@as(*const IDebugSymbols2, @ptrCast(self)), Options); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols2_SetSymbolOptions(self: *const T, Options: u32) HRESULT { return @as(*const IDebugSymbols2.VTable, @ptrCast(self.vtable)).SetSymbolOptions(@as(*const IDebugSymbols2, @ptrCast(self)), Options); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols2_GetNameByOffset(self: *const T, Offset: u64, NameBuffer: ?[*:0]u8, NameBufferSize: u32, NameSize: ?*u32, Displacement: ?*u64) HRESULT { return @as(*const IDebugSymbols2.VTable, @ptrCast(self.vtable)).GetNameByOffset(@as(*const IDebugSymbols2, @ptrCast(self)), Offset, NameBuffer, NameBufferSize, NameSize, Displacement); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols2_GetOffsetByName(self: *const T, _param_Symbol: ?[*:0]const u8, Offset: ?*u64) HRESULT { return @as(*const IDebugSymbols2.VTable, @ptrCast(self.vtable)).GetOffsetByName(@as(*const IDebugSymbols2, @ptrCast(self)), _param_Symbol, Offset); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols2_GetNearNameByOffset(self: *const T, Offset: u64, Delta: i32, NameBuffer: ?[*:0]u8, NameBufferSize: u32, NameSize: ?*u32, Displacement: ?*u64) HRESULT { return @as(*const IDebugSymbols2.VTable, @ptrCast(self.vtable)).GetNearNameByOffset(@as(*const IDebugSymbols2, @ptrCast(self)), Offset, Delta, NameBuffer, NameBufferSize, NameSize, Displacement); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols2_GetLineByOffset(self: *const T, Offset: u64, Line: ?*u32, FileBuffer: ?[*:0]u8, FileBufferSize: u32, FileSize: ?*u32, Displacement: ?*u64) HRESULT { return @as(*const IDebugSymbols2.VTable, @ptrCast(self.vtable)).GetLineByOffset(@as(*const IDebugSymbols2, @ptrCast(self)), Offset, Line, FileBuffer, FileBufferSize, FileSize, Displacement); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols2_GetOffsetByLine(self: *const T, Line: u32, File: ?[*:0]const u8, Offset: ?*u64) HRESULT { return @as(*const IDebugSymbols2.VTable, @ptrCast(self.vtable)).GetOffsetByLine(@as(*const IDebugSymbols2, @ptrCast(self)), Line, File, Offset); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols2_GetNumberModules(self: *const T, Loaded: ?*u32, Unloaded: ?*u32) HRESULT { return @as(*const IDebugSymbols2.VTable, @ptrCast(self.vtable)).GetNumberModules(@as(*const IDebugSymbols2, @ptrCast(self)), Loaded, Unloaded); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols2_GetModuleByIndex(self: *const T, Index: u32, Base: ?*u64) HRESULT { return @as(*const IDebugSymbols2.VTable, @ptrCast(self.vtable)).GetModuleByIndex(@as(*const IDebugSymbols2, @ptrCast(self)), Index, Base); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols2_GetModuleByModuleName(self: *const T, Name: ?[*:0]const u8, StartIndex: u32, Index: ?*u32, Base: ?*u64) HRESULT { return @as(*const IDebugSymbols2.VTable, @ptrCast(self.vtable)).GetModuleByModuleName(@as(*const IDebugSymbols2, @ptrCast(self)), Name, StartIndex, Index, Base); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols2_GetModuleByOffset(self: *const T, Offset: u64, StartIndex: u32, Index: ?*u32, Base: ?*u64) HRESULT { return @as(*const IDebugSymbols2.VTable, @ptrCast(self.vtable)).GetModuleByOffset(@as(*const IDebugSymbols2, @ptrCast(self)), Offset, StartIndex, Index, Base); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols2_GetModuleNames(self: *const T, Index: u32, Base: u64, ImageNameBuffer: ?[*:0]u8, ImageNameBufferSize: u32, ImageNameSize: ?*u32, ModuleNameBuffer: ?[*:0]u8, ModuleNameBufferSize: u32, ModuleNameSize: ?*u32, LoadedImageNameBuffer: ?[*:0]u8, LoadedImageNameBufferSize: u32, LoadedImageNameSize: ?*u32) HRESULT { return @as(*const IDebugSymbols2.VTable, @ptrCast(self.vtable)).GetModuleNames(@as(*const IDebugSymbols2, @ptrCast(self)), Index, Base, ImageNameBuffer, ImageNameBufferSize, ImageNameSize, ModuleNameBuffer, ModuleNameBufferSize, ModuleNameSize, LoadedImageNameBuffer, LoadedImageNameBufferSize, LoadedImageNameSize); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols2_GetModuleParameters(self: *const T, Count: u32, Bases: ?[*]u64, Start: u32, Params: [*]DEBUG_MODULE_PARAMETERS) HRESULT { return @as(*const IDebugSymbols2.VTable, @ptrCast(self.vtable)).GetModuleParameters(@as(*const IDebugSymbols2, @ptrCast(self)), Count, Bases, Start, Params); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols2_GetSymbolModule(self: *const T, _param_Symbol: ?[*:0]const u8, Base: ?*u64) HRESULT { return @as(*const IDebugSymbols2.VTable, @ptrCast(self.vtable)).GetSymbolModule(@as(*const IDebugSymbols2, @ptrCast(self)), _param_Symbol, Base); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols2_GetTypeName(self: *const T, Module: u64, TypeId: u32, NameBuffer: ?[*:0]u8, NameBufferSize: u32, NameSize: ?*u32) HRESULT { return @as(*const IDebugSymbols2.VTable, @ptrCast(self.vtable)).GetTypeName(@as(*const IDebugSymbols2, @ptrCast(self)), Module, TypeId, NameBuffer, NameBufferSize, NameSize); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols2_GetTypeId(self: *const T, Module: u64, Name: ?[*:0]const u8, TypeId: ?*u32) HRESULT { return @as(*const IDebugSymbols2.VTable, @ptrCast(self.vtable)).GetTypeId(@as(*const IDebugSymbols2, @ptrCast(self)), Module, Name, TypeId); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols2_GetTypeSize(self: *const T, Module: u64, TypeId: u32, Size: ?*u32) HRESULT { return @as(*const IDebugSymbols2.VTable, @ptrCast(self.vtable)).GetTypeSize(@as(*const IDebugSymbols2, @ptrCast(self)), Module, TypeId, Size); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols2_GetFieldOffset(self: *const T, Module: u64, TypeId: u32, Field: ?[*:0]const u8, Offset: ?*u32) HRESULT { return @as(*const IDebugSymbols2.VTable, @ptrCast(self.vtable)).GetFieldOffset(@as(*const IDebugSymbols2, @ptrCast(self)), Module, TypeId, Field, Offset); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols2_GetSymbolTypeId(self: *const T, _param_Symbol: ?[*:0]const u8, TypeId: ?*u32, Module: ?*u64) HRESULT { return @as(*const IDebugSymbols2.VTable, @ptrCast(self.vtable)).GetSymbolTypeId(@as(*const IDebugSymbols2, @ptrCast(self)), _param_Symbol, TypeId, Module); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols2_GetOffsetTypeId(self: *const T, Offset: u64, TypeId: ?*u32, Module: ?*u64) HRESULT { return @as(*const IDebugSymbols2.VTable, @ptrCast(self.vtable)).GetOffsetTypeId(@as(*const IDebugSymbols2, @ptrCast(self)), Offset, TypeId, Module); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols2_ReadTypedDataVirtual(self: *const T, Offset: u64, Module: u64, TypeId: u32, Buffer: ?*anyopaque, BufferSize: u32, BytesRead: ?*u32) HRESULT { return @as(*const IDebugSymbols2.VTable, @ptrCast(self.vtable)).ReadTypedDataVirtual(@as(*const IDebugSymbols2, @ptrCast(self)), Offset, Module, TypeId, Buffer, BufferSize, BytesRead); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols2_WriteTypedDataVirtual(self: *const T, Offset: u64, Module: u64, TypeId: u32, Buffer: ?*anyopaque, BufferSize: u32, BytesWritten: ?*u32) HRESULT { return @as(*const IDebugSymbols2.VTable, @ptrCast(self.vtable)).WriteTypedDataVirtual(@as(*const IDebugSymbols2, @ptrCast(self)), Offset, Module, TypeId, Buffer, BufferSize, BytesWritten); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols2_OutputTypedDataVirtual(self: *const T, OutputControl: u32, Offset: u64, Module: u64, TypeId: u32, Flags: u32) HRESULT { return @as(*const IDebugSymbols2.VTable, @ptrCast(self.vtable)).OutputTypedDataVirtual(@as(*const IDebugSymbols2, @ptrCast(self)), OutputControl, Offset, Module, TypeId, Flags); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols2_ReadTypedDataPhysical(self: *const T, Offset: u64, Module: u64, TypeId: u32, Buffer: ?*anyopaque, BufferSize: u32, BytesRead: ?*u32) HRESULT { return @as(*const IDebugSymbols2.VTable, @ptrCast(self.vtable)).ReadTypedDataPhysical(@as(*const IDebugSymbols2, @ptrCast(self)), Offset, Module, TypeId, Buffer, BufferSize, BytesRead); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols2_WriteTypedDataPhysical(self: *const T, Offset: u64, Module: u64, TypeId: u32, Buffer: ?*anyopaque, BufferSize: u32, BytesWritten: ?*u32) HRESULT { return @as(*const IDebugSymbols2.VTable, @ptrCast(self.vtable)).WriteTypedDataPhysical(@as(*const IDebugSymbols2, @ptrCast(self)), Offset, Module, TypeId, Buffer, BufferSize, BytesWritten); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols2_OutputTypedDataPhysical(self: *const T, OutputControl: u32, Offset: u64, Module: u64, TypeId: u32, Flags: u32) HRESULT { return @as(*const IDebugSymbols2.VTable, @ptrCast(self.vtable)).OutputTypedDataPhysical(@as(*const IDebugSymbols2, @ptrCast(self)), OutputControl, Offset, Module, TypeId, Flags); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols2_GetScope(self: *const T, InstructionOffset: ?*u64, ScopeFrame: ?*DEBUG_STACK_FRAME, ScopeContext: ?*anyopaque, ScopeContextSize: u32) HRESULT { return @as(*const IDebugSymbols2.VTable, @ptrCast(self.vtable)).GetScope(@as(*const IDebugSymbols2, @ptrCast(self)), InstructionOffset, ScopeFrame, ScopeContext, ScopeContextSize); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols2_SetScope(self: *const T, InstructionOffset: u64, ScopeFrame: ?*DEBUG_STACK_FRAME, ScopeContext: ?*anyopaque, ScopeContextSize: u32) HRESULT { return @as(*const IDebugSymbols2.VTable, @ptrCast(self.vtable)).SetScope(@as(*const IDebugSymbols2, @ptrCast(self)), InstructionOffset, ScopeFrame, ScopeContext, ScopeContextSize); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols2_ResetScope(self: *const T) HRESULT { return @as(*const IDebugSymbols2.VTable, @ptrCast(self.vtable)).ResetScope(@as(*const IDebugSymbols2, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols2_GetScopeSymbolGroup(self: *const T, Flags: u32, Update: ?*IDebugSymbolGroup, Symbols: ?*?*IDebugSymbolGroup) HRESULT { return @as(*const IDebugSymbols2.VTable, @ptrCast(self.vtable)).GetScopeSymbolGroup(@as(*const IDebugSymbols2, @ptrCast(self)), Flags, Update, Symbols); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols2_CreateSymbolGroup(self: *const T, Group: ?*?*IDebugSymbolGroup) HRESULT { return @as(*const IDebugSymbols2.VTable, @ptrCast(self.vtable)).CreateSymbolGroup(@as(*const IDebugSymbols2, @ptrCast(self)), Group); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols2_StartSymbolMatch(self: *const T, Pattern: ?[*:0]const u8, Handle: ?*u64) HRESULT { return @as(*const IDebugSymbols2.VTable, @ptrCast(self.vtable)).StartSymbolMatch(@as(*const IDebugSymbols2, @ptrCast(self)), Pattern, Handle); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols2_GetNextSymbolMatch(self: *const T, Handle: u64, Buffer: ?[*:0]u8, BufferSize: u32, MatchSize: ?*u32, Offset: ?*u64) HRESULT { return @as(*const IDebugSymbols2.VTable, @ptrCast(self.vtable)).GetNextSymbolMatch(@as(*const IDebugSymbols2, @ptrCast(self)), Handle, Buffer, BufferSize, MatchSize, Offset); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols2_EndSymbolMatch(self: *const T, Handle: u64) HRESULT { return @as(*const IDebugSymbols2.VTable, @ptrCast(self.vtable)).EndSymbolMatch(@as(*const IDebugSymbols2, @ptrCast(self)), Handle); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols2_Reload(self: *const T, Module: ?[*:0]const u8) HRESULT { return @as(*const IDebugSymbols2.VTable, @ptrCast(self.vtable)).Reload(@as(*const IDebugSymbols2, @ptrCast(self)), Module); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols2_GetSymbolPath(self: *const T, Buffer: ?[*:0]u8, BufferSize: u32, PathSize: ?*u32) HRESULT { return @as(*const IDebugSymbols2.VTable, @ptrCast(self.vtable)).GetSymbolPath(@as(*const IDebugSymbols2, @ptrCast(self)), Buffer, BufferSize, PathSize); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols2_SetSymbolPath(self: *const T, Path: ?[*:0]const u8) HRESULT { return @as(*const IDebugSymbols2.VTable, @ptrCast(self.vtable)).SetSymbolPath(@as(*const IDebugSymbols2, @ptrCast(self)), Path); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols2_AppendSymbolPath(self: *const T, Addition: ?[*:0]const u8) HRESULT { return @as(*const IDebugSymbols2.VTable, @ptrCast(self.vtable)).AppendSymbolPath(@as(*const IDebugSymbols2, @ptrCast(self)), Addition); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols2_GetImagePath(self: *const T, Buffer: ?[*:0]u8, BufferSize: u32, PathSize: ?*u32) HRESULT { return @as(*const IDebugSymbols2.VTable, @ptrCast(self.vtable)).GetImagePath(@as(*const IDebugSymbols2, @ptrCast(self)), Buffer, BufferSize, PathSize); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols2_SetImagePath(self: *const T, Path: ?[*:0]const u8) HRESULT { return @as(*const IDebugSymbols2.VTable, @ptrCast(self.vtable)).SetImagePath(@as(*const IDebugSymbols2, @ptrCast(self)), Path); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols2_AppendImagePath(self: *const T, Addition: ?[*:0]const u8) HRESULT { return @as(*const IDebugSymbols2.VTable, @ptrCast(self.vtable)).AppendImagePath(@as(*const IDebugSymbols2, @ptrCast(self)), Addition); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols2_GetSourcePath(self: *const T, Buffer: ?[*:0]u8, BufferSize: u32, PathSize: ?*u32) HRESULT { return @as(*const IDebugSymbols2.VTable, @ptrCast(self.vtable)).GetSourcePath(@as(*const IDebugSymbols2, @ptrCast(self)), Buffer, BufferSize, PathSize); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols2_GetSourcePathElement(self: *const T, Index: u32, Buffer: ?[*:0]u8, BufferSize: u32, ElementSize: ?*u32) HRESULT { return @as(*const IDebugSymbols2.VTable, @ptrCast(self.vtable)).GetSourcePathElement(@as(*const IDebugSymbols2, @ptrCast(self)), Index, Buffer, BufferSize, ElementSize); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols2_SetSourcePath(self: *const T, Path: ?[*:0]const u8) HRESULT { return @as(*const IDebugSymbols2.VTable, @ptrCast(self.vtable)).SetSourcePath(@as(*const IDebugSymbols2, @ptrCast(self)), Path); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols2_AppendSourcePath(self: *const T, Addition: ?[*:0]const u8) HRESULT { return @as(*const IDebugSymbols2.VTable, @ptrCast(self.vtable)).AppendSourcePath(@as(*const IDebugSymbols2, @ptrCast(self)), Addition); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols2_FindSourceFile(self: *const T, StartElement: u32, File: ?[*:0]const u8, Flags: u32, FoundElement: ?*u32, Buffer: ?[*:0]u8, BufferSize: u32, FoundSize: ?*u32) HRESULT { return @as(*const IDebugSymbols2.VTable, @ptrCast(self.vtable)).FindSourceFile(@as(*const IDebugSymbols2, @ptrCast(self)), StartElement, File, Flags, FoundElement, Buffer, BufferSize, FoundSize); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols2_GetSourceFileLineOffsets(self: *const T, File: ?[*:0]const u8, Buffer: ?[*]u64, BufferLines: u32, FileLines: ?*u32) HRESULT { return @as(*const IDebugSymbols2.VTable, @ptrCast(self.vtable)).GetSourceFileLineOffsets(@as(*const IDebugSymbols2, @ptrCast(self)), File, Buffer, BufferLines, FileLines); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols2_GetModuleVersionInformation(self: *const T, Index: u32, Base: u64, Item: ?[*:0]const u8, Buffer: ?*anyopaque, BufferSize: u32, VerInfoSize: ?*u32) HRESULT { return @as(*const IDebugSymbols2.VTable, @ptrCast(self.vtable)).GetModuleVersionInformation(@as(*const IDebugSymbols2, @ptrCast(self)), Index, Base, Item, Buffer, BufferSize, VerInfoSize); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols2_GetModuleNameString(self: *const T, Which: u32, Index: u32, Base: u64, Buffer: ?[*:0]u8, BufferSize: u32, NameSize: ?*u32) HRESULT { return @as(*const IDebugSymbols2.VTable, @ptrCast(self.vtable)).GetModuleNameString(@as(*const IDebugSymbols2, @ptrCast(self)), Which, Index, Base, Buffer, BufferSize, NameSize); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols2_GetConstantName(self: *const T, Module: u64, TypeId: u32, Value: u64, NameBuffer: ?[*:0]u8, NameBufferSize: u32, NameSize: ?*u32) HRESULT { return @as(*const IDebugSymbols2.VTable, @ptrCast(self.vtable)).GetConstantName(@as(*const IDebugSymbols2, @ptrCast(self)), Module, TypeId, Value, NameBuffer, NameBufferSize, NameSize); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols2_GetFieldName(self: *const T, Module: u64, TypeId: u32, FieldIndex: u32, NameBuffer: ?[*:0]u8, NameBufferSize: u32, NameSize: ?*u32) HRESULT { return @as(*const IDebugSymbols2.VTable, @ptrCast(self.vtable)).GetFieldName(@as(*const IDebugSymbols2, @ptrCast(self)), Module, TypeId, FieldIndex, NameBuffer, NameBufferSize, NameSize); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols2_GetTypeOptions(self: *const T, Options: ?*u32) HRESULT { return @as(*const IDebugSymbols2.VTable, @ptrCast(self.vtable)).GetTypeOptions(@as(*const IDebugSymbols2, @ptrCast(self)), Options); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols2_AddTypeOptions(self: *const T, Options: u32) HRESULT { return @as(*const IDebugSymbols2.VTable, @ptrCast(self.vtable)).AddTypeOptions(@as(*const IDebugSymbols2, @ptrCast(self)), Options); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols2_RemoveTypeOptions(self: *const T, Options: u32) HRESULT { return @as(*const IDebugSymbols2.VTable, @ptrCast(self.vtable)).RemoveTypeOptions(@as(*const IDebugSymbols2, @ptrCast(self)), Options); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols2_SetTypeOptions(self: *const T, Options: u32) HRESULT { return @as(*const IDebugSymbols2.VTable, @ptrCast(self.vtable)).SetTypeOptions(@as(*const IDebugSymbols2, @ptrCast(self)), Options); } }; } pub usingnamespace MethodMixin(@This()); }; pub const DEBUG_MODULE_AND_ID = extern struct { ModuleBase: u64, Id: u64, }; pub const DEBUG_SYMBOL_SOURCE_ENTRY = extern struct { ModuleBase: u64, Offset: u64, FileNameId: u64, EngineInternal: u64, Size: u32, Flags: u32, FileNameSize: u32, StartLine: u32, EndLine: u32, StartColumn: u32, EndColumn: u32, Reserved: u32, }; const IID_IDebugSymbols3_Value = Guid.initString("f02fbecc-50ac-4f36-9ad9-c975e8f32ff8"); pub const IID_IDebugSymbols3 = &IID_IDebugSymbols3_Value; pub const IDebugSymbols3 = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, GetSymbolOptions: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols3, Options: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols3, Options: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, AddSymbolOptions: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols3, Options: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols3, Options: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, RemoveSymbolOptions: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols3, Options: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols3, Options: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetSymbolOptions: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols3, Options: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols3, Options: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetNameByOffset: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols3, Offset: u64, NameBuffer: ?[*:0]u8, NameBufferSize: u32, NameSize: ?*u32, Displacement: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols3, Offset: u64, NameBuffer: ?[*:0]u8, NameBufferSize: u32, NameSize: ?*u32, Displacement: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetOffsetByName: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols3, Symbol: ?[*:0]const u8, Offset: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols3, Symbol: ?[*:0]const u8, Offset: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetNearNameByOffset: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols3, Offset: u64, Delta: i32, NameBuffer: ?[*:0]u8, NameBufferSize: u32, NameSize: ?*u32, Displacement: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols3, Offset: u64, Delta: i32, NameBuffer: ?[*:0]u8, NameBufferSize: u32, NameSize: ?*u32, Displacement: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetLineByOffset: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols3, Offset: u64, Line: ?*u32, FileBuffer: ?[*:0]u8, FileBufferSize: u32, FileSize: ?*u32, Displacement: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols3, Offset: u64, Line: ?*u32, FileBuffer: ?[*:0]u8, FileBufferSize: u32, FileSize: ?*u32, Displacement: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetOffsetByLine: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols3, Line: u32, File: ?[*:0]const u8, Offset: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols3, Line: u32, File: ?[*:0]const u8, Offset: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetNumberModules: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols3, Loaded: ?*u32, Unloaded: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols3, Loaded: ?*u32, Unloaded: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetModuleByIndex: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols3, Index: u32, Base: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols3, Index: u32, Base: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetModuleByModuleName: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols3, Name: ?[*:0]const u8, StartIndex: u32, Index: ?*u32, Base: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols3, Name: ?[*:0]const u8, StartIndex: u32, Index: ?*u32, Base: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetModuleByOffset: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols3, Offset: u64, StartIndex: u32, Index: ?*u32, Base: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols3, Offset: u64, StartIndex: u32, Index: ?*u32, Base: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetModuleNames: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols3, Index: u32, Base: u64, ImageNameBuffer: ?[*:0]u8, ImageNameBufferSize: u32, ImageNameSize: ?*u32, ModuleNameBuffer: ?[*:0]u8, ModuleNameBufferSize: u32, ModuleNameSize: ?*u32, LoadedImageNameBuffer: ?[*:0]u8, LoadedImageNameBufferSize: u32, LoadedImageNameSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols3, Index: u32, Base: u64, ImageNameBuffer: ?[*:0]u8, ImageNameBufferSize: u32, ImageNameSize: ?*u32, ModuleNameBuffer: ?[*:0]u8, ModuleNameBufferSize: u32, ModuleNameSize: ?*u32, LoadedImageNameBuffer: ?[*:0]u8, LoadedImageNameBufferSize: u32, LoadedImageNameSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetModuleParameters: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols3, Count: u32, Bases: ?[*]u64, Start: u32, Params: [*]DEBUG_MODULE_PARAMETERS, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols3, Count: u32, Bases: ?[*]u64, Start: u32, Params: [*]DEBUG_MODULE_PARAMETERS, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetSymbolModule: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols3, Symbol: ?[*:0]const u8, Base: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols3, Symbol: ?[*:0]const u8, Base: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetTypeName: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols3, Module: u64, TypeId: u32, NameBuffer: ?[*:0]u8, NameBufferSize: u32, NameSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols3, Module: u64, TypeId: u32, NameBuffer: ?[*:0]u8, NameBufferSize: u32, NameSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetTypeId: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols3, Module: u64, Name: ?[*:0]const u8, TypeId: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols3, Module: u64, Name: ?[*:0]const u8, TypeId: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetTypeSize: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols3, Module: u64, TypeId: u32, Size: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols3, Module: u64, TypeId: u32, Size: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetFieldOffset: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols3, Module: u64, TypeId: u32, Field: ?[*:0]const u8, Offset: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols3, Module: u64, TypeId: u32, Field: ?[*:0]const u8, Offset: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetSymbolTypeId: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols3, Symbol: ?[*:0]const u8, TypeId: ?*u32, Module: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols3, Symbol: ?[*:0]const u8, TypeId: ?*u32, Module: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetOffsetTypeId: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols3, Offset: u64, TypeId: ?*u32, Module: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols3, Offset: u64, TypeId: ?*u32, Module: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, ReadTypedDataVirtual: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols3, Offset: u64, Module: u64, TypeId: u32, // TODO: what to do with BytesParamIndex 4? Buffer: ?*anyopaque, BufferSize: u32, BytesRead: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols3, Offset: u64, Module: u64, TypeId: u32, // TODO: what to do with BytesParamIndex 4? Buffer: ?*anyopaque, BufferSize: u32, BytesRead: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, WriteTypedDataVirtual: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols3, Offset: u64, Module: u64, TypeId: u32, // TODO: what to do with BytesParamIndex 4? Buffer: ?*anyopaque, BufferSize: u32, BytesWritten: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols3, Offset: u64, Module: u64, TypeId: u32, // TODO: what to do with BytesParamIndex 4? Buffer: ?*anyopaque, BufferSize: u32, BytesWritten: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, OutputTypedDataVirtual: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols3, OutputControl: u32, Offset: u64, Module: u64, TypeId: u32, Flags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols3, OutputControl: u32, Offset: u64, Module: u64, TypeId: u32, Flags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, ReadTypedDataPhysical: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols3, Offset: u64, Module: u64, TypeId: u32, // TODO: what to do with BytesParamIndex 4? Buffer: ?*anyopaque, BufferSize: u32, BytesRead: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols3, Offset: u64, Module: u64, TypeId: u32, // TODO: what to do with BytesParamIndex 4? Buffer: ?*anyopaque, BufferSize: u32, BytesRead: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, WriteTypedDataPhysical: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols3, Offset: u64, Module: u64, TypeId: u32, // TODO: what to do with BytesParamIndex 4? Buffer: ?*anyopaque, BufferSize: u32, BytesWritten: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols3, Offset: u64, Module: u64, TypeId: u32, // TODO: what to do with BytesParamIndex 4? Buffer: ?*anyopaque, BufferSize: u32, BytesWritten: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, OutputTypedDataPhysical: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols3, OutputControl: u32, Offset: u64, Module: u64, TypeId: u32, Flags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols3, OutputControl: u32, Offset: u64, Module: u64, TypeId: u32, Flags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetScope: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols3, InstructionOffset: ?*u64, ScopeFrame: ?*DEBUG_STACK_FRAME, // TODO: what to do with BytesParamIndex 3? ScopeContext: ?*anyopaque, ScopeContextSize: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols3, InstructionOffset: ?*u64, ScopeFrame: ?*DEBUG_STACK_FRAME, // TODO: what to do with BytesParamIndex 3? ScopeContext: ?*anyopaque, ScopeContextSize: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetScope: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols3, InstructionOffset: u64, ScopeFrame: ?*DEBUG_STACK_FRAME, // TODO: what to do with BytesParamIndex 3? ScopeContext: ?*anyopaque, ScopeContextSize: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols3, InstructionOffset: u64, ScopeFrame: ?*DEBUG_STACK_FRAME, // TODO: what to do with BytesParamIndex 3? ScopeContext: ?*anyopaque, ScopeContextSize: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, ResetScope: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols3, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols3, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetScopeSymbolGroup: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols3, Flags: u32, Update: ?*IDebugSymbolGroup, Symbols: ?*?*IDebugSymbolGroup, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols3, Flags: u32, Update: ?*IDebugSymbolGroup, Symbols: ?*?*IDebugSymbolGroup, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, CreateSymbolGroup: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols3, Group: ?*?*IDebugSymbolGroup, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols3, Group: ?*?*IDebugSymbolGroup, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, StartSymbolMatch: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols3, Pattern: ?[*:0]const u8, Handle: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols3, Pattern: ?[*:0]const u8, Handle: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetNextSymbolMatch: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols3, Handle: u64, Buffer: ?[*:0]u8, BufferSize: u32, MatchSize: ?*u32, Offset: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols3, Handle: u64, Buffer: ?[*:0]u8, BufferSize: u32, MatchSize: ?*u32, Offset: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, EndSymbolMatch: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols3, Handle: u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols3, Handle: u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Reload: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols3, Module: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols3, Module: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetSymbolPath: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols3, Buffer: ?[*:0]u8, BufferSize: u32, PathSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols3, Buffer: ?[*:0]u8, BufferSize: u32, PathSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetSymbolPath: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols3, Path: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols3, Path: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, AppendSymbolPath: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols3, Addition: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols3, Addition: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetImagePath: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols3, Buffer: ?[*:0]u8, BufferSize: u32, PathSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols3, Buffer: ?[*:0]u8, BufferSize: u32, PathSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetImagePath: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols3, Path: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols3, Path: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, AppendImagePath: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols3, Addition: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols3, Addition: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetSourcePath: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols3, Buffer: ?[*:0]u8, BufferSize: u32, PathSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols3, Buffer: ?[*:0]u8, BufferSize: u32, PathSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetSourcePathElement: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols3, Index: u32, Buffer: ?[*:0]u8, BufferSize: u32, ElementSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols3, Index: u32, Buffer: ?[*:0]u8, BufferSize: u32, ElementSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetSourcePath: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols3, Path: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols3, Path: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, AppendSourcePath: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols3, Addition: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols3, Addition: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, FindSourceFile: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols3, StartElement: u32, File: ?[*:0]const u8, Flags: u32, FoundElement: ?*u32, Buffer: ?[*:0]u8, BufferSize: u32, FoundSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols3, StartElement: u32, File: ?[*:0]const u8, Flags: u32, FoundElement: ?*u32, Buffer: ?[*:0]u8, BufferSize: u32, FoundSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetSourceFileLineOffsets: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols3, File: ?[*:0]const u8, Buffer: ?[*]u64, BufferLines: u32, FileLines: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols3, File: ?[*:0]const u8, Buffer: ?[*]u64, BufferLines: u32, FileLines: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetModuleVersionInformation: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols3, Index: u32, Base: u64, Item: ?[*:0]const u8, // TODO: what to do with BytesParamIndex 4? Buffer: ?*anyopaque, BufferSize: u32, VerInfoSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols3, Index: u32, Base: u64, Item: ?[*:0]const u8, // TODO: what to do with BytesParamIndex 4? Buffer: ?*anyopaque, BufferSize: u32, VerInfoSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetModuleNameString: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols3, Which: u32, Index: u32, Base: u64, Buffer: ?[*:0]u8, BufferSize: u32, NameSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols3, Which: u32, Index: u32, Base: u64, Buffer: ?[*:0]u8, BufferSize: u32, NameSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetConstantName: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols3, Module: u64, TypeId: u32, Value: u64, NameBuffer: ?[*:0]u8, NameBufferSize: u32, NameSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols3, Module: u64, TypeId: u32, Value: u64, NameBuffer: ?[*:0]u8, NameBufferSize: u32, NameSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetFieldName: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols3, Module: u64, TypeId: u32, FieldIndex: u32, NameBuffer: ?[*:0]u8, NameBufferSize: u32, NameSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols3, Module: u64, TypeId: u32, FieldIndex: u32, NameBuffer: ?[*:0]u8, NameBufferSize: u32, NameSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetTypeOptions: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols3, Options: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols3, Options: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, AddTypeOptions: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols3, Options: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols3, Options: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, RemoveTypeOptions: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols3, Options: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols3, Options: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetTypeOptions: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols3, Options: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols3, Options: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetNameByOffsetWide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols3, Offset: u64, NameBuffer: ?[*:0]u16, NameBufferSize: u32, NameSize: ?*u32, Displacement: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols3, Offset: u64, NameBuffer: ?[*:0]u16, NameBufferSize: u32, NameSize: ?*u32, Displacement: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetOffsetByNameWide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols3, Symbol: ?[*:0]const u16, Offset: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols3, Symbol: ?[*:0]const u16, Offset: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetNearNameByOffsetWide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols3, Offset: u64, Delta: i32, NameBuffer: ?[*:0]u16, NameBufferSize: u32, NameSize: ?*u32, Displacement: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols3, Offset: u64, Delta: i32, NameBuffer: ?[*:0]u16, NameBufferSize: u32, NameSize: ?*u32, Displacement: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetLineByOffsetWide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols3, Offset: u64, Line: ?*u32, FileBuffer: ?[*:0]u16, FileBufferSize: u32, FileSize: ?*u32, Displacement: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols3, Offset: u64, Line: ?*u32, FileBuffer: ?[*:0]u16, FileBufferSize: u32, FileSize: ?*u32, Displacement: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetOffsetByLineWide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols3, Line: u32, File: ?[*:0]const u16, Offset: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols3, Line: u32, File: ?[*:0]const u16, Offset: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetModuleByModuleNameWide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols3, Name: ?[*:0]const u16, StartIndex: u32, Index: ?*u32, Base: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols3, Name: ?[*:0]const u16, StartIndex: u32, Index: ?*u32, Base: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetSymbolModuleWide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols3, Symbol: ?[*:0]const u16, Base: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols3, Symbol: ?[*:0]const u16, Base: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetTypeNameWide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols3, Module: u64, TypeId: u32, NameBuffer: ?[*:0]u16, NameBufferSize: u32, NameSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols3, Module: u64, TypeId: u32, NameBuffer: ?[*:0]u16, NameBufferSize: u32, NameSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetTypeIdWide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols3, Module: u64, Name: ?[*:0]const u16, TypeId: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols3, Module: u64, Name: ?[*:0]const u16, TypeId: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetFieldOffsetWide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols3, Module: u64, TypeId: u32, Field: ?[*:0]const u16, Offset: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols3, Module: u64, TypeId: u32, Field: ?[*:0]const u16, Offset: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetSymbolTypeIdWide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols3, Symbol: ?[*:0]const u16, TypeId: ?*u32, Module: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols3, Symbol: ?[*:0]const u16, TypeId: ?*u32, Module: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetScopeSymbolGroup2: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols3, Flags: u32, Update: ?*IDebugSymbolGroup2, Symbols: ?*?*IDebugSymbolGroup2, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols3, Flags: u32, Update: ?*IDebugSymbolGroup2, Symbols: ?*?*IDebugSymbolGroup2, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, CreateSymbolGroup2: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols3, Group: ?*?*IDebugSymbolGroup2, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols3, Group: ?*?*IDebugSymbolGroup2, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, StartSymbolMatchWide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols3, Pattern: ?[*:0]const u16, Handle: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols3, Pattern: ?[*:0]const u16, Handle: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetNextSymbolMatchWide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols3, Handle: u64, Buffer: ?[*:0]u16, BufferSize: u32, MatchSize: ?*u32, Offset: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols3, Handle: u64, Buffer: ?[*:0]u16, BufferSize: u32, MatchSize: ?*u32, Offset: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, ReloadWide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols3, Module: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols3, Module: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetSymbolPathWide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols3, Buffer: ?[*:0]u16, BufferSize: u32, PathSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols3, Buffer: ?[*:0]u16, BufferSize: u32, PathSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetSymbolPathWide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols3, Path: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols3, Path: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, AppendSymbolPathWide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols3, Addition: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols3, Addition: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetImagePathWide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols3, Buffer: ?[*:0]u16, BufferSize: u32, PathSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols3, Buffer: ?[*:0]u16, BufferSize: u32, PathSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetImagePathWide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols3, Path: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols3, Path: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, AppendImagePathWide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols3, Addition: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols3, Addition: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetSourcePathWide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols3, Buffer: ?[*:0]u16, BufferSize: u32, PathSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols3, Buffer: ?[*:0]u16, BufferSize: u32, PathSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetSourcePathElementWide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols3, Index: u32, Buffer: ?[*:0]u16, BufferSize: u32, ElementSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols3, Index: u32, Buffer: ?[*:0]u16, BufferSize: u32, ElementSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetSourcePathWide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols3, Path: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols3, Path: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, AppendSourcePathWide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols3, Addition: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols3, Addition: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, FindSourceFileWide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols3, StartElement: u32, File: ?[*:0]const u16, Flags: u32, FoundElement: ?*u32, Buffer: ?[*:0]u16, BufferSize: u32, FoundSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols3, StartElement: u32, File: ?[*:0]const u16, Flags: u32, FoundElement: ?*u32, Buffer: ?[*:0]u16, BufferSize: u32, FoundSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetSourceFileLineOffsetsWide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols3, File: ?[*:0]const u16, Buffer: ?[*]u64, BufferLines: u32, FileLines: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols3, File: ?[*:0]const u16, Buffer: ?[*]u64, BufferLines: u32, FileLines: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetModuleVersionInformationWide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols3, Index: u32, Base: u64, Item: ?[*:0]const u16, // TODO: what to do with BytesParamIndex 4? Buffer: ?*anyopaque, BufferSize: u32, VerInfoSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols3, Index: u32, Base: u64, Item: ?[*:0]const u16, // TODO: what to do with BytesParamIndex 4? Buffer: ?*anyopaque, BufferSize: u32, VerInfoSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetModuleNameStringWide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols3, Which: u32, Index: u32, Base: u64, Buffer: ?[*:0]u16, BufferSize: u32, NameSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols3, Which: u32, Index: u32, Base: u64, Buffer: ?[*:0]u16, BufferSize: u32, NameSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetConstantNameWide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols3, Module: u64, TypeId: u32, Value: u64, NameBuffer: ?[*:0]u16, NameBufferSize: u32, NameSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols3, Module: u64, TypeId: u32, Value: u64, NameBuffer: ?[*:0]u16, NameBufferSize: u32, NameSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetFieldNameWide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols3, Module: u64, TypeId: u32, FieldIndex: u32, NameBuffer: ?[*:0]u16, NameBufferSize: u32, NameSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols3, Module: u64, TypeId: u32, FieldIndex: u32, NameBuffer: ?[*:0]u16, NameBufferSize: u32, NameSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, IsManagedModule: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols3, Index: u32, Base: u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols3, Index: u32, Base: u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetModuleByModuleName2: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols3, Name: ?[*:0]const u8, StartIndex: u32, Flags: u32, Index: ?*u32, Base: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols3, Name: ?[*:0]const u8, StartIndex: u32, Flags: u32, Index: ?*u32, Base: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetModuleByModuleName2Wide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols3, Name: ?[*:0]const u16, StartIndex: u32, Flags: u32, Index: ?*u32, Base: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols3, Name: ?[*:0]const u16, StartIndex: u32, Flags: u32, Index: ?*u32, Base: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetModuleByOffset2: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols3, Offset: u64, StartIndex: u32, Flags: u32, Index: ?*u32, Base: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols3, Offset: u64, StartIndex: u32, Flags: u32, Index: ?*u32, Base: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, AddSyntheticModule: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols3, Base: u64, Size: u32, ImagePath: ?[*:0]const u8, ModuleName: ?[*:0]const u8, Flags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols3, Base: u64, Size: u32, ImagePath: ?[*:0]const u8, ModuleName: ?[*:0]const u8, Flags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, AddSyntheticModuleWide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols3, Base: u64, Size: u32, ImagePath: ?[*:0]const u16, ModuleName: ?[*:0]const u16, Flags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols3, Base: u64, Size: u32, ImagePath: ?[*:0]const u16, ModuleName: ?[*:0]const u16, Flags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, RemoveSyntheticModule: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols3, Base: u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols3, Base: u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetCurrentScopeFrameIndex: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols3, Index: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols3, Index: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetScopeFrameByIndex: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols3, Index: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols3, Index: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetScopeFromJitDebugInfo: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols3, OutputControl: u32, InfoOffset: u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols3, OutputControl: u32, InfoOffset: u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetScopeFromStoredEvent: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols3, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols3, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, OutputSymbolByOffset: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols3, OutputControl: u32, Flags: u32, Offset: u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols3, OutputControl: u32, Flags: u32, Offset: u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetFunctionEntryByOffset: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols3, Offset: u64, Flags: u32, // TODO: what to do with BytesParamIndex 3? Buffer: ?*anyopaque, BufferSize: u32, BufferNeeded: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols3, Offset: u64, Flags: u32, // TODO: what to do with BytesParamIndex 3? Buffer: ?*anyopaque, BufferSize: u32, BufferNeeded: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetFieldTypeAndOffset: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols3, Module: u64, ContainerTypeId: u32, Field: ?[*:0]const u8, FieldTypeId: ?*u32, Offset: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols3, Module: u64, ContainerTypeId: u32, Field: ?[*:0]const u8, FieldTypeId: ?*u32, Offset: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetFieldTypeAndOffsetWide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols3, Module: u64, ContainerTypeId: u32, Field: ?[*:0]const u16, FieldTypeId: ?*u32, Offset: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols3, Module: u64, ContainerTypeId: u32, Field: ?[*:0]const u16, FieldTypeId: ?*u32, Offset: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, AddSyntheticSymbol: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols3, Offset: u64, Size: u32, Name: ?[*:0]const u8, Flags: u32, Id: ?*DEBUG_MODULE_AND_ID, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols3, Offset: u64, Size: u32, Name: ?[*:0]const u8, Flags: u32, Id: ?*DEBUG_MODULE_AND_ID, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, AddSyntheticSymbolWide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols3, Offset: u64, Size: u32, Name: ?[*:0]const u16, Flags: u32, Id: ?*DEBUG_MODULE_AND_ID, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols3, Offset: u64, Size: u32, Name: ?[*:0]const u16, Flags: u32, Id: ?*DEBUG_MODULE_AND_ID, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, RemoveSyntheticSymbol: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols3, Id: ?*DEBUG_MODULE_AND_ID, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols3, Id: ?*DEBUG_MODULE_AND_ID, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetSymbolEntriesByOffset: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols3, Offset: u64, Flags: u32, Ids: ?[*]DEBUG_MODULE_AND_ID, Displacements: ?[*]u64, IdsCount: u32, Entries: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols3, Offset: u64, Flags: u32, Ids: ?[*]DEBUG_MODULE_AND_ID, Displacements: ?[*]u64, IdsCount: u32, Entries: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetSymbolEntriesByName: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols3, Symbol: ?[*:0]const u8, Flags: u32, Ids: ?[*]DEBUG_MODULE_AND_ID, IdsCount: u32, Entries: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols3, Symbol: ?[*:0]const u8, Flags: u32, Ids: ?[*]DEBUG_MODULE_AND_ID, IdsCount: u32, Entries: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetSymbolEntriesByNameWide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols3, Symbol: ?[*:0]const u16, Flags: u32, Ids: ?[*]DEBUG_MODULE_AND_ID, IdsCount: u32, Entries: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols3, Symbol: ?[*:0]const u16, Flags: u32, Ids: ?[*]DEBUG_MODULE_AND_ID, IdsCount: u32, Entries: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetSymbolEntryByToken: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols3, ModuleBase: u64, Token: u32, Id: ?*DEBUG_MODULE_AND_ID, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols3, ModuleBase: u64, Token: u32, Id: ?*DEBUG_MODULE_AND_ID, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetSymbolEntryInformation: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols3, Id: ?*DEBUG_MODULE_AND_ID, Info: ?*DEBUG_SYMBOL_ENTRY, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols3, Id: ?*DEBUG_MODULE_AND_ID, Info: ?*DEBUG_SYMBOL_ENTRY, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetSymbolEntryString: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols3, Id: ?*DEBUG_MODULE_AND_ID, Which: u32, Buffer: ?[*:0]u8, BufferSize: u32, StringSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols3, Id: ?*DEBUG_MODULE_AND_ID, Which: u32, Buffer: ?[*:0]u8, BufferSize: u32, StringSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetSymbolEntryStringWide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols3, Id: ?*DEBUG_MODULE_AND_ID, Which: u32, Buffer: ?[*:0]u16, BufferSize: u32, StringSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols3, Id: ?*DEBUG_MODULE_AND_ID, Which: u32, Buffer: ?[*:0]u16, BufferSize: u32, StringSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetSymbolEntryOffsetRegions: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols3, Id: ?*DEBUG_MODULE_AND_ID, Flags: u32, Regions: ?[*]DEBUG_OFFSET_REGION, RegionsCount: u32, RegionsAvail: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols3, Id: ?*DEBUG_MODULE_AND_ID, Flags: u32, Regions: ?[*]DEBUG_OFFSET_REGION, RegionsCount: u32, RegionsAvail: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetSymbolEntryBySymbolEntry: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols3, FromId: ?*DEBUG_MODULE_AND_ID, Flags: u32, ToId: ?*DEBUG_MODULE_AND_ID, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols3, FromId: ?*DEBUG_MODULE_AND_ID, Flags: u32, ToId: ?*DEBUG_MODULE_AND_ID, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetSourceEntriesByOffset: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols3, Offset: u64, Flags: u32, Entries: ?[*]DEBUG_SYMBOL_SOURCE_ENTRY, EntriesCount: u32, EntriesAvail: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols3, Offset: u64, Flags: u32, Entries: ?[*]DEBUG_SYMBOL_SOURCE_ENTRY, EntriesCount: u32, EntriesAvail: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetSourceEntriesByLine: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols3, Line: u32, File: ?[*:0]const u8, Flags: u32, Entries: ?[*]DEBUG_SYMBOL_SOURCE_ENTRY, EntriesCount: u32, EntriesAvail: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols3, Line: u32, File: ?[*:0]const u8, Flags: u32, Entries: ?[*]DEBUG_SYMBOL_SOURCE_ENTRY, EntriesCount: u32, EntriesAvail: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetSourceEntriesByLineWide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols3, Line: u32, File: ?[*:0]const u16, Flags: u32, Entries: ?[*]DEBUG_SYMBOL_SOURCE_ENTRY, EntriesCount: u32, EntriesAvail: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols3, Line: u32, File: ?[*:0]const u16, Flags: u32, Entries: ?[*]DEBUG_SYMBOL_SOURCE_ENTRY, EntriesCount: u32, EntriesAvail: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetSourceEntryString: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols3, Entry: ?*DEBUG_SYMBOL_SOURCE_ENTRY, Which: u32, Buffer: ?[*:0]u8, BufferSize: u32, StringSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols3, Entry: ?*DEBUG_SYMBOL_SOURCE_ENTRY, Which: u32, Buffer: ?[*:0]u8, BufferSize: u32, StringSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetSourceEntryStringWide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols3, Entry: ?*DEBUG_SYMBOL_SOURCE_ENTRY, Which: u32, Buffer: ?[*:0]u16, BufferSize: u32, StringSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols3, Entry: ?*DEBUG_SYMBOL_SOURCE_ENTRY, Which: u32, Buffer: ?[*:0]u16, BufferSize: u32, StringSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetSourceEntryOffsetRegions: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols3, Entry: ?*DEBUG_SYMBOL_SOURCE_ENTRY, Flags: u32, Regions: ?[*]DEBUG_OFFSET_REGION, RegionsCount: u32, RegionsAvail: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols3, Entry: ?*DEBUG_SYMBOL_SOURCE_ENTRY, Flags: u32, Regions: ?[*]DEBUG_OFFSET_REGION, RegionsCount: u32, RegionsAvail: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetSourceEntryBySourceEntry: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols3, FromEntry: ?*DEBUG_SYMBOL_SOURCE_ENTRY, Flags: u32, ToEntry: ?*DEBUG_SYMBOL_SOURCE_ENTRY, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols3, FromEntry: ?*DEBUG_SYMBOL_SOURCE_ENTRY, Flags: u32, ToEntry: ?*DEBUG_SYMBOL_SOURCE_ENTRY, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols3_GetSymbolOptions(self: *const T, Options: ?*u32) HRESULT { return @as(*const IDebugSymbols3.VTable, @ptrCast(self.vtable)).GetSymbolOptions(@as(*const IDebugSymbols3, @ptrCast(self)), Options); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols3_AddSymbolOptions(self: *const T, Options: u32) HRESULT { return @as(*const IDebugSymbols3.VTable, @ptrCast(self.vtable)).AddSymbolOptions(@as(*const IDebugSymbols3, @ptrCast(self)), Options); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols3_RemoveSymbolOptions(self: *const T, Options: u32) HRESULT { return @as(*const IDebugSymbols3.VTable, @ptrCast(self.vtable)).RemoveSymbolOptions(@as(*const IDebugSymbols3, @ptrCast(self)), Options); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols3_SetSymbolOptions(self: *const T, Options: u32) HRESULT { return @as(*const IDebugSymbols3.VTable, @ptrCast(self.vtable)).SetSymbolOptions(@as(*const IDebugSymbols3, @ptrCast(self)), Options); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols3_GetNameByOffset(self: *const T, Offset: u64, NameBuffer: ?[*:0]u8, NameBufferSize: u32, NameSize: ?*u32, Displacement: ?*u64) HRESULT { return @as(*const IDebugSymbols3.VTable, @ptrCast(self.vtable)).GetNameByOffset(@as(*const IDebugSymbols3, @ptrCast(self)), Offset, NameBuffer, NameBufferSize, NameSize, Displacement); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols3_GetOffsetByName(self: *const T, _param_Symbol: ?[*:0]const u8, Offset: ?*u64) HRESULT { return @as(*const IDebugSymbols3.VTable, @ptrCast(self.vtable)).GetOffsetByName(@as(*const IDebugSymbols3, @ptrCast(self)), _param_Symbol, Offset); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols3_GetNearNameByOffset(self: *const T, Offset: u64, Delta: i32, NameBuffer: ?[*:0]u8, NameBufferSize: u32, NameSize: ?*u32, Displacement: ?*u64) HRESULT { return @as(*const IDebugSymbols3.VTable, @ptrCast(self.vtable)).GetNearNameByOffset(@as(*const IDebugSymbols3, @ptrCast(self)), Offset, Delta, NameBuffer, NameBufferSize, NameSize, Displacement); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols3_GetLineByOffset(self: *const T, Offset: u64, Line: ?*u32, FileBuffer: ?[*:0]u8, FileBufferSize: u32, FileSize: ?*u32, Displacement: ?*u64) HRESULT { return @as(*const IDebugSymbols3.VTable, @ptrCast(self.vtable)).GetLineByOffset(@as(*const IDebugSymbols3, @ptrCast(self)), Offset, Line, FileBuffer, FileBufferSize, FileSize, Displacement); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols3_GetOffsetByLine(self: *const T, Line: u32, File: ?[*:0]const u8, Offset: ?*u64) HRESULT { return @as(*const IDebugSymbols3.VTable, @ptrCast(self.vtable)).GetOffsetByLine(@as(*const IDebugSymbols3, @ptrCast(self)), Line, File, Offset); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols3_GetNumberModules(self: *const T, Loaded: ?*u32, Unloaded: ?*u32) HRESULT { return @as(*const IDebugSymbols3.VTable, @ptrCast(self.vtable)).GetNumberModules(@as(*const IDebugSymbols3, @ptrCast(self)), Loaded, Unloaded); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols3_GetModuleByIndex(self: *const T, Index: u32, Base: ?*u64) HRESULT { return @as(*const IDebugSymbols3.VTable, @ptrCast(self.vtable)).GetModuleByIndex(@as(*const IDebugSymbols3, @ptrCast(self)), Index, Base); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols3_GetModuleByModuleName(self: *const T, Name: ?[*:0]const u8, StartIndex: u32, Index: ?*u32, Base: ?*u64) HRESULT { return @as(*const IDebugSymbols3.VTable, @ptrCast(self.vtable)).GetModuleByModuleName(@as(*const IDebugSymbols3, @ptrCast(self)), Name, StartIndex, Index, Base); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols3_GetModuleByOffset(self: *const T, Offset: u64, StartIndex: u32, Index: ?*u32, Base: ?*u64) HRESULT { return @as(*const IDebugSymbols3.VTable, @ptrCast(self.vtable)).GetModuleByOffset(@as(*const IDebugSymbols3, @ptrCast(self)), Offset, StartIndex, Index, Base); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols3_GetModuleNames(self: *const T, Index: u32, Base: u64, ImageNameBuffer: ?[*:0]u8, ImageNameBufferSize: u32, ImageNameSize: ?*u32, ModuleNameBuffer: ?[*:0]u8, ModuleNameBufferSize: u32, ModuleNameSize: ?*u32, LoadedImageNameBuffer: ?[*:0]u8, LoadedImageNameBufferSize: u32, LoadedImageNameSize: ?*u32) HRESULT { return @as(*const IDebugSymbols3.VTable, @ptrCast(self.vtable)).GetModuleNames(@as(*const IDebugSymbols3, @ptrCast(self)), Index, Base, ImageNameBuffer, ImageNameBufferSize, ImageNameSize, ModuleNameBuffer, ModuleNameBufferSize, ModuleNameSize, LoadedImageNameBuffer, LoadedImageNameBufferSize, LoadedImageNameSize); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols3_GetModuleParameters(self: *const T, Count: u32, Bases: ?[*]u64, Start: u32, Params: [*]DEBUG_MODULE_PARAMETERS) HRESULT { return @as(*const IDebugSymbols3.VTable, @ptrCast(self.vtable)).GetModuleParameters(@as(*const IDebugSymbols3, @ptrCast(self)), Count, Bases, Start, Params); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols3_GetSymbolModule(self: *const T, _param_Symbol: ?[*:0]const u8, Base: ?*u64) HRESULT { return @as(*const IDebugSymbols3.VTable, @ptrCast(self.vtable)).GetSymbolModule(@as(*const IDebugSymbols3, @ptrCast(self)), _param_Symbol, Base); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols3_GetTypeName(self: *const T, Module: u64, TypeId: u32, NameBuffer: ?[*:0]u8, NameBufferSize: u32, NameSize: ?*u32) HRESULT { return @as(*const IDebugSymbols3.VTable, @ptrCast(self.vtable)).GetTypeName(@as(*const IDebugSymbols3, @ptrCast(self)), Module, TypeId, NameBuffer, NameBufferSize, NameSize); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols3_GetTypeId(self: *const T, Module: u64, Name: ?[*:0]const u8, TypeId: ?*u32) HRESULT { return @as(*const IDebugSymbols3.VTable, @ptrCast(self.vtable)).GetTypeId(@as(*const IDebugSymbols3, @ptrCast(self)), Module, Name, TypeId); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols3_GetTypeSize(self: *const T, Module: u64, TypeId: u32, Size: ?*u32) HRESULT { return @as(*const IDebugSymbols3.VTable, @ptrCast(self.vtable)).GetTypeSize(@as(*const IDebugSymbols3, @ptrCast(self)), Module, TypeId, Size); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols3_GetFieldOffset(self: *const T, Module: u64, TypeId: u32, Field: ?[*:0]const u8, Offset: ?*u32) HRESULT { return @as(*const IDebugSymbols3.VTable, @ptrCast(self.vtable)).GetFieldOffset(@as(*const IDebugSymbols3, @ptrCast(self)), Module, TypeId, Field, Offset); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols3_GetSymbolTypeId(self: *const T, _param_Symbol: ?[*:0]const u8, TypeId: ?*u32, Module: ?*u64) HRESULT { return @as(*const IDebugSymbols3.VTable, @ptrCast(self.vtable)).GetSymbolTypeId(@as(*const IDebugSymbols3, @ptrCast(self)), _param_Symbol, TypeId, Module); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols3_GetOffsetTypeId(self: *const T, Offset: u64, TypeId: ?*u32, Module: ?*u64) HRESULT { return @as(*const IDebugSymbols3.VTable, @ptrCast(self.vtable)).GetOffsetTypeId(@as(*const IDebugSymbols3, @ptrCast(self)), Offset, TypeId, Module); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols3_ReadTypedDataVirtual(self: *const T, Offset: u64, Module: u64, TypeId: u32, Buffer: ?*anyopaque, BufferSize: u32, BytesRead: ?*u32) HRESULT { return @as(*const IDebugSymbols3.VTable, @ptrCast(self.vtable)).ReadTypedDataVirtual(@as(*const IDebugSymbols3, @ptrCast(self)), Offset, Module, TypeId, Buffer, BufferSize, BytesRead); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols3_WriteTypedDataVirtual(self: *const T, Offset: u64, Module: u64, TypeId: u32, Buffer: ?*anyopaque, BufferSize: u32, BytesWritten: ?*u32) HRESULT { return @as(*const IDebugSymbols3.VTable, @ptrCast(self.vtable)).WriteTypedDataVirtual(@as(*const IDebugSymbols3, @ptrCast(self)), Offset, Module, TypeId, Buffer, BufferSize, BytesWritten); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols3_OutputTypedDataVirtual(self: *const T, OutputControl: u32, Offset: u64, Module: u64, TypeId: u32, Flags: u32) HRESULT { return @as(*const IDebugSymbols3.VTable, @ptrCast(self.vtable)).OutputTypedDataVirtual(@as(*const IDebugSymbols3, @ptrCast(self)), OutputControl, Offset, Module, TypeId, Flags); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols3_ReadTypedDataPhysical(self: *const T, Offset: u64, Module: u64, TypeId: u32, Buffer: ?*anyopaque, BufferSize: u32, BytesRead: ?*u32) HRESULT { return @as(*const IDebugSymbols3.VTable, @ptrCast(self.vtable)).ReadTypedDataPhysical(@as(*const IDebugSymbols3, @ptrCast(self)), Offset, Module, TypeId, Buffer, BufferSize, BytesRead); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols3_WriteTypedDataPhysical(self: *const T, Offset: u64, Module: u64, TypeId: u32, Buffer: ?*anyopaque, BufferSize: u32, BytesWritten: ?*u32) HRESULT { return @as(*const IDebugSymbols3.VTable, @ptrCast(self.vtable)).WriteTypedDataPhysical(@as(*const IDebugSymbols3, @ptrCast(self)), Offset, Module, TypeId, Buffer, BufferSize, BytesWritten); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols3_OutputTypedDataPhysical(self: *const T, OutputControl: u32, Offset: u64, Module: u64, TypeId: u32, Flags: u32) HRESULT { return @as(*const IDebugSymbols3.VTable, @ptrCast(self.vtable)).OutputTypedDataPhysical(@as(*const IDebugSymbols3, @ptrCast(self)), OutputControl, Offset, Module, TypeId, Flags); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols3_GetScope(self: *const T, InstructionOffset: ?*u64, ScopeFrame: ?*DEBUG_STACK_FRAME, ScopeContext: ?*anyopaque, ScopeContextSize: u32) HRESULT { return @as(*const IDebugSymbols3.VTable, @ptrCast(self.vtable)).GetScope(@as(*const IDebugSymbols3, @ptrCast(self)), InstructionOffset, ScopeFrame, ScopeContext, ScopeContextSize); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols3_SetScope(self: *const T, InstructionOffset: u64, ScopeFrame: ?*DEBUG_STACK_FRAME, ScopeContext: ?*anyopaque, ScopeContextSize: u32) HRESULT { return @as(*const IDebugSymbols3.VTable, @ptrCast(self.vtable)).SetScope(@as(*const IDebugSymbols3, @ptrCast(self)), InstructionOffset, ScopeFrame, ScopeContext, ScopeContextSize); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols3_ResetScope(self: *const T) HRESULT { return @as(*const IDebugSymbols3.VTable, @ptrCast(self.vtable)).ResetScope(@as(*const IDebugSymbols3, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols3_GetScopeSymbolGroup(self: *const T, Flags: u32, Update: ?*IDebugSymbolGroup, Symbols: ?*?*IDebugSymbolGroup) HRESULT { return @as(*const IDebugSymbols3.VTable, @ptrCast(self.vtable)).GetScopeSymbolGroup(@as(*const IDebugSymbols3, @ptrCast(self)), Flags, Update, Symbols); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols3_CreateSymbolGroup(self: *const T, Group: ?*?*IDebugSymbolGroup) HRESULT { return @as(*const IDebugSymbols3.VTable, @ptrCast(self.vtable)).CreateSymbolGroup(@as(*const IDebugSymbols3, @ptrCast(self)), Group); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols3_StartSymbolMatch(self: *const T, Pattern: ?[*:0]const u8, Handle: ?*u64) HRESULT { return @as(*const IDebugSymbols3.VTable, @ptrCast(self.vtable)).StartSymbolMatch(@as(*const IDebugSymbols3, @ptrCast(self)), Pattern, Handle); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols3_GetNextSymbolMatch(self: *const T, Handle: u64, Buffer: ?[*:0]u8, BufferSize: u32, MatchSize: ?*u32, Offset: ?*u64) HRESULT { return @as(*const IDebugSymbols3.VTable, @ptrCast(self.vtable)).GetNextSymbolMatch(@as(*const IDebugSymbols3, @ptrCast(self)), Handle, Buffer, BufferSize, MatchSize, Offset); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols3_EndSymbolMatch(self: *const T, Handle: u64) HRESULT { return @as(*const IDebugSymbols3.VTable, @ptrCast(self.vtable)).EndSymbolMatch(@as(*const IDebugSymbols3, @ptrCast(self)), Handle); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols3_Reload(self: *const T, Module: ?[*:0]const u8) HRESULT { return @as(*const IDebugSymbols3.VTable, @ptrCast(self.vtable)).Reload(@as(*const IDebugSymbols3, @ptrCast(self)), Module); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols3_GetSymbolPath(self: *const T, Buffer: ?[*:0]u8, BufferSize: u32, PathSize: ?*u32) HRESULT { return @as(*const IDebugSymbols3.VTable, @ptrCast(self.vtable)).GetSymbolPath(@as(*const IDebugSymbols3, @ptrCast(self)), Buffer, BufferSize, PathSize); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols3_SetSymbolPath(self: *const T, Path: ?[*:0]const u8) HRESULT { return @as(*const IDebugSymbols3.VTable, @ptrCast(self.vtable)).SetSymbolPath(@as(*const IDebugSymbols3, @ptrCast(self)), Path); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols3_AppendSymbolPath(self: *const T, Addition: ?[*:0]const u8) HRESULT { return @as(*const IDebugSymbols3.VTable, @ptrCast(self.vtable)).AppendSymbolPath(@as(*const IDebugSymbols3, @ptrCast(self)), Addition); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols3_GetImagePath(self: *const T, Buffer: ?[*:0]u8, BufferSize: u32, PathSize: ?*u32) HRESULT { return @as(*const IDebugSymbols3.VTable, @ptrCast(self.vtable)).GetImagePath(@as(*const IDebugSymbols3, @ptrCast(self)), Buffer, BufferSize, PathSize); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols3_SetImagePath(self: *const T, Path: ?[*:0]const u8) HRESULT { return @as(*const IDebugSymbols3.VTable, @ptrCast(self.vtable)).SetImagePath(@as(*const IDebugSymbols3, @ptrCast(self)), Path); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols3_AppendImagePath(self: *const T, Addition: ?[*:0]const u8) HRESULT { return @as(*const IDebugSymbols3.VTable, @ptrCast(self.vtable)).AppendImagePath(@as(*const IDebugSymbols3, @ptrCast(self)), Addition); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols3_GetSourcePath(self: *const T, Buffer: ?[*:0]u8, BufferSize: u32, PathSize: ?*u32) HRESULT { return @as(*const IDebugSymbols3.VTable, @ptrCast(self.vtable)).GetSourcePath(@as(*const IDebugSymbols3, @ptrCast(self)), Buffer, BufferSize, PathSize); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols3_GetSourcePathElement(self: *const T, Index: u32, Buffer: ?[*:0]u8, BufferSize: u32, ElementSize: ?*u32) HRESULT { return @as(*const IDebugSymbols3.VTable, @ptrCast(self.vtable)).GetSourcePathElement(@as(*const IDebugSymbols3, @ptrCast(self)), Index, Buffer, BufferSize, ElementSize); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols3_SetSourcePath(self: *const T, Path: ?[*:0]const u8) HRESULT { return @as(*const IDebugSymbols3.VTable, @ptrCast(self.vtable)).SetSourcePath(@as(*const IDebugSymbols3, @ptrCast(self)), Path); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols3_AppendSourcePath(self: *const T, Addition: ?[*:0]const u8) HRESULT { return @as(*const IDebugSymbols3.VTable, @ptrCast(self.vtable)).AppendSourcePath(@as(*const IDebugSymbols3, @ptrCast(self)), Addition); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols3_FindSourceFile(self: *const T, StartElement: u32, File: ?[*:0]const u8, Flags: u32, FoundElement: ?*u32, Buffer: ?[*:0]u8, BufferSize: u32, FoundSize: ?*u32) HRESULT { return @as(*const IDebugSymbols3.VTable, @ptrCast(self.vtable)).FindSourceFile(@as(*const IDebugSymbols3, @ptrCast(self)), StartElement, File, Flags, FoundElement, Buffer, BufferSize, FoundSize); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols3_GetSourceFileLineOffsets(self: *const T, File: ?[*:0]const u8, Buffer: ?[*]u64, BufferLines: u32, FileLines: ?*u32) HRESULT { return @as(*const IDebugSymbols3.VTable, @ptrCast(self.vtable)).GetSourceFileLineOffsets(@as(*const IDebugSymbols3, @ptrCast(self)), File, Buffer, BufferLines, FileLines); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols3_GetModuleVersionInformation(self: *const T, Index: u32, Base: u64, Item: ?[*:0]const u8, Buffer: ?*anyopaque, BufferSize: u32, VerInfoSize: ?*u32) HRESULT { return @as(*const IDebugSymbols3.VTable, @ptrCast(self.vtable)).GetModuleVersionInformation(@as(*const IDebugSymbols3, @ptrCast(self)), Index, Base, Item, Buffer, BufferSize, VerInfoSize); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols3_GetModuleNameString(self: *const T, Which: u32, Index: u32, Base: u64, Buffer: ?[*:0]u8, BufferSize: u32, NameSize: ?*u32) HRESULT { return @as(*const IDebugSymbols3.VTable, @ptrCast(self.vtable)).GetModuleNameString(@as(*const IDebugSymbols3, @ptrCast(self)), Which, Index, Base, Buffer, BufferSize, NameSize); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols3_GetConstantName(self: *const T, Module: u64, TypeId: u32, Value: u64, NameBuffer: ?[*:0]u8, NameBufferSize: u32, NameSize: ?*u32) HRESULT { return @as(*const IDebugSymbols3.VTable, @ptrCast(self.vtable)).GetConstantName(@as(*const IDebugSymbols3, @ptrCast(self)), Module, TypeId, Value, NameBuffer, NameBufferSize, NameSize); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols3_GetFieldName(self: *const T, Module: u64, TypeId: u32, FieldIndex: u32, NameBuffer: ?[*:0]u8, NameBufferSize: u32, NameSize: ?*u32) HRESULT { return @as(*const IDebugSymbols3.VTable, @ptrCast(self.vtable)).GetFieldName(@as(*const IDebugSymbols3, @ptrCast(self)), Module, TypeId, FieldIndex, NameBuffer, NameBufferSize, NameSize); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols3_GetTypeOptions(self: *const T, Options: ?*u32) HRESULT { return @as(*const IDebugSymbols3.VTable, @ptrCast(self.vtable)).GetTypeOptions(@as(*const IDebugSymbols3, @ptrCast(self)), Options); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols3_AddTypeOptions(self: *const T, Options: u32) HRESULT { return @as(*const IDebugSymbols3.VTable, @ptrCast(self.vtable)).AddTypeOptions(@as(*const IDebugSymbols3, @ptrCast(self)), Options); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols3_RemoveTypeOptions(self: *const T, Options: u32) HRESULT { return @as(*const IDebugSymbols3.VTable, @ptrCast(self.vtable)).RemoveTypeOptions(@as(*const IDebugSymbols3, @ptrCast(self)), Options); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols3_SetTypeOptions(self: *const T, Options: u32) HRESULT { return @as(*const IDebugSymbols3.VTable, @ptrCast(self.vtable)).SetTypeOptions(@as(*const IDebugSymbols3, @ptrCast(self)), Options); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols3_GetNameByOffsetWide(self: *const T, Offset: u64, NameBuffer: ?[*:0]u16, NameBufferSize: u32, NameSize: ?*u32, Displacement: ?*u64) HRESULT { return @as(*const IDebugSymbols3.VTable, @ptrCast(self.vtable)).GetNameByOffsetWide(@as(*const IDebugSymbols3, @ptrCast(self)), Offset, NameBuffer, NameBufferSize, NameSize, Displacement); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols3_GetOffsetByNameWide(self: *const T, _param_Symbol: ?[*:0]const u16, Offset: ?*u64) HRESULT { return @as(*const IDebugSymbols3.VTable, @ptrCast(self.vtable)).GetOffsetByNameWide(@as(*const IDebugSymbols3, @ptrCast(self)), _param_Symbol, Offset); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols3_GetNearNameByOffsetWide(self: *const T, Offset: u64, Delta: i32, NameBuffer: ?[*:0]u16, NameBufferSize: u32, NameSize: ?*u32, Displacement: ?*u64) HRESULT { return @as(*const IDebugSymbols3.VTable, @ptrCast(self.vtable)).GetNearNameByOffsetWide(@as(*const IDebugSymbols3, @ptrCast(self)), Offset, Delta, NameBuffer, NameBufferSize, NameSize, Displacement); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols3_GetLineByOffsetWide(self: *const T, Offset: u64, Line: ?*u32, FileBuffer: ?[*:0]u16, FileBufferSize: u32, FileSize: ?*u32, Displacement: ?*u64) HRESULT { return @as(*const IDebugSymbols3.VTable, @ptrCast(self.vtable)).GetLineByOffsetWide(@as(*const IDebugSymbols3, @ptrCast(self)), Offset, Line, FileBuffer, FileBufferSize, FileSize, Displacement); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols3_GetOffsetByLineWide(self: *const T, Line: u32, File: ?[*:0]const u16, Offset: ?*u64) HRESULT { return @as(*const IDebugSymbols3.VTable, @ptrCast(self.vtable)).GetOffsetByLineWide(@as(*const IDebugSymbols3, @ptrCast(self)), Line, File, Offset); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols3_GetModuleByModuleNameWide(self: *const T, Name: ?[*:0]const u16, StartIndex: u32, Index: ?*u32, Base: ?*u64) HRESULT { return @as(*const IDebugSymbols3.VTable, @ptrCast(self.vtable)).GetModuleByModuleNameWide(@as(*const IDebugSymbols3, @ptrCast(self)), Name, StartIndex, Index, Base); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols3_GetSymbolModuleWide(self: *const T, _param_Symbol: ?[*:0]const u16, Base: ?*u64) HRESULT { return @as(*const IDebugSymbols3.VTable, @ptrCast(self.vtable)).GetSymbolModuleWide(@as(*const IDebugSymbols3, @ptrCast(self)), _param_Symbol, Base); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols3_GetTypeNameWide(self: *const T, Module: u64, TypeId: u32, NameBuffer: ?[*:0]u16, NameBufferSize: u32, NameSize: ?*u32) HRESULT { return @as(*const IDebugSymbols3.VTable, @ptrCast(self.vtable)).GetTypeNameWide(@as(*const IDebugSymbols3, @ptrCast(self)), Module, TypeId, NameBuffer, NameBufferSize, NameSize); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols3_GetTypeIdWide(self: *const T, Module: u64, Name: ?[*:0]const u16, TypeId: ?*u32) HRESULT { return @as(*const IDebugSymbols3.VTable, @ptrCast(self.vtable)).GetTypeIdWide(@as(*const IDebugSymbols3, @ptrCast(self)), Module, Name, TypeId); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols3_GetFieldOffsetWide(self: *const T, Module: u64, TypeId: u32, Field: ?[*:0]const u16, Offset: ?*u32) HRESULT { return @as(*const IDebugSymbols3.VTable, @ptrCast(self.vtable)).GetFieldOffsetWide(@as(*const IDebugSymbols3, @ptrCast(self)), Module, TypeId, Field, Offset); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols3_GetSymbolTypeIdWide(self: *const T, _param_Symbol: ?[*:0]const u16, TypeId: ?*u32, Module: ?*u64) HRESULT { return @as(*const IDebugSymbols3.VTable, @ptrCast(self.vtable)).GetSymbolTypeIdWide(@as(*const IDebugSymbols3, @ptrCast(self)), _param_Symbol, TypeId, Module); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols3_GetScopeSymbolGroup2(self: *const T, Flags: u32, Update: ?*IDebugSymbolGroup2, Symbols: ?*?*IDebugSymbolGroup2) HRESULT { return @as(*const IDebugSymbols3.VTable, @ptrCast(self.vtable)).GetScopeSymbolGroup2(@as(*const IDebugSymbols3, @ptrCast(self)), Flags, Update, Symbols); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols3_CreateSymbolGroup2(self: *const T, Group: ?*?*IDebugSymbolGroup2) HRESULT { return @as(*const IDebugSymbols3.VTable, @ptrCast(self.vtable)).CreateSymbolGroup2(@as(*const IDebugSymbols3, @ptrCast(self)), Group); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols3_StartSymbolMatchWide(self: *const T, Pattern: ?[*:0]const u16, Handle: ?*u64) HRESULT { return @as(*const IDebugSymbols3.VTable, @ptrCast(self.vtable)).StartSymbolMatchWide(@as(*const IDebugSymbols3, @ptrCast(self)), Pattern, Handle); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols3_GetNextSymbolMatchWide(self: *const T, Handle: u64, Buffer: ?[*:0]u16, BufferSize: u32, MatchSize: ?*u32, Offset: ?*u64) HRESULT { return @as(*const IDebugSymbols3.VTable, @ptrCast(self.vtable)).GetNextSymbolMatchWide(@as(*const IDebugSymbols3, @ptrCast(self)), Handle, Buffer, BufferSize, MatchSize, Offset); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols3_ReloadWide(self: *const T, Module: ?[*:0]const u16) HRESULT { return @as(*const IDebugSymbols3.VTable, @ptrCast(self.vtable)).ReloadWide(@as(*const IDebugSymbols3, @ptrCast(self)), Module); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols3_GetSymbolPathWide(self: *const T, Buffer: ?[*:0]u16, BufferSize: u32, PathSize: ?*u32) HRESULT { return @as(*const IDebugSymbols3.VTable, @ptrCast(self.vtable)).GetSymbolPathWide(@as(*const IDebugSymbols3, @ptrCast(self)), Buffer, BufferSize, PathSize); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols3_SetSymbolPathWide(self: *const T, Path: ?[*:0]const u16) HRESULT { return @as(*const IDebugSymbols3.VTable, @ptrCast(self.vtable)).SetSymbolPathWide(@as(*const IDebugSymbols3, @ptrCast(self)), Path); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols3_AppendSymbolPathWide(self: *const T, Addition: ?[*:0]const u16) HRESULT { return @as(*const IDebugSymbols3.VTable, @ptrCast(self.vtable)).AppendSymbolPathWide(@as(*const IDebugSymbols3, @ptrCast(self)), Addition); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols3_GetImagePathWide(self: *const T, Buffer: ?[*:0]u16, BufferSize: u32, PathSize: ?*u32) HRESULT { return @as(*const IDebugSymbols3.VTable, @ptrCast(self.vtable)).GetImagePathWide(@as(*const IDebugSymbols3, @ptrCast(self)), Buffer, BufferSize, PathSize); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols3_SetImagePathWide(self: *const T, Path: ?[*:0]const u16) HRESULT { return @as(*const IDebugSymbols3.VTable, @ptrCast(self.vtable)).SetImagePathWide(@as(*const IDebugSymbols3, @ptrCast(self)), Path); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols3_AppendImagePathWide(self: *const T, Addition: ?[*:0]const u16) HRESULT { return @as(*const IDebugSymbols3.VTable, @ptrCast(self.vtable)).AppendImagePathWide(@as(*const IDebugSymbols3, @ptrCast(self)), Addition); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols3_GetSourcePathWide(self: *const T, Buffer: ?[*:0]u16, BufferSize: u32, PathSize: ?*u32) HRESULT { return @as(*const IDebugSymbols3.VTable, @ptrCast(self.vtable)).GetSourcePathWide(@as(*const IDebugSymbols3, @ptrCast(self)), Buffer, BufferSize, PathSize); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols3_GetSourcePathElementWide(self: *const T, Index: u32, Buffer: ?[*:0]u16, BufferSize: u32, ElementSize: ?*u32) HRESULT { return @as(*const IDebugSymbols3.VTable, @ptrCast(self.vtable)).GetSourcePathElementWide(@as(*const IDebugSymbols3, @ptrCast(self)), Index, Buffer, BufferSize, ElementSize); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols3_SetSourcePathWide(self: *const T, Path: ?[*:0]const u16) HRESULT { return @as(*const IDebugSymbols3.VTable, @ptrCast(self.vtable)).SetSourcePathWide(@as(*const IDebugSymbols3, @ptrCast(self)), Path); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols3_AppendSourcePathWide(self: *const T, Addition: ?[*:0]const u16) HRESULT { return @as(*const IDebugSymbols3.VTable, @ptrCast(self.vtable)).AppendSourcePathWide(@as(*const IDebugSymbols3, @ptrCast(self)), Addition); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols3_FindSourceFileWide(self: *const T, StartElement: u32, File: ?[*:0]const u16, Flags: u32, FoundElement: ?*u32, Buffer: ?[*:0]u16, BufferSize: u32, FoundSize: ?*u32) HRESULT { return @as(*const IDebugSymbols3.VTable, @ptrCast(self.vtable)).FindSourceFileWide(@as(*const IDebugSymbols3, @ptrCast(self)), StartElement, File, Flags, FoundElement, Buffer, BufferSize, FoundSize); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols3_GetSourceFileLineOffsetsWide(self: *const T, File: ?[*:0]const u16, Buffer: ?[*]u64, BufferLines: u32, FileLines: ?*u32) HRESULT { return @as(*const IDebugSymbols3.VTable, @ptrCast(self.vtable)).GetSourceFileLineOffsetsWide(@as(*const IDebugSymbols3, @ptrCast(self)), File, Buffer, BufferLines, FileLines); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols3_GetModuleVersionInformationWide(self: *const T, Index: u32, Base: u64, Item: ?[*:0]const u16, Buffer: ?*anyopaque, BufferSize: u32, VerInfoSize: ?*u32) HRESULT { return @as(*const IDebugSymbols3.VTable, @ptrCast(self.vtable)).GetModuleVersionInformationWide(@as(*const IDebugSymbols3, @ptrCast(self)), Index, Base, Item, Buffer, BufferSize, VerInfoSize); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols3_GetModuleNameStringWide(self: *const T, Which: u32, Index: u32, Base: u64, Buffer: ?[*:0]u16, BufferSize: u32, NameSize: ?*u32) HRESULT { return @as(*const IDebugSymbols3.VTable, @ptrCast(self.vtable)).GetModuleNameStringWide(@as(*const IDebugSymbols3, @ptrCast(self)), Which, Index, Base, Buffer, BufferSize, NameSize); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols3_GetConstantNameWide(self: *const T, Module: u64, TypeId: u32, Value: u64, NameBuffer: ?[*:0]u16, NameBufferSize: u32, NameSize: ?*u32) HRESULT { return @as(*const IDebugSymbols3.VTable, @ptrCast(self.vtable)).GetConstantNameWide(@as(*const IDebugSymbols3, @ptrCast(self)), Module, TypeId, Value, NameBuffer, NameBufferSize, NameSize); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols3_GetFieldNameWide(self: *const T, Module: u64, TypeId: u32, FieldIndex: u32, NameBuffer: ?[*:0]u16, NameBufferSize: u32, NameSize: ?*u32) HRESULT { return @as(*const IDebugSymbols3.VTable, @ptrCast(self.vtable)).GetFieldNameWide(@as(*const IDebugSymbols3, @ptrCast(self)), Module, TypeId, FieldIndex, NameBuffer, NameBufferSize, NameSize); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols3_IsManagedModule(self: *const T, Index: u32, Base: u64) HRESULT { return @as(*const IDebugSymbols3.VTable, @ptrCast(self.vtable)).IsManagedModule(@as(*const IDebugSymbols3, @ptrCast(self)), Index, Base); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols3_GetModuleByModuleName2(self: *const T, Name: ?[*:0]const u8, StartIndex: u32, Flags: u32, Index: ?*u32, Base: ?*u64) HRESULT { return @as(*const IDebugSymbols3.VTable, @ptrCast(self.vtable)).GetModuleByModuleName2(@as(*const IDebugSymbols3, @ptrCast(self)), Name, StartIndex, Flags, Index, Base); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols3_GetModuleByModuleName2Wide(self: *const T, Name: ?[*:0]const u16, StartIndex: u32, Flags: u32, Index: ?*u32, Base: ?*u64) HRESULT { return @as(*const IDebugSymbols3.VTable, @ptrCast(self.vtable)).GetModuleByModuleName2Wide(@as(*const IDebugSymbols3, @ptrCast(self)), Name, StartIndex, Flags, Index, Base); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols3_GetModuleByOffset2(self: *const T, Offset: u64, StartIndex: u32, Flags: u32, Index: ?*u32, Base: ?*u64) HRESULT { return @as(*const IDebugSymbols3.VTable, @ptrCast(self.vtable)).GetModuleByOffset2(@as(*const IDebugSymbols3, @ptrCast(self)), Offset, StartIndex, Flags, Index, Base); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols3_AddSyntheticModule(self: *const T, Base: u64, Size: u32, ImagePath: ?[*:0]const u8, ModuleName: ?[*:0]const u8, Flags: u32) HRESULT { return @as(*const IDebugSymbols3.VTable, @ptrCast(self.vtable)).AddSyntheticModule(@as(*const IDebugSymbols3, @ptrCast(self)), Base, Size, ImagePath, ModuleName, Flags); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols3_AddSyntheticModuleWide(self: *const T, Base: u64, Size: u32, ImagePath: ?[*:0]const u16, ModuleName: ?[*:0]const u16, Flags: u32) HRESULT { return @as(*const IDebugSymbols3.VTable, @ptrCast(self.vtable)).AddSyntheticModuleWide(@as(*const IDebugSymbols3, @ptrCast(self)), Base, Size, ImagePath, ModuleName, Flags); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols3_RemoveSyntheticModule(self: *const T, Base: u64) HRESULT { return @as(*const IDebugSymbols3.VTable, @ptrCast(self.vtable)).RemoveSyntheticModule(@as(*const IDebugSymbols3, @ptrCast(self)), Base); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols3_GetCurrentScopeFrameIndex(self: *const T, Index: ?*u32) HRESULT { return @as(*const IDebugSymbols3.VTable, @ptrCast(self.vtable)).GetCurrentScopeFrameIndex(@as(*const IDebugSymbols3, @ptrCast(self)), Index); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols3_SetScopeFrameByIndex(self: *const T, Index: u32) HRESULT { return @as(*const IDebugSymbols3.VTable, @ptrCast(self.vtable)).SetScopeFrameByIndex(@as(*const IDebugSymbols3, @ptrCast(self)), Index); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols3_SetScopeFromJitDebugInfo(self: *const T, OutputControl: u32, InfoOffset: u64) HRESULT { return @as(*const IDebugSymbols3.VTable, @ptrCast(self.vtable)).SetScopeFromJitDebugInfo(@as(*const IDebugSymbols3, @ptrCast(self)), OutputControl, InfoOffset); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols3_SetScopeFromStoredEvent(self: *const T) HRESULT { return @as(*const IDebugSymbols3.VTable, @ptrCast(self.vtable)).SetScopeFromStoredEvent(@as(*const IDebugSymbols3, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols3_OutputSymbolByOffset(self: *const T, OutputControl: u32, Flags: u32, Offset: u64) HRESULT { return @as(*const IDebugSymbols3.VTable, @ptrCast(self.vtable)).OutputSymbolByOffset(@as(*const IDebugSymbols3, @ptrCast(self)), OutputControl, Flags, Offset); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols3_GetFunctionEntryByOffset(self: *const T, Offset: u64, Flags: u32, Buffer: ?*anyopaque, BufferSize: u32, BufferNeeded: ?*u32) HRESULT { return @as(*const IDebugSymbols3.VTable, @ptrCast(self.vtable)).GetFunctionEntryByOffset(@as(*const IDebugSymbols3, @ptrCast(self)), Offset, Flags, Buffer, BufferSize, BufferNeeded); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols3_GetFieldTypeAndOffset(self: *const T, Module: u64, ContainerTypeId: u32, Field: ?[*:0]const u8, FieldTypeId: ?*u32, Offset: ?*u32) HRESULT { return @as(*const IDebugSymbols3.VTable, @ptrCast(self.vtable)).GetFieldTypeAndOffset(@as(*const IDebugSymbols3, @ptrCast(self)), Module, ContainerTypeId, Field, FieldTypeId, Offset); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols3_GetFieldTypeAndOffsetWide(self: *const T, Module: u64, ContainerTypeId: u32, Field: ?[*:0]const u16, FieldTypeId: ?*u32, Offset: ?*u32) HRESULT { return @as(*const IDebugSymbols3.VTable, @ptrCast(self.vtable)).GetFieldTypeAndOffsetWide(@as(*const IDebugSymbols3, @ptrCast(self)), Module, ContainerTypeId, Field, FieldTypeId, Offset); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols3_AddSyntheticSymbol(self: *const T, Offset: u64, Size: u32, Name: ?[*:0]const u8, Flags: u32, Id: ?*DEBUG_MODULE_AND_ID) HRESULT { return @as(*const IDebugSymbols3.VTable, @ptrCast(self.vtable)).AddSyntheticSymbol(@as(*const IDebugSymbols3, @ptrCast(self)), Offset, Size, Name, Flags, Id); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols3_AddSyntheticSymbolWide(self: *const T, Offset: u64, Size: u32, Name: ?[*:0]const u16, Flags: u32, Id: ?*DEBUG_MODULE_AND_ID) HRESULT { return @as(*const IDebugSymbols3.VTable, @ptrCast(self.vtable)).AddSyntheticSymbolWide(@as(*const IDebugSymbols3, @ptrCast(self)), Offset, Size, Name, Flags, Id); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols3_RemoveSyntheticSymbol(self: *const T, Id: ?*DEBUG_MODULE_AND_ID) HRESULT { return @as(*const IDebugSymbols3.VTable, @ptrCast(self.vtable)).RemoveSyntheticSymbol(@as(*const IDebugSymbols3, @ptrCast(self)), Id); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols3_GetSymbolEntriesByOffset(self: *const T, Offset: u64, Flags: u32, Ids: ?[*]DEBUG_MODULE_AND_ID, Displacements: ?[*]u64, IdsCount: u32, Entries: ?*u32) HRESULT { return @as(*const IDebugSymbols3.VTable, @ptrCast(self.vtable)).GetSymbolEntriesByOffset(@as(*const IDebugSymbols3, @ptrCast(self)), Offset, Flags, Ids, Displacements, IdsCount, Entries); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols3_GetSymbolEntriesByName(self: *const T, _param_Symbol: ?[*:0]const u8, Flags: u32, Ids: ?[*]DEBUG_MODULE_AND_ID, IdsCount: u32, Entries: ?*u32) HRESULT { return @as(*const IDebugSymbols3.VTable, @ptrCast(self.vtable)).GetSymbolEntriesByName(@as(*const IDebugSymbols3, @ptrCast(self)), _param_Symbol, Flags, Ids, IdsCount, Entries); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols3_GetSymbolEntriesByNameWide(self: *const T, _param_Symbol: ?[*:0]const u16, Flags: u32, Ids: ?[*]DEBUG_MODULE_AND_ID, IdsCount: u32, Entries: ?*u32) HRESULT { return @as(*const IDebugSymbols3.VTable, @ptrCast(self.vtable)).GetSymbolEntriesByNameWide(@as(*const IDebugSymbols3, @ptrCast(self)), _param_Symbol, Flags, Ids, IdsCount, Entries); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols3_GetSymbolEntryByToken(self: *const T, ModuleBase: u64, Token: u32, Id: ?*DEBUG_MODULE_AND_ID) HRESULT { return @as(*const IDebugSymbols3.VTable, @ptrCast(self.vtable)).GetSymbolEntryByToken(@as(*const IDebugSymbols3, @ptrCast(self)), ModuleBase, Token, Id); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols3_GetSymbolEntryInformation(self: *const T, Id: ?*DEBUG_MODULE_AND_ID, Info: ?*DEBUG_SYMBOL_ENTRY) HRESULT { return @as(*const IDebugSymbols3.VTable, @ptrCast(self.vtable)).GetSymbolEntryInformation(@as(*const IDebugSymbols3, @ptrCast(self)), Id, Info); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols3_GetSymbolEntryString(self: *const T, Id: ?*DEBUG_MODULE_AND_ID, Which: u32, Buffer: ?[*:0]u8, BufferSize: u32, StringSize: ?*u32) HRESULT { return @as(*const IDebugSymbols3.VTable, @ptrCast(self.vtable)).GetSymbolEntryString(@as(*const IDebugSymbols3, @ptrCast(self)), Id, Which, Buffer, BufferSize, StringSize); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols3_GetSymbolEntryStringWide(self: *const T, Id: ?*DEBUG_MODULE_AND_ID, Which: u32, Buffer: ?[*:0]u16, BufferSize: u32, StringSize: ?*u32) HRESULT { return @as(*const IDebugSymbols3.VTable, @ptrCast(self.vtable)).GetSymbolEntryStringWide(@as(*const IDebugSymbols3, @ptrCast(self)), Id, Which, Buffer, BufferSize, StringSize); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols3_GetSymbolEntryOffsetRegions(self: *const T, Id: ?*DEBUG_MODULE_AND_ID, Flags: u32, Regions: ?[*]DEBUG_OFFSET_REGION, RegionsCount: u32, RegionsAvail: ?*u32) HRESULT { return @as(*const IDebugSymbols3.VTable, @ptrCast(self.vtable)).GetSymbolEntryOffsetRegions(@as(*const IDebugSymbols3, @ptrCast(self)), Id, Flags, Regions, RegionsCount, RegionsAvail); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols3_GetSymbolEntryBySymbolEntry(self: *const T, FromId: ?*DEBUG_MODULE_AND_ID, Flags: u32, ToId: ?*DEBUG_MODULE_AND_ID) HRESULT { return @as(*const IDebugSymbols3.VTable, @ptrCast(self.vtable)).GetSymbolEntryBySymbolEntry(@as(*const IDebugSymbols3, @ptrCast(self)), FromId, Flags, ToId); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols3_GetSourceEntriesByOffset(self: *const T, Offset: u64, Flags: u32, Entries: ?[*]DEBUG_SYMBOL_SOURCE_ENTRY, EntriesCount: u32, EntriesAvail: ?*u32) HRESULT { return @as(*const IDebugSymbols3.VTable, @ptrCast(self.vtable)).GetSourceEntriesByOffset(@as(*const IDebugSymbols3, @ptrCast(self)), Offset, Flags, Entries, EntriesCount, EntriesAvail); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols3_GetSourceEntriesByLine(self: *const T, Line: u32, File: ?[*:0]const u8, Flags: u32, Entries: ?[*]DEBUG_SYMBOL_SOURCE_ENTRY, EntriesCount: u32, EntriesAvail: ?*u32) HRESULT { return @as(*const IDebugSymbols3.VTable, @ptrCast(self.vtable)).GetSourceEntriesByLine(@as(*const IDebugSymbols3, @ptrCast(self)), Line, File, Flags, Entries, EntriesCount, EntriesAvail); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols3_GetSourceEntriesByLineWide(self: *const T, Line: u32, File: ?[*:0]const u16, Flags: u32, Entries: ?[*]DEBUG_SYMBOL_SOURCE_ENTRY, EntriesCount: u32, EntriesAvail: ?*u32) HRESULT { return @as(*const IDebugSymbols3.VTable, @ptrCast(self.vtable)).GetSourceEntriesByLineWide(@as(*const IDebugSymbols3, @ptrCast(self)), Line, File, Flags, Entries, EntriesCount, EntriesAvail); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols3_GetSourceEntryString(self: *const T, Entry: ?*DEBUG_SYMBOL_SOURCE_ENTRY, Which: u32, Buffer: ?[*:0]u8, BufferSize: u32, StringSize: ?*u32) HRESULT { return @as(*const IDebugSymbols3.VTable, @ptrCast(self.vtable)).GetSourceEntryString(@as(*const IDebugSymbols3, @ptrCast(self)), Entry, Which, Buffer, BufferSize, StringSize); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols3_GetSourceEntryStringWide(self: *const T, Entry: ?*DEBUG_SYMBOL_SOURCE_ENTRY, Which: u32, Buffer: ?[*:0]u16, BufferSize: u32, StringSize: ?*u32) HRESULT { return @as(*const IDebugSymbols3.VTable, @ptrCast(self.vtable)).GetSourceEntryStringWide(@as(*const IDebugSymbols3, @ptrCast(self)), Entry, Which, Buffer, BufferSize, StringSize); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols3_GetSourceEntryOffsetRegions(self: *const T, Entry: ?*DEBUG_SYMBOL_SOURCE_ENTRY, Flags: u32, Regions: ?[*]DEBUG_OFFSET_REGION, RegionsCount: u32, RegionsAvail: ?*u32) HRESULT { return @as(*const IDebugSymbols3.VTable, @ptrCast(self.vtable)).GetSourceEntryOffsetRegions(@as(*const IDebugSymbols3, @ptrCast(self)), Entry, Flags, Regions, RegionsCount, RegionsAvail); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols3_GetSourceEntryBySourceEntry(self: *const T, FromEntry: ?*DEBUG_SYMBOL_SOURCE_ENTRY, Flags: u32, ToEntry: ?*DEBUG_SYMBOL_SOURCE_ENTRY) HRESULT { return @as(*const IDebugSymbols3.VTable, @ptrCast(self.vtable)).GetSourceEntryBySourceEntry(@as(*const IDebugSymbols3, @ptrCast(self)), FromEntry, Flags, ToEntry); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IDebugSymbols4_Value = Guid.initString("e391bbd8-9d8c-4418-840b-c006592a1752"); pub const IID_IDebugSymbols4 = &IID_IDebugSymbols4_Value; pub const IDebugSymbols4 = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, GetSymbolOptions: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols4, Options: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols4, Options: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, AddSymbolOptions: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols4, Options: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols4, Options: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, RemoveSymbolOptions: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols4, Options: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols4, Options: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetSymbolOptions: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols4, Options: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols4, Options: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetNameByOffset: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols4, Offset: u64, NameBuffer: ?[*:0]u8, NameBufferSize: u32, NameSize: ?*u32, Displacement: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols4, Offset: u64, NameBuffer: ?[*:0]u8, NameBufferSize: u32, NameSize: ?*u32, Displacement: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetOffsetByName: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols4, Symbol: ?[*:0]const u8, Offset: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols4, Symbol: ?[*:0]const u8, Offset: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetNearNameByOffset: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols4, Offset: u64, Delta: i32, NameBuffer: ?[*:0]u8, NameBufferSize: u32, NameSize: ?*u32, Displacement: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols4, Offset: u64, Delta: i32, NameBuffer: ?[*:0]u8, NameBufferSize: u32, NameSize: ?*u32, Displacement: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetLineByOffset: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols4, Offset: u64, Line: ?*u32, FileBuffer: ?[*:0]u8, FileBufferSize: u32, FileSize: ?*u32, Displacement: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols4, Offset: u64, Line: ?*u32, FileBuffer: ?[*:0]u8, FileBufferSize: u32, FileSize: ?*u32, Displacement: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetOffsetByLine: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols4, Line: u32, File: ?[*:0]const u8, Offset: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols4, Line: u32, File: ?[*:0]const u8, Offset: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetNumberModules: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols4, Loaded: ?*u32, Unloaded: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols4, Loaded: ?*u32, Unloaded: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetModuleByIndex: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols4, Index: u32, Base: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols4, Index: u32, Base: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetModuleByModuleName: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols4, Name: ?[*:0]const u8, StartIndex: u32, Index: ?*u32, Base: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols4, Name: ?[*:0]const u8, StartIndex: u32, Index: ?*u32, Base: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetModuleByOffset: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols4, Offset: u64, StartIndex: u32, Index: ?*u32, Base: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols4, Offset: u64, StartIndex: u32, Index: ?*u32, Base: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetModuleNames: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols4, Index: u32, Base: u64, ImageNameBuffer: ?[*:0]u8, ImageNameBufferSize: u32, ImageNameSize: ?*u32, ModuleNameBuffer: ?[*:0]u8, ModuleNameBufferSize: u32, ModuleNameSize: ?*u32, LoadedImageNameBuffer: ?[*:0]u8, LoadedImageNameBufferSize: u32, LoadedImageNameSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols4, Index: u32, Base: u64, ImageNameBuffer: ?[*:0]u8, ImageNameBufferSize: u32, ImageNameSize: ?*u32, ModuleNameBuffer: ?[*:0]u8, ModuleNameBufferSize: u32, ModuleNameSize: ?*u32, LoadedImageNameBuffer: ?[*:0]u8, LoadedImageNameBufferSize: u32, LoadedImageNameSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetModuleParameters: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols4, Count: u32, Bases: ?[*]u64, Start: u32, Params: [*]DEBUG_MODULE_PARAMETERS, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols4, Count: u32, Bases: ?[*]u64, Start: u32, Params: [*]DEBUG_MODULE_PARAMETERS, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetSymbolModule: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols4, Symbol: ?[*:0]const u8, Base: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols4, Symbol: ?[*:0]const u8, Base: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetTypeName: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols4, Module: u64, TypeId: u32, NameBuffer: ?[*:0]u8, NameBufferSize: u32, NameSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols4, Module: u64, TypeId: u32, NameBuffer: ?[*:0]u8, NameBufferSize: u32, NameSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetTypeId: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols4, Module: u64, Name: ?[*:0]const u8, TypeId: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols4, Module: u64, Name: ?[*:0]const u8, TypeId: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetTypeSize: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols4, Module: u64, TypeId: u32, Size: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols4, Module: u64, TypeId: u32, Size: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetFieldOffset: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols4, Module: u64, TypeId: u32, Field: ?[*:0]const u8, Offset: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols4, Module: u64, TypeId: u32, Field: ?[*:0]const u8, Offset: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetSymbolTypeId: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols4, Symbol: ?[*:0]const u8, TypeId: ?*u32, Module: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols4, Symbol: ?[*:0]const u8, TypeId: ?*u32, Module: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetOffsetTypeId: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols4, Offset: u64, TypeId: ?*u32, Module: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols4, Offset: u64, TypeId: ?*u32, Module: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, ReadTypedDataVirtual: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols4, Offset: u64, Module: u64, TypeId: u32, // TODO: what to do with BytesParamIndex 4? Buffer: ?*anyopaque, BufferSize: u32, BytesRead: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols4, Offset: u64, Module: u64, TypeId: u32, // TODO: what to do with BytesParamIndex 4? Buffer: ?*anyopaque, BufferSize: u32, BytesRead: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, WriteTypedDataVirtual: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols4, Offset: u64, Module: u64, TypeId: u32, // TODO: what to do with BytesParamIndex 4? Buffer: ?*anyopaque, BufferSize: u32, BytesWritten: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols4, Offset: u64, Module: u64, TypeId: u32, // TODO: what to do with BytesParamIndex 4? Buffer: ?*anyopaque, BufferSize: u32, BytesWritten: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, OutputTypedDataVirtual: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols4, OutputControl: u32, Offset: u64, Module: u64, TypeId: u32, Flags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols4, OutputControl: u32, Offset: u64, Module: u64, TypeId: u32, Flags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, ReadTypedDataPhysical: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols4, Offset: u64, Module: u64, TypeId: u32, // TODO: what to do with BytesParamIndex 4? Buffer: ?*anyopaque, BufferSize: u32, BytesRead: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols4, Offset: u64, Module: u64, TypeId: u32, // TODO: what to do with BytesParamIndex 4? Buffer: ?*anyopaque, BufferSize: u32, BytesRead: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, WriteTypedDataPhysical: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols4, Offset: u64, Module: u64, TypeId: u32, // TODO: what to do with BytesParamIndex 4? Buffer: ?*anyopaque, BufferSize: u32, BytesWritten: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols4, Offset: u64, Module: u64, TypeId: u32, // TODO: what to do with BytesParamIndex 4? Buffer: ?*anyopaque, BufferSize: u32, BytesWritten: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, OutputTypedDataPhysical: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols4, OutputControl: u32, Offset: u64, Module: u64, TypeId: u32, Flags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols4, OutputControl: u32, Offset: u64, Module: u64, TypeId: u32, Flags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetScope: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols4, InstructionOffset: ?*u64, ScopeFrame: ?*DEBUG_STACK_FRAME, // TODO: what to do with BytesParamIndex 3? ScopeContext: ?*anyopaque, ScopeContextSize: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols4, InstructionOffset: ?*u64, ScopeFrame: ?*DEBUG_STACK_FRAME, // TODO: what to do with BytesParamIndex 3? ScopeContext: ?*anyopaque, ScopeContextSize: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetScope: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols4, InstructionOffset: u64, ScopeFrame: ?*DEBUG_STACK_FRAME, // TODO: what to do with BytesParamIndex 3? ScopeContext: ?*anyopaque, ScopeContextSize: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols4, InstructionOffset: u64, ScopeFrame: ?*DEBUG_STACK_FRAME, // TODO: what to do with BytesParamIndex 3? ScopeContext: ?*anyopaque, ScopeContextSize: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, ResetScope: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols4, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols4, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetScopeSymbolGroup: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols4, Flags: u32, Update: ?*IDebugSymbolGroup, Symbols: ?*?*IDebugSymbolGroup, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols4, Flags: u32, Update: ?*IDebugSymbolGroup, Symbols: ?*?*IDebugSymbolGroup, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, CreateSymbolGroup: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols4, Group: ?*?*IDebugSymbolGroup, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols4, Group: ?*?*IDebugSymbolGroup, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, StartSymbolMatch: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols4, Pattern: ?[*:0]const u8, Handle: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols4, Pattern: ?[*:0]const u8, Handle: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetNextSymbolMatch: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols4, Handle: u64, Buffer: ?[*:0]u8, BufferSize: u32, MatchSize: ?*u32, Offset: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols4, Handle: u64, Buffer: ?[*:0]u8, BufferSize: u32, MatchSize: ?*u32, Offset: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, EndSymbolMatch: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols4, Handle: u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols4, Handle: u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Reload: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols4, Module: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols4, Module: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetSymbolPath: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols4, Buffer: ?[*:0]u8, BufferSize: u32, PathSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols4, Buffer: ?[*:0]u8, BufferSize: u32, PathSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetSymbolPath: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols4, Path: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols4, Path: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, AppendSymbolPath: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols4, Addition: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols4, Addition: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetImagePath: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols4, Buffer: ?[*:0]u8, BufferSize: u32, PathSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols4, Buffer: ?[*:0]u8, BufferSize: u32, PathSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetImagePath: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols4, Path: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols4, Path: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, AppendImagePath: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols4, Addition: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols4, Addition: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetSourcePath: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols4, Buffer: ?[*:0]u8, BufferSize: u32, PathSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols4, Buffer: ?[*:0]u8, BufferSize: u32, PathSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetSourcePathElement: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols4, Index: u32, Buffer: ?[*:0]u8, BufferSize: u32, ElementSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols4, Index: u32, Buffer: ?[*:0]u8, BufferSize: u32, ElementSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetSourcePath: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols4, Path: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols4, Path: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, AppendSourcePath: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols4, Addition: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols4, Addition: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, FindSourceFile: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols4, StartElement: u32, File: ?[*:0]const u8, Flags: u32, FoundElement: ?*u32, Buffer: ?[*:0]u8, BufferSize: u32, FoundSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols4, StartElement: u32, File: ?[*:0]const u8, Flags: u32, FoundElement: ?*u32, Buffer: ?[*:0]u8, BufferSize: u32, FoundSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetSourceFileLineOffsets: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols4, File: ?[*:0]const u8, Buffer: ?[*]u64, BufferLines: u32, FileLines: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols4, File: ?[*:0]const u8, Buffer: ?[*]u64, BufferLines: u32, FileLines: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetModuleVersionInformation: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols4, Index: u32, Base: u64, Item: ?[*:0]const u8, // TODO: what to do with BytesParamIndex 4? Buffer: ?*anyopaque, BufferSize: u32, VerInfoSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols4, Index: u32, Base: u64, Item: ?[*:0]const u8, // TODO: what to do with BytesParamIndex 4? Buffer: ?*anyopaque, BufferSize: u32, VerInfoSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetModuleNameString: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols4, Which: u32, Index: u32, Base: u64, Buffer: ?[*:0]u8, BufferSize: u32, NameSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols4, Which: u32, Index: u32, Base: u64, Buffer: ?[*:0]u8, BufferSize: u32, NameSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetConstantName: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols4, Module: u64, TypeId: u32, Value: u64, NameBuffer: ?[*:0]u8, NameBufferSize: u32, NameSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols4, Module: u64, TypeId: u32, Value: u64, NameBuffer: ?[*:0]u8, NameBufferSize: u32, NameSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetFieldName: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols4, Module: u64, TypeId: u32, FieldIndex: u32, NameBuffer: ?[*:0]u8, NameBufferSize: u32, NameSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols4, Module: u64, TypeId: u32, FieldIndex: u32, NameBuffer: ?[*:0]u8, NameBufferSize: u32, NameSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetTypeOptions: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols4, Options: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols4, Options: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, AddTypeOptions: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols4, Options: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols4, Options: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, RemoveTypeOptions: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols4, Options: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols4, Options: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetTypeOptions: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols4, Options: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols4, Options: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetNameByOffsetWide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols4, Offset: u64, NameBuffer: ?[*:0]u16, NameBufferSize: u32, NameSize: ?*u32, Displacement: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols4, Offset: u64, NameBuffer: ?[*:0]u16, NameBufferSize: u32, NameSize: ?*u32, Displacement: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetOffsetByNameWide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols4, Symbol: ?[*:0]const u16, Offset: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols4, Symbol: ?[*:0]const u16, Offset: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetNearNameByOffsetWide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols4, Offset: u64, Delta: i32, NameBuffer: ?[*:0]u16, NameBufferSize: u32, NameSize: ?*u32, Displacement: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols4, Offset: u64, Delta: i32, NameBuffer: ?[*:0]u16, NameBufferSize: u32, NameSize: ?*u32, Displacement: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetLineByOffsetWide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols4, Offset: u64, Line: ?*u32, FileBuffer: ?[*:0]u16, FileBufferSize: u32, FileSize: ?*u32, Displacement: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols4, Offset: u64, Line: ?*u32, FileBuffer: ?[*:0]u16, FileBufferSize: u32, FileSize: ?*u32, Displacement: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetOffsetByLineWide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols4, Line: u32, File: ?[*:0]const u16, Offset: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols4, Line: u32, File: ?[*:0]const u16, Offset: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetModuleByModuleNameWide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols4, Name: ?[*:0]const u16, StartIndex: u32, Index: ?*u32, Base: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols4, Name: ?[*:0]const u16, StartIndex: u32, Index: ?*u32, Base: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetSymbolModuleWide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols4, Symbol: ?[*:0]const u16, Base: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols4, Symbol: ?[*:0]const u16, Base: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetTypeNameWide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols4, Module: u64, TypeId: u32, NameBuffer: ?[*:0]u16, NameBufferSize: u32, NameSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols4, Module: u64, TypeId: u32, NameBuffer: ?[*:0]u16, NameBufferSize: u32, NameSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetTypeIdWide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols4, Module: u64, Name: ?[*:0]const u16, TypeId: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols4, Module: u64, Name: ?[*:0]const u16, TypeId: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetFieldOffsetWide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols4, Module: u64, TypeId: u32, Field: ?[*:0]const u16, Offset: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols4, Module: u64, TypeId: u32, Field: ?[*:0]const u16, Offset: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetSymbolTypeIdWide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols4, Symbol: ?[*:0]const u16, TypeId: ?*u32, Module: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols4, Symbol: ?[*:0]const u16, TypeId: ?*u32, Module: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetScopeSymbolGroup2: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols4, Flags: u32, Update: ?*IDebugSymbolGroup2, Symbols: ?*?*IDebugSymbolGroup2, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols4, Flags: u32, Update: ?*IDebugSymbolGroup2, Symbols: ?*?*IDebugSymbolGroup2, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, CreateSymbolGroup2: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols4, Group: ?*?*IDebugSymbolGroup2, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols4, Group: ?*?*IDebugSymbolGroup2, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, StartSymbolMatchWide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols4, Pattern: ?[*:0]const u16, Handle: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols4, Pattern: ?[*:0]const u16, Handle: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetNextSymbolMatchWide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols4, Handle: u64, Buffer: ?[*:0]u16, BufferSize: u32, MatchSize: ?*u32, Offset: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols4, Handle: u64, Buffer: ?[*:0]u16, BufferSize: u32, MatchSize: ?*u32, Offset: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, ReloadWide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols4, Module: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols4, Module: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetSymbolPathWide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols4, Buffer: ?[*:0]u16, BufferSize: u32, PathSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols4, Buffer: ?[*:0]u16, BufferSize: u32, PathSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetSymbolPathWide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols4, Path: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols4, Path: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, AppendSymbolPathWide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols4, Addition: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols4, Addition: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetImagePathWide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols4, Buffer: ?[*:0]u16, BufferSize: u32, PathSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols4, Buffer: ?[*:0]u16, BufferSize: u32, PathSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetImagePathWide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols4, Path: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols4, Path: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, AppendImagePathWide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols4, Addition: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols4, Addition: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetSourcePathWide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols4, Buffer: ?[*:0]u16, BufferSize: u32, PathSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols4, Buffer: ?[*:0]u16, BufferSize: u32, PathSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetSourcePathElementWide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols4, Index: u32, Buffer: ?[*:0]u16, BufferSize: u32, ElementSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols4, Index: u32, Buffer: ?[*:0]u16, BufferSize: u32, ElementSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetSourcePathWide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols4, Path: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols4, Path: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, AppendSourcePathWide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols4, Addition: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols4, Addition: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, FindSourceFileWide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols4, StartElement: u32, File: ?[*:0]const u16, Flags: u32, FoundElement: ?*u32, Buffer: ?[*:0]u16, BufferSize: u32, FoundSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols4, StartElement: u32, File: ?[*:0]const u16, Flags: u32, FoundElement: ?*u32, Buffer: ?[*:0]u16, BufferSize: u32, FoundSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetSourceFileLineOffsetsWide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols4, File: ?[*:0]const u16, Buffer: ?[*]u64, BufferLines: u32, FileLines: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols4, File: ?[*:0]const u16, Buffer: ?[*]u64, BufferLines: u32, FileLines: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetModuleVersionInformationWide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols4, Index: u32, Base: u64, Item: ?[*:0]const u16, // TODO: what to do with BytesParamIndex 4? Buffer: ?*anyopaque, BufferSize: u32, VerInfoSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols4, Index: u32, Base: u64, Item: ?[*:0]const u16, // TODO: what to do with BytesParamIndex 4? Buffer: ?*anyopaque, BufferSize: u32, VerInfoSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetModuleNameStringWide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols4, Which: u32, Index: u32, Base: u64, Buffer: ?[*:0]u16, BufferSize: u32, NameSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols4, Which: u32, Index: u32, Base: u64, Buffer: ?[*:0]u16, BufferSize: u32, NameSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetConstantNameWide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols4, Module: u64, TypeId: u32, Value: u64, NameBuffer: ?[*:0]u16, NameBufferSize: u32, NameSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols4, Module: u64, TypeId: u32, Value: u64, NameBuffer: ?[*:0]u16, NameBufferSize: u32, NameSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetFieldNameWide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols4, Module: u64, TypeId: u32, FieldIndex: u32, NameBuffer: ?[*:0]u16, NameBufferSize: u32, NameSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols4, Module: u64, TypeId: u32, FieldIndex: u32, NameBuffer: ?[*:0]u16, NameBufferSize: u32, NameSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, IsManagedModule: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols4, Index: u32, Base: u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols4, Index: u32, Base: u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetModuleByModuleName2: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols4, Name: ?[*:0]const u8, StartIndex: u32, Flags: u32, Index: ?*u32, Base: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols4, Name: ?[*:0]const u8, StartIndex: u32, Flags: u32, Index: ?*u32, Base: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetModuleByModuleName2Wide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols4, Name: ?[*:0]const u16, StartIndex: u32, Flags: u32, Index: ?*u32, Base: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols4, Name: ?[*:0]const u16, StartIndex: u32, Flags: u32, Index: ?*u32, Base: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetModuleByOffset2: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols4, Offset: u64, StartIndex: u32, Flags: u32, Index: ?*u32, Base: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols4, Offset: u64, StartIndex: u32, Flags: u32, Index: ?*u32, Base: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, AddSyntheticModule: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols4, Base: u64, Size: u32, ImagePath: ?[*:0]const u8, ModuleName: ?[*:0]const u8, Flags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols4, Base: u64, Size: u32, ImagePath: ?[*:0]const u8, ModuleName: ?[*:0]const u8, Flags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, AddSyntheticModuleWide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols4, Base: u64, Size: u32, ImagePath: ?[*:0]const u16, ModuleName: ?[*:0]const u16, Flags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols4, Base: u64, Size: u32, ImagePath: ?[*:0]const u16, ModuleName: ?[*:0]const u16, Flags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, RemoveSyntheticModule: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols4, Base: u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols4, Base: u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetCurrentScopeFrameIndex: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols4, Index: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols4, Index: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetScopeFrameByIndex: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols4, Index: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols4, Index: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetScopeFromJitDebugInfo: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols4, OutputControl: u32, InfoOffset: u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols4, OutputControl: u32, InfoOffset: u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetScopeFromStoredEvent: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols4, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols4, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, OutputSymbolByOffset: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols4, OutputControl: u32, Flags: u32, Offset: u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols4, OutputControl: u32, Flags: u32, Offset: u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetFunctionEntryByOffset: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols4, Offset: u64, Flags: u32, // TODO: what to do with BytesParamIndex 3? Buffer: ?*anyopaque, BufferSize: u32, BufferNeeded: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols4, Offset: u64, Flags: u32, // TODO: what to do with BytesParamIndex 3? Buffer: ?*anyopaque, BufferSize: u32, BufferNeeded: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetFieldTypeAndOffset: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols4, Module: u64, ContainerTypeId: u32, Field: ?[*:0]const u8, FieldTypeId: ?*u32, Offset: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols4, Module: u64, ContainerTypeId: u32, Field: ?[*:0]const u8, FieldTypeId: ?*u32, Offset: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetFieldTypeAndOffsetWide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols4, Module: u64, ContainerTypeId: u32, Field: ?[*:0]const u16, FieldTypeId: ?*u32, Offset: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols4, Module: u64, ContainerTypeId: u32, Field: ?[*:0]const u16, FieldTypeId: ?*u32, Offset: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, AddSyntheticSymbol: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols4, Offset: u64, Size: u32, Name: ?[*:0]const u8, Flags: u32, Id: ?*DEBUG_MODULE_AND_ID, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols4, Offset: u64, Size: u32, Name: ?[*:0]const u8, Flags: u32, Id: ?*DEBUG_MODULE_AND_ID, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, AddSyntheticSymbolWide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols4, Offset: u64, Size: u32, Name: ?[*:0]const u16, Flags: u32, Id: ?*DEBUG_MODULE_AND_ID, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols4, Offset: u64, Size: u32, Name: ?[*:0]const u16, Flags: u32, Id: ?*DEBUG_MODULE_AND_ID, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, RemoveSyntheticSymbol: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols4, Id: ?*DEBUG_MODULE_AND_ID, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols4, Id: ?*DEBUG_MODULE_AND_ID, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetSymbolEntriesByOffset: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols4, Offset: u64, Flags: u32, Ids: ?[*]DEBUG_MODULE_AND_ID, Displacements: ?[*]u64, IdsCount: u32, Entries: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols4, Offset: u64, Flags: u32, Ids: ?[*]DEBUG_MODULE_AND_ID, Displacements: ?[*]u64, IdsCount: u32, Entries: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetSymbolEntriesByName: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols4, Symbol: ?[*:0]const u8, Flags: u32, Ids: ?[*]DEBUG_MODULE_AND_ID, IdsCount: u32, Entries: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols4, Symbol: ?[*:0]const u8, Flags: u32, Ids: ?[*]DEBUG_MODULE_AND_ID, IdsCount: u32, Entries: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetSymbolEntriesByNameWide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols4, Symbol: ?[*:0]const u16, Flags: u32, Ids: ?[*]DEBUG_MODULE_AND_ID, IdsCount: u32, Entries: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols4, Symbol: ?[*:0]const u16, Flags: u32, Ids: ?[*]DEBUG_MODULE_AND_ID, IdsCount: u32, Entries: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetSymbolEntryByToken: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols4, ModuleBase: u64, Token: u32, Id: ?*DEBUG_MODULE_AND_ID, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols4, ModuleBase: u64, Token: u32, Id: ?*DEBUG_MODULE_AND_ID, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetSymbolEntryInformation: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols4, Id: ?*DEBUG_MODULE_AND_ID, Info: ?*DEBUG_SYMBOL_ENTRY, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols4, Id: ?*DEBUG_MODULE_AND_ID, Info: ?*DEBUG_SYMBOL_ENTRY, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetSymbolEntryString: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols4, Id: ?*DEBUG_MODULE_AND_ID, Which: u32, Buffer: ?[*:0]u8, BufferSize: u32, StringSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols4, Id: ?*DEBUG_MODULE_AND_ID, Which: u32, Buffer: ?[*:0]u8, BufferSize: u32, StringSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetSymbolEntryStringWide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols4, Id: ?*DEBUG_MODULE_AND_ID, Which: u32, Buffer: ?[*:0]u16, BufferSize: u32, StringSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols4, Id: ?*DEBUG_MODULE_AND_ID, Which: u32, Buffer: ?[*:0]u16, BufferSize: u32, StringSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetSymbolEntryOffsetRegions: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols4, Id: ?*DEBUG_MODULE_AND_ID, Flags: u32, Regions: ?[*]DEBUG_OFFSET_REGION, RegionsCount: u32, RegionsAvail: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols4, Id: ?*DEBUG_MODULE_AND_ID, Flags: u32, Regions: ?[*]DEBUG_OFFSET_REGION, RegionsCount: u32, RegionsAvail: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetSymbolEntryBySymbolEntry: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols4, FromId: ?*DEBUG_MODULE_AND_ID, Flags: u32, ToId: ?*DEBUG_MODULE_AND_ID, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols4, FromId: ?*DEBUG_MODULE_AND_ID, Flags: u32, ToId: ?*DEBUG_MODULE_AND_ID, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetSourceEntriesByOffset: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols4, Offset: u64, Flags: u32, Entries: ?[*]DEBUG_SYMBOL_SOURCE_ENTRY, EntriesCount: u32, EntriesAvail: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols4, Offset: u64, Flags: u32, Entries: ?[*]DEBUG_SYMBOL_SOURCE_ENTRY, EntriesCount: u32, EntriesAvail: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetSourceEntriesByLine: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols4, Line: u32, File: ?[*:0]const u8, Flags: u32, Entries: ?[*]DEBUG_SYMBOL_SOURCE_ENTRY, EntriesCount: u32, EntriesAvail: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols4, Line: u32, File: ?[*:0]const u8, Flags: u32, Entries: ?[*]DEBUG_SYMBOL_SOURCE_ENTRY, EntriesCount: u32, EntriesAvail: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetSourceEntriesByLineWide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols4, Line: u32, File: ?[*:0]const u16, Flags: u32, Entries: ?[*]DEBUG_SYMBOL_SOURCE_ENTRY, EntriesCount: u32, EntriesAvail: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols4, Line: u32, File: ?[*:0]const u16, Flags: u32, Entries: ?[*]DEBUG_SYMBOL_SOURCE_ENTRY, EntriesCount: u32, EntriesAvail: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetSourceEntryString: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols4, Entry: ?*DEBUG_SYMBOL_SOURCE_ENTRY, Which: u32, Buffer: ?[*:0]u8, BufferSize: u32, StringSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols4, Entry: ?*DEBUG_SYMBOL_SOURCE_ENTRY, Which: u32, Buffer: ?[*:0]u8, BufferSize: u32, StringSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetSourceEntryStringWide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols4, Entry: ?*DEBUG_SYMBOL_SOURCE_ENTRY, Which: u32, Buffer: ?[*:0]u16, BufferSize: u32, StringSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols4, Entry: ?*DEBUG_SYMBOL_SOURCE_ENTRY, Which: u32, Buffer: ?[*:0]u16, BufferSize: u32, StringSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetSourceEntryOffsetRegions: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols4, Entry: ?*DEBUG_SYMBOL_SOURCE_ENTRY, Flags: u32, Regions: ?[*]DEBUG_OFFSET_REGION, RegionsCount: u32, RegionsAvail: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols4, Entry: ?*DEBUG_SYMBOL_SOURCE_ENTRY, Flags: u32, Regions: ?[*]DEBUG_OFFSET_REGION, RegionsCount: u32, RegionsAvail: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetSourceEntryBySourceEntry: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols4, FromEntry: ?*DEBUG_SYMBOL_SOURCE_ENTRY, Flags: u32, ToEntry: ?*DEBUG_SYMBOL_SOURCE_ENTRY, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols4, FromEntry: ?*DEBUG_SYMBOL_SOURCE_ENTRY, Flags: u32, ToEntry: ?*DEBUG_SYMBOL_SOURCE_ENTRY, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetScopeEx: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols4, InstructionOffset: ?*u64, ScopeFrame: ?*DEBUG_STACK_FRAME_EX, // TODO: what to do with BytesParamIndex 3? ScopeContext: ?*anyopaque, ScopeContextSize: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols4, InstructionOffset: ?*u64, ScopeFrame: ?*DEBUG_STACK_FRAME_EX, // TODO: what to do with BytesParamIndex 3? ScopeContext: ?*anyopaque, ScopeContextSize: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetScopeEx: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols4, InstructionOffset: u64, ScopeFrame: ?*DEBUG_STACK_FRAME_EX, // TODO: what to do with BytesParamIndex 3? ScopeContext: ?*anyopaque, ScopeContextSize: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols4, InstructionOffset: u64, ScopeFrame: ?*DEBUG_STACK_FRAME_EX, // TODO: what to do with BytesParamIndex 3? ScopeContext: ?*anyopaque, ScopeContextSize: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetNameByInlineContext: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols4, Offset: u64, InlineContext: u32, NameBuffer: ?[*:0]u8, NameBufferSize: u32, NameSize: ?*u32, Displacement: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols4, Offset: u64, InlineContext: u32, NameBuffer: ?[*:0]u8, NameBufferSize: u32, NameSize: ?*u32, Displacement: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetNameByInlineContextWide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols4, Offset: u64, InlineContext: u32, NameBuffer: ?[*:0]u16, NameBufferSize: u32, NameSize: ?*u32, Displacement: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols4, Offset: u64, InlineContext: u32, NameBuffer: ?[*:0]u16, NameBufferSize: u32, NameSize: ?*u32, Displacement: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetLineByInlineContext: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols4, Offset: u64, InlineContext: u32, Line: ?*u32, FileBuffer: ?[*:0]u8, FileBufferSize: u32, FileSize: ?*u32, Displacement: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols4, Offset: u64, InlineContext: u32, Line: ?*u32, FileBuffer: ?[*:0]u8, FileBufferSize: u32, FileSize: ?*u32, Displacement: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetLineByInlineContextWide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols4, Offset: u64, InlineContext: u32, Line: ?*u32, FileBuffer: ?[*:0]u16, FileBufferSize: u32, FileSize: ?*u32, Displacement: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols4, Offset: u64, InlineContext: u32, Line: ?*u32, FileBuffer: ?[*:0]u16, FileBufferSize: u32, FileSize: ?*u32, Displacement: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, OutputSymbolByInlineContext: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols4, OutputControl: u32, Flags: u32, Offset: u64, InlineContext: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols4, OutputControl: u32, Flags: u32, Offset: u64, InlineContext: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols4_GetSymbolOptions(self: *const T, Options: ?*u32) HRESULT { return @as(*const IDebugSymbols4.VTable, @ptrCast(self.vtable)).GetSymbolOptions(@as(*const IDebugSymbols4, @ptrCast(self)), Options); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols4_AddSymbolOptions(self: *const T, Options: u32) HRESULT { return @as(*const IDebugSymbols4.VTable, @ptrCast(self.vtable)).AddSymbolOptions(@as(*const IDebugSymbols4, @ptrCast(self)), Options); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols4_RemoveSymbolOptions(self: *const T, Options: u32) HRESULT { return @as(*const IDebugSymbols4.VTable, @ptrCast(self.vtable)).RemoveSymbolOptions(@as(*const IDebugSymbols4, @ptrCast(self)), Options); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols4_SetSymbolOptions(self: *const T, Options: u32) HRESULT { return @as(*const IDebugSymbols4.VTable, @ptrCast(self.vtable)).SetSymbolOptions(@as(*const IDebugSymbols4, @ptrCast(self)), Options); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols4_GetNameByOffset(self: *const T, Offset: u64, NameBuffer: ?[*:0]u8, NameBufferSize: u32, NameSize: ?*u32, Displacement: ?*u64) HRESULT { return @as(*const IDebugSymbols4.VTable, @ptrCast(self.vtable)).GetNameByOffset(@as(*const IDebugSymbols4, @ptrCast(self)), Offset, NameBuffer, NameBufferSize, NameSize, Displacement); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols4_GetOffsetByName(self: *const T, _param_Symbol: ?[*:0]const u8, Offset: ?*u64) HRESULT { return @as(*const IDebugSymbols4.VTable, @ptrCast(self.vtable)).GetOffsetByName(@as(*const IDebugSymbols4, @ptrCast(self)), _param_Symbol, Offset); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols4_GetNearNameByOffset(self: *const T, Offset: u64, Delta: i32, NameBuffer: ?[*:0]u8, NameBufferSize: u32, NameSize: ?*u32, Displacement: ?*u64) HRESULT { return @as(*const IDebugSymbols4.VTable, @ptrCast(self.vtable)).GetNearNameByOffset(@as(*const IDebugSymbols4, @ptrCast(self)), Offset, Delta, NameBuffer, NameBufferSize, NameSize, Displacement); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols4_GetLineByOffset(self: *const T, Offset: u64, Line: ?*u32, FileBuffer: ?[*:0]u8, FileBufferSize: u32, FileSize: ?*u32, Displacement: ?*u64) HRESULT { return @as(*const IDebugSymbols4.VTable, @ptrCast(self.vtable)).GetLineByOffset(@as(*const IDebugSymbols4, @ptrCast(self)), Offset, Line, FileBuffer, FileBufferSize, FileSize, Displacement); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols4_GetOffsetByLine(self: *const T, Line: u32, File: ?[*:0]const u8, Offset: ?*u64) HRESULT { return @as(*const IDebugSymbols4.VTable, @ptrCast(self.vtable)).GetOffsetByLine(@as(*const IDebugSymbols4, @ptrCast(self)), Line, File, Offset); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols4_GetNumberModules(self: *const T, Loaded: ?*u32, Unloaded: ?*u32) HRESULT { return @as(*const IDebugSymbols4.VTable, @ptrCast(self.vtable)).GetNumberModules(@as(*const IDebugSymbols4, @ptrCast(self)), Loaded, Unloaded); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols4_GetModuleByIndex(self: *const T, Index: u32, Base: ?*u64) HRESULT { return @as(*const IDebugSymbols4.VTable, @ptrCast(self.vtable)).GetModuleByIndex(@as(*const IDebugSymbols4, @ptrCast(self)), Index, Base); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols4_GetModuleByModuleName(self: *const T, Name: ?[*:0]const u8, StartIndex: u32, Index: ?*u32, Base: ?*u64) HRESULT { return @as(*const IDebugSymbols4.VTable, @ptrCast(self.vtable)).GetModuleByModuleName(@as(*const IDebugSymbols4, @ptrCast(self)), Name, StartIndex, Index, Base); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols4_GetModuleByOffset(self: *const T, Offset: u64, StartIndex: u32, Index: ?*u32, Base: ?*u64) HRESULT { return @as(*const IDebugSymbols4.VTable, @ptrCast(self.vtable)).GetModuleByOffset(@as(*const IDebugSymbols4, @ptrCast(self)), Offset, StartIndex, Index, Base); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols4_GetModuleNames(self: *const T, Index: u32, Base: u64, ImageNameBuffer: ?[*:0]u8, ImageNameBufferSize: u32, ImageNameSize: ?*u32, ModuleNameBuffer: ?[*:0]u8, ModuleNameBufferSize: u32, ModuleNameSize: ?*u32, LoadedImageNameBuffer: ?[*:0]u8, LoadedImageNameBufferSize: u32, LoadedImageNameSize: ?*u32) HRESULT { return @as(*const IDebugSymbols4.VTable, @ptrCast(self.vtable)).GetModuleNames(@as(*const IDebugSymbols4, @ptrCast(self)), Index, Base, ImageNameBuffer, ImageNameBufferSize, ImageNameSize, ModuleNameBuffer, ModuleNameBufferSize, ModuleNameSize, LoadedImageNameBuffer, LoadedImageNameBufferSize, LoadedImageNameSize); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols4_GetModuleParameters(self: *const T, Count: u32, Bases: ?[*]u64, Start: u32, Params: [*]DEBUG_MODULE_PARAMETERS) HRESULT { return @as(*const IDebugSymbols4.VTable, @ptrCast(self.vtable)).GetModuleParameters(@as(*const IDebugSymbols4, @ptrCast(self)), Count, Bases, Start, Params); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols4_GetSymbolModule(self: *const T, _param_Symbol: ?[*:0]const u8, Base: ?*u64) HRESULT { return @as(*const IDebugSymbols4.VTable, @ptrCast(self.vtable)).GetSymbolModule(@as(*const IDebugSymbols4, @ptrCast(self)), _param_Symbol, Base); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols4_GetTypeName(self: *const T, Module: u64, TypeId: u32, NameBuffer: ?[*:0]u8, NameBufferSize: u32, NameSize: ?*u32) HRESULT { return @as(*const IDebugSymbols4.VTable, @ptrCast(self.vtable)).GetTypeName(@as(*const IDebugSymbols4, @ptrCast(self)), Module, TypeId, NameBuffer, NameBufferSize, NameSize); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols4_GetTypeId(self: *const T, Module: u64, Name: ?[*:0]const u8, TypeId: ?*u32) HRESULT { return @as(*const IDebugSymbols4.VTable, @ptrCast(self.vtable)).GetTypeId(@as(*const IDebugSymbols4, @ptrCast(self)), Module, Name, TypeId); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols4_GetTypeSize(self: *const T, Module: u64, TypeId: u32, Size: ?*u32) HRESULT { return @as(*const IDebugSymbols4.VTable, @ptrCast(self.vtable)).GetTypeSize(@as(*const IDebugSymbols4, @ptrCast(self)), Module, TypeId, Size); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols4_GetFieldOffset(self: *const T, Module: u64, TypeId: u32, Field: ?[*:0]const u8, Offset: ?*u32) HRESULT { return @as(*const IDebugSymbols4.VTable, @ptrCast(self.vtable)).GetFieldOffset(@as(*const IDebugSymbols4, @ptrCast(self)), Module, TypeId, Field, Offset); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols4_GetSymbolTypeId(self: *const T, _param_Symbol: ?[*:0]const u8, TypeId: ?*u32, Module: ?*u64) HRESULT { return @as(*const IDebugSymbols4.VTable, @ptrCast(self.vtable)).GetSymbolTypeId(@as(*const IDebugSymbols4, @ptrCast(self)), _param_Symbol, TypeId, Module); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols4_GetOffsetTypeId(self: *const T, Offset: u64, TypeId: ?*u32, Module: ?*u64) HRESULT { return @as(*const IDebugSymbols4.VTable, @ptrCast(self.vtable)).GetOffsetTypeId(@as(*const IDebugSymbols4, @ptrCast(self)), Offset, TypeId, Module); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols4_ReadTypedDataVirtual(self: *const T, Offset: u64, Module: u64, TypeId: u32, Buffer: ?*anyopaque, BufferSize: u32, BytesRead: ?*u32) HRESULT { return @as(*const IDebugSymbols4.VTable, @ptrCast(self.vtable)).ReadTypedDataVirtual(@as(*const IDebugSymbols4, @ptrCast(self)), Offset, Module, TypeId, Buffer, BufferSize, BytesRead); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols4_WriteTypedDataVirtual(self: *const T, Offset: u64, Module: u64, TypeId: u32, Buffer: ?*anyopaque, BufferSize: u32, BytesWritten: ?*u32) HRESULT { return @as(*const IDebugSymbols4.VTable, @ptrCast(self.vtable)).WriteTypedDataVirtual(@as(*const IDebugSymbols4, @ptrCast(self)), Offset, Module, TypeId, Buffer, BufferSize, BytesWritten); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols4_OutputTypedDataVirtual(self: *const T, OutputControl: u32, Offset: u64, Module: u64, TypeId: u32, Flags: u32) HRESULT { return @as(*const IDebugSymbols4.VTable, @ptrCast(self.vtable)).OutputTypedDataVirtual(@as(*const IDebugSymbols4, @ptrCast(self)), OutputControl, Offset, Module, TypeId, Flags); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols4_ReadTypedDataPhysical(self: *const T, Offset: u64, Module: u64, TypeId: u32, Buffer: ?*anyopaque, BufferSize: u32, BytesRead: ?*u32) HRESULT { return @as(*const IDebugSymbols4.VTable, @ptrCast(self.vtable)).ReadTypedDataPhysical(@as(*const IDebugSymbols4, @ptrCast(self)), Offset, Module, TypeId, Buffer, BufferSize, BytesRead); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols4_WriteTypedDataPhysical(self: *const T, Offset: u64, Module: u64, TypeId: u32, Buffer: ?*anyopaque, BufferSize: u32, BytesWritten: ?*u32) HRESULT { return @as(*const IDebugSymbols4.VTable, @ptrCast(self.vtable)).WriteTypedDataPhysical(@as(*const IDebugSymbols4, @ptrCast(self)), Offset, Module, TypeId, Buffer, BufferSize, BytesWritten); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols4_OutputTypedDataPhysical(self: *const T, OutputControl: u32, Offset: u64, Module: u64, TypeId: u32, Flags: u32) HRESULT { return @as(*const IDebugSymbols4.VTable, @ptrCast(self.vtable)).OutputTypedDataPhysical(@as(*const IDebugSymbols4, @ptrCast(self)), OutputControl, Offset, Module, TypeId, Flags); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols4_GetScope(self: *const T, InstructionOffset: ?*u64, ScopeFrame: ?*DEBUG_STACK_FRAME, ScopeContext: ?*anyopaque, ScopeContextSize: u32) HRESULT { return @as(*const IDebugSymbols4.VTable, @ptrCast(self.vtable)).GetScope(@as(*const IDebugSymbols4, @ptrCast(self)), InstructionOffset, ScopeFrame, ScopeContext, ScopeContextSize); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols4_SetScope(self: *const T, InstructionOffset: u64, ScopeFrame: ?*DEBUG_STACK_FRAME, ScopeContext: ?*anyopaque, ScopeContextSize: u32) HRESULT { return @as(*const IDebugSymbols4.VTable, @ptrCast(self.vtable)).SetScope(@as(*const IDebugSymbols4, @ptrCast(self)), InstructionOffset, ScopeFrame, ScopeContext, ScopeContextSize); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols4_ResetScope(self: *const T) HRESULT { return @as(*const IDebugSymbols4.VTable, @ptrCast(self.vtable)).ResetScope(@as(*const IDebugSymbols4, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols4_GetScopeSymbolGroup(self: *const T, Flags: u32, Update: ?*IDebugSymbolGroup, Symbols: ?*?*IDebugSymbolGroup) HRESULT { return @as(*const IDebugSymbols4.VTable, @ptrCast(self.vtable)).GetScopeSymbolGroup(@as(*const IDebugSymbols4, @ptrCast(self)), Flags, Update, Symbols); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols4_CreateSymbolGroup(self: *const T, Group: ?*?*IDebugSymbolGroup) HRESULT { return @as(*const IDebugSymbols4.VTable, @ptrCast(self.vtable)).CreateSymbolGroup(@as(*const IDebugSymbols4, @ptrCast(self)), Group); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols4_StartSymbolMatch(self: *const T, Pattern: ?[*:0]const u8, Handle: ?*u64) HRESULT { return @as(*const IDebugSymbols4.VTable, @ptrCast(self.vtable)).StartSymbolMatch(@as(*const IDebugSymbols4, @ptrCast(self)), Pattern, Handle); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols4_GetNextSymbolMatch(self: *const T, Handle: u64, Buffer: ?[*:0]u8, BufferSize: u32, MatchSize: ?*u32, Offset: ?*u64) HRESULT { return @as(*const IDebugSymbols4.VTable, @ptrCast(self.vtable)).GetNextSymbolMatch(@as(*const IDebugSymbols4, @ptrCast(self)), Handle, Buffer, BufferSize, MatchSize, Offset); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols4_EndSymbolMatch(self: *const T, Handle: u64) HRESULT { return @as(*const IDebugSymbols4.VTable, @ptrCast(self.vtable)).EndSymbolMatch(@as(*const IDebugSymbols4, @ptrCast(self)), Handle); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols4_Reload(self: *const T, Module: ?[*:0]const u8) HRESULT { return @as(*const IDebugSymbols4.VTable, @ptrCast(self.vtable)).Reload(@as(*const IDebugSymbols4, @ptrCast(self)), Module); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols4_GetSymbolPath(self: *const T, Buffer: ?[*:0]u8, BufferSize: u32, PathSize: ?*u32) HRESULT { return @as(*const IDebugSymbols4.VTable, @ptrCast(self.vtable)).GetSymbolPath(@as(*const IDebugSymbols4, @ptrCast(self)), Buffer, BufferSize, PathSize); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols4_SetSymbolPath(self: *const T, Path: ?[*:0]const u8) HRESULT { return @as(*const IDebugSymbols4.VTable, @ptrCast(self.vtable)).SetSymbolPath(@as(*const IDebugSymbols4, @ptrCast(self)), Path); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols4_AppendSymbolPath(self: *const T, Addition: ?[*:0]const u8) HRESULT { return @as(*const IDebugSymbols4.VTable, @ptrCast(self.vtable)).AppendSymbolPath(@as(*const IDebugSymbols4, @ptrCast(self)), Addition); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols4_GetImagePath(self: *const T, Buffer: ?[*:0]u8, BufferSize: u32, PathSize: ?*u32) HRESULT { return @as(*const IDebugSymbols4.VTable, @ptrCast(self.vtable)).GetImagePath(@as(*const IDebugSymbols4, @ptrCast(self)), Buffer, BufferSize, PathSize); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols4_SetImagePath(self: *const T, Path: ?[*:0]const u8) HRESULT { return @as(*const IDebugSymbols4.VTable, @ptrCast(self.vtable)).SetImagePath(@as(*const IDebugSymbols4, @ptrCast(self)), Path); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols4_AppendImagePath(self: *const T, Addition: ?[*:0]const u8) HRESULT { return @as(*const IDebugSymbols4.VTable, @ptrCast(self.vtable)).AppendImagePath(@as(*const IDebugSymbols4, @ptrCast(self)), Addition); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols4_GetSourcePath(self: *const T, Buffer: ?[*:0]u8, BufferSize: u32, PathSize: ?*u32) HRESULT { return @as(*const IDebugSymbols4.VTable, @ptrCast(self.vtable)).GetSourcePath(@as(*const IDebugSymbols4, @ptrCast(self)), Buffer, BufferSize, PathSize); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols4_GetSourcePathElement(self: *const T, Index: u32, Buffer: ?[*:0]u8, BufferSize: u32, ElementSize: ?*u32) HRESULT { return @as(*const IDebugSymbols4.VTable, @ptrCast(self.vtable)).GetSourcePathElement(@as(*const IDebugSymbols4, @ptrCast(self)), Index, Buffer, BufferSize, ElementSize); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols4_SetSourcePath(self: *const T, Path: ?[*:0]const u8) HRESULT { return @as(*const IDebugSymbols4.VTable, @ptrCast(self.vtable)).SetSourcePath(@as(*const IDebugSymbols4, @ptrCast(self)), Path); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols4_AppendSourcePath(self: *const T, Addition: ?[*:0]const u8) HRESULT { return @as(*const IDebugSymbols4.VTable, @ptrCast(self.vtable)).AppendSourcePath(@as(*const IDebugSymbols4, @ptrCast(self)), Addition); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols4_FindSourceFile(self: *const T, StartElement: u32, File: ?[*:0]const u8, Flags: u32, FoundElement: ?*u32, Buffer: ?[*:0]u8, BufferSize: u32, FoundSize: ?*u32) HRESULT { return @as(*const IDebugSymbols4.VTable, @ptrCast(self.vtable)).FindSourceFile(@as(*const IDebugSymbols4, @ptrCast(self)), StartElement, File, Flags, FoundElement, Buffer, BufferSize, FoundSize); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols4_GetSourceFileLineOffsets(self: *const T, File: ?[*:0]const u8, Buffer: ?[*]u64, BufferLines: u32, FileLines: ?*u32) HRESULT { return @as(*const IDebugSymbols4.VTable, @ptrCast(self.vtable)).GetSourceFileLineOffsets(@as(*const IDebugSymbols4, @ptrCast(self)), File, Buffer, BufferLines, FileLines); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols4_GetModuleVersionInformation(self: *const T, Index: u32, Base: u64, Item: ?[*:0]const u8, Buffer: ?*anyopaque, BufferSize: u32, VerInfoSize: ?*u32) HRESULT { return @as(*const IDebugSymbols4.VTable, @ptrCast(self.vtable)).GetModuleVersionInformation(@as(*const IDebugSymbols4, @ptrCast(self)), Index, Base, Item, Buffer, BufferSize, VerInfoSize); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols4_GetModuleNameString(self: *const T, Which: u32, Index: u32, Base: u64, Buffer: ?[*:0]u8, BufferSize: u32, NameSize: ?*u32) HRESULT { return @as(*const IDebugSymbols4.VTable, @ptrCast(self.vtable)).GetModuleNameString(@as(*const IDebugSymbols4, @ptrCast(self)), Which, Index, Base, Buffer, BufferSize, NameSize); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols4_GetConstantName(self: *const T, Module: u64, TypeId: u32, Value: u64, NameBuffer: ?[*:0]u8, NameBufferSize: u32, NameSize: ?*u32) HRESULT { return @as(*const IDebugSymbols4.VTable, @ptrCast(self.vtable)).GetConstantName(@as(*const IDebugSymbols4, @ptrCast(self)), Module, TypeId, Value, NameBuffer, NameBufferSize, NameSize); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols4_GetFieldName(self: *const T, Module: u64, TypeId: u32, FieldIndex: u32, NameBuffer: ?[*:0]u8, NameBufferSize: u32, NameSize: ?*u32) HRESULT { return @as(*const IDebugSymbols4.VTable, @ptrCast(self.vtable)).GetFieldName(@as(*const IDebugSymbols4, @ptrCast(self)), Module, TypeId, FieldIndex, NameBuffer, NameBufferSize, NameSize); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols4_GetTypeOptions(self: *const T, Options: ?*u32) HRESULT { return @as(*const IDebugSymbols4.VTable, @ptrCast(self.vtable)).GetTypeOptions(@as(*const IDebugSymbols4, @ptrCast(self)), Options); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols4_AddTypeOptions(self: *const T, Options: u32) HRESULT { return @as(*const IDebugSymbols4.VTable, @ptrCast(self.vtable)).AddTypeOptions(@as(*const IDebugSymbols4, @ptrCast(self)), Options); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols4_RemoveTypeOptions(self: *const T, Options: u32) HRESULT { return @as(*const IDebugSymbols4.VTable, @ptrCast(self.vtable)).RemoveTypeOptions(@as(*const IDebugSymbols4, @ptrCast(self)), Options); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols4_SetTypeOptions(self: *const T, Options: u32) HRESULT { return @as(*const IDebugSymbols4.VTable, @ptrCast(self.vtable)).SetTypeOptions(@as(*const IDebugSymbols4, @ptrCast(self)), Options); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols4_GetNameByOffsetWide(self: *const T, Offset: u64, NameBuffer: ?[*:0]u16, NameBufferSize: u32, NameSize: ?*u32, Displacement: ?*u64) HRESULT { return @as(*const IDebugSymbols4.VTable, @ptrCast(self.vtable)).GetNameByOffsetWide(@as(*const IDebugSymbols4, @ptrCast(self)), Offset, NameBuffer, NameBufferSize, NameSize, Displacement); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols4_GetOffsetByNameWide(self: *const T, _param_Symbol: ?[*:0]const u16, Offset: ?*u64) HRESULT { return @as(*const IDebugSymbols4.VTable, @ptrCast(self.vtable)).GetOffsetByNameWide(@as(*const IDebugSymbols4, @ptrCast(self)), _param_Symbol, Offset); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols4_GetNearNameByOffsetWide(self: *const T, Offset: u64, Delta: i32, NameBuffer: ?[*:0]u16, NameBufferSize: u32, NameSize: ?*u32, Displacement: ?*u64) HRESULT { return @as(*const IDebugSymbols4.VTable, @ptrCast(self.vtable)).GetNearNameByOffsetWide(@as(*const IDebugSymbols4, @ptrCast(self)), Offset, Delta, NameBuffer, NameBufferSize, NameSize, Displacement); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols4_GetLineByOffsetWide(self: *const T, Offset: u64, Line: ?*u32, FileBuffer: ?[*:0]u16, FileBufferSize: u32, FileSize: ?*u32, Displacement: ?*u64) HRESULT { return @as(*const IDebugSymbols4.VTable, @ptrCast(self.vtable)).GetLineByOffsetWide(@as(*const IDebugSymbols4, @ptrCast(self)), Offset, Line, FileBuffer, FileBufferSize, FileSize, Displacement); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols4_GetOffsetByLineWide(self: *const T, Line: u32, File: ?[*:0]const u16, Offset: ?*u64) HRESULT { return @as(*const IDebugSymbols4.VTable, @ptrCast(self.vtable)).GetOffsetByLineWide(@as(*const IDebugSymbols4, @ptrCast(self)), Line, File, Offset); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols4_GetModuleByModuleNameWide(self: *const T, Name: ?[*:0]const u16, StartIndex: u32, Index: ?*u32, Base: ?*u64) HRESULT { return @as(*const IDebugSymbols4.VTable, @ptrCast(self.vtable)).GetModuleByModuleNameWide(@as(*const IDebugSymbols4, @ptrCast(self)), Name, StartIndex, Index, Base); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols4_GetSymbolModuleWide(self: *const T, _param_Symbol: ?[*:0]const u16, Base: ?*u64) HRESULT { return @as(*const IDebugSymbols4.VTable, @ptrCast(self.vtable)).GetSymbolModuleWide(@as(*const IDebugSymbols4, @ptrCast(self)), _param_Symbol, Base); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols4_GetTypeNameWide(self: *const T, Module: u64, TypeId: u32, NameBuffer: ?[*:0]u16, NameBufferSize: u32, NameSize: ?*u32) HRESULT { return @as(*const IDebugSymbols4.VTable, @ptrCast(self.vtable)).GetTypeNameWide(@as(*const IDebugSymbols4, @ptrCast(self)), Module, TypeId, NameBuffer, NameBufferSize, NameSize); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols4_GetTypeIdWide(self: *const T, Module: u64, Name: ?[*:0]const u16, TypeId: ?*u32) HRESULT { return @as(*const IDebugSymbols4.VTable, @ptrCast(self.vtable)).GetTypeIdWide(@as(*const IDebugSymbols4, @ptrCast(self)), Module, Name, TypeId); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols4_GetFieldOffsetWide(self: *const T, Module: u64, TypeId: u32, Field: ?[*:0]const u16, Offset: ?*u32) HRESULT { return @as(*const IDebugSymbols4.VTable, @ptrCast(self.vtable)).GetFieldOffsetWide(@as(*const IDebugSymbols4, @ptrCast(self)), Module, TypeId, Field, Offset); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols4_GetSymbolTypeIdWide(self: *const T, _param_Symbol: ?[*:0]const u16, TypeId: ?*u32, Module: ?*u64) HRESULT { return @as(*const IDebugSymbols4.VTable, @ptrCast(self.vtable)).GetSymbolTypeIdWide(@as(*const IDebugSymbols4, @ptrCast(self)), _param_Symbol, TypeId, Module); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols4_GetScopeSymbolGroup2(self: *const T, Flags: u32, Update: ?*IDebugSymbolGroup2, Symbols: ?*?*IDebugSymbolGroup2) HRESULT { return @as(*const IDebugSymbols4.VTable, @ptrCast(self.vtable)).GetScopeSymbolGroup2(@as(*const IDebugSymbols4, @ptrCast(self)), Flags, Update, Symbols); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols4_CreateSymbolGroup2(self: *const T, Group: ?*?*IDebugSymbolGroup2) HRESULT { return @as(*const IDebugSymbols4.VTable, @ptrCast(self.vtable)).CreateSymbolGroup2(@as(*const IDebugSymbols4, @ptrCast(self)), Group); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols4_StartSymbolMatchWide(self: *const T, Pattern: ?[*:0]const u16, Handle: ?*u64) HRESULT { return @as(*const IDebugSymbols4.VTable, @ptrCast(self.vtable)).StartSymbolMatchWide(@as(*const IDebugSymbols4, @ptrCast(self)), Pattern, Handle); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols4_GetNextSymbolMatchWide(self: *const T, Handle: u64, Buffer: ?[*:0]u16, BufferSize: u32, MatchSize: ?*u32, Offset: ?*u64) HRESULT { return @as(*const IDebugSymbols4.VTable, @ptrCast(self.vtable)).GetNextSymbolMatchWide(@as(*const IDebugSymbols4, @ptrCast(self)), Handle, Buffer, BufferSize, MatchSize, Offset); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols4_ReloadWide(self: *const T, Module: ?[*:0]const u16) HRESULT { return @as(*const IDebugSymbols4.VTable, @ptrCast(self.vtable)).ReloadWide(@as(*const IDebugSymbols4, @ptrCast(self)), Module); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols4_GetSymbolPathWide(self: *const T, Buffer: ?[*:0]u16, BufferSize: u32, PathSize: ?*u32) HRESULT { return @as(*const IDebugSymbols4.VTable, @ptrCast(self.vtable)).GetSymbolPathWide(@as(*const IDebugSymbols4, @ptrCast(self)), Buffer, BufferSize, PathSize); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols4_SetSymbolPathWide(self: *const T, Path: ?[*:0]const u16) HRESULT { return @as(*const IDebugSymbols4.VTable, @ptrCast(self.vtable)).SetSymbolPathWide(@as(*const IDebugSymbols4, @ptrCast(self)), Path); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols4_AppendSymbolPathWide(self: *const T, Addition: ?[*:0]const u16) HRESULT { return @as(*const IDebugSymbols4.VTable, @ptrCast(self.vtable)).AppendSymbolPathWide(@as(*const IDebugSymbols4, @ptrCast(self)), Addition); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols4_GetImagePathWide(self: *const T, Buffer: ?[*:0]u16, BufferSize: u32, PathSize: ?*u32) HRESULT { return @as(*const IDebugSymbols4.VTable, @ptrCast(self.vtable)).GetImagePathWide(@as(*const IDebugSymbols4, @ptrCast(self)), Buffer, BufferSize, PathSize); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols4_SetImagePathWide(self: *const T, Path: ?[*:0]const u16) HRESULT { return @as(*const IDebugSymbols4.VTable, @ptrCast(self.vtable)).SetImagePathWide(@as(*const IDebugSymbols4, @ptrCast(self)), Path); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols4_AppendImagePathWide(self: *const T, Addition: ?[*:0]const u16) HRESULT { return @as(*const IDebugSymbols4.VTable, @ptrCast(self.vtable)).AppendImagePathWide(@as(*const IDebugSymbols4, @ptrCast(self)), Addition); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols4_GetSourcePathWide(self: *const T, Buffer: ?[*:0]u16, BufferSize: u32, PathSize: ?*u32) HRESULT { return @as(*const IDebugSymbols4.VTable, @ptrCast(self.vtable)).GetSourcePathWide(@as(*const IDebugSymbols4, @ptrCast(self)), Buffer, BufferSize, PathSize); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols4_GetSourcePathElementWide(self: *const T, Index: u32, Buffer: ?[*:0]u16, BufferSize: u32, ElementSize: ?*u32) HRESULT { return @as(*const IDebugSymbols4.VTable, @ptrCast(self.vtable)).GetSourcePathElementWide(@as(*const IDebugSymbols4, @ptrCast(self)), Index, Buffer, BufferSize, ElementSize); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols4_SetSourcePathWide(self: *const T, Path: ?[*:0]const u16) HRESULT { return @as(*const IDebugSymbols4.VTable, @ptrCast(self.vtable)).SetSourcePathWide(@as(*const IDebugSymbols4, @ptrCast(self)), Path); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols4_AppendSourcePathWide(self: *const T, Addition: ?[*:0]const u16) HRESULT { return @as(*const IDebugSymbols4.VTable, @ptrCast(self.vtable)).AppendSourcePathWide(@as(*const IDebugSymbols4, @ptrCast(self)), Addition); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols4_FindSourceFileWide(self: *const T, StartElement: u32, File: ?[*:0]const u16, Flags: u32, FoundElement: ?*u32, Buffer: ?[*:0]u16, BufferSize: u32, FoundSize: ?*u32) HRESULT { return @as(*const IDebugSymbols4.VTable, @ptrCast(self.vtable)).FindSourceFileWide(@as(*const IDebugSymbols4, @ptrCast(self)), StartElement, File, Flags, FoundElement, Buffer, BufferSize, FoundSize); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols4_GetSourceFileLineOffsetsWide(self: *const T, File: ?[*:0]const u16, Buffer: ?[*]u64, BufferLines: u32, FileLines: ?*u32) HRESULT { return @as(*const IDebugSymbols4.VTable, @ptrCast(self.vtable)).GetSourceFileLineOffsetsWide(@as(*const IDebugSymbols4, @ptrCast(self)), File, Buffer, BufferLines, FileLines); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols4_GetModuleVersionInformationWide(self: *const T, Index: u32, Base: u64, Item: ?[*:0]const u16, Buffer: ?*anyopaque, BufferSize: u32, VerInfoSize: ?*u32) HRESULT { return @as(*const IDebugSymbols4.VTable, @ptrCast(self.vtable)).GetModuleVersionInformationWide(@as(*const IDebugSymbols4, @ptrCast(self)), Index, Base, Item, Buffer, BufferSize, VerInfoSize); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols4_GetModuleNameStringWide(self: *const T, Which: u32, Index: u32, Base: u64, Buffer: ?[*:0]u16, BufferSize: u32, NameSize: ?*u32) HRESULT { return @as(*const IDebugSymbols4.VTable, @ptrCast(self.vtable)).GetModuleNameStringWide(@as(*const IDebugSymbols4, @ptrCast(self)), Which, Index, Base, Buffer, BufferSize, NameSize); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols4_GetConstantNameWide(self: *const T, Module: u64, TypeId: u32, Value: u64, NameBuffer: ?[*:0]u16, NameBufferSize: u32, NameSize: ?*u32) HRESULT { return @as(*const IDebugSymbols4.VTable, @ptrCast(self.vtable)).GetConstantNameWide(@as(*const IDebugSymbols4, @ptrCast(self)), Module, TypeId, Value, NameBuffer, NameBufferSize, NameSize); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols4_GetFieldNameWide(self: *const T, Module: u64, TypeId: u32, FieldIndex: u32, NameBuffer: ?[*:0]u16, NameBufferSize: u32, NameSize: ?*u32) HRESULT { return @as(*const IDebugSymbols4.VTable, @ptrCast(self.vtable)).GetFieldNameWide(@as(*const IDebugSymbols4, @ptrCast(self)), Module, TypeId, FieldIndex, NameBuffer, NameBufferSize, NameSize); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols4_IsManagedModule(self: *const T, Index: u32, Base: u64) HRESULT { return @as(*const IDebugSymbols4.VTable, @ptrCast(self.vtable)).IsManagedModule(@as(*const IDebugSymbols4, @ptrCast(self)), Index, Base); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols4_GetModuleByModuleName2(self: *const T, Name: ?[*:0]const u8, StartIndex: u32, Flags: u32, Index: ?*u32, Base: ?*u64) HRESULT { return @as(*const IDebugSymbols4.VTable, @ptrCast(self.vtable)).GetModuleByModuleName2(@as(*const IDebugSymbols4, @ptrCast(self)), Name, StartIndex, Flags, Index, Base); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols4_GetModuleByModuleName2Wide(self: *const T, Name: ?[*:0]const u16, StartIndex: u32, Flags: u32, Index: ?*u32, Base: ?*u64) HRESULT { return @as(*const IDebugSymbols4.VTable, @ptrCast(self.vtable)).GetModuleByModuleName2Wide(@as(*const IDebugSymbols4, @ptrCast(self)), Name, StartIndex, Flags, Index, Base); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols4_GetModuleByOffset2(self: *const T, Offset: u64, StartIndex: u32, Flags: u32, Index: ?*u32, Base: ?*u64) HRESULT { return @as(*const IDebugSymbols4.VTable, @ptrCast(self.vtable)).GetModuleByOffset2(@as(*const IDebugSymbols4, @ptrCast(self)), Offset, StartIndex, Flags, Index, Base); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols4_AddSyntheticModule(self: *const T, Base: u64, Size: u32, ImagePath: ?[*:0]const u8, ModuleName: ?[*:0]const u8, Flags: u32) HRESULT { return @as(*const IDebugSymbols4.VTable, @ptrCast(self.vtable)).AddSyntheticModule(@as(*const IDebugSymbols4, @ptrCast(self)), Base, Size, ImagePath, ModuleName, Flags); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols4_AddSyntheticModuleWide(self: *const T, Base: u64, Size: u32, ImagePath: ?[*:0]const u16, ModuleName: ?[*:0]const u16, Flags: u32) HRESULT { return @as(*const IDebugSymbols4.VTable, @ptrCast(self.vtable)).AddSyntheticModuleWide(@as(*const IDebugSymbols4, @ptrCast(self)), Base, Size, ImagePath, ModuleName, Flags); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols4_RemoveSyntheticModule(self: *const T, Base: u64) HRESULT { return @as(*const IDebugSymbols4.VTable, @ptrCast(self.vtable)).RemoveSyntheticModule(@as(*const IDebugSymbols4, @ptrCast(self)), Base); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols4_GetCurrentScopeFrameIndex(self: *const T, Index: ?*u32) HRESULT { return @as(*const IDebugSymbols4.VTable, @ptrCast(self.vtable)).GetCurrentScopeFrameIndex(@as(*const IDebugSymbols4, @ptrCast(self)), Index); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols4_SetScopeFrameByIndex(self: *const T, Index: u32) HRESULT { return @as(*const IDebugSymbols4.VTable, @ptrCast(self.vtable)).SetScopeFrameByIndex(@as(*const IDebugSymbols4, @ptrCast(self)), Index); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols4_SetScopeFromJitDebugInfo(self: *const T, OutputControl: u32, InfoOffset: u64) HRESULT { return @as(*const IDebugSymbols4.VTable, @ptrCast(self.vtable)).SetScopeFromJitDebugInfo(@as(*const IDebugSymbols4, @ptrCast(self)), OutputControl, InfoOffset); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols4_SetScopeFromStoredEvent(self: *const T) HRESULT { return @as(*const IDebugSymbols4.VTable, @ptrCast(self.vtable)).SetScopeFromStoredEvent(@as(*const IDebugSymbols4, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols4_OutputSymbolByOffset(self: *const T, OutputControl: u32, Flags: u32, Offset: u64) HRESULT { return @as(*const IDebugSymbols4.VTable, @ptrCast(self.vtable)).OutputSymbolByOffset(@as(*const IDebugSymbols4, @ptrCast(self)), OutputControl, Flags, Offset); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols4_GetFunctionEntryByOffset(self: *const T, Offset: u64, Flags: u32, Buffer: ?*anyopaque, BufferSize: u32, BufferNeeded: ?*u32) HRESULT { return @as(*const IDebugSymbols4.VTable, @ptrCast(self.vtable)).GetFunctionEntryByOffset(@as(*const IDebugSymbols4, @ptrCast(self)), Offset, Flags, Buffer, BufferSize, BufferNeeded); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols4_GetFieldTypeAndOffset(self: *const T, Module: u64, ContainerTypeId: u32, Field: ?[*:0]const u8, FieldTypeId: ?*u32, Offset: ?*u32) HRESULT { return @as(*const IDebugSymbols4.VTable, @ptrCast(self.vtable)).GetFieldTypeAndOffset(@as(*const IDebugSymbols4, @ptrCast(self)), Module, ContainerTypeId, Field, FieldTypeId, Offset); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols4_GetFieldTypeAndOffsetWide(self: *const T, Module: u64, ContainerTypeId: u32, Field: ?[*:0]const u16, FieldTypeId: ?*u32, Offset: ?*u32) HRESULT { return @as(*const IDebugSymbols4.VTable, @ptrCast(self.vtable)).GetFieldTypeAndOffsetWide(@as(*const IDebugSymbols4, @ptrCast(self)), Module, ContainerTypeId, Field, FieldTypeId, Offset); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols4_AddSyntheticSymbol(self: *const T, Offset: u64, Size: u32, Name: ?[*:0]const u8, Flags: u32, Id: ?*DEBUG_MODULE_AND_ID) HRESULT { return @as(*const IDebugSymbols4.VTable, @ptrCast(self.vtable)).AddSyntheticSymbol(@as(*const IDebugSymbols4, @ptrCast(self)), Offset, Size, Name, Flags, Id); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols4_AddSyntheticSymbolWide(self: *const T, Offset: u64, Size: u32, Name: ?[*:0]const u16, Flags: u32, Id: ?*DEBUG_MODULE_AND_ID) HRESULT { return @as(*const IDebugSymbols4.VTable, @ptrCast(self.vtable)).AddSyntheticSymbolWide(@as(*const IDebugSymbols4, @ptrCast(self)), Offset, Size, Name, Flags, Id); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols4_RemoveSyntheticSymbol(self: *const T, Id: ?*DEBUG_MODULE_AND_ID) HRESULT { return @as(*const IDebugSymbols4.VTable, @ptrCast(self.vtable)).RemoveSyntheticSymbol(@as(*const IDebugSymbols4, @ptrCast(self)), Id); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols4_GetSymbolEntriesByOffset(self: *const T, Offset: u64, Flags: u32, Ids: ?[*]DEBUG_MODULE_AND_ID, Displacements: ?[*]u64, IdsCount: u32, Entries: ?*u32) HRESULT { return @as(*const IDebugSymbols4.VTable, @ptrCast(self.vtable)).GetSymbolEntriesByOffset(@as(*const IDebugSymbols4, @ptrCast(self)), Offset, Flags, Ids, Displacements, IdsCount, Entries); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols4_GetSymbolEntriesByName(self: *const T, _param_Symbol: ?[*:0]const u8, Flags: u32, Ids: ?[*]DEBUG_MODULE_AND_ID, IdsCount: u32, Entries: ?*u32) HRESULT { return @as(*const IDebugSymbols4.VTable, @ptrCast(self.vtable)).GetSymbolEntriesByName(@as(*const IDebugSymbols4, @ptrCast(self)), _param_Symbol, Flags, Ids, IdsCount, Entries); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols4_GetSymbolEntriesByNameWide(self: *const T, _param_Symbol: ?[*:0]const u16, Flags: u32, Ids: ?[*]DEBUG_MODULE_AND_ID, IdsCount: u32, Entries: ?*u32) HRESULT { return @as(*const IDebugSymbols4.VTable, @ptrCast(self.vtable)).GetSymbolEntriesByNameWide(@as(*const IDebugSymbols4, @ptrCast(self)), _param_Symbol, Flags, Ids, IdsCount, Entries); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols4_GetSymbolEntryByToken(self: *const T, ModuleBase: u64, Token: u32, Id: ?*DEBUG_MODULE_AND_ID) HRESULT { return @as(*const IDebugSymbols4.VTable, @ptrCast(self.vtable)).GetSymbolEntryByToken(@as(*const IDebugSymbols4, @ptrCast(self)), ModuleBase, Token, Id); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols4_GetSymbolEntryInformation(self: *const T, Id: ?*DEBUG_MODULE_AND_ID, Info: ?*DEBUG_SYMBOL_ENTRY) HRESULT { return @as(*const IDebugSymbols4.VTable, @ptrCast(self.vtable)).GetSymbolEntryInformation(@as(*const IDebugSymbols4, @ptrCast(self)), Id, Info); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols4_GetSymbolEntryString(self: *const T, Id: ?*DEBUG_MODULE_AND_ID, Which: u32, Buffer: ?[*:0]u8, BufferSize: u32, StringSize: ?*u32) HRESULT { return @as(*const IDebugSymbols4.VTable, @ptrCast(self.vtable)).GetSymbolEntryString(@as(*const IDebugSymbols4, @ptrCast(self)), Id, Which, Buffer, BufferSize, StringSize); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols4_GetSymbolEntryStringWide(self: *const T, Id: ?*DEBUG_MODULE_AND_ID, Which: u32, Buffer: ?[*:0]u16, BufferSize: u32, StringSize: ?*u32) HRESULT { return @as(*const IDebugSymbols4.VTable, @ptrCast(self.vtable)).GetSymbolEntryStringWide(@as(*const IDebugSymbols4, @ptrCast(self)), Id, Which, Buffer, BufferSize, StringSize); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols4_GetSymbolEntryOffsetRegions(self: *const T, Id: ?*DEBUG_MODULE_AND_ID, Flags: u32, Regions: ?[*]DEBUG_OFFSET_REGION, RegionsCount: u32, RegionsAvail: ?*u32) HRESULT { return @as(*const IDebugSymbols4.VTable, @ptrCast(self.vtable)).GetSymbolEntryOffsetRegions(@as(*const IDebugSymbols4, @ptrCast(self)), Id, Flags, Regions, RegionsCount, RegionsAvail); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols4_GetSymbolEntryBySymbolEntry(self: *const T, FromId: ?*DEBUG_MODULE_AND_ID, Flags: u32, ToId: ?*DEBUG_MODULE_AND_ID) HRESULT { return @as(*const IDebugSymbols4.VTable, @ptrCast(self.vtable)).GetSymbolEntryBySymbolEntry(@as(*const IDebugSymbols4, @ptrCast(self)), FromId, Flags, ToId); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols4_GetSourceEntriesByOffset(self: *const T, Offset: u64, Flags: u32, Entries: ?[*]DEBUG_SYMBOL_SOURCE_ENTRY, EntriesCount: u32, EntriesAvail: ?*u32) HRESULT { return @as(*const IDebugSymbols4.VTable, @ptrCast(self.vtable)).GetSourceEntriesByOffset(@as(*const IDebugSymbols4, @ptrCast(self)), Offset, Flags, Entries, EntriesCount, EntriesAvail); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols4_GetSourceEntriesByLine(self: *const T, Line: u32, File: ?[*:0]const u8, Flags: u32, Entries: ?[*]DEBUG_SYMBOL_SOURCE_ENTRY, EntriesCount: u32, EntriesAvail: ?*u32) HRESULT { return @as(*const IDebugSymbols4.VTable, @ptrCast(self.vtable)).GetSourceEntriesByLine(@as(*const IDebugSymbols4, @ptrCast(self)), Line, File, Flags, Entries, EntriesCount, EntriesAvail); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols4_GetSourceEntriesByLineWide(self: *const T, Line: u32, File: ?[*:0]const u16, Flags: u32, Entries: ?[*]DEBUG_SYMBOL_SOURCE_ENTRY, EntriesCount: u32, EntriesAvail: ?*u32) HRESULT { return @as(*const IDebugSymbols4.VTable, @ptrCast(self.vtable)).GetSourceEntriesByLineWide(@as(*const IDebugSymbols4, @ptrCast(self)), Line, File, Flags, Entries, EntriesCount, EntriesAvail); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols4_GetSourceEntryString(self: *const T, Entry: ?*DEBUG_SYMBOL_SOURCE_ENTRY, Which: u32, Buffer: ?[*:0]u8, BufferSize: u32, StringSize: ?*u32) HRESULT { return @as(*const IDebugSymbols4.VTable, @ptrCast(self.vtable)).GetSourceEntryString(@as(*const IDebugSymbols4, @ptrCast(self)), Entry, Which, Buffer, BufferSize, StringSize); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols4_GetSourceEntryStringWide(self: *const T, Entry: ?*DEBUG_SYMBOL_SOURCE_ENTRY, Which: u32, Buffer: ?[*:0]u16, BufferSize: u32, StringSize: ?*u32) HRESULT { return @as(*const IDebugSymbols4.VTable, @ptrCast(self.vtable)).GetSourceEntryStringWide(@as(*const IDebugSymbols4, @ptrCast(self)), Entry, Which, Buffer, BufferSize, StringSize); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols4_GetSourceEntryOffsetRegions(self: *const T, Entry: ?*DEBUG_SYMBOL_SOURCE_ENTRY, Flags: u32, Regions: ?[*]DEBUG_OFFSET_REGION, RegionsCount: u32, RegionsAvail: ?*u32) HRESULT { return @as(*const IDebugSymbols4.VTable, @ptrCast(self.vtable)).GetSourceEntryOffsetRegions(@as(*const IDebugSymbols4, @ptrCast(self)), Entry, Flags, Regions, RegionsCount, RegionsAvail); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols4_GetSourceEntryBySourceEntry(self: *const T, FromEntry: ?*DEBUG_SYMBOL_SOURCE_ENTRY, Flags: u32, ToEntry: ?*DEBUG_SYMBOL_SOURCE_ENTRY) HRESULT { return @as(*const IDebugSymbols4.VTable, @ptrCast(self.vtable)).GetSourceEntryBySourceEntry(@as(*const IDebugSymbols4, @ptrCast(self)), FromEntry, Flags, ToEntry); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols4_GetScopeEx(self: *const T, InstructionOffset: ?*u64, ScopeFrame: ?*DEBUG_STACK_FRAME_EX, ScopeContext: ?*anyopaque, ScopeContextSize: u32) HRESULT { return @as(*const IDebugSymbols4.VTable, @ptrCast(self.vtable)).GetScopeEx(@as(*const IDebugSymbols4, @ptrCast(self)), InstructionOffset, ScopeFrame, ScopeContext, ScopeContextSize); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols4_SetScopeEx(self: *const T, InstructionOffset: u64, ScopeFrame: ?*DEBUG_STACK_FRAME_EX, ScopeContext: ?*anyopaque, ScopeContextSize: u32) HRESULT { return @as(*const IDebugSymbols4.VTable, @ptrCast(self.vtable)).SetScopeEx(@as(*const IDebugSymbols4, @ptrCast(self)), InstructionOffset, ScopeFrame, ScopeContext, ScopeContextSize); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols4_GetNameByInlineContext(self: *const T, Offset: u64, InlineContext: u32, NameBuffer: ?[*:0]u8, NameBufferSize: u32, NameSize: ?*u32, Displacement: ?*u64) HRESULT { return @as(*const IDebugSymbols4.VTable, @ptrCast(self.vtable)).GetNameByInlineContext(@as(*const IDebugSymbols4, @ptrCast(self)), Offset, InlineContext, NameBuffer, NameBufferSize, NameSize, Displacement); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols4_GetNameByInlineContextWide(self: *const T, Offset: u64, InlineContext: u32, NameBuffer: ?[*:0]u16, NameBufferSize: u32, NameSize: ?*u32, Displacement: ?*u64) HRESULT { return @as(*const IDebugSymbols4.VTable, @ptrCast(self.vtable)).GetNameByInlineContextWide(@as(*const IDebugSymbols4, @ptrCast(self)), Offset, InlineContext, NameBuffer, NameBufferSize, NameSize, Displacement); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols4_GetLineByInlineContext(self: *const T, Offset: u64, InlineContext: u32, Line: ?*u32, FileBuffer: ?[*:0]u8, FileBufferSize: u32, FileSize: ?*u32, Displacement: ?*u64) HRESULT { return @as(*const IDebugSymbols4.VTable, @ptrCast(self.vtable)).GetLineByInlineContext(@as(*const IDebugSymbols4, @ptrCast(self)), Offset, InlineContext, Line, FileBuffer, FileBufferSize, FileSize, Displacement); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols4_GetLineByInlineContextWide(self: *const T, Offset: u64, InlineContext: u32, Line: ?*u32, FileBuffer: ?[*:0]u16, FileBufferSize: u32, FileSize: ?*u32, Displacement: ?*u64) HRESULT { return @as(*const IDebugSymbols4.VTable, @ptrCast(self.vtable)).GetLineByInlineContextWide(@as(*const IDebugSymbols4, @ptrCast(self)), Offset, InlineContext, Line, FileBuffer, FileBufferSize, FileSize, Displacement); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols4_OutputSymbolByInlineContext(self: *const T, OutputControl: u32, Flags: u32, Offset: u64, InlineContext: u32) HRESULT { return @as(*const IDebugSymbols4.VTable, @ptrCast(self.vtable)).OutputSymbolByInlineContext(@as(*const IDebugSymbols4, @ptrCast(self)), OutputControl, Flags, Offset, InlineContext); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IDebugSymbols5_Value = Guid.initString("c65fa83e-1e69-475e-8e0e-b5d79e9cc17e"); pub const IID_IDebugSymbols5 = &IID_IDebugSymbols5_Value; pub const IDebugSymbols5 = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, GetSymbolOptions: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols5, Options: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols5, Options: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, AddSymbolOptions: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols5, Options: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols5, Options: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, RemoveSymbolOptions: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols5, Options: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols5, Options: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetSymbolOptions: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols5, Options: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols5, Options: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetNameByOffset: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols5, Offset: u64, NameBuffer: ?[*:0]u8, NameBufferSize: u32, NameSize: ?*u32, Displacement: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols5, Offset: u64, NameBuffer: ?[*:0]u8, NameBufferSize: u32, NameSize: ?*u32, Displacement: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetOffsetByName: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols5, Symbol: ?[*:0]const u8, Offset: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols5, Symbol: ?[*:0]const u8, Offset: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetNearNameByOffset: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols5, Offset: u64, Delta: i32, NameBuffer: ?[*:0]u8, NameBufferSize: u32, NameSize: ?*u32, Displacement: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols5, Offset: u64, Delta: i32, NameBuffer: ?[*:0]u8, NameBufferSize: u32, NameSize: ?*u32, Displacement: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetLineByOffset: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols5, Offset: u64, Line: ?*u32, FileBuffer: ?[*:0]u8, FileBufferSize: u32, FileSize: ?*u32, Displacement: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols5, Offset: u64, Line: ?*u32, FileBuffer: ?[*:0]u8, FileBufferSize: u32, FileSize: ?*u32, Displacement: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetOffsetByLine: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols5, Line: u32, File: ?[*:0]const u8, Offset: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols5, Line: u32, File: ?[*:0]const u8, Offset: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetNumberModules: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols5, Loaded: ?*u32, Unloaded: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols5, Loaded: ?*u32, Unloaded: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetModuleByIndex: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols5, Index: u32, Base: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols5, Index: u32, Base: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetModuleByModuleName: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols5, Name: ?[*:0]const u8, StartIndex: u32, Index: ?*u32, Base: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols5, Name: ?[*:0]const u8, StartIndex: u32, Index: ?*u32, Base: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetModuleByOffset: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols5, Offset: u64, StartIndex: u32, Index: ?*u32, Base: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols5, Offset: u64, StartIndex: u32, Index: ?*u32, Base: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetModuleNames: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols5, Index: u32, Base: u64, ImageNameBuffer: ?[*:0]u8, ImageNameBufferSize: u32, ImageNameSize: ?*u32, ModuleNameBuffer: ?[*:0]u8, ModuleNameBufferSize: u32, ModuleNameSize: ?*u32, LoadedImageNameBuffer: ?[*:0]u8, LoadedImageNameBufferSize: u32, LoadedImageNameSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols5, Index: u32, Base: u64, ImageNameBuffer: ?[*:0]u8, ImageNameBufferSize: u32, ImageNameSize: ?*u32, ModuleNameBuffer: ?[*:0]u8, ModuleNameBufferSize: u32, ModuleNameSize: ?*u32, LoadedImageNameBuffer: ?[*:0]u8, LoadedImageNameBufferSize: u32, LoadedImageNameSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetModuleParameters: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols5, Count: u32, Bases: ?[*]u64, Start: u32, Params: [*]DEBUG_MODULE_PARAMETERS, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols5, Count: u32, Bases: ?[*]u64, Start: u32, Params: [*]DEBUG_MODULE_PARAMETERS, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetSymbolModule: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols5, Symbol: ?[*:0]const u8, Base: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols5, Symbol: ?[*:0]const u8, Base: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetTypeName: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols5, Module: u64, TypeId: u32, NameBuffer: ?[*:0]u8, NameBufferSize: u32, NameSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols5, Module: u64, TypeId: u32, NameBuffer: ?[*:0]u8, NameBufferSize: u32, NameSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetTypeId: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols5, Module: u64, Name: ?[*:0]const u8, TypeId: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols5, Module: u64, Name: ?[*:0]const u8, TypeId: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetTypeSize: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols5, Module: u64, TypeId: u32, Size: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols5, Module: u64, TypeId: u32, Size: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetFieldOffset: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols5, Module: u64, TypeId: u32, Field: ?[*:0]const u8, Offset: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols5, Module: u64, TypeId: u32, Field: ?[*:0]const u8, Offset: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetSymbolTypeId: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols5, Symbol: ?[*:0]const u8, TypeId: ?*u32, Module: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols5, Symbol: ?[*:0]const u8, TypeId: ?*u32, Module: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetOffsetTypeId: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols5, Offset: u64, TypeId: ?*u32, Module: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols5, Offset: u64, TypeId: ?*u32, Module: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, ReadTypedDataVirtual: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols5, Offset: u64, Module: u64, TypeId: u32, // TODO: what to do with BytesParamIndex 4? Buffer: ?*anyopaque, BufferSize: u32, BytesRead: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols5, Offset: u64, Module: u64, TypeId: u32, // TODO: what to do with BytesParamIndex 4? Buffer: ?*anyopaque, BufferSize: u32, BytesRead: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, WriteTypedDataVirtual: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols5, Offset: u64, Module: u64, TypeId: u32, // TODO: what to do with BytesParamIndex 4? Buffer: ?*anyopaque, BufferSize: u32, BytesWritten: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols5, Offset: u64, Module: u64, TypeId: u32, // TODO: what to do with BytesParamIndex 4? Buffer: ?*anyopaque, BufferSize: u32, BytesWritten: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, OutputTypedDataVirtual: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols5, OutputControl: u32, Offset: u64, Module: u64, TypeId: u32, Flags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols5, OutputControl: u32, Offset: u64, Module: u64, TypeId: u32, Flags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, ReadTypedDataPhysical: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols5, Offset: u64, Module: u64, TypeId: u32, // TODO: what to do with BytesParamIndex 4? Buffer: ?*anyopaque, BufferSize: u32, BytesRead: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols5, Offset: u64, Module: u64, TypeId: u32, // TODO: what to do with BytesParamIndex 4? Buffer: ?*anyopaque, BufferSize: u32, BytesRead: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, WriteTypedDataPhysical: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols5, Offset: u64, Module: u64, TypeId: u32, // TODO: what to do with BytesParamIndex 4? Buffer: ?*anyopaque, BufferSize: u32, BytesWritten: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols5, Offset: u64, Module: u64, TypeId: u32, // TODO: what to do with BytesParamIndex 4? Buffer: ?*anyopaque, BufferSize: u32, BytesWritten: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, OutputTypedDataPhysical: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols5, OutputControl: u32, Offset: u64, Module: u64, TypeId: u32, Flags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols5, OutputControl: u32, Offset: u64, Module: u64, TypeId: u32, Flags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetScope: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols5, InstructionOffset: ?*u64, ScopeFrame: ?*DEBUG_STACK_FRAME, // TODO: what to do with BytesParamIndex 3? ScopeContext: ?*anyopaque, ScopeContextSize: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols5, InstructionOffset: ?*u64, ScopeFrame: ?*DEBUG_STACK_FRAME, // TODO: what to do with BytesParamIndex 3? ScopeContext: ?*anyopaque, ScopeContextSize: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetScope: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols5, InstructionOffset: u64, ScopeFrame: ?*DEBUG_STACK_FRAME, // TODO: what to do with BytesParamIndex 3? ScopeContext: ?*anyopaque, ScopeContextSize: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols5, InstructionOffset: u64, ScopeFrame: ?*DEBUG_STACK_FRAME, // TODO: what to do with BytesParamIndex 3? ScopeContext: ?*anyopaque, ScopeContextSize: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, ResetScope: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols5, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols5, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetScopeSymbolGroup: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols5, Flags: u32, Update: ?*IDebugSymbolGroup, Symbols: ?*?*IDebugSymbolGroup, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols5, Flags: u32, Update: ?*IDebugSymbolGroup, Symbols: ?*?*IDebugSymbolGroup, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, CreateSymbolGroup: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols5, Group: ?*?*IDebugSymbolGroup, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols5, Group: ?*?*IDebugSymbolGroup, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, StartSymbolMatch: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols5, Pattern: ?[*:0]const u8, Handle: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols5, Pattern: ?[*:0]const u8, Handle: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetNextSymbolMatch: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols5, Handle: u64, Buffer: ?[*:0]u8, BufferSize: u32, MatchSize: ?*u32, Offset: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols5, Handle: u64, Buffer: ?[*:0]u8, BufferSize: u32, MatchSize: ?*u32, Offset: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, EndSymbolMatch: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols5, Handle: u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols5, Handle: u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Reload: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols5, Module: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols5, Module: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetSymbolPath: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols5, Buffer: ?[*:0]u8, BufferSize: u32, PathSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols5, Buffer: ?[*:0]u8, BufferSize: u32, PathSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetSymbolPath: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols5, Path: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols5, Path: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, AppendSymbolPath: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols5, Addition: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols5, Addition: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetImagePath: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols5, Buffer: ?[*:0]u8, BufferSize: u32, PathSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols5, Buffer: ?[*:0]u8, BufferSize: u32, PathSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetImagePath: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols5, Path: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols5, Path: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, AppendImagePath: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols5, Addition: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols5, Addition: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetSourcePath: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols5, Buffer: ?[*:0]u8, BufferSize: u32, PathSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols5, Buffer: ?[*:0]u8, BufferSize: u32, PathSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetSourcePathElement: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols5, Index: u32, Buffer: ?[*:0]u8, BufferSize: u32, ElementSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols5, Index: u32, Buffer: ?[*:0]u8, BufferSize: u32, ElementSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetSourcePath: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols5, Path: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols5, Path: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, AppendSourcePath: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols5, Addition: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols5, Addition: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, FindSourceFile: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols5, StartElement: u32, File: ?[*:0]const u8, Flags: u32, FoundElement: ?*u32, Buffer: ?[*:0]u8, BufferSize: u32, FoundSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols5, StartElement: u32, File: ?[*:0]const u8, Flags: u32, FoundElement: ?*u32, Buffer: ?[*:0]u8, BufferSize: u32, FoundSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetSourceFileLineOffsets: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols5, File: ?[*:0]const u8, Buffer: ?[*]u64, BufferLines: u32, FileLines: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols5, File: ?[*:0]const u8, Buffer: ?[*]u64, BufferLines: u32, FileLines: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetModuleVersionInformation: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols5, Index: u32, Base: u64, Item: ?[*:0]const u8, // TODO: what to do with BytesParamIndex 4? Buffer: ?*anyopaque, BufferSize: u32, VerInfoSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols5, Index: u32, Base: u64, Item: ?[*:0]const u8, // TODO: what to do with BytesParamIndex 4? Buffer: ?*anyopaque, BufferSize: u32, VerInfoSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetModuleNameString: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols5, Which: u32, Index: u32, Base: u64, Buffer: ?[*:0]u8, BufferSize: u32, NameSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols5, Which: u32, Index: u32, Base: u64, Buffer: ?[*:0]u8, BufferSize: u32, NameSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetConstantName: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols5, Module: u64, TypeId: u32, Value: u64, NameBuffer: ?[*:0]u8, NameBufferSize: u32, NameSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols5, Module: u64, TypeId: u32, Value: u64, NameBuffer: ?[*:0]u8, NameBufferSize: u32, NameSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetFieldName: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols5, Module: u64, TypeId: u32, FieldIndex: u32, NameBuffer: ?[*:0]u8, NameBufferSize: u32, NameSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols5, Module: u64, TypeId: u32, FieldIndex: u32, NameBuffer: ?[*:0]u8, NameBufferSize: u32, NameSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetTypeOptions: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols5, Options: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols5, Options: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, AddTypeOptions: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols5, Options: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols5, Options: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, RemoveTypeOptions: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols5, Options: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols5, Options: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetTypeOptions: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols5, Options: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols5, Options: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetNameByOffsetWide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols5, Offset: u64, NameBuffer: ?[*:0]u16, NameBufferSize: u32, NameSize: ?*u32, Displacement: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols5, Offset: u64, NameBuffer: ?[*:0]u16, NameBufferSize: u32, NameSize: ?*u32, Displacement: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetOffsetByNameWide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols5, Symbol: ?[*:0]const u16, Offset: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols5, Symbol: ?[*:0]const u16, Offset: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetNearNameByOffsetWide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols5, Offset: u64, Delta: i32, NameBuffer: ?[*:0]u16, NameBufferSize: u32, NameSize: ?*u32, Displacement: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols5, Offset: u64, Delta: i32, NameBuffer: ?[*:0]u16, NameBufferSize: u32, NameSize: ?*u32, Displacement: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetLineByOffsetWide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols5, Offset: u64, Line: ?*u32, FileBuffer: ?[*:0]u16, FileBufferSize: u32, FileSize: ?*u32, Displacement: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols5, Offset: u64, Line: ?*u32, FileBuffer: ?[*:0]u16, FileBufferSize: u32, FileSize: ?*u32, Displacement: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetOffsetByLineWide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols5, Line: u32, File: ?[*:0]const u16, Offset: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols5, Line: u32, File: ?[*:0]const u16, Offset: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetModuleByModuleNameWide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols5, Name: ?[*:0]const u16, StartIndex: u32, Index: ?*u32, Base: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols5, Name: ?[*:0]const u16, StartIndex: u32, Index: ?*u32, Base: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetSymbolModuleWide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols5, Symbol: ?[*:0]const u16, Base: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols5, Symbol: ?[*:0]const u16, Base: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetTypeNameWide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols5, Module: u64, TypeId: u32, NameBuffer: ?[*:0]u16, NameBufferSize: u32, NameSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols5, Module: u64, TypeId: u32, NameBuffer: ?[*:0]u16, NameBufferSize: u32, NameSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetTypeIdWide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols5, Module: u64, Name: ?[*:0]const u16, TypeId: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols5, Module: u64, Name: ?[*:0]const u16, TypeId: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetFieldOffsetWide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols5, Module: u64, TypeId: u32, Field: ?[*:0]const u16, Offset: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols5, Module: u64, TypeId: u32, Field: ?[*:0]const u16, Offset: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetSymbolTypeIdWide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols5, Symbol: ?[*:0]const u16, TypeId: ?*u32, Module: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols5, Symbol: ?[*:0]const u16, TypeId: ?*u32, Module: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetScopeSymbolGroup2: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols5, Flags: u32, Update: ?*IDebugSymbolGroup2, Symbols: ?*?*IDebugSymbolGroup2, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols5, Flags: u32, Update: ?*IDebugSymbolGroup2, Symbols: ?*?*IDebugSymbolGroup2, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, CreateSymbolGroup2: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols5, Group: ?*?*IDebugSymbolGroup2, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols5, Group: ?*?*IDebugSymbolGroup2, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, StartSymbolMatchWide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols5, Pattern: ?[*:0]const u16, Handle: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols5, Pattern: ?[*:0]const u16, Handle: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetNextSymbolMatchWide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols5, Handle: u64, Buffer: ?[*:0]u16, BufferSize: u32, MatchSize: ?*u32, Offset: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols5, Handle: u64, Buffer: ?[*:0]u16, BufferSize: u32, MatchSize: ?*u32, Offset: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, ReloadWide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols5, Module: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols5, Module: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetSymbolPathWide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols5, Buffer: ?[*:0]u16, BufferSize: u32, PathSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols5, Buffer: ?[*:0]u16, BufferSize: u32, PathSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetSymbolPathWide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols5, Path: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols5, Path: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, AppendSymbolPathWide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols5, Addition: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols5, Addition: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetImagePathWide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols5, Buffer: ?[*:0]u16, BufferSize: u32, PathSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols5, Buffer: ?[*:0]u16, BufferSize: u32, PathSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetImagePathWide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols5, Path: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols5, Path: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, AppendImagePathWide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols5, Addition: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols5, Addition: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetSourcePathWide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols5, Buffer: ?[*:0]u16, BufferSize: u32, PathSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols5, Buffer: ?[*:0]u16, BufferSize: u32, PathSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetSourcePathElementWide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols5, Index: u32, Buffer: ?[*:0]u16, BufferSize: u32, ElementSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols5, Index: u32, Buffer: ?[*:0]u16, BufferSize: u32, ElementSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetSourcePathWide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols5, Path: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols5, Path: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, AppendSourcePathWide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols5, Addition: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols5, Addition: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, FindSourceFileWide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols5, StartElement: u32, File: ?[*:0]const u16, Flags: u32, FoundElement: ?*u32, Buffer: ?[*:0]u16, BufferSize: u32, FoundSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols5, StartElement: u32, File: ?[*:0]const u16, Flags: u32, FoundElement: ?*u32, Buffer: ?[*:0]u16, BufferSize: u32, FoundSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetSourceFileLineOffsetsWide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols5, File: ?[*:0]const u16, Buffer: ?[*]u64, BufferLines: u32, FileLines: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols5, File: ?[*:0]const u16, Buffer: ?[*]u64, BufferLines: u32, FileLines: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetModuleVersionInformationWide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols5, Index: u32, Base: u64, Item: ?[*:0]const u16, // TODO: what to do with BytesParamIndex 4? Buffer: ?*anyopaque, BufferSize: u32, VerInfoSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols5, Index: u32, Base: u64, Item: ?[*:0]const u16, // TODO: what to do with BytesParamIndex 4? Buffer: ?*anyopaque, BufferSize: u32, VerInfoSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetModuleNameStringWide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols5, Which: u32, Index: u32, Base: u64, Buffer: ?[*:0]u16, BufferSize: u32, NameSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols5, Which: u32, Index: u32, Base: u64, Buffer: ?[*:0]u16, BufferSize: u32, NameSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetConstantNameWide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols5, Module: u64, TypeId: u32, Value: u64, NameBuffer: ?[*:0]u16, NameBufferSize: u32, NameSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols5, Module: u64, TypeId: u32, Value: u64, NameBuffer: ?[*:0]u16, NameBufferSize: u32, NameSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetFieldNameWide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols5, Module: u64, TypeId: u32, FieldIndex: u32, NameBuffer: ?[*:0]u16, NameBufferSize: u32, NameSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols5, Module: u64, TypeId: u32, FieldIndex: u32, NameBuffer: ?[*:0]u16, NameBufferSize: u32, NameSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, IsManagedModule: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols5, Index: u32, Base: u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols5, Index: u32, Base: u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetModuleByModuleName2: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols5, Name: ?[*:0]const u8, StartIndex: u32, Flags: u32, Index: ?*u32, Base: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols5, Name: ?[*:0]const u8, StartIndex: u32, Flags: u32, Index: ?*u32, Base: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetModuleByModuleName2Wide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols5, Name: ?[*:0]const u16, StartIndex: u32, Flags: u32, Index: ?*u32, Base: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols5, Name: ?[*:0]const u16, StartIndex: u32, Flags: u32, Index: ?*u32, Base: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetModuleByOffset2: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols5, Offset: u64, StartIndex: u32, Flags: u32, Index: ?*u32, Base: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols5, Offset: u64, StartIndex: u32, Flags: u32, Index: ?*u32, Base: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, AddSyntheticModule: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols5, Base: u64, Size: u32, ImagePath: ?[*:0]const u8, ModuleName: ?[*:0]const u8, Flags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols5, Base: u64, Size: u32, ImagePath: ?[*:0]const u8, ModuleName: ?[*:0]const u8, Flags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, AddSyntheticModuleWide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols5, Base: u64, Size: u32, ImagePath: ?[*:0]const u16, ModuleName: ?[*:0]const u16, Flags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols5, Base: u64, Size: u32, ImagePath: ?[*:0]const u16, ModuleName: ?[*:0]const u16, Flags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, RemoveSyntheticModule: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols5, Base: u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols5, Base: u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetCurrentScopeFrameIndex: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols5, Index: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols5, Index: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetScopeFrameByIndex: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols5, Index: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols5, Index: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetScopeFromJitDebugInfo: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols5, OutputControl: u32, InfoOffset: u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols5, OutputControl: u32, InfoOffset: u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetScopeFromStoredEvent: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols5, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols5, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, OutputSymbolByOffset: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols5, OutputControl: u32, Flags: u32, Offset: u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols5, OutputControl: u32, Flags: u32, Offset: u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetFunctionEntryByOffset: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols5, Offset: u64, Flags: u32, // TODO: what to do with BytesParamIndex 3? Buffer: ?*anyopaque, BufferSize: u32, BufferNeeded: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols5, Offset: u64, Flags: u32, // TODO: what to do with BytesParamIndex 3? Buffer: ?*anyopaque, BufferSize: u32, BufferNeeded: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetFieldTypeAndOffset: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols5, Module: u64, ContainerTypeId: u32, Field: ?[*:0]const u8, FieldTypeId: ?*u32, Offset: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols5, Module: u64, ContainerTypeId: u32, Field: ?[*:0]const u8, FieldTypeId: ?*u32, Offset: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetFieldTypeAndOffsetWide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols5, Module: u64, ContainerTypeId: u32, Field: ?[*:0]const u16, FieldTypeId: ?*u32, Offset: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols5, Module: u64, ContainerTypeId: u32, Field: ?[*:0]const u16, FieldTypeId: ?*u32, Offset: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, AddSyntheticSymbol: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols5, Offset: u64, Size: u32, Name: ?[*:0]const u8, Flags: u32, Id: ?*DEBUG_MODULE_AND_ID, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols5, Offset: u64, Size: u32, Name: ?[*:0]const u8, Flags: u32, Id: ?*DEBUG_MODULE_AND_ID, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, AddSyntheticSymbolWide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols5, Offset: u64, Size: u32, Name: ?[*:0]const u16, Flags: u32, Id: ?*DEBUG_MODULE_AND_ID, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols5, Offset: u64, Size: u32, Name: ?[*:0]const u16, Flags: u32, Id: ?*DEBUG_MODULE_AND_ID, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, RemoveSyntheticSymbol: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols5, Id: ?*DEBUG_MODULE_AND_ID, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols5, Id: ?*DEBUG_MODULE_AND_ID, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetSymbolEntriesByOffset: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols5, Offset: u64, Flags: u32, Ids: ?[*]DEBUG_MODULE_AND_ID, Displacements: ?[*]u64, IdsCount: u32, Entries: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols5, Offset: u64, Flags: u32, Ids: ?[*]DEBUG_MODULE_AND_ID, Displacements: ?[*]u64, IdsCount: u32, Entries: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetSymbolEntriesByName: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols5, Symbol: ?[*:0]const u8, Flags: u32, Ids: ?[*]DEBUG_MODULE_AND_ID, IdsCount: u32, Entries: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols5, Symbol: ?[*:0]const u8, Flags: u32, Ids: ?[*]DEBUG_MODULE_AND_ID, IdsCount: u32, Entries: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetSymbolEntriesByNameWide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols5, Symbol: ?[*:0]const u16, Flags: u32, Ids: ?[*]DEBUG_MODULE_AND_ID, IdsCount: u32, Entries: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols5, Symbol: ?[*:0]const u16, Flags: u32, Ids: ?[*]DEBUG_MODULE_AND_ID, IdsCount: u32, Entries: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetSymbolEntryByToken: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols5, ModuleBase: u64, Token: u32, Id: ?*DEBUG_MODULE_AND_ID, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols5, ModuleBase: u64, Token: u32, Id: ?*DEBUG_MODULE_AND_ID, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetSymbolEntryInformation: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols5, Id: ?*DEBUG_MODULE_AND_ID, Info: ?*DEBUG_SYMBOL_ENTRY, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols5, Id: ?*DEBUG_MODULE_AND_ID, Info: ?*DEBUG_SYMBOL_ENTRY, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetSymbolEntryString: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols5, Id: ?*DEBUG_MODULE_AND_ID, Which: u32, Buffer: ?[*:0]u8, BufferSize: u32, StringSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols5, Id: ?*DEBUG_MODULE_AND_ID, Which: u32, Buffer: ?[*:0]u8, BufferSize: u32, StringSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetSymbolEntryStringWide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols5, Id: ?*DEBUG_MODULE_AND_ID, Which: u32, Buffer: ?[*:0]u16, BufferSize: u32, StringSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols5, Id: ?*DEBUG_MODULE_AND_ID, Which: u32, Buffer: ?[*:0]u16, BufferSize: u32, StringSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetSymbolEntryOffsetRegions: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols5, Id: ?*DEBUG_MODULE_AND_ID, Flags: u32, Regions: ?[*]DEBUG_OFFSET_REGION, RegionsCount: u32, RegionsAvail: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols5, Id: ?*DEBUG_MODULE_AND_ID, Flags: u32, Regions: ?[*]DEBUG_OFFSET_REGION, RegionsCount: u32, RegionsAvail: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetSymbolEntryBySymbolEntry: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols5, FromId: ?*DEBUG_MODULE_AND_ID, Flags: u32, ToId: ?*DEBUG_MODULE_AND_ID, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols5, FromId: ?*DEBUG_MODULE_AND_ID, Flags: u32, ToId: ?*DEBUG_MODULE_AND_ID, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetSourceEntriesByOffset: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols5, Offset: u64, Flags: u32, Entries: ?[*]DEBUG_SYMBOL_SOURCE_ENTRY, EntriesCount: u32, EntriesAvail: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols5, Offset: u64, Flags: u32, Entries: ?[*]DEBUG_SYMBOL_SOURCE_ENTRY, EntriesCount: u32, EntriesAvail: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetSourceEntriesByLine: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols5, Line: u32, File: ?[*:0]const u8, Flags: u32, Entries: ?[*]DEBUG_SYMBOL_SOURCE_ENTRY, EntriesCount: u32, EntriesAvail: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols5, Line: u32, File: ?[*:0]const u8, Flags: u32, Entries: ?[*]DEBUG_SYMBOL_SOURCE_ENTRY, EntriesCount: u32, EntriesAvail: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetSourceEntriesByLineWide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols5, Line: u32, File: ?[*:0]const u16, Flags: u32, Entries: ?[*]DEBUG_SYMBOL_SOURCE_ENTRY, EntriesCount: u32, EntriesAvail: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols5, Line: u32, File: ?[*:0]const u16, Flags: u32, Entries: ?[*]DEBUG_SYMBOL_SOURCE_ENTRY, EntriesCount: u32, EntriesAvail: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetSourceEntryString: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols5, Entry: ?*DEBUG_SYMBOL_SOURCE_ENTRY, Which: u32, Buffer: ?[*:0]u8, BufferSize: u32, StringSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols5, Entry: ?*DEBUG_SYMBOL_SOURCE_ENTRY, Which: u32, Buffer: ?[*:0]u8, BufferSize: u32, StringSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetSourceEntryStringWide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols5, Entry: ?*DEBUG_SYMBOL_SOURCE_ENTRY, Which: u32, Buffer: ?[*:0]u16, BufferSize: u32, StringSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols5, Entry: ?*DEBUG_SYMBOL_SOURCE_ENTRY, Which: u32, Buffer: ?[*:0]u16, BufferSize: u32, StringSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetSourceEntryOffsetRegions: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols5, Entry: ?*DEBUG_SYMBOL_SOURCE_ENTRY, Flags: u32, Regions: ?[*]DEBUG_OFFSET_REGION, RegionsCount: u32, RegionsAvail: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols5, Entry: ?*DEBUG_SYMBOL_SOURCE_ENTRY, Flags: u32, Regions: ?[*]DEBUG_OFFSET_REGION, RegionsCount: u32, RegionsAvail: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetSourceEntryBySourceEntry: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols5, FromEntry: ?*DEBUG_SYMBOL_SOURCE_ENTRY, Flags: u32, ToEntry: ?*DEBUG_SYMBOL_SOURCE_ENTRY, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols5, FromEntry: ?*DEBUG_SYMBOL_SOURCE_ENTRY, Flags: u32, ToEntry: ?*DEBUG_SYMBOL_SOURCE_ENTRY, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetScopeEx: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols5, InstructionOffset: ?*u64, ScopeFrame: ?*DEBUG_STACK_FRAME_EX, // TODO: what to do with BytesParamIndex 3? ScopeContext: ?*anyopaque, ScopeContextSize: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols5, InstructionOffset: ?*u64, ScopeFrame: ?*DEBUG_STACK_FRAME_EX, // TODO: what to do with BytesParamIndex 3? ScopeContext: ?*anyopaque, ScopeContextSize: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetScopeEx: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols5, InstructionOffset: u64, ScopeFrame: ?*DEBUG_STACK_FRAME_EX, // TODO: what to do with BytesParamIndex 3? ScopeContext: ?*anyopaque, ScopeContextSize: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols5, InstructionOffset: u64, ScopeFrame: ?*DEBUG_STACK_FRAME_EX, // TODO: what to do with BytesParamIndex 3? ScopeContext: ?*anyopaque, ScopeContextSize: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetNameByInlineContext: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols5, Offset: u64, InlineContext: u32, NameBuffer: ?[*:0]u8, NameBufferSize: u32, NameSize: ?*u32, Displacement: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols5, Offset: u64, InlineContext: u32, NameBuffer: ?[*:0]u8, NameBufferSize: u32, NameSize: ?*u32, Displacement: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetNameByInlineContextWide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols5, Offset: u64, InlineContext: u32, NameBuffer: ?[*:0]u16, NameBufferSize: u32, NameSize: ?*u32, Displacement: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols5, Offset: u64, InlineContext: u32, NameBuffer: ?[*:0]u16, NameBufferSize: u32, NameSize: ?*u32, Displacement: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetLineByInlineContext: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols5, Offset: u64, InlineContext: u32, Line: ?*u32, FileBuffer: ?[*:0]u8, FileBufferSize: u32, FileSize: ?*u32, Displacement: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols5, Offset: u64, InlineContext: u32, Line: ?*u32, FileBuffer: ?[*:0]u8, FileBufferSize: u32, FileSize: ?*u32, Displacement: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetLineByInlineContextWide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols5, Offset: u64, InlineContext: u32, Line: ?*u32, FileBuffer: ?[*:0]u16, FileBufferSize: u32, FileSize: ?*u32, Displacement: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols5, Offset: u64, InlineContext: u32, Line: ?*u32, FileBuffer: ?[*:0]u16, FileBufferSize: u32, FileSize: ?*u32, Displacement: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, OutputSymbolByInlineContext: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols5, OutputControl: u32, Flags: u32, Offset: u64, InlineContext: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols5, OutputControl: u32, Flags: u32, Offset: u64, InlineContext: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetCurrentScopeFrameIndexEx: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols5, Flags: u32, Index: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols5, Flags: u32, Index: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetScopeFrameByIndexEx: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSymbols5, Flags: u32, Index: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSymbols5, Flags: u32, Index: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols5_GetSymbolOptions(self: *const T, Options: ?*u32) HRESULT { return @as(*const IDebugSymbols5.VTable, @ptrCast(self.vtable)).GetSymbolOptions(@as(*const IDebugSymbols5, @ptrCast(self)), Options); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols5_AddSymbolOptions(self: *const T, Options: u32) HRESULT { return @as(*const IDebugSymbols5.VTable, @ptrCast(self.vtable)).AddSymbolOptions(@as(*const IDebugSymbols5, @ptrCast(self)), Options); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols5_RemoveSymbolOptions(self: *const T, Options: u32) HRESULT { return @as(*const IDebugSymbols5.VTable, @ptrCast(self.vtable)).RemoveSymbolOptions(@as(*const IDebugSymbols5, @ptrCast(self)), Options); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols5_SetSymbolOptions(self: *const T, Options: u32) HRESULT { return @as(*const IDebugSymbols5.VTable, @ptrCast(self.vtable)).SetSymbolOptions(@as(*const IDebugSymbols5, @ptrCast(self)), Options); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols5_GetNameByOffset(self: *const T, Offset: u64, NameBuffer: ?[*:0]u8, NameBufferSize: u32, NameSize: ?*u32, Displacement: ?*u64) HRESULT { return @as(*const IDebugSymbols5.VTable, @ptrCast(self.vtable)).GetNameByOffset(@as(*const IDebugSymbols5, @ptrCast(self)), Offset, NameBuffer, NameBufferSize, NameSize, Displacement); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols5_GetOffsetByName(self: *const T, _param_Symbol: ?[*:0]const u8, Offset: ?*u64) HRESULT { return @as(*const IDebugSymbols5.VTable, @ptrCast(self.vtable)).GetOffsetByName(@as(*const IDebugSymbols5, @ptrCast(self)), _param_Symbol, Offset); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols5_GetNearNameByOffset(self: *const T, Offset: u64, Delta: i32, NameBuffer: ?[*:0]u8, NameBufferSize: u32, NameSize: ?*u32, Displacement: ?*u64) HRESULT { return @as(*const IDebugSymbols5.VTable, @ptrCast(self.vtable)).GetNearNameByOffset(@as(*const IDebugSymbols5, @ptrCast(self)), Offset, Delta, NameBuffer, NameBufferSize, NameSize, Displacement); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols5_GetLineByOffset(self: *const T, Offset: u64, Line: ?*u32, FileBuffer: ?[*:0]u8, FileBufferSize: u32, FileSize: ?*u32, Displacement: ?*u64) HRESULT { return @as(*const IDebugSymbols5.VTable, @ptrCast(self.vtable)).GetLineByOffset(@as(*const IDebugSymbols5, @ptrCast(self)), Offset, Line, FileBuffer, FileBufferSize, FileSize, Displacement); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols5_GetOffsetByLine(self: *const T, Line: u32, File: ?[*:0]const u8, Offset: ?*u64) HRESULT { return @as(*const IDebugSymbols5.VTable, @ptrCast(self.vtable)).GetOffsetByLine(@as(*const IDebugSymbols5, @ptrCast(self)), Line, File, Offset); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols5_GetNumberModules(self: *const T, Loaded: ?*u32, Unloaded: ?*u32) HRESULT { return @as(*const IDebugSymbols5.VTable, @ptrCast(self.vtable)).GetNumberModules(@as(*const IDebugSymbols5, @ptrCast(self)), Loaded, Unloaded); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols5_GetModuleByIndex(self: *const T, Index: u32, Base: ?*u64) HRESULT { return @as(*const IDebugSymbols5.VTable, @ptrCast(self.vtable)).GetModuleByIndex(@as(*const IDebugSymbols5, @ptrCast(self)), Index, Base); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols5_GetModuleByModuleName(self: *const T, Name: ?[*:0]const u8, StartIndex: u32, Index: ?*u32, Base: ?*u64) HRESULT { return @as(*const IDebugSymbols5.VTable, @ptrCast(self.vtable)).GetModuleByModuleName(@as(*const IDebugSymbols5, @ptrCast(self)), Name, StartIndex, Index, Base); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols5_GetModuleByOffset(self: *const T, Offset: u64, StartIndex: u32, Index: ?*u32, Base: ?*u64) HRESULT { return @as(*const IDebugSymbols5.VTable, @ptrCast(self.vtable)).GetModuleByOffset(@as(*const IDebugSymbols5, @ptrCast(self)), Offset, StartIndex, Index, Base); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols5_GetModuleNames(self: *const T, Index: u32, Base: u64, ImageNameBuffer: ?[*:0]u8, ImageNameBufferSize: u32, ImageNameSize: ?*u32, ModuleNameBuffer: ?[*:0]u8, ModuleNameBufferSize: u32, ModuleNameSize: ?*u32, LoadedImageNameBuffer: ?[*:0]u8, LoadedImageNameBufferSize: u32, LoadedImageNameSize: ?*u32) HRESULT { return @as(*const IDebugSymbols5.VTable, @ptrCast(self.vtable)).GetModuleNames(@as(*const IDebugSymbols5, @ptrCast(self)), Index, Base, ImageNameBuffer, ImageNameBufferSize, ImageNameSize, ModuleNameBuffer, ModuleNameBufferSize, ModuleNameSize, LoadedImageNameBuffer, LoadedImageNameBufferSize, LoadedImageNameSize); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols5_GetModuleParameters(self: *const T, Count: u32, Bases: ?[*]u64, Start: u32, Params: [*]DEBUG_MODULE_PARAMETERS) HRESULT { return @as(*const IDebugSymbols5.VTable, @ptrCast(self.vtable)).GetModuleParameters(@as(*const IDebugSymbols5, @ptrCast(self)), Count, Bases, Start, Params); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols5_GetSymbolModule(self: *const T, _param_Symbol: ?[*:0]const u8, Base: ?*u64) HRESULT { return @as(*const IDebugSymbols5.VTable, @ptrCast(self.vtable)).GetSymbolModule(@as(*const IDebugSymbols5, @ptrCast(self)), _param_Symbol, Base); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols5_GetTypeName(self: *const T, Module: u64, TypeId: u32, NameBuffer: ?[*:0]u8, NameBufferSize: u32, NameSize: ?*u32) HRESULT { return @as(*const IDebugSymbols5.VTable, @ptrCast(self.vtable)).GetTypeName(@as(*const IDebugSymbols5, @ptrCast(self)), Module, TypeId, NameBuffer, NameBufferSize, NameSize); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols5_GetTypeId(self: *const T, Module: u64, Name: ?[*:0]const u8, TypeId: ?*u32) HRESULT { return @as(*const IDebugSymbols5.VTable, @ptrCast(self.vtable)).GetTypeId(@as(*const IDebugSymbols5, @ptrCast(self)), Module, Name, TypeId); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols5_GetTypeSize(self: *const T, Module: u64, TypeId: u32, Size: ?*u32) HRESULT { return @as(*const IDebugSymbols5.VTable, @ptrCast(self.vtable)).GetTypeSize(@as(*const IDebugSymbols5, @ptrCast(self)), Module, TypeId, Size); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols5_GetFieldOffset(self: *const T, Module: u64, TypeId: u32, Field: ?[*:0]const u8, Offset: ?*u32) HRESULT { return @as(*const IDebugSymbols5.VTable, @ptrCast(self.vtable)).GetFieldOffset(@as(*const IDebugSymbols5, @ptrCast(self)), Module, TypeId, Field, Offset); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols5_GetSymbolTypeId(self: *const T, _param_Symbol: ?[*:0]const u8, TypeId: ?*u32, Module: ?*u64) HRESULT { return @as(*const IDebugSymbols5.VTable, @ptrCast(self.vtable)).GetSymbolTypeId(@as(*const IDebugSymbols5, @ptrCast(self)), _param_Symbol, TypeId, Module); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols5_GetOffsetTypeId(self: *const T, Offset: u64, TypeId: ?*u32, Module: ?*u64) HRESULT { return @as(*const IDebugSymbols5.VTable, @ptrCast(self.vtable)).GetOffsetTypeId(@as(*const IDebugSymbols5, @ptrCast(self)), Offset, TypeId, Module); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols5_ReadTypedDataVirtual(self: *const T, Offset: u64, Module: u64, TypeId: u32, Buffer: ?*anyopaque, BufferSize: u32, BytesRead: ?*u32) HRESULT { return @as(*const IDebugSymbols5.VTable, @ptrCast(self.vtable)).ReadTypedDataVirtual(@as(*const IDebugSymbols5, @ptrCast(self)), Offset, Module, TypeId, Buffer, BufferSize, BytesRead); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols5_WriteTypedDataVirtual(self: *const T, Offset: u64, Module: u64, TypeId: u32, Buffer: ?*anyopaque, BufferSize: u32, BytesWritten: ?*u32) HRESULT { return @as(*const IDebugSymbols5.VTable, @ptrCast(self.vtable)).WriteTypedDataVirtual(@as(*const IDebugSymbols5, @ptrCast(self)), Offset, Module, TypeId, Buffer, BufferSize, BytesWritten); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols5_OutputTypedDataVirtual(self: *const T, OutputControl: u32, Offset: u64, Module: u64, TypeId: u32, Flags: u32) HRESULT { return @as(*const IDebugSymbols5.VTable, @ptrCast(self.vtable)).OutputTypedDataVirtual(@as(*const IDebugSymbols5, @ptrCast(self)), OutputControl, Offset, Module, TypeId, Flags); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols5_ReadTypedDataPhysical(self: *const T, Offset: u64, Module: u64, TypeId: u32, Buffer: ?*anyopaque, BufferSize: u32, BytesRead: ?*u32) HRESULT { return @as(*const IDebugSymbols5.VTable, @ptrCast(self.vtable)).ReadTypedDataPhysical(@as(*const IDebugSymbols5, @ptrCast(self)), Offset, Module, TypeId, Buffer, BufferSize, BytesRead); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols5_WriteTypedDataPhysical(self: *const T, Offset: u64, Module: u64, TypeId: u32, Buffer: ?*anyopaque, BufferSize: u32, BytesWritten: ?*u32) HRESULT { return @as(*const IDebugSymbols5.VTable, @ptrCast(self.vtable)).WriteTypedDataPhysical(@as(*const IDebugSymbols5, @ptrCast(self)), Offset, Module, TypeId, Buffer, BufferSize, BytesWritten); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols5_OutputTypedDataPhysical(self: *const T, OutputControl: u32, Offset: u64, Module: u64, TypeId: u32, Flags: u32) HRESULT { return @as(*const IDebugSymbols5.VTable, @ptrCast(self.vtable)).OutputTypedDataPhysical(@as(*const IDebugSymbols5, @ptrCast(self)), OutputControl, Offset, Module, TypeId, Flags); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols5_GetScope(self: *const T, InstructionOffset: ?*u64, ScopeFrame: ?*DEBUG_STACK_FRAME, ScopeContext: ?*anyopaque, ScopeContextSize: u32) HRESULT { return @as(*const IDebugSymbols5.VTable, @ptrCast(self.vtable)).GetScope(@as(*const IDebugSymbols5, @ptrCast(self)), InstructionOffset, ScopeFrame, ScopeContext, ScopeContextSize); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols5_SetScope(self: *const T, InstructionOffset: u64, ScopeFrame: ?*DEBUG_STACK_FRAME, ScopeContext: ?*anyopaque, ScopeContextSize: u32) HRESULT { return @as(*const IDebugSymbols5.VTable, @ptrCast(self.vtable)).SetScope(@as(*const IDebugSymbols5, @ptrCast(self)), InstructionOffset, ScopeFrame, ScopeContext, ScopeContextSize); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols5_ResetScope(self: *const T) HRESULT { return @as(*const IDebugSymbols5.VTable, @ptrCast(self.vtable)).ResetScope(@as(*const IDebugSymbols5, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols5_GetScopeSymbolGroup(self: *const T, Flags: u32, Update: ?*IDebugSymbolGroup, Symbols: ?*?*IDebugSymbolGroup) HRESULT { return @as(*const IDebugSymbols5.VTable, @ptrCast(self.vtable)).GetScopeSymbolGroup(@as(*const IDebugSymbols5, @ptrCast(self)), Flags, Update, Symbols); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols5_CreateSymbolGroup(self: *const T, Group: ?*?*IDebugSymbolGroup) HRESULT { return @as(*const IDebugSymbols5.VTable, @ptrCast(self.vtable)).CreateSymbolGroup(@as(*const IDebugSymbols5, @ptrCast(self)), Group); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols5_StartSymbolMatch(self: *const T, Pattern: ?[*:0]const u8, Handle: ?*u64) HRESULT { return @as(*const IDebugSymbols5.VTable, @ptrCast(self.vtable)).StartSymbolMatch(@as(*const IDebugSymbols5, @ptrCast(self)), Pattern, Handle); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols5_GetNextSymbolMatch(self: *const T, Handle: u64, Buffer: ?[*:0]u8, BufferSize: u32, MatchSize: ?*u32, Offset: ?*u64) HRESULT { return @as(*const IDebugSymbols5.VTable, @ptrCast(self.vtable)).GetNextSymbolMatch(@as(*const IDebugSymbols5, @ptrCast(self)), Handle, Buffer, BufferSize, MatchSize, Offset); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols5_EndSymbolMatch(self: *const T, Handle: u64) HRESULT { return @as(*const IDebugSymbols5.VTable, @ptrCast(self.vtable)).EndSymbolMatch(@as(*const IDebugSymbols5, @ptrCast(self)), Handle); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols5_Reload(self: *const T, Module: ?[*:0]const u8) HRESULT { return @as(*const IDebugSymbols5.VTable, @ptrCast(self.vtable)).Reload(@as(*const IDebugSymbols5, @ptrCast(self)), Module); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols5_GetSymbolPath(self: *const T, Buffer: ?[*:0]u8, BufferSize: u32, PathSize: ?*u32) HRESULT { return @as(*const IDebugSymbols5.VTable, @ptrCast(self.vtable)).GetSymbolPath(@as(*const IDebugSymbols5, @ptrCast(self)), Buffer, BufferSize, PathSize); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols5_SetSymbolPath(self: *const T, Path: ?[*:0]const u8) HRESULT { return @as(*const IDebugSymbols5.VTable, @ptrCast(self.vtable)).SetSymbolPath(@as(*const IDebugSymbols5, @ptrCast(self)), Path); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols5_AppendSymbolPath(self: *const T, Addition: ?[*:0]const u8) HRESULT { return @as(*const IDebugSymbols5.VTable, @ptrCast(self.vtable)).AppendSymbolPath(@as(*const IDebugSymbols5, @ptrCast(self)), Addition); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols5_GetImagePath(self: *const T, Buffer: ?[*:0]u8, BufferSize: u32, PathSize: ?*u32) HRESULT { return @as(*const IDebugSymbols5.VTable, @ptrCast(self.vtable)).GetImagePath(@as(*const IDebugSymbols5, @ptrCast(self)), Buffer, BufferSize, PathSize); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols5_SetImagePath(self: *const T, Path: ?[*:0]const u8) HRESULT { return @as(*const IDebugSymbols5.VTable, @ptrCast(self.vtable)).SetImagePath(@as(*const IDebugSymbols5, @ptrCast(self)), Path); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols5_AppendImagePath(self: *const T, Addition: ?[*:0]const u8) HRESULT { return @as(*const IDebugSymbols5.VTable, @ptrCast(self.vtable)).AppendImagePath(@as(*const IDebugSymbols5, @ptrCast(self)), Addition); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols5_GetSourcePath(self: *const T, Buffer: ?[*:0]u8, BufferSize: u32, PathSize: ?*u32) HRESULT { return @as(*const IDebugSymbols5.VTable, @ptrCast(self.vtable)).GetSourcePath(@as(*const IDebugSymbols5, @ptrCast(self)), Buffer, BufferSize, PathSize); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols5_GetSourcePathElement(self: *const T, Index: u32, Buffer: ?[*:0]u8, BufferSize: u32, ElementSize: ?*u32) HRESULT { return @as(*const IDebugSymbols5.VTable, @ptrCast(self.vtable)).GetSourcePathElement(@as(*const IDebugSymbols5, @ptrCast(self)), Index, Buffer, BufferSize, ElementSize); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols5_SetSourcePath(self: *const T, Path: ?[*:0]const u8) HRESULT { return @as(*const IDebugSymbols5.VTable, @ptrCast(self.vtable)).SetSourcePath(@as(*const IDebugSymbols5, @ptrCast(self)), Path); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols5_AppendSourcePath(self: *const T, Addition: ?[*:0]const u8) HRESULT { return @as(*const IDebugSymbols5.VTable, @ptrCast(self.vtable)).AppendSourcePath(@as(*const IDebugSymbols5, @ptrCast(self)), Addition); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols5_FindSourceFile(self: *const T, StartElement: u32, File: ?[*:0]const u8, Flags: u32, FoundElement: ?*u32, Buffer: ?[*:0]u8, BufferSize: u32, FoundSize: ?*u32) HRESULT { return @as(*const IDebugSymbols5.VTable, @ptrCast(self.vtable)).FindSourceFile(@as(*const IDebugSymbols5, @ptrCast(self)), StartElement, File, Flags, FoundElement, Buffer, BufferSize, FoundSize); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols5_GetSourceFileLineOffsets(self: *const T, File: ?[*:0]const u8, Buffer: ?[*]u64, BufferLines: u32, FileLines: ?*u32) HRESULT { return @as(*const IDebugSymbols5.VTable, @ptrCast(self.vtable)).GetSourceFileLineOffsets(@as(*const IDebugSymbols5, @ptrCast(self)), File, Buffer, BufferLines, FileLines); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols5_GetModuleVersionInformation(self: *const T, Index: u32, Base: u64, Item: ?[*:0]const u8, Buffer: ?*anyopaque, BufferSize: u32, VerInfoSize: ?*u32) HRESULT { return @as(*const IDebugSymbols5.VTable, @ptrCast(self.vtable)).GetModuleVersionInformation(@as(*const IDebugSymbols5, @ptrCast(self)), Index, Base, Item, Buffer, BufferSize, VerInfoSize); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols5_GetModuleNameString(self: *const T, Which: u32, Index: u32, Base: u64, Buffer: ?[*:0]u8, BufferSize: u32, NameSize: ?*u32) HRESULT { return @as(*const IDebugSymbols5.VTable, @ptrCast(self.vtable)).GetModuleNameString(@as(*const IDebugSymbols5, @ptrCast(self)), Which, Index, Base, Buffer, BufferSize, NameSize); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols5_GetConstantName(self: *const T, Module: u64, TypeId: u32, Value: u64, NameBuffer: ?[*:0]u8, NameBufferSize: u32, NameSize: ?*u32) HRESULT { return @as(*const IDebugSymbols5.VTable, @ptrCast(self.vtable)).GetConstantName(@as(*const IDebugSymbols5, @ptrCast(self)), Module, TypeId, Value, NameBuffer, NameBufferSize, NameSize); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols5_GetFieldName(self: *const T, Module: u64, TypeId: u32, FieldIndex: u32, NameBuffer: ?[*:0]u8, NameBufferSize: u32, NameSize: ?*u32) HRESULT { return @as(*const IDebugSymbols5.VTable, @ptrCast(self.vtable)).GetFieldName(@as(*const IDebugSymbols5, @ptrCast(self)), Module, TypeId, FieldIndex, NameBuffer, NameBufferSize, NameSize); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols5_GetTypeOptions(self: *const T, Options: ?*u32) HRESULT { return @as(*const IDebugSymbols5.VTable, @ptrCast(self.vtable)).GetTypeOptions(@as(*const IDebugSymbols5, @ptrCast(self)), Options); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols5_AddTypeOptions(self: *const T, Options: u32) HRESULT { return @as(*const IDebugSymbols5.VTable, @ptrCast(self.vtable)).AddTypeOptions(@as(*const IDebugSymbols5, @ptrCast(self)), Options); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols5_RemoveTypeOptions(self: *const T, Options: u32) HRESULT { return @as(*const IDebugSymbols5.VTable, @ptrCast(self.vtable)).RemoveTypeOptions(@as(*const IDebugSymbols5, @ptrCast(self)), Options); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols5_SetTypeOptions(self: *const T, Options: u32) HRESULT { return @as(*const IDebugSymbols5.VTable, @ptrCast(self.vtable)).SetTypeOptions(@as(*const IDebugSymbols5, @ptrCast(self)), Options); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols5_GetNameByOffsetWide(self: *const T, Offset: u64, NameBuffer: ?[*:0]u16, NameBufferSize: u32, NameSize: ?*u32, Displacement: ?*u64) HRESULT { return @as(*const IDebugSymbols5.VTable, @ptrCast(self.vtable)).GetNameByOffsetWide(@as(*const IDebugSymbols5, @ptrCast(self)), Offset, NameBuffer, NameBufferSize, NameSize, Displacement); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols5_GetOffsetByNameWide(self: *const T, _param_Symbol: ?[*:0]const u16, Offset: ?*u64) HRESULT { return @as(*const IDebugSymbols5.VTable, @ptrCast(self.vtable)).GetOffsetByNameWide(@as(*const IDebugSymbols5, @ptrCast(self)), _param_Symbol, Offset); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols5_GetNearNameByOffsetWide(self: *const T, Offset: u64, Delta: i32, NameBuffer: ?[*:0]u16, NameBufferSize: u32, NameSize: ?*u32, Displacement: ?*u64) HRESULT { return @as(*const IDebugSymbols5.VTable, @ptrCast(self.vtable)).GetNearNameByOffsetWide(@as(*const IDebugSymbols5, @ptrCast(self)), Offset, Delta, NameBuffer, NameBufferSize, NameSize, Displacement); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols5_GetLineByOffsetWide(self: *const T, Offset: u64, Line: ?*u32, FileBuffer: ?[*:0]u16, FileBufferSize: u32, FileSize: ?*u32, Displacement: ?*u64) HRESULT { return @as(*const IDebugSymbols5.VTable, @ptrCast(self.vtable)).GetLineByOffsetWide(@as(*const IDebugSymbols5, @ptrCast(self)), Offset, Line, FileBuffer, FileBufferSize, FileSize, Displacement); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols5_GetOffsetByLineWide(self: *const T, Line: u32, File: ?[*:0]const u16, Offset: ?*u64) HRESULT { return @as(*const IDebugSymbols5.VTable, @ptrCast(self.vtable)).GetOffsetByLineWide(@as(*const IDebugSymbols5, @ptrCast(self)), Line, File, Offset); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols5_GetModuleByModuleNameWide(self: *const T, Name: ?[*:0]const u16, StartIndex: u32, Index: ?*u32, Base: ?*u64) HRESULT { return @as(*const IDebugSymbols5.VTable, @ptrCast(self.vtable)).GetModuleByModuleNameWide(@as(*const IDebugSymbols5, @ptrCast(self)), Name, StartIndex, Index, Base); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols5_GetSymbolModuleWide(self: *const T, _param_Symbol: ?[*:0]const u16, Base: ?*u64) HRESULT { return @as(*const IDebugSymbols5.VTable, @ptrCast(self.vtable)).GetSymbolModuleWide(@as(*const IDebugSymbols5, @ptrCast(self)), _param_Symbol, Base); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols5_GetTypeNameWide(self: *const T, Module: u64, TypeId: u32, NameBuffer: ?[*:0]u16, NameBufferSize: u32, NameSize: ?*u32) HRESULT { return @as(*const IDebugSymbols5.VTable, @ptrCast(self.vtable)).GetTypeNameWide(@as(*const IDebugSymbols5, @ptrCast(self)), Module, TypeId, NameBuffer, NameBufferSize, NameSize); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols5_GetTypeIdWide(self: *const T, Module: u64, Name: ?[*:0]const u16, TypeId: ?*u32) HRESULT { return @as(*const IDebugSymbols5.VTable, @ptrCast(self.vtable)).GetTypeIdWide(@as(*const IDebugSymbols5, @ptrCast(self)), Module, Name, TypeId); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols5_GetFieldOffsetWide(self: *const T, Module: u64, TypeId: u32, Field: ?[*:0]const u16, Offset: ?*u32) HRESULT { return @as(*const IDebugSymbols5.VTable, @ptrCast(self.vtable)).GetFieldOffsetWide(@as(*const IDebugSymbols5, @ptrCast(self)), Module, TypeId, Field, Offset); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols5_GetSymbolTypeIdWide(self: *const T, _param_Symbol: ?[*:0]const u16, TypeId: ?*u32, Module: ?*u64) HRESULT { return @as(*const IDebugSymbols5.VTable, @ptrCast(self.vtable)).GetSymbolTypeIdWide(@as(*const IDebugSymbols5, @ptrCast(self)), _param_Symbol, TypeId, Module); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols5_GetScopeSymbolGroup2(self: *const T, Flags: u32, Update: ?*IDebugSymbolGroup2, Symbols: ?*?*IDebugSymbolGroup2) HRESULT { return @as(*const IDebugSymbols5.VTable, @ptrCast(self.vtable)).GetScopeSymbolGroup2(@as(*const IDebugSymbols5, @ptrCast(self)), Flags, Update, Symbols); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols5_CreateSymbolGroup2(self: *const T, Group: ?*?*IDebugSymbolGroup2) HRESULT { return @as(*const IDebugSymbols5.VTable, @ptrCast(self.vtable)).CreateSymbolGroup2(@as(*const IDebugSymbols5, @ptrCast(self)), Group); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols5_StartSymbolMatchWide(self: *const T, Pattern: ?[*:0]const u16, Handle: ?*u64) HRESULT { return @as(*const IDebugSymbols5.VTable, @ptrCast(self.vtable)).StartSymbolMatchWide(@as(*const IDebugSymbols5, @ptrCast(self)), Pattern, Handle); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols5_GetNextSymbolMatchWide(self: *const T, Handle: u64, Buffer: ?[*:0]u16, BufferSize: u32, MatchSize: ?*u32, Offset: ?*u64) HRESULT { return @as(*const IDebugSymbols5.VTable, @ptrCast(self.vtable)).GetNextSymbolMatchWide(@as(*const IDebugSymbols5, @ptrCast(self)), Handle, Buffer, BufferSize, MatchSize, Offset); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols5_ReloadWide(self: *const T, Module: ?[*:0]const u16) HRESULT { return @as(*const IDebugSymbols5.VTable, @ptrCast(self.vtable)).ReloadWide(@as(*const IDebugSymbols5, @ptrCast(self)), Module); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols5_GetSymbolPathWide(self: *const T, Buffer: ?[*:0]u16, BufferSize: u32, PathSize: ?*u32) HRESULT { return @as(*const IDebugSymbols5.VTable, @ptrCast(self.vtable)).GetSymbolPathWide(@as(*const IDebugSymbols5, @ptrCast(self)), Buffer, BufferSize, PathSize); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols5_SetSymbolPathWide(self: *const T, Path: ?[*:0]const u16) HRESULT { return @as(*const IDebugSymbols5.VTable, @ptrCast(self.vtable)).SetSymbolPathWide(@as(*const IDebugSymbols5, @ptrCast(self)), Path); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols5_AppendSymbolPathWide(self: *const T, Addition: ?[*:0]const u16) HRESULT { return @as(*const IDebugSymbols5.VTable, @ptrCast(self.vtable)).AppendSymbolPathWide(@as(*const IDebugSymbols5, @ptrCast(self)), Addition); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols5_GetImagePathWide(self: *const T, Buffer: ?[*:0]u16, BufferSize: u32, PathSize: ?*u32) HRESULT { return @as(*const IDebugSymbols5.VTable, @ptrCast(self.vtable)).GetImagePathWide(@as(*const IDebugSymbols5, @ptrCast(self)), Buffer, BufferSize, PathSize); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols5_SetImagePathWide(self: *const T, Path: ?[*:0]const u16) HRESULT { return @as(*const IDebugSymbols5.VTable, @ptrCast(self.vtable)).SetImagePathWide(@as(*const IDebugSymbols5, @ptrCast(self)), Path); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols5_AppendImagePathWide(self: *const T, Addition: ?[*:0]const u16) HRESULT { return @as(*const IDebugSymbols5.VTable, @ptrCast(self.vtable)).AppendImagePathWide(@as(*const IDebugSymbols5, @ptrCast(self)), Addition); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols5_GetSourcePathWide(self: *const T, Buffer: ?[*:0]u16, BufferSize: u32, PathSize: ?*u32) HRESULT { return @as(*const IDebugSymbols5.VTable, @ptrCast(self.vtable)).GetSourcePathWide(@as(*const IDebugSymbols5, @ptrCast(self)), Buffer, BufferSize, PathSize); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols5_GetSourcePathElementWide(self: *const T, Index: u32, Buffer: ?[*:0]u16, BufferSize: u32, ElementSize: ?*u32) HRESULT { return @as(*const IDebugSymbols5.VTable, @ptrCast(self.vtable)).GetSourcePathElementWide(@as(*const IDebugSymbols5, @ptrCast(self)), Index, Buffer, BufferSize, ElementSize); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols5_SetSourcePathWide(self: *const T, Path: ?[*:0]const u16) HRESULT { return @as(*const IDebugSymbols5.VTable, @ptrCast(self.vtable)).SetSourcePathWide(@as(*const IDebugSymbols5, @ptrCast(self)), Path); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols5_AppendSourcePathWide(self: *const T, Addition: ?[*:0]const u16) HRESULT { return @as(*const IDebugSymbols5.VTable, @ptrCast(self.vtable)).AppendSourcePathWide(@as(*const IDebugSymbols5, @ptrCast(self)), Addition); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols5_FindSourceFileWide(self: *const T, StartElement: u32, File: ?[*:0]const u16, Flags: u32, FoundElement: ?*u32, Buffer: ?[*:0]u16, BufferSize: u32, FoundSize: ?*u32) HRESULT { return @as(*const IDebugSymbols5.VTable, @ptrCast(self.vtable)).FindSourceFileWide(@as(*const IDebugSymbols5, @ptrCast(self)), StartElement, File, Flags, FoundElement, Buffer, BufferSize, FoundSize); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols5_GetSourceFileLineOffsetsWide(self: *const T, File: ?[*:0]const u16, Buffer: ?[*]u64, BufferLines: u32, FileLines: ?*u32) HRESULT { return @as(*const IDebugSymbols5.VTable, @ptrCast(self.vtable)).GetSourceFileLineOffsetsWide(@as(*const IDebugSymbols5, @ptrCast(self)), File, Buffer, BufferLines, FileLines); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols5_GetModuleVersionInformationWide(self: *const T, Index: u32, Base: u64, Item: ?[*:0]const u16, Buffer: ?*anyopaque, BufferSize: u32, VerInfoSize: ?*u32) HRESULT { return @as(*const IDebugSymbols5.VTable, @ptrCast(self.vtable)).GetModuleVersionInformationWide(@as(*const IDebugSymbols5, @ptrCast(self)), Index, Base, Item, Buffer, BufferSize, VerInfoSize); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols5_GetModuleNameStringWide(self: *const T, Which: u32, Index: u32, Base: u64, Buffer: ?[*:0]u16, BufferSize: u32, NameSize: ?*u32) HRESULT { return @as(*const IDebugSymbols5.VTable, @ptrCast(self.vtable)).GetModuleNameStringWide(@as(*const IDebugSymbols5, @ptrCast(self)), Which, Index, Base, Buffer, BufferSize, NameSize); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols5_GetConstantNameWide(self: *const T, Module: u64, TypeId: u32, Value: u64, NameBuffer: ?[*:0]u16, NameBufferSize: u32, NameSize: ?*u32) HRESULT { return @as(*const IDebugSymbols5.VTable, @ptrCast(self.vtable)).GetConstantNameWide(@as(*const IDebugSymbols5, @ptrCast(self)), Module, TypeId, Value, NameBuffer, NameBufferSize, NameSize); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols5_GetFieldNameWide(self: *const T, Module: u64, TypeId: u32, FieldIndex: u32, NameBuffer: ?[*:0]u16, NameBufferSize: u32, NameSize: ?*u32) HRESULT { return @as(*const IDebugSymbols5.VTable, @ptrCast(self.vtable)).GetFieldNameWide(@as(*const IDebugSymbols5, @ptrCast(self)), Module, TypeId, FieldIndex, NameBuffer, NameBufferSize, NameSize); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols5_IsManagedModule(self: *const T, Index: u32, Base: u64) HRESULT { return @as(*const IDebugSymbols5.VTable, @ptrCast(self.vtable)).IsManagedModule(@as(*const IDebugSymbols5, @ptrCast(self)), Index, Base); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols5_GetModuleByModuleName2(self: *const T, Name: ?[*:0]const u8, StartIndex: u32, Flags: u32, Index: ?*u32, Base: ?*u64) HRESULT { return @as(*const IDebugSymbols5.VTable, @ptrCast(self.vtable)).GetModuleByModuleName2(@as(*const IDebugSymbols5, @ptrCast(self)), Name, StartIndex, Flags, Index, Base); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols5_GetModuleByModuleName2Wide(self: *const T, Name: ?[*:0]const u16, StartIndex: u32, Flags: u32, Index: ?*u32, Base: ?*u64) HRESULT { return @as(*const IDebugSymbols5.VTable, @ptrCast(self.vtable)).GetModuleByModuleName2Wide(@as(*const IDebugSymbols5, @ptrCast(self)), Name, StartIndex, Flags, Index, Base); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols5_GetModuleByOffset2(self: *const T, Offset: u64, StartIndex: u32, Flags: u32, Index: ?*u32, Base: ?*u64) HRESULT { return @as(*const IDebugSymbols5.VTable, @ptrCast(self.vtable)).GetModuleByOffset2(@as(*const IDebugSymbols5, @ptrCast(self)), Offset, StartIndex, Flags, Index, Base); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols5_AddSyntheticModule(self: *const T, Base: u64, Size: u32, ImagePath: ?[*:0]const u8, ModuleName: ?[*:0]const u8, Flags: u32) HRESULT { return @as(*const IDebugSymbols5.VTable, @ptrCast(self.vtable)).AddSyntheticModule(@as(*const IDebugSymbols5, @ptrCast(self)), Base, Size, ImagePath, ModuleName, Flags); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols5_AddSyntheticModuleWide(self: *const T, Base: u64, Size: u32, ImagePath: ?[*:0]const u16, ModuleName: ?[*:0]const u16, Flags: u32) HRESULT { return @as(*const IDebugSymbols5.VTable, @ptrCast(self.vtable)).AddSyntheticModuleWide(@as(*const IDebugSymbols5, @ptrCast(self)), Base, Size, ImagePath, ModuleName, Flags); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols5_RemoveSyntheticModule(self: *const T, Base: u64) HRESULT { return @as(*const IDebugSymbols5.VTable, @ptrCast(self.vtable)).RemoveSyntheticModule(@as(*const IDebugSymbols5, @ptrCast(self)), Base); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols5_GetCurrentScopeFrameIndex(self: *const T, Index: ?*u32) HRESULT { return @as(*const IDebugSymbols5.VTable, @ptrCast(self.vtable)).GetCurrentScopeFrameIndex(@as(*const IDebugSymbols5, @ptrCast(self)), Index); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols5_SetScopeFrameByIndex(self: *const T, Index: u32) HRESULT { return @as(*const IDebugSymbols5.VTable, @ptrCast(self.vtable)).SetScopeFrameByIndex(@as(*const IDebugSymbols5, @ptrCast(self)), Index); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols5_SetScopeFromJitDebugInfo(self: *const T, OutputControl: u32, InfoOffset: u64) HRESULT { return @as(*const IDebugSymbols5.VTable, @ptrCast(self.vtable)).SetScopeFromJitDebugInfo(@as(*const IDebugSymbols5, @ptrCast(self)), OutputControl, InfoOffset); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols5_SetScopeFromStoredEvent(self: *const T) HRESULT { return @as(*const IDebugSymbols5.VTable, @ptrCast(self.vtable)).SetScopeFromStoredEvent(@as(*const IDebugSymbols5, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols5_OutputSymbolByOffset(self: *const T, OutputControl: u32, Flags: u32, Offset: u64) HRESULT { return @as(*const IDebugSymbols5.VTable, @ptrCast(self.vtable)).OutputSymbolByOffset(@as(*const IDebugSymbols5, @ptrCast(self)), OutputControl, Flags, Offset); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols5_GetFunctionEntryByOffset(self: *const T, Offset: u64, Flags: u32, Buffer: ?*anyopaque, BufferSize: u32, BufferNeeded: ?*u32) HRESULT { return @as(*const IDebugSymbols5.VTable, @ptrCast(self.vtable)).GetFunctionEntryByOffset(@as(*const IDebugSymbols5, @ptrCast(self)), Offset, Flags, Buffer, BufferSize, BufferNeeded); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols5_GetFieldTypeAndOffset(self: *const T, Module: u64, ContainerTypeId: u32, Field: ?[*:0]const u8, FieldTypeId: ?*u32, Offset: ?*u32) HRESULT { return @as(*const IDebugSymbols5.VTable, @ptrCast(self.vtable)).GetFieldTypeAndOffset(@as(*const IDebugSymbols5, @ptrCast(self)), Module, ContainerTypeId, Field, FieldTypeId, Offset); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols5_GetFieldTypeAndOffsetWide(self: *const T, Module: u64, ContainerTypeId: u32, Field: ?[*:0]const u16, FieldTypeId: ?*u32, Offset: ?*u32) HRESULT { return @as(*const IDebugSymbols5.VTable, @ptrCast(self.vtable)).GetFieldTypeAndOffsetWide(@as(*const IDebugSymbols5, @ptrCast(self)), Module, ContainerTypeId, Field, FieldTypeId, Offset); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols5_AddSyntheticSymbol(self: *const T, Offset: u64, Size: u32, Name: ?[*:0]const u8, Flags: u32, Id: ?*DEBUG_MODULE_AND_ID) HRESULT { return @as(*const IDebugSymbols5.VTable, @ptrCast(self.vtable)).AddSyntheticSymbol(@as(*const IDebugSymbols5, @ptrCast(self)), Offset, Size, Name, Flags, Id); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols5_AddSyntheticSymbolWide(self: *const T, Offset: u64, Size: u32, Name: ?[*:0]const u16, Flags: u32, Id: ?*DEBUG_MODULE_AND_ID) HRESULT { return @as(*const IDebugSymbols5.VTable, @ptrCast(self.vtable)).AddSyntheticSymbolWide(@as(*const IDebugSymbols5, @ptrCast(self)), Offset, Size, Name, Flags, Id); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols5_RemoveSyntheticSymbol(self: *const T, Id: ?*DEBUG_MODULE_AND_ID) HRESULT { return @as(*const IDebugSymbols5.VTable, @ptrCast(self.vtable)).RemoveSyntheticSymbol(@as(*const IDebugSymbols5, @ptrCast(self)), Id); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols5_GetSymbolEntriesByOffset(self: *const T, Offset: u64, Flags: u32, Ids: ?[*]DEBUG_MODULE_AND_ID, Displacements: ?[*]u64, IdsCount: u32, Entries: ?*u32) HRESULT { return @as(*const IDebugSymbols5.VTable, @ptrCast(self.vtable)).GetSymbolEntriesByOffset(@as(*const IDebugSymbols5, @ptrCast(self)), Offset, Flags, Ids, Displacements, IdsCount, Entries); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols5_GetSymbolEntriesByName(self: *const T, _param_Symbol: ?[*:0]const u8, Flags: u32, Ids: ?[*]DEBUG_MODULE_AND_ID, IdsCount: u32, Entries: ?*u32) HRESULT { return @as(*const IDebugSymbols5.VTable, @ptrCast(self.vtable)).GetSymbolEntriesByName(@as(*const IDebugSymbols5, @ptrCast(self)), _param_Symbol, Flags, Ids, IdsCount, Entries); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols5_GetSymbolEntriesByNameWide(self: *const T, _param_Symbol: ?[*:0]const u16, Flags: u32, Ids: ?[*]DEBUG_MODULE_AND_ID, IdsCount: u32, Entries: ?*u32) HRESULT { return @as(*const IDebugSymbols5.VTable, @ptrCast(self.vtable)).GetSymbolEntriesByNameWide(@as(*const IDebugSymbols5, @ptrCast(self)), _param_Symbol, Flags, Ids, IdsCount, Entries); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols5_GetSymbolEntryByToken(self: *const T, ModuleBase: u64, Token: u32, Id: ?*DEBUG_MODULE_AND_ID) HRESULT { return @as(*const IDebugSymbols5.VTable, @ptrCast(self.vtable)).GetSymbolEntryByToken(@as(*const IDebugSymbols5, @ptrCast(self)), ModuleBase, Token, Id); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols5_GetSymbolEntryInformation(self: *const T, Id: ?*DEBUG_MODULE_AND_ID, Info: ?*DEBUG_SYMBOL_ENTRY) HRESULT { return @as(*const IDebugSymbols5.VTable, @ptrCast(self.vtable)).GetSymbolEntryInformation(@as(*const IDebugSymbols5, @ptrCast(self)), Id, Info); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols5_GetSymbolEntryString(self: *const T, Id: ?*DEBUG_MODULE_AND_ID, Which: u32, Buffer: ?[*:0]u8, BufferSize: u32, StringSize: ?*u32) HRESULT { return @as(*const IDebugSymbols5.VTable, @ptrCast(self.vtable)).GetSymbolEntryString(@as(*const IDebugSymbols5, @ptrCast(self)), Id, Which, Buffer, BufferSize, StringSize); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols5_GetSymbolEntryStringWide(self: *const T, Id: ?*DEBUG_MODULE_AND_ID, Which: u32, Buffer: ?[*:0]u16, BufferSize: u32, StringSize: ?*u32) HRESULT { return @as(*const IDebugSymbols5.VTable, @ptrCast(self.vtable)).GetSymbolEntryStringWide(@as(*const IDebugSymbols5, @ptrCast(self)), Id, Which, Buffer, BufferSize, StringSize); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols5_GetSymbolEntryOffsetRegions(self: *const T, Id: ?*DEBUG_MODULE_AND_ID, Flags: u32, Regions: ?[*]DEBUG_OFFSET_REGION, RegionsCount: u32, RegionsAvail: ?*u32) HRESULT { return @as(*const IDebugSymbols5.VTable, @ptrCast(self.vtable)).GetSymbolEntryOffsetRegions(@as(*const IDebugSymbols5, @ptrCast(self)), Id, Flags, Regions, RegionsCount, RegionsAvail); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols5_GetSymbolEntryBySymbolEntry(self: *const T, FromId: ?*DEBUG_MODULE_AND_ID, Flags: u32, ToId: ?*DEBUG_MODULE_AND_ID) HRESULT { return @as(*const IDebugSymbols5.VTable, @ptrCast(self.vtable)).GetSymbolEntryBySymbolEntry(@as(*const IDebugSymbols5, @ptrCast(self)), FromId, Flags, ToId); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols5_GetSourceEntriesByOffset(self: *const T, Offset: u64, Flags: u32, Entries: ?[*]DEBUG_SYMBOL_SOURCE_ENTRY, EntriesCount: u32, EntriesAvail: ?*u32) HRESULT { return @as(*const IDebugSymbols5.VTable, @ptrCast(self.vtable)).GetSourceEntriesByOffset(@as(*const IDebugSymbols5, @ptrCast(self)), Offset, Flags, Entries, EntriesCount, EntriesAvail); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols5_GetSourceEntriesByLine(self: *const T, Line: u32, File: ?[*:0]const u8, Flags: u32, Entries: ?[*]DEBUG_SYMBOL_SOURCE_ENTRY, EntriesCount: u32, EntriesAvail: ?*u32) HRESULT { return @as(*const IDebugSymbols5.VTable, @ptrCast(self.vtable)).GetSourceEntriesByLine(@as(*const IDebugSymbols5, @ptrCast(self)), Line, File, Flags, Entries, EntriesCount, EntriesAvail); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols5_GetSourceEntriesByLineWide(self: *const T, Line: u32, File: ?[*:0]const u16, Flags: u32, Entries: ?[*]DEBUG_SYMBOL_SOURCE_ENTRY, EntriesCount: u32, EntriesAvail: ?*u32) HRESULT { return @as(*const IDebugSymbols5.VTable, @ptrCast(self.vtable)).GetSourceEntriesByLineWide(@as(*const IDebugSymbols5, @ptrCast(self)), Line, File, Flags, Entries, EntriesCount, EntriesAvail); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols5_GetSourceEntryString(self: *const T, Entry: ?*DEBUG_SYMBOL_SOURCE_ENTRY, Which: u32, Buffer: ?[*:0]u8, BufferSize: u32, StringSize: ?*u32) HRESULT { return @as(*const IDebugSymbols5.VTable, @ptrCast(self.vtable)).GetSourceEntryString(@as(*const IDebugSymbols5, @ptrCast(self)), Entry, Which, Buffer, BufferSize, StringSize); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols5_GetSourceEntryStringWide(self: *const T, Entry: ?*DEBUG_SYMBOL_SOURCE_ENTRY, Which: u32, Buffer: ?[*:0]u16, BufferSize: u32, StringSize: ?*u32) HRESULT { return @as(*const IDebugSymbols5.VTable, @ptrCast(self.vtable)).GetSourceEntryStringWide(@as(*const IDebugSymbols5, @ptrCast(self)), Entry, Which, Buffer, BufferSize, StringSize); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols5_GetSourceEntryOffsetRegions(self: *const T, Entry: ?*DEBUG_SYMBOL_SOURCE_ENTRY, Flags: u32, Regions: ?[*]DEBUG_OFFSET_REGION, RegionsCount: u32, RegionsAvail: ?*u32) HRESULT { return @as(*const IDebugSymbols5.VTable, @ptrCast(self.vtable)).GetSourceEntryOffsetRegions(@as(*const IDebugSymbols5, @ptrCast(self)), Entry, Flags, Regions, RegionsCount, RegionsAvail); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols5_GetSourceEntryBySourceEntry(self: *const T, FromEntry: ?*DEBUG_SYMBOL_SOURCE_ENTRY, Flags: u32, ToEntry: ?*DEBUG_SYMBOL_SOURCE_ENTRY) HRESULT { return @as(*const IDebugSymbols5.VTable, @ptrCast(self.vtable)).GetSourceEntryBySourceEntry(@as(*const IDebugSymbols5, @ptrCast(self)), FromEntry, Flags, ToEntry); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols5_GetScopeEx(self: *const T, InstructionOffset: ?*u64, ScopeFrame: ?*DEBUG_STACK_FRAME_EX, ScopeContext: ?*anyopaque, ScopeContextSize: u32) HRESULT { return @as(*const IDebugSymbols5.VTable, @ptrCast(self.vtable)).GetScopeEx(@as(*const IDebugSymbols5, @ptrCast(self)), InstructionOffset, ScopeFrame, ScopeContext, ScopeContextSize); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols5_SetScopeEx(self: *const T, InstructionOffset: u64, ScopeFrame: ?*DEBUG_STACK_FRAME_EX, ScopeContext: ?*anyopaque, ScopeContextSize: u32) HRESULT { return @as(*const IDebugSymbols5.VTable, @ptrCast(self.vtable)).SetScopeEx(@as(*const IDebugSymbols5, @ptrCast(self)), InstructionOffset, ScopeFrame, ScopeContext, ScopeContextSize); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols5_GetNameByInlineContext(self: *const T, Offset: u64, InlineContext: u32, NameBuffer: ?[*:0]u8, NameBufferSize: u32, NameSize: ?*u32, Displacement: ?*u64) HRESULT { return @as(*const IDebugSymbols5.VTable, @ptrCast(self.vtable)).GetNameByInlineContext(@as(*const IDebugSymbols5, @ptrCast(self)), Offset, InlineContext, NameBuffer, NameBufferSize, NameSize, Displacement); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols5_GetNameByInlineContextWide(self: *const T, Offset: u64, InlineContext: u32, NameBuffer: ?[*:0]u16, NameBufferSize: u32, NameSize: ?*u32, Displacement: ?*u64) HRESULT { return @as(*const IDebugSymbols5.VTable, @ptrCast(self.vtable)).GetNameByInlineContextWide(@as(*const IDebugSymbols5, @ptrCast(self)), Offset, InlineContext, NameBuffer, NameBufferSize, NameSize, Displacement); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols5_GetLineByInlineContext(self: *const T, Offset: u64, InlineContext: u32, Line: ?*u32, FileBuffer: ?[*:0]u8, FileBufferSize: u32, FileSize: ?*u32, Displacement: ?*u64) HRESULT { return @as(*const IDebugSymbols5.VTable, @ptrCast(self.vtable)).GetLineByInlineContext(@as(*const IDebugSymbols5, @ptrCast(self)), Offset, InlineContext, Line, FileBuffer, FileBufferSize, FileSize, Displacement); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols5_GetLineByInlineContextWide(self: *const T, Offset: u64, InlineContext: u32, Line: ?*u32, FileBuffer: ?[*:0]u16, FileBufferSize: u32, FileSize: ?*u32, Displacement: ?*u64) HRESULT { return @as(*const IDebugSymbols5.VTable, @ptrCast(self.vtable)).GetLineByInlineContextWide(@as(*const IDebugSymbols5, @ptrCast(self)), Offset, InlineContext, Line, FileBuffer, FileBufferSize, FileSize, Displacement); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols5_OutputSymbolByInlineContext(self: *const T, OutputControl: u32, Flags: u32, Offset: u64, InlineContext: u32) HRESULT { return @as(*const IDebugSymbols5.VTable, @ptrCast(self.vtable)).OutputSymbolByInlineContext(@as(*const IDebugSymbols5, @ptrCast(self)), OutputControl, Flags, Offset, InlineContext); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols5_GetCurrentScopeFrameIndexEx(self: *const T, Flags: u32, Index: ?*u32) HRESULT { return @as(*const IDebugSymbols5.VTable, @ptrCast(self.vtable)).GetCurrentScopeFrameIndexEx(@as(*const IDebugSymbols5, @ptrCast(self)), Flags, Index); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSymbols5_SetScopeFrameByIndexEx(self: *const T, Flags: u32, Index: u32) HRESULT { return @as(*const IDebugSymbols5.VTable, @ptrCast(self.vtable)).SetScopeFrameByIndexEx(@as(*const IDebugSymbols5, @ptrCast(self)), Flags, Index); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IDebugSystemObjects_Value = Guid.initString("6b86fe2c-2c4f-4f0c-9da2-174311acc327"); pub const IID_IDebugSystemObjects = &IID_IDebugSystemObjects_Value; pub const IDebugSystemObjects = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, GetEventThread: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSystemObjects, Id: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSystemObjects, Id: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetEventProcess: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSystemObjects, Id: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSystemObjects, Id: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetCurrentThreadId: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSystemObjects, Id: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSystemObjects, Id: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetCurrentThreadId: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSystemObjects, Id: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSystemObjects, Id: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetCurrentProcessId: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSystemObjects, Id: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSystemObjects, Id: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetCurrentProcessId: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSystemObjects, Id: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSystemObjects, Id: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetNumberThreads: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSystemObjects, Number: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSystemObjects, Number: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetTotalNumberThreads: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSystemObjects, Total: ?*u32, LargestProcess: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSystemObjects, Total: ?*u32, LargestProcess: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetThreadIdsByIndex: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSystemObjects, Start: u32, Count: u32, Ids: ?[*]u32, SysIds: ?[*]u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSystemObjects, Start: u32, Count: u32, Ids: ?[*]u32, SysIds: ?[*]u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetThreadIdByProcessor: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSystemObjects, Processor: u32, Id: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSystemObjects, Processor: u32, Id: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetCurrentThreadDataOffset: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSystemObjects, Offset: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSystemObjects, Offset: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetThreadIdByDataOffset: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSystemObjects, Offset: u64, Id: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSystemObjects, Offset: u64, Id: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetCurrentThreadTeb: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSystemObjects, Offset: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSystemObjects, Offset: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetThreadIdByTeb: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSystemObjects, Offset: u64, Id: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSystemObjects, Offset: u64, Id: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetCurrentThreadSystemId: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSystemObjects, SysId: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSystemObjects, SysId: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetThreadIdBySystemId: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSystemObjects, SysId: u32, Id: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSystemObjects, SysId: u32, Id: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetCurrentThreadHandle: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSystemObjects, Handle: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSystemObjects, Handle: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetThreadIdByHandle: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSystemObjects, Handle: u64, Id: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSystemObjects, Handle: u64, Id: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetNumberProcesses: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSystemObjects, Number: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSystemObjects, Number: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetProcessIdsByIndex: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSystemObjects, Start: u32, Count: u32, Ids: ?[*]u32, SysIds: ?[*]u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSystemObjects, Start: u32, Count: u32, Ids: ?[*]u32, SysIds: ?[*]u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetCurrentProcessDataOffset: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSystemObjects, Offset: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSystemObjects, Offset: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetProcessIdByDataOffset: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSystemObjects, Offset: u64, Id: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSystemObjects, Offset: u64, Id: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetCurrentProcessPeb: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSystemObjects, Offset: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSystemObjects, Offset: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetProcessIdByPeb: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSystemObjects, Offset: u64, Id: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSystemObjects, Offset: u64, Id: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetCurrentProcessSystemId: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSystemObjects, SysId: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSystemObjects, SysId: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetProcessIdBySystemId: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSystemObjects, SysId: u32, Id: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSystemObjects, SysId: u32, Id: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetCurrentProcessHandle: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSystemObjects, Handle: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSystemObjects, Handle: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetProcessIdByHandle: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSystemObjects, Handle: u64, Id: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSystemObjects, Handle: u64, Id: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetCurrentProcessExecutableName: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSystemObjects, Buffer: ?[*:0]u8, BufferSize: u32, ExeSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSystemObjects, Buffer: ?[*:0]u8, BufferSize: u32, ExeSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSystemObjects_GetEventThread(self: *const T, Id: ?*u32) HRESULT { return @as(*const IDebugSystemObjects.VTable, @ptrCast(self.vtable)).GetEventThread(@as(*const IDebugSystemObjects, @ptrCast(self)), Id); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSystemObjects_GetEventProcess(self: *const T, Id: ?*u32) HRESULT { return @as(*const IDebugSystemObjects.VTable, @ptrCast(self.vtable)).GetEventProcess(@as(*const IDebugSystemObjects, @ptrCast(self)), Id); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSystemObjects_GetCurrentThreadId(self: *const T, Id: ?*u32) HRESULT { return @as(*const IDebugSystemObjects.VTable, @ptrCast(self.vtable)).GetCurrentThreadId(@as(*const IDebugSystemObjects, @ptrCast(self)), Id); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSystemObjects_SetCurrentThreadId(self: *const T, Id: u32) HRESULT { return @as(*const IDebugSystemObjects.VTable, @ptrCast(self.vtable)).SetCurrentThreadId(@as(*const IDebugSystemObjects, @ptrCast(self)), Id); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSystemObjects_GetCurrentProcessId(self: *const T, Id: ?*u32) HRESULT { return @as(*const IDebugSystemObjects.VTable, @ptrCast(self.vtable)).GetCurrentProcessId(@as(*const IDebugSystemObjects, @ptrCast(self)), Id); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSystemObjects_SetCurrentProcessId(self: *const T, Id: u32) HRESULT { return @as(*const IDebugSystemObjects.VTable, @ptrCast(self.vtable)).SetCurrentProcessId(@as(*const IDebugSystemObjects, @ptrCast(self)), Id); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSystemObjects_GetNumberThreads(self: *const T, Number: ?*u32) HRESULT { return @as(*const IDebugSystemObjects.VTable, @ptrCast(self.vtable)).GetNumberThreads(@as(*const IDebugSystemObjects, @ptrCast(self)), Number); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSystemObjects_GetTotalNumberThreads(self: *const T, Total: ?*u32, LargestProcess: ?*u32) HRESULT { return @as(*const IDebugSystemObjects.VTable, @ptrCast(self.vtable)).GetTotalNumberThreads(@as(*const IDebugSystemObjects, @ptrCast(self)), Total, LargestProcess); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSystemObjects_GetThreadIdsByIndex(self: *const T, Start: u32, Count: u32, Ids: ?[*]u32, SysIds: ?[*]u32) HRESULT { return @as(*const IDebugSystemObjects.VTable, @ptrCast(self.vtable)).GetThreadIdsByIndex(@as(*const IDebugSystemObjects, @ptrCast(self)), Start, Count, Ids, SysIds); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSystemObjects_GetThreadIdByProcessor(self: *const T, Processor: u32, Id: ?*u32) HRESULT { return @as(*const IDebugSystemObjects.VTable, @ptrCast(self.vtable)).GetThreadIdByProcessor(@as(*const IDebugSystemObjects, @ptrCast(self)), Processor, Id); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSystemObjects_GetCurrentThreadDataOffset(self: *const T, Offset: ?*u64) HRESULT { return @as(*const IDebugSystemObjects.VTable, @ptrCast(self.vtable)).GetCurrentThreadDataOffset(@as(*const IDebugSystemObjects, @ptrCast(self)), Offset); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSystemObjects_GetThreadIdByDataOffset(self: *const T, Offset: u64, Id: ?*u32) HRESULT { return @as(*const IDebugSystemObjects.VTable, @ptrCast(self.vtable)).GetThreadIdByDataOffset(@as(*const IDebugSystemObjects, @ptrCast(self)), Offset, Id); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSystemObjects_GetCurrentThreadTeb(self: *const T, Offset: ?*u64) HRESULT { return @as(*const IDebugSystemObjects.VTable, @ptrCast(self.vtable)).GetCurrentThreadTeb(@as(*const IDebugSystemObjects, @ptrCast(self)), Offset); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSystemObjects_GetThreadIdByTeb(self: *const T, Offset: u64, Id: ?*u32) HRESULT { return @as(*const IDebugSystemObjects.VTable, @ptrCast(self.vtable)).GetThreadIdByTeb(@as(*const IDebugSystemObjects, @ptrCast(self)), Offset, Id); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSystemObjects_GetCurrentThreadSystemId(self: *const T, SysId: ?*u32) HRESULT { return @as(*const IDebugSystemObjects.VTable, @ptrCast(self.vtable)).GetCurrentThreadSystemId(@as(*const IDebugSystemObjects, @ptrCast(self)), SysId); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSystemObjects_GetThreadIdBySystemId(self: *const T, SysId: u32, Id: ?*u32) HRESULT { return @as(*const IDebugSystemObjects.VTable, @ptrCast(self.vtable)).GetThreadIdBySystemId(@as(*const IDebugSystemObjects, @ptrCast(self)), SysId, Id); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSystemObjects_GetCurrentThreadHandle(self: *const T, Handle: ?*u64) HRESULT { return @as(*const IDebugSystemObjects.VTable, @ptrCast(self.vtable)).GetCurrentThreadHandle(@as(*const IDebugSystemObjects, @ptrCast(self)), Handle); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSystemObjects_GetThreadIdByHandle(self: *const T, Handle: u64, Id: ?*u32) HRESULT { return @as(*const IDebugSystemObjects.VTable, @ptrCast(self.vtable)).GetThreadIdByHandle(@as(*const IDebugSystemObjects, @ptrCast(self)), Handle, Id); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSystemObjects_GetNumberProcesses(self: *const T, Number: ?*u32) HRESULT { return @as(*const IDebugSystemObjects.VTable, @ptrCast(self.vtable)).GetNumberProcesses(@as(*const IDebugSystemObjects, @ptrCast(self)), Number); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSystemObjects_GetProcessIdsByIndex(self: *const T, Start: u32, Count: u32, Ids: ?[*]u32, SysIds: ?[*]u32) HRESULT { return @as(*const IDebugSystemObjects.VTable, @ptrCast(self.vtable)).GetProcessIdsByIndex(@as(*const IDebugSystemObjects, @ptrCast(self)), Start, Count, Ids, SysIds); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSystemObjects_GetCurrentProcessDataOffset(self: *const T, Offset: ?*u64) HRESULT { return @as(*const IDebugSystemObjects.VTable, @ptrCast(self.vtable)).GetCurrentProcessDataOffset(@as(*const IDebugSystemObjects, @ptrCast(self)), Offset); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSystemObjects_GetProcessIdByDataOffset(self: *const T, Offset: u64, Id: ?*u32) HRESULT { return @as(*const IDebugSystemObjects.VTable, @ptrCast(self.vtable)).GetProcessIdByDataOffset(@as(*const IDebugSystemObjects, @ptrCast(self)), Offset, Id); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSystemObjects_GetCurrentProcessPeb(self: *const T, Offset: ?*u64) HRESULT { return @as(*const IDebugSystemObjects.VTable, @ptrCast(self.vtable)).GetCurrentProcessPeb(@as(*const IDebugSystemObjects, @ptrCast(self)), Offset); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSystemObjects_GetProcessIdByPeb(self: *const T, Offset: u64, Id: ?*u32) HRESULT { return @as(*const IDebugSystemObjects.VTable, @ptrCast(self.vtable)).GetProcessIdByPeb(@as(*const IDebugSystemObjects, @ptrCast(self)), Offset, Id); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSystemObjects_GetCurrentProcessSystemId(self: *const T, SysId: ?*u32) HRESULT { return @as(*const IDebugSystemObjects.VTable, @ptrCast(self.vtable)).GetCurrentProcessSystemId(@as(*const IDebugSystemObjects, @ptrCast(self)), SysId); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSystemObjects_GetProcessIdBySystemId(self: *const T, SysId: u32, Id: ?*u32) HRESULT { return @as(*const IDebugSystemObjects.VTable, @ptrCast(self.vtable)).GetProcessIdBySystemId(@as(*const IDebugSystemObjects, @ptrCast(self)), SysId, Id); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSystemObjects_GetCurrentProcessHandle(self: *const T, Handle: ?*u64) HRESULT { return @as(*const IDebugSystemObjects.VTable, @ptrCast(self.vtable)).GetCurrentProcessHandle(@as(*const IDebugSystemObjects, @ptrCast(self)), Handle); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSystemObjects_GetProcessIdByHandle(self: *const T, Handle: u64, Id: ?*u32) HRESULT { return @as(*const IDebugSystemObjects.VTable, @ptrCast(self.vtable)).GetProcessIdByHandle(@as(*const IDebugSystemObjects, @ptrCast(self)), Handle, Id); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSystemObjects_GetCurrentProcessExecutableName(self: *const T, Buffer: ?[*:0]u8, BufferSize: u32, ExeSize: ?*u32) HRESULT { return @as(*const IDebugSystemObjects.VTable, @ptrCast(self.vtable)).GetCurrentProcessExecutableName(@as(*const IDebugSystemObjects, @ptrCast(self)), Buffer, BufferSize, ExeSize); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IDebugSystemObjects2_Value = Guid.initString("0ae9f5ff-1852-4679-b055-494bee6407ee"); pub const IID_IDebugSystemObjects2 = &IID_IDebugSystemObjects2_Value; pub const IDebugSystemObjects2 = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, GetEventThread: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSystemObjects2, Id: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSystemObjects2, Id: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetEventProcess: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSystemObjects2, Id: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSystemObjects2, Id: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetCurrentThreadId: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSystemObjects2, Id: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSystemObjects2, Id: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetCurrentThreadId: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSystemObjects2, Id: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSystemObjects2, Id: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetCurrentProcessId: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSystemObjects2, Id: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSystemObjects2, Id: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetCurrentProcessId: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSystemObjects2, Id: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSystemObjects2, Id: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetNumberThreads: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSystemObjects2, Number: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSystemObjects2, Number: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetTotalNumberThreads: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSystemObjects2, Total: ?*u32, LargestProcess: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSystemObjects2, Total: ?*u32, LargestProcess: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetThreadIdsByIndex: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSystemObjects2, Start: u32, Count: u32, Ids: ?[*]u32, SysIds: ?[*]u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSystemObjects2, Start: u32, Count: u32, Ids: ?[*]u32, SysIds: ?[*]u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetThreadIdByProcessor: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSystemObjects2, Processor: u32, Id: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSystemObjects2, Processor: u32, Id: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetCurrentThreadDataOffset: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSystemObjects2, Offset: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSystemObjects2, Offset: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetThreadIdByDataOffset: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSystemObjects2, Offset: u64, Id: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSystemObjects2, Offset: u64, Id: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetCurrentThreadTeb: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSystemObjects2, Offset: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSystemObjects2, Offset: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetThreadIdByTeb: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSystemObjects2, Offset: u64, Id: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSystemObjects2, Offset: u64, Id: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetCurrentThreadSystemId: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSystemObjects2, SysId: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSystemObjects2, SysId: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetThreadIdBySystemId: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSystemObjects2, SysId: u32, Id: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSystemObjects2, SysId: u32, Id: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetCurrentThreadHandle: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSystemObjects2, Handle: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSystemObjects2, Handle: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetThreadIdByHandle: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSystemObjects2, Handle: u64, Id: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSystemObjects2, Handle: u64, Id: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetNumberProcesses: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSystemObjects2, Number: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSystemObjects2, Number: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetProcessIdsByIndex: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSystemObjects2, Start: u32, Count: u32, Ids: ?[*]u32, SysIds: ?[*]u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSystemObjects2, Start: u32, Count: u32, Ids: ?[*]u32, SysIds: ?[*]u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetCurrentProcessDataOffset: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSystemObjects2, Offset: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSystemObjects2, Offset: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetProcessIdByDataOffset: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSystemObjects2, Offset: u64, Id: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSystemObjects2, Offset: u64, Id: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetCurrentProcessPeb: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSystemObjects2, Offset: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSystemObjects2, Offset: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetProcessIdByPeb: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSystemObjects2, Offset: u64, Id: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSystemObjects2, Offset: u64, Id: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetCurrentProcessSystemId: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSystemObjects2, SysId: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSystemObjects2, SysId: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetProcessIdBySystemId: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSystemObjects2, SysId: u32, Id: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSystemObjects2, SysId: u32, Id: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetCurrentProcessHandle: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSystemObjects2, Handle: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSystemObjects2, Handle: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetProcessIdByHandle: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSystemObjects2, Handle: u64, Id: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSystemObjects2, Handle: u64, Id: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetCurrentProcessExecutableName: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSystemObjects2, Buffer: ?[*:0]u8, BufferSize: u32, ExeSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSystemObjects2, Buffer: ?[*:0]u8, BufferSize: u32, ExeSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetCurrentProcessUpTime: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSystemObjects2, UpTime: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSystemObjects2, UpTime: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetImplicitThreadDataOffset: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSystemObjects2, Offset: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSystemObjects2, Offset: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetImplicitThreadDataOffset: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSystemObjects2, Offset: u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSystemObjects2, Offset: u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetImplicitProcessDataOffset: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSystemObjects2, Offset: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSystemObjects2, Offset: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetImplicitProcessDataOffset: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSystemObjects2, Offset: u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSystemObjects2, Offset: u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSystemObjects2_GetEventThread(self: *const T, Id: ?*u32) HRESULT { return @as(*const IDebugSystemObjects2.VTable, @ptrCast(self.vtable)).GetEventThread(@as(*const IDebugSystemObjects2, @ptrCast(self)), Id); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSystemObjects2_GetEventProcess(self: *const T, Id: ?*u32) HRESULT { return @as(*const IDebugSystemObjects2.VTable, @ptrCast(self.vtable)).GetEventProcess(@as(*const IDebugSystemObjects2, @ptrCast(self)), Id); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSystemObjects2_GetCurrentThreadId(self: *const T, Id: ?*u32) HRESULT { return @as(*const IDebugSystemObjects2.VTable, @ptrCast(self.vtable)).GetCurrentThreadId(@as(*const IDebugSystemObjects2, @ptrCast(self)), Id); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSystemObjects2_SetCurrentThreadId(self: *const T, Id: u32) HRESULT { return @as(*const IDebugSystemObjects2.VTable, @ptrCast(self.vtable)).SetCurrentThreadId(@as(*const IDebugSystemObjects2, @ptrCast(self)), Id); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSystemObjects2_GetCurrentProcessId(self: *const T, Id: ?*u32) HRESULT { return @as(*const IDebugSystemObjects2.VTable, @ptrCast(self.vtable)).GetCurrentProcessId(@as(*const IDebugSystemObjects2, @ptrCast(self)), Id); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSystemObjects2_SetCurrentProcessId(self: *const T, Id: u32) HRESULT { return @as(*const IDebugSystemObjects2.VTable, @ptrCast(self.vtable)).SetCurrentProcessId(@as(*const IDebugSystemObjects2, @ptrCast(self)), Id); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSystemObjects2_GetNumberThreads(self: *const T, Number: ?*u32) HRESULT { return @as(*const IDebugSystemObjects2.VTable, @ptrCast(self.vtable)).GetNumberThreads(@as(*const IDebugSystemObjects2, @ptrCast(self)), Number); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSystemObjects2_GetTotalNumberThreads(self: *const T, Total: ?*u32, LargestProcess: ?*u32) HRESULT { return @as(*const IDebugSystemObjects2.VTable, @ptrCast(self.vtable)).GetTotalNumberThreads(@as(*const IDebugSystemObjects2, @ptrCast(self)), Total, LargestProcess); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSystemObjects2_GetThreadIdsByIndex(self: *const T, Start: u32, Count: u32, Ids: ?[*]u32, SysIds: ?[*]u32) HRESULT { return @as(*const IDebugSystemObjects2.VTable, @ptrCast(self.vtable)).GetThreadIdsByIndex(@as(*const IDebugSystemObjects2, @ptrCast(self)), Start, Count, Ids, SysIds); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSystemObjects2_GetThreadIdByProcessor(self: *const T, Processor: u32, Id: ?*u32) HRESULT { return @as(*const IDebugSystemObjects2.VTable, @ptrCast(self.vtable)).GetThreadIdByProcessor(@as(*const IDebugSystemObjects2, @ptrCast(self)), Processor, Id); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSystemObjects2_GetCurrentThreadDataOffset(self: *const T, Offset: ?*u64) HRESULT { return @as(*const IDebugSystemObjects2.VTable, @ptrCast(self.vtable)).GetCurrentThreadDataOffset(@as(*const IDebugSystemObjects2, @ptrCast(self)), Offset); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSystemObjects2_GetThreadIdByDataOffset(self: *const T, Offset: u64, Id: ?*u32) HRESULT { return @as(*const IDebugSystemObjects2.VTable, @ptrCast(self.vtable)).GetThreadIdByDataOffset(@as(*const IDebugSystemObjects2, @ptrCast(self)), Offset, Id); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSystemObjects2_GetCurrentThreadTeb(self: *const T, Offset: ?*u64) HRESULT { return @as(*const IDebugSystemObjects2.VTable, @ptrCast(self.vtable)).GetCurrentThreadTeb(@as(*const IDebugSystemObjects2, @ptrCast(self)), Offset); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSystemObjects2_GetThreadIdByTeb(self: *const T, Offset: u64, Id: ?*u32) HRESULT { return @as(*const IDebugSystemObjects2.VTable, @ptrCast(self.vtable)).GetThreadIdByTeb(@as(*const IDebugSystemObjects2, @ptrCast(self)), Offset, Id); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSystemObjects2_GetCurrentThreadSystemId(self: *const T, SysId: ?*u32) HRESULT { return @as(*const IDebugSystemObjects2.VTable, @ptrCast(self.vtable)).GetCurrentThreadSystemId(@as(*const IDebugSystemObjects2, @ptrCast(self)), SysId); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSystemObjects2_GetThreadIdBySystemId(self: *const T, SysId: u32, Id: ?*u32) HRESULT { return @as(*const IDebugSystemObjects2.VTable, @ptrCast(self.vtable)).GetThreadIdBySystemId(@as(*const IDebugSystemObjects2, @ptrCast(self)), SysId, Id); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSystemObjects2_GetCurrentThreadHandle(self: *const T, Handle: ?*u64) HRESULT { return @as(*const IDebugSystemObjects2.VTable, @ptrCast(self.vtable)).GetCurrentThreadHandle(@as(*const IDebugSystemObjects2, @ptrCast(self)), Handle); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSystemObjects2_GetThreadIdByHandle(self: *const T, Handle: u64, Id: ?*u32) HRESULT { return @as(*const IDebugSystemObjects2.VTable, @ptrCast(self.vtable)).GetThreadIdByHandle(@as(*const IDebugSystemObjects2, @ptrCast(self)), Handle, Id); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSystemObjects2_GetNumberProcesses(self: *const T, Number: ?*u32) HRESULT { return @as(*const IDebugSystemObjects2.VTable, @ptrCast(self.vtable)).GetNumberProcesses(@as(*const IDebugSystemObjects2, @ptrCast(self)), Number); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSystemObjects2_GetProcessIdsByIndex(self: *const T, Start: u32, Count: u32, Ids: ?[*]u32, SysIds: ?[*]u32) HRESULT { return @as(*const IDebugSystemObjects2.VTable, @ptrCast(self.vtable)).GetProcessIdsByIndex(@as(*const IDebugSystemObjects2, @ptrCast(self)), Start, Count, Ids, SysIds); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSystemObjects2_GetCurrentProcessDataOffset(self: *const T, Offset: ?*u64) HRESULT { return @as(*const IDebugSystemObjects2.VTable, @ptrCast(self.vtable)).GetCurrentProcessDataOffset(@as(*const IDebugSystemObjects2, @ptrCast(self)), Offset); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSystemObjects2_GetProcessIdByDataOffset(self: *const T, Offset: u64, Id: ?*u32) HRESULT { return @as(*const IDebugSystemObjects2.VTable, @ptrCast(self.vtable)).GetProcessIdByDataOffset(@as(*const IDebugSystemObjects2, @ptrCast(self)), Offset, Id); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSystemObjects2_GetCurrentProcessPeb(self: *const T, Offset: ?*u64) HRESULT { return @as(*const IDebugSystemObjects2.VTable, @ptrCast(self.vtable)).GetCurrentProcessPeb(@as(*const IDebugSystemObjects2, @ptrCast(self)), Offset); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSystemObjects2_GetProcessIdByPeb(self: *const T, Offset: u64, Id: ?*u32) HRESULT { return @as(*const IDebugSystemObjects2.VTable, @ptrCast(self.vtable)).GetProcessIdByPeb(@as(*const IDebugSystemObjects2, @ptrCast(self)), Offset, Id); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSystemObjects2_GetCurrentProcessSystemId(self: *const T, SysId: ?*u32) HRESULT { return @as(*const IDebugSystemObjects2.VTable, @ptrCast(self.vtable)).GetCurrentProcessSystemId(@as(*const IDebugSystemObjects2, @ptrCast(self)), SysId); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSystemObjects2_GetProcessIdBySystemId(self: *const T, SysId: u32, Id: ?*u32) HRESULT { return @as(*const IDebugSystemObjects2.VTable, @ptrCast(self.vtable)).GetProcessIdBySystemId(@as(*const IDebugSystemObjects2, @ptrCast(self)), SysId, Id); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSystemObjects2_GetCurrentProcessHandle(self: *const T, Handle: ?*u64) HRESULT { return @as(*const IDebugSystemObjects2.VTable, @ptrCast(self.vtable)).GetCurrentProcessHandle(@as(*const IDebugSystemObjects2, @ptrCast(self)), Handle); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSystemObjects2_GetProcessIdByHandle(self: *const T, Handle: u64, Id: ?*u32) HRESULT { return @as(*const IDebugSystemObjects2.VTable, @ptrCast(self.vtable)).GetProcessIdByHandle(@as(*const IDebugSystemObjects2, @ptrCast(self)), Handle, Id); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSystemObjects2_GetCurrentProcessExecutableName(self: *const T, Buffer: ?[*:0]u8, BufferSize: u32, ExeSize: ?*u32) HRESULT { return @as(*const IDebugSystemObjects2.VTable, @ptrCast(self.vtable)).GetCurrentProcessExecutableName(@as(*const IDebugSystemObjects2, @ptrCast(self)), Buffer, BufferSize, ExeSize); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSystemObjects2_GetCurrentProcessUpTime(self: *const T, UpTime: ?*u32) HRESULT { return @as(*const IDebugSystemObjects2.VTable, @ptrCast(self.vtable)).GetCurrentProcessUpTime(@as(*const IDebugSystemObjects2, @ptrCast(self)), UpTime); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSystemObjects2_GetImplicitThreadDataOffset(self: *const T, Offset: ?*u64) HRESULT { return @as(*const IDebugSystemObjects2.VTable, @ptrCast(self.vtable)).GetImplicitThreadDataOffset(@as(*const IDebugSystemObjects2, @ptrCast(self)), Offset); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSystemObjects2_SetImplicitThreadDataOffset(self: *const T, Offset: u64) HRESULT { return @as(*const IDebugSystemObjects2.VTable, @ptrCast(self.vtable)).SetImplicitThreadDataOffset(@as(*const IDebugSystemObjects2, @ptrCast(self)), Offset); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSystemObjects2_GetImplicitProcessDataOffset(self: *const T, Offset: ?*u64) HRESULT { return @as(*const IDebugSystemObjects2.VTable, @ptrCast(self.vtable)).GetImplicitProcessDataOffset(@as(*const IDebugSystemObjects2, @ptrCast(self)), Offset); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSystemObjects2_SetImplicitProcessDataOffset(self: *const T, Offset: u64) HRESULT { return @as(*const IDebugSystemObjects2.VTable, @ptrCast(self.vtable)).SetImplicitProcessDataOffset(@as(*const IDebugSystemObjects2, @ptrCast(self)), Offset); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IDebugSystemObjects3_Value = Guid.initString("e9676e2f-e286-4ea3-b0f9-dfe5d9fc330e"); pub const IID_IDebugSystemObjects3 = &IID_IDebugSystemObjects3_Value; pub const IDebugSystemObjects3 = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, GetEventThread: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSystemObjects3, Id: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSystemObjects3, Id: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetEventProcess: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSystemObjects3, Id: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSystemObjects3, Id: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetCurrentThreadId: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSystemObjects3, Id: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSystemObjects3, Id: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetCurrentThreadId: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSystemObjects3, Id: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSystemObjects3, Id: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetCurrentProcessId: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSystemObjects3, Id: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSystemObjects3, Id: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetCurrentProcessId: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSystemObjects3, Id: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSystemObjects3, Id: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetNumberThreads: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSystemObjects3, Number: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSystemObjects3, Number: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetTotalNumberThreads: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSystemObjects3, Total: ?*u32, LargestProcess: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSystemObjects3, Total: ?*u32, LargestProcess: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetThreadIdsByIndex: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSystemObjects3, Start: u32, Count: u32, Ids: ?[*]u32, SysIds: ?[*]u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSystemObjects3, Start: u32, Count: u32, Ids: ?[*]u32, SysIds: ?[*]u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetThreadIdByProcessor: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSystemObjects3, Processor: u32, Id: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSystemObjects3, Processor: u32, Id: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetCurrentThreadDataOffset: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSystemObjects3, Offset: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSystemObjects3, Offset: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetThreadIdByDataOffset: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSystemObjects3, Offset: u64, Id: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSystemObjects3, Offset: u64, Id: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetCurrentThreadTeb: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSystemObjects3, Offset: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSystemObjects3, Offset: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetThreadIdByTeb: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSystemObjects3, Offset: u64, Id: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSystemObjects3, Offset: u64, Id: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetCurrentThreadSystemId: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSystemObjects3, SysId: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSystemObjects3, SysId: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetThreadIdBySystemId: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSystemObjects3, SysId: u32, Id: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSystemObjects3, SysId: u32, Id: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetCurrentThreadHandle: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSystemObjects3, Handle: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSystemObjects3, Handle: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetThreadIdByHandle: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSystemObjects3, Handle: u64, Id: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSystemObjects3, Handle: u64, Id: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetNumberProcesses: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSystemObjects3, Number: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSystemObjects3, Number: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetProcessIdsByIndex: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSystemObjects3, Start: u32, Count: u32, Ids: ?[*]u32, SysIds: ?[*]u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSystemObjects3, Start: u32, Count: u32, Ids: ?[*]u32, SysIds: ?[*]u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetCurrentProcessDataOffset: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSystemObjects3, Offset: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSystemObjects3, Offset: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetProcessIdByDataOffset: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSystemObjects3, Offset: u64, Id: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSystemObjects3, Offset: u64, Id: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetCurrentProcessPeb: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSystemObjects3, Offset: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSystemObjects3, Offset: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetProcessIdByPeb: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSystemObjects3, Offset: u64, Id: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSystemObjects3, Offset: u64, Id: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetCurrentProcessSystemId: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSystemObjects3, SysId: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSystemObjects3, SysId: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetProcessIdBySystemId: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSystemObjects3, SysId: u32, Id: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSystemObjects3, SysId: u32, Id: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetCurrentProcessHandle: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSystemObjects3, Handle: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSystemObjects3, Handle: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetProcessIdByHandle: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSystemObjects3, Handle: u64, Id: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSystemObjects3, Handle: u64, Id: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetCurrentProcessExecutableName: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSystemObjects3, Buffer: ?[*:0]u8, BufferSize: u32, ExeSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSystemObjects3, Buffer: ?[*:0]u8, BufferSize: u32, ExeSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetCurrentProcessUpTime: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSystemObjects3, UpTime: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSystemObjects3, UpTime: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetImplicitThreadDataOffset: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSystemObjects3, Offset: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSystemObjects3, Offset: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetImplicitThreadDataOffset: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSystemObjects3, Offset: u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSystemObjects3, Offset: u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetImplicitProcessDataOffset: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSystemObjects3, Offset: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSystemObjects3, Offset: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetImplicitProcessDataOffset: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSystemObjects3, Offset: u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSystemObjects3, Offset: u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetEventSystem: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSystemObjects3, Id: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSystemObjects3, Id: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetCurrentSystemId: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSystemObjects3, Id: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSystemObjects3, Id: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetCurrentSystemId: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSystemObjects3, Id: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSystemObjects3, Id: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetNumberSystems: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSystemObjects3, Number: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSystemObjects3, Number: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetSystemIdsByIndex: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSystemObjects3, Start: u32, Count: u32, Ids: [*]u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSystemObjects3, Start: u32, Count: u32, Ids: [*]u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetTotalNumberThreadsAndProcesses: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSystemObjects3, TotalThreads: ?*u32, TotalProcesses: ?*u32, LargestProcessThreads: ?*u32, LargestSystemThreads: ?*u32, LargestSystemProcesses: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSystemObjects3, TotalThreads: ?*u32, TotalProcesses: ?*u32, LargestProcessThreads: ?*u32, LargestSystemThreads: ?*u32, LargestSystemProcesses: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetCurrentSystemServer: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSystemObjects3, Server: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSystemObjects3, Server: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetSystemByServer: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSystemObjects3, Server: u64, Id: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSystemObjects3, Server: u64, Id: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetCurrentSystemServerName: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSystemObjects3, Buffer: ?[*:0]u8, BufferSize: u32, NameSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSystemObjects3, Buffer: ?[*:0]u8, BufferSize: u32, NameSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSystemObjects3_GetEventThread(self: *const T, Id: ?*u32) HRESULT { return @as(*const IDebugSystemObjects3.VTable, @ptrCast(self.vtable)).GetEventThread(@as(*const IDebugSystemObjects3, @ptrCast(self)), Id); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSystemObjects3_GetEventProcess(self: *const T, Id: ?*u32) HRESULT { return @as(*const IDebugSystemObjects3.VTable, @ptrCast(self.vtable)).GetEventProcess(@as(*const IDebugSystemObjects3, @ptrCast(self)), Id); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSystemObjects3_GetCurrentThreadId(self: *const T, Id: ?*u32) HRESULT { return @as(*const IDebugSystemObjects3.VTable, @ptrCast(self.vtable)).GetCurrentThreadId(@as(*const IDebugSystemObjects3, @ptrCast(self)), Id); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSystemObjects3_SetCurrentThreadId(self: *const T, Id: u32) HRESULT { return @as(*const IDebugSystemObjects3.VTable, @ptrCast(self.vtable)).SetCurrentThreadId(@as(*const IDebugSystemObjects3, @ptrCast(self)), Id); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSystemObjects3_GetCurrentProcessId(self: *const T, Id: ?*u32) HRESULT { return @as(*const IDebugSystemObjects3.VTable, @ptrCast(self.vtable)).GetCurrentProcessId(@as(*const IDebugSystemObjects3, @ptrCast(self)), Id); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSystemObjects3_SetCurrentProcessId(self: *const T, Id: u32) HRESULT { return @as(*const IDebugSystemObjects3.VTable, @ptrCast(self.vtable)).SetCurrentProcessId(@as(*const IDebugSystemObjects3, @ptrCast(self)), Id); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSystemObjects3_GetNumberThreads(self: *const T, Number: ?*u32) HRESULT { return @as(*const IDebugSystemObjects3.VTable, @ptrCast(self.vtable)).GetNumberThreads(@as(*const IDebugSystemObjects3, @ptrCast(self)), Number); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSystemObjects3_GetTotalNumberThreads(self: *const T, Total: ?*u32, LargestProcess: ?*u32) HRESULT { return @as(*const IDebugSystemObjects3.VTable, @ptrCast(self.vtable)).GetTotalNumberThreads(@as(*const IDebugSystemObjects3, @ptrCast(self)), Total, LargestProcess); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSystemObjects3_GetThreadIdsByIndex(self: *const T, Start: u32, Count: u32, Ids: ?[*]u32, SysIds: ?[*]u32) HRESULT { return @as(*const IDebugSystemObjects3.VTable, @ptrCast(self.vtable)).GetThreadIdsByIndex(@as(*const IDebugSystemObjects3, @ptrCast(self)), Start, Count, Ids, SysIds); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSystemObjects3_GetThreadIdByProcessor(self: *const T, Processor: u32, Id: ?*u32) HRESULT { return @as(*const IDebugSystemObjects3.VTable, @ptrCast(self.vtable)).GetThreadIdByProcessor(@as(*const IDebugSystemObjects3, @ptrCast(self)), Processor, Id); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSystemObjects3_GetCurrentThreadDataOffset(self: *const T, Offset: ?*u64) HRESULT { return @as(*const IDebugSystemObjects3.VTable, @ptrCast(self.vtable)).GetCurrentThreadDataOffset(@as(*const IDebugSystemObjects3, @ptrCast(self)), Offset); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSystemObjects3_GetThreadIdByDataOffset(self: *const T, Offset: u64, Id: ?*u32) HRESULT { return @as(*const IDebugSystemObjects3.VTable, @ptrCast(self.vtable)).GetThreadIdByDataOffset(@as(*const IDebugSystemObjects3, @ptrCast(self)), Offset, Id); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSystemObjects3_GetCurrentThreadTeb(self: *const T, Offset: ?*u64) HRESULT { return @as(*const IDebugSystemObjects3.VTable, @ptrCast(self.vtable)).GetCurrentThreadTeb(@as(*const IDebugSystemObjects3, @ptrCast(self)), Offset); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSystemObjects3_GetThreadIdByTeb(self: *const T, Offset: u64, Id: ?*u32) HRESULT { return @as(*const IDebugSystemObjects3.VTable, @ptrCast(self.vtable)).GetThreadIdByTeb(@as(*const IDebugSystemObjects3, @ptrCast(self)), Offset, Id); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSystemObjects3_GetCurrentThreadSystemId(self: *const T, SysId: ?*u32) HRESULT { return @as(*const IDebugSystemObjects3.VTable, @ptrCast(self.vtable)).GetCurrentThreadSystemId(@as(*const IDebugSystemObjects3, @ptrCast(self)), SysId); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSystemObjects3_GetThreadIdBySystemId(self: *const T, SysId: u32, Id: ?*u32) HRESULT { return @as(*const IDebugSystemObjects3.VTable, @ptrCast(self.vtable)).GetThreadIdBySystemId(@as(*const IDebugSystemObjects3, @ptrCast(self)), SysId, Id); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSystemObjects3_GetCurrentThreadHandle(self: *const T, Handle: ?*u64) HRESULT { return @as(*const IDebugSystemObjects3.VTable, @ptrCast(self.vtable)).GetCurrentThreadHandle(@as(*const IDebugSystemObjects3, @ptrCast(self)), Handle); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSystemObjects3_GetThreadIdByHandle(self: *const T, Handle: u64, Id: ?*u32) HRESULT { return @as(*const IDebugSystemObjects3.VTable, @ptrCast(self.vtable)).GetThreadIdByHandle(@as(*const IDebugSystemObjects3, @ptrCast(self)), Handle, Id); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSystemObjects3_GetNumberProcesses(self: *const T, Number: ?*u32) HRESULT { return @as(*const IDebugSystemObjects3.VTable, @ptrCast(self.vtable)).GetNumberProcesses(@as(*const IDebugSystemObjects3, @ptrCast(self)), Number); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSystemObjects3_GetProcessIdsByIndex(self: *const T, Start: u32, Count: u32, Ids: ?[*]u32, SysIds: ?[*]u32) HRESULT { return @as(*const IDebugSystemObjects3.VTable, @ptrCast(self.vtable)).GetProcessIdsByIndex(@as(*const IDebugSystemObjects3, @ptrCast(self)), Start, Count, Ids, SysIds); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSystemObjects3_GetCurrentProcessDataOffset(self: *const T, Offset: ?*u64) HRESULT { return @as(*const IDebugSystemObjects3.VTable, @ptrCast(self.vtable)).GetCurrentProcessDataOffset(@as(*const IDebugSystemObjects3, @ptrCast(self)), Offset); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSystemObjects3_GetProcessIdByDataOffset(self: *const T, Offset: u64, Id: ?*u32) HRESULT { return @as(*const IDebugSystemObjects3.VTable, @ptrCast(self.vtable)).GetProcessIdByDataOffset(@as(*const IDebugSystemObjects3, @ptrCast(self)), Offset, Id); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSystemObjects3_GetCurrentProcessPeb(self: *const T, Offset: ?*u64) HRESULT { return @as(*const IDebugSystemObjects3.VTable, @ptrCast(self.vtable)).GetCurrentProcessPeb(@as(*const IDebugSystemObjects3, @ptrCast(self)), Offset); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSystemObjects3_GetProcessIdByPeb(self: *const T, Offset: u64, Id: ?*u32) HRESULT { return @as(*const IDebugSystemObjects3.VTable, @ptrCast(self.vtable)).GetProcessIdByPeb(@as(*const IDebugSystemObjects3, @ptrCast(self)), Offset, Id); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSystemObjects3_GetCurrentProcessSystemId(self: *const T, SysId: ?*u32) HRESULT { return @as(*const IDebugSystemObjects3.VTable, @ptrCast(self.vtable)).GetCurrentProcessSystemId(@as(*const IDebugSystemObjects3, @ptrCast(self)), SysId); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSystemObjects3_GetProcessIdBySystemId(self: *const T, SysId: u32, Id: ?*u32) HRESULT { return @as(*const IDebugSystemObjects3.VTable, @ptrCast(self.vtable)).GetProcessIdBySystemId(@as(*const IDebugSystemObjects3, @ptrCast(self)), SysId, Id); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSystemObjects3_GetCurrentProcessHandle(self: *const T, Handle: ?*u64) HRESULT { return @as(*const IDebugSystemObjects3.VTable, @ptrCast(self.vtable)).GetCurrentProcessHandle(@as(*const IDebugSystemObjects3, @ptrCast(self)), Handle); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSystemObjects3_GetProcessIdByHandle(self: *const T, Handle: u64, Id: ?*u32) HRESULT { return @as(*const IDebugSystemObjects3.VTable, @ptrCast(self.vtable)).GetProcessIdByHandle(@as(*const IDebugSystemObjects3, @ptrCast(self)), Handle, Id); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSystemObjects3_GetCurrentProcessExecutableName(self: *const T, Buffer: ?[*:0]u8, BufferSize: u32, ExeSize: ?*u32) HRESULT { return @as(*const IDebugSystemObjects3.VTable, @ptrCast(self.vtable)).GetCurrentProcessExecutableName(@as(*const IDebugSystemObjects3, @ptrCast(self)), Buffer, BufferSize, ExeSize); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSystemObjects3_GetCurrentProcessUpTime(self: *const T, UpTime: ?*u32) HRESULT { return @as(*const IDebugSystemObjects3.VTable, @ptrCast(self.vtable)).GetCurrentProcessUpTime(@as(*const IDebugSystemObjects3, @ptrCast(self)), UpTime); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSystemObjects3_GetImplicitThreadDataOffset(self: *const T, Offset: ?*u64) HRESULT { return @as(*const IDebugSystemObjects3.VTable, @ptrCast(self.vtable)).GetImplicitThreadDataOffset(@as(*const IDebugSystemObjects3, @ptrCast(self)), Offset); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSystemObjects3_SetImplicitThreadDataOffset(self: *const T, Offset: u64) HRESULT { return @as(*const IDebugSystemObjects3.VTable, @ptrCast(self.vtable)).SetImplicitThreadDataOffset(@as(*const IDebugSystemObjects3, @ptrCast(self)), Offset); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSystemObjects3_GetImplicitProcessDataOffset(self: *const T, Offset: ?*u64) HRESULT { return @as(*const IDebugSystemObjects3.VTable, @ptrCast(self.vtable)).GetImplicitProcessDataOffset(@as(*const IDebugSystemObjects3, @ptrCast(self)), Offset); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSystemObjects3_SetImplicitProcessDataOffset(self: *const T, Offset: u64) HRESULT { return @as(*const IDebugSystemObjects3.VTable, @ptrCast(self.vtable)).SetImplicitProcessDataOffset(@as(*const IDebugSystemObjects3, @ptrCast(self)), Offset); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSystemObjects3_GetEventSystem(self: *const T, Id: ?*u32) HRESULT { return @as(*const IDebugSystemObjects3.VTable, @ptrCast(self.vtable)).GetEventSystem(@as(*const IDebugSystemObjects3, @ptrCast(self)), Id); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSystemObjects3_GetCurrentSystemId(self: *const T, Id: ?*u32) HRESULT { return @as(*const IDebugSystemObjects3.VTable, @ptrCast(self.vtable)).GetCurrentSystemId(@as(*const IDebugSystemObjects3, @ptrCast(self)), Id); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSystemObjects3_SetCurrentSystemId(self: *const T, Id: u32) HRESULT { return @as(*const IDebugSystemObjects3.VTable, @ptrCast(self.vtable)).SetCurrentSystemId(@as(*const IDebugSystemObjects3, @ptrCast(self)), Id); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSystemObjects3_GetNumberSystems(self: *const T, Number: ?*u32) HRESULT { return @as(*const IDebugSystemObjects3.VTable, @ptrCast(self.vtable)).GetNumberSystems(@as(*const IDebugSystemObjects3, @ptrCast(self)), Number); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSystemObjects3_GetSystemIdsByIndex(self: *const T, Start: u32, Count: u32, Ids: [*]u32) HRESULT { return @as(*const IDebugSystemObjects3.VTable, @ptrCast(self.vtable)).GetSystemIdsByIndex(@as(*const IDebugSystemObjects3, @ptrCast(self)), Start, Count, Ids); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSystemObjects3_GetTotalNumberThreadsAndProcesses(self: *const T, TotalThreads: ?*u32, TotalProcesses: ?*u32, LargestProcessThreads: ?*u32, LargestSystemThreads: ?*u32, LargestSystemProcesses: ?*u32) HRESULT { return @as(*const IDebugSystemObjects3.VTable, @ptrCast(self.vtable)).GetTotalNumberThreadsAndProcesses(@as(*const IDebugSystemObjects3, @ptrCast(self)), TotalThreads, TotalProcesses, LargestProcessThreads, LargestSystemThreads, LargestSystemProcesses); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSystemObjects3_GetCurrentSystemServer(self: *const T, Server: ?*u64) HRESULT { return @as(*const IDebugSystemObjects3.VTable, @ptrCast(self.vtable)).GetCurrentSystemServer(@as(*const IDebugSystemObjects3, @ptrCast(self)), Server); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSystemObjects3_GetSystemByServer(self: *const T, Server: u64, Id: ?*u32) HRESULT { return @as(*const IDebugSystemObjects3.VTable, @ptrCast(self.vtable)).GetSystemByServer(@as(*const IDebugSystemObjects3, @ptrCast(self)), Server, Id); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSystemObjects3_GetCurrentSystemServerName(self: *const T, Buffer: ?[*:0]u8, BufferSize: u32, NameSize: ?*u32) HRESULT { return @as(*const IDebugSystemObjects3.VTable, @ptrCast(self.vtable)).GetCurrentSystemServerName(@as(*const IDebugSystemObjects3, @ptrCast(self)), Buffer, BufferSize, NameSize); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IDebugSystemObjects4_Value = Guid.initString("489468e6-7d0f-4af5-87ab-25207454d553"); pub const IID_IDebugSystemObjects4 = &IID_IDebugSystemObjects4_Value; pub const IDebugSystemObjects4 = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, GetEventThread: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSystemObjects4, Id: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSystemObjects4, Id: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetEventProcess: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSystemObjects4, Id: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSystemObjects4, Id: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetCurrentThreadId: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSystemObjects4, Id: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSystemObjects4, Id: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetCurrentThreadId: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSystemObjects4, Id: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSystemObjects4, Id: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetCurrentProcessId: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSystemObjects4, Id: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSystemObjects4, Id: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetCurrentProcessId: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSystemObjects4, Id: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSystemObjects4, Id: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetNumberThreads: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSystemObjects4, Number: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSystemObjects4, Number: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetTotalNumberThreads: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSystemObjects4, Total: ?*u32, LargestProcess: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSystemObjects4, Total: ?*u32, LargestProcess: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetThreadIdsByIndex: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSystemObjects4, Start: u32, Count: u32, Ids: ?[*]u32, SysIds: ?[*]u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSystemObjects4, Start: u32, Count: u32, Ids: ?[*]u32, SysIds: ?[*]u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetThreadIdByProcessor: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSystemObjects4, Processor: u32, Id: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSystemObjects4, Processor: u32, Id: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetCurrentThreadDataOffset: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSystemObjects4, Offset: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSystemObjects4, Offset: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetThreadIdByDataOffset: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSystemObjects4, Offset: u64, Id: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSystemObjects4, Offset: u64, Id: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetCurrentThreadTeb: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSystemObjects4, Offset: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSystemObjects4, Offset: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetThreadIdByTeb: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSystemObjects4, Offset: u64, Id: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSystemObjects4, Offset: u64, Id: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetCurrentThreadSystemId: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSystemObjects4, SysId: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSystemObjects4, SysId: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetThreadIdBySystemId: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSystemObjects4, SysId: u32, Id: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSystemObjects4, SysId: u32, Id: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetCurrentThreadHandle: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSystemObjects4, Handle: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSystemObjects4, Handle: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetThreadIdByHandle: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSystemObjects4, Handle: u64, Id: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSystemObjects4, Handle: u64, Id: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetNumberProcesses: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSystemObjects4, Number: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSystemObjects4, Number: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetProcessIdsByIndex: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSystemObjects4, Start: u32, Count: u32, Ids: ?[*]u32, SysIds: ?[*]u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSystemObjects4, Start: u32, Count: u32, Ids: ?[*]u32, SysIds: ?[*]u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetCurrentProcessDataOffset: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSystemObjects4, Offset: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSystemObjects4, Offset: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetProcessIdByDataOffset: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSystemObjects4, Offset: u64, Id: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSystemObjects4, Offset: u64, Id: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetCurrentProcessPeb: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSystemObjects4, Offset: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSystemObjects4, Offset: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetProcessIdByPeb: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSystemObjects4, Offset: u64, Id: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSystemObjects4, Offset: u64, Id: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetCurrentProcessSystemId: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSystemObjects4, SysId: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSystemObjects4, SysId: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetProcessIdBySystemId: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSystemObjects4, SysId: u32, Id: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSystemObjects4, SysId: u32, Id: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetCurrentProcessHandle: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSystemObjects4, Handle: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSystemObjects4, Handle: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetProcessIdByHandle: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSystemObjects4, Handle: u64, Id: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSystemObjects4, Handle: u64, Id: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetCurrentProcessExecutableName: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSystemObjects4, Buffer: ?[*:0]u8, BufferSize: u32, ExeSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSystemObjects4, Buffer: ?[*:0]u8, BufferSize: u32, ExeSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetCurrentProcessUpTime: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSystemObjects4, UpTime: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSystemObjects4, UpTime: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetImplicitThreadDataOffset: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSystemObjects4, Offset: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSystemObjects4, Offset: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetImplicitThreadDataOffset: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSystemObjects4, Offset: u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSystemObjects4, Offset: u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetImplicitProcessDataOffset: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSystemObjects4, Offset: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSystemObjects4, Offset: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetImplicitProcessDataOffset: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSystemObjects4, Offset: u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSystemObjects4, Offset: u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetEventSystem: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSystemObjects4, Id: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSystemObjects4, Id: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetCurrentSystemId: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSystemObjects4, Id: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSystemObjects4, Id: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetCurrentSystemId: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSystemObjects4, Id: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSystemObjects4, Id: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetNumberSystems: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSystemObjects4, Number: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSystemObjects4, Number: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetSystemIdsByIndex: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSystemObjects4, Start: u32, Count: u32, Ids: [*]u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSystemObjects4, Start: u32, Count: u32, Ids: [*]u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetTotalNumberThreadsAndProcesses: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSystemObjects4, TotalThreads: ?*u32, TotalProcesses: ?*u32, LargestProcessThreads: ?*u32, LargestSystemThreads: ?*u32, LargestSystemProcesses: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSystemObjects4, TotalThreads: ?*u32, TotalProcesses: ?*u32, LargestProcessThreads: ?*u32, LargestSystemThreads: ?*u32, LargestSystemProcesses: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetCurrentSystemServer: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSystemObjects4, Server: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSystemObjects4, Server: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetSystemByServer: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSystemObjects4, Server: u64, Id: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSystemObjects4, Server: u64, Id: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetCurrentSystemServerName: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSystemObjects4, Buffer: ?[*:0]u8, BufferSize: u32, NameSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSystemObjects4, Buffer: ?[*:0]u8, BufferSize: u32, NameSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetCurrentProcessExecutableNameWide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSystemObjects4, Buffer: ?[*:0]u16, BufferSize: u32, ExeSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSystemObjects4, Buffer: ?[*:0]u16, BufferSize: u32, ExeSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetCurrentSystemServerNameWide: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSystemObjects4, Buffer: ?[*:0]u16, BufferSize: u32, NameSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSystemObjects4, Buffer: ?[*:0]u16, BufferSize: u32, NameSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSystemObjects4_GetEventThread(self: *const T, Id: ?*u32) HRESULT { return @as(*const IDebugSystemObjects4.VTable, @ptrCast(self.vtable)).GetEventThread(@as(*const IDebugSystemObjects4, @ptrCast(self)), Id); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSystemObjects4_GetEventProcess(self: *const T, Id: ?*u32) HRESULT { return @as(*const IDebugSystemObjects4.VTable, @ptrCast(self.vtable)).GetEventProcess(@as(*const IDebugSystemObjects4, @ptrCast(self)), Id); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSystemObjects4_GetCurrentThreadId(self: *const T, Id: ?*u32) HRESULT { return @as(*const IDebugSystemObjects4.VTable, @ptrCast(self.vtable)).GetCurrentThreadId(@as(*const IDebugSystemObjects4, @ptrCast(self)), Id); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSystemObjects4_SetCurrentThreadId(self: *const T, Id: u32) HRESULT { return @as(*const IDebugSystemObjects4.VTable, @ptrCast(self.vtable)).SetCurrentThreadId(@as(*const IDebugSystemObjects4, @ptrCast(self)), Id); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSystemObjects4_GetCurrentProcessId(self: *const T, Id: ?*u32) HRESULT { return @as(*const IDebugSystemObjects4.VTable, @ptrCast(self.vtable)).GetCurrentProcessId(@as(*const IDebugSystemObjects4, @ptrCast(self)), Id); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSystemObjects4_SetCurrentProcessId(self: *const T, Id: u32) HRESULT { return @as(*const IDebugSystemObjects4.VTable, @ptrCast(self.vtable)).SetCurrentProcessId(@as(*const IDebugSystemObjects4, @ptrCast(self)), Id); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSystemObjects4_GetNumberThreads(self: *const T, Number: ?*u32) HRESULT { return @as(*const IDebugSystemObjects4.VTable, @ptrCast(self.vtable)).GetNumberThreads(@as(*const IDebugSystemObjects4, @ptrCast(self)), Number); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSystemObjects4_GetTotalNumberThreads(self: *const T, Total: ?*u32, LargestProcess: ?*u32) HRESULT { return @as(*const IDebugSystemObjects4.VTable, @ptrCast(self.vtable)).GetTotalNumberThreads(@as(*const IDebugSystemObjects4, @ptrCast(self)), Total, LargestProcess); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSystemObjects4_GetThreadIdsByIndex(self: *const T, Start: u32, Count: u32, Ids: ?[*]u32, SysIds: ?[*]u32) HRESULT { return @as(*const IDebugSystemObjects4.VTable, @ptrCast(self.vtable)).GetThreadIdsByIndex(@as(*const IDebugSystemObjects4, @ptrCast(self)), Start, Count, Ids, SysIds); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSystemObjects4_GetThreadIdByProcessor(self: *const T, Processor: u32, Id: ?*u32) HRESULT { return @as(*const IDebugSystemObjects4.VTable, @ptrCast(self.vtable)).GetThreadIdByProcessor(@as(*const IDebugSystemObjects4, @ptrCast(self)), Processor, Id); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSystemObjects4_GetCurrentThreadDataOffset(self: *const T, Offset: ?*u64) HRESULT { return @as(*const IDebugSystemObjects4.VTable, @ptrCast(self.vtable)).GetCurrentThreadDataOffset(@as(*const IDebugSystemObjects4, @ptrCast(self)), Offset); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSystemObjects4_GetThreadIdByDataOffset(self: *const T, Offset: u64, Id: ?*u32) HRESULT { return @as(*const IDebugSystemObjects4.VTable, @ptrCast(self.vtable)).GetThreadIdByDataOffset(@as(*const IDebugSystemObjects4, @ptrCast(self)), Offset, Id); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSystemObjects4_GetCurrentThreadTeb(self: *const T, Offset: ?*u64) HRESULT { return @as(*const IDebugSystemObjects4.VTable, @ptrCast(self.vtable)).GetCurrentThreadTeb(@as(*const IDebugSystemObjects4, @ptrCast(self)), Offset); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSystemObjects4_GetThreadIdByTeb(self: *const T, Offset: u64, Id: ?*u32) HRESULT { return @as(*const IDebugSystemObjects4.VTable, @ptrCast(self.vtable)).GetThreadIdByTeb(@as(*const IDebugSystemObjects4, @ptrCast(self)), Offset, Id); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSystemObjects4_GetCurrentThreadSystemId(self: *const T, SysId: ?*u32) HRESULT { return @as(*const IDebugSystemObjects4.VTable, @ptrCast(self.vtable)).GetCurrentThreadSystemId(@as(*const IDebugSystemObjects4, @ptrCast(self)), SysId); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSystemObjects4_GetThreadIdBySystemId(self: *const T, SysId: u32, Id: ?*u32) HRESULT { return @as(*const IDebugSystemObjects4.VTable, @ptrCast(self.vtable)).GetThreadIdBySystemId(@as(*const IDebugSystemObjects4, @ptrCast(self)), SysId, Id); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSystemObjects4_GetCurrentThreadHandle(self: *const T, Handle: ?*u64) HRESULT { return @as(*const IDebugSystemObjects4.VTable, @ptrCast(self.vtable)).GetCurrentThreadHandle(@as(*const IDebugSystemObjects4, @ptrCast(self)), Handle); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSystemObjects4_GetThreadIdByHandle(self: *const T, Handle: u64, Id: ?*u32) HRESULT { return @as(*const IDebugSystemObjects4.VTable, @ptrCast(self.vtable)).GetThreadIdByHandle(@as(*const IDebugSystemObjects4, @ptrCast(self)), Handle, Id); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSystemObjects4_GetNumberProcesses(self: *const T, Number: ?*u32) HRESULT { return @as(*const IDebugSystemObjects4.VTable, @ptrCast(self.vtable)).GetNumberProcesses(@as(*const IDebugSystemObjects4, @ptrCast(self)), Number); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSystemObjects4_GetProcessIdsByIndex(self: *const T, Start: u32, Count: u32, Ids: ?[*]u32, SysIds: ?[*]u32) HRESULT { return @as(*const IDebugSystemObjects4.VTable, @ptrCast(self.vtable)).GetProcessIdsByIndex(@as(*const IDebugSystemObjects4, @ptrCast(self)), Start, Count, Ids, SysIds); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSystemObjects4_GetCurrentProcessDataOffset(self: *const T, Offset: ?*u64) HRESULT { return @as(*const IDebugSystemObjects4.VTable, @ptrCast(self.vtable)).GetCurrentProcessDataOffset(@as(*const IDebugSystemObjects4, @ptrCast(self)), Offset); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSystemObjects4_GetProcessIdByDataOffset(self: *const T, Offset: u64, Id: ?*u32) HRESULT { return @as(*const IDebugSystemObjects4.VTable, @ptrCast(self.vtable)).GetProcessIdByDataOffset(@as(*const IDebugSystemObjects4, @ptrCast(self)), Offset, Id); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSystemObjects4_GetCurrentProcessPeb(self: *const T, Offset: ?*u64) HRESULT { return @as(*const IDebugSystemObjects4.VTable, @ptrCast(self.vtable)).GetCurrentProcessPeb(@as(*const IDebugSystemObjects4, @ptrCast(self)), Offset); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSystemObjects4_GetProcessIdByPeb(self: *const T, Offset: u64, Id: ?*u32) HRESULT { return @as(*const IDebugSystemObjects4.VTable, @ptrCast(self.vtable)).GetProcessIdByPeb(@as(*const IDebugSystemObjects4, @ptrCast(self)), Offset, Id); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSystemObjects4_GetCurrentProcessSystemId(self: *const T, SysId: ?*u32) HRESULT { return @as(*const IDebugSystemObjects4.VTable, @ptrCast(self.vtable)).GetCurrentProcessSystemId(@as(*const IDebugSystemObjects4, @ptrCast(self)), SysId); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSystemObjects4_GetProcessIdBySystemId(self: *const T, SysId: u32, Id: ?*u32) HRESULT { return @as(*const IDebugSystemObjects4.VTable, @ptrCast(self.vtable)).GetProcessIdBySystemId(@as(*const IDebugSystemObjects4, @ptrCast(self)), SysId, Id); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSystemObjects4_GetCurrentProcessHandle(self: *const T, Handle: ?*u64) HRESULT { return @as(*const IDebugSystemObjects4.VTable, @ptrCast(self.vtable)).GetCurrentProcessHandle(@as(*const IDebugSystemObjects4, @ptrCast(self)), Handle); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSystemObjects4_GetProcessIdByHandle(self: *const T, Handle: u64, Id: ?*u32) HRESULT { return @as(*const IDebugSystemObjects4.VTable, @ptrCast(self.vtable)).GetProcessIdByHandle(@as(*const IDebugSystemObjects4, @ptrCast(self)), Handle, Id); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSystemObjects4_GetCurrentProcessExecutableName(self: *const T, Buffer: ?[*:0]u8, BufferSize: u32, ExeSize: ?*u32) HRESULT { return @as(*const IDebugSystemObjects4.VTable, @ptrCast(self.vtable)).GetCurrentProcessExecutableName(@as(*const IDebugSystemObjects4, @ptrCast(self)), Buffer, BufferSize, ExeSize); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSystemObjects4_GetCurrentProcessUpTime(self: *const T, UpTime: ?*u32) HRESULT { return @as(*const IDebugSystemObjects4.VTable, @ptrCast(self.vtable)).GetCurrentProcessUpTime(@as(*const IDebugSystemObjects4, @ptrCast(self)), UpTime); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSystemObjects4_GetImplicitThreadDataOffset(self: *const T, Offset: ?*u64) HRESULT { return @as(*const IDebugSystemObjects4.VTable, @ptrCast(self.vtable)).GetImplicitThreadDataOffset(@as(*const IDebugSystemObjects4, @ptrCast(self)), Offset); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSystemObjects4_SetImplicitThreadDataOffset(self: *const T, Offset: u64) HRESULT { return @as(*const IDebugSystemObjects4.VTable, @ptrCast(self.vtable)).SetImplicitThreadDataOffset(@as(*const IDebugSystemObjects4, @ptrCast(self)), Offset); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSystemObjects4_GetImplicitProcessDataOffset(self: *const T, Offset: ?*u64) HRESULT { return @as(*const IDebugSystemObjects4.VTable, @ptrCast(self.vtable)).GetImplicitProcessDataOffset(@as(*const IDebugSystemObjects4, @ptrCast(self)), Offset); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSystemObjects4_SetImplicitProcessDataOffset(self: *const T, Offset: u64) HRESULT { return @as(*const IDebugSystemObjects4.VTable, @ptrCast(self.vtable)).SetImplicitProcessDataOffset(@as(*const IDebugSystemObjects4, @ptrCast(self)), Offset); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSystemObjects4_GetEventSystem(self: *const T, Id: ?*u32) HRESULT { return @as(*const IDebugSystemObjects4.VTable, @ptrCast(self.vtable)).GetEventSystem(@as(*const IDebugSystemObjects4, @ptrCast(self)), Id); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSystemObjects4_GetCurrentSystemId(self: *const T, Id: ?*u32) HRESULT { return @as(*const IDebugSystemObjects4.VTable, @ptrCast(self.vtable)).GetCurrentSystemId(@as(*const IDebugSystemObjects4, @ptrCast(self)), Id); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSystemObjects4_SetCurrentSystemId(self: *const T, Id: u32) HRESULT { return @as(*const IDebugSystemObjects4.VTable, @ptrCast(self.vtable)).SetCurrentSystemId(@as(*const IDebugSystemObjects4, @ptrCast(self)), Id); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSystemObjects4_GetNumberSystems(self: *const T, Number: ?*u32) HRESULT { return @as(*const IDebugSystemObjects4.VTable, @ptrCast(self.vtable)).GetNumberSystems(@as(*const IDebugSystemObjects4, @ptrCast(self)), Number); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSystemObjects4_GetSystemIdsByIndex(self: *const T, Start: u32, Count: u32, Ids: [*]u32) HRESULT { return @as(*const IDebugSystemObjects4.VTable, @ptrCast(self.vtable)).GetSystemIdsByIndex(@as(*const IDebugSystemObjects4, @ptrCast(self)), Start, Count, Ids); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSystemObjects4_GetTotalNumberThreadsAndProcesses(self: *const T, TotalThreads: ?*u32, TotalProcesses: ?*u32, LargestProcessThreads: ?*u32, LargestSystemThreads: ?*u32, LargestSystemProcesses: ?*u32) HRESULT { return @as(*const IDebugSystemObjects4.VTable, @ptrCast(self.vtable)).GetTotalNumberThreadsAndProcesses(@as(*const IDebugSystemObjects4, @ptrCast(self)), TotalThreads, TotalProcesses, LargestProcessThreads, LargestSystemThreads, LargestSystemProcesses); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSystemObjects4_GetCurrentSystemServer(self: *const T, Server: ?*u64) HRESULT { return @as(*const IDebugSystemObjects4.VTable, @ptrCast(self.vtable)).GetCurrentSystemServer(@as(*const IDebugSystemObjects4, @ptrCast(self)), Server); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSystemObjects4_GetSystemByServer(self: *const T, Server: u64, Id: ?*u32) HRESULT { return @as(*const IDebugSystemObjects4.VTable, @ptrCast(self.vtable)).GetSystemByServer(@as(*const IDebugSystemObjects4, @ptrCast(self)), Server, Id); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSystemObjects4_GetCurrentSystemServerName(self: *const T, Buffer: ?[*:0]u8, BufferSize: u32, NameSize: ?*u32) HRESULT { return @as(*const IDebugSystemObjects4.VTable, @ptrCast(self.vtable)).GetCurrentSystemServerName(@as(*const IDebugSystemObjects4, @ptrCast(self)), Buffer, BufferSize, NameSize); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSystemObjects4_GetCurrentProcessExecutableNameWide(self: *const T, Buffer: ?[*:0]u16, BufferSize: u32, ExeSize: ?*u32) HRESULT { return @as(*const IDebugSystemObjects4.VTable, @ptrCast(self.vtable)).GetCurrentProcessExecutableNameWide(@as(*const IDebugSystemObjects4, @ptrCast(self)), Buffer, BufferSize, ExeSize); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSystemObjects4_GetCurrentSystemServerNameWide(self: *const T, Buffer: ?[*:0]u16, BufferSize: u32, NameSize: ?*u32) HRESULT { return @as(*const IDebugSystemObjects4.VTable, @ptrCast(self.vtable)).GetCurrentSystemServerNameWide(@as(*const IDebugSystemObjects4, @ptrCast(self)), Buffer, BufferSize, NameSize); } }; } pub usingnamespace MethodMixin(@This()); }; pub const PDEBUG_EXTENSION_INITIALIZE = switch (@import("builtin").zig_backend) { .stage1 => fn ( Version: ?*u32, Flags: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( Version: ?*u32, Flags: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }; pub const PDEBUG_EXTENSION_UNINITIALIZE = switch (@import("builtin").zig_backend) { .stage1 => fn () callconv(@import("std").os.windows.WINAPI) void, else => *const fn () callconv(@import("std").os.windows.WINAPI) void, }; pub const PDEBUG_EXTENSION_CANUNLOAD = switch (@import("builtin").zig_backend) { .stage1 => fn () callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn () callconv(@import("std").os.windows.WINAPI) HRESULT, }; pub const PDEBUG_EXTENSION_UNLOAD = switch (@import("builtin").zig_backend) { .stage1 => fn () callconv(@import("std").os.windows.WINAPI) void, else => *const fn () callconv(@import("std").os.windows.WINAPI) void, }; pub const PDEBUG_EXTENSION_NOTIFY = switch (@import("builtin").zig_backend) { .stage1 => fn ( Notify: u32, Argument: u64, ) callconv(@import("std").os.windows.WINAPI) void, else => *const fn ( Notify: u32, Argument: u64, ) callconv(@import("std").os.windows.WINAPI) void, }; pub const PDEBUG_EXTENSION_CALL = switch (@import("builtin").zig_backend) { .stage1 => fn ( Client: ?*IDebugClient, Args: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( Client: ?*IDebugClient, Args: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }; pub const PDEBUG_EXTENSION_KNOWN_STRUCT = switch (@import("builtin").zig_backend) { .stage1 => fn ( Flags: u32, Offset: u64, TypeName: ?PSTR, Buffer: ?[*:0]u8, BufferChars: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( Flags: u32, Offset: u64, TypeName: ?PSTR, Buffer: ?[*:0]u8, BufferChars: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }; pub const PDEBUG_EXTENSION_KNOWN_STRUCT_EX = switch (@import("builtin").zig_backend) { .stage1 => fn ( Client: ?*IDebugClient, Flags: u32, Offset: u64, TypeName: ?[*:0]const u8, Buffer: ?[*:0]u8, BufferChars: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( Client: ?*IDebugClient, Flags: u32, Offset: u64, TypeName: ?[*:0]const u8, Buffer: ?[*:0]u8, BufferChars: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }; pub const PDEBUG_EXTENSION_QUERY_VALUE_NAMES = switch (@import("builtin").zig_backend) { .stage1 => fn ( Client: ?*IDebugClient, Flags: u32, Buffer: [*:0]u16, BufferChars: u32, BufferNeeded: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( Client: ?*IDebugClient, Flags: u32, Buffer: [*:0]u16, BufferChars: u32, BufferNeeded: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }; pub const PDEBUG_EXTENSION_PROVIDE_VALUE = switch (@import("builtin").zig_backend) { .stage1 => fn ( Client: ?*IDebugClient, Flags: u32, Name: ?[*:0]const u16, Value: ?*u64, TypeModBase: ?*u64, TypeId: ?*u32, TypeFlags: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( Client: ?*IDebugClient, Flags: u32, Name: ?[*:0]const u16, Value: ?*u64, TypeModBase: ?*u64, TypeId: ?*u32, TypeFlags: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }; pub const PDEBUG_STACK_PROVIDER_BEGINTHREADSTACKRECONSTRUCTION = switch (@import("builtin").zig_backend) { .stage1 => fn ( StreamType: u32, MiniDumpStreamBuffer: [*]u8, BufferSize: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( StreamType: u32, MiniDumpStreamBuffer: [*]u8, BufferSize: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }; pub const PDEBUG_STACK_PROVIDER_RECONSTRUCTSTACK = switch (@import("builtin").zig_backend) { .stage1 => fn ( SystemThreadId: u32, NativeFrames: [*]DEBUG_STACK_FRAME_EX, CountNativeFrames: u32, StackSymFrames: ?*?*STACK_SYM_FRAME_INFO, StackSymFramesFilled: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( SystemThreadId: u32, NativeFrames: [*]DEBUG_STACK_FRAME_EX, CountNativeFrames: u32, StackSymFrames: ?*?*STACK_SYM_FRAME_INFO, StackSymFramesFilled: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }; pub const PDEBUG_STACK_PROVIDER_FREESTACKSYMFRAMES = switch (@import("builtin").zig_backend) { .stage1 => fn ( StackSymFrames: ?*STACK_SYM_FRAME_INFO, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( StackSymFrames: ?*STACK_SYM_FRAME_INFO, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }; pub const PDEBUG_STACK_PROVIDER_ENDTHREADSTACKRECONSTRUCTION = switch (@import("builtin").zig_backend) { .stage1 => fn () callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn () callconv(@import("std").os.windows.WINAPI) HRESULT, }; pub const DebugBaseEventCallbacks = extern struct { pub const VTable = extern struct { base: IDebugEventCallbacks.VTable, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IDebugEventCallbacks.MethodMixin(T); }; } pub usingnamespace MethodMixin(@This()); }; pub const DebugBaseEventCallbacksWide = extern struct { pub const VTable = extern struct { base: IDebugEventCallbacksWide.VTable, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IDebugEventCallbacksWide.MethodMixin(T); }; } pub usingnamespace MethodMixin(@This()); }; pub const Location = extern struct { HostDefined: u64, Offset: u64, }; pub const ModelObjectKind = enum(i32) { PropertyAccessor = 0, Context = 1, TargetObject = 2, TargetObjectReference = 3, Synthetic = 4, NoValue = 5, Error = 6, Intrinsic = 7, Method = 8, KeyReference = 9, }; pub const ObjectPropertyAccessor = ModelObjectKind.PropertyAccessor; pub const ObjectContext = ModelObjectKind.Context; pub const ObjectTargetObject = ModelObjectKind.TargetObject; pub const ObjectTargetObjectReference = ModelObjectKind.TargetObjectReference; pub const ObjectSynthetic = ModelObjectKind.Synthetic; pub const ObjectNoValue = ModelObjectKind.NoValue; pub const ObjectError = ModelObjectKind.Error; pub const ObjectIntrinsic = ModelObjectKind.Intrinsic; pub const ObjectMethod = ModelObjectKind.Method; pub const ObjectKeyReference = ModelObjectKind.KeyReference; pub const SymbolKind = enum(i32) { l = 0, Module = 1, Type = 2, Field = 3, Constant = 4, Data = 5, BaseClass = 6, Public = 7, Function = 8, }; pub const Symbol = SymbolKind.l; pub const SymbolModule = SymbolKind.Module; pub const SymbolType = SymbolKind.Type; pub const SymbolField = SymbolKind.Field; pub const SymbolConstant = SymbolKind.Constant; pub const SymbolData = SymbolKind.Data; pub const SymbolBaseClass = SymbolKind.BaseClass; pub const SymbolPublic = SymbolKind.Public; pub const SymbolFunction = SymbolKind.Function; pub const TypeKind = enum(i32) { UDT = 0, Pointer = 1, MemberPointer = 2, Array = 3, Function = 4, Typedef = 5, Enum = 6, Intrinsic = 7, ExtendedArray = 8, }; pub const TypeUDT = TypeKind.UDT; pub const TypePointer = TypeKind.Pointer; pub const TypeMemberPointer = TypeKind.MemberPointer; pub const TypeArray = TypeKind.Array; pub const TypeFunction = TypeKind.Function; pub const TypeTypedef = TypeKind.Typedef; pub const TypeEnum = TypeKind.Enum; pub const TypeIntrinsic = TypeKind.Intrinsic; pub const TypeExtendedArray = TypeKind.ExtendedArray; pub const IntrinsicKind = enum(i32) { Void = 0, Bool = 1, Char = 2, WChar = 3, Int = 4, UInt = 5, Long = 6, ULong = 7, Float = 8, HRESULT = 9, Char16 = 10, Char32 = 11, }; pub const IntrinsicVoid = IntrinsicKind.Void; pub const IntrinsicBool = IntrinsicKind.Bool; pub const IntrinsicChar = IntrinsicKind.Char; pub const IntrinsicWChar = IntrinsicKind.WChar; pub const IntrinsicInt = IntrinsicKind.Int; pub const IntrinsicUInt = IntrinsicKind.UInt; pub const IntrinsicLong = IntrinsicKind.Long; pub const IntrinsicULong = IntrinsicKind.ULong; pub const IntrinsicFloat = IntrinsicKind.Float; pub const IntrinsicHRESULT = IntrinsicKind.HRESULT; pub const IntrinsicChar16 = IntrinsicKind.Char16; pub const IntrinsicChar32 = IntrinsicKind.Char32; pub const PointerKind = enum(i32) { Standard = 0, Reference = 1, RValueReference = 2, CXHat = 3, ManagedReference = 4, }; pub const PointerStandard = PointerKind.Standard; pub const PointerReference = PointerKind.Reference; pub const PointerRValueReference = PointerKind.RValueReference; pub const PointerCXHat = PointerKind.CXHat; pub const PointerManagedReference = PointerKind.ManagedReference; pub const CallingConventionKind = enum(i32) { Unknown = 0, CDecl = 1, FastCall = 2, StdCall = 3, SysCall = 4, ThisCall = 5, }; pub const CallingConventionUnknown = CallingConventionKind.Unknown; pub const CallingConventionCDecl = CallingConventionKind.CDecl; pub const CallingConventionFastCall = CallingConventionKind.FastCall; pub const CallingConventionStdCall = CallingConventionKind.StdCall; pub const CallingConventionSysCall = CallingConventionKind.SysCall; pub const CallingConventionThisCall = CallingConventionKind.ThisCall; pub const LocationKind = enum(i32) { Member = 0, Static = 1, Constant = 2, None = 3, }; pub const LocationMember = LocationKind.Member; pub const LocationStatic = LocationKind.Static; pub const LocationConstant = LocationKind.Constant; pub const LocationNone = LocationKind.None; pub const PreferredFormat = enum(i32) { None = 0, SingleCharacter = 1, QuotedString = 2, String = 3, QuotedUnicodeString = 4, UnicodeString = 5, QuotedUTF8String = 6, UTF8String = 7, BSTRString = 8, QuotedHString = 9, HString = 10, Raw = 11, EnumNameOnly = 12, EscapedStringWithQuote = 13, UTF32String = 14, QuotedUTF32String = 15, }; pub const FormatNone = PreferredFormat.None; pub const FormatSingleCharacter = PreferredFormat.SingleCharacter; pub const FormatQuotedString = PreferredFormat.QuotedString; pub const FormatString = PreferredFormat.String; pub const FormatQuotedUnicodeString = PreferredFormat.QuotedUnicodeString; pub const FormatUnicodeString = PreferredFormat.UnicodeString; pub const FormatQuotedUTF8String = PreferredFormat.QuotedUTF8String; pub const FormatUTF8String = PreferredFormat.UTF8String; pub const FormatBSTRString = PreferredFormat.BSTRString; pub const FormatQuotedHString = PreferredFormat.QuotedHString; pub const FormatHString = PreferredFormat.HString; pub const FormatRaw = PreferredFormat.Raw; pub const FormatEnumNameOnly = PreferredFormat.EnumNameOnly; pub const FormatEscapedStringWithQuote = PreferredFormat.EscapedStringWithQuote; pub const FormatUTF32String = PreferredFormat.UTF32String; pub const FormatQuotedUTF32String = PreferredFormat.QuotedUTF32String; const IID_IHostDataModelAccess_Value = Guid.initString("f2bce54e-4835-4f8a-836e-7981e29904d1"); pub const IID_IHostDataModelAccess = &IID_IHostDataModelAccess_Value; pub const IHostDataModelAccess = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, GetDataModel: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IHostDataModelAccess, manager: ?*?*IDataModelManager, host: ?*?*IDebugHost, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IHostDataModelAccess, manager: ?*?*IDataModelManager, host: ?*?*IDebugHost, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IHostDataModelAccess_GetDataModel(self: *const T, manager: ?*?*IDataModelManager, host: ?*?*IDebugHost) HRESULT { return @as(*const IHostDataModelAccess.VTable, @ptrCast(self.vtable)).GetDataModel(@as(*const IHostDataModelAccess, @ptrCast(self)), manager, host); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IKeyStore_Value = Guid.initString("0fc7557d-401d-4fca-9365-da1e9850697c"); pub const IID_IKeyStore = &IID_IKeyStore_Value; pub const IKeyStore = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, GetKey: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IKeyStore, key: ?[*:0]const u16, object: ?*?*IModelObject, metadata: ?*?*IKeyStore, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IKeyStore, key: ?[*:0]const u16, object: ?*?*IModelObject, metadata: ?*?*IKeyStore, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetKey: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IKeyStore, key: ?[*:0]const u16, object: ?*IModelObject, metadata: ?*IKeyStore, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IKeyStore, key: ?[*:0]const u16, object: ?*IModelObject, metadata: ?*IKeyStore, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetKeyValue: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IKeyStore, key: ?[*:0]const u16, object: ?*?*IModelObject, metadata: ?*?*IKeyStore, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IKeyStore, key: ?[*:0]const u16, object: ?*?*IModelObject, metadata: ?*?*IKeyStore, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetKeyValue: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IKeyStore, key: ?[*:0]const u16, object: ?*IModelObject, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IKeyStore, key: ?[*:0]const u16, object: ?*IModelObject, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, ClearKeys: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IKeyStore, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IKeyStore, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IKeyStore_GetKey(self: *const T, key: ?[*:0]const u16, object: ?*?*IModelObject, metadata: ?*?*IKeyStore) HRESULT { return @as(*const IKeyStore.VTable, @ptrCast(self.vtable)).GetKey(@as(*const IKeyStore, @ptrCast(self)), key, object, metadata); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IKeyStore_SetKey(self: *const T, key: ?[*:0]const u16, object: ?*IModelObject, metadata: ?*IKeyStore) HRESULT { return @as(*const IKeyStore.VTable, @ptrCast(self.vtable)).SetKey(@as(*const IKeyStore, @ptrCast(self)), key, object, metadata); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IKeyStore_GetKeyValue(self: *const T, key: ?[*:0]const u16, object: ?*?*IModelObject, metadata: ?*?*IKeyStore) HRESULT { return @as(*const IKeyStore.VTable, @ptrCast(self.vtable)).GetKeyValue(@as(*const IKeyStore, @ptrCast(self)), key, object, metadata); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IKeyStore_SetKeyValue(self: *const T, key: ?[*:0]const u16, object: ?*IModelObject) HRESULT { return @as(*const IKeyStore.VTable, @ptrCast(self.vtable)).SetKeyValue(@as(*const IKeyStore, @ptrCast(self)), key, object); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IKeyStore_ClearKeys(self: *const T) HRESULT { return @as(*const IKeyStore.VTable, @ptrCast(self.vtable)).ClearKeys(@as(*const IKeyStore, @ptrCast(self))); } }; } pub usingnamespace MethodMixin(@This()); }; pub const RawSearchFlags = enum(i32) { ne = 0, Bases = 1, }; pub const RawSearchNone = RawSearchFlags.ne; pub const RawSearchNoBases = RawSearchFlags.Bases; const IID_IModelObject_Value = Guid.initString("e28c7893-3f4b-4b96-baca-293cdc55f45d"); pub const IID_IModelObject = &IID_IModelObject_Value; pub const IModelObject = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, GetContext: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IModelObject, context: ?*?*IDebugHostContext, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IModelObject, context: ?*?*IDebugHostContext, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetKind: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IModelObject, kind: ?*ModelObjectKind, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IModelObject, kind: ?*ModelObjectKind, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetIntrinsicValue: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IModelObject, intrinsicData: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IModelObject, intrinsicData: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetIntrinsicValueAs: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IModelObject, vt: u16, intrinsicData: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IModelObject, vt: u16, intrinsicData: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetKeyValue: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IModelObject, key: ?[*:0]const u16, object: ?*?*IModelObject, metadata: ?*?*IKeyStore, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IModelObject, key: ?[*:0]const u16, object: ?*?*IModelObject, metadata: ?*?*IKeyStore, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetKeyValue: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IModelObject, key: ?[*:0]const u16, object: ?*IModelObject, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IModelObject, key: ?[*:0]const u16, object: ?*IModelObject, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, EnumerateKeyValues: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IModelObject, enumerator: ?*?*IKeyEnumerator, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IModelObject, enumerator: ?*?*IKeyEnumerator, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetRawValue: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IModelObject, kind: SymbolKind, name: ?[*:0]const u16, searchFlags: u32, object: ?*?*IModelObject, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IModelObject, kind: SymbolKind, name: ?[*:0]const u16, searchFlags: u32, object: ?*?*IModelObject, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, EnumerateRawValues: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IModelObject, kind: SymbolKind, searchFlags: u32, enumerator: ?*?*IRawEnumerator, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IModelObject, kind: SymbolKind, searchFlags: u32, enumerator: ?*?*IRawEnumerator, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Dereference: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IModelObject, object: ?*?*IModelObject, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IModelObject, object: ?*?*IModelObject, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, TryCastToRuntimeType: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IModelObject, runtimeTypedObject: ?*?*IModelObject, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IModelObject, runtimeTypedObject: ?*?*IModelObject, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetConcept: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IModelObject, conceptId: ?*const Guid, conceptInterface: ?*?*IUnknown, conceptMetadata: ?*?*IKeyStore, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IModelObject, conceptId: ?*const Guid, conceptInterface: ?*?*IUnknown, conceptMetadata: ?*?*IKeyStore, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetLocation: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IModelObject, location: ?*Location, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IModelObject, location: ?*Location, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetTypeInfo: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IModelObject, type: ?*?*IDebugHostType, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IModelObject, type: ?*?*IDebugHostType, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetTargetInfo: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IModelObject, location: ?*Location, type: ?*?*IDebugHostType, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IModelObject, location: ?*Location, type: ?*?*IDebugHostType, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetNumberOfParentModels: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IModelObject, numModels: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IModelObject, numModels: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetParentModel: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IModelObject, i: u64, model: ?*?*IModelObject, contextObject: ?*?*IModelObject, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IModelObject, i: u64, model: ?*?*IModelObject, contextObject: ?*?*IModelObject, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, AddParentModel: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IModelObject, model: ?*IModelObject, contextObject: ?*IModelObject, override: u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IModelObject, model: ?*IModelObject, contextObject: ?*IModelObject, override: u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, RemoveParentModel: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IModelObject, model: ?*IModelObject, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IModelObject, model: ?*IModelObject, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetKey: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IModelObject, key: ?[*:0]const u16, object: ?*?*IModelObject, metadata: ?*?*IKeyStore, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IModelObject, key: ?[*:0]const u16, object: ?*?*IModelObject, metadata: ?*?*IKeyStore, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetKeyReference: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IModelObject, key: ?[*:0]const u16, objectReference: ?*?*IModelObject, metadata: ?*?*IKeyStore, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IModelObject, key: ?[*:0]const u16, objectReference: ?*?*IModelObject, metadata: ?*?*IKeyStore, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetKey: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IModelObject, key: ?[*:0]const u16, object: ?*IModelObject, metadata: ?*IKeyStore, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IModelObject, key: ?[*:0]const u16, object: ?*IModelObject, metadata: ?*IKeyStore, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, ClearKeys: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IModelObject, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IModelObject, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, EnumerateKeys: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IModelObject, enumerator: ?*?*IKeyEnumerator, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IModelObject, enumerator: ?*?*IKeyEnumerator, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, EnumerateKeyReferences: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IModelObject, enumerator: ?*?*IKeyEnumerator, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IModelObject, enumerator: ?*?*IKeyEnumerator, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetConcept: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IModelObject, conceptId: ?*const Guid, conceptInterface: ?*IUnknown, conceptMetadata: ?*IKeyStore, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IModelObject, conceptId: ?*const Guid, conceptInterface: ?*IUnknown, conceptMetadata: ?*IKeyStore, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, ClearConcepts: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IModelObject, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IModelObject, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetRawReference: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IModelObject, kind: SymbolKind, name: ?[*:0]const u16, searchFlags: u32, object: ?*?*IModelObject, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IModelObject, kind: SymbolKind, name: ?[*:0]const u16, searchFlags: u32, object: ?*?*IModelObject, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, EnumerateRawReferences: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IModelObject, kind: SymbolKind, searchFlags: u32, enumerator: ?*?*IRawEnumerator, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IModelObject, kind: SymbolKind, searchFlags: u32, enumerator: ?*?*IRawEnumerator, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetContextForDataModel: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IModelObject, dataModelObject: ?*IModelObject, context: ?*IUnknown, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IModelObject, dataModelObject: ?*IModelObject, context: ?*IUnknown, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetContextForDataModel: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IModelObject, dataModelObject: ?*IModelObject, context: ?*?*IUnknown, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IModelObject, dataModelObject: ?*IModelObject, context: ?*?*IUnknown, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Compare: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IModelObject, other: ?*IModelObject, ppResult: ?*?*IModelObject, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IModelObject, other: ?*IModelObject, ppResult: ?*?*IModelObject, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, IsEqualTo: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IModelObject, other: ?*IModelObject, equal: ?*bool, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IModelObject, other: ?*IModelObject, equal: ?*bool, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IModelObject_GetContext(self: *const T, context: ?*?*IDebugHostContext) HRESULT { return @as(*const IModelObject.VTable, @ptrCast(self.vtable)).GetContext(@as(*const IModelObject, @ptrCast(self)), context); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IModelObject_GetKind(self: *const T, kind: ?*ModelObjectKind) HRESULT { return @as(*const IModelObject.VTable, @ptrCast(self.vtable)).GetKind(@as(*const IModelObject, @ptrCast(self)), kind); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IModelObject_GetIntrinsicValue(self: *const T, intrinsicData: ?*VARIANT) HRESULT { return @as(*const IModelObject.VTable, @ptrCast(self.vtable)).GetIntrinsicValue(@as(*const IModelObject, @ptrCast(self)), intrinsicData); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IModelObject_GetIntrinsicValueAs(self: *const T, vt: u16, intrinsicData: ?*VARIANT) HRESULT { return @as(*const IModelObject.VTable, @ptrCast(self.vtable)).GetIntrinsicValueAs(@as(*const IModelObject, @ptrCast(self)), vt, intrinsicData); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IModelObject_GetKeyValue(self: *const T, key: ?[*:0]const u16, object: ?*?*IModelObject, metadata: ?*?*IKeyStore) HRESULT { return @as(*const IModelObject.VTable, @ptrCast(self.vtable)).GetKeyValue(@as(*const IModelObject, @ptrCast(self)), key, object, metadata); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IModelObject_SetKeyValue(self: *const T, key: ?[*:0]const u16, object: ?*IModelObject) HRESULT { return @as(*const IModelObject.VTable, @ptrCast(self.vtable)).SetKeyValue(@as(*const IModelObject, @ptrCast(self)), key, object); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IModelObject_EnumerateKeyValues(self: *const T, enumerator: ?*?*IKeyEnumerator) HRESULT { return @as(*const IModelObject.VTable, @ptrCast(self.vtable)).EnumerateKeyValues(@as(*const IModelObject, @ptrCast(self)), enumerator); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IModelObject_GetRawValue(self: *const T, kind: SymbolKind, name: ?[*:0]const u16, searchFlags: u32, object: ?*?*IModelObject) HRESULT { return @as(*const IModelObject.VTable, @ptrCast(self.vtable)).GetRawValue(@as(*const IModelObject, @ptrCast(self)), kind, name, searchFlags, object); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IModelObject_EnumerateRawValues(self: *const T, kind: SymbolKind, searchFlags: u32, enumerator: ?*?*IRawEnumerator) HRESULT { return @as(*const IModelObject.VTable, @ptrCast(self.vtable)).EnumerateRawValues(@as(*const IModelObject, @ptrCast(self)), kind, searchFlags, enumerator); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IModelObject_Dereference(self: *const T, object: ?*?*IModelObject) HRESULT { return @as(*const IModelObject.VTable, @ptrCast(self.vtable)).Dereference(@as(*const IModelObject, @ptrCast(self)), object); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IModelObject_TryCastToRuntimeType(self: *const T, runtimeTypedObject: ?*?*IModelObject) HRESULT { return @as(*const IModelObject.VTable, @ptrCast(self.vtable)).TryCastToRuntimeType(@as(*const IModelObject, @ptrCast(self)), runtimeTypedObject); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IModelObject_GetConcept(self: *const T, conceptId: ?*const Guid, conceptInterface: ?*?*IUnknown, conceptMetadata: ?*?*IKeyStore) HRESULT { return @as(*const IModelObject.VTable, @ptrCast(self.vtable)).GetConcept(@as(*const IModelObject, @ptrCast(self)), conceptId, conceptInterface, conceptMetadata); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IModelObject_GetLocation(self: *const T, location: ?*Location) HRESULT { return @as(*const IModelObject.VTable, @ptrCast(self.vtable)).GetLocation(@as(*const IModelObject, @ptrCast(self)), location); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IModelObject_GetTypeInfo(self: *const T, type_: ?*?*IDebugHostType) HRESULT { return @as(*const IModelObject.VTable, @ptrCast(self.vtable)).GetTypeInfo(@as(*const IModelObject, @ptrCast(self)), type_); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IModelObject_GetTargetInfo(self: *const T, location: ?*Location, type_: ?*?*IDebugHostType) HRESULT { return @as(*const IModelObject.VTable, @ptrCast(self.vtable)).GetTargetInfo(@as(*const IModelObject, @ptrCast(self)), location, type_); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IModelObject_GetNumberOfParentModels(self: *const T, numModels: ?*u64) HRESULT { return @as(*const IModelObject.VTable, @ptrCast(self.vtable)).GetNumberOfParentModels(@as(*const IModelObject, @ptrCast(self)), numModels); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IModelObject_GetParentModel(self: *const T, i: u64, model: ?*?*IModelObject, contextObject: ?*?*IModelObject) HRESULT { return @as(*const IModelObject.VTable, @ptrCast(self.vtable)).GetParentModel(@as(*const IModelObject, @ptrCast(self)), i, model, contextObject); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IModelObject_AddParentModel(self: *const T, model: ?*IModelObject, contextObject: ?*IModelObject, override: u8) HRESULT { return @as(*const IModelObject.VTable, @ptrCast(self.vtable)).AddParentModel(@as(*const IModelObject, @ptrCast(self)), model, contextObject, override); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IModelObject_RemoveParentModel(self: *const T, model: ?*IModelObject) HRESULT { return @as(*const IModelObject.VTable, @ptrCast(self.vtable)).RemoveParentModel(@as(*const IModelObject, @ptrCast(self)), model); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IModelObject_GetKey(self: *const T, key: ?[*:0]const u16, object: ?*?*IModelObject, metadata: ?*?*IKeyStore) HRESULT { return @as(*const IModelObject.VTable, @ptrCast(self.vtable)).GetKey(@as(*const IModelObject, @ptrCast(self)), key, object, metadata); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IModelObject_GetKeyReference(self: *const T, key: ?[*:0]const u16, objectReference: ?*?*IModelObject, metadata: ?*?*IKeyStore) HRESULT { return @as(*const IModelObject.VTable, @ptrCast(self.vtable)).GetKeyReference(@as(*const IModelObject, @ptrCast(self)), key, objectReference, metadata); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IModelObject_SetKey(self: *const T, key: ?[*:0]const u16, object: ?*IModelObject, metadata: ?*IKeyStore) HRESULT { return @as(*const IModelObject.VTable, @ptrCast(self.vtable)).SetKey(@as(*const IModelObject, @ptrCast(self)), key, object, metadata); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IModelObject_ClearKeys(self: *const T) HRESULT { return @as(*const IModelObject.VTable, @ptrCast(self.vtable)).ClearKeys(@as(*const IModelObject, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IModelObject_EnumerateKeys(self: *const T, enumerator: ?*?*IKeyEnumerator) HRESULT { return @as(*const IModelObject.VTable, @ptrCast(self.vtable)).EnumerateKeys(@as(*const IModelObject, @ptrCast(self)), enumerator); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IModelObject_EnumerateKeyReferences(self: *const T, enumerator: ?*?*IKeyEnumerator) HRESULT { return @as(*const IModelObject.VTable, @ptrCast(self.vtable)).EnumerateKeyReferences(@as(*const IModelObject, @ptrCast(self)), enumerator); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IModelObject_SetConcept(self: *const T, conceptId: ?*const Guid, conceptInterface: ?*IUnknown, conceptMetadata: ?*IKeyStore) HRESULT { return @as(*const IModelObject.VTable, @ptrCast(self.vtable)).SetConcept(@as(*const IModelObject, @ptrCast(self)), conceptId, conceptInterface, conceptMetadata); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IModelObject_ClearConcepts(self: *const T) HRESULT { return @as(*const IModelObject.VTable, @ptrCast(self.vtable)).ClearConcepts(@as(*const IModelObject, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IModelObject_GetRawReference(self: *const T, kind: SymbolKind, name: ?[*:0]const u16, searchFlags: u32, object: ?*?*IModelObject) HRESULT { return @as(*const IModelObject.VTable, @ptrCast(self.vtable)).GetRawReference(@as(*const IModelObject, @ptrCast(self)), kind, name, searchFlags, object); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IModelObject_EnumerateRawReferences(self: *const T, kind: SymbolKind, searchFlags: u32, enumerator: ?*?*IRawEnumerator) HRESULT { return @as(*const IModelObject.VTable, @ptrCast(self.vtable)).EnumerateRawReferences(@as(*const IModelObject, @ptrCast(self)), kind, searchFlags, enumerator); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IModelObject_SetContextForDataModel(self: *const T, dataModelObject: ?*IModelObject, context: ?*IUnknown) HRESULT { return @as(*const IModelObject.VTable, @ptrCast(self.vtable)).SetContextForDataModel(@as(*const IModelObject, @ptrCast(self)), dataModelObject, context); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IModelObject_GetContextForDataModel(self: *const T, dataModelObject: ?*IModelObject, context: ?*?*IUnknown) HRESULT { return @as(*const IModelObject.VTable, @ptrCast(self.vtable)).GetContextForDataModel(@as(*const IModelObject, @ptrCast(self)), dataModelObject, context); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IModelObject_Compare(self: *const T, other: ?*IModelObject, ppResult: ?*?*IModelObject) HRESULT { return @as(*const IModelObject.VTable, @ptrCast(self.vtable)).Compare(@as(*const IModelObject, @ptrCast(self)), other, ppResult); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IModelObject_IsEqualTo(self: *const T, other: ?*IModelObject, equal: ?*bool) HRESULT { return @as(*const IModelObject.VTable, @ptrCast(self.vtable)).IsEqualTo(@as(*const IModelObject, @ptrCast(self)), other, equal); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IDataModelManager_Value = Guid.initString("73fe19f4-a110-4500-8ed9-3c28896f508c"); pub const IID_IDataModelManager = &IID_IDataModelManager_Value; pub const IDataModelManager = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, Close: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDataModelManager, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDataModelManager, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, CreateNoValue: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDataModelManager, object: ?*?*IModelObject, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDataModelManager, object: ?*?*IModelObject, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, CreateErrorObject: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDataModelManager, hrError: HRESULT, pwszMessage: ?[*:0]const u16, object: ?*?*IModelObject, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDataModelManager, hrError: HRESULT, pwszMessage: ?[*:0]const u16, object: ?*?*IModelObject, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, CreateTypedObject: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDataModelManager, context: ?*IDebugHostContext, objectLocation: Location, objectType: ?*IDebugHostType, object: ?*?*IModelObject, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDataModelManager, context: ?*IDebugHostContext, objectLocation: Location, objectType: ?*IDebugHostType, object: ?*?*IModelObject, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, CreateTypedObjectReference: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDataModelManager, context: ?*IDebugHostContext, objectLocation: Location, objectType: ?*IDebugHostType, object: ?*?*IModelObject, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDataModelManager, context: ?*IDebugHostContext, objectLocation: Location, objectType: ?*IDebugHostType, object: ?*?*IModelObject, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, CreateSyntheticObject: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDataModelManager, context: ?*IDebugHostContext, object: ?*?*IModelObject, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDataModelManager, context: ?*IDebugHostContext, object: ?*?*IModelObject, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, CreateDataModelObject: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDataModelManager, dataModel: ?*IDataModelConcept, object: ?*?*IModelObject, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDataModelManager, dataModel: ?*IDataModelConcept, object: ?*?*IModelObject, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, CreateIntrinsicObject: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDataModelManager, objectKind: ModelObjectKind, intrinsicData: ?*VARIANT, object: ?*?*IModelObject, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDataModelManager, objectKind: ModelObjectKind, intrinsicData: ?*VARIANT, object: ?*?*IModelObject, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, CreateTypedIntrinsicObject: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDataModelManager, intrinsicData: ?*VARIANT, type: ?*IDebugHostType, object: ?*?*IModelObject, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDataModelManager, intrinsicData: ?*VARIANT, type: ?*IDebugHostType, object: ?*?*IModelObject, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetModelForTypeSignature: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDataModelManager, typeSignature: ?*IDebugHostTypeSignature, dataModel: ?*?*IModelObject, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDataModelManager, typeSignature: ?*IDebugHostTypeSignature, dataModel: ?*?*IModelObject, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetModelForType: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDataModelManager, type: ?*IDebugHostType, dataModel: ?*?*IModelObject, typeSignature: ?*?*IDebugHostTypeSignature, wildcardMatches: ?*?*IDebugHostSymbolEnumerator, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDataModelManager, type: ?*IDebugHostType, dataModel: ?*?*IModelObject, typeSignature: ?*?*IDebugHostTypeSignature, wildcardMatches: ?*?*IDebugHostSymbolEnumerator, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, RegisterModelForTypeSignature: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDataModelManager, typeSignature: ?*IDebugHostTypeSignature, dataModel: ?*IModelObject, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDataModelManager, typeSignature: ?*IDebugHostTypeSignature, dataModel: ?*IModelObject, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, UnregisterModelForTypeSignature: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDataModelManager, dataModel: ?*IModelObject, typeSignature: ?*IDebugHostTypeSignature, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDataModelManager, dataModel: ?*IModelObject, typeSignature: ?*IDebugHostTypeSignature, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, RegisterExtensionForTypeSignature: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDataModelManager, typeSignature: ?*IDebugHostTypeSignature, dataModel: ?*IModelObject, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDataModelManager, typeSignature: ?*IDebugHostTypeSignature, dataModel: ?*IModelObject, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, UnregisterExtensionForTypeSignature: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDataModelManager, dataModel: ?*IModelObject, typeSignature: ?*IDebugHostTypeSignature, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDataModelManager, dataModel: ?*IModelObject, typeSignature: ?*IDebugHostTypeSignature, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, CreateMetadataStore: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDataModelManager, parentStore: ?*IKeyStore, metadataStore: ?*?*IKeyStore, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDataModelManager, parentStore: ?*IKeyStore, metadataStore: ?*?*IKeyStore, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetRootNamespace: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDataModelManager, rootNamespace: ?*?*IModelObject, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDataModelManager, rootNamespace: ?*?*IModelObject, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, RegisterNamedModel: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDataModelManager, modelName: ?[*:0]const u16, modeObject: ?*IModelObject, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDataModelManager, modelName: ?[*:0]const u16, modeObject: ?*IModelObject, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, UnregisterNamedModel: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDataModelManager, modelName: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDataModelManager, modelName: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, AcquireNamedModel: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDataModelManager, modelName: ?[*:0]const u16, modelObject: ?*?*IModelObject, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDataModelManager, modelName: ?[*:0]const u16, modelObject: ?*?*IModelObject, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDataModelManager_Close(self: *const T) HRESULT { return @as(*const IDataModelManager.VTable, @ptrCast(self.vtable)).Close(@as(*const IDataModelManager, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDataModelManager_CreateNoValue(self: *const T, object: ?*?*IModelObject) HRESULT { return @as(*const IDataModelManager.VTable, @ptrCast(self.vtable)).CreateNoValue(@as(*const IDataModelManager, @ptrCast(self)), object); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDataModelManager_CreateErrorObject(self: *const T, hrError: HRESULT, pwszMessage: ?[*:0]const u16, object: ?*?*IModelObject) HRESULT { return @as(*const IDataModelManager.VTable, @ptrCast(self.vtable)).CreateErrorObject(@as(*const IDataModelManager, @ptrCast(self)), hrError, pwszMessage, object); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDataModelManager_CreateTypedObject(self: *const T, context: ?*IDebugHostContext, objectLocation: Location, objectType: ?*IDebugHostType, object: ?*?*IModelObject) HRESULT { return @as(*const IDataModelManager.VTable, @ptrCast(self.vtable)).CreateTypedObject(@as(*const IDataModelManager, @ptrCast(self)), context, objectLocation, objectType, object); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDataModelManager_CreateTypedObjectReference(self: *const T, context: ?*IDebugHostContext, objectLocation: Location, objectType: ?*IDebugHostType, object: ?*?*IModelObject) HRESULT { return @as(*const IDataModelManager.VTable, @ptrCast(self.vtable)).CreateTypedObjectReference(@as(*const IDataModelManager, @ptrCast(self)), context, objectLocation, objectType, object); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDataModelManager_CreateSyntheticObject(self: *const T, context: ?*IDebugHostContext, object: ?*?*IModelObject) HRESULT { return @as(*const IDataModelManager.VTable, @ptrCast(self.vtable)).CreateSyntheticObject(@as(*const IDataModelManager, @ptrCast(self)), context, object); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDataModelManager_CreateDataModelObject(self: *const T, dataModel: ?*IDataModelConcept, object: ?*?*IModelObject) HRESULT { return @as(*const IDataModelManager.VTable, @ptrCast(self.vtable)).CreateDataModelObject(@as(*const IDataModelManager, @ptrCast(self)), dataModel, object); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDataModelManager_CreateIntrinsicObject(self: *const T, objectKind: ModelObjectKind, intrinsicData: ?*VARIANT, object: ?*?*IModelObject) HRESULT { return @as(*const IDataModelManager.VTable, @ptrCast(self.vtable)).CreateIntrinsicObject(@as(*const IDataModelManager, @ptrCast(self)), objectKind, intrinsicData, object); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDataModelManager_CreateTypedIntrinsicObject(self: *const T, intrinsicData: ?*VARIANT, type_: ?*IDebugHostType, object: ?*?*IModelObject) HRESULT { return @as(*const IDataModelManager.VTable, @ptrCast(self.vtable)).CreateTypedIntrinsicObject(@as(*const IDataModelManager, @ptrCast(self)), intrinsicData, type_, object); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDataModelManager_GetModelForTypeSignature(self: *const T, typeSignature: ?*IDebugHostTypeSignature, dataModel: ?*?*IModelObject) HRESULT { return @as(*const IDataModelManager.VTable, @ptrCast(self.vtable)).GetModelForTypeSignature(@as(*const IDataModelManager, @ptrCast(self)), typeSignature, dataModel); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDataModelManager_GetModelForType(self: *const T, type_: ?*IDebugHostType, dataModel: ?*?*IModelObject, typeSignature: ?*?*IDebugHostTypeSignature, wildcardMatches: ?*?*IDebugHostSymbolEnumerator) HRESULT { return @as(*const IDataModelManager.VTable, @ptrCast(self.vtable)).GetModelForType(@as(*const IDataModelManager, @ptrCast(self)), type_, dataModel, typeSignature, wildcardMatches); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDataModelManager_RegisterModelForTypeSignature(self: *const T, typeSignature: ?*IDebugHostTypeSignature, dataModel: ?*IModelObject) HRESULT { return @as(*const IDataModelManager.VTable, @ptrCast(self.vtable)).RegisterModelForTypeSignature(@as(*const IDataModelManager, @ptrCast(self)), typeSignature, dataModel); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDataModelManager_UnregisterModelForTypeSignature(self: *const T, dataModel: ?*IModelObject, typeSignature: ?*IDebugHostTypeSignature) HRESULT { return @as(*const IDataModelManager.VTable, @ptrCast(self.vtable)).UnregisterModelForTypeSignature(@as(*const IDataModelManager, @ptrCast(self)), dataModel, typeSignature); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDataModelManager_RegisterExtensionForTypeSignature(self: *const T, typeSignature: ?*IDebugHostTypeSignature, dataModel: ?*IModelObject) HRESULT { return @as(*const IDataModelManager.VTable, @ptrCast(self.vtable)).RegisterExtensionForTypeSignature(@as(*const IDataModelManager, @ptrCast(self)), typeSignature, dataModel); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDataModelManager_UnregisterExtensionForTypeSignature(self: *const T, dataModel: ?*IModelObject, typeSignature: ?*IDebugHostTypeSignature) HRESULT { return @as(*const IDataModelManager.VTable, @ptrCast(self.vtable)).UnregisterExtensionForTypeSignature(@as(*const IDataModelManager, @ptrCast(self)), dataModel, typeSignature); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDataModelManager_CreateMetadataStore(self: *const T, parentStore: ?*IKeyStore, metadataStore: ?*?*IKeyStore) HRESULT { return @as(*const IDataModelManager.VTable, @ptrCast(self.vtable)).CreateMetadataStore(@as(*const IDataModelManager, @ptrCast(self)), parentStore, metadataStore); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDataModelManager_GetRootNamespace(self: *const T, rootNamespace: ?*?*IModelObject) HRESULT { return @as(*const IDataModelManager.VTable, @ptrCast(self.vtable)).GetRootNamespace(@as(*const IDataModelManager, @ptrCast(self)), rootNamespace); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDataModelManager_RegisterNamedModel(self: *const T, modelName: ?[*:0]const u16, modeObject: ?*IModelObject) HRESULT { return @as(*const IDataModelManager.VTable, @ptrCast(self.vtable)).RegisterNamedModel(@as(*const IDataModelManager, @ptrCast(self)), modelName, modeObject); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDataModelManager_UnregisterNamedModel(self: *const T, modelName: ?[*:0]const u16) HRESULT { return @as(*const IDataModelManager.VTable, @ptrCast(self.vtable)).UnregisterNamedModel(@as(*const IDataModelManager, @ptrCast(self)), modelName); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDataModelManager_AcquireNamedModel(self: *const T, modelName: ?[*:0]const u16, modelObject: ?*?*IModelObject) HRESULT { return @as(*const IDataModelManager.VTable, @ptrCast(self.vtable)).AcquireNamedModel(@as(*const IDataModelManager, @ptrCast(self)), modelName, modelObject); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IModelKeyReference_Value = Guid.initString("5253dcf8-5aff-4c62-b302-56a289e00998"); pub const IID_IModelKeyReference = &IID_IModelKeyReference_Value; pub const IModelKeyReference = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, GetKeyName: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IModelKeyReference, keyName: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IModelKeyReference, keyName: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetOriginalObject: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IModelKeyReference, originalObject: ?*?*IModelObject, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IModelKeyReference, originalObject: ?*?*IModelObject, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetContextObject: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IModelKeyReference, containingObject: ?*?*IModelObject, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IModelKeyReference, containingObject: ?*?*IModelObject, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetKey: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IModelKeyReference, object: ?*?*IModelObject, metadata: ?*?*IKeyStore, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IModelKeyReference, object: ?*?*IModelObject, metadata: ?*?*IKeyStore, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetKeyValue: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IModelKeyReference, object: ?*?*IModelObject, metadata: ?*?*IKeyStore, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IModelKeyReference, object: ?*?*IModelObject, metadata: ?*?*IKeyStore, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetKey: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IModelKeyReference, object: ?*IModelObject, metadata: ?*IKeyStore, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IModelKeyReference, object: ?*IModelObject, metadata: ?*IKeyStore, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetKeyValue: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IModelKeyReference, object: ?*IModelObject, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IModelKeyReference, object: ?*IModelObject, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IModelKeyReference_GetKeyName(self: *const T, keyName: ?*?BSTR) HRESULT { return @as(*const IModelKeyReference.VTable, @ptrCast(self.vtable)).GetKeyName(@as(*const IModelKeyReference, @ptrCast(self)), keyName); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IModelKeyReference_GetOriginalObject(self: *const T, originalObject: ?*?*IModelObject) HRESULT { return @as(*const IModelKeyReference.VTable, @ptrCast(self.vtable)).GetOriginalObject(@as(*const IModelKeyReference, @ptrCast(self)), originalObject); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IModelKeyReference_GetContextObject(self: *const T, containingObject: ?*?*IModelObject) HRESULT { return @as(*const IModelKeyReference.VTable, @ptrCast(self.vtable)).GetContextObject(@as(*const IModelKeyReference, @ptrCast(self)), containingObject); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IModelKeyReference_GetKey(self: *const T, object: ?*?*IModelObject, metadata: ?*?*IKeyStore) HRESULT { return @as(*const IModelKeyReference.VTable, @ptrCast(self.vtable)).GetKey(@as(*const IModelKeyReference, @ptrCast(self)), object, metadata); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IModelKeyReference_GetKeyValue(self: *const T, object: ?*?*IModelObject, metadata: ?*?*IKeyStore) HRESULT { return @as(*const IModelKeyReference.VTable, @ptrCast(self.vtable)).GetKeyValue(@as(*const IModelKeyReference, @ptrCast(self)), object, metadata); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IModelKeyReference_SetKey(self: *const T, object: ?*IModelObject, metadata: ?*IKeyStore) HRESULT { return @as(*const IModelKeyReference.VTable, @ptrCast(self.vtable)).SetKey(@as(*const IModelKeyReference, @ptrCast(self)), object, metadata); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IModelKeyReference_SetKeyValue(self: *const T, object: ?*IModelObject) HRESULT { return @as(*const IModelKeyReference.VTable, @ptrCast(self.vtable)).SetKeyValue(@as(*const IModelKeyReference, @ptrCast(self)), object); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IModelPropertyAccessor_Value = Guid.initString("5a0c63d9-0526-42b8-960c-9516a3254c85"); pub const IID_IModelPropertyAccessor = &IID_IModelPropertyAccessor_Value; pub const IModelPropertyAccessor = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, GetValue: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IModelPropertyAccessor, key: ?[*:0]const u16, contextObject: ?*IModelObject, value: ?*?*IModelObject, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IModelPropertyAccessor, key: ?[*:0]const u16, contextObject: ?*IModelObject, value: ?*?*IModelObject, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetValue: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IModelPropertyAccessor, key: ?[*:0]const u16, contextObject: ?*IModelObject, value: ?*IModelObject, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IModelPropertyAccessor, key: ?[*:0]const u16, contextObject: ?*IModelObject, value: ?*IModelObject, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IModelPropertyAccessor_GetValue(self: *const T, key: ?[*:0]const u16, contextObject: ?*IModelObject, value: ?*?*IModelObject) HRESULT { return @as(*const IModelPropertyAccessor.VTable, @ptrCast(self.vtable)).GetValue(@as(*const IModelPropertyAccessor, @ptrCast(self)), key, contextObject, value); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IModelPropertyAccessor_SetValue(self: *const T, key: ?[*:0]const u16, contextObject: ?*IModelObject, value: ?*IModelObject) HRESULT { return @as(*const IModelPropertyAccessor.VTable, @ptrCast(self.vtable)).SetValue(@as(*const IModelPropertyAccessor, @ptrCast(self)), key, contextObject, value); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IModelMethod_Value = Guid.initString("80600c1f-b90b-4896-82ad-1c00207909e8"); pub const IID_IModelMethod = &IID_IModelMethod_Value; pub const IModelMethod = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, Call: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IModelMethod, pContextObject: ?*IModelObject, argCount: u64, ppArguments: [*]?*IModelObject, ppResult: ?*?*IModelObject, ppMetadata: ?*?*IKeyStore, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IModelMethod, pContextObject: ?*IModelObject, argCount: u64, ppArguments: [*]?*IModelObject, ppResult: ?*?*IModelObject, ppMetadata: ?*?*IKeyStore, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IModelMethod_Call(self: *const T, pContextObject: ?*IModelObject, argCount: u64, ppArguments: [*]?*IModelObject, ppResult: ?*?*IModelObject, ppMetadata: ?*?*IKeyStore) HRESULT { return @as(*const IModelMethod.VTable, @ptrCast(self.vtable)).Call(@as(*const IModelMethod, @ptrCast(self)), pContextObject, argCount, ppArguments, ppResult, ppMetadata); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IKeyEnumerator_Value = Guid.initString("345fa92e-5e00-4319-9cae-971f7601cdcf"); pub const IID_IKeyEnumerator = &IID_IKeyEnumerator_Value; pub const IKeyEnumerator = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, Reset: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IKeyEnumerator, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IKeyEnumerator, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetNext: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IKeyEnumerator, key: ?*?BSTR, value: ?*?*IModelObject, metadata: ?*?*IKeyStore, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IKeyEnumerator, key: ?*?BSTR, value: ?*?*IModelObject, metadata: ?*?*IKeyStore, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IKeyEnumerator_Reset(self: *const T) HRESULT { return @as(*const IKeyEnumerator.VTable, @ptrCast(self.vtable)).Reset(@as(*const IKeyEnumerator, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IKeyEnumerator_GetNext(self: *const T, key: ?*?BSTR, value: ?*?*IModelObject, metadata: ?*?*IKeyStore) HRESULT { return @as(*const IKeyEnumerator.VTable, @ptrCast(self.vtable)).GetNext(@as(*const IKeyEnumerator, @ptrCast(self)), key, value, metadata); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IRawEnumerator_Value = Guid.initString("e13613f9-3a3c-40b5-8f48-1e5ebfb9b21b"); pub const IID_IRawEnumerator = &IID_IRawEnumerator_Value; pub const IRawEnumerator = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, Reset: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IRawEnumerator, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IRawEnumerator, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetNext: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IRawEnumerator, name: ?*?BSTR, kind: ?*SymbolKind, value: ?*?*IModelObject, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IRawEnumerator, name: ?*?BSTR, kind: ?*SymbolKind, value: ?*?*IModelObject, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRawEnumerator_Reset(self: *const T) HRESULT { return @as(*const IRawEnumerator.VTable, @ptrCast(self.vtable)).Reset(@as(*const IRawEnumerator, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRawEnumerator_GetNext(self: *const T, name: ?*?BSTR, kind: ?*SymbolKind, value: ?*?*IModelObject) HRESULT { return @as(*const IRawEnumerator.VTable, @ptrCast(self.vtable)).GetNext(@as(*const IRawEnumerator, @ptrCast(self)), name, kind, value); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IDataModelConcept_Value = Guid.initString("fcb98d1d-1114-4fbf-b24c-effcb5def0d3"); pub const IID_IDataModelConcept = &IID_IDataModelConcept_Value; pub const IDataModelConcept = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, InitializeObject: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDataModelConcept, modelObject: ?*IModelObject, matchingTypeSignature: ?*IDebugHostTypeSignature, wildcardMatches: ?*IDebugHostSymbolEnumerator, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDataModelConcept, modelObject: ?*IModelObject, matchingTypeSignature: ?*IDebugHostTypeSignature, wildcardMatches: ?*IDebugHostSymbolEnumerator, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetName: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDataModelConcept, modelName: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDataModelConcept, modelName: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDataModelConcept_InitializeObject(self: *const T, modelObject: ?*IModelObject, matchingTypeSignature: ?*IDebugHostTypeSignature, wildcardMatches: ?*IDebugHostSymbolEnumerator) HRESULT { return @as(*const IDataModelConcept.VTable, @ptrCast(self.vtable)).InitializeObject(@as(*const IDataModelConcept, @ptrCast(self)), modelObject, matchingTypeSignature, wildcardMatches); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDataModelConcept_GetName(self: *const T, modelName: ?*?BSTR) HRESULT { return @as(*const IDataModelConcept.VTable, @ptrCast(self.vtable)).GetName(@as(*const IDataModelConcept, @ptrCast(self)), modelName); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IStringDisplayableConcept_Value = Guid.initString("d28e8d70-6c00-4205-940d-501016601ea3"); pub const IID_IStringDisplayableConcept = &IID_IStringDisplayableConcept_Value; pub const IStringDisplayableConcept = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, ToDisplayString: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IStringDisplayableConcept, contextObject: ?*IModelObject, metadata: ?*IKeyStore, displayString: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IStringDisplayableConcept, contextObject: ?*IModelObject, metadata: ?*IKeyStore, displayString: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IStringDisplayableConcept_ToDisplayString(self: *const T, contextObject: ?*IModelObject, metadata: ?*IKeyStore, displayString: ?*?BSTR) HRESULT { return @as(*const IStringDisplayableConcept.VTable, @ptrCast(self.vtable)).ToDisplayString(@as(*const IStringDisplayableConcept, @ptrCast(self)), contextObject, metadata, displayString); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_ICodeAddressConcept_Value = Guid.initString("c7371568-5c78-4a00-a4ab-6ef8823184cb"); pub const IID_ICodeAddressConcept = &IID_ICodeAddressConcept_Value; pub const ICodeAddressConcept = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, GetContainingSymbol: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ICodeAddressConcept, pContextObject: ?*IModelObject, ppSymbol: ?*?*IDebugHostSymbol, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ICodeAddressConcept, pContextObject: ?*IModelObject, ppSymbol: ?*?*IDebugHostSymbol, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ICodeAddressConcept_GetContainingSymbol(self: *const T, pContextObject: ?*IModelObject, ppSymbol: ?*?*IDebugHostSymbol) HRESULT { return @as(*const ICodeAddressConcept.VTable, @ptrCast(self.vtable)).GetContainingSymbol(@as(*const ICodeAddressConcept, @ptrCast(self)), pContextObject, ppSymbol); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IModelIterator_Value = Guid.initString("e4622136-927d-4490-874f-581f3e4e3688"); pub const IID_IModelIterator = &IID_IModelIterator_Value; pub const IModelIterator = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, Reset: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IModelIterator, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IModelIterator, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetNext: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IModelIterator, object: ?*?*IModelObject, dimensions: u64, indexers: ?[*]?*IModelObject, metadata: ?*?*IKeyStore, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IModelIterator, object: ?*?*IModelObject, dimensions: u64, indexers: ?[*]?*IModelObject, metadata: ?*?*IKeyStore, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IModelIterator_Reset(self: *const T) HRESULT { return @as(*const IModelIterator.VTable, @ptrCast(self.vtable)).Reset(@as(*const IModelIterator, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IModelIterator_GetNext(self: *const T, object: ?*?*IModelObject, dimensions: u64, indexers: ?[*]?*IModelObject, metadata: ?*?*IKeyStore) HRESULT { return @as(*const IModelIterator.VTable, @ptrCast(self.vtable)).GetNext(@as(*const IModelIterator, @ptrCast(self)), object, dimensions, indexers, metadata); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IIterableConcept_Value = Guid.initString("f5d49d0c-0b02-4301-9c9b-b3a6037628f3"); pub const IID_IIterableConcept = &IID_IIterableConcept_Value; pub const IIterableConcept = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, GetDefaultIndexDimensionality: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IIterableConcept, contextObject: ?*IModelObject, dimensionality: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IIterableConcept, contextObject: ?*IModelObject, dimensionality: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetIterator: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IIterableConcept, contextObject: ?*IModelObject, iterator: ?*?*IModelIterator, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IIterableConcept, contextObject: ?*IModelObject, iterator: ?*?*IModelIterator, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IIterableConcept_GetDefaultIndexDimensionality(self: *const T, contextObject: ?*IModelObject, dimensionality: ?*u64) HRESULT { return @as(*const IIterableConcept.VTable, @ptrCast(self.vtable)).GetDefaultIndexDimensionality(@as(*const IIterableConcept, @ptrCast(self)), contextObject, dimensionality); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IIterableConcept_GetIterator(self: *const T, contextObject: ?*IModelObject, iterator: ?*?*IModelIterator) HRESULT { return @as(*const IIterableConcept.VTable, @ptrCast(self.vtable)).GetIterator(@as(*const IIterableConcept, @ptrCast(self)), contextObject, iterator); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IIndexableConcept_Value = Guid.initString("d1fad99f-3f53-4457-850c-8051df2d3fb5"); pub const IID_IIndexableConcept = &IID_IIndexableConcept_Value; pub const IIndexableConcept = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, GetDimensionality: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IIndexableConcept, contextObject: ?*IModelObject, dimensionality: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IIndexableConcept, contextObject: ?*IModelObject, dimensionality: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetAt: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IIndexableConcept, contextObject: ?*IModelObject, indexerCount: u64, indexers: [*]?*IModelObject, object: ?*?*IModelObject, metadata: ?*?*IKeyStore, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IIndexableConcept, contextObject: ?*IModelObject, indexerCount: u64, indexers: [*]?*IModelObject, object: ?*?*IModelObject, metadata: ?*?*IKeyStore, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetAt: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IIndexableConcept, contextObject: ?*IModelObject, indexerCount: u64, indexers: [*]?*IModelObject, value: ?*IModelObject, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IIndexableConcept, contextObject: ?*IModelObject, indexerCount: u64, indexers: [*]?*IModelObject, value: ?*IModelObject, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IIndexableConcept_GetDimensionality(self: *const T, contextObject: ?*IModelObject, dimensionality: ?*u64) HRESULT { return @as(*const IIndexableConcept.VTable, @ptrCast(self.vtable)).GetDimensionality(@as(*const IIndexableConcept, @ptrCast(self)), contextObject, dimensionality); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IIndexableConcept_GetAt(self: *const T, contextObject: ?*IModelObject, indexerCount: u64, indexers: [*]?*IModelObject, object: ?*?*IModelObject, metadata: ?*?*IKeyStore) HRESULT { return @as(*const IIndexableConcept.VTable, @ptrCast(self.vtable)).GetAt(@as(*const IIndexableConcept, @ptrCast(self)), contextObject, indexerCount, indexers, object, metadata); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IIndexableConcept_SetAt(self: *const T, contextObject: ?*IModelObject, indexerCount: u64, indexers: [*]?*IModelObject, value: ?*IModelObject) HRESULT { return @as(*const IIndexableConcept.VTable, @ptrCast(self.vtable)).SetAt(@as(*const IIndexableConcept, @ptrCast(self)), contextObject, indexerCount, indexers, value); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IPreferredRuntimeTypeConcept_Value = Guid.initString("9d6c1d7b-a76f-4618-8068-5f76bd9a4e8a"); pub const IID_IPreferredRuntimeTypeConcept = &IID_IPreferredRuntimeTypeConcept_Value; pub const IPreferredRuntimeTypeConcept = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, CastToPreferredRuntimeType: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IPreferredRuntimeTypeConcept, contextObject: ?*IModelObject, object: ?*?*IModelObject, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IPreferredRuntimeTypeConcept, contextObject: ?*IModelObject, object: ?*?*IModelObject, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPreferredRuntimeTypeConcept_CastToPreferredRuntimeType(self: *const T, contextObject: ?*IModelObject, object: ?*?*IModelObject) HRESULT { return @as(*const IPreferredRuntimeTypeConcept.VTable, @ptrCast(self.vtable)).CastToPreferredRuntimeType(@as(*const IPreferredRuntimeTypeConcept, @ptrCast(self)), contextObject, object); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IDebugHost_Value = Guid.initString("b8c74943-6b2c-4eeb-b5c5-35d378a6d99d"); pub const IID_IDebugHost = &IID_IDebugHost_Value; pub const IDebugHost = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, GetHostDefinedInterface: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugHost, hostUnk: ?*?*IUnknown, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugHost, hostUnk: ?*?*IUnknown, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetCurrentContext: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugHost, context: ?*?*IDebugHostContext, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugHost, context: ?*?*IDebugHostContext, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetDefaultMetadata: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugHost, defaultMetadataStore: ?*?*IKeyStore, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugHost, defaultMetadataStore: ?*?*IKeyStore, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugHost_GetHostDefinedInterface(self: *const T, hostUnk: ?*?*IUnknown) HRESULT { return @as(*const IDebugHost.VTable, @ptrCast(self.vtable)).GetHostDefinedInterface(@as(*const IDebugHost, @ptrCast(self)), hostUnk); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugHost_GetCurrentContext(self: *const T, context: ?*?*IDebugHostContext) HRESULT { return @as(*const IDebugHost.VTable, @ptrCast(self.vtable)).GetCurrentContext(@as(*const IDebugHost, @ptrCast(self)), context); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugHost_GetDefaultMetadata(self: *const T, defaultMetadataStore: ?*?*IKeyStore) HRESULT { return @as(*const IDebugHost.VTable, @ptrCast(self.vtable)).GetDefaultMetadata(@as(*const IDebugHost, @ptrCast(self)), defaultMetadataStore); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IDebugHostContext_Value = Guid.initString("a68c70d8-5ec0-46e5-b775-3134a48ea2e3"); pub const IID_IDebugHostContext = &IID_IDebugHostContext_Value; pub const IDebugHostContext = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, IsEqualTo: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugHostContext, pContext: ?*IDebugHostContext, pIsEqual: ?*bool, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugHostContext, pContext: ?*IDebugHostContext, pIsEqual: ?*bool, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugHostContext_IsEqualTo(self: *const T, pContext: ?*IDebugHostContext, pIsEqual: ?*bool) HRESULT { return @as(*const IDebugHostContext.VTable, @ptrCast(self.vtable)).IsEqualTo(@as(*const IDebugHostContext, @ptrCast(self)), pContext, pIsEqual); } }; } pub usingnamespace MethodMixin(@This()); }; pub const ErrorClass = enum(i32) { Warning = 0, Error = 1, }; pub const ErrorClassWarning = ErrorClass.Warning; pub const ErrorClassError = ErrorClass.Error; const IID_IDebugHostErrorSink_Value = Guid.initString("c8ff0f0b-fce9-467e-8bb3-5d69ef109c00"); pub const IID_IDebugHostErrorSink = &IID_IDebugHostErrorSink_Value; pub const IDebugHostErrorSink = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, ReportError: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugHostErrorSink, errClass: ErrorClass, hrError: HRESULT, message: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugHostErrorSink, errClass: ErrorClass, hrError: HRESULT, message: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugHostErrorSink_ReportError(self: *const T, errClass: ErrorClass, hrError: HRESULT, message: ?[*:0]const u16) HRESULT { return @as(*const IDebugHostErrorSink.VTable, @ptrCast(self.vtable)).ReportError(@as(*const IDebugHostErrorSink, @ptrCast(self)), errClass, hrError, message); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IDebugHostSymbol_Value = Guid.initString("0f819103-87de-4e96-8277-e05cd441fb22"); pub const IID_IDebugHostSymbol = &IID_IDebugHostSymbol_Value; pub const IDebugHostSymbol = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, GetContext: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugHostSymbol, context: ?*?*IDebugHostContext, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugHostSymbol, context: ?*?*IDebugHostContext, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, EnumerateChildren: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugHostSymbol, kind: SymbolKind, name: ?[*:0]const u16, ppEnum: ?*?*IDebugHostSymbolEnumerator, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugHostSymbol, kind: SymbolKind, name: ?[*:0]const u16, ppEnum: ?*?*IDebugHostSymbolEnumerator, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetSymbolKind: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugHostSymbol, kind: ?*SymbolKind, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugHostSymbol, kind: ?*SymbolKind, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetName: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugHostSymbol, symbolName: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugHostSymbol, symbolName: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetType: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugHostSymbol, type: ?*?*IDebugHostType, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugHostSymbol, type: ?*?*IDebugHostType, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetContainingModule: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugHostSymbol, containingModule: ?*?*IDebugHostModule, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugHostSymbol, containingModule: ?*?*IDebugHostModule, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, CompareAgainst: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugHostSymbol, pComparisonSymbol: ?*IDebugHostSymbol, comparisonFlags: u32, pMatches: ?*bool, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugHostSymbol, pComparisonSymbol: ?*IDebugHostSymbol, comparisonFlags: u32, pMatches: ?*bool, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugHostSymbol_GetContext(self: *const T, context: ?*?*IDebugHostContext) HRESULT { return @as(*const IDebugHostSymbol.VTable, @ptrCast(self.vtable)).GetContext(@as(*const IDebugHostSymbol, @ptrCast(self)), context); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugHostSymbol_EnumerateChildren(self: *const T, kind: SymbolKind, name: ?[*:0]const u16, ppEnum: ?*?*IDebugHostSymbolEnumerator) HRESULT { return @as(*const IDebugHostSymbol.VTable, @ptrCast(self.vtable)).EnumerateChildren(@as(*const IDebugHostSymbol, @ptrCast(self)), kind, name, ppEnum); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugHostSymbol_GetSymbolKind(self: *const T, kind: ?*SymbolKind) HRESULT { return @as(*const IDebugHostSymbol.VTable, @ptrCast(self.vtable)).GetSymbolKind(@as(*const IDebugHostSymbol, @ptrCast(self)), kind); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugHostSymbol_GetName(self: *const T, symbolName: ?*?BSTR) HRESULT { return @as(*const IDebugHostSymbol.VTable, @ptrCast(self.vtable)).GetName(@as(*const IDebugHostSymbol, @ptrCast(self)), symbolName); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugHostSymbol_GetType(self: *const T, type_: ?*?*IDebugHostType) HRESULT { return @as(*const IDebugHostSymbol.VTable, @ptrCast(self.vtable)).GetType(@as(*const IDebugHostSymbol, @ptrCast(self)), type_); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugHostSymbol_GetContainingModule(self: *const T, containingModule: ?*?*IDebugHostModule) HRESULT { return @as(*const IDebugHostSymbol.VTable, @ptrCast(self.vtable)).GetContainingModule(@as(*const IDebugHostSymbol, @ptrCast(self)), containingModule); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugHostSymbol_CompareAgainst(self: *const T, pComparisonSymbol: ?*IDebugHostSymbol, comparisonFlags: u32, pMatches: ?*bool) HRESULT { return @as(*const IDebugHostSymbol.VTable, @ptrCast(self.vtable)).CompareAgainst(@as(*const IDebugHostSymbol, @ptrCast(self)), pComparisonSymbol, comparisonFlags, pMatches); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IDebugHostSymbolEnumerator_Value = Guid.initString("28d96c86-10a3-4976-b14e-eaef4790aa1f"); pub const IID_IDebugHostSymbolEnumerator = &IID_IDebugHostSymbolEnumerator_Value; pub const IDebugHostSymbolEnumerator = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, Reset: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugHostSymbolEnumerator, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugHostSymbolEnumerator, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetNext: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugHostSymbolEnumerator, symbol: ?*?*IDebugHostSymbol, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugHostSymbolEnumerator, symbol: ?*?*IDebugHostSymbol, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugHostSymbolEnumerator_Reset(self: *const T) HRESULT { return @as(*const IDebugHostSymbolEnumerator.VTable, @ptrCast(self.vtable)).Reset(@as(*const IDebugHostSymbolEnumerator, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugHostSymbolEnumerator_GetNext(self: *const T, symbol: ?*?*IDebugHostSymbol) HRESULT { return @as(*const IDebugHostSymbolEnumerator.VTable, @ptrCast(self.vtable)).GetNext(@as(*const IDebugHostSymbolEnumerator, @ptrCast(self)), symbol); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IDebugHostModule_Value = Guid.initString("c9ba3e18-d070-4378-bbd0-34613b346e1e"); pub const IID_IDebugHostModule = &IID_IDebugHostModule_Value; pub const IDebugHostModule = extern struct { pub const VTable = extern struct { base: IDebugHostSymbol.VTable, GetImageName: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugHostModule, allowPath: u8, imageName: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugHostModule, allowPath: u8, imageName: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetBaseLocation: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugHostModule, moduleBaseLocation: ?*Location, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugHostModule, moduleBaseLocation: ?*Location, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetVersion: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugHostModule, fileVersion: ?*u64, productVersion: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugHostModule, fileVersion: ?*u64, productVersion: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, FindTypeByName: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugHostModule, typeName: ?[*:0]const u16, type: ?*?*IDebugHostType, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugHostModule, typeName: ?[*:0]const u16, type: ?*?*IDebugHostType, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, FindSymbolByRVA: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugHostModule, rva: u64, symbol: ?*?*IDebugHostSymbol, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugHostModule, rva: u64, symbol: ?*?*IDebugHostSymbol, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, FindSymbolByName: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugHostModule, symbolName: ?[*:0]const u16, symbol: ?*?*IDebugHostSymbol, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugHostModule, symbolName: ?[*:0]const u16, symbol: ?*?*IDebugHostSymbol, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IDebugHostSymbol.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugHostModule_GetImageName(self: *const T, allowPath: u8, imageName: ?*?BSTR) HRESULT { return @as(*const IDebugHostModule.VTable, @ptrCast(self.vtable)).GetImageName(@as(*const IDebugHostModule, @ptrCast(self)), allowPath, imageName); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugHostModule_GetBaseLocation(self: *const T, moduleBaseLocation: ?*Location) HRESULT { return @as(*const IDebugHostModule.VTable, @ptrCast(self.vtable)).GetBaseLocation(@as(*const IDebugHostModule, @ptrCast(self)), moduleBaseLocation); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugHostModule_GetVersion(self: *const T, fileVersion: ?*u64, productVersion: ?*u64) HRESULT { return @as(*const IDebugHostModule.VTable, @ptrCast(self.vtable)).GetVersion(@as(*const IDebugHostModule, @ptrCast(self)), fileVersion, productVersion); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugHostModule_FindTypeByName(self: *const T, typeName: ?[*:0]const u16, type_: ?*?*IDebugHostType) HRESULT { return @as(*const IDebugHostModule.VTable, @ptrCast(self.vtable)).FindTypeByName(@as(*const IDebugHostModule, @ptrCast(self)), typeName, type_); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugHostModule_FindSymbolByRVA(self: *const T, rva: u64, symbol: ?*?*IDebugHostSymbol) HRESULT { return @as(*const IDebugHostModule.VTable, @ptrCast(self.vtable)).FindSymbolByRVA(@as(*const IDebugHostModule, @ptrCast(self)), rva, symbol); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugHostModule_FindSymbolByName(self: *const T, symbolName: ?[*:0]const u16, symbol: ?*?*IDebugHostSymbol) HRESULT { return @as(*const IDebugHostModule.VTable, @ptrCast(self.vtable)).FindSymbolByName(@as(*const IDebugHostModule, @ptrCast(self)), symbolName, symbol); } }; } pub usingnamespace MethodMixin(@This()); }; pub const ArrayDimension = extern struct { LowerBound: i64, Length: u64, Stride: u64, }; const IID_IDebugHostType_Value = Guid.initString("3aadc353-2b14-4abb-9893-5e03458e07ee"); pub const IID_IDebugHostType = &IID_IDebugHostType_Value; pub const IDebugHostType = extern struct { pub const VTable = extern struct { base: IDebugHostSymbol.VTable, GetTypeKind: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugHostType, kind: ?*TypeKind, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugHostType, kind: ?*TypeKind, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetSize: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugHostType, size: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugHostType, size: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetBaseType: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugHostType, baseType: ?*?*IDebugHostType, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugHostType, baseType: ?*?*IDebugHostType, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetHashCode: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugHostType, hashCode: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugHostType, hashCode: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetIntrinsicType: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugHostType, intrinsicKind: ?*IntrinsicKind, carrierType: ?*u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugHostType, intrinsicKind: ?*IntrinsicKind, carrierType: ?*u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetBitField: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugHostType, lsbOfField: ?*u32, lengthOfField: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugHostType, lsbOfField: ?*u32, lengthOfField: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetPointerKind: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugHostType, pointerKind: ?*PointerKind, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugHostType, pointerKind: ?*PointerKind, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetMemberType: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugHostType, memberType: ?*?*IDebugHostType, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugHostType, memberType: ?*?*IDebugHostType, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, CreatePointerTo: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugHostType, kind: PointerKind, newType: ?*?*IDebugHostType, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugHostType, kind: PointerKind, newType: ?*?*IDebugHostType, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetArrayDimensionality: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugHostType, arrayDimensionality: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugHostType, arrayDimensionality: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetArrayDimensions: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugHostType, dimensions: u64, pDimensions: [*]ArrayDimension, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugHostType, dimensions: u64, pDimensions: [*]ArrayDimension, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, CreateArrayOf: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugHostType, dimensions: u64, pDimensions: [*]ArrayDimension, newType: ?*?*IDebugHostType, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugHostType, dimensions: u64, pDimensions: [*]ArrayDimension, newType: ?*?*IDebugHostType, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetFunctionCallingConvention: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugHostType, conventionKind: ?*CallingConventionKind, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugHostType, conventionKind: ?*CallingConventionKind, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetFunctionReturnType: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugHostType, returnType: ?*?*IDebugHostType, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugHostType, returnType: ?*?*IDebugHostType, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetFunctionParameterTypeCount: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugHostType, count: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugHostType, count: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetFunctionParameterTypeAt: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugHostType, i: u64, parameterType: ?*?*IDebugHostType, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugHostType, i: u64, parameterType: ?*?*IDebugHostType, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, IsGeneric: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugHostType, isGeneric: ?*bool, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugHostType, isGeneric: ?*bool, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetGenericArgumentCount: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugHostType, argCount: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugHostType, argCount: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetGenericArgumentAt: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugHostType, i: u64, argument: ?*?*IDebugHostSymbol, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugHostType, i: u64, argument: ?*?*IDebugHostSymbol, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IDebugHostSymbol.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugHostType_GetTypeKind(self: *const T, kind: ?*TypeKind) HRESULT { return @as(*const IDebugHostType.VTable, @ptrCast(self.vtable)).GetTypeKind(@as(*const IDebugHostType, @ptrCast(self)), kind); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugHostType_GetSize(self: *const T, size: ?*u64) HRESULT { return @as(*const IDebugHostType.VTable, @ptrCast(self.vtable)).GetSize(@as(*const IDebugHostType, @ptrCast(self)), size); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugHostType_GetBaseType(self: *const T, baseType: ?*?*IDebugHostType) HRESULT { return @as(*const IDebugHostType.VTable, @ptrCast(self.vtable)).GetBaseType(@as(*const IDebugHostType, @ptrCast(self)), baseType); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugHostType_GetHashCode(self: *const T, hashCode: ?*u32) HRESULT { return @as(*const IDebugHostType.VTable, @ptrCast(self.vtable)).GetHashCode(@as(*const IDebugHostType, @ptrCast(self)), hashCode); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugHostType_GetIntrinsicType(self: *const T, intrinsicKind: ?*IntrinsicKind, carrierType: ?*u16) HRESULT { return @as(*const IDebugHostType.VTable, @ptrCast(self.vtable)).GetIntrinsicType(@as(*const IDebugHostType, @ptrCast(self)), intrinsicKind, carrierType); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugHostType_GetBitField(self: *const T, lsbOfField: ?*u32, lengthOfField: ?*u32) HRESULT { return @as(*const IDebugHostType.VTable, @ptrCast(self.vtable)).GetBitField(@as(*const IDebugHostType, @ptrCast(self)), lsbOfField, lengthOfField); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugHostType_GetPointerKind(self: *const T, pointerKind: ?*PointerKind) HRESULT { return @as(*const IDebugHostType.VTable, @ptrCast(self.vtable)).GetPointerKind(@as(*const IDebugHostType, @ptrCast(self)), pointerKind); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugHostType_GetMemberType(self: *const T, memberType: ?*?*IDebugHostType) HRESULT { return @as(*const IDebugHostType.VTable, @ptrCast(self.vtable)).GetMemberType(@as(*const IDebugHostType, @ptrCast(self)), memberType); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugHostType_CreatePointerTo(self: *const T, kind: PointerKind, newType: ?*?*IDebugHostType) HRESULT { return @as(*const IDebugHostType.VTable, @ptrCast(self.vtable)).CreatePointerTo(@as(*const IDebugHostType, @ptrCast(self)), kind, newType); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugHostType_GetArrayDimensionality(self: *const T, arrayDimensionality: ?*u64) HRESULT { return @as(*const IDebugHostType.VTable, @ptrCast(self.vtable)).GetArrayDimensionality(@as(*const IDebugHostType, @ptrCast(self)), arrayDimensionality); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugHostType_GetArrayDimensions(self: *const T, dimensions: u64, pDimensions: [*]ArrayDimension) HRESULT { return @as(*const IDebugHostType.VTable, @ptrCast(self.vtable)).GetArrayDimensions(@as(*const IDebugHostType, @ptrCast(self)), dimensions, pDimensions); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugHostType_CreateArrayOf(self: *const T, dimensions: u64, pDimensions: [*]ArrayDimension, newType: ?*?*IDebugHostType) HRESULT { return @as(*const IDebugHostType.VTable, @ptrCast(self.vtable)).CreateArrayOf(@as(*const IDebugHostType, @ptrCast(self)), dimensions, pDimensions, newType); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugHostType_GetFunctionCallingConvention(self: *const T, conventionKind: ?*CallingConventionKind) HRESULT { return @as(*const IDebugHostType.VTable, @ptrCast(self.vtable)).GetFunctionCallingConvention(@as(*const IDebugHostType, @ptrCast(self)), conventionKind); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugHostType_GetFunctionReturnType(self: *const T, returnType: ?*?*IDebugHostType) HRESULT { return @as(*const IDebugHostType.VTable, @ptrCast(self.vtable)).GetFunctionReturnType(@as(*const IDebugHostType, @ptrCast(self)), returnType); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugHostType_GetFunctionParameterTypeCount(self: *const T, count: ?*u64) HRESULT { return @as(*const IDebugHostType.VTable, @ptrCast(self.vtable)).GetFunctionParameterTypeCount(@as(*const IDebugHostType, @ptrCast(self)), count); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugHostType_GetFunctionParameterTypeAt(self: *const T, i: u64, parameterType: ?*?*IDebugHostType) HRESULT { return @as(*const IDebugHostType.VTable, @ptrCast(self.vtable)).GetFunctionParameterTypeAt(@as(*const IDebugHostType, @ptrCast(self)), i, parameterType); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugHostType_IsGeneric(self: *const T, isGeneric: ?*bool) HRESULT { return @as(*const IDebugHostType.VTable, @ptrCast(self.vtable)).IsGeneric(@as(*const IDebugHostType, @ptrCast(self)), isGeneric); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugHostType_GetGenericArgumentCount(self: *const T, argCount: ?*u64) HRESULT { return @as(*const IDebugHostType.VTable, @ptrCast(self.vtable)).GetGenericArgumentCount(@as(*const IDebugHostType, @ptrCast(self)), argCount); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugHostType_GetGenericArgumentAt(self: *const T, i: u64, argument: ?*?*IDebugHostSymbol) HRESULT { return @as(*const IDebugHostType.VTable, @ptrCast(self.vtable)).GetGenericArgumentAt(@as(*const IDebugHostType, @ptrCast(self)), i, argument); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IDebugHostConstant_Value = Guid.initString("62787edc-fa76-4690-bd71-5e8c3e2937ec"); pub const IID_IDebugHostConstant = &IID_IDebugHostConstant_Value; pub const IDebugHostConstant = extern struct { pub const VTable = extern struct { base: IDebugHostSymbol.VTable, GetValue: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugHostConstant, value: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugHostConstant, value: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IDebugHostSymbol.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugHostConstant_GetValue(self: *const T, value: ?*VARIANT) HRESULT { return @as(*const IDebugHostConstant.VTable, @ptrCast(self.vtable)).GetValue(@as(*const IDebugHostConstant, @ptrCast(self)), value); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IDebugHostField_Value = Guid.initString("e06f6495-16bc-4cc9-b11d-2a6b23fa72f3"); pub const IID_IDebugHostField = &IID_IDebugHostField_Value; pub const IDebugHostField = extern struct { pub const VTable = extern struct { base: IDebugHostSymbol.VTable, GetLocationKind: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugHostField, locationKind: ?*LocationKind, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugHostField, locationKind: ?*LocationKind, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetOffset: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugHostField, offset: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugHostField, offset: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetLocation: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugHostField, location: ?*Location, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugHostField, location: ?*Location, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetValue: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugHostField, value: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugHostField, value: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IDebugHostSymbol.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugHostField_GetLocationKind(self: *const T, locationKind: ?*LocationKind) HRESULT { return @as(*const IDebugHostField.VTable, @ptrCast(self.vtable)).GetLocationKind(@as(*const IDebugHostField, @ptrCast(self)), locationKind); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugHostField_GetOffset(self: *const T, offset: ?*u64) HRESULT { return @as(*const IDebugHostField.VTable, @ptrCast(self.vtable)).GetOffset(@as(*const IDebugHostField, @ptrCast(self)), offset); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugHostField_GetLocation(self: *const T, location: ?*Location) HRESULT { return @as(*const IDebugHostField.VTable, @ptrCast(self.vtable)).GetLocation(@as(*const IDebugHostField, @ptrCast(self)), location); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugHostField_GetValue(self: *const T, value: ?*VARIANT) HRESULT { return @as(*const IDebugHostField.VTable, @ptrCast(self.vtable)).GetValue(@as(*const IDebugHostField, @ptrCast(self)), value); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IDebugHostData_Value = Guid.initString("a3d64993-826c-44fa-897d-926f2fe7ad0b"); pub const IID_IDebugHostData = &IID_IDebugHostData_Value; pub const IDebugHostData = extern struct { pub const VTable = extern struct { base: IDebugHostSymbol.VTable, GetLocationKind: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugHostData, locationKind: ?*LocationKind, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugHostData, locationKind: ?*LocationKind, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetLocation: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugHostData, location: ?*Location, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugHostData, location: ?*Location, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetValue: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugHostData, value: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugHostData, value: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IDebugHostSymbol.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugHostData_GetLocationKind(self: *const T, locationKind: ?*LocationKind) HRESULT { return @as(*const IDebugHostData.VTable, @ptrCast(self.vtable)).GetLocationKind(@as(*const IDebugHostData, @ptrCast(self)), locationKind); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugHostData_GetLocation(self: *const T, location: ?*Location) HRESULT { return @as(*const IDebugHostData.VTable, @ptrCast(self.vtable)).GetLocation(@as(*const IDebugHostData, @ptrCast(self)), location); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugHostData_GetValue(self: *const T, value: ?*VARIANT) HRESULT { return @as(*const IDebugHostData.VTable, @ptrCast(self.vtable)).GetValue(@as(*const IDebugHostData, @ptrCast(self)), value); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IDebugHostPublic_Value = Guid.initString("6c597ac9-fb4d-4f6d-9f39-22488539f8f4"); pub const IID_IDebugHostPublic = &IID_IDebugHostPublic_Value; pub const IDebugHostPublic = extern struct { pub const VTable = extern struct { base: IDebugHostSymbol.VTable, GetLocationKind: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugHostPublic, locationKind: ?*LocationKind, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugHostPublic, locationKind: ?*LocationKind, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetLocation: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugHostPublic, location: ?*Location, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugHostPublic, location: ?*Location, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IDebugHostSymbol.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugHostPublic_GetLocationKind(self: *const T, locationKind: ?*LocationKind) HRESULT { return @as(*const IDebugHostPublic.VTable, @ptrCast(self.vtable)).GetLocationKind(@as(*const IDebugHostPublic, @ptrCast(self)), locationKind); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugHostPublic_GetLocation(self: *const T, location: ?*Location) HRESULT { return @as(*const IDebugHostPublic.VTable, @ptrCast(self.vtable)).GetLocation(@as(*const IDebugHostPublic, @ptrCast(self)), location); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IDebugHostBaseClass_Value = Guid.initString("b94d57d2-390b-40f7-b5b4-b6db897d974b"); pub const IID_IDebugHostBaseClass = &IID_IDebugHostBaseClass_Value; pub const IDebugHostBaseClass = extern struct { pub const VTable = extern struct { base: IDebugHostSymbol.VTable, GetOffset: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugHostBaseClass, offset: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugHostBaseClass, offset: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IDebugHostSymbol.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugHostBaseClass_GetOffset(self: *const T, offset: ?*u64) HRESULT { return @as(*const IDebugHostBaseClass.VTable, @ptrCast(self.vtable)).GetOffset(@as(*const IDebugHostBaseClass, @ptrCast(self)), offset); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IDebugHostSymbols_Value = Guid.initString("854fd751-c2e1-4eb2-b525-6619cb97a588"); pub const IID_IDebugHostSymbols = &IID_IDebugHostSymbols_Value; pub const IDebugHostSymbols = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, CreateModuleSignature: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugHostSymbols, pwszModuleName: ?[*:0]const u16, pwszMinVersion: ?[*:0]const u16, pwszMaxVersion: ?[*:0]const u16, ppModuleSignature: ?*?*IDebugHostModuleSignature, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugHostSymbols, pwszModuleName: ?[*:0]const u16, pwszMinVersion: ?[*:0]const u16, pwszMaxVersion: ?[*:0]const u16, ppModuleSignature: ?*?*IDebugHostModuleSignature, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, CreateTypeSignature: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugHostSymbols, signatureSpecification: ?[*:0]const u16, module: ?*IDebugHostModule, typeSignature: ?*?*IDebugHostTypeSignature, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugHostSymbols, signatureSpecification: ?[*:0]const u16, module: ?*IDebugHostModule, typeSignature: ?*?*IDebugHostTypeSignature, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, CreateTypeSignatureForModuleRange: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugHostSymbols, signatureSpecification: ?[*:0]const u16, moduleName: ?[*:0]const u16, minVersion: ?[*:0]const u16, maxVersion: ?[*:0]const u16, typeSignature: ?*?*IDebugHostTypeSignature, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugHostSymbols, signatureSpecification: ?[*:0]const u16, moduleName: ?[*:0]const u16, minVersion: ?[*:0]const u16, maxVersion: ?[*:0]const u16, typeSignature: ?*?*IDebugHostTypeSignature, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, EnumerateModules: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugHostSymbols, context: ?*IDebugHostContext, moduleEnum: ?*?*IDebugHostSymbolEnumerator, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugHostSymbols, context: ?*IDebugHostContext, moduleEnum: ?*?*IDebugHostSymbolEnumerator, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, FindModuleByName: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugHostSymbols, context: ?*IDebugHostContext, moduleName: ?[*:0]const u16, module: ?*?*IDebugHostModule, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugHostSymbols, context: ?*IDebugHostContext, moduleName: ?[*:0]const u16, module: ?*?*IDebugHostModule, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, FindModuleByLocation: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugHostSymbols, context: ?*IDebugHostContext, moduleLocation: Location, module: ?*?*IDebugHostModule, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugHostSymbols, context: ?*IDebugHostContext, moduleLocation: Location, module: ?*?*IDebugHostModule, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetMostDerivedObject: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugHostSymbols, pContext: ?*IDebugHostContext, location: Location, objectType: ?*IDebugHostType, derivedLocation: ?*Location, derivedType: ?*?*IDebugHostType, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugHostSymbols, pContext: ?*IDebugHostContext, location: Location, objectType: ?*IDebugHostType, derivedLocation: ?*Location, derivedType: ?*?*IDebugHostType, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugHostSymbols_CreateModuleSignature(self: *const T, pwszModuleName: ?[*:0]const u16, pwszMinVersion: ?[*:0]const u16, pwszMaxVersion: ?[*:0]const u16, ppModuleSignature: ?*?*IDebugHostModuleSignature) HRESULT { return @as(*const IDebugHostSymbols.VTable, @ptrCast(self.vtable)).CreateModuleSignature(@as(*const IDebugHostSymbols, @ptrCast(self)), pwszModuleName, pwszMinVersion, pwszMaxVersion, ppModuleSignature); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugHostSymbols_CreateTypeSignature(self: *const T, signatureSpecification: ?[*:0]const u16, module: ?*IDebugHostModule, typeSignature: ?*?*IDebugHostTypeSignature) HRESULT { return @as(*const IDebugHostSymbols.VTable, @ptrCast(self.vtable)).CreateTypeSignature(@as(*const IDebugHostSymbols, @ptrCast(self)), signatureSpecification, module, typeSignature); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugHostSymbols_CreateTypeSignatureForModuleRange(self: *const T, signatureSpecification: ?[*:0]const u16, moduleName: ?[*:0]const u16, minVersion: ?[*:0]const u16, maxVersion: ?[*:0]const u16, typeSignature: ?*?*IDebugHostTypeSignature) HRESULT { return @as(*const IDebugHostSymbols.VTable, @ptrCast(self.vtable)).CreateTypeSignatureForModuleRange(@as(*const IDebugHostSymbols, @ptrCast(self)), signatureSpecification, moduleName, minVersion, maxVersion, typeSignature); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugHostSymbols_EnumerateModules(self: *const T, context: ?*IDebugHostContext, moduleEnum: ?*?*IDebugHostSymbolEnumerator) HRESULT { return @as(*const IDebugHostSymbols.VTable, @ptrCast(self.vtable)).EnumerateModules(@as(*const IDebugHostSymbols, @ptrCast(self)), context, moduleEnum); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugHostSymbols_FindModuleByName(self: *const T, context: ?*IDebugHostContext, moduleName: ?[*:0]const u16, module: ?*?*IDebugHostModule) HRESULT { return @as(*const IDebugHostSymbols.VTable, @ptrCast(self.vtable)).FindModuleByName(@as(*const IDebugHostSymbols, @ptrCast(self)), context, moduleName, module); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugHostSymbols_FindModuleByLocation(self: *const T, context: ?*IDebugHostContext, moduleLocation: Location, module: ?*?*IDebugHostModule) HRESULT { return @as(*const IDebugHostSymbols.VTable, @ptrCast(self.vtable)).FindModuleByLocation(@as(*const IDebugHostSymbols, @ptrCast(self)), context, moduleLocation, module); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugHostSymbols_GetMostDerivedObject(self: *const T, pContext: ?*IDebugHostContext, location: Location, objectType: ?*IDebugHostType, derivedLocation: ?*Location, derivedType: ?*?*IDebugHostType) HRESULT { return @as(*const IDebugHostSymbols.VTable, @ptrCast(self.vtable)).GetMostDerivedObject(@as(*const IDebugHostSymbols, @ptrCast(self)), pContext, location, objectType, derivedLocation, derivedType); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IDebugHostMemory_Value = Guid.initString("212149c9-9183-4a3e-b00e-4fd1dc95339b"); pub const IID_IDebugHostMemory = &IID_IDebugHostMemory_Value; pub const IDebugHostMemory = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, ReadBytes: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugHostMemory, context: ?*IDebugHostContext, location: Location, // TODO: what to do with BytesParamIndex 3? buffer: ?*anyopaque, bufferSize: u64, bytesRead: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugHostMemory, context: ?*IDebugHostContext, location: Location, // TODO: what to do with BytesParamIndex 3? buffer: ?*anyopaque, bufferSize: u64, bytesRead: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, WriteBytes: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugHostMemory, context: ?*IDebugHostContext, location: Location, // TODO: what to do with BytesParamIndex 3? buffer: ?*anyopaque, bufferSize: u64, bytesWritten: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugHostMemory, context: ?*IDebugHostContext, location: Location, // TODO: what to do with BytesParamIndex 3? buffer: ?*anyopaque, bufferSize: u64, bytesWritten: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, ReadPointers: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugHostMemory, context: ?*IDebugHostContext, location: Location, count: u64, pointers: [*]u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugHostMemory, context: ?*IDebugHostContext, location: Location, count: u64, pointers: [*]u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, WritePointers: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugHostMemory, context: ?*IDebugHostContext, location: Location, count: u64, pointers: [*]u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugHostMemory, context: ?*IDebugHostContext, location: Location, count: u64, pointers: [*]u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetDisplayStringForLocation: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugHostMemory, context: ?*IDebugHostContext, location: Location, verbose: u8, locationName: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugHostMemory, context: ?*IDebugHostContext, location: Location, verbose: u8, locationName: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugHostMemory_ReadBytes(self: *const T, context: ?*IDebugHostContext, location: Location, buffer: ?*anyopaque, bufferSize: u64, bytesRead: ?*u64) HRESULT { return @as(*const IDebugHostMemory.VTable, @ptrCast(self.vtable)).ReadBytes(@as(*const IDebugHostMemory, @ptrCast(self)), context, location, buffer, bufferSize, bytesRead); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugHostMemory_WriteBytes(self: *const T, context: ?*IDebugHostContext, location: Location, buffer: ?*anyopaque, bufferSize: u64, bytesWritten: ?*u64) HRESULT { return @as(*const IDebugHostMemory.VTable, @ptrCast(self.vtable)).WriteBytes(@as(*const IDebugHostMemory, @ptrCast(self)), context, location, buffer, bufferSize, bytesWritten); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugHostMemory_ReadPointers(self: *const T, context: ?*IDebugHostContext, location: Location, count: u64, pointers: [*]u64) HRESULT { return @as(*const IDebugHostMemory.VTable, @ptrCast(self.vtable)).ReadPointers(@as(*const IDebugHostMemory, @ptrCast(self)), context, location, count, pointers); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugHostMemory_WritePointers(self: *const T, context: ?*IDebugHostContext, location: Location, count: u64, pointers: [*]u64) HRESULT { return @as(*const IDebugHostMemory.VTable, @ptrCast(self.vtable)).WritePointers(@as(*const IDebugHostMemory, @ptrCast(self)), context, location, count, pointers); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugHostMemory_GetDisplayStringForLocation(self: *const T, context: ?*IDebugHostContext, location: Location, verbose: u8, locationName: ?*?BSTR) HRESULT { return @as(*const IDebugHostMemory.VTable, @ptrCast(self.vtable)).GetDisplayStringForLocation(@as(*const IDebugHostMemory, @ptrCast(self)), context, location, verbose, locationName); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IDebugHostEvaluator_Value = Guid.initString("0fef9a21-577e-4997-ac7b-1c4883241d99"); pub const IID_IDebugHostEvaluator = &IID_IDebugHostEvaluator_Value; pub const IDebugHostEvaluator = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, EvaluateExpression: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugHostEvaluator, context: ?*IDebugHostContext, expression: ?[*:0]const u16, bindingContext: ?*IModelObject, result: ?*?*IModelObject, metadata: ?*?*IKeyStore, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugHostEvaluator, context: ?*IDebugHostContext, expression: ?[*:0]const u16, bindingContext: ?*IModelObject, result: ?*?*IModelObject, metadata: ?*?*IKeyStore, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, EvaluateExtendedExpression: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugHostEvaluator, context: ?*IDebugHostContext, expression: ?[*:0]const u16, bindingContext: ?*IModelObject, result: ?*?*IModelObject, metadata: ?*?*IKeyStore, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugHostEvaluator, context: ?*IDebugHostContext, expression: ?[*:0]const u16, bindingContext: ?*IModelObject, result: ?*?*IModelObject, metadata: ?*?*IKeyStore, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugHostEvaluator_EvaluateExpression(self: *const T, context: ?*IDebugHostContext, expression: ?[*:0]const u16, bindingContext: ?*IModelObject, result: ?*?*IModelObject, metadata: ?*?*IKeyStore) HRESULT { return @as(*const IDebugHostEvaluator.VTable, @ptrCast(self.vtable)).EvaluateExpression(@as(*const IDebugHostEvaluator, @ptrCast(self)), context, expression, bindingContext, result, metadata); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugHostEvaluator_EvaluateExtendedExpression(self: *const T, context: ?*IDebugHostContext, expression: ?[*:0]const u16, bindingContext: ?*IModelObject, result: ?*?*IModelObject, metadata: ?*?*IKeyStore) HRESULT { return @as(*const IDebugHostEvaluator.VTable, @ptrCast(self.vtable)).EvaluateExtendedExpression(@as(*const IDebugHostEvaluator, @ptrCast(self)), context, expression, bindingContext, result, metadata); } }; } pub usingnamespace MethodMixin(@This()); }; pub const SignatureComparison = enum(i32) { Unrelated = 0, Ambiguous = 1, LessSpecific = 2, MoreSpecific = 3, Identical = 4, }; pub const Unrelated = SignatureComparison.Unrelated; pub const Ambiguous = SignatureComparison.Ambiguous; pub const LessSpecific = SignatureComparison.LessSpecific; pub const MoreSpecific = SignatureComparison.MoreSpecific; pub const Identical = SignatureComparison.Identical; const IID_IDebugHostModuleSignature_Value = Guid.initString("31e53a5a-01ee-4bbb-b899-4b46ae7d595c"); pub const IID_IDebugHostModuleSignature = &IID_IDebugHostModuleSignature_Value; pub const IDebugHostModuleSignature = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, IsMatch: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugHostModuleSignature, pModule: ?*IDebugHostModule, isMatch: ?*bool, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugHostModuleSignature, pModule: ?*IDebugHostModule, isMatch: ?*bool, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugHostModuleSignature_IsMatch(self: *const T, pModule: ?*IDebugHostModule, isMatch: ?*bool) HRESULT { return @as(*const IDebugHostModuleSignature.VTable, @ptrCast(self.vtable)).IsMatch(@as(*const IDebugHostModuleSignature, @ptrCast(self)), pModule, isMatch); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IDebugHostTypeSignature_Value = Guid.initString("3aadc353-2b14-4abb-9893-5e03458e07ee"); pub const IID_IDebugHostTypeSignature = &IID_IDebugHostTypeSignature_Value; pub const IDebugHostTypeSignature = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, GetHashCode: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugHostTypeSignature, hashCode: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugHostTypeSignature, hashCode: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, IsMatch: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugHostTypeSignature, type: ?*IDebugHostType, isMatch: ?*bool, wildcardMatches: ?*?*IDebugHostSymbolEnumerator, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugHostTypeSignature, type: ?*IDebugHostType, isMatch: ?*bool, wildcardMatches: ?*?*IDebugHostSymbolEnumerator, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, CompareAgainst: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugHostTypeSignature, typeSignature: ?*IDebugHostTypeSignature, result: ?*SignatureComparison, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugHostTypeSignature, typeSignature: ?*IDebugHostTypeSignature, result: ?*SignatureComparison, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugHostTypeSignature_GetHashCode(self: *const T, hashCode: ?*u32) HRESULT { return @as(*const IDebugHostTypeSignature.VTable, @ptrCast(self.vtable)).GetHashCode(@as(*const IDebugHostTypeSignature, @ptrCast(self)), hashCode); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugHostTypeSignature_IsMatch(self: *const T, type_: ?*IDebugHostType, isMatch: ?*bool, wildcardMatches: ?*?*IDebugHostSymbolEnumerator) HRESULT { return @as(*const IDebugHostTypeSignature.VTable, @ptrCast(self.vtable)).IsMatch(@as(*const IDebugHostTypeSignature, @ptrCast(self)), type_, isMatch, wildcardMatches); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugHostTypeSignature_CompareAgainst(self: *const T, typeSignature: ?*IDebugHostTypeSignature, result: ?*SignatureComparison) HRESULT { return @as(*const IDebugHostTypeSignature.VTable, @ptrCast(self.vtable)).CompareAgainst(@as(*const IDebugHostTypeSignature, @ptrCast(self)), typeSignature, result); } }; } pub usingnamespace MethodMixin(@This()); }; pub const SymbolSearchOptions = enum(i32) { None = 0, Completion = 1, CaseInsensitive = 2, }; pub const SymbolSearchNone = SymbolSearchOptions.None; pub const SymbolSearchCompletion = SymbolSearchOptions.Completion; pub const SymbolSearchCaseInsensitive = SymbolSearchOptions.CaseInsensitive; pub const LanguageKind = enum(i32) { Unknown = 0, C = 1, CPP = 2, Assembly = 3, }; pub const LanguageUnknown = LanguageKind.Unknown; pub const LanguageC = LanguageKind.C; pub const LanguageCPP = LanguageKind.CPP; pub const LanguageAssembly = LanguageKind.Assembly; const IID_IDebugHostSymbol2_Value = Guid.initString("21515b67-6720-4257-8a68-077dc944471c"); pub const IID_IDebugHostSymbol2 = &IID_IDebugHostSymbol2_Value; pub const IDebugHostSymbol2 = extern struct { pub const VTable = extern struct { base: IDebugHostSymbol.VTable, GetLanguage: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugHostSymbol2, pKind: ?*LanguageKind, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugHostSymbol2, pKind: ?*LanguageKind, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IDebugHostSymbol.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugHostSymbol2_GetLanguage(self: *const T, pKind: ?*LanguageKind) HRESULT { return @as(*const IDebugHostSymbol2.VTable, @ptrCast(self.vtable)).GetLanguage(@as(*const IDebugHostSymbol2, @ptrCast(self)), pKind); } }; } pub usingnamespace MethodMixin(@This()); }; pub const VarArgsKind = enum(i32) { None = 0, CStyle = 1, }; pub const VarArgsNone = VarArgsKind.None; pub const VarArgsCStyle = VarArgsKind.CStyle; const IID_IDebugHostType2_Value = Guid.initString("b28632b9-8506-4676-87ce-8f7e05e59876"); pub const IID_IDebugHostType2 = &IID_IDebugHostType2_Value; pub const IDebugHostType2 = extern struct { pub const VTable = extern struct { base: IDebugHostType.VTable, IsTypedef: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugHostType2, isTypedef: ?*bool, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugHostType2, isTypedef: ?*bool, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetTypedefBaseType: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugHostType2, baseType: ?*?*IDebugHostType2, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugHostType2, baseType: ?*?*IDebugHostType2, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetTypedefFinalBaseType: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugHostType2, finalBaseType: ?*?*IDebugHostType2, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugHostType2, finalBaseType: ?*?*IDebugHostType2, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetFunctionVarArgsKind: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugHostType2, varArgsKind: ?*VarArgsKind, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugHostType2, varArgsKind: ?*VarArgsKind, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetFunctionInstancePointerType: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugHostType2, instancePointerType: ?*?*IDebugHostType2, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugHostType2, instancePointerType: ?*?*IDebugHostType2, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IDebugHostType.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugHostType2_IsTypedef(self: *const T, isTypedef: ?*bool) HRESULT { return @as(*const IDebugHostType2.VTable, @ptrCast(self.vtable)).IsTypedef(@as(*const IDebugHostType2, @ptrCast(self)), isTypedef); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugHostType2_GetTypedefBaseType(self: *const T, baseType: ?*?*IDebugHostType2) HRESULT { return @as(*const IDebugHostType2.VTable, @ptrCast(self.vtable)).GetTypedefBaseType(@as(*const IDebugHostType2, @ptrCast(self)), baseType); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugHostType2_GetTypedefFinalBaseType(self: *const T, finalBaseType: ?*?*IDebugHostType2) HRESULT { return @as(*const IDebugHostType2.VTable, @ptrCast(self.vtable)).GetTypedefFinalBaseType(@as(*const IDebugHostType2, @ptrCast(self)), finalBaseType); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugHostType2_GetFunctionVarArgsKind(self: *const T, varArgsKind: ?*VarArgsKind) HRESULT { return @as(*const IDebugHostType2.VTable, @ptrCast(self.vtable)).GetFunctionVarArgsKind(@as(*const IDebugHostType2, @ptrCast(self)), varArgsKind); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugHostType2_GetFunctionInstancePointerType(self: *const T, instancePointerType: ?*?*IDebugHostType2) HRESULT { return @as(*const IDebugHostType2.VTable, @ptrCast(self.vtable)).GetFunctionInstancePointerType(@as(*const IDebugHostType2, @ptrCast(self)), instancePointerType); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IDebugHostStatus_Value = Guid.initString("4f3e1ce2-86b2-4c7a-9c65-d0a9d0eecf44"); pub const IID_IDebugHostStatus = &IID_IDebugHostStatus_Value; pub const IDebugHostStatus = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, PollUserInterrupt: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugHostStatus, interruptRequested: ?*bool, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugHostStatus, interruptRequested: ?*bool, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugHostStatus_PollUserInterrupt(self: *const T, interruptRequested: ?*bool) HRESULT { return @as(*const IDebugHostStatus.VTable, @ptrCast(self.vtable)).PollUserInterrupt(@as(*const IDebugHostStatus, @ptrCast(self)), interruptRequested); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IDataModelScriptClient_Value = Guid.initString("3b362b0e-89f0-46c6-a663-dfdc95194aef"); pub const IID_IDataModelScriptClient = &IID_IDataModelScriptClient_Value; pub const IDataModelScriptClient = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, ReportError: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDataModelScriptClient, errClass: ErrorClass, hrFail: HRESULT, message: ?[*:0]const u16, line: u32, position: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDataModelScriptClient, errClass: ErrorClass, hrFail: HRESULT, message: ?[*:0]const u16, line: u32, position: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDataModelScriptClient_ReportError(self: *const T, errClass: ErrorClass, hrFail: HRESULT, message: ?[*:0]const u16, line: u32, position: u32) HRESULT { return @as(*const IDataModelScriptClient.VTable, @ptrCast(self.vtable)).ReportError(@as(*const IDataModelScriptClient, @ptrCast(self)), errClass, hrFail, message, line, position); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IDataModelScriptTemplate_Value = Guid.initString("1303dec4-fa3b-4f1b-9224-b953d16babb5"); pub const IID_IDataModelScriptTemplate = &IID_IDataModelScriptTemplate_Value; pub const IDataModelScriptTemplate = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, GetName: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDataModelScriptTemplate, templateName: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDataModelScriptTemplate, templateName: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetDescription: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDataModelScriptTemplate, templateDescription: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDataModelScriptTemplate, templateDescription: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetContent: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDataModelScriptTemplate, contentStream: ?*?*IStream, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDataModelScriptTemplate, contentStream: ?*?*IStream, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDataModelScriptTemplate_GetName(self: *const T, templateName: ?*?BSTR) HRESULT { return @as(*const IDataModelScriptTemplate.VTable, @ptrCast(self.vtable)).GetName(@as(*const IDataModelScriptTemplate, @ptrCast(self)), templateName); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDataModelScriptTemplate_GetDescription(self: *const T, templateDescription: ?*?BSTR) HRESULT { return @as(*const IDataModelScriptTemplate.VTable, @ptrCast(self.vtable)).GetDescription(@as(*const IDataModelScriptTemplate, @ptrCast(self)), templateDescription); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDataModelScriptTemplate_GetContent(self: *const T, contentStream: ?*?*IStream) HRESULT { return @as(*const IDataModelScriptTemplate.VTable, @ptrCast(self.vtable)).GetContent(@as(*const IDataModelScriptTemplate, @ptrCast(self)), contentStream); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IDataModelScript_Value = Guid.initString("7b4d30fc-b14a-49f8-8d87-d9a1480c97f7"); pub const IID_IDataModelScript = &IID_IDataModelScript_Value; pub const IDataModelScript = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, GetName: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDataModelScript, scriptName: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDataModelScript, scriptName: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Rename: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDataModelScript, scriptName: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDataModelScript, scriptName: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Populate: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDataModelScript, contentStream: ?*IStream, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDataModelScript, contentStream: ?*IStream, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Execute: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDataModelScript, client: ?*IDataModelScriptClient, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDataModelScript, client: ?*IDataModelScriptClient, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Unlink: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDataModelScript, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDataModelScript, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, IsInvocable: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDataModelScript, isInvocable: ?*bool, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDataModelScript, isInvocable: ?*bool, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, InvokeMain: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDataModelScript, client: ?*IDataModelScriptClient, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDataModelScript, client: ?*IDataModelScriptClient, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDataModelScript_GetName(self: *const T, scriptName: ?*?BSTR) HRESULT { return @as(*const IDataModelScript.VTable, @ptrCast(self.vtable)).GetName(@as(*const IDataModelScript, @ptrCast(self)), scriptName); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDataModelScript_Rename(self: *const T, scriptName: ?[*:0]const u16) HRESULT { return @as(*const IDataModelScript.VTable, @ptrCast(self.vtable)).Rename(@as(*const IDataModelScript, @ptrCast(self)), scriptName); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDataModelScript_Populate(self: *const T, contentStream: ?*IStream) HRESULT { return @as(*const IDataModelScript.VTable, @ptrCast(self.vtable)).Populate(@as(*const IDataModelScript, @ptrCast(self)), contentStream); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDataModelScript_Execute(self: *const T, client: ?*IDataModelScriptClient) HRESULT { return @as(*const IDataModelScript.VTable, @ptrCast(self.vtable)).Execute(@as(*const IDataModelScript, @ptrCast(self)), client); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDataModelScript_Unlink(self: *const T) HRESULT { return @as(*const IDataModelScript.VTable, @ptrCast(self.vtable)).Unlink(@as(*const IDataModelScript, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDataModelScript_IsInvocable(self: *const T, isInvocable: ?*bool) HRESULT { return @as(*const IDataModelScript.VTable, @ptrCast(self.vtable)).IsInvocable(@as(*const IDataModelScript, @ptrCast(self)), isInvocable); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDataModelScript_InvokeMain(self: *const T, client: ?*IDataModelScriptClient) HRESULT { return @as(*const IDataModelScript.VTable, @ptrCast(self.vtable)).InvokeMain(@as(*const IDataModelScript, @ptrCast(self)), client); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IDataModelScriptTemplateEnumerator_Value = Guid.initString("69ce6ae2-2268-4e6f-b062-20ce62bfe677"); pub const IID_IDataModelScriptTemplateEnumerator = &IID_IDataModelScriptTemplateEnumerator_Value; pub const IDataModelScriptTemplateEnumerator = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, Reset: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDataModelScriptTemplateEnumerator, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDataModelScriptTemplateEnumerator, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetNext: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDataModelScriptTemplateEnumerator, templateContent: ?*?*IDataModelScriptTemplate, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDataModelScriptTemplateEnumerator, templateContent: ?*?*IDataModelScriptTemplate, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDataModelScriptTemplateEnumerator_Reset(self: *const T) HRESULT { return @as(*const IDataModelScriptTemplateEnumerator.VTable, @ptrCast(self.vtable)).Reset(@as(*const IDataModelScriptTemplateEnumerator, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDataModelScriptTemplateEnumerator_GetNext(self: *const T, templateContent: ?*?*IDataModelScriptTemplate) HRESULT { return @as(*const IDataModelScriptTemplateEnumerator.VTable, @ptrCast(self.vtable)).GetNext(@as(*const IDataModelScriptTemplateEnumerator, @ptrCast(self)), templateContent); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IDataModelScriptProvider_Value = Guid.initString("513461e0-4fca-48ce-8658-32f3e2056f3b"); pub const IID_IDataModelScriptProvider = &IID_IDataModelScriptProvider_Value; pub const IDataModelScriptProvider = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, GetName: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDataModelScriptProvider, name: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDataModelScriptProvider, name: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetExtension: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDataModelScriptProvider, extension: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDataModelScriptProvider, extension: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, CreateScript: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDataModelScriptProvider, script: ?*?*IDataModelScript, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDataModelScriptProvider, script: ?*?*IDataModelScript, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetDefaultTemplateContent: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDataModelScriptProvider, templateContent: ?*?*IDataModelScriptTemplate, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDataModelScriptProvider, templateContent: ?*?*IDataModelScriptTemplate, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, EnumerateTemplates: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDataModelScriptProvider, enumerator: ?*?*IDataModelScriptTemplateEnumerator, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDataModelScriptProvider, enumerator: ?*?*IDataModelScriptTemplateEnumerator, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDataModelScriptProvider_GetName(self: *const T, name: ?*?BSTR) HRESULT { return @as(*const IDataModelScriptProvider.VTable, @ptrCast(self.vtable)).GetName(@as(*const IDataModelScriptProvider, @ptrCast(self)), name); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDataModelScriptProvider_GetExtension(self: *const T, extension: ?*?BSTR) HRESULT { return @as(*const IDataModelScriptProvider.VTable, @ptrCast(self.vtable)).GetExtension(@as(*const IDataModelScriptProvider, @ptrCast(self)), extension); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDataModelScriptProvider_CreateScript(self: *const T, script: ?*?*IDataModelScript) HRESULT { return @as(*const IDataModelScriptProvider.VTable, @ptrCast(self.vtable)).CreateScript(@as(*const IDataModelScriptProvider, @ptrCast(self)), script); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDataModelScriptProvider_GetDefaultTemplateContent(self: *const T, templateContent: ?*?*IDataModelScriptTemplate) HRESULT { return @as(*const IDataModelScriptProvider.VTable, @ptrCast(self.vtable)).GetDefaultTemplateContent(@as(*const IDataModelScriptProvider, @ptrCast(self)), templateContent); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDataModelScriptProvider_EnumerateTemplates(self: *const T, enumerator: ?*?*IDataModelScriptTemplateEnumerator) HRESULT { return @as(*const IDataModelScriptProvider.VTable, @ptrCast(self.vtable)).EnumerateTemplates(@as(*const IDataModelScriptProvider, @ptrCast(self)), enumerator); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IDataModelScriptProviderEnumerator_Value = Guid.initString("95ba00e2-704a-4fe2-a8f1-a7e7d8fb0941"); pub const IID_IDataModelScriptProviderEnumerator = &IID_IDataModelScriptProviderEnumerator_Value; pub const IDataModelScriptProviderEnumerator = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, Reset: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDataModelScriptProviderEnumerator, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDataModelScriptProviderEnumerator, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetNext: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDataModelScriptProviderEnumerator, provider: ?*?*IDataModelScriptProvider, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDataModelScriptProviderEnumerator, provider: ?*?*IDataModelScriptProvider, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDataModelScriptProviderEnumerator_Reset(self: *const T) HRESULT { return @as(*const IDataModelScriptProviderEnumerator.VTable, @ptrCast(self.vtable)).Reset(@as(*const IDataModelScriptProviderEnumerator, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDataModelScriptProviderEnumerator_GetNext(self: *const T, provider: ?*?*IDataModelScriptProvider) HRESULT { return @as(*const IDataModelScriptProviderEnumerator.VTable, @ptrCast(self.vtable)).GetNext(@as(*const IDataModelScriptProviderEnumerator, @ptrCast(self)), provider); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IDataModelScriptManager_Value = Guid.initString("6fd11e33-e5ad-410b-8011-68c6bc4bf80d"); pub const IID_IDataModelScriptManager = &IID_IDataModelScriptManager_Value; pub const IDataModelScriptManager = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, GetDefaultNameBinder: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDataModelScriptManager, ppNameBinder: ?*?*IDataModelNameBinder, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDataModelScriptManager, ppNameBinder: ?*?*IDataModelNameBinder, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, RegisterScriptProvider: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDataModelScriptManager, provider: ?*IDataModelScriptProvider, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDataModelScriptManager, provider: ?*IDataModelScriptProvider, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, UnregisterScriptProvider: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDataModelScriptManager, provider: ?*IDataModelScriptProvider, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDataModelScriptManager, provider: ?*IDataModelScriptProvider, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, FindProviderForScriptType: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDataModelScriptManager, scriptType: ?[*:0]const u16, provider: ?*?*IDataModelScriptProvider, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDataModelScriptManager, scriptType: ?[*:0]const u16, provider: ?*?*IDataModelScriptProvider, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, FindProviderForScriptExtension: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDataModelScriptManager, scriptExtension: ?[*:0]const u16, provider: ?*?*IDataModelScriptProvider, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDataModelScriptManager, scriptExtension: ?[*:0]const u16, provider: ?*?*IDataModelScriptProvider, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, EnumerateScriptProviders: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDataModelScriptManager, enumerator: ?*?*IDataModelScriptProviderEnumerator, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDataModelScriptManager, enumerator: ?*?*IDataModelScriptProviderEnumerator, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDataModelScriptManager_GetDefaultNameBinder(self: *const T, ppNameBinder: ?*?*IDataModelNameBinder) HRESULT { return @as(*const IDataModelScriptManager.VTable, @ptrCast(self.vtable)).GetDefaultNameBinder(@as(*const IDataModelScriptManager, @ptrCast(self)), ppNameBinder); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDataModelScriptManager_RegisterScriptProvider(self: *const T, provider: ?*IDataModelScriptProvider) HRESULT { return @as(*const IDataModelScriptManager.VTable, @ptrCast(self.vtable)).RegisterScriptProvider(@as(*const IDataModelScriptManager, @ptrCast(self)), provider); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDataModelScriptManager_UnregisterScriptProvider(self: *const T, provider: ?*IDataModelScriptProvider) HRESULT { return @as(*const IDataModelScriptManager.VTable, @ptrCast(self.vtable)).UnregisterScriptProvider(@as(*const IDataModelScriptManager, @ptrCast(self)), provider); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDataModelScriptManager_FindProviderForScriptType(self: *const T, scriptType: ?[*:0]const u16, provider: ?*?*IDataModelScriptProvider) HRESULT { return @as(*const IDataModelScriptManager.VTable, @ptrCast(self.vtable)).FindProviderForScriptType(@as(*const IDataModelScriptManager, @ptrCast(self)), scriptType, provider); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDataModelScriptManager_FindProviderForScriptExtension(self: *const T, scriptExtension: ?[*:0]const u16, provider: ?*?*IDataModelScriptProvider) HRESULT { return @as(*const IDataModelScriptManager.VTable, @ptrCast(self.vtable)).FindProviderForScriptExtension(@as(*const IDataModelScriptManager, @ptrCast(self)), scriptExtension, provider); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDataModelScriptManager_EnumerateScriptProviders(self: *const T, enumerator: ?*?*IDataModelScriptProviderEnumerator) HRESULT { return @as(*const IDataModelScriptManager.VTable, @ptrCast(self.vtable)).EnumerateScriptProviders(@as(*const IDataModelScriptManager, @ptrCast(self)), enumerator); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IDynamicKeyProviderConcept_Value = Guid.initString("e7983fa1-80a7-498c-988f-518ddc5d4025"); pub const IID_IDynamicKeyProviderConcept = &IID_IDynamicKeyProviderConcept_Value; pub const IDynamicKeyProviderConcept = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, GetKey: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDynamicKeyProviderConcept, contextObject: ?*IModelObject, key: ?[*:0]const u16, keyValue: ?*?*IModelObject, metadata: ?*?*IKeyStore, hasKey: ?*bool, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDynamicKeyProviderConcept, contextObject: ?*IModelObject, key: ?[*:0]const u16, keyValue: ?*?*IModelObject, metadata: ?*?*IKeyStore, hasKey: ?*bool, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetKey: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDynamicKeyProviderConcept, contextObject: ?*IModelObject, key: ?[*:0]const u16, keyValue: ?*IModelObject, metadata: ?*IKeyStore, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDynamicKeyProviderConcept, contextObject: ?*IModelObject, key: ?[*:0]const u16, keyValue: ?*IModelObject, metadata: ?*IKeyStore, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, EnumerateKeys: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDynamicKeyProviderConcept, contextObject: ?*IModelObject, ppEnumerator: ?*?*IKeyEnumerator, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDynamicKeyProviderConcept, contextObject: ?*IModelObject, ppEnumerator: ?*?*IKeyEnumerator, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDynamicKeyProviderConcept_GetKey(self: *const T, contextObject: ?*IModelObject, key: ?[*:0]const u16, keyValue: ?*?*IModelObject, metadata: ?*?*IKeyStore, hasKey: ?*bool) HRESULT { return @as(*const IDynamicKeyProviderConcept.VTable, @ptrCast(self.vtable)).GetKey(@as(*const IDynamicKeyProviderConcept, @ptrCast(self)), contextObject, key, keyValue, metadata, hasKey); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDynamicKeyProviderConcept_SetKey(self: *const T, contextObject: ?*IModelObject, key: ?[*:0]const u16, keyValue: ?*IModelObject, metadata: ?*IKeyStore) HRESULT { return @as(*const IDynamicKeyProviderConcept.VTable, @ptrCast(self.vtable)).SetKey(@as(*const IDynamicKeyProviderConcept, @ptrCast(self)), contextObject, key, keyValue, metadata); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDynamicKeyProviderConcept_EnumerateKeys(self: *const T, contextObject: ?*IModelObject, ppEnumerator: ?*?*IKeyEnumerator) HRESULT { return @as(*const IDynamicKeyProviderConcept.VTable, @ptrCast(self.vtable)).EnumerateKeys(@as(*const IDynamicKeyProviderConcept, @ptrCast(self)), contextObject, ppEnumerator); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IDynamicConceptProviderConcept_Value = Guid.initString("95a7f7dd-602e-483f-9d06-a15c0ee13174"); pub const IID_IDynamicConceptProviderConcept = &IID_IDynamicConceptProviderConcept_Value; pub const IDynamicConceptProviderConcept = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, GetConcept: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDynamicConceptProviderConcept, contextObject: ?*IModelObject, conceptId: ?*const Guid, conceptInterface: ?*?*IUnknown, conceptMetadata: ?*?*IKeyStore, hasConcept: ?*bool, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDynamicConceptProviderConcept, contextObject: ?*IModelObject, conceptId: ?*const Guid, conceptInterface: ?*?*IUnknown, conceptMetadata: ?*?*IKeyStore, hasConcept: ?*bool, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetConcept: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDynamicConceptProviderConcept, contextObject: ?*IModelObject, conceptId: ?*const Guid, conceptInterface: ?*IUnknown, conceptMetadata: ?*IKeyStore, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDynamicConceptProviderConcept, contextObject: ?*IModelObject, conceptId: ?*const Guid, conceptInterface: ?*IUnknown, conceptMetadata: ?*IKeyStore, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, NotifyParent: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDynamicConceptProviderConcept, parentModel: ?*IModelObject, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDynamicConceptProviderConcept, parentModel: ?*IModelObject, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, NotifyParentChange: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDynamicConceptProviderConcept, parentModel: ?*IModelObject, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDynamicConceptProviderConcept, parentModel: ?*IModelObject, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, NotifyDestruct: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDynamicConceptProviderConcept, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDynamicConceptProviderConcept, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDynamicConceptProviderConcept_GetConcept(self: *const T, contextObject: ?*IModelObject, conceptId: ?*const Guid, conceptInterface: ?*?*IUnknown, conceptMetadata: ?*?*IKeyStore, hasConcept: ?*bool) HRESULT { return @as(*const IDynamicConceptProviderConcept.VTable, @ptrCast(self.vtable)).GetConcept(@as(*const IDynamicConceptProviderConcept, @ptrCast(self)), contextObject, conceptId, conceptInterface, conceptMetadata, hasConcept); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDynamicConceptProviderConcept_SetConcept(self: *const T, contextObject: ?*IModelObject, conceptId: ?*const Guid, conceptInterface: ?*IUnknown, conceptMetadata: ?*IKeyStore) HRESULT { return @as(*const IDynamicConceptProviderConcept.VTable, @ptrCast(self.vtable)).SetConcept(@as(*const IDynamicConceptProviderConcept, @ptrCast(self)), contextObject, conceptId, conceptInterface, conceptMetadata); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDynamicConceptProviderConcept_NotifyParent(self: *const T, parentModel: ?*IModelObject) HRESULT { return @as(*const IDynamicConceptProviderConcept.VTable, @ptrCast(self.vtable)).NotifyParent(@as(*const IDynamicConceptProviderConcept, @ptrCast(self)), parentModel); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDynamicConceptProviderConcept_NotifyParentChange(self: *const T, parentModel: ?*IModelObject) HRESULT { return @as(*const IDynamicConceptProviderConcept.VTable, @ptrCast(self.vtable)).NotifyParentChange(@as(*const IDynamicConceptProviderConcept, @ptrCast(self)), parentModel); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDynamicConceptProviderConcept_NotifyDestruct(self: *const T) HRESULT { return @as(*const IDynamicConceptProviderConcept.VTable, @ptrCast(self.vtable)).NotifyDestruct(@as(*const IDynamicConceptProviderConcept, @ptrCast(self))); } }; } pub usingnamespace MethodMixin(@This()); }; pub const ScriptChangeKind = enum(i32) { e = 0, }; pub const ScriptRename = ScriptChangeKind.e; const IID_IDataModelScriptHostContext_Value = Guid.initString("014d366a-1f23-4981-9219-b2db8b402054"); pub const IID_IDataModelScriptHostContext = &IID_IDataModelScriptHostContext_Value; pub const IDataModelScriptHostContext = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, NotifyScriptChange: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDataModelScriptHostContext, script: ?*IDataModelScript, changeKind: ScriptChangeKind, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDataModelScriptHostContext, script: ?*IDataModelScript, changeKind: ScriptChangeKind, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetNamespaceObject: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDataModelScriptHostContext, namespaceObject: ?*?*IModelObject, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDataModelScriptHostContext, namespaceObject: ?*?*IModelObject, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDataModelScriptHostContext_NotifyScriptChange(self: *const T, script: ?*IDataModelScript, changeKind: ScriptChangeKind) HRESULT { return @as(*const IDataModelScriptHostContext.VTable, @ptrCast(self.vtable)).NotifyScriptChange(@as(*const IDataModelScriptHostContext, @ptrCast(self)), script, changeKind); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDataModelScriptHostContext_GetNamespaceObject(self: *const T, namespaceObject: ?*?*IModelObject) HRESULT { return @as(*const IDataModelScriptHostContext.VTable, @ptrCast(self.vtable)).GetNamespaceObject(@as(*const IDataModelScriptHostContext, @ptrCast(self)), namespaceObject); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IDebugHostScriptHost_Value = Guid.initString("b70334a4-b92c-4570-93a1-d3eb686649a0"); pub const IID_IDebugHostScriptHost = &IID_IDebugHostScriptHost_Value; pub const IDebugHostScriptHost = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, CreateContext: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugHostScriptHost, script: ?*IDataModelScript, scriptContext: ?*?*IDataModelScriptHostContext, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugHostScriptHost, script: ?*IDataModelScript, scriptContext: ?*?*IDataModelScriptHostContext, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugHostScriptHost_CreateContext(self: *const T, script: ?*IDataModelScript, scriptContext: ?*?*IDataModelScriptHostContext) HRESULT { return @as(*const IDebugHostScriptHost.VTable, @ptrCast(self.vtable)).CreateContext(@as(*const IDebugHostScriptHost, @ptrCast(self)), script, scriptContext); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IDataModelNameBinder_Value = Guid.initString("af352b7b-8292-4c01-b360-2dc3696c65e7"); pub const IID_IDataModelNameBinder = &IID_IDataModelNameBinder_Value; pub const IDataModelNameBinder = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, BindValue: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDataModelNameBinder, contextObject: ?*IModelObject, name: ?[*:0]const u16, value: ?*?*IModelObject, metadata: ?*?*IKeyStore, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDataModelNameBinder, contextObject: ?*IModelObject, name: ?[*:0]const u16, value: ?*?*IModelObject, metadata: ?*?*IKeyStore, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, BindReference: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDataModelNameBinder, contextObject: ?*IModelObject, name: ?[*:0]const u16, reference: ?*?*IModelObject, metadata: ?*?*IKeyStore, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDataModelNameBinder, contextObject: ?*IModelObject, name: ?[*:0]const u16, reference: ?*?*IModelObject, metadata: ?*?*IKeyStore, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, EnumerateValues: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDataModelNameBinder, contextObject: ?*IModelObject, enumerator: ?*?*IKeyEnumerator, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDataModelNameBinder, contextObject: ?*IModelObject, enumerator: ?*?*IKeyEnumerator, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, EnumerateReferences: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDataModelNameBinder, contextObject: ?*IModelObject, enumerator: ?*?*IKeyEnumerator, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDataModelNameBinder, contextObject: ?*IModelObject, enumerator: ?*?*IKeyEnumerator, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDataModelNameBinder_BindValue(self: *const T, contextObject: ?*IModelObject, name: ?[*:0]const u16, value: ?*?*IModelObject, metadata: ?*?*IKeyStore) HRESULT { return @as(*const IDataModelNameBinder.VTable, @ptrCast(self.vtable)).BindValue(@as(*const IDataModelNameBinder, @ptrCast(self)), contextObject, name, value, metadata); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDataModelNameBinder_BindReference(self: *const T, contextObject: ?*IModelObject, name: ?[*:0]const u16, reference: ?*?*IModelObject, metadata: ?*?*IKeyStore) HRESULT { return @as(*const IDataModelNameBinder.VTable, @ptrCast(self.vtable)).BindReference(@as(*const IDataModelNameBinder, @ptrCast(self)), contextObject, name, reference, metadata); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDataModelNameBinder_EnumerateValues(self: *const T, contextObject: ?*IModelObject, enumerator: ?*?*IKeyEnumerator) HRESULT { return @as(*const IDataModelNameBinder.VTable, @ptrCast(self.vtable)).EnumerateValues(@as(*const IDataModelNameBinder, @ptrCast(self)), contextObject, enumerator); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDataModelNameBinder_EnumerateReferences(self: *const T, contextObject: ?*IModelObject, enumerator: ?*?*IKeyEnumerator) HRESULT { return @as(*const IDataModelNameBinder.VTable, @ptrCast(self.vtable)).EnumerateReferences(@as(*const IDataModelNameBinder, @ptrCast(self)), contextObject, enumerator); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IModelKeyReference2_Value = Guid.initString("80e2f7c5-7159-4e92-887e-7e0347e88406"); pub const IID_IModelKeyReference2 = &IID_IModelKeyReference2_Value; pub const IModelKeyReference2 = extern struct { pub const VTable = extern struct { base: IModelKeyReference.VTable, OverrideContextObject: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IModelKeyReference2, newContextObject: ?*IModelObject, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IModelKeyReference2, newContextObject: ?*IModelObject, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IModelKeyReference.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IModelKeyReference2_OverrideContextObject(self: *const T, newContextObject: ?*IModelObject) HRESULT { return @as(*const IModelKeyReference2.VTable, @ptrCast(self.vtable)).OverrideContextObject(@as(*const IModelKeyReference2, @ptrCast(self)), newContextObject); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IDebugHostEvaluator2_Value = Guid.initString("a117a435-1fb4-4092-a2ab-a929576c1e87"); pub const IID_IDebugHostEvaluator2 = &IID_IDebugHostEvaluator2_Value; pub const IDebugHostEvaluator2 = extern struct { pub const VTable = extern struct { base: IDebugHostEvaluator.VTable, AssignTo: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugHostEvaluator2, assignmentReference: ?*IModelObject, assignmentValue: ?*IModelObject, assignmentResult: ?*?*IModelObject, assignmentMetadata: ?*?*IKeyStore, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugHostEvaluator2, assignmentReference: ?*IModelObject, assignmentValue: ?*IModelObject, assignmentResult: ?*?*IModelObject, assignmentMetadata: ?*?*IKeyStore, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IDebugHostEvaluator.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugHostEvaluator2_AssignTo(self: *const T, assignmentReference: ?*IModelObject, assignmentValue: ?*IModelObject, assignmentResult: ?*?*IModelObject, assignmentMetadata: ?*?*IKeyStore) HRESULT { return @as(*const IDebugHostEvaluator2.VTable, @ptrCast(self.vtable)).AssignTo(@as(*const IDebugHostEvaluator2, @ptrCast(self)), assignmentReference, assignmentValue, assignmentResult, assignmentMetadata); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IDataModelManager2_Value = Guid.initString("f412c5ea-2284-4622-a660-a697160d3312"); pub const IID_IDataModelManager2 = &IID_IDataModelManager2_Value; pub const IDataModelManager2 = extern struct { pub const VTable = extern struct { base: IDataModelManager.VTable, AcquireSubNamespace: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDataModelManager2, modelName: ?[*:0]const u16, subNamespaceModelName: ?[*:0]const u16, accessName: ?[*:0]const u16, metadata: ?*IKeyStore, namespaceModelObject: ?*?*IModelObject, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDataModelManager2, modelName: ?[*:0]const u16, subNamespaceModelName: ?[*:0]const u16, accessName: ?[*:0]const u16, metadata: ?*IKeyStore, namespaceModelObject: ?*?*IModelObject, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, CreateTypedIntrinsicObjectEx: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDataModelManager2, context: ?*IDebugHostContext, intrinsicData: ?*VARIANT, type: ?*IDebugHostType, object: ?*?*IModelObject, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDataModelManager2, context: ?*IDebugHostContext, intrinsicData: ?*VARIANT, type: ?*IDebugHostType, object: ?*?*IModelObject, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IDataModelManager.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDataModelManager2_AcquireSubNamespace(self: *const T, modelName: ?[*:0]const u16, subNamespaceModelName: ?[*:0]const u16, accessName: ?[*:0]const u16, metadata: ?*IKeyStore, namespaceModelObject: ?*?*IModelObject) HRESULT { return @as(*const IDataModelManager2.VTable, @ptrCast(self.vtable)).AcquireSubNamespace(@as(*const IDataModelManager2, @ptrCast(self)), modelName, subNamespaceModelName, accessName, metadata, namespaceModelObject); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDataModelManager2_CreateTypedIntrinsicObjectEx(self: *const T, context: ?*IDebugHostContext, intrinsicData: ?*VARIANT, type_: ?*IDebugHostType, object: ?*?*IModelObject) HRESULT { return @as(*const IDataModelManager2.VTable, @ptrCast(self.vtable)).CreateTypedIntrinsicObjectEx(@as(*const IDataModelManager2, @ptrCast(self)), context, intrinsicData, type_, object); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IDebugHostMemory2_Value = Guid.initString("eea033de-38f6-416b-a251-1d3771001270"); pub const IID_IDebugHostMemory2 = &IID_IDebugHostMemory2_Value; pub const IDebugHostMemory2 = extern struct { pub const VTable = extern struct { base: IDebugHostMemory.VTable, LinearizeLocation: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugHostMemory2, context: ?*IDebugHostContext, location: Location, pLinearizedLocation: ?*Location, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugHostMemory2, context: ?*IDebugHostContext, location: Location, pLinearizedLocation: ?*Location, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IDebugHostMemory.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugHostMemory2_LinearizeLocation(self: *const T, context: ?*IDebugHostContext, location: Location, pLinearizedLocation: ?*Location) HRESULT { return @as(*const IDebugHostMemory2.VTable, @ptrCast(self.vtable)).LinearizeLocation(@as(*const IDebugHostMemory2, @ptrCast(self)), context, location, pLinearizedLocation); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IDebugHostExtensibility_Value = Guid.initString("3c2b24e1-11d0-4f86-8ae5-4df166f73253"); pub const IID_IDebugHostExtensibility = &IID_IDebugHostExtensibility_Value; pub const IDebugHostExtensibility = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, CreateFunctionAlias: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugHostExtensibility, aliasName: ?[*:0]const u16, functionObject: ?*IModelObject, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugHostExtensibility, aliasName: ?[*:0]const u16, functionObject: ?*IModelObject, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, DestroyFunctionAlias: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugHostExtensibility, aliasName: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugHostExtensibility, aliasName: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugHostExtensibility_CreateFunctionAlias(self: *const T, aliasName: ?[*:0]const u16, functionObject: ?*IModelObject) HRESULT { return @as(*const IDebugHostExtensibility.VTable, @ptrCast(self.vtable)).CreateFunctionAlias(@as(*const IDebugHostExtensibility, @ptrCast(self)), aliasName, functionObject); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugHostExtensibility_DestroyFunctionAlias(self: *const T, aliasName: ?[*:0]const u16) HRESULT { return @as(*const IDebugHostExtensibility.VTable, @ptrCast(self.vtable)).DestroyFunctionAlias(@as(*const IDebugHostExtensibility, @ptrCast(self)), aliasName); } }; } pub usingnamespace MethodMixin(@This()); }; pub const ScriptDebugState = enum(i32) { NoDebugger = 0, NotExecuting = 1, Executing = 2, Break = 3, }; pub const ScriptDebugNoDebugger = ScriptDebugState.NoDebugger; pub const ScriptDebugNotExecuting = ScriptDebugState.NotExecuting; pub const ScriptDebugExecuting = ScriptDebugState.Executing; pub const ScriptDebugBreak = ScriptDebugState.Break; pub const ScriptDebugEventFilter = enum(i32) { Entry = 0, Exception = 1, UnhandledException = 2, Abort = 3, }; pub const ScriptDebugEventFilterEntry = ScriptDebugEventFilter.Entry; pub const ScriptDebugEventFilterException = ScriptDebugEventFilter.Exception; pub const ScriptDebugEventFilterUnhandledException = ScriptDebugEventFilter.UnhandledException; pub const ScriptDebugEventFilterAbort = ScriptDebugEventFilter.Abort; pub const ScriptDebugEvent = enum(i32) { Breakpoint = 0, Step = 1, Exception = 2, AsyncBreak = 3, }; pub const ScriptDebugBreakpoint = ScriptDebugEvent.Breakpoint; pub const ScriptDebugStep = ScriptDebugEvent.Step; pub const ScriptDebugException = ScriptDebugEvent.Exception; pub const ScriptDebugAsyncBreak = ScriptDebugEvent.AsyncBreak; pub const ScriptExecutionKind = enum(i32) { Normal = 0, StepIn = 1, StepOut = 2, StepOver = 3, }; pub const ScriptExecutionNormal = ScriptExecutionKind.Normal; pub const ScriptExecutionStepIn = ScriptExecutionKind.StepIn; pub const ScriptExecutionStepOut = ScriptExecutionKind.StepOut; pub const ScriptExecutionStepOver = ScriptExecutionKind.StepOver; pub const ScriptDebugPosition = extern struct { Line: u32, Column: u32, }; pub const ScriptDebugEventInformation = extern struct { DebugEvent: ScriptDebugEvent, EventPosition: ScriptDebugPosition, EventSpanEnd: ScriptDebugPosition, u: extern union { ExceptionInformation: extern struct { IsUncaught: bool, }, BreakpointInformation: extern struct { BreakpointId: u64, }, }, }; const IID_IDataModelScriptDebugClient_Value = Guid.initString("53159b6d-d4c4-471b-a863-5b110ca800ca"); pub const IID_IDataModelScriptDebugClient = &IID_IDataModelScriptDebugClient_Value; pub const IDataModelScriptDebugClient = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, NotifyDebugEvent: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDataModelScriptDebugClient, pEventInfo: ?*ScriptDebugEventInformation, pScript: ?*IDataModelScript, pEventDataObject: ?*IModelObject, resumeEventKind: ?*ScriptExecutionKind, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDataModelScriptDebugClient, pEventInfo: ?*ScriptDebugEventInformation, pScript: ?*IDataModelScript, pEventDataObject: ?*IModelObject, resumeEventKind: ?*ScriptExecutionKind, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDataModelScriptDebugClient_NotifyDebugEvent(self: *const T, pEventInfo: ?*ScriptDebugEventInformation, pScript: ?*IDataModelScript, pEventDataObject: ?*IModelObject, resumeEventKind: ?*ScriptExecutionKind) HRESULT { return @as(*const IDataModelScriptDebugClient.VTable, @ptrCast(self.vtable)).NotifyDebugEvent(@as(*const IDataModelScriptDebugClient, @ptrCast(self)), pEventInfo, pScript, pEventDataObject, resumeEventKind); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IDataModelScriptDebugVariableSetEnumerator_Value = Guid.initString("0f9feed7-d045-4ac3-98a8-a98942cf6a35"); pub const IID_IDataModelScriptDebugVariableSetEnumerator = &IID_IDataModelScriptDebugVariableSetEnumerator_Value; pub const IDataModelScriptDebugVariableSetEnumerator = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, Reset: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDataModelScriptDebugVariableSetEnumerator, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDataModelScriptDebugVariableSetEnumerator, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetNext: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDataModelScriptDebugVariableSetEnumerator, variableName: ?*?BSTR, variableValue: ?*?*IModelObject, variableMetadata: ?*?*IKeyStore, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDataModelScriptDebugVariableSetEnumerator, variableName: ?*?BSTR, variableValue: ?*?*IModelObject, variableMetadata: ?*?*IKeyStore, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDataModelScriptDebugVariableSetEnumerator_Reset(self: *const T) HRESULT { return @as(*const IDataModelScriptDebugVariableSetEnumerator.VTable, @ptrCast(self.vtable)).Reset(@as(*const IDataModelScriptDebugVariableSetEnumerator, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDataModelScriptDebugVariableSetEnumerator_GetNext(self: *const T, variableName: ?*?BSTR, variableValue: ?*?*IModelObject, variableMetadata: ?*?*IKeyStore) HRESULT { return @as(*const IDataModelScriptDebugVariableSetEnumerator.VTable, @ptrCast(self.vtable)).GetNext(@as(*const IDataModelScriptDebugVariableSetEnumerator, @ptrCast(self)), variableName, variableValue, variableMetadata); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IDataModelScriptDebugStackFrame_Value = Guid.initString("dec6ed5e-6360-4941-ab4c-a26409de4f82"); pub const IID_IDataModelScriptDebugStackFrame = &IID_IDataModelScriptDebugStackFrame_Value; pub const IDataModelScriptDebugStackFrame = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, GetName: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDataModelScriptDebugStackFrame, name: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDataModelScriptDebugStackFrame, name: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetPosition: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDataModelScriptDebugStackFrame, position: ?*ScriptDebugPosition, positionSpanEnd: ?*ScriptDebugPosition, lineText: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDataModelScriptDebugStackFrame, position: ?*ScriptDebugPosition, positionSpanEnd: ?*ScriptDebugPosition, lineText: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, IsTransitionPoint: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDataModelScriptDebugStackFrame, isTransitionPoint: ?*bool, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDataModelScriptDebugStackFrame, isTransitionPoint: ?*bool, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetTransition: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDataModelScriptDebugStackFrame, transitionScript: ?*?*IDataModelScript, isTransitionContiguous: ?*bool, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDataModelScriptDebugStackFrame, transitionScript: ?*?*IDataModelScript, isTransitionContiguous: ?*bool, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Evaluate: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDataModelScriptDebugStackFrame, pwszExpression: ?[*:0]const u16, ppResult: ?*?*IModelObject, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDataModelScriptDebugStackFrame, pwszExpression: ?[*:0]const u16, ppResult: ?*?*IModelObject, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, EnumerateLocals: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDataModelScriptDebugStackFrame, variablesEnum: ?*?*IDataModelScriptDebugVariableSetEnumerator, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDataModelScriptDebugStackFrame, variablesEnum: ?*?*IDataModelScriptDebugVariableSetEnumerator, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, EnumerateArguments: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDataModelScriptDebugStackFrame, variablesEnum: ?*?*IDataModelScriptDebugVariableSetEnumerator, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDataModelScriptDebugStackFrame, variablesEnum: ?*?*IDataModelScriptDebugVariableSetEnumerator, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDataModelScriptDebugStackFrame_GetName(self: *const T, name: ?*?BSTR) HRESULT { return @as(*const IDataModelScriptDebugStackFrame.VTable, @ptrCast(self.vtable)).GetName(@as(*const IDataModelScriptDebugStackFrame, @ptrCast(self)), name); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDataModelScriptDebugStackFrame_GetPosition(self: *const T, position: ?*ScriptDebugPosition, positionSpanEnd: ?*ScriptDebugPosition, lineText: ?*?BSTR) HRESULT { return @as(*const IDataModelScriptDebugStackFrame.VTable, @ptrCast(self.vtable)).GetPosition(@as(*const IDataModelScriptDebugStackFrame, @ptrCast(self)), position, positionSpanEnd, lineText); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDataModelScriptDebugStackFrame_IsTransitionPoint(self: *const T, isTransitionPoint: ?*bool) HRESULT { return @as(*const IDataModelScriptDebugStackFrame.VTable, @ptrCast(self.vtable)).IsTransitionPoint(@as(*const IDataModelScriptDebugStackFrame, @ptrCast(self)), isTransitionPoint); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDataModelScriptDebugStackFrame_GetTransition(self: *const T, transitionScript: ?*?*IDataModelScript, isTransitionContiguous: ?*bool) HRESULT { return @as(*const IDataModelScriptDebugStackFrame.VTable, @ptrCast(self.vtable)).GetTransition(@as(*const IDataModelScriptDebugStackFrame, @ptrCast(self)), transitionScript, isTransitionContiguous); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDataModelScriptDebugStackFrame_Evaluate(self: *const T, pwszExpression: ?[*:0]const u16, ppResult: ?*?*IModelObject) HRESULT { return @as(*const IDataModelScriptDebugStackFrame.VTable, @ptrCast(self.vtable)).Evaluate(@as(*const IDataModelScriptDebugStackFrame, @ptrCast(self)), pwszExpression, ppResult); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDataModelScriptDebugStackFrame_EnumerateLocals(self: *const T, variablesEnum: ?*?*IDataModelScriptDebugVariableSetEnumerator) HRESULT { return @as(*const IDataModelScriptDebugStackFrame.VTable, @ptrCast(self.vtable)).EnumerateLocals(@as(*const IDataModelScriptDebugStackFrame, @ptrCast(self)), variablesEnum); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDataModelScriptDebugStackFrame_EnumerateArguments(self: *const T, variablesEnum: ?*?*IDataModelScriptDebugVariableSetEnumerator) HRESULT { return @as(*const IDataModelScriptDebugStackFrame.VTable, @ptrCast(self.vtable)).EnumerateArguments(@as(*const IDataModelScriptDebugStackFrame, @ptrCast(self)), variablesEnum); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IDataModelScriptDebugStack_Value = Guid.initString("051364dd-e449-443e-9762-fe578f4a5473"); pub const IID_IDataModelScriptDebugStack = &IID_IDataModelScriptDebugStack_Value; pub const IDataModelScriptDebugStack = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, GetFrameCount: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDataModelScriptDebugStack, ) callconv(@import("std").os.windows.WINAPI) u64, else => *const fn ( self: *const IDataModelScriptDebugStack, ) callconv(@import("std").os.windows.WINAPI) u64, }, GetStackFrame: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDataModelScriptDebugStack, frameNumber: u64, stackFrame: ?*?*IDataModelScriptDebugStackFrame, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDataModelScriptDebugStack, frameNumber: u64, stackFrame: ?*?*IDataModelScriptDebugStackFrame, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDataModelScriptDebugStack_GetFrameCount(self: *const T) u64 { return @as(*const IDataModelScriptDebugStack.VTable, @ptrCast(self.vtable)).GetFrameCount(@as(*const IDataModelScriptDebugStack, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDataModelScriptDebugStack_GetStackFrame(self: *const T, frameNumber: u64, stackFrame: ?*?*IDataModelScriptDebugStackFrame) HRESULT { return @as(*const IDataModelScriptDebugStack.VTable, @ptrCast(self.vtable)).GetStackFrame(@as(*const IDataModelScriptDebugStack, @ptrCast(self)), frameNumber, stackFrame); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IDataModelScriptDebugBreakpoint_Value = Guid.initString("6bb27b35-02e6-47cb-90a0-5371244032de"); pub const IID_IDataModelScriptDebugBreakpoint = &IID_IDataModelScriptDebugBreakpoint_Value; pub const IDataModelScriptDebugBreakpoint = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, GetId: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDataModelScriptDebugBreakpoint, ) callconv(@import("std").os.windows.WINAPI) u64, else => *const fn ( self: *const IDataModelScriptDebugBreakpoint, ) callconv(@import("std").os.windows.WINAPI) u64, }, IsEnabled: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDataModelScriptDebugBreakpoint, ) callconv(@import("std").os.windows.WINAPI) bool, else => *const fn ( self: *const IDataModelScriptDebugBreakpoint, ) callconv(@import("std").os.windows.WINAPI) bool, }, Enable: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDataModelScriptDebugBreakpoint, ) callconv(@import("std").os.windows.WINAPI) void, else => *const fn ( self: *const IDataModelScriptDebugBreakpoint, ) callconv(@import("std").os.windows.WINAPI) void, }, Disable: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDataModelScriptDebugBreakpoint, ) callconv(@import("std").os.windows.WINAPI) void, else => *const fn ( self: *const IDataModelScriptDebugBreakpoint, ) callconv(@import("std").os.windows.WINAPI) void, }, Remove: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDataModelScriptDebugBreakpoint, ) callconv(@import("std").os.windows.WINAPI) void, else => *const fn ( self: *const IDataModelScriptDebugBreakpoint, ) callconv(@import("std").os.windows.WINAPI) void, }, GetPosition: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDataModelScriptDebugBreakpoint, position: ?*ScriptDebugPosition, positionSpanEnd: ?*ScriptDebugPosition, lineText: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDataModelScriptDebugBreakpoint, position: ?*ScriptDebugPosition, positionSpanEnd: ?*ScriptDebugPosition, lineText: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDataModelScriptDebugBreakpoint_GetId(self: *const T) u64 { return @as(*const IDataModelScriptDebugBreakpoint.VTable, @ptrCast(self.vtable)).GetId(@as(*const IDataModelScriptDebugBreakpoint, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDataModelScriptDebugBreakpoint_IsEnabled(self: *const T) bool { return @as(*const IDataModelScriptDebugBreakpoint.VTable, @ptrCast(self.vtable)).IsEnabled(@as(*const IDataModelScriptDebugBreakpoint, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDataModelScriptDebugBreakpoint_Enable(self: *const T) void { return @as(*const IDataModelScriptDebugBreakpoint.VTable, @ptrCast(self.vtable)).Enable(@as(*const IDataModelScriptDebugBreakpoint, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDataModelScriptDebugBreakpoint_Disable(self: *const T) void { return @as(*const IDataModelScriptDebugBreakpoint.VTable, @ptrCast(self.vtable)).Disable(@as(*const IDataModelScriptDebugBreakpoint, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDataModelScriptDebugBreakpoint_Remove(self: *const T) void { return @as(*const IDataModelScriptDebugBreakpoint.VTable, @ptrCast(self.vtable)).Remove(@as(*const IDataModelScriptDebugBreakpoint, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDataModelScriptDebugBreakpoint_GetPosition(self: *const T, position: ?*ScriptDebugPosition, positionSpanEnd: ?*ScriptDebugPosition, lineText: ?*?BSTR) HRESULT { return @as(*const IDataModelScriptDebugBreakpoint.VTable, @ptrCast(self.vtable)).GetPosition(@as(*const IDataModelScriptDebugBreakpoint, @ptrCast(self)), position, positionSpanEnd, lineText); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IDataModelScriptDebugBreakpointEnumerator_Value = Guid.initString("39484a75-b4f3-4799-86da-691afa57b299"); pub const IID_IDataModelScriptDebugBreakpointEnumerator = &IID_IDataModelScriptDebugBreakpointEnumerator_Value; pub const IDataModelScriptDebugBreakpointEnumerator = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, Reset: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDataModelScriptDebugBreakpointEnumerator, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDataModelScriptDebugBreakpointEnumerator, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetNext: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDataModelScriptDebugBreakpointEnumerator, breakpoint: ?*?*IDataModelScriptDebugBreakpoint, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDataModelScriptDebugBreakpointEnumerator, breakpoint: ?*?*IDataModelScriptDebugBreakpoint, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDataModelScriptDebugBreakpointEnumerator_Reset(self: *const T) HRESULT { return @as(*const IDataModelScriptDebugBreakpointEnumerator.VTable, @ptrCast(self.vtable)).Reset(@as(*const IDataModelScriptDebugBreakpointEnumerator, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDataModelScriptDebugBreakpointEnumerator_GetNext(self: *const T, breakpoint: ?*?*IDataModelScriptDebugBreakpoint) HRESULT { return @as(*const IDataModelScriptDebugBreakpointEnumerator.VTable, @ptrCast(self.vtable)).GetNext(@as(*const IDataModelScriptDebugBreakpointEnumerator, @ptrCast(self)), breakpoint); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IDataModelScriptDebug_Value = Guid.initString("de8e0945-9750-4471-ab76-a8f79d6ec350"); pub const IID_IDataModelScriptDebug = &IID_IDataModelScriptDebug_Value; pub const IDataModelScriptDebug = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, GetDebugState: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDataModelScriptDebug, ) callconv(@import("std").os.windows.WINAPI) ScriptDebugState, else => *const fn ( self: *const IDataModelScriptDebug, ) callconv(@import("std").os.windows.WINAPI) ScriptDebugState, }, GetCurrentPosition: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDataModelScriptDebug, currentPosition: ?*ScriptDebugPosition, positionSpanEnd: ?*ScriptDebugPosition, lineText: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDataModelScriptDebug, currentPosition: ?*ScriptDebugPosition, positionSpanEnd: ?*ScriptDebugPosition, lineText: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetStack: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDataModelScriptDebug, stack: ?*?*IDataModelScriptDebugStack, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDataModelScriptDebug, stack: ?*?*IDataModelScriptDebugStack, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetBreakpoint: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDataModelScriptDebug, linePosition: u32, columnPosition: u32, breakpoint: ?*?*IDataModelScriptDebugBreakpoint, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDataModelScriptDebug, linePosition: u32, columnPosition: u32, breakpoint: ?*?*IDataModelScriptDebugBreakpoint, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, FindBreakpointById: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDataModelScriptDebug, breakpointId: u64, breakpoint: ?*?*IDataModelScriptDebugBreakpoint, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDataModelScriptDebug, breakpointId: u64, breakpoint: ?*?*IDataModelScriptDebugBreakpoint, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, EnumerateBreakpoints: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDataModelScriptDebug, breakpointEnum: ?*?*IDataModelScriptDebugBreakpointEnumerator, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDataModelScriptDebug, breakpointEnum: ?*?*IDataModelScriptDebugBreakpointEnumerator, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetEventFilter: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDataModelScriptDebug, eventFilter: ScriptDebugEventFilter, isBreakEnabled: ?*bool, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDataModelScriptDebug, eventFilter: ScriptDebugEventFilter, isBreakEnabled: ?*bool, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetEventFilter: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDataModelScriptDebug, eventFilter: ScriptDebugEventFilter, isBreakEnabled: u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDataModelScriptDebug, eventFilter: ScriptDebugEventFilter, isBreakEnabled: u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, StartDebugging: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDataModelScriptDebug, debugClient: ?*IDataModelScriptDebugClient, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDataModelScriptDebug, debugClient: ?*IDataModelScriptDebugClient, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, StopDebugging: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDataModelScriptDebug, debugClient: ?*IDataModelScriptDebugClient, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDataModelScriptDebug, debugClient: ?*IDataModelScriptDebugClient, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDataModelScriptDebug_GetDebugState(self: *const T) ScriptDebugState { return @as(*const IDataModelScriptDebug.VTable, @ptrCast(self.vtable)).GetDebugState(@as(*const IDataModelScriptDebug, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDataModelScriptDebug_GetCurrentPosition(self: *const T, currentPosition: ?*ScriptDebugPosition, positionSpanEnd: ?*ScriptDebugPosition, lineText: ?*?BSTR) HRESULT { return @as(*const IDataModelScriptDebug.VTable, @ptrCast(self.vtable)).GetCurrentPosition(@as(*const IDataModelScriptDebug, @ptrCast(self)), currentPosition, positionSpanEnd, lineText); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDataModelScriptDebug_GetStack(self: *const T, stack: ?*?*IDataModelScriptDebugStack) HRESULT { return @as(*const IDataModelScriptDebug.VTable, @ptrCast(self.vtable)).GetStack(@as(*const IDataModelScriptDebug, @ptrCast(self)), stack); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDataModelScriptDebug_SetBreakpoint(self: *const T, linePosition: u32, columnPosition: u32, breakpoint: ?*?*IDataModelScriptDebugBreakpoint) HRESULT { return @as(*const IDataModelScriptDebug.VTable, @ptrCast(self.vtable)).SetBreakpoint(@as(*const IDataModelScriptDebug, @ptrCast(self)), linePosition, columnPosition, breakpoint); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDataModelScriptDebug_FindBreakpointById(self: *const T, breakpointId: u64, breakpoint: ?*?*IDataModelScriptDebugBreakpoint) HRESULT { return @as(*const IDataModelScriptDebug.VTable, @ptrCast(self.vtable)).FindBreakpointById(@as(*const IDataModelScriptDebug, @ptrCast(self)), breakpointId, breakpoint); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDataModelScriptDebug_EnumerateBreakpoints(self: *const T, breakpointEnum: ?*?*IDataModelScriptDebugBreakpointEnumerator) HRESULT { return @as(*const IDataModelScriptDebug.VTable, @ptrCast(self.vtable)).EnumerateBreakpoints(@as(*const IDataModelScriptDebug, @ptrCast(self)), breakpointEnum); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDataModelScriptDebug_GetEventFilter(self: *const T, eventFilter: ScriptDebugEventFilter, isBreakEnabled: ?*bool) HRESULT { return @as(*const IDataModelScriptDebug.VTable, @ptrCast(self.vtable)).GetEventFilter(@as(*const IDataModelScriptDebug, @ptrCast(self)), eventFilter, isBreakEnabled); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDataModelScriptDebug_SetEventFilter(self: *const T, eventFilter: ScriptDebugEventFilter, isBreakEnabled: u8) HRESULT { return @as(*const IDataModelScriptDebug.VTable, @ptrCast(self.vtable)).SetEventFilter(@as(*const IDataModelScriptDebug, @ptrCast(self)), eventFilter, isBreakEnabled); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDataModelScriptDebug_StartDebugging(self: *const T, debugClient: ?*IDataModelScriptDebugClient) HRESULT { return @as(*const IDataModelScriptDebug.VTable, @ptrCast(self.vtable)).StartDebugging(@as(*const IDataModelScriptDebug, @ptrCast(self)), debugClient); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDataModelScriptDebug_StopDebugging(self: *const T, debugClient: ?*IDataModelScriptDebugClient) HRESULT { return @as(*const IDataModelScriptDebug.VTable, @ptrCast(self.vtable)).StopDebugging(@as(*const IDataModelScriptDebug, @ptrCast(self)), debugClient); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IDataModelScriptDebug2_Value = Guid.initString("cbb10ed3-839e-426c-9243-e23535c1ae1a"); pub const IID_IDataModelScriptDebug2 = &IID_IDataModelScriptDebug2_Value; pub const IDataModelScriptDebug2 = extern struct { pub const VTable = extern struct { base: IDataModelScriptDebug.VTable, SetBreakpointAtFunction: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDataModelScriptDebug2, functionName: ?[*:0]const u16, breakpoint: ?*?*IDataModelScriptDebugBreakpoint, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDataModelScriptDebug2, functionName: ?[*:0]const u16, breakpoint: ?*?*IDataModelScriptDebugBreakpoint, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IDataModelScriptDebug.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDataModelScriptDebug2_SetBreakpointAtFunction(self: *const T, functionName: ?[*:0]const u16, breakpoint: ?*?*IDataModelScriptDebugBreakpoint) HRESULT { return @as(*const IDataModelScriptDebug2.VTable, @ptrCast(self.vtable)).SetBreakpointAtFunction(@as(*const IDataModelScriptDebug2, @ptrCast(self)), functionName, breakpoint); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IDebugHostModule2_Value = Guid.initString("b51887e8-bcd0-4e8f-a8c7-434398b78c37"); pub const IID_IDebugHostModule2 = &IID_IDebugHostModule2_Value; pub const IDebugHostModule2 = extern struct { pub const VTable = extern struct { base: IDebugHostModule.VTable, FindContainingSymbolByRVA: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugHostModule2, rva: u64, symbol: ?*?*IDebugHostSymbol, offset: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugHostModule2, rva: u64, symbol: ?*?*IDebugHostSymbol, offset: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IDebugHostModule.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugHostModule2_FindContainingSymbolByRVA(self: *const T, rva: u64, symbol: ?*?*IDebugHostSymbol, offset: ?*u64) HRESULT { return @as(*const IDebugHostModule2.VTable, @ptrCast(self.vtable)).FindContainingSymbolByRVA(@as(*const IDebugHostModule2, @ptrCast(self)), rva, symbol, offset); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IComparableConcept_Value = Guid.initString("a7830646-9f0c-4a31-ba19-503f33e6c8a3"); pub const IID_IComparableConcept = &IID_IComparableConcept_Value; pub const IComparableConcept = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, CompareObjects: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IComparableConcept, contextObject: ?*IModelObject, otherObject: ?*IModelObject, comparisonResult: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IComparableConcept, contextObject: ?*IModelObject, otherObject: ?*IModelObject, comparisonResult: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IComparableConcept_CompareObjects(self: *const T, contextObject: ?*IModelObject, otherObject: ?*IModelObject, comparisonResult: ?*i32) HRESULT { return @as(*const IComparableConcept.VTable, @ptrCast(self.vtable)).CompareObjects(@as(*const IComparableConcept, @ptrCast(self)), contextObject, otherObject, comparisonResult); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IEquatableConcept_Value = Guid.initString("c52d5d3d-609d-4d5d-8a82-46b0acdec4f4"); pub const IID_IEquatableConcept = &IID_IEquatableConcept_Value; pub const IEquatableConcept = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, AreObjectsEqual: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IEquatableConcept, contextObject: ?*IModelObject, otherObject: ?*IModelObject, isEqual: ?*bool, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IEquatableConcept, contextObject: ?*IModelObject, otherObject: ?*IModelObject, isEqual: ?*bool, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IEquatableConcept_AreObjectsEqual(self: *const T, contextObject: ?*IModelObject, otherObject: ?*IModelObject, isEqual: ?*bool) HRESULT { return @as(*const IEquatableConcept.VTable, @ptrCast(self.vtable)).AreObjectsEqual(@as(*const IEquatableConcept, @ptrCast(self)), contextObject, otherObject, isEqual); } }; } pub usingnamespace MethodMixin(@This()); }; pub const PWINDBG_OUTPUT_ROUTINE = switch (@import("builtin").zig_backend) { .stage1 => fn ( lpFormat: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) void, else => *const fn ( lpFormat: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) void, }; pub const PWINDBG_GET_EXPRESSION = switch (@import("builtin").zig_backend) { .stage1 => fn ( lpExpression: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) usize, else => *const fn ( lpExpression: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) usize, }; pub const PWINDBG_GET_EXPRESSION32 = switch (@import("builtin").zig_backend) { .stage1 => fn ( lpExpression: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) u32, else => *const fn ( lpExpression: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) u32, }; pub const PWINDBG_GET_EXPRESSION64 = switch (@import("builtin").zig_backend) { .stage1 => fn ( lpExpression: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) u64, else => *const fn ( lpExpression: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) u64, }; pub const PWINDBG_GET_SYMBOL = switch (@import("builtin").zig_backend) { .stage1 => fn ( offset: ?*anyopaque, pchBuffer: ?[*]u8, pDisplacement: ?*usize, ) callconv(@import("std").os.windows.WINAPI) void, else => *const fn ( offset: ?*anyopaque, pchBuffer: ?[*]u8, pDisplacement: ?*usize, ) callconv(@import("std").os.windows.WINAPI) void, }; pub const PWINDBG_GET_SYMBOL32 = switch (@import("builtin").zig_backend) { .stage1 => fn ( offset: u32, pchBuffer: ?[*]u8, pDisplacement: ?*u32, ) callconv(@import("std").os.windows.WINAPI) void, else => *const fn ( offset: u32, pchBuffer: ?[*]u8, pDisplacement: ?*u32, ) callconv(@import("std").os.windows.WINAPI) void, }; pub const PWINDBG_GET_SYMBOL64 = switch (@import("builtin").zig_backend) { .stage1 => fn ( offset: u64, pchBuffer: ?[*]u8, pDisplacement: ?*u64, ) callconv(@import("std").os.windows.WINAPI) void, else => *const fn ( offset: u64, pchBuffer: ?[*]u8, pDisplacement: ?*u64, ) callconv(@import("std").os.windows.WINAPI) void, }; pub const PWINDBG_DISASM = switch (@import("builtin").zig_backend) { .stage1 => fn ( lpOffset: ?*usize, lpBuffer: ?[*:0]const u8, fShowEffectiveAddress: u32, ) callconv(@import("std").os.windows.WINAPI) u32, else => *const fn ( lpOffset: ?*usize, lpBuffer: ?[*:0]const u8, fShowEffectiveAddress: u32, ) callconv(@import("std").os.windows.WINAPI) u32, }; pub const PWINDBG_DISASM32 = switch (@import("builtin").zig_backend) { .stage1 => fn ( lpOffset: ?*u32, lpBuffer: ?[*:0]const u8, fShowEffectiveAddress: u32, ) callconv(@import("std").os.windows.WINAPI) u32, else => *const fn ( lpOffset: ?*u32, lpBuffer: ?[*:0]const u8, fShowEffectiveAddress: u32, ) callconv(@import("std").os.windows.WINAPI) u32, }; pub const PWINDBG_DISASM64 = switch (@import("builtin").zig_backend) { .stage1 => fn ( lpOffset: ?*u64, lpBuffer: ?[*:0]const u8, fShowEffectiveAddress: u32, ) callconv(@import("std").os.windows.WINAPI) u32, else => *const fn ( lpOffset: ?*u64, lpBuffer: ?[*:0]const u8, fShowEffectiveAddress: u32, ) callconv(@import("std").os.windows.WINAPI) u32, }; pub const PWINDBG_CHECK_CONTROL_C = switch (@import("builtin").zig_backend) { .stage1 => fn () callconv(@import("std").os.windows.WINAPI) u32, else => *const fn () callconv(@import("std").os.windows.WINAPI) u32, }; pub const PWINDBG_READ_PROCESS_MEMORY_ROUTINE = switch (@import("builtin").zig_backend) { .stage1 => fn ( offset: usize, lpBuffer: ?*anyopaque, cb: u32, lpcbBytesRead: ?*u32, ) callconv(@import("std").os.windows.WINAPI) u32, else => *const fn ( offset: usize, lpBuffer: ?*anyopaque, cb: u32, lpcbBytesRead: ?*u32, ) callconv(@import("std").os.windows.WINAPI) u32, }; pub const PWINDBG_READ_PROCESS_MEMORY_ROUTINE32 = switch (@import("builtin").zig_backend) { .stage1 => fn ( offset: u32, lpBuffer: ?*anyopaque, cb: u32, lpcbBytesRead: ?*u32, ) callconv(@import("std").os.windows.WINAPI) u32, else => *const fn ( offset: u32, lpBuffer: ?*anyopaque, cb: u32, lpcbBytesRead: ?*u32, ) callconv(@import("std").os.windows.WINAPI) u32, }; pub const PWINDBG_READ_PROCESS_MEMORY_ROUTINE64 = switch (@import("builtin").zig_backend) { .stage1 => fn ( offset: u64, lpBuffer: ?*anyopaque, cb: u32, lpcbBytesRead: ?*u32, ) callconv(@import("std").os.windows.WINAPI) u32, else => *const fn ( offset: u64, lpBuffer: ?*anyopaque, cb: u32, lpcbBytesRead: ?*u32, ) callconv(@import("std").os.windows.WINAPI) u32, }; pub const PWINDBG_WRITE_PROCESS_MEMORY_ROUTINE = switch (@import("builtin").zig_backend) { .stage1 => fn ( offset: usize, lpBuffer: ?*const anyopaque, cb: u32, lpcbBytesWritten: ?*u32, ) callconv(@import("std").os.windows.WINAPI) u32, else => *const fn ( offset: usize, lpBuffer: ?*const anyopaque, cb: u32, lpcbBytesWritten: ?*u32, ) callconv(@import("std").os.windows.WINAPI) u32, }; pub const PWINDBG_WRITE_PROCESS_MEMORY_ROUTINE32 = switch (@import("builtin").zig_backend) { .stage1 => fn ( offset: u32, lpBuffer: ?*const anyopaque, cb: u32, lpcbBytesWritten: ?*u32, ) callconv(@import("std").os.windows.WINAPI) u32, else => *const fn ( offset: u32, lpBuffer: ?*const anyopaque, cb: u32, lpcbBytesWritten: ?*u32, ) callconv(@import("std").os.windows.WINAPI) u32, }; pub const PWINDBG_WRITE_PROCESS_MEMORY_ROUTINE64 = switch (@import("builtin").zig_backend) { .stage1 => fn ( offset: u64, lpBuffer: ?*const anyopaque, cb: u32, lpcbBytesWritten: ?*u32, ) callconv(@import("std").os.windows.WINAPI) u32, else => *const fn ( offset: u64, lpBuffer: ?*const anyopaque, cb: u32, lpcbBytesWritten: ?*u32, ) callconv(@import("std").os.windows.WINAPI) u32, }; pub const PWINDBG_GET_THREAD_CONTEXT_ROUTINE = switch (@import("builtin").zig_backend) { .stage1 => fn ( Processor: u32, lpContext: ?*CONTEXT, cbSizeOfContext: u32, ) callconv(@import("std").os.windows.WINAPI) u32, else => *const fn ( Processor: u32, lpContext: ?*CONTEXT, cbSizeOfContext: u32, ) callconv(@import("std").os.windows.WINAPI) u32, }; pub const PWINDBG_SET_THREAD_CONTEXT_ROUTINE = switch (@import("builtin").zig_backend) { .stage1 => fn ( Processor: u32, lpContext: ?*CONTEXT, cbSizeOfContext: u32, ) callconv(@import("std").os.windows.WINAPI) u32, else => *const fn ( Processor: u32, lpContext: ?*CONTEXT, cbSizeOfContext: u32, ) callconv(@import("std").os.windows.WINAPI) u32, }; pub const PWINDBG_IOCTL_ROUTINE = switch (@import("builtin").zig_backend) { .stage1 => fn ( IoctlType: u16, lpvData: ?*anyopaque, cbSize: u32, ) callconv(@import("std").os.windows.WINAPI) u32, else => *const fn ( IoctlType: u16, lpvData: ?*anyopaque, cbSize: u32, ) callconv(@import("std").os.windows.WINAPI) u32, }; pub const PWINDBG_OLDKD_READ_PHYSICAL_MEMORY = switch (@import("builtin").zig_backend) { .stage1 => fn ( address: u64, buffer: ?*anyopaque, count: u32, bytesread: ?*u32, ) callconv(@import("std").os.windows.WINAPI) u32, else => *const fn ( address: u64, buffer: ?*anyopaque, count: u32, bytesread: ?*u32, ) callconv(@import("std").os.windows.WINAPI) u32, }; pub const PWINDBG_OLDKD_WRITE_PHYSICAL_MEMORY = switch (@import("builtin").zig_backend) { .stage1 => fn ( address: u64, buffer: ?*anyopaque, length: u32, byteswritten: ?*u32, ) callconv(@import("std").os.windows.WINAPI) u32, else => *const fn ( address: u64, buffer: ?*anyopaque, length: u32, byteswritten: ?*u32, ) callconv(@import("std").os.windows.WINAPI) u32, }; pub const EXTSTACKTRACE = extern struct { FramePointer: u32, ProgramCounter: u32, ReturnAddress: u32, Args: [4]u32, }; pub const EXTSTACKTRACE32 = extern struct { FramePointer: u32, ProgramCounter: u32, ReturnAddress: u32, Args: [4]u32, }; pub const EXTSTACKTRACE64 = extern struct { FramePointer: u64, ProgramCounter: u64, ReturnAddress: u64, Args: [4]u64, }; pub const PWINDBG_STACKTRACE_ROUTINE = switch (@import("builtin").zig_backend) { .stage1 => fn ( FramePointer: u32, StackPointer: u32, ProgramCounter: u32, StackFrames: ?*EXTSTACKTRACE, Frames: u32, ) callconv(@import("std").os.windows.WINAPI) u32, else => *const fn ( FramePointer: u32, StackPointer: u32, ProgramCounter: u32, StackFrames: ?*EXTSTACKTRACE, Frames: u32, ) callconv(@import("std").os.windows.WINAPI) u32, }; pub const PWINDBG_STACKTRACE_ROUTINE32 = switch (@import("builtin").zig_backend) { .stage1 => fn ( FramePointer: u32, StackPointer: u32, ProgramCounter: u32, StackFrames: ?*EXTSTACKTRACE32, Frames: u32, ) callconv(@import("std").os.windows.WINAPI) u32, else => *const fn ( FramePointer: u32, StackPointer: u32, ProgramCounter: u32, StackFrames: ?*EXTSTACKTRACE32, Frames: u32, ) callconv(@import("std").os.windows.WINAPI) u32, }; pub const PWINDBG_STACKTRACE_ROUTINE64 = switch (@import("builtin").zig_backend) { .stage1 => fn ( FramePointer: u64, StackPointer: u64, ProgramCounter: u64, StackFrames: ?*EXTSTACKTRACE64, Frames: u32, ) callconv(@import("std").os.windows.WINAPI) u32, else => *const fn ( FramePointer: u64, StackPointer: u64, ProgramCounter: u64, StackFrames: ?*EXTSTACKTRACE64, Frames: u32, ) callconv(@import("std").os.windows.WINAPI) u32, }; pub const WINDBG_EXTENSION_APIS = extern struct { nSize: u32, lpOutputRoutine: ?PWINDBG_OUTPUT_ROUTINE, lpGetExpressionRoutine: ?PWINDBG_GET_EXPRESSION, lpGetSymbolRoutine: ?PWINDBG_GET_SYMBOL, lpDisasmRoutine: ?PWINDBG_DISASM, lpCheckControlCRoutine: ?PWINDBG_CHECK_CONTROL_C, lpReadProcessMemoryRoutine: ?PWINDBG_READ_PROCESS_MEMORY_ROUTINE, lpWriteProcessMemoryRoutine: ?PWINDBG_WRITE_PROCESS_MEMORY_ROUTINE, lpGetThreadContextRoutine: ?PWINDBG_GET_THREAD_CONTEXT_ROUTINE, lpSetThreadContextRoutine: ?PWINDBG_SET_THREAD_CONTEXT_ROUTINE, lpIoctlRoutine: ?PWINDBG_IOCTL_ROUTINE, lpStackTraceRoutine: ?PWINDBG_STACKTRACE_ROUTINE, }; pub const WINDBG_EXTENSION_APIS32 = extern struct { nSize: u32, lpOutputRoutine: ?PWINDBG_OUTPUT_ROUTINE, lpGetExpressionRoutine: ?PWINDBG_GET_EXPRESSION32, lpGetSymbolRoutine: ?PWINDBG_GET_SYMBOL32, lpDisasmRoutine: ?PWINDBG_DISASM32, lpCheckControlCRoutine: ?PWINDBG_CHECK_CONTROL_C, lpReadProcessMemoryRoutine: ?PWINDBG_READ_PROCESS_MEMORY_ROUTINE32, lpWriteProcessMemoryRoutine: ?PWINDBG_WRITE_PROCESS_MEMORY_ROUTINE32, lpGetThreadContextRoutine: ?PWINDBG_GET_THREAD_CONTEXT_ROUTINE, lpSetThreadContextRoutine: ?PWINDBG_SET_THREAD_CONTEXT_ROUTINE, lpIoctlRoutine: ?PWINDBG_IOCTL_ROUTINE, lpStackTraceRoutine: ?PWINDBG_STACKTRACE_ROUTINE32, }; pub const WINDBG_EXTENSION_APIS64 = extern struct { nSize: u32, lpOutputRoutine: ?PWINDBG_OUTPUT_ROUTINE, lpGetExpressionRoutine: ?PWINDBG_GET_EXPRESSION64, lpGetSymbolRoutine: ?PWINDBG_GET_SYMBOL64, lpDisasmRoutine: ?PWINDBG_DISASM64, lpCheckControlCRoutine: ?PWINDBG_CHECK_CONTROL_C, lpReadProcessMemoryRoutine: ?PWINDBG_READ_PROCESS_MEMORY_ROUTINE64, lpWriteProcessMemoryRoutine: ?PWINDBG_WRITE_PROCESS_MEMORY_ROUTINE64, lpGetThreadContextRoutine: ?PWINDBG_GET_THREAD_CONTEXT_ROUTINE, lpSetThreadContextRoutine: ?PWINDBG_SET_THREAD_CONTEXT_ROUTINE, lpIoctlRoutine: ?PWINDBG_IOCTL_ROUTINE, lpStackTraceRoutine: ?PWINDBG_STACKTRACE_ROUTINE64, }; pub const WINDBG_OLD_EXTENSION_APIS = extern struct { nSize: u32, lpOutputRoutine: ?PWINDBG_OUTPUT_ROUTINE, lpGetExpressionRoutine: ?PWINDBG_GET_EXPRESSION, lpGetSymbolRoutine: ?PWINDBG_GET_SYMBOL, lpDisasmRoutine: ?PWINDBG_DISASM, lpCheckControlCRoutine: ?PWINDBG_CHECK_CONTROL_C, }; pub const WINDBG_OLDKD_EXTENSION_APIS = extern struct { nSize: u32, lpOutputRoutine: ?PWINDBG_OUTPUT_ROUTINE, lpGetExpressionRoutine: ?PWINDBG_GET_EXPRESSION32, lpGetSymbolRoutine: ?PWINDBG_GET_SYMBOL32, lpDisasmRoutine: ?PWINDBG_DISASM32, lpCheckControlCRoutine: ?PWINDBG_CHECK_CONTROL_C, lpReadVirtualMemRoutine: ?PWINDBG_READ_PROCESS_MEMORY_ROUTINE32, lpWriteVirtualMemRoutine: ?PWINDBG_WRITE_PROCESS_MEMORY_ROUTINE32, lpReadPhysicalMemRoutine: ?PWINDBG_OLDKD_READ_PHYSICAL_MEMORY, lpWritePhysicalMemRoutine: ?PWINDBG_OLDKD_WRITE_PHYSICAL_MEMORY, }; pub const PWINDBG_OLD_EXTENSION_ROUTINE = switch (@import("builtin").zig_backend) { .stage1 => fn ( dwCurrentPc: u32, lpExtensionApis: ?*WINDBG_EXTENSION_APIS, lpArgumentString: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) void, else => *const fn ( dwCurrentPc: u32, lpExtensionApis: ?*WINDBG_EXTENSION_APIS, lpArgumentString: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) void, }; pub const PWINDBG_EXTENSION_ROUTINE = switch (@import("builtin").zig_backend) { .stage1 => fn ( hCurrentProcess: ?HANDLE, hCurrentThread: ?HANDLE, dwCurrentPc: u32, dwProcessor: u32, lpArgumentString: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) void, else => *const fn ( hCurrentProcess: ?HANDLE, hCurrentThread: ?HANDLE, dwCurrentPc: u32, dwProcessor: u32, lpArgumentString: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) void, }; pub const PWINDBG_EXTENSION_ROUTINE32 = switch (@import("builtin").zig_backend) { .stage1 => fn ( hCurrentProcess: ?HANDLE, hCurrentThread: ?HANDLE, dwCurrentPc: u32, dwProcessor: u32, lpArgumentString: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) void, else => *const fn ( hCurrentProcess: ?HANDLE, hCurrentThread: ?HANDLE, dwCurrentPc: u32, dwProcessor: u32, lpArgumentString: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) void, }; pub const PWINDBG_EXTENSION_ROUTINE64 = switch (@import("builtin").zig_backend) { .stage1 => fn ( hCurrentProcess: ?HANDLE, hCurrentThread: ?HANDLE, dwCurrentPc: u64, dwProcessor: u32, lpArgumentString: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) void, else => *const fn ( hCurrentProcess: ?HANDLE, hCurrentThread: ?HANDLE, dwCurrentPc: u64, dwProcessor: u32, lpArgumentString: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) void, }; pub const PWINDBG_OLDKD_EXTENSION_ROUTINE = switch (@import("builtin").zig_backend) { .stage1 => fn ( dwCurrentPc: u32, lpExtensionApis: ?*WINDBG_OLDKD_EXTENSION_APIS, lpArgumentString: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) void, else => *const fn ( dwCurrentPc: u32, lpExtensionApis: ?*WINDBG_OLDKD_EXTENSION_APIS, lpArgumentString: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) void, }; pub const PWINDBG_EXTENSION_DLL_INIT = switch (@import("builtin").zig_backend) { .stage1 => fn ( lpExtensionApis: ?*WINDBG_EXTENSION_APIS, MajorVersion: u16, MinorVersion: u16, ) callconv(@import("std").os.windows.WINAPI) void, else => *const fn ( lpExtensionApis: ?*WINDBG_EXTENSION_APIS, MajorVersion: u16, MinorVersion: u16, ) callconv(@import("std").os.windows.WINAPI) void, }; pub const PWINDBG_EXTENSION_DLL_INIT32 = switch (@import("builtin").zig_backend) { .stage1 => fn ( lpExtensionApis: ?*WINDBG_EXTENSION_APIS32, MajorVersion: u16, MinorVersion: u16, ) callconv(@import("std").os.windows.WINAPI) void, else => *const fn ( lpExtensionApis: ?*WINDBG_EXTENSION_APIS32, MajorVersion: u16, MinorVersion: u16, ) callconv(@import("std").os.windows.WINAPI) void, }; pub const PWINDBG_EXTENSION_DLL_INIT64 = switch (@import("builtin").zig_backend) { .stage1 => fn ( lpExtensionApis: ?*WINDBG_EXTENSION_APIS64, MajorVersion: u16, MinorVersion: u16, ) callconv(@import("std").os.windows.WINAPI) void, else => *const fn ( lpExtensionApis: ?*WINDBG_EXTENSION_APIS64, MajorVersion: u16, MinorVersion: u16, ) callconv(@import("std").os.windows.WINAPI) void, }; pub const PWINDBG_CHECK_VERSION = switch (@import("builtin").zig_backend) { .stage1 => fn () callconv(@import("std").os.windows.WINAPI) u32, else => *const fn () callconv(@import("std").os.windows.WINAPI) u32, }; pub const EXT_API_VERSION = extern struct { MajorVersion: u16, MinorVersion: u16, Revision: u16, Reserved: u16, }; pub const PWINDBG_EXTENSION_API_VERSION = switch (@import("builtin").zig_backend) { .stage1 => fn () callconv(@import("std").os.windows.WINAPI) ?*EXT_API_VERSION, else => *const fn () callconv(@import("std").os.windows.WINAPI) ?*EXT_API_VERSION, }; pub const PROCESSORINFO = extern struct { Processor: u16, NumberProcessors: u16, }; pub const READCONTROLSPACE = extern struct { Processor: u16, Address: u32, BufLen: u32, Buf: [1]u8, }; pub const READCONTROLSPACE32 = extern struct { Processor: u16, Address: u32, BufLen: u32, Buf: [1]u8, }; pub const READCONTROLSPACE64 = extern struct { Processor: u16, Address: u64, BufLen: u32, Buf: [1]u8, }; pub const IOSPACE = extern struct { Address: u32, Length: u32, Data: u32, }; pub const IOSPACE32 = extern struct { Address: u32, Length: u32, Data: u32, }; pub const IOSPACE64 = extern struct { Address: u64, Length: u32, Data: u32, }; pub const IOSPACE_EX = extern struct { Address: u32, Length: u32, Data: u32, InterfaceType: u32, BusNumber: u32, AddressSpace: u32, }; pub const IOSPACE_EX32 = extern struct { Address: u32, Length: u32, Data: u32, InterfaceType: u32, BusNumber: u32, AddressSpace: u32, }; pub const IOSPACE_EX64 = extern struct { Address: u64, Length: u32, Data: u32, InterfaceType: u32, BusNumber: u32, AddressSpace: u32, }; pub const _GETSETBUSDATA = extern struct { BusDataType: u32, BusNumber: u32, SlotNumber: u32, Buffer: ?*anyopaque, Offset: u32, Length: u32, }; pub const SEARCHMEMORY = extern struct { SearchAddress: u64, SearchLength: u64, FoundAddress: u64, PatternLength: u32, Pattern: ?*anyopaque, }; pub const PHYSICAL = extern struct { Address: u64, BufLen: u32, Buf: [1]u8, }; pub const PHYSICAL_WITH_FLAGS = extern struct { Address: u64, BufLen: u32, Flags: u32, Buf: [1]u8, }; pub const READ_WRITE_MSR = extern struct { Msr: u32, Value: i64, }; pub const GET_SET_SYMPATH = extern struct { Args: ?[*:0]const u8, Result: ?PSTR, Length: i32, }; pub const GET_TEB_ADDRESS = extern struct { Address: u64, }; pub const GET_PEB_ADDRESS = extern struct { CurrentThread: u64, Address: u64, }; pub const GET_CURRENT_THREAD_ADDRESS = extern struct { Processor: u32, Address: u64, }; pub const GET_CURRENT_PROCESS_ADDRESS = extern struct { Processor: u32, CurrentThread: u64, Address: u64, }; pub const GET_INPUT_LINE = extern struct { Prompt: ?[*:0]const u8, Buffer: ?PSTR, BufferSize: u32, InputSize: u32, }; pub const GET_EXPRESSION_EX = extern struct { Expression: ?[*:0]const u8, Remainder: ?[*:0]const u8, Value: u64, }; pub const TRANSLATE_VIRTUAL_TO_PHYSICAL = extern struct { Virtual: u64, Physical: u64, }; pub const VIRTUAL_TO_PHYSICAL = extern struct { Status: u32, Size: u32, PdeAddress: u64, Virtual: u64, Physical: u64, }; pub const PHYSICAL_TO_VIRTUAL = extern struct { Status: u32, Size: u32, PdeAddress: u64, }; pub const GET_CONTEXT_EX = extern struct { Status: u32, ContextSize: u32, pContext: ?*anyopaque, }; pub const POINTER_SEARCH_PHYSICAL = extern struct { Offset: u64, Length: u64, PointerMin: u64, PointerMax: u64, Flags: u32, MatchOffsets: ?*u64, MatchOffsetsSize: u32, MatchOffsetsCount: u32, }; pub const WDBGEXTS_THREAD_OS_INFO = extern struct { ThreadId: u32, ExitStatus: u32, PriorityClass: u32, Priority: u32, CreateTime: u64, ExitTime: u64, KernelTime: u64, UserTime: u64, StartOffset: u64, Affinity: u64, }; pub const WDBGEXTS_CLR_DATA_INTERFACE = extern struct { Iid: ?*const Guid, Iface: ?*anyopaque, }; pub const EXT_MATCH_PATTERN_A = extern struct { Str: ?[*:0]const u8, Pattern: ?[*:0]const u8, CaseSensitive: u32, }; pub const EXT_FIND_FILE = extern struct { FileName: ?[*:0]const u16, IndexedSize: u64, ImageTimeDateStamp: u32, ImageCheckSum: u32, ExtraInfo: ?*anyopaque, ExtraInfoSize: u32, Flags: u32, FileMapping: ?*anyopaque, FileMappingSize: u64, FileHandle: ?HANDLE, FoundFileName: ?PWSTR, FoundFileNameChars: u32, }; pub const DEBUG_TYPED_DATA = extern struct { ModBase: u64, Offset: u64, EngineHandle: u64, Data: u64, Size: u32, Flags: u32, TypeId: u32, BaseTypeId: u32, Tag: u32, Register: u32, Internal: [9]u64, }; pub const EXT_TDOP = enum(i32) { COPY = 0, RELEASE = 1, SET_FROM_EXPR = 2, SET_FROM_U64_EXPR = 3, GET_FIELD = 4, EVALUATE = 5, GET_TYPE_NAME = 6, OUTPUT_TYPE_NAME = 7, OUTPUT_SIMPLE_VALUE = 8, OUTPUT_FULL_VALUE = 9, HAS_FIELD = 10, GET_FIELD_OFFSET = 11, GET_ARRAY_ELEMENT = 12, GET_DEREFERENCE = 13, GET_TYPE_SIZE = 14, OUTPUT_TYPE_DEFINITION = 15, GET_POINTER_TO = 16, SET_FROM_TYPE_ID_AND_U64 = 17, SET_PTR_FROM_TYPE_ID_AND_U64 = 18, COUNT = 19, }; pub const EXT_TDOP_COPY = EXT_TDOP.COPY; pub const EXT_TDOP_RELEASE = EXT_TDOP.RELEASE; pub const EXT_TDOP_SET_FROM_EXPR = EXT_TDOP.SET_FROM_EXPR; pub const EXT_TDOP_SET_FROM_U64_EXPR = EXT_TDOP.SET_FROM_U64_EXPR; pub const EXT_TDOP_GET_FIELD = EXT_TDOP.GET_FIELD; pub const EXT_TDOP_EVALUATE = EXT_TDOP.EVALUATE; pub const EXT_TDOP_GET_TYPE_NAME = EXT_TDOP.GET_TYPE_NAME; pub const EXT_TDOP_OUTPUT_TYPE_NAME = EXT_TDOP.OUTPUT_TYPE_NAME; pub const EXT_TDOP_OUTPUT_SIMPLE_VALUE = EXT_TDOP.OUTPUT_SIMPLE_VALUE; pub const EXT_TDOP_OUTPUT_FULL_VALUE = EXT_TDOP.OUTPUT_FULL_VALUE; pub const EXT_TDOP_HAS_FIELD = EXT_TDOP.HAS_FIELD; pub const EXT_TDOP_GET_FIELD_OFFSET = EXT_TDOP.GET_FIELD_OFFSET; pub const EXT_TDOP_GET_ARRAY_ELEMENT = EXT_TDOP.GET_ARRAY_ELEMENT; pub const EXT_TDOP_GET_DEREFERENCE = EXT_TDOP.GET_DEREFERENCE; pub const EXT_TDOP_GET_TYPE_SIZE = EXT_TDOP.GET_TYPE_SIZE; pub const EXT_TDOP_OUTPUT_TYPE_DEFINITION = EXT_TDOP.OUTPUT_TYPE_DEFINITION; pub const EXT_TDOP_GET_POINTER_TO = EXT_TDOP.GET_POINTER_TO; pub const EXT_TDOP_SET_FROM_TYPE_ID_AND_U64 = EXT_TDOP.SET_FROM_TYPE_ID_AND_U64; pub const EXT_TDOP_SET_PTR_FROM_TYPE_ID_AND_U64 = EXT_TDOP.SET_PTR_FROM_TYPE_ID_AND_U64; pub const EXT_TDOP_COUNT = EXT_TDOP.COUNT; pub const EXT_TYPED_DATA = extern struct { Operation: EXT_TDOP, Flags: u32, InData: DEBUG_TYPED_DATA, OutData: DEBUG_TYPED_DATA, InStrIndex: u32, In32: u32, Out32: u32, In64: u64, Out64: u64, StrBufferIndex: u32, StrBufferChars: u32, StrCharsNeeded: u32, DataBufferIndex: u32, DataBufferBytes: u32, DataBytesNeeded: u32, Status: HRESULT, Reserved: [8]u64, }; pub const WDBGEXTS_QUERY_INTERFACE = extern struct { Iid: ?*const Guid, Iface: ?*anyopaque, }; pub const WDBGEXTS_DISASSEMBLE_BUFFER = extern struct { InOffset: u64, OutOffset: u64, AddrFlags: u32, FormatFlags: u32, DataBufferBytes: u32, DisasmBufferChars: u32, DataBuffer: ?*anyopaque, DisasmBuffer: ?PWSTR, Reserved0: [3]u64, }; pub const WDBGEXTS_MODULE_IN_RANGE = extern struct { Start: u64, End: u64, FoundModBase: u64, FoundModSize: u32, }; pub const DBGKD_MAJOR_TYPES = enum(i32) { NT = 0, XBOX = 1, BIG = 2, EXDI = 3, NTBD = 4, EFI = 5, TNT = 6, SINGULARITY = 7, HYPERVISOR = 8, MIDORI = 9, CE = 10, COUNT = 11, }; pub const DBGKD_MAJOR_NT = DBGKD_MAJOR_TYPES.NT; pub const DBGKD_MAJOR_XBOX = DBGKD_MAJOR_TYPES.XBOX; pub const DBGKD_MAJOR_BIG = DBGKD_MAJOR_TYPES.BIG; pub const DBGKD_MAJOR_EXDI = DBGKD_MAJOR_TYPES.EXDI; pub const DBGKD_MAJOR_NTBD = DBGKD_MAJOR_TYPES.NTBD; pub const DBGKD_MAJOR_EFI = DBGKD_MAJOR_TYPES.EFI; pub const DBGKD_MAJOR_TNT = DBGKD_MAJOR_TYPES.TNT; pub const DBGKD_MAJOR_SINGULARITY = DBGKD_MAJOR_TYPES.SINGULARITY; pub const DBGKD_MAJOR_HYPERVISOR = DBGKD_MAJOR_TYPES.HYPERVISOR; pub const DBGKD_MAJOR_MIDORI = DBGKD_MAJOR_TYPES.MIDORI; pub const DBGKD_MAJOR_CE = DBGKD_MAJOR_TYPES.CE; pub const DBGKD_MAJOR_COUNT = DBGKD_MAJOR_TYPES.COUNT; pub const DBGKD_GET_VERSION32 = extern struct { MajorVersion: u16, MinorVersion: u16, ProtocolVersion: u16, Flags: u16, KernBase: u32, PsLoadedModuleList: u32, MachineType: u16, ThCallbackStack: u16, NextCallback: u16, FramePointer: u16, KiCallUserMode: u32, KeUserCallbackDispatcher: u32, BreakpointWithStatus: u32, DebuggerDataList: u32, }; pub const DBGKD_DEBUG_DATA_HEADER32 = extern struct { List: LIST_ENTRY32, OwnerTag: u32, Size: u32, }; pub const KDDEBUGGER_DATA32 = extern struct { Header: DBGKD_DEBUG_DATA_HEADER32, KernBase: u32, BreakpointWithStatus: u32, SavedContext: u32, ThCallbackStack: u16, NextCallback: u16, FramePointer: u16, _bitfield: u16, KiCallUserMode: u32, KeUserCallbackDispatcher: u32, PsLoadedModuleList: u32, PsActiveProcessHead: u32, PspCidTable: u32, ExpSystemResourcesList: u32, ExpPagedPoolDescriptor: u32, ExpNumberOfPagedPools: u32, KeTimeIncrement: u32, KeBugCheckCallbackListHead: u32, KiBugcheckData: u32, IopErrorLogListHead: u32, ObpRootDirectoryObject: u32, ObpTypeObjectType: u32, MmSystemCacheStart: u32, MmSystemCacheEnd: u32, MmSystemCacheWs: u32, MmPfnDatabase: u32, MmSystemPtesStart: u32, MmSystemPtesEnd: u32, MmSubsectionBase: u32, MmNumberOfPagingFiles: u32, MmLowestPhysicalPage: u32, MmHighestPhysicalPage: u32, MmNumberOfPhysicalPages: u32, MmMaximumNonPagedPoolInBytes: u32, MmNonPagedSystemStart: u32, MmNonPagedPoolStart: u32, MmNonPagedPoolEnd: u32, MmPagedPoolStart: u32, MmPagedPoolEnd: u32, MmPagedPoolInformation: u32, MmPageSize: u32, MmSizeOfPagedPoolInBytes: u32, MmTotalCommitLimit: u32, MmTotalCommittedPages: u32, MmSharedCommit: u32, MmDriverCommit: u32, MmProcessCommit: u32, MmPagedPoolCommit: u32, MmExtendedCommit: u32, MmZeroedPageListHead: u32, MmFreePageListHead: u32, MmStandbyPageListHead: u32, MmModifiedPageListHead: u32, MmModifiedNoWritePageListHead: u32, MmAvailablePages: u32, MmResidentAvailablePages: u32, PoolTrackTable: u32, NonPagedPoolDescriptor: u32, MmHighestUserAddress: u32, MmSystemRangeStart: u32, MmUserProbeAddress: u32, KdPrintCircularBuffer: u32, KdPrintCircularBufferEnd: u32, KdPrintWritePointer: u32, KdPrintRolloverCount: u32, MmLoadedUserImageList: u32, }; pub const DBGKD_GET_VERSION64 = extern struct { MajorVersion: u16, MinorVersion: u16, ProtocolVersion: u8, KdSecondaryVersion: u8, Flags: u16, MachineType: u16, MaxPacketType: u8, MaxStateChange: u8, MaxManipulate: u8, Simulation: u8, Unused: [1]u16, KernBase: u64, PsLoadedModuleList: u64, DebuggerDataList: u64, }; pub const DBGKD_DEBUG_DATA_HEADER64 = extern struct { List: LIST_ENTRY64, OwnerTag: u32, Size: u32, }; pub const KDDEBUGGER_DATA64 = extern struct { Header: DBGKD_DEBUG_DATA_HEADER64, KernBase: u64, BreakpointWithStatus: u64, SavedContext: u64, ThCallbackStack: u16, NextCallback: u16, FramePointer: u16, _bitfield: u16, KiCallUserMode: u64, KeUserCallbackDispatcher: u64, PsLoadedModuleList: u64, PsActiveProcessHead: u64, PspCidTable: u64, ExpSystemResourcesList: u64, ExpPagedPoolDescriptor: u64, ExpNumberOfPagedPools: u64, KeTimeIncrement: u64, KeBugCheckCallbackListHead: u64, KiBugcheckData: u64, IopErrorLogListHead: u64, ObpRootDirectoryObject: u64, ObpTypeObjectType: u64, MmSystemCacheStart: u64, MmSystemCacheEnd: u64, MmSystemCacheWs: u64, MmPfnDatabase: u64, MmSystemPtesStart: u64, MmSystemPtesEnd: u64, MmSubsectionBase: u64, MmNumberOfPagingFiles: u64, MmLowestPhysicalPage: u64, MmHighestPhysicalPage: u64, MmNumberOfPhysicalPages: u64, MmMaximumNonPagedPoolInBytes: u64, MmNonPagedSystemStart: u64, MmNonPagedPoolStart: u64, MmNonPagedPoolEnd: u64, MmPagedPoolStart: u64, MmPagedPoolEnd: u64, MmPagedPoolInformation: u64, MmPageSize: u64, MmSizeOfPagedPoolInBytes: u64, MmTotalCommitLimit: u64, MmTotalCommittedPages: u64, MmSharedCommit: u64, MmDriverCommit: u64, MmProcessCommit: u64, MmPagedPoolCommit: u64, MmExtendedCommit: u64, MmZeroedPageListHead: u64, MmFreePageListHead: u64, MmStandbyPageListHead: u64, MmModifiedPageListHead: u64, MmModifiedNoWritePageListHead: u64, MmAvailablePages: u64, MmResidentAvailablePages: u64, PoolTrackTable: u64, NonPagedPoolDescriptor: u64, MmHighestUserAddress: u64, MmSystemRangeStart: u64, MmUserProbeAddress: u64, KdPrintCircularBuffer: u64, KdPrintCircularBufferEnd: u64, KdPrintWritePointer: u64, KdPrintRolloverCount: u64, MmLoadedUserImageList: u64, NtBuildLab: u64, KiNormalSystemCall: u64, KiProcessorBlock: u64, MmUnloadedDrivers: u64, MmLastUnloadedDriver: u64, MmTriageActionTaken: u64, MmSpecialPoolTag: u64, KernelVerifier: u64, MmVerifierData: u64, MmAllocatedNonPagedPool: u64, MmPeakCommitment: u64, MmTotalCommitLimitMaximum: u64, CmNtCSDVersion: u64, MmPhysicalMemoryBlock: u64, MmSessionBase: u64, MmSessionSize: u64, MmSystemParentTablePage: u64, MmVirtualTranslationBase: u64, OffsetKThreadNextProcessor: u16, OffsetKThreadTeb: u16, OffsetKThreadKernelStack: u16, OffsetKThreadInitialStack: u16, OffsetKThreadApcProcess: u16, OffsetKThreadState: u16, OffsetKThreadBStore: u16, OffsetKThreadBStoreLimit: u16, SizeEProcess: u16, OffsetEprocessPeb: u16, OffsetEprocessParentCID: u16, OffsetEprocessDirectoryTableBase: u16, SizePrcb: u16, OffsetPrcbDpcRoutine: u16, OffsetPrcbCurrentThread: u16, OffsetPrcbMhz: u16, OffsetPrcbCpuType: u16, OffsetPrcbVendorString: u16, OffsetPrcbProcStateContext: u16, OffsetPrcbNumber: u16, SizeEThread: u16, L1tfHighPhysicalBitIndex: u8, L1tfSwizzleBitIndex: u8, Padding0: u32, KdPrintCircularBufferPtr: u64, KdPrintBufferSize: u64, KeLoaderBlock: u64, SizePcr: u16, OffsetPcrSelfPcr: u16, OffsetPcrCurrentPrcb: u16, OffsetPcrContainedPrcb: u16, OffsetPcrInitialBStore: u16, OffsetPcrBStoreLimit: u16, OffsetPcrInitialStack: u16, OffsetPcrStackLimit: u16, OffsetPrcbPcrPage: u16, OffsetPrcbProcStateSpecialReg: u16, GdtR0Code: u16, GdtR0Data: u16, GdtR0Pcr: u16, GdtR3Code: u16, GdtR3Data: u16, GdtR3Teb: u16, GdtLdt: u16, GdtTss: u16, Gdt64R3CmCode: u16, Gdt64R3CmTeb: u16, IopNumTriageDumpDataBlocks: u64, IopTriageDumpDataBlocks: u64, VfCrashDataBlock: u64, MmBadPagesDetected: u64, MmZeroedPageSingleBitErrorsDetected: u64, EtwpDebuggerData: u64, OffsetPrcbContext: u16, OffsetPrcbMaxBreakpoints: u16, OffsetPrcbMaxWatchpoints: u16, OffsetKThreadStackLimit: u32, OffsetKThreadStackBase: u32, OffsetKThreadQueueListEntry: u32, OffsetEThreadIrpList: u32, OffsetPrcbIdleThread: u16, OffsetPrcbNormalDpcState: u16, OffsetPrcbDpcStack: u16, OffsetPrcbIsrStack: u16, SizeKDPC_STACK_FRAME: u16, OffsetKPriQueueThreadListHead: u16, OffsetKThreadWaitReason: u16, Padding1: u16, PteBase: u64, RetpolineStubFunctionTable: u64, RetpolineStubFunctionTableSize: u32, RetpolineStubOffset: u32, RetpolineStubSize: u32, OffsetEProcessMmHotPatchContext: u16, }; pub const PSYM_DUMP_FIELD_CALLBACK = switch (@import("builtin").zig_backend) { .stage1 => fn ( pField: ?*FIELD_INFO, UserContext: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) u32, else => *const fn ( pField: ?*FIELD_INFO, UserContext: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) u32, }; pub const FIELD_INFO = extern struct { pub const _BitField = extern struct { Position: u16, Size: u16, }; fName: ?*u8, printName: ?*u8, size: u32, fOptions: u32, address: u64, Anonymous: extern union { fieldCallBack: ?*anyopaque, pBuffer: ?*anyopaque, }, TypeId: u32, FieldOffset: u32, BufferSize: u32, BitField: _BitField, _bitfield: u32, }; pub const SYM_DUMP_PARAM = extern struct { size: u32, sName: ?*u8, Options: u32, addr: u64, listLink: ?*FIELD_INFO, Anonymous: extern union { Context: ?*anyopaque, pBuffer: ?*anyopaque, }, CallbackRoutine: ?PSYM_DUMP_FIELD_CALLBACK, nFields: u32, Fields: ?*FIELD_INFO, ModBase: u64, TypeId: u32, TypeSize: u32, BufferSize: u32, _bitfield: u32, }; pub const M128A = extern struct { Low: u64, High: i64, }; pub const XSAVE_AREA_HEADER = extern struct { Mask: u64, CompactionMask: u64, Reserved2: [6]u64, }; pub const XSAVE_AREA = extern struct { LegacyState: XSAVE_FORMAT, Header: XSAVE_AREA_HEADER, }; pub const ARM64_NT_NEON128 = extern union { Anonymous: extern struct { Low: u64, High: i64, }, D: [2]f64, S: [4]f32, H: [8]u16, B: [16]u8, }; pub const LDT_ENTRY = extern struct { LimitLow: u16, BaseLow: u16, HighWord: extern union { Bytes: extern struct { BaseMid: u8, Flags1: u8, Flags2: u8, BaseHi: u8, }, Bits: extern struct { _bitfield: u32, }, }, }; pub const WOW64_FLOATING_SAVE_AREA = extern struct { ControlWord: u32, StatusWord: u32, TagWord: u32, ErrorOffset: u32, ErrorSelector: u32, DataOffset: u32, DataSelector: u32, RegisterArea: [80]u8, Cr0NpxState: u32, }; pub const WOW64_CONTEXT = extern struct { ContextFlags: u32, Dr0: u32, Dr1: u32, Dr2: u32, Dr3: u32, Dr6: u32, Dr7: u32, FloatSave: WOW64_FLOATING_SAVE_AREA, SegGs: u32, SegFs: u32, SegEs: u32, SegDs: u32, Edi: u32, Esi: u32, Ebx: u32, Edx: u32, Ecx: u32, Eax: u32, Ebp: u32, Eip: u32, SegCs: u32, EFlags: u32, Esp: u32, SegSs: u32, ExtendedRegisters: [512]u8, }; pub const WOW64_LDT_ENTRY = extern struct { LimitLow: u16, BaseLow: u16, HighWord: extern union { Bytes: extern struct { BaseMid: u8, Flags1: u8, Flags2: u8, BaseHi: u8, }, Bits: extern struct { _bitfield: u32, }, }, }; pub const WOW64_DESCRIPTOR_TABLE_ENTRY = extern struct { Selector: u32, Descriptor: WOW64_LDT_ENTRY, }; pub const EXCEPTION_RECORD = extern struct { ExceptionCode: NTSTATUS, ExceptionFlags: u32, ExceptionRecord: ?*EXCEPTION_RECORD, ExceptionAddress: ?*anyopaque, NumberParameters: u32, ExceptionInformation: [15]usize, }; pub const EXCEPTION_RECORD32 = extern struct { ExceptionCode: NTSTATUS, ExceptionFlags: u32, ExceptionRecord: u32, ExceptionAddress: u32, NumberParameters: u32, ExceptionInformation: [15]u32, }; pub const EXCEPTION_RECORD64 = extern struct { ExceptionCode: NTSTATUS, ExceptionFlags: u32, ExceptionRecord: u64, ExceptionAddress: u64, NumberParameters: u32, __unusedAlignment: u32, ExceptionInformation: [15]u64, }; pub const EXCEPTION_POINTERS = extern struct { ExceptionRecord: ?*EXCEPTION_RECORD, ContextRecord: ?*CONTEXT, }; pub const XSTATE_FEATURE = extern struct { Offset: u32, Size: u32, }; pub const XSTATE_CONFIGURATION = extern struct { EnabledFeatures: u64, EnabledVolatileFeatures: u64, Size: u32, Anonymous: extern union { ControlFlags: u32, Anonymous: extern struct { _bitfield: u32, }, }, Features: [64]XSTATE_FEATURE, EnabledSupervisorFeatures: u64, AlignedFeatures: u64, AllFeatureSize: u32, AllFeatures: [64]u32, EnabledUserVisibleSupervisorFeatures: u64, ExtendedFeatureDisableFeatures: u64, AllNonLargeFeatureSize: u32, Spare: u32, }; pub const IMAGE_FILE_HEADER = extern struct { Machine: IMAGE_FILE_MACHINE, NumberOfSections: u16, TimeDateStamp: u32, PointerToSymbolTable: u32, NumberOfSymbols: u32, SizeOfOptionalHeader: u16, Characteristics: IMAGE_FILE_CHARACTERISTICS, }; pub const IMAGE_DATA_DIRECTORY = extern struct { VirtualAddress: u32, Size: u32, }; pub const IMAGE_OPTIONAL_HEADER32 = extern struct { Magic: IMAGE_OPTIONAL_HEADER_MAGIC, MajorLinkerVersion: u8, MinorLinkerVersion: u8, SizeOfCode: u32, SizeOfInitializedData: u32, SizeOfUninitializedData: u32, AddressOfEntryPoint: u32, BaseOfCode: u32, BaseOfData: u32, ImageBase: u32, SectionAlignment: u32, FileAlignment: u32, MajorOperatingSystemVersion: u16, MinorOperatingSystemVersion: u16, MajorImageVersion: u16, MinorImageVersion: u16, MajorSubsystemVersion: u16, MinorSubsystemVersion: u16, Win32VersionValue: u32, SizeOfImage: u32, SizeOfHeaders: u32, CheckSum: u32, Subsystem: IMAGE_SUBSYSTEM, DllCharacteristics: IMAGE_DLL_CHARACTERISTICS, SizeOfStackReserve: u32, SizeOfStackCommit: u32, SizeOfHeapReserve: u32, SizeOfHeapCommit: u32, /// Deprecated LoaderFlags: u32, NumberOfRvaAndSizes: u32, DataDirectory: [16]IMAGE_DATA_DIRECTORY, }; pub const IMAGE_ROM_OPTIONAL_HEADER = extern struct { Magic: u16, MajorLinkerVersion: u8, MinorLinkerVersion: u8, SizeOfCode: u32, SizeOfInitializedData: u32, SizeOfUninitializedData: u32, AddressOfEntryPoint: u32, BaseOfCode: u32, BaseOfData: u32, BaseOfBss: u32, GprMask: u32, CprMask: [4]u32, GpValue: u32, }; pub const IMAGE_OPTIONAL_HEADER64 = extern struct { Magic: IMAGE_OPTIONAL_HEADER_MAGIC align(4), MajorLinkerVersion: u8 align(4), MinorLinkerVersion: u8 align(4), SizeOfCode: u32 align(4), SizeOfInitializedData: u32 align(4), SizeOfUninitializedData: u32 align(4), AddressOfEntryPoint: u32 align(4), BaseOfCode: u32 align(4), ImageBase: u64 align(4), SectionAlignment: u32 align(4), FileAlignment: u32 align(4), MajorOperatingSystemVersion: u16 align(4), MinorOperatingSystemVersion: u16 align(4), MajorImageVersion: u16 align(4), MinorImageVersion: u16 align(4), MajorSubsystemVersion: u16 align(4), MinorSubsystemVersion: u16 align(4), Win32VersionValue: u32 align(4), SizeOfImage: u32 align(4), SizeOfHeaders: u32 align(4), CheckSum: u32 align(4), Subsystem: IMAGE_SUBSYSTEM align(4), DllCharacteristics: IMAGE_DLL_CHARACTERISTICS align(4), SizeOfStackReserve: u64 align(4), SizeOfStackCommit: u64 align(4), SizeOfHeapReserve: u64 align(4), SizeOfHeapCommit: u64 align(4), /// Deprecated LoaderFlags: u32 align(4), NumberOfRvaAndSizes: u32 align(4), DataDirectory: [16]IMAGE_DATA_DIRECTORY align(4), }; pub const IMAGE_NT_HEADERS64 = extern struct { Signature: u32, FileHeader: IMAGE_FILE_HEADER, OptionalHeader: IMAGE_OPTIONAL_HEADER64, }; pub const IMAGE_NT_HEADERS32 = extern struct { Signature: u32, FileHeader: IMAGE_FILE_HEADER, OptionalHeader: IMAGE_OPTIONAL_HEADER32, }; pub const IMAGE_ROM_HEADERS = extern struct { FileHeader: IMAGE_FILE_HEADER, OptionalHeader: IMAGE_ROM_OPTIONAL_HEADER, }; pub const IMAGE_SECTION_HEADER = extern struct { Name: [8]u8, Misc: extern union { PhysicalAddress: u32, VirtualSize: u32, }, VirtualAddress: u32, SizeOfRawData: u32, PointerToRawData: u32, PointerToRelocations: u32, PointerToLinenumbers: u32, NumberOfRelocations: u16, NumberOfLinenumbers: u16, Characteristics: IMAGE_SECTION_CHARACTERISTICS, }; pub const IMAGE_LOAD_CONFIG_CODE_INTEGRITY = extern struct { Flags: u16, Catalog: u16, CatalogOffset: u32, Reserved: u32, }; pub const IMAGE_LOAD_CONFIG_DIRECTORY32 = extern struct { Size: u32, TimeDateStamp: u32, MajorVersion: u16, MinorVersion: u16, GlobalFlagsClear: u32, GlobalFlagsSet: u32, CriticalSectionDefaultTimeout: u32, DeCommitFreeBlockThreshold: u32, DeCommitTotalFreeThreshold: u32, LockPrefixTable: u32, MaximumAllocationSize: u32, VirtualMemoryThreshold: u32, ProcessHeapFlags: u32, ProcessAffinityMask: u32, CSDVersion: u16, DependentLoadFlags: u16, EditList: u32, SecurityCookie: u32, SEHandlerTable: u32, SEHandlerCount: u32, GuardCFCheckFunctionPointer: u32, GuardCFDispatchFunctionPointer: u32, GuardCFFunctionTable: u32, GuardCFFunctionCount: u32, GuardFlags: u32, CodeIntegrity: IMAGE_LOAD_CONFIG_CODE_INTEGRITY, GuardAddressTakenIatEntryTable: u32, GuardAddressTakenIatEntryCount: u32, GuardLongJumpTargetTable: u32, GuardLongJumpTargetCount: u32, DynamicValueRelocTable: u32, CHPEMetadataPointer: u32, GuardRFFailureRoutine: u32, GuardRFFailureRoutineFunctionPointer: u32, DynamicValueRelocTableOffset: u32, DynamicValueRelocTableSection: u16, Reserved2: u16, GuardRFVerifyStackPointerFunctionPointer: u32, HotPatchTableOffset: u32, Reserved3: u32, EnclaveConfigurationPointer: u32, VolatileMetadataPointer: u32, GuardEHContinuationTable: u32, GuardEHContinuationCount: u32, GuardXFGCheckFunctionPointer: u32, GuardXFGDispatchFunctionPointer: u32, GuardXFGTableDispatchFunctionPointer: u32, CastGuardOsDeterminedFailureMode: u32, }; pub const IMAGE_LOAD_CONFIG_DIRECTORY64 = extern struct { Size: u32 align(4), TimeDateStamp: u32 align(4), MajorVersion: u16 align(4), MinorVersion: u16 align(4), GlobalFlagsClear: u32 align(4), GlobalFlagsSet: u32 align(4), CriticalSectionDefaultTimeout: u32 align(4), DeCommitFreeBlockThreshold: u64 align(4), DeCommitTotalFreeThreshold: u64 align(4), LockPrefixTable: u64 align(4), MaximumAllocationSize: u64 align(4), VirtualMemoryThreshold: u64 align(4), ProcessAffinityMask: u64 align(4), ProcessHeapFlags: u32 align(4), CSDVersion: u16 align(4), DependentLoadFlags: u16 align(4), EditList: u64 align(4), SecurityCookie: u64 align(4), SEHandlerTable: u64 align(4), SEHandlerCount: u64 align(4), GuardCFCheckFunctionPointer: u64 align(4), GuardCFDispatchFunctionPointer: u64 align(4), GuardCFFunctionTable: u64 align(4), GuardCFFunctionCount: u64 align(4), GuardFlags: u32 align(4), CodeIntegrity: IMAGE_LOAD_CONFIG_CODE_INTEGRITY align(4), GuardAddressTakenIatEntryTable: u64 align(4), GuardAddressTakenIatEntryCount: u64 align(4), GuardLongJumpTargetTable: u64 align(4), GuardLongJumpTargetCount: u64 align(4), DynamicValueRelocTable: u64 align(4), CHPEMetadataPointer: u64 align(4), GuardRFFailureRoutine: u64 align(4), GuardRFFailureRoutineFunctionPointer: u64 align(4), DynamicValueRelocTableOffset: u32 align(4), DynamicValueRelocTableSection: u16 align(4), Reserved2: u16 align(4), GuardRFVerifyStackPointerFunctionPointer: u64 align(4), HotPatchTableOffset: u32 align(4), Reserved3: u32 align(4), EnclaveConfigurationPointer: u64 align(4), VolatileMetadataPointer: u64 align(4), GuardEHContinuationTable: u64 align(4), GuardEHContinuationCount: u64 align(4), GuardXFGCheckFunctionPointer: u64 align(4), GuardXFGDispatchFunctionPointer: u64 align(4), GuardXFGTableDispatchFunctionPointer: u64 align(4), CastGuardOsDeterminedFailureMode: u64 align(4), }; pub const IMAGE_ARM64_RUNTIME_FUNCTION_ENTRY = extern struct { BeginAddress: u32, Anonymous: extern union { UnwindData: u32, Anonymous: extern struct { _bitfield: u32, }, }, }; pub const IMAGE_RUNTIME_FUNCTION_ENTRY = extern struct { BeginAddress: u32, EndAddress: u32, Anonymous: extern union { UnwindInfoAddress: u32, UnwindData: u32, }, }; pub const IMAGE_DEBUG_DIRECTORY = extern struct { Characteristics: u32, TimeDateStamp: u32, MajorVersion: u16, MinorVersion: u16, Type: IMAGE_DEBUG_TYPE, SizeOfData: u32, AddressOfRawData: u32, PointerToRawData: u32, }; pub const IMAGE_COFF_SYMBOLS_HEADER = extern struct { NumberOfSymbols: u32, LvaToFirstSymbol: u32, NumberOfLinenumbers: u32, LvaToFirstLinenumber: u32, RvaToFirstByteOfCode: u32, RvaToLastByteOfCode: u32, RvaToFirstByteOfData: u32, RvaToLastByteOfData: u32, }; pub const FPO_DATA = extern struct { ulOffStart: u32, cbProcSize: u32, cdwLocals: u32, cdwParams: u16, _bitfield: u16, }; pub const IMAGE_FUNCTION_ENTRY = extern struct { StartingAddress: u32, EndingAddress: u32, EndOfPrologue: u32, }; pub const IMAGE_FUNCTION_ENTRY64 = extern struct { StartingAddress: u64 align(4), EndingAddress: u64 align(4), Anonymous: extern union { EndOfPrologue: u64 align(4), UnwindInfoAddress: u64 align(4), } align(4), }; pub const IMAGE_COR20_HEADER = extern struct { cb: u32, MajorRuntimeVersion: u16, MinorRuntimeVersion: u16, MetaData: IMAGE_DATA_DIRECTORY, Flags: u32, Anonymous: extern union { EntryPointToken: u32, EntryPointRVA: u32, }, Resources: IMAGE_DATA_DIRECTORY, StrongNameSignature: IMAGE_DATA_DIRECTORY, CodeManagerTable: IMAGE_DATA_DIRECTORY, VTableFixups: IMAGE_DATA_DIRECTORY, ExportAddressTableJumps: IMAGE_DATA_DIRECTORY, ManagedNativeHeader: IMAGE_DATA_DIRECTORY, }; pub const PVECTORED_EXCEPTION_HANDLER = switch (@import("builtin").zig_backend) { .stage1 => fn ( ExceptionInfo: ?*EXCEPTION_POINTERS, ) callconv(@import("std").os.windows.WINAPI) i32, else => *const fn ( ExceptionInfo: ?*EXCEPTION_POINTERS, ) callconv(@import("std").os.windows.WINAPI) i32, }; pub const LPTOP_LEVEL_EXCEPTION_FILTER = switch (@import("builtin").zig_backend) { .stage1 => fn ( ExceptionInfo: ?*EXCEPTION_POINTERS, ) callconv(@import("std").os.windows.WINAPI) i32, else => *const fn ( ExceptionInfo: ?*EXCEPTION_POINTERS, ) callconv(@import("std").os.windows.WINAPI) i32, }; pub const WCT_OBJECT_TYPE = enum(i32) { CriticalSectionType = 1, SendMessageType = 2, MutexType = 3, AlpcType = 4, ComType = 5, ThreadWaitType = 6, ProcessWaitType = 7, ThreadType = 8, ComActivationType = 9, UnknownType = 10, SocketIoType = 11, SmbIoType = 12, MaxType = 13, }; pub const WctCriticalSectionType = WCT_OBJECT_TYPE.CriticalSectionType; pub const WctSendMessageType = WCT_OBJECT_TYPE.SendMessageType; pub const WctMutexType = WCT_OBJECT_TYPE.MutexType; pub const WctAlpcType = WCT_OBJECT_TYPE.AlpcType; pub const WctComType = WCT_OBJECT_TYPE.ComType; pub const WctThreadWaitType = WCT_OBJECT_TYPE.ThreadWaitType; pub const WctProcessWaitType = WCT_OBJECT_TYPE.ProcessWaitType; pub const WctThreadType = WCT_OBJECT_TYPE.ThreadType; pub const WctComActivationType = WCT_OBJECT_TYPE.ComActivationType; pub const WctUnknownType = WCT_OBJECT_TYPE.UnknownType; pub const WctSocketIoType = WCT_OBJECT_TYPE.SocketIoType; pub const WctSmbIoType = WCT_OBJECT_TYPE.SmbIoType; pub const WctMaxType = WCT_OBJECT_TYPE.MaxType; pub const WCT_OBJECT_STATUS = enum(i32) { NoAccess = 1, Running = 2, Blocked = 3, PidOnly = 4, PidOnlyRpcss = 5, Owned = 6, NotOwned = 7, Abandoned = 8, Unknown = 9, Error = 10, Max = 11, }; pub const WctStatusNoAccess = WCT_OBJECT_STATUS.NoAccess; pub const WctStatusRunning = WCT_OBJECT_STATUS.Running; pub const WctStatusBlocked = WCT_OBJECT_STATUS.Blocked; pub const WctStatusPidOnly = WCT_OBJECT_STATUS.PidOnly; pub const WctStatusPidOnlyRpcss = WCT_OBJECT_STATUS.PidOnlyRpcss; pub const WctStatusOwned = WCT_OBJECT_STATUS.Owned; pub const WctStatusNotOwned = WCT_OBJECT_STATUS.NotOwned; pub const WctStatusAbandoned = WCT_OBJECT_STATUS.Abandoned; pub const WctStatusUnknown = WCT_OBJECT_STATUS.Unknown; pub const WctStatusError = WCT_OBJECT_STATUS.Error; pub const WctStatusMax = WCT_OBJECT_STATUS.Max; pub const WAITCHAIN_NODE_INFO = extern struct { ObjectType: WCT_OBJECT_TYPE, ObjectStatus: WCT_OBJECT_STATUS, Anonymous: extern union { LockObject: extern struct { ObjectName: [128]u16, Timeout: LARGE_INTEGER, Alertable: BOOL, }, ThreadObject: extern struct { ProcessId: u32, ThreadId: u32, WaitTime: u32, ContextSwitches: u32, }, }, }; pub const PWAITCHAINCALLBACK = switch (@import("builtin").zig_backend) { .stage1 => fn ( WctHandle: ?*anyopaque, Context: usize, CallbackStatus: u32, NodeCount: ?*u32, NodeInfoArray: ?*WAITCHAIN_NODE_INFO, IsCycle: ?*i32, ) callconv(@import("std").os.windows.WINAPI) void, else => *const fn ( WctHandle: ?*anyopaque, Context: usize, CallbackStatus: u32, NodeCount: ?*u32, NodeInfoArray: ?*WAITCHAIN_NODE_INFO, IsCycle: ?*i32, ) callconv(@import("std").os.windows.WINAPI) void, }; pub const PCOGETCALLSTATE = switch (@import("builtin").zig_backend) { .stage1 => fn ( param0: i32, param1: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( param0: i32, param1: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }; pub const PCOGETACTIVATIONSTATE = switch (@import("builtin").zig_backend) { .stage1 => fn ( param0: Guid, param1: u32, param2: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( param0: Guid, param1: u32, param2: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }; pub const MINIDUMP_LOCATION_DESCRIPTOR = extern struct { DataSize: u32, Rva: u32, }; pub const MINIDUMP_LOCATION_DESCRIPTOR64 = extern struct { DataSize: u64 align(4), Rva: u64 align(4), }; pub const MINIDUMP_MEMORY_DESCRIPTOR = extern struct { StartOfMemoryRange: u64 align(4), Memory: MINIDUMP_LOCATION_DESCRIPTOR align(4), }; pub const MINIDUMP_MEMORY_DESCRIPTOR64 = extern struct { StartOfMemoryRange: u64 align(4), DataSize: u64 align(4), }; pub const MINIDUMP_HEADER = extern struct { Signature: u32 align(4), Version: u32 align(4), NumberOfStreams: u32 align(4), StreamDirectoryRva: u32 align(4), CheckSum: u32 align(4), Anonymous: extern union { Reserved: u32, TimeDateStamp: u32, } align(4), Flags: u64 align(4), }; pub const MINIDUMP_DIRECTORY = extern struct { StreamType: u32, Location: MINIDUMP_LOCATION_DESCRIPTOR, }; pub const MINIDUMP_STRING = extern struct { Length: u32, Buffer: [1]u16, }; pub const MINIDUMP_STREAM_TYPE = enum(i32) { UnusedStream = 0, ReservedStream0 = 1, ReservedStream1 = 2, ThreadListStream = 3, ModuleListStream = 4, MemoryListStream = 5, ExceptionStream = 6, SystemInfoStream = 7, ThreadExListStream = 8, Memory64ListStream = 9, CommentStreamA = 10, CommentStreamW = 11, HandleDataStream = 12, FunctionTableStream = 13, UnloadedModuleListStream = 14, MiscInfoStream = 15, MemoryInfoListStream = 16, ThreadInfoListStream = 17, HandleOperationListStream = 18, TokenStream = 19, JavaScriptDataStream = 20, SystemMemoryInfoStream = 21, ProcessVmCountersStream = 22, IptTraceStream = 23, ThreadNamesStream = 24, ceStreamNull = 32768, ceStreamSystemInfo = 32769, ceStreamException = 32770, ceStreamModuleList = 32771, ceStreamProcessList = 32772, ceStreamThreadList = 32773, ceStreamThreadContextList = 32774, ceStreamThreadCallStackList = 32775, ceStreamMemoryVirtualList = 32776, ceStreamMemoryPhysicalList = 32777, ceStreamBucketParameters = 32778, ceStreamProcessModuleMap = 32779, ceStreamDiagnosisList = 32780, LastReservedStream = 65535, }; pub const UnusedStream = MINIDUMP_STREAM_TYPE.UnusedStream; pub const ReservedStream0 = MINIDUMP_STREAM_TYPE.ReservedStream0; pub const ReservedStream1 = MINIDUMP_STREAM_TYPE.ReservedStream1; pub const ThreadListStream = MINIDUMP_STREAM_TYPE.ThreadListStream; pub const ModuleListStream = MINIDUMP_STREAM_TYPE.ModuleListStream; pub const MemoryListStream = MINIDUMP_STREAM_TYPE.MemoryListStream; pub const ExceptionStream = MINIDUMP_STREAM_TYPE.ExceptionStream; pub const SystemInfoStream = MINIDUMP_STREAM_TYPE.SystemInfoStream; pub const ThreadExListStream = MINIDUMP_STREAM_TYPE.ThreadExListStream; pub const Memory64ListStream = MINIDUMP_STREAM_TYPE.Memory64ListStream; pub const CommentStreamA = MINIDUMP_STREAM_TYPE.CommentStreamA; pub const CommentStreamW = MINIDUMP_STREAM_TYPE.CommentStreamW; pub const HandleDataStream = MINIDUMP_STREAM_TYPE.HandleDataStream; pub const FunctionTableStream = MINIDUMP_STREAM_TYPE.FunctionTableStream; pub const UnloadedModuleListStream = MINIDUMP_STREAM_TYPE.UnloadedModuleListStream; pub const MiscInfoStream = MINIDUMP_STREAM_TYPE.MiscInfoStream; pub const MemoryInfoListStream = MINIDUMP_STREAM_TYPE.MemoryInfoListStream; pub const ThreadInfoListStream = MINIDUMP_STREAM_TYPE.ThreadInfoListStream; pub const HandleOperationListStream = MINIDUMP_STREAM_TYPE.HandleOperationListStream; pub const TokenStream = MINIDUMP_STREAM_TYPE.TokenStream; pub const JavaScriptDataStream = MINIDUMP_STREAM_TYPE.JavaScriptDataStream; pub const SystemMemoryInfoStream = MINIDUMP_STREAM_TYPE.SystemMemoryInfoStream; pub const ProcessVmCountersStream = MINIDUMP_STREAM_TYPE.ProcessVmCountersStream; pub const IptTraceStream = MINIDUMP_STREAM_TYPE.IptTraceStream; pub const ThreadNamesStream = MINIDUMP_STREAM_TYPE.ThreadNamesStream; pub const ceStreamNull = MINIDUMP_STREAM_TYPE.ceStreamNull; pub const ceStreamSystemInfo = MINIDUMP_STREAM_TYPE.ceStreamSystemInfo; pub const ceStreamException = MINIDUMP_STREAM_TYPE.ceStreamException; pub const ceStreamModuleList = MINIDUMP_STREAM_TYPE.ceStreamModuleList; pub const ceStreamProcessList = MINIDUMP_STREAM_TYPE.ceStreamProcessList; pub const ceStreamThreadList = MINIDUMP_STREAM_TYPE.ceStreamThreadList; pub const ceStreamThreadContextList = MINIDUMP_STREAM_TYPE.ceStreamThreadContextList; pub const ceStreamThreadCallStackList = MINIDUMP_STREAM_TYPE.ceStreamThreadCallStackList; pub const ceStreamMemoryVirtualList = MINIDUMP_STREAM_TYPE.ceStreamMemoryVirtualList; pub const ceStreamMemoryPhysicalList = MINIDUMP_STREAM_TYPE.ceStreamMemoryPhysicalList; pub const ceStreamBucketParameters = MINIDUMP_STREAM_TYPE.ceStreamBucketParameters; pub const ceStreamProcessModuleMap = MINIDUMP_STREAM_TYPE.ceStreamProcessModuleMap; pub const ceStreamDiagnosisList = MINIDUMP_STREAM_TYPE.ceStreamDiagnosisList; pub const LastReservedStream = MINIDUMP_STREAM_TYPE.LastReservedStream; pub const CPU_INFORMATION = extern union { X86CpuInfo: extern struct { VendorId: [3]u32, VersionInformation: u32, FeatureInformation: u32, AMDExtendedCpuFeatures: u32, }, OtherCpuInfo: extern struct { ProcessorFeatures: [2]u64 align(4), }, }; pub const MINIDUMP_SYSTEM_INFO = extern struct { ProcessorArchitecture: PROCESSOR_ARCHITECTURE, ProcessorLevel: u16, ProcessorRevision: u16, Anonymous1: extern union { Reserved0: u16, Anonymous: extern struct { NumberOfProcessors: u8, ProductType: u8, }, }, MajorVersion: u32, MinorVersion: u32, BuildNumber: u32, PlatformId: VER_PLATFORM, CSDVersionRva: u32, Anonymous2: extern union { Reserved1: u32, Anonymous: extern struct { SuiteMask: u16, Reserved2: u16, }, }, Cpu: CPU_INFORMATION, }; pub const MINIDUMP_THREAD = extern struct { ThreadId: u32 align(4), SuspendCount: u32 align(4), PriorityClass: u32 align(4), Priority: u32 align(4), Teb: u64 align(4), Stack: MINIDUMP_MEMORY_DESCRIPTOR align(4), ThreadContext: MINIDUMP_LOCATION_DESCRIPTOR align(4), }; pub const MINIDUMP_THREAD_LIST = extern struct { NumberOfThreads: u32, Threads: [1]MINIDUMP_THREAD, }; pub const MINIDUMP_THREAD_EX = extern struct { ThreadId: u32 align(4), SuspendCount: u32 align(4), PriorityClass: u32 align(4), Priority: u32 align(4), Teb: u64 align(4), Stack: MINIDUMP_MEMORY_DESCRIPTOR align(4), ThreadContext: MINIDUMP_LOCATION_DESCRIPTOR align(4), BackingStore: MINIDUMP_MEMORY_DESCRIPTOR align(4), }; pub const MINIDUMP_THREAD_EX_LIST = extern struct { NumberOfThreads: u32, Threads: [1]MINIDUMP_THREAD_EX, }; pub const MINIDUMP_EXCEPTION = extern struct { ExceptionCode: u32 align(4), ExceptionFlags: u32 align(4), ExceptionRecord: u64 align(4), ExceptionAddress: u64 align(4), NumberParameters: u32 align(4), __unusedAlignment: u32 align(4), ExceptionInformation: [15]u64 align(4), }; pub const MINIDUMP_EXCEPTION_STREAM = extern struct { ThreadId: u32, __alignment: u32, ExceptionRecord: MINIDUMP_EXCEPTION, ThreadContext: MINIDUMP_LOCATION_DESCRIPTOR, }; pub const MINIDUMP_MODULE = extern struct { BaseOfImage: u64 align(4), SizeOfImage: u32 align(4), CheckSum: u32 align(4), TimeDateStamp: u32 align(4), ModuleNameRva: u32 align(4), VersionInfo: VS_FIXEDFILEINFO align(4), CvRecord: MINIDUMP_LOCATION_DESCRIPTOR align(4), MiscRecord: MINIDUMP_LOCATION_DESCRIPTOR align(4), Reserved0: u64 align(4), Reserved1: u64 align(4), }; pub const MINIDUMP_MODULE_LIST = extern struct { NumberOfModules: u32, Modules: [1]MINIDUMP_MODULE, }; pub const MINIDUMP_MEMORY_LIST = extern struct { NumberOfMemoryRanges: u32, MemoryRanges: [1]MINIDUMP_MEMORY_DESCRIPTOR, }; pub const MINIDUMP_MEMORY64_LIST = extern struct { NumberOfMemoryRanges: u64 align(4), BaseRva: u64 align(4), MemoryRanges: [1]MINIDUMP_MEMORY_DESCRIPTOR64 align(4), }; pub const MINIDUMP_EXCEPTION_INFORMATION = extern struct { ThreadId: u32 align(4), ExceptionPointers: ?*EXCEPTION_POINTERS align(4), ClientPointers: BOOL align(4), }; pub const MINIDUMP_EXCEPTION_INFORMATION64 = extern struct { ThreadId: u32 align(4), ExceptionRecord: u64 align(4), ContextRecord: u64 align(4), ClientPointers: BOOL align(4), }; pub const MINIDUMP_HANDLE_OBJECT_INFORMATION_TYPE = enum(i32) { HandleObjectInformationNone = 0, ThreadInformation1 = 1, MutantInformation1 = 2, MutantInformation2 = 3, ProcessInformation1 = 4, ProcessInformation2 = 5, EventInformation1 = 6, SectionInformation1 = 7, SemaphoreInformation1 = 8, HandleObjectInformationTypeMax = 9, }; pub const MiniHandleObjectInformationNone = MINIDUMP_HANDLE_OBJECT_INFORMATION_TYPE.HandleObjectInformationNone; pub const MiniThreadInformation1 = MINIDUMP_HANDLE_OBJECT_INFORMATION_TYPE.ThreadInformation1; pub const MiniMutantInformation1 = MINIDUMP_HANDLE_OBJECT_INFORMATION_TYPE.MutantInformation1; pub const MiniMutantInformation2 = MINIDUMP_HANDLE_OBJECT_INFORMATION_TYPE.MutantInformation2; pub const MiniProcessInformation1 = MINIDUMP_HANDLE_OBJECT_INFORMATION_TYPE.ProcessInformation1; pub const MiniProcessInformation2 = MINIDUMP_HANDLE_OBJECT_INFORMATION_TYPE.ProcessInformation2; pub const MiniEventInformation1 = MINIDUMP_HANDLE_OBJECT_INFORMATION_TYPE.EventInformation1; pub const MiniSectionInformation1 = MINIDUMP_HANDLE_OBJECT_INFORMATION_TYPE.SectionInformation1; pub const MiniSemaphoreInformation1 = MINIDUMP_HANDLE_OBJECT_INFORMATION_TYPE.SemaphoreInformation1; pub const MiniHandleObjectInformationTypeMax = MINIDUMP_HANDLE_OBJECT_INFORMATION_TYPE.HandleObjectInformationTypeMax; pub const MINIDUMP_HANDLE_OBJECT_INFORMATION = extern struct { NextInfoRva: u32, InfoType: u32, SizeOfInfo: u32, }; pub const MINIDUMP_HANDLE_DESCRIPTOR = extern struct { Handle: u64 align(4), TypeNameRva: u32 align(4), ObjectNameRva: u32 align(4), Attributes: u32 align(4), GrantedAccess: u32 align(4), HandleCount: u32 align(4), PointerCount: u32 align(4), }; pub const MINIDUMP_HANDLE_DESCRIPTOR_2 = extern struct { Handle: u64 align(4), TypeNameRva: u32 align(4), ObjectNameRva: u32 align(4), Attributes: u32 align(4), GrantedAccess: u32 align(4), HandleCount: u32 align(4), PointerCount: u32 align(4), ObjectInfoRva: u32 align(4), Reserved0: u32 align(4), }; pub const MINIDUMP_HANDLE_DATA_STREAM = extern struct { SizeOfHeader: u32, SizeOfDescriptor: u32, NumberOfDescriptors: u32, Reserved: u32, }; pub const MINIDUMP_HANDLE_OPERATION_LIST = extern struct { SizeOfHeader: u32, SizeOfEntry: u32, NumberOfEntries: u32, Reserved: u32, }; pub const MINIDUMP_FUNCTION_TABLE_DESCRIPTOR = extern struct { MinimumAddress: u64 align(4), MaximumAddress: u64 align(4), BaseAddress: u64 align(4), EntryCount: u32 align(4), SizeOfAlignPad: u32 align(4), }; pub const MINIDUMP_FUNCTION_TABLE_STREAM = extern struct { SizeOfHeader: u32, SizeOfDescriptor: u32, SizeOfNativeDescriptor: u32, SizeOfFunctionEntry: u32, NumberOfDescriptors: u32, SizeOfAlignPad: u32, }; pub const MINIDUMP_UNLOADED_MODULE = extern struct { BaseOfImage: u64 align(4), SizeOfImage: u32 align(4), CheckSum: u32 align(4), TimeDateStamp: u32 align(4), ModuleNameRva: u32 align(4), }; pub const MINIDUMP_UNLOADED_MODULE_LIST = extern struct { SizeOfHeader: u32, SizeOfEntry: u32, NumberOfEntries: u32, }; pub const XSTATE_CONFIG_FEATURE_MSC_INFO = extern struct { SizeOfInfo: u32 align(4), ContextSize: u32 align(4), EnabledFeatures: u64 align(4), Features: [64]XSTATE_FEATURE align(4), }; pub const MINIDUMP_MISC_INFO = extern struct { SizeOfInfo: u32, Flags1: MINIDUMP_MISC_INFO_FLAGS, ProcessId: u32, ProcessCreateTime: u32, ProcessUserTime: u32, ProcessKernelTime: u32, }; pub const MINIDUMP_MISC_INFO_2 = extern struct { SizeOfInfo: u32, Flags1: u32, ProcessId: u32, ProcessCreateTime: u32, ProcessUserTime: u32, ProcessKernelTime: u32, ProcessorMaxMhz: u32, ProcessorCurrentMhz: u32, ProcessorMhzLimit: u32, ProcessorMaxIdleState: u32, ProcessorCurrentIdleState: u32, }; pub const MINIDUMP_MISC_INFO_3 = extern struct { SizeOfInfo: u32, Flags1: u32, ProcessId: u32, ProcessCreateTime: u32, ProcessUserTime: u32, ProcessKernelTime: u32, ProcessorMaxMhz: u32, ProcessorCurrentMhz: u32, ProcessorMhzLimit: u32, ProcessorMaxIdleState: u32, ProcessorCurrentIdleState: u32, ProcessIntegrityLevel: u32, ProcessExecuteFlags: u32, ProtectedProcess: u32, TimeZoneId: u32, TimeZone: TIME_ZONE_INFORMATION, }; pub const MINIDUMP_MISC_INFO_4 = extern struct { SizeOfInfo: u32, Flags1: u32, ProcessId: u32, ProcessCreateTime: u32, ProcessUserTime: u32, ProcessKernelTime: u32, ProcessorMaxMhz: u32, ProcessorCurrentMhz: u32, ProcessorMhzLimit: u32, ProcessorMaxIdleState: u32, ProcessorCurrentIdleState: u32, ProcessIntegrityLevel: u32, ProcessExecuteFlags: u32, ProtectedProcess: u32, TimeZoneId: u32, TimeZone: TIME_ZONE_INFORMATION, BuildString: [260]u16, DbgBldStr: [40]u16, }; pub const MINIDUMP_MISC_INFO_5 = extern struct { SizeOfInfo: u32, Flags1: u32, ProcessId: u32, ProcessCreateTime: u32, ProcessUserTime: u32, ProcessKernelTime: u32, ProcessorMaxMhz: u32, ProcessorCurrentMhz: u32, ProcessorMhzLimit: u32, ProcessorMaxIdleState: u32, ProcessorCurrentIdleState: u32, ProcessIntegrityLevel: u32, ProcessExecuteFlags: u32, ProtectedProcess: u32, TimeZoneId: u32, TimeZone: TIME_ZONE_INFORMATION, BuildString: [260]u16, DbgBldStr: [40]u16, XStateData: XSTATE_CONFIG_FEATURE_MSC_INFO, ProcessCookie: u32, }; pub const MINIDUMP_MEMORY_INFO = extern struct { BaseAddress: u64 align(4), AllocationBase: u64 align(4), AllocationProtect: u32 align(4), __alignment1: u32 align(4), RegionSize: u64 align(4), State: VIRTUAL_ALLOCATION_TYPE align(4), Protect: u32 align(4), Type: u32 align(4), __alignment2: u32 align(4), }; pub const MINIDUMP_MEMORY_INFO_LIST = extern struct { SizeOfHeader: u32 align(4), SizeOfEntry: u32 align(4), NumberOfEntries: u64 align(4), }; pub const MINIDUMP_THREAD_NAME = extern struct { ThreadId: u32 align(4), RvaOfThreadName: u64 align(4), }; pub const MINIDUMP_THREAD_NAME_LIST = extern struct { NumberOfThreadNames: u32, ThreadNames: [1]MINIDUMP_THREAD_NAME, }; pub const MINIDUMP_THREAD_INFO = extern struct { ThreadId: u32 align(4), DumpFlags: MINIDUMP_THREAD_INFO_DUMP_FLAGS align(4), DumpError: u32 align(4), ExitStatus: u32 align(4), CreateTime: u64 align(4), ExitTime: u64 align(4), KernelTime: u64 align(4), UserTime: u64 align(4), StartAddress: u64 align(4), Affinity: u64 align(4), }; pub const MINIDUMP_THREAD_INFO_LIST = extern struct { SizeOfHeader: u32, SizeOfEntry: u32, NumberOfEntries: u32, }; pub const MINIDUMP_TOKEN_INFO_HEADER = extern struct { TokenSize: u32 align(4), TokenId: u32 align(4), TokenHandle: u64 align(4), }; pub const MINIDUMP_TOKEN_INFO_LIST = extern struct { TokenListSize: u32, TokenListEntries: u32, ListHeaderSize: u32, ElementHeaderSize: u32, }; pub const MINIDUMP_SYSTEM_BASIC_INFORMATION = extern struct { TimerResolution: u32 align(4), PageSize: u32 align(4), NumberOfPhysicalPages: u32 align(4), LowestPhysicalPageNumber: u32 align(4), HighestPhysicalPageNumber: u32 align(4), AllocationGranularity: u32 align(4), MinimumUserModeAddress: u64 align(4), MaximumUserModeAddress: u64 align(4), ActiveProcessorsAffinityMask: u64 align(4), NumberOfProcessors: u32 align(4), }; pub const MINIDUMP_SYSTEM_FILECACHE_INFORMATION = extern struct { CurrentSize: u64 align(4), PeakSize: u64 align(4), PageFaultCount: u32 align(4), MinimumWorkingSet: u64 align(4), MaximumWorkingSet: u64 align(4), CurrentSizeIncludingTransitionInPages: u64 align(4), PeakSizeIncludingTransitionInPages: u64 align(4), TransitionRePurposeCount: u32 align(4), Flags: u32 align(4), }; pub const MINIDUMP_SYSTEM_BASIC_PERFORMANCE_INFORMATION = extern struct { AvailablePages: u64 align(4), CommittedPages: u64 align(4), CommitLimit: u64 align(4), PeakCommitment: u64 align(4), }; pub const MINIDUMP_SYSTEM_PERFORMANCE_INFORMATION = extern struct { IdleProcessTime: u64 align(4), IoReadTransferCount: u64 align(4), IoWriteTransferCount: u64 align(4), IoOtherTransferCount: u64 align(4), IoReadOperationCount: u32 align(4), IoWriteOperationCount: u32 align(4), IoOtherOperationCount: u32 align(4), AvailablePages: u32 align(4), CommittedPages: u32 align(4), CommitLimit: u32 align(4), PeakCommitment: u32 align(4), PageFaultCount: u32 align(4), CopyOnWriteCount: u32 align(4), TransitionCount: u32 align(4), CacheTransitionCount: u32 align(4), DemandZeroCount: u32 align(4), PageReadCount: u32 align(4), PageReadIoCount: u32 align(4), CacheReadCount: u32 align(4), CacheIoCount: u32 align(4), DirtyPagesWriteCount: u32 align(4), DirtyWriteIoCount: u32 align(4), MappedPagesWriteCount: u32 align(4), MappedWriteIoCount: u32 align(4), PagedPoolPages: u32 align(4), NonPagedPoolPages: u32 align(4), PagedPoolAllocs: u32 align(4), PagedPoolFrees: u32 align(4), NonPagedPoolAllocs: u32 align(4), NonPagedPoolFrees: u32 align(4), FreeSystemPtes: u32 align(4), ResidentSystemCodePage: u32 align(4), TotalSystemDriverPages: u32 align(4), TotalSystemCodePages: u32 align(4), NonPagedPoolLookasideHits: u32 align(4), PagedPoolLookasideHits: u32 align(4), AvailablePagedPoolPages: u32 align(4), ResidentSystemCachePage: u32 align(4), ResidentPagedPoolPage: u32 align(4), ResidentSystemDriverPage: u32 align(4), CcFastReadNoWait: u32 align(4), CcFastReadWait: u32 align(4), CcFastReadResourceMiss: u32 align(4), CcFastReadNotPossible: u32 align(4), CcFastMdlReadNoWait: u32 align(4), CcFastMdlReadWait: u32 align(4), CcFastMdlReadResourceMiss: u32 align(4), CcFastMdlReadNotPossible: u32 align(4), CcMapDataNoWait: u32 align(4), CcMapDataWait: u32 align(4), CcMapDataNoWaitMiss: u32 align(4), CcMapDataWaitMiss: u32 align(4), CcPinMappedDataCount: u32 align(4), CcPinReadNoWait: u32 align(4), CcPinReadWait: u32 align(4), CcPinReadNoWaitMiss: u32 align(4), CcPinReadWaitMiss: u32 align(4), CcCopyReadNoWait: u32 align(4), CcCopyReadWait: u32 align(4), CcCopyReadNoWaitMiss: u32 align(4), CcCopyReadWaitMiss: u32 align(4), CcMdlReadNoWait: u32 align(4), CcMdlReadWait: u32 align(4), CcMdlReadNoWaitMiss: u32 align(4), CcMdlReadWaitMiss: u32 align(4), CcReadAheadIos: u32 align(4), CcLazyWriteIos: u32 align(4), CcLazyWritePages: u32 align(4), CcDataFlushes: u32 align(4), CcDataPages: u32 align(4), ContextSwitches: u32 align(4), FirstLevelTbFills: u32 align(4), SecondLevelTbFills: u32 align(4), SystemCalls: u32 align(4), CcTotalDirtyPages: u64 align(4), CcDirtyPageThreshold: u64 align(4), ResidentAvailablePages: i64 align(4), SharedCommittedPages: u64 align(4), }; pub const MINIDUMP_SYSTEM_MEMORY_INFO_1 = extern struct { Revision: u16, Flags: u16, BasicInfo: MINIDUMP_SYSTEM_BASIC_INFORMATION, FileCacheInfo: MINIDUMP_SYSTEM_FILECACHE_INFORMATION, BasicPerfInfo: MINIDUMP_SYSTEM_BASIC_PERFORMANCE_INFORMATION, PerfInfo: MINIDUMP_SYSTEM_PERFORMANCE_INFORMATION, }; pub const MINIDUMP_PROCESS_VM_COUNTERS_1 = extern struct { Revision: u16 align(4), PageFaultCount: u32 align(4), PeakWorkingSetSize: u64 align(4), WorkingSetSize: u64 align(4), QuotaPeakPagedPoolUsage: u64 align(4), QuotaPagedPoolUsage: u64 align(4), QuotaPeakNonPagedPoolUsage: u64 align(4), QuotaNonPagedPoolUsage: u64 align(4), PagefileUsage: u64 align(4), PeakPagefileUsage: u64 align(4), PrivateUsage: u64 align(4), }; pub const MINIDUMP_PROCESS_VM_COUNTERS_2 = extern struct { Revision: u16 align(4), Flags: u16 align(4), PageFaultCount: u32 align(4), PeakWorkingSetSize: u64 align(4), WorkingSetSize: u64 align(4), QuotaPeakPagedPoolUsage: u64 align(4), QuotaPagedPoolUsage: u64 align(4), QuotaPeakNonPagedPoolUsage: u64 align(4), QuotaNonPagedPoolUsage: u64 align(4), PagefileUsage: u64 align(4), PeakPagefileUsage: u64 align(4), PeakVirtualSize: u64 align(4), VirtualSize: u64 align(4), PrivateUsage: u64 align(4), PrivateWorkingSetSize: u64 align(4), SharedCommitUsage: u64 align(4), JobSharedCommitUsage: u64 align(4), JobPrivateCommitUsage: u64 align(4), JobPeakPrivateCommitUsage: u64 align(4), JobPrivateCommitLimit: u64 align(4), JobTotalCommitLimit: u64 align(4), }; pub const MINIDUMP_USER_RECORD = extern struct { Type: u32, Memory: MINIDUMP_LOCATION_DESCRIPTOR, }; pub const MINIDUMP_USER_STREAM = extern struct { Type: u32 align(4), BufferSize: u32 align(4), Buffer: ?*anyopaque align(4), }; pub const MINIDUMP_USER_STREAM_INFORMATION = extern struct { UserStreamCount: u32 align(4), UserStreamArray: ?*MINIDUMP_USER_STREAM align(4), }; pub const MINIDUMP_CALLBACK_TYPE = enum(i32) { ModuleCallback = 0, ThreadCallback = 1, ThreadExCallback = 2, IncludeThreadCallback = 3, IncludeModuleCallback = 4, MemoryCallback = 5, CancelCallback = 6, WriteKernelMinidumpCallback = 7, KernelMinidumpStatusCallback = 8, RemoveMemoryCallback = 9, IncludeVmRegionCallback = 10, IoStartCallback = 11, IoWriteAllCallback = 12, IoFinishCallback = 13, ReadMemoryFailureCallback = 14, SecondaryFlagsCallback = 15, IsProcessSnapshotCallback = 16, VmStartCallback = 17, VmQueryCallback = 18, VmPreReadCallback = 19, VmPostReadCallback = 20, }; pub const ModuleCallback = MINIDUMP_CALLBACK_TYPE.ModuleCallback; pub const ThreadCallback = MINIDUMP_CALLBACK_TYPE.ThreadCallback; pub const ThreadExCallback = MINIDUMP_CALLBACK_TYPE.ThreadExCallback; pub const IncludeThreadCallback = MINIDUMP_CALLBACK_TYPE.IncludeThreadCallback; pub const IncludeModuleCallback = MINIDUMP_CALLBACK_TYPE.IncludeModuleCallback; pub const MemoryCallback = MINIDUMP_CALLBACK_TYPE.MemoryCallback; pub const CancelCallback = MINIDUMP_CALLBACK_TYPE.CancelCallback; pub const WriteKernelMinidumpCallback = MINIDUMP_CALLBACK_TYPE.WriteKernelMinidumpCallback; pub const KernelMinidumpStatusCallback = MINIDUMP_CALLBACK_TYPE.KernelMinidumpStatusCallback; pub const RemoveMemoryCallback = MINIDUMP_CALLBACK_TYPE.RemoveMemoryCallback; pub const IncludeVmRegionCallback = MINIDUMP_CALLBACK_TYPE.IncludeVmRegionCallback; pub const IoStartCallback = MINIDUMP_CALLBACK_TYPE.IoStartCallback; pub const IoWriteAllCallback = MINIDUMP_CALLBACK_TYPE.IoWriteAllCallback; pub const IoFinishCallback = MINIDUMP_CALLBACK_TYPE.IoFinishCallback; pub const ReadMemoryFailureCallback = MINIDUMP_CALLBACK_TYPE.ReadMemoryFailureCallback; pub const SecondaryFlagsCallback = MINIDUMP_CALLBACK_TYPE.SecondaryFlagsCallback; pub const IsProcessSnapshotCallback = MINIDUMP_CALLBACK_TYPE.IsProcessSnapshotCallback; pub const VmStartCallback = MINIDUMP_CALLBACK_TYPE.VmStartCallback; pub const VmQueryCallback = MINIDUMP_CALLBACK_TYPE.VmQueryCallback; pub const VmPreReadCallback = MINIDUMP_CALLBACK_TYPE.VmPreReadCallback; pub const VmPostReadCallback = MINIDUMP_CALLBACK_TYPE.VmPostReadCallback; pub const MINIDUMP_INCLUDE_THREAD_CALLBACK = extern struct { ThreadId: u32, }; pub const THREAD_WRITE_FLAGS = enum(i32) { Thread = 1, Stack = 2, Context = 4, BackingStore = 8, InstructionWindow = 16, ThreadData = 32, ThreadInfo = 64, }; pub const ThreadWriteThread = THREAD_WRITE_FLAGS.Thread; pub const ThreadWriteStack = THREAD_WRITE_FLAGS.Stack; pub const ThreadWriteContext = THREAD_WRITE_FLAGS.Context; pub const ThreadWriteBackingStore = THREAD_WRITE_FLAGS.BackingStore; pub const ThreadWriteInstructionWindow = THREAD_WRITE_FLAGS.InstructionWindow; pub const ThreadWriteThreadData = THREAD_WRITE_FLAGS.ThreadData; pub const ThreadWriteThreadInfo = THREAD_WRITE_FLAGS.ThreadInfo; pub const MINIDUMP_MODULE_CALLBACK = extern struct { FullPath: ?[*]u16 align(4), BaseOfImage: u64 align(4), SizeOfImage: u32 align(4), CheckSum: u32 align(4), TimeDateStamp: u32 align(4), VersionInfo: VS_FIXEDFILEINFO align(4), CvRecord: ?*anyopaque align(4), SizeOfCvRecord: u32 align(4), MiscRecord: ?*anyopaque align(4), SizeOfMiscRecord: u32 align(4), }; pub const MINIDUMP_INCLUDE_MODULE_CALLBACK = extern struct { BaseOfImage: u64 align(4), }; pub const MODULE_WRITE_FLAGS = enum(i32) { WriteModule = 1, WriteDataSeg = 2, WriteMiscRecord = 4, WriteCvRecord = 8, ReferencedByMemory = 16, WriteTlsData = 32, WriteCodeSegs = 64, }; pub const ModuleWriteModule = MODULE_WRITE_FLAGS.WriteModule; pub const ModuleWriteDataSeg = MODULE_WRITE_FLAGS.WriteDataSeg; pub const ModuleWriteMiscRecord = MODULE_WRITE_FLAGS.WriteMiscRecord; pub const ModuleWriteCvRecord = MODULE_WRITE_FLAGS.WriteCvRecord; pub const ModuleReferencedByMemory = MODULE_WRITE_FLAGS.ReferencedByMemory; pub const ModuleWriteTlsData = MODULE_WRITE_FLAGS.WriteTlsData; pub const ModuleWriteCodeSegs = MODULE_WRITE_FLAGS.WriteCodeSegs; pub const MINIDUMP_IO_CALLBACK = extern struct { Handle: ?HANDLE align(4), Offset: u64 align(4), Buffer: ?*anyopaque align(4), BufferBytes: u32 align(4), }; pub const MINIDUMP_READ_MEMORY_FAILURE_CALLBACK = extern struct { Offset: u64 align(4), Bytes: u32 align(4), FailureStatus: HRESULT align(4), }; pub const MINIDUMP_VM_QUERY_CALLBACK = extern struct { Offset: u64 align(4), }; pub const MINIDUMP_VM_PRE_READ_CALLBACK = extern struct { Offset: u64 align(4), Buffer: ?*anyopaque align(4), Size: u32 align(4), }; pub const MINIDUMP_VM_POST_READ_CALLBACK = extern struct { Offset: u64 align(4), Buffer: ?*anyopaque align(4), Size: u32 align(4), Completed: u32 align(4), Status: HRESULT align(4), }; pub const MINIDUMP_CALLBACK_INPUT = extern struct { ProcessId: u32, ProcessHandle: ?HANDLE, CallbackType: u32, Anonymous: extern union { Status: HRESULT, Thread: MINIDUMP_THREAD_CALLBACK, ThreadEx: MINIDUMP_THREAD_EX_CALLBACK, Module: MINIDUMP_MODULE_CALLBACK, IncludeThread: MINIDUMP_INCLUDE_THREAD_CALLBACK, IncludeModule: MINIDUMP_INCLUDE_MODULE_CALLBACK, Io: MINIDUMP_IO_CALLBACK, ReadMemoryFailure: MINIDUMP_READ_MEMORY_FAILURE_CALLBACK, SecondaryFlags: u32, VmQuery: MINIDUMP_VM_QUERY_CALLBACK, VmPreRead: MINIDUMP_VM_PRE_READ_CALLBACK, VmPostRead: MINIDUMP_VM_POST_READ_CALLBACK, }, }; pub const MINIDUMP_CALLBACK_OUTPUT = extern struct { Anonymous: extern union { ModuleWriteFlags: u32 align(4), ThreadWriteFlags: u32 align(4), SecondaryFlags: u32 align(4), Anonymous1: extern struct { MemoryBase: u64 align(4), MemorySize: u32 align(4), } align(4), Anonymous2: extern struct { CheckCancel: BOOL, Cancel: BOOL, } align(4), Handle: ?HANDLE align(4), Anonymous3: extern struct { VmRegion: MINIDUMP_MEMORY_INFO, Continue: BOOL, } align(4), Anonymous4: extern struct { VmQueryStatus: HRESULT, VmQueryResult: MINIDUMP_MEMORY_INFO, } align(4), Anonymous5: extern struct { VmReadStatus: HRESULT, VmReadBytesCompleted: u32, } align(4), Status: HRESULT align(4), }, }; pub const MINIDUMP_TYPE = enum(u32) { Normal = 0, WithDataSegs = 1, WithFullMemory = 2, WithHandleData = 4, FilterMemory = 8, ScanMemory = 16, WithUnloadedModules = 32, WithIndirectlyReferencedMemory = 64, FilterModulePaths = 128, WithProcessThreadData = 256, WithPrivateReadWriteMemory = 512, WithoutOptionalData = 1024, WithFullMemoryInfo = 2048, WithThreadInfo = 4096, WithCodeSegs = 8192, WithoutAuxiliaryState = 16384, WithFullAuxiliaryState = 32768, WithPrivateWriteCopyMemory = 65536, IgnoreInaccessibleMemory = 131072, WithTokenInformation = 262144, WithModuleHeaders = 524288, FilterTriage = 1048576, WithAvxXStateContext = 2097152, WithIptTrace = 4194304, ScanInaccessiblePartialPages = 8388608, FilterWriteCombinedMemory = 16777216, ValidTypeFlags = 33554431, _, pub fn initFlags(o: struct { Normal: u1 = 0, WithDataSegs: u1 = 0, WithFullMemory: u1 = 0, WithHandleData: u1 = 0, FilterMemory: u1 = 0, ScanMemory: u1 = 0, WithUnloadedModules: u1 = 0, WithIndirectlyReferencedMemory: u1 = 0, FilterModulePaths: u1 = 0, WithProcessThreadData: u1 = 0, WithPrivateReadWriteMemory: u1 = 0, WithoutOptionalData: u1 = 0, WithFullMemoryInfo: u1 = 0, WithThreadInfo: u1 = 0, WithCodeSegs: u1 = 0, WithoutAuxiliaryState: u1 = 0, WithFullAuxiliaryState: u1 = 0, WithPrivateWriteCopyMemory: u1 = 0, IgnoreInaccessibleMemory: u1 = 0, WithTokenInformation: u1 = 0, WithModuleHeaders: u1 = 0, FilterTriage: u1 = 0, WithAvxXStateContext: u1 = 0, WithIptTrace: u1 = 0, ScanInaccessiblePartialPages: u1 = 0, FilterWriteCombinedMemory: u1 = 0, ValidTypeFlags: u1 = 0, }) MINIDUMP_TYPE { return @as(MINIDUMP_TYPE, @enumFromInt((if (o.Normal == 1) @intFromEnum(MINIDUMP_TYPE.Normal) else 0) | (if (o.WithDataSegs == 1) @intFromEnum(MINIDUMP_TYPE.WithDataSegs) else 0) | (if (o.WithFullMemory == 1) @intFromEnum(MINIDUMP_TYPE.WithFullMemory) else 0) | (if (o.WithHandleData == 1) @intFromEnum(MINIDUMP_TYPE.WithHandleData) else 0) | (if (o.FilterMemory == 1) @intFromEnum(MINIDUMP_TYPE.FilterMemory) else 0) | (if (o.ScanMemory == 1) @intFromEnum(MINIDUMP_TYPE.ScanMemory) else 0) | (if (o.WithUnloadedModules == 1) @intFromEnum(MINIDUMP_TYPE.WithUnloadedModules) else 0) | (if (o.WithIndirectlyReferencedMemory == 1) @intFromEnum(MINIDUMP_TYPE.WithIndirectlyReferencedMemory) else 0) | (if (o.FilterModulePaths == 1) @intFromEnum(MINIDUMP_TYPE.FilterModulePaths) else 0) | (if (o.WithProcessThreadData == 1) @intFromEnum(MINIDUMP_TYPE.WithProcessThreadData) else 0) | (if (o.WithPrivateReadWriteMemory == 1) @intFromEnum(MINIDUMP_TYPE.WithPrivateReadWriteMemory) else 0) | (if (o.WithoutOptionalData == 1) @intFromEnum(MINIDUMP_TYPE.WithoutOptionalData) else 0) | (if (o.WithFullMemoryInfo == 1) @intFromEnum(MINIDUMP_TYPE.WithFullMemoryInfo) else 0) | (if (o.WithThreadInfo == 1) @intFromEnum(MINIDUMP_TYPE.WithThreadInfo) else 0) | (if (o.WithCodeSegs == 1) @intFromEnum(MINIDUMP_TYPE.WithCodeSegs) else 0) | (if (o.WithoutAuxiliaryState == 1) @intFromEnum(MINIDUMP_TYPE.WithoutAuxiliaryState) else 0) | (if (o.WithFullAuxiliaryState == 1) @intFromEnum(MINIDUMP_TYPE.WithFullAuxiliaryState) else 0) | (if (o.WithPrivateWriteCopyMemory == 1) @intFromEnum(MINIDUMP_TYPE.WithPrivateWriteCopyMemory) else 0) | (if (o.IgnoreInaccessibleMemory == 1) @intFromEnum(MINIDUMP_TYPE.IgnoreInaccessibleMemory) else 0) | (if (o.WithTokenInformation == 1) @intFromEnum(MINIDUMP_TYPE.WithTokenInformation) else 0) | (if (o.WithModuleHeaders == 1) @intFromEnum(MINIDUMP_TYPE.WithModuleHeaders) else 0) | (if (o.FilterTriage == 1) @intFromEnum(MINIDUMP_TYPE.FilterTriage) else 0) | (if (o.WithAvxXStateContext == 1) @intFromEnum(MINIDUMP_TYPE.WithAvxXStateContext) else 0) | (if (o.WithIptTrace == 1) @intFromEnum(MINIDUMP_TYPE.WithIptTrace) else 0) | (if (o.ScanInaccessiblePartialPages == 1) @intFromEnum(MINIDUMP_TYPE.ScanInaccessiblePartialPages) else 0) | (if (o.FilterWriteCombinedMemory == 1) @intFromEnum(MINIDUMP_TYPE.FilterWriteCombinedMemory) else 0) | (if (o.ValidTypeFlags == 1) @intFromEnum(MINIDUMP_TYPE.ValidTypeFlags) else 0))); } }; pub const MiniDumpNormal = MINIDUMP_TYPE.Normal; pub const MiniDumpWithDataSegs = MINIDUMP_TYPE.WithDataSegs; pub const MiniDumpWithFullMemory = MINIDUMP_TYPE.WithFullMemory; pub const MiniDumpWithHandleData = MINIDUMP_TYPE.WithHandleData; pub const MiniDumpFilterMemory = MINIDUMP_TYPE.FilterMemory; pub const MiniDumpScanMemory = MINIDUMP_TYPE.ScanMemory; pub const MiniDumpWithUnloadedModules = MINIDUMP_TYPE.WithUnloadedModules; pub const MiniDumpWithIndirectlyReferencedMemory = MINIDUMP_TYPE.WithIndirectlyReferencedMemory; pub const MiniDumpFilterModulePaths = MINIDUMP_TYPE.FilterModulePaths; pub const MiniDumpWithProcessThreadData = MINIDUMP_TYPE.WithProcessThreadData; pub const MiniDumpWithPrivateReadWriteMemory = MINIDUMP_TYPE.WithPrivateReadWriteMemory; pub const MiniDumpWithoutOptionalData = MINIDUMP_TYPE.WithoutOptionalData; pub const MiniDumpWithFullMemoryInfo = MINIDUMP_TYPE.WithFullMemoryInfo; pub const MiniDumpWithThreadInfo = MINIDUMP_TYPE.WithThreadInfo; pub const MiniDumpWithCodeSegs = MINIDUMP_TYPE.WithCodeSegs; pub const MiniDumpWithoutAuxiliaryState = MINIDUMP_TYPE.WithoutAuxiliaryState; pub const MiniDumpWithFullAuxiliaryState = MINIDUMP_TYPE.WithFullAuxiliaryState; pub const MiniDumpWithPrivateWriteCopyMemory = MINIDUMP_TYPE.WithPrivateWriteCopyMemory; pub const MiniDumpIgnoreInaccessibleMemory = MINIDUMP_TYPE.IgnoreInaccessibleMemory; pub const MiniDumpWithTokenInformation = MINIDUMP_TYPE.WithTokenInformation; pub const MiniDumpWithModuleHeaders = MINIDUMP_TYPE.WithModuleHeaders; pub const MiniDumpFilterTriage = MINIDUMP_TYPE.FilterTriage; pub const MiniDumpWithAvxXStateContext = MINIDUMP_TYPE.WithAvxXStateContext; pub const MiniDumpWithIptTrace = MINIDUMP_TYPE.WithIptTrace; pub const MiniDumpScanInaccessiblePartialPages = MINIDUMP_TYPE.ScanInaccessiblePartialPages; pub const MiniDumpFilterWriteCombinedMemory = MINIDUMP_TYPE.FilterWriteCombinedMemory; pub const MiniDumpValidTypeFlags = MINIDUMP_TYPE.ValidTypeFlags; pub const MINIDUMP_SECONDARY_FLAGS = enum(i32) { WithoutPowerInfo = 1, // ValidFlags = 1, this enum value conflicts with WithoutPowerInfo }; pub const MiniSecondaryWithoutPowerInfo = MINIDUMP_SECONDARY_FLAGS.WithoutPowerInfo; pub const MiniSecondaryValidFlags = MINIDUMP_SECONDARY_FLAGS.WithoutPowerInfo; pub const MINIDUMP_CALLBACK_ROUTINE = switch (@import("builtin").zig_backend) { .stage1 => fn ( CallbackParam: ?*anyopaque, CallbackInput: ?*MINIDUMP_CALLBACK_INPUT, CallbackOutput: ?*MINIDUMP_CALLBACK_OUTPUT, ) callconv(@import("std").os.windows.WINAPI) BOOL, else => *const fn ( CallbackParam: ?*anyopaque, CallbackInput: ?*MINIDUMP_CALLBACK_INPUT, CallbackOutput: ?*MINIDUMP_CALLBACK_OUTPUT, ) callconv(@import("std").os.windows.WINAPI) BOOL, }; pub const MINIDUMP_CALLBACK_INFORMATION = extern struct { CallbackRoutine: ?MINIDUMP_CALLBACK_ROUTINE align(4), CallbackParam: ?*anyopaque align(4), }; const CLSID_ProcessDebugManager_Value = Guid.initString("78a51822-51f4-11d0-8f20-00805f2cd064"); pub const CLSID_ProcessDebugManager = &CLSID_ProcessDebugManager_Value; const CLSID_DebugHelper_Value = Guid.initString("0bfcc060-8c1d-11d0-accd-00aa0060275c"); pub const CLSID_DebugHelper = &CLSID_DebugHelper_Value; const CLSID_CDebugDocumentHelper_Value = Guid.initString("83b8bca6-687c-11d0-a405-00aa0060275c"); pub const CLSID_CDebugDocumentHelper = &CLSID_CDebugDocumentHelper_Value; const CLSID_MachineDebugManager_RETAIL_Value = Guid.initString("0c0a3666-30c9-11d0-8f20-00805f2cd064"); pub const CLSID_MachineDebugManager_RETAIL = &CLSID_MachineDebugManager_RETAIL_Value; const CLSID_MachineDebugManager_DEBUG_Value = Guid.initString("49769cec-3a55-4bb0-b697-88fede77e8ea"); pub const CLSID_MachineDebugManager_DEBUG = &CLSID_MachineDebugManager_DEBUG_Value; const CLSID_DefaultDebugSessionProvider_Value = Guid.initString("834128a2-51f4-11d0-8f20-00805f2cd064"); pub const CLSID_DefaultDebugSessionProvider = &CLSID_DefaultDebugSessionProvider_Value; pub const SCRIPTLANGUAGEVERSION = enum(i32) { DEFAULT = 0, @"5_7" = 1, @"5_8" = 2, MAX = 255, }; pub const SCRIPTLANGUAGEVERSION_DEFAULT = SCRIPTLANGUAGEVERSION.DEFAULT; pub const SCRIPTLANGUAGEVERSION_5_7 = SCRIPTLANGUAGEVERSION.@"5_7"; pub const SCRIPTLANGUAGEVERSION_5_8 = SCRIPTLANGUAGEVERSION.@"5_8"; pub const SCRIPTLANGUAGEVERSION_MAX = SCRIPTLANGUAGEVERSION.MAX; pub const SCRIPTSTATE = enum(i32) { UNINITIALIZED = 0, INITIALIZED = 5, STARTED = 1, CONNECTED = 2, DISCONNECTED = 3, CLOSED = 4, }; pub const SCRIPTSTATE_UNINITIALIZED = SCRIPTSTATE.UNINITIALIZED; pub const SCRIPTSTATE_INITIALIZED = SCRIPTSTATE.INITIALIZED; pub const SCRIPTSTATE_STARTED = SCRIPTSTATE.STARTED; pub const SCRIPTSTATE_CONNECTED = SCRIPTSTATE.CONNECTED; pub const SCRIPTSTATE_DISCONNECTED = SCRIPTSTATE.DISCONNECTED; pub const SCRIPTSTATE_CLOSED = SCRIPTSTATE.CLOSED; pub const SCRIPTTRACEINFO = enum(i32) { SCRIPTSTART = 0, SCRIPTEND = 1, COMCALLSTART = 2, COMCALLEND = 3, CREATEOBJSTART = 4, CREATEOBJEND = 5, GETOBJSTART = 6, GETOBJEND = 7, }; pub const SCRIPTTRACEINFO_SCRIPTSTART = SCRIPTTRACEINFO.SCRIPTSTART; pub const SCRIPTTRACEINFO_SCRIPTEND = SCRIPTTRACEINFO.SCRIPTEND; pub const SCRIPTTRACEINFO_COMCALLSTART = SCRIPTTRACEINFO.COMCALLSTART; pub const SCRIPTTRACEINFO_COMCALLEND = SCRIPTTRACEINFO.COMCALLEND; pub const SCRIPTTRACEINFO_CREATEOBJSTART = SCRIPTTRACEINFO.CREATEOBJSTART; pub const SCRIPTTRACEINFO_CREATEOBJEND = SCRIPTTRACEINFO.CREATEOBJEND; pub const SCRIPTTRACEINFO_GETOBJSTART = SCRIPTTRACEINFO.GETOBJSTART; pub const SCRIPTTRACEINFO_GETOBJEND = SCRIPTTRACEINFO.GETOBJEND; pub const SCRIPTTHREADSTATE = enum(i32) { NOTINSCRIPT = 0, RUNNING = 1, }; pub const SCRIPTTHREADSTATE_NOTINSCRIPT = SCRIPTTHREADSTATE.NOTINSCRIPT; pub const SCRIPTTHREADSTATE_RUNNING = SCRIPTTHREADSTATE.RUNNING; pub const SCRIPTGCTYPE = enum(i32) { NORMAL = 0, EXHAUSTIVE = 1, }; pub const SCRIPTGCTYPE_NORMAL = SCRIPTGCTYPE.NORMAL; pub const SCRIPTGCTYPE_EXHAUSTIVE = SCRIPTGCTYPE.EXHAUSTIVE; pub const SCRIPTUICITEM = enum(i32) { INPUTBOX = 1, MSGBOX = 2, }; pub const SCRIPTUICITEM_INPUTBOX = SCRIPTUICITEM.INPUTBOX; pub const SCRIPTUICITEM_MSGBOX = SCRIPTUICITEM.MSGBOX; pub const SCRIPTUICHANDLING = enum(i32) { ALLOW = 0, NOUIERROR = 1, NOUIDEFAULT = 2, }; pub const SCRIPTUICHANDLING_ALLOW = SCRIPTUICHANDLING.ALLOW; pub const SCRIPTUICHANDLING_NOUIERROR = SCRIPTUICHANDLING.NOUIERROR; pub const SCRIPTUICHANDLING_NOUIDEFAULT = SCRIPTUICHANDLING.NOUIDEFAULT; const IID_IActiveScriptSite_Value = Guid.initString("db01a1e3-a42b-11cf-8f20-00805f2cd064"); pub const IID_IActiveScriptSite = &IID_IActiveScriptSite_Value; pub const IActiveScriptSite = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, GetLCID: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IActiveScriptSite, plcid: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IActiveScriptSite, plcid: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetItemInfo: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IActiveScriptSite, pstrName: ?[*:0]const u16, dwReturnMask: u32, ppiunkItem: ?*?*IUnknown, ppti: ?*?*ITypeInfo, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IActiveScriptSite, pstrName: ?[*:0]const u16, dwReturnMask: u32, ppiunkItem: ?*?*IUnknown, ppti: ?*?*ITypeInfo, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetDocVersionString: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IActiveScriptSite, pbstrVersion: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IActiveScriptSite, pbstrVersion: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, OnScriptTerminate: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IActiveScriptSite, pvarResult: ?*const VARIANT, pexcepinfo: ?*const EXCEPINFO, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IActiveScriptSite, pvarResult: ?*const VARIANT, pexcepinfo: ?*const EXCEPINFO, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, OnStateChange: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IActiveScriptSite, ssScriptState: SCRIPTSTATE, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IActiveScriptSite, ssScriptState: SCRIPTSTATE, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, OnScriptError: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IActiveScriptSite, pscripterror: ?*IActiveScriptError, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IActiveScriptSite, pscripterror: ?*IActiveScriptError, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, OnEnterScript: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IActiveScriptSite, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IActiveScriptSite, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, OnLeaveScript: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IActiveScriptSite, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IActiveScriptSite, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IActiveScriptSite_GetLCID(self: *const T, plcid: ?*u32) HRESULT { return @as(*const IActiveScriptSite.VTable, @ptrCast(self.vtable)).GetLCID(@as(*const IActiveScriptSite, @ptrCast(self)), plcid); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IActiveScriptSite_GetItemInfo(self: *const T, pstrName: ?[*:0]const u16, dwReturnMask: u32, ppiunkItem: ?*?*IUnknown, ppti: ?*?*ITypeInfo) HRESULT { return @as(*const IActiveScriptSite.VTable, @ptrCast(self.vtable)).GetItemInfo(@as(*const IActiveScriptSite, @ptrCast(self)), pstrName, dwReturnMask, ppiunkItem, ppti); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IActiveScriptSite_GetDocVersionString(self: *const T, pbstrVersion: ?*?BSTR) HRESULT { return @as(*const IActiveScriptSite.VTable, @ptrCast(self.vtable)).GetDocVersionString(@as(*const IActiveScriptSite, @ptrCast(self)), pbstrVersion); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IActiveScriptSite_OnScriptTerminate(self: *const T, pvarResult: ?*const VARIANT, pexcepinfo: ?*const EXCEPINFO) HRESULT { return @as(*const IActiveScriptSite.VTable, @ptrCast(self.vtable)).OnScriptTerminate(@as(*const IActiveScriptSite, @ptrCast(self)), pvarResult, pexcepinfo); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IActiveScriptSite_OnStateChange(self: *const T, ssScriptState: SCRIPTSTATE) HRESULT { return @as(*const IActiveScriptSite.VTable, @ptrCast(self.vtable)).OnStateChange(@as(*const IActiveScriptSite, @ptrCast(self)), ssScriptState); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IActiveScriptSite_OnScriptError(self: *const T, pscripterror: ?*IActiveScriptError) HRESULT { return @as(*const IActiveScriptSite.VTable, @ptrCast(self.vtable)).OnScriptError(@as(*const IActiveScriptSite, @ptrCast(self)), pscripterror); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IActiveScriptSite_OnEnterScript(self: *const T) HRESULT { return @as(*const IActiveScriptSite.VTable, @ptrCast(self.vtable)).OnEnterScript(@as(*const IActiveScriptSite, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IActiveScriptSite_OnLeaveScript(self: *const T) HRESULT { return @as(*const IActiveScriptSite.VTable, @ptrCast(self.vtable)).OnLeaveScript(@as(*const IActiveScriptSite, @ptrCast(self))); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IActiveScriptError_Value = Guid.initString("eae1ba61-a4ed-11cf-8f20-00805f2cd064"); pub const IID_IActiveScriptError = &IID_IActiveScriptError_Value; pub const IActiveScriptError = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, GetExceptionInfo: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IActiveScriptError, pexcepinfo: ?*EXCEPINFO, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IActiveScriptError, pexcepinfo: ?*EXCEPINFO, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetSourcePosition: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IActiveScriptError, pdwSourceContext: ?*u32, pulLineNumber: ?*u32, plCharacterPosition: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IActiveScriptError, pdwSourceContext: ?*u32, pulLineNumber: ?*u32, plCharacterPosition: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetSourceLineText: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IActiveScriptError, pbstrSourceLine: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IActiveScriptError, pbstrSourceLine: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IActiveScriptError_GetExceptionInfo(self: *const T, pexcepinfo: ?*EXCEPINFO) HRESULT { return @as(*const IActiveScriptError.VTable, @ptrCast(self.vtable)).GetExceptionInfo(@as(*const IActiveScriptError, @ptrCast(self)), pexcepinfo); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IActiveScriptError_GetSourcePosition(self: *const T, pdwSourceContext: ?*u32, pulLineNumber: ?*u32, plCharacterPosition: ?*i32) HRESULT { return @as(*const IActiveScriptError.VTable, @ptrCast(self.vtable)).GetSourcePosition(@as(*const IActiveScriptError, @ptrCast(self)), pdwSourceContext, pulLineNumber, plCharacterPosition); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IActiveScriptError_GetSourceLineText(self: *const T, pbstrSourceLine: ?*?BSTR) HRESULT { return @as(*const IActiveScriptError.VTable, @ptrCast(self.vtable)).GetSourceLineText(@as(*const IActiveScriptError, @ptrCast(self)), pbstrSourceLine); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IActiveScriptError64_Value = Guid.initString("b21fb2a1-5b8f-4963-8c21-21450f84ed7f"); pub const IID_IActiveScriptError64 = &IID_IActiveScriptError64_Value; pub const IActiveScriptError64 = extern struct { pub const VTable = extern struct { base: IActiveScriptError.VTable, GetSourcePosition64: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IActiveScriptError64, pdwSourceContext: ?*u64, pulLineNumber: ?*u32, plCharacterPosition: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IActiveScriptError64, pdwSourceContext: ?*u64, pulLineNumber: ?*u32, plCharacterPosition: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IActiveScriptError.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IActiveScriptError64_GetSourcePosition64(self: *const T, pdwSourceContext: ?*u64, pulLineNumber: ?*u32, plCharacterPosition: ?*i32) HRESULT { return @as(*const IActiveScriptError64.VTable, @ptrCast(self.vtable)).GetSourcePosition64(@as(*const IActiveScriptError64, @ptrCast(self)), pdwSourceContext, pulLineNumber, plCharacterPosition); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IActiveScriptSiteWindow_Value = Guid.initString("d10f6761-83e9-11cf-8f20-00805f2cd064"); pub const IID_IActiveScriptSiteWindow = &IID_IActiveScriptSiteWindow_Value; pub const IActiveScriptSiteWindow = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, GetWindow: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IActiveScriptSiteWindow, phwnd: ?*?HWND, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IActiveScriptSiteWindow, phwnd: ?*?HWND, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, EnableModeless: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IActiveScriptSiteWindow, fEnable: BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IActiveScriptSiteWindow, fEnable: BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IActiveScriptSiteWindow_GetWindow(self: *const T, phwnd: ?*?HWND) HRESULT { return @as(*const IActiveScriptSiteWindow.VTable, @ptrCast(self.vtable)).GetWindow(@as(*const IActiveScriptSiteWindow, @ptrCast(self)), phwnd); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IActiveScriptSiteWindow_EnableModeless(self: *const T, fEnable: BOOL) HRESULT { return @as(*const IActiveScriptSiteWindow.VTable, @ptrCast(self.vtable)).EnableModeless(@as(*const IActiveScriptSiteWindow, @ptrCast(self)), fEnable); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IActiveScriptSiteUIControl_Value = Guid.initString("aedae97e-d7ee-4796-b960-7f092ae844ab"); pub const IID_IActiveScriptSiteUIControl = &IID_IActiveScriptSiteUIControl_Value; pub const IActiveScriptSiteUIControl = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, GetUIBehavior: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IActiveScriptSiteUIControl, UicItem: SCRIPTUICITEM, pUicHandling: ?*SCRIPTUICHANDLING, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IActiveScriptSiteUIControl, UicItem: SCRIPTUICITEM, pUicHandling: ?*SCRIPTUICHANDLING, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IActiveScriptSiteUIControl_GetUIBehavior(self: *const T, UicItem: SCRIPTUICITEM, pUicHandling: ?*SCRIPTUICHANDLING) HRESULT { return @as(*const IActiveScriptSiteUIControl.VTable, @ptrCast(self.vtable)).GetUIBehavior(@as(*const IActiveScriptSiteUIControl, @ptrCast(self)), UicItem, pUicHandling); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IActiveScriptSiteInterruptPoll_Value = Guid.initString("539698a0-cdca-11cf-a5eb-00aa0047a063"); pub const IID_IActiveScriptSiteInterruptPoll = &IID_IActiveScriptSiteInterruptPoll_Value; pub const IActiveScriptSiteInterruptPoll = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, QueryContinue: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IActiveScriptSiteInterruptPoll, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IActiveScriptSiteInterruptPoll, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IActiveScriptSiteInterruptPoll_QueryContinue(self: *const T) HRESULT { return @as(*const IActiveScriptSiteInterruptPoll.VTable, @ptrCast(self.vtable)).QueryContinue(@as(*const IActiveScriptSiteInterruptPoll, @ptrCast(self))); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IActiveScript_Value = Guid.initString("bb1a2ae1-a4f9-11cf-8f20-00805f2cd064"); pub const IID_IActiveScript = &IID_IActiveScript_Value; pub const IActiveScript = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, SetScriptSite: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IActiveScript, pass: ?*IActiveScriptSite, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IActiveScript, pass: ?*IActiveScriptSite, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetScriptSite: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IActiveScript, riid: ?*const Guid, ppvObject: ?*?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IActiveScript, riid: ?*const Guid, ppvObject: ?*?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetScriptState: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IActiveScript, ss: SCRIPTSTATE, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IActiveScript, ss: SCRIPTSTATE, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetScriptState: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IActiveScript, pssState: ?*SCRIPTSTATE, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IActiveScript, pssState: ?*SCRIPTSTATE, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Close: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IActiveScript, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IActiveScript, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, AddNamedItem: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IActiveScript, pstrName: ?[*:0]const u16, dwFlags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IActiveScript, pstrName: ?[*:0]const u16, dwFlags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, AddTypeLib: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IActiveScript, rguidTypeLib: ?*const Guid, dwMajor: u32, dwMinor: u32, dwFlags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IActiveScript, rguidTypeLib: ?*const Guid, dwMajor: u32, dwMinor: u32, dwFlags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetScriptDispatch: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IActiveScript, pstrItemName: ?[*:0]const u16, ppdisp: ?*?*IDispatch, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IActiveScript, pstrItemName: ?[*:0]const u16, ppdisp: ?*?*IDispatch, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetCurrentScriptThreadID: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IActiveScript, pstidThread: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IActiveScript, pstidThread: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetScriptThreadID: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IActiveScript, dwWin32ThreadId: u32, pstidThread: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IActiveScript, dwWin32ThreadId: u32, pstidThread: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetScriptThreadState: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IActiveScript, stidThread: u32, pstsState: ?*SCRIPTTHREADSTATE, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IActiveScript, stidThread: u32, pstsState: ?*SCRIPTTHREADSTATE, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, InterruptScriptThread: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IActiveScript, stidThread: u32, pexcepinfo: ?*const EXCEPINFO, dwFlags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IActiveScript, stidThread: u32, pexcepinfo: ?*const EXCEPINFO, dwFlags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Clone: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IActiveScript, ppscript: ?*?*IActiveScript, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IActiveScript, ppscript: ?*?*IActiveScript, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IActiveScript_SetScriptSite(self: *const T, pass: ?*IActiveScriptSite) HRESULT { return @as(*const IActiveScript.VTable, @ptrCast(self.vtable)).SetScriptSite(@as(*const IActiveScript, @ptrCast(self)), pass); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IActiveScript_GetScriptSite(self: *const T, riid: ?*const Guid, ppvObject: ?*?*anyopaque) HRESULT { return @as(*const IActiveScript.VTable, @ptrCast(self.vtable)).GetScriptSite(@as(*const IActiveScript, @ptrCast(self)), riid, ppvObject); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IActiveScript_SetScriptState(self: *const T, ss: SCRIPTSTATE) HRESULT { return @as(*const IActiveScript.VTable, @ptrCast(self.vtable)).SetScriptState(@as(*const IActiveScript, @ptrCast(self)), ss); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IActiveScript_GetScriptState(self: *const T, pssState: ?*SCRIPTSTATE) HRESULT { return @as(*const IActiveScript.VTable, @ptrCast(self.vtable)).GetScriptState(@as(*const IActiveScript, @ptrCast(self)), pssState); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IActiveScript_Close(self: *const T) HRESULT { return @as(*const IActiveScript.VTable, @ptrCast(self.vtable)).Close(@as(*const IActiveScript, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IActiveScript_AddNamedItem(self: *const T, pstrName: ?[*:0]const u16, dwFlags: u32) HRESULT { return @as(*const IActiveScript.VTable, @ptrCast(self.vtable)).AddNamedItem(@as(*const IActiveScript, @ptrCast(self)), pstrName, dwFlags); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IActiveScript_AddTypeLib(self: *const T, rguidTypeLib: ?*const Guid, dwMajor: u32, dwMinor: u32, dwFlags: u32) HRESULT { return @as(*const IActiveScript.VTable, @ptrCast(self.vtable)).AddTypeLib(@as(*const IActiveScript, @ptrCast(self)), rguidTypeLib, dwMajor, dwMinor, dwFlags); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IActiveScript_GetScriptDispatch(self: *const T, pstrItemName: ?[*:0]const u16, ppdisp: ?*?*IDispatch) HRESULT { return @as(*const IActiveScript.VTable, @ptrCast(self.vtable)).GetScriptDispatch(@as(*const IActiveScript, @ptrCast(self)), pstrItemName, ppdisp); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IActiveScript_GetCurrentScriptThreadID(self: *const T, pstidThread: ?*u32) HRESULT { return @as(*const IActiveScript.VTable, @ptrCast(self.vtable)).GetCurrentScriptThreadID(@as(*const IActiveScript, @ptrCast(self)), pstidThread); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IActiveScript_GetScriptThreadID(self: *const T, dwWin32ThreadId: u32, pstidThread: ?*u32) HRESULT { return @as(*const IActiveScript.VTable, @ptrCast(self.vtable)).GetScriptThreadID(@as(*const IActiveScript, @ptrCast(self)), dwWin32ThreadId, pstidThread); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IActiveScript_GetScriptThreadState(self: *const T, stidThread: u32, pstsState: ?*SCRIPTTHREADSTATE) HRESULT { return @as(*const IActiveScript.VTable, @ptrCast(self.vtable)).GetScriptThreadState(@as(*const IActiveScript, @ptrCast(self)), stidThread, pstsState); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IActiveScript_InterruptScriptThread(self: *const T, stidThread: u32, pexcepinfo: ?*const EXCEPINFO, dwFlags: u32) HRESULT { return @as(*const IActiveScript.VTable, @ptrCast(self.vtable)).InterruptScriptThread(@as(*const IActiveScript, @ptrCast(self)), stidThread, pexcepinfo, dwFlags); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IActiveScript_Clone(self: *const T, ppscript: ?*?*IActiveScript) HRESULT { return @as(*const IActiveScript.VTable, @ptrCast(self.vtable)).Clone(@as(*const IActiveScript, @ptrCast(self)), ppscript); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IActiveScriptParse32_Value = Guid.initString("bb1a2ae2-a4f9-11cf-8f20-00805f2cd064"); pub const IID_IActiveScriptParse32 = &IID_IActiveScriptParse32_Value; pub const IActiveScriptParse32 = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, InitNew: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IActiveScriptParse32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IActiveScriptParse32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, AddScriptlet: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IActiveScriptParse32, pstrDefaultName: ?[*:0]const u16, pstrCode: ?[*:0]const u16, pstrItemName: ?[*:0]const u16, pstrSubItemName: ?[*:0]const u16, pstrEventName: ?[*:0]const u16, pstrDelimiter: ?[*:0]const u16, dwSourceContextCookie: u32, ulStartingLineNumber: u32, dwFlags: u32, pbstrName: ?*?BSTR, pexcepinfo: ?*EXCEPINFO, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IActiveScriptParse32, pstrDefaultName: ?[*:0]const u16, pstrCode: ?[*:0]const u16, pstrItemName: ?[*:0]const u16, pstrSubItemName: ?[*:0]const u16, pstrEventName: ?[*:0]const u16, pstrDelimiter: ?[*:0]const u16, dwSourceContextCookie: u32, ulStartingLineNumber: u32, dwFlags: u32, pbstrName: ?*?BSTR, pexcepinfo: ?*EXCEPINFO, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, ParseScriptText: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IActiveScriptParse32, pstrCode: ?[*:0]const u16, pstrItemName: ?[*:0]const u16, punkContext: ?*IUnknown, pstrDelimiter: ?[*:0]const u16, dwSourceContextCookie: u32, ulStartingLineNumber: u32, dwFlags: u32, pvarResult: ?*VARIANT, pexcepinfo: ?*EXCEPINFO, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IActiveScriptParse32, pstrCode: ?[*:0]const u16, pstrItemName: ?[*:0]const u16, punkContext: ?*IUnknown, pstrDelimiter: ?[*:0]const u16, dwSourceContextCookie: u32, ulStartingLineNumber: u32, dwFlags: u32, pvarResult: ?*VARIANT, pexcepinfo: ?*EXCEPINFO, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IActiveScriptParse32_InitNew(self: *const T) HRESULT { return @as(*const IActiveScriptParse32.VTable, @ptrCast(self.vtable)).InitNew(@as(*const IActiveScriptParse32, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IActiveScriptParse32_AddScriptlet(self: *const T, pstrDefaultName: ?[*:0]const u16, pstrCode: ?[*:0]const u16, pstrItemName: ?[*:0]const u16, pstrSubItemName: ?[*:0]const u16, pstrEventName: ?[*:0]const u16, pstrDelimiter: ?[*:0]const u16, dwSourceContextCookie: u32, ulStartingLineNumber: u32, dwFlags: u32, pbstrName: ?*?BSTR, pexcepinfo: ?*EXCEPINFO) HRESULT { return @as(*const IActiveScriptParse32.VTable, @ptrCast(self.vtable)).AddScriptlet(@as(*const IActiveScriptParse32, @ptrCast(self)), pstrDefaultName, pstrCode, pstrItemName, pstrSubItemName, pstrEventName, pstrDelimiter, dwSourceContextCookie, ulStartingLineNumber, dwFlags, pbstrName, pexcepinfo); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IActiveScriptParse32_ParseScriptText(self: *const T, pstrCode: ?[*:0]const u16, pstrItemName: ?[*:0]const u16, punkContext: ?*IUnknown, pstrDelimiter: ?[*:0]const u16, dwSourceContextCookie: u32, ulStartingLineNumber: u32, dwFlags: u32, pvarResult: ?*VARIANT, pexcepinfo: ?*EXCEPINFO) HRESULT { return @as(*const IActiveScriptParse32.VTable, @ptrCast(self.vtable)).ParseScriptText(@as(*const IActiveScriptParse32, @ptrCast(self)), pstrCode, pstrItemName, punkContext, pstrDelimiter, dwSourceContextCookie, ulStartingLineNumber, dwFlags, pvarResult, pexcepinfo); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IActiveScriptParse64_Value = Guid.initString("c7ef7658-e1ee-480e-97ea-d52cb4d76d17"); pub const IID_IActiveScriptParse64 = &IID_IActiveScriptParse64_Value; pub const IActiveScriptParse64 = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, InitNew: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IActiveScriptParse64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IActiveScriptParse64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, AddScriptlet: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IActiveScriptParse64, pstrDefaultName: ?[*:0]const u16, pstrCode: ?[*:0]const u16, pstrItemName: ?[*:0]const u16, pstrSubItemName: ?[*:0]const u16, pstrEventName: ?[*:0]const u16, pstrDelimiter: ?[*:0]const u16, dwSourceContextCookie: u64, ulStartingLineNumber: u32, dwFlags: u32, pbstrName: ?*?BSTR, pexcepinfo: ?*EXCEPINFO, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IActiveScriptParse64, pstrDefaultName: ?[*:0]const u16, pstrCode: ?[*:0]const u16, pstrItemName: ?[*:0]const u16, pstrSubItemName: ?[*:0]const u16, pstrEventName: ?[*:0]const u16, pstrDelimiter: ?[*:0]const u16, dwSourceContextCookie: u64, ulStartingLineNumber: u32, dwFlags: u32, pbstrName: ?*?BSTR, pexcepinfo: ?*EXCEPINFO, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, ParseScriptText: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IActiveScriptParse64, pstrCode: ?[*:0]const u16, pstrItemName: ?[*:0]const u16, punkContext: ?*IUnknown, pstrDelimiter: ?[*:0]const u16, dwSourceContextCookie: u64, ulStartingLineNumber: u32, dwFlags: u32, pvarResult: ?*VARIANT, pexcepinfo: ?*EXCEPINFO, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IActiveScriptParse64, pstrCode: ?[*:0]const u16, pstrItemName: ?[*:0]const u16, punkContext: ?*IUnknown, pstrDelimiter: ?[*:0]const u16, dwSourceContextCookie: u64, ulStartingLineNumber: u32, dwFlags: u32, pvarResult: ?*VARIANT, pexcepinfo: ?*EXCEPINFO, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IActiveScriptParse64_InitNew(self: *const T) HRESULT { return @as(*const IActiveScriptParse64.VTable, @ptrCast(self.vtable)).InitNew(@as(*const IActiveScriptParse64, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IActiveScriptParse64_AddScriptlet(self: *const T, pstrDefaultName: ?[*:0]const u16, pstrCode: ?[*:0]const u16, pstrItemName: ?[*:0]const u16, pstrSubItemName: ?[*:0]const u16, pstrEventName: ?[*:0]const u16, pstrDelimiter: ?[*:0]const u16, dwSourceContextCookie: u64, ulStartingLineNumber: u32, dwFlags: u32, pbstrName: ?*?BSTR, pexcepinfo: ?*EXCEPINFO) HRESULT { return @as(*const IActiveScriptParse64.VTable, @ptrCast(self.vtable)).AddScriptlet(@as(*const IActiveScriptParse64, @ptrCast(self)), pstrDefaultName, pstrCode, pstrItemName, pstrSubItemName, pstrEventName, pstrDelimiter, dwSourceContextCookie, ulStartingLineNumber, dwFlags, pbstrName, pexcepinfo); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IActiveScriptParse64_ParseScriptText(self: *const T, pstrCode: ?[*:0]const u16, pstrItemName: ?[*:0]const u16, punkContext: ?*IUnknown, pstrDelimiter: ?[*:0]const u16, dwSourceContextCookie: u64, ulStartingLineNumber: u32, dwFlags: u32, pvarResult: ?*VARIANT, pexcepinfo: ?*EXCEPINFO) HRESULT { return @as(*const IActiveScriptParse64.VTable, @ptrCast(self.vtable)).ParseScriptText(@as(*const IActiveScriptParse64, @ptrCast(self)), pstrCode, pstrItemName, punkContext, pstrDelimiter, dwSourceContextCookie, ulStartingLineNumber, dwFlags, pvarResult, pexcepinfo); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IActiveScriptParseProcedureOld32_Value = Guid.initString("1cff0050-6fdd-11d0-9328-00a0c90dcaa9"); pub const IID_IActiveScriptParseProcedureOld32 = &IID_IActiveScriptParseProcedureOld32_Value; pub const IActiveScriptParseProcedureOld32 = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, ParseProcedureText: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IActiveScriptParseProcedureOld32, pstrCode: ?[*:0]const u16, pstrFormalParams: ?[*:0]const u16, pstrItemName: ?[*:0]const u16, punkContext: ?*IUnknown, pstrDelimiter: ?[*:0]const u16, dwSourceContextCookie: u32, ulStartingLineNumber: u32, dwFlags: u32, ppdisp: ?*?*IDispatch, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IActiveScriptParseProcedureOld32, pstrCode: ?[*:0]const u16, pstrFormalParams: ?[*:0]const u16, pstrItemName: ?[*:0]const u16, punkContext: ?*IUnknown, pstrDelimiter: ?[*:0]const u16, dwSourceContextCookie: u32, ulStartingLineNumber: u32, dwFlags: u32, ppdisp: ?*?*IDispatch, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IActiveScriptParseProcedureOld32_ParseProcedureText(self: *const T, pstrCode: ?[*:0]const u16, pstrFormalParams: ?[*:0]const u16, pstrItemName: ?[*:0]const u16, punkContext: ?*IUnknown, pstrDelimiter: ?[*:0]const u16, dwSourceContextCookie: u32, ulStartingLineNumber: u32, dwFlags: u32, ppdisp: ?*?*IDispatch) HRESULT { return @as(*const IActiveScriptParseProcedureOld32.VTable, @ptrCast(self.vtable)).ParseProcedureText(@as(*const IActiveScriptParseProcedureOld32, @ptrCast(self)), pstrCode, pstrFormalParams, pstrItemName, punkContext, pstrDelimiter, dwSourceContextCookie, ulStartingLineNumber, dwFlags, ppdisp); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IActiveScriptParseProcedureOld64_Value = Guid.initString("21f57128-08c9-4638-ba12-22d15d88dc5c"); pub const IID_IActiveScriptParseProcedureOld64 = &IID_IActiveScriptParseProcedureOld64_Value; pub const IActiveScriptParseProcedureOld64 = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, ParseProcedureText: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IActiveScriptParseProcedureOld64, pstrCode: ?[*:0]const u16, pstrFormalParams: ?[*:0]const u16, pstrItemName: ?[*:0]const u16, punkContext: ?*IUnknown, pstrDelimiter: ?[*:0]const u16, dwSourceContextCookie: u64, ulStartingLineNumber: u32, dwFlags: u32, ppdisp: ?*?*IDispatch, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IActiveScriptParseProcedureOld64, pstrCode: ?[*:0]const u16, pstrFormalParams: ?[*:0]const u16, pstrItemName: ?[*:0]const u16, punkContext: ?*IUnknown, pstrDelimiter: ?[*:0]const u16, dwSourceContextCookie: u64, ulStartingLineNumber: u32, dwFlags: u32, ppdisp: ?*?*IDispatch, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IActiveScriptParseProcedureOld64_ParseProcedureText(self: *const T, pstrCode: ?[*:0]const u16, pstrFormalParams: ?[*:0]const u16, pstrItemName: ?[*:0]const u16, punkContext: ?*IUnknown, pstrDelimiter: ?[*:0]const u16, dwSourceContextCookie: u64, ulStartingLineNumber: u32, dwFlags: u32, ppdisp: ?*?*IDispatch) HRESULT { return @as(*const IActiveScriptParseProcedureOld64.VTable, @ptrCast(self.vtable)).ParseProcedureText(@as(*const IActiveScriptParseProcedureOld64, @ptrCast(self)), pstrCode, pstrFormalParams, pstrItemName, punkContext, pstrDelimiter, dwSourceContextCookie, ulStartingLineNumber, dwFlags, ppdisp); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IActiveScriptParseProcedure32_Value = Guid.initString("aa5b6a80-b834-11d0-932f-00a0c90dcaa9"); pub const IID_IActiveScriptParseProcedure32 = &IID_IActiveScriptParseProcedure32_Value; pub const IActiveScriptParseProcedure32 = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, ParseProcedureText: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IActiveScriptParseProcedure32, pstrCode: ?[*:0]const u16, pstrFormalParams: ?[*:0]const u16, pstrProcedureName: ?[*:0]const u16, pstrItemName: ?[*:0]const u16, punkContext: ?*IUnknown, pstrDelimiter: ?[*:0]const u16, dwSourceContextCookie: u32, ulStartingLineNumber: u32, dwFlags: u32, ppdisp: ?*?*IDispatch, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IActiveScriptParseProcedure32, pstrCode: ?[*:0]const u16, pstrFormalParams: ?[*:0]const u16, pstrProcedureName: ?[*:0]const u16, pstrItemName: ?[*:0]const u16, punkContext: ?*IUnknown, pstrDelimiter: ?[*:0]const u16, dwSourceContextCookie: u32, ulStartingLineNumber: u32, dwFlags: u32, ppdisp: ?*?*IDispatch, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IActiveScriptParseProcedure32_ParseProcedureText(self: *const T, pstrCode: ?[*:0]const u16, pstrFormalParams: ?[*:0]const u16, pstrProcedureName: ?[*:0]const u16, pstrItemName: ?[*:0]const u16, punkContext: ?*IUnknown, pstrDelimiter: ?[*:0]const u16, dwSourceContextCookie: u32, ulStartingLineNumber: u32, dwFlags: u32, ppdisp: ?*?*IDispatch) HRESULT { return @as(*const IActiveScriptParseProcedure32.VTable, @ptrCast(self.vtable)).ParseProcedureText(@as(*const IActiveScriptParseProcedure32, @ptrCast(self)), pstrCode, pstrFormalParams, pstrProcedureName, pstrItemName, punkContext, pstrDelimiter, dwSourceContextCookie, ulStartingLineNumber, dwFlags, ppdisp); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IActiveScriptParseProcedure64_Value = Guid.initString("c64713b6-e029-4cc5-9200-438b72890b6a"); pub const IID_IActiveScriptParseProcedure64 = &IID_IActiveScriptParseProcedure64_Value; pub const IActiveScriptParseProcedure64 = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, ParseProcedureText: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IActiveScriptParseProcedure64, pstrCode: ?[*:0]const u16, pstrFormalParams: ?[*:0]const u16, pstrProcedureName: ?[*:0]const u16, pstrItemName: ?[*:0]const u16, punkContext: ?*IUnknown, pstrDelimiter: ?[*:0]const u16, dwSourceContextCookie: u64, ulStartingLineNumber: u32, dwFlags: u32, ppdisp: ?*?*IDispatch, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IActiveScriptParseProcedure64, pstrCode: ?[*:0]const u16, pstrFormalParams: ?[*:0]const u16, pstrProcedureName: ?[*:0]const u16, pstrItemName: ?[*:0]const u16, punkContext: ?*IUnknown, pstrDelimiter: ?[*:0]const u16, dwSourceContextCookie: u64, ulStartingLineNumber: u32, dwFlags: u32, ppdisp: ?*?*IDispatch, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IActiveScriptParseProcedure64_ParseProcedureText(self: *const T, pstrCode: ?[*:0]const u16, pstrFormalParams: ?[*:0]const u16, pstrProcedureName: ?[*:0]const u16, pstrItemName: ?[*:0]const u16, punkContext: ?*IUnknown, pstrDelimiter: ?[*:0]const u16, dwSourceContextCookie: u64, ulStartingLineNumber: u32, dwFlags: u32, ppdisp: ?*?*IDispatch) HRESULT { return @as(*const IActiveScriptParseProcedure64.VTable, @ptrCast(self.vtable)).ParseProcedureText(@as(*const IActiveScriptParseProcedure64, @ptrCast(self)), pstrCode, pstrFormalParams, pstrProcedureName, pstrItemName, punkContext, pstrDelimiter, dwSourceContextCookie, ulStartingLineNumber, dwFlags, ppdisp); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IActiveScriptParseProcedure2_32_Value = Guid.initString("71ee5b20-fb04-11d1-b3a8-00a0c911e8b2"); pub const IID_IActiveScriptParseProcedure2_32 = &IID_IActiveScriptParseProcedure2_32_Value; pub const IActiveScriptParseProcedure2_32 = extern struct { pub const VTable = extern struct { base: IActiveScriptParseProcedure32.VTable, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IActiveScriptParseProcedure32.MethodMixin(T); }; } pub usingnamespace MethodMixin(@This()); }; const IID_IActiveScriptParseProcedure2_64_Value = Guid.initString("fe7c4271-210c-448d-9f54-76dab7047b28"); pub const IID_IActiveScriptParseProcedure2_64 = &IID_IActiveScriptParseProcedure2_64_Value; pub const IActiveScriptParseProcedure2_64 = extern struct { pub const VTable = extern struct { base: IActiveScriptParseProcedure64.VTable, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IActiveScriptParseProcedure64.MethodMixin(T); }; } pub usingnamespace MethodMixin(@This()); }; const IID_IActiveScriptEncode_Value = Guid.initString("bb1a2ae3-a4f9-11cf-8f20-00805f2cd064"); pub const IID_IActiveScriptEncode = &IID_IActiveScriptEncode_Value; pub const IActiveScriptEncode = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, EncodeSection: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IActiveScriptEncode, pchIn: ?[*:0]const u16, cchIn: u32, pchOut: ?PWSTR, cchOut: u32, pcchRet: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IActiveScriptEncode, pchIn: ?[*:0]const u16, cchIn: u32, pchOut: ?PWSTR, cchOut: u32, pcchRet: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, DecodeScript: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IActiveScriptEncode, pchIn: ?[*:0]const u16, cchIn: u32, pchOut: ?PWSTR, cchOut: u32, pcchRet: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IActiveScriptEncode, pchIn: ?[*:0]const u16, cchIn: u32, pchOut: ?PWSTR, cchOut: u32, pcchRet: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetEncodeProgId: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IActiveScriptEncode, pbstrOut: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IActiveScriptEncode, pbstrOut: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IActiveScriptEncode_EncodeSection(self: *const T, pchIn: ?[*:0]const u16, cchIn: u32, pchOut: ?PWSTR, cchOut: u32, pcchRet: ?*u32) HRESULT { return @as(*const IActiveScriptEncode.VTable, @ptrCast(self.vtable)).EncodeSection(@as(*const IActiveScriptEncode, @ptrCast(self)), pchIn, cchIn, pchOut, cchOut, pcchRet); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IActiveScriptEncode_DecodeScript(self: *const T, pchIn: ?[*:0]const u16, cchIn: u32, pchOut: ?PWSTR, cchOut: u32, pcchRet: ?*u32) HRESULT { return @as(*const IActiveScriptEncode.VTable, @ptrCast(self.vtable)).DecodeScript(@as(*const IActiveScriptEncode, @ptrCast(self)), pchIn, cchIn, pchOut, cchOut, pcchRet); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IActiveScriptEncode_GetEncodeProgId(self: *const T, pbstrOut: ?*?BSTR) HRESULT { return @as(*const IActiveScriptEncode.VTable, @ptrCast(self.vtable)).GetEncodeProgId(@as(*const IActiveScriptEncode, @ptrCast(self)), pbstrOut); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IActiveScriptHostEncode_Value = Guid.initString("bee9b76e-cfe3-11d1-b747-00c04fc2b085"); pub const IID_IActiveScriptHostEncode = &IID_IActiveScriptHostEncode_Value; pub const IActiveScriptHostEncode = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, EncodeScriptHostFile: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IActiveScriptHostEncode, bstrInFile: ?BSTR, pbstrOutFile: ?*?BSTR, cFlags: u32, bstrDefaultLang: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IActiveScriptHostEncode, bstrInFile: ?BSTR, pbstrOutFile: ?*?BSTR, cFlags: u32, bstrDefaultLang: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IActiveScriptHostEncode_EncodeScriptHostFile(self: *const T, bstrInFile: ?BSTR, pbstrOutFile: ?*?BSTR, cFlags: u32, bstrDefaultLang: ?BSTR) HRESULT { return @as(*const IActiveScriptHostEncode.VTable, @ptrCast(self.vtable)).EncodeScriptHostFile(@as(*const IActiveScriptHostEncode, @ptrCast(self)), bstrInFile, pbstrOutFile, cFlags, bstrDefaultLang); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IBindEventHandler_Value = Guid.initString("63cdbcb0-c1b1-11d0-9336-00a0c90dcaa9"); pub const IID_IBindEventHandler = &IID_IBindEventHandler_Value; pub const IBindEventHandler = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, BindHandler: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IBindEventHandler, pstrEvent: ?[*:0]const u16, pdisp: ?*IDispatch, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IBindEventHandler, pstrEvent: ?[*:0]const u16, pdisp: ?*IDispatch, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IBindEventHandler_BindHandler(self: *const T, pstrEvent: ?[*:0]const u16, pdisp: ?*IDispatch) HRESULT { return @as(*const IBindEventHandler.VTable, @ptrCast(self.vtable)).BindHandler(@as(*const IBindEventHandler, @ptrCast(self)), pstrEvent, pdisp); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IActiveScriptStats_Value = Guid.initString("b8da6310-e19b-11d0-933c-00a0c90dcaa9"); pub const IID_IActiveScriptStats = &IID_IActiveScriptStats_Value; pub const IActiveScriptStats = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, GetStat: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IActiveScriptStats, stid: u32, pluHi: ?*u32, pluLo: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IActiveScriptStats, stid: u32, pluHi: ?*u32, pluLo: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetStatEx: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IActiveScriptStats, guid: ?*const Guid, pluHi: ?*u32, pluLo: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IActiveScriptStats, guid: ?*const Guid, pluHi: ?*u32, pluLo: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, ResetStats: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IActiveScriptStats, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IActiveScriptStats, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IActiveScriptStats_GetStat(self: *const T, stid: u32, pluHi: ?*u32, pluLo: ?*u32) HRESULT { return @as(*const IActiveScriptStats.VTable, @ptrCast(self.vtable)).GetStat(@as(*const IActiveScriptStats, @ptrCast(self)), stid, pluHi, pluLo); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IActiveScriptStats_GetStatEx(self: *const T, guid: ?*const Guid, pluHi: ?*u32, pluLo: ?*u32) HRESULT { return @as(*const IActiveScriptStats.VTable, @ptrCast(self.vtable)).GetStatEx(@as(*const IActiveScriptStats, @ptrCast(self)), guid, pluHi, pluLo); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IActiveScriptStats_ResetStats(self: *const T) HRESULT { return @as(*const IActiveScriptStats.VTable, @ptrCast(self.vtable)).ResetStats(@as(*const IActiveScriptStats, @ptrCast(self))); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IActiveScriptProperty_Value = Guid.initString("4954e0d0-fbc7-11d1-8410-006008c3fbfc"); pub const IID_IActiveScriptProperty = &IID_IActiveScriptProperty_Value; pub const IActiveScriptProperty = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, GetProperty: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IActiveScriptProperty, dwProperty: u32, pvarIndex: ?*VARIANT, pvarValue: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IActiveScriptProperty, dwProperty: u32, pvarIndex: ?*VARIANT, pvarValue: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetProperty: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IActiveScriptProperty, dwProperty: u32, pvarIndex: ?*VARIANT, pvarValue: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IActiveScriptProperty, dwProperty: u32, pvarIndex: ?*VARIANT, pvarValue: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IActiveScriptProperty_GetProperty(self: *const T, dwProperty: u32, pvarIndex: ?*VARIANT, pvarValue: ?*VARIANT) HRESULT { return @as(*const IActiveScriptProperty.VTable, @ptrCast(self.vtable)).GetProperty(@as(*const IActiveScriptProperty, @ptrCast(self)), dwProperty, pvarIndex, pvarValue); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IActiveScriptProperty_SetProperty(self: *const T, dwProperty: u32, pvarIndex: ?*VARIANT, pvarValue: ?*VARIANT) HRESULT { return @as(*const IActiveScriptProperty.VTable, @ptrCast(self.vtable)).SetProperty(@as(*const IActiveScriptProperty, @ptrCast(self)), dwProperty, pvarIndex, pvarValue); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_ITridentEventSink_Value = Guid.initString("1dc9ca50-06ef-11d2-8415-006008c3fbfc"); pub const IID_ITridentEventSink = &IID_ITridentEventSink_Value; pub const ITridentEventSink = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, FireEvent: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ITridentEventSink, pstrEvent: ?[*:0]const u16, pdp: ?*DISPPARAMS, pvarRes: ?*VARIANT, pei: ?*EXCEPINFO, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ITridentEventSink, pstrEvent: ?[*:0]const u16, pdp: ?*DISPPARAMS, pvarRes: ?*VARIANT, pei: ?*EXCEPINFO, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITridentEventSink_FireEvent(self: *const T, pstrEvent: ?[*:0]const u16, pdp: ?*DISPPARAMS, pvarRes: ?*VARIANT, pei: ?*EXCEPINFO) HRESULT { return @as(*const ITridentEventSink.VTable, @ptrCast(self.vtable)).FireEvent(@as(*const ITridentEventSink, @ptrCast(self)), pstrEvent, pdp, pvarRes, pei); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IActiveScriptGarbageCollector_Value = Guid.initString("6aa2c4a0-2b53-11d4-a2a0-00104bd35090"); pub const IID_IActiveScriptGarbageCollector = &IID_IActiveScriptGarbageCollector_Value; pub const IActiveScriptGarbageCollector = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, CollectGarbage: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IActiveScriptGarbageCollector, scriptgctype: SCRIPTGCTYPE, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IActiveScriptGarbageCollector, scriptgctype: SCRIPTGCTYPE, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IActiveScriptGarbageCollector_CollectGarbage(self: *const T, scriptgctype: SCRIPTGCTYPE) HRESULT { return @as(*const IActiveScriptGarbageCollector.VTable, @ptrCast(self.vtable)).CollectGarbage(@as(*const IActiveScriptGarbageCollector, @ptrCast(self)), scriptgctype); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IActiveScriptSIPInfo_Value = Guid.initString("764651d0-38de-11d4-a2a3-00104bd35090"); pub const IID_IActiveScriptSIPInfo = &IID_IActiveScriptSIPInfo_Value; pub const IActiveScriptSIPInfo = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, GetSIPOID: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IActiveScriptSIPInfo, poid_sip: ?*Guid, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IActiveScriptSIPInfo, poid_sip: ?*Guid, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IActiveScriptSIPInfo_GetSIPOID(self: *const T, poid_sip: ?*Guid) HRESULT { return @as(*const IActiveScriptSIPInfo.VTable, @ptrCast(self.vtable)).GetSIPOID(@as(*const IActiveScriptSIPInfo, @ptrCast(self)), poid_sip); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IActiveScriptSiteTraceInfo_Value = Guid.initString("4b7272ae-1955-4bfe-98b0-780621888569"); pub const IID_IActiveScriptSiteTraceInfo = &IID_IActiveScriptSiteTraceInfo_Value; pub const IActiveScriptSiteTraceInfo = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, SendScriptTraceInfo: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IActiveScriptSiteTraceInfo, stiEventType: SCRIPTTRACEINFO, guidContextID: Guid, dwScriptContextCookie: u32, lScriptStatementStart: i32, lScriptStatementEnd: i32, dwReserved: u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IActiveScriptSiteTraceInfo, stiEventType: SCRIPTTRACEINFO, guidContextID: Guid, dwScriptContextCookie: u32, lScriptStatementStart: i32, lScriptStatementEnd: i32, dwReserved: u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IActiveScriptSiteTraceInfo_SendScriptTraceInfo(self: *const T, stiEventType: SCRIPTTRACEINFO, guidContextID: Guid, dwScriptContextCookie: u32, lScriptStatementStart: i32, lScriptStatementEnd: i32, dwReserved: u64) HRESULT { return @as(*const IActiveScriptSiteTraceInfo.VTable, @ptrCast(self.vtable)).SendScriptTraceInfo(@as(*const IActiveScriptSiteTraceInfo, @ptrCast(self)), stiEventType, guidContextID, dwScriptContextCookie, lScriptStatementStart, lScriptStatementEnd, dwReserved); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IActiveScriptTraceInfo_Value = Guid.initString("c35456e7-bebf-4a1b-86a9-24d56be8b369"); pub const IID_IActiveScriptTraceInfo = &IID_IActiveScriptTraceInfo_Value; pub const IActiveScriptTraceInfo = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, StartScriptTracing: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IActiveScriptTraceInfo, pSiteTraceInfo: ?*IActiveScriptSiteTraceInfo, guidContextID: Guid, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IActiveScriptTraceInfo, pSiteTraceInfo: ?*IActiveScriptSiteTraceInfo, guidContextID: Guid, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, StopScriptTracing: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IActiveScriptTraceInfo, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IActiveScriptTraceInfo, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IActiveScriptTraceInfo_StartScriptTracing(self: *const T, pSiteTraceInfo: ?*IActiveScriptSiteTraceInfo, guidContextID: Guid) HRESULT { return @as(*const IActiveScriptTraceInfo.VTable, @ptrCast(self.vtable)).StartScriptTracing(@as(*const IActiveScriptTraceInfo, @ptrCast(self)), pSiteTraceInfo, guidContextID); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IActiveScriptTraceInfo_StopScriptTracing(self: *const T) HRESULT { return @as(*const IActiveScriptTraceInfo.VTable, @ptrCast(self.vtable)).StopScriptTracing(@as(*const IActiveScriptTraceInfo, @ptrCast(self))); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IActiveScriptStringCompare_Value = Guid.initString("58562769-ed52-42f7-8403-4963514e1f11"); pub const IID_IActiveScriptStringCompare = &IID_IActiveScriptStringCompare_Value; pub const IActiveScriptStringCompare = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, StrComp: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IActiveScriptStringCompare, bszStr1: ?BSTR, bszStr2: ?BSTR, iRet: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IActiveScriptStringCompare, bszStr1: ?BSTR, bszStr2: ?BSTR, iRet: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IActiveScriptStringCompare_StrComp(self: *const T, bszStr1: ?BSTR, bszStr2: ?BSTR, iRet: ?*i32) HRESULT { return @as(*const IActiveScriptStringCompare.VTable, @ptrCast(self.vtable)).StrComp(@as(*const IActiveScriptStringCompare, @ptrCast(self)), bszStr1, bszStr2, iRet); } }; } pub usingnamespace MethodMixin(@This()); }; pub const DBGPROP_ATTRIB_FLAGS = enum(u32) { NO_ATTRIB = 0, VALUE_IS_INVALID = 8, VALUE_IS_EXPANDABLE = 16, VALUE_IS_FAKE = 32, VALUE_IS_METHOD = 256, VALUE_IS_EVENT = 512, VALUE_IS_RAW_STRING = 1024, VALUE_READONLY = 2048, ACCESS_PUBLIC = 4096, ACCESS_PRIVATE = 8192, ACCESS_PROTECTED = 16384, ACCESS_FINAL = 32768, STORAGE_GLOBAL = 65536, STORAGE_STATIC = 131072, STORAGE_FIELD = 262144, STORAGE_VIRTUAL = 524288, TYPE_IS_CONSTANT = 1048576, TYPE_IS_SYNCHRONIZED = 2097152, TYPE_IS_VOLATILE = 4194304, HAS_EXTENDED_ATTRIBS = 8388608, FRAME_INTRYBLOCK = 16777216, FRAME_INCATCHBLOCK = 33554432, FRAME_INFINALLYBLOCK = 67108864, VALUE_IS_RETURN_VALUE = 134217728, VALUE_PENDING_MUTATION = 268435456, _, pub fn initFlags(o: struct { NO_ATTRIB: u1 = 0, VALUE_IS_INVALID: u1 = 0, VALUE_IS_EXPANDABLE: u1 = 0, VALUE_IS_FAKE: u1 = 0, VALUE_IS_METHOD: u1 = 0, VALUE_IS_EVENT: u1 = 0, VALUE_IS_RAW_STRING: u1 = 0, VALUE_READONLY: u1 = 0, ACCESS_PUBLIC: u1 = 0, ACCESS_PRIVATE: u1 = 0, ACCESS_PROTECTED: u1 = 0, ACCESS_FINAL: u1 = 0, STORAGE_GLOBAL: u1 = 0, STORAGE_STATIC: u1 = 0, STORAGE_FIELD: u1 = 0, STORAGE_VIRTUAL: u1 = 0, TYPE_IS_CONSTANT: u1 = 0, TYPE_IS_SYNCHRONIZED: u1 = 0, TYPE_IS_VOLATILE: u1 = 0, HAS_EXTENDED_ATTRIBS: u1 = 0, FRAME_INTRYBLOCK: u1 = 0, FRAME_INCATCHBLOCK: u1 = 0, FRAME_INFINALLYBLOCK: u1 = 0, VALUE_IS_RETURN_VALUE: u1 = 0, VALUE_PENDING_MUTATION: u1 = 0, }) DBGPROP_ATTRIB_FLAGS { return @as(DBGPROP_ATTRIB_FLAGS, @enumFromInt((if (o.NO_ATTRIB == 1) @intFromEnum(DBGPROP_ATTRIB_FLAGS.NO_ATTRIB) else 0) | (if (o.VALUE_IS_INVALID == 1) @intFromEnum(DBGPROP_ATTRIB_FLAGS.VALUE_IS_INVALID) else 0) | (if (o.VALUE_IS_EXPANDABLE == 1) @intFromEnum(DBGPROP_ATTRIB_FLAGS.VALUE_IS_EXPANDABLE) else 0) | (if (o.VALUE_IS_FAKE == 1) @intFromEnum(DBGPROP_ATTRIB_FLAGS.VALUE_IS_FAKE) else 0) | (if (o.VALUE_IS_METHOD == 1) @intFromEnum(DBGPROP_ATTRIB_FLAGS.VALUE_IS_METHOD) else 0) | (if (o.VALUE_IS_EVENT == 1) @intFromEnum(DBGPROP_ATTRIB_FLAGS.VALUE_IS_EVENT) else 0) | (if (o.VALUE_IS_RAW_STRING == 1) @intFromEnum(DBGPROP_ATTRIB_FLAGS.VALUE_IS_RAW_STRING) else 0) | (if (o.VALUE_READONLY == 1) @intFromEnum(DBGPROP_ATTRIB_FLAGS.VALUE_READONLY) else 0) | (if (o.ACCESS_PUBLIC == 1) @intFromEnum(DBGPROP_ATTRIB_FLAGS.ACCESS_PUBLIC) else 0) | (if (o.ACCESS_PRIVATE == 1) @intFromEnum(DBGPROP_ATTRIB_FLAGS.ACCESS_PRIVATE) else 0) | (if (o.ACCESS_PROTECTED == 1) @intFromEnum(DBGPROP_ATTRIB_FLAGS.ACCESS_PROTECTED) else 0) | (if (o.ACCESS_FINAL == 1) @intFromEnum(DBGPROP_ATTRIB_FLAGS.ACCESS_FINAL) else 0) | (if (o.STORAGE_GLOBAL == 1) @intFromEnum(DBGPROP_ATTRIB_FLAGS.STORAGE_GLOBAL) else 0) | (if (o.STORAGE_STATIC == 1) @intFromEnum(DBGPROP_ATTRIB_FLAGS.STORAGE_STATIC) else 0) | (if (o.STORAGE_FIELD == 1) @intFromEnum(DBGPROP_ATTRIB_FLAGS.STORAGE_FIELD) else 0) | (if (o.STORAGE_VIRTUAL == 1) @intFromEnum(DBGPROP_ATTRIB_FLAGS.STORAGE_VIRTUAL) else 0) | (if (o.TYPE_IS_CONSTANT == 1) @intFromEnum(DBGPROP_ATTRIB_FLAGS.TYPE_IS_CONSTANT) else 0) | (if (o.TYPE_IS_SYNCHRONIZED == 1) @intFromEnum(DBGPROP_ATTRIB_FLAGS.TYPE_IS_SYNCHRONIZED) else 0) | (if (o.TYPE_IS_VOLATILE == 1) @intFromEnum(DBGPROP_ATTRIB_FLAGS.TYPE_IS_VOLATILE) else 0) | (if (o.HAS_EXTENDED_ATTRIBS == 1) @intFromEnum(DBGPROP_ATTRIB_FLAGS.HAS_EXTENDED_ATTRIBS) else 0) | (if (o.FRAME_INTRYBLOCK == 1) @intFromEnum(DBGPROP_ATTRIB_FLAGS.FRAME_INTRYBLOCK) else 0) | (if (o.FRAME_INCATCHBLOCK == 1) @intFromEnum(DBGPROP_ATTRIB_FLAGS.FRAME_INCATCHBLOCK) else 0) | (if (o.FRAME_INFINALLYBLOCK == 1) @intFromEnum(DBGPROP_ATTRIB_FLAGS.FRAME_INFINALLYBLOCK) else 0) | (if (o.VALUE_IS_RETURN_VALUE == 1) @intFromEnum(DBGPROP_ATTRIB_FLAGS.VALUE_IS_RETURN_VALUE) else 0) | (if (o.VALUE_PENDING_MUTATION == 1) @intFromEnum(DBGPROP_ATTRIB_FLAGS.VALUE_PENDING_MUTATION) else 0))); } }; pub const DBGPROP_ATTRIB_NO_ATTRIB = DBGPROP_ATTRIB_FLAGS.NO_ATTRIB; pub const DBGPROP_ATTRIB_VALUE_IS_INVALID = DBGPROP_ATTRIB_FLAGS.VALUE_IS_INVALID; pub const DBGPROP_ATTRIB_VALUE_IS_EXPANDABLE = DBGPROP_ATTRIB_FLAGS.VALUE_IS_EXPANDABLE; pub const DBGPROP_ATTRIB_VALUE_IS_FAKE = DBGPROP_ATTRIB_FLAGS.VALUE_IS_FAKE; pub const DBGPROP_ATTRIB_VALUE_IS_METHOD = DBGPROP_ATTRIB_FLAGS.VALUE_IS_METHOD; pub const DBGPROP_ATTRIB_VALUE_IS_EVENT = DBGPROP_ATTRIB_FLAGS.VALUE_IS_EVENT; pub const DBGPROP_ATTRIB_VALUE_IS_RAW_STRING = DBGPROP_ATTRIB_FLAGS.VALUE_IS_RAW_STRING; pub const DBGPROP_ATTRIB_VALUE_READONLY = DBGPROP_ATTRIB_FLAGS.VALUE_READONLY; pub const DBGPROP_ATTRIB_ACCESS_PUBLIC = DBGPROP_ATTRIB_FLAGS.ACCESS_PUBLIC; pub const DBGPROP_ATTRIB_ACCESS_PRIVATE = DBGPROP_ATTRIB_FLAGS.ACCESS_PRIVATE; pub const DBGPROP_ATTRIB_ACCESS_PROTECTED = DBGPROP_ATTRIB_FLAGS.ACCESS_PROTECTED; pub const DBGPROP_ATTRIB_ACCESS_FINAL = DBGPROP_ATTRIB_FLAGS.ACCESS_FINAL; pub const DBGPROP_ATTRIB_STORAGE_GLOBAL = DBGPROP_ATTRIB_FLAGS.STORAGE_GLOBAL; pub const DBGPROP_ATTRIB_STORAGE_STATIC = DBGPROP_ATTRIB_FLAGS.STORAGE_STATIC; pub const DBGPROP_ATTRIB_STORAGE_FIELD = DBGPROP_ATTRIB_FLAGS.STORAGE_FIELD; pub const DBGPROP_ATTRIB_STORAGE_VIRTUAL = DBGPROP_ATTRIB_FLAGS.STORAGE_VIRTUAL; pub const DBGPROP_ATTRIB_TYPE_IS_CONSTANT = DBGPROP_ATTRIB_FLAGS.TYPE_IS_CONSTANT; pub const DBGPROP_ATTRIB_TYPE_IS_SYNCHRONIZED = DBGPROP_ATTRIB_FLAGS.TYPE_IS_SYNCHRONIZED; pub const DBGPROP_ATTRIB_TYPE_IS_VOLATILE = DBGPROP_ATTRIB_FLAGS.TYPE_IS_VOLATILE; pub const DBGPROP_ATTRIB_HAS_EXTENDED_ATTRIBS = DBGPROP_ATTRIB_FLAGS.HAS_EXTENDED_ATTRIBS; pub const DBGPROP_ATTRIB_FRAME_INTRYBLOCK = DBGPROP_ATTRIB_FLAGS.FRAME_INTRYBLOCK; pub const DBGPROP_ATTRIB_FRAME_INCATCHBLOCK = DBGPROP_ATTRIB_FLAGS.FRAME_INCATCHBLOCK; pub const DBGPROP_ATTRIB_FRAME_INFINALLYBLOCK = DBGPROP_ATTRIB_FLAGS.FRAME_INFINALLYBLOCK; pub const DBGPROP_ATTRIB_VALUE_IS_RETURN_VALUE = DBGPROP_ATTRIB_FLAGS.VALUE_IS_RETURN_VALUE; pub const DBGPROP_ATTRIB_VALUE_PENDING_MUTATION = DBGPROP_ATTRIB_FLAGS.VALUE_PENDING_MUTATION; pub const DBGPROP_INFO = enum(u32) { NAME = 1, TYPE = 2, VALUE = 4, FULLNAME = 32, ATTRIBUTES = 8, DEBUGPROP = 16, BEAUTIFY = 33554432, CALLTOSTRING = 67108864, AUTOEXPAND = 134217728, _, pub fn initFlags(o: struct { NAME: u1 = 0, TYPE: u1 = 0, VALUE: u1 = 0, FULLNAME: u1 = 0, ATTRIBUTES: u1 = 0, DEBUGPROP: u1 = 0, BEAUTIFY: u1 = 0, CALLTOSTRING: u1 = 0, AUTOEXPAND: u1 = 0, }) DBGPROP_INFO { return @as(DBGPROP_INFO, @enumFromInt((if (o.NAME == 1) @intFromEnum(DBGPROP_INFO.NAME) else 0) | (if (o.TYPE == 1) @intFromEnum(DBGPROP_INFO.TYPE) else 0) | (if (o.VALUE == 1) @intFromEnum(DBGPROP_INFO.VALUE) else 0) | (if (o.FULLNAME == 1) @intFromEnum(DBGPROP_INFO.FULLNAME) else 0) | (if (o.ATTRIBUTES == 1) @intFromEnum(DBGPROP_INFO.ATTRIBUTES) else 0) | (if (o.DEBUGPROP == 1) @intFromEnum(DBGPROP_INFO.DEBUGPROP) else 0) | (if (o.BEAUTIFY == 1) @intFromEnum(DBGPROP_INFO.BEAUTIFY) else 0) | (if (o.CALLTOSTRING == 1) @intFromEnum(DBGPROP_INFO.CALLTOSTRING) else 0) | (if (o.AUTOEXPAND == 1) @intFromEnum(DBGPROP_INFO.AUTOEXPAND) else 0))); } }; pub const DBGPROP_INFO_NAME = DBGPROP_INFO.NAME; pub const DBGPROP_INFO_TYPE = DBGPROP_INFO.TYPE; pub const DBGPROP_INFO_VALUE = DBGPROP_INFO.VALUE; pub const DBGPROP_INFO_FULLNAME = DBGPROP_INFO.FULLNAME; pub const DBGPROP_INFO_ATTRIBUTES = DBGPROP_INFO.ATTRIBUTES; pub const DBGPROP_INFO_DEBUGPROP = DBGPROP_INFO.DEBUGPROP; pub const DBGPROP_INFO_BEAUTIFY = DBGPROP_INFO.BEAUTIFY; pub const DBGPROP_INFO_CALLTOSTRING = DBGPROP_INFO.CALLTOSTRING; pub const DBGPROP_INFO_AUTOEXPAND = DBGPROP_INFO.AUTOEXPAND; pub const OBJECT_ATTRIB_FLAG = enum(u32) { NO_ATTRIB = 0, NO_NAME = 1, NO_TYPE = 2, NO_VALUE = 4, VALUE_IS_INVALID = 8, VALUE_IS_OBJECT = 16, VALUE_IS_ENUM = 32, VALUE_IS_CUSTOM = 64, OBJECT_IS_EXPANDABLE = 112, VALUE_HAS_CODE = 128, TYPE_IS_OBJECT = 256, TYPE_HAS_CODE = 512, // TYPE_IS_EXPANDABLE = 256, this enum value conflicts with TYPE_IS_OBJECT SLOT_IS_CATEGORY = 1024, VALUE_READONLY = 2048, ACCESS_PUBLIC = 4096, ACCESS_PRIVATE = 8192, ACCESS_PROTECTED = 16384, ACCESS_FINAL = 32768, STORAGE_GLOBAL = 65536, STORAGE_STATIC = 131072, STORAGE_FIELD = 262144, STORAGE_VIRTUAL = 524288, TYPE_IS_CONSTANT = 1048576, TYPE_IS_SYNCHRONIZED = 2097152, TYPE_IS_VOLATILE = 4194304, HAS_EXTENDED_ATTRIBS = 8388608, IS_CLASS = 16777216, IS_FUNCTION = 33554432, IS_VARIABLE = 67108864, IS_PROPERTY = 134217728, IS_MACRO = 268435456, IS_TYPE = 536870912, IS_INHERITED = 1073741824, IS_INTERFACE = 2147483648, _, pub fn initFlags(o: struct { NO_ATTRIB: u1 = 0, NO_NAME: u1 = 0, NO_TYPE: u1 = 0, NO_VALUE: u1 = 0, VALUE_IS_INVALID: u1 = 0, VALUE_IS_OBJECT: u1 = 0, VALUE_IS_ENUM: u1 = 0, VALUE_IS_CUSTOM: u1 = 0, OBJECT_IS_EXPANDABLE: u1 = 0, VALUE_HAS_CODE: u1 = 0, TYPE_IS_OBJECT: u1 = 0, TYPE_HAS_CODE: u1 = 0, SLOT_IS_CATEGORY: u1 = 0, VALUE_READONLY: u1 = 0, ACCESS_PUBLIC: u1 = 0, ACCESS_PRIVATE: u1 = 0, ACCESS_PROTECTED: u1 = 0, ACCESS_FINAL: u1 = 0, STORAGE_GLOBAL: u1 = 0, STORAGE_STATIC: u1 = 0, STORAGE_FIELD: u1 = 0, STORAGE_VIRTUAL: u1 = 0, TYPE_IS_CONSTANT: u1 = 0, TYPE_IS_SYNCHRONIZED: u1 = 0, TYPE_IS_VOLATILE: u1 = 0, HAS_EXTENDED_ATTRIBS: u1 = 0, IS_CLASS: u1 = 0, IS_FUNCTION: u1 = 0, IS_VARIABLE: u1 = 0, IS_PROPERTY: u1 = 0, IS_MACRO: u1 = 0, IS_TYPE: u1 = 0, IS_INHERITED: u1 = 0, IS_INTERFACE: u1 = 0, }) OBJECT_ATTRIB_FLAG { return @as(OBJECT_ATTRIB_FLAG, @enumFromInt((if (o.NO_ATTRIB == 1) @intFromEnum(OBJECT_ATTRIB_FLAG.NO_ATTRIB) else 0) | (if (o.NO_NAME == 1) @intFromEnum(OBJECT_ATTRIB_FLAG.NO_NAME) else 0) | (if (o.NO_TYPE == 1) @intFromEnum(OBJECT_ATTRIB_FLAG.NO_TYPE) else 0) | (if (o.NO_VALUE == 1) @intFromEnum(OBJECT_ATTRIB_FLAG.NO_VALUE) else 0) | (if (o.VALUE_IS_INVALID == 1) @intFromEnum(OBJECT_ATTRIB_FLAG.VALUE_IS_INVALID) else 0) | (if (o.VALUE_IS_OBJECT == 1) @intFromEnum(OBJECT_ATTRIB_FLAG.VALUE_IS_OBJECT) else 0) | (if (o.VALUE_IS_ENUM == 1) @intFromEnum(OBJECT_ATTRIB_FLAG.VALUE_IS_ENUM) else 0) | (if (o.VALUE_IS_CUSTOM == 1) @intFromEnum(OBJECT_ATTRIB_FLAG.VALUE_IS_CUSTOM) else 0) | (if (o.OBJECT_IS_EXPANDABLE == 1) @intFromEnum(OBJECT_ATTRIB_FLAG.OBJECT_IS_EXPANDABLE) else 0) | (if (o.VALUE_HAS_CODE == 1) @intFromEnum(OBJECT_ATTRIB_FLAG.VALUE_HAS_CODE) else 0) | (if (o.TYPE_IS_OBJECT == 1) @intFromEnum(OBJECT_ATTRIB_FLAG.TYPE_IS_OBJECT) else 0) | (if (o.TYPE_HAS_CODE == 1) @intFromEnum(OBJECT_ATTRIB_FLAG.TYPE_HAS_CODE) else 0) | (if (o.SLOT_IS_CATEGORY == 1) @intFromEnum(OBJECT_ATTRIB_FLAG.SLOT_IS_CATEGORY) else 0) | (if (o.VALUE_READONLY == 1) @intFromEnum(OBJECT_ATTRIB_FLAG.VALUE_READONLY) else 0) | (if (o.ACCESS_PUBLIC == 1) @intFromEnum(OBJECT_ATTRIB_FLAG.ACCESS_PUBLIC) else 0) | (if (o.ACCESS_PRIVATE == 1) @intFromEnum(OBJECT_ATTRIB_FLAG.ACCESS_PRIVATE) else 0) | (if (o.ACCESS_PROTECTED == 1) @intFromEnum(OBJECT_ATTRIB_FLAG.ACCESS_PROTECTED) else 0) | (if (o.ACCESS_FINAL == 1) @intFromEnum(OBJECT_ATTRIB_FLAG.ACCESS_FINAL) else 0) | (if (o.STORAGE_GLOBAL == 1) @intFromEnum(OBJECT_ATTRIB_FLAG.STORAGE_GLOBAL) else 0) | (if (o.STORAGE_STATIC == 1) @intFromEnum(OBJECT_ATTRIB_FLAG.STORAGE_STATIC) else 0) | (if (o.STORAGE_FIELD == 1) @intFromEnum(OBJECT_ATTRIB_FLAG.STORAGE_FIELD) else 0) | (if (o.STORAGE_VIRTUAL == 1) @intFromEnum(OBJECT_ATTRIB_FLAG.STORAGE_VIRTUAL) else 0) | (if (o.TYPE_IS_CONSTANT == 1) @intFromEnum(OBJECT_ATTRIB_FLAG.TYPE_IS_CONSTANT) else 0) | (if (o.TYPE_IS_SYNCHRONIZED == 1) @intFromEnum(OBJECT_ATTRIB_FLAG.TYPE_IS_SYNCHRONIZED) else 0) | (if (o.TYPE_IS_VOLATILE == 1) @intFromEnum(OBJECT_ATTRIB_FLAG.TYPE_IS_VOLATILE) else 0) | (if (o.HAS_EXTENDED_ATTRIBS == 1) @intFromEnum(OBJECT_ATTRIB_FLAG.HAS_EXTENDED_ATTRIBS) else 0) | (if (o.IS_CLASS == 1) @intFromEnum(OBJECT_ATTRIB_FLAG.IS_CLASS) else 0) | (if (o.IS_FUNCTION == 1) @intFromEnum(OBJECT_ATTRIB_FLAG.IS_FUNCTION) else 0) | (if (o.IS_VARIABLE == 1) @intFromEnum(OBJECT_ATTRIB_FLAG.IS_VARIABLE) else 0) | (if (o.IS_PROPERTY == 1) @intFromEnum(OBJECT_ATTRIB_FLAG.IS_PROPERTY) else 0) | (if (o.IS_MACRO == 1) @intFromEnum(OBJECT_ATTRIB_FLAG.IS_MACRO) else 0) | (if (o.IS_TYPE == 1) @intFromEnum(OBJECT_ATTRIB_FLAG.IS_TYPE) else 0) | (if (o.IS_INHERITED == 1) @intFromEnum(OBJECT_ATTRIB_FLAG.IS_INHERITED) else 0) | (if (o.IS_INTERFACE == 1) @intFromEnum(OBJECT_ATTRIB_FLAG.IS_INTERFACE) else 0))); } }; pub const OBJECT_ATTRIB_NO_ATTRIB = OBJECT_ATTRIB_FLAG.NO_ATTRIB; pub const OBJECT_ATTRIB_NO_NAME = OBJECT_ATTRIB_FLAG.NO_NAME; pub const OBJECT_ATTRIB_NO_TYPE = OBJECT_ATTRIB_FLAG.NO_TYPE; pub const OBJECT_ATTRIB_NO_VALUE = OBJECT_ATTRIB_FLAG.NO_VALUE; pub const OBJECT_ATTRIB_VALUE_IS_INVALID = OBJECT_ATTRIB_FLAG.VALUE_IS_INVALID; pub const OBJECT_ATTRIB_VALUE_IS_OBJECT = OBJECT_ATTRIB_FLAG.VALUE_IS_OBJECT; pub const OBJECT_ATTRIB_VALUE_IS_ENUM = OBJECT_ATTRIB_FLAG.VALUE_IS_ENUM; pub const OBJECT_ATTRIB_VALUE_IS_CUSTOM = OBJECT_ATTRIB_FLAG.VALUE_IS_CUSTOM; pub const OBJECT_ATTRIB_OBJECT_IS_EXPANDABLE = OBJECT_ATTRIB_FLAG.OBJECT_IS_EXPANDABLE; pub const OBJECT_ATTRIB_VALUE_HAS_CODE = OBJECT_ATTRIB_FLAG.VALUE_HAS_CODE; pub const OBJECT_ATTRIB_TYPE_IS_OBJECT = OBJECT_ATTRIB_FLAG.TYPE_IS_OBJECT; pub const OBJECT_ATTRIB_TYPE_HAS_CODE = OBJECT_ATTRIB_FLAG.TYPE_HAS_CODE; pub const OBJECT_ATTRIB_TYPE_IS_EXPANDABLE = OBJECT_ATTRIB_FLAG.TYPE_IS_OBJECT; pub const OBJECT_ATTRIB_SLOT_IS_CATEGORY = OBJECT_ATTRIB_FLAG.SLOT_IS_CATEGORY; pub const OBJECT_ATTRIB_VALUE_READONLY = OBJECT_ATTRIB_FLAG.VALUE_READONLY; pub const OBJECT_ATTRIB_ACCESS_PUBLIC = OBJECT_ATTRIB_FLAG.ACCESS_PUBLIC; pub const OBJECT_ATTRIB_ACCESS_PRIVATE = OBJECT_ATTRIB_FLAG.ACCESS_PRIVATE; pub const OBJECT_ATTRIB_ACCESS_PROTECTED = OBJECT_ATTRIB_FLAG.ACCESS_PROTECTED; pub const OBJECT_ATTRIB_ACCESS_FINAL = OBJECT_ATTRIB_FLAG.ACCESS_FINAL; pub const OBJECT_ATTRIB_STORAGE_GLOBAL = OBJECT_ATTRIB_FLAG.STORAGE_GLOBAL; pub const OBJECT_ATTRIB_STORAGE_STATIC = OBJECT_ATTRIB_FLAG.STORAGE_STATIC; pub const OBJECT_ATTRIB_STORAGE_FIELD = OBJECT_ATTRIB_FLAG.STORAGE_FIELD; pub const OBJECT_ATTRIB_STORAGE_VIRTUAL = OBJECT_ATTRIB_FLAG.STORAGE_VIRTUAL; pub const OBJECT_ATTRIB_TYPE_IS_CONSTANT = OBJECT_ATTRIB_FLAG.TYPE_IS_CONSTANT; pub const OBJECT_ATTRIB_TYPE_IS_SYNCHRONIZED = OBJECT_ATTRIB_FLAG.TYPE_IS_SYNCHRONIZED; pub const OBJECT_ATTRIB_TYPE_IS_VOLATILE = OBJECT_ATTRIB_FLAG.TYPE_IS_VOLATILE; pub const OBJECT_ATTRIB_HAS_EXTENDED_ATTRIBS = OBJECT_ATTRIB_FLAG.HAS_EXTENDED_ATTRIBS; pub const OBJECT_ATTRIB_IS_CLASS = OBJECT_ATTRIB_FLAG.IS_CLASS; pub const OBJECT_ATTRIB_IS_FUNCTION = OBJECT_ATTRIB_FLAG.IS_FUNCTION; pub const OBJECT_ATTRIB_IS_VARIABLE = OBJECT_ATTRIB_FLAG.IS_VARIABLE; pub const OBJECT_ATTRIB_IS_PROPERTY = OBJECT_ATTRIB_FLAG.IS_PROPERTY; pub const OBJECT_ATTRIB_IS_MACRO = OBJECT_ATTRIB_FLAG.IS_MACRO; pub const OBJECT_ATTRIB_IS_TYPE = OBJECT_ATTRIB_FLAG.IS_TYPE; pub const OBJECT_ATTRIB_IS_INHERITED = OBJECT_ATTRIB_FLAG.IS_INHERITED; pub const OBJECT_ATTRIB_IS_INTERFACE = OBJECT_ATTRIB_FLAG.IS_INTERFACE; pub const PROP_INFO_FLAGS = enum(i32) { NAME = 1, TYPE = 2, VALUE = 4, FULLNAME = 32, ATTRIBUTES = 8, DEBUGPROP = 16, AUTOEXPAND = 134217728, }; pub const PROP_INFO_NAME = PROP_INFO_FLAGS.NAME; pub const PROP_INFO_TYPE = PROP_INFO_FLAGS.TYPE; pub const PROP_INFO_VALUE = PROP_INFO_FLAGS.VALUE; pub const PROP_INFO_FULLNAME = PROP_INFO_FLAGS.FULLNAME; pub const PROP_INFO_ATTRIBUTES = PROP_INFO_FLAGS.ATTRIBUTES; pub const PROP_INFO_DEBUGPROP = PROP_INFO_FLAGS.DEBUGPROP; pub const PROP_INFO_AUTOEXPAND = PROP_INFO_FLAGS.AUTOEXPAND; pub const DebugPropertyInfo = extern struct { m_dwValidFields: u32, m_bstrName: ?BSTR, m_bstrType: ?BSTR, m_bstrValue: ?BSTR, m_bstrFullName: ?BSTR, m_dwAttrib: u32, m_pDebugProp: ?*IDebugProperty, }; pub const EX_PROP_INFO_FLAGS = enum(i32) { ID = 256, NTYPE = 512, NVALUE = 1024, LOCKBYTES = 2048, DEBUGEXTPROP = 4096, }; pub const EX_PROP_INFO_ID = EX_PROP_INFO_FLAGS.ID; pub const EX_PROP_INFO_NTYPE = EX_PROP_INFO_FLAGS.NTYPE; pub const EX_PROP_INFO_NVALUE = EX_PROP_INFO_FLAGS.NVALUE; pub const EX_PROP_INFO_LOCKBYTES = EX_PROP_INFO_FLAGS.LOCKBYTES; pub const EX_PROP_INFO_DEBUGEXTPROP = EX_PROP_INFO_FLAGS.DEBUGEXTPROP; pub const ExtendedDebugPropertyInfo = extern struct { dwValidFields: u32, pszName: ?PWSTR, pszType: ?PWSTR, pszValue: ?PWSTR, pszFullName: ?PWSTR, dwAttrib: u32, pDebugProp: ?*IDebugProperty, nDISPID: u32, nType: u32, varValue: VARIANT, plbValue: ?*ILockBytes, pDebugExtProp: ?*IDebugExtendedProperty, }; const IID_IDebugProperty_Value = Guid.initString("51973c50-cb0c-11d0-b5c9-00a0244a0e7a"); pub const IID_IDebugProperty = &IID_IDebugProperty_Value; pub const IDebugProperty = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, GetPropertyInfo: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugProperty, dwFieldSpec: u32, nRadix: u32, pPropertyInfo: ?*DebugPropertyInfo, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugProperty, dwFieldSpec: u32, nRadix: u32, pPropertyInfo: ?*DebugPropertyInfo, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetExtendedInfo: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugProperty, cInfos: u32, rgguidExtendedInfo: [*]Guid, rgvar: [*]VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugProperty, cInfos: u32, rgguidExtendedInfo: [*]Guid, rgvar: [*]VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetValueAsString: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugProperty, pszValue: ?[*:0]const u16, nRadix: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugProperty, pszValue: ?[*:0]const u16, nRadix: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, EnumMembers: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugProperty, dwFieldSpec: u32, nRadix: u32, refiid: ?*const Guid, ppepi: ?*?*IEnumDebugPropertyInfo, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugProperty, dwFieldSpec: u32, nRadix: u32, refiid: ?*const Guid, ppepi: ?*?*IEnumDebugPropertyInfo, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetParent: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugProperty, ppDebugProp: ?*?*IDebugProperty, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugProperty, ppDebugProp: ?*?*IDebugProperty, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugProperty_GetPropertyInfo(self: *const T, dwFieldSpec: u32, nRadix: u32, pPropertyInfo: ?*DebugPropertyInfo) HRESULT { return @as(*const IDebugProperty.VTable, @ptrCast(self.vtable)).GetPropertyInfo(@as(*const IDebugProperty, @ptrCast(self)), dwFieldSpec, nRadix, pPropertyInfo); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugProperty_GetExtendedInfo(self: *const T, cInfos: u32, rgguidExtendedInfo: [*]Guid, rgvar: [*]VARIANT) HRESULT { return @as(*const IDebugProperty.VTable, @ptrCast(self.vtable)).GetExtendedInfo(@as(*const IDebugProperty, @ptrCast(self)), cInfos, rgguidExtendedInfo, rgvar); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugProperty_SetValueAsString(self: *const T, pszValue: ?[*:0]const u16, nRadix: u32) HRESULT { return @as(*const IDebugProperty.VTable, @ptrCast(self.vtable)).SetValueAsString(@as(*const IDebugProperty, @ptrCast(self)), pszValue, nRadix); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugProperty_EnumMembers(self: *const T, dwFieldSpec: u32, nRadix: u32, refiid: ?*const Guid, ppepi: ?*?*IEnumDebugPropertyInfo) HRESULT { return @as(*const IDebugProperty.VTable, @ptrCast(self.vtable)).EnumMembers(@as(*const IDebugProperty, @ptrCast(self)), dwFieldSpec, nRadix, refiid, ppepi); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugProperty_GetParent(self: *const T, ppDebugProp: ?*?*IDebugProperty) HRESULT { return @as(*const IDebugProperty.VTable, @ptrCast(self.vtable)).GetParent(@as(*const IDebugProperty, @ptrCast(self)), ppDebugProp); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IEnumDebugPropertyInfo_Value = Guid.initString("51973c51-cb0c-11d0-b5c9-00a0244a0e7a"); pub const IID_IEnumDebugPropertyInfo = &IID_IEnumDebugPropertyInfo_Value; pub const IEnumDebugPropertyInfo = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, Next: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IEnumDebugPropertyInfo, celt: u32, pi: [*]DebugPropertyInfo, pcEltsfetched: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IEnumDebugPropertyInfo, celt: u32, pi: [*]DebugPropertyInfo, pcEltsfetched: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Skip: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IEnumDebugPropertyInfo, celt: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IEnumDebugPropertyInfo, celt: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Reset: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IEnumDebugPropertyInfo, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IEnumDebugPropertyInfo, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Clone: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IEnumDebugPropertyInfo, ppepi: ?*?*IEnumDebugPropertyInfo, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IEnumDebugPropertyInfo, ppepi: ?*?*IEnumDebugPropertyInfo, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetCount: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IEnumDebugPropertyInfo, pcelt: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IEnumDebugPropertyInfo, pcelt: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IEnumDebugPropertyInfo_Next(self: *const T, celt: u32, pi: [*]DebugPropertyInfo, pcEltsfetched: ?*u32) HRESULT { return @as(*const IEnumDebugPropertyInfo.VTable, @ptrCast(self.vtable)).Next(@as(*const IEnumDebugPropertyInfo, @ptrCast(self)), celt, pi, pcEltsfetched); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IEnumDebugPropertyInfo_Skip(self: *const T, celt: u32) HRESULT { return @as(*const IEnumDebugPropertyInfo.VTable, @ptrCast(self.vtable)).Skip(@as(*const IEnumDebugPropertyInfo, @ptrCast(self)), celt); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IEnumDebugPropertyInfo_Reset(self: *const T) HRESULT { return @as(*const IEnumDebugPropertyInfo.VTable, @ptrCast(self.vtable)).Reset(@as(*const IEnumDebugPropertyInfo, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IEnumDebugPropertyInfo_Clone(self: *const T, ppepi: ?*?*IEnumDebugPropertyInfo) HRESULT { return @as(*const IEnumDebugPropertyInfo.VTable, @ptrCast(self.vtable)).Clone(@as(*const IEnumDebugPropertyInfo, @ptrCast(self)), ppepi); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IEnumDebugPropertyInfo_GetCount(self: *const T, pcelt: ?*u32) HRESULT { return @as(*const IEnumDebugPropertyInfo.VTable, @ptrCast(self.vtable)).GetCount(@as(*const IEnumDebugPropertyInfo, @ptrCast(self)), pcelt); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IDebugExtendedProperty_Value = Guid.initString("51973c52-cb0c-11d0-b5c9-00a0244a0e7a"); pub const IID_IDebugExtendedProperty = &IID_IDebugExtendedProperty_Value; pub const IDebugExtendedProperty = extern struct { pub const VTable = extern struct { base: IDebugProperty.VTable, GetExtendedPropertyInfo: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugExtendedProperty, dwFieldSpec: u32, nRadix: u32, pExtendedPropertyInfo: ?*ExtendedDebugPropertyInfo, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugExtendedProperty, dwFieldSpec: u32, nRadix: u32, pExtendedPropertyInfo: ?*ExtendedDebugPropertyInfo, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, EnumExtendedMembers: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugExtendedProperty, dwFieldSpec: u32, nRadix: u32, ppeepi: ?*?*IEnumDebugExtendedPropertyInfo, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugExtendedProperty, dwFieldSpec: u32, nRadix: u32, ppeepi: ?*?*IEnumDebugExtendedPropertyInfo, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IDebugProperty.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugExtendedProperty_GetExtendedPropertyInfo(self: *const T, dwFieldSpec: u32, nRadix: u32, pExtendedPropertyInfo: ?*ExtendedDebugPropertyInfo) HRESULT { return @as(*const IDebugExtendedProperty.VTable, @ptrCast(self.vtable)).GetExtendedPropertyInfo(@as(*const IDebugExtendedProperty, @ptrCast(self)), dwFieldSpec, nRadix, pExtendedPropertyInfo); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugExtendedProperty_EnumExtendedMembers(self: *const T, dwFieldSpec: u32, nRadix: u32, ppeepi: ?*?*IEnumDebugExtendedPropertyInfo) HRESULT { return @as(*const IDebugExtendedProperty.VTable, @ptrCast(self.vtable)).EnumExtendedMembers(@as(*const IDebugExtendedProperty, @ptrCast(self)), dwFieldSpec, nRadix, ppeepi); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IEnumDebugExtendedPropertyInfo_Value = Guid.initString("51973c53-cb0c-11d0-b5c9-00a0244a0e7a"); pub const IID_IEnumDebugExtendedPropertyInfo = &IID_IEnumDebugExtendedPropertyInfo_Value; pub const IEnumDebugExtendedPropertyInfo = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, Next: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IEnumDebugExtendedPropertyInfo, celt: u32, rgExtendedPropertyInfo: [*]ExtendedDebugPropertyInfo, pceltFetched: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IEnumDebugExtendedPropertyInfo, celt: u32, rgExtendedPropertyInfo: [*]ExtendedDebugPropertyInfo, pceltFetched: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Skip: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IEnumDebugExtendedPropertyInfo, celt: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IEnumDebugExtendedPropertyInfo, celt: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Reset: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IEnumDebugExtendedPropertyInfo, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IEnumDebugExtendedPropertyInfo, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Clone: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IEnumDebugExtendedPropertyInfo, pedpe: ?*?*IEnumDebugExtendedPropertyInfo, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IEnumDebugExtendedPropertyInfo, pedpe: ?*?*IEnumDebugExtendedPropertyInfo, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetCount: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IEnumDebugExtendedPropertyInfo, pcelt: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IEnumDebugExtendedPropertyInfo, pcelt: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IEnumDebugExtendedPropertyInfo_Next(self: *const T, celt: u32, rgExtendedPropertyInfo: [*]ExtendedDebugPropertyInfo, pceltFetched: ?*u32) HRESULT { return @as(*const IEnumDebugExtendedPropertyInfo.VTable, @ptrCast(self.vtable)).Next(@as(*const IEnumDebugExtendedPropertyInfo, @ptrCast(self)), celt, rgExtendedPropertyInfo, pceltFetched); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IEnumDebugExtendedPropertyInfo_Skip(self: *const T, celt: u32) HRESULT { return @as(*const IEnumDebugExtendedPropertyInfo.VTable, @ptrCast(self.vtable)).Skip(@as(*const IEnumDebugExtendedPropertyInfo, @ptrCast(self)), celt); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IEnumDebugExtendedPropertyInfo_Reset(self: *const T) HRESULT { return @as(*const IEnumDebugExtendedPropertyInfo.VTable, @ptrCast(self.vtable)).Reset(@as(*const IEnumDebugExtendedPropertyInfo, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IEnumDebugExtendedPropertyInfo_Clone(self: *const T, pedpe: ?*?*IEnumDebugExtendedPropertyInfo) HRESULT { return @as(*const IEnumDebugExtendedPropertyInfo.VTable, @ptrCast(self.vtable)).Clone(@as(*const IEnumDebugExtendedPropertyInfo, @ptrCast(self)), pedpe); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IEnumDebugExtendedPropertyInfo_GetCount(self: *const T, pcelt: ?*u32) HRESULT { return @as(*const IEnumDebugExtendedPropertyInfo.VTable, @ptrCast(self.vtable)).GetCount(@as(*const IEnumDebugExtendedPropertyInfo, @ptrCast(self)), pcelt); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IPerPropertyBrowsing2_Value = Guid.initString("51973c54-cb0c-11d0-b5c9-00a0244a0e7a"); pub const IID_IPerPropertyBrowsing2 = &IID_IPerPropertyBrowsing2_Value; pub const IPerPropertyBrowsing2 = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, GetDisplayString: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IPerPropertyBrowsing2, dispid: i32, pBstr: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IPerPropertyBrowsing2, dispid: i32, pBstr: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, MapPropertyToPage: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IPerPropertyBrowsing2, dispid: i32, pClsidPropPage: ?*Guid, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IPerPropertyBrowsing2, dispid: i32, pClsidPropPage: ?*Guid, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetPredefinedStrings: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IPerPropertyBrowsing2, dispid: i32, pCaStrings: ?*CALPOLESTR, pCaCookies: ?*CADWORD, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IPerPropertyBrowsing2, dispid: i32, pCaStrings: ?*CALPOLESTR, pCaCookies: ?*CADWORD, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetPredefinedValue: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IPerPropertyBrowsing2, dispid: i32, dwCookie: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IPerPropertyBrowsing2, dispid: i32, dwCookie: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPerPropertyBrowsing2_GetDisplayString(self: *const T, dispid: i32, pBstr: ?*?BSTR) HRESULT { return @as(*const IPerPropertyBrowsing2.VTable, @ptrCast(self.vtable)).GetDisplayString(@as(*const IPerPropertyBrowsing2, @ptrCast(self)), dispid, pBstr); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPerPropertyBrowsing2_MapPropertyToPage(self: *const T, dispid: i32, pClsidPropPage: ?*Guid) HRESULT { return @as(*const IPerPropertyBrowsing2.VTable, @ptrCast(self.vtable)).MapPropertyToPage(@as(*const IPerPropertyBrowsing2, @ptrCast(self)), dispid, pClsidPropPage); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPerPropertyBrowsing2_GetPredefinedStrings(self: *const T, dispid: i32, pCaStrings: ?*CALPOLESTR, pCaCookies: ?*CADWORD) HRESULT { return @as(*const IPerPropertyBrowsing2.VTable, @ptrCast(self.vtable)).GetPredefinedStrings(@as(*const IPerPropertyBrowsing2, @ptrCast(self)), dispid, pCaStrings, pCaCookies); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPerPropertyBrowsing2_SetPredefinedValue(self: *const T, dispid: i32, dwCookie: u32) HRESULT { return @as(*const IPerPropertyBrowsing2.VTable, @ptrCast(self.vtable)).SetPredefinedValue(@as(*const IPerPropertyBrowsing2, @ptrCast(self)), dispid, dwCookie); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IDebugPropertyEnumType_All_Value = Guid.initString("51973c55-cb0c-11d0-b5c9-00a0244a0e7a"); pub const IID_IDebugPropertyEnumType_All = &IID_IDebugPropertyEnumType_All_Value; pub const IDebugPropertyEnumType_All = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, GetName: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugPropertyEnumType_All, __MIDL__IDebugPropertyEnumType_All0000: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugPropertyEnumType_All, __MIDL__IDebugPropertyEnumType_All0000: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugPropertyEnumType_All_GetName(self: *const T, __MIDL__IDebugPropertyEnumType_All0000: ?*?BSTR) HRESULT { return @as(*const IDebugPropertyEnumType_All.VTable, @ptrCast(self.vtable)).GetName(@as(*const IDebugPropertyEnumType_All, @ptrCast(self)), __MIDL__IDebugPropertyEnumType_All0000); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IDebugPropertyEnumType_Locals_Value = Guid.initString("51973c56-cb0c-11d0-b5c9-00a0244a0e7a"); pub const IID_IDebugPropertyEnumType_Locals = &IID_IDebugPropertyEnumType_Locals_Value; pub const IDebugPropertyEnumType_Locals = extern struct { pub const VTable = extern struct { base: IDebugPropertyEnumType_All.VTable, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IDebugPropertyEnumType_All.MethodMixin(T); }; } pub usingnamespace MethodMixin(@This()); }; const IID_IDebugPropertyEnumType_Arguments_Value = Guid.initString("51973c57-cb0c-11d0-b5c9-00a0244a0e7a"); pub const IID_IDebugPropertyEnumType_Arguments = &IID_IDebugPropertyEnumType_Arguments_Value; pub const IDebugPropertyEnumType_Arguments = extern struct { pub const VTable = extern struct { base: IDebugPropertyEnumType_All.VTable, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IDebugPropertyEnumType_All.MethodMixin(T); }; } pub usingnamespace MethodMixin(@This()); }; const IID_IDebugPropertyEnumType_LocalsPlusArgs_Value = Guid.initString("51973c58-cb0c-11d0-b5c9-00a0244a0e7a"); pub const IID_IDebugPropertyEnumType_LocalsPlusArgs = &IID_IDebugPropertyEnumType_LocalsPlusArgs_Value; pub const IDebugPropertyEnumType_LocalsPlusArgs = extern struct { pub const VTable = extern struct { base: IDebugPropertyEnumType_All.VTable, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IDebugPropertyEnumType_All.MethodMixin(T); }; } pub usingnamespace MethodMixin(@This()); }; const IID_IDebugPropertyEnumType_Registers_Value = Guid.initString("51973c59-cb0c-11d0-b5c9-00a0244a0e7a"); pub const IID_IDebugPropertyEnumType_Registers = &IID_IDebugPropertyEnumType_Registers_Value; pub const IDebugPropertyEnumType_Registers = extern struct { pub const VTable = extern struct { base: IDebugPropertyEnumType_All.VTable, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IDebugPropertyEnumType_All.MethodMixin(T); }; } pub usingnamespace MethodMixin(@This()); }; pub const BREAKPOINT_STATE = enum(i32) { DELETED = 0, DISABLED = 1, ENABLED = 2, }; pub const BREAKPOINT_DELETED = BREAKPOINT_STATE.DELETED; pub const BREAKPOINT_DISABLED = BREAKPOINT_STATE.DISABLED; pub const BREAKPOINT_ENABLED = BREAKPOINT_STATE.ENABLED; pub const BREAKREASON = enum(i32) { STEP = 0, BREAKPOINT = 1, DEBUGGER_BLOCK = 2, HOST_INITIATED = 3, LANGUAGE_INITIATED = 4, DEBUGGER_HALT = 5, ERROR = 6, JIT = 7, MUTATION_BREAKPOINT = 8, }; pub const BREAKREASON_STEP = BREAKREASON.STEP; pub const BREAKREASON_BREAKPOINT = BREAKREASON.BREAKPOINT; pub const BREAKREASON_DEBUGGER_BLOCK = BREAKREASON.DEBUGGER_BLOCK; pub const BREAKREASON_HOST_INITIATED = BREAKREASON.HOST_INITIATED; pub const BREAKREASON_LANGUAGE_INITIATED = BREAKREASON.LANGUAGE_INITIATED; pub const BREAKREASON_DEBUGGER_HALT = BREAKREASON.DEBUGGER_HALT; pub const BREAKREASON_ERROR = BREAKREASON.ERROR; pub const BREAKREASON_JIT = BREAKREASON.JIT; pub const BREAKREASON_MUTATION_BREAKPOINT = BREAKREASON.MUTATION_BREAKPOINT; pub const BREAKRESUME_ACTION = enum(i32) { ABORT = 0, CONTINUE = 1, STEP_INTO = 2, STEP_OVER = 3, STEP_OUT = 4, IGNORE = 5, STEP_DOCUMENT = 6, }; pub const BREAKRESUMEACTION_ABORT = BREAKRESUME_ACTION.ABORT; pub const BREAKRESUMEACTION_CONTINUE = BREAKRESUME_ACTION.CONTINUE; pub const BREAKRESUMEACTION_STEP_INTO = BREAKRESUME_ACTION.STEP_INTO; pub const BREAKRESUMEACTION_STEP_OVER = BREAKRESUME_ACTION.STEP_OVER; pub const BREAKRESUMEACTION_STEP_OUT = BREAKRESUME_ACTION.STEP_OUT; pub const BREAKRESUMEACTION_IGNORE = BREAKRESUME_ACTION.IGNORE; pub const BREAKRESUMEACTION_STEP_DOCUMENT = BREAKRESUME_ACTION.STEP_DOCUMENT; pub const ERRORRESUMEACTION = enum(i32) { ReexecuteErrorStatement = 0, AbortCallAndReturnErrorToCaller = 1, SkipErrorStatement = 2, }; pub const ERRORRESUMEACTION_ReexecuteErrorStatement = ERRORRESUMEACTION.ReexecuteErrorStatement; pub const ERRORRESUMEACTION_AbortCallAndReturnErrorToCaller = ERRORRESUMEACTION.AbortCallAndReturnErrorToCaller; pub const ERRORRESUMEACTION_SkipErrorStatement = ERRORRESUMEACTION.SkipErrorStatement; pub const DOCUMENTNAMETYPE = enum(i32) { APPNODE = 0, TITLE = 1, FILE_TAIL = 2, URL = 3, UNIQUE_TITLE = 4, SOURCE_MAP_URL = 5, }; pub const DOCUMENTNAMETYPE_APPNODE = DOCUMENTNAMETYPE.APPNODE; pub const DOCUMENTNAMETYPE_TITLE = DOCUMENTNAMETYPE.TITLE; pub const DOCUMENTNAMETYPE_FILE_TAIL = DOCUMENTNAMETYPE.FILE_TAIL; pub const DOCUMENTNAMETYPE_URL = DOCUMENTNAMETYPE.URL; pub const DOCUMENTNAMETYPE_UNIQUE_TITLE = DOCUMENTNAMETYPE.UNIQUE_TITLE; pub const DOCUMENTNAMETYPE_SOURCE_MAP_URL = DOCUMENTNAMETYPE.SOURCE_MAP_URL; const IID_IActiveScriptDebug32_Value = Guid.initString("51973c10-cb0c-11d0-b5c9-00a0244a0e7a"); pub const IID_IActiveScriptDebug32 = &IID_IActiveScriptDebug32_Value; pub const IActiveScriptDebug32 = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, GetScriptTextAttributes: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IActiveScriptDebug32, pstrCode: [*:0]const u16, uNumCodeChars: u32, pstrDelimiter: ?[*:0]const u16, dwFlags: u32, pattr: [*:0]u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IActiveScriptDebug32, pstrCode: [*:0]const u16, uNumCodeChars: u32, pstrDelimiter: ?[*:0]const u16, dwFlags: u32, pattr: [*:0]u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetScriptletTextAttributes: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IActiveScriptDebug32, pstrCode: [*:0]const u16, uNumCodeChars: u32, pstrDelimiter: ?[*:0]const u16, dwFlags: u32, pattr: [*:0]u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IActiveScriptDebug32, pstrCode: [*:0]const u16, uNumCodeChars: u32, pstrDelimiter: ?[*:0]const u16, dwFlags: u32, pattr: [*:0]u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, EnumCodeContextsOfPosition: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IActiveScriptDebug32, dwSourceContext: u32, uCharacterOffset: u32, uNumChars: u32, ppescc: ?*?*IEnumDebugCodeContexts, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IActiveScriptDebug32, dwSourceContext: u32, uCharacterOffset: u32, uNumChars: u32, ppescc: ?*?*IEnumDebugCodeContexts, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IActiveScriptDebug32_GetScriptTextAttributes(self: *const T, pstrCode: [*:0]const u16, uNumCodeChars: u32, pstrDelimiter: ?[*:0]const u16, dwFlags: u32, pattr: [*:0]u16) HRESULT { return @as(*const IActiveScriptDebug32.VTable, @ptrCast(self.vtable)).GetScriptTextAttributes(@as(*const IActiveScriptDebug32, @ptrCast(self)), pstrCode, uNumCodeChars, pstrDelimiter, dwFlags, pattr); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IActiveScriptDebug32_GetScriptletTextAttributes(self: *const T, pstrCode: [*:0]const u16, uNumCodeChars: u32, pstrDelimiter: ?[*:0]const u16, dwFlags: u32, pattr: [*:0]u16) HRESULT { return @as(*const IActiveScriptDebug32.VTable, @ptrCast(self.vtable)).GetScriptletTextAttributes(@as(*const IActiveScriptDebug32, @ptrCast(self)), pstrCode, uNumCodeChars, pstrDelimiter, dwFlags, pattr); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IActiveScriptDebug32_EnumCodeContextsOfPosition(self: *const T, dwSourceContext: u32, uCharacterOffset: u32, uNumChars: u32, ppescc: ?*?*IEnumDebugCodeContexts) HRESULT { return @as(*const IActiveScriptDebug32.VTable, @ptrCast(self.vtable)).EnumCodeContextsOfPosition(@as(*const IActiveScriptDebug32, @ptrCast(self)), dwSourceContext, uCharacterOffset, uNumChars, ppescc); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IActiveScriptDebug64_Value = Guid.initString("bc437e23-f5b8-47f4-bb79-7d1ce5483b86"); pub const IID_IActiveScriptDebug64 = &IID_IActiveScriptDebug64_Value; pub const IActiveScriptDebug64 = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, GetScriptTextAttributes: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IActiveScriptDebug64, pstrCode: [*:0]const u16, uNumCodeChars: u32, pstrDelimiter: ?[*:0]const u16, dwFlags: u32, pattr: [*:0]u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IActiveScriptDebug64, pstrCode: [*:0]const u16, uNumCodeChars: u32, pstrDelimiter: ?[*:0]const u16, dwFlags: u32, pattr: [*:0]u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetScriptletTextAttributes: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IActiveScriptDebug64, pstrCode: [*:0]const u16, uNumCodeChars: u32, pstrDelimiter: ?[*:0]const u16, dwFlags: u32, pattr: [*:0]u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IActiveScriptDebug64, pstrCode: [*:0]const u16, uNumCodeChars: u32, pstrDelimiter: ?[*:0]const u16, dwFlags: u32, pattr: [*:0]u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, EnumCodeContextsOfPosition: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IActiveScriptDebug64, dwSourceContext: u64, uCharacterOffset: u32, uNumChars: u32, ppescc: ?*?*IEnumDebugCodeContexts, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IActiveScriptDebug64, dwSourceContext: u64, uCharacterOffset: u32, uNumChars: u32, ppescc: ?*?*IEnumDebugCodeContexts, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IActiveScriptDebug64_GetScriptTextAttributes(self: *const T, pstrCode: [*:0]const u16, uNumCodeChars: u32, pstrDelimiter: ?[*:0]const u16, dwFlags: u32, pattr: [*:0]u16) HRESULT { return @as(*const IActiveScriptDebug64.VTable, @ptrCast(self.vtable)).GetScriptTextAttributes(@as(*const IActiveScriptDebug64, @ptrCast(self)), pstrCode, uNumCodeChars, pstrDelimiter, dwFlags, pattr); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IActiveScriptDebug64_GetScriptletTextAttributes(self: *const T, pstrCode: [*:0]const u16, uNumCodeChars: u32, pstrDelimiter: ?[*:0]const u16, dwFlags: u32, pattr: [*:0]u16) HRESULT { return @as(*const IActiveScriptDebug64.VTable, @ptrCast(self.vtable)).GetScriptletTextAttributes(@as(*const IActiveScriptDebug64, @ptrCast(self)), pstrCode, uNumCodeChars, pstrDelimiter, dwFlags, pattr); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IActiveScriptDebug64_EnumCodeContextsOfPosition(self: *const T, dwSourceContext: u64, uCharacterOffset: u32, uNumChars: u32, ppescc: ?*?*IEnumDebugCodeContexts) HRESULT { return @as(*const IActiveScriptDebug64.VTable, @ptrCast(self.vtable)).EnumCodeContextsOfPosition(@as(*const IActiveScriptDebug64, @ptrCast(self)), dwSourceContext, uCharacterOffset, uNumChars, ppescc); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IActiveScriptSiteDebug32_Value = Guid.initString("51973c11-cb0c-11d0-b5c9-00a0244a0e7a"); pub const IID_IActiveScriptSiteDebug32 = &IID_IActiveScriptSiteDebug32_Value; pub const IActiveScriptSiteDebug32 = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, GetDocumentContextFromPosition: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IActiveScriptSiteDebug32, dwSourceContext: u32, uCharacterOffset: u32, uNumChars: u32, ppsc: ?*?*IDebugDocumentContext, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IActiveScriptSiteDebug32, dwSourceContext: u32, uCharacterOffset: u32, uNumChars: u32, ppsc: ?*?*IDebugDocumentContext, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetApplication: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IActiveScriptSiteDebug32, ppda: ?*?*IDebugApplication32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IActiveScriptSiteDebug32, ppda: ?*?*IDebugApplication32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetRootApplicationNode: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IActiveScriptSiteDebug32, ppdanRoot: ?*?*IDebugApplicationNode, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IActiveScriptSiteDebug32, ppdanRoot: ?*?*IDebugApplicationNode, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, OnScriptErrorDebug: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IActiveScriptSiteDebug32, pErrorDebug: ?*IActiveScriptErrorDebug, pfEnterDebugger: ?*BOOL, pfCallOnScriptErrorWhenContinuing: ?*BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IActiveScriptSiteDebug32, pErrorDebug: ?*IActiveScriptErrorDebug, pfEnterDebugger: ?*BOOL, pfCallOnScriptErrorWhenContinuing: ?*BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IActiveScriptSiteDebug32_GetDocumentContextFromPosition(self: *const T, dwSourceContext: u32, uCharacterOffset: u32, uNumChars: u32, ppsc: ?*?*IDebugDocumentContext) HRESULT { return @as(*const IActiveScriptSiteDebug32.VTable, @ptrCast(self.vtable)).GetDocumentContextFromPosition(@as(*const IActiveScriptSiteDebug32, @ptrCast(self)), dwSourceContext, uCharacterOffset, uNumChars, ppsc); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IActiveScriptSiteDebug32_GetApplication(self: *const T, ppda: ?*?*IDebugApplication32) HRESULT { return @as(*const IActiveScriptSiteDebug32.VTable, @ptrCast(self.vtable)).GetApplication(@as(*const IActiveScriptSiteDebug32, @ptrCast(self)), ppda); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IActiveScriptSiteDebug32_GetRootApplicationNode(self: *const T, ppdanRoot: ?*?*IDebugApplicationNode) HRESULT { return @as(*const IActiveScriptSiteDebug32.VTable, @ptrCast(self.vtable)).GetRootApplicationNode(@as(*const IActiveScriptSiteDebug32, @ptrCast(self)), ppdanRoot); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IActiveScriptSiteDebug32_OnScriptErrorDebug(self: *const T, pErrorDebug: ?*IActiveScriptErrorDebug, pfEnterDebugger: ?*BOOL, pfCallOnScriptErrorWhenContinuing: ?*BOOL) HRESULT { return @as(*const IActiveScriptSiteDebug32.VTable, @ptrCast(self.vtable)).OnScriptErrorDebug(@as(*const IActiveScriptSiteDebug32, @ptrCast(self)), pErrorDebug, pfEnterDebugger, pfCallOnScriptErrorWhenContinuing); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IActiveScriptSiteDebug64_Value = Guid.initString("d6b96b0a-7463-402c-92ac-89984226942f"); pub const IID_IActiveScriptSiteDebug64 = &IID_IActiveScriptSiteDebug64_Value; pub const IActiveScriptSiteDebug64 = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, GetDocumentContextFromPosition: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IActiveScriptSiteDebug64, dwSourceContext: u64, uCharacterOffset: u32, uNumChars: u32, ppsc: ?*?*IDebugDocumentContext, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IActiveScriptSiteDebug64, dwSourceContext: u64, uCharacterOffset: u32, uNumChars: u32, ppsc: ?*?*IDebugDocumentContext, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetApplication: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IActiveScriptSiteDebug64, ppda: ?*?*IDebugApplication64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IActiveScriptSiteDebug64, ppda: ?*?*IDebugApplication64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetRootApplicationNode: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IActiveScriptSiteDebug64, ppdanRoot: ?*?*IDebugApplicationNode, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IActiveScriptSiteDebug64, ppdanRoot: ?*?*IDebugApplicationNode, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, OnScriptErrorDebug: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IActiveScriptSiteDebug64, pErrorDebug: ?*IActiveScriptErrorDebug, pfEnterDebugger: ?*BOOL, pfCallOnScriptErrorWhenContinuing: ?*BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IActiveScriptSiteDebug64, pErrorDebug: ?*IActiveScriptErrorDebug, pfEnterDebugger: ?*BOOL, pfCallOnScriptErrorWhenContinuing: ?*BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IActiveScriptSiteDebug64_GetDocumentContextFromPosition(self: *const T, dwSourceContext: u64, uCharacterOffset: u32, uNumChars: u32, ppsc: ?*?*IDebugDocumentContext) HRESULT { return @as(*const IActiveScriptSiteDebug64.VTable, @ptrCast(self.vtable)).GetDocumentContextFromPosition(@as(*const IActiveScriptSiteDebug64, @ptrCast(self)), dwSourceContext, uCharacterOffset, uNumChars, ppsc); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IActiveScriptSiteDebug64_GetApplication(self: *const T, ppda: ?*?*IDebugApplication64) HRESULT { return @as(*const IActiveScriptSiteDebug64.VTable, @ptrCast(self.vtable)).GetApplication(@as(*const IActiveScriptSiteDebug64, @ptrCast(self)), ppda); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IActiveScriptSiteDebug64_GetRootApplicationNode(self: *const T, ppdanRoot: ?*?*IDebugApplicationNode) HRESULT { return @as(*const IActiveScriptSiteDebug64.VTable, @ptrCast(self.vtable)).GetRootApplicationNode(@as(*const IActiveScriptSiteDebug64, @ptrCast(self)), ppdanRoot); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IActiveScriptSiteDebug64_OnScriptErrorDebug(self: *const T, pErrorDebug: ?*IActiveScriptErrorDebug, pfEnterDebugger: ?*BOOL, pfCallOnScriptErrorWhenContinuing: ?*BOOL) HRESULT { return @as(*const IActiveScriptSiteDebug64.VTable, @ptrCast(self.vtable)).OnScriptErrorDebug(@as(*const IActiveScriptSiteDebug64, @ptrCast(self)), pErrorDebug, pfEnterDebugger, pfCallOnScriptErrorWhenContinuing); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IActiveScriptSiteDebugEx_Value = Guid.initString("bb722ccb-6ad2-41c6-b780-af9c03ee69f5"); pub const IID_IActiveScriptSiteDebugEx = &IID_IActiveScriptSiteDebugEx_Value; pub const IActiveScriptSiteDebugEx = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, OnCanNotJITScriptErrorDebug: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IActiveScriptSiteDebugEx, pErrorDebug: ?*IActiveScriptErrorDebug, pfCallOnScriptErrorWhenContinuing: ?*BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IActiveScriptSiteDebugEx, pErrorDebug: ?*IActiveScriptErrorDebug, pfCallOnScriptErrorWhenContinuing: ?*BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IActiveScriptSiteDebugEx_OnCanNotJITScriptErrorDebug(self: *const T, pErrorDebug: ?*IActiveScriptErrorDebug, pfCallOnScriptErrorWhenContinuing: ?*BOOL) HRESULT { return @as(*const IActiveScriptSiteDebugEx.VTable, @ptrCast(self.vtable)).OnCanNotJITScriptErrorDebug(@as(*const IActiveScriptSiteDebugEx, @ptrCast(self)), pErrorDebug, pfCallOnScriptErrorWhenContinuing); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IActiveScriptErrorDebug_Value = Guid.initString("51973c12-cb0c-11d0-b5c9-00a0244a0e7a"); pub const IID_IActiveScriptErrorDebug = &IID_IActiveScriptErrorDebug_Value; pub const IActiveScriptErrorDebug = extern struct { pub const VTable = extern struct { base: IActiveScriptError.VTable, GetDocumentContext: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IActiveScriptErrorDebug, ppssc: ?*?*IDebugDocumentContext, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IActiveScriptErrorDebug, ppssc: ?*?*IDebugDocumentContext, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetStackFrame: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IActiveScriptErrorDebug, ppdsf: ?*?*IDebugStackFrame, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IActiveScriptErrorDebug, ppdsf: ?*?*IDebugStackFrame, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IActiveScriptError.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IActiveScriptErrorDebug_GetDocumentContext(self: *const T, ppssc: ?*?*IDebugDocumentContext) HRESULT { return @as(*const IActiveScriptErrorDebug.VTable, @ptrCast(self.vtable)).GetDocumentContext(@as(*const IActiveScriptErrorDebug, @ptrCast(self)), ppssc); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IActiveScriptErrorDebug_GetStackFrame(self: *const T, ppdsf: ?*?*IDebugStackFrame) HRESULT { return @as(*const IActiveScriptErrorDebug.VTable, @ptrCast(self.vtable)).GetStackFrame(@as(*const IActiveScriptErrorDebug, @ptrCast(self)), ppdsf); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IDebugCodeContext_Value = Guid.initString("51973c13-cb0c-11d0-b5c9-00a0244a0e7a"); pub const IID_IDebugCodeContext = &IID_IDebugCodeContext_Value; pub const IDebugCodeContext = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, GetDocumentContext: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugCodeContext, ppsc: ?*?*IDebugDocumentContext, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugCodeContext, ppsc: ?*?*IDebugDocumentContext, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetBreakPoint: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugCodeContext, bps: BREAKPOINT_STATE, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugCodeContext, bps: BREAKPOINT_STATE, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugCodeContext_GetDocumentContext(self: *const T, ppsc: ?*?*IDebugDocumentContext) HRESULT { return @as(*const IDebugCodeContext.VTable, @ptrCast(self.vtable)).GetDocumentContext(@as(*const IDebugCodeContext, @ptrCast(self)), ppsc); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugCodeContext_SetBreakPoint(self: *const T, bps: BREAKPOINT_STATE) HRESULT { return @as(*const IDebugCodeContext.VTable, @ptrCast(self.vtable)).SetBreakPoint(@as(*const IDebugCodeContext, @ptrCast(self)), bps); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IDebugExpression_Value = Guid.initString("51973c14-cb0c-11d0-b5c9-00a0244a0e7a"); pub const IID_IDebugExpression = &IID_IDebugExpression_Value; pub const IDebugExpression = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, Start: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugExpression, pdecb: ?*IDebugExpressionCallBack, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugExpression, pdecb: ?*IDebugExpressionCallBack, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Abort: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugExpression, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugExpression, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, QueryIsComplete: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugExpression, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugExpression, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetResultAsString: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugExpression, phrResult: ?*HRESULT, pbstrResult: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugExpression, phrResult: ?*HRESULT, pbstrResult: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetResultAsDebugProperty: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugExpression, phrResult: ?*HRESULT, ppdp: ?*?*IDebugProperty, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugExpression, phrResult: ?*HRESULT, ppdp: ?*?*IDebugProperty, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugExpression_Start(self: *const T, pdecb: ?*IDebugExpressionCallBack) HRESULT { return @as(*const IDebugExpression.VTable, @ptrCast(self.vtable)).Start(@as(*const IDebugExpression, @ptrCast(self)), pdecb); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugExpression_Abort(self: *const T) HRESULT { return @as(*const IDebugExpression.VTable, @ptrCast(self.vtable)).Abort(@as(*const IDebugExpression, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugExpression_QueryIsComplete(self: *const T) HRESULT { return @as(*const IDebugExpression.VTable, @ptrCast(self.vtable)).QueryIsComplete(@as(*const IDebugExpression, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugExpression_GetResultAsString(self: *const T, phrResult: ?*HRESULT, pbstrResult: ?*?BSTR) HRESULT { return @as(*const IDebugExpression.VTable, @ptrCast(self.vtable)).GetResultAsString(@as(*const IDebugExpression, @ptrCast(self)), phrResult, pbstrResult); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugExpression_GetResultAsDebugProperty(self: *const T, phrResult: ?*HRESULT, ppdp: ?*?*IDebugProperty) HRESULT { return @as(*const IDebugExpression.VTable, @ptrCast(self.vtable)).GetResultAsDebugProperty(@as(*const IDebugExpression, @ptrCast(self)), phrResult, ppdp); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IDebugExpressionContext_Value = Guid.initString("51973c15-cb0c-11d0-b5c9-00a0244a0e7a"); pub const IID_IDebugExpressionContext = &IID_IDebugExpressionContext_Value; pub const IDebugExpressionContext = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, ParseLanguageText: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugExpressionContext, pstrCode: ?[*:0]const u16, nRadix: u32, pstrDelimiter: ?[*:0]const u16, dwFlags: u32, ppe: ?*?*IDebugExpression, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugExpressionContext, pstrCode: ?[*:0]const u16, nRadix: u32, pstrDelimiter: ?[*:0]const u16, dwFlags: u32, ppe: ?*?*IDebugExpression, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetLanguageInfo: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugExpressionContext, pbstrLanguageName: ?*?BSTR, pLanguageID: ?*Guid, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugExpressionContext, pbstrLanguageName: ?*?BSTR, pLanguageID: ?*Guid, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugExpressionContext_ParseLanguageText(self: *const T, pstrCode: ?[*:0]const u16, nRadix: u32, pstrDelimiter: ?[*:0]const u16, dwFlags: u32, ppe: ?*?*IDebugExpression) HRESULT { return @as(*const IDebugExpressionContext.VTable, @ptrCast(self.vtable)).ParseLanguageText(@as(*const IDebugExpressionContext, @ptrCast(self)), pstrCode, nRadix, pstrDelimiter, dwFlags, ppe); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugExpressionContext_GetLanguageInfo(self: *const T, pbstrLanguageName: ?*?BSTR, pLanguageID: ?*Guid) HRESULT { return @as(*const IDebugExpressionContext.VTable, @ptrCast(self.vtable)).GetLanguageInfo(@as(*const IDebugExpressionContext, @ptrCast(self)), pbstrLanguageName, pLanguageID); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IDebugExpressionCallBack_Value = Guid.initString("51973c16-cb0c-11d0-b5c9-00a0244a0e7a"); pub const IID_IDebugExpressionCallBack = &IID_IDebugExpressionCallBack_Value; pub const IDebugExpressionCallBack = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, onComplete: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugExpressionCallBack, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugExpressionCallBack, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugExpressionCallBack_onComplete(self: *const T) HRESULT { return @as(*const IDebugExpressionCallBack.VTable, @ptrCast(self.vtable)).onComplete(@as(*const IDebugExpressionCallBack, @ptrCast(self))); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IDebugStackFrame_Value = Guid.initString("51973c17-cb0c-11d0-b5c9-00a0244a0e7a"); pub const IID_IDebugStackFrame = &IID_IDebugStackFrame_Value; pub const IDebugStackFrame = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, GetCodeContext: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugStackFrame, ppcc: ?*?*IDebugCodeContext, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugStackFrame, ppcc: ?*?*IDebugCodeContext, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetDescriptionString: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugStackFrame, fLong: BOOL, pbstrDescription: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugStackFrame, fLong: BOOL, pbstrDescription: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetLanguageString: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugStackFrame, fLong: BOOL, pbstrLanguage: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugStackFrame, fLong: BOOL, pbstrLanguage: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetThread: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugStackFrame, ppat: ?*?*IDebugApplicationThread, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugStackFrame, ppat: ?*?*IDebugApplicationThread, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetDebugProperty: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugStackFrame, ppDebugProp: ?*?*IDebugProperty, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugStackFrame, ppDebugProp: ?*?*IDebugProperty, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugStackFrame_GetCodeContext(self: *const T, ppcc: ?*?*IDebugCodeContext) HRESULT { return @as(*const IDebugStackFrame.VTable, @ptrCast(self.vtable)).GetCodeContext(@as(*const IDebugStackFrame, @ptrCast(self)), ppcc); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugStackFrame_GetDescriptionString(self: *const T, fLong: BOOL, pbstrDescription: ?*?BSTR) HRESULT { return @as(*const IDebugStackFrame.VTable, @ptrCast(self.vtable)).GetDescriptionString(@as(*const IDebugStackFrame, @ptrCast(self)), fLong, pbstrDescription); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugStackFrame_GetLanguageString(self: *const T, fLong: BOOL, pbstrLanguage: ?*?BSTR) HRESULT { return @as(*const IDebugStackFrame.VTable, @ptrCast(self.vtable)).GetLanguageString(@as(*const IDebugStackFrame, @ptrCast(self)), fLong, pbstrLanguage); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugStackFrame_GetThread(self: *const T, ppat: ?*?*IDebugApplicationThread) HRESULT { return @as(*const IDebugStackFrame.VTable, @ptrCast(self.vtable)).GetThread(@as(*const IDebugStackFrame, @ptrCast(self)), ppat); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugStackFrame_GetDebugProperty(self: *const T, ppDebugProp: ?*?*IDebugProperty) HRESULT { return @as(*const IDebugStackFrame.VTable, @ptrCast(self.vtable)).GetDebugProperty(@as(*const IDebugStackFrame, @ptrCast(self)), ppDebugProp); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IDebugStackFrameSniffer_Value = Guid.initString("51973c18-cb0c-11d0-b5c9-00a0244a0e7a"); pub const IID_IDebugStackFrameSniffer = &IID_IDebugStackFrameSniffer_Value; pub const IDebugStackFrameSniffer = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, EnumStackFrames: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugStackFrameSniffer, ppedsf: ?*?*IEnumDebugStackFrames, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugStackFrameSniffer, ppedsf: ?*?*IEnumDebugStackFrames, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugStackFrameSniffer_EnumStackFrames(self: *const T, ppedsf: ?*?*IEnumDebugStackFrames) HRESULT { return @as(*const IDebugStackFrameSniffer.VTable, @ptrCast(self.vtable)).EnumStackFrames(@as(*const IDebugStackFrameSniffer, @ptrCast(self)), ppedsf); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IDebugStackFrameSnifferEx32_Value = Guid.initString("51973c19-cb0c-11d0-b5c9-00a0244a0e7a"); pub const IID_IDebugStackFrameSnifferEx32 = &IID_IDebugStackFrameSnifferEx32_Value; pub const IDebugStackFrameSnifferEx32 = extern struct { pub const VTable = extern struct { base: IDebugStackFrameSniffer.VTable, EnumStackFramesEx32: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugStackFrameSnifferEx32, dwSpMin: u32, ppedsf: ?*?*IEnumDebugStackFrames, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugStackFrameSnifferEx32, dwSpMin: u32, ppedsf: ?*?*IEnumDebugStackFrames, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IDebugStackFrameSniffer.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugStackFrameSnifferEx32_EnumStackFramesEx32(self: *const T, dwSpMin: u32, ppedsf: ?*?*IEnumDebugStackFrames) HRESULT { return @as(*const IDebugStackFrameSnifferEx32.VTable, @ptrCast(self.vtable)).EnumStackFramesEx32(@as(*const IDebugStackFrameSnifferEx32, @ptrCast(self)), dwSpMin, ppedsf); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IDebugStackFrameSnifferEx64_Value = Guid.initString("8cd12af4-49c1-4d52-8d8a-c146f47581aa"); pub const IID_IDebugStackFrameSnifferEx64 = &IID_IDebugStackFrameSnifferEx64_Value; pub const IDebugStackFrameSnifferEx64 = extern struct { pub const VTable = extern struct { base: IDebugStackFrameSniffer.VTable, EnumStackFramesEx64: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugStackFrameSnifferEx64, dwSpMin: u64, ppedsf: ?*?*IEnumDebugStackFrames64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugStackFrameSnifferEx64, dwSpMin: u64, ppedsf: ?*?*IEnumDebugStackFrames64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IDebugStackFrameSniffer.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugStackFrameSnifferEx64_EnumStackFramesEx64(self: *const T, dwSpMin: u64, ppedsf: ?*?*IEnumDebugStackFrames64) HRESULT { return @as(*const IDebugStackFrameSnifferEx64.VTable, @ptrCast(self.vtable)).EnumStackFramesEx64(@as(*const IDebugStackFrameSnifferEx64, @ptrCast(self)), dwSpMin, ppedsf); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IDebugSyncOperation_Value = Guid.initString("51973c1a-cb0c-11d0-b5c9-00a0244a0e7a"); pub const IID_IDebugSyncOperation = &IID_IDebugSyncOperation_Value; pub const IDebugSyncOperation = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, GetTargetThread: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSyncOperation, ppatTarget: ?*?*IDebugApplicationThread, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSyncOperation, ppatTarget: ?*?*IDebugApplicationThread, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Execute: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSyncOperation, ppunkResult: ?*?*IUnknown, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSyncOperation, ppunkResult: ?*?*IUnknown, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, InProgressAbort: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSyncOperation, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSyncOperation, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSyncOperation_GetTargetThread(self: *const T, ppatTarget: ?*?*IDebugApplicationThread) HRESULT { return @as(*const IDebugSyncOperation.VTable, @ptrCast(self.vtable)).GetTargetThread(@as(*const IDebugSyncOperation, @ptrCast(self)), ppatTarget); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSyncOperation_Execute(self: *const T, ppunkResult: ?*?*IUnknown) HRESULT { return @as(*const IDebugSyncOperation.VTable, @ptrCast(self.vtable)).Execute(@as(*const IDebugSyncOperation, @ptrCast(self)), ppunkResult); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSyncOperation_InProgressAbort(self: *const T) HRESULT { return @as(*const IDebugSyncOperation.VTable, @ptrCast(self.vtable)).InProgressAbort(@as(*const IDebugSyncOperation, @ptrCast(self))); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IDebugAsyncOperation_Value = Guid.initString("51973c1b-cb0c-11d0-b5c9-00a0244a0e7a"); pub const IID_IDebugAsyncOperation = &IID_IDebugAsyncOperation_Value; pub const IDebugAsyncOperation = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, GetSyncDebugOperation: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugAsyncOperation, ppsdo: ?*?*IDebugSyncOperation, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugAsyncOperation, ppsdo: ?*?*IDebugSyncOperation, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Start: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugAsyncOperation, padocb: ?*IDebugAsyncOperationCallBack, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugAsyncOperation, padocb: ?*IDebugAsyncOperationCallBack, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Abort: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugAsyncOperation, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugAsyncOperation, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, QueryIsComplete: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugAsyncOperation, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugAsyncOperation, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetResult: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugAsyncOperation, phrResult: ?*HRESULT, ppunkResult: ?*?*IUnknown, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugAsyncOperation, phrResult: ?*HRESULT, ppunkResult: ?*?*IUnknown, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugAsyncOperation_GetSyncDebugOperation(self: *const T, ppsdo: ?*?*IDebugSyncOperation) HRESULT { return @as(*const IDebugAsyncOperation.VTable, @ptrCast(self.vtable)).GetSyncDebugOperation(@as(*const IDebugAsyncOperation, @ptrCast(self)), ppsdo); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugAsyncOperation_Start(self: *const T, padocb: ?*IDebugAsyncOperationCallBack) HRESULT { return @as(*const IDebugAsyncOperation.VTable, @ptrCast(self.vtable)).Start(@as(*const IDebugAsyncOperation, @ptrCast(self)), padocb); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugAsyncOperation_Abort(self: *const T) HRESULT { return @as(*const IDebugAsyncOperation.VTable, @ptrCast(self.vtable)).Abort(@as(*const IDebugAsyncOperation, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugAsyncOperation_QueryIsComplete(self: *const T) HRESULT { return @as(*const IDebugAsyncOperation.VTable, @ptrCast(self.vtable)).QueryIsComplete(@as(*const IDebugAsyncOperation, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugAsyncOperation_GetResult(self: *const T, phrResult: ?*HRESULT, ppunkResult: ?*?*IUnknown) HRESULT { return @as(*const IDebugAsyncOperation.VTable, @ptrCast(self.vtable)).GetResult(@as(*const IDebugAsyncOperation, @ptrCast(self)), phrResult, ppunkResult); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IDebugAsyncOperationCallBack_Value = Guid.initString("51973c1c-cb0c-11d0-b5c9-00a0244a0e7a"); pub const IID_IDebugAsyncOperationCallBack = &IID_IDebugAsyncOperationCallBack_Value; pub const IDebugAsyncOperationCallBack = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, onComplete: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugAsyncOperationCallBack, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugAsyncOperationCallBack, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugAsyncOperationCallBack_onComplete(self: *const T) HRESULT { return @as(*const IDebugAsyncOperationCallBack.VTable, @ptrCast(self.vtable)).onComplete(@as(*const IDebugAsyncOperationCallBack, @ptrCast(self))); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IEnumDebugCodeContexts_Value = Guid.initString("51973c1d-cb0c-11d0-b5c9-00a0244a0e7a"); pub const IID_IEnumDebugCodeContexts = &IID_IEnumDebugCodeContexts_Value; pub const IEnumDebugCodeContexts = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, Next: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IEnumDebugCodeContexts, celt: u32, pscc: ?*?*IDebugCodeContext, pceltFetched: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IEnumDebugCodeContexts, celt: u32, pscc: ?*?*IDebugCodeContext, pceltFetched: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Skip: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IEnumDebugCodeContexts, celt: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IEnumDebugCodeContexts, celt: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Reset: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IEnumDebugCodeContexts, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IEnumDebugCodeContexts, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Clone: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IEnumDebugCodeContexts, ppescc: ?*?*IEnumDebugCodeContexts, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IEnumDebugCodeContexts, ppescc: ?*?*IEnumDebugCodeContexts, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IEnumDebugCodeContexts_Next(self: *const T, celt: u32, pscc: ?*?*IDebugCodeContext, pceltFetched: ?*u32) HRESULT { return @as(*const IEnumDebugCodeContexts.VTable, @ptrCast(self.vtable)).Next(@as(*const IEnumDebugCodeContexts, @ptrCast(self)), celt, pscc, pceltFetched); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IEnumDebugCodeContexts_Skip(self: *const T, celt: u32) HRESULT { return @as(*const IEnumDebugCodeContexts.VTable, @ptrCast(self.vtable)).Skip(@as(*const IEnumDebugCodeContexts, @ptrCast(self)), celt); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IEnumDebugCodeContexts_Reset(self: *const T) HRESULT { return @as(*const IEnumDebugCodeContexts.VTable, @ptrCast(self.vtable)).Reset(@as(*const IEnumDebugCodeContexts, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IEnumDebugCodeContexts_Clone(self: *const T, ppescc: ?*?*IEnumDebugCodeContexts) HRESULT { return @as(*const IEnumDebugCodeContexts.VTable, @ptrCast(self.vtable)).Clone(@as(*const IEnumDebugCodeContexts, @ptrCast(self)), ppescc); } }; } pub usingnamespace MethodMixin(@This()); }; pub const DebugStackFrameDescriptor = extern struct { pdsf: ?*IDebugStackFrame, dwMin: u32, dwLim: u32, fFinal: BOOL, punkFinal: ?*IUnknown, }; pub const DebugStackFrameDescriptor64 = extern struct { pdsf: ?*IDebugStackFrame, dwMin: u64, dwLim: u64, fFinal: BOOL, punkFinal: ?*IUnknown, }; const IID_IEnumDebugStackFrames_Value = Guid.initString("51973c1e-cb0c-11d0-b5c9-00a0244a0e7a"); pub const IID_IEnumDebugStackFrames = &IID_IEnumDebugStackFrames_Value; pub const IEnumDebugStackFrames = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, Next: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IEnumDebugStackFrames, celt: u32, prgdsfd: ?*DebugStackFrameDescriptor, pceltFetched: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IEnumDebugStackFrames, celt: u32, prgdsfd: ?*DebugStackFrameDescriptor, pceltFetched: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Skip: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IEnumDebugStackFrames, celt: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IEnumDebugStackFrames, celt: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Reset: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IEnumDebugStackFrames, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IEnumDebugStackFrames, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Clone: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IEnumDebugStackFrames, ppedsf: ?*?*IEnumDebugStackFrames, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IEnumDebugStackFrames, ppedsf: ?*?*IEnumDebugStackFrames, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IEnumDebugStackFrames_Next(self: *const T, celt: u32, prgdsfd: ?*DebugStackFrameDescriptor, pceltFetched: ?*u32) HRESULT { return @as(*const IEnumDebugStackFrames.VTable, @ptrCast(self.vtable)).Next(@as(*const IEnumDebugStackFrames, @ptrCast(self)), celt, prgdsfd, pceltFetched); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IEnumDebugStackFrames_Skip(self: *const T, celt: u32) HRESULT { return @as(*const IEnumDebugStackFrames.VTable, @ptrCast(self.vtable)).Skip(@as(*const IEnumDebugStackFrames, @ptrCast(self)), celt); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IEnumDebugStackFrames_Reset(self: *const T) HRESULT { return @as(*const IEnumDebugStackFrames.VTable, @ptrCast(self.vtable)).Reset(@as(*const IEnumDebugStackFrames, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IEnumDebugStackFrames_Clone(self: *const T, ppedsf: ?*?*IEnumDebugStackFrames) HRESULT { return @as(*const IEnumDebugStackFrames.VTable, @ptrCast(self.vtable)).Clone(@as(*const IEnumDebugStackFrames, @ptrCast(self)), ppedsf); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IEnumDebugStackFrames64_Value = Guid.initString("0dc38853-c1b0-4176-a984-b298361027af"); pub const IID_IEnumDebugStackFrames64 = &IID_IEnumDebugStackFrames64_Value; pub const IEnumDebugStackFrames64 = extern struct { pub const VTable = extern struct { base: IEnumDebugStackFrames.VTable, Next64: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IEnumDebugStackFrames64, celt: u32, prgdsfd: ?*DebugStackFrameDescriptor64, pceltFetched: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IEnumDebugStackFrames64, celt: u32, prgdsfd: ?*DebugStackFrameDescriptor64, pceltFetched: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IEnumDebugStackFrames.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IEnumDebugStackFrames64_Next64(self: *const T, celt: u32, prgdsfd: ?*DebugStackFrameDescriptor64, pceltFetched: ?*u32) HRESULT { return @as(*const IEnumDebugStackFrames64.VTable, @ptrCast(self.vtable)).Next64(@as(*const IEnumDebugStackFrames64, @ptrCast(self)), celt, prgdsfd, pceltFetched); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IDebugDocumentInfo_Value = Guid.initString("51973c1f-cb0c-11d0-b5c9-00a0244a0e7a"); pub const IID_IDebugDocumentInfo = &IID_IDebugDocumentInfo_Value; pub const IDebugDocumentInfo = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, GetName: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugDocumentInfo, dnt: DOCUMENTNAMETYPE, pbstrName: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugDocumentInfo, dnt: DOCUMENTNAMETYPE, pbstrName: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetDocumentClassId: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugDocumentInfo, pclsidDocument: ?*Guid, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugDocumentInfo, pclsidDocument: ?*Guid, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugDocumentInfo_GetName(self: *const T, dnt: DOCUMENTNAMETYPE, pbstrName: ?*?BSTR) HRESULT { return @as(*const IDebugDocumentInfo.VTable, @ptrCast(self.vtable)).GetName(@as(*const IDebugDocumentInfo, @ptrCast(self)), dnt, pbstrName); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugDocumentInfo_GetDocumentClassId(self: *const T, pclsidDocument: ?*Guid) HRESULT { return @as(*const IDebugDocumentInfo.VTable, @ptrCast(self.vtable)).GetDocumentClassId(@as(*const IDebugDocumentInfo, @ptrCast(self)), pclsidDocument); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IDebugDocumentProvider_Value = Guid.initString("51973c20-cb0c-11d0-b5c9-00a0244a0e7a"); pub const IID_IDebugDocumentProvider = &IID_IDebugDocumentProvider_Value; pub const IDebugDocumentProvider = extern struct { pub const VTable = extern struct { base: IDebugDocumentInfo.VTable, GetDocument: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugDocumentProvider, ppssd: ?*?*IDebugDocument, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugDocumentProvider, ppssd: ?*?*IDebugDocument, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IDebugDocumentInfo.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugDocumentProvider_GetDocument(self: *const T, ppssd: ?*?*IDebugDocument) HRESULT { return @as(*const IDebugDocumentProvider.VTable, @ptrCast(self.vtable)).GetDocument(@as(*const IDebugDocumentProvider, @ptrCast(self)), ppssd); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IDebugDocument_Value = Guid.initString("51973c21-cb0c-11d0-b5c9-00a0244a0e7a"); pub const IID_IDebugDocument = &IID_IDebugDocument_Value; pub const IDebugDocument = extern struct { pub const VTable = extern struct { base: IDebugDocumentInfo.VTable, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IDebugDocumentInfo.MethodMixin(T); }; } pub usingnamespace MethodMixin(@This()); }; const IID_IDebugDocumentText_Value = Guid.initString("51973c22-cb0c-11d0-b5c9-00a0244a0e7a"); pub const IID_IDebugDocumentText = &IID_IDebugDocumentText_Value; pub const IDebugDocumentText = extern struct { pub const VTable = extern struct { base: IDebugDocument.VTable, GetDocumentAttributes: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugDocumentText, ptextdocattr: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugDocumentText, ptextdocattr: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetSize: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugDocumentText, pcNumLines: ?*u32, pcNumChars: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugDocumentText, pcNumLines: ?*u32, pcNumChars: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetPositionOfLine: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugDocumentText, cLineNumber: u32, pcCharacterPosition: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugDocumentText, cLineNumber: u32, pcCharacterPosition: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetLineOfPosition: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugDocumentText, cCharacterPosition: u32, pcLineNumber: ?*u32, pcCharacterOffsetInLine: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugDocumentText, cCharacterPosition: u32, pcLineNumber: ?*u32, pcCharacterOffsetInLine: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetText: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugDocumentText, cCharacterPosition: u32, pcharText: [*:0]u16, pstaTextAttr: ?[*:0]u16, pcNumChars: ?*u32, cMaxChars: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugDocumentText, cCharacterPosition: u32, pcharText: [*:0]u16, pstaTextAttr: ?[*:0]u16, pcNumChars: ?*u32, cMaxChars: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetPositionOfContext: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugDocumentText, psc: ?*IDebugDocumentContext, pcCharacterPosition: ?*u32, cNumChars: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugDocumentText, psc: ?*IDebugDocumentContext, pcCharacterPosition: ?*u32, cNumChars: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetContextOfPosition: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugDocumentText, cCharacterPosition: u32, cNumChars: u32, ppsc: ?*?*IDebugDocumentContext, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugDocumentText, cCharacterPosition: u32, cNumChars: u32, ppsc: ?*?*IDebugDocumentContext, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IDebugDocument.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugDocumentText_GetDocumentAttributes(self: *const T, ptextdocattr: ?*u32) HRESULT { return @as(*const IDebugDocumentText.VTable, @ptrCast(self.vtable)).GetDocumentAttributes(@as(*const IDebugDocumentText, @ptrCast(self)), ptextdocattr); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugDocumentText_GetSize(self: *const T, pcNumLines: ?*u32, pcNumChars: ?*u32) HRESULT { return @as(*const IDebugDocumentText.VTable, @ptrCast(self.vtable)).GetSize(@as(*const IDebugDocumentText, @ptrCast(self)), pcNumLines, pcNumChars); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugDocumentText_GetPositionOfLine(self: *const T, cLineNumber: u32, pcCharacterPosition: ?*u32) HRESULT { return @as(*const IDebugDocumentText.VTable, @ptrCast(self.vtable)).GetPositionOfLine(@as(*const IDebugDocumentText, @ptrCast(self)), cLineNumber, pcCharacterPosition); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugDocumentText_GetLineOfPosition(self: *const T, cCharacterPosition: u32, pcLineNumber: ?*u32, pcCharacterOffsetInLine: ?*u32) HRESULT { return @as(*const IDebugDocumentText.VTable, @ptrCast(self.vtable)).GetLineOfPosition(@as(*const IDebugDocumentText, @ptrCast(self)), cCharacterPosition, pcLineNumber, pcCharacterOffsetInLine); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugDocumentText_GetText(self: *const T, cCharacterPosition: u32, pcharText: [*:0]u16, pstaTextAttr: ?[*:0]u16, pcNumChars: ?*u32, cMaxChars: u32) HRESULT { return @as(*const IDebugDocumentText.VTable, @ptrCast(self.vtable)).GetText(@as(*const IDebugDocumentText, @ptrCast(self)), cCharacterPosition, pcharText, pstaTextAttr, pcNumChars, cMaxChars); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugDocumentText_GetPositionOfContext(self: *const T, psc: ?*IDebugDocumentContext, pcCharacterPosition: ?*u32, cNumChars: ?*u32) HRESULT { return @as(*const IDebugDocumentText.VTable, @ptrCast(self.vtable)).GetPositionOfContext(@as(*const IDebugDocumentText, @ptrCast(self)), psc, pcCharacterPosition, cNumChars); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugDocumentText_GetContextOfPosition(self: *const T, cCharacterPosition: u32, cNumChars: u32, ppsc: ?*?*IDebugDocumentContext) HRESULT { return @as(*const IDebugDocumentText.VTable, @ptrCast(self.vtable)).GetContextOfPosition(@as(*const IDebugDocumentText, @ptrCast(self)), cCharacterPosition, cNumChars, ppsc); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IDebugDocumentTextEvents_Value = Guid.initString("51973c23-cb0c-11d0-b5c9-00a0244a0e7a"); pub const IID_IDebugDocumentTextEvents = &IID_IDebugDocumentTextEvents_Value; pub const IDebugDocumentTextEvents = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, onDestroy: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugDocumentTextEvents, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugDocumentTextEvents, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, onInsertText: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugDocumentTextEvents, cCharacterPosition: u32, cNumToInsert: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugDocumentTextEvents, cCharacterPosition: u32, cNumToInsert: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, onRemoveText: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugDocumentTextEvents, cCharacterPosition: u32, cNumToRemove: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugDocumentTextEvents, cCharacterPosition: u32, cNumToRemove: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, onReplaceText: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugDocumentTextEvents, cCharacterPosition: u32, cNumToReplace: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugDocumentTextEvents, cCharacterPosition: u32, cNumToReplace: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, onUpdateTextAttributes: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugDocumentTextEvents, cCharacterPosition: u32, cNumToUpdate: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugDocumentTextEvents, cCharacterPosition: u32, cNumToUpdate: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, onUpdateDocumentAttributes: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugDocumentTextEvents, textdocattr: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugDocumentTextEvents, textdocattr: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugDocumentTextEvents_onDestroy(self: *const T) HRESULT { return @as(*const IDebugDocumentTextEvents.VTable, @ptrCast(self.vtable)).onDestroy(@as(*const IDebugDocumentTextEvents, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugDocumentTextEvents_onInsertText(self: *const T, cCharacterPosition: u32, cNumToInsert: u32) HRESULT { return @as(*const IDebugDocumentTextEvents.VTable, @ptrCast(self.vtable)).onInsertText(@as(*const IDebugDocumentTextEvents, @ptrCast(self)), cCharacterPosition, cNumToInsert); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugDocumentTextEvents_onRemoveText(self: *const T, cCharacterPosition: u32, cNumToRemove: u32) HRESULT { return @as(*const IDebugDocumentTextEvents.VTable, @ptrCast(self.vtable)).onRemoveText(@as(*const IDebugDocumentTextEvents, @ptrCast(self)), cCharacterPosition, cNumToRemove); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugDocumentTextEvents_onReplaceText(self: *const T, cCharacterPosition: u32, cNumToReplace: u32) HRESULT { return @as(*const IDebugDocumentTextEvents.VTable, @ptrCast(self.vtable)).onReplaceText(@as(*const IDebugDocumentTextEvents, @ptrCast(self)), cCharacterPosition, cNumToReplace); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugDocumentTextEvents_onUpdateTextAttributes(self: *const T, cCharacterPosition: u32, cNumToUpdate: u32) HRESULT { return @as(*const IDebugDocumentTextEvents.VTable, @ptrCast(self.vtable)).onUpdateTextAttributes(@as(*const IDebugDocumentTextEvents, @ptrCast(self)), cCharacterPosition, cNumToUpdate); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugDocumentTextEvents_onUpdateDocumentAttributes(self: *const T, textdocattr: u32) HRESULT { return @as(*const IDebugDocumentTextEvents.VTable, @ptrCast(self.vtable)).onUpdateDocumentAttributes(@as(*const IDebugDocumentTextEvents, @ptrCast(self)), textdocattr); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IDebugDocumentTextAuthor_Value = Guid.initString("51973c24-cb0c-11d0-b5c9-00a0244a0e7a"); pub const IID_IDebugDocumentTextAuthor = &IID_IDebugDocumentTextAuthor_Value; pub const IDebugDocumentTextAuthor = extern struct { pub const VTable = extern struct { base: IDebugDocumentText.VTable, InsertText: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugDocumentTextAuthor, cCharacterPosition: u32, cNumToInsert: u32, pcharText: [*:0]u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugDocumentTextAuthor, cCharacterPosition: u32, cNumToInsert: u32, pcharText: [*:0]u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, RemoveText: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugDocumentTextAuthor, cCharacterPosition: u32, cNumToRemove: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugDocumentTextAuthor, cCharacterPosition: u32, cNumToRemove: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, ReplaceText: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugDocumentTextAuthor, cCharacterPosition: u32, cNumToReplace: u32, pcharText: [*:0]u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugDocumentTextAuthor, cCharacterPosition: u32, cNumToReplace: u32, pcharText: [*:0]u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IDebugDocumentText.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugDocumentTextAuthor_InsertText(self: *const T, cCharacterPosition: u32, cNumToInsert: u32, pcharText: [*:0]u16) HRESULT { return @as(*const IDebugDocumentTextAuthor.VTable, @ptrCast(self.vtable)).InsertText(@as(*const IDebugDocumentTextAuthor, @ptrCast(self)), cCharacterPosition, cNumToInsert, pcharText); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugDocumentTextAuthor_RemoveText(self: *const T, cCharacterPosition: u32, cNumToRemove: u32) HRESULT { return @as(*const IDebugDocumentTextAuthor.VTable, @ptrCast(self.vtable)).RemoveText(@as(*const IDebugDocumentTextAuthor, @ptrCast(self)), cCharacterPosition, cNumToRemove); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugDocumentTextAuthor_ReplaceText(self: *const T, cCharacterPosition: u32, cNumToReplace: u32, pcharText: [*:0]u16) HRESULT { return @as(*const IDebugDocumentTextAuthor.VTable, @ptrCast(self.vtable)).ReplaceText(@as(*const IDebugDocumentTextAuthor, @ptrCast(self)), cCharacterPosition, cNumToReplace, pcharText); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IDebugDocumentTextExternalAuthor_Value = Guid.initString("51973c25-cb0c-11d0-b5c9-00a0244a0e7a"); pub const IID_IDebugDocumentTextExternalAuthor = &IID_IDebugDocumentTextExternalAuthor_Value; pub const IDebugDocumentTextExternalAuthor = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, GetPathName: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugDocumentTextExternalAuthor, pbstrLongName: ?*?BSTR, pfIsOriginalFile: ?*BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugDocumentTextExternalAuthor, pbstrLongName: ?*?BSTR, pfIsOriginalFile: ?*BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetFileName: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugDocumentTextExternalAuthor, pbstrShortName: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugDocumentTextExternalAuthor, pbstrShortName: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, NotifyChanged: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugDocumentTextExternalAuthor, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugDocumentTextExternalAuthor, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugDocumentTextExternalAuthor_GetPathName(self: *const T, pbstrLongName: ?*?BSTR, pfIsOriginalFile: ?*BOOL) HRESULT { return @as(*const IDebugDocumentTextExternalAuthor.VTable, @ptrCast(self.vtable)).GetPathName(@as(*const IDebugDocumentTextExternalAuthor, @ptrCast(self)), pbstrLongName, pfIsOriginalFile); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugDocumentTextExternalAuthor_GetFileName(self: *const T, pbstrShortName: ?*?BSTR) HRESULT { return @as(*const IDebugDocumentTextExternalAuthor.VTable, @ptrCast(self.vtable)).GetFileName(@as(*const IDebugDocumentTextExternalAuthor, @ptrCast(self)), pbstrShortName); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugDocumentTextExternalAuthor_NotifyChanged(self: *const T) HRESULT { return @as(*const IDebugDocumentTextExternalAuthor.VTable, @ptrCast(self.vtable)).NotifyChanged(@as(*const IDebugDocumentTextExternalAuthor, @ptrCast(self))); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IDebugDocumentHelper32_Value = Guid.initString("51973c26-cb0c-11d0-b5c9-00a0244a0e7a"); pub const IID_IDebugDocumentHelper32 = &IID_IDebugDocumentHelper32_Value; pub const IDebugDocumentHelper32 = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, Init: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugDocumentHelper32, pda: ?*IDebugApplication32, pszShortName: ?[*:0]const u16, pszLongName: ?[*:0]const u16, docAttr: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugDocumentHelper32, pda: ?*IDebugApplication32, pszShortName: ?[*:0]const u16, pszLongName: ?[*:0]const u16, docAttr: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Attach: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugDocumentHelper32, pddhParent: ?*IDebugDocumentHelper32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugDocumentHelper32, pddhParent: ?*IDebugDocumentHelper32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Detach: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugDocumentHelper32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugDocumentHelper32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, AddUnicodeText: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugDocumentHelper32, pszText: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugDocumentHelper32, pszText: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, AddDBCSText: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugDocumentHelper32, pszText: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugDocumentHelper32, pszText: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetDebugDocumentHost: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugDocumentHelper32, pddh: ?*IDebugDocumentHost, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugDocumentHelper32, pddh: ?*IDebugDocumentHost, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, AddDeferredText: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugDocumentHelper32, cChars: u32, dwTextStartCookie: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugDocumentHelper32, cChars: u32, dwTextStartCookie: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, DefineScriptBlock: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugDocumentHelper32, ulCharOffset: u32, cChars: u32, pas: ?*IActiveScript, fScriptlet: BOOL, pdwSourceContext: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugDocumentHelper32, ulCharOffset: u32, cChars: u32, pas: ?*IActiveScript, fScriptlet: BOOL, pdwSourceContext: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetDefaultTextAttr: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugDocumentHelper32, staTextAttr: u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugDocumentHelper32, staTextAttr: u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetTextAttributes: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugDocumentHelper32, ulCharOffset: u32, cChars: u32, pstaTextAttr: [*:0]u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugDocumentHelper32, ulCharOffset: u32, cChars: u32, pstaTextAttr: [*:0]u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetLongName: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugDocumentHelper32, pszLongName: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugDocumentHelper32, pszLongName: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetShortName: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugDocumentHelper32, pszShortName: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugDocumentHelper32, pszShortName: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetDocumentAttr: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugDocumentHelper32, pszAttributes: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugDocumentHelper32, pszAttributes: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetDebugApplicationNode: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugDocumentHelper32, ppdan: ?*?*IDebugApplicationNode, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugDocumentHelper32, ppdan: ?*?*IDebugApplicationNode, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetScriptBlockInfo: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugDocumentHelper32, dwSourceContext: u32, ppasd: ?*?*IActiveScript, piCharPos: ?*u32, pcChars: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugDocumentHelper32, dwSourceContext: u32, ppasd: ?*?*IActiveScript, piCharPos: ?*u32, pcChars: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, CreateDebugDocumentContext: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugDocumentHelper32, iCharPos: u32, cChars: u32, ppddc: ?*?*IDebugDocumentContext, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugDocumentHelper32, iCharPos: u32, cChars: u32, ppddc: ?*?*IDebugDocumentContext, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, BringDocumentToTop: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugDocumentHelper32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugDocumentHelper32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, BringDocumentContextToTop: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugDocumentHelper32, pddc: ?*IDebugDocumentContext, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugDocumentHelper32, pddc: ?*IDebugDocumentContext, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugDocumentHelper32_Init(self: *const T, pda: ?*IDebugApplication32, pszShortName: ?[*:0]const u16, pszLongName: ?[*:0]const u16, docAttr: u32) HRESULT { return @as(*const IDebugDocumentHelper32.VTable, @ptrCast(self.vtable)).Init(@as(*const IDebugDocumentHelper32, @ptrCast(self)), pda, pszShortName, pszLongName, docAttr); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugDocumentHelper32_Attach(self: *const T, pddhParent: ?*IDebugDocumentHelper32) HRESULT { return @as(*const IDebugDocumentHelper32.VTable, @ptrCast(self.vtable)).Attach(@as(*const IDebugDocumentHelper32, @ptrCast(self)), pddhParent); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugDocumentHelper32_Detach(self: *const T) HRESULT { return @as(*const IDebugDocumentHelper32.VTable, @ptrCast(self.vtable)).Detach(@as(*const IDebugDocumentHelper32, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugDocumentHelper32_AddUnicodeText(self: *const T, pszText: ?[*:0]const u16) HRESULT { return @as(*const IDebugDocumentHelper32.VTable, @ptrCast(self.vtable)).AddUnicodeText(@as(*const IDebugDocumentHelper32, @ptrCast(self)), pszText); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugDocumentHelper32_AddDBCSText(self: *const T, pszText: ?[*:0]const u8) HRESULT { return @as(*const IDebugDocumentHelper32.VTable, @ptrCast(self.vtable)).AddDBCSText(@as(*const IDebugDocumentHelper32, @ptrCast(self)), pszText); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugDocumentHelper32_SetDebugDocumentHost(self: *const T, pddh: ?*IDebugDocumentHost) HRESULT { return @as(*const IDebugDocumentHelper32.VTable, @ptrCast(self.vtable)).SetDebugDocumentHost(@as(*const IDebugDocumentHelper32, @ptrCast(self)), pddh); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugDocumentHelper32_AddDeferredText(self: *const T, cChars: u32, dwTextStartCookie: u32) HRESULT { return @as(*const IDebugDocumentHelper32.VTable, @ptrCast(self.vtable)).AddDeferredText(@as(*const IDebugDocumentHelper32, @ptrCast(self)), cChars, dwTextStartCookie); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugDocumentHelper32_DefineScriptBlock(self: *const T, ulCharOffset: u32, cChars: u32, pas: ?*IActiveScript, fScriptlet: BOOL, pdwSourceContext: ?*u32) HRESULT { return @as(*const IDebugDocumentHelper32.VTable, @ptrCast(self.vtable)).DefineScriptBlock(@as(*const IDebugDocumentHelper32, @ptrCast(self)), ulCharOffset, cChars, pas, fScriptlet, pdwSourceContext); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugDocumentHelper32_SetDefaultTextAttr(self: *const T, staTextAttr: u16) HRESULT { return @as(*const IDebugDocumentHelper32.VTable, @ptrCast(self.vtable)).SetDefaultTextAttr(@as(*const IDebugDocumentHelper32, @ptrCast(self)), staTextAttr); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugDocumentHelper32_SetTextAttributes(self: *const T, ulCharOffset: u32, cChars: u32, pstaTextAttr: [*:0]u16) HRESULT { return @as(*const IDebugDocumentHelper32.VTable, @ptrCast(self.vtable)).SetTextAttributes(@as(*const IDebugDocumentHelper32, @ptrCast(self)), ulCharOffset, cChars, pstaTextAttr); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugDocumentHelper32_SetLongName(self: *const T, pszLongName: ?[*:0]const u16) HRESULT { return @as(*const IDebugDocumentHelper32.VTable, @ptrCast(self.vtable)).SetLongName(@as(*const IDebugDocumentHelper32, @ptrCast(self)), pszLongName); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugDocumentHelper32_SetShortName(self: *const T, pszShortName: ?[*:0]const u16) HRESULT { return @as(*const IDebugDocumentHelper32.VTable, @ptrCast(self.vtable)).SetShortName(@as(*const IDebugDocumentHelper32, @ptrCast(self)), pszShortName); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugDocumentHelper32_SetDocumentAttr(self: *const T, pszAttributes: u32) HRESULT { return @as(*const IDebugDocumentHelper32.VTable, @ptrCast(self.vtable)).SetDocumentAttr(@as(*const IDebugDocumentHelper32, @ptrCast(self)), pszAttributes); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugDocumentHelper32_GetDebugApplicationNode(self: *const T, ppdan: ?*?*IDebugApplicationNode) HRESULT { return @as(*const IDebugDocumentHelper32.VTable, @ptrCast(self.vtable)).GetDebugApplicationNode(@as(*const IDebugDocumentHelper32, @ptrCast(self)), ppdan); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugDocumentHelper32_GetScriptBlockInfo(self: *const T, dwSourceContext: u32, ppasd: ?*?*IActiveScript, piCharPos: ?*u32, pcChars: ?*u32) HRESULT { return @as(*const IDebugDocumentHelper32.VTable, @ptrCast(self.vtable)).GetScriptBlockInfo(@as(*const IDebugDocumentHelper32, @ptrCast(self)), dwSourceContext, ppasd, piCharPos, pcChars); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugDocumentHelper32_CreateDebugDocumentContext(self: *const T, iCharPos: u32, cChars: u32, ppddc: ?*?*IDebugDocumentContext) HRESULT { return @as(*const IDebugDocumentHelper32.VTable, @ptrCast(self.vtable)).CreateDebugDocumentContext(@as(*const IDebugDocumentHelper32, @ptrCast(self)), iCharPos, cChars, ppddc); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugDocumentHelper32_BringDocumentToTop(self: *const T) HRESULT { return @as(*const IDebugDocumentHelper32.VTable, @ptrCast(self.vtable)).BringDocumentToTop(@as(*const IDebugDocumentHelper32, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugDocumentHelper32_BringDocumentContextToTop(self: *const T, pddc: ?*IDebugDocumentContext) HRESULT { return @as(*const IDebugDocumentHelper32.VTable, @ptrCast(self.vtable)).BringDocumentContextToTop(@as(*const IDebugDocumentHelper32, @ptrCast(self)), pddc); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IDebugDocumentHelper64_Value = Guid.initString("c4c7363c-20fd-47f9-bd82-4855e0150871"); pub const IID_IDebugDocumentHelper64 = &IID_IDebugDocumentHelper64_Value; pub const IDebugDocumentHelper64 = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, Init: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugDocumentHelper64, pda: ?*IDebugApplication64, pszShortName: ?[*:0]const u16, pszLongName: ?[*:0]const u16, docAttr: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugDocumentHelper64, pda: ?*IDebugApplication64, pszShortName: ?[*:0]const u16, pszLongName: ?[*:0]const u16, docAttr: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Attach: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugDocumentHelper64, pddhParent: ?*IDebugDocumentHelper64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugDocumentHelper64, pddhParent: ?*IDebugDocumentHelper64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Detach: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugDocumentHelper64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugDocumentHelper64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, AddUnicodeText: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugDocumentHelper64, pszText: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugDocumentHelper64, pszText: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, AddDBCSText: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugDocumentHelper64, pszText: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugDocumentHelper64, pszText: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetDebugDocumentHost: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugDocumentHelper64, pddh: ?*IDebugDocumentHost, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugDocumentHelper64, pddh: ?*IDebugDocumentHost, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, AddDeferredText: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugDocumentHelper64, cChars: u32, dwTextStartCookie: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugDocumentHelper64, cChars: u32, dwTextStartCookie: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, DefineScriptBlock: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugDocumentHelper64, ulCharOffset: u32, cChars: u32, pas: ?*IActiveScript, fScriptlet: BOOL, pdwSourceContext: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugDocumentHelper64, ulCharOffset: u32, cChars: u32, pas: ?*IActiveScript, fScriptlet: BOOL, pdwSourceContext: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetDefaultTextAttr: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugDocumentHelper64, staTextAttr: u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugDocumentHelper64, staTextAttr: u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetTextAttributes: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugDocumentHelper64, ulCharOffset: u32, cChars: u32, pstaTextAttr: [*:0]u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugDocumentHelper64, ulCharOffset: u32, cChars: u32, pstaTextAttr: [*:0]u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetLongName: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugDocumentHelper64, pszLongName: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugDocumentHelper64, pszLongName: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetShortName: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugDocumentHelper64, pszShortName: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugDocumentHelper64, pszShortName: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetDocumentAttr: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugDocumentHelper64, pszAttributes: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugDocumentHelper64, pszAttributes: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetDebugApplicationNode: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugDocumentHelper64, ppdan: ?*?*IDebugApplicationNode, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugDocumentHelper64, ppdan: ?*?*IDebugApplicationNode, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetScriptBlockInfo: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugDocumentHelper64, dwSourceContext: u64, ppasd: ?*?*IActiveScript, piCharPos: ?*u32, pcChars: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugDocumentHelper64, dwSourceContext: u64, ppasd: ?*?*IActiveScript, piCharPos: ?*u32, pcChars: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, CreateDebugDocumentContext: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugDocumentHelper64, iCharPos: u32, cChars: u32, ppddc: ?*?*IDebugDocumentContext, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugDocumentHelper64, iCharPos: u32, cChars: u32, ppddc: ?*?*IDebugDocumentContext, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, BringDocumentToTop: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugDocumentHelper64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugDocumentHelper64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, BringDocumentContextToTop: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugDocumentHelper64, pddc: ?*IDebugDocumentContext, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugDocumentHelper64, pddc: ?*IDebugDocumentContext, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugDocumentHelper64_Init(self: *const T, pda: ?*IDebugApplication64, pszShortName: ?[*:0]const u16, pszLongName: ?[*:0]const u16, docAttr: u32) HRESULT { return @as(*const IDebugDocumentHelper64.VTable, @ptrCast(self.vtable)).Init(@as(*const IDebugDocumentHelper64, @ptrCast(self)), pda, pszShortName, pszLongName, docAttr); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugDocumentHelper64_Attach(self: *const T, pddhParent: ?*IDebugDocumentHelper64) HRESULT { return @as(*const IDebugDocumentHelper64.VTable, @ptrCast(self.vtable)).Attach(@as(*const IDebugDocumentHelper64, @ptrCast(self)), pddhParent); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugDocumentHelper64_Detach(self: *const T) HRESULT { return @as(*const IDebugDocumentHelper64.VTable, @ptrCast(self.vtable)).Detach(@as(*const IDebugDocumentHelper64, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugDocumentHelper64_AddUnicodeText(self: *const T, pszText: ?[*:0]const u16) HRESULT { return @as(*const IDebugDocumentHelper64.VTable, @ptrCast(self.vtable)).AddUnicodeText(@as(*const IDebugDocumentHelper64, @ptrCast(self)), pszText); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugDocumentHelper64_AddDBCSText(self: *const T, pszText: ?[*:0]const u8) HRESULT { return @as(*const IDebugDocumentHelper64.VTable, @ptrCast(self.vtable)).AddDBCSText(@as(*const IDebugDocumentHelper64, @ptrCast(self)), pszText); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugDocumentHelper64_SetDebugDocumentHost(self: *const T, pddh: ?*IDebugDocumentHost) HRESULT { return @as(*const IDebugDocumentHelper64.VTable, @ptrCast(self.vtable)).SetDebugDocumentHost(@as(*const IDebugDocumentHelper64, @ptrCast(self)), pddh); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugDocumentHelper64_AddDeferredText(self: *const T, cChars: u32, dwTextStartCookie: u32) HRESULT { return @as(*const IDebugDocumentHelper64.VTable, @ptrCast(self.vtable)).AddDeferredText(@as(*const IDebugDocumentHelper64, @ptrCast(self)), cChars, dwTextStartCookie); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugDocumentHelper64_DefineScriptBlock(self: *const T, ulCharOffset: u32, cChars: u32, pas: ?*IActiveScript, fScriptlet: BOOL, pdwSourceContext: ?*u64) HRESULT { return @as(*const IDebugDocumentHelper64.VTable, @ptrCast(self.vtable)).DefineScriptBlock(@as(*const IDebugDocumentHelper64, @ptrCast(self)), ulCharOffset, cChars, pas, fScriptlet, pdwSourceContext); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugDocumentHelper64_SetDefaultTextAttr(self: *const T, staTextAttr: u16) HRESULT { return @as(*const IDebugDocumentHelper64.VTable, @ptrCast(self.vtable)).SetDefaultTextAttr(@as(*const IDebugDocumentHelper64, @ptrCast(self)), staTextAttr); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugDocumentHelper64_SetTextAttributes(self: *const T, ulCharOffset: u32, cChars: u32, pstaTextAttr: [*:0]u16) HRESULT { return @as(*const IDebugDocumentHelper64.VTable, @ptrCast(self.vtable)).SetTextAttributes(@as(*const IDebugDocumentHelper64, @ptrCast(self)), ulCharOffset, cChars, pstaTextAttr); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugDocumentHelper64_SetLongName(self: *const T, pszLongName: ?[*:0]const u16) HRESULT { return @as(*const IDebugDocumentHelper64.VTable, @ptrCast(self.vtable)).SetLongName(@as(*const IDebugDocumentHelper64, @ptrCast(self)), pszLongName); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugDocumentHelper64_SetShortName(self: *const T, pszShortName: ?[*:0]const u16) HRESULT { return @as(*const IDebugDocumentHelper64.VTable, @ptrCast(self.vtable)).SetShortName(@as(*const IDebugDocumentHelper64, @ptrCast(self)), pszShortName); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugDocumentHelper64_SetDocumentAttr(self: *const T, pszAttributes: u32) HRESULT { return @as(*const IDebugDocumentHelper64.VTable, @ptrCast(self.vtable)).SetDocumentAttr(@as(*const IDebugDocumentHelper64, @ptrCast(self)), pszAttributes); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugDocumentHelper64_GetDebugApplicationNode(self: *const T, ppdan: ?*?*IDebugApplicationNode) HRESULT { return @as(*const IDebugDocumentHelper64.VTable, @ptrCast(self.vtable)).GetDebugApplicationNode(@as(*const IDebugDocumentHelper64, @ptrCast(self)), ppdan); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugDocumentHelper64_GetScriptBlockInfo(self: *const T, dwSourceContext: u64, ppasd: ?*?*IActiveScript, piCharPos: ?*u32, pcChars: ?*u32) HRESULT { return @as(*const IDebugDocumentHelper64.VTable, @ptrCast(self.vtable)).GetScriptBlockInfo(@as(*const IDebugDocumentHelper64, @ptrCast(self)), dwSourceContext, ppasd, piCharPos, pcChars); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugDocumentHelper64_CreateDebugDocumentContext(self: *const T, iCharPos: u32, cChars: u32, ppddc: ?*?*IDebugDocumentContext) HRESULT { return @as(*const IDebugDocumentHelper64.VTable, @ptrCast(self.vtable)).CreateDebugDocumentContext(@as(*const IDebugDocumentHelper64, @ptrCast(self)), iCharPos, cChars, ppddc); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugDocumentHelper64_BringDocumentToTop(self: *const T) HRESULT { return @as(*const IDebugDocumentHelper64.VTable, @ptrCast(self.vtable)).BringDocumentToTop(@as(*const IDebugDocumentHelper64, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugDocumentHelper64_BringDocumentContextToTop(self: *const T, pddc: ?*IDebugDocumentContext) HRESULT { return @as(*const IDebugDocumentHelper64.VTable, @ptrCast(self.vtable)).BringDocumentContextToTop(@as(*const IDebugDocumentHelper64, @ptrCast(self)), pddc); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IDebugDocumentHost_Value = Guid.initString("51973c27-cb0c-11d0-b5c9-00a0244a0e7a"); pub const IID_IDebugDocumentHost = &IID_IDebugDocumentHost_Value; pub const IDebugDocumentHost = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, GetDeferredText: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugDocumentHost, dwTextStartCookie: u32, pcharText: [*:0]u16, pstaTextAttr: [*:0]u16, pcNumChars: ?*u32, cMaxChars: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugDocumentHost, dwTextStartCookie: u32, pcharText: [*:0]u16, pstaTextAttr: [*:0]u16, pcNumChars: ?*u32, cMaxChars: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetScriptTextAttributes: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugDocumentHost, pstrCode: [*:0]const u16, uNumCodeChars: u32, pstrDelimiter: ?[*:0]const u16, dwFlags: u32, pattr: [*:0]u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugDocumentHost, pstrCode: [*:0]const u16, uNumCodeChars: u32, pstrDelimiter: ?[*:0]const u16, dwFlags: u32, pattr: [*:0]u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, OnCreateDocumentContext: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugDocumentHost, ppunkOuter: ?*?*IUnknown, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugDocumentHost, ppunkOuter: ?*?*IUnknown, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetPathName: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugDocumentHost, pbstrLongName: ?*?BSTR, pfIsOriginalFile: ?*BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugDocumentHost, pbstrLongName: ?*?BSTR, pfIsOriginalFile: ?*BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetFileName: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugDocumentHost, pbstrShortName: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugDocumentHost, pbstrShortName: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, NotifyChanged: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugDocumentHost, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugDocumentHost, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugDocumentHost_GetDeferredText(self: *const T, dwTextStartCookie: u32, pcharText: [*:0]u16, pstaTextAttr: [*:0]u16, pcNumChars: ?*u32, cMaxChars: u32) HRESULT { return @as(*const IDebugDocumentHost.VTable, @ptrCast(self.vtable)).GetDeferredText(@as(*const IDebugDocumentHost, @ptrCast(self)), dwTextStartCookie, pcharText, pstaTextAttr, pcNumChars, cMaxChars); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugDocumentHost_GetScriptTextAttributes(self: *const T, pstrCode: [*:0]const u16, uNumCodeChars: u32, pstrDelimiter: ?[*:0]const u16, dwFlags: u32, pattr: [*:0]u16) HRESULT { return @as(*const IDebugDocumentHost.VTable, @ptrCast(self.vtable)).GetScriptTextAttributes(@as(*const IDebugDocumentHost, @ptrCast(self)), pstrCode, uNumCodeChars, pstrDelimiter, dwFlags, pattr); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugDocumentHost_OnCreateDocumentContext(self: *const T, ppunkOuter: ?*?*IUnknown) HRESULT { return @as(*const IDebugDocumentHost.VTable, @ptrCast(self.vtable)).OnCreateDocumentContext(@as(*const IDebugDocumentHost, @ptrCast(self)), ppunkOuter); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugDocumentHost_GetPathName(self: *const T, pbstrLongName: ?*?BSTR, pfIsOriginalFile: ?*BOOL) HRESULT { return @as(*const IDebugDocumentHost.VTable, @ptrCast(self.vtable)).GetPathName(@as(*const IDebugDocumentHost, @ptrCast(self)), pbstrLongName, pfIsOriginalFile); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugDocumentHost_GetFileName(self: *const T, pbstrShortName: ?*?BSTR) HRESULT { return @as(*const IDebugDocumentHost.VTable, @ptrCast(self.vtable)).GetFileName(@as(*const IDebugDocumentHost, @ptrCast(self)), pbstrShortName); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugDocumentHost_NotifyChanged(self: *const T) HRESULT { return @as(*const IDebugDocumentHost.VTable, @ptrCast(self.vtable)).NotifyChanged(@as(*const IDebugDocumentHost, @ptrCast(self))); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IDebugDocumentContext_Value = Guid.initString("51973c28-cb0c-11d0-b5c9-00a0244a0e7a"); pub const IID_IDebugDocumentContext = &IID_IDebugDocumentContext_Value; pub const IDebugDocumentContext = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, GetDocument: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugDocumentContext, ppsd: ?*?*IDebugDocument, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugDocumentContext, ppsd: ?*?*IDebugDocument, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, EnumCodeContexts: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugDocumentContext, ppescc: ?*?*IEnumDebugCodeContexts, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugDocumentContext, ppescc: ?*?*IEnumDebugCodeContexts, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugDocumentContext_GetDocument(self: *const T, ppsd: ?*?*IDebugDocument) HRESULT { return @as(*const IDebugDocumentContext.VTable, @ptrCast(self.vtable)).GetDocument(@as(*const IDebugDocumentContext, @ptrCast(self)), ppsd); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugDocumentContext_EnumCodeContexts(self: *const T, ppescc: ?*?*IEnumDebugCodeContexts) HRESULT { return @as(*const IDebugDocumentContext.VTable, @ptrCast(self.vtable)).EnumCodeContexts(@as(*const IDebugDocumentContext, @ptrCast(self)), ppescc); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IDebugSessionProvider_Value = Guid.initString("51973c29-cb0c-11d0-b5c9-00a0244a0e7a"); pub const IID_IDebugSessionProvider = &IID_IDebugSessionProvider_Value; pub const IDebugSessionProvider = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, StartDebugSession: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugSessionProvider, pda: ?*IRemoteDebugApplication, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugSessionProvider, pda: ?*IRemoteDebugApplication, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugSessionProvider_StartDebugSession(self: *const T, pda: ?*IRemoteDebugApplication) HRESULT { return @as(*const IDebugSessionProvider.VTable, @ptrCast(self.vtable)).StartDebugSession(@as(*const IDebugSessionProvider, @ptrCast(self)), pda); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IApplicationDebugger_Value = Guid.initString("51973c2a-cb0c-11d0-b5c9-00a0244a0e7a"); pub const IID_IApplicationDebugger = &IID_IApplicationDebugger_Value; pub const IApplicationDebugger = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, QueryAlive: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IApplicationDebugger, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IApplicationDebugger, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, CreateInstanceAtDebugger: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IApplicationDebugger, rclsid: ?*const Guid, pUnkOuter: ?*IUnknown, dwClsContext: u32, riid: ?*const Guid, ppvObject: ?*?*IUnknown, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IApplicationDebugger, rclsid: ?*const Guid, pUnkOuter: ?*IUnknown, dwClsContext: u32, riid: ?*const Guid, ppvObject: ?*?*IUnknown, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, onDebugOutput: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IApplicationDebugger, pstr: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IApplicationDebugger, pstr: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, onHandleBreakPoint: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IApplicationDebugger, prpt: ?*IRemoteDebugApplicationThread, br: BREAKREASON, pError: ?*IActiveScriptErrorDebug, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IApplicationDebugger, prpt: ?*IRemoteDebugApplicationThread, br: BREAKREASON, pError: ?*IActiveScriptErrorDebug, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, onClose: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IApplicationDebugger, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IApplicationDebugger, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, onDebuggerEvent: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IApplicationDebugger, riid: ?*const Guid, punk: ?*IUnknown, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IApplicationDebugger, riid: ?*const Guid, punk: ?*IUnknown, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IApplicationDebugger_QueryAlive(self: *const T) HRESULT { return @as(*const IApplicationDebugger.VTable, @ptrCast(self.vtable)).QueryAlive(@as(*const IApplicationDebugger, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IApplicationDebugger_CreateInstanceAtDebugger(self: *const T, rclsid: ?*const Guid, pUnkOuter: ?*IUnknown, dwClsContext: u32, riid: ?*const Guid, ppvObject: ?*?*IUnknown) HRESULT { return @as(*const IApplicationDebugger.VTable, @ptrCast(self.vtable)).CreateInstanceAtDebugger(@as(*const IApplicationDebugger, @ptrCast(self)), rclsid, pUnkOuter, dwClsContext, riid, ppvObject); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IApplicationDebugger_onDebugOutput(self: *const T, pstr: ?[*:0]const u16) HRESULT { return @as(*const IApplicationDebugger.VTable, @ptrCast(self.vtable)).onDebugOutput(@as(*const IApplicationDebugger, @ptrCast(self)), pstr); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IApplicationDebugger_onHandleBreakPoint(self: *const T, prpt: ?*IRemoteDebugApplicationThread, br: BREAKREASON, pError: ?*IActiveScriptErrorDebug) HRESULT { return @as(*const IApplicationDebugger.VTable, @ptrCast(self.vtable)).onHandleBreakPoint(@as(*const IApplicationDebugger, @ptrCast(self)), prpt, br, pError); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IApplicationDebugger_onClose(self: *const T) HRESULT { return @as(*const IApplicationDebugger.VTable, @ptrCast(self.vtable)).onClose(@as(*const IApplicationDebugger, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IApplicationDebugger_onDebuggerEvent(self: *const T, riid: ?*const Guid, punk: ?*IUnknown) HRESULT { return @as(*const IApplicationDebugger.VTable, @ptrCast(self.vtable)).onDebuggerEvent(@as(*const IApplicationDebugger, @ptrCast(self)), riid, punk); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IApplicationDebuggerUI_Value = Guid.initString("51973c2b-cb0c-11d0-b5c9-00a0244a0e7a"); pub const IID_IApplicationDebuggerUI = &IID_IApplicationDebuggerUI_Value; pub const IApplicationDebuggerUI = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, BringDocumentToTop: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IApplicationDebuggerUI, pddt: ?*IDebugDocumentText, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IApplicationDebuggerUI, pddt: ?*IDebugDocumentText, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, BringDocumentContextToTop: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IApplicationDebuggerUI, pddc: ?*IDebugDocumentContext, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IApplicationDebuggerUI, pddc: ?*IDebugDocumentContext, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IApplicationDebuggerUI_BringDocumentToTop(self: *const T, pddt: ?*IDebugDocumentText) HRESULT { return @as(*const IApplicationDebuggerUI.VTable, @ptrCast(self.vtable)).BringDocumentToTop(@as(*const IApplicationDebuggerUI, @ptrCast(self)), pddt); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IApplicationDebuggerUI_BringDocumentContextToTop(self: *const T, pddc: ?*IDebugDocumentContext) HRESULT { return @as(*const IApplicationDebuggerUI.VTable, @ptrCast(self.vtable)).BringDocumentContextToTop(@as(*const IApplicationDebuggerUI, @ptrCast(self)), pddc); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IMachineDebugManager_Value = Guid.initString("51973c2c-cb0c-11d0-b5c9-00a0244a0e7a"); pub const IID_IMachineDebugManager = &IID_IMachineDebugManager_Value; pub const IMachineDebugManager = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, AddApplication: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IMachineDebugManager, pda: ?*IRemoteDebugApplication, pdwAppCookie: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IMachineDebugManager, pda: ?*IRemoteDebugApplication, pdwAppCookie: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, RemoveApplication: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IMachineDebugManager, dwAppCookie: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IMachineDebugManager, dwAppCookie: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, EnumApplications: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IMachineDebugManager, ppeda: ?*?*IEnumRemoteDebugApplications, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IMachineDebugManager, ppeda: ?*?*IEnumRemoteDebugApplications, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMachineDebugManager_AddApplication(self: *const T, pda: ?*IRemoteDebugApplication, pdwAppCookie: ?*u32) HRESULT { return @as(*const IMachineDebugManager.VTable, @ptrCast(self.vtable)).AddApplication(@as(*const IMachineDebugManager, @ptrCast(self)), pda, pdwAppCookie); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMachineDebugManager_RemoveApplication(self: *const T, dwAppCookie: u32) HRESULT { return @as(*const IMachineDebugManager.VTable, @ptrCast(self.vtable)).RemoveApplication(@as(*const IMachineDebugManager, @ptrCast(self)), dwAppCookie); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMachineDebugManager_EnumApplications(self: *const T, ppeda: ?*?*IEnumRemoteDebugApplications) HRESULT { return @as(*const IMachineDebugManager.VTable, @ptrCast(self.vtable)).EnumApplications(@as(*const IMachineDebugManager, @ptrCast(self)), ppeda); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IMachineDebugManagerCookie_Value = Guid.initString("51973c2d-cb0c-11d0-b5c9-00a0244a0e7a"); pub const IID_IMachineDebugManagerCookie = &IID_IMachineDebugManagerCookie_Value; pub const IMachineDebugManagerCookie = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, AddApplication: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IMachineDebugManagerCookie, pda: ?*IRemoteDebugApplication, dwDebugAppCookie: u32, pdwAppCookie: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IMachineDebugManagerCookie, pda: ?*IRemoteDebugApplication, dwDebugAppCookie: u32, pdwAppCookie: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, RemoveApplication: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IMachineDebugManagerCookie, dwDebugAppCookie: u32, dwAppCookie: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IMachineDebugManagerCookie, dwDebugAppCookie: u32, dwAppCookie: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, EnumApplications: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IMachineDebugManagerCookie, ppeda: ?*?*IEnumRemoteDebugApplications, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IMachineDebugManagerCookie, ppeda: ?*?*IEnumRemoteDebugApplications, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMachineDebugManagerCookie_AddApplication(self: *const T, pda: ?*IRemoteDebugApplication, dwDebugAppCookie: u32, pdwAppCookie: ?*u32) HRESULT { return @as(*const IMachineDebugManagerCookie.VTable, @ptrCast(self.vtable)).AddApplication(@as(*const IMachineDebugManagerCookie, @ptrCast(self)), pda, dwDebugAppCookie, pdwAppCookie); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMachineDebugManagerCookie_RemoveApplication(self: *const T, dwDebugAppCookie: u32, dwAppCookie: u32) HRESULT { return @as(*const IMachineDebugManagerCookie.VTable, @ptrCast(self.vtable)).RemoveApplication(@as(*const IMachineDebugManagerCookie, @ptrCast(self)), dwDebugAppCookie, dwAppCookie); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMachineDebugManagerCookie_EnumApplications(self: *const T, ppeda: ?*?*IEnumRemoteDebugApplications) HRESULT { return @as(*const IMachineDebugManagerCookie.VTable, @ptrCast(self.vtable)).EnumApplications(@as(*const IMachineDebugManagerCookie, @ptrCast(self)), ppeda); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IMachineDebugManagerEvents_Value = Guid.initString("51973c2e-cb0c-11d0-b5c9-00a0244a0e7a"); pub const IID_IMachineDebugManagerEvents = &IID_IMachineDebugManagerEvents_Value; pub const IMachineDebugManagerEvents = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, onAddApplication: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IMachineDebugManagerEvents, pda: ?*IRemoteDebugApplication, dwAppCookie: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IMachineDebugManagerEvents, pda: ?*IRemoteDebugApplication, dwAppCookie: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, onRemoveApplication: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IMachineDebugManagerEvents, pda: ?*IRemoteDebugApplication, dwAppCookie: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IMachineDebugManagerEvents, pda: ?*IRemoteDebugApplication, dwAppCookie: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMachineDebugManagerEvents_onAddApplication(self: *const T, pda: ?*IRemoteDebugApplication, dwAppCookie: u32) HRESULT { return @as(*const IMachineDebugManagerEvents.VTable, @ptrCast(self.vtable)).onAddApplication(@as(*const IMachineDebugManagerEvents, @ptrCast(self)), pda, dwAppCookie); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMachineDebugManagerEvents_onRemoveApplication(self: *const T, pda: ?*IRemoteDebugApplication, dwAppCookie: u32) HRESULT { return @as(*const IMachineDebugManagerEvents.VTable, @ptrCast(self.vtable)).onRemoveApplication(@as(*const IMachineDebugManagerEvents, @ptrCast(self)), pda, dwAppCookie); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IProcessDebugManager32_Value = Guid.initString("51973c2f-cb0c-11d0-b5c9-00a0244a0e7a"); pub const IID_IProcessDebugManager32 = &IID_IProcessDebugManager32_Value; pub const IProcessDebugManager32 = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, CreateApplication: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IProcessDebugManager32, ppda: ?*?*IDebugApplication32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IProcessDebugManager32, ppda: ?*?*IDebugApplication32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetDefaultApplication: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IProcessDebugManager32, ppda: ?*?*IDebugApplication32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IProcessDebugManager32, ppda: ?*?*IDebugApplication32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, AddApplication: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IProcessDebugManager32, pda: ?*IDebugApplication32, pdwAppCookie: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IProcessDebugManager32, pda: ?*IDebugApplication32, pdwAppCookie: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, RemoveApplication: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IProcessDebugManager32, dwAppCookie: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IProcessDebugManager32, dwAppCookie: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, CreateDebugDocumentHelper: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IProcessDebugManager32, punkOuter: ?*IUnknown, pddh: ?*?*IDebugDocumentHelper32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IProcessDebugManager32, punkOuter: ?*IUnknown, pddh: ?*?*IDebugDocumentHelper32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IProcessDebugManager32_CreateApplication(self: *const T, ppda: ?*?*IDebugApplication32) HRESULT { return @as(*const IProcessDebugManager32.VTable, @ptrCast(self.vtable)).CreateApplication(@as(*const IProcessDebugManager32, @ptrCast(self)), ppda); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IProcessDebugManager32_GetDefaultApplication(self: *const T, ppda: ?*?*IDebugApplication32) HRESULT { return @as(*const IProcessDebugManager32.VTable, @ptrCast(self.vtable)).GetDefaultApplication(@as(*const IProcessDebugManager32, @ptrCast(self)), ppda); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IProcessDebugManager32_AddApplication(self: *const T, pda: ?*IDebugApplication32, pdwAppCookie: ?*u32) HRESULT { return @as(*const IProcessDebugManager32.VTable, @ptrCast(self.vtable)).AddApplication(@as(*const IProcessDebugManager32, @ptrCast(self)), pda, pdwAppCookie); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IProcessDebugManager32_RemoveApplication(self: *const T, dwAppCookie: u32) HRESULT { return @as(*const IProcessDebugManager32.VTable, @ptrCast(self.vtable)).RemoveApplication(@as(*const IProcessDebugManager32, @ptrCast(self)), dwAppCookie); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IProcessDebugManager32_CreateDebugDocumentHelper(self: *const T, punkOuter: ?*IUnknown, pddh: ?*?*IDebugDocumentHelper32) HRESULT { return @as(*const IProcessDebugManager32.VTable, @ptrCast(self.vtable)).CreateDebugDocumentHelper(@as(*const IProcessDebugManager32, @ptrCast(self)), punkOuter, pddh); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IProcessDebugManager64_Value = Guid.initString("56b9fc1c-63a9-4cc1-ac21-087d69a17fab"); pub const IID_IProcessDebugManager64 = &IID_IProcessDebugManager64_Value; pub const IProcessDebugManager64 = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, CreateApplication: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IProcessDebugManager64, ppda: ?*?*IDebugApplication64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IProcessDebugManager64, ppda: ?*?*IDebugApplication64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetDefaultApplication: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IProcessDebugManager64, ppda: ?*?*IDebugApplication64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IProcessDebugManager64, ppda: ?*?*IDebugApplication64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, AddApplication: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IProcessDebugManager64, pda: ?*IDebugApplication64, pdwAppCookie: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IProcessDebugManager64, pda: ?*IDebugApplication64, pdwAppCookie: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, RemoveApplication: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IProcessDebugManager64, dwAppCookie: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IProcessDebugManager64, dwAppCookie: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, CreateDebugDocumentHelper: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IProcessDebugManager64, punkOuter: ?*IUnknown, pddh: ?*?*IDebugDocumentHelper64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IProcessDebugManager64, punkOuter: ?*IUnknown, pddh: ?*?*IDebugDocumentHelper64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IProcessDebugManager64_CreateApplication(self: *const T, ppda: ?*?*IDebugApplication64) HRESULT { return @as(*const IProcessDebugManager64.VTable, @ptrCast(self.vtable)).CreateApplication(@as(*const IProcessDebugManager64, @ptrCast(self)), ppda); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IProcessDebugManager64_GetDefaultApplication(self: *const T, ppda: ?*?*IDebugApplication64) HRESULT { return @as(*const IProcessDebugManager64.VTable, @ptrCast(self.vtable)).GetDefaultApplication(@as(*const IProcessDebugManager64, @ptrCast(self)), ppda); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IProcessDebugManager64_AddApplication(self: *const T, pda: ?*IDebugApplication64, pdwAppCookie: ?*u32) HRESULT { return @as(*const IProcessDebugManager64.VTable, @ptrCast(self.vtable)).AddApplication(@as(*const IProcessDebugManager64, @ptrCast(self)), pda, pdwAppCookie); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IProcessDebugManager64_RemoveApplication(self: *const T, dwAppCookie: u32) HRESULT { return @as(*const IProcessDebugManager64.VTable, @ptrCast(self.vtable)).RemoveApplication(@as(*const IProcessDebugManager64, @ptrCast(self)), dwAppCookie); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IProcessDebugManager64_CreateDebugDocumentHelper(self: *const T, punkOuter: ?*IUnknown, pddh: ?*?*IDebugDocumentHelper64) HRESULT { return @as(*const IProcessDebugManager64.VTable, @ptrCast(self.vtable)).CreateDebugDocumentHelper(@as(*const IProcessDebugManager64, @ptrCast(self)), punkOuter, pddh); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IRemoteDebugApplication_Value = Guid.initString("51973c30-cb0c-11d0-b5c9-00a0244a0e7a"); pub const IID_IRemoteDebugApplication = &IID_IRemoteDebugApplication_Value; pub const IRemoteDebugApplication = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, ResumeFromBreakPoint: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IRemoteDebugApplication, prptFocus: ?*IRemoteDebugApplicationThread, bra: BREAKRESUME_ACTION, era: ERRORRESUMEACTION, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IRemoteDebugApplication, prptFocus: ?*IRemoteDebugApplicationThread, bra: BREAKRESUME_ACTION, era: ERRORRESUMEACTION, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, CauseBreak: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IRemoteDebugApplication, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IRemoteDebugApplication, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, ConnectDebugger: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IRemoteDebugApplication, pad: ?*IApplicationDebugger, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IRemoteDebugApplication, pad: ?*IApplicationDebugger, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, DisconnectDebugger: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IRemoteDebugApplication, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IRemoteDebugApplication, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetDebugger: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IRemoteDebugApplication, pad: ?*?*IApplicationDebugger, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IRemoteDebugApplication, pad: ?*?*IApplicationDebugger, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, CreateInstanceAtApplication: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IRemoteDebugApplication, rclsid: ?*const Guid, pUnkOuter: ?*IUnknown, dwClsContext: u32, riid: ?*const Guid, ppvObject: ?*?*IUnknown, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IRemoteDebugApplication, rclsid: ?*const Guid, pUnkOuter: ?*IUnknown, dwClsContext: u32, riid: ?*const Guid, ppvObject: ?*?*IUnknown, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, QueryAlive: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IRemoteDebugApplication, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IRemoteDebugApplication, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, EnumThreads: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IRemoteDebugApplication, pperdat: ?*?*IEnumRemoteDebugApplicationThreads, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IRemoteDebugApplication, pperdat: ?*?*IEnumRemoteDebugApplicationThreads, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetName: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IRemoteDebugApplication, pbstrName: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IRemoteDebugApplication, pbstrName: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetRootNode: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IRemoteDebugApplication, ppdanRoot: ?*?*IDebugApplicationNode, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IRemoteDebugApplication, ppdanRoot: ?*?*IDebugApplicationNode, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, EnumGlobalExpressionContexts: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IRemoteDebugApplication, ppedec: ?*?*IEnumDebugExpressionContexts, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IRemoteDebugApplication, ppedec: ?*?*IEnumDebugExpressionContexts, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRemoteDebugApplication_ResumeFromBreakPoint(self: *const T, prptFocus: ?*IRemoteDebugApplicationThread, bra: BREAKRESUME_ACTION, era: ERRORRESUMEACTION) HRESULT { return @as(*const IRemoteDebugApplication.VTable, @ptrCast(self.vtable)).ResumeFromBreakPoint(@as(*const IRemoteDebugApplication, @ptrCast(self)), prptFocus, bra, era); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRemoteDebugApplication_CauseBreak(self: *const T) HRESULT { return @as(*const IRemoteDebugApplication.VTable, @ptrCast(self.vtable)).CauseBreak(@as(*const IRemoteDebugApplication, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRemoteDebugApplication_ConnectDebugger(self: *const T, pad: ?*IApplicationDebugger) HRESULT { return @as(*const IRemoteDebugApplication.VTable, @ptrCast(self.vtable)).ConnectDebugger(@as(*const IRemoteDebugApplication, @ptrCast(self)), pad); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRemoteDebugApplication_DisconnectDebugger(self: *const T) HRESULT { return @as(*const IRemoteDebugApplication.VTable, @ptrCast(self.vtable)).DisconnectDebugger(@as(*const IRemoteDebugApplication, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRemoteDebugApplication_GetDebugger(self: *const T, pad: ?*?*IApplicationDebugger) HRESULT { return @as(*const IRemoteDebugApplication.VTable, @ptrCast(self.vtable)).GetDebugger(@as(*const IRemoteDebugApplication, @ptrCast(self)), pad); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRemoteDebugApplication_CreateInstanceAtApplication(self: *const T, rclsid: ?*const Guid, pUnkOuter: ?*IUnknown, dwClsContext: u32, riid: ?*const Guid, ppvObject: ?*?*IUnknown) HRESULT { return @as(*const IRemoteDebugApplication.VTable, @ptrCast(self.vtable)).CreateInstanceAtApplication(@as(*const IRemoteDebugApplication, @ptrCast(self)), rclsid, pUnkOuter, dwClsContext, riid, ppvObject); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRemoteDebugApplication_QueryAlive(self: *const T) HRESULT { return @as(*const IRemoteDebugApplication.VTable, @ptrCast(self.vtable)).QueryAlive(@as(*const IRemoteDebugApplication, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRemoteDebugApplication_EnumThreads(self: *const T, pperdat: ?*?*IEnumRemoteDebugApplicationThreads) HRESULT { return @as(*const IRemoteDebugApplication.VTable, @ptrCast(self.vtable)).EnumThreads(@as(*const IRemoteDebugApplication, @ptrCast(self)), pperdat); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRemoteDebugApplication_GetName(self: *const T, pbstrName: ?*?BSTR) HRESULT { return @as(*const IRemoteDebugApplication.VTable, @ptrCast(self.vtable)).GetName(@as(*const IRemoteDebugApplication, @ptrCast(self)), pbstrName); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRemoteDebugApplication_GetRootNode(self: *const T, ppdanRoot: ?*?*IDebugApplicationNode) HRESULT { return @as(*const IRemoteDebugApplication.VTable, @ptrCast(self.vtable)).GetRootNode(@as(*const IRemoteDebugApplication, @ptrCast(self)), ppdanRoot); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRemoteDebugApplication_EnumGlobalExpressionContexts(self: *const T, ppedec: ?*?*IEnumDebugExpressionContexts) HRESULT { return @as(*const IRemoteDebugApplication.VTable, @ptrCast(self.vtable)).EnumGlobalExpressionContexts(@as(*const IRemoteDebugApplication, @ptrCast(self)), ppedec); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IDebugApplication32_Value = Guid.initString("51973c32-cb0c-11d0-b5c9-00a0244a0e7a"); pub const IID_IDebugApplication32 = &IID_IDebugApplication32_Value; pub const IDebugApplication32 = extern struct { pub const VTable = extern struct { base: IRemoteDebugApplication.VTable, SetName: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugApplication32, pstrName: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugApplication32, pstrName: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, StepOutComplete: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugApplication32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugApplication32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, DebugOutput: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugApplication32, pstr: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugApplication32, pstr: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, StartDebugSession: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugApplication32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugApplication32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, HandleBreakPoint: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugApplication32, br: BREAKREASON, pbra: ?*BREAKRESUME_ACTION, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugApplication32, br: BREAKREASON, pbra: ?*BREAKRESUME_ACTION, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Close: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugApplication32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugApplication32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetBreakFlags: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugApplication32, pabf: ?*u32, pprdatSteppingThread: ?*?*IRemoteDebugApplicationThread, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugApplication32, pabf: ?*u32, pprdatSteppingThread: ?*?*IRemoteDebugApplicationThread, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetCurrentThread: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugApplication32, pat: ?*?*IDebugApplicationThread, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugApplication32, pat: ?*?*IDebugApplicationThread, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, CreateAsyncDebugOperation: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugApplication32, psdo: ?*IDebugSyncOperation, ppado: ?*?*IDebugAsyncOperation, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugApplication32, psdo: ?*IDebugSyncOperation, ppado: ?*?*IDebugAsyncOperation, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, AddStackFrameSniffer: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugApplication32, pdsfs: ?*IDebugStackFrameSniffer, pdwCookie: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugApplication32, pdsfs: ?*IDebugStackFrameSniffer, pdwCookie: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, RemoveStackFrameSniffer: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugApplication32, dwCookie: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugApplication32, dwCookie: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, QueryCurrentThreadIsDebuggerThread: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugApplication32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugApplication32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SynchronousCallInDebuggerThread: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugApplication32, pptc: ?*IDebugThreadCall32, dwParam1: u32, dwParam2: u32, dwParam3: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugApplication32, pptc: ?*IDebugThreadCall32, dwParam1: u32, dwParam2: u32, dwParam3: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, CreateApplicationNode: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugApplication32, ppdanNew: ?*?*IDebugApplicationNode, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugApplication32, ppdanNew: ?*?*IDebugApplicationNode, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, FireDebuggerEvent: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugApplication32, riid: ?*const Guid, punk: ?*IUnknown, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugApplication32, riid: ?*const Guid, punk: ?*IUnknown, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, HandleRuntimeError: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugApplication32, pErrorDebug: ?*IActiveScriptErrorDebug, pScriptSite: ?*IActiveScriptSite, pbra: ?*BREAKRESUME_ACTION, perra: ?*ERRORRESUMEACTION, pfCallOnScriptError: ?*BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugApplication32, pErrorDebug: ?*IActiveScriptErrorDebug, pScriptSite: ?*IActiveScriptSite, pbra: ?*BREAKRESUME_ACTION, perra: ?*ERRORRESUMEACTION, pfCallOnScriptError: ?*BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, FCanJitDebug: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugApplication32, ) callconv(@import("std").os.windows.WINAPI) BOOL, else => *const fn ( self: *const IDebugApplication32, ) callconv(@import("std").os.windows.WINAPI) BOOL, }, FIsAutoJitDebugEnabled: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugApplication32, ) callconv(@import("std").os.windows.WINAPI) BOOL, else => *const fn ( self: *const IDebugApplication32, ) callconv(@import("std").os.windows.WINAPI) BOOL, }, AddGlobalExpressionContextProvider: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugApplication32, pdsfs: ?*IProvideExpressionContexts, pdwCookie: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugApplication32, pdsfs: ?*IProvideExpressionContexts, pdwCookie: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, RemoveGlobalExpressionContextProvider: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugApplication32, dwCookie: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugApplication32, dwCookie: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IRemoteDebugApplication.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugApplication32_SetName(self: *const T, pstrName: ?[*:0]const u16) HRESULT { return @as(*const IDebugApplication32.VTable, @ptrCast(self.vtable)).SetName(@as(*const IDebugApplication32, @ptrCast(self)), pstrName); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugApplication32_StepOutComplete(self: *const T) HRESULT { return @as(*const IDebugApplication32.VTable, @ptrCast(self.vtable)).StepOutComplete(@as(*const IDebugApplication32, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugApplication32_DebugOutput(self: *const T, pstr: ?[*:0]const u16) HRESULT { return @as(*const IDebugApplication32.VTable, @ptrCast(self.vtable)).DebugOutput(@as(*const IDebugApplication32, @ptrCast(self)), pstr); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugApplication32_StartDebugSession(self: *const T) HRESULT { return @as(*const IDebugApplication32.VTable, @ptrCast(self.vtable)).StartDebugSession(@as(*const IDebugApplication32, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugApplication32_HandleBreakPoint(self: *const T, br: BREAKREASON, pbra: ?*BREAKRESUME_ACTION) HRESULT { return @as(*const IDebugApplication32.VTable, @ptrCast(self.vtable)).HandleBreakPoint(@as(*const IDebugApplication32, @ptrCast(self)), br, pbra); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugApplication32_Close(self: *const T) HRESULT { return @as(*const IDebugApplication32.VTable, @ptrCast(self.vtable)).Close(@as(*const IDebugApplication32, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugApplication32_GetBreakFlags(self: *const T, pabf: ?*u32, pprdatSteppingThread: ?*?*IRemoteDebugApplicationThread) HRESULT { return @as(*const IDebugApplication32.VTable, @ptrCast(self.vtable)).GetBreakFlags(@as(*const IDebugApplication32, @ptrCast(self)), pabf, pprdatSteppingThread); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugApplication32_GetCurrentThread(self: *const T, pat: ?*?*IDebugApplicationThread) HRESULT { return @as(*const IDebugApplication32.VTable, @ptrCast(self.vtable)).GetCurrentThread(@as(*const IDebugApplication32, @ptrCast(self)), pat); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugApplication32_CreateAsyncDebugOperation(self: *const T, psdo: ?*IDebugSyncOperation, ppado: ?*?*IDebugAsyncOperation) HRESULT { return @as(*const IDebugApplication32.VTable, @ptrCast(self.vtable)).CreateAsyncDebugOperation(@as(*const IDebugApplication32, @ptrCast(self)), psdo, ppado); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugApplication32_AddStackFrameSniffer(self: *const T, pdsfs: ?*IDebugStackFrameSniffer, pdwCookie: ?*u32) HRESULT { return @as(*const IDebugApplication32.VTable, @ptrCast(self.vtable)).AddStackFrameSniffer(@as(*const IDebugApplication32, @ptrCast(self)), pdsfs, pdwCookie); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugApplication32_RemoveStackFrameSniffer(self: *const T, dwCookie: u32) HRESULT { return @as(*const IDebugApplication32.VTable, @ptrCast(self.vtable)).RemoveStackFrameSniffer(@as(*const IDebugApplication32, @ptrCast(self)), dwCookie); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugApplication32_QueryCurrentThreadIsDebuggerThread(self: *const T) HRESULT { return @as(*const IDebugApplication32.VTable, @ptrCast(self.vtable)).QueryCurrentThreadIsDebuggerThread(@as(*const IDebugApplication32, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugApplication32_SynchronousCallInDebuggerThread(self: *const T, pptc: ?*IDebugThreadCall32, dwParam1: u32, dwParam2: u32, dwParam3: u32) HRESULT { return @as(*const IDebugApplication32.VTable, @ptrCast(self.vtable)).SynchronousCallInDebuggerThread(@as(*const IDebugApplication32, @ptrCast(self)), pptc, dwParam1, dwParam2, dwParam3); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugApplication32_CreateApplicationNode(self: *const T, ppdanNew: ?*?*IDebugApplicationNode) HRESULT { return @as(*const IDebugApplication32.VTable, @ptrCast(self.vtable)).CreateApplicationNode(@as(*const IDebugApplication32, @ptrCast(self)), ppdanNew); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugApplication32_FireDebuggerEvent(self: *const T, riid: ?*const Guid, punk: ?*IUnknown) HRESULT { return @as(*const IDebugApplication32.VTable, @ptrCast(self.vtable)).FireDebuggerEvent(@as(*const IDebugApplication32, @ptrCast(self)), riid, punk); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugApplication32_HandleRuntimeError(self: *const T, pErrorDebug: ?*IActiveScriptErrorDebug, pScriptSite: ?*IActiveScriptSite, pbra: ?*BREAKRESUME_ACTION, perra: ?*ERRORRESUMEACTION, pfCallOnScriptError: ?*BOOL) HRESULT { return @as(*const IDebugApplication32.VTable, @ptrCast(self.vtable)).HandleRuntimeError(@as(*const IDebugApplication32, @ptrCast(self)), pErrorDebug, pScriptSite, pbra, perra, pfCallOnScriptError); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugApplication32_FCanJitDebug(self: *const T) BOOL { return @as(*const IDebugApplication32.VTable, @ptrCast(self.vtable)).FCanJitDebug(@as(*const IDebugApplication32, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugApplication32_FIsAutoJitDebugEnabled(self: *const T) BOOL { return @as(*const IDebugApplication32.VTable, @ptrCast(self.vtable)).FIsAutoJitDebugEnabled(@as(*const IDebugApplication32, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugApplication32_AddGlobalExpressionContextProvider(self: *const T, pdsfs: ?*IProvideExpressionContexts, pdwCookie: ?*u32) HRESULT { return @as(*const IDebugApplication32.VTable, @ptrCast(self.vtable)).AddGlobalExpressionContextProvider(@as(*const IDebugApplication32, @ptrCast(self)), pdsfs, pdwCookie); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugApplication32_RemoveGlobalExpressionContextProvider(self: *const T, dwCookie: u32) HRESULT { return @as(*const IDebugApplication32.VTable, @ptrCast(self.vtable)).RemoveGlobalExpressionContextProvider(@as(*const IDebugApplication32, @ptrCast(self)), dwCookie); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IDebugApplication64_Value = Guid.initString("4dedc754-04c7-4f10-9e60-16a390fe6e62"); pub const IID_IDebugApplication64 = &IID_IDebugApplication64_Value; pub const IDebugApplication64 = extern struct { pub const VTable = extern struct { base: IRemoteDebugApplication.VTable, SetName: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugApplication64, pstrName: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugApplication64, pstrName: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, StepOutComplete: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugApplication64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugApplication64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, DebugOutput: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugApplication64, pstr: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugApplication64, pstr: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, StartDebugSession: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugApplication64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugApplication64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, HandleBreakPoint: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugApplication64, br: BREAKREASON, pbra: ?*BREAKRESUME_ACTION, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugApplication64, br: BREAKREASON, pbra: ?*BREAKRESUME_ACTION, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Close: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugApplication64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugApplication64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetBreakFlags: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugApplication64, pabf: ?*u32, pprdatSteppingThread: ?*?*IRemoteDebugApplicationThread, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugApplication64, pabf: ?*u32, pprdatSteppingThread: ?*?*IRemoteDebugApplicationThread, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetCurrentThread: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugApplication64, pat: ?*?*IDebugApplicationThread, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugApplication64, pat: ?*?*IDebugApplicationThread, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, CreateAsyncDebugOperation: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugApplication64, psdo: ?*IDebugSyncOperation, ppado: ?*?*IDebugAsyncOperation, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugApplication64, psdo: ?*IDebugSyncOperation, ppado: ?*?*IDebugAsyncOperation, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, AddStackFrameSniffer: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugApplication64, pdsfs: ?*IDebugStackFrameSniffer, pdwCookie: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugApplication64, pdsfs: ?*IDebugStackFrameSniffer, pdwCookie: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, RemoveStackFrameSniffer: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugApplication64, dwCookie: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugApplication64, dwCookie: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, QueryCurrentThreadIsDebuggerThread: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugApplication64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugApplication64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SynchronousCallInDebuggerThread: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugApplication64, pptc: ?*IDebugThreadCall64, dwParam1: u64, dwParam2: u64, dwParam3: u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugApplication64, pptc: ?*IDebugThreadCall64, dwParam1: u64, dwParam2: u64, dwParam3: u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, CreateApplicationNode: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugApplication64, ppdanNew: ?*?*IDebugApplicationNode, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugApplication64, ppdanNew: ?*?*IDebugApplicationNode, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, FireDebuggerEvent: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugApplication64, riid: ?*const Guid, punk: ?*IUnknown, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugApplication64, riid: ?*const Guid, punk: ?*IUnknown, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, HandleRuntimeError: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugApplication64, pErrorDebug: ?*IActiveScriptErrorDebug, pScriptSite: ?*IActiveScriptSite, pbra: ?*BREAKRESUME_ACTION, perra: ?*ERRORRESUMEACTION, pfCallOnScriptError: ?*BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugApplication64, pErrorDebug: ?*IActiveScriptErrorDebug, pScriptSite: ?*IActiveScriptSite, pbra: ?*BREAKRESUME_ACTION, perra: ?*ERRORRESUMEACTION, pfCallOnScriptError: ?*BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, FCanJitDebug: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugApplication64, ) callconv(@import("std").os.windows.WINAPI) BOOL, else => *const fn ( self: *const IDebugApplication64, ) callconv(@import("std").os.windows.WINAPI) BOOL, }, FIsAutoJitDebugEnabled: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugApplication64, ) callconv(@import("std").os.windows.WINAPI) BOOL, else => *const fn ( self: *const IDebugApplication64, ) callconv(@import("std").os.windows.WINAPI) BOOL, }, AddGlobalExpressionContextProvider: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugApplication64, pdsfs: ?*IProvideExpressionContexts, pdwCookie: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugApplication64, pdsfs: ?*IProvideExpressionContexts, pdwCookie: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, RemoveGlobalExpressionContextProvider: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugApplication64, dwCookie: u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugApplication64, dwCookie: u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IRemoteDebugApplication.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugApplication64_SetName(self: *const T, pstrName: ?[*:0]const u16) HRESULT { return @as(*const IDebugApplication64.VTable, @ptrCast(self.vtable)).SetName(@as(*const IDebugApplication64, @ptrCast(self)), pstrName); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugApplication64_StepOutComplete(self: *const T) HRESULT { return @as(*const IDebugApplication64.VTable, @ptrCast(self.vtable)).StepOutComplete(@as(*const IDebugApplication64, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugApplication64_DebugOutput(self: *const T, pstr: ?[*:0]const u16) HRESULT { return @as(*const IDebugApplication64.VTable, @ptrCast(self.vtable)).DebugOutput(@as(*const IDebugApplication64, @ptrCast(self)), pstr); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugApplication64_StartDebugSession(self: *const T) HRESULT { return @as(*const IDebugApplication64.VTable, @ptrCast(self.vtable)).StartDebugSession(@as(*const IDebugApplication64, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugApplication64_HandleBreakPoint(self: *const T, br: BREAKREASON, pbra: ?*BREAKRESUME_ACTION) HRESULT { return @as(*const IDebugApplication64.VTable, @ptrCast(self.vtable)).HandleBreakPoint(@as(*const IDebugApplication64, @ptrCast(self)), br, pbra); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugApplication64_Close(self: *const T) HRESULT { return @as(*const IDebugApplication64.VTable, @ptrCast(self.vtable)).Close(@as(*const IDebugApplication64, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugApplication64_GetBreakFlags(self: *const T, pabf: ?*u32, pprdatSteppingThread: ?*?*IRemoteDebugApplicationThread) HRESULT { return @as(*const IDebugApplication64.VTable, @ptrCast(self.vtable)).GetBreakFlags(@as(*const IDebugApplication64, @ptrCast(self)), pabf, pprdatSteppingThread); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugApplication64_GetCurrentThread(self: *const T, pat: ?*?*IDebugApplicationThread) HRESULT { return @as(*const IDebugApplication64.VTable, @ptrCast(self.vtable)).GetCurrentThread(@as(*const IDebugApplication64, @ptrCast(self)), pat); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugApplication64_CreateAsyncDebugOperation(self: *const T, psdo: ?*IDebugSyncOperation, ppado: ?*?*IDebugAsyncOperation) HRESULT { return @as(*const IDebugApplication64.VTable, @ptrCast(self.vtable)).CreateAsyncDebugOperation(@as(*const IDebugApplication64, @ptrCast(self)), psdo, ppado); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugApplication64_AddStackFrameSniffer(self: *const T, pdsfs: ?*IDebugStackFrameSniffer, pdwCookie: ?*u32) HRESULT { return @as(*const IDebugApplication64.VTable, @ptrCast(self.vtable)).AddStackFrameSniffer(@as(*const IDebugApplication64, @ptrCast(self)), pdsfs, pdwCookie); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugApplication64_RemoveStackFrameSniffer(self: *const T, dwCookie: u32) HRESULT { return @as(*const IDebugApplication64.VTable, @ptrCast(self.vtable)).RemoveStackFrameSniffer(@as(*const IDebugApplication64, @ptrCast(self)), dwCookie); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugApplication64_QueryCurrentThreadIsDebuggerThread(self: *const T) HRESULT { return @as(*const IDebugApplication64.VTable, @ptrCast(self.vtable)).QueryCurrentThreadIsDebuggerThread(@as(*const IDebugApplication64, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugApplication64_SynchronousCallInDebuggerThread(self: *const T, pptc: ?*IDebugThreadCall64, dwParam1: u64, dwParam2: u64, dwParam3: u64) HRESULT { return @as(*const IDebugApplication64.VTable, @ptrCast(self.vtable)).SynchronousCallInDebuggerThread(@as(*const IDebugApplication64, @ptrCast(self)), pptc, dwParam1, dwParam2, dwParam3); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugApplication64_CreateApplicationNode(self: *const T, ppdanNew: ?*?*IDebugApplicationNode) HRESULT { return @as(*const IDebugApplication64.VTable, @ptrCast(self.vtable)).CreateApplicationNode(@as(*const IDebugApplication64, @ptrCast(self)), ppdanNew); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugApplication64_FireDebuggerEvent(self: *const T, riid: ?*const Guid, punk: ?*IUnknown) HRESULT { return @as(*const IDebugApplication64.VTable, @ptrCast(self.vtable)).FireDebuggerEvent(@as(*const IDebugApplication64, @ptrCast(self)), riid, punk); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugApplication64_HandleRuntimeError(self: *const T, pErrorDebug: ?*IActiveScriptErrorDebug, pScriptSite: ?*IActiveScriptSite, pbra: ?*BREAKRESUME_ACTION, perra: ?*ERRORRESUMEACTION, pfCallOnScriptError: ?*BOOL) HRESULT { return @as(*const IDebugApplication64.VTable, @ptrCast(self.vtable)).HandleRuntimeError(@as(*const IDebugApplication64, @ptrCast(self)), pErrorDebug, pScriptSite, pbra, perra, pfCallOnScriptError); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugApplication64_FCanJitDebug(self: *const T) BOOL { return @as(*const IDebugApplication64.VTable, @ptrCast(self.vtable)).FCanJitDebug(@as(*const IDebugApplication64, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugApplication64_FIsAutoJitDebugEnabled(self: *const T) BOOL { return @as(*const IDebugApplication64.VTable, @ptrCast(self.vtable)).FIsAutoJitDebugEnabled(@as(*const IDebugApplication64, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugApplication64_AddGlobalExpressionContextProvider(self: *const T, pdsfs: ?*IProvideExpressionContexts, pdwCookie: ?*u64) HRESULT { return @as(*const IDebugApplication64.VTable, @ptrCast(self.vtable)).AddGlobalExpressionContextProvider(@as(*const IDebugApplication64, @ptrCast(self)), pdsfs, pdwCookie); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugApplication64_RemoveGlobalExpressionContextProvider(self: *const T, dwCookie: u64) HRESULT { return @as(*const IDebugApplication64.VTable, @ptrCast(self.vtable)).RemoveGlobalExpressionContextProvider(@as(*const IDebugApplication64, @ptrCast(self)), dwCookie); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IRemoteDebugApplicationEvents_Value = Guid.initString("51973c33-cb0c-11d0-b5c9-00a0244a0e7a"); pub const IID_IRemoteDebugApplicationEvents = &IID_IRemoteDebugApplicationEvents_Value; pub const IRemoteDebugApplicationEvents = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, OnConnectDebugger: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IRemoteDebugApplicationEvents, pad: ?*IApplicationDebugger, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IRemoteDebugApplicationEvents, pad: ?*IApplicationDebugger, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, OnDisconnectDebugger: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IRemoteDebugApplicationEvents, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IRemoteDebugApplicationEvents, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, OnSetName: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IRemoteDebugApplicationEvents, pstrName: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IRemoteDebugApplicationEvents, pstrName: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, OnDebugOutput: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IRemoteDebugApplicationEvents, pstr: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IRemoteDebugApplicationEvents, pstr: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, OnClose: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IRemoteDebugApplicationEvents, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IRemoteDebugApplicationEvents, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, OnEnterBreakPoint: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IRemoteDebugApplicationEvents, prdat: ?*IRemoteDebugApplicationThread, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IRemoteDebugApplicationEvents, prdat: ?*IRemoteDebugApplicationThread, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, OnLeaveBreakPoint: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IRemoteDebugApplicationEvents, prdat: ?*IRemoteDebugApplicationThread, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IRemoteDebugApplicationEvents, prdat: ?*IRemoteDebugApplicationThread, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, OnCreateThread: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IRemoteDebugApplicationEvents, prdat: ?*IRemoteDebugApplicationThread, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IRemoteDebugApplicationEvents, prdat: ?*IRemoteDebugApplicationThread, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, OnDestroyThread: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IRemoteDebugApplicationEvents, prdat: ?*IRemoteDebugApplicationThread, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IRemoteDebugApplicationEvents, prdat: ?*IRemoteDebugApplicationThread, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, OnBreakFlagChange: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IRemoteDebugApplicationEvents, abf: u32, prdatSteppingThread: ?*IRemoteDebugApplicationThread, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IRemoteDebugApplicationEvents, abf: u32, prdatSteppingThread: ?*IRemoteDebugApplicationThread, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRemoteDebugApplicationEvents_OnConnectDebugger(self: *const T, pad: ?*IApplicationDebugger) HRESULT { return @as(*const IRemoteDebugApplicationEvents.VTable, @ptrCast(self.vtable)).OnConnectDebugger(@as(*const IRemoteDebugApplicationEvents, @ptrCast(self)), pad); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRemoteDebugApplicationEvents_OnDisconnectDebugger(self: *const T) HRESULT { return @as(*const IRemoteDebugApplicationEvents.VTable, @ptrCast(self.vtable)).OnDisconnectDebugger(@as(*const IRemoteDebugApplicationEvents, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRemoteDebugApplicationEvents_OnSetName(self: *const T, pstrName: ?[*:0]const u16) HRESULT { return @as(*const IRemoteDebugApplicationEvents.VTable, @ptrCast(self.vtable)).OnSetName(@as(*const IRemoteDebugApplicationEvents, @ptrCast(self)), pstrName); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRemoteDebugApplicationEvents_OnDebugOutput(self: *const T, pstr: ?[*:0]const u16) HRESULT { return @as(*const IRemoteDebugApplicationEvents.VTable, @ptrCast(self.vtable)).OnDebugOutput(@as(*const IRemoteDebugApplicationEvents, @ptrCast(self)), pstr); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRemoteDebugApplicationEvents_OnClose(self: *const T) HRESULT { return @as(*const IRemoteDebugApplicationEvents.VTable, @ptrCast(self.vtable)).OnClose(@as(*const IRemoteDebugApplicationEvents, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRemoteDebugApplicationEvents_OnEnterBreakPoint(self: *const T, prdat: ?*IRemoteDebugApplicationThread) HRESULT { return @as(*const IRemoteDebugApplicationEvents.VTable, @ptrCast(self.vtable)).OnEnterBreakPoint(@as(*const IRemoteDebugApplicationEvents, @ptrCast(self)), prdat); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRemoteDebugApplicationEvents_OnLeaveBreakPoint(self: *const T, prdat: ?*IRemoteDebugApplicationThread) HRESULT { return @as(*const IRemoteDebugApplicationEvents.VTable, @ptrCast(self.vtable)).OnLeaveBreakPoint(@as(*const IRemoteDebugApplicationEvents, @ptrCast(self)), prdat); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRemoteDebugApplicationEvents_OnCreateThread(self: *const T, prdat: ?*IRemoteDebugApplicationThread) HRESULT { return @as(*const IRemoteDebugApplicationEvents.VTable, @ptrCast(self.vtable)).OnCreateThread(@as(*const IRemoteDebugApplicationEvents, @ptrCast(self)), prdat); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRemoteDebugApplicationEvents_OnDestroyThread(self: *const T, prdat: ?*IRemoteDebugApplicationThread) HRESULT { return @as(*const IRemoteDebugApplicationEvents.VTable, @ptrCast(self.vtable)).OnDestroyThread(@as(*const IRemoteDebugApplicationEvents, @ptrCast(self)), prdat); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRemoteDebugApplicationEvents_OnBreakFlagChange(self: *const T, abf: u32, prdatSteppingThread: ?*IRemoteDebugApplicationThread) HRESULT { return @as(*const IRemoteDebugApplicationEvents.VTable, @ptrCast(self.vtable)).OnBreakFlagChange(@as(*const IRemoteDebugApplicationEvents, @ptrCast(self)), abf, prdatSteppingThread); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IDebugApplicationNode_Value = Guid.initString("51973c34-cb0c-11d0-b5c9-00a0244a0e7a"); pub const IID_IDebugApplicationNode = &IID_IDebugApplicationNode_Value; pub const IDebugApplicationNode = extern struct { pub const VTable = extern struct { base: IDebugDocumentProvider.VTable, EnumChildren: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugApplicationNode, pperddp: ?*?*IEnumDebugApplicationNodes, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugApplicationNode, pperddp: ?*?*IEnumDebugApplicationNodes, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetParent: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugApplicationNode, pprddp: ?*?*IDebugApplicationNode, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugApplicationNode, pprddp: ?*?*IDebugApplicationNode, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetDocumentProvider: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugApplicationNode, pddp: ?*IDebugDocumentProvider, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugApplicationNode, pddp: ?*IDebugDocumentProvider, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Close: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugApplicationNode, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugApplicationNode, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Attach: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugApplicationNode, pdanParent: ?*IDebugApplicationNode, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugApplicationNode, pdanParent: ?*IDebugApplicationNode, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Detach: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugApplicationNode, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugApplicationNode, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IDebugDocumentProvider.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugApplicationNode_EnumChildren(self: *const T, pperddp: ?*?*IEnumDebugApplicationNodes) HRESULT { return @as(*const IDebugApplicationNode.VTable, @ptrCast(self.vtable)).EnumChildren(@as(*const IDebugApplicationNode, @ptrCast(self)), pperddp); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugApplicationNode_GetParent(self: *const T, pprddp: ?*?*IDebugApplicationNode) HRESULT { return @as(*const IDebugApplicationNode.VTable, @ptrCast(self.vtable)).GetParent(@as(*const IDebugApplicationNode, @ptrCast(self)), pprddp); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugApplicationNode_SetDocumentProvider(self: *const T, pddp: ?*IDebugDocumentProvider) HRESULT { return @as(*const IDebugApplicationNode.VTable, @ptrCast(self.vtable)).SetDocumentProvider(@as(*const IDebugApplicationNode, @ptrCast(self)), pddp); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugApplicationNode_Close(self: *const T) HRESULT { return @as(*const IDebugApplicationNode.VTable, @ptrCast(self.vtable)).Close(@as(*const IDebugApplicationNode, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugApplicationNode_Attach(self: *const T, pdanParent: ?*IDebugApplicationNode) HRESULT { return @as(*const IDebugApplicationNode.VTable, @ptrCast(self.vtable)).Attach(@as(*const IDebugApplicationNode, @ptrCast(self)), pdanParent); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugApplicationNode_Detach(self: *const T) HRESULT { return @as(*const IDebugApplicationNode.VTable, @ptrCast(self.vtable)).Detach(@as(*const IDebugApplicationNode, @ptrCast(self))); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IDebugApplicationNodeEvents_Value = Guid.initString("51973c35-cb0c-11d0-b5c9-00a0244a0e7a"); pub const IID_IDebugApplicationNodeEvents = &IID_IDebugApplicationNodeEvents_Value; pub const IDebugApplicationNodeEvents = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, onAddChild: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugApplicationNodeEvents, prddpChild: ?*IDebugApplicationNode, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugApplicationNodeEvents, prddpChild: ?*IDebugApplicationNode, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, onRemoveChild: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugApplicationNodeEvents, prddpChild: ?*IDebugApplicationNode, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugApplicationNodeEvents, prddpChild: ?*IDebugApplicationNode, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, onDetach: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugApplicationNodeEvents, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugApplicationNodeEvents, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, onAttach: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugApplicationNodeEvents, prddpParent: ?*IDebugApplicationNode, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugApplicationNodeEvents, prddpParent: ?*IDebugApplicationNode, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugApplicationNodeEvents_onAddChild(self: *const T, prddpChild: ?*IDebugApplicationNode) HRESULT { return @as(*const IDebugApplicationNodeEvents.VTable, @ptrCast(self.vtable)).onAddChild(@as(*const IDebugApplicationNodeEvents, @ptrCast(self)), prddpChild); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugApplicationNodeEvents_onRemoveChild(self: *const T, prddpChild: ?*IDebugApplicationNode) HRESULT { return @as(*const IDebugApplicationNodeEvents.VTable, @ptrCast(self.vtable)).onRemoveChild(@as(*const IDebugApplicationNodeEvents, @ptrCast(self)), prddpChild); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugApplicationNodeEvents_onDetach(self: *const T) HRESULT { return @as(*const IDebugApplicationNodeEvents.VTable, @ptrCast(self.vtable)).onDetach(@as(*const IDebugApplicationNodeEvents, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugApplicationNodeEvents_onAttach(self: *const T, prddpParent: ?*IDebugApplicationNode) HRESULT { return @as(*const IDebugApplicationNodeEvents.VTable, @ptrCast(self.vtable)).onAttach(@as(*const IDebugApplicationNodeEvents, @ptrCast(self)), prddpParent); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_AsyncIDebugApplicationNodeEvents_Value = Guid.initString("a2e3aa3b-aa8d-4ebf-84cd-648b737b8c13"); pub const IID_AsyncIDebugApplicationNodeEvents = &IID_AsyncIDebugApplicationNodeEvents_Value; pub const AsyncIDebugApplicationNodeEvents = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, Begin_onAddChild: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const AsyncIDebugApplicationNodeEvents, prddpChild: ?*IDebugApplicationNode, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const AsyncIDebugApplicationNodeEvents, prddpChild: ?*IDebugApplicationNode, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Finish_onAddChild: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const AsyncIDebugApplicationNodeEvents, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const AsyncIDebugApplicationNodeEvents, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Begin_onRemoveChild: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const AsyncIDebugApplicationNodeEvents, prddpChild: ?*IDebugApplicationNode, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const AsyncIDebugApplicationNodeEvents, prddpChild: ?*IDebugApplicationNode, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Finish_onRemoveChild: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const AsyncIDebugApplicationNodeEvents, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const AsyncIDebugApplicationNodeEvents, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Begin_onDetach: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const AsyncIDebugApplicationNodeEvents, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const AsyncIDebugApplicationNodeEvents, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Finish_onDetach: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const AsyncIDebugApplicationNodeEvents, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const AsyncIDebugApplicationNodeEvents, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Begin_onAttach: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const AsyncIDebugApplicationNodeEvents, prddpParent: ?*IDebugApplicationNode, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const AsyncIDebugApplicationNodeEvents, prddpParent: ?*IDebugApplicationNode, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Finish_onAttach: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const AsyncIDebugApplicationNodeEvents, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const AsyncIDebugApplicationNodeEvents, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn AsyncIDebugApplicationNodeEvents_Begin_onAddChild(self: *const T, prddpChild: ?*IDebugApplicationNode) HRESULT { return @as(*const AsyncIDebugApplicationNodeEvents.VTable, @ptrCast(self.vtable)).Begin_onAddChild(@as(*const AsyncIDebugApplicationNodeEvents, @ptrCast(self)), prddpChild); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn AsyncIDebugApplicationNodeEvents_Finish_onAddChild(self: *const T) HRESULT { return @as(*const AsyncIDebugApplicationNodeEvents.VTable, @ptrCast(self.vtable)).Finish_onAddChild(@as(*const AsyncIDebugApplicationNodeEvents, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn AsyncIDebugApplicationNodeEvents_Begin_onRemoveChild(self: *const T, prddpChild: ?*IDebugApplicationNode) HRESULT { return @as(*const AsyncIDebugApplicationNodeEvents.VTable, @ptrCast(self.vtable)).Begin_onRemoveChild(@as(*const AsyncIDebugApplicationNodeEvents, @ptrCast(self)), prddpChild); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn AsyncIDebugApplicationNodeEvents_Finish_onRemoveChild(self: *const T) HRESULT { return @as(*const AsyncIDebugApplicationNodeEvents.VTable, @ptrCast(self.vtable)).Finish_onRemoveChild(@as(*const AsyncIDebugApplicationNodeEvents, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn AsyncIDebugApplicationNodeEvents_Begin_onDetach(self: *const T) HRESULT { return @as(*const AsyncIDebugApplicationNodeEvents.VTable, @ptrCast(self.vtable)).Begin_onDetach(@as(*const AsyncIDebugApplicationNodeEvents, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn AsyncIDebugApplicationNodeEvents_Finish_onDetach(self: *const T) HRESULT { return @as(*const AsyncIDebugApplicationNodeEvents.VTable, @ptrCast(self.vtable)).Finish_onDetach(@as(*const AsyncIDebugApplicationNodeEvents, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn AsyncIDebugApplicationNodeEvents_Begin_onAttach(self: *const T, prddpParent: ?*IDebugApplicationNode) HRESULT { return @as(*const AsyncIDebugApplicationNodeEvents.VTable, @ptrCast(self.vtable)).Begin_onAttach(@as(*const AsyncIDebugApplicationNodeEvents, @ptrCast(self)), prddpParent); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn AsyncIDebugApplicationNodeEvents_Finish_onAttach(self: *const T) HRESULT { return @as(*const AsyncIDebugApplicationNodeEvents.VTable, @ptrCast(self.vtable)).Finish_onAttach(@as(*const AsyncIDebugApplicationNodeEvents, @ptrCast(self))); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IDebugThreadCall32_Value = Guid.initString("51973c36-cb0c-11d0-b5c9-00a0244a0e7a"); pub const IID_IDebugThreadCall32 = &IID_IDebugThreadCall32_Value; pub const IDebugThreadCall32 = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, ThreadCallHandler: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugThreadCall32, dwParam1: u32, dwParam2: u32, dwParam3: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugThreadCall32, dwParam1: u32, dwParam2: u32, dwParam3: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugThreadCall32_ThreadCallHandler(self: *const T, dwParam1: u32, dwParam2: u32, dwParam3: u32) HRESULT { return @as(*const IDebugThreadCall32.VTable, @ptrCast(self.vtable)).ThreadCallHandler(@as(*const IDebugThreadCall32, @ptrCast(self)), dwParam1, dwParam2, dwParam3); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IDebugThreadCall64_Value = Guid.initString("cb3fa335-e979-42fd-9fcf-a7546a0f3905"); pub const IID_IDebugThreadCall64 = &IID_IDebugThreadCall64_Value; pub const IDebugThreadCall64 = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, ThreadCallHandler: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugThreadCall64, dwParam1: u64, dwParam2: u64, dwParam3: u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugThreadCall64, dwParam1: u64, dwParam2: u64, dwParam3: u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugThreadCall64_ThreadCallHandler(self: *const T, dwParam1: u64, dwParam2: u64, dwParam3: u64) HRESULT { return @as(*const IDebugThreadCall64.VTable, @ptrCast(self.vtable)).ThreadCallHandler(@as(*const IDebugThreadCall64, @ptrCast(self)), dwParam1, dwParam2, dwParam3); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IRemoteDebugApplicationThread_Value = Guid.initString("51973c37-cb0c-11d0-b5c9-00a0244a0e7a"); pub const IID_IRemoteDebugApplicationThread = &IID_IRemoteDebugApplicationThread_Value; pub const IRemoteDebugApplicationThread = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, GetSystemThreadId: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IRemoteDebugApplicationThread, dwThreadId: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IRemoteDebugApplicationThread, dwThreadId: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetApplication: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IRemoteDebugApplicationThread, pprda: ?*?*IRemoteDebugApplication, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IRemoteDebugApplicationThread, pprda: ?*?*IRemoteDebugApplication, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, EnumStackFrames: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IRemoteDebugApplicationThread, ppedsf: ?*?*IEnumDebugStackFrames, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IRemoteDebugApplicationThread, ppedsf: ?*?*IEnumDebugStackFrames, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetDescription: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IRemoteDebugApplicationThread, pbstrDescription: ?*?BSTR, pbstrState: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IRemoteDebugApplicationThread, pbstrDescription: ?*?BSTR, pbstrState: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetNextStatement: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IRemoteDebugApplicationThread, pStackFrame: ?*IDebugStackFrame, pCodeContext: ?*IDebugCodeContext, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IRemoteDebugApplicationThread, pStackFrame: ?*IDebugStackFrame, pCodeContext: ?*IDebugCodeContext, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetState: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IRemoteDebugApplicationThread, pState: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IRemoteDebugApplicationThread, pState: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Suspend: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IRemoteDebugApplicationThread, pdwCount: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IRemoteDebugApplicationThread, pdwCount: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Resume: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IRemoteDebugApplicationThread, pdwCount: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IRemoteDebugApplicationThread, pdwCount: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetSuspendCount: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IRemoteDebugApplicationThread, pdwCount: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IRemoteDebugApplicationThread, pdwCount: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRemoteDebugApplicationThread_GetSystemThreadId(self: *const T, dwThreadId: ?*u32) HRESULT { return @as(*const IRemoteDebugApplicationThread.VTable, @ptrCast(self.vtable)).GetSystemThreadId(@as(*const IRemoteDebugApplicationThread, @ptrCast(self)), dwThreadId); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRemoteDebugApplicationThread_GetApplication(self: *const T, pprda: ?*?*IRemoteDebugApplication) HRESULT { return @as(*const IRemoteDebugApplicationThread.VTable, @ptrCast(self.vtable)).GetApplication(@as(*const IRemoteDebugApplicationThread, @ptrCast(self)), pprda); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRemoteDebugApplicationThread_EnumStackFrames(self: *const T, ppedsf: ?*?*IEnumDebugStackFrames) HRESULT { return @as(*const IRemoteDebugApplicationThread.VTable, @ptrCast(self.vtable)).EnumStackFrames(@as(*const IRemoteDebugApplicationThread, @ptrCast(self)), ppedsf); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRemoteDebugApplicationThread_GetDescription(self: *const T, pbstrDescription: ?*?BSTR, pbstrState: ?*?BSTR) HRESULT { return @as(*const IRemoteDebugApplicationThread.VTable, @ptrCast(self.vtable)).GetDescription(@as(*const IRemoteDebugApplicationThread, @ptrCast(self)), pbstrDescription, pbstrState); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRemoteDebugApplicationThread_SetNextStatement(self: *const T, pStackFrame: ?*IDebugStackFrame, pCodeContext: ?*IDebugCodeContext) HRESULT { return @as(*const IRemoteDebugApplicationThread.VTable, @ptrCast(self.vtable)).SetNextStatement(@as(*const IRemoteDebugApplicationThread, @ptrCast(self)), pStackFrame, pCodeContext); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRemoteDebugApplicationThread_GetState(self: *const T, pState: ?*u32) HRESULT { return @as(*const IRemoteDebugApplicationThread.VTable, @ptrCast(self.vtable)).GetState(@as(*const IRemoteDebugApplicationThread, @ptrCast(self)), pState); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRemoteDebugApplicationThread_Suspend(self: *const T, pdwCount: ?*u32) HRESULT { return @as(*const IRemoteDebugApplicationThread.VTable, @ptrCast(self.vtable)).Suspend(@as(*const IRemoteDebugApplicationThread, @ptrCast(self)), pdwCount); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRemoteDebugApplicationThread_Resume(self: *const T, pdwCount: ?*u32) HRESULT { return @as(*const IRemoteDebugApplicationThread.VTable, @ptrCast(self.vtable)).Resume(@as(*const IRemoteDebugApplicationThread, @ptrCast(self)), pdwCount); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRemoteDebugApplicationThread_GetSuspendCount(self: *const T, pdwCount: ?*u32) HRESULT { return @as(*const IRemoteDebugApplicationThread.VTable, @ptrCast(self.vtable)).GetSuspendCount(@as(*const IRemoteDebugApplicationThread, @ptrCast(self)), pdwCount); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IDebugApplicationThread_Value = Guid.initString("51973c38-cb0c-11d0-b5c9-00a0244a0e7a"); pub const IID_IDebugApplicationThread = &IID_IDebugApplicationThread_Value; pub const IDebugApplicationThread = extern struct { pub const VTable = extern struct { base: IRemoteDebugApplicationThread.VTable, SynchronousCallIntoThread32: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugApplicationThread, pstcb: ?*IDebugThreadCall32, dwParam1: u32, dwParam2: u32, dwParam3: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugApplicationThread, pstcb: ?*IDebugThreadCall32, dwParam1: u32, dwParam2: u32, dwParam3: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, QueryIsCurrentThread: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugApplicationThread, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugApplicationThread, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, QueryIsDebuggerThread: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugApplicationThread, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugApplicationThread, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetDescription: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugApplicationThread, pstrDescription: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugApplicationThread, pstrDescription: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetStateString: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugApplicationThread, pstrState: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugApplicationThread, pstrState: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IRemoteDebugApplicationThread.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugApplicationThread_SynchronousCallIntoThread32(self: *const T, pstcb: ?*IDebugThreadCall32, dwParam1: u32, dwParam2: u32, dwParam3: u32) HRESULT { return @as(*const IDebugApplicationThread.VTable, @ptrCast(self.vtable)).SynchronousCallIntoThread32(@as(*const IDebugApplicationThread, @ptrCast(self)), pstcb, dwParam1, dwParam2, dwParam3); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugApplicationThread_QueryIsCurrentThread(self: *const T) HRESULT { return @as(*const IDebugApplicationThread.VTable, @ptrCast(self.vtable)).QueryIsCurrentThread(@as(*const IDebugApplicationThread, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugApplicationThread_QueryIsDebuggerThread(self: *const T) HRESULT { return @as(*const IDebugApplicationThread.VTable, @ptrCast(self.vtable)).QueryIsDebuggerThread(@as(*const IDebugApplicationThread, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugApplicationThread_SetDescription(self: *const T, pstrDescription: ?[*:0]const u16) HRESULT { return @as(*const IDebugApplicationThread.VTable, @ptrCast(self.vtable)).SetDescription(@as(*const IDebugApplicationThread, @ptrCast(self)), pstrDescription); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugApplicationThread_SetStateString(self: *const T, pstrState: ?[*:0]const u16) HRESULT { return @as(*const IDebugApplicationThread.VTable, @ptrCast(self.vtable)).SetStateString(@as(*const IDebugApplicationThread, @ptrCast(self)), pstrState); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IDebugApplicationThread64_Value = Guid.initString("9dac5886-dbad-456d-9dee-5dec39ab3dda"); pub const IID_IDebugApplicationThread64 = &IID_IDebugApplicationThread64_Value; pub const IDebugApplicationThread64 = extern struct { pub const VTable = extern struct { base: IDebugApplicationThread.VTable, SynchronousCallIntoThread64: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugApplicationThread64, pstcb: ?*IDebugThreadCall64, dwParam1: u64, dwParam2: u64, dwParam3: u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugApplicationThread64, pstcb: ?*IDebugThreadCall64, dwParam1: u64, dwParam2: u64, dwParam3: u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IDebugApplicationThread.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugApplicationThread64_SynchronousCallIntoThread64(self: *const T, pstcb: ?*IDebugThreadCall64, dwParam1: u64, dwParam2: u64, dwParam3: u64) HRESULT { return @as(*const IDebugApplicationThread64.VTable, @ptrCast(self.vtable)).SynchronousCallIntoThread64(@as(*const IDebugApplicationThread64, @ptrCast(self)), pstcb, dwParam1, dwParam2, dwParam3); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IDebugCookie_Value = Guid.initString("51973c39-cb0c-11d0-b5c9-00a0244a0e7a"); pub const IID_IDebugCookie = &IID_IDebugCookie_Value; pub const IDebugCookie = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, SetDebugCookie: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugCookie, dwDebugAppCookie: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugCookie, dwDebugAppCookie: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugCookie_SetDebugCookie(self: *const T, dwDebugAppCookie: u32) HRESULT { return @as(*const IDebugCookie.VTable, @ptrCast(self.vtable)).SetDebugCookie(@as(*const IDebugCookie, @ptrCast(self)), dwDebugAppCookie); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IEnumDebugApplicationNodes_Value = Guid.initString("51973c3a-cb0c-11d0-b5c9-00a0244a0e7a"); pub const IID_IEnumDebugApplicationNodes = &IID_IEnumDebugApplicationNodes_Value; pub const IEnumDebugApplicationNodes = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, Next: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IEnumDebugApplicationNodes, celt: u32, pprddp: ?*?*IDebugApplicationNode, pceltFetched: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IEnumDebugApplicationNodes, celt: u32, pprddp: ?*?*IDebugApplicationNode, pceltFetched: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Skip: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IEnumDebugApplicationNodes, celt: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IEnumDebugApplicationNodes, celt: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Reset: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IEnumDebugApplicationNodes, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IEnumDebugApplicationNodes, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Clone: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IEnumDebugApplicationNodes, pperddp: ?*?*IEnumDebugApplicationNodes, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IEnumDebugApplicationNodes, pperddp: ?*?*IEnumDebugApplicationNodes, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IEnumDebugApplicationNodes_Next(self: *const T, celt: u32, pprddp: ?*?*IDebugApplicationNode, pceltFetched: ?*u32) HRESULT { return @as(*const IEnumDebugApplicationNodes.VTable, @ptrCast(self.vtable)).Next(@as(*const IEnumDebugApplicationNodes, @ptrCast(self)), celt, pprddp, pceltFetched); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IEnumDebugApplicationNodes_Skip(self: *const T, celt: u32) HRESULT { return @as(*const IEnumDebugApplicationNodes.VTable, @ptrCast(self.vtable)).Skip(@as(*const IEnumDebugApplicationNodes, @ptrCast(self)), celt); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IEnumDebugApplicationNodes_Reset(self: *const T) HRESULT { return @as(*const IEnumDebugApplicationNodes.VTable, @ptrCast(self.vtable)).Reset(@as(*const IEnumDebugApplicationNodes, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IEnumDebugApplicationNodes_Clone(self: *const T, pperddp: ?*?*IEnumDebugApplicationNodes) HRESULT { return @as(*const IEnumDebugApplicationNodes.VTable, @ptrCast(self.vtable)).Clone(@as(*const IEnumDebugApplicationNodes, @ptrCast(self)), pperddp); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IEnumRemoteDebugApplications_Value = Guid.initString("51973c3b-cb0c-11d0-b5c9-00a0244a0e7a"); pub const IID_IEnumRemoteDebugApplications = &IID_IEnumRemoteDebugApplications_Value; pub const IEnumRemoteDebugApplications = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, Next: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IEnumRemoteDebugApplications, celt: u32, ppda: ?*?*IRemoteDebugApplication, pceltFetched: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IEnumRemoteDebugApplications, celt: u32, ppda: ?*?*IRemoteDebugApplication, pceltFetched: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Skip: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IEnumRemoteDebugApplications, celt: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IEnumRemoteDebugApplications, celt: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Reset: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IEnumRemoteDebugApplications, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IEnumRemoteDebugApplications, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Clone: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IEnumRemoteDebugApplications, ppessd: ?*?*IEnumRemoteDebugApplications, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IEnumRemoteDebugApplications, ppessd: ?*?*IEnumRemoteDebugApplications, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IEnumRemoteDebugApplications_Next(self: *const T, celt: u32, ppda: ?*?*IRemoteDebugApplication, pceltFetched: ?*u32) HRESULT { return @as(*const IEnumRemoteDebugApplications.VTable, @ptrCast(self.vtable)).Next(@as(*const IEnumRemoteDebugApplications, @ptrCast(self)), celt, ppda, pceltFetched); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IEnumRemoteDebugApplications_Skip(self: *const T, celt: u32) HRESULT { return @as(*const IEnumRemoteDebugApplications.VTable, @ptrCast(self.vtable)).Skip(@as(*const IEnumRemoteDebugApplications, @ptrCast(self)), celt); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IEnumRemoteDebugApplications_Reset(self: *const T) HRESULT { return @as(*const IEnumRemoteDebugApplications.VTable, @ptrCast(self.vtable)).Reset(@as(*const IEnumRemoteDebugApplications, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IEnumRemoteDebugApplications_Clone(self: *const T, ppessd: ?*?*IEnumRemoteDebugApplications) HRESULT { return @as(*const IEnumRemoteDebugApplications.VTable, @ptrCast(self.vtable)).Clone(@as(*const IEnumRemoteDebugApplications, @ptrCast(self)), ppessd); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IEnumRemoteDebugApplicationThreads_Value = Guid.initString("51973c3c-cb0c-11d0-b5c9-00a0244a0e7a"); pub const IID_IEnumRemoteDebugApplicationThreads = &IID_IEnumRemoteDebugApplicationThreads_Value; pub const IEnumRemoteDebugApplicationThreads = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, Next: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IEnumRemoteDebugApplicationThreads, celt: u32, pprdat: ?*?*IRemoteDebugApplicationThread, pceltFetched: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IEnumRemoteDebugApplicationThreads, celt: u32, pprdat: ?*?*IRemoteDebugApplicationThread, pceltFetched: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Skip: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IEnumRemoteDebugApplicationThreads, celt: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IEnumRemoteDebugApplicationThreads, celt: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Reset: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IEnumRemoteDebugApplicationThreads, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IEnumRemoteDebugApplicationThreads, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Clone: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IEnumRemoteDebugApplicationThreads, pperdat: ?*?*IEnumRemoteDebugApplicationThreads, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IEnumRemoteDebugApplicationThreads, pperdat: ?*?*IEnumRemoteDebugApplicationThreads, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IEnumRemoteDebugApplicationThreads_Next(self: *const T, celt: u32, pprdat: ?*?*IRemoteDebugApplicationThread, pceltFetched: ?*u32) HRESULT { return @as(*const IEnumRemoteDebugApplicationThreads.VTable, @ptrCast(self.vtable)).Next(@as(*const IEnumRemoteDebugApplicationThreads, @ptrCast(self)), celt, pprdat, pceltFetched); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IEnumRemoteDebugApplicationThreads_Skip(self: *const T, celt: u32) HRESULT { return @as(*const IEnumRemoteDebugApplicationThreads.VTable, @ptrCast(self.vtable)).Skip(@as(*const IEnumRemoteDebugApplicationThreads, @ptrCast(self)), celt); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IEnumRemoteDebugApplicationThreads_Reset(self: *const T) HRESULT { return @as(*const IEnumRemoteDebugApplicationThreads.VTable, @ptrCast(self.vtable)).Reset(@as(*const IEnumRemoteDebugApplicationThreads, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IEnumRemoteDebugApplicationThreads_Clone(self: *const T, pperdat: ?*?*IEnumRemoteDebugApplicationThreads) HRESULT { return @as(*const IEnumRemoteDebugApplicationThreads.VTable, @ptrCast(self.vtable)).Clone(@as(*const IEnumRemoteDebugApplicationThreads, @ptrCast(self)), pperdat); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IDebugFormatter_Value = Guid.initString("51973c05-cb0c-11d0-b5c9-00a0244a0e7a"); pub const IID_IDebugFormatter = &IID_IDebugFormatter_Value; pub const IDebugFormatter = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, GetStringForVariant: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugFormatter, pvar: ?*VARIANT, nRadix: u32, pbstrValue: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugFormatter, pvar: ?*VARIANT, nRadix: u32, pbstrValue: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetVariantForString: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugFormatter, pwstrValue: ?[*:0]const u16, pvar: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugFormatter, pwstrValue: ?[*:0]const u16, pvar: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetStringForVarType: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugFormatter, vt: u16, ptdescArrayType: ?*TYPEDESC, pbstr: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugFormatter, vt: u16, ptdescArrayType: ?*TYPEDESC, pbstr: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugFormatter_GetStringForVariant(self: *const T, pvar: ?*VARIANT, nRadix: u32, pbstrValue: ?*?BSTR) HRESULT { return @as(*const IDebugFormatter.VTable, @ptrCast(self.vtable)).GetStringForVariant(@as(*const IDebugFormatter, @ptrCast(self)), pvar, nRadix, pbstrValue); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugFormatter_GetVariantForString(self: *const T, pwstrValue: ?[*:0]const u16, pvar: ?*VARIANT) HRESULT { return @as(*const IDebugFormatter.VTable, @ptrCast(self.vtable)).GetVariantForString(@as(*const IDebugFormatter, @ptrCast(self)), pwstrValue, pvar); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugFormatter_GetStringForVarType(self: *const T, vt: u16, ptdescArrayType: ?*TYPEDESC, pbstr: ?*?BSTR) HRESULT { return @as(*const IDebugFormatter.VTable, @ptrCast(self.vtable)).GetStringForVarType(@as(*const IDebugFormatter, @ptrCast(self)), vt, ptdescArrayType, pbstr); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_ISimpleConnectionPoint_Value = Guid.initString("51973c3e-cb0c-11d0-b5c9-00a0244a0e7a"); pub const IID_ISimpleConnectionPoint = &IID_ISimpleConnectionPoint_Value; pub const ISimpleConnectionPoint = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, GetEventCount: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ISimpleConnectionPoint, pulCount: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ISimpleConnectionPoint, pulCount: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, DescribeEvents: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ISimpleConnectionPoint, iEvent: u32, cEvents: u32, prgid: [*]i32, prgbstr: [*]?BSTR, pcEventsFetched: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ISimpleConnectionPoint, iEvent: u32, cEvents: u32, prgid: [*]i32, prgbstr: [*]?BSTR, pcEventsFetched: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Advise: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ISimpleConnectionPoint, pdisp: ?*IDispatch, pdwCookie: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ISimpleConnectionPoint, pdisp: ?*IDispatch, pdwCookie: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Unadvise: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ISimpleConnectionPoint, dwCookie: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ISimpleConnectionPoint, dwCookie: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISimpleConnectionPoint_GetEventCount(self: *const T, pulCount: ?*u32) HRESULT { return @as(*const ISimpleConnectionPoint.VTable, @ptrCast(self.vtable)).GetEventCount(@as(*const ISimpleConnectionPoint, @ptrCast(self)), pulCount); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISimpleConnectionPoint_DescribeEvents(self: *const T, iEvent: u32, cEvents: u32, prgid: [*]i32, prgbstr: [*]?BSTR, pcEventsFetched: ?*u32) HRESULT { return @as(*const ISimpleConnectionPoint.VTable, @ptrCast(self.vtable)).DescribeEvents(@as(*const ISimpleConnectionPoint, @ptrCast(self)), iEvent, cEvents, prgid, prgbstr, pcEventsFetched); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISimpleConnectionPoint_Advise(self: *const T, pdisp: ?*IDispatch, pdwCookie: ?*u32) HRESULT { return @as(*const ISimpleConnectionPoint.VTable, @ptrCast(self.vtable)).Advise(@as(*const ISimpleConnectionPoint, @ptrCast(self)), pdisp, pdwCookie); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISimpleConnectionPoint_Unadvise(self: *const T, dwCookie: u32) HRESULT { return @as(*const ISimpleConnectionPoint.VTable, @ptrCast(self.vtable)).Unadvise(@as(*const ISimpleConnectionPoint, @ptrCast(self)), dwCookie); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IDebugHelper_Value = Guid.initString("51973c3f-cb0c-11d0-b5c9-00a0244a0e7a"); pub const IID_IDebugHelper = &IID_IDebugHelper_Value; pub const IDebugHelper = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, CreatePropertyBrowser: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugHelper, pvar: ?*VARIANT, bstrName: ?[*:0]const u16, pdat: ?*IDebugApplicationThread, ppdob: ?*?*IDebugProperty, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugHelper, pvar: ?*VARIANT, bstrName: ?[*:0]const u16, pdat: ?*IDebugApplicationThread, ppdob: ?*?*IDebugProperty, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, CreatePropertyBrowserEx: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugHelper, pvar: ?*VARIANT, bstrName: ?[*:0]const u16, pdat: ?*IDebugApplicationThread, pdf: ?*IDebugFormatter, ppdob: ?*?*IDebugProperty, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugHelper, pvar: ?*VARIANT, bstrName: ?[*:0]const u16, pdat: ?*IDebugApplicationThread, pdf: ?*IDebugFormatter, ppdob: ?*?*IDebugProperty, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, CreateSimpleConnectionPoint: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugHelper, pdisp: ?*IDispatch, ppscp: ?*?*ISimpleConnectionPoint, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugHelper, pdisp: ?*IDispatch, ppscp: ?*?*ISimpleConnectionPoint, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugHelper_CreatePropertyBrowser(self: *const T, pvar: ?*VARIANT, bstrName: ?[*:0]const u16, pdat: ?*IDebugApplicationThread, ppdob: ?*?*IDebugProperty) HRESULT { return @as(*const IDebugHelper.VTable, @ptrCast(self.vtable)).CreatePropertyBrowser(@as(*const IDebugHelper, @ptrCast(self)), pvar, bstrName, pdat, ppdob); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugHelper_CreatePropertyBrowserEx(self: *const T, pvar: ?*VARIANT, bstrName: ?[*:0]const u16, pdat: ?*IDebugApplicationThread, pdf: ?*IDebugFormatter, ppdob: ?*?*IDebugProperty) HRESULT { return @as(*const IDebugHelper.VTable, @ptrCast(self.vtable)).CreatePropertyBrowserEx(@as(*const IDebugHelper, @ptrCast(self)), pvar, bstrName, pdat, pdf, ppdob); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugHelper_CreateSimpleConnectionPoint(self: *const T, pdisp: ?*IDispatch, ppscp: ?*?*ISimpleConnectionPoint) HRESULT { return @as(*const IDebugHelper.VTable, @ptrCast(self.vtable)).CreateSimpleConnectionPoint(@as(*const IDebugHelper, @ptrCast(self)), pdisp, ppscp); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IEnumDebugExpressionContexts_Value = Guid.initString("51973c40-cb0c-11d0-b5c9-00a0244a0e7a"); pub const IID_IEnumDebugExpressionContexts = &IID_IEnumDebugExpressionContexts_Value; pub const IEnumDebugExpressionContexts = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, Next: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IEnumDebugExpressionContexts, celt: u32, ppdec: ?*?*IDebugExpressionContext, pceltFetched: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IEnumDebugExpressionContexts, celt: u32, ppdec: ?*?*IDebugExpressionContext, pceltFetched: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Skip: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IEnumDebugExpressionContexts, celt: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IEnumDebugExpressionContexts, celt: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Reset: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IEnumDebugExpressionContexts, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IEnumDebugExpressionContexts, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Clone: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IEnumDebugExpressionContexts, ppedec: ?*?*IEnumDebugExpressionContexts, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IEnumDebugExpressionContexts, ppedec: ?*?*IEnumDebugExpressionContexts, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IEnumDebugExpressionContexts_Next(self: *const T, celt: u32, ppdec: ?*?*IDebugExpressionContext, pceltFetched: ?*u32) HRESULT { return @as(*const IEnumDebugExpressionContexts.VTable, @ptrCast(self.vtable)).Next(@as(*const IEnumDebugExpressionContexts, @ptrCast(self)), celt, ppdec, pceltFetched); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IEnumDebugExpressionContexts_Skip(self: *const T, celt: u32) HRESULT { return @as(*const IEnumDebugExpressionContexts.VTable, @ptrCast(self.vtable)).Skip(@as(*const IEnumDebugExpressionContexts, @ptrCast(self)), celt); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IEnumDebugExpressionContexts_Reset(self: *const T) HRESULT { return @as(*const IEnumDebugExpressionContexts.VTable, @ptrCast(self.vtable)).Reset(@as(*const IEnumDebugExpressionContexts, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IEnumDebugExpressionContexts_Clone(self: *const T, ppedec: ?*?*IEnumDebugExpressionContexts) HRESULT { return @as(*const IEnumDebugExpressionContexts.VTable, @ptrCast(self.vtable)).Clone(@as(*const IEnumDebugExpressionContexts, @ptrCast(self)), ppedec); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IProvideExpressionContexts_Value = Guid.initString("51973c41-cb0c-11d0-b5c9-00a0244a0e7a"); pub const IID_IProvideExpressionContexts = &IID_IProvideExpressionContexts_Value; pub const IProvideExpressionContexts = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, EnumExpressionContexts: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IProvideExpressionContexts, ppedec: ?*?*IEnumDebugExpressionContexts, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IProvideExpressionContexts, ppedec: ?*?*IEnumDebugExpressionContexts, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IProvideExpressionContexts_EnumExpressionContexts(self: *const T, ppedec: ?*?*IEnumDebugExpressionContexts) HRESULT { return @as(*const IProvideExpressionContexts.VTable, @ptrCast(self.vtable)).EnumExpressionContexts(@as(*const IProvideExpressionContexts, @ptrCast(self)), ppedec); } }; } pub usingnamespace MethodMixin(@This()); }; pub const PROFILER_SCRIPT_TYPE = enum(i32) { USER = 0, DYNAMIC = 1, NATIVE = 2, DOM = 3, }; pub const PROFILER_SCRIPT_TYPE_USER = PROFILER_SCRIPT_TYPE.USER; pub const PROFILER_SCRIPT_TYPE_DYNAMIC = PROFILER_SCRIPT_TYPE.DYNAMIC; pub const PROFILER_SCRIPT_TYPE_NATIVE = PROFILER_SCRIPT_TYPE.NATIVE; pub const PROFILER_SCRIPT_TYPE_DOM = PROFILER_SCRIPT_TYPE.DOM; pub const PROFILER_EVENT_MASK = enum(u32) { SCRIPT_FUNCTION_CALL = 1, NATIVE_FUNCTION_CALL = 2, DOM_FUNCTION_CALL = 4, ALL = 3, ALL_WITH_DOM = 7, _, pub fn initFlags(o: struct { SCRIPT_FUNCTION_CALL: u1 = 0, NATIVE_FUNCTION_CALL: u1 = 0, DOM_FUNCTION_CALL: u1 = 0, ALL: u1 = 0, ALL_WITH_DOM: u1 = 0, }) PROFILER_EVENT_MASK { return @as(PROFILER_EVENT_MASK, @enumFromInt((if (o.SCRIPT_FUNCTION_CALL == 1) @intFromEnum(PROFILER_EVENT_MASK.SCRIPT_FUNCTION_CALL) else 0) | (if (o.NATIVE_FUNCTION_CALL == 1) @intFromEnum(PROFILER_EVENT_MASK.NATIVE_FUNCTION_CALL) else 0) | (if (o.DOM_FUNCTION_CALL == 1) @intFromEnum(PROFILER_EVENT_MASK.DOM_FUNCTION_CALL) else 0) | (if (o.ALL == 1) @intFromEnum(PROFILER_EVENT_MASK.ALL) else 0) | (if (o.ALL_WITH_DOM == 1) @intFromEnum(PROFILER_EVENT_MASK.ALL_WITH_DOM) else 0))); } }; pub const PROFILER_EVENT_MASK_TRACE_SCRIPT_FUNCTION_CALL = PROFILER_EVENT_MASK.SCRIPT_FUNCTION_CALL; pub const PROFILER_EVENT_MASK_TRACE_NATIVE_FUNCTION_CALL = PROFILER_EVENT_MASK.NATIVE_FUNCTION_CALL; pub const PROFILER_EVENT_MASK_TRACE_DOM_FUNCTION_CALL = PROFILER_EVENT_MASK.DOM_FUNCTION_CALL; pub const PROFILER_EVENT_MASK_TRACE_ALL = PROFILER_EVENT_MASK.ALL; pub const PROFILER_EVENT_MASK_TRACE_ALL_WITH_DOM = PROFILER_EVENT_MASK.ALL_WITH_DOM; const IID_IActiveScriptProfilerControl_Value = Guid.initString("784b5ff0-69b0-47d1-a7dc-2518f4230e90"); pub const IID_IActiveScriptProfilerControl = &IID_IActiveScriptProfilerControl_Value; pub const IActiveScriptProfilerControl = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, StartProfiling: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IActiveScriptProfilerControl, clsidProfilerObject: ?*const Guid, dwEventMask: u32, dwContext: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IActiveScriptProfilerControl, clsidProfilerObject: ?*const Guid, dwEventMask: u32, dwContext: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetProfilerEventMask: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IActiveScriptProfilerControl, dwEventMask: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IActiveScriptProfilerControl, dwEventMask: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, StopProfiling: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IActiveScriptProfilerControl, hrShutdownReason: HRESULT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IActiveScriptProfilerControl, hrShutdownReason: HRESULT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IActiveScriptProfilerControl_StartProfiling(self: *const T, clsidProfilerObject: ?*const Guid, dwEventMask: u32, dwContext: u32) HRESULT { return @as(*const IActiveScriptProfilerControl.VTable, @ptrCast(self.vtable)).StartProfiling(@as(*const IActiveScriptProfilerControl, @ptrCast(self)), clsidProfilerObject, dwEventMask, dwContext); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IActiveScriptProfilerControl_SetProfilerEventMask(self: *const T, dwEventMask: u32) HRESULT { return @as(*const IActiveScriptProfilerControl.VTable, @ptrCast(self.vtable)).SetProfilerEventMask(@as(*const IActiveScriptProfilerControl, @ptrCast(self)), dwEventMask); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IActiveScriptProfilerControl_StopProfiling(self: *const T, hrShutdownReason: HRESULT) HRESULT { return @as(*const IActiveScriptProfilerControl.VTable, @ptrCast(self.vtable)).StopProfiling(@as(*const IActiveScriptProfilerControl, @ptrCast(self)), hrShutdownReason); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IActiveScriptProfilerControl2_Value = Guid.initString("47810165-498f-40be-94f1-653557e9e7da"); pub const IID_IActiveScriptProfilerControl2 = &IID_IActiveScriptProfilerControl2_Value; pub const IActiveScriptProfilerControl2 = extern struct { pub const VTable = extern struct { base: IActiveScriptProfilerControl.VTable, CompleteProfilerStart: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IActiveScriptProfilerControl2, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IActiveScriptProfilerControl2, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, PrepareProfilerStop: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IActiveScriptProfilerControl2, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IActiveScriptProfilerControl2, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IActiveScriptProfilerControl.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IActiveScriptProfilerControl2_CompleteProfilerStart(self: *const T) HRESULT { return @as(*const IActiveScriptProfilerControl2.VTable, @ptrCast(self.vtable)).CompleteProfilerStart(@as(*const IActiveScriptProfilerControl2, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IActiveScriptProfilerControl2_PrepareProfilerStop(self: *const T) HRESULT { return @as(*const IActiveScriptProfilerControl2.VTable, @ptrCast(self.vtable)).PrepareProfilerStop(@as(*const IActiveScriptProfilerControl2, @ptrCast(self))); } }; } pub usingnamespace MethodMixin(@This()); }; pub const PROFILER_HEAP_OBJECT_FLAGS = enum(u32) { NEW_OBJECT = 1, IS_ROOT = 2, SITE_CLOSED = 4, EXTERNAL = 8, EXTERNAL_UNKNOWN = 16, EXTERNAL_DISPATCH = 32, SIZE_APPROXIMATE = 64, SIZE_UNAVAILABLE = 128, NEW_STATE_UNAVAILABLE = 256, WINRT_INSTANCE = 512, WINRT_RUNTIMECLASS = 1024, WINRT_DELEGATE = 2048, WINRT_NAMESPACE = 4096, _, pub fn initFlags(o: struct { NEW_OBJECT: u1 = 0, IS_ROOT: u1 = 0, SITE_CLOSED: u1 = 0, EXTERNAL: u1 = 0, EXTERNAL_UNKNOWN: u1 = 0, EXTERNAL_DISPATCH: u1 = 0, SIZE_APPROXIMATE: u1 = 0, SIZE_UNAVAILABLE: u1 = 0, NEW_STATE_UNAVAILABLE: u1 = 0, WINRT_INSTANCE: u1 = 0, WINRT_RUNTIMECLASS: u1 = 0, WINRT_DELEGATE: u1 = 0, WINRT_NAMESPACE: u1 = 0, }) PROFILER_HEAP_OBJECT_FLAGS { return @as(PROFILER_HEAP_OBJECT_FLAGS, @enumFromInt((if (o.NEW_OBJECT == 1) @intFromEnum(PROFILER_HEAP_OBJECT_FLAGS.NEW_OBJECT) else 0) | (if (o.IS_ROOT == 1) @intFromEnum(PROFILER_HEAP_OBJECT_FLAGS.IS_ROOT) else 0) | (if (o.SITE_CLOSED == 1) @intFromEnum(PROFILER_HEAP_OBJECT_FLAGS.SITE_CLOSED) else 0) | (if (o.EXTERNAL == 1) @intFromEnum(PROFILER_HEAP_OBJECT_FLAGS.EXTERNAL) else 0) | (if (o.EXTERNAL_UNKNOWN == 1) @intFromEnum(PROFILER_HEAP_OBJECT_FLAGS.EXTERNAL_UNKNOWN) else 0) | (if (o.EXTERNAL_DISPATCH == 1) @intFromEnum(PROFILER_HEAP_OBJECT_FLAGS.EXTERNAL_DISPATCH) else 0) | (if (o.SIZE_APPROXIMATE == 1) @intFromEnum(PROFILER_HEAP_OBJECT_FLAGS.SIZE_APPROXIMATE) else 0) | (if (o.SIZE_UNAVAILABLE == 1) @intFromEnum(PROFILER_HEAP_OBJECT_FLAGS.SIZE_UNAVAILABLE) else 0) | (if (o.NEW_STATE_UNAVAILABLE == 1) @intFromEnum(PROFILER_HEAP_OBJECT_FLAGS.NEW_STATE_UNAVAILABLE) else 0) | (if (o.WINRT_INSTANCE == 1) @intFromEnum(PROFILER_HEAP_OBJECT_FLAGS.WINRT_INSTANCE) else 0) | (if (o.WINRT_RUNTIMECLASS == 1) @intFromEnum(PROFILER_HEAP_OBJECT_FLAGS.WINRT_RUNTIMECLASS) else 0) | (if (o.WINRT_DELEGATE == 1) @intFromEnum(PROFILER_HEAP_OBJECT_FLAGS.WINRT_DELEGATE) else 0) | (if (o.WINRT_NAMESPACE == 1) @intFromEnum(PROFILER_HEAP_OBJECT_FLAGS.WINRT_NAMESPACE) else 0))); } }; pub const PROFILER_HEAP_OBJECT_FLAGS_NEW_OBJECT = PROFILER_HEAP_OBJECT_FLAGS.NEW_OBJECT; pub const PROFILER_HEAP_OBJECT_FLAGS_IS_ROOT = PROFILER_HEAP_OBJECT_FLAGS.IS_ROOT; pub const PROFILER_HEAP_OBJECT_FLAGS_SITE_CLOSED = PROFILER_HEAP_OBJECT_FLAGS.SITE_CLOSED; pub const PROFILER_HEAP_OBJECT_FLAGS_EXTERNAL = PROFILER_HEAP_OBJECT_FLAGS.EXTERNAL; pub const PROFILER_HEAP_OBJECT_FLAGS_EXTERNAL_UNKNOWN = PROFILER_HEAP_OBJECT_FLAGS.EXTERNAL_UNKNOWN; pub const PROFILER_HEAP_OBJECT_FLAGS_EXTERNAL_DISPATCH = PROFILER_HEAP_OBJECT_FLAGS.EXTERNAL_DISPATCH; pub const PROFILER_HEAP_OBJECT_FLAGS_SIZE_APPROXIMATE = PROFILER_HEAP_OBJECT_FLAGS.SIZE_APPROXIMATE; pub const PROFILER_HEAP_OBJECT_FLAGS_SIZE_UNAVAILABLE = PROFILER_HEAP_OBJECT_FLAGS.SIZE_UNAVAILABLE; pub const PROFILER_HEAP_OBJECT_FLAGS_NEW_STATE_UNAVAILABLE = PROFILER_HEAP_OBJECT_FLAGS.NEW_STATE_UNAVAILABLE; pub const PROFILER_HEAP_OBJECT_FLAGS_WINRT_INSTANCE = PROFILER_HEAP_OBJECT_FLAGS.WINRT_INSTANCE; pub const PROFILER_HEAP_OBJECT_FLAGS_WINRT_RUNTIMECLASS = PROFILER_HEAP_OBJECT_FLAGS.WINRT_RUNTIMECLASS; pub const PROFILER_HEAP_OBJECT_FLAGS_WINRT_DELEGATE = PROFILER_HEAP_OBJECT_FLAGS.WINRT_DELEGATE; pub const PROFILER_HEAP_OBJECT_FLAGS_WINRT_NAMESPACE = PROFILER_HEAP_OBJECT_FLAGS.WINRT_NAMESPACE; pub const PROFILER_HEAP_OBJECT_OPTIONAL_INFO_TYPE = enum(i32) { PROTOTYPE = 1, FUNCTION_NAME = 2, SCOPE_LIST = 3, INTERNAL_PROPERTY = 4, NAME_PROPERTIES = 5, INDEX_PROPERTIES = 6, ELEMENT_ATTRIBUTES_SIZE = 7, ELEMENT_TEXT_CHILDREN_SIZE = 8, RELATIONSHIPS = 9, WINRTEVENTS = 10, WEAKMAP_COLLECTION_LIST = 11, MAP_COLLECTION_LIST = 12, SET_COLLECTION_LIST = 13, // MAX_VALUE = 13, this enum value conflicts with SET_COLLECTION_LIST }; pub const PROFILER_HEAP_OBJECT_OPTIONAL_INFO_PROTOTYPE = PROFILER_HEAP_OBJECT_OPTIONAL_INFO_TYPE.PROTOTYPE; pub const PROFILER_HEAP_OBJECT_OPTIONAL_INFO_FUNCTION_NAME = PROFILER_HEAP_OBJECT_OPTIONAL_INFO_TYPE.FUNCTION_NAME; pub const PROFILER_HEAP_OBJECT_OPTIONAL_INFO_SCOPE_LIST = PROFILER_HEAP_OBJECT_OPTIONAL_INFO_TYPE.SCOPE_LIST; pub const PROFILER_HEAP_OBJECT_OPTIONAL_INFO_INTERNAL_PROPERTY = PROFILER_HEAP_OBJECT_OPTIONAL_INFO_TYPE.INTERNAL_PROPERTY; pub const PROFILER_HEAP_OBJECT_OPTIONAL_INFO_NAME_PROPERTIES = PROFILER_HEAP_OBJECT_OPTIONAL_INFO_TYPE.NAME_PROPERTIES; pub const PROFILER_HEAP_OBJECT_OPTIONAL_INFO_INDEX_PROPERTIES = PROFILER_HEAP_OBJECT_OPTIONAL_INFO_TYPE.INDEX_PROPERTIES; pub const PROFILER_HEAP_OBJECT_OPTIONAL_INFO_ELEMENT_ATTRIBUTES_SIZE = PROFILER_HEAP_OBJECT_OPTIONAL_INFO_TYPE.ELEMENT_ATTRIBUTES_SIZE; pub const PROFILER_HEAP_OBJECT_OPTIONAL_INFO_ELEMENT_TEXT_CHILDREN_SIZE = PROFILER_HEAP_OBJECT_OPTIONAL_INFO_TYPE.ELEMENT_TEXT_CHILDREN_SIZE; pub const PROFILER_HEAP_OBJECT_OPTIONAL_INFO_RELATIONSHIPS = PROFILER_HEAP_OBJECT_OPTIONAL_INFO_TYPE.RELATIONSHIPS; pub const PROFILER_HEAP_OBJECT_OPTIONAL_INFO_WINRTEVENTS = PROFILER_HEAP_OBJECT_OPTIONAL_INFO_TYPE.WINRTEVENTS; pub const PROFILER_HEAP_OBJECT_OPTIONAL_INFO_WEAKMAP_COLLECTION_LIST = PROFILER_HEAP_OBJECT_OPTIONAL_INFO_TYPE.WEAKMAP_COLLECTION_LIST; pub const PROFILER_HEAP_OBJECT_OPTIONAL_INFO_MAP_COLLECTION_LIST = PROFILER_HEAP_OBJECT_OPTIONAL_INFO_TYPE.MAP_COLLECTION_LIST; pub const PROFILER_HEAP_OBJECT_OPTIONAL_INFO_SET_COLLECTION_LIST = PROFILER_HEAP_OBJECT_OPTIONAL_INFO_TYPE.SET_COLLECTION_LIST; pub const PROFILER_HEAP_OBJECT_OPTIONAL_INFO_MAX_VALUE = PROFILER_HEAP_OBJECT_OPTIONAL_INFO_TYPE.SET_COLLECTION_LIST; pub const PROFILER_HEAP_OBJECT_RELATIONSHIP_FLAGS = enum(u32) { NONE = 0, IS_GET_ACCESSOR = 65536, IS_SET_ACCESSOR = 131072, LET_VARIABLE = 262144, CONST_VARIABLE = 524288, _, pub fn initFlags(o: struct { NONE: u1 = 0, IS_GET_ACCESSOR: u1 = 0, IS_SET_ACCESSOR: u1 = 0, LET_VARIABLE: u1 = 0, CONST_VARIABLE: u1 = 0, }) PROFILER_HEAP_OBJECT_RELATIONSHIP_FLAGS { return @as(PROFILER_HEAP_OBJECT_RELATIONSHIP_FLAGS, @enumFromInt((if (o.NONE == 1) @intFromEnum(PROFILER_HEAP_OBJECT_RELATIONSHIP_FLAGS.NONE) else 0) | (if (o.IS_GET_ACCESSOR == 1) @intFromEnum(PROFILER_HEAP_OBJECT_RELATIONSHIP_FLAGS.IS_GET_ACCESSOR) else 0) | (if (o.IS_SET_ACCESSOR == 1) @intFromEnum(PROFILER_HEAP_OBJECT_RELATIONSHIP_FLAGS.IS_SET_ACCESSOR) else 0) | (if (o.LET_VARIABLE == 1) @intFromEnum(PROFILER_HEAP_OBJECT_RELATIONSHIP_FLAGS.LET_VARIABLE) else 0) | (if (o.CONST_VARIABLE == 1) @intFromEnum(PROFILER_HEAP_OBJECT_RELATIONSHIP_FLAGS.CONST_VARIABLE) else 0))); } }; pub const PROFILER_HEAP_OBJECT_RELATIONSHIP_FLAGS_NONE = PROFILER_HEAP_OBJECT_RELATIONSHIP_FLAGS.NONE; pub const PROFILER_HEAP_OBJECT_RELATIONSHIP_FLAGS_IS_GET_ACCESSOR = PROFILER_HEAP_OBJECT_RELATIONSHIP_FLAGS.IS_GET_ACCESSOR; pub const PROFILER_HEAP_OBJECT_RELATIONSHIP_FLAGS_IS_SET_ACCESSOR = PROFILER_HEAP_OBJECT_RELATIONSHIP_FLAGS.IS_SET_ACCESSOR; pub const PROFILER_HEAP_OBJECT_RELATIONSHIP_FLAGS_LET_VARIABLE = PROFILER_HEAP_OBJECT_RELATIONSHIP_FLAGS.LET_VARIABLE; pub const PROFILER_HEAP_OBJECT_RELATIONSHIP_FLAGS_CONST_VARIABLE = PROFILER_HEAP_OBJECT_RELATIONSHIP_FLAGS.CONST_VARIABLE; pub const PROFILER_HEAP_ENUM_FLAGS = enum(u32) { NONE = 0, STORE_RELATIONSHIP_FLAGS = 1, SUBSTRINGS = 2, RELATIONSHIP_SUBSTRINGS = 3, _, pub fn initFlags(o: struct { NONE: u1 = 0, STORE_RELATIONSHIP_FLAGS: u1 = 0, SUBSTRINGS: u1 = 0, RELATIONSHIP_SUBSTRINGS: u1 = 0, }) PROFILER_HEAP_ENUM_FLAGS { return @as(PROFILER_HEAP_ENUM_FLAGS, @enumFromInt((if (o.NONE == 1) @intFromEnum(PROFILER_HEAP_ENUM_FLAGS.NONE) else 0) | (if (o.STORE_RELATIONSHIP_FLAGS == 1) @intFromEnum(PROFILER_HEAP_ENUM_FLAGS.STORE_RELATIONSHIP_FLAGS) else 0) | (if (o.SUBSTRINGS == 1) @intFromEnum(PROFILER_HEAP_ENUM_FLAGS.SUBSTRINGS) else 0) | (if (o.RELATIONSHIP_SUBSTRINGS == 1) @intFromEnum(PROFILER_HEAP_ENUM_FLAGS.RELATIONSHIP_SUBSTRINGS) else 0))); } }; pub const PROFILER_HEAP_ENUM_FLAGS_NONE = PROFILER_HEAP_ENUM_FLAGS.NONE; pub const PROFILER_HEAP_ENUM_FLAGS_STORE_RELATIONSHIP_FLAGS = PROFILER_HEAP_ENUM_FLAGS.STORE_RELATIONSHIP_FLAGS; pub const PROFILER_HEAP_ENUM_FLAGS_SUBSTRINGS = PROFILER_HEAP_ENUM_FLAGS.SUBSTRINGS; pub const PROFILER_HEAP_ENUM_FLAGS_RELATIONSHIP_SUBSTRINGS = PROFILER_HEAP_ENUM_FLAGS.RELATIONSHIP_SUBSTRINGS; pub const PROFILER_HEAP_OBJECT_SCOPE_LIST = extern struct { count: u32, scopes: [1]usize, }; pub const PROFILER_RELATIONSHIP_INFO = enum(i32) { NUMBER = 1, STRING = 2, HEAP_OBJECT = 3, EXTERNAL_OBJECT = 4, BSTR = 5, SUBSTRING = 6, }; pub const PROFILER_PROPERTY_TYPE_NUMBER = PROFILER_RELATIONSHIP_INFO.NUMBER; pub const PROFILER_PROPERTY_TYPE_STRING = PROFILER_RELATIONSHIP_INFO.STRING; pub const PROFILER_PROPERTY_TYPE_HEAP_OBJECT = PROFILER_RELATIONSHIP_INFO.HEAP_OBJECT; pub const PROFILER_PROPERTY_TYPE_EXTERNAL_OBJECT = PROFILER_RELATIONSHIP_INFO.EXTERNAL_OBJECT; pub const PROFILER_PROPERTY_TYPE_BSTR = PROFILER_RELATIONSHIP_INFO.BSTR; pub const PROFILER_PROPERTY_TYPE_SUBSTRING = PROFILER_RELATIONSHIP_INFO.SUBSTRING; pub const PROFILER_PROPERTY_TYPE_SUBSTRING_INFO = extern struct { length: u32, value: ?[*:0]const u16, }; pub const PROFILER_HEAP_OBJECT_RELATIONSHIP = extern struct { relationshipId: u32, relationshipInfo: PROFILER_RELATIONSHIP_INFO, Anonymous: extern union { numberValue: f64, stringValue: ?[*:0]const u16, bstrValue: ?BSTR, objectId: usize, externalObjectAddress: ?*anyopaque, subString: ?*PROFILER_PROPERTY_TYPE_SUBSTRING_INFO, }, }; pub const PROFILER_HEAP_OBJECT_RELATIONSHIP_LIST = extern struct { count: u32, elements: [1]PROFILER_HEAP_OBJECT_RELATIONSHIP, }; pub const PROFILER_HEAP_OBJECT_OPTIONAL_INFO = extern struct { infoType: PROFILER_HEAP_OBJECT_OPTIONAL_INFO_TYPE, Anonymous: extern union { prototype: usize, functionName: ?[*:0]const u16, elementAttributesSize: u32, elementTextChildrenSize: u32, scopeList: ?*PROFILER_HEAP_OBJECT_SCOPE_LIST, internalProperty: ?*PROFILER_HEAP_OBJECT_RELATIONSHIP, namePropertyList: ?*PROFILER_HEAP_OBJECT_RELATIONSHIP_LIST, indexPropertyList: ?*PROFILER_HEAP_OBJECT_RELATIONSHIP_LIST, relationshipList: ?*PROFILER_HEAP_OBJECT_RELATIONSHIP_LIST, eventList: ?*PROFILER_HEAP_OBJECT_RELATIONSHIP_LIST, weakMapCollectionList: ?*PROFILER_HEAP_OBJECT_RELATIONSHIP_LIST, mapCollectionList: ?*PROFILER_HEAP_OBJECT_RELATIONSHIP_LIST, setCollectionList: ?*PROFILER_HEAP_OBJECT_RELATIONSHIP_LIST, }, }; pub const PROFILER_HEAP_OBJECT = extern struct { size: u32, Anonymous: extern union { objectId: usize, externalObjectAddress: ?*anyopaque, }, typeNameId: u32, flags: u32, unused: u16, optionalInfoCount: u16, }; const IID_IActiveScriptProfilerHeapEnum_Value = Guid.initString("32e4694e-0d37-419b-b93d-fa20ded6e8ea"); pub const IID_IActiveScriptProfilerHeapEnum = &IID_IActiveScriptProfilerHeapEnum_Value; pub const IActiveScriptProfilerHeapEnum = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, Next: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IActiveScriptProfilerHeapEnum, celt: u32, heapObjects: [*]?*PROFILER_HEAP_OBJECT, pceltFetched: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IActiveScriptProfilerHeapEnum, celt: u32, heapObjects: [*]?*PROFILER_HEAP_OBJECT, pceltFetched: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetOptionalInfo: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IActiveScriptProfilerHeapEnum, heapObject: ?*PROFILER_HEAP_OBJECT, celt: u32, optionalInfo: [*]PROFILER_HEAP_OBJECT_OPTIONAL_INFO, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IActiveScriptProfilerHeapEnum, heapObject: ?*PROFILER_HEAP_OBJECT, celt: u32, optionalInfo: [*]PROFILER_HEAP_OBJECT_OPTIONAL_INFO, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, FreeObjectAndOptionalInfo: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IActiveScriptProfilerHeapEnum, celt: u32, heapObjects: [*]?*PROFILER_HEAP_OBJECT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IActiveScriptProfilerHeapEnum, celt: u32, heapObjects: [*]?*PROFILER_HEAP_OBJECT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetNameIdMap: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IActiveScriptProfilerHeapEnum, pNameList: [*]?*?*?PWSTR, pcelt: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IActiveScriptProfilerHeapEnum, pNameList: [*]?*?*?PWSTR, pcelt: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IActiveScriptProfilerHeapEnum_Next(self: *const T, celt: u32, heapObjects: [*]?*PROFILER_HEAP_OBJECT, pceltFetched: ?*u32) HRESULT { return @as(*const IActiveScriptProfilerHeapEnum.VTable, @ptrCast(self.vtable)).Next(@as(*const IActiveScriptProfilerHeapEnum, @ptrCast(self)), celt, heapObjects, pceltFetched); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IActiveScriptProfilerHeapEnum_GetOptionalInfo(self: *const T, heapObject: ?*PROFILER_HEAP_OBJECT, celt: u32, optionalInfo: [*]PROFILER_HEAP_OBJECT_OPTIONAL_INFO) HRESULT { return @as(*const IActiveScriptProfilerHeapEnum.VTable, @ptrCast(self.vtable)).GetOptionalInfo(@as(*const IActiveScriptProfilerHeapEnum, @ptrCast(self)), heapObject, celt, optionalInfo); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IActiveScriptProfilerHeapEnum_FreeObjectAndOptionalInfo(self: *const T, celt: u32, heapObjects: [*]?*PROFILER_HEAP_OBJECT) HRESULT { return @as(*const IActiveScriptProfilerHeapEnum.VTable, @ptrCast(self.vtable)).FreeObjectAndOptionalInfo(@as(*const IActiveScriptProfilerHeapEnum, @ptrCast(self)), celt, heapObjects); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IActiveScriptProfilerHeapEnum_GetNameIdMap(self: *const T, pNameList: [*]?*?*?PWSTR, pcelt: ?*u32) HRESULT { return @as(*const IActiveScriptProfilerHeapEnum.VTable, @ptrCast(self.vtable)).GetNameIdMap(@as(*const IActiveScriptProfilerHeapEnum, @ptrCast(self)), pNameList, pcelt); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IActiveScriptProfilerControl3_Value = Guid.initString("0b403015-f381-4023-a5d0-6fed076de716"); pub const IID_IActiveScriptProfilerControl3 = &IID_IActiveScriptProfilerControl3_Value; pub const IActiveScriptProfilerControl3 = extern struct { pub const VTable = extern struct { base: IActiveScriptProfilerControl2.VTable, EnumHeap: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IActiveScriptProfilerControl3, ppEnum: ?*?*IActiveScriptProfilerHeapEnum, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IActiveScriptProfilerControl3, ppEnum: ?*?*IActiveScriptProfilerHeapEnum, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IActiveScriptProfilerControl2.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IActiveScriptProfilerControl3_EnumHeap(self: *const T, ppEnum: ?*?*IActiveScriptProfilerHeapEnum) HRESULT { return @as(*const IActiveScriptProfilerControl3.VTable, @ptrCast(self.vtable)).EnumHeap(@as(*const IActiveScriptProfilerControl3, @ptrCast(self)), ppEnum); } }; } pub usingnamespace MethodMixin(@This()); }; pub const PROFILER_HEAP_SUMMARY_VERSION = enum(i32) { @"1" = 1, }; pub const PROFILER_HEAP_SUMMARY_VERSION_1 = PROFILER_HEAP_SUMMARY_VERSION.@"1"; pub const PROFILER_HEAP_SUMMARY = extern struct { version: PROFILER_HEAP_SUMMARY_VERSION, totalHeapSize: u32, }; const IID_IActiveScriptProfilerControl4_Value = Guid.initString("160f94fd-9dbc-40d4-9eac-2b71db3132f4"); pub const IID_IActiveScriptProfilerControl4 = &IID_IActiveScriptProfilerControl4_Value; pub const IActiveScriptProfilerControl4 = extern struct { pub const VTable = extern struct { base: IActiveScriptProfilerControl3.VTable, SummarizeHeap: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IActiveScriptProfilerControl4, heapSummary: ?*PROFILER_HEAP_SUMMARY, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IActiveScriptProfilerControl4, heapSummary: ?*PROFILER_HEAP_SUMMARY, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IActiveScriptProfilerControl3.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IActiveScriptProfilerControl4_SummarizeHeap(self: *const T, heapSummary: ?*PROFILER_HEAP_SUMMARY) HRESULT { return @as(*const IActiveScriptProfilerControl4.VTable, @ptrCast(self.vtable)).SummarizeHeap(@as(*const IActiveScriptProfilerControl4, @ptrCast(self)), heapSummary); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IActiveScriptProfilerControl5_Value = Guid.initString("1c01a2d1-8f0f-46a5-9720-0d7ed2c62f0a"); pub const IID_IActiveScriptProfilerControl5 = &IID_IActiveScriptProfilerControl5_Value; pub const IActiveScriptProfilerControl5 = extern struct { pub const VTable = extern struct { base: IActiveScriptProfilerControl4.VTable, EnumHeap2: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IActiveScriptProfilerControl5, enumFlags: PROFILER_HEAP_ENUM_FLAGS, ppEnum: ?*?*IActiveScriptProfilerHeapEnum, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IActiveScriptProfilerControl5, enumFlags: PROFILER_HEAP_ENUM_FLAGS, ppEnum: ?*?*IActiveScriptProfilerHeapEnum, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IActiveScriptProfilerControl4.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IActiveScriptProfilerControl5_EnumHeap2(self: *const T, enumFlags: PROFILER_HEAP_ENUM_FLAGS, ppEnum: ?*?*IActiveScriptProfilerHeapEnum) HRESULT { return @as(*const IActiveScriptProfilerControl5.VTable, @ptrCast(self.vtable)).EnumHeap2(@as(*const IActiveScriptProfilerControl5, @ptrCast(self)), enumFlags, ppEnum); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IActiveScriptProfilerCallback_Value = Guid.initString("740eca23-7d9d-42e5-ba9d-f8b24b1c7a9b"); pub const IID_IActiveScriptProfilerCallback = &IID_IActiveScriptProfilerCallback_Value; pub const IActiveScriptProfilerCallback = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, Initialize: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IActiveScriptProfilerCallback, dwContext: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IActiveScriptProfilerCallback, dwContext: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Shutdown: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IActiveScriptProfilerCallback, hrReason: HRESULT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IActiveScriptProfilerCallback, hrReason: HRESULT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, ScriptCompiled: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IActiveScriptProfilerCallback, scriptId: i32, type: PROFILER_SCRIPT_TYPE, pIDebugDocumentContext: ?*IUnknown, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IActiveScriptProfilerCallback, scriptId: i32, type: PROFILER_SCRIPT_TYPE, pIDebugDocumentContext: ?*IUnknown, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, FunctionCompiled: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IActiveScriptProfilerCallback, functionId: i32, scriptId: i32, pwszFunctionName: ?[*:0]const u16, pwszFunctionNameHint: ?[*:0]const u16, pIDebugDocumentContext: ?*IUnknown, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IActiveScriptProfilerCallback, functionId: i32, scriptId: i32, pwszFunctionName: ?[*:0]const u16, pwszFunctionNameHint: ?[*:0]const u16, pIDebugDocumentContext: ?*IUnknown, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, OnFunctionEnter: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IActiveScriptProfilerCallback, scriptId: i32, functionId: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IActiveScriptProfilerCallback, scriptId: i32, functionId: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, OnFunctionExit: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IActiveScriptProfilerCallback, scriptId: i32, functionId: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IActiveScriptProfilerCallback, scriptId: i32, functionId: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IActiveScriptProfilerCallback_Initialize(self: *const T, dwContext: u32) HRESULT { return @as(*const IActiveScriptProfilerCallback.VTable, @ptrCast(self.vtable)).Initialize(@as(*const IActiveScriptProfilerCallback, @ptrCast(self)), dwContext); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IActiveScriptProfilerCallback_Shutdown(self: *const T, hrReason: HRESULT) HRESULT { return @as(*const IActiveScriptProfilerCallback.VTable, @ptrCast(self.vtable)).Shutdown(@as(*const IActiveScriptProfilerCallback, @ptrCast(self)), hrReason); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IActiveScriptProfilerCallback_ScriptCompiled(self: *const T, scriptId: i32, type_: PROFILER_SCRIPT_TYPE, pIDebugDocumentContext: ?*IUnknown) HRESULT { return @as(*const IActiveScriptProfilerCallback.VTable, @ptrCast(self.vtable)).ScriptCompiled(@as(*const IActiveScriptProfilerCallback, @ptrCast(self)), scriptId, type_, pIDebugDocumentContext); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IActiveScriptProfilerCallback_FunctionCompiled(self: *const T, functionId: i32, scriptId: i32, pwszFunctionName: ?[*:0]const u16, pwszFunctionNameHint: ?[*:0]const u16, pIDebugDocumentContext: ?*IUnknown) HRESULT { return @as(*const IActiveScriptProfilerCallback.VTable, @ptrCast(self.vtable)).FunctionCompiled(@as(*const IActiveScriptProfilerCallback, @ptrCast(self)), functionId, scriptId, pwszFunctionName, pwszFunctionNameHint, pIDebugDocumentContext); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IActiveScriptProfilerCallback_OnFunctionEnter(self: *const T, scriptId: i32, functionId: i32) HRESULT { return @as(*const IActiveScriptProfilerCallback.VTable, @ptrCast(self.vtable)).OnFunctionEnter(@as(*const IActiveScriptProfilerCallback, @ptrCast(self)), scriptId, functionId); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IActiveScriptProfilerCallback_OnFunctionExit(self: *const T, scriptId: i32, functionId: i32) HRESULT { return @as(*const IActiveScriptProfilerCallback.VTable, @ptrCast(self.vtable)).OnFunctionExit(@as(*const IActiveScriptProfilerCallback, @ptrCast(self)), scriptId, functionId); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IActiveScriptProfilerCallback2_Value = Guid.initString("31b7f8ad-a637-409c-b22f-040995b6103d"); pub const IID_IActiveScriptProfilerCallback2 = &IID_IActiveScriptProfilerCallback2_Value; pub const IActiveScriptProfilerCallback2 = extern struct { pub const VTable = extern struct { base: IActiveScriptProfilerCallback.VTable, OnFunctionEnterByName: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IActiveScriptProfilerCallback2, pwszFunctionName: ?[*:0]const u16, type: PROFILER_SCRIPT_TYPE, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IActiveScriptProfilerCallback2, pwszFunctionName: ?[*:0]const u16, type: PROFILER_SCRIPT_TYPE, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, OnFunctionExitByName: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IActiveScriptProfilerCallback2, pwszFunctionName: ?[*:0]const u16, type: PROFILER_SCRIPT_TYPE, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IActiveScriptProfilerCallback2, pwszFunctionName: ?[*:0]const u16, type: PROFILER_SCRIPT_TYPE, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IActiveScriptProfilerCallback.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IActiveScriptProfilerCallback2_OnFunctionEnterByName(self: *const T, pwszFunctionName: ?[*:0]const u16, type_: PROFILER_SCRIPT_TYPE) HRESULT { return @as(*const IActiveScriptProfilerCallback2.VTable, @ptrCast(self.vtable)).OnFunctionEnterByName(@as(*const IActiveScriptProfilerCallback2, @ptrCast(self)), pwszFunctionName, type_); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IActiveScriptProfilerCallback2_OnFunctionExitByName(self: *const T, pwszFunctionName: ?[*:0]const u16, type_: PROFILER_SCRIPT_TYPE) HRESULT { return @as(*const IActiveScriptProfilerCallback2.VTable, @ptrCast(self.vtable)).OnFunctionExitByName(@as(*const IActiveScriptProfilerCallback2, @ptrCast(self)), pwszFunctionName, type_); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IActiveScriptProfilerCallback3_Value = Guid.initString("6ac5ad25-2037-4687-91df-b59979d93d73"); pub const IID_IActiveScriptProfilerCallback3 = &IID_IActiveScriptProfilerCallback3_Value; pub const IActiveScriptProfilerCallback3 = extern struct { pub const VTable = extern struct { base: IActiveScriptProfilerCallback2.VTable, SetWebWorkerId: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IActiveScriptProfilerCallback3, webWorkerId: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IActiveScriptProfilerCallback3, webWorkerId: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IActiveScriptProfilerCallback2.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IActiveScriptProfilerCallback3_SetWebWorkerId(self: *const T, webWorkerId: u32) HRESULT { return @as(*const IActiveScriptProfilerCallback3.VTable, @ptrCast(self.vtable)).SetWebWorkerId(@as(*const IActiveScriptProfilerCallback3, @ptrCast(self)), webWorkerId); } }; } pub usingnamespace MethodMixin(@This()); }; pub const IMAGEHLP_STATUS_REASON = enum(i32) { OutOfMemory = 0, RvaToVaFailed = 1, NoRoomInImage = 2, ImportModuleFailed = 3, ImportProcedureFailed = 4, ImportModule = 5, ImportProcedure = 6, Forwarder = 7, ForwarderNOT = 8, ImageModified = 9, ExpandFileHeaders = 10, ImageComplete = 11, MismatchedSymbols = 12, SymbolsNotUpdated = 13, ImportProcedure32 = 14, ImportProcedure64 = 15, Forwarder32 = 16, Forwarder64 = 17, ForwarderNOT32 = 18, ForwarderNOT64 = 19, }; pub const BindOutOfMemory = IMAGEHLP_STATUS_REASON.OutOfMemory; pub const BindRvaToVaFailed = IMAGEHLP_STATUS_REASON.RvaToVaFailed; pub const BindNoRoomInImage = IMAGEHLP_STATUS_REASON.NoRoomInImage; pub const BindImportModuleFailed = IMAGEHLP_STATUS_REASON.ImportModuleFailed; pub const BindImportProcedureFailed = IMAGEHLP_STATUS_REASON.ImportProcedureFailed; pub const BindImportModule = IMAGEHLP_STATUS_REASON.ImportModule; pub const BindImportProcedure = IMAGEHLP_STATUS_REASON.ImportProcedure; pub const BindForwarder = IMAGEHLP_STATUS_REASON.Forwarder; pub const BindForwarderNOT = IMAGEHLP_STATUS_REASON.ForwarderNOT; pub const BindImageModified = IMAGEHLP_STATUS_REASON.ImageModified; pub const BindExpandFileHeaders = IMAGEHLP_STATUS_REASON.ExpandFileHeaders; pub const BindImageComplete = IMAGEHLP_STATUS_REASON.ImageComplete; pub const BindMismatchedSymbols = IMAGEHLP_STATUS_REASON.MismatchedSymbols; pub const BindSymbolsNotUpdated = IMAGEHLP_STATUS_REASON.SymbolsNotUpdated; pub const BindImportProcedure32 = IMAGEHLP_STATUS_REASON.ImportProcedure32; pub const BindImportProcedure64 = IMAGEHLP_STATUS_REASON.ImportProcedure64; pub const BindForwarder32 = IMAGEHLP_STATUS_REASON.Forwarder32; pub const BindForwarder64 = IMAGEHLP_STATUS_REASON.Forwarder64; pub const BindForwarderNOT32 = IMAGEHLP_STATUS_REASON.ForwarderNOT32; pub const BindForwarderNOT64 = IMAGEHLP_STATUS_REASON.ForwarderNOT64; pub const PIMAGEHLP_STATUS_ROUTINE = switch (@import("builtin").zig_backend) { .stage1 => fn ( Reason: IMAGEHLP_STATUS_REASON, ImageName: ?[*:0]const u8, DllName: ?[*:0]const u8, Va: usize, Parameter: usize, ) callconv(@import("std").os.windows.WINAPI) BOOL, else => *const fn ( Reason: IMAGEHLP_STATUS_REASON, ImageName: ?[*:0]const u8, DllName: ?[*:0]const u8, Va: usize, Parameter: usize, ) callconv(@import("std").os.windows.WINAPI) BOOL, }; pub const PIMAGEHLP_STATUS_ROUTINE32 = switch (@import("builtin").zig_backend) { .stage1 => fn ( Reason: IMAGEHLP_STATUS_REASON, ImageName: ?[*:0]const u8, DllName: ?[*:0]const u8, Va: u32, Parameter: usize, ) callconv(@import("std").os.windows.WINAPI) BOOL, else => *const fn ( Reason: IMAGEHLP_STATUS_REASON, ImageName: ?[*:0]const u8, DllName: ?[*:0]const u8, Va: u32, Parameter: usize, ) callconv(@import("std").os.windows.WINAPI) BOOL, }; pub const PIMAGEHLP_STATUS_ROUTINE64 = switch (@import("builtin").zig_backend) { .stage1 => fn ( Reason: IMAGEHLP_STATUS_REASON, ImageName: ?[*:0]const u8, DllName: ?[*:0]const u8, Va: u64, Parameter: usize, ) callconv(@import("std").os.windows.WINAPI) BOOL, else => *const fn ( Reason: IMAGEHLP_STATUS_REASON, ImageName: ?[*:0]const u8, DllName: ?[*:0]const u8, Va: u64, Parameter: usize, ) callconv(@import("std").os.windows.WINAPI) BOOL, }; pub const DIGEST_FUNCTION = switch (@import("builtin").zig_backend) { .stage1 => fn ( refdata: ?*anyopaque, pData: ?*u8, dwLength: u32, ) callconv(@import("std").os.windows.WINAPI) BOOL, else => *const fn ( refdata: ?*anyopaque, pData: ?*u8, dwLength: u32, ) callconv(@import("std").os.windows.WINAPI) BOOL, }; pub const PFIND_DEBUG_FILE_CALLBACK = switch (@import("builtin").zig_backend) { .stage1 => fn ( FileHandle: ?HANDLE, FileName: ?[*:0]const u8, CallerData: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) BOOL, else => *const fn ( FileHandle: ?HANDLE, FileName: ?[*:0]const u8, CallerData: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) BOOL, }; pub const PFIND_DEBUG_FILE_CALLBACKW = switch (@import("builtin").zig_backend) { .stage1 => fn ( FileHandle: ?HANDLE, FileName: ?[*:0]const u16, CallerData: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) BOOL, else => *const fn ( FileHandle: ?HANDLE, FileName: ?[*:0]const u16, CallerData: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) BOOL, }; pub const PFINDFILEINPATHCALLBACK = switch (@import("builtin").zig_backend) { .stage1 => fn ( filename: ?[*:0]const u8, context: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) BOOL, else => *const fn ( filename: ?[*:0]const u8, context: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) BOOL, }; pub const PFINDFILEINPATHCALLBACKW = switch (@import("builtin").zig_backend) { .stage1 => fn ( filename: ?[*:0]const u16, context: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) BOOL, else => *const fn ( filename: ?[*:0]const u16, context: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) BOOL, }; pub const PFIND_EXE_FILE_CALLBACK = switch (@import("builtin").zig_backend) { .stage1 => fn ( FileHandle: ?HANDLE, FileName: ?[*:0]const u8, CallerData: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) BOOL, else => *const fn ( FileHandle: ?HANDLE, FileName: ?[*:0]const u8, CallerData: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) BOOL, }; pub const PFIND_EXE_FILE_CALLBACKW = switch (@import("builtin").zig_backend) { .stage1 => fn ( FileHandle: ?HANDLE, FileName: ?[*:0]const u16, CallerData: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) BOOL, else => *const fn ( FileHandle: ?HANDLE, FileName: ?[*:0]const u16, CallerData: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) BOOL, }; pub const PENUMDIRTREE_CALLBACK = switch (@import("builtin").zig_backend) { .stage1 => fn ( FilePath: ?[*:0]const u8, CallerData: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) BOOL, else => *const fn ( FilePath: ?[*:0]const u8, CallerData: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) BOOL, }; pub const PENUMDIRTREE_CALLBACKW = switch (@import("builtin").zig_backend) { .stage1 => fn ( FilePath: ?[*:0]const u16, CallerData: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) BOOL, else => *const fn ( FilePath: ?[*:0]const u16, CallerData: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) BOOL, }; pub const MODLOAD_DATA = extern struct { ssize: u32, ssig: MODLOAD_DATA_TYPE, data: ?*anyopaque, size: u32, flags: u32, }; pub const MODLOAD_CVMISC = extern struct { oCV: u32, cCV: usize, oMisc: u32, cMisc: usize, dtImage: u32, cImage: u32, }; pub const MODLOAD_PDBGUID_PDBAGE = extern struct { PdbGuid: Guid, PdbAge: u32, }; pub const ADDRESS_MODE = enum(i32) { @"1616" = 0, @"1632" = 1, Real = 2, Flat = 3, }; pub const AddrMode1616 = ADDRESS_MODE.@"1616"; pub const AddrMode1632 = ADDRESS_MODE.@"1632"; pub const AddrModeReal = ADDRESS_MODE.Real; pub const AddrModeFlat = ADDRESS_MODE.Flat; pub const ADDRESS64 = extern struct { Offset: u64, Segment: u16, Mode: ADDRESS_MODE, }; pub const KDHELP64 = extern struct { Thread: u64, ThCallbackStack: u32, ThCallbackBStore: u32, NextCallback: u32, FramePointer: u32, KiCallUserMode: u64, KeUserCallbackDispatcher: u64, SystemRangeStart: u64, KiUserExceptionDispatcher: u64, StackBase: u64, StackLimit: u64, BuildVersion: u32, RetpolineStubFunctionTableSize: u32, RetpolineStubFunctionTable: u64, RetpolineStubOffset: u32, RetpolineStubSize: u32, Reserved0: [2]u64, }; pub const STACKFRAME64 = extern struct { AddrPC: ADDRESS64, AddrReturn: ADDRESS64, AddrFrame: ADDRESS64, AddrStack: ADDRESS64, AddrBStore: ADDRESS64, FuncTableEntry: ?*anyopaque, Params: [4]u64, Far: BOOL, Virtual: BOOL, Reserved: [3]u64, KdHelp: KDHELP64, }; pub const STACKFRAME_EX = extern struct { AddrPC: ADDRESS64, AddrReturn: ADDRESS64, AddrFrame: ADDRESS64, AddrStack: ADDRESS64, AddrBStore: ADDRESS64, FuncTableEntry: ?*anyopaque, Params: [4]u64, Far: BOOL, Virtual: BOOL, Reserved: [3]u64, KdHelp: KDHELP64, StackFrameSize: u32, InlineFrameContext: u32, }; pub const PREAD_PROCESS_MEMORY_ROUTINE64 = switch (@import("builtin").zig_backend) { .stage1 => fn ( hProcess: ?HANDLE, qwBaseAddress: u64, // TODO: what to do with BytesParamIndex 3? lpBuffer: ?*anyopaque, nSize: u32, lpNumberOfBytesRead: ?*u32, ) callconv(@import("std").os.windows.WINAPI) BOOL, else => *const fn ( hProcess: ?HANDLE, qwBaseAddress: u64, // TODO: what to do with BytesParamIndex 3? lpBuffer: ?*anyopaque, nSize: u32, lpNumberOfBytesRead: ?*u32, ) callconv(@import("std").os.windows.WINAPI) BOOL, }; pub const PFUNCTION_TABLE_ACCESS_ROUTINE64 = switch (@import("builtin").zig_backend) { .stage1 => fn ( ahProcess: ?HANDLE, AddrBase: u64, ) callconv(@import("std").os.windows.WINAPI) ?*anyopaque, else => *const fn ( ahProcess: ?HANDLE, AddrBase: u64, ) callconv(@import("std").os.windows.WINAPI) ?*anyopaque, }; pub const PGET_MODULE_BASE_ROUTINE64 = switch (@import("builtin").zig_backend) { .stage1 => fn ( hProcess: ?HANDLE, Address: u64, ) callconv(@import("std").os.windows.WINAPI) u64, else => *const fn ( hProcess: ?HANDLE, Address: u64, ) callconv(@import("std").os.windows.WINAPI) u64, }; pub const PTRANSLATE_ADDRESS_ROUTINE64 = switch (@import("builtin").zig_backend) { .stage1 => fn ( hProcess: ?HANDLE, hThread: ?HANDLE, lpaddr: ?*ADDRESS64, ) callconv(@import("std").os.windows.WINAPI) u64, else => *const fn ( hProcess: ?HANDLE, hThread: ?HANDLE, lpaddr: ?*ADDRESS64, ) callconv(@import("std").os.windows.WINAPI) u64, }; pub const API_VERSION = extern struct { MajorVersion: u16, MinorVersion: u16, Revision: u16, Reserved: u16, }; pub const PSYM_ENUMMODULES_CALLBACK64 = switch (@import("builtin").zig_backend) { .stage1 => fn ( ModuleName: ?[*:0]const u8, BaseOfDll: u64, UserContext: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) BOOL, else => *const fn ( ModuleName: ?[*:0]const u8, BaseOfDll: u64, UserContext: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) BOOL, }; pub const PSYM_ENUMMODULES_CALLBACKW64 = switch (@import("builtin").zig_backend) { .stage1 => fn ( ModuleName: ?[*:0]const u16, BaseOfDll: u64, UserContext: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) BOOL, else => *const fn ( ModuleName: ?[*:0]const u16, BaseOfDll: u64, UserContext: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) BOOL, }; pub const PENUMLOADED_MODULES_CALLBACK64 = switch (@import("builtin").zig_backend) { .stage1 => fn ( ModuleName: ?[*:0]const u8, ModuleBase: u64, ModuleSize: u32, UserContext: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) BOOL, else => *const fn ( ModuleName: ?[*:0]const u8, ModuleBase: u64, ModuleSize: u32, UserContext: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) BOOL, }; pub const PENUMLOADED_MODULES_CALLBACKW64 = switch (@import("builtin").zig_backend) { .stage1 => fn ( ModuleName: ?[*:0]const u16, ModuleBase: u64, ModuleSize: u32, UserContext: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) BOOL, else => *const fn ( ModuleName: ?[*:0]const u16, ModuleBase: u64, ModuleSize: u32, UserContext: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) BOOL, }; pub const PSYM_ENUMSYMBOLS_CALLBACK64 = switch (@import("builtin").zig_backend) { .stage1 => fn ( SymbolName: ?[*:0]const u8, SymbolAddress: u64, SymbolSize: u32, UserContext: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) BOOL, else => *const fn ( SymbolName: ?[*:0]const u8, SymbolAddress: u64, SymbolSize: u32, UserContext: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) BOOL, }; pub const PSYM_ENUMSYMBOLS_CALLBACK64W = switch (@import("builtin").zig_backend) { .stage1 => fn ( SymbolName: ?[*:0]const u16, SymbolAddress: u64, SymbolSize: u32, UserContext: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) BOOL, else => *const fn ( SymbolName: ?[*:0]const u16, SymbolAddress: u64, SymbolSize: u32, UserContext: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) BOOL, }; pub const PSYMBOL_REGISTERED_CALLBACK64 = switch (@import("builtin").zig_backend) { .stage1 => fn ( hProcess: ?HANDLE, ActionCode: u32, CallbackData: u64, UserContext: u64, ) callconv(@import("std").os.windows.WINAPI) BOOL, else => *const fn ( hProcess: ?HANDLE, ActionCode: u32, CallbackData: u64, UserContext: u64, ) callconv(@import("std").os.windows.WINAPI) BOOL, }; pub const PSYMBOL_FUNCENTRY_CALLBACK = switch (@import("builtin").zig_backend) { .stage1 => fn ( hProcess: ?HANDLE, AddrBase: u32, UserContext: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) ?*anyopaque, else => *const fn ( hProcess: ?HANDLE, AddrBase: u32, UserContext: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) ?*anyopaque, }; pub const PSYMBOL_FUNCENTRY_CALLBACK64 = switch (@import("builtin").zig_backend) { .stage1 => fn ( hProcess: ?HANDLE, AddrBase: u64, UserContext: u64, ) callconv(@import("std").os.windows.WINAPI) ?*anyopaque, else => *const fn ( hProcess: ?HANDLE, AddrBase: u64, UserContext: u64, ) callconv(@import("std").os.windows.WINAPI) ?*anyopaque, }; pub const SYM_TYPE = enum(i32) { SymNone = 0, SymCoff = 1, SymCv = 2, SymPdb = 3, SymExport = 4, SymDeferred = 5, SymSym = 6, SymDia = 7, SymVirtual = 8, NumSymTypes = 9, }; pub const SymNone = SYM_TYPE.SymNone; pub const SymCoff = SYM_TYPE.SymCoff; pub const SymCv = SYM_TYPE.SymCv; pub const SymPdb = SYM_TYPE.SymPdb; pub const SymExport = SYM_TYPE.SymExport; pub const SymDeferred = SYM_TYPE.SymDeferred; pub const SymSym = SYM_TYPE.SymSym; pub const SymDia = SYM_TYPE.SymDia; pub const SymVirtual = SYM_TYPE.SymVirtual; pub const NumSymTypes = SYM_TYPE.NumSymTypes; pub const IMAGEHLP_SYMBOL64 = extern struct { SizeOfStruct: u32, Address: u64, Size: u32, Flags: u32, MaxNameLength: u32, Name: [1]CHAR, }; pub const IMAGEHLP_SYMBOL64_PACKAGE = extern struct { sym: IMAGEHLP_SYMBOL64, name: [2001]CHAR, }; pub const IMAGEHLP_SYMBOLW64 = extern struct { SizeOfStruct: u32, Address: u64, Size: u32, Flags: u32, MaxNameLength: u32, Name: [1]u16, }; pub const IMAGEHLP_SYMBOLW64_PACKAGE = extern struct { sym: IMAGEHLP_SYMBOLW64, name: [2001]u16, }; pub const IMAGEHLP_MODULE64 = extern struct { SizeOfStruct: u32, BaseOfImage: u64, ImageSize: u32, TimeDateStamp: u32, CheckSum: u32, NumSyms: u32, SymType: SYM_TYPE, ModuleName: [32]CHAR, ImageName: [256]CHAR, LoadedImageName: [256]CHAR, LoadedPdbName: [256]CHAR, CVSig: u32, CVData: [780]CHAR, PdbSig: u32, PdbSig70: Guid, PdbAge: u32, PdbUnmatched: BOOL, DbgUnmatched: BOOL, LineNumbers: BOOL, GlobalSymbols: BOOL, TypeInfo: BOOL, SourceIndexed: BOOL, Publics: BOOL, MachineType: u32, Reserved: u32, }; pub const IMAGEHLP_MODULE64_EX = extern struct { Module: IMAGEHLP_MODULE64, RegionFlags: u32, }; pub const IMAGEHLP_MODULEW64 = extern struct { SizeOfStruct: u32, BaseOfImage: u64, ImageSize: u32, TimeDateStamp: u32, CheckSum: u32, NumSyms: u32, SymType: SYM_TYPE, ModuleName: [32]u16, ImageName: [256]u16, LoadedImageName: [256]u16, LoadedPdbName: [256]u16, CVSig: u32, CVData: [780]u16, PdbSig: u32, PdbSig70: Guid, PdbAge: u32, PdbUnmatched: BOOL, DbgUnmatched: BOOL, LineNumbers: BOOL, GlobalSymbols: BOOL, TypeInfo: BOOL, SourceIndexed: BOOL, Publics: BOOL, MachineType: u32, Reserved: u32, }; pub const IMAGEHLP_MODULEW64_EX = extern struct { Module: IMAGEHLP_MODULEW64, RegionFlags: u32, }; pub const IMAGEHLP_LINE64 = extern struct { SizeOfStruct: u32, Key: ?*anyopaque, LineNumber: u32, FileName: ?[*]u8, Address: u64, }; pub const IMAGEHLP_LINEW64 = extern struct { SizeOfStruct: u32, Key: ?*anyopaque, LineNumber: u32, FileName: ?PWSTR, Address: u64, }; pub const SOURCEFILE = extern struct { ModBase: u64, FileName: ?[*]u8, }; pub const SOURCEFILEW = extern struct { ModBase: u64, FileName: ?PWSTR, }; pub const IMAGEHLP_CBA_READ_MEMORY = extern struct { addr: u64, buf: ?*anyopaque, bytes: u32, bytesread: ?*u32, }; pub const IMAGEHLP_CBA_EVENT = extern struct { severity: IMAGEHLP_CBA_EVENT_SEVERITY, code: u32, desc: ?[*]u8, object: ?*anyopaque, }; pub const IMAGEHLP_CBA_EVENTW = extern struct { severity: IMAGEHLP_CBA_EVENT_SEVERITY, code: u32, desc: ?[*:0]const u16, object: ?*anyopaque, }; pub const IMAGEHLP_DEFERRED_SYMBOL_LOAD64 = extern struct { SizeOfStruct: u32, BaseOfImage: u64, CheckSum: u32, TimeDateStamp: u32, FileName: [260]CHAR, Reparse: BOOLEAN, hFile: ?HANDLE, Flags: u32, }; pub const IMAGEHLP_DEFERRED_SYMBOL_LOADW64 = extern struct { SizeOfStruct: u32, BaseOfImage: u64, CheckSum: u32, TimeDateStamp: u32, FileName: [261]u16, Reparse: BOOLEAN, hFile: ?HANDLE, Flags: u32, }; pub const IMAGEHLP_DUPLICATE_SYMBOL64 = extern struct { SizeOfStruct: u32, NumberOfDups: u32, Symbol: ?*IMAGEHLP_SYMBOL64, SelectedSymbol: u32, }; pub const _IMAGEHLP_JIT_SYMBOL_MAP = extern struct { SizeOfStruct: u32, Address: u64, BaseOfImage: u64, }; pub const IMAGEHLP_HD_TYPE = enum(i32) { Base = 0, Sym = 1, Src = 2, Max = 3, }; pub const hdBase = IMAGEHLP_HD_TYPE.Base; pub const hdSym = IMAGEHLP_HD_TYPE.Sym; pub const hdSrc = IMAGEHLP_HD_TYPE.Src; pub const hdMax = IMAGEHLP_HD_TYPE.Max; pub const OMAP = extern struct { rva: u32, rvaTo: u32, }; pub const IMAGEHLP_EXTENDED_OPTIONS = enum(i32) { DISABLEACCESSTIMEUPDATE = 0, LASTVALIDDEBUGDIRECTORY = 1, NOIMPLICITPATTERNSEARCH = 2, NEVERLOADSYMBOLS = 3, MAX = 4, }; pub const SYMOPT_EX_DISABLEACCESSTIMEUPDATE = IMAGEHLP_EXTENDED_OPTIONS.DISABLEACCESSTIMEUPDATE; pub const SYMOPT_EX_LASTVALIDDEBUGDIRECTORY = IMAGEHLP_EXTENDED_OPTIONS.LASTVALIDDEBUGDIRECTORY; pub const SYMOPT_EX_NOIMPLICITPATTERNSEARCH = IMAGEHLP_EXTENDED_OPTIONS.NOIMPLICITPATTERNSEARCH; pub const SYMOPT_EX_NEVERLOADSYMBOLS = IMAGEHLP_EXTENDED_OPTIONS.NEVERLOADSYMBOLS; pub const SYMOPT_EX_MAX = IMAGEHLP_EXTENDED_OPTIONS.MAX; pub const PSYM_ENUMSOURCEFILES_CALLBACK = switch (@import("builtin").zig_backend) { .stage1 => fn ( pSourceFile: ?*SOURCEFILE, UserContext: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) BOOL, else => *const fn ( pSourceFile: ?*SOURCEFILE, UserContext: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) BOOL, }; pub const PSYM_ENUMSOURCEFILES_CALLBACKW = switch (@import("builtin").zig_backend) { .stage1 => fn ( pSourceFile: ?*SOURCEFILEW, UserContext: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) BOOL, else => *const fn ( pSourceFile: ?*SOURCEFILEW, UserContext: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) BOOL, }; pub const SRCCODEINFO = extern struct { SizeOfStruct: u32, Key: ?*anyopaque, ModBase: u64, Obj: [261]CHAR, FileName: [261]CHAR, LineNumber: u32, Address: u64, }; pub const SRCCODEINFOW = extern struct { SizeOfStruct: u32, Key: ?*anyopaque, ModBase: u64, Obj: [261]u16, FileName: [261]u16, LineNumber: u32, Address: u64, }; pub const PSYM_ENUMLINES_CALLBACK = switch (@import("builtin").zig_backend) { .stage1 => fn ( LineInfo: ?*SRCCODEINFO, UserContext: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) BOOL, else => *const fn ( LineInfo: ?*SRCCODEINFO, UserContext: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) BOOL, }; pub const PSYM_ENUMLINES_CALLBACKW = switch (@import("builtin").zig_backend) { .stage1 => fn ( LineInfo: ?*SRCCODEINFOW, UserContext: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) BOOL, else => *const fn ( LineInfo: ?*SRCCODEINFOW, UserContext: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) BOOL, }; pub const PENUMSOURCEFILETOKENSCALLBACK = switch (@import("builtin").zig_backend) { .stage1 => fn ( token: ?*anyopaque, size: usize, ) callconv(@import("std").os.windows.WINAPI) BOOL, else => *const fn ( token: ?*anyopaque, size: usize, ) callconv(@import("std").os.windows.WINAPI) BOOL, }; pub const IMAGEHLP_SYMBOL_SRC = extern struct { sizeofstruct: u32, type: u32, file: [260]CHAR, }; pub const MODULE_TYPE_INFO = extern struct { dataLength: u16, leaf: u16, data: [1]u8, }; pub const SYMBOL_INFO = extern struct { SizeOfStruct: u32, TypeIndex: u32, Reserved: [2]u64, Index: u32, Size: u32, ModBase: u64, Flags: SYMBOL_INFO_FLAGS, Value: u64, Address: u64, Register: u32, Scope: u32, Tag: u32, NameLen: u32, MaxNameLen: u32, Name: [1]CHAR, }; pub const SYMBOL_INFO_PACKAGE = extern struct { si: SYMBOL_INFO, name: [2001]CHAR, }; pub const SYMBOL_INFOW = extern struct { SizeOfStruct: u32, TypeIndex: u32, Reserved: [2]u64, Index: u32, Size: u32, ModBase: u64, Flags: SYMBOL_INFO_FLAGS, Value: u64, Address: u64, Register: u32, Scope: u32, Tag: u32, NameLen: u32, MaxNameLen: u32, Name: [1]u16, }; pub const SYMBOL_INFO_PACKAGEW = extern struct { si: SYMBOL_INFOW, name: [2001]u16, }; pub const IMAGEHLP_STACK_FRAME = extern struct { InstructionOffset: u64, ReturnOffset: u64, FrameOffset: u64, StackOffset: u64, BackingStoreOffset: u64, FuncTableEntry: u64, Params: [4]u64, Reserved: [5]u64, Virtual: BOOL, Reserved2: u32, }; pub const PSYM_ENUMPROCESSES_CALLBACK = switch (@import("builtin").zig_backend) { .stage1 => fn ( hProcess: ?HANDLE, UserContext: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) BOOL, else => *const fn ( hProcess: ?HANDLE, UserContext: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) BOOL, }; pub const PSYM_ENUMERATESYMBOLS_CALLBACK = switch (@import("builtin").zig_backend) { .stage1 => fn ( pSymInfo: ?*SYMBOL_INFO, SymbolSize: u32, UserContext: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) BOOL, else => *const fn ( pSymInfo: ?*SYMBOL_INFO, SymbolSize: u32, UserContext: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) BOOL, }; pub const PSYM_ENUMERATESYMBOLS_CALLBACKW = switch (@import("builtin").zig_backend) { .stage1 => fn ( pSymInfo: ?*SYMBOL_INFOW, SymbolSize: u32, UserContext: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) BOOL, else => *const fn ( pSymInfo: ?*SYMBOL_INFOW, SymbolSize: u32, UserContext: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) BOOL, }; pub const IMAGEHLP_SYMBOL_TYPE_INFO = enum(i32) { TI_GET_SYMTAG = 0, TI_GET_SYMNAME = 1, TI_GET_LENGTH = 2, TI_GET_TYPE = 3, TI_GET_TYPEID = 4, TI_GET_BASETYPE = 5, TI_GET_ARRAYINDEXTYPEID = 6, TI_FINDCHILDREN = 7, TI_GET_DATAKIND = 8, TI_GET_ADDRESSOFFSET = 9, TI_GET_OFFSET = 10, TI_GET_VALUE = 11, TI_GET_COUNT = 12, TI_GET_CHILDRENCOUNT = 13, TI_GET_BITPOSITION = 14, TI_GET_VIRTUALBASECLASS = 15, TI_GET_VIRTUALTABLESHAPEID = 16, TI_GET_VIRTUALBASEPOINTEROFFSET = 17, TI_GET_CLASSPARENTID = 18, TI_GET_NESTED = 19, TI_GET_SYMINDEX = 20, TI_GET_LEXICALPARENT = 21, TI_GET_ADDRESS = 22, TI_GET_THISADJUST = 23, TI_GET_UDTKIND = 24, TI_IS_EQUIV_TO = 25, TI_GET_CALLING_CONVENTION = 26, TI_IS_CLOSE_EQUIV_TO = 27, TI_GTIEX_REQS_VALID = 28, TI_GET_VIRTUALBASEOFFSET = 29, TI_GET_VIRTUALBASEDISPINDEX = 30, TI_GET_IS_REFERENCE = 31, TI_GET_INDIRECTVIRTUALBASECLASS = 32, TI_GET_VIRTUALBASETABLETYPE = 33, TI_GET_OBJECTPOINTERTYPE = 34, IMAGEHLP_SYMBOL_TYPE_INFO_MAX = 35, }; pub const TI_GET_SYMTAG = IMAGEHLP_SYMBOL_TYPE_INFO.TI_GET_SYMTAG; pub const TI_GET_SYMNAME = IMAGEHLP_SYMBOL_TYPE_INFO.TI_GET_SYMNAME; pub const TI_GET_LENGTH = IMAGEHLP_SYMBOL_TYPE_INFO.TI_GET_LENGTH; pub const TI_GET_TYPE = IMAGEHLP_SYMBOL_TYPE_INFO.TI_GET_TYPE; pub const TI_GET_TYPEID = IMAGEHLP_SYMBOL_TYPE_INFO.TI_GET_TYPEID; pub const TI_GET_BASETYPE = IMAGEHLP_SYMBOL_TYPE_INFO.TI_GET_BASETYPE; pub const TI_GET_ARRAYINDEXTYPEID = IMAGEHLP_SYMBOL_TYPE_INFO.TI_GET_ARRAYINDEXTYPEID; pub const TI_FINDCHILDREN = IMAGEHLP_SYMBOL_TYPE_INFO.TI_FINDCHILDREN; pub const TI_GET_DATAKIND = IMAGEHLP_SYMBOL_TYPE_INFO.TI_GET_DATAKIND; pub const TI_GET_ADDRESSOFFSET = IMAGEHLP_SYMBOL_TYPE_INFO.TI_GET_ADDRESSOFFSET; pub const TI_GET_OFFSET = IMAGEHLP_SYMBOL_TYPE_INFO.TI_GET_OFFSET; pub const TI_GET_VALUE = IMAGEHLP_SYMBOL_TYPE_INFO.TI_GET_VALUE; pub const TI_GET_COUNT = IMAGEHLP_SYMBOL_TYPE_INFO.TI_GET_COUNT; pub const TI_GET_CHILDRENCOUNT = IMAGEHLP_SYMBOL_TYPE_INFO.TI_GET_CHILDRENCOUNT; pub const TI_GET_BITPOSITION = IMAGEHLP_SYMBOL_TYPE_INFO.TI_GET_BITPOSITION; pub const TI_GET_VIRTUALBASECLASS = IMAGEHLP_SYMBOL_TYPE_INFO.TI_GET_VIRTUALBASECLASS; pub const TI_GET_VIRTUALTABLESHAPEID = IMAGEHLP_SYMBOL_TYPE_INFO.TI_GET_VIRTUALTABLESHAPEID; pub const TI_GET_VIRTUALBASEPOINTEROFFSET = IMAGEHLP_SYMBOL_TYPE_INFO.TI_GET_VIRTUALBASEPOINTEROFFSET; pub const TI_GET_CLASSPARENTID = IMAGEHLP_SYMBOL_TYPE_INFO.TI_GET_CLASSPARENTID; pub const TI_GET_NESTED = IMAGEHLP_SYMBOL_TYPE_INFO.TI_GET_NESTED; pub const TI_GET_SYMINDEX = IMAGEHLP_SYMBOL_TYPE_INFO.TI_GET_SYMINDEX; pub const TI_GET_LEXICALPARENT = IMAGEHLP_SYMBOL_TYPE_INFO.TI_GET_LEXICALPARENT; pub const TI_GET_ADDRESS = IMAGEHLP_SYMBOL_TYPE_INFO.TI_GET_ADDRESS; pub const TI_GET_THISADJUST = IMAGEHLP_SYMBOL_TYPE_INFO.TI_GET_THISADJUST; pub const TI_GET_UDTKIND = IMAGEHLP_SYMBOL_TYPE_INFO.TI_GET_UDTKIND; pub const TI_IS_EQUIV_TO = IMAGEHLP_SYMBOL_TYPE_INFO.TI_IS_EQUIV_TO; pub const TI_GET_CALLING_CONVENTION = IMAGEHLP_SYMBOL_TYPE_INFO.TI_GET_CALLING_CONVENTION; pub const TI_IS_CLOSE_EQUIV_TO = IMAGEHLP_SYMBOL_TYPE_INFO.TI_IS_CLOSE_EQUIV_TO; pub const TI_GTIEX_REQS_VALID = IMAGEHLP_SYMBOL_TYPE_INFO.TI_GTIEX_REQS_VALID; pub const TI_GET_VIRTUALBASEOFFSET = IMAGEHLP_SYMBOL_TYPE_INFO.TI_GET_VIRTUALBASEOFFSET; pub const TI_GET_VIRTUALBASEDISPINDEX = IMAGEHLP_SYMBOL_TYPE_INFO.TI_GET_VIRTUALBASEDISPINDEX; pub const TI_GET_IS_REFERENCE = IMAGEHLP_SYMBOL_TYPE_INFO.TI_GET_IS_REFERENCE; pub const TI_GET_INDIRECTVIRTUALBASECLASS = IMAGEHLP_SYMBOL_TYPE_INFO.TI_GET_INDIRECTVIRTUALBASECLASS; pub const TI_GET_VIRTUALBASETABLETYPE = IMAGEHLP_SYMBOL_TYPE_INFO.TI_GET_VIRTUALBASETABLETYPE; pub const TI_GET_OBJECTPOINTERTYPE = IMAGEHLP_SYMBOL_TYPE_INFO.TI_GET_OBJECTPOINTERTYPE; pub const IMAGEHLP_SYMBOL_TYPE_INFO_MAX = IMAGEHLP_SYMBOL_TYPE_INFO.IMAGEHLP_SYMBOL_TYPE_INFO_MAX; pub const TI_FINDCHILDREN_PARAMS = extern struct { Count: u32, Start: u32, ChildId: [1]u32, }; pub const IMAGEHLP_GET_TYPE_INFO_PARAMS = extern struct { SizeOfStruct: u32, Flags: IMAGEHLP_GET_TYPE_INFO_FLAGS, NumIds: u32, TypeIds: ?*u32, TagFilter: u64, NumReqs: u32, ReqKinds: ?*IMAGEHLP_SYMBOL_TYPE_INFO, ReqOffsets: ?*usize, ReqSizes: ?*u32, ReqStride: usize, BufferSize: usize, Buffer: ?*anyopaque, EntriesMatched: u32, EntriesFilled: u32, TagsFound: u64, AllReqsValid: u64, NumReqsValid: u32, ReqsValid: ?*u64, }; pub const SYMADDSOURCESTREAM = switch (@import("builtin").zig_backend) { .stage1 => fn ( param0: ?HANDLE, param1: u64, param2: ?[*:0]const u8, param3: ?*u8, param4: usize, ) callconv(@import("std").os.windows.WINAPI) BOOL, else => *const fn ( param0: ?HANDLE, param1: u64, param2: ?[*:0]const u8, param3: ?*u8, param4: usize, ) callconv(@import("std").os.windows.WINAPI) BOOL, }; pub const SYMADDSOURCESTREAMA = switch (@import("builtin").zig_backend) { .stage1 => fn ( param0: ?HANDLE, param1: u64, param2: ?[*:0]const u8, param3: ?*u8, param4: usize, ) callconv(@import("std").os.windows.WINAPI) BOOL, else => *const fn ( param0: ?HANDLE, param1: u64, param2: ?[*:0]const u8, param3: ?*u8, param4: usize, ) callconv(@import("std").os.windows.WINAPI) BOOL, }; pub const SYMSRV_INDEX_INFO = extern struct { sizeofstruct: u32, file: [261]CHAR, stripped: BOOL, timestamp: u32, size: u32, dbgfile: [261]CHAR, pdbfile: [261]CHAR, guid: Guid, sig: u32, age: u32, }; pub const SYMSRV_INDEX_INFOW = extern struct { sizeofstruct: u32, file: [261]u16, stripped: BOOL, timestamp: u32, size: u32, dbgfile: [261]u16, pdbfile: [261]u16, guid: Guid, sig: u32, age: u32, }; pub const IMAGEHLP_SF_TYPE = enum(i32) { Image = 0, Dbg = 1, Pdb = 2, Mpd = 3, Max = 4, }; pub const sfImage = IMAGEHLP_SF_TYPE.Image; pub const sfDbg = IMAGEHLP_SF_TYPE.Dbg; pub const sfPdb = IMAGEHLP_SF_TYPE.Pdb; pub const sfMpd = IMAGEHLP_SF_TYPE.Mpd; pub const sfMax = IMAGEHLP_SF_TYPE.Max; pub const PDBGHELP_CREATE_USER_DUMP_CALLBACK = switch (@import("builtin").zig_backend) { .stage1 => fn ( DataType: u32, Data: ?*?*anyopaque, DataLength: ?*u32, UserData: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) BOOL, else => *const fn ( DataType: u32, Data: ?*?*anyopaque, DataLength: ?*u32, UserData: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) BOOL, }; pub const SYMSRV_EXTENDED_OUTPUT_DATA = extern struct { sizeOfStruct: u32, version: u32, filePtrMsg: [261]u16, }; pub const PSYMBOLSERVERPROC = switch (@import("builtin").zig_backend) { .stage1 => fn ( param0: ?[*:0]const u8, param1: ?[*:0]const u8, param2: ?*anyopaque, param3: u32, param4: u32, param5: ?PSTR, ) callconv(@import("std").os.windows.WINAPI) BOOL, else => *const fn ( param0: ?[*:0]const u8, param1: ?[*:0]const u8, param2: ?*anyopaque, param3: u32, param4: u32, param5: ?PSTR, ) callconv(@import("std").os.windows.WINAPI) BOOL, }; pub const PSYMBOLSERVERPROCA = switch (@import("builtin").zig_backend) { .stage1 => fn ( param0: ?[*:0]const u8, param1: ?[*:0]const u8, param2: ?*anyopaque, param3: u32, param4: u32, param5: ?PSTR, ) callconv(@import("std").os.windows.WINAPI) BOOL, else => *const fn ( param0: ?[*:0]const u8, param1: ?[*:0]const u8, param2: ?*anyopaque, param3: u32, param4: u32, param5: ?PSTR, ) callconv(@import("std").os.windows.WINAPI) BOOL, }; pub const PSYMBOLSERVERPROCW = switch (@import("builtin").zig_backend) { .stage1 => fn ( param0: ?[*:0]const u16, param1: ?[*:0]const u16, param2: ?*anyopaque, param3: u32, param4: u32, param5: ?PWSTR, ) callconv(@import("std").os.windows.WINAPI) BOOL, else => *const fn ( param0: ?[*:0]const u16, param1: ?[*:0]const u16, param2: ?*anyopaque, param3: u32, param4: u32, param5: ?PWSTR, ) callconv(@import("std").os.windows.WINAPI) BOOL, }; pub const PSYMBOLSERVERBYINDEXPROC = switch (@import("builtin").zig_backend) { .stage1 => fn ( param0: ?[*:0]const u8, param1: ?[*:0]const u8, param2: ?[*:0]const u8, param3: ?PSTR, ) callconv(@import("std").os.windows.WINAPI) BOOL, else => *const fn ( param0: ?[*:0]const u8, param1: ?[*:0]const u8, param2: ?[*:0]const u8, param3: ?PSTR, ) callconv(@import("std").os.windows.WINAPI) BOOL, }; pub const PSYMBOLSERVERBYINDEXPROCA = switch (@import("builtin").zig_backend) { .stage1 => fn ( param0: ?[*:0]const u8, param1: ?[*:0]const u8, param2: ?[*:0]const u8, param3: ?PSTR, ) callconv(@import("std").os.windows.WINAPI) BOOL, else => *const fn ( param0: ?[*:0]const u8, param1: ?[*:0]const u8, param2: ?[*:0]const u8, param3: ?PSTR, ) callconv(@import("std").os.windows.WINAPI) BOOL, }; pub const PSYMBOLSERVERBYINDEXPROCW = switch (@import("builtin").zig_backend) { .stage1 => fn ( param0: ?[*:0]const u16, param1: ?[*:0]const u16, param2: ?[*:0]const u16, param3: ?PWSTR, ) callconv(@import("std").os.windows.WINAPI) BOOL, else => *const fn ( param0: ?[*:0]const u16, param1: ?[*:0]const u16, param2: ?[*:0]const u16, param3: ?PWSTR, ) callconv(@import("std").os.windows.WINAPI) BOOL, }; pub const PSYMBOLSERVEROPENPROC = switch (@import("builtin").zig_backend) { .stage1 => fn () callconv(@import("std").os.windows.WINAPI) BOOL, else => *const fn () callconv(@import("std").os.windows.WINAPI) BOOL, }; pub const PSYMBOLSERVERCLOSEPROC = switch (@import("builtin").zig_backend) { .stage1 => fn () callconv(@import("std").os.windows.WINAPI) BOOL, else => *const fn () callconv(@import("std").os.windows.WINAPI) BOOL, }; pub const PSYMBOLSERVERSETOPTIONSPROC = switch (@import("builtin").zig_backend) { .stage1 => fn ( param0: usize, param1: u64, ) callconv(@import("std").os.windows.WINAPI) BOOL, else => *const fn ( param0: usize, param1: u64, ) callconv(@import("std").os.windows.WINAPI) BOOL, }; pub const PSYMBOLSERVERSETOPTIONSWPROC = switch (@import("builtin").zig_backend) { .stage1 => fn ( param0: usize, param1: u64, ) callconv(@import("std").os.windows.WINAPI) BOOL, else => *const fn ( param0: usize, param1: u64, ) callconv(@import("std").os.windows.WINAPI) BOOL, }; pub const PSYMBOLSERVERCALLBACKPROC = switch (@import("builtin").zig_backend) { .stage1 => fn ( action: usize, data: u64, context: u64, ) callconv(@import("std").os.windows.WINAPI) BOOL, else => *const fn ( action: usize, data: u64, context: u64, ) callconv(@import("std").os.windows.WINAPI) BOOL, }; pub const PSYMBOLSERVERGETOPTIONSPROC = switch (@import("builtin").zig_backend) { .stage1 => fn () callconv(@import("std").os.windows.WINAPI) usize, else => *const fn () callconv(@import("std").os.windows.WINAPI) usize, }; pub const PSYMBOLSERVERPINGPROC = switch (@import("builtin").zig_backend) { .stage1 => fn ( param0: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) BOOL, else => *const fn ( param0: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) BOOL, }; pub const PSYMBOLSERVERPINGPROCA = switch (@import("builtin").zig_backend) { .stage1 => fn ( param0: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) BOOL, else => *const fn ( param0: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) BOOL, }; pub const PSYMBOLSERVERPINGPROCW = switch (@import("builtin").zig_backend) { .stage1 => fn ( param0: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) BOOL, else => *const fn ( param0: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) BOOL, }; pub const PSYMBOLSERVERGETVERSION = switch (@import("builtin").zig_backend) { .stage1 => fn ( param0: ?*API_VERSION, ) callconv(@import("std").os.windows.WINAPI) BOOL, else => *const fn ( param0: ?*API_VERSION, ) callconv(@import("std").os.windows.WINAPI) BOOL, }; pub const PSYMBOLSERVERDELTANAME = switch (@import("builtin").zig_backend) { .stage1 => fn ( param0: ?[*:0]const u8, param1: ?*anyopaque, param2: u32, param3: u32, param4: ?*anyopaque, param5: u32, param6: u32, param7: ?PSTR, param8: usize, ) callconv(@import("std").os.windows.WINAPI) BOOL, else => *const fn ( param0: ?[*:0]const u8, param1: ?*anyopaque, param2: u32, param3: u32, param4: ?*anyopaque, param5: u32, param6: u32, param7: ?PSTR, param8: usize, ) callconv(@import("std").os.windows.WINAPI) BOOL, }; pub const PSYMBOLSERVERDELTANAMEW = switch (@import("builtin").zig_backend) { .stage1 => fn ( param0: ?[*:0]const u16, param1: ?*anyopaque, param2: u32, param3: u32, param4: ?*anyopaque, param5: u32, param6: u32, param7: ?PWSTR, param8: usize, ) callconv(@import("std").os.windows.WINAPI) BOOL, else => *const fn ( param0: ?[*:0]const u16, param1: ?*anyopaque, param2: u32, param3: u32, param4: ?*anyopaque, param5: u32, param6: u32, param7: ?PWSTR, param8: usize, ) callconv(@import("std").os.windows.WINAPI) BOOL, }; pub const PSYMBOLSERVERGETSUPPLEMENT = switch (@import("builtin").zig_backend) { .stage1 => fn ( param0: ?[*:0]const u8, param1: ?[*:0]const u8, param2: ?[*:0]const u8, param3: ?PSTR, param4: usize, ) callconv(@import("std").os.windows.WINAPI) BOOL, else => *const fn ( param0: ?[*:0]const u8, param1: ?[*:0]const u8, param2: ?[*:0]const u8, param3: ?PSTR, param4: usize, ) callconv(@import("std").os.windows.WINAPI) BOOL, }; pub const PSYMBOLSERVERGETSUPPLEMENTW = switch (@import("builtin").zig_backend) { .stage1 => fn ( param0: ?[*:0]const u16, param1: ?[*:0]const u16, param2: ?[*:0]const u16, param3: ?PWSTR, param4: usize, ) callconv(@import("std").os.windows.WINAPI) BOOL, else => *const fn ( param0: ?[*:0]const u16, param1: ?[*:0]const u16, param2: ?[*:0]const u16, param3: ?PWSTR, param4: usize, ) callconv(@import("std").os.windows.WINAPI) BOOL, }; pub const PSYMBOLSERVERSTORESUPPLEMENT = switch (@import("builtin").zig_backend) { .stage1 => fn ( param0: ?[*:0]const u8, param1: ?[*:0]const u8, param2: ?[*:0]const u8, param3: ?PSTR, param4: usize, param5: u32, ) callconv(@import("std").os.windows.WINAPI) BOOL, else => *const fn ( param0: ?[*:0]const u8, param1: ?[*:0]const u8, param2: ?[*:0]const u8, param3: ?PSTR, param4: usize, param5: u32, ) callconv(@import("std").os.windows.WINAPI) BOOL, }; pub const PSYMBOLSERVERSTORESUPPLEMENTW = switch (@import("builtin").zig_backend) { .stage1 => fn ( param0: ?[*:0]const u16, param1: ?[*:0]const u16, param2: ?[*:0]const u16, param3: ?PWSTR, param4: usize, param5: u32, ) callconv(@import("std").os.windows.WINAPI) BOOL, else => *const fn ( param0: ?[*:0]const u16, param1: ?[*:0]const u16, param2: ?[*:0]const u16, param3: ?PWSTR, param4: usize, param5: u32, ) callconv(@import("std").os.windows.WINAPI) BOOL, }; pub const PSYMBOLSERVERGETINDEXSTRING = switch (@import("builtin").zig_backend) { .stage1 => fn ( param0: ?*anyopaque, param1: u32, param2: u32, param3: ?PSTR, param4: usize, ) callconv(@import("std").os.windows.WINAPI) BOOL, else => *const fn ( param0: ?*anyopaque, param1: u32, param2: u32, param3: ?PSTR, param4: usize, ) callconv(@import("std").os.windows.WINAPI) BOOL, }; pub const PSYMBOLSERVERGETINDEXSTRINGW = switch (@import("builtin").zig_backend) { .stage1 => fn ( param0: ?*anyopaque, param1: u32, param2: u32, param3: ?PWSTR, param4: usize, ) callconv(@import("std").os.windows.WINAPI) BOOL, else => *const fn ( param0: ?*anyopaque, param1: u32, param2: u32, param3: ?PWSTR, param4: usize, ) callconv(@import("std").os.windows.WINAPI) BOOL, }; pub const PSYMBOLSERVERSTOREFILE = switch (@import("builtin").zig_backend) { .stage1 => fn ( param0: ?[*:0]const u8, param1: ?[*:0]const u8, param2: ?*anyopaque, param3: u32, param4: u32, param5: ?PSTR, param6: usize, param7: u32, ) callconv(@import("std").os.windows.WINAPI) BOOL, else => *const fn ( param0: ?[*:0]const u8, param1: ?[*:0]const u8, param2: ?*anyopaque, param3: u32, param4: u32, param5: ?PSTR, param6: usize, param7: u32, ) callconv(@import("std").os.windows.WINAPI) BOOL, }; pub const PSYMBOLSERVERSTOREFILEW = switch (@import("builtin").zig_backend) { .stage1 => fn ( param0: ?[*:0]const u16, param1: ?[*:0]const u16, param2: ?*anyopaque, param3: u32, param4: u32, param5: ?PWSTR, param6: usize, param7: u32, ) callconv(@import("std").os.windows.WINAPI) BOOL, else => *const fn ( param0: ?[*:0]const u16, param1: ?[*:0]const u16, param2: ?*anyopaque, param3: u32, param4: u32, param5: ?PWSTR, param6: usize, param7: u32, ) callconv(@import("std").os.windows.WINAPI) BOOL, }; pub const PSYMBOLSERVERISSTORE = switch (@import("builtin").zig_backend) { .stage1 => fn ( param0: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) BOOL, else => *const fn ( param0: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) BOOL, }; pub const PSYMBOLSERVERISSTOREW = switch (@import("builtin").zig_backend) { .stage1 => fn ( param0: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) BOOL, else => *const fn ( param0: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) BOOL, }; pub const PSYMBOLSERVERVERSION = switch (@import("builtin").zig_backend) { .stage1 => fn () callconv(@import("std").os.windows.WINAPI) u32, else => *const fn () callconv(@import("std").os.windows.WINAPI) u32, }; pub const PSYMBOLSERVERMESSAGEPROC = switch (@import("builtin").zig_backend) { .stage1 => fn ( action: usize, data: u64, context: u64, ) callconv(@import("std").os.windows.WINAPI) BOOL, else => *const fn ( action: usize, data: u64, context: u64, ) callconv(@import("std").os.windows.WINAPI) BOOL, }; pub const PSYMBOLSERVERWEXPROC = switch (@import("builtin").zig_backend) { .stage1 => fn ( param0: ?[*:0]const u16, param1: ?[*:0]const u16, param2: ?*anyopaque, param3: u32, param4: u32, param5: ?PWSTR, param6: ?*SYMSRV_EXTENDED_OUTPUT_DATA, ) callconv(@import("std").os.windows.WINAPI) BOOL, else => *const fn ( param0: ?[*:0]const u16, param1: ?[*:0]const u16, param2: ?*anyopaque, param3: u32, param4: u32, param5: ?PWSTR, param6: ?*SYMSRV_EXTENDED_OUTPUT_DATA, ) callconv(@import("std").os.windows.WINAPI) BOOL, }; pub const PSYMBOLSERVERPINGPROCWEX = switch (@import("builtin").zig_backend) { .stage1 => fn ( param0: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) BOOL, else => *const fn ( param0: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) BOOL, }; pub const PSYMBOLSERVERGETOPTIONDATAPROC = switch (@import("builtin").zig_backend) { .stage1 => fn ( param0: usize, param1: ?*u64, ) callconv(@import("std").os.windows.WINAPI) BOOL, else => *const fn ( param0: usize, param1: ?*u64, ) callconv(@import("std").os.windows.WINAPI) BOOL, }; pub const PSYMBOLSERVERSETHTTPAUTHHEADER = switch (@import("builtin").zig_backend) { .stage1 => fn ( pszAuthHeader: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) BOOL, else => *const fn ( pszAuthHeader: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) BOOL, }; pub const LPCALL_BACK_USER_INTERRUPT_ROUTINE = switch (@import("builtin").zig_backend) { .stage1 => fn () callconv(@import("std").os.windows.WINAPI) u32, else => *const fn () callconv(@import("std").os.windows.WINAPI) u32, }; pub const DBGHELP_DATA_REPORT_STRUCT = extern struct { pBinPathNonExist: ?[*:0]const u16, pSymbolPathNonExist: ?[*:0]const u16, }; const IID_IScriptNode_Value = Guid.initString("0aee2a94-bcbb-11d0-8c72-00c04fc2b085"); pub const IID_IScriptNode = &IID_IScriptNode_Value; pub const IScriptNode = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, Alive: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IScriptNode, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IScriptNode, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Delete: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IScriptNode, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IScriptNode, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetParent: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IScriptNode, ppsnParent: ?*?*IScriptNode, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IScriptNode, ppsnParent: ?*?*IScriptNode, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetIndexInParent: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IScriptNode, pisn: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IScriptNode, pisn: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetCookie: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IScriptNode, pdwCookie: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IScriptNode, pdwCookie: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetNumberOfChildren: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IScriptNode, pcsn: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IScriptNode, pcsn: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetChild: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IScriptNode, isn: u32, ppsn: ?*?*IScriptNode, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IScriptNode, isn: u32, ppsn: ?*?*IScriptNode, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetLanguage: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IScriptNode, pbstr: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IScriptNode, pbstr: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, CreateChildEntry: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IScriptNode, isn: u32, dwCookie: u32, pszDelimiter: ?[*:0]const u16, ppse: ?*?*IScriptEntry, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IScriptNode, isn: u32, dwCookie: u32, pszDelimiter: ?[*:0]const u16, ppse: ?*?*IScriptEntry, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, CreateChildHandler: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IScriptNode, pszDefaultName: ?[*:0]const u16, prgpszNames: [*]?PWSTR, cpszNames: u32, pszEvent: ?[*:0]const u16, pszDelimiter: ?[*:0]const u16, ptiSignature: ?*ITypeInfo, iMethodSignature: u32, isn: u32, dwCookie: u32, ppse: ?*?*IScriptEntry, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IScriptNode, pszDefaultName: ?[*:0]const u16, prgpszNames: [*]?PWSTR, cpszNames: u32, pszEvent: ?[*:0]const u16, pszDelimiter: ?[*:0]const u16, ptiSignature: ?*ITypeInfo, iMethodSignature: u32, isn: u32, dwCookie: u32, ppse: ?*?*IScriptEntry, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IScriptNode_Alive(self: *const T) HRESULT { return @as(*const IScriptNode.VTable, @ptrCast(self.vtable)).Alive(@as(*const IScriptNode, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IScriptNode_Delete(self: *const T) HRESULT { return @as(*const IScriptNode.VTable, @ptrCast(self.vtable)).Delete(@as(*const IScriptNode, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IScriptNode_GetParent(self: *const T, ppsnParent: ?*?*IScriptNode) HRESULT { return @as(*const IScriptNode.VTable, @ptrCast(self.vtable)).GetParent(@as(*const IScriptNode, @ptrCast(self)), ppsnParent); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IScriptNode_GetIndexInParent(self: *const T, pisn: ?*u32) HRESULT { return @as(*const IScriptNode.VTable, @ptrCast(self.vtable)).GetIndexInParent(@as(*const IScriptNode, @ptrCast(self)), pisn); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IScriptNode_GetCookie(self: *const T, pdwCookie: ?*u32) HRESULT { return @as(*const IScriptNode.VTable, @ptrCast(self.vtable)).GetCookie(@as(*const IScriptNode, @ptrCast(self)), pdwCookie); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IScriptNode_GetNumberOfChildren(self: *const T, pcsn: ?*u32) HRESULT { return @as(*const IScriptNode.VTable, @ptrCast(self.vtable)).GetNumberOfChildren(@as(*const IScriptNode, @ptrCast(self)), pcsn); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IScriptNode_GetChild(self: *const T, isn: u32, ppsn: ?*?*IScriptNode) HRESULT { return @as(*const IScriptNode.VTable, @ptrCast(self.vtable)).GetChild(@as(*const IScriptNode, @ptrCast(self)), isn, ppsn); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IScriptNode_GetLanguage(self: *const T, pbstr: ?*?BSTR) HRESULT { return @as(*const IScriptNode.VTable, @ptrCast(self.vtable)).GetLanguage(@as(*const IScriptNode, @ptrCast(self)), pbstr); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IScriptNode_CreateChildEntry(self: *const T, isn: u32, dwCookie: u32, pszDelimiter: ?[*:0]const u16, ppse: ?*?*IScriptEntry) HRESULT { return @as(*const IScriptNode.VTable, @ptrCast(self.vtable)).CreateChildEntry(@as(*const IScriptNode, @ptrCast(self)), isn, dwCookie, pszDelimiter, ppse); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IScriptNode_CreateChildHandler(self: *const T, pszDefaultName: ?[*:0]const u16, prgpszNames: [*]?PWSTR, cpszNames: u32, pszEvent: ?[*:0]const u16, pszDelimiter: ?[*:0]const u16, ptiSignature: ?*ITypeInfo, iMethodSignature: u32, isn: u32, dwCookie: u32, ppse: ?*?*IScriptEntry) HRESULT { return @as(*const IScriptNode.VTable, @ptrCast(self.vtable)).CreateChildHandler(@as(*const IScriptNode, @ptrCast(self)), pszDefaultName, prgpszNames, cpszNames, pszEvent, pszDelimiter, ptiSignature, iMethodSignature, isn, dwCookie, ppse); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IScriptEntry_Value = Guid.initString("0aee2a95-bcbb-11d0-8c72-00c04fc2b085"); pub const IID_IScriptEntry = &IID_IScriptEntry_Value; pub const IScriptEntry = extern struct { pub const VTable = extern struct { base: IScriptNode.VTable, GetText: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IScriptEntry, pbstr: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IScriptEntry, pbstr: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetText: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IScriptEntry, psz: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IScriptEntry, psz: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetBody: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IScriptEntry, pbstr: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IScriptEntry, pbstr: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetBody: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IScriptEntry, psz: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IScriptEntry, psz: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetName: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IScriptEntry, pbstr: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IScriptEntry, pbstr: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetName: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IScriptEntry, psz: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IScriptEntry, psz: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetItemName: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IScriptEntry, pbstr: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IScriptEntry, pbstr: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetItemName: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IScriptEntry, psz: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IScriptEntry, psz: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetSignature: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IScriptEntry, ppti: ?*?*ITypeInfo, piMethod: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IScriptEntry, ppti: ?*?*ITypeInfo, piMethod: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetSignature: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IScriptEntry, pti: ?*ITypeInfo, iMethod: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IScriptEntry, pti: ?*ITypeInfo, iMethod: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetRange: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IScriptEntry, pichMin: ?*u32, pcch: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IScriptEntry, pichMin: ?*u32, pcch: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IScriptNode.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IScriptEntry_GetText(self: *const T, pbstr: ?*?BSTR) HRESULT { return @as(*const IScriptEntry.VTable, @ptrCast(self.vtable)).GetText(@as(*const IScriptEntry, @ptrCast(self)), pbstr); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IScriptEntry_SetText(self: *const T, psz: ?[*:0]const u16) HRESULT { return @as(*const IScriptEntry.VTable, @ptrCast(self.vtable)).SetText(@as(*const IScriptEntry, @ptrCast(self)), psz); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IScriptEntry_GetBody(self: *const T, pbstr: ?*?BSTR) HRESULT { return @as(*const IScriptEntry.VTable, @ptrCast(self.vtable)).GetBody(@as(*const IScriptEntry, @ptrCast(self)), pbstr); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IScriptEntry_SetBody(self: *const T, psz: ?[*:0]const u16) HRESULT { return @as(*const IScriptEntry.VTable, @ptrCast(self.vtable)).SetBody(@as(*const IScriptEntry, @ptrCast(self)), psz); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IScriptEntry_GetName(self: *const T, pbstr: ?*?BSTR) HRESULT { return @as(*const IScriptEntry.VTable, @ptrCast(self.vtable)).GetName(@as(*const IScriptEntry, @ptrCast(self)), pbstr); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IScriptEntry_SetName(self: *const T, psz: ?[*:0]const u16) HRESULT { return @as(*const IScriptEntry.VTable, @ptrCast(self.vtable)).SetName(@as(*const IScriptEntry, @ptrCast(self)), psz); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IScriptEntry_GetItemName(self: *const T, pbstr: ?*?BSTR) HRESULT { return @as(*const IScriptEntry.VTable, @ptrCast(self.vtable)).GetItemName(@as(*const IScriptEntry, @ptrCast(self)), pbstr); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IScriptEntry_SetItemName(self: *const T, psz: ?[*:0]const u16) HRESULT { return @as(*const IScriptEntry.VTable, @ptrCast(self.vtable)).SetItemName(@as(*const IScriptEntry, @ptrCast(self)), psz); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IScriptEntry_GetSignature(self: *const T, ppti: ?*?*ITypeInfo, piMethod: ?*u32) HRESULT { return @as(*const IScriptEntry.VTable, @ptrCast(self.vtable)).GetSignature(@as(*const IScriptEntry, @ptrCast(self)), ppti, piMethod); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IScriptEntry_SetSignature(self: *const T, pti: ?*ITypeInfo, iMethod: u32) HRESULT { return @as(*const IScriptEntry.VTable, @ptrCast(self.vtable)).SetSignature(@as(*const IScriptEntry, @ptrCast(self)), pti, iMethod); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IScriptEntry_GetRange(self: *const T, pichMin: ?*u32, pcch: ?*u32) HRESULT { return @as(*const IScriptEntry.VTable, @ptrCast(self.vtable)).GetRange(@as(*const IScriptEntry, @ptrCast(self)), pichMin, pcch); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IScriptScriptlet_Value = Guid.initString("0aee2a96-bcbb-11d0-8c72-00c04fc2b085"); pub const IID_IScriptScriptlet = &IID_IScriptScriptlet_Value; pub const IScriptScriptlet = extern struct { pub const VTable = extern struct { base: IScriptEntry.VTable, GetSubItemName: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IScriptScriptlet, pbstr: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IScriptScriptlet, pbstr: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetSubItemName: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IScriptScriptlet, psz: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IScriptScriptlet, psz: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetEventName: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IScriptScriptlet, pbstr: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IScriptScriptlet, pbstr: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetEventName: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IScriptScriptlet, psz: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IScriptScriptlet, psz: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetSimpleEventName: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IScriptScriptlet, pbstr: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IScriptScriptlet, pbstr: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetSimpleEventName: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IScriptScriptlet, psz: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IScriptScriptlet, psz: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IScriptEntry.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IScriptScriptlet_GetSubItemName(self: *const T, pbstr: ?*?BSTR) HRESULT { return @as(*const IScriptScriptlet.VTable, @ptrCast(self.vtable)).GetSubItemName(@as(*const IScriptScriptlet, @ptrCast(self)), pbstr); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IScriptScriptlet_SetSubItemName(self: *const T, psz: ?[*:0]const u16) HRESULT { return @as(*const IScriptScriptlet.VTable, @ptrCast(self.vtable)).SetSubItemName(@as(*const IScriptScriptlet, @ptrCast(self)), psz); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IScriptScriptlet_GetEventName(self: *const T, pbstr: ?*?BSTR) HRESULT { return @as(*const IScriptScriptlet.VTable, @ptrCast(self.vtable)).GetEventName(@as(*const IScriptScriptlet, @ptrCast(self)), pbstr); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IScriptScriptlet_SetEventName(self: *const T, psz: ?[*:0]const u16) HRESULT { return @as(*const IScriptScriptlet.VTable, @ptrCast(self.vtable)).SetEventName(@as(*const IScriptScriptlet, @ptrCast(self)), psz); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IScriptScriptlet_GetSimpleEventName(self: *const T, pbstr: ?*?BSTR) HRESULT { return @as(*const IScriptScriptlet.VTable, @ptrCast(self.vtable)).GetSimpleEventName(@as(*const IScriptScriptlet, @ptrCast(self)), pbstr); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IScriptScriptlet_SetSimpleEventName(self: *const T, psz: ?[*:0]const u16) HRESULT { return @as(*const IScriptScriptlet.VTable, @ptrCast(self.vtable)).SetSimpleEventName(@as(*const IScriptScriptlet, @ptrCast(self)), psz); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IActiveScriptAuthor_Value = Guid.initString("9c109da0-7006-11d1-b36c-00a0c911e8b2"); pub const IID_IActiveScriptAuthor = &IID_IActiveScriptAuthor_Value; pub const IActiveScriptAuthor = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, AddNamedItem: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IActiveScriptAuthor, pszName: ?[*:0]const u16, dwFlags: u32, pdisp: ?*IDispatch, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IActiveScriptAuthor, pszName: ?[*:0]const u16, dwFlags: u32, pdisp: ?*IDispatch, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, AddScriptlet: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IActiveScriptAuthor, pszDefaultName: ?[*:0]const u16, pszCode: ?[*:0]const u16, pszItemName: ?[*:0]const u16, pszSubItemName: ?[*:0]const u16, pszEventName: ?[*:0]const u16, pszDelimiter: ?[*:0]const u16, dwCookie: u32, dwFlags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IActiveScriptAuthor, pszDefaultName: ?[*:0]const u16, pszCode: ?[*:0]const u16, pszItemName: ?[*:0]const u16, pszSubItemName: ?[*:0]const u16, pszEventName: ?[*:0]const u16, pszDelimiter: ?[*:0]const u16, dwCookie: u32, dwFlags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, ParseScriptText: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IActiveScriptAuthor, pszCode: ?[*:0]const u16, pszItemName: ?[*:0]const u16, pszDelimiter: ?[*:0]const u16, dwCookie: u32, dwFlags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IActiveScriptAuthor, pszCode: ?[*:0]const u16, pszItemName: ?[*:0]const u16, pszDelimiter: ?[*:0]const u16, dwCookie: u32, dwFlags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetScriptTextAttributes: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IActiveScriptAuthor, pszCode: [*:0]const u16, cch: u32, pszDelimiter: ?[*:0]const u16, dwFlags: u32, pattr: [*:0]u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IActiveScriptAuthor, pszCode: [*:0]const u16, cch: u32, pszDelimiter: ?[*:0]const u16, dwFlags: u32, pattr: [*:0]u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetScriptletTextAttributes: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IActiveScriptAuthor, pszCode: [*:0]const u16, cch: u32, pszDelimiter: ?[*:0]const u16, dwFlags: u32, pattr: [*:0]u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IActiveScriptAuthor, pszCode: [*:0]const u16, cch: u32, pszDelimiter: ?[*:0]const u16, dwFlags: u32, pattr: [*:0]u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetRoot: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IActiveScriptAuthor, ppsp: ?*?*IScriptNode, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IActiveScriptAuthor, ppsp: ?*?*IScriptNode, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetLanguageFlags: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IActiveScriptAuthor, pgrfasa: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IActiveScriptAuthor, pgrfasa: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetEventHandler: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IActiveScriptAuthor, pdisp: ?*IDispatch, pszItem: ?[*:0]const u16, pszSubItem: ?[*:0]const u16, pszEvent: ?[*:0]const u16, ppse: ?*?*IScriptEntry, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IActiveScriptAuthor, pdisp: ?*IDispatch, pszItem: ?[*:0]const u16, pszSubItem: ?[*:0]const u16, pszEvent: ?[*:0]const u16, ppse: ?*?*IScriptEntry, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, RemoveNamedItem: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IActiveScriptAuthor, pszName: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IActiveScriptAuthor, pszName: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, AddTypeLib: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IActiveScriptAuthor, rguidTypeLib: ?*const Guid, dwMajor: u32, dwMinor: u32, dwFlags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IActiveScriptAuthor, rguidTypeLib: ?*const Guid, dwMajor: u32, dwMinor: u32, dwFlags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, RemoveTypeLib: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IActiveScriptAuthor, rguidTypeLib: ?*const Guid, dwMajor: u32, dwMinor: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IActiveScriptAuthor, rguidTypeLib: ?*const Guid, dwMajor: u32, dwMinor: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetChars: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IActiveScriptAuthor, fRequestedList: u32, pbstrChars: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IActiveScriptAuthor, fRequestedList: u32, pbstrChars: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetInfoFromContext: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IActiveScriptAuthor, pszCode: ?[*:0]const u16, cchCode: u32, ichCurrentPosition: u32, dwListTypesRequested: u32, pdwListTypesProvided: ?*u32, pichListAnchorPosition: ?*u32, pichFuncAnchorPosition: ?*u32, pmemid: ?*i32, piCurrentParameter: ?*i32, ppunk: ?*?*IUnknown, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IActiveScriptAuthor, pszCode: ?[*:0]const u16, cchCode: u32, ichCurrentPosition: u32, dwListTypesRequested: u32, pdwListTypesProvided: ?*u32, pichListAnchorPosition: ?*u32, pichFuncAnchorPosition: ?*u32, pmemid: ?*i32, piCurrentParameter: ?*i32, ppunk: ?*?*IUnknown, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, IsCommitChar: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IActiveScriptAuthor, ch: u16, pfcommit: ?*BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IActiveScriptAuthor, ch: u16, pfcommit: ?*BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IActiveScriptAuthor_AddNamedItem(self: *const T, pszName: ?[*:0]const u16, dwFlags: u32, pdisp: ?*IDispatch) HRESULT { return @as(*const IActiveScriptAuthor.VTable, @ptrCast(self.vtable)).AddNamedItem(@as(*const IActiveScriptAuthor, @ptrCast(self)), pszName, dwFlags, pdisp); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IActiveScriptAuthor_AddScriptlet(self: *const T, pszDefaultName: ?[*:0]const u16, pszCode: ?[*:0]const u16, pszItemName: ?[*:0]const u16, pszSubItemName: ?[*:0]const u16, pszEventName: ?[*:0]const u16, pszDelimiter: ?[*:0]const u16, dwCookie: u32, dwFlags: u32) HRESULT { return @as(*const IActiveScriptAuthor.VTable, @ptrCast(self.vtable)).AddScriptlet(@as(*const IActiveScriptAuthor, @ptrCast(self)), pszDefaultName, pszCode, pszItemName, pszSubItemName, pszEventName, pszDelimiter, dwCookie, dwFlags); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IActiveScriptAuthor_ParseScriptText(self: *const T, pszCode: ?[*:0]const u16, pszItemName: ?[*:0]const u16, pszDelimiter: ?[*:0]const u16, dwCookie: u32, dwFlags: u32) HRESULT { return @as(*const IActiveScriptAuthor.VTable, @ptrCast(self.vtable)).ParseScriptText(@as(*const IActiveScriptAuthor, @ptrCast(self)), pszCode, pszItemName, pszDelimiter, dwCookie, dwFlags); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IActiveScriptAuthor_GetScriptTextAttributes(self: *const T, pszCode: [*:0]const u16, cch: u32, pszDelimiter: ?[*:0]const u16, dwFlags: u32, pattr: [*:0]u16) HRESULT { return @as(*const IActiveScriptAuthor.VTable, @ptrCast(self.vtable)).GetScriptTextAttributes(@as(*const IActiveScriptAuthor, @ptrCast(self)), pszCode, cch, pszDelimiter, dwFlags, pattr); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IActiveScriptAuthor_GetScriptletTextAttributes(self: *const T, pszCode: [*:0]const u16, cch: u32, pszDelimiter: ?[*:0]const u16, dwFlags: u32, pattr: [*:0]u16) HRESULT { return @as(*const IActiveScriptAuthor.VTable, @ptrCast(self.vtable)).GetScriptletTextAttributes(@as(*const IActiveScriptAuthor, @ptrCast(self)), pszCode, cch, pszDelimiter, dwFlags, pattr); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IActiveScriptAuthor_GetRoot(self: *const T, ppsp: ?*?*IScriptNode) HRESULT { return @as(*const IActiveScriptAuthor.VTable, @ptrCast(self.vtable)).GetRoot(@as(*const IActiveScriptAuthor, @ptrCast(self)), ppsp); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IActiveScriptAuthor_GetLanguageFlags(self: *const T, pgrfasa: ?*u32) HRESULT { return @as(*const IActiveScriptAuthor.VTable, @ptrCast(self.vtable)).GetLanguageFlags(@as(*const IActiveScriptAuthor, @ptrCast(self)), pgrfasa); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IActiveScriptAuthor_GetEventHandler(self: *const T, pdisp: ?*IDispatch, pszItem: ?[*:0]const u16, pszSubItem: ?[*:0]const u16, pszEvent: ?[*:0]const u16, ppse: ?*?*IScriptEntry) HRESULT { return @as(*const IActiveScriptAuthor.VTable, @ptrCast(self.vtable)).GetEventHandler(@as(*const IActiveScriptAuthor, @ptrCast(self)), pdisp, pszItem, pszSubItem, pszEvent, ppse); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IActiveScriptAuthor_RemoveNamedItem(self: *const T, pszName: ?[*:0]const u16) HRESULT { return @as(*const IActiveScriptAuthor.VTable, @ptrCast(self.vtable)).RemoveNamedItem(@as(*const IActiveScriptAuthor, @ptrCast(self)), pszName); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IActiveScriptAuthor_AddTypeLib(self: *const T, rguidTypeLib: ?*const Guid, dwMajor: u32, dwMinor: u32, dwFlags: u32) HRESULT { return @as(*const IActiveScriptAuthor.VTable, @ptrCast(self.vtable)).AddTypeLib(@as(*const IActiveScriptAuthor, @ptrCast(self)), rguidTypeLib, dwMajor, dwMinor, dwFlags); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IActiveScriptAuthor_RemoveTypeLib(self: *const T, rguidTypeLib: ?*const Guid, dwMajor: u32, dwMinor: u32) HRESULT { return @as(*const IActiveScriptAuthor.VTable, @ptrCast(self.vtable)).RemoveTypeLib(@as(*const IActiveScriptAuthor, @ptrCast(self)), rguidTypeLib, dwMajor, dwMinor); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IActiveScriptAuthor_GetChars(self: *const T, fRequestedList: u32, pbstrChars: ?*?BSTR) HRESULT { return @as(*const IActiveScriptAuthor.VTable, @ptrCast(self.vtable)).GetChars(@as(*const IActiveScriptAuthor, @ptrCast(self)), fRequestedList, pbstrChars); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IActiveScriptAuthor_GetInfoFromContext(self: *const T, pszCode: ?[*:0]const u16, cchCode: u32, ichCurrentPosition: u32, dwListTypesRequested: u32, pdwListTypesProvided: ?*u32, pichListAnchorPosition: ?*u32, pichFuncAnchorPosition: ?*u32, pmemid: ?*i32, piCurrentParameter: ?*i32, ppunk: ?*?*IUnknown) HRESULT { return @as(*const IActiveScriptAuthor.VTable, @ptrCast(self.vtable)).GetInfoFromContext(@as(*const IActiveScriptAuthor, @ptrCast(self)), pszCode, cchCode, ichCurrentPosition, dwListTypesRequested, pdwListTypesProvided, pichListAnchorPosition, pichFuncAnchorPosition, pmemid, piCurrentParameter, ppunk); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IActiveScriptAuthor_IsCommitChar(self: *const T, ch: u16, pfcommit: ?*BOOL) HRESULT { return @as(*const IActiveScriptAuthor.VTable, @ptrCast(self.vtable)).IsCommitChar(@as(*const IActiveScriptAuthor, @ptrCast(self)), ch, pfcommit); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IActiveScriptAuthorProcedure_Value = Guid.initString("7e2d4b70-bd9a-11d0-9336-00a0c90dcaa9"); pub const IID_IActiveScriptAuthorProcedure = &IID_IActiveScriptAuthorProcedure_Value; pub const IActiveScriptAuthorProcedure = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, ParseProcedureText: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IActiveScriptAuthorProcedure, pszCode: ?[*:0]const u16, pszFormalParams: ?[*:0]const u16, pszProcedureName: ?[*:0]const u16, pszItemName: ?[*:0]const u16, pszDelimiter: ?[*:0]const u16, dwCookie: u32, dwFlags: u32, pdispFor: ?*IDispatch, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IActiveScriptAuthorProcedure, pszCode: ?[*:0]const u16, pszFormalParams: ?[*:0]const u16, pszProcedureName: ?[*:0]const u16, pszItemName: ?[*:0]const u16, pszDelimiter: ?[*:0]const u16, dwCookie: u32, dwFlags: u32, pdispFor: ?*IDispatch, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IActiveScriptAuthorProcedure_ParseProcedureText(self: *const T, pszCode: ?[*:0]const u16, pszFormalParams: ?[*:0]const u16, pszProcedureName: ?[*:0]const u16, pszItemName: ?[*:0]const u16, pszDelimiter: ?[*:0]const u16, dwCookie: u32, dwFlags: u32, pdispFor: ?*IDispatch) HRESULT { return @as(*const IActiveScriptAuthorProcedure.VTable, @ptrCast(self.vtable)).ParseProcedureText(@as(*const IActiveScriptAuthorProcedure, @ptrCast(self)), pszCode, pszFormalParams, pszProcedureName, pszItemName, pszDelimiter, dwCookie, dwFlags, pdispFor); } }; } pub usingnamespace MethodMixin(@This()); }; pub const APPLICATION_NODE_EVENT_FILTER = enum(i32) { NOTHING = 0, ANONYMOUS_CODE = 1, EVAL_CODE = 2, }; pub const FILTER_EXCLUDE_NOTHING = APPLICATION_NODE_EVENT_FILTER.NOTHING; pub const FILTER_EXCLUDE_ANONYMOUS_CODE = APPLICATION_NODE_EVENT_FILTER.ANONYMOUS_CODE; pub const FILTER_EXCLUDE_EVAL_CODE = APPLICATION_NODE_EVENT_FILTER.EVAL_CODE; pub const TEXT_DOCUMENT_ARRAY = extern struct { dwCount: u32, Members: ?*?*IDebugDocumentText, }; const IID_IDebugApplicationNode100_Value = Guid.initString("90a7734e-841b-4f77-9384-a2891e76e7e2"); pub const IID_IDebugApplicationNode100 = &IID_IDebugApplicationNode100_Value; pub const IDebugApplicationNode100 = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, SetFilterForEventSink: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugApplicationNode100, dwCookie: u32, filter: APPLICATION_NODE_EVENT_FILTER, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugApplicationNode100, dwCookie: u32, filter: APPLICATION_NODE_EVENT_FILTER, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetExcludedDocuments: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugApplicationNode100, filter: APPLICATION_NODE_EVENT_FILTER, pDocuments: ?*TEXT_DOCUMENT_ARRAY, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugApplicationNode100, filter: APPLICATION_NODE_EVENT_FILTER, pDocuments: ?*TEXT_DOCUMENT_ARRAY, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, QueryIsChildNode: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugApplicationNode100, pSearchKey: ?*IDebugDocument, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugApplicationNode100, pSearchKey: ?*IDebugDocument, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugApplicationNode100_SetFilterForEventSink(self: *const T, dwCookie: u32, filter: APPLICATION_NODE_EVENT_FILTER) HRESULT { return @as(*const IDebugApplicationNode100.VTable, @ptrCast(self.vtable)).SetFilterForEventSink(@as(*const IDebugApplicationNode100, @ptrCast(self)), dwCookie, filter); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugApplicationNode100_GetExcludedDocuments(self: *const T, filter: APPLICATION_NODE_EVENT_FILTER, pDocuments: ?*TEXT_DOCUMENT_ARRAY) HRESULT { return @as(*const IDebugApplicationNode100.VTable, @ptrCast(self.vtable)).GetExcludedDocuments(@as(*const IDebugApplicationNode100, @ptrCast(self)), filter, pDocuments); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugApplicationNode100_QueryIsChildNode(self: *const T, pSearchKey: ?*IDebugDocument) HRESULT { return @as(*const IDebugApplicationNode100.VTable, @ptrCast(self.vtable)).QueryIsChildNode(@as(*const IDebugApplicationNode100, @ptrCast(self)), pSearchKey); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IWebAppDiagnosticsSetup_Value = Guid.initString("379bfbe1-c6c9-432a-93e1-6d17656c538c"); pub const IID_IWebAppDiagnosticsSetup = &IID_IWebAppDiagnosticsSetup_Value; pub const IWebAppDiagnosticsSetup = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, DiagnosticsSupported: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IWebAppDiagnosticsSetup, pRetVal: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IWebAppDiagnosticsSetup, pRetVal: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, CreateObjectWithSiteAtWebApp: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IWebAppDiagnosticsSetup, rclsid: ?*const Guid, dwClsContext: u32, riid: ?*const Guid, hPassToObject: usize, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IWebAppDiagnosticsSetup, rclsid: ?*const Guid, dwClsContext: u32, riid: ?*const Guid, hPassToObject: usize, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWebAppDiagnosticsSetup_DiagnosticsSupported(self: *const T, pRetVal: ?*i16) HRESULT { return @as(*const IWebAppDiagnosticsSetup.VTable, @ptrCast(self.vtable)).DiagnosticsSupported(@as(*const IWebAppDiagnosticsSetup, @ptrCast(self)), pRetVal); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWebAppDiagnosticsSetup_CreateObjectWithSiteAtWebApp(self: *const T, rclsid: ?*const Guid, dwClsContext: u32, riid: ?*const Guid, hPassToObject: usize) HRESULT { return @as(*const IWebAppDiagnosticsSetup.VTable, @ptrCast(self.vtable)).CreateObjectWithSiteAtWebApp(@as(*const IWebAppDiagnosticsSetup, @ptrCast(self)), rclsid, dwClsContext, riid, hPassToObject); } }; } pub usingnamespace MethodMixin(@This()); }; pub const SCRIPT_DEBUGGER_OPTIONS = enum(i32) { NONE = 0, ENABLE_FIRST_CHANCE_EXCEPTIONS = 1, ENABLE_WEB_WORKER_SUPPORT = 2, ENABLE_NONUSER_CODE_SUPPORT = 4, ENABLE_LIBRARY_STACK_FRAME = 8, }; pub const SDO_NONE = SCRIPT_DEBUGGER_OPTIONS.NONE; pub const SDO_ENABLE_FIRST_CHANCE_EXCEPTIONS = SCRIPT_DEBUGGER_OPTIONS.ENABLE_FIRST_CHANCE_EXCEPTIONS; pub const SDO_ENABLE_WEB_WORKER_SUPPORT = SCRIPT_DEBUGGER_OPTIONS.ENABLE_WEB_WORKER_SUPPORT; pub const SDO_ENABLE_NONUSER_CODE_SUPPORT = SCRIPT_DEBUGGER_OPTIONS.ENABLE_NONUSER_CODE_SUPPORT; pub const SDO_ENABLE_LIBRARY_STACK_FRAME = SCRIPT_DEBUGGER_OPTIONS.ENABLE_LIBRARY_STACK_FRAME; const IID_IRemoteDebugApplication110_Value = Guid.initString("d5fe005b-2836-485e-b1f9-89d91aa24fd4"); pub const IID_IRemoteDebugApplication110 = &IID_IRemoteDebugApplication110_Value; pub const IRemoteDebugApplication110 = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, SetDebuggerOptions: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IRemoteDebugApplication110, mask: SCRIPT_DEBUGGER_OPTIONS, value: SCRIPT_DEBUGGER_OPTIONS, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IRemoteDebugApplication110, mask: SCRIPT_DEBUGGER_OPTIONS, value: SCRIPT_DEBUGGER_OPTIONS, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetCurrentDebuggerOptions: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IRemoteDebugApplication110, pCurrentOptions: ?*SCRIPT_DEBUGGER_OPTIONS, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IRemoteDebugApplication110, pCurrentOptions: ?*SCRIPT_DEBUGGER_OPTIONS, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetMainThread: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IRemoteDebugApplication110, ppThread: ?*?*IRemoteDebugApplicationThread, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IRemoteDebugApplication110, ppThread: ?*?*IRemoteDebugApplicationThread, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRemoteDebugApplication110_SetDebuggerOptions(self: *const T, mask: SCRIPT_DEBUGGER_OPTIONS, value: SCRIPT_DEBUGGER_OPTIONS) HRESULT { return @as(*const IRemoteDebugApplication110.VTable, @ptrCast(self.vtable)).SetDebuggerOptions(@as(*const IRemoteDebugApplication110, @ptrCast(self)), mask, value); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRemoteDebugApplication110_GetCurrentDebuggerOptions(self: *const T, pCurrentOptions: ?*SCRIPT_DEBUGGER_OPTIONS) HRESULT { return @as(*const IRemoteDebugApplication110.VTable, @ptrCast(self.vtable)).GetCurrentDebuggerOptions(@as(*const IRemoteDebugApplication110, @ptrCast(self)), pCurrentOptions); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRemoteDebugApplication110_GetMainThread(self: *const T, ppThread: ?*?*IRemoteDebugApplicationThread) HRESULT { return @as(*const IRemoteDebugApplication110.VTable, @ptrCast(self.vtable)).GetMainThread(@as(*const IRemoteDebugApplication110, @ptrCast(self)), ppThread); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IDebugApplication11032_Value = Guid.initString("bdb3b5de-89f2-4e11-84a5-97445f941c7d"); pub const IID_IDebugApplication11032 = &IID_IDebugApplication11032_Value; pub const IDebugApplication11032 = extern struct { pub const VTable = extern struct { base: IRemoteDebugApplication110.VTable, SynchronousCallInMainThread: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugApplication11032, pptc: ?*IDebugThreadCall32, dwParam1: usize, dwParam2: usize, dwParam3: usize, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugApplication11032, pptc: ?*IDebugThreadCall32, dwParam1: usize, dwParam2: usize, dwParam3: usize, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, AsynchronousCallInMainThread: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugApplication11032, pptc: ?*IDebugThreadCall32, dwParam1: usize, dwParam2: usize, dwParam3: usize, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugApplication11032, pptc: ?*IDebugThreadCall32, dwParam1: usize, dwParam2: usize, dwParam3: usize, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, CallableWaitForHandles: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugApplication11032, handleCount: u32, pHandles: [*]const ?HANDLE, pIndex: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugApplication11032, handleCount: u32, pHandles: [*]const ?HANDLE, pIndex: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IRemoteDebugApplication110.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugApplication11032_SynchronousCallInMainThread(self: *const T, pptc: ?*IDebugThreadCall32, dwParam1: usize, dwParam2: usize, dwParam3: usize) HRESULT { return @as(*const IDebugApplication11032.VTable, @ptrCast(self.vtable)).SynchronousCallInMainThread(@as(*const IDebugApplication11032, @ptrCast(self)), pptc, dwParam1, dwParam2, dwParam3); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugApplication11032_AsynchronousCallInMainThread(self: *const T, pptc: ?*IDebugThreadCall32, dwParam1: usize, dwParam2: usize, dwParam3: usize) HRESULT { return @as(*const IDebugApplication11032.VTable, @ptrCast(self.vtable)).AsynchronousCallInMainThread(@as(*const IDebugApplication11032, @ptrCast(self)), pptc, dwParam1, dwParam2, dwParam3); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugApplication11032_CallableWaitForHandles(self: *const T, handleCount: u32, pHandles: [*]const ?HANDLE, pIndex: ?*u32) HRESULT { return @as(*const IDebugApplication11032.VTable, @ptrCast(self.vtable)).CallableWaitForHandles(@as(*const IDebugApplication11032, @ptrCast(self)), handleCount, pHandles, pIndex); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IDebugApplication11064_Value = Guid.initString("2039d958-4eeb-496a-87bb-2e5201eadeef"); pub const IID_IDebugApplication11064 = &IID_IDebugApplication11064_Value; pub const IDebugApplication11064 = extern struct { pub const VTable = extern struct { base: IRemoteDebugApplication110.VTable, SynchronousCallInMainThread: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugApplication11064, pptc: ?*IDebugThreadCall64, dwParam1: usize, dwParam2: usize, dwParam3: usize, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugApplication11064, pptc: ?*IDebugThreadCall64, dwParam1: usize, dwParam2: usize, dwParam3: usize, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, AsynchronousCallInMainThread: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugApplication11064, pptc: ?*IDebugThreadCall64, dwParam1: usize, dwParam2: usize, dwParam3: usize, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugApplication11064, pptc: ?*IDebugThreadCall64, dwParam1: usize, dwParam2: usize, dwParam3: usize, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, CallableWaitForHandles: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugApplication11064, handleCount: u32, pHandles: [*]const ?HANDLE, pIndex: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugApplication11064, handleCount: u32, pHandles: [*]const ?HANDLE, pIndex: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IRemoteDebugApplication110.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugApplication11064_SynchronousCallInMainThread(self: *const T, pptc: ?*IDebugThreadCall64, dwParam1: usize, dwParam2: usize, dwParam3: usize) HRESULT { return @as(*const IDebugApplication11064.VTable, @ptrCast(self.vtable)).SynchronousCallInMainThread(@as(*const IDebugApplication11064, @ptrCast(self)), pptc, dwParam1, dwParam2, dwParam3); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugApplication11064_AsynchronousCallInMainThread(self: *const T, pptc: ?*IDebugThreadCall64, dwParam1: usize, dwParam2: usize, dwParam3: usize) HRESULT { return @as(*const IDebugApplication11064.VTable, @ptrCast(self.vtable)).AsynchronousCallInMainThread(@as(*const IDebugApplication11064, @ptrCast(self)), pptc, dwParam1, dwParam2, dwParam3); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugApplication11064_CallableWaitForHandles(self: *const T, handleCount: u32, pHandles: [*]const ?HANDLE, pIndex: ?*u32) HRESULT { return @as(*const IDebugApplication11064.VTable, @ptrCast(self.vtable)).CallableWaitForHandles(@as(*const IDebugApplication11064, @ptrCast(self)), handleCount, pHandles, pIndex); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IWebAppDiagnosticsObjectInitialization_Value = Guid.initString("16ff3a42-a5f5-432b-b625-8e8e16f57e15"); pub const IID_IWebAppDiagnosticsObjectInitialization = &IID_IWebAppDiagnosticsObjectInitialization_Value; pub const IWebAppDiagnosticsObjectInitialization = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, Initialize: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IWebAppDiagnosticsObjectInitialization, hPassedHandle: HANDLE_PTR, pDebugApplication: ?*IUnknown, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IWebAppDiagnosticsObjectInitialization, hPassedHandle: HANDLE_PTR, pDebugApplication: ?*IUnknown, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWebAppDiagnosticsObjectInitialization_Initialize(self: *const T, hPassedHandle: HANDLE_PTR, pDebugApplication: ?*IUnknown) HRESULT { return @as(*const IWebAppDiagnosticsObjectInitialization.VTable, @ptrCast(self.vtable)).Initialize(@as(*const IWebAppDiagnosticsObjectInitialization, @ptrCast(self)), hPassedHandle, pDebugApplication); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IActiveScriptWinRTErrorDebug_Value = Guid.initString("73a3f82a-0fe9-4b33-ba3b-fe095f697e0a"); pub const IID_IActiveScriptWinRTErrorDebug = &IID_IActiveScriptWinRTErrorDebug_Value; pub const IActiveScriptWinRTErrorDebug = extern struct { pub const VTable = extern struct { base: IActiveScriptError.VTable, GetRestrictedErrorString: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IActiveScriptWinRTErrorDebug, errorString: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IActiveScriptWinRTErrorDebug, errorString: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetRestrictedErrorReference: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IActiveScriptWinRTErrorDebug, referenceString: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IActiveScriptWinRTErrorDebug, referenceString: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetCapabilitySid: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IActiveScriptWinRTErrorDebug, capabilitySid: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IActiveScriptWinRTErrorDebug, capabilitySid: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IActiveScriptError.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IActiveScriptWinRTErrorDebug_GetRestrictedErrorString(self: *const T, errorString: ?*?BSTR) HRESULT { return @as(*const IActiveScriptWinRTErrorDebug.VTable, @ptrCast(self.vtable)).GetRestrictedErrorString(@as(*const IActiveScriptWinRTErrorDebug, @ptrCast(self)), errorString); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IActiveScriptWinRTErrorDebug_GetRestrictedErrorReference(self: *const T, referenceString: ?*?BSTR) HRESULT { return @as(*const IActiveScriptWinRTErrorDebug.VTable, @ptrCast(self.vtable)).GetRestrictedErrorReference(@as(*const IActiveScriptWinRTErrorDebug, @ptrCast(self)), referenceString); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IActiveScriptWinRTErrorDebug_GetCapabilitySid(self: *const T, capabilitySid: ?*?BSTR) HRESULT { return @as(*const IActiveScriptWinRTErrorDebug.VTable, @ptrCast(self.vtable)).GetCapabilitySid(@as(*const IActiveScriptWinRTErrorDebug, @ptrCast(self)), capabilitySid); } }; } pub usingnamespace MethodMixin(@This()); }; pub const SCRIPT_ERROR_DEBUG_EXCEPTION_THROWN_KIND = enum(i32) { FIRST_CHANCE = 0, USER_UNHANDLED = 1, UNHANDLED = 2, }; pub const ETK_FIRST_CHANCE = SCRIPT_ERROR_DEBUG_EXCEPTION_THROWN_KIND.FIRST_CHANCE; pub const ETK_USER_UNHANDLED = SCRIPT_ERROR_DEBUG_EXCEPTION_THROWN_KIND.USER_UNHANDLED; pub const ETK_UNHANDLED = SCRIPT_ERROR_DEBUG_EXCEPTION_THROWN_KIND.UNHANDLED; const IID_IActiveScriptErrorDebug110_Value = Guid.initString("516e42b6-89a8-4530-937b-5f0708431442"); pub const IID_IActiveScriptErrorDebug110 = &IID_IActiveScriptErrorDebug110_Value; pub const IActiveScriptErrorDebug110 = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, GetExceptionThrownKind: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IActiveScriptErrorDebug110, pExceptionKind: ?*SCRIPT_ERROR_DEBUG_EXCEPTION_THROWN_KIND, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IActiveScriptErrorDebug110, pExceptionKind: ?*SCRIPT_ERROR_DEBUG_EXCEPTION_THROWN_KIND, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IActiveScriptErrorDebug110_GetExceptionThrownKind(self: *const T, pExceptionKind: ?*SCRIPT_ERROR_DEBUG_EXCEPTION_THROWN_KIND) HRESULT { return @as(*const IActiveScriptErrorDebug110.VTable, @ptrCast(self.vtable)).GetExceptionThrownKind(@as(*const IActiveScriptErrorDebug110, @ptrCast(self)), pExceptionKind); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IDebugApplicationThreadEvents110_Value = Guid.initString("84e5e468-d5da-48a8-83f4-40366429007b"); pub const IID_IDebugApplicationThreadEvents110 = &IID_IDebugApplicationThreadEvents110_Value; pub const IDebugApplicationThreadEvents110 = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, OnSuspendForBreakPoint: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugApplicationThreadEvents110, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugApplicationThreadEvents110, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, OnResumeFromBreakPoint: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugApplicationThreadEvents110, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugApplicationThreadEvents110, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, OnThreadRequestComplete: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugApplicationThreadEvents110, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugApplicationThreadEvents110, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, OnBeginThreadRequest: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugApplicationThreadEvents110, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugApplicationThreadEvents110, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugApplicationThreadEvents110_OnSuspendForBreakPoint(self: *const T) HRESULT { return @as(*const IDebugApplicationThreadEvents110.VTable, @ptrCast(self.vtable)).OnSuspendForBreakPoint(@as(*const IDebugApplicationThreadEvents110, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugApplicationThreadEvents110_OnResumeFromBreakPoint(self: *const T) HRESULT { return @as(*const IDebugApplicationThreadEvents110.VTable, @ptrCast(self.vtable)).OnResumeFromBreakPoint(@as(*const IDebugApplicationThreadEvents110, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugApplicationThreadEvents110_OnThreadRequestComplete(self: *const T) HRESULT { return @as(*const IDebugApplicationThreadEvents110.VTable, @ptrCast(self.vtable)).OnThreadRequestComplete(@as(*const IDebugApplicationThreadEvents110, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugApplicationThreadEvents110_OnBeginThreadRequest(self: *const T) HRESULT { return @as(*const IDebugApplicationThreadEvents110.VTable, @ptrCast(self.vtable)).OnBeginThreadRequest(@as(*const IDebugApplicationThreadEvents110, @ptrCast(self))); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IDebugApplicationThread11032_Value = Guid.initString("2194ac5c-6561-404a-a2e9-f57d72de3702"); pub const IID_IDebugApplicationThread11032 = &IID_IDebugApplicationThread11032_Value; pub const IDebugApplicationThread11032 = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, GetActiveThreadRequestCount: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugApplicationThread11032, puiThreadRequests: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugApplicationThread11032, puiThreadRequests: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, IsSuspendedForBreakPoint: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugApplicationThread11032, pfIsSuspended: ?*BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugApplicationThread11032, pfIsSuspended: ?*BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, IsThreadCallable: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugApplicationThread11032, pfIsCallable: ?*BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugApplicationThread11032, pfIsCallable: ?*BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, AsynchronousCallIntoThread: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugApplicationThread11032, pptc: ?*IDebugThreadCall32, dwParam1: usize, dwParam2: usize, dwParam3: usize, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugApplicationThread11032, pptc: ?*IDebugThreadCall32, dwParam1: usize, dwParam2: usize, dwParam3: usize, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugApplicationThread11032_GetActiveThreadRequestCount(self: *const T, puiThreadRequests: ?*u32) HRESULT { return @as(*const IDebugApplicationThread11032.VTable, @ptrCast(self.vtable)).GetActiveThreadRequestCount(@as(*const IDebugApplicationThread11032, @ptrCast(self)), puiThreadRequests); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugApplicationThread11032_IsSuspendedForBreakPoint(self: *const T, pfIsSuspended: ?*BOOL) HRESULT { return @as(*const IDebugApplicationThread11032.VTable, @ptrCast(self.vtable)).IsSuspendedForBreakPoint(@as(*const IDebugApplicationThread11032, @ptrCast(self)), pfIsSuspended); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugApplicationThread11032_IsThreadCallable(self: *const T, pfIsCallable: ?*BOOL) HRESULT { return @as(*const IDebugApplicationThread11032.VTable, @ptrCast(self.vtable)).IsThreadCallable(@as(*const IDebugApplicationThread11032, @ptrCast(self)), pfIsCallable); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugApplicationThread11032_AsynchronousCallIntoThread(self: *const T, pptc: ?*IDebugThreadCall32, dwParam1: usize, dwParam2: usize, dwParam3: usize) HRESULT { return @as(*const IDebugApplicationThread11032.VTable, @ptrCast(self.vtable)).AsynchronousCallIntoThread(@as(*const IDebugApplicationThread11032, @ptrCast(self)), pptc, dwParam1, dwParam2, dwParam3); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IDebugApplicationThread11064_Value = Guid.initString("420aa4cc-efd8-4dac-983b-47127826917d"); pub const IID_IDebugApplicationThread11064 = &IID_IDebugApplicationThread11064_Value; pub const IDebugApplicationThread11064 = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, GetActiveThreadRequestCount: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugApplicationThread11064, puiThreadRequests: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugApplicationThread11064, puiThreadRequests: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, IsSuspendedForBreakPoint: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugApplicationThread11064, pfIsSuspended: ?*BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugApplicationThread11064, pfIsSuspended: ?*BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, IsThreadCallable: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugApplicationThread11064, pfIsCallable: ?*BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugApplicationThread11064, pfIsCallable: ?*BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, AsynchronousCallIntoThread: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugApplicationThread11064, pptc: ?*IDebugThreadCall64, dwParam1: usize, dwParam2: usize, dwParam3: usize, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugApplicationThread11064, pptc: ?*IDebugThreadCall64, dwParam1: usize, dwParam2: usize, dwParam3: usize, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugApplicationThread11064_GetActiveThreadRequestCount(self: *const T, puiThreadRequests: ?*u32) HRESULT { return @as(*const IDebugApplicationThread11064.VTable, @ptrCast(self.vtable)).GetActiveThreadRequestCount(@as(*const IDebugApplicationThread11064, @ptrCast(self)), puiThreadRequests); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugApplicationThread11064_IsSuspendedForBreakPoint(self: *const T, pfIsSuspended: ?*BOOL) HRESULT { return @as(*const IDebugApplicationThread11064.VTable, @ptrCast(self.vtable)).IsSuspendedForBreakPoint(@as(*const IDebugApplicationThread11064, @ptrCast(self)), pfIsSuspended); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugApplicationThread11064_IsThreadCallable(self: *const T, pfIsCallable: ?*BOOL) HRESULT { return @as(*const IDebugApplicationThread11064.VTable, @ptrCast(self.vtable)).IsThreadCallable(@as(*const IDebugApplicationThread11064, @ptrCast(self)), pfIsCallable); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugApplicationThread11064_AsynchronousCallIntoThread(self: *const T, pptc: ?*IDebugThreadCall64, dwParam1: usize, dwParam2: usize, dwParam3: usize) HRESULT { return @as(*const IDebugApplicationThread11064.VTable, @ptrCast(self.vtable)).AsynchronousCallIntoThread(@as(*const IDebugApplicationThread11064, @ptrCast(self)), pptc, dwParam1, dwParam2, dwParam3); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IRemoteDebugCriticalErrorEvent110_Value = Guid.initString("2f69c611-6b14-47e8-9260-4bb7c52f504b"); pub const IID_IRemoteDebugCriticalErrorEvent110 = &IID_IRemoteDebugCriticalErrorEvent110_Value; pub const IRemoteDebugCriticalErrorEvent110 = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, GetErrorInfo: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IRemoteDebugCriticalErrorEvent110, pbstrSource: ?*?BSTR, pMessageId: ?*i32, pbstrMessage: ?*?BSTR, ppLocation: ?*?*IDebugDocumentContext, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IRemoteDebugCriticalErrorEvent110, pbstrSource: ?*?BSTR, pMessageId: ?*i32, pbstrMessage: ?*?BSTR, ppLocation: ?*?*IDebugDocumentContext, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRemoteDebugCriticalErrorEvent110_GetErrorInfo(self: *const T, pbstrSource: ?*?BSTR, pMessageId: ?*i32, pbstrMessage: ?*?BSTR, ppLocation: ?*?*IDebugDocumentContext) HRESULT { return @as(*const IRemoteDebugCriticalErrorEvent110.VTable, @ptrCast(self.vtable)).GetErrorInfo(@as(*const IRemoteDebugCriticalErrorEvent110, @ptrCast(self)), pbstrSource, pMessageId, pbstrMessage, ppLocation); } }; } pub usingnamespace MethodMixin(@This()); }; pub const SCRIPT_INVOCATION_CONTEXT_TYPE = enum(i32) { Event = 0, SetTimeout = 1, SetInterval = 2, SetImmediate = 3, RequestAnimationFrame = 4, ToString = 5, MutationObserverCheckpoint = 6, WWAExecUnsafeLocalFunction = 7, WWAExecAtPriority = 8, }; pub const SICT_Event = SCRIPT_INVOCATION_CONTEXT_TYPE.Event; pub const SICT_SetTimeout = SCRIPT_INVOCATION_CONTEXT_TYPE.SetTimeout; pub const SICT_SetInterval = SCRIPT_INVOCATION_CONTEXT_TYPE.SetInterval; pub const SICT_SetImmediate = SCRIPT_INVOCATION_CONTEXT_TYPE.SetImmediate; pub const SICT_RequestAnimationFrame = SCRIPT_INVOCATION_CONTEXT_TYPE.RequestAnimationFrame; pub const SICT_ToString = SCRIPT_INVOCATION_CONTEXT_TYPE.ToString; pub const SICT_MutationObserverCheckpoint = SCRIPT_INVOCATION_CONTEXT_TYPE.MutationObserverCheckpoint; pub const SICT_WWAExecUnsafeLocalFunction = SCRIPT_INVOCATION_CONTEXT_TYPE.WWAExecUnsafeLocalFunction; pub const SICT_WWAExecAtPriority = SCRIPT_INVOCATION_CONTEXT_TYPE.WWAExecAtPriority; const IID_IScriptInvocationContext_Value = Guid.initString("5d7741b7-af7e-4a2a-85e5-c77f4d0659fb"); pub const IID_IScriptInvocationContext = &IID_IScriptInvocationContext_Value; pub const IScriptInvocationContext = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, GetContextType: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IScriptInvocationContext, pInvocationContextType: ?*SCRIPT_INVOCATION_CONTEXT_TYPE, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IScriptInvocationContext, pInvocationContextType: ?*SCRIPT_INVOCATION_CONTEXT_TYPE, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetContextDescription: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IScriptInvocationContext, pDescription: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IScriptInvocationContext, pDescription: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetContextObject: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IScriptInvocationContext, ppContextObject: ?*?*IUnknown, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IScriptInvocationContext, ppContextObject: ?*?*IUnknown, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IScriptInvocationContext_GetContextType(self: *const T, pInvocationContextType: ?*SCRIPT_INVOCATION_CONTEXT_TYPE) HRESULT { return @as(*const IScriptInvocationContext.VTable, @ptrCast(self.vtable)).GetContextType(@as(*const IScriptInvocationContext, @ptrCast(self)), pInvocationContextType); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IScriptInvocationContext_GetContextDescription(self: *const T, pDescription: ?*?BSTR) HRESULT { return @as(*const IScriptInvocationContext.VTable, @ptrCast(self.vtable)).GetContextDescription(@as(*const IScriptInvocationContext, @ptrCast(self)), pDescription); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IScriptInvocationContext_GetContextObject(self: *const T, ppContextObject: ?*?*IUnknown) HRESULT { return @as(*const IScriptInvocationContext.VTable, @ptrCast(self.vtable)).GetContextObject(@as(*const IScriptInvocationContext, @ptrCast(self)), ppContextObject); } }; } pub usingnamespace MethodMixin(@This()); }; pub const DEBUG_STACKFRAME_TYPE = enum(i32) { SCRIPT_FRAME = 0, INTERNAL_FRAME = 1, INVOCATION_FRAME = 2, }; pub const DST_SCRIPT_FRAME = DEBUG_STACKFRAME_TYPE.SCRIPT_FRAME; pub const DST_INTERNAL_FRAME = DEBUG_STACKFRAME_TYPE.INTERNAL_FRAME; pub const DST_INVOCATION_FRAME = DEBUG_STACKFRAME_TYPE.INVOCATION_FRAME; const IID_IDebugStackFrame110_Value = Guid.initString("4b509611-b6ea-4b24-adcb-d0ccfd1a7e33"); pub const IID_IDebugStackFrame110 = &IID_IDebugStackFrame110_Value; pub const IDebugStackFrame110 = extern struct { pub const VTable = extern struct { base: IDebugStackFrame.VTable, GetStackFrameType: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugStackFrame110, pStackFrameKind: ?*DEBUG_STACKFRAME_TYPE, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugStackFrame110, pStackFrameKind: ?*DEBUG_STACKFRAME_TYPE, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetScriptInvocationContext: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDebugStackFrame110, ppInvocationContext: ?*?*IScriptInvocationContext, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDebugStackFrame110, ppInvocationContext: ?*?*IScriptInvocationContext, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IDebugStackFrame.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugStackFrame110_GetStackFrameType(self: *const T, pStackFrameKind: ?*DEBUG_STACKFRAME_TYPE) HRESULT { return @as(*const IDebugStackFrame110.VTable, @ptrCast(self.vtable)).GetStackFrameType(@as(*const IDebugStackFrame110, @ptrCast(self)), pStackFrameKind); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDebugStackFrame110_GetScriptInvocationContext(self: *const T, ppInvocationContext: ?*?*IScriptInvocationContext) HRESULT { return @as(*const IDebugStackFrame110.VTable, @ptrCast(self.vtable)).GetScriptInvocationContext(@as(*const IDebugStackFrame110, @ptrCast(self)), ppInvocationContext); } }; } pub usingnamespace MethodMixin(@This()); }; pub const DEBUG_EVENT_INFO_TYPE = enum(i32) { GENERAL = 0, ASMJS_IN_DEBUGGING = 1, ASMJS_SUCCEEDED = 2, ASMJS_FAILED = 3, }; pub const DEIT_GENERAL = DEBUG_EVENT_INFO_TYPE.GENERAL; pub const DEIT_ASMJS_IN_DEBUGGING = DEBUG_EVENT_INFO_TYPE.ASMJS_IN_DEBUGGING; pub const DEIT_ASMJS_SUCCEEDED = DEBUG_EVENT_INFO_TYPE.ASMJS_SUCCEEDED; pub const DEIT_ASMJS_FAILED = DEBUG_EVENT_INFO_TYPE.ASMJS_FAILED; const IID_IRemoteDebugInfoEvent110_Value = Guid.initString("9ff56bb6-eb89-4c0f-8823-cc2a4c0b7f26"); pub const IID_IRemoteDebugInfoEvent110 = &IID_IRemoteDebugInfoEvent110_Value; pub const IRemoteDebugInfoEvent110 = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, GetEventInfo: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IRemoteDebugInfoEvent110, pMessageType: ?*DEBUG_EVENT_INFO_TYPE, pbstrMessage: ?*?BSTR, pbstrUrl: ?*?BSTR, ppLocation: ?*?*IDebugDocumentContext, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IRemoteDebugInfoEvent110, pMessageType: ?*DEBUG_EVENT_INFO_TYPE, pbstrMessage: ?*?BSTR, pbstrUrl: ?*?BSTR, ppLocation: ?*?*IDebugDocumentContext, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRemoteDebugInfoEvent110_GetEventInfo(self: *const T, pMessageType: ?*DEBUG_EVENT_INFO_TYPE, pbstrMessage: ?*?BSTR, pbstrUrl: ?*?BSTR, ppLocation: ?*?*IDebugDocumentContext) HRESULT { return @as(*const IRemoteDebugInfoEvent110.VTable, @ptrCast(self.vtable)).GetEventInfo(@as(*const IRemoteDebugInfoEvent110, @ptrCast(self)), pMessageType, pbstrMessage, pbstrUrl, ppLocation); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IJsDebug_Value = Guid.initString("be0e89da-2ac5-4c04-ac5e-59956aae3613"); pub const IID_IJsDebug = &IID_IJsDebug_Value; pub const IJsDebug = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, OpenVirtualProcess: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IJsDebug, processId: u32, runtimeJsBaseAddress: u64, pDataTarget: ?*IJsDebugDataTarget, ppProcess: ?*?*IJsDebugProcess, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IJsDebug, processId: u32, runtimeJsBaseAddress: u64, pDataTarget: ?*IJsDebugDataTarget, ppProcess: ?*?*IJsDebugProcess, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IJsDebug_OpenVirtualProcess(self: *const T, processId: u32, runtimeJsBaseAddress: u64, pDataTarget: ?*IJsDebugDataTarget, ppProcess: ?*?*IJsDebugProcess) HRESULT { return @as(*const IJsDebug.VTable, @ptrCast(self.vtable)).OpenVirtualProcess(@as(*const IJsDebug, @ptrCast(self)), processId, runtimeJsBaseAddress, pDataTarget, ppProcess); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IJsDebugProcess_Value = Guid.initString("3d587168-6a2d-4041-bd3b-0de674502862"); pub const IID_IJsDebugProcess = &IID_IJsDebugProcess_Value; pub const IJsDebugProcess = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, CreateStackWalker: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IJsDebugProcess, threadId: u32, ppStackWalker: ?*?*IJsDebugStackWalker, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IJsDebugProcess, threadId: u32, ppStackWalker: ?*?*IJsDebugStackWalker, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, CreateBreakPoint: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IJsDebugProcess, documentId: u64, characterOffset: u32, characterCount: u32, isEnabled: BOOL, ppDebugBreakPoint: ?*?*IJsDebugBreakPoint, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IJsDebugProcess, documentId: u64, characterOffset: u32, characterCount: u32, isEnabled: BOOL, ppDebugBreakPoint: ?*?*IJsDebugBreakPoint, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, PerformAsyncBreak: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IJsDebugProcess, threadId: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IJsDebugProcess, threadId: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetExternalStepAddress: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IJsDebugProcess, pCodeAddress: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IJsDebugProcess, pCodeAddress: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IJsDebugProcess_CreateStackWalker(self: *const T, threadId: u32, ppStackWalker: ?*?*IJsDebugStackWalker) HRESULT { return @as(*const IJsDebugProcess.VTable, @ptrCast(self.vtable)).CreateStackWalker(@as(*const IJsDebugProcess, @ptrCast(self)), threadId, ppStackWalker); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IJsDebugProcess_CreateBreakPoint(self: *const T, documentId: u64, characterOffset: u32, characterCount: u32, isEnabled: BOOL, ppDebugBreakPoint: ?*?*IJsDebugBreakPoint) HRESULT { return @as(*const IJsDebugProcess.VTable, @ptrCast(self.vtable)).CreateBreakPoint(@as(*const IJsDebugProcess, @ptrCast(self)), documentId, characterOffset, characterCount, isEnabled, ppDebugBreakPoint); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IJsDebugProcess_PerformAsyncBreak(self: *const T, threadId: u32) HRESULT { return @as(*const IJsDebugProcess.VTable, @ptrCast(self.vtable)).PerformAsyncBreak(@as(*const IJsDebugProcess, @ptrCast(self)), threadId); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IJsDebugProcess_GetExternalStepAddress(self: *const T, pCodeAddress: ?*u64) HRESULT { return @as(*const IJsDebugProcess.VTable, @ptrCast(self.vtable)).GetExternalStepAddress(@as(*const IJsDebugProcess, @ptrCast(self)), pCodeAddress); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IJsDebugStackWalker_Value = Guid.initString("db24b094-73c4-456c-a4ec-e90ea00bdfe3"); pub const IID_IJsDebugStackWalker = &IID_IJsDebugStackWalker_Value; pub const IJsDebugStackWalker = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, GetNext: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IJsDebugStackWalker, ppFrame: ?*?*IJsDebugFrame, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IJsDebugStackWalker, ppFrame: ?*?*IJsDebugFrame, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IJsDebugStackWalker_GetNext(self: *const T, ppFrame: ?*?*IJsDebugFrame) HRESULT { return @as(*const IJsDebugStackWalker.VTable, @ptrCast(self.vtable)).GetNext(@as(*const IJsDebugStackWalker, @ptrCast(self)), ppFrame); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IJsDebugFrame_Value = Guid.initString("c9196637-ab9d-44b2-bad2-13b95b3f390e"); pub const IID_IJsDebugFrame = &IID_IJsDebugFrame_Value; pub const IJsDebugFrame = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, GetStackRange: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IJsDebugFrame, pStart: ?*u64, pEnd: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IJsDebugFrame, pStart: ?*u64, pEnd: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetName: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IJsDebugFrame, pName: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IJsDebugFrame, pName: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetDocumentPositionWithId: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IJsDebugFrame, pDocumentId: ?*u64, pCharacterOffset: ?*u32, pStatementCharCount: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IJsDebugFrame, pDocumentId: ?*u64, pCharacterOffset: ?*u32, pStatementCharCount: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetDocumentPositionWithName: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IJsDebugFrame, pDocumentName: ?*?BSTR, pLine: ?*u32, pColumn: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IJsDebugFrame, pDocumentName: ?*?BSTR, pLine: ?*u32, pColumn: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetDebugProperty: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IJsDebugFrame, ppDebugProperty: ?*?*IJsDebugProperty, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IJsDebugFrame, ppDebugProperty: ?*?*IJsDebugProperty, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetReturnAddress: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IJsDebugFrame, pReturnAddress: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IJsDebugFrame, pReturnAddress: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Evaluate: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IJsDebugFrame, pExpressionText: ?[*:0]const u16, ppDebugProperty: ?*?*IJsDebugProperty, pError: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IJsDebugFrame, pExpressionText: ?[*:0]const u16, ppDebugProperty: ?*?*IJsDebugProperty, pError: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IJsDebugFrame_GetStackRange(self: *const T, pStart: ?*u64, pEnd: ?*u64) HRESULT { return @as(*const IJsDebugFrame.VTable, @ptrCast(self.vtable)).GetStackRange(@as(*const IJsDebugFrame, @ptrCast(self)), pStart, pEnd); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IJsDebugFrame_GetName(self: *const T, pName: ?*?BSTR) HRESULT { return @as(*const IJsDebugFrame.VTable, @ptrCast(self.vtable)).GetName(@as(*const IJsDebugFrame, @ptrCast(self)), pName); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IJsDebugFrame_GetDocumentPositionWithId(self: *const T, pDocumentId: ?*u64, pCharacterOffset: ?*u32, pStatementCharCount: ?*u32) HRESULT { return @as(*const IJsDebugFrame.VTable, @ptrCast(self.vtable)).GetDocumentPositionWithId(@as(*const IJsDebugFrame, @ptrCast(self)), pDocumentId, pCharacterOffset, pStatementCharCount); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IJsDebugFrame_GetDocumentPositionWithName(self: *const T, pDocumentName: ?*?BSTR, pLine: ?*u32, pColumn: ?*u32) HRESULT { return @as(*const IJsDebugFrame.VTable, @ptrCast(self.vtable)).GetDocumentPositionWithName(@as(*const IJsDebugFrame, @ptrCast(self)), pDocumentName, pLine, pColumn); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IJsDebugFrame_GetDebugProperty(self: *const T, ppDebugProperty: ?*?*IJsDebugProperty) HRESULT { return @as(*const IJsDebugFrame.VTable, @ptrCast(self.vtable)).GetDebugProperty(@as(*const IJsDebugFrame, @ptrCast(self)), ppDebugProperty); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IJsDebugFrame_GetReturnAddress(self: *const T, pReturnAddress: ?*u64) HRESULT { return @as(*const IJsDebugFrame.VTable, @ptrCast(self.vtable)).GetReturnAddress(@as(*const IJsDebugFrame, @ptrCast(self)), pReturnAddress); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IJsDebugFrame_Evaluate(self: *const T, pExpressionText: ?[*:0]const u16, ppDebugProperty: ?*?*IJsDebugProperty, pError: ?*?BSTR) HRESULT { return @as(*const IJsDebugFrame.VTable, @ptrCast(self.vtable)).Evaluate(@as(*const IJsDebugFrame, @ptrCast(self)), pExpressionText, ppDebugProperty, pError); } }; } pub usingnamespace MethodMixin(@This()); }; pub const JS_PROPERTY_MEMBERS = enum(i32) { LL = 0, RGUMENTS = 1, }; pub const JS_PROPERTY_MEMBERS_ALL = JS_PROPERTY_MEMBERS.LL; pub const JS_PROPERTY_MEMBERS_ARGUMENTS = JS_PROPERTY_MEMBERS.RGUMENTS; pub const JS_PROPERTY_ATTRIBUTES = enum(i32) { ATTRIBUTE_NONE = 0, HAS_CHILDREN = 1, FAKE = 2, METHOD = 4, READONLY = 8, NATIVE_WINRT_POINTER = 16, FRAME_INTRYBLOCK = 32, FRAME_INCATCHBLOCK = 64, FRAME_INFINALLYBLOCK = 128, }; pub const JS_PROPERTY_ATTRIBUTE_NONE = JS_PROPERTY_ATTRIBUTES.ATTRIBUTE_NONE; pub const JS_PROPERTY_HAS_CHILDREN = JS_PROPERTY_ATTRIBUTES.HAS_CHILDREN; pub const JS_PROPERTY_FAKE = JS_PROPERTY_ATTRIBUTES.FAKE; pub const JS_PROPERTY_METHOD = JS_PROPERTY_ATTRIBUTES.METHOD; pub const JS_PROPERTY_READONLY = JS_PROPERTY_ATTRIBUTES.READONLY; pub const JS_PROPERTY_NATIVE_WINRT_POINTER = JS_PROPERTY_ATTRIBUTES.NATIVE_WINRT_POINTER; pub const JS_PROPERTY_FRAME_INTRYBLOCK = JS_PROPERTY_ATTRIBUTES.FRAME_INTRYBLOCK; pub const JS_PROPERTY_FRAME_INCATCHBLOCK = JS_PROPERTY_ATTRIBUTES.FRAME_INCATCHBLOCK; pub const JS_PROPERTY_FRAME_INFINALLYBLOCK = JS_PROPERTY_ATTRIBUTES.FRAME_INFINALLYBLOCK; pub const JsDebugPropertyInfo = extern struct { name: ?BSTR, type: ?BSTR, value: ?BSTR, fullName: ?BSTR, attr: JS_PROPERTY_ATTRIBUTES, }; const IID_IJsDebugProperty_Value = Guid.initString("f8ffcf2b-3aa4-4320-85c3-52a312ba9633"); pub const IID_IJsDebugProperty = &IID_IJsDebugProperty_Value; pub const IJsDebugProperty = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, GetPropertyInfo: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IJsDebugProperty, nRadix: u32, pPropertyInfo: ?*JsDebugPropertyInfo, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IJsDebugProperty, nRadix: u32, pPropertyInfo: ?*JsDebugPropertyInfo, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetMembers: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IJsDebugProperty, members: JS_PROPERTY_MEMBERS, ppEnum: ?*?*IJsEnumDebugProperty, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IJsDebugProperty, members: JS_PROPERTY_MEMBERS, ppEnum: ?*?*IJsEnumDebugProperty, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IJsDebugProperty_GetPropertyInfo(self: *const T, nRadix: u32, pPropertyInfo: ?*JsDebugPropertyInfo) HRESULT { return @as(*const IJsDebugProperty.VTable, @ptrCast(self.vtable)).GetPropertyInfo(@as(*const IJsDebugProperty, @ptrCast(self)), nRadix, pPropertyInfo); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IJsDebugProperty_GetMembers(self: *const T, members: JS_PROPERTY_MEMBERS, ppEnum: ?*?*IJsEnumDebugProperty) HRESULT { return @as(*const IJsDebugProperty.VTable, @ptrCast(self.vtable)).GetMembers(@as(*const IJsDebugProperty, @ptrCast(self)), members, ppEnum); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IJsEnumDebugProperty_Value = Guid.initString("4092432f-2f0f-4fe1-b638-5b74a52cdcbe"); pub const IID_IJsEnumDebugProperty = &IID_IJsEnumDebugProperty_Value; pub const IJsEnumDebugProperty = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, Next: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IJsEnumDebugProperty, count: u32, ppDebugProperty: [*]?*IJsDebugProperty, pActualCount: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IJsEnumDebugProperty, count: u32, ppDebugProperty: [*]?*IJsDebugProperty, pActualCount: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetCount: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IJsEnumDebugProperty, pCount: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IJsEnumDebugProperty, pCount: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IJsEnumDebugProperty_Next(self: *const T, count: u32, ppDebugProperty: [*]?*IJsDebugProperty, pActualCount: ?*u32) HRESULT { return @as(*const IJsEnumDebugProperty.VTable, @ptrCast(self.vtable)).Next(@as(*const IJsEnumDebugProperty, @ptrCast(self)), count, ppDebugProperty, pActualCount); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IJsEnumDebugProperty_GetCount(self: *const T, pCount: ?*u32) HRESULT { return @as(*const IJsEnumDebugProperty.VTable, @ptrCast(self.vtable)).GetCount(@as(*const IJsEnumDebugProperty, @ptrCast(self)), pCount); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IJsDebugBreakPoint_Value = Guid.initString("df6773e3-ed8d-488b-8a3e-5812577d1542"); pub const IID_IJsDebugBreakPoint = &IID_IJsDebugBreakPoint_Value; pub const IJsDebugBreakPoint = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, IsEnabled: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IJsDebugBreakPoint, pIsEnabled: ?*BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IJsDebugBreakPoint, pIsEnabled: ?*BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Enable: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IJsDebugBreakPoint, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IJsDebugBreakPoint, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Disable: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IJsDebugBreakPoint, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IJsDebugBreakPoint, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Delete: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IJsDebugBreakPoint, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IJsDebugBreakPoint, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetDocumentPosition: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IJsDebugBreakPoint, pDocumentId: ?*u64, pCharacterOffset: ?*u32, pStatementCharCount: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IJsDebugBreakPoint, pDocumentId: ?*u64, pCharacterOffset: ?*u32, pStatementCharCount: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IJsDebugBreakPoint_IsEnabled(self: *const T, pIsEnabled: ?*BOOL) HRESULT { return @as(*const IJsDebugBreakPoint.VTable, @ptrCast(self.vtable)).IsEnabled(@as(*const IJsDebugBreakPoint, @ptrCast(self)), pIsEnabled); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IJsDebugBreakPoint_Enable(self: *const T) HRESULT { return @as(*const IJsDebugBreakPoint.VTable, @ptrCast(self.vtable)).Enable(@as(*const IJsDebugBreakPoint, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IJsDebugBreakPoint_Disable(self: *const T) HRESULT { return @as(*const IJsDebugBreakPoint.VTable, @ptrCast(self.vtable)).Disable(@as(*const IJsDebugBreakPoint, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IJsDebugBreakPoint_Delete(self: *const T) HRESULT { return @as(*const IJsDebugBreakPoint.VTable, @ptrCast(self.vtable)).Delete(@as(*const IJsDebugBreakPoint, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IJsDebugBreakPoint_GetDocumentPosition(self: *const T, pDocumentId: ?*u64, pCharacterOffset: ?*u32, pStatementCharCount: ?*u32) HRESULT { return @as(*const IJsDebugBreakPoint.VTable, @ptrCast(self.vtable)).GetDocumentPosition(@as(*const IJsDebugBreakPoint, @ptrCast(self)), pDocumentId, pCharacterOffset, pStatementCharCount); } }; } pub usingnamespace MethodMixin(@This()); }; pub const __MIDL___MIDL_itf_jscript9diag_0000_0007_0001 = extern struct { InstructionOffset: u64, ReturnOffset: u64, FrameOffset: u64, StackOffset: u64, }; const IID_IEnumJsStackFrames_Value = Guid.initString("5e7da34b-fb51-4791-abe7-cb5bdf419755"); pub const IID_IEnumJsStackFrames = &IID_IEnumJsStackFrames_Value; pub const IEnumJsStackFrames = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, Next: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IEnumJsStackFrames, cFrameCount: u32, pFrames: [*]__MIDL___MIDL_itf_jscript9diag_0000_0007_0001, pcFetched: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IEnumJsStackFrames, cFrameCount: u32, pFrames: [*]__MIDL___MIDL_itf_jscript9diag_0000_0007_0001, pcFetched: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Reset: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IEnumJsStackFrames, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IEnumJsStackFrames, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IEnumJsStackFrames_Next(self: *const T, cFrameCount: u32, pFrames: [*]__MIDL___MIDL_itf_jscript9diag_0000_0007_0001, pcFetched: ?*u32) HRESULT { return @as(*const IEnumJsStackFrames.VTable, @ptrCast(self.vtable)).Next(@as(*const IEnumJsStackFrames, @ptrCast(self)), cFrameCount, pFrames, pcFetched); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IEnumJsStackFrames_Reset(self: *const T) HRESULT { return @as(*const IEnumJsStackFrames.VTable, @ptrCast(self.vtable)).Reset(@as(*const IEnumJsStackFrames, @ptrCast(self))); } }; } pub usingnamespace MethodMixin(@This()); }; pub const JsDebugReadMemoryFlags = enum(i32) { None = 0, d = 1, }; pub const JsDebugAllowPartialRead = JsDebugReadMemoryFlags.d; const IID_IJsDebugDataTarget_Value = Guid.initString("53b28977-53a1-48e5-9000-5d0dfa893931"); pub const IID_IJsDebugDataTarget = &IID_IJsDebugDataTarget_Value; pub const IJsDebugDataTarget = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, ReadMemory: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IJsDebugDataTarget, address: u64, flags: JsDebugReadMemoryFlags, pBuffer: [*:0]u8, size: u32, pBytesRead: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IJsDebugDataTarget, address: u64, flags: JsDebugReadMemoryFlags, pBuffer: [*:0]u8, size: u32, pBytesRead: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, WriteMemory: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IJsDebugDataTarget, address: u64, pMemory: [*:0]u8, size: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IJsDebugDataTarget, address: u64, pMemory: [*:0]u8, size: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, AllocateVirtualMemory: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IJsDebugDataTarget, address: u64, size: u32, allocationType: u32, pageProtection: u32, pAllocatedAddress: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IJsDebugDataTarget, address: u64, size: u32, allocationType: u32, pageProtection: u32, pAllocatedAddress: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, FreeVirtualMemory: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IJsDebugDataTarget, address: u64, size: u32, freeType: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IJsDebugDataTarget, address: u64, size: u32, freeType: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetTlsValue: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IJsDebugDataTarget, threadId: u32, tlsIndex: u32, pValue: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IJsDebugDataTarget, threadId: u32, tlsIndex: u32, pValue: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, ReadBSTR: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IJsDebugDataTarget, address: u64, pString: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IJsDebugDataTarget, address: u64, pString: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, ReadNullTerminatedString: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IJsDebugDataTarget, address: u64, characterSize: u16, maxCharacters: u32, pString: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IJsDebugDataTarget, address: u64, characterSize: u16, maxCharacters: u32, pString: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, CreateStackFrameEnumerator: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IJsDebugDataTarget, threadId: u32, ppEnumerator: ?*?*IEnumJsStackFrames, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IJsDebugDataTarget, threadId: u32, ppEnumerator: ?*?*IEnumJsStackFrames, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetThreadContext: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IJsDebugDataTarget, threadId: u32, contextFlags: u32, contextSize: u32, pContext: [*]u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IJsDebugDataTarget, threadId: u32, contextFlags: u32, contextSize: u32, pContext: [*]u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IJsDebugDataTarget_ReadMemory(self: *const T, address: u64, flags: JsDebugReadMemoryFlags, pBuffer: [*:0]u8, size: u32, pBytesRead: ?*u32) HRESULT { return @as(*const IJsDebugDataTarget.VTable, @ptrCast(self.vtable)).ReadMemory(@as(*const IJsDebugDataTarget, @ptrCast(self)), address, flags, pBuffer, size, pBytesRead); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IJsDebugDataTarget_WriteMemory(self: *const T, address: u64, pMemory: [*:0]u8, size: u32) HRESULT { return @as(*const IJsDebugDataTarget.VTable, @ptrCast(self.vtable)).WriteMemory(@as(*const IJsDebugDataTarget, @ptrCast(self)), address, pMemory, size); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IJsDebugDataTarget_AllocateVirtualMemory(self: *const T, address: u64, size: u32, allocationType: u32, pageProtection: u32, pAllocatedAddress: ?*u64) HRESULT { return @as(*const IJsDebugDataTarget.VTable, @ptrCast(self.vtable)).AllocateVirtualMemory(@as(*const IJsDebugDataTarget, @ptrCast(self)), address, size, allocationType, pageProtection, pAllocatedAddress); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IJsDebugDataTarget_FreeVirtualMemory(self: *const T, address: u64, size: u32, freeType: u32) HRESULT { return @as(*const IJsDebugDataTarget.VTable, @ptrCast(self.vtable)).FreeVirtualMemory(@as(*const IJsDebugDataTarget, @ptrCast(self)), address, size, freeType); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IJsDebugDataTarget_GetTlsValue(self: *const T, threadId: u32, tlsIndex: u32, pValue: ?*u64) HRESULT { return @as(*const IJsDebugDataTarget.VTable, @ptrCast(self.vtable)).GetTlsValue(@as(*const IJsDebugDataTarget, @ptrCast(self)), threadId, tlsIndex, pValue); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IJsDebugDataTarget_ReadBSTR(self: *const T, address: u64, pString: ?*?BSTR) HRESULT { return @as(*const IJsDebugDataTarget.VTable, @ptrCast(self.vtable)).ReadBSTR(@as(*const IJsDebugDataTarget, @ptrCast(self)), address, pString); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IJsDebugDataTarget_ReadNullTerminatedString(self: *const T, address: u64, characterSize: u16, maxCharacters: u32, pString: ?*?BSTR) HRESULT { return @as(*const IJsDebugDataTarget.VTable, @ptrCast(self.vtable)).ReadNullTerminatedString(@as(*const IJsDebugDataTarget, @ptrCast(self)), address, characterSize, maxCharacters, pString); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IJsDebugDataTarget_CreateStackFrameEnumerator(self: *const T, threadId: u32, ppEnumerator: ?*?*IEnumJsStackFrames) HRESULT { return @as(*const IJsDebugDataTarget.VTable, @ptrCast(self.vtable)).CreateStackFrameEnumerator(@as(*const IJsDebugDataTarget, @ptrCast(self)), threadId, ppEnumerator); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IJsDebugDataTarget_GetThreadContext(self: *const T, threadId: u32, contextFlags: u32, contextSize: u32, pContext: [*]u8) HRESULT { return @as(*const IJsDebugDataTarget.VTable, @ptrCast(self.vtable)).GetThreadContext(@as(*const IJsDebugDataTarget, @ptrCast(self)), threadId, contextFlags, contextSize, pContext); } }; } pub usingnamespace MethodMixin(@This()); }; pub const _DUMP_TYPES = enum(i32) { INVALID = -1, UNKNOWN = 0, FULL = 1, SUMMARY = 2, HEADER = 3, TRIAGE = 4, BITMAP_FULL = 5, BITMAP_KERNEL = 6, AUTOMATIC = 7, }; pub const DUMP_TYPE_INVALID = _DUMP_TYPES.INVALID; pub const DUMP_TYPE_UNKNOWN = _DUMP_TYPES.UNKNOWN; pub const DUMP_TYPE_FULL = _DUMP_TYPES.FULL; pub const DUMP_TYPE_SUMMARY = _DUMP_TYPES.SUMMARY; pub const DUMP_TYPE_HEADER = _DUMP_TYPES.HEADER; pub const DUMP_TYPE_TRIAGE = _DUMP_TYPES.TRIAGE; pub const DUMP_TYPE_BITMAP_FULL = _DUMP_TYPES.BITMAP_FULL; pub const DUMP_TYPE_BITMAP_KERNEL = _DUMP_TYPES.BITMAP_KERNEL; pub const DUMP_TYPE_AUTOMATIC = _DUMP_TYPES.AUTOMATIC; pub const PHYSICAL_MEMORY_RUN32 = extern struct { BasePage: u32, PageCount: u32, }; pub const PHYSICAL_MEMORY_DESCRIPTOR32 = extern struct { NumberOfRuns: u32, NumberOfPages: u32, Run: [1]PHYSICAL_MEMORY_RUN32, }; pub const PHYSICAL_MEMORY_RUN64 = extern struct { BasePage: u64, PageCount: u64, }; pub const PHYSICAL_MEMORY_DESCRIPTOR64 = extern struct { NumberOfRuns: u32, NumberOfPages: u64, Run: [1]PHYSICAL_MEMORY_RUN64, }; pub const DUMP_FILE_ATTRIBUTES = extern union { Anonymous: extern struct { _bitfield: u32, }, Attributes: u32, }; pub const DUMP_HEADER32 = extern struct { Signature: u32, ValidDump: u32, MajorVersion: u32, MinorVersion: u32, DirectoryTableBase: u32, PfnDataBase: u32, PsLoadedModuleList: u32, PsActiveProcessHead: u32, MachineImageType: u32, NumberProcessors: u32, BugCheckCode: u32, BugCheckParameter1: u32, BugCheckParameter2: u32, BugCheckParameter3: u32, BugCheckParameter4: u32, VersionUser: [32]CHAR, PaeEnabled: u8, KdSecondaryVersion: u8, Spare3: [2]u8, KdDebuggerDataBlock: u32, Anonymous: extern union { PhysicalMemoryBlock: PHYSICAL_MEMORY_DESCRIPTOR32, PhysicalMemoryBlockBuffer: [700]u8, }, ContextRecord: [1200]u8, Exception: EXCEPTION_RECORD32, Comment: [128]CHAR, Attributes: DUMP_FILE_ATTRIBUTES, BootId: u32, _reserved0: [1760]u8, DumpType: u32, MiniDumpFields: u32, SecondaryDataState: u32, ProductType: u32, SuiteMask: u32, WriterStatus: u32, RequiredDumpSpace: LARGE_INTEGER, _reserved2: [16]u8, SystemUpTime: LARGE_INTEGER, SystemTime: LARGE_INTEGER, _reserved3: [56]u8, }; pub const DUMP_HEADER64 = extern struct { Signature: u32, ValidDump: u32, MajorVersion: u32, MinorVersion: u32, DirectoryTableBase: u64, PfnDataBase: u64, PsLoadedModuleList: u64, PsActiveProcessHead: u64, MachineImageType: u32, NumberProcessors: u32, BugCheckCode: u32, BugCheckParameter1: u64, BugCheckParameter2: u64, BugCheckParameter3: u64, BugCheckParameter4: u64, VersionUser: [32]CHAR, KdDebuggerDataBlock: u64, Anonymous: extern union { PhysicalMemoryBlock: PHYSICAL_MEMORY_DESCRIPTOR64, PhysicalMemoryBlockBuffer: [700]u8, }, ContextRecord: [3000]u8, Exception: EXCEPTION_RECORD64, DumpType: u32, RequiredDumpSpace: LARGE_INTEGER, SystemTime: LARGE_INTEGER, Comment: [128]CHAR, SystemUpTime: LARGE_INTEGER, MiniDumpFields: u32, SecondaryDataState: u32, ProductType: u32, SuiteMask: u32, WriterStatus: u32, Unused1: u8, KdSecondaryVersion: u8, Unused: [2]u8, Attributes: DUMP_FILE_ATTRIBUTES, BootId: u32, _reserved0: [4008]u8, }; const IID_IObjectSafety_Value = Guid.initString("cb5bdc81-93c1-11cf-8f20-00805f2cd064"); pub const IID_IObjectSafety = &IID_IObjectSafety_Value; pub const IObjectSafety = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, GetInterfaceSafetyOptions: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IObjectSafety, riid: ?*const Guid, pdwSupportedOptions: ?*u32, pdwEnabledOptions: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IObjectSafety, riid: ?*const Guid, pdwSupportedOptions: ?*u32, pdwEnabledOptions: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetInterfaceSafetyOptions: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IObjectSafety, riid: ?*const Guid, dwOptionSetMask: u32, dwEnabledOptions: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IObjectSafety, riid: ?*const Guid, dwOptionSetMask: u32, dwEnabledOptions: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IObjectSafety_GetInterfaceSafetyOptions(self: *const T, riid: ?*const Guid, pdwSupportedOptions: ?*u32, pdwEnabledOptions: ?*u32) HRESULT { return @as(*const IObjectSafety.VTable, @ptrCast(self.vtable)).GetInterfaceSafetyOptions(@as(*const IObjectSafety, @ptrCast(self)), riid, pdwSupportedOptions, pdwEnabledOptions); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IObjectSafety_SetInterfaceSafetyOptions(self: *const T, riid: ?*const Guid, dwOptionSetMask: u32, dwEnabledOptions: u32) HRESULT { return @as(*const IObjectSafety.VTable, @ptrCast(self.vtable)).SetInterfaceSafetyOptions(@as(*const IObjectSafety, @ptrCast(self)), riid, dwOptionSetMask, dwEnabledOptions); } }; } pub usingnamespace MethodMixin(@This()); }; pub const WHEA_ERROR_SOURCE_TYPE = enum(i32) { MCE = 0, CMC = 1, CPE = 2, NMI = 3, PCIe = 4, Generic = 5, INIT = 6, BOOT = 7, SCIGeneric = 8, IPFMCA = 9, IPFCMC = 10, IPFCPE = 11, GenericV2 = 12, SCIGenericV2 = 13, BMC = 14, PMEM = 15, DeviceDriver = 16, Max = 17, }; pub const WheaErrSrcTypeMCE = WHEA_ERROR_SOURCE_TYPE.MCE; pub const WheaErrSrcTypeCMC = WHEA_ERROR_SOURCE_TYPE.CMC; pub const WheaErrSrcTypeCPE = WHEA_ERROR_SOURCE_TYPE.CPE; pub const WheaErrSrcTypeNMI = WHEA_ERROR_SOURCE_TYPE.NMI; pub const WheaErrSrcTypePCIe = WHEA_ERROR_SOURCE_TYPE.PCIe; pub const WheaErrSrcTypeGeneric = WHEA_ERROR_SOURCE_TYPE.Generic; pub const WheaErrSrcTypeINIT = WHEA_ERROR_SOURCE_TYPE.INIT; pub const WheaErrSrcTypeBOOT = WHEA_ERROR_SOURCE_TYPE.BOOT; pub const WheaErrSrcTypeSCIGeneric = WHEA_ERROR_SOURCE_TYPE.SCIGeneric; pub const WheaErrSrcTypeIPFMCA = WHEA_ERROR_SOURCE_TYPE.IPFMCA; pub const WheaErrSrcTypeIPFCMC = WHEA_ERROR_SOURCE_TYPE.IPFCMC; pub const WheaErrSrcTypeIPFCPE = WHEA_ERROR_SOURCE_TYPE.IPFCPE; pub const WheaErrSrcTypeGenericV2 = WHEA_ERROR_SOURCE_TYPE.GenericV2; pub const WheaErrSrcTypeSCIGenericV2 = WHEA_ERROR_SOURCE_TYPE.SCIGenericV2; pub const WheaErrSrcTypeBMC = WHEA_ERROR_SOURCE_TYPE.BMC; pub const WheaErrSrcTypePMEM = WHEA_ERROR_SOURCE_TYPE.PMEM; pub const WheaErrSrcTypeDeviceDriver = WHEA_ERROR_SOURCE_TYPE.DeviceDriver; pub const WheaErrSrcTypeMax = WHEA_ERROR_SOURCE_TYPE.Max; pub const WHEA_ERROR_SOURCE_STATE = enum(i32) { Stopped = 1, Started = 2, Removed = 3, RemovePending = 4, }; pub const WheaErrSrcStateStopped = WHEA_ERROR_SOURCE_STATE.Stopped; pub const WheaErrSrcStateStarted = WHEA_ERROR_SOURCE_STATE.Started; pub const WheaErrSrcStateRemoved = WHEA_ERROR_SOURCE_STATE.Removed; pub const WheaErrSrcStateRemovePending = WHEA_ERROR_SOURCE_STATE.RemovePending; pub const WHEA_ERROR_SOURCE_INITIALIZE_DEVICE_DRIVER = switch (@import("builtin").zig_backend) { .stage1 => fn ( Context: ?*anyopaque, ErrorSourceId: u32, ) callconv(@import("std").os.windows.WINAPI) NTSTATUS, else => *const fn ( Context: ?*anyopaque, ErrorSourceId: u32, ) callconv(@import("std").os.windows.WINAPI) NTSTATUS, }; pub const WHEA_ERROR_SOURCE_UNINITIALIZE_DEVICE_DRIVER = switch (@import("builtin").zig_backend) { .stage1 => fn ( Context: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) void, else => *const fn ( Context: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) void, }; pub const WHEA_ERROR_SOURCE_CORRECT_DEVICE_DRIVER = switch (@import("builtin").zig_backend) { .stage1 => fn ( ErrorSourceDesc: ?*anyopaque, MaximumSectionLength: ?*u32, ) callconv(@import("std").os.windows.WINAPI) NTSTATUS, else => *const fn ( ErrorSourceDesc: ?*anyopaque, MaximumSectionLength: ?*u32, ) callconv(@import("std").os.windows.WINAPI) NTSTATUS, }; pub const WHEA_ERROR_SOURCE_CONFIGURATION_DD = extern struct { Initialize: ?WHEA_ERROR_SOURCE_INITIALIZE_DEVICE_DRIVER align(1), Uninitialize: ?WHEA_ERROR_SOURCE_UNINITIALIZE_DEVICE_DRIVER align(1), Correct: ?WHEA_ERROR_SOURCE_CORRECT_DEVICE_DRIVER align(1), }; pub const WHEA_ERROR_SOURCE_CONFIGURATION_DEVICE_DRIVER_V1 = extern struct { Version: u32 align(1), SourceGuid: Guid align(1), LogTag: u16 align(1), Reserved: [6]u8 align(1), Initialize: ?WHEA_ERROR_SOURCE_INITIALIZE_DEVICE_DRIVER align(1), Uninitialize: ?WHEA_ERROR_SOURCE_UNINITIALIZE_DEVICE_DRIVER align(1), }; pub const WHEA_ERROR_SOURCE_CONFIGURATION_DEVICE_DRIVER = extern struct { Version: u32 align(1), SourceGuid: Guid align(1), LogTag: u16 align(1), Reserved: [6]u8 align(1), Initialize: ?WHEA_ERROR_SOURCE_INITIALIZE_DEVICE_DRIVER align(1), Uninitialize: ?WHEA_ERROR_SOURCE_UNINITIALIZE_DEVICE_DRIVER align(1), MaxSectionDataLength: u32 align(1), MaxSectionsPerReport: u32 align(1), CreatorId: Guid align(1), PartitionId: Guid align(1), }; pub const WHEA_DRIVER_BUFFER_SET = extern struct { Version: u32 align(1), Data: ?*u8 align(1), DataSize: u32 align(1), SectionTypeGuid: ?*Guid align(1), SectionFriendlyName: ?*u8 align(1), Flags: ?*u8 align(1), }; pub const WHEA_NOTIFICATION_FLAGS = extern union { Anonymous: extern struct { _bitfield: u16 align(1), } align(1), AsUSHORT: u16 align(1), }; pub const XPF_MC_BANK_FLAGS = extern union { Anonymous: extern struct { _bitfield: u8, }, AsUCHAR: u8, }; pub const XPF_MCE_FLAGS = extern union { Anonymous: extern struct { _bitfield: u32 align(1), } align(1), AsULONG: u32 align(1), }; pub const AER_ROOTPORT_DESCRIPTOR_FLAGS = extern union { Anonymous: extern struct { _bitfield: u16 align(1), } align(1), AsUSHORT: u16 align(1), }; pub const AER_ENDPOINT_DESCRIPTOR_FLAGS = extern union { Anonymous: extern struct { _bitfield: u16 align(1), } align(1), AsUSHORT: u16 align(1), }; pub const AER_BRIDGE_DESCRIPTOR_FLAGS = extern union { Anonymous: extern struct { _bitfield: u16 align(1), } align(1), AsUSHORT: u16 align(1), }; pub const WHEA_NOTIFICATION_DESCRIPTOR = extern struct { Type: u8, Length: u8, Flags: WHEA_NOTIFICATION_FLAGS, u: extern union { Polled: extern struct { PollInterval: u32 align(1), }, Interrupt: extern struct { PollInterval: u32 align(1), Vector: u32 align(1), SwitchToPollingThreshold: u32 align(1), SwitchToPollingWindow: u32 align(1), ErrorThreshold: u32 align(1), ErrorThresholdWindow: u32 align(1), }, LocalInterrupt: extern struct { PollInterval: u32 align(1), Vector: u32 align(1), SwitchToPollingThreshold: u32 align(1), SwitchToPollingWindow: u32 align(1), ErrorThreshold: u32 align(1), ErrorThresholdWindow: u32 align(1), }, Sci: extern struct { PollInterval: u32 align(1), Vector: u32 align(1), SwitchToPollingThreshold: u32 align(1), SwitchToPollingWindow: u32 align(1), ErrorThreshold: u32 align(1), ErrorThresholdWindow: u32 align(1), }, Nmi: extern struct { PollInterval: u32 align(1), Vector: u32 align(1), SwitchToPollingThreshold: u32 align(1), SwitchToPollingWindow: u32 align(1), ErrorThreshold: u32 align(1), ErrorThresholdWindow: u32 align(1), }, Sea: extern struct { PollInterval: u32 align(1), Vector: u32 align(1), SwitchToPollingThreshold: u32 align(1), SwitchToPollingWindow: u32 align(1), ErrorThreshold: u32 align(1), ErrorThresholdWindow: u32 align(1), }, Sei: extern struct { PollInterval: u32 align(1), Vector: u32 align(1), SwitchToPollingThreshold: u32 align(1), SwitchToPollingWindow: u32 align(1), ErrorThreshold: u32 align(1), ErrorThresholdWindow: u32 align(1), }, Gsiv: extern struct { PollInterval: u32 align(1), Vector: u32 align(1), SwitchToPollingThreshold: u32 align(1), SwitchToPollingWindow: u32 align(1), ErrorThreshold: u32 align(1), ErrorThresholdWindow: u32 align(1), }, }, }; pub const WHEA_XPF_MC_BANK_DESCRIPTOR = extern struct { BankNumber: u8 align(1), ClearOnInitialization: BOOLEAN align(1), StatusDataFormat: u8 align(1), Flags: XPF_MC_BANK_FLAGS align(1), ControlMsr: u32 align(1), StatusMsr: u32 align(1), AddressMsr: u32 align(1), MiscMsr: u32 align(1), ControlData: u64 align(1), }; pub const WHEA_XPF_MCE_DESCRIPTOR = extern struct { Type: u16 align(1), Enabled: u8 align(1), NumberOfBanks: u8 align(1), Flags: XPF_MCE_FLAGS align(1), MCG_Capability: u64 align(1), MCG_GlobalControl: u64 align(1), Banks: [32]WHEA_XPF_MC_BANK_DESCRIPTOR align(1), }; pub const WHEA_XPF_CMC_DESCRIPTOR = extern struct { Type: u16 align(1), Enabled: BOOLEAN align(1), NumberOfBanks: u8 align(1), Reserved: u32 align(1), Notify: WHEA_NOTIFICATION_DESCRIPTOR align(1), Banks: [32]WHEA_XPF_MC_BANK_DESCRIPTOR align(1), }; pub const WHEA_PCI_SLOT_NUMBER = extern struct { u: extern union { bits: extern struct { _bitfield: u32 align(1), } align(1), AsULONG: u32 align(1), }, }; pub const WHEA_XPF_NMI_DESCRIPTOR = extern struct { Type: u16 align(1), Enabled: BOOLEAN align(1), }; pub const WHEA_AER_ROOTPORT_DESCRIPTOR = extern struct { Type: u16 align(1), Enabled: BOOLEAN align(1), Reserved: u8 align(1), BusNumber: u32 align(1), Slot: WHEA_PCI_SLOT_NUMBER align(1), DeviceControl: u16 align(1), Flags: AER_ROOTPORT_DESCRIPTOR_FLAGS align(1), UncorrectableErrorMask: u32 align(1), UncorrectableErrorSeverity: u32 align(1), CorrectableErrorMask: u32 align(1), AdvancedCapsAndControl: u32 align(1), RootErrorCommand: u32 align(1), }; pub const WHEA_AER_ENDPOINT_DESCRIPTOR = extern struct { Type: u16 align(1), Enabled: BOOLEAN align(1), Reserved: u8 align(1), BusNumber: u32 align(1), Slot: WHEA_PCI_SLOT_NUMBER align(1), DeviceControl: u16 align(1), Flags: AER_ENDPOINT_DESCRIPTOR_FLAGS align(1), UncorrectableErrorMask: u32 align(1), UncorrectableErrorSeverity: u32 align(1), CorrectableErrorMask: u32 align(1), AdvancedCapsAndControl: u32 align(1), }; pub const WHEA_AER_BRIDGE_DESCRIPTOR = extern struct { Type: u16 align(1), Enabled: BOOLEAN align(1), Reserved: u8 align(1), BusNumber: u32 align(1), Slot: WHEA_PCI_SLOT_NUMBER align(1), DeviceControl: u16 align(1), Flags: AER_BRIDGE_DESCRIPTOR_FLAGS align(1), UncorrectableErrorMask: u32 align(1), UncorrectableErrorSeverity: u32 align(1), CorrectableErrorMask: u32 align(1), AdvancedCapsAndControl: u32 align(1), SecondaryUncorrectableErrorMask: u32 align(1), SecondaryUncorrectableErrorSev: u32 align(1), SecondaryCapsAndControl: u32 align(1), }; pub const WHEA_GENERIC_ERROR_DESCRIPTOR = extern struct { Type: u16 align(1), Reserved: u8 align(1), Enabled: u8 align(1), ErrStatusBlockLength: u32 align(1), RelatedErrorSourceId: u32 align(1), ErrStatusAddressSpaceID: u8 align(1), ErrStatusAddressBitWidth: u8 align(1), ErrStatusAddressBitOffset: u8 align(1), ErrStatusAddressAccessSize: u8 align(1), ErrStatusAddress: LARGE_INTEGER align(1), Notify: WHEA_NOTIFICATION_DESCRIPTOR align(1), }; pub const WHEA_GENERIC_ERROR_DESCRIPTOR_V2 = extern struct { Type: u16 align(1), Reserved: u8 align(1), Enabled: u8 align(1), ErrStatusBlockLength: u32 align(1), RelatedErrorSourceId: u32 align(1), ErrStatusAddressSpaceID: u8 align(1), ErrStatusAddressBitWidth: u8 align(1), ErrStatusAddressBitOffset: u8 align(1), ErrStatusAddressAccessSize: u8 align(1), ErrStatusAddress: LARGE_INTEGER align(1), Notify: WHEA_NOTIFICATION_DESCRIPTOR align(1), ReadAckAddressSpaceID: u8 align(1), ReadAckAddressBitWidth: u8 align(1), ReadAckAddressBitOffset: u8 align(1), ReadAckAddressAccessSize: u8 align(1), ReadAckAddress: LARGE_INTEGER align(1), ReadAckPreserveMask: u64 align(1), ReadAckWriteMask: u64 align(1), }; pub const WHEA_DEVICE_DRIVER_DESCRIPTOR = extern struct { Type: u16 align(1), Enabled: BOOLEAN align(1), Reserved: u8 align(1), SourceGuid: Guid align(1), LogTag: u16 align(1), Reserved2: u16 align(1), PacketLength: u32 align(1), PacketCount: u32 align(1), PacketBuffer: ?*u8 align(1), Config: WHEA_ERROR_SOURCE_CONFIGURATION_DD align(1), CreatorId: Guid align(1), PartitionId: Guid align(1), MaxSectionDataLength: u32 align(1), MaxSectionsPerRecord: u32 align(1), PacketStateBuffer: ?*u8 align(1), OpenHandles: i32 align(1), }; pub const WHEA_IPF_MCA_DESCRIPTOR = extern struct { Type: u16 align(1), Enabled: u8 align(1), Reserved: u8 align(1), }; pub const WHEA_IPF_CMC_DESCRIPTOR = extern struct { Type: u16 align(1), Enabled: u8 align(1), Reserved: u8 align(1), }; pub const WHEA_IPF_CPE_DESCRIPTOR = extern struct { Type: u16 align(1), Enabled: u8 align(1), Reserved: u8 align(1), }; pub const WHEA_ERROR_SOURCE_DESCRIPTOR = extern struct { Length: u32 align(1), Version: u32 align(1), Type: WHEA_ERROR_SOURCE_TYPE align(1), State: WHEA_ERROR_SOURCE_STATE align(1), MaxRawDataLength: u32 align(1), NumRecordsToPreallocate: u32 align(1), MaxSectionsPerRecord: u32 align(1), ErrorSourceId: u32 align(1), PlatformErrorSourceId: u32 align(1), Flags: u32 align(1), Info: extern union { XpfMceDescriptor: WHEA_XPF_MCE_DESCRIPTOR, XpfCmcDescriptor: WHEA_XPF_CMC_DESCRIPTOR, XpfNmiDescriptor: WHEA_XPF_NMI_DESCRIPTOR, IpfMcaDescriptor: WHEA_IPF_MCA_DESCRIPTOR, IpfCmcDescriptor: WHEA_IPF_CMC_DESCRIPTOR, IpfCpeDescriptor: WHEA_IPF_CPE_DESCRIPTOR, AerRootportDescriptor: WHEA_AER_ROOTPORT_DESCRIPTOR, AerEndpointDescriptor: WHEA_AER_ENDPOINT_DESCRIPTOR, AerBridgeDescriptor: WHEA_AER_BRIDGE_DESCRIPTOR, GenErrDescriptor: WHEA_GENERIC_ERROR_DESCRIPTOR, GenErrDescriptorV2: WHEA_GENERIC_ERROR_DESCRIPTOR_V2, DeviceDriverDescriptor: WHEA_DEVICE_DRIVER_DESCRIPTOR, } align(1), }; pub const IPMI_OS_SEL_RECORD_TYPE = enum(i32) { Whea = 0, Other = 1, WheaErrorXpfMca = 2, WheaErrorPci = 3, WheaErrorNmi = 4, WheaErrorOther = 5, Raw = 6, Driver = 7, BugcheckRecovery = 8, BugcheckData = 9, Max = 10, }; pub const IpmiOsSelRecordTypeWhea = IPMI_OS_SEL_RECORD_TYPE.Whea; pub const IpmiOsSelRecordTypeOther = IPMI_OS_SEL_RECORD_TYPE.Other; pub const IpmiOsSelRecordTypeWheaErrorXpfMca = IPMI_OS_SEL_RECORD_TYPE.WheaErrorXpfMca; pub const IpmiOsSelRecordTypeWheaErrorPci = IPMI_OS_SEL_RECORD_TYPE.WheaErrorPci; pub const IpmiOsSelRecordTypeWheaErrorNmi = IPMI_OS_SEL_RECORD_TYPE.WheaErrorNmi; pub const IpmiOsSelRecordTypeWheaErrorOther = IPMI_OS_SEL_RECORD_TYPE.WheaErrorOther; pub const IpmiOsSelRecordTypeRaw = IPMI_OS_SEL_RECORD_TYPE.Raw; pub const IpmiOsSelRecordTypeDriver = IPMI_OS_SEL_RECORD_TYPE.Driver; pub const IpmiOsSelRecordTypeBugcheckRecovery = IPMI_OS_SEL_RECORD_TYPE.BugcheckRecovery; pub const IpmiOsSelRecordTypeBugcheckData = IPMI_OS_SEL_RECORD_TYPE.BugcheckData; pub const IpmiOsSelRecordTypeMax = IPMI_OS_SEL_RECORD_TYPE.Max; pub const IPMI_OS_SEL_RECORD = extern struct { Signature: u32 align(1), Version: u32 align(1), Length: u32 align(1), RecordType: IPMI_OS_SEL_RECORD_TYPE align(1), DataLength: u32 align(1), Data: [1]u8 align(1), }; pub const CONTEXT = switch (@import("../../zig.zig").arch) { .Arm64 => extern struct { ContextFlags: u32, Cpsr: u32, Anonymous: extern union { Anonymous: extern struct { X0: u64, X1: u64, X2: u64, X3: u64, X4: u64, X5: u64, X6: u64, X7: u64, X8: u64, X9: u64, X10: u64, X11: u64, X12: u64, X13: u64, X14: u64, X15: u64, X16: u64, X17: u64, X18: u64, X19: u64, X20: u64, X21: u64, X22: u64, X23: u64, X24: u64, X25: u64, X26: u64, X27: u64, X28: u64, Fp: u64, Lr: u64, }, X: [31]u64, }, Sp: u64, Pc: u64, V: [32]ARM64_NT_NEON128, Fpcr: u32, Fpsr: u32, Bcr: [8]u32, Bvr: [8]u64, Wcr: [2]u32, Wvr: [2]u64, }, .X64 => extern struct { P1Home: u64, P2Home: u64, P3Home: u64, P4Home: u64, P5Home: u64, P6Home: u64, ContextFlags: u32, MxCsr: u32, SegCs: u16, SegDs: u16, SegEs: u16, SegFs: u16, SegGs: u16, SegSs: u16, EFlags: u32, Dr0: u64, Dr1: u64, Dr2: u64, Dr3: u64, Dr6: u64, Dr7: u64, Rax: u64, Rcx: u64, Rdx: u64, Rbx: u64, Rsp: u64, Rbp: u64, Rsi: u64, Rdi: u64, R8: u64, R9: u64, R10: u64, R11: u64, R12: u64, R13: u64, R14: u64, R15: u64, Rip: u64, Anonymous: extern union { FltSave: XSAVE_FORMAT, Anonymous: extern struct { Header: [2]M128A, Legacy: [8]M128A, Xmm0: M128A, Xmm1: M128A, Xmm2: M128A, Xmm3: M128A, Xmm4: M128A, Xmm5: M128A, Xmm6: M128A, Xmm7: M128A, Xmm8: M128A, Xmm9: M128A, Xmm10: M128A, Xmm11: M128A, Xmm12: M128A, Xmm13: M128A, Xmm14: M128A, Xmm15: M128A, }, }, VectorRegister: [26]M128A, VectorControl: u64, DebugControl: u64, LastBranchToRip: u64, LastBranchFromRip: u64, LastExceptionToRip: u64, LastExceptionFromRip: u64, }, .X86 => extern struct { ContextFlags: u32, Dr0: u32, Dr1: u32, Dr2: u32, Dr3: u32, Dr6: u32, Dr7: u32, FloatSave: FLOATING_SAVE_AREA, SegGs: u32, SegFs: u32, SegEs: u32, SegDs: u32, Edi: u32, Esi: u32, Ebx: u32, Edx: u32, Ecx: u32, Eax: u32, Ebp: u32, Eip: u32, SegCs: u32, EFlags: u32, Esp: u32, SegSs: u32, ExtendedRegisters: [512]u8, }, }; pub const DISPATCHER_CONTEXT = switch (@import("../../zig.zig").arch) { .Arm64 => extern struct { ControlPc: usize, ImageBase: usize, FunctionEntry: ?*IMAGE_ARM64_RUNTIME_FUNCTION_ENTRY, EstablisherFrame: usize, TargetPc: usize, ContextRecord: ?*CONTEXT, LanguageHandler: ?EXCEPTION_ROUTINE, HandlerData: ?*anyopaque, HistoryTable: ?*UNWIND_HISTORY_TABLE, ScopeIndex: u32, ControlPcIsUnwound: BOOLEAN, NonVolatileRegisters: ?*u8, }, .X64 => extern struct { ControlPc: u64, ImageBase: u64, FunctionEntry: ?*IMAGE_RUNTIME_FUNCTION_ENTRY, EstablisherFrame: u64, TargetIp: u64, ContextRecord: ?*CONTEXT, LanguageHandler: ?EXCEPTION_ROUTINE, HandlerData: ?*anyopaque, HistoryTable: ?*UNWIND_HISTORY_TABLE, ScopeIndex: u32, Fill0: u32, }, else => usize, // NOTE: this should be a @compileError but can't because of https://github.com/ziglang/zig/issues/9682 }; pub const PGET_RUNTIME_FUNCTION_CALLBACK = switch (@import("../../zig.zig").arch) { .Arm64 => switch (@import("builtin").zig_backend) { .stage1 => fn ( ControlPc: u64, Context: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) ?*IMAGE_ARM64_RUNTIME_FUNCTION_ENTRY, else => *const fn ( ControlPc: u64, Context: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) ?*IMAGE_ARM64_RUNTIME_FUNCTION_ENTRY, }, .X64 => switch (@import("builtin").zig_backend) { .stage1 => fn ( ControlPc: u64, Context: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) ?*IMAGE_RUNTIME_FUNCTION_ENTRY, else => *const fn ( ControlPc: u64, Context: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) ?*IMAGE_RUNTIME_FUNCTION_ENTRY, }, else => usize, // NOTE: this should be a @compileError but can't because of https://github.com/ziglang/zig/issues/9682 }; pub const KNONVOLATILE_CONTEXT_POINTERS_ARM64 = switch (@import("../../zig.zig").arch) { .Arm64 => extern struct { X19: ?*u64, X20: ?*u64, X21: ?*u64, X22: ?*u64, X23: ?*u64, X24: ?*u64, X25: ?*u64, X26: ?*u64, X27: ?*u64, X28: ?*u64, Fp: ?*u64, Lr: ?*u64, D8: ?*u64, D9: ?*u64, D10: ?*u64, D11: ?*u64, D12: ?*u64, D13: ?*u64, D14: ?*u64, D15: ?*u64, }, else => usize, // NOTE: this should be a @compileError but can't because of https://github.com/ziglang/zig/issues/9682 }; pub const UNWIND_HISTORY_TABLE_ENTRY = switch (@import("../../zig.zig").arch) { .Arm64 => extern struct { ImageBase: usize, FunctionEntry: ?*IMAGE_ARM64_RUNTIME_FUNCTION_ENTRY, }, .X64 => extern struct { ImageBase: usize, FunctionEntry: ?*IMAGE_RUNTIME_FUNCTION_ENTRY, }, else => usize, // NOTE: this should be a @compileError but can't because of https://github.com/ziglang/zig/issues/9682 }; pub const MINIDUMP_THREAD_CALLBACK = switch (@import("../../zig.zig").arch) { .Arm64 => extern struct { ThreadId: u32, ThreadHandle: ?HANDLE, Pad: u32, Context: CONTEXT, SizeOfContext: u32, StackBase: u64, StackEnd: u64, }, .X64 => extern struct { ThreadId: u32, ThreadHandle: ?HANDLE, Context: CONTEXT, SizeOfContext: u32, StackBase: u64, StackEnd: u64, }, .X86 => extern struct { ThreadId: u32 align(4), ThreadHandle: ?HANDLE align(4), Context: CONTEXT align(4), SizeOfContext: u32 align(4), StackBase: u64 align(4), StackEnd: u64 align(4), }, }; pub const MINIDUMP_THREAD_EX_CALLBACK = switch (@import("../../zig.zig").arch) { .Arm64 => extern struct { ThreadId: u32, ThreadHandle: ?HANDLE, Pad: u32, Context: CONTEXT, SizeOfContext: u32, StackBase: u64, StackEnd: u64, BackingStoreBase: u64, BackingStoreEnd: u64, }, .X64 => extern struct { ThreadId: u32, ThreadHandle: ?HANDLE, Context: CONTEXT, SizeOfContext: u32, StackBase: u64, StackEnd: u64, BackingStoreBase: u64, BackingStoreEnd: u64, }, .X86 => extern struct { ThreadId: u32 align(4), ThreadHandle: ?HANDLE align(4), Context: CONTEXT align(4), SizeOfContext: u32 align(4), StackBase: u64 align(4), StackEnd: u64 align(4), BackingStoreBase: u64 align(4), BackingStoreEnd: u64 align(4), }, }; pub const XSAVE_FORMAT = switch (@import("../../zig.zig").arch) { .X64, .Arm64 => extern struct { ControlWord: u16, StatusWord: u16, TagWord: u8, Reserved1: u8, ErrorOpcode: u16, ErrorOffset: u32, ErrorSelector: u16, Reserved2: u16, DataOffset: u32, DataSelector: u16, Reserved3: u16, MxCsr: u32, MxCsr_Mask: u32, FloatRegisters: [8]M128A, XmmRegisters: [16]M128A, Reserved4: [96]u8, }, .X86 => extern struct { ControlWord: u16, StatusWord: u16, TagWord: u8, Reserved1: u8, ErrorOpcode: u16, ErrorOffset: u32, ErrorSelector: u16, Reserved2: u16, DataOffset: u32, DataSelector: u16, Reserved3: u16, MxCsr: u32, MxCsr_Mask: u32, FloatRegisters: [8]M128A, XmmRegisters: [8]M128A, Reserved4: [224]u8, }, }; pub const XSTATE_CONTEXT = switch (@import("../../zig.zig").arch) { .X64, .Arm64 => extern struct { Mask: u64, Length: u32, Reserved1: u32, Area: ?*XSAVE_AREA, Buffer: ?*anyopaque, }, .X86 => extern struct { Mask: u64, Length: u32, Reserved1: u32, Area: ?*XSAVE_AREA, Reserved2: u32, Buffer: ?*anyopaque, Reserved3: u32, }, }; pub const KNONVOLATILE_CONTEXT_POINTERS = switch (@import("../../zig.zig").arch) { .X64 => extern struct { Anonymous1: extern union { FloatingContext: [16]?*M128A, Anonymous: extern struct { Xmm0: ?*M128A, Xmm1: ?*M128A, Xmm2: ?*M128A, Xmm3: ?*M128A, Xmm4: ?*M128A, Xmm5: ?*M128A, Xmm6: ?*M128A, Xmm7: ?*M128A, Xmm8: ?*M128A, Xmm9: ?*M128A, Xmm10: ?*M128A, Xmm11: ?*M128A, Xmm12: ?*M128A, Xmm13: ?*M128A, Xmm14: ?*M128A, Xmm15: ?*M128A, }, }, Anonymous2: extern union { IntegerContext: [16]?*u64, Anonymous: extern struct { Rax: ?*u64, Rcx: ?*u64, Rdx: ?*u64, Rbx: ?*u64, Rsp: ?*u64, Rbp: ?*u64, Rsi: ?*u64, Rdi: ?*u64, R8: ?*u64, R9: ?*u64, R10: ?*u64, R11: ?*u64, R12: ?*u64, R13: ?*u64, R14: ?*u64, R15: ?*u64, }, }, }, .X86 => extern struct { Dummy: u32, }, else => usize, // NOTE: this should be a @compileError but can't because of https://github.com/ziglang/zig/issues/9682 }; pub const ARM64_NT_CONTEXT = switch (@import("../../zig.zig").arch) { .X86, .X64 => extern struct { ContextFlags: u32, Cpsr: u32, Anonymous: extern union { Anonymous: extern struct { X0: u64, X1: u64, X2: u64, X3: u64, X4: u64, X5: u64, X6: u64, X7: u64, X8: u64, X9: u64, X10: u64, X11: u64, X12: u64, X13: u64, X14: u64, X15: u64, X16: u64, X17: u64, X18: u64, X19: u64, X20: u64, X21: u64, X22: u64, X23: u64, X24: u64, X25: u64, X26: u64, X27: u64, X28: u64, Fp: u64, Lr: u64, }, X: [31]u64, }, Sp: u64, Pc: u64, V: [32]ARM64_NT_NEON128, Fpcr: u32, Fpsr: u32, Bcr: [8]u32, Bvr: [8]u64, Wcr: [2]u32, Wvr: [2]u64, }, else => usize, // NOTE: this should be a @compileError but can't because of https://github.com/ziglang/zig/issues/9682 }; pub const DISPATCHER_CONTEXT_ARM64 = switch (@import("../../zig.zig").arch) { .X86, .X64 => extern struct { ControlPc: usize, ImageBase: usize, FunctionEntry: ?*IMAGE_ARM64_RUNTIME_FUNCTION_ENTRY, EstablisherFrame: usize, TargetPc: usize, ContextRecord: ?*ARM64_NT_CONTEXT, LanguageHandler: ?EXCEPTION_ROUTINE, HandlerData: ?*anyopaque, HistoryTable: ?*UNWIND_HISTORY_TABLE, ScopeIndex: u32, ControlPcIsUnwound: BOOLEAN, NonVolatileRegisters: ?*u8, }, else => usize, // NOTE: this should be a @compileError but can't because of https://github.com/ziglang/zig/issues/9682 }; pub const UNWIND_HISTORY_TABLE = switch (@import("../../zig.zig").arch) { .X64, .Arm64 => extern struct { Count: u32, LocalHint: u8, GlobalHint: u8, Search: u8, Once: u8, LowAddress: usize, HighAddress: usize, Entry: [12]UNWIND_HISTORY_TABLE_ENTRY, }, else => usize, // NOTE: this should be a @compileError but can't because of https://github.com/ziglang/zig/issues/9682 }; pub const LOADED_IMAGE = switch (@import("../../zig.zig").arch) { .X64, .Arm64 => extern struct { ModuleName: ?PSTR, hFile: ?HANDLE, MappedAddress: ?*u8, FileHeader: ?*IMAGE_NT_HEADERS64, LastRvaSection: ?*IMAGE_SECTION_HEADER, NumberOfSections: u32, Sections: ?*IMAGE_SECTION_HEADER, Characteristics: IMAGE_FILE_CHARACTERISTICS2, fSystemImage: BOOLEAN, fDOSImage: BOOLEAN, fReadOnly: BOOLEAN, Version: u8, Links: LIST_ENTRY, SizeOfImage: u32, }, .X86 => extern struct { ModuleName: ?PSTR, hFile: ?HANDLE, MappedAddress: ?*u8, FileHeader: ?*IMAGE_NT_HEADERS32, LastRvaSection: ?*IMAGE_SECTION_HEADER, NumberOfSections: u32, Sections: ?*IMAGE_SECTION_HEADER, Characteristics: IMAGE_FILE_CHARACTERISTICS2, fSystemImage: BOOLEAN, fDOSImage: BOOLEAN, fReadOnly: BOOLEAN, Version: u8, Links: LIST_ENTRY, SizeOfImage: u32, }, }; pub const IMAGE_DEBUG_INFORMATION = switch (@import("../../zig.zig").arch) { .X86 => extern struct { List: LIST_ENTRY, ReservedSize: u32, ReservedMappedBase: ?*anyopaque, ReservedMachine: u16, ReservedCharacteristics: u16, ReservedCheckSum: u32, ImageBase: u32, SizeOfImage: u32, ReservedNumberOfSections: u32, ReservedSections: ?*IMAGE_SECTION_HEADER, ReservedExportedNamesSize: u32, ReservedExportedNames: ?PSTR, ReservedNumberOfFunctionTableEntries: u32, ReservedFunctionTableEntries: ?*IMAGE_FUNCTION_ENTRY, ReservedLowestFunctionStartingAddress: u32, ReservedHighestFunctionEndingAddress: u32, ReservedNumberOfFpoTableEntries: u32, ReservedFpoTableEntries: ?*FPO_DATA, SizeOfCoffSymbols: u32, CoffSymbols: ?*IMAGE_COFF_SYMBOLS_HEADER, ReservedSizeOfCodeViewSymbols: u32, ReservedCodeViewSymbols: ?*anyopaque, ImageFilePath: ?PSTR, ImageFileName: ?PSTR, ReservedDebugFilePath: ?PSTR, ReservedTimeDateStamp: u32, ReservedRomImage: BOOL, ReservedDebugDirectory: ?*IMAGE_DEBUG_DIRECTORY, ReservedNumberOfDebugDirectories: u32, ReservedOriginalFunctionTableBaseAddress: u32, Reserved: [2]u32, }, else => usize, // NOTE: this should be a @compileError but can't because of https://github.com/ziglang/zig/issues/9682 }; pub const ADDRESS = switch (@import("../../zig.zig").arch) { .X86 => extern struct { Offset: u32, Segment: u16, Mode: ADDRESS_MODE, }, else => usize, // NOTE: this should be a @compileError but can't because of https://github.com/ziglang/zig/issues/9682 }; pub const KDHELP = switch (@import("../../zig.zig").arch) { .X86 => extern struct { Thread: u32, ThCallbackStack: u32, NextCallback: u32, FramePointer: u32, KiCallUserMode: u32, KeUserCallbackDispatcher: u32, SystemRangeStart: u32, ThCallbackBStore: u32, KiUserExceptionDispatcher: u32, StackBase: u32, StackLimit: u32, Reserved: [5]u32, }, else => usize, // NOTE: this should be a @compileError but can't because of https://github.com/ziglang/zig/issues/9682 }; pub const STACKFRAME = switch (@import("../../zig.zig").arch) { .X86 => extern struct { AddrPC: ADDRESS, AddrReturn: ADDRESS, AddrFrame: ADDRESS, AddrStack: ADDRESS, FuncTableEntry: ?*anyopaque, Params: [4]u32, Far: BOOL, Virtual: BOOL, Reserved: [3]u32, KdHelp: KDHELP, AddrBStore: ADDRESS, }, else => usize, // NOTE: this should be a @compileError but can't because of https://github.com/ziglang/zig/issues/9682 }; pub const PREAD_PROCESS_MEMORY_ROUTINE = switch (@import("../../zig.zig").arch) { .X86 => switch (@import("builtin").zig_backend) { .stage1 => fn ( hProcess: ?HANDLE, lpBaseAddress: u32, // TODO: what to do with BytesParamIndex 3? lpBuffer: ?*anyopaque, nSize: u32, lpNumberOfBytesRead: ?*u32, ) callconv(@import("std").os.windows.WINAPI) BOOL, else => *const fn ( hProcess: ?HANDLE, lpBaseAddress: u32, // TODO: what to do with BytesParamIndex 3? lpBuffer: ?*anyopaque, nSize: u32, lpNumberOfBytesRead: ?*u32, ) callconv(@import("std").os.windows.WINAPI) BOOL, }, else => usize, // NOTE: this should be a @compileError but can't because of https://github.com/ziglang/zig/issues/9682 }; pub const PFUNCTION_TABLE_ACCESS_ROUTINE = switch (@import("../../zig.zig").arch) { .X86 => switch (@import("builtin").zig_backend) { .stage1 => fn ( hProcess: ?HANDLE, AddrBase: u32, ) callconv(@import("std").os.windows.WINAPI) ?*anyopaque, else => *const fn ( hProcess: ?HANDLE, AddrBase: u32, ) callconv(@import("std").os.windows.WINAPI) ?*anyopaque, }, else => usize, // NOTE: this should be a @compileError but can't because of https://github.com/ziglang/zig/issues/9682 }; pub const PGET_MODULE_BASE_ROUTINE = switch (@import("../../zig.zig").arch) { .X86 => switch (@import("builtin").zig_backend) { .stage1 => fn ( hProcess: ?HANDLE, Address: u32, ) callconv(@import("std").os.windows.WINAPI) u32, else => *const fn ( hProcess: ?HANDLE, Address: u32, ) callconv(@import("std").os.windows.WINAPI) u32, }, else => usize, // NOTE: this should be a @compileError but can't because of https://github.com/ziglang/zig/issues/9682 }; pub const PTRANSLATE_ADDRESS_ROUTINE = switch (@import("../../zig.zig").arch) { .X86 => switch (@import("builtin").zig_backend) { .stage1 => fn ( hProcess: ?HANDLE, hThread: ?HANDLE, lpaddr: ?*ADDRESS, ) callconv(@import("std").os.windows.WINAPI) u32, else => *const fn ( hProcess: ?HANDLE, hThread: ?HANDLE, lpaddr: ?*ADDRESS, ) callconv(@import("std").os.windows.WINAPI) u32, }, else => usize, // NOTE: this should be a @compileError but can't because of https://github.com/ziglang/zig/issues/9682 }; pub const PSYM_ENUMMODULES_CALLBACK = switch (@import("../../zig.zig").arch) { .X86 => switch (@import("builtin").zig_backend) { .stage1 => fn ( ModuleName: ?[*:0]const u8, BaseOfDll: u32, UserContext: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) BOOL, else => *const fn ( ModuleName: ?[*:0]const u8, BaseOfDll: u32, UserContext: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) BOOL, }, else => usize, // NOTE: this should be a @compileError but can't because of https://github.com/ziglang/zig/issues/9682 }; pub const PSYM_ENUMSYMBOLS_CALLBACK = switch (@import("../../zig.zig").arch) { .X86 => switch (@import("builtin").zig_backend) { .stage1 => fn ( SymbolName: ?[*:0]const u8, SymbolAddress: u32, SymbolSize: u32, UserContext: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) BOOL, else => *const fn ( SymbolName: ?[*:0]const u8, SymbolAddress: u32, SymbolSize: u32, UserContext: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) BOOL, }, else => usize, // NOTE: this should be a @compileError but can't because of https://github.com/ziglang/zig/issues/9682 }; pub const PSYM_ENUMSYMBOLS_CALLBACKW = switch (@import("../../zig.zig").arch) { .X86 => switch (@import("builtin").zig_backend) { .stage1 => fn ( SymbolName: ?[*:0]const u16, SymbolAddress: u32, SymbolSize: u32, UserContext: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) BOOL, else => *const fn ( SymbolName: ?[*:0]const u16, SymbolAddress: u32, SymbolSize: u32, UserContext: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) BOOL, }, else => usize, // NOTE: this should be a @compileError but can't because of https://github.com/ziglang/zig/issues/9682 }; pub const PENUMLOADED_MODULES_CALLBACK = switch (@import("../../zig.zig").arch) { .X86 => switch (@import("builtin").zig_backend) { .stage1 => fn ( ModuleName: ?[*:0]const u8, ModuleBase: u32, ModuleSize: u32, UserContext: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) BOOL, else => *const fn ( ModuleName: ?[*:0]const u8, ModuleBase: u32, ModuleSize: u32, UserContext: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) BOOL, }, else => usize, // NOTE: this should be a @compileError but can't because of https://github.com/ziglang/zig/issues/9682 }; pub const PSYMBOL_REGISTERED_CALLBACK = switch (@import("../../zig.zig").arch) { .X86 => switch (@import("builtin").zig_backend) { .stage1 => fn ( hProcess: ?HANDLE, ActionCode: u32, CallbackData: ?*anyopaque, UserContext: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) BOOL, else => *const fn ( hProcess: ?HANDLE, ActionCode: u32, CallbackData: ?*anyopaque, UserContext: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) BOOL, }, else => usize, // NOTE: this should be a @compileError but can't because of https://github.com/ziglang/zig/issues/9682 }; pub const IMAGEHLP_SYMBOL = switch (@import("../../zig.zig").arch) { .X86 => extern struct { SizeOfStruct: u32, Address: u32, Size: u32, Flags: u32, MaxNameLength: u32, Name: [1]CHAR, }, else => usize, // NOTE: this should be a @compileError but can't because of https://github.com/ziglang/zig/issues/9682 }; pub const IMAGEHLP_SYMBOL_PACKAGE = switch (@import("../../zig.zig").arch) { .X86 => extern struct { sym: IMAGEHLP_SYMBOL, name: [2001]CHAR, }, else => usize, // NOTE: this should be a @compileError but can't because of https://github.com/ziglang/zig/issues/9682 }; pub const IMAGEHLP_SYMBOLW = switch (@import("../../zig.zig").arch) { .X86 => extern struct { SizeOfStruct: u32, Address: u32, Size: u32, Flags: u32, MaxNameLength: u32, Name: [1]u16, }, else => usize, // NOTE: this should be a @compileError but can't because of https://github.com/ziglang/zig/issues/9682 }; pub const IMAGEHLP_SYMBOLW_PACKAGE = switch (@import("../../zig.zig").arch) { .X86 => extern struct { sym: IMAGEHLP_SYMBOLW, name: [2001]u16, }, else => usize, // NOTE: this should be a @compileError but can't because of https://github.com/ziglang/zig/issues/9682 }; pub const IMAGEHLP_MODULE = switch (@import("../../zig.zig").arch) { .X86 => extern struct { SizeOfStruct: u32, BaseOfImage: u32, ImageSize: u32, TimeDateStamp: u32, CheckSum: u32, NumSyms: u32, SymType: SYM_TYPE, ModuleName: [32]CHAR, ImageName: [256]CHAR, LoadedImageName: [256]CHAR, }, else => usize, // NOTE: this should be a @compileError but can't because of https://github.com/ziglang/zig/issues/9682 }; pub const IMAGEHLP_MODULEW = switch (@import("../../zig.zig").arch) { .X86 => extern struct { SizeOfStruct: u32, BaseOfImage: u32, ImageSize: u32, TimeDateStamp: u32, CheckSum: u32, NumSyms: u32, SymType: SYM_TYPE, ModuleName: [32]u16, ImageName: [256]u16, LoadedImageName: [256]u16, }, else => usize, // NOTE: this should be a @compileError but can't because of https://github.com/ziglang/zig/issues/9682 }; pub const IMAGEHLP_LINE = switch (@import("../../zig.zig").arch) { .X86 => extern struct { SizeOfStruct: u32, Key: ?*anyopaque, LineNumber: u32, FileName: ?[*]u8, Address: u32, }, else => usize, // NOTE: this should be a @compileError but can't because of https://github.com/ziglang/zig/issues/9682 }; pub const IMAGEHLP_LINEW = switch (@import("../../zig.zig").arch) { .X86 => extern struct { SizeOfStruct: u32, Key: ?*anyopaque, LineNumber: u32, FileName: ?[*]u8, Address: u64, }, else => usize, // NOTE: this should be a @compileError but can't because of https://github.com/ziglang/zig/issues/9682 }; pub const IMAGEHLP_DEFERRED_SYMBOL_LOAD = switch (@import("../../zig.zig").arch) { .X86 => extern struct { SizeOfStruct: u32, BaseOfImage: u32, CheckSum: u32, TimeDateStamp: u32, FileName: [260]CHAR, Reparse: BOOLEAN, hFile: ?HANDLE, }, else => usize, // NOTE: this should be a @compileError but can't because of https://github.com/ziglang/zig/issues/9682 }; pub const IMAGEHLP_DUPLICATE_SYMBOL = switch (@import("../../zig.zig").arch) { .X86 => extern struct { SizeOfStruct: u32, NumberOfDups: u32, Symbol: ?*IMAGEHLP_SYMBOL, SelectedSymbol: u32, }, else => usize, // NOTE: this should be a @compileError but can't because of https://github.com/ziglang/zig/issues/9682 }; //-------------------------------------------------------------------------------- // Section: Functions (328) //-------------------------------------------------------------------------------- pub usingnamespace switch (@import("../../zig.zig").arch) { .Arm64 => struct { pub extern "kernel32" fn RtlAddFunctionTable( FunctionTable: [*]IMAGE_ARM64_RUNTIME_FUNCTION_ENTRY, EntryCount: u32, BaseAddress: usize, ) callconv(@import("std").os.windows.WINAPI) BOOLEAN; }, else => struct {}, }; pub usingnamespace switch (@import("../../zig.zig").arch) { .Arm64 => struct { pub extern "kernel32" fn RtlDeleteFunctionTable( FunctionTable: ?*IMAGE_ARM64_RUNTIME_FUNCTION_ENTRY, ) callconv(@import("std").os.windows.WINAPI) BOOLEAN; }, else => struct {}, }; pub usingnamespace switch (@import("../../zig.zig").arch) { .Arm64 => struct { // TODO: this type is limited to platform 'windows8.0' pub extern "ntdll" fn RtlAddGrowableFunctionTable( DynamicTable: ?*?*anyopaque, FunctionTable: [*]IMAGE_ARM64_RUNTIME_FUNCTION_ENTRY, EntryCount: u32, MaximumEntryCount: u32, RangeBase: usize, RangeEnd: usize, ) callconv(@import("std").os.windows.WINAPI) u32; }, else => struct {}, }; pub usingnamespace switch (@import("../../zig.zig").arch) { .Arm64 => struct { pub extern "kernel32" fn RtlLookupFunctionEntry( ControlPc: usize, ImageBase: ?*usize, HistoryTable: ?*UNWIND_HISTORY_TABLE, ) callconv(@import("std").os.windows.WINAPI) ?*IMAGE_ARM64_RUNTIME_FUNCTION_ENTRY; }, else => struct {}, }; pub usingnamespace switch (@import("../../zig.zig").arch) { .Arm64 => struct { pub extern "kernel32" fn RtlVirtualUnwind( HandlerType: RTL_VIRTUAL_UNWIND_HANDLER_TYPE, ImageBase: usize, ControlPc: usize, FunctionEntry: ?*IMAGE_ARM64_RUNTIME_FUNCTION_ENTRY, ContextRecord: ?*CONTEXT, HandlerData: ?*?*anyopaque, EstablisherFrame: ?*usize, ContextPointers: ?*KNONVOLATILE_CONTEXT_POINTERS_ARM64, ) callconv(@import("std").os.windows.WINAPI) ?EXCEPTION_ROUTINE; }, else => struct {}, }; pub extern "dbgeng" fn DebugConnect( RemoteOptions: ?[*:0]const u8, InterfaceId: ?*const Guid, Interface: ?*?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) HRESULT; pub extern "dbgeng" fn DebugConnectWide( RemoteOptions: ?[*:0]const u16, InterfaceId: ?*const Guid, Interface: ?*?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) HRESULT; pub extern "dbgeng" fn DebugCreate( InterfaceId: ?*const Guid, Interface: ?*?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) HRESULT; pub extern "dbgeng" fn DebugCreateEx( InterfaceId: ?*const Guid, DbgEngOptions: u32, Interface: ?*?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) HRESULT; pub extern "dbgmodel" fn CreateDataModelManager( debugHost: ?*IDebugHost, manager: ?*?*IDataModelManager, ) callconv(@import("std").os.windows.WINAPI) HRESULT; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "kernel32" fn ReadProcessMemory( hProcess: ?HANDLE, lpBaseAddress: ?*const anyopaque, // TODO: what to do with BytesParamIndex 3? lpBuffer: ?*anyopaque, nSize: usize, lpNumberOfBytesRead: ?*usize, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "kernel32" fn WriteProcessMemory( hProcess: ?HANDLE, lpBaseAddress: ?*anyopaque, // TODO: what to do with BytesParamIndex 3? lpBuffer: ?*const anyopaque, nSize: usize, lpNumberOfBytesWritten: ?*usize, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "kernel32" fn GetThreadContext( hThread: ?HANDLE, lpContext: ?*CONTEXT, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "kernel32" fn SetThreadContext( hThread: ?HANDLE, lpContext: ?*const CONTEXT, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "kernel32" fn FlushInstructionCache( hProcess: ?HANDLE, // TODO: what to do with BytesParamIndex 2? lpBaseAddress: ?*const anyopaque, dwSize: usize, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows6.0.6000' pub extern "kernel32" fn Wow64GetThreadContext( hThread: ?HANDLE, lpContext: ?*WOW64_CONTEXT, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows6.0.6000' pub extern "kernel32" fn Wow64SetThreadContext( hThread: ?HANDLE, lpContext: ?*const WOW64_CONTEXT, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "kernel32" fn RtlCaptureStackBackTrace( FramesToSkip: u32, FramesToCapture: u32, BackTrace: [*]?*anyopaque, BackTraceHash: ?*u32, ) callconv(@import("std").os.windows.WINAPI) u16; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "kernel32" fn RtlCaptureContext( ContextRecord: ?*CONTEXT, ) callconv(@import("std").os.windows.WINAPI) void; pub usingnamespace switch (@import("../../zig.zig").arch) { .X64 => struct { pub extern "kernel32" fn RtlCaptureContext2( ContextRecord: ?*CONTEXT, ) callconv(@import("std").os.windows.WINAPI) void; }, else => struct {}, }; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "kernel32" fn RtlUnwind( TargetFrame: ?*anyopaque, TargetIp: ?*anyopaque, ExceptionRecord: ?*EXCEPTION_RECORD, ReturnValue: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) void; pub usingnamespace switch (@import("../../zig.zig").arch) { .X64 => struct { pub extern "kernel32" fn RtlAddFunctionTable( FunctionTable: [*]IMAGE_RUNTIME_FUNCTION_ENTRY, EntryCount: u32, BaseAddress: u64, ) callconv(@import("std").os.windows.WINAPI) BOOLEAN; }, else => struct {}, }; pub usingnamespace switch (@import("../../zig.zig").arch) { .X64 => struct { pub extern "kernel32" fn RtlDeleteFunctionTable( FunctionTable: ?*IMAGE_RUNTIME_FUNCTION_ENTRY, ) callconv(@import("std").os.windows.WINAPI) BOOLEAN; }, else => struct {}, }; pub usingnamespace switch (@import("../../zig.zig").arch) { .X64, .Arm64 => struct { pub extern "kernel32" fn RtlInstallFunctionTableCallback( TableIdentifier: u64, BaseAddress: u64, Length: u32, Callback: ?PGET_RUNTIME_FUNCTION_CALLBACK, Context: ?*anyopaque, OutOfProcessCallbackDll: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) BOOLEAN; }, else => struct {}, }; pub usingnamespace switch (@import("../../zig.zig").arch) { .X64 => struct { // TODO: this type is limited to platform 'windows8.0' pub extern "ntdll" fn RtlAddGrowableFunctionTable( DynamicTable: ?*?*anyopaque, FunctionTable: [*]IMAGE_RUNTIME_FUNCTION_ENTRY, EntryCount: u32, MaximumEntryCount: u32, RangeBase: usize, RangeEnd: usize, ) callconv(@import("std").os.windows.WINAPI) u32; }, else => struct {}, }; pub usingnamespace switch (@import("../../zig.zig").arch) { .X64, .Arm64 => struct { // TODO: this type is limited to platform 'windows8.0' pub extern "ntdll" fn RtlGrowFunctionTable( DynamicTable: ?*anyopaque, NewEntryCount: u32, ) callconv(@import("std").os.windows.WINAPI) void; }, else => struct {}, }; pub usingnamespace switch (@import("../../zig.zig").arch) { .X64, .Arm64 => struct { // TODO: this type is limited to platform 'windows8.0' pub extern "ntdll" fn RtlDeleteGrowableFunctionTable( DynamicTable: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) void; }, else => struct {}, }; pub usingnamespace switch (@import("../../zig.zig").arch) { .X64 => struct { pub extern "kernel32" fn RtlLookupFunctionEntry( ControlPc: u64, ImageBase: ?*u64, HistoryTable: ?*UNWIND_HISTORY_TABLE, ) callconv(@import("std").os.windows.WINAPI) ?*IMAGE_RUNTIME_FUNCTION_ENTRY; }, else => struct {}, }; pub extern "kernel32" fn RtlRestoreContext( ContextRecord: ?*CONTEXT, ExceptionRecord: ?*EXCEPTION_RECORD, ) callconv(@import("std").os.windows.WINAPI) void; pub usingnamespace switch (@import("../../zig.zig").arch) { .X64, .Arm64 => struct { pub extern "kernel32" fn RtlUnwindEx( TargetFrame: ?*anyopaque, TargetIp: ?*anyopaque, ExceptionRecord: ?*EXCEPTION_RECORD, ReturnValue: ?*anyopaque, ContextRecord: ?*CONTEXT, HistoryTable: ?*UNWIND_HISTORY_TABLE, ) callconv(@import("std").os.windows.WINAPI) void; }, else => struct {}, }; pub usingnamespace switch (@import("../../zig.zig").arch) { .X64 => struct { pub extern "kernel32" fn RtlVirtualUnwind( HandlerType: RTL_VIRTUAL_UNWIND_HANDLER_TYPE, ImageBase: u64, ControlPc: u64, FunctionEntry: ?*IMAGE_RUNTIME_FUNCTION_ENTRY, ContextRecord: ?*CONTEXT, HandlerData: ?*?*anyopaque, EstablisherFrame: ?*u64, ContextPointers: ?*KNONVOLATILE_CONTEXT_POINTERS, ) callconv(@import("std").os.windows.WINAPI) ?EXCEPTION_ROUTINE; }, else => struct {}, }; pub extern "kernel32" fn RtlRaiseException( ExceptionRecord: ?*EXCEPTION_RECORD, ) callconv(@import("std").os.windows.WINAPI) void; pub extern "kernel32" fn RtlPcToFileHeader( PcValue: ?*anyopaque, BaseOfImage: ?*?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) ?*anyopaque; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "kernel32" fn IsDebuggerPresent() callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "kernel32" fn DebugBreak() callconv(@import("std").os.windows.WINAPI) void; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "kernel32" fn OutputDebugStringA( lpOutputString: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) void; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "kernel32" fn OutputDebugStringW( lpOutputString: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) void; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "kernel32" fn ContinueDebugEvent( dwProcessId: u32, dwThreadId: u32, dwContinueStatus: u32, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "kernel32" fn WaitForDebugEvent( lpDebugEvent: ?*DEBUG_EVENT, dwMilliseconds: u32, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "kernel32" fn DebugActiveProcess( dwProcessId: u32, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "kernel32" fn DebugActiveProcessStop( dwProcessId: u32, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows6.0.6000' pub extern "kernel32" fn CheckRemoteDebuggerPresent( hProcess: ?HANDLE, pbDebuggerPresent: ?*BOOL, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows10.0.10240' pub extern "kernel32" fn WaitForDebugEventEx( lpDebugEvent: ?*DEBUG_EVENT, dwMilliseconds: u32, ) callconv(@import("std").os.windows.WINAPI) BOOL; pub extern "kernel32" fn EncodePointer( Ptr: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) ?*anyopaque; pub extern "kernel32" fn DecodePointer( Ptr: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) ?*anyopaque; pub extern "kernel32" fn EncodeSystemPointer( Ptr: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) ?*anyopaque; pub extern "kernel32" fn DecodeSystemPointer( Ptr: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) ?*anyopaque; pub extern "api-ms-win-core-util-l1-1-1" fn EncodeRemotePointer( ProcessHandle: ?HANDLE, Ptr: ?*anyopaque, EncodedPtr: ?*?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) HRESULT; pub extern "api-ms-win-core-util-l1-1-1" fn DecodeRemotePointer( ProcessHandle: ?HANDLE, Ptr: ?*anyopaque, DecodedPtr: ?*?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) HRESULT; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "kernel32" fn Beep( dwFreq: u32, dwDuration: u32, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "kernel32" fn RaiseException( dwExceptionCode: u32, dwExceptionFlags: u32, nNumberOfArguments: u32, lpArguments: ?[*]const usize, ) callconv(@import("std").os.windows.WINAPI) void; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "kernel32" fn UnhandledExceptionFilter( ExceptionInfo: ?*EXCEPTION_POINTERS, ) callconv(@import("std").os.windows.WINAPI) i32; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "kernel32" fn SetUnhandledExceptionFilter( lpTopLevelExceptionFilter: ?LPTOP_LEVEL_EXCEPTION_FILTER, ) callconv(@import("std").os.windows.WINAPI) ?LPTOP_LEVEL_EXCEPTION_FILTER; // TODO: this type is limited to platform 'windows6.0.6000' pub extern "kernel32" fn GetErrorMode() callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "kernel32" fn SetErrorMode( uMode: THREAD_ERROR_MODE, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "kernel32" fn AddVectoredExceptionHandler( First: u32, Handler: ?PVECTORED_EXCEPTION_HANDLER, ) callconv(@import("std").os.windows.WINAPI) ?*anyopaque; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "kernel32" fn RemoveVectoredExceptionHandler( Handle: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'windows6.0.6000' pub extern "kernel32" fn AddVectoredContinueHandler( First: u32, Handler: ?PVECTORED_EXCEPTION_HANDLER, ) callconv(@import("std").os.windows.WINAPI) ?*anyopaque; // TODO: this type is limited to platform 'windows6.0.6000' pub extern "kernel32" fn RemoveVectoredContinueHandler( Handle: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'windows6.1' pub extern "kernel32" fn RaiseFailFastException( pExceptionRecord: ?*EXCEPTION_RECORD, pContextRecord: ?*CONTEXT, dwFlags: u32, ) callconv(@import("std").os.windows.WINAPI) void; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "kernel32" fn FatalAppExitA( uAction: u32, lpMessageText: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) void; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "kernel32" fn FatalAppExitW( uAction: u32, lpMessageText: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) void; // TODO: this type is limited to platform 'windows6.1' pub extern "kernel32" fn GetThreadErrorMode() callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'windows6.1' pub extern "kernel32" fn SetThreadErrorMode( dwNewMode: THREAD_ERROR_MODE, lpOldMode: ?*THREAD_ERROR_MODE, ) callconv(@import("std").os.windows.WINAPI) BOOL; pub extern "api-ms-win-core-errorhandling-l1-1-3" fn TerminateProcessOnMemoryExhaustion( FailedAllocationSize: usize, ) callconv(@import("std").os.windows.WINAPI) void; // TODO: this type is limited to platform 'windows6.0.6000' pub extern "advapi32" fn OpenThreadWaitChainSession( Flags: OPEN_THREAD_WAIT_CHAIN_SESSION_FLAGS, callback: ?PWAITCHAINCALLBACK, ) callconv(@import("std").os.windows.WINAPI) ?*anyopaque; // TODO: this type is limited to platform 'windows6.0.6000' pub extern "advapi32" fn CloseThreadWaitChainSession( WctHandle: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) void; // TODO: this type is limited to platform 'windows6.0.6000' pub extern "advapi32" fn GetThreadWaitChain( WctHandle: ?*anyopaque, Context: usize, Flags: WAIT_CHAIN_THREAD_OPTIONS, ThreadId: u32, NodeCount: ?*u32, NodeInfoArray: [*]WAITCHAIN_NODE_INFO, IsCycle: ?*i32, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows6.0.6000' pub extern "advapi32" fn RegisterWaitChainCOMCallback( CallStateCallback: ?PCOGETCALLSTATE, ActivationStateCallback: ?PCOGETACTIVATIONSTATE, ) callconv(@import("std").os.windows.WINAPI) void; pub extern "dbghelp" fn MiniDumpWriteDump( hProcess: ?HANDLE, ProcessId: u32, hFile: ?HANDLE, DumpType: MINIDUMP_TYPE, ExceptionParam: ?*MINIDUMP_EXCEPTION_INFORMATION, UserStreamParam: ?*MINIDUMP_USER_STREAM_INFORMATION, CallbackParam: ?*MINIDUMP_CALLBACK_INFORMATION, ) callconv(@import("std").os.windows.WINAPI) BOOL; pub extern "dbghelp" fn MiniDumpReadDumpStream( BaseOfDump: ?*anyopaque, StreamNumber: u32, Dir: ?*?*MINIDUMP_DIRECTORY, StreamPointer: ?*?*anyopaque, StreamSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "imagehlp" fn BindImage( ImageName: ?[*:0]const u8, DllPath: ?[*:0]const u8, SymbolPath: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "imagehlp" fn BindImageEx( Flags: u32, ImageName: ?[*:0]const u8, DllPath: ?[*:0]const u8, SymbolPath: ?[*:0]const u8, StatusRoutine: ?PIMAGEHLP_STATUS_ROUTINE, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "imagehlp" fn ReBaseImage( CurrentImageName: ?[*:0]const u8, SymbolPath: ?[*:0]const u8, fReBase: BOOL, fRebaseSysfileOk: BOOL, fGoingDown: BOOL, CheckImageSize: u32, OldImageSize: ?*u32, OldImageBase: ?*usize, NewImageSize: ?*u32, NewImageBase: ?*usize, TimeStamp: u32, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "imagehlp" fn ReBaseImage64( CurrentImageName: ?[*:0]const u8, SymbolPath: ?[*:0]const u8, fReBase: BOOL, fRebaseSysfileOk: BOOL, fGoingDown: BOOL, CheckImageSize: u32, OldImageSize: ?*u32, OldImageBase: ?*u64, NewImageSize: ?*u32, NewImageBase: ?*u64, TimeStamp: u32, ) callconv(@import("std").os.windows.WINAPI) BOOL; pub usingnamespace switch (@import("../../zig.zig").arch) { .X64, .Arm64 => struct { // TODO: this type is limited to platform 'windows5.1.2600' pub extern "imagehlp" fn CheckSumMappedFile( BaseAddress: ?*anyopaque, FileLength: u32, HeaderSum: ?*u32, CheckSum: ?*u32, ) callconv(@import("std").os.windows.WINAPI) ?*IMAGE_NT_HEADERS64; }, else => struct {}, }; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "imagehlp" fn MapFileAndCheckSumA( Filename: ?[*:0]const u8, HeaderSum: ?*u32, CheckSum: ?*u32, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "imagehlp" fn MapFileAndCheckSumW( Filename: ?[*:0]const u16, HeaderSum: ?*u32, CheckSum: ?*u32, ) callconv(@import("std").os.windows.WINAPI) u32; pub usingnamespace switch (@import("../../zig.zig").arch) { .X64, .Arm64 => struct { // TODO: this type is limited to platform 'windows5.1.2600' pub extern "imagehlp" fn GetImageConfigInformation( LoadedImage: ?*LOADED_IMAGE, ImageConfigInformation: ?*IMAGE_LOAD_CONFIG_DIRECTORY64, ) callconv(@import("std").os.windows.WINAPI) BOOL; }, else => struct {}, }; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "imagehlp" fn GetImageUnusedHeaderBytes( LoadedImage: ?*LOADED_IMAGE, SizeUnusedHeaderBytes: ?*u32, ) callconv(@import("std").os.windows.WINAPI) u32; pub usingnamespace switch (@import("../../zig.zig").arch) { .X64, .Arm64 => struct { // TODO: this type is limited to platform 'windows5.1.2600' pub extern "imagehlp" fn SetImageConfigInformation( LoadedImage: ?*LOADED_IMAGE, ImageConfigInformation: ?*IMAGE_LOAD_CONFIG_DIRECTORY64, ) callconv(@import("std").os.windows.WINAPI) BOOL; }, else => struct {}, }; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "imagehlp" fn ImageGetDigestStream( FileHandle: ?HANDLE, DigestLevel: u32, DigestFunction: ?DIGEST_FUNCTION, DigestHandle: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "imagehlp" fn ImageAddCertificate( FileHandle: ?HANDLE, Certificate: ?*WIN_CERTIFICATE, Index: ?*u32, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "imagehlp" fn ImageRemoveCertificate( FileHandle: ?HANDLE, Index: u32, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "imagehlp" fn ImageEnumerateCertificates( FileHandle: ?HANDLE, TypeFilter: u16, CertificateCount: ?*u32, Indices: ?[*]u32, IndexCount: u32, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "imagehlp" fn ImageGetCertificateData( FileHandle: ?HANDLE, CertificateIndex: u32, Certificate: ?*WIN_CERTIFICATE, RequiredLength: ?*u32, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "imagehlp" fn ImageGetCertificateHeader( FileHandle: ?HANDLE, CertificateIndex: u32, Certificateheader: ?*WIN_CERTIFICATE, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "imagehlp" fn ImageLoad( DllName: ?[*:0]const u8, DllPath: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) ?*LOADED_IMAGE; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "imagehlp" fn ImageUnload( LoadedImage: ?*LOADED_IMAGE, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "imagehlp" fn MapAndLoad( ImageName: ?[*:0]const u8, DllPath: ?[*:0]const u8, LoadedImage: ?*LOADED_IMAGE, DotDll: BOOL, ReadOnly: BOOL, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "imagehlp" fn UnMapAndLoad( LoadedImage: ?*LOADED_IMAGE, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "imagehlp" fn TouchFileTimes( FileHandle: ?HANDLE, pSystemTime: ?*SYSTEMTIME, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "imagehlp" fn UpdateDebugInfoFile( ImageFileName: ?[*:0]const u8, SymbolPath: ?[*:0]const u8, DebugFilePath: ?PSTR, NtHeaders: ?*IMAGE_NT_HEADERS32, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "imagehlp" fn UpdateDebugInfoFileEx( ImageFileName: ?[*:0]const u8, SymbolPath: ?[*:0]const u8, DebugFilePath: ?PSTR, NtHeaders: ?*IMAGE_NT_HEADERS32, OldCheckSum: u32, ) callconv(@import("std").os.windows.WINAPI) BOOL; pub extern "dbghelp" fn SymFindDebugInfoFile( hProcess: ?HANDLE, FileName: ?[*:0]const u8, DebugFilePath: ?PSTR, Callback: ?PFIND_DEBUG_FILE_CALLBACK, CallerData: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) ?HANDLE; pub extern "dbghelp" fn SymFindDebugInfoFileW( hProcess: ?HANDLE, FileName: ?[*:0]const u16, DebugFilePath: ?PWSTR, Callback: ?PFIND_DEBUG_FILE_CALLBACKW, CallerData: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) ?HANDLE; pub extern "dbghelp" fn FindDebugInfoFile( FileName: ?[*:0]const u8, SymbolPath: ?[*:0]const u8, DebugFilePath: ?PSTR, ) callconv(@import("std").os.windows.WINAPI) ?HANDLE; pub extern "dbghelp" fn FindDebugInfoFileEx( FileName: ?[*:0]const u8, SymbolPath: ?[*:0]const u8, DebugFilePath: ?PSTR, Callback: ?PFIND_DEBUG_FILE_CALLBACK, CallerData: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) ?HANDLE; pub extern "dbghelp" fn FindDebugInfoFileExW( FileName: ?[*:0]const u16, SymbolPath: ?[*:0]const u16, DebugFilePath: ?PWSTR, Callback: ?PFIND_DEBUG_FILE_CALLBACKW, CallerData: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) ?HANDLE; pub extern "dbghelp" fn SymFindFileInPath( hprocess: ?HANDLE, SearchPathA: ?[*:0]const u8, FileName: ?[*:0]const u8, id: ?*anyopaque, two: u32, three: u32, flags: SYM_FIND_ID_OPTION, FoundFile: ?PSTR, callback: ?PFINDFILEINPATHCALLBACK, context: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) BOOL; pub extern "dbghelp" fn SymFindFileInPathW( hprocess: ?HANDLE, SearchPathA: ?[*:0]const u16, FileName: ?[*:0]const u16, id: ?*anyopaque, two: u32, three: u32, flags: SYM_FIND_ID_OPTION, FoundFile: ?PWSTR, callback: ?PFINDFILEINPATHCALLBACKW, context: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) BOOL; pub extern "dbghelp" fn SymFindExecutableImage( hProcess: ?HANDLE, FileName: ?[*:0]const u8, ImageFilePath: ?PSTR, Callback: ?PFIND_EXE_FILE_CALLBACK, CallerData: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) ?HANDLE; pub extern "dbghelp" fn SymFindExecutableImageW( hProcess: ?HANDLE, FileName: ?[*:0]const u16, ImageFilePath: ?PWSTR, Callback: ?PFIND_EXE_FILE_CALLBACKW, CallerData: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) ?HANDLE; pub extern "dbghelp" fn FindExecutableImage( FileName: ?[*:0]const u8, SymbolPath: ?[*:0]const u8, ImageFilePath: ?PSTR, ) callconv(@import("std").os.windows.WINAPI) ?HANDLE; pub extern "dbghelp" fn FindExecutableImageEx( FileName: ?[*:0]const u8, SymbolPath: ?[*:0]const u8, ImageFilePath: ?PSTR, Callback: ?PFIND_EXE_FILE_CALLBACK, CallerData: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) ?HANDLE; pub extern "dbghelp" fn FindExecutableImageExW( FileName: ?[*:0]const u16, SymbolPath: ?[*:0]const u16, ImageFilePath: ?PWSTR, Callback: ?PFIND_EXE_FILE_CALLBACKW, CallerData: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) ?HANDLE; pub usingnamespace switch (@import("../../zig.zig").arch) { .X64, .Arm64 => struct { pub extern "dbghelp" fn ImageNtHeader( Base: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) ?*IMAGE_NT_HEADERS64; }, else => struct {}, }; pub extern "dbghelp" fn ImageDirectoryEntryToDataEx( Base: ?*anyopaque, MappedAsImage: BOOLEAN, DirectoryEntry: IMAGE_DIRECTORY_ENTRY, Size: ?*u32, FoundHeader: ?*?*IMAGE_SECTION_HEADER, ) callconv(@import("std").os.windows.WINAPI) ?*anyopaque; pub extern "dbghelp" fn ImageDirectoryEntryToData( Base: ?*anyopaque, MappedAsImage: BOOLEAN, DirectoryEntry: IMAGE_DIRECTORY_ENTRY, Size: ?*u32, ) callconv(@import("std").os.windows.WINAPI) ?*anyopaque; pub usingnamespace switch (@import("../../zig.zig").arch) { .X64, .Arm64 => struct { pub extern "dbghelp" fn ImageRvaToSection( NtHeaders: ?*IMAGE_NT_HEADERS64, Base: ?*anyopaque, Rva: u32, ) callconv(@import("std").os.windows.WINAPI) ?*IMAGE_SECTION_HEADER; }, else => struct {}, }; pub usingnamespace switch (@import("../../zig.zig").arch) { .X64, .Arm64 => struct { pub extern "dbghelp" fn ImageRvaToVa( NtHeaders: ?*IMAGE_NT_HEADERS64, Base: ?*anyopaque, Rva: u32, LastRvaSection: ?*?*IMAGE_SECTION_HEADER, ) callconv(@import("std").os.windows.WINAPI) ?*anyopaque; }, else => struct {}, }; pub extern "dbghelp" fn SearchTreeForFile( RootPath: ?[*:0]const u8, InputPathName: ?[*:0]const u8, OutputPathBuffer: ?PSTR, ) callconv(@import("std").os.windows.WINAPI) BOOL; pub extern "dbghelp" fn SearchTreeForFileW( RootPath: ?[*:0]const u16, InputPathName: ?[*:0]const u16, OutputPathBuffer: ?PWSTR, ) callconv(@import("std").os.windows.WINAPI) BOOL; pub extern "dbghelp" fn EnumDirTree( hProcess: ?HANDLE, RootPath: ?[*:0]const u8, InputPathName: ?[*:0]const u8, OutputPathBuffer: ?PSTR, cb: ?PENUMDIRTREE_CALLBACK, data: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) BOOL; pub extern "dbghelp" fn EnumDirTreeW( hProcess: ?HANDLE, RootPath: ?[*:0]const u16, InputPathName: ?[*:0]const u16, OutputPathBuffer: ?PWSTR, cb: ?PENUMDIRTREE_CALLBACKW, data: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) BOOL; pub extern "dbghelp" fn MakeSureDirectoryPathExists( DirPath: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) BOOL; pub extern "dbghelp" fn UnDecorateSymbolName( name: ?[*:0]const u8, outputString: [*:0]u8, maxStringLength: u32, flags: u32, ) callconv(@import("std").os.windows.WINAPI) u32; pub extern "dbghelp" fn UnDecorateSymbolNameW( name: ?[*:0]const u16, outputString: [*:0]u16, maxStringLength: u32, flags: u32, ) callconv(@import("std").os.windows.WINAPI) u32; pub extern "dbghelp" fn StackWalk64( MachineType: u32, hProcess: ?HANDLE, hThread: ?HANDLE, StackFrame: ?*STACKFRAME64, ContextRecord: ?*anyopaque, ReadMemoryRoutine: ?PREAD_PROCESS_MEMORY_ROUTINE64, FunctionTableAccessRoutine: ?PFUNCTION_TABLE_ACCESS_ROUTINE64, GetModuleBaseRoutine: ?PGET_MODULE_BASE_ROUTINE64, TranslateAddress: ?PTRANSLATE_ADDRESS_ROUTINE64, ) callconv(@import("std").os.windows.WINAPI) BOOL; pub extern "dbghelp" fn StackWalkEx( MachineType: u32, hProcess: ?HANDLE, hThread: ?HANDLE, StackFrame: ?*STACKFRAME_EX, ContextRecord: ?*anyopaque, ReadMemoryRoutine: ?PREAD_PROCESS_MEMORY_ROUTINE64, FunctionTableAccessRoutine: ?PFUNCTION_TABLE_ACCESS_ROUTINE64, GetModuleBaseRoutine: ?PGET_MODULE_BASE_ROUTINE64, TranslateAddress: ?PTRANSLATE_ADDRESS_ROUTINE64, Flags: u32, ) callconv(@import("std").os.windows.WINAPI) BOOL; pub extern "dbghelp" fn ImagehlpApiVersion() callconv(@import("std").os.windows.WINAPI) ?*API_VERSION; pub extern "dbghelp" fn ImagehlpApiVersionEx( AppVersion: ?*API_VERSION, ) callconv(@import("std").os.windows.WINAPI) ?*API_VERSION; pub extern "dbghelp" fn GetTimestampForLoadedLibrary( Module: ?HINSTANCE, ) callconv(@import("std").os.windows.WINAPI) u32; pub extern "dbghelp" fn SymSetParentWindow( hwnd: ?HWND, ) callconv(@import("std").os.windows.WINAPI) BOOL; pub extern "dbghelp" fn SymSetHomeDirectory( hProcess: ?HANDLE, dir: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) ?PSTR; pub extern "dbghelp" fn SymSetHomeDirectoryW( hProcess: ?HANDLE, dir: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) ?PWSTR; pub extern "dbghelp" fn SymGetHomeDirectory( type: IMAGEHLP_HD_TYPE, dir: [*:0]u8, size: usize, ) callconv(@import("std").os.windows.WINAPI) ?PSTR; pub extern "dbghelp" fn SymGetHomeDirectoryW( type: IMAGEHLP_HD_TYPE, dir: [*:0]u16, size: usize, ) callconv(@import("std").os.windows.WINAPI) ?PWSTR; pub extern "dbghelp" fn SymGetOmaps( hProcess: ?HANDLE, BaseOfDll: u64, OmapTo: ?*?*OMAP, cOmapTo: ?*u64, OmapFrom: ?*?*OMAP, cOmapFrom: ?*u64, ) callconv(@import("std").os.windows.WINAPI) BOOL; pub extern "dbghelp" fn SymSetOptions( SymOptions: u32, ) callconv(@import("std").os.windows.WINAPI) u32; pub extern "dbghelp" fn SymGetOptions() callconv(@import("std").os.windows.WINAPI) u32; pub extern "dbghelp" fn SymCleanup( hProcess: ?HANDLE, ) callconv(@import("std").os.windows.WINAPI) BOOL; pub extern "dbghelp" fn SymGetExtendedOption( option: IMAGEHLP_EXTENDED_OPTIONS, ) callconv(@import("std").os.windows.WINAPI) BOOL; pub extern "dbghelp" fn SymSetExtendedOption( option: IMAGEHLP_EXTENDED_OPTIONS, value: BOOL, ) callconv(@import("std").os.windows.WINAPI) BOOL; pub extern "dbghelp" fn SymMatchString( string: ?[*:0]const u8, expression: ?[*:0]const u8, fCase: BOOL, ) callconv(@import("std").os.windows.WINAPI) BOOL; pub extern "dbghelp" fn SymMatchStringA( string: ?[*:0]const u8, expression: ?[*:0]const u8, fCase: BOOL, ) callconv(@import("std").os.windows.WINAPI) BOOL; pub extern "dbghelp" fn SymMatchStringW( string: ?[*:0]const u16, expression: ?[*:0]const u16, fCase: BOOL, ) callconv(@import("std").os.windows.WINAPI) BOOL; pub extern "dbghelp" fn SymEnumSourceFiles( hProcess: ?HANDLE, ModBase: u64, Mask: ?[*:0]const u8, cbSrcFiles: ?PSYM_ENUMSOURCEFILES_CALLBACK, UserContext: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) BOOL; pub extern "dbghelp" fn SymEnumSourceFilesW( hProcess: ?HANDLE, ModBase: u64, Mask: ?[*:0]const u16, cbSrcFiles: ?PSYM_ENUMSOURCEFILES_CALLBACKW, UserContext: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) BOOL; pub extern "dbghelp" fn SymEnumerateModules64( hProcess: ?HANDLE, EnumModulesCallback: ?PSYM_ENUMMODULES_CALLBACK64, UserContext: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) BOOL; pub extern "dbghelp" fn SymEnumerateModulesW64( hProcess: ?HANDLE, EnumModulesCallback: ?PSYM_ENUMMODULES_CALLBACKW64, UserContext: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) BOOL; pub extern "dbghelp" fn EnumerateLoadedModulesEx( hProcess: ?HANDLE, EnumLoadedModulesCallback: ?PENUMLOADED_MODULES_CALLBACK64, UserContext: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) BOOL; pub extern "dbghelp" fn EnumerateLoadedModulesExW( hProcess: ?HANDLE, EnumLoadedModulesCallback: ?PENUMLOADED_MODULES_CALLBACKW64, UserContext: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) BOOL; pub extern "dbghelp" fn EnumerateLoadedModules64( hProcess: ?HANDLE, EnumLoadedModulesCallback: ?PENUMLOADED_MODULES_CALLBACK64, UserContext: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) BOOL; pub extern "dbghelp" fn EnumerateLoadedModulesW64( hProcess: ?HANDLE, EnumLoadedModulesCallback: ?PENUMLOADED_MODULES_CALLBACKW64, UserContext: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) BOOL; pub extern "dbghelp" fn SymFunctionTableAccess64( hProcess: ?HANDLE, AddrBase: u64, ) callconv(@import("std").os.windows.WINAPI) ?*anyopaque; pub extern "dbghelp" fn SymFunctionTableAccess64AccessRoutines( hProcess: ?HANDLE, AddrBase: u64, ReadMemoryRoutine: ?PREAD_PROCESS_MEMORY_ROUTINE64, GetModuleBaseRoutine: ?PGET_MODULE_BASE_ROUTINE64, ) callconv(@import("std").os.windows.WINAPI) ?*anyopaque; pub extern "dbghelp" fn SymGetUnwindInfo( hProcess: ?HANDLE, Address: u64, // TODO: what to do with BytesParamIndex 3? Buffer: ?*anyopaque, Size: ?*u32, ) callconv(@import("std").os.windows.WINAPI) BOOL; pub extern "dbghelp" fn SymGetModuleInfo64( hProcess: ?HANDLE, qwAddr: u64, ModuleInfo: ?*IMAGEHLP_MODULE64, ) callconv(@import("std").os.windows.WINAPI) BOOL; pub extern "dbghelp" fn SymGetModuleInfoW64( hProcess: ?HANDLE, qwAddr: u64, ModuleInfo: ?*IMAGEHLP_MODULEW64, ) callconv(@import("std").os.windows.WINAPI) BOOL; pub extern "dbghelp" fn SymGetModuleBase64( hProcess: ?HANDLE, qwAddr: u64, ) callconv(@import("std").os.windows.WINAPI) u64; pub extern "dbghelp" fn SymEnumLines( hProcess: ?HANDLE, Base: u64, Obj: ?[*:0]const u8, File: ?[*:0]const u8, EnumLinesCallback: ?PSYM_ENUMLINES_CALLBACK, UserContext: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) BOOL; pub extern "dbghelp" fn SymEnumLinesW( hProcess: ?HANDLE, Base: u64, Obj: ?[*:0]const u16, File: ?[*:0]const u16, EnumLinesCallback: ?PSYM_ENUMLINES_CALLBACKW, UserContext: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) BOOL; pub extern "dbghelp" fn SymGetLineFromAddr64( hProcess: ?HANDLE, qwAddr: u64, pdwDisplacement: ?*u32, Line64: ?*IMAGEHLP_LINE64, ) callconv(@import("std").os.windows.WINAPI) BOOL; pub extern "dbghelp" fn SymGetLineFromAddrW64( hProcess: ?HANDLE, dwAddr: u64, pdwDisplacement: ?*u32, Line: ?*IMAGEHLP_LINEW64, ) callconv(@import("std").os.windows.WINAPI) BOOL; pub extern "dbghelp" fn SymGetLineFromInlineContext( hProcess: ?HANDLE, qwAddr: u64, InlineContext: u32, qwModuleBaseAddress: u64, pdwDisplacement: ?*u32, Line64: ?*IMAGEHLP_LINE64, ) callconv(@import("std").os.windows.WINAPI) BOOL; pub extern "dbghelp" fn SymGetLineFromInlineContextW( hProcess: ?HANDLE, dwAddr: u64, InlineContext: u32, qwModuleBaseAddress: u64, pdwDisplacement: ?*u32, Line: ?*IMAGEHLP_LINEW64, ) callconv(@import("std").os.windows.WINAPI) BOOL; pub extern "dbghelp" fn SymEnumSourceLines( hProcess: ?HANDLE, Base: u64, Obj: ?[*:0]const u8, File: ?[*:0]const u8, Line: u32, Flags: u32, EnumLinesCallback: ?PSYM_ENUMLINES_CALLBACK, UserContext: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) BOOL; pub extern "dbghelp" fn SymEnumSourceLinesW( hProcess: ?HANDLE, Base: u64, Obj: ?[*:0]const u16, File: ?[*:0]const u16, Line: u32, Flags: u32, EnumLinesCallback: ?PSYM_ENUMLINES_CALLBACKW, UserContext: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) BOOL; pub extern "dbghelp" fn SymAddrIncludeInlineTrace( hProcess: ?HANDLE, Address: u64, ) callconv(@import("std").os.windows.WINAPI) u32; pub extern "dbghelp" fn SymCompareInlineTrace( hProcess: ?HANDLE, Address1: u64, InlineContext1: u32, RetAddress1: u64, Address2: u64, RetAddress2: u64, ) callconv(@import("std").os.windows.WINAPI) u32; pub extern "dbghelp" fn SymQueryInlineTrace( hProcess: ?HANDLE, StartAddress: u64, StartContext: u32, StartRetAddress: u64, CurAddress: u64, CurContext: ?*u32, CurFrameIndex: ?*u32, ) callconv(@import("std").os.windows.WINAPI) BOOL; pub extern "dbghelp" fn SymGetLineFromName64( hProcess: ?HANDLE, ModuleName: ?[*:0]const u8, FileName: ?[*:0]const u8, dwLineNumber: u32, plDisplacement: ?*i32, Line: ?*IMAGEHLP_LINE64, ) callconv(@import("std").os.windows.WINAPI) BOOL; pub extern "dbghelp" fn SymGetLineFromNameW64( hProcess: ?HANDLE, ModuleName: ?[*:0]const u16, FileName: ?[*:0]const u16, dwLineNumber: u32, plDisplacement: ?*i32, Line: ?*IMAGEHLP_LINEW64, ) callconv(@import("std").os.windows.WINAPI) BOOL; pub extern "dbghelp" fn SymGetLineNext64( hProcess: ?HANDLE, Line: ?*IMAGEHLP_LINE64, ) callconv(@import("std").os.windows.WINAPI) BOOL; pub extern "dbghelp" fn SymGetLineNextW64( hProcess: ?HANDLE, Line: ?*IMAGEHLP_LINEW64, ) callconv(@import("std").os.windows.WINAPI) BOOL; pub extern "dbghelp" fn SymGetLinePrev64( hProcess: ?HANDLE, Line: ?*IMAGEHLP_LINE64, ) callconv(@import("std").os.windows.WINAPI) BOOL; pub extern "dbghelp" fn SymGetLinePrevW64( hProcess: ?HANDLE, Line: ?*IMAGEHLP_LINEW64, ) callconv(@import("std").os.windows.WINAPI) BOOL; pub extern "dbghelp" fn SymGetFileLineOffsets64( hProcess: ?HANDLE, ModuleName: ?[*:0]const u8, FileName: ?[*:0]const u8, Buffer: [*]u64, BufferLines: u32, ) callconv(@import("std").os.windows.WINAPI) u32; pub extern "dbghelp" fn SymMatchFileName( FileName: ?[*:0]const u8, Match: ?[*:0]const u8, FileNameStop: ?*?PSTR, MatchStop: ?*?PSTR, ) callconv(@import("std").os.windows.WINAPI) BOOL; pub extern "dbghelp" fn SymMatchFileNameW( FileName: ?[*:0]const u16, Match: ?[*:0]const u16, FileNameStop: ?*?PWSTR, MatchStop: ?*?PWSTR, ) callconv(@import("std").os.windows.WINAPI) BOOL; pub extern "dbghelp" fn SymGetSourceFile( hProcess: ?HANDLE, Base: u64, Params: ?[*:0]const u8, FileSpec: ?[*:0]const u8, FilePath: [*:0]u8, Size: u32, ) callconv(@import("std").os.windows.WINAPI) BOOL; pub extern "dbghelp" fn SymGetSourceFileW( hProcess: ?HANDLE, Base: u64, Params: ?[*:0]const u16, FileSpec: ?[*:0]const u16, FilePath: [*:0]u16, Size: u32, ) callconv(@import("std").os.windows.WINAPI) BOOL; pub extern "dbghelp" fn SymGetSourceFileToken( hProcess: ?HANDLE, Base: u64, FileSpec: ?[*:0]const u8, Token: ?*?*anyopaque, Size: ?*u32, ) callconv(@import("std").os.windows.WINAPI) BOOL; pub extern "dbghelp" fn SymGetSourceFileTokenByTokenName( hProcess: ?HANDLE, Base: u64, FileSpec: ?[*:0]const u8, TokenName: ?[*:0]const u8, TokenParameters: ?[*:0]const u8, Token: ?*?*anyopaque, Size: ?*u32, ) callconv(@import("std").os.windows.WINAPI) BOOL; pub extern "dbghelp" fn SymGetSourceFileChecksumW( hProcess: ?HANDLE, Base: u64, FileSpec: ?[*:0]const u16, pCheckSumType: ?*u32, pChecksum: [*:0]u8, checksumSize: u32, pActualBytesWritten: ?*u32, ) callconv(@import("std").os.windows.WINAPI) BOOL; pub extern "dbghelp" fn SymGetSourceFileChecksum( hProcess: ?HANDLE, Base: u64, FileSpec: ?[*:0]const u8, pCheckSumType: ?*u32, pChecksum: [*:0]u8, checksumSize: u32, pActualBytesWritten: ?*u32, ) callconv(@import("std").os.windows.WINAPI) BOOL; pub extern "dbghelp" fn SymGetSourceFileTokenW( hProcess: ?HANDLE, Base: u64, FileSpec: ?[*:0]const u16, Token: ?*?*anyopaque, Size: ?*u32, ) callconv(@import("std").os.windows.WINAPI) BOOL; pub extern "dbghelp" fn SymGetSourceFileTokenByTokenNameW( hProcess: ?HANDLE, Base: u64, FileSpec: ?[*:0]const u16, TokenName: ?[*:0]const u16, TokenParameters: ?[*:0]const u16, Token: ?*?*anyopaque, Size: ?*u32, ) callconv(@import("std").os.windows.WINAPI) BOOL; pub extern "dbghelp" fn SymGetSourceFileFromToken( hProcess: ?HANDLE, Token: ?*anyopaque, Params: ?[*:0]const u8, FilePath: [*:0]u8, Size: u32, ) callconv(@import("std").os.windows.WINAPI) BOOL; pub extern "dbghelp" fn SymGetSourceFileFromTokenByTokenName( hProcess: ?HANDLE, Token: ?*anyopaque, TokenName: ?[*:0]const u8, Params: ?[*:0]const u8, FilePath: [*:0]u8, Size: u32, ) callconv(@import("std").os.windows.WINAPI) BOOL; pub extern "dbghelp" fn SymGetSourceFileFromTokenW( hProcess: ?HANDLE, Token: ?*anyopaque, Params: ?[*:0]const u16, FilePath: [*:0]u16, Size: u32, ) callconv(@import("std").os.windows.WINAPI) BOOL; pub extern "dbghelp" fn SymGetSourceFileFromTokenByTokenNameW( hProcess: ?HANDLE, Token: ?*anyopaque, TokenName: ?[*:0]const u16, Params: ?[*:0]const u16, FilePath: [*:0]u16, Size: u32, ) callconv(@import("std").os.windows.WINAPI) BOOL; pub extern "dbghelp" fn SymGetSourceVarFromToken( hProcess: ?HANDLE, Token: ?*anyopaque, Params: ?[*:0]const u8, VarName: ?[*:0]const u8, Value: [*:0]u8, Size: u32, ) callconv(@import("std").os.windows.WINAPI) BOOL; pub extern "dbghelp" fn SymGetSourceVarFromTokenW( hProcess: ?HANDLE, Token: ?*anyopaque, Params: ?[*:0]const u16, VarName: ?[*:0]const u16, Value: [*:0]u16, Size: u32, ) callconv(@import("std").os.windows.WINAPI) BOOL; pub extern "dbghelp" fn SymEnumSourceFileTokens( hProcess: ?HANDLE, Base: u64, Callback: ?PENUMSOURCEFILETOKENSCALLBACK, ) callconv(@import("std").os.windows.WINAPI) BOOL; pub extern "dbghelp" fn SymInitialize( hProcess: ?HANDLE, UserSearchPath: ?[*:0]const u8, fInvadeProcess: BOOL, ) callconv(@import("std").os.windows.WINAPI) BOOL; pub extern "dbghelp" fn SymInitializeW( hProcess: ?HANDLE, UserSearchPath: ?[*:0]const u16, fInvadeProcess: BOOL, ) callconv(@import("std").os.windows.WINAPI) BOOL; pub extern "dbghelp" fn SymGetSearchPath( hProcess: ?HANDLE, SearchPathA: [*:0]u8, SearchPathLength: u32, ) callconv(@import("std").os.windows.WINAPI) BOOL; pub extern "dbghelp" fn SymGetSearchPathW( hProcess: ?HANDLE, SearchPathA: [*:0]u16, SearchPathLength: u32, ) callconv(@import("std").os.windows.WINAPI) BOOL; pub extern "dbghelp" fn SymSetSearchPath( hProcess: ?HANDLE, SearchPathA: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) BOOL; pub extern "dbghelp" fn SymSetSearchPathW( hProcess: ?HANDLE, SearchPathA: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) BOOL; // This function from dll 'dbghelp' is being skipped because it has some sort of issue pub fn SymLoadModuleEx() void { @panic("this function is not working"); } // This function from dll 'dbghelp' is being skipped because it has some sort of issue pub fn SymLoadModuleExW() void { @panic("this function is not working"); } pub extern "dbghelp" fn SymUnloadModule64( hProcess: ?HANDLE, BaseOfDll: u64, ) callconv(@import("std").os.windows.WINAPI) BOOL; pub extern "dbghelp" fn SymUnDName64( sym: ?*IMAGEHLP_SYMBOL64, UnDecName: [*:0]u8, UnDecNameLength: u32, ) callconv(@import("std").os.windows.WINAPI) BOOL; pub extern "dbghelp" fn SymRegisterCallback64( hProcess: ?HANDLE, CallbackFunction: ?PSYMBOL_REGISTERED_CALLBACK64, UserContext: u64, ) callconv(@import("std").os.windows.WINAPI) BOOL; pub extern "dbghelp" fn SymRegisterCallbackW64( hProcess: ?HANDLE, CallbackFunction: ?PSYMBOL_REGISTERED_CALLBACK64, UserContext: u64, ) callconv(@import("std").os.windows.WINAPI) BOOL; pub extern "dbghelp" fn SymRegisterFunctionEntryCallback64( hProcess: ?HANDLE, CallbackFunction: ?PSYMBOL_FUNCENTRY_CALLBACK64, UserContext: u64, ) callconv(@import("std").os.windows.WINAPI) BOOL; pub extern "dbghelp" fn SymSetContext( hProcess: ?HANDLE, StackFrame: ?*IMAGEHLP_STACK_FRAME, Context: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) BOOL; pub extern "dbghelp" fn SymSetScopeFromAddr( hProcess: ?HANDLE, Address: u64, ) callconv(@import("std").os.windows.WINAPI) BOOL; pub extern "dbghelp" fn SymSetScopeFromInlineContext( hProcess: ?HANDLE, Address: u64, InlineContext: u32, ) callconv(@import("std").os.windows.WINAPI) BOOL; pub extern "dbghelp" fn SymSetScopeFromIndex( hProcess: ?HANDLE, BaseOfDll: u64, Index: u32, ) callconv(@import("std").os.windows.WINAPI) BOOL; pub extern "dbghelp" fn SymEnumProcesses( EnumProcessesCallback: ?PSYM_ENUMPROCESSES_CALLBACK, UserContext: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) BOOL; pub extern "dbghelp" fn SymFromAddr( hProcess: ?HANDLE, Address: u64, Displacement: ?*u64, Symbol: ?*SYMBOL_INFO, ) callconv(@import("std").os.windows.WINAPI) BOOL; pub extern "dbghelp" fn SymFromAddrW( hProcess: ?HANDLE, Address: u64, Displacement: ?*u64, Symbol: ?*SYMBOL_INFOW, ) callconv(@import("std").os.windows.WINAPI) BOOL; pub extern "dbghelp" fn SymFromInlineContext( hProcess: ?HANDLE, Address: u64, InlineContext: u32, Displacement: ?*u64, Symbol: ?*SYMBOL_INFO, ) callconv(@import("std").os.windows.WINAPI) BOOL; pub extern "dbghelp" fn SymFromInlineContextW( hProcess: ?HANDLE, Address: u64, InlineContext: u32, Displacement: ?*u64, Symbol: ?*SYMBOL_INFOW, ) callconv(@import("std").os.windows.WINAPI) BOOL; pub extern "dbghelp" fn SymFromToken( hProcess: ?HANDLE, Base: u64, Token: u32, Symbol: ?*SYMBOL_INFO, ) callconv(@import("std").os.windows.WINAPI) BOOL; pub extern "dbghelp" fn SymFromTokenW( hProcess: ?HANDLE, Base: u64, Token: u32, Symbol: ?*SYMBOL_INFOW, ) callconv(@import("std").os.windows.WINAPI) BOOL; pub extern "dbghelp" fn SymNext( hProcess: ?HANDLE, si: ?*SYMBOL_INFO, ) callconv(@import("std").os.windows.WINAPI) BOOL; pub extern "dbghelp" fn SymNextW( hProcess: ?HANDLE, siw: ?*SYMBOL_INFOW, ) callconv(@import("std").os.windows.WINAPI) BOOL; pub extern "dbghelp" fn SymPrev( hProcess: ?HANDLE, si: ?*SYMBOL_INFO, ) callconv(@import("std").os.windows.WINAPI) BOOL; pub extern "dbghelp" fn SymPrevW( hProcess: ?HANDLE, siw: ?*SYMBOL_INFOW, ) callconv(@import("std").os.windows.WINAPI) BOOL; pub extern "dbghelp" fn SymFromName( hProcess: ?HANDLE, Name: ?[*:0]const u8, Symbol: ?*SYMBOL_INFO, ) callconv(@import("std").os.windows.WINAPI) BOOL; pub extern "dbghelp" fn SymFromNameW( hProcess: ?HANDLE, Name: ?[*:0]const u16, Symbol: ?*SYMBOL_INFOW, ) callconv(@import("std").os.windows.WINAPI) BOOL; pub extern "dbghelp" fn SymEnumSymbols( hProcess: ?HANDLE, BaseOfDll: u64, Mask: ?[*:0]const u8, EnumSymbolsCallback: ?PSYM_ENUMERATESYMBOLS_CALLBACK, UserContext: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) BOOL; pub extern "dbghelp" fn SymEnumSymbolsEx( hProcess: ?HANDLE, BaseOfDll: u64, Mask: ?[*:0]const u8, EnumSymbolsCallback: ?PSYM_ENUMERATESYMBOLS_CALLBACK, UserContext: ?*anyopaque, Options: u32, ) callconv(@import("std").os.windows.WINAPI) BOOL; pub extern "dbghelp" fn SymEnumSymbolsW( hProcess: ?HANDLE, BaseOfDll: u64, Mask: ?[*:0]const u16, EnumSymbolsCallback: ?PSYM_ENUMERATESYMBOLS_CALLBACKW, UserContext: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) BOOL; pub extern "dbghelp" fn SymEnumSymbolsExW( hProcess: ?HANDLE, BaseOfDll: u64, Mask: ?[*:0]const u16, EnumSymbolsCallback: ?PSYM_ENUMERATESYMBOLS_CALLBACKW, UserContext: ?*anyopaque, Options: u32, ) callconv(@import("std").os.windows.WINAPI) BOOL; pub extern "dbghelp" fn SymEnumSymbolsForAddr( hProcess: ?HANDLE, Address: u64, EnumSymbolsCallback: ?PSYM_ENUMERATESYMBOLS_CALLBACK, UserContext: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) BOOL; pub extern "dbghelp" fn SymEnumSymbolsForAddrW( hProcess: ?HANDLE, Address: u64, EnumSymbolsCallback: ?PSYM_ENUMERATESYMBOLS_CALLBACKW, UserContext: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) BOOL; pub extern "dbghelp" fn SymSearch( hProcess: ?HANDLE, BaseOfDll: u64, Index: u32, SymTag: u32, Mask: ?[*:0]const u8, Address: u64, EnumSymbolsCallback: ?PSYM_ENUMERATESYMBOLS_CALLBACK, UserContext: ?*anyopaque, Options: u32, ) callconv(@import("std").os.windows.WINAPI) BOOL; pub extern "dbghelp" fn SymSearchW( hProcess: ?HANDLE, BaseOfDll: u64, Index: u32, SymTag: u32, Mask: ?[*:0]const u16, Address: u64, EnumSymbolsCallback: ?PSYM_ENUMERATESYMBOLS_CALLBACKW, UserContext: ?*anyopaque, Options: u32, ) callconv(@import("std").os.windows.WINAPI) BOOL; pub extern "dbghelp" fn SymGetScope( hProcess: ?HANDLE, BaseOfDll: u64, Index: u32, Symbol: ?*SYMBOL_INFO, ) callconv(@import("std").os.windows.WINAPI) BOOL; pub extern "dbghelp" fn SymGetScopeW( hProcess: ?HANDLE, BaseOfDll: u64, Index: u32, Symbol: ?*SYMBOL_INFOW, ) callconv(@import("std").os.windows.WINAPI) BOOL; pub extern "dbghelp" fn SymFromIndex( hProcess: ?HANDLE, BaseOfDll: u64, Index: u32, Symbol: ?*SYMBOL_INFO, ) callconv(@import("std").os.windows.WINAPI) BOOL; pub extern "dbghelp" fn SymFromIndexW( hProcess: ?HANDLE, BaseOfDll: u64, Index: u32, Symbol: ?*SYMBOL_INFOW, ) callconv(@import("std").os.windows.WINAPI) BOOL; pub extern "dbghelp" fn SymGetTypeInfo( hProcess: ?HANDLE, ModBase: u64, TypeId: u32, GetType: IMAGEHLP_SYMBOL_TYPE_INFO, pInfo: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) BOOL; pub extern "dbghelp" fn SymGetTypeInfoEx( hProcess: ?HANDLE, ModBase: u64, Params: ?*IMAGEHLP_GET_TYPE_INFO_PARAMS, ) callconv(@import("std").os.windows.WINAPI) BOOL; pub extern "dbghelp" fn SymEnumTypes( hProcess: ?HANDLE, BaseOfDll: u64, EnumSymbolsCallback: ?PSYM_ENUMERATESYMBOLS_CALLBACK, UserContext: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) BOOL; pub extern "dbghelp" fn SymEnumTypesW( hProcess: ?HANDLE, BaseOfDll: u64, EnumSymbolsCallback: ?PSYM_ENUMERATESYMBOLS_CALLBACKW, UserContext: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) BOOL; pub extern "dbghelp" fn SymEnumTypesByName( hProcess: ?HANDLE, BaseOfDll: u64, mask: ?[*:0]const u8, EnumSymbolsCallback: ?PSYM_ENUMERATESYMBOLS_CALLBACK, UserContext: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) BOOL; pub extern "dbghelp" fn SymEnumTypesByNameW( hProcess: ?HANDLE, BaseOfDll: u64, mask: ?[*:0]const u16, EnumSymbolsCallback: ?PSYM_ENUMERATESYMBOLS_CALLBACKW, UserContext: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) BOOL; pub extern "dbghelp" fn SymGetTypeFromName( hProcess: ?HANDLE, BaseOfDll: u64, Name: ?[*:0]const u8, Symbol: ?*SYMBOL_INFO, ) callconv(@import("std").os.windows.WINAPI) BOOL; pub extern "dbghelp" fn SymGetTypeFromNameW( hProcess: ?HANDLE, BaseOfDll: u64, Name: ?[*:0]const u16, Symbol: ?*SYMBOL_INFOW, ) callconv(@import("std").os.windows.WINAPI) BOOL; pub extern "dbghelp" fn SymAddSymbol( hProcess: ?HANDLE, BaseOfDll: u64, Name: ?[*:0]const u8, Address: u64, Size: u32, Flags: u32, ) callconv(@import("std").os.windows.WINAPI) BOOL; pub extern "dbghelp" fn SymAddSymbolW( hProcess: ?HANDLE, BaseOfDll: u64, Name: ?[*:0]const u16, Address: u64, Size: u32, Flags: u32, ) callconv(@import("std").os.windows.WINAPI) BOOL; pub extern "dbghelp" fn SymDeleteSymbol( hProcess: ?HANDLE, BaseOfDll: u64, Name: ?[*:0]const u8, Address: u64, Flags: u32, ) callconv(@import("std").os.windows.WINAPI) BOOL; pub extern "dbghelp" fn SymDeleteSymbolW( hProcess: ?HANDLE, BaseOfDll: u64, Name: ?[*:0]const u16, Address: u64, Flags: u32, ) callconv(@import("std").os.windows.WINAPI) BOOL; pub extern "dbghelp" fn SymRefreshModuleList( hProcess: ?HANDLE, ) callconv(@import("std").os.windows.WINAPI) BOOL; pub extern "dbghelp" fn SymAddSourceStream( hProcess: ?HANDLE, Base: u64, StreamFile: ?[*:0]const u8, // TODO: what to do with BytesParamIndex 4? Buffer: ?*u8, Size: usize, ) callconv(@import("std").os.windows.WINAPI) BOOL; pub extern "dbghelp" fn SymAddSourceStreamA( hProcess: ?HANDLE, Base: u64, StreamFile: ?[*:0]const u8, // TODO: what to do with BytesParamIndex 4? Buffer: ?*u8, Size: usize, ) callconv(@import("std").os.windows.WINAPI) BOOL; pub extern "dbghelp" fn SymAddSourceStreamW( hProcess: ?HANDLE, Base: u64, FileSpec: ?[*:0]const u16, // TODO: what to do with BytesParamIndex 4? Buffer: ?*u8, Size: usize, ) callconv(@import("std").os.windows.WINAPI) BOOL; pub extern "dbghelp" fn SymSrvIsStoreW( hProcess: ?HANDLE, path: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) BOOL; pub extern "dbghelp" fn SymSrvIsStore( hProcess: ?HANDLE, path: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) BOOL; pub extern "dbghelp" fn SymSrvDeltaName( hProcess: ?HANDLE, SymPath: ?[*:0]const u8, Type: ?[*:0]const u8, File1: ?[*:0]const u8, File2: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) ?PSTR; pub extern "dbghelp" fn SymSrvDeltaNameW( hProcess: ?HANDLE, SymPath: ?[*:0]const u16, Type: ?[*:0]const u16, File1: ?[*:0]const u16, File2: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) ?PWSTR; pub extern "dbghelp" fn SymSrvGetSupplement( hProcess: ?HANDLE, SymPath: ?[*:0]const u8, Node: ?[*:0]const u8, File: ?[*:0]const u8, ) callconv(@import("std").os.windows.WINAPI) ?PSTR; pub extern "dbghelp" fn SymSrvGetSupplementW( hProcess: ?HANDLE, SymPath: ?[*:0]const u16, Node: ?[*:0]const u16, File: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) ?PWSTR; pub extern "dbghelp" fn SymSrvGetFileIndexes( File: ?[*:0]const u8, Id: ?*Guid, Val1: ?*u32, Val2: ?*u32, Flags: u32, ) callconv(@import("std").os.windows.WINAPI) BOOL; pub extern "dbghelp" fn SymSrvGetFileIndexesW( File: ?[*:0]const u16, Id: ?*Guid, Val1: ?*u32, Val2: ?*u32, Flags: u32, ) callconv(@import("std").os.windows.WINAPI) BOOL; pub extern "dbghelp" fn SymSrvGetFileIndexStringW( hProcess: ?HANDLE, SrvPath: ?[*:0]const u16, File: ?[*:0]const u16, Index: [*:0]u16, Size: usize, Flags: u32, ) callconv(@import("std").os.windows.WINAPI) BOOL; pub extern "dbghelp" fn SymSrvGetFileIndexString( hProcess: ?HANDLE, SrvPath: ?[*:0]const u8, File: ?[*:0]const u8, Index: [*:0]u8, Size: usize, Flags: u32, ) callconv(@import("std").os.windows.WINAPI) BOOL; pub extern "dbghelp" fn SymSrvGetFileIndexInfo( File: ?[*:0]const u8, Info: ?*SYMSRV_INDEX_INFO, Flags: u32, ) callconv(@import("std").os.windows.WINAPI) BOOL; pub extern "dbghelp" fn SymSrvGetFileIndexInfoW( File: ?[*:0]const u16, Info: ?*SYMSRV_INDEX_INFOW, Flags: u32, ) callconv(@import("std").os.windows.WINAPI) BOOL; pub extern "dbghelp" fn SymSrvStoreSupplement( hProcess: ?HANDLE, SrvPath: ?[*:0]const u8, Node: ?[*:0]const u8, File: ?[*:0]const u8, Flags: u32, ) callconv(@import("std").os.windows.WINAPI) ?PSTR; pub extern "dbghelp" fn SymSrvStoreSupplementW( hProcess: ?HANDLE, SymPath: ?[*:0]const u16, Node: ?[*:0]const u16, File: ?[*:0]const u16, Flags: u32, ) callconv(@import("std").os.windows.WINAPI) ?PWSTR; pub extern "dbghelp" fn SymSrvStoreFile( hProcess: ?HANDLE, SrvPath: ?[*:0]const u8, File: ?[*:0]const u8, Flags: SYM_SRV_STORE_FILE_FLAGS, ) callconv(@import("std").os.windows.WINAPI) ?PSTR; pub extern "dbghelp" fn SymSrvStoreFileW( hProcess: ?HANDLE, SrvPath: ?[*:0]const u16, File: ?[*:0]const u16, Flags: SYM_SRV_STORE_FILE_FLAGS, ) callconv(@import("std").os.windows.WINAPI) ?PWSTR; pub extern "dbghelp" fn SymGetSymbolFile( hProcess: ?HANDLE, SymPath: ?[*:0]const u8, ImageFile: ?[*:0]const u8, Type: IMAGEHLP_SF_TYPE, SymbolFile: [*:0]u8, cSymbolFile: usize, DbgFile: [*:0]u8, cDbgFile: usize, ) callconv(@import("std").os.windows.WINAPI) BOOL; pub extern "dbghelp" fn SymGetSymbolFileW( hProcess: ?HANDLE, SymPath: ?[*:0]const u16, ImageFile: ?[*:0]const u16, Type: IMAGEHLP_SF_TYPE, SymbolFile: [*:0]u16, cSymbolFile: usize, DbgFile: [*:0]u16, cDbgFile: usize, ) callconv(@import("std").os.windows.WINAPI) BOOL; pub extern "dbghelp" fn DbgHelpCreateUserDump( FileName: ?[*:0]const u8, Callback: ?PDBGHELP_CREATE_USER_DUMP_CALLBACK, UserData: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) BOOL; pub extern "dbghelp" fn DbgHelpCreateUserDumpW( FileName: ?[*:0]const u16, Callback: ?PDBGHELP_CREATE_USER_DUMP_CALLBACK, UserData: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) BOOL; pub extern "dbghelp" fn SymGetSymFromAddr64( hProcess: ?HANDLE, qwAddr: u64, pdwDisplacement: ?*u64, Symbol: ?*IMAGEHLP_SYMBOL64, ) callconv(@import("std").os.windows.WINAPI) BOOL; pub extern "dbghelp" fn SymGetSymFromName64( hProcess: ?HANDLE, Name: ?[*:0]const u8, Symbol: ?*IMAGEHLP_SYMBOL64, ) callconv(@import("std").os.windows.WINAPI) BOOL; pub extern "dbghelp" fn FindFileInPath( hprocess: ?HANDLE, SearchPathA: ?[*:0]const u8, FileName: ?[*:0]const u8, id: ?*anyopaque, two: u32, three: u32, flags: u32, FilePath: ?PSTR, ) callconv(@import("std").os.windows.WINAPI) BOOL; pub extern "dbghelp" fn FindFileInSearchPath( hprocess: ?HANDLE, SearchPathA: ?[*:0]const u8, FileName: ?[*:0]const u8, one: u32, two: u32, three: u32, FilePath: ?PSTR, ) callconv(@import("std").os.windows.WINAPI) BOOL; pub extern "dbghelp" fn SymEnumSym( hProcess: ?HANDLE, BaseOfDll: u64, EnumSymbolsCallback: ?PSYM_ENUMERATESYMBOLS_CALLBACK, UserContext: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) BOOL; pub extern "dbghelp" fn SymEnumerateSymbols64( hProcess: ?HANDLE, BaseOfDll: u64, EnumSymbolsCallback: ?PSYM_ENUMSYMBOLS_CALLBACK64, UserContext: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) BOOL; pub extern "dbghelp" fn SymEnumerateSymbolsW64( hProcess: ?HANDLE, BaseOfDll: u64, EnumSymbolsCallback: ?PSYM_ENUMSYMBOLS_CALLBACK64W, UserContext: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) BOOL; pub extern "dbghelp" fn SymLoadModule64( hProcess: ?HANDLE, hFile: ?HANDLE, ImageName: ?[*:0]const u8, ModuleName: ?[*:0]const u8, BaseOfDll: u64, SizeOfDll: u32, ) callconv(@import("std").os.windows.WINAPI) u64; pub extern "dbghelp" fn SymGetSymNext64( hProcess: ?HANDLE, Symbol: ?*IMAGEHLP_SYMBOL64, ) callconv(@import("std").os.windows.WINAPI) BOOL; pub extern "dbghelp" fn SymGetSymPrev64( hProcess: ?HANDLE, Symbol: ?*IMAGEHLP_SYMBOL64, ) callconv(@import("std").os.windows.WINAPI) BOOL; pub extern "dbghelp" fn SetCheckUserInterruptShared( lpStartAddress: ?LPCALL_BACK_USER_INTERRUPT_ROUTINE, ) callconv(@import("std").os.windows.WINAPI) void; pub extern "dbghelp" fn GetSymLoadError() callconv(@import("std").os.windows.WINAPI) u32; pub extern "dbghelp" fn SetSymLoadError( @"error": u32, ) callconv(@import("std").os.windows.WINAPI) void; pub extern "dbghelp" fn ReportSymbolLoadSummary( hProcess: ?HANDLE, pLoadModule: ?[*:0]const u16, pSymbolData: ?*DBGHELP_DATA_REPORT_STRUCT, ) callconv(@import("std").os.windows.WINAPI) BOOL; pub extern "dbghelp" fn RemoveInvalidModuleList( hProcess: ?HANDLE, ) callconv(@import("std").os.windows.WINAPI) void; pub extern "dbghelp" fn RangeMapCreate() callconv(@import("std").os.windows.WINAPI) ?*anyopaque; pub extern "dbghelp" fn RangeMapFree( RmapHandle: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) void; pub extern "dbghelp" fn RangeMapAddPeImageSections( RmapHandle: ?*anyopaque, ImageName: ?[*:0]const u16, // TODO: what to do with BytesParamIndex 3? MappedImage: ?*anyopaque, MappingBytes: u32, ImageBase: u64, UserTag: u64, MappingFlags: u32, ) callconv(@import("std").os.windows.WINAPI) BOOL; pub extern "dbghelp" fn RangeMapRemove( RmapHandle: ?*anyopaque, UserTag: u64, ) callconv(@import("std").os.windows.WINAPI) BOOL; pub extern "dbghelp" fn RangeMapRead( RmapHandle: ?*anyopaque, Offset: u64, // TODO: what to do with BytesParamIndex 3? Buffer: ?*anyopaque, RequestBytes: u32, Flags: u32, DoneBytes: ?*u32, ) callconv(@import("std").os.windows.WINAPI) BOOL; pub extern "dbghelp" fn RangeMapWrite( RmapHandle: ?*anyopaque, Offset: u64, // TODO: what to do with BytesParamIndex 3? Buffer: ?*anyopaque, RequestBytes: u32, Flags: u32, DoneBytes: ?*u32, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "user32" fn MessageBeep( uType: u32, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "kernel32" fn FatalExit( ExitCode: i32, ) callconv(@import("std").os.windows.WINAPI) void; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "kernel32" fn GetThreadSelectorEntry( hThread: ?HANDLE, dwSelector: u32, lpSelectorEntry: ?*LDT_ENTRY, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows6.1' pub extern "kernel32" fn Wow64GetThreadSelectorEntry( hThread: ?HANDLE, dwSelector: u32, lpSelectorEntry: ?*WOW64_LDT_ENTRY, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "kernel32" fn DebugSetProcessKillOnExit( KillOnExit: BOOL, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "kernel32" fn DebugBreakProcess( Process: ?HANDLE, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "kernel32" fn FormatMessageA( dwFlags: FORMAT_MESSAGE_OPTIONS, lpSource: ?*const anyopaque, dwMessageId: u32, dwLanguageId: u32, lpBuffer: ?PSTR, nSize: u32, Arguments: ?*?*i8, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "kernel32" fn FormatMessageW( dwFlags: FORMAT_MESSAGE_OPTIONS, lpSource: ?*const anyopaque, dwMessageId: u32, dwLanguageId: u32, lpBuffer: ?PWSTR, nSize: u32, Arguments: ?*?*i8, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'windows6.1' pub extern "kernel32" fn CopyContext( Destination: ?*CONTEXT, ContextFlags: u32, Source: ?*CONTEXT, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows6.1' pub extern "kernel32" fn InitializeContext( // TODO: what to do with BytesParamIndex 3? Buffer: ?*anyopaque, ContextFlags: u32, Context: ?*?*CONTEXT, ContextLength: ?*u32, ) callconv(@import("std").os.windows.WINAPI) BOOL; pub extern "kernel32" fn InitializeContext2( // TODO: what to do with BytesParamIndex 3? Buffer: ?*anyopaque, ContextFlags: u32, Context: ?*?*CONTEXT, ContextLength: ?*u32, XStateCompactionMask: u64, ) callconv(@import("std").os.windows.WINAPI) BOOL; pub usingnamespace switch (@import("../../zig.zig").arch) { .X86, .X64 => struct { // TODO: this type is limited to platform 'windows6.1' pub extern "kernel32" fn GetEnabledXStateFeatures() callconv(@import("std").os.windows.WINAPI) u64; }, else => struct {}, }; pub usingnamespace switch (@import("../../zig.zig").arch) { .X86, .X64 => struct { // TODO: this type is limited to platform 'windows6.1' pub extern "kernel32" fn GetXStateFeaturesMask( Context: ?*CONTEXT, FeatureMask: ?*u64, ) callconv(@import("std").os.windows.WINAPI) BOOL; }, else => struct {}, }; pub usingnamespace switch (@import("../../zig.zig").arch) { .X86, .X64 => struct { // TODO: this type is limited to platform 'windows6.1' pub extern "kernel32" fn LocateXStateFeature( Context: ?*CONTEXT, FeatureId: u32, Length: ?*u32, ) callconv(@import("std").os.windows.WINAPI) ?*anyopaque; }, else => struct {}, }; pub usingnamespace switch (@import("../../zig.zig").arch) { .X86, .X64 => struct { // TODO: this type is limited to platform 'windows6.1' pub extern "kernel32" fn SetXStateFeaturesMask( Context: ?*CONTEXT, FeatureMask: u64, ) callconv(@import("std").os.windows.WINAPI) BOOL; }, else => struct {}, }; pub usingnamespace switch (@import("../../zig.zig").arch) { .X86 => struct { // TODO: this type is limited to platform 'windows5.1.2600' pub extern "imagehlp" fn CheckSumMappedFile( BaseAddress: ?*anyopaque, FileLength: u32, HeaderSum: ?*u32, CheckSum: ?*u32, ) callconv(@import("std").os.windows.WINAPI) ?*IMAGE_NT_HEADERS32; }, else => struct {}, }; pub usingnamespace switch (@import("../../zig.zig").arch) { .X86 => struct { // TODO: this type is limited to platform 'windows5.1.2600' pub extern "imagehlp" fn GetImageConfigInformation( LoadedImage: ?*LOADED_IMAGE, ImageConfigInformation: ?*IMAGE_LOAD_CONFIG_DIRECTORY32, ) callconv(@import("std").os.windows.WINAPI) BOOL; }, else => struct {}, }; pub usingnamespace switch (@import("../../zig.zig").arch) { .X86 => struct { // TODO: this type is limited to platform 'windows5.1.2600' pub extern "imagehlp" fn SetImageConfigInformation( LoadedImage: ?*LOADED_IMAGE, ImageConfigInformation: ?*IMAGE_LOAD_CONFIG_DIRECTORY32, ) callconv(@import("std").os.windows.WINAPI) BOOL; }, else => struct {}, }; pub usingnamespace switch (@import("../../zig.zig").arch) { .X86 => struct { pub extern "dbghelp" fn ImageNtHeader( Base: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) ?*IMAGE_NT_HEADERS32; }, else => struct {}, }; pub usingnamespace switch (@import("../../zig.zig").arch) { .X86 => struct { pub extern "dbghelp" fn ImageRvaToSection( NtHeaders: ?*IMAGE_NT_HEADERS32, Base: ?*anyopaque, Rva: u32, ) callconv(@import("std").os.windows.WINAPI) ?*IMAGE_SECTION_HEADER; }, else => struct {}, }; pub usingnamespace switch (@import("../../zig.zig").arch) { .X86 => struct { pub extern "dbghelp" fn ImageRvaToVa( NtHeaders: ?*IMAGE_NT_HEADERS32, Base: ?*anyopaque, Rva: u32, LastRvaSection: ?*?*IMAGE_SECTION_HEADER, ) callconv(@import("std").os.windows.WINAPI) ?*anyopaque; }, else => struct {}, }; pub usingnamespace switch (@import("../../zig.zig").arch) { .X86 => struct { pub extern "dbghelp" fn StackWalk( MachineType: u32, hProcess: ?HANDLE, hThread: ?HANDLE, StackFrame: ?*STACKFRAME, ContextRecord: ?*anyopaque, ReadMemoryRoutine: ?PREAD_PROCESS_MEMORY_ROUTINE, FunctionTableAccessRoutine: ?PFUNCTION_TABLE_ACCESS_ROUTINE, GetModuleBaseRoutine: ?PGET_MODULE_BASE_ROUTINE, TranslateAddress: ?PTRANSLATE_ADDRESS_ROUTINE, ) callconv(@import("std").os.windows.WINAPI) BOOL; }, else => struct {}, }; pub usingnamespace switch (@import("../../zig.zig").arch) { .X86 => struct { pub extern "dbghelp" fn SymEnumerateModules( hProcess: ?HANDLE, EnumModulesCallback: ?PSYM_ENUMMODULES_CALLBACK, UserContext: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) BOOL; }, else => struct {}, }; pub usingnamespace switch (@import("../../zig.zig").arch) { .X86 => struct { pub extern "dbghelp" fn EnumerateLoadedModules( hProcess: ?HANDLE, EnumLoadedModulesCallback: ?PENUMLOADED_MODULES_CALLBACK, UserContext: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) BOOL; }, else => struct {}, }; pub usingnamespace switch (@import("../../zig.zig").arch) { .X86 => struct { pub extern "dbghelp" fn SymFunctionTableAccess( hProcess: ?HANDLE, AddrBase: u32, ) callconv(@import("std").os.windows.WINAPI) ?*anyopaque; }, else => struct {}, }; pub usingnamespace switch (@import("../../zig.zig").arch) { .X86 => struct { pub extern "dbghelp" fn SymGetModuleInfo( hProcess: ?HANDLE, dwAddr: u32, ModuleInfo: ?*IMAGEHLP_MODULE, ) callconv(@import("std").os.windows.WINAPI) BOOL; }, else => struct {}, }; pub usingnamespace switch (@import("../../zig.zig").arch) { .X86 => struct { pub extern "dbghelp" fn SymGetModuleInfoW( hProcess: ?HANDLE, dwAddr: u32, ModuleInfo: ?*IMAGEHLP_MODULEW, ) callconv(@import("std").os.windows.WINAPI) BOOL; }, else => struct {}, }; pub usingnamespace switch (@import("../../zig.zig").arch) { .X86 => struct { pub extern "dbghelp" fn SymGetModuleBase( hProcess: ?HANDLE, dwAddr: u32, ) callconv(@import("std").os.windows.WINAPI) u32; }, else => struct {}, }; pub usingnamespace switch (@import("../../zig.zig").arch) { .X86 => struct { pub extern "dbghelp" fn SymGetLineFromAddr( hProcess: ?HANDLE, dwAddr: u32, pdwDisplacement: ?*u32, Line: ?*IMAGEHLP_LINE, ) callconv(@import("std").os.windows.WINAPI) BOOL; }, else => struct {}, }; pub usingnamespace switch (@import("../../zig.zig").arch) { .X86 => struct { pub extern "dbghelp" fn SymGetLineFromName( hProcess: ?HANDLE, ModuleName: ?[*:0]const u8, FileName: ?[*:0]const u8, dwLineNumber: u32, plDisplacement: ?*i32, Line: ?*IMAGEHLP_LINE, ) callconv(@import("std").os.windows.WINAPI) BOOL; }, else => struct {}, }; pub usingnamespace switch (@import("../../zig.zig").arch) { .X86 => struct { pub extern "dbghelp" fn SymGetLineNext( hProcess: ?HANDLE, Line: ?*IMAGEHLP_LINE, ) callconv(@import("std").os.windows.WINAPI) BOOL; }, else => struct {}, }; pub usingnamespace switch (@import("../../zig.zig").arch) { .X86 => struct { pub extern "dbghelp" fn SymGetLinePrev( hProcess: ?HANDLE, Line: ?*IMAGEHLP_LINE, ) callconv(@import("std").os.windows.WINAPI) BOOL; }, else => struct {}, }; pub usingnamespace switch (@import("../../zig.zig").arch) { .X86 => struct { pub extern "dbghelp" fn SymUnloadModule( hProcess: ?HANDLE, BaseOfDll: u32, ) callconv(@import("std").os.windows.WINAPI) BOOL; }, else => struct {}, }; pub usingnamespace switch (@import("../../zig.zig").arch) { .X86 => struct { pub extern "dbghelp" fn SymUnDName( sym: ?*IMAGEHLP_SYMBOL, UnDecName: [*:0]u8, UnDecNameLength: u32, ) callconv(@import("std").os.windows.WINAPI) BOOL; }, else => struct {}, }; pub usingnamespace switch (@import("../../zig.zig").arch) { .X86 => struct { pub extern "dbghelp" fn SymRegisterCallback( hProcess: ?HANDLE, CallbackFunction: ?PSYMBOL_REGISTERED_CALLBACK, UserContext: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) BOOL; }, else => struct {}, }; pub usingnamespace switch (@import("../../zig.zig").arch) { .X86 => struct { pub extern "dbghelp" fn SymRegisterFunctionEntryCallback( hProcess: ?HANDLE, CallbackFunction: ?PSYMBOL_FUNCENTRY_CALLBACK, UserContext: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) BOOL; }, else => struct {}, }; pub usingnamespace switch (@import("../../zig.zig").arch) { .X86 => struct { pub extern "dbghelp" fn SymGetSymFromAddr( hProcess: ?HANDLE, dwAddr: u32, pdwDisplacement: ?*u32, Symbol: ?*IMAGEHLP_SYMBOL, ) callconv(@import("std").os.windows.WINAPI) BOOL; }, else => struct {}, }; pub usingnamespace switch (@import("../../zig.zig").arch) { .X86 => struct { pub extern "dbghelp" fn SymGetSymFromName( hProcess: ?HANDLE, Name: ?[*:0]const u8, Symbol: ?*IMAGEHLP_SYMBOL, ) callconv(@import("std").os.windows.WINAPI) BOOL; }, else => struct {}, }; pub usingnamespace switch (@import("../../zig.zig").arch) { .X86 => struct { pub extern "dbghelp" fn SymEnumerateSymbols( hProcess: ?HANDLE, BaseOfDll: u32, EnumSymbolsCallback: ?PSYM_ENUMSYMBOLS_CALLBACK, UserContext: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) BOOL; }, else => struct {}, }; pub usingnamespace switch (@import("../../zig.zig").arch) { .X86 => struct { pub extern "dbghelp" fn SymEnumerateSymbolsW( hProcess: ?HANDLE, BaseOfDll: u32, EnumSymbolsCallback: ?PSYM_ENUMSYMBOLS_CALLBACKW, UserContext: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) BOOL; }, else => struct {}, }; pub usingnamespace switch (@import("../../zig.zig").arch) { .X86 => struct { pub extern "dbghelp" fn SymLoadModule( hProcess: ?HANDLE, hFile: ?HANDLE, ImageName: ?[*:0]const u8, ModuleName: ?[*:0]const u8, BaseOfDll: u32, SizeOfDll: u32, ) callconv(@import("std").os.windows.WINAPI) u32; }, else => struct {}, }; pub usingnamespace switch (@import("../../zig.zig").arch) { .X86 => struct { pub extern "dbghelp" fn SymGetSymNext( hProcess: ?HANDLE, Symbol: ?*IMAGEHLP_SYMBOL, ) callconv(@import("std").os.windows.WINAPI) BOOL; }, else => struct {}, }; pub usingnamespace switch (@import("../../zig.zig").arch) { .X86 => struct { pub extern "dbghelp" fn SymGetSymPrev( hProcess: ?HANDLE, Symbol: ?*IMAGEHLP_SYMBOL, ) callconv(@import("std").os.windows.WINAPI) BOOL; }, else => struct {}, }; //-------------------------------------------------------------------------------- // Section: Unicode Aliases (4) //-------------------------------------------------------------------------------- const thismodule = @This(); pub usingnamespace switch (@import("../../zig.zig").unicode_mode) { .ansi => struct { pub const OutputDebugString = thismodule.OutputDebugStringA; pub const FatalAppExit = thismodule.FatalAppExitA; pub const MapFileAndCheckSum = thismodule.MapFileAndCheckSumA; pub const FormatMessage = thismodule.FormatMessageA; }, .wide => struct { pub const OutputDebugString = thismodule.OutputDebugStringW; pub const FatalAppExit = thismodule.FatalAppExitW; pub const MapFileAndCheckSum = thismodule.MapFileAndCheckSumW; pub const FormatMessage = thismodule.FormatMessageW; }, .unspecified => if (@import("builtin").is_test) struct { pub const OutputDebugString = *opaque {}; pub const FatalAppExit = *opaque {}; pub const MapFileAndCheckSum = *opaque {}; pub const FormatMessage = *opaque {}; } else struct { pub const OutputDebugString = @compileError("'OutputDebugString' requires that UNICODE be set to true or false in the root module"); pub const FatalAppExit = @compileError("'FatalAppExit' requires that UNICODE be set to true or false in the root module"); pub const MapFileAndCheckSum = @compileError("'MapFileAndCheckSum' requires that UNICODE be set to true or false in the root module"); pub const FormatMessage = @compileError("'FormatMessage' requires that UNICODE be set to true or false in the root module"); }, }; //-------------------------------------------------------------------------------- // Section: Imports (38) //-------------------------------------------------------------------------------- const Guid = @import("../../zig.zig").Guid; const BOOL = @import("../../foundation.zig").BOOL; const BOOLEAN = @import("../../foundation.zig").BOOLEAN; const BSTR = @import("../../foundation.zig").BSTR; const CADWORD = @import("../../system/ole.zig").CADWORD; const CALPOLESTR = @import("../../system/ole.zig").CALPOLESTR; const CHAR = @import("../../foundation.zig").CHAR; const DISPPARAMS = @import("../../system/com.zig").DISPPARAMS; const EXCEPINFO = @import("../../system/com.zig").EXCEPINFO; const EXCEPTION_ROUTINE = @import("../../system/kernel.zig").EXCEPTION_ROUTINE; const FARPROC = @import("../../foundation.zig").FARPROC; const HANDLE = @import("../../foundation.zig").HANDLE; const HANDLE_PTR = @import("../../foundation.zig").HANDLE_PTR; const HINSTANCE = @import("../../foundation.zig").HINSTANCE; const HRESULT = @import("../../foundation.zig").HRESULT; const HWND = @import("../../foundation.zig").HWND; const IDispatch = @import("../../system/com.zig").IDispatch; const ILockBytes = @import("../../system/com/structured_storage.zig").ILockBytes; const IStream = @import("../../system/com.zig").IStream; const ITypeInfo = @import("../../system/com.zig").ITypeInfo; const IUnknown = @import("../../system/com.zig").IUnknown; const LARGE_INTEGER = @import("../../foundation.zig").LARGE_INTEGER; const LIST_ENTRY = @import("../../system/kernel.zig").LIST_ENTRY; const LIST_ENTRY32 = @import("../../system/kernel.zig").LIST_ENTRY32; const LIST_ENTRY64 = @import("../../system/kernel.zig").LIST_ENTRY64; const LPTHREAD_START_ROUTINE = @import("../../system/threading.zig").LPTHREAD_START_ROUTINE; const MEMORY_BASIC_INFORMATION64 = @import("../../system/memory.zig").MEMORY_BASIC_INFORMATION64; const NTSTATUS = @import("../../foundation.zig").NTSTATUS; const PSTR = @import("../../foundation.zig").PSTR; const PWSTR = @import("../../foundation.zig").PWSTR; const SYSTEMTIME = @import("../../foundation.zig").SYSTEMTIME; const TIME_ZONE_INFORMATION = @import("../../system/time.zig").TIME_ZONE_INFORMATION; const TYPEDESC = @import("../../system/com.zig").TYPEDESC; const VARIANT = @import("../../system/com.zig").VARIANT; const VIRTUAL_ALLOCATION_TYPE = @import("../../system/memory.zig").VIRTUAL_ALLOCATION_TYPE; const VS_FIXEDFILEINFO = @import("../../storage/file_system.zig").VS_FIXEDFILEINFO; const WIN_CERTIFICATE = @import("../../security/win_trust.zig").WIN_CERTIFICATE; // 1 arch-specific imports const FLOATING_SAVE_AREA = switch (@import("../../zig.zig").arch) { .X86 => @import("../../system/kernel.zig").FLOATING_SAVE_AREA, else => usize, // NOTE: this should be a @compileError but can't because of https://github.com/ziglang/zig/issues/9682 }; test { // The following '_ = <FuncPtrType>' lines are a workaround for https://github.com/ziglang/zig/issues/4476 if (@hasDecl(@This(), "PDEBUG_EXTENSION_INITIALIZE")) { _ = PDEBUG_EXTENSION_INITIALIZE; } if (@hasDecl(@This(), "PDEBUG_EXTENSION_UNINITIALIZE")) { _ = PDEBUG_EXTENSION_UNINITIALIZE; } if (@hasDecl(@This(), "PDEBUG_EXTENSION_CANUNLOAD")) { _ = PDEBUG_EXTENSION_CANUNLOAD; } if (@hasDecl(@This(), "PDEBUG_EXTENSION_UNLOAD")) { _ = PDEBUG_EXTENSION_UNLOAD; } if (@hasDecl(@This(), "PDEBUG_EXTENSION_NOTIFY")) { _ = PDEBUG_EXTENSION_NOTIFY; } if (@hasDecl(@This(), "PDEBUG_EXTENSION_CALL")) { _ = PDEBUG_EXTENSION_CALL; } if (@hasDecl(@This(), "PDEBUG_EXTENSION_KNOWN_STRUCT")) { _ = PDEBUG_EXTENSION_KNOWN_STRUCT; } if (@hasDecl(@This(), "PDEBUG_EXTENSION_KNOWN_STRUCT_EX")) { _ = PDEBUG_EXTENSION_KNOWN_STRUCT_EX; } if (@hasDecl(@This(), "PDEBUG_EXTENSION_QUERY_VALUE_NAMES")) { _ = PDEBUG_EXTENSION_QUERY_VALUE_NAMES; } if (@hasDecl(@This(), "PDEBUG_EXTENSION_PROVIDE_VALUE")) { _ = PDEBUG_EXTENSION_PROVIDE_VALUE; } if (@hasDecl(@This(), "PDEBUG_STACK_PROVIDER_BEGINTHREADSTACKRECONSTRUCTION")) { _ = PDEBUG_STACK_PROVIDER_BEGINTHREADSTACKRECONSTRUCTION; } if (@hasDecl(@This(), "PDEBUG_STACK_PROVIDER_RECONSTRUCTSTACK")) { _ = PDEBUG_STACK_PROVIDER_RECONSTRUCTSTACK; } if (@hasDecl(@This(), "PDEBUG_STACK_PROVIDER_FREESTACKSYMFRAMES")) { _ = PDEBUG_STACK_PROVIDER_FREESTACKSYMFRAMES; } if (@hasDecl(@This(), "PDEBUG_STACK_PROVIDER_ENDTHREADSTACKRECONSTRUCTION")) { _ = PDEBUG_STACK_PROVIDER_ENDTHREADSTACKRECONSTRUCTION; } if (@hasDecl(@This(), "PWINDBG_OUTPUT_ROUTINE")) { _ = PWINDBG_OUTPUT_ROUTINE; } if (@hasDecl(@This(), "PWINDBG_GET_EXPRESSION")) { _ = PWINDBG_GET_EXPRESSION; } if (@hasDecl(@This(), "PWINDBG_GET_EXPRESSION32")) { _ = PWINDBG_GET_EXPRESSION32; } if (@hasDecl(@This(), "PWINDBG_GET_EXPRESSION64")) { _ = PWINDBG_GET_EXPRESSION64; } if (@hasDecl(@This(), "PWINDBG_GET_SYMBOL")) { _ = PWINDBG_GET_SYMBOL; } if (@hasDecl(@This(), "PWINDBG_GET_SYMBOL32")) { _ = PWINDBG_GET_SYMBOL32; } if (@hasDecl(@This(), "PWINDBG_GET_SYMBOL64")) { _ = PWINDBG_GET_SYMBOL64; } if (@hasDecl(@This(), "PWINDBG_DISASM")) { _ = PWINDBG_DISASM; } if (@hasDecl(@This(), "PWINDBG_DISASM32")) { _ = PWINDBG_DISASM32; } if (@hasDecl(@This(), "PWINDBG_DISASM64")) { _ = PWINDBG_DISASM64; } if (@hasDecl(@This(), "PWINDBG_CHECK_CONTROL_C")) { _ = PWINDBG_CHECK_CONTROL_C; } if (@hasDecl(@This(), "PWINDBG_READ_PROCESS_MEMORY_ROUTINE")) { _ = PWINDBG_READ_PROCESS_MEMORY_ROUTINE; } if (@hasDecl(@This(), "PWINDBG_READ_PROCESS_MEMORY_ROUTINE32")) { _ = PWINDBG_READ_PROCESS_MEMORY_ROUTINE32; } if (@hasDecl(@This(), "PWINDBG_READ_PROCESS_MEMORY_ROUTINE64")) { _ = PWINDBG_READ_PROCESS_MEMORY_ROUTINE64; } if (@hasDecl(@This(), "PWINDBG_WRITE_PROCESS_MEMORY_ROUTINE")) { _ = PWINDBG_WRITE_PROCESS_MEMORY_ROUTINE; } if (@hasDecl(@This(), "PWINDBG_WRITE_PROCESS_MEMORY_ROUTINE32")) { _ = PWINDBG_WRITE_PROCESS_MEMORY_ROUTINE32; } if (@hasDecl(@This(), "PWINDBG_WRITE_PROCESS_MEMORY_ROUTINE64")) { _ = PWINDBG_WRITE_PROCESS_MEMORY_ROUTINE64; } if (@hasDecl(@This(), "PWINDBG_GET_THREAD_CONTEXT_ROUTINE")) { _ = PWINDBG_GET_THREAD_CONTEXT_ROUTINE; } if (@hasDecl(@This(), "PWINDBG_SET_THREAD_CONTEXT_ROUTINE")) { _ = PWINDBG_SET_THREAD_CONTEXT_ROUTINE; } if (@hasDecl(@This(), "PWINDBG_IOCTL_ROUTINE")) { _ = PWINDBG_IOCTL_ROUTINE; } if (@hasDecl(@This(), "PWINDBG_OLDKD_READ_PHYSICAL_MEMORY")) { _ = PWINDBG_OLDKD_READ_PHYSICAL_MEMORY; } if (@hasDecl(@This(), "PWINDBG_OLDKD_WRITE_PHYSICAL_MEMORY")) { _ = PWINDBG_OLDKD_WRITE_PHYSICAL_MEMORY; } if (@hasDecl(@This(), "PWINDBG_STACKTRACE_ROUTINE")) { _ = PWINDBG_STACKTRACE_ROUTINE; } if (@hasDecl(@This(), "PWINDBG_STACKTRACE_ROUTINE32")) { _ = PWINDBG_STACKTRACE_ROUTINE32; } if (@hasDecl(@This(), "PWINDBG_STACKTRACE_ROUTINE64")) { _ = PWINDBG_STACKTRACE_ROUTINE64; } if (@hasDecl(@This(), "PWINDBG_OLD_EXTENSION_ROUTINE")) { _ = PWINDBG_OLD_EXTENSION_ROUTINE; } if (@hasDecl(@This(), "PWINDBG_EXTENSION_ROUTINE")) { _ = PWINDBG_EXTENSION_ROUTINE; } if (@hasDecl(@This(), "PWINDBG_EXTENSION_ROUTINE32")) { _ = PWINDBG_EXTENSION_ROUTINE32; } if (@hasDecl(@This(), "PWINDBG_EXTENSION_ROUTINE64")) { _ = PWINDBG_EXTENSION_ROUTINE64; } if (@hasDecl(@This(), "PWINDBG_OLDKD_EXTENSION_ROUTINE")) { _ = PWINDBG_OLDKD_EXTENSION_ROUTINE; } if (@hasDecl(@This(), "PWINDBG_EXTENSION_DLL_INIT")) { _ = PWINDBG_EXTENSION_DLL_INIT; } if (@hasDecl(@This(), "PWINDBG_EXTENSION_DLL_INIT32")) { _ = PWINDBG_EXTENSION_DLL_INIT32; } if (@hasDecl(@This(), "PWINDBG_EXTENSION_DLL_INIT64")) { _ = PWINDBG_EXTENSION_DLL_INIT64; } if (@hasDecl(@This(), "PWINDBG_CHECK_VERSION")) { _ = PWINDBG_CHECK_VERSION; } if (@hasDecl(@This(), "PWINDBG_EXTENSION_API_VERSION")) { _ = PWINDBG_EXTENSION_API_VERSION; } if (@hasDecl(@This(), "PSYM_DUMP_FIELD_CALLBACK")) { _ = PSYM_DUMP_FIELD_CALLBACK; } if (@hasDecl(@This(), "PVECTORED_EXCEPTION_HANDLER")) { _ = PVECTORED_EXCEPTION_HANDLER; } if (@hasDecl(@This(), "LPTOP_LEVEL_EXCEPTION_FILTER")) { _ = LPTOP_LEVEL_EXCEPTION_FILTER; } if (@hasDecl(@This(), "PWAITCHAINCALLBACK")) { _ = PWAITCHAINCALLBACK; } if (@hasDecl(@This(), "PCOGETCALLSTATE")) { _ = PCOGETCALLSTATE; } if (@hasDecl(@This(), "PCOGETACTIVATIONSTATE")) { _ = PCOGETACTIVATIONSTATE; } if (@hasDecl(@This(), "MINIDUMP_CALLBACK_ROUTINE")) { _ = MINIDUMP_CALLBACK_ROUTINE; } if (@hasDecl(@This(), "PIMAGEHLP_STATUS_ROUTINE")) { _ = PIMAGEHLP_STATUS_ROUTINE; } if (@hasDecl(@This(), "PIMAGEHLP_STATUS_ROUTINE32")) { _ = PIMAGEHLP_STATUS_ROUTINE32; } if (@hasDecl(@This(), "PIMAGEHLP_STATUS_ROUTINE64")) { _ = PIMAGEHLP_STATUS_ROUTINE64; } if (@hasDecl(@This(), "DIGEST_FUNCTION")) { _ = DIGEST_FUNCTION; } if (@hasDecl(@This(), "PFIND_DEBUG_FILE_CALLBACK")) { _ = PFIND_DEBUG_FILE_CALLBACK; } if (@hasDecl(@This(), "PFIND_DEBUG_FILE_CALLBACKW")) { _ = PFIND_DEBUG_FILE_CALLBACKW; } if (@hasDecl(@This(), "PFINDFILEINPATHCALLBACK")) { _ = PFINDFILEINPATHCALLBACK; } if (@hasDecl(@This(), "PFINDFILEINPATHCALLBACKW")) { _ = PFINDFILEINPATHCALLBACKW; } if (@hasDecl(@This(), "PFIND_EXE_FILE_CALLBACK")) { _ = PFIND_EXE_FILE_CALLBACK; } if (@hasDecl(@This(), "PFIND_EXE_FILE_CALLBACKW")) { _ = PFIND_EXE_FILE_CALLBACKW; } if (@hasDecl(@This(), "PENUMDIRTREE_CALLBACK")) { _ = PENUMDIRTREE_CALLBACK; } if (@hasDecl(@This(), "PENUMDIRTREE_CALLBACKW")) { _ = PENUMDIRTREE_CALLBACKW; } if (@hasDecl(@This(), "PREAD_PROCESS_MEMORY_ROUTINE64")) { _ = PREAD_PROCESS_MEMORY_ROUTINE64; } if (@hasDecl(@This(), "PFUNCTION_TABLE_ACCESS_ROUTINE64")) { _ = PFUNCTION_TABLE_ACCESS_ROUTINE64; } if (@hasDecl(@This(), "PGET_MODULE_BASE_ROUTINE64")) { _ = PGET_MODULE_BASE_ROUTINE64; } if (@hasDecl(@This(), "PTRANSLATE_ADDRESS_ROUTINE64")) { _ = PTRANSLATE_ADDRESS_ROUTINE64; } if (@hasDecl(@This(), "PSYM_ENUMMODULES_CALLBACK64")) { _ = PSYM_ENUMMODULES_CALLBACK64; } if (@hasDecl(@This(), "PSYM_ENUMMODULES_CALLBACKW64")) { _ = PSYM_ENUMMODULES_CALLBACKW64; } if (@hasDecl(@This(), "PENUMLOADED_MODULES_CALLBACK64")) { _ = PENUMLOADED_MODULES_CALLBACK64; } if (@hasDecl(@This(), "PENUMLOADED_MODULES_CALLBACKW64")) { _ = PENUMLOADED_MODULES_CALLBACKW64; } if (@hasDecl(@This(), "PSYM_ENUMSYMBOLS_CALLBACK64")) { _ = PSYM_ENUMSYMBOLS_CALLBACK64; } if (@hasDecl(@This(), "PSYM_ENUMSYMBOLS_CALLBACK64W")) { _ = PSYM_ENUMSYMBOLS_CALLBACK64W; } if (@hasDecl(@This(), "PSYMBOL_REGISTERED_CALLBACK64")) { _ = PSYMBOL_REGISTERED_CALLBACK64; } if (@hasDecl(@This(), "PSYMBOL_FUNCENTRY_CALLBACK")) { _ = PSYMBOL_FUNCENTRY_CALLBACK; } if (@hasDecl(@This(), "PSYMBOL_FUNCENTRY_CALLBACK64")) { _ = PSYMBOL_FUNCENTRY_CALLBACK64; } if (@hasDecl(@This(), "PSYM_ENUMSOURCEFILES_CALLBACK")) { _ = PSYM_ENUMSOURCEFILES_CALLBACK; } if (@hasDecl(@This(), "PSYM_ENUMSOURCEFILES_CALLBACKW")) { _ = PSYM_ENUMSOURCEFILES_CALLBACKW; } if (@hasDecl(@This(), "PSYM_ENUMLINES_CALLBACK")) { _ = PSYM_ENUMLINES_CALLBACK; } if (@hasDecl(@This(), "PSYM_ENUMLINES_CALLBACKW")) { _ = PSYM_ENUMLINES_CALLBACKW; } if (@hasDecl(@This(), "PENUMSOURCEFILETOKENSCALLBACK")) { _ = PENUMSOURCEFILETOKENSCALLBACK; } if (@hasDecl(@This(), "PSYM_ENUMPROCESSES_CALLBACK")) { _ = PSYM_ENUMPROCESSES_CALLBACK; } if (@hasDecl(@This(), "PSYM_ENUMERATESYMBOLS_CALLBACK")) { _ = PSYM_ENUMERATESYMBOLS_CALLBACK; } if (@hasDecl(@This(), "PSYM_ENUMERATESYMBOLS_CALLBACKW")) { _ = PSYM_ENUMERATESYMBOLS_CALLBACKW; } if (@hasDecl(@This(), "SYMADDSOURCESTREAM")) { _ = SYMADDSOURCESTREAM; } if (@hasDecl(@This(), "SYMADDSOURCESTREAMA")) { _ = SYMADDSOURCESTREAMA; } if (@hasDecl(@This(), "PDBGHELP_CREATE_USER_DUMP_CALLBACK")) { _ = PDBGHELP_CREATE_USER_DUMP_CALLBACK; } if (@hasDecl(@This(), "PSYMBOLSERVERPROC")) { _ = PSYMBOLSERVERPROC; } if (@hasDecl(@This(), "PSYMBOLSERVERPROCA")) { _ = PSYMBOLSERVERPROCA; } if (@hasDecl(@This(), "PSYMBOLSERVERPROCW")) { _ = PSYMBOLSERVERPROCW; } if (@hasDecl(@This(), "PSYMBOLSERVERBYINDEXPROC")) { _ = PSYMBOLSERVERBYINDEXPROC; } if (@hasDecl(@This(), "PSYMBOLSERVERBYINDEXPROCA")) { _ = PSYMBOLSERVERBYINDEXPROCA; } if (@hasDecl(@This(), "PSYMBOLSERVERBYINDEXPROCW")) { _ = PSYMBOLSERVERBYINDEXPROCW; } if (@hasDecl(@This(), "PSYMBOLSERVEROPENPROC")) { _ = PSYMBOLSERVEROPENPROC; } if (@hasDecl(@This(), "PSYMBOLSERVERCLOSEPROC")) { _ = PSYMBOLSERVERCLOSEPROC; } if (@hasDecl(@This(), "PSYMBOLSERVERSETOPTIONSPROC")) { _ = PSYMBOLSERVERSETOPTIONSPROC; } if (@hasDecl(@This(), "PSYMBOLSERVERSETOPTIONSWPROC")) { _ = PSYMBOLSERVERSETOPTIONSWPROC; } if (@hasDecl(@This(), "PSYMBOLSERVERCALLBACKPROC")) { _ = PSYMBOLSERVERCALLBACKPROC; } if (@hasDecl(@This(), "PSYMBOLSERVERGETOPTIONSPROC")) { _ = PSYMBOLSERVERGETOPTIONSPROC; } if (@hasDecl(@This(), "PSYMBOLSERVERPINGPROC")) { _ = PSYMBOLSERVERPINGPROC; } if (@hasDecl(@This(), "PSYMBOLSERVERPINGPROCA")) { _ = PSYMBOLSERVERPINGPROCA; } if (@hasDecl(@This(), "PSYMBOLSERVERPINGPROCW")) { _ = PSYMBOLSERVERPINGPROCW; } if (@hasDecl(@This(), "PSYMBOLSERVERGETVERSION")) { _ = PSYMBOLSERVERGETVERSION; } if (@hasDecl(@This(), "PSYMBOLSERVERDELTANAME")) { _ = PSYMBOLSERVERDELTANAME; } if (@hasDecl(@This(), "PSYMBOLSERVERDELTANAMEW")) { _ = PSYMBOLSERVERDELTANAMEW; } if (@hasDecl(@This(), "PSYMBOLSERVERGETSUPPLEMENT")) { _ = PSYMBOLSERVERGETSUPPLEMENT; } if (@hasDecl(@This(), "PSYMBOLSERVERGETSUPPLEMENTW")) { _ = PSYMBOLSERVERGETSUPPLEMENTW; } if (@hasDecl(@This(), "PSYMBOLSERVERSTORESUPPLEMENT")) { _ = PSYMBOLSERVERSTORESUPPLEMENT; } if (@hasDecl(@This(), "PSYMBOLSERVERSTORESUPPLEMENTW")) { _ = PSYMBOLSERVERSTORESUPPLEMENTW; } if (@hasDecl(@This(), "PSYMBOLSERVERGETINDEXSTRING")) { _ = PSYMBOLSERVERGETINDEXSTRING; } if (@hasDecl(@This(), "PSYMBOLSERVERGETINDEXSTRINGW")) { _ = PSYMBOLSERVERGETINDEXSTRINGW; } if (@hasDecl(@This(), "PSYMBOLSERVERSTOREFILE")) { _ = PSYMBOLSERVERSTOREFILE; } if (@hasDecl(@This(), "PSYMBOLSERVERSTOREFILEW")) { _ = PSYMBOLSERVERSTOREFILEW; } if (@hasDecl(@This(), "PSYMBOLSERVERISSTORE")) { _ = PSYMBOLSERVERISSTORE; } if (@hasDecl(@This(), "PSYMBOLSERVERISSTOREW")) { _ = PSYMBOLSERVERISSTOREW; } if (@hasDecl(@This(), "PSYMBOLSERVERVERSION")) { _ = PSYMBOLSERVERVERSION; } if (@hasDecl(@This(), "PSYMBOLSERVERMESSAGEPROC")) { _ = PSYMBOLSERVERMESSAGEPROC; } if (@hasDecl(@This(), "PSYMBOLSERVERWEXPROC")) { _ = PSYMBOLSERVERWEXPROC; } if (@hasDecl(@This(), "PSYMBOLSERVERPINGPROCWEX")) { _ = PSYMBOLSERVERPINGPROCWEX; } if (@hasDecl(@This(), "PSYMBOLSERVERGETOPTIONDATAPROC")) { _ = PSYMBOLSERVERGETOPTIONDATAPROC; } if (@hasDecl(@This(), "PSYMBOLSERVERSETHTTPAUTHHEADER")) { _ = PSYMBOLSERVERSETHTTPAUTHHEADER; } if (@hasDecl(@This(), "LPCALL_BACK_USER_INTERRUPT_ROUTINE")) { _ = LPCALL_BACK_USER_INTERRUPT_ROUTINE; } if (@hasDecl(@This(), "WHEA_ERROR_SOURCE_INITIALIZE_DEVICE_DRIVER")) { _ = WHEA_ERROR_SOURCE_INITIALIZE_DEVICE_DRIVER; } if (@hasDecl(@This(), "WHEA_ERROR_SOURCE_UNINITIALIZE_DEVICE_DRIVER")) { _ = WHEA_ERROR_SOURCE_UNINITIALIZE_DEVICE_DRIVER; } if (@hasDecl(@This(), "WHEA_ERROR_SOURCE_CORRECT_DEVICE_DRIVER")) { _ = WHEA_ERROR_SOURCE_CORRECT_DEVICE_DRIVER; } if (@hasDecl(@This(), "PGET_RUNTIME_FUNCTION_CALLBACK")) { _ = PGET_RUNTIME_FUNCTION_CALLBACK; } if (@hasDecl(@This(), "PGET_RUNTIME_FUNCTION_CALLBACK")) { _ = PGET_RUNTIME_FUNCTION_CALLBACK; } if (@hasDecl(@This(), "PREAD_PROCESS_MEMORY_ROUTINE")) { _ = PREAD_PROCESS_MEMORY_ROUTINE; } if (@hasDecl(@This(), "PFUNCTION_TABLE_ACCESS_ROUTINE")) { _ = PFUNCTION_TABLE_ACCESS_ROUTINE; } if (@hasDecl(@This(), "PGET_MODULE_BASE_ROUTINE")) { _ = PGET_MODULE_BASE_ROUTINE; } if (@hasDecl(@This(), "PTRANSLATE_ADDRESS_ROUTINE")) { _ = PTRANSLATE_ADDRESS_ROUTINE; } if (@hasDecl(@This(), "PSYM_ENUMMODULES_CALLBACK")) { _ = PSYM_ENUMMODULES_CALLBACK; } if (@hasDecl(@This(), "PSYM_ENUMSYMBOLS_CALLBACK")) { _ = PSYM_ENUMSYMBOLS_CALLBACK; } if (@hasDecl(@This(), "PSYM_ENUMSYMBOLS_CALLBACKW")) { _ = PSYM_ENUMSYMBOLS_CALLBACKW; } if (@hasDecl(@This(), "PENUMLOADED_MODULES_CALLBACK")) { _ = PENUMLOADED_MODULES_CALLBACK; } if (@hasDecl(@This(), "PSYMBOL_REGISTERED_CALLBACK")) { _ = PSYMBOL_REGISTERED_CALLBACK; } @setEvalBranchQuota(comptime @import("std").meta.declarations(@This()).len * 3); // reference all the pub declarations if (!@import("builtin").is_test) return; inline for (comptime @import("std").meta.declarations(@This())) |decl| { if (decl.is_pub) { _ = @field(@This(), decl.name); } } } //-------------------------------------------------------------------------------- // Section: SubModules (1) //-------------------------------------------------------------------------------- pub const web_app = @import("debug/web_app.zig");
0
repos/capy/vendor/zigwin32/win32/system
repos/capy/vendor/zigwin32/win32/system/diagnostics/etw.zig
//! NOTE: this file is autogenerated, DO NOT MODIFY //-------------------------------------------------------------------------------- // Section: Constants (459) //-------------------------------------------------------------------------------- pub const WNODE_FLAG_ALL_DATA = @as(u32, 1); pub const WNODE_FLAG_SINGLE_INSTANCE = @as(u32, 2); pub const WNODE_FLAG_SINGLE_ITEM = @as(u32, 4); pub const WNODE_FLAG_EVENT_ITEM = @as(u32, 8); pub const WNODE_FLAG_FIXED_INSTANCE_SIZE = @as(u32, 16); pub const WNODE_FLAG_TOO_SMALL = @as(u32, 32); pub const WNODE_FLAG_INSTANCES_SAME = @as(u32, 64); pub const WNODE_FLAG_STATIC_INSTANCE_NAMES = @as(u32, 128); pub const WNODE_FLAG_INTERNAL = @as(u32, 256); pub const WNODE_FLAG_USE_TIMESTAMP = @as(u32, 512); pub const WNODE_FLAG_PERSIST_EVENT = @as(u32, 1024); pub const WNODE_FLAG_EVENT_REFERENCE = @as(u32, 8192); pub const WNODE_FLAG_ANSI_INSTANCENAMES = @as(u32, 16384); pub const WNODE_FLAG_METHOD_ITEM = @as(u32, 32768); pub const WNODE_FLAG_PDO_INSTANCE_NAMES = @as(u32, 65536); pub const WNODE_FLAG_TRACED_GUID = @as(u32, 131072); pub const WNODE_FLAG_LOG_WNODE = @as(u32, 262144); pub const WNODE_FLAG_USE_GUID_PTR = @as(u32, 524288); pub const WNODE_FLAG_USE_MOF_PTR = @as(u32, 1048576); pub const WNODE_FLAG_NO_HEADER = @as(u32, 2097152); pub const WNODE_FLAG_SEND_DATA_BLOCK = @as(u32, 4194304); pub const WNODE_FLAG_VERSIONED_PROPERTIES = @as(u32, 8388608); pub const WNODE_FLAG_SEVERITY_MASK = @as(u32, 4278190080); pub const WMIREG_FLAG_EXPENSIVE = @as(u32, 1); pub const WMIREG_FLAG_INSTANCE_LIST = @as(u32, 4); pub const WMIREG_FLAG_INSTANCE_BASENAME = @as(u32, 8); pub const WMIREG_FLAG_INSTANCE_PDO = @as(u32, 32); pub const WMIREG_FLAG_REMOVE_GUID = @as(u32, 65536); pub const WMIREG_FLAG_RESERVED1 = @as(u32, 131072); pub const WMIREG_FLAG_RESERVED2 = @as(u32, 262144); pub const WMIREG_FLAG_TRACED_GUID = @as(u32, 524288); pub const WMIREG_FLAG_TRACE_CONTROL_GUID = @as(u32, 4096); pub const WMIREG_FLAG_EVENT_ONLY_GUID = @as(u32, 64); pub const WMI_GUIDTYPE_TRACECONTROL = @as(u32, 0); pub const WMI_GUIDTYPE_TRACE = @as(u32, 1); pub const WMI_GUIDTYPE_DATA = @as(u32, 2); pub const WMI_GUIDTYPE_EVENT = @as(u32, 3); pub const WMIGUID_QUERY = @as(u32, 1); pub const WMIGUID_SET = @as(u32, 2); pub const WMIGUID_NOTIFICATION = @as(u32, 4); pub const WMIGUID_READ_DESCRIPTION = @as(u32, 8); pub const WMIGUID_EXECUTE = @as(u32, 16); pub const TRACELOG_CREATE_REALTIME = @as(u32, 32); pub const TRACELOG_CREATE_ONDISK = @as(u32, 64); pub const TRACELOG_GUID_ENABLE = @as(u32, 128); pub const TRACELOG_ACCESS_KERNEL_LOGGER = @as(u32, 256); pub const TRACELOG_LOG_EVENT = @as(u32, 512); pub const TRACELOG_CREATE_INPROC = @as(u32, 512); pub const TRACELOG_ACCESS_REALTIME = @as(u32, 1024); pub const TRACELOG_REGISTER_GUIDS = @as(u32, 2048); pub const TRACELOG_JOIN_GROUP = @as(u32, 4096); pub const WMI_GLOBAL_LOGGER_ID = @as(u32, 1); pub const MAX_PAYLOAD_PREDICATES = @as(u32, 8); pub const EventTraceGuid = Guid.initString("68fdd900-4a3e-11d1-84f4-0000f80464e3"); pub const SystemTraceControlGuid = Guid.initString("9e814aad-3204-11d2-9a82-006008a86939"); pub const EventTraceConfigGuid = Guid.initString("01853a65-418f-4f36-aefc-dc0f1d2fd235"); pub const DefaultTraceSecurityGuid = Guid.initString("0811c1af-7a07-4a06-82ed-869455cdf713"); pub const PrivateLoggerNotificationGuid = Guid.initString("3595ab5c-042a-4c8e-b942-2d059bfeb1b1"); pub const SystemIoFilterProviderGuid = Guid.initString("fbd09363-9e22-4661-b8bf-e7a34b535b8c"); pub const SystemObjectProviderGuid = Guid.initString("febd7460-3d1d-47eb-af49-c9eeb1e146f2"); pub const SystemPowerProviderGuid = Guid.initString("c134884a-32d5-4488-80e5-14ed7abb8269"); pub const SystemHypervisorProviderGuid = Guid.initString("bafa072a-918a-4bed-b622-bc152097098f"); pub const SystemLockProviderGuid = Guid.initString("721ddfd3-dacc-4e1e-b26a-a2cb31d4705a"); pub const SystemConfigProviderGuid = Guid.initString("fef3a8b6-318d-4b67-a96a-3b0f6b8f18fe"); pub const SystemCpuProviderGuid = Guid.initString("c6c5265f-eae8-4650-aae4-9d48603d8510"); pub const SystemSchedulerProviderGuid = Guid.initString("599a2a76-4d91-4910-9ac7-7d33f2e97a6c"); pub const SystemProfileProviderGuid = Guid.initString("bfeb0324-1cee-496f-a409-2ac2b48a6322"); pub const SystemIoProviderGuid = Guid.initString("3d5c43e3-0f1c-4202-b817-174c0070dc79"); pub const SystemMemoryProviderGuid = Guid.initString("82958ca9-b6cd-47f8-a3a8-03ae85a4bc24"); pub const SystemRegistryProviderGuid = Guid.initString("16156bd9-fab4-4cfa-a232-89d1099058e3"); pub const SystemProcessProviderGuid = Guid.initString("151f55dc-467d-471f-83b5-5f889d46ff66"); pub const SystemAlpcProviderGuid = Guid.initString("fcb9baaf-e529-4980-92e9-ced1a6aadfdf"); pub const SystemSyscallProviderGuid = Guid.initString("434286f7-6f1b-45bb-b37e-95f623046c7c"); pub const SystemInterruptProviderGuid = Guid.initString("d4bbee17-b545-4888-858b-744169015b25"); pub const SystemTimerProviderGuid = Guid.initString("4f061568-e215-499f-ab2e-eda0ae890a5b"); pub const MAX_MOF_FIELDS = @as(u32, 16); pub const SYSTEM_EVENT_TYPE = @as(u32, 1); pub const EVENT_TRACE_TYPE_INFO = @as(u32, 0); pub const EVENT_TRACE_TYPE_START = @as(u32, 1); pub const EVENT_TRACE_TYPE_END = @as(u32, 2); pub const EVENT_TRACE_TYPE_STOP = @as(u32, 2); pub const EVENT_TRACE_TYPE_DC_START = @as(u32, 3); pub const EVENT_TRACE_TYPE_DC_END = @as(u32, 4); pub const EVENT_TRACE_TYPE_EXTENSION = @as(u32, 5); pub const EVENT_TRACE_TYPE_REPLY = @as(u32, 6); pub const EVENT_TRACE_TYPE_DEQUEUE = @as(u32, 7); pub const EVENT_TRACE_TYPE_RESUME = @as(u32, 7); pub const EVENT_TRACE_TYPE_CHECKPOINT = @as(u32, 8); pub const EVENT_TRACE_TYPE_SUSPEND = @as(u32, 8); pub const EVENT_TRACE_TYPE_WINEVT_SEND = @as(u32, 9); pub const EVENT_TRACE_TYPE_WINEVT_RECEIVE = @as(u32, 240); pub const TRACE_LEVEL_NONE = @as(u32, 0); pub const TRACE_LEVEL_CRITICAL = @as(u32, 1); pub const TRACE_LEVEL_FATAL = @as(u32, 1); pub const TRACE_LEVEL_ERROR = @as(u32, 2); pub const TRACE_LEVEL_WARNING = @as(u32, 3); pub const TRACE_LEVEL_INFORMATION = @as(u32, 4); pub const TRACE_LEVEL_VERBOSE = @as(u32, 5); pub const TRACE_LEVEL_RESERVED6 = @as(u32, 6); pub const TRACE_LEVEL_RESERVED7 = @as(u32, 7); pub const TRACE_LEVEL_RESERVED8 = @as(u32, 8); pub const TRACE_LEVEL_RESERVED9 = @as(u32, 9); pub const EVENT_TRACE_TYPE_LOAD = @as(u32, 10); pub const EVENT_TRACE_TYPE_TERMINATE = @as(u32, 11); pub const EVENT_TRACE_TYPE_IO_READ = @as(u32, 10); pub const EVENT_TRACE_TYPE_IO_WRITE = @as(u32, 11); pub const EVENT_TRACE_TYPE_IO_READ_INIT = @as(u32, 12); pub const EVENT_TRACE_TYPE_IO_WRITE_INIT = @as(u32, 13); pub const EVENT_TRACE_TYPE_IO_FLUSH = @as(u32, 14); pub const EVENT_TRACE_TYPE_IO_FLUSH_INIT = @as(u32, 15); pub const EVENT_TRACE_TYPE_IO_REDIRECTED_INIT = @as(u32, 16); pub const EVENT_TRACE_TYPE_MM_TF = @as(u32, 10); pub const EVENT_TRACE_TYPE_MM_DZF = @as(u32, 11); pub const EVENT_TRACE_TYPE_MM_COW = @as(u32, 12); pub const EVENT_TRACE_TYPE_MM_GPF = @as(u32, 13); pub const EVENT_TRACE_TYPE_MM_HPF = @as(u32, 14); pub const EVENT_TRACE_TYPE_MM_AV = @as(u32, 15); pub const EVENT_TRACE_TYPE_SEND = @as(u32, 10); pub const EVENT_TRACE_TYPE_RECEIVE = @as(u32, 11); pub const EVENT_TRACE_TYPE_CONNECT = @as(u32, 12); pub const EVENT_TRACE_TYPE_DISCONNECT = @as(u32, 13); pub const EVENT_TRACE_TYPE_RETRANSMIT = @as(u32, 14); pub const EVENT_TRACE_TYPE_ACCEPT = @as(u32, 15); pub const EVENT_TRACE_TYPE_RECONNECT = @as(u32, 16); pub const EVENT_TRACE_TYPE_CONNFAIL = @as(u32, 17); pub const EVENT_TRACE_TYPE_COPY_TCP = @as(u32, 18); pub const EVENT_TRACE_TYPE_COPY_ARP = @as(u32, 19); pub const EVENT_TRACE_TYPE_ACKFULL = @as(u32, 20); pub const EVENT_TRACE_TYPE_ACKPART = @as(u32, 21); pub const EVENT_TRACE_TYPE_ACKDUP = @as(u32, 22); pub const EVENT_TRACE_TYPE_GUIDMAP = @as(u32, 10); pub const EVENT_TRACE_TYPE_CONFIG = @as(u32, 11); pub const EVENT_TRACE_TYPE_SIDINFO = @as(u32, 12); pub const EVENT_TRACE_TYPE_SECURITY = @as(u32, 13); pub const EVENT_TRACE_TYPE_DBGID_RSDS = @as(u32, 64); pub const EVENT_TRACE_TYPE_REGCREATE = @as(u32, 10); pub const EVENT_TRACE_TYPE_REGOPEN = @as(u32, 11); pub const EVENT_TRACE_TYPE_REGDELETE = @as(u32, 12); pub const EVENT_TRACE_TYPE_REGQUERY = @as(u32, 13); pub const EVENT_TRACE_TYPE_REGSETVALUE = @as(u32, 14); pub const EVENT_TRACE_TYPE_REGDELETEVALUE = @as(u32, 15); pub const EVENT_TRACE_TYPE_REGQUERYVALUE = @as(u32, 16); pub const EVENT_TRACE_TYPE_REGENUMERATEKEY = @as(u32, 17); pub const EVENT_TRACE_TYPE_REGENUMERATEVALUEKEY = @as(u32, 18); pub const EVENT_TRACE_TYPE_REGQUERYMULTIPLEVALUE = @as(u32, 19); pub const EVENT_TRACE_TYPE_REGSETINFORMATION = @as(u32, 20); pub const EVENT_TRACE_TYPE_REGFLUSH = @as(u32, 21); pub const EVENT_TRACE_TYPE_REGKCBCREATE = @as(u32, 22); pub const EVENT_TRACE_TYPE_REGKCBDELETE = @as(u32, 23); pub const EVENT_TRACE_TYPE_REGKCBRUNDOWNBEGIN = @as(u32, 24); pub const EVENT_TRACE_TYPE_REGKCBRUNDOWNEND = @as(u32, 25); pub const EVENT_TRACE_TYPE_REGVIRTUALIZE = @as(u32, 26); pub const EVENT_TRACE_TYPE_REGCLOSE = @as(u32, 27); pub const EVENT_TRACE_TYPE_REGSETSECURITY = @as(u32, 28); pub const EVENT_TRACE_TYPE_REGQUERYSECURITY = @as(u32, 29); pub const EVENT_TRACE_TYPE_REGCOMMIT = @as(u32, 30); pub const EVENT_TRACE_TYPE_REGPREPARE = @as(u32, 31); pub const EVENT_TRACE_TYPE_REGROLLBACK = @as(u32, 32); pub const EVENT_TRACE_TYPE_REGMOUNTHIVE = @as(u32, 33); pub const EVENT_TRACE_TYPE_CONFIG_CPU = @as(u32, 10); pub const EVENT_TRACE_TYPE_CONFIG_PHYSICALDISK = @as(u32, 11); pub const EVENT_TRACE_TYPE_CONFIG_LOGICALDISK = @as(u32, 12); pub const EVENT_TRACE_TYPE_CONFIG_NIC = @as(u32, 13); pub const EVENT_TRACE_TYPE_CONFIG_VIDEO = @as(u32, 14); pub const EVENT_TRACE_TYPE_CONFIG_SERVICES = @as(u32, 15); pub const EVENT_TRACE_TYPE_CONFIG_POWER = @as(u32, 16); pub const EVENT_TRACE_TYPE_CONFIG_NETINFO = @as(u32, 17); pub const EVENT_TRACE_TYPE_CONFIG_OPTICALMEDIA = @as(u32, 18); pub const EVENT_TRACE_TYPE_CONFIG_IRQ = @as(u32, 21); pub const EVENT_TRACE_TYPE_CONFIG_PNP = @as(u32, 22); pub const EVENT_TRACE_TYPE_CONFIG_IDECHANNEL = @as(u32, 23); pub const EVENT_TRACE_TYPE_CONFIG_NUMANODE = @as(u32, 24); pub const EVENT_TRACE_TYPE_CONFIG_PLATFORM = @as(u32, 25); pub const EVENT_TRACE_TYPE_CONFIG_PROCESSORGROUP = @as(u32, 26); pub const EVENT_TRACE_TYPE_CONFIG_PROCESSORNUMBER = @as(u32, 27); pub const EVENT_TRACE_TYPE_CONFIG_DPI = @as(u32, 28); pub const EVENT_TRACE_TYPE_CONFIG_CI_INFO = @as(u32, 29); pub const EVENT_TRACE_TYPE_CONFIG_MACHINEID = @as(u32, 30); pub const EVENT_TRACE_TYPE_CONFIG_DEFRAG = @as(u32, 31); pub const EVENT_TRACE_TYPE_CONFIG_MOBILEPLATFORM = @as(u32, 32); pub const EVENT_TRACE_TYPE_CONFIG_DEVICEFAMILY = @as(u32, 33); pub const EVENT_TRACE_TYPE_CONFIG_FLIGHTID = @as(u32, 34); pub const EVENT_TRACE_TYPE_CONFIG_PROCESSOR = @as(u32, 35); pub const EVENT_TRACE_TYPE_CONFIG_VIRTUALIZATION = @as(u32, 36); pub const EVENT_TRACE_TYPE_CONFIG_BOOT = @as(u32, 37); pub const EVENT_TRACE_TYPE_OPTICAL_IO_READ = @as(u32, 55); pub const EVENT_TRACE_TYPE_OPTICAL_IO_WRITE = @as(u32, 56); pub const EVENT_TRACE_TYPE_OPTICAL_IO_FLUSH = @as(u32, 57); pub const EVENT_TRACE_TYPE_OPTICAL_IO_READ_INIT = @as(u32, 58); pub const EVENT_TRACE_TYPE_OPTICAL_IO_WRITE_INIT = @as(u32, 59); pub const EVENT_TRACE_TYPE_OPTICAL_IO_FLUSH_INIT = @as(u32, 60); pub const EVENT_TRACE_TYPE_FLT_PREOP_INIT = @as(u32, 96); pub const EVENT_TRACE_TYPE_FLT_POSTOP_INIT = @as(u32, 97); pub const EVENT_TRACE_TYPE_FLT_PREOP_COMPLETION = @as(u32, 98); pub const EVENT_TRACE_TYPE_FLT_POSTOP_COMPLETION = @as(u32, 99); pub const EVENT_TRACE_TYPE_FLT_PREOP_FAILURE = @as(u32, 100); pub const EVENT_TRACE_TYPE_FLT_POSTOP_FAILURE = @as(u32, 101); pub const EVENT_TRACE_FLAG_DEBUG_EVENTS = @as(u32, 4194304); pub const EVENT_TRACE_FLAG_EXTENSION = @as(u32, 2147483648); pub const EVENT_TRACE_FLAG_FORWARD_WMI = @as(u32, 1073741824); pub const EVENT_TRACE_FLAG_ENABLE_RESERVE = @as(u32, 536870912); pub const EVENT_TRACE_FILE_MODE_NONE = @as(u32, 0); pub const EVENT_TRACE_FILE_MODE_SEQUENTIAL = @as(u32, 1); pub const EVENT_TRACE_FILE_MODE_CIRCULAR = @as(u32, 2); pub const EVENT_TRACE_FILE_MODE_APPEND = @as(u32, 4); pub const EVENT_TRACE_REAL_TIME_MODE = @as(u32, 256); pub const EVENT_TRACE_DELAY_OPEN_FILE_MODE = @as(u32, 512); pub const EVENT_TRACE_BUFFERING_MODE = @as(u32, 1024); pub const EVENT_TRACE_PRIVATE_LOGGER_MODE = @as(u32, 2048); pub const EVENT_TRACE_ADD_HEADER_MODE = @as(u32, 4096); pub const EVENT_TRACE_USE_GLOBAL_SEQUENCE = @as(u32, 16384); pub const EVENT_TRACE_USE_LOCAL_SEQUENCE = @as(u32, 32768); pub const EVENT_TRACE_RELOG_MODE = @as(u32, 65536); pub const EVENT_TRACE_USE_PAGED_MEMORY = @as(u32, 16777216); pub const EVENT_TRACE_FILE_MODE_NEWFILE = @as(u32, 8); pub const EVENT_TRACE_FILE_MODE_PREALLOCATE = @as(u32, 32); pub const EVENT_TRACE_NONSTOPPABLE_MODE = @as(u32, 64); pub const EVENT_TRACE_SECURE_MODE = @as(u32, 128); pub const EVENT_TRACE_USE_KBYTES_FOR_SIZE = @as(u32, 8192); pub const EVENT_TRACE_PRIVATE_IN_PROC = @as(u32, 131072); pub const EVENT_TRACE_MODE_RESERVED = @as(u32, 1048576); pub const EVENT_TRACE_NO_PER_PROCESSOR_BUFFERING = @as(u32, 268435456); pub const EVENT_TRACE_SYSTEM_LOGGER_MODE = @as(u32, 33554432); pub const EVENT_TRACE_ADDTO_TRIAGE_DUMP = @as(u32, 2147483648); pub const EVENT_TRACE_STOP_ON_HYBRID_SHUTDOWN = @as(u32, 4194304); pub const EVENT_TRACE_PERSIST_ON_HYBRID_SHUTDOWN = @as(u32, 8388608); pub const EVENT_TRACE_INDEPENDENT_SESSION_MODE = @as(u32, 134217728); pub const EVENT_TRACE_COMPRESSED_MODE = @as(u32, 67108864); pub const EVENT_TRACE_CONTROL_INCREMENT_FILE = @as(u32, 4); pub const EVENT_TRACE_CONTROL_CONVERT_TO_REALTIME = @as(u32, 5); pub const TRACE_MESSAGE_PERFORMANCE_TIMESTAMP = @as(u32, 16); pub const TRACE_MESSAGE_POINTER32 = @as(u32, 64); pub const TRACE_MESSAGE_POINTER64 = @as(u32, 128); pub const TRACE_MESSAGE_FLAG_MASK = @as(u32, 65535); pub const EVENT_TRACE_USE_PROCTIME = @as(u32, 1); pub const EVENT_TRACE_USE_NOCPUTIME = @as(u32, 2); pub const TRACE_HEADER_FLAG_USE_TIMESTAMP = @as(u32, 512); pub const TRACE_HEADER_FLAG_TRACED_GUID = @as(u32, 131072); pub const TRACE_HEADER_FLAG_LOG_WNODE = @as(u32, 262144); pub const TRACE_HEADER_FLAG_USE_GUID_PTR = @as(u32, 524288); pub const TRACE_HEADER_FLAG_USE_MOF_PTR = @as(u32, 1048576); pub const SYSTEM_ALPC_KW_GENERAL = @as(u64, 1); pub const SYSTEM_CONFIG_KW_SYSTEM = @as(u64, 1); pub const SYSTEM_CONFIG_KW_GRAPHICS = @as(u64, 2); pub const SYSTEM_CONFIG_KW_STORAGE = @as(u64, 4); pub const SYSTEM_CONFIG_KW_NETWORK = @as(u64, 8); pub const SYSTEM_CONFIG_KW_SERVICES = @as(u64, 16); pub const SYSTEM_CONFIG_KW_PNP = @as(u64, 32); pub const SYSTEM_CONFIG_KW_OPTICAL = @as(u64, 64); pub const SYSTEM_CPU_KW_CONFIG = @as(u64, 1); pub const SYSTEM_CPU_KW_CACHE_FLUSH = @as(u64, 2); pub const SYSTEM_CPU_KW_SPEC_CONTROL = @as(u64, 4); pub const SYSTEM_HYPERVISOR_KW_PROFILE = @as(u64, 1); pub const SYSTEM_HYPERVISOR_KW_CALLOUTS = @as(u64, 2); pub const SYSTEM_HYPERVISOR_KW_VTL_CHANGE = @as(u64, 4); pub const SYSTEM_INTERRUPT_KW_GENERAL = @as(u64, 1); pub const SYSTEM_INTERRUPT_KW_CLOCK_INTERRUPT = @as(u64, 2); pub const SYSTEM_INTERRUPT_KW_DPC = @as(u64, 4); pub const SYSTEM_INTERRUPT_KW_DPC_QUEUE = @as(u64, 8); pub const SYSTEM_INTERRUPT_KW_WDF_DPC = @as(u64, 16); pub const SYSTEM_INTERRUPT_KW_WDF_INTERRUPT = @as(u64, 32); pub const SYSTEM_INTERRUPT_KW_IPI = @as(u64, 64); pub const SYSTEM_IO_KW_DISK = @as(u64, 1); pub const SYSTEM_IO_KW_DISK_INIT = @as(u64, 2); pub const SYSTEM_IO_KW_FILENAME = @as(u64, 4); pub const SYSTEM_IO_KW_SPLIT = @as(u64, 8); pub const SYSTEM_IO_KW_FILE = @as(u64, 16); pub const SYSTEM_IO_KW_OPTICAL = @as(u64, 32); pub const SYSTEM_IO_KW_OPTICAL_INIT = @as(u64, 64); pub const SYSTEM_IO_KW_DRIVERS = @as(u64, 128); pub const SYSTEM_IO_KW_CC = @as(u64, 256); pub const SYSTEM_IO_KW_NETWORK = @as(u64, 512); pub const SYSTEM_IOFILTER_KW_GENERAL = @as(u64, 1); pub const SYSTEM_IOFILTER_KW_INIT = @as(u64, 2); pub const SYSTEM_IOFILTER_KW_FASTIO = @as(u64, 4); pub const SYSTEM_IOFILTER_KW_FAILURE = @as(u64, 8); pub const SYSTEM_LOCK_KW_SPINLOCK = @as(u64, 1); pub const SYSTEM_LOCK_KW_SPINLOCK_COUNTERS = @as(u64, 2); pub const SYSTEM_LOCK_KW_SYNC_OBJECTS = @as(u64, 4); pub const SYSTEM_MEMORY_KW_GENERAL = @as(u64, 1); pub const SYSTEM_MEMORY_KW_HARD_FAULTS = @as(u64, 2); pub const SYSTEM_MEMORY_KW_ALL_FAULTS = @as(u64, 4); pub const SYSTEM_MEMORY_KW_POOL = @as(u64, 8); pub const SYSTEM_MEMORY_KW_MEMINFO = @as(u64, 16); pub const SYSTEM_MEMORY_KW_PFSECTION = @as(u64, 32); pub const SYSTEM_MEMORY_KW_MEMINFO_WS = @as(u64, 64); pub const SYSTEM_MEMORY_KW_HEAP = @as(u64, 128); pub const SYSTEM_MEMORY_KW_WS = @as(u64, 256); pub const SYSTEM_MEMORY_KW_CONTMEM_GEN = @as(u64, 512); pub const SYSTEM_MEMORY_KW_VIRTUAL_ALLOC = @as(u64, 1024); pub const SYSTEM_MEMORY_KW_FOOTPRINT = @as(u64, 2048); pub const SYSTEM_MEMORY_KW_SESSION = @as(u64, 4096); pub const SYSTEM_MEMORY_KW_REFSET = @as(u64, 8192); pub const SYSTEM_MEMORY_KW_VAMAP = @as(u64, 16384); pub const SYSTEM_MEMORY_KW_NONTRADEABLE = @as(u64, 32768); pub const SYSTEM_OBJECT_KW_GENERAL = @as(u64, 1); pub const SYSTEM_OBJECT_KW_HANDLE = @as(u64, 2); pub const SYSTEM_POWER_KW_GENERAL = @as(u64, 1); pub const SYSTEM_POWER_KW_HIBER_RUNDOWN = @as(u64, 2); pub const SYSTEM_POWER_KW_PROCESSOR_IDLE = @as(u64, 4); pub const SYSTEM_POWER_KW_IDLE_SELECTION = @as(u64, 8); pub const SYSTEM_POWER_KW_PPM_EXIT_LATENCY = @as(u64, 16); pub const SYSTEM_PROCESS_KW_GENERAL = @as(u64, 1); pub const SYSTEM_PROCESS_KW_INSWAP = @as(u64, 2); pub const SYSTEM_PROCESS_KW_FREEZE = @as(u64, 4); pub const SYSTEM_PROCESS_KW_PERF_COUNTER = @as(u64, 8); pub const SYSTEM_PROCESS_KW_WAKE_COUNTER = @as(u64, 16); pub const SYSTEM_PROCESS_KW_WAKE_DROP = @as(u64, 32); pub const SYSTEM_PROCESS_KW_WAKE_EVENT = @as(u64, 64); pub const SYSTEM_PROCESS_KW_DEBUG_EVENTS = @as(u64, 128); pub const SYSTEM_PROCESS_KW_DBGPRINT = @as(u64, 256); pub const SYSTEM_PROCESS_KW_JOB = @as(u64, 512); pub const SYSTEM_PROCESS_KW_WORKER_THREAD = @as(u64, 1024); pub const SYSTEM_PROCESS_KW_THREAD = @as(u64, 2048); pub const SYSTEM_PROCESS_KW_LOADER = @as(u64, 4096); pub const SYSTEM_PROFILE_KW_GENERAL = @as(u64, 1); pub const SYSTEM_PROFILE_KW_PMC_PROFILE = @as(u64, 2); pub const SYSTEM_REGISTRY_KW_GENERAL = @as(u64, 1); pub const SYSTEM_REGISTRY_KW_HIVE = @as(u64, 2); pub const SYSTEM_REGISTRY_KW_NOTIFICATION = @as(u64, 4); pub const SYSTEM_SCHEDULER_KW_XSCHEDULER = @as(u64, 1); pub const SYSTEM_SCHEDULER_KW_DISPATCHER = @as(u64, 2); pub const SYSTEM_SCHEDULER_KW_KERNEL_QUEUE = @as(u64, 4); pub const SYSTEM_SCHEDULER_KW_SHOULD_YIELD = @as(u64, 8); pub const SYSTEM_SCHEDULER_KW_ANTI_STARVATION = @as(u64, 16); pub const SYSTEM_SCHEDULER_KW_LOAD_BALANCER = @as(u64, 32); pub const SYSTEM_SCHEDULER_KW_AFFINITY = @as(u64, 64); pub const SYSTEM_SCHEDULER_KW_PRIORITY = @as(u64, 128); pub const SYSTEM_SCHEDULER_KW_IDEAL_PROCESSOR = @as(u64, 256); pub const SYSTEM_SCHEDULER_KW_CONTEXT_SWITCH = @as(u64, 512); pub const SYSTEM_SCHEDULER_KW_COMPACT_CSWITCH = @as(u64, 1024); pub const SYSTEM_SYSCALL_KW_GENERAL = @as(u64, 1); pub const SYSTEM_TIMER_KW_GENERAL = @as(u64, 1); pub const SYSTEM_TIMER_KW_CLOCK_TIMER = @as(u64, 2); pub const SYSTEM_MEMORY_POOL_FILTER_ID = @as(u32, 1); pub const ETW_NULL_TYPE_VALUE = @as(u32, 0); pub const ETW_OBJECT_TYPE_VALUE = @as(u32, 1); pub const ETW_STRING_TYPE_VALUE = @as(u32, 2); pub const ETW_SBYTE_TYPE_VALUE = @as(u32, 3); pub const ETW_BYTE_TYPE_VALUE = @as(u32, 4); pub const ETW_INT16_TYPE_VALUE = @as(u32, 5); pub const ETW_UINT16_TYPE_VALUE = @as(u32, 6); pub const ETW_INT32_TYPE_VALUE = @as(u32, 7); pub const ETW_UINT32_TYPE_VALUE = @as(u32, 8); pub const ETW_INT64_TYPE_VALUE = @as(u32, 9); pub const ETW_UINT64_TYPE_VALUE = @as(u32, 10); pub const ETW_CHAR_TYPE_VALUE = @as(u32, 11); pub const ETW_SINGLE_TYPE_VALUE = @as(u32, 12); pub const ETW_DOUBLE_TYPE_VALUE = @as(u32, 13); pub const ETW_BOOLEAN_TYPE_VALUE = @as(u32, 14); pub const ETW_DECIMAL_TYPE_VALUE = @as(u32, 15); pub const ETW_GUID_TYPE_VALUE = @as(u32, 101); pub const ETW_ASCIICHAR_TYPE_VALUE = @as(u32, 102); pub const ETW_ASCIISTRING_TYPE_VALUE = @as(u32, 103); pub const ETW_COUNTED_STRING_TYPE_VALUE = @as(u32, 104); pub const ETW_POINTER_TYPE_VALUE = @as(u32, 105); pub const ETW_SIZET_TYPE_VALUE = @as(u32, 106); pub const ETW_HIDDEN_TYPE_VALUE = @as(u32, 107); pub const ETW_BOOL_TYPE_VALUE = @as(u32, 108); pub const ETW_COUNTED_ANSISTRING_TYPE_VALUE = @as(u32, 109); pub const ETW_REVERSED_COUNTED_STRING_TYPE_VALUE = @as(u32, 110); pub const ETW_REVERSED_COUNTED_ANSISTRING_TYPE_VALUE = @as(u32, 111); pub const ETW_NON_NULL_TERMINATED_STRING_TYPE_VALUE = @as(u32, 112); pub const ETW_REDUCED_ANSISTRING_TYPE_VALUE = @as(u32, 113); pub const ETW_REDUCED_STRING_TYPE_VALUE = @as(u32, 114); pub const ETW_SID_TYPE_VALUE = @as(u32, 115); pub const ETW_VARIANT_TYPE_VALUE = @as(u32, 116); pub const ETW_PTVECTOR_TYPE_VALUE = @as(u32, 117); pub const ETW_WMITIME_TYPE_VALUE = @as(u32, 118); pub const ETW_DATETIME_TYPE_VALUE = @as(u32, 119); pub const ETW_REFRENCE_TYPE_VALUE = @as(u32, 120); pub const TRACE_PROVIDER_FLAG_LEGACY = @as(u32, 1); pub const TRACE_PROVIDER_FLAG_PRE_ENABLE = @as(u32, 2); pub const ENABLE_TRACE_PARAMETERS_VERSION = @as(u32, 1); pub const ENABLE_TRACE_PARAMETERS_VERSION_2 = @as(u32, 2); pub const EVENT_MIN_LEVEL = @as(u32, 0); pub const EVENT_MAX_LEVEL = @as(u32, 255); pub const EVENT_ACTIVITY_CTRL_GET_ID = @as(u32, 1); pub const EVENT_ACTIVITY_CTRL_SET_ID = @as(u32, 2); pub const EVENT_ACTIVITY_CTRL_CREATE_ID = @as(u32, 3); pub const EVENT_ACTIVITY_CTRL_GET_SET_ID = @as(u32, 4); pub const EVENT_ACTIVITY_CTRL_CREATE_SET_ID = @as(u32, 5); pub const MAX_EVENT_DATA_DESCRIPTORS = @as(u32, 128); pub const MAX_EVENT_FILTER_DATA_SIZE = @as(u32, 1024); pub const MAX_EVENT_FILTER_PAYLOAD_SIZE = @as(u32, 4096); pub const MAX_EVENT_FILTER_EVENT_NAME_SIZE = @as(u32, 4096); pub const MAX_EVENT_FILTERS_COUNT = @as(u32, 13); pub const MAX_EVENT_FILTER_PID_COUNT = @as(u32, 8); pub const MAX_EVENT_FILTER_EVENT_ID_COUNT = @as(u32, 64); pub const EVENT_FILTER_TYPE_NONE = @as(u32, 0); pub const EVENT_FILTER_TYPE_SCHEMATIZED = @as(u32, 2147483648); pub const EVENT_FILTER_TYPE_SYSTEM_FLAGS = @as(u32, 2147483649); pub const EVENT_FILTER_TYPE_TRACEHANDLE = @as(u32, 2147483650); pub const EVENT_FILTER_TYPE_PID = @as(u32, 2147483652); pub const EVENT_FILTER_TYPE_EXECUTABLE_NAME = @as(u32, 2147483656); pub const EVENT_FILTER_TYPE_PACKAGE_ID = @as(u32, 2147483664); pub const EVENT_FILTER_TYPE_PACKAGE_APP_ID = @as(u32, 2147483680); pub const EVENT_FILTER_TYPE_PAYLOAD = @as(u32, 2147483904); pub const EVENT_FILTER_TYPE_EVENT_ID = @as(u32, 2147484160); pub const EVENT_FILTER_TYPE_EVENT_NAME = @as(u32, 2147484672); pub const EVENT_FILTER_TYPE_STACKWALK = @as(u32, 2147487744); pub const EVENT_FILTER_TYPE_STACKWALK_NAME = @as(u32, 2147491840); pub const EVENT_FILTER_TYPE_STACKWALK_LEVEL_KW = @as(u32, 2147500032); pub const EVENT_FILTER_TYPE_CONTAINER = @as(u32, 2147516416); pub const EVENT_DATA_DESCRIPTOR_TYPE_NONE = @as(u32, 0); pub const EVENT_DATA_DESCRIPTOR_TYPE_EVENT_METADATA = @as(u32, 1); pub const EVENT_DATA_DESCRIPTOR_TYPE_PROVIDER_METADATA = @as(u32, 2); pub const EVENT_DATA_DESCRIPTOR_TYPE_TIMESTAMP_OVERRIDE = @as(u32, 3); pub const EVENT_WRITE_FLAG_NO_FAULTING = @as(u32, 1); pub const EVENT_WRITE_FLAG_INPRIVATE = @as(u32, 2); pub const EVENT_HEADER_EXT_TYPE_RELATED_ACTIVITYID = @as(u32, 1); pub const EVENT_HEADER_EXT_TYPE_SID = @as(u32, 2); pub const EVENT_HEADER_EXT_TYPE_TS_ID = @as(u32, 3); pub const EVENT_HEADER_EXT_TYPE_INSTANCE_INFO = @as(u32, 4); pub const EVENT_HEADER_EXT_TYPE_STACK_TRACE32 = @as(u32, 5); pub const EVENT_HEADER_EXT_TYPE_STACK_TRACE64 = @as(u32, 6); pub const EVENT_HEADER_EXT_TYPE_PEBS_INDEX = @as(u32, 7); pub const EVENT_HEADER_EXT_TYPE_PMC_COUNTERS = @as(u32, 8); pub const EVENT_HEADER_EXT_TYPE_PSM_KEY = @as(u32, 9); pub const EVENT_HEADER_EXT_TYPE_EVENT_KEY = @as(u32, 10); pub const EVENT_HEADER_EXT_TYPE_EVENT_SCHEMA_TL = @as(u32, 11); pub const EVENT_HEADER_EXT_TYPE_PROV_TRAITS = @as(u32, 12); pub const EVENT_HEADER_EXT_TYPE_PROCESS_START_KEY = @as(u32, 13); pub const EVENT_HEADER_EXT_TYPE_CONTROL_GUID = @as(u32, 14); pub const EVENT_HEADER_EXT_TYPE_QPC_DELTA = @as(u32, 15); pub const EVENT_HEADER_EXT_TYPE_CONTAINER_ID = @as(u32, 16); pub const EVENT_HEADER_EXT_TYPE_STACK_KEY32 = @as(u32, 17); pub const EVENT_HEADER_EXT_TYPE_STACK_KEY64 = @as(u32, 18); pub const EVENT_HEADER_EXT_TYPE_MAX = @as(u32, 19); pub const EVENT_HEADER_PROPERTY_XML = @as(u32, 1); pub const EVENT_HEADER_PROPERTY_FORWARDED_XML = @as(u32, 2); pub const EVENT_HEADER_PROPERTY_LEGACY_EVENTLOG = @as(u32, 4); pub const EVENT_HEADER_PROPERTY_RELOGGABLE = @as(u32, 8); pub const EVENT_HEADER_FLAG_EXTENDED_INFO = @as(u32, 1); pub const EVENT_HEADER_FLAG_PRIVATE_SESSION = @as(u32, 2); pub const EVENT_HEADER_FLAG_STRING_ONLY = @as(u32, 4); pub const EVENT_HEADER_FLAG_TRACE_MESSAGE = @as(u32, 8); pub const EVENT_HEADER_FLAG_NO_CPUTIME = @as(u32, 16); pub const EVENT_HEADER_FLAG_32_BIT_HEADER = @as(u32, 32); pub const EVENT_HEADER_FLAG_64_BIT_HEADER = @as(u32, 64); pub const EVENT_HEADER_FLAG_DECODE_GUID = @as(u32, 128); pub const EVENT_HEADER_FLAG_CLASSIC_HEADER = @as(u32, 256); pub const EVENT_HEADER_FLAG_PROCESSOR_INDEX = @as(u32, 512); pub const EVENT_ENABLE_PROPERTY_SID = @as(u32, 1); pub const EVENT_ENABLE_PROPERTY_TS_ID = @as(u32, 2); pub const EVENT_ENABLE_PROPERTY_STACK_TRACE = @as(u32, 4); pub const EVENT_ENABLE_PROPERTY_PSM_KEY = @as(u32, 8); pub const EVENT_ENABLE_PROPERTY_IGNORE_KEYWORD_0 = @as(u32, 16); pub const EVENT_ENABLE_PROPERTY_PROVIDER_GROUP = @as(u32, 32); pub const EVENT_ENABLE_PROPERTY_ENABLE_KEYWORD_0 = @as(u32, 64); pub const EVENT_ENABLE_PROPERTY_PROCESS_START_KEY = @as(u32, 128); pub const EVENT_ENABLE_PROPERTY_EVENT_KEY = @as(u32, 256); pub const EVENT_ENABLE_PROPERTY_EXCLUDE_INPRIVATE = @as(u32, 512); pub const EVENT_ENABLE_PROPERTY_ENABLE_SILOS = @as(u32, 1024); pub const EVENT_ENABLE_PROPERTY_SOURCE_CONTAINER_TRACKING = @as(u32, 2048); pub const PROCESS_TRACE_MODE_REAL_TIME = @as(u32, 256); pub const PROCESS_TRACE_MODE_RAW_TIMESTAMP = @as(u32, 4096); pub const PROCESS_TRACE_MODE_EVENT_RECORD = @as(u32, 268435456); pub const CLSID_TraceRelogger = Guid.initString("7b40792d-05ff-44c4-9058-f440c71f17d4"); //-------------------------------------------------------------------------------- // Section: Types (108) //-------------------------------------------------------------------------------- pub const TRACE_MESSAGE_FLAGS = enum(u32) { COMPONENTID = 4, GUID = 2, SEQUENCE = 1, SYSTEMINFO = 32, TIMESTAMP = 8, _, pub fn initFlags(o: struct { COMPONENTID: u1 = 0, GUID: u1 = 0, SEQUENCE: u1 = 0, SYSTEMINFO: u1 = 0, TIMESTAMP: u1 = 0, }) TRACE_MESSAGE_FLAGS { return @as(TRACE_MESSAGE_FLAGS, @enumFromInt((if (o.COMPONENTID == 1) @intFromEnum(TRACE_MESSAGE_FLAGS.COMPONENTID) else 0) | (if (o.GUID == 1) @intFromEnum(TRACE_MESSAGE_FLAGS.GUID) else 0) | (if (o.SEQUENCE == 1) @intFromEnum(TRACE_MESSAGE_FLAGS.SEQUENCE) else 0) | (if (o.SYSTEMINFO == 1) @intFromEnum(TRACE_MESSAGE_FLAGS.SYSTEMINFO) else 0) | (if (o.TIMESTAMP == 1) @intFromEnum(TRACE_MESSAGE_FLAGS.TIMESTAMP) else 0))); } }; pub const TRACE_MESSAGE_COMPONENTID = TRACE_MESSAGE_FLAGS.COMPONENTID; pub const TRACE_MESSAGE_GUID = TRACE_MESSAGE_FLAGS.GUID; pub const TRACE_MESSAGE_SEQUENCE = TRACE_MESSAGE_FLAGS.SEQUENCE; pub const TRACE_MESSAGE_SYSTEMINFO = TRACE_MESSAGE_FLAGS.SYSTEMINFO; pub const TRACE_MESSAGE_TIMESTAMP = TRACE_MESSAGE_FLAGS.TIMESTAMP; pub const ENABLECALLBACK_ENABLED_STATE = enum(u32) { DISABLE_PROVIDER = 0, ENABLE_PROVIDER = 1, CAPTURE_STATE = 2, }; pub const EVENT_CONTROL_CODE_DISABLE_PROVIDER = ENABLECALLBACK_ENABLED_STATE.DISABLE_PROVIDER; pub const EVENT_CONTROL_CODE_ENABLE_PROVIDER = ENABLECALLBACK_ENABLED_STATE.ENABLE_PROVIDER; pub const EVENT_CONTROL_CODE_CAPTURE_STATE = ENABLECALLBACK_ENABLED_STATE.CAPTURE_STATE; pub const EVENT_TRACE_CONTROL = enum(u32) { FLUSH = 3, QUERY = 0, STOP = 1, UPDATE = 2, }; pub const EVENT_TRACE_CONTROL_FLUSH = EVENT_TRACE_CONTROL.FLUSH; pub const EVENT_TRACE_CONTROL_QUERY = EVENT_TRACE_CONTROL.QUERY; pub const EVENT_TRACE_CONTROL_STOP = EVENT_TRACE_CONTROL.STOP; pub const EVENT_TRACE_CONTROL_UPDATE = EVENT_TRACE_CONTROL.UPDATE; pub const EVENT_TRACE_FLAG = enum(u32) { ALPC = 1048576, CSWITCH = 16, DBGPRINT = 262144, DISK_FILE_IO = 512, DISK_IO = 256, DISK_IO_INIT = 1024, DISPATCHER = 2048, DPC = 32, DRIVER = 8388608, FILE_IO = 33554432, FILE_IO_INIT = 67108864, IMAGE_LOAD = 4, INTERRUPT = 64, JOB = 524288, MEMORY_HARD_FAULTS = 8192, MEMORY_PAGE_FAULTS = 4096, NETWORK_TCPIP = 65536, NO_SYSCONFIG = 268435456, PROCESS = 1, PROCESS_COUNTERS = 8, PROFILE = 16777216, REGISTRY = 131072, SPLIT_IO = 2097152, SYSTEMCALL = 128, THREAD = 2, VAMAP = 32768, VIRTUAL_ALLOC = 16384, _, pub fn initFlags(o: struct { ALPC: u1 = 0, CSWITCH: u1 = 0, DBGPRINT: u1 = 0, DISK_FILE_IO: u1 = 0, DISK_IO: u1 = 0, DISK_IO_INIT: u1 = 0, DISPATCHER: u1 = 0, DPC: u1 = 0, DRIVER: u1 = 0, FILE_IO: u1 = 0, FILE_IO_INIT: u1 = 0, IMAGE_LOAD: u1 = 0, INTERRUPT: u1 = 0, JOB: u1 = 0, MEMORY_HARD_FAULTS: u1 = 0, MEMORY_PAGE_FAULTS: u1 = 0, NETWORK_TCPIP: u1 = 0, NO_SYSCONFIG: u1 = 0, PROCESS: u1 = 0, PROCESS_COUNTERS: u1 = 0, PROFILE: u1 = 0, REGISTRY: u1 = 0, SPLIT_IO: u1 = 0, SYSTEMCALL: u1 = 0, THREAD: u1 = 0, VAMAP: u1 = 0, VIRTUAL_ALLOC: u1 = 0, }) EVENT_TRACE_FLAG { return @as(EVENT_TRACE_FLAG, @enumFromInt((if (o.ALPC == 1) @intFromEnum(EVENT_TRACE_FLAG.ALPC) else 0) | (if (o.CSWITCH == 1) @intFromEnum(EVENT_TRACE_FLAG.CSWITCH) else 0) | (if (o.DBGPRINT == 1) @intFromEnum(EVENT_TRACE_FLAG.DBGPRINT) else 0) | (if (o.DISK_FILE_IO == 1) @intFromEnum(EVENT_TRACE_FLAG.DISK_FILE_IO) else 0) | (if (o.DISK_IO == 1) @intFromEnum(EVENT_TRACE_FLAG.DISK_IO) else 0) | (if (o.DISK_IO_INIT == 1) @intFromEnum(EVENT_TRACE_FLAG.DISK_IO_INIT) else 0) | (if (o.DISPATCHER == 1) @intFromEnum(EVENT_TRACE_FLAG.DISPATCHER) else 0) | (if (o.DPC == 1) @intFromEnum(EVENT_TRACE_FLAG.DPC) else 0) | (if (o.DRIVER == 1) @intFromEnum(EVENT_TRACE_FLAG.DRIVER) else 0) | (if (o.FILE_IO == 1) @intFromEnum(EVENT_TRACE_FLAG.FILE_IO) else 0) | (if (o.FILE_IO_INIT == 1) @intFromEnum(EVENT_TRACE_FLAG.FILE_IO_INIT) else 0) | (if (o.IMAGE_LOAD == 1) @intFromEnum(EVENT_TRACE_FLAG.IMAGE_LOAD) else 0) | (if (o.INTERRUPT == 1) @intFromEnum(EVENT_TRACE_FLAG.INTERRUPT) else 0) | (if (o.JOB == 1) @intFromEnum(EVENT_TRACE_FLAG.JOB) else 0) | (if (o.MEMORY_HARD_FAULTS == 1) @intFromEnum(EVENT_TRACE_FLAG.MEMORY_HARD_FAULTS) else 0) | (if (o.MEMORY_PAGE_FAULTS == 1) @intFromEnum(EVENT_TRACE_FLAG.MEMORY_PAGE_FAULTS) else 0) | (if (o.NETWORK_TCPIP == 1) @intFromEnum(EVENT_TRACE_FLAG.NETWORK_TCPIP) else 0) | (if (o.NO_SYSCONFIG == 1) @intFromEnum(EVENT_TRACE_FLAG.NO_SYSCONFIG) else 0) | (if (o.PROCESS == 1) @intFromEnum(EVENT_TRACE_FLAG.PROCESS) else 0) | (if (o.PROCESS_COUNTERS == 1) @intFromEnum(EVENT_TRACE_FLAG.PROCESS_COUNTERS) else 0) | (if (o.PROFILE == 1) @intFromEnum(EVENT_TRACE_FLAG.PROFILE) else 0) | (if (o.REGISTRY == 1) @intFromEnum(EVENT_TRACE_FLAG.REGISTRY) else 0) | (if (o.SPLIT_IO == 1) @intFromEnum(EVENT_TRACE_FLAG.SPLIT_IO) else 0) | (if (o.SYSTEMCALL == 1) @intFromEnum(EVENT_TRACE_FLAG.SYSTEMCALL) else 0) | (if (o.THREAD == 1) @intFromEnum(EVENT_TRACE_FLAG.THREAD) else 0) | (if (o.VAMAP == 1) @intFromEnum(EVENT_TRACE_FLAG.VAMAP) else 0) | (if (o.VIRTUAL_ALLOC == 1) @intFromEnum(EVENT_TRACE_FLAG.VIRTUAL_ALLOC) else 0))); } }; pub const EVENT_TRACE_FLAG_ALPC = EVENT_TRACE_FLAG.ALPC; pub const EVENT_TRACE_FLAG_CSWITCH = EVENT_TRACE_FLAG.CSWITCH; pub const EVENT_TRACE_FLAG_DBGPRINT = EVENT_TRACE_FLAG.DBGPRINT; pub const EVENT_TRACE_FLAG_DISK_FILE_IO = EVENT_TRACE_FLAG.DISK_FILE_IO; pub const EVENT_TRACE_FLAG_DISK_IO = EVENT_TRACE_FLAG.DISK_IO; pub const EVENT_TRACE_FLAG_DISK_IO_INIT = EVENT_TRACE_FLAG.DISK_IO_INIT; pub const EVENT_TRACE_FLAG_DISPATCHER = EVENT_TRACE_FLAG.DISPATCHER; pub const EVENT_TRACE_FLAG_DPC = EVENT_TRACE_FLAG.DPC; pub const EVENT_TRACE_FLAG_DRIVER = EVENT_TRACE_FLAG.DRIVER; pub const EVENT_TRACE_FLAG_FILE_IO = EVENT_TRACE_FLAG.FILE_IO; pub const EVENT_TRACE_FLAG_FILE_IO_INIT = EVENT_TRACE_FLAG.FILE_IO_INIT; pub const EVENT_TRACE_FLAG_IMAGE_LOAD = EVENT_TRACE_FLAG.IMAGE_LOAD; pub const EVENT_TRACE_FLAG_INTERRUPT = EVENT_TRACE_FLAG.INTERRUPT; pub const EVENT_TRACE_FLAG_JOB = EVENT_TRACE_FLAG.JOB; pub const EVENT_TRACE_FLAG_MEMORY_HARD_FAULTS = EVENT_TRACE_FLAG.MEMORY_HARD_FAULTS; pub const EVENT_TRACE_FLAG_MEMORY_PAGE_FAULTS = EVENT_TRACE_FLAG.MEMORY_PAGE_FAULTS; pub const EVENT_TRACE_FLAG_NETWORK_TCPIP = EVENT_TRACE_FLAG.NETWORK_TCPIP; pub const EVENT_TRACE_FLAG_NO_SYSCONFIG = EVENT_TRACE_FLAG.NO_SYSCONFIG; pub const EVENT_TRACE_FLAG_PROCESS = EVENT_TRACE_FLAG.PROCESS; pub const EVENT_TRACE_FLAG_PROCESS_COUNTERS = EVENT_TRACE_FLAG.PROCESS_COUNTERS; pub const EVENT_TRACE_FLAG_PROFILE = EVENT_TRACE_FLAG.PROFILE; pub const EVENT_TRACE_FLAG_REGISTRY = EVENT_TRACE_FLAG.REGISTRY; pub const EVENT_TRACE_FLAG_SPLIT_IO = EVENT_TRACE_FLAG.SPLIT_IO; pub const EVENT_TRACE_FLAG_SYSTEMCALL = EVENT_TRACE_FLAG.SYSTEMCALL; pub const EVENT_TRACE_FLAG_THREAD = EVENT_TRACE_FLAG.THREAD; pub const EVENT_TRACE_FLAG_VAMAP = EVENT_TRACE_FLAG.VAMAP; pub const EVENT_TRACE_FLAG_VIRTUAL_ALLOC = EVENT_TRACE_FLAG.VIRTUAL_ALLOC; // TODO: this type has a FreeFunc 'TdhCloseDecodingHandle', what can Zig do with this information? pub const TDH_HANDLE = isize; pub const WNODE_HEADER = extern struct { BufferSize: u32, ProviderId: u32, Anonymous1: extern union { HistoricalContext: u64, Anonymous: extern struct { Version: u32, Linkage: u32, }, }, Anonymous2: extern union { CountLost: u32, KernelHandle: ?HANDLE, TimeStamp: LARGE_INTEGER, }, Guid: Guid, ClientContext: u32, Flags: u32, }; pub const OFFSETINSTANCEDATAANDLENGTH = extern struct { OffsetInstanceData: u32, LengthInstanceData: u32, }; pub const WNODE_ALL_DATA = extern struct { WnodeHeader: WNODE_HEADER, DataBlockOffset: u32, InstanceCount: u32, OffsetInstanceNameOffsets: u32, Anonymous: extern union { FixedInstanceSize: u32, OffsetInstanceDataAndLength: [1]OFFSETINSTANCEDATAANDLENGTH, }, }; pub const WNODE_SINGLE_INSTANCE = extern struct { WnodeHeader: WNODE_HEADER, OffsetInstanceName: u32, InstanceIndex: u32, DataBlockOffset: u32, SizeDataBlock: u32, VariableData: [1]u8, }; pub const WNODE_SINGLE_ITEM = extern struct { WnodeHeader: WNODE_HEADER, OffsetInstanceName: u32, InstanceIndex: u32, ItemId: u32, DataBlockOffset: u32, SizeDataItem: u32, VariableData: [1]u8, }; pub const WNODE_METHOD_ITEM = extern struct { WnodeHeader: WNODE_HEADER, OffsetInstanceName: u32, InstanceIndex: u32, MethodId: u32, DataBlockOffset: u32, SizeDataBlock: u32, VariableData: [1]u8, }; pub const WNODE_EVENT_ITEM = extern struct { WnodeHeader: WNODE_HEADER, }; pub const WNODE_EVENT_REFERENCE = extern struct { WnodeHeader: WNODE_HEADER, TargetGuid: Guid, TargetDataBlockSize: u32, Anonymous: extern union { TargetInstanceIndex: u32, TargetInstanceName: [1]u16, }, }; pub const WNODE_TOO_SMALL = extern struct { WnodeHeader: WNODE_HEADER, SizeNeeded: u32, }; pub const WMIREGGUIDW = extern struct { Guid: Guid, Flags: u32, InstanceCount: u32, Anonymous: extern union { InstanceNameList: u32, BaseNameOffset: u32, Pdo: usize, InstanceInfo: usize, }, }; pub const WMIREGINFOW = extern struct { BufferSize: u32, NextWmiRegInfo: u32, RegistryPath: u32, MofResourceName: u32, GuidCount: u32, WmiRegGuid: [1]WMIREGGUIDW, }; pub const WMIDPREQUESTCODE = enum(i32) { GET_ALL_DATA = 0, GET_SINGLE_INSTANCE = 1, SET_SINGLE_INSTANCE = 2, SET_SINGLE_ITEM = 3, ENABLE_EVENTS = 4, DISABLE_EVENTS = 5, ENABLE_COLLECTION = 6, DISABLE_COLLECTION = 7, REGINFO = 8, EXECUTE_METHOD = 9, CAPTURE_STATE = 10, }; pub const WMI_GET_ALL_DATA = WMIDPREQUESTCODE.GET_ALL_DATA; pub const WMI_GET_SINGLE_INSTANCE = WMIDPREQUESTCODE.GET_SINGLE_INSTANCE; pub const WMI_SET_SINGLE_INSTANCE = WMIDPREQUESTCODE.SET_SINGLE_INSTANCE; pub const WMI_SET_SINGLE_ITEM = WMIDPREQUESTCODE.SET_SINGLE_ITEM; pub const WMI_ENABLE_EVENTS = WMIDPREQUESTCODE.ENABLE_EVENTS; pub const WMI_DISABLE_EVENTS = WMIDPREQUESTCODE.DISABLE_EVENTS; pub const WMI_ENABLE_COLLECTION = WMIDPREQUESTCODE.ENABLE_COLLECTION; pub const WMI_DISABLE_COLLECTION = WMIDPREQUESTCODE.DISABLE_COLLECTION; pub const WMI_REGINFO = WMIDPREQUESTCODE.REGINFO; pub const WMI_EXECUTE_METHOD = WMIDPREQUESTCODE.EXECUTE_METHOD; pub const WMI_CAPTURE_STATE = WMIDPREQUESTCODE.CAPTURE_STATE; pub const ETW_COMPRESSION_RESUMPTION_MODE = enum(i32) { Restart = 0, NoDisable = 1, NoRestart = 2, }; pub const EtwCompressionModeRestart = ETW_COMPRESSION_RESUMPTION_MODE.Restart; pub const EtwCompressionModeNoDisable = ETW_COMPRESSION_RESUMPTION_MODE.NoDisable; pub const EtwCompressionModeNoRestart = ETW_COMPRESSION_RESUMPTION_MODE.NoRestart; pub const EVENT_TRACE_HEADER = extern struct { Size: u16, Anonymous1: extern union { FieldTypeFlags: u16, Anonymous: extern struct { HeaderType: u8, MarkerFlags: u8, }, }, Anonymous2: extern union { Version: u32, Class: extern struct { Type: u8, Level: u8, Version: u16, }, }, ThreadId: u32, ProcessId: u32, TimeStamp: LARGE_INTEGER, Anonymous3: extern union { Guid: Guid, GuidPtr: u64, }, Anonymous4: extern union { Anonymous1: extern struct { KernelTime: u32, UserTime: u32, }, ProcessorTime: u64, Anonymous2: extern struct { ClientContext: u32, Flags: u32, }, }, }; pub const EVENT_INSTANCE_HEADER = extern struct { Size: u16, Anonymous1: extern union { FieldTypeFlags: u16, Anonymous: extern struct { HeaderType: u8, MarkerFlags: u8, }, }, Anonymous2: extern union { Version: u32, Class: extern struct { Type: u8, Level: u8, Version: u16, }, }, ThreadId: u32, ProcessId: u32, TimeStamp: LARGE_INTEGER, RegHandle: u64, InstanceId: u32, ParentInstanceId: u32, Anonymous3: extern union { Anonymous1: extern struct { KernelTime: u32, UserTime: u32, }, ProcessorTime: u64, Anonymous2: extern struct { EventId: u32, Flags: u32, }, }, ParentRegHandle: u64, }; pub const MOF_FIELD = extern struct { DataPtr: u64, Length: u32, DataType: u32, }; pub const TRACE_LOGFILE_HEADER = extern struct { BufferSize: u32, Anonymous1: extern union { Version: u32, VersionDetail: extern struct { MajorVersion: u8, MinorVersion: u8, SubVersion: u8, SubMinorVersion: u8, }, }, ProviderVersion: u32, NumberOfProcessors: u32, EndTime: LARGE_INTEGER, TimerResolution: u32, MaximumFileSize: u32, LogFileMode: u32, BuffersWritten: u32, Anonymous2: extern union { LogInstanceGuid: Guid, Anonymous: extern struct { StartBuffers: u32, PointerSize: u32, EventsLost: u32, CpuSpeedInMHz: u32, }, }, LoggerName: ?PWSTR, LogFileName: ?PWSTR, TimeZone: TIME_ZONE_INFORMATION, BootTime: LARGE_INTEGER, PerfFreq: LARGE_INTEGER, StartTime: LARGE_INTEGER, ReservedFlags: u32, BuffersLost: u32, }; pub const TRACE_LOGFILE_HEADER32 = extern struct { BufferSize: u32, Anonymous1: extern union { Version: u32, VersionDetail: extern struct { MajorVersion: u8, MinorVersion: u8, SubVersion: u8, SubMinorVersion: u8, }, }, ProviderVersion: u32, NumberOfProcessors: u32, EndTime: LARGE_INTEGER, TimerResolution: u32, MaximumFileSize: u32, LogFileMode: u32, BuffersWritten: u32, Anonymous2: extern union { LogInstanceGuid: Guid, Anonymous: extern struct { StartBuffers: u32, PointerSize: u32, EventsLost: u32, CpuSpeedInMHz: u32, }, }, LoggerName: u32, LogFileName: u32, TimeZone: TIME_ZONE_INFORMATION, BootTime: LARGE_INTEGER, PerfFreq: LARGE_INTEGER, StartTime: LARGE_INTEGER, ReservedFlags: u32, BuffersLost: u32, }; pub const TRACE_LOGFILE_HEADER64 = extern struct { BufferSize: u32, Anonymous1: extern union { Version: u32, VersionDetail: extern struct { MajorVersion: u8, MinorVersion: u8, SubVersion: u8, SubMinorVersion: u8, }, }, ProviderVersion: u32, NumberOfProcessors: u32, EndTime: LARGE_INTEGER, TimerResolution: u32, MaximumFileSize: u32, LogFileMode: u32, BuffersWritten: u32, Anonymous2: extern union { LogInstanceGuid: Guid, Anonymous: extern struct { StartBuffers: u32, PointerSize: u32, EventsLost: u32, CpuSpeedInMHz: u32, }, }, LoggerName: u64, LogFileName: u64, TimeZone: TIME_ZONE_INFORMATION, BootTime: LARGE_INTEGER, PerfFreq: LARGE_INTEGER, StartTime: LARGE_INTEGER, ReservedFlags: u32, BuffersLost: u32, }; pub const EVENT_INSTANCE_INFO = extern struct { RegHandle: ?HANDLE, InstanceId: u32, }; pub const EVENT_TRACE_PROPERTIES = extern struct { Wnode: WNODE_HEADER, BufferSize: u32, MinimumBuffers: u32, MaximumBuffers: u32, MaximumFileSize: u32, LogFileMode: u32, FlushTimer: u32, EnableFlags: EVENT_TRACE_FLAG, Anonymous: extern union { AgeLimit: i32, FlushThreshold: i32, }, NumberOfBuffers: u32, FreeBuffers: u32, EventsLost: u32, BuffersWritten: u32, LogBuffersLost: u32, RealTimeBuffersLost: u32, LoggerThreadId: ?HANDLE, LogFileNameOffset: u32, LoggerNameOffset: u32, }; pub const EVENT_TRACE_PROPERTIES_V2 = extern struct { Wnode: WNODE_HEADER, BufferSize: u32, MinimumBuffers: u32, MaximumBuffers: u32, MaximumFileSize: u32, LogFileMode: u32, FlushTimer: u32, EnableFlags: EVENT_TRACE_FLAG, Anonymous1: extern union { AgeLimit: i32, FlushThreshold: i32, }, NumberOfBuffers: u32, FreeBuffers: u32, EventsLost: u32, BuffersWritten: u32, LogBuffersLost: u32, RealTimeBuffersLost: u32, LoggerThreadId: ?HANDLE, LogFileNameOffset: u32, LoggerNameOffset: u32, Anonymous2: extern union { Anonymous: extern struct { _bitfield: u32, }, V2Control: u32, }, FilterDescCount: u32, FilterDesc: ?*EVENT_FILTER_DESCRIPTOR, Anonymous3: extern union { Anonymous: extern struct { _bitfield: u32, }, V2Options: u64, }, }; pub const TRACE_GUID_REGISTRATION = extern struct { Guid: ?*const Guid, RegHandle: ?HANDLE, }; pub const TRACE_GUID_PROPERTIES = extern struct { Guid: Guid, GuidType: u32, LoggerId: u32, EnableLevel: u32, EnableFlags: u32, IsEnable: BOOLEAN, }; pub const ETW_BUFFER_CONTEXT = extern struct { Anonymous: extern union { Anonymous: extern struct { ProcessorNumber: u8, Alignment: u8, }, ProcessorIndex: u16, }, LoggerId: u16, }; pub const TRACE_ENABLE_INFO = extern struct { IsEnabled: u32, Level: u8, Reserved1: u8, LoggerId: u16, EnableProperty: u32, Reserved2: u32, MatchAnyKeyword: u64, MatchAllKeyword: u64, }; pub const TRACE_PROVIDER_INSTANCE_INFO = extern struct { NextOffset: u32, EnableCount: u32, Pid: u32, Flags: u32, }; pub const TRACE_GUID_INFO = extern struct { InstanceCount: u32, Reserved: u32, }; pub const PROFILE_SOURCE_INFO = extern struct { NextEntryOffset: u32, Source: u32, MinInterval: u32, MaxInterval: u32, Reserved: u64, Description: [1]u16, }; pub const ETW_PMC_COUNTER_OWNER_TYPE = enum(i32) { Free = 0, Untagged = 1, Tagged = 2, TaggedWithSource = 3, }; pub const EtwPmcOwnerFree = ETW_PMC_COUNTER_OWNER_TYPE.Free; pub const EtwPmcOwnerUntagged = ETW_PMC_COUNTER_OWNER_TYPE.Untagged; pub const EtwPmcOwnerTagged = ETW_PMC_COUNTER_OWNER_TYPE.Tagged; pub const EtwPmcOwnerTaggedWithSource = ETW_PMC_COUNTER_OWNER_TYPE.TaggedWithSource; pub const ETW_PMC_COUNTER_OWNER = extern struct { OwnerType: ETW_PMC_COUNTER_OWNER_TYPE, ProfileSource: u32, OwnerTag: u32, }; pub const ETW_PMC_COUNTER_OWNERSHIP_STATUS = extern struct { ProcessorNumber: u32, NumberOfCounters: u32, CounterOwners: [1]ETW_PMC_COUNTER_OWNER, }; pub const EVENT_TRACE = extern struct { Header: EVENT_TRACE_HEADER, InstanceId: u32, ParentInstanceId: u32, ParentGuid: Guid, MofData: ?*anyopaque, MofLength: u32, Anonymous: extern union { ClientContext: u32, BufferContext: ETW_BUFFER_CONTEXT, }, }; // TODO: this function pointer causes dependency loop problems, so it's stubbed out pub const PEVENT_TRACE_BUFFER_CALLBACKW = switch (@import("builtin").zig_backend) { .stage1 => fn () callconv(@import("std").os.windows.WINAPI) void, else => *const fn () callconv(@import("std").os.windows.WINAPI) void, }; // TODO: this function pointer causes dependency loop problems, so it's stubbed out pub const PEVENT_TRACE_BUFFER_CALLBACKA = switch (@import("builtin").zig_backend) { .stage1 => fn () callconv(@import("std").os.windows.WINAPI) void, else => *const fn () callconv(@import("std").os.windows.WINAPI) void, }; pub const PEVENT_CALLBACK = switch (@import("builtin").zig_backend) { .stage1 => fn ( pEvent: ?*EVENT_TRACE, ) callconv(@import("std").os.windows.WINAPI) void, else => *const fn ( pEvent: ?*EVENT_TRACE, ) callconv(@import("std").os.windows.WINAPI) void, }; pub const PEVENT_RECORD_CALLBACK = switch (@import("builtin").zig_backend) { .stage1 => fn ( EventRecord: ?*EVENT_RECORD, ) callconv(@import("std").os.windows.WINAPI) void, else => *const fn ( EventRecord: ?*EVENT_RECORD, ) callconv(@import("std").os.windows.WINAPI) void, }; pub const WMIDPREQUEST = switch (@import("builtin").zig_backend) { .stage1 => fn ( RequestCode: WMIDPREQUESTCODE, RequestContext: ?*anyopaque, BufferSize: ?*u32, Buffer: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) u32, else => *const fn ( RequestCode: WMIDPREQUESTCODE, RequestContext: ?*anyopaque, BufferSize: ?*u32, Buffer: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) u32, }; pub const EVENT_TRACE_LOGFILEW = extern struct { LogFileName: ?PWSTR, LoggerName: ?PWSTR, CurrentTime: i64, BuffersRead: u32, Anonymous1: extern union { LogFileMode: u32, ProcessTraceMode: u32, }, CurrentEvent: EVENT_TRACE, LogfileHeader: TRACE_LOGFILE_HEADER, BufferCallback: ?PEVENT_TRACE_BUFFER_CALLBACKW, BufferSize: u32, Filled: u32, EventsLost: u32, Anonymous2: extern union { EventCallback: ?PEVENT_CALLBACK, EventRecordCallback: ?PEVENT_RECORD_CALLBACK, }, IsKernelTrace: u32, Context: ?*anyopaque, }; pub const EVENT_TRACE_LOGFILEA = extern struct { LogFileName: ?PSTR, LoggerName: ?PSTR, CurrentTime: i64, BuffersRead: u32, Anonymous1: extern union { LogFileMode: u32, ProcessTraceMode: u32, }, CurrentEvent: EVENT_TRACE, LogfileHeader: TRACE_LOGFILE_HEADER, BufferCallback: ?PEVENT_TRACE_BUFFER_CALLBACKA, BufferSize: u32, Filled: u32, EventsLost: u32, Anonymous2: extern union { EventCallback: ?PEVENT_CALLBACK, EventRecordCallback: ?PEVENT_RECORD_CALLBACK, }, IsKernelTrace: u32, Context: ?*anyopaque, }; pub const ENABLE_TRACE_PARAMETERS_V1 = extern struct { Version: u32, EnableProperty: u32, ControlFlags: u32, SourceId: Guid, EnableFilterDesc: ?*EVENT_FILTER_DESCRIPTOR, }; pub const ENABLE_TRACE_PARAMETERS = extern struct { Version: u32, EnableProperty: u32, ControlFlags: u32, SourceId: Guid, EnableFilterDesc: ?*EVENT_FILTER_DESCRIPTOR, FilterDescCount: u32, }; pub const TRACE_QUERY_INFO_CLASS = enum(i32) { TraceGuidQueryList = 0, TraceGuidQueryInfo = 1, TraceGuidQueryProcess = 2, TraceStackTracingInfo = 3, TraceSystemTraceEnableFlagsInfo = 4, TraceSampledProfileIntervalInfo = 5, TraceProfileSourceConfigInfo = 6, TraceProfileSourceListInfo = 7, TracePmcEventListInfo = 8, TracePmcCounterListInfo = 9, TraceSetDisallowList = 10, TraceVersionInfo = 11, TraceGroupQueryList = 12, TraceGroupQueryInfo = 13, TraceDisallowListQuery = 14, TraceInfoReserved15 = 15, TracePeriodicCaptureStateListInfo = 16, TracePeriodicCaptureStateInfo = 17, TraceProviderBinaryTracking = 18, TraceMaxLoggersQuery = 19, TraceLbrConfigurationInfo = 20, TraceLbrEventListInfo = 21, TraceMaxPmcCounterQuery = 22, TraceStreamCount = 23, TraceStackCachingInfo = 24, TracePmcCounterOwners = 25, TraceUnifiedStackCachingInfo = 26, MaxTraceSetInfoClass = 27, }; pub const TraceGuidQueryList = TRACE_QUERY_INFO_CLASS.TraceGuidQueryList; pub const TraceGuidQueryInfo = TRACE_QUERY_INFO_CLASS.TraceGuidQueryInfo; pub const TraceGuidQueryProcess = TRACE_QUERY_INFO_CLASS.TraceGuidQueryProcess; pub const TraceStackTracingInfo = TRACE_QUERY_INFO_CLASS.TraceStackTracingInfo; pub const TraceSystemTraceEnableFlagsInfo = TRACE_QUERY_INFO_CLASS.TraceSystemTraceEnableFlagsInfo; pub const TraceSampledProfileIntervalInfo = TRACE_QUERY_INFO_CLASS.TraceSampledProfileIntervalInfo; pub const TraceProfileSourceConfigInfo = TRACE_QUERY_INFO_CLASS.TraceProfileSourceConfigInfo; pub const TraceProfileSourceListInfo = TRACE_QUERY_INFO_CLASS.TraceProfileSourceListInfo; pub const TracePmcEventListInfo = TRACE_QUERY_INFO_CLASS.TracePmcEventListInfo; pub const TracePmcCounterListInfo = TRACE_QUERY_INFO_CLASS.TracePmcCounterListInfo; pub const TraceSetDisallowList = TRACE_QUERY_INFO_CLASS.TraceSetDisallowList; pub const TraceVersionInfo = TRACE_QUERY_INFO_CLASS.TraceVersionInfo; pub const TraceGroupQueryList = TRACE_QUERY_INFO_CLASS.TraceGroupQueryList; pub const TraceGroupQueryInfo = TRACE_QUERY_INFO_CLASS.TraceGroupQueryInfo; pub const TraceDisallowListQuery = TRACE_QUERY_INFO_CLASS.TraceDisallowListQuery; pub const TraceInfoReserved15 = TRACE_QUERY_INFO_CLASS.TraceInfoReserved15; pub const TracePeriodicCaptureStateListInfo = TRACE_QUERY_INFO_CLASS.TracePeriodicCaptureStateListInfo; pub const TracePeriodicCaptureStateInfo = TRACE_QUERY_INFO_CLASS.TracePeriodicCaptureStateInfo; pub const TraceProviderBinaryTracking = TRACE_QUERY_INFO_CLASS.TraceProviderBinaryTracking; pub const TraceMaxLoggersQuery = TRACE_QUERY_INFO_CLASS.TraceMaxLoggersQuery; pub const TraceLbrConfigurationInfo = TRACE_QUERY_INFO_CLASS.TraceLbrConfigurationInfo; pub const TraceLbrEventListInfo = TRACE_QUERY_INFO_CLASS.TraceLbrEventListInfo; pub const TraceMaxPmcCounterQuery = TRACE_QUERY_INFO_CLASS.TraceMaxPmcCounterQuery; pub const TraceStreamCount = TRACE_QUERY_INFO_CLASS.TraceStreamCount; pub const TraceStackCachingInfo = TRACE_QUERY_INFO_CLASS.TraceStackCachingInfo; pub const TracePmcCounterOwners = TRACE_QUERY_INFO_CLASS.TracePmcCounterOwners; pub const TraceUnifiedStackCachingInfo = TRACE_QUERY_INFO_CLASS.TraceUnifiedStackCachingInfo; pub const MaxTraceSetInfoClass = TRACE_QUERY_INFO_CLASS.MaxTraceSetInfoClass; pub const CLASSIC_EVENT_ID = extern struct { EventGuid: Guid, Type: u8, Reserved: [7]u8, }; pub const TRACE_STACK_CACHING_INFO = extern struct { Enabled: BOOLEAN, CacheSize: u32, BucketCount: u32, }; pub const TRACE_PROFILE_INTERVAL = extern struct { Source: u32, Interval: u32, }; pub const TRACE_VERSION_INFO = extern struct { EtwTraceProcessingVersion: u32, Reserved: u32, }; pub const TRACE_PERIODIC_CAPTURE_STATE_INFO = extern struct { CaptureStateFrequencyInSeconds: u32, ProviderCount: u16, Reserved: u16, }; pub const ETW_PROCESS_HANDLE_INFO_TYPE = enum(i32) { PartitionInformation = 1, PartitionInformationV2 = 2, LastDroppedTimes = 3, ProcessHandleInfoMax = 4, }; pub const EtwQueryPartitionInformation = ETW_PROCESS_HANDLE_INFO_TYPE.PartitionInformation; pub const EtwQueryPartitionInformationV2 = ETW_PROCESS_HANDLE_INFO_TYPE.PartitionInformationV2; pub const EtwQueryLastDroppedTimes = ETW_PROCESS_HANDLE_INFO_TYPE.LastDroppedTimes; pub const EtwQueryProcessHandleInfoMax = ETW_PROCESS_HANDLE_INFO_TYPE.ProcessHandleInfoMax; pub const ETW_TRACE_PARTITION_INFORMATION = extern struct { PartitionId: Guid, ParentId: Guid, QpcOffsetFromRoot: i64, PartitionType: u32, }; pub const ETW_TRACE_PARTITION_INFORMATION_V2 = extern struct { QpcOffsetFromRoot: i64, PartitionType: u32, PartitionId: ?PWSTR, ParentId: ?PWSTR, }; pub const EVENT_DATA_DESCRIPTOR = extern struct { Ptr: u64, Size: u32, Anonymous: extern union { Reserved: u32, Anonymous: extern struct { Type: u8, Reserved1: u8, Reserved2: u16, }, }, }; pub const EVENT_DESCRIPTOR = extern struct { Id: u16, Version: u8, Channel: u8, Level: u8, Opcode: u8, Task: u16, Keyword: u64, }; pub const EVENT_FILTER_DESCRIPTOR = extern struct { Ptr: u64, Size: u32, Type: u32, }; pub const EVENT_FILTER_HEADER = extern struct { Id: u16, Version: u8, Reserved: [5]u8, InstanceId: u64, Size: u32, NextOffset: u32, }; pub const EVENT_FILTER_EVENT_ID = extern struct { FilterIn: BOOLEAN, Reserved: u8, Count: u16, Events: [1]u16, }; pub const EVENT_FILTER_EVENT_NAME = extern struct { MatchAnyKeyword: u64, MatchAllKeyword: u64, Level: u8, FilterIn: BOOLEAN, NameCount: u16, Names: [1]u8, }; pub const EVENT_FILTER_LEVEL_KW = extern struct { MatchAnyKeyword: u64, MatchAllKeyword: u64, Level: u8, FilterIn: BOOLEAN, }; pub const EVENT_INFO_CLASS = enum(i32) { EventProviderBinaryTrackInfo = 0, EventProviderSetReserved1 = 1, EventProviderSetTraits = 2, EventProviderUseDescriptorType = 3, MaxEventInfo = 4, }; pub const EventProviderBinaryTrackInfo = EVENT_INFO_CLASS.EventProviderBinaryTrackInfo; pub const EventProviderSetReserved1 = EVENT_INFO_CLASS.EventProviderSetReserved1; pub const EventProviderSetTraits = EVENT_INFO_CLASS.EventProviderSetTraits; pub const EventProviderUseDescriptorType = EVENT_INFO_CLASS.EventProviderUseDescriptorType; pub const MaxEventInfo = EVENT_INFO_CLASS.MaxEventInfo; pub const PENABLECALLBACK = switch (@import("builtin").zig_backend) { .stage1 => fn ( SourceId: ?*const Guid, IsEnabled: ENABLECALLBACK_ENABLED_STATE, Level: u8, MatchAnyKeyword: u64, MatchAllKeyword: u64, FilterData: ?*EVENT_FILTER_DESCRIPTOR, CallbackContext: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) void, else => *const fn ( SourceId: ?*const Guid, IsEnabled: ENABLECALLBACK_ENABLED_STATE, Level: u8, MatchAnyKeyword: u64, MatchAllKeyword: u64, FilterData: ?*EVENT_FILTER_DESCRIPTOR, CallbackContext: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) void, }; pub const EVENT_HEADER_EXTENDED_DATA_ITEM = extern struct { Reserved1: u16, ExtType: u16, Anonymous: extern struct { _bitfield: u16, }, DataSize: u16, DataPtr: u64, }; pub const EVENT_EXTENDED_ITEM_INSTANCE = extern struct { InstanceId: u32, ParentInstanceId: u32, ParentGuid: Guid, }; pub const EVENT_EXTENDED_ITEM_RELATED_ACTIVITYID = extern struct { RelatedActivityId: Guid, }; pub const EVENT_EXTENDED_ITEM_TS_ID = extern struct { SessionId: u32, }; pub const EVENT_EXTENDED_ITEM_STACK_TRACE32 = extern struct { MatchId: u64, Address: [1]u32, }; pub const EVENT_EXTENDED_ITEM_STACK_TRACE64 = extern struct { MatchId: u64, Address: [1]u64, }; pub const EVENT_EXTENDED_ITEM_STACK_KEY32 = extern struct { MatchId: u64, StackKey: u32, Padding: u32, }; pub const EVENT_EXTENDED_ITEM_STACK_KEY64 = extern struct { MatchId: u64, StackKey: u64, }; pub const EVENT_EXTENDED_ITEM_PEBS_INDEX = extern struct { PebsIndex: u64, }; pub const EVENT_EXTENDED_ITEM_PMC_COUNTERS = extern struct { Counter: [1]u64, }; pub const EVENT_EXTENDED_ITEM_PROCESS_START_KEY = extern struct { ProcessStartKey: u64, }; pub const EVENT_EXTENDED_ITEM_EVENT_KEY = extern struct { Key: u64, }; pub const EVENT_HEADER = extern struct { Size: u16, HeaderType: u16, Flags: u16, EventProperty: u16, ThreadId: u32, ProcessId: u32, TimeStamp: LARGE_INTEGER, ProviderId: Guid, EventDescriptor: EVENT_DESCRIPTOR, Anonymous: extern union { Anonymous: extern struct { KernelTime: u32, UserTime: u32, }, ProcessorTime: u64, }, ActivityId: Guid, }; pub const EVENT_RECORD = extern struct { EventHeader: EVENT_HEADER, BufferContext: ETW_BUFFER_CONTEXT, ExtendedDataCount: u16, UserDataLength: u16, ExtendedData: ?*EVENT_HEADER_EXTENDED_DATA_ITEM, UserData: ?*anyopaque, UserContext: ?*anyopaque, }; pub const ETW_PROVIDER_TRAIT_TYPE = enum(i32) { TypeGroup = 1, DecodeGuid = 2, TypeMax = 3, }; pub const EtwProviderTraitTypeGroup = ETW_PROVIDER_TRAIT_TYPE.TypeGroup; pub const EtwProviderTraitDecodeGuid = ETW_PROVIDER_TRAIT_TYPE.DecodeGuid; pub const EtwProviderTraitTypeMax = ETW_PROVIDER_TRAIT_TYPE.TypeMax; pub const EVENTSECURITYOPERATION = enum(i32) { SetDACL = 0, SetSACL = 1, AddDACL = 2, AddSACL = 3, Max = 4, }; pub const EventSecuritySetDACL = EVENTSECURITYOPERATION.SetDACL; pub const EventSecuritySetSACL = EVENTSECURITYOPERATION.SetSACL; pub const EventSecurityAddDACL = EVENTSECURITYOPERATION.AddDACL; pub const EventSecurityAddSACL = EVENTSECURITYOPERATION.AddSACL; pub const EventSecurityMax = EVENTSECURITYOPERATION.Max; pub const EVENT_MAP_ENTRY = extern struct { OutputOffset: u32, Anonymous: extern union { Value: u32, InputOffset: u32, }, }; pub const MAP_FLAGS = enum(i32) { MANIFEST_VALUEMAP = 1, MANIFEST_BITMAP = 2, MANIFEST_PATTERNMAP = 4, WBEM_VALUEMAP = 8, WBEM_BITMAP = 16, WBEM_FLAG = 32, WBEM_NO_MAP = 64, }; pub const EVENTMAP_INFO_FLAG_MANIFEST_VALUEMAP = MAP_FLAGS.MANIFEST_VALUEMAP; pub const EVENTMAP_INFO_FLAG_MANIFEST_BITMAP = MAP_FLAGS.MANIFEST_BITMAP; pub const EVENTMAP_INFO_FLAG_MANIFEST_PATTERNMAP = MAP_FLAGS.MANIFEST_PATTERNMAP; pub const EVENTMAP_INFO_FLAG_WBEM_VALUEMAP = MAP_FLAGS.WBEM_VALUEMAP; pub const EVENTMAP_INFO_FLAG_WBEM_BITMAP = MAP_FLAGS.WBEM_BITMAP; pub const EVENTMAP_INFO_FLAG_WBEM_FLAG = MAP_FLAGS.WBEM_FLAG; pub const EVENTMAP_INFO_FLAG_WBEM_NO_MAP = MAP_FLAGS.WBEM_NO_MAP; pub const MAP_VALUETYPE = enum(i32) { ULONG = 0, STRING = 1, }; pub const EVENTMAP_ENTRY_VALUETYPE_ULONG = MAP_VALUETYPE.ULONG; pub const EVENTMAP_ENTRY_VALUETYPE_STRING = MAP_VALUETYPE.STRING; pub const EVENT_MAP_INFO = extern struct { NameOffset: u32, Flag: MAP_FLAGS, EntryCount: u32, Anonymous: extern union { MapEntryValueType: MAP_VALUETYPE, FormatStringOffset: u32, }, MapEntryArray: [1]EVENT_MAP_ENTRY, }; pub const _TDH_IN_TYPE = enum(i32) { NULL = 0, UNICODESTRING = 1, ANSISTRING = 2, INT8 = 3, UINT8 = 4, INT16 = 5, UINT16 = 6, INT32 = 7, UINT32 = 8, INT64 = 9, UINT64 = 10, FLOAT = 11, DOUBLE = 12, BOOLEAN = 13, BINARY = 14, GUID = 15, POINTER = 16, FILETIME = 17, SYSTEMTIME = 18, SID = 19, HEXINT32 = 20, HEXINT64 = 21, MANIFEST_COUNTEDSTRING = 22, MANIFEST_COUNTEDANSISTRING = 23, RESERVED24 = 24, MANIFEST_COUNTEDBINARY = 25, COUNTEDSTRING = 300, COUNTEDANSISTRING = 301, REVERSEDCOUNTEDSTRING = 302, REVERSEDCOUNTEDANSISTRING = 303, NONNULLTERMINATEDSTRING = 304, NONNULLTERMINATEDANSISTRING = 305, UNICODECHAR = 306, ANSICHAR = 307, SIZET = 308, HEXDUMP = 309, WBEMSID = 310, }; pub const TDH_INTYPE_NULL = _TDH_IN_TYPE.NULL; pub const TDH_INTYPE_UNICODESTRING = _TDH_IN_TYPE.UNICODESTRING; pub const TDH_INTYPE_ANSISTRING = _TDH_IN_TYPE.ANSISTRING; pub const TDH_INTYPE_INT8 = _TDH_IN_TYPE.INT8; pub const TDH_INTYPE_UINT8 = _TDH_IN_TYPE.UINT8; pub const TDH_INTYPE_INT16 = _TDH_IN_TYPE.INT16; pub const TDH_INTYPE_UINT16 = _TDH_IN_TYPE.UINT16; pub const TDH_INTYPE_INT32 = _TDH_IN_TYPE.INT32; pub const TDH_INTYPE_UINT32 = _TDH_IN_TYPE.UINT32; pub const TDH_INTYPE_INT64 = _TDH_IN_TYPE.INT64; pub const TDH_INTYPE_UINT64 = _TDH_IN_TYPE.UINT64; pub const TDH_INTYPE_FLOAT = _TDH_IN_TYPE.FLOAT; pub const TDH_INTYPE_DOUBLE = _TDH_IN_TYPE.DOUBLE; pub const TDH_INTYPE_BOOLEAN = _TDH_IN_TYPE.BOOLEAN; pub const TDH_INTYPE_BINARY = _TDH_IN_TYPE.BINARY; pub const TDH_INTYPE_GUID = _TDH_IN_TYPE.GUID; pub const TDH_INTYPE_POINTER = _TDH_IN_TYPE.POINTER; pub const TDH_INTYPE_FILETIME = _TDH_IN_TYPE.FILETIME; pub const TDH_INTYPE_SYSTEMTIME = _TDH_IN_TYPE.SYSTEMTIME; pub const TDH_INTYPE_SID = _TDH_IN_TYPE.SID; pub const TDH_INTYPE_HEXINT32 = _TDH_IN_TYPE.HEXINT32; pub const TDH_INTYPE_HEXINT64 = _TDH_IN_TYPE.HEXINT64; pub const TDH_INTYPE_MANIFEST_COUNTEDSTRING = _TDH_IN_TYPE.MANIFEST_COUNTEDSTRING; pub const TDH_INTYPE_MANIFEST_COUNTEDANSISTRING = _TDH_IN_TYPE.MANIFEST_COUNTEDANSISTRING; pub const TDH_INTYPE_RESERVED24 = _TDH_IN_TYPE.RESERVED24; pub const TDH_INTYPE_MANIFEST_COUNTEDBINARY = _TDH_IN_TYPE.MANIFEST_COUNTEDBINARY; pub const TDH_INTYPE_COUNTEDSTRING = _TDH_IN_TYPE.COUNTEDSTRING; pub const TDH_INTYPE_COUNTEDANSISTRING = _TDH_IN_TYPE.COUNTEDANSISTRING; pub const TDH_INTYPE_REVERSEDCOUNTEDSTRING = _TDH_IN_TYPE.REVERSEDCOUNTEDSTRING; pub const TDH_INTYPE_REVERSEDCOUNTEDANSISTRING = _TDH_IN_TYPE.REVERSEDCOUNTEDANSISTRING; pub const TDH_INTYPE_NONNULLTERMINATEDSTRING = _TDH_IN_TYPE.NONNULLTERMINATEDSTRING; pub const TDH_INTYPE_NONNULLTERMINATEDANSISTRING = _TDH_IN_TYPE.NONNULLTERMINATEDANSISTRING; pub const TDH_INTYPE_UNICODECHAR = _TDH_IN_TYPE.UNICODECHAR; pub const TDH_INTYPE_ANSICHAR = _TDH_IN_TYPE.ANSICHAR; pub const TDH_INTYPE_SIZET = _TDH_IN_TYPE.SIZET; pub const TDH_INTYPE_HEXDUMP = _TDH_IN_TYPE.HEXDUMP; pub const TDH_INTYPE_WBEMSID = _TDH_IN_TYPE.WBEMSID; pub const _TDH_OUT_TYPE = enum(i32) { NULL = 0, STRING = 1, DATETIME = 2, BYTE = 3, UNSIGNEDBYTE = 4, SHORT = 5, UNSIGNEDSHORT = 6, INT = 7, UNSIGNEDINT = 8, LONG = 9, UNSIGNEDLONG = 10, FLOAT = 11, DOUBLE = 12, BOOLEAN = 13, GUID = 14, HEXBINARY = 15, HEXINT8 = 16, HEXINT16 = 17, HEXINT32 = 18, HEXINT64 = 19, PID = 20, TID = 21, PORT = 22, IPV4 = 23, IPV6 = 24, SOCKETADDRESS = 25, CIMDATETIME = 26, ETWTIME = 27, XML = 28, ERRORCODE = 29, WIN32ERROR = 30, NTSTATUS = 31, HRESULT = 32, CULTURE_INSENSITIVE_DATETIME = 33, JSON = 34, UTF8 = 35, PKCS7_WITH_TYPE_INFO = 36, CODE_POINTER = 37, DATETIME_UTC = 38, REDUCEDSTRING = 300, NOPRINT = 301, }; pub const TDH_OUTTYPE_NULL = _TDH_OUT_TYPE.NULL; pub const TDH_OUTTYPE_STRING = _TDH_OUT_TYPE.STRING; pub const TDH_OUTTYPE_DATETIME = _TDH_OUT_TYPE.DATETIME; pub const TDH_OUTTYPE_BYTE = _TDH_OUT_TYPE.BYTE; pub const TDH_OUTTYPE_UNSIGNEDBYTE = _TDH_OUT_TYPE.UNSIGNEDBYTE; pub const TDH_OUTTYPE_SHORT = _TDH_OUT_TYPE.SHORT; pub const TDH_OUTTYPE_UNSIGNEDSHORT = _TDH_OUT_TYPE.UNSIGNEDSHORT; pub const TDH_OUTTYPE_INT = _TDH_OUT_TYPE.INT; pub const TDH_OUTTYPE_UNSIGNEDINT = _TDH_OUT_TYPE.UNSIGNEDINT; pub const TDH_OUTTYPE_LONG = _TDH_OUT_TYPE.LONG; pub const TDH_OUTTYPE_UNSIGNEDLONG = _TDH_OUT_TYPE.UNSIGNEDLONG; pub const TDH_OUTTYPE_FLOAT = _TDH_OUT_TYPE.FLOAT; pub const TDH_OUTTYPE_DOUBLE = _TDH_OUT_TYPE.DOUBLE; pub const TDH_OUTTYPE_BOOLEAN = _TDH_OUT_TYPE.BOOLEAN; pub const TDH_OUTTYPE_GUID = _TDH_OUT_TYPE.GUID; pub const TDH_OUTTYPE_HEXBINARY = _TDH_OUT_TYPE.HEXBINARY; pub const TDH_OUTTYPE_HEXINT8 = _TDH_OUT_TYPE.HEXINT8; pub const TDH_OUTTYPE_HEXINT16 = _TDH_OUT_TYPE.HEXINT16; pub const TDH_OUTTYPE_HEXINT32 = _TDH_OUT_TYPE.HEXINT32; pub const TDH_OUTTYPE_HEXINT64 = _TDH_OUT_TYPE.HEXINT64; pub const TDH_OUTTYPE_PID = _TDH_OUT_TYPE.PID; pub const TDH_OUTTYPE_TID = _TDH_OUT_TYPE.TID; pub const TDH_OUTTYPE_PORT = _TDH_OUT_TYPE.PORT; pub const TDH_OUTTYPE_IPV4 = _TDH_OUT_TYPE.IPV4; pub const TDH_OUTTYPE_IPV6 = _TDH_OUT_TYPE.IPV6; pub const TDH_OUTTYPE_SOCKETADDRESS = _TDH_OUT_TYPE.SOCKETADDRESS; pub const TDH_OUTTYPE_CIMDATETIME = _TDH_OUT_TYPE.CIMDATETIME; pub const TDH_OUTTYPE_ETWTIME = _TDH_OUT_TYPE.ETWTIME; pub const TDH_OUTTYPE_XML = _TDH_OUT_TYPE.XML; pub const TDH_OUTTYPE_ERRORCODE = _TDH_OUT_TYPE.ERRORCODE; pub const TDH_OUTTYPE_WIN32ERROR = _TDH_OUT_TYPE.WIN32ERROR; pub const TDH_OUTTYPE_NTSTATUS = _TDH_OUT_TYPE.NTSTATUS; pub const TDH_OUTTYPE_HRESULT = _TDH_OUT_TYPE.HRESULT; pub const TDH_OUTTYPE_CULTURE_INSENSITIVE_DATETIME = _TDH_OUT_TYPE.CULTURE_INSENSITIVE_DATETIME; pub const TDH_OUTTYPE_JSON = _TDH_OUT_TYPE.JSON; pub const TDH_OUTTYPE_UTF8 = _TDH_OUT_TYPE.UTF8; pub const TDH_OUTTYPE_PKCS7_WITH_TYPE_INFO = _TDH_OUT_TYPE.PKCS7_WITH_TYPE_INFO; pub const TDH_OUTTYPE_CODE_POINTER = _TDH_OUT_TYPE.CODE_POINTER; pub const TDH_OUTTYPE_DATETIME_UTC = _TDH_OUT_TYPE.DATETIME_UTC; pub const TDH_OUTTYPE_REDUCEDSTRING = _TDH_OUT_TYPE.REDUCEDSTRING; pub const TDH_OUTTYPE_NOPRINT = _TDH_OUT_TYPE.NOPRINT; pub const PROPERTY_FLAGS = enum(i32) { Struct = 1, ParamLength = 2, ParamCount = 4, WBEMXmlFragment = 8, ParamFixedLength = 16, ParamFixedCount = 32, HasTags = 64, HasCustomSchema = 128, }; pub const PropertyStruct = PROPERTY_FLAGS.Struct; pub const PropertyParamLength = PROPERTY_FLAGS.ParamLength; pub const PropertyParamCount = PROPERTY_FLAGS.ParamCount; pub const PropertyWBEMXmlFragment = PROPERTY_FLAGS.WBEMXmlFragment; pub const PropertyParamFixedLength = PROPERTY_FLAGS.ParamFixedLength; pub const PropertyParamFixedCount = PROPERTY_FLAGS.ParamFixedCount; pub const PropertyHasTags = PROPERTY_FLAGS.HasTags; pub const PropertyHasCustomSchema = PROPERTY_FLAGS.HasCustomSchema; pub const EVENT_PROPERTY_INFO = extern struct { Flags: PROPERTY_FLAGS, NameOffset: u32, Anonymous1: extern union { pub const _customSchemaType = extern struct { InType: u16, OutType: u16, CustomSchemaOffset: u32, }; pub const _nonStructType = extern struct { InType: u16, OutType: u16, MapNameOffset: u32, }; pub const _structType = extern struct { StructStartIndex: u16, NumOfStructMembers: u16, padding: u32, }; nonStructType: _nonStructType, structType: _structType, customSchemaType: _customSchemaType, }, Anonymous2: extern union { count: u16, countPropertyIndex: u16, }, Anonymous3: extern union { length: u16, lengthPropertyIndex: u16, }, Anonymous4: extern union { Reserved: u32, Anonymous: extern struct { _bitfield: u32, }, }, }; pub const DECODING_SOURCE = enum(i32) { XMLFile = 0, Wbem = 1, WPP = 2, Tlg = 3, Max = 4, }; pub const DecodingSourceXMLFile = DECODING_SOURCE.XMLFile; pub const DecodingSourceWbem = DECODING_SOURCE.Wbem; pub const DecodingSourceWPP = DECODING_SOURCE.WPP; pub const DecodingSourceTlg = DECODING_SOURCE.Tlg; pub const DecodingSourceMax = DECODING_SOURCE.Max; pub const TEMPLATE_FLAGS = enum(i32) { EVENT_DATA = 1, USER_DATA = 2, CONTROL_GUID = 4, }; pub const TEMPLATE_EVENT_DATA = TEMPLATE_FLAGS.EVENT_DATA; pub const TEMPLATE_USER_DATA = TEMPLATE_FLAGS.USER_DATA; pub const TEMPLATE_CONTROL_GUID = TEMPLATE_FLAGS.CONTROL_GUID; pub const TRACE_EVENT_INFO = extern struct { ProviderGuid: Guid, EventGuid: Guid, EventDescriptor: EVENT_DESCRIPTOR, DecodingSource: DECODING_SOURCE, ProviderNameOffset: u32, LevelNameOffset: u32, ChannelNameOffset: u32, KeywordsNameOffset: u32, TaskNameOffset: u32, OpcodeNameOffset: u32, EventMessageOffset: u32, ProviderMessageOffset: u32, BinaryXMLOffset: u32, BinaryXMLSize: u32, Anonymous1: extern union { EventNameOffset: u32, ActivityIDNameOffset: u32, }, Anonymous2: extern union { EventAttributesOffset: u32, RelatedActivityIDNameOffset: u32, }, PropertyCount: u32, TopLevelPropertyCount: u32, Anonymous3: extern union { Flags: TEMPLATE_FLAGS, Anonymous: extern struct { _bitfield: u32, }, }, EventPropertyInfoArray: [1]EVENT_PROPERTY_INFO, }; pub const PROPERTY_DATA_DESCRIPTOR = extern struct { PropertyName: u64, ArrayIndex: u32, Reserved: u32, }; pub const PAYLOAD_OPERATOR = enum(i32) { EQ = 0, NE = 1, LE = 2, GT = 3, LT = 4, GE = 5, BETWEEN = 6, NOTBETWEEN = 7, MODULO = 8, CONTAINS = 20, DOESNTCONTAIN = 21, IS = 30, ISNOT = 31, INVALID = 32, }; pub const PAYLOADFIELD_EQ = PAYLOAD_OPERATOR.EQ; pub const PAYLOADFIELD_NE = PAYLOAD_OPERATOR.NE; pub const PAYLOADFIELD_LE = PAYLOAD_OPERATOR.LE; pub const PAYLOADFIELD_GT = PAYLOAD_OPERATOR.GT; pub const PAYLOADFIELD_LT = PAYLOAD_OPERATOR.LT; pub const PAYLOADFIELD_GE = PAYLOAD_OPERATOR.GE; pub const PAYLOADFIELD_BETWEEN = PAYLOAD_OPERATOR.BETWEEN; pub const PAYLOADFIELD_NOTBETWEEN = PAYLOAD_OPERATOR.NOTBETWEEN; pub const PAYLOADFIELD_MODULO = PAYLOAD_OPERATOR.MODULO; pub const PAYLOADFIELD_CONTAINS = PAYLOAD_OPERATOR.CONTAINS; pub const PAYLOADFIELD_DOESNTCONTAIN = PAYLOAD_OPERATOR.DOESNTCONTAIN; pub const PAYLOADFIELD_IS = PAYLOAD_OPERATOR.IS; pub const PAYLOADFIELD_ISNOT = PAYLOAD_OPERATOR.ISNOT; pub const PAYLOADFIELD_INVALID = PAYLOAD_OPERATOR.INVALID; pub const PAYLOAD_FILTER_PREDICATE = extern struct { FieldName: ?PWSTR, CompareOp: u16, Value: ?PWSTR, }; pub const PROVIDER_FILTER_INFO = extern struct { Id: u8, Version: u8, MessageOffset: u32, Reserved: u32, PropertyCount: u32, EventPropertyInfoArray: [1]EVENT_PROPERTY_INFO, }; pub const EVENT_FIELD_TYPE = enum(i32) { KeywordInformation = 0, LevelInformation = 1, ChannelInformation = 2, TaskInformation = 3, OpcodeInformation = 4, InformationMax = 5, }; pub const EventKeywordInformation = EVENT_FIELD_TYPE.KeywordInformation; pub const EventLevelInformation = EVENT_FIELD_TYPE.LevelInformation; pub const EventChannelInformation = EVENT_FIELD_TYPE.ChannelInformation; pub const EventTaskInformation = EVENT_FIELD_TYPE.TaskInformation; pub const EventOpcodeInformation = EVENT_FIELD_TYPE.OpcodeInformation; pub const EventInformationMax = EVENT_FIELD_TYPE.InformationMax; pub const PROVIDER_FIELD_INFO = extern struct { NameOffset: u32, DescriptionOffset: u32, Value: u64, }; pub const PROVIDER_FIELD_INFOARRAY = extern struct { NumberOfElements: u32, FieldType: EVENT_FIELD_TYPE, FieldInfoArray: [1]PROVIDER_FIELD_INFO, }; pub const TRACE_PROVIDER_INFO = extern struct { ProviderGuid: Guid, SchemaSource: u32, ProviderNameOffset: u32, }; pub const PROVIDER_ENUMERATION_INFO = extern struct { NumberOfProviders: u32, Reserved: u32, TraceProviderInfoArray: [1]TRACE_PROVIDER_INFO, }; pub const PROVIDER_EVENT_INFO = extern struct { NumberOfEvents: u32, Reserved: u32, EventDescriptorsArray: [1]EVENT_DESCRIPTOR, }; pub const TDH_CONTEXT_TYPE = enum(i32) { WPP_TMFFILE = 0, WPP_TMFSEARCHPATH = 1, WPP_GMT = 2, POINTERSIZE = 3, PDB_PATH = 4, MAXIMUM = 5, }; pub const TDH_CONTEXT_WPP_TMFFILE = TDH_CONTEXT_TYPE.WPP_TMFFILE; pub const TDH_CONTEXT_WPP_TMFSEARCHPATH = TDH_CONTEXT_TYPE.WPP_TMFSEARCHPATH; pub const TDH_CONTEXT_WPP_GMT = TDH_CONTEXT_TYPE.WPP_GMT; pub const TDH_CONTEXT_POINTERSIZE = TDH_CONTEXT_TYPE.POINTERSIZE; pub const TDH_CONTEXT_PDB_PATH = TDH_CONTEXT_TYPE.PDB_PATH; pub const TDH_CONTEXT_MAXIMUM = TDH_CONTEXT_TYPE.MAXIMUM; pub const TDH_CONTEXT = extern struct { ParameterValue: u64, ParameterType: TDH_CONTEXT_TYPE, ParameterSize: u32, }; const CLSID_CTraceRelogger_Value = Guid.initString("7b40792d-05ff-44c4-9058-f440c71f17d4"); pub const CLSID_CTraceRelogger = &CLSID_CTraceRelogger_Value; // TODO: this type is limited to platform 'windows6.1' const IID_ITraceEvent_Value = Guid.initString("8cc97f40-9028-4ff3-9b62-7d1f79ca7bcb"); pub const IID_ITraceEvent = &IID_ITraceEvent_Value; pub const ITraceEvent = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, Clone: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ITraceEvent, NewEvent: ?*?*ITraceEvent, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ITraceEvent, NewEvent: ?*?*ITraceEvent, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetUserContext: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ITraceEvent, UserContext: ?*?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ITraceEvent, UserContext: ?*?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetEventRecord: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ITraceEvent, EventRecord: ?*?*EVENT_RECORD, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ITraceEvent, EventRecord: ?*?*EVENT_RECORD, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetPayload: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ITraceEvent, Payload: [*:0]u8, PayloadSize: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ITraceEvent, Payload: [*:0]u8, PayloadSize: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetEventDescriptor: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ITraceEvent, EventDescriptor: ?*const EVENT_DESCRIPTOR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ITraceEvent, EventDescriptor: ?*const EVENT_DESCRIPTOR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetProcessId: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ITraceEvent, ProcessId: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ITraceEvent, ProcessId: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetProcessorIndex: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ITraceEvent, ProcessorIndex: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ITraceEvent, ProcessorIndex: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetThreadId: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ITraceEvent, ThreadId: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ITraceEvent, ThreadId: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetThreadTimes: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ITraceEvent, KernelTime: u32, UserTime: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ITraceEvent, KernelTime: u32, UserTime: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetActivityId: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ITraceEvent, ActivityId: ?*const Guid, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ITraceEvent, ActivityId: ?*const Guid, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetTimeStamp: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ITraceEvent, TimeStamp: ?*LARGE_INTEGER, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ITraceEvent, TimeStamp: ?*LARGE_INTEGER, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetProviderId: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ITraceEvent, ProviderId: ?*const Guid, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ITraceEvent, ProviderId: ?*const Guid, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITraceEvent_Clone(self: *const T, NewEvent: ?*?*ITraceEvent) HRESULT { return @as(*const ITraceEvent.VTable, @ptrCast(self.vtable)).Clone(@as(*const ITraceEvent, @ptrCast(self)), NewEvent); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITraceEvent_GetUserContext(self: *const T, UserContext: ?*?*anyopaque) HRESULT { return @as(*const ITraceEvent.VTable, @ptrCast(self.vtable)).GetUserContext(@as(*const ITraceEvent, @ptrCast(self)), UserContext); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITraceEvent_GetEventRecord(self: *const T, EventRecord: ?*?*EVENT_RECORD) HRESULT { return @as(*const ITraceEvent.VTable, @ptrCast(self.vtable)).GetEventRecord(@as(*const ITraceEvent, @ptrCast(self)), EventRecord); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITraceEvent_SetPayload(self: *const T, Payload: [*:0]u8, PayloadSize: u32) HRESULT { return @as(*const ITraceEvent.VTable, @ptrCast(self.vtable)).SetPayload(@as(*const ITraceEvent, @ptrCast(self)), Payload, PayloadSize); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITraceEvent_SetEventDescriptor(self: *const T, EventDescriptor: ?*const EVENT_DESCRIPTOR) HRESULT { return @as(*const ITraceEvent.VTable, @ptrCast(self.vtable)).SetEventDescriptor(@as(*const ITraceEvent, @ptrCast(self)), EventDescriptor); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITraceEvent_SetProcessId(self: *const T, ProcessId: u32) HRESULT { return @as(*const ITraceEvent.VTable, @ptrCast(self.vtable)).SetProcessId(@as(*const ITraceEvent, @ptrCast(self)), ProcessId); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITraceEvent_SetProcessorIndex(self: *const T, ProcessorIndex: u32) HRESULT { return @as(*const ITraceEvent.VTable, @ptrCast(self.vtable)).SetProcessorIndex(@as(*const ITraceEvent, @ptrCast(self)), ProcessorIndex); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITraceEvent_SetThreadId(self: *const T, ThreadId: u32) HRESULT { return @as(*const ITraceEvent.VTable, @ptrCast(self.vtable)).SetThreadId(@as(*const ITraceEvent, @ptrCast(self)), ThreadId); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITraceEvent_SetThreadTimes(self: *const T, KernelTime: u32, UserTime: u32) HRESULT { return @as(*const ITraceEvent.VTable, @ptrCast(self.vtable)).SetThreadTimes(@as(*const ITraceEvent, @ptrCast(self)), KernelTime, UserTime); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITraceEvent_SetActivityId(self: *const T, ActivityId: ?*const Guid) HRESULT { return @as(*const ITraceEvent.VTable, @ptrCast(self.vtable)).SetActivityId(@as(*const ITraceEvent, @ptrCast(self)), ActivityId); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITraceEvent_SetTimeStamp(self: *const T, TimeStamp: ?*LARGE_INTEGER) HRESULT { return @as(*const ITraceEvent.VTable, @ptrCast(self.vtable)).SetTimeStamp(@as(*const ITraceEvent, @ptrCast(self)), TimeStamp); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITraceEvent_SetProviderId(self: *const T, ProviderId: ?*const Guid) HRESULT { return @as(*const ITraceEvent.VTable, @ptrCast(self.vtable)).SetProviderId(@as(*const ITraceEvent, @ptrCast(self)), ProviderId); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows6.1' const IID_ITraceEventCallback_Value = Guid.initString("3ed25501-593f-43e9-8f38-3ab46f5a4a52"); pub const IID_ITraceEventCallback = &IID_ITraceEventCallback_Value; pub const ITraceEventCallback = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, OnBeginProcessTrace: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ITraceEventCallback, HeaderEvent: ?*ITraceEvent, Relogger: ?*ITraceRelogger, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ITraceEventCallback, HeaderEvent: ?*ITraceEvent, Relogger: ?*ITraceRelogger, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, OnFinalizeProcessTrace: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ITraceEventCallback, Relogger: ?*ITraceRelogger, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ITraceEventCallback, Relogger: ?*ITraceRelogger, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, OnEvent: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ITraceEventCallback, Event: ?*ITraceEvent, Relogger: ?*ITraceRelogger, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ITraceEventCallback, Event: ?*ITraceEvent, Relogger: ?*ITraceRelogger, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITraceEventCallback_OnBeginProcessTrace(self: *const T, HeaderEvent: ?*ITraceEvent, Relogger: ?*ITraceRelogger) HRESULT { return @as(*const ITraceEventCallback.VTable, @ptrCast(self.vtable)).OnBeginProcessTrace(@as(*const ITraceEventCallback, @ptrCast(self)), HeaderEvent, Relogger); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITraceEventCallback_OnFinalizeProcessTrace(self: *const T, Relogger: ?*ITraceRelogger) HRESULT { return @as(*const ITraceEventCallback.VTable, @ptrCast(self.vtable)).OnFinalizeProcessTrace(@as(*const ITraceEventCallback, @ptrCast(self)), Relogger); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITraceEventCallback_OnEvent(self: *const T, Event: ?*ITraceEvent, Relogger: ?*ITraceRelogger) HRESULT { return @as(*const ITraceEventCallback.VTable, @ptrCast(self.vtable)).OnEvent(@as(*const ITraceEventCallback, @ptrCast(self)), Event, Relogger); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows6.1' const IID_ITraceRelogger_Value = Guid.initString("f754ad43-3bcc-4286-8009-9c5da214e84e"); pub const IID_ITraceRelogger = &IID_ITraceRelogger_Value; pub const ITraceRelogger = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, AddLogfileTraceStream: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ITraceRelogger, LogfileName: ?BSTR, UserContext: ?*anyopaque, TraceHandle: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ITraceRelogger, LogfileName: ?BSTR, UserContext: ?*anyopaque, TraceHandle: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, AddRealtimeTraceStream: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ITraceRelogger, LoggerName: ?BSTR, UserContext: ?*anyopaque, TraceHandle: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ITraceRelogger, LoggerName: ?BSTR, UserContext: ?*anyopaque, TraceHandle: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, RegisterCallback: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ITraceRelogger, Callback: ?*ITraceEventCallback, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ITraceRelogger, Callback: ?*ITraceEventCallback, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Inject: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ITraceRelogger, Event: ?*ITraceEvent, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ITraceRelogger, Event: ?*ITraceEvent, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, CreateEventInstance: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ITraceRelogger, TraceHandle: u64, Flags: u32, Event: ?*?*ITraceEvent, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ITraceRelogger, TraceHandle: u64, Flags: u32, Event: ?*?*ITraceEvent, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, ProcessTrace: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ITraceRelogger, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ITraceRelogger, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetOutputFilename: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ITraceRelogger, LogfileName: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ITraceRelogger, LogfileName: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetCompressionMode: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ITraceRelogger, CompressionMode: BOOLEAN, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ITraceRelogger, CompressionMode: BOOLEAN, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Cancel: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ITraceRelogger, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ITraceRelogger, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITraceRelogger_AddLogfileTraceStream(self: *const T, LogfileName: ?BSTR, UserContext: ?*anyopaque, TraceHandle: ?*u64) HRESULT { return @as(*const ITraceRelogger.VTable, @ptrCast(self.vtable)).AddLogfileTraceStream(@as(*const ITraceRelogger, @ptrCast(self)), LogfileName, UserContext, TraceHandle); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITraceRelogger_AddRealtimeTraceStream(self: *const T, LoggerName: ?BSTR, UserContext: ?*anyopaque, TraceHandle: ?*u64) HRESULT { return @as(*const ITraceRelogger.VTable, @ptrCast(self.vtable)).AddRealtimeTraceStream(@as(*const ITraceRelogger, @ptrCast(self)), LoggerName, UserContext, TraceHandle); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITraceRelogger_RegisterCallback(self: *const T, Callback: ?*ITraceEventCallback) HRESULT { return @as(*const ITraceRelogger.VTable, @ptrCast(self.vtable)).RegisterCallback(@as(*const ITraceRelogger, @ptrCast(self)), Callback); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITraceRelogger_Inject(self: *const T, Event: ?*ITraceEvent) HRESULT { return @as(*const ITraceRelogger.VTable, @ptrCast(self.vtable)).Inject(@as(*const ITraceRelogger, @ptrCast(self)), Event); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITraceRelogger_CreateEventInstance(self: *const T, TraceHandle: u64, Flags: u32, Event: ?*?*ITraceEvent) HRESULT { return @as(*const ITraceRelogger.VTable, @ptrCast(self.vtable)).CreateEventInstance(@as(*const ITraceRelogger, @ptrCast(self)), TraceHandle, Flags, Event); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITraceRelogger_ProcessTrace(self: *const T) HRESULT { return @as(*const ITraceRelogger.VTable, @ptrCast(self.vtable)).ProcessTrace(@as(*const ITraceRelogger, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITraceRelogger_SetOutputFilename(self: *const T, LogfileName: ?BSTR) HRESULT { return @as(*const ITraceRelogger.VTable, @ptrCast(self.vtable)).SetOutputFilename(@as(*const ITraceRelogger, @ptrCast(self)), LogfileName); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITraceRelogger_SetCompressionMode(self: *const T, CompressionMode: BOOLEAN) HRESULT { return @as(*const ITraceRelogger.VTable, @ptrCast(self.vtable)).SetCompressionMode(@as(*const ITraceRelogger, @ptrCast(self)), CompressionMode); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITraceRelogger_Cancel(self: *const T) HRESULT { return @as(*const ITraceRelogger.VTable, @ptrCast(self.vtable)).Cancel(@as(*const ITraceRelogger, @ptrCast(self))); } }; } pub usingnamespace MethodMixin(@This()); }; //-------------------------------------------------------------------------------- // Section: Functions (80) //-------------------------------------------------------------------------------- // TODO: this type is limited to platform 'windows5.0' pub extern "advapi32" fn StartTraceW( TraceHandle: ?*u64, InstanceName: ?[*:0]const u16, Properties: ?*EVENT_TRACE_PROPERTIES, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'windows5.0' pub extern "advapi32" fn StartTraceA( TraceHandle: ?*u64, InstanceName: ?[*:0]const u8, Properties: ?*EVENT_TRACE_PROPERTIES, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'windows5.0' pub extern "advapi32" fn StopTraceW( TraceHandle: u64, InstanceName: ?[*:0]const u16, Properties: ?*EVENT_TRACE_PROPERTIES, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'windows5.0' pub extern "advapi32" fn StopTraceA( TraceHandle: u64, InstanceName: ?[*:0]const u8, Properties: ?*EVENT_TRACE_PROPERTIES, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'windows5.0' pub extern "advapi32" fn QueryTraceW( TraceHandle: u64, InstanceName: ?[*:0]const u16, Properties: ?*EVENT_TRACE_PROPERTIES, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'windows5.0' pub extern "advapi32" fn QueryTraceA( TraceHandle: u64, InstanceName: ?[*:0]const u8, Properties: ?*EVENT_TRACE_PROPERTIES, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'windows5.0' pub extern "advapi32" fn UpdateTraceW( TraceHandle: u64, InstanceName: ?[*:0]const u16, Properties: ?*EVENT_TRACE_PROPERTIES, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'windows5.0' pub extern "advapi32" fn UpdateTraceA( TraceHandle: u64, InstanceName: ?[*:0]const u8, Properties: ?*EVENT_TRACE_PROPERTIES, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "advapi32" fn FlushTraceW( TraceHandle: u64, InstanceName: ?[*:0]const u16, Properties: ?*EVENT_TRACE_PROPERTIES, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "advapi32" fn FlushTraceA( TraceHandle: u64, InstanceName: ?[*:0]const u8, Properties: ?*EVENT_TRACE_PROPERTIES, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'windows5.0' pub extern "advapi32" fn ControlTraceW( TraceHandle: u64, InstanceName: ?[*:0]const u16, Properties: ?*EVENT_TRACE_PROPERTIES, ControlCode: EVENT_TRACE_CONTROL, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'windows5.0' pub extern "advapi32" fn ControlTraceA( TraceHandle: u64, InstanceName: ?[*:0]const u8, Properties: ?*EVENT_TRACE_PROPERTIES, ControlCode: EVENT_TRACE_CONTROL, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'windows5.0' pub extern "advapi32" fn QueryAllTracesW( PropertyArray: [*]?*EVENT_TRACE_PROPERTIES, PropertyArrayCount: u32, LoggerCount: ?*u32, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'windows5.0' pub extern "advapi32" fn QueryAllTracesA( PropertyArray: [*]?*EVENT_TRACE_PROPERTIES, PropertyArrayCount: u32, LoggerCount: ?*u32, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'windows5.0' pub extern "advapi32" fn EnableTrace( Enable: u32, EnableFlag: u32, EnableLevel: u32, ControlGuid: ?*const Guid, TraceHandle: u64, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'windows6.0.6000' pub extern "advapi32" fn EnableTraceEx( ProviderId: ?*const Guid, SourceId: ?*const Guid, TraceHandle: u64, IsEnabled: u32, Level: u8, MatchAnyKeyword: u64, MatchAllKeyword: u64, EnableProperty: u32, EnableFilterDesc: ?*EVENT_FILTER_DESCRIPTOR, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'windows6.1' pub extern "advapi32" fn EnableTraceEx2( TraceHandle: u64, ProviderId: ?*const Guid, ControlCode: u32, Level: u8, MatchAnyKeyword: u64, MatchAllKeyword: u64, Timeout: u32, EnableParameters: ?*ENABLE_TRACE_PARAMETERS, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'windows6.0.6000' pub extern "advapi32" fn EnumerateTraceGuidsEx( TraceQueryInfoClass: TRACE_QUERY_INFO_CLASS, // TODO: what to do with BytesParamIndex 2? InBuffer: ?*anyopaque, InBufferSize: u32, // TODO: what to do with BytesParamIndex 4? OutBuffer: ?*anyopaque, OutBufferSize: u32, ReturnLength: ?*u32, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'windows6.1' pub extern "advapi32" fn TraceSetInformation( SessionHandle: u64, InformationClass: TRACE_QUERY_INFO_CLASS, // TODO: what to do with BytesParamIndex 3? TraceInformation: ?*anyopaque, InformationLength: u32, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'windows8.0' pub extern "advapi32" fn TraceQueryInformation( SessionHandle: u64, InformationClass: TRACE_QUERY_INFO_CLASS, // TODO: what to do with BytesParamIndex 3? TraceInformation: ?*anyopaque, InformationLength: u32, ReturnLength: ?*u32, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'windows5.0' pub extern "advapi32" fn CreateTraceInstanceId( RegHandle: ?HANDLE, InstInfo: ?*EVENT_INSTANCE_INFO, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'windows5.0' pub extern "advapi32" fn TraceEvent( TraceHandle: u64, EventTrace: ?*EVENT_TRACE_HEADER, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'windows5.0' pub extern "advapi32" fn TraceEventInstance( TraceHandle: u64, EventTrace: ?*EVENT_INSTANCE_HEADER, InstInfo: ?*EVENT_INSTANCE_INFO, ParentInstInfo: ?*EVENT_INSTANCE_INFO, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'windows5.0' pub extern "advapi32" fn RegisterTraceGuidsW( RequestAddress: ?WMIDPREQUEST, RequestContext: ?*anyopaque, ControlGuid: ?*const Guid, GuidCount: u32, TraceGuidReg: ?[*]TRACE_GUID_REGISTRATION, MofImagePath: ?[*:0]const u16, MofResourceName: ?[*:0]const u16, RegistrationHandle: ?*u64, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'windows5.0' pub extern "advapi32" fn RegisterTraceGuidsA( RequestAddress: ?WMIDPREQUEST, RequestContext: ?*anyopaque, ControlGuid: ?*const Guid, GuidCount: u32, TraceGuidReg: ?[*]TRACE_GUID_REGISTRATION, MofImagePath: ?[*:0]const u8, MofResourceName: ?[*:0]const u8, RegistrationHandle: ?*u64, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "advapi32" fn EnumerateTraceGuids( GuidPropertiesArray: [*]?*TRACE_GUID_PROPERTIES, PropertyArrayCount: u32, GuidCount: ?*u32, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'windows5.0' pub extern "advapi32" fn UnregisterTraceGuids( RegistrationHandle: u64, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'windows5.0' pub extern "advapi32" fn GetTraceLoggerHandle( Buffer: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) u64; // TODO: this type is limited to platform 'windows5.0' pub extern "advapi32" fn GetTraceEnableLevel( TraceHandle: u64, ) callconv(@import("std").os.windows.WINAPI) u8; // TODO: this type is limited to platform 'windows5.0' pub extern "advapi32" fn GetTraceEnableFlags( TraceHandle: u64, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'windows5.0' pub extern "advapi32" fn OpenTraceW( Logfile: ?*EVENT_TRACE_LOGFILEW, ) callconv(@import("std").os.windows.WINAPI) u64; // TODO: this type is limited to platform 'windows5.0' pub extern "advapi32" fn ProcessTrace( HandleArray: [*]u64, HandleCount: u32, StartTime: ?*FILETIME, EndTime: ?*FILETIME, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'windows5.0' pub extern "advapi32" fn CloseTrace( TraceHandle: u64, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'windows10.0.16299' pub extern "advapi32" fn QueryTraceProcessingHandle( ProcessingHandle: u64, InformationClass: ETW_PROCESS_HANDLE_INFO_TYPE, InBuffer: ?*anyopaque, InBufferSize: u32, OutBuffer: ?*anyopaque, OutBufferSize: u32, ReturnLength: ?*u32, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'windows5.0' pub extern "advapi32" fn OpenTraceA( Logfile: ?*EVENT_TRACE_LOGFILEA, ) callconv(@import("std").os.windows.WINAPI) u64; // TODO: this type is limited to platform 'windows5.0' pub extern "advapi32" fn SetTraceCallback( pGuid: ?*const Guid, EventCallback: ?PEVENT_CALLBACK, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'windows5.0' pub extern "advapi32" fn RemoveTraceCallback( pGuid: ?*const Guid, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "advapi32" fn TraceMessage( LoggerHandle: u64, MessageFlags: TRACE_MESSAGE_FLAGS, MessageGuid: ?*const Guid, MessageNumber: u16, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "advapi32" fn TraceMessageVa( LoggerHandle: u64, MessageFlags: TRACE_MESSAGE_FLAGS, MessageGuid: ?*const Guid, MessageNumber: u16, MessageArgList: ?*i8, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'windows6.0.6000' pub extern "advapi32" fn EventRegister( ProviderId: ?*const Guid, EnableCallback: ?PENABLECALLBACK, CallbackContext: ?*anyopaque, RegHandle: ?*u64, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'windows6.0.6000' pub extern "advapi32" fn EventUnregister( RegHandle: u64, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'windows8.0' pub extern "advapi32" fn EventSetInformation( RegHandle: u64, InformationClass: EVENT_INFO_CLASS, // TODO: what to do with BytesParamIndex 3? EventInformation: ?*anyopaque, InformationLength: u32, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'windows6.0.6000' pub extern "advapi32" fn EventEnabled( RegHandle: u64, EventDescriptor: ?*const EVENT_DESCRIPTOR, ) callconv(@import("std").os.windows.WINAPI) BOOLEAN; // TODO: this type is limited to platform 'windows6.0.6000' pub extern "advapi32" fn EventProviderEnabled( RegHandle: u64, Level: u8, Keyword: u64, ) callconv(@import("std").os.windows.WINAPI) BOOLEAN; // TODO: this type is limited to platform 'windows6.0.6000' pub extern "advapi32" fn EventWrite( RegHandle: u64, EventDescriptor: ?*const EVENT_DESCRIPTOR, UserDataCount: u32, UserData: ?[*]EVENT_DATA_DESCRIPTOR, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'windows6.0.6000' pub extern "advapi32" fn EventWriteTransfer( RegHandle: u64, EventDescriptor: ?*const EVENT_DESCRIPTOR, ActivityId: ?*const Guid, RelatedActivityId: ?*const Guid, UserDataCount: u32, UserData: ?[*]EVENT_DATA_DESCRIPTOR, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'windows6.1' pub extern "advapi32" fn EventWriteEx( RegHandle: u64, EventDescriptor: ?*const EVENT_DESCRIPTOR, Filter: u64, Flags: u32, ActivityId: ?*const Guid, RelatedActivityId: ?*const Guid, UserDataCount: u32, UserData: ?[*]EVENT_DATA_DESCRIPTOR, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'windows6.0.6000' pub extern "advapi32" fn EventWriteString( RegHandle: u64, Level: u8, Keyword: u64, String: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'windows6.0.6000' pub extern "advapi32" fn EventActivityIdControl( ControlCode: u32, ActivityId: ?*Guid, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'windows6.0.6000' pub extern "advapi32" fn EventAccessControl( Guid: ?*Guid, Operation: u32, Sid: ?PSID, Rights: u32, AllowOrDeny: BOOLEAN, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'windows6.0.6000' pub extern "advapi32" fn EventAccessQuery( Guid: ?*Guid, // TODO: what to do with BytesParamIndex 2? Buffer: ?*SECURITY_DESCRIPTOR, BufferSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'windows6.0.6000' pub extern "advapi32" fn EventAccessRemove( Guid: ?*Guid, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'windows8.1' pub extern "tdh" fn TdhCreatePayloadFilter( ProviderGuid: ?*const Guid, EventDescriptor: ?*const EVENT_DESCRIPTOR, EventMatchANY: BOOLEAN, PayloadPredicateCount: u32, PayloadPredicates: [*]PAYLOAD_FILTER_PREDICATE, PayloadFilter: ?*?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'windows8.1' pub extern "tdh" fn TdhDeletePayloadFilter( PayloadFilter: ?*?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'windows8.1' pub extern "tdh" fn TdhAggregatePayloadFilters( PayloadFilterCount: u32, PayloadFilterPtrs: [*]?*anyopaque, EventMatchALLFlags: ?[*]BOOLEAN, EventFilterDescriptor: ?*EVENT_FILTER_DESCRIPTOR, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'windows8.1' pub extern "tdh" fn TdhCleanupPayloadEventFilterDescriptor( EventFilterDescriptor: ?*EVENT_FILTER_DESCRIPTOR, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'windows6.0.6000' pub extern "tdh" fn TdhGetEventInformation( Event: ?*EVENT_RECORD, TdhContextCount: u32, TdhContext: ?[*]TDH_CONTEXT, // TODO: what to do with BytesParamIndex 4? Buffer: ?*TRACE_EVENT_INFO, BufferSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'windows6.0.6000' pub extern "tdh" fn TdhGetEventMapInformation( pEvent: ?*EVENT_RECORD, pMapName: ?PWSTR, // TODO: what to do with BytesParamIndex 3? pBuffer: ?*EVENT_MAP_INFO, pBufferSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'windows6.0.6000' pub extern "tdh" fn TdhGetPropertySize( pEvent: ?*EVENT_RECORD, TdhContextCount: u32, pTdhContext: ?[*]TDH_CONTEXT, PropertyDataCount: u32, pPropertyData: [*]PROPERTY_DATA_DESCRIPTOR, pPropertySize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'windows6.0.6000' pub extern "tdh" fn TdhGetProperty( pEvent: ?*EVENT_RECORD, TdhContextCount: u32, pTdhContext: ?[*]TDH_CONTEXT, PropertyDataCount: u32, pPropertyData: [*]PROPERTY_DATA_DESCRIPTOR, BufferSize: u32, // TODO: what to do with BytesParamIndex 5? pBuffer: ?*u8, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'windows6.0.6000' pub extern "tdh" fn TdhEnumerateProviders( // TODO: what to do with BytesParamIndex 1? pBuffer: ?*PROVIDER_ENUMERATION_INFO, pBufferSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) u32; pub extern "tdh" fn TdhEnumerateProvidersForDecodingSource( filter: DECODING_SOURCE, // TODO: what to do with BytesParamIndex 2? buffer: ?*PROVIDER_ENUMERATION_INFO, bufferSize: u32, bufferRequired: ?*u32, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'windows6.0.6000' pub extern "tdh" fn TdhQueryProviderFieldInformation( pGuid: ?*Guid, EventFieldValue: u64, EventFieldType: EVENT_FIELD_TYPE, // TODO: what to do with BytesParamIndex 4? pBuffer: ?*PROVIDER_FIELD_INFOARRAY, pBufferSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'windows6.0.6000' pub extern "tdh" fn TdhEnumerateProviderFieldInformation( pGuid: ?*Guid, EventFieldType: EVENT_FIELD_TYPE, // TODO: what to do with BytesParamIndex 3? pBuffer: ?*PROVIDER_FIELD_INFOARRAY, pBufferSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'windows6.1' pub extern "tdh" fn TdhEnumerateProviderFilters( Guid: ?*Guid, TdhContextCount: u32, TdhContext: ?[*]TDH_CONTEXT, FilterCount: ?*u32, // TODO: what to do with BytesParamIndex 5? Buffer: ?*?*PROVIDER_FILTER_INFO, BufferSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'windows6.1' pub extern "tdh" fn TdhLoadManifest( Manifest: ?PWSTR, ) callconv(@import("std").os.windows.WINAPI) u32; pub extern "tdh" fn TdhLoadManifestFromMemory( // TODO: what to do with BytesParamIndex 1? pData: ?*const anyopaque, cbData: u32, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'windows6.1' pub extern "tdh" fn TdhUnloadManifest( Manifest: ?PWSTR, ) callconv(@import("std").os.windows.WINAPI) u32; pub extern "tdh" fn TdhUnloadManifestFromMemory( // TODO: what to do with BytesParamIndex 1? pData: ?*const anyopaque, cbData: u32, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'windows6.1' pub extern "tdh" fn TdhFormatProperty( EventInfo: ?*TRACE_EVENT_INFO, MapInfo: ?*EVENT_MAP_INFO, PointerSize: u32, PropertyInType: u16, PropertyOutType: u16, PropertyLength: u16, UserDataLength: u16, // TODO: what to do with BytesParamIndex 6? UserData: ?*u8, BufferSize: ?*u32, // TODO: what to do with BytesParamIndex 8? Buffer: ?[*]u16, UserDataConsumed: ?*u16, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'windows8.0' pub extern "tdh" fn TdhOpenDecodingHandle( Handle: ?*TDH_HANDLE, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'windows8.0' pub extern "tdh" fn TdhSetDecodingParameter( Handle: TDH_HANDLE, TdhContext: ?*TDH_CONTEXT, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'windows8.0' pub extern "tdh" fn TdhGetDecodingParameter( Handle: TDH_HANDLE, TdhContext: ?*TDH_CONTEXT, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'windows8.0' pub extern "tdh" fn TdhGetWppProperty( Handle: TDH_HANDLE, EventRecord: ?*EVENT_RECORD, PropertyName: ?PWSTR, BufferSize: ?*u32, // TODO: what to do with BytesParamIndex 3? Buffer: ?*u8, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'windows8.0' pub extern "tdh" fn TdhGetWppMessage( Handle: TDH_HANDLE, EventRecord: ?*EVENT_RECORD, BufferSize: ?*u32, // TODO: what to do with BytesParamIndex 2? Buffer: ?*u8, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'windows8.0' pub extern "tdh" fn TdhCloseDecodingHandle( Handle: TDH_HANDLE, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'windows8.0' pub extern "tdh" fn TdhLoadManifestFromBinary( BinaryPath: ?PWSTR, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'windows8.1' pub extern "tdh" fn TdhEnumerateManifestProviderEvents( ProviderGuid: ?*Guid, // TODO: what to do with BytesParamIndex 2? Buffer: ?*PROVIDER_EVENT_INFO, BufferSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'windows8.1' pub extern "tdh" fn TdhGetManifestEventInformation( ProviderGuid: ?*Guid, EventDescriptor: ?*EVENT_DESCRIPTOR, // TODO: what to do with BytesParamIndex 3? Buffer: ?*TRACE_EVENT_INFO, BufferSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'windows10.0.10240' pub extern "advapi32" fn CveEventWrite( CveId: ?[*:0]const u16, AdditionalDetails: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) i32; //-------------------------------------------------------------------------------- // Section: Unicode Aliases (11) //-------------------------------------------------------------------------------- const thismodule = @This(); pub usingnamespace switch (@import("../../zig.zig").unicode_mode) { .ansi => struct { pub const PEVENT_TRACE_BUFFER_CALLBACK = thismodule.PEVENT_TRACE_BUFFER_CALLBACKA; pub const EVENT_TRACE_LOGFILE = thismodule.EVENT_TRACE_LOGFILEA; pub const StartTrace = thismodule.StartTraceA; pub const StopTrace = thismodule.StopTraceA; pub const QueryTrace = thismodule.QueryTraceA; pub const UpdateTrace = thismodule.UpdateTraceA; pub const FlushTrace = thismodule.FlushTraceA; pub const ControlTrace = thismodule.ControlTraceA; pub const QueryAllTraces = thismodule.QueryAllTracesA; pub const RegisterTraceGuids = thismodule.RegisterTraceGuidsA; pub const OpenTrace = thismodule.OpenTraceA; }, .wide => struct { pub const PEVENT_TRACE_BUFFER_CALLBACK = thismodule.PEVENT_TRACE_BUFFER_CALLBACKW; pub const EVENT_TRACE_LOGFILE = thismodule.EVENT_TRACE_LOGFILEW; pub const StartTrace = thismodule.StartTraceW; pub const StopTrace = thismodule.StopTraceW; pub const QueryTrace = thismodule.QueryTraceW; pub const UpdateTrace = thismodule.UpdateTraceW; pub const FlushTrace = thismodule.FlushTraceW; pub const ControlTrace = thismodule.ControlTraceW; pub const QueryAllTraces = thismodule.QueryAllTracesW; pub const RegisterTraceGuids = thismodule.RegisterTraceGuidsW; pub const OpenTrace = thismodule.OpenTraceW; }, .unspecified => if (@import("builtin").is_test) struct { pub const PEVENT_TRACE_BUFFER_CALLBACK = *opaque {}; pub const EVENT_TRACE_LOGFILE = *opaque {}; pub const StartTrace = *opaque {}; pub const StopTrace = *opaque {}; pub const QueryTrace = *opaque {}; pub const UpdateTrace = *opaque {}; pub const FlushTrace = *opaque {}; pub const ControlTrace = *opaque {}; pub const QueryAllTraces = *opaque {}; pub const RegisterTraceGuids = *opaque {}; pub const OpenTrace = *opaque {}; } else struct { pub const PEVENT_TRACE_BUFFER_CALLBACK = @compileError("'PEVENT_TRACE_BUFFER_CALLBACK' requires that UNICODE be set to true or false in the root module"); pub const EVENT_TRACE_LOGFILE = @compileError("'EVENT_TRACE_LOGFILE' requires that UNICODE be set to true or false in the root module"); pub const StartTrace = @compileError("'StartTrace' requires that UNICODE be set to true or false in the root module"); pub const StopTrace = @compileError("'StopTrace' requires that UNICODE be set to true or false in the root module"); pub const QueryTrace = @compileError("'QueryTrace' requires that UNICODE be set to true or false in the root module"); pub const UpdateTrace = @compileError("'UpdateTrace' requires that UNICODE be set to true or false in the root module"); pub const FlushTrace = @compileError("'FlushTrace' requires that UNICODE be set to true or false in the root module"); pub const ControlTrace = @compileError("'ControlTrace' requires that UNICODE be set to true or false in the root module"); pub const QueryAllTraces = @compileError("'QueryAllTraces' requires that UNICODE be set to true or false in the root module"); pub const RegisterTraceGuids = @compileError("'RegisterTraceGuids' requires that UNICODE be set to true or false in the root module"); pub const OpenTrace = @compileError("'OpenTrace' requires that UNICODE be set to true or false in the root module"); }, }; //-------------------------------------------------------------------------------- // Section: Imports (13) //-------------------------------------------------------------------------------- const Guid = @import("../../zig.zig").Guid; const BOOLEAN = @import("../../foundation.zig").BOOLEAN; const BSTR = @import("../../foundation.zig").BSTR; const FILETIME = @import("../../foundation.zig").FILETIME; const HANDLE = @import("../../foundation.zig").HANDLE; const HRESULT = @import("../../foundation.zig").HRESULT; const IUnknown = @import("../../system/com.zig").IUnknown; const LARGE_INTEGER = @import("../../foundation.zig").LARGE_INTEGER; const PSID = @import("../../foundation.zig").PSID; const PSTR = @import("../../foundation.zig").PSTR; const PWSTR = @import("../../foundation.zig").PWSTR; const SECURITY_DESCRIPTOR = @import("../../security.zig").SECURITY_DESCRIPTOR; const TIME_ZONE_INFORMATION = @import("../../system/time.zig").TIME_ZONE_INFORMATION; test { // The following '_ = <FuncPtrType>' lines are a workaround for https://github.com/ziglang/zig/issues/4476 if (@hasDecl(@This(), "PEVENT_CALLBACK")) { _ = PEVENT_CALLBACK; } if (@hasDecl(@This(), "PEVENT_RECORD_CALLBACK")) { _ = PEVENT_RECORD_CALLBACK; } if (@hasDecl(@This(), "WMIDPREQUEST")) { _ = WMIDPREQUEST; } if (@hasDecl(@This(), "PENABLECALLBACK")) { _ = PENABLECALLBACK; } @setEvalBranchQuota(comptime @import("std").meta.declarations(@This()).len * 3); // reference all the pub declarations if (!@import("builtin").is_test) return; inline for (comptime @import("std").meta.declarations(@This())) |decl| { if (decl.is_pub) { _ = @field(@This(), decl.name); } } }
0
repos/capy/vendor/zigwin32/win32/system
repos/capy/vendor/zigwin32/win32/system/diagnostics/tool_help.zig
//! NOTE: this file is autogenerated, DO NOT MODIFY //-------------------------------------------------------------------------------- // Section: Constants (3) //-------------------------------------------------------------------------------- pub const MAX_MODULE_NAME32 = @as(u32, 255); pub const HF32_DEFAULT = @as(u32, 1); pub const HF32_SHARED = @as(u32, 2); //-------------------------------------------------------------------------------- // Section: Types (9) //-------------------------------------------------------------------------------- pub const CREATE_TOOLHELP_SNAPSHOT_FLAGS = enum(u32) { INHERIT = 2147483648, SNAPALL = 15, SNAPHEAPLIST = 1, SNAPMODULE = 8, SNAPMODULE32 = 16, SNAPPROCESS = 2, SNAPTHREAD = 4, _, pub fn initFlags(o: struct { INHERIT: u1 = 0, SNAPALL: u1 = 0, SNAPHEAPLIST: u1 = 0, SNAPMODULE: u1 = 0, SNAPMODULE32: u1 = 0, SNAPPROCESS: u1 = 0, SNAPTHREAD: u1 = 0, }) CREATE_TOOLHELP_SNAPSHOT_FLAGS { return @as(CREATE_TOOLHELP_SNAPSHOT_FLAGS, @enumFromInt((if (o.INHERIT == 1) @intFromEnum(CREATE_TOOLHELP_SNAPSHOT_FLAGS.INHERIT) else 0) | (if (o.SNAPALL == 1) @intFromEnum(CREATE_TOOLHELP_SNAPSHOT_FLAGS.SNAPALL) else 0) | (if (o.SNAPHEAPLIST == 1) @intFromEnum(CREATE_TOOLHELP_SNAPSHOT_FLAGS.SNAPHEAPLIST) else 0) | (if (o.SNAPMODULE == 1) @intFromEnum(CREATE_TOOLHELP_SNAPSHOT_FLAGS.SNAPMODULE) else 0) | (if (o.SNAPMODULE32 == 1) @intFromEnum(CREATE_TOOLHELP_SNAPSHOT_FLAGS.SNAPMODULE32) else 0) | (if (o.SNAPPROCESS == 1) @intFromEnum(CREATE_TOOLHELP_SNAPSHOT_FLAGS.SNAPPROCESS) else 0) | (if (o.SNAPTHREAD == 1) @intFromEnum(CREATE_TOOLHELP_SNAPSHOT_FLAGS.SNAPTHREAD) else 0))); } }; pub const TH32CS_INHERIT = CREATE_TOOLHELP_SNAPSHOT_FLAGS.INHERIT; pub const TH32CS_SNAPALL = CREATE_TOOLHELP_SNAPSHOT_FLAGS.SNAPALL; pub const TH32CS_SNAPHEAPLIST = CREATE_TOOLHELP_SNAPSHOT_FLAGS.SNAPHEAPLIST; pub const TH32CS_SNAPMODULE = CREATE_TOOLHELP_SNAPSHOT_FLAGS.SNAPMODULE; pub const TH32CS_SNAPMODULE32 = CREATE_TOOLHELP_SNAPSHOT_FLAGS.SNAPMODULE32; pub const TH32CS_SNAPPROCESS = CREATE_TOOLHELP_SNAPSHOT_FLAGS.SNAPPROCESS; pub const TH32CS_SNAPTHREAD = CREATE_TOOLHELP_SNAPSHOT_FLAGS.SNAPTHREAD; pub const HEAPENTRY32_FLAGS = enum(u32) { FIXED = 1, FREE = 2, MOVEABLE = 4, }; pub const LF32_FIXED = HEAPENTRY32_FLAGS.FIXED; pub const LF32_FREE = HEAPENTRY32_FLAGS.FREE; pub const LF32_MOVEABLE = HEAPENTRY32_FLAGS.MOVEABLE; pub const HEAPLIST32 = extern struct { dwSize: usize, th32ProcessID: u32, th32HeapID: usize, dwFlags: u32, }; pub const HEAPENTRY32 = extern struct { dwSize: usize, hHandle: ?HANDLE, dwAddress: usize, dwBlockSize: usize, dwFlags: HEAPENTRY32_FLAGS, dwLockCount: u32, dwResvd: u32, th32ProcessID: u32, th32HeapID: usize, }; pub const PROCESSENTRY32W = extern struct { dwSize: u32, cntUsage: u32, th32ProcessID: u32, th32DefaultHeapID: usize, th32ModuleID: u32, cntThreads: u32, th32ParentProcessID: u32, pcPriClassBase: i32, dwFlags: u32, szExeFile: [260]u16, }; pub const PROCESSENTRY32 = extern struct { dwSize: u32, cntUsage: u32, th32ProcessID: u32, th32DefaultHeapID: usize, th32ModuleID: u32, cntThreads: u32, th32ParentProcessID: u32, pcPriClassBase: i32, dwFlags: u32, szExeFile: [260]CHAR, }; pub const THREADENTRY32 = extern struct { dwSize: u32, cntUsage: u32, th32ThreadID: u32, th32OwnerProcessID: u32, tpBasePri: i32, tpDeltaPri: i32, dwFlags: u32, }; pub const MODULEENTRY32W = extern struct { dwSize: u32, th32ModuleID: u32, th32ProcessID: u32, GlblcntUsage: u32, ProccntUsage: u32, modBaseAddr: ?*u8, modBaseSize: u32, hModule: ?HINSTANCE, szModule: [256]u16, szExePath: [260]u16, }; pub const MODULEENTRY32 = extern struct { dwSize: u32, th32ModuleID: u32, th32ProcessID: u32, GlblcntUsage: u32, ProccntUsage: u32, modBaseAddr: ?*u8, modBaseSize: u32, hModule: ?HINSTANCE, szModule: [256]CHAR, szExePath: [260]CHAR, }; //-------------------------------------------------------------------------------- // Section: Functions (16) //-------------------------------------------------------------------------------- // TODO: this type is limited to platform 'windows5.1.2600' pub extern "kernel32" fn CreateToolhelp32Snapshot( dwFlags: CREATE_TOOLHELP_SNAPSHOT_FLAGS, th32ProcessID: u32, ) callconv(@import("std").os.windows.WINAPI) ?HANDLE; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "kernel32" fn Heap32ListFirst( hSnapshot: ?HANDLE, lphl: ?*HEAPLIST32, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "kernel32" fn Heap32ListNext( hSnapshot: ?HANDLE, lphl: ?*HEAPLIST32, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "kernel32" fn Heap32First( lphe: ?*HEAPENTRY32, th32ProcessID: u32, th32HeapID: usize, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "kernel32" fn Heap32Next( lphe: ?*HEAPENTRY32, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "kernel32" fn Toolhelp32ReadProcessMemory( th32ProcessID: u32, lpBaseAddress: ?*const anyopaque, lpBuffer: ?*anyopaque, cbRead: usize, lpNumberOfBytesRead: ?*usize, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "kernel32" fn Process32FirstW( hSnapshot: ?HANDLE, lppe: ?*PROCESSENTRY32W, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "kernel32" fn Process32NextW( hSnapshot: ?HANDLE, lppe: ?*PROCESSENTRY32W, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "kernel32" fn Process32First( hSnapshot: ?HANDLE, lppe: ?*PROCESSENTRY32, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "kernel32" fn Process32Next( hSnapshot: ?HANDLE, lppe: ?*PROCESSENTRY32, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "kernel32" fn Thread32First( hSnapshot: ?HANDLE, lpte: ?*THREADENTRY32, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "kernel32" fn Thread32Next( hSnapshot: ?HANDLE, lpte: ?*THREADENTRY32, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "kernel32" fn Module32FirstW( hSnapshot: ?HANDLE, lpme: ?*MODULEENTRY32W, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "kernel32" fn Module32NextW( hSnapshot: ?HANDLE, lpme: ?*MODULEENTRY32W, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "kernel32" fn Module32First( hSnapshot: ?HANDLE, lpme: ?*MODULEENTRY32, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows5.1.2600' pub extern "kernel32" fn Module32Next( hSnapshot: ?HANDLE, lpme: ?*MODULEENTRY32, ) callconv(@import("std").os.windows.WINAPI) BOOL; //-------------------------------------------------------------------------------- // Section: Unicode Aliases (0) //-------------------------------------------------------------------------------- const thismodule = @This(); pub usingnamespace switch (@import("../../zig.zig").unicode_mode) { .ansi => struct {}, .wide => struct {}, .unspecified => if (@import("builtin").is_test) struct {} else struct {}, }; //-------------------------------------------------------------------------------- // Section: Imports (4) //-------------------------------------------------------------------------------- const BOOL = @import("../../foundation.zig").BOOL; const CHAR = @import("../../foundation.zig").CHAR; const HANDLE = @import("../../foundation.zig").HANDLE; const HINSTANCE = @import("../../foundation.zig").HINSTANCE; test { @setEvalBranchQuota(comptime @import("std").meta.declarations(@This()).len * 3); // reference all the pub declarations if (!@import("builtin").is_test) return; inline for (comptime @import("std").meta.declarations(@This())) |decl| { if (decl.is_pub) { _ = @field(@This(), decl.name); } } }
0
repos/capy/vendor/zigwin32/win32/system
repos/capy/vendor/zigwin32/win32/system/diagnostics/ceip.zig
//! NOTE: this file is autogenerated, DO NOT MODIFY //-------------------------------------------------------------------------------- // Section: Constants (0) //-------------------------------------------------------------------------------- //-------------------------------------------------------------------------------- // Section: Types (0) //-------------------------------------------------------------------------------- //-------------------------------------------------------------------------------- // Section: Functions (1) //-------------------------------------------------------------------------------- // TODO: this type is limited to platform 'windows8.1' pub extern "kernel32" fn CeipIsOptedIn() callconv(@import("std").os.windows.WINAPI) BOOL; //-------------------------------------------------------------------------------- // Section: Unicode Aliases (0) //-------------------------------------------------------------------------------- const thismodule = @This(); pub usingnamespace switch (@import("../../zig.zig").unicode_mode) { .ansi => struct {}, .wide => struct {}, .unspecified => if (@import("builtin").is_test) struct {} else struct {}, }; //-------------------------------------------------------------------------------- // Section: Imports (1) //-------------------------------------------------------------------------------- const BOOL = @import("../../foundation.zig").BOOL; test { @setEvalBranchQuota(comptime @import("std").meta.declarations(@This()).len * 3); // reference all the pub declarations if (!@import("builtin").is_test) return; inline for (comptime @import("std").meta.declarations(@This())) |decl| { if (decl.is_pub) { _ = @field(@This(), decl.name); } } }
0
repos/capy/vendor/zigwin32/win32/system
repos/capy/vendor/zigwin32/win32/system/diagnostics/process_snapshotting.zig
//! NOTE: this file is autogenerated, DO NOT MODIFY //-------------------------------------------------------------------------------- // Section: Constants (1) //-------------------------------------------------------------------------------- pub const PSS_PERF_RESOLUTION = @as(u32, 1000000); //-------------------------------------------------------------------------------- // Section: Types (23) //-------------------------------------------------------------------------------- pub const HPSS = *opaque {}; pub const HPSSWALK = *opaque {}; pub const PSS_HANDLE_FLAGS = enum(u32) { NONE = 0, HAVE_TYPE = 1, HAVE_NAME = 2, HAVE_BASIC_INFORMATION = 4, HAVE_TYPE_SPECIFIC_INFORMATION = 8, _, pub fn initFlags(o: struct { NONE: u1 = 0, HAVE_TYPE: u1 = 0, HAVE_NAME: u1 = 0, HAVE_BASIC_INFORMATION: u1 = 0, HAVE_TYPE_SPECIFIC_INFORMATION: u1 = 0, }) PSS_HANDLE_FLAGS { return @as(PSS_HANDLE_FLAGS, @enumFromInt((if (o.NONE == 1) @intFromEnum(PSS_HANDLE_FLAGS.NONE) else 0) | (if (o.HAVE_TYPE == 1) @intFromEnum(PSS_HANDLE_FLAGS.HAVE_TYPE) else 0) | (if (o.HAVE_NAME == 1) @intFromEnum(PSS_HANDLE_FLAGS.HAVE_NAME) else 0) | (if (o.HAVE_BASIC_INFORMATION == 1) @intFromEnum(PSS_HANDLE_FLAGS.HAVE_BASIC_INFORMATION) else 0) | (if (o.HAVE_TYPE_SPECIFIC_INFORMATION == 1) @intFromEnum(PSS_HANDLE_FLAGS.HAVE_TYPE_SPECIFIC_INFORMATION) else 0))); } }; pub const PSS_HANDLE_NONE = PSS_HANDLE_FLAGS.NONE; pub const PSS_HANDLE_HAVE_TYPE = PSS_HANDLE_FLAGS.HAVE_TYPE; pub const PSS_HANDLE_HAVE_NAME = PSS_HANDLE_FLAGS.HAVE_NAME; pub const PSS_HANDLE_HAVE_BASIC_INFORMATION = PSS_HANDLE_FLAGS.HAVE_BASIC_INFORMATION; pub const PSS_HANDLE_HAVE_TYPE_SPECIFIC_INFORMATION = PSS_HANDLE_FLAGS.HAVE_TYPE_SPECIFIC_INFORMATION; pub const PSS_OBJECT_TYPE = enum(i32) { UNKNOWN = 0, PROCESS = 1, THREAD = 2, MUTANT = 3, EVENT = 4, SECTION = 5, SEMAPHORE = 6, }; pub const PSS_OBJECT_TYPE_UNKNOWN = PSS_OBJECT_TYPE.UNKNOWN; pub const PSS_OBJECT_TYPE_PROCESS = PSS_OBJECT_TYPE.PROCESS; pub const PSS_OBJECT_TYPE_THREAD = PSS_OBJECT_TYPE.THREAD; pub const PSS_OBJECT_TYPE_MUTANT = PSS_OBJECT_TYPE.MUTANT; pub const PSS_OBJECT_TYPE_EVENT = PSS_OBJECT_TYPE.EVENT; pub const PSS_OBJECT_TYPE_SECTION = PSS_OBJECT_TYPE.SECTION; pub const PSS_OBJECT_TYPE_SEMAPHORE = PSS_OBJECT_TYPE.SEMAPHORE; pub const PSS_CAPTURE_FLAGS = enum(u32) { APTURE_NONE = 0, APTURE_VA_CLONE = 1, APTURE_RESERVED_00000002 = 2, APTURE_HANDLES = 4, APTURE_HANDLE_NAME_INFORMATION = 8, APTURE_HANDLE_BASIC_INFORMATION = 16, APTURE_HANDLE_TYPE_SPECIFIC_INFORMATION = 32, APTURE_HANDLE_TRACE = 64, APTURE_THREADS = 128, APTURE_THREAD_CONTEXT = 256, APTURE_THREAD_CONTEXT_EXTENDED = 512, APTURE_RESERVED_00000400 = 1024, APTURE_VA_SPACE = 2048, APTURE_VA_SPACE_SECTION_INFORMATION = 4096, APTURE_IPT_TRACE = 8192, APTURE_RESERVED_00004000 = 16384, REATE_BREAKAWAY_OPTIONAL = 67108864, REATE_BREAKAWAY = 134217728, REATE_FORCE_BREAKAWAY = 268435456, REATE_USE_VM_ALLOCATIONS = 536870912, REATE_MEASURE_PERFORMANCE = 1073741824, REATE_RELEASE_SECTION = 2147483648, _, pub fn initFlags(o: struct { APTURE_NONE: u1 = 0, APTURE_VA_CLONE: u1 = 0, APTURE_RESERVED_00000002: u1 = 0, APTURE_HANDLES: u1 = 0, APTURE_HANDLE_NAME_INFORMATION: u1 = 0, APTURE_HANDLE_BASIC_INFORMATION: u1 = 0, APTURE_HANDLE_TYPE_SPECIFIC_INFORMATION: u1 = 0, APTURE_HANDLE_TRACE: u1 = 0, APTURE_THREADS: u1 = 0, APTURE_THREAD_CONTEXT: u1 = 0, APTURE_THREAD_CONTEXT_EXTENDED: u1 = 0, APTURE_RESERVED_00000400: u1 = 0, APTURE_VA_SPACE: u1 = 0, APTURE_VA_SPACE_SECTION_INFORMATION: u1 = 0, APTURE_IPT_TRACE: u1 = 0, APTURE_RESERVED_00004000: u1 = 0, REATE_BREAKAWAY_OPTIONAL: u1 = 0, REATE_BREAKAWAY: u1 = 0, REATE_FORCE_BREAKAWAY: u1 = 0, REATE_USE_VM_ALLOCATIONS: u1 = 0, REATE_MEASURE_PERFORMANCE: u1 = 0, REATE_RELEASE_SECTION: u1 = 0, }) PSS_CAPTURE_FLAGS { return @as(PSS_CAPTURE_FLAGS, @enumFromInt((if (o.APTURE_NONE == 1) @intFromEnum(PSS_CAPTURE_FLAGS.APTURE_NONE) else 0) | (if (o.APTURE_VA_CLONE == 1) @intFromEnum(PSS_CAPTURE_FLAGS.APTURE_VA_CLONE) else 0) | (if (o.APTURE_RESERVED_00000002 == 1) @intFromEnum(PSS_CAPTURE_FLAGS.APTURE_RESERVED_00000002) else 0) | (if (o.APTURE_HANDLES == 1) @intFromEnum(PSS_CAPTURE_FLAGS.APTURE_HANDLES) else 0) | (if (o.APTURE_HANDLE_NAME_INFORMATION == 1) @intFromEnum(PSS_CAPTURE_FLAGS.APTURE_HANDLE_NAME_INFORMATION) else 0) | (if (o.APTURE_HANDLE_BASIC_INFORMATION == 1) @intFromEnum(PSS_CAPTURE_FLAGS.APTURE_HANDLE_BASIC_INFORMATION) else 0) | (if (o.APTURE_HANDLE_TYPE_SPECIFIC_INFORMATION == 1) @intFromEnum(PSS_CAPTURE_FLAGS.APTURE_HANDLE_TYPE_SPECIFIC_INFORMATION) else 0) | (if (o.APTURE_HANDLE_TRACE == 1) @intFromEnum(PSS_CAPTURE_FLAGS.APTURE_HANDLE_TRACE) else 0) | (if (o.APTURE_THREADS == 1) @intFromEnum(PSS_CAPTURE_FLAGS.APTURE_THREADS) else 0) | (if (o.APTURE_THREAD_CONTEXT == 1) @intFromEnum(PSS_CAPTURE_FLAGS.APTURE_THREAD_CONTEXT) else 0) | (if (o.APTURE_THREAD_CONTEXT_EXTENDED == 1) @intFromEnum(PSS_CAPTURE_FLAGS.APTURE_THREAD_CONTEXT_EXTENDED) else 0) | (if (o.APTURE_RESERVED_00000400 == 1) @intFromEnum(PSS_CAPTURE_FLAGS.APTURE_RESERVED_00000400) else 0) | (if (o.APTURE_VA_SPACE == 1) @intFromEnum(PSS_CAPTURE_FLAGS.APTURE_VA_SPACE) else 0) | (if (o.APTURE_VA_SPACE_SECTION_INFORMATION == 1) @intFromEnum(PSS_CAPTURE_FLAGS.APTURE_VA_SPACE_SECTION_INFORMATION) else 0) | (if (o.APTURE_IPT_TRACE == 1) @intFromEnum(PSS_CAPTURE_FLAGS.APTURE_IPT_TRACE) else 0) | (if (o.APTURE_RESERVED_00004000 == 1) @intFromEnum(PSS_CAPTURE_FLAGS.APTURE_RESERVED_00004000) else 0) | (if (o.REATE_BREAKAWAY_OPTIONAL == 1) @intFromEnum(PSS_CAPTURE_FLAGS.REATE_BREAKAWAY_OPTIONAL) else 0) | (if (o.REATE_BREAKAWAY == 1) @intFromEnum(PSS_CAPTURE_FLAGS.REATE_BREAKAWAY) else 0) | (if (o.REATE_FORCE_BREAKAWAY == 1) @intFromEnum(PSS_CAPTURE_FLAGS.REATE_FORCE_BREAKAWAY) else 0) | (if (o.REATE_USE_VM_ALLOCATIONS == 1) @intFromEnum(PSS_CAPTURE_FLAGS.REATE_USE_VM_ALLOCATIONS) else 0) | (if (o.REATE_MEASURE_PERFORMANCE == 1) @intFromEnum(PSS_CAPTURE_FLAGS.REATE_MEASURE_PERFORMANCE) else 0) | (if (o.REATE_RELEASE_SECTION == 1) @intFromEnum(PSS_CAPTURE_FLAGS.REATE_RELEASE_SECTION) else 0))); } }; pub const PSS_CAPTURE_NONE = PSS_CAPTURE_FLAGS.APTURE_NONE; pub const PSS_CAPTURE_VA_CLONE = PSS_CAPTURE_FLAGS.APTURE_VA_CLONE; pub const PSS_CAPTURE_RESERVED_00000002 = PSS_CAPTURE_FLAGS.APTURE_RESERVED_00000002; pub const PSS_CAPTURE_HANDLES = PSS_CAPTURE_FLAGS.APTURE_HANDLES; pub const PSS_CAPTURE_HANDLE_NAME_INFORMATION = PSS_CAPTURE_FLAGS.APTURE_HANDLE_NAME_INFORMATION; pub const PSS_CAPTURE_HANDLE_BASIC_INFORMATION = PSS_CAPTURE_FLAGS.APTURE_HANDLE_BASIC_INFORMATION; pub const PSS_CAPTURE_HANDLE_TYPE_SPECIFIC_INFORMATION = PSS_CAPTURE_FLAGS.APTURE_HANDLE_TYPE_SPECIFIC_INFORMATION; pub const PSS_CAPTURE_HANDLE_TRACE = PSS_CAPTURE_FLAGS.APTURE_HANDLE_TRACE; pub const PSS_CAPTURE_THREADS = PSS_CAPTURE_FLAGS.APTURE_THREADS; pub const PSS_CAPTURE_THREAD_CONTEXT = PSS_CAPTURE_FLAGS.APTURE_THREAD_CONTEXT; pub const PSS_CAPTURE_THREAD_CONTEXT_EXTENDED = PSS_CAPTURE_FLAGS.APTURE_THREAD_CONTEXT_EXTENDED; pub const PSS_CAPTURE_RESERVED_00000400 = PSS_CAPTURE_FLAGS.APTURE_RESERVED_00000400; pub const PSS_CAPTURE_VA_SPACE = PSS_CAPTURE_FLAGS.APTURE_VA_SPACE; pub const PSS_CAPTURE_VA_SPACE_SECTION_INFORMATION = PSS_CAPTURE_FLAGS.APTURE_VA_SPACE_SECTION_INFORMATION; pub const PSS_CAPTURE_IPT_TRACE = PSS_CAPTURE_FLAGS.APTURE_IPT_TRACE; pub const PSS_CAPTURE_RESERVED_00004000 = PSS_CAPTURE_FLAGS.APTURE_RESERVED_00004000; pub const PSS_CREATE_BREAKAWAY_OPTIONAL = PSS_CAPTURE_FLAGS.REATE_BREAKAWAY_OPTIONAL; pub const PSS_CREATE_BREAKAWAY = PSS_CAPTURE_FLAGS.REATE_BREAKAWAY; pub const PSS_CREATE_FORCE_BREAKAWAY = PSS_CAPTURE_FLAGS.REATE_FORCE_BREAKAWAY; pub const PSS_CREATE_USE_VM_ALLOCATIONS = PSS_CAPTURE_FLAGS.REATE_USE_VM_ALLOCATIONS; pub const PSS_CREATE_MEASURE_PERFORMANCE = PSS_CAPTURE_FLAGS.REATE_MEASURE_PERFORMANCE; pub const PSS_CREATE_RELEASE_SECTION = PSS_CAPTURE_FLAGS.REATE_RELEASE_SECTION; pub const PSS_QUERY_INFORMATION_CLASS = enum(i32) { PROCESS_INFORMATION = 0, VA_CLONE_INFORMATION = 1, AUXILIARY_PAGES_INFORMATION = 2, VA_SPACE_INFORMATION = 3, HANDLE_INFORMATION = 4, THREAD_INFORMATION = 5, HANDLE_TRACE_INFORMATION = 6, PERFORMANCE_COUNTERS = 7, }; pub const PSS_QUERY_PROCESS_INFORMATION = PSS_QUERY_INFORMATION_CLASS.PROCESS_INFORMATION; pub const PSS_QUERY_VA_CLONE_INFORMATION = PSS_QUERY_INFORMATION_CLASS.VA_CLONE_INFORMATION; pub const PSS_QUERY_AUXILIARY_PAGES_INFORMATION = PSS_QUERY_INFORMATION_CLASS.AUXILIARY_PAGES_INFORMATION; pub const PSS_QUERY_VA_SPACE_INFORMATION = PSS_QUERY_INFORMATION_CLASS.VA_SPACE_INFORMATION; pub const PSS_QUERY_HANDLE_INFORMATION = PSS_QUERY_INFORMATION_CLASS.HANDLE_INFORMATION; pub const PSS_QUERY_THREAD_INFORMATION = PSS_QUERY_INFORMATION_CLASS.THREAD_INFORMATION; pub const PSS_QUERY_HANDLE_TRACE_INFORMATION = PSS_QUERY_INFORMATION_CLASS.HANDLE_TRACE_INFORMATION; pub const PSS_QUERY_PERFORMANCE_COUNTERS = PSS_QUERY_INFORMATION_CLASS.PERFORMANCE_COUNTERS; pub const PSS_WALK_INFORMATION_CLASS = enum(i32) { AUXILIARY_PAGES = 0, VA_SPACE = 1, HANDLES = 2, THREADS = 3, }; pub const PSS_WALK_AUXILIARY_PAGES = PSS_WALK_INFORMATION_CLASS.AUXILIARY_PAGES; pub const PSS_WALK_VA_SPACE = PSS_WALK_INFORMATION_CLASS.VA_SPACE; pub const PSS_WALK_HANDLES = PSS_WALK_INFORMATION_CLASS.HANDLES; pub const PSS_WALK_THREADS = PSS_WALK_INFORMATION_CLASS.THREADS; pub const PSS_DUPLICATE_FLAGS = enum(u32) { NONE = 0, CLOSE_SOURCE = 1, _, pub fn initFlags(o: struct { NONE: u1 = 0, CLOSE_SOURCE: u1 = 0, }) PSS_DUPLICATE_FLAGS { return @as(PSS_DUPLICATE_FLAGS, @enumFromInt((if (o.NONE == 1) @intFromEnum(PSS_DUPLICATE_FLAGS.NONE) else 0) | (if (o.CLOSE_SOURCE == 1) @intFromEnum(PSS_DUPLICATE_FLAGS.CLOSE_SOURCE) else 0))); } }; pub const PSS_DUPLICATE_NONE = PSS_DUPLICATE_FLAGS.NONE; pub const PSS_DUPLICATE_CLOSE_SOURCE = PSS_DUPLICATE_FLAGS.CLOSE_SOURCE; pub const PSS_PROCESS_FLAGS = enum(u32) { NONE = 0, PROTECTED = 1, WOW64 = 2, RESERVED_03 = 4, RESERVED_04 = 8, FROZEN = 16, _, pub fn initFlags(o: struct { NONE: u1 = 0, PROTECTED: u1 = 0, WOW64: u1 = 0, RESERVED_03: u1 = 0, RESERVED_04: u1 = 0, FROZEN: u1 = 0, }) PSS_PROCESS_FLAGS { return @as(PSS_PROCESS_FLAGS, @enumFromInt((if (o.NONE == 1) @intFromEnum(PSS_PROCESS_FLAGS.NONE) else 0) | (if (o.PROTECTED == 1) @intFromEnum(PSS_PROCESS_FLAGS.PROTECTED) else 0) | (if (o.WOW64 == 1) @intFromEnum(PSS_PROCESS_FLAGS.WOW64) else 0) | (if (o.RESERVED_03 == 1) @intFromEnum(PSS_PROCESS_FLAGS.RESERVED_03) else 0) | (if (o.RESERVED_04 == 1) @intFromEnum(PSS_PROCESS_FLAGS.RESERVED_04) else 0) | (if (o.FROZEN == 1) @intFromEnum(PSS_PROCESS_FLAGS.FROZEN) else 0))); } }; pub const PSS_PROCESS_FLAGS_NONE = PSS_PROCESS_FLAGS.NONE; pub const PSS_PROCESS_FLAGS_PROTECTED = PSS_PROCESS_FLAGS.PROTECTED; pub const PSS_PROCESS_FLAGS_WOW64 = PSS_PROCESS_FLAGS.WOW64; pub const PSS_PROCESS_FLAGS_RESERVED_03 = PSS_PROCESS_FLAGS.RESERVED_03; pub const PSS_PROCESS_FLAGS_RESERVED_04 = PSS_PROCESS_FLAGS.RESERVED_04; pub const PSS_PROCESS_FLAGS_FROZEN = PSS_PROCESS_FLAGS.FROZEN; pub const PSS_PROCESS_INFORMATION = extern struct { ExitStatus: u32, PebBaseAddress: ?*anyopaque, AffinityMask: usize, BasePriority: i32, ProcessId: u32, ParentProcessId: u32, Flags: PSS_PROCESS_FLAGS, CreateTime: FILETIME, ExitTime: FILETIME, KernelTime: FILETIME, UserTime: FILETIME, PriorityClass: u32, PeakVirtualSize: usize, VirtualSize: usize, PageFaultCount: u32, PeakWorkingSetSize: usize, WorkingSetSize: usize, QuotaPeakPagedPoolUsage: usize, QuotaPagedPoolUsage: usize, QuotaPeakNonPagedPoolUsage: usize, QuotaNonPagedPoolUsage: usize, PagefileUsage: usize, PeakPagefileUsage: usize, PrivateUsage: usize, ExecuteFlags: u32, ImageFileName: [260]u16, }; pub const PSS_VA_CLONE_INFORMATION = extern struct { VaCloneHandle: ?HANDLE, }; pub const PSS_AUXILIARY_PAGES_INFORMATION = extern struct { AuxPagesCaptured: u32, }; pub const PSS_VA_SPACE_INFORMATION = extern struct { RegionCount: u32, }; pub const PSS_HANDLE_INFORMATION = extern struct { HandlesCaptured: u32, }; pub const PSS_THREAD_INFORMATION = extern struct { ThreadsCaptured: u32, ContextLength: u32, }; pub const PSS_HANDLE_TRACE_INFORMATION = extern struct { SectionHandle: ?HANDLE, Size: u32, }; pub const PSS_PERFORMANCE_COUNTERS = extern struct { TotalCycleCount: u64, TotalWallClockPeriod: u64, VaCloneCycleCount: u64, VaCloneWallClockPeriod: u64, VaSpaceCycleCount: u64, VaSpaceWallClockPeriod: u64, AuxPagesCycleCount: u64, AuxPagesWallClockPeriod: u64, HandlesCycleCount: u64, HandlesWallClockPeriod: u64, ThreadsCycleCount: u64, ThreadsWallClockPeriod: u64, }; pub const PSS_AUXILIARY_PAGE_ENTRY = extern struct { Address: ?*anyopaque, BasicInformation: MEMORY_BASIC_INFORMATION, CaptureTime: FILETIME, PageContents: ?*anyopaque, PageSize: u32, }; pub const PSS_VA_SPACE_ENTRY = extern struct { BaseAddress: ?*anyopaque, AllocationBase: ?*anyopaque, AllocationProtect: u32, RegionSize: usize, State: u32, Protect: u32, Type: u32, TimeDateStamp: u32, SizeOfImage: u32, ImageBase: ?*anyopaque, CheckSum: u32, MappedFileNameLength: u16, MappedFileName: ?[*:0]const u16, }; pub const PSS_HANDLE_ENTRY = extern struct { Handle: ?HANDLE, Flags: PSS_HANDLE_FLAGS, ObjectType: PSS_OBJECT_TYPE, CaptureTime: FILETIME, Attributes: u32, GrantedAccess: u32, HandleCount: u32, PointerCount: u32, PagedPoolCharge: u32, NonPagedPoolCharge: u32, CreationTime: FILETIME, TypeNameLength: u16, TypeName: ?[*:0]const u16, ObjectNameLength: u16, ObjectName: ?[*:0]const u16, TypeSpecificInformation: extern union { Process: extern struct { ExitStatus: u32, PebBaseAddress: ?*anyopaque, AffinityMask: usize, BasePriority: i32, ProcessId: u32, ParentProcessId: u32, Flags: u32, }, Thread: extern struct { ExitStatus: u32, TebBaseAddress: ?*anyopaque, ProcessId: u32, ThreadId: u32, AffinityMask: usize, Priority: i32, BasePriority: i32, Win32StartAddress: ?*anyopaque, }, Mutant: extern struct { CurrentCount: i32, Abandoned: BOOL, OwnerProcessId: u32, OwnerThreadId: u32, }, Event: extern struct { ManualReset: BOOL, Signaled: BOOL, }, Section: extern struct { BaseAddress: ?*anyopaque, AllocationAttributes: u32, MaximumSize: LARGE_INTEGER, }, Semaphore: extern struct { CurrentCount: i32, MaximumCount: i32, }, }, }; pub const PSS_THREAD_FLAGS = enum(u32) { NONE = 0, TERMINATED = 1, _, pub fn initFlags(o: struct { NONE: u1 = 0, TERMINATED: u1 = 0, }) PSS_THREAD_FLAGS { return @as(PSS_THREAD_FLAGS, @enumFromInt((if (o.NONE == 1) @intFromEnum(PSS_THREAD_FLAGS.NONE) else 0) | (if (o.TERMINATED == 1) @intFromEnum(PSS_THREAD_FLAGS.TERMINATED) else 0))); } }; pub const PSS_THREAD_FLAGS_NONE = PSS_THREAD_FLAGS.NONE; pub const PSS_THREAD_FLAGS_TERMINATED = PSS_THREAD_FLAGS.TERMINATED; pub const PSS_THREAD_ENTRY = extern struct { ExitStatus: u32, TebBaseAddress: ?*anyopaque, ProcessId: u32, ThreadId: u32, AffinityMask: usize, Priority: i32, BasePriority: i32, LastSyscallFirstArgument: ?*anyopaque, LastSyscallNumber: u16, CreateTime: FILETIME, ExitTime: FILETIME, KernelTime: FILETIME, UserTime: FILETIME, Win32StartAddress: ?*anyopaque, CaptureTime: FILETIME, Flags: PSS_THREAD_FLAGS, SuspendCount: u16, SizeOfContextRecord: u16, ContextRecord: ?*CONTEXT, }; pub const PSS_ALLOCATOR = extern struct { Context: ?*anyopaque, AllocRoutine: isize, FreeRoutine: isize, }; //-------------------------------------------------------------------------------- // Section: Functions (10) //-------------------------------------------------------------------------------- // TODO: this type is limited to platform 'windows8.1' pub extern "kernel32" fn PssCaptureSnapshot( ProcessHandle: ?HANDLE, CaptureFlags: PSS_CAPTURE_FLAGS, ThreadContextFlags: u32, SnapshotHandle: ?*?HPSS, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'windows8.1' pub extern "kernel32" fn PssFreeSnapshot( ProcessHandle: ?HANDLE, SnapshotHandle: ?HPSS, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'windows8.1' pub extern "kernel32" fn PssQuerySnapshot( SnapshotHandle: ?HPSS, InformationClass: PSS_QUERY_INFORMATION_CLASS, // TODO: what to do with BytesParamIndex 3? Buffer: ?*anyopaque, BufferLength: u32, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'windows8.1' pub extern "kernel32" fn PssWalkSnapshot( SnapshotHandle: ?HPSS, InformationClass: PSS_WALK_INFORMATION_CLASS, WalkMarkerHandle: ?HPSSWALK, Buffer: ?[*]u8, BufferLength: u32, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'windows8.1' // This function from dll 'KERNEL32' is being skipped because it has some sort of issue pub fn PssDuplicateSnapshot() void { @panic("this function is not working"); } // TODO: this type is limited to platform 'windows8.1' pub extern "kernel32" fn PssWalkMarkerCreate( Allocator: ?*const PSS_ALLOCATOR, WalkMarkerHandle: ?*?HPSSWALK, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'windows8.1' pub extern "kernel32" fn PssWalkMarkerFree( WalkMarkerHandle: ?HPSSWALK, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'windows8.1' pub extern "kernel32" fn PssWalkMarkerGetPosition( WalkMarkerHandle: ?HPSSWALK, Position: ?*usize, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'windows8.1' pub extern "kernel32" fn PssWalkMarkerSetPosition( WalkMarkerHandle: ?HPSSWALK, Position: usize, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'windows8.1' pub extern "kernel32" fn PssWalkMarkerSeekToBeginning( WalkMarkerHandle: ?HPSSWALK, ) callconv(@import("std").os.windows.WINAPI) u32; //-------------------------------------------------------------------------------- // Section: Unicode Aliases (0) //-------------------------------------------------------------------------------- const thismodule = @This(); pub usingnamespace switch (@import("../../zig.zig").unicode_mode) { .ansi => struct {}, .wide => struct {}, .unspecified => if (@import("builtin").is_test) struct {} else struct {}, }; //-------------------------------------------------------------------------------- // Section: Imports (7) //-------------------------------------------------------------------------------- const BOOL = @import("../../foundation.zig").BOOL; const CONTEXT = @import("../../system/diagnostics/debug.zig").CONTEXT; const FILETIME = @import("../../foundation.zig").FILETIME; const HANDLE = @import("../../foundation.zig").HANDLE; const LARGE_INTEGER = @import("../../foundation.zig").LARGE_INTEGER; const MEMORY_BASIC_INFORMATION = @import("../../system/memory.zig").MEMORY_BASIC_INFORMATION; const PWSTR = @import("../../foundation.zig").PWSTR; test { @setEvalBranchQuota(comptime @import("std").meta.declarations(@This()).len * 3); // reference all the pub declarations if (!@import("builtin").is_test) return; inline for (comptime @import("std").meta.declarations(@This())) |decl| { if (decl.is_pub) { _ = @field(@This(), decl.name); } } }
0
repos/capy/vendor/zigwin32/win32/system/diagnostics
repos/capy/vendor/zigwin32/win32/system/diagnostics/debug/web_app.zig
//! NOTE: this file is autogenerated, DO NOT MODIFY //-------------------------------------------------------------------------------- // Section: Constants (0) //-------------------------------------------------------------------------------- //-------------------------------------------------------------------------------- // Section: Types (9) //-------------------------------------------------------------------------------- // TODO: this type is limited to platform 'windows8.0' const IID_IWebApplicationScriptEvents_Value = Guid.initString("7c3f6998-1567-4bba-b52b-48d32141d613"); pub const IID_IWebApplicationScriptEvents = &IID_IWebApplicationScriptEvents_Value; pub const IWebApplicationScriptEvents = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, BeforeScriptExecute: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IWebApplicationScriptEvents, htmlWindow: ?*IHTMLWindow2, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IWebApplicationScriptEvents, htmlWindow: ?*IHTMLWindow2, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, ScriptError: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IWebApplicationScriptEvents, htmlWindow: ?*IHTMLWindow2, scriptError: ?*IActiveScriptError, url: ?[*:0]const u16, errorHandled: BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IWebApplicationScriptEvents, htmlWindow: ?*IHTMLWindow2, scriptError: ?*IActiveScriptError, url: ?[*:0]const u16, errorHandled: BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWebApplicationScriptEvents_BeforeScriptExecute(self: *const T, htmlWindow: ?*IHTMLWindow2) HRESULT { return @as(*const IWebApplicationScriptEvents.VTable, @ptrCast(self.vtable)).BeforeScriptExecute(@as(*const IWebApplicationScriptEvents, @ptrCast(self)), htmlWindow); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWebApplicationScriptEvents_ScriptError(self: *const T, htmlWindow: ?*IHTMLWindow2, scriptError: ?*IActiveScriptError, url: ?[*:0]const u16, errorHandled: BOOL) HRESULT { return @as(*const IWebApplicationScriptEvents.VTable, @ptrCast(self.vtable)).ScriptError(@as(*const IWebApplicationScriptEvents, @ptrCast(self)), htmlWindow, scriptError, url, errorHandled); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows8.0' const IID_IWebApplicationNavigationEvents_Value = Guid.initString("c22615d2-d318-4da2-8422-1fcaf77b10e4"); pub const IID_IWebApplicationNavigationEvents = &IID_IWebApplicationNavigationEvents_Value; pub const IWebApplicationNavigationEvents = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, BeforeNavigate: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IWebApplicationNavigationEvents, htmlWindow: ?*IHTMLWindow2, url: ?[*:0]const u16, navigationFlags: u32, targetFrameName: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IWebApplicationNavigationEvents, htmlWindow: ?*IHTMLWindow2, url: ?[*:0]const u16, navigationFlags: u32, targetFrameName: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, NavigateComplete: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IWebApplicationNavigationEvents, htmlWindow: ?*IHTMLWindow2, url: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IWebApplicationNavigationEvents, htmlWindow: ?*IHTMLWindow2, url: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, NavigateError: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IWebApplicationNavigationEvents, htmlWindow: ?*IHTMLWindow2, url: ?[*:0]const u16, targetFrameName: ?[*:0]const u16, statusCode: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IWebApplicationNavigationEvents, htmlWindow: ?*IHTMLWindow2, url: ?[*:0]const u16, targetFrameName: ?[*:0]const u16, statusCode: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, DocumentComplete: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IWebApplicationNavigationEvents, htmlWindow: ?*IHTMLWindow2, url: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IWebApplicationNavigationEvents, htmlWindow: ?*IHTMLWindow2, url: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, DownloadBegin: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IWebApplicationNavigationEvents, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IWebApplicationNavigationEvents, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, DownloadComplete: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IWebApplicationNavigationEvents, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IWebApplicationNavigationEvents, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWebApplicationNavigationEvents_BeforeNavigate(self: *const T, htmlWindow: ?*IHTMLWindow2, url: ?[*:0]const u16, navigationFlags: u32, targetFrameName: ?[*:0]const u16) HRESULT { return @as(*const IWebApplicationNavigationEvents.VTable, @ptrCast(self.vtable)).BeforeNavigate(@as(*const IWebApplicationNavigationEvents, @ptrCast(self)), htmlWindow, url, navigationFlags, targetFrameName); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWebApplicationNavigationEvents_NavigateComplete(self: *const T, htmlWindow: ?*IHTMLWindow2, url: ?[*:0]const u16) HRESULT { return @as(*const IWebApplicationNavigationEvents.VTable, @ptrCast(self.vtable)).NavigateComplete(@as(*const IWebApplicationNavigationEvents, @ptrCast(self)), htmlWindow, url); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWebApplicationNavigationEvents_NavigateError(self: *const T, htmlWindow: ?*IHTMLWindow2, url: ?[*:0]const u16, targetFrameName: ?[*:0]const u16, statusCode: u32) HRESULT { return @as(*const IWebApplicationNavigationEvents.VTable, @ptrCast(self.vtable)).NavigateError(@as(*const IWebApplicationNavigationEvents, @ptrCast(self)), htmlWindow, url, targetFrameName, statusCode); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWebApplicationNavigationEvents_DocumentComplete(self: *const T, htmlWindow: ?*IHTMLWindow2, url: ?[*:0]const u16) HRESULT { return @as(*const IWebApplicationNavigationEvents.VTable, @ptrCast(self.vtable)).DocumentComplete(@as(*const IWebApplicationNavigationEvents, @ptrCast(self)), htmlWindow, url); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWebApplicationNavigationEvents_DownloadBegin(self: *const T) HRESULT { return @as(*const IWebApplicationNavigationEvents.VTable, @ptrCast(self.vtable)).DownloadBegin(@as(*const IWebApplicationNavigationEvents, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWebApplicationNavigationEvents_DownloadComplete(self: *const T) HRESULT { return @as(*const IWebApplicationNavigationEvents.VTable, @ptrCast(self.vtable)).DownloadComplete(@as(*const IWebApplicationNavigationEvents, @ptrCast(self))); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows8.0' const IID_IWebApplicationUIEvents_Value = Guid.initString("5b2b3f99-328c-41d5-a6f7-7483ed8e71dd"); pub const IID_IWebApplicationUIEvents = &IID_IWebApplicationUIEvents_Value; pub const IWebApplicationUIEvents = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, SecurityProblem: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IWebApplicationUIEvents, securityProblem: u32, result: ?*HRESULT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IWebApplicationUIEvents, securityProblem: u32, result: ?*HRESULT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWebApplicationUIEvents_SecurityProblem(self: *const T, securityProblem: u32, result: ?*HRESULT) HRESULT { return @as(*const IWebApplicationUIEvents.VTable, @ptrCast(self.vtable)).SecurityProblem(@as(*const IWebApplicationUIEvents, @ptrCast(self)), securityProblem, result); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows8.0' const IID_IWebApplicationUpdateEvents_Value = Guid.initString("3e59e6b7-c652-4daf-ad5e-16feb350cde3"); pub const IID_IWebApplicationUpdateEvents = &IID_IWebApplicationUpdateEvents_Value; pub const IWebApplicationUpdateEvents = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, OnPaint: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IWebApplicationUpdateEvents, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IWebApplicationUpdateEvents, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, OnCssChanged: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IWebApplicationUpdateEvents, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IWebApplicationUpdateEvents, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWebApplicationUpdateEvents_OnPaint(self: *const T) HRESULT { return @as(*const IWebApplicationUpdateEvents.VTable, @ptrCast(self.vtable)).OnPaint(@as(*const IWebApplicationUpdateEvents, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWebApplicationUpdateEvents_OnCssChanged(self: *const T) HRESULT { return @as(*const IWebApplicationUpdateEvents.VTable, @ptrCast(self.vtable)).OnCssChanged(@as(*const IWebApplicationUpdateEvents, @ptrCast(self))); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows8.0' const IID_IWebApplicationHost_Value = Guid.initString("cecbd2c3-a3a5-4749-9681-20e9161c6794"); pub const IID_IWebApplicationHost = &IID_IWebApplicationHost_Value; pub const IWebApplicationHost = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, // TODO: this function has a "SpecialName", should Zig do anything with this? get_HWND: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IWebApplicationHost, hwnd: ?*?HWND, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IWebApplicationHost, hwnd: ?*?HWND, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Document: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IWebApplicationHost, htmlDocument: ?*?*IHTMLDocument2, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IWebApplicationHost, htmlDocument: ?*?*IHTMLDocument2, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Refresh: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IWebApplicationHost, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IWebApplicationHost, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Advise: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IWebApplicationHost, interfaceId: ?*const Guid, callback: ?*IUnknown, cookie: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IWebApplicationHost, interfaceId: ?*const Guid, callback: ?*IUnknown, cookie: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Unadvise: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IWebApplicationHost, cookie: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IWebApplicationHost, cookie: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWebApplicationHost_get_HWND(self: *const T, hwnd: ?*?HWND) HRESULT { return @as(*const IWebApplicationHost.VTable, @ptrCast(self.vtable)).get_HWND(@as(*const IWebApplicationHost, @ptrCast(self)), hwnd); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWebApplicationHost_get_Document(self: *const T, htmlDocument: ?*?*IHTMLDocument2) HRESULT { return @as(*const IWebApplicationHost.VTable, @ptrCast(self.vtable)).get_Document(@as(*const IWebApplicationHost, @ptrCast(self)), htmlDocument); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWebApplicationHost_Refresh(self: *const T) HRESULT { return @as(*const IWebApplicationHost.VTable, @ptrCast(self.vtable)).Refresh(@as(*const IWebApplicationHost, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWebApplicationHost_Advise(self: *const T, interfaceId: ?*const Guid, callback: ?*IUnknown, cookie: ?*u32) HRESULT { return @as(*const IWebApplicationHost.VTable, @ptrCast(self.vtable)).Advise(@as(*const IWebApplicationHost, @ptrCast(self)), interfaceId, callback, cookie); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWebApplicationHost_Unadvise(self: *const T, cookie: u32) HRESULT { return @as(*const IWebApplicationHost.VTable, @ptrCast(self.vtable)).Unadvise(@as(*const IWebApplicationHost, @ptrCast(self)), cookie); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows8.0' const IID_IWebApplicationActivation_Value = Guid.initString("bcdcd0de-330e-481b-b843-4898a6a8ebac"); pub const IID_IWebApplicationActivation = &IID_IWebApplicationActivation_Value; pub const IWebApplicationActivation = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, CancelPendingActivation: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IWebApplicationActivation, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IWebApplicationActivation, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWebApplicationActivation_CancelPendingActivation(self: *const T) HRESULT { return @as(*const IWebApplicationActivation.VTable, @ptrCast(self.vtable)).CancelPendingActivation(@as(*const IWebApplicationActivation, @ptrCast(self))); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows8.0' const IID_IWebApplicationAuthoringMode_Value = Guid.initString("720aea93-1964-4db0-b005-29eb9e2b18a9"); pub const IID_IWebApplicationAuthoringMode = &IID_IWebApplicationAuthoringMode_Value; pub const IWebApplicationAuthoringMode = extern struct { pub const VTable = extern struct { base: IServiceProvider.VTable, // TODO: this function has a "SpecialName", should Zig do anything with this? get_AuthoringClientBinary: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IWebApplicationAuthoringMode, designModeDllPath: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IWebApplicationAuthoringMode, designModeDllPath: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IServiceProvider.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWebApplicationAuthoringMode_get_AuthoringClientBinary(self: *const T, designModeDllPath: ?*?BSTR) HRESULT { return @as(*const IWebApplicationAuthoringMode.VTable, @ptrCast(self.vtable)).get_AuthoringClientBinary(@as(*const IWebApplicationAuthoringMode, @ptrCast(self)), designModeDllPath); } }; } pub usingnamespace MethodMixin(@This()); }; pub const RegisterAuthoringClientFunctionType = switch (@import("builtin").zig_backend) { .stage1 => fn ( authoringModeObject: ?*IWebApplicationAuthoringMode, host: ?*IWebApplicationHost, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( authoringModeObject: ?*IWebApplicationAuthoringMode, host: ?*IWebApplicationHost, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }; pub const UnregisterAuthoringClientFunctionType = switch (@import("builtin").zig_backend) { .stage1 => fn ( host: ?*IWebApplicationHost, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( host: ?*IWebApplicationHost, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }; //-------------------------------------------------------------------------------- // Section: Functions (0) //-------------------------------------------------------------------------------- //-------------------------------------------------------------------------------- // Section: Unicode Aliases (0) //-------------------------------------------------------------------------------- const thismodule = @This(); pub usingnamespace switch (@import("../../../zig.zig").unicode_mode) { .ansi => struct {}, .wide => struct {}, .unspecified => if (@import("builtin").is_test) struct {} else struct {}, }; //-------------------------------------------------------------------------------- // Section: Imports (11) //-------------------------------------------------------------------------------- const Guid = @import("../../../zig.zig").Guid; const BOOL = @import("../../../foundation.zig").BOOL; const BSTR = @import("../../../foundation.zig").BSTR; const HRESULT = @import("../../../foundation.zig").HRESULT; const HWND = @import("../../../foundation.zig").HWND; const IActiveScriptError = @import("../../../system/diagnostics/debug.zig").IActiveScriptError; const IHTMLDocument2 = @import("../../../web/ms_html.zig").IHTMLDocument2; const IHTMLWindow2 = @import("../../../web/ms_html.zig").IHTMLWindow2; const IServiceProvider = @import("../../../system/com.zig").IServiceProvider; const IUnknown = @import("../../../system/com.zig").IUnknown; const PWSTR = @import("../../../foundation.zig").PWSTR; test { // The following '_ = <FuncPtrType>' lines are a workaround for https://github.com/ziglang/zig/issues/4476 if (@hasDecl(@This(), "RegisterAuthoringClientFunctionType")) { _ = RegisterAuthoringClientFunctionType; } if (@hasDecl(@This(), "UnregisterAuthoringClientFunctionType")) { _ = UnregisterAuthoringClientFunctionType; } @setEvalBranchQuota(comptime @import("std").meta.declarations(@This()).len * 3); // reference all the pub declarations if (!@import("builtin").is_test) return; inline for (comptime @import("std").meta.declarations(@This())) |decl| { if (decl.is_pub) { _ = @field(@This(), decl.name); } } }
0
repos/capy/vendor/zigwin32/win32/system
repos/capy/vendor/zigwin32/win32/system/win_rt/printing.zig
//! NOTE: this file is autogenerated, DO NOT MODIFY //-------------------------------------------------------------------------------- // Section: Constants (0) //-------------------------------------------------------------------------------- //-------------------------------------------------------------------------------- // Section: Types (7) //-------------------------------------------------------------------------------- const IID_IPrinting3DManagerInterop_Value = Guid.initString("9ca31010-1484-4587-b26b-dddf9f9caecd"); pub const IID_IPrinting3DManagerInterop = &IID_IPrinting3DManagerInterop_Value; pub const IPrinting3DManagerInterop = extern struct { pub const VTable = extern struct { base: IInspectable.VTable, GetForWindow: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IPrinting3DManagerInterop, appWindow: ?HWND, riid: ?*const Guid, printManager: ?*?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IPrinting3DManagerInterop, appWindow: ?HWND, riid: ?*const Guid, printManager: ?*?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, ShowPrintUIForWindowAsync: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IPrinting3DManagerInterop, appWindow: ?HWND, riid: ?*const Guid, asyncOperation: ?*?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IPrinting3DManagerInterop, appWindow: ?HWND, riid: ?*const Guid, asyncOperation: ?*?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IInspectable.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPrinting3DManagerInterop_GetForWindow(self: *const T, appWindow: ?HWND, riid: ?*const Guid, printManager: ?*?*anyopaque) HRESULT { return @as(*const IPrinting3DManagerInterop.VTable, @ptrCast(self.vtable)).GetForWindow(@as(*const IPrinting3DManagerInterop, @ptrCast(self)), appWindow, riid, printManager); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPrinting3DManagerInterop_ShowPrintUIForWindowAsync(self: *const T, appWindow: ?HWND, riid: ?*const Guid, asyncOperation: ?*?*anyopaque) HRESULT { return @as(*const IPrinting3DManagerInterop.VTable, @ptrCast(self.vtable)).ShowPrintUIForWindowAsync(@as(*const IPrinting3DManagerInterop, @ptrCast(self)), appWindow, riid, asyncOperation); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows8.0' const IID_IPrintManagerInterop_Value = Guid.initString("c5435a42-8d43-4e7b-a68a-ef311e392087"); pub const IID_IPrintManagerInterop = &IID_IPrintManagerInterop_Value; pub const IPrintManagerInterop = extern struct { pub const VTable = extern struct { base: IInspectable.VTable, GetForWindow: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IPrintManagerInterop, appWindow: ?HWND, riid: ?*const Guid, printManager: ?*?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IPrintManagerInterop, appWindow: ?HWND, riid: ?*const Guid, printManager: ?*?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, ShowPrintUIForWindowAsync: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IPrintManagerInterop, appWindow: ?HWND, riid: ?*const Guid, asyncOperation: ?*?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IPrintManagerInterop, appWindow: ?HWND, riid: ?*const Guid, asyncOperation: ?*?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IInspectable.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPrintManagerInterop_GetForWindow(self: *const T, appWindow: ?HWND, riid: ?*const Guid, printManager: ?*?*anyopaque) HRESULT { return @as(*const IPrintManagerInterop.VTable, @ptrCast(self.vtable)).GetForWindow(@as(*const IPrintManagerInterop, @ptrCast(self)), appWindow, riid, printManager); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPrintManagerInterop_ShowPrintUIForWindowAsync(self: *const T, appWindow: ?HWND, riid: ?*const Guid, asyncOperation: ?*?*anyopaque) HRESULT { return @as(*const IPrintManagerInterop.VTable, @ptrCast(self.vtable)).ShowPrintUIForWindowAsync(@as(*const IPrintManagerInterop, @ptrCast(self)), appWindow, riid, asyncOperation); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IPrintWorkflowXpsReceiver_Value = Guid.initString("04097374-77b8-47f6-8167-aae29d4cf84b"); pub const IID_IPrintWorkflowXpsReceiver = &IID_IPrintWorkflowXpsReceiver_Value; pub const IPrintWorkflowXpsReceiver = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, SetDocumentSequencePrintTicket: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IPrintWorkflowXpsReceiver, documentSequencePrintTicket: ?*IStream, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IPrintWorkflowXpsReceiver, documentSequencePrintTicket: ?*IStream, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetDocumentSequenceUri: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IPrintWorkflowXpsReceiver, documentSequenceUri: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IPrintWorkflowXpsReceiver, documentSequenceUri: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, AddDocumentData: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IPrintWorkflowXpsReceiver, documentId: u32, documentPrintTicket: ?*IStream, documentUri: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IPrintWorkflowXpsReceiver, documentId: u32, documentPrintTicket: ?*IStream, documentUri: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, AddPage: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IPrintWorkflowXpsReceiver, documentId: u32, pageId: u32, pageReference: ?*IXpsOMPageReference, pageUri: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IPrintWorkflowXpsReceiver, documentId: u32, pageId: u32, pageReference: ?*IXpsOMPageReference, pageUri: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Close: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IPrintWorkflowXpsReceiver, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IPrintWorkflowXpsReceiver, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPrintWorkflowXpsReceiver_SetDocumentSequencePrintTicket(self: *const T, documentSequencePrintTicket: ?*IStream) HRESULT { return @as(*const IPrintWorkflowXpsReceiver.VTable, @ptrCast(self.vtable)).SetDocumentSequencePrintTicket(@as(*const IPrintWorkflowXpsReceiver, @ptrCast(self)), documentSequencePrintTicket); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPrintWorkflowXpsReceiver_SetDocumentSequenceUri(self: *const T, documentSequenceUri: ?[*:0]const u16) HRESULT { return @as(*const IPrintWorkflowXpsReceiver.VTable, @ptrCast(self.vtable)).SetDocumentSequenceUri(@as(*const IPrintWorkflowXpsReceiver, @ptrCast(self)), documentSequenceUri); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPrintWorkflowXpsReceiver_AddDocumentData(self: *const T, documentId: u32, documentPrintTicket: ?*IStream, documentUri: ?[*:0]const u16) HRESULT { return @as(*const IPrintWorkflowXpsReceiver.VTable, @ptrCast(self.vtable)).AddDocumentData(@as(*const IPrintWorkflowXpsReceiver, @ptrCast(self)), documentId, documentPrintTicket, documentUri); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPrintWorkflowXpsReceiver_AddPage(self: *const T, documentId: u32, pageId: u32, pageReference: ?*IXpsOMPageReference, pageUri: ?[*:0]const u16) HRESULT { return @as(*const IPrintWorkflowXpsReceiver.VTable, @ptrCast(self.vtable)).AddPage(@as(*const IPrintWorkflowXpsReceiver, @ptrCast(self)), documentId, pageId, pageReference, pageUri); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPrintWorkflowXpsReceiver_Close(self: *const T) HRESULT { return @as(*const IPrintWorkflowXpsReceiver.VTable, @ptrCast(self.vtable)).Close(@as(*const IPrintWorkflowXpsReceiver, @ptrCast(self))); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IPrintWorkflowXpsReceiver2_Value = Guid.initString("023bcc0c-dfab-4a61-b074-490c6995580d"); pub const IID_IPrintWorkflowXpsReceiver2 = &IID_IPrintWorkflowXpsReceiver2_Value; pub const IPrintWorkflowXpsReceiver2 = extern struct { pub const VTable = extern struct { base: IPrintWorkflowXpsReceiver.VTable, Failed: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IPrintWorkflowXpsReceiver2, XpsError: HRESULT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IPrintWorkflowXpsReceiver2, XpsError: HRESULT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IPrintWorkflowXpsReceiver.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPrintWorkflowXpsReceiver2_Failed(self: *const T, XpsError: HRESULT) HRESULT { return @as(*const IPrintWorkflowXpsReceiver2.VTable, @ptrCast(self.vtable)).Failed(@as(*const IPrintWorkflowXpsReceiver2, @ptrCast(self)), XpsError); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IPrintWorkflowObjectModelSourceFileContentNative_Value = Guid.initString("68c9e477-993e-4052-8ac6-454eff58db9d"); pub const IID_IPrintWorkflowObjectModelSourceFileContentNative = &IID_IPrintWorkflowObjectModelSourceFileContentNative_Value; pub const IPrintWorkflowObjectModelSourceFileContentNative = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, StartXpsOMGeneration: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IPrintWorkflowObjectModelSourceFileContentNative, receiver: ?*IPrintWorkflowXpsReceiver, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IPrintWorkflowObjectModelSourceFileContentNative, receiver: ?*IPrintWorkflowXpsReceiver, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_ObjectFactory: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IPrintWorkflowObjectModelSourceFileContentNative, value: ?*?*IXpsOMObjectFactory1, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IPrintWorkflowObjectModelSourceFileContentNative, value: ?*?*IXpsOMObjectFactory1, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPrintWorkflowObjectModelSourceFileContentNative_StartXpsOMGeneration(self: *const T, receiver: ?*IPrintWorkflowXpsReceiver) HRESULT { return @as(*const IPrintWorkflowObjectModelSourceFileContentNative.VTable, @ptrCast(self.vtable)).StartXpsOMGeneration(@as(*const IPrintWorkflowObjectModelSourceFileContentNative, @ptrCast(self)), receiver); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPrintWorkflowObjectModelSourceFileContentNative_get_ObjectFactory(self: *const T, value: ?*?*IXpsOMObjectFactory1) HRESULT { return @as(*const IPrintWorkflowObjectModelSourceFileContentNative.VTable, @ptrCast(self.vtable)).get_ObjectFactory(@as(*const IPrintWorkflowObjectModelSourceFileContentNative, @ptrCast(self)), value); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IPrintWorkflowXpsObjectModelTargetPackageNative_Value = Guid.initString("7d96bc74-9b54-4ca1-ad3a-979c3d44ddac"); pub const IID_IPrintWorkflowXpsObjectModelTargetPackageNative = &IID_IPrintWorkflowXpsObjectModelTargetPackageNative_Value; pub const IPrintWorkflowXpsObjectModelTargetPackageNative = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, // TODO: this function has a "SpecialName", should Zig do anything with this? get_DocumentPackageTarget: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IPrintWorkflowXpsObjectModelTargetPackageNative, value: ?*?*IXpsDocumentPackageTarget, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IPrintWorkflowXpsObjectModelTargetPackageNative, value: ?*?*IXpsDocumentPackageTarget, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPrintWorkflowXpsObjectModelTargetPackageNative_get_DocumentPackageTarget(self: *const T, value: ?*?*IXpsDocumentPackageTarget) HRESULT { return @as(*const IPrintWorkflowXpsObjectModelTargetPackageNative.VTable, @ptrCast(self.vtable)).get_DocumentPackageTarget(@as(*const IPrintWorkflowXpsObjectModelTargetPackageNative, @ptrCast(self)), value); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IPrintWorkflowConfigurationNative_Value = Guid.initString("c056be0a-9ee2-450a-9823-964f0006f2bb"); pub const IID_IPrintWorkflowConfigurationNative = &IID_IPrintWorkflowConfigurationNative_Value; pub const IPrintWorkflowConfigurationNative = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, // TODO: this function has a "SpecialName", should Zig do anything with this? get_PrinterQueue: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IPrintWorkflowConfigurationNative, value: ?*?*IPrinterQueue, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IPrintWorkflowConfigurationNative, value: ?*?*IPrinterQueue, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_DriverProperties: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IPrintWorkflowConfigurationNative, value: ?*?*IPrinterPropertyBag, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IPrintWorkflowConfigurationNative, value: ?*?*IPrinterPropertyBag, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_UserProperties: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IPrintWorkflowConfigurationNative, value: ?*?*IPrinterPropertyBag, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IPrintWorkflowConfigurationNative, value: ?*?*IPrinterPropertyBag, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPrintWorkflowConfigurationNative_get_PrinterQueue(self: *const T, value: ?*?*IPrinterQueue) HRESULT { return @as(*const IPrintWorkflowConfigurationNative.VTable, @ptrCast(self.vtable)).get_PrinterQueue(@as(*const IPrintWorkflowConfigurationNative, @ptrCast(self)), value); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPrintWorkflowConfigurationNative_get_DriverProperties(self: *const T, value: ?*?*IPrinterPropertyBag) HRESULT { return @as(*const IPrintWorkflowConfigurationNative.VTable, @ptrCast(self.vtable)).get_DriverProperties(@as(*const IPrintWorkflowConfigurationNative, @ptrCast(self)), value); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPrintWorkflowConfigurationNative_get_UserProperties(self: *const T, value: ?*?*IPrinterPropertyBag) HRESULT { return @as(*const IPrintWorkflowConfigurationNative.VTable, @ptrCast(self.vtable)).get_UserProperties(@as(*const IPrintWorkflowConfigurationNative, @ptrCast(self)), value); } }; } pub usingnamespace MethodMixin(@This()); }; //-------------------------------------------------------------------------------- // Section: Functions (0) //-------------------------------------------------------------------------------- //-------------------------------------------------------------------------------- // Section: Unicode Aliases (0) //-------------------------------------------------------------------------------- const thismodule = @This(); pub usingnamespace switch (@import("../../zig.zig").unicode_mode) { .ansi => struct {}, .wide => struct {}, .unspecified => if (@import("builtin").is_test) struct {} else struct {}, }; //-------------------------------------------------------------------------------- // Section: Imports (12) //-------------------------------------------------------------------------------- const Guid = @import("../../zig.zig").Guid; const HRESULT = @import("../../foundation.zig").HRESULT; const HWND = @import("../../foundation.zig").HWND; const IInspectable = @import("../../system/win_rt.zig").IInspectable; const IPrinterPropertyBag = @import("../../graphics/printing.zig").IPrinterPropertyBag; const IPrinterQueue = @import("../../graphics/printing.zig").IPrinterQueue; const IStream = @import("../../system/com.zig").IStream; const IUnknown = @import("../../system/com.zig").IUnknown; const IXpsDocumentPackageTarget = @import("../../storage/xps.zig").IXpsDocumentPackageTarget; const IXpsOMObjectFactory1 = @import("../../storage/xps.zig").IXpsOMObjectFactory1; const IXpsOMPageReference = @import("../../storage/xps.zig").IXpsOMPageReference; const PWSTR = @import("../../foundation.zig").PWSTR; test { @setEvalBranchQuota(comptime @import("std").meta.declarations(@This()).len * 3); // reference all the pub declarations if (!@import("builtin").is_test) return; inline for (comptime @import("std").meta.declarations(@This())) |decl| { if (decl.is_pub) { _ = @field(@This(), decl.name); } } }
0
repos/capy/vendor/zigwin32/win32/system
repos/capy/vendor/zigwin32/win32/system/win_rt/shell.zig
//! NOTE: this file is autogenerated, DO NOT MODIFY //-------------------------------------------------------------------------------- // Section: Constants (0) //-------------------------------------------------------------------------------- //-------------------------------------------------------------------------------- // Section: Types (2) //-------------------------------------------------------------------------------- pub const CreateProcessMethod = enum(i32) { CreateProcess = 0, CreateProcessAsUser = 1, AicLaunchAdminProcess = 2, }; pub const CpCreateProcess = CreateProcessMethod.CreateProcess; pub const CpCreateProcessAsUser = CreateProcessMethod.CreateProcessAsUser; pub const CpAicLaunchAdminProcess = CreateProcessMethod.AicLaunchAdminProcess; const IID_IDDEInitializer_Value = Guid.initString("30dc931f-33fc-4ffd-a168-942258cf3ca4"); pub const IID_IDDEInitializer = &IID_IDDEInitializer_Value; pub const IDDEInitializer = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, Initialize: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDDEInitializer, fileExtensionOrProtocol: ?[*:0]const u16, method: CreateProcessMethod, currentDirectory: ?[*:0]const u16, execTarget: ?*IShellItem, site: ?*IUnknown, application: ?[*:0]const u16, targetFile: ?[*:0]const u16, arguments: ?[*:0]const u16, verb: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDDEInitializer, fileExtensionOrProtocol: ?[*:0]const u16, method: CreateProcessMethod, currentDirectory: ?[*:0]const u16, execTarget: ?*IShellItem, site: ?*IUnknown, application: ?[*:0]const u16, targetFile: ?[*:0]const u16, arguments: ?[*:0]const u16, verb: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDDEInitializer_Initialize(self: *const T, fileExtensionOrProtocol: ?[*:0]const u16, method: CreateProcessMethod, currentDirectory: ?[*:0]const u16, execTarget: ?*IShellItem, site: ?*IUnknown, application: ?[*:0]const u16, targetFile: ?[*:0]const u16, arguments: ?[*:0]const u16, verb: ?[*:0]const u16) HRESULT { return @as(*const IDDEInitializer.VTable, @ptrCast(self.vtable)).Initialize(@as(*const IDDEInitializer, @ptrCast(self)), fileExtensionOrProtocol, method, currentDirectory, execTarget, site, application, targetFile, arguments, verb); } }; } pub usingnamespace MethodMixin(@This()); }; //-------------------------------------------------------------------------------- // Section: Functions (0) //-------------------------------------------------------------------------------- //-------------------------------------------------------------------------------- // Section: Unicode Aliases (0) //-------------------------------------------------------------------------------- const thismodule = @This(); pub usingnamespace switch (@import("../../zig.zig").unicode_mode) { .ansi => struct {}, .wide => struct {}, .unspecified => if (@import("builtin").is_test) struct {} else struct {}, }; //-------------------------------------------------------------------------------- // Section: Imports (5) //-------------------------------------------------------------------------------- const Guid = @import("../../zig.zig").Guid; const HRESULT = @import("../../foundation.zig").HRESULT; const IShellItem = @import("../../ui/shell.zig").IShellItem; const IUnknown = @import("../../system/com.zig").IUnknown; const PWSTR = @import("../../foundation.zig").PWSTR; test { @setEvalBranchQuota(comptime @import("std").meta.declarations(@This()).len * 3); // reference all the pub declarations if (!@import("builtin").is_test) return; inline for (comptime @import("std").meta.declarations(@This())) |decl| { if (decl.is_pub) { _ = @field(@This(), decl.name); } } }
0
repos/capy/vendor/zigwin32/win32/system
repos/capy/vendor/zigwin32/win32/system/win_rt/ml.zig
//! NOTE: this file is autogenerated, DO NOT MODIFY //-------------------------------------------------------------------------------- // Section: Constants (0) //-------------------------------------------------------------------------------- //-------------------------------------------------------------------------------- // Section: Types (5) //-------------------------------------------------------------------------------- const IID_ILearningModelOperatorProviderNative_Value = Guid.initString("1adaa23a-eb67-41f3-aad8-5d984e9bacd4"); pub const IID_ILearningModelOperatorProviderNative = &IID_ILearningModelOperatorProviderNative_Value; pub const ILearningModelOperatorProviderNative = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, GetRegistry: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ILearningModelOperatorProviderNative, ppOperatorRegistry: ?*?*IMLOperatorRegistry, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ILearningModelOperatorProviderNative, ppOperatorRegistry: ?*?*IMLOperatorRegistry, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ILearningModelOperatorProviderNative_GetRegistry(self: *const T, ppOperatorRegistry: ?*?*IMLOperatorRegistry) HRESULT { return @as(*const ILearningModelOperatorProviderNative.VTable, @ptrCast(self.vtable)).GetRegistry(@as(*const ILearningModelOperatorProviderNative, @ptrCast(self)), ppOperatorRegistry); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_ITensorNative_Value = Guid.initString("52f547ef-5b03-49b5-82d6-565f1ee0dd49"); pub const IID_ITensorNative = &IID_ITensorNative_Value; pub const ITensorNative = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, GetBuffer: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ITensorNative, value: [*]?*u8, capacity: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ITensorNative, value: [*]?*u8, capacity: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetD3D12Resource: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ITensorNative, result: ?*?*ID3D12Resource, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ITensorNative, result: ?*?*ID3D12Resource, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITensorNative_GetBuffer(self: *const T, value: [*]?*u8, capacity: ?*u32) HRESULT { return @as(*const ITensorNative.VTable, @ptrCast(self.vtable)).GetBuffer(@as(*const ITensorNative, @ptrCast(self)), value, capacity); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITensorNative_GetD3D12Resource(self: *const T, result: ?*?*ID3D12Resource) HRESULT { return @as(*const ITensorNative.VTable, @ptrCast(self.vtable)).GetD3D12Resource(@as(*const ITensorNative, @ptrCast(self)), result); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_ITensorStaticsNative_Value = Guid.initString("39d055a4-66f6-4ebc-95d9-7a29ebe7690a"); pub const IID_ITensorStaticsNative = &IID_ITensorStaticsNative_Value; pub const ITensorStaticsNative = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, CreateFromD3D12Resource: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ITensorStaticsNative, value: ?*ID3D12Resource, shape: ?*i64, shapeCount: i32, result: ?*?*IUnknown, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ITensorStaticsNative, value: ?*ID3D12Resource, shape: ?*i64, shapeCount: i32, result: ?*?*IUnknown, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITensorStaticsNative_CreateFromD3D12Resource(self: *const T, value: ?*ID3D12Resource, shape: ?*i64, shapeCount: i32, result: ?*?*IUnknown) HRESULT { return @as(*const ITensorStaticsNative.VTable, @ptrCast(self.vtable)).CreateFromD3D12Resource(@as(*const ITensorStaticsNative, @ptrCast(self)), value, shape, shapeCount, result); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_ILearningModelDeviceFactoryNative_Value = Guid.initString("1e9b31a1-662e-4ae0-af67-f63bb337e634"); pub const IID_ILearningModelDeviceFactoryNative = &IID_ILearningModelDeviceFactoryNative_Value; pub const ILearningModelDeviceFactoryNative = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, CreateFromD3D12CommandQueue: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ILearningModelDeviceFactoryNative, value: ?*ID3D12CommandQueue, result: ?*?*IUnknown, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ILearningModelDeviceFactoryNative, value: ?*ID3D12CommandQueue, result: ?*?*IUnknown, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ILearningModelDeviceFactoryNative_CreateFromD3D12CommandQueue(self: *const T, value: ?*ID3D12CommandQueue, result: ?*?*IUnknown) HRESULT { return @as(*const ILearningModelDeviceFactoryNative.VTable, @ptrCast(self.vtable)).CreateFromD3D12CommandQueue(@as(*const ILearningModelDeviceFactoryNative, @ptrCast(self)), value, result); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_ILearningModelSessionOptionsNative_Value = Guid.initString("c71e953f-37b4-4564-8658-d8396866db0d"); pub const IID_ILearningModelSessionOptionsNative = &IID_ILearningModelSessionOptionsNative_Value; pub const ILearningModelSessionOptionsNative = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, SetIntraOpNumThreadsOverride: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ILearningModelSessionOptionsNative, intraOpNumThreads: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ILearningModelSessionOptionsNative, intraOpNumThreads: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ILearningModelSessionOptionsNative_SetIntraOpNumThreadsOverride(self: *const T, intraOpNumThreads: u32) HRESULT { return @as(*const ILearningModelSessionOptionsNative.VTable, @ptrCast(self.vtable)).SetIntraOpNumThreadsOverride(@as(*const ILearningModelSessionOptionsNative, @ptrCast(self)), intraOpNumThreads); } }; } pub usingnamespace MethodMixin(@This()); }; //-------------------------------------------------------------------------------- // Section: Functions (0) //-------------------------------------------------------------------------------- //-------------------------------------------------------------------------------- // Section: Unicode Aliases (0) //-------------------------------------------------------------------------------- const thismodule = @This(); pub usingnamespace switch (@import("../../zig.zig").unicode_mode) { .ansi => struct {}, .wide => struct {}, .unspecified => if (@import("builtin").is_test) struct {} else struct {}, }; //-------------------------------------------------------------------------------- // Section: Imports (6) //-------------------------------------------------------------------------------- const Guid = @import("../../zig.zig").Guid; const HRESULT = @import("../../foundation.zig").HRESULT; const ID3D12CommandQueue = @import("../../graphics/direct3d12.zig").ID3D12CommandQueue; const ID3D12Resource = @import("../../graphics/direct3d12.zig").ID3D12Resource; const IMLOperatorRegistry = @import("../../ai/machine_learning/win_ml.zig").IMLOperatorRegistry; const IUnknown = @import("../../system/com.zig").IUnknown; test { @setEvalBranchQuota(comptime @import("std").meta.declarations(@This()).len * 3); // reference all the pub declarations if (!@import("builtin").is_test) return; inline for (comptime @import("std").meta.declarations(@This())) |decl| { if (decl.is_pub) { _ = @field(@This(), decl.name); } } }
0
repos/capy/vendor/zigwin32/win32/system
repos/capy/vendor/zigwin32/win32/system/win_rt/display.zig
//! NOTE: this file is autogenerated, DO NOT MODIFY //-------------------------------------------------------------------------------- // Section: Constants (0) //-------------------------------------------------------------------------------- //-------------------------------------------------------------------------------- // Section: Types (2) //-------------------------------------------------------------------------------- const IID_IDisplayDeviceInterop_Value = Guid.initString("64338358-366a-471b-bd56-dd8ef48e439b"); pub const IID_IDisplayDeviceInterop = &IID_IDisplayDeviceInterop_Value; pub const IDisplayDeviceInterop = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, CreateSharedHandle: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDisplayDeviceInterop, pObject: ?*IInspectable, pSecurityAttributes: ?*const SECURITY_ATTRIBUTES, Access: u32, Name: ?HSTRING, pHandle: ?*?HANDLE, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDisplayDeviceInterop, pObject: ?*IInspectable, pSecurityAttributes: ?*const SECURITY_ATTRIBUTES, Access: u32, Name: ?HSTRING, pHandle: ?*?HANDLE, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, OpenSharedHandle: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDisplayDeviceInterop, NTHandle: ?HANDLE, riid: Guid, ppvObj: ?*?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDisplayDeviceInterop, NTHandle: ?HANDLE, riid: Guid, ppvObj: ?*?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDisplayDeviceInterop_CreateSharedHandle(self: *const T, pObject: ?*IInspectable, pSecurityAttributes: ?*const SECURITY_ATTRIBUTES, Access: u32, Name: ?HSTRING, pHandle: ?*?HANDLE) HRESULT { return @as(*const IDisplayDeviceInterop.VTable, @ptrCast(self.vtable)).CreateSharedHandle(@as(*const IDisplayDeviceInterop, @ptrCast(self)), pObject, pSecurityAttributes, Access, Name, pHandle); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDisplayDeviceInterop_OpenSharedHandle(self: *const T, NTHandle: ?HANDLE, riid: Guid, ppvObj: ?*?*anyopaque) HRESULT { return @as(*const IDisplayDeviceInterop.VTable, @ptrCast(self.vtable)).OpenSharedHandle(@as(*const IDisplayDeviceInterop, @ptrCast(self)), NTHandle, riid, ppvObj); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IDisplayPathInterop_Value = Guid.initString("a6ba4205-e59e-4e71-b25b-4e436d21ee3d"); pub const IID_IDisplayPathInterop = &IID_IDisplayPathInterop_Value; pub const IDisplayPathInterop = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, CreateSourcePresentationHandle: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDisplayPathInterop, pValue: ?*?HANDLE, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDisplayPathInterop, pValue: ?*?HANDLE, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetSourceId: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDisplayPathInterop, pSourceId: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDisplayPathInterop, pSourceId: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDisplayPathInterop_CreateSourcePresentationHandle(self: *const T, pValue: ?*?HANDLE) HRESULT { return @as(*const IDisplayPathInterop.VTable, @ptrCast(self.vtable)).CreateSourcePresentationHandle(@as(*const IDisplayPathInterop, @ptrCast(self)), pValue); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDisplayPathInterop_GetSourceId(self: *const T, pSourceId: ?*u32) HRESULT { return @as(*const IDisplayPathInterop.VTable, @ptrCast(self.vtable)).GetSourceId(@as(*const IDisplayPathInterop, @ptrCast(self)), pSourceId); } }; } pub usingnamespace MethodMixin(@This()); }; //-------------------------------------------------------------------------------- // Section: Functions (0) //-------------------------------------------------------------------------------- //-------------------------------------------------------------------------------- // Section: Unicode Aliases (0) //-------------------------------------------------------------------------------- const thismodule = @This(); pub usingnamespace switch (@import("../../zig.zig").unicode_mode) { .ansi => struct {}, .wide => struct {}, .unspecified => if (@import("builtin").is_test) struct {} else struct {}, }; //-------------------------------------------------------------------------------- // Section: Imports (7) //-------------------------------------------------------------------------------- const Guid = @import("../../zig.zig").Guid; const HANDLE = @import("../../foundation.zig").HANDLE; const HRESULT = @import("../../foundation.zig").HRESULT; const HSTRING = @import("../../system/win_rt.zig").HSTRING; const IInspectable = @import("../../system/win_rt.zig").IInspectable; const IUnknown = @import("../../system/com.zig").IUnknown; const SECURITY_ATTRIBUTES = @import("../../security.zig").SECURITY_ATTRIBUTES; test { @setEvalBranchQuota(comptime @import("std").meta.declarations(@This()).len * 3); // reference all the pub declarations if (!@import("builtin").is_test) return; inline for (comptime @import("std").meta.declarations(@This())) |decl| { if (decl.is_pub) { _ = @field(@This(), decl.name); } } }
0
repos/capy/vendor/zigwin32/win32/system
repos/capy/vendor/zigwin32/win32/system/win_rt/direct3d11.zig
//! NOTE: this file is autogenerated, DO NOT MODIFY //-------------------------------------------------------------------------------- // Section: Constants (0) //-------------------------------------------------------------------------------- //-------------------------------------------------------------------------------- // Section: Types (1) //-------------------------------------------------------------------------------- const IID_IDirect3DDxgiInterfaceAccess_Value = Guid.initString("a9b3d012-3df2-4ee3-b8d1-8695f457d3c1"); pub const IID_IDirect3DDxgiInterfaceAccess = &IID_IDirect3DDxgiInterfaceAccess_Value; pub const IDirect3DDxgiInterfaceAccess = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, GetInterface: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDirect3DDxgiInterfaceAccess, iid: ?*const Guid, p: ?*?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDirect3DDxgiInterfaceAccess, iid: ?*const Guid, p: ?*?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDirect3DDxgiInterfaceAccess_GetInterface(self: *const T, iid: ?*const Guid, p: ?*?*anyopaque) HRESULT { return @as(*const IDirect3DDxgiInterfaceAccess.VTable, @ptrCast(self.vtable)).GetInterface(@as(*const IDirect3DDxgiInterfaceAccess, @ptrCast(self)), iid, p); } }; } pub usingnamespace MethodMixin(@This()); }; //-------------------------------------------------------------------------------- // Section: Functions (2) //-------------------------------------------------------------------------------- pub extern "d3d11" fn CreateDirect3D11DeviceFromDXGIDevice( dxgiDevice: ?*IDXGIDevice, graphicsDevice: ?*?*IInspectable, ) callconv(@import("std").os.windows.WINAPI) HRESULT; pub extern "d3d11" fn CreateDirect3D11SurfaceFromDXGISurface( dgxiSurface: ?*IDXGISurface, graphicsSurface: ?*?*IInspectable, ) callconv(@import("std").os.windows.WINAPI) HRESULT; //-------------------------------------------------------------------------------- // Section: Unicode Aliases (0) //-------------------------------------------------------------------------------- const thismodule = @This(); pub usingnamespace switch (@import("../../zig.zig").unicode_mode) { .ansi => struct {}, .wide => struct {}, .unspecified => if (@import("builtin").is_test) struct {} else struct {}, }; //-------------------------------------------------------------------------------- // Section: Imports (6) //-------------------------------------------------------------------------------- const Guid = @import("../../zig.zig").Guid; const HRESULT = @import("../../foundation.zig").HRESULT; const IDXGIDevice = @import("../../graphics/dxgi.zig").IDXGIDevice; const IDXGISurface = @import("../../graphics/dxgi.zig").IDXGISurface; const IInspectable = @import("../../system/win_rt.zig").IInspectable; const IUnknown = @import("../../system/com.zig").IUnknown; test { @setEvalBranchQuota(comptime @import("std").meta.declarations(@This()).len * 3); // reference all the pub declarations if (!@import("builtin").is_test) return; inline for (comptime @import("std").meta.declarations(@This())) |decl| { if (decl.is_pub) { _ = @field(@This(), decl.name); } } }
0
repos/capy/vendor/zigwin32/win32/system
repos/capy/vendor/zigwin32/win32/system/win_rt/core_input_view.zig
//! NOTE: this file is autogenerated, DO NOT MODIFY //-------------------------------------------------------------------------------- // Section: Constants (0) //-------------------------------------------------------------------------------- //-------------------------------------------------------------------------------- // Section: Types (1) //-------------------------------------------------------------------------------- const IID_ICoreFrameworkInputViewInterop_Value = Guid.initString("0e3da342-b11c-484b-9c1c-be0d61c2f6c5"); pub const IID_ICoreFrameworkInputViewInterop = &IID_ICoreFrameworkInputViewInterop_Value; pub const ICoreFrameworkInputViewInterop = extern struct { pub const VTable = extern struct { base: IInspectable.VTable, GetForWindow: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ICoreFrameworkInputViewInterop, appWindow: ?HWND, riid: ?*const Guid, coreFrameworkInputView: ?*?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ICoreFrameworkInputViewInterop, appWindow: ?HWND, riid: ?*const Guid, coreFrameworkInputView: ?*?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IInspectable.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ICoreFrameworkInputViewInterop_GetForWindow(self: *const T, appWindow: ?HWND, riid: ?*const Guid, coreFrameworkInputView: ?*?*anyopaque) HRESULT { return @as(*const ICoreFrameworkInputViewInterop.VTable, @ptrCast(self.vtable)).GetForWindow(@as(*const ICoreFrameworkInputViewInterop, @ptrCast(self)), appWindow, riid, coreFrameworkInputView); } }; } pub usingnamespace MethodMixin(@This()); }; //-------------------------------------------------------------------------------- // Section: Functions (0) //-------------------------------------------------------------------------------- //-------------------------------------------------------------------------------- // Section: Unicode Aliases (0) //-------------------------------------------------------------------------------- const thismodule = @This(); pub usingnamespace switch (@import("../../zig.zig").unicode_mode) { .ansi => struct {}, .wide => struct {}, .unspecified => if (@import("builtin").is_test) struct {} else struct {}, }; //-------------------------------------------------------------------------------- // Section: Imports (4) //-------------------------------------------------------------------------------- const Guid = @import("../../zig.zig").Guid; const HRESULT = @import("../../foundation.zig").HRESULT; const HWND = @import("../../foundation.zig").HWND; const IInspectable = @import("../../system/win_rt.zig").IInspectable; test { @setEvalBranchQuota(comptime @import("std").meta.declarations(@This()).len * 3); // reference all the pub declarations if (!@import("builtin").is_test) return; inline for (comptime @import("std").meta.declarations(@This())) |decl| { if (decl.is_pub) { _ = @field(@This(), decl.name); } } }
0
repos/capy/vendor/zigwin32/win32/system
repos/capy/vendor/zigwin32/win32/system/win_rt/storage.zig
//! NOTE: this file is autogenerated, DO NOT MODIFY //-------------------------------------------------------------------------------- // Section: Constants (0) //-------------------------------------------------------------------------------- //-------------------------------------------------------------------------------- // Section: Types (10) //-------------------------------------------------------------------------------- // TODO: this type is limited to platform 'windows10.0.10240' const IID_IRandomAccessStreamFileAccessMode_Value = Guid.initString("332e5848-2e15-458e-85c4-c911c0c3d6f4"); pub const IID_IRandomAccessStreamFileAccessMode = &IID_IRandomAccessStreamFileAccessMode_Value; pub const IRandomAccessStreamFileAccessMode = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, GetMode: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IRandomAccessStreamFileAccessMode, fileAccessMode: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IRandomAccessStreamFileAccessMode, fileAccessMode: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRandomAccessStreamFileAccessMode_GetMode(self: *const T, fileAccessMode: ?*u32) HRESULT { return @as(*const IRandomAccessStreamFileAccessMode.VTable, @ptrCast(self.vtable)).GetMode(@as(*const IRandomAccessStreamFileAccessMode, @ptrCast(self)), fileAccessMode); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows10.0.10240' const IID_IUnbufferedFileHandleOplockCallback_Value = Guid.initString("d1019a0e-6243-4329-8497-2e75894d7710"); pub const IID_IUnbufferedFileHandleOplockCallback = &IID_IUnbufferedFileHandleOplockCallback_Value; pub const IUnbufferedFileHandleOplockCallback = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, OnBrokenCallback: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IUnbufferedFileHandleOplockCallback, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IUnbufferedFileHandleOplockCallback, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IUnbufferedFileHandleOplockCallback_OnBrokenCallback(self: *const T) HRESULT { return @as(*const IUnbufferedFileHandleOplockCallback.VTable, @ptrCast(self.vtable)).OnBrokenCallback(@as(*const IUnbufferedFileHandleOplockCallback, @ptrCast(self))); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows10.0.10240' const IID_IUnbufferedFileHandleProvider_Value = Guid.initString("a65c9109-42ab-4b94-a7b1-dd2e4e68515e"); pub const IID_IUnbufferedFileHandleProvider = &IID_IUnbufferedFileHandleProvider_Value; pub const IUnbufferedFileHandleProvider = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, OpenUnbufferedFileHandle: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IUnbufferedFileHandleProvider, oplockBreakCallback: ?*IUnbufferedFileHandleOplockCallback, fileHandle: ?*usize, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IUnbufferedFileHandleProvider, oplockBreakCallback: ?*IUnbufferedFileHandleOplockCallback, fileHandle: ?*usize, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, CloseUnbufferedFileHandle: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IUnbufferedFileHandleProvider, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IUnbufferedFileHandleProvider, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IUnbufferedFileHandleProvider_OpenUnbufferedFileHandle(self: *const T, oplockBreakCallback: ?*IUnbufferedFileHandleOplockCallback, fileHandle: ?*usize) HRESULT { return @as(*const IUnbufferedFileHandleProvider.VTable, @ptrCast(self.vtable)).OpenUnbufferedFileHandle(@as(*const IUnbufferedFileHandleProvider, @ptrCast(self)), oplockBreakCallback, fileHandle); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IUnbufferedFileHandleProvider_CloseUnbufferedFileHandle(self: *const T) HRESULT { return @as(*const IUnbufferedFileHandleProvider.VTable, @ptrCast(self.vtable)).CloseUnbufferedFileHandle(@as(*const IUnbufferedFileHandleProvider, @ptrCast(self))); } }; } pub usingnamespace MethodMixin(@This()); }; pub const HANDLE_OPTIONS = enum(u32) { NONE = 0, OPEN_REQUIRING_OPLOCK = 262144, DELETE_ON_CLOSE = 67108864, SEQUENTIAL_SCAN = 134217728, RANDOM_ACCESS = 268435456, NO_BUFFERING = 536870912, OVERLAPPED = 1073741824, WRITE_THROUGH = 2147483648, _, pub fn initFlags(o: struct { NONE: u1 = 0, OPEN_REQUIRING_OPLOCK: u1 = 0, DELETE_ON_CLOSE: u1 = 0, SEQUENTIAL_SCAN: u1 = 0, RANDOM_ACCESS: u1 = 0, NO_BUFFERING: u1 = 0, OVERLAPPED: u1 = 0, WRITE_THROUGH: u1 = 0, }) HANDLE_OPTIONS { return @as(HANDLE_OPTIONS, @enumFromInt((if (o.NONE == 1) @intFromEnum(HANDLE_OPTIONS.NONE) else 0) | (if (o.OPEN_REQUIRING_OPLOCK == 1) @intFromEnum(HANDLE_OPTIONS.OPEN_REQUIRING_OPLOCK) else 0) | (if (o.DELETE_ON_CLOSE == 1) @intFromEnum(HANDLE_OPTIONS.DELETE_ON_CLOSE) else 0) | (if (o.SEQUENTIAL_SCAN == 1) @intFromEnum(HANDLE_OPTIONS.SEQUENTIAL_SCAN) else 0) | (if (o.RANDOM_ACCESS == 1) @intFromEnum(HANDLE_OPTIONS.RANDOM_ACCESS) else 0) | (if (o.NO_BUFFERING == 1) @intFromEnum(HANDLE_OPTIONS.NO_BUFFERING) else 0) | (if (o.OVERLAPPED == 1) @intFromEnum(HANDLE_OPTIONS.OVERLAPPED) else 0) | (if (o.WRITE_THROUGH == 1) @intFromEnum(HANDLE_OPTIONS.WRITE_THROUGH) else 0))); } }; pub const HO_NONE = HANDLE_OPTIONS.NONE; pub const HO_OPEN_REQUIRING_OPLOCK = HANDLE_OPTIONS.OPEN_REQUIRING_OPLOCK; pub const HO_DELETE_ON_CLOSE = HANDLE_OPTIONS.DELETE_ON_CLOSE; pub const HO_SEQUENTIAL_SCAN = HANDLE_OPTIONS.SEQUENTIAL_SCAN; pub const HO_RANDOM_ACCESS = HANDLE_OPTIONS.RANDOM_ACCESS; pub const HO_NO_BUFFERING = HANDLE_OPTIONS.NO_BUFFERING; pub const HO_OVERLAPPED = HANDLE_OPTIONS.OVERLAPPED; pub const HO_WRITE_THROUGH = HANDLE_OPTIONS.WRITE_THROUGH; pub const HANDLE_ACCESS_OPTIONS = enum(u32) { NONE = 0, READ_ATTRIBUTES = 128, READ = 1179785, WRITE = 1179926, DELETE = 65536, _, pub fn initFlags(o: struct { NONE: u1 = 0, READ_ATTRIBUTES: u1 = 0, READ: u1 = 0, WRITE: u1 = 0, DELETE: u1 = 0, }) HANDLE_ACCESS_OPTIONS { return @as(HANDLE_ACCESS_OPTIONS, @enumFromInt((if (o.NONE == 1) @intFromEnum(HANDLE_ACCESS_OPTIONS.NONE) else 0) | (if (o.READ_ATTRIBUTES == 1) @intFromEnum(HANDLE_ACCESS_OPTIONS.READ_ATTRIBUTES) else 0) | (if (o.READ == 1) @intFromEnum(HANDLE_ACCESS_OPTIONS.READ) else 0) | (if (o.WRITE == 1) @intFromEnum(HANDLE_ACCESS_OPTIONS.WRITE) else 0) | (if (o.DELETE == 1) @intFromEnum(HANDLE_ACCESS_OPTIONS.DELETE) else 0))); } }; pub const HAO_NONE = HANDLE_ACCESS_OPTIONS.NONE; pub const HAO_READ_ATTRIBUTES = HANDLE_ACCESS_OPTIONS.READ_ATTRIBUTES; pub const HAO_READ = HANDLE_ACCESS_OPTIONS.READ; pub const HAO_WRITE = HANDLE_ACCESS_OPTIONS.WRITE; pub const HAO_DELETE = HANDLE_ACCESS_OPTIONS.DELETE; pub const HANDLE_SHARING_OPTIONS = enum(u32) { NONE = 0, READ = 1, WRITE = 2, DELETE = 4, _, pub fn initFlags(o: struct { NONE: u1 = 0, READ: u1 = 0, WRITE: u1 = 0, DELETE: u1 = 0, }) HANDLE_SHARING_OPTIONS { return @as(HANDLE_SHARING_OPTIONS, @enumFromInt((if (o.NONE == 1) @intFromEnum(HANDLE_SHARING_OPTIONS.NONE) else 0) | (if (o.READ == 1) @intFromEnum(HANDLE_SHARING_OPTIONS.READ) else 0) | (if (o.WRITE == 1) @intFromEnum(HANDLE_SHARING_OPTIONS.WRITE) else 0) | (if (o.DELETE == 1) @intFromEnum(HANDLE_SHARING_OPTIONS.DELETE) else 0))); } }; pub const HSO_SHARE_NONE = HANDLE_SHARING_OPTIONS.NONE; pub const HSO_SHARE_READ = HANDLE_SHARING_OPTIONS.READ; pub const HSO_SHARE_WRITE = HANDLE_SHARING_OPTIONS.WRITE; pub const HSO_SHARE_DELETE = HANDLE_SHARING_OPTIONS.DELETE; pub const HANDLE_CREATION_OPTIONS = enum(i32) { CREATE_NEW = 1, CREATE_ALWAYS = 2, OPEN_EXISTING = 3, OPEN_ALWAYS = 4, TRUNCATE_EXISTING = 5, }; pub const HCO_CREATE_NEW = HANDLE_CREATION_OPTIONS.CREATE_NEW; pub const HCO_CREATE_ALWAYS = HANDLE_CREATION_OPTIONS.CREATE_ALWAYS; pub const HCO_OPEN_EXISTING = HANDLE_CREATION_OPTIONS.OPEN_EXISTING; pub const HCO_OPEN_ALWAYS = HANDLE_CREATION_OPTIONS.OPEN_ALWAYS; pub const HCO_TRUNCATE_EXISTING = HANDLE_CREATION_OPTIONS.TRUNCATE_EXISTING; // TODO: this type is limited to platform 'windows10.0.10240' const IID_IOplockBreakingHandler_Value = Guid.initString("826abe3d-3acd-47d3-84f2-88aaedcf6304"); pub const IID_IOplockBreakingHandler = &IID_IOplockBreakingHandler_Value; pub const IOplockBreakingHandler = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, OplockBreaking: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IOplockBreakingHandler, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IOplockBreakingHandler, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IOplockBreakingHandler_OplockBreaking(self: *const T) HRESULT { return @as(*const IOplockBreakingHandler.VTable, @ptrCast(self.vtable)).OplockBreaking(@as(*const IOplockBreakingHandler, @ptrCast(self))); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows10.0.10240' const IID_IStorageItemHandleAccess_Value = Guid.initString("5ca296b2-2c25-4d22-b785-b885c8201e6a"); pub const IID_IStorageItemHandleAccess = &IID_IStorageItemHandleAccess_Value; pub const IStorageItemHandleAccess = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, Create: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IStorageItemHandleAccess, accessOptions: HANDLE_ACCESS_OPTIONS, sharingOptions: HANDLE_SHARING_OPTIONS, options: HANDLE_OPTIONS, oplockBreakingHandler: ?*IOplockBreakingHandler, interopHandle: ?*?HANDLE, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IStorageItemHandleAccess, accessOptions: HANDLE_ACCESS_OPTIONS, sharingOptions: HANDLE_SHARING_OPTIONS, options: HANDLE_OPTIONS, oplockBreakingHandler: ?*IOplockBreakingHandler, interopHandle: ?*?HANDLE, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IStorageItemHandleAccess_Create(self: *const T, accessOptions: HANDLE_ACCESS_OPTIONS, sharingOptions: HANDLE_SHARING_OPTIONS, options: HANDLE_OPTIONS, oplockBreakingHandler: ?*IOplockBreakingHandler, interopHandle: ?*?HANDLE) HRESULT { return @as(*const IStorageItemHandleAccess.VTable, @ptrCast(self.vtable)).Create(@as(*const IStorageItemHandleAccess, @ptrCast(self)), accessOptions, sharingOptions, options, oplockBreakingHandler, interopHandle); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows10.0.10240' const IID_IStorageFolderHandleAccess_Value = Guid.initString("df19938f-5462-48a0-be65-d2a3271a08d6"); pub const IID_IStorageFolderHandleAccess = &IID_IStorageFolderHandleAccess_Value; pub const IStorageFolderHandleAccess = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, Create: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IStorageFolderHandleAccess, fileName: ?[*:0]const u16, creationOptions: HANDLE_CREATION_OPTIONS, accessOptions: HANDLE_ACCESS_OPTIONS, sharingOptions: HANDLE_SHARING_OPTIONS, options: HANDLE_OPTIONS, oplockBreakingHandler: ?*IOplockBreakingHandler, interopHandle: ?*?HANDLE, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IStorageFolderHandleAccess, fileName: ?[*:0]const u16, creationOptions: HANDLE_CREATION_OPTIONS, accessOptions: HANDLE_ACCESS_OPTIONS, sharingOptions: HANDLE_SHARING_OPTIONS, options: HANDLE_OPTIONS, oplockBreakingHandler: ?*IOplockBreakingHandler, interopHandle: ?*?HANDLE, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IStorageFolderHandleAccess_Create(self: *const T, fileName: ?[*:0]const u16, creationOptions: HANDLE_CREATION_OPTIONS, accessOptions: HANDLE_ACCESS_OPTIONS, sharingOptions: HANDLE_SHARING_OPTIONS, options: HANDLE_OPTIONS, oplockBreakingHandler: ?*IOplockBreakingHandler, interopHandle: ?*?HANDLE) HRESULT { return @as(*const IStorageFolderHandleAccess.VTable, @ptrCast(self.vtable)).Create(@as(*const IStorageFolderHandleAccess, @ptrCast(self)), fileName, creationOptions, accessOptions, sharingOptions, options, oplockBreakingHandler, interopHandle); } }; } pub usingnamespace MethodMixin(@This()); }; //-------------------------------------------------------------------------------- // Section: Functions (0) //-------------------------------------------------------------------------------- //-------------------------------------------------------------------------------- // Section: Unicode Aliases (0) //-------------------------------------------------------------------------------- const thismodule = @This(); pub usingnamespace switch (@import("../../zig.zig").unicode_mode) { .ansi => struct {}, .wide => struct {}, .unspecified => if (@import("builtin").is_test) struct {} else struct {}, }; //-------------------------------------------------------------------------------- // Section: Imports (5) //-------------------------------------------------------------------------------- const Guid = @import("../../zig.zig").Guid; const HANDLE = @import("../../foundation.zig").HANDLE; const HRESULT = @import("../../foundation.zig").HRESULT; const IUnknown = @import("../../system/com.zig").IUnknown; const PWSTR = @import("../../foundation.zig").PWSTR; test { @setEvalBranchQuota(comptime @import("std").meta.declarations(@This()).len * 3); // reference all the pub declarations if (!@import("builtin").is_test) return; inline for (comptime @import("std").meta.declarations(@This())) |decl| { if (decl.is_pub) { _ = @field(@This(), decl.name); } } }
0
repos/capy/vendor/zigwin32/win32/system
repos/capy/vendor/zigwin32/win32/system/win_rt/isolation.zig
//! NOTE: this file is autogenerated, DO NOT MODIFY //-------------------------------------------------------------------------------- // Section: Constants (0) //-------------------------------------------------------------------------------- //-------------------------------------------------------------------------------- // Section: Types (1) //-------------------------------------------------------------------------------- const IID_IIsolatedEnvironmentInterop_Value = Guid.initString("85713c2e-8e62-46c5-8de2-c647e1d54636"); pub const IID_IIsolatedEnvironmentInterop = &IID_IIsolatedEnvironmentInterop_Value; pub const IIsolatedEnvironmentInterop = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, GetHostHwndInterop: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IIsolatedEnvironmentInterop, containerHwnd: ?HWND, hostHwnd: ?*?HWND, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IIsolatedEnvironmentInterop, containerHwnd: ?HWND, hostHwnd: ?*?HWND, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IIsolatedEnvironmentInterop_GetHostHwndInterop(self: *const T, containerHwnd: ?HWND, hostHwnd: ?*?HWND) HRESULT { return @as(*const IIsolatedEnvironmentInterop.VTable, @ptrCast(self.vtable)).GetHostHwndInterop(@as(*const IIsolatedEnvironmentInterop, @ptrCast(self)), containerHwnd, hostHwnd); } }; } pub usingnamespace MethodMixin(@This()); }; //-------------------------------------------------------------------------------- // Section: Functions (0) //-------------------------------------------------------------------------------- //-------------------------------------------------------------------------------- // Section: Unicode Aliases (0) //-------------------------------------------------------------------------------- const thismodule = @This(); pub usingnamespace switch (@import("../../zig.zig").unicode_mode) { .ansi => struct {}, .wide => struct {}, .unspecified => if (@import("builtin").is_test) struct {} else struct {}, }; //-------------------------------------------------------------------------------- // Section: Imports (4) //-------------------------------------------------------------------------------- const Guid = @import("../../zig.zig").Guid; const HRESULT = @import("../../foundation.zig").HRESULT; const HWND = @import("../../foundation.zig").HWND; const IUnknown = @import("../../system/com.zig").IUnknown; test { @setEvalBranchQuota(comptime @import("std").meta.declarations(@This()).len * 3); // reference all the pub declarations if (!@import("builtin").is_test) return; inline for (comptime @import("std").meta.declarations(@This())) |decl| { if (decl.is_pub) { _ = @field(@This(), decl.name); } } }
0
repos/capy/vendor/zigwin32/win32/system
repos/capy/vendor/zigwin32/win32/system/win_rt/holographic.zig
//! NOTE: this file is autogenerated, DO NOT MODIFY //-------------------------------------------------------------------------------- // Section: Constants (0) //-------------------------------------------------------------------------------- //-------------------------------------------------------------------------------- // Section: Types (4) //-------------------------------------------------------------------------------- const IID_IHolographicCameraInterop_Value = Guid.initString("7cc1f9c5-6d02-41fa-9500-e1809eb48eec"); pub const IID_IHolographicCameraInterop = &IID_IHolographicCameraInterop_Value; pub const IHolographicCameraInterop = extern struct { pub const VTable = extern struct { base: IInspectable.VTable, CreateDirect3D12BackBufferResource: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IHolographicCameraInterop, pDevice: ?*ID3D12Device, pTexture2DDesc: ?*D3D12_RESOURCE_DESC, ppCreatedTexture2DResource: ?*?*ID3D12Resource, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IHolographicCameraInterop, pDevice: ?*ID3D12Device, pTexture2DDesc: ?*D3D12_RESOURCE_DESC, ppCreatedTexture2DResource: ?*?*ID3D12Resource, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, CreateDirect3D12HardwareProtectedBackBufferResource: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IHolographicCameraInterop, pDevice: ?*ID3D12Device, pTexture2DDesc: ?*D3D12_RESOURCE_DESC, pProtectedResourceSession: ?*ID3D12ProtectedResourceSession, ppCreatedTexture2DResource: ?*?*ID3D12Resource, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IHolographicCameraInterop, pDevice: ?*ID3D12Device, pTexture2DDesc: ?*D3D12_RESOURCE_DESC, pProtectedResourceSession: ?*ID3D12ProtectedResourceSession, ppCreatedTexture2DResource: ?*?*ID3D12Resource, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, AcquireDirect3D12BufferResource: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IHolographicCameraInterop, pResourceToAcquire: ?*ID3D12Resource, pCommandQueue: ?*ID3D12CommandQueue, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IHolographicCameraInterop, pResourceToAcquire: ?*ID3D12Resource, pCommandQueue: ?*ID3D12CommandQueue, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, AcquireDirect3D12BufferResourceWithTimeout: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IHolographicCameraInterop, pResourceToAcquire: ?*ID3D12Resource, pCommandQueue: ?*ID3D12CommandQueue, duration: u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IHolographicCameraInterop, pResourceToAcquire: ?*ID3D12Resource, pCommandQueue: ?*ID3D12CommandQueue, duration: u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, UnacquireDirect3D12BufferResource: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IHolographicCameraInterop, pResourceToUnacquire: ?*ID3D12Resource, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IHolographicCameraInterop, pResourceToUnacquire: ?*ID3D12Resource, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IInspectable.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IHolographicCameraInterop_CreateDirect3D12BackBufferResource(self: *const T, pDevice: ?*ID3D12Device, pTexture2DDesc: ?*D3D12_RESOURCE_DESC, ppCreatedTexture2DResource: ?*?*ID3D12Resource) HRESULT { return @as(*const IHolographicCameraInterop.VTable, @ptrCast(self.vtable)).CreateDirect3D12BackBufferResource(@as(*const IHolographicCameraInterop, @ptrCast(self)), pDevice, pTexture2DDesc, ppCreatedTexture2DResource); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IHolographicCameraInterop_CreateDirect3D12HardwareProtectedBackBufferResource(self: *const T, pDevice: ?*ID3D12Device, pTexture2DDesc: ?*D3D12_RESOURCE_DESC, pProtectedResourceSession: ?*ID3D12ProtectedResourceSession, ppCreatedTexture2DResource: ?*?*ID3D12Resource) HRESULT { return @as(*const IHolographicCameraInterop.VTable, @ptrCast(self.vtable)).CreateDirect3D12HardwareProtectedBackBufferResource(@as(*const IHolographicCameraInterop, @ptrCast(self)), pDevice, pTexture2DDesc, pProtectedResourceSession, ppCreatedTexture2DResource); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IHolographicCameraInterop_AcquireDirect3D12BufferResource(self: *const T, pResourceToAcquire: ?*ID3D12Resource, pCommandQueue: ?*ID3D12CommandQueue) HRESULT { return @as(*const IHolographicCameraInterop.VTable, @ptrCast(self.vtable)).AcquireDirect3D12BufferResource(@as(*const IHolographicCameraInterop, @ptrCast(self)), pResourceToAcquire, pCommandQueue); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IHolographicCameraInterop_AcquireDirect3D12BufferResourceWithTimeout(self: *const T, pResourceToAcquire: ?*ID3D12Resource, pCommandQueue: ?*ID3D12CommandQueue, duration: u64) HRESULT { return @as(*const IHolographicCameraInterop.VTable, @ptrCast(self.vtable)).AcquireDirect3D12BufferResourceWithTimeout(@as(*const IHolographicCameraInterop, @ptrCast(self)), pResourceToAcquire, pCommandQueue, duration); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IHolographicCameraInterop_UnacquireDirect3D12BufferResource(self: *const T, pResourceToUnacquire: ?*ID3D12Resource) HRESULT { return @as(*const IHolographicCameraInterop.VTable, @ptrCast(self.vtable)).UnacquireDirect3D12BufferResource(@as(*const IHolographicCameraInterop, @ptrCast(self)), pResourceToUnacquire); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IHolographicCameraRenderingParametersInterop_Value = Guid.initString("f75b68d6-d1fd-4707-aafd-fa6f4c0e3bf4"); pub const IID_IHolographicCameraRenderingParametersInterop = &IID_IHolographicCameraRenderingParametersInterop_Value; pub const IHolographicCameraRenderingParametersInterop = extern struct { pub const VTable = extern struct { base: IInspectable.VTable, CommitDirect3D12Resource: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IHolographicCameraRenderingParametersInterop, pColorResourceToCommit: ?*ID3D12Resource, pColorResourceFence: ?*ID3D12Fence, colorResourceFenceSignalValue: u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IHolographicCameraRenderingParametersInterop, pColorResourceToCommit: ?*ID3D12Resource, pColorResourceFence: ?*ID3D12Fence, colorResourceFenceSignalValue: u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, CommitDirect3D12ResourceWithDepthData: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IHolographicCameraRenderingParametersInterop, pColorResourceToCommit: ?*ID3D12Resource, pColorResourceFence: ?*ID3D12Fence, colorResourceFenceSignalValue: u64, pDepthResourceToCommit: ?*ID3D12Resource, pDepthResourceFence: ?*ID3D12Fence, depthResourceFenceSignalValue: u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IHolographicCameraRenderingParametersInterop, pColorResourceToCommit: ?*ID3D12Resource, pColorResourceFence: ?*ID3D12Fence, colorResourceFenceSignalValue: u64, pDepthResourceToCommit: ?*ID3D12Resource, pDepthResourceFence: ?*ID3D12Fence, depthResourceFenceSignalValue: u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IInspectable.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IHolographicCameraRenderingParametersInterop_CommitDirect3D12Resource(self: *const T, pColorResourceToCommit: ?*ID3D12Resource, pColorResourceFence: ?*ID3D12Fence, colorResourceFenceSignalValue: u64) HRESULT { return @as(*const IHolographicCameraRenderingParametersInterop.VTable, @ptrCast(self.vtable)).CommitDirect3D12Resource(@as(*const IHolographicCameraRenderingParametersInterop, @ptrCast(self)), pColorResourceToCommit, pColorResourceFence, colorResourceFenceSignalValue); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IHolographicCameraRenderingParametersInterop_CommitDirect3D12ResourceWithDepthData(self: *const T, pColorResourceToCommit: ?*ID3D12Resource, pColorResourceFence: ?*ID3D12Fence, colorResourceFenceSignalValue: u64, pDepthResourceToCommit: ?*ID3D12Resource, pDepthResourceFence: ?*ID3D12Fence, depthResourceFenceSignalValue: u64) HRESULT { return @as(*const IHolographicCameraRenderingParametersInterop.VTable, @ptrCast(self.vtable)).CommitDirect3D12ResourceWithDepthData(@as(*const IHolographicCameraRenderingParametersInterop, @ptrCast(self)), pColorResourceToCommit, pColorResourceFence, colorResourceFenceSignalValue, pDepthResourceToCommit, pDepthResourceFence, depthResourceFenceSignalValue); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IHolographicQuadLayerInterop_Value = Guid.initString("cfa688f0-639e-4a47-83d7-6b7f5ebf7fed"); pub const IID_IHolographicQuadLayerInterop = &IID_IHolographicQuadLayerInterop_Value; pub const IHolographicQuadLayerInterop = extern struct { pub const VTable = extern struct { base: IInspectable.VTable, CreateDirect3D12ContentBufferResource: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IHolographicQuadLayerInterop, pDevice: ?*ID3D12Device, pTexture2DDesc: ?*D3D12_RESOURCE_DESC, ppTexture2DResource: ?*?*ID3D12Resource, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IHolographicQuadLayerInterop, pDevice: ?*ID3D12Device, pTexture2DDesc: ?*D3D12_RESOURCE_DESC, ppTexture2DResource: ?*?*ID3D12Resource, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, CreateDirect3D12HardwareProtectedContentBufferResource: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IHolographicQuadLayerInterop, pDevice: ?*ID3D12Device, pTexture2DDesc: ?*D3D12_RESOURCE_DESC, pProtectedResourceSession: ?*ID3D12ProtectedResourceSession, ppCreatedTexture2DResource: ?*?*ID3D12Resource, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IHolographicQuadLayerInterop, pDevice: ?*ID3D12Device, pTexture2DDesc: ?*D3D12_RESOURCE_DESC, pProtectedResourceSession: ?*ID3D12ProtectedResourceSession, ppCreatedTexture2DResource: ?*?*ID3D12Resource, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, AcquireDirect3D12BufferResource: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IHolographicQuadLayerInterop, pResourceToAcquire: ?*ID3D12Resource, pCommandQueue: ?*ID3D12CommandQueue, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IHolographicQuadLayerInterop, pResourceToAcquire: ?*ID3D12Resource, pCommandQueue: ?*ID3D12CommandQueue, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, AcquireDirect3D12BufferResourceWithTimeout: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IHolographicQuadLayerInterop, pResourceToAcquire: ?*ID3D12Resource, pCommandQueue: ?*ID3D12CommandQueue, duration: u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IHolographicQuadLayerInterop, pResourceToAcquire: ?*ID3D12Resource, pCommandQueue: ?*ID3D12CommandQueue, duration: u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, UnacquireDirect3D12BufferResource: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IHolographicQuadLayerInterop, pResourceToUnacquire: ?*ID3D12Resource, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IHolographicQuadLayerInterop, pResourceToUnacquire: ?*ID3D12Resource, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IInspectable.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IHolographicQuadLayerInterop_CreateDirect3D12ContentBufferResource(self: *const T, pDevice: ?*ID3D12Device, pTexture2DDesc: ?*D3D12_RESOURCE_DESC, ppTexture2DResource: ?*?*ID3D12Resource) HRESULT { return @as(*const IHolographicQuadLayerInterop.VTable, @ptrCast(self.vtable)).CreateDirect3D12ContentBufferResource(@as(*const IHolographicQuadLayerInterop, @ptrCast(self)), pDevice, pTexture2DDesc, ppTexture2DResource); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IHolographicQuadLayerInterop_CreateDirect3D12HardwareProtectedContentBufferResource(self: *const T, pDevice: ?*ID3D12Device, pTexture2DDesc: ?*D3D12_RESOURCE_DESC, pProtectedResourceSession: ?*ID3D12ProtectedResourceSession, ppCreatedTexture2DResource: ?*?*ID3D12Resource) HRESULT { return @as(*const IHolographicQuadLayerInterop.VTable, @ptrCast(self.vtable)).CreateDirect3D12HardwareProtectedContentBufferResource(@as(*const IHolographicQuadLayerInterop, @ptrCast(self)), pDevice, pTexture2DDesc, pProtectedResourceSession, ppCreatedTexture2DResource); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IHolographicQuadLayerInterop_AcquireDirect3D12BufferResource(self: *const T, pResourceToAcquire: ?*ID3D12Resource, pCommandQueue: ?*ID3D12CommandQueue) HRESULT { return @as(*const IHolographicQuadLayerInterop.VTable, @ptrCast(self.vtable)).AcquireDirect3D12BufferResource(@as(*const IHolographicQuadLayerInterop, @ptrCast(self)), pResourceToAcquire, pCommandQueue); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IHolographicQuadLayerInterop_AcquireDirect3D12BufferResourceWithTimeout(self: *const T, pResourceToAcquire: ?*ID3D12Resource, pCommandQueue: ?*ID3D12CommandQueue, duration: u64) HRESULT { return @as(*const IHolographicQuadLayerInterop.VTable, @ptrCast(self.vtable)).AcquireDirect3D12BufferResourceWithTimeout(@as(*const IHolographicQuadLayerInterop, @ptrCast(self)), pResourceToAcquire, pCommandQueue, duration); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IHolographicQuadLayerInterop_UnacquireDirect3D12BufferResource(self: *const T, pResourceToUnacquire: ?*ID3D12Resource) HRESULT { return @as(*const IHolographicQuadLayerInterop.VTable, @ptrCast(self.vtable)).UnacquireDirect3D12BufferResource(@as(*const IHolographicQuadLayerInterop, @ptrCast(self)), pResourceToUnacquire); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IHolographicQuadLayerUpdateParametersInterop_Value = Guid.initString("e5f549cd-c909-444f-8809-7cc18a9c8920"); pub const IID_IHolographicQuadLayerUpdateParametersInterop = &IID_IHolographicQuadLayerUpdateParametersInterop_Value; pub const IHolographicQuadLayerUpdateParametersInterop = extern struct { pub const VTable = extern struct { base: IInspectable.VTable, CommitDirect3D12Resource: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IHolographicQuadLayerUpdateParametersInterop, pColorResourceToCommit: ?*ID3D12Resource, pColorResourceFence: ?*ID3D12Fence, colorResourceFenceSignalValue: u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IHolographicQuadLayerUpdateParametersInterop, pColorResourceToCommit: ?*ID3D12Resource, pColorResourceFence: ?*ID3D12Fence, colorResourceFenceSignalValue: u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IInspectable.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IHolographicQuadLayerUpdateParametersInterop_CommitDirect3D12Resource(self: *const T, pColorResourceToCommit: ?*ID3D12Resource, pColorResourceFence: ?*ID3D12Fence, colorResourceFenceSignalValue: u64) HRESULT { return @as(*const IHolographicQuadLayerUpdateParametersInterop.VTable, @ptrCast(self.vtable)).CommitDirect3D12Resource(@as(*const IHolographicQuadLayerUpdateParametersInterop, @ptrCast(self)), pColorResourceToCommit, pColorResourceFence, colorResourceFenceSignalValue); } }; } pub usingnamespace MethodMixin(@This()); }; //-------------------------------------------------------------------------------- // Section: Functions (0) //-------------------------------------------------------------------------------- //-------------------------------------------------------------------------------- // Section: Unicode Aliases (0) //-------------------------------------------------------------------------------- const thismodule = @This(); pub usingnamespace switch (@import("../../zig.zig").unicode_mode) { .ansi => struct {}, .wide => struct {}, .unspecified => if (@import("builtin").is_test) struct {} else struct {}, }; //-------------------------------------------------------------------------------- // Section: Imports (9) //-------------------------------------------------------------------------------- const Guid = @import("../../zig.zig").Guid; const D3D12_RESOURCE_DESC = @import("../../graphics/direct3d12.zig").D3D12_RESOURCE_DESC; const HRESULT = @import("../../foundation.zig").HRESULT; const ID3D12CommandQueue = @import("../../graphics/direct3d12.zig").ID3D12CommandQueue; const ID3D12Device = @import("../../graphics/direct3d12.zig").ID3D12Device; const ID3D12Fence = @import("../../graphics/direct3d12.zig").ID3D12Fence; const ID3D12ProtectedResourceSession = @import("../../graphics/direct3d12.zig").ID3D12ProtectedResourceSession; const ID3D12Resource = @import("../../graphics/direct3d12.zig").ID3D12Resource; const IInspectable = @import("../../system/win_rt.zig").IInspectable; test { @setEvalBranchQuota(comptime @import("std").meta.declarations(@This()).len * 3); // reference all the pub declarations if (!@import("builtin").is_test) return; inline for (comptime @import("std").meta.declarations(@This())) |decl| { if (decl.is_pub) { _ = @field(@This(), decl.name); } } }
0
repos/capy/vendor/zigwin32/win32/system
repos/capy/vendor/zigwin32/win32/system/win_rt/pdf.zig
//! NOTE: this file is autogenerated, DO NOT MODIFY //-------------------------------------------------------------------------------- // Section: Constants (0) //-------------------------------------------------------------------------------- //-------------------------------------------------------------------------------- // Section: Types (3) //-------------------------------------------------------------------------------- pub const PFN_PDF_CREATE_RENDERER = switch (@import("builtin").zig_backend) { .stage1 => fn ( param0: ?*IDXGIDevice, param1: ?*?*IPdfRendererNative, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( param0: ?*IDXGIDevice, param1: ?*?*IPdfRendererNative, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }; pub const PDF_RENDER_PARAMS = extern struct { SourceRect: D2D_RECT_F, DestinationWidth: u32, DestinationHeight: u32, BackgroundColor: D2D_COLOR_F, IgnoreHighContrast: BOOLEAN, }; const IID_IPdfRendererNative_Value = Guid.initString("7d9dcd91-d277-4947-8527-07a0daeda94a"); pub const IID_IPdfRendererNative = &IID_IPdfRendererNative_Value; pub const IPdfRendererNative = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, RenderPageToSurface: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IPdfRendererNative, pdfPage: ?*IUnknown, pSurface: ?*IDXGISurface, offset: POINT, pRenderParams: ?*PDF_RENDER_PARAMS, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IPdfRendererNative, pdfPage: ?*IUnknown, pSurface: ?*IDXGISurface, offset: POINT, pRenderParams: ?*PDF_RENDER_PARAMS, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, RenderPageToDeviceContext: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IPdfRendererNative, pdfPage: ?*IUnknown, pD2DDeviceContext: ?*ID2D1DeviceContext, pRenderParams: ?*PDF_RENDER_PARAMS, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IPdfRendererNative, pdfPage: ?*IUnknown, pD2DDeviceContext: ?*ID2D1DeviceContext, pRenderParams: ?*PDF_RENDER_PARAMS, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPdfRendererNative_RenderPageToSurface(self: *const T, pdfPage: ?*IUnknown, pSurface: ?*IDXGISurface, offset: POINT, pRenderParams: ?*PDF_RENDER_PARAMS) HRESULT { return @as(*const IPdfRendererNative.VTable, @ptrCast(self.vtable)).RenderPageToSurface(@as(*const IPdfRendererNative, @ptrCast(self)), pdfPage, pSurface, offset, pRenderParams); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPdfRendererNative_RenderPageToDeviceContext(self: *const T, pdfPage: ?*IUnknown, pD2DDeviceContext: ?*ID2D1DeviceContext, pRenderParams: ?*PDF_RENDER_PARAMS) HRESULT { return @as(*const IPdfRendererNative.VTable, @ptrCast(self.vtable)).RenderPageToDeviceContext(@as(*const IPdfRendererNative, @ptrCast(self)), pdfPage, pD2DDeviceContext, pRenderParams); } }; } pub usingnamespace MethodMixin(@This()); }; //-------------------------------------------------------------------------------- // Section: Functions (1) //-------------------------------------------------------------------------------- pub extern "windows.data.pdf" fn PdfCreateRenderer( pDevice: ?*IDXGIDevice, ppRenderer: ?*?*IPdfRendererNative, ) callconv(@import("std").os.windows.WINAPI) HRESULT; //-------------------------------------------------------------------------------- // Section: Unicode Aliases (0) //-------------------------------------------------------------------------------- const thismodule = @This(); pub usingnamespace switch (@import("../../zig.zig").unicode_mode) { .ansi => struct {}, .wide => struct {}, .unspecified => if (@import("builtin").is_test) struct {} else struct {}, }; //-------------------------------------------------------------------------------- // Section: Imports (10) //-------------------------------------------------------------------------------- const Guid = @import("../../zig.zig").Guid; const BOOLEAN = @import("../../foundation.zig").BOOLEAN; const D2D_COLOR_F = @import("../../graphics/direct2d/common.zig").D2D_COLOR_F; const D2D_RECT_F = @import("../../graphics/direct2d/common.zig").D2D_RECT_F; const HRESULT = @import("../../foundation.zig").HRESULT; const ID2D1DeviceContext = @import("../../graphics/direct2d.zig").ID2D1DeviceContext; const IDXGIDevice = @import("../../graphics/dxgi.zig").IDXGIDevice; const IDXGISurface = @import("../../graphics/dxgi.zig").IDXGISurface; const IUnknown = @import("../../system/com.zig").IUnknown; const POINT = @import("../../foundation.zig").POINT; test { // The following '_ = <FuncPtrType>' lines are a workaround for https://github.com/ziglang/zig/issues/4476 if (@hasDecl(@This(), "PFN_PDF_CREATE_RENDERER")) { _ = PFN_PDF_CREATE_RENDERER; } @setEvalBranchQuota(comptime @import("std").meta.declarations(@This()).len * 3); // reference all the pub declarations if (!@import("builtin").is_test) return; inline for (comptime @import("std").meta.declarations(@This())) |decl| { if (decl.is_pub) { _ = @field(@This(), decl.name); } } }
0
repos/capy/vendor/zigwin32/win32/system
repos/capy/vendor/zigwin32/win32/system/win_rt/all_joyn.zig
//! NOTE: this file is autogenerated, DO NOT MODIFY //-------------------------------------------------------------------------------- // Section: Constants (0) //-------------------------------------------------------------------------------- //-------------------------------------------------------------------------------- // Section: Types (4) //-------------------------------------------------------------------------------- const IID_IWindowsDevicesAllJoynBusAttachmentInterop_Value = Guid.initString("fd89c65b-b50e-4a19-9d0c-b42b783281cd"); pub const IID_IWindowsDevicesAllJoynBusAttachmentInterop = &IID_IWindowsDevicesAllJoynBusAttachmentInterop_Value; pub const IWindowsDevicesAllJoynBusAttachmentInterop = extern struct { pub const VTable = extern struct { base: IInspectable.VTable, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Win32Handle: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IWindowsDevicesAllJoynBusAttachmentInterop, value: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IWindowsDevicesAllJoynBusAttachmentInterop, value: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IInspectable.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWindowsDevicesAllJoynBusAttachmentInterop_get_Win32Handle(self: *const T, value: ?*u64) HRESULT { return @as(*const IWindowsDevicesAllJoynBusAttachmentInterop.VTable, @ptrCast(self.vtable)).get_Win32Handle(@as(*const IWindowsDevicesAllJoynBusAttachmentInterop, @ptrCast(self)), value); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IWindowsDevicesAllJoynBusAttachmentFactoryInterop_Value = Guid.initString("4b8f7505-b239-4e7b-88af-f6682575d861"); pub const IID_IWindowsDevicesAllJoynBusAttachmentFactoryInterop = &IID_IWindowsDevicesAllJoynBusAttachmentFactoryInterop_Value; pub const IWindowsDevicesAllJoynBusAttachmentFactoryInterop = extern struct { pub const VTable = extern struct { base: IInspectable.VTable, CreateFromWin32Handle: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IWindowsDevicesAllJoynBusAttachmentFactoryInterop, win32handle: u64, enableAboutData: u8, riid: ?*const Guid, ppv: ?*?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IWindowsDevicesAllJoynBusAttachmentFactoryInterop, win32handle: u64, enableAboutData: u8, riid: ?*const Guid, ppv: ?*?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IInspectable.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWindowsDevicesAllJoynBusAttachmentFactoryInterop_CreateFromWin32Handle(self: *const T, win32handle: u64, enableAboutData: u8, riid: ?*const Guid, ppv: ?*?*anyopaque) HRESULT { return @as(*const IWindowsDevicesAllJoynBusAttachmentFactoryInterop.VTable, @ptrCast(self.vtable)).CreateFromWin32Handle(@as(*const IWindowsDevicesAllJoynBusAttachmentFactoryInterop, @ptrCast(self)), win32handle, enableAboutData, riid, ppv); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IWindowsDevicesAllJoynBusObjectInterop_Value = Guid.initString("d78aa3d5-5054-428f-99f2-ec3a5de3c3bc"); pub const IID_IWindowsDevicesAllJoynBusObjectInterop = &IID_IWindowsDevicesAllJoynBusObjectInterop_Value; pub const IWindowsDevicesAllJoynBusObjectInterop = extern struct { pub const VTable = extern struct { base: IInspectable.VTable, AddPropertyGetHandler: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IWindowsDevicesAllJoynBusObjectInterop, context: ?*anyopaque, interfaceName: ?HSTRING, callback: isize, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IWindowsDevicesAllJoynBusObjectInterop, context: ?*anyopaque, interfaceName: ?HSTRING, callback: isize, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, AddPropertySetHandler: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IWindowsDevicesAllJoynBusObjectInterop, context: ?*anyopaque, interfaceName: ?HSTRING, callback: isize, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IWindowsDevicesAllJoynBusObjectInterop, context: ?*anyopaque, interfaceName: ?HSTRING, callback: isize, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Win32Handle: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IWindowsDevicesAllJoynBusObjectInterop, value: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IWindowsDevicesAllJoynBusObjectInterop, value: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IInspectable.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWindowsDevicesAllJoynBusObjectInterop_AddPropertyGetHandler(self: *const T, context: ?*anyopaque, interfaceName: ?HSTRING, callback: isize) HRESULT { return @as(*const IWindowsDevicesAllJoynBusObjectInterop.VTable, @ptrCast(self.vtable)).AddPropertyGetHandler(@as(*const IWindowsDevicesAllJoynBusObjectInterop, @ptrCast(self)), context, interfaceName, callback); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWindowsDevicesAllJoynBusObjectInterop_AddPropertySetHandler(self: *const T, context: ?*anyopaque, interfaceName: ?HSTRING, callback: isize) HRESULT { return @as(*const IWindowsDevicesAllJoynBusObjectInterop.VTable, @ptrCast(self.vtable)).AddPropertySetHandler(@as(*const IWindowsDevicesAllJoynBusObjectInterop, @ptrCast(self)), context, interfaceName, callback); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWindowsDevicesAllJoynBusObjectInterop_get_Win32Handle(self: *const T, value: ?*u64) HRESULT { return @as(*const IWindowsDevicesAllJoynBusObjectInterop.VTable, @ptrCast(self.vtable)).get_Win32Handle(@as(*const IWindowsDevicesAllJoynBusObjectInterop, @ptrCast(self)), value); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IWindowsDevicesAllJoynBusObjectFactoryInterop_Value = Guid.initString("6174e506-8b95-4e36-95c0-b88fed34938c"); pub const IID_IWindowsDevicesAllJoynBusObjectFactoryInterop = &IID_IWindowsDevicesAllJoynBusObjectFactoryInterop_Value; pub const IWindowsDevicesAllJoynBusObjectFactoryInterop = extern struct { pub const VTable = extern struct { base: IInspectable.VTable, CreateFromWin32Handle: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IWindowsDevicesAllJoynBusObjectFactoryInterop, win32handle: u64, riid: ?*const Guid, ppv: ?*?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IWindowsDevicesAllJoynBusObjectFactoryInterop, win32handle: u64, riid: ?*const Guid, ppv: ?*?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IInspectable.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWindowsDevicesAllJoynBusObjectFactoryInterop_CreateFromWin32Handle(self: *const T, win32handle: u64, riid: ?*const Guid, ppv: ?*?*anyopaque) HRESULT { return @as(*const IWindowsDevicesAllJoynBusObjectFactoryInterop.VTable, @ptrCast(self.vtable)).CreateFromWin32Handle(@as(*const IWindowsDevicesAllJoynBusObjectFactoryInterop, @ptrCast(self)), win32handle, riid, ppv); } }; } pub usingnamespace MethodMixin(@This()); }; //-------------------------------------------------------------------------------- // Section: Functions (0) //-------------------------------------------------------------------------------- //-------------------------------------------------------------------------------- // Section: Unicode Aliases (0) //-------------------------------------------------------------------------------- const thismodule = @This(); pub usingnamespace switch (@import("../../zig.zig").unicode_mode) { .ansi => struct {}, .wide => struct {}, .unspecified => if (@import("builtin").is_test) struct {} else struct {}, }; //-------------------------------------------------------------------------------- // Section: Imports (4) //-------------------------------------------------------------------------------- const Guid = @import("../../zig.zig").Guid; const HRESULT = @import("../../foundation.zig").HRESULT; const HSTRING = @import("../../system/win_rt.zig").HSTRING; const IInspectable = @import("../../system/win_rt.zig").IInspectable; test { @setEvalBranchQuota(comptime @import("std").meta.declarations(@This()).len * 3); // reference all the pub declarations if (!@import("builtin").is_test) return; inline for (comptime @import("std").meta.declarations(@This())) |decl| { if (decl.is_pub) { _ = @field(@This(), decl.name); } } }
0
repos/capy/vendor/zigwin32/win32/system
repos/capy/vendor/zigwin32/win32/system/win_rt/media.zig
//! NOTE: this file is autogenerated, DO NOT MODIFY //-------------------------------------------------------------------------------- // Section: Constants (2) //-------------------------------------------------------------------------------- pub const CLSID_AudioFrameNativeFactory = Guid.initString("16a0a3b9-9f65-4102-9367-2cda3a4f372a"); pub const CLSID_VideoFrameNativeFactory = Guid.initString("d194386a-04e3-4814-8100-b2b0ae6d78c7"); //-------------------------------------------------------------------------------- // Section: Types (4) //-------------------------------------------------------------------------------- const IID_IAudioFrameNative_Value = Guid.initString("20be1e2e-930f-4746-9335-3c332f255093"); pub const IID_IAudioFrameNative = &IID_IAudioFrameNative_Value; pub const IAudioFrameNative = extern struct { pub const VTable = extern struct { base: IInspectable.VTable, GetData: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IAudioFrameNative, riid: ?*const Guid, ppv: ?*?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IAudioFrameNative, riid: ?*const Guid, ppv: ?*?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IInspectable.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IAudioFrameNative_GetData(self: *const T, riid: ?*const Guid, ppv: ?*?*anyopaque) HRESULT { return @as(*const IAudioFrameNative.VTable, @ptrCast(self.vtable)).GetData(@as(*const IAudioFrameNative, @ptrCast(self)), riid, ppv); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IVideoFrameNative_Value = Guid.initString("26ba702b-314a-4620-aaf6-7a51aa58fa18"); pub const IID_IVideoFrameNative = &IID_IVideoFrameNative_Value; pub const IVideoFrameNative = extern struct { pub const VTable = extern struct { base: IInspectable.VTable, GetData: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IVideoFrameNative, riid: ?*const Guid, ppv: ?*?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IVideoFrameNative, riid: ?*const Guid, ppv: ?*?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetDevice: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IVideoFrameNative, riid: ?*const Guid, ppv: ?*?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IVideoFrameNative, riid: ?*const Guid, ppv: ?*?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IInspectable.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IVideoFrameNative_GetData(self: *const T, riid: ?*const Guid, ppv: ?*?*anyopaque) HRESULT { return @as(*const IVideoFrameNative.VTable, @ptrCast(self.vtable)).GetData(@as(*const IVideoFrameNative, @ptrCast(self)), riid, ppv); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IVideoFrameNative_GetDevice(self: *const T, riid: ?*const Guid, ppv: ?*?*anyopaque) HRESULT { return @as(*const IVideoFrameNative.VTable, @ptrCast(self.vtable)).GetDevice(@as(*const IVideoFrameNative, @ptrCast(self)), riid, ppv); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IAudioFrameNativeFactory_Value = Guid.initString("7bd67cf8-bf7d-43e6-af8d-b170ee0c0110"); pub const IID_IAudioFrameNativeFactory = &IID_IAudioFrameNativeFactory_Value; pub const IAudioFrameNativeFactory = extern struct { pub const VTable = extern struct { base: IInspectable.VTable, CreateFromMFSample: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IAudioFrameNativeFactory, data: ?*IMFSample, forceReadOnly: BOOL, riid: ?*const Guid, ppv: ?*?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IAudioFrameNativeFactory, data: ?*IMFSample, forceReadOnly: BOOL, riid: ?*const Guid, ppv: ?*?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IInspectable.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IAudioFrameNativeFactory_CreateFromMFSample(self: *const T, data: ?*IMFSample, forceReadOnly: BOOL, riid: ?*const Guid, ppv: ?*?*anyopaque) HRESULT { return @as(*const IAudioFrameNativeFactory.VTable, @ptrCast(self.vtable)).CreateFromMFSample(@as(*const IAudioFrameNativeFactory, @ptrCast(self)), data, forceReadOnly, riid, ppv); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IVideoFrameNativeFactory_Value = Guid.initString("69e3693e-8e1e-4e63-ac4c-7fdc21d9731d"); pub const IID_IVideoFrameNativeFactory = &IID_IVideoFrameNativeFactory_Value; pub const IVideoFrameNativeFactory = extern struct { pub const VTable = extern struct { base: IInspectable.VTable, CreateFromMFSample: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IVideoFrameNativeFactory, data: ?*IMFSample, subtype: ?*const Guid, width: u32, height: u32, forceReadOnly: BOOL, minDisplayAperture: ?*const MFVideoArea, device: ?*IMFDXGIDeviceManager, riid: ?*const Guid, ppv: ?*?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IVideoFrameNativeFactory, data: ?*IMFSample, subtype: ?*const Guid, width: u32, height: u32, forceReadOnly: BOOL, minDisplayAperture: ?*const MFVideoArea, device: ?*IMFDXGIDeviceManager, riid: ?*const Guid, ppv: ?*?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IInspectable.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IVideoFrameNativeFactory_CreateFromMFSample(self: *const T, data: ?*IMFSample, subtype: ?*const Guid, width: u32, height: u32, forceReadOnly: BOOL, minDisplayAperture: ?*const MFVideoArea, device: ?*IMFDXGIDeviceManager, riid: ?*const Guid, ppv: ?*?*anyopaque) HRESULT { return @as(*const IVideoFrameNativeFactory.VTable, @ptrCast(self.vtable)).CreateFromMFSample(@as(*const IVideoFrameNativeFactory, @ptrCast(self)), data, subtype, width, height, forceReadOnly, minDisplayAperture, device, riid, ppv); } }; } pub usingnamespace MethodMixin(@This()); }; //-------------------------------------------------------------------------------- // Section: Functions (0) //-------------------------------------------------------------------------------- //-------------------------------------------------------------------------------- // Section: Unicode Aliases (0) //-------------------------------------------------------------------------------- const thismodule = @This(); pub usingnamespace switch (@import("../../zig.zig").unicode_mode) { .ansi => struct {}, .wide => struct {}, .unspecified => if (@import("builtin").is_test) struct {} else struct {}, }; //-------------------------------------------------------------------------------- // Section: Imports (7) //-------------------------------------------------------------------------------- const Guid = @import("../../zig.zig").Guid; const BOOL = @import("../../foundation.zig").BOOL; const HRESULT = @import("../../foundation.zig").HRESULT; const IInspectable = @import("../../system/win_rt.zig").IInspectable; const IMFDXGIDeviceManager = @import("../../media/media_foundation.zig").IMFDXGIDeviceManager; const IMFSample = @import("../../media/media_foundation.zig").IMFSample; const MFVideoArea = @import("../../media/media_foundation.zig").MFVideoArea; test { @setEvalBranchQuota(comptime @import("std").meta.declarations(@This()).len * 3); // reference all the pub declarations if (!@import("builtin").is_test) return; inline for (comptime @import("std").meta.declarations(@This())) |decl| { if (decl.is_pub) { _ = @field(@This(), decl.name); } } }
0
repos/capy/vendor/zigwin32/win32/system
repos/capy/vendor/zigwin32/win32/system/win_rt/composition.zig
//! NOTE: this file is autogenerated, DO NOT MODIFY //-------------------------------------------------------------------------------- // Section: Constants (0) //-------------------------------------------------------------------------------- //-------------------------------------------------------------------------------- // Section: Types (9) //-------------------------------------------------------------------------------- const IID_ICompositionDrawingSurfaceInterop_Value = Guid.initString("fd04e6e3-fe0c-4c3c-ab19-a07601a576ee"); pub const IID_ICompositionDrawingSurfaceInterop = &IID_ICompositionDrawingSurfaceInterop_Value; pub const ICompositionDrawingSurfaceInterop = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, BeginDraw: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ICompositionDrawingSurfaceInterop, updateRect: ?*const RECT, iid: ?*const Guid, updateObject: ?*?*anyopaque, updateOffset: ?*POINT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ICompositionDrawingSurfaceInterop, updateRect: ?*const RECT, iid: ?*const Guid, updateObject: ?*?*anyopaque, updateOffset: ?*POINT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, EndDraw: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ICompositionDrawingSurfaceInterop, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ICompositionDrawingSurfaceInterop, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Resize: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ICompositionDrawingSurfaceInterop, sizePixels: SIZE, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ICompositionDrawingSurfaceInterop, sizePixels: SIZE, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Scroll: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ICompositionDrawingSurfaceInterop, scrollRect: ?*const RECT, clipRect: ?*const RECT, offsetX: i32, offsetY: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ICompositionDrawingSurfaceInterop, scrollRect: ?*const RECT, clipRect: ?*const RECT, offsetX: i32, offsetY: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, ResumeDraw: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ICompositionDrawingSurfaceInterop, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ICompositionDrawingSurfaceInterop, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SuspendDraw: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ICompositionDrawingSurfaceInterop, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ICompositionDrawingSurfaceInterop, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ICompositionDrawingSurfaceInterop_BeginDraw(self: *const T, updateRect: ?*const RECT, iid: ?*const Guid, updateObject: ?*?*anyopaque, updateOffset: ?*POINT) HRESULT { return @as(*const ICompositionDrawingSurfaceInterop.VTable, @ptrCast(self.vtable)).BeginDraw(@as(*const ICompositionDrawingSurfaceInterop, @ptrCast(self)), updateRect, iid, updateObject, updateOffset); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ICompositionDrawingSurfaceInterop_EndDraw(self: *const T) HRESULT { return @as(*const ICompositionDrawingSurfaceInterop.VTable, @ptrCast(self.vtable)).EndDraw(@as(*const ICompositionDrawingSurfaceInterop, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ICompositionDrawingSurfaceInterop_Resize(self: *const T, sizePixels: SIZE) HRESULT { return @as(*const ICompositionDrawingSurfaceInterop.VTable, @ptrCast(self.vtable)).Resize(@as(*const ICompositionDrawingSurfaceInterop, @ptrCast(self)), sizePixels); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ICompositionDrawingSurfaceInterop_Scroll(self: *const T, scrollRect: ?*const RECT, clipRect: ?*const RECT, offsetX: i32, offsetY: i32) HRESULT { return @as(*const ICompositionDrawingSurfaceInterop.VTable, @ptrCast(self.vtable)).Scroll(@as(*const ICompositionDrawingSurfaceInterop, @ptrCast(self)), scrollRect, clipRect, offsetX, offsetY); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ICompositionDrawingSurfaceInterop_ResumeDraw(self: *const T) HRESULT { return @as(*const ICompositionDrawingSurfaceInterop.VTable, @ptrCast(self.vtable)).ResumeDraw(@as(*const ICompositionDrawingSurfaceInterop, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ICompositionDrawingSurfaceInterop_SuspendDraw(self: *const T) HRESULT { return @as(*const ICompositionDrawingSurfaceInterop.VTable, @ptrCast(self.vtable)).SuspendDraw(@as(*const ICompositionDrawingSurfaceInterop, @ptrCast(self))); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_ICompositionDrawingSurfaceInterop2_Value = Guid.initString("41e64aae-98c0-4239-8e95-a330dd6aa18b"); pub const IID_ICompositionDrawingSurfaceInterop2 = &IID_ICompositionDrawingSurfaceInterop2_Value; pub const ICompositionDrawingSurfaceInterop2 = extern struct { pub const VTable = extern struct { base: ICompositionDrawingSurfaceInterop.VTable, CopySurface: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ICompositionDrawingSurfaceInterop2, destinationResource: ?*IUnknown, destinationOffsetX: i32, destinationOffsetY: i32, sourceRectangle: ?*const RECT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ICompositionDrawingSurfaceInterop2, destinationResource: ?*IUnknown, destinationOffsetX: i32, destinationOffsetY: i32, sourceRectangle: ?*const RECT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace ICompositionDrawingSurfaceInterop.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ICompositionDrawingSurfaceInterop2_CopySurface(self: *const T, destinationResource: ?*IUnknown, destinationOffsetX: i32, destinationOffsetY: i32, sourceRectangle: ?*const RECT) HRESULT { return @as(*const ICompositionDrawingSurfaceInterop2.VTable, @ptrCast(self.vtable)).CopySurface(@as(*const ICompositionDrawingSurfaceInterop2, @ptrCast(self)), destinationResource, destinationOffsetX, destinationOffsetY, sourceRectangle); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_ICompositionGraphicsDeviceInterop_Value = Guid.initString("a116ff71-f8bf-4c8a-9c98-70779a32a9c8"); pub const IID_ICompositionGraphicsDeviceInterop = &IID_ICompositionGraphicsDeviceInterop_Value; pub const ICompositionGraphicsDeviceInterop = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, GetRenderingDevice: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ICompositionGraphicsDeviceInterop, value: ?*?*IUnknown, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ICompositionGraphicsDeviceInterop, value: ?*?*IUnknown, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetRenderingDevice: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ICompositionGraphicsDeviceInterop, value: ?*IUnknown, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ICompositionGraphicsDeviceInterop, value: ?*IUnknown, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ICompositionGraphicsDeviceInterop_GetRenderingDevice(self: *const T, value: ?*?*IUnknown) HRESULT { return @as(*const ICompositionGraphicsDeviceInterop.VTable, @ptrCast(self.vtable)).GetRenderingDevice(@as(*const ICompositionGraphicsDeviceInterop, @ptrCast(self)), value); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ICompositionGraphicsDeviceInterop_SetRenderingDevice(self: *const T, value: ?*IUnknown) HRESULT { return @as(*const ICompositionGraphicsDeviceInterop.VTable, @ptrCast(self.vtable)).SetRenderingDevice(@as(*const ICompositionGraphicsDeviceInterop, @ptrCast(self)), value); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_ICompositorInterop_Value = Guid.initString("25297d5c-3ad4-4c9c-b5cf-e36a38512330"); pub const IID_ICompositorInterop = &IID_ICompositorInterop_Value; pub const ICompositorInterop = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, CreateCompositionSurfaceForHandle: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ICompositorInterop, swapChain: ?HANDLE, result: ?**struct { comment: []const u8 = "MissingClrType ICompositionSurface.Windows.UI.Composition" }, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ICompositorInterop, swapChain: ?HANDLE, result: ?**struct { comment: []const u8 = "MissingClrType ICompositionSurface.Windows.UI.Composition" }, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, CreateCompositionSurfaceForSwapChain: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ICompositorInterop, swapChain: ?*IUnknown, result: ?**struct { comment: []const u8 = "MissingClrType ICompositionSurface.Windows.UI.Composition" }, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ICompositorInterop, swapChain: ?*IUnknown, result: ?**struct { comment: []const u8 = "MissingClrType ICompositionSurface.Windows.UI.Composition" }, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, CreateGraphicsDevice: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ICompositorInterop, renderingDevice: ?*IUnknown, result: ?**struct { comment: []const u8 = "MissingClrType CompositionGraphicsDevice.Windows.UI.Composition" }, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ICompositorInterop, renderingDevice: ?*IUnknown, result: ?**struct { comment: []const u8 = "MissingClrType CompositionGraphicsDevice.Windows.UI.Composition" }, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ICompositorInterop_CreateCompositionSurfaceForHandle(self: *const T, swapChain: ?HANDLE, result: ?**struct { comment: []const u8 = "MissingClrType ICompositionSurface.Windows.UI.Composition" }) HRESULT { return @as(*const ICompositorInterop.VTable, @ptrCast(self.vtable)).CreateCompositionSurfaceForHandle(@as(*const ICompositorInterop, @ptrCast(self)), swapChain, result); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ICompositorInterop_CreateCompositionSurfaceForSwapChain(self: *const T, swapChain: ?*IUnknown, result: ?**struct { comment: []const u8 = "MissingClrType ICompositionSurface.Windows.UI.Composition" }) HRESULT { return @as(*const ICompositorInterop.VTable, @ptrCast(self.vtable)).CreateCompositionSurfaceForSwapChain(@as(*const ICompositorInterop, @ptrCast(self)), swapChain, result); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ICompositorInterop_CreateGraphicsDevice(self: *const T, renderingDevice: ?*IUnknown, result: ?**struct { comment: []const u8 = "MissingClrType CompositionGraphicsDevice.Windows.UI.Composition" }) HRESULT { return @as(*const ICompositorInterop.VTable, @ptrCast(self.vtable)).CreateGraphicsDevice(@as(*const ICompositorInterop, @ptrCast(self)), renderingDevice, result); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_ISwapChainInterop_Value = Guid.initString("26f496a0-7f38-45fb-88f7-faaabe67dd59"); pub const IID_ISwapChainInterop = &IID_ISwapChainInterop_Value; pub const ISwapChainInterop = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, SetSwapChain: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ISwapChainInterop, swapChain: ?*IUnknown, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ISwapChainInterop, swapChain: ?*IUnknown, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISwapChainInterop_SetSwapChain(self: *const T, swapChain: ?*IUnknown) HRESULT { return @as(*const ISwapChainInterop.VTable, @ptrCast(self.vtable)).SetSwapChain(@as(*const ISwapChainInterop, @ptrCast(self)), swapChain); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IVisualInteractionSourceInterop_Value = Guid.initString("11f62cd1-2f9d-42d3-b05f-d6790d9e9f8e"); pub const IID_IVisualInteractionSourceInterop = &IID_IVisualInteractionSourceInterop_Value; pub const IVisualInteractionSourceInterop = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, TryRedirectForManipulation: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IVisualInteractionSourceInterop, pointerInfo: ?*const POINTER_INFO, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IVisualInteractionSourceInterop, pointerInfo: ?*const POINTER_INFO, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IVisualInteractionSourceInterop_TryRedirectForManipulation(self: *const T, pointerInfo: ?*const POINTER_INFO) HRESULT { return @as(*const IVisualInteractionSourceInterop.VTable, @ptrCast(self.vtable)).TryRedirectForManipulation(@as(*const IVisualInteractionSourceInterop, @ptrCast(self)), pointerInfo); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_ICompositionCapabilitiesInteropFactory_Value = Guid.initString("2c9db356-e70d-4642-8298-bc4aa5b4865c"); pub const IID_ICompositionCapabilitiesInteropFactory = &IID_ICompositionCapabilitiesInteropFactory_Value; pub const ICompositionCapabilitiesInteropFactory = extern struct { pub const VTable = extern struct { base: IInspectable.VTable, GetForWindow: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ICompositionCapabilitiesInteropFactory, hwnd: ?HWND, result: ?**struct { comment: []const u8 = "MissingClrType CompositionCapabilities.Windows.UI.Composition" }, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ICompositionCapabilitiesInteropFactory, hwnd: ?HWND, result: ?**struct { comment: []const u8 = "MissingClrType CompositionCapabilities.Windows.UI.Composition" }, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IInspectable.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ICompositionCapabilitiesInteropFactory_GetForWindow(self: *const T, hwnd: ?HWND, result: ?**struct { comment: []const u8 = "MissingClrType CompositionCapabilities.Windows.UI.Composition" }) HRESULT { return @as(*const ICompositionCapabilitiesInteropFactory.VTable, @ptrCast(self.vtable)).GetForWindow(@as(*const ICompositionCapabilitiesInteropFactory, @ptrCast(self)), hwnd, result); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_ICompositorDesktopInterop_Value = Guid.initString("29e691fa-4567-4dca-b319-d0f207eb6807"); pub const IID_ICompositorDesktopInterop = &IID_ICompositorDesktopInterop_Value; pub const ICompositorDesktopInterop = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, CreateDesktopWindowTarget: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ICompositorDesktopInterop, hwndTarget: ?HWND, isTopmost: BOOL, result: ?**struct { comment: []const u8 = "MissingClrType DesktopWindowTarget.Windows.UI.Composition.Desktop" }, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ICompositorDesktopInterop, hwndTarget: ?HWND, isTopmost: BOOL, result: ?**struct { comment: []const u8 = "MissingClrType DesktopWindowTarget.Windows.UI.Composition.Desktop" }, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, EnsureOnThread: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ICompositorDesktopInterop, threadId: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ICompositorDesktopInterop, threadId: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ICompositorDesktopInterop_CreateDesktopWindowTarget(self: *const T, hwndTarget: ?HWND, isTopmost: BOOL, result: ?**struct { comment: []const u8 = "MissingClrType DesktopWindowTarget.Windows.UI.Composition.Desktop" }) HRESULT { return @as(*const ICompositorDesktopInterop.VTable, @ptrCast(self.vtable)).CreateDesktopWindowTarget(@as(*const ICompositorDesktopInterop, @ptrCast(self)), hwndTarget, isTopmost, result); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ICompositorDesktopInterop_EnsureOnThread(self: *const T, threadId: u32) HRESULT { return @as(*const ICompositorDesktopInterop.VTable, @ptrCast(self.vtable)).EnsureOnThread(@as(*const ICompositorDesktopInterop, @ptrCast(self)), threadId); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IDesktopWindowTargetInterop_Value = Guid.initString("35dbf59e-e3f9-45b0-81e7-fe75f4145dc9"); pub const IID_IDesktopWindowTargetInterop = &IID_IDesktopWindowTargetInterop_Value; pub const IDesktopWindowTargetInterop = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, // TODO: this function has a "SpecialName", should Zig do anything with this? get_Hwnd: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IDesktopWindowTargetInterop, value: ?*?HWND, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IDesktopWindowTargetInterop, value: ?*?HWND, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDesktopWindowTargetInterop_get_Hwnd(self: *const T, value: ?*?HWND) HRESULT { return @as(*const IDesktopWindowTargetInterop.VTable, @ptrCast(self.vtable)).get_Hwnd(@as(*const IDesktopWindowTargetInterop, @ptrCast(self)), value); } }; } pub usingnamespace MethodMixin(@This()); }; //-------------------------------------------------------------------------------- // Section: Functions (0) //-------------------------------------------------------------------------------- //-------------------------------------------------------------------------------- // Section: Unicode Aliases (0) //-------------------------------------------------------------------------------- const thismodule = @This(); pub usingnamespace switch (@import("../../zig.zig").unicode_mode) { .ansi => struct {}, .wide => struct {}, .unspecified => if (@import("builtin").is_test) struct {} else struct {}, }; //-------------------------------------------------------------------------------- // Section: Imports (11) //-------------------------------------------------------------------------------- const Guid = @import("../../zig.zig").Guid; const BOOL = @import("../../foundation.zig").BOOL; const HANDLE = @import("../../foundation.zig").HANDLE; const HRESULT = @import("../../foundation.zig").HRESULT; const HWND = @import("../../foundation.zig").HWND; const IInspectable = @import("../../system/win_rt.zig").IInspectable; const IUnknown = @import("../../system/com.zig").IUnknown; const POINT = @import("../../foundation.zig").POINT; const POINTER_INFO = @import("../../ui/input/pointer.zig").POINTER_INFO; const RECT = @import("../../foundation.zig").RECT; const SIZE = @import("../../foundation.zig").SIZE; test { @setEvalBranchQuota(comptime @import("std").meta.declarations(@This()).len * 3); // reference all the pub declarations if (!@import("builtin").is_test) return; inline for (comptime @import("std").meta.declarations(@This())) |decl| { if (decl.is_pub) { _ = @field(@This(), decl.name); } } }
0
repos/capy/vendor/zigwin32/win32/system
repos/capy/vendor/zigwin32/win32/system/win_rt/xaml.zig
//! NOTE: this file is autogenerated, DO NOT MODIFY //-------------------------------------------------------------------------------- // Section: Constants (1) //-------------------------------------------------------------------------------- pub const E_SURFACE_CONTENTS_LOST = @as(u32, 2150301728); //-------------------------------------------------------------------------------- // Section: Types (19) //-------------------------------------------------------------------------------- const IID_ISurfaceImageSourceNative_Value = Guid.initString("f2e9edc1-d307-4525-9886-0fafaa44163c"); pub const IID_ISurfaceImageSourceNative = &IID_ISurfaceImageSourceNative_Value; pub const ISurfaceImageSourceNative = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, SetDevice: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ISurfaceImageSourceNative, device: ?*IDXGIDevice, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ISurfaceImageSourceNative, device: ?*IDXGIDevice, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, BeginDraw: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ISurfaceImageSourceNative, updateRect: RECT, surface: ?*?*IDXGISurface, offset: ?*POINT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ISurfaceImageSourceNative, updateRect: RECT, surface: ?*?*IDXGISurface, offset: ?*POINT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, EndDraw: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ISurfaceImageSourceNative, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ISurfaceImageSourceNative, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISurfaceImageSourceNative_SetDevice(self: *const T, device: ?*IDXGIDevice) HRESULT { return @as(*const ISurfaceImageSourceNative.VTable, @ptrCast(self.vtable)).SetDevice(@as(*const ISurfaceImageSourceNative, @ptrCast(self)), device); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISurfaceImageSourceNative_BeginDraw(self: *const T, updateRect: RECT, surface: ?*?*IDXGISurface, offset: ?*POINT) HRESULT { return @as(*const ISurfaceImageSourceNative.VTable, @ptrCast(self.vtable)).BeginDraw(@as(*const ISurfaceImageSourceNative, @ptrCast(self)), updateRect, surface, offset); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISurfaceImageSourceNative_EndDraw(self: *const T) HRESULT { return @as(*const ISurfaceImageSourceNative.VTable, @ptrCast(self.vtable)).EndDraw(@as(*const ISurfaceImageSourceNative, @ptrCast(self))); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IVirtualSurfaceUpdatesCallbackNative_Value = Guid.initString("dbf2e947-8e6c-4254-9eee-7738f71386c9"); pub const IID_IVirtualSurfaceUpdatesCallbackNative = &IID_IVirtualSurfaceUpdatesCallbackNative_Value; pub const IVirtualSurfaceUpdatesCallbackNative = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, UpdatesNeeded: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IVirtualSurfaceUpdatesCallbackNative, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IVirtualSurfaceUpdatesCallbackNative, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IVirtualSurfaceUpdatesCallbackNative_UpdatesNeeded(self: *const T) HRESULT { return @as(*const IVirtualSurfaceUpdatesCallbackNative.VTable, @ptrCast(self.vtable)).UpdatesNeeded(@as(*const IVirtualSurfaceUpdatesCallbackNative, @ptrCast(self))); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IVirtualSurfaceImageSourceNative_Value = Guid.initString("e9550983-360b-4f53-b391-afd695078691"); pub const IID_IVirtualSurfaceImageSourceNative = &IID_IVirtualSurfaceImageSourceNative_Value; pub const IVirtualSurfaceImageSourceNative = extern struct { pub const VTable = extern struct { base: ISurfaceImageSourceNative.VTable, Invalidate: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IVirtualSurfaceImageSourceNative, updateRect: RECT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IVirtualSurfaceImageSourceNative, updateRect: RECT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetUpdateRectCount: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IVirtualSurfaceImageSourceNative, count: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IVirtualSurfaceImageSourceNative, count: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetUpdateRects: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IVirtualSurfaceImageSourceNative, updates: [*]RECT, count: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IVirtualSurfaceImageSourceNative, updates: [*]RECT, count: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetVisibleBounds: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IVirtualSurfaceImageSourceNative, bounds: ?*RECT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IVirtualSurfaceImageSourceNative, bounds: ?*RECT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, RegisterForUpdatesNeeded: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IVirtualSurfaceImageSourceNative, callback: ?*IVirtualSurfaceUpdatesCallbackNative, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IVirtualSurfaceImageSourceNative, callback: ?*IVirtualSurfaceUpdatesCallbackNative, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Resize: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IVirtualSurfaceImageSourceNative, newWidth: i32, newHeight: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IVirtualSurfaceImageSourceNative, newWidth: i32, newHeight: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace ISurfaceImageSourceNative.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IVirtualSurfaceImageSourceNative_Invalidate(self: *const T, updateRect: RECT) HRESULT { return @as(*const IVirtualSurfaceImageSourceNative.VTable, @ptrCast(self.vtable)).Invalidate(@as(*const IVirtualSurfaceImageSourceNative, @ptrCast(self)), updateRect); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IVirtualSurfaceImageSourceNative_GetUpdateRectCount(self: *const T, count: ?*u32) HRESULT { return @as(*const IVirtualSurfaceImageSourceNative.VTable, @ptrCast(self.vtable)).GetUpdateRectCount(@as(*const IVirtualSurfaceImageSourceNative, @ptrCast(self)), count); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IVirtualSurfaceImageSourceNative_GetUpdateRects(self: *const T, updates: [*]RECT, count: u32) HRESULT { return @as(*const IVirtualSurfaceImageSourceNative.VTable, @ptrCast(self.vtable)).GetUpdateRects(@as(*const IVirtualSurfaceImageSourceNative, @ptrCast(self)), updates, count); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IVirtualSurfaceImageSourceNative_GetVisibleBounds(self: *const T, bounds: ?*RECT) HRESULT { return @as(*const IVirtualSurfaceImageSourceNative.VTable, @ptrCast(self.vtable)).GetVisibleBounds(@as(*const IVirtualSurfaceImageSourceNative, @ptrCast(self)), bounds); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IVirtualSurfaceImageSourceNative_RegisterForUpdatesNeeded(self: *const T, callback: ?*IVirtualSurfaceUpdatesCallbackNative) HRESULT { return @as(*const IVirtualSurfaceImageSourceNative.VTable, @ptrCast(self.vtable)).RegisterForUpdatesNeeded(@as(*const IVirtualSurfaceImageSourceNative, @ptrCast(self)), callback); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IVirtualSurfaceImageSourceNative_Resize(self: *const T, newWidth: i32, newHeight: i32) HRESULT { return @as(*const IVirtualSurfaceImageSourceNative.VTable, @ptrCast(self.vtable)).Resize(@as(*const IVirtualSurfaceImageSourceNative, @ptrCast(self)), newWidth, newHeight); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_ISwapChainBackgroundPanelNative_Value = Guid.initString("43bebd4e-add5-4035-8f85-5608d08e9dc9"); pub const IID_ISwapChainBackgroundPanelNative = &IID_ISwapChainBackgroundPanelNative_Value; pub const ISwapChainBackgroundPanelNative = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, SetSwapChain: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ISwapChainBackgroundPanelNative, swapChain: ?*IDXGISwapChain, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ISwapChainBackgroundPanelNative, swapChain: ?*IDXGISwapChain, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISwapChainBackgroundPanelNative_SetSwapChain(self: *const T, swapChain: ?*IDXGISwapChain) HRESULT { return @as(*const ISwapChainBackgroundPanelNative.VTable, @ptrCast(self.vtable)).SetSwapChain(@as(*const ISwapChainBackgroundPanelNative, @ptrCast(self)), swapChain); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_ISurfaceImageSourceManagerNative_Value = Guid.initString("4c8798b7-1d88-4a0f-b59b-b93f600de8c8"); pub const IID_ISurfaceImageSourceManagerNative = &IID_ISurfaceImageSourceManagerNative_Value; pub const ISurfaceImageSourceManagerNative = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, FlushAllSurfacesWithDevice: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ISurfaceImageSourceManagerNative, device: ?*IUnknown, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ISurfaceImageSourceManagerNative, device: ?*IUnknown, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISurfaceImageSourceManagerNative_FlushAllSurfacesWithDevice(self: *const T, device: ?*IUnknown) HRESULT { return @as(*const ISurfaceImageSourceManagerNative.VTable, @ptrCast(self.vtable)).FlushAllSurfacesWithDevice(@as(*const ISurfaceImageSourceManagerNative, @ptrCast(self)), device); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_ISurfaceImageSourceNativeWithD2D_Value = Guid.initString("54298223-41e1-4a41-9c08-02e8256864a1"); pub const IID_ISurfaceImageSourceNativeWithD2D = &IID_ISurfaceImageSourceNativeWithD2D_Value; pub const ISurfaceImageSourceNativeWithD2D = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, SetDevice: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ISurfaceImageSourceNativeWithD2D, device: ?*IUnknown, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ISurfaceImageSourceNativeWithD2D, device: ?*IUnknown, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, BeginDraw: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ISurfaceImageSourceNativeWithD2D, updateRect: ?*const RECT, iid: ?*const Guid, updateObject: ?*?*anyopaque, offset: ?*POINT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ISurfaceImageSourceNativeWithD2D, updateRect: ?*const RECT, iid: ?*const Guid, updateObject: ?*?*anyopaque, offset: ?*POINT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, EndDraw: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ISurfaceImageSourceNativeWithD2D, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ISurfaceImageSourceNativeWithD2D, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SuspendDraw: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ISurfaceImageSourceNativeWithD2D, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ISurfaceImageSourceNativeWithD2D, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, ResumeDraw: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ISurfaceImageSourceNativeWithD2D, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ISurfaceImageSourceNativeWithD2D, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISurfaceImageSourceNativeWithD2D_SetDevice(self: *const T, device: ?*IUnknown) HRESULT { return @as(*const ISurfaceImageSourceNativeWithD2D.VTable, @ptrCast(self.vtable)).SetDevice(@as(*const ISurfaceImageSourceNativeWithD2D, @ptrCast(self)), device); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISurfaceImageSourceNativeWithD2D_BeginDraw(self: *const T, updateRect: ?*const RECT, iid: ?*const Guid, updateObject: ?*?*anyopaque, offset: ?*POINT) HRESULT { return @as(*const ISurfaceImageSourceNativeWithD2D.VTable, @ptrCast(self.vtable)).BeginDraw(@as(*const ISurfaceImageSourceNativeWithD2D, @ptrCast(self)), updateRect, iid, updateObject, offset); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISurfaceImageSourceNativeWithD2D_EndDraw(self: *const T) HRESULT { return @as(*const ISurfaceImageSourceNativeWithD2D.VTable, @ptrCast(self.vtable)).EndDraw(@as(*const ISurfaceImageSourceNativeWithD2D, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISurfaceImageSourceNativeWithD2D_SuspendDraw(self: *const T) HRESULT { return @as(*const ISurfaceImageSourceNativeWithD2D.VTable, @ptrCast(self.vtable)).SuspendDraw(@as(*const ISurfaceImageSourceNativeWithD2D, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISurfaceImageSourceNativeWithD2D_ResumeDraw(self: *const T) HRESULT { return @as(*const ISurfaceImageSourceNativeWithD2D.VTable, @ptrCast(self.vtable)).ResumeDraw(@as(*const ISurfaceImageSourceNativeWithD2D, @ptrCast(self))); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_ISwapChainPanelNative_Value = Guid.initString("f92f19d2-3ade-45a6-a20c-f6f1ea90554b"); pub const IID_ISwapChainPanelNative = &IID_ISwapChainPanelNative_Value; pub const ISwapChainPanelNative = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, SetSwapChain: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ISwapChainPanelNative, swapChain: ?*IDXGISwapChain, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ISwapChainPanelNative, swapChain: ?*IDXGISwapChain, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISwapChainPanelNative_SetSwapChain(self: *const T, swapChain: ?*IDXGISwapChain) HRESULT { return @as(*const ISwapChainPanelNative.VTable, @ptrCast(self.vtable)).SetSwapChain(@as(*const ISwapChainPanelNative, @ptrCast(self)), swapChain); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_ISwapChainPanelNative2_Value = Guid.initString("d5a2f60c-37b2-44a2-937b-8d8eb9726821"); pub const IID_ISwapChainPanelNative2 = &IID_ISwapChainPanelNative2_Value; pub const ISwapChainPanelNative2 = extern struct { pub const VTable = extern struct { base: ISwapChainPanelNative.VTable, SetSwapChainHandle: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ISwapChainPanelNative2, swapChainHandle: ?HANDLE, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ISwapChainPanelNative2, swapChainHandle: ?HANDLE, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace ISwapChainPanelNative.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISwapChainPanelNative2_SetSwapChainHandle(self: *const T, swapChainHandle: ?HANDLE) HRESULT { return @as(*const ISwapChainPanelNative2.VTable, @ptrCast(self.vtable)).SetSwapChainHandle(@as(*const ISwapChainPanelNative2, @ptrCast(self)), swapChainHandle); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IDesktopWindowXamlSourceNative_Value = Guid.initString("3cbcf1bf-2f76-4e9c-96ab-e84b37972554"); pub const IID_IDesktopWindowXamlSourceNative = &IID_IDesktopWindowXamlSourceNative_Value; pub const IDesktopWindowXamlSourceNative = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, AttachToWindow: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDesktopWindowXamlSourceNative, parentWnd: ?HWND, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDesktopWindowXamlSourceNative, parentWnd: ?HWND, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_WindowHandle: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IDesktopWindowXamlSourceNative, hWnd: ?*?HWND, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IDesktopWindowXamlSourceNative, hWnd: ?*?HWND, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDesktopWindowXamlSourceNative_AttachToWindow(self: *const T, parentWnd: ?HWND) HRESULT { return @as(*const IDesktopWindowXamlSourceNative.VTable, @ptrCast(self.vtable)).AttachToWindow(@as(*const IDesktopWindowXamlSourceNative, @ptrCast(self)), parentWnd); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDesktopWindowXamlSourceNative_get_WindowHandle(self: *const T, hWnd: ?*?HWND) HRESULT { return @as(*const IDesktopWindowXamlSourceNative.VTable, @ptrCast(self.vtable)).get_WindowHandle(@as(*const IDesktopWindowXamlSourceNative, @ptrCast(self)), hWnd); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IDesktopWindowXamlSourceNative2_Value = Guid.initString("e3dcd8c7-3057-4692-99c3-7b7720afda31"); pub const IID_IDesktopWindowXamlSourceNative2 = &IID_IDesktopWindowXamlSourceNative2_Value; pub const IDesktopWindowXamlSourceNative2 = extern struct { pub const VTable = extern struct { base: IDesktopWindowXamlSourceNative.VTable, PreTranslateMessage: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IDesktopWindowXamlSourceNative2, message: ?*const MSG, result: ?*BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IDesktopWindowXamlSourceNative2, message: ?*const MSG, result: ?*BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IDesktopWindowXamlSourceNative.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IDesktopWindowXamlSourceNative2_PreTranslateMessage(self: *const T, message: ?*const MSG, result: ?*BOOL) HRESULT { return @as(*const IDesktopWindowXamlSourceNative2.VTable, @ptrCast(self.vtable)).PreTranslateMessage(@as(*const IDesktopWindowXamlSourceNative2, @ptrCast(self)), message, result); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IReferenceTrackerTarget_Value = Guid.initString("64bd43f8-bfee-4ec4-b7eb-2935158dae21"); pub const IID_IReferenceTrackerTarget = &IID_IReferenceTrackerTarget_Value; pub const IReferenceTrackerTarget = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, AddRefFromReferenceTracker: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IReferenceTrackerTarget, ) callconv(@import("std").os.windows.WINAPI) u32, else => *const fn ( self: *const IReferenceTrackerTarget, ) callconv(@import("std").os.windows.WINAPI) u32, }, ReleaseFromReferenceTracker: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IReferenceTrackerTarget, ) callconv(@import("std").os.windows.WINAPI) u32, else => *const fn ( self: *const IReferenceTrackerTarget, ) callconv(@import("std").os.windows.WINAPI) u32, }, Peg: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IReferenceTrackerTarget, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IReferenceTrackerTarget, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Unpeg: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IReferenceTrackerTarget, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IReferenceTrackerTarget, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IReferenceTrackerTarget_AddRefFromReferenceTracker(self: *const T) u32 { return @as(*const IReferenceTrackerTarget.VTable, @ptrCast(self.vtable)).AddRefFromReferenceTracker(@as(*const IReferenceTrackerTarget, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IReferenceTrackerTarget_ReleaseFromReferenceTracker(self: *const T) u32 { return @as(*const IReferenceTrackerTarget.VTable, @ptrCast(self.vtable)).ReleaseFromReferenceTracker(@as(*const IReferenceTrackerTarget, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IReferenceTrackerTarget_Peg(self: *const T) HRESULT { return @as(*const IReferenceTrackerTarget.VTable, @ptrCast(self.vtable)).Peg(@as(*const IReferenceTrackerTarget, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IReferenceTrackerTarget_Unpeg(self: *const T) HRESULT { return @as(*const IReferenceTrackerTarget.VTable, @ptrCast(self.vtable)).Unpeg(@as(*const IReferenceTrackerTarget, @ptrCast(self))); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IReferenceTracker_Value = Guid.initString("11d3b13a-180e-4789-a8be-7712882893e6"); pub const IID_IReferenceTracker = &IID_IReferenceTracker_Value; pub const IReferenceTracker = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, ConnectFromTrackerSource: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IReferenceTracker, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IReferenceTracker, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, DisconnectFromTrackerSource: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IReferenceTracker, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IReferenceTracker, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, FindTrackerTargets: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IReferenceTracker, callback: ?*IFindReferenceTargetsCallback, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IReferenceTracker, callback: ?*IFindReferenceTargetsCallback, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetReferenceTrackerManager: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IReferenceTracker, value: ?*?*IReferenceTrackerManager, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IReferenceTracker, value: ?*?*IReferenceTrackerManager, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, AddRefFromTrackerSource: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IReferenceTracker, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IReferenceTracker, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, ReleaseFromTrackerSource: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IReferenceTracker, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IReferenceTracker, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, PegFromTrackerSource: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IReferenceTracker, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IReferenceTracker, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IReferenceTracker_ConnectFromTrackerSource(self: *const T) HRESULT { return @as(*const IReferenceTracker.VTable, @ptrCast(self.vtable)).ConnectFromTrackerSource(@as(*const IReferenceTracker, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IReferenceTracker_DisconnectFromTrackerSource(self: *const T) HRESULT { return @as(*const IReferenceTracker.VTable, @ptrCast(self.vtable)).DisconnectFromTrackerSource(@as(*const IReferenceTracker, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IReferenceTracker_FindTrackerTargets(self: *const T, callback: ?*IFindReferenceTargetsCallback) HRESULT { return @as(*const IReferenceTracker.VTable, @ptrCast(self.vtable)).FindTrackerTargets(@as(*const IReferenceTracker, @ptrCast(self)), callback); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IReferenceTracker_GetReferenceTrackerManager(self: *const T, value: ?*?*IReferenceTrackerManager) HRESULT { return @as(*const IReferenceTracker.VTable, @ptrCast(self.vtable)).GetReferenceTrackerManager(@as(*const IReferenceTracker, @ptrCast(self)), value); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IReferenceTracker_AddRefFromTrackerSource(self: *const T) HRESULT { return @as(*const IReferenceTracker.VTable, @ptrCast(self.vtable)).AddRefFromTrackerSource(@as(*const IReferenceTracker, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IReferenceTracker_ReleaseFromTrackerSource(self: *const T) HRESULT { return @as(*const IReferenceTracker.VTable, @ptrCast(self.vtable)).ReleaseFromTrackerSource(@as(*const IReferenceTracker, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IReferenceTracker_PegFromTrackerSource(self: *const T) HRESULT { return @as(*const IReferenceTracker.VTable, @ptrCast(self.vtable)).PegFromTrackerSource(@as(*const IReferenceTracker, @ptrCast(self))); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IReferenceTrackerManager_Value = Guid.initString("3cf184b4-7ccb-4dda-8455-7e6ce99a3298"); pub const IID_IReferenceTrackerManager = &IID_IReferenceTrackerManager_Value; pub const IReferenceTrackerManager = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, ReferenceTrackingStarted: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IReferenceTrackerManager, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IReferenceTrackerManager, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, FindTrackerTargetsCompleted: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IReferenceTrackerManager, findFailed: u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IReferenceTrackerManager, findFailed: u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, ReferenceTrackingCompleted: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IReferenceTrackerManager, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IReferenceTrackerManager, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetReferenceTrackerHost: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IReferenceTrackerManager, value: ?*IReferenceTrackerHost, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IReferenceTrackerManager, value: ?*IReferenceTrackerHost, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IReferenceTrackerManager_ReferenceTrackingStarted(self: *const T) HRESULT { return @as(*const IReferenceTrackerManager.VTable, @ptrCast(self.vtable)).ReferenceTrackingStarted(@as(*const IReferenceTrackerManager, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IReferenceTrackerManager_FindTrackerTargetsCompleted(self: *const T, findFailed: u8) HRESULT { return @as(*const IReferenceTrackerManager.VTable, @ptrCast(self.vtable)).FindTrackerTargetsCompleted(@as(*const IReferenceTrackerManager, @ptrCast(self)), findFailed); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IReferenceTrackerManager_ReferenceTrackingCompleted(self: *const T) HRESULT { return @as(*const IReferenceTrackerManager.VTable, @ptrCast(self.vtable)).ReferenceTrackingCompleted(@as(*const IReferenceTrackerManager, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IReferenceTrackerManager_SetReferenceTrackerHost(self: *const T, value: ?*IReferenceTrackerHost) HRESULT { return @as(*const IReferenceTrackerManager.VTable, @ptrCast(self.vtable)).SetReferenceTrackerHost(@as(*const IReferenceTrackerManager, @ptrCast(self)), value); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IFindReferenceTargetsCallback_Value = Guid.initString("04b3486c-4687-4229-8d14-505ab584dd88"); pub const IID_IFindReferenceTargetsCallback = &IID_IFindReferenceTargetsCallback_Value; pub const IFindReferenceTargetsCallback = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, FoundTrackerTarget: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IFindReferenceTargetsCallback, target: ?*IReferenceTrackerTarget, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IFindReferenceTargetsCallback, target: ?*IReferenceTrackerTarget, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IFindReferenceTargetsCallback_FoundTrackerTarget(self: *const T, target: ?*IReferenceTrackerTarget) HRESULT { return @as(*const IFindReferenceTargetsCallback.VTable, @ptrCast(self.vtable)).FoundTrackerTarget(@as(*const IFindReferenceTargetsCallback, @ptrCast(self)), target); } }; } pub usingnamespace MethodMixin(@This()); }; pub const XAML_REFERENCETRACKER_DISCONNECT = enum(i32) { DEFAULT = 0, SUSPEND = 1, }; pub const XAML_REFERENCETRACKER_DISCONNECT_DEFAULT = XAML_REFERENCETRACKER_DISCONNECT.DEFAULT; pub const XAML_REFERENCETRACKER_DISCONNECT_SUSPEND = XAML_REFERENCETRACKER_DISCONNECT.SUSPEND; const IID_IReferenceTrackerHost_Value = Guid.initString("29a71c6a-3c42-4416-a39d-e2825a07a773"); pub const IID_IReferenceTrackerHost = &IID_IReferenceTrackerHost_Value; pub const IReferenceTrackerHost = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, DisconnectUnusedReferenceSources: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IReferenceTrackerHost, options: XAML_REFERENCETRACKER_DISCONNECT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IReferenceTrackerHost, options: XAML_REFERENCETRACKER_DISCONNECT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, ReleaseDisconnectedReferenceSources: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IReferenceTrackerHost, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IReferenceTrackerHost, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, NotifyEndOfReferenceTrackingOnThread: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IReferenceTrackerHost, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IReferenceTrackerHost, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetTrackerTarget: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IReferenceTrackerHost, unknown: ?*IUnknown, newReference: ?*?*IReferenceTrackerTarget, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IReferenceTrackerHost, unknown: ?*IUnknown, newReference: ?*?*IReferenceTrackerTarget, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, AddMemoryPressure: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IReferenceTrackerHost, bytesAllocated: u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IReferenceTrackerHost, bytesAllocated: u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, RemoveMemoryPressure: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IReferenceTrackerHost, bytesAllocated: u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IReferenceTrackerHost, bytesAllocated: u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IReferenceTrackerHost_DisconnectUnusedReferenceSources(self: *const T, options: XAML_REFERENCETRACKER_DISCONNECT) HRESULT { return @as(*const IReferenceTrackerHost.VTable, @ptrCast(self.vtable)).DisconnectUnusedReferenceSources(@as(*const IReferenceTrackerHost, @ptrCast(self)), options); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IReferenceTrackerHost_ReleaseDisconnectedReferenceSources(self: *const T) HRESULT { return @as(*const IReferenceTrackerHost.VTable, @ptrCast(self.vtable)).ReleaseDisconnectedReferenceSources(@as(*const IReferenceTrackerHost, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IReferenceTrackerHost_NotifyEndOfReferenceTrackingOnThread(self: *const T) HRESULT { return @as(*const IReferenceTrackerHost.VTable, @ptrCast(self.vtable)).NotifyEndOfReferenceTrackingOnThread(@as(*const IReferenceTrackerHost, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IReferenceTrackerHost_GetTrackerTarget(self: *const T, unknown: ?*IUnknown, newReference: ?*?*IReferenceTrackerTarget) HRESULT { return @as(*const IReferenceTrackerHost.VTable, @ptrCast(self.vtable)).GetTrackerTarget(@as(*const IReferenceTrackerHost, @ptrCast(self)), unknown, newReference); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IReferenceTrackerHost_AddMemoryPressure(self: *const T, bytesAllocated: u64) HRESULT { return @as(*const IReferenceTrackerHost.VTable, @ptrCast(self.vtable)).AddMemoryPressure(@as(*const IReferenceTrackerHost, @ptrCast(self)), bytesAllocated); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IReferenceTrackerHost_RemoveMemoryPressure(self: *const T, bytesAllocated: u64) HRESULT { return @as(*const IReferenceTrackerHost.VTable, @ptrCast(self.vtable)).RemoveMemoryPressure(@as(*const IReferenceTrackerHost, @ptrCast(self)), bytesAllocated); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IReferenceTrackerExtension_Value = Guid.initString("4e897caa-59d5-4613-8f8c-f7ebd1f399b0"); pub const IID_IReferenceTrackerExtension = &IID_IReferenceTrackerExtension_Value; pub const IReferenceTrackerExtension = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); }; } pub usingnamespace MethodMixin(@This()); }; pub const TrackerHandle__ = extern struct { unused: i32, }; const IID_ITrackerOwner_Value = Guid.initString("eb24c20b-9816-4ac7-8cff-36f67a118f4e"); pub const IID_ITrackerOwner = &IID_ITrackerOwner_Value; pub const ITrackerOwner = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, CreateTrackerHandle: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ITrackerOwner, returnValue: ?*?*TrackerHandle__, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ITrackerOwner, returnValue: ?*?*TrackerHandle__, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, DeleteTrackerHandle: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ITrackerOwner, handle: ?*TrackerHandle__, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ITrackerOwner, handle: ?*TrackerHandle__, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetTrackerValue: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ITrackerOwner, handle: ?*TrackerHandle__, value: ?*IUnknown, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ITrackerOwner, handle: ?*TrackerHandle__, value: ?*IUnknown, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, TryGetSafeTrackerValue: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ITrackerOwner, handle: ?*TrackerHandle__, returnValue: ?*?*IUnknown, ) callconv(@import("std").os.windows.WINAPI) u8, else => *const fn ( self: *const ITrackerOwner, handle: ?*TrackerHandle__, returnValue: ?*?*IUnknown, ) callconv(@import("std").os.windows.WINAPI) u8, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITrackerOwner_CreateTrackerHandle(self: *const T, returnValue: ?*?*TrackerHandle__) HRESULT { return @as(*const ITrackerOwner.VTable, @ptrCast(self.vtable)).CreateTrackerHandle(@as(*const ITrackerOwner, @ptrCast(self)), returnValue); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITrackerOwner_DeleteTrackerHandle(self: *const T, handle: ?*TrackerHandle__) HRESULT { return @as(*const ITrackerOwner.VTable, @ptrCast(self.vtable)).DeleteTrackerHandle(@as(*const ITrackerOwner, @ptrCast(self)), handle); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITrackerOwner_SetTrackerValue(self: *const T, handle: ?*TrackerHandle__, value: ?*IUnknown) HRESULT { return @as(*const ITrackerOwner.VTable, @ptrCast(self.vtable)).SetTrackerValue(@as(*const ITrackerOwner, @ptrCast(self)), handle, value); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ITrackerOwner_TryGetSafeTrackerValue(self: *const T, handle: ?*TrackerHandle__, returnValue: ?*?*IUnknown) u8 { return @as(*const ITrackerOwner.VTable, @ptrCast(self.vtable)).TryGetSafeTrackerValue(@as(*const ITrackerOwner, @ptrCast(self)), handle, returnValue); } }; } pub usingnamespace MethodMixin(@This()); }; //-------------------------------------------------------------------------------- // Section: Functions (0) //-------------------------------------------------------------------------------- //-------------------------------------------------------------------------------- // Section: Unicode Aliases (0) //-------------------------------------------------------------------------------- const thismodule = @This(); pub usingnamespace switch (@import("../../zig.zig").unicode_mode) { .ansi => struct {}, .wide => struct {}, .unspecified => if (@import("builtin").is_test) struct {} else struct {}, }; //-------------------------------------------------------------------------------- // Section: Imports (12) //-------------------------------------------------------------------------------- const Guid = @import("../../zig.zig").Guid; const BOOL = @import("../../foundation.zig").BOOL; const HANDLE = @import("../../foundation.zig").HANDLE; const HRESULT = @import("../../foundation.zig").HRESULT; const HWND = @import("../../foundation.zig").HWND; const IDXGIDevice = @import("../../graphics/dxgi.zig").IDXGIDevice; const IDXGISurface = @import("../../graphics/dxgi.zig").IDXGISurface; const IDXGISwapChain = @import("../../graphics/dxgi.zig").IDXGISwapChain; const IUnknown = @import("../../system/com.zig").IUnknown; const MSG = @import("../../ui/windows_and_messaging.zig").MSG; const POINT = @import("../../foundation.zig").POINT; const RECT = @import("../../foundation.zig").RECT; test { @setEvalBranchQuota(comptime @import("std").meta.declarations(@This()).len * 3); // reference all the pub declarations if (!@import("builtin").is_test) return; inline for (comptime @import("std").meta.declarations(@This())) |decl| { if (decl.is_pub) { _ = @field(@This(), decl.name); } } }
0
repos/capy/vendor/zigwin32/win32/system
repos/capy/vendor/zigwin32/win32/system/win_rt/graphics.zig
//! NOTE: this file is autogenerated, DO NOT MODIFY pub const capture = @import("graphics/capture.zig"); pub const direct2d = @import("graphics/direct2d.zig"); pub const imaging = @import("graphics/imaging.zig"); test { @import("std").testing.refAllDecls(@This()); }
0
repos/capy/vendor/zigwin32/win32/system/win_rt
repos/capy/vendor/zigwin32/win32/system/win_rt/graphics/capture.zig
//! NOTE: this file is autogenerated, DO NOT MODIFY //-------------------------------------------------------------------------------- // Section: Constants (0) //-------------------------------------------------------------------------------- //-------------------------------------------------------------------------------- // Section: Types (1) //-------------------------------------------------------------------------------- const IID_IGraphicsCaptureItemInterop_Value = Guid.initString("3628e81b-3cac-4c60-b7f4-23ce0e0c3356"); pub const IID_IGraphicsCaptureItemInterop = &IID_IGraphicsCaptureItemInterop_Value; pub const IGraphicsCaptureItemInterop = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, CreateForWindow: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IGraphicsCaptureItemInterop, window: ?HWND, riid: ?*const Guid, result: ?*?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IGraphicsCaptureItemInterop, window: ?HWND, riid: ?*const Guid, result: ?*?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, CreateForMonitor: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IGraphicsCaptureItemInterop, monitor: ?HMONITOR, riid: ?*const Guid, result: ?*?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IGraphicsCaptureItemInterop, monitor: ?HMONITOR, riid: ?*const Guid, result: ?*?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IGraphicsCaptureItemInterop_CreateForWindow(self: *const T, window: ?HWND, riid: ?*const Guid, result: ?*?*anyopaque) HRESULT { return @as(*const IGraphicsCaptureItemInterop.VTable, @ptrCast(self.vtable)).CreateForWindow(@as(*const IGraphicsCaptureItemInterop, @ptrCast(self)), window, riid, result); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IGraphicsCaptureItemInterop_CreateForMonitor(self: *const T, monitor: ?HMONITOR, riid: ?*const Guid, result: ?*?*anyopaque) HRESULT { return @as(*const IGraphicsCaptureItemInterop.VTable, @ptrCast(self.vtable)).CreateForMonitor(@as(*const IGraphicsCaptureItemInterop, @ptrCast(self)), monitor, riid, result); } }; } pub usingnamespace MethodMixin(@This()); }; //-------------------------------------------------------------------------------- // Section: Functions (0) //-------------------------------------------------------------------------------- //-------------------------------------------------------------------------------- // Section: Unicode Aliases (0) //-------------------------------------------------------------------------------- const thismodule = @This(); pub usingnamespace switch (@import("../../../zig.zig").unicode_mode) { .ansi => struct {}, .wide => struct {}, .unspecified => if (@import("builtin").is_test) struct {} else struct {}, }; //-------------------------------------------------------------------------------- // Section: Imports (5) //-------------------------------------------------------------------------------- const Guid = @import("../../../zig.zig").Guid; const HMONITOR = @import("../../../graphics/gdi.zig").HMONITOR; const HRESULT = @import("../../../foundation.zig").HRESULT; const HWND = @import("../../../foundation.zig").HWND; const IUnknown = @import("../../../system/com.zig").IUnknown; test { @setEvalBranchQuota(comptime @import("std").meta.declarations(@This()).len * 3); // reference all the pub declarations if (!@import("builtin").is_test) return; inline for (comptime @import("std").meta.declarations(@This())) |decl| { if (decl.is_pub) { _ = @field(@This(), decl.name); } } }
0
repos/capy/vendor/zigwin32/win32/system/win_rt
repos/capy/vendor/zigwin32/win32/system/win_rt/graphics/direct2d.zig
//! NOTE: this file is autogenerated, DO NOT MODIFY //-------------------------------------------------------------------------------- // Section: Constants (0) //-------------------------------------------------------------------------------- //-------------------------------------------------------------------------------- // Section: Types (3) //-------------------------------------------------------------------------------- pub const GRAPHICS_EFFECT_PROPERTY_MAPPING = enum(i32) { UNKNOWN = 0, DIRECT = 1, VECTORX = 2, VECTORY = 3, VECTORZ = 4, VECTORW = 5, RECT_TO_VECTOR4 = 6, RADIANS_TO_DEGREES = 7, COLORMATRIX_ALPHA_MODE = 8, COLOR_TO_VECTOR3 = 9, COLOR_TO_VECTOR4 = 10, }; pub const GRAPHICS_EFFECT_PROPERTY_MAPPING_UNKNOWN = GRAPHICS_EFFECT_PROPERTY_MAPPING.UNKNOWN; pub const GRAPHICS_EFFECT_PROPERTY_MAPPING_DIRECT = GRAPHICS_EFFECT_PROPERTY_MAPPING.DIRECT; pub const GRAPHICS_EFFECT_PROPERTY_MAPPING_VECTORX = GRAPHICS_EFFECT_PROPERTY_MAPPING.VECTORX; pub const GRAPHICS_EFFECT_PROPERTY_MAPPING_VECTORY = GRAPHICS_EFFECT_PROPERTY_MAPPING.VECTORY; pub const GRAPHICS_EFFECT_PROPERTY_MAPPING_VECTORZ = GRAPHICS_EFFECT_PROPERTY_MAPPING.VECTORZ; pub const GRAPHICS_EFFECT_PROPERTY_MAPPING_VECTORW = GRAPHICS_EFFECT_PROPERTY_MAPPING.VECTORW; pub const GRAPHICS_EFFECT_PROPERTY_MAPPING_RECT_TO_VECTOR4 = GRAPHICS_EFFECT_PROPERTY_MAPPING.RECT_TO_VECTOR4; pub const GRAPHICS_EFFECT_PROPERTY_MAPPING_RADIANS_TO_DEGREES = GRAPHICS_EFFECT_PROPERTY_MAPPING.RADIANS_TO_DEGREES; pub const GRAPHICS_EFFECT_PROPERTY_MAPPING_COLORMATRIX_ALPHA_MODE = GRAPHICS_EFFECT_PROPERTY_MAPPING.COLORMATRIX_ALPHA_MODE; pub const GRAPHICS_EFFECT_PROPERTY_MAPPING_COLOR_TO_VECTOR3 = GRAPHICS_EFFECT_PROPERTY_MAPPING.COLOR_TO_VECTOR3; pub const GRAPHICS_EFFECT_PROPERTY_MAPPING_COLOR_TO_VECTOR4 = GRAPHICS_EFFECT_PROPERTY_MAPPING.COLOR_TO_VECTOR4; const IID_IGraphicsEffectD2D1Interop_Value = Guid.initString("2fc57384-a068-44d7-a331-30982fcf7177"); pub const IID_IGraphicsEffectD2D1Interop = &IID_IGraphicsEffectD2D1Interop_Value; pub const IGraphicsEffectD2D1Interop = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, GetEffectId: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IGraphicsEffectD2D1Interop, id: ?*Guid, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IGraphicsEffectD2D1Interop, id: ?*Guid, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetNamedPropertyMapping: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IGraphicsEffectD2D1Interop, name: ?[*:0]const u16, index: ?*u32, mapping: ?*GRAPHICS_EFFECT_PROPERTY_MAPPING, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IGraphicsEffectD2D1Interop, name: ?[*:0]const u16, index: ?*u32, mapping: ?*GRAPHICS_EFFECT_PROPERTY_MAPPING, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetPropertyCount: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IGraphicsEffectD2D1Interop, count: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IGraphicsEffectD2D1Interop, count: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetProperty: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IGraphicsEffectD2D1Interop, index: u32, value: ?**struct { comment: []const u8 = "MissingClrType IPropertyValue.Windows.Foundation" }, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IGraphicsEffectD2D1Interop, index: u32, value: ?**struct { comment: []const u8 = "MissingClrType IPropertyValue.Windows.Foundation" }, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetSource: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IGraphicsEffectD2D1Interop, index: u32, source: ?**struct { comment: []const u8 = "MissingClrType IGraphicsEffectSource.Windows.Graphics.Effects" }, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IGraphicsEffectD2D1Interop, index: u32, source: ?**struct { comment: []const u8 = "MissingClrType IGraphicsEffectSource.Windows.Graphics.Effects" }, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetSourceCount: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IGraphicsEffectD2D1Interop, count: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IGraphicsEffectD2D1Interop, count: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IGraphicsEffectD2D1Interop_GetEffectId(self: *const T, id: ?*Guid) HRESULT { return @as(*const IGraphicsEffectD2D1Interop.VTable, @ptrCast(self.vtable)).GetEffectId(@as(*const IGraphicsEffectD2D1Interop, @ptrCast(self)), id); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IGraphicsEffectD2D1Interop_GetNamedPropertyMapping(self: *const T, name: ?[*:0]const u16, index: ?*u32, mapping: ?*GRAPHICS_EFFECT_PROPERTY_MAPPING) HRESULT { return @as(*const IGraphicsEffectD2D1Interop.VTable, @ptrCast(self.vtable)).GetNamedPropertyMapping(@as(*const IGraphicsEffectD2D1Interop, @ptrCast(self)), name, index, mapping); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IGraphicsEffectD2D1Interop_GetPropertyCount(self: *const T, count: ?*u32) HRESULT { return @as(*const IGraphicsEffectD2D1Interop.VTable, @ptrCast(self.vtable)).GetPropertyCount(@as(*const IGraphicsEffectD2D1Interop, @ptrCast(self)), count); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IGraphicsEffectD2D1Interop_GetProperty(self: *const T, index: u32, value: ?**struct { comment: []const u8 = "MissingClrType IPropertyValue.Windows.Foundation" }) HRESULT { return @as(*const IGraphicsEffectD2D1Interop.VTable, @ptrCast(self.vtable)).GetProperty(@as(*const IGraphicsEffectD2D1Interop, @ptrCast(self)), index, value); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IGraphicsEffectD2D1Interop_GetSource(self: *const T, index: u32, source: ?**struct { comment: []const u8 = "MissingClrType IGraphicsEffectSource.Windows.Graphics.Effects" }) HRESULT { return @as(*const IGraphicsEffectD2D1Interop.VTable, @ptrCast(self.vtable)).GetSource(@as(*const IGraphicsEffectD2D1Interop, @ptrCast(self)), index, source); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IGraphicsEffectD2D1Interop_GetSourceCount(self: *const T, count: ?*u32) HRESULT { return @as(*const IGraphicsEffectD2D1Interop.VTable, @ptrCast(self.vtable)).GetSourceCount(@as(*const IGraphicsEffectD2D1Interop, @ptrCast(self)), count); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IGeometrySource2DInterop_Value = Guid.initString("0657af73-53fd-47cf-84ff-c8492d2a80a3"); pub const IID_IGeometrySource2DInterop = &IID_IGeometrySource2DInterop_Value; pub const IGeometrySource2DInterop = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, GetGeometry: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IGeometrySource2DInterop, value: ?*?*ID2D1Geometry, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IGeometrySource2DInterop, value: ?*?*ID2D1Geometry, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, TryGetGeometryUsingFactory: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IGeometrySource2DInterop, factory: ?*ID2D1Factory, value: ?*?*ID2D1Geometry, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IGeometrySource2DInterop, factory: ?*ID2D1Factory, value: ?*?*ID2D1Geometry, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IGeometrySource2DInterop_GetGeometry(self: *const T, value: ?*?*ID2D1Geometry) HRESULT { return @as(*const IGeometrySource2DInterop.VTable, @ptrCast(self.vtable)).GetGeometry(@as(*const IGeometrySource2DInterop, @ptrCast(self)), value); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IGeometrySource2DInterop_TryGetGeometryUsingFactory(self: *const T, factory: ?*ID2D1Factory, value: ?*?*ID2D1Geometry) HRESULT { return @as(*const IGeometrySource2DInterop.VTable, @ptrCast(self.vtable)).TryGetGeometryUsingFactory(@as(*const IGeometrySource2DInterop, @ptrCast(self)), factory, value); } }; } pub usingnamespace MethodMixin(@This()); }; //-------------------------------------------------------------------------------- // Section: Functions (0) //-------------------------------------------------------------------------------- //-------------------------------------------------------------------------------- // Section: Unicode Aliases (0) //-------------------------------------------------------------------------------- const thismodule = @This(); pub usingnamespace switch (@import("../../../zig.zig").unicode_mode) { .ansi => struct {}, .wide => struct {}, .unspecified => if (@import("builtin").is_test) struct {} else struct {}, }; //-------------------------------------------------------------------------------- // Section: Imports (6) //-------------------------------------------------------------------------------- const Guid = @import("../../../zig.zig").Guid; const HRESULT = @import("../../../foundation.zig").HRESULT; const ID2D1Factory = @import("../../../graphics/direct2d.zig").ID2D1Factory; const ID2D1Geometry = @import("../../../graphics/direct2d.zig").ID2D1Geometry; const IUnknown = @import("../../../system/com.zig").IUnknown; const PWSTR = @import("../../../foundation.zig").PWSTR; test { @setEvalBranchQuota(comptime @import("std").meta.declarations(@This()).len * 3); // reference all the pub declarations if (!@import("builtin").is_test) return; inline for (comptime @import("std").meta.declarations(@This())) |decl| { if (decl.is_pub) { _ = @field(@This(), decl.name); } } }
0
repos/capy/vendor/zigwin32/win32/system/win_rt
repos/capy/vendor/zigwin32/win32/system/win_rt/graphics/imaging.zig
//! NOTE: this file is autogenerated, DO NOT MODIFY //-------------------------------------------------------------------------------- // Section: Constants (1) //-------------------------------------------------------------------------------- pub const CLSID_SoftwareBitmapNativeFactory = Guid.initString("84e65691-8602-4a84-be46-708be9cd4b74"); //-------------------------------------------------------------------------------- // Section: Types (2) //-------------------------------------------------------------------------------- const IID_ISoftwareBitmapNative_Value = Guid.initString("94bc8415-04ea-4b2e-af13-4de95aa898eb"); pub const IID_ISoftwareBitmapNative = &IID_ISoftwareBitmapNative_Value; pub const ISoftwareBitmapNative = extern struct { pub const VTable = extern struct { base: IInspectable.VTable, GetData: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ISoftwareBitmapNative, riid: ?*const Guid, ppv: ?*?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ISoftwareBitmapNative, riid: ?*const Guid, ppv: ?*?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IInspectable.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISoftwareBitmapNative_GetData(self: *const T, riid: ?*const Guid, ppv: ?*?*anyopaque) HRESULT { return @as(*const ISoftwareBitmapNative.VTable, @ptrCast(self.vtable)).GetData(@as(*const ISoftwareBitmapNative, @ptrCast(self)), riid, ppv); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_ISoftwareBitmapNativeFactory_Value = Guid.initString("c3c181ec-2914-4791-af02-02d224a10b43"); pub const IID_ISoftwareBitmapNativeFactory = &IID_ISoftwareBitmapNativeFactory_Value; pub const ISoftwareBitmapNativeFactory = extern struct { pub const VTable = extern struct { base: IInspectable.VTable, CreateFromWICBitmap: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ISoftwareBitmapNativeFactory, data: ?*IWICBitmap, forceReadOnly: BOOL, riid: ?*const Guid, ppv: ?*?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ISoftwareBitmapNativeFactory, data: ?*IWICBitmap, forceReadOnly: BOOL, riid: ?*const Guid, ppv: ?*?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, CreateFromMF2DBuffer2: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ISoftwareBitmapNativeFactory, data: ?*IMF2DBuffer2, subtype: ?*const Guid, width: u32, height: u32, forceReadOnly: BOOL, minDisplayAperture: ?*const MFVideoArea, riid: ?*const Guid, ppv: ?*?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ISoftwareBitmapNativeFactory, data: ?*IMF2DBuffer2, subtype: ?*const Guid, width: u32, height: u32, forceReadOnly: BOOL, minDisplayAperture: ?*const MFVideoArea, riid: ?*const Guid, ppv: ?*?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IInspectable.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISoftwareBitmapNativeFactory_CreateFromWICBitmap(self: *const T, data: ?*IWICBitmap, forceReadOnly: BOOL, riid: ?*const Guid, ppv: ?*?*anyopaque) HRESULT { return @as(*const ISoftwareBitmapNativeFactory.VTable, @ptrCast(self.vtable)).CreateFromWICBitmap(@as(*const ISoftwareBitmapNativeFactory, @ptrCast(self)), data, forceReadOnly, riid, ppv); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISoftwareBitmapNativeFactory_CreateFromMF2DBuffer2(self: *const T, data: ?*IMF2DBuffer2, subtype: ?*const Guid, width: u32, height: u32, forceReadOnly: BOOL, minDisplayAperture: ?*const MFVideoArea, riid: ?*const Guid, ppv: ?*?*anyopaque) HRESULT { return @as(*const ISoftwareBitmapNativeFactory.VTable, @ptrCast(self.vtable)).CreateFromMF2DBuffer2(@as(*const ISoftwareBitmapNativeFactory, @ptrCast(self)), data, subtype, width, height, forceReadOnly, minDisplayAperture, riid, ppv); } }; } pub usingnamespace MethodMixin(@This()); }; //-------------------------------------------------------------------------------- // Section: Functions (0) //-------------------------------------------------------------------------------- //-------------------------------------------------------------------------------- // Section: Unicode Aliases (0) //-------------------------------------------------------------------------------- const thismodule = @This(); pub usingnamespace switch (@import("../../../zig.zig").unicode_mode) { .ansi => struct {}, .wide => struct {}, .unspecified => if (@import("builtin").is_test) struct {} else struct {}, }; //-------------------------------------------------------------------------------- // Section: Imports (7) //-------------------------------------------------------------------------------- const Guid = @import("../../../zig.zig").Guid; const BOOL = @import("../../../foundation.zig").BOOL; const HRESULT = @import("../../../foundation.zig").HRESULT; const IInspectable = @import("../../../system/win_rt.zig").IInspectable; const IMF2DBuffer2 = @import("../../../media/media_foundation.zig").IMF2DBuffer2; const IWICBitmap = @import("../../../graphics/imaging.zig").IWICBitmap; const MFVideoArea = @import("../../../media/media_foundation.zig").MFVideoArea; test { @setEvalBranchQuota(comptime @import("std").meta.declarations(@This()).len * 3); // reference all the pub declarations if (!@import("builtin").is_test) return; inline for (comptime @import("std").meta.declarations(@This())) |decl| { if (decl.is_pub) { _ = @field(@This(), decl.name); } } }
0
repos/capy/vendor/zigwin32/win32
repos/capy/vendor/zigwin32/win32/data/rights_management.zig
//! NOTE: this file is autogenerated, DO NOT MODIFY //-------------------------------------------------------------------------------- // Section: Constants (65) //-------------------------------------------------------------------------------- pub const DRMHANDLE_INVALID = @as(u32, 0); pub const DRMENVHANDLE_INVALID = @as(u32, 0); pub const DRMQUERYHANDLE_INVALID = @as(u32, 0); pub const DRMHSESSION_INVALID = @as(u32, 0); pub const DRMPUBHANDLE_INVALID = @as(u32, 0); pub const DRM_AL_NONSILENT = @as(u32, 1); pub const DRM_AL_NOPERSIST = @as(u32, 2); pub const DRM_AL_CANCEL = @as(u32, 4); pub const DRM_AL_FETCHNOADVISORY = @as(u32, 8); pub const DRM_AL_NOUI = @as(u32, 16); pub const DRM_ACTIVATE_MACHINE = @as(u32, 1); pub const DRM_ACTIVATE_GROUPIDENTITY = @as(u32, 2); pub const DRM_ACTIVATE_TEMPORARY = @as(u32, 4); pub const DRM_ACTIVATE_CANCEL = @as(u32, 8); pub const DRM_ACTIVATE_SILENT = @as(u32, 16); pub const DRM_ACTIVATE_SHARED_GROUPIDENTITY = @as(u32, 32); pub const DRM_ACTIVATE_DELAYED = @as(u32, 64); pub const DRM_EL_MACHINE = @as(u32, 1); pub const DRM_EL_GROUPIDENTITY = @as(u32, 2); pub const DRM_EL_GROUPIDENTITY_NAME = @as(u32, 4); pub const DRM_EL_GROUPIDENTITY_LID = @as(u32, 8); pub const DRM_EL_SPECIFIED_GROUPIDENTITY = @as(u32, 16); pub const DRM_EL_EUL = @as(u32, 32); pub const DRM_EL_EUL_LID = @as(u32, 64); pub const DRM_EL_CLIENTLICENSOR = @as(u32, 128); pub const DRM_EL_CLIENTLICENSOR_LID = @as(u32, 256); pub const DRM_EL_SPECIFIED_CLIENTLICENSOR = @as(u32, 512); pub const DRM_EL_REVOCATIONLIST = @as(u32, 1024); pub const DRM_EL_REVOCATIONLIST_LID = @as(u32, 2048); pub const DRM_EL_EXPIRED = @as(u32, 4096); pub const DRM_EL_ISSUERNAME = @as(u32, 8192); pub const DRM_EL_ISSUANCELICENSE_TEMPLATE = @as(u32, 16384); pub const DRM_EL_ISSUANCELICENSE_TEMPLATE_LID = @as(u32, 32768); pub const DRM_ADD_LICENSE_NOPERSIST = @as(u32, 0); pub const DRM_ADD_LICENSE_PERSIST = @as(u32, 1); pub const DRM_SERVICE_TYPE_ACTIVATION = @as(u32, 1); pub const DRM_SERVICE_TYPE_CERTIFICATION = @as(u32, 2); pub const DRM_SERVICE_TYPE_PUBLISHING = @as(u32, 4); pub const DRM_SERVICE_TYPE_CLIENTLICENSOR = @as(u32, 8); pub const DRM_SERVICE_TYPE_SILENT = @as(u32, 16); pub const DRM_SERVICE_LOCATION_INTERNET = @as(u32, 1); pub const DRM_SERVICE_LOCATION_ENTERPRISE = @as(u32, 2); pub const DRM_SIGN_ONLINE = @as(u32, 1); pub const DRM_SIGN_OFFLINE = @as(u32, 2); pub const DRM_SIGN_CANCEL = @as(u32, 4); pub const DRM_SERVER_ISSUANCELICENSE = @as(u32, 8); pub const DRM_AUTO_GENERATE_KEY = @as(u32, 16); pub const DRM_OWNER_LICENSE_NOPERSIST = @as(u32, 32); pub const DRM_REUSE_KEY = @as(u32, 64); pub const DRM_LOCKBOXTYPE_NONE = @as(u32, 0); pub const DRM_LOCKBOXTYPE_WHITEBOX = @as(u32, 1); pub const DRM_LOCKBOXTYPE_BLACKBOX = @as(u32, 2); pub const DRM_LOCKBOXTYPE_DEFAULT = @as(u32, 2); pub const DRM_AILT_NONSILENT = @as(u32, 1); pub const DRM_AILT_OBTAIN_ALL = @as(u32, 2); pub const DRM_AILT_CANCEL = @as(u32, 4); pub const MSDRM_CLIENT_ZONE = @as(u32, 52992); pub const MSDRM_POLICY_ZONE = @as(u32, 37632); pub const DRMIDVERSION = @as(u32, 0); pub const DRMBOUNDLICENSEPARAMSVERSION = @as(u32, 1); pub const DRMBINDINGFLAGS_IGNORE_VALIDITY_INTERVALS = @as(u32, 1); pub const DRMLICENSEACQDATAVERSION = @as(u32, 0); pub const DRMACTSERVINFOVERSION = @as(u32, 0); pub const DRMCLIENTSTRUCTVERSION = @as(u32, 1); pub const DRMCALLBACKVERSION = @as(u32, 1); //-------------------------------------------------------------------------------- // Section: Types (15) //-------------------------------------------------------------------------------- pub const DRMID = extern struct { uVersion: u32, wszIDType: ?PWSTR, wszID: ?PWSTR, }; pub const DRMTIMETYPE = enum(i32) { UTC = 0, LOCAL = 1, }; pub const DRMTIMETYPE_SYSTEMUTC = DRMTIMETYPE.UTC; pub const DRMTIMETYPE_SYSTEMLOCAL = DRMTIMETYPE.LOCAL; pub const DRMENCODINGTYPE = enum(i32) { BASE64 = 0, STRING = 1, LONG = 2, TIME = 3, UINT = 4, RAW = 5, }; pub const DRMENCODINGTYPE_BASE64 = DRMENCODINGTYPE.BASE64; pub const DRMENCODINGTYPE_STRING = DRMENCODINGTYPE.STRING; pub const DRMENCODINGTYPE_LONG = DRMENCODINGTYPE.LONG; pub const DRMENCODINGTYPE_TIME = DRMENCODINGTYPE.TIME; pub const DRMENCODINGTYPE_UINT = DRMENCODINGTYPE.UINT; pub const DRMENCODINGTYPE_RAW = DRMENCODINGTYPE.RAW; pub const DRMATTESTTYPE = enum(i32) { FULLENVIRONMENT = 0, HASHONLY = 1, }; pub const DRMATTESTTYPE_FULLENVIRONMENT = DRMATTESTTYPE.FULLENVIRONMENT; pub const DRMATTESTTYPE_HASHONLY = DRMATTESTTYPE.HASHONLY; pub const DRMSPECTYPE = enum(i32) { UNKNOWN = 0, FILENAME = 1, }; pub const DRMSPECTYPE_UNKNOWN = DRMSPECTYPE.UNKNOWN; pub const DRMSPECTYPE_FILENAME = DRMSPECTYPE.FILENAME; pub const DRMSECURITYPROVIDERTYPE = enum(i32) { P = 0, }; pub const DRMSECURITYPROVIDERTYPE_SOFTWARESECREP = DRMSECURITYPROVIDERTYPE.P; pub const DRMGLOBALOPTIONS = enum(i32) { WINHTTP = 0, SERVERSECURITYPROCESSOR = 1, }; pub const DRMGLOBALOPTIONS_USE_WINHTTP = DRMGLOBALOPTIONS.WINHTTP; pub const DRMGLOBALOPTIONS_USE_SERVERSECURITYPROCESSOR = DRMGLOBALOPTIONS.SERVERSECURITYPROCESSOR; pub const DRMBOUNDLICENSEPARAMS = extern struct { uVersion: u32, hEnablingPrincipal: u32, hSecureStore: u32, wszRightsRequested: ?PWSTR, wszRightsGroup: ?PWSTR, idResource: DRMID, cAuthenticatorCount: u32, rghAuthenticators: ?*u32, wszDefaultEnablingPrincipalCredentials: ?PWSTR, dwFlags: u32, }; pub const DRM_LICENSE_ACQ_DATA = extern struct { uVersion: u32, wszURL: ?PWSTR, wszLocalFilename: ?PWSTR, pbPostData: ?*u8, dwPostDataSize: u32, wszFriendlyName: ?PWSTR, }; pub const DRM_ACTSERV_INFO = extern struct { uVersion: u32, wszPubKey: ?PWSTR, wszURL: ?PWSTR, }; pub const DRM_CLIENT_VERSION_INFO = extern struct { uStructVersion: u32, dwVersion: [4]u32, wszHierarchy: [256]u16, wszProductId: [256]u16, wszProductDescription: [256]u16, }; pub const DRM_STATUS_MSG = enum(i32) { ACTIVATE_MACHINE = 0, ACTIVATE_GROUPIDENTITY = 1, ACQUIRE_LICENSE = 2, ACQUIRE_ADVISORY = 3, SIGN_ISSUANCE_LICENSE = 4, ACQUIRE_CLIENTLICENSOR = 5, ACQUIRE_ISSUANCE_LICENSE_TEMPLATE = 6, }; pub const DRM_MSG_ACTIVATE_MACHINE = DRM_STATUS_MSG.ACTIVATE_MACHINE; pub const DRM_MSG_ACTIVATE_GROUPIDENTITY = DRM_STATUS_MSG.ACTIVATE_GROUPIDENTITY; pub const DRM_MSG_ACQUIRE_LICENSE = DRM_STATUS_MSG.ACQUIRE_LICENSE; pub const DRM_MSG_ACQUIRE_ADVISORY = DRM_STATUS_MSG.ACQUIRE_ADVISORY; pub const DRM_MSG_SIGN_ISSUANCE_LICENSE = DRM_STATUS_MSG.SIGN_ISSUANCE_LICENSE; pub const DRM_MSG_ACQUIRE_CLIENTLICENSOR = DRM_STATUS_MSG.ACQUIRE_CLIENTLICENSOR; pub const DRM_MSG_ACQUIRE_ISSUANCE_LICENSE_TEMPLATE = DRM_STATUS_MSG.ACQUIRE_ISSUANCE_LICENSE_TEMPLATE; pub const DRM_USAGEPOLICY_TYPE = enum(i32) { BYNAME = 0, BYPUBLICKEY = 1, BYDIGEST = 2, OSEXCLUSION = 3, }; pub const DRM_USAGEPOLICY_TYPE_BYNAME = DRM_USAGEPOLICY_TYPE.BYNAME; pub const DRM_USAGEPOLICY_TYPE_BYPUBLICKEY = DRM_USAGEPOLICY_TYPE.BYPUBLICKEY; pub const DRM_USAGEPOLICY_TYPE_BYDIGEST = DRM_USAGEPOLICY_TYPE.BYDIGEST; pub const DRM_USAGEPOLICY_TYPE_OSEXCLUSION = DRM_USAGEPOLICY_TYPE.OSEXCLUSION; pub const DRM_DISTRIBUTION_POINT_INFO = enum(i32) { LICENSE_ACQUISITION = 0, PUBLISHING = 1, REFERRAL_INFO = 2, }; pub const DRM_DISTRIBUTION_POINT_LICENSE_ACQUISITION = DRM_DISTRIBUTION_POINT_INFO.LICENSE_ACQUISITION; pub const DRM_DISTRIBUTION_POINT_PUBLISHING = DRM_DISTRIBUTION_POINT_INFO.PUBLISHING; pub const DRM_DISTRIBUTION_POINT_REFERRAL_INFO = DRM_DISTRIBUTION_POINT_INFO.REFERRAL_INFO; pub const DRMCALLBACK = switch (@import("builtin").zig_backend) { .stage1 => fn ( param0: DRM_STATUS_MSG, param1: HRESULT, param2: ?*anyopaque, param3: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( param0: DRM_STATUS_MSG, param1: HRESULT, param2: ?*anyopaque, param3: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }; //-------------------------------------------------------------------------------- // Section: Functions (84) //-------------------------------------------------------------------------------- pub extern "msdrm" fn DRMSetGlobalOptions( eGlobalOptions: DRMGLOBALOPTIONS, pvdata: ?*anyopaque, dwlen: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT; pub extern "msdrm" fn DRMGetClientVersion( pDRMClientVersionInfo: ?*DRM_CLIENT_VERSION_INFO, ) callconv(@import("std").os.windows.WINAPI) HRESULT; pub extern "msdrm" fn DRMInitEnvironment( eSecurityProviderType: DRMSECURITYPROVIDERTYPE, eSpecification: DRMSPECTYPE, wszSecurityProvider: ?PWSTR, wszManifestCredentials: ?PWSTR, wszMachineCredentials: ?PWSTR, phEnv: ?*u32, phDefaultLibrary: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT; pub extern "msdrm" fn DRMLoadLibrary( hEnv: u32, eSpecification: DRMSPECTYPE, wszLibraryProvider: ?PWSTR, wszCredentials: ?PWSTR, phLibrary: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT; pub extern "msdrm" fn DRMCreateEnablingPrincipal( hEnv: u32, hLibrary: u32, wszObject: ?PWSTR, pidPrincipal: ?*DRMID, wszCredentials: ?PWSTR, phEnablingPrincipal: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT; pub extern "msdrm" fn DRMCloseHandle( handle: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT; pub extern "msdrm" fn DRMCloseEnvironmentHandle( hEnv: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT; pub extern "msdrm" fn DRMDuplicateHandle( hToCopy: u32, phCopy: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT; pub extern "msdrm" fn DRMDuplicateEnvironmentHandle( hToCopy: u32, phCopy: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT; pub extern "msdrm" fn DRMRegisterRevocationList( hEnv: u32, wszRevocationList: ?PWSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT; pub extern "msdrm" fn DRMCheckSecurity( hEnv: u32, cLevel: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT; pub extern "msdrm" fn DRMRegisterContent( fRegister: BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT; pub extern "msdrm" fn DRMEncrypt( hCryptoProvider: u32, iPosition: u32, cNumInBytes: u32, pbInData: ?*u8, pcNumOutBytes: ?*u32, pbOutData: ?*u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT; pub extern "msdrm" fn DRMDecrypt( hCryptoProvider: u32, iPosition: u32, cNumInBytes: u32, pbInData: ?*u8, pcNumOutBytes: ?*u32, pbOutData: ?*u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT; pub extern "msdrm" fn DRMCreateBoundLicense( hEnv: u32, pParams: ?*DRMBOUNDLICENSEPARAMS, wszLicenseChain: ?PWSTR, phBoundLicense: ?*u32, phErrorLog: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT; pub extern "msdrm" fn DRMCreateEnablingBitsDecryptor( hBoundLicense: u32, wszRight: ?PWSTR, hAuxLib: u32, wszAuxPlug: ?PWSTR, phDecryptor: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT; pub extern "msdrm" fn DRMCreateEnablingBitsEncryptor( hBoundLicense: u32, wszRight: ?PWSTR, hAuxLib: u32, wszAuxPlug: ?PWSTR, phEncryptor: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT; pub extern "msdrm" fn DRMAttest( hEnablingPrincipal: u32, wszData: ?PWSTR, eType: DRMATTESTTYPE, pcAttestedBlob: ?*u32, wszAttestedBlob: [*:0]u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT; pub extern "msdrm" fn DRMGetTime( hEnv: u32, eTimerIdType: DRMTIMETYPE, poTimeObject: ?*SYSTEMTIME, ) callconv(@import("std").os.windows.WINAPI) HRESULT; pub extern "msdrm" fn DRMGetInfo( handle: u32, wszAttribute: ?PWSTR, peEncoding: ?*DRMENCODINGTYPE, pcBuffer: ?*u32, pbBuffer: ?*u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT; pub extern "msdrm" fn DRMGetEnvironmentInfo( handle: u32, wszAttribute: ?PWSTR, peEncoding: ?*DRMENCODINGTYPE, pcBuffer: ?*u32, pbBuffer: ?*u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT; pub extern "msdrm" fn DRMGetProcAddress( hLibrary: u32, wszProcName: ?PWSTR, ppfnProcAddress: ?*?FARPROC, ) callconv(@import("std").os.windows.WINAPI) HRESULT; pub extern "msdrm" fn DRMGetBoundLicenseObjectCount( hQueryRoot: u32, wszSubObjectType: ?PWSTR, pcSubObjects: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT; pub extern "msdrm" fn DRMGetBoundLicenseObject( hQueryRoot: u32, wszSubObjectType: ?PWSTR, iWhich: u32, phSubObject: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT; pub extern "msdrm" fn DRMGetBoundLicenseAttributeCount( hQueryRoot: u32, wszAttribute: ?PWSTR, pcAttributes: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT; pub extern "msdrm" fn DRMGetBoundLicenseAttribute( hQueryRoot: u32, wszAttribute: ?PWSTR, iWhich: u32, peEncoding: ?*DRMENCODINGTYPE, pcBuffer: ?*u32, pbBuffer: ?*u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT; pub extern "msdrm" fn DRMCreateClientSession( pfnCallback: ?DRMCALLBACK, uCallbackVersion: u32, wszGroupIDProviderType: ?PWSTR, wszGroupID: ?PWSTR, phClient: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT; pub extern "msdrm" fn DRMIsActivated( hClient: u32, uFlags: u32, pActServInfo: ?*DRM_ACTSERV_INFO, ) callconv(@import("std").os.windows.WINAPI) HRESULT; pub extern "msdrm" fn DRMActivate( hClient: u32, uFlags: u32, uLangID: u32, pActServInfo: ?*DRM_ACTSERV_INFO, pvContext: ?*anyopaque, hParentWnd: ?HWND, ) callconv(@import("std").os.windows.WINAPI) HRESULT; pub extern "msdrm" fn DRMGetServiceLocation( hClient: u32, uServiceType: u32, uServiceLocation: u32, wszIssuanceLicense: ?PWSTR, puServiceURLLength: ?*u32, wszServiceURL: ?[*:0]u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT; pub extern "msdrm" fn DRMCreateLicenseStorageSession( hEnv: u32, hDefaultLibrary: u32, hClient: u32, uFlags: u32, wszIssuanceLicense: ?PWSTR, phLicenseStorage: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT; pub extern "msdrm" fn DRMAddLicense( hLicenseStorage: u32, uFlags: u32, wszLicense: ?PWSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT; pub extern "msdrm" fn DRMAcquireAdvisories( hLicenseStorage: u32, wszLicense: ?PWSTR, wszURL: ?PWSTR, pvContext: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) HRESULT; pub extern "msdrm" fn DRMEnumerateLicense( hSession: u32, uFlags: u32, uIndex: u32, pfSharedFlag: ?*BOOL, puCertificateDataLen: ?*u32, wszCertificateData: ?[*:0]u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT; pub extern "msdrm" fn DRMAcquireLicense( hSession: u32, uFlags: u32, wszGroupIdentityCredential: ?PWSTR, wszRequestedRights: ?PWSTR, wszCustomData: ?PWSTR, wszURL: ?PWSTR, pvContext: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) HRESULT; pub extern "msdrm" fn DRMDeleteLicense( hSession: u32, wszLicenseId: ?PWSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT; pub extern "msdrm" fn DRMCloseSession( hSession: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT; pub extern "msdrm" fn DRMDuplicateSession( hSessionIn: u32, phSessionOut: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT; pub extern "msdrm" fn DRMGetSecurityProvider( uFlags: u32, puTypeLen: ?*u32, wszType: ?[*:0]u16, puPathLen: ?*u32, wszPath: ?[*:0]u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT; pub extern "msdrm" fn DRMEncode( wszAlgID: ?PWSTR, uDataLen: u32, pbDecodedData: ?*u8, puEncodedStringLen: ?*u32, wszEncodedString: ?[*:0]u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT; pub extern "msdrm" fn DRMDecode( wszAlgID: ?PWSTR, wszEncodedString: ?PWSTR, puDecodedDataLen: ?*u32, pbDecodedData: ?*u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT; pub extern "msdrm" fn DRMConstructCertificateChain( cCertificates: u32, rgwszCertificates: [*]?PWSTR, pcChain: ?*u32, wszChain: ?[*:0]u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT; pub extern "msdrm" fn DRMParseUnboundLicense( wszCertificate: ?PWSTR, phQueryRoot: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT; pub extern "msdrm" fn DRMCloseQueryHandle( hQuery: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT; pub extern "msdrm" fn DRMGetUnboundLicenseObjectCount( hQueryRoot: u32, wszSubObjectType: ?PWSTR, pcSubObjects: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT; pub extern "msdrm" fn DRMGetUnboundLicenseObject( hQueryRoot: u32, wszSubObjectType: ?PWSTR, iIndex: u32, phSubQuery: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT; pub extern "msdrm" fn DRMGetUnboundLicenseAttributeCount( hQueryRoot: u32, wszAttributeType: ?PWSTR, pcAttributes: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT; pub extern "msdrm" fn DRMGetUnboundLicenseAttribute( hQueryRoot: u32, wszAttributeType: ?PWSTR, iWhich: u32, peEncoding: ?*DRMENCODINGTYPE, pcBuffer: ?*u32, pbBuffer: ?*u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT; pub extern "msdrm" fn DRMGetCertificateChainCount( wszChain: ?PWSTR, pcCertCount: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT; pub extern "msdrm" fn DRMDeconstructCertificateChain( wszChain: ?PWSTR, iWhich: u32, pcCert: ?*u32, wszCert: ?[*:0]u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT; pub extern "msdrm" fn DRMVerify( wszData: ?PWSTR, pcAttestedData: ?*u32, wszAttestedData: ?[*:0]u16, peType: ?*DRMATTESTTYPE, pcPrincipal: ?*u32, wszPrincipal: ?[*:0]u16, pcManifest: ?*u32, wszManifest: ?[*:0]u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT; pub extern "msdrm" fn DRMCreateUser( wszUserName: ?PWSTR, wszUserId: ?PWSTR, wszUserIdType: ?PWSTR, phUser: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT; pub extern "msdrm" fn DRMCreateRight( wszRightName: ?PWSTR, pstFrom: ?*SYSTEMTIME, pstUntil: ?*SYSTEMTIME, cExtendedInfo: u32, pwszExtendedInfoName: ?[*]?PWSTR, pwszExtendedInfoValue: ?[*]?PWSTR, phRight: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT; pub extern "msdrm" fn DRMCreateIssuanceLicense( pstTimeFrom: ?*SYSTEMTIME, pstTimeUntil: ?*SYSTEMTIME, wszReferralInfoName: ?PWSTR, wszReferralInfoURL: ?PWSTR, hOwner: u32, wszIssuanceLicense: ?PWSTR, hBoundLicense: u32, phIssuanceLicense: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT; pub extern "msdrm" fn DRMAddRightWithUser( hIssuanceLicense: u32, hRight: u32, hUser: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT; pub extern "msdrm" fn DRMClearAllRights( hIssuanceLicense: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT; pub extern "msdrm" fn DRMSetMetaData( hIssuanceLicense: u32, wszContentId: ?PWSTR, wszContentIdType: ?PWSTR, wszSKUId: ?PWSTR, wszSKUIdType: ?PWSTR, wszContentType: ?PWSTR, wszContentName: ?PWSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT; pub extern "msdrm" fn DRMSetUsagePolicy( hIssuanceLicense: u32, eUsagePolicyType: DRM_USAGEPOLICY_TYPE, fDelete: BOOL, fExclusion: BOOL, wszName: ?PWSTR, wszMinVersion: ?PWSTR, wszMaxVersion: ?PWSTR, wszPublicKey: ?PWSTR, wszDigestAlgorithm: ?PWSTR, pbDigest: ?*u8, cbDigest: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT; pub extern "msdrm" fn DRMSetRevocationPoint( hIssuanceLicense: u32, fDelete: BOOL, wszId: ?PWSTR, wszIdType: ?PWSTR, wszURL: ?PWSTR, pstFrequency: ?*SYSTEMTIME, wszName: ?PWSTR, wszPublicKey: ?PWSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT; pub extern "msdrm" fn DRMSetApplicationSpecificData( hIssuanceLicense: u32, fDelete: BOOL, wszName: ?PWSTR, wszValue: ?PWSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT; pub extern "msdrm" fn DRMSetNameAndDescription( hIssuanceLicense: u32, fDelete: BOOL, lcid: u32, wszName: ?PWSTR, wszDescription: ?PWSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT; pub extern "msdrm" fn DRMSetIntervalTime( hIssuanceLicense: u32, cDays: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT; pub extern "msdrm" fn DRMGetIssuanceLicenseTemplate( hIssuanceLicense: u32, puIssuanceLicenseTemplateLength: ?*u32, wszIssuanceLicenseTemplate: ?[*:0]u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT; pub extern "msdrm" fn DRMGetSignedIssuanceLicense( hEnv: u32, hIssuanceLicense: u32, uFlags: u32, pbSymKey: ?*u8, cbSymKey: u32, wszSymKeyType: ?PWSTR, wszClientLicensorCertificate: ?PWSTR, pfnCallback: ?DRMCALLBACK, wszURL: ?PWSTR, pvContext: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) HRESULT; // TODO: this type is limited to platform 'windows6.1' pub extern "msdrm" fn DRMGetSignedIssuanceLicenseEx( hEnv: u32, hIssuanceLicense: u32, uFlags: u32, // TODO: what to do with BytesParamIndex 4? pbSymKey: ?*u8, cbSymKey: u32, wszSymKeyType: ?PWSTR, pvReserved: ?*anyopaque, hEnablingPrincipal: u32, hBoundLicenseCLC: u32, pfnCallback: ?DRMCALLBACK, pvContext: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) HRESULT; pub extern "msdrm" fn DRMClosePubHandle( hPub: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT; pub extern "msdrm" fn DRMDuplicatePubHandle( hPubIn: u32, phPubOut: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT; pub extern "msdrm" fn DRMGetUserInfo( hUser: u32, puUserNameLength: ?*u32, wszUserName: ?[*:0]u16, puUserIdLength: ?*u32, wszUserId: ?[*:0]u16, puUserIdTypeLength: ?*u32, wszUserIdType: ?[*:0]u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT; pub extern "msdrm" fn DRMGetRightInfo( hRight: u32, puRightNameLength: ?*u32, wszRightName: ?[*:0]u16, pstFrom: ?*SYSTEMTIME, pstUntil: ?*SYSTEMTIME, ) callconv(@import("std").os.windows.WINAPI) HRESULT; pub extern "msdrm" fn DRMGetRightExtendedInfo( hRight: u32, uIndex: u32, puExtendedInfoNameLength: ?*u32, wszExtendedInfoName: ?[*:0]u16, puExtendedInfoValueLength: ?*u32, wszExtendedInfoValue: ?[*:0]u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT; pub extern "msdrm" fn DRMGetUsers( hIssuanceLicense: u32, uIndex: u32, phUser: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT; pub extern "msdrm" fn DRMGetUserRights( hIssuanceLicense: u32, hUser: u32, uIndex: u32, phRight: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT; pub extern "msdrm" fn DRMGetMetaData( hIssuanceLicense: u32, puContentIdLength: ?*u32, wszContentId: ?[*:0]u16, puContentIdTypeLength: ?*u32, wszContentIdType: ?[*:0]u16, puSKUIdLength: ?*u32, wszSKUId: ?[*:0]u16, puSKUIdTypeLength: ?*u32, wszSKUIdType: ?[*:0]u16, puContentTypeLength: ?*u32, wszContentType: ?[*:0]u16, puContentNameLength: ?*u32, wszContentName: ?[*:0]u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT; pub extern "msdrm" fn DRMGetApplicationSpecificData( hIssuanceLicense: u32, uIndex: u32, puNameLength: ?*u32, wszName: ?[*:0]u16, puValueLength: ?*u32, wszValue: ?[*:0]u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT; pub extern "msdrm" fn DRMGetIssuanceLicenseInfo( hIssuanceLicense: u32, pstTimeFrom: ?*SYSTEMTIME, pstTimeUntil: ?*SYSTEMTIME, uFlags: u32, puDistributionPointNameLength: ?*u32, wszDistributionPointName: ?[*:0]u16, puDistributionPointURLLength: ?*u32, wszDistributionPointURL: ?[*:0]u16, phOwner: ?*u32, pfOfficial: ?*BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT; pub extern "msdrm" fn DRMGetRevocationPoint( hIssuanceLicense: u32, puIdLength: ?*u32, wszId: ?[*:0]u16, puIdTypeLength: ?*u32, wszIdType: ?[*:0]u16, puURLLength: ?*u32, wszRL: ?[*:0]u16, pstFrequency: ?*SYSTEMTIME, puNameLength: ?*u32, wszName: ?[*:0]u16, puPublicKeyLength: ?*u32, wszPublicKey: ?[*:0]u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT; pub extern "msdrm" fn DRMGetUsagePolicy( hIssuanceLicense: u32, uIndex: u32, peUsagePolicyType: ?*DRM_USAGEPOLICY_TYPE, pfExclusion: ?*BOOL, puNameLength: ?*u32, wszName: ?[*:0]u16, puMinVersionLength: ?*u32, wszMinVersion: ?[*:0]u16, puMaxVersionLength: ?*u32, wszMaxVersion: ?[*:0]u16, puPublicKeyLength: ?*u32, wszPublicKey: ?[*:0]u16, puDigestAlgorithmLength: ?*u32, wszDigestAlgorithm: ?[*:0]u16, pcbDigest: ?*u32, pbDigest: ?*u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT; pub extern "msdrm" fn DRMGetNameAndDescription( hIssuanceLicense: u32, uIndex: u32, pulcid: ?*u32, puNameLength: ?*u32, wszName: ?[*:0]u16, puDescriptionLength: ?*u32, wszDescription: ?[*:0]u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT; pub extern "msdrm" fn DRMGetOwnerLicense( hIssuanceLicense: u32, puOwnerLicenseLength: ?*u32, wszOwnerLicense: ?[*:0]u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT; pub extern "msdrm" fn DRMGetIntervalTime( hIssuanceLicense: u32, pcDays: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT; pub extern "msdrm" fn DRMRepair() callconv(@import("std").os.windows.WINAPI) HRESULT; // TODO: this type is limited to platform 'windows6.0.6000' pub extern "msdrm" fn DRMRegisterProtectedWindow( hEnv: u32, hwnd: ?HWND, ) callconv(@import("std").os.windows.WINAPI) HRESULT; // TODO: this type is limited to platform 'windows6.0.6000' pub extern "msdrm" fn DRMIsWindowProtected( hwnd: ?HWND, pfProtected: ?*BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT; // TODO: this type is limited to platform 'windows6.0.6000' pub extern "msdrm" fn DRMAcquireIssuanceLicenseTemplate( hClient: u32, uFlags: u32, pvReserved: ?*anyopaque, cTemplates: u32, pwszTemplateIds: ?[*]?PWSTR, wszUrl: ?PWSTR, pvContext: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) HRESULT; //-------------------------------------------------------------------------------- // Section: Unicode Aliases (0) //-------------------------------------------------------------------------------- const thismodule = @This(); pub usingnamespace switch (@import("../zig.zig").unicode_mode) { .ansi => struct {}, .wide => struct {}, .unspecified => if (@import("builtin").is_test) struct {} else struct {}, }; //-------------------------------------------------------------------------------- // Section: Imports (6) //-------------------------------------------------------------------------------- const BOOL = @import("../foundation.zig").BOOL; const FARPROC = @import("../foundation.zig").FARPROC; const HRESULT = @import("../foundation.zig").HRESULT; const HWND = @import("../foundation.zig").HWND; const PWSTR = @import("../foundation.zig").PWSTR; const SYSTEMTIME = @import("../foundation.zig").SYSTEMTIME; test { // The following '_ = <FuncPtrType>' lines are a workaround for https://github.com/ziglang/zig/issues/4476 if (@hasDecl(@This(), "DRMCALLBACK")) { _ = DRMCALLBACK; } @setEvalBranchQuota(comptime @import("std").meta.declarations(@This()).len * 3); // reference all the pub declarations if (!@import("builtin").is_test) return; inline for (comptime @import("std").meta.declarations(@This())) |decl| { if (decl.is_pub) { _ = @field(@This(), decl.name); } } }
0
repos/capy/vendor/zigwin32/win32
repos/capy/vendor/zigwin32/win32/data/xml.zig
//! NOTE: this file is autogenerated, DO NOT MODIFY pub const ms_xml = @import("xml/ms_xml.zig"); pub const xml_lite = @import("xml/xml_lite.zig"); test { @import("std").testing.refAllDecls(@This()); }
0
repos/capy/vendor/zigwin32/win32
repos/capy/vendor/zigwin32/win32/data/html_help.zig
//! NOTE: this file is autogenerated, DO NOT MODIFY //-------------------------------------------------------------------------------- // Section: Constants (271) //-------------------------------------------------------------------------------- pub const HH_DISPLAY_TOPIC = @as(u32, 0); pub const HH_HELP_FINDER = @as(u32, 0); pub const HH_DISPLAY_TOC = @as(u32, 1); pub const HH_DISPLAY_INDEX = @as(u32, 2); pub const HH_DISPLAY_SEARCH = @as(u32, 3); pub const HH_SET_WIN_TYPE = @as(u32, 4); pub const HH_GET_WIN_TYPE = @as(u32, 5); pub const HH_GET_WIN_HANDLE = @as(u32, 6); pub const HH_ENUM_INFO_TYPE = @as(u32, 7); pub const HH_SET_INFO_TYPE = @as(u32, 8); pub const HH_SYNC = @as(u32, 9); pub const HH_RESERVED1 = @as(u32, 10); pub const HH_RESERVED2 = @as(u32, 11); pub const HH_RESERVED3 = @as(u32, 12); pub const HH_KEYWORD_LOOKUP = @as(u32, 13); pub const HH_DISPLAY_TEXT_POPUP = @as(u32, 14); pub const HH_HELP_CONTEXT = @as(u32, 15); pub const HH_TP_HELP_CONTEXTMENU = @as(u32, 16); pub const HH_TP_HELP_WM_HELP = @as(u32, 17); pub const HH_CLOSE_ALL = @as(u32, 18); pub const HH_ALINK_LOOKUP = @as(u32, 19); pub const HH_GET_LAST_ERROR = @as(u32, 20); pub const HH_ENUM_CATEGORY = @as(u32, 21); pub const HH_ENUM_CATEGORY_IT = @as(u32, 22); pub const HH_RESET_IT_FILTER = @as(u32, 23); pub const HH_SET_INCLUSIVE_FILTER = @as(u32, 24); pub const HH_SET_EXCLUSIVE_FILTER = @as(u32, 25); pub const HH_INITIALIZE = @as(u32, 28); pub const HH_UNINITIALIZE = @as(u32, 29); pub const HH_SET_QUERYSERVICE = @as(u32, 30); pub const HH_PRETRANSLATEMESSAGE = @as(u32, 253); pub const HH_SET_GLOBAL_PROPERTY = @as(u32, 252); pub const HH_SAFE_DISPLAY_TOPIC = @as(u32, 32); pub const HHWIN_PROP_TAB_AUTOHIDESHOW = @as(u32, 1); pub const HHWIN_PROP_ONTOP = @as(u32, 2); pub const HHWIN_PROP_NOTITLEBAR = @as(u32, 4); pub const HHWIN_PROP_NODEF_STYLES = @as(u32, 8); pub const HHWIN_PROP_NODEF_EXSTYLES = @as(u32, 16); pub const HHWIN_PROP_TRI_PANE = @as(u32, 32); pub const HHWIN_PROP_NOTB_TEXT = @as(u32, 64); pub const HHWIN_PROP_POST_QUIT = @as(u32, 128); pub const HHWIN_PROP_AUTO_SYNC = @as(u32, 256); pub const HHWIN_PROP_TRACKING = @as(u32, 512); pub const HHWIN_PROP_TAB_SEARCH = @as(u32, 1024); pub const HHWIN_PROP_TAB_HISTORY = @as(u32, 2048); pub const HHWIN_PROP_TAB_FAVORITES = @as(u32, 4096); pub const HHWIN_PROP_CHANGE_TITLE = @as(u32, 8192); pub const HHWIN_PROP_NAV_ONLY_WIN = @as(u32, 16384); pub const HHWIN_PROP_NO_TOOLBAR = @as(u32, 32768); pub const HHWIN_PROP_MENU = @as(u32, 65536); pub const HHWIN_PROP_TAB_ADVSEARCH = @as(u32, 131072); pub const HHWIN_PROP_USER_POS = @as(u32, 262144); pub const HHWIN_PROP_TAB_CUSTOM1 = @as(u32, 524288); pub const HHWIN_PROP_TAB_CUSTOM2 = @as(u32, 1048576); pub const HHWIN_PROP_TAB_CUSTOM3 = @as(u32, 2097152); pub const HHWIN_PROP_TAB_CUSTOM4 = @as(u32, 4194304); pub const HHWIN_PROP_TAB_CUSTOM5 = @as(u32, 8388608); pub const HHWIN_PROP_TAB_CUSTOM6 = @as(u32, 16777216); pub const HHWIN_PROP_TAB_CUSTOM7 = @as(u32, 33554432); pub const HHWIN_PROP_TAB_CUSTOM8 = @as(u32, 67108864); pub const HHWIN_PROP_TAB_CUSTOM9 = @as(u32, 134217728); pub const HHWIN_TB_MARGIN = @as(u32, 268435456); pub const HHWIN_PARAM_PROPERTIES = @as(u32, 2); pub const HHWIN_PARAM_STYLES = @as(u32, 4); pub const HHWIN_PARAM_EXSTYLES = @as(u32, 8); pub const HHWIN_PARAM_RECT = @as(u32, 16); pub const HHWIN_PARAM_NAV_WIDTH = @as(u32, 32); pub const HHWIN_PARAM_SHOWSTATE = @as(u32, 64); pub const HHWIN_PARAM_INFOTYPES = @as(u32, 128); pub const HHWIN_PARAM_TB_FLAGS = @as(u32, 256); pub const HHWIN_PARAM_EXPANSION = @as(u32, 512); pub const HHWIN_PARAM_TABPOS = @as(u32, 1024); pub const HHWIN_PARAM_TABORDER = @as(u32, 2048); pub const HHWIN_PARAM_HISTORY_COUNT = @as(u32, 4096); pub const HHWIN_PARAM_CUR_TAB = @as(u32, 8192); pub const HHWIN_BUTTON_EXPAND = @as(u32, 2); pub const HHWIN_BUTTON_BACK = @as(u32, 4); pub const HHWIN_BUTTON_FORWARD = @as(u32, 8); pub const HHWIN_BUTTON_STOP = @as(u32, 16); pub const HHWIN_BUTTON_REFRESH = @as(u32, 32); pub const HHWIN_BUTTON_HOME = @as(u32, 64); pub const HHWIN_BUTTON_BROWSE_FWD = @as(u32, 128); pub const HHWIN_BUTTON_BROWSE_BCK = @as(u32, 256); pub const HHWIN_BUTTON_NOTES = @as(u32, 512); pub const HHWIN_BUTTON_CONTENTS = @as(u32, 1024); pub const HHWIN_BUTTON_SYNC = @as(u32, 2048); pub const HHWIN_BUTTON_OPTIONS = @as(u32, 4096); pub const HHWIN_BUTTON_PRINT = @as(u32, 8192); pub const HHWIN_BUTTON_INDEX = @as(u32, 16384); pub const HHWIN_BUTTON_SEARCH = @as(u32, 32768); pub const HHWIN_BUTTON_HISTORY = @as(u32, 65536); pub const HHWIN_BUTTON_FAVORITES = @as(u32, 131072); pub const HHWIN_BUTTON_JUMP1 = @as(u32, 262144); pub const HHWIN_BUTTON_JUMP2 = @as(u32, 524288); pub const HHWIN_BUTTON_ZOOM = @as(u32, 1048576); pub const HHWIN_BUTTON_TOC_NEXT = @as(u32, 2097152); pub const HHWIN_BUTTON_TOC_PREV = @as(u32, 4194304); pub const IDTB_EXPAND = @as(u32, 200); pub const IDTB_CONTRACT = @as(u32, 201); pub const IDTB_STOP = @as(u32, 202); pub const IDTB_REFRESH = @as(u32, 203); pub const IDTB_BACK = @as(u32, 204); pub const IDTB_HOME = @as(u32, 205); pub const IDTB_SYNC = @as(u32, 206); pub const IDTB_PRINT = @as(u32, 207); pub const IDTB_OPTIONS = @as(u32, 208); pub const IDTB_FORWARD = @as(u32, 209); pub const IDTB_NOTES = @as(u32, 210); pub const IDTB_BROWSE_FWD = @as(u32, 211); pub const IDTB_BROWSE_BACK = @as(u32, 212); pub const IDTB_CONTENTS = @as(u32, 213); pub const IDTB_INDEX = @as(u32, 214); pub const IDTB_SEARCH = @as(u32, 215); pub const IDTB_HISTORY = @as(u32, 216); pub const IDTB_FAVORITES = @as(u32, 217); pub const IDTB_JUMP1 = @as(u32, 218); pub const IDTB_JUMP2 = @as(u32, 219); pub const IDTB_CUSTOMIZE = @as(u32, 221); pub const IDTB_ZOOM = @as(u32, 222); pub const IDTB_TOC_NEXT = @as(u32, 223); pub const IDTB_TOC_PREV = @as(u32, 224); pub const HH_MAX_TABS = @as(u32, 19); pub const HH_FTS_DEFAULT_PROXIMITY = @as(i32, -1); pub const CLSID_IITPropList = Guid.initString("4662daae-d393-11d0-9a56-00c04fb68bf7"); pub const PROP_ADD = @as(u32, 0); pub const PROP_DELETE = @as(u32, 1); pub const PROP_UPDATE = @as(u32, 2); pub const TYPE_VALUE = @as(u32, 0); pub const TYPE_POINTER = @as(u32, 1); pub const TYPE_STRING = @as(u32, 2); pub const CLSID_IITDatabase = Guid.initString("66673452-8c23-11d0-a84e-00aa006c7d01"); pub const CLSID_IITDatabaseLocal = Guid.initString("4662daa9-d393-11d0-9a56-00c04fb68bf7"); pub const STDPROP_UID = @as(u32, 1); pub const STDPROP_TITLE = @as(u32, 2); pub const STDPROP_USERDATA = @as(u32, 3); pub const STDPROP_KEY = @as(u32, 4); pub const STDPROP_SORTKEY = @as(u32, 100); pub const STDPROP_DISPLAYKEY = @as(u32, 101); pub const STDPROP_SORTORDINAL = @as(u32, 102); pub const STDPROP_INDEX_TEXT = @as(u32, 200); pub const STDPROP_INDEX_VFLD = @as(u32, 201); pub const STDPROP_INDEX_DTYPE = @as(u32, 202); pub const STDPROP_INDEX_LENGTH = @as(u32, 203); pub const STDPROP_INDEX_BREAK = @as(u32, 204); pub const STDPROP_INDEX_TERM = @as(u32, 210); pub const STDPROP_INDEX_TERM_RAW_LENGTH = @as(u32, 211); pub const STDPROP_USERPROP_BASE = @as(u32, 65536); pub const STDPROP_USERPROP_MAX = @as(u32, 2147483647); pub const CLSID_IITCmdInt = Guid.initString("4662daa2-d393-11d0-9a56-00c04fb68bf7"); pub const CLSID_IITSvMgr = Guid.initString("4662daa3-d393-11d0-9a56-00c04fb68bf7"); pub const CLSID_IITWordWheelUpdate = Guid.initString("4662daa5-d393-11d0-9a56-00c04fb68bf7"); pub const CLSID_IITGroupUpdate = Guid.initString("4662daa4-d393-11d0-9a56-00c04fb68bf7"); pub const CLSID_IITIndexBuild = Guid.initString("8fa0d5aa-dedf-11d0-9a61-00c04fb68bf7"); pub const CLSID_IITWWFilterBuild = Guid.initString("8fa0d5ab-dedf-11d0-9a61-00c04fb68bf7"); pub const CLSID_IITWordWheel = Guid.initString("d73725c2-8c12-11d0-a84e-00aa006c7d01"); pub const CLSID_IITWordWheelLocal = Guid.initString("4662daa8-d393-11d0-9a56-00c04fb68bf7"); pub const ITWW_OPEN_NOCONNECT = @as(u32, 1); pub const ITWW_CBKEY_MAX = @as(u32, 1024); pub const IITWBC_BREAK_ACCEPT_WILDCARDS = @as(u32, 1); pub const IITWBC_BREAK_AND_STEM = @as(u32, 2); pub const E_NOTEXIST = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2147479552)); pub const E_DUPLICATE = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2147479551)); pub const E_BADVERSION = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2147479550)); pub const E_BADFILE = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2147479549)); pub const E_BADFORMAT = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2147479548)); pub const E_NOPERMISSION = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2147479547)); pub const E_ASSERT = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2147479546)); pub const E_INTERRUPT = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2147479545)); pub const E_NOTSUPPORTED = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2147479544)); pub const E_OUTOFRANGE = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2147479543)); pub const E_GROUPIDTOOBIG = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2147479542)); pub const E_TOOMANYTITLES = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2147479541)); pub const E_NOMERGEDDATA = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2147479540)); pub const E_NOTFOUND = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2147479539)); pub const E_CANTFINDDLL = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2147479538)); pub const E_NOHANDLE = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2147479537)); pub const E_GETLASTERROR = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2147479536)); pub const E_BADPARAM = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2147479535)); pub const E_INVALIDSTATE = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2147479534)); pub const E_NOTOPEN = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2147479533)); pub const E_ALREADYOPEN = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2147479533)); pub const E_UNKNOWN_TRANSPORT = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2147479530)); pub const E_UNSUPPORTED_TRANSPORT = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2147479529)); pub const E_BADFILTERSIZE = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2147479528)); pub const E_TOOMANYOBJECTS = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2147479527)); pub const E_NAMETOOLONG = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2147479520)); pub const E_FILECREATE = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2147479504)); pub const E_FILECLOSE = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2147479503)); pub const E_FILEREAD = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2147479502)); pub const E_FILESEEK = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2147479501)); pub const E_FILEWRITE = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2147479500)); pub const E_FILEDELETE = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2147479499)); pub const E_FILEINVALID = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2147479498)); pub const E_FILENOTFOUND = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2147479497)); pub const E_DISKFULL = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2147479496)); pub const E_TOOMANYTOPICS = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2147479472)); pub const E_TOOMANYDUPS = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2147479471)); pub const E_TREETOOBIG = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2147479470)); pub const E_BADBREAKER = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2147479469)); pub const E_BADVALUE = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2147479468)); pub const E_ALL_WILD = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2147479467)); pub const E_TOODEEP = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2147479466)); pub const E_EXPECTEDTERM = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2147479465)); pub const E_MISSLPAREN = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2147479464)); pub const E_MISSRPAREN = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2147479463)); pub const E_MISSQUOTE = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2147479462)); pub const E_NULLQUERY = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2147479461)); pub const E_STOPWORD = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2147479460)); pub const E_BADRANGEOP = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2147479459)); pub const E_UNMATCHEDTYPE = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2147479458)); pub const E_WORDTOOLONG = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2147479457)); pub const E_BADINDEXFLAGS = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2147479456)); pub const E_WILD_IN_DTYPE = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2147479455)); pub const E_NOSTEMMER = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2147479454)); pub const E_MISSINGPROP = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2147479424)); pub const E_PROPLISTNOTEMPTY = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2147479423)); pub const E_PROPLISTEMPTY = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2147479422)); pub const E_ALREADYINIT = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2147479421)); pub const E_NOTINIT = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2147479420)); pub const E_RESULTSETEMPTY = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2147479419)); pub const E_TOOMANYCOLUMNS = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2147479418)); pub const E_NOKEYPROP = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2147479417)); pub const CLSID_IITResultSet = Guid.initString("4662daa7-d393-11d0-9a56-00c04fb68bf7"); pub const MAX_COLUMNS = @as(u32, 256); pub const CLSID_ITStdBreaker = Guid.initString("4662daaf-d393-11d0-9a56-00c04fb68bf7"); pub const CLSID_ITEngStemmer = Guid.initString("8fa0d5a8-dedf-11d0-9a61-00c04fb68bf7"); pub const HHWIN_NAVTYPE_TOC = @as(i32, 0); pub const HHWIN_NAVTYPE_INDEX = @as(i32, 1); pub const HHWIN_NAVTYPE_SEARCH = @as(i32, 2); pub const HHWIN_NAVTYPE_FAVORITES = @as(i32, 3); pub const HHWIN_NAVTYPE_HISTORY = @as(i32, 4); pub const HHWIN_NAVTYPE_AUTHOR = @as(i32, 5); pub const HHWIN_NAVTYPE_CUSTOM_FIRST = @as(i32, 11); pub const IT_INCLUSIVE = @as(i32, 0); pub const IT_EXCLUSIVE = @as(i32, 1); pub const IT_HIDDEN = @as(i32, 2); pub const HHWIN_NAVTAB_TOP = @as(i32, 0); pub const HHWIN_NAVTAB_LEFT = @as(i32, 1); pub const HHWIN_NAVTAB_BOTTOM = @as(i32, 2); pub const HH_TAB_CONTENTS = @as(i32, 0); pub const HH_TAB_INDEX = @as(i32, 1); pub const HH_TAB_SEARCH = @as(i32, 2); pub const HH_TAB_FAVORITES = @as(i32, 3); pub const HH_TAB_HISTORY = @as(i32, 4); pub const HH_TAB_AUTHOR = @as(i32, 5); pub const HH_TAB_CUSTOM_FIRST = @as(i32, 11); pub const HH_TAB_CUSTOM_LAST = @as(i32, 19); pub const HHACT_TAB_CONTENTS = @as(i32, 0); pub const HHACT_TAB_INDEX = @as(i32, 1); pub const HHACT_TAB_SEARCH = @as(i32, 2); pub const HHACT_TAB_HISTORY = @as(i32, 3); pub const HHACT_TAB_FAVORITES = @as(i32, 4); pub const HHACT_EXPAND = @as(i32, 5); pub const HHACT_CONTRACT = @as(i32, 6); pub const HHACT_BACK = @as(i32, 7); pub const HHACT_FORWARD = @as(i32, 8); pub const HHACT_STOP = @as(i32, 9); pub const HHACT_REFRESH = @as(i32, 10); pub const HHACT_HOME = @as(i32, 11); pub const HHACT_SYNC = @as(i32, 12); pub const HHACT_OPTIONS = @as(i32, 13); pub const HHACT_PRINT = @as(i32, 14); pub const HHACT_HIGHLIGHT = @as(i32, 15); pub const HHACT_CUSTOMIZE = @as(i32, 16); pub const HHACT_JUMP1 = @as(i32, 17); pub const HHACT_JUMP2 = @as(i32, 18); pub const HHACT_ZOOM = @as(i32, 19); pub const HHACT_TOC_NEXT = @as(i32, 20); pub const HHACT_TOC_PREV = @as(i32, 21); pub const HHACT_NOTES = @as(i32, 22); pub const HHACT_LAST_ENUM = @as(i32, 23); //-------------------------------------------------------------------------------- // Section: Types (27) //-------------------------------------------------------------------------------- pub const WORD_WHEEL_OPEN_FLAGS = enum(u32) { T = 0, _, pub fn initFlags(o: struct { T: u1 = 0, }) WORD_WHEEL_OPEN_FLAGS { return @as(WORD_WHEEL_OPEN_FLAGS, @enumFromInt((if (o.T == 1) @intFromEnum(WORD_WHEEL_OPEN_FLAGS.T) else 0))); } }; pub const ITWW_OPEN_CONNECT = WORD_WHEEL_OPEN_FLAGS.T; pub const HHN_NOTIFY = extern struct { hdr: NMHDR, pszUrl: ?[*:0]const u8, }; pub const HH_POPUP = extern struct { cbStruct: i32, hinst: ?HINSTANCE, idString: u32, pszText: ?*i8, pt: POINT, clrForeground: u32, clrBackground: u32, rcMargins: RECT, pszFont: ?*i8, }; pub const HH_AKLINK = extern struct { cbStruct: i32, fReserved: BOOL, pszKeywords: ?*i8, pszUrl: ?*i8, pszMsgText: ?*i8, pszMsgTitle: ?*i8, pszWindow: ?*i8, fIndexOnFail: BOOL, }; pub const HH_ENUM_IT = extern struct { cbStruct: i32, iType: i32, pszCatName: ?[*:0]const u8, pszITName: ?[*:0]const u8, pszITDescription: ?[*:0]const u8, }; pub const HH_ENUM_CAT = extern struct { cbStruct: i32, pszCatName: ?[*:0]const u8, pszCatDescription: ?[*:0]const u8, }; pub const HH_SET_INFOTYPE = extern struct { cbStruct: i32, pszCatName: ?[*:0]const u8, pszInfoTypeName: ?[*:0]const u8, }; pub const HH_FTS_QUERY = extern struct { cbStruct: i32, fUniCodeStrings: BOOL, pszSearchQuery: ?*i8, iProximity: i32, fStemmedSearch: BOOL, fTitleOnly: BOOL, fExecute: BOOL, pszWindow: ?*i8, }; pub const HH_WINTYPE = extern struct { cbStruct: i32, fUniCodeStrings: BOOL, pszType: ?*i8, fsValidMembers: u32, fsWinProperties: u32, pszCaption: ?*i8, dwStyles: u32, dwExStyles: u32, rcWindowPos: RECT, nShowState: i32, hwndHelp: ?HWND, hwndCaller: ?HWND, paInfoTypes: ?*u32, hwndToolBar: ?HWND, hwndNavigation: ?HWND, hwndHTML: ?HWND, iNavWidth: i32, rcHTML: RECT, pszToc: ?*i8, pszIndex: ?*i8, pszFile: ?*i8, pszHome: ?*i8, fsToolBarFlags: u32, fNotExpanded: BOOL, curNavType: i32, tabpos: i32, idNotify: i32, tabOrder: [20]u8, cHistory: i32, pszJump1: ?*i8, pszJump2: ?*i8, pszUrlJump1: ?*i8, pszUrlJump2: ?*i8, rcMinSize: RECT, cbInfoTypes: i32, pszCustomTabs: ?*i8, }; pub const HHNTRACK = extern struct { hdr: NMHDR, pszCurUrl: ?[*:0]const u8, idAction: i32, phhWinType: ?*HH_WINTYPE, }; pub const HH_GPROPID = enum(i32) { SINGLETHREAD = 1, TOOLBAR_MARGIN = 2, UI_LANGUAGE = 3, CURRENT_SUBSET = 4, CONTENT_LANGUAGE = 5, }; pub const HH_GPROPID_SINGLETHREAD = HH_GPROPID.SINGLETHREAD; pub const HH_GPROPID_TOOLBAR_MARGIN = HH_GPROPID.TOOLBAR_MARGIN; pub const HH_GPROPID_UI_LANGUAGE = HH_GPROPID.UI_LANGUAGE; pub const HH_GPROPID_CURRENT_SUBSET = HH_GPROPID.CURRENT_SUBSET; pub const HH_GPROPID_CONTENT_LANGUAGE = HH_GPROPID.CONTENT_LANGUAGE; pub const HH_GLOBAL_PROPERTY = extern struct { id: HH_GPROPID, @"var": VARIANT, }; pub const CProperty = extern struct { dwPropID: u32, cbData: u32, dwType: u32, Anonymous: extern union { lpszwData: ?PWSTR, lpvData: ?*anyopaque, dwValue: u32, }, fPersist: BOOL, }; const IID_IITPropList_Value = Guid.initString("1f403bb1-9997-11d0-a850-00aa006c7d01"); pub const IID_IITPropList = &IID_IITPropList_Value; pub const IITPropList = extern struct { pub const VTable = extern struct { base: IPersistStreamInit.VTable, Set: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IITPropList, PropID: u32, lpszwString: ?[*:0]const u16, dwOperation: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IITPropList, PropID: u32, lpszwString: ?[*:0]const u16, dwOperation: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Set1: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IITPropList, PropID: u32, lpvData: ?*anyopaque, cbData: u32, dwOperation: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IITPropList, PropID: u32, lpvData: ?*anyopaque, cbData: u32, dwOperation: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Set2: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IITPropList, PropID: u32, dwData: u32, dwOperation: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IITPropList, PropID: u32, dwData: u32, dwOperation: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Add: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IITPropList, Prop: ?*CProperty, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IITPropList, Prop: ?*CProperty, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Get: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IITPropList, PropID: u32, Property: ?*CProperty, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IITPropList, PropID: u32, Property: ?*CProperty, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Clear: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IITPropList, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IITPropList, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetPersist: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IITPropList, fPersist: BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IITPropList, fPersist: BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetPersist1: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IITPropList, PropID: u32, fPersist: BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IITPropList, PropID: u32, fPersist: BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetFirst: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IITPropList, Property: ?*CProperty, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IITPropList, Property: ?*CProperty, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetNext: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IITPropList, Property: ?*CProperty, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IITPropList, Property: ?*CProperty, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetPropCount: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IITPropList, cProp: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IITPropList, cProp: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SaveHeader: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IITPropList, lpvData: ?*anyopaque, dwHdrSize: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IITPropList, lpvData: ?*anyopaque, dwHdrSize: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SaveData: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IITPropList, lpvHeader: ?*anyopaque, dwHdrSize: u32, lpvData: ?*anyopaque, dwBufSize: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IITPropList, lpvHeader: ?*anyopaque, dwHdrSize: u32, lpvData: ?*anyopaque, dwBufSize: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetHeaderSize: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IITPropList, dwHdrSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IITPropList, dwHdrSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetDataSize: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IITPropList, lpvHeader: ?*anyopaque, dwHdrSize: u32, dwDataSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IITPropList, lpvHeader: ?*anyopaque, dwHdrSize: u32, dwDataSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SaveDataToStream: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IITPropList, lpvHeader: ?*anyopaque, dwHdrSize: u32, pStream: ?*IStream, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IITPropList, lpvHeader: ?*anyopaque, dwHdrSize: u32, pStream: ?*IStream, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, LoadFromMem: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IITPropList, lpvData: ?*anyopaque, dwBufSize: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IITPropList, lpvData: ?*anyopaque, dwBufSize: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SaveToMem: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IITPropList, lpvData: ?*anyopaque, dwBufSize: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IITPropList, lpvData: ?*anyopaque, dwBufSize: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IPersistStreamInit.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IITPropList_Set(self: *const T, PropID: u32, lpszwString: ?[*:0]const u16, dwOperation: u32) HRESULT { return @as(*const IITPropList.VTable, @ptrCast(self.vtable)).Set(@as(*const IITPropList, @ptrCast(self)), PropID, lpszwString, dwOperation); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IITPropList_Set1(self: *const T, PropID: u32, lpvData: ?*anyopaque, cbData: u32, dwOperation: u32) HRESULT { return @as(*const IITPropList.VTable, @ptrCast(self.vtable)).Set(@as(*const IITPropList, @ptrCast(self)), PropID, lpvData, cbData, dwOperation); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IITPropList_Set2(self: *const T, PropID: u32, dwData: u32, dwOperation: u32) HRESULT { return @as(*const IITPropList.VTable, @ptrCast(self.vtable)).Set(@as(*const IITPropList, @ptrCast(self)), PropID, dwData, dwOperation); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IITPropList_Add(self: *const T, Prop: ?*CProperty) HRESULT { return @as(*const IITPropList.VTable, @ptrCast(self.vtable)).Add(@as(*const IITPropList, @ptrCast(self)), Prop); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IITPropList_Get(self: *const T, PropID: u32, Property: ?*CProperty) HRESULT { return @as(*const IITPropList.VTable, @ptrCast(self.vtable)).Get(@as(*const IITPropList, @ptrCast(self)), PropID, Property); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IITPropList_Clear(self: *const T) HRESULT { return @as(*const IITPropList.VTable, @ptrCast(self.vtable)).Clear(@as(*const IITPropList, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IITPropList_SetPersist(self: *const T, fPersist: BOOL) HRESULT { return @as(*const IITPropList.VTable, @ptrCast(self.vtable)).SetPersist(@as(*const IITPropList, @ptrCast(self)), fPersist); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IITPropList_SetPersist1(self: *const T, PropID: u32, fPersist: BOOL) HRESULT { return @as(*const IITPropList.VTable, @ptrCast(self.vtable)).SetPersist(@as(*const IITPropList, @ptrCast(self)), PropID, fPersist); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IITPropList_GetFirst(self: *const T, Property: ?*CProperty) HRESULT { return @as(*const IITPropList.VTable, @ptrCast(self.vtable)).GetFirst(@as(*const IITPropList, @ptrCast(self)), Property); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IITPropList_GetNext(self: *const T, Property: ?*CProperty) HRESULT { return @as(*const IITPropList.VTable, @ptrCast(self.vtable)).GetNext(@as(*const IITPropList, @ptrCast(self)), Property); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IITPropList_GetPropCount(self: *const T, cProp: ?*i32) HRESULT { return @as(*const IITPropList.VTable, @ptrCast(self.vtable)).GetPropCount(@as(*const IITPropList, @ptrCast(self)), cProp); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IITPropList_SaveHeader(self: *const T, lpvData: ?*anyopaque, dwHdrSize: u32) HRESULT { return @as(*const IITPropList.VTable, @ptrCast(self.vtable)).SaveHeader(@as(*const IITPropList, @ptrCast(self)), lpvData, dwHdrSize); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IITPropList_SaveData(self: *const T, lpvHeader: ?*anyopaque, dwHdrSize: u32, lpvData: ?*anyopaque, dwBufSize: u32) HRESULT { return @as(*const IITPropList.VTable, @ptrCast(self.vtable)).SaveData(@as(*const IITPropList, @ptrCast(self)), lpvHeader, dwHdrSize, lpvData, dwBufSize); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IITPropList_GetHeaderSize(self: *const T, dwHdrSize: ?*u32) HRESULT { return @as(*const IITPropList.VTable, @ptrCast(self.vtable)).GetHeaderSize(@as(*const IITPropList, @ptrCast(self)), dwHdrSize); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IITPropList_GetDataSize(self: *const T, lpvHeader: ?*anyopaque, dwHdrSize: u32, dwDataSize: ?*u32) HRESULT { return @as(*const IITPropList.VTable, @ptrCast(self.vtable)).GetDataSize(@as(*const IITPropList, @ptrCast(self)), lpvHeader, dwHdrSize, dwDataSize); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IITPropList_SaveDataToStream(self: *const T, lpvHeader: ?*anyopaque, dwHdrSize: u32, pStream: ?*IStream) HRESULT { return @as(*const IITPropList.VTable, @ptrCast(self.vtable)).SaveDataToStream(@as(*const IITPropList, @ptrCast(self)), lpvHeader, dwHdrSize, pStream); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IITPropList_LoadFromMem(self: *const T, lpvData: ?*anyopaque, dwBufSize: u32) HRESULT { return @as(*const IITPropList.VTable, @ptrCast(self.vtable)).LoadFromMem(@as(*const IITPropList, @ptrCast(self)), lpvData, dwBufSize); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IITPropList_SaveToMem(self: *const T, lpvData: ?*anyopaque, dwBufSize: u32) HRESULT { return @as(*const IITPropList.VTable, @ptrCast(self.vtable)).SaveToMem(@as(*const IITPropList, @ptrCast(self)), lpvData, dwBufSize); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IITDatabase_Value = Guid.initString("8fa0d5a2-dedf-11d0-9a61-00c04fb68bf7"); pub const IID_IITDatabase = &IID_IITDatabase_Value; pub const IITDatabase = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, Open: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IITDatabase, lpszHost: ?[*:0]const u16, lpszMoniker: ?[*:0]const u16, dwFlags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IITDatabase, lpszHost: ?[*:0]const u16, lpszMoniker: ?[*:0]const u16, dwFlags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Close: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IITDatabase, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IITDatabase, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, CreateObject: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IITDatabase, rclsid: ?*const Guid, pdwObjInstance: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IITDatabase, rclsid: ?*const Guid, pdwObjInstance: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetObject: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IITDatabase, dwObjInstance: u32, riid: ?*const Guid, ppvObj: ?*?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IITDatabase, dwObjInstance: u32, riid: ?*const Guid, ppvObj: ?*?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetObjectPersistence: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IITDatabase, lpwszObject: ?[*:0]const u16, dwObjInstance: u32, ppvPersistence: ?*?*anyopaque, fStream: BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IITDatabase, lpwszObject: ?[*:0]const u16, dwObjInstance: u32, ppvPersistence: ?*?*anyopaque, fStream: BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IITDatabase_Open(self: *const T, lpszHost: ?[*:0]const u16, lpszMoniker: ?[*:0]const u16, dwFlags: u32) HRESULT { return @as(*const IITDatabase.VTable, @ptrCast(self.vtable)).Open(@as(*const IITDatabase, @ptrCast(self)), lpszHost, lpszMoniker, dwFlags); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IITDatabase_Close(self: *const T) HRESULT { return @as(*const IITDatabase.VTable, @ptrCast(self.vtable)).Close(@as(*const IITDatabase, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IITDatabase_CreateObject(self: *const T, rclsid: ?*const Guid, pdwObjInstance: ?*u32) HRESULT { return @as(*const IITDatabase.VTable, @ptrCast(self.vtable)).CreateObject(@as(*const IITDatabase, @ptrCast(self)), rclsid, pdwObjInstance); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IITDatabase_GetObject(self: *const T, dwObjInstance: u32, riid: ?*const Guid, ppvObj: ?*?*anyopaque) HRESULT { return @as(*const IITDatabase.VTable, @ptrCast(self.vtable)).GetObject(@as(*const IITDatabase, @ptrCast(self)), dwObjInstance, riid, ppvObj); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IITDatabase_GetObjectPersistence(self: *const T, lpwszObject: ?[*:0]const u16, dwObjInstance: u32, ppvPersistence: ?*?*anyopaque, fStream: BOOL) HRESULT { return @as(*const IITDatabase.VTable, @ptrCast(self.vtable)).GetObjectPersistence(@as(*const IITDatabase, @ptrCast(self)), lpwszObject, dwObjInstance, ppvPersistence, fStream); } }; } pub usingnamespace MethodMixin(@This()); }; pub const IITGroup = extern struct { placeholder: usize, // TODO: why is this type empty? }; pub const IITQuery = extern struct { placeholder: usize, // TODO: why is this type empty? }; const IID_IITWordWheel_Value = Guid.initString("8fa0d5a4-dedf-11d0-9a61-00c04fb68bf7"); pub const IID_IITWordWheel = &IID_IITWordWheel_Value; pub const IITWordWheel = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, Open: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IITWordWheel, lpITDB: ?*IITDatabase, lpszMoniker: ?[*:0]const u16, dwFlags: WORD_WHEEL_OPEN_FLAGS, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IITWordWheel, lpITDB: ?*IITDatabase, lpszMoniker: ?[*:0]const u16, dwFlags: WORD_WHEEL_OPEN_FLAGS, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Close: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IITWordWheel, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IITWordWheel, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetLocaleInfo: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IITWordWheel, pdwCodePageID: ?*u32, plcid: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IITWordWheel, pdwCodePageID: ?*u32, plcid: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetSorterInstance: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IITWordWheel, pdwObjInstance: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IITWordWheel, pdwObjInstance: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Count: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IITWordWheel, pcEntries: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IITWordWheel, pcEntries: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Lookup: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IITWordWheel, lpcvPrefix: ?*const anyopaque, fExactMatch: BOOL, plEntry: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IITWordWheel, lpcvPrefix: ?*const anyopaque, fExactMatch: BOOL, plEntry: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Lookup1: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IITWordWheel, lEntry: i32, lpITResult: ?*IITResultSet, cEntries: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IITWordWheel, lEntry: i32, lpITResult: ?*IITResultSet, cEntries: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Lookup2: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IITWordWheel, lEntry: i32, lpvKeyBuf: ?*anyopaque, cbKeyBuf: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IITWordWheel, lEntry: i32, lpvKeyBuf: ?*anyopaque, cbKeyBuf: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetGroup: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IITWordWheel, piitGroup: ?*IITGroup, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IITWordWheel, piitGroup: ?*IITGroup, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetGroup: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IITWordWheel, ppiitGroup: ?*?*IITGroup, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IITWordWheel, ppiitGroup: ?*?*IITGroup, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetDataCount: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IITWordWheel, lEntry: i32, pdwCount: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IITWordWheel, lEntry: i32, pdwCount: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetData: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IITWordWheel, lEntry: i32, lpITResult: ?*IITResultSet, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IITWordWheel, lEntry: i32, lpITResult: ?*IITResultSet, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetDataColumns: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IITWordWheel, pRS: ?*IITResultSet, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IITWordWheel, pRS: ?*IITResultSet, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IITWordWheel_Open(self: *const T, lpITDB: ?*IITDatabase, lpszMoniker: ?[*:0]const u16, dwFlags: WORD_WHEEL_OPEN_FLAGS) HRESULT { return @as(*const IITWordWheel.VTable, @ptrCast(self.vtable)).Open(@as(*const IITWordWheel, @ptrCast(self)), lpITDB, lpszMoniker, dwFlags); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IITWordWheel_Close(self: *const T) HRESULT { return @as(*const IITWordWheel.VTable, @ptrCast(self.vtable)).Close(@as(*const IITWordWheel, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IITWordWheel_GetLocaleInfo(self: *const T, pdwCodePageID: ?*u32, plcid: ?*u32) HRESULT { return @as(*const IITWordWheel.VTable, @ptrCast(self.vtable)).GetLocaleInfo(@as(*const IITWordWheel, @ptrCast(self)), pdwCodePageID, plcid); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IITWordWheel_GetSorterInstance(self: *const T, pdwObjInstance: ?*u32) HRESULT { return @as(*const IITWordWheel.VTable, @ptrCast(self.vtable)).GetSorterInstance(@as(*const IITWordWheel, @ptrCast(self)), pdwObjInstance); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IITWordWheel_Count(self: *const T, pcEntries: ?*i32) HRESULT { return @as(*const IITWordWheel.VTable, @ptrCast(self.vtable)).Count(@as(*const IITWordWheel, @ptrCast(self)), pcEntries); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IITWordWheel_Lookup(self: *const T, lpcvPrefix: ?*const anyopaque, fExactMatch: BOOL, plEntry: ?*i32) HRESULT { return @as(*const IITWordWheel.VTable, @ptrCast(self.vtable)).Lookup(@as(*const IITWordWheel, @ptrCast(self)), lpcvPrefix, fExactMatch, plEntry); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IITWordWheel_Lookup1(self: *const T, lEntry: i32, lpITResult: ?*IITResultSet, cEntries: i32) HRESULT { return @as(*const IITWordWheel.VTable, @ptrCast(self.vtable)).Lookup(@as(*const IITWordWheel, @ptrCast(self)), lEntry, lpITResult, cEntries); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IITWordWheel_Lookup2(self: *const T, lEntry: i32, lpvKeyBuf: ?*anyopaque, cbKeyBuf: u32) HRESULT { return @as(*const IITWordWheel.VTable, @ptrCast(self.vtable)).Lookup(@as(*const IITWordWheel, @ptrCast(self)), lEntry, lpvKeyBuf, cbKeyBuf); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IITWordWheel_SetGroup(self: *const T, piitGroup: ?*IITGroup) HRESULT { return @as(*const IITWordWheel.VTable, @ptrCast(self.vtable)).SetGroup(@as(*const IITWordWheel, @ptrCast(self)), piitGroup); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IITWordWheel_GetGroup(self: *const T, ppiitGroup: ?*?*IITGroup) HRESULT { return @as(*const IITWordWheel.VTable, @ptrCast(self.vtable)).GetGroup(@as(*const IITWordWheel, @ptrCast(self)), ppiitGroup); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IITWordWheel_GetDataCount(self: *const T, lEntry: i32, pdwCount: ?*u32) HRESULT { return @as(*const IITWordWheel.VTable, @ptrCast(self.vtable)).GetDataCount(@as(*const IITWordWheel, @ptrCast(self)), lEntry, pdwCount); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IITWordWheel_GetData(self: *const T, lEntry: i32, lpITResult: ?*IITResultSet) HRESULT { return @as(*const IITWordWheel.VTable, @ptrCast(self.vtable)).GetData(@as(*const IITWordWheel, @ptrCast(self)), lEntry, lpITResult); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IITWordWheel_GetDataColumns(self: *const T, pRS: ?*IITResultSet) HRESULT { return @as(*const IITWordWheel.VTable, @ptrCast(self.vtable)).GetDataColumns(@as(*const IITWordWheel, @ptrCast(self)), pRS); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IStemSink_Value = Guid.initString("fe77c330-7f42-11ce-be57-00aa0051fe20"); pub const IID_IStemSink = &IID_IStemSink_Value; pub const IStemSink = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, PutAltWord: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IStemSink, pwcInBuf: ?[*:0]const u16, cwc: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IStemSink, pwcInBuf: ?[*:0]const u16, cwc: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, PutWord: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IStemSink, pwcInBuf: ?[*:0]const u16, cwc: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IStemSink, pwcInBuf: ?[*:0]const u16, cwc: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IStemSink_PutAltWord(self: *const T, pwcInBuf: ?[*:0]const u16, cwc: u32) HRESULT { return @as(*const IStemSink.VTable, @ptrCast(self.vtable)).PutAltWord(@as(*const IStemSink, @ptrCast(self)), pwcInBuf, cwc); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IStemSink_PutWord(self: *const T, pwcInBuf: ?[*:0]const u16, cwc: u32) HRESULT { return @as(*const IStemSink.VTable, @ptrCast(self.vtable)).PutWord(@as(*const IStemSink, @ptrCast(self)), pwcInBuf, cwc); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IStemmerConfig_Value = Guid.initString("8fa0d5a7-dedf-11d0-9a61-00c04fb68bf7"); pub const IID_IStemmerConfig = &IID_IStemmerConfig_Value; pub const IStemmerConfig = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, SetLocaleInfo: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IStemmerConfig, dwCodePageID: u32, lcid: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IStemmerConfig, dwCodePageID: u32, lcid: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetLocaleInfo: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IStemmerConfig, pdwCodePageID: ?*u32, plcid: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IStemmerConfig, pdwCodePageID: ?*u32, plcid: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetControlInfo: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IStemmerConfig, grfStemFlags: u32, dwReserved: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IStemmerConfig, grfStemFlags: u32, dwReserved: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetControlInfo: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IStemmerConfig, pgrfStemFlags: ?*u32, pdwReserved: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IStemmerConfig, pgrfStemFlags: ?*u32, pdwReserved: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, LoadExternalStemmerData: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IStemmerConfig, pStream: ?*IStream, dwExtDataType: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IStemmerConfig, pStream: ?*IStream, dwExtDataType: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IStemmerConfig_SetLocaleInfo(self: *const T, dwCodePageID: u32, lcid: u32) HRESULT { return @as(*const IStemmerConfig.VTable, @ptrCast(self.vtable)).SetLocaleInfo(@as(*const IStemmerConfig, @ptrCast(self)), dwCodePageID, lcid); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IStemmerConfig_GetLocaleInfo(self: *const T, pdwCodePageID: ?*u32, plcid: ?*u32) HRESULT { return @as(*const IStemmerConfig.VTable, @ptrCast(self.vtable)).GetLocaleInfo(@as(*const IStemmerConfig, @ptrCast(self)), pdwCodePageID, plcid); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IStemmerConfig_SetControlInfo(self: *const T, grfStemFlags: u32, dwReserved: u32) HRESULT { return @as(*const IStemmerConfig.VTable, @ptrCast(self.vtable)).SetControlInfo(@as(*const IStemmerConfig, @ptrCast(self)), grfStemFlags, dwReserved); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IStemmerConfig_GetControlInfo(self: *const T, pgrfStemFlags: ?*u32, pdwReserved: ?*u32) HRESULT { return @as(*const IStemmerConfig.VTable, @ptrCast(self.vtable)).GetControlInfo(@as(*const IStemmerConfig, @ptrCast(self)), pgrfStemFlags, pdwReserved); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IStemmerConfig_LoadExternalStemmerData(self: *const T, pStream: ?*IStream, dwExtDataType: u32) HRESULT { return @as(*const IStemmerConfig.VTable, @ptrCast(self.vtable)).LoadExternalStemmerData(@as(*const IStemmerConfig, @ptrCast(self)), pStream, dwExtDataType); } }; } pub usingnamespace MethodMixin(@This()); }; pub const IITStopWordList = extern struct { placeholder: usize, // TODO: why is this type empty? }; const IID_IWordBreakerConfig_Value = Guid.initString("8fa0d5a6-dedf-11d0-9a61-00c04fb68bf7"); pub const IID_IWordBreakerConfig = &IID_IWordBreakerConfig_Value; pub const IWordBreakerConfig = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, SetLocaleInfo: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IWordBreakerConfig, dwCodePageID: u32, lcid: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IWordBreakerConfig, dwCodePageID: u32, lcid: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetLocaleInfo: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IWordBreakerConfig, pdwCodePageID: ?*u32, plcid: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IWordBreakerConfig, pdwCodePageID: ?*u32, plcid: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetBreakWordType: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IWordBreakerConfig, dwBreakWordType: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IWordBreakerConfig, dwBreakWordType: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetBreakWordType: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IWordBreakerConfig, pdwBreakWordType: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IWordBreakerConfig, pdwBreakWordType: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetControlInfo: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IWordBreakerConfig, grfBreakFlags: u32, dwReserved: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IWordBreakerConfig, grfBreakFlags: u32, dwReserved: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetControlInfo: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IWordBreakerConfig, pgrfBreakFlags: ?*u32, pdwReserved: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IWordBreakerConfig, pgrfBreakFlags: ?*u32, pdwReserved: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, LoadExternalBreakerData: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IWordBreakerConfig, pStream: ?*IStream, dwExtDataType: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IWordBreakerConfig, pStream: ?*IStream, dwExtDataType: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetWordStemmer: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IWordBreakerConfig, rclsid: ?*const Guid, pStemmer: ?*IStemmer, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IWordBreakerConfig, rclsid: ?*const Guid, pStemmer: ?*IStemmer, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetWordStemmer: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IWordBreakerConfig, ppStemmer: ?*?*IStemmer, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IWordBreakerConfig, ppStemmer: ?*?*IStemmer, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWordBreakerConfig_SetLocaleInfo(self: *const T, dwCodePageID: u32, lcid: u32) HRESULT { return @as(*const IWordBreakerConfig.VTable, @ptrCast(self.vtable)).SetLocaleInfo(@as(*const IWordBreakerConfig, @ptrCast(self)), dwCodePageID, lcid); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWordBreakerConfig_GetLocaleInfo(self: *const T, pdwCodePageID: ?*u32, plcid: ?*u32) HRESULT { return @as(*const IWordBreakerConfig.VTable, @ptrCast(self.vtable)).GetLocaleInfo(@as(*const IWordBreakerConfig, @ptrCast(self)), pdwCodePageID, plcid); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWordBreakerConfig_SetBreakWordType(self: *const T, dwBreakWordType: u32) HRESULT { return @as(*const IWordBreakerConfig.VTable, @ptrCast(self.vtable)).SetBreakWordType(@as(*const IWordBreakerConfig, @ptrCast(self)), dwBreakWordType); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWordBreakerConfig_GetBreakWordType(self: *const T, pdwBreakWordType: ?*u32) HRESULT { return @as(*const IWordBreakerConfig.VTable, @ptrCast(self.vtable)).GetBreakWordType(@as(*const IWordBreakerConfig, @ptrCast(self)), pdwBreakWordType); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWordBreakerConfig_SetControlInfo(self: *const T, grfBreakFlags: u32, dwReserved: u32) HRESULT { return @as(*const IWordBreakerConfig.VTable, @ptrCast(self.vtable)).SetControlInfo(@as(*const IWordBreakerConfig, @ptrCast(self)), grfBreakFlags, dwReserved); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWordBreakerConfig_GetControlInfo(self: *const T, pgrfBreakFlags: ?*u32, pdwReserved: ?*u32) HRESULT { return @as(*const IWordBreakerConfig.VTable, @ptrCast(self.vtable)).GetControlInfo(@as(*const IWordBreakerConfig, @ptrCast(self)), pgrfBreakFlags, pdwReserved); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWordBreakerConfig_LoadExternalBreakerData(self: *const T, pStream: ?*IStream, dwExtDataType: u32) HRESULT { return @as(*const IWordBreakerConfig.VTable, @ptrCast(self.vtable)).LoadExternalBreakerData(@as(*const IWordBreakerConfig, @ptrCast(self)), pStream, dwExtDataType); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWordBreakerConfig_SetWordStemmer(self: *const T, rclsid: ?*const Guid, pStemmer: ?*IStemmer) HRESULT { return @as(*const IWordBreakerConfig.VTable, @ptrCast(self.vtable)).SetWordStemmer(@as(*const IWordBreakerConfig, @ptrCast(self)), rclsid, pStemmer); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWordBreakerConfig_GetWordStemmer(self: *const T, ppStemmer: ?*?*IStemmer) HRESULT { return @as(*const IWordBreakerConfig.VTable, @ptrCast(self.vtable)).GetWordStemmer(@as(*const IWordBreakerConfig, @ptrCast(self)), ppStemmer); } }; } pub usingnamespace MethodMixin(@This()); }; pub const PRIORITY = enum(i32) { LOW = 0, NORMAL = 1, HIGH = 2, }; pub const PRIORITY_LOW = PRIORITY.LOW; pub const PRIORITY_NORMAL = PRIORITY.NORMAL; pub const PRIORITY_HIGH = PRIORITY.HIGH; pub const ROWSTATUS = extern struct { lRowFirst: i32, cRows: i32, cProperties: i32, cRowsTotal: i32, }; pub const COLUMNSTATUS = extern struct { cPropCount: i32, cPropsLoaded: i32, }; pub const PFNCOLHEAPFREE = switch (@import("builtin").zig_backend) { .stage1 => fn ( param0: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) i32, else => *const fn ( param0: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) i32, }; const IID_IITResultSet_Value = Guid.initString("3bb91d41-998b-11d0-a850-00aa006c7d01"); pub const IID_IITResultSet = &IID_IITResultSet_Value; pub const IITResultSet = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, SetColumnPriority: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IITResultSet, lColumnIndex: i32, ColumnPriority: PRIORITY, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IITResultSet, lColumnIndex: i32, ColumnPriority: PRIORITY, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetColumnHeap: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IITResultSet, lColumnIndex: i32, lpvHeap: ?*anyopaque, pfnColHeapFree: ?PFNCOLHEAPFREE, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IITResultSet, lColumnIndex: i32, lpvHeap: ?*anyopaque, pfnColHeapFree: ?PFNCOLHEAPFREE, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetKeyProp: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IITResultSet, PropID: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IITResultSet, PropID: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Add: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IITResultSet, PropID: u32, dwDefaultData: u32, Priority: PRIORITY, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IITResultSet, PropID: u32, dwDefaultData: u32, Priority: PRIORITY, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Add1: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IITResultSet, PropID: u32, lpszwDefault: ?[*:0]const u16, Priority: PRIORITY, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IITResultSet, PropID: u32, lpszwDefault: ?[*:0]const u16, Priority: PRIORITY, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Add2: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IITResultSet, PropID: u32, lpvDefaultData: ?*anyopaque, cbData: u32, Priority: PRIORITY, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IITResultSet, PropID: u32, lpvDefaultData: ?*anyopaque, cbData: u32, Priority: PRIORITY, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Add3: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IITResultSet, lpvHdr: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IITResultSet, lpvHdr: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Append: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IITResultSet, lpvHdr: ?*anyopaque, lpvData: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IITResultSet, lpvHdr: ?*anyopaque, lpvData: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Set: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IITResultSet, lRowIndex: i32, lColumnIndex: i32, lpvData: ?*anyopaque, cbData: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IITResultSet, lRowIndex: i32, lColumnIndex: i32, lpvData: ?*anyopaque, cbData: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Set1: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IITResultSet, lRowIndex: i32, lColumnIndex: i32, lpwStr: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IITResultSet, lRowIndex: i32, lColumnIndex: i32, lpwStr: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Set2: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IITResultSet, lRowIndex: i32, lColumnIndex: i32, dwData: usize, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IITResultSet, lRowIndex: i32, lColumnIndex: i32, dwData: usize, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Set3: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IITResultSet, lRowIndex: i32, lpvHdr: ?*anyopaque, lpvData: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IITResultSet, lRowIndex: i32, lpvHdr: ?*anyopaque, lpvData: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Copy: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IITResultSet, pRSCopy: ?*IITResultSet, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IITResultSet, pRSCopy: ?*IITResultSet, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, AppendRows: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IITResultSet, pResSrc: ?*IITResultSet, lRowSrcFirst: i32, cSrcRows: i32, lRowFirstDest: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IITResultSet, pResSrc: ?*IITResultSet, lRowSrcFirst: i32, cSrcRows: i32, lRowFirstDest: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Get: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IITResultSet, lRowIndex: i32, lColumnIndex: i32, Prop: ?*CProperty, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IITResultSet, lRowIndex: i32, lColumnIndex: i32, Prop: ?*CProperty, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetKeyProp: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IITResultSet, KeyPropID: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IITResultSet, KeyPropID: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetColumnPriority: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IITResultSet, lColumnIndex: i32, ColumnPriority: ?*PRIORITY, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IITResultSet, lColumnIndex: i32, ColumnPriority: ?*PRIORITY, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetRowCount: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IITResultSet, lNumberOfRows: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IITResultSet, lNumberOfRows: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetColumnCount: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IITResultSet, lNumberOfColumns: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IITResultSet, lNumberOfColumns: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetColumn: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IITResultSet, lColumnIndex: i32, PropID: ?*u32, dwType: ?*u32, lpvDefaultValue: ?*?*anyopaque, cbSize: ?*u32, ColumnPriority: ?*PRIORITY, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IITResultSet, lColumnIndex: i32, PropID: ?*u32, dwType: ?*u32, lpvDefaultValue: ?*?*anyopaque, cbSize: ?*u32, ColumnPriority: ?*PRIORITY, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetColumn1: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IITResultSet, lColumnIndex: i32, PropID: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IITResultSet, lColumnIndex: i32, PropID: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetColumnFromPropID: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IITResultSet, PropID: u32, lColumnIndex: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IITResultSet, PropID: u32, lColumnIndex: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Clear: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IITResultSet, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IITResultSet, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, ClearRows: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IITResultSet, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IITResultSet, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Free: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IITResultSet, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IITResultSet, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, IsCompleted: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IITResultSet, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IITResultSet, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Cancel: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IITResultSet, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IITResultSet, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Pause: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IITResultSet, fPause: BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IITResultSet, fPause: BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetRowStatus: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IITResultSet, lRowFirst: i32, cRows: i32, lpRowStatus: ?*ROWSTATUS, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IITResultSet, lRowFirst: i32, cRows: i32, lpRowStatus: ?*ROWSTATUS, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetColumnStatus: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IITResultSet, lpColStatus: ?*COLUMNSTATUS, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IITResultSet, lpColStatus: ?*COLUMNSTATUS, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IITResultSet_SetColumnPriority(self: *const T, lColumnIndex: i32, ColumnPriority: PRIORITY) HRESULT { return @as(*const IITResultSet.VTable, @ptrCast(self.vtable)).SetColumnPriority(@as(*const IITResultSet, @ptrCast(self)), lColumnIndex, ColumnPriority); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IITResultSet_SetColumnHeap(self: *const T, lColumnIndex: i32, lpvHeap: ?*anyopaque, pfnColHeapFree: ?PFNCOLHEAPFREE) HRESULT { return @as(*const IITResultSet.VTable, @ptrCast(self.vtable)).SetColumnHeap(@as(*const IITResultSet, @ptrCast(self)), lColumnIndex, lpvHeap, pfnColHeapFree); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IITResultSet_SetKeyProp(self: *const T, PropID: u32) HRESULT { return @as(*const IITResultSet.VTable, @ptrCast(self.vtable)).SetKeyProp(@as(*const IITResultSet, @ptrCast(self)), PropID); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IITResultSet_Add(self: *const T, PropID: u32, dwDefaultData: u32, Priority: PRIORITY) HRESULT { return @as(*const IITResultSet.VTable, @ptrCast(self.vtable)).Add(@as(*const IITResultSet, @ptrCast(self)), PropID, dwDefaultData, Priority); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IITResultSet_Add1(self: *const T, PropID: u32, lpszwDefault: ?[*:0]const u16, Priority: PRIORITY) HRESULT { return @as(*const IITResultSet.VTable, @ptrCast(self.vtable)).Add(@as(*const IITResultSet, @ptrCast(self)), PropID, lpszwDefault, Priority); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IITResultSet_Add2(self: *const T, PropID: u32, lpvDefaultData: ?*anyopaque, cbData: u32, Priority: PRIORITY) HRESULT { return @as(*const IITResultSet.VTable, @ptrCast(self.vtable)).Add(@as(*const IITResultSet, @ptrCast(self)), PropID, lpvDefaultData, cbData, Priority); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IITResultSet_Add3(self: *const T, lpvHdr: ?*anyopaque) HRESULT { return @as(*const IITResultSet.VTable, @ptrCast(self.vtable)).Add(@as(*const IITResultSet, @ptrCast(self)), lpvHdr); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IITResultSet_Append(self: *const T, lpvHdr: ?*anyopaque, lpvData: ?*anyopaque) HRESULT { return @as(*const IITResultSet.VTable, @ptrCast(self.vtable)).Append(@as(*const IITResultSet, @ptrCast(self)), lpvHdr, lpvData); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IITResultSet_Set(self: *const T, lRowIndex: i32, lColumnIndex: i32, lpvData: ?*anyopaque, cbData: u32) HRESULT { return @as(*const IITResultSet.VTable, @ptrCast(self.vtable)).Set(@as(*const IITResultSet, @ptrCast(self)), lRowIndex, lColumnIndex, lpvData, cbData); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IITResultSet_Set1(self: *const T, lRowIndex: i32, lColumnIndex: i32, lpwStr: ?[*:0]const u16) HRESULT { return @as(*const IITResultSet.VTable, @ptrCast(self.vtable)).Set(@as(*const IITResultSet, @ptrCast(self)), lRowIndex, lColumnIndex, lpwStr); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IITResultSet_Set2(self: *const T, lRowIndex: i32, lColumnIndex: i32, dwData: usize) HRESULT { return @as(*const IITResultSet.VTable, @ptrCast(self.vtable)).Set(@as(*const IITResultSet, @ptrCast(self)), lRowIndex, lColumnIndex, dwData); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IITResultSet_Set3(self: *const T, lRowIndex: i32, lpvHdr: ?*anyopaque, lpvData: ?*anyopaque) HRESULT { return @as(*const IITResultSet.VTable, @ptrCast(self.vtable)).Set(@as(*const IITResultSet, @ptrCast(self)), lRowIndex, lpvHdr, lpvData); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IITResultSet_Copy(self: *const T, pRSCopy: ?*IITResultSet) HRESULT { return @as(*const IITResultSet.VTable, @ptrCast(self.vtable)).Copy(@as(*const IITResultSet, @ptrCast(self)), pRSCopy); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IITResultSet_AppendRows(self: *const T, pResSrc: ?*IITResultSet, lRowSrcFirst: i32, cSrcRows: i32, lRowFirstDest: ?*i32) HRESULT { return @as(*const IITResultSet.VTable, @ptrCast(self.vtable)).AppendRows(@as(*const IITResultSet, @ptrCast(self)), pResSrc, lRowSrcFirst, cSrcRows, lRowFirstDest); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IITResultSet_Get(self: *const T, lRowIndex: i32, lColumnIndex: i32, Prop: ?*CProperty) HRESULT { return @as(*const IITResultSet.VTable, @ptrCast(self.vtable)).Get(@as(*const IITResultSet, @ptrCast(self)), lRowIndex, lColumnIndex, Prop); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IITResultSet_GetKeyProp(self: *const T, KeyPropID: ?*u32) HRESULT { return @as(*const IITResultSet.VTable, @ptrCast(self.vtable)).GetKeyProp(@as(*const IITResultSet, @ptrCast(self)), KeyPropID); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IITResultSet_GetColumnPriority(self: *const T, lColumnIndex: i32, ColumnPriority: ?*PRIORITY) HRESULT { return @as(*const IITResultSet.VTable, @ptrCast(self.vtable)).GetColumnPriority(@as(*const IITResultSet, @ptrCast(self)), lColumnIndex, ColumnPriority); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IITResultSet_GetRowCount(self: *const T, lNumberOfRows: ?*i32) HRESULT { return @as(*const IITResultSet.VTable, @ptrCast(self.vtable)).GetRowCount(@as(*const IITResultSet, @ptrCast(self)), lNumberOfRows); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IITResultSet_GetColumnCount(self: *const T, lNumberOfColumns: ?*i32) HRESULT { return @as(*const IITResultSet.VTable, @ptrCast(self.vtable)).GetColumnCount(@as(*const IITResultSet, @ptrCast(self)), lNumberOfColumns); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IITResultSet_GetColumn(self: *const T, lColumnIndex: i32, PropID: ?*u32, dwType: ?*u32, lpvDefaultValue: ?*?*anyopaque, cbSize: ?*u32, ColumnPriority: ?*PRIORITY) HRESULT { return @as(*const IITResultSet.VTable, @ptrCast(self.vtable)).GetColumn(@as(*const IITResultSet, @ptrCast(self)), lColumnIndex, PropID, dwType, lpvDefaultValue, cbSize, ColumnPriority); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IITResultSet_GetColumn1(self: *const T, lColumnIndex: i32, PropID: ?*u32) HRESULT { return @as(*const IITResultSet.VTable, @ptrCast(self.vtable)).GetColumn(@as(*const IITResultSet, @ptrCast(self)), lColumnIndex, PropID); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IITResultSet_GetColumnFromPropID(self: *const T, PropID: u32, lColumnIndex: ?*i32) HRESULT { return @as(*const IITResultSet.VTable, @ptrCast(self.vtable)).GetColumnFromPropID(@as(*const IITResultSet, @ptrCast(self)), PropID, lColumnIndex); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IITResultSet_Clear(self: *const T) HRESULT { return @as(*const IITResultSet.VTable, @ptrCast(self.vtable)).Clear(@as(*const IITResultSet, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IITResultSet_ClearRows(self: *const T) HRESULT { return @as(*const IITResultSet.VTable, @ptrCast(self.vtable)).ClearRows(@as(*const IITResultSet, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IITResultSet_Free(self: *const T) HRESULT { return @as(*const IITResultSet.VTable, @ptrCast(self.vtable)).Free(@as(*const IITResultSet, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IITResultSet_IsCompleted(self: *const T) HRESULT { return @as(*const IITResultSet.VTable, @ptrCast(self.vtable)).IsCompleted(@as(*const IITResultSet, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IITResultSet_Cancel(self: *const T) HRESULT { return @as(*const IITResultSet.VTable, @ptrCast(self.vtable)).Cancel(@as(*const IITResultSet, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IITResultSet_Pause(self: *const T, fPause: BOOL) HRESULT { return @as(*const IITResultSet.VTable, @ptrCast(self.vtable)).Pause(@as(*const IITResultSet, @ptrCast(self)), fPause); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IITResultSet_GetRowStatus(self: *const T, lRowFirst: i32, cRows: i32, lpRowStatus: ?*ROWSTATUS) HRESULT { return @as(*const IITResultSet.VTable, @ptrCast(self.vtable)).GetRowStatus(@as(*const IITResultSet, @ptrCast(self)), lRowFirst, cRows, lpRowStatus); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IITResultSet_GetColumnStatus(self: *const T, lpColStatus: ?*COLUMNSTATUS) HRESULT { return @as(*const IITResultSet.VTable, @ptrCast(self.vtable)).GetColumnStatus(@as(*const IITResultSet, @ptrCast(self)), lpColStatus); } }; } pub usingnamespace MethodMixin(@This()); }; //-------------------------------------------------------------------------------- // Section: Functions (0) //-------------------------------------------------------------------------------- //-------------------------------------------------------------------------------- // Section: Unicode Aliases (0) //-------------------------------------------------------------------------------- const thismodule = @This(); pub usingnamespace switch (@import("../zig.zig").unicode_mode) { .ansi => struct {}, .wide => struct {}, .unspecified => if (@import("builtin").is_test) struct {} else struct {}, }; //-------------------------------------------------------------------------------- // Section: Imports (15) //-------------------------------------------------------------------------------- const Guid = @import("../zig.zig").Guid; const BOOL = @import("../foundation.zig").BOOL; const HINSTANCE = @import("../foundation.zig").HINSTANCE; const HRESULT = @import("../foundation.zig").HRESULT; const HWND = @import("../foundation.zig").HWND; const IPersistStreamInit = @import("../system/com.zig").IPersistStreamInit; const IStemmer = @import("../system/search.zig").IStemmer; const IStream = @import("../system/com.zig").IStream; const IUnknown = @import("../system/com.zig").IUnknown; const NMHDR = @import("../ui/controls.zig").NMHDR; const POINT = @import("../foundation.zig").POINT; const PSTR = @import("../foundation.zig").PSTR; const PWSTR = @import("../foundation.zig").PWSTR; const RECT = @import("../foundation.zig").RECT; const VARIANT = @import("../system/com.zig").VARIANT; test { // The following '_ = <FuncPtrType>' lines are a workaround for https://github.com/ziglang/zig/issues/4476 if (@hasDecl(@This(), "PFNCOLHEAPFREE")) { _ = PFNCOLHEAPFREE; } @setEvalBranchQuota(comptime @import("std").meta.declarations(@This()).len * 3); // reference all the pub declarations if (!@import("builtin").is_test) return; inline for (comptime @import("std").meta.declarations(@This())) |decl| { if (decl.is_pub) { _ = @field(@This(), decl.name); } } }
0
repos/capy/vendor/zigwin32/win32/data
repos/capy/vendor/zigwin32/win32/data/xml/ms_xml.zig
//! NOTE: this file is autogenerated, DO NOT MODIFY //-------------------------------------------------------------------------------- // Section: Constants (552) //-------------------------------------------------------------------------------- pub const E_XML_NOTWF = @as(i32, -1072897501); pub const E_XML_NODTD = @as(i32, -1072897500); pub const E_XML_INVALID = @as(i32, -1072897499); pub const E_XML_BUFFERTOOSMALL = @as(i32, -1072897498); pub const XHR_PROP_ONDATA_ALWAYS = @as(u32, 0); pub const XHR_PROP_ONDATA_NEVER = @as(u64, 18446744073709551615); pub const DISPID_XOBJ_MIN = @as(u32, 65536); pub const DISPID_XOBJ_MAX = @as(u32, 131071); pub const DISPID_XOBJ_BASE = @as(u32, 65536); pub const DISPID_XMLELEMENTCOLLECTION = @as(u32, 65536); pub const DISPID_XMLELEMENTCOLLECTION_LENGTH = @as(u32, 65537); pub const DISPID_XMLELEMENTCOLLECTION_NEWENUM = @as(i32, -4); pub const DISPID_XMLELEMENTCOLLECTION_ITEM = @as(u32, 65539); pub const DISPID_XMLDOCUMENT = @as(u32, 65636); pub const DISPID_XMLDOCUMENT_ROOT = @as(u32, 65637); pub const DISPID_XMLDOCUMENT_FILESIZE = @as(u32, 65638); pub const DISPID_XMLDOCUMENT_FILEMODIFIEDDATE = @as(u32, 65639); pub const DISPID_XMLDOCUMENT_FILEUPDATEDDATE = @as(u32, 65640); pub const DISPID_XMLDOCUMENT_URL = @as(u32, 65641); pub const DISPID_XMLDOCUMENT_MIMETYPE = @as(u32, 65642); pub const DISPID_XMLDOCUMENT_READYSTATE = @as(u32, 65643); pub const DISPID_XMLDOCUMENT_CREATEELEMENT = @as(u32, 65644); pub const DISPID_XMLDOCUMENT_CHARSET = @as(u32, 65645); pub const DISPID_XMLDOCUMENT_VERSION = @as(u32, 65646); pub const DISPID_XMLDOCUMENT_DOCTYPE = @as(u32, 65647); pub const DISPID_XMLDOCUMENT_DTDURL = @as(u32, 65648); pub const DISPID_XMLDOCUMENT_ASYNC = @as(u32, 65649); pub const DISPID_XMLDOCUMENT_CASEINSENSITIVE = @as(u32, 65650); pub const DISPID_XMLDOCUMENT_BASEURL = @as(u32, 65651); pub const DISPID_XMLDOCUMENT_XML = @as(u32, 65652); pub const DISPID_XMLDOCUMENT_LASTERROR = @as(u32, 65653); pub const DISPID_XMLDOCUMENT_TRIMWHITESPACE = @as(u32, 65654); pub const DISPID_XMLDOCUMENT_COMMIT = @as(u32, 65655); pub const DISPID_XMLELEMENT = @as(u32, 65736); pub const DISPID_XMLELEMENT_TAGNAME = @as(u32, 65737); pub const DISPID_XMLELEMENT_PARENT = @as(u32, 65738); pub const DISPID_XMLELEMENT_SETATTRIBUTE = @as(u32, 65739); pub const DISPID_XMLELEMENT_GETATTRIBUTE = @as(u32, 65740); pub const DISPID_XMLELEMENT_REMOVEATTRIBUTE = @as(u32, 65741); pub const DISPID_XMLELEMENT_CHILDREN = @as(u32, 65742); pub const DISPID_XMLELEMENT_TYPE = @as(u32, 65743); pub const DISPID_XMLELEMENT_TEXT = @as(u32, 65744); pub const DISPID_XMLELEMENT_ADDCHILD = @as(u32, 65745); pub const DISPID_XMLELEMENT_REMOVECHILD = @as(u32, 65746); pub const DISPID_XMLELEMENT_ATTRIBUTES = @as(u32, 65747); pub const DISPID_XMLNOTIFSINK = @as(u32, 65836); pub const DISPID_XMLNOTIFSINK_CHILDADDED = @as(u32, 65837); pub const DISPID_XMLATTRIBUTE = @as(u32, 65936); pub const DISPID_XMLATTRIBUTE_NAME = @as(u32, 65937); pub const DISPID_XMLATTRIBUTE_VALUE = @as(u32, 65938); pub const DISPID_XMLERROR = @as(u32, 65936); pub const DISPID_XMLERROR_REASON = @as(u32, 65937); pub const DISPID_XMLERROR_LINE = @as(u32, 65938); pub const DISPID_XMLERROR_POS = @as(u32, 65939); pub const DISPID_NODE = @as(u32, 66036); pub const DISPID_NODE_NAME = @as(u32, 66037); pub const DISPID_NODE_PARENT = @as(u32, 66038); pub const DISPID_NODE_TYPE = @as(u32, 66039); pub const DISPID_NODE_VALUE = @as(u32, 66040); pub const DISPID_NODE_SETATTRIBUTE = @as(u32, 66041); pub const DISPID_NODE_GETATTRIBUTE = @as(u32, 66042); pub const DISPID_NODE_REMOVEATTRIBUTE = @as(u32, 66043); pub const DISPID_NODE_ATTRIBUTES = @as(u32, 66044); pub const DISPID_NODE_ADD = @as(u32, 66045); pub const DISPID_NODE_REMOVE = @as(u32, 66046); pub const DISPID_NODE_CHILDREN = @as(u32, 66047); pub const DISPID_NODELIST = @as(u32, 66136); pub const DISPID_NODELIST_NEWENUM = @as(u32, 66137); pub const DISPID_NODELIST_NEXT = @as(u32, 66138); pub const DISPID_NODELIST_CURRENT = @as(u32, 66139); pub const DISPID_NODELIST_MOVE = @as(u32, 66140); pub const DISPID_NODELIST_MOVETONODE = @as(u32, 66141); pub const DISPID_NODELIST_LENGTH = @as(u32, 66142); pub const DISPID_NODELIST_ITEM = @as(u32, 66143); pub const DISPID_DOM_BASE = @as(u32, 1); pub const DISPID_DOM_COLLECTION_BASE = @as(u32, 1000000); pub const DISPID_DOM_COLLECTION_MAX = @as(u32, 2999999); pub const DISPID_DOM_NODE = @as(u32, 1); pub const DISPID_DOM_NODE_NODENAME = @as(u32, 2); pub const DISPID_DOM_NODE_NODEVALUE = @as(u32, 3); pub const DISPID_DOM_NODE_NODETYPE = @as(u32, 4); pub const DISPID_DOM_NODE_NODETYPEENUM = @as(u32, 5); pub const DISPID_DOM_NODE_PARENTNODE = @as(u32, 6); pub const DISPID_DOM_NODE_CHILDNODES = @as(u32, 7); pub const DISPID_DOM_NODE_FIRSTCHILD = @as(u32, 8); pub const DISPID_DOM_NODE_LASTCHILD = @as(u32, 9); pub const DISPID_DOM_NODE_PREVIOUSSIBLING = @as(u32, 10); pub const DISPID_DOM_NODE_NEXTSIBLING = @as(u32, 11); pub const DISPID_DOM_NODE_ATTRIBUTES = @as(u32, 12); pub const DISPID_DOM_NODE_INSERTBEFORE = @as(u32, 13); pub const DISPID_DOM_NODE_REPLACECHILD = @as(u32, 14); pub const DISPID_DOM_NODE_REMOVECHILD = @as(u32, 15); pub const DISPID_DOM_NODE_APPENDCHILD = @as(u32, 16); pub const DISPID_DOM_NODE_HASCHILDNODES = @as(u32, 17); pub const DISPID_DOM_NODE_OWNERDOC = @as(u32, 18); pub const DISPID_DOM_NODE_CLONENODE = @as(u32, 19); pub const DISPID_XMLDOM_NODE = @as(u32, 20); pub const DISPID_XMLDOM_NODE_STRINGTYPE = @as(u32, 21); pub const DISPID_XMLDOM_NODE_SPECIFIED = @as(u32, 22); pub const DISPID_XMLDOM_NODE_DEFINITION = @as(u32, 23); pub const DISPID_XMLDOM_NODE_TEXT = @as(u32, 24); pub const DISPID_XMLDOM_NODE_NODETYPEDVALUE = @as(u32, 25); pub const DISPID_XMLDOM_NODE_DATATYPE = @as(u32, 26); pub const DISPID_XMLDOM_NODE_XML = @as(u32, 27); pub const DISPID_XMLDOM_NODE_TRANSFORMNODE = @as(u32, 28); pub const DISPID_XMLDOM_NODE_SELECTNODES = @as(u32, 29); pub const DISPID_XMLDOM_NODE_SELECTSINGLENODE = @as(u32, 30); pub const DISPID_XMLDOM_NODE_PARSED = @as(u32, 31); pub const DISPID_XMLDOM_NODE_NAMESPACE = @as(u32, 32); pub const DISPID_XMLDOM_NODE_PREFIX = @as(u32, 33); pub const DISPID_XMLDOM_NODE_BASENAME = @as(u32, 34); pub const DISPID_XMLDOM_NODE_TRANSFORMNODETOOBJECT = @as(u32, 35); pub const DISPID_XMLDOM_NODE__TOP = @as(u32, 36); pub const DISPID_DOM_DOCUMENT = @as(u32, 37); pub const DISPID_DOM_DOCUMENT_DOCTYPE = @as(u32, 38); pub const DISPID_DOM_DOCUMENT_IMPLEMENTATION = @as(u32, 39); pub const DISPID_DOM_DOCUMENT_DOCUMENTELEMENT = @as(u32, 40); pub const DISPID_DOM_DOCUMENT_CREATEELEMENT = @as(u32, 41); pub const DISPID_DOM_DOCUMENT_CREATEDOCUMENTFRAGMENT = @as(u32, 42); pub const DISPID_DOM_DOCUMENT_CREATETEXTNODE = @as(u32, 43); pub const DISPID_DOM_DOCUMENT_CREATECOMMENT = @as(u32, 44); pub const DISPID_DOM_DOCUMENT_CREATECDATASECTION = @as(u32, 45); pub const DISPID_DOM_DOCUMENT_CREATEPROCESSINGINSTRUCTION = @as(u32, 46); pub const DISPID_DOM_DOCUMENT_CREATEATTRIBUTE = @as(u32, 47); pub const DISPID_DOM_DOCUMENT_CREATEENTITY = @as(u32, 48); pub const DISPID_DOM_DOCUMENT_CREATEENTITYREFERENCE = @as(u32, 49); pub const DISPID_DOM_DOCUMENT_GETELEMENTSBYTAGNAME = @as(u32, 50); pub const DISPID_DOM_DOCUMENT_TOP = @as(u32, 51); pub const DISPID_XMLDOM_DOCUMENT = @as(u32, 52); pub const DISPID_XMLDOM_DOCUMENT_DOCUMENTNODE = @as(u32, 53); pub const DISPID_XMLDOM_DOCUMENT_CREATENODE = @as(u32, 54); pub const DISPID_XMLDOM_DOCUMENT_CREATENODEEX = @as(u32, 55); pub const DISPID_XMLDOM_DOCUMENT_NODEFROMID = @as(u32, 56); pub const DISPID_XMLDOM_DOCUMENT_DOCUMENTNAMESPACES = @as(u32, 57); pub const DISPID_XMLDOM_DOCUMENT_LOAD = @as(u32, 58); pub const DISPID_XMLDOM_DOCUMENT_PARSEERROR = @as(u32, 59); pub const DISPID_XMLDOM_DOCUMENT_URL = @as(u32, 60); pub const DISPID_XMLDOM_DOCUMENT_ASYNC = @as(u32, 61); pub const DISPID_XMLDOM_DOCUMENT_ABORT = @as(u32, 62); pub const DISPID_XMLDOM_DOCUMENT_LOADXML = @as(u32, 63); pub const DISPID_XMLDOM_DOCUMENT_SAVE = @as(u32, 64); pub const DISPID_XMLDOM_DOCUMENT_VALIDATE = @as(u32, 65); pub const DISPID_XMLDOM_DOCUMENT_RESOLVENAMESPACE = @as(u32, 66); pub const DISPID_XMLDOM_DOCUMENT_PRESERVEWHITESPACE = @as(u32, 67); pub const DISPID_XMLDOM_DOCUMENT_ONREADYSTATECHANGE = @as(u32, 68); pub const DISPID_XMLDOM_DOCUMENT_ONDATAAVAILABLE = @as(u32, 69); pub const DISPID_XMLDOM_DOCUMENT_ONTRANSFORMNODE = @as(u32, 70); pub const DISPID_XMLDOM_DOCUMENT__TOP = @as(u32, 71); pub const DISPID_DOM_NODELIST = @as(u32, 72); pub const DISPID_DOM_NODELIST_ITEM = @as(u32, 73); pub const DISPID_DOM_NODELIST_LENGTH = @as(u32, 74); pub const DISPID_XMLDOM_NODELIST = @as(u32, 75); pub const DISPID_XMLDOM_NODELIST_NEXTNODE = @as(u32, 76); pub const DISPID_XMLDOM_NODELIST_RESET = @as(u32, 77); pub const DISPID_XMLDOM_NODELIST_NEWENUM = @as(u32, 78); pub const DISPID_XMLDOM_NODELIST__TOP = @as(u32, 79); pub const DISPID_DOM_NAMEDNODEMAP = @as(u32, 80); pub const DISPID_DOM_NAMEDNODEMAP_GETNAMEDITEM = @as(u32, 83); pub const DISPID_DOM_NAMEDNODEMAP_SETNAMEDITEM = @as(u32, 84); pub const DISPID_DOM_NAMEDNODEMAP_REMOVENAMEDITEM = @as(u32, 85); pub const DISPID_XMLDOM_NAMEDNODEMAP = @as(u32, 86); pub const DISPID_XMLDOM_NAMEDNODEMAP_GETQUALIFIEDITEM = @as(u32, 87); pub const DISPID_XMLDOM_NAMEDNODEMAP_REMOVEQUALIFIEDITEM = @as(u32, 88); pub const DISPID_XMLDOM_NAMEDNODEMAP_NEXTNODE = @as(u32, 89); pub const DISPID_XMLDOM_NAMEDNODEMAP_RESET = @as(u32, 90); pub const DISPID_XMLDOM_NAMEDNODEMAP_NEWENUM = @as(u32, 91); pub const DISPID_XMLDOM_NAMEDNODEMAP__TOP = @as(u32, 92); pub const DISPID_DOM_W3CWRAPPERS = @as(u32, 93); pub const DISPID_DOM_DOCUMENTFRAGMENT = @as(u32, 94); pub const DISPID_DOM_DOCUMENTFRAGMENT__TOP = @as(u32, 95); pub const DISPID_DOM_ELEMENT = @as(u32, 96); pub const DISPID_DOM_ELEMENT_GETTAGNAME = @as(u32, 97); pub const DISPID_DOM_ELEMENT_GETATTRIBUTES = @as(u32, 98); pub const DISPID_DOM_ELEMENT_GETATTRIBUTE = @as(u32, 99); pub const DISPID_DOM_ELEMENT_SETATTRIBUTE = @as(u32, 100); pub const DISPID_DOM_ELEMENT_REMOVEATTRIBUTE = @as(u32, 101); pub const DISPID_DOM_ELEMENT_GETATTRIBUTENODE = @as(u32, 102); pub const DISPID_DOM_ELEMENT_SETATTRIBUTENODE = @as(u32, 103); pub const DISPID_DOM_ELEMENT_REMOVEATTRIBUTENODE = @as(u32, 104); pub const DISPID_DOM_ELEMENT_GETELEMENTSBYTAGNAME = @as(u32, 105); pub const DISPID_DOM_ELEMENT_NORMALIZE = @as(u32, 106); pub const DISPID_DOM_ELEMENT__TOP = @as(u32, 107); pub const DISPID_DOM_DATA = @as(u32, 108); pub const DISPID_DOM_DATA_DATA = @as(u32, 109); pub const DISPID_DOM_DATA_LENGTH = @as(u32, 110); pub const DISPID_DOM_DATA_SUBSTRING = @as(u32, 111); pub const DISPID_DOM_DATA_APPEND = @as(u32, 112); pub const DISPID_DOM_DATA_INSERT = @as(u32, 113); pub const DISPID_DOM_DATA_DELETE = @as(u32, 114); pub const DISPID_DOM_DATA_REPLACE = @as(u32, 115); pub const DISPID_DOM_DATA__TOP = @as(u32, 116); pub const DISPID_DOM_ATTRIBUTE = @as(u32, 117); pub const DISPID_DOM_ATTRIBUTE_GETNAME = @as(u32, 118); pub const DISPID_DOM_ATTRIBUTE_SPECIFIED = @as(u32, 119); pub const DISPID_DOM_ATTRIBUTE_VALUE = @as(u32, 120); pub const DISPID_DOM_ATTRIBUTE__TOP = @as(u32, 121); pub const DISPID_DOM_TEXT = @as(u32, 122); pub const DISPID_DOM_TEXT_SPLITTEXT = @as(u32, 123); pub const DISPID_DOM_TEXT_JOINTEXT = @as(u32, 124); pub const DISPID_DOM_TEXT__TOP = @as(u32, 125); pub const DISPID_DOM_PI = @as(u32, 126); pub const DISPID_DOM_PI_TARGET = @as(u32, 127); pub const DISPID_DOM_PI_DATA = @as(u32, 128); pub const DISPID_DOM_PI__TOP = @as(u32, 129); pub const DISPID_DOM_DOCUMENTTYPE = @as(u32, 130); pub const DISPID_DOM_DOCUMENTTYPE_NAME = @as(u32, 131); pub const DISPID_DOM_DOCUMENTTYPE_ENTITIES = @as(u32, 132); pub const DISPID_DOM_DOCUMENTTYPE_NOTATIONS = @as(u32, 133); pub const DISPID_DOM_DOCUMENTTYPE__TOP = @as(u32, 134); pub const DISPID_DOM_NOTATION = @as(u32, 135); pub const DISPID_DOM_NOTATION_PUBLICID = @as(u32, 136); pub const DISPID_DOM_NOTATION_SYSTEMID = @as(u32, 137); pub const DISPID_DOM_NOTATION__TOP = @as(u32, 138); pub const DISPID_DOM_ENTITY = @as(u32, 139); pub const DISPID_DOM_ENTITY_PUBLICID = @as(u32, 140); pub const DISPID_DOM_ENTITY_SYSTEMID = @as(u32, 141); pub const DISPID_DOM_ENTITY_NOTATIONNAME = @as(u32, 142); pub const DISPID_DOM_ENTITY__TOP = @as(u32, 143); pub const DISPID_DOM_W3CWRAPPERS_TOP = @as(u32, 143); pub const DISPID_DOM_IMPLEMENTATION = @as(u32, 144); pub const DISPID_DOM_IMPLEMENTATION_HASFEATURE = @as(u32, 145); pub const DISPID_DOM_IMPLEMENTATION__TOP = @as(u32, 146); pub const DISPID_DOM__TOP = @as(u32, 176); pub const DISPID_DOM_ERROR = @as(u32, 177); pub const DISPID_DOM_ERROR_ERRORCODE = @as(u32, 178); pub const DISPID_DOM_ERROR_URL = @as(u32, 179); pub const DISPID_DOM_ERROR_REASON = @as(u32, 180); pub const DISPID_DOM_ERROR_SRCTEXT = @as(u32, 181); pub const DISPID_DOM_ERROR_LINE = @as(u32, 182); pub const DISPID_DOM_ERROR_LINEPOS = @as(u32, 183); pub const DISPID_DOM_ERROR_FILEPOS = @as(u32, 184); pub const DISPID_DOM_ERROR__TOP = @as(u32, 185); pub const DISPID_DOM_ERROR2 = @as(u32, 186); pub const DISPID_DOM_ERROR2_ALLERRORS = @as(u32, 187); pub const DISPID_DOM_ERROR2_ERRORPARAMETERS = @as(u32, 188); pub const DISPID_DOM_ERROR2_ERRORPARAMETERSCOUNT = @as(u32, 189); pub const DISPID_DOM_ERROR2_ERRORXPATH = @as(u32, 190); pub const DISPID_DOM_ERROR2__TOP = @as(u32, 191); pub const DISPID_DOM_ERRORCOLLECTION = @as(u32, 192); pub const DISPID_DOM_ERRORCOLLECTION_LENGTH = @as(u32, 193); pub const DISPID_DOM_ERRORCOLLECTION_NEXT = @as(u32, 194); pub const DISPID_DOM_ERRORCOLLECTION_RESET = @as(u32, 195); pub const DISPID_DOM_ERRORCOLLECTION__TOP = @as(u32, 196); pub const DISPID_XTLRUNTIME = @as(u32, 186); pub const DISPID_XTLRUNTIME_UNIQUEID = @as(u32, 187); pub const DISPID_XTLRUNTIME_DEPTH = @as(u32, 188); pub const DISPID_XTLRUNTIME_CHILDNUMBER = @as(u32, 189); pub const DISPID_XTLRUNTIME_ANCESTORCHILDNUMBER = @as(u32, 190); pub const DISPID_XTLRUNTIME_ABSOLUTECHILDNUMBER = @as(u32, 191); pub const DISPID_XTLRUNTIME_FORMATINDEX = @as(u32, 192); pub const DISPID_XTLRUNTIME_FORMATNUMBER = @as(u32, 193); pub const DISPID_XTLRUNTIME_FORMATDATE = @as(u32, 194); pub const DISPID_XTLRUNTIME_FORMATTIME = @as(u32, 195); pub const DISPID_XTLRUNTIME__TOP = @as(u32, 196); pub const DISPID_XMLDOMEVENT = @as(u32, 197); pub const DISPID_XMLDOMEVENT_ONREADYSTATECHANGE = @as(i32, -609); pub const DISPID_XMLDOMEVENT_ONDATAAVAILABLE = @as(u32, 198); pub const DISPID_XMLDOMEVENT__TOP = @as(u32, 199); pub const DISPID_XMLDOM_DOCUMENT2 = @as(u32, 200); pub const DISPID_XMLDOM_DOCUMENT2_NAMESPACES = @as(u32, 201); pub const DISPID_XMLDOM_DOCUMENT2_SCHEMAS = @as(u32, 202); pub const DISPID_XMLDOM_DOCUMENT2_VALIDATE = @as(u32, 203); pub const DISPID_XMLDOM_DOCUMENT2_SETPROPERTY = @as(u32, 204); pub const DISPID_XMLDOM_DOCUMENT2_GETPROPERTY = @as(u32, 205); pub const DISPID_XMLDOM_DOCUMENT2__TOP = @as(u32, 206); pub const DISPID_XMLDOM_DOCUMENT3 = @as(u32, 207); pub const DISPID_XMLDOM_DOCUMENT3_VALIDATENODE = @as(u32, 208); pub const DISPID_XMLDOM_DOCUMENT3_IMPORTNODE = @as(u32, 209); pub const DISPID_XMLDOM_DOCUMENT3__TOP = @as(u32, 210); pub const DISPID_XMLDOM_SCHEMACOLLECTION = @as(u32, 2); pub const DISPID_XMLDOM_SCHEMACOLLECTION_ADD = @as(u32, 3); pub const DISPID_XMLDOM_SCHEMACOLLECTION_GET = @as(u32, 4); pub const DISPID_XMLDOM_SCHEMACOLLECTION_REMOVE = @as(u32, 5); pub const DISPID_XMLDOM_SCHEMACOLLECTION_LENGTH = @as(u32, 6); pub const DISPID_XMLDOM_SCHEMACOLLECTION_NAMESPACEURI = @as(u32, 7); pub const DISPID_XMLDOM_SCHEMACOLLECTION_ADDCOLLECTION = @as(u32, 8); pub const DISPID_XMLDOM_SCHEMACOLLECTION__TOP = @as(u32, 9); pub const DISPID_XMLDOM_SELECTION = @as(u32, 80); pub const DISPID_XMLDOM_SELECTION_EXPR = @as(u32, 81); pub const DISPID_XMLDOM_SELECTION_CONTEXT = @as(u32, 82); pub const DISPID_XMLDOM_SELECTION_PEEKNODE = @as(u32, 83); pub const DISPID_XMLDOM_SELECTION_MATCHES = @as(u32, 84); pub const DISPID_XMLDOM_SELECTION_REMOVENEXT = @as(u32, 85); pub const DISPID_XMLDOM_SELECTION_REMOVEALL = @as(u32, 86); pub const DISPID_XMLDOM_SELECTION_CLONE = @as(u32, 87); pub const DISPID_XMLDOM_SELECTION_GETPROPERTY = @as(u32, 88); pub const DISPID_XMLDOM_SELECTION_SETPROPERTY = @as(u32, 89); pub const DISPID_XMLDOM_SELECTION__TOP = @as(u32, 90); pub const DISPID_XMLDOM_TEMPLATE = @as(u32, 1); pub const DISPID_XMLDOM_TEMPLATE_STYLESHEET = @as(u32, 2); pub const DISPID_XMLDOM_TEMPLATE_CREATEPROCESSOR = @as(u32, 3); pub const DISPID_XMLDOM_TEMPLATE__TOP = @as(u32, 4); pub const DISPID_XMLDOM_PROCESSOR = @as(u32, 1); pub const DISPID_XMLDOM_PROCESSOR_INPUT = @as(u32, 2); pub const DISPID_XMLDOM_PROCESSOR_XSLTEMPLATE = @as(u32, 3); pub const DISPID_XMLDOM_PROCESSOR_SETSTARTMODE = @as(u32, 4); pub const DISPID_XMLDOM_PROCESSOR_STARTMODE = @as(u32, 5); pub const DISPID_XMLDOM_PROCESSOR_STARTMODEURI = @as(u32, 6); pub const DISPID_XMLDOM_PROCESSOR_OUTPUT = @as(u32, 7); pub const DISPID_XMLDOM_PROCESSOR_TRANSFORM = @as(u32, 8); pub const DISPID_XMLDOM_PROCESSOR_RESET = @as(u32, 9); pub const DISPID_XMLDOM_PROCESSOR_READYSTATE = @as(u32, 10); pub const DISPID_XMLDOM_PROCESSOR_ADDPARAMETER = @as(u32, 11); pub const DISPID_XMLDOM_PROCESSOR_ADDOBJECT = @as(u32, 12); pub const DISPID_XMLDOM_PROCESSOR_STYLESHEET = @as(u32, 13); pub const DISPID_XMLDOM_PROCESSOR__TOP = @as(u32, 14); pub const DISPID_XMLDSO = @as(u32, 65536); pub const DISPID_XMLDSO_DOCUMENT = @as(u32, 65537); pub const DISPID_XMLDSO_JAVADSOCOMPATIBLE = @as(u32, 65538); pub const DISPID_SAX_XMLREADER__MIN = @as(u32, 1281); pub const DISPID_SAX_XMLREADER__MAX = @as(u32, 65536); pub const DISPID_SAX_XMLREADER__BASE = @as(u32, 1281); pub const DISPID_SAX_XMLREADER = @as(u32, 1281); pub const DISPID_SAX_XMLREADER_GETFEATURE = @as(u32, 1282); pub const DISPID_SAX_XMLREADER_PUTFEATURE = @as(u32, 1283); pub const DISPID_SAX_XMLREADER_GETPROPERTY = @as(u32, 1284); pub const DISPID_SAX_XMLREADER_PUTPROPERTY = @as(u32, 1285); pub const DISPID_SAX_XMLREADER_ENTITYRESOLVER = @as(u32, 1286); pub const DISPID_SAX_XMLREADER_CONTENTHANDLER = @as(u32, 1287); pub const DISPID_SAX_XMLREADER_DTDHANDLER = @as(u32, 1288); pub const DISPID_SAX_XMLREADER_ERRORHANDLER = @as(u32, 1289); pub const DISPID_SAX_XMLREADER_BASEURL = @as(u32, 1290); pub const DISPID_SAX_XMLREADER_SECUREBASEURL = @as(u32, 1291); pub const DISPID_SAX_XMLREADER_PARSE = @as(u32, 1292); pub const DISPID_SAX_XMLREADER_PARSEURL = @as(u32, 1293); pub const DISPID_SAX_XMLREADER_PARENT = @as(u32, 1294); pub const DISPID_SAX_XMLREADER__TOP = @as(u32, 1295); pub const DISPID_SAX_XMLFILTER__BASE = @as(u32, 1296); pub const DISPID_SAX_XMLFILTER = @as(u32, 1296); pub const DISPID_SAX_XMLFILTER_GETFEATURE = @as(u32, 1297); pub const DISPID_SAX_XMLFILTER_PUTFEATURE = @as(u32, 1298); pub const DISPID_SAX_XMLFILTER_GETPROPERTY = @as(u32, 1299); pub const DISPID_SAX_XMLFILTER_PUTPROPERTY = @as(u32, 1300); pub const DISPID_SAX_XMLFILTER_ENTITYRESOLVER = @as(u32, 1301); pub const DISPID_SAX_XMLFILTER_CONTENTHANDLER = @as(u32, 1302); pub const DISPID_SAX_XMLFILTER_DTDHANDLER = @as(u32, 1303); pub const DISPID_SAX_XMLFILTER_ERRORHANDLER = @as(u32, 1304); pub const DISPID_SAX_XMLFILTER_BASEURL = @as(u32, 1305); pub const DISPID_SAX_XMLFILTER_SECUREBASEURL = @as(u32, 1306); pub const DISPID_SAX_XMLFILTER_PARSE = @as(u32, 1307); pub const DISPID_SAX_XMLFILTER_PARSEURL = @as(u32, 1308); pub const DISPID_SAX_XMLFILTER_PARENT = @as(u32, 1309); pub const DISPID_SAX_XMLFILTER__TOP = @as(u32, 1311); pub const DISPID_SAX_LOCATOR__BASE = @as(u32, 1312); pub const DISPID_SAX_LOCATOR = @as(u32, 1312); pub const DISPID_SAX_LOCATOR_COLUMNNUMBER = @as(u32, 1313); pub const DISPID_SAX_LOCATOR_LINENUMBER = @as(u32, 1314); pub const DISPID_SAX_LOCATOR_PUBLICID = @as(u32, 1315); pub const DISPID_SAX_LOCATOR_SYSTEMID = @as(u32, 1316); pub const DISPID_SAX_LOCATOR__TOP = @as(u32, 1317); pub const DISPID_SAX_ENTITYRESOLVER__BASE = @as(u32, 1318); pub const DISPID_SAX_ENTITYRESOLVER = @as(u32, 1318); pub const DISPID_SAX_ENTITYRESOLVER_RESOLVEENTITY = @as(u32, 1319); pub const DISPID_SAX_ENTITYRESOLVER__TOP = @as(u32, 1320); pub const DISPID_SAX_CONTENTHANDLER__BASE = @as(u32, 1321); pub const DISPID_SAX_CONTENTHANDLER = @as(u32, 1321); pub const DISPID_SAX_CONTENTHANDLER_DOCUMENTLOCATOR = @as(u32, 1322); pub const DISPID_SAX_CONTENTHANDLER_STARTDOCUMENT = @as(u32, 1323); pub const DISPID_SAX_CONTENTHANDLER_ENDDOCUMENT = @as(u32, 1324); pub const DISPID_SAX_CONTENTHANDLER_STARTPREFIXMAPPING = @as(u32, 1325); pub const DISPID_SAX_CONTENTHANDLER_ENDPREFIXMAPPING = @as(u32, 1326); pub const DISPID_SAX_CONTENTHANDLER_STARTELEMENT = @as(u32, 1327); pub const DISPID_SAX_CONTENTHANDLER_ENDELEMENT = @as(u32, 1328); pub const DISPID_SAX_CONTENTHANDLER_CHARACTERS = @as(u32, 1329); pub const DISPID_SAX_CONTENTHANDLER_IGNORABLEWHITESPACE = @as(u32, 1330); pub const DISPID_SAX_CONTENTHANDLER_PROCESSINGINSTRUCTION = @as(u32, 1331); pub const DISPID_SAX_CONTENTHANDLER_SKIPPEDENTITY = @as(u32, 1332); pub const DISPID_SAX_CONTENTHANDLER__TOP = @as(u32, 1333); pub const DISPID_SAX_DTDHANDLER__BASE = @as(u32, 1334); pub const DISPID_SAX_DTDHANDLER = @as(u32, 1334); pub const DISPID_SAX_DTDHANDLER_NOTATIONDECL = @as(u32, 1335); pub const DISPID_SAX_DTDHANDLER_UNPARSEDENTITYDECL = @as(u32, 1336); pub const DISPID_SAX_DTDHANDLER__TOP = @as(u32, 1337); pub const DISPID_SAX_ERRORHANDLER__BASE = @as(u32, 1338); pub const DISPID_SAX_ERRORHANDLER = @as(u32, 1338); pub const DISPID_SAX_ERRORHANDLER_ERROR = @as(u32, 1339); pub const DISPID_SAX_ERRORHANDLER_FATALERROR = @as(u32, 1340); pub const DISPID_SAX_ERRORHANDLER_IGNORABLEWARNING = @as(u32, 1341); pub const DISPID_SAX_ERRORHANDLER__TOP = @as(u32, 1342); pub const DISPID_SAX_ATTRIBUTES__BASE = @as(u32, 1343); pub const DISPID_SAX_ATTRIBUTES = @as(u32, 1343); pub const DISPID_SAX_ATTRIBUTES_LENGTH = @as(u32, 1344); pub const DISPID_SAX_ATTRIBUTES_GETURI = @as(u32, 1345); pub const DISPID_SAX_ATTRIBUTES_GETLOCALNAME = @as(u32, 1346); pub const DISPID_SAX_ATTRIBUTES_GETQNAME = @as(u32, 1347); pub const DISPID_SAX_ATTRIBUTES_GETINDEXFROMNAME = @as(u32, 1348); pub const DISPID_SAX_ATTRIBUTES_GETINDEXFROMQNAME = @as(u32, 1349); pub const DISPID_SAX_ATTRIBUTES_GETTYPE = @as(u32, 1350); pub const DISPID_SAX_ATTRIBUTES_GETTYPEFROMNAME = @as(u32, 1351); pub const DISPID_SAX_ATTRIBUTES_GETTYPEFROMQNAME = @as(u32, 1352); pub const DISPID_SAX_ATTRIBUTES_GETVALUE = @as(u32, 1353); pub const DISPID_SAX_ATTRIBUTES_GETVALUEFROMNAME = @as(u32, 1354); pub const DISPID_SAX_ATTRIBUTES_GETVALUEFROMQNAME = @as(u32, 1355); pub const DISPID_SAX_ATTRIBUTES__TOP = @as(u32, 1356); pub const DISPID_SAX_LEXICALHANDLER__BASE = @as(u32, 1357); pub const DISPID_SAX_LEXICALHANDLER = @as(u32, 1357); pub const DISPID_SAX_LEXICALHANDLER_STARTDTD = @as(u32, 1358); pub const DISPID_SAX_LEXICALHANDLER_ENDDTD = @as(u32, 1359); pub const DISPID_SAX_LEXICALHANDLER_STARTENTITY = @as(u32, 1360); pub const DISPID_SAX_LEXICALHANDLER_ENDENTITY = @as(u32, 1361); pub const DISPID_SAX_LEXICALHANDLER_STARTCDATA = @as(u32, 1362); pub const DISPID_SAX_LEXICALHANDLER_ENDCDATA = @as(u32, 1363); pub const DISPID_SAX_LEXICALHANDLER_COMMENT = @as(u32, 1364); pub const DISPID_SAX_LEXICALHANDLER__TOP = @as(u32, 1365); pub const DISPID_SAX_DECLHANDLER__BASE = @as(u32, 1366); pub const DISPID_SAX_DECLHANDLER = @as(u32, 1366); pub const DISPID_SAX_DECLHANDLER_ELEMENTDECL = @as(u32, 1367); pub const DISPID_SAX_DECLHANDLER_ATTRIBUTEDECL = @as(u32, 1368); pub const DISPID_SAX_DECLHANDLER_INTERNALENTITYDECL = @as(u32, 1369); pub const DISPID_SAX_DECLHANDLER_EXTERNALENTITYDECL = @as(u32, 1370); pub const DISPID_SAX_DECLHANDLER__TOP = @as(u32, 1371); pub const DISPID_MX_ATTRIBUTES__BASE = @as(u32, 1372); pub const DISPID_MX_ATTRIBUTES = @as(u32, 1372); pub const DISPID_MX_ATTRIBUTES_ADDATTRIBUTE = @as(u32, 1373); pub const DISPID_MX_ATTRIBUTES_CLEAR = @as(u32, 1374); pub const DISPID_MX_ATTRIBUTES_REMOVEATTRIBUTE = @as(u32, 1375); pub const DISPID_MX_ATTRIBUTES_SETATTRIBUTE = @as(u32, 1376); pub const DISPID_MX_ATTRIBUTES_SETATTRIBUTES = @as(u32, 1377); pub const DISPID_MX_ATTRIBUTES_SETLOCALNAME = @as(u32, 1378); pub const DISPID_MX_ATTRIBUTES_SETQNAME = @as(u32, 1379); pub const DISPID_MX_ATTRIBUTES_SETTYPE = @as(u32, 1380); pub const DISPID_MX_ATTRIBUTES_SETURI = @as(u32, 1381); pub const DISPID_MX_ATTRIBUTES_SETVALUE = @as(u32, 1382); pub const DISPID_MX_ATTRIBUTES_ADDATTRIBUTEFROMINDEX = @as(u32, 1383); pub const DISPID_MX_ATTRIBUTES__TOP = @as(u32, 1383); pub const DISPID_MX_WRITER__BASE = @as(u32, 1384); pub const DISPID_MX_WRITER = @as(u32, 1384); pub const DISPID_MX_WRITER_OUTPUT = @as(u32, 1385); pub const DISPID_MX_WRITER_DESTINATION = @as(u32, 1386); pub const DISPID_MX_WRITER_ENCODING = @as(u32, 1387); pub const DISPID_MX_WRITER_BYTEORDERMARK = @as(u32, 1388); pub const DISPID_MX_WRITER_INDENT = @as(u32, 1389); pub const DISPID_MX_WRITER_STANDALONE = @as(u32, 1390); pub const DISPID_MX_WRITER_OMITXMLDECLARATION = @as(u32, 1391); pub const DISPID_MX_WRITER_VERSION = @as(u32, 1392); pub const DISPID_MX_WRITER_DISABLEOUTPUTESCAPING = @as(u32, 1393); pub const DISPID_MX_WRITER_FLUSH = @as(u32, 1394); pub const DISPID_MX_WRITER_RESET = @as(u32, 1395); pub const DISPID_MX_WRITER__TOP = @as(u32, 1396); pub const DISPID_MX_READER_CONTROL__BASE = @as(u32, 1397); pub const DISPID_MX_READER_CONTROL = @as(u32, 1397); pub const DISPID_MX_READER_CONTROL_ABORT = @as(u32, 1398); pub const DISPID_MX_READER_CONTROL_RESUME = @as(u32, 1399); pub const DISPID_MX_READER_CONTROL_SUSPEND = @as(u32, 1400); pub const DISPID_MX_READER_CONTROL__TOP = @as(u32, 1401); pub const DISPID_MX_SCHEMADECLHANDLER__BASE = @as(u32, 1402); pub const DISPID_MX_SCHEMADECLHANDLER = @as(u32, 1402); pub const DISPID_MX_SCHEMADECLHANDLER_SCHEMAELEMENTDECL = @as(u32, 1403); pub const DISPID_MX_SCHEMADECLHANDLER__TOP = @as(u32, 1404); pub const DISPID_MX_NSMGR__BASE = @as(u32, 1405); pub const DISPID_MX_NSMGR = @as(u32, 1405); pub const DISPID_MX_NSMGR_ALLOWOVERRIDE = @as(u32, 1406); pub const DISPID_MX_NSMGR_RESET = @as(u32, 1407); pub const DISPID_MX_NSMGR_PUSHCONTEXT = @as(u32, 1408); pub const DISPID_MX_NSMGR_PUSHNODECONTEXT = @as(u32, 1409); pub const DISPID_MX_NSMGR_POPCONTEXT = @as(u32, 1410); pub const DISPID_MX_NSMGR_DECLAREPREFIX = @as(u32, 1411); pub const DISPID_MX_NSMGR_GETDECLAREDPREFIXES = @as(u32, 1412); pub const DISPID_MX_NSMGR_GETPREFIXES = @as(u32, 1413); pub const DISPID_MX_NSMGR_GETURI = @as(u32, 1414); pub const DISPID_MX_NSMGR_GETURIFROMNODE = @as(u32, 1415); pub const DISPID_MX_NSMGR_LENGTH = @as(u32, 1416); pub const DISPID_MX_NSMGR__TOP = @as(u32, 1417); pub const DISPID_MXXML_FILTER__BASE = @as(u32, 1418); pub const DISPID_MXXML_FILTER = @as(u32, 1418); pub const DISPID_MXXML_FILTER_CONTENTHANDLER = @as(u32, 1419); pub const DISPID_MXXML_FILTER_DTDHANDLER = @as(u32, 1420); pub const DISPID_MXXML_FILTER_ENTITYRESOLVER = @as(u32, 1421); pub const DISPID_MXXML_FILTER_ERRORHANDLER = @as(u32, 1422); pub const DISPID_MXXML_FILTER_GETFEATURE = @as(u32, 1423); pub const DISPID_MXXML_FILTER_GETPROPERTY = @as(u32, 1424); pub const DISPID_MXXML_FILTER_PUTFEATURE = @as(u32, 1425); pub const DISPID_MXXML_FILTER_PUTPROPERTY = @as(u32, 1426); pub const DISPID_MXXML_FILTER__TOP = @as(u32, 1427); pub const DISPID_SOM = @as(u32, 1418); pub const DISPID_SOM_VALIDATE = @as(u32, 1419); pub const DISPID_SOM_VALIDATEONLOAD = @as(u32, 1420); pub const DISPID_SOM_GETSCHEMA = @as(u32, 1421); pub const DISPID_SOM_GETDECLARATION = @as(u32, 1422); pub const DISPID_SOM_ITEMBYNAME = @as(u32, 1423); pub const DISPID_SOM_ITEMBYQNAME = @as(u32, 1424); pub const DISPID_SOM_ANYATTRIBUTE = @as(u32, 1425); pub const DISPID_SOM_ATTRIBUTEGROUPS = @as(u32, 1426); pub const DISPID_SOM_ATTRIBUTES = @as(u32, 1427); pub const DISPID_SOM_BASETYPES = @as(u32, 1428); pub const DISPID_SOM_CONTENTMODEL = @as(u32, 1429); pub const DISPID_SOM_CONTENTTYPE = @as(u32, 1430); pub const DISPID_SOM_DEFAULTVALUE = @as(u32, 1431); pub const DISPID_SOM_DERIVEDBY = @as(u32, 1432); pub const DISPID_SOM_DISALLOWED = @as(u32, 1433); pub const DISPID_SOM_ELEMENTS = @as(u32, 1434); pub const DISPID_SOM_ENUMERATION = @as(u32, 1435); pub const DISPID_SOM_FIELDS = @as(u32, 1436); pub const DISPID_SOM_FINAL = @as(u32, 1437); pub const DISPID_SOM_FIXEDVALUE = @as(u32, 1438); pub const DISPID_SOM_FRACTIONDIGITS = @as(u32, 1439); pub const DISPID_SOM_ID = @as(u32, 1440); pub const DISPID_SOM_IDCONSTRAINTS = @as(u32, 1441); pub const DISPID_SOM_ISABSTRACT = @as(u32, 1442); pub const DISPID_SOM_ISNILLABLE = @as(u32, 1443); pub const DISPID_SOM_ISREFERENCE = @as(u32, 1444); pub const DISPID_SOM_ISVALID = @as(u32, 1445); pub const DISPID_SOM_ITEMTYPE = @as(u32, 1446); pub const DISPID_SOM_LENGTH = @as(u32, 1447); pub const DISPID_SOM_MAXEXCLUSIVE = @as(u32, 1448); pub const DISPID_SOM_MAXINCLUSIVE = @as(u32, 1449); pub const DISPID_SOM_MAXLENGTH = @as(u32, 1450); pub const DISPID_SOM_MAXOCCURS = @as(u32, 1451); pub const DISPID_SOM_MINEXCLUSIVE = @as(u32, 1452); pub const DISPID_SOM_MININCLUSIVE = @as(u32, 1453); pub const DISPID_SOM_MINLENGTH = @as(u32, 1454); pub const DISPID_SOM_MINOCCURS = @as(u32, 1455); pub const DISPID_SOM_MODELGROUPS = @as(u32, 1456); pub const DISPID_SOM_NAME = @as(u32, 1457); pub const DISPID_SOM_NAMESPACES = @as(u32, 1458); pub const DISPID_SOM_NAMESPACEURI = @as(u32, 1459); pub const DISPID_SOM_NOTATIONS = @as(u32, 1460); pub const DISPID_SOM_PARTICLES = @as(u32, 1461); pub const DISPID_SOM_PATTERNS = @as(u32, 1462); pub const DISPID_SOM_PROCESSCONTENTS = @as(u32, 1463); pub const DISPID_SOM_PROHIBITED = @as(u32, 1464); pub const DISPID_SOM_PUBLICIDENTIFIER = @as(u32, 1465); pub const DISPID_SOM_REFERENCEDKEY = @as(u32, 1466); pub const DISPID_SOM_SCHEMA = @as(u32, 1467); pub const DISPID_SOM_SCHEMALOCATIONS = @as(u32, 1468); pub const DISPID_SOM_SCOPE = @as(u32, 1469); pub const DISPID_SOM_SELECTOR = @as(u32, 1470); pub const DISPID_SOM_SUBSTITUTIONGROUP = @as(u32, 1471); pub const DISPID_SOM_EXCLUSIONS = @as(u32, 1472); pub const DISPID_SOM_SYSTEMIDENTIFIER = @as(u32, 1473); pub const DISPID_SOM_TARGETNAMESPACE = @as(u32, 1474); pub const DISPID_SOM_TOTALDIGITS = @as(u32, 1475); pub const DISPID_SOM_TYPE = @as(u32, 1476); pub const DISPID_SOM_TYPES = @as(u32, 1477); pub const DISPID_SOM_UNHANDLEDATTRS = @as(u32, 1478); pub const DISPID_SOM_USE = @as(u32, 1479); pub const DISPID_SOM_VARIETY = @as(u32, 1480); pub const DISPID_SOM_VERSION = @as(u32, 1481); pub const DISPID_SOM_WHITESPACE = @as(u32, 1482); pub const DISPID_SOM_WRITEANNOTATION = @as(u32, 1483); pub const DISPID_SOM_TOP = @as(u32, 1484); pub const DISPID_XMLDSIG = @as(u32, 1); pub const DISPID_XMLDSIG_CREATEKEYFROMCSP = @as(u32, 1); pub const DISPID_XMLDSIG_CREATEKEYFROMHMACSECRET = @as(u32, 2); pub const DISPID_XMLDSIG_CREATEKEYFROMNODE = @as(u32, 3); pub const DISPID_XMLDSIG_CREATESAXPROXY = @as(u32, 4); pub const DISPID_XMLDSIG_GETVERIFYINGCERTIFICATE = @as(u32, 5); pub const DISPID_XMLDSIG_SETREFERENCEDATA = @as(u32, 6); pub const DISPID_XMLDSIG_SIGN = @as(u32, 7); pub const DISPID_XMLDSIG_SIGNATURE = @as(u32, 8); pub const DISPID_XMLDSIG_STORE = @as(u32, 9); pub const DISPID_XMLDSIG_VERIFY = @as(u32, 10); //-------------------------------------------------------------------------------- // Section: Types (127) //-------------------------------------------------------------------------------- const CLSID_DOMDocument_Value = Guid.initString("2933bf90-7b36-11d2-b20e-00c04f983e60"); pub const CLSID_DOMDocument = &CLSID_DOMDocument_Value; const CLSID_DOMFreeThreadedDocument_Value = Guid.initString("2933bf91-7b36-11d2-b20e-00c04f983e60"); pub const CLSID_DOMFreeThreadedDocument = &CLSID_DOMFreeThreadedDocument_Value; const CLSID_XMLHTTPRequest_Value = Guid.initString("ed8c108e-4349-11d2-91a4-00c04f7969e8"); pub const CLSID_XMLHTTPRequest = &CLSID_XMLHTTPRequest_Value; const CLSID_XMLDSOControl_Value = Guid.initString("550dda30-0541-11d2-9ca9-0060b0ec3d39"); pub const CLSID_XMLDSOControl = &CLSID_XMLDSOControl_Value; const CLSID_XMLDocument_Value = Guid.initString("cfc399af-d876-11d0-9c10-00c04fc99c8e"); pub const CLSID_XMLDocument = &CLSID_XMLDocument_Value; pub const XML_ERROR = extern struct { _nLine: u32, _pchBuf: ?BSTR, _cchBuf: u32, _ich: u32, _pszFound: ?BSTR, _pszExpected: ?BSTR, _reserved1: u32, _reserved2: u32, }; pub const DOMNodeType = enum(i32) { INVALID = 0, ELEMENT = 1, ATTRIBUTE = 2, TEXT = 3, CDATA_SECTION = 4, ENTITY_REFERENCE = 5, ENTITY = 6, PROCESSING_INSTRUCTION = 7, COMMENT = 8, DOCUMENT = 9, DOCUMENT_TYPE = 10, DOCUMENT_FRAGMENT = 11, NOTATION = 12, }; pub const NODE_INVALID = DOMNodeType.INVALID; pub const NODE_ELEMENT = DOMNodeType.ELEMENT; pub const NODE_ATTRIBUTE = DOMNodeType.ATTRIBUTE; pub const NODE_TEXT = DOMNodeType.TEXT; pub const NODE_CDATA_SECTION = DOMNodeType.CDATA_SECTION; pub const NODE_ENTITY_REFERENCE = DOMNodeType.ENTITY_REFERENCE; pub const NODE_ENTITY = DOMNodeType.ENTITY; pub const NODE_PROCESSING_INSTRUCTION = DOMNodeType.PROCESSING_INSTRUCTION; pub const NODE_COMMENT = DOMNodeType.COMMENT; pub const NODE_DOCUMENT = DOMNodeType.DOCUMENT; pub const NODE_DOCUMENT_TYPE = DOMNodeType.DOCUMENT_TYPE; pub const NODE_DOCUMENT_FRAGMENT = DOMNodeType.DOCUMENT_FRAGMENT; pub const NODE_NOTATION = DOMNodeType.NOTATION; pub const XMLEMEM_TYPE = enum(i32) { ELEMENT = 0, TEXT = 1, COMMENT = 2, DOCUMENT = 3, DTD = 4, PI = 5, OTHER = 6, }; pub const XMLELEMTYPE_ELEMENT = XMLEMEM_TYPE.ELEMENT; pub const XMLELEMTYPE_TEXT = XMLEMEM_TYPE.TEXT; pub const XMLELEMTYPE_COMMENT = XMLEMEM_TYPE.COMMENT; pub const XMLELEMTYPE_DOCUMENT = XMLEMEM_TYPE.DOCUMENT; pub const XMLELEMTYPE_DTD = XMLEMEM_TYPE.DTD; pub const XMLELEMTYPE_PI = XMLEMEM_TYPE.PI; pub const XMLELEMTYPE_OTHER = XMLEMEM_TYPE.OTHER; const IID_IXMLDOMImplementation_Value = Guid.initString("2933bf8f-7b36-11d2-b20e-00c04f983e60"); pub const IID_IXMLDOMImplementation = &IID_IXMLDOMImplementation_Value; pub const IXMLDOMImplementation = extern struct { pub const VTable = extern struct { base: IDispatch.VTable, hasFeature: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IXMLDOMImplementation, feature: ?BSTR, version: ?BSTR, hasFeature: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IXMLDOMImplementation, feature: ?BSTR, version: ?BSTR, hasFeature: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IDispatch.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IXMLDOMImplementation_hasFeature(self: *const T, feature: ?BSTR, version: ?BSTR, hasFeature: ?*i16) HRESULT { return @as(*const IXMLDOMImplementation.VTable, @ptrCast(self.vtable)).hasFeature(@as(*const IXMLDOMImplementation, @ptrCast(self)), feature, version, hasFeature); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IXMLDOMNode_Value = Guid.initString("2933bf80-7b36-11d2-b20e-00c04f983e60"); pub const IID_IXMLDOMNode = &IID_IXMLDOMNode_Value; pub const IXMLDOMNode = extern struct { pub const VTable = extern struct { base: IDispatch.VTable, // TODO: this function has a "SpecialName", should Zig do anything with this? get_nodeName: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IXMLDOMNode, name: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IXMLDOMNode, name: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_nodeValue: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IXMLDOMNode, value: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IXMLDOMNode, value: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_nodeValue: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IXMLDOMNode, value: VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IXMLDOMNode, value: VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_nodeType: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IXMLDOMNode, type: ?*DOMNodeType, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IXMLDOMNode, type: ?*DOMNodeType, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_parentNode: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IXMLDOMNode, parent: ?*?*IXMLDOMNode, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IXMLDOMNode, parent: ?*?*IXMLDOMNode, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_childNodes: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IXMLDOMNode, childList: ?*?*IXMLDOMNodeList, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IXMLDOMNode, childList: ?*?*IXMLDOMNodeList, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_firstChild: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IXMLDOMNode, firstChild: ?*?*IXMLDOMNode, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IXMLDOMNode, firstChild: ?*?*IXMLDOMNode, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_lastChild: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IXMLDOMNode, lastChild: ?*?*IXMLDOMNode, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IXMLDOMNode, lastChild: ?*?*IXMLDOMNode, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_previousSibling: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IXMLDOMNode, previousSibling: ?*?*IXMLDOMNode, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IXMLDOMNode, previousSibling: ?*?*IXMLDOMNode, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_nextSibling: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IXMLDOMNode, nextSibling: ?*?*IXMLDOMNode, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IXMLDOMNode, nextSibling: ?*?*IXMLDOMNode, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_attributes: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IXMLDOMNode, attributeMap: ?*?*IXMLDOMNamedNodeMap, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IXMLDOMNode, attributeMap: ?*?*IXMLDOMNamedNodeMap, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, insertBefore: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IXMLDOMNode, newChild: ?*IXMLDOMNode, refChild: VARIANT, outNewChild: ?*?*IXMLDOMNode, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IXMLDOMNode, newChild: ?*IXMLDOMNode, refChild: VARIANT, outNewChild: ?*?*IXMLDOMNode, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, replaceChild: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IXMLDOMNode, newChild: ?*IXMLDOMNode, oldChild: ?*IXMLDOMNode, outOldChild: ?*?*IXMLDOMNode, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IXMLDOMNode, newChild: ?*IXMLDOMNode, oldChild: ?*IXMLDOMNode, outOldChild: ?*?*IXMLDOMNode, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, removeChild: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IXMLDOMNode, childNode: ?*IXMLDOMNode, oldChild: ?*?*IXMLDOMNode, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IXMLDOMNode, childNode: ?*IXMLDOMNode, oldChild: ?*?*IXMLDOMNode, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, appendChild: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IXMLDOMNode, newChild: ?*IXMLDOMNode, outNewChild: ?*?*IXMLDOMNode, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IXMLDOMNode, newChild: ?*IXMLDOMNode, outNewChild: ?*?*IXMLDOMNode, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, hasChildNodes: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IXMLDOMNode, hasChild: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IXMLDOMNode, hasChild: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_ownerDocument: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IXMLDOMNode, XMLDOMDocument: ?*?*IXMLDOMDocument, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IXMLDOMNode, XMLDOMDocument: ?*?*IXMLDOMDocument, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, cloneNode: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IXMLDOMNode, deep: i16, cloneRoot: ?*?*IXMLDOMNode, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IXMLDOMNode, deep: i16, cloneRoot: ?*?*IXMLDOMNode, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_nodeTypeString: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IXMLDOMNode, nodeType: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IXMLDOMNode, nodeType: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_text: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IXMLDOMNode, text: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IXMLDOMNode, text: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_text: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IXMLDOMNode, text: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IXMLDOMNode, text: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_specified: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IXMLDOMNode, isSpecified: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IXMLDOMNode, isSpecified: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_definition: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IXMLDOMNode, definitionNode: ?*?*IXMLDOMNode, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IXMLDOMNode, definitionNode: ?*?*IXMLDOMNode, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_nodeTypedValue: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IXMLDOMNode, typedValue: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IXMLDOMNode, typedValue: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_nodeTypedValue: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IXMLDOMNode, typedValue: VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IXMLDOMNode, typedValue: VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_dataType: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IXMLDOMNode, dataTypeName: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IXMLDOMNode, dataTypeName: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_dataType: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IXMLDOMNode, dataTypeName: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IXMLDOMNode, dataTypeName: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_xml: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IXMLDOMNode, xmlString: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IXMLDOMNode, xmlString: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, transformNode: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IXMLDOMNode, stylesheet: ?*IXMLDOMNode, xmlString: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IXMLDOMNode, stylesheet: ?*IXMLDOMNode, xmlString: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, selectNodes: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IXMLDOMNode, queryString: ?BSTR, resultList: ?*?*IXMLDOMNodeList, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IXMLDOMNode, queryString: ?BSTR, resultList: ?*?*IXMLDOMNodeList, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, selectSingleNode: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IXMLDOMNode, queryString: ?BSTR, resultNode: ?*?*IXMLDOMNode, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IXMLDOMNode, queryString: ?BSTR, resultNode: ?*?*IXMLDOMNode, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_parsed: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IXMLDOMNode, isParsed: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IXMLDOMNode, isParsed: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_namespaceURI: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IXMLDOMNode, namespaceURI: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IXMLDOMNode, namespaceURI: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_prefix: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IXMLDOMNode, prefixString: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IXMLDOMNode, prefixString: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_baseName: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IXMLDOMNode, nameString: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IXMLDOMNode, nameString: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, transformNodeToObject: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IXMLDOMNode, stylesheet: ?*IXMLDOMNode, outputObject: VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IXMLDOMNode, stylesheet: ?*IXMLDOMNode, outputObject: VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IDispatch.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IXMLDOMNode_get_nodeName(self: *const T, name: ?*?BSTR) HRESULT { return @as(*const IXMLDOMNode.VTable, @ptrCast(self.vtable)).get_nodeName(@as(*const IXMLDOMNode, @ptrCast(self)), name); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IXMLDOMNode_get_nodeValue(self: *const T, value: ?*VARIANT) HRESULT { return @as(*const IXMLDOMNode.VTable, @ptrCast(self.vtable)).get_nodeValue(@as(*const IXMLDOMNode, @ptrCast(self)), value); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IXMLDOMNode_put_nodeValue(self: *const T, value: VARIANT) HRESULT { return @as(*const IXMLDOMNode.VTable, @ptrCast(self.vtable)).put_nodeValue(@as(*const IXMLDOMNode, @ptrCast(self)), value); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IXMLDOMNode_get_nodeType(self: *const T, type_: ?*DOMNodeType) HRESULT { return @as(*const IXMLDOMNode.VTable, @ptrCast(self.vtable)).get_nodeType(@as(*const IXMLDOMNode, @ptrCast(self)), type_); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IXMLDOMNode_get_parentNode(self: *const T, parent: ?*?*IXMLDOMNode) HRESULT { return @as(*const IXMLDOMNode.VTable, @ptrCast(self.vtable)).get_parentNode(@as(*const IXMLDOMNode, @ptrCast(self)), parent); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IXMLDOMNode_get_childNodes(self: *const T, childList: ?*?*IXMLDOMNodeList) HRESULT { return @as(*const IXMLDOMNode.VTable, @ptrCast(self.vtable)).get_childNodes(@as(*const IXMLDOMNode, @ptrCast(self)), childList); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IXMLDOMNode_get_firstChild(self: *const T, firstChild: ?*?*IXMLDOMNode) HRESULT { return @as(*const IXMLDOMNode.VTable, @ptrCast(self.vtable)).get_firstChild(@as(*const IXMLDOMNode, @ptrCast(self)), firstChild); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IXMLDOMNode_get_lastChild(self: *const T, lastChild: ?*?*IXMLDOMNode) HRESULT { return @as(*const IXMLDOMNode.VTable, @ptrCast(self.vtable)).get_lastChild(@as(*const IXMLDOMNode, @ptrCast(self)), lastChild); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IXMLDOMNode_get_previousSibling(self: *const T, previousSibling: ?*?*IXMLDOMNode) HRESULT { return @as(*const IXMLDOMNode.VTable, @ptrCast(self.vtable)).get_previousSibling(@as(*const IXMLDOMNode, @ptrCast(self)), previousSibling); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IXMLDOMNode_get_nextSibling(self: *const T, nextSibling: ?*?*IXMLDOMNode) HRESULT { return @as(*const IXMLDOMNode.VTable, @ptrCast(self.vtable)).get_nextSibling(@as(*const IXMLDOMNode, @ptrCast(self)), nextSibling); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IXMLDOMNode_get_attributes(self: *const T, attributeMap: ?*?*IXMLDOMNamedNodeMap) HRESULT { return @as(*const IXMLDOMNode.VTable, @ptrCast(self.vtable)).get_attributes(@as(*const IXMLDOMNode, @ptrCast(self)), attributeMap); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IXMLDOMNode_insertBefore(self: *const T, newChild: ?*IXMLDOMNode, refChild: VARIANT, outNewChild: ?*?*IXMLDOMNode) HRESULT { return @as(*const IXMLDOMNode.VTable, @ptrCast(self.vtable)).insertBefore(@as(*const IXMLDOMNode, @ptrCast(self)), newChild, refChild, outNewChild); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IXMLDOMNode_replaceChild(self: *const T, newChild: ?*IXMLDOMNode, oldChild: ?*IXMLDOMNode, outOldChild: ?*?*IXMLDOMNode) HRESULT { return @as(*const IXMLDOMNode.VTable, @ptrCast(self.vtable)).replaceChild(@as(*const IXMLDOMNode, @ptrCast(self)), newChild, oldChild, outOldChild); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IXMLDOMNode_removeChild(self: *const T, childNode: ?*IXMLDOMNode, oldChild: ?*?*IXMLDOMNode) HRESULT { return @as(*const IXMLDOMNode.VTable, @ptrCast(self.vtable)).removeChild(@as(*const IXMLDOMNode, @ptrCast(self)), childNode, oldChild); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IXMLDOMNode_appendChild(self: *const T, newChild: ?*IXMLDOMNode, outNewChild: ?*?*IXMLDOMNode) HRESULT { return @as(*const IXMLDOMNode.VTable, @ptrCast(self.vtable)).appendChild(@as(*const IXMLDOMNode, @ptrCast(self)), newChild, outNewChild); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IXMLDOMNode_hasChildNodes(self: *const T, hasChild: ?*i16) HRESULT { return @as(*const IXMLDOMNode.VTable, @ptrCast(self.vtable)).hasChildNodes(@as(*const IXMLDOMNode, @ptrCast(self)), hasChild); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IXMLDOMNode_get_ownerDocument(self: *const T, XMLDOMDocument: ?*?*IXMLDOMDocument) HRESULT { return @as(*const IXMLDOMNode.VTable, @ptrCast(self.vtable)).get_ownerDocument(@as(*const IXMLDOMNode, @ptrCast(self)), XMLDOMDocument); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IXMLDOMNode_cloneNode(self: *const T, deep: i16, cloneRoot: ?*?*IXMLDOMNode) HRESULT { return @as(*const IXMLDOMNode.VTable, @ptrCast(self.vtable)).cloneNode(@as(*const IXMLDOMNode, @ptrCast(self)), deep, cloneRoot); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IXMLDOMNode_get_nodeTypeString(self: *const T, nodeType: ?*?BSTR) HRESULT { return @as(*const IXMLDOMNode.VTable, @ptrCast(self.vtable)).get_nodeTypeString(@as(*const IXMLDOMNode, @ptrCast(self)), nodeType); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IXMLDOMNode_get_text(self: *const T, text: ?*?BSTR) HRESULT { return @as(*const IXMLDOMNode.VTable, @ptrCast(self.vtable)).get_text(@as(*const IXMLDOMNode, @ptrCast(self)), text); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IXMLDOMNode_put_text(self: *const T, text: ?BSTR) HRESULT { return @as(*const IXMLDOMNode.VTable, @ptrCast(self.vtable)).put_text(@as(*const IXMLDOMNode, @ptrCast(self)), text); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IXMLDOMNode_get_specified(self: *const T, isSpecified: ?*i16) HRESULT { return @as(*const IXMLDOMNode.VTable, @ptrCast(self.vtable)).get_specified(@as(*const IXMLDOMNode, @ptrCast(self)), isSpecified); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IXMLDOMNode_get_definition(self: *const T, definitionNode: ?*?*IXMLDOMNode) HRESULT { return @as(*const IXMLDOMNode.VTable, @ptrCast(self.vtable)).get_definition(@as(*const IXMLDOMNode, @ptrCast(self)), definitionNode); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IXMLDOMNode_get_nodeTypedValue(self: *const T, typedValue: ?*VARIANT) HRESULT { return @as(*const IXMLDOMNode.VTable, @ptrCast(self.vtable)).get_nodeTypedValue(@as(*const IXMLDOMNode, @ptrCast(self)), typedValue); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IXMLDOMNode_put_nodeTypedValue(self: *const T, typedValue: VARIANT) HRESULT { return @as(*const IXMLDOMNode.VTable, @ptrCast(self.vtable)).put_nodeTypedValue(@as(*const IXMLDOMNode, @ptrCast(self)), typedValue); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IXMLDOMNode_get_dataType(self: *const T, dataTypeName: ?*VARIANT) HRESULT { return @as(*const IXMLDOMNode.VTable, @ptrCast(self.vtable)).get_dataType(@as(*const IXMLDOMNode, @ptrCast(self)), dataTypeName); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IXMLDOMNode_put_dataType(self: *const T, dataTypeName: ?BSTR) HRESULT { return @as(*const IXMLDOMNode.VTable, @ptrCast(self.vtable)).put_dataType(@as(*const IXMLDOMNode, @ptrCast(self)), dataTypeName); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IXMLDOMNode_get_xml(self: *const T, xmlString: ?*?BSTR) HRESULT { return @as(*const IXMLDOMNode.VTable, @ptrCast(self.vtable)).get_xml(@as(*const IXMLDOMNode, @ptrCast(self)), xmlString); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IXMLDOMNode_transformNode(self: *const T, stylesheet: ?*IXMLDOMNode, xmlString: ?*?BSTR) HRESULT { return @as(*const IXMLDOMNode.VTable, @ptrCast(self.vtable)).transformNode(@as(*const IXMLDOMNode, @ptrCast(self)), stylesheet, xmlString); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IXMLDOMNode_selectNodes(self: *const T, queryString: ?BSTR, resultList: ?*?*IXMLDOMNodeList) HRESULT { return @as(*const IXMLDOMNode.VTable, @ptrCast(self.vtable)).selectNodes(@as(*const IXMLDOMNode, @ptrCast(self)), queryString, resultList); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IXMLDOMNode_selectSingleNode(self: *const T, queryString: ?BSTR, resultNode: ?*?*IXMLDOMNode) HRESULT { return @as(*const IXMLDOMNode.VTable, @ptrCast(self.vtable)).selectSingleNode(@as(*const IXMLDOMNode, @ptrCast(self)), queryString, resultNode); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IXMLDOMNode_get_parsed(self: *const T, isParsed: ?*i16) HRESULT { return @as(*const IXMLDOMNode.VTable, @ptrCast(self.vtable)).get_parsed(@as(*const IXMLDOMNode, @ptrCast(self)), isParsed); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IXMLDOMNode_get_namespaceURI(self: *const T, namespaceURI: ?*?BSTR) HRESULT { return @as(*const IXMLDOMNode.VTable, @ptrCast(self.vtable)).get_namespaceURI(@as(*const IXMLDOMNode, @ptrCast(self)), namespaceURI); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IXMLDOMNode_get_prefix(self: *const T, prefixString: ?*?BSTR) HRESULT { return @as(*const IXMLDOMNode.VTable, @ptrCast(self.vtable)).get_prefix(@as(*const IXMLDOMNode, @ptrCast(self)), prefixString); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IXMLDOMNode_get_baseName(self: *const T, nameString: ?*?BSTR) HRESULT { return @as(*const IXMLDOMNode.VTable, @ptrCast(self.vtable)).get_baseName(@as(*const IXMLDOMNode, @ptrCast(self)), nameString); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IXMLDOMNode_transformNodeToObject(self: *const T, stylesheet: ?*IXMLDOMNode, outputObject: VARIANT) HRESULT { return @as(*const IXMLDOMNode.VTable, @ptrCast(self.vtable)).transformNodeToObject(@as(*const IXMLDOMNode, @ptrCast(self)), stylesheet, outputObject); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IXMLDOMDocumentFragment_Value = Guid.initString("3efaa413-272f-11d2-836f-0000f87a7782"); pub const IID_IXMLDOMDocumentFragment = &IID_IXMLDOMDocumentFragment_Value; pub const IXMLDOMDocumentFragment = extern struct { pub const VTable = extern struct { base: IXMLDOMNode.VTable, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IXMLDOMNode.MethodMixin(T); }; } pub usingnamespace MethodMixin(@This()); }; const IID_IXMLDOMDocument_Value = Guid.initString("2933bf81-7b36-11d2-b20e-00c04f983e60"); pub const IID_IXMLDOMDocument = &IID_IXMLDOMDocument_Value; pub const IXMLDOMDocument = extern struct { pub const VTable = extern struct { base: IXMLDOMNode.VTable, // TODO: this function has a "SpecialName", should Zig do anything with this? get_doctype: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IXMLDOMDocument, documentType: ?*?*IXMLDOMDocumentType, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IXMLDOMDocument, documentType: ?*?*IXMLDOMDocumentType, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_implementation: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IXMLDOMDocument, impl: ?*?*IXMLDOMImplementation, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IXMLDOMDocument, impl: ?*?*IXMLDOMImplementation, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_documentElement: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IXMLDOMDocument, DOMElement: ?*?*IXMLDOMElement, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IXMLDOMDocument, DOMElement: ?*?*IXMLDOMElement, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, putref_documentElement: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IXMLDOMDocument, DOMElement: ?*IXMLDOMElement, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IXMLDOMDocument, DOMElement: ?*IXMLDOMElement, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, createElement: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IXMLDOMDocument, tagName: ?BSTR, element: ?*?*IXMLDOMElement, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IXMLDOMDocument, tagName: ?BSTR, element: ?*?*IXMLDOMElement, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, createDocumentFragment: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IXMLDOMDocument, docFrag: ?*?*IXMLDOMDocumentFragment, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IXMLDOMDocument, docFrag: ?*?*IXMLDOMDocumentFragment, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, createTextNode: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IXMLDOMDocument, data: ?BSTR, text: ?*?*IXMLDOMText, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IXMLDOMDocument, data: ?BSTR, text: ?*?*IXMLDOMText, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, createComment: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IXMLDOMDocument, data: ?BSTR, comment: ?*?*IXMLDOMComment, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IXMLDOMDocument, data: ?BSTR, comment: ?*?*IXMLDOMComment, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, createCDATASection: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IXMLDOMDocument, data: ?BSTR, cdata: ?*?*IXMLDOMCDATASection, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IXMLDOMDocument, data: ?BSTR, cdata: ?*?*IXMLDOMCDATASection, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, createProcessingInstruction: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IXMLDOMDocument, target: ?BSTR, data: ?BSTR, pi: ?*?*IXMLDOMProcessingInstruction, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IXMLDOMDocument, target: ?BSTR, data: ?BSTR, pi: ?*?*IXMLDOMProcessingInstruction, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, createAttribute: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IXMLDOMDocument, name: ?BSTR, attribute: ?*?*IXMLDOMAttribute, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IXMLDOMDocument, name: ?BSTR, attribute: ?*?*IXMLDOMAttribute, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, createEntityReference: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IXMLDOMDocument, name: ?BSTR, entityRef: ?*?*IXMLDOMEntityReference, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IXMLDOMDocument, name: ?BSTR, entityRef: ?*?*IXMLDOMEntityReference, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, getElementsByTagName: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IXMLDOMDocument, tagName: ?BSTR, resultList: ?*?*IXMLDOMNodeList, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IXMLDOMDocument, tagName: ?BSTR, resultList: ?*?*IXMLDOMNodeList, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, createNode: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IXMLDOMDocument, Type: VARIANT, name: ?BSTR, namespaceURI: ?BSTR, node: ?*?*IXMLDOMNode, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IXMLDOMDocument, Type: VARIANT, name: ?BSTR, namespaceURI: ?BSTR, node: ?*?*IXMLDOMNode, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, nodeFromID: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IXMLDOMDocument, idString: ?BSTR, node: ?*?*IXMLDOMNode, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IXMLDOMDocument, idString: ?BSTR, node: ?*?*IXMLDOMNode, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, load: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IXMLDOMDocument, xmlSource: VARIANT, isSuccessful: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IXMLDOMDocument, xmlSource: VARIANT, isSuccessful: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_readyState: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IXMLDOMDocument, value: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IXMLDOMDocument, value: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_parseError: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IXMLDOMDocument, errorObj: ?*?*IXMLDOMParseError, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IXMLDOMDocument, errorObj: ?*?*IXMLDOMParseError, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_url: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IXMLDOMDocument, urlString: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IXMLDOMDocument, urlString: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_async: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IXMLDOMDocument, isAsync: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IXMLDOMDocument, isAsync: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_async: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IXMLDOMDocument, isAsync: i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IXMLDOMDocument, isAsync: i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, abort: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IXMLDOMDocument, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IXMLDOMDocument, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, loadXML: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IXMLDOMDocument, bstrXML: ?BSTR, isSuccessful: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IXMLDOMDocument, bstrXML: ?BSTR, isSuccessful: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, save: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IXMLDOMDocument, destination: VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IXMLDOMDocument, destination: VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_validateOnParse: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IXMLDOMDocument, isValidating: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IXMLDOMDocument, isValidating: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_validateOnParse: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IXMLDOMDocument, isValidating: i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IXMLDOMDocument, isValidating: i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_resolveExternals: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IXMLDOMDocument, isResolving: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IXMLDOMDocument, isResolving: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_resolveExternals: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IXMLDOMDocument, isResolving: i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IXMLDOMDocument, isResolving: i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_preserveWhiteSpace: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IXMLDOMDocument, isPreserving: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IXMLDOMDocument, isPreserving: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_preserveWhiteSpace: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IXMLDOMDocument, isPreserving: i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IXMLDOMDocument, isPreserving: i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_onreadystatechange: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IXMLDOMDocument, readystatechangeSink: VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IXMLDOMDocument, readystatechangeSink: VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_ondataavailable: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IXMLDOMDocument, ondataavailableSink: VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IXMLDOMDocument, ondataavailableSink: VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_ontransformnode: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IXMLDOMDocument, ontransformnodeSink: VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IXMLDOMDocument, ontransformnodeSink: VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IXMLDOMNode.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IXMLDOMDocument_get_doctype(self: *const T, documentType: ?*?*IXMLDOMDocumentType) HRESULT { return @as(*const IXMLDOMDocument.VTable, @ptrCast(self.vtable)).get_doctype(@as(*const IXMLDOMDocument, @ptrCast(self)), documentType); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IXMLDOMDocument_get_implementation(self: *const T, impl: ?*?*IXMLDOMImplementation) HRESULT { return @as(*const IXMLDOMDocument.VTable, @ptrCast(self.vtable)).get_implementation(@as(*const IXMLDOMDocument, @ptrCast(self)), impl); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IXMLDOMDocument_get_documentElement(self: *const T, DOMElement: ?*?*IXMLDOMElement) HRESULT { return @as(*const IXMLDOMDocument.VTable, @ptrCast(self.vtable)).get_documentElement(@as(*const IXMLDOMDocument, @ptrCast(self)), DOMElement); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IXMLDOMDocument_putref_documentElement(self: *const T, DOMElement: ?*IXMLDOMElement) HRESULT { return @as(*const IXMLDOMDocument.VTable, @ptrCast(self.vtable)).putref_documentElement(@as(*const IXMLDOMDocument, @ptrCast(self)), DOMElement); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IXMLDOMDocument_createElement(self: *const T, tagName: ?BSTR, element: ?*?*IXMLDOMElement) HRESULT { return @as(*const IXMLDOMDocument.VTable, @ptrCast(self.vtable)).createElement(@as(*const IXMLDOMDocument, @ptrCast(self)), tagName, element); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IXMLDOMDocument_createDocumentFragment(self: *const T, docFrag: ?*?*IXMLDOMDocumentFragment) HRESULT { return @as(*const IXMLDOMDocument.VTable, @ptrCast(self.vtable)).createDocumentFragment(@as(*const IXMLDOMDocument, @ptrCast(self)), docFrag); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IXMLDOMDocument_createTextNode(self: *const T, data: ?BSTR, text: ?*?*IXMLDOMText) HRESULT { return @as(*const IXMLDOMDocument.VTable, @ptrCast(self.vtable)).createTextNode(@as(*const IXMLDOMDocument, @ptrCast(self)), data, text); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IXMLDOMDocument_createComment(self: *const T, data: ?BSTR, comment: ?*?*IXMLDOMComment) HRESULT { return @as(*const IXMLDOMDocument.VTable, @ptrCast(self.vtable)).createComment(@as(*const IXMLDOMDocument, @ptrCast(self)), data, comment); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IXMLDOMDocument_createCDATASection(self: *const T, data: ?BSTR, cdata: ?*?*IXMLDOMCDATASection) HRESULT { return @as(*const IXMLDOMDocument.VTable, @ptrCast(self.vtable)).createCDATASection(@as(*const IXMLDOMDocument, @ptrCast(self)), data, cdata); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IXMLDOMDocument_createProcessingInstruction(self: *const T, target: ?BSTR, data: ?BSTR, pi: ?*?*IXMLDOMProcessingInstruction) HRESULT { return @as(*const IXMLDOMDocument.VTable, @ptrCast(self.vtable)).createProcessingInstruction(@as(*const IXMLDOMDocument, @ptrCast(self)), target, data, pi); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IXMLDOMDocument_createAttribute(self: *const T, name: ?BSTR, attribute: ?*?*IXMLDOMAttribute) HRESULT { return @as(*const IXMLDOMDocument.VTable, @ptrCast(self.vtable)).createAttribute(@as(*const IXMLDOMDocument, @ptrCast(self)), name, attribute); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IXMLDOMDocument_createEntityReference(self: *const T, name: ?BSTR, entityRef: ?*?*IXMLDOMEntityReference) HRESULT { return @as(*const IXMLDOMDocument.VTable, @ptrCast(self.vtable)).createEntityReference(@as(*const IXMLDOMDocument, @ptrCast(self)), name, entityRef); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IXMLDOMDocument_getElementsByTagName(self: *const T, tagName: ?BSTR, resultList: ?*?*IXMLDOMNodeList) HRESULT { return @as(*const IXMLDOMDocument.VTable, @ptrCast(self.vtable)).getElementsByTagName(@as(*const IXMLDOMDocument, @ptrCast(self)), tagName, resultList); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IXMLDOMDocument_createNode(self: *const T, Type: VARIANT, name: ?BSTR, namespaceURI: ?BSTR, node: ?*?*IXMLDOMNode) HRESULT { return @as(*const IXMLDOMDocument.VTable, @ptrCast(self.vtable)).createNode(@as(*const IXMLDOMDocument, @ptrCast(self)), Type, name, namespaceURI, node); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IXMLDOMDocument_nodeFromID(self: *const T, idString: ?BSTR, node: ?*?*IXMLDOMNode) HRESULT { return @as(*const IXMLDOMDocument.VTable, @ptrCast(self.vtable)).nodeFromID(@as(*const IXMLDOMDocument, @ptrCast(self)), idString, node); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IXMLDOMDocument_load(self: *const T, xmlSource: VARIANT, isSuccessful: ?*i16) HRESULT { return @as(*const IXMLDOMDocument.VTable, @ptrCast(self.vtable)).load(@as(*const IXMLDOMDocument, @ptrCast(self)), xmlSource, isSuccessful); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IXMLDOMDocument_get_readyState(self: *const T, value: ?*i32) HRESULT { return @as(*const IXMLDOMDocument.VTable, @ptrCast(self.vtable)).get_readyState(@as(*const IXMLDOMDocument, @ptrCast(self)), value); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IXMLDOMDocument_get_parseError(self: *const T, errorObj: ?*?*IXMLDOMParseError) HRESULT { return @as(*const IXMLDOMDocument.VTable, @ptrCast(self.vtable)).get_parseError(@as(*const IXMLDOMDocument, @ptrCast(self)), errorObj); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IXMLDOMDocument_get_url(self: *const T, urlString: ?*?BSTR) HRESULT { return @as(*const IXMLDOMDocument.VTable, @ptrCast(self.vtable)).get_url(@as(*const IXMLDOMDocument, @ptrCast(self)), urlString); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IXMLDOMDocument_get_async(self: *const T, isAsync: ?*i16) HRESULT { return @as(*const IXMLDOMDocument.VTable, @ptrCast(self.vtable)).get_async(@as(*const IXMLDOMDocument, @ptrCast(self)), isAsync); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IXMLDOMDocument_put_async(self: *const T, isAsync: i16) HRESULT { return @as(*const IXMLDOMDocument.VTable, @ptrCast(self.vtable)).put_async(@as(*const IXMLDOMDocument, @ptrCast(self)), isAsync); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IXMLDOMDocument_abort(self: *const T) HRESULT { return @as(*const IXMLDOMDocument.VTable, @ptrCast(self.vtable)).abort(@as(*const IXMLDOMDocument, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IXMLDOMDocument_loadXML(self: *const T, bstrXML: ?BSTR, isSuccessful: ?*i16) HRESULT { return @as(*const IXMLDOMDocument.VTable, @ptrCast(self.vtable)).loadXML(@as(*const IXMLDOMDocument, @ptrCast(self)), bstrXML, isSuccessful); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IXMLDOMDocument_save(self: *const T, destination: VARIANT) HRESULT { return @as(*const IXMLDOMDocument.VTable, @ptrCast(self.vtable)).save(@as(*const IXMLDOMDocument, @ptrCast(self)), destination); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IXMLDOMDocument_get_validateOnParse(self: *const T, isValidating: ?*i16) HRESULT { return @as(*const IXMLDOMDocument.VTable, @ptrCast(self.vtable)).get_validateOnParse(@as(*const IXMLDOMDocument, @ptrCast(self)), isValidating); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IXMLDOMDocument_put_validateOnParse(self: *const T, isValidating: i16) HRESULT { return @as(*const IXMLDOMDocument.VTable, @ptrCast(self.vtable)).put_validateOnParse(@as(*const IXMLDOMDocument, @ptrCast(self)), isValidating); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IXMLDOMDocument_get_resolveExternals(self: *const T, isResolving: ?*i16) HRESULT { return @as(*const IXMLDOMDocument.VTable, @ptrCast(self.vtable)).get_resolveExternals(@as(*const IXMLDOMDocument, @ptrCast(self)), isResolving); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IXMLDOMDocument_put_resolveExternals(self: *const T, isResolving: i16) HRESULT { return @as(*const IXMLDOMDocument.VTable, @ptrCast(self.vtable)).put_resolveExternals(@as(*const IXMLDOMDocument, @ptrCast(self)), isResolving); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IXMLDOMDocument_get_preserveWhiteSpace(self: *const T, isPreserving: ?*i16) HRESULT { return @as(*const IXMLDOMDocument.VTable, @ptrCast(self.vtable)).get_preserveWhiteSpace(@as(*const IXMLDOMDocument, @ptrCast(self)), isPreserving); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IXMLDOMDocument_put_preserveWhiteSpace(self: *const T, isPreserving: i16) HRESULT { return @as(*const IXMLDOMDocument.VTable, @ptrCast(self.vtable)).put_preserveWhiteSpace(@as(*const IXMLDOMDocument, @ptrCast(self)), isPreserving); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IXMLDOMDocument_put_onreadystatechange(self: *const T, readystatechangeSink: VARIANT) HRESULT { return @as(*const IXMLDOMDocument.VTable, @ptrCast(self.vtable)).put_onreadystatechange(@as(*const IXMLDOMDocument, @ptrCast(self)), readystatechangeSink); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IXMLDOMDocument_put_ondataavailable(self: *const T, ondataavailableSink: VARIANT) HRESULT { return @as(*const IXMLDOMDocument.VTable, @ptrCast(self.vtable)).put_ondataavailable(@as(*const IXMLDOMDocument, @ptrCast(self)), ondataavailableSink); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IXMLDOMDocument_put_ontransformnode(self: *const T, ontransformnodeSink: VARIANT) HRESULT { return @as(*const IXMLDOMDocument.VTable, @ptrCast(self.vtable)).put_ontransformnode(@as(*const IXMLDOMDocument, @ptrCast(self)), ontransformnodeSink); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IXMLDOMNodeList_Value = Guid.initString("2933bf82-7b36-11d2-b20e-00c04f983e60"); pub const IID_IXMLDOMNodeList = &IID_IXMLDOMNodeList_Value; pub const IXMLDOMNodeList = extern struct { pub const VTable = extern struct { base: IDispatch.VTable, // TODO: this function has a "SpecialName", should Zig do anything with this? get_item: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IXMLDOMNodeList, index: i32, listItem: ?*?*IXMLDOMNode, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IXMLDOMNodeList, index: i32, listItem: ?*?*IXMLDOMNode, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_length: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IXMLDOMNodeList, listLength: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IXMLDOMNodeList, listLength: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, nextNode: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IXMLDOMNodeList, nextItem: ?*?*IXMLDOMNode, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IXMLDOMNodeList, nextItem: ?*?*IXMLDOMNode, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, reset: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IXMLDOMNodeList, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IXMLDOMNodeList, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get__newEnum: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IXMLDOMNodeList, ppUnk: ?*?*IUnknown, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IXMLDOMNodeList, ppUnk: ?*?*IUnknown, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IDispatch.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IXMLDOMNodeList_get_item(self: *const T, index: i32, listItem: ?*?*IXMLDOMNode) HRESULT { return @as(*const IXMLDOMNodeList.VTable, @ptrCast(self.vtable)).get_item(@as(*const IXMLDOMNodeList, @ptrCast(self)), index, listItem); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IXMLDOMNodeList_get_length(self: *const T, listLength: ?*i32) HRESULT { return @as(*const IXMLDOMNodeList.VTable, @ptrCast(self.vtable)).get_length(@as(*const IXMLDOMNodeList, @ptrCast(self)), listLength); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IXMLDOMNodeList_nextNode(self: *const T, nextItem: ?*?*IXMLDOMNode) HRESULT { return @as(*const IXMLDOMNodeList.VTable, @ptrCast(self.vtable)).nextNode(@as(*const IXMLDOMNodeList, @ptrCast(self)), nextItem); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IXMLDOMNodeList_reset(self: *const T) HRESULT { return @as(*const IXMLDOMNodeList.VTable, @ptrCast(self.vtable)).reset(@as(*const IXMLDOMNodeList, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IXMLDOMNodeList_get__newEnum(self: *const T, ppUnk: ?*?*IUnknown) HRESULT { return @as(*const IXMLDOMNodeList.VTable, @ptrCast(self.vtable)).get__newEnum(@as(*const IXMLDOMNodeList, @ptrCast(self)), ppUnk); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IXMLDOMNamedNodeMap_Value = Guid.initString("2933bf83-7b36-11d2-b20e-00c04f983e60"); pub const IID_IXMLDOMNamedNodeMap = &IID_IXMLDOMNamedNodeMap_Value; pub const IXMLDOMNamedNodeMap = extern struct { pub const VTable = extern struct { base: IDispatch.VTable, getNamedItem: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IXMLDOMNamedNodeMap, name: ?BSTR, namedItem: ?*?*IXMLDOMNode, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IXMLDOMNamedNodeMap, name: ?BSTR, namedItem: ?*?*IXMLDOMNode, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, setNamedItem: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IXMLDOMNamedNodeMap, newItem: ?*IXMLDOMNode, nameItem: ?*?*IXMLDOMNode, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IXMLDOMNamedNodeMap, newItem: ?*IXMLDOMNode, nameItem: ?*?*IXMLDOMNode, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, removeNamedItem: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IXMLDOMNamedNodeMap, name: ?BSTR, namedItem: ?*?*IXMLDOMNode, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IXMLDOMNamedNodeMap, name: ?BSTR, namedItem: ?*?*IXMLDOMNode, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_item: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IXMLDOMNamedNodeMap, index: i32, listItem: ?*?*IXMLDOMNode, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IXMLDOMNamedNodeMap, index: i32, listItem: ?*?*IXMLDOMNode, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_length: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IXMLDOMNamedNodeMap, listLength: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IXMLDOMNamedNodeMap, listLength: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, getQualifiedItem: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IXMLDOMNamedNodeMap, baseName: ?BSTR, namespaceURI: ?BSTR, qualifiedItem: ?*?*IXMLDOMNode, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IXMLDOMNamedNodeMap, baseName: ?BSTR, namespaceURI: ?BSTR, qualifiedItem: ?*?*IXMLDOMNode, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, removeQualifiedItem: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IXMLDOMNamedNodeMap, baseName: ?BSTR, namespaceURI: ?BSTR, qualifiedItem: ?*?*IXMLDOMNode, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IXMLDOMNamedNodeMap, baseName: ?BSTR, namespaceURI: ?BSTR, qualifiedItem: ?*?*IXMLDOMNode, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, nextNode: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IXMLDOMNamedNodeMap, nextItem: ?*?*IXMLDOMNode, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IXMLDOMNamedNodeMap, nextItem: ?*?*IXMLDOMNode, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, reset: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IXMLDOMNamedNodeMap, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IXMLDOMNamedNodeMap, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get__newEnum: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IXMLDOMNamedNodeMap, ppUnk: ?*?*IUnknown, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IXMLDOMNamedNodeMap, ppUnk: ?*?*IUnknown, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IDispatch.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IXMLDOMNamedNodeMap_getNamedItem(self: *const T, name: ?BSTR, namedItem: ?*?*IXMLDOMNode) HRESULT { return @as(*const IXMLDOMNamedNodeMap.VTable, @ptrCast(self.vtable)).getNamedItem(@as(*const IXMLDOMNamedNodeMap, @ptrCast(self)), name, namedItem); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IXMLDOMNamedNodeMap_setNamedItem(self: *const T, newItem: ?*IXMLDOMNode, nameItem: ?*?*IXMLDOMNode) HRESULT { return @as(*const IXMLDOMNamedNodeMap.VTable, @ptrCast(self.vtable)).setNamedItem(@as(*const IXMLDOMNamedNodeMap, @ptrCast(self)), newItem, nameItem); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IXMLDOMNamedNodeMap_removeNamedItem(self: *const T, name: ?BSTR, namedItem: ?*?*IXMLDOMNode) HRESULT { return @as(*const IXMLDOMNamedNodeMap.VTable, @ptrCast(self.vtable)).removeNamedItem(@as(*const IXMLDOMNamedNodeMap, @ptrCast(self)), name, namedItem); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IXMLDOMNamedNodeMap_get_item(self: *const T, index: i32, listItem: ?*?*IXMLDOMNode) HRESULT { return @as(*const IXMLDOMNamedNodeMap.VTable, @ptrCast(self.vtable)).get_item(@as(*const IXMLDOMNamedNodeMap, @ptrCast(self)), index, listItem); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IXMLDOMNamedNodeMap_get_length(self: *const T, listLength: ?*i32) HRESULT { return @as(*const IXMLDOMNamedNodeMap.VTable, @ptrCast(self.vtable)).get_length(@as(*const IXMLDOMNamedNodeMap, @ptrCast(self)), listLength); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IXMLDOMNamedNodeMap_getQualifiedItem(self: *const T, baseName: ?BSTR, namespaceURI: ?BSTR, qualifiedItem: ?*?*IXMLDOMNode) HRESULT { return @as(*const IXMLDOMNamedNodeMap.VTable, @ptrCast(self.vtable)).getQualifiedItem(@as(*const IXMLDOMNamedNodeMap, @ptrCast(self)), baseName, namespaceURI, qualifiedItem); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IXMLDOMNamedNodeMap_removeQualifiedItem(self: *const T, baseName: ?BSTR, namespaceURI: ?BSTR, qualifiedItem: ?*?*IXMLDOMNode) HRESULT { return @as(*const IXMLDOMNamedNodeMap.VTable, @ptrCast(self.vtable)).removeQualifiedItem(@as(*const IXMLDOMNamedNodeMap, @ptrCast(self)), baseName, namespaceURI, qualifiedItem); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IXMLDOMNamedNodeMap_nextNode(self: *const T, nextItem: ?*?*IXMLDOMNode) HRESULT { return @as(*const IXMLDOMNamedNodeMap.VTable, @ptrCast(self.vtable)).nextNode(@as(*const IXMLDOMNamedNodeMap, @ptrCast(self)), nextItem); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IXMLDOMNamedNodeMap_reset(self: *const T) HRESULT { return @as(*const IXMLDOMNamedNodeMap.VTable, @ptrCast(self.vtable)).reset(@as(*const IXMLDOMNamedNodeMap, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IXMLDOMNamedNodeMap_get__newEnum(self: *const T, ppUnk: ?*?*IUnknown) HRESULT { return @as(*const IXMLDOMNamedNodeMap.VTable, @ptrCast(self.vtable)).get__newEnum(@as(*const IXMLDOMNamedNodeMap, @ptrCast(self)), ppUnk); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IXMLDOMCharacterData_Value = Guid.initString("2933bf84-7b36-11d2-b20e-00c04f983e60"); pub const IID_IXMLDOMCharacterData = &IID_IXMLDOMCharacterData_Value; pub const IXMLDOMCharacterData = extern struct { pub const VTable = extern struct { base: IXMLDOMNode.VTable, // TODO: this function has a "SpecialName", should Zig do anything with this? get_data: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IXMLDOMCharacterData, data: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IXMLDOMCharacterData, data: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_data: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IXMLDOMCharacterData, data: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IXMLDOMCharacterData, data: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_length: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IXMLDOMCharacterData, dataLength: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IXMLDOMCharacterData, dataLength: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, substringData: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IXMLDOMCharacterData, offset: i32, count: i32, data: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IXMLDOMCharacterData, offset: i32, count: i32, data: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, appendData: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IXMLDOMCharacterData, data: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IXMLDOMCharacterData, data: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, insertData: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IXMLDOMCharacterData, offset: i32, data: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IXMLDOMCharacterData, offset: i32, data: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, deleteData: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IXMLDOMCharacterData, offset: i32, count: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IXMLDOMCharacterData, offset: i32, count: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, replaceData: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IXMLDOMCharacterData, offset: i32, count: i32, data: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IXMLDOMCharacterData, offset: i32, count: i32, data: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IXMLDOMNode.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IXMLDOMCharacterData_get_data(self: *const T, data: ?*?BSTR) HRESULT { return @as(*const IXMLDOMCharacterData.VTable, @ptrCast(self.vtable)).get_data(@as(*const IXMLDOMCharacterData, @ptrCast(self)), data); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IXMLDOMCharacterData_put_data(self: *const T, data: ?BSTR) HRESULT { return @as(*const IXMLDOMCharacterData.VTable, @ptrCast(self.vtable)).put_data(@as(*const IXMLDOMCharacterData, @ptrCast(self)), data); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IXMLDOMCharacterData_get_length(self: *const T, dataLength: ?*i32) HRESULT { return @as(*const IXMLDOMCharacterData.VTable, @ptrCast(self.vtable)).get_length(@as(*const IXMLDOMCharacterData, @ptrCast(self)), dataLength); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IXMLDOMCharacterData_substringData(self: *const T, offset: i32, count: i32, data: ?*?BSTR) HRESULT { return @as(*const IXMLDOMCharacterData.VTable, @ptrCast(self.vtable)).substringData(@as(*const IXMLDOMCharacterData, @ptrCast(self)), offset, count, data); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IXMLDOMCharacterData_appendData(self: *const T, data: ?BSTR) HRESULT { return @as(*const IXMLDOMCharacterData.VTable, @ptrCast(self.vtable)).appendData(@as(*const IXMLDOMCharacterData, @ptrCast(self)), data); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IXMLDOMCharacterData_insertData(self: *const T, offset: i32, data: ?BSTR) HRESULT { return @as(*const IXMLDOMCharacterData.VTable, @ptrCast(self.vtable)).insertData(@as(*const IXMLDOMCharacterData, @ptrCast(self)), offset, data); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IXMLDOMCharacterData_deleteData(self: *const T, offset: i32, count: i32) HRESULT { return @as(*const IXMLDOMCharacterData.VTable, @ptrCast(self.vtable)).deleteData(@as(*const IXMLDOMCharacterData, @ptrCast(self)), offset, count); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IXMLDOMCharacterData_replaceData(self: *const T, offset: i32, count: i32, data: ?BSTR) HRESULT { return @as(*const IXMLDOMCharacterData.VTable, @ptrCast(self.vtable)).replaceData(@as(*const IXMLDOMCharacterData, @ptrCast(self)), offset, count, data); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IXMLDOMAttribute_Value = Guid.initString("2933bf85-7b36-11d2-b20e-00c04f983e60"); pub const IID_IXMLDOMAttribute = &IID_IXMLDOMAttribute_Value; pub const IXMLDOMAttribute = extern struct { pub const VTable = extern struct { base: IXMLDOMNode.VTable, // TODO: this function has a "SpecialName", should Zig do anything with this? get_name: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IXMLDOMAttribute, attributeName: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IXMLDOMAttribute, attributeName: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_value: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IXMLDOMAttribute, attributeValue: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IXMLDOMAttribute, attributeValue: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_value: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IXMLDOMAttribute, attributeValue: VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IXMLDOMAttribute, attributeValue: VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IXMLDOMNode.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IXMLDOMAttribute_get_name(self: *const T, attributeName: ?*?BSTR) HRESULT { return @as(*const IXMLDOMAttribute.VTable, @ptrCast(self.vtable)).get_name(@as(*const IXMLDOMAttribute, @ptrCast(self)), attributeName); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IXMLDOMAttribute_get_value(self: *const T, attributeValue: ?*VARIANT) HRESULT { return @as(*const IXMLDOMAttribute.VTable, @ptrCast(self.vtable)).get_value(@as(*const IXMLDOMAttribute, @ptrCast(self)), attributeValue); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IXMLDOMAttribute_put_value(self: *const T, attributeValue: VARIANT) HRESULT { return @as(*const IXMLDOMAttribute.VTable, @ptrCast(self.vtable)).put_value(@as(*const IXMLDOMAttribute, @ptrCast(self)), attributeValue); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IXMLDOMElement_Value = Guid.initString("2933bf86-7b36-11d2-b20e-00c04f983e60"); pub const IID_IXMLDOMElement = &IID_IXMLDOMElement_Value; pub const IXMLDOMElement = extern struct { pub const VTable = extern struct { base: IXMLDOMNode.VTable, // TODO: this function has a "SpecialName", should Zig do anything with this? get_tagName: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IXMLDOMElement, tagName: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IXMLDOMElement, tagName: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, getAttribute: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IXMLDOMElement, name: ?BSTR, value: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IXMLDOMElement, name: ?BSTR, value: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, setAttribute: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IXMLDOMElement, name: ?BSTR, value: VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IXMLDOMElement, name: ?BSTR, value: VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, removeAttribute: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IXMLDOMElement, name: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IXMLDOMElement, name: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, getAttributeNode: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IXMLDOMElement, name: ?BSTR, attributeNode: ?*?*IXMLDOMAttribute, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IXMLDOMElement, name: ?BSTR, attributeNode: ?*?*IXMLDOMAttribute, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, setAttributeNode: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IXMLDOMElement, DOMAttribute: ?*IXMLDOMAttribute, attributeNode: ?*?*IXMLDOMAttribute, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IXMLDOMElement, DOMAttribute: ?*IXMLDOMAttribute, attributeNode: ?*?*IXMLDOMAttribute, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, removeAttributeNode: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IXMLDOMElement, DOMAttribute: ?*IXMLDOMAttribute, attributeNode: ?*?*IXMLDOMAttribute, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IXMLDOMElement, DOMAttribute: ?*IXMLDOMAttribute, attributeNode: ?*?*IXMLDOMAttribute, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, getElementsByTagName: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IXMLDOMElement, tagName: ?BSTR, resultList: ?*?*IXMLDOMNodeList, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IXMLDOMElement, tagName: ?BSTR, resultList: ?*?*IXMLDOMNodeList, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, normalize: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IXMLDOMElement, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IXMLDOMElement, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IXMLDOMNode.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IXMLDOMElement_get_tagName(self: *const T, tagName: ?*?BSTR) HRESULT { return @as(*const IXMLDOMElement.VTable, @ptrCast(self.vtable)).get_tagName(@as(*const IXMLDOMElement, @ptrCast(self)), tagName); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IXMLDOMElement_getAttribute(self: *const T, name: ?BSTR, value: ?*VARIANT) HRESULT { return @as(*const IXMLDOMElement.VTable, @ptrCast(self.vtable)).getAttribute(@as(*const IXMLDOMElement, @ptrCast(self)), name, value); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IXMLDOMElement_setAttribute(self: *const T, name: ?BSTR, value: VARIANT) HRESULT { return @as(*const IXMLDOMElement.VTable, @ptrCast(self.vtable)).setAttribute(@as(*const IXMLDOMElement, @ptrCast(self)), name, value); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IXMLDOMElement_removeAttribute(self: *const T, name: ?BSTR) HRESULT { return @as(*const IXMLDOMElement.VTable, @ptrCast(self.vtable)).removeAttribute(@as(*const IXMLDOMElement, @ptrCast(self)), name); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IXMLDOMElement_getAttributeNode(self: *const T, name: ?BSTR, attributeNode: ?*?*IXMLDOMAttribute) HRESULT { return @as(*const IXMLDOMElement.VTable, @ptrCast(self.vtable)).getAttributeNode(@as(*const IXMLDOMElement, @ptrCast(self)), name, attributeNode); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IXMLDOMElement_setAttributeNode(self: *const T, DOMAttribute: ?*IXMLDOMAttribute, attributeNode: ?*?*IXMLDOMAttribute) HRESULT { return @as(*const IXMLDOMElement.VTable, @ptrCast(self.vtable)).setAttributeNode(@as(*const IXMLDOMElement, @ptrCast(self)), DOMAttribute, attributeNode); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IXMLDOMElement_removeAttributeNode(self: *const T, DOMAttribute: ?*IXMLDOMAttribute, attributeNode: ?*?*IXMLDOMAttribute) HRESULT { return @as(*const IXMLDOMElement.VTable, @ptrCast(self.vtable)).removeAttributeNode(@as(*const IXMLDOMElement, @ptrCast(self)), DOMAttribute, attributeNode); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IXMLDOMElement_getElementsByTagName(self: *const T, tagName: ?BSTR, resultList: ?*?*IXMLDOMNodeList) HRESULT { return @as(*const IXMLDOMElement.VTable, @ptrCast(self.vtable)).getElementsByTagName(@as(*const IXMLDOMElement, @ptrCast(self)), tagName, resultList); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IXMLDOMElement_normalize(self: *const T) HRESULT { return @as(*const IXMLDOMElement.VTable, @ptrCast(self.vtable)).normalize(@as(*const IXMLDOMElement, @ptrCast(self))); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IXMLDOMText_Value = Guid.initString("2933bf87-7b36-11d2-b20e-00c04f983e60"); pub const IID_IXMLDOMText = &IID_IXMLDOMText_Value; pub const IXMLDOMText = extern struct { pub const VTable = extern struct { base: IXMLDOMCharacterData.VTable, splitText: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IXMLDOMText, offset: i32, rightHandTextNode: ?*?*IXMLDOMText, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IXMLDOMText, offset: i32, rightHandTextNode: ?*?*IXMLDOMText, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IXMLDOMCharacterData.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IXMLDOMText_splitText(self: *const T, offset: i32, rightHandTextNode: ?*?*IXMLDOMText) HRESULT { return @as(*const IXMLDOMText.VTable, @ptrCast(self.vtable)).splitText(@as(*const IXMLDOMText, @ptrCast(self)), offset, rightHandTextNode); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IXMLDOMComment_Value = Guid.initString("2933bf88-7b36-11d2-b20e-00c04f983e60"); pub const IID_IXMLDOMComment = &IID_IXMLDOMComment_Value; pub const IXMLDOMComment = extern struct { pub const VTable = extern struct { base: IXMLDOMCharacterData.VTable, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IXMLDOMCharacterData.MethodMixin(T); }; } pub usingnamespace MethodMixin(@This()); }; const IID_IXMLDOMProcessingInstruction_Value = Guid.initString("2933bf89-7b36-11d2-b20e-00c04f983e60"); pub const IID_IXMLDOMProcessingInstruction = &IID_IXMLDOMProcessingInstruction_Value; pub const IXMLDOMProcessingInstruction = extern struct { pub const VTable = extern struct { base: IXMLDOMNode.VTable, // TODO: this function has a "SpecialName", should Zig do anything with this? get_target: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IXMLDOMProcessingInstruction, name: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IXMLDOMProcessingInstruction, name: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_data: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IXMLDOMProcessingInstruction, value: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IXMLDOMProcessingInstruction, value: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_data: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IXMLDOMProcessingInstruction, value: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IXMLDOMProcessingInstruction, value: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IXMLDOMNode.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IXMLDOMProcessingInstruction_get_target(self: *const T, name: ?*?BSTR) HRESULT { return @as(*const IXMLDOMProcessingInstruction.VTable, @ptrCast(self.vtable)).get_target(@as(*const IXMLDOMProcessingInstruction, @ptrCast(self)), name); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IXMLDOMProcessingInstruction_get_data(self: *const T, value: ?*?BSTR) HRESULT { return @as(*const IXMLDOMProcessingInstruction.VTable, @ptrCast(self.vtable)).get_data(@as(*const IXMLDOMProcessingInstruction, @ptrCast(self)), value); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IXMLDOMProcessingInstruction_put_data(self: *const T, value: ?BSTR) HRESULT { return @as(*const IXMLDOMProcessingInstruction.VTable, @ptrCast(self.vtable)).put_data(@as(*const IXMLDOMProcessingInstruction, @ptrCast(self)), value); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IXMLDOMCDATASection_Value = Guid.initString("2933bf8a-7b36-11d2-b20e-00c04f983e60"); pub const IID_IXMLDOMCDATASection = &IID_IXMLDOMCDATASection_Value; pub const IXMLDOMCDATASection = extern struct { pub const VTable = extern struct { base: IXMLDOMText.VTable, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IXMLDOMText.MethodMixin(T); }; } pub usingnamespace MethodMixin(@This()); }; const IID_IXMLDOMDocumentType_Value = Guid.initString("2933bf8b-7b36-11d2-b20e-00c04f983e60"); pub const IID_IXMLDOMDocumentType = &IID_IXMLDOMDocumentType_Value; pub const IXMLDOMDocumentType = extern struct { pub const VTable = extern struct { base: IXMLDOMNode.VTable, // TODO: this function has a "SpecialName", should Zig do anything with this? get_name: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IXMLDOMDocumentType, rootName: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IXMLDOMDocumentType, rootName: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_entities: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IXMLDOMDocumentType, entityMap: ?*?*IXMLDOMNamedNodeMap, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IXMLDOMDocumentType, entityMap: ?*?*IXMLDOMNamedNodeMap, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_notations: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IXMLDOMDocumentType, notationMap: ?*?*IXMLDOMNamedNodeMap, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IXMLDOMDocumentType, notationMap: ?*?*IXMLDOMNamedNodeMap, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IXMLDOMNode.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IXMLDOMDocumentType_get_name(self: *const T, rootName: ?*?BSTR) HRESULT { return @as(*const IXMLDOMDocumentType.VTable, @ptrCast(self.vtable)).get_name(@as(*const IXMLDOMDocumentType, @ptrCast(self)), rootName); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IXMLDOMDocumentType_get_entities(self: *const T, entityMap: ?*?*IXMLDOMNamedNodeMap) HRESULT { return @as(*const IXMLDOMDocumentType.VTable, @ptrCast(self.vtable)).get_entities(@as(*const IXMLDOMDocumentType, @ptrCast(self)), entityMap); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IXMLDOMDocumentType_get_notations(self: *const T, notationMap: ?*?*IXMLDOMNamedNodeMap) HRESULT { return @as(*const IXMLDOMDocumentType.VTable, @ptrCast(self.vtable)).get_notations(@as(*const IXMLDOMDocumentType, @ptrCast(self)), notationMap); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IXMLDOMNotation_Value = Guid.initString("2933bf8c-7b36-11d2-b20e-00c04f983e60"); pub const IID_IXMLDOMNotation = &IID_IXMLDOMNotation_Value; pub const IXMLDOMNotation = extern struct { pub const VTable = extern struct { base: IXMLDOMNode.VTable, // TODO: this function has a "SpecialName", should Zig do anything with this? get_publicId: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IXMLDOMNotation, publicID: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IXMLDOMNotation, publicID: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_systemId: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IXMLDOMNotation, systemID: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IXMLDOMNotation, systemID: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IXMLDOMNode.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IXMLDOMNotation_get_publicId(self: *const T, publicID: ?*VARIANT) HRESULT { return @as(*const IXMLDOMNotation.VTable, @ptrCast(self.vtable)).get_publicId(@as(*const IXMLDOMNotation, @ptrCast(self)), publicID); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IXMLDOMNotation_get_systemId(self: *const T, systemID: ?*VARIANT) HRESULT { return @as(*const IXMLDOMNotation.VTable, @ptrCast(self.vtable)).get_systemId(@as(*const IXMLDOMNotation, @ptrCast(self)), systemID); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IXMLDOMEntity_Value = Guid.initString("2933bf8d-7b36-11d2-b20e-00c04f983e60"); pub const IID_IXMLDOMEntity = &IID_IXMLDOMEntity_Value; pub const IXMLDOMEntity = extern struct { pub const VTable = extern struct { base: IXMLDOMNode.VTable, // TODO: this function has a "SpecialName", should Zig do anything with this? get_publicId: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IXMLDOMEntity, publicID: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IXMLDOMEntity, publicID: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_systemId: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IXMLDOMEntity, systemID: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IXMLDOMEntity, systemID: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_notationName: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IXMLDOMEntity, name: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IXMLDOMEntity, name: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IXMLDOMNode.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IXMLDOMEntity_get_publicId(self: *const T, publicID: ?*VARIANT) HRESULT { return @as(*const IXMLDOMEntity.VTable, @ptrCast(self.vtable)).get_publicId(@as(*const IXMLDOMEntity, @ptrCast(self)), publicID); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IXMLDOMEntity_get_systemId(self: *const T, systemID: ?*VARIANT) HRESULT { return @as(*const IXMLDOMEntity.VTable, @ptrCast(self.vtable)).get_systemId(@as(*const IXMLDOMEntity, @ptrCast(self)), systemID); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IXMLDOMEntity_get_notationName(self: *const T, name: ?*?BSTR) HRESULT { return @as(*const IXMLDOMEntity.VTable, @ptrCast(self.vtable)).get_notationName(@as(*const IXMLDOMEntity, @ptrCast(self)), name); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IXMLDOMEntityReference_Value = Guid.initString("2933bf8e-7b36-11d2-b20e-00c04f983e60"); pub const IID_IXMLDOMEntityReference = &IID_IXMLDOMEntityReference_Value; pub const IXMLDOMEntityReference = extern struct { pub const VTable = extern struct { base: IXMLDOMNode.VTable, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IXMLDOMNode.MethodMixin(T); }; } pub usingnamespace MethodMixin(@This()); }; const IID_IXMLDOMParseError_Value = Guid.initString("3efaa426-272f-11d2-836f-0000f87a7782"); pub const IID_IXMLDOMParseError = &IID_IXMLDOMParseError_Value; pub const IXMLDOMParseError = extern struct { pub const VTable = extern struct { base: IDispatch.VTable, // TODO: this function has a "SpecialName", should Zig do anything with this? get_errorCode: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IXMLDOMParseError, errorCode: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IXMLDOMParseError, errorCode: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_url: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IXMLDOMParseError, urlString: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IXMLDOMParseError, urlString: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_reason: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IXMLDOMParseError, reasonString: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IXMLDOMParseError, reasonString: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_srcText: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IXMLDOMParseError, sourceString: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IXMLDOMParseError, sourceString: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_line: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IXMLDOMParseError, lineNumber: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IXMLDOMParseError, lineNumber: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_linepos: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IXMLDOMParseError, linePosition: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IXMLDOMParseError, linePosition: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_filepos: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IXMLDOMParseError, filePosition: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IXMLDOMParseError, filePosition: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IDispatch.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IXMLDOMParseError_get_errorCode(self: *const T, errorCode: ?*i32) HRESULT { return @as(*const IXMLDOMParseError.VTable, @ptrCast(self.vtable)).get_errorCode(@as(*const IXMLDOMParseError, @ptrCast(self)), errorCode); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IXMLDOMParseError_get_url(self: *const T, urlString: ?*?BSTR) HRESULT { return @as(*const IXMLDOMParseError.VTable, @ptrCast(self.vtable)).get_url(@as(*const IXMLDOMParseError, @ptrCast(self)), urlString); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IXMLDOMParseError_get_reason(self: *const T, reasonString: ?*?BSTR) HRESULT { return @as(*const IXMLDOMParseError.VTable, @ptrCast(self.vtable)).get_reason(@as(*const IXMLDOMParseError, @ptrCast(self)), reasonString); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IXMLDOMParseError_get_srcText(self: *const T, sourceString: ?*?BSTR) HRESULT { return @as(*const IXMLDOMParseError.VTable, @ptrCast(self.vtable)).get_srcText(@as(*const IXMLDOMParseError, @ptrCast(self)), sourceString); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IXMLDOMParseError_get_line(self: *const T, lineNumber: ?*i32) HRESULT { return @as(*const IXMLDOMParseError.VTable, @ptrCast(self.vtable)).get_line(@as(*const IXMLDOMParseError, @ptrCast(self)), lineNumber); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IXMLDOMParseError_get_linepos(self: *const T, linePosition: ?*i32) HRESULT { return @as(*const IXMLDOMParseError.VTable, @ptrCast(self.vtable)).get_linepos(@as(*const IXMLDOMParseError, @ptrCast(self)), linePosition); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IXMLDOMParseError_get_filepos(self: *const T, filePosition: ?*i32) HRESULT { return @as(*const IXMLDOMParseError.VTable, @ptrCast(self.vtable)).get_filepos(@as(*const IXMLDOMParseError, @ptrCast(self)), filePosition); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IXTLRuntime_Value = Guid.initString("3efaa425-272f-11d2-836f-0000f87a7782"); pub const IID_IXTLRuntime = &IID_IXTLRuntime_Value; pub const IXTLRuntime = extern struct { pub const VTable = extern struct { base: IXMLDOMNode.VTable, uniqueID: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IXTLRuntime, pNode: ?*IXMLDOMNode, pID: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IXTLRuntime, pNode: ?*IXMLDOMNode, pID: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, depth: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IXTLRuntime, pNode: ?*IXMLDOMNode, pDepth: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IXTLRuntime, pNode: ?*IXMLDOMNode, pDepth: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, childNumber: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IXTLRuntime, pNode: ?*IXMLDOMNode, pNumber: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IXTLRuntime, pNode: ?*IXMLDOMNode, pNumber: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, ancestorChildNumber: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IXTLRuntime, bstrNodeName: ?BSTR, pNode: ?*IXMLDOMNode, pNumber: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IXTLRuntime, bstrNodeName: ?BSTR, pNode: ?*IXMLDOMNode, pNumber: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, absoluteChildNumber: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IXTLRuntime, pNode: ?*IXMLDOMNode, pNumber: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IXTLRuntime, pNode: ?*IXMLDOMNode, pNumber: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, formatIndex: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IXTLRuntime, lIndex: i32, bstrFormat: ?BSTR, pbstrFormattedString: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IXTLRuntime, lIndex: i32, bstrFormat: ?BSTR, pbstrFormattedString: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, formatNumber: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IXTLRuntime, dblNumber: f64, bstrFormat: ?BSTR, pbstrFormattedString: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IXTLRuntime, dblNumber: f64, bstrFormat: ?BSTR, pbstrFormattedString: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, formatDate: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IXTLRuntime, varDate: VARIANT, bstrFormat: ?BSTR, varDestLocale: VARIANT, pbstrFormattedString: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IXTLRuntime, varDate: VARIANT, bstrFormat: ?BSTR, varDestLocale: VARIANT, pbstrFormattedString: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, formatTime: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IXTLRuntime, varTime: VARIANT, bstrFormat: ?BSTR, varDestLocale: VARIANT, pbstrFormattedString: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IXTLRuntime, varTime: VARIANT, bstrFormat: ?BSTR, varDestLocale: VARIANT, pbstrFormattedString: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IXMLDOMNode.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IXTLRuntime_uniqueID(self: *const T, pNode: ?*IXMLDOMNode, pID: ?*i32) HRESULT { return @as(*const IXTLRuntime.VTable, @ptrCast(self.vtable)).uniqueID(@as(*const IXTLRuntime, @ptrCast(self)), pNode, pID); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IXTLRuntime_depth(self: *const T, pNode: ?*IXMLDOMNode, pDepth: ?*i32) HRESULT { return @as(*const IXTLRuntime.VTable, @ptrCast(self.vtable)).depth(@as(*const IXTLRuntime, @ptrCast(self)), pNode, pDepth); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IXTLRuntime_childNumber(self: *const T, pNode: ?*IXMLDOMNode, pNumber: ?*i32) HRESULT { return @as(*const IXTLRuntime.VTable, @ptrCast(self.vtable)).childNumber(@as(*const IXTLRuntime, @ptrCast(self)), pNode, pNumber); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IXTLRuntime_ancestorChildNumber(self: *const T, bstrNodeName: ?BSTR, pNode: ?*IXMLDOMNode, pNumber: ?*i32) HRESULT { return @as(*const IXTLRuntime.VTable, @ptrCast(self.vtable)).ancestorChildNumber(@as(*const IXTLRuntime, @ptrCast(self)), bstrNodeName, pNode, pNumber); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IXTLRuntime_absoluteChildNumber(self: *const T, pNode: ?*IXMLDOMNode, pNumber: ?*i32) HRESULT { return @as(*const IXTLRuntime.VTable, @ptrCast(self.vtable)).absoluteChildNumber(@as(*const IXTLRuntime, @ptrCast(self)), pNode, pNumber); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IXTLRuntime_formatIndex(self: *const T, lIndex: i32, bstrFormat: ?BSTR, pbstrFormattedString: ?*?BSTR) HRESULT { return @as(*const IXTLRuntime.VTable, @ptrCast(self.vtable)).formatIndex(@as(*const IXTLRuntime, @ptrCast(self)), lIndex, bstrFormat, pbstrFormattedString); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IXTLRuntime_formatNumber(self: *const T, dblNumber: f64, bstrFormat: ?BSTR, pbstrFormattedString: ?*?BSTR) HRESULT { return @as(*const IXTLRuntime.VTable, @ptrCast(self.vtable)).formatNumber(@as(*const IXTLRuntime, @ptrCast(self)), dblNumber, bstrFormat, pbstrFormattedString); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IXTLRuntime_formatDate(self: *const T, varDate: VARIANT, bstrFormat: ?BSTR, varDestLocale: VARIANT, pbstrFormattedString: ?*?BSTR) HRESULT { return @as(*const IXTLRuntime.VTable, @ptrCast(self.vtable)).formatDate(@as(*const IXTLRuntime, @ptrCast(self)), varDate, bstrFormat, varDestLocale, pbstrFormattedString); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IXTLRuntime_formatTime(self: *const T, varTime: VARIANT, bstrFormat: ?BSTR, varDestLocale: VARIANT, pbstrFormattedString: ?*?BSTR) HRESULT { return @as(*const IXTLRuntime.VTable, @ptrCast(self.vtable)).formatTime(@as(*const IXTLRuntime, @ptrCast(self)), varTime, bstrFormat, varDestLocale, pbstrFormattedString); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_XMLDOMDocumentEvents_Value = Guid.initString("3efaa427-272f-11d2-836f-0000f87a7782"); pub const IID_XMLDOMDocumentEvents = &IID_XMLDOMDocumentEvents_Value; pub const XMLDOMDocumentEvents = extern struct { pub const VTable = extern struct { base: IDispatch.VTable, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IDispatch.MethodMixin(T); }; } pub usingnamespace MethodMixin(@This()); }; const IID_IXMLHttpRequest_Value = Guid.initString("ed8c108d-4349-11d2-91a4-00c04f7969e8"); pub const IID_IXMLHttpRequest = &IID_IXMLHttpRequest_Value; pub const IXMLHttpRequest = extern struct { pub const VTable = extern struct { base: IDispatch.VTable, open: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IXMLHttpRequest, bstrMethod: ?BSTR, bstrUrl: ?BSTR, varAsync: VARIANT, bstrUser: VARIANT, bstrPassword: VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IXMLHttpRequest, bstrMethod: ?BSTR, bstrUrl: ?BSTR, varAsync: VARIANT, bstrUser: VARIANT, bstrPassword: VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, setRequestHeader: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IXMLHttpRequest, bstrHeader: ?BSTR, bstrValue: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IXMLHttpRequest, bstrHeader: ?BSTR, bstrValue: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, getResponseHeader: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IXMLHttpRequest, bstrHeader: ?BSTR, pbstrValue: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IXMLHttpRequest, bstrHeader: ?BSTR, pbstrValue: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, getAllResponseHeaders: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IXMLHttpRequest, pbstrHeaders: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IXMLHttpRequest, pbstrHeaders: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, send: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IXMLHttpRequest, varBody: VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IXMLHttpRequest, varBody: VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, abort: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IXMLHttpRequest, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IXMLHttpRequest, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_status: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IXMLHttpRequest, plStatus: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IXMLHttpRequest, plStatus: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_statusText: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IXMLHttpRequest, pbstrStatus: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IXMLHttpRequest, pbstrStatus: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_responseXML: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IXMLHttpRequest, ppBody: ?*?*IDispatch, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IXMLHttpRequest, ppBody: ?*?*IDispatch, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_responseText: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IXMLHttpRequest, pbstrBody: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IXMLHttpRequest, pbstrBody: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_responseBody: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IXMLHttpRequest, pvarBody: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IXMLHttpRequest, pvarBody: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_responseStream: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IXMLHttpRequest, pvarBody: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IXMLHttpRequest, pvarBody: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_readyState: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IXMLHttpRequest, plState: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IXMLHttpRequest, plState: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_onreadystatechange: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IXMLHttpRequest, pReadyStateSink: ?*IDispatch, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IXMLHttpRequest, pReadyStateSink: ?*IDispatch, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IDispatch.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IXMLHttpRequest_open(self: *const T, bstrMethod: ?BSTR, bstrUrl: ?BSTR, varAsync: VARIANT, bstrUser: VARIANT, bstrPassword: VARIANT) HRESULT { return @as(*const IXMLHttpRequest.VTable, @ptrCast(self.vtable)).open(@as(*const IXMLHttpRequest, @ptrCast(self)), bstrMethod, bstrUrl, varAsync, bstrUser, bstrPassword); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IXMLHttpRequest_setRequestHeader(self: *const T, bstrHeader: ?BSTR, bstrValue: ?BSTR) HRESULT { return @as(*const IXMLHttpRequest.VTable, @ptrCast(self.vtable)).setRequestHeader(@as(*const IXMLHttpRequest, @ptrCast(self)), bstrHeader, bstrValue); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IXMLHttpRequest_getResponseHeader(self: *const T, bstrHeader: ?BSTR, pbstrValue: ?*?BSTR) HRESULT { return @as(*const IXMLHttpRequest.VTable, @ptrCast(self.vtable)).getResponseHeader(@as(*const IXMLHttpRequest, @ptrCast(self)), bstrHeader, pbstrValue); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IXMLHttpRequest_getAllResponseHeaders(self: *const T, pbstrHeaders: ?*?BSTR) HRESULT { return @as(*const IXMLHttpRequest.VTable, @ptrCast(self.vtable)).getAllResponseHeaders(@as(*const IXMLHttpRequest, @ptrCast(self)), pbstrHeaders); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IXMLHttpRequest_send(self: *const T, varBody: VARIANT) HRESULT { return @as(*const IXMLHttpRequest.VTable, @ptrCast(self.vtable)).send(@as(*const IXMLHttpRequest, @ptrCast(self)), varBody); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IXMLHttpRequest_abort(self: *const T) HRESULT { return @as(*const IXMLHttpRequest.VTable, @ptrCast(self.vtable)).abort(@as(*const IXMLHttpRequest, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IXMLHttpRequest_get_status(self: *const T, plStatus: ?*i32) HRESULT { return @as(*const IXMLHttpRequest.VTable, @ptrCast(self.vtable)).get_status(@as(*const IXMLHttpRequest, @ptrCast(self)), plStatus); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IXMLHttpRequest_get_statusText(self: *const T, pbstrStatus: ?*?BSTR) HRESULT { return @as(*const IXMLHttpRequest.VTable, @ptrCast(self.vtable)).get_statusText(@as(*const IXMLHttpRequest, @ptrCast(self)), pbstrStatus); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IXMLHttpRequest_get_responseXML(self: *const T, ppBody: ?*?*IDispatch) HRESULT { return @as(*const IXMLHttpRequest.VTable, @ptrCast(self.vtable)).get_responseXML(@as(*const IXMLHttpRequest, @ptrCast(self)), ppBody); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IXMLHttpRequest_get_responseText(self: *const T, pbstrBody: ?*?BSTR) HRESULT { return @as(*const IXMLHttpRequest.VTable, @ptrCast(self.vtable)).get_responseText(@as(*const IXMLHttpRequest, @ptrCast(self)), pbstrBody); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IXMLHttpRequest_get_responseBody(self: *const T, pvarBody: ?*VARIANT) HRESULT { return @as(*const IXMLHttpRequest.VTable, @ptrCast(self.vtable)).get_responseBody(@as(*const IXMLHttpRequest, @ptrCast(self)), pvarBody); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IXMLHttpRequest_get_responseStream(self: *const T, pvarBody: ?*VARIANT) HRESULT { return @as(*const IXMLHttpRequest.VTable, @ptrCast(self.vtable)).get_responseStream(@as(*const IXMLHttpRequest, @ptrCast(self)), pvarBody); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IXMLHttpRequest_get_readyState(self: *const T, plState: ?*i32) HRESULT { return @as(*const IXMLHttpRequest.VTable, @ptrCast(self.vtable)).get_readyState(@as(*const IXMLHttpRequest, @ptrCast(self)), plState); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IXMLHttpRequest_put_onreadystatechange(self: *const T, pReadyStateSink: ?*IDispatch) HRESULT { return @as(*const IXMLHttpRequest.VTable, @ptrCast(self.vtable)).put_onreadystatechange(@as(*const IXMLHttpRequest, @ptrCast(self)), pReadyStateSink); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IXMLDSOControl_Value = Guid.initString("310afa62-0575-11d2-9ca9-0060b0ec3d39"); pub const IID_IXMLDSOControl = &IID_IXMLDSOControl_Value; pub const IXMLDSOControl = extern struct { pub const VTable = extern struct { base: IDispatch.VTable, // TODO: this function has a "SpecialName", should Zig do anything with this? get_XMLDocument: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IXMLDSOControl, ppDoc: ?*?*IXMLDOMDocument, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IXMLDSOControl, ppDoc: ?*?*IXMLDOMDocument, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_XMLDocument: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IXMLDSOControl, ppDoc: ?*IXMLDOMDocument, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IXMLDSOControl, ppDoc: ?*IXMLDOMDocument, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_JavaDSOCompatible: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IXMLDSOControl, fJavaDSOCompatible: ?*BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IXMLDSOControl, fJavaDSOCompatible: ?*BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_JavaDSOCompatible: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IXMLDSOControl, fJavaDSOCompatible: BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IXMLDSOControl, fJavaDSOCompatible: BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_readyState: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IXMLDSOControl, state: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IXMLDSOControl, state: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IDispatch.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IXMLDSOControl_get_XMLDocument(self: *const T, ppDoc: ?*?*IXMLDOMDocument) HRESULT { return @as(*const IXMLDSOControl.VTable, @ptrCast(self.vtable)).get_XMLDocument(@as(*const IXMLDSOControl, @ptrCast(self)), ppDoc); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IXMLDSOControl_put_XMLDocument(self: *const T, ppDoc: ?*IXMLDOMDocument) HRESULT { return @as(*const IXMLDSOControl.VTable, @ptrCast(self.vtable)).put_XMLDocument(@as(*const IXMLDSOControl, @ptrCast(self)), ppDoc); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IXMLDSOControl_get_JavaDSOCompatible(self: *const T, fJavaDSOCompatible: ?*BOOL) HRESULT { return @as(*const IXMLDSOControl.VTable, @ptrCast(self.vtable)).get_JavaDSOCompatible(@as(*const IXMLDSOControl, @ptrCast(self)), fJavaDSOCompatible); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IXMLDSOControl_put_JavaDSOCompatible(self: *const T, fJavaDSOCompatible: BOOL) HRESULT { return @as(*const IXMLDSOControl.VTable, @ptrCast(self.vtable)).put_JavaDSOCompatible(@as(*const IXMLDSOControl, @ptrCast(self)), fJavaDSOCompatible); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IXMLDSOControl_get_readyState(self: *const T, state: ?*i32) HRESULT { return @as(*const IXMLDSOControl.VTable, @ptrCast(self.vtable)).get_readyState(@as(*const IXMLDSOControl, @ptrCast(self)), state); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IXMLElementCollection_Value = Guid.initString("65725580-9b5d-11d0-9bfe-00c04fc99c8e"); pub const IID_IXMLElementCollection = &IID_IXMLElementCollection_Value; pub const IXMLElementCollection = extern struct { pub const VTable = extern struct { base: IDispatch.VTable, // TODO: this function has a "SpecialName", should Zig do anything with this? put_length: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IXMLElementCollection, v: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IXMLElementCollection, v: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_length: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IXMLElementCollection, p: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IXMLElementCollection, p: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get__newEnum: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IXMLElementCollection, ppUnk: ?*?*IUnknown, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IXMLElementCollection, ppUnk: ?*?*IUnknown, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, item: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IXMLElementCollection, var1: VARIANT, var2: VARIANT, ppDisp: ?*?*IDispatch, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IXMLElementCollection, var1: VARIANT, var2: VARIANT, ppDisp: ?*?*IDispatch, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IDispatch.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IXMLElementCollection_put_length(self: *const T, v: i32) HRESULT { return @as(*const IXMLElementCollection.VTable, @ptrCast(self.vtable)).put_length(@as(*const IXMLElementCollection, @ptrCast(self)), v); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IXMLElementCollection_get_length(self: *const T, p: ?*i32) HRESULT { return @as(*const IXMLElementCollection.VTable, @ptrCast(self.vtable)).get_length(@as(*const IXMLElementCollection, @ptrCast(self)), p); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IXMLElementCollection_get__newEnum(self: *const T, ppUnk: ?*?*IUnknown) HRESULT { return @as(*const IXMLElementCollection.VTable, @ptrCast(self.vtable)).get__newEnum(@as(*const IXMLElementCollection, @ptrCast(self)), ppUnk); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IXMLElementCollection_item(self: *const T, var1: VARIANT, var2: VARIANT, ppDisp: ?*?*IDispatch) HRESULT { return @as(*const IXMLElementCollection.VTable, @ptrCast(self.vtable)).item(@as(*const IXMLElementCollection, @ptrCast(self)), var1, var2, ppDisp); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IXMLDocument_Value = Guid.initString("f52e2b61-18a1-11d1-b105-00805f49916b"); pub const IID_IXMLDocument = &IID_IXMLDocument_Value; pub const IXMLDocument = extern struct { pub const VTable = extern struct { base: IDispatch.VTable, // TODO: this function has a "SpecialName", should Zig do anything with this? get_root: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IXMLDocument, p: ?*?*IXMLElement, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IXMLDocument, p: ?*?*IXMLElement, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_fileSize: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IXMLDocument, p: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IXMLDocument, p: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_fileModifiedDate: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IXMLDocument, p: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IXMLDocument, p: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_fileUpdatedDate: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IXMLDocument, p: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IXMLDocument, p: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_URL: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IXMLDocument, p: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IXMLDocument, p: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_URL: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IXMLDocument, p: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IXMLDocument, p: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_mimeType: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IXMLDocument, p: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IXMLDocument, p: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_readyState: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IXMLDocument, pl: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IXMLDocument, pl: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_charset: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IXMLDocument, p: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IXMLDocument, p: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_charset: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IXMLDocument, p: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IXMLDocument, p: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_version: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IXMLDocument, p: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IXMLDocument, p: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_doctype: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IXMLDocument, p: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IXMLDocument, p: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_dtdURL: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IXMLDocument, p: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IXMLDocument, p: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, createElement: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IXMLDocument, vType: VARIANT, var1: VARIANT, ppElem: ?*?*IXMLElement, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IXMLDocument, vType: VARIANT, var1: VARIANT, ppElem: ?*?*IXMLElement, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IDispatch.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IXMLDocument_get_root(self: *const T, p: ?*?*IXMLElement) HRESULT { return @as(*const IXMLDocument.VTable, @ptrCast(self.vtable)).get_root(@as(*const IXMLDocument, @ptrCast(self)), p); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IXMLDocument_get_fileSize(self: *const T, p: ?*?BSTR) HRESULT { return @as(*const IXMLDocument.VTable, @ptrCast(self.vtable)).get_fileSize(@as(*const IXMLDocument, @ptrCast(self)), p); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IXMLDocument_get_fileModifiedDate(self: *const T, p: ?*?BSTR) HRESULT { return @as(*const IXMLDocument.VTable, @ptrCast(self.vtable)).get_fileModifiedDate(@as(*const IXMLDocument, @ptrCast(self)), p); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IXMLDocument_get_fileUpdatedDate(self: *const T, p: ?*?BSTR) HRESULT { return @as(*const IXMLDocument.VTable, @ptrCast(self.vtable)).get_fileUpdatedDate(@as(*const IXMLDocument, @ptrCast(self)), p); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IXMLDocument_get_URL(self: *const T, p: ?*?BSTR) HRESULT { return @as(*const IXMLDocument.VTable, @ptrCast(self.vtable)).get_URL(@as(*const IXMLDocument, @ptrCast(self)), p); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IXMLDocument_put_URL(self: *const T, p: ?BSTR) HRESULT { return @as(*const IXMLDocument.VTable, @ptrCast(self.vtable)).put_URL(@as(*const IXMLDocument, @ptrCast(self)), p); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IXMLDocument_get_mimeType(self: *const T, p: ?*?BSTR) HRESULT { return @as(*const IXMLDocument.VTable, @ptrCast(self.vtable)).get_mimeType(@as(*const IXMLDocument, @ptrCast(self)), p); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IXMLDocument_get_readyState(self: *const T, pl: ?*i32) HRESULT { return @as(*const IXMLDocument.VTable, @ptrCast(self.vtable)).get_readyState(@as(*const IXMLDocument, @ptrCast(self)), pl); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IXMLDocument_get_charset(self: *const T, p: ?*?BSTR) HRESULT { return @as(*const IXMLDocument.VTable, @ptrCast(self.vtable)).get_charset(@as(*const IXMLDocument, @ptrCast(self)), p); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IXMLDocument_put_charset(self: *const T, p: ?BSTR) HRESULT { return @as(*const IXMLDocument.VTable, @ptrCast(self.vtable)).put_charset(@as(*const IXMLDocument, @ptrCast(self)), p); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IXMLDocument_get_version(self: *const T, p: ?*?BSTR) HRESULT { return @as(*const IXMLDocument.VTable, @ptrCast(self.vtable)).get_version(@as(*const IXMLDocument, @ptrCast(self)), p); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IXMLDocument_get_doctype(self: *const T, p: ?*?BSTR) HRESULT { return @as(*const IXMLDocument.VTable, @ptrCast(self.vtable)).get_doctype(@as(*const IXMLDocument, @ptrCast(self)), p); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IXMLDocument_get_dtdURL(self: *const T, p: ?*?BSTR) HRESULT { return @as(*const IXMLDocument.VTable, @ptrCast(self.vtable)).get_dtdURL(@as(*const IXMLDocument, @ptrCast(self)), p); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IXMLDocument_createElement(self: *const T, vType: VARIANT, var1: VARIANT, ppElem: ?*?*IXMLElement) HRESULT { return @as(*const IXMLDocument.VTable, @ptrCast(self.vtable)).createElement(@as(*const IXMLDocument, @ptrCast(self)), vType, var1, ppElem); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IXMLDocument2_Value = Guid.initString("2b8de2fe-8d2d-11d1-b2fc-00c04fd915a9"); pub const IID_IXMLDocument2 = &IID_IXMLDocument2_Value; pub const IXMLDocument2 = extern struct { pub const VTable = extern struct { base: IDispatch.VTable, // TODO: this function has a "SpecialName", should Zig do anything with this? get_root: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IXMLDocument2, p: ?*?*IXMLElement2, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IXMLDocument2, p: ?*?*IXMLElement2, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_fileSize: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IXMLDocument2, p: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IXMLDocument2, p: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_fileModifiedDate: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IXMLDocument2, p: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IXMLDocument2, p: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_fileUpdatedDate: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IXMLDocument2, p: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IXMLDocument2, p: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_URL: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IXMLDocument2, p: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IXMLDocument2, p: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_URL: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IXMLDocument2, p: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IXMLDocument2, p: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_mimeType: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IXMLDocument2, p: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IXMLDocument2, p: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_readyState: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IXMLDocument2, pl: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IXMLDocument2, pl: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_charset: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IXMLDocument2, p: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IXMLDocument2, p: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_charset: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IXMLDocument2, p: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IXMLDocument2, p: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_version: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IXMLDocument2, p: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IXMLDocument2, p: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_doctype: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IXMLDocument2, p: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IXMLDocument2, p: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_dtdURL: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IXMLDocument2, p: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IXMLDocument2, p: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, createElement: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IXMLDocument2, vType: VARIANT, var1: VARIANT, ppElem: ?*?*IXMLElement2, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IXMLDocument2, vType: VARIANT, var1: VARIANT, ppElem: ?*?*IXMLElement2, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_async: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IXMLDocument2, pf: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IXMLDocument2, pf: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_async: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IXMLDocument2, f: i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IXMLDocument2, f: i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IDispatch.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IXMLDocument2_get_root(self: *const T, p: ?*?*IXMLElement2) HRESULT { return @as(*const IXMLDocument2.VTable, @ptrCast(self.vtable)).get_root(@as(*const IXMLDocument2, @ptrCast(self)), p); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IXMLDocument2_get_fileSize(self: *const T, p: ?*?BSTR) HRESULT { return @as(*const IXMLDocument2.VTable, @ptrCast(self.vtable)).get_fileSize(@as(*const IXMLDocument2, @ptrCast(self)), p); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IXMLDocument2_get_fileModifiedDate(self: *const T, p: ?*?BSTR) HRESULT { return @as(*const IXMLDocument2.VTable, @ptrCast(self.vtable)).get_fileModifiedDate(@as(*const IXMLDocument2, @ptrCast(self)), p); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IXMLDocument2_get_fileUpdatedDate(self: *const T, p: ?*?BSTR) HRESULT { return @as(*const IXMLDocument2.VTable, @ptrCast(self.vtable)).get_fileUpdatedDate(@as(*const IXMLDocument2, @ptrCast(self)), p); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IXMLDocument2_get_URL(self: *const T, p: ?*?BSTR) HRESULT { return @as(*const IXMLDocument2.VTable, @ptrCast(self.vtable)).get_URL(@as(*const IXMLDocument2, @ptrCast(self)), p); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IXMLDocument2_put_URL(self: *const T, p: ?BSTR) HRESULT { return @as(*const IXMLDocument2.VTable, @ptrCast(self.vtable)).put_URL(@as(*const IXMLDocument2, @ptrCast(self)), p); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IXMLDocument2_get_mimeType(self: *const T, p: ?*?BSTR) HRESULT { return @as(*const IXMLDocument2.VTable, @ptrCast(self.vtable)).get_mimeType(@as(*const IXMLDocument2, @ptrCast(self)), p); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IXMLDocument2_get_readyState(self: *const T, pl: ?*i32) HRESULT { return @as(*const IXMLDocument2.VTable, @ptrCast(self.vtable)).get_readyState(@as(*const IXMLDocument2, @ptrCast(self)), pl); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IXMLDocument2_get_charset(self: *const T, p: ?*?BSTR) HRESULT { return @as(*const IXMLDocument2.VTable, @ptrCast(self.vtable)).get_charset(@as(*const IXMLDocument2, @ptrCast(self)), p); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IXMLDocument2_put_charset(self: *const T, p: ?BSTR) HRESULT { return @as(*const IXMLDocument2.VTable, @ptrCast(self.vtable)).put_charset(@as(*const IXMLDocument2, @ptrCast(self)), p); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IXMLDocument2_get_version(self: *const T, p: ?*?BSTR) HRESULT { return @as(*const IXMLDocument2.VTable, @ptrCast(self.vtable)).get_version(@as(*const IXMLDocument2, @ptrCast(self)), p); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IXMLDocument2_get_doctype(self: *const T, p: ?*?BSTR) HRESULT { return @as(*const IXMLDocument2.VTable, @ptrCast(self.vtable)).get_doctype(@as(*const IXMLDocument2, @ptrCast(self)), p); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IXMLDocument2_get_dtdURL(self: *const T, p: ?*?BSTR) HRESULT { return @as(*const IXMLDocument2.VTable, @ptrCast(self.vtable)).get_dtdURL(@as(*const IXMLDocument2, @ptrCast(self)), p); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IXMLDocument2_createElement(self: *const T, vType: VARIANT, var1: VARIANT, ppElem: ?*?*IXMLElement2) HRESULT { return @as(*const IXMLDocument2.VTable, @ptrCast(self.vtable)).createElement(@as(*const IXMLDocument2, @ptrCast(self)), vType, var1, ppElem); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IXMLDocument2_get_async(self: *const T, pf: ?*i16) HRESULT { return @as(*const IXMLDocument2.VTable, @ptrCast(self.vtable)).get_async(@as(*const IXMLDocument2, @ptrCast(self)), pf); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IXMLDocument2_put_async(self: *const T, f: i16) HRESULT { return @as(*const IXMLDocument2.VTable, @ptrCast(self.vtable)).put_async(@as(*const IXMLDocument2, @ptrCast(self)), f); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IXMLElement_Value = Guid.initString("3f7f31ac-e15f-11d0-9c25-00c04fc99c8e"); pub const IID_IXMLElement = &IID_IXMLElement_Value; pub const IXMLElement = extern struct { pub const VTable = extern struct { base: IDispatch.VTable, // TODO: this function has a "SpecialName", should Zig do anything with this? get_tagName: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IXMLElement, p: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IXMLElement, p: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_tagName: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IXMLElement, p: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IXMLElement, p: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_parent: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IXMLElement, ppParent: ?*?*IXMLElement, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IXMLElement, ppParent: ?*?*IXMLElement, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, setAttribute: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IXMLElement, strPropertyName: ?BSTR, PropertyValue: VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IXMLElement, strPropertyName: ?BSTR, PropertyValue: VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, getAttribute: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IXMLElement, strPropertyName: ?BSTR, PropertyValue: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IXMLElement, strPropertyName: ?BSTR, PropertyValue: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, removeAttribute: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IXMLElement, strPropertyName: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IXMLElement, strPropertyName: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_children: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IXMLElement, pp: ?*?*IXMLElementCollection, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IXMLElement, pp: ?*?*IXMLElementCollection, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_type: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IXMLElement, plType: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IXMLElement, plType: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_text: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IXMLElement, p: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IXMLElement, p: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_text: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IXMLElement, p: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IXMLElement, p: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, addChild: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IXMLElement, pChildElem: ?*IXMLElement, lIndex: i32, lReserved: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IXMLElement, pChildElem: ?*IXMLElement, lIndex: i32, lReserved: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, removeChild: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IXMLElement, pChildElem: ?*IXMLElement, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IXMLElement, pChildElem: ?*IXMLElement, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IDispatch.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IXMLElement_get_tagName(self: *const T, p: ?*?BSTR) HRESULT { return @as(*const IXMLElement.VTable, @ptrCast(self.vtable)).get_tagName(@as(*const IXMLElement, @ptrCast(self)), p); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IXMLElement_put_tagName(self: *const T, p: ?BSTR) HRESULT { return @as(*const IXMLElement.VTable, @ptrCast(self.vtable)).put_tagName(@as(*const IXMLElement, @ptrCast(self)), p); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IXMLElement_get_parent(self: *const T, ppParent: ?*?*IXMLElement) HRESULT { return @as(*const IXMLElement.VTable, @ptrCast(self.vtable)).get_parent(@as(*const IXMLElement, @ptrCast(self)), ppParent); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IXMLElement_setAttribute(self: *const T, strPropertyName: ?BSTR, PropertyValue: VARIANT) HRESULT { return @as(*const IXMLElement.VTable, @ptrCast(self.vtable)).setAttribute(@as(*const IXMLElement, @ptrCast(self)), strPropertyName, PropertyValue); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IXMLElement_getAttribute(self: *const T, strPropertyName: ?BSTR, PropertyValue: ?*VARIANT) HRESULT { return @as(*const IXMLElement.VTable, @ptrCast(self.vtable)).getAttribute(@as(*const IXMLElement, @ptrCast(self)), strPropertyName, PropertyValue); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IXMLElement_removeAttribute(self: *const T, strPropertyName: ?BSTR) HRESULT { return @as(*const IXMLElement.VTable, @ptrCast(self.vtable)).removeAttribute(@as(*const IXMLElement, @ptrCast(self)), strPropertyName); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IXMLElement_get_children(self: *const T, pp: ?*?*IXMLElementCollection) HRESULT { return @as(*const IXMLElement.VTable, @ptrCast(self.vtable)).get_children(@as(*const IXMLElement, @ptrCast(self)), pp); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IXMLElement_get_type(self: *const T, plType: ?*i32) HRESULT { return @as(*const IXMLElement.VTable, @ptrCast(self.vtable)).get_type(@as(*const IXMLElement, @ptrCast(self)), plType); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IXMLElement_get_text(self: *const T, p: ?*?BSTR) HRESULT { return @as(*const IXMLElement.VTable, @ptrCast(self.vtable)).get_text(@as(*const IXMLElement, @ptrCast(self)), p); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IXMLElement_put_text(self: *const T, p: ?BSTR) HRESULT { return @as(*const IXMLElement.VTable, @ptrCast(self.vtable)).put_text(@as(*const IXMLElement, @ptrCast(self)), p); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IXMLElement_addChild(self: *const T, pChildElem: ?*IXMLElement, lIndex: i32, lReserved: i32) HRESULT { return @as(*const IXMLElement.VTable, @ptrCast(self.vtable)).addChild(@as(*const IXMLElement, @ptrCast(self)), pChildElem, lIndex, lReserved); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IXMLElement_removeChild(self: *const T, pChildElem: ?*IXMLElement) HRESULT { return @as(*const IXMLElement.VTable, @ptrCast(self.vtable)).removeChild(@as(*const IXMLElement, @ptrCast(self)), pChildElem); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IXMLElement2_Value = Guid.initString("2b8de2ff-8d2d-11d1-b2fc-00c04fd915a9"); pub const IID_IXMLElement2 = &IID_IXMLElement2_Value; pub const IXMLElement2 = extern struct { pub const VTable = extern struct { base: IDispatch.VTable, // TODO: this function has a "SpecialName", should Zig do anything with this? get_tagName: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IXMLElement2, p: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IXMLElement2, p: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_tagName: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IXMLElement2, p: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IXMLElement2, p: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_parent: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IXMLElement2, ppParent: ?*?*IXMLElement2, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IXMLElement2, ppParent: ?*?*IXMLElement2, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, setAttribute: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IXMLElement2, strPropertyName: ?BSTR, PropertyValue: VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IXMLElement2, strPropertyName: ?BSTR, PropertyValue: VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, getAttribute: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IXMLElement2, strPropertyName: ?BSTR, PropertyValue: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IXMLElement2, strPropertyName: ?BSTR, PropertyValue: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, removeAttribute: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IXMLElement2, strPropertyName: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IXMLElement2, strPropertyName: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_children: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IXMLElement2, pp: ?*?*IXMLElementCollection, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IXMLElement2, pp: ?*?*IXMLElementCollection, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_type: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IXMLElement2, plType: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IXMLElement2, plType: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_text: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IXMLElement2, p: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IXMLElement2, p: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_text: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IXMLElement2, p: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IXMLElement2, p: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, addChild: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IXMLElement2, pChildElem: ?*IXMLElement2, lIndex: i32, lReserved: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IXMLElement2, pChildElem: ?*IXMLElement2, lIndex: i32, lReserved: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, removeChild: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IXMLElement2, pChildElem: ?*IXMLElement2, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IXMLElement2, pChildElem: ?*IXMLElement2, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_attributes: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IXMLElement2, pp: ?*?*IXMLElementCollection, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IXMLElement2, pp: ?*?*IXMLElementCollection, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IDispatch.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IXMLElement2_get_tagName(self: *const T, p: ?*?BSTR) HRESULT { return @as(*const IXMLElement2.VTable, @ptrCast(self.vtable)).get_tagName(@as(*const IXMLElement2, @ptrCast(self)), p); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IXMLElement2_put_tagName(self: *const T, p: ?BSTR) HRESULT { return @as(*const IXMLElement2.VTable, @ptrCast(self.vtable)).put_tagName(@as(*const IXMLElement2, @ptrCast(self)), p); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IXMLElement2_get_parent(self: *const T, ppParent: ?*?*IXMLElement2) HRESULT { return @as(*const IXMLElement2.VTable, @ptrCast(self.vtable)).get_parent(@as(*const IXMLElement2, @ptrCast(self)), ppParent); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IXMLElement2_setAttribute(self: *const T, strPropertyName: ?BSTR, PropertyValue: VARIANT) HRESULT { return @as(*const IXMLElement2.VTable, @ptrCast(self.vtable)).setAttribute(@as(*const IXMLElement2, @ptrCast(self)), strPropertyName, PropertyValue); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IXMLElement2_getAttribute(self: *const T, strPropertyName: ?BSTR, PropertyValue: ?*VARIANT) HRESULT { return @as(*const IXMLElement2.VTable, @ptrCast(self.vtable)).getAttribute(@as(*const IXMLElement2, @ptrCast(self)), strPropertyName, PropertyValue); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IXMLElement2_removeAttribute(self: *const T, strPropertyName: ?BSTR) HRESULT { return @as(*const IXMLElement2.VTable, @ptrCast(self.vtable)).removeAttribute(@as(*const IXMLElement2, @ptrCast(self)), strPropertyName); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IXMLElement2_get_children(self: *const T, pp: ?*?*IXMLElementCollection) HRESULT { return @as(*const IXMLElement2.VTable, @ptrCast(self.vtable)).get_children(@as(*const IXMLElement2, @ptrCast(self)), pp); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IXMLElement2_get_type(self: *const T, plType: ?*i32) HRESULT { return @as(*const IXMLElement2.VTable, @ptrCast(self.vtable)).get_type(@as(*const IXMLElement2, @ptrCast(self)), plType); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IXMLElement2_get_text(self: *const T, p: ?*?BSTR) HRESULT { return @as(*const IXMLElement2.VTable, @ptrCast(self.vtable)).get_text(@as(*const IXMLElement2, @ptrCast(self)), p); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IXMLElement2_put_text(self: *const T, p: ?BSTR) HRESULT { return @as(*const IXMLElement2.VTable, @ptrCast(self.vtable)).put_text(@as(*const IXMLElement2, @ptrCast(self)), p); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IXMLElement2_addChild(self: *const T, pChildElem: ?*IXMLElement2, lIndex: i32, lReserved: i32) HRESULT { return @as(*const IXMLElement2.VTable, @ptrCast(self.vtable)).addChild(@as(*const IXMLElement2, @ptrCast(self)), pChildElem, lIndex, lReserved); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IXMLElement2_removeChild(self: *const T, pChildElem: ?*IXMLElement2) HRESULT { return @as(*const IXMLElement2.VTable, @ptrCast(self.vtable)).removeChild(@as(*const IXMLElement2, @ptrCast(self)), pChildElem); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IXMLElement2_get_attributes(self: *const T, pp: ?*?*IXMLElementCollection) HRESULT { return @as(*const IXMLElement2.VTable, @ptrCast(self.vtable)).get_attributes(@as(*const IXMLElement2, @ptrCast(self)), pp); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IXMLAttribute_Value = Guid.initString("d4d4a0fc-3b73-11d1-b2b4-00c04fb92596"); pub const IID_IXMLAttribute = &IID_IXMLAttribute_Value; pub const IXMLAttribute = extern struct { pub const VTable = extern struct { base: IDispatch.VTable, // TODO: this function has a "SpecialName", should Zig do anything with this? get_name: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IXMLAttribute, n: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IXMLAttribute, n: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_value: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IXMLAttribute, v: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IXMLAttribute, v: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IDispatch.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IXMLAttribute_get_name(self: *const T, n: ?*?BSTR) HRESULT { return @as(*const IXMLAttribute.VTable, @ptrCast(self.vtable)).get_name(@as(*const IXMLAttribute, @ptrCast(self)), n); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IXMLAttribute_get_value(self: *const T, v: ?*?BSTR) HRESULT { return @as(*const IXMLAttribute.VTable, @ptrCast(self.vtable)).get_value(@as(*const IXMLAttribute, @ptrCast(self)), v); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IXMLError_Value = Guid.initString("948c5ad3-c58d-11d0-9c0b-00c04fc99c8e"); pub const IID_IXMLError = &IID_IXMLError_Value; pub const IXMLError = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, GetErrorInfo: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IXMLError, pErrorReturn: ?*XML_ERROR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IXMLError, pErrorReturn: ?*XML_ERROR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IXMLError_GetErrorInfo(self: *const T, pErrorReturn: ?*XML_ERROR) HRESULT { return @as(*const IXMLError.VTable, @ptrCast(self.vtable)).GetErrorInfo(@as(*const IXMLError, @ptrCast(self)), pErrorReturn); } }; } pub usingnamespace MethodMixin(@This()); }; const CLSID_DOMDocument60_Value = Guid.initString("88d96a05-f192-11d4-a65f-0040963251e5"); pub const CLSID_DOMDocument60 = &CLSID_DOMDocument60_Value; const CLSID_FreeThreadedDOMDocument60_Value = Guid.initString("88d96a06-f192-11d4-a65f-0040963251e5"); pub const CLSID_FreeThreadedDOMDocument60 = &CLSID_FreeThreadedDOMDocument60_Value; const CLSID_XMLSchemaCache60_Value = Guid.initString("88d96a07-f192-11d4-a65f-0040963251e5"); pub const CLSID_XMLSchemaCache60 = &CLSID_XMLSchemaCache60_Value; const CLSID_XSLTemplate60_Value = Guid.initString("88d96a08-f192-11d4-a65f-0040963251e5"); pub const CLSID_XSLTemplate60 = &CLSID_XSLTemplate60_Value; const CLSID_XMLHTTP60_Value = Guid.initString("88d96a0a-f192-11d4-a65f-0040963251e5"); pub const CLSID_XMLHTTP60 = &CLSID_XMLHTTP60_Value; const CLSID_FreeThreadedXMLHTTP60_Value = Guid.initString("88d96a09-f192-11d4-a65f-0040963251e5"); pub const CLSID_FreeThreadedXMLHTTP60 = &CLSID_FreeThreadedXMLHTTP60_Value; const CLSID_ServerXMLHTTP60_Value = Guid.initString("88d96a0b-f192-11d4-a65f-0040963251e5"); pub const CLSID_ServerXMLHTTP60 = &CLSID_ServerXMLHTTP60_Value; const CLSID_SAXXMLReader60_Value = Guid.initString("88d96a0c-f192-11d4-a65f-0040963251e5"); pub const CLSID_SAXXMLReader60 = &CLSID_SAXXMLReader60_Value; const CLSID_MXXMLWriter60_Value = Guid.initString("88d96a0f-f192-11d4-a65f-0040963251e5"); pub const CLSID_MXXMLWriter60 = &CLSID_MXXMLWriter60_Value; const CLSID_MXHTMLWriter60_Value = Guid.initString("88d96a10-f192-11d4-a65f-0040963251e5"); pub const CLSID_MXHTMLWriter60 = &CLSID_MXHTMLWriter60_Value; const CLSID_SAXAttributes60_Value = Guid.initString("88d96a0e-f192-11d4-a65f-0040963251e5"); pub const CLSID_SAXAttributes60 = &CLSID_SAXAttributes60_Value; const CLSID_MXNamespaceManager60_Value = Guid.initString("88d96a11-f192-11d4-a65f-0040963251e5"); pub const CLSID_MXNamespaceManager60 = &CLSID_MXNamespaceManager60_Value; const IID_IXMLDOMDocument2_Value = Guid.initString("2933bf95-7b36-11d2-b20e-00c04f983e60"); pub const IID_IXMLDOMDocument2 = &IID_IXMLDOMDocument2_Value; pub const IXMLDOMDocument2 = extern struct { pub const VTable = extern struct { base: IXMLDOMDocument.VTable, // TODO: this function has a "SpecialName", should Zig do anything with this? get_namespaces: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IXMLDOMDocument2, namespaceCollection: ?*?*IXMLDOMSchemaCollection, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IXMLDOMDocument2, namespaceCollection: ?*?*IXMLDOMSchemaCollection, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_schemas: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IXMLDOMDocument2, otherCollection: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IXMLDOMDocument2, otherCollection: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, putref_schemas: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IXMLDOMDocument2, otherCollection: VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IXMLDOMDocument2, otherCollection: VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, validate: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IXMLDOMDocument2, errorObj: ?*?*IXMLDOMParseError, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IXMLDOMDocument2, errorObj: ?*?*IXMLDOMParseError, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, setProperty: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IXMLDOMDocument2, name: ?BSTR, value: VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IXMLDOMDocument2, name: ?BSTR, value: VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, getProperty: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IXMLDOMDocument2, name: ?BSTR, value: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IXMLDOMDocument2, name: ?BSTR, value: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IXMLDOMDocument.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IXMLDOMDocument2_get_namespaces(self: *const T, namespaceCollection: ?*?*IXMLDOMSchemaCollection) HRESULT { return @as(*const IXMLDOMDocument2.VTable, @ptrCast(self.vtable)).get_namespaces(@as(*const IXMLDOMDocument2, @ptrCast(self)), namespaceCollection); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IXMLDOMDocument2_get_schemas(self: *const T, otherCollection: ?*VARIANT) HRESULT { return @as(*const IXMLDOMDocument2.VTable, @ptrCast(self.vtable)).get_schemas(@as(*const IXMLDOMDocument2, @ptrCast(self)), otherCollection); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IXMLDOMDocument2_putref_schemas(self: *const T, otherCollection: VARIANT) HRESULT { return @as(*const IXMLDOMDocument2.VTable, @ptrCast(self.vtable)).putref_schemas(@as(*const IXMLDOMDocument2, @ptrCast(self)), otherCollection); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IXMLDOMDocument2_validate(self: *const T, errorObj: ?*?*IXMLDOMParseError) HRESULT { return @as(*const IXMLDOMDocument2.VTable, @ptrCast(self.vtable)).validate(@as(*const IXMLDOMDocument2, @ptrCast(self)), errorObj); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IXMLDOMDocument2_setProperty(self: *const T, name: ?BSTR, value: VARIANT) HRESULT { return @as(*const IXMLDOMDocument2.VTable, @ptrCast(self.vtable)).setProperty(@as(*const IXMLDOMDocument2, @ptrCast(self)), name, value); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IXMLDOMDocument2_getProperty(self: *const T, name: ?BSTR, value: ?*VARIANT) HRESULT { return @as(*const IXMLDOMDocument2.VTable, @ptrCast(self.vtable)).getProperty(@as(*const IXMLDOMDocument2, @ptrCast(self)), name, value); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IXMLDOMDocument3_Value = Guid.initString("2933bf96-7b36-11d2-b20e-00c04f983e60"); pub const IID_IXMLDOMDocument3 = &IID_IXMLDOMDocument3_Value; pub const IXMLDOMDocument3 = extern struct { pub const VTable = extern struct { base: IXMLDOMDocument2.VTable, validateNode: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IXMLDOMDocument3, node: ?*IXMLDOMNode, errorObj: ?*?*IXMLDOMParseError, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IXMLDOMDocument3, node: ?*IXMLDOMNode, errorObj: ?*?*IXMLDOMParseError, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, importNode: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IXMLDOMDocument3, node: ?*IXMLDOMNode, deep: i16, clone: ?*?*IXMLDOMNode, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IXMLDOMDocument3, node: ?*IXMLDOMNode, deep: i16, clone: ?*?*IXMLDOMNode, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IXMLDOMDocument2.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IXMLDOMDocument3_validateNode(self: *const T, node: ?*IXMLDOMNode, errorObj: ?*?*IXMLDOMParseError) HRESULT { return @as(*const IXMLDOMDocument3.VTable, @ptrCast(self.vtable)).validateNode(@as(*const IXMLDOMDocument3, @ptrCast(self)), node, errorObj); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IXMLDOMDocument3_importNode(self: *const T, node: ?*IXMLDOMNode, deep: i16, clone: ?*?*IXMLDOMNode) HRESULT { return @as(*const IXMLDOMDocument3.VTable, @ptrCast(self.vtable)).importNode(@as(*const IXMLDOMDocument3, @ptrCast(self)), node, deep, clone); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IXMLDOMSchemaCollection_Value = Guid.initString("373984c8-b845-449b-91e7-45ac83036ade"); pub const IID_IXMLDOMSchemaCollection = &IID_IXMLDOMSchemaCollection_Value; pub const IXMLDOMSchemaCollection = extern struct { pub const VTable = extern struct { base: IDispatch.VTable, add: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IXMLDOMSchemaCollection, namespaceURI: ?BSTR, @"var": VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IXMLDOMSchemaCollection, namespaceURI: ?BSTR, @"var": VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, get: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IXMLDOMSchemaCollection, namespaceURI: ?BSTR, schemaNode: ?*?*IXMLDOMNode, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IXMLDOMSchemaCollection, namespaceURI: ?BSTR, schemaNode: ?*?*IXMLDOMNode, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, remove: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IXMLDOMSchemaCollection, namespaceURI: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IXMLDOMSchemaCollection, namespaceURI: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_length: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IXMLDOMSchemaCollection, length: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IXMLDOMSchemaCollection, length: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_namespaceURI: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IXMLDOMSchemaCollection, index: i32, length: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IXMLDOMSchemaCollection, index: i32, length: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, addCollection: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IXMLDOMSchemaCollection, otherCollection: ?*IXMLDOMSchemaCollection, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IXMLDOMSchemaCollection, otherCollection: ?*IXMLDOMSchemaCollection, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get__newEnum: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IXMLDOMSchemaCollection, ppUnk: ?*?*IUnknown, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IXMLDOMSchemaCollection, ppUnk: ?*?*IUnknown, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IDispatch.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IXMLDOMSchemaCollection_add(self: *const T, namespaceURI: ?BSTR, @"var": VARIANT) HRESULT { return @as(*const IXMLDOMSchemaCollection.VTable, @ptrCast(self.vtable)).add(@as(*const IXMLDOMSchemaCollection, @ptrCast(self)), namespaceURI, @"var"); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IXMLDOMSchemaCollection_get(self: *const T, namespaceURI: ?BSTR, schemaNode: ?*?*IXMLDOMNode) HRESULT { return @as(*const IXMLDOMSchemaCollection.VTable, @ptrCast(self.vtable)).get(@as(*const IXMLDOMSchemaCollection, @ptrCast(self)), namespaceURI, schemaNode); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IXMLDOMSchemaCollection_remove(self: *const T, namespaceURI: ?BSTR) HRESULT { return @as(*const IXMLDOMSchemaCollection.VTable, @ptrCast(self.vtable)).remove(@as(*const IXMLDOMSchemaCollection, @ptrCast(self)), namespaceURI); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IXMLDOMSchemaCollection_get_length(self: *const T, length: ?*i32) HRESULT { return @as(*const IXMLDOMSchemaCollection.VTable, @ptrCast(self.vtable)).get_length(@as(*const IXMLDOMSchemaCollection, @ptrCast(self)), length); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IXMLDOMSchemaCollection_get_namespaceURI(self: *const T, index: i32, length: ?*?BSTR) HRESULT { return @as(*const IXMLDOMSchemaCollection.VTable, @ptrCast(self.vtable)).get_namespaceURI(@as(*const IXMLDOMSchemaCollection, @ptrCast(self)), index, length); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IXMLDOMSchemaCollection_addCollection(self: *const T, otherCollection: ?*IXMLDOMSchemaCollection) HRESULT { return @as(*const IXMLDOMSchemaCollection.VTable, @ptrCast(self.vtable)).addCollection(@as(*const IXMLDOMSchemaCollection, @ptrCast(self)), otherCollection); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IXMLDOMSchemaCollection_get__newEnum(self: *const T, ppUnk: ?*?*IUnknown) HRESULT { return @as(*const IXMLDOMSchemaCollection.VTable, @ptrCast(self.vtable)).get__newEnum(@as(*const IXMLDOMSchemaCollection, @ptrCast(self)), ppUnk); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IXMLDOMSelection_Value = Guid.initString("aa634fc7-5888-44a7-a257-3a47150d3a0e"); pub const IID_IXMLDOMSelection = &IID_IXMLDOMSelection_Value; pub const IXMLDOMSelection = extern struct { pub const VTable = extern struct { base: IXMLDOMNodeList.VTable, // TODO: this function has a "SpecialName", should Zig do anything with this? get_expr: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IXMLDOMSelection, expression: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IXMLDOMSelection, expression: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_expr: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IXMLDOMSelection, expression: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IXMLDOMSelection, expression: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_context: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IXMLDOMSelection, ppNode: ?*?*IXMLDOMNode, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IXMLDOMSelection, ppNode: ?*?*IXMLDOMNode, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, putref_context: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IXMLDOMSelection, pNode: ?*IXMLDOMNode, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IXMLDOMSelection, pNode: ?*IXMLDOMNode, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, peekNode: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IXMLDOMSelection, ppNode: ?*?*IXMLDOMNode, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IXMLDOMSelection, ppNode: ?*?*IXMLDOMNode, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, matches: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IXMLDOMSelection, pNode: ?*IXMLDOMNode, ppNode: ?*?*IXMLDOMNode, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IXMLDOMSelection, pNode: ?*IXMLDOMNode, ppNode: ?*?*IXMLDOMNode, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, removeNext: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IXMLDOMSelection, ppNode: ?*?*IXMLDOMNode, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IXMLDOMSelection, ppNode: ?*?*IXMLDOMNode, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, removeAll: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IXMLDOMSelection, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IXMLDOMSelection, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, clone: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IXMLDOMSelection, ppNode: ?*?*IXMLDOMSelection, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IXMLDOMSelection, ppNode: ?*?*IXMLDOMSelection, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, getProperty: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IXMLDOMSelection, name: ?BSTR, value: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IXMLDOMSelection, name: ?BSTR, value: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, setProperty: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IXMLDOMSelection, name: ?BSTR, value: VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IXMLDOMSelection, name: ?BSTR, value: VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IXMLDOMNodeList.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IXMLDOMSelection_get_expr(self: *const T, expression: ?*?BSTR) HRESULT { return @as(*const IXMLDOMSelection.VTable, @ptrCast(self.vtable)).get_expr(@as(*const IXMLDOMSelection, @ptrCast(self)), expression); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IXMLDOMSelection_put_expr(self: *const T, expression: ?BSTR) HRESULT { return @as(*const IXMLDOMSelection.VTable, @ptrCast(self.vtable)).put_expr(@as(*const IXMLDOMSelection, @ptrCast(self)), expression); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IXMLDOMSelection_get_context(self: *const T, ppNode: ?*?*IXMLDOMNode) HRESULT { return @as(*const IXMLDOMSelection.VTable, @ptrCast(self.vtable)).get_context(@as(*const IXMLDOMSelection, @ptrCast(self)), ppNode); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IXMLDOMSelection_putref_context(self: *const T, pNode: ?*IXMLDOMNode) HRESULT { return @as(*const IXMLDOMSelection.VTable, @ptrCast(self.vtable)).putref_context(@as(*const IXMLDOMSelection, @ptrCast(self)), pNode); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IXMLDOMSelection_peekNode(self: *const T, ppNode: ?*?*IXMLDOMNode) HRESULT { return @as(*const IXMLDOMSelection.VTable, @ptrCast(self.vtable)).peekNode(@as(*const IXMLDOMSelection, @ptrCast(self)), ppNode); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IXMLDOMSelection_matches(self: *const T, pNode: ?*IXMLDOMNode, ppNode: ?*?*IXMLDOMNode) HRESULT { return @as(*const IXMLDOMSelection.VTable, @ptrCast(self.vtable)).matches(@as(*const IXMLDOMSelection, @ptrCast(self)), pNode, ppNode); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IXMLDOMSelection_removeNext(self: *const T, ppNode: ?*?*IXMLDOMNode) HRESULT { return @as(*const IXMLDOMSelection.VTable, @ptrCast(self.vtable)).removeNext(@as(*const IXMLDOMSelection, @ptrCast(self)), ppNode); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IXMLDOMSelection_removeAll(self: *const T) HRESULT { return @as(*const IXMLDOMSelection.VTable, @ptrCast(self.vtable)).removeAll(@as(*const IXMLDOMSelection, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IXMLDOMSelection_clone(self: *const T, ppNode: ?*?*IXMLDOMSelection) HRESULT { return @as(*const IXMLDOMSelection.VTable, @ptrCast(self.vtable)).clone(@as(*const IXMLDOMSelection, @ptrCast(self)), ppNode); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IXMLDOMSelection_getProperty(self: *const T, name: ?BSTR, value: ?*VARIANT) HRESULT { return @as(*const IXMLDOMSelection.VTable, @ptrCast(self.vtable)).getProperty(@as(*const IXMLDOMSelection, @ptrCast(self)), name, value); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IXMLDOMSelection_setProperty(self: *const T, name: ?BSTR, value: VARIANT) HRESULT { return @as(*const IXMLDOMSelection.VTable, @ptrCast(self.vtable)).setProperty(@as(*const IXMLDOMSelection, @ptrCast(self)), name, value); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IXMLDOMParseError2_Value = Guid.initString("3efaa428-272f-11d2-836f-0000f87a7782"); pub const IID_IXMLDOMParseError2 = &IID_IXMLDOMParseError2_Value; pub const IXMLDOMParseError2 = extern struct { pub const VTable = extern struct { base: IXMLDOMParseError.VTable, // TODO: this function has a "SpecialName", should Zig do anything with this? get_errorXPath: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IXMLDOMParseError2, xpathexpr: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IXMLDOMParseError2, xpathexpr: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_allErrors: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IXMLDOMParseError2, allErrors: ?*?*IXMLDOMParseErrorCollection, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IXMLDOMParseError2, allErrors: ?*?*IXMLDOMParseErrorCollection, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, errorParameters: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IXMLDOMParseError2, index: i32, param1: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IXMLDOMParseError2, index: i32, param1: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_errorParametersCount: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IXMLDOMParseError2, count: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IXMLDOMParseError2, count: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IXMLDOMParseError.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IXMLDOMParseError2_get_errorXPath(self: *const T, xpathexpr: ?*?BSTR) HRESULT { return @as(*const IXMLDOMParseError2.VTable, @ptrCast(self.vtable)).get_errorXPath(@as(*const IXMLDOMParseError2, @ptrCast(self)), xpathexpr); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IXMLDOMParseError2_get_allErrors(self: *const T, allErrors: ?*?*IXMLDOMParseErrorCollection) HRESULT { return @as(*const IXMLDOMParseError2.VTable, @ptrCast(self.vtable)).get_allErrors(@as(*const IXMLDOMParseError2, @ptrCast(self)), allErrors); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IXMLDOMParseError2_errorParameters(self: *const T, index: i32, param1: ?*?BSTR) HRESULT { return @as(*const IXMLDOMParseError2.VTable, @ptrCast(self.vtable)).errorParameters(@as(*const IXMLDOMParseError2, @ptrCast(self)), index, param1); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IXMLDOMParseError2_get_errorParametersCount(self: *const T, count: ?*i32) HRESULT { return @as(*const IXMLDOMParseError2.VTable, @ptrCast(self.vtable)).get_errorParametersCount(@as(*const IXMLDOMParseError2, @ptrCast(self)), count); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IXMLDOMParseErrorCollection_Value = Guid.initString("3efaa429-272f-11d2-836f-0000f87a7782"); pub const IID_IXMLDOMParseErrorCollection = &IID_IXMLDOMParseErrorCollection_Value; pub const IXMLDOMParseErrorCollection = extern struct { pub const VTable = extern struct { base: IDispatch.VTable, // TODO: this function has a "SpecialName", should Zig do anything with this? get_item: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IXMLDOMParseErrorCollection, index: i32, @"error": ?*?*IXMLDOMParseError2, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IXMLDOMParseErrorCollection, index: i32, @"error": ?*?*IXMLDOMParseError2, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_length: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IXMLDOMParseErrorCollection, length: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IXMLDOMParseErrorCollection, length: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_next: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IXMLDOMParseErrorCollection, @"error": ?*?*IXMLDOMParseError2, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IXMLDOMParseErrorCollection, @"error": ?*?*IXMLDOMParseError2, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, reset: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IXMLDOMParseErrorCollection, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IXMLDOMParseErrorCollection, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get__newEnum: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IXMLDOMParseErrorCollection, ppunk: ?*?*IUnknown, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IXMLDOMParseErrorCollection, ppunk: ?*?*IUnknown, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IDispatch.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IXMLDOMParseErrorCollection_get_item(self: *const T, index: i32, @"error": ?*?*IXMLDOMParseError2) HRESULT { return @as(*const IXMLDOMParseErrorCollection.VTable, @ptrCast(self.vtable)).get_item(@as(*const IXMLDOMParseErrorCollection, @ptrCast(self)), index, @"error"); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IXMLDOMParseErrorCollection_get_length(self: *const T, length: ?*i32) HRESULT { return @as(*const IXMLDOMParseErrorCollection.VTable, @ptrCast(self.vtable)).get_length(@as(*const IXMLDOMParseErrorCollection, @ptrCast(self)), length); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IXMLDOMParseErrorCollection_get_next(self: *const T, @"error": ?*?*IXMLDOMParseError2) HRESULT { return @as(*const IXMLDOMParseErrorCollection.VTable, @ptrCast(self.vtable)).get_next(@as(*const IXMLDOMParseErrorCollection, @ptrCast(self)), @"error"); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IXMLDOMParseErrorCollection_reset(self: *const T) HRESULT { return @as(*const IXMLDOMParseErrorCollection.VTable, @ptrCast(self.vtable)).reset(@as(*const IXMLDOMParseErrorCollection, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IXMLDOMParseErrorCollection_get__newEnum(self: *const T, ppunk: ?*?*IUnknown) HRESULT { return @as(*const IXMLDOMParseErrorCollection.VTable, @ptrCast(self.vtable)).get__newEnum(@as(*const IXMLDOMParseErrorCollection, @ptrCast(self)), ppunk); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IXSLProcessor_Value = Guid.initString("2933bf92-7b36-11d2-b20e-00c04f983e60"); pub const IID_IXSLProcessor = &IID_IXSLProcessor_Value; pub const IXSLProcessor = extern struct { pub const VTable = extern struct { base: IDispatch.VTable, // TODO: this function has a "SpecialName", should Zig do anything with this? put_input: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IXSLProcessor, @"var": VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IXSLProcessor, @"var": VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_input: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IXSLProcessor, pVar: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IXSLProcessor, pVar: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_ownerTemplate: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IXSLProcessor, ppTemplate: ?*?*IXSLTemplate, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IXSLProcessor, ppTemplate: ?*?*IXSLTemplate, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, setStartMode: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IXSLProcessor, mode: ?BSTR, namespaceURI: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IXSLProcessor, mode: ?BSTR, namespaceURI: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_startMode: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IXSLProcessor, mode: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IXSLProcessor, mode: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_startModeURI: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IXSLProcessor, namespaceURI: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IXSLProcessor, namespaceURI: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_output: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IXSLProcessor, output: VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IXSLProcessor, output: VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_output: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IXSLProcessor, pOutput: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IXSLProcessor, pOutput: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, transform: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IXSLProcessor, pDone: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IXSLProcessor, pDone: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, reset: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IXSLProcessor, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IXSLProcessor, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_readyState: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IXSLProcessor, pReadyState: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IXSLProcessor, pReadyState: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, addParameter: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IXSLProcessor, baseName: ?BSTR, parameter: VARIANT, namespaceURI: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IXSLProcessor, baseName: ?BSTR, parameter: VARIANT, namespaceURI: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, addObject: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IXSLProcessor, obj: ?*IDispatch, namespaceURI: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IXSLProcessor, obj: ?*IDispatch, namespaceURI: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_stylesheet: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IXSLProcessor, stylesheet: ?*?*IXMLDOMNode, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IXSLProcessor, stylesheet: ?*?*IXMLDOMNode, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IDispatch.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IXSLProcessor_put_input(self: *const T, @"var": VARIANT) HRESULT { return @as(*const IXSLProcessor.VTable, @ptrCast(self.vtable)).put_input(@as(*const IXSLProcessor, @ptrCast(self)), @"var"); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IXSLProcessor_get_input(self: *const T, pVar: ?*VARIANT) HRESULT { return @as(*const IXSLProcessor.VTable, @ptrCast(self.vtable)).get_input(@as(*const IXSLProcessor, @ptrCast(self)), pVar); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IXSLProcessor_get_ownerTemplate(self: *const T, ppTemplate: ?*?*IXSLTemplate) HRESULT { return @as(*const IXSLProcessor.VTable, @ptrCast(self.vtable)).get_ownerTemplate(@as(*const IXSLProcessor, @ptrCast(self)), ppTemplate); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IXSLProcessor_setStartMode(self: *const T, mode: ?BSTR, namespaceURI: ?BSTR) HRESULT { return @as(*const IXSLProcessor.VTable, @ptrCast(self.vtable)).setStartMode(@as(*const IXSLProcessor, @ptrCast(self)), mode, namespaceURI); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IXSLProcessor_get_startMode(self: *const T, mode: ?*?BSTR) HRESULT { return @as(*const IXSLProcessor.VTable, @ptrCast(self.vtable)).get_startMode(@as(*const IXSLProcessor, @ptrCast(self)), mode); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IXSLProcessor_get_startModeURI(self: *const T, namespaceURI: ?*?BSTR) HRESULT { return @as(*const IXSLProcessor.VTable, @ptrCast(self.vtable)).get_startModeURI(@as(*const IXSLProcessor, @ptrCast(self)), namespaceURI); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IXSLProcessor_put_output(self: *const T, output: VARIANT) HRESULT { return @as(*const IXSLProcessor.VTable, @ptrCast(self.vtable)).put_output(@as(*const IXSLProcessor, @ptrCast(self)), output); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IXSLProcessor_get_output(self: *const T, pOutput: ?*VARIANT) HRESULT { return @as(*const IXSLProcessor.VTable, @ptrCast(self.vtable)).get_output(@as(*const IXSLProcessor, @ptrCast(self)), pOutput); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IXSLProcessor_transform(self: *const T, pDone: ?*i16) HRESULT { return @as(*const IXSLProcessor.VTable, @ptrCast(self.vtable)).transform(@as(*const IXSLProcessor, @ptrCast(self)), pDone); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IXSLProcessor_reset(self: *const T) HRESULT { return @as(*const IXSLProcessor.VTable, @ptrCast(self.vtable)).reset(@as(*const IXSLProcessor, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IXSLProcessor_get_readyState(self: *const T, pReadyState: ?*i32) HRESULT { return @as(*const IXSLProcessor.VTable, @ptrCast(self.vtable)).get_readyState(@as(*const IXSLProcessor, @ptrCast(self)), pReadyState); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IXSLProcessor_addParameter(self: *const T, baseName: ?BSTR, parameter: VARIANT, namespaceURI: ?BSTR) HRESULT { return @as(*const IXSLProcessor.VTable, @ptrCast(self.vtable)).addParameter(@as(*const IXSLProcessor, @ptrCast(self)), baseName, parameter, namespaceURI); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IXSLProcessor_addObject(self: *const T, obj: ?*IDispatch, namespaceURI: ?BSTR) HRESULT { return @as(*const IXSLProcessor.VTable, @ptrCast(self.vtable)).addObject(@as(*const IXSLProcessor, @ptrCast(self)), obj, namespaceURI); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IXSLProcessor_get_stylesheet(self: *const T, stylesheet: ?*?*IXMLDOMNode) HRESULT { return @as(*const IXSLProcessor.VTable, @ptrCast(self.vtable)).get_stylesheet(@as(*const IXSLProcessor, @ptrCast(self)), stylesheet); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IXSLTemplate_Value = Guid.initString("2933bf93-7b36-11d2-b20e-00c04f983e60"); pub const IID_IXSLTemplate = &IID_IXSLTemplate_Value; pub const IXSLTemplate = extern struct { pub const VTable = extern struct { base: IDispatch.VTable, putref_stylesheet: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IXSLTemplate, stylesheet: ?*IXMLDOMNode, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IXSLTemplate, stylesheet: ?*IXMLDOMNode, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_stylesheet: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IXSLTemplate, stylesheet: ?*?*IXMLDOMNode, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IXSLTemplate, stylesheet: ?*?*IXMLDOMNode, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, createProcessor: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IXSLTemplate, ppProcessor: ?*?*IXSLProcessor, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IXSLTemplate, ppProcessor: ?*?*IXSLProcessor, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IDispatch.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IXSLTemplate_putref_stylesheet(self: *const T, stylesheet: ?*IXMLDOMNode) HRESULT { return @as(*const IXSLTemplate.VTable, @ptrCast(self.vtable)).putref_stylesheet(@as(*const IXSLTemplate, @ptrCast(self)), stylesheet); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IXSLTemplate_get_stylesheet(self: *const T, stylesheet: ?*?*IXMLDOMNode) HRESULT { return @as(*const IXSLTemplate.VTable, @ptrCast(self.vtable)).get_stylesheet(@as(*const IXSLTemplate, @ptrCast(self)), stylesheet); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IXSLTemplate_createProcessor(self: *const T, ppProcessor: ?*?*IXSLProcessor) HRESULT { return @as(*const IXSLTemplate.VTable, @ptrCast(self.vtable)).createProcessor(@as(*const IXSLTemplate, @ptrCast(self)), ppProcessor); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IXMLHTTPRequest_Value = Guid.initString("ed8c108d-4349-11d2-91a4-00c04f7969e8"); pub const IID_IXMLHTTPRequest = &IID_IXMLHTTPRequest_Value; pub const IXMLHTTPRequest = extern struct { pub const VTable = extern struct { base: IDispatch.VTable, open: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IXMLHTTPRequest, bstrMethod: ?BSTR, bstrUrl: ?BSTR, varAsync: VARIANT, bstrUser: VARIANT, bstrPassword: VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IXMLHTTPRequest, bstrMethod: ?BSTR, bstrUrl: ?BSTR, varAsync: VARIANT, bstrUser: VARIANT, bstrPassword: VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, setRequestHeader: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IXMLHTTPRequest, bstrHeader: ?BSTR, bstrValue: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IXMLHTTPRequest, bstrHeader: ?BSTR, bstrValue: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, getResponseHeader: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IXMLHTTPRequest, bstrHeader: ?BSTR, pbstrValue: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IXMLHTTPRequest, bstrHeader: ?BSTR, pbstrValue: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, getAllResponseHeaders: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IXMLHTTPRequest, pbstrHeaders: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IXMLHTTPRequest, pbstrHeaders: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, send: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IXMLHTTPRequest, varBody: VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IXMLHTTPRequest, varBody: VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, abort: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IXMLHTTPRequest, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IXMLHTTPRequest, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_status: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IXMLHTTPRequest, plStatus: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IXMLHTTPRequest, plStatus: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_statusText: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IXMLHTTPRequest, pbstrStatus: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IXMLHTTPRequest, pbstrStatus: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_responseXML: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IXMLHTTPRequest, ppBody: ?*?*IDispatch, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IXMLHTTPRequest, ppBody: ?*?*IDispatch, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_responseText: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IXMLHTTPRequest, pbstrBody: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IXMLHTTPRequest, pbstrBody: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_responseBody: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IXMLHTTPRequest, pvarBody: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IXMLHTTPRequest, pvarBody: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_responseStream: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IXMLHTTPRequest, pvarBody: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IXMLHTTPRequest, pvarBody: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_readyState: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IXMLHTTPRequest, plState: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IXMLHTTPRequest, plState: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_onreadystatechange: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IXMLHTTPRequest, pReadyStateSink: ?*IDispatch, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IXMLHTTPRequest, pReadyStateSink: ?*IDispatch, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IDispatch.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IXMLHTTPRequest_open(self: *const T, bstrMethod: ?BSTR, bstrUrl: ?BSTR, varAsync: VARIANT, bstrUser: VARIANT, bstrPassword: VARIANT) HRESULT { return @as(*const IXMLHTTPRequest.VTable, @ptrCast(self.vtable)).open(@as(*const IXMLHTTPRequest, @ptrCast(self)), bstrMethod, bstrUrl, varAsync, bstrUser, bstrPassword); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IXMLHTTPRequest_setRequestHeader(self: *const T, bstrHeader: ?BSTR, bstrValue: ?BSTR) HRESULT { return @as(*const IXMLHTTPRequest.VTable, @ptrCast(self.vtable)).setRequestHeader(@as(*const IXMLHTTPRequest, @ptrCast(self)), bstrHeader, bstrValue); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IXMLHTTPRequest_getResponseHeader(self: *const T, bstrHeader: ?BSTR, pbstrValue: ?*?BSTR) HRESULT { return @as(*const IXMLHTTPRequest.VTable, @ptrCast(self.vtable)).getResponseHeader(@as(*const IXMLHTTPRequest, @ptrCast(self)), bstrHeader, pbstrValue); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IXMLHTTPRequest_getAllResponseHeaders(self: *const T, pbstrHeaders: ?*?BSTR) HRESULT { return @as(*const IXMLHTTPRequest.VTable, @ptrCast(self.vtable)).getAllResponseHeaders(@as(*const IXMLHTTPRequest, @ptrCast(self)), pbstrHeaders); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IXMLHTTPRequest_send(self: *const T, varBody: VARIANT) HRESULT { return @as(*const IXMLHTTPRequest.VTable, @ptrCast(self.vtable)).send(@as(*const IXMLHTTPRequest, @ptrCast(self)), varBody); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IXMLHTTPRequest_abort(self: *const T) HRESULT { return @as(*const IXMLHTTPRequest.VTable, @ptrCast(self.vtable)).abort(@as(*const IXMLHTTPRequest, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IXMLHTTPRequest_get_status(self: *const T, plStatus: ?*i32) HRESULT { return @as(*const IXMLHTTPRequest.VTable, @ptrCast(self.vtable)).get_status(@as(*const IXMLHTTPRequest, @ptrCast(self)), plStatus); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IXMLHTTPRequest_get_statusText(self: *const T, pbstrStatus: ?*?BSTR) HRESULT { return @as(*const IXMLHTTPRequest.VTable, @ptrCast(self.vtable)).get_statusText(@as(*const IXMLHTTPRequest, @ptrCast(self)), pbstrStatus); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IXMLHTTPRequest_get_responseXML(self: *const T, ppBody: ?*?*IDispatch) HRESULT { return @as(*const IXMLHTTPRequest.VTable, @ptrCast(self.vtable)).get_responseXML(@as(*const IXMLHTTPRequest, @ptrCast(self)), ppBody); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IXMLHTTPRequest_get_responseText(self: *const T, pbstrBody: ?*?BSTR) HRESULT { return @as(*const IXMLHTTPRequest.VTable, @ptrCast(self.vtable)).get_responseText(@as(*const IXMLHTTPRequest, @ptrCast(self)), pbstrBody); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IXMLHTTPRequest_get_responseBody(self: *const T, pvarBody: ?*VARIANT) HRESULT { return @as(*const IXMLHTTPRequest.VTable, @ptrCast(self.vtable)).get_responseBody(@as(*const IXMLHTTPRequest, @ptrCast(self)), pvarBody); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IXMLHTTPRequest_get_responseStream(self: *const T, pvarBody: ?*VARIANT) HRESULT { return @as(*const IXMLHTTPRequest.VTable, @ptrCast(self.vtable)).get_responseStream(@as(*const IXMLHTTPRequest, @ptrCast(self)), pvarBody); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IXMLHTTPRequest_get_readyState(self: *const T, plState: ?*i32) HRESULT { return @as(*const IXMLHTTPRequest.VTable, @ptrCast(self.vtable)).get_readyState(@as(*const IXMLHTTPRequest, @ptrCast(self)), plState); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IXMLHTTPRequest_put_onreadystatechange(self: *const T, pReadyStateSink: ?*IDispatch) HRESULT { return @as(*const IXMLHTTPRequest.VTable, @ptrCast(self.vtable)).put_onreadystatechange(@as(*const IXMLHTTPRequest, @ptrCast(self)), pReadyStateSink); } }; } pub usingnamespace MethodMixin(@This()); }; pub const SERVERXMLHTTP_OPTION = enum(i32) { URL = -1, URL_CODEPAGE = 0, ESCAPE_PERCENT_IN_URL = 1, IGNORE_SERVER_SSL_CERT_ERROR_FLAGS = 2, SELECT_CLIENT_SSL_CERT = 3, }; pub const SXH_OPTION_URL = SERVERXMLHTTP_OPTION.URL; pub const SXH_OPTION_URL_CODEPAGE = SERVERXMLHTTP_OPTION.URL_CODEPAGE; pub const SXH_OPTION_ESCAPE_PERCENT_IN_URL = SERVERXMLHTTP_OPTION.ESCAPE_PERCENT_IN_URL; pub const SXH_OPTION_IGNORE_SERVER_SSL_CERT_ERROR_FLAGS = SERVERXMLHTTP_OPTION.IGNORE_SERVER_SSL_CERT_ERROR_FLAGS; pub const SXH_OPTION_SELECT_CLIENT_SSL_CERT = SERVERXMLHTTP_OPTION.SELECT_CLIENT_SSL_CERT; pub const SXH_SERVER_CERT_OPTION = enum(i32) { UNKNOWN_CA = 256, WRONG_USAGE = 512, CERT_CN_INVALID = 4096, CERT_DATE_INVALID = 8192, ALL_SERVER_ERRORS = 13056, }; pub const SXH_SERVER_CERT_IGNORE_UNKNOWN_CA = SXH_SERVER_CERT_OPTION.UNKNOWN_CA; pub const SXH_SERVER_CERT_IGNORE_WRONG_USAGE = SXH_SERVER_CERT_OPTION.WRONG_USAGE; pub const SXH_SERVER_CERT_IGNORE_CERT_CN_INVALID = SXH_SERVER_CERT_OPTION.CERT_CN_INVALID; pub const SXH_SERVER_CERT_IGNORE_CERT_DATE_INVALID = SXH_SERVER_CERT_OPTION.CERT_DATE_INVALID; pub const SXH_SERVER_CERT_IGNORE_ALL_SERVER_ERRORS = SXH_SERVER_CERT_OPTION.ALL_SERVER_ERRORS; pub const SXH_PROXY_SETTING = enum(i32) { DEFAULT = 0, // PRECONFIG = 0, this enum value conflicts with DEFAULT DIRECT = 1, PROXY = 2, }; pub const SXH_PROXY_SET_DEFAULT = SXH_PROXY_SETTING.DEFAULT; pub const SXH_PROXY_SET_PRECONFIG = SXH_PROXY_SETTING.DEFAULT; pub const SXH_PROXY_SET_DIRECT = SXH_PROXY_SETTING.DIRECT; pub const SXH_PROXY_SET_PROXY = SXH_PROXY_SETTING.PROXY; const IID_IServerXMLHTTPRequest_Value = Guid.initString("2e9196bf-13ba-4dd4-91ca-6c571f281495"); pub const IID_IServerXMLHTTPRequest = &IID_IServerXMLHTTPRequest_Value; pub const IServerXMLHTTPRequest = extern struct { pub const VTable = extern struct { base: IXMLHTTPRequest.VTable, setTimeouts: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IServerXMLHTTPRequest, resolveTimeout: i32, connectTimeout: i32, sendTimeout: i32, receiveTimeout: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IServerXMLHTTPRequest, resolveTimeout: i32, connectTimeout: i32, sendTimeout: i32, receiveTimeout: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, waitForResponse: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IServerXMLHTTPRequest, timeoutInSeconds: VARIANT, isSuccessful: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IServerXMLHTTPRequest, timeoutInSeconds: VARIANT, isSuccessful: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, getOption: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IServerXMLHTTPRequest, option: SERVERXMLHTTP_OPTION, value: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IServerXMLHTTPRequest, option: SERVERXMLHTTP_OPTION, value: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, setOption: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IServerXMLHTTPRequest, option: SERVERXMLHTTP_OPTION, value: VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IServerXMLHTTPRequest, option: SERVERXMLHTTP_OPTION, value: VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IXMLHTTPRequest.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IServerXMLHTTPRequest_setTimeouts(self: *const T, resolveTimeout: i32, connectTimeout: i32, sendTimeout: i32, receiveTimeout: i32) HRESULT { return @as(*const IServerXMLHTTPRequest.VTable, @ptrCast(self.vtable)).setTimeouts(@as(*const IServerXMLHTTPRequest, @ptrCast(self)), resolveTimeout, connectTimeout, sendTimeout, receiveTimeout); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IServerXMLHTTPRequest_waitForResponse(self: *const T, timeoutInSeconds: VARIANT, isSuccessful: ?*i16) HRESULT { return @as(*const IServerXMLHTTPRequest.VTable, @ptrCast(self.vtable)).waitForResponse(@as(*const IServerXMLHTTPRequest, @ptrCast(self)), timeoutInSeconds, isSuccessful); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IServerXMLHTTPRequest_getOption(self: *const T, option: SERVERXMLHTTP_OPTION, value: ?*VARIANT) HRESULT { return @as(*const IServerXMLHTTPRequest.VTable, @ptrCast(self.vtable)).getOption(@as(*const IServerXMLHTTPRequest, @ptrCast(self)), option, value); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IServerXMLHTTPRequest_setOption(self: *const T, option: SERVERXMLHTTP_OPTION, value: VARIANT) HRESULT { return @as(*const IServerXMLHTTPRequest.VTable, @ptrCast(self.vtable)).setOption(@as(*const IServerXMLHTTPRequest, @ptrCast(self)), option, value); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IServerXMLHTTPRequest2_Value = Guid.initString("2e01311b-c322-4b0a-bd77-b90cfdc8dce7"); pub const IID_IServerXMLHTTPRequest2 = &IID_IServerXMLHTTPRequest2_Value; pub const IServerXMLHTTPRequest2 = extern struct { pub const VTable = extern struct { base: IServerXMLHTTPRequest.VTable, setProxy: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IServerXMLHTTPRequest2, proxySetting: SXH_PROXY_SETTING, varProxyServer: VARIANT, varBypassList: VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IServerXMLHTTPRequest2, proxySetting: SXH_PROXY_SETTING, varProxyServer: VARIANT, varBypassList: VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, setProxyCredentials: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IServerXMLHTTPRequest2, bstrUserName: ?BSTR, bstrPassword: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IServerXMLHTTPRequest2, bstrUserName: ?BSTR, bstrPassword: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IServerXMLHTTPRequest.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IServerXMLHTTPRequest2_setProxy(self: *const T, proxySetting: SXH_PROXY_SETTING, varProxyServer: VARIANT, varBypassList: VARIANT) HRESULT { return @as(*const IServerXMLHTTPRequest2.VTable, @ptrCast(self.vtable)).setProxy(@as(*const IServerXMLHTTPRequest2, @ptrCast(self)), proxySetting, varProxyServer, varBypassList); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IServerXMLHTTPRequest2_setProxyCredentials(self: *const T, bstrUserName: ?BSTR, bstrPassword: ?BSTR) HRESULT { return @as(*const IServerXMLHTTPRequest2.VTable, @ptrCast(self.vtable)).setProxyCredentials(@as(*const IServerXMLHTTPRequest2, @ptrCast(self)), bstrUserName, bstrPassword); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_ISAXXMLReader_Value = Guid.initString("a4f96ed0-f829-476e-81c0-cdc7bd2a0802"); pub const IID_ISAXXMLReader = &IID_ISAXXMLReader_Value; pub const ISAXXMLReader = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, getFeature: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ISAXXMLReader, pwchName: ?[*:0]const u16, pvfValue: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ISAXXMLReader, pwchName: ?[*:0]const u16, pvfValue: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, putFeature: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ISAXXMLReader, pwchName: ?[*:0]const u16, vfValue: i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ISAXXMLReader, pwchName: ?[*:0]const u16, vfValue: i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, getProperty: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ISAXXMLReader, pwchName: ?[*:0]const u16, pvarValue: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ISAXXMLReader, pwchName: ?[*:0]const u16, pvarValue: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, putProperty: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ISAXXMLReader, pwchName: ?[*:0]const u16, varValue: VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ISAXXMLReader, pwchName: ?[*:0]const u16, varValue: VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, getEntityResolver: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ISAXXMLReader, ppResolver: ?*?*ISAXEntityResolver, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ISAXXMLReader, ppResolver: ?*?*ISAXEntityResolver, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, putEntityResolver: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ISAXXMLReader, pResolver: ?*ISAXEntityResolver, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ISAXXMLReader, pResolver: ?*ISAXEntityResolver, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, getContentHandler: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ISAXXMLReader, ppHandler: ?*?*ISAXContentHandler, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ISAXXMLReader, ppHandler: ?*?*ISAXContentHandler, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, putContentHandler: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ISAXXMLReader, pHandler: ?*ISAXContentHandler, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ISAXXMLReader, pHandler: ?*ISAXContentHandler, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, getDTDHandler: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ISAXXMLReader, ppHandler: ?*?*ISAXDTDHandler, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ISAXXMLReader, ppHandler: ?*?*ISAXDTDHandler, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, putDTDHandler: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ISAXXMLReader, pHandler: ?*ISAXDTDHandler, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ISAXXMLReader, pHandler: ?*ISAXDTDHandler, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, getErrorHandler: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ISAXXMLReader, ppHandler: ?*?*ISAXErrorHandler, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ISAXXMLReader, ppHandler: ?*?*ISAXErrorHandler, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, putErrorHandler: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ISAXXMLReader, pHandler: ?*ISAXErrorHandler, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ISAXXMLReader, pHandler: ?*ISAXErrorHandler, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, getBaseURL: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ISAXXMLReader, ppwchBaseUrl: ?*const ?*u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ISAXXMLReader, ppwchBaseUrl: ?*const ?*u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, putBaseURL: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ISAXXMLReader, pwchBaseUrl: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ISAXXMLReader, pwchBaseUrl: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, getSecureBaseURL: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ISAXXMLReader, ppwchSecureBaseUrl: ?*const ?*u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ISAXXMLReader, ppwchSecureBaseUrl: ?*const ?*u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, putSecureBaseURL: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ISAXXMLReader, pwchSecureBaseUrl: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ISAXXMLReader, pwchSecureBaseUrl: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, parse: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ISAXXMLReader, varInput: VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ISAXXMLReader, varInput: VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, parseURL: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ISAXXMLReader, pwchUrl: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ISAXXMLReader, pwchUrl: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISAXXMLReader_getFeature(self: *const T, pwchName: ?[*:0]const u16, pvfValue: ?*i16) HRESULT { return @as(*const ISAXXMLReader.VTable, @ptrCast(self.vtable)).getFeature(@as(*const ISAXXMLReader, @ptrCast(self)), pwchName, pvfValue); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISAXXMLReader_putFeature(self: *const T, pwchName: ?[*:0]const u16, vfValue: i16) HRESULT { return @as(*const ISAXXMLReader.VTable, @ptrCast(self.vtable)).putFeature(@as(*const ISAXXMLReader, @ptrCast(self)), pwchName, vfValue); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISAXXMLReader_getProperty(self: *const T, pwchName: ?[*:0]const u16, pvarValue: ?*VARIANT) HRESULT { return @as(*const ISAXXMLReader.VTable, @ptrCast(self.vtable)).getProperty(@as(*const ISAXXMLReader, @ptrCast(self)), pwchName, pvarValue); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISAXXMLReader_putProperty(self: *const T, pwchName: ?[*:0]const u16, varValue: VARIANT) HRESULT { return @as(*const ISAXXMLReader.VTable, @ptrCast(self.vtable)).putProperty(@as(*const ISAXXMLReader, @ptrCast(self)), pwchName, varValue); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISAXXMLReader_getEntityResolver(self: *const T, ppResolver: ?*?*ISAXEntityResolver) HRESULT { return @as(*const ISAXXMLReader.VTable, @ptrCast(self.vtable)).getEntityResolver(@as(*const ISAXXMLReader, @ptrCast(self)), ppResolver); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISAXXMLReader_putEntityResolver(self: *const T, pResolver: ?*ISAXEntityResolver) HRESULT { return @as(*const ISAXXMLReader.VTable, @ptrCast(self.vtable)).putEntityResolver(@as(*const ISAXXMLReader, @ptrCast(self)), pResolver); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISAXXMLReader_getContentHandler(self: *const T, ppHandler: ?*?*ISAXContentHandler) HRESULT { return @as(*const ISAXXMLReader.VTable, @ptrCast(self.vtable)).getContentHandler(@as(*const ISAXXMLReader, @ptrCast(self)), ppHandler); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISAXXMLReader_putContentHandler(self: *const T, pHandler: ?*ISAXContentHandler) HRESULT { return @as(*const ISAXXMLReader.VTable, @ptrCast(self.vtable)).putContentHandler(@as(*const ISAXXMLReader, @ptrCast(self)), pHandler); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISAXXMLReader_getDTDHandler(self: *const T, ppHandler: ?*?*ISAXDTDHandler) HRESULT { return @as(*const ISAXXMLReader.VTable, @ptrCast(self.vtable)).getDTDHandler(@as(*const ISAXXMLReader, @ptrCast(self)), ppHandler); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISAXXMLReader_putDTDHandler(self: *const T, pHandler: ?*ISAXDTDHandler) HRESULT { return @as(*const ISAXXMLReader.VTable, @ptrCast(self.vtable)).putDTDHandler(@as(*const ISAXXMLReader, @ptrCast(self)), pHandler); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISAXXMLReader_getErrorHandler(self: *const T, ppHandler: ?*?*ISAXErrorHandler) HRESULT { return @as(*const ISAXXMLReader.VTable, @ptrCast(self.vtable)).getErrorHandler(@as(*const ISAXXMLReader, @ptrCast(self)), ppHandler); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISAXXMLReader_putErrorHandler(self: *const T, pHandler: ?*ISAXErrorHandler) HRESULT { return @as(*const ISAXXMLReader.VTable, @ptrCast(self.vtable)).putErrorHandler(@as(*const ISAXXMLReader, @ptrCast(self)), pHandler); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISAXXMLReader_getBaseURL(self: *const T, ppwchBaseUrl: ?*const ?*u16) HRESULT { return @as(*const ISAXXMLReader.VTable, @ptrCast(self.vtable)).getBaseURL(@as(*const ISAXXMLReader, @ptrCast(self)), ppwchBaseUrl); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISAXXMLReader_putBaseURL(self: *const T, pwchBaseUrl: ?[*:0]const u16) HRESULT { return @as(*const ISAXXMLReader.VTable, @ptrCast(self.vtable)).putBaseURL(@as(*const ISAXXMLReader, @ptrCast(self)), pwchBaseUrl); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISAXXMLReader_getSecureBaseURL(self: *const T, ppwchSecureBaseUrl: ?*const ?*u16) HRESULT { return @as(*const ISAXXMLReader.VTable, @ptrCast(self.vtable)).getSecureBaseURL(@as(*const ISAXXMLReader, @ptrCast(self)), ppwchSecureBaseUrl); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISAXXMLReader_putSecureBaseURL(self: *const T, pwchSecureBaseUrl: ?[*:0]const u16) HRESULT { return @as(*const ISAXXMLReader.VTable, @ptrCast(self.vtable)).putSecureBaseURL(@as(*const ISAXXMLReader, @ptrCast(self)), pwchSecureBaseUrl); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISAXXMLReader_parse(self: *const T, varInput: VARIANT) HRESULT { return @as(*const ISAXXMLReader.VTable, @ptrCast(self.vtable)).parse(@as(*const ISAXXMLReader, @ptrCast(self)), varInput); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISAXXMLReader_parseURL(self: *const T, pwchUrl: ?[*:0]const u16) HRESULT { return @as(*const ISAXXMLReader.VTable, @ptrCast(self.vtable)).parseURL(@as(*const ISAXXMLReader, @ptrCast(self)), pwchUrl); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_ISAXXMLFilter_Value = Guid.initString("70409222-ca09-4475-acb8-40312fe8d145"); pub const IID_ISAXXMLFilter = &IID_ISAXXMLFilter_Value; pub const ISAXXMLFilter = extern struct { pub const VTable = extern struct { base: ISAXXMLReader.VTable, getParent: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ISAXXMLFilter, ppReader: ?*?*ISAXXMLReader, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ISAXXMLFilter, ppReader: ?*?*ISAXXMLReader, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, putParent: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ISAXXMLFilter, pReader: ?*ISAXXMLReader, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ISAXXMLFilter, pReader: ?*ISAXXMLReader, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace ISAXXMLReader.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISAXXMLFilter_getParent(self: *const T, ppReader: ?*?*ISAXXMLReader) HRESULT { return @as(*const ISAXXMLFilter.VTable, @ptrCast(self.vtable)).getParent(@as(*const ISAXXMLFilter, @ptrCast(self)), ppReader); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISAXXMLFilter_putParent(self: *const T, pReader: ?*ISAXXMLReader) HRESULT { return @as(*const ISAXXMLFilter.VTable, @ptrCast(self.vtable)).putParent(@as(*const ISAXXMLFilter, @ptrCast(self)), pReader); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_ISAXLocator_Value = Guid.initString("9b7e472a-0de4-4640-bff3-84d38a051c31"); pub const IID_ISAXLocator = &IID_ISAXLocator_Value; pub const ISAXLocator = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, getColumnNumber: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ISAXLocator, pnColumn: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ISAXLocator, pnColumn: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, getLineNumber: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ISAXLocator, pnLine: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ISAXLocator, pnLine: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, getPublicId: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ISAXLocator, ppwchPublicId: ?*const ?*u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ISAXLocator, ppwchPublicId: ?*const ?*u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, getSystemId: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ISAXLocator, ppwchSystemId: ?*const ?*u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ISAXLocator, ppwchSystemId: ?*const ?*u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISAXLocator_getColumnNumber(self: *const T, pnColumn: ?*i32) HRESULT { return @as(*const ISAXLocator.VTable, @ptrCast(self.vtable)).getColumnNumber(@as(*const ISAXLocator, @ptrCast(self)), pnColumn); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISAXLocator_getLineNumber(self: *const T, pnLine: ?*i32) HRESULT { return @as(*const ISAXLocator.VTable, @ptrCast(self.vtable)).getLineNumber(@as(*const ISAXLocator, @ptrCast(self)), pnLine); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISAXLocator_getPublicId(self: *const T, ppwchPublicId: ?*const ?*u16) HRESULT { return @as(*const ISAXLocator.VTable, @ptrCast(self.vtable)).getPublicId(@as(*const ISAXLocator, @ptrCast(self)), ppwchPublicId); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISAXLocator_getSystemId(self: *const T, ppwchSystemId: ?*const ?*u16) HRESULT { return @as(*const ISAXLocator.VTable, @ptrCast(self.vtable)).getSystemId(@as(*const ISAXLocator, @ptrCast(self)), ppwchSystemId); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_ISAXEntityResolver_Value = Guid.initString("99bca7bd-e8c4-4d5f-a0cf-6d907901ff07"); pub const IID_ISAXEntityResolver = &IID_ISAXEntityResolver_Value; pub const ISAXEntityResolver = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, resolveEntity: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ISAXEntityResolver, pwchPublicId: ?[*:0]const u16, pwchSystemId: ?[*:0]const u16, pvarInput: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ISAXEntityResolver, pwchPublicId: ?[*:0]const u16, pwchSystemId: ?[*:0]const u16, pvarInput: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISAXEntityResolver_resolveEntity(self: *const T, pwchPublicId: ?[*:0]const u16, pwchSystemId: ?[*:0]const u16, pvarInput: ?*VARIANT) HRESULT { return @as(*const ISAXEntityResolver.VTable, @ptrCast(self.vtable)).resolveEntity(@as(*const ISAXEntityResolver, @ptrCast(self)), pwchPublicId, pwchSystemId, pvarInput); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_ISAXContentHandler_Value = Guid.initString("1545cdfa-9e4e-4497-a8a4-2bf7d0112c44"); pub const IID_ISAXContentHandler = &IID_ISAXContentHandler_Value; pub const ISAXContentHandler = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, putDocumentLocator: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ISAXContentHandler, pLocator: ?*ISAXLocator, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ISAXContentHandler, pLocator: ?*ISAXLocator, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, startDocument: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ISAXContentHandler, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ISAXContentHandler, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, endDocument: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ISAXContentHandler, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ISAXContentHandler, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, startPrefixMapping: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ISAXContentHandler, pwchPrefix: ?[*:0]const u16, cchPrefix: i32, pwchUri: ?[*:0]const u16, cchUri: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ISAXContentHandler, pwchPrefix: ?[*:0]const u16, cchPrefix: i32, pwchUri: ?[*:0]const u16, cchUri: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, endPrefixMapping: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ISAXContentHandler, pwchPrefix: ?[*:0]const u16, cchPrefix: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ISAXContentHandler, pwchPrefix: ?[*:0]const u16, cchPrefix: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, startElement: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ISAXContentHandler, pwchNamespaceUri: ?[*:0]const u16, cchNamespaceUri: i32, pwchLocalName: ?[*:0]const u16, cchLocalName: i32, pwchQName: ?[*:0]const u16, cchQName: i32, pAttributes: ?*ISAXAttributes, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ISAXContentHandler, pwchNamespaceUri: ?[*:0]const u16, cchNamespaceUri: i32, pwchLocalName: ?[*:0]const u16, cchLocalName: i32, pwchQName: ?[*:0]const u16, cchQName: i32, pAttributes: ?*ISAXAttributes, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, endElement: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ISAXContentHandler, pwchNamespaceUri: ?[*:0]const u16, cchNamespaceUri: i32, pwchLocalName: ?[*:0]const u16, cchLocalName: i32, pwchQName: ?[*:0]const u16, cchQName: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ISAXContentHandler, pwchNamespaceUri: ?[*:0]const u16, cchNamespaceUri: i32, pwchLocalName: ?[*:0]const u16, cchLocalName: i32, pwchQName: ?[*:0]const u16, cchQName: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, characters: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ISAXContentHandler, pwchChars: ?[*:0]const u16, cchChars: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ISAXContentHandler, pwchChars: ?[*:0]const u16, cchChars: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, ignorableWhitespace: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ISAXContentHandler, pwchChars: ?[*:0]const u16, cchChars: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ISAXContentHandler, pwchChars: ?[*:0]const u16, cchChars: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, processingInstruction: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ISAXContentHandler, pwchTarget: ?[*:0]const u16, cchTarget: i32, pwchData: ?[*:0]const u16, cchData: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ISAXContentHandler, pwchTarget: ?[*:0]const u16, cchTarget: i32, pwchData: ?[*:0]const u16, cchData: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, skippedEntity: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ISAXContentHandler, pwchName: ?[*:0]const u16, cchName: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ISAXContentHandler, pwchName: ?[*:0]const u16, cchName: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISAXContentHandler_putDocumentLocator(self: *const T, pLocator: ?*ISAXLocator) HRESULT { return @as(*const ISAXContentHandler.VTable, @ptrCast(self.vtable)).putDocumentLocator(@as(*const ISAXContentHandler, @ptrCast(self)), pLocator); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISAXContentHandler_startDocument(self: *const T) HRESULT { return @as(*const ISAXContentHandler.VTable, @ptrCast(self.vtable)).startDocument(@as(*const ISAXContentHandler, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISAXContentHandler_endDocument(self: *const T) HRESULT { return @as(*const ISAXContentHandler.VTable, @ptrCast(self.vtable)).endDocument(@as(*const ISAXContentHandler, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISAXContentHandler_startPrefixMapping(self: *const T, pwchPrefix: ?[*:0]const u16, cchPrefix: i32, pwchUri: ?[*:0]const u16, cchUri: i32) HRESULT { return @as(*const ISAXContentHandler.VTable, @ptrCast(self.vtable)).startPrefixMapping(@as(*const ISAXContentHandler, @ptrCast(self)), pwchPrefix, cchPrefix, pwchUri, cchUri); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISAXContentHandler_endPrefixMapping(self: *const T, pwchPrefix: ?[*:0]const u16, cchPrefix: i32) HRESULT { return @as(*const ISAXContentHandler.VTable, @ptrCast(self.vtable)).endPrefixMapping(@as(*const ISAXContentHandler, @ptrCast(self)), pwchPrefix, cchPrefix); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISAXContentHandler_startElement(self: *const T, pwchNamespaceUri: ?[*:0]const u16, cchNamespaceUri: i32, pwchLocalName: ?[*:0]const u16, cchLocalName: i32, pwchQName: ?[*:0]const u16, cchQName: i32, pAttributes: ?*ISAXAttributes) HRESULT { return @as(*const ISAXContentHandler.VTable, @ptrCast(self.vtable)).startElement(@as(*const ISAXContentHandler, @ptrCast(self)), pwchNamespaceUri, cchNamespaceUri, pwchLocalName, cchLocalName, pwchQName, cchQName, pAttributes); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISAXContentHandler_endElement(self: *const T, pwchNamespaceUri: ?[*:0]const u16, cchNamespaceUri: i32, pwchLocalName: ?[*:0]const u16, cchLocalName: i32, pwchQName: ?[*:0]const u16, cchQName: i32) HRESULT { return @as(*const ISAXContentHandler.VTable, @ptrCast(self.vtable)).endElement(@as(*const ISAXContentHandler, @ptrCast(self)), pwchNamespaceUri, cchNamespaceUri, pwchLocalName, cchLocalName, pwchQName, cchQName); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISAXContentHandler_characters(self: *const T, pwchChars: ?[*:0]const u16, cchChars: i32) HRESULT { return @as(*const ISAXContentHandler.VTable, @ptrCast(self.vtable)).characters(@as(*const ISAXContentHandler, @ptrCast(self)), pwchChars, cchChars); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISAXContentHandler_ignorableWhitespace(self: *const T, pwchChars: ?[*:0]const u16, cchChars: i32) HRESULT { return @as(*const ISAXContentHandler.VTable, @ptrCast(self.vtable)).ignorableWhitespace(@as(*const ISAXContentHandler, @ptrCast(self)), pwchChars, cchChars); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISAXContentHandler_processingInstruction(self: *const T, pwchTarget: ?[*:0]const u16, cchTarget: i32, pwchData: ?[*:0]const u16, cchData: i32) HRESULT { return @as(*const ISAXContentHandler.VTable, @ptrCast(self.vtable)).processingInstruction(@as(*const ISAXContentHandler, @ptrCast(self)), pwchTarget, cchTarget, pwchData, cchData); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISAXContentHandler_skippedEntity(self: *const T, pwchName: ?[*:0]const u16, cchName: i32) HRESULT { return @as(*const ISAXContentHandler.VTable, @ptrCast(self.vtable)).skippedEntity(@as(*const ISAXContentHandler, @ptrCast(self)), pwchName, cchName); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_ISAXDTDHandler_Value = Guid.initString("e15c1baf-afb3-4d60-8c36-19a8c45defed"); pub const IID_ISAXDTDHandler = &IID_ISAXDTDHandler_Value; pub const ISAXDTDHandler = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, notationDecl: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ISAXDTDHandler, pwchName: ?[*:0]const u16, cchName: i32, pwchPublicId: ?[*:0]const u16, cchPublicId: i32, pwchSystemId: ?[*:0]const u16, cchSystemId: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ISAXDTDHandler, pwchName: ?[*:0]const u16, cchName: i32, pwchPublicId: ?[*:0]const u16, cchPublicId: i32, pwchSystemId: ?[*:0]const u16, cchSystemId: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, unparsedEntityDecl: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ISAXDTDHandler, pwchName: ?[*:0]const u16, cchName: i32, pwchPublicId: ?[*:0]const u16, cchPublicId: i32, pwchSystemId: ?[*:0]const u16, cchSystemId: i32, pwchNotationName: ?[*:0]const u16, cchNotationName: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ISAXDTDHandler, pwchName: ?[*:0]const u16, cchName: i32, pwchPublicId: ?[*:0]const u16, cchPublicId: i32, pwchSystemId: ?[*:0]const u16, cchSystemId: i32, pwchNotationName: ?[*:0]const u16, cchNotationName: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISAXDTDHandler_notationDecl(self: *const T, pwchName: ?[*:0]const u16, cchName: i32, pwchPublicId: ?[*:0]const u16, cchPublicId: i32, pwchSystemId: ?[*:0]const u16, cchSystemId: i32) HRESULT { return @as(*const ISAXDTDHandler.VTable, @ptrCast(self.vtable)).notationDecl(@as(*const ISAXDTDHandler, @ptrCast(self)), pwchName, cchName, pwchPublicId, cchPublicId, pwchSystemId, cchSystemId); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISAXDTDHandler_unparsedEntityDecl(self: *const T, pwchName: ?[*:0]const u16, cchName: i32, pwchPublicId: ?[*:0]const u16, cchPublicId: i32, pwchSystemId: ?[*:0]const u16, cchSystemId: i32, pwchNotationName: ?[*:0]const u16, cchNotationName: i32) HRESULT { return @as(*const ISAXDTDHandler.VTable, @ptrCast(self.vtable)).unparsedEntityDecl(@as(*const ISAXDTDHandler, @ptrCast(self)), pwchName, cchName, pwchPublicId, cchPublicId, pwchSystemId, cchSystemId, pwchNotationName, cchNotationName); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_ISAXErrorHandler_Value = Guid.initString("a60511c4-ccf5-479e-98a3-dc8dc545b7d0"); pub const IID_ISAXErrorHandler = &IID_ISAXErrorHandler_Value; pub const ISAXErrorHandler = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, @"error": switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ISAXErrorHandler, pLocator: ?*ISAXLocator, pwchErrorMessage: ?[*:0]const u16, hrErrorCode: HRESULT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ISAXErrorHandler, pLocator: ?*ISAXLocator, pwchErrorMessage: ?[*:0]const u16, hrErrorCode: HRESULT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, fatalError: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ISAXErrorHandler, pLocator: ?*ISAXLocator, pwchErrorMessage: ?[*:0]const u16, hrErrorCode: HRESULT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ISAXErrorHandler, pLocator: ?*ISAXLocator, pwchErrorMessage: ?[*:0]const u16, hrErrorCode: HRESULT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, ignorableWarning: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ISAXErrorHandler, pLocator: ?*ISAXLocator, pwchErrorMessage: ?[*:0]const u16, hrErrorCode: HRESULT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ISAXErrorHandler, pLocator: ?*ISAXLocator, pwchErrorMessage: ?[*:0]const u16, hrErrorCode: HRESULT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISAXErrorHandler_error(self: *const T, pLocator: ?*ISAXLocator, pwchErrorMessage: ?[*:0]const u16, hrErrorCode: HRESULT) HRESULT { return @as(*const ISAXErrorHandler.VTable, @ptrCast(self.vtable)).@"error"(@as(*const ISAXErrorHandler, @ptrCast(self)), pLocator, pwchErrorMessage, hrErrorCode); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISAXErrorHandler_fatalError(self: *const T, pLocator: ?*ISAXLocator, pwchErrorMessage: ?[*:0]const u16, hrErrorCode: HRESULT) HRESULT { return @as(*const ISAXErrorHandler.VTable, @ptrCast(self.vtable)).fatalError(@as(*const ISAXErrorHandler, @ptrCast(self)), pLocator, pwchErrorMessage, hrErrorCode); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISAXErrorHandler_ignorableWarning(self: *const T, pLocator: ?*ISAXLocator, pwchErrorMessage: ?[*:0]const u16, hrErrorCode: HRESULT) HRESULT { return @as(*const ISAXErrorHandler.VTable, @ptrCast(self.vtable)).ignorableWarning(@as(*const ISAXErrorHandler, @ptrCast(self)), pLocator, pwchErrorMessage, hrErrorCode); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_ISAXLexicalHandler_Value = Guid.initString("7f85d5f5-47a8-4497-bda5-84ba04819ea6"); pub const IID_ISAXLexicalHandler = &IID_ISAXLexicalHandler_Value; pub const ISAXLexicalHandler = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, startDTD: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ISAXLexicalHandler, pwchName: ?[*:0]const u16, cchName: i32, pwchPublicId: ?[*:0]const u16, cchPublicId: i32, pwchSystemId: ?[*:0]const u16, cchSystemId: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ISAXLexicalHandler, pwchName: ?[*:0]const u16, cchName: i32, pwchPublicId: ?[*:0]const u16, cchPublicId: i32, pwchSystemId: ?[*:0]const u16, cchSystemId: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, endDTD: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ISAXLexicalHandler, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ISAXLexicalHandler, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, startEntity: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ISAXLexicalHandler, pwchName: ?[*:0]const u16, cchName: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ISAXLexicalHandler, pwchName: ?[*:0]const u16, cchName: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, endEntity: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ISAXLexicalHandler, pwchName: ?[*:0]const u16, cchName: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ISAXLexicalHandler, pwchName: ?[*:0]const u16, cchName: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, startCDATA: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ISAXLexicalHandler, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ISAXLexicalHandler, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, endCDATA: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ISAXLexicalHandler, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ISAXLexicalHandler, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, comment: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ISAXLexicalHandler, pwchChars: ?[*:0]const u16, cchChars: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ISAXLexicalHandler, pwchChars: ?[*:0]const u16, cchChars: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISAXLexicalHandler_startDTD(self: *const T, pwchName: ?[*:0]const u16, cchName: i32, pwchPublicId: ?[*:0]const u16, cchPublicId: i32, pwchSystemId: ?[*:0]const u16, cchSystemId: i32) HRESULT { return @as(*const ISAXLexicalHandler.VTable, @ptrCast(self.vtable)).startDTD(@as(*const ISAXLexicalHandler, @ptrCast(self)), pwchName, cchName, pwchPublicId, cchPublicId, pwchSystemId, cchSystemId); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISAXLexicalHandler_endDTD(self: *const T) HRESULT { return @as(*const ISAXLexicalHandler.VTable, @ptrCast(self.vtable)).endDTD(@as(*const ISAXLexicalHandler, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISAXLexicalHandler_startEntity(self: *const T, pwchName: ?[*:0]const u16, cchName: i32) HRESULT { return @as(*const ISAXLexicalHandler.VTable, @ptrCast(self.vtable)).startEntity(@as(*const ISAXLexicalHandler, @ptrCast(self)), pwchName, cchName); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISAXLexicalHandler_endEntity(self: *const T, pwchName: ?[*:0]const u16, cchName: i32) HRESULT { return @as(*const ISAXLexicalHandler.VTable, @ptrCast(self.vtable)).endEntity(@as(*const ISAXLexicalHandler, @ptrCast(self)), pwchName, cchName); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISAXLexicalHandler_startCDATA(self: *const T) HRESULT { return @as(*const ISAXLexicalHandler.VTable, @ptrCast(self.vtable)).startCDATA(@as(*const ISAXLexicalHandler, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISAXLexicalHandler_endCDATA(self: *const T) HRESULT { return @as(*const ISAXLexicalHandler.VTable, @ptrCast(self.vtable)).endCDATA(@as(*const ISAXLexicalHandler, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISAXLexicalHandler_comment(self: *const T, pwchChars: ?[*:0]const u16, cchChars: i32) HRESULT { return @as(*const ISAXLexicalHandler.VTable, @ptrCast(self.vtable)).comment(@as(*const ISAXLexicalHandler, @ptrCast(self)), pwchChars, cchChars); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_ISAXDeclHandler_Value = Guid.initString("862629ac-771a-47b2-8337-4e6843c1be90"); pub const IID_ISAXDeclHandler = &IID_ISAXDeclHandler_Value; pub const ISAXDeclHandler = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, elementDecl: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ISAXDeclHandler, pwchName: ?[*:0]const u16, cchName: i32, pwchModel: ?[*:0]const u16, cchModel: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ISAXDeclHandler, pwchName: ?[*:0]const u16, cchName: i32, pwchModel: ?[*:0]const u16, cchModel: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, attributeDecl: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ISAXDeclHandler, pwchElementName: ?[*:0]const u16, cchElementName: i32, pwchAttributeName: ?[*:0]const u16, cchAttributeName: i32, pwchType: ?[*:0]const u16, cchType: i32, pwchValueDefault: ?[*:0]const u16, cchValueDefault: i32, pwchValue: ?[*:0]const u16, cchValue: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ISAXDeclHandler, pwchElementName: ?[*:0]const u16, cchElementName: i32, pwchAttributeName: ?[*:0]const u16, cchAttributeName: i32, pwchType: ?[*:0]const u16, cchType: i32, pwchValueDefault: ?[*:0]const u16, cchValueDefault: i32, pwchValue: ?[*:0]const u16, cchValue: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, internalEntityDecl: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ISAXDeclHandler, pwchName: ?[*:0]const u16, cchName: i32, pwchValue: ?[*:0]const u16, cchValue: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ISAXDeclHandler, pwchName: ?[*:0]const u16, cchName: i32, pwchValue: ?[*:0]const u16, cchValue: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, externalEntityDecl: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ISAXDeclHandler, pwchName: ?[*:0]const u16, cchName: i32, pwchPublicId: ?[*:0]const u16, cchPublicId: i32, pwchSystemId: ?[*:0]const u16, cchSystemId: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ISAXDeclHandler, pwchName: ?[*:0]const u16, cchName: i32, pwchPublicId: ?[*:0]const u16, cchPublicId: i32, pwchSystemId: ?[*:0]const u16, cchSystemId: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISAXDeclHandler_elementDecl(self: *const T, pwchName: ?[*:0]const u16, cchName: i32, pwchModel: ?[*:0]const u16, cchModel: i32) HRESULT { return @as(*const ISAXDeclHandler.VTable, @ptrCast(self.vtable)).elementDecl(@as(*const ISAXDeclHandler, @ptrCast(self)), pwchName, cchName, pwchModel, cchModel); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISAXDeclHandler_attributeDecl(self: *const T, pwchElementName: ?[*:0]const u16, cchElementName: i32, pwchAttributeName: ?[*:0]const u16, cchAttributeName: i32, pwchType: ?[*:0]const u16, cchType: i32, pwchValueDefault: ?[*:0]const u16, cchValueDefault: i32, pwchValue: ?[*:0]const u16, cchValue: i32) HRESULT { return @as(*const ISAXDeclHandler.VTable, @ptrCast(self.vtable)).attributeDecl(@as(*const ISAXDeclHandler, @ptrCast(self)), pwchElementName, cchElementName, pwchAttributeName, cchAttributeName, pwchType, cchType, pwchValueDefault, cchValueDefault, pwchValue, cchValue); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISAXDeclHandler_internalEntityDecl(self: *const T, pwchName: ?[*:0]const u16, cchName: i32, pwchValue: ?[*:0]const u16, cchValue: i32) HRESULT { return @as(*const ISAXDeclHandler.VTable, @ptrCast(self.vtable)).internalEntityDecl(@as(*const ISAXDeclHandler, @ptrCast(self)), pwchName, cchName, pwchValue, cchValue); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISAXDeclHandler_externalEntityDecl(self: *const T, pwchName: ?[*:0]const u16, cchName: i32, pwchPublicId: ?[*:0]const u16, cchPublicId: i32, pwchSystemId: ?[*:0]const u16, cchSystemId: i32) HRESULT { return @as(*const ISAXDeclHandler.VTable, @ptrCast(self.vtable)).externalEntityDecl(@as(*const ISAXDeclHandler, @ptrCast(self)), pwchName, cchName, pwchPublicId, cchPublicId, pwchSystemId, cchSystemId); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_ISAXAttributes_Value = Guid.initString("f078abe1-45d2-4832-91ea-4466ce2f25c9"); pub const IID_ISAXAttributes = &IID_ISAXAttributes_Value; pub const ISAXAttributes = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, getLength: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ISAXAttributes, pnLength: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ISAXAttributes, pnLength: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, getURI: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ISAXAttributes, nIndex: i32, ppwchUri: ?*const ?*u16, pcchUri: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ISAXAttributes, nIndex: i32, ppwchUri: ?*const ?*u16, pcchUri: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, getLocalName: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ISAXAttributes, nIndex: i32, ppwchLocalName: ?*const ?*u16, pcchLocalName: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ISAXAttributes, nIndex: i32, ppwchLocalName: ?*const ?*u16, pcchLocalName: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, getQName: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ISAXAttributes, nIndex: i32, ppwchQName: ?*const ?*u16, pcchQName: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ISAXAttributes, nIndex: i32, ppwchQName: ?*const ?*u16, pcchQName: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, getName: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ISAXAttributes, nIndex: i32, ppwchUri: ?*const ?*u16, pcchUri: ?*i32, ppwchLocalName: ?*const ?*u16, pcchLocalName: ?*i32, ppwchQName: ?*const ?*u16, pcchQName: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ISAXAttributes, nIndex: i32, ppwchUri: ?*const ?*u16, pcchUri: ?*i32, ppwchLocalName: ?*const ?*u16, pcchLocalName: ?*i32, ppwchQName: ?*const ?*u16, pcchQName: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, getIndexFromName: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ISAXAttributes, pwchUri: ?[*:0]const u16, cchUri: i32, pwchLocalName: ?[*:0]const u16, cchLocalName: i32, pnIndex: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ISAXAttributes, pwchUri: ?[*:0]const u16, cchUri: i32, pwchLocalName: ?[*:0]const u16, cchLocalName: i32, pnIndex: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, getIndexFromQName: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ISAXAttributes, pwchQName: ?[*:0]const u16, cchQName: i32, pnIndex: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ISAXAttributes, pwchQName: ?[*:0]const u16, cchQName: i32, pnIndex: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, getType: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ISAXAttributes, nIndex: i32, ppwchType: ?*const ?*u16, pcchType: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ISAXAttributes, nIndex: i32, ppwchType: ?*const ?*u16, pcchType: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, getTypeFromName: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ISAXAttributes, pwchUri: ?[*:0]const u16, cchUri: i32, pwchLocalName: ?[*:0]const u16, cchLocalName: i32, ppwchType: ?*const ?*u16, pcchType: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ISAXAttributes, pwchUri: ?[*:0]const u16, cchUri: i32, pwchLocalName: ?[*:0]const u16, cchLocalName: i32, ppwchType: ?*const ?*u16, pcchType: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, getTypeFromQName: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ISAXAttributes, pwchQName: ?[*:0]const u16, cchQName: i32, ppwchType: ?*const ?*u16, pcchType: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ISAXAttributes, pwchQName: ?[*:0]const u16, cchQName: i32, ppwchType: ?*const ?*u16, pcchType: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, getValue: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ISAXAttributes, nIndex: i32, ppwchValue: ?*const ?*u16, pcchValue: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ISAXAttributes, nIndex: i32, ppwchValue: ?*const ?*u16, pcchValue: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, getValueFromName: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ISAXAttributes, pwchUri: ?[*:0]const u16, cchUri: i32, pwchLocalName: ?[*:0]const u16, cchLocalName: i32, ppwchValue: ?*const ?*u16, pcchValue: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ISAXAttributes, pwchUri: ?[*:0]const u16, cchUri: i32, pwchLocalName: ?[*:0]const u16, cchLocalName: i32, ppwchValue: ?*const ?*u16, pcchValue: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, getValueFromQName: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ISAXAttributes, pwchQName: ?[*:0]const u16, cchQName: i32, ppwchValue: ?*const ?*u16, pcchValue: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ISAXAttributes, pwchQName: ?[*:0]const u16, cchQName: i32, ppwchValue: ?*const ?*u16, pcchValue: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISAXAttributes_getLength(self: *const T, pnLength: ?*i32) HRESULT { return @as(*const ISAXAttributes.VTable, @ptrCast(self.vtable)).getLength(@as(*const ISAXAttributes, @ptrCast(self)), pnLength); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISAXAttributes_getURI(self: *const T, nIndex: i32, ppwchUri: ?*const ?*u16, pcchUri: ?*i32) HRESULT { return @as(*const ISAXAttributes.VTable, @ptrCast(self.vtable)).getURI(@as(*const ISAXAttributes, @ptrCast(self)), nIndex, ppwchUri, pcchUri); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISAXAttributes_getLocalName(self: *const T, nIndex: i32, ppwchLocalName: ?*const ?*u16, pcchLocalName: ?*i32) HRESULT { return @as(*const ISAXAttributes.VTable, @ptrCast(self.vtable)).getLocalName(@as(*const ISAXAttributes, @ptrCast(self)), nIndex, ppwchLocalName, pcchLocalName); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISAXAttributes_getQName(self: *const T, nIndex: i32, ppwchQName: ?*const ?*u16, pcchQName: ?*i32) HRESULT { return @as(*const ISAXAttributes.VTable, @ptrCast(self.vtable)).getQName(@as(*const ISAXAttributes, @ptrCast(self)), nIndex, ppwchQName, pcchQName); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISAXAttributes_getName(self: *const T, nIndex: i32, ppwchUri: ?*const ?*u16, pcchUri: ?*i32, ppwchLocalName: ?*const ?*u16, pcchLocalName: ?*i32, ppwchQName: ?*const ?*u16, pcchQName: ?*i32) HRESULT { return @as(*const ISAXAttributes.VTable, @ptrCast(self.vtable)).getName(@as(*const ISAXAttributes, @ptrCast(self)), nIndex, ppwchUri, pcchUri, ppwchLocalName, pcchLocalName, ppwchQName, pcchQName); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISAXAttributes_getIndexFromName(self: *const T, pwchUri: ?[*:0]const u16, cchUri: i32, pwchLocalName: ?[*:0]const u16, cchLocalName: i32, pnIndex: ?*i32) HRESULT { return @as(*const ISAXAttributes.VTable, @ptrCast(self.vtable)).getIndexFromName(@as(*const ISAXAttributes, @ptrCast(self)), pwchUri, cchUri, pwchLocalName, cchLocalName, pnIndex); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISAXAttributes_getIndexFromQName(self: *const T, pwchQName: ?[*:0]const u16, cchQName: i32, pnIndex: ?*i32) HRESULT { return @as(*const ISAXAttributes.VTable, @ptrCast(self.vtable)).getIndexFromQName(@as(*const ISAXAttributes, @ptrCast(self)), pwchQName, cchQName, pnIndex); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISAXAttributes_getType(self: *const T, nIndex: i32, ppwchType: ?*const ?*u16, pcchType: ?*i32) HRESULT { return @as(*const ISAXAttributes.VTable, @ptrCast(self.vtable)).getType(@as(*const ISAXAttributes, @ptrCast(self)), nIndex, ppwchType, pcchType); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISAXAttributes_getTypeFromName(self: *const T, pwchUri: ?[*:0]const u16, cchUri: i32, pwchLocalName: ?[*:0]const u16, cchLocalName: i32, ppwchType: ?*const ?*u16, pcchType: ?*i32) HRESULT { return @as(*const ISAXAttributes.VTable, @ptrCast(self.vtable)).getTypeFromName(@as(*const ISAXAttributes, @ptrCast(self)), pwchUri, cchUri, pwchLocalName, cchLocalName, ppwchType, pcchType); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISAXAttributes_getTypeFromQName(self: *const T, pwchQName: ?[*:0]const u16, cchQName: i32, ppwchType: ?*const ?*u16, pcchType: ?*i32) HRESULT { return @as(*const ISAXAttributes.VTable, @ptrCast(self.vtable)).getTypeFromQName(@as(*const ISAXAttributes, @ptrCast(self)), pwchQName, cchQName, ppwchType, pcchType); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISAXAttributes_getValue(self: *const T, nIndex: i32, ppwchValue: ?*const ?*u16, pcchValue: ?*i32) HRESULT { return @as(*const ISAXAttributes.VTable, @ptrCast(self.vtable)).getValue(@as(*const ISAXAttributes, @ptrCast(self)), nIndex, ppwchValue, pcchValue); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISAXAttributes_getValueFromName(self: *const T, pwchUri: ?[*:0]const u16, cchUri: i32, pwchLocalName: ?[*:0]const u16, cchLocalName: i32, ppwchValue: ?*const ?*u16, pcchValue: ?*i32) HRESULT { return @as(*const ISAXAttributes.VTable, @ptrCast(self.vtable)).getValueFromName(@as(*const ISAXAttributes, @ptrCast(self)), pwchUri, cchUri, pwchLocalName, cchLocalName, ppwchValue, pcchValue); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISAXAttributes_getValueFromQName(self: *const T, pwchQName: ?[*:0]const u16, cchQName: i32, ppwchValue: ?*const ?*u16, pcchValue: ?*i32) HRESULT { return @as(*const ISAXAttributes.VTable, @ptrCast(self.vtable)).getValueFromQName(@as(*const ISAXAttributes, @ptrCast(self)), pwchQName, cchQName, ppwchValue, pcchValue); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IVBSAXXMLReader_Value = Guid.initString("8c033caa-6cd6-4f73-b728-4531af74945f"); pub const IID_IVBSAXXMLReader = &IID_IVBSAXXMLReader_Value; pub const IVBSAXXMLReader = extern struct { pub const VTable = extern struct { base: IDispatch.VTable, getFeature: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IVBSAXXMLReader, strName: ?BSTR, fValue: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IVBSAXXMLReader, strName: ?BSTR, fValue: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, putFeature: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IVBSAXXMLReader, strName: ?BSTR, fValue: i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IVBSAXXMLReader, strName: ?BSTR, fValue: i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, getProperty: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IVBSAXXMLReader, strName: ?BSTR, varValue: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IVBSAXXMLReader, strName: ?BSTR, varValue: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, putProperty: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IVBSAXXMLReader, strName: ?BSTR, varValue: VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IVBSAXXMLReader, strName: ?BSTR, varValue: VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_entityResolver: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IVBSAXXMLReader, oResolver: ?*?*IVBSAXEntityResolver, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IVBSAXXMLReader, oResolver: ?*?*IVBSAXEntityResolver, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, putref_entityResolver: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IVBSAXXMLReader, oResolver: ?*IVBSAXEntityResolver, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IVBSAXXMLReader, oResolver: ?*IVBSAXEntityResolver, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_contentHandler: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IVBSAXXMLReader, oHandler: ?*?*IVBSAXContentHandler, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IVBSAXXMLReader, oHandler: ?*?*IVBSAXContentHandler, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, putref_contentHandler: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IVBSAXXMLReader, oHandler: ?*IVBSAXContentHandler, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IVBSAXXMLReader, oHandler: ?*IVBSAXContentHandler, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_dtdHandler: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IVBSAXXMLReader, oHandler: ?*?*IVBSAXDTDHandler, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IVBSAXXMLReader, oHandler: ?*?*IVBSAXDTDHandler, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, putref_dtdHandler: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IVBSAXXMLReader, oHandler: ?*IVBSAXDTDHandler, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IVBSAXXMLReader, oHandler: ?*IVBSAXDTDHandler, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_errorHandler: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IVBSAXXMLReader, oHandler: ?*?*IVBSAXErrorHandler, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IVBSAXXMLReader, oHandler: ?*?*IVBSAXErrorHandler, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, putref_errorHandler: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IVBSAXXMLReader, oHandler: ?*IVBSAXErrorHandler, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IVBSAXXMLReader, oHandler: ?*IVBSAXErrorHandler, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_baseURL: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IVBSAXXMLReader, strBaseURL: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IVBSAXXMLReader, strBaseURL: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_baseURL: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IVBSAXXMLReader, strBaseURL: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IVBSAXXMLReader, strBaseURL: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_secureBaseURL: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IVBSAXXMLReader, strSecureBaseURL: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IVBSAXXMLReader, strSecureBaseURL: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_secureBaseURL: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IVBSAXXMLReader, strSecureBaseURL: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IVBSAXXMLReader, strSecureBaseURL: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, parse: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IVBSAXXMLReader, varInput: VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IVBSAXXMLReader, varInput: VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, parseURL: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IVBSAXXMLReader, strURL: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IVBSAXXMLReader, strURL: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IDispatch.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IVBSAXXMLReader_getFeature(self: *const T, strName: ?BSTR, fValue: ?*i16) HRESULT { return @as(*const IVBSAXXMLReader.VTable, @ptrCast(self.vtable)).getFeature(@as(*const IVBSAXXMLReader, @ptrCast(self)), strName, fValue); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IVBSAXXMLReader_putFeature(self: *const T, strName: ?BSTR, fValue: i16) HRESULT { return @as(*const IVBSAXXMLReader.VTable, @ptrCast(self.vtable)).putFeature(@as(*const IVBSAXXMLReader, @ptrCast(self)), strName, fValue); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IVBSAXXMLReader_getProperty(self: *const T, strName: ?BSTR, varValue: ?*VARIANT) HRESULT { return @as(*const IVBSAXXMLReader.VTable, @ptrCast(self.vtable)).getProperty(@as(*const IVBSAXXMLReader, @ptrCast(self)), strName, varValue); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IVBSAXXMLReader_putProperty(self: *const T, strName: ?BSTR, varValue: VARIANT) HRESULT { return @as(*const IVBSAXXMLReader.VTable, @ptrCast(self.vtable)).putProperty(@as(*const IVBSAXXMLReader, @ptrCast(self)), strName, varValue); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IVBSAXXMLReader_get_entityResolver(self: *const T, oResolver: ?*?*IVBSAXEntityResolver) HRESULT { return @as(*const IVBSAXXMLReader.VTable, @ptrCast(self.vtable)).get_entityResolver(@as(*const IVBSAXXMLReader, @ptrCast(self)), oResolver); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IVBSAXXMLReader_putref_entityResolver(self: *const T, oResolver: ?*IVBSAXEntityResolver) HRESULT { return @as(*const IVBSAXXMLReader.VTable, @ptrCast(self.vtable)).putref_entityResolver(@as(*const IVBSAXXMLReader, @ptrCast(self)), oResolver); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IVBSAXXMLReader_get_contentHandler(self: *const T, oHandler: ?*?*IVBSAXContentHandler) HRESULT { return @as(*const IVBSAXXMLReader.VTable, @ptrCast(self.vtable)).get_contentHandler(@as(*const IVBSAXXMLReader, @ptrCast(self)), oHandler); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IVBSAXXMLReader_putref_contentHandler(self: *const T, oHandler: ?*IVBSAXContentHandler) HRESULT { return @as(*const IVBSAXXMLReader.VTable, @ptrCast(self.vtable)).putref_contentHandler(@as(*const IVBSAXXMLReader, @ptrCast(self)), oHandler); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IVBSAXXMLReader_get_dtdHandler(self: *const T, oHandler: ?*?*IVBSAXDTDHandler) HRESULT { return @as(*const IVBSAXXMLReader.VTable, @ptrCast(self.vtable)).get_dtdHandler(@as(*const IVBSAXXMLReader, @ptrCast(self)), oHandler); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IVBSAXXMLReader_putref_dtdHandler(self: *const T, oHandler: ?*IVBSAXDTDHandler) HRESULT { return @as(*const IVBSAXXMLReader.VTable, @ptrCast(self.vtable)).putref_dtdHandler(@as(*const IVBSAXXMLReader, @ptrCast(self)), oHandler); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IVBSAXXMLReader_get_errorHandler(self: *const T, oHandler: ?*?*IVBSAXErrorHandler) HRESULT { return @as(*const IVBSAXXMLReader.VTable, @ptrCast(self.vtable)).get_errorHandler(@as(*const IVBSAXXMLReader, @ptrCast(self)), oHandler); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IVBSAXXMLReader_putref_errorHandler(self: *const T, oHandler: ?*IVBSAXErrorHandler) HRESULT { return @as(*const IVBSAXXMLReader.VTable, @ptrCast(self.vtable)).putref_errorHandler(@as(*const IVBSAXXMLReader, @ptrCast(self)), oHandler); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IVBSAXXMLReader_get_baseURL(self: *const T, strBaseURL: ?*?BSTR) HRESULT { return @as(*const IVBSAXXMLReader.VTable, @ptrCast(self.vtable)).get_baseURL(@as(*const IVBSAXXMLReader, @ptrCast(self)), strBaseURL); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IVBSAXXMLReader_put_baseURL(self: *const T, strBaseURL: ?BSTR) HRESULT { return @as(*const IVBSAXXMLReader.VTable, @ptrCast(self.vtable)).put_baseURL(@as(*const IVBSAXXMLReader, @ptrCast(self)), strBaseURL); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IVBSAXXMLReader_get_secureBaseURL(self: *const T, strSecureBaseURL: ?*?BSTR) HRESULT { return @as(*const IVBSAXXMLReader.VTable, @ptrCast(self.vtable)).get_secureBaseURL(@as(*const IVBSAXXMLReader, @ptrCast(self)), strSecureBaseURL); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IVBSAXXMLReader_put_secureBaseURL(self: *const T, strSecureBaseURL: ?BSTR) HRESULT { return @as(*const IVBSAXXMLReader.VTable, @ptrCast(self.vtable)).put_secureBaseURL(@as(*const IVBSAXXMLReader, @ptrCast(self)), strSecureBaseURL); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IVBSAXXMLReader_parse(self: *const T, varInput: VARIANT) HRESULT { return @as(*const IVBSAXXMLReader.VTable, @ptrCast(self.vtable)).parse(@as(*const IVBSAXXMLReader, @ptrCast(self)), varInput); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IVBSAXXMLReader_parseURL(self: *const T, strURL: ?BSTR) HRESULT { return @as(*const IVBSAXXMLReader.VTable, @ptrCast(self.vtable)).parseURL(@as(*const IVBSAXXMLReader, @ptrCast(self)), strURL); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IVBSAXXMLFilter_Value = Guid.initString("1299eb1b-5b88-433e-82de-82ca75ad4e04"); pub const IID_IVBSAXXMLFilter = &IID_IVBSAXXMLFilter_Value; pub const IVBSAXXMLFilter = extern struct { pub const VTable = extern struct { base: IDispatch.VTable, // TODO: this function has a "SpecialName", should Zig do anything with this? get_parent: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IVBSAXXMLFilter, oReader: ?*?*IVBSAXXMLReader, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IVBSAXXMLFilter, oReader: ?*?*IVBSAXXMLReader, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, putref_parent: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IVBSAXXMLFilter, oReader: ?*IVBSAXXMLReader, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IVBSAXXMLFilter, oReader: ?*IVBSAXXMLReader, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IDispatch.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IVBSAXXMLFilter_get_parent(self: *const T, oReader: ?*?*IVBSAXXMLReader) HRESULT { return @as(*const IVBSAXXMLFilter.VTable, @ptrCast(self.vtable)).get_parent(@as(*const IVBSAXXMLFilter, @ptrCast(self)), oReader); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IVBSAXXMLFilter_putref_parent(self: *const T, oReader: ?*IVBSAXXMLReader) HRESULT { return @as(*const IVBSAXXMLFilter.VTable, @ptrCast(self.vtable)).putref_parent(@as(*const IVBSAXXMLFilter, @ptrCast(self)), oReader); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IVBSAXLocator_Value = Guid.initString("796e7ac5-5aa2-4eff-acad-3faaf01a3288"); pub const IID_IVBSAXLocator = &IID_IVBSAXLocator_Value; pub const IVBSAXLocator = extern struct { pub const VTable = extern struct { base: IDispatch.VTable, // TODO: this function has a "SpecialName", should Zig do anything with this? get_columnNumber: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IVBSAXLocator, nColumn: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IVBSAXLocator, nColumn: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_lineNumber: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IVBSAXLocator, nLine: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IVBSAXLocator, nLine: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_publicId: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IVBSAXLocator, strPublicId: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IVBSAXLocator, strPublicId: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_systemId: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IVBSAXLocator, strSystemId: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IVBSAXLocator, strSystemId: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IDispatch.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IVBSAXLocator_get_columnNumber(self: *const T, nColumn: ?*i32) HRESULT { return @as(*const IVBSAXLocator.VTable, @ptrCast(self.vtable)).get_columnNumber(@as(*const IVBSAXLocator, @ptrCast(self)), nColumn); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IVBSAXLocator_get_lineNumber(self: *const T, nLine: ?*i32) HRESULT { return @as(*const IVBSAXLocator.VTable, @ptrCast(self.vtable)).get_lineNumber(@as(*const IVBSAXLocator, @ptrCast(self)), nLine); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IVBSAXLocator_get_publicId(self: *const T, strPublicId: ?*?BSTR) HRESULT { return @as(*const IVBSAXLocator.VTable, @ptrCast(self.vtable)).get_publicId(@as(*const IVBSAXLocator, @ptrCast(self)), strPublicId); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IVBSAXLocator_get_systemId(self: *const T, strSystemId: ?*?BSTR) HRESULT { return @as(*const IVBSAXLocator.VTable, @ptrCast(self.vtable)).get_systemId(@as(*const IVBSAXLocator, @ptrCast(self)), strSystemId); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IVBSAXEntityResolver_Value = Guid.initString("0c05d096-f45b-4aca-ad1a-aa0bc25518dc"); pub const IID_IVBSAXEntityResolver = &IID_IVBSAXEntityResolver_Value; pub const IVBSAXEntityResolver = extern struct { pub const VTable = extern struct { base: IDispatch.VTable, resolveEntity: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IVBSAXEntityResolver, strPublicId: ?*?BSTR, strSystemId: ?*?BSTR, varInput: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IVBSAXEntityResolver, strPublicId: ?*?BSTR, strSystemId: ?*?BSTR, varInput: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IDispatch.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IVBSAXEntityResolver_resolveEntity(self: *const T, strPublicId: ?*?BSTR, strSystemId: ?*?BSTR, varInput: ?*VARIANT) HRESULT { return @as(*const IVBSAXEntityResolver.VTable, @ptrCast(self.vtable)).resolveEntity(@as(*const IVBSAXEntityResolver, @ptrCast(self)), strPublicId, strSystemId, varInput); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IVBSAXContentHandler_Value = Guid.initString("2ed7290a-4dd5-4b46-bb26-4e4155e77faa"); pub const IID_IVBSAXContentHandler = &IID_IVBSAXContentHandler_Value; pub const IVBSAXContentHandler = extern struct { pub const VTable = extern struct { base: IDispatch.VTable, putref_documentLocator: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IVBSAXContentHandler, oLocator: ?*IVBSAXLocator, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IVBSAXContentHandler, oLocator: ?*IVBSAXLocator, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, startDocument: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IVBSAXContentHandler, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IVBSAXContentHandler, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, endDocument: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IVBSAXContentHandler, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IVBSAXContentHandler, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, startPrefixMapping: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IVBSAXContentHandler, strPrefix: ?*?BSTR, strURI: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IVBSAXContentHandler, strPrefix: ?*?BSTR, strURI: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, endPrefixMapping: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IVBSAXContentHandler, strPrefix: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IVBSAXContentHandler, strPrefix: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, startElement: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IVBSAXContentHandler, strNamespaceURI: ?*?BSTR, strLocalName: ?*?BSTR, strQName: ?*?BSTR, oAttributes: ?*IVBSAXAttributes, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IVBSAXContentHandler, strNamespaceURI: ?*?BSTR, strLocalName: ?*?BSTR, strQName: ?*?BSTR, oAttributes: ?*IVBSAXAttributes, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, endElement: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IVBSAXContentHandler, strNamespaceURI: ?*?BSTR, strLocalName: ?*?BSTR, strQName: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IVBSAXContentHandler, strNamespaceURI: ?*?BSTR, strLocalName: ?*?BSTR, strQName: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, characters: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IVBSAXContentHandler, strChars: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IVBSAXContentHandler, strChars: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, ignorableWhitespace: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IVBSAXContentHandler, strChars: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IVBSAXContentHandler, strChars: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, processingInstruction: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IVBSAXContentHandler, strTarget: ?*?BSTR, strData: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IVBSAXContentHandler, strTarget: ?*?BSTR, strData: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, skippedEntity: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IVBSAXContentHandler, strName: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IVBSAXContentHandler, strName: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IDispatch.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IVBSAXContentHandler_putref_documentLocator(self: *const T, oLocator: ?*IVBSAXLocator) HRESULT { return @as(*const IVBSAXContentHandler.VTable, @ptrCast(self.vtable)).putref_documentLocator(@as(*const IVBSAXContentHandler, @ptrCast(self)), oLocator); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IVBSAXContentHandler_startDocument(self: *const T) HRESULT { return @as(*const IVBSAXContentHandler.VTable, @ptrCast(self.vtable)).startDocument(@as(*const IVBSAXContentHandler, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IVBSAXContentHandler_endDocument(self: *const T) HRESULT { return @as(*const IVBSAXContentHandler.VTable, @ptrCast(self.vtable)).endDocument(@as(*const IVBSAXContentHandler, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IVBSAXContentHandler_startPrefixMapping(self: *const T, strPrefix: ?*?BSTR, strURI: ?*?BSTR) HRESULT { return @as(*const IVBSAXContentHandler.VTable, @ptrCast(self.vtable)).startPrefixMapping(@as(*const IVBSAXContentHandler, @ptrCast(self)), strPrefix, strURI); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IVBSAXContentHandler_endPrefixMapping(self: *const T, strPrefix: ?*?BSTR) HRESULT { return @as(*const IVBSAXContentHandler.VTable, @ptrCast(self.vtable)).endPrefixMapping(@as(*const IVBSAXContentHandler, @ptrCast(self)), strPrefix); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IVBSAXContentHandler_startElement(self: *const T, strNamespaceURI: ?*?BSTR, strLocalName: ?*?BSTR, strQName: ?*?BSTR, oAttributes: ?*IVBSAXAttributes) HRESULT { return @as(*const IVBSAXContentHandler.VTable, @ptrCast(self.vtable)).startElement(@as(*const IVBSAXContentHandler, @ptrCast(self)), strNamespaceURI, strLocalName, strQName, oAttributes); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IVBSAXContentHandler_endElement(self: *const T, strNamespaceURI: ?*?BSTR, strLocalName: ?*?BSTR, strQName: ?*?BSTR) HRESULT { return @as(*const IVBSAXContentHandler.VTable, @ptrCast(self.vtable)).endElement(@as(*const IVBSAXContentHandler, @ptrCast(self)), strNamespaceURI, strLocalName, strQName); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IVBSAXContentHandler_characters(self: *const T, strChars: ?*?BSTR) HRESULT { return @as(*const IVBSAXContentHandler.VTable, @ptrCast(self.vtable)).characters(@as(*const IVBSAXContentHandler, @ptrCast(self)), strChars); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IVBSAXContentHandler_ignorableWhitespace(self: *const T, strChars: ?*?BSTR) HRESULT { return @as(*const IVBSAXContentHandler.VTable, @ptrCast(self.vtable)).ignorableWhitespace(@as(*const IVBSAXContentHandler, @ptrCast(self)), strChars); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IVBSAXContentHandler_processingInstruction(self: *const T, strTarget: ?*?BSTR, strData: ?*?BSTR) HRESULT { return @as(*const IVBSAXContentHandler.VTable, @ptrCast(self.vtable)).processingInstruction(@as(*const IVBSAXContentHandler, @ptrCast(self)), strTarget, strData); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IVBSAXContentHandler_skippedEntity(self: *const T, strName: ?*?BSTR) HRESULT { return @as(*const IVBSAXContentHandler.VTable, @ptrCast(self.vtable)).skippedEntity(@as(*const IVBSAXContentHandler, @ptrCast(self)), strName); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IVBSAXDTDHandler_Value = Guid.initString("24fb3297-302d-4620-ba39-3a732d850558"); pub const IID_IVBSAXDTDHandler = &IID_IVBSAXDTDHandler_Value; pub const IVBSAXDTDHandler = extern struct { pub const VTable = extern struct { base: IDispatch.VTable, notationDecl: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IVBSAXDTDHandler, strName: ?*?BSTR, strPublicId: ?*?BSTR, strSystemId: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IVBSAXDTDHandler, strName: ?*?BSTR, strPublicId: ?*?BSTR, strSystemId: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, unparsedEntityDecl: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IVBSAXDTDHandler, strName: ?*?BSTR, strPublicId: ?*?BSTR, strSystemId: ?*?BSTR, strNotationName: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IVBSAXDTDHandler, strName: ?*?BSTR, strPublicId: ?*?BSTR, strSystemId: ?*?BSTR, strNotationName: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IDispatch.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IVBSAXDTDHandler_notationDecl(self: *const T, strName: ?*?BSTR, strPublicId: ?*?BSTR, strSystemId: ?*?BSTR) HRESULT { return @as(*const IVBSAXDTDHandler.VTable, @ptrCast(self.vtable)).notationDecl(@as(*const IVBSAXDTDHandler, @ptrCast(self)), strName, strPublicId, strSystemId); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IVBSAXDTDHandler_unparsedEntityDecl(self: *const T, strName: ?*?BSTR, strPublicId: ?*?BSTR, strSystemId: ?*?BSTR, strNotationName: ?*?BSTR) HRESULT { return @as(*const IVBSAXDTDHandler.VTable, @ptrCast(self.vtable)).unparsedEntityDecl(@as(*const IVBSAXDTDHandler, @ptrCast(self)), strName, strPublicId, strSystemId, strNotationName); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IVBSAXErrorHandler_Value = Guid.initString("d963d3fe-173c-4862-9095-b92f66995f52"); pub const IID_IVBSAXErrorHandler = &IID_IVBSAXErrorHandler_Value; pub const IVBSAXErrorHandler = extern struct { pub const VTable = extern struct { base: IDispatch.VTable, @"error": switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IVBSAXErrorHandler, oLocator: ?*IVBSAXLocator, strErrorMessage: ?*?BSTR, nErrorCode: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IVBSAXErrorHandler, oLocator: ?*IVBSAXLocator, strErrorMessage: ?*?BSTR, nErrorCode: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, fatalError: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IVBSAXErrorHandler, oLocator: ?*IVBSAXLocator, strErrorMessage: ?*?BSTR, nErrorCode: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IVBSAXErrorHandler, oLocator: ?*IVBSAXLocator, strErrorMessage: ?*?BSTR, nErrorCode: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, ignorableWarning: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IVBSAXErrorHandler, oLocator: ?*IVBSAXLocator, strErrorMessage: ?*?BSTR, nErrorCode: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IVBSAXErrorHandler, oLocator: ?*IVBSAXLocator, strErrorMessage: ?*?BSTR, nErrorCode: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IDispatch.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IVBSAXErrorHandler_error(self: *const T, oLocator: ?*IVBSAXLocator, strErrorMessage: ?*?BSTR, nErrorCode: i32) HRESULT { return @as(*const IVBSAXErrorHandler.VTable, @ptrCast(self.vtable)).@"error"(@as(*const IVBSAXErrorHandler, @ptrCast(self)), oLocator, strErrorMessage, nErrorCode); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IVBSAXErrorHandler_fatalError(self: *const T, oLocator: ?*IVBSAXLocator, strErrorMessage: ?*?BSTR, nErrorCode: i32) HRESULT { return @as(*const IVBSAXErrorHandler.VTable, @ptrCast(self.vtable)).fatalError(@as(*const IVBSAXErrorHandler, @ptrCast(self)), oLocator, strErrorMessage, nErrorCode); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IVBSAXErrorHandler_ignorableWarning(self: *const T, oLocator: ?*IVBSAXLocator, strErrorMessage: ?*?BSTR, nErrorCode: i32) HRESULT { return @as(*const IVBSAXErrorHandler.VTable, @ptrCast(self.vtable)).ignorableWarning(@as(*const IVBSAXErrorHandler, @ptrCast(self)), oLocator, strErrorMessage, nErrorCode); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IVBSAXLexicalHandler_Value = Guid.initString("032aac35-8c0e-4d9d-979f-e3b702935576"); pub const IID_IVBSAXLexicalHandler = &IID_IVBSAXLexicalHandler_Value; pub const IVBSAXLexicalHandler = extern struct { pub const VTable = extern struct { base: IDispatch.VTable, startDTD: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IVBSAXLexicalHandler, strName: ?*?BSTR, strPublicId: ?*?BSTR, strSystemId: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IVBSAXLexicalHandler, strName: ?*?BSTR, strPublicId: ?*?BSTR, strSystemId: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, endDTD: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IVBSAXLexicalHandler, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IVBSAXLexicalHandler, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, startEntity: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IVBSAXLexicalHandler, strName: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IVBSAXLexicalHandler, strName: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, endEntity: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IVBSAXLexicalHandler, strName: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IVBSAXLexicalHandler, strName: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, startCDATA: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IVBSAXLexicalHandler, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IVBSAXLexicalHandler, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, endCDATA: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IVBSAXLexicalHandler, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IVBSAXLexicalHandler, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, comment: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IVBSAXLexicalHandler, strChars: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IVBSAXLexicalHandler, strChars: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IDispatch.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IVBSAXLexicalHandler_startDTD(self: *const T, strName: ?*?BSTR, strPublicId: ?*?BSTR, strSystemId: ?*?BSTR) HRESULT { return @as(*const IVBSAXLexicalHandler.VTable, @ptrCast(self.vtable)).startDTD(@as(*const IVBSAXLexicalHandler, @ptrCast(self)), strName, strPublicId, strSystemId); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IVBSAXLexicalHandler_endDTD(self: *const T) HRESULT { return @as(*const IVBSAXLexicalHandler.VTable, @ptrCast(self.vtable)).endDTD(@as(*const IVBSAXLexicalHandler, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IVBSAXLexicalHandler_startEntity(self: *const T, strName: ?*?BSTR) HRESULT { return @as(*const IVBSAXLexicalHandler.VTable, @ptrCast(self.vtable)).startEntity(@as(*const IVBSAXLexicalHandler, @ptrCast(self)), strName); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IVBSAXLexicalHandler_endEntity(self: *const T, strName: ?*?BSTR) HRESULT { return @as(*const IVBSAXLexicalHandler.VTable, @ptrCast(self.vtable)).endEntity(@as(*const IVBSAXLexicalHandler, @ptrCast(self)), strName); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IVBSAXLexicalHandler_startCDATA(self: *const T) HRESULT { return @as(*const IVBSAXLexicalHandler.VTable, @ptrCast(self.vtable)).startCDATA(@as(*const IVBSAXLexicalHandler, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IVBSAXLexicalHandler_endCDATA(self: *const T) HRESULT { return @as(*const IVBSAXLexicalHandler.VTable, @ptrCast(self.vtable)).endCDATA(@as(*const IVBSAXLexicalHandler, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IVBSAXLexicalHandler_comment(self: *const T, strChars: ?*?BSTR) HRESULT { return @as(*const IVBSAXLexicalHandler.VTable, @ptrCast(self.vtable)).comment(@as(*const IVBSAXLexicalHandler, @ptrCast(self)), strChars); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IVBSAXDeclHandler_Value = Guid.initString("e8917260-7579-4be1-b5dd-7afbfa6f077b"); pub const IID_IVBSAXDeclHandler = &IID_IVBSAXDeclHandler_Value; pub const IVBSAXDeclHandler = extern struct { pub const VTable = extern struct { base: IDispatch.VTable, elementDecl: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IVBSAXDeclHandler, strName: ?*?BSTR, strModel: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IVBSAXDeclHandler, strName: ?*?BSTR, strModel: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, attributeDecl: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IVBSAXDeclHandler, strElementName: ?*?BSTR, strAttributeName: ?*?BSTR, strType: ?*?BSTR, strValueDefault: ?*?BSTR, strValue: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IVBSAXDeclHandler, strElementName: ?*?BSTR, strAttributeName: ?*?BSTR, strType: ?*?BSTR, strValueDefault: ?*?BSTR, strValue: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, internalEntityDecl: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IVBSAXDeclHandler, strName: ?*?BSTR, strValue: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IVBSAXDeclHandler, strName: ?*?BSTR, strValue: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, externalEntityDecl: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IVBSAXDeclHandler, strName: ?*?BSTR, strPublicId: ?*?BSTR, strSystemId: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IVBSAXDeclHandler, strName: ?*?BSTR, strPublicId: ?*?BSTR, strSystemId: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IDispatch.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IVBSAXDeclHandler_elementDecl(self: *const T, strName: ?*?BSTR, strModel: ?*?BSTR) HRESULT { return @as(*const IVBSAXDeclHandler.VTable, @ptrCast(self.vtable)).elementDecl(@as(*const IVBSAXDeclHandler, @ptrCast(self)), strName, strModel); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IVBSAXDeclHandler_attributeDecl(self: *const T, strElementName: ?*?BSTR, strAttributeName: ?*?BSTR, strType: ?*?BSTR, strValueDefault: ?*?BSTR, strValue: ?*?BSTR) HRESULT { return @as(*const IVBSAXDeclHandler.VTable, @ptrCast(self.vtable)).attributeDecl(@as(*const IVBSAXDeclHandler, @ptrCast(self)), strElementName, strAttributeName, strType, strValueDefault, strValue); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IVBSAXDeclHandler_internalEntityDecl(self: *const T, strName: ?*?BSTR, strValue: ?*?BSTR) HRESULT { return @as(*const IVBSAXDeclHandler.VTable, @ptrCast(self.vtable)).internalEntityDecl(@as(*const IVBSAXDeclHandler, @ptrCast(self)), strName, strValue); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IVBSAXDeclHandler_externalEntityDecl(self: *const T, strName: ?*?BSTR, strPublicId: ?*?BSTR, strSystemId: ?*?BSTR) HRESULT { return @as(*const IVBSAXDeclHandler.VTable, @ptrCast(self.vtable)).externalEntityDecl(@as(*const IVBSAXDeclHandler, @ptrCast(self)), strName, strPublicId, strSystemId); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IVBSAXAttributes_Value = Guid.initString("10dc0586-132b-4cac-8bb3-db00ac8b7ee0"); pub const IID_IVBSAXAttributes = &IID_IVBSAXAttributes_Value; pub const IVBSAXAttributes = extern struct { pub const VTable = extern struct { base: IDispatch.VTable, // TODO: this function has a "SpecialName", should Zig do anything with this? get_length: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IVBSAXAttributes, nLength: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IVBSAXAttributes, nLength: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, getURI: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IVBSAXAttributes, nIndex: i32, strURI: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IVBSAXAttributes, nIndex: i32, strURI: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, getLocalName: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IVBSAXAttributes, nIndex: i32, strLocalName: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IVBSAXAttributes, nIndex: i32, strLocalName: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, getQName: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IVBSAXAttributes, nIndex: i32, strQName: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IVBSAXAttributes, nIndex: i32, strQName: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, getIndexFromName: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IVBSAXAttributes, strURI: ?BSTR, strLocalName: ?BSTR, nIndex: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IVBSAXAttributes, strURI: ?BSTR, strLocalName: ?BSTR, nIndex: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, getIndexFromQName: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IVBSAXAttributes, strQName: ?BSTR, nIndex: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IVBSAXAttributes, strQName: ?BSTR, nIndex: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, getType: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IVBSAXAttributes, nIndex: i32, strType: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IVBSAXAttributes, nIndex: i32, strType: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, getTypeFromName: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IVBSAXAttributes, strURI: ?BSTR, strLocalName: ?BSTR, strType: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IVBSAXAttributes, strURI: ?BSTR, strLocalName: ?BSTR, strType: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, getTypeFromQName: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IVBSAXAttributes, strQName: ?BSTR, strType: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IVBSAXAttributes, strQName: ?BSTR, strType: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, getValue: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IVBSAXAttributes, nIndex: i32, strValue: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IVBSAXAttributes, nIndex: i32, strValue: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, getValueFromName: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IVBSAXAttributes, strURI: ?BSTR, strLocalName: ?BSTR, strValue: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IVBSAXAttributes, strURI: ?BSTR, strLocalName: ?BSTR, strValue: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, getValueFromQName: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IVBSAXAttributes, strQName: ?BSTR, strValue: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IVBSAXAttributes, strQName: ?BSTR, strValue: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IDispatch.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IVBSAXAttributes_get_length(self: *const T, nLength: ?*i32) HRESULT { return @as(*const IVBSAXAttributes.VTable, @ptrCast(self.vtable)).get_length(@as(*const IVBSAXAttributes, @ptrCast(self)), nLength); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IVBSAXAttributes_getURI(self: *const T, nIndex: i32, strURI: ?*?BSTR) HRESULT { return @as(*const IVBSAXAttributes.VTable, @ptrCast(self.vtable)).getURI(@as(*const IVBSAXAttributes, @ptrCast(self)), nIndex, strURI); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IVBSAXAttributes_getLocalName(self: *const T, nIndex: i32, strLocalName: ?*?BSTR) HRESULT { return @as(*const IVBSAXAttributes.VTable, @ptrCast(self.vtable)).getLocalName(@as(*const IVBSAXAttributes, @ptrCast(self)), nIndex, strLocalName); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IVBSAXAttributes_getQName(self: *const T, nIndex: i32, strQName: ?*?BSTR) HRESULT { return @as(*const IVBSAXAttributes.VTable, @ptrCast(self.vtable)).getQName(@as(*const IVBSAXAttributes, @ptrCast(self)), nIndex, strQName); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IVBSAXAttributes_getIndexFromName(self: *const T, strURI: ?BSTR, strLocalName: ?BSTR, nIndex: ?*i32) HRESULT { return @as(*const IVBSAXAttributes.VTable, @ptrCast(self.vtable)).getIndexFromName(@as(*const IVBSAXAttributes, @ptrCast(self)), strURI, strLocalName, nIndex); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IVBSAXAttributes_getIndexFromQName(self: *const T, strQName: ?BSTR, nIndex: ?*i32) HRESULT { return @as(*const IVBSAXAttributes.VTable, @ptrCast(self.vtable)).getIndexFromQName(@as(*const IVBSAXAttributes, @ptrCast(self)), strQName, nIndex); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IVBSAXAttributes_getType(self: *const T, nIndex: i32, strType: ?*?BSTR) HRESULT { return @as(*const IVBSAXAttributes.VTable, @ptrCast(self.vtable)).getType(@as(*const IVBSAXAttributes, @ptrCast(self)), nIndex, strType); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IVBSAXAttributes_getTypeFromName(self: *const T, strURI: ?BSTR, strLocalName: ?BSTR, strType: ?*?BSTR) HRESULT { return @as(*const IVBSAXAttributes.VTable, @ptrCast(self.vtable)).getTypeFromName(@as(*const IVBSAXAttributes, @ptrCast(self)), strURI, strLocalName, strType); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IVBSAXAttributes_getTypeFromQName(self: *const T, strQName: ?BSTR, strType: ?*?BSTR) HRESULT { return @as(*const IVBSAXAttributes.VTable, @ptrCast(self.vtable)).getTypeFromQName(@as(*const IVBSAXAttributes, @ptrCast(self)), strQName, strType); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IVBSAXAttributes_getValue(self: *const T, nIndex: i32, strValue: ?*?BSTR) HRESULT { return @as(*const IVBSAXAttributes.VTable, @ptrCast(self.vtable)).getValue(@as(*const IVBSAXAttributes, @ptrCast(self)), nIndex, strValue); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IVBSAXAttributes_getValueFromName(self: *const T, strURI: ?BSTR, strLocalName: ?BSTR, strValue: ?*?BSTR) HRESULT { return @as(*const IVBSAXAttributes.VTable, @ptrCast(self.vtable)).getValueFromName(@as(*const IVBSAXAttributes, @ptrCast(self)), strURI, strLocalName, strValue); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IVBSAXAttributes_getValueFromQName(self: *const T, strQName: ?BSTR, strValue: ?*?BSTR) HRESULT { return @as(*const IVBSAXAttributes.VTable, @ptrCast(self.vtable)).getValueFromQName(@as(*const IVBSAXAttributes, @ptrCast(self)), strQName, strValue); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IMXWriter_Value = Guid.initString("4d7ff4ba-1565-4ea8-94e1-6e724a46f98d"); pub const IID_IMXWriter = &IID_IMXWriter_Value; pub const IMXWriter = extern struct { pub const VTable = extern struct { base: IDispatch.VTable, // TODO: this function has a "SpecialName", should Zig do anything with this? put_output: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMXWriter, varDestination: VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMXWriter, varDestination: VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_output: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMXWriter, varDestination: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMXWriter, varDestination: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_encoding: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMXWriter, strEncoding: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMXWriter, strEncoding: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_encoding: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMXWriter, strEncoding: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMXWriter, strEncoding: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_byteOrderMark: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMXWriter, fWriteByteOrderMark: i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMXWriter, fWriteByteOrderMark: i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_byteOrderMark: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMXWriter, fWriteByteOrderMark: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMXWriter, fWriteByteOrderMark: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_indent: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMXWriter, fIndentMode: i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMXWriter, fIndentMode: i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_indent: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMXWriter, fIndentMode: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMXWriter, fIndentMode: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_standalone: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMXWriter, fValue: i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMXWriter, fValue: i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_standalone: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMXWriter, fValue: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMXWriter, fValue: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_omitXMLDeclaration: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMXWriter, fValue: i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMXWriter, fValue: i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_omitXMLDeclaration: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMXWriter, fValue: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMXWriter, fValue: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_version: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMXWriter, strVersion: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMXWriter, strVersion: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_version: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMXWriter, strVersion: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMXWriter, strVersion: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_disableOutputEscaping: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMXWriter, fValue: i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMXWriter, fValue: i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_disableOutputEscaping: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMXWriter, fValue: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMXWriter, fValue: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, flush: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IMXWriter, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IMXWriter, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IDispatch.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMXWriter_put_output(self: *const T, varDestination: VARIANT) HRESULT { return @as(*const IMXWriter.VTable, @ptrCast(self.vtable)).put_output(@as(*const IMXWriter, @ptrCast(self)), varDestination); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMXWriter_get_output(self: *const T, varDestination: ?*VARIANT) HRESULT { return @as(*const IMXWriter.VTable, @ptrCast(self.vtable)).get_output(@as(*const IMXWriter, @ptrCast(self)), varDestination); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMXWriter_put_encoding(self: *const T, strEncoding: ?BSTR) HRESULT { return @as(*const IMXWriter.VTable, @ptrCast(self.vtable)).put_encoding(@as(*const IMXWriter, @ptrCast(self)), strEncoding); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMXWriter_get_encoding(self: *const T, strEncoding: ?*?BSTR) HRESULT { return @as(*const IMXWriter.VTable, @ptrCast(self.vtable)).get_encoding(@as(*const IMXWriter, @ptrCast(self)), strEncoding); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMXWriter_put_byteOrderMark(self: *const T, fWriteByteOrderMark: i16) HRESULT { return @as(*const IMXWriter.VTable, @ptrCast(self.vtable)).put_byteOrderMark(@as(*const IMXWriter, @ptrCast(self)), fWriteByteOrderMark); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMXWriter_get_byteOrderMark(self: *const T, fWriteByteOrderMark: ?*i16) HRESULT { return @as(*const IMXWriter.VTable, @ptrCast(self.vtable)).get_byteOrderMark(@as(*const IMXWriter, @ptrCast(self)), fWriteByteOrderMark); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMXWriter_put_indent(self: *const T, fIndentMode: i16) HRESULT { return @as(*const IMXWriter.VTable, @ptrCast(self.vtable)).put_indent(@as(*const IMXWriter, @ptrCast(self)), fIndentMode); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMXWriter_get_indent(self: *const T, fIndentMode: ?*i16) HRESULT { return @as(*const IMXWriter.VTable, @ptrCast(self.vtable)).get_indent(@as(*const IMXWriter, @ptrCast(self)), fIndentMode); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMXWriter_put_standalone(self: *const T, fValue: i16) HRESULT { return @as(*const IMXWriter.VTable, @ptrCast(self.vtable)).put_standalone(@as(*const IMXWriter, @ptrCast(self)), fValue); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMXWriter_get_standalone(self: *const T, fValue: ?*i16) HRESULT { return @as(*const IMXWriter.VTable, @ptrCast(self.vtable)).get_standalone(@as(*const IMXWriter, @ptrCast(self)), fValue); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMXWriter_put_omitXMLDeclaration(self: *const T, fValue: i16) HRESULT { return @as(*const IMXWriter.VTable, @ptrCast(self.vtable)).put_omitXMLDeclaration(@as(*const IMXWriter, @ptrCast(self)), fValue); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMXWriter_get_omitXMLDeclaration(self: *const T, fValue: ?*i16) HRESULT { return @as(*const IMXWriter.VTable, @ptrCast(self.vtable)).get_omitXMLDeclaration(@as(*const IMXWriter, @ptrCast(self)), fValue); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMXWriter_put_version(self: *const T, strVersion: ?BSTR) HRESULT { return @as(*const IMXWriter.VTable, @ptrCast(self.vtable)).put_version(@as(*const IMXWriter, @ptrCast(self)), strVersion); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMXWriter_get_version(self: *const T, strVersion: ?*?BSTR) HRESULT { return @as(*const IMXWriter.VTable, @ptrCast(self.vtable)).get_version(@as(*const IMXWriter, @ptrCast(self)), strVersion); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMXWriter_put_disableOutputEscaping(self: *const T, fValue: i16) HRESULT { return @as(*const IMXWriter.VTable, @ptrCast(self.vtable)).put_disableOutputEscaping(@as(*const IMXWriter, @ptrCast(self)), fValue); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMXWriter_get_disableOutputEscaping(self: *const T, fValue: ?*i16) HRESULT { return @as(*const IMXWriter.VTable, @ptrCast(self.vtable)).get_disableOutputEscaping(@as(*const IMXWriter, @ptrCast(self)), fValue); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMXWriter_flush(self: *const T) HRESULT { return @as(*const IMXWriter.VTable, @ptrCast(self.vtable)).flush(@as(*const IMXWriter, @ptrCast(self))); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IMXAttributes_Value = Guid.initString("f10d27cc-3ec0-415c-8ed8-77ab1c5e7262"); pub const IID_IMXAttributes = &IID_IMXAttributes_Value; pub const IMXAttributes = extern struct { pub const VTable = extern struct { base: IDispatch.VTable, addAttribute: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IMXAttributes, strURI: ?BSTR, strLocalName: ?BSTR, strQName: ?BSTR, strType: ?BSTR, strValue: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IMXAttributes, strURI: ?BSTR, strLocalName: ?BSTR, strQName: ?BSTR, strType: ?BSTR, strValue: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, addAttributeFromIndex: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IMXAttributes, varAtts: VARIANT, nIndex: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IMXAttributes, varAtts: VARIANT, nIndex: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, clear: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IMXAttributes, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IMXAttributes, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, removeAttribute: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IMXAttributes, nIndex: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IMXAttributes, nIndex: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, setAttribute: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IMXAttributes, nIndex: i32, strURI: ?BSTR, strLocalName: ?BSTR, strQName: ?BSTR, strType: ?BSTR, strValue: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IMXAttributes, nIndex: i32, strURI: ?BSTR, strLocalName: ?BSTR, strQName: ?BSTR, strType: ?BSTR, strValue: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, setAttributes: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IMXAttributes, varAtts: VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IMXAttributes, varAtts: VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, setLocalName: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IMXAttributes, nIndex: i32, strLocalName: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IMXAttributes, nIndex: i32, strLocalName: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, setQName: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IMXAttributes, nIndex: i32, strQName: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IMXAttributes, nIndex: i32, strQName: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, setType: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IMXAttributes, nIndex: i32, strType: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IMXAttributes, nIndex: i32, strType: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, setURI: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IMXAttributes, nIndex: i32, strURI: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IMXAttributes, nIndex: i32, strURI: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, setValue: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IMXAttributes, nIndex: i32, strValue: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IMXAttributes, nIndex: i32, strValue: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IDispatch.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMXAttributes_addAttribute(self: *const T, strURI: ?BSTR, strLocalName: ?BSTR, strQName: ?BSTR, strType: ?BSTR, strValue: ?BSTR) HRESULT { return @as(*const IMXAttributes.VTable, @ptrCast(self.vtable)).addAttribute(@as(*const IMXAttributes, @ptrCast(self)), strURI, strLocalName, strQName, strType, strValue); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMXAttributes_addAttributeFromIndex(self: *const T, varAtts: VARIANT, nIndex: i32) HRESULT { return @as(*const IMXAttributes.VTable, @ptrCast(self.vtable)).addAttributeFromIndex(@as(*const IMXAttributes, @ptrCast(self)), varAtts, nIndex); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMXAttributes_clear(self: *const T) HRESULT { return @as(*const IMXAttributes.VTable, @ptrCast(self.vtable)).clear(@as(*const IMXAttributes, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMXAttributes_removeAttribute(self: *const T, nIndex: i32) HRESULT { return @as(*const IMXAttributes.VTable, @ptrCast(self.vtable)).removeAttribute(@as(*const IMXAttributes, @ptrCast(self)), nIndex); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMXAttributes_setAttribute(self: *const T, nIndex: i32, strURI: ?BSTR, strLocalName: ?BSTR, strQName: ?BSTR, strType: ?BSTR, strValue: ?BSTR) HRESULT { return @as(*const IMXAttributes.VTable, @ptrCast(self.vtable)).setAttribute(@as(*const IMXAttributes, @ptrCast(self)), nIndex, strURI, strLocalName, strQName, strType, strValue); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMXAttributes_setAttributes(self: *const T, varAtts: VARIANT) HRESULT { return @as(*const IMXAttributes.VTable, @ptrCast(self.vtable)).setAttributes(@as(*const IMXAttributes, @ptrCast(self)), varAtts); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMXAttributes_setLocalName(self: *const T, nIndex: i32, strLocalName: ?BSTR) HRESULT { return @as(*const IMXAttributes.VTable, @ptrCast(self.vtable)).setLocalName(@as(*const IMXAttributes, @ptrCast(self)), nIndex, strLocalName); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMXAttributes_setQName(self: *const T, nIndex: i32, strQName: ?BSTR) HRESULT { return @as(*const IMXAttributes.VTable, @ptrCast(self.vtable)).setQName(@as(*const IMXAttributes, @ptrCast(self)), nIndex, strQName); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMXAttributes_setType(self: *const T, nIndex: i32, strType: ?BSTR) HRESULT { return @as(*const IMXAttributes.VTable, @ptrCast(self.vtable)).setType(@as(*const IMXAttributes, @ptrCast(self)), nIndex, strType); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMXAttributes_setURI(self: *const T, nIndex: i32, strURI: ?BSTR) HRESULT { return @as(*const IMXAttributes.VTable, @ptrCast(self.vtable)).setURI(@as(*const IMXAttributes, @ptrCast(self)), nIndex, strURI); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMXAttributes_setValue(self: *const T, nIndex: i32, strValue: ?BSTR) HRESULT { return @as(*const IMXAttributes.VTable, @ptrCast(self.vtable)).setValue(@as(*const IMXAttributes, @ptrCast(self)), nIndex, strValue); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IMXReaderControl_Value = Guid.initString("808f4e35-8d5a-4fbe-8466-33a41279ed30"); pub const IID_IMXReaderControl = &IID_IMXReaderControl_Value; pub const IMXReaderControl = extern struct { pub const VTable = extern struct { base: IDispatch.VTable, abort: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IMXReaderControl, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IMXReaderControl, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, @"resume": switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IMXReaderControl, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IMXReaderControl, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, @"suspend": switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IMXReaderControl, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IMXReaderControl, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IDispatch.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMXReaderControl_abort(self: *const T) HRESULT { return @as(*const IMXReaderControl.VTable, @ptrCast(self.vtable)).abort(@as(*const IMXReaderControl, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMXReaderControl_resume(self: *const T) HRESULT { return @as(*const IMXReaderControl.VTable, @ptrCast(self.vtable)).@"resume"(@as(*const IMXReaderControl, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMXReaderControl_suspend(self: *const T) HRESULT { return @as(*const IMXReaderControl.VTable, @ptrCast(self.vtable)).@"suspend"(@as(*const IMXReaderControl, @ptrCast(self))); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IMXSchemaDeclHandler_Value = Guid.initString("fa4bb38c-faf9-4cca-9302-d1dd0fe520db"); pub const IID_IMXSchemaDeclHandler = &IID_IMXSchemaDeclHandler_Value; pub const IMXSchemaDeclHandler = extern struct { pub const VTable = extern struct { base: IDispatch.VTable, schemaElementDecl: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IMXSchemaDeclHandler, oSchemaElement: ?*ISchemaElement, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IMXSchemaDeclHandler, oSchemaElement: ?*ISchemaElement, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IDispatch.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMXSchemaDeclHandler_schemaElementDecl(self: *const T, oSchemaElement: ?*ISchemaElement) HRESULT { return @as(*const IMXSchemaDeclHandler.VTable, @ptrCast(self.vtable)).schemaElementDecl(@as(*const IMXSchemaDeclHandler, @ptrCast(self)), oSchemaElement); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IMXNamespacePrefixes_Value = Guid.initString("c90352f4-643c-4fbc-bb23-e996eb2d51fd"); pub const IID_IMXNamespacePrefixes = &IID_IMXNamespacePrefixes_Value; pub const IMXNamespacePrefixes = extern struct { pub const VTable = extern struct { base: IDispatch.VTable, // TODO: this function has a "SpecialName", should Zig do anything with this? get_item: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMXNamespacePrefixes, index: i32, prefix: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMXNamespacePrefixes, index: i32, prefix: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_length: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMXNamespacePrefixes, length: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMXNamespacePrefixes, length: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get__newEnum: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMXNamespacePrefixes, ppUnk: ?*?*IUnknown, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMXNamespacePrefixes, ppUnk: ?*?*IUnknown, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IDispatch.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMXNamespacePrefixes_get_item(self: *const T, index: i32, prefix: ?*?BSTR) HRESULT { return @as(*const IMXNamespacePrefixes.VTable, @ptrCast(self.vtable)).get_item(@as(*const IMXNamespacePrefixes, @ptrCast(self)), index, prefix); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMXNamespacePrefixes_get_length(self: *const T, length: ?*i32) HRESULT { return @as(*const IMXNamespacePrefixes.VTable, @ptrCast(self.vtable)).get_length(@as(*const IMXNamespacePrefixes, @ptrCast(self)), length); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMXNamespacePrefixes_get__newEnum(self: *const T, ppUnk: ?*?*IUnknown) HRESULT { return @as(*const IMXNamespacePrefixes.VTable, @ptrCast(self.vtable)).get__newEnum(@as(*const IMXNamespacePrefixes, @ptrCast(self)), ppUnk); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IVBMXNamespaceManager_Value = Guid.initString("c90352f5-643c-4fbc-bb23-e996eb2d51fd"); pub const IID_IVBMXNamespaceManager = &IID_IVBMXNamespaceManager_Value; pub const IVBMXNamespaceManager = extern struct { pub const VTable = extern struct { base: IDispatch.VTable, // TODO: this function has a "SpecialName", should Zig do anything with this? put_allowOverride: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IVBMXNamespaceManager, fOverride: i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IVBMXNamespaceManager, fOverride: i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_allowOverride: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IVBMXNamespaceManager, fOverride: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IVBMXNamespaceManager, fOverride: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, reset: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IVBMXNamespaceManager, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IVBMXNamespaceManager, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, pushContext: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IVBMXNamespaceManager, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IVBMXNamespaceManager, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, pushNodeContext: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IVBMXNamespaceManager, contextNode: ?*IXMLDOMNode, fDeep: i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IVBMXNamespaceManager, contextNode: ?*IXMLDOMNode, fDeep: i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, popContext: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IVBMXNamespaceManager, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IVBMXNamespaceManager, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, declarePrefix: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IVBMXNamespaceManager, prefix: ?BSTR, namespaceURI: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IVBMXNamespaceManager, prefix: ?BSTR, namespaceURI: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, getDeclaredPrefixes: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IVBMXNamespaceManager, prefixes: ?*?*IMXNamespacePrefixes, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IVBMXNamespaceManager, prefixes: ?*?*IMXNamespacePrefixes, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, getPrefixes: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IVBMXNamespaceManager, namespaceURI: ?BSTR, prefixes: ?*?*IMXNamespacePrefixes, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IVBMXNamespaceManager, namespaceURI: ?BSTR, prefixes: ?*?*IMXNamespacePrefixes, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, getURI: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IVBMXNamespaceManager, prefix: ?BSTR, uri: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IVBMXNamespaceManager, prefix: ?BSTR, uri: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, getURIFromNode: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IVBMXNamespaceManager, strPrefix: ?BSTR, contextNode: ?*IXMLDOMNode, uri: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IVBMXNamespaceManager, strPrefix: ?BSTR, contextNode: ?*IXMLDOMNode, uri: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IDispatch.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IVBMXNamespaceManager_put_allowOverride(self: *const T, fOverride: i16) HRESULT { return @as(*const IVBMXNamespaceManager.VTable, @ptrCast(self.vtable)).put_allowOverride(@as(*const IVBMXNamespaceManager, @ptrCast(self)), fOverride); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IVBMXNamespaceManager_get_allowOverride(self: *const T, fOverride: ?*i16) HRESULT { return @as(*const IVBMXNamespaceManager.VTable, @ptrCast(self.vtable)).get_allowOverride(@as(*const IVBMXNamespaceManager, @ptrCast(self)), fOverride); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IVBMXNamespaceManager_reset(self: *const T) HRESULT { return @as(*const IVBMXNamespaceManager.VTable, @ptrCast(self.vtable)).reset(@as(*const IVBMXNamespaceManager, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IVBMXNamespaceManager_pushContext(self: *const T) HRESULT { return @as(*const IVBMXNamespaceManager.VTable, @ptrCast(self.vtable)).pushContext(@as(*const IVBMXNamespaceManager, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IVBMXNamespaceManager_pushNodeContext(self: *const T, contextNode: ?*IXMLDOMNode, fDeep: i16) HRESULT { return @as(*const IVBMXNamespaceManager.VTable, @ptrCast(self.vtable)).pushNodeContext(@as(*const IVBMXNamespaceManager, @ptrCast(self)), contextNode, fDeep); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IVBMXNamespaceManager_popContext(self: *const T) HRESULT { return @as(*const IVBMXNamespaceManager.VTable, @ptrCast(self.vtable)).popContext(@as(*const IVBMXNamespaceManager, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IVBMXNamespaceManager_declarePrefix(self: *const T, prefix: ?BSTR, namespaceURI: ?BSTR) HRESULT { return @as(*const IVBMXNamespaceManager.VTable, @ptrCast(self.vtable)).declarePrefix(@as(*const IVBMXNamespaceManager, @ptrCast(self)), prefix, namespaceURI); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IVBMXNamespaceManager_getDeclaredPrefixes(self: *const T, prefixes: ?*?*IMXNamespacePrefixes) HRESULT { return @as(*const IVBMXNamespaceManager.VTable, @ptrCast(self.vtable)).getDeclaredPrefixes(@as(*const IVBMXNamespaceManager, @ptrCast(self)), prefixes); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IVBMXNamespaceManager_getPrefixes(self: *const T, namespaceURI: ?BSTR, prefixes: ?*?*IMXNamespacePrefixes) HRESULT { return @as(*const IVBMXNamespaceManager.VTable, @ptrCast(self.vtable)).getPrefixes(@as(*const IVBMXNamespaceManager, @ptrCast(self)), namespaceURI, prefixes); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IVBMXNamespaceManager_getURI(self: *const T, prefix: ?BSTR, uri: ?*VARIANT) HRESULT { return @as(*const IVBMXNamespaceManager.VTable, @ptrCast(self.vtable)).getURI(@as(*const IVBMXNamespaceManager, @ptrCast(self)), prefix, uri); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IVBMXNamespaceManager_getURIFromNode(self: *const T, strPrefix: ?BSTR, contextNode: ?*IXMLDOMNode, uri: ?*VARIANT) HRESULT { return @as(*const IVBMXNamespaceManager.VTable, @ptrCast(self.vtable)).getURIFromNode(@as(*const IVBMXNamespaceManager, @ptrCast(self)), strPrefix, contextNode, uri); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IMXNamespaceManager_Value = Guid.initString("c90352f6-643c-4fbc-bb23-e996eb2d51fd"); pub const IID_IMXNamespaceManager = &IID_IMXNamespaceManager_Value; pub const IMXNamespaceManager = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, putAllowOverride: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IMXNamespaceManager, fOverride: i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IMXNamespaceManager, fOverride: i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, getAllowOverride: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IMXNamespaceManager, fOverride: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IMXNamespaceManager, fOverride: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, reset: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IMXNamespaceManager, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IMXNamespaceManager, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, pushContext: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IMXNamespaceManager, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IMXNamespaceManager, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, pushNodeContext: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IMXNamespaceManager, contextNode: ?*IXMLDOMNode, fDeep: i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IMXNamespaceManager, contextNode: ?*IXMLDOMNode, fDeep: i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, popContext: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IMXNamespaceManager, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IMXNamespaceManager, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, declarePrefix: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IMXNamespaceManager, prefix: ?[*:0]const u16, namespaceURI: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IMXNamespaceManager, prefix: ?[*:0]const u16, namespaceURI: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, getDeclaredPrefix: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IMXNamespaceManager, nIndex: i32, pwchPrefix: [*:0]u16, pcchPrefix: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IMXNamespaceManager, nIndex: i32, pwchPrefix: [*:0]u16, pcchPrefix: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, getPrefix: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IMXNamespaceManager, pwszNamespaceURI: ?[*:0]const u16, nIndex: i32, pwchPrefix: [*:0]u16, pcchPrefix: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IMXNamespaceManager, pwszNamespaceURI: ?[*:0]const u16, nIndex: i32, pwchPrefix: [*:0]u16, pcchPrefix: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, getURI: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IMXNamespaceManager, pwchPrefix: ?[*:0]const u16, pContextNode: ?*IXMLDOMNode, pwchUri: [*:0]u16, pcchUri: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IMXNamespaceManager, pwchPrefix: ?[*:0]const u16, pContextNode: ?*IXMLDOMNode, pwchUri: [*:0]u16, pcchUri: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMXNamespaceManager_putAllowOverride(self: *const T, fOverride: i16) HRESULT { return @as(*const IMXNamespaceManager.VTable, @ptrCast(self.vtable)).putAllowOverride(@as(*const IMXNamespaceManager, @ptrCast(self)), fOverride); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMXNamespaceManager_getAllowOverride(self: *const T, fOverride: ?*i16) HRESULT { return @as(*const IMXNamespaceManager.VTable, @ptrCast(self.vtable)).getAllowOverride(@as(*const IMXNamespaceManager, @ptrCast(self)), fOverride); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMXNamespaceManager_reset(self: *const T) HRESULT { return @as(*const IMXNamespaceManager.VTable, @ptrCast(self.vtable)).reset(@as(*const IMXNamespaceManager, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMXNamespaceManager_pushContext(self: *const T) HRESULT { return @as(*const IMXNamespaceManager.VTable, @ptrCast(self.vtable)).pushContext(@as(*const IMXNamespaceManager, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMXNamespaceManager_pushNodeContext(self: *const T, contextNode: ?*IXMLDOMNode, fDeep: i16) HRESULT { return @as(*const IMXNamespaceManager.VTable, @ptrCast(self.vtable)).pushNodeContext(@as(*const IMXNamespaceManager, @ptrCast(self)), contextNode, fDeep); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMXNamespaceManager_popContext(self: *const T) HRESULT { return @as(*const IMXNamespaceManager.VTable, @ptrCast(self.vtable)).popContext(@as(*const IMXNamespaceManager, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMXNamespaceManager_declarePrefix(self: *const T, prefix: ?[*:0]const u16, namespaceURI: ?[*:0]const u16) HRESULT { return @as(*const IMXNamespaceManager.VTable, @ptrCast(self.vtable)).declarePrefix(@as(*const IMXNamespaceManager, @ptrCast(self)), prefix, namespaceURI); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMXNamespaceManager_getDeclaredPrefix(self: *const T, nIndex: i32, pwchPrefix: [*:0]u16, pcchPrefix: ?*i32) HRESULT { return @as(*const IMXNamespaceManager.VTable, @ptrCast(self.vtable)).getDeclaredPrefix(@as(*const IMXNamespaceManager, @ptrCast(self)), nIndex, pwchPrefix, pcchPrefix); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMXNamespaceManager_getPrefix(self: *const T, pwszNamespaceURI: ?[*:0]const u16, nIndex: i32, pwchPrefix: [*:0]u16, pcchPrefix: ?*i32) HRESULT { return @as(*const IMXNamespaceManager.VTable, @ptrCast(self.vtable)).getPrefix(@as(*const IMXNamespaceManager, @ptrCast(self)), pwszNamespaceURI, nIndex, pwchPrefix, pcchPrefix); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMXNamespaceManager_getURI(self: *const T, pwchPrefix: ?[*:0]const u16, pContextNode: ?*IXMLDOMNode, pwchUri: [*:0]u16, pcchUri: ?*i32) HRESULT { return @as(*const IMXNamespaceManager.VTable, @ptrCast(self.vtable)).getURI(@as(*const IMXNamespaceManager, @ptrCast(self)), pwchPrefix, pContextNode, pwchUri, pcchUri); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IMXXMLFilter_Value = Guid.initString("c90352f7-643c-4fbc-bb23-e996eb2d51fd"); pub const IID_IMXXMLFilter = &IID_IMXXMLFilter_Value; pub const IMXXMLFilter = extern struct { pub const VTable = extern struct { base: IDispatch.VTable, getFeature: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IMXXMLFilter, strName: ?BSTR, fValue: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IMXXMLFilter, strName: ?BSTR, fValue: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, putFeature: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IMXXMLFilter, strName: ?BSTR, fValue: i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IMXXMLFilter, strName: ?BSTR, fValue: i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, getProperty: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IMXXMLFilter, strName: ?BSTR, varValue: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IMXXMLFilter, strName: ?BSTR, varValue: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, putProperty: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IMXXMLFilter, strName: ?BSTR, varValue: VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IMXXMLFilter, strName: ?BSTR, varValue: VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_entityResolver: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMXXMLFilter, oResolver: ?*?*IUnknown, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMXXMLFilter, oResolver: ?*?*IUnknown, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, putref_entityResolver: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IMXXMLFilter, oResolver: ?*IUnknown, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IMXXMLFilter, oResolver: ?*IUnknown, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_contentHandler: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMXXMLFilter, oHandler: ?*?*IUnknown, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMXXMLFilter, oHandler: ?*?*IUnknown, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, putref_contentHandler: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IMXXMLFilter, oHandler: ?*IUnknown, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IMXXMLFilter, oHandler: ?*IUnknown, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_dtdHandler: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMXXMLFilter, oHandler: ?*?*IUnknown, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMXXMLFilter, oHandler: ?*?*IUnknown, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, putref_dtdHandler: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IMXXMLFilter, oHandler: ?*IUnknown, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IMXXMLFilter, oHandler: ?*IUnknown, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_errorHandler: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IMXXMLFilter, oHandler: ?*?*IUnknown, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IMXXMLFilter, oHandler: ?*?*IUnknown, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, putref_errorHandler: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IMXXMLFilter, oHandler: ?*IUnknown, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IMXXMLFilter, oHandler: ?*IUnknown, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IDispatch.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMXXMLFilter_getFeature(self: *const T, strName: ?BSTR, fValue: ?*i16) HRESULT { return @as(*const IMXXMLFilter.VTable, @ptrCast(self.vtable)).getFeature(@as(*const IMXXMLFilter, @ptrCast(self)), strName, fValue); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMXXMLFilter_putFeature(self: *const T, strName: ?BSTR, fValue: i16) HRESULT { return @as(*const IMXXMLFilter.VTable, @ptrCast(self.vtable)).putFeature(@as(*const IMXXMLFilter, @ptrCast(self)), strName, fValue); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMXXMLFilter_getProperty(self: *const T, strName: ?BSTR, varValue: ?*VARIANT) HRESULT { return @as(*const IMXXMLFilter.VTable, @ptrCast(self.vtable)).getProperty(@as(*const IMXXMLFilter, @ptrCast(self)), strName, varValue); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMXXMLFilter_putProperty(self: *const T, strName: ?BSTR, varValue: VARIANT) HRESULT { return @as(*const IMXXMLFilter.VTable, @ptrCast(self.vtable)).putProperty(@as(*const IMXXMLFilter, @ptrCast(self)), strName, varValue); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMXXMLFilter_get_entityResolver(self: *const T, oResolver: ?*?*IUnknown) HRESULT { return @as(*const IMXXMLFilter.VTable, @ptrCast(self.vtable)).get_entityResolver(@as(*const IMXXMLFilter, @ptrCast(self)), oResolver); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMXXMLFilter_putref_entityResolver(self: *const T, oResolver: ?*IUnknown) HRESULT { return @as(*const IMXXMLFilter.VTable, @ptrCast(self.vtable)).putref_entityResolver(@as(*const IMXXMLFilter, @ptrCast(self)), oResolver); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMXXMLFilter_get_contentHandler(self: *const T, oHandler: ?*?*IUnknown) HRESULT { return @as(*const IMXXMLFilter.VTable, @ptrCast(self.vtable)).get_contentHandler(@as(*const IMXXMLFilter, @ptrCast(self)), oHandler); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMXXMLFilter_putref_contentHandler(self: *const T, oHandler: ?*IUnknown) HRESULT { return @as(*const IMXXMLFilter.VTable, @ptrCast(self.vtable)).putref_contentHandler(@as(*const IMXXMLFilter, @ptrCast(self)), oHandler); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMXXMLFilter_get_dtdHandler(self: *const T, oHandler: ?*?*IUnknown) HRESULT { return @as(*const IMXXMLFilter.VTable, @ptrCast(self.vtable)).get_dtdHandler(@as(*const IMXXMLFilter, @ptrCast(self)), oHandler); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMXXMLFilter_putref_dtdHandler(self: *const T, oHandler: ?*IUnknown) HRESULT { return @as(*const IMXXMLFilter.VTable, @ptrCast(self.vtable)).putref_dtdHandler(@as(*const IMXXMLFilter, @ptrCast(self)), oHandler); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMXXMLFilter_get_errorHandler(self: *const T, oHandler: ?*?*IUnknown) HRESULT { return @as(*const IMXXMLFilter.VTable, @ptrCast(self.vtable)).get_errorHandler(@as(*const IMXXMLFilter, @ptrCast(self)), oHandler); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMXXMLFilter_putref_errorHandler(self: *const T, oHandler: ?*IUnknown) HRESULT { return @as(*const IMXXMLFilter.VTable, @ptrCast(self.vtable)).putref_errorHandler(@as(*const IMXXMLFilter, @ptrCast(self)), oHandler); } }; } pub usingnamespace MethodMixin(@This()); }; pub const SOMITEMTYPE = enum(i32) { SCHEMA = 4096, ATTRIBUTE = 4097, ATTRIBUTEGROUP = 4098, NOTATION = 4099, ANNOTATION = 4100, IDENTITYCONSTRAINT = 4352, KEY = 4353, KEYREF = 4354, UNIQUE = 4355, ANYTYPE = 8192, DATATYPE = 8448, DATATYPE_ANYTYPE = 8449, DATATYPE_ANYURI = 8450, DATATYPE_BASE64BINARY = 8451, DATATYPE_BOOLEAN = 8452, DATATYPE_BYTE = 8453, DATATYPE_DATE = 8454, DATATYPE_DATETIME = 8455, DATATYPE_DAY = 8456, DATATYPE_DECIMAL = 8457, DATATYPE_DOUBLE = 8458, DATATYPE_DURATION = 8459, DATATYPE_ENTITIES = 8460, DATATYPE_ENTITY = 8461, DATATYPE_FLOAT = 8462, DATATYPE_HEXBINARY = 8463, DATATYPE_ID = 8464, DATATYPE_IDREF = 8465, DATATYPE_IDREFS = 8466, DATATYPE_INT = 8467, DATATYPE_INTEGER = 8468, DATATYPE_LANGUAGE = 8469, DATATYPE_LONG = 8470, DATATYPE_MONTH = 8471, DATATYPE_MONTHDAY = 8472, DATATYPE_NAME = 8473, DATATYPE_NCNAME = 8474, DATATYPE_NEGATIVEINTEGER = 8475, DATATYPE_NMTOKEN = 8476, DATATYPE_NMTOKENS = 8477, DATATYPE_NONNEGATIVEINTEGER = 8478, DATATYPE_NONPOSITIVEINTEGER = 8479, DATATYPE_NORMALIZEDSTRING = 8480, DATATYPE_NOTATION = 8481, DATATYPE_POSITIVEINTEGER = 8482, DATATYPE_QNAME = 8483, DATATYPE_SHORT = 8484, DATATYPE_STRING = 8485, DATATYPE_TIME = 8486, DATATYPE_TOKEN = 8487, DATATYPE_UNSIGNEDBYTE = 8488, DATATYPE_UNSIGNEDINT = 8489, DATATYPE_UNSIGNEDLONG = 8490, DATATYPE_UNSIGNEDSHORT = 8491, DATATYPE_YEAR = 8492, DATATYPE_YEARMONTH = 8493, DATATYPE_ANYSIMPLETYPE = 8703, SIMPLETYPE = 8704, COMPLEXTYPE = 9216, PARTICLE = 16384, ANY = 16385, ANYATTRIBUTE = 16386, ELEMENT = 16387, GROUP = 16640, ALL = 16641, CHOICE = 16642, SEQUENCE = 16643, EMPTYPARTICLE = 16644, NULL = 2048, NULL_TYPE = 10240, NULL_ANY = 18433, NULL_ANYATTRIBUTE = 18434, NULL_ELEMENT = 18435, }; pub const SOMITEM_SCHEMA = SOMITEMTYPE.SCHEMA; pub const SOMITEM_ATTRIBUTE = SOMITEMTYPE.ATTRIBUTE; pub const SOMITEM_ATTRIBUTEGROUP = SOMITEMTYPE.ATTRIBUTEGROUP; pub const SOMITEM_NOTATION = SOMITEMTYPE.NOTATION; pub const SOMITEM_ANNOTATION = SOMITEMTYPE.ANNOTATION; pub const SOMITEM_IDENTITYCONSTRAINT = SOMITEMTYPE.IDENTITYCONSTRAINT; pub const SOMITEM_KEY = SOMITEMTYPE.KEY; pub const SOMITEM_KEYREF = SOMITEMTYPE.KEYREF; pub const SOMITEM_UNIQUE = SOMITEMTYPE.UNIQUE; pub const SOMITEM_ANYTYPE = SOMITEMTYPE.ANYTYPE; pub const SOMITEM_DATATYPE = SOMITEMTYPE.DATATYPE; pub const SOMITEM_DATATYPE_ANYTYPE = SOMITEMTYPE.DATATYPE_ANYTYPE; pub const SOMITEM_DATATYPE_ANYURI = SOMITEMTYPE.DATATYPE_ANYURI; pub const SOMITEM_DATATYPE_BASE64BINARY = SOMITEMTYPE.DATATYPE_BASE64BINARY; pub const SOMITEM_DATATYPE_BOOLEAN = SOMITEMTYPE.DATATYPE_BOOLEAN; pub const SOMITEM_DATATYPE_BYTE = SOMITEMTYPE.DATATYPE_BYTE; pub const SOMITEM_DATATYPE_DATE = SOMITEMTYPE.DATATYPE_DATE; pub const SOMITEM_DATATYPE_DATETIME = SOMITEMTYPE.DATATYPE_DATETIME; pub const SOMITEM_DATATYPE_DAY = SOMITEMTYPE.DATATYPE_DAY; pub const SOMITEM_DATATYPE_DECIMAL = SOMITEMTYPE.DATATYPE_DECIMAL; pub const SOMITEM_DATATYPE_DOUBLE = SOMITEMTYPE.DATATYPE_DOUBLE; pub const SOMITEM_DATATYPE_DURATION = SOMITEMTYPE.DATATYPE_DURATION; pub const SOMITEM_DATATYPE_ENTITIES = SOMITEMTYPE.DATATYPE_ENTITIES; pub const SOMITEM_DATATYPE_ENTITY = SOMITEMTYPE.DATATYPE_ENTITY; pub const SOMITEM_DATATYPE_FLOAT = SOMITEMTYPE.DATATYPE_FLOAT; pub const SOMITEM_DATATYPE_HEXBINARY = SOMITEMTYPE.DATATYPE_HEXBINARY; pub const SOMITEM_DATATYPE_ID = SOMITEMTYPE.DATATYPE_ID; pub const SOMITEM_DATATYPE_IDREF = SOMITEMTYPE.DATATYPE_IDREF; pub const SOMITEM_DATATYPE_IDREFS = SOMITEMTYPE.DATATYPE_IDREFS; pub const SOMITEM_DATATYPE_INT = SOMITEMTYPE.DATATYPE_INT; pub const SOMITEM_DATATYPE_INTEGER = SOMITEMTYPE.DATATYPE_INTEGER; pub const SOMITEM_DATATYPE_LANGUAGE = SOMITEMTYPE.DATATYPE_LANGUAGE; pub const SOMITEM_DATATYPE_LONG = SOMITEMTYPE.DATATYPE_LONG; pub const SOMITEM_DATATYPE_MONTH = SOMITEMTYPE.DATATYPE_MONTH; pub const SOMITEM_DATATYPE_MONTHDAY = SOMITEMTYPE.DATATYPE_MONTHDAY; pub const SOMITEM_DATATYPE_NAME = SOMITEMTYPE.DATATYPE_NAME; pub const SOMITEM_DATATYPE_NCNAME = SOMITEMTYPE.DATATYPE_NCNAME; pub const SOMITEM_DATATYPE_NEGATIVEINTEGER = SOMITEMTYPE.DATATYPE_NEGATIVEINTEGER; pub const SOMITEM_DATATYPE_NMTOKEN = SOMITEMTYPE.DATATYPE_NMTOKEN; pub const SOMITEM_DATATYPE_NMTOKENS = SOMITEMTYPE.DATATYPE_NMTOKENS; pub const SOMITEM_DATATYPE_NONNEGATIVEINTEGER = SOMITEMTYPE.DATATYPE_NONNEGATIVEINTEGER; pub const SOMITEM_DATATYPE_NONPOSITIVEINTEGER = SOMITEMTYPE.DATATYPE_NONPOSITIVEINTEGER; pub const SOMITEM_DATATYPE_NORMALIZEDSTRING = SOMITEMTYPE.DATATYPE_NORMALIZEDSTRING; pub const SOMITEM_DATATYPE_NOTATION = SOMITEMTYPE.DATATYPE_NOTATION; pub const SOMITEM_DATATYPE_POSITIVEINTEGER = SOMITEMTYPE.DATATYPE_POSITIVEINTEGER; pub const SOMITEM_DATATYPE_QNAME = SOMITEMTYPE.DATATYPE_QNAME; pub const SOMITEM_DATATYPE_SHORT = SOMITEMTYPE.DATATYPE_SHORT; pub const SOMITEM_DATATYPE_STRING = SOMITEMTYPE.DATATYPE_STRING; pub const SOMITEM_DATATYPE_TIME = SOMITEMTYPE.DATATYPE_TIME; pub const SOMITEM_DATATYPE_TOKEN = SOMITEMTYPE.DATATYPE_TOKEN; pub const SOMITEM_DATATYPE_UNSIGNEDBYTE = SOMITEMTYPE.DATATYPE_UNSIGNEDBYTE; pub const SOMITEM_DATATYPE_UNSIGNEDINT = SOMITEMTYPE.DATATYPE_UNSIGNEDINT; pub const SOMITEM_DATATYPE_UNSIGNEDLONG = SOMITEMTYPE.DATATYPE_UNSIGNEDLONG; pub const SOMITEM_DATATYPE_UNSIGNEDSHORT = SOMITEMTYPE.DATATYPE_UNSIGNEDSHORT; pub const SOMITEM_DATATYPE_YEAR = SOMITEMTYPE.DATATYPE_YEAR; pub const SOMITEM_DATATYPE_YEARMONTH = SOMITEMTYPE.DATATYPE_YEARMONTH; pub const SOMITEM_DATATYPE_ANYSIMPLETYPE = SOMITEMTYPE.DATATYPE_ANYSIMPLETYPE; pub const SOMITEM_SIMPLETYPE = SOMITEMTYPE.SIMPLETYPE; pub const SOMITEM_COMPLEXTYPE = SOMITEMTYPE.COMPLEXTYPE; pub const SOMITEM_PARTICLE = SOMITEMTYPE.PARTICLE; pub const SOMITEM_ANY = SOMITEMTYPE.ANY; pub const SOMITEM_ANYATTRIBUTE = SOMITEMTYPE.ANYATTRIBUTE; pub const SOMITEM_ELEMENT = SOMITEMTYPE.ELEMENT; pub const SOMITEM_GROUP = SOMITEMTYPE.GROUP; pub const SOMITEM_ALL = SOMITEMTYPE.ALL; pub const SOMITEM_CHOICE = SOMITEMTYPE.CHOICE; pub const SOMITEM_SEQUENCE = SOMITEMTYPE.SEQUENCE; pub const SOMITEM_EMPTYPARTICLE = SOMITEMTYPE.EMPTYPARTICLE; pub const SOMITEM_NULL = SOMITEMTYPE.NULL; pub const SOMITEM_NULL_TYPE = SOMITEMTYPE.NULL_TYPE; pub const SOMITEM_NULL_ANY = SOMITEMTYPE.NULL_ANY; pub const SOMITEM_NULL_ANYATTRIBUTE = SOMITEMTYPE.NULL_ANYATTRIBUTE; pub const SOMITEM_NULL_ELEMENT = SOMITEMTYPE.NULL_ELEMENT; pub const SCHEMAUSE = enum(i32) { OPTIONAL = 0, PROHIBITED = 1, REQUIRED = 2, }; pub const SCHEMAUSE_OPTIONAL = SCHEMAUSE.OPTIONAL; pub const SCHEMAUSE_PROHIBITED = SCHEMAUSE.PROHIBITED; pub const SCHEMAUSE_REQUIRED = SCHEMAUSE.REQUIRED; pub const SCHEMADERIVATIONMETHOD = enum(i32) { EMPTY = 0, SUBSTITUTION = 1, EXTENSION = 2, RESTRICTION = 4, LIST = 8, UNION = 16, ALL = 255, NONE = 256, }; pub const SCHEMADERIVATIONMETHOD_EMPTY = SCHEMADERIVATIONMETHOD.EMPTY; pub const SCHEMADERIVATIONMETHOD_SUBSTITUTION = SCHEMADERIVATIONMETHOD.SUBSTITUTION; pub const SCHEMADERIVATIONMETHOD_EXTENSION = SCHEMADERIVATIONMETHOD.EXTENSION; pub const SCHEMADERIVATIONMETHOD_RESTRICTION = SCHEMADERIVATIONMETHOD.RESTRICTION; pub const SCHEMADERIVATIONMETHOD_LIST = SCHEMADERIVATIONMETHOD.LIST; pub const SCHEMADERIVATIONMETHOD_UNION = SCHEMADERIVATIONMETHOD.UNION; pub const SCHEMADERIVATIONMETHOD_ALL = SCHEMADERIVATIONMETHOD.ALL; pub const SCHEMADERIVATIONMETHOD_NONE = SCHEMADERIVATIONMETHOD.NONE; pub const SCHEMACONTENTTYPE = enum(i32) { EMPTY = 0, TEXTONLY = 1, ELEMENTONLY = 2, MIXED = 3, }; pub const SCHEMACONTENTTYPE_EMPTY = SCHEMACONTENTTYPE.EMPTY; pub const SCHEMACONTENTTYPE_TEXTONLY = SCHEMACONTENTTYPE.TEXTONLY; pub const SCHEMACONTENTTYPE_ELEMENTONLY = SCHEMACONTENTTYPE.ELEMENTONLY; pub const SCHEMACONTENTTYPE_MIXED = SCHEMACONTENTTYPE.MIXED; pub const SCHEMAPROCESSCONTENTS = enum(i32) { NONE = 0, SKIP = 1, LAX = 2, STRICT = 3, }; pub const SCHEMAPROCESSCONTENTS_NONE = SCHEMAPROCESSCONTENTS.NONE; pub const SCHEMAPROCESSCONTENTS_SKIP = SCHEMAPROCESSCONTENTS.SKIP; pub const SCHEMAPROCESSCONTENTS_LAX = SCHEMAPROCESSCONTENTS.LAX; pub const SCHEMAPROCESSCONTENTS_STRICT = SCHEMAPROCESSCONTENTS.STRICT; pub const SCHEMAWHITESPACE = enum(i32) { NONE = -1, PRESERVE = 0, REPLACE = 1, COLLAPSE = 2, }; pub const SCHEMAWHITESPACE_NONE = SCHEMAWHITESPACE.NONE; pub const SCHEMAWHITESPACE_PRESERVE = SCHEMAWHITESPACE.PRESERVE; pub const SCHEMAWHITESPACE_REPLACE = SCHEMAWHITESPACE.REPLACE; pub const SCHEMAWHITESPACE_COLLAPSE = SCHEMAWHITESPACE.COLLAPSE; pub const SCHEMATYPEVARIETY = enum(i32) { NONE = -1, ATOMIC = 0, LIST = 1, UNION = 2, }; pub const SCHEMATYPEVARIETY_NONE = SCHEMATYPEVARIETY.NONE; pub const SCHEMATYPEVARIETY_ATOMIC = SCHEMATYPEVARIETY.ATOMIC; pub const SCHEMATYPEVARIETY_LIST = SCHEMATYPEVARIETY.LIST; pub const SCHEMATYPEVARIETY_UNION = SCHEMATYPEVARIETY.UNION; const IID_IXMLDOMSchemaCollection2_Value = Guid.initString("50ea08b0-dd1b-4664-9a50-c2f40f4bd79a"); pub const IID_IXMLDOMSchemaCollection2 = &IID_IXMLDOMSchemaCollection2_Value; pub const IXMLDOMSchemaCollection2 = extern struct { pub const VTable = extern struct { base: IXMLDOMSchemaCollection.VTable, validate: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IXMLDOMSchemaCollection2, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IXMLDOMSchemaCollection2, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? put_validateOnLoad: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IXMLDOMSchemaCollection2, validateOnLoad: i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IXMLDOMSchemaCollection2, validateOnLoad: i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_validateOnLoad: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const IXMLDOMSchemaCollection2, validateOnLoad: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const IXMLDOMSchemaCollection2, validateOnLoad: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, getSchema: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IXMLDOMSchemaCollection2, namespaceURI: ?BSTR, schema: ?*?*ISchema, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IXMLDOMSchemaCollection2, namespaceURI: ?BSTR, schema: ?*?*ISchema, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, getDeclaration: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IXMLDOMSchemaCollection2, node: ?*IXMLDOMNode, item: ?*?*ISchemaItem, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IXMLDOMSchemaCollection2, node: ?*IXMLDOMNode, item: ?*?*ISchemaItem, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IXMLDOMSchemaCollection.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IXMLDOMSchemaCollection2_validate(self: *const T) HRESULT { return @as(*const IXMLDOMSchemaCollection2.VTable, @ptrCast(self.vtable)).validate(@as(*const IXMLDOMSchemaCollection2, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IXMLDOMSchemaCollection2_put_validateOnLoad(self: *const T, validateOnLoad: i16) HRESULT { return @as(*const IXMLDOMSchemaCollection2.VTable, @ptrCast(self.vtable)).put_validateOnLoad(@as(*const IXMLDOMSchemaCollection2, @ptrCast(self)), validateOnLoad); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IXMLDOMSchemaCollection2_get_validateOnLoad(self: *const T, validateOnLoad: ?*i16) HRESULT { return @as(*const IXMLDOMSchemaCollection2.VTable, @ptrCast(self.vtable)).get_validateOnLoad(@as(*const IXMLDOMSchemaCollection2, @ptrCast(self)), validateOnLoad); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IXMLDOMSchemaCollection2_getSchema(self: *const T, namespaceURI: ?BSTR, schema: ?*?*ISchema) HRESULT { return @as(*const IXMLDOMSchemaCollection2.VTable, @ptrCast(self.vtable)).getSchema(@as(*const IXMLDOMSchemaCollection2, @ptrCast(self)), namespaceURI, schema); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IXMLDOMSchemaCollection2_getDeclaration(self: *const T, node: ?*IXMLDOMNode, item: ?*?*ISchemaItem) HRESULT { return @as(*const IXMLDOMSchemaCollection2.VTable, @ptrCast(self.vtable)).getDeclaration(@as(*const IXMLDOMSchemaCollection2, @ptrCast(self)), node, item); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_ISchemaStringCollection_Value = Guid.initString("50ea08b1-dd1b-4664-9a50-c2f40f4bd79a"); pub const IID_ISchemaStringCollection = &IID_ISchemaStringCollection_Value; pub const ISchemaStringCollection = extern struct { pub const VTable = extern struct { base: IDispatch.VTable, // TODO: this function has a "SpecialName", should Zig do anything with this? get_item: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ISchemaStringCollection, index: i32, bstr: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ISchemaStringCollection, index: i32, bstr: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_length: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ISchemaStringCollection, length: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ISchemaStringCollection, length: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get__newEnum: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ISchemaStringCollection, ppunk: ?*?*IUnknown, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ISchemaStringCollection, ppunk: ?*?*IUnknown, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IDispatch.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISchemaStringCollection_get_item(self: *const T, index: i32, bstr: ?*?BSTR) HRESULT { return @as(*const ISchemaStringCollection.VTable, @ptrCast(self.vtable)).get_item(@as(*const ISchemaStringCollection, @ptrCast(self)), index, bstr); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISchemaStringCollection_get_length(self: *const T, length: ?*i32) HRESULT { return @as(*const ISchemaStringCollection.VTable, @ptrCast(self.vtable)).get_length(@as(*const ISchemaStringCollection, @ptrCast(self)), length); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISchemaStringCollection_get__newEnum(self: *const T, ppunk: ?*?*IUnknown) HRESULT { return @as(*const ISchemaStringCollection.VTable, @ptrCast(self.vtable)).get__newEnum(@as(*const ISchemaStringCollection, @ptrCast(self)), ppunk); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_ISchemaItemCollection_Value = Guid.initString("50ea08b2-dd1b-4664-9a50-c2f40f4bd79a"); pub const IID_ISchemaItemCollection = &IID_ISchemaItemCollection_Value; pub const ISchemaItemCollection = extern struct { pub const VTable = extern struct { base: IDispatch.VTable, // TODO: this function has a "SpecialName", should Zig do anything with this? get_item: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ISchemaItemCollection, index: i32, item: ?*?*ISchemaItem, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ISchemaItemCollection, index: i32, item: ?*?*ISchemaItem, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, itemByName: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ISchemaItemCollection, name: ?BSTR, item: ?*?*ISchemaItem, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ISchemaItemCollection, name: ?BSTR, item: ?*?*ISchemaItem, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, itemByQName: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ISchemaItemCollection, name: ?BSTR, namespaceURI: ?BSTR, item: ?*?*ISchemaItem, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ISchemaItemCollection, name: ?BSTR, namespaceURI: ?BSTR, item: ?*?*ISchemaItem, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_length: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ISchemaItemCollection, length: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ISchemaItemCollection, length: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get__newEnum: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ISchemaItemCollection, ppunk: ?*?*IUnknown, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ISchemaItemCollection, ppunk: ?*?*IUnknown, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IDispatch.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISchemaItemCollection_get_item(self: *const T, index: i32, item: ?*?*ISchemaItem) HRESULT { return @as(*const ISchemaItemCollection.VTable, @ptrCast(self.vtable)).get_item(@as(*const ISchemaItemCollection, @ptrCast(self)), index, item); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISchemaItemCollection_itemByName(self: *const T, name: ?BSTR, item: ?*?*ISchemaItem) HRESULT { return @as(*const ISchemaItemCollection.VTable, @ptrCast(self.vtable)).itemByName(@as(*const ISchemaItemCollection, @ptrCast(self)), name, item); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISchemaItemCollection_itemByQName(self: *const T, name: ?BSTR, namespaceURI: ?BSTR, item: ?*?*ISchemaItem) HRESULT { return @as(*const ISchemaItemCollection.VTable, @ptrCast(self.vtable)).itemByQName(@as(*const ISchemaItemCollection, @ptrCast(self)), name, namespaceURI, item); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISchemaItemCollection_get_length(self: *const T, length: ?*i32) HRESULT { return @as(*const ISchemaItemCollection.VTable, @ptrCast(self.vtable)).get_length(@as(*const ISchemaItemCollection, @ptrCast(self)), length); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISchemaItemCollection_get__newEnum(self: *const T, ppunk: ?*?*IUnknown) HRESULT { return @as(*const ISchemaItemCollection.VTable, @ptrCast(self.vtable)).get__newEnum(@as(*const ISchemaItemCollection, @ptrCast(self)), ppunk); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_ISchemaItem_Value = Guid.initString("50ea08b3-dd1b-4664-9a50-c2f40f4bd79a"); pub const IID_ISchemaItem = &IID_ISchemaItem_Value; pub const ISchemaItem = extern struct { pub const VTable = extern struct { base: IDispatch.VTable, // TODO: this function has a "SpecialName", should Zig do anything with this? get_name: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ISchemaItem, name: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ISchemaItem, name: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_namespaceURI: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ISchemaItem, namespaceURI: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ISchemaItem, namespaceURI: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_schema: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ISchemaItem, schema: ?*?*ISchema, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ISchemaItem, schema: ?*?*ISchema, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_id: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ISchemaItem, id: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ISchemaItem, id: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_itemType: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ISchemaItem, itemType: ?*SOMITEMTYPE, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ISchemaItem, itemType: ?*SOMITEMTYPE, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_unhandledAttributes: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ISchemaItem, attributes: ?*?*IVBSAXAttributes, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ISchemaItem, attributes: ?*?*IVBSAXAttributes, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, writeAnnotation: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ISchemaItem, annotationSink: ?*IUnknown, isWritten: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ISchemaItem, annotationSink: ?*IUnknown, isWritten: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IDispatch.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISchemaItem_get_name(self: *const T, name: ?*?BSTR) HRESULT { return @as(*const ISchemaItem.VTable, @ptrCast(self.vtable)).get_name(@as(*const ISchemaItem, @ptrCast(self)), name); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISchemaItem_get_namespaceURI(self: *const T, namespaceURI: ?*?BSTR) HRESULT { return @as(*const ISchemaItem.VTable, @ptrCast(self.vtable)).get_namespaceURI(@as(*const ISchemaItem, @ptrCast(self)), namespaceURI); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISchemaItem_get_schema(self: *const T, schema: ?*?*ISchema) HRESULT { return @as(*const ISchemaItem.VTable, @ptrCast(self.vtable)).get_schema(@as(*const ISchemaItem, @ptrCast(self)), schema); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISchemaItem_get_id(self: *const T, id: ?*?BSTR) HRESULT { return @as(*const ISchemaItem.VTable, @ptrCast(self.vtable)).get_id(@as(*const ISchemaItem, @ptrCast(self)), id); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISchemaItem_get_itemType(self: *const T, itemType: ?*SOMITEMTYPE) HRESULT { return @as(*const ISchemaItem.VTable, @ptrCast(self.vtable)).get_itemType(@as(*const ISchemaItem, @ptrCast(self)), itemType); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISchemaItem_get_unhandledAttributes(self: *const T, attributes: ?*?*IVBSAXAttributes) HRESULT { return @as(*const ISchemaItem.VTable, @ptrCast(self.vtable)).get_unhandledAttributes(@as(*const ISchemaItem, @ptrCast(self)), attributes); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISchemaItem_writeAnnotation(self: *const T, annotationSink: ?*IUnknown, isWritten: ?*i16) HRESULT { return @as(*const ISchemaItem.VTable, @ptrCast(self.vtable)).writeAnnotation(@as(*const ISchemaItem, @ptrCast(self)), annotationSink, isWritten); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_ISchema_Value = Guid.initString("50ea08b4-dd1b-4664-9a50-c2f40f4bd79a"); pub const IID_ISchema = &IID_ISchema_Value; pub const ISchema = extern struct { pub const VTable = extern struct { base: ISchemaItem.VTable, // TODO: this function has a "SpecialName", should Zig do anything with this? get_targetNamespace: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ISchema, targetNamespace: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ISchema, targetNamespace: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_version: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ISchema, version: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ISchema, version: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_types: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ISchema, types: ?*?*ISchemaItemCollection, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ISchema, types: ?*?*ISchemaItemCollection, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_elements: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ISchema, elements: ?*?*ISchemaItemCollection, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ISchema, elements: ?*?*ISchemaItemCollection, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_attributes: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ISchema, attributes: ?*?*ISchemaItemCollection, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ISchema, attributes: ?*?*ISchemaItemCollection, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_attributeGroups: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ISchema, attributeGroups: ?*?*ISchemaItemCollection, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ISchema, attributeGroups: ?*?*ISchemaItemCollection, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_modelGroups: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ISchema, modelGroups: ?*?*ISchemaItemCollection, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ISchema, modelGroups: ?*?*ISchemaItemCollection, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_notations: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ISchema, notations: ?*?*ISchemaItemCollection, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ISchema, notations: ?*?*ISchemaItemCollection, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_schemaLocations: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ISchema, schemaLocations: ?*?*ISchemaStringCollection, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ISchema, schemaLocations: ?*?*ISchemaStringCollection, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace ISchemaItem.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISchema_get_targetNamespace(self: *const T, targetNamespace: ?*?BSTR) HRESULT { return @as(*const ISchema.VTable, @ptrCast(self.vtable)).get_targetNamespace(@as(*const ISchema, @ptrCast(self)), targetNamespace); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISchema_get_version(self: *const T, version: ?*?BSTR) HRESULT { return @as(*const ISchema.VTable, @ptrCast(self.vtable)).get_version(@as(*const ISchema, @ptrCast(self)), version); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISchema_get_types(self: *const T, types: ?*?*ISchemaItemCollection) HRESULT { return @as(*const ISchema.VTable, @ptrCast(self.vtable)).get_types(@as(*const ISchema, @ptrCast(self)), types); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISchema_get_elements(self: *const T, elements: ?*?*ISchemaItemCollection) HRESULT { return @as(*const ISchema.VTable, @ptrCast(self.vtable)).get_elements(@as(*const ISchema, @ptrCast(self)), elements); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISchema_get_attributes(self: *const T, attributes: ?*?*ISchemaItemCollection) HRESULT { return @as(*const ISchema.VTable, @ptrCast(self.vtable)).get_attributes(@as(*const ISchema, @ptrCast(self)), attributes); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISchema_get_attributeGroups(self: *const T, attributeGroups: ?*?*ISchemaItemCollection) HRESULT { return @as(*const ISchema.VTable, @ptrCast(self.vtable)).get_attributeGroups(@as(*const ISchema, @ptrCast(self)), attributeGroups); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISchema_get_modelGroups(self: *const T, modelGroups: ?*?*ISchemaItemCollection) HRESULT { return @as(*const ISchema.VTable, @ptrCast(self.vtable)).get_modelGroups(@as(*const ISchema, @ptrCast(self)), modelGroups); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISchema_get_notations(self: *const T, notations: ?*?*ISchemaItemCollection) HRESULT { return @as(*const ISchema.VTable, @ptrCast(self.vtable)).get_notations(@as(*const ISchema, @ptrCast(self)), notations); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISchema_get_schemaLocations(self: *const T, schemaLocations: ?*?*ISchemaStringCollection) HRESULT { return @as(*const ISchema.VTable, @ptrCast(self.vtable)).get_schemaLocations(@as(*const ISchema, @ptrCast(self)), schemaLocations); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_ISchemaParticle_Value = Guid.initString("50ea08b5-dd1b-4664-9a50-c2f40f4bd79a"); pub const IID_ISchemaParticle = &IID_ISchemaParticle_Value; pub const ISchemaParticle = extern struct { pub const VTable = extern struct { base: ISchemaItem.VTable, // TODO: this function has a "SpecialName", should Zig do anything with this? get_minOccurs: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ISchemaParticle, minOccurs: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ISchemaParticle, minOccurs: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_maxOccurs: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ISchemaParticle, maxOccurs: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ISchemaParticle, maxOccurs: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace ISchemaItem.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISchemaParticle_get_minOccurs(self: *const T, minOccurs: ?*VARIANT) HRESULT { return @as(*const ISchemaParticle.VTable, @ptrCast(self.vtable)).get_minOccurs(@as(*const ISchemaParticle, @ptrCast(self)), minOccurs); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISchemaParticle_get_maxOccurs(self: *const T, maxOccurs: ?*VARIANT) HRESULT { return @as(*const ISchemaParticle.VTable, @ptrCast(self.vtable)).get_maxOccurs(@as(*const ISchemaParticle, @ptrCast(self)), maxOccurs); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_ISchemaAttribute_Value = Guid.initString("50ea08b6-dd1b-4664-9a50-c2f40f4bd79a"); pub const IID_ISchemaAttribute = &IID_ISchemaAttribute_Value; pub const ISchemaAttribute = extern struct { pub const VTable = extern struct { base: ISchemaItem.VTable, // TODO: this function has a "SpecialName", should Zig do anything with this? get_type: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ISchemaAttribute, type: ?*?*ISchemaType, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ISchemaAttribute, type: ?*?*ISchemaType, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_scope: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ISchemaAttribute, scope: ?*?*ISchemaComplexType, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ISchemaAttribute, scope: ?*?*ISchemaComplexType, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_defaultValue: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ISchemaAttribute, defaultValue: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ISchemaAttribute, defaultValue: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_fixedValue: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ISchemaAttribute, fixedValue: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ISchemaAttribute, fixedValue: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_use: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ISchemaAttribute, use: ?*SCHEMAUSE, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ISchemaAttribute, use: ?*SCHEMAUSE, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_isReference: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ISchemaAttribute, reference: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ISchemaAttribute, reference: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace ISchemaItem.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISchemaAttribute_get_type(self: *const T, type_: ?*?*ISchemaType) HRESULT { return @as(*const ISchemaAttribute.VTable, @ptrCast(self.vtable)).get_type(@as(*const ISchemaAttribute, @ptrCast(self)), type_); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISchemaAttribute_get_scope(self: *const T, scope: ?*?*ISchemaComplexType) HRESULT { return @as(*const ISchemaAttribute.VTable, @ptrCast(self.vtable)).get_scope(@as(*const ISchemaAttribute, @ptrCast(self)), scope); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISchemaAttribute_get_defaultValue(self: *const T, defaultValue: ?*?BSTR) HRESULT { return @as(*const ISchemaAttribute.VTable, @ptrCast(self.vtable)).get_defaultValue(@as(*const ISchemaAttribute, @ptrCast(self)), defaultValue); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISchemaAttribute_get_fixedValue(self: *const T, fixedValue: ?*?BSTR) HRESULT { return @as(*const ISchemaAttribute.VTable, @ptrCast(self.vtable)).get_fixedValue(@as(*const ISchemaAttribute, @ptrCast(self)), fixedValue); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISchemaAttribute_get_use(self: *const T, use: ?*SCHEMAUSE) HRESULT { return @as(*const ISchemaAttribute.VTable, @ptrCast(self.vtable)).get_use(@as(*const ISchemaAttribute, @ptrCast(self)), use); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISchemaAttribute_get_isReference(self: *const T, reference: ?*i16) HRESULT { return @as(*const ISchemaAttribute.VTable, @ptrCast(self.vtable)).get_isReference(@as(*const ISchemaAttribute, @ptrCast(self)), reference); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_ISchemaElement_Value = Guid.initString("50ea08b7-dd1b-4664-9a50-c2f40f4bd79a"); pub const IID_ISchemaElement = &IID_ISchemaElement_Value; pub const ISchemaElement = extern struct { pub const VTable = extern struct { base: ISchemaParticle.VTable, // TODO: this function has a "SpecialName", should Zig do anything with this? get_type: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ISchemaElement, type: ?*?*ISchemaType, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ISchemaElement, type: ?*?*ISchemaType, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_scope: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ISchemaElement, scope: ?*?*ISchemaComplexType, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ISchemaElement, scope: ?*?*ISchemaComplexType, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_defaultValue: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ISchemaElement, defaultValue: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ISchemaElement, defaultValue: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_fixedValue: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ISchemaElement, fixedValue: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ISchemaElement, fixedValue: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_isNillable: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ISchemaElement, nillable: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ISchemaElement, nillable: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_identityConstraints: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ISchemaElement, constraints: ?*?*ISchemaItemCollection, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ISchemaElement, constraints: ?*?*ISchemaItemCollection, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_substitutionGroup: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ISchemaElement, element: ?*?*ISchemaElement, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ISchemaElement, element: ?*?*ISchemaElement, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_substitutionGroupExclusions: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ISchemaElement, exclusions: ?*SCHEMADERIVATIONMETHOD, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ISchemaElement, exclusions: ?*SCHEMADERIVATIONMETHOD, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_disallowedSubstitutions: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ISchemaElement, disallowed: ?*SCHEMADERIVATIONMETHOD, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ISchemaElement, disallowed: ?*SCHEMADERIVATIONMETHOD, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_isAbstract: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ISchemaElement, abstract: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ISchemaElement, abstract: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_isReference: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ISchemaElement, reference: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ISchemaElement, reference: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace ISchemaParticle.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISchemaElement_get_type(self: *const T, type_: ?*?*ISchemaType) HRESULT { return @as(*const ISchemaElement.VTable, @ptrCast(self.vtable)).get_type(@as(*const ISchemaElement, @ptrCast(self)), type_); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISchemaElement_get_scope(self: *const T, scope: ?*?*ISchemaComplexType) HRESULT { return @as(*const ISchemaElement.VTable, @ptrCast(self.vtable)).get_scope(@as(*const ISchemaElement, @ptrCast(self)), scope); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISchemaElement_get_defaultValue(self: *const T, defaultValue: ?*?BSTR) HRESULT { return @as(*const ISchemaElement.VTable, @ptrCast(self.vtable)).get_defaultValue(@as(*const ISchemaElement, @ptrCast(self)), defaultValue); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISchemaElement_get_fixedValue(self: *const T, fixedValue: ?*?BSTR) HRESULT { return @as(*const ISchemaElement.VTable, @ptrCast(self.vtable)).get_fixedValue(@as(*const ISchemaElement, @ptrCast(self)), fixedValue); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISchemaElement_get_isNillable(self: *const T, nillable: ?*i16) HRESULT { return @as(*const ISchemaElement.VTable, @ptrCast(self.vtable)).get_isNillable(@as(*const ISchemaElement, @ptrCast(self)), nillable); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISchemaElement_get_identityConstraints(self: *const T, constraints: ?*?*ISchemaItemCollection) HRESULT { return @as(*const ISchemaElement.VTable, @ptrCast(self.vtable)).get_identityConstraints(@as(*const ISchemaElement, @ptrCast(self)), constraints); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISchemaElement_get_substitutionGroup(self: *const T, element: ?*?*ISchemaElement) HRESULT { return @as(*const ISchemaElement.VTable, @ptrCast(self.vtable)).get_substitutionGroup(@as(*const ISchemaElement, @ptrCast(self)), element); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISchemaElement_get_substitutionGroupExclusions(self: *const T, exclusions: ?*SCHEMADERIVATIONMETHOD) HRESULT { return @as(*const ISchemaElement.VTable, @ptrCast(self.vtable)).get_substitutionGroupExclusions(@as(*const ISchemaElement, @ptrCast(self)), exclusions); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISchemaElement_get_disallowedSubstitutions(self: *const T, disallowed: ?*SCHEMADERIVATIONMETHOD) HRESULT { return @as(*const ISchemaElement.VTable, @ptrCast(self.vtable)).get_disallowedSubstitutions(@as(*const ISchemaElement, @ptrCast(self)), disallowed); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISchemaElement_get_isAbstract(self: *const T, abstract: ?*i16) HRESULT { return @as(*const ISchemaElement.VTable, @ptrCast(self.vtable)).get_isAbstract(@as(*const ISchemaElement, @ptrCast(self)), abstract); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISchemaElement_get_isReference(self: *const T, reference: ?*i16) HRESULT { return @as(*const ISchemaElement.VTable, @ptrCast(self.vtable)).get_isReference(@as(*const ISchemaElement, @ptrCast(self)), reference); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_ISchemaType_Value = Guid.initString("50ea08b8-dd1b-4664-9a50-c2f40f4bd79a"); pub const IID_ISchemaType = &IID_ISchemaType_Value; pub const ISchemaType = extern struct { pub const VTable = extern struct { base: ISchemaItem.VTable, // TODO: this function has a "SpecialName", should Zig do anything with this? get_baseTypes: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ISchemaType, baseTypes: ?*?*ISchemaItemCollection, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ISchemaType, baseTypes: ?*?*ISchemaItemCollection, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_final: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ISchemaType, final: ?*SCHEMADERIVATIONMETHOD, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ISchemaType, final: ?*SCHEMADERIVATIONMETHOD, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_variety: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ISchemaType, variety: ?*SCHEMATYPEVARIETY, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ISchemaType, variety: ?*SCHEMATYPEVARIETY, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_derivedBy: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ISchemaType, derivedBy: ?*SCHEMADERIVATIONMETHOD, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ISchemaType, derivedBy: ?*SCHEMADERIVATIONMETHOD, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, isValid: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ISchemaType, data: ?BSTR, valid: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ISchemaType, data: ?BSTR, valid: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_minExclusive: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ISchemaType, minExclusive: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ISchemaType, minExclusive: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_minInclusive: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ISchemaType, minInclusive: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ISchemaType, minInclusive: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_maxExclusive: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ISchemaType, maxExclusive: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ISchemaType, maxExclusive: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_maxInclusive: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ISchemaType, maxInclusive: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ISchemaType, maxInclusive: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_totalDigits: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ISchemaType, totalDigits: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ISchemaType, totalDigits: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_fractionDigits: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ISchemaType, fractionDigits: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ISchemaType, fractionDigits: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_length: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ISchemaType, length: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ISchemaType, length: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_minLength: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ISchemaType, minLength: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ISchemaType, minLength: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_maxLength: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ISchemaType, maxLength: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ISchemaType, maxLength: ?*VARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_enumeration: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ISchemaType, enumeration: ?*?*ISchemaStringCollection, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ISchemaType, enumeration: ?*?*ISchemaStringCollection, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_whitespace: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ISchemaType, whitespace: ?*SCHEMAWHITESPACE, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ISchemaType, whitespace: ?*SCHEMAWHITESPACE, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_patterns: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ISchemaType, patterns: ?*?*ISchemaStringCollection, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ISchemaType, patterns: ?*?*ISchemaStringCollection, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace ISchemaItem.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISchemaType_get_baseTypes(self: *const T, baseTypes: ?*?*ISchemaItemCollection) HRESULT { return @as(*const ISchemaType.VTable, @ptrCast(self.vtable)).get_baseTypes(@as(*const ISchemaType, @ptrCast(self)), baseTypes); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISchemaType_get_final(self: *const T, final: ?*SCHEMADERIVATIONMETHOD) HRESULT { return @as(*const ISchemaType.VTable, @ptrCast(self.vtable)).get_final(@as(*const ISchemaType, @ptrCast(self)), final); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISchemaType_get_variety(self: *const T, variety: ?*SCHEMATYPEVARIETY) HRESULT { return @as(*const ISchemaType.VTable, @ptrCast(self.vtable)).get_variety(@as(*const ISchemaType, @ptrCast(self)), variety); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISchemaType_get_derivedBy(self: *const T, derivedBy: ?*SCHEMADERIVATIONMETHOD) HRESULT { return @as(*const ISchemaType.VTable, @ptrCast(self.vtable)).get_derivedBy(@as(*const ISchemaType, @ptrCast(self)), derivedBy); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISchemaType_isValid(self: *const T, data: ?BSTR, valid: ?*i16) HRESULT { return @as(*const ISchemaType.VTable, @ptrCast(self.vtable)).isValid(@as(*const ISchemaType, @ptrCast(self)), data, valid); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISchemaType_get_minExclusive(self: *const T, minExclusive: ?*?BSTR) HRESULT { return @as(*const ISchemaType.VTable, @ptrCast(self.vtable)).get_minExclusive(@as(*const ISchemaType, @ptrCast(self)), minExclusive); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISchemaType_get_minInclusive(self: *const T, minInclusive: ?*?BSTR) HRESULT { return @as(*const ISchemaType.VTable, @ptrCast(self.vtable)).get_minInclusive(@as(*const ISchemaType, @ptrCast(self)), minInclusive); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISchemaType_get_maxExclusive(self: *const T, maxExclusive: ?*?BSTR) HRESULT { return @as(*const ISchemaType.VTable, @ptrCast(self.vtable)).get_maxExclusive(@as(*const ISchemaType, @ptrCast(self)), maxExclusive); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISchemaType_get_maxInclusive(self: *const T, maxInclusive: ?*?BSTR) HRESULT { return @as(*const ISchemaType.VTable, @ptrCast(self.vtable)).get_maxInclusive(@as(*const ISchemaType, @ptrCast(self)), maxInclusive); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISchemaType_get_totalDigits(self: *const T, totalDigits: ?*VARIANT) HRESULT { return @as(*const ISchemaType.VTable, @ptrCast(self.vtable)).get_totalDigits(@as(*const ISchemaType, @ptrCast(self)), totalDigits); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISchemaType_get_fractionDigits(self: *const T, fractionDigits: ?*VARIANT) HRESULT { return @as(*const ISchemaType.VTable, @ptrCast(self.vtable)).get_fractionDigits(@as(*const ISchemaType, @ptrCast(self)), fractionDigits); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISchemaType_get_length(self: *const T, length: ?*VARIANT) HRESULT { return @as(*const ISchemaType.VTable, @ptrCast(self.vtable)).get_length(@as(*const ISchemaType, @ptrCast(self)), length); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISchemaType_get_minLength(self: *const T, minLength: ?*VARIANT) HRESULT { return @as(*const ISchemaType.VTable, @ptrCast(self.vtable)).get_minLength(@as(*const ISchemaType, @ptrCast(self)), minLength); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISchemaType_get_maxLength(self: *const T, maxLength: ?*VARIANT) HRESULT { return @as(*const ISchemaType.VTable, @ptrCast(self.vtable)).get_maxLength(@as(*const ISchemaType, @ptrCast(self)), maxLength); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISchemaType_get_enumeration(self: *const T, enumeration: ?*?*ISchemaStringCollection) HRESULT { return @as(*const ISchemaType.VTable, @ptrCast(self.vtable)).get_enumeration(@as(*const ISchemaType, @ptrCast(self)), enumeration); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISchemaType_get_whitespace(self: *const T, whitespace: ?*SCHEMAWHITESPACE) HRESULT { return @as(*const ISchemaType.VTable, @ptrCast(self.vtable)).get_whitespace(@as(*const ISchemaType, @ptrCast(self)), whitespace); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISchemaType_get_patterns(self: *const T, patterns: ?*?*ISchemaStringCollection) HRESULT { return @as(*const ISchemaType.VTable, @ptrCast(self.vtable)).get_patterns(@as(*const ISchemaType, @ptrCast(self)), patterns); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_ISchemaComplexType_Value = Guid.initString("50ea08b9-dd1b-4664-9a50-c2f40f4bd79a"); pub const IID_ISchemaComplexType = &IID_ISchemaComplexType_Value; pub const ISchemaComplexType = extern struct { pub const VTable = extern struct { base: ISchemaType.VTable, // TODO: this function has a "SpecialName", should Zig do anything with this? get_isAbstract: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ISchemaComplexType, abstract: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ISchemaComplexType, abstract: ?*i16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_anyAttribute: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ISchemaComplexType, anyAttribute: ?*?*ISchemaAny, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ISchemaComplexType, anyAttribute: ?*?*ISchemaAny, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_attributes: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ISchemaComplexType, attributes: ?*?*ISchemaItemCollection, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ISchemaComplexType, attributes: ?*?*ISchemaItemCollection, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_contentType: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ISchemaComplexType, contentType: ?*SCHEMACONTENTTYPE, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ISchemaComplexType, contentType: ?*SCHEMACONTENTTYPE, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_contentModel: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ISchemaComplexType, contentModel: ?*?*ISchemaModelGroup, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ISchemaComplexType, contentModel: ?*?*ISchemaModelGroup, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_prohibitedSubstitutions: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ISchemaComplexType, prohibited: ?*SCHEMADERIVATIONMETHOD, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ISchemaComplexType, prohibited: ?*SCHEMADERIVATIONMETHOD, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace ISchemaType.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISchemaComplexType_get_isAbstract(self: *const T, abstract: ?*i16) HRESULT { return @as(*const ISchemaComplexType.VTable, @ptrCast(self.vtable)).get_isAbstract(@as(*const ISchemaComplexType, @ptrCast(self)), abstract); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISchemaComplexType_get_anyAttribute(self: *const T, anyAttribute: ?*?*ISchemaAny) HRESULT { return @as(*const ISchemaComplexType.VTable, @ptrCast(self.vtable)).get_anyAttribute(@as(*const ISchemaComplexType, @ptrCast(self)), anyAttribute); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISchemaComplexType_get_attributes(self: *const T, attributes: ?*?*ISchemaItemCollection) HRESULT { return @as(*const ISchemaComplexType.VTable, @ptrCast(self.vtable)).get_attributes(@as(*const ISchemaComplexType, @ptrCast(self)), attributes); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISchemaComplexType_get_contentType(self: *const T, contentType: ?*SCHEMACONTENTTYPE) HRESULT { return @as(*const ISchemaComplexType.VTable, @ptrCast(self.vtable)).get_contentType(@as(*const ISchemaComplexType, @ptrCast(self)), contentType); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISchemaComplexType_get_contentModel(self: *const T, contentModel: ?*?*ISchemaModelGroup) HRESULT { return @as(*const ISchemaComplexType.VTable, @ptrCast(self.vtable)).get_contentModel(@as(*const ISchemaComplexType, @ptrCast(self)), contentModel); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISchemaComplexType_get_prohibitedSubstitutions(self: *const T, prohibited: ?*SCHEMADERIVATIONMETHOD) HRESULT { return @as(*const ISchemaComplexType.VTable, @ptrCast(self.vtable)).get_prohibitedSubstitutions(@as(*const ISchemaComplexType, @ptrCast(self)), prohibited); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_ISchemaAttributeGroup_Value = Guid.initString("50ea08ba-dd1b-4664-9a50-c2f40f4bd79a"); pub const IID_ISchemaAttributeGroup = &IID_ISchemaAttributeGroup_Value; pub const ISchemaAttributeGroup = extern struct { pub const VTable = extern struct { base: ISchemaItem.VTable, // TODO: this function has a "SpecialName", should Zig do anything with this? get_anyAttribute: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ISchemaAttributeGroup, anyAttribute: ?*?*ISchemaAny, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ISchemaAttributeGroup, anyAttribute: ?*?*ISchemaAny, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_attributes: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ISchemaAttributeGroup, attributes: ?*?*ISchemaItemCollection, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ISchemaAttributeGroup, attributes: ?*?*ISchemaItemCollection, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace ISchemaItem.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISchemaAttributeGroup_get_anyAttribute(self: *const T, anyAttribute: ?*?*ISchemaAny) HRESULT { return @as(*const ISchemaAttributeGroup.VTable, @ptrCast(self.vtable)).get_anyAttribute(@as(*const ISchemaAttributeGroup, @ptrCast(self)), anyAttribute); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISchemaAttributeGroup_get_attributes(self: *const T, attributes: ?*?*ISchemaItemCollection) HRESULT { return @as(*const ISchemaAttributeGroup.VTable, @ptrCast(self.vtable)).get_attributes(@as(*const ISchemaAttributeGroup, @ptrCast(self)), attributes); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_ISchemaModelGroup_Value = Guid.initString("50ea08bb-dd1b-4664-9a50-c2f40f4bd79a"); pub const IID_ISchemaModelGroup = &IID_ISchemaModelGroup_Value; pub const ISchemaModelGroup = extern struct { pub const VTable = extern struct { base: ISchemaParticle.VTable, // TODO: this function has a "SpecialName", should Zig do anything with this? get_particles: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ISchemaModelGroup, particles: ?*?*ISchemaItemCollection, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ISchemaModelGroup, particles: ?*?*ISchemaItemCollection, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace ISchemaParticle.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISchemaModelGroup_get_particles(self: *const T, particles: ?*?*ISchemaItemCollection) HRESULT { return @as(*const ISchemaModelGroup.VTable, @ptrCast(self.vtable)).get_particles(@as(*const ISchemaModelGroup, @ptrCast(self)), particles); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_ISchemaAny_Value = Guid.initString("50ea08bc-dd1b-4664-9a50-c2f40f4bd79a"); pub const IID_ISchemaAny = &IID_ISchemaAny_Value; pub const ISchemaAny = extern struct { pub const VTable = extern struct { base: ISchemaParticle.VTable, // TODO: this function has a "SpecialName", should Zig do anything with this? get_namespaces: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ISchemaAny, namespaces: ?*?*ISchemaStringCollection, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ISchemaAny, namespaces: ?*?*ISchemaStringCollection, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_processContents: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ISchemaAny, processContents: ?*SCHEMAPROCESSCONTENTS, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ISchemaAny, processContents: ?*SCHEMAPROCESSCONTENTS, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace ISchemaParticle.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISchemaAny_get_namespaces(self: *const T, namespaces: ?*?*ISchemaStringCollection) HRESULT { return @as(*const ISchemaAny.VTable, @ptrCast(self.vtable)).get_namespaces(@as(*const ISchemaAny, @ptrCast(self)), namespaces); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISchemaAny_get_processContents(self: *const T, processContents: ?*SCHEMAPROCESSCONTENTS) HRESULT { return @as(*const ISchemaAny.VTable, @ptrCast(self.vtable)).get_processContents(@as(*const ISchemaAny, @ptrCast(self)), processContents); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_ISchemaIdentityConstraint_Value = Guid.initString("50ea08bd-dd1b-4664-9a50-c2f40f4bd79a"); pub const IID_ISchemaIdentityConstraint = &IID_ISchemaIdentityConstraint_Value; pub const ISchemaIdentityConstraint = extern struct { pub const VTable = extern struct { base: ISchemaItem.VTable, // TODO: this function has a "SpecialName", should Zig do anything with this? get_selector: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ISchemaIdentityConstraint, selector: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ISchemaIdentityConstraint, selector: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_fields: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ISchemaIdentityConstraint, fields: ?*?*ISchemaStringCollection, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ISchemaIdentityConstraint, fields: ?*?*ISchemaStringCollection, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_referencedKey: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ISchemaIdentityConstraint, key: ?*?*ISchemaIdentityConstraint, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ISchemaIdentityConstraint, key: ?*?*ISchemaIdentityConstraint, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace ISchemaItem.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISchemaIdentityConstraint_get_selector(self: *const T, selector: ?*?BSTR) HRESULT { return @as(*const ISchemaIdentityConstraint.VTable, @ptrCast(self.vtable)).get_selector(@as(*const ISchemaIdentityConstraint, @ptrCast(self)), selector); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISchemaIdentityConstraint_get_fields(self: *const T, fields: ?*?*ISchemaStringCollection) HRESULT { return @as(*const ISchemaIdentityConstraint.VTable, @ptrCast(self.vtable)).get_fields(@as(*const ISchemaIdentityConstraint, @ptrCast(self)), fields); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISchemaIdentityConstraint_get_referencedKey(self: *const T, key: ?*?*ISchemaIdentityConstraint) HRESULT { return @as(*const ISchemaIdentityConstraint.VTable, @ptrCast(self.vtable)).get_referencedKey(@as(*const ISchemaIdentityConstraint, @ptrCast(self)), key); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_ISchemaNotation_Value = Guid.initString("50ea08be-dd1b-4664-9a50-c2f40f4bd79a"); pub const IID_ISchemaNotation = &IID_ISchemaNotation_Value; pub const ISchemaNotation = extern struct { pub const VTable = extern struct { base: ISchemaItem.VTable, // TODO: this function has a "SpecialName", should Zig do anything with this? get_systemIdentifier: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ISchemaNotation, uri: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ISchemaNotation, uri: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, // TODO: this function has a "SpecialName", should Zig do anything with this? get_publicIdentifier: switch (@import("builtin").zig_backend) { // TODO: this function has a "SpecialName", should Zig do anything with this? .stage1 => fn ( self: *const ISchemaNotation, uri: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, // TODO: this function has a "SpecialName", should Zig do anything with this? else => *const fn ( self: *const ISchemaNotation, uri: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace ISchemaItem.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISchemaNotation_get_systemIdentifier(self: *const T, uri: ?*?BSTR) HRESULT { return @as(*const ISchemaNotation.VTable, @ptrCast(self.vtable)).get_systemIdentifier(@as(*const ISchemaNotation, @ptrCast(self)), uri); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ISchemaNotation_get_publicIdentifier(self: *const T, uri: ?*?BSTR) HRESULT { return @as(*const ISchemaNotation.VTable, @ptrCast(self.vtable)).get_publicIdentifier(@as(*const ISchemaNotation, @ptrCast(self)), uri); } }; } pub usingnamespace MethodMixin(@This()); }; pub const __msxml6_ReferenceRemainingTypes__ = extern struct { __tagDomNodeType__: DOMNodeType, __domNodeType__: DOMNodeType, __serverXmlHttpOptionEnum__: SERVERXMLHTTP_OPTION, __serverXmlHttpOption__: SERVERXMLHTTP_OPTION, __serverCertOptionEnum__: SXH_SERVER_CERT_OPTION, __serverCertOption__: SXH_SERVER_CERT_OPTION, __proxySettingEnum__: SXH_PROXY_SETTING, __proxySetting__: SXH_PROXY_SETTING, __somItemTypeEnum__: SOMITEMTYPE, __somItemType__: SOMITEMTYPE, __schemaUseEnum__: SCHEMAUSE, __schemaUse__: SCHEMAUSE, __schemaDerivationMethodEnum__: SCHEMADERIVATIONMETHOD, __schemaDerivationMethod__: SCHEMADERIVATIONMETHOD, __schemaContentTypeEnum__: SCHEMACONTENTTYPE, __schemaContentType__: SCHEMACONTENTTYPE, __schemaProcessContentsEnum__: SCHEMAPROCESSCONTENTS, __schemaProcessContents__: SCHEMAPROCESSCONTENTS, __schemaWhitespaceEnum__: SCHEMAWHITESPACE, __schemaWhitespace__: SCHEMAWHITESPACE, __schemaTypeVarietyEnum__: SCHEMATYPEVARIETY, __schemaTypeVariety__: SCHEMATYPEVARIETY, }; pub const XHR_COOKIE_STATE = enum(i32) { UNKNOWN = 0, ACCEPT = 1, PROMPT = 2, LEASH = 3, DOWNGRADE = 4, REJECT = 5, }; pub const XHR_COOKIE_STATE_UNKNOWN = XHR_COOKIE_STATE.UNKNOWN; pub const XHR_COOKIE_STATE_ACCEPT = XHR_COOKIE_STATE.ACCEPT; pub const XHR_COOKIE_STATE_PROMPT = XHR_COOKIE_STATE.PROMPT; pub const XHR_COOKIE_STATE_LEASH = XHR_COOKIE_STATE.LEASH; pub const XHR_COOKIE_STATE_DOWNGRADE = XHR_COOKIE_STATE.DOWNGRADE; pub const XHR_COOKIE_STATE_REJECT = XHR_COOKIE_STATE.REJECT; pub const XHR_COOKIE_FLAG = enum(i32) { IS_SECURE = 1, IS_SESSION = 2, THIRD_PARTY = 16, PROMPT_REQUIRED = 32, EVALUATE_P3P = 64, APPLY_P3P = 128, P3P_ENABLED = 256, IS_RESTRICTED = 512, IE6 = 1024, IS_LEGACY = 2048, NON_SCRIPT = 4096, HTTPONLY = 8192, }; pub const XHR_COOKIE_IS_SECURE = XHR_COOKIE_FLAG.IS_SECURE; pub const XHR_COOKIE_IS_SESSION = XHR_COOKIE_FLAG.IS_SESSION; pub const XHR_COOKIE_THIRD_PARTY = XHR_COOKIE_FLAG.THIRD_PARTY; pub const XHR_COOKIE_PROMPT_REQUIRED = XHR_COOKIE_FLAG.PROMPT_REQUIRED; pub const XHR_COOKIE_EVALUATE_P3P = XHR_COOKIE_FLAG.EVALUATE_P3P; pub const XHR_COOKIE_APPLY_P3P = XHR_COOKIE_FLAG.APPLY_P3P; pub const XHR_COOKIE_P3P_ENABLED = XHR_COOKIE_FLAG.P3P_ENABLED; pub const XHR_COOKIE_IS_RESTRICTED = XHR_COOKIE_FLAG.IS_RESTRICTED; pub const XHR_COOKIE_IE6 = XHR_COOKIE_FLAG.IE6; pub const XHR_COOKIE_IS_LEGACY = XHR_COOKIE_FLAG.IS_LEGACY; pub const XHR_COOKIE_NON_SCRIPT = XHR_COOKIE_FLAG.NON_SCRIPT; pub const XHR_COOKIE_HTTPONLY = XHR_COOKIE_FLAG.HTTPONLY; pub const XHR_CRED_PROMPT = enum(i32) { ALL = 0, NONE = 1, PROXY = 2, }; pub const XHR_CRED_PROMPT_ALL = XHR_CRED_PROMPT.ALL; pub const XHR_CRED_PROMPT_NONE = XHR_CRED_PROMPT.NONE; pub const XHR_CRED_PROMPT_PROXY = XHR_CRED_PROMPT.PROXY; pub const XHR_AUTH = enum(i32) { ALL = 0, NONE = 1, PROXY = 2, }; pub const XHR_AUTH_ALL = XHR_AUTH.ALL; pub const XHR_AUTH_NONE = XHR_AUTH.NONE; pub const XHR_AUTH_PROXY = XHR_AUTH.PROXY; pub const XHR_PROPERTY = enum(i32) { NO_CRED_PROMPT = 0, NO_AUTH = 1, TIMEOUT = 2, NO_DEFAULT_HEADERS = 3, REPORT_REDIRECT_STATUS = 4, NO_CACHE = 5, EXTENDED_ERROR = 6, QUERY_STRING_UTF8 = 7, IGNORE_CERT_ERRORS = 8, ONDATA_THRESHOLD = 9, SET_ENTERPRISEID = 10, MAX_CONNECTIONS = 11, }; pub const XHR_PROP_NO_CRED_PROMPT = XHR_PROPERTY.NO_CRED_PROMPT; pub const XHR_PROP_NO_AUTH = XHR_PROPERTY.NO_AUTH; pub const XHR_PROP_TIMEOUT = XHR_PROPERTY.TIMEOUT; pub const XHR_PROP_NO_DEFAULT_HEADERS = XHR_PROPERTY.NO_DEFAULT_HEADERS; pub const XHR_PROP_REPORT_REDIRECT_STATUS = XHR_PROPERTY.REPORT_REDIRECT_STATUS; pub const XHR_PROP_NO_CACHE = XHR_PROPERTY.NO_CACHE; pub const XHR_PROP_EXTENDED_ERROR = XHR_PROPERTY.EXTENDED_ERROR; pub const XHR_PROP_QUERY_STRING_UTF8 = XHR_PROPERTY.QUERY_STRING_UTF8; pub const XHR_PROP_IGNORE_CERT_ERRORS = XHR_PROPERTY.IGNORE_CERT_ERRORS; pub const XHR_PROP_ONDATA_THRESHOLD = XHR_PROPERTY.ONDATA_THRESHOLD; pub const XHR_PROP_SET_ENTERPRISEID = XHR_PROPERTY.SET_ENTERPRISEID; pub const XHR_PROP_MAX_CONNECTIONS = XHR_PROPERTY.MAX_CONNECTIONS; pub const XHR_CERT_IGNORE_FLAG = enum(u32) { REVOCATION_FAILED = 128, UNKNOWN_CA = 256, CERT_CN_INVALID = 4096, CERT_DATE_INVALID = 8192, ALL_SERVER_ERRORS = 12672, }; pub const XHR_CERT_IGNORE_REVOCATION_FAILED = XHR_CERT_IGNORE_FLAG.REVOCATION_FAILED; pub const XHR_CERT_IGNORE_UNKNOWN_CA = XHR_CERT_IGNORE_FLAG.UNKNOWN_CA; pub const XHR_CERT_IGNORE_CERT_CN_INVALID = XHR_CERT_IGNORE_FLAG.CERT_CN_INVALID; pub const XHR_CERT_IGNORE_CERT_DATE_INVALID = XHR_CERT_IGNORE_FLAG.CERT_DATE_INVALID; pub const XHR_CERT_IGNORE_ALL_SERVER_ERRORS = XHR_CERT_IGNORE_FLAG.ALL_SERVER_ERRORS; pub const XHR_CERT_ERROR_FLAG = enum(u32) { REVOCATION_FAILED = 8388608, UNKNOWN_CA = 16777216, CERT_CN_INVALID = 33554432, CERT_DATE_INVALID = 67108864, ALL_SERVER_ERRORS = 125829120, }; pub const XHR_CERT_ERROR_REVOCATION_FAILED = XHR_CERT_ERROR_FLAG.REVOCATION_FAILED; pub const XHR_CERT_ERROR_UNKNOWN_CA = XHR_CERT_ERROR_FLAG.UNKNOWN_CA; pub const XHR_CERT_ERROR_CERT_CN_INVALID = XHR_CERT_ERROR_FLAG.CERT_CN_INVALID; pub const XHR_CERT_ERROR_CERT_DATE_INVALID = XHR_CERT_ERROR_FLAG.CERT_DATE_INVALID; pub const XHR_CERT_ERROR_ALL_SERVER_ERRORS = XHR_CERT_ERROR_FLAG.ALL_SERVER_ERRORS; pub const XHR_COOKIE = extern struct { pwszUrl: ?PWSTR, pwszName: ?PWSTR, pwszValue: ?PWSTR, pwszP3PPolicy: ?PWSTR, ftExpires: FILETIME, dwFlags: u32, }; // TODO: this type is limited to platform 'windows8.0' const IID_IXMLHTTPRequest2Callback_Value = Guid.initString("a44a9299-e321-40de-8866-341b41669162"); pub const IID_IXMLHTTPRequest2Callback = &IID_IXMLHTTPRequest2Callback_Value; pub const IXMLHTTPRequest2Callback = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, OnRedirect: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IXMLHTTPRequest2Callback, pXHR: ?*IXMLHTTPRequest2, pwszRedirectUrl: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IXMLHTTPRequest2Callback, pXHR: ?*IXMLHTTPRequest2, pwszRedirectUrl: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, OnHeadersAvailable: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IXMLHTTPRequest2Callback, pXHR: ?*IXMLHTTPRequest2, dwStatus: u32, pwszStatus: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IXMLHTTPRequest2Callback, pXHR: ?*IXMLHTTPRequest2, dwStatus: u32, pwszStatus: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, OnDataAvailable: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IXMLHTTPRequest2Callback, pXHR: ?*IXMLHTTPRequest2, pResponseStream: ?*ISequentialStream, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IXMLHTTPRequest2Callback, pXHR: ?*IXMLHTTPRequest2, pResponseStream: ?*ISequentialStream, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, OnResponseReceived: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IXMLHTTPRequest2Callback, pXHR: ?*IXMLHTTPRequest2, pResponseStream: ?*ISequentialStream, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IXMLHTTPRequest2Callback, pXHR: ?*IXMLHTTPRequest2, pResponseStream: ?*ISequentialStream, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, OnError: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IXMLHTTPRequest2Callback, pXHR: ?*IXMLHTTPRequest2, hrError: HRESULT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IXMLHTTPRequest2Callback, pXHR: ?*IXMLHTTPRequest2, hrError: HRESULT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IXMLHTTPRequest2Callback_OnRedirect(self: *const T, pXHR: ?*IXMLHTTPRequest2, pwszRedirectUrl: ?[*:0]const u16) HRESULT { return @as(*const IXMLHTTPRequest2Callback.VTable, @ptrCast(self.vtable)).OnRedirect(@as(*const IXMLHTTPRequest2Callback, @ptrCast(self)), pXHR, pwszRedirectUrl); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IXMLHTTPRequest2Callback_OnHeadersAvailable(self: *const T, pXHR: ?*IXMLHTTPRequest2, dwStatus: u32, pwszStatus: ?[*:0]const u16) HRESULT { return @as(*const IXMLHTTPRequest2Callback.VTable, @ptrCast(self.vtable)).OnHeadersAvailable(@as(*const IXMLHTTPRequest2Callback, @ptrCast(self)), pXHR, dwStatus, pwszStatus); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IXMLHTTPRequest2Callback_OnDataAvailable(self: *const T, pXHR: ?*IXMLHTTPRequest2, pResponseStream: ?*ISequentialStream) HRESULT { return @as(*const IXMLHTTPRequest2Callback.VTable, @ptrCast(self.vtable)).OnDataAvailable(@as(*const IXMLHTTPRequest2Callback, @ptrCast(self)), pXHR, pResponseStream); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IXMLHTTPRequest2Callback_OnResponseReceived(self: *const T, pXHR: ?*IXMLHTTPRequest2, pResponseStream: ?*ISequentialStream) HRESULT { return @as(*const IXMLHTTPRequest2Callback.VTable, @ptrCast(self.vtable)).OnResponseReceived(@as(*const IXMLHTTPRequest2Callback, @ptrCast(self)), pXHR, pResponseStream); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IXMLHTTPRequest2Callback_OnError(self: *const T, pXHR: ?*IXMLHTTPRequest2, hrError: HRESULT) HRESULT { return @as(*const IXMLHTTPRequest2Callback.VTable, @ptrCast(self.vtable)).OnError(@as(*const IXMLHTTPRequest2Callback, @ptrCast(self)), pXHR, hrError); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows8.0' const IID_IXMLHTTPRequest2_Value = Guid.initString("e5d37dc0-552a-4d52-9cc0-a14d546fbd04"); pub const IID_IXMLHTTPRequest2 = &IID_IXMLHTTPRequest2_Value; pub const IXMLHTTPRequest2 = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, Open: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IXMLHTTPRequest2, pwszMethod: ?[*:0]const u16, pwszUrl: ?[*:0]const u16, pStatusCallback: ?*IXMLHTTPRequest2Callback, pwszUserName: ?[*:0]const u16, pwszPassword: ?[*:0]const u16, pwszProxyUserName: ?[*:0]const u16, pwszProxyPassword: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IXMLHTTPRequest2, pwszMethod: ?[*:0]const u16, pwszUrl: ?[*:0]const u16, pStatusCallback: ?*IXMLHTTPRequest2Callback, pwszUserName: ?[*:0]const u16, pwszPassword: ?[*:0]const u16, pwszProxyUserName: ?[*:0]const u16, pwszProxyPassword: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Send: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IXMLHTTPRequest2, pBody: ?*ISequentialStream, cbBody: u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IXMLHTTPRequest2, pBody: ?*ISequentialStream, cbBody: u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Abort: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IXMLHTTPRequest2, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IXMLHTTPRequest2, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetCookie: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IXMLHTTPRequest2, pCookie: ?*const XHR_COOKIE, pdwCookieState: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IXMLHTTPRequest2, pCookie: ?*const XHR_COOKIE, pdwCookieState: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetCustomResponseStream: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IXMLHTTPRequest2, pSequentialStream: ?*ISequentialStream, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IXMLHTTPRequest2, pSequentialStream: ?*ISequentialStream, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetProperty: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IXMLHTTPRequest2, eProperty: XHR_PROPERTY, ullValue: u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IXMLHTTPRequest2, eProperty: XHR_PROPERTY, ullValue: u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetRequestHeader: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IXMLHTTPRequest2, pwszHeader: ?[*:0]const u16, pwszValue: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IXMLHTTPRequest2, pwszHeader: ?[*:0]const u16, pwszValue: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetAllResponseHeaders: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IXMLHTTPRequest2, ppwszHeaders: ?*?*u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IXMLHTTPRequest2, ppwszHeaders: ?*?*u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetCookie: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IXMLHTTPRequest2, pwszUrl: ?[*:0]const u16, pwszName: ?[*:0]const u16, dwFlags: u32, pcCookies: ?*u32, ppCookies: [*]?*XHR_COOKIE, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IXMLHTTPRequest2, pwszUrl: ?[*:0]const u16, pwszName: ?[*:0]const u16, dwFlags: u32, pcCookies: ?*u32, ppCookies: [*]?*XHR_COOKIE, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetResponseHeader: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IXMLHTTPRequest2, pwszHeader: ?[*:0]const u16, ppwszValue: ?*?*u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IXMLHTTPRequest2, pwszHeader: ?[*:0]const u16, ppwszValue: ?*?*u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IXMLHTTPRequest2_Open(self: *const T, pwszMethod: ?[*:0]const u16, pwszUrl: ?[*:0]const u16, pStatusCallback: ?*IXMLHTTPRequest2Callback, pwszUserName: ?[*:0]const u16, pwszPassword: ?[*:0]const u16, pwszProxyUserName: ?[*:0]const u16, pwszProxyPassword: ?[*:0]const u16) HRESULT { return @as(*const IXMLHTTPRequest2.VTable, @ptrCast(self.vtable)).Open(@as(*const IXMLHTTPRequest2, @ptrCast(self)), pwszMethod, pwszUrl, pStatusCallback, pwszUserName, pwszPassword, pwszProxyUserName, pwszProxyPassword); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IXMLHTTPRequest2_Send(self: *const T, pBody: ?*ISequentialStream, cbBody: u64) HRESULT { return @as(*const IXMLHTTPRequest2.VTable, @ptrCast(self.vtable)).Send(@as(*const IXMLHTTPRequest2, @ptrCast(self)), pBody, cbBody); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IXMLHTTPRequest2_Abort(self: *const T) HRESULT { return @as(*const IXMLHTTPRequest2.VTable, @ptrCast(self.vtable)).Abort(@as(*const IXMLHTTPRequest2, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IXMLHTTPRequest2_SetCookie(self: *const T, pCookie: ?*const XHR_COOKIE, pdwCookieState: ?*u32) HRESULT { return @as(*const IXMLHTTPRequest2.VTable, @ptrCast(self.vtable)).SetCookie(@as(*const IXMLHTTPRequest2, @ptrCast(self)), pCookie, pdwCookieState); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IXMLHTTPRequest2_SetCustomResponseStream(self: *const T, pSequentialStream: ?*ISequentialStream) HRESULT { return @as(*const IXMLHTTPRequest2.VTable, @ptrCast(self.vtable)).SetCustomResponseStream(@as(*const IXMLHTTPRequest2, @ptrCast(self)), pSequentialStream); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IXMLHTTPRequest2_SetProperty(self: *const T, eProperty: XHR_PROPERTY, ullValue: u64) HRESULT { return @as(*const IXMLHTTPRequest2.VTable, @ptrCast(self.vtable)).SetProperty(@as(*const IXMLHTTPRequest2, @ptrCast(self)), eProperty, ullValue); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IXMLHTTPRequest2_SetRequestHeader(self: *const T, pwszHeader: ?[*:0]const u16, pwszValue: ?[*:0]const u16) HRESULT { return @as(*const IXMLHTTPRequest2.VTable, @ptrCast(self.vtable)).SetRequestHeader(@as(*const IXMLHTTPRequest2, @ptrCast(self)), pwszHeader, pwszValue); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IXMLHTTPRequest2_GetAllResponseHeaders(self: *const T, ppwszHeaders: ?*?*u16) HRESULT { return @as(*const IXMLHTTPRequest2.VTable, @ptrCast(self.vtable)).GetAllResponseHeaders(@as(*const IXMLHTTPRequest2, @ptrCast(self)), ppwszHeaders); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IXMLHTTPRequest2_GetCookie(self: *const T, pwszUrl: ?[*:0]const u16, pwszName: ?[*:0]const u16, dwFlags: u32, pcCookies: ?*u32, ppCookies: [*]?*XHR_COOKIE) HRESULT { return @as(*const IXMLHTTPRequest2.VTable, @ptrCast(self.vtable)).GetCookie(@as(*const IXMLHTTPRequest2, @ptrCast(self)), pwszUrl, pwszName, dwFlags, pcCookies, ppCookies); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IXMLHTTPRequest2_GetResponseHeader(self: *const T, pwszHeader: ?[*:0]const u16, ppwszValue: ?*?*u16) HRESULT { return @as(*const IXMLHTTPRequest2.VTable, @ptrCast(self.vtable)).GetResponseHeader(@as(*const IXMLHTTPRequest2, @ptrCast(self)), pwszHeader, ppwszValue); } }; } pub usingnamespace MethodMixin(@This()); }; pub const XHR_CERT = extern struct { cbCert: u32, pbCert: ?*u8, }; // TODO: this type is limited to platform 'windows8.1' const IID_IXMLHTTPRequest3Callback_Value = Guid.initString("b9e57830-8c6c-4a6f-9c13-47772bb047bb"); pub const IID_IXMLHTTPRequest3Callback = &IID_IXMLHTTPRequest3Callback_Value; pub const IXMLHTTPRequest3Callback = extern struct { pub const VTable = extern struct { base: IXMLHTTPRequest2Callback.VTable, OnServerCertificateReceived: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IXMLHTTPRequest3Callback, pXHR: ?*IXMLHTTPRequest3, dwCertificateErrors: u32, cServerCertificateChain: u32, rgServerCertificateChain: [*]const XHR_CERT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IXMLHTTPRequest3Callback, pXHR: ?*IXMLHTTPRequest3, dwCertificateErrors: u32, cServerCertificateChain: u32, rgServerCertificateChain: [*]const XHR_CERT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, OnClientCertificateRequested: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IXMLHTTPRequest3Callback, pXHR: ?*IXMLHTTPRequest3, cIssuerList: u32, rgpwszIssuerList: [*]const ?*const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IXMLHTTPRequest3Callback, pXHR: ?*IXMLHTTPRequest3, cIssuerList: u32, rgpwszIssuerList: [*]const ?*const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IXMLHTTPRequest2Callback.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IXMLHTTPRequest3Callback_OnServerCertificateReceived(self: *const T, pXHR: ?*IXMLHTTPRequest3, dwCertificateErrors: u32, cServerCertificateChain: u32, rgServerCertificateChain: [*]const XHR_CERT) HRESULT { return @as(*const IXMLHTTPRequest3Callback.VTable, @ptrCast(self.vtable)).OnServerCertificateReceived(@as(*const IXMLHTTPRequest3Callback, @ptrCast(self)), pXHR, dwCertificateErrors, cServerCertificateChain, rgServerCertificateChain); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IXMLHTTPRequest3Callback_OnClientCertificateRequested(self: *const T, pXHR: ?*IXMLHTTPRequest3, cIssuerList: u32, rgpwszIssuerList: [*]const ?*const u16) HRESULT { return @as(*const IXMLHTTPRequest3Callback.VTable, @ptrCast(self.vtable)).OnClientCertificateRequested(@as(*const IXMLHTTPRequest3Callback, @ptrCast(self)), pXHR, cIssuerList, rgpwszIssuerList); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows8.1' const IID_IXMLHTTPRequest3_Value = Guid.initString("a1c9feee-0617-4f23-9d58-8961ea43567c"); pub const IID_IXMLHTTPRequest3 = &IID_IXMLHTTPRequest3_Value; pub const IXMLHTTPRequest3 = extern struct { pub const VTable = extern struct { base: IXMLHTTPRequest2.VTable, SetClientCertificate: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IXMLHTTPRequest3, cbClientCertificateHash: u32, pbClientCertificateHash: [*:0]const u8, pwszPin: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IXMLHTTPRequest3, cbClientCertificateHash: u32, pbClientCertificateHash: [*:0]const u8, pwszPin: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IXMLHTTPRequest2.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IXMLHTTPRequest3_SetClientCertificate(self: *const T, cbClientCertificateHash: u32, pbClientCertificateHash: [*:0]const u8, pwszPin: ?[*:0]const u16) HRESULT { return @as(*const IXMLHTTPRequest3.VTable, @ptrCast(self.vtable)).SetClientCertificate(@as(*const IXMLHTTPRequest3, @ptrCast(self)), cbClientCertificateHash, pbClientCertificateHash, pwszPin); } }; } pub usingnamespace MethodMixin(@This()); }; //-------------------------------------------------------------------------------- // Section: Functions (0) //-------------------------------------------------------------------------------- //-------------------------------------------------------------------------------- // Section: Unicode Aliases (0) //-------------------------------------------------------------------------------- const thismodule = @This(); pub usingnamespace switch (@import("../../zig.zig").unicode_mode) { .ansi => struct {}, .wide => struct {}, .unspecified => if (@import("builtin").is_test) struct {} else struct {}, }; //-------------------------------------------------------------------------------- // Section: Imports (10) //-------------------------------------------------------------------------------- const Guid = @import("../../zig.zig").Guid; const BOOL = @import("../../foundation.zig").BOOL; const BSTR = @import("../../foundation.zig").BSTR; const FILETIME = @import("../../foundation.zig").FILETIME; const HRESULT = @import("../../foundation.zig").HRESULT; const IDispatch = @import("../../system/com.zig").IDispatch; const ISequentialStream = @import("../../system/com.zig").ISequentialStream; const IUnknown = @import("../../system/com.zig").IUnknown; const PWSTR = @import("../../foundation.zig").PWSTR; const VARIANT = @import("../../system/com.zig").VARIANT; test { @setEvalBranchQuota(comptime @import("std").meta.declarations(@This()).len * 3); // reference all the pub declarations if (!@import("builtin").is_test) return; inline for (comptime @import("std").meta.declarations(@This())) |decl| { if (decl.is_pub) { _ = @field(@This(), decl.name); } } }
0
repos/capy/vendor/zigwin32/win32/data
repos/capy/vendor/zigwin32/win32/data/xml/xml_lite.zig
//! NOTE: this file is autogenerated, DO NOT MODIFY //-------------------------------------------------------------------------------- // Section: Constants (3) //-------------------------------------------------------------------------------- pub const _IID_IXmlReader = Guid.initString("7279fc81-709d-4095-b63d-69fe4b0d9030"); pub const _IID_IXmlWriter = Guid.initString("7279fc88-709d-4095-b63d-69fe4b0d9030"); pub const _IID_IXmlResolver = Guid.initString("7279fc82-709d-4095-b63d-69fe4b0d9030"); //-------------------------------------------------------------------------------- // Section: Types (12) //-------------------------------------------------------------------------------- pub const XmlNodeType = enum(i32) { XmlNodeType_None = 0, XmlNodeType_Element = 1, XmlNodeType_Attribute = 2, XmlNodeType_Text = 3, XmlNodeType_CDATA = 4, XmlNodeType_ProcessingInstruction = 7, XmlNodeType_Comment = 8, XmlNodeType_DocumentType = 10, XmlNodeType_Whitespace = 13, XmlNodeType_EndElement = 15, XmlNodeType_XmlDeclaration = 17, // _XmlNodeType_Last = 17, this enum value conflicts with XmlNodeType_XmlDeclaration }; pub const XmlNodeType_None = XmlNodeType.XmlNodeType_None; pub const XmlNodeType_Element = XmlNodeType.XmlNodeType_Element; pub const XmlNodeType_Attribute = XmlNodeType.XmlNodeType_Attribute; pub const XmlNodeType_Text = XmlNodeType.XmlNodeType_Text; pub const XmlNodeType_CDATA = XmlNodeType.XmlNodeType_CDATA; pub const XmlNodeType_ProcessingInstruction = XmlNodeType.XmlNodeType_ProcessingInstruction; pub const XmlNodeType_Comment = XmlNodeType.XmlNodeType_Comment; pub const XmlNodeType_DocumentType = XmlNodeType.XmlNodeType_DocumentType; pub const XmlNodeType_Whitespace = XmlNodeType.XmlNodeType_Whitespace; pub const XmlNodeType_EndElement = XmlNodeType.XmlNodeType_EndElement; pub const XmlNodeType_XmlDeclaration = XmlNodeType.XmlNodeType_XmlDeclaration; pub const _XmlNodeType_Last = XmlNodeType.XmlNodeType_XmlDeclaration; pub const XmlConformanceLevel = enum(i32) { XmlConformanceLevel_Auto = 0, XmlConformanceLevel_Fragment = 1, XmlConformanceLevel_Document = 2, // _XmlConformanceLevel_Last = 2, this enum value conflicts with XmlConformanceLevel_Document }; pub const XmlConformanceLevel_Auto = XmlConformanceLevel.XmlConformanceLevel_Auto; pub const XmlConformanceLevel_Fragment = XmlConformanceLevel.XmlConformanceLevel_Fragment; pub const XmlConformanceLevel_Document = XmlConformanceLevel.XmlConformanceLevel_Document; pub const _XmlConformanceLevel_Last = XmlConformanceLevel.XmlConformanceLevel_Document; pub const DtdProcessing = enum(i32) { DtdProcessing_Prohibit = 0, DtdProcessing_Parse = 1, // _DtdProcessing_Last = 1, this enum value conflicts with DtdProcessing_Parse }; pub const DtdProcessing_Prohibit = DtdProcessing.DtdProcessing_Prohibit; pub const DtdProcessing_Parse = DtdProcessing.DtdProcessing_Parse; pub const _DtdProcessing_Last = DtdProcessing.DtdProcessing_Parse; pub const XmlReadState = enum(i32) { Initial = 0, Interactive = 1, Error = 2, EndOfFile = 3, Closed = 4, }; pub const XmlReadState_Initial = XmlReadState.Initial; pub const XmlReadState_Interactive = XmlReadState.Interactive; pub const XmlReadState_Error = XmlReadState.Error; pub const XmlReadState_EndOfFile = XmlReadState.EndOfFile; pub const XmlReadState_Closed = XmlReadState.Closed; pub const XmlReaderProperty = enum(i32) { XmlReaderProperty_MultiLanguage = 0, XmlReaderProperty_ConformanceLevel = 1, XmlReaderProperty_RandomAccess = 2, XmlReaderProperty_XmlResolver = 3, XmlReaderProperty_DtdProcessing = 4, XmlReaderProperty_ReadState = 5, XmlReaderProperty_MaxElementDepth = 6, XmlReaderProperty_MaxEntityExpansion = 7, // _XmlReaderProperty_Last = 7, this enum value conflicts with XmlReaderProperty_MaxEntityExpansion }; pub const XmlReaderProperty_MultiLanguage = XmlReaderProperty.XmlReaderProperty_MultiLanguage; pub const XmlReaderProperty_ConformanceLevel = XmlReaderProperty.XmlReaderProperty_ConformanceLevel; pub const XmlReaderProperty_RandomAccess = XmlReaderProperty.XmlReaderProperty_RandomAccess; pub const XmlReaderProperty_XmlResolver = XmlReaderProperty.XmlReaderProperty_XmlResolver; pub const XmlReaderProperty_DtdProcessing = XmlReaderProperty.XmlReaderProperty_DtdProcessing; pub const XmlReaderProperty_ReadState = XmlReaderProperty.XmlReaderProperty_ReadState; pub const XmlReaderProperty_MaxElementDepth = XmlReaderProperty.XmlReaderProperty_MaxElementDepth; pub const XmlReaderProperty_MaxEntityExpansion = XmlReaderProperty.XmlReaderProperty_MaxEntityExpansion; pub const _XmlReaderProperty_Last = XmlReaderProperty.XmlReaderProperty_MaxEntityExpansion; pub const XmlError = enum(i32) { MX_E_MX = -1072894464, MX_E_INPUTEND = -1072894463, MX_E_ENCODING = -1072894462, MX_E_ENCODINGSWITCH = -1072894461, MX_E_ENCODINGSIGNATURE = -1072894460, WC_E_WC = -1072894432, WC_E_WHITESPACE = -1072894431, WC_E_SEMICOLON = -1072894430, WC_E_GREATERTHAN = -1072894429, WC_E_QUOTE = -1072894428, WC_E_EQUAL = -1072894427, WC_E_LESSTHAN = -1072894426, WC_E_HEXDIGIT = -1072894425, WC_E_DIGIT = -1072894424, WC_E_LEFTBRACKET = -1072894423, WC_E_LEFTPAREN = -1072894422, WC_E_XMLCHARACTER = -1072894421, WC_E_NAMECHARACTER = -1072894420, WC_E_SYNTAX = -1072894419, WC_E_CDSECT = -1072894418, WC_E_COMMENT = -1072894417, WC_E_CONDSECT = -1072894416, WC_E_DECLATTLIST = -1072894415, WC_E_DECLDOCTYPE = -1072894414, WC_E_DECLELEMENT = -1072894413, WC_E_DECLENTITY = -1072894412, WC_E_DECLNOTATION = -1072894411, WC_E_NDATA = -1072894410, WC_E_PUBLIC = -1072894409, WC_E_SYSTEM = -1072894408, WC_E_NAME = -1072894407, WC_E_ROOTELEMENT = -1072894406, WC_E_ELEMENTMATCH = -1072894405, WC_E_UNIQUEATTRIBUTE = -1072894404, WC_E_TEXTXMLDECL = -1072894403, WC_E_LEADINGXML = -1072894402, WC_E_TEXTDECL = -1072894401, WC_E_XMLDECL = -1072894400, WC_E_ENCNAME = -1072894399, WC_E_PUBLICID = -1072894398, WC_E_PESINTERNALSUBSET = -1072894397, WC_E_PESBETWEENDECLS = -1072894396, WC_E_NORECURSION = -1072894395, WC_E_ENTITYCONTENT = -1072894394, WC_E_UNDECLAREDENTITY = -1072894393, WC_E_PARSEDENTITY = -1072894392, WC_E_NOEXTERNALENTITYREF = -1072894391, WC_E_PI = -1072894390, WC_E_SYSTEMID = -1072894389, WC_E_QUESTIONMARK = -1072894388, WC_E_CDSECTEND = -1072894387, WC_E_MOREDATA = -1072894386, WC_E_DTDPROHIBITED = -1072894385, WC_E_INVALIDXMLSPACE = -1072894384, NC_E_NC = -1072894368, NC_E_QNAMECHARACTER = -1072894367, NC_E_QNAMECOLON = -1072894366, NC_E_NAMECOLON = -1072894365, NC_E_DECLAREDPREFIX = -1072894364, NC_E_UNDECLAREDPREFIX = -1072894363, NC_E_EMPTYURI = -1072894362, NC_E_XMLPREFIXRESERVED = -1072894361, NC_E_XMLNSPREFIXRESERVED = -1072894360, NC_E_XMLURIRESERVED = -1072894359, NC_E_XMLNSURIRESERVED = -1072894358, SC_E_SC = -1072894336, SC_E_MAXELEMENTDEPTH = -1072894335, SC_E_MAXENTITYEXPANSION = -1072894334, WR_E_WR = -1072894208, WR_E_NONWHITESPACE = -1072894207, WR_E_NSPREFIXDECLARED = -1072894206, WR_E_NSPREFIXWITHEMPTYNSURI = -1072894205, WR_E_DUPLICATEATTRIBUTE = -1072894204, WR_E_XMLNSPREFIXDECLARATION = -1072894203, WR_E_XMLPREFIXDECLARATION = -1072894202, WR_E_XMLURIDECLARATION = -1072894201, WR_E_XMLNSURIDECLARATION = -1072894200, WR_E_NAMESPACEUNDECLARED = -1072894199, WR_E_INVALIDXMLSPACE = -1072894198, WR_E_INVALIDACTION = -1072894197, WR_E_INVALIDSURROGATEPAIR = -1072894196, XML_E_INVALID_DECIMAL = -1072898019, XML_E_INVALID_HEXIDECIMAL = -1072898018, XML_E_INVALID_UNICODE = -1072898017, XML_E_INVALIDENCODING = -1072897938, }; pub const MX_E_MX = XmlError.MX_E_MX; pub const MX_E_INPUTEND = XmlError.MX_E_INPUTEND; pub const MX_E_ENCODING = XmlError.MX_E_ENCODING; pub const MX_E_ENCODINGSWITCH = XmlError.MX_E_ENCODINGSWITCH; pub const MX_E_ENCODINGSIGNATURE = XmlError.MX_E_ENCODINGSIGNATURE; pub const WC_E_WC = XmlError.WC_E_WC; pub const WC_E_WHITESPACE = XmlError.WC_E_WHITESPACE; pub const WC_E_SEMICOLON = XmlError.WC_E_SEMICOLON; pub const WC_E_GREATERTHAN = XmlError.WC_E_GREATERTHAN; pub const WC_E_QUOTE = XmlError.WC_E_QUOTE; pub const WC_E_EQUAL = XmlError.WC_E_EQUAL; pub const WC_E_LESSTHAN = XmlError.WC_E_LESSTHAN; pub const WC_E_HEXDIGIT = XmlError.WC_E_HEXDIGIT; pub const WC_E_DIGIT = XmlError.WC_E_DIGIT; pub const WC_E_LEFTBRACKET = XmlError.WC_E_LEFTBRACKET; pub const WC_E_LEFTPAREN = XmlError.WC_E_LEFTPAREN; pub const WC_E_XMLCHARACTER = XmlError.WC_E_XMLCHARACTER; pub const WC_E_NAMECHARACTER = XmlError.WC_E_NAMECHARACTER; pub const WC_E_SYNTAX = XmlError.WC_E_SYNTAX; pub const WC_E_CDSECT = XmlError.WC_E_CDSECT; pub const WC_E_COMMENT = XmlError.WC_E_COMMENT; pub const WC_E_CONDSECT = XmlError.WC_E_CONDSECT; pub const WC_E_DECLATTLIST = XmlError.WC_E_DECLATTLIST; pub const WC_E_DECLDOCTYPE = XmlError.WC_E_DECLDOCTYPE; pub const WC_E_DECLELEMENT = XmlError.WC_E_DECLELEMENT; pub const WC_E_DECLENTITY = XmlError.WC_E_DECLENTITY; pub const WC_E_DECLNOTATION = XmlError.WC_E_DECLNOTATION; pub const WC_E_NDATA = XmlError.WC_E_NDATA; pub const WC_E_PUBLIC = XmlError.WC_E_PUBLIC; pub const WC_E_SYSTEM = XmlError.WC_E_SYSTEM; pub const WC_E_NAME = XmlError.WC_E_NAME; pub const WC_E_ROOTELEMENT = XmlError.WC_E_ROOTELEMENT; pub const WC_E_ELEMENTMATCH = XmlError.WC_E_ELEMENTMATCH; pub const WC_E_UNIQUEATTRIBUTE = XmlError.WC_E_UNIQUEATTRIBUTE; pub const WC_E_TEXTXMLDECL = XmlError.WC_E_TEXTXMLDECL; pub const WC_E_LEADINGXML = XmlError.WC_E_LEADINGXML; pub const WC_E_TEXTDECL = XmlError.WC_E_TEXTDECL; pub const WC_E_XMLDECL = XmlError.WC_E_XMLDECL; pub const WC_E_ENCNAME = XmlError.WC_E_ENCNAME; pub const WC_E_PUBLICID = XmlError.WC_E_PUBLICID; pub const WC_E_PESINTERNALSUBSET = XmlError.WC_E_PESINTERNALSUBSET; pub const WC_E_PESBETWEENDECLS = XmlError.WC_E_PESBETWEENDECLS; pub const WC_E_NORECURSION = XmlError.WC_E_NORECURSION; pub const WC_E_ENTITYCONTENT = XmlError.WC_E_ENTITYCONTENT; pub const WC_E_UNDECLAREDENTITY = XmlError.WC_E_UNDECLAREDENTITY; pub const WC_E_PARSEDENTITY = XmlError.WC_E_PARSEDENTITY; pub const WC_E_NOEXTERNALENTITYREF = XmlError.WC_E_NOEXTERNALENTITYREF; pub const WC_E_PI = XmlError.WC_E_PI; pub const WC_E_SYSTEMID = XmlError.WC_E_SYSTEMID; pub const WC_E_QUESTIONMARK = XmlError.WC_E_QUESTIONMARK; pub const WC_E_CDSECTEND = XmlError.WC_E_CDSECTEND; pub const WC_E_MOREDATA = XmlError.WC_E_MOREDATA; pub const WC_E_DTDPROHIBITED = XmlError.WC_E_DTDPROHIBITED; pub const WC_E_INVALIDXMLSPACE = XmlError.WC_E_INVALIDXMLSPACE; pub const NC_E_NC = XmlError.NC_E_NC; pub const NC_E_QNAMECHARACTER = XmlError.NC_E_QNAMECHARACTER; pub const NC_E_QNAMECOLON = XmlError.NC_E_QNAMECOLON; pub const NC_E_NAMECOLON = XmlError.NC_E_NAMECOLON; pub const NC_E_DECLAREDPREFIX = XmlError.NC_E_DECLAREDPREFIX; pub const NC_E_UNDECLAREDPREFIX = XmlError.NC_E_UNDECLAREDPREFIX; pub const NC_E_EMPTYURI = XmlError.NC_E_EMPTYURI; pub const NC_E_XMLPREFIXRESERVED = XmlError.NC_E_XMLPREFIXRESERVED; pub const NC_E_XMLNSPREFIXRESERVED = XmlError.NC_E_XMLNSPREFIXRESERVED; pub const NC_E_XMLURIRESERVED = XmlError.NC_E_XMLURIRESERVED; pub const NC_E_XMLNSURIRESERVED = XmlError.NC_E_XMLNSURIRESERVED; pub const SC_E_SC = XmlError.SC_E_SC; pub const SC_E_MAXELEMENTDEPTH = XmlError.SC_E_MAXELEMENTDEPTH; pub const SC_E_MAXENTITYEXPANSION = XmlError.SC_E_MAXENTITYEXPANSION; pub const WR_E_WR = XmlError.WR_E_WR; pub const WR_E_NONWHITESPACE = XmlError.WR_E_NONWHITESPACE; pub const WR_E_NSPREFIXDECLARED = XmlError.WR_E_NSPREFIXDECLARED; pub const WR_E_NSPREFIXWITHEMPTYNSURI = XmlError.WR_E_NSPREFIXWITHEMPTYNSURI; pub const WR_E_DUPLICATEATTRIBUTE = XmlError.WR_E_DUPLICATEATTRIBUTE; pub const WR_E_XMLNSPREFIXDECLARATION = XmlError.WR_E_XMLNSPREFIXDECLARATION; pub const WR_E_XMLPREFIXDECLARATION = XmlError.WR_E_XMLPREFIXDECLARATION; pub const WR_E_XMLURIDECLARATION = XmlError.WR_E_XMLURIDECLARATION; pub const WR_E_XMLNSURIDECLARATION = XmlError.WR_E_XMLNSURIDECLARATION; pub const WR_E_NAMESPACEUNDECLARED = XmlError.WR_E_NAMESPACEUNDECLARED; pub const WR_E_INVALIDXMLSPACE = XmlError.WR_E_INVALIDXMLSPACE; pub const WR_E_INVALIDACTION = XmlError.WR_E_INVALIDACTION; pub const WR_E_INVALIDSURROGATEPAIR = XmlError.WR_E_INVALIDSURROGATEPAIR; pub const XML_E_INVALID_DECIMAL = XmlError.XML_E_INVALID_DECIMAL; pub const XML_E_INVALID_HEXIDECIMAL = XmlError.XML_E_INVALID_HEXIDECIMAL; pub const XML_E_INVALID_UNICODE = XmlError.XML_E_INVALID_UNICODE; pub const XML_E_INVALIDENCODING = XmlError.XML_E_INVALIDENCODING; pub const XmlStandalone = enum(i32) { XmlStandalone_Omit = 0, XmlStandalone_Yes = 1, XmlStandalone_No = 2, // _XmlStandalone_Last = 2, this enum value conflicts with XmlStandalone_No }; pub const XmlStandalone_Omit = XmlStandalone.XmlStandalone_Omit; pub const XmlStandalone_Yes = XmlStandalone.XmlStandalone_Yes; pub const XmlStandalone_No = XmlStandalone.XmlStandalone_No; pub const _XmlStandalone_Last = XmlStandalone.XmlStandalone_No; pub const XmlWriterProperty = enum(i32) { XmlWriterProperty_MultiLanguage = 0, XmlWriterProperty_Indent = 1, XmlWriterProperty_ByteOrderMark = 2, XmlWriterProperty_OmitXmlDeclaration = 3, XmlWriterProperty_ConformanceLevel = 4, XmlWriterProperty_CompactEmptyElement = 5, // _XmlWriterProperty_Last = 5, this enum value conflicts with XmlWriterProperty_CompactEmptyElement }; pub const XmlWriterProperty_MultiLanguage = XmlWriterProperty.XmlWriterProperty_MultiLanguage; pub const XmlWriterProperty_Indent = XmlWriterProperty.XmlWriterProperty_Indent; pub const XmlWriterProperty_ByteOrderMark = XmlWriterProperty.XmlWriterProperty_ByteOrderMark; pub const XmlWriterProperty_OmitXmlDeclaration = XmlWriterProperty.XmlWriterProperty_OmitXmlDeclaration; pub const XmlWriterProperty_ConformanceLevel = XmlWriterProperty.XmlWriterProperty_ConformanceLevel; pub const XmlWriterProperty_CompactEmptyElement = XmlWriterProperty.XmlWriterProperty_CompactEmptyElement; pub const _XmlWriterProperty_Last = XmlWriterProperty.XmlWriterProperty_CompactEmptyElement; const IID_IXmlReader_Value = Guid.initString("7279fc81-709d-4095-b63d-69fe4b0d9030"); pub const IID_IXmlReader = &IID_IXmlReader_Value; pub const IXmlReader = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, SetInput: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IXmlReader, pInput: ?*IUnknown, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IXmlReader, pInput: ?*IUnknown, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetProperty: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IXmlReader, nProperty: u32, ppValue: ?*isize, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IXmlReader, nProperty: u32, ppValue: ?*isize, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetProperty: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IXmlReader, nProperty: u32, pValue: isize, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IXmlReader, nProperty: u32, pValue: isize, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Read: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IXmlReader, pNodeType: ?*XmlNodeType, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IXmlReader, pNodeType: ?*XmlNodeType, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetNodeType: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IXmlReader, pNodeType: ?*XmlNodeType, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IXmlReader, pNodeType: ?*XmlNodeType, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, MoveToFirstAttribute: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IXmlReader, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IXmlReader, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, MoveToNextAttribute: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IXmlReader, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IXmlReader, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, MoveToAttributeByName: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IXmlReader, pwszLocalName: ?[*:0]const u16, pwszNamespaceUri: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IXmlReader, pwszLocalName: ?[*:0]const u16, pwszNamespaceUri: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, MoveToElement: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IXmlReader, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IXmlReader, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetQualifiedName: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IXmlReader, ppwszQualifiedName: ?*?PWSTR, pcwchQualifiedName: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IXmlReader, ppwszQualifiedName: ?*?PWSTR, pcwchQualifiedName: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetNamespaceUri: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IXmlReader, ppwszNamespaceUri: ?*?PWSTR, pcwchNamespaceUri: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IXmlReader, ppwszNamespaceUri: ?*?PWSTR, pcwchNamespaceUri: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetLocalName: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IXmlReader, ppwszLocalName: ?*?PWSTR, pcwchLocalName: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IXmlReader, ppwszLocalName: ?*?PWSTR, pcwchLocalName: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetPrefix: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IXmlReader, ppwszPrefix: ?*?PWSTR, pcwchPrefix: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IXmlReader, ppwszPrefix: ?*?PWSTR, pcwchPrefix: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetValue: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IXmlReader, ppwszValue: ?*?PWSTR, pcwchValue: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IXmlReader, ppwszValue: ?*?PWSTR, pcwchValue: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, ReadValueChunk: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IXmlReader, pwchBuffer: [*:0]u16, cwchChunkSize: u32, pcwchRead: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IXmlReader, pwchBuffer: [*:0]u16, cwchChunkSize: u32, pcwchRead: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetBaseUri: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IXmlReader, ppwszBaseUri: ?*?PWSTR, pcwchBaseUri: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IXmlReader, ppwszBaseUri: ?*?PWSTR, pcwchBaseUri: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, IsDefault: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IXmlReader, ) callconv(@import("std").os.windows.WINAPI) BOOL, else => *const fn ( self: *const IXmlReader, ) callconv(@import("std").os.windows.WINAPI) BOOL, }, IsEmptyElement: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IXmlReader, ) callconv(@import("std").os.windows.WINAPI) BOOL, else => *const fn ( self: *const IXmlReader, ) callconv(@import("std").os.windows.WINAPI) BOOL, }, GetLineNumber: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IXmlReader, pnLineNumber: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IXmlReader, pnLineNumber: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetLinePosition: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IXmlReader, pnLinePosition: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IXmlReader, pnLinePosition: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetAttributeCount: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IXmlReader, pnAttributeCount: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IXmlReader, pnAttributeCount: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetDepth: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IXmlReader, pnDepth: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IXmlReader, pnDepth: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, IsEOF: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IXmlReader, ) callconv(@import("std").os.windows.WINAPI) BOOL, else => *const fn ( self: *const IXmlReader, ) callconv(@import("std").os.windows.WINAPI) BOOL, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IXmlReader_SetInput(self: *const T, pInput: ?*IUnknown) HRESULT { return @as(*const IXmlReader.VTable, @ptrCast(self.vtable)).SetInput(@as(*const IXmlReader, @ptrCast(self)), pInput); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IXmlReader_GetProperty(self: *const T, nProperty: u32, ppValue: ?*isize) HRESULT { return @as(*const IXmlReader.VTable, @ptrCast(self.vtable)).GetProperty(@as(*const IXmlReader, @ptrCast(self)), nProperty, ppValue); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IXmlReader_SetProperty(self: *const T, nProperty: u32, pValue: isize) HRESULT { return @as(*const IXmlReader.VTable, @ptrCast(self.vtable)).SetProperty(@as(*const IXmlReader, @ptrCast(self)), nProperty, pValue); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IXmlReader_Read(self: *const T, pNodeType: ?*XmlNodeType) HRESULT { return @as(*const IXmlReader.VTable, @ptrCast(self.vtable)).Read(@as(*const IXmlReader, @ptrCast(self)), pNodeType); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IXmlReader_GetNodeType(self: *const T, pNodeType: ?*XmlNodeType) HRESULT { return @as(*const IXmlReader.VTable, @ptrCast(self.vtable)).GetNodeType(@as(*const IXmlReader, @ptrCast(self)), pNodeType); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IXmlReader_MoveToFirstAttribute(self: *const T) HRESULT { return @as(*const IXmlReader.VTable, @ptrCast(self.vtable)).MoveToFirstAttribute(@as(*const IXmlReader, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IXmlReader_MoveToNextAttribute(self: *const T) HRESULT { return @as(*const IXmlReader.VTable, @ptrCast(self.vtable)).MoveToNextAttribute(@as(*const IXmlReader, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IXmlReader_MoveToAttributeByName(self: *const T, pwszLocalName: ?[*:0]const u16, pwszNamespaceUri: ?[*:0]const u16) HRESULT { return @as(*const IXmlReader.VTable, @ptrCast(self.vtable)).MoveToAttributeByName(@as(*const IXmlReader, @ptrCast(self)), pwszLocalName, pwszNamespaceUri); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IXmlReader_MoveToElement(self: *const T) HRESULT { return @as(*const IXmlReader.VTable, @ptrCast(self.vtable)).MoveToElement(@as(*const IXmlReader, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IXmlReader_GetQualifiedName(self: *const T, ppwszQualifiedName: ?*?PWSTR, pcwchQualifiedName: ?*u32) HRESULT { return @as(*const IXmlReader.VTable, @ptrCast(self.vtable)).GetQualifiedName(@as(*const IXmlReader, @ptrCast(self)), ppwszQualifiedName, pcwchQualifiedName); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IXmlReader_GetNamespaceUri(self: *const T, ppwszNamespaceUri: ?*?PWSTR, pcwchNamespaceUri: ?*u32) HRESULT { return @as(*const IXmlReader.VTable, @ptrCast(self.vtable)).GetNamespaceUri(@as(*const IXmlReader, @ptrCast(self)), ppwszNamespaceUri, pcwchNamespaceUri); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IXmlReader_GetLocalName(self: *const T, ppwszLocalName: ?*?PWSTR, pcwchLocalName: ?*u32) HRESULT { return @as(*const IXmlReader.VTable, @ptrCast(self.vtable)).GetLocalName(@as(*const IXmlReader, @ptrCast(self)), ppwszLocalName, pcwchLocalName); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IXmlReader_GetPrefix(self: *const T, ppwszPrefix: ?*?PWSTR, pcwchPrefix: ?*u32) HRESULT { return @as(*const IXmlReader.VTable, @ptrCast(self.vtable)).GetPrefix(@as(*const IXmlReader, @ptrCast(self)), ppwszPrefix, pcwchPrefix); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IXmlReader_GetValue(self: *const T, ppwszValue: ?*?PWSTR, pcwchValue: ?*u32) HRESULT { return @as(*const IXmlReader.VTable, @ptrCast(self.vtable)).GetValue(@as(*const IXmlReader, @ptrCast(self)), ppwszValue, pcwchValue); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IXmlReader_ReadValueChunk(self: *const T, pwchBuffer: [*:0]u16, cwchChunkSize: u32, pcwchRead: ?*u32) HRESULT { return @as(*const IXmlReader.VTable, @ptrCast(self.vtable)).ReadValueChunk(@as(*const IXmlReader, @ptrCast(self)), pwchBuffer, cwchChunkSize, pcwchRead); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IXmlReader_GetBaseUri(self: *const T, ppwszBaseUri: ?*?PWSTR, pcwchBaseUri: ?*u32) HRESULT { return @as(*const IXmlReader.VTable, @ptrCast(self.vtable)).GetBaseUri(@as(*const IXmlReader, @ptrCast(self)), ppwszBaseUri, pcwchBaseUri); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IXmlReader_IsDefault(self: *const T) BOOL { return @as(*const IXmlReader.VTable, @ptrCast(self.vtable)).IsDefault(@as(*const IXmlReader, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IXmlReader_IsEmptyElement(self: *const T) BOOL { return @as(*const IXmlReader.VTable, @ptrCast(self.vtable)).IsEmptyElement(@as(*const IXmlReader, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IXmlReader_GetLineNumber(self: *const T, pnLineNumber: ?*u32) HRESULT { return @as(*const IXmlReader.VTable, @ptrCast(self.vtable)).GetLineNumber(@as(*const IXmlReader, @ptrCast(self)), pnLineNumber); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IXmlReader_GetLinePosition(self: *const T, pnLinePosition: ?*u32) HRESULT { return @as(*const IXmlReader.VTable, @ptrCast(self.vtable)).GetLinePosition(@as(*const IXmlReader, @ptrCast(self)), pnLinePosition); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IXmlReader_GetAttributeCount(self: *const T, pnAttributeCount: ?*u32) HRESULT { return @as(*const IXmlReader.VTable, @ptrCast(self.vtable)).GetAttributeCount(@as(*const IXmlReader, @ptrCast(self)), pnAttributeCount); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IXmlReader_GetDepth(self: *const T, pnDepth: ?*u32) HRESULT { return @as(*const IXmlReader.VTable, @ptrCast(self.vtable)).GetDepth(@as(*const IXmlReader, @ptrCast(self)), pnDepth); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IXmlReader_IsEOF(self: *const T) BOOL { return @as(*const IXmlReader.VTable, @ptrCast(self.vtable)).IsEOF(@as(*const IXmlReader, @ptrCast(self))); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IXmlResolver_Value = Guid.initString("7279fc82-709d-4095-b63d-69fe4b0d9030"); pub const IID_IXmlResolver = &IID_IXmlResolver_Value; pub const IXmlResolver = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, ResolveUri: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IXmlResolver, pwszBaseUri: ?[*:0]const u16, pwszPublicIdentifier: ?[*:0]const u16, pwszSystemIdentifier: ?[*:0]const u16, ppResolvedInput: ?*?*IUnknown, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IXmlResolver, pwszBaseUri: ?[*:0]const u16, pwszPublicIdentifier: ?[*:0]const u16, pwszSystemIdentifier: ?[*:0]const u16, ppResolvedInput: ?*?*IUnknown, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IXmlResolver_ResolveUri(self: *const T, pwszBaseUri: ?[*:0]const u16, pwszPublicIdentifier: ?[*:0]const u16, pwszSystemIdentifier: ?[*:0]const u16, ppResolvedInput: ?*?*IUnknown) HRESULT { return @as(*const IXmlResolver.VTable, @ptrCast(self.vtable)).ResolveUri(@as(*const IXmlResolver, @ptrCast(self)), pwszBaseUri, pwszPublicIdentifier, pwszSystemIdentifier, ppResolvedInput); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IXmlWriter_Value = Guid.initString("7279fc88-709d-4095-b63d-69fe4b0d9030"); pub const IID_IXmlWriter = &IID_IXmlWriter_Value; pub const IXmlWriter = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, SetOutput: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IXmlWriter, pOutput: ?*IUnknown, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IXmlWriter, pOutput: ?*IUnknown, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetProperty: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IXmlWriter, nProperty: u32, ppValue: ?*isize, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IXmlWriter, nProperty: u32, ppValue: ?*isize, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetProperty: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IXmlWriter, nProperty: u32, pValue: isize, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IXmlWriter, nProperty: u32, pValue: isize, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, WriteAttributes: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IXmlWriter, pReader: ?*IXmlReader, fWriteDefaultAttributes: BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IXmlWriter, pReader: ?*IXmlReader, fWriteDefaultAttributes: BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, WriteAttributeString: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IXmlWriter, pwszPrefix: ?[*:0]const u16, pwszLocalName: ?[*:0]const u16, pwszNamespaceUri: ?[*:0]const u16, pwszValue: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IXmlWriter, pwszPrefix: ?[*:0]const u16, pwszLocalName: ?[*:0]const u16, pwszNamespaceUri: ?[*:0]const u16, pwszValue: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, WriteCData: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IXmlWriter, pwszText: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IXmlWriter, pwszText: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, WriteCharEntity: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IXmlWriter, wch: u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IXmlWriter, wch: u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, WriteChars: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IXmlWriter, pwch: ?[*:0]const u16, cwch: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IXmlWriter, pwch: ?[*:0]const u16, cwch: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, WriteComment: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IXmlWriter, pwszComment: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IXmlWriter, pwszComment: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, WriteDocType: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IXmlWriter, pwszName: ?[*:0]const u16, pwszPublicId: ?[*:0]const u16, pwszSystemId: ?[*:0]const u16, pwszSubset: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IXmlWriter, pwszName: ?[*:0]const u16, pwszPublicId: ?[*:0]const u16, pwszSystemId: ?[*:0]const u16, pwszSubset: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, WriteElementString: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IXmlWriter, pwszPrefix: ?[*:0]const u16, pwszLocalName: ?[*:0]const u16, pwszNamespaceUri: ?[*:0]const u16, pwszValue: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IXmlWriter, pwszPrefix: ?[*:0]const u16, pwszLocalName: ?[*:0]const u16, pwszNamespaceUri: ?[*:0]const u16, pwszValue: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, WriteEndDocument: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IXmlWriter, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IXmlWriter, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, WriteEndElement: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IXmlWriter, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IXmlWriter, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, WriteEntityRef: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IXmlWriter, pwszName: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IXmlWriter, pwszName: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, WriteFullEndElement: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IXmlWriter, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IXmlWriter, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, WriteName: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IXmlWriter, pwszName: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IXmlWriter, pwszName: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, WriteNmToken: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IXmlWriter, pwszNmToken: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IXmlWriter, pwszNmToken: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, WriteNode: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IXmlWriter, pReader: ?*IXmlReader, fWriteDefaultAttributes: BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IXmlWriter, pReader: ?*IXmlReader, fWriteDefaultAttributes: BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, WriteNodeShallow: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IXmlWriter, pReader: ?*IXmlReader, fWriteDefaultAttributes: BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IXmlWriter, pReader: ?*IXmlReader, fWriteDefaultAttributes: BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, WriteProcessingInstruction: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IXmlWriter, pwszName: ?[*:0]const u16, pwszText: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IXmlWriter, pwszName: ?[*:0]const u16, pwszText: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, WriteQualifiedName: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IXmlWriter, pwszLocalName: ?[*:0]const u16, pwszNamespaceUri: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IXmlWriter, pwszLocalName: ?[*:0]const u16, pwszNamespaceUri: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, WriteRaw: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IXmlWriter, pwszData: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IXmlWriter, pwszData: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, WriteRawChars: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IXmlWriter, pwch: ?[*:0]const u16, cwch: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IXmlWriter, pwch: ?[*:0]const u16, cwch: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, WriteStartDocument: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IXmlWriter, standalone: XmlStandalone, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IXmlWriter, standalone: XmlStandalone, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, WriteStartElement: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IXmlWriter, pwszPrefix: ?[*:0]const u16, pwszLocalName: ?[*:0]const u16, pwszNamespaceUri: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IXmlWriter, pwszPrefix: ?[*:0]const u16, pwszLocalName: ?[*:0]const u16, pwszNamespaceUri: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, WriteString: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IXmlWriter, pwszText: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IXmlWriter, pwszText: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, WriteSurrogateCharEntity: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IXmlWriter, wchLow: u16, wchHigh: u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IXmlWriter, wchLow: u16, wchHigh: u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, WriteWhitespace: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IXmlWriter, pwszWhitespace: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IXmlWriter, pwszWhitespace: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Flush: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IXmlWriter, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IXmlWriter, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IXmlWriter_SetOutput(self: *const T, pOutput: ?*IUnknown) HRESULT { return @as(*const IXmlWriter.VTable, @ptrCast(self.vtable)).SetOutput(@as(*const IXmlWriter, @ptrCast(self)), pOutput); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IXmlWriter_GetProperty(self: *const T, nProperty: u32, ppValue: ?*isize) HRESULT { return @as(*const IXmlWriter.VTable, @ptrCast(self.vtable)).GetProperty(@as(*const IXmlWriter, @ptrCast(self)), nProperty, ppValue); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IXmlWriter_SetProperty(self: *const T, nProperty: u32, pValue: isize) HRESULT { return @as(*const IXmlWriter.VTable, @ptrCast(self.vtable)).SetProperty(@as(*const IXmlWriter, @ptrCast(self)), nProperty, pValue); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IXmlWriter_WriteAttributes(self: *const T, pReader: ?*IXmlReader, fWriteDefaultAttributes: BOOL) HRESULT { return @as(*const IXmlWriter.VTable, @ptrCast(self.vtable)).WriteAttributes(@as(*const IXmlWriter, @ptrCast(self)), pReader, fWriteDefaultAttributes); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IXmlWriter_WriteAttributeString(self: *const T, pwszPrefix: ?[*:0]const u16, pwszLocalName: ?[*:0]const u16, pwszNamespaceUri: ?[*:0]const u16, pwszValue: ?[*:0]const u16) HRESULT { return @as(*const IXmlWriter.VTable, @ptrCast(self.vtable)).WriteAttributeString(@as(*const IXmlWriter, @ptrCast(self)), pwszPrefix, pwszLocalName, pwszNamespaceUri, pwszValue); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IXmlWriter_WriteCData(self: *const T, pwszText: ?[*:0]const u16) HRESULT { return @as(*const IXmlWriter.VTable, @ptrCast(self.vtable)).WriteCData(@as(*const IXmlWriter, @ptrCast(self)), pwszText); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IXmlWriter_WriteCharEntity(self: *const T, wch: u16) HRESULT { return @as(*const IXmlWriter.VTable, @ptrCast(self.vtable)).WriteCharEntity(@as(*const IXmlWriter, @ptrCast(self)), wch); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IXmlWriter_WriteChars(self: *const T, pwch: ?[*:0]const u16, cwch: u32) HRESULT { return @as(*const IXmlWriter.VTable, @ptrCast(self.vtable)).WriteChars(@as(*const IXmlWriter, @ptrCast(self)), pwch, cwch); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IXmlWriter_WriteComment(self: *const T, pwszComment: ?[*:0]const u16) HRESULT { return @as(*const IXmlWriter.VTable, @ptrCast(self.vtable)).WriteComment(@as(*const IXmlWriter, @ptrCast(self)), pwszComment); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IXmlWriter_WriteDocType(self: *const T, pwszName: ?[*:0]const u16, pwszPublicId: ?[*:0]const u16, pwszSystemId: ?[*:0]const u16, pwszSubset: ?[*:0]const u16) HRESULT { return @as(*const IXmlWriter.VTable, @ptrCast(self.vtable)).WriteDocType(@as(*const IXmlWriter, @ptrCast(self)), pwszName, pwszPublicId, pwszSystemId, pwszSubset); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IXmlWriter_WriteElementString(self: *const T, pwszPrefix: ?[*:0]const u16, pwszLocalName: ?[*:0]const u16, pwszNamespaceUri: ?[*:0]const u16, pwszValue: ?[*:0]const u16) HRESULT { return @as(*const IXmlWriter.VTable, @ptrCast(self.vtable)).WriteElementString(@as(*const IXmlWriter, @ptrCast(self)), pwszPrefix, pwszLocalName, pwszNamespaceUri, pwszValue); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IXmlWriter_WriteEndDocument(self: *const T) HRESULT { return @as(*const IXmlWriter.VTable, @ptrCast(self.vtable)).WriteEndDocument(@as(*const IXmlWriter, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IXmlWriter_WriteEndElement(self: *const T) HRESULT { return @as(*const IXmlWriter.VTable, @ptrCast(self.vtable)).WriteEndElement(@as(*const IXmlWriter, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IXmlWriter_WriteEntityRef(self: *const T, pwszName: ?[*:0]const u16) HRESULT { return @as(*const IXmlWriter.VTable, @ptrCast(self.vtable)).WriteEntityRef(@as(*const IXmlWriter, @ptrCast(self)), pwszName); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IXmlWriter_WriteFullEndElement(self: *const T) HRESULT { return @as(*const IXmlWriter.VTable, @ptrCast(self.vtable)).WriteFullEndElement(@as(*const IXmlWriter, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IXmlWriter_WriteName(self: *const T, pwszName: ?[*:0]const u16) HRESULT { return @as(*const IXmlWriter.VTable, @ptrCast(self.vtable)).WriteName(@as(*const IXmlWriter, @ptrCast(self)), pwszName); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IXmlWriter_WriteNmToken(self: *const T, pwszNmToken: ?[*:0]const u16) HRESULT { return @as(*const IXmlWriter.VTable, @ptrCast(self.vtable)).WriteNmToken(@as(*const IXmlWriter, @ptrCast(self)), pwszNmToken); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IXmlWriter_WriteNode(self: *const T, pReader: ?*IXmlReader, fWriteDefaultAttributes: BOOL) HRESULT { return @as(*const IXmlWriter.VTable, @ptrCast(self.vtable)).WriteNode(@as(*const IXmlWriter, @ptrCast(self)), pReader, fWriteDefaultAttributes); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IXmlWriter_WriteNodeShallow(self: *const T, pReader: ?*IXmlReader, fWriteDefaultAttributes: BOOL) HRESULT { return @as(*const IXmlWriter.VTable, @ptrCast(self.vtable)).WriteNodeShallow(@as(*const IXmlWriter, @ptrCast(self)), pReader, fWriteDefaultAttributes); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IXmlWriter_WriteProcessingInstruction(self: *const T, pwszName: ?[*:0]const u16, pwszText: ?[*:0]const u16) HRESULT { return @as(*const IXmlWriter.VTable, @ptrCast(self.vtable)).WriteProcessingInstruction(@as(*const IXmlWriter, @ptrCast(self)), pwszName, pwszText); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IXmlWriter_WriteQualifiedName(self: *const T, pwszLocalName: ?[*:0]const u16, pwszNamespaceUri: ?[*:0]const u16) HRESULT { return @as(*const IXmlWriter.VTable, @ptrCast(self.vtable)).WriteQualifiedName(@as(*const IXmlWriter, @ptrCast(self)), pwszLocalName, pwszNamespaceUri); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IXmlWriter_WriteRaw(self: *const T, pwszData: ?[*:0]const u16) HRESULT { return @as(*const IXmlWriter.VTable, @ptrCast(self.vtable)).WriteRaw(@as(*const IXmlWriter, @ptrCast(self)), pwszData); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IXmlWriter_WriteRawChars(self: *const T, pwch: ?[*:0]const u16, cwch: u32) HRESULT { return @as(*const IXmlWriter.VTable, @ptrCast(self.vtable)).WriteRawChars(@as(*const IXmlWriter, @ptrCast(self)), pwch, cwch); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IXmlWriter_WriteStartDocument(self: *const T, standalone: XmlStandalone) HRESULT { return @as(*const IXmlWriter.VTable, @ptrCast(self.vtable)).WriteStartDocument(@as(*const IXmlWriter, @ptrCast(self)), standalone); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IXmlWriter_WriteStartElement(self: *const T, pwszPrefix: ?[*:0]const u16, pwszLocalName: ?[*:0]const u16, pwszNamespaceUri: ?[*:0]const u16) HRESULT { return @as(*const IXmlWriter.VTable, @ptrCast(self.vtable)).WriteStartElement(@as(*const IXmlWriter, @ptrCast(self)), pwszPrefix, pwszLocalName, pwszNamespaceUri); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IXmlWriter_WriteString(self: *const T, pwszText: ?[*:0]const u16) HRESULT { return @as(*const IXmlWriter.VTable, @ptrCast(self.vtable)).WriteString(@as(*const IXmlWriter, @ptrCast(self)), pwszText); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IXmlWriter_WriteSurrogateCharEntity(self: *const T, wchLow: u16, wchHigh: u16) HRESULT { return @as(*const IXmlWriter.VTable, @ptrCast(self.vtable)).WriteSurrogateCharEntity(@as(*const IXmlWriter, @ptrCast(self)), wchLow, wchHigh); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IXmlWriter_WriteWhitespace(self: *const T, pwszWhitespace: ?[*:0]const u16) HRESULT { return @as(*const IXmlWriter.VTable, @ptrCast(self.vtable)).WriteWhitespace(@as(*const IXmlWriter, @ptrCast(self)), pwszWhitespace); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IXmlWriter_Flush(self: *const T) HRESULT { return @as(*const IXmlWriter.VTable, @ptrCast(self.vtable)).Flush(@as(*const IXmlWriter, @ptrCast(self))); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IXmlWriterLite_Value = Guid.initString("862494c6-1310-4aad-b3cd-2dbeebf670d3"); pub const IID_IXmlWriterLite = &IID_IXmlWriterLite_Value; pub const IXmlWriterLite = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, SetOutput: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IXmlWriterLite, pOutput: ?*IUnknown, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IXmlWriterLite, pOutput: ?*IUnknown, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetProperty: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IXmlWriterLite, nProperty: u32, ppValue: ?*isize, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IXmlWriterLite, nProperty: u32, ppValue: ?*isize, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetProperty: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IXmlWriterLite, nProperty: u32, pValue: isize, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IXmlWriterLite, nProperty: u32, pValue: isize, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, WriteAttributes: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IXmlWriterLite, pReader: ?*IXmlReader, fWriteDefaultAttributes: BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IXmlWriterLite, pReader: ?*IXmlReader, fWriteDefaultAttributes: BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, WriteAttributeString: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IXmlWriterLite, pwszQName: [*:0]const u16, cwszQName: u32, pwszValue: ?[*:0]const u16, cwszValue: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IXmlWriterLite, pwszQName: [*:0]const u16, cwszQName: u32, pwszValue: ?[*:0]const u16, cwszValue: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, WriteCData: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IXmlWriterLite, pwszText: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IXmlWriterLite, pwszText: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, WriteCharEntity: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IXmlWriterLite, wch: u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IXmlWriterLite, wch: u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, WriteChars: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IXmlWriterLite, pwch: ?[*:0]const u16, cwch: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IXmlWriterLite, pwch: ?[*:0]const u16, cwch: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, WriteComment: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IXmlWriterLite, pwszComment: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IXmlWriterLite, pwszComment: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, WriteDocType: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IXmlWriterLite, pwszName: ?[*:0]const u16, pwszPublicId: ?[*:0]const u16, pwszSystemId: ?[*:0]const u16, pwszSubset: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IXmlWriterLite, pwszName: ?[*:0]const u16, pwszPublicId: ?[*:0]const u16, pwszSystemId: ?[*:0]const u16, pwszSubset: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, WriteElementString: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IXmlWriterLite, pwszQName: [*:0]const u16, cwszQName: u32, pwszValue: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IXmlWriterLite, pwszQName: [*:0]const u16, cwszQName: u32, pwszValue: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, WriteEndDocument: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IXmlWriterLite, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IXmlWriterLite, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, WriteEndElement: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IXmlWriterLite, pwszQName: [*:0]const u16, cwszQName: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IXmlWriterLite, pwszQName: [*:0]const u16, cwszQName: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, WriteEntityRef: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IXmlWriterLite, pwszName: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IXmlWriterLite, pwszName: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, WriteFullEndElement: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IXmlWriterLite, pwszQName: [*:0]const u16, cwszQName: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IXmlWriterLite, pwszQName: [*:0]const u16, cwszQName: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, WriteName: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IXmlWriterLite, pwszName: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IXmlWriterLite, pwszName: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, WriteNmToken: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IXmlWriterLite, pwszNmToken: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IXmlWriterLite, pwszNmToken: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, WriteNode: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IXmlWriterLite, pReader: ?*IXmlReader, fWriteDefaultAttributes: BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IXmlWriterLite, pReader: ?*IXmlReader, fWriteDefaultAttributes: BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, WriteNodeShallow: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IXmlWriterLite, pReader: ?*IXmlReader, fWriteDefaultAttributes: BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IXmlWriterLite, pReader: ?*IXmlReader, fWriteDefaultAttributes: BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, WriteProcessingInstruction: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IXmlWriterLite, pwszName: ?[*:0]const u16, pwszText: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IXmlWriterLite, pwszName: ?[*:0]const u16, pwszText: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, WriteRaw: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IXmlWriterLite, pwszData: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IXmlWriterLite, pwszData: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, WriteRawChars: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IXmlWriterLite, pwch: ?[*:0]const u16, cwch: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IXmlWriterLite, pwch: ?[*:0]const u16, cwch: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, WriteStartDocument: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IXmlWriterLite, standalone: XmlStandalone, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IXmlWriterLite, standalone: XmlStandalone, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, WriteStartElement: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IXmlWriterLite, pwszQName: [*:0]const u16, cwszQName: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IXmlWriterLite, pwszQName: [*:0]const u16, cwszQName: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, WriteString: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IXmlWriterLite, pwszText: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IXmlWriterLite, pwszText: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, WriteSurrogateCharEntity: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IXmlWriterLite, wchLow: u16, wchHigh: u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IXmlWriterLite, wchLow: u16, wchHigh: u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, WriteWhitespace: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IXmlWriterLite, pwszWhitespace: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IXmlWriterLite, pwszWhitespace: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Flush: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IXmlWriterLite, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IXmlWriterLite, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IXmlWriterLite_SetOutput(self: *const T, pOutput: ?*IUnknown) HRESULT { return @as(*const IXmlWriterLite.VTable, @ptrCast(self.vtable)).SetOutput(@as(*const IXmlWriterLite, @ptrCast(self)), pOutput); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IXmlWriterLite_GetProperty(self: *const T, nProperty: u32, ppValue: ?*isize) HRESULT { return @as(*const IXmlWriterLite.VTable, @ptrCast(self.vtable)).GetProperty(@as(*const IXmlWriterLite, @ptrCast(self)), nProperty, ppValue); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IXmlWriterLite_SetProperty(self: *const T, nProperty: u32, pValue: isize) HRESULT { return @as(*const IXmlWriterLite.VTable, @ptrCast(self.vtable)).SetProperty(@as(*const IXmlWriterLite, @ptrCast(self)), nProperty, pValue); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IXmlWriterLite_WriteAttributes(self: *const T, pReader: ?*IXmlReader, fWriteDefaultAttributes: BOOL) HRESULT { return @as(*const IXmlWriterLite.VTable, @ptrCast(self.vtable)).WriteAttributes(@as(*const IXmlWriterLite, @ptrCast(self)), pReader, fWriteDefaultAttributes); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IXmlWriterLite_WriteAttributeString(self: *const T, pwszQName: [*:0]const u16, cwszQName: u32, pwszValue: ?[*:0]const u16, cwszValue: u32) HRESULT { return @as(*const IXmlWriterLite.VTable, @ptrCast(self.vtable)).WriteAttributeString(@as(*const IXmlWriterLite, @ptrCast(self)), pwszQName, cwszQName, pwszValue, cwszValue); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IXmlWriterLite_WriteCData(self: *const T, pwszText: ?[*:0]const u16) HRESULT { return @as(*const IXmlWriterLite.VTable, @ptrCast(self.vtable)).WriteCData(@as(*const IXmlWriterLite, @ptrCast(self)), pwszText); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IXmlWriterLite_WriteCharEntity(self: *const T, wch: u16) HRESULT { return @as(*const IXmlWriterLite.VTable, @ptrCast(self.vtable)).WriteCharEntity(@as(*const IXmlWriterLite, @ptrCast(self)), wch); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IXmlWriterLite_WriteChars(self: *const T, pwch: ?[*:0]const u16, cwch: u32) HRESULT { return @as(*const IXmlWriterLite.VTable, @ptrCast(self.vtable)).WriteChars(@as(*const IXmlWriterLite, @ptrCast(self)), pwch, cwch); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IXmlWriterLite_WriteComment(self: *const T, pwszComment: ?[*:0]const u16) HRESULT { return @as(*const IXmlWriterLite.VTable, @ptrCast(self.vtable)).WriteComment(@as(*const IXmlWriterLite, @ptrCast(self)), pwszComment); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IXmlWriterLite_WriteDocType(self: *const T, pwszName: ?[*:0]const u16, pwszPublicId: ?[*:0]const u16, pwszSystemId: ?[*:0]const u16, pwszSubset: ?[*:0]const u16) HRESULT { return @as(*const IXmlWriterLite.VTable, @ptrCast(self.vtable)).WriteDocType(@as(*const IXmlWriterLite, @ptrCast(self)), pwszName, pwszPublicId, pwszSystemId, pwszSubset); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IXmlWriterLite_WriteElementString(self: *const T, pwszQName: [*:0]const u16, cwszQName: u32, pwszValue: ?[*:0]const u16) HRESULT { return @as(*const IXmlWriterLite.VTable, @ptrCast(self.vtable)).WriteElementString(@as(*const IXmlWriterLite, @ptrCast(self)), pwszQName, cwszQName, pwszValue); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IXmlWriterLite_WriteEndDocument(self: *const T) HRESULT { return @as(*const IXmlWriterLite.VTable, @ptrCast(self.vtable)).WriteEndDocument(@as(*const IXmlWriterLite, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IXmlWriterLite_WriteEndElement(self: *const T, pwszQName: [*:0]const u16, cwszQName: u32) HRESULT { return @as(*const IXmlWriterLite.VTable, @ptrCast(self.vtable)).WriteEndElement(@as(*const IXmlWriterLite, @ptrCast(self)), pwszQName, cwszQName); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IXmlWriterLite_WriteEntityRef(self: *const T, pwszName: ?[*:0]const u16) HRESULT { return @as(*const IXmlWriterLite.VTable, @ptrCast(self.vtable)).WriteEntityRef(@as(*const IXmlWriterLite, @ptrCast(self)), pwszName); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IXmlWriterLite_WriteFullEndElement(self: *const T, pwszQName: [*:0]const u16, cwszQName: u32) HRESULT { return @as(*const IXmlWriterLite.VTable, @ptrCast(self.vtable)).WriteFullEndElement(@as(*const IXmlWriterLite, @ptrCast(self)), pwszQName, cwszQName); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IXmlWriterLite_WriteName(self: *const T, pwszName: ?[*:0]const u16) HRESULT { return @as(*const IXmlWriterLite.VTable, @ptrCast(self.vtable)).WriteName(@as(*const IXmlWriterLite, @ptrCast(self)), pwszName); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IXmlWriterLite_WriteNmToken(self: *const T, pwszNmToken: ?[*:0]const u16) HRESULT { return @as(*const IXmlWriterLite.VTable, @ptrCast(self.vtable)).WriteNmToken(@as(*const IXmlWriterLite, @ptrCast(self)), pwszNmToken); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IXmlWriterLite_WriteNode(self: *const T, pReader: ?*IXmlReader, fWriteDefaultAttributes: BOOL) HRESULT { return @as(*const IXmlWriterLite.VTable, @ptrCast(self.vtable)).WriteNode(@as(*const IXmlWriterLite, @ptrCast(self)), pReader, fWriteDefaultAttributes); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IXmlWriterLite_WriteNodeShallow(self: *const T, pReader: ?*IXmlReader, fWriteDefaultAttributes: BOOL) HRESULT { return @as(*const IXmlWriterLite.VTable, @ptrCast(self.vtable)).WriteNodeShallow(@as(*const IXmlWriterLite, @ptrCast(self)), pReader, fWriteDefaultAttributes); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IXmlWriterLite_WriteProcessingInstruction(self: *const T, pwszName: ?[*:0]const u16, pwszText: ?[*:0]const u16) HRESULT { return @as(*const IXmlWriterLite.VTable, @ptrCast(self.vtable)).WriteProcessingInstruction(@as(*const IXmlWriterLite, @ptrCast(self)), pwszName, pwszText); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IXmlWriterLite_WriteRaw(self: *const T, pwszData: ?[*:0]const u16) HRESULT { return @as(*const IXmlWriterLite.VTable, @ptrCast(self.vtable)).WriteRaw(@as(*const IXmlWriterLite, @ptrCast(self)), pwszData); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IXmlWriterLite_WriteRawChars(self: *const T, pwch: ?[*:0]const u16, cwch: u32) HRESULT { return @as(*const IXmlWriterLite.VTable, @ptrCast(self.vtable)).WriteRawChars(@as(*const IXmlWriterLite, @ptrCast(self)), pwch, cwch); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IXmlWriterLite_WriteStartDocument(self: *const T, standalone: XmlStandalone) HRESULT { return @as(*const IXmlWriterLite.VTable, @ptrCast(self.vtable)).WriteStartDocument(@as(*const IXmlWriterLite, @ptrCast(self)), standalone); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IXmlWriterLite_WriteStartElement(self: *const T, pwszQName: [*:0]const u16, cwszQName: u32) HRESULT { return @as(*const IXmlWriterLite.VTable, @ptrCast(self.vtable)).WriteStartElement(@as(*const IXmlWriterLite, @ptrCast(self)), pwszQName, cwszQName); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IXmlWriterLite_WriteString(self: *const T, pwszText: ?[*:0]const u16) HRESULT { return @as(*const IXmlWriterLite.VTable, @ptrCast(self.vtable)).WriteString(@as(*const IXmlWriterLite, @ptrCast(self)), pwszText); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IXmlWriterLite_WriteSurrogateCharEntity(self: *const T, wchLow: u16, wchHigh: u16) HRESULT { return @as(*const IXmlWriterLite.VTable, @ptrCast(self.vtable)).WriteSurrogateCharEntity(@as(*const IXmlWriterLite, @ptrCast(self)), wchLow, wchHigh); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IXmlWriterLite_WriteWhitespace(self: *const T, pwszWhitespace: ?[*:0]const u16) HRESULT { return @as(*const IXmlWriterLite.VTable, @ptrCast(self.vtable)).WriteWhitespace(@as(*const IXmlWriterLite, @ptrCast(self)), pwszWhitespace); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IXmlWriterLite_Flush(self: *const T) HRESULT { return @as(*const IXmlWriterLite.VTable, @ptrCast(self.vtable)).Flush(@as(*const IXmlWriterLite, @ptrCast(self))); } }; } pub usingnamespace MethodMixin(@This()); }; //-------------------------------------------------------------------------------- // Section: Functions (6) //-------------------------------------------------------------------------------- pub extern "xmllite" fn CreateXmlReader( riid: ?*const Guid, ppvObject: ?*?*anyopaque, pMalloc: ?*IMalloc, ) callconv(@import("std").os.windows.WINAPI) HRESULT; pub extern "xmllite" fn CreateXmlReaderInputWithEncodingCodePage( pInputStream: ?*IUnknown, pMalloc: ?*IMalloc, nEncodingCodePage: u32, fEncodingHint: BOOL, pwszBaseUri: ?[*:0]const u16, ppInput: ?*?*IUnknown, ) callconv(@import("std").os.windows.WINAPI) HRESULT; pub extern "xmllite" fn CreateXmlReaderInputWithEncodingName( pInputStream: ?*IUnknown, pMalloc: ?*IMalloc, pwszEncodingName: ?[*:0]const u16, fEncodingHint: BOOL, pwszBaseUri: ?[*:0]const u16, ppInput: ?*?*IUnknown, ) callconv(@import("std").os.windows.WINAPI) HRESULT; pub extern "xmllite" fn CreateXmlWriter( riid: ?*const Guid, ppvObject: ?*?*anyopaque, pMalloc: ?*IMalloc, ) callconv(@import("std").os.windows.WINAPI) HRESULT; pub extern "xmllite" fn CreateXmlWriterOutputWithEncodingCodePage( pOutputStream: ?*IUnknown, pMalloc: ?*IMalloc, nEncodingCodePage: u32, ppOutput: ?*?*IUnknown, ) callconv(@import("std").os.windows.WINAPI) HRESULT; pub extern "xmllite" fn CreateXmlWriterOutputWithEncodingName( pOutputStream: ?*IUnknown, pMalloc: ?*IMalloc, pwszEncodingName: ?[*:0]const u16, ppOutput: ?*?*IUnknown, ) callconv(@import("std").os.windows.WINAPI) HRESULT; //-------------------------------------------------------------------------------- // Section: Unicode Aliases (0) //-------------------------------------------------------------------------------- const thismodule = @This(); pub usingnamespace switch (@import("../../zig.zig").unicode_mode) { .ansi => struct {}, .wide => struct {}, .unspecified => if (@import("builtin").is_test) struct {} else struct {}, }; //-------------------------------------------------------------------------------- // Section: Imports (6) //-------------------------------------------------------------------------------- const Guid = @import("../../zig.zig").Guid; const BOOL = @import("../../foundation.zig").BOOL; const HRESULT = @import("../../foundation.zig").HRESULT; const IMalloc = @import("../../system/com.zig").IMalloc; const IUnknown = @import("../../system/com.zig").IUnknown; const PWSTR = @import("../../foundation.zig").PWSTR; test { @setEvalBranchQuota(comptime @import("std").meta.declarations(@This()).len * 3); // reference all the pub declarations if (!@import("builtin").is_test) return; inline for (comptime @import("std").meta.declarations(@This())) |decl| { if (decl.is_pub) { _ = @field(@This(), decl.name); } } }
0
repos/capy/vendor/zigwin32/win32
repos/capy/vendor/zigwin32/win32/devices/usb.zig
//! NOTE: this file is autogenerated, DO NOT MODIFY //-------------------------------------------------------------------------------- // Section: Constants (543) //-------------------------------------------------------------------------------- pub const SHORT_PACKET_TERMINATE = @as(u32, 1); pub const AUTO_CLEAR_STALL = @as(u32, 2); pub const PIPE_TRANSFER_TIMEOUT = @as(u32, 3); pub const IGNORE_SHORT_PACKETS = @as(u32, 4); pub const ALLOW_PARTIAL_READS = @as(u32, 5); pub const AUTO_FLUSH = @as(u32, 6); pub const RAW_IO = @as(u32, 7); pub const MAXIMUM_TRANSFER_SIZE = @as(u32, 8); pub const RESET_PIPE_ON_RESUME = @as(u32, 9); pub const AUTO_SUSPEND = @as(u32, 129); pub const SUSPEND_DELAY = @as(u32, 131); pub const DEVICE_SPEED = @as(u32, 1); pub const LowSpeed = @as(u32, 1); pub const FullSpeed = @as(u32, 2); pub const HighSpeed = @as(u32, 3); pub const IOCTL_GENERICUSBFN_TRANSFER_IN = @as(u32, 2277389); pub const IOCTL_GENERICUSBFN_TRANSFER_IN_APPEND_ZERO_PKT = @as(u32, 2277393); pub const IOCTL_GENERICUSBFN_TRANSFER_OUT = @as(u32, 2277398); pub const IOCTL_GENERICUSBFN_CONTROL_STATUS_HANDSHAKE_IN = @as(u32, 2277400); pub const IOCTL_GENERICUSBFN_CONTROL_STATUS_HANDSHAKE_OUT = @as(u32, 2277404); pub const IOCTL_GENERICUSBFN_GET_CLASS_INFO = @as(u32, 2277410); pub const IOCTL_GENERICUSBFN_GET_PIPE_STATE = @as(u32, 2277414); pub const IOCTL_GENERICUSBFN_SET_PIPE_STATE = @as(u32, 2277417); pub const IOCTL_GENERICUSBFN_ACTIVATE_USB_BUS = @as(u32, 2277420); pub const IOCTL_GENERICUSBFN_DEACTIVATE_USB_BUS = @as(u32, 2277424); pub const IOCTL_GENERICUSBFN_BUS_EVENT_NOTIFICATION = @as(u32, 2277430); pub const IOCTL_GENERICUSBFN_GET_CLASS_INFO_EX = @as(u32, 2277434); pub const IOCTL_GENERICUSBFN_GET_INTERFACE_DESCRIPTOR_SET = @as(u32, 2277438); pub const IOCTL_GENERICUSBFN_REGISTER_USB_STRING = @as(u32, 2277441); pub const USBUSER_VERSION = @as(u32, 4); pub const USBUSER_GET_CONTROLLER_INFO_0 = @as(u32, 1); pub const USBUSER_GET_CONTROLLER_DRIVER_KEY = @as(u32, 2); pub const USBUSER_PASS_THRU = @as(u32, 3); pub const USBUSER_GET_POWER_STATE_MAP = @as(u32, 4); pub const USBUSER_GET_BANDWIDTH_INFORMATION = @as(u32, 5); pub const USBUSER_GET_BUS_STATISTICS_0 = @as(u32, 6); pub const USBUSER_GET_ROOTHUB_SYMBOLIC_NAME = @as(u32, 7); pub const USBUSER_GET_USB_DRIVER_VERSION = @as(u32, 8); pub const USBUSER_GET_USB2_HW_VERSION = @as(u32, 9); pub const USBUSER_USB_REFRESH_HCT_REG = @as(u32, 10); pub const USBUSER_OP_SEND_ONE_PACKET = @as(u32, 268435457); pub const USBUSER_OP_RAW_RESET_PORT = @as(u32, 536870913); pub const USBUSER_OP_OPEN_RAW_DEVICE = @as(u32, 536870914); pub const USBUSER_OP_CLOSE_RAW_DEVICE = @as(u32, 536870915); pub const USBUSER_OP_SEND_RAW_COMMAND = @as(u32, 536870916); pub const USBUSER_SET_ROOTPORT_FEATURE = @as(u32, 536870917); pub const USBUSER_CLEAR_ROOTPORT_FEATURE = @as(u32, 536870918); pub const USBUSER_GET_ROOTPORT_STATUS = @as(u32, 536870919); pub const USBUSER_INVALID_REQUEST = @as(u32, 4294967280); pub const USBUSER_OP_MASK_DEVONLY_API = @as(u32, 268435456); pub const USBUSER_OP_MASK_HCTEST_API = @as(u32, 536870912); pub const USB_PACKETFLAG_LOW_SPEED = @as(u32, 1); pub const USB_PACKETFLAG_FULL_SPEED = @as(u32, 2); pub const USB_PACKETFLAG_HIGH_SPEED = @as(u32, 4); pub const USB_PACKETFLAG_ASYNC_IN = @as(u32, 8); pub const USB_PACKETFLAG_ASYNC_OUT = @as(u32, 16); pub const USB_PACKETFLAG_ISO_IN = @as(u32, 32); pub const USB_PACKETFLAG_ISO_OUT = @as(u32, 64); pub const USB_PACKETFLAG_SETUP = @as(u32, 128); pub const USB_PACKETFLAG_TOGGLE0 = @as(u32, 256); pub const USB_PACKETFLAG_TOGGLE1 = @as(u32, 512); pub const USB_HC_FEATURE_FLAG_PORT_POWER_SWITCHING = @as(u32, 1); pub const USB_HC_FEATURE_FLAG_SEL_SUSPEND = @as(u32, 2); pub const USB_HC_FEATURE_LEGACY_BIOS = @as(u32, 4); pub const USB_HC_FEATURE_TIME_SYNC_API = @as(u32, 8); pub const USB_SUBMIT_URB = @as(u32, 0); pub const USB_RESET_PORT = @as(u32, 1); pub const USB_GET_ROOTHUB_PDO = @as(u32, 3); pub const USB_GET_PORT_STATUS = @as(u32, 4); pub const USB_ENABLE_PORT = @as(u32, 5); pub const USB_GET_HUB_COUNT = @as(u32, 6); pub const USB_CYCLE_PORT = @as(u32, 7); pub const USB_GET_HUB_NAME = @as(u32, 8); pub const USB_IDLE_NOTIFICATION = @as(u32, 9); pub const USB_RECORD_FAILURE = @as(u32, 10); pub const USB_GET_BUS_INFO = @as(u32, 264); pub const USB_GET_CONTROLLER_NAME = @as(u32, 265); pub const USB_GET_BUSGUID_INFO = @as(u32, 266); pub const USB_GET_PARENT_HUB_INFO = @as(u32, 267); pub const USB_GET_DEVICE_HANDLE = @as(u32, 268); pub const USB_GET_DEVICE_HANDLE_EX = @as(u32, 269); pub const USB_GET_TT_DEVICE_HANDLE = @as(u32, 270); pub const USB_GET_TOPOLOGY_ADDRESS = @as(u32, 271); pub const USB_IDLE_NOTIFICATION_EX = @as(u32, 272); pub const USB_REQ_GLOBAL_SUSPEND = @as(u32, 273); pub const USB_REQ_GLOBAL_RESUME = @as(u32, 274); pub const USB_GET_HUB_CONFIG_INFO = @as(u32, 275); pub const USB_FAIL_GET_STATUS = @as(u32, 280); pub const USB_REGISTER_COMPOSITE_DEVICE = @as(u32, 0); pub const USB_UNREGISTER_COMPOSITE_DEVICE = @as(u32, 1); pub const USB_REQUEST_REMOTE_WAKE_NOTIFICATION = @as(u32, 2); pub const HCD_GET_STATS_1 = @as(u32, 255); pub const HCD_DIAGNOSTIC_MODE_ON = @as(u32, 256); pub const HCD_DIAGNOSTIC_MODE_OFF = @as(u32, 257); pub const HCD_GET_ROOT_HUB_NAME = @as(u32, 258); pub const HCD_GET_DRIVERKEY_NAME = @as(u32, 265); pub const HCD_GET_STATS_2 = @as(u32, 266); pub const HCD_DISABLE_PORT = @as(u32, 268); pub const HCD_ENABLE_PORT = @as(u32, 269); pub const HCD_USER_REQUEST = @as(u32, 270); pub const HCD_TRACE_READ_REQUEST = @as(u32, 275); pub const USB_GET_NODE_INFORMATION = @as(u32, 258); pub const USB_GET_NODE_CONNECTION_INFORMATION = @as(u32, 259); pub const USB_GET_DESCRIPTOR_FROM_NODE_CONNECTION = @as(u32, 260); pub const USB_GET_NODE_CONNECTION_NAME = @as(u32, 261); pub const USB_DIAG_IGNORE_HUBS_ON = @as(u32, 262); pub const USB_DIAG_IGNORE_HUBS_OFF = @as(u32, 263); pub const USB_GET_NODE_CONNECTION_DRIVERKEY_NAME = @as(u32, 264); pub const USB_GET_HUB_CAPABILITIES = @as(u32, 271); pub const USB_GET_NODE_CONNECTION_ATTRIBUTES = @as(u32, 272); pub const USB_HUB_CYCLE_PORT = @as(u32, 273); pub const USB_GET_NODE_CONNECTION_INFORMATION_EX = @as(u32, 274); pub const USB_RESET_HUB = @as(u32, 275); pub const USB_GET_HUB_CAPABILITIES_EX = @as(u32, 276); pub const USB_GET_HUB_INFORMATION_EX = @as(u32, 277); pub const USB_GET_PORT_CONNECTOR_PROPERTIES = @as(u32, 278); pub const USB_GET_NODE_CONNECTION_INFORMATION_EX_V2 = @as(u32, 279); pub const USB_GET_TRANSPORT_CHARACTERISTICS = @as(u32, 281); pub const USB_REGISTER_FOR_TRANSPORT_CHARACTERISTICS_CHANGE = @as(u32, 282); pub const USB_NOTIFY_ON_TRANSPORT_CHARACTERISTICS_CHANGE = @as(u32, 283); pub const USB_UNREGISTER_FOR_TRANSPORT_CHARACTERISTICS_CHANGE = @as(u32, 284); pub const USB_START_TRACKING_FOR_TIME_SYNC = @as(u32, 285); pub const USB_GET_FRAME_NUMBER_AND_QPC_FOR_TIME_SYNC = @as(u32, 286); pub const USB_STOP_TRACKING_FOR_TIME_SYNC = @as(u32, 287); pub const USB_GET_DEVICE_CHARACTERISTICS = @as(u32, 288); pub const GUID_DEVINTERFACE_USB_HUB = Guid.initString("f18a0e88-c30c-11d0-8815-00a0c906bed8"); pub const GUID_DEVINTERFACE_USB_BILLBOARD = Guid.initString("5e9adaef-f879-473f-b807-4e5ea77d1b1c"); pub const GUID_DEVINTERFACE_USB_DEVICE = Guid.initString("a5dcbf10-6530-11d2-901f-00c04fb951ed"); pub const GUID_DEVINTERFACE_USB_HOST_CONTROLLER = Guid.initString("3abf6f2d-71c4-462a-8a92-1e6861e6af27"); pub const GUID_USB_WMI_STD_DATA = Guid.initString("4e623b20-cb14-11d1-b331-00a0c959bbd2"); pub const GUID_USB_WMI_STD_NOTIFICATION = Guid.initString("4e623b20-cb14-11d1-b331-00a0c959bbd2"); pub const GUID_USB_WMI_DEVICE_PERF_INFO = Guid.initString("66c1aa3c-499f-49a0-a9a5-61e2359f6407"); pub const GUID_USB_WMI_NODE_INFO = Guid.initString("9c179357-dc7a-4f41-b66b-323b9ddcb5b1"); pub const GUID_USB_WMI_TRACING = Guid.initString("3a61881b-b4e6-4bf9-ae0f-3cd8f394e52f"); pub const GUID_USB_TRANSFER_TRACING = Guid.initString("681eb8aa-403d-452c-9f8a-f0616fac9540"); pub const GUID_USB_PERFORMANCE_TRACING = Guid.initString("d5de77a6-6ae9-425c-b1e2-f5615fd348a9"); pub const GUID_USB_WMI_SURPRISE_REMOVAL_NOTIFICATION = Guid.initString("9bbbf831-a2f2-43b4-96d1-86944b5914b3"); pub const FILE_DEVICE_USB = @as(u32, 34); pub const BMREQUEST_HOST_TO_DEVICE = @as(u32, 0); pub const BMREQUEST_DEVICE_TO_HOST = @as(u32, 1); pub const BMREQUEST_STANDARD = @as(u32, 0); pub const BMREQUEST_CLASS = @as(u32, 1); pub const BMREQUEST_VENDOR = @as(u32, 2); pub const BMREQUEST_TO_DEVICE = @as(u32, 0); pub const BMREQUEST_TO_INTERFACE = @as(u32, 1); pub const BMREQUEST_TO_ENDPOINT = @as(u32, 2); pub const BMREQUEST_TO_OTHER = @as(u32, 3); pub const USB_REQUEST_GET_STATUS = @as(u32, 0); pub const USB_REQUEST_CLEAR_FEATURE = @as(u32, 1); pub const USB_REQUEST_SET_FEATURE = @as(u32, 3); pub const USB_REQUEST_SET_ADDRESS = @as(u32, 5); pub const USB_REQUEST_GET_DESCRIPTOR = @as(u32, 6); pub const USB_REQUEST_SET_DESCRIPTOR = @as(u32, 7); pub const USB_REQUEST_GET_CONFIGURATION = @as(u32, 8); pub const USB_REQUEST_SET_CONFIGURATION = @as(u32, 9); pub const USB_REQUEST_GET_INTERFACE = @as(u32, 10); pub const USB_REQUEST_SET_INTERFACE = @as(u32, 11); pub const USB_REQUEST_SYNC_FRAME = @as(u32, 12); pub const USB_REQUEST_GET_FIRMWARE_STATUS = @as(u32, 26); pub const USB_REQUEST_SET_FIRMWARE_STATUS = @as(u32, 27); pub const USB_GET_FIRMWARE_ALLOWED_OR_DISALLOWED_STATE = @as(u32, 0); pub const USB_GET_FIRMWARE_HASH = @as(u32, 1); pub const USB_DEVICE_FIRMWARE_HASH_LENGTH = @as(u32, 32); pub const USB_DISALLOW_FIRMWARE_UPDATE = @as(u32, 0); pub const USB_ALLOW_FIRMWARE_UPDATE = @as(u32, 1); pub const USB_REQUEST_SET_SEL = @as(u32, 48); pub const USB_REQUEST_ISOCH_DELAY = @as(u32, 49); pub const USB_DEVICE_DESCRIPTOR_TYPE = @as(u32, 1); pub const USB_CONFIGURATION_DESCRIPTOR_TYPE = @as(u32, 2); pub const USB_STRING_DESCRIPTOR_TYPE = @as(u32, 3); pub const USB_INTERFACE_DESCRIPTOR_TYPE = @as(u32, 4); pub const USB_ENDPOINT_DESCRIPTOR_TYPE = @as(u32, 5); pub const USB_DEVICE_QUALIFIER_DESCRIPTOR_TYPE = @as(u32, 6); pub const USB_OTHER_SPEED_CONFIGURATION_DESCRIPTOR_TYPE = @as(u32, 7); pub const USB_INTERFACE_POWER_DESCRIPTOR_TYPE = @as(u32, 8); pub const USB_OTG_DESCRIPTOR_TYPE = @as(u32, 9); pub const USB_DEBUG_DESCRIPTOR_TYPE = @as(u32, 10); pub const USB_INTERFACE_ASSOCIATION_DESCRIPTOR_TYPE = @as(u32, 11); pub const USB_BOS_DESCRIPTOR_TYPE = @as(u32, 15); pub const USB_DEVICE_CAPABILITY_DESCRIPTOR_TYPE = @as(u32, 16); pub const USB_SUPERSPEED_ENDPOINT_COMPANION_DESCRIPTOR_TYPE = @as(u32, 48); pub const USB_SUPERSPEEDPLUS_ISOCH_ENDPOINT_COMPANION_DESCRIPTOR_TYPE = @as(u32, 49); pub const USB_RESERVED_DESCRIPTOR_TYPE = @as(u32, 6); pub const USB_CONFIG_POWER_DESCRIPTOR_TYPE = @as(u32, 7); pub const USB_FEATURE_ENDPOINT_STALL = @as(u32, 0); pub const USB_FEATURE_REMOTE_WAKEUP = @as(u32, 1); pub const USB_FEATURE_TEST_MODE = @as(u32, 2); pub const USB_FEATURE_FUNCTION_SUSPEND = @as(u32, 0); pub const USB_FEATURE_U1_ENABLE = @as(u32, 48); pub const USB_FEATURE_U2_ENABLE = @as(u32, 49); pub const USB_FEATURE_LTM_ENABLE = @as(u32, 50); pub const USB_FEATURE_LDM_ENABLE = @as(u32, 53); pub const USB_FEATURE_BATTERY_WAKE_MASK = @as(u32, 40); pub const USB_FEATURE_OS_IS_PD_AWARE = @as(u32, 41); pub const USB_FEATURE_POLICY_MODE = @as(u32, 42); pub const USB_FEATURE_CHARGING_POLICY = @as(u32, 54); pub const USB_CHARGING_POLICY_DEFAULT = @as(u32, 0); pub const USB_CHARGING_POLICY_ICCHPF = @as(u32, 1); pub const USB_CHARGING_POLICY_ICCLPF = @as(u32, 2); pub const USB_CHARGING_POLICY_NO_POWER = @as(u32, 3); pub const USB_STATUS_PORT_STATUS = @as(u32, 0); pub const USB_STATUS_PD_STATUS = @as(u32, 1); pub const USB_STATUS_EXT_PORT_STATUS = @as(u32, 2); pub const USB_GETSTATUS_SELF_POWERED = @as(u32, 1); pub const USB_GETSTATUS_REMOTE_WAKEUP_ENABLED = @as(u32, 2); pub const USB_GETSTATUS_U1_ENABLE = @as(u32, 4); pub const USB_GETSTATUS_U2_ENABLE = @as(u32, 8); pub const USB_GETSTATUS_LTM_ENABLE = @as(u32, 16); pub const USB_DEVICE_CLASS_RESERVED = @as(u32, 0); pub const USB_DEVICE_CLASS_AUDIO = @as(u32, 1); pub const USB_DEVICE_CLASS_COMMUNICATIONS = @as(u32, 2); pub const USB_DEVICE_CLASS_HUMAN_INTERFACE = @as(u32, 3); pub const USB_DEVICE_CLASS_MONITOR = @as(u32, 4); pub const USB_DEVICE_CLASS_PHYSICAL_INTERFACE = @as(u32, 5); pub const USB_DEVICE_CLASS_POWER = @as(u32, 6); pub const USB_DEVICE_CLASS_IMAGE = @as(u32, 6); pub const USB_DEVICE_CLASS_PRINTER = @as(u32, 7); pub const USB_DEVICE_CLASS_STORAGE = @as(u32, 8); pub const USB_DEVICE_CLASS_HUB = @as(u32, 9); pub const USB_DEVICE_CLASS_CDC_DATA = @as(u32, 10); pub const USB_DEVICE_CLASS_SMART_CARD = @as(u32, 11); pub const USB_DEVICE_CLASS_CONTENT_SECURITY = @as(u32, 13); pub const USB_DEVICE_CLASS_VIDEO = @as(u32, 14); pub const USB_DEVICE_CLASS_PERSONAL_HEALTHCARE = @as(u32, 15); pub const USB_DEVICE_CLASS_AUDIO_VIDEO = @as(u32, 16); pub const USB_DEVICE_CLASS_BILLBOARD = @as(u32, 17); pub const USB_DEVICE_CLASS_DIAGNOSTIC_DEVICE = @as(u32, 220); pub const USB_DEVICE_CLASS_WIRELESS_CONTROLLER = @as(u32, 224); pub const USB_DEVICE_CLASS_MISCELLANEOUS = @as(u32, 239); pub const USB_DEVICE_CLASS_APPLICATION_SPECIFIC = @as(u32, 254); pub const USB_DEVICE_CLASS_VENDOR_SPECIFIC = @as(u32, 255); pub const USB_DEVICE_CAPABILITY_WIRELESS_USB = @as(u32, 1); pub const USB_DEVICE_CAPABILITY_USB20_EXTENSION = @as(u32, 2); pub const USB_DEVICE_CAPABILITY_SUPERSPEED_USB = @as(u32, 3); pub const USB_DEVICE_CAPABILITY_CONTAINER_ID = @as(u32, 4); pub const USB_DEVICE_CAPABILITY_PLATFORM = @as(u32, 5); pub const USB_DEVICE_CAPABILITY_POWER_DELIVERY = @as(u32, 6); pub const USB_DEVICE_CAPABILITY_BATTERY_INFO = @as(u32, 7); pub const USB_DEVICE_CAPABILITY_PD_CONSUMER_PORT = @as(u32, 8); pub const USB_DEVICE_CAPABILITY_PD_PROVIDER_PORT = @as(u32, 9); pub const USB_DEVICE_CAPABILITY_SUPERSPEEDPLUS_USB = @as(u32, 10); pub const USB_DEVICE_CAPABILITY_PRECISION_TIME_MEASUREMENT = @as(u32, 11); pub const USB_DEVICE_CAPABILITY_BILLBOARD = @as(u32, 13); pub const USB_DEVICE_CAPABILITY_FIRMWARE_STATUS = @as(u32, 17); pub const USB_DEVICE_CAPABILITY_USB20_EXTENSION_BMATTRIBUTES_RESERVED_MASK = @as(u32, 4294901985); pub const USB_DEVICE_CAPABILITY_SUPERSPEED_BMATTRIBUTES_RESERVED_MASK = @as(u32, 253); pub const USB_DEVICE_CAPABILITY_SUPERSPEED_BMATTRIBUTES_LTM_CAPABLE = @as(u32, 2); pub const USB_DEVICE_CAPABILITY_SUPERSPEED_SPEEDS_SUPPORTED_RESERVED_MASK = @as(u32, 65520); pub const USB_DEVICE_CAPABILITY_SUPERSPEED_SPEEDS_SUPPORTED_LOW = @as(u32, 1); pub const USB_DEVICE_CAPABILITY_SUPERSPEED_SPEEDS_SUPPORTED_FULL = @as(u32, 2); pub const USB_DEVICE_CAPABILITY_SUPERSPEED_SPEEDS_SUPPORTED_HIGH = @as(u32, 4); pub const USB_DEVICE_CAPABILITY_SUPERSPEED_SPEEDS_SUPPORTED_SUPER = @as(u32, 8); pub const USB_DEVICE_CAPABILITY_SUPERSPEED_U1_DEVICE_EXIT_MAX_VALUE = @as(u32, 10); pub const USB_DEVICE_CAPABILITY_SUPERSPEED_U2_DEVICE_EXIT_MAX_VALUE = @as(u32, 2047); pub const USB_DEVICE_CAPABILITY_MAX_U1_LATENCY = @as(u32, 10); pub const USB_DEVICE_CAPABILITY_MAX_U2_LATENCY = @as(u32, 2047); pub const USB_DEVICE_CAPABILITY_SUPERSPEEDPLUS_SPEED_LSE_BPS = @as(u32, 0); pub const USB_DEVICE_CAPABILITY_SUPERSPEEDPLUS_SPEED_LSE_KBPS = @as(u32, 1); pub const USB_DEVICE_CAPABILITY_SUPERSPEEDPLUS_SPEED_LSE_MBPS = @as(u32, 2); pub const USB_DEVICE_CAPABILITY_SUPERSPEEDPLUS_SPEED_LSE_GBPS = @as(u32, 3); pub const USB_DEVICE_CAPABILITY_SUPERSPEEDPLUS_SPEED_MODE_SYMMETRIC = @as(u32, 0); pub const USB_DEVICE_CAPABILITY_SUPERSPEEDPLUS_SPEED_MODE_ASYMMETRIC = @as(u32, 1); pub const USB_DEVICE_CAPABILITY_SUPERSPEEDPLUS_SPEED_DIR_RX = @as(u32, 0); pub const USB_DEVICE_CAPABILITY_SUPERSPEEDPLUS_SPEED_DIR_TX = @as(u32, 1); pub const USB_DEVICE_CAPABILITY_SUPERSPEEDPLUS_SPEED_PROTOCOL_SS = @as(u32, 0); pub const USB_DEVICE_CAPABILITY_SUPERSPEEDPLUS_SPEED_PROTOCOL_SSP = @as(u32, 1); pub const GUID_USB_MSOS20_PLATFORM_CAPABILITY_ID = Guid.initString("d8dd60df-4589-4cc7-9cd2-659d9e648a9f"); pub const USB_CONFIG_POWERED_MASK = @as(u32, 192); pub const USB_CONFIG_BUS_POWERED = @as(u32, 128); pub const USB_CONFIG_SELF_POWERED = @as(u32, 64); pub const USB_CONFIG_REMOTE_WAKEUP = @as(u32, 32); pub const USB_CONFIG_RESERVED = @as(u32, 31); pub const USB_ENDPOINT_DIRECTION_MASK = @as(u32, 128); pub const USB_ENDPOINT_ADDRESS_MASK = @as(u32, 15); pub const USB_ENDPOINT_TYPE_MASK = @as(u32, 3); pub const USB_ENDPOINT_TYPE_CONTROL = @as(u32, 0); pub const USB_ENDPOINT_TYPE_ISOCHRONOUS = @as(u32, 1); pub const USB_ENDPOINT_TYPE_BULK = @as(u32, 2); pub const USB_ENDPOINT_TYPE_INTERRUPT = @as(u32, 3); pub const USB_ENDPOINT_TYPE_BULK_RESERVED_MASK = @as(u32, 252); pub const USB_ENDPOINT_TYPE_CONTROL_RESERVED_MASK = @as(u32, 252); pub const USB_20_ENDPOINT_TYPE_INTERRUPT_RESERVED_MASK = @as(u32, 252); pub const USB_30_ENDPOINT_TYPE_INTERRUPT_RESERVED_MASK = @as(u32, 204); pub const USB_ENDPOINT_TYPE_ISOCHRONOUS_RESERVED_MASK = @as(u32, 192); pub const USB_30_ENDPOINT_TYPE_INTERRUPT_USAGE_MASK = @as(u32, 48); pub const USB_30_ENDPOINT_TYPE_INTERRUPT_USAGE_PERIODIC = @as(u32, 0); pub const USB_30_ENDPOINT_TYPE_INTERRUPT_USAGE_NOTIFICATION = @as(u32, 16); pub const USB_30_ENDPOINT_TYPE_INTERRUPT_USAGE_RESERVED10 = @as(u32, 32); pub const USB_30_ENDPOINT_TYPE_INTERRUPT_USAGE_RESERVED11 = @as(u32, 48); pub const USB_ENDPOINT_TYPE_ISOCHRONOUS_SYNCHRONIZATION_MASK = @as(u32, 12); pub const USB_ENDPOINT_TYPE_ISOCHRONOUS_SYNCHRONIZATION_NO_SYNCHRONIZATION = @as(u32, 0); pub const USB_ENDPOINT_TYPE_ISOCHRONOUS_SYNCHRONIZATION_ASYNCHRONOUS = @as(u32, 4); pub const USB_ENDPOINT_TYPE_ISOCHRONOUS_SYNCHRONIZATION_ADAPTIVE = @as(u32, 8); pub const USB_ENDPOINT_TYPE_ISOCHRONOUS_SYNCHRONIZATION_SYNCHRONOUS = @as(u32, 12); pub const USB_ENDPOINT_TYPE_ISOCHRONOUS_USAGE_MASK = @as(u32, 48); pub const USB_ENDPOINT_TYPE_ISOCHRONOUS_USAGE_DATA_ENDOINT = @as(u32, 0); pub const USB_ENDPOINT_TYPE_ISOCHRONOUS_USAGE_FEEDBACK_ENDPOINT = @as(u32, 16); pub const USB_ENDPOINT_TYPE_ISOCHRONOUS_USAGE_IMPLICIT_FEEDBACK_DATA_ENDPOINT = @as(u32, 32); pub const USB_ENDPOINT_TYPE_ISOCHRONOUS_USAGE_RESERVED = @as(u32, 48); pub const USB_ENDPOINT_SUPERSPEED_BULK_MAX_PACKET_SIZE = @as(u32, 1024); pub const USB_ENDPOINT_SUPERSPEED_CONTROL_MAX_PACKET_SIZE = @as(u32, 512); pub const USB_ENDPOINT_SUPERSPEED_ISO_MAX_PACKET_SIZE = @as(u32, 1024); pub const USB_ENDPOINT_SUPERSPEED_INTERRUPT_MAX_PACKET_SIZE = @as(u32, 1024); pub const MAXIMUM_USB_STRING_LENGTH = @as(u32, 255); pub const USB_SUPERSPEED_ISOCHRONOUS_MAX_MULTIPLIER = @as(u32, 2); pub const USB_SUPERSPEEDPLUS_ISOCHRONOUS_MIN_BYTESPERINTERVAL = @as(u32, 49153); pub const USB_SUPERSPEEDPLUS_ISOCHRONOUS_MAX_BYTESPERINTERVAL = @as(u32, 16777215); pub const USB_20_HUB_DESCRIPTOR_TYPE = @as(u32, 41); pub const USB_30_HUB_DESCRIPTOR_TYPE = @as(u32, 42); pub const USB_REQUEST_GET_STATE = @as(u32, 2); pub const USB_REQUEST_CLEAR_TT_BUFFER = @as(u32, 8); pub const USB_REQUEST_RESET_TT = @as(u32, 9); pub const USB_REQUEST_GET_TT_STATE = @as(u32, 10); pub const USB_REQUEST_STOP_TT = @as(u32, 11); pub const USB_REQUEST_SET_HUB_DEPTH = @as(u32, 12); pub const USB_REQUEST_GET_PORT_ERR_COUNT = @as(u32, 13); pub const USB_PORT_STATUS_CONNECT = @as(u32, 1); pub const USB_PORT_STATUS_ENABLE = @as(u32, 2); pub const USB_PORT_STATUS_SUSPEND = @as(u32, 4); pub const USB_PORT_STATUS_OVER_CURRENT = @as(u32, 8); pub const USB_PORT_STATUS_RESET = @as(u32, 16); pub const USB_PORT_STATUS_POWER = @as(u32, 256); pub const USB_PORT_STATUS_LOW_SPEED = @as(u32, 512); pub const USB_PORT_STATUS_HIGH_SPEED = @as(u32, 1024); pub const PORT_LINK_STATE_U0 = @as(u32, 0); pub const PORT_LINK_STATE_U1 = @as(u32, 1); pub const PORT_LINK_STATE_U2 = @as(u32, 2); pub const PORT_LINK_STATE_U3 = @as(u32, 3); pub const PORT_LINK_STATE_DISABLED = @as(u32, 4); pub const PORT_LINK_STATE_RX_DETECT = @as(u32, 5); pub const PORT_LINK_STATE_INACTIVE = @as(u32, 6); pub const PORT_LINK_STATE_POLLING = @as(u32, 7); pub const PORT_LINK_STATE_RECOVERY = @as(u32, 8); pub const PORT_LINK_STATE_HOT_RESET = @as(u32, 9); pub const PORT_LINK_STATE_COMPLIANCE_MODE = @as(u32, 10); pub const PORT_LINK_STATE_LOOPBACK = @as(u32, 11); pub const PORT_LINK_STATE_TEST_MODE = @as(u32, 11); pub const USB_FEATURE_INTERFACE_POWER_D0 = @as(u32, 2); pub const USB_FEATURE_INTERFACE_POWER_D1 = @as(u32, 3); pub const USB_FEATURE_INTERFACE_POWER_D2 = @as(u32, 4); pub const USB_FEATURE_INTERFACE_POWER_D3 = @as(u32, 5); pub const USB_SUPPORT_D0_COMMAND = @as(u32, 1); pub const USB_SUPPORT_D1_COMMAND = @as(u32, 2); pub const USB_SUPPORT_D2_COMMAND = @as(u32, 4); pub const USB_SUPPORT_D3_COMMAND = @as(u32, 8); pub const USB_SUPPORT_D1_WAKEUP = @as(u32, 16); pub const USB_SUPPORT_D2_WAKEUP = @as(u32, 32); pub const USBDI_VERSION = @as(u32, 1536); pub const USB_PORTATTR_NO_CONNECTOR = @as(u32, 1); pub const USB_PORTATTR_SHARED_USB2 = @as(u32, 2); pub const USB_PORTATTR_MINI_CONNECTOR = @as(u32, 4); pub const USB_PORTATTR_OEM_CONNECTOR = @as(u32, 8); pub const USB_PORTATTR_OWNED_BY_CC = @as(u32, 16777216); pub const USB_PORTATTR_NO_OVERCURRENT_UI = @as(u32, 33554432); pub const USB_DEFAULT_DEVICE_ADDRESS = @as(u32, 0); pub const USB_DEFAULT_ENDPOINT_ADDRESS = @as(u32, 0); pub const USB_DEFAULT_MAX_PACKET = @as(u32, 64); pub const URB_FUNCTION_SELECT_CONFIGURATION = @as(u32, 0); pub const URB_FUNCTION_SELECT_INTERFACE = @as(u32, 1); pub const URB_FUNCTION_ABORT_PIPE = @as(u32, 2); pub const URB_FUNCTION_TAKE_FRAME_LENGTH_CONTROL = @as(u32, 3); pub const URB_FUNCTION_RELEASE_FRAME_LENGTH_CONTROL = @as(u32, 4); pub const URB_FUNCTION_GET_FRAME_LENGTH = @as(u32, 5); pub const URB_FUNCTION_SET_FRAME_LENGTH = @as(u32, 6); pub const URB_FUNCTION_GET_CURRENT_FRAME_NUMBER = @as(u32, 7); pub const URB_FUNCTION_CONTROL_TRANSFER = @as(u32, 8); pub const URB_FUNCTION_BULK_OR_INTERRUPT_TRANSFER = @as(u32, 9); pub const URB_FUNCTION_ISOCH_TRANSFER = @as(u32, 10); pub const URB_FUNCTION_GET_DESCRIPTOR_FROM_DEVICE = @as(u32, 11); pub const URB_FUNCTION_SET_DESCRIPTOR_TO_DEVICE = @as(u32, 12); pub const URB_FUNCTION_SET_FEATURE_TO_DEVICE = @as(u32, 13); pub const URB_FUNCTION_SET_FEATURE_TO_INTERFACE = @as(u32, 14); pub const URB_FUNCTION_SET_FEATURE_TO_ENDPOINT = @as(u32, 15); pub const URB_FUNCTION_CLEAR_FEATURE_TO_DEVICE = @as(u32, 16); pub const URB_FUNCTION_CLEAR_FEATURE_TO_INTERFACE = @as(u32, 17); pub const URB_FUNCTION_CLEAR_FEATURE_TO_ENDPOINT = @as(u32, 18); pub const URB_FUNCTION_GET_STATUS_FROM_DEVICE = @as(u32, 19); pub const URB_FUNCTION_GET_STATUS_FROM_INTERFACE = @as(u32, 20); pub const URB_FUNCTION_GET_STATUS_FROM_ENDPOINT = @as(u32, 21); pub const URB_FUNCTION_RESERVED_0X0016 = @as(u32, 22); pub const URB_FUNCTION_VENDOR_DEVICE = @as(u32, 23); pub const URB_FUNCTION_VENDOR_INTERFACE = @as(u32, 24); pub const URB_FUNCTION_VENDOR_ENDPOINT = @as(u32, 25); pub const URB_FUNCTION_CLASS_DEVICE = @as(u32, 26); pub const URB_FUNCTION_CLASS_INTERFACE = @as(u32, 27); pub const URB_FUNCTION_CLASS_ENDPOINT = @as(u32, 28); pub const URB_FUNCTION_RESERVE_0X001D = @as(u32, 29); pub const URB_FUNCTION_SYNC_RESET_PIPE_AND_CLEAR_STALL = @as(u32, 30); pub const URB_FUNCTION_CLASS_OTHER = @as(u32, 31); pub const URB_FUNCTION_VENDOR_OTHER = @as(u32, 32); pub const URB_FUNCTION_GET_STATUS_FROM_OTHER = @as(u32, 33); pub const URB_FUNCTION_CLEAR_FEATURE_TO_OTHER = @as(u32, 34); pub const URB_FUNCTION_SET_FEATURE_TO_OTHER = @as(u32, 35); pub const URB_FUNCTION_GET_DESCRIPTOR_FROM_ENDPOINT = @as(u32, 36); pub const URB_FUNCTION_SET_DESCRIPTOR_TO_ENDPOINT = @as(u32, 37); pub const URB_FUNCTION_GET_CONFIGURATION = @as(u32, 38); pub const URB_FUNCTION_GET_INTERFACE = @as(u32, 39); pub const URB_FUNCTION_GET_DESCRIPTOR_FROM_INTERFACE = @as(u32, 40); pub const URB_FUNCTION_SET_DESCRIPTOR_TO_INTERFACE = @as(u32, 41); pub const URB_FUNCTION_RESERVE_0X002B = @as(u32, 43); pub const URB_FUNCTION_RESERVE_0X002C = @as(u32, 44); pub const URB_FUNCTION_RESERVE_0X002D = @as(u32, 45); pub const URB_FUNCTION_RESERVE_0X002E = @as(u32, 46); pub const URB_FUNCTION_RESERVE_0X002F = @as(u32, 47); pub const URB_FUNCTION_GET_MS_FEATURE_DESCRIPTOR = @as(u32, 42); pub const URB_FUNCTION_SYNC_RESET_PIPE = @as(u32, 48); pub const URB_FUNCTION_SYNC_CLEAR_STALL = @as(u32, 49); pub const URB_FUNCTION_CONTROL_TRANSFER_EX = @as(u32, 50); pub const URB_FUNCTION_RESERVE_0X0033 = @as(u32, 51); pub const URB_FUNCTION_RESERVE_0X0034 = @as(u32, 52); pub const URB_FUNCTION_OPEN_STATIC_STREAMS = @as(u32, 53); pub const URB_FUNCTION_CLOSE_STATIC_STREAMS = @as(u32, 54); pub const URB_FUNCTION_BULK_OR_INTERRUPT_TRANSFER_USING_CHAINED_MDL = @as(u32, 55); pub const URB_FUNCTION_ISOCH_TRANSFER_USING_CHAINED_MDL = @as(u32, 56); pub const URB_FUNCTION_GET_ISOCH_PIPE_TRANSFER_PATH_DELAYS = @as(u32, 61); pub const URB_FUNCTION_RESET_PIPE = @as(u32, 30); pub const USBD_SHORT_TRANSFER_OK = @as(u32, 2); pub const USBD_START_ISO_TRANSFER_ASAP = @as(u32, 4); pub const USBD_DEFAULT_PIPE_TRANSFER = @as(u32, 8); pub const USBD_TRANSFER_DIRECTION_OUT = @as(u32, 0); pub const USBD_TRANSFER_DIRECTION_IN = @as(u32, 1); pub const USBD_TRANSFER_DIRECTION = @as(u32, 1); pub const USBD_ISO_START_FRAME_RANGE = @as(u32, 1024); pub const USBD_DEFAULT_MAXIMUM_TRANSFER_SIZE = @as(u32, 4294967295); pub const USBD_PF_CHANGE_MAX_PACKET = @as(u32, 1); pub const USBD_PF_SHORT_PACKET_OPT = @as(u32, 2); pub const USBD_PF_ENABLE_RT_THREAD_ACCESS = @as(u32, 4); pub const USBD_PF_MAP_ADD_TRANSFERS = @as(u32, 8); pub const USBD_PF_VIDEO_PRIORITY = @as(u32, 16); pub const USBD_PF_VOICE_PRIORITY = @as(u32, 32); pub const USBD_PF_INTERACTIVE_PRIORITY = @as(u32, 48); pub const USBD_PF_PRIORITY_MASK = @as(u32, 240); pub const USBD_PF_HANDLES_SSP_HIGH_BANDWIDTH_ISOCH = @as(u32, 256); pub const USBD_PF_SSP_HIGH_BANDWIDTH_ISOCH = @as(u32, 65536); pub const OS_STRING_DESCRIPTOR_INDEX = @as(u32, 238); pub const MS_GENRE_DESCRIPTOR_INDEX = @as(u32, 1); pub const MS_POWER_DESCRIPTOR_INDEX = @as(u32, 2); pub const MS_OS_FLAGS_CONTAINERID = @as(u32, 2); pub const URB_OPEN_STATIC_STREAMS_VERSION_100 = @as(u32, 256); pub const MAX_NUM_USBFN_ENDPOINTS = @as(u32, 15); pub const MAX_CONFIGURATION_NAME_LENGTH = @as(u32, 40); pub const MAX_USB_STRING_LENGTH = @as(u32, 255); pub const MAX_SUPPORTED_CONFIGURATIONS = @as(u32, 12); pub const USBFN_INTERRUPT_ENDPOINT_SIZE_NOT_UPDATEABLE_MASK = @as(u32, 128); pub const USB_TEST_MODE_TEST_J = @as(u32, 1); pub const USB_TEST_MODE_TEST_K = @as(u32, 2); pub const USB_TEST_MODE_TEST_SE0_NAK = @as(u32, 3); pub const USB_TEST_MODE_TEST_PACKET = @as(u32, 4); pub const USB_TEST_MODE_TEST_FORCE_ENABLE = @as(u32, 5); pub const MAX_INTERFACE_NAME_LENGTH = @as(u32, 40); pub const MAX_ALTERNATE_NAME_LENGTH = @as(u32, 40); pub const MAX_ASSOCIATION_NAME_LENGTH = @as(u32, 40); pub const IOCTL_INTERNAL_USB_SUBMIT_URB = @as(u32, 2228227); pub const IOCTL_INTERNAL_USB_RESET_PORT = @as(u32, 2228231); pub const IOCTL_INTERNAL_USB_GET_ROOTHUB_PDO = @as(u32, 2228239); pub const USBD_PORT_ENABLED = @as(u32, 1); pub const USBD_PORT_CONNECTED = @as(u32, 2); pub const IOCTL_INTERNAL_USB_GET_PORT_STATUS = @as(u32, 2228243); pub const IOCTL_INTERNAL_USB_ENABLE_PORT = @as(u32, 2228247); pub const IOCTL_INTERNAL_USB_GET_HUB_COUNT = @as(u32, 2228251); pub const IOCTL_INTERNAL_USB_CYCLE_PORT = @as(u32, 2228255); pub const IOCTL_INTERNAL_USB_GET_HUB_NAME = @as(u32, 2228256); pub const IOCTL_INTERNAL_USB_GET_BUS_INFO = @as(u32, 2229280); pub const IOCTL_INTERNAL_USB_GET_CONTROLLER_NAME = @as(u32, 2229284); pub const IOCTL_INTERNAL_USB_GET_BUSGUID_INFO = @as(u32, 2229288); pub const IOCTL_INTERNAL_USB_GET_PARENT_HUB_INFO = @as(u32, 2229292); pub const IOCTL_INTERNAL_USB_SUBMIT_IDLE_NOTIFICATION = @as(u32, 2228263); pub const IOCTL_INTERNAL_USB_GET_DEVICE_HANDLE = @as(u32, 2229299); pub const IOCTL_INTERNAL_USB_NOTIFY_IDLE_READY = @as(u32, 2229315); pub const IOCTL_INTERNAL_USB_REQ_GLOBAL_SUSPEND = @as(u32, 2229319); pub const IOCTL_INTERNAL_USB_REQ_GLOBAL_RESUME = @as(u32, 2229323); pub const IOCTL_INTERNAL_USB_RECORD_FAILURE = @as(u32, 2228267); pub const IOCTL_INTERNAL_USB_GET_DEVICE_HANDLE_EX = @as(u32, 2229303); pub const IOCTL_INTERNAL_USB_GET_TT_DEVICE_HANDLE = @as(u32, 2229307); pub const IOCTL_INTERNAL_USB_GET_TOPOLOGY_ADDRESS = @as(u32, 2229311); pub const IOCTL_INTERNAL_USB_GET_DEVICE_CONFIG_INFO = @as(u32, 2229327); pub const IOCTL_INTERNAL_USB_REGISTER_COMPOSITE_DEVICE = @as(u32, 4784131); pub const IOCTL_INTERNAL_USB_UNREGISTER_COMPOSITE_DEVICE = @as(u32, 4784135); pub const IOCTL_INTERNAL_USB_REQUEST_REMOTE_WAKE_NOTIFICATION = @as(u32, 4784139); pub const IOCTL_INTERNAL_USB_FAIL_GET_STATUS_FROM_DEVICE = @as(u32, 2229347); pub const IOCTL_USB_HCD_GET_STATS_1 = @as(u32, 2229244); pub const IOCTL_USB_HCD_GET_STATS_2 = @as(u32, 2229288); pub const IOCTL_USB_HCD_DISABLE_PORT = @as(u32, 2229296); pub const IOCTL_USB_HCD_ENABLE_PORT = @as(u32, 2229300); pub const IOCTL_USB_DIAGNOSTIC_MODE_ON = @as(u32, 2229248); pub const IOCTL_USB_DIAGNOSTIC_MODE_OFF = @as(u32, 2229252); pub const IOCTL_USB_GET_ROOT_HUB_NAME = @as(u32, 2229256); pub const IOCTL_GET_HCD_DRIVERKEY_NAME = @as(u32, 2229284); pub const IOCTL_USB_GET_NODE_INFORMATION = @as(u32, 2229256); pub const IOCTL_USB_GET_NODE_CONNECTION_INFORMATION = @as(u32, 2229260); pub const IOCTL_USB_GET_DESCRIPTOR_FROM_NODE_CONNECTION = @as(u32, 2229264); pub const IOCTL_USB_GET_NODE_CONNECTION_NAME = @as(u32, 2229268); pub const IOCTL_USB_DIAG_IGNORE_HUBS_ON = @as(u32, 2229272); pub const IOCTL_USB_DIAG_IGNORE_HUBS_OFF = @as(u32, 2229276); pub const IOCTL_USB_GET_NODE_CONNECTION_DRIVERKEY_NAME = @as(u32, 2229280); pub const IOCTL_USB_GET_HUB_CAPABILITIES = @as(u32, 2229308); pub const IOCTL_USB_HUB_CYCLE_PORT = @as(u32, 2229316); pub const IOCTL_USB_GET_NODE_CONNECTION_ATTRIBUTES = @as(u32, 2229312); pub const IOCTL_USB_GET_NODE_CONNECTION_INFORMATION_EX = @as(u32, 2229320); pub const IOCTL_USB_RESET_HUB = @as(u32, 2229324); pub const IOCTL_USB_GET_HUB_CAPABILITIES_EX = @as(u32, 2229328); pub const IOCTL_USB_GET_HUB_INFORMATION_EX = @as(u32, 2229332); pub const IOCTL_USB_GET_PORT_CONNECTOR_PROPERTIES = @as(u32, 2229336); pub const IOCTL_USB_GET_NODE_CONNECTION_INFORMATION_EX_V2 = @as(u32, 2229340); pub const IOCTL_USB_GET_TRANSPORT_CHARACTERISTICS = @as(u32, 2229348); pub const IOCTL_USB_REGISTER_FOR_TRANSPORT_CHARACTERISTICS_CHANGE = @as(u32, 2229352); pub const IOCTL_USB_NOTIFY_ON_TRANSPORT_CHARACTERISTICS_CHANGE = @as(u32, 2229356); pub const IOCTL_USB_UNREGISTER_FOR_TRANSPORT_CHARACTERISTICS_CHANGE = @as(u32, 2229360); pub const IOCTL_USB_START_TRACKING_FOR_TIME_SYNC = @as(u32, 2229364); pub const IOCTL_USB_GET_FRAME_NUMBER_AND_QPC_FOR_TIME_SYNC = @as(u32, 2229368); pub const IOCTL_USB_STOP_TRACKING_FOR_TIME_SYNC = @as(u32, 2229372); pub const IOCTL_USB_GET_DEVICE_CHARACTERISTICS = @as(u32, 2229376); pub const WMI_USB_DRIVER_INFORMATION = @as(u32, 0); pub const WMI_USB_DRIVER_NOTIFICATION = @as(u32, 1); pub const WMI_USB_POWER_DEVICE_ENABLE = @as(u32, 2); pub const WMI_USB_HUB_NODE_INFORMATION = @as(u32, 4); pub const WMI_USB_PERFORMANCE_INFORMATION = @as(u32, 1); pub const WMI_USB_DEVICE_NODE_INFORMATION = @as(u32, 2); pub const USB_TRANSPORT_CHARACTERISTICS_VERSION_1 = @as(u32, 1); pub const USB_TRANSPORT_CHARACTERISTICS_LATENCY_AVAILABLE = @as(u32, 1); pub const USB_TRANSPORT_CHARACTERISTICS_BANDWIDTH_AVAILABLE = @as(u32, 2); pub const USB_REGISTER_FOR_TRANSPORT_LATENCY_CHANGE = @as(u32, 1); pub const USB_REGISTER_FOR_TRANSPORT_BANDWIDTH_CHANGE = @as(u32, 2); pub const USB_DEVICE_CHARACTERISTICS_VERSION_1 = @as(u32, 1); pub const USB_DEVICE_CHARACTERISTICS_MAXIMUM_PATH_DELAYS_AVAILABLE = @as(u32, 1); pub const MAX_NUM_PIPES = @as(u32, 8); pub const BULKIN_FLAG = @as(u32, 128); pub const FILE_DEVICE_USB_SCAN = @as(u32, 32768); pub const IOCTL_INDEX = @as(u32, 2048); pub const IOCTL_GET_VERSION = @as(u32, 2147491840); pub const IOCTL_CANCEL_IO = @as(u32, 2147491844); pub const IOCTL_WAIT_ON_DEVICE_EVENT = @as(u32, 2147491848); pub const IOCTL_READ_REGISTERS = @as(u32, 2147491852); pub const IOCTL_WRITE_REGISTERS = @as(u32, 2147491856); pub const IOCTL_GET_CHANNEL_ALIGN_RQST = @as(u32, 2147491860); pub const IOCTL_GET_DEVICE_DESCRIPTOR = @as(u32, 2147491864); pub const IOCTL_RESET_PIPE = @as(u32, 2147491868); pub const IOCTL_GET_USB_DESCRIPTOR = @as(u32, 2147491872); pub const IOCTL_SEND_USB_REQUEST = @as(u32, 2147491876); pub const IOCTL_GET_PIPE_CONFIGURATION = @as(u32, 2147491880); pub const IOCTL_SET_TIMEOUT = @as(u32, 2147491884); pub const IOCTL_ABORT_PIPE = @as(u32, 2147491844); pub const WinUSB_TestGuid = Guid.initString("da812bff-12c3-46a2-8e2b-dbd3b7834c43"); //-------------------------------------------------------------------------------- // Section: Types (150) //-------------------------------------------------------------------------------- pub const USB_DEVICE_SPEED = enum(i32) { LowSpeed = 0, FullSpeed = 1, HighSpeed = 2, SuperSpeed = 3, }; pub const UsbLowSpeed = USB_DEVICE_SPEED.LowSpeed; pub const UsbFullSpeed = USB_DEVICE_SPEED.FullSpeed; pub const UsbHighSpeed = USB_DEVICE_SPEED.HighSpeed; pub const UsbSuperSpeed = USB_DEVICE_SPEED.SuperSpeed; pub const USB_DEVICE_TYPE = enum(i32) { @"11Device" = 0, @"20Device" = 1, }; pub const Usb11Device = USB_DEVICE_TYPE.@"11Device"; pub const Usb20Device = USB_DEVICE_TYPE.@"20Device"; pub const BM_REQUEST_TYPE = extern union { pub const _BM = extern struct { _bitfield: u8, }; s: _BM, B: u8, }; pub const USB_DEFAULT_PIPE_SETUP_PACKET = extern struct { pub const _wIndex = extern union { Anonymous: extern struct { LowByte: u8, HiByte: u8, } align(1), W: u16 align(1), }; pub const _wValue = extern union { Anonymous: extern struct { LowByte: u8, HiByte: u8, } align(1), W: u16 align(1), }; bmRequestType: BM_REQUEST_TYPE align(1), bRequest: u8 align(1), wValue: _wValue align(1), wIndex: _wIndex align(1), wLength: u16 align(1), }; pub const USB_DEVICE_STATUS = extern union { AsUshort16: u16 align(1), Anonymous: extern struct { _bitfield: u16 align(1), } align(1), }; pub const USB_INTERFACE_STATUS = extern union { AsUshort16: u16 align(1), Anonymous: extern struct { _bitfield: u16 align(1), } align(1), }; pub const USB_ENDPOINT_STATUS = extern union { AsUshort16: u16 align(1), Anonymous: extern struct { _bitfield: u16 align(1), } align(1), }; pub const USB_COMMON_DESCRIPTOR = extern struct { bLength: u8, bDescriptorType: u8, }; pub const USB_DEVICE_DESCRIPTOR = extern struct { bLength: u8 align(1), bDescriptorType: u8 align(1), bcdUSB: u16 align(1), bDeviceClass: u8 align(1), bDeviceSubClass: u8 align(1), bDeviceProtocol: u8 align(1), bMaxPacketSize0: u8 align(1), idVendor: u16 align(1), idProduct: u16 align(1), bcdDevice: u16 align(1), iManufacturer: u8 align(1), iProduct: u8 align(1), iSerialNumber: u8 align(1), bNumConfigurations: u8 align(1), }; pub const USB_DEVICE_QUALIFIER_DESCRIPTOR = extern struct { bLength: u8 align(1), bDescriptorType: u8 align(1), bcdUSB: u16 align(1), bDeviceClass: u8 align(1), bDeviceSubClass: u8 align(1), bDeviceProtocol: u8 align(1), bMaxPacketSize0: u8 align(1), bNumConfigurations: u8 align(1), bReserved: u8 align(1), }; pub const USB_BOS_DESCRIPTOR = extern struct { bLength: u8 align(1), bDescriptorType: u8 align(1), wTotalLength: u16 align(1), bNumDeviceCaps: u8 align(1), }; pub const USB_DEVICE_CAPABILITY_USB20_EXTENSION_DESCRIPTOR = extern struct { bLength: u8, bDescriptorType: u8, bDevCapabilityType: u8, bmAttributes: extern union { AsUlong: u32 align(1), Anonymous: extern struct { _bitfield: u32 align(1), } align(1), }, }; pub const USB_DEVICE_CAPABILITY_POWER_DELIVERY_DESCRIPTOR = extern struct { bLength: u8 align(1), bDescriptorType: u8 align(1), bDevCapabilityType: u8 align(1), bReserved: u8 align(1), bmAttributes: extern union { AsUlong: u32 align(1), Anonymous: extern struct { _bitfield: u32 align(1), } align(1), } align(1), bmProviderPorts: u16 align(1), bmConsumerPorts: u16 align(1), bcdBCVersion: u16 align(1), bcdPDVersion: u16 align(1), bcdUSBTypeCVersion: u16 align(1), }; pub const USB_DEVICE_CAPABILITY_PD_CONSUMER_PORT_DESCRIPTOR = extern struct { bLength: u8 align(1), bDescriptorType: u8 align(1), bDevCapabilityType: u8 align(1), bReserved: u8 align(1), bmCapabilities: extern union { AsUshort: u16 align(1), Anonymous: extern struct { _bitfield: u16 align(1), } align(1), } align(1), wMinVoltage: u16 align(1), wMaxVoltage: u16 align(1), wReserved: u16 align(1), dwMaxOperatingPower: u32 align(1), dwMaxPeakPower: u32 align(1), dwMaxPeakPowerTime: u32 align(1), }; pub const USB_DEVICE_CAPABILITY_SUPERSPEED_USB_DESCRIPTOR = extern struct { bLength: u8 align(1), bDescriptorType: u8 align(1), bDevCapabilityType: u8 align(1), bmAttributes: u8 align(1), wSpeedsSupported: u16 align(1), bFunctionalitySupport: u8 align(1), bU1DevExitLat: u8 align(1), wU2DevExitLat: u16 align(1), }; pub const USB_DEVICE_CAPABILITY_SUPERSPEEDPLUS_SPEED = extern union { AsUlong32: u32 align(1), Anonymous: extern struct { _bitfield: u32 align(1), } align(1), }; pub const USB_DEVICE_CAPABILITY_SUPERSPEEDPLUS_USB_DESCRIPTOR = extern struct { bLength: u8 align(1), bDescriptorType: u8 align(1), bDevCapabilityType: u8 align(1), bReserved: u8 align(1), bmAttributes: extern union { AsUlong: u32 align(1), Anonymous: extern struct { _bitfield: u32 align(1), } align(1), } align(1), wFunctionalitySupport: extern union { AsUshort: u16 align(1), Anonymous: extern struct { _bitfield: u16 align(1), } align(1), } align(1), wReserved: u16 align(1), bmSublinkSpeedAttr: [1]USB_DEVICE_CAPABILITY_SUPERSPEEDPLUS_SPEED align(1), }; pub const USB_DEVICE_CAPABILITY_CONTAINER_ID_DESCRIPTOR = extern struct { bLength: u8, bDescriptorType: u8, bDevCapabilityType: u8, bReserved: u8, ContainerID: [16]u8, }; pub const USB_DEVICE_CAPABILITY_PLATFORM_DESCRIPTOR = extern struct { bLength: u8 align(1), bDescriptorType: u8 align(1), bDevCapabilityType: u8 align(1), bReserved: u8 align(1), PlatformCapabilityUuid: Guid align(1), CapabililityData: [1]u8 align(1), }; pub const USB_DEVICE_CAPABILITY_BILLBOARD_DESCRIPTOR = extern struct { bLength: u8 align(1), bDescriptorType: u8 align(1), bDevCapabilityType: u8 align(1), iAddtionalInfoURL: u8 align(1), bNumberOfAlternateModes: u8 align(1), bPreferredAlternateMode: u8 align(1), VconnPower: extern union { AsUshort: u16 align(1), Anonymous: extern struct { _bitfield: u16 align(1), } align(1), } align(1), bmConfigured: [32]u8 align(1), bReserved: u32 align(1), AlternateMode: [1]extern struct { wSVID: u16 align(1), bAlternateMode: u8 align(1), iAlternateModeSetting: u8 align(1), } align(1), }; pub const USB_DEVICE_CAPABILITY_FIRMWARE_STATUS_DESCRIPTOR = extern struct { bLength: u8, bDescriptorType: u8, bDevCapabilityType: u8, bcdDescriptorVersion: u8, bmAttributes: extern union { AsUlong: u32 align(1), Anonymous: extern struct { _bitfield: u32 align(1), } align(1), }, }; pub const USB_DEVICE_CAPABILITY_DESCRIPTOR = extern struct { bLength: u8, bDescriptorType: u8, bDevCapabilityType: u8, }; pub const USB_CONFIGURATION_DESCRIPTOR = extern struct { bLength: u8 align(1), bDescriptorType: u8 align(1), wTotalLength: u16 align(1), bNumInterfaces: u8 align(1), bConfigurationValue: u8 align(1), iConfiguration: u8 align(1), bmAttributes: u8 align(1), MaxPower: u8 align(1), }; pub const USB_INTERFACE_ASSOCIATION_DESCRIPTOR = extern struct { bLength: u8, bDescriptorType: u8, bFirstInterface: u8, bInterfaceCount: u8, bFunctionClass: u8, bFunctionSubClass: u8, bFunctionProtocol: u8, iFunction: u8, }; pub const USB_INTERFACE_DESCRIPTOR = extern struct { bLength: u8, bDescriptorType: u8, bInterfaceNumber: u8, bAlternateSetting: u8, bNumEndpoints: u8, bInterfaceClass: u8, bInterfaceSubClass: u8, bInterfaceProtocol: u8, iInterface: u8, }; pub const USB_ENDPOINT_DESCRIPTOR = extern struct { bLength: u8 align(1), bDescriptorType: u8 align(1), bEndpointAddress: u8 align(1), bmAttributes: u8 align(1), wMaxPacketSize: u16 align(1), bInterval: u8 align(1), }; pub const USB_HIGH_SPEED_MAXPACKET = extern union { pub const _MP = extern struct { _bitfield: u16 align(1), }; us: u16 align(1), }; pub const USB_STRING_DESCRIPTOR = extern struct { bLength: u8 align(1), bDescriptorType: u8 align(1), bString: [1]u16 align(1), }; pub const USB_SUPERSPEED_ENDPOINT_COMPANION_DESCRIPTOR = extern struct { bLength: u8 align(1), bDescriptorType: u8 align(1), bMaxBurst: u8 align(1), bmAttributes: extern union { AsUchar: u8, Bulk: extern struct { _bitfield: u8, }, Isochronous: extern struct { _bitfield: u8, }, } align(1), wBytesPerInterval: u16 align(1), }; pub const USB_SUPERSPEEDPLUS_ISOCH_ENDPOINT_COMPANION_DESCRIPTOR = extern struct { bLength: u8 align(1), bDescriptorType: u8 align(1), wReserved: u16 align(1), dwBytesPerInterval: u32 align(1), }; pub const USB_HUB_DESCRIPTOR = extern struct { bDescriptorLength: u8 align(1), bDescriptorType: u8 align(1), bNumberOfPorts: u8 align(1), wHubCharacteristics: u16 align(1), bPowerOnToPowerGood: u8 align(1), bHubControlCurrent: u8 align(1), bRemoveAndPowerMask: [64]u8 align(1), }; pub const USB_30_HUB_DESCRIPTOR = extern struct { bLength: u8 align(1), bDescriptorType: u8 align(1), bNumberOfPorts: u8 align(1), wHubCharacteristics: u16 align(1), bPowerOnToPowerGood: u8 align(1), bHubControlCurrent: u8 align(1), bHubHdrDecLat: u8 align(1), wHubDelay: u16 align(1), DeviceRemovable: u16 align(1), }; pub const USB_HUB_STATUS = extern union { AsUshort16: u16 align(1), Anonymous: extern struct { _bitfield: u16 align(1), } align(1), }; pub const USB_HUB_CHANGE = extern union { AsUshort16: u16 align(1), Anonymous: extern struct { _bitfield: u16 align(1), } align(1), }; pub const USB_HUB_STATUS_AND_CHANGE = extern union { AsUlong32: u32 align(1), Anonymous: extern struct { HubStatus: USB_HUB_STATUS, HubChange: USB_HUB_CHANGE, } align(1), }; pub const USB_20_PORT_STATUS = extern union { AsUshort16: u16 align(1), Anonymous: extern struct { _bitfield: u16 align(1), } align(1), }; pub const USB_20_PORT_CHANGE = extern union { AsUshort16: u16 align(1), Anonymous: extern struct { _bitfield: u16 align(1), } align(1), }; pub const USB_30_PORT_STATUS = extern union { AsUshort16: u16 align(1), Anonymous: extern struct { _bitfield: u16 align(1), } align(1), }; pub const USB_30_PORT_CHANGE = extern union { AsUshort16: u16 align(1), Anonymous: extern struct { _bitfield: u16 align(1), } align(1), }; pub const USB_PORT_STATUS = extern union { AsUshort16: u16 align(1), Usb20PortStatus: USB_20_PORT_STATUS align(1), Usb30PortStatus: USB_30_PORT_STATUS align(1), }; pub const USB_PORT_CHANGE = extern union { AsUshort16: u16 align(1), Usb20PortChange: USB_20_PORT_CHANGE align(1), Usb30PortChange: USB_30_PORT_CHANGE align(1), }; pub const USB_PORT_EXT_STATUS = extern union { AsUlong32: u32 align(1), Anonymous: extern struct { _bitfield: u32 align(1), } align(1), }; pub const USB_PORT_STATUS_AND_CHANGE = extern union { AsUlong32: u32 align(1), Anonymous: extern struct { PortStatus: USB_PORT_STATUS, PortChange: USB_PORT_CHANGE, } align(1), }; pub const USB_PORT_EXT_STATUS_AND_CHANGE = extern union { AsUlong64: u64 align(1), Anonymous: extern struct { PortStatusChange: USB_PORT_STATUS_AND_CHANGE, PortExtStatus: USB_PORT_EXT_STATUS, } align(1), }; pub const USB_HUB_30_PORT_REMOTE_WAKE_MASK = extern union { AsUchar8: u8, Anonymous: extern struct { _bitfield: u8, }, }; pub const USB_FUNCTION_SUSPEND_OPTIONS = extern union { AsUchar: u8, Anonymous: extern struct { _bitfield: u8, }, }; pub const USB_CONFIGURATION_POWER_DESCRIPTOR = extern struct { bLength: u8 align(1), bDescriptorType: u8 align(1), SelfPowerConsumedD0: [3]u8 align(1), bPowerSummaryId: u8 align(1), bBusPowerSavingD1: u8 align(1), bSelfPowerSavingD1: u8 align(1), bBusPowerSavingD2: u8 align(1), bSelfPowerSavingD2: u8 align(1), bBusPowerSavingD3: u8 align(1), bSelfPowerSavingD3: u8 align(1), TransitionTimeFromD1: u16 align(1), TransitionTimeFromD2: u16 align(1), TransitionTimeFromD3: u16 align(1), }; pub const USB_INTERFACE_POWER_DESCRIPTOR = extern struct { bLength: u8 align(1), bDescriptorType: u8 align(1), bmCapabilitiesFlags: u8 align(1), bBusPowerSavingD1: u8 align(1), bSelfPowerSavingD1: u8 align(1), bBusPowerSavingD2: u8 align(1), bSelfPowerSavingD2: u8 align(1), bBusPowerSavingD3: u8 align(1), bSelfPowerSavingD3: u8 align(1), TransitionTimeFromD1: u16 align(1), TransitionTimeFromD2: u16 align(1), TransitionTimeFromD3: u16 align(1), }; pub const USB_CONTROLLER_FLAVOR = enum(i32) { USB_HcGeneric = 0, OHCI_Generic = 100, OHCI_Hydra = 101, OHCI_NEC = 102, UHCI_Generic = 200, UHCI_Piix4 = 201, UHCI_Piix3 = 202, UHCI_Ich2 = 203, UHCI_Reserved204 = 204, UHCI_Ich1 = 205, UHCI_Ich3m = 206, UHCI_Ich4 = 207, UHCI_Ich5 = 208, UHCI_Ich6 = 209, UHCI_Intel = 249, UHCI_VIA = 250, UHCI_VIA_x01 = 251, UHCI_VIA_x02 = 252, UHCI_VIA_x03 = 253, UHCI_VIA_x04 = 254, UHCI_VIA_x0E_FIFO = 264, EHCI_Generic = 1000, EHCI_NEC = 2000, EHCI_Lucent = 3000, EHCI_NVIDIA_Tegra2 = 4000, EHCI_NVIDIA_Tegra3 = 4001, EHCI_Intel_Medfield = 5001, }; pub const USB_HcGeneric = USB_CONTROLLER_FLAVOR.USB_HcGeneric; pub const OHCI_Generic = USB_CONTROLLER_FLAVOR.OHCI_Generic; pub const OHCI_Hydra = USB_CONTROLLER_FLAVOR.OHCI_Hydra; pub const OHCI_NEC = USB_CONTROLLER_FLAVOR.OHCI_NEC; pub const UHCI_Generic = USB_CONTROLLER_FLAVOR.UHCI_Generic; pub const UHCI_Piix4 = USB_CONTROLLER_FLAVOR.UHCI_Piix4; pub const UHCI_Piix3 = USB_CONTROLLER_FLAVOR.UHCI_Piix3; pub const UHCI_Ich2 = USB_CONTROLLER_FLAVOR.UHCI_Ich2; pub const UHCI_Reserved204 = USB_CONTROLLER_FLAVOR.UHCI_Reserved204; pub const UHCI_Ich1 = USB_CONTROLLER_FLAVOR.UHCI_Ich1; pub const UHCI_Ich3m = USB_CONTROLLER_FLAVOR.UHCI_Ich3m; pub const UHCI_Ich4 = USB_CONTROLLER_FLAVOR.UHCI_Ich4; pub const UHCI_Ich5 = USB_CONTROLLER_FLAVOR.UHCI_Ich5; pub const UHCI_Ich6 = USB_CONTROLLER_FLAVOR.UHCI_Ich6; pub const UHCI_Intel = USB_CONTROLLER_FLAVOR.UHCI_Intel; pub const UHCI_VIA = USB_CONTROLLER_FLAVOR.UHCI_VIA; pub const UHCI_VIA_x01 = USB_CONTROLLER_FLAVOR.UHCI_VIA_x01; pub const UHCI_VIA_x02 = USB_CONTROLLER_FLAVOR.UHCI_VIA_x02; pub const UHCI_VIA_x03 = USB_CONTROLLER_FLAVOR.UHCI_VIA_x03; pub const UHCI_VIA_x04 = USB_CONTROLLER_FLAVOR.UHCI_VIA_x04; pub const UHCI_VIA_x0E_FIFO = USB_CONTROLLER_FLAVOR.UHCI_VIA_x0E_FIFO; pub const EHCI_Generic = USB_CONTROLLER_FLAVOR.EHCI_Generic; pub const EHCI_NEC = USB_CONTROLLER_FLAVOR.EHCI_NEC; pub const EHCI_Lucent = USB_CONTROLLER_FLAVOR.EHCI_Lucent; pub const EHCI_NVIDIA_Tegra2 = USB_CONTROLLER_FLAVOR.EHCI_NVIDIA_Tegra2; pub const EHCI_NVIDIA_Tegra3 = USB_CONTROLLER_FLAVOR.EHCI_NVIDIA_Tegra3; pub const EHCI_Intel_Medfield = USB_CONTROLLER_FLAVOR.EHCI_Intel_Medfield; pub const USBD_VERSION_INFORMATION = extern struct { USBDI_Version: u32, Supported_USB_Version: u32, }; pub const USBD_PIPE_TYPE = enum(i32) { Control = 0, Isochronous = 1, Bulk = 2, Interrupt = 3, }; pub const UsbdPipeTypeControl = USBD_PIPE_TYPE.Control; pub const UsbdPipeTypeIsochronous = USBD_PIPE_TYPE.Isochronous; pub const UsbdPipeTypeBulk = USBD_PIPE_TYPE.Bulk; pub const UsbdPipeTypeInterrupt = USBD_PIPE_TYPE.Interrupt; pub const USBD_DEVICE_INFORMATION = extern struct { OffsetNext: u32, UsbdDeviceHandle: ?*anyopaque, DeviceDescriptor: USB_DEVICE_DESCRIPTOR, }; pub const USBD_PIPE_INFORMATION = extern struct { MaximumPacketSize: u16, EndpointAddress: u8, Interval: u8, PipeType: USBD_PIPE_TYPE, PipeHandle: ?*anyopaque, MaximumTransferSize: u32, PipeFlags: u32, }; pub const USBD_ENDPOINT_OFFLOAD_MODE = enum(i32) { ModeNotSupported = 0, SoftwareAssisted = 1, HardwareAssisted = 2, }; pub const UsbdEndpointOffloadModeNotSupported = USBD_ENDPOINT_OFFLOAD_MODE.ModeNotSupported; pub const UsbdEndpointOffloadSoftwareAssisted = USBD_ENDPOINT_OFFLOAD_MODE.SoftwareAssisted; pub const UsbdEndpointOffloadHardwareAssisted = USBD_ENDPOINT_OFFLOAD_MODE.HardwareAssisted; pub const USBD_ENDPOINT_OFFLOAD_INFORMATION = extern struct { Size: u32 align(1), EndpointAddress: u16 align(1), ResourceId: u32 align(1), Mode: USBD_ENDPOINT_OFFLOAD_MODE align(1), _bitfield1: u32 align(1), _bitfield2: u32 align(1), TransferSegmentLA: LARGE_INTEGER align(1), TransferSegmentVA: ?*anyopaque align(1), TransferRingSize: usize align(1), TransferRingInitialCycleBit: u32 align(1), MessageNumber: u32 align(1), EventRingSegmentLA: LARGE_INTEGER align(1), EventRingSegmentVA: ?*anyopaque align(1), EventRingSize: usize align(1), EventRingInitialCycleBit: u32 align(1), }; pub const USBD_INTERFACE_INFORMATION = extern struct { Length: u16, InterfaceNumber: u8, AlternateSetting: u8, Class: u8, SubClass: u8, Protocol: u8, Reserved: u8, InterfaceHandle: ?*anyopaque, NumberOfPipes: u32, Pipes: [1]USBD_PIPE_INFORMATION, }; pub const _URB_HCD_AREA = extern struct { Reserved8: [8]?*anyopaque, }; pub const _URB_HEADER = extern struct { Length: u16, Function: u16, Status: i32, UsbdDeviceHandle: ?*anyopaque, UsbdFlags: u32, }; pub const _URB_SELECT_INTERFACE = extern struct { Hdr: _URB_HEADER, ConfigurationHandle: ?*anyopaque, Interface: USBD_INTERFACE_INFORMATION, }; pub const _URB_SELECT_CONFIGURATION = extern struct { Hdr: _URB_HEADER, ConfigurationDescriptor: ?*USB_CONFIGURATION_DESCRIPTOR, ConfigurationHandle: ?*anyopaque, Interface: USBD_INTERFACE_INFORMATION, }; pub const _URB_PIPE_REQUEST = extern struct { Hdr: _URB_HEADER, PipeHandle: ?*anyopaque, Reserved: u32, }; pub const _URB_FRAME_LENGTH_CONTROL = extern struct { Hdr: _URB_HEADER, }; pub const _URB_GET_FRAME_LENGTH = extern struct { Hdr: _URB_HEADER, FrameLength: u32, FrameNumber: u32, }; pub const _URB_SET_FRAME_LENGTH = extern struct { Hdr: _URB_HEADER, FrameLengthDelta: i32, }; pub const _URB_GET_CURRENT_FRAME_NUMBER = extern struct { Hdr: _URB_HEADER, FrameNumber: u32, }; pub const _URB_CONTROL_DESCRIPTOR_REQUEST = extern struct { Hdr: _URB_HEADER, Reserved: ?*anyopaque, Reserved0: u32, TransferBufferLength: u32, TransferBuffer: ?*anyopaque, TransferBufferMDL: ?*anyopaque, UrbLink: ?*URB, hca: _URB_HCD_AREA, Reserved1: u16, Index: u8, DescriptorType: u8, LanguageId: u16, Reserved2: u16, }; pub const _URB_CONTROL_GET_STATUS_REQUEST = extern struct { Hdr: _URB_HEADER, Reserved: ?*anyopaque, Reserved0: u32, TransferBufferLength: u32, TransferBuffer: ?*anyopaque, TransferBufferMDL: ?*anyopaque, UrbLink: ?*URB, hca: _URB_HCD_AREA, Reserved1: [4]u8, Index: u16, Reserved2: u16, }; pub const _URB_CONTROL_FEATURE_REQUEST = extern struct { Hdr: _URB_HEADER, Reserved: ?*anyopaque, Reserved2: u32, Reserved3: u32, Reserved4: ?*anyopaque, Reserved5: ?*anyopaque, UrbLink: ?*URB, hca: _URB_HCD_AREA, Reserved0: u16, FeatureSelector: u16, Index: u16, Reserved1: u16, }; pub const _URB_CONTROL_VENDOR_OR_CLASS_REQUEST = extern struct { Hdr: _URB_HEADER, Reserved: ?*anyopaque, TransferFlags: u32, TransferBufferLength: u32, TransferBuffer: ?*anyopaque, TransferBufferMDL: ?*anyopaque, UrbLink: ?*URB, hca: _URB_HCD_AREA, RequestTypeReservedBits: u8, Request: u8, Value: u16, Index: u16, Reserved1: u16, }; pub const _URB_CONTROL_GET_INTERFACE_REQUEST = extern struct { Hdr: _URB_HEADER, Reserved: ?*anyopaque, Reserved0: u32, TransferBufferLength: u32, TransferBuffer: ?*anyopaque, TransferBufferMDL: ?*anyopaque, UrbLink: ?*URB, hca: _URB_HCD_AREA, Reserved1: [4]u8, Interface: u16, Reserved2: u16, }; pub const _URB_CONTROL_GET_CONFIGURATION_REQUEST = extern struct { Hdr: _URB_HEADER, Reserved: ?*anyopaque, Reserved0: u32, TransferBufferLength: u32, TransferBuffer: ?*anyopaque, TransferBufferMDL: ?*anyopaque, UrbLink: ?*URB, hca: _URB_HCD_AREA, Reserved1: [8]u8, }; pub const OS_STRING = extern struct { bLength: u8, bDescriptorType: u8, MicrosoftString: [7]u16, bVendorCode: u8, Anonymous: extern union { bPad: u8, bFlags: u8, }, }; pub const _URB_OS_FEATURE_DESCRIPTOR_REQUEST = extern struct { Hdr: _URB_HEADER, Reserved: ?*anyopaque, Reserved0: u32, TransferBufferLength: u32, TransferBuffer: ?*anyopaque, TransferBufferMDL: ?*anyopaque, UrbLink: ?*URB, hca: _URB_HCD_AREA, _bitfield: u8, Reserved2: u8, InterfaceNumber: u8, MS_PageIndex: u8, MS_FeatureDescriptorIndex: u16, Reserved3: u16, }; pub const _URB_CONTROL_TRANSFER = extern struct { Hdr: _URB_HEADER, PipeHandle: ?*anyopaque, TransferFlags: u32, TransferBufferLength: u32, TransferBuffer: ?*anyopaque, TransferBufferMDL: ?*anyopaque, UrbLink: ?*URB, hca: _URB_HCD_AREA, SetupPacket: [8]u8, }; pub const _URB_CONTROL_TRANSFER_EX = extern struct { Hdr: _URB_HEADER, PipeHandle: ?*anyopaque, TransferFlags: u32, TransferBufferLength: u32, TransferBuffer: ?*anyopaque, TransferBufferMDL: ?*anyopaque, Timeout: u32, hca: _URB_HCD_AREA, SetupPacket: [8]u8, }; pub const _URB_BULK_OR_INTERRUPT_TRANSFER = extern struct { Hdr: _URB_HEADER, PipeHandle: ?*anyopaque, TransferFlags: u32, TransferBufferLength: u32, TransferBuffer: ?*anyopaque, TransferBufferMDL: ?*anyopaque, UrbLink: ?*URB, hca: _URB_HCD_AREA, }; pub const USBD_ISO_PACKET_DESCRIPTOR = extern struct { Offset: u32, Length: u32, Status: i32, }; pub const _URB_ISOCH_TRANSFER = extern struct { Hdr: _URB_HEADER, PipeHandle: ?*anyopaque, TransferFlags: u32, TransferBufferLength: u32, TransferBuffer: ?*anyopaque, TransferBufferMDL: ?*anyopaque, UrbLink: ?*URB, hca: _URB_HCD_AREA, StartFrame: u32, NumberOfPackets: u32, ErrorCount: u32, IsoPacket: [1]USBD_ISO_PACKET_DESCRIPTOR, }; pub const USBD_STREAM_INFORMATION = extern struct { PipeHandle: ?*anyopaque, StreamID: u32, MaximumTransferSize: u32, PipeFlags: u32, }; pub const _URB_OPEN_STATIC_STREAMS = extern struct { Hdr: _URB_HEADER, PipeHandle: ?*anyopaque, NumberOfStreams: u32, StreamInfoVersion: u16, StreamInfoSize: u16, Streams: ?*USBD_STREAM_INFORMATION, }; pub const _URB_GET_ISOCH_PIPE_TRANSFER_PATH_DELAYS = extern struct { Hdr: _URB_HEADER, PipeHandle: ?*anyopaque, MaximumSendPathDelayInMilliSeconds: u32, MaximumCompletionPathDelayInMilliSeconds: u32, }; pub const URB = extern struct { Anonymous: extern union { UrbHeader: _URB_HEADER, UrbSelectInterface: _URB_SELECT_INTERFACE, UrbSelectConfiguration: _URB_SELECT_CONFIGURATION, UrbPipeRequest: _URB_PIPE_REQUEST, UrbFrameLengthControl: _URB_FRAME_LENGTH_CONTROL, UrbGetFrameLength: _URB_GET_FRAME_LENGTH, UrbSetFrameLength: _URB_SET_FRAME_LENGTH, UrbGetCurrentFrameNumber: _URB_GET_CURRENT_FRAME_NUMBER, UrbControlTransfer: _URB_CONTROL_TRANSFER, UrbControlTransferEx: _URB_CONTROL_TRANSFER_EX, UrbBulkOrInterruptTransfer: _URB_BULK_OR_INTERRUPT_TRANSFER, UrbIsochronousTransfer: _URB_ISOCH_TRANSFER, UrbControlDescriptorRequest: _URB_CONTROL_DESCRIPTOR_REQUEST, UrbControlGetStatusRequest: _URB_CONTROL_GET_STATUS_REQUEST, UrbControlFeatureRequest: _URB_CONTROL_FEATURE_REQUEST, UrbControlVendorClassRequest: _URB_CONTROL_VENDOR_OR_CLASS_REQUEST, UrbControlGetInterfaceRequest: _URB_CONTROL_GET_INTERFACE_REQUEST, UrbControlGetConfigurationRequest: _URB_CONTROL_GET_CONFIGURATION_REQUEST, UrbOSFeatureDescriptorRequest: _URB_OS_FEATURE_DESCRIPTOR_REQUEST, UrbOpenStaticStreams: _URB_OPEN_STATIC_STREAMS, UrbGetIsochPipeTransferPathDelays: _URB_GET_ISOCH_PIPE_TRANSFER_PATH_DELAYS, }, }; pub const USB_IDLE_CALLBACK = switch (@import("builtin").zig_backend) { .stage1 => fn ( Context: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) void, else => *const fn ( Context: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) void, }; pub const USB_IDLE_CALLBACK_INFO = extern struct { IdleCallback: ?USB_IDLE_CALLBACK, IdleContext: ?*anyopaque, }; pub const USB_USER_ERROR_CODE = enum(i32) { Success = 0, NotSupported = 1, InvalidRequestCode = 2, FeatureDisabled = 3, InvalidHeaderParameter = 4, InvalidParameter = 5, MiniportError = 6, BufferTooSmall = 7, ErrorNotMapped = 8, DeviceNotStarted = 9, NoDeviceConnected = 10, }; pub const UsbUserSuccess = USB_USER_ERROR_CODE.Success; pub const UsbUserNotSupported = USB_USER_ERROR_CODE.NotSupported; pub const UsbUserInvalidRequestCode = USB_USER_ERROR_CODE.InvalidRequestCode; pub const UsbUserFeatureDisabled = USB_USER_ERROR_CODE.FeatureDisabled; pub const UsbUserInvalidHeaderParameter = USB_USER_ERROR_CODE.InvalidHeaderParameter; pub const UsbUserInvalidParameter = USB_USER_ERROR_CODE.InvalidParameter; pub const UsbUserMiniportError = USB_USER_ERROR_CODE.MiniportError; pub const UsbUserBufferTooSmall = USB_USER_ERROR_CODE.BufferTooSmall; pub const UsbUserErrorNotMapped = USB_USER_ERROR_CODE.ErrorNotMapped; pub const UsbUserDeviceNotStarted = USB_USER_ERROR_CODE.DeviceNotStarted; pub const UsbUserNoDeviceConnected = USB_USER_ERROR_CODE.NoDeviceConnected; pub const USBUSER_REQUEST_HEADER = extern struct { UsbUserRequest: u32 align(1), UsbUserStatusCode: USB_USER_ERROR_CODE align(1), RequestBufferLength: u32 align(1), ActualBufferLength: u32 align(1), }; pub const PACKET_PARAMETERS = extern struct { DeviceAddress: u8 align(1), EndpointAddress: u8 align(1), MaximumPacketSize: u16 align(1), Timeout: u32 align(1), Flags: u32 align(1), DataLength: u32 align(1), HubDeviceAddress: u16 align(1), PortTTNumber: u16 align(1), ErrorCount: u8 align(1), Pad: [3]u8 align(1), UsbdStatusCode: i32 align(1), Data: [4]u8 align(1), }; pub const USBUSER_SEND_ONE_PACKET = extern struct { Header: USBUSER_REQUEST_HEADER, PacketParameters: PACKET_PARAMETERS, }; pub const RAW_RESET_PORT_PARAMETERS = extern struct { PortNumber: u16 align(1), PortStatus: u16 align(1), }; pub const USBUSER_RAW_RESET_ROOT_PORT = extern struct { Header: USBUSER_REQUEST_HEADER, Parameters: RAW_RESET_PORT_PARAMETERS, }; pub const RAW_ROOTPORT_FEATURE = extern struct { PortNumber: u16 align(1), PortFeature: u16 align(1), PortStatus: u16 align(1), }; pub const USBUSER_ROOTPORT_FEATURE_REQUEST = extern struct { Header: USBUSER_REQUEST_HEADER, Parameters: RAW_ROOTPORT_FEATURE, }; pub const RAW_ROOTPORT_PARAMETERS = extern struct { PortNumber: u16 align(1), PortStatus: u16 align(1), }; pub const USBUSER_ROOTPORT_PARAMETERS = extern struct { Header: USBUSER_REQUEST_HEADER, Parameters: RAW_ROOTPORT_PARAMETERS, }; pub const USB_CONTROLLER_INFO_0 = extern struct { PciVendorId: u32 align(1), PciDeviceId: u32 align(1), PciRevision: u32 align(1), NumberOfRootPorts: u32 align(1), ControllerFlavor: USB_CONTROLLER_FLAVOR align(1), HcFeatureFlags: u32 align(1), }; pub const USBUSER_CONTROLLER_INFO_0 = extern struct { Header: USBUSER_REQUEST_HEADER, Info0: USB_CONTROLLER_INFO_0, }; pub const USB_UNICODE_NAME = extern struct { Length: u32 align(1), String: [1]u16 align(1), }; pub const USBUSER_CONTROLLER_UNICODE_NAME = extern struct { Header: USBUSER_REQUEST_HEADER, UnicodeName: USB_UNICODE_NAME, }; pub const USB_PASS_THRU_PARAMETERS = extern struct { FunctionGUID: Guid align(1), ParameterLength: u32 align(1), Parameters: [4]u8 align(1), }; pub const USBUSER_PASS_THRU_REQUEST = extern struct { Header: USBUSER_REQUEST_HEADER, PassThru: USB_PASS_THRU_PARAMETERS, }; pub const WDMUSB_POWER_STATE = enum(i32) { NotMapped = 0, SystemUnspecified = 100, SystemWorking = 101, SystemSleeping1 = 102, SystemSleeping2 = 103, SystemSleeping3 = 104, SystemHibernate = 105, SystemShutdown = 106, DeviceUnspecified = 200, DeviceD0 = 201, DeviceD1 = 202, DeviceD2 = 203, DeviceD3 = 204, }; pub const WdmUsbPowerNotMapped = WDMUSB_POWER_STATE.NotMapped; pub const WdmUsbPowerSystemUnspecified = WDMUSB_POWER_STATE.SystemUnspecified; pub const WdmUsbPowerSystemWorking = WDMUSB_POWER_STATE.SystemWorking; pub const WdmUsbPowerSystemSleeping1 = WDMUSB_POWER_STATE.SystemSleeping1; pub const WdmUsbPowerSystemSleeping2 = WDMUSB_POWER_STATE.SystemSleeping2; pub const WdmUsbPowerSystemSleeping3 = WDMUSB_POWER_STATE.SystemSleeping3; pub const WdmUsbPowerSystemHibernate = WDMUSB_POWER_STATE.SystemHibernate; pub const WdmUsbPowerSystemShutdown = WDMUSB_POWER_STATE.SystemShutdown; pub const WdmUsbPowerDeviceUnspecified = WDMUSB_POWER_STATE.DeviceUnspecified; pub const WdmUsbPowerDeviceD0 = WDMUSB_POWER_STATE.DeviceD0; pub const WdmUsbPowerDeviceD1 = WDMUSB_POWER_STATE.DeviceD1; pub const WdmUsbPowerDeviceD2 = WDMUSB_POWER_STATE.DeviceD2; pub const WdmUsbPowerDeviceD3 = WDMUSB_POWER_STATE.DeviceD3; pub const USB_POWER_INFO = extern struct { SystemState: WDMUSB_POWER_STATE align(1), HcDevicePowerState: WDMUSB_POWER_STATE align(1), HcDeviceWake: WDMUSB_POWER_STATE align(1), HcSystemWake: WDMUSB_POWER_STATE align(1), RhDevicePowerState: WDMUSB_POWER_STATE align(1), RhDeviceWake: WDMUSB_POWER_STATE align(1), RhSystemWake: WDMUSB_POWER_STATE align(1), LastSystemSleepState: WDMUSB_POWER_STATE align(1), CanWakeup: BOOLEAN align(1), IsPowered: BOOLEAN align(1), }; pub const USBUSER_POWER_INFO_REQUEST = extern struct { Header: USBUSER_REQUEST_HEADER, PowerInformation: USB_POWER_INFO, }; pub const USB_OPEN_RAW_DEVICE_PARAMETERS = extern struct { PortStatus: u16 align(1), MaxPacketEp0: u16 align(1), }; pub const USBUSER_OPEN_RAW_DEVICE = extern struct { Header: USBUSER_REQUEST_HEADER, Parameters: USB_OPEN_RAW_DEVICE_PARAMETERS, }; pub const USB_CLOSE_RAW_DEVICE_PARAMETERS = extern struct { xxx: u32 align(1), }; pub const USBUSER_CLOSE_RAW_DEVICE = extern struct { Header: USBUSER_REQUEST_HEADER, Parameters: USB_CLOSE_RAW_DEVICE_PARAMETERS, }; pub const USB_SEND_RAW_COMMAND_PARAMETERS = extern struct { Usb_bmRequest: u8 align(1), Usb_bRequest: u8 align(1), Usb_wVlaue: u16 align(1), Usb_wIndex: u16 align(1), Usb_wLength: u16 align(1), DeviceAddress: u16 align(1), MaximumPacketSize: u16 align(1), Timeout: u32 align(1), DataLength: u32 align(1), UsbdStatusCode: i32 align(1), Data: [4]u8 align(1), }; pub const USBUSER_SEND_RAW_COMMAND = extern struct { Header: USBUSER_REQUEST_HEADER, Parameters: USB_SEND_RAW_COMMAND_PARAMETERS, }; pub const USB_BANDWIDTH_INFO = extern struct { DeviceCount: u32 align(1), TotalBusBandwidth: u32 align(1), Total32secBandwidth: u32 align(1), AllocedBulkAndControl: u32 align(1), AllocedIso: u32 align(1), AllocedInterrupt_1ms: u32 align(1), AllocedInterrupt_2ms: u32 align(1), AllocedInterrupt_4ms: u32 align(1), AllocedInterrupt_8ms: u32 align(1), AllocedInterrupt_16ms: u32 align(1), AllocedInterrupt_32ms: u32 align(1), }; pub const USBUSER_BANDWIDTH_INFO_REQUEST = extern struct { Header: USBUSER_REQUEST_HEADER, BandwidthInformation: USB_BANDWIDTH_INFO, }; pub const USB_BUS_STATISTICS_0 = extern struct { DeviceCount: u32 align(1), CurrentSystemTime: LARGE_INTEGER align(1), CurrentUsbFrame: u32 align(1), BulkBytes: u32 align(1), IsoBytes: u32 align(1), InterruptBytes: u32 align(1), ControlDataBytes: u32 align(1), PciInterruptCount: u32 align(1), HardResetCount: u32 align(1), WorkerSignalCount: u32 align(1), CommonBufferBytes: u32 align(1), WorkerIdleTimeMs: u32 align(1), RootHubEnabled: BOOLEAN align(1), RootHubDevicePowerState: u8 align(1), Unused: u8 align(1), NameIndex: u8 align(1), }; pub const USBUSER_BUS_STATISTICS_0_REQUEST = extern struct { Header: USBUSER_REQUEST_HEADER, BusStatistics0: USB_BUS_STATISTICS_0, }; pub const USB_DRIVER_VERSION_PARAMETERS = extern struct { DriverTrackingCode: u32 align(1), USBDI_Version: u32 align(1), USBUSER_Version: u32 align(1), CheckedPortDriver: BOOLEAN align(1), CheckedMiniportDriver: BOOLEAN align(1), USB_Version: u16 align(1), }; pub const USBUSER_GET_DRIVER_VERSION = extern struct { Header: USBUSER_REQUEST_HEADER, Parameters: USB_DRIVER_VERSION_PARAMETERS, }; pub const USB_USB2HW_VERSION_PARAMETERS = extern struct { Usb2HwRevision: u8, }; pub const USBUSER_GET_USB2HW_VERSION = extern struct { Header: USBUSER_REQUEST_HEADER, Parameters: USB_USB2HW_VERSION_PARAMETERS, }; pub const USBUSER_REFRESH_HCT_REG = extern struct { Header: USBUSER_REQUEST_HEADER align(1), Flags: u32 align(1), }; pub const WINUSB_PIPE_INFORMATION = extern struct { PipeType: USBD_PIPE_TYPE, PipeId: u8, MaximumPacketSize: u16, Interval: u8, }; pub const WINUSB_PIPE_INFORMATION_EX = extern struct { PipeType: USBD_PIPE_TYPE, PipeId: u8, MaximumPacketSize: u16, Interval: u8, MaximumBytesPerInterval: u32, }; pub const WINUSB_SETUP_PACKET = extern struct { RequestType: u8 align(1), Request: u8 align(1), Value: u16 align(1), Index: u16 align(1), Length: u16 align(1), }; pub const USB_START_TRACKING_FOR_TIME_SYNC_INFORMATION = extern struct { TimeTrackingHandle: ?HANDLE align(1), IsStartupDelayTolerable: BOOLEAN align(1), }; pub const USB_STOP_TRACKING_FOR_TIME_SYNC_INFORMATION = extern struct { TimeTrackingHandle: ?HANDLE align(1), }; pub const USB_FRAME_NUMBER_AND_QPC_FOR_TIME_SYNC_INFORMATION = extern struct { TimeTrackingHandle: ?HANDLE align(1), InputFrameNumber: u32 align(1), InputMicroFrameNumber: u32 align(1), QueryPerformanceCounterAtInputFrameOrMicroFrame: LARGE_INTEGER align(1), QueryPerformanceCounterFrequency: LARGE_INTEGER align(1), PredictedAccuracyInMicroSeconds: u32 align(1), CurrentGenerationID: u32 align(1), CurrentQueryPerformanceCounter: LARGE_INTEGER align(1), CurrentHardwareFrameNumber: u32 align(1), CurrentHardwareMicroFrameNumber: u32 align(1), CurrentUSBFrameNumber: u32 align(1), }; pub const USBFN_EVENT = enum(i32) { Minimum = 0, Attach = 1, Reset = 2, Detach = 3, Suspend = 4, Resume = 5, SetupPacket = 6, Configured = 7, UnConfigured = 8, PortType = 9, BusTearDown = 10, SetInterface = 11, Maximum = 12, }; pub const UsbfnEventMinimum = USBFN_EVENT.Minimum; pub const UsbfnEventAttach = USBFN_EVENT.Attach; pub const UsbfnEventReset = USBFN_EVENT.Reset; pub const UsbfnEventDetach = USBFN_EVENT.Detach; pub const UsbfnEventSuspend = USBFN_EVENT.Suspend; pub const UsbfnEventResume = USBFN_EVENT.Resume; pub const UsbfnEventSetupPacket = USBFN_EVENT.SetupPacket; pub const UsbfnEventConfigured = USBFN_EVENT.Configured; pub const UsbfnEventUnConfigured = USBFN_EVENT.UnConfigured; pub const UsbfnEventPortType = USBFN_EVENT.PortType; pub const UsbfnEventBusTearDown = USBFN_EVENT.BusTearDown; pub const UsbfnEventSetInterface = USBFN_EVENT.SetInterface; pub const UsbfnEventMaximum = USBFN_EVENT.Maximum; pub const USBFN_PORT_TYPE = enum(i32) { UnknownPort = 0, StandardDownstreamPort = 1, ChargingDownstreamPort = 2, DedicatedChargingPort = 3, InvalidDedicatedChargingPort = 4, ProprietaryDedicatedChargingPort = 5, PortTypeMaximum = 6, }; pub const UsbfnUnknownPort = USBFN_PORT_TYPE.UnknownPort; pub const UsbfnStandardDownstreamPort = USBFN_PORT_TYPE.StandardDownstreamPort; pub const UsbfnChargingDownstreamPort = USBFN_PORT_TYPE.ChargingDownstreamPort; pub const UsbfnDedicatedChargingPort = USBFN_PORT_TYPE.DedicatedChargingPort; pub const UsbfnInvalidDedicatedChargingPort = USBFN_PORT_TYPE.InvalidDedicatedChargingPort; pub const UsbfnProprietaryDedicatedChargingPort = USBFN_PORT_TYPE.ProprietaryDedicatedChargingPort; pub const UsbfnPortTypeMaximum = USBFN_PORT_TYPE.PortTypeMaximum; pub const USBFN_BUS_SPEED = enum(i32) { Low = 0, Full = 1, High = 2, Super = 3, Maximum = 4, }; pub const UsbfnBusSpeedLow = USBFN_BUS_SPEED.Low; pub const UsbfnBusSpeedFull = USBFN_BUS_SPEED.Full; pub const UsbfnBusSpeedHigh = USBFN_BUS_SPEED.High; pub const UsbfnBusSpeedSuper = USBFN_BUS_SPEED.Super; pub const UsbfnBusSpeedMaximum = USBFN_BUS_SPEED.Maximum; pub const USBFN_DIRECTION = enum(i32) { Minimum = 0, In = 1, Out = 2, // Tx = 1, this enum value conflicts with In // Rx = 2, this enum value conflicts with Out Maximum = 3, }; pub const UsbfnDirectionMinimum = USBFN_DIRECTION.Minimum; pub const UsbfnDirectionIn = USBFN_DIRECTION.In; pub const UsbfnDirectionOut = USBFN_DIRECTION.Out; pub const UsbfnDirectionTx = USBFN_DIRECTION.In; pub const UsbfnDirectionRx = USBFN_DIRECTION.Out; pub const UsbfnDirectionMaximum = USBFN_DIRECTION.Maximum; pub const USBFN_DEVICE_STATE = enum(i32) { Minimum = 0, Attached = 1, Default = 2, Detached = 3, Addressed = 4, Configured = 5, Suspended = 6, StateMaximum = 7, }; pub const UsbfnDeviceStateMinimum = USBFN_DEVICE_STATE.Minimum; pub const UsbfnDeviceStateAttached = USBFN_DEVICE_STATE.Attached; pub const UsbfnDeviceStateDefault = USBFN_DEVICE_STATE.Default; pub const UsbfnDeviceStateDetached = USBFN_DEVICE_STATE.Detached; pub const UsbfnDeviceStateAddressed = USBFN_DEVICE_STATE.Addressed; pub const UsbfnDeviceStateConfigured = USBFN_DEVICE_STATE.Configured; pub const UsbfnDeviceStateSuspended = USBFN_DEVICE_STATE.Suspended; pub const UsbfnDeviceStateStateMaximum = USBFN_DEVICE_STATE.StateMaximum; pub const ALTERNATE_INTERFACE = extern struct { InterfaceNumber: u16, AlternateInterfaceNumber: u16, }; pub const USBFN_NOTIFICATION = extern struct { Event: USBFN_EVENT, u: extern union { BusSpeed: USBFN_BUS_SPEED, SetupPacket: USB_DEFAULT_PIPE_SETUP_PACKET, ConfigurationValue: u16, PortType: USBFN_PORT_TYPE, AlternateInterface: ALTERNATE_INTERFACE, }, }; pub const USBFN_PIPE_INFORMATION = extern struct { EpDesc: USB_ENDPOINT_DESCRIPTOR, PipeId: u32, }; pub const USBFN_CLASS_INTERFACE = extern struct { InterfaceNumber: u8, PipeCount: u8, PipeArr: [16]USBFN_PIPE_INFORMATION, }; pub const USBFN_CLASS_INFORMATION_PACKET = extern struct { FullSpeedClassInterface: USBFN_CLASS_INTERFACE, HighSpeedClassInterface: USBFN_CLASS_INTERFACE, InterfaceName: [40]u16, InterfaceGuid: [39]u16, HasInterfaceGuid: BOOLEAN, SuperSpeedClassInterface: USBFN_CLASS_INTERFACE, }; pub const USBFN_CLASS_INTERFACE_EX = extern struct { BaseInterfaceNumber: u8, InterfaceCount: u8, PipeCount: u8, PipeArr: [16]USBFN_PIPE_INFORMATION, }; pub const USBFN_CLASS_INFORMATION_PACKET_EX = extern struct { FullSpeedClassInterfaceEx: USBFN_CLASS_INTERFACE_EX, HighSpeedClassInterfaceEx: USBFN_CLASS_INTERFACE_EX, SuperSpeedClassInterfaceEx: USBFN_CLASS_INTERFACE_EX, InterfaceName: [40]u16, InterfaceGuid: [39]u16, HasInterfaceGuid: BOOLEAN, }; pub const USBFN_INTERFACE_INFO = extern struct { InterfaceNumber: u8, Speed: USBFN_BUS_SPEED, Size: u16, InterfaceDescriptorSet: [1]u8, }; pub const USBFN_USB_STRING = extern struct { StringIndex: u8, UsbString: [255]u16, }; pub const USBFN_BUS_CONFIGURATION_INFO = extern struct { ConfigurationName: [40]u16, IsCurrent: BOOLEAN, IsActive: BOOLEAN, }; pub const DRV_VERSION = extern struct { major: u32, minor: u32, internal: u32, }; pub const IO_BLOCK = extern struct { uOffset: u32, uLength: u32, pbyData: ?*u8, uIndex: u32, }; pub const IO_BLOCK_EX = extern struct { uOffset: u32, uLength: u32, pbyData: ?*u8, uIndex: u32, bRequest: u8, bmRequestType: u8, fTransferDirectionIn: u8, }; pub const CHANNEL_INFO = extern struct { EventChannelSize: u32, uReadDataAlignment: u32, uWriteDataAlignment: u32, }; pub const PIPE_TYPE = enum(i32) { EVENT_PIPE = 0, READ_DATA_PIPE = 1, WRITE_DATA_PIPE = 2, ALL_PIPE = 3, }; pub const EVENT_PIPE = PIPE_TYPE.EVENT_PIPE; pub const READ_DATA_PIPE = PIPE_TYPE.READ_DATA_PIPE; pub const WRITE_DATA_PIPE = PIPE_TYPE.WRITE_DATA_PIPE; pub const ALL_PIPE = PIPE_TYPE.ALL_PIPE; pub const USBSCAN_GET_DESCRIPTOR = extern struct { DescriptorType: u8, Index: u8, LanguageId: u16, }; pub const DEVICE_DESCRIPTOR = extern struct { usVendorId: u16, usProductId: u16, usBcdDevice: u16, usLanguageId: u16, }; pub const RAW_PIPE_TYPE = enum(i32) { CONTROL = 0, ISOCHRONOUS = 1, BULK = 2, INTERRUPT = 3, }; pub const USBSCAN_PIPE_CONTROL = RAW_PIPE_TYPE.CONTROL; pub const USBSCAN_PIPE_ISOCHRONOUS = RAW_PIPE_TYPE.ISOCHRONOUS; pub const USBSCAN_PIPE_BULK = RAW_PIPE_TYPE.BULK; pub const USBSCAN_PIPE_INTERRUPT = RAW_PIPE_TYPE.INTERRUPT; pub const USBSCAN_PIPE_INFORMATION = extern struct { MaximumPacketSize: u16, EndpointAddress: u8, Interval: u8, PipeType: RAW_PIPE_TYPE, }; pub const USBSCAN_PIPE_CONFIGURATION = extern struct { NumberOfPipes: u32, PipeInfo: [8]USBSCAN_PIPE_INFORMATION, }; pub const USBSCAN_TIMEOUT = extern struct { TimeoutRead: u32, TimeoutWrite: u32, TimeoutEvent: u32, }; //-------------------------------------------------------------------------------- // Section: Functions (34) //-------------------------------------------------------------------------------- pub extern "winusb" fn WinUsb_Initialize( DeviceHandle: ?HANDLE, InterfaceHandle: ?*?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) BOOL; pub extern "winusb" fn WinUsb_Free( InterfaceHandle: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) BOOL; pub extern "winusb" fn WinUsb_GetAssociatedInterface( InterfaceHandle: ?*anyopaque, AssociatedInterfaceIndex: u8, AssociatedInterfaceHandle: ?*?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) BOOL; pub extern "winusb" fn WinUsb_GetDescriptor( InterfaceHandle: ?*anyopaque, DescriptorType: u8, Index: u8, LanguageID: u16, // TODO: what to do with BytesParamIndex 5? Buffer: ?*u8, BufferLength: u32, LengthTransferred: ?*u32, ) callconv(@import("std").os.windows.WINAPI) BOOL; pub extern "winusb" fn WinUsb_QueryInterfaceSettings( InterfaceHandle: ?*anyopaque, AlternateInterfaceNumber: u8, UsbAltInterfaceDescriptor: ?*USB_INTERFACE_DESCRIPTOR, ) callconv(@import("std").os.windows.WINAPI) BOOL; pub extern "winusb" fn WinUsb_QueryDeviceInformation( InterfaceHandle: ?*anyopaque, InformationType: u32, BufferLength: ?*u32, // TODO: what to do with BytesParamIndex 2? Buffer: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) BOOL; pub extern "winusb" fn WinUsb_SetCurrentAlternateSetting( InterfaceHandle: ?*anyopaque, SettingNumber: u8, ) callconv(@import("std").os.windows.WINAPI) BOOL; pub extern "winusb" fn WinUsb_GetCurrentAlternateSetting( InterfaceHandle: ?*anyopaque, SettingNumber: ?*u8, ) callconv(@import("std").os.windows.WINAPI) BOOL; pub extern "winusb" fn WinUsb_QueryPipe( InterfaceHandle: ?*anyopaque, AlternateInterfaceNumber: u8, PipeIndex: u8, PipeInformation: ?*WINUSB_PIPE_INFORMATION, ) callconv(@import("std").os.windows.WINAPI) BOOL; pub extern "winusb" fn WinUsb_QueryPipeEx( InterfaceHandle: ?*anyopaque, AlternateSettingNumber: u8, PipeIndex: u8, PipeInformationEx: ?*WINUSB_PIPE_INFORMATION_EX, ) callconv(@import("std").os.windows.WINAPI) BOOL; pub extern "winusb" fn WinUsb_SetPipePolicy( InterfaceHandle: ?*anyopaque, PipeID: u8, PolicyType: u32, ValueLength: u32, // TODO: what to do with BytesParamIndex 3? Value: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) BOOL; pub extern "winusb" fn WinUsb_GetPipePolicy( InterfaceHandle: ?*anyopaque, PipeID: u8, PolicyType: u32, ValueLength: ?*u32, // TODO: what to do with BytesParamIndex 3? Value: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) BOOL; pub extern "winusb" fn WinUsb_ReadPipe( InterfaceHandle: ?*anyopaque, PipeID: u8, // TODO: what to do with BytesParamIndex 3? Buffer: ?*u8, BufferLength: u32, LengthTransferred: ?*u32, Overlapped: ?*OVERLAPPED, ) callconv(@import("std").os.windows.WINAPI) BOOL; pub extern "winusb" fn WinUsb_WritePipe( InterfaceHandle: ?*anyopaque, PipeID: u8, // TODO: what to do with BytesParamIndex 3? Buffer: ?*u8, BufferLength: u32, LengthTransferred: ?*u32, Overlapped: ?*OVERLAPPED, ) callconv(@import("std").os.windows.WINAPI) BOOL; pub extern "winusb" fn WinUsb_ControlTransfer( InterfaceHandle: ?*anyopaque, SetupPacket: WINUSB_SETUP_PACKET, // TODO: what to do with BytesParamIndex 3? Buffer: ?*u8, BufferLength: u32, LengthTransferred: ?*u32, Overlapped: ?*OVERLAPPED, ) callconv(@import("std").os.windows.WINAPI) BOOL; pub extern "winusb" fn WinUsb_ResetPipe( InterfaceHandle: ?*anyopaque, PipeID: u8, ) callconv(@import("std").os.windows.WINAPI) BOOL; pub extern "winusb" fn WinUsb_AbortPipe( InterfaceHandle: ?*anyopaque, PipeID: u8, ) callconv(@import("std").os.windows.WINAPI) BOOL; pub extern "winusb" fn WinUsb_FlushPipe( InterfaceHandle: ?*anyopaque, PipeID: u8, ) callconv(@import("std").os.windows.WINAPI) BOOL; pub extern "winusb" fn WinUsb_SetPowerPolicy( InterfaceHandle: ?*anyopaque, PolicyType: u32, ValueLength: u32, // TODO: what to do with BytesParamIndex 2? Value: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) BOOL; pub extern "winusb" fn WinUsb_GetPowerPolicy( InterfaceHandle: ?*anyopaque, PolicyType: u32, ValueLength: ?*u32, // TODO: what to do with BytesParamIndex 2? Value: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) BOOL; pub extern "winusb" fn WinUsb_GetOverlappedResult( InterfaceHandle: ?*anyopaque, lpOverlapped: ?*OVERLAPPED, lpNumberOfBytesTransferred: ?*u32, bWait: BOOL, ) callconv(@import("std").os.windows.WINAPI) BOOL; pub extern "winusb" fn WinUsb_ParseConfigurationDescriptor( ConfigurationDescriptor: ?*USB_CONFIGURATION_DESCRIPTOR, StartPosition: ?*anyopaque, InterfaceNumber: i32, AlternateSetting: i32, InterfaceClass: i32, InterfaceSubClass: i32, InterfaceProtocol: i32, ) callconv(@import("std").os.windows.WINAPI) ?*USB_INTERFACE_DESCRIPTOR; pub extern "winusb" fn WinUsb_ParseDescriptors( // TODO: what to do with BytesParamIndex 1? DescriptorBuffer: ?*anyopaque, TotalLength: u32, StartPosition: ?*anyopaque, DescriptorType: i32, ) callconv(@import("std").os.windows.WINAPI) ?*USB_COMMON_DESCRIPTOR; // TODO: this type is limited to platform 'windows8.1' pub extern "winusb" fn WinUsb_GetCurrentFrameNumber( InterfaceHandle: ?*anyopaque, CurrentFrameNumber: ?*u32, TimeStamp: ?*LARGE_INTEGER, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows8.1' pub extern "winusb" fn WinUsb_GetAdjustedFrameNumber( CurrentFrameNumber: ?*u32, TimeStamp: LARGE_INTEGER, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows8.1' pub extern "winusb" fn WinUsb_RegisterIsochBuffer( InterfaceHandle: ?*anyopaque, PipeID: u8, // TODO: what to do with BytesParamIndex 3? Buffer: ?*u8, BufferLength: u32, IsochBufferHandle: ?*?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows8.1' pub extern "winusb" fn WinUsb_UnregisterIsochBuffer( IsochBufferHandle: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows8.1' pub extern "winusb" fn WinUsb_WriteIsochPipe( BufferHandle: ?*anyopaque, Offset: u32, Length: u32, FrameNumber: ?*u32, Overlapped: ?*OVERLAPPED, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows8.1' pub extern "winusb" fn WinUsb_ReadIsochPipe( BufferHandle: ?*anyopaque, Offset: u32, Length: u32, FrameNumber: ?*u32, NumberOfPackets: u32, IsoPacketDescriptors: [*]USBD_ISO_PACKET_DESCRIPTOR, Overlapped: ?*OVERLAPPED, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows8.1' pub extern "winusb" fn WinUsb_WriteIsochPipeAsap( BufferHandle: ?*anyopaque, Offset: u32, Length: u32, ContinueStream: BOOL, Overlapped: ?*OVERLAPPED, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows8.1' pub extern "winusb" fn WinUsb_ReadIsochPipeAsap( BufferHandle: ?*anyopaque, Offset: u32, Length: u32, ContinueStream: BOOL, NumberOfPackets: u32, IsoPacketDescriptors: [*]USBD_ISO_PACKET_DESCRIPTOR, Overlapped: ?*OVERLAPPED, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows10.0.10240' pub extern "winusb" fn WinUsb_StartTrackingForTimeSync( InterfaceHandle: ?*anyopaque, StartTrackingInfo: ?*USB_START_TRACKING_FOR_TIME_SYNC_INFORMATION, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows10.0.10240' pub extern "winusb" fn WinUsb_GetCurrentFrameNumberAndQpc( InterfaceHandle: ?*anyopaque, FrameQpcInfo: ?*USB_FRAME_NUMBER_AND_QPC_FOR_TIME_SYNC_INFORMATION, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows10.0.10240' pub extern "winusb" fn WinUsb_StopTrackingForTimeSync( InterfaceHandle: ?*anyopaque, StopTrackingInfo: ?*USB_STOP_TRACKING_FOR_TIME_SYNC_INFORMATION, ) callconv(@import("std").os.windows.WINAPI) BOOL; //-------------------------------------------------------------------------------- // Section: Unicode Aliases (0) //-------------------------------------------------------------------------------- const thismodule = @This(); pub usingnamespace switch (@import("../zig.zig").unicode_mode) { .ansi => struct {}, .wide => struct {}, .unspecified => if (@import("builtin").is_test) struct {} else struct {}, }; //-------------------------------------------------------------------------------- // Section: Imports (6) //-------------------------------------------------------------------------------- const Guid = @import("../zig.zig").Guid; const BOOL = @import("../foundation.zig").BOOL; const BOOLEAN = @import("../foundation.zig").BOOLEAN; const HANDLE = @import("../foundation.zig").HANDLE; const LARGE_INTEGER = @import("../foundation.zig").LARGE_INTEGER; const OVERLAPPED = @import("../system/io.zig").OVERLAPPED; test { // The following '_ = <FuncPtrType>' lines are a workaround for https://github.com/ziglang/zig/issues/4476 if (@hasDecl(@This(), "USB_IDLE_CALLBACK")) { _ = USB_IDLE_CALLBACK; } @setEvalBranchQuota(comptime @import("std").meta.declarations(@This()).len * 3); // reference all the pub declarations if (!@import("builtin").is_test) return; inline for (comptime @import("std").meta.declarations(@This())) |decl| { if (decl.is_pub) { _ = @field(@This(), decl.name); } } }
0
repos/capy/vendor/zigwin32/win32
repos/capy/vendor/zigwin32/win32/devices/biometric_framework.zig
//! NOTE: this file is autogenerated, DO NOT MODIFY //-------------------------------------------------------------------------------- // Section: Constants (104) //-------------------------------------------------------------------------------- pub const WINBIO_MAX_STRING_LEN = @as(u32, 256); pub const WINBIO_SCP_VERSION_1 = @as(u32, 1); pub const WINBIO_SCP_RANDOM_SIZE_V1 = @as(u32, 32); pub const WINBIO_SCP_DIGEST_SIZE_V1 = @as(u32, 32); pub const WINBIO_SCP_CURVE_FIELD_SIZE_V1 = @as(u32, 32); pub const WINBIO_SCP_PUBLIC_KEY_SIZE_V1 = @as(u32, 65); pub const WINBIO_SCP_PRIVATE_KEY_SIZE_V1 = @as(u32, 32); pub const WINBIO_SCP_SIGNATURE_SIZE_V1 = @as(u32, 64); pub const WINBIO_SCP_ENCRYPTION_BLOCK_SIZE_V1 = @as(u32, 16); pub const WINBIO_SCP_ENCRYPTION_KEY_SIZE_V1 = @as(u32, 32); pub const WINBIO_BIR_ALIGN_SIZE = @as(u32, 8); pub const WINBIO_BIR_ALGIN_SIZE = @as(u32, 8); pub const FACILITY_WINBIO = @as(u32, 9); pub const FACILITY_NONE = @as(u32, 0); pub const WINBIO_E_UNSUPPORTED_FACTOR = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2146861055)); pub const WINBIO_E_INVALID_UNIT = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2146861054)); pub const WINBIO_E_UNKNOWN_ID = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2146861053)); pub const WINBIO_E_CANCELED = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2146861052)); pub const WINBIO_E_NO_MATCH = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2146861051)); pub const WINBIO_E_CAPTURE_ABORTED = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2146861050)); pub const WINBIO_E_ENROLLMENT_IN_PROGRESS = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2146861049)); pub const WINBIO_E_BAD_CAPTURE = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2146861048)); pub const WINBIO_E_INVALID_CONTROL_CODE = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2146861047)); pub const WINBIO_E_DATA_COLLECTION_IN_PROGRESS = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2146861045)); pub const WINBIO_E_UNSUPPORTED_DATA_FORMAT = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2146861044)); pub const WINBIO_E_UNSUPPORTED_DATA_TYPE = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2146861043)); pub const WINBIO_E_UNSUPPORTED_PURPOSE = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2146861042)); pub const WINBIO_E_INVALID_DEVICE_STATE = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2146861041)); pub const WINBIO_E_DEVICE_BUSY = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2146861040)); pub const WINBIO_E_DATABASE_CANT_CREATE = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2146861039)); pub const WINBIO_E_DATABASE_CANT_OPEN = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2146861038)); pub const WINBIO_E_DATABASE_CANT_CLOSE = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2146861037)); pub const WINBIO_E_DATABASE_CANT_ERASE = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2146861036)); pub const WINBIO_E_DATABASE_CANT_FIND = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2146861035)); pub const WINBIO_E_DATABASE_ALREADY_EXISTS = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2146861034)); pub const WINBIO_E_DATABASE_FULL = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2146861032)); pub const WINBIO_E_DATABASE_LOCKED = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2146861031)); pub const WINBIO_E_DATABASE_CORRUPTED = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2146861030)); pub const WINBIO_E_DATABASE_NO_SUCH_RECORD = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2146861029)); pub const WINBIO_E_DUPLICATE_ENROLLMENT = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2146861028)); pub const WINBIO_E_DATABASE_READ_ERROR = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2146861027)); pub const WINBIO_E_DATABASE_WRITE_ERROR = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2146861026)); pub const WINBIO_E_DATABASE_NO_RESULTS = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2146861025)); pub const WINBIO_E_DATABASE_NO_MORE_RECORDS = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2146861024)); pub const WINBIO_E_DATABASE_EOF = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2146861023)); pub const WINBIO_E_DATABASE_BAD_INDEX_VECTOR = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2146861022)); pub const WINBIO_E_INCORRECT_BSP = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2146861020)); pub const WINBIO_E_INCORRECT_SENSOR_POOL = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2146861019)); pub const WINBIO_E_NO_CAPTURE_DATA = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2146861018)); pub const WINBIO_E_INVALID_SENSOR_MODE = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2146861017)); pub const WINBIO_E_LOCK_VIOLATION = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2146861014)); pub const WINBIO_E_DUPLICATE_TEMPLATE = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2146861013)); pub const WINBIO_E_INVALID_OPERATION = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2146861012)); pub const WINBIO_E_SESSION_BUSY = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2146861011)); pub const WINBIO_E_CRED_PROV_DISABLED = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2146861008)); pub const WINBIO_E_CRED_PROV_NO_CREDENTIAL = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2146861007)); pub const WINBIO_E_DISABLED = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2146861006)); pub const WINBIO_E_CONFIGURATION_FAILURE = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2146861005)); pub const WINBIO_E_SENSOR_UNAVAILABLE = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2146861004)); pub const WINBIO_E_SAS_ENABLED = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2146861003)); pub const WINBIO_E_DEVICE_FAILURE = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2146861002)); pub const WINBIO_E_FAST_USER_SWITCH_DISABLED = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2146861001)); pub const WINBIO_E_NOT_ACTIVE_CONSOLE = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2146861000)); pub const WINBIO_E_EVENT_MONITOR_ACTIVE = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2146860999)); pub const WINBIO_E_INVALID_PROPERTY_TYPE = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2146860998)); pub const WINBIO_E_INVALID_PROPERTY_ID = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2146860997)); pub const WINBIO_E_UNSUPPORTED_PROPERTY = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2146860996)); pub const WINBIO_E_ADAPTER_INTEGRITY_FAILURE = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2146860995)); pub const WINBIO_E_INCORRECT_SESSION_TYPE = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2146860994)); pub const WINBIO_E_SESSION_HANDLE_CLOSED = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2146860993)); pub const WINBIO_E_DEADLOCK_DETECTED = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2146860992)); pub const WINBIO_E_NO_PREBOOT_IDENTITY = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2146860991)); pub const WINBIO_E_MAX_ERROR_COUNT_EXCEEDED = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2146860990)); pub const WINBIO_E_AUTO_LOGON_DISABLED = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2146860989)); pub const WINBIO_E_INVALID_TICKET = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2146860988)); pub const WINBIO_E_TICKET_QUOTA_EXCEEDED = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2146860987)); pub const WINBIO_E_DATA_PROTECTION_FAILURE = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2146860986)); pub const WINBIO_E_CRED_PROV_SECURITY_LOCKOUT = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2146860985)); pub const WINBIO_E_UNSUPPORTED_POOL_TYPE = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2146860984)); pub const WINBIO_E_SELECTION_REQUIRED = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2146860983)); pub const WINBIO_E_PRESENCE_MONITOR_ACTIVE = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2146860982)); pub const WINBIO_E_INVALID_SUBFACTOR = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2146860981)); pub const WINBIO_E_INVALID_CALIBRATION_FORMAT_ARRAY = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2146860980)); pub const WINBIO_E_NO_SUPPORTED_CALIBRATION_FORMAT = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2146860979)); pub const WINBIO_E_UNSUPPORTED_SENSOR_CALIBRATION_FORMAT = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2146860978)); pub const WINBIO_E_CALIBRATION_BUFFER_TOO_SMALL = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2146860977)); pub const WINBIO_E_CALIBRATION_BUFFER_TOO_LARGE = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2146860976)); pub const WINBIO_E_CALIBRATION_BUFFER_INVALID = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2146860975)); pub const WINBIO_E_INVALID_KEY_IDENTIFIER = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2146860974)); pub const WINBIO_E_KEY_CREATION_FAILED = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2146860973)); pub const WINBIO_E_KEY_IDENTIFIER_BUFFER_TOO_SMALL = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2146860972)); pub const WINBIO_E_PROPERTY_UNAVAILABLE = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2146860971)); pub const WINBIO_E_POLICY_PROTECTION_UNAVAILABLE = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2146860970)); pub const WINBIO_E_INSECURE_SENSOR = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2146860969)); pub const WINBIO_E_INVALID_BUFFER_ID = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2146860968)); pub const WINBIO_E_INVALID_BUFFER = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2146860967)); pub const WINBIO_E_TRUSTLET_INTEGRITY_FAIL = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2146860966)); pub const WINBIO_E_ENROLLMENT_CANCELED_BY_SUSPEND = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2146860965)); pub const WINBIO_I_MORE_DATA = @import("../zig.zig").typedConst(HRESULT, @as(i32, 589825)); pub const WINBIO_I_EXTENDED_STATUS_INFORMATION = @import("../zig.zig").typedConst(HRESULT, @as(i32, 589826)); pub const GUID_DEVINTERFACE_BIOMETRIC_READER = Guid.initString("e2b5183a-99ea-4cc3-ad6b-80ca8d715b80"); pub const IOCTL_BIOMETRIC_VENDOR = @as(u32, 4464640); pub const WINBIO_WBDI_MAJOR_VERSION = @as(u32, 1); pub const WINBIO_WBDI_MINOR_VERSION = @as(u32, 0); //-------------------------------------------------------------------------------- // Section: Types (192) //-------------------------------------------------------------------------------- pub const WINBIO_SETTING_SOURCE = enum(u32) { INVALID = 0, DEFAULT = 1, LOCAL = 3, POLICY = 2, }; pub const WINBIO_SETTING_SOURCE_INVALID = WINBIO_SETTING_SOURCE.INVALID; pub const WINBIO_SETTING_SOURCE_DEFAULT = WINBIO_SETTING_SOURCE.DEFAULT; pub const WINBIO_SETTING_SOURCE_LOCAL = WINBIO_SETTING_SOURCE.LOCAL; pub const WINBIO_SETTING_SOURCE_POLICY = WINBIO_SETTING_SOURCE.POLICY; pub const WINBIO_COMPONENT = enum(u32) { SENSOR = 1, ENGINE = 2, STORAGE = 3, }; pub const WINBIO_COMPONENT_SENSOR = WINBIO_COMPONENT.SENSOR; pub const WINBIO_COMPONENT_ENGINE = WINBIO_COMPONENT.ENGINE; pub const WINBIO_COMPONENT_STORAGE = WINBIO_COMPONENT.STORAGE; pub const WINBIO_POOL = enum(u32) { SYSTEM = 1, PRIVATE = 2, }; pub const WINBIO_POOL_SYSTEM = WINBIO_POOL.SYSTEM; pub const WINBIO_POOL_PRIVATE = WINBIO_POOL.PRIVATE; pub const WINBIO_VERSION = extern struct { MajorVersion: u32, MinorVersion: u32, }; pub const WINBIO_IDENTITY = extern struct { Type: u32, Value: extern union { Null: u32, Wildcard: u32, TemplateGuid: Guid, AccountSid: extern struct { Size: u32, Data: [68]u8, }, SecureId: [32]u8, }, }; pub const WINBIO_SECURE_CONNECTION_PARAMS = extern struct { PayloadSize: u32, Version: u16, Flags: u16, }; pub const WINBIO_SECURE_CONNECTION_DATA = extern struct { Size: u32, Version: u16, Flags: u16, ModelCertificateSize: u32, IntermediateCA1Size: u32, IntermediateCA2Size: u32, }; pub const WINBIO_BIR_DATA = extern struct { Size: u32, Offset: u32, }; pub const WINBIO_BIR = extern struct { HeaderBlock: WINBIO_BIR_DATA, StandardDataBlock: WINBIO_BIR_DATA, VendorDataBlock: WINBIO_BIR_DATA, SignatureBlock: WINBIO_BIR_DATA, }; pub const WINBIO_REGISTERED_FORMAT = extern struct { Owner: u16, Type: u16, }; pub const WINBIO_BIR_HEADER = extern struct { ValidFields: u16, HeaderVersion: u8, PatronHeaderVersion: u8, DataFlags: u8, Type: u32, Subtype: u8, Purpose: u8, DataQuality: i8, CreationDate: LARGE_INTEGER, ValidityPeriod: extern struct { BeginDate: LARGE_INTEGER, EndDate: LARGE_INTEGER, }, BiometricDataFormat: WINBIO_REGISTERED_FORMAT, ProductId: WINBIO_REGISTERED_FORMAT, }; pub const WINBIO_BDB_ANSI_381_HEADER = extern struct { RecordLength: u64, FormatIdentifier: u32, VersionNumber: u32, ProductId: WINBIO_REGISTERED_FORMAT, CaptureDeviceId: u16, ImageAcquisitionLevel: u16, HorizontalScanResolution: u16, VerticalScanResolution: u16, HorizontalImageResolution: u16, VerticalImageResolution: u16, ElementCount: u8, ScaleUnits: u8, PixelDepth: u8, ImageCompressionAlg: u8, Reserved: u16, }; pub const WINBIO_BDB_ANSI_381_RECORD = extern struct { BlockLength: u32, HorizontalLineLength: u16, VerticalLineLength: u16, Position: u8, CountOfViews: u8, ViewNumber: u8, ImageQuality: u8, ImpressionType: u8, Reserved: u8, }; pub const WINBIO_SECURE_BUFFER_HEADER_V1 = extern struct { Type: u32, Size: u32, Flags: u32, ValidationTag: u64, }; pub const WINBIO_EVENT = extern struct { Type: u32, Parameters: extern union { Unclaimed: extern struct { UnitId: u32, RejectDetail: u32, }, UnclaimedIdentify: extern struct { UnitId: u32, Identity: WINBIO_IDENTITY, SubFactor: u8, RejectDetail: u32, }, Error: extern struct { ErrorCode: HRESULT, }, }, }; pub const WINBIO_PRESENCE_PROPERTIES = extern union { FacialFeatures: extern struct { BoundingBox: RECT, Distance: i32, OpaqueEngineData: extern struct { AdapterId: Guid, Data: [78]u32, }, }, Iris: extern struct { EyeBoundingBox_1: RECT, EyeBoundingBox_2: RECT, PupilCenter_1: POINT, PupilCenter_2: POINT, Distance: i32, }, }; pub const WINBIO_PRESENCE = extern struct { Factor: u32, SubFactor: u8, Status: HRESULT, RejectDetail: u32, Identity: WINBIO_IDENTITY, TrackingId: u64, Ticket: u64, Properties: WINBIO_PRESENCE_PROPERTIES, Authorization: extern struct { Size: u32, Data: [32]u8, }, }; pub const WINBIO_BSP_SCHEMA = extern struct { BiometricFactor: u32, BspId: Guid, Description: [256]u16, Vendor: [256]u16, Version: WINBIO_VERSION, }; pub const WINBIO_UNIT_SCHEMA = extern struct { UnitId: u32, PoolType: u32, BiometricFactor: u32, SensorSubType: u32, Capabilities: u32, DeviceInstanceId: [256]u16, Description: [256]u16, Manufacturer: [256]u16, Model: [256]u16, SerialNumber: [256]u16, FirmwareVersion: WINBIO_VERSION, }; pub const WINBIO_STORAGE_SCHEMA = extern struct { BiometricFactor: u32, DatabaseId: Guid, DataFormat: Guid, Attributes: u32, FilePath: [256]u16, ConnectionString: [256]u16, }; pub const WINBIO_EXTENDED_SENSOR_INFO = extern struct { GenericSensorCapabilities: u32, Factor: u32, Specific: extern union { Null: u32, FacialFeatures: extern struct { FrameSize: RECT, FrameOffset: POINT, MandatoryOrientation: u32, HardwareInfo: extern struct { ColorSensorId: [260]u16, InfraredSensorId: [260]u16, InfraredSensorRotationAngle: u32, }, }, Fingerprint: extern struct { Reserved: u32, }, Iris: extern struct { FrameSize: RECT, FrameOffset: POINT, MandatoryOrientation: u32, }, Voice: extern struct { Reserved: u32, }, }, }; pub const WINBIO_EXTENDED_ENGINE_INFO = extern struct { GenericEngineCapabilities: u32, Factor: u32, Specific: extern union { Null: u32, FacialFeatures: extern struct { Capabilities: u32, EnrollmentRequirements: extern struct { Null: u32, }, }, Fingerprint: extern struct { Capabilities: u32, EnrollmentRequirements: extern struct { GeneralSamples: u32, Center: u32, TopEdge: u32, BottomEdge: u32, LeftEdge: u32, RightEdge: u32, }, }, Iris: extern struct { Capabilities: u32, EnrollmentRequirements: extern struct { Null: u32, }, }, Voice: extern struct { Capabilities: u32, EnrollmentRequirements: extern struct { Null: u32, }, }, }, }; pub const WINBIO_EXTENDED_STORAGE_INFO = extern struct { GenericStorageCapabilities: u32, Factor: u32, Specific: extern union { Null: u32, FacialFeatures: extern struct { Capabilities: u32, }, Fingerprint: extern struct { Capabilities: u32, }, Iris: extern struct { Capabilities: u32, }, Voice: extern struct { Capabilities: u32, }, }, }; pub const WINBIO_EXTENDED_ENROLLMENT_STATUS = extern struct { TemplateStatus: HRESULT, RejectDetail: u32, PercentComplete: u32, Factor: u32, SubFactor: u8, Specific: extern union { Null: u32, FacialFeatures: extern struct { BoundingBox: RECT, Distance: i32, OpaqueEngineData: extern struct { AdapterId: Guid, Data: [78]u32, }, }, Fingerprint: extern struct { GeneralSamples: u32, Center: u32, TopEdge: u32, BottomEdge: u32, LeftEdge: u32, RightEdge: u32, }, Iris: extern struct { EyeBoundingBox_1: RECT, EyeBoundingBox_2: RECT, PupilCenter_1: POINT, PupilCenter_2: POINT, Distance: i32, GridPointCompletionPercent: u32, GridPointIndex: u16, Point3D: extern struct { X: f64, Y: f64, Z: f64, }, StopCaptureAndShowCriticalFeedback: BOOL, }, Voice: extern struct { Reserved: u32, }, }, }; pub const WINBIO_EXTENDED_UNIT_STATUS = extern struct { Availability: u32, ReasonCode: u32, }; pub const WINBIO_FP_BU_STATE = extern struct { SensorAttached: BOOL, CreationResult: HRESULT, }; pub const WINBIO_ANTI_SPOOF_POLICY_ACTION = enum(i32) { DISABLE = 0, ENABLE = 1, REMOVE = 2, }; pub const WINBIO_ANTI_SPOOF_DISABLE = WINBIO_ANTI_SPOOF_POLICY_ACTION.DISABLE; pub const WINBIO_ANTI_SPOOF_ENABLE = WINBIO_ANTI_SPOOF_POLICY_ACTION.ENABLE; pub const WINBIO_ANTI_SPOOF_REMOVE = WINBIO_ANTI_SPOOF_POLICY_ACTION.REMOVE; pub const WINBIO_POLICY_SOURCE = enum(i32) { UNKNOWN = 0, DEFAULT = 1, LOCAL = 2, ADMIN = 3, }; pub const WINBIO_POLICY_UNKNOWN = WINBIO_POLICY_SOURCE.UNKNOWN; pub const WINBIO_POLICY_DEFAULT = WINBIO_POLICY_SOURCE.DEFAULT; pub const WINBIO_POLICY_LOCAL = WINBIO_POLICY_SOURCE.LOCAL; pub const WINBIO_POLICY_ADMIN = WINBIO_POLICY_SOURCE.ADMIN; pub const WINBIO_ANTI_SPOOF_POLICY = extern struct { Action: WINBIO_ANTI_SPOOF_POLICY_ACTION, Source: WINBIO_POLICY_SOURCE, }; pub const WINBIO_CREDENTIAL_TYPE = enum(i32) { PASSWORD = 1, ALL = -1, }; pub const WINBIO_CREDENTIAL_PASSWORD = WINBIO_CREDENTIAL_TYPE.PASSWORD; pub const WINBIO_CREDENTIAL_ALL = WINBIO_CREDENTIAL_TYPE.ALL; pub const WINBIO_CREDENTIAL_FORMAT = enum(i32) { GENERIC = 1, PACKED = 2, PROTECTED = 3, }; pub const WINBIO_PASSWORD_GENERIC = WINBIO_CREDENTIAL_FORMAT.GENERIC; pub const WINBIO_PASSWORD_PACKED = WINBIO_CREDENTIAL_FORMAT.PACKED; pub const WINBIO_PASSWORD_PROTECTED = WINBIO_CREDENTIAL_FORMAT.PROTECTED; pub const WINBIO_CREDENTIAL_STATE = enum(i32) { NOT_SET = 1, SET = 2, }; pub const WINBIO_CREDENTIAL_NOT_SET = WINBIO_CREDENTIAL_STATE.NOT_SET; pub const WINBIO_CREDENTIAL_SET = WINBIO_CREDENTIAL_STATE.SET; pub const WINBIO_EXTENDED_ENROLLMENT_PARAMETERS = extern struct { Size: usize, SubFactor: u8, }; pub const WINBIO_ACCOUNT_POLICY = extern struct { Identity: WINBIO_IDENTITY, AntiSpoofBehavior: WINBIO_ANTI_SPOOF_POLICY_ACTION, }; pub const WINBIO_PROTECTION_POLICY = extern struct { Version: u32, Identity: WINBIO_IDENTITY, DatabaseId: Guid, UserState: u64, PolicySize: usize, Policy: [128]u8, }; pub const WINBIO_GESTURE_METADATA = extern struct { Size: usize, BiometricType: u32, MatchType: u32, ProtectionType: u32, }; pub const WINBIO_ASYNC_NOTIFICATION_METHOD = enum(i32) { NONE = 0, CALLBACK = 1, MESSAGE = 2, MAXIMUM_VALUE = 3, }; pub const WINBIO_ASYNC_NOTIFY_NONE = WINBIO_ASYNC_NOTIFICATION_METHOD.NONE; pub const WINBIO_ASYNC_NOTIFY_CALLBACK = WINBIO_ASYNC_NOTIFICATION_METHOD.CALLBACK; pub const WINBIO_ASYNC_NOTIFY_MESSAGE = WINBIO_ASYNC_NOTIFICATION_METHOD.MESSAGE; pub const WINBIO_ASYNC_NOTIFY_MAXIMUM_VALUE = WINBIO_ASYNC_NOTIFICATION_METHOD.MAXIMUM_VALUE; pub const WINBIO_ASYNC_RESULT = extern struct { SessionHandle: u32, Operation: u32, SequenceNumber: u64, TimeStamp: i64, ApiStatus: HRESULT, UnitId: u32, UserData: ?*anyopaque, Parameters: extern union { Verify: extern struct { Match: BOOLEAN, RejectDetail: u32, }, Identify: extern struct { Identity: WINBIO_IDENTITY, SubFactor: u8, RejectDetail: u32, }, EnrollBegin: extern struct { SubFactor: u8, }, EnrollCapture: extern struct { RejectDetail: u32, }, EnrollCommit: extern struct { Identity: WINBIO_IDENTITY, IsNewTemplate: BOOLEAN, }, EnumEnrollments: extern struct { Identity: WINBIO_IDENTITY, SubFactorCount: usize, SubFactorArray: ?*u8, }, CaptureSample: extern struct { Sample: ?*WINBIO_BIR, SampleSize: usize, RejectDetail: u32, }, DeleteTemplate: extern struct { Identity: WINBIO_IDENTITY, SubFactor: u8, }, GetProperty: extern struct { PropertyType: u32, PropertyId: u32, Identity: WINBIO_IDENTITY, SubFactor: u8, PropertyBufferSize: usize, PropertyBuffer: ?*anyopaque, }, SetProperty: extern struct { PropertyType: u32, PropertyId: u32, Identity: WINBIO_IDENTITY, SubFactor: u8, PropertyBufferSize: usize, PropertyBuffer: ?*anyopaque, }, GetEvent: extern struct { Event: WINBIO_EVENT, }, ControlUnit: extern struct { Component: WINBIO_COMPONENT, ControlCode: u32, OperationStatus: u32, SendBuffer: ?*u8, SendBufferSize: usize, ReceiveBuffer: ?*u8, ReceiveBufferSize: usize, ReceiveDataSize: usize, }, EnumServiceProviders: extern struct { BspCount: usize, BspSchemaArray: ?*WINBIO_BSP_SCHEMA, }, EnumBiometricUnits: extern struct { UnitCount: usize, UnitSchemaArray: ?*WINBIO_UNIT_SCHEMA, }, EnumDatabases: extern struct { StorageCount: usize, StorageSchemaArray: ?*WINBIO_STORAGE_SCHEMA, }, VerifyAndReleaseTicket: extern struct { Match: BOOLEAN, RejectDetail: u32, Ticket: u64, }, IdentifyAndReleaseTicket: extern struct { Identity: WINBIO_IDENTITY, SubFactor: u8, RejectDetail: u32, Ticket: u64, }, EnrollSelect: extern struct { SelectorValue: u64, }, MonitorPresence: extern struct { ChangeType: u32, PresenceCount: usize, PresenceArray: ?*WINBIO_PRESENCE, }, GetProtectionPolicy: extern struct { Identity: WINBIO_IDENTITY, Policy: WINBIO_PROTECTION_POLICY, }, NotifyUnitStatusChange: extern struct { ExtendedStatus: WINBIO_EXTENDED_UNIT_STATUS, }, }, }; pub const PWINBIO_ASYNC_COMPLETION_CALLBACK = switch (@import("builtin").zig_backend) { .stage1 => fn ( AsyncResult: ?*WINBIO_ASYNC_RESULT, ) callconv(@import("std").os.windows.WINAPI) void, else => *const fn ( AsyncResult: ?*WINBIO_ASYNC_RESULT, ) callconv(@import("std").os.windows.WINAPI) void, }; pub const PWINBIO_VERIFY_CALLBACK = switch (@import("builtin").zig_backend) { .stage1 => fn ( VerifyCallbackContext: ?*anyopaque, OperationStatus: HRESULT, UnitId: u32, Match: BOOLEAN, RejectDetail: u32, ) callconv(@import("std").os.windows.WINAPI) void, else => *const fn ( VerifyCallbackContext: ?*anyopaque, OperationStatus: HRESULT, UnitId: u32, Match: BOOLEAN, RejectDetail: u32, ) callconv(@import("std").os.windows.WINAPI) void, }; pub const PWINBIO_IDENTIFY_CALLBACK = switch (@import("builtin").zig_backend) { .stage1 => fn ( IdentifyCallbackContext: ?*anyopaque, OperationStatus: HRESULT, UnitId: u32, Identity: ?*WINBIO_IDENTITY, SubFactor: u8, RejectDetail: u32, ) callconv(@import("std").os.windows.WINAPI) void, else => *const fn ( IdentifyCallbackContext: ?*anyopaque, OperationStatus: HRESULT, UnitId: u32, Identity: ?*WINBIO_IDENTITY, SubFactor: u8, RejectDetail: u32, ) callconv(@import("std").os.windows.WINAPI) void, }; pub const PWINBIO_LOCATE_SENSOR_CALLBACK = switch (@import("builtin").zig_backend) { .stage1 => fn ( LocateCallbackContext: ?*anyopaque, OperationStatus: HRESULT, UnitId: u32, ) callconv(@import("std").os.windows.WINAPI) void, else => *const fn ( LocateCallbackContext: ?*anyopaque, OperationStatus: HRESULT, UnitId: u32, ) callconv(@import("std").os.windows.WINAPI) void, }; pub const PWINBIO_ENROLL_CAPTURE_CALLBACK = switch (@import("builtin").zig_backend) { .stage1 => fn ( EnrollCallbackContext: ?*anyopaque, OperationStatus: HRESULT, RejectDetail: u32, ) callconv(@import("std").os.windows.WINAPI) void, else => *const fn ( EnrollCallbackContext: ?*anyopaque, OperationStatus: HRESULT, RejectDetail: u32, ) callconv(@import("std").os.windows.WINAPI) void, }; pub const PWINBIO_EVENT_CALLBACK = switch (@import("builtin").zig_backend) { .stage1 => fn ( EventCallbackContext: ?*anyopaque, OperationStatus: HRESULT, Event: ?*WINBIO_EVENT, ) callconv(@import("std").os.windows.WINAPI) void, else => *const fn ( EventCallbackContext: ?*anyopaque, OperationStatus: HRESULT, Event: ?*WINBIO_EVENT, ) callconv(@import("std").os.windows.WINAPI) void, }; pub const PWINBIO_CAPTURE_CALLBACK = switch (@import("builtin").zig_backend) { .stage1 => fn ( CaptureCallbackContext: ?*anyopaque, OperationStatus: HRESULT, UnitId: u32, // TODO: what to do with BytesParamIndex 4? Sample: ?*WINBIO_BIR, SampleSize: usize, RejectDetail: u32, ) callconv(@import("std").os.windows.WINAPI) void, else => *const fn ( CaptureCallbackContext: ?*anyopaque, OperationStatus: HRESULT, UnitId: u32, // TODO: what to do with BytesParamIndex 4? Sample: ?*WINBIO_BIR, SampleSize: usize, RejectDetail: u32, ) callconv(@import("std").os.windows.WINAPI) void, }; pub const _WINIBIO_SENSOR_CONTEXT = extern struct { placeholder: usize, // TODO: why is this type empty? }; pub const _WINIBIO_ENGINE_CONTEXT = extern struct { placeholder: usize, // TODO: why is this type empty? }; pub const _WINIBIO_STORAGE_CONTEXT = extern struct { placeholder: usize, // TODO: why is this type empty? }; pub const WINBIO_STORAGE_RECORD = extern struct { Identity: ?*WINBIO_IDENTITY, SubFactor: u8, IndexVector: ?*u32, IndexElementCount: usize, TemplateBlob: ?*u8, TemplateBlobSize: usize, PayloadBlob: ?*u8, PayloadBlobSize: usize, }; pub const WINBIO_PIPELINE = extern struct { SensorHandle: ?HANDLE, EngineHandle: ?HANDLE, StorageHandle: ?HANDLE, SensorInterface: ?*WINBIO_SENSOR_INTERFACE, EngineInterface: ?*WINBIO_ENGINE_INTERFACE, StorageInterface: ?*WINBIO_STORAGE_INTERFACE, SensorContext: ?*_WINIBIO_SENSOR_CONTEXT, EngineContext: ?*_WINIBIO_ENGINE_CONTEXT, StorageContext: ?*_WINIBIO_STORAGE_CONTEXT, FrameworkInterface: ?*WINBIO_FRAMEWORK_INTERFACE, }; pub const WINBIO_ADAPTER_INTERFACE_VERSION = extern struct { MajorVersion: u16, MinorVersion: u16, }; // TODO: this function pointer causes dependency loop problems, so it's stubbed out pub const PIBIO_SENSOR_ATTACH_FN = switch (@import("builtin").zig_backend) { .stage1 => fn () callconv(@import("std").os.windows.WINAPI) void, else => *const fn () callconv(@import("std").os.windows.WINAPI) void, }; // TODO: this function pointer causes dependency loop problems, so it's stubbed out pub const PIBIO_SENSOR_DETACH_FN = switch (@import("builtin").zig_backend) { .stage1 => fn () callconv(@import("std").os.windows.WINAPI) void, else => *const fn () callconv(@import("std").os.windows.WINAPI) void, }; // TODO: this function pointer causes dependency loop problems, so it's stubbed out pub const PIBIO_SENSOR_CLEAR_CONTEXT_FN = switch (@import("builtin").zig_backend) { .stage1 => fn () callconv(@import("std").os.windows.WINAPI) void, else => *const fn () callconv(@import("std").os.windows.WINAPI) void, }; // TODO: this function pointer causes dependency loop problems, so it's stubbed out pub const PIBIO_SENSOR_QUERY_STATUS_FN = switch (@import("builtin").zig_backend) { .stage1 => fn () callconv(@import("std").os.windows.WINAPI) void, else => *const fn () callconv(@import("std").os.windows.WINAPI) void, }; // TODO: this function pointer causes dependency loop problems, so it's stubbed out pub const PIBIO_SENSOR_RESET_FN = switch (@import("builtin").zig_backend) { .stage1 => fn () callconv(@import("std").os.windows.WINAPI) void, else => *const fn () callconv(@import("std").os.windows.WINAPI) void, }; // TODO: this function pointer causes dependency loop problems, so it's stubbed out pub const PIBIO_SENSOR_SET_MODE_FN = switch (@import("builtin").zig_backend) { .stage1 => fn () callconv(@import("std").os.windows.WINAPI) void, else => *const fn () callconv(@import("std").os.windows.WINAPI) void, }; // TODO: this function pointer causes dependency loop problems, so it's stubbed out pub const PIBIO_SENSOR_SET_INDICATOR_STATUS_FN = switch (@import("builtin").zig_backend) { .stage1 => fn () callconv(@import("std").os.windows.WINAPI) void, else => *const fn () callconv(@import("std").os.windows.WINAPI) void, }; // TODO: this function pointer causes dependency loop problems, so it's stubbed out pub const PIBIO_SENSOR_GET_INDICATOR_STATUS_FN = switch (@import("builtin").zig_backend) { .stage1 => fn () callconv(@import("std").os.windows.WINAPI) void, else => *const fn () callconv(@import("std").os.windows.WINAPI) void, }; // TODO: this function pointer causes dependency loop problems, so it's stubbed out pub const PIBIO_SENSOR_START_CAPTURE_FN = switch (@import("builtin").zig_backend) { .stage1 => fn () callconv(@import("std").os.windows.WINAPI) void, else => *const fn () callconv(@import("std").os.windows.WINAPI) void, }; // TODO: this function pointer causes dependency loop problems, so it's stubbed out pub const PIBIO_SENSOR_FINISH_CAPTURE_FN = switch (@import("builtin").zig_backend) { .stage1 => fn () callconv(@import("std").os.windows.WINAPI) void, else => *const fn () callconv(@import("std").os.windows.WINAPI) void, }; // TODO: this function pointer causes dependency loop problems, so it's stubbed out pub const PIBIO_SENSOR_EXPORT_SENSOR_DATA_FN = switch (@import("builtin").zig_backend) { .stage1 => fn () callconv(@import("std").os.windows.WINAPI) void, else => *const fn () callconv(@import("std").os.windows.WINAPI) void, }; // TODO: this function pointer causes dependency loop problems, so it's stubbed out pub const PIBIO_SENSOR_CANCEL_FN = switch (@import("builtin").zig_backend) { .stage1 => fn () callconv(@import("std").os.windows.WINAPI) void, else => *const fn () callconv(@import("std").os.windows.WINAPI) void, }; // TODO: this function pointer causes dependency loop problems, so it's stubbed out pub const PIBIO_SENSOR_PUSH_DATA_TO_ENGINE_FN = switch (@import("builtin").zig_backend) { .stage1 => fn () callconv(@import("std").os.windows.WINAPI) void, else => *const fn () callconv(@import("std").os.windows.WINAPI) void, }; // TODO: this function pointer causes dependency loop problems, so it's stubbed out pub const PIBIO_SENSOR_CONTROL_UNIT_FN = switch (@import("builtin").zig_backend) { .stage1 => fn () callconv(@import("std").os.windows.WINAPI) void, else => *const fn () callconv(@import("std").os.windows.WINAPI) void, }; // TODO: this function pointer causes dependency loop problems, so it's stubbed out pub const PIBIO_SENSOR_CONTROL_UNIT_PRIVILEGED_FN = switch (@import("builtin").zig_backend) { .stage1 => fn () callconv(@import("std").os.windows.WINAPI) void, else => *const fn () callconv(@import("std").os.windows.WINAPI) void, }; // TODO: this function pointer causes dependency loop problems, so it's stubbed out pub const PIBIO_SENSOR_NOTIFY_POWER_CHANGE_FN = switch (@import("builtin").zig_backend) { .stage1 => fn () callconv(@import("std").os.windows.WINAPI) void, else => *const fn () callconv(@import("std").os.windows.WINAPI) void, }; // TODO: this function pointer causes dependency loop problems, so it's stubbed out pub const PIBIO_SENSOR_PIPELINE_INIT_FN = switch (@import("builtin").zig_backend) { .stage1 => fn () callconv(@import("std").os.windows.WINAPI) void, else => *const fn () callconv(@import("std").os.windows.WINAPI) void, }; // TODO: this function pointer causes dependency loop problems, so it's stubbed out pub const PIBIO_SENSOR_PIPELINE_CLEANUP_FN = switch (@import("builtin").zig_backend) { .stage1 => fn () callconv(@import("std").os.windows.WINAPI) void, else => *const fn () callconv(@import("std").os.windows.WINAPI) void, }; // TODO: this function pointer causes dependency loop problems, so it's stubbed out pub const PIBIO_SENSOR_ACTIVATE_FN = switch (@import("builtin").zig_backend) { .stage1 => fn () callconv(@import("std").os.windows.WINAPI) void, else => *const fn () callconv(@import("std").os.windows.WINAPI) void, }; // TODO: this function pointer causes dependency loop problems, so it's stubbed out pub const PIBIO_SENSOR_DEACTIVATE_FN = switch (@import("builtin").zig_backend) { .stage1 => fn () callconv(@import("std").os.windows.WINAPI) void, else => *const fn () callconv(@import("std").os.windows.WINAPI) void, }; // TODO: this function pointer causes dependency loop problems, so it's stubbed out pub const PIBIO_SENSOR_QUERY_EXTENDED_INFO_FN = switch (@import("builtin").zig_backend) { .stage1 => fn () callconv(@import("std").os.windows.WINAPI) void, else => *const fn () callconv(@import("std").os.windows.WINAPI) void, }; // TODO: this function pointer causes dependency loop problems, so it's stubbed out pub const PIBIO_SENSOR_QUERY_CALIBRATION_FORMATS_FN = switch (@import("builtin").zig_backend) { .stage1 => fn () callconv(@import("std").os.windows.WINAPI) void, else => *const fn () callconv(@import("std").os.windows.WINAPI) void, }; // TODO: this function pointer causes dependency loop problems, so it's stubbed out pub const PIBIO_SENSOR_SET_CALIBRATION_FORMAT_FN = switch (@import("builtin").zig_backend) { .stage1 => fn () callconv(@import("std").os.windows.WINAPI) void, else => *const fn () callconv(@import("std").os.windows.WINAPI) void, }; // TODO: this function pointer causes dependency loop problems, so it's stubbed out pub const PIBIO_SENSOR_ACCEPT_CALIBRATION_DATA_FN = switch (@import("builtin").zig_backend) { .stage1 => fn () callconv(@import("std").os.windows.WINAPI) void, else => *const fn () callconv(@import("std").os.windows.WINAPI) void, }; // TODO: this function pointer causes dependency loop problems, so it's stubbed out pub const PIBIO_SENSOR_ASYNC_IMPORT_RAW_BUFFER_FN = switch (@import("builtin").zig_backend) { .stage1 => fn () callconv(@import("std").os.windows.WINAPI) void, else => *const fn () callconv(@import("std").os.windows.WINAPI) void, }; // TODO: this function pointer causes dependency loop problems, so it's stubbed out pub const PIBIO_SENSOR_ASYNC_IMPORT_SECURE_BUFFER_FN = switch (@import("builtin").zig_backend) { .stage1 => fn () callconv(@import("std").os.windows.WINAPI) void, else => *const fn () callconv(@import("std").os.windows.WINAPI) void, }; // TODO: this function pointer causes dependency loop problems, so it's stubbed out pub const PIBIO_SENSOR_QUERY_PRIVATE_SENSOR_TYPE_FN = switch (@import("builtin").zig_backend) { .stage1 => fn () callconv(@import("std").os.windows.WINAPI) void, else => *const fn () callconv(@import("std").os.windows.WINAPI) void, }; // TODO: this function pointer causes dependency loop problems, so it's stubbed out pub const PIBIO_SENSOR_CONNECT_SECURE_FN = switch (@import("builtin").zig_backend) { .stage1 => fn () callconv(@import("std").os.windows.WINAPI) void, else => *const fn () callconv(@import("std").os.windows.WINAPI) void, }; // TODO: this function pointer causes dependency loop problems, so it's stubbed out pub const PIBIO_SENSOR_START_CAPTURE_EX_FN = switch (@import("builtin").zig_backend) { .stage1 => fn () callconv(@import("std").os.windows.WINAPI) void, else => *const fn () callconv(@import("std").os.windows.WINAPI) void, }; // TODO: this function pointer causes dependency loop problems, so it's stubbed out pub const PIBIO_SENSOR_START_NOTIFY_WAKE_FN = switch (@import("builtin").zig_backend) { .stage1 => fn () callconv(@import("std").os.windows.WINAPI) void, else => *const fn () callconv(@import("std").os.windows.WINAPI) void, }; // TODO: this function pointer causes dependency loop problems, so it's stubbed out pub const PIBIO_SENSOR_FINISH_NOTIFY_WAKE_FN = switch (@import("builtin").zig_backend) { .stage1 => fn () callconv(@import("std").os.windows.WINAPI) void, else => *const fn () callconv(@import("std").os.windows.WINAPI) void, }; pub const WINBIO_SENSOR_INTERFACE = extern struct { Version: WINBIO_ADAPTER_INTERFACE_VERSION, Type: u32, Size: usize, AdapterId: Guid, Attach: ?PIBIO_SENSOR_ATTACH_FN, Detach: ?PIBIO_SENSOR_DETACH_FN, ClearContext: ?PIBIO_SENSOR_CLEAR_CONTEXT_FN, QueryStatus: ?PIBIO_SENSOR_QUERY_STATUS_FN, Reset: ?PIBIO_SENSOR_RESET_FN, SetMode: ?PIBIO_SENSOR_SET_MODE_FN, SetIndicatorStatus: ?PIBIO_SENSOR_SET_INDICATOR_STATUS_FN, GetIndicatorStatus: ?PIBIO_SENSOR_GET_INDICATOR_STATUS_FN, StartCapture: ?PIBIO_SENSOR_START_CAPTURE_FN, FinishCapture: ?PIBIO_SENSOR_FINISH_CAPTURE_FN, ExportSensorData: ?PIBIO_SENSOR_EXPORT_SENSOR_DATA_FN, Cancel: ?PIBIO_SENSOR_CANCEL_FN, PushDataToEngine: ?PIBIO_SENSOR_PUSH_DATA_TO_ENGINE_FN, ControlUnit: ?PIBIO_SENSOR_CONTROL_UNIT_FN, ControlUnitPrivileged: ?PIBIO_SENSOR_CONTROL_UNIT_PRIVILEGED_FN, NotifyPowerChange: ?PIBIO_SENSOR_NOTIFY_POWER_CHANGE_FN, PipelineInit: ?PIBIO_SENSOR_PIPELINE_INIT_FN, PipelineCleanup: ?PIBIO_SENSOR_PIPELINE_CLEANUP_FN, Activate: ?PIBIO_SENSOR_ACTIVATE_FN, Deactivate: ?PIBIO_SENSOR_DEACTIVATE_FN, QueryExtendedInfo: ?PIBIO_SENSOR_QUERY_EXTENDED_INFO_FN, QueryCalibrationFormats: ?PIBIO_SENSOR_QUERY_CALIBRATION_FORMATS_FN, SetCalibrationFormat: ?PIBIO_SENSOR_SET_CALIBRATION_FORMAT_FN, AcceptCalibrationData: ?PIBIO_SENSOR_ACCEPT_CALIBRATION_DATA_FN, AsyncImportRawBuffer: ?PIBIO_SENSOR_ASYNC_IMPORT_RAW_BUFFER_FN, AsyncImportSecureBuffer: ?PIBIO_SENSOR_ASYNC_IMPORT_SECURE_BUFFER_FN, QueryPrivateSensorType: ?PIBIO_SENSOR_QUERY_PRIVATE_SENSOR_TYPE_FN, ConnectSecure: ?PIBIO_SENSOR_CONNECT_SECURE_FN, StartCaptureEx: ?PIBIO_SENSOR_START_CAPTURE_EX_FN, StartNotifyWake: ?PIBIO_SENSOR_START_NOTIFY_WAKE_FN, FinishNotifyWake: ?PIBIO_SENSOR_FINISH_NOTIFY_WAKE_FN, }; pub const PWINBIO_QUERY_SENSOR_INTERFACE_FN = switch (@import("builtin").zig_backend) { .stage1 => fn ( SensorInterface: ?*?*WINBIO_SENSOR_INTERFACE, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( SensorInterface: ?*?*WINBIO_SENSOR_INTERFACE, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }; // TODO: this function pointer causes dependency loop problems, so it's stubbed out pub const PIBIO_ENGINE_ATTACH_FN = switch (@import("builtin").zig_backend) { .stage1 => fn () callconv(@import("std").os.windows.WINAPI) void, else => *const fn () callconv(@import("std").os.windows.WINAPI) void, }; // TODO: this function pointer causes dependency loop problems, so it's stubbed out pub const PIBIO_ENGINE_DETACH_FN = switch (@import("builtin").zig_backend) { .stage1 => fn () callconv(@import("std").os.windows.WINAPI) void, else => *const fn () callconv(@import("std").os.windows.WINAPI) void, }; // TODO: this function pointer causes dependency loop problems, so it's stubbed out pub const PIBIO_ENGINE_CLEAR_CONTEXT_FN = switch (@import("builtin").zig_backend) { .stage1 => fn () callconv(@import("std").os.windows.WINAPI) void, else => *const fn () callconv(@import("std").os.windows.WINAPI) void, }; // TODO: this function pointer causes dependency loop problems, so it's stubbed out pub const PIBIO_ENGINE_QUERY_PREFERRED_FORMAT_FN = switch (@import("builtin").zig_backend) { .stage1 => fn () callconv(@import("std").os.windows.WINAPI) void, else => *const fn () callconv(@import("std").os.windows.WINAPI) void, }; // TODO: this function pointer causes dependency loop problems, so it's stubbed out pub const PIBIO_ENGINE_QUERY_INDEX_VECTOR_SIZE_FN = switch (@import("builtin").zig_backend) { .stage1 => fn () callconv(@import("std").os.windows.WINAPI) void, else => *const fn () callconv(@import("std").os.windows.WINAPI) void, }; // TODO: this function pointer causes dependency loop problems, so it's stubbed out pub const PIBIO_ENGINE_QUERY_HASH_ALGORITHMS_FN = switch (@import("builtin").zig_backend) { .stage1 => fn () callconv(@import("std").os.windows.WINAPI) void, else => *const fn () callconv(@import("std").os.windows.WINAPI) void, }; // TODO: this function pointer causes dependency loop problems, so it's stubbed out pub const PIBIO_ENGINE_SET_HASH_ALGORITHM_FN = switch (@import("builtin").zig_backend) { .stage1 => fn () callconv(@import("std").os.windows.WINAPI) void, else => *const fn () callconv(@import("std").os.windows.WINAPI) void, }; // TODO: this function pointer causes dependency loop problems, so it's stubbed out pub const PIBIO_ENGINE_QUERY_SAMPLE_HINT_FN = switch (@import("builtin").zig_backend) { .stage1 => fn () callconv(@import("std").os.windows.WINAPI) void, else => *const fn () callconv(@import("std").os.windows.WINAPI) void, }; // TODO: this function pointer causes dependency loop problems, so it's stubbed out pub const PIBIO_ENGINE_ACCEPT_SAMPLE_DATA_FN = switch (@import("builtin").zig_backend) { .stage1 => fn () callconv(@import("std").os.windows.WINAPI) void, else => *const fn () callconv(@import("std").os.windows.WINAPI) void, }; // TODO: this function pointer causes dependency loop problems, so it's stubbed out pub const PIBIO_ENGINE_EXPORT_ENGINE_DATA_FN = switch (@import("builtin").zig_backend) { .stage1 => fn () callconv(@import("std").os.windows.WINAPI) void, else => *const fn () callconv(@import("std").os.windows.WINAPI) void, }; // TODO: this function pointer causes dependency loop problems, so it's stubbed out pub const PIBIO_ENGINE_VERIFY_FEATURE_SET_FN = switch (@import("builtin").zig_backend) { .stage1 => fn () callconv(@import("std").os.windows.WINAPI) void, else => *const fn () callconv(@import("std").os.windows.WINAPI) void, }; // TODO: this function pointer causes dependency loop problems, so it's stubbed out pub const PIBIO_ENGINE_IDENTIFY_FEATURE_SET_FN = switch (@import("builtin").zig_backend) { .stage1 => fn () callconv(@import("std").os.windows.WINAPI) void, else => *const fn () callconv(@import("std").os.windows.WINAPI) void, }; // TODO: this function pointer causes dependency loop problems, so it's stubbed out pub const PIBIO_ENGINE_CREATE_ENROLLMENT_FN = switch (@import("builtin").zig_backend) { .stage1 => fn () callconv(@import("std").os.windows.WINAPI) void, else => *const fn () callconv(@import("std").os.windows.WINAPI) void, }; // TODO: this function pointer causes dependency loop problems, so it's stubbed out pub const PIBIO_ENGINE_UPDATE_ENROLLMENT_FN = switch (@import("builtin").zig_backend) { .stage1 => fn () callconv(@import("std").os.windows.WINAPI) void, else => *const fn () callconv(@import("std").os.windows.WINAPI) void, }; // TODO: this function pointer causes dependency loop problems, so it's stubbed out pub const PIBIO_ENGINE_GET_ENROLLMENT_STATUS_FN = switch (@import("builtin").zig_backend) { .stage1 => fn () callconv(@import("std").os.windows.WINAPI) void, else => *const fn () callconv(@import("std").os.windows.WINAPI) void, }; // TODO: this function pointer causes dependency loop problems, so it's stubbed out pub const PIBIO_ENGINE_GET_ENROLLMENT_HASH_FN = switch (@import("builtin").zig_backend) { .stage1 => fn () callconv(@import("std").os.windows.WINAPI) void, else => *const fn () callconv(@import("std").os.windows.WINAPI) void, }; // TODO: this function pointer causes dependency loop problems, so it's stubbed out pub const PIBIO_ENGINE_CHECK_FOR_DUPLICATE_FN = switch (@import("builtin").zig_backend) { .stage1 => fn () callconv(@import("std").os.windows.WINAPI) void, else => *const fn () callconv(@import("std").os.windows.WINAPI) void, }; // TODO: this function pointer causes dependency loop problems, so it's stubbed out pub const PIBIO_ENGINE_COMMIT_ENROLLMENT_FN = switch (@import("builtin").zig_backend) { .stage1 => fn () callconv(@import("std").os.windows.WINAPI) void, else => *const fn () callconv(@import("std").os.windows.WINAPI) void, }; // TODO: this function pointer causes dependency loop problems, so it's stubbed out pub const PIBIO_ENGINE_DISCARD_ENROLLMENT_FN = switch (@import("builtin").zig_backend) { .stage1 => fn () callconv(@import("std").os.windows.WINAPI) void, else => *const fn () callconv(@import("std").os.windows.WINAPI) void, }; // TODO: this function pointer causes dependency loop problems, so it's stubbed out pub const PIBIO_ENGINE_CONTROL_UNIT_FN = switch (@import("builtin").zig_backend) { .stage1 => fn () callconv(@import("std").os.windows.WINAPI) void, else => *const fn () callconv(@import("std").os.windows.WINAPI) void, }; // TODO: this function pointer causes dependency loop problems, so it's stubbed out pub const PIBIO_ENGINE_CONTROL_UNIT_PRIVILEGED_FN = switch (@import("builtin").zig_backend) { .stage1 => fn () callconv(@import("std").os.windows.WINAPI) void, else => *const fn () callconv(@import("std").os.windows.WINAPI) void, }; // TODO: this function pointer causes dependency loop problems, so it's stubbed out pub const PIBIO_ENGINE_NOTIFY_POWER_CHANGE_FN = switch (@import("builtin").zig_backend) { .stage1 => fn () callconv(@import("std").os.windows.WINAPI) void, else => *const fn () callconv(@import("std").os.windows.WINAPI) void, }; // TODO: this function pointer causes dependency loop problems, so it's stubbed out pub const PIBIO_ENGINE_RESERVED_1_FN = switch (@import("builtin").zig_backend) { .stage1 => fn () callconv(@import("std").os.windows.WINAPI) void, else => *const fn () callconv(@import("std").os.windows.WINAPI) void, }; // TODO: this function pointer causes dependency loop problems, so it's stubbed out pub const PIBIO_ENGINE_PIPELINE_INIT_FN = switch (@import("builtin").zig_backend) { .stage1 => fn () callconv(@import("std").os.windows.WINAPI) void, else => *const fn () callconv(@import("std").os.windows.WINAPI) void, }; // TODO: this function pointer causes dependency loop problems, so it's stubbed out pub const PIBIO_ENGINE_PIPELINE_CLEANUP_FN = switch (@import("builtin").zig_backend) { .stage1 => fn () callconv(@import("std").os.windows.WINAPI) void, else => *const fn () callconv(@import("std").os.windows.WINAPI) void, }; // TODO: this function pointer causes dependency loop problems, so it's stubbed out pub const PIBIO_ENGINE_ACTIVATE_FN = switch (@import("builtin").zig_backend) { .stage1 => fn () callconv(@import("std").os.windows.WINAPI) void, else => *const fn () callconv(@import("std").os.windows.WINAPI) void, }; // TODO: this function pointer causes dependency loop problems, so it's stubbed out pub const PIBIO_ENGINE_DEACTIVATE_FN = switch (@import("builtin").zig_backend) { .stage1 => fn () callconv(@import("std").os.windows.WINAPI) void, else => *const fn () callconv(@import("std").os.windows.WINAPI) void, }; // TODO: this function pointer causes dependency loop problems, so it's stubbed out pub const PIBIO_ENGINE_QUERY_EXTENDED_INFO_FN = switch (@import("builtin").zig_backend) { .stage1 => fn () callconv(@import("std").os.windows.WINAPI) void, else => *const fn () callconv(@import("std").os.windows.WINAPI) void, }; // TODO: this function pointer causes dependency loop problems, so it's stubbed out pub const PIBIO_ENGINE_IDENTIFY_ALL_FN = switch (@import("builtin").zig_backend) { .stage1 => fn () callconv(@import("std").os.windows.WINAPI) void, else => *const fn () callconv(@import("std").os.windows.WINAPI) void, }; // TODO: this function pointer causes dependency loop problems, so it's stubbed out pub const PIBIO_ENGINE_SET_ENROLLMENT_SELECTOR_FN = switch (@import("builtin").zig_backend) { .stage1 => fn () callconv(@import("std").os.windows.WINAPI) void, else => *const fn () callconv(@import("std").os.windows.WINAPI) void, }; // TODO: this function pointer causes dependency loop problems, so it's stubbed out pub const PIBIO_ENGINE_SET_ENROLLMENT_PARAMETERS_FN = switch (@import("builtin").zig_backend) { .stage1 => fn () callconv(@import("std").os.windows.WINAPI) void, else => *const fn () callconv(@import("std").os.windows.WINAPI) void, }; // TODO: this function pointer causes dependency loop problems, so it's stubbed out pub const PIBIO_ENGINE_QUERY_EXTENDED_ENROLLMENT_STATUS_FN = switch (@import("builtin").zig_backend) { .stage1 => fn () callconv(@import("std").os.windows.WINAPI) void, else => *const fn () callconv(@import("std").os.windows.WINAPI) void, }; // TODO: this function pointer causes dependency loop problems, so it's stubbed out pub const PIBIO_ENGINE_REFRESH_CACHE_FN = switch (@import("builtin").zig_backend) { .stage1 => fn () callconv(@import("std").os.windows.WINAPI) void, else => *const fn () callconv(@import("std").os.windows.WINAPI) void, }; // TODO: this function pointer causes dependency loop problems, so it's stubbed out pub const PIBIO_ENGINE_SELECT_CALIBRATION_FORMAT_FN = switch (@import("builtin").zig_backend) { .stage1 => fn () callconv(@import("std").os.windows.WINAPI) void, else => *const fn () callconv(@import("std").os.windows.WINAPI) void, }; // TODO: this function pointer causes dependency loop problems, so it's stubbed out pub const PIBIO_ENGINE_QUERY_CALIBRATION_DATA_FN = switch (@import("builtin").zig_backend) { .stage1 => fn () callconv(@import("std").os.windows.WINAPI) void, else => *const fn () callconv(@import("std").os.windows.WINAPI) void, }; // TODO: this function pointer causes dependency loop problems, so it's stubbed out pub const PIBIO_ENGINE_SET_ACCOUNT_POLICY_FN = switch (@import("builtin").zig_backend) { .stage1 => fn () callconv(@import("std").os.windows.WINAPI) void, else => *const fn () callconv(@import("std").os.windows.WINAPI) void, }; // TODO: this function pointer causes dependency loop problems, so it's stubbed out pub const PIBIO_ENGINE_CREATE_KEY_FN = switch (@import("builtin").zig_backend) { .stage1 => fn () callconv(@import("std").os.windows.WINAPI) void, else => *const fn () callconv(@import("std").os.windows.WINAPI) void, }; // TODO: this function pointer causes dependency loop problems, so it's stubbed out pub const PIBIO_ENGINE_IDENTIFY_FEATURE_SET_SECURE_FN = switch (@import("builtin").zig_backend) { .stage1 => fn () callconv(@import("std").os.windows.WINAPI) void, else => *const fn () callconv(@import("std").os.windows.WINAPI) void, }; // TODO: this function pointer causes dependency loop problems, so it's stubbed out pub const PIBIO_ENGINE_ACCEPT_PRIVATE_SENSOR_TYPE_INFO_FN = switch (@import("builtin").zig_backend) { .stage1 => fn () callconv(@import("std").os.windows.WINAPI) void, else => *const fn () callconv(@import("std").os.windows.WINAPI) void, }; // TODO: this function pointer causes dependency loop problems, so it's stubbed out pub const PIBIO_ENGINE_CREATE_ENROLLMENT_AUTHENTICATED_FN = switch (@import("builtin").zig_backend) { .stage1 => fn () callconv(@import("std").os.windows.WINAPI) void, else => *const fn () callconv(@import("std").os.windows.WINAPI) void, }; // TODO: this function pointer causes dependency loop problems, so it's stubbed out pub const PIBIO_ENGINE_IDENTIFY_FEATURE_SET_AUTHENTICATED_FN = switch (@import("builtin").zig_backend) { .stage1 => fn () callconv(@import("std").os.windows.WINAPI) void, else => *const fn () callconv(@import("std").os.windows.WINAPI) void, }; pub const WINBIO_ENGINE_INTERFACE = extern struct { Version: WINBIO_ADAPTER_INTERFACE_VERSION, Type: u32, Size: usize, AdapterId: Guid, Attach: ?PIBIO_ENGINE_ATTACH_FN, Detach: ?PIBIO_ENGINE_DETACH_FN, ClearContext: ?PIBIO_ENGINE_CLEAR_CONTEXT_FN, QueryPreferredFormat: ?PIBIO_ENGINE_QUERY_PREFERRED_FORMAT_FN, QueryIndexVectorSize: ?PIBIO_ENGINE_QUERY_INDEX_VECTOR_SIZE_FN, QueryHashAlgorithms: ?PIBIO_ENGINE_QUERY_HASH_ALGORITHMS_FN, SetHashAlgorithm: ?PIBIO_ENGINE_SET_HASH_ALGORITHM_FN, QuerySampleHint: ?PIBIO_ENGINE_QUERY_SAMPLE_HINT_FN, AcceptSampleData: ?PIBIO_ENGINE_ACCEPT_SAMPLE_DATA_FN, ExportEngineData: ?PIBIO_ENGINE_EXPORT_ENGINE_DATA_FN, VerifyFeatureSet: ?PIBIO_ENGINE_VERIFY_FEATURE_SET_FN, IdentifyFeatureSet: ?PIBIO_ENGINE_IDENTIFY_FEATURE_SET_FN, CreateEnrollment: ?PIBIO_ENGINE_CREATE_ENROLLMENT_FN, UpdateEnrollment: ?PIBIO_ENGINE_UPDATE_ENROLLMENT_FN, GetEnrollmentStatus: ?PIBIO_ENGINE_GET_ENROLLMENT_STATUS_FN, GetEnrollmentHash: ?PIBIO_ENGINE_GET_ENROLLMENT_HASH_FN, CheckForDuplicate: ?PIBIO_ENGINE_CHECK_FOR_DUPLICATE_FN, CommitEnrollment: ?PIBIO_ENGINE_COMMIT_ENROLLMENT_FN, DiscardEnrollment: ?PIBIO_ENGINE_DISCARD_ENROLLMENT_FN, ControlUnit: ?PIBIO_ENGINE_CONTROL_UNIT_FN, ControlUnitPrivileged: ?PIBIO_ENGINE_CONTROL_UNIT_PRIVILEGED_FN, NotifyPowerChange: ?PIBIO_ENGINE_NOTIFY_POWER_CHANGE_FN, Reserved_1: ?PIBIO_ENGINE_RESERVED_1_FN, PipelineInit: ?PIBIO_ENGINE_PIPELINE_INIT_FN, PipelineCleanup: ?PIBIO_ENGINE_PIPELINE_CLEANUP_FN, Activate: ?PIBIO_ENGINE_ACTIVATE_FN, Deactivate: ?PIBIO_ENGINE_DEACTIVATE_FN, QueryExtendedInfo: ?PIBIO_ENGINE_QUERY_EXTENDED_INFO_FN, IdentifyAll: ?PIBIO_ENGINE_IDENTIFY_ALL_FN, SetEnrollmentSelector: ?PIBIO_ENGINE_SET_ENROLLMENT_SELECTOR_FN, SetEnrollmentParameters: ?PIBIO_ENGINE_SET_ENROLLMENT_PARAMETERS_FN, QueryExtendedEnrollmentStatus: ?PIBIO_ENGINE_QUERY_EXTENDED_ENROLLMENT_STATUS_FN, RefreshCache: ?PIBIO_ENGINE_REFRESH_CACHE_FN, SelectCalibrationFormat: ?PIBIO_ENGINE_SELECT_CALIBRATION_FORMAT_FN, QueryCalibrationData: ?PIBIO_ENGINE_QUERY_CALIBRATION_DATA_FN, SetAccountPolicy: ?PIBIO_ENGINE_SET_ACCOUNT_POLICY_FN, CreateKey: ?PIBIO_ENGINE_CREATE_KEY_FN, IdentifyFeatureSetSecure: ?PIBIO_ENGINE_IDENTIFY_FEATURE_SET_SECURE_FN, AcceptPrivateSensorTypeInfo: ?PIBIO_ENGINE_ACCEPT_PRIVATE_SENSOR_TYPE_INFO_FN, CreateEnrollmentAuthenticated: ?PIBIO_ENGINE_CREATE_ENROLLMENT_AUTHENTICATED_FN, IdentifyFeatureSetAuthenticated: ?PIBIO_ENGINE_IDENTIFY_FEATURE_SET_AUTHENTICATED_FN, }; pub const PWINBIO_QUERY_ENGINE_INTERFACE_FN = switch (@import("builtin").zig_backend) { .stage1 => fn ( EngineInterface: ?*?*WINBIO_ENGINE_INTERFACE, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( EngineInterface: ?*?*WINBIO_ENGINE_INTERFACE, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }; // TODO: this function pointer causes dependency loop problems, so it's stubbed out pub const PIBIO_STORAGE_ATTACH_FN = switch (@import("builtin").zig_backend) { .stage1 => fn () callconv(@import("std").os.windows.WINAPI) void, else => *const fn () callconv(@import("std").os.windows.WINAPI) void, }; // TODO: this function pointer causes dependency loop problems, so it's stubbed out pub const PIBIO_STORAGE_DETACH_FN = switch (@import("builtin").zig_backend) { .stage1 => fn () callconv(@import("std").os.windows.WINAPI) void, else => *const fn () callconv(@import("std").os.windows.WINAPI) void, }; // TODO: this function pointer causes dependency loop problems, so it's stubbed out pub const PIBIO_STORAGE_CLEAR_CONTEXT_FN = switch (@import("builtin").zig_backend) { .stage1 => fn () callconv(@import("std").os.windows.WINAPI) void, else => *const fn () callconv(@import("std").os.windows.WINAPI) void, }; // TODO: this function pointer causes dependency loop problems, so it's stubbed out pub const PIBIO_STORAGE_CREATE_DATABASE_FN = switch (@import("builtin").zig_backend) { .stage1 => fn () callconv(@import("std").os.windows.WINAPI) void, else => *const fn () callconv(@import("std").os.windows.WINAPI) void, }; // TODO: this function pointer causes dependency loop problems, so it's stubbed out pub const PIBIO_STORAGE_ERASE_DATABASE_FN = switch (@import("builtin").zig_backend) { .stage1 => fn () callconv(@import("std").os.windows.WINAPI) void, else => *const fn () callconv(@import("std").os.windows.WINAPI) void, }; // TODO: this function pointer causes dependency loop problems, so it's stubbed out pub const PIBIO_STORAGE_OPEN_DATABASE_FN = switch (@import("builtin").zig_backend) { .stage1 => fn () callconv(@import("std").os.windows.WINAPI) void, else => *const fn () callconv(@import("std").os.windows.WINAPI) void, }; // TODO: this function pointer causes dependency loop problems, so it's stubbed out pub const PIBIO_STORAGE_CLOSE_DATABASE_FN = switch (@import("builtin").zig_backend) { .stage1 => fn () callconv(@import("std").os.windows.WINAPI) void, else => *const fn () callconv(@import("std").os.windows.WINAPI) void, }; // TODO: this function pointer causes dependency loop problems, so it's stubbed out pub const PIBIO_STORAGE_GET_DATA_FORMAT_FN = switch (@import("builtin").zig_backend) { .stage1 => fn () callconv(@import("std").os.windows.WINAPI) void, else => *const fn () callconv(@import("std").os.windows.WINAPI) void, }; // TODO: this function pointer causes dependency loop problems, so it's stubbed out pub const PIBIO_STORAGE_GET_DATABASE_SIZE_FN = switch (@import("builtin").zig_backend) { .stage1 => fn () callconv(@import("std").os.windows.WINAPI) void, else => *const fn () callconv(@import("std").os.windows.WINAPI) void, }; // TODO: this function pointer causes dependency loop problems, so it's stubbed out pub const PIBIO_STORAGE_ADD_RECORD_FN = switch (@import("builtin").zig_backend) { .stage1 => fn () callconv(@import("std").os.windows.WINAPI) void, else => *const fn () callconv(@import("std").os.windows.WINAPI) void, }; // TODO: this function pointer causes dependency loop problems, so it's stubbed out pub const PIBIO_STORAGE_DELETE_RECORD_FN = switch (@import("builtin").zig_backend) { .stage1 => fn () callconv(@import("std").os.windows.WINAPI) void, else => *const fn () callconv(@import("std").os.windows.WINAPI) void, }; // TODO: this function pointer causes dependency loop problems, so it's stubbed out pub const PIBIO_STORAGE_QUERY_BY_SUBJECT_FN = switch (@import("builtin").zig_backend) { .stage1 => fn () callconv(@import("std").os.windows.WINAPI) void, else => *const fn () callconv(@import("std").os.windows.WINAPI) void, }; // TODO: this function pointer causes dependency loop problems, so it's stubbed out pub const PIBIO_STORAGE_QUERY_BY_CONTENT_FN = switch (@import("builtin").zig_backend) { .stage1 => fn () callconv(@import("std").os.windows.WINAPI) void, else => *const fn () callconv(@import("std").os.windows.WINAPI) void, }; // TODO: this function pointer causes dependency loop problems, so it's stubbed out pub const PIBIO_STORAGE_GET_RECORD_COUNT_FN = switch (@import("builtin").zig_backend) { .stage1 => fn () callconv(@import("std").os.windows.WINAPI) void, else => *const fn () callconv(@import("std").os.windows.WINAPI) void, }; // TODO: this function pointer causes dependency loop problems, so it's stubbed out pub const PIBIO_STORAGE_FIRST_RECORD_FN = switch (@import("builtin").zig_backend) { .stage1 => fn () callconv(@import("std").os.windows.WINAPI) void, else => *const fn () callconv(@import("std").os.windows.WINAPI) void, }; // TODO: this function pointer causes dependency loop problems, so it's stubbed out pub const PIBIO_STORAGE_NEXT_RECORD_FN = switch (@import("builtin").zig_backend) { .stage1 => fn () callconv(@import("std").os.windows.WINAPI) void, else => *const fn () callconv(@import("std").os.windows.WINAPI) void, }; // TODO: this function pointer causes dependency loop problems, so it's stubbed out pub const PIBIO_STORAGE_GET_CURRENT_RECORD_FN = switch (@import("builtin").zig_backend) { .stage1 => fn () callconv(@import("std").os.windows.WINAPI) void, else => *const fn () callconv(@import("std").os.windows.WINAPI) void, }; // TODO: this function pointer causes dependency loop problems, so it's stubbed out pub const PIBIO_STORAGE_CONTROL_UNIT_FN = switch (@import("builtin").zig_backend) { .stage1 => fn () callconv(@import("std").os.windows.WINAPI) void, else => *const fn () callconv(@import("std").os.windows.WINAPI) void, }; // TODO: this function pointer causes dependency loop problems, so it's stubbed out pub const PIBIO_STORAGE_CONTROL_UNIT_PRIVILEGED_FN = switch (@import("builtin").zig_backend) { .stage1 => fn () callconv(@import("std").os.windows.WINAPI) void, else => *const fn () callconv(@import("std").os.windows.WINAPI) void, }; // TODO: this function pointer causes dependency loop problems, so it's stubbed out pub const PIBIO_STORAGE_NOTIFY_POWER_CHANGE_FN = switch (@import("builtin").zig_backend) { .stage1 => fn () callconv(@import("std").os.windows.WINAPI) void, else => *const fn () callconv(@import("std").os.windows.WINAPI) void, }; // TODO: this function pointer causes dependency loop problems, so it's stubbed out pub const PIBIO_STORAGE_PIPELINE_INIT_FN = switch (@import("builtin").zig_backend) { .stage1 => fn () callconv(@import("std").os.windows.WINAPI) void, else => *const fn () callconv(@import("std").os.windows.WINAPI) void, }; // TODO: this function pointer causes dependency loop problems, so it's stubbed out pub const PIBIO_STORAGE_PIPELINE_CLEANUP_FN = switch (@import("builtin").zig_backend) { .stage1 => fn () callconv(@import("std").os.windows.WINAPI) void, else => *const fn () callconv(@import("std").os.windows.WINAPI) void, }; // TODO: this function pointer causes dependency loop problems, so it's stubbed out pub const PIBIO_STORAGE_ACTIVATE_FN = switch (@import("builtin").zig_backend) { .stage1 => fn () callconv(@import("std").os.windows.WINAPI) void, else => *const fn () callconv(@import("std").os.windows.WINAPI) void, }; // TODO: this function pointer causes dependency loop problems, so it's stubbed out pub const PIBIO_STORAGE_DEACTIVATE_FN = switch (@import("builtin").zig_backend) { .stage1 => fn () callconv(@import("std").os.windows.WINAPI) void, else => *const fn () callconv(@import("std").os.windows.WINAPI) void, }; // TODO: this function pointer causes dependency loop problems, so it's stubbed out pub const PIBIO_STORAGE_QUERY_EXTENDED_INFO_FN = switch (@import("builtin").zig_backend) { .stage1 => fn () callconv(@import("std").os.windows.WINAPI) void, else => *const fn () callconv(@import("std").os.windows.WINAPI) void, }; // TODO: this function pointer causes dependency loop problems, so it's stubbed out pub const PIBIO_STORAGE_NOTIFY_DATABASE_CHANGE_FN = switch (@import("builtin").zig_backend) { .stage1 => fn () callconv(@import("std").os.windows.WINAPI) void, else => *const fn () callconv(@import("std").os.windows.WINAPI) void, }; // TODO: this function pointer causes dependency loop problems, so it's stubbed out pub const PIBIO_STORAGE_RESERVED_1_FN = switch (@import("builtin").zig_backend) { .stage1 => fn () callconv(@import("std").os.windows.WINAPI) void, else => *const fn () callconv(@import("std").os.windows.WINAPI) void, }; // TODO: this function pointer causes dependency loop problems, so it's stubbed out pub const PIBIO_STORAGE_RESERVED_2_FN = switch (@import("builtin").zig_backend) { .stage1 => fn () callconv(@import("std").os.windows.WINAPI) void, else => *const fn () callconv(@import("std").os.windows.WINAPI) void, }; // TODO: this function pointer causes dependency loop problems, so it's stubbed out pub const PIBIO_STORAGE_UPDATE_RECORD_BEGIN_FN = switch (@import("builtin").zig_backend) { .stage1 => fn () callconv(@import("std").os.windows.WINAPI) void, else => *const fn () callconv(@import("std").os.windows.WINAPI) void, }; // TODO: this function pointer causes dependency loop problems, so it's stubbed out pub const PIBIO_STORAGE_UPDATE_RECORD_COMMIT_FN = switch (@import("builtin").zig_backend) { .stage1 => fn () callconv(@import("std").os.windows.WINAPI) void, else => *const fn () callconv(@import("std").os.windows.WINAPI) void, }; pub const WINBIO_STORAGE_INTERFACE = extern struct { Version: WINBIO_ADAPTER_INTERFACE_VERSION, Type: u32, Size: usize, AdapterId: Guid, Attach: ?PIBIO_STORAGE_ATTACH_FN, Detach: ?PIBIO_STORAGE_DETACH_FN, ClearContext: ?PIBIO_STORAGE_CLEAR_CONTEXT_FN, CreateDatabase: ?PIBIO_STORAGE_CREATE_DATABASE_FN, EraseDatabase: ?PIBIO_STORAGE_ERASE_DATABASE_FN, OpenDatabase: ?PIBIO_STORAGE_OPEN_DATABASE_FN, CloseDatabase: ?PIBIO_STORAGE_CLOSE_DATABASE_FN, GetDataFormat: ?PIBIO_STORAGE_GET_DATA_FORMAT_FN, GetDatabaseSize: ?PIBIO_STORAGE_GET_DATABASE_SIZE_FN, AddRecord: ?PIBIO_STORAGE_ADD_RECORD_FN, DeleteRecord: ?PIBIO_STORAGE_DELETE_RECORD_FN, QueryBySubject: ?PIBIO_STORAGE_QUERY_BY_SUBJECT_FN, QueryByContent: ?PIBIO_STORAGE_QUERY_BY_CONTENT_FN, GetRecordCount: ?PIBIO_STORAGE_GET_RECORD_COUNT_FN, FirstRecord: ?PIBIO_STORAGE_FIRST_RECORD_FN, NextRecord: ?PIBIO_STORAGE_NEXT_RECORD_FN, GetCurrentRecord: ?PIBIO_STORAGE_GET_CURRENT_RECORD_FN, ControlUnit: ?PIBIO_STORAGE_CONTROL_UNIT_FN, ControlUnitPrivileged: ?PIBIO_STORAGE_CONTROL_UNIT_PRIVILEGED_FN, NotifyPowerChange: ?PIBIO_STORAGE_NOTIFY_POWER_CHANGE_FN, PipelineInit: ?PIBIO_STORAGE_PIPELINE_INIT_FN, PipelineCleanup: ?PIBIO_STORAGE_PIPELINE_CLEANUP_FN, Activate: ?PIBIO_STORAGE_ACTIVATE_FN, Deactivate: ?PIBIO_STORAGE_DEACTIVATE_FN, QueryExtendedInfo: ?PIBIO_STORAGE_QUERY_EXTENDED_INFO_FN, NotifyDatabaseChange: ?PIBIO_STORAGE_NOTIFY_DATABASE_CHANGE_FN, Reserved1: ?PIBIO_STORAGE_RESERVED_1_FN, Reserved2: ?PIBIO_STORAGE_RESERVED_2_FN, UpdateRecordBegin: ?PIBIO_STORAGE_UPDATE_RECORD_BEGIN_FN, UpdateRecordCommit: ?PIBIO_STORAGE_UPDATE_RECORD_COMMIT_FN, }; pub const PWINBIO_QUERY_STORAGE_INTERFACE_FN = switch (@import("builtin").zig_backend) { .stage1 => fn ( StorageInterface: ?*?*WINBIO_STORAGE_INTERFACE, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( StorageInterface: ?*?*WINBIO_STORAGE_INTERFACE, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }; // TODO: this function pointer causes dependency loop problems, so it's stubbed out pub const PIBIO_FRAMEWORK_SET_UNIT_STATUS_FN = switch (@import("builtin").zig_backend) { .stage1 => fn () callconv(@import("std").os.windows.WINAPI) void, else => *const fn () callconv(@import("std").os.windows.WINAPI) void, }; // TODO: this function pointer causes dependency loop problems, so it's stubbed out pub const PIBIO_FRAMEWORK_VSM_CACHE_CLEAR_FN = switch (@import("builtin").zig_backend) { .stage1 => fn () callconv(@import("std").os.windows.WINAPI) void, else => *const fn () callconv(@import("std").os.windows.WINAPI) void, }; // TODO: this function pointer causes dependency loop problems, so it's stubbed out pub const PIBIO_FRAMEWORK_VSM_CACHE_IMPORT_BEGIN_FN = switch (@import("builtin").zig_backend) { .stage1 => fn () callconv(@import("std").os.windows.WINAPI) void, else => *const fn () callconv(@import("std").os.windows.WINAPI) void, }; // TODO: this function pointer causes dependency loop problems, so it's stubbed out pub const PIBIO_FRAMEWORK_VSM_CACHE_IMPORT_NEXT_FN = switch (@import("builtin").zig_backend) { .stage1 => fn () callconv(@import("std").os.windows.WINAPI) void, else => *const fn () callconv(@import("std").os.windows.WINAPI) void, }; // TODO: this function pointer causes dependency loop problems, so it's stubbed out pub const PIBIO_FRAMEWORK_VSM_CACHE_IMPORT_END_FN = switch (@import("builtin").zig_backend) { .stage1 => fn () callconv(@import("std").os.windows.WINAPI) void, else => *const fn () callconv(@import("std").os.windows.WINAPI) void, }; // TODO: this function pointer causes dependency loop problems, so it's stubbed out pub const PIBIO_FRAMEWORK_VSM_CACHE_EXPORT_BEGIN_FN = switch (@import("builtin").zig_backend) { .stage1 => fn () callconv(@import("std").os.windows.WINAPI) void, else => *const fn () callconv(@import("std").os.windows.WINAPI) void, }; // TODO: this function pointer causes dependency loop problems, so it's stubbed out pub const PIBIO_FRAMEWORK_VSM_CACHE_EXPORT_NEXT_FN = switch (@import("builtin").zig_backend) { .stage1 => fn () callconv(@import("std").os.windows.WINAPI) void, else => *const fn () callconv(@import("std").os.windows.WINAPI) void, }; // TODO: this function pointer causes dependency loop problems, so it's stubbed out pub const PIBIO_FRAMEWORK_VSM_CACHE_EXPORT_END_FN = switch (@import("builtin").zig_backend) { .stage1 => fn () callconv(@import("std").os.windows.WINAPI) void, else => *const fn () callconv(@import("std").os.windows.WINAPI) void, }; // TODO: this function pointer causes dependency loop problems, so it's stubbed out pub const PIBIO_FRAMEWORK_VSM_STORAGE_RESERVED_1_FN = switch (@import("builtin").zig_backend) { .stage1 => fn () callconv(@import("std").os.windows.WINAPI) void, else => *const fn () callconv(@import("std").os.windows.WINAPI) void, }; // TODO: this function pointer causes dependency loop problems, so it's stubbed out pub const PIBIO_FRAMEWORK_VSM_STORAGE_RESERVED_2_FN = switch (@import("builtin").zig_backend) { .stage1 => fn () callconv(@import("std").os.windows.WINAPI) void, else => *const fn () callconv(@import("std").os.windows.WINAPI) void, }; // TODO: this function pointer causes dependency loop problems, so it's stubbed out pub const PIBIO_FRAMEWORK_VSM_STORAGE_RESERVED_3_FN = switch (@import("builtin").zig_backend) { .stage1 => fn () callconv(@import("std").os.windows.WINAPI) void, else => *const fn () callconv(@import("std").os.windows.WINAPI) void, }; // TODO: this function pointer causes dependency loop problems, so it's stubbed out pub const PIBIO_FRAMEWORK_ALLOCATE_MEMORY_FN = switch (@import("builtin").zig_backend) { .stage1 => fn () callconv(@import("std").os.windows.WINAPI) void, else => *const fn () callconv(@import("std").os.windows.WINAPI) void, }; // TODO: this function pointer causes dependency loop problems, so it's stubbed out pub const PIBIO_FRAMEWORK_FREE_MEMORY_FN = switch (@import("builtin").zig_backend) { .stage1 => fn () callconv(@import("std").os.windows.WINAPI) void, else => *const fn () callconv(@import("std").os.windows.WINAPI) void, }; // TODO: this function pointer causes dependency loop problems, so it's stubbed out pub const PIBIO_FRAMEWORK_GET_PROPERTY_FN = switch (@import("builtin").zig_backend) { .stage1 => fn () callconv(@import("std").os.windows.WINAPI) void, else => *const fn () callconv(@import("std").os.windows.WINAPI) void, }; // TODO: this function pointer causes dependency loop problems, so it's stubbed out pub const PIBIO_FRAMEWORK_LOCK_AND_VALIDATE_SECURE_BUFFER_FN = switch (@import("builtin").zig_backend) { .stage1 => fn () callconv(@import("std").os.windows.WINAPI) void, else => *const fn () callconv(@import("std").os.windows.WINAPI) void, }; // TODO: this function pointer causes dependency loop problems, so it's stubbed out pub const PIBIO_FRAMEWORK_RELEASE_SECURE_BUFFER_FN = switch (@import("builtin").zig_backend) { .stage1 => fn () callconv(@import("std").os.windows.WINAPI) void, else => *const fn () callconv(@import("std").os.windows.WINAPI) void, }; // TODO: this function pointer causes dependency loop problems, so it's stubbed out pub const PIBIO_FRAMEWORK_VSM_QUERY_AUTHORIZED_ENROLLMENTS_FN = switch (@import("builtin").zig_backend) { .stage1 => fn () callconv(@import("std").os.windows.WINAPI) void, else => *const fn () callconv(@import("std").os.windows.WINAPI) void, }; // TODO: this function pointer causes dependency loop problems, so it's stubbed out pub const PIBIO_FRAMEWORK_VSM_DECRYPT_SAMPLE_FN = switch (@import("builtin").zig_backend) { .stage1 => fn () callconv(@import("std").os.windows.WINAPI) void, else => *const fn () callconv(@import("std").os.windows.WINAPI) void, }; pub const WINBIO_FRAMEWORK_INTERFACE = extern struct { Version: WINBIO_ADAPTER_INTERFACE_VERSION, Type: u32, Size: usize, AdapterId: Guid, SetUnitStatus: ?PIBIO_FRAMEWORK_SET_UNIT_STATUS_FN, VsmStorageAttach: ?PIBIO_STORAGE_ATTACH_FN, VsmStorageDetach: ?PIBIO_STORAGE_DETACH_FN, VsmStorageClearContext: ?PIBIO_STORAGE_CLEAR_CONTEXT_FN, VsmStorageCreateDatabase: ?PIBIO_STORAGE_CREATE_DATABASE_FN, VsmStorageOpenDatabase: ?PIBIO_STORAGE_OPEN_DATABASE_FN, VsmStorageCloseDatabase: ?PIBIO_STORAGE_CLOSE_DATABASE_FN, VsmStorageDeleteRecord: ?PIBIO_STORAGE_DELETE_RECORD_FN, VsmStorageNotifyPowerChange: ?PIBIO_STORAGE_NOTIFY_POWER_CHANGE_FN, VsmStoragePipelineInit: ?PIBIO_STORAGE_PIPELINE_INIT_FN, VsmStoragePipelineCleanup: ?PIBIO_STORAGE_PIPELINE_CLEANUP_FN, VsmStorageActivate: ?PIBIO_STORAGE_ACTIVATE_FN, VsmStorageDeactivate: ?PIBIO_STORAGE_DEACTIVATE_FN, VsmStorageQueryExtendedInfo: ?PIBIO_STORAGE_QUERY_EXTENDED_INFO_FN, VsmStorageCacheClear: ?PIBIO_FRAMEWORK_VSM_CACHE_CLEAR_FN, VsmStorageCacheImportBegin: ?PIBIO_FRAMEWORK_VSM_CACHE_IMPORT_BEGIN_FN, VsmStorageCacheImportNext: ?PIBIO_FRAMEWORK_VSM_CACHE_IMPORT_NEXT_FN, VsmStorageCacheImportEnd: ?PIBIO_FRAMEWORK_VSM_CACHE_IMPORT_END_FN, VsmStorageCacheExportBegin: ?PIBIO_FRAMEWORK_VSM_CACHE_EXPORT_BEGIN_FN, VsmStorageCacheExportNext: ?PIBIO_FRAMEWORK_VSM_CACHE_EXPORT_NEXT_FN, VsmStorageCacheExportEnd: ?PIBIO_FRAMEWORK_VSM_CACHE_EXPORT_END_FN, VsmSensorAttach: ?PIBIO_SENSOR_ATTACH_FN, VsmSensorDetach: ?PIBIO_SENSOR_DETACH_FN, VsmSensorClearContext: ?PIBIO_SENSOR_CLEAR_CONTEXT_FN, VsmSensorPushDataToEngine: ?PIBIO_SENSOR_PUSH_DATA_TO_ENGINE_FN, VsmSensorNotifyPowerChange: ?PIBIO_SENSOR_NOTIFY_POWER_CHANGE_FN, VsmSensorPipelineInit: ?PIBIO_SENSOR_PIPELINE_INIT_FN, VsmSensorPipelineCleanup: ?PIBIO_SENSOR_PIPELINE_CLEANUP_FN, VsmSensorActivate: ?PIBIO_SENSOR_ACTIVATE_FN, VsmSensorDeactivate: ?PIBIO_SENSOR_DEACTIVATE_FN, VsmSensorAsyncImportRawBuffer: ?PIBIO_SENSOR_ASYNC_IMPORT_RAW_BUFFER_FN, VsmSensorAsyncImportSecureBuffer: ?PIBIO_SENSOR_ASYNC_IMPORT_SECURE_BUFFER_FN, Reserved1: ?PIBIO_FRAMEWORK_VSM_STORAGE_RESERVED_1_FN, Reserved2: ?PIBIO_FRAMEWORK_VSM_STORAGE_RESERVED_2_FN, Reserved3: ?PIBIO_FRAMEWORK_VSM_STORAGE_RESERVED_3_FN, Reserved4: ?PIBIO_STORAGE_RESERVED_1_FN, Reserved5: ?PIBIO_STORAGE_RESERVED_2_FN, AllocateMemory: ?PIBIO_FRAMEWORK_ALLOCATE_MEMORY_FN, FreeMemory: ?PIBIO_FRAMEWORK_FREE_MEMORY_FN, GetProperty: ?PIBIO_FRAMEWORK_GET_PROPERTY_FN, LockAndValidateSecureBuffer: ?PIBIO_FRAMEWORK_LOCK_AND_VALIDATE_SECURE_BUFFER_FN, ReleaseSecureBuffer: ?PIBIO_FRAMEWORK_RELEASE_SECURE_BUFFER_FN, QueryAuthorizedEnrollments: ?PIBIO_FRAMEWORK_VSM_QUERY_AUTHORIZED_ENROLLMENTS_FN, DecryptSample: ?PIBIO_FRAMEWORK_VSM_DECRYPT_SAMPLE_FN, }; pub const WINBIO_SENSOR_ATTRIBUTES = extern struct { PayloadSize: u32, WinBioHresult: HRESULT, WinBioVersion: WINBIO_VERSION, SensorType: u32, SensorSubType: u32, Capabilities: u32, ManufacturerName: [256]u16, ModelName: [256]u16, SerialNumber: [256]u16, FirmwareVersion: WINBIO_VERSION, SupportedFormatEntries: u32, SupportedFormat: [1]WINBIO_REGISTERED_FORMAT, }; pub const WINBIO_DATA = extern struct { Size: u32, Data: [1]u8, }; pub const WINBIO_UPDATE_FIRMWARE = extern struct { PayloadSize: u32, FirmwareData: WINBIO_DATA, }; pub const WINBIO_CALIBRATION_INFO = extern struct { PayloadSize: u32, WinBioHresult: HRESULT, CalibrationData: WINBIO_DATA, }; pub const WINBIO_DIAGNOSTICS = extern struct { PayloadSize: u32, WinBioHresult: HRESULT, SensorStatus: u32, VendorDiagnostics: WINBIO_DATA, }; pub const WINBIO_BLANK_PAYLOAD = extern struct { PayloadSize: u32, WinBioHresult: HRESULT, }; pub const WINBIO_CAPTURE_PARAMETERS = extern struct { PayloadSize: u32, Purpose: u8, Format: WINBIO_REGISTERED_FORMAT, VendorFormat: Guid, Flags: u8, }; pub const WINBIO_CAPTURE_DATA = extern struct { PayloadSize: u32, WinBioHresult: HRESULT, SensorStatus: u32, RejectDetail: u32, CaptureData: WINBIO_DATA, }; pub const WINBIO_SUPPORTED_ALGORITHMS = extern struct { PayloadSize: u32, WinBioHresult: HRESULT, NumberOfAlgorithms: u32, AlgorithmData: WINBIO_DATA, }; pub const WINBIO_GET_INDICATOR = extern struct { PayloadSize: u32, WinBioHresult: HRESULT, IndicatorStatus: u32, }; pub const WINBIO_SET_INDICATOR = extern struct { PayloadSize: u32, IndicatorStatus: u32, }; pub const WINBIO_PRIVATE_SENSOR_TYPE_INFO = extern struct { PayloadSize: u32, WinBioHresult: HRESULT, PrivateSensorTypeInfo: WINBIO_DATA, }; pub const WINBIO_ENCRYPTED_CAPTURE_PARAMS = extern struct { PayloadSize: u32, Purpose: u8, Format: WINBIO_REGISTERED_FORMAT, VendorFormat: Guid, Flags: u8, NonceSize: u32, }; pub const WINBIO_NOTIFY_WAKE = extern struct { PayloadSize: u32, WinBioHresult: HRESULT, Reason: u32, }; //-------------------------------------------------------------------------------- // Section: Functions (54) //-------------------------------------------------------------------------------- // TODO: this type is limited to platform 'windows6.1' pub extern "winbio" fn WinBioEnumServiceProviders( Factor: u32, BspSchemaArray: ?*?*WINBIO_BSP_SCHEMA, BspCount: ?*usize, ) callconv(@import("std").os.windows.WINAPI) HRESULT; // TODO: this type is limited to platform 'windows6.1' pub extern "winbio" fn WinBioEnumBiometricUnits( Factor: u32, UnitSchemaArray: ?*?*WINBIO_UNIT_SCHEMA, UnitCount: ?*usize, ) callconv(@import("std").os.windows.WINAPI) HRESULT; // TODO: this type is limited to platform 'windows6.1' pub extern "winbio" fn WinBioEnumDatabases( Factor: u32, StorageSchemaArray: ?*?*WINBIO_STORAGE_SCHEMA, StorageCount: ?*usize, ) callconv(@import("std").os.windows.WINAPI) HRESULT; // TODO: this type is limited to platform 'windows8.0' pub extern "winbio" fn WinBioAsyncOpenFramework( NotificationMethod: WINBIO_ASYNC_NOTIFICATION_METHOD, TargetWindow: ?HWND, MessageCode: u32, CallbackRoutine: ?PWINBIO_ASYNC_COMPLETION_CALLBACK, UserData: ?*anyopaque, AsynchronousOpen: BOOL, FrameworkHandle: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT; // TODO: this type is limited to platform 'windows8.0' pub extern "winbio" fn WinBioCloseFramework( FrameworkHandle: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT; // TODO: this type is limited to platform 'windows8.0' pub extern "winbio" fn WinBioAsyncEnumServiceProviders( FrameworkHandle: u32, Factor: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT; // TODO: this type is limited to platform 'windows8.0' pub extern "winbio" fn WinBioAsyncEnumBiometricUnits( FrameworkHandle: u32, Factor: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT; // TODO: this type is limited to platform 'windows8.0' pub extern "winbio" fn WinBioAsyncEnumDatabases( FrameworkHandle: u32, Factor: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT; // TODO: this type is limited to platform 'windows8.0' pub extern "winbio" fn WinBioAsyncMonitorFrameworkChanges( FrameworkHandle: u32, ChangeTypes: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT; // TODO: this type is limited to platform 'windows6.1' pub extern "winbio" fn WinBioOpenSession( Factor: u32, PoolType: WINBIO_POOL, Flags: u32, UnitArray: ?[*]u32, UnitCount: usize, DatabaseId: ?*Guid, SessionHandle: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT; // TODO: this type is limited to platform 'windows8.0' pub extern "winbio" fn WinBioAsyncOpenSession( Factor: u32, PoolType: WINBIO_POOL, Flags: u32, UnitArray: ?[*]u32, UnitCount: usize, DatabaseId: ?*Guid, NotificationMethod: WINBIO_ASYNC_NOTIFICATION_METHOD, TargetWindow: ?HWND, MessageCode: u32, CallbackRoutine: ?PWINBIO_ASYNC_COMPLETION_CALLBACK, UserData: ?*anyopaque, AsynchronousOpen: BOOL, SessionHandle: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT; // TODO: this type is limited to platform 'windows6.1' pub extern "winbio" fn WinBioCloseSession( SessionHandle: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT; // TODO: this type is limited to platform 'windows6.1' pub extern "winbio" fn WinBioVerify( SessionHandle: u32, Identity: ?*WINBIO_IDENTITY, SubFactor: u8, UnitId: ?*u32, Match: ?*u8, RejectDetail: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT; // TODO: this type is limited to platform 'windows6.1' pub extern "winbio" fn WinBioVerifyWithCallback( SessionHandle: u32, Identity: ?*WINBIO_IDENTITY, SubFactor: u8, VerifyCallback: ?PWINBIO_VERIFY_CALLBACK, VerifyCallbackContext: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) HRESULT; // TODO: this type is limited to platform 'windows6.1' pub extern "winbio" fn WinBioIdentify( SessionHandle: u32, UnitId: ?*u32, Identity: ?*WINBIO_IDENTITY, SubFactor: ?*u8, RejectDetail: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT; // TODO: this type is limited to platform 'windows6.1' pub extern "winbio" fn WinBioIdentifyWithCallback( SessionHandle: u32, IdentifyCallback: ?PWINBIO_IDENTIFY_CALLBACK, IdentifyCallbackContext: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) HRESULT; // TODO: this type is limited to platform 'windows6.1' pub extern "winbio" fn WinBioWait( SessionHandle: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT; // TODO: this type is limited to platform 'windows6.1' pub extern "winbio" fn WinBioCancel( SessionHandle: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT; // TODO: this type is limited to platform 'windows6.1' pub extern "winbio" fn WinBioLocateSensor( SessionHandle: u32, UnitId: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT; // TODO: this type is limited to platform 'windows6.1' pub extern "winbio" fn WinBioLocateSensorWithCallback( SessionHandle: u32, LocateCallback: ?PWINBIO_LOCATE_SENSOR_CALLBACK, LocateCallbackContext: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) HRESULT; // TODO: this type is limited to platform 'windows6.1' pub extern "winbio" fn WinBioEnrollBegin( SessionHandle: u32, SubFactor: u8, UnitId: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT; // TODO: this type is limited to platform 'windows10.0.10240' pub extern "winbio" fn WinBioEnrollSelect( SessionHandle: u32, SelectorValue: u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT; // TODO: this type is limited to platform 'windows6.1' pub extern "winbio" fn WinBioEnrollCapture( SessionHandle: u32, RejectDetail: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT; // TODO: this type is limited to platform 'windows6.1' pub extern "winbio" fn WinBioEnrollCaptureWithCallback( SessionHandle: u32, EnrollCallback: ?PWINBIO_ENROLL_CAPTURE_CALLBACK, EnrollCallbackContext: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) HRESULT; // TODO: this type is limited to platform 'windows6.1' pub extern "winbio" fn WinBioEnrollCommit( SessionHandle: u32, Identity: ?*WINBIO_IDENTITY, IsNewTemplate: ?*u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT; // TODO: this type is limited to platform 'windows6.1' pub extern "winbio" fn WinBioEnrollDiscard( SessionHandle: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT; // TODO: this type is limited to platform 'windows6.1' pub extern "winbio" fn WinBioEnumEnrollments( SessionHandle: u32, UnitId: u32, Identity: ?*WINBIO_IDENTITY, SubFactorArray: ?*?*u8, SubFactorCount: ?*usize, ) callconv(@import("std").os.windows.WINAPI) HRESULT; pub extern "winbio" fn WinBioImproveBegin( SessionHandle: u32, UnitId: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT; pub extern "winbio" fn WinBioImproveEnd( SessionHandle: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT; // TODO: this type is limited to platform 'windows6.1' pub extern "winbio" fn WinBioRegisterEventMonitor( SessionHandle: u32, EventMask: u32, EventCallback: ?PWINBIO_EVENT_CALLBACK, EventCallbackContext: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) HRESULT; // TODO: this type is limited to platform 'windows6.1' pub extern "winbio" fn WinBioUnregisterEventMonitor( SessionHandle: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT; // TODO: this type is limited to platform 'windows10.0.10240' pub extern "winbio" fn WinBioMonitorPresence( SessionHandle: u32, UnitId: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT; // TODO: this type is limited to platform 'windows6.1' pub extern "winbio" fn WinBioCaptureSample( SessionHandle: u32, Purpose: u8, Flags: u8, UnitId: ?*u32, Sample: ?*?*WINBIO_BIR, SampleSize: ?*usize, RejectDetail: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT; // TODO: this type is limited to platform 'windows6.1' pub extern "winbio" fn WinBioCaptureSampleWithCallback( SessionHandle: u32, Purpose: u8, Flags: u8, CaptureCallback: ?PWINBIO_CAPTURE_CALLBACK, CaptureCallbackContext: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) HRESULT; // TODO: this type is limited to platform 'windows6.1' pub extern "winbio" fn WinBioDeleteTemplate( SessionHandle: u32, UnitId: u32, Identity: ?*WINBIO_IDENTITY, SubFactor: u8, ) callconv(@import("std").os.windows.WINAPI) HRESULT; // TODO: this type is limited to platform 'windows6.1' pub extern "winbio" fn WinBioLockUnit( SessionHandle: u32, UnitId: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT; // TODO: this type is limited to platform 'windows6.1' pub extern "winbio" fn WinBioUnlockUnit( SessionHandle: u32, UnitId: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT; // TODO: this type is limited to platform 'windows6.1' pub extern "winbio" fn WinBioControlUnit( SessionHandle: u32, UnitId: u32, Component: WINBIO_COMPONENT, ControlCode: u32, // TODO: what to do with BytesParamIndex 5? SendBuffer: ?*u8, SendBufferSize: usize, // TODO: what to do with BytesParamIndex 7? ReceiveBuffer: ?*u8, ReceiveBufferSize: usize, ReceiveDataSize: ?*usize, OperationStatus: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT; // TODO: this type is limited to platform 'windows6.1' pub extern "winbio" fn WinBioControlUnitPrivileged( SessionHandle: u32, UnitId: u32, Component: WINBIO_COMPONENT, ControlCode: u32, // TODO: what to do with BytesParamIndex 5? SendBuffer: ?*u8, SendBufferSize: usize, // TODO: what to do with BytesParamIndex 7? ReceiveBuffer: ?*u8, ReceiveBufferSize: usize, ReceiveDataSize: ?*usize, OperationStatus: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT; // TODO: this type is limited to platform 'windows6.1' pub extern "winbio" fn WinBioGetProperty( SessionHandle: u32, PropertyType: u32, PropertyId: u32, UnitId: u32, Identity: ?*WINBIO_IDENTITY, SubFactor: u8, PropertyBuffer: ?*?*anyopaque, PropertyBufferSize: ?*usize, ) callconv(@import("std").os.windows.WINAPI) HRESULT; // TODO: this type is limited to platform 'windows10.0.10240' pub extern "winbio" fn WinBioSetProperty( SessionHandle: u32, PropertyType: u32, PropertyId: u32, UnitId: u32, Identity: ?*WINBIO_IDENTITY, SubFactor: u8, // TODO: what to do with BytesParamIndex 7? PropertyBuffer: ?*anyopaque, PropertyBufferSize: usize, ) callconv(@import("std").os.windows.WINAPI) HRESULT; // TODO: this type is limited to platform 'windows6.1' pub extern "winbio" fn WinBioFree( Address: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) HRESULT; // TODO: this type is limited to platform 'windows8.1' pub extern "winbio" fn WinBioSetCredential( Type: WINBIO_CREDENTIAL_TYPE, // TODO: what to do with BytesParamIndex 2? Credential: ?*u8, CredentialSize: usize, Format: WINBIO_CREDENTIAL_FORMAT, ) callconv(@import("std").os.windows.WINAPI) HRESULT; // TODO: this type is limited to platform 'windows6.1' pub extern "winbio" fn WinBioRemoveCredential( Identity: WINBIO_IDENTITY, Type: WINBIO_CREDENTIAL_TYPE, ) callconv(@import("std").os.windows.WINAPI) HRESULT; // TODO: this type is limited to platform 'windows6.1' pub extern "winbio" fn WinBioRemoveAllCredentials() callconv(@import("std").os.windows.WINAPI) HRESULT; // TODO: this type is limited to platform 'windows6.1' pub extern "winbio" fn WinBioRemoveAllDomainCredentials() callconv(@import("std").os.windows.WINAPI) HRESULT; // TODO: this type is limited to platform 'windows6.1' pub extern "winbio" fn WinBioGetCredentialState( Identity: WINBIO_IDENTITY, Type: WINBIO_CREDENTIAL_TYPE, CredentialState: ?*WINBIO_CREDENTIAL_STATE, ) callconv(@import("std").os.windows.WINAPI) HRESULT; // TODO: this type is limited to platform 'windows6.1' pub extern "winbio" fn WinBioLogonIdentifiedUser( SessionHandle: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT; // TODO: this type is limited to platform 'windows10.0.10240' pub extern "winbio" fn WinBioGetEnrolledFactors( AccountOwner: ?*WINBIO_IDENTITY, EnrolledFactors: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT; // TODO: this type is limited to platform 'windows6.1' pub extern "winbio" fn WinBioGetEnabledSetting( Value: ?*u8, Source: ?*WINBIO_SETTING_SOURCE, ) callconv(@import("std").os.windows.WINAPI) void; // TODO: this type is limited to platform 'windows6.1' pub extern "winbio" fn WinBioGetLogonSetting( Value: ?*u8, Source: ?*WINBIO_SETTING_SOURCE, ) callconv(@import("std").os.windows.WINAPI) void; // TODO: this type is limited to platform 'windows6.1' pub extern "winbio" fn WinBioGetDomainLogonSetting( Value: ?*u8, Source: ?*WINBIO_SETTING_SOURCE, ) callconv(@import("std").os.windows.WINAPI) void; // TODO: this type is limited to platform 'windows6.1' pub extern "winbio" fn WinBioAcquireFocus() callconv(@import("std").os.windows.WINAPI) HRESULT; // TODO: this type is limited to platform 'windows6.1' pub extern "winbio" fn WinBioReleaseFocus() callconv(@import("std").os.windows.WINAPI) HRESULT; //-------------------------------------------------------------------------------- // Section: Unicode Aliases (0) //-------------------------------------------------------------------------------- const thismodule = @This(); pub usingnamespace switch (@import("../zig.zig").unicode_mode) { .ansi => struct {}, .wide => struct {}, .unspecified => if (@import("builtin").is_test) struct {} else struct {}, }; //-------------------------------------------------------------------------------- // Section: Imports (9) //-------------------------------------------------------------------------------- const Guid = @import("../zig.zig").Guid; const BOOL = @import("../foundation.zig").BOOL; const BOOLEAN = @import("../foundation.zig").BOOLEAN; const HANDLE = @import("../foundation.zig").HANDLE; const HRESULT = @import("../foundation.zig").HRESULT; const HWND = @import("../foundation.zig").HWND; const LARGE_INTEGER = @import("../foundation.zig").LARGE_INTEGER; const POINT = @import("../foundation.zig").POINT; const RECT = @import("../foundation.zig").RECT; test { // The following '_ = <FuncPtrType>' lines are a workaround for https://github.com/ziglang/zig/issues/4476 if (@hasDecl(@This(), "PWINBIO_ASYNC_COMPLETION_CALLBACK")) { _ = PWINBIO_ASYNC_COMPLETION_CALLBACK; } if (@hasDecl(@This(), "PWINBIO_VERIFY_CALLBACK")) { _ = PWINBIO_VERIFY_CALLBACK; } if (@hasDecl(@This(), "PWINBIO_IDENTIFY_CALLBACK")) { _ = PWINBIO_IDENTIFY_CALLBACK; } if (@hasDecl(@This(), "PWINBIO_LOCATE_SENSOR_CALLBACK")) { _ = PWINBIO_LOCATE_SENSOR_CALLBACK; } if (@hasDecl(@This(), "PWINBIO_ENROLL_CAPTURE_CALLBACK")) { _ = PWINBIO_ENROLL_CAPTURE_CALLBACK; } if (@hasDecl(@This(), "PWINBIO_EVENT_CALLBACK")) { _ = PWINBIO_EVENT_CALLBACK; } if (@hasDecl(@This(), "PWINBIO_CAPTURE_CALLBACK")) { _ = PWINBIO_CAPTURE_CALLBACK; } if (@hasDecl(@This(), "PWINBIO_QUERY_SENSOR_INTERFACE_FN")) { _ = PWINBIO_QUERY_SENSOR_INTERFACE_FN; } if (@hasDecl(@This(), "PWINBIO_QUERY_ENGINE_INTERFACE_FN")) { _ = PWINBIO_QUERY_ENGINE_INTERFACE_FN; } if (@hasDecl(@This(), "PWINBIO_QUERY_STORAGE_INTERFACE_FN")) { _ = PWINBIO_QUERY_STORAGE_INTERFACE_FN; } @setEvalBranchQuota(comptime @import("std").meta.declarations(@This()).len * 3); // reference all the pub declarations if (!@import("builtin").is_test) return; inline for (comptime @import("std").meta.declarations(@This())) |decl| { if (decl.is_pub) { _ = @field(@This(), decl.name); } } }
0
repos/capy/vendor/zigwin32/win32
repos/capy/vendor/zigwin32/win32/devices/pwm.zig
//! NOTE: this file is autogenerated, DO NOT MODIFY //-------------------------------------------------------------------------------- // Section: Constants (21) //-------------------------------------------------------------------------------- pub const GUID_DEVINTERFACE_PWM_CONTROLLER = Guid.initString("60824b4c-eed1-4c9c-b49c-1b961461a819"); pub const IOCTL_PWM_CONTROLLER_GET_INFO = @as(u32, 262144); pub const IOCTL_PWM_CONTROLLER_GET_ACTUAL_PERIOD = @as(u32, 262148); pub const IOCTL_PWM_CONTROLLER_SET_DESIRED_PERIOD = @as(u32, 294920); pub const IOCTL_PWM_PIN_GET_ACTIVE_DUTY_CYCLE_PERCENTAGE = @as(u32, 262544); pub const IOCTL_PWM_PIN_SET_ACTIVE_DUTY_CYCLE_PERCENTAGE = @as(u32, 295316); pub const IOCTL_PWM_PIN_GET_POLARITY = @as(u32, 262552); pub const IOCTL_PWM_PIN_SET_POLARITY = @as(u32, 295324); pub const IOCTL_PWM_PIN_START = @as(u32, 295331); pub const IOCTL_PWM_PIN_STOP = @as(u32, 295335); pub const IOCTL_PWM_PIN_IS_STARTED = @as(u32, 262568); pub const PWM_IOCTL_ID_CONTROLLER_GET_INFO = @as(i32, 0); pub const PWM_IOCTL_ID_CONTROLLER_GET_ACTUAL_PERIOD = @as(i32, 1); pub const PWM_IOCTL_ID_CONTROLLER_SET_DESIRED_PERIOD = @as(i32, 2); pub const PWM_IOCTL_ID_PIN_GET_ACTIVE_DUTY_CYCLE_PERCENTAGE = @as(i32, 100); pub const PWM_IOCTL_ID_PIN_SET_ACTIVE_DUTY_CYCLE_PERCENTAGE = @as(i32, 101); pub const PWM_IOCTL_ID_PIN_GET_POLARITY = @as(i32, 102); pub const PWM_IOCTL_ID_PIN_SET_POLARITY = @as(i32, 103); pub const PWM_IOCTL_ID_PIN_START = @as(i32, 104); pub const PWM_IOCTL_ID_PIN_STOP = @as(i32, 105); pub const PWM_IOCTL_ID_PIN_IS_STARTED = @as(i32, 106); //-------------------------------------------------------------------------------- // Section: Types (10) //-------------------------------------------------------------------------------- pub const PWM_CONTROLLER_INFO = extern struct { Size: usize, PinCount: u32, MinimumPeriod: u64, MaximumPeriod: u64, }; pub const PWM_CONTROLLER_GET_ACTUAL_PERIOD_OUTPUT = extern struct { ActualPeriod: u64, }; pub const PWM_CONTROLLER_SET_DESIRED_PERIOD_INPUT = extern struct { DesiredPeriod: u64, }; pub const PWM_CONTROLLER_SET_DESIRED_PERIOD_OUTPUT = extern struct { ActualPeriod: u64, }; pub const PWM_PIN_GET_ACTIVE_DUTY_CYCLE_PERCENTAGE_OUTPUT = extern struct { Percentage: u64, }; pub const PWM_PIN_SET_ACTIVE_DUTY_CYCLE_PERCENTAGE_INPUT = extern struct { Percentage: u64, }; pub const PWM_POLARITY = enum(i32) { HIGH = 0, LOW = 1, }; pub const PWM_ACTIVE_HIGH = PWM_POLARITY.HIGH; pub const PWM_ACTIVE_LOW = PWM_POLARITY.LOW; pub const PWM_PIN_GET_POLARITY_OUTPUT = extern struct { Polarity: PWM_POLARITY, }; pub const PWM_PIN_SET_POLARITY_INPUT = extern struct { Polarity: PWM_POLARITY, }; pub const PWM_PIN_IS_STARTED_OUTPUT = extern struct { IsStarted: BOOLEAN, }; //-------------------------------------------------------------------------------- // Section: Functions (0) //-------------------------------------------------------------------------------- //-------------------------------------------------------------------------------- // Section: Unicode Aliases (0) //-------------------------------------------------------------------------------- const thismodule = @This(); pub usingnamespace switch (@import("../zig.zig").unicode_mode) { .ansi => struct {}, .wide => struct {}, .unspecified => if (@import("builtin").is_test) struct {} else struct {}, }; //-------------------------------------------------------------------------------- // Section: Imports (2) //-------------------------------------------------------------------------------- const Guid = @import("../zig.zig").Guid; const BOOLEAN = @import("../foundation.zig").BOOLEAN; test { @setEvalBranchQuota(comptime @import("std").meta.declarations(@This()).len * 3); // reference all the pub declarations if (!@import("builtin").is_test) return; inline for (comptime @import("std").meta.declarations(@This())) |decl| { if (decl.is_pub) { _ = @field(@This(), decl.name); } } }
0
repos/capy/vendor/zigwin32/win32
repos/capy/vendor/zigwin32/win32/devices/portable_devices.zig
//! NOTE: this file is autogenerated, DO NOT MODIFY //-------------------------------------------------------------------------------- // Section: Constants (868) //-------------------------------------------------------------------------------- pub const DEVPKEY_MTPBTH_IsConnected = PROPERTYKEY{ .fmtid = Guid.initString("ea1237fa-589d-4472-84e4-0abe36fd62ef"), .pid = 2 }; pub const GUID_DEVINTERFACE_WPD = Guid.initString("6ac27878-a6fa-4155-ba85-f98f491d4f33"); pub const GUID_DEVINTERFACE_WPD_PRIVATE = Guid.initString("ba0c718f-4ded-49b7-bdd3-fabe28661211"); pub const GUID_DEVINTERFACE_WPD_SERVICE = Guid.initString("9ef44f80-3d64-4246-a6aa-206f328d1edc"); pub const WPD_CONTROL_FUNCTION_GENERIC_MESSAGE = @as(u32, 66); pub const IOCTL_WPD_MESSAGE_READWRITE_ACCESS = @as(u32, 4243720); pub const IOCTL_WPD_MESSAGE_READ_ACCESS = @as(u32, 4210952); pub const FACILITY_WPD = @as(u32, 42); pub const E_WPD_DEVICE_ALREADY_OPENED = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2144731135)); pub const E_WPD_DEVICE_NOT_OPEN = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2144731134)); pub const E_WPD_OBJECT_ALREADY_ATTACHED_TO_DEVICE = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2144731133)); pub const E_WPD_OBJECT_NOT_ATTACHED_TO_DEVICE = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2144731132)); pub const E_WPD_OBJECT_NOT_COMMITED = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2144731131)); pub const E_WPD_DEVICE_IS_HUNG = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2144731130)); pub const E_WPD_SMS_INVALID_RECIPIENT = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2144731036)); pub const E_WPD_SMS_INVALID_MESSAGE_BODY = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2144731035)); pub const E_WPD_SMS_SERVICE_UNAVAILABLE = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2144731034)); pub const E_WPD_SERVICE_ALREADY_OPENED = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2144730936)); pub const E_WPD_SERVICE_NOT_OPEN = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2144730935)); pub const E_WPD_OBJECT_ALREADY_ATTACHED_TO_SERVICE = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2144730934)); pub const E_WPD_OBJECT_NOT_ATTACHED_TO_SERVICE = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2144730933)); pub const E_WPD_SERVICE_BAD_PARAMETER_ORDER = @import("../zig.zig").typedConst(HRESULT, @as(i32, -2144730932)); pub const WPD_EVENT_NOTIFICATION = Guid.initString("2ba2e40a-6b4c-4295-bb43-26322b99aeb2"); pub const WPD_EVENT_OBJECT_ADDED = Guid.initString("a726da95-e207-4b02-8d44-bef2e86cbffc"); pub const WPD_EVENT_OBJECT_REMOVED = Guid.initString("be82ab88-a52c-4823-96e5-d0272671fc38"); pub const WPD_EVENT_OBJECT_UPDATED = Guid.initString("1445a759-2e01-485d-9f27-ff07dae697ab"); pub const WPD_EVENT_DEVICE_RESET = Guid.initString("7755cf53-c1ed-44f3-b5a2-451e2c376b27"); pub const WPD_EVENT_DEVICE_CAPABILITIES_UPDATED = Guid.initString("36885aa1-cd54-4daa-b3d0-afb3e03f5999"); pub const WPD_EVENT_STORAGE_FORMAT = Guid.initString("3782616b-22bc-4474-a251-3070f8d38857"); pub const WPD_EVENT_OBJECT_TRANSFER_REQUESTED = Guid.initString("8d16a0a1-f2c6-41da-8f19-5e53721adbf2"); pub const WPD_EVENT_DEVICE_REMOVED = Guid.initString("e4cbca1b-6918-48b9-85ee-02be7c850af9"); pub const WPD_EVENT_SERVICE_METHOD_COMPLETE = Guid.initString("8a33f5f8-0acc-4d9b-9cc4-112d353b86ca"); pub const WPD_CONTENT_TYPE_FUNCTIONAL_OBJECT = Guid.initString("99ed0160-17ff-4c44-9d98-1d7a6f941921"); pub const WPD_CONTENT_TYPE_FOLDER = Guid.initString("27e2e392-a111-48e0-ab0c-e17705a05f85"); pub const WPD_CONTENT_TYPE_IMAGE = Guid.initString("ef2107d5-a52a-4243-a26b-62d4176d7603"); pub const WPD_CONTENT_TYPE_DOCUMENT = Guid.initString("680adf52-950a-4041-9b41-65e393648155"); pub const WPD_CONTENT_TYPE_CONTACT = Guid.initString("eaba8313-4525-4707-9f0e-87c6808e9435"); pub const WPD_CONTENT_TYPE_CONTACT_GROUP = Guid.initString("346b8932-4c36-40d8-9415-1828291f9de9"); pub const WPD_CONTENT_TYPE_AUDIO = Guid.initString("4ad2c85e-5e2d-45e5-8864-4f229e3c6cf0"); pub const WPD_CONTENT_TYPE_VIDEO = Guid.initString("9261b03c-3d78-4519-85e3-02c5e1f50bb9"); pub const WPD_CONTENT_TYPE_TELEVISION = Guid.initString("60a169cf-f2ae-4e21-9375-9677f11c1c6e"); pub const WPD_CONTENT_TYPE_PLAYLIST = Guid.initString("1a33f7e4-af13-48f5-994e-77369dfe04a3"); pub const WPD_CONTENT_TYPE_MIXED_CONTENT_ALBUM = Guid.initString("00f0c3ac-a593-49ac-9219-24abca5a2563"); pub const WPD_CONTENT_TYPE_AUDIO_ALBUM = Guid.initString("aa18737e-5009-48fa-ae21-85f24383b4e6"); pub const WPD_CONTENT_TYPE_IMAGE_ALBUM = Guid.initString("75793148-15f5-4a30-a813-54ed8a37e226"); pub const WPD_CONTENT_TYPE_VIDEO_ALBUM = Guid.initString("012b0db7-d4c1-45d6-b081-94b87779614f"); pub const WPD_CONTENT_TYPE_MEMO = Guid.initString("9cd20ecf-3b50-414f-a641-e473ffe45751"); pub const WPD_CONTENT_TYPE_EMAIL = Guid.initString("8038044a-7e51-4f8f-883d-1d0623d14533"); pub const WPD_CONTENT_TYPE_APPOINTMENT = Guid.initString("0fed060e-8793-4b1e-90c9-48ac389ac631"); pub const WPD_CONTENT_TYPE_TASK = Guid.initString("63252f2c-887f-4cb6-b1ac-d29855dcef6c"); pub const WPD_CONTENT_TYPE_PROGRAM = Guid.initString("d269f96a-247c-4bff-98fb-97f3c49220e6"); pub const WPD_CONTENT_TYPE_GENERIC_FILE = Guid.initString("0085e0a6-8d34-45d7-bc5c-447e59c73d48"); pub const WPD_CONTENT_TYPE_CALENDAR = Guid.initString("a1fd5967-6023-49a0-9df1-f8060be751b0"); pub const WPD_CONTENT_TYPE_GENERIC_MESSAGE = Guid.initString("e80eaaf8-b2db-4133-b67e-1bef4b4a6e5f"); pub const WPD_CONTENT_TYPE_NETWORK_ASSOCIATION = Guid.initString("031da7ee-18c8-4205-847e-89a11261d0f3"); pub const WPD_CONTENT_TYPE_CERTIFICATE = Guid.initString("dc3876e8-a948-4060-9050-cbd77e8a3d87"); pub const WPD_CONTENT_TYPE_WIRELESS_PROFILE = Guid.initString("0bac070a-9f5f-4da4-a8f6-3de44d68fd6c"); pub const WPD_CONTENT_TYPE_MEDIA_CAST = Guid.initString("5e88b3cc-3e65-4e62-bfff-229495253ab0"); pub const WPD_CONTENT_TYPE_SECTION = Guid.initString("821089f5-1d91-4dc9-be3c-bbb1b35b18ce"); pub const WPD_CONTENT_TYPE_UNSPECIFIED = Guid.initString("28d8d31e-249c-454e-aabc-34883168e634"); pub const WPD_CONTENT_TYPE_ALL = Guid.initString("80e170d2-1055-4a3e-b952-82cc4f8a8689"); pub const WPD_FUNCTIONAL_CATEGORY_DEVICE = Guid.initString("08ea466b-e3a4-4336-a1f3-a44d2b5c438c"); pub const WPD_FUNCTIONAL_CATEGORY_STORAGE = Guid.initString("23f05bbc-15de-4c2a-a55b-a9af5ce412ef"); pub const WPD_FUNCTIONAL_CATEGORY_STILL_IMAGE_CAPTURE = Guid.initString("613ca327-ab93-4900-b4fa-895bb5874b79"); pub const WPD_FUNCTIONAL_CATEGORY_AUDIO_CAPTURE = Guid.initString("3f2a1919-c7c2-4a00-855d-f57cf06debbb"); pub const WPD_FUNCTIONAL_CATEGORY_VIDEO_CAPTURE = Guid.initString("e23e5f6b-7243-43aa-8df1-0eb3d968a918"); pub const WPD_FUNCTIONAL_CATEGORY_SMS = Guid.initString("0044a0b1-c1e9-4afd-b358-a62c6117c9cf"); pub const WPD_FUNCTIONAL_CATEGORY_RENDERING_INFORMATION = Guid.initString("08600ba4-a7ba-4a01-ab0e-0065d0a356d3"); pub const WPD_FUNCTIONAL_CATEGORY_NETWORK_CONFIGURATION = Guid.initString("48f4db72-7c6a-4ab0-9e1a-470e3cdbf26a"); pub const WPD_FUNCTIONAL_CATEGORY_ALL = Guid.initString("2d8a6512-a74c-448e-ba8a-f4ac07c49399"); pub const WPD_OBJECT_FORMAT_ICON = Guid.initString("077232ed-102c-4638-9c22-83f142bfc822"); pub const WPD_OBJECT_FORMAT_M4A = Guid.initString("30aba7ac-6ffd-4c23-a359-3e9b52f3f1c8"); pub const WPD_OBJECT_FORMAT_NETWORK_ASSOCIATION = Guid.initString("b1020000-ae6c-4804-98ba-c57b46965fe7"); pub const WPD_OBJECT_FORMAT_X509V3CERTIFICATE = Guid.initString("b1030000-ae6c-4804-98ba-c57b46965fe7"); pub const WPD_OBJECT_FORMAT_MICROSOFT_WFC = Guid.initString("b1040000-ae6c-4804-98ba-c57b46965fe7"); pub const WPD_OBJECT_FORMAT_3GPA = Guid.initString("e5172730-f971-41ef-a10b-2271a0019d7a"); pub const WPD_OBJECT_FORMAT_3G2A = Guid.initString("1a11202d-8759-4e34-ba5e-b1211087eee4"); pub const WPD_OBJECT_FORMAT_ALL = Guid.initString("c1f62eb2-4bb3-479c-9cfa-05b5f3a57b22"); pub const WPD_CATEGORY_NULL = Guid.initString("00000000-0000-0000-0000-000000000000"); pub const WPD_PROPERTY_NULL = PROPERTYKEY{ .fmtid = Guid.initString("00000000-0000-0000-0000-000000000000"), .pid = 0 }; pub const WPD_OBJECT_PROPERTIES_V1 = Guid.initString("ef6b490d-5cd8-437a-affc-da8b60ee4a3c"); pub const WPD_OBJECT_CONTENT_TYPE = PROPERTYKEY{ .fmtid = Guid.initString("ef6b490d-5cd8-437a-affc-da8b60ee4a3c"), .pid = 7 }; pub const WPD_OBJECT_REFERENCES = PROPERTYKEY{ .fmtid = Guid.initString("ef6b490d-5cd8-437a-affc-da8b60ee4a3c"), .pid = 14 }; pub const WPD_OBJECT_CONTAINER_FUNCTIONAL_OBJECT_ID = PROPERTYKEY{ .fmtid = Guid.initString("ef6b490d-5cd8-437a-affc-da8b60ee4a3c"), .pid = 23 }; pub const WPD_OBJECT_GENERATE_THUMBNAIL_FROM_RESOURCE = PROPERTYKEY{ .fmtid = Guid.initString("ef6b490d-5cd8-437a-affc-da8b60ee4a3c"), .pid = 24 }; pub const WPD_OBJECT_HINT_LOCATION_DISPLAY_NAME = PROPERTYKEY{ .fmtid = Guid.initString("ef6b490d-5cd8-437a-affc-da8b60ee4a3c"), .pid = 25 }; pub const WPD_OBJECT_PROPERTIES_V2 = Guid.initString("0373cd3d-4a46-40d7-b4d8-73e8da74e775"); pub const WPD_OBJECT_SUPPORTED_UNITS = PROPERTYKEY{ .fmtid = Guid.initString("0373cd3d-4a46-40d7-b4d8-73e8da74e775"), .pid = 2 }; pub const WPD_FUNCTIONAL_OBJECT_PROPERTIES_V1 = Guid.initString("8f052d93-abca-4fc5-a5ac-b01df4dbe598"); pub const WPD_FUNCTIONAL_OBJECT_CATEGORY = PROPERTYKEY{ .fmtid = Guid.initString("8f052d93-abca-4fc5-a5ac-b01df4dbe598"), .pid = 2 }; pub const WPD_STORAGE_OBJECT_PROPERTIES_V1 = Guid.initString("01a3057a-74d6-4e80-bea7-dc4c212ce50a"); pub const WPD_STORAGE_TYPE = PROPERTYKEY{ .fmtid = Guid.initString("01a3057a-74d6-4e80-bea7-dc4c212ce50a"), .pid = 2 }; pub const WPD_STORAGE_FILE_SYSTEM_TYPE = PROPERTYKEY{ .fmtid = Guid.initString("01a3057a-74d6-4e80-bea7-dc4c212ce50a"), .pid = 3 }; pub const WPD_STORAGE_CAPACITY = PROPERTYKEY{ .fmtid = Guid.initString("01a3057a-74d6-4e80-bea7-dc4c212ce50a"), .pid = 4 }; pub const WPD_STORAGE_FREE_SPACE_IN_BYTES = PROPERTYKEY{ .fmtid = Guid.initString("01a3057a-74d6-4e80-bea7-dc4c212ce50a"), .pid = 5 }; pub const WPD_STORAGE_FREE_SPACE_IN_OBJECTS = PROPERTYKEY{ .fmtid = Guid.initString("01a3057a-74d6-4e80-bea7-dc4c212ce50a"), .pid = 6 }; pub const WPD_STORAGE_DESCRIPTION = PROPERTYKEY{ .fmtid = Guid.initString("01a3057a-74d6-4e80-bea7-dc4c212ce50a"), .pid = 7 }; pub const WPD_STORAGE_SERIAL_NUMBER = PROPERTYKEY{ .fmtid = Guid.initString("01a3057a-74d6-4e80-bea7-dc4c212ce50a"), .pid = 8 }; pub const WPD_STORAGE_MAX_OBJECT_SIZE = PROPERTYKEY{ .fmtid = Guid.initString("01a3057a-74d6-4e80-bea7-dc4c212ce50a"), .pid = 9 }; pub const WPD_STORAGE_CAPACITY_IN_OBJECTS = PROPERTYKEY{ .fmtid = Guid.initString("01a3057a-74d6-4e80-bea7-dc4c212ce50a"), .pid = 10 }; pub const WPD_STORAGE_ACCESS_CAPABILITY = PROPERTYKEY{ .fmtid = Guid.initString("01a3057a-74d6-4e80-bea7-dc4c212ce50a"), .pid = 11 }; pub const WPD_NETWORK_ASSOCIATION_PROPERTIES_V1 = Guid.initString("e4c93c1f-b203-43f1-a100-5a07d11b0274"); pub const WPD_NETWORK_ASSOCIATION_HOST_NETWORK_IDENTIFIERS = PROPERTYKEY{ .fmtid = Guid.initString("e4c93c1f-b203-43f1-a100-5a07d11b0274"), .pid = 2 }; pub const WPD_NETWORK_ASSOCIATION_X509V3SEQUENCE = PROPERTYKEY{ .fmtid = Guid.initString("e4c93c1f-b203-43f1-a100-5a07d11b0274"), .pid = 3 }; pub const WPD_STILL_IMAGE_CAPTURE_OBJECT_PROPERTIES_V1 = Guid.initString("58c571ec-1bcb-42a7-8ac5-bb291573a260"); pub const WPD_STILL_IMAGE_CAPTURE_RESOLUTION = PROPERTYKEY{ .fmtid = Guid.initString("58c571ec-1bcb-42a7-8ac5-bb291573a260"), .pid = 2 }; pub const WPD_STILL_IMAGE_CAPTURE_FORMAT = PROPERTYKEY{ .fmtid = Guid.initString("58c571ec-1bcb-42a7-8ac5-bb291573a260"), .pid = 3 }; pub const WPD_STILL_IMAGE_COMPRESSION_SETTING = PROPERTYKEY{ .fmtid = Guid.initString("58c571ec-1bcb-42a7-8ac5-bb291573a260"), .pid = 4 }; pub const WPD_STILL_IMAGE_WHITE_BALANCE = PROPERTYKEY{ .fmtid = Guid.initString("58c571ec-1bcb-42a7-8ac5-bb291573a260"), .pid = 5 }; pub const WPD_STILL_IMAGE_RGB_GAIN = PROPERTYKEY{ .fmtid = Guid.initString("58c571ec-1bcb-42a7-8ac5-bb291573a260"), .pid = 6 }; pub const WPD_STILL_IMAGE_FNUMBER = PROPERTYKEY{ .fmtid = Guid.initString("58c571ec-1bcb-42a7-8ac5-bb291573a260"), .pid = 7 }; pub const WPD_STILL_IMAGE_FOCAL_LENGTH = PROPERTYKEY{ .fmtid = Guid.initString("58c571ec-1bcb-42a7-8ac5-bb291573a260"), .pid = 8 }; pub const WPD_STILL_IMAGE_FOCUS_DISTANCE = PROPERTYKEY{ .fmtid = Guid.initString("58c571ec-1bcb-42a7-8ac5-bb291573a260"), .pid = 9 }; pub const WPD_STILL_IMAGE_FOCUS_MODE = PROPERTYKEY{ .fmtid = Guid.initString("58c571ec-1bcb-42a7-8ac5-bb291573a260"), .pid = 10 }; pub const WPD_STILL_IMAGE_EXPOSURE_METERING_MODE = PROPERTYKEY{ .fmtid = Guid.initString("58c571ec-1bcb-42a7-8ac5-bb291573a260"), .pid = 11 }; pub const WPD_STILL_IMAGE_FLASH_MODE = PROPERTYKEY{ .fmtid = Guid.initString("58c571ec-1bcb-42a7-8ac5-bb291573a260"), .pid = 12 }; pub const WPD_STILL_IMAGE_EXPOSURE_TIME = PROPERTYKEY{ .fmtid = Guid.initString("58c571ec-1bcb-42a7-8ac5-bb291573a260"), .pid = 13 }; pub const WPD_STILL_IMAGE_EXPOSURE_PROGRAM_MODE = PROPERTYKEY{ .fmtid = Guid.initString("58c571ec-1bcb-42a7-8ac5-bb291573a260"), .pid = 14 }; pub const WPD_STILL_IMAGE_EXPOSURE_INDEX = PROPERTYKEY{ .fmtid = Guid.initString("58c571ec-1bcb-42a7-8ac5-bb291573a260"), .pid = 15 }; pub const WPD_STILL_IMAGE_EXPOSURE_BIAS_COMPENSATION = PROPERTYKEY{ .fmtid = Guid.initString("58c571ec-1bcb-42a7-8ac5-bb291573a260"), .pid = 16 }; pub const WPD_STILL_IMAGE_CAPTURE_DELAY = PROPERTYKEY{ .fmtid = Guid.initString("58c571ec-1bcb-42a7-8ac5-bb291573a260"), .pid = 17 }; pub const WPD_STILL_IMAGE_CAPTURE_MODE = PROPERTYKEY{ .fmtid = Guid.initString("58c571ec-1bcb-42a7-8ac5-bb291573a260"), .pid = 18 }; pub const WPD_STILL_IMAGE_CONTRAST = PROPERTYKEY{ .fmtid = Guid.initString("58c571ec-1bcb-42a7-8ac5-bb291573a260"), .pid = 19 }; pub const WPD_STILL_IMAGE_SHARPNESS = PROPERTYKEY{ .fmtid = Guid.initString("58c571ec-1bcb-42a7-8ac5-bb291573a260"), .pid = 20 }; pub const WPD_STILL_IMAGE_DIGITAL_ZOOM = PROPERTYKEY{ .fmtid = Guid.initString("58c571ec-1bcb-42a7-8ac5-bb291573a260"), .pid = 21 }; pub const WPD_STILL_IMAGE_EFFECT_MODE = PROPERTYKEY{ .fmtid = Guid.initString("58c571ec-1bcb-42a7-8ac5-bb291573a260"), .pid = 22 }; pub const WPD_STILL_IMAGE_BURST_NUMBER = PROPERTYKEY{ .fmtid = Guid.initString("58c571ec-1bcb-42a7-8ac5-bb291573a260"), .pid = 23 }; pub const WPD_STILL_IMAGE_BURST_INTERVAL = PROPERTYKEY{ .fmtid = Guid.initString("58c571ec-1bcb-42a7-8ac5-bb291573a260"), .pid = 24 }; pub const WPD_STILL_IMAGE_TIMELAPSE_NUMBER = PROPERTYKEY{ .fmtid = Guid.initString("58c571ec-1bcb-42a7-8ac5-bb291573a260"), .pid = 25 }; pub const WPD_STILL_IMAGE_TIMELAPSE_INTERVAL = PROPERTYKEY{ .fmtid = Guid.initString("58c571ec-1bcb-42a7-8ac5-bb291573a260"), .pid = 26 }; pub const WPD_STILL_IMAGE_FOCUS_METERING_MODE = PROPERTYKEY{ .fmtid = Guid.initString("58c571ec-1bcb-42a7-8ac5-bb291573a260"), .pid = 27 }; pub const WPD_STILL_IMAGE_UPLOAD_URL = PROPERTYKEY{ .fmtid = Guid.initString("58c571ec-1bcb-42a7-8ac5-bb291573a260"), .pid = 28 }; pub const WPD_STILL_IMAGE_ARTIST = PROPERTYKEY{ .fmtid = Guid.initString("58c571ec-1bcb-42a7-8ac5-bb291573a260"), .pid = 29 }; pub const WPD_STILL_IMAGE_CAMERA_MODEL = PROPERTYKEY{ .fmtid = Guid.initString("58c571ec-1bcb-42a7-8ac5-bb291573a260"), .pid = 30 }; pub const WPD_STILL_IMAGE_CAMERA_MANUFACTURER = PROPERTYKEY{ .fmtid = Guid.initString("58c571ec-1bcb-42a7-8ac5-bb291573a260"), .pid = 31 }; pub const WPD_RENDERING_INFORMATION_OBJECT_PROPERTIES_V1 = Guid.initString("c53d039f-ee23-4a31-8590-7639879870b4"); pub const WPD_RENDERING_INFORMATION_PROFILES = PROPERTYKEY{ .fmtid = Guid.initString("c53d039f-ee23-4a31-8590-7639879870b4"), .pid = 2 }; pub const WPD_RENDERING_INFORMATION_PROFILE_ENTRY_TYPE = PROPERTYKEY{ .fmtid = Guid.initString("c53d039f-ee23-4a31-8590-7639879870b4"), .pid = 3 }; pub const WPD_RENDERING_INFORMATION_PROFILE_ENTRY_CREATABLE_RESOURCES = PROPERTYKEY{ .fmtid = Guid.initString("c53d039f-ee23-4a31-8590-7639879870b4"), .pid = 4 }; pub const WPD_CLIENT_INFORMATION_PROPERTIES_V1 = Guid.initString("204d9f0c-2292-4080-9f42-40664e70f859"); pub const WPD_CLIENT_NAME = PROPERTYKEY{ .fmtid = Guid.initString("204d9f0c-2292-4080-9f42-40664e70f859"), .pid = 2 }; pub const WPD_CLIENT_MAJOR_VERSION = PROPERTYKEY{ .fmtid = Guid.initString("204d9f0c-2292-4080-9f42-40664e70f859"), .pid = 3 }; pub const WPD_CLIENT_MINOR_VERSION = PROPERTYKEY{ .fmtid = Guid.initString("204d9f0c-2292-4080-9f42-40664e70f859"), .pid = 4 }; pub const WPD_CLIENT_REVISION = PROPERTYKEY{ .fmtid = Guid.initString("204d9f0c-2292-4080-9f42-40664e70f859"), .pid = 5 }; pub const WPD_CLIENT_WMDRM_APPLICATION_PRIVATE_KEY = PROPERTYKEY{ .fmtid = Guid.initString("204d9f0c-2292-4080-9f42-40664e70f859"), .pid = 6 }; pub const WPD_CLIENT_WMDRM_APPLICATION_CERTIFICATE = PROPERTYKEY{ .fmtid = Guid.initString("204d9f0c-2292-4080-9f42-40664e70f859"), .pid = 7 }; pub const WPD_CLIENT_SECURITY_QUALITY_OF_SERVICE = PROPERTYKEY{ .fmtid = Guid.initString("204d9f0c-2292-4080-9f42-40664e70f859"), .pid = 8 }; pub const WPD_CLIENT_DESIRED_ACCESS = PROPERTYKEY{ .fmtid = Guid.initString("204d9f0c-2292-4080-9f42-40664e70f859"), .pid = 9 }; pub const WPD_CLIENT_SHARE_MODE = PROPERTYKEY{ .fmtid = Guid.initString("204d9f0c-2292-4080-9f42-40664e70f859"), .pid = 10 }; pub const WPD_CLIENT_EVENT_COOKIE = PROPERTYKEY{ .fmtid = Guid.initString("204d9f0c-2292-4080-9f42-40664e70f859"), .pid = 11 }; pub const WPD_CLIENT_MINIMUM_RESULTS_BUFFER_SIZE = PROPERTYKEY{ .fmtid = Guid.initString("204d9f0c-2292-4080-9f42-40664e70f859"), .pid = 12 }; pub const WPD_CLIENT_MANUAL_CLOSE_ON_DISCONNECT = PROPERTYKEY{ .fmtid = Guid.initString("204d9f0c-2292-4080-9f42-40664e70f859"), .pid = 13 }; pub const WPD_PROPERTY_ATTRIBUTES_V1 = Guid.initString("ab7943d8-6332-445f-a00d-8d5ef1e96f37"); pub const WPD_PROPERTY_ATTRIBUTE_FORM = PROPERTYKEY{ .fmtid = Guid.initString("ab7943d8-6332-445f-a00d-8d5ef1e96f37"), .pid = 2 }; pub const WPD_PROPERTY_ATTRIBUTE_CAN_READ = PROPERTYKEY{ .fmtid = Guid.initString("ab7943d8-6332-445f-a00d-8d5ef1e96f37"), .pid = 3 }; pub const WPD_PROPERTY_ATTRIBUTE_CAN_WRITE = PROPERTYKEY{ .fmtid = Guid.initString("ab7943d8-6332-445f-a00d-8d5ef1e96f37"), .pid = 4 }; pub const WPD_PROPERTY_ATTRIBUTE_CAN_DELETE = PROPERTYKEY{ .fmtid = Guid.initString("ab7943d8-6332-445f-a00d-8d5ef1e96f37"), .pid = 5 }; pub const WPD_PROPERTY_ATTRIBUTE_DEFAULT_VALUE = PROPERTYKEY{ .fmtid = Guid.initString("ab7943d8-6332-445f-a00d-8d5ef1e96f37"), .pid = 6 }; pub const WPD_PROPERTY_ATTRIBUTE_FAST_PROPERTY = PROPERTYKEY{ .fmtid = Guid.initString("ab7943d8-6332-445f-a00d-8d5ef1e96f37"), .pid = 7 }; pub const WPD_PROPERTY_ATTRIBUTE_RANGE_MIN = PROPERTYKEY{ .fmtid = Guid.initString("ab7943d8-6332-445f-a00d-8d5ef1e96f37"), .pid = 8 }; pub const WPD_PROPERTY_ATTRIBUTE_RANGE_MAX = PROPERTYKEY{ .fmtid = Guid.initString("ab7943d8-6332-445f-a00d-8d5ef1e96f37"), .pid = 9 }; pub const WPD_PROPERTY_ATTRIBUTE_RANGE_STEP = PROPERTYKEY{ .fmtid = Guid.initString("ab7943d8-6332-445f-a00d-8d5ef1e96f37"), .pid = 10 }; pub const WPD_PROPERTY_ATTRIBUTE_ENUMERATION_ELEMENTS = PROPERTYKEY{ .fmtid = Guid.initString("ab7943d8-6332-445f-a00d-8d5ef1e96f37"), .pid = 11 }; pub const WPD_PROPERTY_ATTRIBUTE_REGULAR_EXPRESSION = PROPERTYKEY{ .fmtid = Guid.initString("ab7943d8-6332-445f-a00d-8d5ef1e96f37"), .pid = 12 }; pub const WPD_PROPERTY_ATTRIBUTE_MAX_SIZE = PROPERTYKEY{ .fmtid = Guid.initString("ab7943d8-6332-445f-a00d-8d5ef1e96f37"), .pid = 13 }; pub const WPD_PROPERTY_ATTRIBUTES_V2 = Guid.initString("5d9da160-74ae-43cc-85a9-fe555a80798e"); pub const WPD_PROPERTY_ATTRIBUTE_NAME = PROPERTYKEY{ .fmtid = Guid.initString("5d9da160-74ae-43cc-85a9-fe555a80798e"), .pid = 2 }; pub const WPD_PROPERTY_ATTRIBUTE_VARTYPE = PROPERTYKEY{ .fmtid = Guid.initString("5d9da160-74ae-43cc-85a9-fe555a80798e"), .pid = 3 }; pub const WPD_CLASS_EXTENSION_OPTIONS_V1 = Guid.initString("6309ffef-a87c-4ca7-8434-797576e40a96"); pub const WPD_CLASS_EXTENSION_OPTIONS_SUPPORTED_CONTENT_TYPES = PROPERTYKEY{ .fmtid = Guid.initString("6309ffef-a87c-4ca7-8434-797576e40a96"), .pid = 2 }; pub const WPD_CLASS_EXTENSION_OPTIONS_DONT_REGISTER_WPD_DEVICE_INTERFACE = PROPERTYKEY{ .fmtid = Guid.initString("6309ffef-a87c-4ca7-8434-797576e40a96"), .pid = 3 }; pub const WPD_CLASS_EXTENSION_OPTIONS_REGISTER_WPD_PRIVATE_DEVICE_INTERFACE = PROPERTYKEY{ .fmtid = Guid.initString("6309ffef-a87c-4ca7-8434-797576e40a96"), .pid = 4 }; pub const WPD_CLASS_EXTENSION_OPTIONS_V2 = Guid.initString("3e3595da-4d71-49fe-a0b4-d4406c3ae93f"); pub const WPD_CLASS_EXTENSION_OPTIONS_MULTITRANSPORT_MODE = PROPERTYKEY{ .fmtid = Guid.initString("3e3595da-4d71-49fe-a0b4-d4406c3ae93f"), .pid = 2 }; pub const WPD_CLASS_EXTENSION_OPTIONS_DEVICE_IDENTIFICATION_VALUES = PROPERTYKEY{ .fmtid = Guid.initString("3e3595da-4d71-49fe-a0b4-d4406c3ae93f"), .pid = 3 }; pub const WPD_CLASS_EXTENSION_OPTIONS_TRANSPORT_BANDWIDTH = PROPERTYKEY{ .fmtid = Guid.initString("3e3595da-4d71-49fe-a0b4-d4406c3ae93f"), .pid = 4 }; pub const WPD_CLASS_EXTENSION_OPTIONS_V3 = Guid.initString("65c160f8-1367-4ce2-939d-8310839f0d30"); pub const WPD_CLASS_EXTENSION_OPTIONS_SILENCE_AUTOPLAY = PROPERTYKEY{ .fmtid = Guid.initString("65c160f8-1367-4ce2-939d-8310839f0d30"), .pid = 2 }; pub const WPD_RESOURCE_ATTRIBUTES_V1 = Guid.initString("1eb6f604-9278-429f-93cc-5bb8c06656b6"); pub const WPD_RESOURCE_ATTRIBUTE_TOTAL_SIZE = PROPERTYKEY{ .fmtid = Guid.initString("1eb6f604-9278-429f-93cc-5bb8c06656b6"), .pid = 2 }; pub const WPD_RESOURCE_ATTRIBUTE_CAN_READ = PROPERTYKEY{ .fmtid = Guid.initString("1eb6f604-9278-429f-93cc-5bb8c06656b6"), .pid = 3 }; pub const WPD_RESOURCE_ATTRIBUTE_CAN_WRITE = PROPERTYKEY{ .fmtid = Guid.initString("1eb6f604-9278-429f-93cc-5bb8c06656b6"), .pid = 4 }; pub const WPD_RESOURCE_ATTRIBUTE_CAN_DELETE = PROPERTYKEY{ .fmtid = Guid.initString("1eb6f604-9278-429f-93cc-5bb8c06656b6"), .pid = 5 }; pub const WPD_RESOURCE_ATTRIBUTE_OPTIMAL_READ_BUFFER_SIZE = PROPERTYKEY{ .fmtid = Guid.initString("1eb6f604-9278-429f-93cc-5bb8c06656b6"), .pid = 6 }; pub const WPD_RESOURCE_ATTRIBUTE_OPTIMAL_WRITE_BUFFER_SIZE = PROPERTYKEY{ .fmtid = Guid.initString("1eb6f604-9278-429f-93cc-5bb8c06656b6"), .pid = 7 }; pub const WPD_RESOURCE_ATTRIBUTE_FORMAT = PROPERTYKEY{ .fmtid = Guid.initString("1eb6f604-9278-429f-93cc-5bb8c06656b6"), .pid = 8 }; pub const WPD_RESOURCE_ATTRIBUTE_RESOURCE_KEY = PROPERTYKEY{ .fmtid = Guid.initString("1eb6f604-9278-429f-93cc-5bb8c06656b6"), .pid = 9 }; pub const WPD_DEVICE_PROPERTIES_V1 = Guid.initString("26d4979a-e643-4626-9e2b-736dc0c92fdc"); pub const WPD_DEVICE_SYNC_PARTNER = PROPERTYKEY{ .fmtid = Guid.initString("26d4979a-e643-4626-9e2b-736dc0c92fdc"), .pid = 2 }; pub const WPD_DEVICE_FIRMWARE_VERSION = PROPERTYKEY{ .fmtid = Guid.initString("26d4979a-e643-4626-9e2b-736dc0c92fdc"), .pid = 3 }; pub const WPD_DEVICE_POWER_LEVEL = PROPERTYKEY{ .fmtid = Guid.initString("26d4979a-e643-4626-9e2b-736dc0c92fdc"), .pid = 4 }; pub const WPD_DEVICE_POWER_SOURCE = PROPERTYKEY{ .fmtid = Guid.initString("26d4979a-e643-4626-9e2b-736dc0c92fdc"), .pid = 5 }; pub const WPD_DEVICE_PROTOCOL = PROPERTYKEY{ .fmtid = Guid.initString("26d4979a-e643-4626-9e2b-736dc0c92fdc"), .pid = 6 }; pub const WPD_DEVICE_MANUFACTURER = PROPERTYKEY{ .fmtid = Guid.initString("26d4979a-e643-4626-9e2b-736dc0c92fdc"), .pid = 7 }; pub const WPD_DEVICE_MODEL = PROPERTYKEY{ .fmtid = Guid.initString("26d4979a-e643-4626-9e2b-736dc0c92fdc"), .pid = 8 }; pub const WPD_DEVICE_SERIAL_NUMBER = PROPERTYKEY{ .fmtid = Guid.initString("26d4979a-e643-4626-9e2b-736dc0c92fdc"), .pid = 9 }; pub const WPD_DEVICE_SUPPORTS_NON_CONSUMABLE = PROPERTYKEY{ .fmtid = Guid.initString("26d4979a-e643-4626-9e2b-736dc0c92fdc"), .pid = 10 }; pub const WPD_DEVICE_DATETIME = PROPERTYKEY{ .fmtid = Guid.initString("26d4979a-e643-4626-9e2b-736dc0c92fdc"), .pid = 11 }; pub const WPD_DEVICE_FRIENDLY_NAME = PROPERTYKEY{ .fmtid = Guid.initString("26d4979a-e643-4626-9e2b-736dc0c92fdc"), .pid = 12 }; pub const WPD_DEVICE_SUPPORTED_DRM_SCHEMES = PROPERTYKEY{ .fmtid = Guid.initString("26d4979a-e643-4626-9e2b-736dc0c92fdc"), .pid = 13 }; pub const WPD_DEVICE_SUPPORTED_FORMATS_ARE_ORDERED = PROPERTYKEY{ .fmtid = Guid.initString("26d4979a-e643-4626-9e2b-736dc0c92fdc"), .pid = 14 }; pub const WPD_DEVICE_TYPE = PROPERTYKEY{ .fmtid = Guid.initString("26d4979a-e643-4626-9e2b-736dc0c92fdc"), .pid = 15 }; pub const WPD_DEVICE_NETWORK_IDENTIFIER = PROPERTYKEY{ .fmtid = Guid.initString("26d4979a-e643-4626-9e2b-736dc0c92fdc"), .pid = 16 }; pub const WPD_DEVICE_PROPERTIES_V2 = Guid.initString("463dd662-7fc4-4291-911c-7f4c9cca9799"); pub const WPD_DEVICE_FUNCTIONAL_UNIQUE_ID = PROPERTYKEY{ .fmtid = Guid.initString("463dd662-7fc4-4291-911c-7f4c9cca9799"), .pid = 2 }; pub const WPD_DEVICE_MODEL_UNIQUE_ID = PROPERTYKEY{ .fmtid = Guid.initString("463dd662-7fc4-4291-911c-7f4c9cca9799"), .pid = 3 }; pub const WPD_DEVICE_TRANSPORT = PROPERTYKEY{ .fmtid = Guid.initString("463dd662-7fc4-4291-911c-7f4c9cca9799"), .pid = 4 }; pub const WPD_DEVICE_USE_DEVICE_STAGE = PROPERTYKEY{ .fmtid = Guid.initString("463dd662-7fc4-4291-911c-7f4c9cca9799"), .pid = 5 }; pub const WPD_DEVICE_PROPERTIES_V3 = Guid.initString("6c2b878c-c2ec-490d-b425-d7a75e23e5ed"); pub const WPD_DEVICE_EDP_IDENTITY = PROPERTYKEY{ .fmtid = Guid.initString("6c2b878c-c2ec-490d-b425-d7a75e23e5ed"), .pid = 1 }; pub const WPD_SERVICE_PROPERTIES_V1 = Guid.initString("7510698a-cb54-481c-b8db-0d75c93f1c06"); pub const WPD_SERVICE_VERSION = PROPERTYKEY{ .fmtid = Guid.initString("7510698a-cb54-481c-b8db-0d75c93f1c06"), .pid = 2 }; pub const WPD_EVENT_PROPERTIES_V1 = Guid.initString("15ab1953-f817-4fef-a921-5676e838f6e0"); pub const WPD_EVENT_PARAMETER_PNP_DEVICE_ID = PROPERTYKEY{ .fmtid = Guid.initString("15ab1953-f817-4fef-a921-5676e838f6e0"), .pid = 2 }; pub const WPD_EVENT_PARAMETER_EVENT_ID = PROPERTYKEY{ .fmtid = Guid.initString("15ab1953-f817-4fef-a921-5676e838f6e0"), .pid = 3 }; pub const WPD_EVENT_PARAMETER_OPERATION_STATE = PROPERTYKEY{ .fmtid = Guid.initString("15ab1953-f817-4fef-a921-5676e838f6e0"), .pid = 4 }; pub const WPD_EVENT_PARAMETER_OPERATION_PROGRESS = PROPERTYKEY{ .fmtid = Guid.initString("15ab1953-f817-4fef-a921-5676e838f6e0"), .pid = 5 }; pub const WPD_EVENT_PARAMETER_OBJECT_PARENT_PERSISTENT_UNIQUE_ID = PROPERTYKEY{ .fmtid = Guid.initString("15ab1953-f817-4fef-a921-5676e838f6e0"), .pid = 6 }; pub const WPD_EVENT_PARAMETER_OBJECT_CREATION_COOKIE = PROPERTYKEY{ .fmtid = Guid.initString("15ab1953-f817-4fef-a921-5676e838f6e0"), .pid = 7 }; pub const WPD_EVENT_PARAMETER_CHILD_HIERARCHY_CHANGED = PROPERTYKEY{ .fmtid = Guid.initString("15ab1953-f817-4fef-a921-5676e838f6e0"), .pid = 8 }; pub const WPD_EVENT_PROPERTIES_V2 = Guid.initString("52807b8a-4914-4323-9b9a-74f654b2b846"); pub const WPD_EVENT_PARAMETER_SERVICE_METHOD_CONTEXT = PROPERTYKEY{ .fmtid = Guid.initString("52807b8a-4914-4323-9b9a-74f654b2b846"), .pid = 2 }; pub const WPD_EVENT_OPTIONS_V1 = Guid.initString("b3d8dad7-a361-4b83-8a48-5b02ce10713b"); pub const WPD_EVENT_OPTION_IS_BROADCAST_EVENT = PROPERTYKEY{ .fmtid = Guid.initString("b3d8dad7-a361-4b83-8a48-5b02ce10713b"), .pid = 2 }; pub const WPD_EVENT_OPTION_IS_AUTOPLAY_EVENT = PROPERTYKEY{ .fmtid = Guid.initString("b3d8dad7-a361-4b83-8a48-5b02ce10713b"), .pid = 3 }; pub const WPD_EVENT_ATTRIBUTES_V1 = Guid.initString("10c96578-2e81-4111-adde-e08ca6138f6d"); pub const WPD_EVENT_ATTRIBUTE_NAME = PROPERTYKEY{ .fmtid = Guid.initString("10c96578-2e81-4111-adde-e08ca6138f6d"), .pid = 2 }; pub const WPD_EVENT_ATTRIBUTE_PARAMETERS = PROPERTYKEY{ .fmtid = Guid.initString("10c96578-2e81-4111-adde-e08ca6138f6d"), .pid = 3 }; pub const WPD_EVENT_ATTRIBUTE_OPTIONS = PROPERTYKEY{ .fmtid = Guid.initString("10c96578-2e81-4111-adde-e08ca6138f6d"), .pid = 4 }; pub const WPD_API_OPTIONS_V1 = Guid.initString("10e54a3e-052d-4777-a13c-de7614be2bc4"); pub const WPD_API_OPTION_USE_CLEAR_DATA_STREAM = PROPERTYKEY{ .fmtid = Guid.initString("10e54a3e-052d-4777-a13c-de7614be2bc4"), .pid = 2 }; pub const WPD_API_OPTION_IOCTL_ACCESS = PROPERTYKEY{ .fmtid = Guid.initString("10e54a3e-052d-4777-a13c-de7614be2bc4"), .pid = 3 }; pub const WPD_FORMAT_ATTRIBUTES_V1 = Guid.initString("a0a02000-bcaf-4be8-b3f5-233f231cf58f"); pub const WPD_FORMAT_ATTRIBUTE_NAME = PROPERTYKEY{ .fmtid = Guid.initString("a0a02000-bcaf-4be8-b3f5-233f231cf58f"), .pid = 2 }; pub const WPD_FORMAT_ATTRIBUTE_MIMETYPE = PROPERTYKEY{ .fmtid = Guid.initString("a0a02000-bcaf-4be8-b3f5-233f231cf58f"), .pid = 3 }; pub const WPD_METHOD_ATTRIBUTES_V1 = Guid.initString("f17a5071-f039-44af-8efe-432cf32e432a"); pub const WPD_METHOD_ATTRIBUTE_NAME = PROPERTYKEY{ .fmtid = Guid.initString("f17a5071-f039-44af-8efe-432cf32e432a"), .pid = 2 }; pub const WPD_METHOD_ATTRIBUTE_ASSOCIATED_FORMAT = PROPERTYKEY{ .fmtid = Guid.initString("f17a5071-f039-44af-8efe-432cf32e432a"), .pid = 3 }; pub const WPD_METHOD_ATTRIBUTE_ACCESS = PROPERTYKEY{ .fmtid = Guid.initString("f17a5071-f039-44af-8efe-432cf32e432a"), .pid = 4 }; pub const WPD_METHOD_ATTRIBUTE_PARAMETERS = PROPERTYKEY{ .fmtid = Guid.initString("f17a5071-f039-44af-8efe-432cf32e432a"), .pid = 5 }; pub const WPD_PARAMETER_ATTRIBUTES_V1 = Guid.initString("e6864dd7-f325-45ea-a1d5-97cf73b6ca58"); pub const WPD_PARAMETER_ATTRIBUTE_ORDER = PROPERTYKEY{ .fmtid = Guid.initString("e6864dd7-f325-45ea-a1d5-97cf73b6ca58"), .pid = 2 }; pub const WPD_PARAMETER_ATTRIBUTE_USAGE = PROPERTYKEY{ .fmtid = Guid.initString("e6864dd7-f325-45ea-a1d5-97cf73b6ca58"), .pid = 3 }; pub const WPD_PARAMETER_ATTRIBUTE_FORM = PROPERTYKEY{ .fmtid = Guid.initString("e6864dd7-f325-45ea-a1d5-97cf73b6ca58"), .pid = 4 }; pub const WPD_PARAMETER_ATTRIBUTE_DEFAULT_VALUE = PROPERTYKEY{ .fmtid = Guid.initString("e6864dd7-f325-45ea-a1d5-97cf73b6ca58"), .pid = 5 }; pub const WPD_PARAMETER_ATTRIBUTE_RANGE_MIN = PROPERTYKEY{ .fmtid = Guid.initString("e6864dd7-f325-45ea-a1d5-97cf73b6ca58"), .pid = 6 }; pub const WPD_PARAMETER_ATTRIBUTE_RANGE_MAX = PROPERTYKEY{ .fmtid = Guid.initString("e6864dd7-f325-45ea-a1d5-97cf73b6ca58"), .pid = 7 }; pub const WPD_PARAMETER_ATTRIBUTE_RANGE_STEP = PROPERTYKEY{ .fmtid = Guid.initString("e6864dd7-f325-45ea-a1d5-97cf73b6ca58"), .pid = 8 }; pub const WPD_PARAMETER_ATTRIBUTE_ENUMERATION_ELEMENTS = PROPERTYKEY{ .fmtid = Guid.initString("e6864dd7-f325-45ea-a1d5-97cf73b6ca58"), .pid = 9 }; pub const WPD_PARAMETER_ATTRIBUTE_REGULAR_EXPRESSION = PROPERTYKEY{ .fmtid = Guid.initString("e6864dd7-f325-45ea-a1d5-97cf73b6ca58"), .pid = 10 }; pub const WPD_PARAMETER_ATTRIBUTE_MAX_SIZE = PROPERTYKEY{ .fmtid = Guid.initString("e6864dd7-f325-45ea-a1d5-97cf73b6ca58"), .pid = 11 }; pub const WPD_PARAMETER_ATTRIBUTE_VARTYPE = PROPERTYKEY{ .fmtid = Guid.initString("e6864dd7-f325-45ea-a1d5-97cf73b6ca58"), .pid = 12 }; pub const WPD_PARAMETER_ATTRIBUTE_NAME = PROPERTYKEY{ .fmtid = Guid.initString("e6864dd7-f325-45ea-a1d5-97cf73b6ca58"), .pid = 13 }; pub const WPD_CATEGORY_COMMON = Guid.initString("f0422a9c-5dc8-4440-b5bd-5df28835658a"); pub const WPD_COMMAND_COMMON_RESET_DEVICE = PROPERTYKEY{ .fmtid = Guid.initString("f0422a9c-5dc8-4440-b5bd-5df28835658a"), .pid = 2 }; pub const WPD_COMMAND_COMMON_GET_OBJECT_IDS_FROM_PERSISTENT_UNIQUE_IDS = PROPERTYKEY{ .fmtid = Guid.initString("f0422a9c-5dc8-4440-b5bd-5df28835658a"), .pid = 3 }; pub const WPD_COMMAND_COMMON_SAVE_CLIENT_INFORMATION = PROPERTYKEY{ .fmtid = Guid.initString("f0422a9c-5dc8-4440-b5bd-5df28835658a"), .pid = 4 }; pub const WPD_PROPERTY_COMMON_COMMAND_CATEGORY = PROPERTYKEY{ .fmtid = Guid.initString("f0422a9c-5dc8-4440-b5bd-5df28835658a"), .pid = 1001 }; pub const WPD_PROPERTY_COMMON_COMMAND_ID = PROPERTYKEY{ .fmtid = Guid.initString("f0422a9c-5dc8-4440-b5bd-5df28835658a"), .pid = 1002 }; pub const WPD_PROPERTY_COMMON_HRESULT = PROPERTYKEY{ .fmtid = Guid.initString("f0422a9c-5dc8-4440-b5bd-5df28835658a"), .pid = 1003 }; pub const WPD_PROPERTY_COMMON_DRIVER_ERROR_CODE = PROPERTYKEY{ .fmtid = Guid.initString("f0422a9c-5dc8-4440-b5bd-5df28835658a"), .pid = 1004 }; pub const WPD_PROPERTY_COMMON_COMMAND_TARGET = PROPERTYKEY{ .fmtid = Guid.initString("f0422a9c-5dc8-4440-b5bd-5df28835658a"), .pid = 1006 }; pub const WPD_PROPERTY_COMMON_PERSISTENT_UNIQUE_IDS = PROPERTYKEY{ .fmtid = Guid.initString("f0422a9c-5dc8-4440-b5bd-5df28835658a"), .pid = 1007 }; pub const WPD_PROPERTY_COMMON_OBJECT_IDS = PROPERTYKEY{ .fmtid = Guid.initString("f0422a9c-5dc8-4440-b5bd-5df28835658a"), .pid = 1008 }; pub const WPD_PROPERTY_COMMON_CLIENT_INFORMATION = PROPERTYKEY{ .fmtid = Guid.initString("f0422a9c-5dc8-4440-b5bd-5df28835658a"), .pid = 1009 }; pub const WPD_PROPERTY_COMMON_CLIENT_INFORMATION_CONTEXT = PROPERTYKEY{ .fmtid = Guid.initString("f0422a9c-5dc8-4440-b5bd-5df28835658a"), .pid = 1010 }; pub const WPD_PROPERTY_COMMON_ACTIVITY_ID = PROPERTYKEY{ .fmtid = Guid.initString("f0422a9c-5dc8-4440-b5bd-5df28835658a"), .pid = 1011 }; pub const WPD_OPTION_VALID_OBJECT_IDS = PROPERTYKEY{ .fmtid = Guid.initString("f0422a9c-5dc8-4440-b5bd-5df28835658a"), .pid = 5001 }; pub const WPD_CATEGORY_OBJECT_ENUMERATION = Guid.initString("b7474e91-e7f8-4ad9-b400-ad1a4b58eeec"); pub const WPD_COMMAND_OBJECT_ENUMERATION_START_FIND = PROPERTYKEY{ .fmtid = Guid.initString("b7474e91-e7f8-4ad9-b400-ad1a4b58eeec"), .pid = 2 }; pub const WPD_COMMAND_OBJECT_ENUMERATION_FIND_NEXT = PROPERTYKEY{ .fmtid = Guid.initString("b7474e91-e7f8-4ad9-b400-ad1a4b58eeec"), .pid = 3 }; pub const WPD_COMMAND_OBJECT_ENUMERATION_END_FIND = PROPERTYKEY{ .fmtid = Guid.initString("b7474e91-e7f8-4ad9-b400-ad1a4b58eeec"), .pid = 4 }; pub const WPD_PROPERTY_OBJECT_ENUMERATION_PARENT_ID = PROPERTYKEY{ .fmtid = Guid.initString("b7474e91-e7f8-4ad9-b400-ad1a4b58eeec"), .pid = 1001 }; pub const WPD_PROPERTY_OBJECT_ENUMERATION_FILTER = PROPERTYKEY{ .fmtid = Guid.initString("b7474e91-e7f8-4ad9-b400-ad1a4b58eeec"), .pid = 1002 }; pub const WPD_PROPERTY_OBJECT_ENUMERATION_OBJECT_IDS = PROPERTYKEY{ .fmtid = Guid.initString("b7474e91-e7f8-4ad9-b400-ad1a4b58eeec"), .pid = 1003 }; pub const WPD_PROPERTY_OBJECT_ENUMERATION_CONTEXT = PROPERTYKEY{ .fmtid = Guid.initString("b7474e91-e7f8-4ad9-b400-ad1a4b58eeec"), .pid = 1004 }; pub const WPD_PROPERTY_OBJECT_ENUMERATION_NUM_OBJECTS_REQUESTED = PROPERTYKEY{ .fmtid = Guid.initString("b7474e91-e7f8-4ad9-b400-ad1a4b58eeec"), .pid = 1005 }; pub const WPD_CATEGORY_OBJECT_PROPERTIES = Guid.initString("9e5582e4-0814-44e6-981a-b2998d583804"); pub const WPD_COMMAND_OBJECT_PROPERTIES_GET_SUPPORTED = PROPERTYKEY{ .fmtid = Guid.initString("9e5582e4-0814-44e6-981a-b2998d583804"), .pid = 2 }; pub const WPD_COMMAND_OBJECT_PROPERTIES_GET_ATTRIBUTES = PROPERTYKEY{ .fmtid = Guid.initString("9e5582e4-0814-44e6-981a-b2998d583804"), .pid = 3 }; pub const WPD_COMMAND_OBJECT_PROPERTIES_GET = PROPERTYKEY{ .fmtid = Guid.initString("9e5582e4-0814-44e6-981a-b2998d583804"), .pid = 4 }; pub const WPD_COMMAND_OBJECT_PROPERTIES_SET = PROPERTYKEY{ .fmtid = Guid.initString("9e5582e4-0814-44e6-981a-b2998d583804"), .pid = 5 }; pub const WPD_COMMAND_OBJECT_PROPERTIES_GET_ALL = PROPERTYKEY{ .fmtid = Guid.initString("9e5582e4-0814-44e6-981a-b2998d583804"), .pid = 6 }; pub const WPD_COMMAND_OBJECT_PROPERTIES_DELETE = PROPERTYKEY{ .fmtid = Guid.initString("9e5582e4-0814-44e6-981a-b2998d583804"), .pid = 7 }; pub const WPD_PROPERTY_OBJECT_PROPERTIES_OBJECT_ID = PROPERTYKEY{ .fmtid = Guid.initString("9e5582e4-0814-44e6-981a-b2998d583804"), .pid = 1001 }; pub const WPD_PROPERTY_OBJECT_PROPERTIES_PROPERTY_KEYS = PROPERTYKEY{ .fmtid = Guid.initString("9e5582e4-0814-44e6-981a-b2998d583804"), .pid = 1002 }; pub const WPD_PROPERTY_OBJECT_PROPERTIES_PROPERTY_ATTRIBUTES = PROPERTYKEY{ .fmtid = Guid.initString("9e5582e4-0814-44e6-981a-b2998d583804"), .pid = 1003 }; pub const WPD_PROPERTY_OBJECT_PROPERTIES_PROPERTY_VALUES = PROPERTYKEY{ .fmtid = Guid.initString("9e5582e4-0814-44e6-981a-b2998d583804"), .pid = 1004 }; pub const WPD_PROPERTY_OBJECT_PROPERTIES_PROPERTY_WRITE_RESULTS = PROPERTYKEY{ .fmtid = Guid.initString("9e5582e4-0814-44e6-981a-b2998d583804"), .pid = 1005 }; pub const WPD_PROPERTY_OBJECT_PROPERTIES_PROPERTY_DELETE_RESULTS = PROPERTYKEY{ .fmtid = Guid.initString("9e5582e4-0814-44e6-981a-b2998d583804"), .pid = 1006 }; pub const WPD_CATEGORY_OBJECT_PROPERTIES_BULK = Guid.initString("11c824dd-04cd-4e4e-8c7b-f6efb794d84e"); pub const WPD_COMMAND_OBJECT_PROPERTIES_BULK_GET_VALUES_BY_OBJECT_LIST_START = PROPERTYKEY{ .fmtid = Guid.initString("11c824dd-04cd-4e4e-8c7b-f6efb794d84e"), .pid = 2 }; pub const WPD_COMMAND_OBJECT_PROPERTIES_BULK_GET_VALUES_BY_OBJECT_LIST_NEXT = PROPERTYKEY{ .fmtid = Guid.initString("11c824dd-04cd-4e4e-8c7b-f6efb794d84e"), .pid = 3 }; pub const WPD_COMMAND_OBJECT_PROPERTIES_BULK_GET_VALUES_BY_OBJECT_LIST_END = PROPERTYKEY{ .fmtid = Guid.initString("11c824dd-04cd-4e4e-8c7b-f6efb794d84e"), .pid = 4 }; pub const WPD_COMMAND_OBJECT_PROPERTIES_BULK_GET_VALUES_BY_OBJECT_FORMAT_START = PROPERTYKEY{ .fmtid = Guid.initString("11c824dd-04cd-4e4e-8c7b-f6efb794d84e"), .pid = 5 }; pub const WPD_COMMAND_OBJECT_PROPERTIES_BULK_GET_VALUES_BY_OBJECT_FORMAT_NEXT = PROPERTYKEY{ .fmtid = Guid.initString("11c824dd-04cd-4e4e-8c7b-f6efb794d84e"), .pid = 6 }; pub const WPD_COMMAND_OBJECT_PROPERTIES_BULK_GET_VALUES_BY_OBJECT_FORMAT_END = PROPERTYKEY{ .fmtid = Guid.initString("11c824dd-04cd-4e4e-8c7b-f6efb794d84e"), .pid = 7 }; pub const WPD_COMMAND_OBJECT_PROPERTIES_BULK_SET_VALUES_BY_OBJECT_LIST_START = PROPERTYKEY{ .fmtid = Guid.initString("11c824dd-04cd-4e4e-8c7b-f6efb794d84e"), .pid = 8 }; pub const WPD_COMMAND_OBJECT_PROPERTIES_BULK_SET_VALUES_BY_OBJECT_LIST_NEXT = PROPERTYKEY{ .fmtid = Guid.initString("11c824dd-04cd-4e4e-8c7b-f6efb794d84e"), .pid = 9 }; pub const WPD_COMMAND_OBJECT_PROPERTIES_BULK_SET_VALUES_BY_OBJECT_LIST_END = PROPERTYKEY{ .fmtid = Guid.initString("11c824dd-04cd-4e4e-8c7b-f6efb794d84e"), .pid = 10 }; pub const WPD_PROPERTY_OBJECT_PROPERTIES_BULK_OBJECT_IDS = PROPERTYKEY{ .fmtid = Guid.initString("11c824dd-04cd-4e4e-8c7b-f6efb794d84e"), .pid = 1001 }; pub const WPD_PROPERTY_OBJECT_PROPERTIES_BULK_CONTEXT = PROPERTYKEY{ .fmtid = Guid.initString("11c824dd-04cd-4e4e-8c7b-f6efb794d84e"), .pid = 1002 }; pub const WPD_PROPERTY_OBJECT_PROPERTIES_BULK_VALUES = PROPERTYKEY{ .fmtid = Guid.initString("11c824dd-04cd-4e4e-8c7b-f6efb794d84e"), .pid = 1003 }; pub const WPD_PROPERTY_OBJECT_PROPERTIES_BULK_PROPERTY_KEYS = PROPERTYKEY{ .fmtid = Guid.initString("11c824dd-04cd-4e4e-8c7b-f6efb794d84e"), .pid = 1004 }; pub const WPD_PROPERTY_OBJECT_PROPERTIES_BULK_DEPTH = PROPERTYKEY{ .fmtid = Guid.initString("11c824dd-04cd-4e4e-8c7b-f6efb794d84e"), .pid = 1005 }; pub const WPD_PROPERTY_OBJECT_PROPERTIES_BULK_PARENT_OBJECT_ID = PROPERTYKEY{ .fmtid = Guid.initString("11c824dd-04cd-4e4e-8c7b-f6efb794d84e"), .pid = 1006 }; pub const WPD_PROPERTY_OBJECT_PROPERTIES_BULK_OBJECT_FORMAT = PROPERTYKEY{ .fmtid = Guid.initString("11c824dd-04cd-4e4e-8c7b-f6efb794d84e"), .pid = 1007 }; pub const WPD_PROPERTY_OBJECT_PROPERTIES_BULK_WRITE_RESULTS = PROPERTYKEY{ .fmtid = Guid.initString("11c824dd-04cd-4e4e-8c7b-f6efb794d84e"), .pid = 1008 }; pub const WPD_CATEGORY_OBJECT_RESOURCES = Guid.initString("b3a2b22d-a595-4108-be0a-fc3c965f3d4a"); pub const WPD_COMMAND_OBJECT_RESOURCES_GET_SUPPORTED = PROPERTYKEY{ .fmtid = Guid.initString("b3a2b22d-a595-4108-be0a-fc3c965f3d4a"), .pid = 2 }; pub const WPD_COMMAND_OBJECT_RESOURCES_GET_ATTRIBUTES = PROPERTYKEY{ .fmtid = Guid.initString("b3a2b22d-a595-4108-be0a-fc3c965f3d4a"), .pid = 3 }; pub const WPD_COMMAND_OBJECT_RESOURCES_OPEN = PROPERTYKEY{ .fmtid = Guid.initString("b3a2b22d-a595-4108-be0a-fc3c965f3d4a"), .pid = 4 }; pub const WPD_COMMAND_OBJECT_RESOURCES_READ = PROPERTYKEY{ .fmtid = Guid.initString("b3a2b22d-a595-4108-be0a-fc3c965f3d4a"), .pid = 5 }; pub const WPD_COMMAND_OBJECT_RESOURCES_WRITE = PROPERTYKEY{ .fmtid = Guid.initString("b3a2b22d-a595-4108-be0a-fc3c965f3d4a"), .pid = 6 }; pub const WPD_COMMAND_OBJECT_RESOURCES_CLOSE = PROPERTYKEY{ .fmtid = Guid.initString("b3a2b22d-a595-4108-be0a-fc3c965f3d4a"), .pid = 7 }; pub const WPD_COMMAND_OBJECT_RESOURCES_DELETE = PROPERTYKEY{ .fmtid = Guid.initString("b3a2b22d-a595-4108-be0a-fc3c965f3d4a"), .pid = 8 }; pub const WPD_COMMAND_OBJECT_RESOURCES_CREATE_RESOURCE = PROPERTYKEY{ .fmtid = Guid.initString("b3a2b22d-a595-4108-be0a-fc3c965f3d4a"), .pid = 9 }; pub const WPD_COMMAND_OBJECT_RESOURCES_REVERT = PROPERTYKEY{ .fmtid = Guid.initString("b3a2b22d-a595-4108-be0a-fc3c965f3d4a"), .pid = 10 }; pub const WPD_COMMAND_OBJECT_RESOURCES_SEEK = PROPERTYKEY{ .fmtid = Guid.initString("b3a2b22d-a595-4108-be0a-fc3c965f3d4a"), .pid = 11 }; pub const WPD_COMMAND_OBJECT_RESOURCES_COMMIT = PROPERTYKEY{ .fmtid = Guid.initString("b3a2b22d-a595-4108-be0a-fc3c965f3d4a"), .pid = 12 }; pub const WPD_COMMAND_OBJECT_RESOURCES_SEEK_IN_UNITS = PROPERTYKEY{ .fmtid = Guid.initString("b3a2b22d-a595-4108-be0a-fc3c965f3d4a"), .pid = 13 }; pub const WPD_PROPERTY_OBJECT_RESOURCES_OBJECT_ID = PROPERTYKEY{ .fmtid = Guid.initString("b3a2b22d-a595-4108-be0a-fc3c965f3d4a"), .pid = 1001 }; pub const WPD_PROPERTY_OBJECT_RESOURCES_ACCESS_MODE = PROPERTYKEY{ .fmtid = Guid.initString("b3a2b22d-a595-4108-be0a-fc3c965f3d4a"), .pid = 1002 }; pub const WPD_PROPERTY_OBJECT_RESOURCES_RESOURCE_KEYS = PROPERTYKEY{ .fmtid = Guid.initString("b3a2b22d-a595-4108-be0a-fc3c965f3d4a"), .pid = 1003 }; pub const WPD_PROPERTY_OBJECT_RESOURCES_RESOURCE_ATTRIBUTES = PROPERTYKEY{ .fmtid = Guid.initString("b3a2b22d-a595-4108-be0a-fc3c965f3d4a"), .pid = 1004 }; pub const WPD_PROPERTY_OBJECT_RESOURCES_CONTEXT = PROPERTYKEY{ .fmtid = Guid.initString("b3a2b22d-a595-4108-be0a-fc3c965f3d4a"), .pid = 1005 }; pub const WPD_PROPERTY_OBJECT_RESOURCES_NUM_BYTES_TO_READ = PROPERTYKEY{ .fmtid = Guid.initString("b3a2b22d-a595-4108-be0a-fc3c965f3d4a"), .pid = 1006 }; pub const WPD_PROPERTY_OBJECT_RESOURCES_NUM_BYTES_READ = PROPERTYKEY{ .fmtid = Guid.initString("b3a2b22d-a595-4108-be0a-fc3c965f3d4a"), .pid = 1007 }; pub const WPD_PROPERTY_OBJECT_RESOURCES_NUM_BYTES_TO_WRITE = PROPERTYKEY{ .fmtid = Guid.initString("b3a2b22d-a595-4108-be0a-fc3c965f3d4a"), .pid = 1008 }; pub const WPD_PROPERTY_OBJECT_RESOURCES_NUM_BYTES_WRITTEN = PROPERTYKEY{ .fmtid = Guid.initString("b3a2b22d-a595-4108-be0a-fc3c965f3d4a"), .pid = 1009 }; pub const WPD_PROPERTY_OBJECT_RESOURCES_DATA = PROPERTYKEY{ .fmtid = Guid.initString("b3a2b22d-a595-4108-be0a-fc3c965f3d4a"), .pid = 1010 }; pub const WPD_PROPERTY_OBJECT_RESOURCES_OPTIMAL_TRANSFER_BUFFER_SIZE = PROPERTYKEY{ .fmtid = Guid.initString("b3a2b22d-a595-4108-be0a-fc3c965f3d4a"), .pid = 1011 }; pub const WPD_PROPERTY_OBJECT_RESOURCES_SEEK_OFFSET = PROPERTYKEY{ .fmtid = Guid.initString("b3a2b22d-a595-4108-be0a-fc3c965f3d4a"), .pid = 1012 }; pub const WPD_PROPERTY_OBJECT_RESOURCES_SEEK_ORIGIN_FLAG = PROPERTYKEY{ .fmtid = Guid.initString("b3a2b22d-a595-4108-be0a-fc3c965f3d4a"), .pid = 1013 }; pub const WPD_PROPERTY_OBJECT_RESOURCES_POSITION_FROM_START = PROPERTYKEY{ .fmtid = Guid.initString("b3a2b22d-a595-4108-be0a-fc3c965f3d4a"), .pid = 1014 }; pub const WPD_PROPERTY_OBJECT_RESOURCES_SUPPORTS_UNITS = PROPERTYKEY{ .fmtid = Guid.initString("b3a2b22d-a595-4108-be0a-fc3c965f3d4a"), .pid = 1015 }; pub const WPD_PROPERTY_OBJECT_RESOURCES_STREAM_UNITS = PROPERTYKEY{ .fmtid = Guid.initString("b3a2b22d-a595-4108-be0a-fc3c965f3d4a"), .pid = 1016 }; pub const WPD_OPTION_OBJECT_RESOURCES_SEEK_ON_READ_SUPPORTED = PROPERTYKEY{ .fmtid = Guid.initString("b3a2b22d-a595-4108-be0a-fc3c965f3d4a"), .pid = 5001 }; pub const WPD_OPTION_OBJECT_RESOURCES_SEEK_ON_WRITE_SUPPORTED = PROPERTYKEY{ .fmtid = Guid.initString("b3a2b22d-a595-4108-be0a-fc3c965f3d4a"), .pid = 5002 }; pub const WPD_OPTION_OBJECT_RESOURCES_NO_INPUT_BUFFER_ON_READ = PROPERTYKEY{ .fmtid = Guid.initString("b3a2b22d-a595-4108-be0a-fc3c965f3d4a"), .pid = 5003 }; pub const WPD_CATEGORY_OBJECT_MANAGEMENT = Guid.initString("ef1e43dd-a9ed-4341-8bcc-186192aea089"); pub const WPD_COMMAND_OBJECT_MANAGEMENT_CREATE_OBJECT_WITH_PROPERTIES_ONLY = PROPERTYKEY{ .fmtid = Guid.initString("ef1e43dd-a9ed-4341-8bcc-186192aea089"), .pid = 2 }; pub const WPD_COMMAND_OBJECT_MANAGEMENT_CREATE_OBJECT_WITH_PROPERTIES_AND_DATA = PROPERTYKEY{ .fmtid = Guid.initString("ef1e43dd-a9ed-4341-8bcc-186192aea089"), .pid = 3 }; pub const WPD_COMMAND_OBJECT_MANAGEMENT_WRITE_OBJECT_DATA = PROPERTYKEY{ .fmtid = Guid.initString("ef1e43dd-a9ed-4341-8bcc-186192aea089"), .pid = 4 }; pub const WPD_COMMAND_OBJECT_MANAGEMENT_COMMIT_OBJECT = PROPERTYKEY{ .fmtid = Guid.initString("ef1e43dd-a9ed-4341-8bcc-186192aea089"), .pid = 5 }; pub const WPD_COMMAND_OBJECT_MANAGEMENT_REVERT_OBJECT = PROPERTYKEY{ .fmtid = Guid.initString("ef1e43dd-a9ed-4341-8bcc-186192aea089"), .pid = 6 }; pub const WPD_COMMAND_OBJECT_MANAGEMENT_DELETE_OBJECTS = PROPERTYKEY{ .fmtid = Guid.initString("ef1e43dd-a9ed-4341-8bcc-186192aea089"), .pid = 7 }; pub const WPD_COMMAND_OBJECT_MANAGEMENT_MOVE_OBJECTS = PROPERTYKEY{ .fmtid = Guid.initString("ef1e43dd-a9ed-4341-8bcc-186192aea089"), .pid = 8 }; pub const WPD_COMMAND_OBJECT_MANAGEMENT_COPY_OBJECTS = PROPERTYKEY{ .fmtid = Guid.initString("ef1e43dd-a9ed-4341-8bcc-186192aea089"), .pid = 9 }; pub const WPD_COMMAND_OBJECT_MANAGEMENT_UPDATE_OBJECT_WITH_PROPERTIES_AND_DATA = PROPERTYKEY{ .fmtid = Guid.initString("ef1e43dd-a9ed-4341-8bcc-186192aea089"), .pid = 10 }; pub const WPD_PROPERTY_OBJECT_MANAGEMENT_CREATION_PROPERTIES = PROPERTYKEY{ .fmtid = Guid.initString("ef1e43dd-a9ed-4341-8bcc-186192aea089"), .pid = 1001 }; pub const WPD_PROPERTY_OBJECT_MANAGEMENT_CONTEXT = PROPERTYKEY{ .fmtid = Guid.initString("ef1e43dd-a9ed-4341-8bcc-186192aea089"), .pid = 1002 }; pub const WPD_PROPERTY_OBJECT_MANAGEMENT_NUM_BYTES_TO_WRITE = PROPERTYKEY{ .fmtid = Guid.initString("ef1e43dd-a9ed-4341-8bcc-186192aea089"), .pid = 1003 }; pub const WPD_PROPERTY_OBJECT_MANAGEMENT_NUM_BYTES_WRITTEN = PROPERTYKEY{ .fmtid = Guid.initString("ef1e43dd-a9ed-4341-8bcc-186192aea089"), .pid = 1004 }; pub const WPD_PROPERTY_OBJECT_MANAGEMENT_DATA = PROPERTYKEY{ .fmtid = Guid.initString("ef1e43dd-a9ed-4341-8bcc-186192aea089"), .pid = 1005 }; pub const WPD_PROPERTY_OBJECT_MANAGEMENT_OBJECT_ID = PROPERTYKEY{ .fmtid = Guid.initString("ef1e43dd-a9ed-4341-8bcc-186192aea089"), .pid = 1006 }; pub const WPD_PROPERTY_OBJECT_MANAGEMENT_DELETE_OPTIONS = PROPERTYKEY{ .fmtid = Guid.initString("ef1e43dd-a9ed-4341-8bcc-186192aea089"), .pid = 1007 }; pub const WPD_PROPERTY_OBJECT_MANAGEMENT_OPTIMAL_TRANSFER_BUFFER_SIZE = PROPERTYKEY{ .fmtid = Guid.initString("ef1e43dd-a9ed-4341-8bcc-186192aea089"), .pid = 1008 }; pub const WPD_PROPERTY_OBJECT_MANAGEMENT_OBJECT_IDS = PROPERTYKEY{ .fmtid = Guid.initString("ef1e43dd-a9ed-4341-8bcc-186192aea089"), .pid = 1009 }; pub const WPD_PROPERTY_OBJECT_MANAGEMENT_DELETE_RESULTS = PROPERTYKEY{ .fmtid = Guid.initString("ef1e43dd-a9ed-4341-8bcc-186192aea089"), .pid = 1010 }; pub const WPD_PROPERTY_OBJECT_MANAGEMENT_DESTINATION_FOLDER_OBJECT_ID = PROPERTYKEY{ .fmtid = Guid.initString("ef1e43dd-a9ed-4341-8bcc-186192aea089"), .pid = 1011 }; pub const WPD_PROPERTY_OBJECT_MANAGEMENT_MOVE_RESULTS = PROPERTYKEY{ .fmtid = Guid.initString("ef1e43dd-a9ed-4341-8bcc-186192aea089"), .pid = 1012 }; pub const WPD_PROPERTY_OBJECT_MANAGEMENT_COPY_RESULTS = PROPERTYKEY{ .fmtid = Guid.initString("ef1e43dd-a9ed-4341-8bcc-186192aea089"), .pid = 1013 }; pub const WPD_PROPERTY_OBJECT_MANAGEMENT_UPDATE_PROPERTIES = PROPERTYKEY{ .fmtid = Guid.initString("ef1e43dd-a9ed-4341-8bcc-186192aea089"), .pid = 1014 }; pub const WPD_PROPERTY_OBJECT_MANAGEMENT_PROPERTY_KEYS = PROPERTYKEY{ .fmtid = Guid.initString("ef1e43dd-a9ed-4341-8bcc-186192aea089"), .pid = 1015 }; pub const WPD_PROPERTY_OBJECT_MANAGEMENT_OBJECT_FORMAT = PROPERTYKEY{ .fmtid = Guid.initString("ef1e43dd-a9ed-4341-8bcc-186192aea089"), .pid = 1016 }; pub const WPD_OPTION_OBJECT_MANAGEMENT_RECURSIVE_DELETE_SUPPORTED = PROPERTYKEY{ .fmtid = Guid.initString("ef1e43dd-a9ed-4341-8bcc-186192aea089"), .pid = 5001 }; pub const WPD_CATEGORY_CAPABILITIES = Guid.initString("0cabec78-6b74-41c6-9216-2639d1fce356"); pub const WPD_COMMAND_CAPABILITIES_GET_SUPPORTED_COMMANDS = PROPERTYKEY{ .fmtid = Guid.initString("0cabec78-6b74-41c6-9216-2639d1fce356"), .pid = 2 }; pub const WPD_COMMAND_CAPABILITIES_GET_COMMAND_OPTIONS = PROPERTYKEY{ .fmtid = Guid.initString("0cabec78-6b74-41c6-9216-2639d1fce356"), .pid = 3 }; pub const WPD_COMMAND_CAPABILITIES_GET_SUPPORTED_FUNCTIONAL_CATEGORIES = PROPERTYKEY{ .fmtid = Guid.initString("0cabec78-6b74-41c6-9216-2639d1fce356"), .pid = 4 }; pub const WPD_COMMAND_CAPABILITIES_GET_FUNCTIONAL_OBJECTS = PROPERTYKEY{ .fmtid = Guid.initString("0cabec78-6b74-41c6-9216-2639d1fce356"), .pid = 5 }; pub const WPD_COMMAND_CAPABILITIES_GET_SUPPORTED_CONTENT_TYPES = PROPERTYKEY{ .fmtid = Guid.initString("0cabec78-6b74-41c6-9216-2639d1fce356"), .pid = 6 }; pub const WPD_COMMAND_CAPABILITIES_GET_SUPPORTED_FORMATS = PROPERTYKEY{ .fmtid = Guid.initString("0cabec78-6b74-41c6-9216-2639d1fce356"), .pid = 7 }; pub const WPD_COMMAND_CAPABILITIES_GET_SUPPORTED_FORMAT_PROPERTIES = PROPERTYKEY{ .fmtid = Guid.initString("0cabec78-6b74-41c6-9216-2639d1fce356"), .pid = 8 }; pub const WPD_COMMAND_CAPABILITIES_GET_FIXED_PROPERTY_ATTRIBUTES = PROPERTYKEY{ .fmtid = Guid.initString("0cabec78-6b74-41c6-9216-2639d1fce356"), .pid = 9 }; pub const WPD_COMMAND_CAPABILITIES_GET_SUPPORTED_EVENTS = PROPERTYKEY{ .fmtid = Guid.initString("0cabec78-6b74-41c6-9216-2639d1fce356"), .pid = 10 }; pub const WPD_COMMAND_CAPABILITIES_GET_EVENT_OPTIONS = PROPERTYKEY{ .fmtid = Guid.initString("0cabec78-6b74-41c6-9216-2639d1fce356"), .pid = 11 }; pub const WPD_PROPERTY_CAPABILITIES_SUPPORTED_COMMANDS = PROPERTYKEY{ .fmtid = Guid.initString("0cabec78-6b74-41c6-9216-2639d1fce356"), .pid = 1001 }; pub const WPD_PROPERTY_CAPABILITIES_COMMAND = PROPERTYKEY{ .fmtid = Guid.initString("0cabec78-6b74-41c6-9216-2639d1fce356"), .pid = 1002 }; pub const WPD_PROPERTY_CAPABILITIES_COMMAND_OPTIONS = PROPERTYKEY{ .fmtid = Guid.initString("0cabec78-6b74-41c6-9216-2639d1fce356"), .pid = 1003 }; pub const WPD_PROPERTY_CAPABILITIES_FUNCTIONAL_CATEGORIES = PROPERTYKEY{ .fmtid = Guid.initString("0cabec78-6b74-41c6-9216-2639d1fce356"), .pid = 1004 }; pub const WPD_PROPERTY_CAPABILITIES_FUNCTIONAL_CATEGORY = PROPERTYKEY{ .fmtid = Guid.initString("0cabec78-6b74-41c6-9216-2639d1fce356"), .pid = 1005 }; pub const WPD_PROPERTY_CAPABILITIES_FUNCTIONAL_OBJECTS = PROPERTYKEY{ .fmtid = Guid.initString("0cabec78-6b74-41c6-9216-2639d1fce356"), .pid = 1006 }; pub const WPD_PROPERTY_CAPABILITIES_CONTENT_TYPES = PROPERTYKEY{ .fmtid = Guid.initString("0cabec78-6b74-41c6-9216-2639d1fce356"), .pid = 1007 }; pub const WPD_PROPERTY_CAPABILITIES_CONTENT_TYPE = PROPERTYKEY{ .fmtid = Guid.initString("0cabec78-6b74-41c6-9216-2639d1fce356"), .pid = 1008 }; pub const WPD_PROPERTY_CAPABILITIES_FORMATS = PROPERTYKEY{ .fmtid = Guid.initString("0cabec78-6b74-41c6-9216-2639d1fce356"), .pid = 1009 }; pub const WPD_PROPERTY_CAPABILITIES_FORMAT = PROPERTYKEY{ .fmtid = Guid.initString("0cabec78-6b74-41c6-9216-2639d1fce356"), .pid = 1010 }; pub const WPD_PROPERTY_CAPABILITIES_PROPERTY_KEYS = PROPERTYKEY{ .fmtid = Guid.initString("0cabec78-6b74-41c6-9216-2639d1fce356"), .pid = 1011 }; pub const WPD_PROPERTY_CAPABILITIES_PROPERTY_ATTRIBUTES = PROPERTYKEY{ .fmtid = Guid.initString("0cabec78-6b74-41c6-9216-2639d1fce356"), .pid = 1012 }; pub const WPD_PROPERTY_CAPABILITIES_SUPPORTED_EVENTS = PROPERTYKEY{ .fmtid = Guid.initString("0cabec78-6b74-41c6-9216-2639d1fce356"), .pid = 1013 }; pub const WPD_PROPERTY_CAPABILITIES_EVENT = PROPERTYKEY{ .fmtid = Guid.initString("0cabec78-6b74-41c6-9216-2639d1fce356"), .pid = 1014 }; pub const WPD_PROPERTY_CAPABILITIES_EVENT_OPTIONS = PROPERTYKEY{ .fmtid = Guid.initString("0cabec78-6b74-41c6-9216-2639d1fce356"), .pid = 1015 }; pub const WPD_CATEGORY_STORAGE = Guid.initString("d8f907a6-34cc-45fa-97fb-d007fa47ec94"); pub const WPD_COMMAND_STORAGE_FORMAT = PROPERTYKEY{ .fmtid = Guid.initString("d8f907a6-34cc-45fa-97fb-d007fa47ec94"), .pid = 2 }; pub const WPD_COMMAND_STORAGE_EJECT = PROPERTYKEY{ .fmtid = Guid.initString("d8f907a6-34cc-45fa-97fb-d007fa47ec94"), .pid = 4 }; pub const WPD_PROPERTY_STORAGE_OBJECT_ID = PROPERTYKEY{ .fmtid = Guid.initString("d8f907a6-34cc-45fa-97fb-d007fa47ec94"), .pid = 1001 }; pub const WPD_PROPERTY_STORAGE_DESTINATION_OBJECT_ID = PROPERTYKEY{ .fmtid = Guid.initString("d8f907a6-34cc-45fa-97fb-d007fa47ec94"), .pid = 1002 }; pub const WPD_CATEGORY_SMS = Guid.initString("afc25d66-fe0d-4114-9097-970c93e920d1"); pub const WPD_COMMAND_SMS_SEND = PROPERTYKEY{ .fmtid = Guid.initString("afc25d66-fe0d-4114-9097-970c93e920d1"), .pid = 2 }; pub const WPD_PROPERTY_SMS_RECIPIENT = PROPERTYKEY{ .fmtid = Guid.initString("afc25d66-fe0d-4114-9097-970c93e920d1"), .pid = 1001 }; pub const WPD_PROPERTY_SMS_MESSAGE_TYPE = PROPERTYKEY{ .fmtid = Guid.initString("afc25d66-fe0d-4114-9097-970c93e920d1"), .pid = 1002 }; pub const WPD_PROPERTY_SMS_TEXT_MESSAGE = PROPERTYKEY{ .fmtid = Guid.initString("afc25d66-fe0d-4114-9097-970c93e920d1"), .pid = 1003 }; pub const WPD_PROPERTY_SMS_BINARY_MESSAGE = PROPERTYKEY{ .fmtid = Guid.initString("afc25d66-fe0d-4114-9097-970c93e920d1"), .pid = 1004 }; pub const WPD_OPTION_SMS_BINARY_MESSAGE_SUPPORTED = PROPERTYKEY{ .fmtid = Guid.initString("afc25d66-fe0d-4114-9097-970c93e920d1"), .pid = 5001 }; pub const WPD_CATEGORY_STILL_IMAGE_CAPTURE = Guid.initString("4fcd6982-22a2-4b05-a48b-62d38bf27b32"); pub const WPD_COMMAND_STILL_IMAGE_CAPTURE_INITIATE = PROPERTYKEY{ .fmtid = Guid.initString("4fcd6982-22a2-4b05-a48b-62d38bf27b32"), .pid = 2 }; pub const WPD_CATEGORY_MEDIA_CAPTURE = Guid.initString("59b433ba-fe44-4d8d-808c-6bcb9b0f15e8"); pub const WPD_COMMAND_MEDIA_CAPTURE_START = PROPERTYKEY{ .fmtid = Guid.initString("59b433ba-fe44-4d8d-808c-6bcb9b0f15e8"), .pid = 2 }; pub const WPD_COMMAND_MEDIA_CAPTURE_STOP = PROPERTYKEY{ .fmtid = Guid.initString("59b433ba-fe44-4d8d-808c-6bcb9b0f15e8"), .pid = 3 }; pub const WPD_COMMAND_MEDIA_CAPTURE_PAUSE = PROPERTYKEY{ .fmtid = Guid.initString("59b433ba-fe44-4d8d-808c-6bcb9b0f15e8"), .pid = 4 }; pub const WPD_CATEGORY_DEVICE_HINTS = Guid.initString("0d5fb92b-cb46-4c4f-8343-0bc3d3f17c84"); pub const WPD_COMMAND_DEVICE_HINTS_GET_CONTENT_LOCATION = PROPERTYKEY{ .fmtid = Guid.initString("0d5fb92b-cb46-4c4f-8343-0bc3d3f17c84"), .pid = 2 }; pub const WPD_PROPERTY_DEVICE_HINTS_CONTENT_TYPE = PROPERTYKEY{ .fmtid = Guid.initString("0d5fb92b-cb46-4c4f-8343-0bc3d3f17c84"), .pid = 1001 }; pub const WPD_PROPERTY_DEVICE_HINTS_CONTENT_LOCATIONS = PROPERTYKEY{ .fmtid = Guid.initString("0d5fb92b-cb46-4c4f-8343-0bc3d3f17c84"), .pid = 1002 }; pub const WPD_CLASS_EXTENSION_V1 = Guid.initString("33fb0d11-64a3-4fac-b4c7-3dfeaa99b051"); pub const WPD_COMMAND_CLASS_EXTENSION_WRITE_DEVICE_INFORMATION = PROPERTYKEY{ .fmtid = Guid.initString("33fb0d11-64a3-4fac-b4c7-3dfeaa99b051"), .pid = 2 }; pub const WPD_PROPERTY_CLASS_EXTENSION_DEVICE_INFORMATION_VALUES = PROPERTYKEY{ .fmtid = Guid.initString("33fb0d11-64a3-4fac-b4c7-3dfeaa99b051"), .pid = 1001 }; pub const WPD_PROPERTY_CLASS_EXTENSION_DEVICE_INFORMATION_WRITE_RESULTS = PROPERTYKEY{ .fmtid = Guid.initString("33fb0d11-64a3-4fac-b4c7-3dfeaa99b051"), .pid = 1002 }; pub const WPD_CLASS_EXTENSION_V2 = Guid.initString("7f0779b5-fa2b-4766-9cb2-f73ba30b6758"); pub const WPD_COMMAND_CLASS_EXTENSION_REGISTER_SERVICE_INTERFACES = PROPERTYKEY{ .fmtid = Guid.initString("7f0779b5-fa2b-4766-9cb2-f73ba30b6758"), .pid = 2 }; pub const WPD_COMMAND_CLASS_EXTENSION_UNREGISTER_SERVICE_INTERFACES = PROPERTYKEY{ .fmtid = Guid.initString("7f0779b5-fa2b-4766-9cb2-f73ba30b6758"), .pid = 3 }; pub const WPD_PROPERTY_CLASS_EXTENSION_SERVICE_OBJECT_ID = PROPERTYKEY{ .fmtid = Guid.initString("7f0779b5-fa2b-4766-9cb2-f73ba30b6758"), .pid = 1001 }; pub const WPD_PROPERTY_CLASS_EXTENSION_SERVICE_INTERFACES = PROPERTYKEY{ .fmtid = Guid.initString("7f0779b5-fa2b-4766-9cb2-f73ba30b6758"), .pid = 1002 }; pub const WPD_PROPERTY_CLASS_EXTENSION_SERVICE_REGISTRATION_RESULTS = PROPERTYKEY{ .fmtid = Guid.initString("7f0779b5-fa2b-4766-9cb2-f73ba30b6758"), .pid = 1003 }; pub const WPD_CATEGORY_NETWORK_CONFIGURATION = Guid.initString("78f9c6fc-79b8-473c-9060-6bd23dd072c4"); pub const WPD_COMMAND_GENERATE_KEYPAIR = PROPERTYKEY{ .fmtid = Guid.initString("78f9c6fc-79b8-473c-9060-6bd23dd072c4"), .pid = 2 }; pub const WPD_COMMAND_COMMIT_KEYPAIR = PROPERTYKEY{ .fmtid = Guid.initString("78f9c6fc-79b8-473c-9060-6bd23dd072c4"), .pid = 3 }; pub const WPD_COMMAND_PROCESS_WIRELESS_PROFILE = PROPERTYKEY{ .fmtid = Guid.initString("78f9c6fc-79b8-473c-9060-6bd23dd072c4"), .pid = 4 }; pub const WPD_PROPERTY_PUBLIC_KEY = PROPERTYKEY{ .fmtid = Guid.initString("78f9c6fc-79b8-473c-9060-6bd23dd072c4"), .pid = 1001 }; pub const WPD_CATEGORY_SERVICE_COMMON = Guid.initString("322f071d-36ef-477f-b4b5-6f52d734baee"); pub const WPD_COMMAND_SERVICE_COMMON_GET_SERVICE_OBJECT_ID = PROPERTYKEY{ .fmtid = Guid.initString("322f071d-36ef-477f-b4b5-6f52d734baee"), .pid = 2 }; pub const WPD_PROPERTY_SERVICE_OBJECT_ID = PROPERTYKEY{ .fmtid = Guid.initString("322f071d-36ef-477f-b4b5-6f52d734baee"), .pid = 1001 }; pub const WPD_CATEGORY_SERVICE_CAPABILITIES = Guid.initString("24457e74-2e9f-44f9-8c57-1d1bcb170b89"); pub const WPD_COMMAND_SERVICE_CAPABILITIES_GET_SUPPORTED_METHODS = PROPERTYKEY{ .fmtid = Guid.initString("24457e74-2e9f-44f9-8c57-1d1bcb170b89"), .pid = 2 }; pub const WPD_COMMAND_SERVICE_CAPABILITIES_GET_SUPPORTED_METHODS_BY_FORMAT = PROPERTYKEY{ .fmtid = Guid.initString("24457e74-2e9f-44f9-8c57-1d1bcb170b89"), .pid = 3 }; pub const WPD_COMMAND_SERVICE_CAPABILITIES_GET_METHOD_ATTRIBUTES = PROPERTYKEY{ .fmtid = Guid.initString("24457e74-2e9f-44f9-8c57-1d1bcb170b89"), .pid = 4 }; pub const WPD_COMMAND_SERVICE_CAPABILITIES_GET_METHOD_PARAMETER_ATTRIBUTES = PROPERTYKEY{ .fmtid = Guid.initString("24457e74-2e9f-44f9-8c57-1d1bcb170b89"), .pid = 5 }; pub const WPD_COMMAND_SERVICE_CAPABILITIES_GET_SUPPORTED_FORMATS = PROPERTYKEY{ .fmtid = Guid.initString("24457e74-2e9f-44f9-8c57-1d1bcb170b89"), .pid = 6 }; pub const WPD_COMMAND_SERVICE_CAPABILITIES_GET_FORMAT_ATTRIBUTES = PROPERTYKEY{ .fmtid = Guid.initString("24457e74-2e9f-44f9-8c57-1d1bcb170b89"), .pid = 7 }; pub const WPD_COMMAND_SERVICE_CAPABILITIES_GET_SUPPORTED_FORMAT_PROPERTIES = PROPERTYKEY{ .fmtid = Guid.initString("24457e74-2e9f-44f9-8c57-1d1bcb170b89"), .pid = 8 }; pub const WPD_COMMAND_SERVICE_CAPABILITIES_GET_FORMAT_PROPERTY_ATTRIBUTES = PROPERTYKEY{ .fmtid = Guid.initString("24457e74-2e9f-44f9-8c57-1d1bcb170b89"), .pid = 9 }; pub const WPD_COMMAND_SERVICE_CAPABILITIES_GET_SUPPORTED_EVENTS = PROPERTYKEY{ .fmtid = Guid.initString("24457e74-2e9f-44f9-8c57-1d1bcb170b89"), .pid = 10 }; pub const WPD_COMMAND_SERVICE_CAPABILITIES_GET_EVENT_ATTRIBUTES = PROPERTYKEY{ .fmtid = Guid.initString("24457e74-2e9f-44f9-8c57-1d1bcb170b89"), .pid = 11 }; pub const WPD_COMMAND_SERVICE_CAPABILITIES_GET_EVENT_PARAMETER_ATTRIBUTES = PROPERTYKEY{ .fmtid = Guid.initString("24457e74-2e9f-44f9-8c57-1d1bcb170b89"), .pid = 12 }; pub const WPD_COMMAND_SERVICE_CAPABILITIES_GET_INHERITED_SERVICES = PROPERTYKEY{ .fmtid = Guid.initString("24457e74-2e9f-44f9-8c57-1d1bcb170b89"), .pid = 13 }; pub const WPD_COMMAND_SERVICE_CAPABILITIES_GET_FORMAT_RENDERING_PROFILES = PROPERTYKEY{ .fmtid = Guid.initString("24457e74-2e9f-44f9-8c57-1d1bcb170b89"), .pid = 14 }; pub const WPD_COMMAND_SERVICE_CAPABILITIES_GET_SUPPORTED_COMMANDS = PROPERTYKEY{ .fmtid = Guid.initString("24457e74-2e9f-44f9-8c57-1d1bcb170b89"), .pid = 15 }; pub const WPD_COMMAND_SERVICE_CAPABILITIES_GET_COMMAND_OPTIONS = PROPERTYKEY{ .fmtid = Guid.initString("24457e74-2e9f-44f9-8c57-1d1bcb170b89"), .pid = 16 }; pub const WPD_PROPERTY_SERVICE_CAPABILITIES_SUPPORTED_METHODS = PROPERTYKEY{ .fmtid = Guid.initString("24457e74-2e9f-44f9-8c57-1d1bcb170b89"), .pid = 1001 }; pub const WPD_PROPERTY_SERVICE_CAPABILITIES_FORMAT = PROPERTYKEY{ .fmtid = Guid.initString("24457e74-2e9f-44f9-8c57-1d1bcb170b89"), .pid = 1002 }; pub const WPD_PROPERTY_SERVICE_CAPABILITIES_METHOD = PROPERTYKEY{ .fmtid = Guid.initString("24457e74-2e9f-44f9-8c57-1d1bcb170b89"), .pid = 1003 }; pub const WPD_PROPERTY_SERVICE_CAPABILITIES_METHOD_ATTRIBUTES = PROPERTYKEY{ .fmtid = Guid.initString("24457e74-2e9f-44f9-8c57-1d1bcb170b89"), .pid = 1004 }; pub const WPD_PROPERTY_SERVICE_CAPABILITIES_PARAMETER = PROPERTYKEY{ .fmtid = Guid.initString("24457e74-2e9f-44f9-8c57-1d1bcb170b89"), .pid = 1005 }; pub const WPD_PROPERTY_SERVICE_CAPABILITIES_PARAMETER_ATTRIBUTES = PROPERTYKEY{ .fmtid = Guid.initString("24457e74-2e9f-44f9-8c57-1d1bcb170b89"), .pid = 1006 }; pub const WPD_PROPERTY_SERVICE_CAPABILITIES_FORMATS = PROPERTYKEY{ .fmtid = Guid.initString("24457e74-2e9f-44f9-8c57-1d1bcb170b89"), .pid = 1007 }; pub const WPD_PROPERTY_SERVICE_CAPABILITIES_FORMAT_ATTRIBUTES = PROPERTYKEY{ .fmtid = Guid.initString("24457e74-2e9f-44f9-8c57-1d1bcb170b89"), .pid = 1008 }; pub const WPD_PROPERTY_SERVICE_CAPABILITIES_PROPERTY_KEYS = PROPERTYKEY{ .fmtid = Guid.initString("24457e74-2e9f-44f9-8c57-1d1bcb170b89"), .pid = 1009 }; pub const WPD_PROPERTY_SERVICE_CAPABILITIES_PROPERTY_ATTRIBUTES = PROPERTYKEY{ .fmtid = Guid.initString("24457e74-2e9f-44f9-8c57-1d1bcb170b89"), .pid = 1010 }; pub const WPD_PROPERTY_SERVICE_CAPABILITIES_SUPPORTED_EVENTS = PROPERTYKEY{ .fmtid = Guid.initString("24457e74-2e9f-44f9-8c57-1d1bcb170b89"), .pid = 1011 }; pub const WPD_PROPERTY_SERVICE_CAPABILITIES_EVENT = PROPERTYKEY{ .fmtid = Guid.initString("24457e74-2e9f-44f9-8c57-1d1bcb170b89"), .pid = 1012 }; pub const WPD_PROPERTY_SERVICE_CAPABILITIES_EVENT_ATTRIBUTES = PROPERTYKEY{ .fmtid = Guid.initString("24457e74-2e9f-44f9-8c57-1d1bcb170b89"), .pid = 1013 }; pub const WPD_PROPERTY_SERVICE_CAPABILITIES_INHERITANCE_TYPE = PROPERTYKEY{ .fmtid = Guid.initString("24457e74-2e9f-44f9-8c57-1d1bcb170b89"), .pid = 1014 }; pub const WPD_PROPERTY_SERVICE_CAPABILITIES_INHERITED_SERVICES = PROPERTYKEY{ .fmtid = Guid.initString("24457e74-2e9f-44f9-8c57-1d1bcb170b89"), .pid = 1015 }; pub const WPD_PROPERTY_SERVICE_CAPABILITIES_RENDERING_PROFILES = PROPERTYKEY{ .fmtid = Guid.initString("24457e74-2e9f-44f9-8c57-1d1bcb170b89"), .pid = 1016 }; pub const WPD_PROPERTY_SERVICE_CAPABILITIES_SUPPORTED_COMMANDS = PROPERTYKEY{ .fmtid = Guid.initString("24457e74-2e9f-44f9-8c57-1d1bcb170b89"), .pid = 1017 }; pub const WPD_PROPERTY_SERVICE_CAPABILITIES_COMMAND = PROPERTYKEY{ .fmtid = Guid.initString("24457e74-2e9f-44f9-8c57-1d1bcb170b89"), .pid = 1018 }; pub const WPD_PROPERTY_SERVICE_CAPABILITIES_COMMAND_OPTIONS = PROPERTYKEY{ .fmtid = Guid.initString("24457e74-2e9f-44f9-8c57-1d1bcb170b89"), .pid = 1019 }; pub const WPD_CATEGORY_SERVICE_METHODS = Guid.initString("2d521ca8-c1b0-4268-a342-cf19321569bc"); pub const WPD_COMMAND_SERVICE_METHODS_START_INVOKE = PROPERTYKEY{ .fmtid = Guid.initString("2d521ca8-c1b0-4268-a342-cf19321569bc"), .pid = 2 }; pub const WPD_COMMAND_SERVICE_METHODS_CANCEL_INVOKE = PROPERTYKEY{ .fmtid = Guid.initString("2d521ca8-c1b0-4268-a342-cf19321569bc"), .pid = 3 }; pub const WPD_COMMAND_SERVICE_METHODS_END_INVOKE = PROPERTYKEY{ .fmtid = Guid.initString("2d521ca8-c1b0-4268-a342-cf19321569bc"), .pid = 4 }; pub const WPD_PROPERTY_SERVICE_METHOD = PROPERTYKEY{ .fmtid = Guid.initString("2d521ca8-c1b0-4268-a342-cf19321569bc"), .pid = 1001 }; pub const WPD_PROPERTY_SERVICE_METHOD_PARAMETER_VALUES = PROPERTYKEY{ .fmtid = Guid.initString("2d521ca8-c1b0-4268-a342-cf19321569bc"), .pid = 1002 }; pub const WPD_PROPERTY_SERVICE_METHOD_RESULT_VALUES = PROPERTYKEY{ .fmtid = Guid.initString("2d521ca8-c1b0-4268-a342-cf19321569bc"), .pid = 1003 }; pub const WPD_PROPERTY_SERVICE_METHOD_CONTEXT = PROPERTYKEY{ .fmtid = Guid.initString("2d521ca8-c1b0-4268-a342-cf19321569bc"), .pid = 1004 }; pub const WPD_PROPERTY_SERVICE_METHOD_HRESULT = PROPERTYKEY{ .fmtid = Guid.initString("2d521ca8-c1b0-4268-a342-cf19321569bc"), .pid = 1005 }; pub const WPD_RESOURCE_DEFAULT = PROPERTYKEY{ .fmtid = Guid.initString("e81e79be-34f0-41bf-b53f-f1a06ae87842"), .pid = 0 }; pub const WPD_RESOURCE_CONTACT_PHOTO = PROPERTYKEY{ .fmtid = Guid.initString("2c4d6803-80ea-4580-af9a-5be1a23eddcb"), .pid = 0 }; pub const WPD_RESOURCE_THUMBNAIL = PROPERTYKEY{ .fmtid = Guid.initString("c7c407ba-98fa-46b5-9960-23fec124cfde"), .pid = 0 }; pub const WPD_RESOURCE_ICON = PROPERTYKEY{ .fmtid = Guid.initString("f195fed8-aa28-4ee3-b153-e182dd5edc39"), .pid = 0 }; pub const WPD_RESOURCE_AUDIO_CLIP = PROPERTYKEY{ .fmtid = Guid.initString("3bc13982-85b1-48e0-95a6-8d3ad06be117"), .pid = 0 }; pub const WPD_RESOURCE_ALBUM_ART = PROPERTYKEY{ .fmtid = Guid.initString("f02aa354-2300-4e2d-a1b9-3b6730f7fa21"), .pid = 0 }; pub const WPD_RESOURCE_GENERIC = PROPERTYKEY{ .fmtid = Guid.initString("b9b9f515-ba70-4647-94dc-fa4925e95a07"), .pid = 0 }; pub const WPD_RESOURCE_VIDEO_CLIP = PROPERTYKEY{ .fmtid = Guid.initString("b566ee42-6368-4290-8662-70182fb79f20"), .pid = 0 }; pub const WPD_RESOURCE_BRANDING_ART = PROPERTYKEY{ .fmtid = Guid.initString("b633b1ae-6caf-4a87-9589-22ded6dd5899"), .pid = 0 }; pub const WPD_OBJECT_FORMAT_PROPERTIES_ONLY = Guid.initString("30010000-ae6c-4804-98ba-c57b46965fe7"); pub const WPD_OBJECT_FORMAT_UNSPECIFIED = Guid.initString("30000000-ae6c-4804-98ba-c57b46965fe7"); pub const WPD_OBJECT_FORMAT_SCRIPT = Guid.initString("30020000-ae6c-4804-98ba-c57b46965fe7"); pub const WPD_OBJECT_FORMAT_EXECUTABLE = Guid.initString("30030000-ae6c-4804-98ba-c57b46965fe7"); pub const WPD_OBJECT_FORMAT_TEXT = Guid.initString("30040000-ae6c-4804-98ba-c57b46965fe7"); pub const WPD_OBJECT_FORMAT_HTML = Guid.initString("30050000-ae6c-4804-98ba-c57b46965fe7"); pub const WPD_OBJECT_FORMAT_DPOF = Guid.initString("30060000-ae6c-4804-98ba-c57b46965fe7"); pub const WPD_OBJECT_FORMAT_AIFF = Guid.initString("30070000-ae6c-4804-98ba-c57b46965fe7"); pub const WPD_OBJECT_FORMAT_WAVE = Guid.initString("30080000-ae6c-4804-98ba-c57b46965fe7"); pub const WPD_OBJECT_FORMAT_MP3 = Guid.initString("30090000-ae6c-4804-98ba-c57b46965fe7"); pub const WPD_OBJECT_FORMAT_AVI = Guid.initString("300a0000-ae6c-4804-98ba-c57b46965fe7"); pub const WPD_OBJECT_FORMAT_MPEG = Guid.initString("300b0000-ae6c-4804-98ba-c57b46965fe7"); pub const WPD_OBJECT_FORMAT_ASF = Guid.initString("300c0000-ae6c-4804-98ba-c57b46965fe7"); pub const WPD_OBJECT_FORMAT_EXIF = Guid.initString("38010000-ae6c-4804-98ba-c57b46965fe7"); pub const WPD_OBJECT_FORMAT_TIFFEP = Guid.initString("38020000-ae6c-4804-98ba-c57b46965fe7"); pub const WPD_OBJECT_FORMAT_FLASHPIX = Guid.initString("38030000-ae6c-4804-98ba-c57b46965fe7"); pub const WPD_OBJECT_FORMAT_BMP = Guid.initString("38040000-ae6c-4804-98ba-c57b46965fe7"); pub const WPD_OBJECT_FORMAT_CIFF = Guid.initString("38050000-ae6c-4804-98ba-c57b46965fe7"); pub const WPD_OBJECT_FORMAT_GIF = Guid.initString("38070000-ae6c-4804-98ba-c57b46965fe7"); pub const WPD_OBJECT_FORMAT_JFIF = Guid.initString("38080000-ae6c-4804-98ba-c57b46965fe7"); pub const WPD_OBJECT_FORMAT_PCD = Guid.initString("38090000-ae6c-4804-98ba-c57b46965fe7"); pub const WPD_OBJECT_FORMAT_PICT = Guid.initString("380a0000-ae6c-4804-98ba-c57b46965fe7"); pub const WPD_OBJECT_FORMAT_PNG = Guid.initString("380b0000-ae6c-4804-98ba-c57b46965fe7"); pub const WPD_OBJECT_FORMAT_TIFF = Guid.initString("380d0000-ae6c-4804-98ba-c57b46965fe7"); pub const WPD_OBJECT_FORMAT_TIFFIT = Guid.initString("380e0000-ae6c-4804-98ba-c57b46965fe7"); pub const WPD_OBJECT_FORMAT_JP2 = Guid.initString("380f0000-ae6c-4804-98ba-c57b46965fe7"); pub const WPD_OBJECT_FORMAT_JPX = Guid.initString("38100000-ae6c-4804-98ba-c57b46965fe7"); pub const WPD_OBJECT_FORMAT_WBMP = Guid.initString("b8030000-ae6c-4804-98ba-c57b46965fe7"); pub const WPD_OBJECT_FORMAT_JPEGXR = Guid.initString("b8040000-ae6c-4804-98ba-c57b46965fe7"); pub const WPD_OBJECT_FORMAT_WINDOWSIMAGEFORMAT = Guid.initString("b8810000-ae6c-4804-98ba-c57b46965fe7"); pub const WPD_OBJECT_FORMAT_WMA = Guid.initString("b9010000-ae6c-4804-98ba-c57b46965fe7"); pub const WPD_OBJECT_FORMAT_WMV = Guid.initString("b9810000-ae6c-4804-98ba-c57b46965fe7"); pub const WPD_OBJECT_FORMAT_WPLPLAYLIST = Guid.initString("ba100000-ae6c-4804-98ba-c57b46965fe7"); pub const WPD_OBJECT_FORMAT_M3UPLAYLIST = Guid.initString("ba110000-ae6c-4804-98ba-c57b46965fe7"); pub const WPD_OBJECT_FORMAT_MPLPLAYLIST = Guid.initString("ba120000-ae6c-4804-98ba-c57b46965fe7"); pub const WPD_OBJECT_FORMAT_ASXPLAYLIST = Guid.initString("ba130000-ae6c-4804-98ba-c57b46965fe7"); pub const WPD_OBJECT_FORMAT_PLSPLAYLIST = Guid.initString("ba140000-ae6c-4804-98ba-c57b46965fe7"); pub const WPD_OBJECT_FORMAT_ABSTRACT_CONTACT_GROUP = Guid.initString("ba060000-ae6c-4804-98ba-c57b46965fe7"); pub const WPD_OBJECT_FORMAT_ABSTRACT_MEDIA_CAST = Guid.initString("ba0b0000-ae6c-4804-98ba-c57b46965fe7"); pub const WPD_OBJECT_FORMAT_VCALENDAR1 = Guid.initString("be020000-ae6c-4804-98ba-c57b46965fe7"); pub const WPD_OBJECT_FORMAT_ICALENDAR = Guid.initString("be030000-ae6c-4804-98ba-c57b46965fe7"); pub const WPD_OBJECT_FORMAT_ABSTRACT_CONTACT = Guid.initString("bb810000-ae6c-4804-98ba-c57b46965fe7"); pub const WPD_OBJECT_FORMAT_VCARD2 = Guid.initString("bb820000-ae6c-4804-98ba-c57b46965fe7"); pub const WPD_OBJECT_FORMAT_VCARD3 = Guid.initString("bb830000-ae6c-4804-98ba-c57b46965fe7"); pub const WPD_OBJECT_FORMAT_XML = Guid.initString("ba820000-ae6c-4804-98ba-c57b46965fe7"); pub const WPD_OBJECT_FORMAT_AAC = Guid.initString("b9030000-ae6c-4804-98ba-c57b46965fe7"); pub const WPD_OBJECT_FORMAT_AUDIBLE = Guid.initString("b9040000-ae6c-4804-98ba-c57b46965fe7"); pub const WPD_OBJECT_FORMAT_FLAC = Guid.initString("b9060000-ae6c-4804-98ba-c57b46965fe7"); pub const WPD_OBJECT_FORMAT_QCELP = Guid.initString("b9070000-ae6c-4804-98ba-c57b46965fe7"); pub const WPD_OBJECT_FORMAT_AMR = Guid.initString("b9080000-ae6c-4804-98ba-c57b46965fe7"); pub const WPD_OBJECT_FORMAT_OGG = Guid.initString("b9020000-ae6c-4804-98ba-c57b46965fe7"); pub const WPD_OBJECT_FORMAT_MP4 = Guid.initString("b9820000-ae6c-4804-98ba-c57b46965fe7"); pub const WPD_OBJECT_FORMAT_MP2 = Guid.initString("b9830000-ae6c-4804-98ba-c57b46965fe7"); pub const WPD_OBJECT_FORMAT_MICROSOFT_WORD = Guid.initString("ba830000-ae6c-4804-98ba-c57b46965fe7"); pub const WPD_OBJECT_FORMAT_MHT_COMPILED_HTML = Guid.initString("ba840000-ae6c-4804-98ba-c57b46965fe7"); pub const WPD_OBJECT_FORMAT_MICROSOFT_EXCEL = Guid.initString("ba850000-ae6c-4804-98ba-c57b46965fe7"); pub const WPD_OBJECT_FORMAT_MICROSOFT_POWERPOINT = Guid.initString("ba860000-ae6c-4804-98ba-c57b46965fe7"); pub const WPD_OBJECT_FORMAT_3GP = Guid.initString("b9840000-ae6c-4804-98ba-c57b46965fe7"); pub const WPD_OBJECT_FORMAT_3G2 = Guid.initString("b9850000-ae6c-4804-98ba-c57b46965fe7"); pub const WPD_OBJECT_FORMAT_AVCHD = Guid.initString("b9860000-ae6c-4804-98ba-c57b46965fe7"); pub const WPD_OBJECT_FORMAT_ATSCTS = Guid.initString("b9870000-ae6c-4804-98ba-c57b46965fe7"); pub const WPD_OBJECT_FORMAT_DVBTS = Guid.initString("b9880000-ae6c-4804-98ba-c57b46965fe7"); pub const WPD_OBJECT_FORMAT_MKV = Guid.initString("b9900000-ae6c-4804-98ba-c57b46965fe7"); pub const WPD_OBJECT_ID = PROPERTYKEY{ .fmtid = Guid.initString("ef6b490d-5cd8-437a-affc-da8b60ee4a3c"), .pid = 2 }; pub const WPD_OBJECT_PARENT_ID = PROPERTYKEY{ .fmtid = Guid.initString("ef6b490d-5cd8-437a-affc-da8b60ee4a3c"), .pid = 3 }; pub const WPD_OBJECT_NAME = PROPERTYKEY{ .fmtid = Guid.initString("ef6b490d-5cd8-437a-affc-da8b60ee4a3c"), .pid = 4 }; pub const WPD_OBJECT_PERSISTENT_UNIQUE_ID = PROPERTYKEY{ .fmtid = Guid.initString("ef6b490d-5cd8-437a-affc-da8b60ee4a3c"), .pid = 5 }; pub const WPD_OBJECT_FORMAT = PROPERTYKEY{ .fmtid = Guid.initString("ef6b490d-5cd8-437a-affc-da8b60ee4a3c"), .pid = 6 }; pub const WPD_OBJECT_ISHIDDEN = PROPERTYKEY{ .fmtid = Guid.initString("ef6b490d-5cd8-437a-affc-da8b60ee4a3c"), .pid = 9 }; pub const WPD_OBJECT_ISSYSTEM = PROPERTYKEY{ .fmtid = Guid.initString("ef6b490d-5cd8-437a-affc-da8b60ee4a3c"), .pid = 10 }; pub const WPD_OBJECT_SIZE = PROPERTYKEY{ .fmtid = Guid.initString("ef6b490d-5cd8-437a-affc-da8b60ee4a3c"), .pid = 11 }; pub const WPD_OBJECT_ORIGINAL_FILE_NAME = PROPERTYKEY{ .fmtid = Guid.initString("ef6b490d-5cd8-437a-affc-da8b60ee4a3c"), .pid = 12 }; pub const WPD_OBJECT_NON_CONSUMABLE = PROPERTYKEY{ .fmtid = Guid.initString("ef6b490d-5cd8-437a-affc-da8b60ee4a3c"), .pid = 13 }; pub const WPD_OBJECT_KEYWORDS = PROPERTYKEY{ .fmtid = Guid.initString("ef6b490d-5cd8-437a-affc-da8b60ee4a3c"), .pid = 15 }; pub const WPD_OBJECT_SYNC_ID = PROPERTYKEY{ .fmtid = Guid.initString("ef6b490d-5cd8-437a-affc-da8b60ee4a3c"), .pid = 16 }; pub const WPD_OBJECT_IS_DRM_PROTECTED = PROPERTYKEY{ .fmtid = Guid.initString("ef6b490d-5cd8-437a-affc-da8b60ee4a3c"), .pid = 17 }; pub const WPD_OBJECT_DATE_CREATED = PROPERTYKEY{ .fmtid = Guid.initString("ef6b490d-5cd8-437a-affc-da8b60ee4a3c"), .pid = 18 }; pub const WPD_OBJECT_DATE_MODIFIED = PROPERTYKEY{ .fmtid = Guid.initString("ef6b490d-5cd8-437a-affc-da8b60ee4a3c"), .pid = 19 }; pub const WPD_OBJECT_DATE_AUTHORED = PROPERTYKEY{ .fmtid = Guid.initString("ef6b490d-5cd8-437a-affc-da8b60ee4a3c"), .pid = 20 }; pub const WPD_OBJECT_BACK_REFERENCES = PROPERTYKEY{ .fmtid = Guid.initString("ef6b490d-5cd8-437a-affc-da8b60ee4a3c"), .pid = 21 }; pub const WPD_OBJECT_CAN_DELETE = PROPERTYKEY{ .fmtid = Guid.initString("ef6b490d-5cd8-437a-affc-da8b60ee4a3c"), .pid = 26 }; pub const WPD_OBJECT_LANGUAGE_LOCALE = PROPERTYKEY{ .fmtid = Guid.initString("ef6b490d-5cd8-437a-affc-da8b60ee4a3c"), .pid = 27 }; pub const WPD_FOLDER_OBJECT_PROPERTIES_V1 = Guid.initString("7e9a7abf-e568-4b34-aa2f-13bb12ab177d"); pub const WPD_FOLDER_CONTENT_TYPES_ALLOWED = PROPERTYKEY{ .fmtid = Guid.initString("7e9a7abf-e568-4b34-aa2f-13bb12ab177d"), .pid = 2 }; pub const WPD_IMAGE_OBJECT_PROPERTIES_V1 = Guid.initString("63d64908-9fa1-479f-85ba-9952216447db"); pub const WPD_IMAGE_BITDEPTH = PROPERTYKEY{ .fmtid = Guid.initString("63d64908-9fa1-479f-85ba-9952216447db"), .pid = 3 }; pub const WPD_IMAGE_CROPPED_STATUS = PROPERTYKEY{ .fmtid = Guid.initString("63d64908-9fa1-479f-85ba-9952216447db"), .pid = 4 }; pub const WPD_IMAGE_COLOR_CORRECTED_STATUS = PROPERTYKEY{ .fmtid = Guid.initString("63d64908-9fa1-479f-85ba-9952216447db"), .pid = 5 }; pub const WPD_IMAGE_FNUMBER = PROPERTYKEY{ .fmtid = Guid.initString("63d64908-9fa1-479f-85ba-9952216447db"), .pid = 6 }; pub const WPD_IMAGE_EXPOSURE_TIME = PROPERTYKEY{ .fmtid = Guid.initString("63d64908-9fa1-479f-85ba-9952216447db"), .pid = 7 }; pub const WPD_IMAGE_EXPOSURE_INDEX = PROPERTYKEY{ .fmtid = Guid.initString("63d64908-9fa1-479f-85ba-9952216447db"), .pid = 8 }; pub const WPD_IMAGE_HORIZONTAL_RESOLUTION = PROPERTYKEY{ .fmtid = Guid.initString("63d64908-9fa1-479f-85ba-9952216447db"), .pid = 9 }; pub const WPD_IMAGE_VERTICAL_RESOLUTION = PROPERTYKEY{ .fmtid = Guid.initString("63d64908-9fa1-479f-85ba-9952216447db"), .pid = 10 }; pub const WPD_DOCUMENT_OBJECT_PROPERTIES_V1 = Guid.initString("0b110203-eb95-4f02-93e0-97c631493ad5"); pub const WPD_MEDIA_PROPERTIES_V1 = Guid.initString("2ed8ba05-0ad3-42dc-b0d0-bc95ac396ac8"); pub const WPD_MEDIA_TOTAL_BITRATE = PROPERTYKEY{ .fmtid = Guid.initString("2ed8ba05-0ad3-42dc-b0d0-bc95ac396ac8"), .pid = 2 }; pub const WPD_MEDIA_BITRATE_TYPE = PROPERTYKEY{ .fmtid = Guid.initString("2ed8ba05-0ad3-42dc-b0d0-bc95ac396ac8"), .pid = 3 }; pub const WPD_MEDIA_COPYRIGHT = PROPERTYKEY{ .fmtid = Guid.initString("2ed8ba05-0ad3-42dc-b0d0-bc95ac396ac8"), .pid = 4 }; pub const WPD_MEDIA_SUBSCRIPTION_CONTENT_ID = PROPERTYKEY{ .fmtid = Guid.initString("2ed8ba05-0ad3-42dc-b0d0-bc95ac396ac8"), .pid = 5 }; pub const WPD_MEDIA_USE_COUNT = PROPERTYKEY{ .fmtid = Guid.initString("2ed8ba05-0ad3-42dc-b0d0-bc95ac396ac8"), .pid = 6 }; pub const WPD_MEDIA_SKIP_COUNT = PROPERTYKEY{ .fmtid = Guid.initString("2ed8ba05-0ad3-42dc-b0d0-bc95ac396ac8"), .pid = 7 }; pub const WPD_MEDIA_LAST_ACCESSED_TIME = PROPERTYKEY{ .fmtid = Guid.initString("2ed8ba05-0ad3-42dc-b0d0-bc95ac396ac8"), .pid = 8 }; pub const WPD_MEDIA_PARENTAL_RATING = PROPERTYKEY{ .fmtid = Guid.initString("2ed8ba05-0ad3-42dc-b0d0-bc95ac396ac8"), .pid = 9 }; pub const WPD_MEDIA_META_GENRE = PROPERTYKEY{ .fmtid = Guid.initString("2ed8ba05-0ad3-42dc-b0d0-bc95ac396ac8"), .pid = 10 }; pub const WPD_MEDIA_COMPOSER = PROPERTYKEY{ .fmtid = Guid.initString("2ed8ba05-0ad3-42dc-b0d0-bc95ac396ac8"), .pid = 11 }; pub const WPD_MEDIA_EFFECTIVE_RATING = PROPERTYKEY{ .fmtid = Guid.initString("2ed8ba05-0ad3-42dc-b0d0-bc95ac396ac8"), .pid = 12 }; pub const WPD_MEDIA_SUB_TITLE = PROPERTYKEY{ .fmtid = Guid.initString("2ed8ba05-0ad3-42dc-b0d0-bc95ac396ac8"), .pid = 13 }; pub const WPD_MEDIA_RELEASE_DATE = PROPERTYKEY{ .fmtid = Guid.initString("2ed8ba05-0ad3-42dc-b0d0-bc95ac396ac8"), .pid = 14 }; pub const WPD_MEDIA_SAMPLE_RATE = PROPERTYKEY{ .fmtid = Guid.initString("2ed8ba05-0ad3-42dc-b0d0-bc95ac396ac8"), .pid = 15 }; pub const WPD_MEDIA_STAR_RATING = PROPERTYKEY{ .fmtid = Guid.initString("2ed8ba05-0ad3-42dc-b0d0-bc95ac396ac8"), .pid = 16 }; pub const WPD_MEDIA_USER_EFFECTIVE_RATING = PROPERTYKEY{ .fmtid = Guid.initString("2ed8ba05-0ad3-42dc-b0d0-bc95ac396ac8"), .pid = 17 }; pub const WPD_MEDIA_TITLE = PROPERTYKEY{ .fmtid = Guid.initString("2ed8ba05-0ad3-42dc-b0d0-bc95ac396ac8"), .pid = 18 }; pub const WPD_MEDIA_DURATION = PROPERTYKEY{ .fmtid = Guid.initString("2ed8ba05-0ad3-42dc-b0d0-bc95ac396ac8"), .pid = 19 }; pub const WPD_MEDIA_BUY_NOW = PROPERTYKEY{ .fmtid = Guid.initString("2ed8ba05-0ad3-42dc-b0d0-bc95ac396ac8"), .pid = 20 }; pub const WPD_MEDIA_ENCODING_PROFILE = PROPERTYKEY{ .fmtid = Guid.initString("2ed8ba05-0ad3-42dc-b0d0-bc95ac396ac8"), .pid = 21 }; pub const WPD_MEDIA_WIDTH = PROPERTYKEY{ .fmtid = Guid.initString("2ed8ba05-0ad3-42dc-b0d0-bc95ac396ac8"), .pid = 22 }; pub const WPD_MEDIA_HEIGHT = PROPERTYKEY{ .fmtid = Guid.initString("2ed8ba05-0ad3-42dc-b0d0-bc95ac396ac8"), .pid = 23 }; pub const WPD_MEDIA_ARTIST = PROPERTYKEY{ .fmtid = Guid.initString("2ed8ba05-0ad3-42dc-b0d0-bc95ac396ac8"), .pid = 24 }; pub const WPD_MEDIA_ALBUM_ARTIST = PROPERTYKEY{ .fmtid = Guid.initString("2ed8ba05-0ad3-42dc-b0d0-bc95ac396ac8"), .pid = 25 }; pub const WPD_MEDIA_OWNER = PROPERTYKEY{ .fmtid = Guid.initString("2ed8ba05-0ad3-42dc-b0d0-bc95ac396ac8"), .pid = 26 }; pub const WPD_MEDIA_MANAGING_EDITOR = PROPERTYKEY{ .fmtid = Guid.initString("2ed8ba05-0ad3-42dc-b0d0-bc95ac396ac8"), .pid = 27 }; pub const WPD_MEDIA_WEBMASTER = PROPERTYKEY{ .fmtid = Guid.initString("2ed8ba05-0ad3-42dc-b0d0-bc95ac396ac8"), .pid = 28 }; pub const WPD_MEDIA_SOURCE_URL = PROPERTYKEY{ .fmtid = Guid.initString("2ed8ba05-0ad3-42dc-b0d0-bc95ac396ac8"), .pid = 29 }; pub const WPD_MEDIA_DESTINATION_URL = PROPERTYKEY{ .fmtid = Guid.initString("2ed8ba05-0ad3-42dc-b0d0-bc95ac396ac8"), .pid = 30 }; pub const WPD_MEDIA_DESCRIPTION = PROPERTYKEY{ .fmtid = Guid.initString("2ed8ba05-0ad3-42dc-b0d0-bc95ac396ac8"), .pid = 31 }; pub const WPD_MEDIA_GENRE = PROPERTYKEY{ .fmtid = Guid.initString("2ed8ba05-0ad3-42dc-b0d0-bc95ac396ac8"), .pid = 32 }; pub const WPD_MEDIA_TIME_BOOKMARK = PROPERTYKEY{ .fmtid = Guid.initString("2ed8ba05-0ad3-42dc-b0d0-bc95ac396ac8"), .pid = 33 }; pub const WPD_MEDIA_OBJECT_BOOKMARK = PROPERTYKEY{ .fmtid = Guid.initString("2ed8ba05-0ad3-42dc-b0d0-bc95ac396ac8"), .pid = 34 }; pub const WPD_MEDIA_LAST_BUILD_DATE = PROPERTYKEY{ .fmtid = Guid.initString("2ed8ba05-0ad3-42dc-b0d0-bc95ac396ac8"), .pid = 35 }; pub const WPD_MEDIA_BYTE_BOOKMARK = PROPERTYKEY{ .fmtid = Guid.initString("2ed8ba05-0ad3-42dc-b0d0-bc95ac396ac8"), .pid = 36 }; pub const WPD_MEDIA_TIME_TO_LIVE = PROPERTYKEY{ .fmtid = Guid.initString("2ed8ba05-0ad3-42dc-b0d0-bc95ac396ac8"), .pid = 37 }; pub const WPD_MEDIA_GUID = PROPERTYKEY{ .fmtid = Guid.initString("2ed8ba05-0ad3-42dc-b0d0-bc95ac396ac8"), .pid = 38 }; pub const WPD_MEDIA_SUB_DESCRIPTION = PROPERTYKEY{ .fmtid = Guid.initString("2ed8ba05-0ad3-42dc-b0d0-bc95ac396ac8"), .pid = 39 }; pub const WPD_MEDIA_AUDIO_ENCODING_PROFILE = PROPERTYKEY{ .fmtid = Guid.initString("2ed8ba05-0ad3-42dc-b0d0-bc95ac396ac8"), .pid = 49 }; pub const WPD_CONTACT_OBJECT_PROPERTIES_V1 = Guid.initString("fbd4fdab-987d-4777-b3f9-726185a9312b"); pub const WPD_CONTACT_DISPLAY_NAME = PROPERTYKEY{ .fmtid = Guid.initString("fbd4fdab-987d-4777-b3f9-726185a9312b"), .pid = 2 }; pub const WPD_CONTACT_FIRST_NAME = PROPERTYKEY{ .fmtid = Guid.initString("fbd4fdab-987d-4777-b3f9-726185a9312b"), .pid = 3 }; pub const WPD_CONTACT_MIDDLE_NAMES = PROPERTYKEY{ .fmtid = Guid.initString("fbd4fdab-987d-4777-b3f9-726185a9312b"), .pid = 4 }; pub const WPD_CONTACT_LAST_NAME = PROPERTYKEY{ .fmtid = Guid.initString("fbd4fdab-987d-4777-b3f9-726185a9312b"), .pid = 5 }; pub const WPD_CONTACT_PREFIX = PROPERTYKEY{ .fmtid = Guid.initString("fbd4fdab-987d-4777-b3f9-726185a9312b"), .pid = 6 }; pub const WPD_CONTACT_SUFFIX = PROPERTYKEY{ .fmtid = Guid.initString("fbd4fdab-987d-4777-b3f9-726185a9312b"), .pid = 7 }; pub const WPD_CONTACT_PHONETIC_FIRST_NAME = PROPERTYKEY{ .fmtid = Guid.initString("fbd4fdab-987d-4777-b3f9-726185a9312b"), .pid = 8 }; pub const WPD_CONTACT_PHONETIC_LAST_NAME = PROPERTYKEY{ .fmtid = Guid.initString("fbd4fdab-987d-4777-b3f9-726185a9312b"), .pid = 9 }; pub const WPD_CONTACT_PERSONAL_FULL_POSTAL_ADDRESS = PROPERTYKEY{ .fmtid = Guid.initString("fbd4fdab-987d-4777-b3f9-726185a9312b"), .pid = 10 }; pub const WPD_CONTACT_PERSONAL_POSTAL_ADDRESS_LINE1 = PROPERTYKEY{ .fmtid = Guid.initString("fbd4fdab-987d-4777-b3f9-726185a9312b"), .pid = 11 }; pub const WPD_CONTACT_PERSONAL_POSTAL_ADDRESS_LINE2 = PROPERTYKEY{ .fmtid = Guid.initString("fbd4fdab-987d-4777-b3f9-726185a9312b"), .pid = 12 }; pub const WPD_CONTACT_PERSONAL_POSTAL_ADDRESS_CITY = PROPERTYKEY{ .fmtid = Guid.initString("fbd4fdab-987d-4777-b3f9-726185a9312b"), .pid = 13 }; pub const WPD_CONTACT_PERSONAL_POSTAL_ADDRESS_REGION = PROPERTYKEY{ .fmtid = Guid.initString("fbd4fdab-987d-4777-b3f9-726185a9312b"), .pid = 14 }; pub const WPD_CONTACT_PERSONAL_POSTAL_ADDRESS_POSTAL_CODE = PROPERTYKEY{ .fmtid = Guid.initString("fbd4fdab-987d-4777-b3f9-726185a9312b"), .pid = 15 }; pub const WPD_CONTACT_PERSONAL_POSTAL_ADDRESS_COUNTRY = PROPERTYKEY{ .fmtid = Guid.initString("fbd4fdab-987d-4777-b3f9-726185a9312b"), .pid = 16 }; pub const WPD_CONTACT_BUSINESS_FULL_POSTAL_ADDRESS = PROPERTYKEY{ .fmtid = Guid.initString("fbd4fdab-987d-4777-b3f9-726185a9312b"), .pid = 17 }; pub const WPD_CONTACT_BUSINESS_POSTAL_ADDRESS_LINE1 = PROPERTYKEY{ .fmtid = Guid.initString("fbd4fdab-987d-4777-b3f9-726185a9312b"), .pid = 18 }; pub const WPD_CONTACT_BUSINESS_POSTAL_ADDRESS_LINE2 = PROPERTYKEY{ .fmtid = Guid.initString("fbd4fdab-987d-4777-b3f9-726185a9312b"), .pid = 19 }; pub const WPD_CONTACT_BUSINESS_POSTAL_ADDRESS_CITY = PROPERTYKEY{ .fmtid = Guid.initString("fbd4fdab-987d-4777-b3f9-726185a9312b"), .pid = 20 }; pub const WPD_CONTACT_BUSINESS_POSTAL_ADDRESS_REGION = PROPERTYKEY{ .fmtid = Guid.initString("fbd4fdab-987d-4777-b3f9-726185a9312b"), .pid = 21 }; pub const WPD_CONTACT_BUSINESS_POSTAL_ADDRESS_POSTAL_CODE = PROPERTYKEY{ .fmtid = Guid.initString("fbd4fdab-987d-4777-b3f9-726185a9312b"), .pid = 22 }; pub const WPD_CONTACT_BUSINESS_POSTAL_ADDRESS_COUNTRY = PROPERTYKEY{ .fmtid = Guid.initString("fbd4fdab-987d-4777-b3f9-726185a9312b"), .pid = 23 }; pub const WPD_CONTACT_OTHER_FULL_POSTAL_ADDRESS = PROPERTYKEY{ .fmtid = Guid.initString("fbd4fdab-987d-4777-b3f9-726185a9312b"), .pid = 24 }; pub const WPD_CONTACT_OTHER_POSTAL_ADDRESS_LINE1 = PROPERTYKEY{ .fmtid = Guid.initString("fbd4fdab-987d-4777-b3f9-726185a9312b"), .pid = 25 }; pub const WPD_CONTACT_OTHER_POSTAL_ADDRESS_LINE2 = PROPERTYKEY{ .fmtid = Guid.initString("fbd4fdab-987d-4777-b3f9-726185a9312b"), .pid = 26 }; pub const WPD_CONTACT_OTHER_POSTAL_ADDRESS_CITY = PROPERTYKEY{ .fmtid = Guid.initString("fbd4fdab-987d-4777-b3f9-726185a9312b"), .pid = 27 }; pub const WPD_CONTACT_OTHER_POSTAL_ADDRESS_REGION = PROPERTYKEY{ .fmtid = Guid.initString("fbd4fdab-987d-4777-b3f9-726185a9312b"), .pid = 28 }; pub const WPD_CONTACT_OTHER_POSTAL_ADDRESS_POSTAL_CODE = PROPERTYKEY{ .fmtid = Guid.initString("fbd4fdab-987d-4777-b3f9-726185a9312b"), .pid = 29 }; pub const WPD_CONTACT_OTHER_POSTAL_ADDRESS_POSTAL_COUNTRY = PROPERTYKEY{ .fmtid = Guid.initString("fbd4fdab-987d-4777-b3f9-726185a9312b"), .pid = 30 }; pub const WPD_CONTACT_PRIMARY_EMAIL_ADDRESS = PROPERTYKEY{ .fmtid = Guid.initString("fbd4fdab-987d-4777-b3f9-726185a9312b"), .pid = 31 }; pub const WPD_CONTACT_PERSONAL_EMAIL = PROPERTYKEY{ .fmtid = Guid.initString("fbd4fdab-987d-4777-b3f9-726185a9312b"), .pid = 32 }; pub const WPD_CONTACT_PERSONAL_EMAIL2 = PROPERTYKEY{ .fmtid = Guid.initString("fbd4fdab-987d-4777-b3f9-726185a9312b"), .pid = 33 }; pub const WPD_CONTACT_BUSINESS_EMAIL = PROPERTYKEY{ .fmtid = Guid.initString("fbd4fdab-987d-4777-b3f9-726185a9312b"), .pid = 34 }; pub const WPD_CONTACT_BUSINESS_EMAIL2 = PROPERTYKEY{ .fmtid = Guid.initString("fbd4fdab-987d-4777-b3f9-726185a9312b"), .pid = 35 }; pub const WPD_CONTACT_OTHER_EMAILS = PROPERTYKEY{ .fmtid = Guid.initString("fbd4fdab-987d-4777-b3f9-726185a9312b"), .pid = 36 }; pub const WPD_CONTACT_PRIMARY_PHONE = PROPERTYKEY{ .fmtid = Guid.initString("fbd4fdab-987d-4777-b3f9-726185a9312b"), .pid = 37 }; pub const WPD_CONTACT_PERSONAL_PHONE = PROPERTYKEY{ .fmtid = Guid.initString("fbd4fdab-987d-4777-b3f9-726185a9312b"), .pid = 38 }; pub const WPD_CONTACT_PERSONAL_PHONE2 = PROPERTYKEY{ .fmtid = Guid.initString("fbd4fdab-987d-4777-b3f9-726185a9312b"), .pid = 39 }; pub const WPD_CONTACT_BUSINESS_PHONE = PROPERTYKEY{ .fmtid = Guid.initString("fbd4fdab-987d-4777-b3f9-726185a9312b"), .pid = 40 }; pub const WPD_CONTACT_BUSINESS_PHONE2 = PROPERTYKEY{ .fmtid = Guid.initString("fbd4fdab-987d-4777-b3f9-726185a9312b"), .pid = 41 }; pub const WPD_CONTACT_MOBILE_PHONE = PROPERTYKEY{ .fmtid = Guid.initString("fbd4fdab-987d-4777-b3f9-726185a9312b"), .pid = 42 }; pub const WPD_CONTACT_MOBILE_PHONE2 = PROPERTYKEY{ .fmtid = Guid.initString("fbd4fdab-987d-4777-b3f9-726185a9312b"), .pid = 43 }; pub const WPD_CONTACT_PERSONAL_FAX = PROPERTYKEY{ .fmtid = Guid.initString("fbd4fdab-987d-4777-b3f9-726185a9312b"), .pid = 44 }; pub const WPD_CONTACT_BUSINESS_FAX = PROPERTYKEY{ .fmtid = Guid.initString("fbd4fdab-987d-4777-b3f9-726185a9312b"), .pid = 45 }; pub const WPD_CONTACT_PAGER = PROPERTYKEY{ .fmtid = Guid.initString("fbd4fdab-987d-4777-b3f9-726185a9312b"), .pid = 46 }; pub const WPD_CONTACT_OTHER_PHONES = PROPERTYKEY{ .fmtid = Guid.initString("fbd4fdab-987d-4777-b3f9-726185a9312b"), .pid = 47 }; pub const WPD_CONTACT_PRIMARY_WEB_ADDRESS = PROPERTYKEY{ .fmtid = Guid.initString("fbd4fdab-987d-4777-b3f9-726185a9312b"), .pid = 48 }; pub const WPD_CONTACT_PERSONAL_WEB_ADDRESS = PROPERTYKEY{ .fmtid = Guid.initString("fbd4fdab-987d-4777-b3f9-726185a9312b"), .pid = 49 }; pub const WPD_CONTACT_BUSINESS_WEB_ADDRESS = PROPERTYKEY{ .fmtid = Guid.initString("fbd4fdab-987d-4777-b3f9-726185a9312b"), .pid = 50 }; pub const WPD_CONTACT_INSTANT_MESSENGER = PROPERTYKEY{ .fmtid = Guid.initString("fbd4fdab-987d-4777-b3f9-726185a9312b"), .pid = 51 }; pub const WPD_CONTACT_INSTANT_MESSENGER2 = PROPERTYKEY{ .fmtid = Guid.initString("fbd4fdab-987d-4777-b3f9-726185a9312b"), .pid = 52 }; pub const WPD_CONTACT_INSTANT_MESSENGER3 = PROPERTYKEY{ .fmtid = Guid.initString("fbd4fdab-987d-4777-b3f9-726185a9312b"), .pid = 53 }; pub const WPD_CONTACT_COMPANY_NAME = PROPERTYKEY{ .fmtid = Guid.initString("fbd4fdab-987d-4777-b3f9-726185a9312b"), .pid = 54 }; pub const WPD_CONTACT_PHONETIC_COMPANY_NAME = PROPERTYKEY{ .fmtid = Guid.initString("fbd4fdab-987d-4777-b3f9-726185a9312b"), .pid = 55 }; pub const WPD_CONTACT_ROLE = PROPERTYKEY{ .fmtid = Guid.initString("fbd4fdab-987d-4777-b3f9-726185a9312b"), .pid = 56 }; pub const WPD_CONTACT_BIRTHDATE = PROPERTYKEY{ .fmtid = Guid.initString("fbd4fdab-987d-4777-b3f9-726185a9312b"), .pid = 57 }; pub const WPD_CONTACT_PRIMARY_FAX = PROPERTYKEY{ .fmtid = Guid.initString("fbd4fdab-987d-4777-b3f9-726185a9312b"), .pid = 58 }; pub const WPD_CONTACT_SPOUSE = PROPERTYKEY{ .fmtid = Guid.initString("fbd4fdab-987d-4777-b3f9-726185a9312b"), .pid = 59 }; pub const WPD_CONTACT_CHILDREN = PROPERTYKEY{ .fmtid = Guid.initString("fbd4fdab-987d-4777-b3f9-726185a9312b"), .pid = 60 }; pub const WPD_CONTACT_ASSISTANT = PROPERTYKEY{ .fmtid = Guid.initString("fbd4fdab-987d-4777-b3f9-726185a9312b"), .pid = 61 }; pub const WPD_CONTACT_ANNIVERSARY_DATE = PROPERTYKEY{ .fmtid = Guid.initString("fbd4fdab-987d-4777-b3f9-726185a9312b"), .pid = 62 }; pub const WPD_CONTACT_RINGTONE = PROPERTYKEY{ .fmtid = Guid.initString("fbd4fdab-987d-4777-b3f9-726185a9312b"), .pid = 63 }; pub const WPD_MUSIC_OBJECT_PROPERTIES_V1 = Guid.initString("b324f56a-dc5d-46e5-b6df-d2ea414888c6"); pub const WPD_MUSIC_ALBUM = PROPERTYKEY{ .fmtid = Guid.initString("b324f56a-dc5d-46e5-b6df-d2ea414888c6"), .pid = 3 }; pub const WPD_MUSIC_TRACK = PROPERTYKEY{ .fmtid = Guid.initString("b324f56a-dc5d-46e5-b6df-d2ea414888c6"), .pid = 4 }; pub const WPD_MUSIC_LYRICS = PROPERTYKEY{ .fmtid = Guid.initString("b324f56a-dc5d-46e5-b6df-d2ea414888c6"), .pid = 6 }; pub const WPD_MUSIC_MOOD = PROPERTYKEY{ .fmtid = Guid.initString("b324f56a-dc5d-46e5-b6df-d2ea414888c6"), .pid = 8 }; pub const WPD_AUDIO_BITRATE = PROPERTYKEY{ .fmtid = Guid.initString("b324f56a-dc5d-46e5-b6df-d2ea414888c6"), .pid = 9 }; pub const WPD_AUDIO_CHANNEL_COUNT = PROPERTYKEY{ .fmtid = Guid.initString("b324f56a-dc5d-46e5-b6df-d2ea414888c6"), .pid = 10 }; pub const WPD_AUDIO_FORMAT_CODE = PROPERTYKEY{ .fmtid = Guid.initString("b324f56a-dc5d-46e5-b6df-d2ea414888c6"), .pid = 11 }; pub const WPD_AUDIO_BIT_DEPTH = PROPERTYKEY{ .fmtid = Guid.initString("b324f56a-dc5d-46e5-b6df-d2ea414888c6"), .pid = 12 }; pub const WPD_AUDIO_BLOCK_ALIGNMENT = PROPERTYKEY{ .fmtid = Guid.initString("b324f56a-dc5d-46e5-b6df-d2ea414888c6"), .pid = 13 }; pub const WPD_VIDEO_OBJECT_PROPERTIES_V1 = Guid.initString("346f2163-f998-4146-8b01-d19b4c00de9a"); pub const WPD_VIDEO_AUTHOR = PROPERTYKEY{ .fmtid = Guid.initString("346f2163-f998-4146-8b01-d19b4c00de9a"), .pid = 2 }; pub const WPD_VIDEO_RECORDEDTV_STATION_NAME = PROPERTYKEY{ .fmtid = Guid.initString("346f2163-f998-4146-8b01-d19b4c00de9a"), .pid = 4 }; pub const WPD_VIDEO_RECORDEDTV_CHANNEL_NUMBER = PROPERTYKEY{ .fmtid = Guid.initString("346f2163-f998-4146-8b01-d19b4c00de9a"), .pid = 5 }; pub const WPD_VIDEO_RECORDEDTV_REPEAT = PROPERTYKEY{ .fmtid = Guid.initString("346f2163-f998-4146-8b01-d19b4c00de9a"), .pid = 7 }; pub const WPD_VIDEO_BUFFER_SIZE = PROPERTYKEY{ .fmtid = Guid.initString("346f2163-f998-4146-8b01-d19b4c00de9a"), .pid = 8 }; pub const WPD_VIDEO_CREDITS = PROPERTYKEY{ .fmtid = Guid.initString("346f2163-f998-4146-8b01-d19b4c00de9a"), .pid = 9 }; pub const WPD_VIDEO_KEY_FRAME_DISTANCE = PROPERTYKEY{ .fmtid = Guid.initString("346f2163-f998-4146-8b01-d19b4c00de9a"), .pid = 10 }; pub const WPD_VIDEO_QUALITY_SETTING = PROPERTYKEY{ .fmtid = Guid.initString("346f2163-f998-4146-8b01-d19b4c00de9a"), .pid = 11 }; pub const WPD_VIDEO_SCAN_TYPE = PROPERTYKEY{ .fmtid = Guid.initString("346f2163-f998-4146-8b01-d19b4c00de9a"), .pid = 12 }; pub const WPD_VIDEO_BITRATE = PROPERTYKEY{ .fmtid = Guid.initString("346f2163-f998-4146-8b01-d19b4c00de9a"), .pid = 13 }; pub const WPD_VIDEO_FOURCC_CODE = PROPERTYKEY{ .fmtid = Guid.initString("346f2163-f998-4146-8b01-d19b4c00de9a"), .pid = 14 }; pub const WPD_VIDEO_FRAMERATE = PROPERTYKEY{ .fmtid = Guid.initString("346f2163-f998-4146-8b01-d19b4c00de9a"), .pid = 15 }; pub const WPD_COMMON_INFORMATION_OBJECT_PROPERTIES_V1 = Guid.initString("b28ae94b-05a4-4e8e-be01-72cc7e099d8f"); pub const WPD_COMMON_INFORMATION_SUBJECT = PROPERTYKEY{ .fmtid = Guid.initString("b28ae94b-05a4-4e8e-be01-72cc7e099d8f"), .pid = 2 }; pub const WPD_COMMON_INFORMATION_BODY_TEXT = PROPERTYKEY{ .fmtid = Guid.initString("b28ae94b-05a4-4e8e-be01-72cc7e099d8f"), .pid = 3 }; pub const WPD_COMMON_INFORMATION_PRIORITY = PROPERTYKEY{ .fmtid = Guid.initString("b28ae94b-05a4-4e8e-be01-72cc7e099d8f"), .pid = 4 }; pub const WPD_COMMON_INFORMATION_START_DATETIME = PROPERTYKEY{ .fmtid = Guid.initString("b28ae94b-05a4-4e8e-be01-72cc7e099d8f"), .pid = 5 }; pub const WPD_COMMON_INFORMATION_END_DATETIME = PROPERTYKEY{ .fmtid = Guid.initString("b28ae94b-05a4-4e8e-be01-72cc7e099d8f"), .pid = 6 }; pub const WPD_COMMON_INFORMATION_NOTES = PROPERTYKEY{ .fmtid = Guid.initString("b28ae94b-05a4-4e8e-be01-72cc7e099d8f"), .pid = 7 }; pub const WPD_MEMO_OBJECT_PROPERTIES_V1 = Guid.initString("5ffbfc7b-7483-41ad-afb9-da3f4e592b8d"); pub const WPD_EMAIL_OBJECT_PROPERTIES_V1 = Guid.initString("41f8f65a-5484-4782-b13d-4740dd7c37c5"); pub const WPD_EMAIL_TO_LINE = PROPERTYKEY{ .fmtid = Guid.initString("41f8f65a-5484-4782-b13d-4740dd7c37c5"), .pid = 2 }; pub const WPD_EMAIL_CC_LINE = PROPERTYKEY{ .fmtid = Guid.initString("41f8f65a-5484-4782-b13d-4740dd7c37c5"), .pid = 3 }; pub const WPD_EMAIL_BCC_LINE = PROPERTYKEY{ .fmtid = Guid.initString("41f8f65a-5484-4782-b13d-4740dd7c37c5"), .pid = 4 }; pub const WPD_EMAIL_HAS_BEEN_READ = PROPERTYKEY{ .fmtid = Guid.initString("41f8f65a-5484-4782-b13d-4740dd7c37c5"), .pid = 7 }; pub const WPD_EMAIL_RECEIVED_TIME = PROPERTYKEY{ .fmtid = Guid.initString("41f8f65a-5484-4782-b13d-4740dd7c37c5"), .pid = 8 }; pub const WPD_EMAIL_HAS_ATTACHMENTS = PROPERTYKEY{ .fmtid = Guid.initString("41f8f65a-5484-4782-b13d-4740dd7c37c5"), .pid = 9 }; pub const WPD_EMAIL_SENDER_ADDRESS = PROPERTYKEY{ .fmtid = Guid.initString("41f8f65a-5484-4782-b13d-4740dd7c37c5"), .pid = 10 }; pub const WPD_APPOINTMENT_OBJECT_PROPERTIES_V1 = Guid.initString("f99efd03-431d-40d8-a1c9-4e220d9c88d3"); pub const WPD_APPOINTMENT_LOCATION = PROPERTYKEY{ .fmtid = Guid.initString("f99efd03-431d-40d8-a1c9-4e220d9c88d3"), .pid = 3 }; pub const WPD_APPOINTMENT_TYPE = PROPERTYKEY{ .fmtid = Guid.initString("f99efd03-431d-40d8-a1c9-4e220d9c88d3"), .pid = 7 }; pub const WPD_APPOINTMENT_REQUIRED_ATTENDEES = PROPERTYKEY{ .fmtid = Guid.initString("f99efd03-431d-40d8-a1c9-4e220d9c88d3"), .pid = 8 }; pub const WPD_APPOINTMENT_OPTIONAL_ATTENDEES = PROPERTYKEY{ .fmtid = Guid.initString("f99efd03-431d-40d8-a1c9-4e220d9c88d3"), .pid = 9 }; pub const WPD_APPOINTMENT_ACCEPTED_ATTENDEES = PROPERTYKEY{ .fmtid = Guid.initString("f99efd03-431d-40d8-a1c9-4e220d9c88d3"), .pid = 10 }; pub const WPD_APPOINTMENT_RESOURCES = PROPERTYKEY{ .fmtid = Guid.initString("f99efd03-431d-40d8-a1c9-4e220d9c88d3"), .pid = 11 }; pub const WPD_APPOINTMENT_TENTATIVE_ATTENDEES = PROPERTYKEY{ .fmtid = Guid.initString("f99efd03-431d-40d8-a1c9-4e220d9c88d3"), .pid = 12 }; pub const WPD_APPOINTMENT_DECLINED_ATTENDEES = PROPERTYKEY{ .fmtid = Guid.initString("f99efd03-431d-40d8-a1c9-4e220d9c88d3"), .pid = 13 }; pub const WPD_TASK_OBJECT_PROPERTIES_V1 = Guid.initString("e354e95e-d8a0-4637-a03a-0cb26838dbc7"); pub const WPD_TASK_STATUS = PROPERTYKEY{ .fmtid = Guid.initString("e354e95e-d8a0-4637-a03a-0cb26838dbc7"), .pid = 6 }; pub const WPD_TASK_PERCENT_COMPLETE = PROPERTYKEY{ .fmtid = Guid.initString("e354e95e-d8a0-4637-a03a-0cb26838dbc7"), .pid = 8 }; pub const WPD_TASK_REMINDER_DATE = PROPERTYKEY{ .fmtid = Guid.initString("e354e95e-d8a0-4637-a03a-0cb26838dbc7"), .pid = 10 }; pub const WPD_TASK_OWNER = PROPERTYKEY{ .fmtid = Guid.initString("e354e95e-d8a0-4637-a03a-0cb26838dbc7"), .pid = 11 }; pub const WPD_SMS_OBJECT_PROPERTIES_V1 = Guid.initString("7e1074cc-50ff-4dd1-a742-53be6f093a0d"); pub const WPD_SMS_PROVIDER = PROPERTYKEY{ .fmtid = Guid.initString("7e1074cc-50ff-4dd1-a742-53be6f093a0d"), .pid = 2 }; pub const WPD_SMS_TIMEOUT = PROPERTYKEY{ .fmtid = Guid.initString("7e1074cc-50ff-4dd1-a742-53be6f093a0d"), .pid = 3 }; pub const WPD_SMS_MAX_PAYLOAD = PROPERTYKEY{ .fmtid = Guid.initString("7e1074cc-50ff-4dd1-a742-53be6f093a0d"), .pid = 4 }; pub const WPD_SMS_ENCODING = PROPERTYKEY{ .fmtid = Guid.initString("7e1074cc-50ff-4dd1-a742-53be6f093a0d"), .pid = 5 }; pub const WPD_SECTION_OBJECT_PROPERTIES_V1 = Guid.initString("516afd2b-c64e-44f0-98dc-bee1c88f7d66"); pub const WPD_SECTION_DATA_OFFSET = PROPERTYKEY{ .fmtid = Guid.initString("516afd2b-c64e-44f0-98dc-bee1c88f7d66"), .pid = 2 }; pub const WPD_SECTION_DATA_LENGTH = PROPERTYKEY{ .fmtid = Guid.initString("516afd2b-c64e-44f0-98dc-bee1c88f7d66"), .pid = 3 }; pub const WPD_SECTION_DATA_UNITS = PROPERTYKEY{ .fmtid = Guid.initString("516afd2b-c64e-44f0-98dc-bee1c88f7d66"), .pid = 4 }; pub const WPD_SECTION_DATA_REFERENCED_OBJECT_RESOURCE = PROPERTYKEY{ .fmtid = Guid.initString("516afd2b-c64e-44f0-98dc-bee1c88f7d66"), .pid = 5 }; pub const DEVSVC_SERVICEINFO_VERSION = @as(u32, 100); pub const DEVSVCTYPE_DEFAULT = @as(u32, 0); pub const DEVSVCTYPE_ABSTRACT = @as(u32, 1); pub const TYPE_CalendarSvc = @as(u32, 0); pub const ENUM_CalendarObj_BusyStatusFree = @as(u32, 0); pub const ENUM_CalendarObj_BusyStatusBusy = @as(u32, 1); pub const ENUM_CalendarObj_BusyStatusOutOfOffice = @as(u32, 2); pub const ENUM_CalendarObj_BusyStatusTentative = @as(u32, 3); pub const TYPE_HintsSvc = @as(u32, 0); pub const TYPE_MessageSvc = @as(u32, 0); pub const ENUM_MessageObj_PriorityHighest = @as(u32, 2); pub const ENUM_MessageObj_PriorityNormal = @as(u32, 1); pub const ENUM_MessageObj_PriorityLowest = @as(u32, 0); pub const ENUM_MessageObj_ReadFalse = @as(u32, 0); pub const ENUM_MessageObj_ReadTrue = @as(u32, 255); pub const ENUM_MessageObj_PatternTypeDaily = @as(u32, 1); pub const ENUM_MessageObj_PatternTypeWeekly = @as(u32, 2); pub const ENUM_MessageObj_PatternTypeMonthly = @as(u32, 3); pub const ENUM_MessageObj_PatternTypeYearly = @as(u32, 4); pub const FLAG_MessageObj_DayOfWeekNone = @as(u32, 0); pub const FLAG_MessageObj_DayOfWeekSunday = @as(u32, 1); pub const FLAG_MessageObj_DayOfWeekMonday = @as(u32, 2); pub const FLAG_MessageObj_DayOfWeekTuesday = @as(u32, 4); pub const FLAG_MessageObj_DayOfWeekWednesday = @as(u32, 8); pub const FLAG_MessageObj_DayOfWeekThursday = @as(u32, 16); pub const FLAG_MessageObj_DayOfWeekFriday = @as(u32, 32); pub const FLAG_MessageObj_DayOfWeekSaturday = @as(u32, 64); pub const RANGEMIN_MessageObj_PatternDayOfMonth = @as(u32, 1); pub const RANGEMAX_MessageObj_PatternDayOfMonth = @as(u32, 31); pub const RANGESTEP_MessageObj_PatternDayOfMonth = @as(u32, 1); pub const RANGEMIN_MessageObj_PatternMonthOfYear = @as(u32, 1); pub const RANGEMAX_MessageObj_PatternMonthOfYear = @as(u32, 12); pub const RANGESTEP_MessageObj_PatternMonthOfYear = @as(u32, 1); pub const ENUM_MessageObj_PatternInstanceNone = @as(u32, 0); pub const ENUM_MessageObj_PatternInstanceFirst = @as(u32, 1); pub const ENUM_MessageObj_PatternInstanceSecond = @as(u32, 2); pub const ENUM_MessageObj_PatternInstanceThird = @as(u32, 3); pub const ENUM_MessageObj_PatternInstanceFourth = @as(u32, 4); pub const ENUM_MessageObj_PatternInstanceLast = @as(u32, 5); pub const TYPE_DeviceMetadataSvc = @as(u32, 0); pub const ENUM_DeviceMetadataObj_DefaultCABFalse = @as(u32, 0); pub const ENUM_DeviceMetadataObj_DefaultCABTrue = @as(u32, 1); pub const TYPE_NotesSvc = @as(u32, 0); pub const TYPE_StatusSvc = @as(u32, 0); pub const RANGEMIN_StatusSvc_SignalStrength = @as(u32, 0); pub const RANGEMAX_StatusSvc_SignalStrength = @as(u32, 4); pub const RANGESTEP_StatusSvc_SignalStrength = @as(u32, 1); pub const RANGEMAX_StatusSvc_TextMessages = @as(u32, 255); pub const RANGEMAX_StatusSvc_NewPictures = @as(u32, 65535); pub const RANGEMAX_StatusSvc_MissedCalls = @as(u32, 255); pub const RANGEMAX_StatusSvc_VoiceMail = @as(u32, 255); pub const ENUM_StatusSvc_RoamingInactive = @as(u32, 0); pub const ENUM_StatusSvc_RoamingActive = @as(u32, 1); pub const ENUM_StatusSvc_RoamingUnknown = @as(u32, 2); pub const RANGEMIN_StatusSvc_BatteryLife = @as(u32, 0); pub const RANGEMAX_StatusSvc_BatteryLife = @as(u32, 100); pub const RANGESTEP_StatusSvc_BatteryLife = @as(u32, 1); pub const ENUM_StatusSvc_ChargingInactive = @as(u32, 0); pub const ENUM_StatusSvc_ChargingActive = @as(u32, 1); pub const ENUM_StatusSvc_ChargingUnknown = @as(u32, 2); pub const SYNCSVC_FILTER_NONE = @as(u32, 0); pub const SYNCSVC_FILTER_CONTACTS_WITH_PHONE = @as(u32, 1); pub const SYNCSVC_FILTER_TASK_ACTIVE = @as(u32, 2); pub const SYNCSVC_FILTER_CALENDAR_WINDOW_WITH_RECURRENCE = @as(u32, 3); pub const ENUM_SyncSvc_SyncObjectReferencesDisabled = @as(u32, 0); pub const ENUM_SyncSvc_SyncObjectReferencesEnabled = @as(u32, 255); pub const TYPE_TasksSvc = @as(u32, 0); pub const ENUM_TaskObj_CompleteFalse = @as(u32, 0); pub const ENUM_TaskObj_CompleteTrue = @as(u32, 255); pub const WPD_CATEGORY_MTP_EXT_VENDOR_OPERATIONS = Guid.initString("4d545058-1a2e-4106-a357-771e0819fc56"); pub const WPD_COMMAND_MTP_EXT_GET_SUPPORTED_VENDOR_OPCODES = PROPERTYKEY{ .fmtid = Guid.initString("4d545058-1a2e-4106-a357-771e0819fc56"), .pid = 11 }; pub const WPD_COMMAND_MTP_EXT_EXECUTE_COMMAND_WITHOUT_DATA_PHASE = PROPERTYKEY{ .fmtid = Guid.initString("4d545058-1a2e-4106-a357-771e0819fc56"), .pid = 12 }; pub const WPD_COMMAND_MTP_EXT_EXECUTE_COMMAND_WITH_DATA_TO_READ = PROPERTYKEY{ .fmtid = Guid.initString("4d545058-1a2e-4106-a357-771e0819fc56"), .pid = 13 }; pub const WPD_COMMAND_MTP_EXT_EXECUTE_COMMAND_WITH_DATA_TO_WRITE = PROPERTYKEY{ .fmtid = Guid.initString("4d545058-1a2e-4106-a357-771e0819fc56"), .pid = 14 }; pub const WPD_COMMAND_MTP_EXT_READ_DATA = PROPERTYKEY{ .fmtid = Guid.initString("4d545058-1a2e-4106-a357-771e0819fc56"), .pid = 15 }; pub const WPD_COMMAND_MTP_EXT_WRITE_DATA = PROPERTYKEY{ .fmtid = Guid.initString("4d545058-1a2e-4106-a357-771e0819fc56"), .pid = 16 }; pub const WPD_COMMAND_MTP_EXT_END_DATA_TRANSFER = PROPERTYKEY{ .fmtid = Guid.initString("4d545058-1a2e-4106-a357-771e0819fc56"), .pid = 17 }; pub const WPD_COMMAND_MTP_EXT_GET_VENDOR_EXTENSION_DESCRIPTION = PROPERTYKEY{ .fmtid = Guid.initString("4d545058-1a2e-4106-a357-771e0819fc56"), .pid = 18 }; pub const WPD_PROPERTY_MTP_EXT_OPERATION_CODE = PROPERTYKEY{ .fmtid = Guid.initString("4d545058-1a2e-4106-a357-771e0819fc56"), .pid = 1001 }; pub const WPD_PROPERTY_MTP_EXT_OPERATION_PARAMS = PROPERTYKEY{ .fmtid = Guid.initString("4d545058-1a2e-4106-a357-771e0819fc56"), .pid = 1002 }; pub const WPD_PROPERTY_MTP_EXT_RESPONSE_CODE = PROPERTYKEY{ .fmtid = Guid.initString("4d545058-1a2e-4106-a357-771e0819fc56"), .pid = 1003 }; pub const WPD_PROPERTY_MTP_EXT_RESPONSE_PARAMS = PROPERTYKEY{ .fmtid = Guid.initString("4d545058-1a2e-4106-a357-771e0819fc56"), .pid = 1004 }; pub const WPD_PROPERTY_MTP_EXT_VENDOR_OPERATION_CODES = PROPERTYKEY{ .fmtid = Guid.initString("4d545058-1a2e-4106-a357-771e0819fc56"), .pid = 1005 }; pub const WPD_PROPERTY_MTP_EXT_TRANSFER_CONTEXT = PROPERTYKEY{ .fmtid = Guid.initString("4d545058-1a2e-4106-a357-771e0819fc56"), .pid = 1006 }; pub const WPD_PROPERTY_MTP_EXT_TRANSFER_TOTAL_DATA_SIZE = PROPERTYKEY{ .fmtid = Guid.initString("4d545058-1a2e-4106-a357-771e0819fc56"), .pid = 1007 }; pub const WPD_PROPERTY_MTP_EXT_TRANSFER_NUM_BYTES_TO_READ = PROPERTYKEY{ .fmtid = Guid.initString("4d545058-1a2e-4106-a357-771e0819fc56"), .pid = 1008 }; pub const WPD_PROPERTY_MTP_EXT_TRANSFER_NUM_BYTES_READ = PROPERTYKEY{ .fmtid = Guid.initString("4d545058-1a2e-4106-a357-771e0819fc56"), .pid = 1009 }; pub const WPD_PROPERTY_MTP_EXT_TRANSFER_NUM_BYTES_TO_WRITE = PROPERTYKEY{ .fmtid = Guid.initString("4d545058-1a2e-4106-a357-771e0819fc56"), .pid = 1010 }; pub const WPD_PROPERTY_MTP_EXT_TRANSFER_NUM_BYTES_WRITTEN = PROPERTYKEY{ .fmtid = Guid.initString("4d545058-1a2e-4106-a357-771e0819fc56"), .pid = 1011 }; pub const WPD_PROPERTY_MTP_EXT_TRANSFER_DATA = PROPERTYKEY{ .fmtid = Guid.initString("4d545058-1a2e-4106-a357-771e0819fc56"), .pid = 1012 }; pub const WPD_PROPERTY_MTP_EXT_OPTIMAL_TRANSFER_BUFFER_SIZE = PROPERTYKEY{ .fmtid = Guid.initString("4d545058-1a2e-4106-a357-771e0819fc56"), .pid = 1013 }; pub const WPD_PROPERTY_MTP_EXT_VENDOR_EXTENSION_DESCRIPTION = PROPERTYKEY{ .fmtid = Guid.initString("4d545058-1a2e-4106-a357-771e0819fc56"), .pid = 1014 }; pub const WPD_PROPERTIES_MTP_VENDOR_EXTENDED_OBJECT_PROPS = Guid.initString("4d545058-4fce-4578-95c8-8698a9bc0f49"); pub const WPD_PROPERTIES_MTP_VENDOR_EXTENDED_DEVICE_PROPS = Guid.initString("4d545058-8900-40b3-8f1d-dc246e1e8370"); pub const WPD_EVENT_MTP_VENDOR_EXTENDED_EVENTS = Guid.initString("00000000-5738-4ff2-8445-be3126691059"); pub const WPD_PROPERTY_MTP_EXT_EVENT_PARAMS = PROPERTYKEY{ .fmtid = Guid.initString("4d545058-ef88-4e4d-95c3-4f327f728a96"), .pid = 1011 }; pub const CLSID_WPD_NAMESPACE_EXTENSION = Guid.initString("35786d3c-b075-49b9-88dd-029876e11c01"); pub const WPDNSE_OBJECT_PROPERTIES_V1 = Guid.initString("34d71409-4b47-4d80-aaac-3a28a4a3b3e6"); pub const WPDNSE_OBJECT_HAS_CONTACT_PHOTO = PROPERTYKEY{ .fmtid = Guid.initString("34d71409-4b47-4d80-aaac-3a28a4a3b3e6"), .pid = 2 }; pub const WPDNSE_OBJECT_HAS_THUMBNAIL = PROPERTYKEY{ .fmtid = Guid.initString("34d71409-4b47-4d80-aaac-3a28a4a3b3e6"), .pid = 3 }; pub const WPDNSE_OBJECT_HAS_ICON = PROPERTYKEY{ .fmtid = Guid.initString("34d71409-4b47-4d80-aaac-3a28a4a3b3e6"), .pid = 4 }; pub const WPDNSE_OBJECT_HAS_AUDIO_CLIP = PROPERTYKEY{ .fmtid = Guid.initString("34d71409-4b47-4d80-aaac-3a28a4a3b3e6"), .pid = 5 }; pub const WPDNSE_OBJECT_HAS_ALBUM_ART = PROPERTYKEY{ .fmtid = Guid.initString("34d71409-4b47-4d80-aaac-3a28a4a3b3e6"), .pid = 6 }; pub const WPDNSE_OBJECT_OPTIMAL_READ_BLOCK_SIZE = PROPERTYKEY{ .fmtid = Guid.initString("34d71409-4b47-4d80-aaac-3a28a4a3b3e6"), .pid = 7 }; pub const WPDNSE_PROPSHEET_DEVICE_GENERAL = @as(u32, 1); pub const WPDNSE_PROPSHEET_STORAGE_GENERAL = @as(u32, 2); pub const WPDNSE_PROPSHEET_CONTENT_GENERAL = @as(u32, 4); pub const WPDNSE_PROPSHEET_CONTENT_REFERENCES = @as(u32, 8); pub const WPDNSE_PROPSHEET_CONTENT_RESOURCES = @as(u32, 16); pub const WPDNSE_PROPSHEET_CONTENT_DETAILS = @as(u32, 32); pub const TYPE_ContactsSvc = @as(u32, 0); pub const TYPE_RingtonesSvc = @as(u32, 0); pub const TYPE_AnchorSyncSvc = @as(u32, 1); pub const ENUM_AnchorResults_AnchorStateNormal = @as(u32, 0); pub const ENUM_AnchorResults_AnchorStateInvalid = @as(u32, 1); pub const ENUM_AnchorResults_AnchorStateOld = @as(u32, 2); pub const ENUM_AnchorResults_ItemStateInvalid = @as(u32, 0); pub const ENUM_AnchorResults_ItemStateDeleted = @as(u32, 1); pub const ENUM_AnchorResults_ItemStateCreated = @as(u32, 2); pub const ENUM_AnchorResults_ItemStateUpdated = @as(u32, 3); pub const ENUM_AnchorResults_ItemStateChanged = @as(u32, 4); pub const TYPE_FullEnumSyncSvc = @as(u32, 1); //-------------------------------------------------------------------------------- // Section: Types (80) //-------------------------------------------------------------------------------- pub const DELETE_OBJECT_OPTIONS = enum(i32) { NO_RECURSION = 0, WITH_RECURSION = 1, }; pub const PORTABLE_DEVICE_DELETE_NO_RECURSION = DELETE_OBJECT_OPTIONS.NO_RECURSION; pub const PORTABLE_DEVICE_DELETE_WITH_RECURSION = DELETE_OBJECT_OPTIONS.WITH_RECURSION; pub const WPD_DEVICE_TYPES = enum(i32) { GENERIC = 0, CAMERA = 1, MEDIA_PLAYER = 2, PHONE = 3, VIDEO = 4, PERSONAL_INFORMATION_MANAGER = 5, AUDIO_RECORDER = 6, }; pub const WPD_DEVICE_TYPE_GENERIC = WPD_DEVICE_TYPES.GENERIC; pub const WPD_DEVICE_TYPE_CAMERA = WPD_DEVICE_TYPES.CAMERA; pub const WPD_DEVICE_TYPE_MEDIA_PLAYER = WPD_DEVICE_TYPES.MEDIA_PLAYER; pub const WPD_DEVICE_TYPE_PHONE = WPD_DEVICE_TYPES.PHONE; pub const WPD_DEVICE_TYPE_VIDEO = WPD_DEVICE_TYPES.VIDEO; pub const WPD_DEVICE_TYPE_PERSONAL_INFORMATION_MANAGER = WPD_DEVICE_TYPES.PERSONAL_INFORMATION_MANAGER; pub const WPD_DEVICE_TYPE_AUDIO_RECORDER = WPD_DEVICE_TYPES.AUDIO_RECORDER; pub const WpdAttributeForm = enum(i32) { UNSPECIFIED = 0, RANGE = 1, ENUMERATION = 2, REGULAR_EXPRESSION = 3, OBJECT_IDENTIFIER = 4, }; pub const WPD_PROPERTY_ATTRIBUTE_FORM_UNSPECIFIED = WpdAttributeForm.UNSPECIFIED; pub const WPD_PROPERTY_ATTRIBUTE_FORM_RANGE = WpdAttributeForm.RANGE; pub const WPD_PROPERTY_ATTRIBUTE_FORM_ENUMERATION = WpdAttributeForm.ENUMERATION; pub const WPD_PROPERTY_ATTRIBUTE_FORM_REGULAR_EXPRESSION = WpdAttributeForm.REGULAR_EXPRESSION; pub const WPD_PROPERTY_ATTRIBUTE_FORM_OBJECT_IDENTIFIER = WpdAttributeForm.OBJECT_IDENTIFIER; pub const WpdParameterAttributeForm = enum(i32) { UNSPECIFIED = 0, RANGE = 1, ENUMERATION = 2, REGULAR_EXPRESSION = 3, OBJECT_IDENTIFIER = 4, }; pub const WPD_PARAMETER_ATTRIBUTE_FORM_UNSPECIFIED = WpdParameterAttributeForm.UNSPECIFIED; pub const WPD_PARAMETER_ATTRIBUTE_FORM_RANGE = WpdParameterAttributeForm.RANGE; pub const WPD_PARAMETER_ATTRIBUTE_FORM_ENUMERATION = WpdParameterAttributeForm.ENUMERATION; pub const WPD_PARAMETER_ATTRIBUTE_FORM_REGULAR_EXPRESSION = WpdParameterAttributeForm.REGULAR_EXPRESSION; pub const WPD_PARAMETER_ATTRIBUTE_FORM_OBJECT_IDENTIFIER = WpdParameterAttributeForm.OBJECT_IDENTIFIER; pub const WPD_DEVICE_TRANSPORTS = enum(i32) { UNSPECIFIED = 0, USB = 1, IP = 2, BLUETOOTH = 3, }; pub const WPD_DEVICE_TRANSPORT_UNSPECIFIED = WPD_DEVICE_TRANSPORTS.UNSPECIFIED; pub const WPD_DEVICE_TRANSPORT_USB = WPD_DEVICE_TRANSPORTS.USB; pub const WPD_DEVICE_TRANSPORT_IP = WPD_DEVICE_TRANSPORTS.IP; pub const WPD_DEVICE_TRANSPORT_BLUETOOTH = WPD_DEVICE_TRANSPORTS.BLUETOOTH; pub const WPD_STORAGE_TYPE_VALUES = enum(i32) { UNDEFINED = 0, FIXED_ROM = 1, REMOVABLE_ROM = 2, FIXED_RAM = 3, REMOVABLE_RAM = 4, }; pub const WPD_STORAGE_TYPE_UNDEFINED = WPD_STORAGE_TYPE_VALUES.UNDEFINED; pub const WPD_STORAGE_TYPE_FIXED_ROM = WPD_STORAGE_TYPE_VALUES.FIXED_ROM; pub const WPD_STORAGE_TYPE_REMOVABLE_ROM = WPD_STORAGE_TYPE_VALUES.REMOVABLE_ROM; pub const WPD_STORAGE_TYPE_FIXED_RAM = WPD_STORAGE_TYPE_VALUES.FIXED_RAM; pub const WPD_STORAGE_TYPE_REMOVABLE_RAM = WPD_STORAGE_TYPE_VALUES.REMOVABLE_RAM; pub const WPD_STORAGE_ACCESS_CAPABILITY_VALUES = enum(i32) { WRITE = 0, _ONLY_WITHOUT_OBJECT_DELETION = 1, _ONLY_WITH_OBJECT_DELETION = 2, }; pub const WPD_STORAGE_ACCESS_CAPABILITY_READWRITE = WPD_STORAGE_ACCESS_CAPABILITY_VALUES.WRITE; pub const WPD_STORAGE_ACCESS_CAPABILITY_READ_ONLY_WITHOUT_OBJECT_DELETION = WPD_STORAGE_ACCESS_CAPABILITY_VALUES._ONLY_WITHOUT_OBJECT_DELETION; pub const WPD_STORAGE_ACCESS_CAPABILITY_READ_ONLY_WITH_OBJECT_DELETION = WPD_STORAGE_ACCESS_CAPABILITY_VALUES._ONLY_WITH_OBJECT_DELETION; pub const WPD_SMS_ENCODING_TYPES = enum(i32) { @"7_BIT" = 0, @"8_BIT" = 1, UTF_16 = 2, }; pub const SMS_ENCODING_7_BIT = WPD_SMS_ENCODING_TYPES.@"7_BIT"; pub const SMS_ENCODING_8_BIT = WPD_SMS_ENCODING_TYPES.@"8_BIT"; pub const SMS_ENCODING_UTF_16 = WPD_SMS_ENCODING_TYPES.UTF_16; pub const SMS_MESSAGE_TYPES = enum(i32) { TEXT_MESSAGE = 0, BINARY_MESSAGE = 1, }; pub const SMS_TEXT_MESSAGE = SMS_MESSAGE_TYPES.TEXT_MESSAGE; pub const SMS_BINARY_MESSAGE = SMS_MESSAGE_TYPES.BINARY_MESSAGE; pub const WPD_POWER_SOURCES = enum(i32) { BATTERY = 0, EXTERNAL = 1, }; pub const WPD_POWER_SOURCE_BATTERY = WPD_POWER_SOURCES.BATTERY; pub const WPD_POWER_SOURCE_EXTERNAL = WPD_POWER_SOURCES.EXTERNAL; pub const WPD_WHITE_BALANCE_SETTINGS = enum(i32) { UNDEFINED = 0, MANUAL = 1, AUTOMATIC = 2, ONE_PUSH_AUTOMATIC = 3, DAYLIGHT = 4, FLORESCENT = 5, TUNGSTEN = 6, FLASH = 7, }; pub const WPD_WHITE_BALANCE_UNDEFINED = WPD_WHITE_BALANCE_SETTINGS.UNDEFINED; pub const WPD_WHITE_BALANCE_MANUAL = WPD_WHITE_BALANCE_SETTINGS.MANUAL; pub const WPD_WHITE_BALANCE_AUTOMATIC = WPD_WHITE_BALANCE_SETTINGS.AUTOMATIC; pub const WPD_WHITE_BALANCE_ONE_PUSH_AUTOMATIC = WPD_WHITE_BALANCE_SETTINGS.ONE_PUSH_AUTOMATIC; pub const WPD_WHITE_BALANCE_DAYLIGHT = WPD_WHITE_BALANCE_SETTINGS.DAYLIGHT; pub const WPD_WHITE_BALANCE_FLORESCENT = WPD_WHITE_BALANCE_SETTINGS.FLORESCENT; pub const WPD_WHITE_BALANCE_TUNGSTEN = WPD_WHITE_BALANCE_SETTINGS.TUNGSTEN; pub const WPD_WHITE_BALANCE_FLASH = WPD_WHITE_BALANCE_SETTINGS.FLASH; pub const WPD_FOCUS_MODES = enum(i32) { UNDEFINED = 0, MANUAL = 1, AUTOMATIC = 2, AUTOMATIC_MACRO = 3, }; pub const WPD_FOCUS_UNDEFINED = WPD_FOCUS_MODES.UNDEFINED; pub const WPD_FOCUS_MANUAL = WPD_FOCUS_MODES.MANUAL; pub const WPD_FOCUS_AUTOMATIC = WPD_FOCUS_MODES.AUTOMATIC; pub const WPD_FOCUS_AUTOMATIC_MACRO = WPD_FOCUS_MODES.AUTOMATIC_MACRO; pub const WPD_EXPOSURE_METERING_MODES = enum(i32) { UNDEFINED = 0, AVERAGE = 1, CENTER_WEIGHTED_AVERAGE = 2, MULTI_SPOT = 3, CENTER_SPOT = 4, }; pub const WPD_EXPOSURE_METERING_MODE_UNDEFINED = WPD_EXPOSURE_METERING_MODES.UNDEFINED; pub const WPD_EXPOSURE_METERING_MODE_AVERAGE = WPD_EXPOSURE_METERING_MODES.AVERAGE; pub const WPD_EXPOSURE_METERING_MODE_CENTER_WEIGHTED_AVERAGE = WPD_EXPOSURE_METERING_MODES.CENTER_WEIGHTED_AVERAGE; pub const WPD_EXPOSURE_METERING_MODE_MULTI_SPOT = WPD_EXPOSURE_METERING_MODES.MULTI_SPOT; pub const WPD_EXPOSURE_METERING_MODE_CENTER_SPOT = WPD_EXPOSURE_METERING_MODES.CENTER_SPOT; pub const WPD_FLASH_MODES = enum(i32) { UNDEFINED = 0, AUTO = 1, OFF = 2, FILL = 3, RED_EYE_AUTO = 4, RED_EYE_FILL = 5, EXTERNAL_SYNC = 6, }; pub const WPD_FLASH_MODE_UNDEFINED = WPD_FLASH_MODES.UNDEFINED; pub const WPD_FLASH_MODE_AUTO = WPD_FLASH_MODES.AUTO; pub const WPD_FLASH_MODE_OFF = WPD_FLASH_MODES.OFF; pub const WPD_FLASH_MODE_FILL = WPD_FLASH_MODES.FILL; pub const WPD_FLASH_MODE_RED_EYE_AUTO = WPD_FLASH_MODES.RED_EYE_AUTO; pub const WPD_FLASH_MODE_RED_EYE_FILL = WPD_FLASH_MODES.RED_EYE_FILL; pub const WPD_FLASH_MODE_EXTERNAL_SYNC = WPD_FLASH_MODES.EXTERNAL_SYNC; pub const WPD_EXPOSURE_PROGRAM_MODES = enum(i32) { UNDEFINED = 0, MANUAL = 1, AUTO = 2, APERTURE_PRIORITY = 3, SHUTTER_PRIORITY = 4, CREATIVE = 5, ACTION = 6, PORTRAIT = 7, }; pub const WPD_EXPOSURE_PROGRAM_MODE_UNDEFINED = WPD_EXPOSURE_PROGRAM_MODES.UNDEFINED; pub const WPD_EXPOSURE_PROGRAM_MODE_MANUAL = WPD_EXPOSURE_PROGRAM_MODES.MANUAL; pub const WPD_EXPOSURE_PROGRAM_MODE_AUTO = WPD_EXPOSURE_PROGRAM_MODES.AUTO; pub const WPD_EXPOSURE_PROGRAM_MODE_APERTURE_PRIORITY = WPD_EXPOSURE_PROGRAM_MODES.APERTURE_PRIORITY; pub const WPD_EXPOSURE_PROGRAM_MODE_SHUTTER_PRIORITY = WPD_EXPOSURE_PROGRAM_MODES.SHUTTER_PRIORITY; pub const WPD_EXPOSURE_PROGRAM_MODE_CREATIVE = WPD_EXPOSURE_PROGRAM_MODES.CREATIVE; pub const WPD_EXPOSURE_PROGRAM_MODE_ACTION = WPD_EXPOSURE_PROGRAM_MODES.ACTION; pub const WPD_EXPOSURE_PROGRAM_MODE_PORTRAIT = WPD_EXPOSURE_PROGRAM_MODES.PORTRAIT; pub const WPD_CAPTURE_MODES = enum(i32) { UNDEFINED = 0, NORMAL = 1, BURST = 2, TIMELAPSE = 3, }; pub const WPD_CAPTURE_MODE_UNDEFINED = WPD_CAPTURE_MODES.UNDEFINED; pub const WPD_CAPTURE_MODE_NORMAL = WPD_CAPTURE_MODES.NORMAL; pub const WPD_CAPTURE_MODE_BURST = WPD_CAPTURE_MODES.BURST; pub const WPD_CAPTURE_MODE_TIMELAPSE = WPD_CAPTURE_MODES.TIMELAPSE; pub const WPD_EFFECT_MODES = enum(i32) { UNDEFINED = 0, COLOR = 1, BLACK_AND_WHITE = 2, SEPIA = 3, }; pub const WPD_EFFECT_MODE_UNDEFINED = WPD_EFFECT_MODES.UNDEFINED; pub const WPD_EFFECT_MODE_COLOR = WPD_EFFECT_MODES.COLOR; pub const WPD_EFFECT_MODE_BLACK_AND_WHITE = WPD_EFFECT_MODES.BLACK_AND_WHITE; pub const WPD_EFFECT_MODE_SEPIA = WPD_EFFECT_MODES.SEPIA; pub const WPD_FOCUS_METERING_MODES = enum(i32) { UNDEFINED = 0, CENTER_SPOT = 1, MULTI_SPOT = 2, }; pub const WPD_FOCUS_METERING_MODE_UNDEFINED = WPD_FOCUS_METERING_MODES.UNDEFINED; pub const WPD_FOCUS_METERING_MODE_CENTER_SPOT = WPD_FOCUS_METERING_MODES.CENTER_SPOT; pub const WPD_FOCUS_METERING_MODE_MULTI_SPOT = WPD_FOCUS_METERING_MODES.MULTI_SPOT; pub const WPD_BITRATE_TYPES = enum(i32) { UNUSED = 0, DISCRETE = 1, VARIABLE = 2, FREE = 3, }; pub const WPD_BITRATE_TYPE_UNUSED = WPD_BITRATE_TYPES.UNUSED; pub const WPD_BITRATE_TYPE_DISCRETE = WPD_BITRATE_TYPES.DISCRETE; pub const WPD_BITRATE_TYPE_VARIABLE = WPD_BITRATE_TYPES.VARIABLE; pub const WPD_BITRATE_TYPE_FREE = WPD_BITRATE_TYPES.FREE; pub const WPD_META_GENRES = enum(i32) { UNUSED = 0, GENERIC_MUSIC_AUDIO_FILE = 1, GENERIC_NON_MUSIC_AUDIO_FILE = 17, SPOKEN_WORD_AUDIO_BOOK_FILES = 18, SPOKEN_WORD_FILES_NON_AUDIO_BOOK = 19, SPOKEN_WORD_NEWS = 20, SPOKEN_WORD_TALK_SHOWS = 21, GENERIC_VIDEO_FILE = 33, NEWS_VIDEO_FILE = 34, MUSIC_VIDEO_FILE = 35, HOME_VIDEO_FILE = 36, FEATURE_FILM_VIDEO_FILE = 37, TELEVISION_VIDEO_FILE = 38, TRAINING_EDUCATIONAL_VIDEO_FILE = 39, PHOTO_MONTAGE_VIDEO_FILE = 40, GENERIC_NON_AUDIO_NON_VIDEO = 48, AUDIO_PODCAST = 64, VIDEO_PODCAST = 65, MIXED_PODCAST = 66, }; pub const WPD_META_GENRE_UNUSED = WPD_META_GENRES.UNUSED; pub const WPD_META_GENRE_GENERIC_MUSIC_AUDIO_FILE = WPD_META_GENRES.GENERIC_MUSIC_AUDIO_FILE; pub const WPD_META_GENRE_GENERIC_NON_MUSIC_AUDIO_FILE = WPD_META_GENRES.GENERIC_NON_MUSIC_AUDIO_FILE; pub const WPD_META_GENRE_SPOKEN_WORD_AUDIO_BOOK_FILES = WPD_META_GENRES.SPOKEN_WORD_AUDIO_BOOK_FILES; pub const WPD_META_GENRE_SPOKEN_WORD_FILES_NON_AUDIO_BOOK = WPD_META_GENRES.SPOKEN_WORD_FILES_NON_AUDIO_BOOK; pub const WPD_META_GENRE_SPOKEN_WORD_NEWS = WPD_META_GENRES.SPOKEN_WORD_NEWS; pub const WPD_META_GENRE_SPOKEN_WORD_TALK_SHOWS = WPD_META_GENRES.SPOKEN_WORD_TALK_SHOWS; pub const WPD_META_GENRE_GENERIC_VIDEO_FILE = WPD_META_GENRES.GENERIC_VIDEO_FILE; pub const WPD_META_GENRE_NEWS_VIDEO_FILE = WPD_META_GENRES.NEWS_VIDEO_FILE; pub const WPD_META_GENRE_MUSIC_VIDEO_FILE = WPD_META_GENRES.MUSIC_VIDEO_FILE; pub const WPD_META_GENRE_HOME_VIDEO_FILE = WPD_META_GENRES.HOME_VIDEO_FILE; pub const WPD_META_GENRE_FEATURE_FILM_VIDEO_FILE = WPD_META_GENRES.FEATURE_FILM_VIDEO_FILE; pub const WPD_META_GENRE_TELEVISION_VIDEO_FILE = WPD_META_GENRES.TELEVISION_VIDEO_FILE; pub const WPD_META_GENRE_TRAINING_EDUCATIONAL_VIDEO_FILE = WPD_META_GENRES.TRAINING_EDUCATIONAL_VIDEO_FILE; pub const WPD_META_GENRE_PHOTO_MONTAGE_VIDEO_FILE = WPD_META_GENRES.PHOTO_MONTAGE_VIDEO_FILE; pub const WPD_META_GENRE_GENERIC_NON_AUDIO_NON_VIDEO = WPD_META_GENRES.GENERIC_NON_AUDIO_NON_VIDEO; pub const WPD_META_GENRE_AUDIO_PODCAST = WPD_META_GENRES.AUDIO_PODCAST; pub const WPD_META_GENRE_VIDEO_PODCAST = WPD_META_GENRES.VIDEO_PODCAST; pub const WPD_META_GENRE_MIXED_PODCAST = WPD_META_GENRES.MIXED_PODCAST; pub const WPD_CROPPED_STATUS_VALUES = enum(i32) { NOT_CROPPED = 0, CROPPED = 1, SHOULD_NOT_BE_CROPPED = 2, }; pub const WPD_CROPPED_STATUS_NOT_CROPPED = WPD_CROPPED_STATUS_VALUES.NOT_CROPPED; pub const WPD_CROPPED_STATUS_CROPPED = WPD_CROPPED_STATUS_VALUES.CROPPED; pub const WPD_CROPPED_STATUS_SHOULD_NOT_BE_CROPPED = WPD_CROPPED_STATUS_VALUES.SHOULD_NOT_BE_CROPPED; pub const WPD_COLOR_CORRECTED_STATUS_VALUES = enum(i32) { NOT_CORRECTED = 0, CORRECTED = 1, SHOULD_NOT_BE_CORRECTED = 2, }; pub const WPD_COLOR_CORRECTED_STATUS_NOT_CORRECTED = WPD_COLOR_CORRECTED_STATUS_VALUES.NOT_CORRECTED; pub const WPD_COLOR_CORRECTED_STATUS_CORRECTED = WPD_COLOR_CORRECTED_STATUS_VALUES.CORRECTED; pub const WPD_COLOR_CORRECTED_STATUS_SHOULD_NOT_BE_CORRECTED = WPD_COLOR_CORRECTED_STATUS_VALUES.SHOULD_NOT_BE_CORRECTED; pub const WPD_VIDEO_SCAN_TYPES = enum(i32) { UNUSED = 0, PROGRESSIVE = 1, FIELD_INTERLEAVED_UPPER_FIRST = 2, FIELD_INTERLEAVED_LOWER_FIRST = 3, FIELD_SINGLE_UPPER_FIRST = 4, FIELD_SINGLE_LOWER_FIRST = 5, MIXED_INTERLACE = 6, MIXED_INTERLACE_AND_PROGRESSIVE = 7, }; pub const WPD_VIDEO_SCAN_TYPE_UNUSED = WPD_VIDEO_SCAN_TYPES.UNUSED; pub const WPD_VIDEO_SCAN_TYPE_PROGRESSIVE = WPD_VIDEO_SCAN_TYPES.PROGRESSIVE; pub const WPD_VIDEO_SCAN_TYPE_FIELD_INTERLEAVED_UPPER_FIRST = WPD_VIDEO_SCAN_TYPES.FIELD_INTERLEAVED_UPPER_FIRST; pub const WPD_VIDEO_SCAN_TYPE_FIELD_INTERLEAVED_LOWER_FIRST = WPD_VIDEO_SCAN_TYPES.FIELD_INTERLEAVED_LOWER_FIRST; pub const WPD_VIDEO_SCAN_TYPE_FIELD_SINGLE_UPPER_FIRST = WPD_VIDEO_SCAN_TYPES.FIELD_SINGLE_UPPER_FIRST; pub const WPD_VIDEO_SCAN_TYPE_FIELD_SINGLE_LOWER_FIRST = WPD_VIDEO_SCAN_TYPES.FIELD_SINGLE_LOWER_FIRST; pub const WPD_VIDEO_SCAN_TYPE_MIXED_INTERLACE = WPD_VIDEO_SCAN_TYPES.MIXED_INTERLACE; pub const WPD_VIDEO_SCAN_TYPE_MIXED_INTERLACE_AND_PROGRESSIVE = WPD_VIDEO_SCAN_TYPES.MIXED_INTERLACE_AND_PROGRESSIVE; pub const WPD_OPERATION_STATES = enum(i32) { UNSPECIFIED = 0, STARTED = 1, RUNNING = 2, PAUSED = 3, CANCELLED = 4, FINISHED = 5, ABORTED = 6, }; pub const WPD_OPERATION_STATE_UNSPECIFIED = WPD_OPERATION_STATES.UNSPECIFIED; pub const WPD_OPERATION_STATE_STARTED = WPD_OPERATION_STATES.STARTED; pub const WPD_OPERATION_STATE_RUNNING = WPD_OPERATION_STATES.RUNNING; pub const WPD_OPERATION_STATE_PAUSED = WPD_OPERATION_STATES.PAUSED; pub const WPD_OPERATION_STATE_CANCELLED = WPD_OPERATION_STATES.CANCELLED; pub const WPD_OPERATION_STATE_FINISHED = WPD_OPERATION_STATES.FINISHED; pub const WPD_OPERATION_STATE_ABORTED = WPD_OPERATION_STATES.ABORTED; pub const WPD_SECTION_DATA_UNITS_VALUES = enum(i32) { BYTES = 0, MILLISECONDS = 1, }; pub const WPD_SECTION_DATA_UNITS_BYTES = WPD_SECTION_DATA_UNITS_VALUES.BYTES; pub const WPD_SECTION_DATA_UNITS_MILLISECONDS = WPD_SECTION_DATA_UNITS_VALUES.MILLISECONDS; pub const WPD_RENDERING_INFORMATION_PROFILE_ENTRY_TYPES = enum(i32) { OBJECT = 0, RESOURCE = 1, }; pub const WPD_RENDERING_INFORMATION_PROFILE_ENTRY_TYPE_OBJECT = WPD_RENDERING_INFORMATION_PROFILE_ENTRY_TYPES.OBJECT; pub const WPD_RENDERING_INFORMATION_PROFILE_ENTRY_TYPE_RESOURCE = WPD_RENDERING_INFORMATION_PROFILE_ENTRY_TYPES.RESOURCE; pub const WPD_COMMAND_ACCESS_TYPES = enum(i32) { READ = 1, READWRITE = 3, FROM_PROPERTY_WITH_STGM_ACCESS = 4, FROM_PROPERTY_WITH_FILE_ACCESS = 8, FROM_ATTRIBUTE_WITH_METHOD_ACCESS = 16, }; pub const WPD_COMMAND_ACCESS_READ = WPD_COMMAND_ACCESS_TYPES.READ; pub const WPD_COMMAND_ACCESS_READWRITE = WPD_COMMAND_ACCESS_TYPES.READWRITE; pub const WPD_COMMAND_ACCESS_FROM_PROPERTY_WITH_STGM_ACCESS = WPD_COMMAND_ACCESS_TYPES.FROM_PROPERTY_WITH_STGM_ACCESS; pub const WPD_COMMAND_ACCESS_FROM_PROPERTY_WITH_FILE_ACCESS = WPD_COMMAND_ACCESS_TYPES.FROM_PROPERTY_WITH_FILE_ACCESS; pub const WPD_COMMAND_ACCESS_FROM_ATTRIBUTE_WITH_METHOD_ACCESS = WPD_COMMAND_ACCESS_TYPES.FROM_ATTRIBUTE_WITH_METHOD_ACCESS; pub const WPD_SERVICE_INHERITANCE_TYPES = enum(i32) { N = 0, }; pub const WPD_SERVICE_INHERITANCE_IMPLEMENTATION = WPD_SERVICE_INHERITANCE_TYPES.N; pub const WPD_PARAMETER_USAGE_TYPES = enum(i32) { RETURN = 0, IN = 1, OUT = 2, INOUT = 3, }; pub const WPD_PARAMETER_USAGE_RETURN = WPD_PARAMETER_USAGE_TYPES.RETURN; pub const WPD_PARAMETER_USAGE_IN = WPD_PARAMETER_USAGE_TYPES.IN; pub const WPD_PARAMETER_USAGE_OUT = WPD_PARAMETER_USAGE_TYPES.OUT; pub const WPD_PARAMETER_USAGE_INOUT = WPD_PARAMETER_USAGE_TYPES.INOUT; pub const WPD_COMMAND_ACCESS_LOOKUP_ENTRY = extern struct { Command: PROPERTYKEY, AccessType: u32, AccessProperty: PROPERTYKEY, }; const CLSID_WpdSerializer_Value = Guid.initString("0b91a74b-ad7c-4a9d-b563-29eef9167172"); pub const CLSID_WpdSerializer = &CLSID_WpdSerializer_Value; const CLSID_PortableDeviceValues_Value = Guid.initString("0c15d503-d017-47ce-9016-7b3f978721cc"); pub const CLSID_PortableDeviceValues = &CLSID_PortableDeviceValues_Value; const CLSID_PortableDeviceKeyCollection_Value = Guid.initString("de2d022d-2480-43be-97f0-d1fa2cf98f4f"); pub const CLSID_PortableDeviceKeyCollection = &CLSID_PortableDeviceKeyCollection_Value; const CLSID_PortableDevicePropVariantCollection_Value = Guid.initString("08a99e2f-6d6d-4b80-af5a-baf2bcbe4cb9"); pub const CLSID_PortableDevicePropVariantCollection = &CLSID_PortableDevicePropVariantCollection_Value; const CLSID_PortableDeviceValuesCollection_Value = Guid.initString("3882134d-14cf-4220-9cb4-435f86d83f60"); pub const CLSID_PortableDeviceValuesCollection = &CLSID_PortableDeviceValuesCollection_Value; pub const WPD_STREAM_UNITS = enum(i32) { BYTES = 0, FRAMES = 1, ROWS = 2, MILLISECONDS = 4, MICROSECONDS = 8, }; pub const WPD_STREAM_UNITS_BYTES = WPD_STREAM_UNITS.BYTES; pub const WPD_STREAM_UNITS_FRAMES = WPD_STREAM_UNITS.FRAMES; pub const WPD_STREAM_UNITS_ROWS = WPD_STREAM_UNITS.ROWS; pub const WPD_STREAM_UNITS_MILLISECONDS = WPD_STREAM_UNITS.MILLISECONDS; pub const WPD_STREAM_UNITS_MICROSECONDS = WPD_STREAM_UNITS.MICROSECONDS; const IID_IWpdSerializer_Value = Guid.initString("b32f4002-bb27-45ff-af4f-06631c1e8dad"); pub const IID_IWpdSerializer = &IID_IWpdSerializer_Value; pub const IWpdSerializer = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, GetIPortableDeviceValuesFromBuffer: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IWpdSerializer, pBuffer: [*:0]u8, dwInputBufferLength: u32, ppParams: ?*?*IPortableDeviceValues, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IWpdSerializer, pBuffer: [*:0]u8, dwInputBufferLength: u32, ppParams: ?*?*IPortableDeviceValues, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, WriteIPortableDeviceValuesToBuffer: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IWpdSerializer, dwOutputBufferLength: u32, pResults: ?*IPortableDeviceValues, pBuffer: [*:0]u8, pdwBytesWritten: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IWpdSerializer, dwOutputBufferLength: u32, pResults: ?*IPortableDeviceValues, pBuffer: [*:0]u8, pdwBytesWritten: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetBufferFromIPortableDeviceValues: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IWpdSerializer, pSource: ?*IPortableDeviceValues, ppBuffer: [*]?*u8, pdwBufferSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IWpdSerializer, pSource: ?*IPortableDeviceValues, ppBuffer: [*]?*u8, pdwBufferSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetSerializedSize: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IWpdSerializer, pSource: ?*IPortableDeviceValues, pdwSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IWpdSerializer, pSource: ?*IPortableDeviceValues, pdwSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWpdSerializer_GetIPortableDeviceValuesFromBuffer(self: *const T, pBuffer: [*:0]u8, dwInputBufferLength: u32, ppParams: ?*?*IPortableDeviceValues) HRESULT { return @as(*const IWpdSerializer.VTable, @ptrCast(self.vtable)).GetIPortableDeviceValuesFromBuffer(@as(*const IWpdSerializer, @ptrCast(self)), pBuffer, dwInputBufferLength, ppParams); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWpdSerializer_WriteIPortableDeviceValuesToBuffer(self: *const T, dwOutputBufferLength: u32, pResults: ?*IPortableDeviceValues, pBuffer: [*:0]u8, pdwBytesWritten: ?*u32) HRESULT { return @as(*const IWpdSerializer.VTable, @ptrCast(self.vtable)).WriteIPortableDeviceValuesToBuffer(@as(*const IWpdSerializer, @ptrCast(self)), dwOutputBufferLength, pResults, pBuffer, pdwBytesWritten); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWpdSerializer_GetBufferFromIPortableDeviceValues(self: *const T, pSource: ?*IPortableDeviceValues, ppBuffer: [*]?*u8, pdwBufferSize: ?*u32) HRESULT { return @as(*const IWpdSerializer.VTable, @ptrCast(self.vtable)).GetBufferFromIPortableDeviceValues(@as(*const IWpdSerializer, @ptrCast(self)), pSource, ppBuffer, pdwBufferSize); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IWpdSerializer_GetSerializedSize(self: *const T, pSource: ?*IPortableDeviceValues, pdwSize: ?*u32) HRESULT { return @as(*const IWpdSerializer.VTable, @ptrCast(self.vtable)).GetSerializedSize(@as(*const IWpdSerializer, @ptrCast(self)), pSource, pdwSize); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IPortableDeviceValues_Value = Guid.initString("6848f6f2-3155-4f86-b6f5-263eeeab3143"); pub const IID_IPortableDeviceValues = &IID_IPortableDeviceValues_Value; pub const IPortableDeviceValues = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, GetCount: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IPortableDeviceValues, pcelt: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IPortableDeviceValues, pcelt: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetAt: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IPortableDeviceValues, index: u32, pKey: ?*PROPERTYKEY, pValue: ?*PROPVARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IPortableDeviceValues, index: u32, pKey: ?*PROPERTYKEY, pValue: ?*PROPVARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetValue: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IPortableDeviceValues, key: ?*const PROPERTYKEY, pValue: ?*const PROPVARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IPortableDeviceValues, key: ?*const PROPERTYKEY, pValue: ?*const PROPVARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetValue: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IPortableDeviceValues, key: ?*const PROPERTYKEY, pValue: ?*PROPVARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IPortableDeviceValues, key: ?*const PROPERTYKEY, pValue: ?*PROPVARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetStringValue: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IPortableDeviceValues, key: ?*const PROPERTYKEY, Value: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IPortableDeviceValues, key: ?*const PROPERTYKEY, Value: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetStringValue: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IPortableDeviceValues, key: ?*const PROPERTYKEY, pValue: ?*?PWSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IPortableDeviceValues, key: ?*const PROPERTYKEY, pValue: ?*?PWSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetUnsignedIntegerValue: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IPortableDeviceValues, key: ?*const PROPERTYKEY, Value: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IPortableDeviceValues, key: ?*const PROPERTYKEY, Value: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetUnsignedIntegerValue: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IPortableDeviceValues, key: ?*const PROPERTYKEY, pValue: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IPortableDeviceValues, key: ?*const PROPERTYKEY, pValue: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetSignedIntegerValue: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IPortableDeviceValues, key: ?*const PROPERTYKEY, Value: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IPortableDeviceValues, key: ?*const PROPERTYKEY, Value: i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetSignedIntegerValue: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IPortableDeviceValues, key: ?*const PROPERTYKEY, pValue: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IPortableDeviceValues, key: ?*const PROPERTYKEY, pValue: ?*i32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetUnsignedLargeIntegerValue: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IPortableDeviceValues, key: ?*const PROPERTYKEY, Value: u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IPortableDeviceValues, key: ?*const PROPERTYKEY, Value: u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetUnsignedLargeIntegerValue: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IPortableDeviceValues, key: ?*const PROPERTYKEY, pValue: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IPortableDeviceValues, key: ?*const PROPERTYKEY, pValue: ?*u64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetSignedLargeIntegerValue: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IPortableDeviceValues, key: ?*const PROPERTYKEY, Value: i64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IPortableDeviceValues, key: ?*const PROPERTYKEY, Value: i64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetSignedLargeIntegerValue: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IPortableDeviceValues, key: ?*const PROPERTYKEY, pValue: ?*i64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IPortableDeviceValues, key: ?*const PROPERTYKEY, pValue: ?*i64, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetFloatValue: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IPortableDeviceValues, key: ?*const PROPERTYKEY, Value: f32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IPortableDeviceValues, key: ?*const PROPERTYKEY, Value: f32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetFloatValue: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IPortableDeviceValues, key: ?*const PROPERTYKEY, pValue: ?*f32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IPortableDeviceValues, key: ?*const PROPERTYKEY, pValue: ?*f32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetErrorValue: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IPortableDeviceValues, key: ?*const PROPERTYKEY, Value: HRESULT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IPortableDeviceValues, key: ?*const PROPERTYKEY, Value: HRESULT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetErrorValue: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IPortableDeviceValues, key: ?*const PROPERTYKEY, pValue: ?*HRESULT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IPortableDeviceValues, key: ?*const PROPERTYKEY, pValue: ?*HRESULT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetKeyValue: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IPortableDeviceValues, key: ?*const PROPERTYKEY, Value: ?*const PROPERTYKEY, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IPortableDeviceValues, key: ?*const PROPERTYKEY, Value: ?*const PROPERTYKEY, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetKeyValue: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IPortableDeviceValues, key: ?*const PROPERTYKEY, pValue: ?*PROPERTYKEY, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IPortableDeviceValues, key: ?*const PROPERTYKEY, pValue: ?*PROPERTYKEY, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetBoolValue: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IPortableDeviceValues, key: ?*const PROPERTYKEY, Value: BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IPortableDeviceValues, key: ?*const PROPERTYKEY, Value: BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetBoolValue: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IPortableDeviceValues, key: ?*const PROPERTYKEY, pValue: ?*BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IPortableDeviceValues, key: ?*const PROPERTYKEY, pValue: ?*BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetIUnknownValue: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IPortableDeviceValues, key: ?*const PROPERTYKEY, pValue: ?*IUnknown, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IPortableDeviceValues, key: ?*const PROPERTYKEY, pValue: ?*IUnknown, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetIUnknownValue: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IPortableDeviceValues, key: ?*const PROPERTYKEY, ppValue: ?*?*IUnknown, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IPortableDeviceValues, key: ?*const PROPERTYKEY, ppValue: ?*?*IUnknown, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetGuidValue: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IPortableDeviceValues, key: ?*const PROPERTYKEY, Value: ?*const Guid, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IPortableDeviceValues, key: ?*const PROPERTYKEY, Value: ?*const Guid, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetGuidValue: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IPortableDeviceValues, key: ?*const PROPERTYKEY, pValue: ?*Guid, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IPortableDeviceValues, key: ?*const PROPERTYKEY, pValue: ?*Guid, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetBufferValue: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IPortableDeviceValues, key: ?*const PROPERTYKEY, pValue: [*:0]u8, cbValue: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IPortableDeviceValues, key: ?*const PROPERTYKEY, pValue: [*:0]u8, cbValue: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetBufferValue: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IPortableDeviceValues, key: ?*const PROPERTYKEY, ppValue: [*]?*u8, pcbValue: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IPortableDeviceValues, key: ?*const PROPERTYKEY, ppValue: [*]?*u8, pcbValue: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetIPortableDeviceValuesValue: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IPortableDeviceValues, key: ?*const PROPERTYKEY, pValue: ?*IPortableDeviceValues, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IPortableDeviceValues, key: ?*const PROPERTYKEY, pValue: ?*IPortableDeviceValues, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetIPortableDeviceValuesValue: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IPortableDeviceValues, key: ?*const PROPERTYKEY, ppValue: ?*?*IPortableDeviceValues, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IPortableDeviceValues, key: ?*const PROPERTYKEY, ppValue: ?*?*IPortableDeviceValues, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetIPortableDevicePropVariantCollectionValue: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IPortableDeviceValues, key: ?*const PROPERTYKEY, pValue: ?*IPortableDevicePropVariantCollection, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IPortableDeviceValues, key: ?*const PROPERTYKEY, pValue: ?*IPortableDevicePropVariantCollection, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetIPortableDevicePropVariantCollectionValue: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IPortableDeviceValues, key: ?*const PROPERTYKEY, ppValue: ?*?*IPortableDevicePropVariantCollection, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IPortableDeviceValues, key: ?*const PROPERTYKEY, ppValue: ?*?*IPortableDevicePropVariantCollection, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetIPortableDeviceKeyCollectionValue: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IPortableDeviceValues, key: ?*const PROPERTYKEY, pValue: ?*IPortableDeviceKeyCollection, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IPortableDeviceValues, key: ?*const PROPERTYKEY, pValue: ?*IPortableDeviceKeyCollection, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetIPortableDeviceKeyCollectionValue: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IPortableDeviceValues, key: ?*const PROPERTYKEY, ppValue: ?*?*IPortableDeviceKeyCollection, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IPortableDeviceValues, key: ?*const PROPERTYKEY, ppValue: ?*?*IPortableDeviceKeyCollection, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetIPortableDeviceValuesCollectionValue: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IPortableDeviceValues, key: ?*const PROPERTYKEY, pValue: ?*IPortableDeviceValuesCollection, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IPortableDeviceValues, key: ?*const PROPERTYKEY, pValue: ?*IPortableDeviceValuesCollection, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetIPortableDeviceValuesCollectionValue: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IPortableDeviceValues, key: ?*const PROPERTYKEY, ppValue: ?*?*IPortableDeviceValuesCollection, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IPortableDeviceValues, key: ?*const PROPERTYKEY, ppValue: ?*?*IPortableDeviceValuesCollection, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, RemoveValue: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IPortableDeviceValues, key: ?*const PROPERTYKEY, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IPortableDeviceValues, key: ?*const PROPERTYKEY, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, CopyValuesFromPropertyStore: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IPortableDeviceValues, pStore: ?*IPropertyStore, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IPortableDeviceValues, pStore: ?*IPropertyStore, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, CopyValuesToPropertyStore: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IPortableDeviceValues, pStore: ?*IPropertyStore, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IPortableDeviceValues, pStore: ?*IPropertyStore, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Clear: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IPortableDeviceValues, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IPortableDeviceValues, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPortableDeviceValues_GetCount(self: *const T, pcelt: ?*u32) HRESULT { return @as(*const IPortableDeviceValues.VTable, @ptrCast(self.vtable)).GetCount(@as(*const IPortableDeviceValues, @ptrCast(self)), pcelt); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPortableDeviceValues_GetAt(self: *const T, index: u32, pKey: ?*PROPERTYKEY, pValue: ?*PROPVARIANT) HRESULT { return @as(*const IPortableDeviceValues.VTable, @ptrCast(self.vtable)).GetAt(@as(*const IPortableDeviceValues, @ptrCast(self)), index, pKey, pValue); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPortableDeviceValues_SetValue(self: *const T, key: ?*const PROPERTYKEY, pValue: ?*const PROPVARIANT) HRESULT { return @as(*const IPortableDeviceValues.VTable, @ptrCast(self.vtable)).SetValue(@as(*const IPortableDeviceValues, @ptrCast(self)), key, pValue); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPortableDeviceValues_GetValue(self: *const T, key: ?*const PROPERTYKEY, pValue: ?*PROPVARIANT) HRESULT { return @as(*const IPortableDeviceValues.VTable, @ptrCast(self.vtable)).GetValue(@as(*const IPortableDeviceValues, @ptrCast(self)), key, pValue); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPortableDeviceValues_SetStringValue(self: *const T, key: ?*const PROPERTYKEY, Value: ?[*:0]const u16) HRESULT { return @as(*const IPortableDeviceValues.VTable, @ptrCast(self.vtable)).SetStringValue(@as(*const IPortableDeviceValues, @ptrCast(self)), key, Value); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPortableDeviceValues_GetStringValue(self: *const T, key: ?*const PROPERTYKEY, pValue: ?*?PWSTR) HRESULT { return @as(*const IPortableDeviceValues.VTable, @ptrCast(self.vtable)).GetStringValue(@as(*const IPortableDeviceValues, @ptrCast(self)), key, pValue); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPortableDeviceValues_SetUnsignedIntegerValue(self: *const T, key: ?*const PROPERTYKEY, Value: u32) HRESULT { return @as(*const IPortableDeviceValues.VTable, @ptrCast(self.vtable)).SetUnsignedIntegerValue(@as(*const IPortableDeviceValues, @ptrCast(self)), key, Value); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPortableDeviceValues_GetUnsignedIntegerValue(self: *const T, key: ?*const PROPERTYKEY, pValue: ?*u32) HRESULT { return @as(*const IPortableDeviceValues.VTable, @ptrCast(self.vtable)).GetUnsignedIntegerValue(@as(*const IPortableDeviceValues, @ptrCast(self)), key, pValue); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPortableDeviceValues_SetSignedIntegerValue(self: *const T, key: ?*const PROPERTYKEY, Value: i32) HRESULT { return @as(*const IPortableDeviceValues.VTable, @ptrCast(self.vtable)).SetSignedIntegerValue(@as(*const IPortableDeviceValues, @ptrCast(self)), key, Value); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPortableDeviceValues_GetSignedIntegerValue(self: *const T, key: ?*const PROPERTYKEY, pValue: ?*i32) HRESULT { return @as(*const IPortableDeviceValues.VTable, @ptrCast(self.vtable)).GetSignedIntegerValue(@as(*const IPortableDeviceValues, @ptrCast(self)), key, pValue); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPortableDeviceValues_SetUnsignedLargeIntegerValue(self: *const T, key: ?*const PROPERTYKEY, Value: u64) HRESULT { return @as(*const IPortableDeviceValues.VTable, @ptrCast(self.vtable)).SetUnsignedLargeIntegerValue(@as(*const IPortableDeviceValues, @ptrCast(self)), key, Value); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPortableDeviceValues_GetUnsignedLargeIntegerValue(self: *const T, key: ?*const PROPERTYKEY, pValue: ?*u64) HRESULT { return @as(*const IPortableDeviceValues.VTable, @ptrCast(self.vtable)).GetUnsignedLargeIntegerValue(@as(*const IPortableDeviceValues, @ptrCast(self)), key, pValue); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPortableDeviceValues_SetSignedLargeIntegerValue(self: *const T, key: ?*const PROPERTYKEY, Value: i64) HRESULT { return @as(*const IPortableDeviceValues.VTable, @ptrCast(self.vtable)).SetSignedLargeIntegerValue(@as(*const IPortableDeviceValues, @ptrCast(self)), key, Value); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPortableDeviceValues_GetSignedLargeIntegerValue(self: *const T, key: ?*const PROPERTYKEY, pValue: ?*i64) HRESULT { return @as(*const IPortableDeviceValues.VTable, @ptrCast(self.vtable)).GetSignedLargeIntegerValue(@as(*const IPortableDeviceValues, @ptrCast(self)), key, pValue); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPortableDeviceValues_SetFloatValue(self: *const T, key: ?*const PROPERTYKEY, Value: f32) HRESULT { return @as(*const IPortableDeviceValues.VTable, @ptrCast(self.vtable)).SetFloatValue(@as(*const IPortableDeviceValues, @ptrCast(self)), key, Value); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPortableDeviceValues_GetFloatValue(self: *const T, key: ?*const PROPERTYKEY, pValue: ?*f32) HRESULT { return @as(*const IPortableDeviceValues.VTable, @ptrCast(self.vtable)).GetFloatValue(@as(*const IPortableDeviceValues, @ptrCast(self)), key, pValue); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPortableDeviceValues_SetErrorValue(self: *const T, key: ?*const PROPERTYKEY, Value: HRESULT) HRESULT { return @as(*const IPortableDeviceValues.VTable, @ptrCast(self.vtable)).SetErrorValue(@as(*const IPortableDeviceValues, @ptrCast(self)), key, Value); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPortableDeviceValues_GetErrorValue(self: *const T, key: ?*const PROPERTYKEY, pValue: ?*HRESULT) HRESULT { return @as(*const IPortableDeviceValues.VTable, @ptrCast(self.vtable)).GetErrorValue(@as(*const IPortableDeviceValues, @ptrCast(self)), key, pValue); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPortableDeviceValues_SetKeyValue(self: *const T, key: ?*const PROPERTYKEY, Value: ?*const PROPERTYKEY) HRESULT { return @as(*const IPortableDeviceValues.VTable, @ptrCast(self.vtable)).SetKeyValue(@as(*const IPortableDeviceValues, @ptrCast(self)), key, Value); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPortableDeviceValues_GetKeyValue(self: *const T, key: ?*const PROPERTYKEY, pValue: ?*PROPERTYKEY) HRESULT { return @as(*const IPortableDeviceValues.VTable, @ptrCast(self.vtable)).GetKeyValue(@as(*const IPortableDeviceValues, @ptrCast(self)), key, pValue); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPortableDeviceValues_SetBoolValue(self: *const T, key: ?*const PROPERTYKEY, Value: BOOL) HRESULT { return @as(*const IPortableDeviceValues.VTable, @ptrCast(self.vtable)).SetBoolValue(@as(*const IPortableDeviceValues, @ptrCast(self)), key, Value); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPortableDeviceValues_GetBoolValue(self: *const T, key: ?*const PROPERTYKEY, pValue: ?*BOOL) HRESULT { return @as(*const IPortableDeviceValues.VTable, @ptrCast(self.vtable)).GetBoolValue(@as(*const IPortableDeviceValues, @ptrCast(self)), key, pValue); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPortableDeviceValues_SetIUnknownValue(self: *const T, key: ?*const PROPERTYKEY, pValue: ?*IUnknown) HRESULT { return @as(*const IPortableDeviceValues.VTable, @ptrCast(self.vtable)).SetIUnknownValue(@as(*const IPortableDeviceValues, @ptrCast(self)), key, pValue); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPortableDeviceValues_GetIUnknownValue(self: *const T, key: ?*const PROPERTYKEY, ppValue: ?*?*IUnknown) HRESULT { return @as(*const IPortableDeviceValues.VTable, @ptrCast(self.vtable)).GetIUnknownValue(@as(*const IPortableDeviceValues, @ptrCast(self)), key, ppValue); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPortableDeviceValues_SetGuidValue(self: *const T, key: ?*const PROPERTYKEY, Value: ?*const Guid) HRESULT { return @as(*const IPortableDeviceValues.VTable, @ptrCast(self.vtable)).SetGuidValue(@as(*const IPortableDeviceValues, @ptrCast(self)), key, Value); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPortableDeviceValues_GetGuidValue(self: *const T, key: ?*const PROPERTYKEY, pValue: ?*Guid) HRESULT { return @as(*const IPortableDeviceValues.VTable, @ptrCast(self.vtable)).GetGuidValue(@as(*const IPortableDeviceValues, @ptrCast(self)), key, pValue); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPortableDeviceValues_SetBufferValue(self: *const T, key: ?*const PROPERTYKEY, pValue: [*:0]u8, cbValue: u32) HRESULT { return @as(*const IPortableDeviceValues.VTable, @ptrCast(self.vtable)).SetBufferValue(@as(*const IPortableDeviceValues, @ptrCast(self)), key, pValue, cbValue); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPortableDeviceValues_GetBufferValue(self: *const T, key: ?*const PROPERTYKEY, ppValue: [*]?*u8, pcbValue: ?*u32) HRESULT { return @as(*const IPortableDeviceValues.VTable, @ptrCast(self.vtable)).GetBufferValue(@as(*const IPortableDeviceValues, @ptrCast(self)), key, ppValue, pcbValue); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPortableDeviceValues_SetIPortableDeviceValuesValue(self: *const T, key: ?*const PROPERTYKEY, pValue: ?*IPortableDeviceValues) HRESULT { return @as(*const IPortableDeviceValues.VTable, @ptrCast(self.vtable)).SetIPortableDeviceValuesValue(@as(*const IPortableDeviceValues, @ptrCast(self)), key, pValue); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPortableDeviceValues_GetIPortableDeviceValuesValue(self: *const T, key: ?*const PROPERTYKEY, ppValue: ?*?*IPortableDeviceValues) HRESULT { return @as(*const IPortableDeviceValues.VTable, @ptrCast(self.vtable)).GetIPortableDeviceValuesValue(@as(*const IPortableDeviceValues, @ptrCast(self)), key, ppValue); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPortableDeviceValues_SetIPortableDevicePropVariantCollectionValue(self: *const T, key: ?*const PROPERTYKEY, pValue: ?*IPortableDevicePropVariantCollection) HRESULT { return @as(*const IPortableDeviceValues.VTable, @ptrCast(self.vtable)).SetIPortableDevicePropVariantCollectionValue(@as(*const IPortableDeviceValues, @ptrCast(self)), key, pValue); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPortableDeviceValues_GetIPortableDevicePropVariantCollectionValue(self: *const T, key: ?*const PROPERTYKEY, ppValue: ?*?*IPortableDevicePropVariantCollection) HRESULT { return @as(*const IPortableDeviceValues.VTable, @ptrCast(self.vtable)).GetIPortableDevicePropVariantCollectionValue(@as(*const IPortableDeviceValues, @ptrCast(self)), key, ppValue); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPortableDeviceValues_SetIPortableDeviceKeyCollectionValue(self: *const T, key: ?*const PROPERTYKEY, pValue: ?*IPortableDeviceKeyCollection) HRESULT { return @as(*const IPortableDeviceValues.VTable, @ptrCast(self.vtable)).SetIPortableDeviceKeyCollectionValue(@as(*const IPortableDeviceValues, @ptrCast(self)), key, pValue); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPortableDeviceValues_GetIPortableDeviceKeyCollectionValue(self: *const T, key: ?*const PROPERTYKEY, ppValue: ?*?*IPortableDeviceKeyCollection) HRESULT { return @as(*const IPortableDeviceValues.VTable, @ptrCast(self.vtable)).GetIPortableDeviceKeyCollectionValue(@as(*const IPortableDeviceValues, @ptrCast(self)), key, ppValue); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPortableDeviceValues_SetIPortableDeviceValuesCollectionValue(self: *const T, key: ?*const PROPERTYKEY, pValue: ?*IPortableDeviceValuesCollection) HRESULT { return @as(*const IPortableDeviceValues.VTable, @ptrCast(self.vtable)).SetIPortableDeviceValuesCollectionValue(@as(*const IPortableDeviceValues, @ptrCast(self)), key, pValue); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPortableDeviceValues_GetIPortableDeviceValuesCollectionValue(self: *const T, key: ?*const PROPERTYKEY, ppValue: ?*?*IPortableDeviceValuesCollection) HRESULT { return @as(*const IPortableDeviceValues.VTable, @ptrCast(self.vtable)).GetIPortableDeviceValuesCollectionValue(@as(*const IPortableDeviceValues, @ptrCast(self)), key, ppValue); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPortableDeviceValues_RemoveValue(self: *const T, key: ?*const PROPERTYKEY) HRESULT { return @as(*const IPortableDeviceValues.VTable, @ptrCast(self.vtable)).RemoveValue(@as(*const IPortableDeviceValues, @ptrCast(self)), key); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPortableDeviceValues_CopyValuesFromPropertyStore(self: *const T, pStore: ?*IPropertyStore) HRESULT { return @as(*const IPortableDeviceValues.VTable, @ptrCast(self.vtable)).CopyValuesFromPropertyStore(@as(*const IPortableDeviceValues, @ptrCast(self)), pStore); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPortableDeviceValues_CopyValuesToPropertyStore(self: *const T, pStore: ?*IPropertyStore) HRESULT { return @as(*const IPortableDeviceValues.VTable, @ptrCast(self.vtable)).CopyValuesToPropertyStore(@as(*const IPortableDeviceValues, @ptrCast(self)), pStore); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPortableDeviceValues_Clear(self: *const T) HRESULT { return @as(*const IPortableDeviceValues.VTable, @ptrCast(self.vtable)).Clear(@as(*const IPortableDeviceValues, @ptrCast(self))); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IPortableDeviceKeyCollection_Value = Guid.initString("dada2357-e0ad-492e-98db-dd61c53ba353"); pub const IID_IPortableDeviceKeyCollection = &IID_IPortableDeviceKeyCollection_Value; pub const IPortableDeviceKeyCollection = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, GetCount: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IPortableDeviceKeyCollection, pcElems: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IPortableDeviceKeyCollection, pcElems: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetAt: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IPortableDeviceKeyCollection, dwIndex: u32, pKey: ?*PROPERTYKEY, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IPortableDeviceKeyCollection, dwIndex: u32, pKey: ?*PROPERTYKEY, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Add: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IPortableDeviceKeyCollection, Key: ?*const PROPERTYKEY, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IPortableDeviceKeyCollection, Key: ?*const PROPERTYKEY, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Clear: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IPortableDeviceKeyCollection, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IPortableDeviceKeyCollection, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, RemoveAt: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IPortableDeviceKeyCollection, dwIndex: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IPortableDeviceKeyCollection, dwIndex: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPortableDeviceKeyCollection_GetCount(self: *const T, pcElems: ?*u32) HRESULT { return @as(*const IPortableDeviceKeyCollection.VTable, @ptrCast(self.vtable)).GetCount(@as(*const IPortableDeviceKeyCollection, @ptrCast(self)), pcElems); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPortableDeviceKeyCollection_GetAt(self: *const T, dwIndex: u32, pKey: ?*PROPERTYKEY) HRESULT { return @as(*const IPortableDeviceKeyCollection.VTable, @ptrCast(self.vtable)).GetAt(@as(*const IPortableDeviceKeyCollection, @ptrCast(self)), dwIndex, pKey); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPortableDeviceKeyCollection_Add(self: *const T, Key: ?*const PROPERTYKEY) HRESULT { return @as(*const IPortableDeviceKeyCollection.VTable, @ptrCast(self.vtable)).Add(@as(*const IPortableDeviceKeyCollection, @ptrCast(self)), Key); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPortableDeviceKeyCollection_Clear(self: *const T) HRESULT { return @as(*const IPortableDeviceKeyCollection.VTable, @ptrCast(self.vtable)).Clear(@as(*const IPortableDeviceKeyCollection, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPortableDeviceKeyCollection_RemoveAt(self: *const T, dwIndex: u32) HRESULT { return @as(*const IPortableDeviceKeyCollection.VTable, @ptrCast(self.vtable)).RemoveAt(@as(*const IPortableDeviceKeyCollection, @ptrCast(self)), dwIndex); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IPortableDevicePropVariantCollection_Value = Guid.initString("89b2e422-4f1b-4316-bcef-a44afea83eb3"); pub const IID_IPortableDevicePropVariantCollection = &IID_IPortableDevicePropVariantCollection_Value; pub const IPortableDevicePropVariantCollection = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, GetCount: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IPortableDevicePropVariantCollection, pcElems: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IPortableDevicePropVariantCollection, pcElems: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetAt: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IPortableDevicePropVariantCollection, dwIndex: u32, pValue: ?*PROPVARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IPortableDevicePropVariantCollection, dwIndex: u32, pValue: ?*PROPVARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Add: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IPortableDevicePropVariantCollection, pValue: ?*const PROPVARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IPortableDevicePropVariantCollection, pValue: ?*const PROPVARIANT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetType: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IPortableDevicePropVariantCollection, pvt: ?*u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IPortableDevicePropVariantCollection, pvt: ?*u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, ChangeType: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IPortableDevicePropVariantCollection, vt: u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IPortableDevicePropVariantCollection, vt: u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Clear: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IPortableDevicePropVariantCollection, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IPortableDevicePropVariantCollection, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, RemoveAt: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IPortableDevicePropVariantCollection, dwIndex: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IPortableDevicePropVariantCollection, dwIndex: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPortableDevicePropVariantCollection_GetCount(self: *const T, pcElems: ?*u32) HRESULT { return @as(*const IPortableDevicePropVariantCollection.VTable, @ptrCast(self.vtable)).GetCount(@as(*const IPortableDevicePropVariantCollection, @ptrCast(self)), pcElems); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPortableDevicePropVariantCollection_GetAt(self: *const T, dwIndex: u32, pValue: ?*PROPVARIANT) HRESULT { return @as(*const IPortableDevicePropVariantCollection.VTable, @ptrCast(self.vtable)).GetAt(@as(*const IPortableDevicePropVariantCollection, @ptrCast(self)), dwIndex, pValue); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPortableDevicePropVariantCollection_Add(self: *const T, pValue: ?*const PROPVARIANT) HRESULT { return @as(*const IPortableDevicePropVariantCollection.VTable, @ptrCast(self.vtable)).Add(@as(*const IPortableDevicePropVariantCollection, @ptrCast(self)), pValue); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPortableDevicePropVariantCollection_GetType(self: *const T, pvt: ?*u16) HRESULT { return @as(*const IPortableDevicePropVariantCollection.VTable, @ptrCast(self.vtable)).GetType(@as(*const IPortableDevicePropVariantCollection, @ptrCast(self)), pvt); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPortableDevicePropVariantCollection_ChangeType(self: *const T, vt: u16) HRESULT { return @as(*const IPortableDevicePropVariantCollection.VTable, @ptrCast(self.vtable)).ChangeType(@as(*const IPortableDevicePropVariantCollection, @ptrCast(self)), vt); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPortableDevicePropVariantCollection_Clear(self: *const T) HRESULT { return @as(*const IPortableDevicePropVariantCollection.VTable, @ptrCast(self.vtable)).Clear(@as(*const IPortableDevicePropVariantCollection, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPortableDevicePropVariantCollection_RemoveAt(self: *const T, dwIndex: u32) HRESULT { return @as(*const IPortableDevicePropVariantCollection.VTable, @ptrCast(self.vtable)).RemoveAt(@as(*const IPortableDevicePropVariantCollection, @ptrCast(self)), dwIndex); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IPortableDeviceValuesCollection_Value = Guid.initString("6e3f2d79-4e07-48c4-8208-d8c2e5af4a99"); pub const IID_IPortableDeviceValuesCollection = &IID_IPortableDeviceValuesCollection_Value; pub const IPortableDeviceValuesCollection = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, GetCount: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IPortableDeviceValuesCollection, pcElems: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IPortableDeviceValuesCollection, pcElems: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetAt: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IPortableDeviceValuesCollection, dwIndex: u32, ppValues: ?*?*IPortableDeviceValues, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IPortableDeviceValuesCollection, dwIndex: u32, ppValues: ?*?*IPortableDeviceValues, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Add: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IPortableDeviceValuesCollection, pValues: ?*IPortableDeviceValues, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IPortableDeviceValuesCollection, pValues: ?*IPortableDeviceValues, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Clear: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IPortableDeviceValuesCollection, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IPortableDeviceValuesCollection, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, RemoveAt: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IPortableDeviceValuesCollection, dwIndex: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IPortableDeviceValuesCollection, dwIndex: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPortableDeviceValuesCollection_GetCount(self: *const T, pcElems: ?*u32) HRESULT { return @as(*const IPortableDeviceValuesCollection.VTable, @ptrCast(self.vtable)).GetCount(@as(*const IPortableDeviceValuesCollection, @ptrCast(self)), pcElems); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPortableDeviceValuesCollection_GetAt(self: *const T, dwIndex: u32, ppValues: ?*?*IPortableDeviceValues) HRESULT { return @as(*const IPortableDeviceValuesCollection.VTable, @ptrCast(self.vtable)).GetAt(@as(*const IPortableDeviceValuesCollection, @ptrCast(self)), dwIndex, ppValues); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPortableDeviceValuesCollection_Add(self: *const T, pValues: ?*IPortableDeviceValues) HRESULT { return @as(*const IPortableDeviceValuesCollection.VTable, @ptrCast(self.vtable)).Add(@as(*const IPortableDeviceValuesCollection, @ptrCast(self)), pValues); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPortableDeviceValuesCollection_Clear(self: *const T) HRESULT { return @as(*const IPortableDeviceValuesCollection.VTable, @ptrCast(self.vtable)).Clear(@as(*const IPortableDeviceValuesCollection, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPortableDeviceValuesCollection_RemoveAt(self: *const T, dwIndex: u32) HRESULT { return @as(*const IPortableDeviceValuesCollection.VTable, @ptrCast(self.vtable)).RemoveAt(@as(*const IPortableDeviceValuesCollection, @ptrCast(self)), dwIndex); } }; } pub usingnamespace MethodMixin(@This()); }; const CLSID_PortableDevice_Value = Guid.initString("728a21c5-3d9e-48d7-9810-864848f0f404"); pub const CLSID_PortableDevice = &CLSID_PortableDevice_Value; const CLSID_PortableDeviceManager_Value = Guid.initString("0af10cec-2ecd-4b92-9581-34f6ae0637f3"); pub const CLSID_PortableDeviceManager = &CLSID_PortableDeviceManager_Value; const CLSID_PortableDeviceService_Value = Guid.initString("ef5db4c2-9312-422c-9152-411cd9c4dd84"); pub const CLSID_PortableDeviceService = &CLSID_PortableDeviceService_Value; const CLSID_PortableDeviceDispatchFactory_Value = Guid.initString("43232233-8338-4658-ae01-0b4ae830b6b0"); pub const CLSID_PortableDeviceDispatchFactory = &CLSID_PortableDeviceDispatchFactory_Value; const CLSID_PortableDeviceFTM_Value = Guid.initString("f7c0039a-4762-488a-b4b3-760ef9a1ba9b"); pub const CLSID_PortableDeviceFTM = &CLSID_PortableDeviceFTM_Value; const CLSID_PortableDeviceServiceFTM_Value = Guid.initString("1649b154-c794-497a-9b03-f3f0121302f3"); pub const CLSID_PortableDeviceServiceFTM = &CLSID_PortableDeviceServiceFTM_Value; const CLSID_PortableDeviceWebControl_Value = Guid.initString("186dd02c-2dec-41b5-a7d4-b59056fade51"); pub const CLSID_PortableDeviceWebControl = &CLSID_PortableDeviceWebControl_Value; const IID_IPortableDeviceManager_Value = Guid.initString("a1567595-4c2f-4574-a6fa-ecef917b9a40"); pub const IID_IPortableDeviceManager = &IID_IPortableDeviceManager_Value; pub const IPortableDeviceManager = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, GetDevices: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IPortableDeviceManager, pPnPDeviceIDs: ?*?PWSTR, pcPnPDeviceIDs: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IPortableDeviceManager, pPnPDeviceIDs: ?*?PWSTR, pcPnPDeviceIDs: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, RefreshDeviceList: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IPortableDeviceManager, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IPortableDeviceManager, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetDeviceFriendlyName: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IPortableDeviceManager, pszPnPDeviceID: ?[*:0]const u16, pDeviceFriendlyName: ?PWSTR, pcchDeviceFriendlyName: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IPortableDeviceManager, pszPnPDeviceID: ?[*:0]const u16, pDeviceFriendlyName: ?PWSTR, pcchDeviceFriendlyName: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetDeviceDescription: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IPortableDeviceManager, pszPnPDeviceID: ?[*:0]const u16, pDeviceDescription: ?PWSTR, pcchDeviceDescription: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IPortableDeviceManager, pszPnPDeviceID: ?[*:0]const u16, pDeviceDescription: ?PWSTR, pcchDeviceDescription: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetDeviceManufacturer: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IPortableDeviceManager, pszPnPDeviceID: ?[*:0]const u16, pDeviceManufacturer: ?PWSTR, pcchDeviceManufacturer: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IPortableDeviceManager, pszPnPDeviceID: ?[*:0]const u16, pDeviceManufacturer: ?PWSTR, pcchDeviceManufacturer: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetDeviceProperty: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IPortableDeviceManager, pszPnPDeviceID: ?[*:0]const u16, pszDevicePropertyName: ?[*:0]const u16, pData: ?*u8, pcbData: ?*u32, pdwType: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IPortableDeviceManager, pszPnPDeviceID: ?[*:0]const u16, pszDevicePropertyName: ?[*:0]const u16, pData: ?*u8, pcbData: ?*u32, pdwType: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetPrivateDevices: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IPortableDeviceManager, pPnPDeviceIDs: ?*?PWSTR, pcPnPDeviceIDs: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IPortableDeviceManager, pPnPDeviceIDs: ?*?PWSTR, pcPnPDeviceIDs: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPortableDeviceManager_GetDevices(self: *const T, pPnPDeviceIDs: ?*?PWSTR, pcPnPDeviceIDs: ?*u32) HRESULT { return @as(*const IPortableDeviceManager.VTable, @ptrCast(self.vtable)).GetDevices(@as(*const IPortableDeviceManager, @ptrCast(self)), pPnPDeviceIDs, pcPnPDeviceIDs); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPortableDeviceManager_RefreshDeviceList(self: *const T) HRESULT { return @as(*const IPortableDeviceManager.VTable, @ptrCast(self.vtable)).RefreshDeviceList(@as(*const IPortableDeviceManager, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPortableDeviceManager_GetDeviceFriendlyName(self: *const T, pszPnPDeviceID: ?[*:0]const u16, pDeviceFriendlyName: ?PWSTR, pcchDeviceFriendlyName: ?*u32) HRESULT { return @as(*const IPortableDeviceManager.VTable, @ptrCast(self.vtable)).GetDeviceFriendlyName(@as(*const IPortableDeviceManager, @ptrCast(self)), pszPnPDeviceID, pDeviceFriendlyName, pcchDeviceFriendlyName); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPortableDeviceManager_GetDeviceDescription(self: *const T, pszPnPDeviceID: ?[*:0]const u16, pDeviceDescription: ?PWSTR, pcchDeviceDescription: ?*u32) HRESULT { return @as(*const IPortableDeviceManager.VTable, @ptrCast(self.vtable)).GetDeviceDescription(@as(*const IPortableDeviceManager, @ptrCast(self)), pszPnPDeviceID, pDeviceDescription, pcchDeviceDescription); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPortableDeviceManager_GetDeviceManufacturer(self: *const T, pszPnPDeviceID: ?[*:0]const u16, pDeviceManufacturer: ?PWSTR, pcchDeviceManufacturer: ?*u32) HRESULT { return @as(*const IPortableDeviceManager.VTable, @ptrCast(self.vtable)).GetDeviceManufacturer(@as(*const IPortableDeviceManager, @ptrCast(self)), pszPnPDeviceID, pDeviceManufacturer, pcchDeviceManufacturer); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPortableDeviceManager_GetDeviceProperty(self: *const T, pszPnPDeviceID: ?[*:0]const u16, pszDevicePropertyName: ?[*:0]const u16, pData: ?*u8, pcbData: ?*u32, pdwType: ?*u32) HRESULT { return @as(*const IPortableDeviceManager.VTable, @ptrCast(self.vtable)).GetDeviceProperty(@as(*const IPortableDeviceManager, @ptrCast(self)), pszPnPDeviceID, pszDevicePropertyName, pData, pcbData, pdwType); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPortableDeviceManager_GetPrivateDevices(self: *const T, pPnPDeviceIDs: ?*?PWSTR, pcPnPDeviceIDs: ?*u32) HRESULT { return @as(*const IPortableDeviceManager.VTable, @ptrCast(self.vtable)).GetPrivateDevices(@as(*const IPortableDeviceManager, @ptrCast(self)), pPnPDeviceIDs, pcPnPDeviceIDs); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IPortableDevice_Value = Guid.initString("625e2df8-6392-4cf0-9ad1-3cfa5f17775c"); pub const IID_IPortableDevice = &IID_IPortableDevice_Value; pub const IPortableDevice = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, Open: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IPortableDevice, pszPnPDeviceID: ?[*:0]const u16, pClientInfo: ?*IPortableDeviceValues, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IPortableDevice, pszPnPDeviceID: ?[*:0]const u16, pClientInfo: ?*IPortableDeviceValues, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SendCommand: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IPortableDevice, dwFlags: u32, pParameters: ?*IPortableDeviceValues, ppResults: ?*?*IPortableDeviceValues, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IPortableDevice, dwFlags: u32, pParameters: ?*IPortableDeviceValues, ppResults: ?*?*IPortableDeviceValues, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Content: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IPortableDevice, ppContent: ?*?*IPortableDeviceContent, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IPortableDevice, ppContent: ?*?*IPortableDeviceContent, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Capabilities: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IPortableDevice, ppCapabilities: ?*?*IPortableDeviceCapabilities, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IPortableDevice, ppCapabilities: ?*?*IPortableDeviceCapabilities, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Cancel: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IPortableDevice, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IPortableDevice, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Close: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IPortableDevice, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IPortableDevice, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Advise: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IPortableDevice, dwFlags: u32, pCallback: ?*IPortableDeviceEventCallback, pParameters: ?*IPortableDeviceValues, ppszCookie: ?*?PWSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IPortableDevice, dwFlags: u32, pCallback: ?*IPortableDeviceEventCallback, pParameters: ?*IPortableDeviceValues, ppszCookie: ?*?PWSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Unadvise: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IPortableDevice, pszCookie: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IPortableDevice, pszCookie: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetPnPDeviceID: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IPortableDevice, ppszPnPDeviceID: ?*?PWSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IPortableDevice, ppszPnPDeviceID: ?*?PWSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPortableDevice_Open(self: *const T, pszPnPDeviceID: ?[*:0]const u16, pClientInfo: ?*IPortableDeviceValues) HRESULT { return @as(*const IPortableDevice.VTable, @ptrCast(self.vtable)).Open(@as(*const IPortableDevice, @ptrCast(self)), pszPnPDeviceID, pClientInfo); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPortableDevice_SendCommand(self: *const T, dwFlags: u32, pParameters: ?*IPortableDeviceValues, ppResults: ?*?*IPortableDeviceValues) HRESULT { return @as(*const IPortableDevice.VTable, @ptrCast(self.vtable)).SendCommand(@as(*const IPortableDevice, @ptrCast(self)), dwFlags, pParameters, ppResults); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPortableDevice_Content(self: *const T, ppContent: ?*?*IPortableDeviceContent) HRESULT { return @as(*const IPortableDevice.VTable, @ptrCast(self.vtable)).Content(@as(*const IPortableDevice, @ptrCast(self)), ppContent); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPortableDevice_Capabilities(self: *const T, ppCapabilities: ?*?*IPortableDeviceCapabilities) HRESULT { return @as(*const IPortableDevice.VTable, @ptrCast(self.vtable)).Capabilities(@as(*const IPortableDevice, @ptrCast(self)), ppCapabilities); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPortableDevice_Cancel(self: *const T) HRESULT { return @as(*const IPortableDevice.VTable, @ptrCast(self.vtable)).Cancel(@as(*const IPortableDevice, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPortableDevice_Close(self: *const T) HRESULT { return @as(*const IPortableDevice.VTable, @ptrCast(self.vtable)).Close(@as(*const IPortableDevice, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPortableDevice_Advise(self: *const T, dwFlags: u32, pCallback: ?*IPortableDeviceEventCallback, pParameters: ?*IPortableDeviceValues, ppszCookie: ?*?PWSTR) HRESULT { return @as(*const IPortableDevice.VTable, @ptrCast(self.vtable)).Advise(@as(*const IPortableDevice, @ptrCast(self)), dwFlags, pCallback, pParameters, ppszCookie); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPortableDevice_Unadvise(self: *const T, pszCookie: ?[*:0]const u16) HRESULT { return @as(*const IPortableDevice.VTable, @ptrCast(self.vtable)).Unadvise(@as(*const IPortableDevice, @ptrCast(self)), pszCookie); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPortableDevice_GetPnPDeviceID(self: *const T, ppszPnPDeviceID: ?*?PWSTR) HRESULT { return @as(*const IPortableDevice.VTable, @ptrCast(self.vtable)).GetPnPDeviceID(@as(*const IPortableDevice, @ptrCast(self)), ppszPnPDeviceID); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IPortableDeviceContent_Value = Guid.initString("6a96ed84-7c73-4480-9938-bf5af477d426"); pub const IID_IPortableDeviceContent = &IID_IPortableDeviceContent_Value; pub const IPortableDeviceContent = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, EnumObjects: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IPortableDeviceContent, dwFlags: u32, pszParentObjectID: ?[*:0]const u16, pFilter: ?*IPortableDeviceValues, ppEnum: ?*?*IEnumPortableDeviceObjectIDs, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IPortableDeviceContent, dwFlags: u32, pszParentObjectID: ?[*:0]const u16, pFilter: ?*IPortableDeviceValues, ppEnum: ?*?*IEnumPortableDeviceObjectIDs, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Properties: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IPortableDeviceContent, ppProperties: ?*?*IPortableDeviceProperties, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IPortableDeviceContent, ppProperties: ?*?*IPortableDeviceProperties, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Transfer: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IPortableDeviceContent, ppResources: ?*?*IPortableDeviceResources, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IPortableDeviceContent, ppResources: ?*?*IPortableDeviceResources, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, CreateObjectWithPropertiesOnly: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IPortableDeviceContent, pValues: ?*IPortableDeviceValues, ppszObjectID: ?*?PWSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IPortableDeviceContent, pValues: ?*IPortableDeviceValues, ppszObjectID: ?*?PWSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, CreateObjectWithPropertiesAndData: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IPortableDeviceContent, pValues: ?*IPortableDeviceValues, ppData: ?*?*IStream, pdwOptimalWriteBufferSize: ?*u32, ppszCookie: ?*?PWSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IPortableDeviceContent, pValues: ?*IPortableDeviceValues, ppData: ?*?*IStream, pdwOptimalWriteBufferSize: ?*u32, ppszCookie: ?*?PWSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Delete: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IPortableDeviceContent, dwOptions: u32, pObjectIDs: ?*IPortableDevicePropVariantCollection, ppResults: ?*?*IPortableDevicePropVariantCollection, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IPortableDeviceContent, dwOptions: u32, pObjectIDs: ?*IPortableDevicePropVariantCollection, ppResults: ?*?*IPortableDevicePropVariantCollection, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetObjectIDsFromPersistentUniqueIDs: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IPortableDeviceContent, pPersistentUniqueIDs: ?*IPortableDevicePropVariantCollection, ppObjectIDs: ?*?*IPortableDevicePropVariantCollection, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IPortableDeviceContent, pPersistentUniqueIDs: ?*IPortableDevicePropVariantCollection, ppObjectIDs: ?*?*IPortableDevicePropVariantCollection, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Cancel: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IPortableDeviceContent, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IPortableDeviceContent, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Move: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IPortableDeviceContent, pObjectIDs: ?*IPortableDevicePropVariantCollection, pszDestinationFolderObjectID: ?[*:0]const u16, ppResults: ?*?*IPortableDevicePropVariantCollection, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IPortableDeviceContent, pObjectIDs: ?*IPortableDevicePropVariantCollection, pszDestinationFolderObjectID: ?[*:0]const u16, ppResults: ?*?*IPortableDevicePropVariantCollection, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Copy: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IPortableDeviceContent, pObjectIDs: ?*IPortableDevicePropVariantCollection, pszDestinationFolderObjectID: ?[*:0]const u16, ppResults: ?*?*IPortableDevicePropVariantCollection, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IPortableDeviceContent, pObjectIDs: ?*IPortableDevicePropVariantCollection, pszDestinationFolderObjectID: ?[*:0]const u16, ppResults: ?*?*IPortableDevicePropVariantCollection, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPortableDeviceContent_EnumObjects(self: *const T, dwFlags: u32, pszParentObjectID: ?[*:0]const u16, pFilter: ?*IPortableDeviceValues, ppEnum: ?*?*IEnumPortableDeviceObjectIDs) HRESULT { return @as(*const IPortableDeviceContent.VTable, @ptrCast(self.vtable)).EnumObjects(@as(*const IPortableDeviceContent, @ptrCast(self)), dwFlags, pszParentObjectID, pFilter, ppEnum); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPortableDeviceContent_Properties(self: *const T, ppProperties: ?*?*IPortableDeviceProperties) HRESULT { return @as(*const IPortableDeviceContent.VTable, @ptrCast(self.vtable)).Properties(@as(*const IPortableDeviceContent, @ptrCast(self)), ppProperties); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPortableDeviceContent_Transfer(self: *const T, ppResources: ?*?*IPortableDeviceResources) HRESULT { return @as(*const IPortableDeviceContent.VTable, @ptrCast(self.vtable)).Transfer(@as(*const IPortableDeviceContent, @ptrCast(self)), ppResources); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPortableDeviceContent_CreateObjectWithPropertiesOnly(self: *const T, pValues: ?*IPortableDeviceValues, ppszObjectID: ?*?PWSTR) HRESULT { return @as(*const IPortableDeviceContent.VTable, @ptrCast(self.vtable)).CreateObjectWithPropertiesOnly(@as(*const IPortableDeviceContent, @ptrCast(self)), pValues, ppszObjectID); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPortableDeviceContent_CreateObjectWithPropertiesAndData(self: *const T, pValues: ?*IPortableDeviceValues, ppData: ?*?*IStream, pdwOptimalWriteBufferSize: ?*u32, ppszCookie: ?*?PWSTR) HRESULT { return @as(*const IPortableDeviceContent.VTable, @ptrCast(self.vtable)).CreateObjectWithPropertiesAndData(@as(*const IPortableDeviceContent, @ptrCast(self)), pValues, ppData, pdwOptimalWriteBufferSize, ppszCookie); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPortableDeviceContent_Delete(self: *const T, dwOptions: u32, pObjectIDs: ?*IPortableDevicePropVariantCollection, ppResults: ?*?*IPortableDevicePropVariantCollection) HRESULT { return @as(*const IPortableDeviceContent.VTable, @ptrCast(self.vtable)).Delete(@as(*const IPortableDeviceContent, @ptrCast(self)), dwOptions, pObjectIDs, ppResults); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPortableDeviceContent_GetObjectIDsFromPersistentUniqueIDs(self: *const T, pPersistentUniqueIDs: ?*IPortableDevicePropVariantCollection, ppObjectIDs: ?*?*IPortableDevicePropVariantCollection) HRESULT { return @as(*const IPortableDeviceContent.VTable, @ptrCast(self.vtable)).GetObjectIDsFromPersistentUniqueIDs(@as(*const IPortableDeviceContent, @ptrCast(self)), pPersistentUniqueIDs, ppObjectIDs); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPortableDeviceContent_Cancel(self: *const T) HRESULT { return @as(*const IPortableDeviceContent.VTable, @ptrCast(self.vtable)).Cancel(@as(*const IPortableDeviceContent, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPortableDeviceContent_Move(self: *const T, pObjectIDs: ?*IPortableDevicePropVariantCollection, pszDestinationFolderObjectID: ?[*:0]const u16, ppResults: ?*?*IPortableDevicePropVariantCollection) HRESULT { return @as(*const IPortableDeviceContent.VTable, @ptrCast(self.vtable)).Move(@as(*const IPortableDeviceContent, @ptrCast(self)), pObjectIDs, pszDestinationFolderObjectID, ppResults); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPortableDeviceContent_Copy(self: *const T, pObjectIDs: ?*IPortableDevicePropVariantCollection, pszDestinationFolderObjectID: ?[*:0]const u16, ppResults: ?*?*IPortableDevicePropVariantCollection) HRESULT { return @as(*const IPortableDeviceContent.VTable, @ptrCast(self.vtable)).Copy(@as(*const IPortableDeviceContent, @ptrCast(self)), pObjectIDs, pszDestinationFolderObjectID, ppResults); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows6.1' const IID_IPortableDeviceContent2_Value = Guid.initString("9b4add96-f6bf-4034-8708-eca72bf10554"); pub const IID_IPortableDeviceContent2 = &IID_IPortableDeviceContent2_Value; pub const IPortableDeviceContent2 = extern struct { pub const VTable = extern struct { base: IPortableDeviceContent.VTable, UpdateObjectWithPropertiesAndData: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IPortableDeviceContent2, pszObjectID: ?[*:0]const u16, pProperties: ?*IPortableDeviceValues, ppData: ?*?*IStream, pdwOptimalWriteBufferSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IPortableDeviceContent2, pszObjectID: ?[*:0]const u16, pProperties: ?*IPortableDeviceValues, ppData: ?*?*IStream, pdwOptimalWriteBufferSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IPortableDeviceContent.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPortableDeviceContent2_UpdateObjectWithPropertiesAndData(self: *const T, pszObjectID: ?[*:0]const u16, pProperties: ?*IPortableDeviceValues, ppData: ?*?*IStream, pdwOptimalWriteBufferSize: ?*u32) HRESULT { return @as(*const IPortableDeviceContent2.VTable, @ptrCast(self.vtable)).UpdateObjectWithPropertiesAndData(@as(*const IPortableDeviceContent2, @ptrCast(self)), pszObjectID, pProperties, ppData, pdwOptimalWriteBufferSize); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IEnumPortableDeviceObjectIDs_Value = Guid.initString("10ece955-cf41-4728-bfa0-41eedf1bbf19"); pub const IID_IEnumPortableDeviceObjectIDs = &IID_IEnumPortableDeviceObjectIDs_Value; pub const IEnumPortableDeviceObjectIDs = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, Next: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IEnumPortableDeviceObjectIDs, cObjects: u32, pObjIDs: [*]?PWSTR, pcFetched: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IEnumPortableDeviceObjectIDs, cObjects: u32, pObjIDs: [*]?PWSTR, pcFetched: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Skip: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IEnumPortableDeviceObjectIDs, cObjects: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IEnumPortableDeviceObjectIDs, cObjects: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Reset: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IEnumPortableDeviceObjectIDs, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IEnumPortableDeviceObjectIDs, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Clone: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IEnumPortableDeviceObjectIDs, ppEnum: ?*?*IEnumPortableDeviceObjectIDs, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IEnumPortableDeviceObjectIDs, ppEnum: ?*?*IEnumPortableDeviceObjectIDs, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Cancel: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IEnumPortableDeviceObjectIDs, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IEnumPortableDeviceObjectIDs, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IEnumPortableDeviceObjectIDs_Next(self: *const T, cObjects: u32, pObjIDs: [*]?PWSTR, pcFetched: ?*u32) HRESULT { return @as(*const IEnumPortableDeviceObjectIDs.VTable, @ptrCast(self.vtable)).Next(@as(*const IEnumPortableDeviceObjectIDs, @ptrCast(self)), cObjects, pObjIDs, pcFetched); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IEnumPortableDeviceObjectIDs_Skip(self: *const T, cObjects: u32) HRESULT { return @as(*const IEnumPortableDeviceObjectIDs.VTable, @ptrCast(self.vtable)).Skip(@as(*const IEnumPortableDeviceObjectIDs, @ptrCast(self)), cObjects); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IEnumPortableDeviceObjectIDs_Reset(self: *const T) HRESULT { return @as(*const IEnumPortableDeviceObjectIDs.VTable, @ptrCast(self.vtable)).Reset(@as(*const IEnumPortableDeviceObjectIDs, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IEnumPortableDeviceObjectIDs_Clone(self: *const T, ppEnum: ?*?*IEnumPortableDeviceObjectIDs) HRESULT { return @as(*const IEnumPortableDeviceObjectIDs.VTable, @ptrCast(self.vtable)).Clone(@as(*const IEnumPortableDeviceObjectIDs, @ptrCast(self)), ppEnum); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IEnumPortableDeviceObjectIDs_Cancel(self: *const T) HRESULT { return @as(*const IEnumPortableDeviceObjectIDs.VTable, @ptrCast(self.vtable)).Cancel(@as(*const IEnumPortableDeviceObjectIDs, @ptrCast(self))); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IPortableDeviceProperties_Value = Guid.initString("7f6d695c-03df-4439-a809-59266beee3a6"); pub const IID_IPortableDeviceProperties = &IID_IPortableDeviceProperties_Value; pub const IPortableDeviceProperties = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, GetSupportedProperties: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IPortableDeviceProperties, pszObjectID: ?[*:0]const u16, ppKeys: ?*?*IPortableDeviceKeyCollection, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IPortableDeviceProperties, pszObjectID: ?[*:0]const u16, ppKeys: ?*?*IPortableDeviceKeyCollection, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetPropertyAttributes: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IPortableDeviceProperties, pszObjectID: ?[*:0]const u16, Key: ?*const PROPERTYKEY, ppAttributes: ?*?*IPortableDeviceValues, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IPortableDeviceProperties, pszObjectID: ?[*:0]const u16, Key: ?*const PROPERTYKEY, ppAttributes: ?*?*IPortableDeviceValues, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetValues: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IPortableDeviceProperties, pszObjectID: ?[*:0]const u16, pKeys: ?*IPortableDeviceKeyCollection, ppValues: ?*?*IPortableDeviceValues, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IPortableDeviceProperties, pszObjectID: ?[*:0]const u16, pKeys: ?*IPortableDeviceKeyCollection, ppValues: ?*?*IPortableDeviceValues, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetValues: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IPortableDeviceProperties, pszObjectID: ?[*:0]const u16, pValues: ?*IPortableDeviceValues, ppResults: ?*?*IPortableDeviceValues, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IPortableDeviceProperties, pszObjectID: ?[*:0]const u16, pValues: ?*IPortableDeviceValues, ppResults: ?*?*IPortableDeviceValues, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Delete: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IPortableDeviceProperties, pszObjectID: ?[*:0]const u16, pKeys: ?*IPortableDeviceKeyCollection, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IPortableDeviceProperties, pszObjectID: ?[*:0]const u16, pKeys: ?*IPortableDeviceKeyCollection, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Cancel: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IPortableDeviceProperties, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IPortableDeviceProperties, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPortableDeviceProperties_GetSupportedProperties(self: *const T, pszObjectID: ?[*:0]const u16, ppKeys: ?*?*IPortableDeviceKeyCollection) HRESULT { return @as(*const IPortableDeviceProperties.VTable, @ptrCast(self.vtable)).GetSupportedProperties(@as(*const IPortableDeviceProperties, @ptrCast(self)), pszObjectID, ppKeys); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPortableDeviceProperties_GetPropertyAttributes(self: *const T, pszObjectID: ?[*:0]const u16, Key: ?*const PROPERTYKEY, ppAttributes: ?*?*IPortableDeviceValues) HRESULT { return @as(*const IPortableDeviceProperties.VTable, @ptrCast(self.vtable)).GetPropertyAttributes(@as(*const IPortableDeviceProperties, @ptrCast(self)), pszObjectID, Key, ppAttributes); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPortableDeviceProperties_GetValues(self: *const T, pszObjectID: ?[*:0]const u16, pKeys: ?*IPortableDeviceKeyCollection, ppValues: ?*?*IPortableDeviceValues) HRESULT { return @as(*const IPortableDeviceProperties.VTable, @ptrCast(self.vtable)).GetValues(@as(*const IPortableDeviceProperties, @ptrCast(self)), pszObjectID, pKeys, ppValues); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPortableDeviceProperties_SetValues(self: *const T, pszObjectID: ?[*:0]const u16, pValues: ?*IPortableDeviceValues, ppResults: ?*?*IPortableDeviceValues) HRESULT { return @as(*const IPortableDeviceProperties.VTable, @ptrCast(self.vtable)).SetValues(@as(*const IPortableDeviceProperties, @ptrCast(self)), pszObjectID, pValues, ppResults); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPortableDeviceProperties_Delete(self: *const T, pszObjectID: ?[*:0]const u16, pKeys: ?*IPortableDeviceKeyCollection) HRESULT { return @as(*const IPortableDeviceProperties.VTable, @ptrCast(self.vtable)).Delete(@as(*const IPortableDeviceProperties, @ptrCast(self)), pszObjectID, pKeys); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPortableDeviceProperties_Cancel(self: *const T) HRESULT { return @as(*const IPortableDeviceProperties.VTable, @ptrCast(self.vtable)).Cancel(@as(*const IPortableDeviceProperties, @ptrCast(self))); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IPortableDeviceResources_Value = Guid.initString("fd8878ac-d841-4d17-891c-e6829cdb6934"); pub const IID_IPortableDeviceResources = &IID_IPortableDeviceResources_Value; pub const IPortableDeviceResources = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, GetSupportedResources: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IPortableDeviceResources, pszObjectID: ?[*:0]const u16, ppKeys: ?*?*IPortableDeviceKeyCollection, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IPortableDeviceResources, pszObjectID: ?[*:0]const u16, ppKeys: ?*?*IPortableDeviceKeyCollection, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetResourceAttributes: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IPortableDeviceResources, pszObjectID: ?[*:0]const u16, Key: ?*const PROPERTYKEY, ppResourceAttributes: ?*?*IPortableDeviceValues, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IPortableDeviceResources, pszObjectID: ?[*:0]const u16, Key: ?*const PROPERTYKEY, ppResourceAttributes: ?*?*IPortableDeviceValues, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetStream: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IPortableDeviceResources, pszObjectID: ?[*:0]const u16, Key: ?*const PROPERTYKEY, dwMode: u32, pdwOptimalBufferSize: ?*u32, ppStream: ?*?*IStream, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IPortableDeviceResources, pszObjectID: ?[*:0]const u16, Key: ?*const PROPERTYKEY, dwMode: u32, pdwOptimalBufferSize: ?*u32, ppStream: ?*?*IStream, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Delete: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IPortableDeviceResources, pszObjectID: ?[*:0]const u16, pKeys: ?*IPortableDeviceKeyCollection, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IPortableDeviceResources, pszObjectID: ?[*:0]const u16, pKeys: ?*IPortableDeviceKeyCollection, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Cancel: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IPortableDeviceResources, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IPortableDeviceResources, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, CreateResource: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IPortableDeviceResources, pResourceAttributes: ?*IPortableDeviceValues, ppData: ?*?*IStream, pdwOptimalWriteBufferSize: ?*u32, ppszCookie: ?*?PWSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IPortableDeviceResources, pResourceAttributes: ?*IPortableDeviceValues, ppData: ?*?*IStream, pdwOptimalWriteBufferSize: ?*u32, ppszCookie: ?*?PWSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPortableDeviceResources_GetSupportedResources(self: *const T, pszObjectID: ?[*:0]const u16, ppKeys: ?*?*IPortableDeviceKeyCollection) HRESULT { return @as(*const IPortableDeviceResources.VTable, @ptrCast(self.vtable)).GetSupportedResources(@as(*const IPortableDeviceResources, @ptrCast(self)), pszObjectID, ppKeys); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPortableDeviceResources_GetResourceAttributes(self: *const T, pszObjectID: ?[*:0]const u16, Key: ?*const PROPERTYKEY, ppResourceAttributes: ?*?*IPortableDeviceValues) HRESULT { return @as(*const IPortableDeviceResources.VTable, @ptrCast(self.vtable)).GetResourceAttributes(@as(*const IPortableDeviceResources, @ptrCast(self)), pszObjectID, Key, ppResourceAttributes); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPortableDeviceResources_GetStream(self: *const T, pszObjectID: ?[*:0]const u16, Key: ?*const PROPERTYKEY, dwMode: u32, pdwOptimalBufferSize: ?*u32, ppStream: ?*?*IStream) HRESULT { return @as(*const IPortableDeviceResources.VTable, @ptrCast(self.vtable)).GetStream(@as(*const IPortableDeviceResources, @ptrCast(self)), pszObjectID, Key, dwMode, pdwOptimalBufferSize, ppStream); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPortableDeviceResources_Delete(self: *const T, pszObjectID: ?[*:0]const u16, pKeys: ?*IPortableDeviceKeyCollection) HRESULT { return @as(*const IPortableDeviceResources.VTable, @ptrCast(self.vtable)).Delete(@as(*const IPortableDeviceResources, @ptrCast(self)), pszObjectID, pKeys); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPortableDeviceResources_Cancel(self: *const T) HRESULT { return @as(*const IPortableDeviceResources.VTable, @ptrCast(self.vtable)).Cancel(@as(*const IPortableDeviceResources, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPortableDeviceResources_CreateResource(self: *const T, pResourceAttributes: ?*IPortableDeviceValues, ppData: ?*?*IStream, pdwOptimalWriteBufferSize: ?*u32, ppszCookie: ?*?PWSTR) HRESULT { return @as(*const IPortableDeviceResources.VTable, @ptrCast(self.vtable)).CreateResource(@as(*const IPortableDeviceResources, @ptrCast(self)), pResourceAttributes, ppData, pdwOptimalWriteBufferSize, ppszCookie); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IPortableDeviceCapabilities_Value = Guid.initString("2c8c6dbf-e3dc-4061-becc-8542e810d126"); pub const IID_IPortableDeviceCapabilities = &IID_IPortableDeviceCapabilities_Value; pub const IPortableDeviceCapabilities = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, GetSupportedCommands: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IPortableDeviceCapabilities, ppCommands: ?*?*IPortableDeviceKeyCollection, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IPortableDeviceCapabilities, ppCommands: ?*?*IPortableDeviceKeyCollection, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetCommandOptions: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IPortableDeviceCapabilities, Command: ?*const PROPERTYKEY, ppOptions: ?*?*IPortableDeviceValues, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IPortableDeviceCapabilities, Command: ?*const PROPERTYKEY, ppOptions: ?*?*IPortableDeviceValues, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetFunctionalCategories: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IPortableDeviceCapabilities, ppCategories: ?*?*IPortableDevicePropVariantCollection, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IPortableDeviceCapabilities, ppCategories: ?*?*IPortableDevicePropVariantCollection, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetFunctionalObjects: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IPortableDeviceCapabilities, Category: ?*const Guid, ppObjectIDs: ?*?*IPortableDevicePropVariantCollection, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IPortableDeviceCapabilities, Category: ?*const Guid, ppObjectIDs: ?*?*IPortableDevicePropVariantCollection, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetSupportedContentTypes: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IPortableDeviceCapabilities, Category: ?*const Guid, ppContentTypes: ?*?*IPortableDevicePropVariantCollection, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IPortableDeviceCapabilities, Category: ?*const Guid, ppContentTypes: ?*?*IPortableDevicePropVariantCollection, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetSupportedFormats: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IPortableDeviceCapabilities, ContentType: ?*const Guid, ppFormats: ?*?*IPortableDevicePropVariantCollection, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IPortableDeviceCapabilities, ContentType: ?*const Guid, ppFormats: ?*?*IPortableDevicePropVariantCollection, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetSupportedFormatProperties: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IPortableDeviceCapabilities, Format: ?*const Guid, ppKeys: ?*?*IPortableDeviceKeyCollection, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IPortableDeviceCapabilities, Format: ?*const Guid, ppKeys: ?*?*IPortableDeviceKeyCollection, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetFixedPropertyAttributes: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IPortableDeviceCapabilities, Format: ?*const Guid, Key: ?*const PROPERTYKEY, ppAttributes: ?*?*IPortableDeviceValues, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IPortableDeviceCapabilities, Format: ?*const Guid, Key: ?*const PROPERTYKEY, ppAttributes: ?*?*IPortableDeviceValues, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Cancel: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IPortableDeviceCapabilities, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IPortableDeviceCapabilities, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetSupportedEvents: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IPortableDeviceCapabilities, ppEvents: ?*?*IPortableDevicePropVariantCollection, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IPortableDeviceCapabilities, ppEvents: ?*?*IPortableDevicePropVariantCollection, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetEventOptions: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IPortableDeviceCapabilities, Event: ?*const Guid, ppOptions: ?*?*IPortableDeviceValues, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IPortableDeviceCapabilities, Event: ?*const Guid, ppOptions: ?*?*IPortableDeviceValues, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPortableDeviceCapabilities_GetSupportedCommands(self: *const T, ppCommands: ?*?*IPortableDeviceKeyCollection) HRESULT { return @as(*const IPortableDeviceCapabilities.VTable, @ptrCast(self.vtable)).GetSupportedCommands(@as(*const IPortableDeviceCapabilities, @ptrCast(self)), ppCommands); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPortableDeviceCapabilities_GetCommandOptions(self: *const T, Command: ?*const PROPERTYKEY, ppOptions: ?*?*IPortableDeviceValues) HRESULT { return @as(*const IPortableDeviceCapabilities.VTable, @ptrCast(self.vtable)).GetCommandOptions(@as(*const IPortableDeviceCapabilities, @ptrCast(self)), Command, ppOptions); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPortableDeviceCapabilities_GetFunctionalCategories(self: *const T, ppCategories: ?*?*IPortableDevicePropVariantCollection) HRESULT { return @as(*const IPortableDeviceCapabilities.VTable, @ptrCast(self.vtable)).GetFunctionalCategories(@as(*const IPortableDeviceCapabilities, @ptrCast(self)), ppCategories); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPortableDeviceCapabilities_GetFunctionalObjects(self: *const T, Category: ?*const Guid, ppObjectIDs: ?*?*IPortableDevicePropVariantCollection) HRESULT { return @as(*const IPortableDeviceCapabilities.VTable, @ptrCast(self.vtable)).GetFunctionalObjects(@as(*const IPortableDeviceCapabilities, @ptrCast(self)), Category, ppObjectIDs); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPortableDeviceCapabilities_GetSupportedContentTypes(self: *const T, Category: ?*const Guid, ppContentTypes: ?*?*IPortableDevicePropVariantCollection) HRESULT { return @as(*const IPortableDeviceCapabilities.VTable, @ptrCast(self.vtable)).GetSupportedContentTypes(@as(*const IPortableDeviceCapabilities, @ptrCast(self)), Category, ppContentTypes); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPortableDeviceCapabilities_GetSupportedFormats(self: *const T, ContentType: ?*const Guid, ppFormats: ?*?*IPortableDevicePropVariantCollection) HRESULT { return @as(*const IPortableDeviceCapabilities.VTable, @ptrCast(self.vtable)).GetSupportedFormats(@as(*const IPortableDeviceCapabilities, @ptrCast(self)), ContentType, ppFormats); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPortableDeviceCapabilities_GetSupportedFormatProperties(self: *const T, Format: ?*const Guid, ppKeys: ?*?*IPortableDeviceKeyCollection) HRESULT { return @as(*const IPortableDeviceCapabilities.VTable, @ptrCast(self.vtable)).GetSupportedFormatProperties(@as(*const IPortableDeviceCapabilities, @ptrCast(self)), Format, ppKeys); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPortableDeviceCapabilities_GetFixedPropertyAttributes(self: *const T, Format: ?*const Guid, Key: ?*const PROPERTYKEY, ppAttributes: ?*?*IPortableDeviceValues) HRESULT { return @as(*const IPortableDeviceCapabilities.VTable, @ptrCast(self.vtable)).GetFixedPropertyAttributes(@as(*const IPortableDeviceCapabilities, @ptrCast(self)), Format, Key, ppAttributes); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPortableDeviceCapabilities_Cancel(self: *const T) HRESULT { return @as(*const IPortableDeviceCapabilities.VTable, @ptrCast(self.vtable)).Cancel(@as(*const IPortableDeviceCapabilities, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPortableDeviceCapabilities_GetSupportedEvents(self: *const T, ppEvents: ?*?*IPortableDevicePropVariantCollection) HRESULT { return @as(*const IPortableDeviceCapabilities.VTable, @ptrCast(self.vtable)).GetSupportedEvents(@as(*const IPortableDeviceCapabilities, @ptrCast(self)), ppEvents); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPortableDeviceCapabilities_GetEventOptions(self: *const T, Event: ?*const Guid, ppOptions: ?*?*IPortableDeviceValues) HRESULT { return @as(*const IPortableDeviceCapabilities.VTable, @ptrCast(self.vtable)).GetEventOptions(@as(*const IPortableDeviceCapabilities, @ptrCast(self)), Event, ppOptions); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IPortableDeviceEventCallback_Value = Guid.initString("a8792a31-f385-493c-a893-40f64eb45f6e"); pub const IID_IPortableDeviceEventCallback = &IID_IPortableDeviceEventCallback_Value; pub const IPortableDeviceEventCallback = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, OnEvent: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IPortableDeviceEventCallback, pEventParameters: ?*IPortableDeviceValues, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IPortableDeviceEventCallback, pEventParameters: ?*IPortableDeviceValues, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPortableDeviceEventCallback_OnEvent(self: *const T, pEventParameters: ?*IPortableDeviceValues) HRESULT { return @as(*const IPortableDeviceEventCallback.VTable, @ptrCast(self.vtable)).OnEvent(@as(*const IPortableDeviceEventCallback, @ptrCast(self)), pEventParameters); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IPortableDeviceDataStream_Value = Guid.initString("88e04db3-1012-4d64-9996-f703a950d3f4"); pub const IID_IPortableDeviceDataStream = &IID_IPortableDeviceDataStream_Value; pub const IPortableDeviceDataStream = extern struct { pub const VTable = extern struct { base: IStream.VTable, GetObjectID: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IPortableDeviceDataStream, ppszObjectID: ?*?PWSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IPortableDeviceDataStream, ppszObjectID: ?*?PWSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Cancel: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IPortableDeviceDataStream, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IPortableDeviceDataStream, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IStream.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPortableDeviceDataStream_GetObjectID(self: *const T, ppszObjectID: ?*?PWSTR) HRESULT { return @as(*const IPortableDeviceDataStream.VTable, @ptrCast(self.vtable)).GetObjectID(@as(*const IPortableDeviceDataStream, @ptrCast(self)), ppszObjectID); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPortableDeviceDataStream_Cancel(self: *const T) HRESULT { return @as(*const IPortableDeviceDataStream.VTable, @ptrCast(self.vtable)).Cancel(@as(*const IPortableDeviceDataStream, @ptrCast(self))); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows8.0' const IID_IPortableDeviceUnitsStream_Value = Guid.initString("5e98025f-bfc4-47a2-9a5f-bc900a507c67"); pub const IID_IPortableDeviceUnitsStream = &IID_IPortableDeviceUnitsStream_Value; pub const IPortableDeviceUnitsStream = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, SeekInUnits: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IPortableDeviceUnitsStream, dlibMove: LARGE_INTEGER, units: WPD_STREAM_UNITS, dwOrigin: u32, plibNewPosition: ?*ULARGE_INTEGER, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IPortableDeviceUnitsStream, dlibMove: LARGE_INTEGER, units: WPD_STREAM_UNITS, dwOrigin: u32, plibNewPosition: ?*ULARGE_INTEGER, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Cancel: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IPortableDeviceUnitsStream, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IPortableDeviceUnitsStream, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPortableDeviceUnitsStream_SeekInUnits(self: *const T, dlibMove: LARGE_INTEGER, units: WPD_STREAM_UNITS, dwOrigin: u32, plibNewPosition: ?*ULARGE_INTEGER) HRESULT { return @as(*const IPortableDeviceUnitsStream.VTable, @ptrCast(self.vtable)).SeekInUnits(@as(*const IPortableDeviceUnitsStream, @ptrCast(self)), dlibMove, units, dwOrigin, plibNewPosition); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPortableDeviceUnitsStream_Cancel(self: *const T) HRESULT { return @as(*const IPortableDeviceUnitsStream.VTable, @ptrCast(self.vtable)).Cancel(@as(*const IPortableDeviceUnitsStream, @ptrCast(self))); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IPortableDevicePropertiesBulk_Value = Guid.initString("482b05c0-4056-44ed-9e0f-5e23b009da93"); pub const IID_IPortableDevicePropertiesBulk = &IID_IPortableDevicePropertiesBulk_Value; pub const IPortableDevicePropertiesBulk = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, QueueGetValuesByObjectList: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IPortableDevicePropertiesBulk, pObjectIDs: ?*IPortableDevicePropVariantCollection, pKeys: ?*IPortableDeviceKeyCollection, pCallback: ?*IPortableDevicePropertiesBulkCallback, pContext: ?*Guid, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IPortableDevicePropertiesBulk, pObjectIDs: ?*IPortableDevicePropVariantCollection, pKeys: ?*IPortableDeviceKeyCollection, pCallback: ?*IPortableDevicePropertiesBulkCallback, pContext: ?*Guid, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, QueueGetValuesByObjectFormat: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IPortableDevicePropertiesBulk, pguidObjectFormat: ?*const Guid, pszParentObjectID: ?[*:0]const u16, dwDepth: u32, pKeys: ?*IPortableDeviceKeyCollection, pCallback: ?*IPortableDevicePropertiesBulkCallback, pContext: ?*Guid, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IPortableDevicePropertiesBulk, pguidObjectFormat: ?*const Guid, pszParentObjectID: ?[*:0]const u16, dwDepth: u32, pKeys: ?*IPortableDeviceKeyCollection, pCallback: ?*IPortableDevicePropertiesBulkCallback, pContext: ?*Guid, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, QueueSetValuesByObjectList: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IPortableDevicePropertiesBulk, pObjectValues: ?*IPortableDeviceValuesCollection, pCallback: ?*IPortableDevicePropertiesBulkCallback, pContext: ?*Guid, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IPortableDevicePropertiesBulk, pObjectValues: ?*IPortableDeviceValuesCollection, pCallback: ?*IPortableDevicePropertiesBulkCallback, pContext: ?*Guid, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Start: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IPortableDevicePropertiesBulk, pContext: ?*const Guid, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IPortableDevicePropertiesBulk, pContext: ?*const Guid, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Cancel: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IPortableDevicePropertiesBulk, pContext: ?*const Guid, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IPortableDevicePropertiesBulk, pContext: ?*const Guid, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPortableDevicePropertiesBulk_QueueGetValuesByObjectList(self: *const T, pObjectIDs: ?*IPortableDevicePropVariantCollection, pKeys: ?*IPortableDeviceKeyCollection, pCallback: ?*IPortableDevicePropertiesBulkCallback, pContext: ?*Guid) HRESULT { return @as(*const IPortableDevicePropertiesBulk.VTable, @ptrCast(self.vtable)).QueueGetValuesByObjectList(@as(*const IPortableDevicePropertiesBulk, @ptrCast(self)), pObjectIDs, pKeys, pCallback, pContext); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPortableDevicePropertiesBulk_QueueGetValuesByObjectFormat(self: *const T, pguidObjectFormat: ?*const Guid, pszParentObjectID: ?[*:0]const u16, dwDepth: u32, pKeys: ?*IPortableDeviceKeyCollection, pCallback: ?*IPortableDevicePropertiesBulkCallback, pContext: ?*Guid) HRESULT { return @as(*const IPortableDevicePropertiesBulk.VTable, @ptrCast(self.vtable)).QueueGetValuesByObjectFormat(@as(*const IPortableDevicePropertiesBulk, @ptrCast(self)), pguidObjectFormat, pszParentObjectID, dwDepth, pKeys, pCallback, pContext); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPortableDevicePropertiesBulk_QueueSetValuesByObjectList(self: *const T, pObjectValues: ?*IPortableDeviceValuesCollection, pCallback: ?*IPortableDevicePropertiesBulkCallback, pContext: ?*Guid) HRESULT { return @as(*const IPortableDevicePropertiesBulk.VTable, @ptrCast(self.vtable)).QueueSetValuesByObjectList(@as(*const IPortableDevicePropertiesBulk, @ptrCast(self)), pObjectValues, pCallback, pContext); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPortableDevicePropertiesBulk_Start(self: *const T, pContext: ?*const Guid) HRESULT { return @as(*const IPortableDevicePropertiesBulk.VTable, @ptrCast(self.vtable)).Start(@as(*const IPortableDevicePropertiesBulk, @ptrCast(self)), pContext); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPortableDevicePropertiesBulk_Cancel(self: *const T, pContext: ?*const Guid) HRESULT { return @as(*const IPortableDevicePropertiesBulk.VTable, @ptrCast(self.vtable)).Cancel(@as(*const IPortableDevicePropertiesBulk, @ptrCast(self)), pContext); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IPortableDevicePropertiesBulkCallback_Value = Guid.initString("9deacb80-11e8-40e3-a9f3-f557986a7845"); pub const IID_IPortableDevicePropertiesBulkCallback = &IID_IPortableDevicePropertiesBulkCallback_Value; pub const IPortableDevicePropertiesBulkCallback = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, OnStart: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IPortableDevicePropertiesBulkCallback, pContext: ?*const Guid, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IPortableDevicePropertiesBulkCallback, pContext: ?*const Guid, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, OnProgress: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IPortableDevicePropertiesBulkCallback, pContext: ?*const Guid, pResults: ?*IPortableDeviceValuesCollection, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IPortableDevicePropertiesBulkCallback, pContext: ?*const Guid, pResults: ?*IPortableDeviceValuesCollection, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, OnEnd: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IPortableDevicePropertiesBulkCallback, pContext: ?*const Guid, hrStatus: HRESULT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IPortableDevicePropertiesBulkCallback, pContext: ?*const Guid, hrStatus: HRESULT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPortableDevicePropertiesBulkCallback_OnStart(self: *const T, pContext: ?*const Guid) HRESULT { return @as(*const IPortableDevicePropertiesBulkCallback.VTable, @ptrCast(self.vtable)).OnStart(@as(*const IPortableDevicePropertiesBulkCallback, @ptrCast(self)), pContext); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPortableDevicePropertiesBulkCallback_OnProgress(self: *const T, pContext: ?*const Guid, pResults: ?*IPortableDeviceValuesCollection) HRESULT { return @as(*const IPortableDevicePropertiesBulkCallback.VTable, @ptrCast(self.vtable)).OnProgress(@as(*const IPortableDevicePropertiesBulkCallback, @ptrCast(self)), pContext, pResults); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPortableDevicePropertiesBulkCallback_OnEnd(self: *const T, pContext: ?*const Guid, hrStatus: HRESULT) HRESULT { return @as(*const IPortableDevicePropertiesBulkCallback.VTable, @ptrCast(self.vtable)).OnEnd(@as(*const IPortableDevicePropertiesBulkCallback, @ptrCast(self)), pContext, hrStatus); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows6.1' const IID_IPortableDeviceServiceManager_Value = Guid.initString("a8abc4e9-a84a-47a9-80b3-c5d9b172a961"); pub const IID_IPortableDeviceServiceManager = &IID_IPortableDeviceServiceManager_Value; pub const IPortableDeviceServiceManager = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, GetDeviceServices: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IPortableDeviceServiceManager, pszPnPDeviceID: ?[*:0]const u16, guidServiceCategory: ?*const Guid, pServices: ?*?PWSTR, pcServices: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IPortableDeviceServiceManager, pszPnPDeviceID: ?[*:0]const u16, guidServiceCategory: ?*const Guid, pServices: ?*?PWSTR, pcServices: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetDeviceForService: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IPortableDeviceServiceManager, pszPnPServiceID: ?[*:0]const u16, ppszPnPDeviceID: ?*?PWSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IPortableDeviceServiceManager, pszPnPServiceID: ?[*:0]const u16, ppszPnPDeviceID: ?*?PWSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPortableDeviceServiceManager_GetDeviceServices(self: *const T, pszPnPDeviceID: ?[*:0]const u16, guidServiceCategory: ?*const Guid, pServices: ?*?PWSTR, pcServices: ?*u32) HRESULT { return @as(*const IPortableDeviceServiceManager.VTable, @ptrCast(self.vtable)).GetDeviceServices(@as(*const IPortableDeviceServiceManager, @ptrCast(self)), pszPnPDeviceID, guidServiceCategory, pServices, pcServices); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPortableDeviceServiceManager_GetDeviceForService(self: *const T, pszPnPServiceID: ?[*:0]const u16, ppszPnPDeviceID: ?*?PWSTR) HRESULT { return @as(*const IPortableDeviceServiceManager.VTable, @ptrCast(self.vtable)).GetDeviceForService(@as(*const IPortableDeviceServiceManager, @ptrCast(self)), pszPnPServiceID, ppszPnPDeviceID); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows6.1' const IID_IPortableDeviceService_Value = Guid.initString("d3bd3a44-d7b5-40a9-98b7-2fa4d01dec08"); pub const IID_IPortableDeviceService = &IID_IPortableDeviceService_Value; pub const IPortableDeviceService = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, Open: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IPortableDeviceService, pszPnPServiceID: ?[*:0]const u16, pClientInfo: ?*IPortableDeviceValues, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IPortableDeviceService, pszPnPServiceID: ?[*:0]const u16, pClientInfo: ?*IPortableDeviceValues, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Capabilities: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IPortableDeviceService, ppCapabilities: ?*?*IPortableDeviceServiceCapabilities, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IPortableDeviceService, ppCapabilities: ?*?*IPortableDeviceServiceCapabilities, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Content: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IPortableDeviceService, ppContent: ?*?*IPortableDeviceContent2, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IPortableDeviceService, ppContent: ?*?*IPortableDeviceContent2, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Methods: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IPortableDeviceService, ppMethods: ?*?*IPortableDeviceServiceMethods, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IPortableDeviceService, ppMethods: ?*?*IPortableDeviceServiceMethods, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Cancel: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IPortableDeviceService, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IPortableDeviceService, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Close: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IPortableDeviceService, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IPortableDeviceService, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetServiceObjectID: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IPortableDeviceService, ppszServiceObjectID: ?*?PWSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IPortableDeviceService, ppszServiceObjectID: ?*?PWSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetPnPServiceID: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IPortableDeviceService, ppszPnPServiceID: ?*?PWSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IPortableDeviceService, ppszPnPServiceID: ?*?PWSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Advise: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IPortableDeviceService, dwFlags: u32, pCallback: ?*IPortableDeviceEventCallback, pParameters: ?*IPortableDeviceValues, ppszCookie: ?*?PWSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IPortableDeviceService, dwFlags: u32, pCallback: ?*IPortableDeviceEventCallback, pParameters: ?*IPortableDeviceValues, ppszCookie: ?*?PWSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Unadvise: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IPortableDeviceService, pszCookie: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IPortableDeviceService, pszCookie: ?[*:0]const u16, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SendCommand: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IPortableDeviceService, dwFlags: u32, pParameters: ?*IPortableDeviceValues, ppResults: ?*?*IPortableDeviceValues, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IPortableDeviceService, dwFlags: u32, pParameters: ?*IPortableDeviceValues, ppResults: ?*?*IPortableDeviceValues, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPortableDeviceService_Open(self: *const T, pszPnPServiceID: ?[*:0]const u16, pClientInfo: ?*IPortableDeviceValues) HRESULT { return @as(*const IPortableDeviceService.VTable, @ptrCast(self.vtable)).Open(@as(*const IPortableDeviceService, @ptrCast(self)), pszPnPServiceID, pClientInfo); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPortableDeviceService_Capabilities(self: *const T, ppCapabilities: ?*?*IPortableDeviceServiceCapabilities) HRESULT { return @as(*const IPortableDeviceService.VTable, @ptrCast(self.vtable)).Capabilities(@as(*const IPortableDeviceService, @ptrCast(self)), ppCapabilities); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPortableDeviceService_Content(self: *const T, ppContent: ?*?*IPortableDeviceContent2) HRESULT { return @as(*const IPortableDeviceService.VTable, @ptrCast(self.vtable)).Content(@as(*const IPortableDeviceService, @ptrCast(self)), ppContent); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPortableDeviceService_Methods(self: *const T, ppMethods: ?*?*IPortableDeviceServiceMethods) HRESULT { return @as(*const IPortableDeviceService.VTable, @ptrCast(self.vtable)).Methods(@as(*const IPortableDeviceService, @ptrCast(self)), ppMethods); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPortableDeviceService_Cancel(self: *const T) HRESULT { return @as(*const IPortableDeviceService.VTable, @ptrCast(self.vtable)).Cancel(@as(*const IPortableDeviceService, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPortableDeviceService_Close(self: *const T) HRESULT { return @as(*const IPortableDeviceService.VTable, @ptrCast(self.vtable)).Close(@as(*const IPortableDeviceService, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPortableDeviceService_GetServiceObjectID(self: *const T, ppszServiceObjectID: ?*?PWSTR) HRESULT { return @as(*const IPortableDeviceService.VTable, @ptrCast(self.vtable)).GetServiceObjectID(@as(*const IPortableDeviceService, @ptrCast(self)), ppszServiceObjectID); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPortableDeviceService_GetPnPServiceID(self: *const T, ppszPnPServiceID: ?*?PWSTR) HRESULT { return @as(*const IPortableDeviceService.VTable, @ptrCast(self.vtable)).GetPnPServiceID(@as(*const IPortableDeviceService, @ptrCast(self)), ppszPnPServiceID); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPortableDeviceService_Advise(self: *const T, dwFlags: u32, pCallback: ?*IPortableDeviceEventCallback, pParameters: ?*IPortableDeviceValues, ppszCookie: ?*?PWSTR) HRESULT { return @as(*const IPortableDeviceService.VTable, @ptrCast(self.vtable)).Advise(@as(*const IPortableDeviceService, @ptrCast(self)), dwFlags, pCallback, pParameters, ppszCookie); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPortableDeviceService_Unadvise(self: *const T, pszCookie: ?[*:0]const u16) HRESULT { return @as(*const IPortableDeviceService.VTable, @ptrCast(self.vtable)).Unadvise(@as(*const IPortableDeviceService, @ptrCast(self)), pszCookie); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPortableDeviceService_SendCommand(self: *const T, dwFlags: u32, pParameters: ?*IPortableDeviceValues, ppResults: ?*?*IPortableDeviceValues) HRESULT { return @as(*const IPortableDeviceService.VTable, @ptrCast(self.vtable)).SendCommand(@as(*const IPortableDeviceService, @ptrCast(self)), dwFlags, pParameters, ppResults); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows6.1' const IID_IPortableDeviceServiceCapabilities_Value = Guid.initString("24dbd89d-413e-43e0-bd5b-197f3c56c886"); pub const IID_IPortableDeviceServiceCapabilities = &IID_IPortableDeviceServiceCapabilities_Value; pub const IPortableDeviceServiceCapabilities = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, GetSupportedMethods: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IPortableDeviceServiceCapabilities, ppMethods: ?*?*IPortableDevicePropVariantCollection, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IPortableDeviceServiceCapabilities, ppMethods: ?*?*IPortableDevicePropVariantCollection, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetSupportedMethodsByFormat: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IPortableDeviceServiceCapabilities, Format: ?*const Guid, ppMethods: ?*?*IPortableDevicePropVariantCollection, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IPortableDeviceServiceCapabilities, Format: ?*const Guid, ppMethods: ?*?*IPortableDevicePropVariantCollection, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetMethodAttributes: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IPortableDeviceServiceCapabilities, Method: ?*const Guid, ppAttributes: ?*?*IPortableDeviceValues, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IPortableDeviceServiceCapabilities, Method: ?*const Guid, ppAttributes: ?*?*IPortableDeviceValues, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetMethodParameterAttributes: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IPortableDeviceServiceCapabilities, Method: ?*const Guid, Parameter: ?*const PROPERTYKEY, ppAttributes: ?*?*IPortableDeviceValues, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IPortableDeviceServiceCapabilities, Method: ?*const Guid, Parameter: ?*const PROPERTYKEY, ppAttributes: ?*?*IPortableDeviceValues, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetSupportedFormats: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IPortableDeviceServiceCapabilities, ppFormats: ?*?*IPortableDevicePropVariantCollection, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IPortableDeviceServiceCapabilities, ppFormats: ?*?*IPortableDevicePropVariantCollection, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetFormatAttributes: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IPortableDeviceServiceCapabilities, Format: ?*const Guid, ppAttributes: ?*?*IPortableDeviceValues, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IPortableDeviceServiceCapabilities, Format: ?*const Guid, ppAttributes: ?*?*IPortableDeviceValues, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetSupportedFormatProperties: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IPortableDeviceServiceCapabilities, Format: ?*const Guid, ppKeys: ?*?*IPortableDeviceKeyCollection, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IPortableDeviceServiceCapabilities, Format: ?*const Guid, ppKeys: ?*?*IPortableDeviceKeyCollection, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetFormatPropertyAttributes: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IPortableDeviceServiceCapabilities, Format: ?*const Guid, Property: ?*const PROPERTYKEY, ppAttributes: ?*?*IPortableDeviceValues, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IPortableDeviceServiceCapabilities, Format: ?*const Guid, Property: ?*const PROPERTYKEY, ppAttributes: ?*?*IPortableDeviceValues, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetSupportedEvents: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IPortableDeviceServiceCapabilities, ppEvents: ?*?*IPortableDevicePropVariantCollection, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IPortableDeviceServiceCapabilities, ppEvents: ?*?*IPortableDevicePropVariantCollection, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetEventAttributes: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IPortableDeviceServiceCapabilities, Event: ?*const Guid, ppAttributes: ?*?*IPortableDeviceValues, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IPortableDeviceServiceCapabilities, Event: ?*const Guid, ppAttributes: ?*?*IPortableDeviceValues, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetEventParameterAttributes: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IPortableDeviceServiceCapabilities, Event: ?*const Guid, Parameter: ?*const PROPERTYKEY, ppAttributes: ?*?*IPortableDeviceValues, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IPortableDeviceServiceCapabilities, Event: ?*const Guid, Parameter: ?*const PROPERTYKEY, ppAttributes: ?*?*IPortableDeviceValues, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetInheritedServices: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IPortableDeviceServiceCapabilities, dwInheritanceType: u32, ppServices: ?*?*IPortableDevicePropVariantCollection, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IPortableDeviceServiceCapabilities, dwInheritanceType: u32, ppServices: ?*?*IPortableDevicePropVariantCollection, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetFormatRenderingProfiles: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IPortableDeviceServiceCapabilities, Format: ?*const Guid, ppRenderingProfiles: ?*?*IPortableDeviceValuesCollection, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IPortableDeviceServiceCapabilities, Format: ?*const Guid, ppRenderingProfiles: ?*?*IPortableDeviceValuesCollection, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetSupportedCommands: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IPortableDeviceServiceCapabilities, ppCommands: ?*?*IPortableDeviceKeyCollection, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IPortableDeviceServiceCapabilities, ppCommands: ?*?*IPortableDeviceKeyCollection, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetCommandOptions: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IPortableDeviceServiceCapabilities, Command: ?*const PROPERTYKEY, ppOptions: ?*?*IPortableDeviceValues, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IPortableDeviceServiceCapabilities, Command: ?*const PROPERTYKEY, ppOptions: ?*?*IPortableDeviceValues, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Cancel: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IPortableDeviceServiceCapabilities, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IPortableDeviceServiceCapabilities, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPortableDeviceServiceCapabilities_GetSupportedMethods(self: *const T, ppMethods: ?*?*IPortableDevicePropVariantCollection) HRESULT { return @as(*const IPortableDeviceServiceCapabilities.VTable, @ptrCast(self.vtable)).GetSupportedMethods(@as(*const IPortableDeviceServiceCapabilities, @ptrCast(self)), ppMethods); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPortableDeviceServiceCapabilities_GetSupportedMethodsByFormat(self: *const T, Format: ?*const Guid, ppMethods: ?*?*IPortableDevicePropVariantCollection) HRESULT { return @as(*const IPortableDeviceServiceCapabilities.VTable, @ptrCast(self.vtable)).GetSupportedMethodsByFormat(@as(*const IPortableDeviceServiceCapabilities, @ptrCast(self)), Format, ppMethods); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPortableDeviceServiceCapabilities_GetMethodAttributes(self: *const T, Method: ?*const Guid, ppAttributes: ?*?*IPortableDeviceValues) HRESULT { return @as(*const IPortableDeviceServiceCapabilities.VTable, @ptrCast(self.vtable)).GetMethodAttributes(@as(*const IPortableDeviceServiceCapabilities, @ptrCast(self)), Method, ppAttributes); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPortableDeviceServiceCapabilities_GetMethodParameterAttributes(self: *const T, Method: ?*const Guid, Parameter: ?*const PROPERTYKEY, ppAttributes: ?*?*IPortableDeviceValues) HRESULT { return @as(*const IPortableDeviceServiceCapabilities.VTable, @ptrCast(self.vtable)).GetMethodParameterAttributes(@as(*const IPortableDeviceServiceCapabilities, @ptrCast(self)), Method, Parameter, ppAttributes); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPortableDeviceServiceCapabilities_GetSupportedFormats(self: *const T, ppFormats: ?*?*IPortableDevicePropVariantCollection) HRESULT { return @as(*const IPortableDeviceServiceCapabilities.VTable, @ptrCast(self.vtable)).GetSupportedFormats(@as(*const IPortableDeviceServiceCapabilities, @ptrCast(self)), ppFormats); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPortableDeviceServiceCapabilities_GetFormatAttributes(self: *const T, Format: ?*const Guid, ppAttributes: ?*?*IPortableDeviceValues) HRESULT { return @as(*const IPortableDeviceServiceCapabilities.VTable, @ptrCast(self.vtable)).GetFormatAttributes(@as(*const IPortableDeviceServiceCapabilities, @ptrCast(self)), Format, ppAttributes); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPortableDeviceServiceCapabilities_GetSupportedFormatProperties(self: *const T, Format: ?*const Guid, ppKeys: ?*?*IPortableDeviceKeyCollection) HRESULT { return @as(*const IPortableDeviceServiceCapabilities.VTable, @ptrCast(self.vtable)).GetSupportedFormatProperties(@as(*const IPortableDeviceServiceCapabilities, @ptrCast(self)), Format, ppKeys); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPortableDeviceServiceCapabilities_GetFormatPropertyAttributes(self: *const T, Format: ?*const Guid, Property: ?*const PROPERTYKEY, ppAttributes: ?*?*IPortableDeviceValues) HRESULT { return @as(*const IPortableDeviceServiceCapabilities.VTable, @ptrCast(self.vtable)).GetFormatPropertyAttributes(@as(*const IPortableDeviceServiceCapabilities, @ptrCast(self)), Format, Property, ppAttributes); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPortableDeviceServiceCapabilities_GetSupportedEvents(self: *const T, ppEvents: ?*?*IPortableDevicePropVariantCollection) HRESULT { return @as(*const IPortableDeviceServiceCapabilities.VTable, @ptrCast(self.vtable)).GetSupportedEvents(@as(*const IPortableDeviceServiceCapabilities, @ptrCast(self)), ppEvents); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPortableDeviceServiceCapabilities_GetEventAttributes(self: *const T, Event: ?*const Guid, ppAttributes: ?*?*IPortableDeviceValues) HRESULT { return @as(*const IPortableDeviceServiceCapabilities.VTable, @ptrCast(self.vtable)).GetEventAttributes(@as(*const IPortableDeviceServiceCapabilities, @ptrCast(self)), Event, ppAttributes); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPortableDeviceServiceCapabilities_GetEventParameterAttributes(self: *const T, Event: ?*const Guid, Parameter: ?*const PROPERTYKEY, ppAttributes: ?*?*IPortableDeviceValues) HRESULT { return @as(*const IPortableDeviceServiceCapabilities.VTable, @ptrCast(self.vtable)).GetEventParameterAttributes(@as(*const IPortableDeviceServiceCapabilities, @ptrCast(self)), Event, Parameter, ppAttributes); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPortableDeviceServiceCapabilities_GetInheritedServices(self: *const T, dwInheritanceType: u32, ppServices: ?*?*IPortableDevicePropVariantCollection) HRESULT { return @as(*const IPortableDeviceServiceCapabilities.VTable, @ptrCast(self.vtable)).GetInheritedServices(@as(*const IPortableDeviceServiceCapabilities, @ptrCast(self)), dwInheritanceType, ppServices); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPortableDeviceServiceCapabilities_GetFormatRenderingProfiles(self: *const T, Format: ?*const Guid, ppRenderingProfiles: ?*?*IPortableDeviceValuesCollection) HRESULT { return @as(*const IPortableDeviceServiceCapabilities.VTable, @ptrCast(self.vtable)).GetFormatRenderingProfiles(@as(*const IPortableDeviceServiceCapabilities, @ptrCast(self)), Format, ppRenderingProfiles); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPortableDeviceServiceCapabilities_GetSupportedCommands(self: *const T, ppCommands: ?*?*IPortableDeviceKeyCollection) HRESULT { return @as(*const IPortableDeviceServiceCapabilities.VTable, @ptrCast(self.vtable)).GetSupportedCommands(@as(*const IPortableDeviceServiceCapabilities, @ptrCast(self)), ppCommands); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPortableDeviceServiceCapabilities_GetCommandOptions(self: *const T, Command: ?*const PROPERTYKEY, ppOptions: ?*?*IPortableDeviceValues) HRESULT { return @as(*const IPortableDeviceServiceCapabilities.VTable, @ptrCast(self.vtable)).GetCommandOptions(@as(*const IPortableDeviceServiceCapabilities, @ptrCast(self)), Command, ppOptions); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPortableDeviceServiceCapabilities_Cancel(self: *const T) HRESULT { return @as(*const IPortableDeviceServiceCapabilities.VTable, @ptrCast(self.vtable)).Cancel(@as(*const IPortableDeviceServiceCapabilities, @ptrCast(self))); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows6.1' const IID_IPortableDeviceServiceMethods_Value = Guid.initString("e20333c9-fd34-412d-a381-cc6f2d820df7"); pub const IID_IPortableDeviceServiceMethods = &IID_IPortableDeviceServiceMethods_Value; pub const IPortableDeviceServiceMethods = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, Invoke: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IPortableDeviceServiceMethods, Method: ?*const Guid, pParameters: ?*IPortableDeviceValues, ppResults: ?*?*IPortableDeviceValues, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IPortableDeviceServiceMethods, Method: ?*const Guid, pParameters: ?*IPortableDeviceValues, ppResults: ?*?*IPortableDeviceValues, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, InvokeAsync: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IPortableDeviceServiceMethods, Method: ?*const Guid, pParameters: ?*IPortableDeviceValues, pCallback: ?*IPortableDeviceServiceMethodCallback, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IPortableDeviceServiceMethods, Method: ?*const Guid, pParameters: ?*IPortableDeviceValues, pCallback: ?*IPortableDeviceServiceMethodCallback, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Cancel: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IPortableDeviceServiceMethods, pCallback: ?*IPortableDeviceServiceMethodCallback, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IPortableDeviceServiceMethods, pCallback: ?*IPortableDeviceServiceMethodCallback, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPortableDeviceServiceMethods_Invoke(self: *const T, Method: ?*const Guid, pParameters: ?*IPortableDeviceValues, ppResults: ?*?*IPortableDeviceValues) HRESULT { return @as(*const IPortableDeviceServiceMethods.VTable, @ptrCast(self.vtable)).Invoke(@as(*const IPortableDeviceServiceMethods, @ptrCast(self)), Method, pParameters, ppResults); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPortableDeviceServiceMethods_InvokeAsync(self: *const T, Method: ?*const Guid, pParameters: ?*IPortableDeviceValues, pCallback: ?*IPortableDeviceServiceMethodCallback) HRESULT { return @as(*const IPortableDeviceServiceMethods.VTable, @ptrCast(self.vtable)).InvokeAsync(@as(*const IPortableDeviceServiceMethods, @ptrCast(self)), Method, pParameters, pCallback); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPortableDeviceServiceMethods_Cancel(self: *const T, pCallback: ?*IPortableDeviceServiceMethodCallback) HRESULT { return @as(*const IPortableDeviceServiceMethods.VTable, @ptrCast(self.vtable)).Cancel(@as(*const IPortableDeviceServiceMethods, @ptrCast(self)), pCallback); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows6.1' const IID_IPortableDeviceServiceMethodCallback_Value = Guid.initString("c424233c-afce-4828-a756-7ed7a2350083"); pub const IID_IPortableDeviceServiceMethodCallback = &IID_IPortableDeviceServiceMethodCallback_Value; pub const IPortableDeviceServiceMethodCallback = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, OnComplete: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IPortableDeviceServiceMethodCallback, hrStatus: HRESULT, pResults: ?*IPortableDeviceValues, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IPortableDeviceServiceMethodCallback, hrStatus: HRESULT, pResults: ?*IPortableDeviceValues, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPortableDeviceServiceMethodCallback_OnComplete(self: *const T, hrStatus: HRESULT, pResults: ?*IPortableDeviceValues) HRESULT { return @as(*const IPortableDeviceServiceMethodCallback.VTable, @ptrCast(self.vtable)).OnComplete(@as(*const IPortableDeviceServiceMethodCallback, @ptrCast(self)), hrStatus, pResults); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IPortableDeviceServiceActivation_Value = Guid.initString("e56b0534-d9b9-425c-9b99-75f97cb3d7c8"); pub const IID_IPortableDeviceServiceActivation = &IID_IPortableDeviceServiceActivation_Value; pub const IPortableDeviceServiceActivation = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, OpenAsync: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IPortableDeviceServiceActivation, pszPnPServiceID: ?[*:0]const u16, pClientInfo: ?*IPortableDeviceValues, pCallback: ?*IPortableDeviceServiceOpenCallback, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IPortableDeviceServiceActivation, pszPnPServiceID: ?[*:0]const u16, pClientInfo: ?*IPortableDeviceValues, pCallback: ?*IPortableDeviceServiceOpenCallback, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, CancelOpenAsync: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IPortableDeviceServiceActivation, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IPortableDeviceServiceActivation, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPortableDeviceServiceActivation_OpenAsync(self: *const T, pszPnPServiceID: ?[*:0]const u16, pClientInfo: ?*IPortableDeviceValues, pCallback: ?*IPortableDeviceServiceOpenCallback) HRESULT { return @as(*const IPortableDeviceServiceActivation.VTable, @ptrCast(self.vtable)).OpenAsync(@as(*const IPortableDeviceServiceActivation, @ptrCast(self)), pszPnPServiceID, pClientInfo, pCallback); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPortableDeviceServiceActivation_CancelOpenAsync(self: *const T) HRESULT { return @as(*const IPortableDeviceServiceActivation.VTable, @ptrCast(self.vtable)).CancelOpenAsync(@as(*const IPortableDeviceServiceActivation, @ptrCast(self))); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IPortableDeviceServiceOpenCallback_Value = Guid.initString("bced49c8-8efe-41ed-960b-61313abd47a9"); pub const IID_IPortableDeviceServiceOpenCallback = &IID_IPortableDeviceServiceOpenCallback_Value; pub const IPortableDeviceServiceOpenCallback = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, OnComplete: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IPortableDeviceServiceOpenCallback, hrStatus: HRESULT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IPortableDeviceServiceOpenCallback, hrStatus: HRESULT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPortableDeviceServiceOpenCallback_OnComplete(self: *const T, hrStatus: HRESULT) HRESULT { return @as(*const IPortableDeviceServiceOpenCallback.VTable, @ptrCast(self.vtable)).OnComplete(@as(*const IPortableDeviceServiceOpenCallback, @ptrCast(self)), hrStatus); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows6.1' const IID_IPortableDeviceDispatchFactory_Value = Guid.initString("5e1eafc3-e3d7-4132-96fa-759c0f9d1e0f"); pub const IID_IPortableDeviceDispatchFactory = &IID_IPortableDeviceDispatchFactory_Value; pub const IPortableDeviceDispatchFactory = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, GetDeviceDispatch: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IPortableDeviceDispatchFactory, pszPnPDeviceID: ?[*:0]const u16, ppDeviceDispatch: ?*?*IDispatch, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IPortableDeviceDispatchFactory, pszPnPDeviceID: ?[*:0]const u16, ppDeviceDispatch: ?*?*IDispatch, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPortableDeviceDispatchFactory_GetDeviceDispatch(self: *const T, pszPnPDeviceID: ?[*:0]const u16, ppDeviceDispatch: ?*?*IDispatch) HRESULT { return @as(*const IPortableDeviceDispatchFactory.VTable, @ptrCast(self.vtable)).GetDeviceDispatch(@as(*const IPortableDeviceDispatchFactory, @ptrCast(self)), pszPnPDeviceID, ppDeviceDispatch); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows8.0' const IID_IPortableDeviceWebControl_Value = Guid.initString("94fc7953-5ca1-483a-8aee-df52e7747d00"); pub const IID_IPortableDeviceWebControl = &IID_IPortableDeviceWebControl_Value; pub const IPortableDeviceWebControl = extern struct { pub const VTable = extern struct { base: IDispatch.VTable, GetDeviceFromId: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IPortableDeviceWebControl, deviceId: ?BSTR, ppDevice: ?*?*IDispatch, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IPortableDeviceWebControl, deviceId: ?BSTR, ppDevice: ?*?*IDispatch, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetDeviceFromIdAsync: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IPortableDeviceWebControl, deviceId: ?BSTR, pCompletionHandler: ?*IDispatch, pErrorHandler: ?*IDispatch, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IPortableDeviceWebControl, deviceId: ?BSTR, pCompletionHandler: ?*IDispatch, pErrorHandler: ?*IDispatch, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IDispatch.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPortableDeviceWebControl_GetDeviceFromId(self: *const T, deviceId: ?BSTR, ppDevice: ?*?*IDispatch) HRESULT { return @as(*const IPortableDeviceWebControl.VTable, @ptrCast(self.vtable)).GetDeviceFromId(@as(*const IPortableDeviceWebControl, @ptrCast(self)), deviceId, ppDevice); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPortableDeviceWebControl_GetDeviceFromIdAsync(self: *const T, deviceId: ?BSTR, pCompletionHandler: ?*IDispatch, pErrorHandler: ?*IDispatch) HRESULT { return @as(*const IPortableDeviceWebControl.VTable, @ptrCast(self.vtable)).GetDeviceFromIdAsync(@as(*const IPortableDeviceWebControl, @ptrCast(self)), deviceId, pCompletionHandler, pErrorHandler); } }; } pub usingnamespace MethodMixin(@This()); }; const CLSID_EnumBthMtpConnectors_Value = Guid.initString("a1570149-e645-4f43-8b0d-409b061db2fc"); pub const CLSID_EnumBthMtpConnectors = &CLSID_EnumBthMtpConnectors_Value; const IID_IEnumPortableDeviceConnectors_Value = Guid.initString("bfdef549-9247-454f-bd82-06fe80853faa"); pub const IID_IEnumPortableDeviceConnectors = &IID_IEnumPortableDeviceConnectors_Value; pub const IEnumPortableDeviceConnectors = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, Next: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IEnumPortableDeviceConnectors, cRequested: u32, pConnectors: [*]?*IPortableDeviceConnector, pcFetched: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IEnumPortableDeviceConnectors, cRequested: u32, pConnectors: [*]?*IPortableDeviceConnector, pcFetched: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Skip: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IEnumPortableDeviceConnectors, cConnectors: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IEnumPortableDeviceConnectors, cConnectors: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Reset: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IEnumPortableDeviceConnectors, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IEnumPortableDeviceConnectors, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Clone: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IEnumPortableDeviceConnectors, ppEnum: ?*?*IEnumPortableDeviceConnectors, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IEnumPortableDeviceConnectors, ppEnum: ?*?*IEnumPortableDeviceConnectors, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IEnumPortableDeviceConnectors_Next(self: *const T, cRequested: u32, pConnectors: [*]?*IPortableDeviceConnector, pcFetched: ?*u32) HRESULT { return @as(*const IEnumPortableDeviceConnectors.VTable, @ptrCast(self.vtable)).Next(@as(*const IEnumPortableDeviceConnectors, @ptrCast(self)), cRequested, pConnectors, pcFetched); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IEnumPortableDeviceConnectors_Skip(self: *const T, cConnectors: u32) HRESULT { return @as(*const IEnumPortableDeviceConnectors.VTable, @ptrCast(self.vtable)).Skip(@as(*const IEnumPortableDeviceConnectors, @ptrCast(self)), cConnectors); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IEnumPortableDeviceConnectors_Reset(self: *const T) HRESULT { return @as(*const IEnumPortableDeviceConnectors.VTable, @ptrCast(self.vtable)).Reset(@as(*const IEnumPortableDeviceConnectors, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IEnumPortableDeviceConnectors_Clone(self: *const T, ppEnum: ?*?*IEnumPortableDeviceConnectors) HRESULT { return @as(*const IEnumPortableDeviceConnectors.VTable, @ptrCast(self.vtable)).Clone(@as(*const IEnumPortableDeviceConnectors, @ptrCast(self)), ppEnum); } }; } pub usingnamespace MethodMixin(@This()); }; // TODO: this type is limited to platform 'windows6.1' const IID_IPortableDeviceConnector_Value = Guid.initString("625e2df8-6392-4cf0-9ad1-3cfa5f17775c"); pub const IID_IPortableDeviceConnector = &IID_IPortableDeviceConnector_Value; pub const IPortableDeviceConnector = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, Connect: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IPortableDeviceConnector, pCallback: ?*IConnectionRequestCallback, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IPortableDeviceConnector, pCallback: ?*IConnectionRequestCallback, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Disconnect: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IPortableDeviceConnector, pCallback: ?*IConnectionRequestCallback, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IPortableDeviceConnector, pCallback: ?*IConnectionRequestCallback, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Cancel: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IPortableDeviceConnector, pCallback: ?*IConnectionRequestCallback, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IPortableDeviceConnector, pCallback: ?*IConnectionRequestCallback, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetProperty: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IPortableDeviceConnector, pPropertyKey: ?*const DEVPROPKEY, pPropertyType: ?*u32, ppData: [*]?*u8, pcbData: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IPortableDeviceConnector, pPropertyKey: ?*const DEVPROPKEY, pPropertyType: ?*u32, ppData: [*]?*u8, pcbData: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetProperty: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IPortableDeviceConnector, pPropertyKey: ?*const DEVPROPKEY, PropertyType: u32, pData: [*:0]const u8, cbData: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IPortableDeviceConnector, pPropertyKey: ?*const DEVPROPKEY, PropertyType: u32, pData: [*:0]const u8, cbData: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetPnPID: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IPortableDeviceConnector, ppwszPnPID: ?*?PWSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IPortableDeviceConnector, ppwszPnPID: ?*?PWSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPortableDeviceConnector_Connect(self: *const T, pCallback: ?*IConnectionRequestCallback) HRESULT { return @as(*const IPortableDeviceConnector.VTable, @ptrCast(self.vtable)).Connect(@as(*const IPortableDeviceConnector, @ptrCast(self)), pCallback); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPortableDeviceConnector_Disconnect(self: *const T, pCallback: ?*IConnectionRequestCallback) HRESULT { return @as(*const IPortableDeviceConnector.VTable, @ptrCast(self.vtable)).Disconnect(@as(*const IPortableDeviceConnector, @ptrCast(self)), pCallback); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPortableDeviceConnector_Cancel(self: *const T, pCallback: ?*IConnectionRequestCallback) HRESULT { return @as(*const IPortableDeviceConnector.VTable, @ptrCast(self.vtable)).Cancel(@as(*const IPortableDeviceConnector, @ptrCast(self)), pCallback); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPortableDeviceConnector_GetProperty(self: *const T, pPropertyKey: ?*const DEVPROPKEY, pPropertyType: ?*u32, ppData: [*]?*u8, pcbData: ?*u32) HRESULT { return @as(*const IPortableDeviceConnector.VTable, @ptrCast(self.vtable)).GetProperty(@as(*const IPortableDeviceConnector, @ptrCast(self)), pPropertyKey, pPropertyType, ppData, pcbData); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPortableDeviceConnector_SetProperty(self: *const T, pPropertyKey: ?*const DEVPROPKEY, PropertyType: u32, pData: [*:0]const u8, cbData: u32) HRESULT { return @as(*const IPortableDeviceConnector.VTable, @ptrCast(self.vtable)).SetProperty(@as(*const IPortableDeviceConnector, @ptrCast(self)), pPropertyKey, PropertyType, pData, cbData); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IPortableDeviceConnector_GetPnPID(self: *const T, ppwszPnPID: ?*?PWSTR) HRESULT { return @as(*const IPortableDeviceConnector.VTable, @ptrCast(self.vtable)).GetPnPID(@as(*const IPortableDeviceConnector, @ptrCast(self)), ppwszPnPID); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IConnectionRequestCallback_Value = Guid.initString("272c9ae0-7161-4ae0-91bd-9f448ee9c427"); pub const IID_IConnectionRequestCallback = &IID_IConnectionRequestCallback_Value; pub const IConnectionRequestCallback = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, OnComplete: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IConnectionRequestCallback, hrStatus: HRESULT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IConnectionRequestCallback, hrStatus: HRESULT, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IConnectionRequestCallback_OnComplete(self: *const T, hrStatus: HRESULT) HRESULT { return @as(*const IConnectionRequestCallback.VTable, @ptrCast(self.vtable)).OnComplete(@as(*const IConnectionRequestCallback, @ptrCast(self)), hrStatus); } }; } pub usingnamespace MethodMixin(@This()); }; pub const DEVICE_RADIO_STATE = enum(i32) { RADIO_ON = 0, SW_RADIO_OFF = 1, HW_RADIO_OFF = 2, SW_HW_RADIO_OFF = 3, HW_RADIO_ON_UNCONTROLLABLE = 4, RADIO_INVALID = 5, HW_RADIO_OFF_UNCONTROLLABLE = 6, // RADIO_MAX = 6, this enum value conflicts with HW_RADIO_OFF_UNCONTROLLABLE }; pub const DRS_RADIO_ON = DEVICE_RADIO_STATE.RADIO_ON; pub const DRS_SW_RADIO_OFF = DEVICE_RADIO_STATE.SW_RADIO_OFF; pub const DRS_HW_RADIO_OFF = DEVICE_RADIO_STATE.HW_RADIO_OFF; pub const DRS_SW_HW_RADIO_OFF = DEVICE_RADIO_STATE.SW_HW_RADIO_OFF; pub const DRS_HW_RADIO_ON_UNCONTROLLABLE = DEVICE_RADIO_STATE.HW_RADIO_ON_UNCONTROLLABLE; pub const DRS_RADIO_INVALID = DEVICE_RADIO_STATE.RADIO_INVALID; pub const DRS_HW_RADIO_OFF_UNCONTROLLABLE = DEVICE_RADIO_STATE.HW_RADIO_OFF_UNCONTROLLABLE; pub const DRS_RADIO_MAX = DEVICE_RADIO_STATE.HW_RADIO_OFF_UNCONTROLLABLE; pub const SYSTEM_RADIO_STATE = enum(i32) { ENABLED = 0, DISABLED = 1, }; pub const SRS_RADIO_ENABLED = SYSTEM_RADIO_STATE.ENABLED; pub const SRS_RADIO_DISABLED = SYSTEM_RADIO_STATE.DISABLED; const IID_IMediaRadioManager_Value = Guid.initString("6cfdcab5-fc47-42a5-9241-074b58830e73"); pub const IID_IMediaRadioManager = &IID_IMediaRadioManager_Value; pub const IMediaRadioManager = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, GetRadioInstances: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IMediaRadioManager, ppCollection: ?*?*IRadioInstanceCollection, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IMediaRadioManager, ppCollection: ?*?*IRadioInstanceCollection, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, OnSystemRadioStateChange: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IMediaRadioManager, sysRadioState: SYSTEM_RADIO_STATE, uTimeoutSec: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IMediaRadioManager, sysRadioState: SYSTEM_RADIO_STATE, uTimeoutSec: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMediaRadioManager_GetRadioInstances(self: *const T, ppCollection: ?*?*IRadioInstanceCollection) HRESULT { return @as(*const IMediaRadioManager.VTable, @ptrCast(self.vtable)).GetRadioInstances(@as(*const IMediaRadioManager, @ptrCast(self)), ppCollection); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMediaRadioManager_OnSystemRadioStateChange(self: *const T, sysRadioState: SYSTEM_RADIO_STATE, uTimeoutSec: u32) HRESULT { return @as(*const IMediaRadioManager.VTable, @ptrCast(self.vtable)).OnSystemRadioStateChange(@as(*const IMediaRadioManager, @ptrCast(self)), sysRadioState, uTimeoutSec); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IRadioInstanceCollection_Value = Guid.initString("e5791fae-5665-4e0c-95be-5fde31644185"); pub const IID_IRadioInstanceCollection = &IID_IRadioInstanceCollection_Value; pub const IRadioInstanceCollection = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, GetCount: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IRadioInstanceCollection, pcInstance: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IRadioInstanceCollection, pcInstance: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetAt: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IRadioInstanceCollection, uIndex: u32, ppRadioInstance: ?*?*IRadioInstance, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IRadioInstanceCollection, uIndex: u32, ppRadioInstance: ?*?*IRadioInstance, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRadioInstanceCollection_GetCount(self: *const T, pcInstance: ?*u32) HRESULT { return @as(*const IRadioInstanceCollection.VTable, @ptrCast(self.vtable)).GetCount(@as(*const IRadioInstanceCollection, @ptrCast(self)), pcInstance); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRadioInstanceCollection_GetAt(self: *const T, uIndex: u32, ppRadioInstance: ?*?*IRadioInstance) HRESULT { return @as(*const IRadioInstanceCollection.VTable, @ptrCast(self.vtable)).GetAt(@as(*const IRadioInstanceCollection, @ptrCast(self)), uIndex, ppRadioInstance); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IRadioInstance_Value = Guid.initString("70aa1c9e-f2b4-4c61-86d3-6b9fb75fd1a2"); pub const IID_IRadioInstance = &IID_IRadioInstance_Value; pub const IRadioInstance = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, GetRadioManagerSignature: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IRadioInstance, pguidSignature: ?*Guid, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IRadioInstance, pguidSignature: ?*Guid, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetInstanceSignature: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IRadioInstance, pbstrId: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IRadioInstance, pbstrId: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetFriendlyName: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IRadioInstance, lcid: u32, pbstrName: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IRadioInstance, lcid: u32, pbstrName: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetRadioState: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IRadioInstance, pRadioState: ?*DEVICE_RADIO_STATE, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IRadioInstance, pRadioState: ?*DEVICE_RADIO_STATE, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetRadioState: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IRadioInstance, radioState: DEVICE_RADIO_STATE, uTimeoutSec: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IRadioInstance, radioState: DEVICE_RADIO_STATE, uTimeoutSec: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, IsMultiComm: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IRadioInstance, ) callconv(@import("std").os.windows.WINAPI) BOOL, else => *const fn ( self: *const IRadioInstance, ) callconv(@import("std").os.windows.WINAPI) BOOL, }, IsAssociatingDevice: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IRadioInstance, ) callconv(@import("std").os.windows.WINAPI) BOOL, else => *const fn ( self: *const IRadioInstance, ) callconv(@import("std").os.windows.WINAPI) BOOL, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRadioInstance_GetRadioManagerSignature(self: *const T, pguidSignature: ?*Guid) HRESULT { return @as(*const IRadioInstance.VTable, @ptrCast(self.vtable)).GetRadioManagerSignature(@as(*const IRadioInstance, @ptrCast(self)), pguidSignature); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRadioInstance_GetInstanceSignature(self: *const T, pbstrId: ?*?BSTR) HRESULT { return @as(*const IRadioInstance.VTable, @ptrCast(self.vtable)).GetInstanceSignature(@as(*const IRadioInstance, @ptrCast(self)), pbstrId); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRadioInstance_GetFriendlyName(self: *const T, lcid: u32, pbstrName: ?*?BSTR) HRESULT { return @as(*const IRadioInstance.VTable, @ptrCast(self.vtable)).GetFriendlyName(@as(*const IRadioInstance, @ptrCast(self)), lcid, pbstrName); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRadioInstance_GetRadioState(self: *const T, pRadioState: ?*DEVICE_RADIO_STATE) HRESULT { return @as(*const IRadioInstance.VTable, @ptrCast(self.vtable)).GetRadioState(@as(*const IRadioInstance, @ptrCast(self)), pRadioState); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRadioInstance_SetRadioState(self: *const T, radioState: DEVICE_RADIO_STATE, uTimeoutSec: u32) HRESULT { return @as(*const IRadioInstance.VTable, @ptrCast(self.vtable)).SetRadioState(@as(*const IRadioInstance, @ptrCast(self)), radioState, uTimeoutSec); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRadioInstance_IsMultiComm(self: *const T) BOOL { return @as(*const IRadioInstance.VTable, @ptrCast(self.vtable)).IsMultiComm(@as(*const IRadioInstance, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IRadioInstance_IsAssociatingDevice(self: *const T) BOOL { return @as(*const IRadioInstance.VTable, @ptrCast(self.vtable)).IsAssociatingDevice(@as(*const IRadioInstance, @ptrCast(self))); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IMediaRadioManagerNotifySink_Value = Guid.initString("89d81f5f-c147-49ed-a11c-77b20c31e7c9"); pub const IID_IMediaRadioManagerNotifySink = &IID_IMediaRadioManagerNotifySink_Value; pub const IMediaRadioManagerNotifySink = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, OnInstanceAdd: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IMediaRadioManagerNotifySink, pRadioInstance: ?*IRadioInstance, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IMediaRadioManagerNotifySink, pRadioInstance: ?*IRadioInstance, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, OnInstanceRemove: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IMediaRadioManagerNotifySink, bstrRadioInstanceId: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IMediaRadioManagerNotifySink, bstrRadioInstanceId: ?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, OnInstanceRadioChange: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IMediaRadioManagerNotifySink, bstrRadioInstanceId: ?BSTR, radioState: DEVICE_RADIO_STATE, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IMediaRadioManagerNotifySink, bstrRadioInstanceId: ?BSTR, radioState: DEVICE_RADIO_STATE, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMediaRadioManagerNotifySink_OnInstanceAdd(self: *const T, pRadioInstance: ?*IRadioInstance) HRESULT { return @as(*const IMediaRadioManagerNotifySink.VTable, @ptrCast(self.vtable)).OnInstanceAdd(@as(*const IMediaRadioManagerNotifySink, @ptrCast(self)), pRadioInstance); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMediaRadioManagerNotifySink_OnInstanceRemove(self: *const T, bstrRadioInstanceId: ?BSTR) HRESULT { return @as(*const IMediaRadioManagerNotifySink.VTable, @ptrCast(self.vtable)).OnInstanceRemove(@as(*const IMediaRadioManagerNotifySink, @ptrCast(self)), bstrRadioInstanceId); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IMediaRadioManagerNotifySink_OnInstanceRadioChange(self: *const T, bstrRadioInstanceId: ?BSTR, radioState: DEVICE_RADIO_STATE) HRESULT { return @as(*const IMediaRadioManagerNotifySink.VTable, @ptrCast(self.vtable)).OnInstanceRadioChange(@as(*const IMediaRadioManagerNotifySink, @ptrCast(self)), bstrRadioInstanceId, radioState); } }; } pub usingnamespace MethodMixin(@This()); }; //-------------------------------------------------------------------------------- // Section: Functions (1) //-------------------------------------------------------------------------------- pub extern "dmprocessxmlfiltered" fn DMProcessConfigXMLFiltered( pszXmlIn: ?[*:0]const u16, rgszAllowedCspNodes: [*]?PWSTR, dwNumAllowedCspNodes: u32, pbstrXmlOut: ?*?BSTR, ) callconv(@import("std").os.windows.WINAPI) HRESULT; //-------------------------------------------------------------------------------- // Section: Unicode Aliases (0) //-------------------------------------------------------------------------------- const thismodule = @This(); pub usingnamespace switch (@import("../zig.zig").unicode_mode) { .ansi => struct {}, .wide => struct {}, .unspecified => if (@import("builtin").is_test) struct {} else struct {}, }; //-------------------------------------------------------------------------------- // Section: Imports (14) //-------------------------------------------------------------------------------- const Guid = @import("../zig.zig").Guid; const BOOL = @import("../foundation.zig").BOOL; const BSTR = @import("../foundation.zig").BSTR; const DEVPROPKEY = @import("../devices/properties.zig").DEVPROPKEY; const HRESULT = @import("../foundation.zig").HRESULT; const IDispatch = @import("../system/com.zig").IDispatch; const IPropertyStore = @import("../ui/shell/properties_system.zig").IPropertyStore; const IStream = @import("../system/com.zig").IStream; const IUnknown = @import("../system/com.zig").IUnknown; const LARGE_INTEGER = @import("../foundation.zig").LARGE_INTEGER; const PROPERTYKEY = @import("../ui/shell/properties_system.zig").PROPERTYKEY; const PROPVARIANT = @import("../system/com/structured_storage.zig").PROPVARIANT; const PWSTR = @import("../foundation.zig").PWSTR; const ULARGE_INTEGER = @import("../foundation.zig").ULARGE_INTEGER; test { @setEvalBranchQuota(comptime @import("std").meta.declarations(@This()).len * 3); // reference all the pub declarations if (!@import("builtin").is_test) return; inline for (comptime @import("std").meta.declarations(@This())) |decl| { if (decl.is_pub) { _ = @field(@This(), decl.name); } } }
0
repos/capy/vendor/zigwin32/win32
repos/capy/vendor/zigwin32/win32/devices/display.zig
//! NOTE: this file is autogenerated, DO NOT MODIFY //-------------------------------------------------------------------------------- // Section: Constants (737) //-------------------------------------------------------------------------------- pub const GUID_DEVINTERFACE_DISPLAY_ADAPTER = Guid.initString("5b45201d-f2f2-4f3b-85bb-30ff1f953599"); pub const GUID_DEVINTERFACE_MONITOR = Guid.initString("e6f07b5f-ee97-4a90-b076-33f57bf4eaa7"); pub const GUID_DISPLAY_DEVICE_ARRIVAL = Guid.initString("1ca05180-a699-450a-9a0c-de4fbe3ddd89"); pub const GUID_DEVINTERFACE_VIDEO_OUTPUT_ARRIVAL = Guid.initString("1ad9e4f0-f88d-4360-bab9-4c2d55e564cd"); pub const DEVPKEY_IndirectDisplay = PROPERTYKEY{ .fmtid = Guid.initString("c50a3f10-aa5c-4247-b830-d6a6f8eaa310"), .pid = 1 }; pub const DEVPKEY_Device_TerminalLuid = PROPERTYKEY{ .fmtid = Guid.initString("c50a3f10-aa5c-4247-b830-d6a6f8eaa310"), .pid = 2 }; pub const DEVPKEY_Device_AdapterLuid = PROPERTYKEY{ .fmtid = Guid.initString("c50a3f10-aa5c-4247-b830-d6a6f8eaa310"), .pid = 3 }; pub const DEVPKEY_Device_ActivityId = PROPERTYKEY{ .fmtid = Guid.initString("c50a3f10-aa5c-4247-b830-d6a6f8eaa310"), .pid = 4 }; pub const INDIRECT_DISPLAY_INFO_FLAGS_CREATED_IDDCX_ADAPTER = @as(u32, 1); pub const IOCTL_VIDEO_DISABLE_VDM = @as(u32, 2293764); pub const IOCTL_VIDEO_REGISTER_VDM = @as(u32, 2293768); pub const IOCTL_VIDEO_SET_OUTPUT_DEVICE_POWER_STATE = @as(u32, 2293772); pub const IOCTL_VIDEO_GET_OUTPUT_DEVICE_POWER_STATE = @as(u32, 2293776); pub const IOCTL_VIDEO_MONITOR_DEVICE = @as(u32, 2293780); pub const IOCTL_VIDEO_ENUM_MONITOR_PDO = @as(u32, 2293784); pub const IOCTL_VIDEO_INIT_WIN32K_CALLBACKS = @as(u32, 2293788); pub const IOCTL_VIDEO_IS_VGA_DEVICE = @as(u32, 2293796); pub const IOCTL_VIDEO_USE_DEVICE_IN_SESSION = @as(u32, 2293800); pub const IOCTL_VIDEO_PREPARE_FOR_EARECOVERY = @as(u32, 2293804); pub const IOCTL_VIDEO_ENABLE_VDM = @as(u32, 2293760); pub const IOCTL_VIDEO_SAVE_HARDWARE_STATE = @as(u32, 2294272); pub const IOCTL_VIDEO_RESTORE_HARDWARE_STATE = @as(u32, 2294276); pub const IOCTL_VIDEO_HANDLE_VIDEOPARAMETERS = @as(u32, 2293792); pub const IOCTL_VIDEO_QUERY_AVAIL_MODES = @as(u32, 2294784); pub const IOCTL_VIDEO_QUERY_NUM_AVAIL_MODES = @as(u32, 2294788); pub const IOCTL_VIDEO_QUERY_CURRENT_MODE = @as(u32, 2294792); pub const IOCTL_VIDEO_SET_CURRENT_MODE = @as(u32, 2294796); pub const IOCTL_VIDEO_RESET_DEVICE = @as(u32, 2294800); pub const IOCTL_VIDEO_LOAD_AND_SET_FONT = @as(u32, 2294804); pub const IOCTL_VIDEO_SET_PALETTE_REGISTERS = @as(u32, 2294808); pub const IOCTL_VIDEO_SET_COLOR_REGISTERS = @as(u32, 2294812); pub const IOCTL_VIDEO_ENABLE_CURSOR = @as(u32, 2294816); pub const IOCTL_VIDEO_DISABLE_CURSOR = @as(u32, 2294820); pub const IOCTL_VIDEO_SET_CURSOR_ATTR = @as(u32, 2294824); pub const IOCTL_VIDEO_QUERY_CURSOR_ATTR = @as(u32, 2294828); pub const IOCTL_VIDEO_SET_CURSOR_POSITION = @as(u32, 2294832); pub const IOCTL_VIDEO_QUERY_CURSOR_POSITION = @as(u32, 2294836); pub const IOCTL_VIDEO_ENABLE_POINTER = @as(u32, 2294840); pub const IOCTL_VIDEO_DISABLE_POINTER = @as(u32, 2294844); pub const IOCTL_VIDEO_SET_POINTER_ATTR = @as(u32, 2294848); pub const IOCTL_VIDEO_QUERY_POINTER_ATTR = @as(u32, 2294852); pub const IOCTL_VIDEO_SET_POINTER_POSITION = @as(u32, 2294856); pub const IOCTL_VIDEO_QUERY_POINTER_POSITION = @as(u32, 2294860); pub const IOCTL_VIDEO_QUERY_POINTER_CAPABILITIES = @as(u32, 2294864); pub const IOCTL_VIDEO_GET_BANK_SELECT_CODE = @as(u32, 2294868); pub const IOCTL_VIDEO_MAP_VIDEO_MEMORY = @as(u32, 2294872); pub const IOCTL_VIDEO_UNMAP_VIDEO_MEMORY = @as(u32, 2294876); pub const IOCTL_VIDEO_QUERY_PUBLIC_ACCESS_RANGES = @as(u32, 2294880); pub const IOCTL_VIDEO_FREE_PUBLIC_ACCESS_RANGES = @as(u32, 2294884); pub const IOCTL_VIDEO_QUERY_COLOR_CAPABILITIES = @as(u32, 2294888); pub const IOCTL_VIDEO_SET_POWER_MANAGEMENT = @as(u32, 2294892); pub const IOCTL_VIDEO_GET_POWER_MANAGEMENT = @as(u32, 2294896); pub const IOCTL_VIDEO_SHARE_VIDEO_MEMORY = @as(u32, 2294900); pub const IOCTL_VIDEO_UNSHARE_VIDEO_MEMORY = @as(u32, 2294904); pub const IOCTL_VIDEO_SET_COLOR_LUT_DATA = @as(u32, 2294908); pub const IOCTL_VIDEO_GET_CHILD_STATE = @as(u32, 2294912); pub const IOCTL_VIDEO_VALIDATE_CHILD_STATE_CONFIGURATION = @as(u32, 2294916); pub const IOCTL_VIDEO_SET_CHILD_STATE_CONFIGURATION = @as(u32, 2294920); pub const IOCTL_VIDEO_SWITCH_DUALVIEW = @as(u32, 2294924); pub const IOCTL_VIDEO_SET_BANK_POSITION = @as(u32, 2294928); pub const IOCTL_VIDEO_QUERY_SUPPORTED_BRIGHTNESS = @as(u32, 2294932); pub const IOCTL_VIDEO_QUERY_DISPLAY_BRIGHTNESS = @as(u32, 2294936); pub const IOCTL_VIDEO_SET_DISPLAY_BRIGHTNESS = @as(u32, 2294940); pub const IOCTL_FSVIDEO_COPY_FRAME_BUFFER = @as(u32, 3409920); pub const IOCTL_FSVIDEO_WRITE_TO_FRAME_BUFFER = @as(u32, 3409924); pub const IOCTL_FSVIDEO_REVERSE_MOUSE_POINTER = @as(u32, 3409928); pub const IOCTL_FSVIDEO_SET_CURRENT_MODE = @as(u32, 3409932); pub const IOCTL_FSVIDEO_SET_SCREEN_INFORMATION = @as(u32, 3409936); pub const IOCTL_FSVIDEO_SET_CURSOR_POSITION = @as(u32, 3409940); pub const IOCTL_PANEL_QUERY_BRIGHTNESS_CAPS = @as(u32, 2296832); pub const IOCTL_PANEL_QUERY_BRIGHTNESS_RANGES = @as(u32, 2296836); pub const IOCTL_PANEL_GET_BRIGHTNESS = @as(u32, 2296840); pub const IOCTL_PANEL_SET_BRIGHTNESS = @as(u32, 2296844); pub const IOCTL_PANEL_SET_BRIGHTNESS_STATE = @as(u32, 2296848); pub const IOCTL_PANEL_SET_BACKLIGHT_OPTIMIZATION = @as(u32, 2296852); pub const IOCTL_PANEL_GET_BACKLIGHT_REDUCTION = @as(u32, 2296856); pub const IOCTL_COLORSPACE_TRANSFORM_QUERY_TARGET_CAPS = @as(u32, 2297856); pub const IOCTL_COLORSPACE_TRANSFORM_SET = @as(u32, 2297860); pub const IOCTL_SET_ACTIVE_COLOR_PROFILE_NAME = @as(u32, 2297864); pub const IOCTL_MIPI_DSI_QUERY_CAPS = @as(u32, 2298880); pub const IOCTL_MIPI_DSI_TRANSMISSION = @as(u32, 2298884); pub const IOCTL_MIPI_DSI_RESET = @as(u32, 2298888); pub const DXGK_WIN32K_PARAM_FLAG_UPDATEREGISTRY = @as(u32, 1); pub const DXGK_WIN32K_PARAM_FLAG_MODESWITCH = @as(u32, 2); pub const DXGK_WIN32K_PARAM_FLAG_DISABLEVIEW = @as(u32, 4); pub const VIDEO_DUALVIEW_REMOVABLE = @as(u32, 1); pub const VIDEO_DUALVIEW_PRIMARY = @as(u32, 2147483648); pub const VIDEO_DUALVIEW_SECONDARY = @as(u32, 1073741824); pub const VIDEO_DUALVIEW_WDDM_VGA = @as(u32, 536870912); pub const VIDEO_STATE_NON_STANDARD_VGA = @as(u32, 1); pub const VIDEO_STATE_UNEMULATED_VGA_STATE = @as(u32, 2); pub const VIDEO_STATE_PACKED_CHAIN4_MODE = @as(u32, 4); pub const VIDEO_MODE_NO_ZERO_MEMORY = @as(u32, 2147483648); pub const VIDEO_MODE_MAP_MEM_LINEAR = @as(u32, 1073741824); pub const VIDEO_MODE_COLOR = @as(u32, 1); pub const VIDEO_MODE_GRAPHICS = @as(u32, 2); pub const VIDEO_MODE_PALETTE_DRIVEN = @as(u32, 4); pub const VIDEO_MODE_MANAGED_PALETTE = @as(u32, 8); pub const VIDEO_MODE_INTERLACED = @as(u32, 16); pub const VIDEO_MODE_NO_OFF_SCREEN = @as(u32, 32); pub const VIDEO_MODE_NO_64_BIT_ACCESS = @as(u32, 64); pub const VIDEO_MODE_BANKED = @as(u32, 128); pub const VIDEO_MODE_LINEAR = @as(u32, 256); pub const VIDEO_MODE_ASYNC_POINTER = @as(u32, 1); pub const VIDEO_MODE_MONO_POINTER = @as(u32, 2); pub const VIDEO_MODE_COLOR_POINTER = @as(u32, 4); pub const VIDEO_MODE_ANIMATE_START = @as(u32, 8); pub const VIDEO_MODE_ANIMATE_UPDATE = @as(u32, 16); pub const PLANAR_HC = @as(u32, 1); pub const VIDEO_DEVICE_COLOR = @as(u32, 1); pub const VIDEO_OPTIONAL_GAMMET_TABLE = @as(u32, 2); pub const VIDEO_COLOR_LUT_DATA_FORMAT_RGB256WORDS = @as(u32, 1); pub const VIDEO_COLOR_LUT_DATA_FORMAT_PRIVATEFORMAT = @as(u32, 2147483648); pub const DISPLAYPOLICY_AC = @as(u32, 1); pub const DISPLAYPOLICY_DC = @as(u32, 2); pub const CHAR_TYPE_SBCS = @as(u32, 0); pub const CHAR_TYPE_LEADING = @as(u32, 2); pub const CHAR_TYPE_TRAILING = @as(u32, 3); pub const BITMAP_BITS_BYTE_ALIGN = @as(u32, 8); pub const BITMAP_BITS_WORD_ALIGN = @as(u32, 16); pub const BITMAP_ARRAY_BYTE = @as(u32, 3); pub const BITMAP_PLANES = @as(u32, 1); pub const BITMAP_BITS_PIXEL = @as(u32, 1); pub const VIDEO_REASON_NONE = @as(u32, 0); pub const VIDEO_REASON_POLICY1 = @as(u32, 1); pub const VIDEO_REASON_POLICY2 = @as(u32, 2); pub const VIDEO_REASON_POLICY3 = @as(u32, 3); pub const VIDEO_REASON_POLICY4 = @as(u32, 4); pub const VIDEO_REASON_LOCK = @as(u32, 5); pub const VIDEO_REASON_FAILED_ROTATION = @as(u32, 5); pub const VIDEO_REASON_ALLOCATION = @as(u32, 6); pub const VIDEO_REASON_SCRATCH = @as(u32, 8); pub const VIDEO_REASON_CONFIGURATION = @as(u32, 9); pub const VIDEO_MAX_REASON = @as(u32, 9); pub const BRIGHTNESS_MAX_LEVEL_COUNT = @as(u32, 103); pub const BRIGHTNESS_MAX_NIT_RANGE_COUNT = @as(u32, 16); pub const DSI_PACKET_EMBEDDED_PAYLOAD_SIZE = @as(u32, 8); pub const MAX_PACKET_COUNT = @as(u32, 128); pub const DSI_INVALID_PACKET_INDEX = @as(u32, 255); pub const DSI_SOT_ERROR = @as(u32, 1); pub const DSI_SOT_SYNC_ERROR = @as(u32, 2); pub const DSI_EOT_SYNC_ERROR = @as(u32, 4); pub const DSI_ESCAPE_MODE_ENTRY_COMMAND_ERROR = @as(u32, 8); pub const DSI_LOW_POWER_TRANSMIT_SYNC_ERROR = @as(u32, 16); pub const DSI_PERIPHERAL_TIMEOUT_ERROR = @as(u32, 32); pub const DSI_FALSE_CONTROL_ERROR = @as(u32, 64); pub const DSI_CONTENTION_DETECTED = @as(u32, 128); pub const DSI_CHECKSUM_ERROR_CORRECTED = @as(u32, 256); pub const DSI_CHECKSUM_ERROR_NOT_CORRECTED = @as(u32, 512); pub const DSI_LONG_PACKET_PAYLOAD_CHECKSUM_ERROR = @as(u32, 1024); pub const DSI_DSI_DATA_TYPE_NOT_RECOGNIZED = @as(u32, 2048); pub const DSI_DSI_VC_ID_INVALID = @as(u32, 4096); pub const DSI_INVALID_TRANSMISSION_LENGTH = @as(u32, 8192); pub const DSI_DSI_PROTOCOL_VIOLATION = @as(u32, 32768); pub const HOST_DSI_DEVICE_NOT_READY = @as(u32, 1); pub const HOST_DSI_INTERFACE_RESET = @as(u32, 2); pub const HOST_DSI_DEVICE_RESET = @as(u32, 4); pub const HOST_DSI_TRANSMISSION_CANCELLED = @as(u32, 16); pub const HOST_DSI_TRANSMISSION_DROPPED = @as(u32, 32); pub const HOST_DSI_TRANSMISSION_TIMEOUT = @as(u32, 64); pub const HOST_DSI_INVALID_TRANSMISSION = @as(u32, 256); pub const HOST_DSI_OS_REJECTED_PACKET = @as(u32, 512); pub const HOST_DSI_DRIVER_REJECTED_PACKET = @as(u32, 1024); pub const HOST_DSI_BAD_TRANSMISSION_MODE = @as(u32, 4096); pub const GUID_MONITOR_OVERRIDE_PSEUDO_SPECIALIZED = Guid.initString("f196c02f-f86f-4f9a-aa15-e9cebdfe3b96"); pub const FD_ERROR = @as(u32, 4294967295); pub const DDI_ERROR = @as(u32, 4294967295); pub const FDM_TYPE_BM_SIDE_CONST = @as(u32, 1); pub const FDM_TYPE_MAXEXT_EQUAL_BM_SIDE = @as(u32, 2); pub const FDM_TYPE_CHAR_INC_EQUAL_BM_BASE = @as(u32, 4); pub const FDM_TYPE_ZERO_BEARINGS = @as(u32, 8); pub const FDM_TYPE_CONST_BEARINGS = @as(u32, 16); pub const GS_UNICODE_HANDLES = @as(u32, 1); pub const GS_8BIT_HANDLES = @as(u32, 2); pub const GS_16BIT_HANDLES = @as(u32, 4); pub const FM_VERSION_NUMBER = @as(u32, 0); pub const FM_TYPE_LICENSED = @as(u32, 2); pub const FM_READONLY_EMBED = @as(u32, 4); pub const FM_EDITABLE_EMBED = @as(u32, 8); pub const FM_NO_EMBEDDING = @as(u32, 2); pub const FM_INFO_TECH_TRUETYPE = @as(u32, 1); pub const FM_INFO_TECH_BITMAP = @as(u32, 2); pub const FM_INFO_TECH_STROKE = @as(u32, 4); pub const FM_INFO_TECH_OUTLINE_NOT_TRUETYPE = @as(u32, 8); pub const FM_INFO_ARB_XFORMS = @as(u32, 16); pub const FM_INFO_1BPP = @as(u32, 32); pub const FM_INFO_4BPP = @as(u32, 64); pub const FM_INFO_8BPP = @as(u32, 128); pub const FM_INFO_16BPP = @as(u32, 256); pub const FM_INFO_24BPP = @as(u32, 512); pub const FM_INFO_32BPP = @as(u32, 1024); pub const FM_INFO_INTEGER_WIDTH = @as(u32, 2048); pub const FM_INFO_CONSTANT_WIDTH = @as(u32, 4096); pub const FM_INFO_NOT_CONTIGUOUS = @as(u32, 8192); pub const FM_INFO_TECH_MM = @as(u32, 16384); pub const FM_INFO_RETURNS_OUTLINES = @as(u32, 32768); pub const FM_INFO_RETURNS_STROKES = @as(u32, 65536); pub const FM_INFO_RETURNS_BITMAPS = @as(u32, 131072); pub const FM_INFO_DSIG = @as(u32, 262144); pub const FM_INFO_RIGHT_HANDED = @as(u32, 524288); pub const FM_INFO_INTEGRAL_SCALING = @as(u32, 1048576); pub const FM_INFO_90DEGREE_ROTATIONS = @as(u32, 2097152); pub const FM_INFO_OPTICALLY_FIXED_PITCH = @as(u32, 4194304); pub const FM_INFO_DO_NOT_ENUMERATE = @as(u32, 8388608); pub const FM_INFO_ISOTROPIC_SCALING_ONLY = @as(u32, 16777216); pub const FM_INFO_ANISOTROPIC_SCALING_ONLY = @as(u32, 33554432); pub const FM_INFO_TECH_CFF = @as(u32, 67108864); pub const FM_INFO_FAMILY_EQUIV = @as(u32, 134217728); pub const FM_INFO_DBCS_FIXED_PITCH = @as(u32, 268435456); pub const FM_INFO_NONNEGATIVE_AC = @as(u32, 536870912); pub const FM_INFO_IGNORE_TC_RA_ABLE = @as(u32, 1073741824); pub const FM_INFO_TECH_TYPE1 = @as(u32, 2147483648); pub const MAXCHARSETS = @as(u32, 16); pub const FM_PANOSE_CULTURE_LATIN = @as(u32, 0); pub const FM_SEL_ITALIC = @as(u32, 1); pub const FM_SEL_UNDERSCORE = @as(u32, 2); pub const FM_SEL_NEGATIVE = @as(u32, 4); pub const FM_SEL_OUTLINED = @as(u32, 8); pub const FM_SEL_STRIKEOUT = @as(u32, 16); pub const FM_SEL_BOLD = @as(u32, 32); pub const FM_SEL_REGULAR = @as(u32, 64); pub const OPENGL_CMD = @as(u32, 4352); pub const OPENGL_GETINFO = @as(u32, 4353); pub const WNDOBJ_SETUP = @as(u32, 4354); pub const DDI_DRIVER_VERSION_NT4 = @as(u32, 131072); pub const DDI_DRIVER_VERSION_SP3 = @as(u32, 131075); pub const DDI_DRIVER_VERSION_NT5 = @as(u32, 196608); pub const DDI_DRIVER_VERSION_NT5_01 = @as(u32, 196864); pub const DDI_DRIVER_VERSION_NT5_01_SP1 = @as(u32, 196865); pub const GDI_DRIVER_VERSION = @as(u32, 16384); pub const INDEX_DrvEnablePDEV = @as(i32, 0); pub const INDEX_DrvCompletePDEV = @as(i32, 1); pub const INDEX_DrvDisablePDEV = @as(i32, 2); pub const INDEX_DrvEnableSurface = @as(i32, 3); pub const INDEX_DrvDisableSurface = @as(i32, 4); pub const INDEX_DrvAssertMode = @as(i32, 5); pub const INDEX_DrvOffset = @as(i32, 6); pub const INDEX_DrvResetPDEV = @as(i32, 7); pub const INDEX_DrvDisableDriver = @as(i32, 8); pub const INDEX_DrvCreateDeviceBitmap = @as(i32, 10); pub const INDEX_DrvDeleteDeviceBitmap = @as(i32, 11); pub const INDEX_DrvRealizeBrush = @as(i32, 12); pub const INDEX_DrvDitherColor = @as(i32, 13); pub const INDEX_DrvStrokePath = @as(i32, 14); pub const INDEX_DrvFillPath = @as(i32, 15); pub const INDEX_DrvStrokeAndFillPath = @as(i32, 16); pub const INDEX_DrvPaint = @as(i32, 17); pub const INDEX_DrvBitBlt = @as(i32, 18); pub const INDEX_DrvCopyBits = @as(i32, 19); pub const INDEX_DrvStretchBlt = @as(i32, 20); pub const INDEX_DrvSetPalette = @as(i32, 22); pub const INDEX_DrvTextOut = @as(i32, 23); pub const INDEX_DrvEscape = @as(i32, 24); pub const INDEX_DrvDrawEscape = @as(i32, 25); pub const INDEX_DrvQueryFont = @as(i32, 26); pub const INDEX_DrvQueryFontTree = @as(i32, 27); pub const INDEX_DrvQueryFontData = @as(i32, 28); pub const INDEX_DrvSetPointerShape = @as(i32, 29); pub const INDEX_DrvMovePointer = @as(i32, 30); pub const INDEX_DrvLineTo = @as(i32, 31); pub const INDEX_DrvSendPage = @as(i32, 32); pub const INDEX_DrvStartPage = @as(i32, 33); pub const INDEX_DrvEndDoc = @as(i32, 34); pub const INDEX_DrvStartDoc = @as(i32, 35); pub const INDEX_DrvGetGlyphMode = @as(i32, 37); pub const INDEX_DrvSynchronize = @as(i32, 38); pub const INDEX_DrvSaveScreenBits = @as(i32, 40); pub const INDEX_DrvGetModes = @as(i32, 41); pub const INDEX_DrvFree = @as(i32, 42); pub const INDEX_DrvDestroyFont = @as(i32, 43); pub const INDEX_DrvQueryFontCaps = @as(i32, 44); pub const INDEX_DrvLoadFontFile = @as(i32, 45); pub const INDEX_DrvUnloadFontFile = @as(i32, 46); pub const INDEX_DrvFontManagement = @as(i32, 47); pub const INDEX_DrvQueryTrueTypeTable = @as(i32, 48); pub const INDEX_DrvQueryTrueTypeOutline = @as(i32, 49); pub const INDEX_DrvGetTrueTypeFile = @as(i32, 50); pub const INDEX_DrvQueryFontFile = @as(i32, 51); pub const INDEX_DrvMovePanning = @as(i32, 52); pub const INDEX_DrvQueryAdvanceWidths = @as(i32, 53); pub const INDEX_DrvSetPixelFormat = @as(i32, 54); pub const INDEX_DrvDescribePixelFormat = @as(i32, 55); pub const INDEX_DrvSwapBuffers = @as(i32, 56); pub const INDEX_DrvStartBanding = @as(i32, 57); pub const INDEX_DrvNextBand = @as(i32, 58); pub const INDEX_DrvGetDirectDrawInfo = @as(i32, 59); pub const INDEX_DrvEnableDirectDraw = @as(i32, 60); pub const INDEX_DrvDisableDirectDraw = @as(i32, 61); pub const INDEX_DrvQuerySpoolType = @as(i32, 62); pub const INDEX_DrvIcmCreateColorTransform = @as(i32, 64); pub const INDEX_DrvIcmDeleteColorTransform = @as(i32, 65); pub const INDEX_DrvIcmCheckBitmapBits = @as(i32, 66); pub const INDEX_DrvIcmSetDeviceGammaRamp = @as(i32, 67); pub const INDEX_DrvGradientFill = @as(i32, 68); pub const INDEX_DrvStretchBltROP = @as(i32, 69); pub const INDEX_DrvPlgBlt = @as(i32, 70); pub const INDEX_DrvAlphaBlend = @as(i32, 71); pub const INDEX_DrvSynthesizeFont = @as(i32, 72); pub const INDEX_DrvGetSynthesizedFontFiles = @as(i32, 73); pub const INDEX_DrvTransparentBlt = @as(i32, 74); pub const INDEX_DrvQueryPerBandInfo = @as(i32, 75); pub const INDEX_DrvQueryDeviceSupport = @as(i32, 76); pub const INDEX_DrvReserved1 = @as(i32, 77); pub const INDEX_DrvReserved2 = @as(i32, 78); pub const INDEX_DrvReserved3 = @as(i32, 79); pub const INDEX_DrvReserved4 = @as(i32, 80); pub const INDEX_DrvReserved5 = @as(i32, 81); pub const INDEX_DrvReserved6 = @as(i32, 82); pub const INDEX_DrvReserved7 = @as(i32, 83); pub const INDEX_DrvReserved8 = @as(i32, 84); pub const INDEX_DrvDeriveSurface = @as(i32, 85); pub const INDEX_DrvQueryGlyphAttrs = @as(i32, 86); pub const INDEX_DrvNotify = @as(i32, 87); pub const INDEX_DrvSynchronizeSurface = @as(i32, 88); pub const INDEX_DrvResetDevice = @as(i32, 89); pub const INDEX_DrvReserved9 = @as(i32, 90); pub const INDEX_DrvReserved10 = @as(i32, 91); pub const INDEX_DrvReserved11 = @as(i32, 92); pub const INDEX_DrvRenderHint = @as(i32, 93); pub const INDEX_DrvCreateDeviceBitmapEx = @as(i32, 94); pub const INDEX_DrvDeleteDeviceBitmapEx = @as(i32, 95); pub const INDEX_DrvAssociateSharedSurface = @as(i32, 96); pub const INDEX_DrvSynchronizeRedirectionBitmaps = @as(i32, 97); pub const INDEX_DrvAccumulateD3DDirtyRect = @as(i32, 98); pub const INDEX_DrvStartDxInterop = @as(i32, 99); pub const INDEX_DrvEndDxInterop = @as(i32, 100); pub const INDEX_DrvLockDisplayArea = @as(i32, 101); pub const INDEX_DrvUnlockDisplayArea = @as(i32, 102); pub const INDEX_DrvSurfaceComplete = @as(i32, 103); pub const INDEX_LAST = @as(i32, 89); pub const GCAPS_BEZIERS = @as(u32, 1); pub const GCAPS_GEOMETRICWIDE = @as(u32, 2); pub const GCAPS_ALTERNATEFILL = @as(u32, 4); pub const GCAPS_WINDINGFILL = @as(u32, 8); pub const GCAPS_HALFTONE = @as(u32, 16); pub const GCAPS_COLOR_DITHER = @as(u32, 32); pub const GCAPS_HORIZSTRIKE = @as(u32, 64); pub const GCAPS_VERTSTRIKE = @as(u32, 128); pub const GCAPS_OPAQUERECT = @as(u32, 256); pub const GCAPS_VECTORFONT = @as(u32, 512); pub const GCAPS_MONO_DITHER = @as(u32, 1024); pub const GCAPS_ASYNCCHANGE = @as(u32, 2048); pub const GCAPS_ASYNCMOVE = @as(u32, 4096); pub const GCAPS_DONTJOURNAL = @as(u32, 8192); pub const GCAPS_DIRECTDRAW = @as(u32, 16384); pub const GCAPS_ARBRUSHOPAQUE = @as(u32, 32768); pub const GCAPS_PANNING = @as(u32, 65536); pub const GCAPS_HIGHRESTEXT = @as(u32, 262144); pub const GCAPS_PALMANAGED = @as(u32, 524288); pub const GCAPS_DITHERONREALIZE = @as(u32, 2097152); pub const GCAPS_NO64BITMEMACCESS = @as(u32, 4194304); pub const GCAPS_FORCEDITHER = @as(u32, 8388608); pub const GCAPS_GRAY16 = @as(u32, 16777216); pub const GCAPS_ICM = @as(u32, 33554432); pub const GCAPS_CMYKCOLOR = @as(u32, 67108864); pub const GCAPS_LAYERED = @as(u32, 134217728); pub const GCAPS_ARBRUSHTEXT = @as(u32, 268435456); pub const GCAPS_SCREENPRECISION = @as(u32, 536870912); pub const GCAPS_FONT_RASTERIZER = @as(u32, 1073741824); pub const GCAPS_NUP = @as(u32, 2147483648); pub const GCAPS2_JPEGSRC = @as(u32, 1); pub const GCAPS2_xxxx = @as(u32, 2); pub const GCAPS2_PNGSRC = @as(u32, 8); pub const GCAPS2_CHANGEGAMMARAMP = @as(u32, 16); pub const GCAPS2_ALPHACURSOR = @as(u32, 32); pub const GCAPS2_SYNCFLUSH = @as(u32, 64); pub const GCAPS2_SYNCTIMER = @as(u32, 128); pub const GCAPS2_ICD_MULTIMON = @as(u32, 256); pub const GCAPS2_MOUSETRAILS = @as(u32, 512); pub const GCAPS2_RESERVED1 = @as(u32, 1024); pub const GCAPS2_REMOTEDRIVER = @as(u32, 1024); pub const GCAPS2_EXCLUDELAYERED = @as(u32, 2048); pub const GCAPS2_INCLUDEAPIBITMAPS = @as(u32, 4096); pub const GCAPS2_SHOWHIDDENPOINTER = @as(u32, 8192); pub const GCAPS2_CLEARTYPE = @as(u32, 16384); pub const GCAPS2_ACC_DRIVER = @as(u32, 32768); pub const GCAPS2_BITMAPEXREUSE = @as(u32, 65536); pub const LA_GEOMETRIC = @as(u32, 1); pub const LA_ALTERNATE = @as(u32, 2); pub const LA_STARTGAP = @as(u32, 4); pub const LA_STYLED = @as(u32, 8); pub const JOIN_ROUND = @as(i32, 0); pub const JOIN_BEVEL = @as(i32, 1); pub const JOIN_MITER = @as(i32, 2); pub const ENDCAP_ROUND = @as(i32, 0); pub const ENDCAP_SQUARE = @as(i32, 1); pub const ENDCAP_BUTT = @as(i32, 2); pub const PRIMARY_ORDER_ABC = @as(u32, 0); pub const PRIMARY_ORDER_ACB = @as(u32, 1); pub const PRIMARY_ORDER_BAC = @as(u32, 2); pub const PRIMARY_ORDER_BCA = @as(u32, 3); pub const PRIMARY_ORDER_CBA = @as(u32, 4); pub const PRIMARY_ORDER_CAB = @as(u32, 5); pub const HT_PATSIZE_2x2 = @as(u32, 0); pub const HT_PATSIZE_2x2_M = @as(u32, 1); pub const HT_PATSIZE_4x4 = @as(u32, 2); pub const HT_PATSIZE_4x4_M = @as(u32, 3); pub const HT_PATSIZE_6x6 = @as(u32, 4); pub const HT_PATSIZE_6x6_M = @as(u32, 5); pub const HT_PATSIZE_8x8 = @as(u32, 6); pub const HT_PATSIZE_8x8_M = @as(u32, 7); pub const HT_PATSIZE_10x10 = @as(u32, 8); pub const HT_PATSIZE_10x10_M = @as(u32, 9); pub const HT_PATSIZE_12x12 = @as(u32, 10); pub const HT_PATSIZE_12x12_M = @as(u32, 11); pub const HT_PATSIZE_14x14 = @as(u32, 12); pub const HT_PATSIZE_14x14_M = @as(u32, 13); pub const HT_PATSIZE_16x16 = @as(u32, 14); pub const HT_PATSIZE_16x16_M = @as(u32, 15); pub const HT_PATSIZE_SUPERCELL = @as(u32, 16); pub const HT_PATSIZE_SUPERCELL_M = @as(u32, 17); pub const HT_PATSIZE_USER = @as(u32, 18); pub const HT_PATSIZE_MAX_INDEX = @as(u32, 18); pub const HT_PATSIZE_DEFAULT = @as(u32, 17); pub const HT_USERPAT_CX_MIN = @as(u32, 4); pub const HT_USERPAT_CX_MAX = @as(u32, 256); pub const HT_USERPAT_CY_MIN = @as(u32, 4); pub const HT_USERPAT_CY_MAX = @as(u32, 256); pub const HT_FORMAT_1BPP = @as(u32, 0); pub const HT_FORMAT_4BPP = @as(u32, 2); pub const HT_FORMAT_4BPP_IRGB = @as(u32, 3); pub const HT_FORMAT_8BPP = @as(u32, 4); pub const HT_FORMAT_16BPP = @as(u32, 5); pub const HT_FORMAT_24BPP = @as(u32, 6); pub const HT_FORMAT_32BPP = @as(u32, 7); pub const WINDDI_MAX_BROADCAST_CONTEXT = @as(u32, 64); pub const HT_FLAG_SQUARE_DEVICE_PEL = @as(u32, 1); pub const HT_FLAG_HAS_BLACK_DYE = @as(u32, 2); pub const HT_FLAG_ADDITIVE_PRIMS = @as(u32, 4); pub const HT_FLAG_USE_8BPP_BITMASK = @as(u32, 8); pub const HT_FLAG_INK_HIGH_ABSORPTION = @as(u32, 16); pub const HT_FLAG_INK_ABSORPTION_INDICES = @as(u32, 96); pub const HT_FLAG_DO_DEVCLR_XFORM = @as(u32, 128); pub const HT_FLAG_OUTPUT_CMY = @as(u32, 256); pub const HT_FLAG_PRINT_DRAFT_MODE = @as(u32, 512); pub const HT_FLAG_INVERT_8BPP_BITMASK_IDX = @as(u32, 1024); pub const HT_FLAG_8BPP_CMY332_MASK = @as(u32, 4278190080); pub const HT_FLAG_INK_ABSORPTION_IDX0 = @as(u32, 0); pub const HT_FLAG_INK_ABSORPTION_IDX1 = @as(u32, 32); pub const HT_FLAG_INK_ABSORPTION_IDX2 = @as(u32, 64); pub const HT_FLAG_INK_ABSORPTION_IDX3 = @as(u32, 96); pub const HT_FLAG_NORMAL_INK_ABSORPTION = @as(u32, 0); pub const HT_FLAG_LOW_INK_ABSORPTION = @as(u32, 32); pub const HT_FLAG_LOWER_INK_ABSORPTION = @as(u32, 64); pub const HT_FLAG_LOWEST_INK_ABSORPTION = @as(u32, 96); pub const PPC_DEFAULT = @as(u32, 0); pub const PPC_UNDEFINED = @as(u32, 1); pub const PPC_RGB_ORDER_VERTICAL_STRIPES = @as(u32, 2); pub const PPC_BGR_ORDER_VERTICAL_STRIPES = @as(u32, 3); pub const PPC_RGB_ORDER_HORIZONTAL_STRIPES = @as(u32, 4); pub const PPC_BGR_ORDER_HORIZONTAL_STRIPES = @as(u32, 5); pub const PPG_DEFAULT = @as(u32, 0); pub const PPG_SRGB = @as(u32, 1); pub const BR_DEVICE_ICM = @as(u32, 1); pub const BR_HOST_ICM = @as(u32, 2); pub const BR_CMYKCOLOR = @as(u32, 4); pub const BR_ORIGCOLOR = @as(u32, 8); pub const FO_SIM_BOLD = @as(u32, 8192); pub const FO_SIM_ITALIC = @as(u32, 16384); pub const FO_EM_HEIGHT = @as(u32, 32768); pub const FO_GRAY16 = @as(u32, 65536); pub const FO_NOGRAY16 = @as(u32, 131072); pub const FO_NOHINTS = @as(u32, 262144); pub const FO_NO_CHOICE = @as(u32, 524288); pub const FO_CFF = @as(u32, 1048576); pub const FO_POSTSCRIPT = @as(u32, 2097152); pub const FO_MULTIPLEMASTER = @as(u32, 4194304); pub const FO_VERT_FACE = @as(u32, 8388608); pub const FO_DBCS_FONT = @as(u32, 16777216); pub const FO_NOCLEARTYPE = @as(u32, 33554432); pub const FO_CLEARTYPE_X = @as(u32, 268435456); pub const FO_CLEARTYPE_Y = @as(u32, 536870912); pub const FO_CLEARTYPENATURAL_X = @as(u32, 1073741824); pub const DC_TRIVIAL = @as(u32, 0); pub const DC_RECT = @as(u32, 1); pub const DC_COMPLEX = @as(u32, 3); pub const FC_RECT = @as(u32, 1); pub const FC_RECT4 = @as(u32, 2); pub const FC_COMPLEX = @as(u32, 3); pub const TC_RECTANGLES = @as(u32, 0); pub const TC_PATHOBJ = @as(u32, 2); pub const OC_BANK_CLIP = @as(u32, 1); pub const CT_RECTANGLES = @as(i32, 0); pub const CD_RIGHTDOWN = @as(i32, 0); pub const CD_LEFTDOWN = @as(i32, 1); pub const CD_RIGHTUP = @as(i32, 2); pub const CD_LEFTUP = @as(i32, 3); pub const CD_ANY = @as(i32, 4); pub const CD_LEFTWARDS = @as(i32, 1); pub const CD_UPWARDS = @as(i32, 2); pub const FO_HGLYPHS = @as(i32, 0); pub const FO_GLYPHBITS = @as(i32, 1); pub const FO_PATHOBJ = @as(i32, 2); pub const FD_NEGATIVE_FONT = @as(i32, 1); pub const FO_DEVICE_FONT = @as(i32, 1); pub const FO_OUTLINE_CAPABLE = @as(i32, 2); pub const SO_FLAG_DEFAULT_PLACEMENT = @as(u32, 1); pub const SO_HORIZONTAL = @as(u32, 2); pub const SO_VERTICAL = @as(u32, 4); pub const SO_REVERSED = @as(u32, 8); pub const SO_ZERO_BEARINGS = @as(u32, 16); pub const SO_CHAR_INC_EQUAL_BM_BASE = @as(u32, 32); pub const SO_MAXEXT_EQUAL_BM_SIDE = @as(u32, 64); pub const SO_DO_NOT_SUBSTITUTE_DEVICE_FONT = @as(u32, 128); pub const SO_GLYPHINDEX_TEXTOUT = @as(u32, 256); pub const SO_ESC_NOT_ORIENT = @as(u32, 512); pub const SO_DXDY = @as(u32, 1024); pub const SO_CHARACTER_EXTRA = @as(u32, 2048); pub const SO_BREAK_EXTRA = @as(u32, 4096); pub const FO_ATTR_MODE_ROTATE = @as(u32, 1); pub const PAL_INDEXED = @as(u32, 1); pub const PAL_BITFIELDS = @as(u32, 2); pub const PAL_RGB = @as(u32, 4); pub const PAL_BGR = @as(u32, 8); pub const PAL_CMYK = @as(u32, 16); pub const PO_BEZIERS = @as(u32, 1); pub const PO_ELLIPSE = @as(u32, 2); pub const PO_ALL_INTEGERS = @as(u32, 4); pub const PO_ENUM_AS_INTEGERS = @as(u32, 8); pub const PO_WIDENED = @as(u32, 16); pub const PD_BEGINSUBPATH = @as(u32, 1); pub const PD_ENDSUBPATH = @as(u32, 2); pub const PD_RESETSTYLE = @as(u32, 4); pub const PD_CLOSEFIGURE = @as(u32, 8); pub const PD_BEZIERS = @as(u32, 16); pub const SGI_EXTRASPACE = @as(u32, 0); pub const STYPE_BITMAP = @as(i32, 0); pub const STYPE_DEVBITMAP = @as(i32, 3); pub const BMF_1BPP = @as(i32, 1); pub const BMF_4BPP = @as(i32, 2); pub const BMF_8BPP = @as(i32, 3); pub const BMF_16BPP = @as(i32, 4); pub const BMF_24BPP = @as(i32, 5); pub const BMF_32BPP = @as(i32, 6); pub const BMF_4RLE = @as(i32, 7); pub const BMF_8RLE = @as(i32, 8); pub const BMF_JPEG = @as(i32, 9); pub const BMF_PNG = @as(i32, 10); pub const BMF_TOPDOWN = @as(u32, 1); pub const BMF_NOZEROINIT = @as(u32, 2); pub const BMF_DONTCACHE = @as(u32, 4); pub const BMF_USERMEM = @as(u32, 8); pub const BMF_KMSECTION = @as(u32, 16); pub const BMF_NOTSYSMEM = @as(u32, 32); pub const BMF_WINDOW_BLT = @as(u32, 64); pub const BMF_UMPDMEM = @as(u32, 128); pub const BMF_TEMP_ALPHA = @as(u32, 256); pub const BMF_ACC_NOTIFY = @as(u32, 32768); pub const BMF_RMT_ENTER = @as(u32, 16384); pub const BMF_RESERVED = @as(u32, 15872); pub const GX_IDENTITY = @as(i32, 0); pub const GX_OFFSET = @as(i32, 1); pub const GX_SCALE = @as(i32, 2); pub const GX_GENERAL = @as(i32, 3); pub const XF_LTOL = @as(i32, 0); pub const XF_INV_LTOL = @as(i32, 1); pub const XF_LTOFX = @as(i32, 2); pub const XF_INV_FXTOL = @as(i32, 3); pub const XO_TRIVIAL = @as(u32, 1); pub const XO_TABLE = @as(u32, 2); pub const XO_TO_MONO = @as(u32, 4); pub const XO_FROM_CMYK = @as(u32, 8); pub const XO_DEVICE_ICM = @as(u32, 16); pub const XO_HOST_ICM = @as(u32, 32); pub const XO_SRCPALETTE = @as(u32, 1); pub const XO_DESTPALETTE = @as(u32, 2); pub const XO_DESTDCPALETTE = @as(u32, 3); pub const XO_SRCBITFIELDS = @as(u32, 4); pub const XO_DESTBITFIELDS = @as(u32, 5); pub const HOOK_BITBLT = @as(u32, 1); pub const HOOK_STRETCHBLT = @as(u32, 2); pub const HOOK_PLGBLT = @as(u32, 4); pub const HOOK_TEXTOUT = @as(u32, 8); pub const HOOK_PAINT = @as(u32, 16); pub const HOOK_STROKEPATH = @as(u32, 32); pub const HOOK_FILLPATH = @as(u32, 64); pub const HOOK_STROKEANDFILLPATH = @as(u32, 128); pub const HOOK_LINETO = @as(u32, 256); pub const HOOK_COPYBITS = @as(u32, 1024); pub const HOOK_MOVEPANNING = @as(u32, 2048); pub const HOOK_SYNCHRONIZE = @as(u32, 4096); pub const HOOK_STRETCHBLTROP = @as(u32, 8192); pub const HOOK_SYNCHRONIZEACCESS = @as(u32, 16384); pub const HOOK_TRANSPARENTBLT = @as(u32, 32768); pub const HOOK_ALPHABLEND = @as(u32, 65536); pub const HOOK_GRADIENTFILL = @as(u32, 131072); pub const HOOK_FLAGS = @as(u32, 243199); pub const MS_NOTSYSTEMMEMORY = @as(u32, 1); pub const MS_SHAREDACCESS = @as(u32, 2); pub const MS_CDDDEVICEBITMAP = @as(u32, 4); pub const MS_REUSEDDEVICEBITMAP = @as(u32, 8); pub const DRVQUERY_USERMODE = @as(u32, 1); pub const HS_DDI_MAX = @as(u32, 6); pub const DRD_SUCCESS = @as(u32, 0); pub const DRD_ERROR = @as(u32, 1); pub const SS_SAVE = @as(u32, 0); pub const SS_RESTORE = @as(u32, 1); pub const SS_FREE = @as(u32, 2); pub const CDBEX_REDIRECTION = @as(u32, 1); pub const CDBEX_DXINTEROP = @as(u32, 2); pub const CDBEX_NTSHAREDSURFACEHANDLE = @as(u32, 4); pub const CDBEX_CROSSADAPTER = @as(u32, 8); pub const CDBEX_REUSE = @as(u32, 16); pub const WINDDI_MAXSETPALETTECOLORS = @as(u32, 256); pub const WINDDI_MAXSETPALETTECOLORINDEX = @as(u32, 255); pub const DM_DEFAULT = @as(u32, 1); pub const DM_MONOCHROME = @as(u32, 2); pub const DCR_SOLID = @as(u32, 0); pub const DCR_DRIVER = @as(u32, 1); pub const DCR_HALFTONE = @as(u32, 2); pub const RB_DITHERCOLOR = @as(i32, -2147483648); pub const QFT_LIGATURES = @as(i32, 1); pub const QFT_KERNPAIRS = @as(i32, 2); pub const QFT_GLYPHSET = @as(i32, 3); pub const QFD_GLYPHANDBITMAP = @as(i32, 1); pub const QFD_GLYPHANDOUTLINE = @as(i32, 2); pub const QFD_MAXEXTENTS = @as(i32, 3); pub const QFD_TT_GLYPHANDBITMAP = @as(i32, 4); pub const QFD_TT_GRAY1_BITMAP = @as(i32, 5); pub const QFD_TT_GRAY2_BITMAP = @as(i32, 6); pub const QFD_TT_GRAY4_BITMAP = @as(i32, 8); pub const QFD_TT_GRAY8_BITMAP = @as(i32, 9); pub const QFD_TT_MONO_BITMAP = @as(i32, 5); pub const QC_OUTLINES = @as(u32, 1); pub const QC_1BIT = @as(u32, 2); pub const QC_4BIT = @as(u32, 4); pub const FF_SIGNATURE_VERIFIED = @as(u32, 1); pub const FF_IGNORED_SIGNATURE = @as(u32, 2); pub const QAW_GETWIDTHS = @as(u32, 0); pub const QAW_GETEASYWIDTHS = @as(u32, 1); pub const TTO_METRICS_ONLY = @as(u32, 1); pub const TTO_QUBICS = @as(u32, 2); pub const TTO_UNHINTED = @as(u32, 4); pub const QFF_DESCRIPTION = @as(i32, 1); pub const QFF_NUMFACES = @as(i32, 2); pub const FP_ALTERNATEMODE = @as(i32, 1); pub const FP_WINDINGMODE = @as(i32, 2); pub const SPS_ERROR = @as(u32, 0); pub const SPS_DECLINE = @as(u32, 1); pub const SPS_ACCEPT_NOEXCLUDE = @as(u32, 2); pub const SPS_ACCEPT_EXCLUDE = @as(u32, 3); pub const SPS_ACCEPT_SYNCHRONOUS = @as(u32, 4); pub const SPS_CHANGE = @as(i32, 1); pub const SPS_ASYNCCHANGE = @as(i32, 2); pub const SPS_ANIMATESTART = @as(i32, 4); pub const SPS_ANIMATEUPDATE = @as(i32, 8); pub const SPS_ALPHA = @as(i32, 16); pub const SPS_RESERVED = @as(i32, 32); pub const SPS_RESERVED1 = @as(i32, 64); pub const SPS_FLAGSMASK = @as(i32, 255); pub const SPS_LENGTHMASK = @as(i32, 3840); pub const SPS_FREQMASK = @as(i32, 1044480); pub const ED_ABORTDOC = @as(u32, 1); pub const IGRF_RGB_256BYTES = @as(u32, 0); pub const IGRF_RGB_256WORDS = @as(u32, 1); pub const QDS_CHECKJPEGFORMAT = @as(u32, 0); pub const QDS_CHECKPNGFORMAT = @as(u32, 1); pub const DSS_TIMER_EVENT = @as(u32, 1); pub const DSS_FLUSH_EVENT = @as(u32, 2); pub const DSS_RESERVED = @as(u32, 4); pub const DSS_RESERVED1 = @as(u32, 8); pub const DSS_RESERVED2 = @as(u32, 16); pub const DN_ACCELERATION_LEVEL = @as(u32, 1); pub const DN_DEVICE_ORIGIN = @as(u32, 2); pub const DN_SLEEP_MODE = @as(u32, 3); pub const DN_DRAWING_BEGIN = @as(u32, 4); pub const DN_ASSOCIATE_WINDOW = @as(u32, 5); pub const DN_COMPOSITION_CHANGED = @as(u32, 6); pub const DN_DRAWING_BEGIN_APIBITMAP = @as(u32, 7); pub const DN_SURFOBJ_DESTRUCTION = @as(u32, 8); pub const WOC_RGN_CLIENT_DELTA = @as(u32, 1); pub const WOC_RGN_CLIENT = @as(u32, 2); pub const WOC_RGN_SURFACE_DELTA = @as(u32, 4); pub const WOC_RGN_SURFACE = @as(u32, 8); pub const WOC_CHANGED = @as(u32, 16); pub const WOC_DELETE = @as(u32, 32); pub const WOC_DRAWN = @as(u32, 64); pub const WOC_SPRITE_OVERLAP = @as(u32, 128); pub const WOC_SPRITE_NO_OVERLAP = @as(u32, 256); pub const WOC_RGN_SPRITE = @as(u32, 512); pub const WO_RGN_CLIENT_DELTA = @as(u32, 1); pub const WO_RGN_CLIENT = @as(u32, 2); pub const WO_RGN_SURFACE_DELTA = @as(u32, 4); pub const WO_RGN_SURFACE = @as(u32, 8); pub const WO_RGN_UPDATE_ALL = @as(u32, 16); pub const WO_RGN_WINDOW = @as(u32, 32); pub const WO_DRAW_NOTIFY = @as(u32, 64); pub const WO_SPRITE_NOTIFY = @as(u32, 128); pub const WO_RGN_DESKTOP_COORD = @as(u32, 256); pub const WO_RGN_SPRITE = @as(u32, 512); pub const EHN_RESTORED = @as(u32, 0); pub const EHN_ERROR = @as(u32, 1); pub const ECS_TEARDOWN = @as(u32, 1); pub const ECS_REDRAW = @as(u32, 2); pub const DEVHTADJF_COLOR_DEVICE = @as(u32, 1); pub const DEVHTADJF_ADDITIVE_DEVICE = @as(u32, 2); pub const FL_ZERO_MEMORY = @as(u32, 1); pub const FL_NONPAGED_MEMORY = @as(u32, 2); pub const FL_NON_SESSION = @as(u32, 4); pub const QSA_MMX = @as(u32, 256); pub const QSA_SSE = @as(u32, 8192); pub const QSA_3DNOW = @as(u32, 16384); pub const QSA_SSE1 = @as(u32, 8192); pub const QSA_SSE2 = @as(u32, 65536); pub const QSA_SSE3 = @as(u32, 524288); pub const ENG_FNT_CACHE_READ_FAULT = @as(u32, 1); pub const ENG_FNT_CACHE_WRITE_FAULT = @as(u32, 2); pub const DRH_APIBITMAP = @as(u32, 1); pub const MC_CAPS_NONE = @as(u32, 0); pub const MC_CAPS_MONITOR_TECHNOLOGY_TYPE = @as(u32, 1); pub const MC_CAPS_BRIGHTNESS = @as(u32, 2); pub const MC_CAPS_CONTRAST = @as(u32, 4); pub const MC_CAPS_COLOR_TEMPERATURE = @as(u32, 8); pub const MC_CAPS_RED_GREEN_BLUE_GAIN = @as(u32, 16); pub const MC_CAPS_RED_GREEN_BLUE_DRIVE = @as(u32, 32); pub const MC_CAPS_DEGAUSS = @as(u32, 64); pub const MC_CAPS_DISPLAY_AREA_POSITION = @as(u32, 128); pub const MC_CAPS_DISPLAY_AREA_SIZE = @as(u32, 256); pub const MC_CAPS_RESTORE_FACTORY_DEFAULTS = @as(u32, 1024); pub const MC_CAPS_RESTORE_FACTORY_COLOR_DEFAULTS = @as(u32, 2048); pub const MC_RESTORE_FACTORY_DEFAULTS_ENABLES_MONITOR_SETTINGS = @as(u32, 4096); pub const MC_SUPPORTED_COLOR_TEMPERATURE_NONE = @as(u32, 0); pub const MC_SUPPORTED_COLOR_TEMPERATURE_4000K = @as(u32, 1); pub const MC_SUPPORTED_COLOR_TEMPERATURE_5000K = @as(u32, 2); pub const MC_SUPPORTED_COLOR_TEMPERATURE_6500K = @as(u32, 4); pub const MC_SUPPORTED_COLOR_TEMPERATURE_7500K = @as(u32, 8); pub const MC_SUPPORTED_COLOR_TEMPERATURE_8200K = @as(u32, 16); pub const MC_SUPPORTED_COLOR_TEMPERATURE_9300K = @as(u32, 32); pub const MC_SUPPORTED_COLOR_TEMPERATURE_10000K = @as(u32, 64); pub const MC_SUPPORTED_COLOR_TEMPERATURE_11500K = @as(u32, 128); pub const PHYSICAL_MONITOR_DESCRIPTION_SIZE = @as(u32, 128); pub const GETCONNECTEDIDS_TARGET = @as(u32, 0); pub const GETCONNECTEDIDS_SOURCE = @as(u32, 1); pub const S_INIT = @as(u32, 2); pub const SETCONFIGURATION_STATUS_APPLIED = @as(u32, 0); pub const SETCONFIGURATION_STATUS_ADDITIONAL = @as(u32, 1); pub const SETCONFIGURATION_STATUS_OVERRIDDEN = @as(u32, 2); //-------------------------------------------------------------------------------- // Section: Types (316) //-------------------------------------------------------------------------------- // TODO: this type has a FreeFunc 'EngDeleteSemaphore', what can Zig do with this information? pub const HSEMAPHORE = *opaque {}; pub const HSURF = *opaque {}; pub const HFASTMUTEX = *opaque {}; pub const HDRVOBJ = *opaque {}; pub const HDEV = *opaque {}; pub const HBM = *opaque {}; pub const DHSURF = isize; pub const DHPDEV = isize; pub const DISPLAYCONFIG_RATIONAL = extern struct { Numerator: u32, Denominator: u32, }; pub const DISPLAYCONFIG_VIDEO_OUTPUT_TECHNOLOGY = enum(i32) { OTHER = -1, HD15 = 0, SVIDEO = 1, COMPOSITE_VIDEO = 2, COMPONENT_VIDEO = 3, DVI = 4, HDMI = 5, LVDS = 6, D_JPN = 8, SDI = 9, DISPLAYPORT_EXTERNAL = 10, DISPLAYPORT_EMBEDDED = 11, UDI_EXTERNAL = 12, UDI_EMBEDDED = 13, SDTVDONGLE = 14, MIRACAST = 15, INDIRECT_WIRED = 16, INDIRECT_VIRTUAL = 17, DISPLAYPORT_USB_TUNNEL = 18, INTERNAL = -2147483648, // FORCE_UINT32 = -1, this enum value conflicts with OTHER }; pub const DISPLAYCONFIG_OUTPUT_TECHNOLOGY_OTHER = DISPLAYCONFIG_VIDEO_OUTPUT_TECHNOLOGY.OTHER; pub const DISPLAYCONFIG_OUTPUT_TECHNOLOGY_HD15 = DISPLAYCONFIG_VIDEO_OUTPUT_TECHNOLOGY.HD15; pub const DISPLAYCONFIG_OUTPUT_TECHNOLOGY_SVIDEO = DISPLAYCONFIG_VIDEO_OUTPUT_TECHNOLOGY.SVIDEO; pub const DISPLAYCONFIG_OUTPUT_TECHNOLOGY_COMPOSITE_VIDEO = DISPLAYCONFIG_VIDEO_OUTPUT_TECHNOLOGY.COMPOSITE_VIDEO; pub const DISPLAYCONFIG_OUTPUT_TECHNOLOGY_COMPONENT_VIDEO = DISPLAYCONFIG_VIDEO_OUTPUT_TECHNOLOGY.COMPONENT_VIDEO; pub const DISPLAYCONFIG_OUTPUT_TECHNOLOGY_DVI = DISPLAYCONFIG_VIDEO_OUTPUT_TECHNOLOGY.DVI; pub const DISPLAYCONFIG_OUTPUT_TECHNOLOGY_HDMI = DISPLAYCONFIG_VIDEO_OUTPUT_TECHNOLOGY.HDMI; pub const DISPLAYCONFIG_OUTPUT_TECHNOLOGY_LVDS = DISPLAYCONFIG_VIDEO_OUTPUT_TECHNOLOGY.LVDS; pub const DISPLAYCONFIG_OUTPUT_TECHNOLOGY_D_JPN = DISPLAYCONFIG_VIDEO_OUTPUT_TECHNOLOGY.D_JPN; pub const DISPLAYCONFIG_OUTPUT_TECHNOLOGY_SDI = DISPLAYCONFIG_VIDEO_OUTPUT_TECHNOLOGY.SDI; pub const DISPLAYCONFIG_OUTPUT_TECHNOLOGY_DISPLAYPORT_EXTERNAL = DISPLAYCONFIG_VIDEO_OUTPUT_TECHNOLOGY.DISPLAYPORT_EXTERNAL; pub const DISPLAYCONFIG_OUTPUT_TECHNOLOGY_DISPLAYPORT_EMBEDDED = DISPLAYCONFIG_VIDEO_OUTPUT_TECHNOLOGY.DISPLAYPORT_EMBEDDED; pub const DISPLAYCONFIG_OUTPUT_TECHNOLOGY_UDI_EXTERNAL = DISPLAYCONFIG_VIDEO_OUTPUT_TECHNOLOGY.UDI_EXTERNAL; pub const DISPLAYCONFIG_OUTPUT_TECHNOLOGY_UDI_EMBEDDED = DISPLAYCONFIG_VIDEO_OUTPUT_TECHNOLOGY.UDI_EMBEDDED; pub const DISPLAYCONFIG_OUTPUT_TECHNOLOGY_SDTVDONGLE = DISPLAYCONFIG_VIDEO_OUTPUT_TECHNOLOGY.SDTVDONGLE; pub const DISPLAYCONFIG_OUTPUT_TECHNOLOGY_MIRACAST = DISPLAYCONFIG_VIDEO_OUTPUT_TECHNOLOGY.MIRACAST; pub const DISPLAYCONFIG_OUTPUT_TECHNOLOGY_INDIRECT_WIRED = DISPLAYCONFIG_VIDEO_OUTPUT_TECHNOLOGY.INDIRECT_WIRED; pub const DISPLAYCONFIG_OUTPUT_TECHNOLOGY_INDIRECT_VIRTUAL = DISPLAYCONFIG_VIDEO_OUTPUT_TECHNOLOGY.INDIRECT_VIRTUAL; pub const DISPLAYCONFIG_OUTPUT_TECHNOLOGY_DISPLAYPORT_USB_TUNNEL = DISPLAYCONFIG_VIDEO_OUTPUT_TECHNOLOGY.DISPLAYPORT_USB_TUNNEL; pub const DISPLAYCONFIG_OUTPUT_TECHNOLOGY_INTERNAL = DISPLAYCONFIG_VIDEO_OUTPUT_TECHNOLOGY.INTERNAL; pub const DISPLAYCONFIG_OUTPUT_TECHNOLOGY_FORCE_UINT32 = DISPLAYCONFIG_VIDEO_OUTPUT_TECHNOLOGY.OTHER; pub const DISPLAYCONFIG_SCANLINE_ORDERING = enum(i32) { UNSPECIFIED = 0, PROGRESSIVE = 1, INTERLACED = 2, // INTERLACED_UPPERFIELDFIRST = 2, this enum value conflicts with INTERLACED INTERLACED_LOWERFIELDFIRST = 3, FORCE_UINT32 = -1, }; pub const DISPLAYCONFIG_SCANLINE_ORDERING_UNSPECIFIED = DISPLAYCONFIG_SCANLINE_ORDERING.UNSPECIFIED; pub const DISPLAYCONFIG_SCANLINE_ORDERING_PROGRESSIVE = DISPLAYCONFIG_SCANLINE_ORDERING.PROGRESSIVE; pub const DISPLAYCONFIG_SCANLINE_ORDERING_INTERLACED = DISPLAYCONFIG_SCANLINE_ORDERING.INTERLACED; pub const DISPLAYCONFIG_SCANLINE_ORDERING_INTERLACED_UPPERFIELDFIRST = DISPLAYCONFIG_SCANLINE_ORDERING.INTERLACED; pub const DISPLAYCONFIG_SCANLINE_ORDERING_INTERLACED_LOWERFIELDFIRST = DISPLAYCONFIG_SCANLINE_ORDERING.INTERLACED_LOWERFIELDFIRST; pub const DISPLAYCONFIG_SCANLINE_ORDERING_FORCE_UINT32 = DISPLAYCONFIG_SCANLINE_ORDERING.FORCE_UINT32; pub const DISPLAYCONFIG_2DREGION = extern struct { cx: u32, cy: u32, }; pub const DISPLAYCONFIG_VIDEO_SIGNAL_INFO = extern struct { pixelRate: u64, hSyncFreq: DISPLAYCONFIG_RATIONAL, vSyncFreq: DISPLAYCONFIG_RATIONAL, activeSize: DISPLAYCONFIG_2DREGION, totalSize: DISPLAYCONFIG_2DREGION, Anonymous: extern union { AdditionalSignalInfo: extern struct { _bitfield: u32, }, videoStandard: u32, }, scanLineOrdering: DISPLAYCONFIG_SCANLINE_ORDERING, }; pub const DISPLAYCONFIG_SCALING = enum(i32) { IDENTITY = 1, CENTERED = 2, STRETCHED = 3, ASPECTRATIOCENTEREDMAX = 4, CUSTOM = 5, PREFERRED = 128, FORCE_UINT32 = -1, }; pub const DISPLAYCONFIG_SCALING_IDENTITY = DISPLAYCONFIG_SCALING.IDENTITY; pub const DISPLAYCONFIG_SCALING_CENTERED = DISPLAYCONFIG_SCALING.CENTERED; pub const DISPLAYCONFIG_SCALING_STRETCHED = DISPLAYCONFIG_SCALING.STRETCHED; pub const DISPLAYCONFIG_SCALING_ASPECTRATIOCENTEREDMAX = DISPLAYCONFIG_SCALING.ASPECTRATIOCENTEREDMAX; pub const DISPLAYCONFIG_SCALING_CUSTOM = DISPLAYCONFIG_SCALING.CUSTOM; pub const DISPLAYCONFIG_SCALING_PREFERRED = DISPLAYCONFIG_SCALING.PREFERRED; pub const DISPLAYCONFIG_SCALING_FORCE_UINT32 = DISPLAYCONFIG_SCALING.FORCE_UINT32; pub const DISPLAYCONFIG_ROTATION = enum(i32) { IDENTITY = 1, ROTATE90 = 2, ROTATE180 = 3, ROTATE270 = 4, FORCE_UINT32 = -1, }; pub const DISPLAYCONFIG_ROTATION_IDENTITY = DISPLAYCONFIG_ROTATION.IDENTITY; pub const DISPLAYCONFIG_ROTATION_ROTATE90 = DISPLAYCONFIG_ROTATION.ROTATE90; pub const DISPLAYCONFIG_ROTATION_ROTATE180 = DISPLAYCONFIG_ROTATION.ROTATE180; pub const DISPLAYCONFIG_ROTATION_ROTATE270 = DISPLAYCONFIG_ROTATION.ROTATE270; pub const DISPLAYCONFIG_ROTATION_FORCE_UINT32 = DISPLAYCONFIG_ROTATION.FORCE_UINT32; pub const DISPLAYCONFIG_MODE_INFO_TYPE = enum(i32) { SOURCE = 1, TARGET = 2, DESKTOP_IMAGE = 3, FORCE_UINT32 = -1, }; pub const DISPLAYCONFIG_MODE_INFO_TYPE_SOURCE = DISPLAYCONFIG_MODE_INFO_TYPE.SOURCE; pub const DISPLAYCONFIG_MODE_INFO_TYPE_TARGET = DISPLAYCONFIG_MODE_INFO_TYPE.TARGET; pub const DISPLAYCONFIG_MODE_INFO_TYPE_DESKTOP_IMAGE = DISPLAYCONFIG_MODE_INFO_TYPE.DESKTOP_IMAGE; pub const DISPLAYCONFIG_MODE_INFO_TYPE_FORCE_UINT32 = DISPLAYCONFIG_MODE_INFO_TYPE.FORCE_UINT32; pub const DISPLAYCONFIG_PIXELFORMAT = enum(i32) { @"8BPP" = 1, @"16BPP" = 2, @"24BPP" = 3, @"32BPP" = 4, NONGDI = 5, FORCE_UINT32 = -1, }; pub const DISPLAYCONFIG_PIXELFORMAT_8BPP = DISPLAYCONFIG_PIXELFORMAT.@"8BPP"; pub const DISPLAYCONFIG_PIXELFORMAT_16BPP = DISPLAYCONFIG_PIXELFORMAT.@"16BPP"; pub const DISPLAYCONFIG_PIXELFORMAT_24BPP = DISPLAYCONFIG_PIXELFORMAT.@"24BPP"; pub const DISPLAYCONFIG_PIXELFORMAT_32BPP = DISPLAYCONFIG_PIXELFORMAT.@"32BPP"; pub const DISPLAYCONFIG_PIXELFORMAT_NONGDI = DISPLAYCONFIG_PIXELFORMAT.NONGDI; pub const DISPLAYCONFIG_PIXELFORMAT_FORCE_UINT32 = DISPLAYCONFIG_PIXELFORMAT.FORCE_UINT32; pub const DISPLAYCONFIG_SOURCE_MODE = extern struct { width: u32, height: u32, pixelFormat: DISPLAYCONFIG_PIXELFORMAT, position: POINTL, }; pub const DISPLAYCONFIG_TARGET_MODE = extern struct { targetVideoSignalInfo: DISPLAYCONFIG_VIDEO_SIGNAL_INFO, }; pub const DISPLAYCONFIG_DESKTOP_IMAGE_INFO = extern struct { PathSourceSize: POINTL, DesktopImageRegion: RECTL, DesktopImageClip: RECTL, }; pub const DISPLAYCONFIG_MODE_INFO = extern struct { infoType: DISPLAYCONFIG_MODE_INFO_TYPE, id: u32, adapterId: LUID, Anonymous: extern union { targetMode: DISPLAYCONFIG_TARGET_MODE, sourceMode: DISPLAYCONFIG_SOURCE_MODE, desktopImageInfo: DISPLAYCONFIG_DESKTOP_IMAGE_INFO, }, }; pub const DISPLAYCONFIG_PATH_SOURCE_INFO = extern struct { adapterId: LUID, id: u32, Anonymous: extern union { modeInfoIdx: u32, Anonymous: extern struct { _bitfield: u32, }, }, statusFlags: u32, }; pub const DISPLAYCONFIG_PATH_TARGET_INFO = extern struct { adapterId: LUID, id: u32, Anonymous: extern union { modeInfoIdx: u32, Anonymous: extern struct { _bitfield: u32, }, }, outputTechnology: DISPLAYCONFIG_VIDEO_OUTPUT_TECHNOLOGY, rotation: DISPLAYCONFIG_ROTATION, scaling: DISPLAYCONFIG_SCALING, refreshRate: DISPLAYCONFIG_RATIONAL, scanLineOrdering: DISPLAYCONFIG_SCANLINE_ORDERING, targetAvailable: BOOL, statusFlags: u32, }; pub const DISPLAYCONFIG_PATH_INFO = extern struct { sourceInfo: DISPLAYCONFIG_PATH_SOURCE_INFO, targetInfo: DISPLAYCONFIG_PATH_TARGET_INFO, flags: u32, }; pub const DISPLAYCONFIG_TOPOLOGY_ID = enum(i32) { INTERNAL = 1, CLONE = 2, EXTEND = 4, EXTERNAL = 8, FORCE_UINT32 = -1, }; pub const DISPLAYCONFIG_TOPOLOGY_INTERNAL = DISPLAYCONFIG_TOPOLOGY_ID.INTERNAL; pub const DISPLAYCONFIG_TOPOLOGY_CLONE = DISPLAYCONFIG_TOPOLOGY_ID.CLONE; pub const DISPLAYCONFIG_TOPOLOGY_EXTEND = DISPLAYCONFIG_TOPOLOGY_ID.EXTEND; pub const DISPLAYCONFIG_TOPOLOGY_EXTERNAL = DISPLAYCONFIG_TOPOLOGY_ID.EXTERNAL; pub const DISPLAYCONFIG_TOPOLOGY_FORCE_UINT32 = DISPLAYCONFIG_TOPOLOGY_ID.FORCE_UINT32; pub const DISPLAYCONFIG_DEVICE_INFO_TYPE = enum(i32) { GET_SOURCE_NAME = 1, GET_TARGET_NAME = 2, GET_TARGET_PREFERRED_MODE = 3, GET_ADAPTER_NAME = 4, SET_TARGET_PERSISTENCE = 5, GET_TARGET_BASE_TYPE = 6, GET_SUPPORT_VIRTUAL_RESOLUTION = 7, SET_SUPPORT_VIRTUAL_RESOLUTION = 8, GET_ADVANCED_COLOR_INFO = 9, SET_ADVANCED_COLOR_STATE = 10, GET_SDR_WHITE_LEVEL = 11, GET_MONITOR_SPECIALIZATION = 12, SET_MONITOR_SPECIALIZATION = 13, FORCE_UINT32 = -1, }; pub const DISPLAYCONFIG_DEVICE_INFO_GET_SOURCE_NAME = DISPLAYCONFIG_DEVICE_INFO_TYPE.GET_SOURCE_NAME; pub const DISPLAYCONFIG_DEVICE_INFO_GET_TARGET_NAME = DISPLAYCONFIG_DEVICE_INFO_TYPE.GET_TARGET_NAME; pub const DISPLAYCONFIG_DEVICE_INFO_GET_TARGET_PREFERRED_MODE = DISPLAYCONFIG_DEVICE_INFO_TYPE.GET_TARGET_PREFERRED_MODE; pub const DISPLAYCONFIG_DEVICE_INFO_GET_ADAPTER_NAME = DISPLAYCONFIG_DEVICE_INFO_TYPE.GET_ADAPTER_NAME; pub const DISPLAYCONFIG_DEVICE_INFO_SET_TARGET_PERSISTENCE = DISPLAYCONFIG_DEVICE_INFO_TYPE.SET_TARGET_PERSISTENCE; pub const DISPLAYCONFIG_DEVICE_INFO_GET_TARGET_BASE_TYPE = DISPLAYCONFIG_DEVICE_INFO_TYPE.GET_TARGET_BASE_TYPE; pub const DISPLAYCONFIG_DEVICE_INFO_GET_SUPPORT_VIRTUAL_RESOLUTION = DISPLAYCONFIG_DEVICE_INFO_TYPE.GET_SUPPORT_VIRTUAL_RESOLUTION; pub const DISPLAYCONFIG_DEVICE_INFO_SET_SUPPORT_VIRTUAL_RESOLUTION = DISPLAYCONFIG_DEVICE_INFO_TYPE.SET_SUPPORT_VIRTUAL_RESOLUTION; pub const DISPLAYCONFIG_DEVICE_INFO_GET_ADVANCED_COLOR_INFO = DISPLAYCONFIG_DEVICE_INFO_TYPE.GET_ADVANCED_COLOR_INFO; pub const DISPLAYCONFIG_DEVICE_INFO_SET_ADVANCED_COLOR_STATE = DISPLAYCONFIG_DEVICE_INFO_TYPE.SET_ADVANCED_COLOR_STATE; pub const DISPLAYCONFIG_DEVICE_INFO_GET_SDR_WHITE_LEVEL = DISPLAYCONFIG_DEVICE_INFO_TYPE.GET_SDR_WHITE_LEVEL; pub const DISPLAYCONFIG_DEVICE_INFO_GET_MONITOR_SPECIALIZATION = DISPLAYCONFIG_DEVICE_INFO_TYPE.GET_MONITOR_SPECIALIZATION; pub const DISPLAYCONFIG_DEVICE_INFO_SET_MONITOR_SPECIALIZATION = DISPLAYCONFIG_DEVICE_INFO_TYPE.SET_MONITOR_SPECIALIZATION; pub const DISPLAYCONFIG_DEVICE_INFO_FORCE_UINT32 = DISPLAYCONFIG_DEVICE_INFO_TYPE.FORCE_UINT32; pub const DISPLAYCONFIG_DEVICE_INFO_HEADER = extern struct { type: DISPLAYCONFIG_DEVICE_INFO_TYPE, size: u32, adapterId: LUID, id: u32, }; pub const DISPLAYCONFIG_SOURCE_DEVICE_NAME = extern struct { header: DISPLAYCONFIG_DEVICE_INFO_HEADER, viewGdiDeviceName: [32]u16, }; pub const DISPLAYCONFIG_TARGET_DEVICE_NAME_FLAGS = extern struct { Anonymous: extern union { Anonymous: extern struct { _bitfield: u32, }, value: u32, }, }; pub const DISPLAYCONFIG_TARGET_DEVICE_NAME = extern struct { header: DISPLAYCONFIG_DEVICE_INFO_HEADER, flags: DISPLAYCONFIG_TARGET_DEVICE_NAME_FLAGS, outputTechnology: DISPLAYCONFIG_VIDEO_OUTPUT_TECHNOLOGY, edidManufactureId: u16, edidProductCodeId: u16, connectorInstance: u32, monitorFriendlyDeviceName: [64]u16, monitorDevicePath: [128]u16, }; pub const DISPLAYCONFIG_TARGET_PREFERRED_MODE = extern struct { header: DISPLAYCONFIG_DEVICE_INFO_HEADER, width: u32, height: u32, targetMode: DISPLAYCONFIG_TARGET_MODE, }; pub const DISPLAYCONFIG_ADAPTER_NAME = extern struct { header: DISPLAYCONFIG_DEVICE_INFO_HEADER, adapterDevicePath: [128]u16, }; pub const DISPLAYCONFIG_TARGET_BASE_TYPE = extern struct { header: DISPLAYCONFIG_DEVICE_INFO_HEADER, baseOutputTechnology: DISPLAYCONFIG_VIDEO_OUTPUT_TECHNOLOGY, }; pub const DISPLAYCONFIG_SET_TARGET_PERSISTENCE = extern struct { header: DISPLAYCONFIG_DEVICE_INFO_HEADER, Anonymous: extern union { Anonymous: extern struct { _bitfield: u32, }, value: u32, }, }; pub const DISPLAYCONFIG_SUPPORT_VIRTUAL_RESOLUTION = extern struct { header: DISPLAYCONFIG_DEVICE_INFO_HEADER, Anonymous: extern union { Anonymous: extern struct { _bitfield: u32, }, value: u32, }, }; pub const DISPLAYCONFIG_GET_ADVANCED_COLOR_INFO = extern struct { header: DISPLAYCONFIG_DEVICE_INFO_HEADER, Anonymous: extern union { Anonymous: extern struct { _bitfield: u32, }, value: u32, }, colorEncoding: DISPLAYCONFIG_COLOR_ENCODING, bitsPerColorChannel: u32, }; pub const DISPLAYCONFIG_SET_ADVANCED_COLOR_STATE = extern struct { header: DISPLAYCONFIG_DEVICE_INFO_HEADER, Anonymous: extern union { Anonymous: extern struct { _bitfield: u32, }, value: u32, }, }; pub const DISPLAYCONFIG_SDR_WHITE_LEVEL = extern struct { header: DISPLAYCONFIG_DEVICE_INFO_HEADER, SDRWhiteLevel: u32, }; pub const DISPLAYCONFIG_GET_MONITOR_SPECIALIZATION = extern struct { header: DISPLAYCONFIG_DEVICE_INFO_HEADER, Anonymous: extern union { Anonymous: extern struct { _bitfield: u32, }, value: u32, }, }; pub const DISPLAYCONFIG_SET_MONITOR_SPECIALIZATION = extern struct { header: DISPLAYCONFIG_DEVICE_INFO_HEADER, Anonymous: extern union { Anonymous: extern struct { _bitfield: u32, }, value: u32, }, specializationType: Guid, specializationSubType: Guid, specializationApplicationName: [128]u16, }; pub const PHYSICAL_MONITOR = extern struct { hPhysicalMonitor: ?HANDLE align(1), szPhysicalMonitorDescription: [128]u16 align(1), }; pub const MC_TIMING_REPORT = extern struct { dwHorizontalFrequencyInHZ: u32 align(1), dwVerticalFrequencyInHZ: u32 align(1), bTimingStatusByte: u8 align(1), }; pub const MC_VCP_CODE_TYPE = enum(i32) { MOMENTARY = 0, SET_PARAMETER = 1, }; pub const MC_MOMENTARY = MC_VCP_CODE_TYPE.MOMENTARY; pub const MC_SET_PARAMETER = MC_VCP_CODE_TYPE.SET_PARAMETER; pub const MC_DISPLAY_TECHNOLOGY_TYPE = enum(i32) { SHADOW_MASK_CATHODE_RAY_TUBE = 0, APERTURE_GRILL_CATHODE_RAY_TUBE = 1, THIN_FILM_TRANSISTOR = 2, LIQUID_CRYSTAL_ON_SILICON = 3, PLASMA = 4, ORGANIC_LIGHT_EMITTING_DIODE = 5, ELECTROLUMINESCENT = 6, MICROELECTROMECHANICAL = 7, FIELD_EMISSION_DEVICE = 8, }; pub const MC_SHADOW_MASK_CATHODE_RAY_TUBE = MC_DISPLAY_TECHNOLOGY_TYPE.SHADOW_MASK_CATHODE_RAY_TUBE; pub const MC_APERTURE_GRILL_CATHODE_RAY_TUBE = MC_DISPLAY_TECHNOLOGY_TYPE.APERTURE_GRILL_CATHODE_RAY_TUBE; pub const MC_THIN_FILM_TRANSISTOR = MC_DISPLAY_TECHNOLOGY_TYPE.THIN_FILM_TRANSISTOR; pub const MC_LIQUID_CRYSTAL_ON_SILICON = MC_DISPLAY_TECHNOLOGY_TYPE.LIQUID_CRYSTAL_ON_SILICON; pub const MC_PLASMA = MC_DISPLAY_TECHNOLOGY_TYPE.PLASMA; pub const MC_ORGANIC_LIGHT_EMITTING_DIODE = MC_DISPLAY_TECHNOLOGY_TYPE.ORGANIC_LIGHT_EMITTING_DIODE; pub const MC_ELECTROLUMINESCENT = MC_DISPLAY_TECHNOLOGY_TYPE.ELECTROLUMINESCENT; pub const MC_MICROELECTROMECHANICAL = MC_DISPLAY_TECHNOLOGY_TYPE.MICROELECTROMECHANICAL; pub const MC_FIELD_EMISSION_DEVICE = MC_DISPLAY_TECHNOLOGY_TYPE.FIELD_EMISSION_DEVICE; pub const MC_DRIVE_TYPE = enum(i32) { RED_DRIVE = 0, GREEN_DRIVE = 1, BLUE_DRIVE = 2, }; pub const MC_RED_DRIVE = MC_DRIVE_TYPE.RED_DRIVE; pub const MC_GREEN_DRIVE = MC_DRIVE_TYPE.GREEN_DRIVE; pub const MC_BLUE_DRIVE = MC_DRIVE_TYPE.BLUE_DRIVE; pub const MC_GAIN_TYPE = enum(i32) { RED_GAIN = 0, GREEN_GAIN = 1, BLUE_GAIN = 2, }; pub const MC_RED_GAIN = MC_GAIN_TYPE.RED_GAIN; pub const MC_GREEN_GAIN = MC_GAIN_TYPE.GREEN_GAIN; pub const MC_BLUE_GAIN = MC_GAIN_TYPE.BLUE_GAIN; pub const MC_POSITION_TYPE = enum(i32) { HORIZONTAL_POSITION = 0, VERTICAL_POSITION = 1, }; pub const MC_HORIZONTAL_POSITION = MC_POSITION_TYPE.HORIZONTAL_POSITION; pub const MC_VERTICAL_POSITION = MC_POSITION_TYPE.VERTICAL_POSITION; pub const MC_SIZE_TYPE = enum(i32) { WIDTH = 0, HEIGHT = 1, }; pub const MC_WIDTH = MC_SIZE_TYPE.WIDTH; pub const MC_HEIGHT = MC_SIZE_TYPE.HEIGHT; pub const MC_COLOR_TEMPERATURE = enum(i32) { UNKNOWN = 0, @"4000K" = 1, @"5000K" = 2, @"6500K" = 3, @"7500K" = 4, @"8200K" = 5, @"9300K" = 6, @"10000K" = 7, @"11500K" = 8, }; pub const MC_COLOR_TEMPERATURE_UNKNOWN = MC_COLOR_TEMPERATURE.UNKNOWN; pub const MC_COLOR_TEMPERATURE_4000K = MC_COLOR_TEMPERATURE.@"4000K"; pub const MC_COLOR_TEMPERATURE_5000K = MC_COLOR_TEMPERATURE.@"5000K"; pub const MC_COLOR_TEMPERATURE_6500K = MC_COLOR_TEMPERATURE.@"6500K"; pub const MC_COLOR_TEMPERATURE_7500K = MC_COLOR_TEMPERATURE.@"7500K"; pub const MC_COLOR_TEMPERATURE_8200K = MC_COLOR_TEMPERATURE.@"8200K"; pub const MC_COLOR_TEMPERATURE_9300K = MC_COLOR_TEMPERATURE.@"9300K"; pub const MC_COLOR_TEMPERATURE_10000K = MC_COLOR_TEMPERATURE.@"10000K"; pub const MC_COLOR_TEMPERATURE_11500K = MC_COLOR_TEMPERATURE.@"11500K"; pub const Sources = extern struct { sourceId: u32, numTargets: i32, aTargets: [1]u32, }; pub const Adapter = extern struct { AdapterName: [128]u16, numSources: i32, sources: [1]Sources, }; pub const Adapters = extern struct { numAdapters: i32, adapter: [1]Adapter, }; pub const DisplayMode = extern struct { DeviceName: [32]u16, devMode: DEVMODEW, }; pub const DisplayModes = extern struct { numDisplayModes: i32, displayMode: [1]DisplayMode, }; const IID_ICloneViewHelper_Value = Guid.initString("f6a3d4c4-5632-4d83-b0a1-fb88712b1eb7"); pub const IID_ICloneViewHelper = &IID_ICloneViewHelper_Value; pub const ICloneViewHelper = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, GetConnectedIDs: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ICloneViewHelper, wszAdaptorName: ?[*:0]const u16, pulCount: ?*u32, pulID: ?*u32, ulFlags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ICloneViewHelper, wszAdaptorName: ?[*:0]const u16, pulCount: ?*u32, pulID: ?*u32, ulFlags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetActiveTopology: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ICloneViewHelper, wszAdaptorName: ?[*:0]const u16, ulSourceID: u32, pulCount: ?*u32, pulTargetID: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ICloneViewHelper, wszAdaptorName: ?[*:0]const u16, ulSourceID: u32, pulCount: ?*u32, pulTargetID: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetActiveTopology: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ICloneViewHelper, wszAdaptorName: ?[*:0]const u16, ulSourceID: u32, ulCount: u32, pulTargetID: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ICloneViewHelper, wszAdaptorName: ?[*:0]const u16, ulSourceID: u32, ulCount: u32, pulTargetID: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Commit: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const ICloneViewHelper, fFinalCall: BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const ICloneViewHelper, fFinalCall: BOOL, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ICloneViewHelper_GetConnectedIDs(self: *const T, wszAdaptorName: ?[*:0]const u16, pulCount: ?*u32, pulID: ?*u32, ulFlags: u32) HRESULT { return @as(*const ICloneViewHelper.VTable, @ptrCast(self.vtable)).GetConnectedIDs(@as(*const ICloneViewHelper, @ptrCast(self)), wszAdaptorName, pulCount, pulID, ulFlags); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ICloneViewHelper_GetActiveTopology(self: *const T, wszAdaptorName: ?[*:0]const u16, ulSourceID: u32, pulCount: ?*u32, pulTargetID: ?*u32) HRESULT { return @as(*const ICloneViewHelper.VTable, @ptrCast(self.vtable)).GetActiveTopology(@as(*const ICloneViewHelper, @ptrCast(self)), wszAdaptorName, ulSourceID, pulCount, pulTargetID); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ICloneViewHelper_SetActiveTopology(self: *const T, wszAdaptorName: ?[*:0]const u16, ulSourceID: u32, ulCount: u32, pulTargetID: ?*u32) HRESULT { return @as(*const ICloneViewHelper.VTable, @ptrCast(self.vtable)).SetActiveTopology(@as(*const ICloneViewHelper, @ptrCast(self)), wszAdaptorName, ulSourceID, ulCount, pulTargetID); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn ICloneViewHelper_Commit(self: *const T, fFinalCall: BOOL) HRESULT { return @as(*const ICloneViewHelper.VTable, @ptrCast(self.vtable)).Commit(@as(*const ICloneViewHelper, @ptrCast(self)), fFinalCall); } }; } pub usingnamespace MethodMixin(@This()); }; const IID_IViewHelper_Value = Guid.initString("e85ccef5-aaaa-47f0-b5e3-61f7aecdc4c1"); pub const IID_IViewHelper = &IID_IViewHelper_Value; pub const IViewHelper = extern struct { pub const VTable = extern struct { base: IUnknown.VTable, GetConnectedIDs: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IViewHelper, wszAdaptorName: ?[*:0]const u16, pulCount: ?*u32, pulID: ?*u32, ulFlags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IViewHelper, wszAdaptorName: ?[*:0]const u16, pulCount: ?*u32, pulID: ?*u32, ulFlags: u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetActiveTopology: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IViewHelper, wszAdaptorName: ?[*:0]const u16, ulSourceID: u32, pulCount: ?*u32, pulTargetID: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IViewHelper, wszAdaptorName: ?[*:0]const u16, ulSourceID: u32, pulCount: ?*u32, pulTargetID: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetActiveTopology: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IViewHelper, wszAdaptorName: ?[*:0]const u16, ulSourceID: u32, ulCount: u32, pulTargetID: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IViewHelper, wszAdaptorName: ?[*:0]const u16, ulSourceID: u32, ulCount: u32, pulTargetID: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, Commit: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IViewHelper, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IViewHelper, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, SetConfiguration: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IViewHelper, pIStream: ?*IStream, pulStatus: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IViewHelper, pIStream: ?*IStream, pulStatus: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, GetProceedOnNewConfiguration: switch (@import("builtin").zig_backend) { .stage1 => fn ( self: *const IViewHelper, ) callconv(@import("std").os.windows.WINAPI) HRESULT, else => *const fn ( self: *const IViewHelper, ) callconv(@import("std").os.windows.WINAPI) HRESULT, }, }; vtable: *const VTable, pub fn MethodMixin(comptime T: type) type { return struct { pub usingnamespace IUnknown.MethodMixin(T); // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IViewHelper_GetConnectedIDs(self: *const T, wszAdaptorName: ?[*:0]const u16, pulCount: ?*u32, pulID: ?*u32, ulFlags: u32) HRESULT { return @as(*const IViewHelper.VTable, @ptrCast(self.vtable)).GetConnectedIDs(@as(*const IViewHelper, @ptrCast(self)), wszAdaptorName, pulCount, pulID, ulFlags); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IViewHelper_GetActiveTopology(self: *const T, wszAdaptorName: ?[*:0]const u16, ulSourceID: u32, pulCount: ?*u32, pulTargetID: ?*u32) HRESULT { return @as(*const IViewHelper.VTable, @ptrCast(self.vtable)).GetActiveTopology(@as(*const IViewHelper, @ptrCast(self)), wszAdaptorName, ulSourceID, pulCount, pulTargetID); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IViewHelper_SetActiveTopology(self: *const T, wszAdaptorName: ?[*:0]const u16, ulSourceID: u32, ulCount: u32, pulTargetID: ?*u32) HRESULT { return @as(*const IViewHelper.VTable, @ptrCast(self.vtable)).SetActiveTopology(@as(*const IViewHelper, @ptrCast(self)), wszAdaptorName, ulSourceID, ulCount, pulTargetID); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IViewHelper_Commit(self: *const T) HRESULT { return @as(*const IViewHelper.VTable, @ptrCast(self.vtable)).Commit(@as(*const IViewHelper, @ptrCast(self))); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IViewHelper_SetConfiguration(self: *const T, pIStream: ?*IStream, pulStatus: ?*u32) HRESULT { return @as(*const IViewHelper.VTable, @ptrCast(self.vtable)).SetConfiguration(@as(*const IViewHelper, @ptrCast(self)), pIStream, pulStatus); } // NOTE: method is namespaced with interface name to avoid conflicts for now pub inline fn IViewHelper_GetProceedOnNewConfiguration(self: *const T) HRESULT { return @as(*const IViewHelper.VTable, @ptrCast(self.vtable)).GetProceedOnNewConfiguration(@as(*const IViewHelper, @ptrCast(self))); } }; } pub usingnamespace MethodMixin(@This()); }; pub const VIDEOPARAMETERS = extern struct { Guid: Guid, dwOffset: u32, dwCommand: u32, dwFlags: u32, dwMode: u32, dwTVStandard: u32, dwAvailableModes: u32, dwAvailableTVStandard: u32, dwFlickerFilter: u32, dwOverScanX: u32, dwOverScanY: u32, dwMaxUnscaledX: u32, dwMaxUnscaledY: u32, dwPositionX: u32, dwPositionY: u32, dwBrightness: u32, dwContrast: u32, dwCPType: u32, dwCPCommand: u32, dwCPStandard: u32, dwCPKey: u32, bCP_APSTriggerBits: u32, bOEMCopyProtection: [256]u8, }; pub const POINTFIX = extern struct { x: i32, y: i32, }; pub const RECTFX = extern struct { xLeft: i32, yTop: i32, xRight: i32, yBottom: i32, }; pub const FD_DEVICEMETRICS = extern struct { flRealizedType: u32, pteBase: POINTE, pteSide: POINTE, lD: i32, fxMaxAscender: i32, fxMaxDescender: i32, ptlUnderline1: POINTL, ptlStrikeOut: POINTL, ptlULThickness: POINTL, ptlSOThickness: POINTL, cxMax: u32, cyMax: u32, cjGlyphMax: u32, fdxQuantized: FD_XFORM, lNonLinearExtLeading: i32, lNonLinearIntLeading: i32, lNonLinearMaxCharWidth: i32, lNonLinearAvgCharWidth: i32, lMinA: i32, lMinC: i32, lMinD: i32, alReserved: [1]i32, }; pub const LIGATURE = extern struct { culSize: u32, pwsz: ?PWSTR, chglyph: u32, ahglyph: [1]u32, }; pub const FD_LIGATURE = extern struct { culThis: u32, ulType: u32, cLigatures: u32, alig: [1]LIGATURE, }; pub const POINTQF = extern struct { x: LARGE_INTEGER, y: LARGE_INTEGER, }; pub const WCRUN = extern struct { wcLow: u16, cGlyphs: u16, phg: ?*u32, }; pub const FD_GLYPHSET = extern struct { cjThis: u32, flAccel: u32, cGlyphsSupported: u32, cRuns: u32, awcrun: [1]WCRUN, }; pub const FD_GLYPHATTR = extern struct { cjThis: u32, cGlyphs: u32, iMode: u32, aGlyphAttr: [1]u8, }; pub const FD_KERNINGPAIR = extern struct { wcFirst: u16, wcSecond: u16, fwdKern: i16, }; pub const FONTDIFF = extern struct { jReserved1: u8, jReserved2: u8, jReserved3: u8, bWeight: u8, usWinWeight: u16, fsSelection: u16, fwdAveCharWidth: i16, fwdMaxCharInc: i16, ptlCaret: POINTL, }; pub const FONTSIM = extern struct { dpBold: i32, dpItalic: i32, dpBoldItalic: i32, }; pub const IFIEXTRA = extern struct { ulIdentifier: u32, dpFontSig: i32, cig: u32, dpDesignVector: i32, dpAxesInfoW: i32, aulReserved: [1]u32, }; pub const PFN = switch (@import("builtin").zig_backend) { .stage1 => fn () callconv(@import("std").os.windows.WINAPI) isize, else => *const fn () callconv(@import("std").os.windows.WINAPI) isize, }; pub const DRVFN = extern struct { iFunc: u32, pfn: ?PFN, }; pub const DRVENABLEDATA = extern struct { iDriverVersion: u32, c: u32, pdrvfn: ?*DRVFN, }; pub const DEVINFO = extern struct { flGraphicsCaps: u32, lfDefaultFont: LOGFONTW, lfAnsiVarFont: LOGFONTW, lfAnsiFixFont: LOGFONTW, cFonts: u32, iDitherFormat: u32, cxDither: u16, cyDither: u16, hpalDefault: ?HPALETTE, flGraphicsCaps2: u32, }; pub const CIECHROMA = extern struct { x: i32, y: i32, Y: i32, }; pub const COLORINFO = extern struct { Red: CIECHROMA, Green: CIECHROMA, Blue: CIECHROMA, Cyan: CIECHROMA, Magenta: CIECHROMA, Yellow: CIECHROMA, AlignmentWhite: CIECHROMA, RedGamma: i32, GreenGamma: i32, BlueGamma: i32, MagentaInCyanDye: i32, YellowInCyanDye: i32, CyanInMagentaDye: i32, YellowInMagentaDye: i32, CyanInYellowDye: i32, MagentaInYellowDye: i32, }; pub const CDDDXGK_REDIRBITMAPPRESENTINFO = extern struct { NumDirtyRects: u32, DirtyRect: ?*RECT, NumContexts: u32, hContext: [65]?HANDLE, bDoNotSynchronizeWithDxContent: BOOLEAN, }; pub const GDIINFO = extern struct { ulVersion: u32, ulTechnology: u32, ulHorzSize: u32, ulVertSize: u32, ulHorzRes: u32, ulVertRes: u32, cBitsPixel: u32, cPlanes: u32, ulNumColors: u32, flRaster: u32, ulLogPixelsX: u32, ulLogPixelsY: u32, flTextCaps: u32, ulDACRed: u32, ulDACGreen: u32, ulDACBlue: u32, ulAspectX: u32, ulAspectY: u32, ulAspectXY: u32, xStyleStep: i32, yStyleStep: i32, denStyleStep: i32, ptlPhysOffset: POINTL, szlPhysSize: SIZE, ulNumPalReg: u32, ciDevice: COLORINFO, ulDevicePelsDPI: u32, ulPrimaryOrder: u32, ulHTPatternSize: u32, ulHTOutputFormat: u32, flHTFlags: u32, ulVRefresh: u32, ulBltAlignment: u32, ulPanningHorzRes: u32, ulPanningVertRes: u32, xPanningAlignment: u32, yPanningAlignment: u32, cxHTPat: u32, cyHTPat: u32, pHTPatA: ?*u8, pHTPatB: ?*u8, pHTPatC: ?*u8, flShadeBlend: u32, ulPhysicalPixelCharacteristics: u32, ulPhysicalPixelGamma: u32, }; pub const BRUSHOBJ = extern struct { iSolidColor: u32, pvRbrush: ?*anyopaque, flColorType: u32, }; pub const CLIPOBJ = extern struct { iUniq: u32, rclBounds: RECTL, iDComplexity: u8, iFComplexity: u8, iMode: u8, fjOptions: u8, }; // TODO: this function pointer causes dependency loop problems, so it's stubbed out pub const FREEOBJPROC = switch (@import("builtin").zig_backend) { .stage1 => fn () callconv(@import("std").os.windows.WINAPI) void, else => *const fn () callconv(@import("std").os.windows.WINAPI) void, }; pub const DRIVEROBJ = extern struct { pvObj: ?*anyopaque, pFreeProc: ?FREEOBJPROC, hdev: ?HDEV, dhpdev: DHPDEV, }; pub const FONTOBJ = extern struct { iUniq: u32, iFace: u32, cxMax: u32, flFontType: u32, iTTUniq: usize, iFile: usize, sizLogResPpi: SIZE, ulStyleSize: u32, pvConsumer: ?*anyopaque, pvProducer: ?*anyopaque, }; pub const BLENDOBJ = extern struct { BlendFunction: BLENDFUNCTION, }; pub const PALOBJ = extern struct { ulReserved: u32, }; pub const PATHOBJ = extern struct { fl: u32, cCurves: u32, }; pub const SURFOBJ = extern struct { dhsurf: DHSURF, hsurf: ?HSURF, dhpdev: DHPDEV, hdev: ?HDEV, sizlBitmap: SIZE, cjBits: u32, pvBits: ?*anyopaque, pvScan0: ?*anyopaque, lDelta: i32, iUniq: u32, iBitmapFormat: u32, iType: u16, fjBitmap: u16, }; pub const WNDOBJ = extern struct { coClient: CLIPOBJ, pvConsumer: ?*anyopaque, rclClient: RECTL, psoOwner: ?*SURFOBJ, }; pub const XFORMOBJ = extern struct { ulReserved: u32, }; pub const XLATEOBJ = extern struct { iUniq: u32, flXlate: u32, iSrcType: u16, iDstType: u16, cEntries: u32, pulXlate: ?*u32, }; pub const ENUMRECTS = extern struct { c: u32, arcl: [1]RECTL, }; pub const GLYPHBITS = extern struct { ptlOrigin: POINTL, sizlBitmap: SIZE, aj: [1]u8, }; pub const GLYPHDEF = extern union { pgb: ?*GLYPHBITS, ppo: ?*PATHOBJ, }; pub const GLYPHPOS = extern struct { hg: u32, pgdf: ?*GLYPHDEF, ptl: POINTL, }; pub const GLYPHDATA = extern struct { gdf: GLYPHDEF, hg: u32, fxD: i32, fxA: i32, fxAB: i32, fxInkTop: i32, fxInkBottom: i32, rclInk: RECTL, ptqD: POINTQF, }; pub const STROBJ = extern struct { cGlyphs: u32, flAccel: u32, ulCharInc: u32, rclBkGround: RECTL, pgp: ?*GLYPHPOS, pwszOrg: ?PWSTR, }; pub const FONTINFO = extern struct { cjThis: u32, flCaps: u32, cGlyphsSupported: u32, cjMaxGlyph1: u32, cjMaxGlyph4: u32, cjMaxGlyph8: u32, cjMaxGlyph32: u32, }; pub const PATHDATA = extern struct { flags: u32, count: u32, pptfx: ?*POINTFIX, }; pub const RUN = extern struct { iStart: i32, iStop: i32, }; pub const CLIPLINE = extern struct { ptfxA: POINTFIX, ptfxB: POINTFIX, lStyleState: i32, c: u32, arun: [1]RUN, }; pub const PERBANDINFO = extern struct { bRepeatThisBand: BOOL, szlBand: SIZE, ulHorzRes: u32, ulVertRes: u32, }; pub const GAMMARAMP = extern struct { Red: [256]u16, Green: [256]u16, Blue: [256]u16, }; pub const WNDOBJCHANGEPROC = switch (@import("builtin").zig_backend) { .stage1 => fn ( pwo: ?*WNDOBJ, fl: u32, ) callconv(@import("std").os.windows.WINAPI) void, else => *const fn ( pwo: ?*WNDOBJ, fl: u32, ) callconv(@import("std").os.windows.WINAPI) void, }; pub const DEVHTINFO = extern struct { HTFlags: u32, HTPatternSize: u32, DevPelsDPI: u32, ColorInfo: COLORINFO, }; pub const DEVHTADJDATA = extern struct { DeviceFlags: u32, DeviceXDPI: u32, DeviceYDPI: u32, pDefHTInfo: ?*DEVHTINFO, pAdjHTInfo: ?*DEVHTINFO, }; pub const TYPE1_FONT = extern struct { hPFM: ?HANDLE, hPFB: ?HANDLE, ulIdentifier: u32, }; pub const ENGSAFESEMAPHORE = extern struct { hsem: ?HSEMAPHORE, lCount: i32, }; pub const SORTCOMP = switch (@import("builtin").zig_backend) { .stage1 => fn ( pv1: ?*const anyopaque, pv2: ?*const anyopaque, ) callconv(@import("std").os.windows.WINAPI) i32, else => *const fn ( pv1: ?*const anyopaque, pv2: ?*const anyopaque, ) callconv(@import("std").os.windows.WINAPI) i32, }; pub const ENG_TIME_FIELDS = extern struct { usYear: u16, usMonth: u16, usDay: u16, usHour: u16, usMinute: u16, usSecond: u16, usMilliseconds: u16, usWeekday: u16, }; pub const ENG_SYSTEM_ATTRIBUTE = enum(i32) { ProcessorFeature = 1, NumberOfProcessors = 2, OptimumAvailableUserMemory = 3, OptimumAvailableSystemMemory = 4, }; pub const EngProcessorFeature = ENG_SYSTEM_ATTRIBUTE.ProcessorFeature; pub const EngNumberOfProcessors = ENG_SYSTEM_ATTRIBUTE.NumberOfProcessors; pub const EngOptimumAvailableUserMemory = ENG_SYSTEM_ATTRIBUTE.OptimumAvailableUserMemory; pub const EngOptimumAvailableSystemMemory = ENG_SYSTEM_ATTRIBUTE.OptimumAvailableSystemMemory; pub const ENG_DEVICE_ATTRIBUTE = enum(i32) { RESERVED = 0, ACCELERATION_LEVEL = 1, }; pub const QDA_RESERVED = ENG_DEVICE_ATTRIBUTE.RESERVED; pub const QDA_ACCELERATION_LEVEL = ENG_DEVICE_ATTRIBUTE.ACCELERATION_LEVEL; pub const EMFINFO = extern struct { nSize: u32, hdc: ?HDC, pvEMF: ?*u8, pvCurrentRecord: ?*u8, }; pub const PFN_DrvEnableDriver = switch (@import("builtin").zig_backend) { .stage1 => fn ( param0: u32, param1: u32, param2: ?*DRVENABLEDATA, ) callconv(@import("std").os.windows.WINAPI) BOOL, else => *const fn ( param0: u32, param1: u32, param2: ?*DRVENABLEDATA, ) callconv(@import("std").os.windows.WINAPI) BOOL, }; pub const PFN_DrvEnablePDEV = switch (@import("builtin").zig_backend) { .stage1 => fn ( param0: ?*DEVMODEW, param1: ?PWSTR, param2: u32, param3: ?*?HSURF, param4: u32, param5: ?*GDIINFO, param6: u32, param7: ?*DEVINFO, param8: ?HDEV, param9: ?PWSTR, param10: ?HANDLE, ) callconv(@import("std").os.windows.WINAPI) DHPDEV, else => *const fn ( param0: ?*DEVMODEW, param1: ?PWSTR, param2: u32, param3: ?*?HSURF, param4: u32, param5: ?*GDIINFO, param6: u32, param7: ?*DEVINFO, param8: ?HDEV, param9: ?PWSTR, param10: ?HANDLE, ) callconv(@import("std").os.windows.WINAPI) DHPDEV, }; pub const PFN_DrvCompletePDEV = switch (@import("builtin").zig_backend) { .stage1 => fn ( param0: DHPDEV, param1: ?HDEV, ) callconv(@import("std").os.windows.WINAPI) void, else => *const fn ( param0: DHPDEV, param1: ?HDEV, ) callconv(@import("std").os.windows.WINAPI) void, }; pub const PFN_DrvResetDevice = switch (@import("builtin").zig_backend) { .stage1 => fn ( param0: DHPDEV, param1: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) u32, else => *const fn ( param0: DHPDEV, param1: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) u32, }; pub const PFN_DrvDisablePDEV = switch (@import("builtin").zig_backend) { .stage1 => fn ( param0: DHPDEV, ) callconv(@import("std").os.windows.WINAPI) void, else => *const fn ( param0: DHPDEV, ) callconv(@import("std").os.windows.WINAPI) void, }; pub const PFN_DrvSynchronize = switch (@import("builtin").zig_backend) { .stage1 => fn ( param0: DHPDEV, param1: ?*RECTL, ) callconv(@import("std").os.windows.WINAPI) void, else => *const fn ( param0: DHPDEV, param1: ?*RECTL, ) callconv(@import("std").os.windows.WINAPI) void, }; pub const PFN_DrvEnableSurface = switch (@import("builtin").zig_backend) { .stage1 => fn ( param0: DHPDEV, ) callconv(@import("std").os.windows.WINAPI) ?HSURF, else => *const fn ( param0: DHPDEV, ) callconv(@import("std").os.windows.WINAPI) ?HSURF, }; pub const PFN_DrvDisableDriver = switch (@import("builtin").zig_backend) { .stage1 => fn () callconv(@import("std").os.windows.WINAPI) void, else => *const fn () callconv(@import("std").os.windows.WINAPI) void, }; pub const PFN_DrvDisableSurface = switch (@import("builtin").zig_backend) { .stage1 => fn ( param0: DHPDEV, ) callconv(@import("std").os.windows.WINAPI) void, else => *const fn ( param0: DHPDEV, ) callconv(@import("std").os.windows.WINAPI) void, }; pub const PFN_DrvAssertMode = switch (@import("builtin").zig_backend) { .stage1 => fn ( param0: DHPDEV, param1: BOOL, ) callconv(@import("std").os.windows.WINAPI) BOOL, else => *const fn ( param0: DHPDEV, param1: BOOL, ) callconv(@import("std").os.windows.WINAPI) BOOL, }; pub const PFN_DrvTextOut = switch (@import("builtin").zig_backend) { .stage1 => fn ( param0: ?*SURFOBJ, param1: ?*STROBJ, param2: ?*FONTOBJ, param3: ?*CLIPOBJ, param4: ?*RECTL, param5: ?*RECTL, param6: ?*BRUSHOBJ, param7: ?*BRUSHOBJ, param8: ?*POINTL, param9: u32, ) callconv(@import("std").os.windows.WINAPI) BOOL, else => *const fn ( param0: ?*SURFOBJ, param1: ?*STROBJ, param2: ?*FONTOBJ, param3: ?*CLIPOBJ, param4: ?*RECTL, param5: ?*RECTL, param6: ?*BRUSHOBJ, param7: ?*BRUSHOBJ, param8: ?*POINTL, param9: u32, ) callconv(@import("std").os.windows.WINAPI) BOOL, }; pub const PFN_DrvStretchBlt = switch (@import("builtin").zig_backend) { .stage1 => fn ( param0: ?*SURFOBJ, param1: ?*SURFOBJ, param2: ?*SURFOBJ, param3: ?*CLIPOBJ, param4: ?*XLATEOBJ, param5: ?*COLORADJUSTMENT, param6: ?*POINTL, param7: ?*RECTL, param8: ?*RECTL, param9: ?*POINTL, param10: u32, ) callconv(@import("std").os.windows.WINAPI) BOOL, else => *const fn ( param0: ?*SURFOBJ, param1: ?*SURFOBJ, param2: ?*SURFOBJ, param3: ?*CLIPOBJ, param4: ?*XLATEOBJ, param5: ?*COLORADJUSTMENT, param6: ?*POINTL, param7: ?*RECTL, param8: ?*RECTL, param9: ?*POINTL, param10: u32, ) callconv(@import("std").os.windows.WINAPI) BOOL, }; pub const PFN_DrvStretchBltROP = switch (@import("builtin").zig_backend) { .stage1 => fn ( param0: ?*SURFOBJ, param1: ?*SURFOBJ, param2: ?*SURFOBJ, param3: ?*CLIPOBJ, param4: ?*XLATEOBJ, param5: ?*COLORADJUSTMENT, param6: ?*POINTL, param7: ?*RECTL, param8: ?*RECTL, param9: ?*POINTL, param10: u32, param11: ?*BRUSHOBJ, param12: u32, ) callconv(@import("std").os.windows.WINAPI) BOOL, else => *const fn ( param0: ?*SURFOBJ, param1: ?*SURFOBJ, param2: ?*SURFOBJ, param3: ?*CLIPOBJ, param4: ?*XLATEOBJ, param5: ?*COLORADJUSTMENT, param6: ?*POINTL, param7: ?*RECTL, param8: ?*RECTL, param9: ?*POINTL, param10: u32, param11: ?*BRUSHOBJ, param12: u32, ) callconv(@import("std").os.windows.WINAPI) BOOL, }; pub const PFN_DrvTransparentBlt = switch (@import("builtin").zig_backend) { .stage1 => fn ( param0: ?*SURFOBJ, param1: ?*SURFOBJ, param2: ?*CLIPOBJ, param3: ?*XLATEOBJ, param4: ?*RECTL, param5: ?*RECTL, param6: u32, param7: u32, ) callconv(@import("std").os.windows.WINAPI) BOOL, else => *const fn ( param0: ?*SURFOBJ, param1: ?*SURFOBJ, param2: ?*CLIPOBJ, param3: ?*XLATEOBJ, param4: ?*RECTL, param5: ?*RECTL, param6: u32, param7: u32, ) callconv(@import("std").os.windows.WINAPI) BOOL, }; pub const PFN_DrvPlgBlt = switch (@import("builtin").zig_backend) { .stage1 => fn ( param0: ?*SURFOBJ, param1: ?*SURFOBJ, param2: ?*SURFOBJ, param3: ?*CLIPOBJ, param4: ?*XLATEOBJ, param5: ?*COLORADJUSTMENT, param6: ?*POINTL, param7: ?*POINTFIX, param8: ?*RECTL, param9: ?*POINTL, param10: u32, ) callconv(@import("std").os.windows.WINAPI) BOOL, else => *const fn ( param0: ?*SURFOBJ, param1: ?*SURFOBJ, param2: ?*SURFOBJ, param3: ?*CLIPOBJ, param4: ?*XLATEOBJ, param5: ?*COLORADJUSTMENT, param6: ?*POINTL, param7: ?*POINTFIX, param8: ?*RECTL, param9: ?*POINTL, param10: u32, ) callconv(@import("std").os.windows.WINAPI) BOOL, }; pub const PFN_DrvBitBlt = switch (@import("builtin").zig_backend) { .stage1 => fn ( param0: ?*SURFOBJ, param1: ?*SURFOBJ, param2: ?*SURFOBJ, param3: ?*CLIPOBJ, param4: ?*XLATEOBJ, param5: ?*RECTL, param6: ?*POINTL, param7: ?*POINTL, param8: ?*BRUSHOBJ, param9: ?*POINTL, param10: u32, ) callconv(@import("std").os.windows.WINAPI) BOOL, else => *const fn ( param0: ?*SURFOBJ, param1: ?*SURFOBJ, param2: ?*SURFOBJ, param3: ?*CLIPOBJ, param4: ?*XLATEOBJ, param5: ?*RECTL, param6: ?*POINTL, param7: ?*POINTL, param8: ?*BRUSHOBJ, param9: ?*POINTL, param10: u32, ) callconv(@import("std").os.windows.WINAPI) BOOL, }; pub const PFN_DrvRealizeBrush = switch (@import("builtin").zig_backend) { .stage1 => fn ( param0: ?*BRUSHOBJ, param1: ?*SURFOBJ, param2: ?*SURFOBJ, param3: ?*SURFOBJ, param4: ?*XLATEOBJ, param5: u32, ) callconv(@import("std").os.windows.WINAPI) BOOL, else => *const fn ( param0: ?*BRUSHOBJ, param1: ?*SURFOBJ, param2: ?*SURFOBJ, param3: ?*SURFOBJ, param4: ?*XLATEOBJ, param5: u32, ) callconv(@import("std").os.windows.WINAPI) BOOL, }; pub const PFN_DrvCopyBits = switch (@import("builtin").zig_backend) { .stage1 => fn ( param0: ?*SURFOBJ, param1: ?*SURFOBJ, param2: ?*CLIPOBJ, param3: ?*XLATEOBJ, param4: ?*RECTL, param5: ?*POINTL, ) callconv(@import("std").os.windows.WINAPI) BOOL, else => *const fn ( param0: ?*SURFOBJ, param1: ?*SURFOBJ, param2: ?*CLIPOBJ, param3: ?*XLATEOBJ, param4: ?*RECTL, param5: ?*POINTL, ) callconv(@import("std").os.windows.WINAPI) BOOL, }; pub const PFN_DrvDitherColor = switch (@import("builtin").zig_backend) { .stage1 => fn ( param0: DHPDEV, param1: u32, param2: u32, param3: ?*u32, ) callconv(@import("std").os.windows.WINAPI) u32, else => *const fn ( param0: DHPDEV, param1: u32, param2: u32, param3: ?*u32, ) callconv(@import("std").os.windows.WINAPI) u32, }; pub const PFN_DrvCreateDeviceBitmap = switch (@import("builtin").zig_backend) { .stage1 => fn ( param0: DHPDEV, param1: SIZE, param2: u32, ) callconv(@import("std").os.windows.WINAPI) ?HBITMAP, else => *const fn ( param0: DHPDEV, param1: SIZE, param2: u32, ) callconv(@import("std").os.windows.WINAPI) ?HBITMAP, }; pub const PFN_DrvDeleteDeviceBitmap = switch (@import("builtin").zig_backend) { .stage1 => fn ( param0: DHSURF, ) callconv(@import("std").os.windows.WINAPI) void, else => *const fn ( param0: DHSURF, ) callconv(@import("std").os.windows.WINAPI) void, }; pub const PFN_DrvSetPalette = switch (@import("builtin").zig_backend) { .stage1 => fn ( param0: DHPDEV, param1: ?*PALOBJ, param2: u32, param3: u32, param4: u32, ) callconv(@import("std").os.windows.WINAPI) BOOL, else => *const fn ( param0: DHPDEV, param1: ?*PALOBJ, param2: u32, param3: u32, param4: u32, ) callconv(@import("std").os.windows.WINAPI) BOOL, }; pub const PFN_DrvEscape = switch (@import("builtin").zig_backend) { .stage1 => fn ( param0: ?*SURFOBJ, param1: u32, param2: u32, param3: ?*anyopaque, param4: u32, param5: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) u32, else => *const fn ( param0: ?*SURFOBJ, param1: u32, param2: u32, param3: ?*anyopaque, param4: u32, param5: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) u32, }; pub const PFN_DrvDrawEscape = switch (@import("builtin").zig_backend) { .stage1 => fn ( param0: ?*SURFOBJ, param1: u32, param2: ?*CLIPOBJ, param3: ?*RECTL, param4: u32, param5: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) u32, else => *const fn ( param0: ?*SURFOBJ, param1: u32, param2: ?*CLIPOBJ, param3: ?*RECTL, param4: u32, param5: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) u32, }; pub const PFN_DrvQueryFont = switch (@import("builtin").zig_backend) { .stage1 => fn ( param0: DHPDEV, param1: usize, param2: u32, param3: ?*usize, ) callconv(@import("std").os.windows.WINAPI) ?*IFIMETRICS, else => *const fn ( param0: DHPDEV, param1: usize, param2: u32, param3: ?*usize, ) callconv(@import("std").os.windows.WINAPI) ?*IFIMETRICS, }; pub const PFN_DrvQueryFontTree = switch (@import("builtin").zig_backend) { .stage1 => fn ( param0: DHPDEV, param1: usize, param2: u32, param3: u32, param4: ?*usize, ) callconv(@import("std").os.windows.WINAPI) ?*anyopaque, else => *const fn ( param0: DHPDEV, param1: usize, param2: u32, param3: u32, param4: ?*usize, ) callconv(@import("std").os.windows.WINAPI) ?*anyopaque, }; pub const PFN_DrvQueryFontData = switch (@import("builtin").zig_backend) { .stage1 => fn ( param0: DHPDEV, param1: ?*FONTOBJ, param2: u32, param3: u32, param4: ?*GLYPHDATA, param5: ?*anyopaque, param6: u32, ) callconv(@import("std").os.windows.WINAPI) i32, else => *const fn ( param0: DHPDEV, param1: ?*FONTOBJ, param2: u32, param3: u32, param4: ?*GLYPHDATA, param5: ?*anyopaque, param6: u32, ) callconv(@import("std").os.windows.WINAPI) i32, }; pub const PFN_DrvFree = switch (@import("builtin").zig_backend) { .stage1 => fn ( param0: ?*anyopaque, param1: usize, ) callconv(@import("std").os.windows.WINAPI) void, else => *const fn ( param0: ?*anyopaque, param1: usize, ) callconv(@import("std").os.windows.WINAPI) void, }; pub const PFN_DrvDestroyFont = switch (@import("builtin").zig_backend) { .stage1 => fn ( param0: ?*FONTOBJ, ) callconv(@import("std").os.windows.WINAPI) void, else => *const fn ( param0: ?*FONTOBJ, ) callconv(@import("std").os.windows.WINAPI) void, }; pub const PFN_DrvQueryFontCaps = switch (@import("builtin").zig_backend) { .stage1 => fn ( param0: u32, param1: ?*u32, ) callconv(@import("std").os.windows.WINAPI) i32, else => *const fn ( param0: u32, param1: ?*u32, ) callconv(@import("std").os.windows.WINAPI) i32, }; pub const PFN_DrvLoadFontFile = switch (@import("builtin").zig_backend) { .stage1 => fn ( param0: u32, param1: ?*usize, param2: ?*?*anyopaque, param3: ?*u32, param4: ?*DESIGNVECTOR, param5: u32, param6: u32, ) callconv(@import("std").os.windows.WINAPI) usize, else => *const fn ( param0: u32, param1: ?*usize, param2: ?*?*anyopaque, param3: ?*u32, param4: ?*DESIGNVECTOR, param5: u32, param6: u32, ) callconv(@import("std").os.windows.WINAPI) usize, }; pub const PFN_DrvUnloadFontFile = switch (@import("builtin").zig_backend) { .stage1 => fn ( param0: usize, ) callconv(@import("std").os.windows.WINAPI) BOOL, else => *const fn ( param0: usize, ) callconv(@import("std").os.windows.WINAPI) BOOL, }; pub const PFN_DrvSetPointerShape = switch (@import("builtin").zig_backend) { .stage1 => fn ( param0: ?*SURFOBJ, param1: ?*SURFOBJ, param2: ?*SURFOBJ, param3: ?*XLATEOBJ, param4: i32, param5: i32, param6: i32, param7: i32, param8: ?*RECTL, param9: u32, ) callconv(@import("std").os.windows.WINAPI) u32, else => *const fn ( param0: ?*SURFOBJ, param1: ?*SURFOBJ, param2: ?*SURFOBJ, param3: ?*XLATEOBJ, param4: i32, param5: i32, param6: i32, param7: i32, param8: ?*RECTL, param9: u32, ) callconv(@import("std").os.windows.WINAPI) u32, }; pub const PFN_DrvMovePointer = switch (@import("builtin").zig_backend) { .stage1 => fn ( pso: ?*SURFOBJ, x: i32, y: i32, prcl: ?*RECTL, ) callconv(@import("std").os.windows.WINAPI) void, else => *const fn ( pso: ?*SURFOBJ, x: i32, y: i32, prcl: ?*RECTL, ) callconv(@import("std").os.windows.WINAPI) void, }; pub const PFN_DrvSendPage = switch (@import("builtin").zig_backend) { .stage1 => fn ( param0: ?*SURFOBJ, ) callconv(@import("std").os.windows.WINAPI) BOOL, else => *const fn ( param0: ?*SURFOBJ, ) callconv(@import("std").os.windows.WINAPI) BOOL, }; pub const PFN_DrvStartPage = switch (@import("builtin").zig_backend) { .stage1 => fn ( pso: ?*SURFOBJ, ) callconv(@import("std").os.windows.WINAPI) BOOL, else => *const fn ( pso: ?*SURFOBJ, ) callconv(@import("std").os.windows.WINAPI) BOOL, }; pub const PFN_DrvStartDoc = switch (@import("builtin").zig_backend) { .stage1 => fn ( pso: ?*SURFOBJ, pwszDocName: ?PWSTR, dwJobId: u32, ) callconv(@import("std").os.windows.WINAPI) BOOL, else => *const fn ( pso: ?*SURFOBJ, pwszDocName: ?PWSTR, dwJobId: u32, ) callconv(@import("std").os.windows.WINAPI) BOOL, }; pub const PFN_DrvEndDoc = switch (@import("builtin").zig_backend) { .stage1 => fn ( pso: ?*SURFOBJ, fl: u32, ) callconv(@import("std").os.windows.WINAPI) BOOL, else => *const fn ( pso: ?*SURFOBJ, fl: u32, ) callconv(@import("std").os.windows.WINAPI) BOOL, }; pub const PFN_DrvQuerySpoolType = switch (@import("builtin").zig_backend) { .stage1 => fn ( dhpdev: DHPDEV, pwchType: ?PWSTR, ) callconv(@import("std").os.windows.WINAPI) BOOL, else => *const fn ( dhpdev: DHPDEV, pwchType: ?PWSTR, ) callconv(@import("std").os.windows.WINAPI) BOOL, }; pub const PFN_DrvLineTo = switch (@import("builtin").zig_backend) { .stage1 => fn ( param0: ?*SURFOBJ, param1: ?*CLIPOBJ, param2: ?*BRUSHOBJ, param3: i32, param4: i32, param5: i32, param6: i32, param7: ?*RECTL, param8: u32, ) callconv(@import("std").os.windows.WINAPI) BOOL, else => *const fn ( param0: ?*SURFOBJ, param1: ?*CLIPOBJ, param2: ?*BRUSHOBJ, param3: i32, param4: i32, param5: i32, param6: i32, param7: ?*RECTL, param8: u32, ) callconv(@import("std").os.windows.WINAPI) BOOL, }; pub const PFN_DrvStrokePath = switch (@import("builtin").zig_backend) { .stage1 => fn ( param0: ?*SURFOBJ, param1: ?*PATHOBJ, param2: ?*CLIPOBJ, param3: ?*XFORMOBJ, param4: ?*BRUSHOBJ, param5: ?*POINTL, param6: ?*LINEATTRS, param7: u32, ) callconv(@import("std").os.windows.WINAPI) BOOL, else => *const fn ( param0: ?*SURFOBJ, param1: ?*PATHOBJ, param2: ?*CLIPOBJ, param3: ?*XFORMOBJ, param4: ?*BRUSHOBJ, param5: ?*POINTL, param6: ?*LINEATTRS, param7: u32, ) callconv(@import("std").os.windows.WINAPI) BOOL, }; pub const PFN_DrvFillPath = switch (@import("builtin").zig_backend) { .stage1 => fn ( param0: ?*SURFOBJ, param1: ?*PATHOBJ, param2: ?*CLIPOBJ, param3: ?*BRUSHOBJ, param4: ?*POINTL, param5: u32, param6: u32, ) callconv(@import("std").os.windows.WINAPI) BOOL, else => *const fn ( param0: ?*SURFOBJ, param1: ?*PATHOBJ, param2: ?*CLIPOBJ, param3: ?*BRUSHOBJ, param4: ?*POINTL, param5: u32, param6: u32, ) callconv(@import("std").os.windows.WINAPI) BOOL, }; pub const PFN_DrvStrokeAndFillPath = switch (@import("builtin").zig_backend) { .stage1 => fn ( param0: ?*SURFOBJ, param1: ?*PATHOBJ, param2: ?*CLIPOBJ, param3: ?*XFORMOBJ, param4: ?*BRUSHOBJ, param5: ?*LINEATTRS, param6: ?*BRUSHOBJ, param7: ?*POINTL, param8: u32, param9: u32, ) callconv(@import("std").os.windows.WINAPI) BOOL, else => *const fn ( param0: ?*SURFOBJ, param1: ?*PATHOBJ, param2: ?*CLIPOBJ, param3: ?*XFORMOBJ, param4: ?*BRUSHOBJ, param5: ?*LINEATTRS, param6: ?*BRUSHOBJ, param7: ?*POINTL, param8: u32, param9: u32, ) callconv(@import("std").os.windows.WINAPI) BOOL, }; pub const PFN_DrvPaint = switch (@import("builtin").zig_backend) { .stage1 => fn ( param0: ?*SURFOBJ, param1: ?*CLIPOBJ, param2: ?*BRUSHOBJ, param3: ?*POINTL, param4: u32, ) callconv(@import("std").os.windows.WINAPI) BOOL, else => *const fn ( param0: ?*SURFOBJ, param1: ?*CLIPOBJ, param2: ?*BRUSHOBJ, param3: ?*POINTL, param4: u32, ) callconv(@import("std").os.windows.WINAPI) BOOL, }; pub const PFN_DrvGetGlyphMode = switch (@import("builtin").zig_backend) { .stage1 => fn ( dhpdev: DHPDEV, pfo: ?*FONTOBJ, ) callconv(@import("std").os.windows.WINAPI) u32, else => *const fn ( dhpdev: DHPDEV, pfo: ?*FONTOBJ, ) callconv(@import("std").os.windows.WINAPI) u32, }; pub const PFN_DrvResetPDEV = switch (@import("builtin").zig_backend) { .stage1 => fn ( dhpdevOld: DHPDEV, dhpdevNew: DHPDEV, ) callconv(@import("std").os.windows.WINAPI) BOOL, else => *const fn ( dhpdevOld: DHPDEV, dhpdevNew: DHPDEV, ) callconv(@import("std").os.windows.WINAPI) BOOL, }; pub const PFN_DrvSaveScreenBits = switch (@import("builtin").zig_backend) { .stage1 => fn ( param0: ?*SURFOBJ, param1: u32, param2: usize, param3: ?*RECTL, ) callconv(@import("std").os.windows.WINAPI) usize, else => *const fn ( param0: ?*SURFOBJ, param1: u32, param2: usize, param3: ?*RECTL, ) callconv(@import("std").os.windows.WINAPI) usize, }; pub const PFN_DrvGetModes = switch (@import("builtin").zig_backend) { .stage1 => fn ( param0: ?HANDLE, param1: u32, param2: ?*DEVMODEW, ) callconv(@import("std").os.windows.WINAPI) u32, else => *const fn ( param0: ?HANDLE, param1: u32, param2: ?*DEVMODEW, ) callconv(@import("std").os.windows.WINAPI) u32, }; pub const PFN_DrvQueryTrueTypeTable = switch (@import("builtin").zig_backend) { .stage1 => fn ( param0: usize, param1: u32, param2: u32, param3: i32, param4: u32, param5: ?*u8, param6: ?*?*u8, param7: ?*u32, ) callconv(@import("std").os.windows.WINAPI) i32, else => *const fn ( param0: usize, param1: u32, param2: u32, param3: i32, param4: u32, param5: ?*u8, param6: ?*?*u8, param7: ?*u32, ) callconv(@import("std").os.windows.WINAPI) i32, }; pub const PFN_DrvQueryTrueTypeSection = switch (@import("builtin").zig_backend) { .stage1 => fn ( param0: u32, param1: u32, param2: u32, param3: ?*?HANDLE, param4: ?*i32, ) callconv(@import("std").os.windows.WINAPI) i32, else => *const fn ( param0: u32, param1: u32, param2: u32, param3: ?*?HANDLE, param4: ?*i32, ) callconv(@import("std").os.windows.WINAPI) i32, }; pub const PFN_DrvQueryTrueTypeOutline = switch (@import("builtin").zig_backend) { .stage1 => fn ( param0: DHPDEV, param1: ?*FONTOBJ, param2: u32, param3: BOOL, param4: ?*GLYPHDATA, param5: u32, param6: ?*TTPOLYGONHEADER, ) callconv(@import("std").os.windows.WINAPI) i32, else => *const fn ( param0: DHPDEV, param1: ?*FONTOBJ, param2: u32, param3: BOOL, param4: ?*GLYPHDATA, param5: u32, param6: ?*TTPOLYGONHEADER, ) callconv(@import("std").os.windows.WINAPI) i32, }; pub const PFN_DrvGetTrueTypeFile = switch (@import("builtin").zig_backend) { .stage1 => fn ( param0: usize, param1: ?*u32, ) callconv(@import("std").os.windows.WINAPI) ?*anyopaque, else => *const fn ( param0: usize, param1: ?*u32, ) callconv(@import("std").os.windows.WINAPI) ?*anyopaque, }; pub const PFN_DrvQueryFontFile = switch (@import("builtin").zig_backend) { .stage1 => fn ( param0: usize, param1: u32, param2: u32, param3: ?*u32, ) callconv(@import("std").os.windows.WINAPI) i32, else => *const fn ( param0: usize, param1: u32, param2: u32, param3: ?*u32, ) callconv(@import("std").os.windows.WINAPI) i32, }; pub const PFN_DrvQueryGlyphAttrs = switch (@import("builtin").zig_backend) { .stage1 => fn ( param0: ?*FONTOBJ, param1: u32, ) callconv(@import("std").os.windows.WINAPI) ?*FD_GLYPHATTR, else => *const fn ( param0: ?*FONTOBJ, param1: u32, ) callconv(@import("std").os.windows.WINAPI) ?*FD_GLYPHATTR, }; pub const PFN_DrvQueryAdvanceWidths = switch (@import("builtin").zig_backend) { .stage1 => fn ( param0: DHPDEV, param1: ?*FONTOBJ, param2: u32, param3: ?*u32, param4: ?*anyopaque, param5: u32, ) callconv(@import("std").os.windows.WINAPI) BOOL, else => *const fn ( param0: DHPDEV, param1: ?*FONTOBJ, param2: u32, param3: ?*u32, param4: ?*anyopaque, param5: u32, ) callconv(@import("std").os.windows.WINAPI) BOOL, }; pub const PFN_DrvFontManagement = switch (@import("builtin").zig_backend) { .stage1 => fn ( param0: ?*SURFOBJ, param1: ?*FONTOBJ, param2: u32, param3: u32, param4: ?*anyopaque, param5: u32, param6: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) u32, else => *const fn ( param0: ?*SURFOBJ, param1: ?*FONTOBJ, param2: u32, param3: u32, param4: ?*anyopaque, param5: u32, param6: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) u32, }; pub const PFN_DrvSetPixelFormat = switch (@import("builtin").zig_backend) { .stage1 => fn ( param0: ?*SURFOBJ, param1: i32, param2: ?HWND, ) callconv(@import("std").os.windows.WINAPI) BOOL, else => *const fn ( param0: ?*SURFOBJ, param1: i32, param2: ?HWND, ) callconv(@import("std").os.windows.WINAPI) BOOL, }; pub const PFN_DrvDescribePixelFormat = switch (@import("builtin").zig_backend) { .stage1 => fn ( param0: DHPDEV, param1: i32, param2: u32, param3: ?*PIXELFORMATDESCRIPTOR, ) callconv(@import("std").os.windows.WINAPI) i32, else => *const fn ( param0: DHPDEV, param1: i32, param2: u32, param3: ?*PIXELFORMATDESCRIPTOR, ) callconv(@import("std").os.windows.WINAPI) i32, }; pub const PFN_DrvSwapBuffers = switch (@import("builtin").zig_backend) { .stage1 => fn ( param0: ?*SURFOBJ, param1: ?*WNDOBJ, ) callconv(@import("std").os.windows.WINAPI) BOOL, else => *const fn ( param0: ?*SURFOBJ, param1: ?*WNDOBJ, ) callconv(@import("std").os.windows.WINAPI) BOOL, }; pub const PFN_DrvStartBanding = switch (@import("builtin").zig_backend) { .stage1 => fn ( param0: ?*SURFOBJ, ppointl: ?*POINTL, ) callconv(@import("std").os.windows.WINAPI) BOOL, else => *const fn ( param0: ?*SURFOBJ, ppointl: ?*POINTL, ) callconv(@import("std").os.windows.WINAPI) BOOL, }; pub const PFN_DrvNextBand = switch (@import("builtin").zig_backend) { .stage1 => fn ( param0: ?*SURFOBJ, ppointl: ?*POINTL, ) callconv(@import("std").os.windows.WINAPI) BOOL, else => *const fn ( param0: ?*SURFOBJ, ppointl: ?*POINTL, ) callconv(@import("std").os.windows.WINAPI) BOOL, }; pub const PFN_DrvQueryPerBandInfo = switch (@import("builtin").zig_backend) { .stage1 => fn ( param0: ?*SURFOBJ, param1: ?*PERBANDINFO, ) callconv(@import("std").os.windows.WINAPI) BOOL, else => *const fn ( param0: ?*SURFOBJ, param1: ?*PERBANDINFO, ) callconv(@import("std").os.windows.WINAPI) BOOL, }; pub const PFN_DrvEnableDirectDraw = switch (@import("builtin").zig_backend) { .stage1 => fn ( param0: DHPDEV, param1: ?*DD_CALLBACKS, param2: ?*DD_SURFACECALLBACKS, param3: ?*DD_PALETTECALLBACKS, ) callconv(@import("std").os.windows.WINAPI) BOOL, else => *const fn ( param0: DHPDEV, param1: ?*DD_CALLBACKS, param2: ?*DD_SURFACECALLBACKS, param3: ?*DD_PALETTECALLBACKS, ) callconv(@import("std").os.windows.WINAPI) BOOL, }; pub const PFN_DrvDisableDirectDraw = switch (@import("builtin").zig_backend) { .stage1 => fn ( param0: DHPDEV, ) callconv(@import("std").os.windows.WINAPI) void, else => *const fn ( param0: DHPDEV, ) callconv(@import("std").os.windows.WINAPI) void, }; pub const PFN_DrvGetDirectDrawInfo = switch (@import("builtin").zig_backend) { .stage1 => fn ( param0: DHPDEV, param1: ?*DD_HALINFO, param2: ?*u32, param3: ?*VIDEOMEMORY, param4: ?*u32, param5: ?*u32, ) callconv(@import("std").os.windows.WINAPI) BOOL, else => *const fn ( param0: DHPDEV, param1: ?*DD_HALINFO, param2: ?*u32, param3: ?*VIDEOMEMORY, param4: ?*u32, param5: ?*u32, ) callconv(@import("std").os.windows.WINAPI) BOOL, }; pub const PFN_DrvIcmCreateColorTransform = switch (@import("builtin").zig_backend) { .stage1 => fn ( param0: DHPDEV, param1: ?*LOGCOLORSPACEW, param2: ?*anyopaque, param3: u32, param4: ?*anyopaque, param5: u32, param6: ?*anyopaque, param7: u32, param8: u32, ) callconv(@import("std").os.windows.WINAPI) ?HANDLE, else => *const fn ( param0: DHPDEV, param1: ?*LOGCOLORSPACEW, param2: ?*anyopaque, param3: u32, param4: ?*anyopaque, param5: u32, param6: ?*anyopaque, param7: u32, param8: u32, ) callconv(@import("std").os.windows.WINAPI) ?HANDLE, }; pub const PFN_DrvIcmDeleteColorTransform = switch (@import("builtin").zig_backend) { .stage1 => fn ( param0: DHPDEV, param1: ?HANDLE, ) callconv(@import("std").os.windows.WINAPI) BOOL, else => *const fn ( param0: DHPDEV, param1: ?HANDLE, ) callconv(@import("std").os.windows.WINAPI) BOOL, }; pub const PFN_DrvIcmCheckBitmapBits = switch (@import("builtin").zig_backend) { .stage1 => fn ( param0: DHPDEV, param1: ?HANDLE, param2: ?*SURFOBJ, param3: ?*u8, ) callconv(@import("std").os.windows.WINAPI) BOOL, else => *const fn ( param0: DHPDEV, param1: ?HANDLE, param2: ?*SURFOBJ, param3: ?*u8, ) callconv(@import("std").os.windows.WINAPI) BOOL, }; pub const PFN_DrvIcmSetDeviceGammaRamp = switch (@import("builtin").zig_backend) { .stage1 => fn ( param0: DHPDEV, param1: u32, param2: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) BOOL, else => *const fn ( param0: DHPDEV, param1: u32, param2: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) BOOL, }; pub const PFN_DrvAlphaBlend = switch (@import("builtin").zig_backend) { .stage1 => fn ( param0: ?*SURFOBJ, param1: ?*SURFOBJ, param2: ?*CLIPOBJ, param3: ?*XLATEOBJ, param4: ?*RECTL, param5: ?*RECTL, param6: ?*BLENDOBJ, ) callconv(@import("std").os.windows.WINAPI) BOOL, else => *const fn ( param0: ?*SURFOBJ, param1: ?*SURFOBJ, param2: ?*CLIPOBJ, param3: ?*XLATEOBJ, param4: ?*RECTL, param5: ?*RECTL, param6: ?*BLENDOBJ, ) callconv(@import("std").os.windows.WINAPI) BOOL, }; pub const PFN_DrvGradientFill = switch (@import("builtin").zig_backend) { .stage1 => fn ( param0: ?*SURFOBJ, param1: ?*CLIPOBJ, param2: ?*XLATEOBJ, param3: ?*TRIVERTEX, param4: u32, param5: ?*anyopaque, param6: u32, param7: ?*RECTL, param8: ?*POINTL, param9: u32, ) callconv(@import("std").os.windows.WINAPI) BOOL, else => *const fn ( param0: ?*SURFOBJ, param1: ?*CLIPOBJ, param2: ?*XLATEOBJ, param3: ?*TRIVERTEX, param4: u32, param5: ?*anyopaque, param6: u32, param7: ?*RECTL, param8: ?*POINTL, param9: u32, ) callconv(@import("std").os.windows.WINAPI) BOOL, }; pub const PFN_DrvQueryDeviceSupport = switch (@import("builtin").zig_backend) { .stage1 => fn ( param0: ?*SURFOBJ, param1: ?*XLATEOBJ, param2: ?*XFORMOBJ, param3: u32, param4: u32, param5: ?*anyopaque, param6: u32, param7: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) BOOL, else => *const fn ( param0: ?*SURFOBJ, param1: ?*XLATEOBJ, param2: ?*XFORMOBJ, param3: u32, param4: u32, param5: ?*anyopaque, param6: u32, param7: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) BOOL, }; pub const PFN_DrvDeriveSurface = switch (@import("builtin").zig_backend) { .stage1 => fn ( param0: ?*DD_DIRECTDRAW_GLOBAL, param1: ?*DD_SURFACE_LOCAL, ) callconv(@import("std").os.windows.WINAPI) ?HBITMAP, else => *const fn ( param0: ?*DD_DIRECTDRAW_GLOBAL, param1: ?*DD_SURFACE_LOCAL, ) callconv(@import("std").os.windows.WINAPI) ?HBITMAP, }; pub const PFN_DrvSynchronizeSurface = switch (@import("builtin").zig_backend) { .stage1 => fn ( param0: ?*SURFOBJ, param1: ?*RECTL, param2: u32, ) callconv(@import("std").os.windows.WINAPI) void, else => *const fn ( param0: ?*SURFOBJ, param1: ?*RECTL, param2: u32, ) callconv(@import("std").os.windows.WINAPI) void, }; pub const PFN_DrvNotify = switch (@import("builtin").zig_backend) { .stage1 => fn ( param0: ?*SURFOBJ, param1: u32, param2: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) void, else => *const fn ( param0: ?*SURFOBJ, param1: u32, param2: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) void, }; pub const PFN_DrvRenderHint = switch (@import("builtin").zig_backend) { .stage1 => fn ( dhpdev: DHPDEV, NotifyCode: u32, Length: usize, // TODO: what to do with BytesParamIndex 2? Data: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) i32, else => *const fn ( dhpdev: DHPDEV, NotifyCode: u32, Length: usize, // TODO: what to do with BytesParamIndex 2? Data: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) i32, }; pub const DRH_APIBITMAPDATA = extern struct { pso: ?*SURFOBJ, b: BOOL, }; pub const PFN_EngCreateRectRgn = switch (@import("builtin").zig_backend) { .stage1 => fn ( left: i32, top: i32, right: i32, bottom: i32, ) callconv(@import("std").os.windows.WINAPI) ?HANDLE, else => *const fn ( left: i32, top: i32, right: i32, bottom: i32, ) callconv(@import("std").os.windows.WINAPI) ?HANDLE, }; pub const PFN_EngDeleteRgn = switch (@import("builtin").zig_backend) { .stage1 => fn ( hrgn: ?HANDLE, ) callconv(@import("std").os.windows.WINAPI) void, else => *const fn ( hrgn: ?HANDLE, ) callconv(@import("std").os.windows.WINAPI) void, }; pub const PFN_EngCombineRgn = switch (@import("builtin").zig_backend) { .stage1 => fn ( hrgnTrg: ?HANDLE, hrgnSrc1: ?HANDLE, hrgnSrc2: ?HANDLE, imode: i32, ) callconv(@import("std").os.windows.WINAPI) i32, else => *const fn ( hrgnTrg: ?HANDLE, hrgnSrc1: ?HANDLE, hrgnSrc2: ?HANDLE, imode: i32, ) callconv(@import("std").os.windows.WINAPI) i32, }; pub const PFN_EngCopyRgn = switch (@import("builtin").zig_backend) { .stage1 => fn ( hrgnDst: ?HANDLE, hrgnSrc: ?HANDLE, ) callconv(@import("std").os.windows.WINAPI) i32, else => *const fn ( hrgnDst: ?HANDLE, hrgnSrc: ?HANDLE, ) callconv(@import("std").os.windows.WINAPI) i32, }; pub const PFN_EngIntersectRgn = switch (@import("builtin").zig_backend) { .stage1 => fn ( hrgnResult: ?HANDLE, hRgnA: ?HANDLE, hRgnB: ?HANDLE, ) callconv(@import("std").os.windows.WINAPI) i32, else => *const fn ( hrgnResult: ?HANDLE, hRgnA: ?HANDLE, hRgnB: ?HANDLE, ) callconv(@import("std").os.windows.WINAPI) i32, }; pub const PFN_EngSubtractRgn = switch (@import("builtin").zig_backend) { .stage1 => fn ( hrgnResult: ?HANDLE, hRgnA: ?HANDLE, hRgnB: ?HANDLE, ) callconv(@import("std").os.windows.WINAPI) i32, else => *const fn ( hrgnResult: ?HANDLE, hRgnA: ?HANDLE, hRgnB: ?HANDLE, ) callconv(@import("std").os.windows.WINAPI) i32, }; pub const PFN_EngUnionRgn = switch (@import("builtin").zig_backend) { .stage1 => fn ( hrgnResult: ?HANDLE, hRgnA: ?HANDLE, hRgnB: ?HANDLE, ) callconv(@import("std").os.windows.WINAPI) i32, else => *const fn ( hrgnResult: ?HANDLE, hRgnA: ?HANDLE, hRgnB: ?HANDLE, ) callconv(@import("std").os.windows.WINAPI) i32, }; pub const PFN_EngXorRgn = switch (@import("builtin").zig_backend) { .stage1 => fn ( hrgnResult: ?HANDLE, hRgnA: ?HANDLE, hRgnB: ?HANDLE, ) callconv(@import("std").os.windows.WINAPI) i32, else => *const fn ( hrgnResult: ?HANDLE, hRgnA: ?HANDLE, hRgnB: ?HANDLE, ) callconv(@import("std").os.windows.WINAPI) i32, }; pub const PFN_DrvCreateDeviceBitmapEx = switch (@import("builtin").zig_backend) { .stage1 => fn ( param0: DHPDEV, param1: SIZE, param2: u32, param3: u32, param4: DHSURF, param5: u32, param6: u32, param7: ?*?HANDLE, ) callconv(@import("std").os.windows.WINAPI) ?HBITMAP, else => *const fn ( param0: DHPDEV, param1: SIZE, param2: u32, param3: u32, param4: DHSURF, param5: u32, param6: u32, param7: ?*?HANDLE, ) callconv(@import("std").os.windows.WINAPI) ?HBITMAP, }; pub const PFN_DrvDeleteDeviceBitmapEx = switch (@import("builtin").zig_backend) { .stage1 => fn ( param0: DHSURF, ) callconv(@import("std").os.windows.WINAPI) void, else => *const fn ( param0: DHSURF, ) callconv(@import("std").os.windows.WINAPI) void, }; pub const PFN_DrvAssociateSharedSurface = switch (@import("builtin").zig_backend) { .stage1 => fn ( param0: ?*SURFOBJ, param1: ?HANDLE, param2: ?HANDLE, param3: SIZE, ) callconv(@import("std").os.windows.WINAPI) BOOL, else => *const fn ( param0: ?*SURFOBJ, param1: ?HANDLE, param2: ?HANDLE, param3: SIZE, ) callconv(@import("std").os.windows.WINAPI) BOOL, }; pub const PFN_DrvSynchronizeRedirectionBitmaps = switch (@import("builtin").zig_backend) { .stage1 => fn ( param0: DHPDEV, param1: ?*u64, ) callconv(@import("std").os.windows.WINAPI) NTSTATUS, else => *const fn ( param0: DHPDEV, param1: ?*u64, ) callconv(@import("std").os.windows.WINAPI) NTSTATUS, }; pub const PFN_DrvAccumulateD3DDirtyRect = switch (@import("builtin").zig_backend) { .stage1 => fn ( param0: ?*SURFOBJ, param1: ?*CDDDXGK_REDIRBITMAPPRESENTINFO, ) callconv(@import("std").os.windows.WINAPI) BOOL, else => *const fn ( param0: ?*SURFOBJ, param1: ?*CDDDXGK_REDIRBITMAPPRESENTINFO, ) callconv(@import("std").os.windows.WINAPI) BOOL, }; pub const PFN_DrvStartDxInterop = switch (@import("builtin").zig_backend) { .stage1 => fn ( param0: ?*SURFOBJ, param1: BOOL, KernelModeDeviceHandle: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) BOOL, else => *const fn ( param0: ?*SURFOBJ, param1: BOOL, KernelModeDeviceHandle: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) BOOL, }; pub const PFN_DrvEndDxInterop = switch (@import("builtin").zig_backend) { .stage1 => fn ( param0: ?*SURFOBJ, param1: BOOL, param2: ?*BOOL, KernelModeDeviceHandle: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) BOOL, else => *const fn ( param0: ?*SURFOBJ, param1: BOOL, param2: ?*BOOL, KernelModeDeviceHandle: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) BOOL, }; pub const PFN_DrvLockDisplayArea = switch (@import("builtin").zig_backend) { .stage1 => fn ( param0: DHPDEV, param1: ?*RECTL, ) callconv(@import("std").os.windows.WINAPI) void, else => *const fn ( param0: DHPDEV, param1: ?*RECTL, ) callconv(@import("std").os.windows.WINAPI) void, }; pub const PFN_DrvUnlockDisplayArea = switch (@import("builtin").zig_backend) { .stage1 => fn ( param0: DHPDEV, param1: ?*RECTL, ) callconv(@import("std").os.windows.WINAPI) void, else => *const fn ( param0: DHPDEV, param1: ?*RECTL, ) callconv(@import("std").os.windows.WINAPI) void, }; pub const PFN_DrvSurfaceComplete = switch (@import("builtin").zig_backend) { .stage1 => fn ( param0: DHPDEV, param1: ?HANDLE, ) callconv(@import("std").os.windows.WINAPI) BOOL, else => *const fn ( param0: DHPDEV, param1: ?HANDLE, ) callconv(@import("std").os.windows.WINAPI) BOOL, }; pub const INDIRECT_DISPLAY_INFO = extern struct { DisplayAdapterLuid: LUID, Flags: u32, NumMonitors: u32, DisplayAdapterTargetBase: u32, }; pub const VIDEO_VDM = extern struct { ProcessHandle: ?HANDLE, }; pub const VIDEO_REGISTER_VDM = extern struct { MinimumStateSize: u32, }; pub const VIDEO_MONITOR_DESCRIPTOR = extern struct { DescriptorSize: u32, Descriptor: [1]u8, }; pub const VIDEO_WIN32K_CALLBACKS_PARAMS_TYPE = enum(i32) { PowerNotifyCallout = 1, EnumChildPdoNotifyCallout = 3, FindAdapterCallout = 4, PnpNotifyCallout = 7, DxgkDisplaySwitchCallout = 8, DxgkFindAdapterTdrCallout = 10, DxgkHardwareProtectionTeardown = 11, RepaintDesktop = 12, UpdateCursor = 13, DisableMultiPlaneOverlay = 14, DesktopDuplicationChange = 15, BlackScreenDiagnostics = 16, }; pub const VideoPowerNotifyCallout = VIDEO_WIN32K_CALLBACKS_PARAMS_TYPE.PowerNotifyCallout; pub const VideoEnumChildPdoNotifyCallout = VIDEO_WIN32K_CALLBACKS_PARAMS_TYPE.EnumChildPdoNotifyCallout; pub const VideoFindAdapterCallout = VIDEO_WIN32K_CALLBACKS_PARAMS_TYPE.FindAdapterCallout; pub const VideoPnpNotifyCallout = VIDEO_WIN32K_CALLBACKS_PARAMS_TYPE.PnpNotifyCallout; pub const VideoDxgkDisplaySwitchCallout = VIDEO_WIN32K_CALLBACKS_PARAMS_TYPE.DxgkDisplaySwitchCallout; pub const VideoDxgkFindAdapterTdrCallout = VIDEO_WIN32K_CALLBACKS_PARAMS_TYPE.DxgkFindAdapterTdrCallout; pub const VideoDxgkHardwareProtectionTeardown = VIDEO_WIN32K_CALLBACKS_PARAMS_TYPE.DxgkHardwareProtectionTeardown; pub const VideoRepaintDesktop = VIDEO_WIN32K_CALLBACKS_PARAMS_TYPE.RepaintDesktop; pub const VideoUpdateCursor = VIDEO_WIN32K_CALLBACKS_PARAMS_TYPE.UpdateCursor; pub const VideoDisableMultiPlaneOverlay = VIDEO_WIN32K_CALLBACKS_PARAMS_TYPE.DisableMultiPlaneOverlay; pub const VideoDesktopDuplicationChange = VIDEO_WIN32K_CALLBACKS_PARAMS_TYPE.DesktopDuplicationChange; pub const VideoBlackScreenDiagnostics = VIDEO_WIN32K_CALLBACKS_PARAMS_TYPE.BlackScreenDiagnostics; pub const BlackScreenDiagnosticsCalloutParam = enum(i32) { agnosticsData = 1, splayRecovery = 2, }; pub const BlackScreenDiagnosticsData = BlackScreenDiagnosticsCalloutParam.agnosticsData; pub const BlackScreenDisplayRecovery = BlackScreenDiagnosticsCalloutParam.splayRecovery; pub const DXGK_WIN32K_PARAM_DATA = extern struct { PathsArray: ?*anyopaque, ModesArray: ?*anyopaque, NumPathArrayElements: u32, NumModeArrayElements: u32, SDCFlags: u32, }; pub const VIDEO_WIN32K_CALLBACKS_PARAMS = extern struct { CalloutType: VIDEO_WIN32K_CALLBACKS_PARAMS_TYPE, PhysDisp: ?*anyopaque, Param: usize, Status: i32, LockUserSession: BOOLEAN, IsPostDevice: BOOLEAN, SurpriseRemoval: BOOLEAN, WaitForQueueReady: BOOLEAN, }; pub const PVIDEO_WIN32K_CALLOUT = switch (@import("builtin").zig_backend) { .stage1 => fn ( Params: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) void, else => *const fn ( Params: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) void, }; pub const VIDEO_WIN32K_CALLBACKS = extern struct { PhysDisp: ?*anyopaque, Callout: ?PVIDEO_WIN32K_CALLOUT, bACPI: u32, pPhysDeviceObject: ?HANDLE, DualviewFlags: u32, }; pub const VIDEO_DEVICE_SESSION_STATUS = extern struct { bEnable: u32, bSuccess: u32, }; pub const VIDEO_HARDWARE_STATE_HEADER = extern struct { Length: u32, PortValue: [48]u8, AttribIndexDataState: u32, BasicSequencerOffset: u32, BasicCrtContOffset: u32, BasicGraphContOffset: u32, BasicAttribContOffset: u32, BasicDacOffset: u32, BasicLatchesOffset: u32, ExtendedSequencerOffset: u32, ExtendedCrtContOffset: u32, ExtendedGraphContOffset: u32, ExtendedAttribContOffset: u32, ExtendedDacOffset: u32, ExtendedValidatorStateOffset: u32, ExtendedMiscDataOffset: u32, PlaneLength: u32, Plane1Offset: u32, Plane2Offset: u32, Plane3Offset: u32, Plane4Offset: u32, VGAStateFlags: u32, DIBOffset: u32, DIBBitsPerPixel: u32, DIBXResolution: u32, DIBYResolution: u32, DIBXlatOffset: u32, DIBXlatLength: u32, VesaInfoOffset: u32, FrameBufferData: ?*anyopaque, }; pub const VIDEO_HARDWARE_STATE = extern struct { StateHeader: ?*VIDEO_HARDWARE_STATE_HEADER, StateLength: u32, }; pub const VIDEO_NUM_MODES = extern struct { NumModes: u32, ModeInformationLength: u32, }; pub const VIDEO_MODE = extern struct { RequestedMode: u32, }; pub const VIDEO_MODE_INFORMATION = extern struct { Length: u32, ModeIndex: u32, VisScreenWidth: u32, VisScreenHeight: u32, ScreenStride: u32, NumberOfPlanes: u32, BitsPerPlane: u32, Frequency: u32, XMillimeter: u32, YMillimeter: u32, NumberRedBits: u32, NumberGreenBits: u32, NumberBlueBits: u32, RedMask: u32, GreenMask: u32, BlueMask: u32, AttributeFlags: u32, VideoMemoryBitmapWidth: u32, VideoMemoryBitmapHeight: u32, DriverSpecificAttributeFlags: u32, }; pub const VIDEO_LOAD_FONT_INFORMATION = extern struct { WidthInPixels: u16, HeightInPixels: u16, FontSize: u32, Font: [1]u8, }; pub const VIDEO_PALETTE_DATA = extern struct { NumEntries: u16, FirstEntry: u16, Colors: [1]u16, }; pub const VIDEO_CLUTDATA = extern struct { Red: u8, Green: u8, Blue: u8, Unused: u8, }; pub const VIDEO_CLUT = extern struct { NumEntries: u16, FirstEntry: u16, LookupTable: [1]extern union { RgbArray: VIDEO_CLUTDATA, RgbLong: u32, }, }; pub const VIDEO_CURSOR_POSITION = extern struct { Column: i16, Row: i16, }; pub const VIDEO_CURSOR_ATTRIBUTES = extern struct { Width: u16, Height: u16, Column: i16, Row: i16, Rate: u8, Enable: u8, }; pub const VIDEO_POINTER_POSITION = extern struct { Column: i16, Row: i16, }; pub const VIDEO_POINTER_ATTRIBUTES = extern struct { Flags: u32, Width: u32, Height: u32, WidthInBytes: u32, Enable: u32, Column: i16, Row: i16, Pixels: [1]u8, }; pub const VIDEO_POINTER_CAPABILITIES = extern struct { Flags: u32, MaxWidth: u32, MaxHeight: u32, HWPtrBitmapStart: u32, HWPtrBitmapEnd: u32, }; pub const VIDEO_BANK_SELECT = extern struct { Length: u32, Size: u32, BankingFlags: u32, BankingType: u32, PlanarHCBankingType: u32, BitmapWidthInBytes: u32, BitmapSize: u32, Granularity: u32, PlanarHCGranularity: u32, CodeOffset: u32, PlanarHCBankCodeOffset: u32, PlanarHCEnableCodeOffset: u32, PlanarHCDisableCodeOffset: u32, }; pub const VIDEO_BANK_TYPE = enum(i32) { VideoNotBanked = 0, VideoBanked1RW = 1, VideoBanked1R1W = 2, VideoBanked2RW = 3, NumVideoBankTypes = 4, }; pub const VideoNotBanked = VIDEO_BANK_TYPE.VideoNotBanked; pub const VideoBanked1RW = VIDEO_BANK_TYPE.VideoBanked1RW; pub const VideoBanked1R1W = VIDEO_BANK_TYPE.VideoBanked1R1W; pub const VideoBanked2RW = VIDEO_BANK_TYPE.VideoBanked2RW; pub const NumVideoBankTypes = VIDEO_BANK_TYPE.NumVideoBankTypes; pub const VIDEO_MEMORY = extern struct { RequestedVirtualAddress: ?*anyopaque, }; pub const VIDEO_SHARE_MEMORY = extern struct { ProcessHandle: ?HANDLE, ViewOffset: u32, ViewSize: u32, RequestedVirtualAddress: ?*anyopaque, }; pub const VIDEO_SHARE_MEMORY_INFORMATION = extern struct { SharedViewOffset: u32, SharedViewSize: u32, VirtualAddress: ?*anyopaque, }; pub const VIDEO_MEMORY_INFORMATION = extern struct { VideoRamBase: ?*anyopaque, VideoRamLength: u32, FrameBufferBase: ?*anyopaque, FrameBufferLength: u32, }; pub const VIDEO_PUBLIC_ACCESS_RANGES = extern struct { InIoSpace: u32, MappedInIoSpace: u32, VirtualAddress: ?*anyopaque, }; pub const VIDEO_COLOR_CAPABILITIES = extern struct { Length: u32, AttributeFlags: u32, RedPhosphoreDecay: i32, GreenPhosphoreDecay: i32, BluePhosphoreDecay: i32, WhiteChromaticity_x: i32, WhiteChromaticity_y: i32, WhiteChromaticity_Y: i32, RedChromaticity_x: i32, RedChromaticity_y: i32, GreenChromaticity_x: i32, GreenChromaticity_y: i32, BlueChromaticity_x: i32, BlueChromaticity_y: i32, WhiteGamma: i32, RedGamma: i32, GreenGamma: i32, BlueGamma: i32, }; pub const VIDEO_POWER_STATE = enum(i32) { Unspecified = 0, On = 1, StandBy = 2, Suspend = 3, Off = 4, Hibernate = 5, Shutdown = 6, Maximum = 7, }; pub const VideoPowerUnspecified = VIDEO_POWER_STATE.Unspecified; pub const VideoPowerOn = VIDEO_POWER_STATE.On; pub const VideoPowerStandBy = VIDEO_POWER_STATE.StandBy; pub const VideoPowerSuspend = VIDEO_POWER_STATE.Suspend; pub const VideoPowerOff = VIDEO_POWER_STATE.Off; pub const VideoPowerHibernate = VIDEO_POWER_STATE.Hibernate; pub const VideoPowerShutdown = VIDEO_POWER_STATE.Shutdown; pub const VideoPowerMaximum = VIDEO_POWER_STATE.Maximum; pub const VIDEO_POWER_MANAGEMENT = extern struct { Length: u32, DPMSVersion: u32, PowerState: u32, }; pub const VIDEO_COLOR_LUT_DATA = extern struct { Length: u32, LutDataFormat: u32, LutData: [1]u8, }; pub const VIDEO_LUT_RGB256WORDS = extern struct { Red: [256]u16, Green: [256]u16, Blue: [256]u16, }; pub const BANK_POSITION = extern struct { ReadBankPosition: u32, WriteBankPosition: u32, }; pub const DISPLAY_BRIGHTNESS = extern struct { ucDisplayPolicy: u8, ucACBrightness: u8, ucDCBrightness: u8, }; pub const VIDEO_BRIGHTNESS_POLICY = extern struct { DefaultToBiosPolicy: BOOLEAN, LevelCount: u8, Level: [1]extern struct { BatteryLevel: u8, Brightness: u8, }, }; pub const FSCNTL_SCREEN_INFO = extern struct { Position: COORD, ScreenSize: COORD, nNumberOfChars: u32, }; pub const FONT_IMAGE_INFO = extern struct { FontSize: COORD, ImageBits: ?*u8, }; pub const CHAR_IMAGE_INFO = extern struct { CharInfo: CHAR_INFO, FontImageInfo: FONT_IMAGE_INFO, }; pub const VGA_CHAR = extern struct { Char: CHAR, Attributes: CHAR, }; pub const FSVIDEO_COPY_FRAME_BUFFER = extern struct { SrcScreen: FSCNTL_SCREEN_INFO, DestScreen: FSCNTL_SCREEN_INFO, }; pub const FSVIDEO_WRITE_TO_FRAME_BUFFER = extern struct { SrcBuffer: ?*CHAR_IMAGE_INFO, DestScreen: FSCNTL_SCREEN_INFO, }; pub const FSVIDEO_REVERSE_MOUSE_POINTER = extern struct { Screen: FSCNTL_SCREEN_INFO, dwType: u32, }; pub const FSVIDEO_MODE_INFORMATION = extern struct { VideoMode: VIDEO_MODE_INFORMATION, VideoMemory: VIDEO_MEMORY_INFORMATION, }; pub const FSVIDEO_SCREEN_INFORMATION = extern struct { ScreenSize: COORD, FontSize: COORD, }; pub const FSVIDEO_CURSOR_POSITION = extern struct { Coord: VIDEO_CURSOR_POSITION, dwType: u32, }; pub const ENG_EVENT = extern struct { pKEvent: ?*anyopaque, fFlags: u32, }; pub const VIDEO_PERFORMANCE_COUNTER = extern struct { NbOfAllocationEvicted: [10]u64, NbOfAllocationMarked: [10]u64, NbOfAllocationRestored: [10]u64, KBytesEvicted: [10]u64, KBytesMarked: [10]u64, KBytesRestored: [10]u64, NbProcessCommited: u64, NbAllocationCommited: u64, NbAllocationMarked: u64, KBytesAllocated: u64, KBytesAvailable: u64, KBytesCurMarked: u64, Reference: u64, Unreference: u64, TrueReference: u64, NbOfPageIn: u64, KBytesPageIn: u64, NbOfPageOut: u64, KBytesPageOut: u64, NbOfRotateOut: u64, KBytesRotateOut: u64, }; pub const VIDEO_QUERY_PERFORMANCE_COUNTER = extern struct { BufferSize: u32, Buffer: ?*VIDEO_PERFORMANCE_COUNTER, }; pub const BRIGHTNESS_INTERFACE_VERSION = enum(i32) { @"1" = 1, @"2" = 2, @"3" = 3, }; pub const BRIGHTNESS_INTERFACE_VERSION_1 = BRIGHTNESS_INTERFACE_VERSION.@"1"; pub const BRIGHTNESS_INTERFACE_VERSION_2 = BRIGHTNESS_INTERFACE_VERSION.@"2"; pub const BRIGHTNESS_INTERFACE_VERSION_3 = BRIGHTNESS_INTERFACE_VERSION.@"3"; pub const PANEL_QUERY_BRIGHTNESS_CAPS = extern struct { Version: BRIGHTNESS_INTERFACE_VERSION, Anonymous: extern union { Anonymous: extern struct { _bitfield: u32, }, Value: u32, }, }; pub const BRIGHTNESS_LEVEL = extern struct { Count: u8, Level: [103]u8, }; pub const BRIGHTNESS_NIT_RANGE = extern struct { MinLevelInMillinit: u32, MaxLevelInMillinit: u32, StepSizeInMillinit: u32, }; pub const BRIGHTNESS_NIT_RANGES = extern struct { NormalRangeCount: u32, RangeCount: u32, PreferredMaximumBrightness: u32, SupportedRanges: [16]BRIGHTNESS_NIT_RANGE, }; pub const PANEL_QUERY_BRIGHTNESS_RANGES = extern struct { Version: BRIGHTNESS_INTERFACE_VERSION, Anonymous: extern union { BrightnessLevel: BRIGHTNESS_LEVEL, NitRanges: BRIGHTNESS_NIT_RANGES, }, }; pub const PANEL_GET_BRIGHTNESS = extern struct { Version: BRIGHTNESS_INTERFACE_VERSION, Anonymous: extern union { Level: u8, Anonymous: extern struct { CurrentInMillinits: u32, TargetInMillinits: u32, }, }, }; pub const CHROMATICITY_COORDINATE = extern struct { x: f32, y: f32, }; pub const PANEL_BRIGHTNESS_SENSOR_DATA = extern struct { Anonymous: extern union { Anonymous: extern struct { _bitfield: u32, }, Value: u32, }, AlsReading: f32, ChromaticityCoordinate: CHROMATICITY_COORDINATE, ColorTemperature: f32, }; pub const PANEL_SET_BRIGHTNESS = extern struct { Version: BRIGHTNESS_INTERFACE_VERSION, Anonymous: extern union { Level: u8, Anonymous: extern struct { Millinits: u32, TransitionTimeInMs: u32, SensorData: PANEL_BRIGHTNESS_SENSOR_DATA, }, }, }; pub const PANEL_SET_BRIGHTNESS_STATE = extern struct { Anonymous: extern union { Anonymous: extern struct { _bitfield: u32, }, Value: u32, }, }; pub const BACKLIGHT_OPTIMIZATION_LEVEL = enum(i32) { Disable = 0, Desktop = 1, Dynamic = 2, Dimmed = 3, EDR = 4, }; pub const BacklightOptimizationDisable = BACKLIGHT_OPTIMIZATION_LEVEL.Disable; pub const BacklightOptimizationDesktop = BACKLIGHT_OPTIMIZATION_LEVEL.Desktop; pub const BacklightOptimizationDynamic = BACKLIGHT_OPTIMIZATION_LEVEL.Dynamic; pub const BacklightOptimizationDimmed = BACKLIGHT_OPTIMIZATION_LEVEL.Dimmed; pub const BacklightOptimizationEDR = BACKLIGHT_OPTIMIZATION_LEVEL.EDR; pub const PANEL_SET_BACKLIGHT_OPTIMIZATION = extern struct { Level: BACKLIGHT_OPTIMIZATION_LEVEL, }; pub const BACKLIGHT_REDUCTION_GAMMA_RAMP = extern struct { R: [256]u16, G: [256]u16, B: [256]u16, }; pub const PANEL_GET_BACKLIGHT_REDUCTION = extern struct { BacklightUsersetting: u16, BacklightEffective: u16, GammaRamp: BACKLIGHT_REDUCTION_GAMMA_RAMP, }; pub const COLORSPACE_TRANSFORM_DATA_TYPE = enum(i32) { IXED_POINT = 0, LOAT = 1, }; pub const COLORSPACE_TRANSFORM_DATA_TYPE_FIXED_POINT = COLORSPACE_TRANSFORM_DATA_TYPE.IXED_POINT; pub const COLORSPACE_TRANSFORM_DATA_TYPE_FLOAT = COLORSPACE_TRANSFORM_DATA_TYPE.LOAT; pub const COLORSPACE_TRANSFORM_DATA_CAP = extern struct { DataType: COLORSPACE_TRANSFORM_DATA_TYPE, Anonymous: extern union { Anonymous1: extern struct { _bitfield: u32, }, Anonymous2: extern struct { _bitfield: u32, }, Value: u32, }, NumericRangeMin: f32, NumericRangeMax: f32, }; pub const COLORSPACE_TRANSFORM_1DLUT_CAP = extern struct { NumberOfLUTEntries: u32, DataCap: COLORSPACE_TRANSFORM_DATA_CAP, }; pub const COLORSPACE_TRANSFORM_MATRIX_CAP = extern struct { Anonymous: extern union { Anonymous: extern struct { _bitfield: u32, }, Value: u32, }, DataCap: COLORSPACE_TRANSFORM_DATA_CAP, }; pub const COLORSPACE_TRANSFORM_TARGET_CAPS_VERSION = enum(i32) { DEFAULT = 0, @"1" = 1, // NOT_SUPPORTED = 0, this enum value conflicts with DEFAULT }; pub const COLORSPACE_TRANSFORM_VERSION_DEFAULT = COLORSPACE_TRANSFORM_TARGET_CAPS_VERSION.DEFAULT; pub const COLORSPACE_TRANSFORM_VERSION_1 = COLORSPACE_TRANSFORM_TARGET_CAPS_VERSION.@"1"; pub const COLORSPACE_TRANSFORM_VERSION_NOT_SUPPORTED = COLORSPACE_TRANSFORM_TARGET_CAPS_VERSION.DEFAULT; pub const COLORSPACE_TRANSFORM_TARGET_CAPS = extern struct { Version: COLORSPACE_TRANSFORM_TARGET_CAPS_VERSION, LookupTable1DDegammaCap: COLORSPACE_TRANSFORM_1DLUT_CAP, ColorMatrix3x3Cap: COLORSPACE_TRANSFORM_MATRIX_CAP, LookupTable1DRegammaCap: COLORSPACE_TRANSFORM_1DLUT_CAP, }; pub const COLORSPACE_TRANSFORM_TYPE = enum(i32) { UNINITIALIZED = 0, DEFAULT = 1, RGB256x3x16 = 2, DXGI_1 = 3, MATRIX_3x4 = 4, MATRIX_V2 = 5, }; pub const COLORSPACE_TRANSFORM_TYPE_UNINITIALIZED = COLORSPACE_TRANSFORM_TYPE.UNINITIALIZED; pub const COLORSPACE_TRANSFORM_TYPE_DEFAULT = COLORSPACE_TRANSFORM_TYPE.DEFAULT; pub const COLORSPACE_TRANSFORM_TYPE_RGB256x3x16 = COLORSPACE_TRANSFORM_TYPE.RGB256x3x16; pub const COLORSPACE_TRANSFORM_TYPE_DXGI_1 = COLORSPACE_TRANSFORM_TYPE.DXGI_1; pub const COLORSPACE_TRANSFORM_TYPE_MATRIX_3x4 = COLORSPACE_TRANSFORM_TYPE.MATRIX_3x4; pub const COLORSPACE_TRANSFORM_TYPE_MATRIX_V2 = COLORSPACE_TRANSFORM_TYPE.MATRIX_V2; pub const GAMMA_RAMP_RGB256x3x16 = extern struct { Red: [256]u16, Green: [256]u16, Blue: [256]u16, }; pub const GAMMA_RAMP_RGB = extern struct { Red: f32, Green: f32, Blue: f32, }; pub const GAMMA_RAMP_DXGI_1 = extern struct { Scale: GAMMA_RAMP_RGB, Offset: GAMMA_RAMP_RGB, GammaCurve: [1025]GAMMA_RAMP_RGB, }; pub const COLORSPACE_TRANSFORM_3x4 = extern struct { ColorMatrix3x4: [12]f32, ScalarMultiplier: f32, LookupTable1D: [4096]GAMMA_RAMP_RGB, }; pub const OUTPUT_WIRE_COLOR_SPACE_TYPE = enum(i32) { G22_P709 = 0, RESERVED = 4, G2084_P2020 = 12, G22_P709_WCG = 30, G22_P2020 = 31, G2084_P2020_HDR10PLUS = 32, G2084_P2020_DVLL = 33, }; pub const OUTPUT_WIRE_COLOR_SPACE_G22_P709 = OUTPUT_WIRE_COLOR_SPACE_TYPE.G22_P709; pub const OUTPUT_WIRE_COLOR_SPACE_RESERVED = OUTPUT_WIRE_COLOR_SPACE_TYPE.RESERVED; pub const OUTPUT_WIRE_COLOR_SPACE_G2084_P2020 = OUTPUT_WIRE_COLOR_SPACE_TYPE.G2084_P2020; pub const OUTPUT_WIRE_COLOR_SPACE_G22_P709_WCG = OUTPUT_WIRE_COLOR_SPACE_TYPE.G22_P709_WCG; pub const OUTPUT_WIRE_COLOR_SPACE_G22_P2020 = OUTPUT_WIRE_COLOR_SPACE_TYPE.G22_P2020; pub const OUTPUT_WIRE_COLOR_SPACE_G2084_P2020_HDR10PLUS = OUTPUT_WIRE_COLOR_SPACE_TYPE.G2084_P2020_HDR10PLUS; pub const OUTPUT_WIRE_COLOR_SPACE_G2084_P2020_DVLL = OUTPUT_WIRE_COLOR_SPACE_TYPE.G2084_P2020_DVLL; pub const OUTPUT_COLOR_ENCODING = enum(i32) { RGB = 0, YCBCR444 = 1, YCBCR422 = 2, YCBCR420 = 3, INTENSITY = 4, FORCE_UINT32 = -1, }; pub const OUTPUT_COLOR_ENCODING_RGB = OUTPUT_COLOR_ENCODING.RGB; pub const OUTPUT_COLOR_ENCODING_YCBCR444 = OUTPUT_COLOR_ENCODING.YCBCR444; pub const OUTPUT_COLOR_ENCODING_YCBCR422 = OUTPUT_COLOR_ENCODING.YCBCR422; pub const OUTPUT_COLOR_ENCODING_YCBCR420 = OUTPUT_COLOR_ENCODING.YCBCR420; pub const OUTPUT_COLOR_ENCODING_INTENSITY = OUTPUT_COLOR_ENCODING.INTENSITY; pub const OUTPUT_COLOR_ENCODING_FORCE_UINT32 = OUTPUT_COLOR_ENCODING.FORCE_UINT32; pub const OUTPUT_WIRE_FORMAT = extern struct { ColorEncoding: OUTPUT_COLOR_ENCODING, BitsPerPixel: u32, }; pub const COLORSPACE_TRANSFORM_STAGE_CONTROL = enum(i32) { No_Change = 0, Enable = 1, Bypass = 2, }; pub const ColorSpaceTransformStageControl_No_Change = COLORSPACE_TRANSFORM_STAGE_CONTROL.No_Change; pub const ColorSpaceTransformStageControl_Enable = COLORSPACE_TRANSFORM_STAGE_CONTROL.Enable; pub const ColorSpaceTransformStageControl_Bypass = COLORSPACE_TRANSFORM_STAGE_CONTROL.Bypass; pub const COLORSPACE_TRANSFORM_MATRIX_V2 = extern struct { StageControlLookupTable1DDegamma: COLORSPACE_TRANSFORM_STAGE_CONTROL, LookupTable1DDegamma: [4096]GAMMA_RAMP_RGB, StageControlColorMatrix3x3: COLORSPACE_TRANSFORM_STAGE_CONTROL, ColorMatrix3x3: [9]f32, StageControlLookupTable1DRegamma: COLORSPACE_TRANSFORM_STAGE_CONTROL, LookupTable1DRegamma: [4096]GAMMA_RAMP_RGB, }; pub const COLORSPACE_TRANSFORM = extern struct { Type: COLORSPACE_TRANSFORM_TYPE, Data: extern union { Rgb256x3x16: GAMMA_RAMP_RGB256x3x16, Dxgi1: GAMMA_RAMP_DXGI_1, T3x4: COLORSPACE_TRANSFORM_3x4, MatrixV2: COLORSPACE_TRANSFORM_MATRIX_V2, }, }; pub const COLORSPACE_TRANSFORM_SET_INPUT = extern struct { OutputWireColorSpaceExpected: OUTPUT_WIRE_COLOR_SPACE_TYPE, OutputWireFormatExpected: OUTPUT_WIRE_FORMAT, ColorSpaceTransform: COLORSPACE_TRANSFORM, }; pub const SET_ACTIVE_COLOR_PROFILE_NAME = extern struct { ColorProfileName: [1]u16, }; pub const MIPI_DSI_CAPS = extern struct { DSITypeMajor: u8, DSITypeMinor: u8, SpecVersionMajor: u8, SpecVersionMinor: u8, SpecVersionPatch: u8, TargetMaximumReturnPacketSize: u16, ResultCodeFlags: u8, ResultCodeStatus: u8, Revision: u8, Level: u8, DeviceClassHi: u8, DeviceClassLo: u8, ManufacturerHi: u8, ManufacturerLo: u8, ProductHi: u8, ProductLo: u8, LengthHi: u8, LengthLo: u8, }; pub const DSI_CONTROL_TRANSMISSION_MODE = enum(i32) { DEFAULT = 0, FORCE_LOW_POWER = 1, FORCE_HIGH_PERFORMANCE = 2, }; pub const DCT_DEFAULT = DSI_CONTROL_TRANSMISSION_MODE.DEFAULT; pub const DCT_FORCE_LOW_POWER = DSI_CONTROL_TRANSMISSION_MODE.FORCE_LOW_POWER; pub const DCT_FORCE_HIGH_PERFORMANCE = DSI_CONTROL_TRANSMISSION_MODE.FORCE_HIGH_PERFORMANCE; pub const MIPI_DSI_PACKET = extern struct { Anonymous1: extern union { DataId: u8, Anonymous: extern struct { _bitfield: u8, }, }, Anonymous2: extern union { Anonymous: extern struct { Data0: u8, Data1: u8, }, LongWriteWordCount: u16, }, EccFiller: u8, Payload: [8]u8, }; pub const MIPI_DSI_TRANSMISSION = extern struct { TotalBufferSize: u32, PacketCount: u8, FailedPacket: u8, Anonymous: extern struct { _bitfield: u16, }, ReadWordCount: u16, FinalCommandExtraPayload: u16, MipiErrors: u16, HostErrors: u16, Packets: [1]MIPI_DSI_PACKET, }; pub const MIPI_DSI_RESET = extern struct { Flags: u32, Anonymous: extern union { Anonymous: extern struct { _bitfield: u32, }, Results: u32, }, }; pub const AR_STATE = enum(i32) { ENABLED = 0, DISABLED = 1, SUPPRESSED = 2, REMOTESESSION = 4, MULTIMON = 8, NOSENSOR = 16, NOT_SUPPORTED = 32, DOCKED = 64, LAPTOP = 128, }; pub const AR_ENABLED = AR_STATE.ENABLED; pub const AR_DISABLED = AR_STATE.DISABLED; pub const AR_SUPPRESSED = AR_STATE.SUPPRESSED; pub const AR_REMOTESESSION = AR_STATE.REMOTESESSION; pub const AR_MULTIMON = AR_STATE.MULTIMON; pub const AR_NOSENSOR = AR_STATE.NOSENSOR; pub const AR_NOT_SUPPORTED = AR_STATE.NOT_SUPPORTED; pub const AR_DOCKED = AR_STATE.DOCKED; pub const AR_LAPTOP = AR_STATE.LAPTOP; pub const ORIENTATION_PREFERENCE = enum(i32) { NONE = 0, LANDSCAPE = 1, PORTRAIT = 2, LANDSCAPE_FLIPPED = 4, PORTRAIT_FLIPPED = 8, }; pub const ORIENTATION_PREFERENCE_NONE = ORIENTATION_PREFERENCE.NONE; pub const ORIENTATION_PREFERENCE_LANDSCAPE = ORIENTATION_PREFERENCE.LANDSCAPE; pub const ORIENTATION_PREFERENCE_PORTRAIT = ORIENTATION_PREFERENCE.PORTRAIT; pub const ORIENTATION_PREFERENCE_LANDSCAPE_FLIPPED = ORIENTATION_PREFERENCE.LANDSCAPE_FLIPPED; pub const ORIENTATION_PREFERENCE_PORTRAIT_FLIPPED = ORIENTATION_PREFERENCE.PORTRAIT_FLIPPED; pub const POINTE = switch (@import("../zig.zig").arch) { .X64, .Arm64 => extern struct { x: f32, y: f32, }, .X86 => extern struct { x: u32, y: u32, }, }; pub const FLOAT_LONG = switch (@import("../zig.zig").arch) { .X64, .Arm64 => extern union { e: f32, l: i32, }, .X86 => extern union { e: u32, l: i32, }, }; pub const FD_XFORM = switch (@import("../zig.zig").arch) { .X64, .Arm64 => extern struct { eXX: f32, eXY: f32, eYX: f32, eYY: f32, }, .X86 => extern struct { eXX: u32, eXY: u32, eYX: u32, eYY: u32, }, }; pub const IFIMETRICS = switch (@import("../zig.zig").arch) { .X64, .Arm64 => extern struct { cjThis: u32, cjIfiExtra: u32, dpwszFamilyName: i32, dpwszStyleName: i32, dpwszFaceName: i32, dpwszUniqueName: i32, dpFontSim: i32, lEmbedId: i32, lItalicAngle: i32, lCharBias: i32, dpCharSets: i32, jWinCharSet: u8, jWinPitchAndFamily: u8, usWinWeight: u16, flInfo: u32, fsSelection: u16, fsType: u16, fwdUnitsPerEm: i16, fwdLowestPPEm: i16, fwdWinAscender: i16, fwdWinDescender: i16, fwdMacAscender: i16, fwdMacDescender: i16, fwdMacLineGap: i16, fwdTypoAscender: i16, fwdTypoDescender: i16, fwdTypoLineGap: i16, fwdAveCharWidth: i16, fwdMaxCharInc: i16, fwdCapHeight: i16, fwdXHeight: i16, fwdSubscriptXSize: i16, fwdSubscriptYSize: i16, fwdSubscriptXOffset: i16, fwdSubscriptYOffset: i16, fwdSuperscriptXSize: i16, fwdSuperscriptYSize: i16, fwdSuperscriptXOffset: i16, fwdSuperscriptYOffset: i16, fwdUnderscoreSize: i16, fwdUnderscorePosition: i16, fwdStrikeoutSize: i16, fwdStrikeoutPosition: i16, chFirstChar: u8, chLastChar: u8, chDefaultChar: u8, chBreakChar: u8, wcFirstChar: u16, wcLastChar: u16, wcDefaultChar: u16, wcBreakChar: u16, ptlBaseline: POINTL, ptlAspect: POINTL, ptlCaret: POINTL, rclFontBox: RECTL, achVendId: [4]u8, cKerningPairs: u32, ulPanoseCulture: u32, panose: PANOSE, Align: ?*anyopaque, }, .X86 => extern struct { cjThis: u32, cjIfiExtra: u32, dpwszFamilyName: i32, dpwszStyleName: i32, dpwszFaceName: i32, dpwszUniqueName: i32, dpFontSim: i32, lEmbedId: i32, lItalicAngle: i32, lCharBias: i32, dpCharSets: i32, jWinCharSet: u8, jWinPitchAndFamily: u8, usWinWeight: u16, flInfo: u32, fsSelection: u16, fsType: u16, fwdUnitsPerEm: i16, fwdLowestPPEm: i16, fwdWinAscender: i16, fwdWinDescender: i16, fwdMacAscender: i16, fwdMacDescender: i16, fwdMacLineGap: i16, fwdTypoAscender: i16, fwdTypoDescender: i16, fwdTypoLineGap: i16, fwdAveCharWidth: i16, fwdMaxCharInc: i16, fwdCapHeight: i16, fwdXHeight: i16, fwdSubscriptXSize: i16, fwdSubscriptYSize: i16, fwdSubscriptXOffset: i16, fwdSubscriptYOffset: i16, fwdSuperscriptXSize: i16, fwdSuperscriptYSize: i16, fwdSuperscriptXOffset: i16, fwdSuperscriptYOffset: i16, fwdUnderscoreSize: i16, fwdUnderscorePosition: i16, fwdStrikeoutSize: i16, fwdStrikeoutPosition: i16, chFirstChar: u8, chLastChar: u8, chDefaultChar: u8, chBreakChar: u8, wcFirstChar: u16, wcLastChar: u16, wcDefaultChar: u16, wcBreakChar: u16, ptlBaseline: POINTL, ptlAspect: POINTL, ptlCaret: POINTL, rclFontBox: RECTL, achVendId: [4]u8, cKerningPairs: u32, ulPanoseCulture: u32, panose: PANOSE, }, }; pub const LINEATTRS = switch (@import("../zig.zig").arch) { .X64, .Arm64 => extern struct { fl: u32, iJoin: u32, iEndCap: u32, elWidth: FLOAT_LONG, eMiterLimit: f32, cstyle: u32, pstyle: ?*FLOAT_LONG, elStyleState: FLOAT_LONG, }, .X86 => extern struct { fl: u32, iJoin: u32, iEndCap: u32, elWidth: FLOAT_LONG, eMiterLimit: u32, cstyle: u32, pstyle: ?*FLOAT_LONG, elStyleState: FLOAT_LONG, }, }; pub const XFORML = switch (@import("../zig.zig").arch) { .X64, .Arm64 => extern struct { eM11: f32, eM12: f32, eM21: f32, eM22: f32, eDx: f32, eDy: f32, }, .X86 => extern struct { eM11: u32, eM12: u32, eM21: u32, eM22: u32, eDx: u32, eDy: u32, }, }; pub const FLOATOBJ_XFORM = switch (@import("../zig.zig").arch) { .X64, .Arm64 => extern struct { eM11: f32, eM12: f32, eM21: f32, eM22: f32, eDx: f32, eDy: f32, }, .X86 => extern struct { eM11: FLOATOBJ, eM12: FLOATOBJ, eM21: FLOATOBJ, eM22: FLOATOBJ, eDx: FLOATOBJ, eDy: FLOATOBJ, }, }; pub const FLOATOBJ = switch (@import("../zig.zig").arch) { .X86 => extern struct { ul1: u32, ul2: u32, }, else => usize, // NOTE: this should be a @compileError but can't because of https://github.com/ziglang/zig/issues/9682 }; //-------------------------------------------------------------------------------- // Section: Functions (119) //-------------------------------------------------------------------------------- // TODO: this type is limited to platform 'windows6.0.6000' pub extern "dxva2" fn GetNumberOfPhysicalMonitorsFromHMONITOR( hMonitor: ?HMONITOR, pdwNumberOfPhysicalMonitors: ?*u32, ) callconv(@import("std").os.windows.WINAPI) i32; // TODO: this type is limited to platform 'windows6.0.6000' pub extern "dxva2" fn GetNumberOfPhysicalMonitorsFromIDirect3DDevice9( pDirect3DDevice9: ?*IDirect3DDevice9, pdwNumberOfPhysicalMonitors: ?*u32, ) callconv(@import("std").os.windows.WINAPI) HRESULT; // TODO: this type is limited to platform 'windows6.0.6000' pub extern "dxva2" fn GetPhysicalMonitorsFromHMONITOR( hMonitor: ?HMONITOR, dwPhysicalMonitorArraySize: u32, pPhysicalMonitorArray: [*]PHYSICAL_MONITOR, ) callconv(@import("std").os.windows.WINAPI) i32; // TODO: this type is limited to platform 'windows6.0.6000' pub extern "dxva2" fn GetPhysicalMonitorsFromIDirect3DDevice9( pDirect3DDevice9: ?*IDirect3DDevice9, dwPhysicalMonitorArraySize: u32, pPhysicalMonitorArray: [*]PHYSICAL_MONITOR, ) callconv(@import("std").os.windows.WINAPI) HRESULT; // TODO: this type is limited to platform 'windows6.0.6000' pub extern "dxva2" fn DestroyPhysicalMonitor( hMonitor: ?HANDLE, ) callconv(@import("std").os.windows.WINAPI) i32; // TODO: this type is limited to platform 'windows6.0.6000' pub extern "dxva2" fn DestroyPhysicalMonitors( dwPhysicalMonitorArraySize: u32, pPhysicalMonitorArray: [*]PHYSICAL_MONITOR, ) callconv(@import("std").os.windows.WINAPI) i32; // TODO: this type is limited to platform 'windows6.0.6000' pub extern "dxva2" fn GetVCPFeatureAndVCPFeatureReply( hMonitor: ?HANDLE, bVCPCode: u8, pvct: ?*MC_VCP_CODE_TYPE, pdwCurrentValue: ?*u32, pdwMaximumValue: ?*u32, ) callconv(@import("std").os.windows.WINAPI) i32; // TODO: this type is limited to platform 'windows6.0.6000' pub extern "dxva2" fn SetVCPFeature( hMonitor: ?HANDLE, bVCPCode: u8, dwNewValue: u32, ) callconv(@import("std").os.windows.WINAPI) i32; // TODO: this type is limited to platform 'windows6.0.6000' pub extern "dxva2" fn SaveCurrentSettings( hMonitor: ?HANDLE, ) callconv(@import("std").os.windows.WINAPI) i32; // TODO: this type is limited to platform 'windows6.0.6000' pub extern "dxva2" fn GetCapabilitiesStringLength( hMonitor: ?HANDLE, pdwCapabilitiesStringLengthInCharacters: ?*u32, ) callconv(@import("std").os.windows.WINAPI) i32; // TODO: this type is limited to platform 'windows6.0.6000' pub extern "dxva2" fn CapabilitiesRequestAndCapabilitiesReply( hMonitor: ?HANDLE, pszASCIICapabilitiesString: [*:0]u8, dwCapabilitiesStringLengthInCharacters: u32, ) callconv(@import("std").os.windows.WINAPI) i32; // TODO: this type is limited to platform 'windows6.0.6000' pub extern "dxva2" fn GetTimingReport( hMonitor: ?HANDLE, pmtrMonitorTimingReport: ?*MC_TIMING_REPORT, ) callconv(@import("std").os.windows.WINAPI) i32; // TODO: this type is limited to platform 'windows6.0.6000' pub extern "dxva2" fn GetMonitorCapabilities( hMonitor: ?HANDLE, pdwMonitorCapabilities: ?*u32, pdwSupportedColorTemperatures: ?*u32, ) callconv(@import("std").os.windows.WINAPI) i32; // TODO: this type is limited to platform 'windows6.0.6000' pub extern "dxva2" fn SaveCurrentMonitorSettings( hMonitor: ?HANDLE, ) callconv(@import("std").os.windows.WINAPI) i32; // TODO: this type is limited to platform 'windows6.0.6000' pub extern "dxva2" fn GetMonitorTechnologyType( hMonitor: ?HANDLE, pdtyDisplayTechnologyType: ?*MC_DISPLAY_TECHNOLOGY_TYPE, ) callconv(@import("std").os.windows.WINAPI) i32; // TODO: this type is limited to platform 'windows6.0.6000' pub extern "dxva2" fn GetMonitorBrightness( hMonitor: ?HANDLE, pdwMinimumBrightness: ?*u32, pdwCurrentBrightness: ?*u32, pdwMaximumBrightness: ?*u32, ) callconv(@import("std").os.windows.WINAPI) i32; // TODO: this type is limited to platform 'windows6.0.6000' pub extern "dxva2" fn GetMonitorContrast( hMonitor: ?HANDLE, pdwMinimumContrast: ?*u32, pdwCurrentContrast: ?*u32, pdwMaximumContrast: ?*u32, ) callconv(@import("std").os.windows.WINAPI) i32; // TODO: this type is limited to platform 'windows6.0.6000' pub extern "dxva2" fn GetMonitorColorTemperature( hMonitor: ?HANDLE, pctCurrentColorTemperature: ?*MC_COLOR_TEMPERATURE, ) callconv(@import("std").os.windows.WINAPI) i32; // TODO: this type is limited to platform 'windows6.0.6000' pub extern "dxva2" fn GetMonitorRedGreenOrBlueDrive( hMonitor: ?HANDLE, dtDriveType: MC_DRIVE_TYPE, pdwMinimumDrive: ?*u32, pdwCurrentDrive: ?*u32, pdwMaximumDrive: ?*u32, ) callconv(@import("std").os.windows.WINAPI) i32; // TODO: this type is limited to platform 'windows6.0.6000' pub extern "dxva2" fn GetMonitorRedGreenOrBlueGain( hMonitor: ?HANDLE, gtGainType: MC_GAIN_TYPE, pdwMinimumGain: ?*u32, pdwCurrentGain: ?*u32, pdwMaximumGain: ?*u32, ) callconv(@import("std").os.windows.WINAPI) i32; // TODO: this type is limited to platform 'windows6.0.6000' pub extern "dxva2" fn SetMonitorBrightness( hMonitor: ?HANDLE, dwNewBrightness: u32, ) callconv(@import("std").os.windows.WINAPI) i32; // TODO: this type is limited to platform 'windows6.0.6000' pub extern "dxva2" fn SetMonitorContrast( hMonitor: ?HANDLE, dwNewContrast: u32, ) callconv(@import("std").os.windows.WINAPI) i32; // TODO: this type is limited to platform 'windows6.0.6000' pub extern "dxva2" fn SetMonitorColorTemperature( hMonitor: ?HANDLE, ctCurrentColorTemperature: MC_COLOR_TEMPERATURE, ) callconv(@import("std").os.windows.WINAPI) i32; // TODO: this type is limited to platform 'windows6.0.6000' pub extern "dxva2" fn SetMonitorRedGreenOrBlueDrive( hMonitor: ?HANDLE, dtDriveType: MC_DRIVE_TYPE, dwNewDrive: u32, ) callconv(@import("std").os.windows.WINAPI) i32; // TODO: this type is limited to platform 'windows6.0.6000' pub extern "dxva2" fn SetMonitorRedGreenOrBlueGain( hMonitor: ?HANDLE, gtGainType: MC_GAIN_TYPE, dwNewGain: u32, ) callconv(@import("std").os.windows.WINAPI) i32; // TODO: this type is limited to platform 'windows6.0.6000' pub extern "dxva2" fn DegaussMonitor( hMonitor: ?HANDLE, ) callconv(@import("std").os.windows.WINAPI) i32; // TODO: this type is limited to platform 'windows6.0.6000' pub extern "dxva2" fn GetMonitorDisplayAreaSize( hMonitor: ?HANDLE, stSizeType: MC_SIZE_TYPE, pdwMinimumWidthOrHeight: ?*u32, pdwCurrentWidthOrHeight: ?*u32, pdwMaximumWidthOrHeight: ?*u32, ) callconv(@import("std").os.windows.WINAPI) i32; // TODO: this type is limited to platform 'windows6.0.6000' pub extern "dxva2" fn GetMonitorDisplayAreaPosition( hMonitor: ?HANDLE, ptPositionType: MC_POSITION_TYPE, pdwMinimumPosition: ?*u32, pdwCurrentPosition: ?*u32, pdwMaximumPosition: ?*u32, ) callconv(@import("std").os.windows.WINAPI) i32; // TODO: this type is limited to platform 'windows6.0.6000' pub extern "dxva2" fn SetMonitorDisplayAreaSize( hMonitor: ?HANDLE, stSizeType: MC_SIZE_TYPE, dwNewDisplayAreaWidthOrHeight: u32, ) callconv(@import("std").os.windows.WINAPI) i32; // TODO: this type is limited to platform 'windows6.0.6000' pub extern "dxva2" fn SetMonitorDisplayAreaPosition( hMonitor: ?HANDLE, ptPositionType: MC_POSITION_TYPE, dwNewPosition: u32, ) callconv(@import("std").os.windows.WINAPI) i32; // TODO: this type is limited to platform 'windows6.0.6000' pub extern "dxva2" fn RestoreMonitorFactoryColorDefaults( hMonitor: ?HANDLE, ) callconv(@import("std").os.windows.WINAPI) i32; // TODO: this type is limited to platform 'windows6.0.6000' pub extern "dxva2" fn RestoreMonitorFactoryDefaults( hMonitor: ?HANDLE, ) callconv(@import("std").os.windows.WINAPI) i32; // TODO: this type is limited to platform 'windows5.0' pub extern "gdi32" fn BRUSHOBJ_pvAllocRbrush( pbo: ?*BRUSHOBJ, cj: u32, ) callconv(@import("std").os.windows.WINAPI) ?*anyopaque; // TODO: this type is limited to platform 'windows5.0' pub extern "gdi32" fn BRUSHOBJ_pvGetRbrush( pbo: ?*BRUSHOBJ, ) callconv(@import("std").os.windows.WINAPI) ?*anyopaque; // TODO: this type is limited to platform 'windows5.0' pub extern "gdi32" fn BRUSHOBJ_ulGetBrushColor( pbo: ?*BRUSHOBJ, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'windows5.0' pub extern "gdi32" fn BRUSHOBJ_hGetColorTransform( pbo: ?*BRUSHOBJ, ) callconv(@import("std").os.windows.WINAPI) ?HANDLE; // TODO: this type is limited to platform 'windows5.0' pub extern "gdi32" fn CLIPOBJ_cEnumStart( pco: ?*CLIPOBJ, bAll: BOOL, iType: u32, iDirection: u32, cLimit: u32, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'windows5.0' pub extern "gdi32" fn CLIPOBJ_bEnum( pco: ?*CLIPOBJ, cj: u32, pul: ?*u32, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows5.0' pub extern "gdi32" fn CLIPOBJ_ppoGetPath( pco: ?*CLIPOBJ, ) callconv(@import("std").os.windows.WINAPI) ?*PATHOBJ; // TODO: this type is limited to platform 'windows5.0' pub extern "gdi32" fn FONTOBJ_cGetAllGlyphHandles( pfo: ?*FONTOBJ, phg: ?*u32, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'windows5.0' pub extern "gdi32" fn FONTOBJ_vGetInfo( pfo: ?*FONTOBJ, cjSize: u32, pfi: ?*FONTINFO, ) callconv(@import("std").os.windows.WINAPI) void; // TODO: this type is limited to platform 'windows5.0' pub extern "gdi32" fn FONTOBJ_cGetGlyphs( pfo: ?*FONTOBJ, iMode: u32, cGlyph: u32, phg: ?*u32, ppvGlyph: ?*?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'windows5.0' pub extern "gdi32" fn FONTOBJ_pxoGetXform( pfo: ?*FONTOBJ, ) callconv(@import("std").os.windows.WINAPI) ?*XFORMOBJ; // TODO: this type is limited to platform 'windows5.0' pub extern "gdi32" fn FONTOBJ_pifi( pfo: ?*FONTOBJ, ) callconv(@import("std").os.windows.WINAPI) ?*IFIMETRICS; // TODO: this type is limited to platform 'windows5.0' pub extern "gdi32" fn FONTOBJ_pfdg( pfo: ?*FONTOBJ, ) callconv(@import("std").os.windows.WINAPI) ?*FD_GLYPHSET; // TODO: this type is limited to platform 'windows5.0' pub extern "gdi32" fn FONTOBJ_pvTrueTypeFontFile( pfo: ?*FONTOBJ, pcjFile: ?*u32, ) callconv(@import("std").os.windows.WINAPI) ?*anyopaque; // TODO: this type is limited to platform 'windows5.0' pub extern "gdi32" fn FONTOBJ_pQueryGlyphAttrs( pfo: ?*FONTOBJ, iMode: u32, ) callconv(@import("std").os.windows.WINAPI) ?*FD_GLYPHATTR; // TODO: this type is limited to platform 'windows5.0' pub extern "gdi32" fn PATHOBJ_vEnumStart( ppo: ?*PATHOBJ, ) callconv(@import("std").os.windows.WINAPI) void; // TODO: this type is limited to platform 'windows5.0' pub extern "gdi32" fn PATHOBJ_bEnum( ppo: ?*PATHOBJ, ppd: ?*PATHDATA, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows5.0' pub extern "gdi32" fn PATHOBJ_vEnumStartClipLines( ppo: ?*PATHOBJ, pco: ?*CLIPOBJ, pso: ?*SURFOBJ, pla: ?*LINEATTRS, ) callconv(@import("std").os.windows.WINAPI) void; // TODO: this type is limited to platform 'windows5.0' pub extern "gdi32" fn PATHOBJ_bEnumClipLines( ppo: ?*PATHOBJ, cb: u32, pcl: ?*CLIPLINE, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows5.0' pub extern "gdi32" fn PATHOBJ_vGetBounds( ppo: ?*PATHOBJ, prectfx: ?*RECTFX, ) callconv(@import("std").os.windows.WINAPI) void; // TODO: this type is limited to platform 'windows5.0' pub extern "gdi32" fn STROBJ_vEnumStart( pstro: ?*STROBJ, ) callconv(@import("std").os.windows.WINAPI) void; // TODO: this type is limited to platform 'windows5.0' pub extern "gdi32" fn STROBJ_bEnum( pstro: ?*STROBJ, pc: ?*u32, ppgpos: ?*?*GLYPHPOS, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows5.0' pub extern "gdi32" fn STROBJ_bEnumPositionsOnly( pstro: ?*STROBJ, pc: ?*u32, ppgpos: ?*?*GLYPHPOS, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows5.0' pub extern "gdi32" fn STROBJ_dwGetCodePage( pstro: ?*STROBJ, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'windows5.0' pub extern "gdi32" fn STROBJ_bGetAdvanceWidths( pso: ?*STROBJ, iFirst: u32, c: u32, pptqD: ?*POINTQF, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows5.0' pub extern "gdi32" fn XFORMOBJ_iGetXform( pxo: ?*XFORMOBJ, pxform: ?*XFORML, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'windows5.0' pub extern "gdi32" fn XFORMOBJ_bApplyXform( pxo: ?*XFORMOBJ, iMode: u32, cPoints: u32, pvIn: ?*anyopaque, pvOut: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows5.0' pub extern "gdi32" fn XLATEOBJ_iXlate( pxlo: ?*XLATEOBJ, iColor: u32, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'windows5.0' pub extern "gdi32" fn XLATEOBJ_piVector( pxlo: ?*XLATEOBJ, ) callconv(@import("std").os.windows.WINAPI) ?*u32; // TODO: this type is limited to platform 'windows5.0' pub extern "gdi32" fn XLATEOBJ_cGetPalette( pxlo: ?*XLATEOBJ, iPal: u32, cPal: u32, pPal: ?*u32, ) callconv(@import("std").os.windows.WINAPI) u32; // TODO: this type is limited to platform 'windows5.0' pub extern "gdi32" fn XLATEOBJ_hGetColorTransform( pxlo: ?*XLATEOBJ, ) callconv(@import("std").os.windows.WINAPI) ?HANDLE; // TODO: this type is limited to platform 'windows5.0' pub extern "gdi32" fn EngCreateBitmap( sizl: SIZE, lWidth: i32, iFormat: u32, fl: u32, pvBits: ?*anyopaque, ) callconv(@import("std").os.windows.WINAPI) ?HBITMAP; // TODO: this type is limited to platform 'windows5.0' pub extern "gdi32" fn EngCreateDeviceSurface( dhsurf: DHSURF, sizl: SIZE, iFormatCompat: u32, ) callconv(@import("std").os.windows.WINAPI) ?HSURF; // TODO: this type is limited to platform 'windows5.0' pub extern "gdi32" fn EngCreateDeviceBitmap( dhsurf: DHSURF, sizl: SIZE, iFormatCompat: u32, ) callconv(@import("std").os.windows.WINAPI) ?HBITMAP; // TODO: this type is limited to platform 'windows5.0' pub extern "gdi32" fn EngDeleteSurface( hsurf: ?HSURF, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows5.0' pub extern "gdi32" fn EngLockSurface( hsurf: ?HSURF, ) callconv(@import("std").os.windows.WINAPI) ?*SURFOBJ; // TODO: this type is limited to platform 'windows5.0' pub extern "gdi32" fn EngUnlockSurface( pso: ?*SURFOBJ, ) callconv(@import("std").os.windows.WINAPI) void; // TODO: this type is limited to platform 'windows5.0' pub extern "gdi32" fn EngEraseSurface( pso: ?*SURFOBJ, prcl: ?*RECTL, iColor: u32, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows5.0' pub extern "gdi32" fn EngAssociateSurface( hsurf: ?HSURF, hdev: ?HDEV, flHooks: u32, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows5.0' pub extern "gdi32" fn EngMarkBandingSurface( hsurf: ?HSURF, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows5.0' pub extern "gdi32" fn EngCheckAbort( pso: ?*SURFOBJ, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows5.0' pub extern "gdi32" fn EngDeletePath( ppo: ?*PATHOBJ, ) callconv(@import("std").os.windows.WINAPI) void; // TODO: this type is limited to platform 'windows5.0' pub extern "gdi32" fn EngCreatePalette( iMode: u32, cColors: u32, pulColors: ?*u32, flRed: u32, flGreen: u32, flBlue: u32, ) callconv(@import("std").os.windows.WINAPI) ?HPALETTE; // TODO: this type is limited to platform 'windows5.0' pub extern "gdi32" fn EngDeletePalette( hpal: ?HPALETTE, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows5.0' pub extern "gdi32" fn EngCreateClip() callconv(@import("std").os.windows.WINAPI) ?*CLIPOBJ; // TODO: this type is limited to platform 'windows5.0' pub extern "gdi32" fn EngDeleteClip( pco: ?*CLIPOBJ, ) callconv(@import("std").os.windows.WINAPI) void; // TODO: this type is limited to platform 'windows5.0' pub extern "gdi32" fn EngBitBlt( psoTrg: ?*SURFOBJ, psoSrc: ?*SURFOBJ, psoMask: ?*SURFOBJ, pco: ?*CLIPOBJ, pxlo: ?*XLATEOBJ, prclTrg: ?*RECTL, pptlSrc: ?*POINTL, pptlMask: ?*POINTL, pbo: ?*BRUSHOBJ, pptlBrush: ?*POINTL, rop4: u32, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows5.0' pub extern "gdi32" fn EngLineTo( pso: ?*SURFOBJ, pco: ?*CLIPOBJ, pbo: ?*BRUSHOBJ, x1: i32, y1: i32, x2: i32, y2: i32, prclBounds: ?*RECTL, mix: u32, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows5.0' pub extern "gdi32" fn EngStretchBlt( psoDest: ?*SURFOBJ, psoSrc: ?*SURFOBJ, psoMask: ?*SURFOBJ, pco: ?*CLIPOBJ, pxlo: ?*XLATEOBJ, pca: ?*COLORADJUSTMENT, pptlHTOrg: ?*POINTL, prclDest: ?*RECTL, prclSrc: ?*RECTL, pptlMask: ?*POINTL, iMode: u32, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows5.0' pub extern "gdi32" fn EngStretchBltROP( psoDest: ?*SURFOBJ, psoSrc: ?*SURFOBJ, psoMask: ?*SURFOBJ, pco: ?*CLIPOBJ, pxlo: ?*XLATEOBJ, pca: ?*COLORADJUSTMENT, pptlHTOrg: ?*POINTL, prclDest: ?*RECTL, prclSrc: ?*RECTL, pptlMask: ?*POINTL, iMode: u32, pbo: ?*BRUSHOBJ, rop4: u32, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows5.0' pub extern "gdi32" fn EngAlphaBlend( psoDest: ?*SURFOBJ, psoSrc: ?*SURFOBJ, pco: ?*CLIPOBJ, pxlo: ?*XLATEOBJ, prclDest: ?*RECTL, prclSrc: ?*RECTL, pBlendObj: ?*BLENDOBJ, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows5.0' pub extern "gdi32" fn EngGradientFill( psoDest: ?*SURFOBJ, pco: ?*CLIPOBJ, pxlo: ?*XLATEOBJ, pVertex: ?*TRIVERTEX, nVertex: u32, pMesh: ?*anyopaque, nMesh: u32, prclExtents: ?*RECTL, pptlDitherOrg: ?*POINTL, ulMode: u32, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows5.0' pub extern "gdi32" fn EngTransparentBlt( psoDst: ?*SURFOBJ, psoSrc: ?*SURFOBJ, pco: ?*CLIPOBJ, pxlo: ?*XLATEOBJ, prclDst: ?*RECTL, prclSrc: ?*RECTL, TransColor: u32, bCalledFromBitBlt: u32, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows5.0' pub extern "gdi32" fn EngTextOut( pso: ?*SURFOBJ, pstro: ?*STROBJ, pfo: ?*FONTOBJ, pco: ?*CLIPOBJ, prclExtra: ?*RECTL, prclOpaque: ?*RECTL, pboFore: ?*BRUSHOBJ, pboOpaque: ?*BRUSHOBJ, pptlOrg: ?*POINTL, mix: u32, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows5.0' pub extern "gdi32" fn EngStrokePath( pso: ?*SURFOBJ, ppo: ?*PATHOBJ, pco: ?*CLIPOBJ, pxo: ?*XFORMOBJ, pbo: ?*BRUSHOBJ, pptlBrushOrg: ?*POINTL, plineattrs: ?*LINEATTRS, mix: u32, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows5.0' pub extern "gdi32" fn EngFillPath( pso: ?*SURFOBJ, ppo: ?*PATHOBJ, pco: ?*CLIPOBJ, pbo: ?*BRUSHOBJ, pptlBrushOrg: ?*POINTL, mix: u32, flOptions: u32, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows5.0' pub extern "gdi32" fn EngStrokeAndFillPath( pso: ?*SURFOBJ, ppo: ?*PATHOBJ, pco: ?*CLIPOBJ, pxo: ?*XFORMOBJ, pboStroke: ?*BRUSHOBJ, plineattrs: ?*LINEATTRS, pboFill: ?*BRUSHOBJ, pptlBrushOrg: ?*POINTL, mixFill: u32, flOptions: u32, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows5.0' pub extern "gdi32" fn EngPaint( pso: ?*SURFOBJ, pco: ?*CLIPOBJ, pbo: ?*BRUSHOBJ, pptlBrushOrg: ?*POINTL, mix: u32, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows5.0' pub extern "gdi32" fn EngCopyBits( psoDest: ?*SURFOBJ, psoSrc: ?*SURFOBJ, pco: ?*CLIPOBJ, pxlo: ?*XLATEOBJ, prclDest: ?*RECTL, pptlSrc: ?*POINTL, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows5.0' pub extern "gdi32" fn EngPlgBlt( psoTrg: ?*SURFOBJ, psoSrc: ?*SURFOBJ, psoMsk: ?*SURFOBJ, pco: ?*CLIPOBJ, pxlo: ?*XLATEOBJ, pca: ?*COLORADJUSTMENT, pptlBrushOrg: ?*POINTL, pptfx: ?*POINTFIX, prcl: ?*RECTL, pptl: ?*POINTL, iMode: u32, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows5.0' pub extern "gdi32" fn HT_Get8BPPFormatPalette( pPaletteEntry: ?*PALETTEENTRY, RedGamma: u16, GreenGamma: u16, BlueGamma: u16, ) callconv(@import("std").os.windows.WINAPI) i32; // TODO: this type is limited to platform 'windows5.0' pub extern "gdi32" fn HT_Get8BPPMaskPalette( pPaletteEntry: ?*PALETTEENTRY, Use8BPPMaskPal: BOOL, CMYMask: u8, RedGamma: u16, GreenGamma: u16, BlueGamma: u16, ) callconv(@import("std").os.windows.WINAPI) i32; // TODO: this type is limited to platform 'windows5.0' pub extern "gdi32" fn EngGetPrinterDataFileName( hdev: ?HDEV, ) callconv(@import("std").os.windows.WINAPI) ?PWSTR; // TODO: this type is limited to platform 'windows5.0' pub extern "gdi32" fn EngGetDriverName( hdev: ?HDEV, ) callconv(@import("std").os.windows.WINAPI) ?PWSTR; // TODO: this type is limited to platform 'windows5.0' pub extern "gdi32" fn EngLoadModule( pwsz: ?PWSTR, ) callconv(@import("std").os.windows.WINAPI) ?HANDLE; // TODO: this type is limited to platform 'windows5.0' pub extern "gdi32" fn EngFindResource( h: ?HANDLE, iName: i32, iType: i32, pulSize: ?*u32, ) callconv(@import("std").os.windows.WINAPI) ?*anyopaque; // TODO: this type is limited to platform 'windows5.0' pub extern "gdi32" fn EngFreeModule( h: ?HANDLE, ) callconv(@import("std").os.windows.WINAPI) void; // TODO: this type is limited to platform 'windows5.0' pub extern "gdi32" fn EngCreateSemaphore() callconv(@import("std").os.windows.WINAPI) ?HSEMAPHORE; // TODO: this type is limited to platform 'windows5.0' pub extern "gdi32" fn EngAcquireSemaphore( hsem: ?HSEMAPHORE, ) callconv(@import("std").os.windows.WINAPI) void; // TODO: this type is limited to platform 'windows5.0' pub extern "gdi32" fn EngReleaseSemaphore( hsem: ?HSEMAPHORE, ) callconv(@import("std").os.windows.WINAPI) void; // TODO: this type is limited to platform 'windows5.0' pub extern "gdi32" fn EngDeleteSemaphore( hsem: ?HSEMAPHORE, ) callconv(@import("std").os.windows.WINAPI) void; // TODO: this type is limited to platform 'windows5.0' pub extern "gdi32" fn EngMultiByteToUnicodeN( // TODO: what to do with BytesParamIndex 1? UnicodeString: ?PWSTR, MaxBytesInUnicodeString: u32, BytesInUnicodeString: ?*u32, // TODO: what to do with BytesParamIndex 4? MultiByteString: ?[*]u8, BytesInMultiByteString: u32, ) callconv(@import("std").os.windows.WINAPI) void; // TODO: this type is limited to platform 'windows5.0' pub extern "gdi32" fn EngUnicodeToMultiByteN( // TODO: what to do with BytesParamIndex 1? MultiByteString: ?[*]u8, MaxBytesInMultiByteString: u32, BytesInMultiByteString: ?*u32, // TODO: what to do with BytesParamIndex 4? UnicodeString: ?PWSTR, BytesInUnicodeString: u32, ) callconv(@import("std").os.windows.WINAPI) void; // TODO: this type is limited to platform 'windows5.0' pub extern "gdi32" fn EngQueryLocalTime( param0: ?*ENG_TIME_FIELDS, ) callconv(@import("std").os.windows.WINAPI) void; // TODO: this type is limited to platform 'windows5.0' pub extern "gdi32" fn EngComputeGlyphSet( nCodePage: i32, nFirstChar: i32, cChars: i32, ) callconv(@import("std").os.windows.WINAPI) ?*FD_GLYPHSET; // TODO: this type is limited to platform 'windows5.0' pub extern "gdi32" fn EngMultiByteToWideChar( CodePage: u32, // TODO: what to do with BytesParamIndex 2? WideCharString: ?PWSTR, BytesInWideCharString: i32, // TODO: what to do with BytesParamIndex 4? MultiByteString: ?PSTR, BytesInMultiByteString: i32, ) callconv(@import("std").os.windows.WINAPI) i32; // TODO: this type is limited to platform 'windows5.0' pub extern "gdi32" fn EngWideCharToMultiByte( CodePage: u32, // TODO: what to do with BytesParamIndex 2? WideCharString: ?PWSTR, BytesInWideCharString: i32, // TODO: what to do with BytesParamIndex 4? MultiByteString: ?PSTR, BytesInMultiByteString: i32, ) callconv(@import("std").os.windows.WINAPI) i32; // TODO: this type is limited to platform 'windows5.0' pub extern "gdi32" fn EngGetCurrentCodePage( OemCodePage: ?*u16, AnsiCodePage: ?*u16, ) callconv(@import("std").os.windows.WINAPI) void; pub extern "gdi32" fn EngQueryEMFInfo( hdev: ?HDEV, pEMFInfo: ?*EMFINFO, ) callconv(@import("std").os.windows.WINAPI) BOOL; // TODO: this type is limited to platform 'windows6.0.6000' pub extern "user32" fn GetDisplayConfigBufferSizes( flags: u32, numPathArrayElements: ?*u32, numModeInfoArrayElements: ?*u32, ) callconv(@import("std").os.windows.WINAPI) i32; // TODO: this type is limited to platform 'windows6.1' pub extern "user32" fn SetDisplayConfig( numPathArrayElements: u32, pathArray: ?[*]DISPLAYCONFIG_PATH_INFO, numModeInfoArrayElements: u32, modeInfoArray: ?[*]DISPLAYCONFIG_MODE_INFO, flags: u32, ) callconv(@import("std").os.windows.WINAPI) i32; // TODO: this type is limited to platform 'windows6.1' pub extern "user32" fn QueryDisplayConfig( flags: u32, numPathArrayElements: ?*u32, pathArray: [*]DISPLAYCONFIG_PATH_INFO, numModeInfoArrayElements: ?*u32, modeInfoArray: [*]DISPLAYCONFIG_MODE_INFO, currentTopologyId: ?*DISPLAYCONFIG_TOPOLOGY_ID, ) callconv(@import("std").os.windows.WINAPI) i32; // TODO: this type is limited to platform 'windows6.0.6000' pub extern "user32" fn DisplayConfigGetDeviceInfo( requestPacket: ?*DISPLAYCONFIG_DEVICE_INFO_HEADER, ) callconv(@import("std").os.windows.WINAPI) i32; // TODO: this type is limited to platform 'windows6.0.6000' pub extern "user32" fn DisplayConfigSetDeviceInfo( setPacket: ?*DISPLAYCONFIG_DEVICE_INFO_HEADER, ) callconv(@import("std").os.windows.WINAPI) i32; pub extern "user32" fn GetAutoRotationState( pState: ?*AR_STATE, ) callconv(@import("std").os.windows.WINAPI) BOOL; pub extern "user32" fn GetDisplayAutoRotationPreferences( pOrientation: ?*ORIENTATION_PREFERENCE, ) callconv(@import("std").os.windows.WINAPI) BOOL; pub extern "user32" fn SetDisplayAutoRotationPreferences( orientation: ORIENTATION_PREFERENCE, ) callconv(@import("std").os.windows.WINAPI) BOOL; //-------------------------------------------------------------------------------- // Section: Unicode Aliases (0) //-------------------------------------------------------------------------------- const thismodule = @This(); pub usingnamespace switch (@import("../zig.zig").unicode_mode) { .ansi => struct {}, .wide => struct {}, .unspecified => if (@import("builtin").is_test) struct {} else struct {}, }; //-------------------------------------------------------------------------------- // Section: Imports (45) //-------------------------------------------------------------------------------- const Guid = @import("../zig.zig").Guid; const BLENDFUNCTION = @import("../graphics/gdi.zig").BLENDFUNCTION; const BOOL = @import("../foundation.zig").BOOL; const BOOLEAN = @import("../foundation.zig").BOOLEAN; const CHAR = @import("../foundation.zig").CHAR; const CHAR_INFO = @import("../system/console.zig").CHAR_INFO; const COLORADJUSTMENT = @import("../graphics/gdi.zig").COLORADJUSTMENT; const COORD = @import("../system/console.zig").COORD; const DD_CALLBACKS = @import("../graphics/direct_draw.zig").DD_CALLBACKS; const DD_DIRECTDRAW_GLOBAL = @import("../graphics/direct_draw.zig").DD_DIRECTDRAW_GLOBAL; const DD_HALINFO = @import("../graphics/direct_draw.zig").DD_HALINFO; const DD_PALETTECALLBACKS = @import("../graphics/direct_draw.zig").DD_PALETTECALLBACKS; const DD_SURFACE_LOCAL = @import("../graphics/direct_draw.zig").DD_SURFACE_LOCAL; const DD_SURFACECALLBACKS = @import("../graphics/direct_draw.zig").DD_SURFACECALLBACKS; const DESIGNVECTOR = @import("../graphics/gdi.zig").DESIGNVECTOR; const DEVMODEW = @import("../graphics/gdi.zig").DEVMODEW; const DISPLAYCONFIG_COLOR_ENCODING = @import("../graphics/gdi.zig").DISPLAYCONFIG_COLOR_ENCODING; const HANDLE = @import("../foundation.zig").HANDLE; const HBITMAP = @import("../graphics/gdi.zig").HBITMAP; const HDC = @import("../graphics/gdi.zig").HDC; const HMONITOR = @import("../graphics/gdi.zig").HMONITOR; const HPALETTE = @import("../graphics/gdi.zig").HPALETTE; const HRESULT = @import("../foundation.zig").HRESULT; const HWND = @import("../foundation.zig").HWND; const IDirect3DDevice9 = @import("../graphics/direct3d9.zig").IDirect3DDevice9; const IStream = @import("../system/com.zig").IStream; const IUnknown = @import("../system/com.zig").IUnknown; const LARGE_INTEGER = @import("../foundation.zig").LARGE_INTEGER; const LOGCOLORSPACEW = @import("../ui/color_system.zig").LOGCOLORSPACEW; const LOGFONTW = @import("../graphics/gdi.zig").LOGFONTW; const LUID = @import("../foundation.zig").LUID; const NTSTATUS = @import("../foundation.zig").NTSTATUS; const PALETTEENTRY = @import("../graphics/gdi.zig").PALETTEENTRY; const PANOSE = @import("../graphics/gdi.zig").PANOSE; const PIXELFORMATDESCRIPTOR = @import("../graphics/open_gl.zig").PIXELFORMATDESCRIPTOR; const POINTL = @import("../foundation.zig").POINTL; const PROPERTYKEY = @import("../ui/shell/properties_system.zig").PROPERTYKEY; const PSTR = @import("../foundation.zig").PSTR; const PWSTR = @import("../foundation.zig").PWSTR; const RECT = @import("../foundation.zig").RECT; const RECTL = @import("../foundation.zig").RECTL; const SIZE = @import("../foundation.zig").SIZE; const TRIVERTEX = @import("../graphics/gdi.zig").TRIVERTEX; const TTPOLYGONHEADER = @import("../graphics/gdi.zig").TTPOLYGONHEADER; const VIDEOMEMORY = @import("../graphics/direct_draw.zig").VIDEOMEMORY; test { // The following '_ = <FuncPtrType>' lines are a workaround for https://github.com/ziglang/zig/issues/4476 if (@hasDecl(@This(), "PFN")) { _ = PFN; } if (@hasDecl(@This(), "WNDOBJCHANGEPROC")) { _ = WNDOBJCHANGEPROC; } if (@hasDecl(@This(), "SORTCOMP")) { _ = SORTCOMP; } if (@hasDecl(@This(), "PFN_DrvEnableDriver")) { _ = PFN_DrvEnableDriver; } if (@hasDecl(@This(), "PFN_DrvEnablePDEV")) { _ = PFN_DrvEnablePDEV; } if (@hasDecl(@This(), "PFN_DrvCompletePDEV")) { _ = PFN_DrvCompletePDEV; } if (@hasDecl(@This(), "PFN_DrvResetDevice")) { _ = PFN_DrvResetDevice; } if (@hasDecl(@This(), "PFN_DrvDisablePDEV")) { _ = PFN_DrvDisablePDEV; } if (@hasDecl(@This(), "PFN_DrvSynchronize")) { _ = PFN_DrvSynchronize; } if (@hasDecl(@This(), "PFN_DrvEnableSurface")) { _ = PFN_DrvEnableSurface; } if (@hasDecl(@This(), "PFN_DrvDisableDriver")) { _ = PFN_DrvDisableDriver; } if (@hasDecl(@This(), "PFN_DrvDisableSurface")) { _ = PFN_DrvDisableSurface; } if (@hasDecl(@This(), "PFN_DrvAssertMode")) { _ = PFN_DrvAssertMode; } if (@hasDecl(@This(), "PFN_DrvTextOut")) { _ = PFN_DrvTextOut; } if (@hasDecl(@This(), "PFN_DrvStretchBlt")) { _ = PFN_DrvStretchBlt; } if (@hasDecl(@This(), "PFN_DrvStretchBltROP")) { _ = PFN_DrvStretchBltROP; } if (@hasDecl(@This(), "PFN_DrvTransparentBlt")) { _ = PFN_DrvTransparentBlt; } if (@hasDecl(@This(), "PFN_DrvPlgBlt")) { _ = PFN_DrvPlgBlt; } if (@hasDecl(@This(), "PFN_DrvBitBlt")) { _ = PFN_DrvBitBlt; } if (@hasDecl(@This(), "PFN_DrvRealizeBrush")) { _ = PFN_DrvRealizeBrush; } if (@hasDecl(@This(), "PFN_DrvCopyBits")) { _ = PFN_DrvCopyBits; } if (@hasDecl(@This(), "PFN_DrvDitherColor")) { _ = PFN_DrvDitherColor; } if (@hasDecl(@This(), "PFN_DrvCreateDeviceBitmap")) { _ = PFN_DrvCreateDeviceBitmap; } if (@hasDecl(@This(), "PFN_DrvDeleteDeviceBitmap")) { _ = PFN_DrvDeleteDeviceBitmap; } if (@hasDecl(@This(), "PFN_DrvSetPalette")) { _ = PFN_DrvSetPalette; } if (@hasDecl(@This(), "PFN_DrvEscape")) { _ = PFN_DrvEscape; } if (@hasDecl(@This(), "PFN_DrvDrawEscape")) { _ = PFN_DrvDrawEscape; } if (@hasDecl(@This(), "PFN_DrvQueryFont")) { _ = PFN_DrvQueryFont; } if (@hasDecl(@This(), "PFN_DrvQueryFontTree")) { _ = PFN_DrvQueryFontTree; } if (@hasDecl(@This(), "PFN_DrvQueryFontData")) { _ = PFN_DrvQueryFontData; } if (@hasDecl(@This(), "PFN_DrvFree")) { _ = PFN_DrvFree; } if (@hasDecl(@This(), "PFN_DrvDestroyFont")) { _ = PFN_DrvDestroyFont; } if (@hasDecl(@This(), "PFN_DrvQueryFontCaps")) { _ = PFN_DrvQueryFontCaps; } if (@hasDecl(@This(), "PFN_DrvLoadFontFile")) { _ = PFN_DrvLoadFontFile; } if (@hasDecl(@This(), "PFN_DrvUnloadFontFile")) { _ = PFN_DrvUnloadFontFile; } if (@hasDecl(@This(), "PFN_DrvSetPointerShape")) { _ = PFN_DrvSetPointerShape; } if (@hasDecl(@This(), "PFN_DrvMovePointer")) { _ = PFN_DrvMovePointer; } if (@hasDecl(@This(), "PFN_DrvSendPage")) { _ = PFN_DrvSendPage; } if (@hasDecl(@This(), "PFN_DrvStartPage")) { _ = PFN_DrvStartPage; } if (@hasDecl(@This(), "PFN_DrvStartDoc")) { _ = PFN_DrvStartDoc; } if (@hasDecl(@This(), "PFN_DrvEndDoc")) { _ = PFN_DrvEndDoc; } if (@hasDecl(@This(), "PFN_DrvQuerySpoolType")) { _ = PFN_DrvQuerySpoolType; } if (@hasDecl(@This(), "PFN_DrvLineTo")) { _ = PFN_DrvLineTo; } if (@hasDecl(@This(), "PFN_DrvStrokePath")) { _ = PFN_DrvStrokePath; } if (@hasDecl(@This(), "PFN_DrvFillPath")) { _ = PFN_DrvFillPath; } if (@hasDecl(@This(), "PFN_DrvStrokeAndFillPath")) { _ = PFN_DrvStrokeAndFillPath; } if (@hasDecl(@This(), "PFN_DrvPaint")) { _ = PFN_DrvPaint; } if (@hasDecl(@This(), "PFN_DrvGetGlyphMode")) { _ = PFN_DrvGetGlyphMode; } if (@hasDecl(@This(), "PFN_DrvResetPDEV")) { _ = PFN_DrvResetPDEV; } if (@hasDecl(@This(), "PFN_DrvSaveScreenBits")) { _ = PFN_DrvSaveScreenBits; } if (@hasDecl(@This(), "PFN_DrvGetModes")) { _ = PFN_DrvGetModes; } if (@hasDecl(@This(), "PFN_DrvQueryTrueTypeTable")) { _ = PFN_DrvQueryTrueTypeTable; } if (@hasDecl(@This(), "PFN_DrvQueryTrueTypeSection")) { _ = PFN_DrvQueryTrueTypeSection; } if (@hasDecl(@This(), "PFN_DrvQueryTrueTypeOutline")) { _ = PFN_DrvQueryTrueTypeOutline; } if (@hasDecl(@This(), "PFN_DrvGetTrueTypeFile")) { _ = PFN_DrvGetTrueTypeFile; } if (@hasDecl(@This(), "PFN_DrvQueryFontFile")) { _ = PFN_DrvQueryFontFile; } if (@hasDecl(@This(), "PFN_DrvQueryGlyphAttrs")) { _ = PFN_DrvQueryGlyphAttrs; } if (@hasDecl(@This(), "PFN_DrvQueryAdvanceWidths")) { _ = PFN_DrvQueryAdvanceWidths; } if (@hasDecl(@This(), "PFN_DrvFontManagement")) { _ = PFN_DrvFontManagement; } if (@hasDecl(@This(), "PFN_DrvSetPixelFormat")) { _ = PFN_DrvSetPixelFormat; } if (@hasDecl(@This(), "PFN_DrvDescribePixelFormat")) { _ = PFN_DrvDescribePixelFormat; } if (@hasDecl(@This(), "PFN_DrvSwapBuffers")) { _ = PFN_DrvSwapBuffers; } if (@hasDecl(@This(), "PFN_DrvStartBanding")) { _ = PFN_DrvStartBanding; } if (@hasDecl(@This(), "PFN_DrvNextBand")) { _ = PFN_DrvNextBand; } if (@hasDecl(@This(), "PFN_DrvQueryPerBandInfo")) { _ = PFN_DrvQueryPerBandInfo; } if (@hasDecl(@This(), "PFN_DrvEnableDirectDraw")) { _ = PFN_DrvEnableDirectDraw; } if (@hasDecl(@This(), "PFN_DrvDisableDirectDraw")) { _ = PFN_DrvDisableDirectDraw; } if (@hasDecl(@This(), "PFN_DrvGetDirectDrawInfo")) { _ = PFN_DrvGetDirectDrawInfo; } if (@hasDecl(@This(), "PFN_DrvIcmCreateColorTransform")) { _ = PFN_DrvIcmCreateColorTransform; } if (@hasDecl(@This(), "PFN_DrvIcmDeleteColorTransform")) { _ = PFN_DrvIcmDeleteColorTransform; } if (@hasDecl(@This(), "PFN_DrvIcmCheckBitmapBits")) { _ = PFN_DrvIcmCheckBitmapBits; } if (@hasDecl(@This(), "PFN_DrvIcmSetDeviceGammaRamp")) { _ = PFN_DrvIcmSetDeviceGammaRamp; } if (@hasDecl(@This(), "PFN_DrvAlphaBlend")) { _ = PFN_DrvAlphaBlend; } if (@hasDecl(@This(), "PFN_DrvGradientFill")) { _ = PFN_DrvGradientFill; } if (@hasDecl(@This(), "PFN_DrvQueryDeviceSupport")) { _ = PFN_DrvQueryDeviceSupport; } if (@hasDecl(@This(), "PFN_DrvDeriveSurface")) { _ = PFN_DrvDeriveSurface; } if (@hasDecl(@This(), "PFN_DrvSynchronizeSurface")) { _ = PFN_DrvSynchronizeSurface; } if (@hasDecl(@This(), "PFN_DrvNotify")) { _ = PFN_DrvNotify; } if (@hasDecl(@This(), "PFN_DrvRenderHint")) { _ = PFN_DrvRenderHint; } if (@hasDecl(@This(), "PFN_EngCreateRectRgn")) { _ = PFN_EngCreateRectRgn; } if (@hasDecl(@This(), "PFN_EngDeleteRgn")) { _ = PFN_EngDeleteRgn; } if (@hasDecl(@This(), "PFN_EngCombineRgn")) { _ = PFN_EngCombineRgn; } if (@hasDecl(@This(), "PFN_EngCopyRgn")) { _ = PFN_EngCopyRgn; } if (@hasDecl(@This(), "PFN_EngIntersectRgn")) { _ = PFN_EngIntersectRgn; } if (@hasDecl(@This(), "PFN_EngSubtractRgn")) { _ = PFN_EngSubtractRgn; } if (@hasDecl(@This(), "PFN_EngUnionRgn")) { _ = PFN_EngUnionRgn; } if (@hasDecl(@This(), "PFN_EngXorRgn")) { _ = PFN_EngXorRgn; } if (@hasDecl(@This(), "PFN_DrvCreateDeviceBitmapEx")) { _ = PFN_DrvCreateDeviceBitmapEx; } if (@hasDecl(@This(), "PFN_DrvDeleteDeviceBitmapEx")) { _ = PFN_DrvDeleteDeviceBitmapEx; } if (@hasDecl(@This(), "PFN_DrvAssociateSharedSurface")) { _ = PFN_DrvAssociateSharedSurface; } if (@hasDecl(@This(), "PFN_DrvSynchronizeRedirectionBitmaps")) { _ = PFN_DrvSynchronizeRedirectionBitmaps; } if (@hasDecl(@This(), "PFN_DrvAccumulateD3DDirtyRect")) { _ = PFN_DrvAccumulateD3DDirtyRect; } if (@hasDecl(@This(), "PFN_DrvStartDxInterop")) { _ = PFN_DrvStartDxInterop; } if (@hasDecl(@This(), "PFN_DrvEndDxInterop")) { _ = PFN_DrvEndDxInterop; } if (@hasDecl(@This(), "PFN_DrvLockDisplayArea")) { _ = PFN_DrvLockDisplayArea; } if (@hasDecl(@This(), "PFN_DrvUnlockDisplayArea")) { _ = PFN_DrvUnlockDisplayArea; } if (@hasDecl(@This(), "PFN_DrvSurfaceComplete")) { _ = PFN_DrvSurfaceComplete; } if (@hasDecl(@This(), "PVIDEO_WIN32K_CALLOUT")) { _ = PVIDEO_WIN32K_CALLOUT; } @setEvalBranchQuota(comptime @import("std").meta.declarations(@This()).len * 3); // reference all the pub declarations if (!@import("builtin").is_test) return; inline for (comptime @import("std").meta.declarations(@This())) |decl| { if (decl.is_pub) { _ = @field(@This(), decl.name); } } }